Flex mobile development: how to call the view navigator and flexnavigator globally
When flex is a View-based mobile application, in the View, it can directly use navigator to call the View Management to redirect. However, sometimes, you may want to redirect a view in a custom control or a method that does not exist in the view.
ViewNavigatorApplication, you can easily access the view navigator through FlexGlobals. topLevelApplication. navigator for jump, for example
<S: Button label = "click" click = "FlexGlobals. topLevelApplication. navigator. pushView (HelloWorldView);"/>
This is because ViewNavigatorApplication has the navigator attribute. However, if you are using the TabbedViewNavigatorApplication class to create an application, the problem arises. TabbedViewNavigatorApplication does not have the navigator attribute, so you call FlexGlobals. topLevelApplication. navigator will return a null object error. Even in this case, we can still implement one by ourselves ,.......
=> Click the original view complete content: http://www.chenlinsheng.com /? P = 1451