/ Published in: ActionScript 3
I just want a simple link, but it takes 8 lines of code?!
I like control but they could have made a shortcut of some sort for buttons.
Expand |
Embed | Plain Text
btnname.addEventListener(MouseEvent.CLICK, myBtnClicked); function myBtnClicked(e:MouseEvent):void { try { navigateToURL(new URLRequest("/index.php"), "_self"); } catch (e:Error) { trace("Error occurred!"); } }
You need to login to post a comment.
