8

My problem: I have a tab navigator, with many forms in each tab. But I have a single global save button. Problem is, if I don't open a Tab, it doesn't get initialized and therefore the forms it contains do not exist..

How Can I make it as if the user had clicked on every tab?

luca
  • 12,311
  • 15
  • 70
  • 103

2 Answers2

14

set its creationPolicy to "all"

<mx:TabNavigator creationPolicy="all">
    <!--Children-->
</mx:TabNavigator>
Amarghosh
  • 58,710
  • 11
  • 92
  • 121
0

I am using SuperTabNavigator which is an extension of the TabNavigator navigation container

I used the below script to initialize all tabs

private function initMainTab():void 
    { 
        for (var i:int = 0; i < superTabNav.getChildren().length ; i++)  
        { 
            superTabNav.selectedIndex = i; 
            superTabNav.validateNow();      
        } 
        superTabNav.selectedIndex = 0; 
    }
AabinGunz
  • 12,109
  • 54
  • 146
  • 218