| Package | sandy.parser |
| Class | public class ParserStack |
| Inheritance | ParserStack flash.events.EventDispatcher |
An utility class that acts as a parser stack. You can a set of parser objects, and it process to the loading/parsing automatially and sequentially.
| Property | Defined by | ||
|---|---|---|---|
| progress : Number = 0
The percent of the loading that is complete.
| ParserStack | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| ParserStack | ||
|
Add a parser to the list.
| ParserStack | ||
|
clear():void
Clears the stack.
| ParserStack | ||
|
getGroupByName(p_sName:String):Group
Get the parser group object associated with the parser name.
| ParserStack | ||
|
getParserByName(p_sName:String):IParser
Retrieve the parser you stored by the associated name.
| ParserStack | ||
|
start():void
Launch the loading/parsing process.
| ParserStack | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the parsing process is complete. | ParserStack | |||
| Dispatched when an error occurs in the parsing process. | ParserStack | |||
| Dispatched when data is received as the parsing progresses. | ParserStack | |||
| Constant | Defined by | ||
|---|---|---|---|
| COMPLETE : String = "parserstack_complete" [static]
Defines the value of the
type property of a parserstack_complete event object. | ParserStack | ||
| ERROR : String = "parserstack_error" [static]
Defines the value of the
type property of a parserstack_error event object. | ParserStack | ||
| PROGRESS : String = "parserstack_progress" [static]
Defines the value of the
type property of a parserstack_progress event object. | ParserStack | ||
| progress | property |
public var progress:Number = 0The percent of the loading that is complete.
| ParserStack | () | constructor |
public function ParserStack()Constructor.
| add | () | method |
public function add(p_sName:String, p_oParser:IParser):voidAdd a parser to the list.
Parametersp_sName:String — the parser name to reference with
|
|
p_oParser:IParser — The parser instance
|
| clear | () | method |
public function clear():voidClears the stack.
| getGroupByName | () | method |
public function getGroupByName(p_sName:String):GroupGet the parser group object associated with the parser name. Returns null if no parser is associated with that name
Parametersp_sName:String |
Group |
| getParserByName | () | method |
public function getParserByName(p_sName:String):IParserRetrieve the parser you stored by the associated name. If no parser with that name is found, null is returned
Parametersp_sName:String |
IParser |
| start | () | method |
public function start():voidLaunch the loading/parsing process.
| parserstack_complete | event |
sandy.parser.ParserStack
sandy.parser.ParserStack.COMPLETE
Dispatched when the parsing process is complete.
Defines the value of the type property of a parserstack_complete event object.
| parserstack_error | event |
sandy.parser.ParserStack
sandy.parser.ParserStack.ERROR
Dispatched when an error occurs in the parsing process.
Defines the value of the type property of a parserstack_error event object.
| parserstack_progress | event |
sandy.parser.ParserStack
sandy.parser.ParserStack.PROGRESS
Dispatched when data is received as the parsing progresses.
Defines the value of the type property of a parserstack_progress event object.
| COMPLETE | constant |
public static const COMPLETE:String = "parserstack_complete"
Defines the value of the type property of a parserstack_complete event object.
| ERROR | constant |
public static const ERROR:String = "parserstack_error"
Defines the value of the type property of a parserstack_error event object.
| PROGRESS | constant |
public static const PROGRESS:String = "parserstack_progress"
Defines the value of the type property of a parserstack_progress event object.