/ 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.
I like control but they could have made a shortcut of some sort for buttons.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
btnname.addEventListener(MouseEvent.CLICK, myBtnClicked); function myBtnClicked(e:MouseEvent):void { try { navigateToURL(new URLRequest("/index.php"), "_self"); } catch (e:Error) { trace("Error occurred!"); } }
Comments
