Remove an onRelease Handler

After creating a onRelease handler in Actionscript 2 as follows:

myMovieClip.onRelease = function() { doWhatever(); }

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

delete myMovieClip.onRelease;
0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments