Packagecom.adobe.portfolio.components
Classpublic class AutoListen
InheritanceAutoListen Inheritance Object

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The AutoListen class both adds and tracks event listeners and provides the ability to remove all listeners with a single call.



Public Methods
 MethodDefined By
  
AutoListen
  
addListener(listener:IEventDispatcher, type:String, handler:Function, useCapture:Boolean = false, priority:int = 0):void
AutoListen
  
AutoListen
  
removeListener(listener:IEventDispatcher, type:String = null):void
AutoListen
Constructor Detail
AutoListen()Constructor
public function AutoListen()



Method Detail
addListener()method
public function addListener(listener:IEventDispatcher, type:String, handler:Function, useCapture:Boolean = false, priority:int = 0):void

Parameters

listener:IEventDispatcher
 
type:String
 
handler:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)

removeAllListeners()method 
public function removeAllListeners():void

removeListener()method 
public function removeListener(listener:IEventDispatcher, type:String = null):void

Parameters

listener:IEventDispatcher
 
type:String (default = null)