| Package | sandy.parser |
| Class | public class AParser |
| Inheritance | AParser flash.events.EventDispatcher |
| Implements | IParser |
| Subclasses | ASEParser, ColladaParser, Parser3DS |
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.
| Property | Defined by | ||
|---|---|---|---|
| standardAppearance : Appearance
[write-only]
Set the standard appearance for all the parsed objects.
| AParser | ||
| Method | Defined by | ||
|---|---|---|---|
|
AParser(p_sFile:*, p_nScale:Number)
Creates a parser object.
| AParser | ||
|
parse():void
Load the file that needs to be parsed.
| AParser | ||
| standardAppearance | property |
standardAppearance:Appearance [write-only]Set the standard appearance for all the parsed objects.
Implementation public function set standardAppearance(value:Appearance):void
| 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.
Parametersp_sFile:* — Must be either a text string containing the location
to a file or an embedded object.
|
|
p_nScale:Number — The scale amount.
|
| parse | () | method |
public function parse():voidLoad the file that needs to be parsed. When done, call the parseData method.