IVector
new Vector()static public CASEINSENSITIVE:Numberstatic public DESCENDING:Numberstatic public UNIQUESORT:Numberstatic public RETURNINDEXEDARRAY:Numberstatic public NUMERIC:Numberpublic function each(operation:Function):VoidCall 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):VoidCall 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):ArrayRemoves 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