Our goal is for Newgrounds to be ad free for everyone! Become a Supporter today and help make this dream a reality!

Browse Sections

Newgrounds Wiki: hasEventListener


import com.newgrounds.API;
var has_listener:Boolean = API.hasEventListener(event:String);
  • event - The event name to check. This should be one of the constants in APIEvent.

This method returns true if there is a listener attached to the requested event.