Re: TabBar dataProvider change event
The TabBar will dispatch an Event object of type 'collectionChange' when the
dataProvider is set. The key here, though is the type of event that's
dispatched. It's not a CollectionChangeEvent object, as is normally the case
when a collection changes. It's a regular old Event object.
So...you'll have to add an event listener for 'collectionChange', but in the
listener, you'll have to check the type of the event that's being captured, and
only process your changes if (!(event is CollectionChangeEvent)).
|