Packageorg.robotlegs.core
Interfacepublic interface IEventMap
Implementors EventMap

The Robotlegs EventMap contract



Public Methods
 MethodDefined By
  
mapListener(dispatcher:IEventDispatcher, type:String, listener:Function, eventClass:Class = null, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void
The same as calling addEventListener directly on the IEventDispatcher, but keeps a list of listeners for easy (usually automatic) removal.
IEventMap
  
unmapListener(dispatcher:IEventDispatcher, type:String, listener:Function, eventClass:Class = null, useCapture:Boolean = false):void
The same as calling removeEventListener directly on the IEventDispatcher, but updates our local list of listeners.
IEventMap
  
Removes all listeners registered through mapListener
IEventMap
Method Detail
mapListener()method
public function mapListener(dispatcher:IEventDispatcher, type:String, listener:Function, eventClass:Class = null, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void

The same as calling addEventListener directly on the IEventDispatcher, but keeps a list of listeners for easy (usually automatic) removal.

Parameters

dispatcher:IEventDispatcher — The IEventDispatcher to listen to
 
type:String — The Event type to listen for
 
listener:Function — The Event handler
 
eventClass:Class (default = null) — Optional Event class for a stronger mapping. Defaults to flash.events.Event.
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
useWeakReference:Boolean (default = true)

unmapListener()method 
public function unmapListener(dispatcher:IEventDispatcher, type:String, listener:Function, eventClass:Class = null, useCapture:Boolean = false):void

The same as calling removeEventListener directly on the IEventDispatcher, but updates our local list of listeners.

Parameters

dispatcher:IEventDispatcher — The IEventDispatcher
 
type:String — The Event type
 
listener:Function — The Event handler
 
eventClass:Class (default = null) — Optional Event class for a stronger mapping. Defaults to flash.events.Event.
 
useCapture:Boolean (default = false)

unmapListeners()method 
public function unmapListeners():void

Removes all listeners registered through mapListener