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.
protected static var m_eProgress:ParserEvent
protected var m_nScale:Number
protected var m_oFile:Object
protected var m_oFileLoader:URLLoader
protected var m_oGroup:Group
protected var m_oStandardAppearance:Appearance
protected var m_sDataFormat:String
standardAppearance:Appearance [write-only]
Set the standard appearance for all the parsed objects.
Implementation
public function set standardAppearance(value:Appearance):void
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
|
public function parse():void
Load the file that needs to be parsed. When done, call the 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
|
protected const m_oLoader:URLLoader
ASDoc: Preliminary documentation for the Sandy 3D Engine, version 3.0.1