How can I open a web (example www.cnn.com
) in a Flex application?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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