Flex Mobile Development: How to call the View Navigator globally (navigator)

Source: Internet
Author: User

When Flex does a view-based mobile app, in the view, you can call the view to manage it directly through navigator, but sometimes we might want to jump to a view in a custom control or a method that doesn't exist in view. If you are creating a base based on

Viewnavigatorapplication application, you can also easily access the View navigator via FlexGlobals.topLevelApplication.navigator to jump, for example

<s:button label= "click" click= "FlexGlobals.topLevelApplication.navigator.pushView (Helloworldview);"/>

That's because viewnavigatorapplication has the Navigator attribute, but if you're using the Tabbedviewnavigatorapplication class to create the app, Trouble comes, Tabbedviewnavigatorapplication does not have the Navigator attribute, So you call FlexGlobals.topLevelApplication.navigator will return an empty object error, even so, we can still implement one, ...

= = Click on the original to see the full content: http://www.chenlinsheng.com/?p=1451

Flex Mobile Development: How to call the View Navigator globally (navigator)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.