Hi, I tried to assign some setting to a component, e.g. a label of tab in TabNavigator, but got err - null object reference.
In my app, how can I know those components has been load and ready to be setting their properties? Or how to put my setting after fully load the main container, such as a TabNavigater or a Panel and all its children components?
By default TabNav doesn't create components on other tabs until you switch to them. I prefer to have the UI widgets pull their info from a central data model rather than pushing the data down. It will give you the best performance.
You can use creationPolicy="all" to have the TabNav create everything upfront, but you'll pay for it.
Flex SDK Developer
Adobe Systems Inc.
Thank you so much Alex. In my case, I want to re-set the tab lables of the TabNavigator when app start. This is for loading multi language info from a xml file for each tab, and re-set the tab label according to the language of OS. So first I want all the tab objects are valid and set their label. Any solution to get all tab object valid (just tab object, not all objects inside each child tab)?
I had tried the creationPolicy="all", but once set it in main TabNavigator, the child TabNavigator get error and have to set creationPolicy="all" too.