MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuel d'utilisateur Page 127

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 155
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 126
1 2 ... 122 123 124 125 126 127 128 129 130 131 132 ... 154 155

Commentaires sur ces manuels

Pas de commentaire