I have a Flex TabbedViewNavigatorApplication
With two custom navigators:
<s:navigators>
<homepagenavigator:HomePageNavigatorView label="Home" id="homePageNavigator" width="100%" height="100%" />
<categorylistpagenavigator:CategoryListPageNavigatorView label="List of Categories" id="categoryListPageNavigatorView" width="100%" height="100%" />
</s:navigators>
Now I want to programmatically, based on some events inside my app to switch between navigators.
The only question on StackOverflow I found is this Switch between Flex Tabbed ViewNavigators
but the solution is only applicable if you are working inside your Main.mxml,
which is either to use navigator.selectedIndex = 1;
(or in my case tabbedNavigator.selectedIndex = 1;
) or to use TabbedViewNavigator(navigator.parentNavigator).selectedIndex = 1;
but I have no idea how to access navigator inside my app, not in Main.mxml