ArrayCollection with Multiple Filters
At the Adobe Community Summit a couple weeks ago I had the opportunity to help teach the AIR Flex course. It was a lot of fun and I think of all the events that week doing that helped me meet more people. During the class I answered a lot of questions, but there were some that I didn’t have an immediate answer for and I said I would look into it.
One such question came for Adrian (I think…) and he had a problem where he needed to apply multiple filter functions to a single ArrayCollection. We talked about a couple of the ways I would approach it but I didn’t really like the options I was presenting. After I got back I did a couple google searches and found this example. I think Cristian did a great thing here by extending the functionality of the ArrayCollection to support this behavior.
My only wish was that we could still grab the prototype on the AS3 objects so I could mix in the behavior change rather than have to use a new data type through out my applications. But I guess I will take speed fixes in AS3 and accept that it is strictly typed for a reason
Anyway, I think Cristian’s solution is good enough and I hope Adrian sees this.
28 May 2008 Simeon

Simeon,
I just saw your post today. I found Chris’s post late last night and I am working on it now. All my data is dissapearing after changing the filters but at least I have a base to work from. Much thanks for checking it out. And thanks for helping us all out in the Air training, you did a great job.
Adrian
Simeon, I just got it working, I am a moron. It would help if I was comparing the correct elements. Tough to get a filter match when your not even close. It works, and is very valuable.