MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manual do Utilizador Página 127

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 155
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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.
Vista de página 126
1 2 ... 122 123 124 125 126 127 128 129 130 131 132 ... 154 155

Comentários a estes Manuais

Sem comentários