| Package | away3d.loaders.parsers |
| Class | public class AWD2Parser |
| Inheritance | AWD2Parser ParserBase flash.events.EventDispatcher |
| Method | Defined By | ||
|---|---|---|---|
Creates a new AWDParser object. | AWD2Parser | ||
![]() | isBitmapDataValid(bitmapData:BitmapData):Boolean
Validates a bitmapData loaded before assigning to a default BitmapMaterial
| ParserBase | |
![]() | parseAsync(data:*, frameLimit:Number = 30):void
Parse data (possibly containing bytearry, plain text or BitmapAsset) asynchronously, meaning that
the parser will periodically stop parsing so that the AVM may proceed to the
next frame. | ParserBase | |
supportsData(data:*):Boolean [static]
Tests whether a data block can be parsed by the parser. | AWD2Parser | ||
supportsType(extension:String):Boolean [static]
Indicates whether or not a given file extension is supported by the parser. | AWD2Parser | ||
| Method | Defined By | ||
|---|---|---|---|
![]() | addDependency(id:String, req:URLRequest, retrieveAsRawData:Boolean = false, data:* = null, suppressErrorEvents:Boolean = false):void | ParserBase | |
![]() | dieWithError(message:String = Unknown parsing error):void | ParserBase | |
![]() | finalizeAsset(asset:IAsset, name:String = null):void | ParserBase | |
![]() | finishParsing():void
Finish parsing the data. | ParserBase | |
![]() | getByteData():ByteArray | ParserBase | |
![]() | getTextData():String | ParserBase | |
![]() | hasTime():Boolean
Tests whether or not there is still time left for parsing within the maximum allowed time frame per session. | ParserBase | |
![]() | onInterval(event:TimerEvent = null):void
Called when the parsing pause interval has passed and parsing can proceed. | ParserBase | |
![]() | pauseAndRetrieveDependencies():void | ParserBase | |
proceedParsing():Boolean [override]
Parse the next block of data. | AWD2Parser | ||
| Constant | Defined By | ||
|---|---|---|---|
| AWDBYTEARRAY : uint = 32 [static] | AWD2Parser | ||
| AWDSTRING : uint = 31 [static] | AWD2Parser | ||
| BADDR : uint = 23 [static] | AWD2Parser | ||
| BOOL : uint = 21 [static] | AWD2Parser | ||
| COLOR : uint = 22 [static] | AWD2Parser | ||
| DEFLATE : uint = 1 [static] | AWD2Parser | ||
| FLOAT32 : uint = 7 [static] | AWD2Parser | ||
| FLOAT64 : uint = 8 [static] | AWD2Parser | ||
| INT16 : uint = 2 [static] | AWD2Parser | ||
| INT32 : uint = 3 [static] | AWD2Parser | ||
| INT8 : uint = 1 [static] | AWD2Parser | ||
| LZMA : uint = 2 [static] | AWD2Parser | ||
| MTX3x2 : uint = 44 [static] | AWD2Parser | ||
| MTX3x3 : uint = 45 [static] | AWD2Parser | ||
| MTX4x3 : uint = 46 [static] | AWD2Parser | ||
| MTX4x4 : uint = 47 [static] | AWD2Parser | ||
| UINT16 : uint = 5 [static] | AWD2Parser | ||
| UINT32 : uint = 6 [static] | AWD2Parser | ||
| UINT8 : uint = 4 [static] | AWD2Parser | ||
| UNCOMPRESSED : uint = 0 [static] | AWD2Parser | ||
| VECTOR2x1 : uint = 41 [static] | AWD2Parser | ||
| VECTOR3x1 : uint = 42 [static] | AWD2Parser | ||
| VECTOR4x1 : uint = 43 [static] | AWD2Parser | ||
| AWD2Parser | () | Constructor |
public function AWD2Parser()Creates a new AWDParser object.
| proceedParsing | () | method |
override protected function proceedParsing():BooleanParse the next block of data.
ReturnsBoolean — Whether or not more data needs to be parsed. Can be ParserBase.PARSING_DONE or
ParserBase.MORE_TO_PARSE.
|
| resolveDependency | () | method |
override arcane function resolveDependency(resourceDependency:ResourceDependency):voidResolve a dependency when it's loaded. For example, a dependency containing an ImageResource would be assigned to a Mesh instance as a BitmapMaterial, a scene graph object would be added to its intended parent. The dependency should be a member of the dependencies property.
Parameters
resourceDependency:ResourceDependency — The dependency to be resolved.
|
| resolveDependencyFailure | () | method |
override arcane function resolveDependencyFailure(resourceDependency:ResourceDependency):voidResolve a dependency loading failure. Used by parser to eventually provide a default map
Parameters
resourceDependency:ResourceDependency — The dependency to be resolved.
|
| resolveDependencyName | () | method |
override arcane function resolveDependencyName(resourceDependency:ResourceDependency, asset:IAsset):StringResolve a dependency name
Parameters
resourceDependency:ResourceDependency — The dependency to be resolved.
| |
asset:IAsset |
String |
| supportsData | () | method |
public static function supportsData(data:*):BooleanTests whether a data block can be parsed by the parser.
Parameters
data:* — The data block to potentially be parsed.
|
Boolean — Whether or not the given data is supported.
|
| supportsType | () | method |
public static function supportsType(extension:String):BooleanIndicates whether or not a given file extension is supported by the parser.
Parameters
extension:String — The file extension of a potential file to be parsed.
|
Boolean — Whether or not the given file type is supported.
|
| AWDBYTEARRAY | Constant |
public static const AWDBYTEARRAY:uint = 32| AWDSTRING | Constant |
public static const AWDSTRING:uint = 31| BADDR | Constant |
public static const BADDR:uint = 23| BOOL | Constant |
public static const BOOL:uint = 21| COLOR | Constant |
public static const COLOR:uint = 22| DEFLATE | Constant |
public static const DEFLATE:uint = 1| FLOAT32 | Constant |
public static const FLOAT32:uint = 7| FLOAT64 | Constant |
public static const FLOAT64:uint = 8| INT16 | Constant |
public static const INT16:uint = 2| INT32 | Constant |
public static const INT32:uint = 3| INT8 | Constant |
public static const INT8:uint = 1| LZMA | Constant |
public static const LZMA:uint = 2| MTX3x2 | Constant |
public static const MTX3x2:uint = 44| MTX3x3 | Constant |
public static const MTX3x3:uint = 45| MTX4x3 | Constant |
public static const MTX4x3:uint = 46| MTX4x4 | Constant |
public static const MTX4x4:uint = 47| UINT16 | Constant |
public static const UINT16:uint = 5| UINT32 | Constant |
public static const UINT32:uint = 6| UINT8 | Constant |
public static const UINT8:uint = 4| UNCOMPRESSED | Constant |
public static const UNCOMPRESSED:uint = 0| VECTOR2x1 | Constant |
public static const VECTOR2x1:uint = 41| VECTOR3x1 | Constant |
public static const VECTOR3x1:uint = 42| VECTOR4x1 | Constant |
public static const VECTOR4x1:uint = 43