MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 127

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 126
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.
Vedere la pagina 126
1 2 ... 122 123 124 125 126 127 128 129 130 131 132 ... 154 155

Commenti su questo manuale

Nessun commento