How to open a url in the browser using AS3 on a standalone flash projector?

4.2k Views Asked by At
var request:URLRequest = new URLRequest("http://google.com");
navigateToURL(request, "_blank");

This works fine on web based swfs, it fails on flash player. can anyone help?

1

There are 1 best solutions below

2
On

locally played swfs are in different sandbox that forbids opening outsides urls.
You can make it work if you export it as .exe or try Air.
If you just want to test your swfs locally you can add a 'trusted' directory here http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html