Package | artcustomer.framework.context |
Class | public class EventContext |
Inheritance | EventContext Object |
Implements | flash.events.IEventDispatcher, IDestroyable |
Subclasses | InteractiveContext |
Method | Defined By | ||
---|---|---|---|
Constructor
| EventContext | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Add an eventListener. | EventContext | ||
destroy():void
Destroy EventContext. | EventContext | ||
dispatchEvent(e:Event):Boolean
Dispatch an event. | EventContext | ||
hasEventListener(type:String):Boolean
Test an eventlistener. | EventContext | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Remove an eventlistener. | EventContext | ||
setup():void
Setup EventContext. | EventContext | ||
willTrigger(type:String):Boolean
Test event trigger. | EventContext |
EventContext | () | Constructor |
public function EventContext()
Constructor
addEventListener | () | method |
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Add an eventListener.
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false )
| |
priority:int (default = 0 )
| |
useWeakReference:Boolean (default = false )
|
destroy | () | method |
public function destroy():void
Destroy EventContext.
dispatchEvent | () | method |
public function dispatchEvent(e:Event):Boolean
Dispatch an event.
Parameters
e:Event |
Boolean —
|
hasEventListener | () | method |
public function hasEventListener(type:String):Boolean
Test an eventlistener.
Parameters
type:String |
Boolean —
|
removeEventListener | () | method |
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Remove an eventlistener.
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false )
|
setup | () | method |
public function setup():void
Setup EventContext.
willTrigger | () | method |
public function willTrigger(type:String):Boolean
Test event trigger.
Parameters
type:String |
Boolean —
|