Last active
August 29, 2015 14:06
-
-
Save NicolasPio/aa27dd201d812ee00b8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import flash.events.MouseEvent; | |
import flash.display.LoaderInfo; | |
// var link is instance name | |
link.buttonMode = true; | |
var paramList:Object = this.root.loaderInfo.parameters; | |
link.addEventListener(MouseEvent.CLICK, openURL); | |
function openURL(event:MouseEvent):void { | |
var request:URLRequest = new URLRequest(paramList["clicktag"]); | |
navigateToURL(request, "_blank"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment