I have a flash file with some buttons to open web addresses and I have made XML file to store my URL and then read them and parse them and assign the buttons functions to open URL:
btnRadio.addEventListener(MouseEvent.CLICK,
function()
{
navigateToURL (radiourl , "_blank");
});
This code is working perfectly in flash player while development but when I publish it it does not work can anyone tell me what is the problem now?
The Ctrl+Enter run uses the Flash player projector. When you publish to a browser, it just includes that swf in the html and displays it in the browser. Note that the Flash Player security policy restricts you in the following way:
http/httpsdomains (unless you add an exception, not recommended from the security point-of-view). Hence, opening the html file in your browser (which does so on thefiledomain) will violate the security constraint and the navigateToUrl will not be allowed