Packagesandy.parser
Classpublic class ColladaParser
InheritanceColladaParser Inheritance AParser Inheritance flash.events.EventDispatcher
ImplementsIParser

Transforms a COLLADA XML document into Sandy geometries.

Creates a Group as rootnode which appends all geometries it finds. Recommended settings for the COLLADA exporter:


Example
To parse a COLLADA object at runtime:
      var parser:IParser = Parser.create( "/path/to/my/colladafile.dae", Parser.COLLADA );
  

To parse an embedded COLLADA object:
      [Embed( source="/path/to/my/colladafile.dae", mimeType="application/octet-stream" )]
      private var MyCollada:Class;
        ...
        var parser:IParser = Parser.create( new MyCollada(), Parser.COLLADA );
  



Public Properties
 PropertyDefined by
  RELATIVE_TEXTURE_PATH : String
Default path for COLLADA images.
ColladaParser
 InheritedstandardAppearance : Appearance
Set the standard appearance for all the parsed objects.
AParser
Public Methods
 MethodDefined by
  
ColladaParser(p_sUrl:*, p_nScale:Number)
Creates a new COLLADA parser instance.
ColladaParser
 Inherited
parse():void
Load the file that needs to be parsed.
AParser
Property detail
RELATIVE_TEXTURE_PATHproperty
public var RELATIVE_TEXTURE_PATH:String

Default path for COLLADA images.

Can this be done without??

Constructor detail
ColladaParser()constructor
public function ColladaParser(p_sUrl:*, p_nScale:Number)

Creates a new COLLADA parser instance.

Parameters
p_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.