AS3 getURL using URLRequest and navigateToURL


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. import flash.net.URLRequest;
  2. import flash.net.navigateToURL;
  3.  
  4. function getURL($url:String, $target:String = null) {
  5. try {
  6. navigateToURL(new URLRequest($url), $target);
  7. } catch(error:Error) {
  8. trace("getURL Error:" + error);
  9. }
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.