Posted By

weavermedia on 06/08/11


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


AS3 Launch new browser window without toolbars etc

 / Published in: ActionScript 3

Put the 'navigateToURL' into an EventListener to launch a new popup from a mouse click. Control which browser window elements are visible through the jscommand settings.

  1. var gameURL:String = "";
  2. var jscommand:String = "'"+gameURL+"','win','width=800,height=596,toolbar=no,scrollbars=no,location=no,status=no,menubar=no');";
  3. var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);");
  4. navigateToURL(url, "_self");

Report this snippet  

You need to login to post a comment.