Flex jump to JSP or other non-Flex page Html code

Source: Internet
Author: User

Flex jump to JSP or other non-Flex page Html code var url: String = "http: //" + URLUtil. getServerNameWithPort (Application. application. url) + "/DZDJ/index. jsp? Id = "+ 1; ExternalInterface. call ('window. open ', url,' _ top '); _ top is variable. _ top indicates opening on the current page and closing the remote page. Import class: import flash.net. URLRequest; import flash.net. navigateToURL; disable the current Browser: var url: URLRequest = new URLRequest ("javascript: window. close () "); navigateToURL (url," _ top "); (Note: Test on the server; otherwise, a Security Sandbox conflict is reported ); jump to the page navigateToURL (new URLRequest (" http://www.baidu.com ")," _ Top "); open a new browser: var request: URLRequest = new URLRequest (" http://www.baidu.com /); NavigateToURL (request); Flex jump to Flex FLEX is different from JSP, there is no such page to jump to another page. Generally, ViewStack is used for page switching. For other modules, loadmoudle is required for function settings. Www.2cto.com <mx: ViewStack x = "0" y = "0" id = "viewstack1" width = "619" height = "700"> <mx: canvas id = "View1" width = "100%" height = "100%"> <mx: Button label = "View2" click = "viewstack1.selectedChild = View2"/> </mx: canvas> <mx: Canvas id = "View2" width = "100%" height = "100%" color = "#3FCFE9"> </mx: Canvas> </mx: ViewStack>

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.