Enable child of TabNavigator : TabNavigator « Container « Flex






Enable child of TabNavigator

      


<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Canvas width="400" height="300">
        <mx:Script>
            
                import mx.core.UIComponent;
    
                public function disableTab(value:int = 0):void{
                    if(value == 0){
                        (navigator.getChildAt(navigator.numChildren - 1) as UIComponent).enabled = false;
                    }
                    else
                    {
                        (navigator.getChildAt(value) as UIComponent).enabled = false;
                    }
                }
    
          
        </mx:Script>
        <mx:TabNavigator id="navigator">
    
        </mx:TabNavigator>
    </mx:Canvas>
</mx:Application>

   
    
    
    
    
    
  








Related examples in the same category

1.TabNavigator EffectTabNavigator Effect
2.Put VBox into TabNavigatorPut VBox into TabNavigator
3.Add Panel to TabNavigatorAdd Panel to TabNavigator
4.Contain a Spark List control and an TabNavigator containerContain a Spark List control and an TabNavigator container
5.NavigatorContent inside a TabNavigatorNavigatorContent inside a TabNavigator
6.Put Form into TabNavigatorPut Form into TabNavigator
7.Load the modules when navigating to tabs in TabNavigatorLoad the modules when navigating to tabs in TabNavigator
8.TabNavigator creation PolicyTabNavigator creation Policy
9.Load modules when the user navigates to the appropriate tabs in TabNavigatorLoad modules when the user navigates to the appropriate tabs in TabNavigator
10.Add child component to TabNavigatorAdd child component to TabNavigator
11.Disable TabControls Within a TabNavigator
12.Get child count in TabNavigator
13.TabNavigator containerTabNavigator container
14.Change URL as TabNavigator changedChange URL as TabNavigator changed
15.Use Button to select TabUse Button to select Tab
16.Using a tab navigator to created tabbed navigationUsing a tab navigator to created tabbed navigation
17.Responding to tab changes in a tab navigatorResponding to tab changes in a tab navigator
18.Using an event object to pass information about selected tabUsing an event object to pass information about selected tab