/ Published in: ActionScript 3
URL: http://www.genelu.com/content/view/98/1#AS3
Change myButton by your button's name.
Expand |
Embed | Plain Text
var _url:String = ""; function handleMouse(event:MouseEvent):void{ navigateToURL(new URLRequest(_url), "_blank"); } if (LoaderInfo(root.loaderInfo).parameters.clickTag) { _url = LoaderInfo(root.loaderInfo).parameters.clickTag; myButton.addEventListener(MouseEvent.MOUSE_UP, handleMouse); }
You need to login to post a comment.
