Is there an easy way to use two event handlers together without repeating a function like this:
movieclip.onRelease = function() {
_root.gotoAndStop(2);
};
movieclip.onReleaseOutside = function() {
_root.gotoAndStop(2);
};
This would really help me clean up my code and reduce repetition.
I thought maybe this would work, but it doesn’t:
movieclip.onRelease && movieclip.onReleaseOutside = function() {
_root.gotoAndStop(2);
};
Thanks!