EventXml

Kind of class:class
Inherits from:DispatchableXml < CoreXml < XML
Version:04/03/07
Author:Aaron Clinger, Mike Creighton
Classpath:org.casaframework.xml.EventXml
File last modified:Tuesday, 03 April 2007, 17:26:20
Dispatches XML event handler notification using org.casaframework.event.EventDispatcher.
Example:
import org.casaframework.xml.EventXml;

function onXmlLoad(sender:EventXml, success:Boolean, status:Number):Void {
    if (success) {
        trace("Xml loaded: " + sender);
    } else {
        trace("Xml error: " + status);
    }
}

var myXml:EventXml = new EventXml();
this.myXml.addEventObserver(this, EventXml.EVENT_LOAD, "onXmlLoad");
this.myXml.load("example.xml");
Events broadcast to listeners:
onData = function (sender:EventXml, src:String) {}
onHttpStatus = function (sender:EventXml, httpStatus:Number) {}
onLoad = function (sender:EventXml, success:Boolean, status:Number) {}

Summary

Constructor
Instance properties
Instance properties inherited from DispatchableXml
Instance properties 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)