Packagesandy.parser
Classpublic class AParser
InheritanceAParser Inheritance flash.events.EventDispatcher
ImplementsIParser
SubclassesASEParser, ColladaParser, Parser3DS

ABSTRACT CLASS - super class for all parser objects.

This class should not be directly instatiated, but sub classed.
The AParser class is responsible for creating the root Group, loading files and handling the corresponding events.



Public Properties
 PropertyDefined by
  standardAppearance : Appearance
[write-only] Set the standard appearance for all the parsed objects.
AParser
Protected Properties
 PropertyDefined by
  m_eProgress : ParserEvent
[static]
AParser
  m_nScale : Number
AParser
  m_oFile : Object
AParser
  m_oFileLoader : URLLoader
AParser
  m_oGroup : Group
AParser
  m_oStandardAppearance : Appearance
AParser
  m_sDataFormat : String
AParser
Public Methods
 MethodDefined by
  
AParser(p_sFile:*, p_nScale:Number)
Creates a parser object.
AParser
  
parse():void
Load the file that needs to be parsed.
AParser
Protected Methods
 MethodDefined by
  
parseData(e:Event = null):void
This method is called when all files are loaded and initialized
AParser
Protected Constants
 ConstantDefined by
  m_oLoader : URLLoader
AParser
Property detail
m_eProgressproperty
protected static var m_eProgress:ParserEvent
m_nScaleproperty 
protected var m_nScale:Number
m_oFileproperty 
protected var m_oFile:Object
m_oFileLoaderproperty 
protected var m_oFileLoader:URLLoader
m_oGroupproperty 
protected var m_oGroup:Group
m_oStandardAppearanceproperty 
protected var m_oStandardAppearance:Appearance
m_sDataFormatproperty 
protected var m_sDataFormat:String
standardAppearanceproperty 
standardAppearance:Appearance  [write-only]

Set the standard appearance for all the parsed objects.

Implementation
    public function set standardAppearance(value:Appearance):void
Constructor detail
AParser()constructor
public function AParser(p_sFile:*, p_nScale:Number)

Creates a parser object. Creates a root Group, default appearance and sets up an URLLoader.

Parameters
p_sFile:* — Must be either a text string containing the location to a file or an embedded object
 
p_nScale:Number — The scale amount
Method detail
parse()method
public function parse():void

Load the file that needs to be parsed. When done, call the parseData method.

parseData()method 
protected function parseData(e:Event = null):void

This method is called when all files are loaded and initialized

Parameters
e:Event (default = null) — The event object
Constant detail
m_oLoaderconstant
protected const m_oLoader:URLLoader