Packagefeathers.core
Interfacepublic interface IFeathersEventDispatcher

Product Version : Feathers 1.1.0

Public properties and functions from starling.events.EventDispatcher in helpful interface form.

Never cast an object to this type. Cast to EventDispatcher instead. This interface exists only to support easier code hinting for interfaces.

See also

starling.events.EventDispatcher


Public Methods
 MethodDefined By
  
addEventListener(type:String, listener:Function):void
Adds a listener for an event type.
IFeathersEventDispatcher
  
dispatchEvent(event:Event):void
Dispatches an event to all listeners added for the specified event type.
IFeathersEventDispatcher
  
dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
Dispatches an event from the pool with the specified to all listeners for the specified event type.
IFeathersEventDispatcher
  
hasEventListener(type:String, listener:Function = null):Boolean
Checks if a listener has been added for the specified event type.
IFeathersEventDispatcher
  
removeEventListener(type:String, listener:Function):void
Removes a listener for an event type.
IFeathersEventDispatcher
  
removeEventListeners(type:String = null):void
Removes all listeners for an event type.
IFeathersEventDispatcher
Method Detail
addEventListener()method
public function addEventListener(type:String, listener:Function):void

Adds a listener for an event type.

Parameters

type:String
 
listener:Function

See also

dispatchEvent()method 
public function dispatchEvent(event:Event):void

Dispatches an event to all listeners added for the specified event type.

Parameters

event:Event

See also

dispatchEventWith()method 
public function dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void

Dispatches an event from the pool with the specified to all listeners for the specified event type.

Parameters

type:String
 
bubbles:Boolean (default = false)
 
data:Object (default = null)

See also

hasEventListener()method 
public function hasEventListener(type:String, listener:Function = null):Boolean

Checks if a listener has been added for the specified event type.

Parameters

type:String
 
listener:Function (default = null)

Returns
Boolean

See also

removeEventListener()method 
public function removeEventListener(type:String, listener:Function):void

Removes a listener for an event type.

Parameters

type:String
 
listener:Function

See also

removeEventListeners()method 
public function removeEventListeners(type:String = null):void

Removes all listeners for an event type.

Parameters

type:String (default = null)

See also