Package | away3dlite.loaders |
Class | public class AbstractParser |
Inheritance | AbstractParser flash.events.EventDispatcher |
Subclasses | AWData, Collada, Max3DS, MD2, MQO |
Property | Defined By | ||
---|---|---|---|
container : Object3D [read-only]
Retuns a 3d container object used for storing the parsed 3d object. | AbstractParser | ||
geometryLibrary : GeometryLibrary [read-only]
Retuns a geometryLibrary object used for storing the parsed geometry data. | AbstractParser | ||
material : Material
Overrides all materials in the model. | AbstractParser | ||
materialLibrary : MaterialLibrary [read-only]
Retuns a materialLibrary object used for storing the parsed material objects. | AbstractParser | ||
materials : Object
Overides materials in the model using name:value pairs. | AbstractParser | ||
parsedChunks : int [read-only]
Returns the total number of data chunks parsed
| AbstractParser | ||
parseTimeout : int = 40000
Defines a timeout period for file parsing (in milliseconds). | AbstractParser | ||
totalChunks : int [read-only]
Returns the total number of data chunks available
| AbstractParser |
Method | Defined By | ||
---|---|---|---|
Creates a new AbstractParser object. | AbstractParser | ||
addOnError(listener:Function):void
Default method for adding a parseError event listener
| AbstractParser | ||
addOnProgress(listener:Function):void
Default method for adding a parseProgress event listener
| AbstractParser | ||
addOnSuccess(listener:Function):void
Default method for adding a parseSuccess event listener
| AbstractParser | ||
parseGeometry(data:*):Object3D
Parses 3d file data. | AbstractParser | ||
removeOnError(listener:Function):void
Default method for removing a parseError event listener
| AbstractParser | ||
removeOnProgress(listener:Function):void
Default method for removing a parseProgress event listener
| AbstractParser | ||
removeOnSuccess(listener:Function):void
Default method for removing a parseSuccess event listener
| AbstractParser |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the 3d object parser fails to parse a file. | AbstractParser | |||
Dispatched when the 3d object parser progresses by one chunk. | AbstractParser | |||
Dispatched when the 3d object parser completes a file parse successfully. | AbstractParser |
container | property |
container:Object3D
[read-only] Retuns a 3d container object used for storing the parsed 3d object.
public function get container():Object3D
geometryLibrary | property |
geometryLibrary:GeometryLibrary
[read-only] Retuns a geometryLibrary object used for storing the parsed geometry data.
public function get geometryLibrary():GeometryLibrary
material | property |
public var material:Material
Overrides all materials in the model.
materialLibrary | property |
materialLibrary:MaterialLibrary
[read-only] Retuns a materialLibrary object used for storing the parsed material objects.
public function get materialLibrary():MaterialLibrary
materials | property |
materials:Object
Overides materials in the model using name:value pairs.
public function get materials():Object
public function set materials(value:Object):void
parsedChunks | property |
parsedChunks:int
[read-only] Returns the total number of data chunks parsed
public function get parsedChunks():int
parseTimeout | property |
public var parseTimeout:int = 40000
Defines a timeout period for file parsing (in milliseconds).
totalChunks | property |
totalChunks:int
[read-only] Returns the total number of data chunks available
public function get totalChunks():int
AbstractParser | () | Constructor |
public function AbstractParser()
Creates a new AbstractParser
object.
addOnError | () | method |
public function addOnError(listener:Function):void
Default method for adding a parseError event listener
Parameters
listener:Function — The listener function
|
addOnProgress | () | method |
public function addOnProgress(listener:Function):void
Default method for adding a parseProgress event listener
Parameters
listener:Function — The listener function
|
addOnSuccess | () | method |
public function addOnSuccess(listener:Function):void
Default method for adding a parseSuccess event listener
Parameters
listener:Function — The listener function
|
parseGeometry | () | method |
public function parseGeometry(data:*):Object3D
Parses 3d file data.
Parameters
data:* — The file data to be parsed. Can be in text or binary form.
|
Object3D — The parsed 3d object.
|
removeOnError | () | method |
public function removeOnError(listener:Function):void
Default method for removing a parseError event listener
Parameters
listener:Function — The listener function
|
removeOnProgress | () | method |
public function removeOnProgress(listener:Function):void
Default method for removing a parseProgress event listener
Parameters
listener:Function — The listener function
|
removeOnSuccess | () | method |
public function removeOnSuccess(listener:Function):void
Default method for removing a parseSuccess event listener
Parameters
listener:Function — The listener function
|
parseError | Event |
away3dlite.events.ParserEvent
away3dlite.events.ParserEvent
Dispatched when the 3d object parser fails to parse a file.
parseProgress | Event |
away3dlite.events.ParserEvent
away3dlite.events.ParserEvent
Dispatched when the 3d object parser progresses by one chunk.
parseSuccess | Event |
away3dlite.events.ParserEvent
away3dlite.events.ParserEvent
Dispatched when the 3d object parser completes a file parse successfully.