Be a Supporter!

Browse Sections


Newgrounds Wiki: hasEventListener

Usage

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.