Posted By

adrianparr on 05/13/10


Tagged

url getURL as3 URLRequest navigateToURL webpage navigate


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

socialflasher
ithinkme
tspitzr


AS3 getURL using URLRequest and navigateToURL


 / Published in: ActionScript 3
 

  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  

You need to login to post a comment.