[flexcoders] Re: Hide tabs in tabBar

2007-03-12 Thread coderdude2
--- In flexcoders@yahoogroups.com, "KP" <[EMAIL PROTECTED]> 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. > >

[flexcoders] Re: Hide tabs in tabBar

2006-10-30 Thread bhaq1972
dont know if you saw my suggestion but add this bit of script to your test http://www.adobe.com/2006/mxml"; creationComplete="hideTab1()"> import mx.controls.Button; private function hideTab1():void { var button1:Button = tn.getTabAt(1); button1.visible = false; button1.includeInLayo

[flexcoders] Re: Hide tabs in tabBar

2006-10-30 Thread bhaq1972
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 b

[flexcoders] Re: Hide tabs in tabBar

2006-10-27 Thread Jamie O
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@yahoogr