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

Server-side actionscript language reference
Table of Contents

Advertisement

The following example creates a new XML packet and uses the
iterate through the child nodes of the root node:
// Create a new XML document.
var doc = new XML("<rootNode><oldest /><middle /><youngest /></rootNode>");
var rootNode = doc.firstChild;
// Use lastChild to iterate through the child nodes of rootNode.
for (var aNode = rootNode.lastChild; aNode != null;
aNode=aNode.previousSibling) {
trace(aNode);
}
/*
output:
<youngest />
<middle />
<oldest />
*/
In Flash Media Server, the output of
file and Application inspector.
See also
XML.appendChild(), XML.insertBefore(),
XML.load()
Availability
Flash Media Server 2.
Usage
my_xml.load(url)
Parameters
A string; the URL where the XML document to be loaded is located. If the SWF file
url
that issues this call is running in a web browser,
file.
Returns
Nothing.
statements appears in the application log
trace()
XML.removeNode()
must be in the same domain as the SWF
url
property to
XML.lastChild
XML class
191

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?

This manual is also suitable for:

Flash media server 2

Table of Contents