I am trying to use states to change the contents of a canvas
which is the second of two within a tab navigator. Buttons trigger
functions to change the state and change the selectedIndex of the
navigator to the second tab.
The functions work fine if you first view the second tab. If
you click the buttons before viewing the second tab, the whole
thing blows up. Heres a link to app:
Any insight would be appreciated!
The items in the second tab aren't actually created or
instantiated until they are first viewed. This is a performance
setting built into Flex. You can however over-ride the setting and
force all the tab contents to render immediately when the tab
navigator is created. To do this, you define the creationPolicy on
the TabNavigator and set the value to "all". Warning, this will
hurt performance if the tab navigator has a lot of large child