Posted By

russdogg on 06/18/11


Tagged

getURL as3 navigateToURL


Versions (?)

NavigateToUrl


 / Published in: ActionScript 3
 

  1. mc.addEventListener(MouseEvent.CLICK, callLink);
  2.  
  3. function callLink():void
  4. {
  5. var url:String = "http://www.google.com";
  6. var request:URLRequest = new URLRequest(url);
  7.  
  8. try
  9. {
  10. navigateToURL(request, '_blank');
  11. }
  12. catch (e:Error)
  13. {
  14. trace("Error occurred!");
  15. }
  16. }

Report this snippet  

You need to login to post a comment.