Package | away3d.loaders |
Class | public class Collada |
Inheritance | Collada ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | container : Object3D
3d container object used for storing the parsed 3ds object.
| AbstractParser | |
containerData : ContainerData
Container data object used for storing the parsed collada data structure.
| Collada | ||
![]() | parsedChunks : int
Returns the total number of data chunks parsed
| AbstractParser | |
![]() | totalChunks : int
Returns the total number of data chunks available
| AbstractParser |
Method | Defined by | ||
---|---|---|---|
Collada
(data:*, init:Object = null)
Creates a new
Collada object. | Collada | ||
[static]
Loads and parses a collada file into a 3d container object.
| Collada | ||
[static]
Creates a 3d container object from the raw xml data of a collada file.
| Collada | ||
parseNext():void
Processes the next chunk in the parser
| Collada |
containerData | property |
public var containerData:ContainerData
Container data object used for storing the parsed collada data structure.
Collada | () | constructor |
public function Collada(data:*, init:Object = null)
Parameters
data:* — The xml data of a loaded file.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
texturePath:String (default = "") | |
autoLoadTextures:Boolean (default = true) | |
scaling:Number (default = 1) | |
shading:Boolean (default = false) | |
material:Material | |
centerMeshes:Boolean (default = false) | |
materials:Object |
See also
load | () | method |
public static function load(url:String, init:Object = null):Object3DLoader
Loads and parses a collada file into a 3d container object.
Parametersurl:String — The url location of the file to load.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
Object3DLoader —
A 3d loader object that can be used as a placeholder in a scene while the file is loading.
|
parse | () | method |
public static function parse(data:*, init:Object = null):ObjectContainer3D
Creates a 3d container object from the raw xml data of a collada file.
Parametersdata:* — The xml data of a loaded file.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
ObjectContainer3D —
A 3d loader object that can be used as a placeholder in a scene while the file is parsing.
|
parseNext | () | method |
public override function parseNext():void
Processes the next chunk in the parser