Difference between Array and ArrayCollection (Flex)

What is the difference between array and arraycollection?

+7
flex actionscript
source share
3 answers

First, ArrayCollection is designed for the Flex framework. It acts as a Proxy for this instance of Array . This means that he can listen to the changes made to the Array source and update it himself when this happens. It also contains a subset of the additional methods required specifically for the structure (see, for example, IList ).

+6
source share

An important difference is that an ArrayCollection raises events whenever it changes. This allows you to do data binding more efficiently than you could on Array .

+1
source share

ArrayCollection is a wrapper for an array that allows you to use GUI elements. Iterating through them is a bit complicated, see here: http://npcomplete.weebly.com/1/post/2009/10/for-loops-in-actionscript.html

0
source share

All Articles