An array collection is a view of the collection's source.  I wouldn't
copy the AC, I would make another instance of an AC and have it share
the source Array with the other AC.  If you want changes to one AC to
show up in the other AC, then you want to share the AC's list property
instead.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Thursday, May 29, 2008 10:17 AM
To: [email protected]
Subject: [flexcoders] Using an ArrayCollection as the dataProvider for
multiple components

 

How do most people deal with using the same ArrayCollection as the 
dataProvider to more than one component? Do you filter on the 
dataProvider property itself, make a copy of the ArrayCollection, or is 
there some other way to present two simultaneous "views" of the same 
ArrayCollection I'm missing?

Thanks;

Amy

 

Reply via email to