org.as2lib.core.BasicInterface +--org.as2lib.env.event.EventListenerSource +--org.as2lib.env.event.broadcaster.EventBroadcaster
EventBroadcaster
dispatches events to all added listeners with the help
of an EventInfo.
addAllListeners(), addListener(), getAllListeners(), hasListener(), removeAllListeners(), removeListener()
public function dispatch(event:EventInfo):Void
Dispatches the passed-in event
to all added listeners.
The name returned by the EventInfo.getName method of the passed-in
event
is used as event method name to invoke on the listeners.
The passed-in event
is also passed as parameter to the listeners'
event methods.
event | the event to dispatch to all listeners |
EventExecutionException | if a listener threw an exception during dispatching |