Open main menu

CDOT Wiki β

Changes

XB PointStream

184 bytes added, 15:59, 23 November 2010
Parser Interface
<pre>
/*
Add an event listener to the parser. Once the event firesoccurs, theparser will call the associated function will be called, which will and pass in a referenceto itself. The parser needs to pass itself. This way back to the library since the library knows which parser it is could be working withmany parsers simultaneously.
@param {String} eventName - can beone of the following: "onstart" - must occur exactly once - func(parser) "onparse" - must occur one or many times - func(parser, {"VERTEX":[...], "COLOR":[...], etc...} "onfinish" - must occur exactly once - func(parser)
"hook" - ?
@param {Function} func - the function to call when the event occurs.
*/
addEventListener(eventName, func)
Begins to load the resource
@param {String} path - Path path to resource
*/
load(path)
1
edit