Packagesandy.parser
Classpublic final class ASEParser
InheritanceASEParser Inheritance AParser Inheritance flash.events.EventDispatcher
ImplementsIParser

Transforms an ASE file into Sandy geometries.

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


Example
To parse an ASE file at runtime:
      var parser:IParser = Parser.create( "/path/to/my/asefile.ase", Parser.ASE );
  

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



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
  
ASEParser(p_sUrl:*, p_nScale:Number)
Creates a new ASEParser instance
ASEParser
 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
ASEParser
Protected Constants
 ConstantDefined by
 Inheritedm_oLoader : URLLoader
AParser
Constructor detail
ASEParser()constructor
public function ASEParser(p_sUrl:*, p_nScale:Number)

Creates a new ASEParser instance

Parameters
p_sUrl:* — This can be either a String containing an URL or a an embedded object
 
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