UIEventDispatcher
| Kind of class: | class |
|---|---|
| Inherits from: | EventDispatcher |
| Classpath: | mx.events.UIEventDispatcher |
| File last modified: | Tuesday, 18 December 2007, 15:44:38 |
event listening and dispatching for UIObjects.
Summary
Class properties
- keyEvents : Object
- list of supported keyboard events
- loadEvents : Object
- load and unload events
- lowLevelEvents : Object
- _fEventDispatcher : UIEventDispatcher
Class properties inherited from EventDispatcher
Instance properties
- __origAddEventListener : Function
- owner : Object
- __sentLoadEvent
Class methods
- addKeyEvents (obj:Object) : Void
- removeKeyEvents (obj:Object) : Void
- addLoadEvents (obj:Object) : Void
- removeLoadEvents (obj:Object) : Void
- initialize (obj:Object) : Void
- add listening and dispatching methods to an object
Class methods inherited from EventDispatcher
Instance methods
- dispatchEvent (eventObj:Object) : Void
- dispatch the event to all listeners
- __addEventListener (event:String, handler) : Void
- removeEventListener (event:String, handler) : Void
- remove a listener for a particular event
Instance methods inherited from EventDispatcher
Class properties
_fEventDispatcher
keyEvents
static keyEvents:Object = { keyDown: 1, keyUp: 1 }
(read)
list of supported keyboard events
loadEvents
static loadEvents:Object = { load: 1, unload: 1}
(read)
load and unload events
lowLevelEvents
static lowLevelEvents:Object = { keyEvents: ["addKeyEvents", "removeKeyEvents"],
(read)
Instance properties
__origAddEventListener
__origAddEventListener:Function
(read)
__sentLoadEvent
__sentLoadEvent
(read)
owner
owner:Object
(read)
Class methods
addKeyEvents
static function addKeyEvents (
obj:Object) : Void
addLoadEvents
static function addLoadEvents (
obj:Object) : Void
initialize
static function initialize (
obj:Object) : Void
add listening and dispatching methods to an object
Parameters:
object:
the object to receive the methods
removeKeyEvents
static function removeKeyEvents (
obj:Object) : Void
removeLoadEvents
static function removeLoadEvents (
obj:Object) : Void
Instance methods
__addEventListener
function __addEventListener (
event:String,
handler) : Void
dispatchEvent
function dispatchEvent (
eventObj:Object) : Void
dispatch the event to all listeners
Parameters:
eventObj:
an Event or one of its subclasses describing the event
Overrides:
Event handlers
onKeyDown
function onKeyDown (
Void) : Void
onKeyUp
function onKeyUp (
Void) : Void
onLoad
function onLoad (
Void) : Void
onUnload
function onUnload (
Void) : Void