Posted By

webdesign29 on 06/13/11


Tagged

as3 clickTag


Versions (?)

AS3 clickTAG that works


 / Published in: ActionScript 3
 

URL: http://www.webdesign29.net/

Create the button MovieClip and add its EventListener for click

  1. var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
  2. var clickTAG:String = String(paramObj["clickTAG"]);
  3.  
  4. box_mc.addEventListener( MouseEvent.CLICK, openBanner);
  5.  
  6. function openBanner(event: MouseEvent) : void {
  7. flash.net.navigateToURL(new URLRequest( clickTAG ), "_blank");
  8. }
  9.  
  10. box_mc.useHandCursor = true;

Report this snippet  

You need to login to post a comment.