I have a TabBar with the dataProvider of the TabBar set to a
ViewStack object. I would like to add an effect to the TabBar when
the dataProvider is changed. Is their an "easy" way of
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)).