
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
124
// Create a new XML document.
var doc = new XML();
// Create a root node.
var rootNode = doc.createElement("rootNode");
// Create three child nodes.
var oldest = doc.createElement("oldest");
var middle = doc.createElement("middle");
var youngest = doc.createElement("youngest");
// Add the rootNode as the root of the XML document tree.
doc.appendChild(rootNode);
// Add each of the child nodes as children of rootNode.
rootNode.appendChild(oldest);
rootNode.appendChild(middle);
rootNode.appendChild(youngest);
// Use firstChild to iterate through the child nodes of rootNode.
for (var aNode = rootNode.firstChild; aNode != null; aNode = aNode.nextSibling) {
trace(aNode);
}
// Output:
// <oldest />
// <middle />
// <youngest />
XML.getBytesLoaded()
my_xml.getBytesLoaded()
Returns the number of bytes loaded (streamed) for the XML document. You can compare the value of
getBytesLoaded() with the value of getBytesTotal() to determine what percentage of an XML document has
loaded.
Availability
Flash Media Server 2
Returns
A number.
See also
XML.getBytesTotal()
XML.getBytesTotal()
my_xml.getBytesTotal()
Returns the size of the XML document, in bytes.
Availability
Flash Media Server 2
Returns
A number.
Commenti su questo manuale