03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - 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.

See also<br />

ignoreWhite (XML.ignoreWhite property), loaded (XML.loaded property), onLoad<br />

(XML.onLoad h<strong>and</strong>ler), useCodepage (System.useCodepage property)<br />

loaded (XML.loaded property)<br />

public loaded : Boolean<br />

The property that indicates whether the XML document has successfully loaded. If there is no<br />

custom onLoad() event h<strong>and</strong>ler defined for the XML object, Flash Player sets this property to<br />

true when the document-loading process initiated by the XML.load() call has completed<br />

successfully; otherwise, it is false. However, if you define a custom behavior for the<br />

onLoad() event h<strong>and</strong>ler for the XML object, you must be sure to set onload in that function.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5<br />

Example<br />

The following example uses the XML.loaded property in a simple script.<br />

var my_xml:XML = new XML();<br />

my_xml.ignoreWhite = true;<br />

my_xml.onLoad = function(success:Boolean) {<br />

trace("success: "+success);<br />

trace("loaded: "+my_xml.loaded);<br />

trace("status: "+my_xml.status);<br />

};<br />

my_xml.load("http://www.flash-mx.com/mm/problems/products.xml");<br />

Information is displayed in the Output panel when Flash invokes the onLoad() h<strong>and</strong>ler. If<br />

the call completes successfully, true is displayed for the loaded status in the Output panel.<br />

success: true<br />

loaded: true<br />

status: 0<br />

See also<br />

load (XML.load method), onLoad (XML.onLoad h<strong>and</strong>ler)<br />

1322 <strong>ActionScript</strong> classes

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

Saved successfully!

Ooh no, something went wrong!