Adobe Dreamweaver Forums



Last 10 THreads :         CS4 No Quiz Templates (Last Post : jessediaz - Replies : 4 - Views : 5 )           »          Director Stage when Publishing (Last Post : openspark - Replies : 1 - Views : 2 )           »          Compatible issue with ie6 (Last Post : JoeyD1978 - Replies : 1 - Views : 2 )           »          captions for photos (Last Post : Walt F. Schaefer - Replies : 1 - Views : 2 )           »          Uncatchable Error 2101 (Last Post : M4G1C14N - Replies : 1 - Views : 2 )           »          File Transfer (Last Post : aruvasavi - Replies : 2 - Views : 3 )           »          Objects "Framed" when moving layer (Last Post : VegasMirage@adobeforums.com - Replies : 2 - Views : 3 )           »          Creating images to look like original oil paintings? (Last Post : Ian_Courtney@adobeforums.com - Replies : 0 - Views : 1 )           »          Opening a file in navpane from toolbar (Last Post : ChrisRousset - Replies : 0 - Views : 1 )           »          Help importing PNG sequence (Last Post : []MULISH - Replies : 0 - Views : 1 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-03-2008, 04:37 AM
dnbwise
 
Posts: n/a
Diggs:
Default TabBar dataProvider change event

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?



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-03-2008, 04:37 AM
-Hob
 
Posts: n/a
Diggs:
Default 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)).

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 04:43 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk