If the tabbar is bound to the viewstack as a dataprovider, you can
manipulate properties of the tabbar / tab based on what the currently
selected child in the viewstack is.

I'm using a similar approach to set the style of the selected tab so
that it's background colour matches the selected child when the show
event fires I call a function which executes the following:

tbNavigate.setStyle("tabStyleName","tab" + vsContent.selectedChild.id);

That same approach should allow you to manipulate the tab / data that
you want no?

--- In flexcoders@yahoogroups.com, "zzwi89" <[EMAIL PROTECTED]> wrote:
>
> Does anyone know how to retrive a tab from a TabBar? If I use
> getChild() it returns a child of the associated ViewStack.
> TabNavigator, which I do not want to use, has a getTabAt() function. I
> checked out the code, and it simply does this:
> 
> return Button(tabBar.getChildAt(index));
> 
> If I do this on my tabBar, it pops up an error stating I can't cast a
> VBox to a Button. Why is it that TabNavigator can do this, but I
> cannot do this on my TabBar's children?
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to