User Guide

730 ActionScript classes
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
src:String - A string or undefined; the raw data, usually in XML format, that is sent by the
server.
Example
The following example shows what the XML.onData event handler looks like by default:
XML.prototype.onData = function (src:String) {
if (src == undefined) {
this.onLoad(false);
} else {
this.parseXML(src);
this.loaded = true;
this.onLoad(true);
}
}
You can override the XML.onData event handler to intercept the XML text without
parsing it.
See also
onLoad (XML.onLoad handler)
onLoad (XML.onLoad handler)
onLoad = function(success:Boolean) {}
Invoked by Flash Player when an XML document is received from the server. If the XML
document is received successfully, the
success parameter is true. If the document was not
received, or if an error occurred in receiving the response from the server, the
success
parameter is
false. The default, implementation of this method is not active. To override the
default implementation, you must assign a function that contains custom actions.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
success:Boolean - A Boolean value that evaluates to true if the XML object is successfully
loaded with a
XML.load() or XML.sendAndLoad() operation; otherwise, it is false.