Getbytestotal (Xml.getbytestotal Method); Ignorewhite (Xml.ignorewhite Property) - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

var percentLoaded:Number = Math.floor((bytesLoaded / bytesTotal ) 100);
trace ("milliseconds elapsed: " + getTimer());
trace ("bytesLoaded: " + bytesLoaded);
trace ("bytesTotal: " + bytesTotal);
trace ("percent loaded: " + percentLoaded);
trace ("---------------------------------");
}
doc.onLoad = function(success:Boolean) {
clearInterval(intervalID);
trace("intervalID: " + intervalID);
}
doc.load("[place a valid URL pointing to an XML file here]");
var intervalID:Number = setInterval(checkProgress, 100, doc);
See also

getBytesTotal (XML.getBytesTotal method)

getBytesTotal (XML.getBytesTotal method)
public getBytesTotal() : Number
Returns the size, in bytes, of the XML document.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
- An integer.
Number
Example
See example for
XML.getBytesLoaded()
See also
getBytesLoaded (XML.getBytesLoaded method)

ignoreWhite (XML.ignoreWhite property)

public ignoreWhite :
Default setting is
false
discarded during the parsing process. Text nodes with leading or trailing white space are
unaffected.
.
Boolean
. When set to
, text nodes that contain only white space are
true
XML
725

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash lite 2

Table of Contents