Posted By

DarkZone on 05/25/09


Tagged

banner as3 actionscript3 clickTag


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jhoard


clickTag


 / Published in: ActionScript 3
 

URL: http://www.genelu.com/content/view/98/1#AS3

Change myButton by your button's name.

  1. var _url:String = "";
  2. function handleMouse(event:MouseEvent):void{
  3. navigateToURL(new URLRequest(_url), "_blank");
  4. }
  5. if (LoaderInfo(root.loaderInfo).parameters.clickTag)
  6. {
  7. _url = LoaderInfo(root.loaderInfo).parameters.clickTag;
  8. myButton.addEventListener(MouseEvent.MOUSE_UP, handleMouse);
  9. }

Report this snippet  

You need to login to post a comment.