Open a webpage in flex application

2019-01-15 20:19发布

问题:

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



标签: html flex