Disable TabControls Within a TabNavigator : TabNavigator « Container « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Container » TabNavigatorScreenshots 
Disable TabControls Within a 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 - 1as UIComponent).enabled = false;
                    }
                    else
                    {
                        (navigator.getChildAt(valueas 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.Enable child of 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
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.