Posted By

nate63179 on 11/03/09


Tagged

getURL as3


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

quan
adrianparr
davidino1978


Flash: Get url


 / Published in: ActionScript 3
 

Because my brain only has room for the AS2.0 implementation...

  1. var url:String = "http://site";
  2. var request:URLRequest = new URLRequest(url);
  3. try {
  4. navigateToURL(request, '_blank'); // second argument is target, "_self" opens in same window
  5. } catch (e:Error) {
  6. trace("Error occurred!");
  7. }

Report this snippet  

You need to login to post a comment.