XML
725
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
Number
- An integer.
Example
See example for
XML.getBytesLoaded()
.
See also
getBytesLoaded (XML.getBytesLoaded method)
ignoreWhite (XML.ignoreWhite property)
public ignoreWhite :
Boolean
Default setting is
false
. When set to
true
, text nodes that contain only white space are
discarded during the parsing process. Text nodes with leading or trailing white space are
unaffected.
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...