just an idea. maybe you can make use of the includeInLayout property 
(introduced in flex2).


if your using the tabnavaigator.getTabAt() method.....it returns a 
reference to the tab button. if you make that visible=false and 
includeInLayout=false; that should remove it from the tabbar.

eg
var button1:Button = tabnavigator1.getTabAt(1);
button1.visible = false;
button1.includeInLayout = false;

--- In flexcoders@yahoogroups.com, "Jamie O" <[EMAIL PROTECTED]> 
wrote:
>
> I was able to do the equivelent of what you're trying to do via a
> TabBar and separate viewstack by making the selected child of the
> stack visible = false, but not your specific challenge. The .show
> event was valuable for that.
> 
> This is one I'd also like to see answered!
> 
> J
> --- In flexcoders@yahoogroups.com, "KP" <jain_kumar11@> wrote:
> >
> > Well I have a TabNavigator which contains 3 tabs on basis of some
> condition
> > I want to hide two tabs and show only one tab.
> > 
> > Although I can  disable them but not hide them.the visible 
property
> does not
> > work it seems.
> > 
> >  
> > 
> > Can some one show me some kind of approach on this one. 
> > 
> >  
> > 
> > Cheers
> > 
> > Kumar
> >
>





--
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