The enableEvents() method is used to enable an event for a certain object. Normally, an event is enabled when a listener is added to an object for a certain event. The enableEvents() method is used by objects that supports events by overriding their event-dispatch methods.