MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 203

Server-side actionscript language reference
Table of Contents

Advertisement

Returns
Nothing.
Description
Event handler; invoked when XML text has been completely downloaded from the server or
when an error occurs when XML text downloads from a server. This handler is invoked before
the XML is parsed, and you can use it to call a custom parsing routine instead of using the
Flash XML parser. The
the server, unless an error occurs during the download. In this situation, the
.
undefined
By default, the
XML.onData
event handler with custom behavior, but
XML.onData
call it in your
XML.onData
Example
The following example shows what the
XML.prototype.onData = function (src) {
if (src == undefined) {
this.onLoad(false);
} else {
this.parseXML(src);
this.loaded = true;
this.onLoad(true);
}
}
You can override the
XML.onHTTPStatus
Availability
Flash Media Server 2.
Usage
myXML.onHTTPStatus(httpStatus){}
Parameters
A number; the HTTP status code returned by the server. For example, a value
httpStatus
of 404 indicates that the server has not found a match for the requested URI. HTTP status
codes can be found in sections 10.4 and 10.5 of the
parameter is a string that contains XML text downloaded from
src
event handler invokes
implementation.
XML.onData
event handler to intercept the XML text without parsing it.
XML.onData
. You can override the
XML.onLoad
is not called unless you
XML.onLoad
event handler looks like by default:
HTTP
specification.
parameter is
src
XML class
203

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server 2

Table of Contents