RSS
 

Iterating a Filtered Collection

12 Feb

Okay, nothing profound here but thought I’d post as it’s a common question.

If you have filtered a collection,

ex

var ac:ArrayCollection = new ArrayCollection();
...
...
ac.filterFunction = myFilter
ac.refresh()

but you’d like to iterate over / access the unfiltered collection, simply use the .list property


var items:IList = ac.list

cheers

Josh

 
 

Leave a Reply

 

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word