XML class
203
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
src
parameter is a string that contains XML text downloaded from
the server, unless an error occurs during the download. In this situation, the
src
parameter is
undefined
.
By default, the
XML.onData
event handler invokes
XML.onLoad
. You can override the
XML.onData
event handler with custom behavior, but
XML.onLoad
is not called unless you
call it in your
XML.onData
implementation.
Example
The following example shows what the
XML.onData
event handler looks like by default:
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.onData
event handler to intercept the XML text without parsing it.
XML.onHTTPStatus
Availability
Flash Media Server 2.
Usage
myXML
.onHTTPStatus(
httpStatus
){}
Parameters
httpStatus
A number; the HTTP status code returned by the server. For example, a value
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
HTTP specification
.
Содержание FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT...
Страница 1: ...Server Side ActionScript Language Reference...
Страница 4: ...4 Contents...
Страница 228: ...228 Server Side ActionScript Language Reference...
Страница 234: ...234 Server Side Information Objects...