Main Page | Packages | Class Tree | Index | Help

mx.events

class EventDispatcher

Object
  |
  +--mx.events.EventDispatcher

All Known Subclasses: UIEventDispatcher

class EventDispatcher
extends Object

base class for event listening and dispatching



Field Summary

static
_fEventDispatcher: EventDispatcher
make a instance of ourself so we can add methods to other objects

static
exceptions: Object
these events do not get called via backdoor because of name collisions with other methods

Fields inherited from class Object

__proto__, constructor, prototype

Method Summary

static
_removeEventListener ( queue: Object, event: String, handler ): Void
internal function for removing listeners


addEventListener ( event: String, handler ): Void
add a listener for a particular event


dispatchEvent ( eventObj: Object ): Void
dispatch the event to all listeners


dispatchQueue ( queueObj: Object, eventObj: Object ): Void
internal function for dispatching events

static
initialize ( object: Object ): Void
add listening and dispatching methods to an object


removeEventListener ( event: String, handler ): Void
remove a listener for a particular event

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Field Documentation

_fEventDispatcher

static var _fEventDispatcher: EventDispatcher
make a instance of ourself so we can add methods to other objects

exceptions

static var exceptions: Object
these events do not get called via backdoor because of name collisions with other methods


Method Documentation

_removeEventListener

static function _removeEventListener(queue: Object,
 event: String,
 handler): Void
internal function for removing listeners

addEventListener

function addEventListener(event: String,
 handler): Void
add a listener for a particular event

Parameters:
event
the name of the event ("click", "change", etc)
handler
the function or object that should be called

dispatchEvent

function dispatchEvent(eventObj: Object): Void
dispatch the event to all listeners

Parameters:
eventObj
an Event or one of its subclasses describing the event

dispatchQueue

function dispatchQueue(queueObj: Object,
 eventObj: Object): Void
internal function for dispatching events

initialize

static function initialize(object: Object): Void
add listening and dispatching methods to an object

Parameters:
object
the object to receive the methods

removeEventListener

function removeEventListener(event: String,
 handler): Void
remove a listener for a particular event

Parameters:
event
the name of the event ("click", "change", etc)
handler
the function or object that should be called

The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc