Packagesandy.parser
Classpublic final class Parser3DS
InheritanceParser3DS Inheritance AParser Inheritance flash.events.EventDispatcher
ImplementsIParser

Transforms a 3DS file into Sandy geometries.

Creates a Group as rootnode which appends all geometries it finds.


Example
To parse a 3DS file at runtime:
      var parser:IParser = Parser.create( "/path/to/my/3dsfile.3ds", Parser.3DS );
  



Public Properties
 PropertyDefined by
 InheritedstandardAppearance : Appearance
Set the standard appearance for all the parsed objects.
AParser
Protected Properties
 PropertyDefined by
 Inheritedm_eProgress : ParserEvent
[static]
AParser
 Inheritedm_nScale : Number
AParser
 Inheritedm_oFile : Object
AParser
 Inheritedm_oFileLoader : URLLoader
AParser
 Inheritedm_oGroup : Group
AParser
 Inheritedm_oStandardAppearance : Appearance
AParser
 Inheritedm_sDataFormat : String
AParser
Public Methods
 MethodDefined by
  
Parser3DS(p_sUrl:String, p_nScale:Number)
Creates a new Parser3DS instance.
Parser3DS
 Inherited
parse():void
Load the file that needs to be parsed.
AParser
Protected Methods
 MethodDefined by
  
parseData(e:Event = null):void
Starts the parsing process
Parser3DS
Protected Constants
 ConstantDefined by
 Inheritedm_oLoader : URLLoader
AParser
Constructor detail
Parser3DS()constructor
public function Parser3DS(p_sUrl:String, p_nScale:Number)

Creates a new Parser3DS instance.

Parameters
p_sUrl:String — A String pointing to the location of the 3DS file
 
p_nScale:Number — The scale factor
Method detail
parseData()method
protected override function parseData(e:Event = null):void

Starts the parsing process

Parameters
e:Event (default = null) — The Event object