navigatetourl is not working at browser after publish
Hello all,
I have another issue with my flash project.
I developed and finished my flash project and then tested it. It is working fine and everything is OK. But the web links are not working and not sending any exception out.
I used navigateToUrl command thousands of times before and it's quite simple code to be used. But at this time, it's not working when i publish it and preview at browser page.
PS : I checked if it is related to browser type, and checked in 5-6 different browsers and versions but still the same.
here is the 3 lines simple code that i use (that i always use in my every project as well)
myweblink1.addEventListener(MouseEvent.MOUSE_DOWN,mcg);
function mcg(e:MouseEvent):void
{
var targetURL:URLRequest = new URLRequest("http://www.anysite.com"); //or address can be just : "loginpage.aspx"
navigateToURL(targetURL,"_blank");
}
could you please help for this issue?
Thanks and regards