XMLNode
1313
my_txt.setNewTextFormat(my_fmt);
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean) {
var endTime:Number = getTimer();
var elapsedTime:Number = endTime-startTime;
if (success) {
my_txt.text = "xmlDecl:"+my_xml.newline;
my_txt.text +=
"contentType:"+my_xml.contnewline;
my_txt.text +=
"docTypeDecl:"+my_xml.docTnewline;
my_txt.text += "packet:"+my_xml.toString()+newline;
} else {
my_txt.text = "Unable to load remote XML."+newline;
}
my_txt.text += "loaded in: "+elap" ms.";
};
my_xml.load("http://www.helpexamples.com/crossdomain.xml");
var startTime:Number = getTimer();
The
MovieClip.getNextHighestDepth()
method used in this example requires Flash Player
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth()
method.
See also
docTypeDecl (XML.docTypeDecl property)
XMLNode
Object
|
+-XMLNode
public class
XMLNode
extends Object
An XML document is represented in Flash by the XML class. Each element of the hierarchical
document is represented by an XMLNode object.
Availability:
ActionScript 1.0; Flash Player 5
See also
XML
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...