1 Reply Latest reply on Oct 23, 2008 11:03 AM by -Hob

    TabBar dataProvider change event

    dnbwise
      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 accomplishing this?
        • 1. Re: TabBar dataProvider change event
          -Hob Level 1
          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)).