Thanks for reading, how is it that one goes about adding event listeners to an Array Collection with an outside dataProvider?
The idea here is like a datagrid, where if you give it a dataProvider [an array collection], anytime that dataProvider is updated in any way, it's reflected automatically in the grid [via events].
I'd like to do the same. I have a component that takes an outside dataprovider [tied to other things my component shouldn't even know about], and I'd like to add event listeners that, as elements are lazily loaded into the outer array collection, my component's dataprovider will also update.
I've added Collection Events onto my component's dataProvider, but they never seem to fire even though the outer data provider has changed.
Any hints/suggestions are hugely appreciated. Thanks!
This is incorrect as my array collection isn't drawn, it's only actionscript.
I need my component to be stand alone, with a dataProvider passed in, that updates itself when the outer provider it's bound to changes.
Just borrow code from ListBase.as, don't actually use an instance of ListBase. That pattern should work for non-display classes as well.
Flex SDK Developer
Adobe Systems Inc.