Package | feathers.core |
Interface | public interface IFeathersEventDispatcher |
Product Version : | Feathers 1.1.0 |
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
Method | Defined 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 |
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 )
|
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