Skip to content

Remove an onRelease Handler

After creating a onRelease handler in Actionscript 2 as follows:

myMovieClip.onRelease = function() { doWhatever(); }
Code language: JavaScript (javascript)

..you then want to remove the handler for whatever reason, you can remove it like this:

delete myMovieClip.onRelease;
Code language: JavaScript (javascript)

See also  Animate with Actionscript [part1]
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x