User Guide

1036 Chapter 2: ActionScript Language Reference
XML.loaded
Availability
Flash Player 5.
Usage
my_xml.loaded:Boolean
Description
Read-only property; a Boolean value that is true if the document-loading process initiated by the
XML.load() call has completed successfully; otherwise, it is
false.
Example
The following example uses the XML.loaded property in a simple script:
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean) {
trace("success: "+success);
trace("loaded: "+my_xml.loaded);
trace("status: "+my_xml.status);
};
my_xml.load("http://www.flash-mx.com/mm/problems/products.xml");
Information displays in the Output panel when the onLoad handler invokes. If the call completes
successfully,
true displays for the loaded status in the Output panel.
success: true
loaded: true
status: 0
See also
XML.load(), XML.onLoad