[flexcoders] Using an ArrayCollection as the dataProvider for multiple components

2008-05-29 Thread Amy
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

RE: [flexcoders] Using an ArrayCollection as the dataProvider for multiple components

2008-05-29 Thread Alex Harui
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.