EventXml
| Kind of class: | class |
|---|---|
| Inherits from: | CoreXml < XML |
| Implements: | |
| Version: | 02/06/07 |
| Author: | Aaron Clinger, Mike Creighton |
| Classpath: | org.casaframework.xml.EventXml |
| File last modified: | Wednesday, 07 February 2007, 09:40:44 |
Events broadcast to listeners:
onData = function (sender:EventSound, src:String) {} onHttpStatus = function (sender:EventSound, httpStatus:Number) {} onLoad = function (sender:EventXml, success:Boolean, status:Number) {} Summary
Constructor
Class properties
Instance properties
Instance properties inherited from CoreXml
Instance methods
- addEventObserver
- removeEventObserver
- removeEventObserversForEvent
- removeEventObserversForScope
- removeAllEventObservers
- dispatchEvent
- destroy
Instance methods inherited from CoreXml
Constructor
EventXml
function EventXml (
text:String)
Parameters:
text:
The XML text parsed to create the new XML object.
Class properties
EVENT_DATA
static EVENT_DATA:String = 'onData'
(read,write)
EVENT_HTTP_STATUS
static EVENT_HTTP_STATUS:String = 'onHttpStatus'
(read,write)
EVENT_LOAD
static EVENT_LOAD:String = 'onLoad'
(read,write)
Instance methods
addEventObserver
function addEventObserver (
scope:Object,
eventName:String,
eventHandler:String) : Boolean
Registers a function to receive notification when a event handler is invoked.
#Returns:
Returns
#true if the observer was established successfully; otherwise false.destroy
function destroy (
) : Void
Removes any internal variables, intervals, enter frames, internal MovieClips and event observers to allow the object to be garbage collected.
Always call
#Always call
destroy() before deleting last object pointer.Overrides:
Specified by:
dispatchEvent
function dispatchEvent (
eventName:String) : Boolean
Reports event to all subscribed objects.
#Returns:
Returns
#true if observer(s) listening to specifed event were found; otherwise false.removeAllEventObservers
function removeAllEventObservers (
) : Boolean
Removes all observers regardless of scope or event.
#Returns:
Returns
#true if observers were successfully removed; otherwise false.removeEventObserver
function removeEventObserver (
scope:Object,
eventName:String,
eventHandler:String) : Boolean
Removes specific observer for event.
#Returns:
Returns
#true if the observer was successfully found and removed; otherwise false.removeEventObserversForEvent
function removeEventObserversForEvent (
eventName:String) : Boolean
Removes all observers for a specified event.
#removeEventObserversForScope
function removeEventObserversForScope (
scope:Object) : Boolean
Removes all observers in a specified scope.
#