Check out ListCollectionView. I've been down that same road. (Feb Thread: any 
ArrayCollection tricks?)

>From the thread: "I found a great example here, which is perfect: 
>http://viconflex.blogspot.com/2006/11/listcollectionview-different.html "

Paul

  ----- Original Message ----- 
  From: Josh McDonald 
  To: [email protected] 
  Sent: Monday, June 02, 2008 12:46 AM
  Subject: [flexcoders] Multiple filtered views on one source ArrayCollection


  Hey guys,

  I think maybe I've missed the point of something, or there's a class I need 
to use that I don't know exists :)

  I have an ArrayCollection we'll call sourceCollection. I need to have a 
couple of different views of this data, with which I can use filterFunctions 
without affecting each other or the sourceCollection, and I need these views to 
be updated when the source changes. Perfectly happy for these views to be 
read-only.

  Is there already something that suits my needs? Or do I need to roll my own? 
No problem, but it seems like a common task and I don't want to re-implement 
something that already exists and works :) 

  At first glance I thought the solution would be new 
ArrayCollection(sourceCollection.source), but it won't get updates. If it 
doesn't exist I'd rather build something reusable than just hack together a 
solution by listening to the sourceCollection object.

  -J

  -- 
  "Therefore, send not to know For whom the bell tolls. It tolls for thee."

  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]  

Reply via email to