[flexcoders] Re: Show/Hide a tab

2009-09-29 Thread Tracy
I think you will find it easier to use a Tabbar and a ViewStack instead.

Drive the TabBar with a dataProvider of its own, built from whatever logic you 
need.  Have that dataProvider contain the index of the matching view in the 
ViewStack.

this way, only the allowed tabs will be visible and only the associated content 
will be accessible.

Much simpler than adding and removing children all the time.

Tracy

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> Have to use addChild() and removeChild() forTabs.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Christophe"  wrote:
> >
> > Hello, 
> > 
> > How to hide a Tab in a TabNavigator. I have try visible=false, but it does 
> > not work.
> > 
> > Thank you,
> > Christophe
> >
>




[flexcoders] Re: Show/Hide a tab

2009-09-29 Thread turbo_vb
Have to use addChild() and removeChild() forTabs.

-TH

--- In flexcoders@yahoogroups.com, "Christophe"  
wrote:
>
> Hello, 
> 
> How to hide a Tab in a TabNavigator. I have try visible=false, but it does 
> not work.
> 
> Thank you,
> Christophe
>