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.