Package | away3d.loading.parsers |
Class | public class MD5MeshParser |
Inheritance | MD5MeshParser ParserBase flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
animation : SkeletonAnimation
[read-only]
| MD5MeshParser | ||
baseUri : String
The parent url of the file to be parsed.
| ParserBase | ||
dataFormat : String
The data format of the file data to be parsed.
| ParserBase | ||
defaultBitmapData : BitmapData
The url or id of the data or file to be parsed.
| ParserBase | ||
dependencies : Vector
A list of dependencies that need to be loaded and resolved for the object being parsed.
| ParserBase | ||
eventVerbosity : int
The threshold that define which events are dispatched.
| ParserBase | ||
handle : IResource
The object that will contain all the parsed data.
| ParserBase | ||
parsingFailure : Boolean | ParserBase | ||
uri : String
The url or id of the data or file to be parsed.
| ParserBase |
Method | Defined by | ||
---|---|---|---|
MD5MeshParser
(uri:String, additionalRotationAxis:Vector3D = null, additionalRotationRadians:Number = 0)
Creates a new MD5MeshParser object.
| MD5MeshParser | ||
isBitmapDataValid(bitmapData:BitmapData):Boolean
Validates a bitmapData loaded before assigning to a default BitmapMaterial
| ParserBase | ||
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 | ||
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]
Tests whether a data block can be parsed by the parser.
| MD5MeshParser | ||
supportsType(extension:String):Boolean
[static]
Indicates whether or not a given file extension is supported by the parser.
| MD5MeshParser |
Method | Defined by | ||
---|---|---|---|
finishParsing():void
Finish parsing the data.
| ParserBase | ||
hasTime():Boolean
Tests whether or not there is still time left for parsing within the maximum allowed time frame per session.
| ParserBase | ||
Creates the object that will be returned to the user and will contain all the loaded data.
| MD5MeshParser | ||
onInterval(event:TimerEvent = null):void
Called when the parsing pause interval has passed and parsing can proceed.
| ParserBase | ||
proceedParsing():Boolean
Parse the next block of data.
| MD5MeshParser |
animation | property |
animation:SkeletonAnimation
[read-only]Implementation
public function get animation():SkeletonAnimation
MD5MeshParser | () | constructor |
public function MD5MeshParser(uri:String, additionalRotationAxis:Vector3D = null, additionalRotationRadians:Number = 0)
Parameters
uri:String — The url or id of the data or file to be parsed.
|
|
additionalRotationAxis:Vector3D (default = null )
|
|
additionalRotationRadians:Number (default = 0 )
|
initHandle | () | method |
protected override function initHandle():IResource
Creates the object that will be returned to the user and will contain all the loaded data. This allows
ResourceManager
to return an object handle regardless of whether the object was loaded or not,
which in turn allows users to add objects to the scene or assign materials before they are actually loaded.
This method needs to be overridden by concrete subclasses.
IResource —
A reference to the handle.
|
proceedParsing | () | method |
protected override function proceedParsing():Boolean
Parse 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 .
|
supportsData | () | method |
public static function supportsData(data:*):Boolean
Tests whether a data block can be parsed by the parser.
Parametersdata:* — The data block to potentially be parsed.
|
Boolean — Whether or not the given data is supported.
|
supportsType | () | method |
public static function supportsType(extension:String):Boolean
Indicates whether or not a given file extension is supported by the parser.
Parametersextension:String — The file extension of a potential file to be parsed.
|
Boolean — Whether or not the given file type is supported.
|