| Package | sandy.parser |
| Class | public class ColladaParser |
| Inheritance | ColladaParser AParser flash.events.EventDispatcher |
| Implements | IParser |
Creates a Group as rootnode which appends all geometries it finds. Recommended settings for the COLLADA exporter:
var parser:IParser = Parser.create( "/path/to/my/colladafile.dae", Parser.COLLADA );
[Embed( source="/path/to/my/colladafile.dae", mimeType="application/octet-stream" )]
private var MyCollada:Class;
...
var parser:IParser = Parser.create( new MyCollada(), Parser.COLLADA );
| Property | Defined by | ||
|---|---|---|---|
| RELATIVE_TEXTURE_PATH : String | ColladaParser | ||
![]() | standardAppearance : Appearance
Set the standard appearance for all the parsed objects.
| AParser | |
| Method | Defined by | ||
|---|---|---|---|
|
ColladaParser(p_sUrl:*, p_nScale:Number)
Creates a new COLLADA parser instance.
| ColladaParser | ||
![]() |
parse():void
Load the file that needs to be parsed.
| AParser | |
| Method | Defined by | ||
|---|---|---|---|
|
parseData(e:Event = null):void
Starts the parsing process
| ColladaParser | ||
| RELATIVE_TEXTURE_PATH | property |
public var RELATIVE_TEXTURE_PATH:String
| ColladaParser | () | constructor |
public function ColladaParser(p_sUrl:*, p_nScale:Number)Creates a new COLLADA parser instance.
Parametersp_sUrl:* — Can be either a string pointing to the location of the
COLLADA file or an instance of an embedded COLLADA file
|
|
p_nScale:Number — The scale factor
|
| parseData | () | method |
protected override function parseData(e:Event = null):voidStarts the parsing process
Parameterse:Event (default = null) — The Event object
|