Onload (Xml.onload Handler) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- A string or
src:String
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
received, or if an error occurred in receiving the response from the server, the
parameter is
. The default, implementation of this method is not active. To override the
false
default implementation, you must assign a function that contains custom actions.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- A Boolean value that evaluates to
success:Boolean
loaded with a
XML.load()
730
ActionScript classes
; the raw data, usually in XML format, that is sent by the
undefined
success
or
XML.sendAndLoad()
parameter is
. If the document was not
true
if the XML object is successfully
true
operation; otherwise, it is
success
.
false

Advertisement

Table of Contents
loading

Table of Contents