Iterating a filtered collection
12 February 2009Okay, 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
