IVector
new Vector()
static public CASEINSENSITIVE:Number
static public DESCENDING:Number
static public UNIQUESORT:Number
static public RETURNINDEXEDARRAY:Number
static public NUMERIC:Number
public function each(operation:Function):Void
Call the operation by pass each element once.
for example:
//hide all component in vector components components.each( function(c:Component){ c.setVisible(false); });Parameters
operation | the operation function for each element |
public function eachWithout(obj:Object, operation:Function):Void
Call the operation by pass each element once without the specified element.
for example:
//hide all component in vector components without firstOne component var firstOne:Component = the first one; components.eachWithout( firstOne, function(c:Component){ c.setVisible(false); });Parameters
obj | the which will not be operated. |
operation | the operation function for each element |
public function removeRange(fromIndex:Number, toIndex:Number):Array
Removes from this List all of the elements whose index is between fromIndex, inclusive and toIndex, exclusive. Shifts any succeeding elements to the left (reduces their index). This call shortens the ArrayList by (toIndex - fromIndex) elements. (If toIndex==fromIndex, this operation has no effect.)
the elements were removed from the vector