new EventDispatcher()
Methods
-
addEventListener(type, callback)
-
Registers an event listener object to EventDispatcher object so that the listener receives the notification.
Parameters:
Name Type Description type String The type of event. callback Function The listener function. -
dispatchEvent(Event)
-
Dispatches an event to the event flow.
Parameters:
Name Type Description Event arc.Event object -
removeEventListener(type, callback)
-
Removes a listener from the EventDispatcher object.
Parameters:
Name Type Description type String The type of event. callback Function The listener function.