Packageaway3d.loaders.parsers
Classpublic class AWDParser
InheritanceAWDParser Inheritance ParserBase Inheritance flash.events.EventDispatcher

The AWDParser class is a wrapper for both AWD1Parser and AWD2Parser, and will find the right concrete parser for an AWD file.



Public Properties
 PropertyDefined By
 InheriteddataFormat : String
[read-only] The data format of the file data to be parsed.
ParserBase
 InheriteddefaultBitmapData : BitmapData
[read-only] The url or id of the data or file to be parsed.
ParserBase
  dependencies : Vector.<ResourceDependency>
[override] [read-only] A list of dependencies that need to be loaded and resolved for the object being parsed.
AWDParser
  parsingComplete : Boolean
[override] [read-only]
AWDParser
 InheritedparsingFailure : Boolean
ParserBase
 InheritedparsingPaused : Boolean
[read-only]
ParserBase
Protected Properties
 PropertyDefined By
 Inherited_byteData : ByteArray
ParserBase
 Inherited_dataFormat : String
ParserBase
 Inherited_frameLimit : Number
ParserBase
 Inherited_lastFrameTime : Number
ParserBase
 Inherited_textData : String
ParserBase
Public Methods
 MethodDefined By
  
AWDParser
 Inherited
isBitmapDataValid(bitmapData:BitmapData):Boolean
Validates a bitmapData loaded before assigning to a default BitmapMaterial
ParserBase
 Inherited
parseBytesAsync(bytes:ByteArray, frameLimit:Number = 30):void
Parse byte array (possibly containing plain text) asynchronously, meaning that the parser will periodically stop parsing so that the AVM may proceed to the next frame.
ParserBase
 Inherited
parseTextAsync(str:String, frameLimit:Number = 30):void
Parse plaintext string asynchronously, meaning that the parser will periodically stop parsing so that the AVM may proceed to the next frame.
ParserBase
  
supportsData(data:*):Boolean
[static]
AWDParser
  
supportsType(suffix:String):Boolean
[static]
AWDParser
Protected Methods
 MethodDefined By
 Inherited
addDependency(id:String, req:URLRequest, retrieveAsRawData:Boolean = false, data:* = null):void
ParserBase
 Inherited
dieWithError(message:String = Unknown parsing error):void
ParserBase
 Inherited
finalizeAsset(asset:IAsset, name:String = null):void
ParserBase
 Inherited
Finish parsing the data.
ParserBase
 Inherited
hasTime():Boolean
Tests whether or not there is still time left for parsing within the maximum allowed time frame per session.
ParserBase
 Inherited
onInterval(event:TimerEvent = null):void
Called when the parsing pause interval has passed and parsing can proceed.
ParserBase
 Inherited
ParserBase
  
proceedParsing():Boolean
[override] Find the right conrete parser (AWD1Parser or AWD2Parser) and delegate actual parsing to it.
AWDParser
Protected Constants
 ConstantDefined By
 InheritedMORE_TO_PARSE : Boolean = false
[static] Returned by proceedParsing to indicate more parsing is needed, allowing asynchronous parsing.
ParserBase
 InheritedPARSING_DONE : Boolean = true
[static] Returned by proceedParsing to indicate no more parsing is needed.
ParserBase
Property Detail
dependenciesproperty
dependencies:Vector.<ResourceDependency>  [read-only] [override]

A list of dependencies that need to be loaded and resolved for the object being parsed.


Implementation
    public function get dependencies():Vector.<ResourceDependency>
parsingCompleteproperty 
parsingComplete:Boolean  [read-only] [override]


Implementation
    public function get parsingComplete():Boolean
Constructor Detail
AWDParser()Constructor
public function AWDParser()



Method Detail
proceedParsing()method
override protected function proceedParsing():Boolean

Find the right conrete parser (AWD1Parser or AWD2Parser) and delegate actual parsing to it.

Returns
Boolean
resumeParsingAfterDependencies()method 
override arcane function resumeParsingAfterDependencies():void

supportsData()method 
public static function supportsData(data:*):Boolean

Parameters

data:*

Returns
Boolean
supportsType()method 
public static function supportsType(suffix:String):Boolean

Parameters

suffix:String

Returns
Boolean