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.

}<br />

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

trace ("percent loaded: " + percentLoaded);<br />

trace ("---------------------------------");<br />

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

clearInterval(intervalID);<br />

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

}<br />

doc.load("[place a valid URL pointing to an XML file here]");<br />

var intervalID:Number = setInterval(checkProgress, 100, doc);<br />

See also<br />

getBytesTotal (XML.getBytesTotal method)<br />

getBytesTotal (XML.getBytesTotal method)<br />

public getBytesTotal() : Number<br />

Returns the size, in bytes, of the XML document.<br />

Returns<br />

Number - An integer.<br />

Example<br />

See example for XML.getBytesLoaded().<br />

See also<br />

getBytesLoaded (XML.getBytesLoaded method)<br />

ignoreWhite (XML.ignoreWhite property)<br />

public ignoreWhite : Boolean<br />

Default setting is false. When set to true, text nodes that contain only white space are<br />

discarded during the parsing process. Text nodes with leading or trailing white space are<br />

unaffected.<br />

Usage 1: You can set the ignoreWhite property for individual XML objects, as the following<br />

code shows:<br />

my_xml.ignoreWhite = true;<br />

Usage 2: You can set the default ignoreWhite property for XML objects, as the following<br />

code shows:<br />

684 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!