Be a Supporter!

Browse Sections


Newgrounds Wiki: removeEventListener

Usage

import com.newgrounds.API;
API.removeEventListener(event:String[, target:*]);
  • event - The event name to check. This should be one of the constants in APIEvent.
  • target - The object or movieclip that the listener is targeted to. (Actionscript 2.0 ONLY!!!)

This method removes a listener for the requested event from the targeted object or movieclip. If you have duplicate listeners in other targets they will NOT be removed.

See the API Events page for more details.