Skip to content

Instantly share code, notes, and snippets.

@fenixkim
Created May 8, 2013 20:24
Show Gist options
  • Save fenixkim/5543354 to your computer and use it in GitHub Desktop.
Save fenixkim/5543354 to your computer and use it in GitHub Desktop.

Revisions

  1. fenixkim created this gist May 8, 2013.
    14 changes: 14 additions & 0 deletions enlace.as
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    import flash.events.MouseEvent;
    import flash.net.navigateToURL;
    import flash.net.URLRequest;

    boton1.addEventListener(MouseEvent.CLICK, onBoton1Click);
    boton2.addEventListener(MouseEvent.CLICK, onBoton2Click);

    function onBoton1Click (event:MouseEvent) {
    navigateToURL(new URLRequest("http://apple.com"), "_blank");
    }

    function onBoton2Click (event:MouseEvent) {
    navigateToURL(new URLRequest("http://google.com"), "_blank");
    }