Home Tutorial Flex Flex4 Flex ArrayCollection

 
 

Flex ArrayCollection
Posted on: April 19, 2010 at 12:00 AM
ArrayCollection provides more functionalities than an Array.
ArrayCollection provides more functionalities than an Array. It provides methods like addItem(), addItemAt(), contains(), getItemIndex(), removeAll() etc which makes ArrayCollection more useful rather than using Array. It also supports change listener that listens when arraycollection is updated. Listeners can be added to listen the event.

// Creates ArrayCollection of 0 elements
var myArrayCollection:ArrayCollection = new ArrayCollection();



// Creates ArrayCollection using existing Array
var myArrayCollection:ArrayCollection = new ArrayCollection(myArray);



// Creates ArrayCollection and assigns values
var myArrayCollection: ArrayCollection = new ArrayCollection(["RoseIndia", 10]);

Related Tags for Flex ArrayCollection:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.