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

Server-side actionscript language reference
Table of Contents

Advertisement

In Flash Media Server, the output of
file and Application inspector.
The following example creates and parses an XML packet. The code loops through each child
node, and displays the node value using the
firstChild.nodeValue
var my_xml = new XML("<login><username>morton</username>
<password>good&amp;evil</password></login>");
trace("using firstChild:");
for (var i = 0; i<my_xml.firstChild.childNodes.length; i++) {
trace("\t"+my_xml.firstChild.childNodes[i].firstChild);
}
trace("");
trace("using firstChild.nodeValue:");
for (var i = 0; i<my_xml.firstChild.childNodes.length; i++) {
trace("\t"+my_xml.firstChild.childNodes[i].firstChild.nodeValue);
}
The following information is written to the log file:
using firstChild:
morton
good&evil
using firstChild.nodeValue:
morton
good&evil
In Flash Media Server, the output of
file and Application inspector.
See also
XML.nodeType
XML.onData
Availability
Flash Media Server 2.
Usage
my_xml.onData = function(src) {}
Parameters
A string or
src
undefined
202
Server-Side ActionScript Language Reference
trace()
firstChild
.
trace()
; the raw data, usually in XML format, that is sent by the server.
statements appears in the application log
property and
statements appears in the application log

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