I have a TabbedMobileApplication which has X number of tabs. In a view for 1 of the tabs, I would like to programmatically change the selected tab to another tab, just as if the user clicked on the tab button at the top of the screen. Is this possible? I've looked through the API for TabbedMobileApplication and can't seem to find anything.
Currently, the best way to change the selected tab programmatically would be to set the selectedIndex on the application's navigator. You would do this like so:
FlexGlobals.topLevelApplication.navigator.selectedIndex = x;
Note that the navigator property in the TabbedMobileApplication class is not the same navigator referenced inside a View. So doing navigator.selectedIndex inside a view would not work. I hope that made sense.
Let me know if you have more questions.
yep, that made sense and worked no problem! thanks ...