Open a webpage in flex application

2019-01-15 20:45发布

How can I open a web (example www.cnn.com) in a Flex application?

标签: html flex
1条回答
祖国的老花朵
2楼-- · 2019-01-15 21:11

I understand that you are trying to open an url in the default system browser.Please try this.

var urlRequest:URLRequest = new URLRequest("http://www.adobe.com/");
            //To open in a new tab
            navigateToURL(urlRequest,_blank);
            //To open on top of the same page
            navigateToURL(urlRequest,_top);

If you are looking to open an url within a Flex application you check here

查看更多
登录 后发表回答