1
edit
Changes
→Parser Interface
*/
getFileSize()
/* This example only demonstrates syntax. It hasn't been tested.
*/
function startCallback(parser){
alert( "Using parser version: " + parser.getVersion();
}
function parseCallback(parser){
parser.getProgress();
parser.getNumParsedPoints();
parser.getFileSize();
parser.getNumTotalPoints();
}
function finishCallback(){
}
var parser = new ASCParser();
parser.addEventListener("onstart", startCallback);
parser.addEventListener("onparse", parseCallback);
parser.addEventListener("onfinish", finishCallback);
parser.load(somePath);
</pre>