Skip to main content
March 11, 2011
Answered

navigatetourl is not working at browser after publish

  • March 11, 2011
  • 1 reply
  • 1393 views

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

This topic has been closed for replies.
Correct answer Ned Murphy

Have you tried testing on a server?

When you test in Flash, see if you get traces when you click these buttons.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
March 11, 2011

Have you tried testing on a server?

When you test in Flash, see if you get traces when you click these buttons.

March 11, 2011

it is still not working onmy local computer but correctly working at server this is interesting

thanks Ned again...

Ned Murphy
Legend
March 11, 2011

You're welcome... some things that require browser involvement need to be tested on a server.