Posted By

klovera on 10/18/11


Tagged


Versions (?)

AS3 GoTo URL


 / Published in: ActionScript 3
 

  1. // event listener
  2. button.addEventListener(MouseEvent.CLICK, gotoSite);
  3.  
  4. // function called
  5. function gotoSite(event:MouseEvent):void {
  6. var linkURL:URLRequest = new URLRequest("http://www.adobe.com/");
  7. navigateToURL(linkURL);
  8. }

Report this snippet  

You need to login to post a comment.