When to use ArrayCollection or Array in as3?

I know what ArrayCollectiona wrapper is over Array, but what I wanted to know is when to choose one over the other? Will use affect ArrayCollectionperformance?

+3
source share
1 answer

The main advantage ArrayCollectionis the event collectionChange, which allows you to get the benefits of data binding to it.

Some others:

  • The ability to filter or sort the elements of a collection without changing or copying the underlying array.
  • An implementation ICollectionViewthat allows you to create a cursor and iterate with it.
  • datagrid/etc ( arrayCollections)

- , Array.

+8

All Articles