EventXml
Kind of class: | class |
---|---|
Inherits from: | DispatchableXml < CoreXml < XML |
Version: | 04/03/07 |
Author: | Aaron Clinger, Mike Creighton |
Classpath: | org.casalib.xml.EventXml |
File last modified: | Monday, 01 December 2008, 13:34:40 |
Dispatches XML event handler notification using org.casalib.event.EventDispatcher.
Example:
-
import org.casalib.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 broadcasted to listeners:
onData = function (sender:EventXml, src:String) {}
onHttpStatus = function (sender:EventXml, httpStatus:Number) {}
onLoad = function (sender:EventXml, success:Boolean, status:Number) {}
Summary
Constructor
- EventXml (text:String)
Class properties
- EVENT_LOAD : String
- EVENT_DATA : String
- EVENT_HTTP_STATUS : String
Instance methods
Instance methods inherited from DispatchableXml
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)