Packageaway3d.loaders
Classpublic class Md2still
InheritanceMd2still Inheritance AbstractParser Inheritance flash.events.EventDispatcher

File loader for the Md2 file format (non-animated version).

Public Properties
 PropertyDefined by
 Inheritedcontainer : Object3D
3d container object used for storing the parsed 3ds object.
AbstractParser
 InheritedparsedChunks : int
Returns the total number of data chunks parsed
AbstractParser
 InheritedtotalChunks : int
Returns the total number of data chunks available
AbstractParser
Public Methods
 MethodDefined by
  
Md2still
(data:*, init:Object = null)
Creates a new Md2Still object.
Md2still
  
load(url:String, init:Object = null):Object3DLoader
[static] Loads and parses an md2 file into a 3d mesh object.
Md2still
  
parse(data:*, init:Object = null):Mesh
[static] Creates a 3d mesh object from the raw xml data of an md2 file.
Md2still
 Inherited
parseNext():void
Processes the next chunk in the parser
AbstractParser
Constructor detail
Md2still()constructor
public function Md2still(data:*, init:Object = null)Parameters
data:* — The binary data of a loaded file.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
Init Parameters
 scaling:Number (default = 1)

See also

away3d.loaders.Md2Still.parse()
away3d.loaders.Md2Still.load()
Method detail
load()method
public static function load(url:String, init:Object = null):Object3DLoader

Loads and parses an md2 file into a 3d mesh object.

Parameters
url:String — The url location of the file to load.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.

Returns
Object3DLoader — A 3d loader object that can be used as a placeholder in a scene while the file is loading.
parse()method 
public static function parse(data:*, init:Object = null):Mesh

Creates a 3d mesh object from the raw xml data of an md2 file.

Parameters
data:* — The binary data of a loaded file.
 
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.

Returns
Mesh — A 3d mesh object representation of the md2 file.
Wiki link
Click to go to the wiki page for 'away3d.loaders.Md2still'

Code examples

Comments