Open main menu

CDOT Wiki β

Changes

XB PointStream

548 bytes added, 16:05, 23 November 2010
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>
1
edit