03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

var elapsedTime:Number = endTime-startTime;<br />

if (success) {<br />

my_txt.text = "xmlDecl:"+newline+my_xml.xmlDecl+newline+newline;<br />

my_txt.text += "contentType:"+newline+my_xml.contentType+newline+newline;<br />

my_txt.text += "docTypeDecl:"+newline+my_xml.docTypeDecl+newline+newline;<br />

my_txt.text += "packet:"+newline+my_xml.toString()+newline+newline;<br />

} else {<br />

my_txt.text = "Unable to load remote XML."+newline+newline;<br />

}<br />

my_txt.text += "loaded in: "+elapsedTime+" ms.";<br />

};<br />

my_xml.load("http://www.helpexamples.com/crossdomain.xml");<br />

var startTime:Number = getTimer();<br />

See also<br />

docTypeDecl (XML.docTypeDecl property)<br />

XMLNode<br />

Object<br />

|<br />

+-XMLNode<br />

public class XMLNode<br />

extends Object<br />

An XML document is represented in Flash by the XML class. Each element of the hierarchical<br />

document is represented by an XMLNode object.<br />

See also<br />

hasXMLSocket (capabilities.hasXMLSocket property)<br />

Property summary<br />

Modifiers Property Description<br />

696 ActionScript classes<br />

attributes:Object An object containing all of the attributes of the<br />

specified XML instance.<br />

childNodes:Array<br />

[read-only]<br />

firstChild:XMLNode<br />

[read-only]<br />

An array of the specified XML object's children.<br />

Evaluates the specified XML object <strong>and</strong><br />

references the first child in the parent node's child<br />

list.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!