ParserBase provides an abstract base object for objects that convert blocks of data to data structures supported by Away3D.


Inherited from EventDispatcher.


Created ParserBase has properties:

dataFormat

[read-only] String, The data format of the file data to be parsed. Can be either: Lib.Away3D.Loaders.Parsers.ParserDataFormat.BINARY or Lib.Away3D.Loaders.Parsers.ParserDataFormat.PLAIN_TEXT

dependencies

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

parsingComplete

[read-only] true/false

parsingFailure

[read-only] true/false

parsingPaused

[read-only] true/false


methods:

isBitmapDataValid(bitmapData)

Validates a bitmapData loaded before assigning to a default BitmapMaterial ParserBase. Returns true/false

bitmapData - BitmapData.

parseAsync(data, frameLimit)

Parse data (possibly containing bytearray, plain text or BitmapAsset) asynchronously, meaning that the parser will periodically stop parsing so that the AVM may proceed to the next frame.

data - The untyped data object in which the loaded data resides.

frameLimit - Number of milliseconds of parsing allowed per frame. The actual time spent on a frame can exceed this number since time-checks can only be performed between logical sections of the parsing procedure. (30)


static properties:

Lib.Away3D.Loaders.Parsers.ParserBase.MORE_TO_PARSE

true/false Returned by proceedParsing to indicate more parsing is needed, allowing asynchronous parsing.

Lib.Away3D.Loaders.Parsers.ParserBase.PARSING_DONE

true/false Returned by proceedParsing to indicate no more parsing is needed.


events from: Asset3DEvent.

Created with the Personal Edition of HelpNDoc: Full-featured Help generator