Skip to content

Instantly share code, notes, and snippets.

@geraldyeo
Created July 27, 2011 09:45
Show Gist options
  • Save geraldyeo/1109025 to your computer and use it in GitHub Desktop.
Save geraldyeo/1109025 to your computer and use it in GitHub Desktop.
as3 clicktag
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
var clickTAG:String = String(paramObj["clickTAG"]);
box_mc.addEventListener(MouseEvent.CLICK, openBanner);
function openBanner(event: MouseEvent) : void {
flash.net.navigateToURL(new URLRequest( clickTAG ), "_blank");
}
box_mc.useHandCursor = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment