Array Vs ArrayCollection in Flex

Can someone explain the difference between an array and an ArrayCollection in Flex?

+7
flex actionscript-3
source share
2 answers

According to liveDocs

The ArrayCollection class is a wrapper class that provides an array as a collection that can be accessed and manipulated using the methods and properties of ICollectionView or IList. Operations on an ArrayCollection instance changes the data source; for example, if you use the removeItemAt () method on an ArrayCollection, you will remove the element from the main array.

So they are the same, but they have more properties and methods.

+7
source share

The ArrayCollection class is a wrapper class that provides an array as a collection that can be accessed and managed using ICollectionView or IList interface methods and properties.

The Array class allows you to access and manage arrays. Array indices are based on a zero value, which means that the first element in the array is [0], the second element is [1], etc.

+1
source share

All Articles