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
Class properties inherited from EventDispatcher
Instance properties
Class methods
Class methods inherited from EventDispatcher
Instance methods
Event handlers

Class properties

_fEventDispatcher

static _fEventDispatcher:UIEventDispatcher = undefined
(read)

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

removeEventListener

function removeEventListener (
event:String, handler) : Void

remove a listener for a particular event
#
Parameters:
event:
the name of the event ("click", "change", etc)
#

Event handlers

onKeyDown

function onKeyDown (
Void) : Void

onKeyUp

function onKeyUp (
Void) : Void

onLoad

function onLoad (
Void) : Void

onUnload

function onUnload (
Void) : Void