action script button events
action script button events
Out of context: Reply #4
- Started
- Last post
- 9 Responses
- StratusGD0
If you don't want to do :
on(release, releaseOutside) {...}, why not just make your code into a function ("pressed") and do:
btn.onRelease = pressed;
btn.onReleaseOutside = pressed;It's still 2 lines instead of 1, but it's at least not repeated code.