Remove all listeners of the specified type from an eventDispatcher.
AutoListen
Constructor Detail
AutoListen
()
Constructor
public function AutoListen()
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Constructor
Method Detail
addListener
()
method
public function addListener(eventDispatcher:IEventDispatcher, type:String, listener:Function, useCapture:Boolean = false, priority:int = 0):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Adds an event listener to the specified event dispatcher and adds it to the list that removeAllListeners will reference when called.
Parameters
eventDispatcher:IEventDispatcher — The event dispatcher to which the listener is being added.
type:String — The type of event.
listener:Function — The listener function that processes the event. This function must accept an event object as its only parameter and must return nothing.
useCapture:Boolean (default = false) — Determines whether the listener works in the capture phase or the target and bubbling phases.
priority:int (default = 0) — The priority level of the event listener.
See also
IEventDispatcher.addEventListener
removeAllListeners
()
method
public function removeAllListeners():void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Remove all listeners that were added through addListener.
removeListener
()
method
public function removeListener(eventDispatcher:IEventDispatcher, type:String = null):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Remove all listeners of the specified type from an eventDispatcher. The eventDispatcher must
have been previously remembered by calling addListener
Parameters
eventDispatcher:IEventDispatcher — The event dispatcher from which listeners will be removed.