Packageaway3dlite.loaders
Classpublic class MD2
InheritanceMD2 Inheritance AbstractParser Inheritance flash.events.EventDispatcher

File loader for the Md2 file format.



Public Properties
 PropertyDefined By
  centerMeshes : Boolean
Controls the automatic centering of geometry data in the model, improving culling and the accuracy of bounding dimension values.
MD2
 Inheritedcontainer : Object3D
[read-only] Retuns a 3d container object used for storing the parsed 3d object.
AbstractParser
 InheritedgeometryLibrary : GeometryLibrary
[read-only] Retuns a geometryLibrary object used for storing the parsed geometry data.
AbstractParser
 Inheritedmaterial : Material
Overrides all materials in the model.
AbstractParser
 InheritedmaterialLibrary : MaterialLibrary
[read-only] Retuns a materialLibrary object used for storing the parsed material objects.
AbstractParser
 Inheritedmaterials : Object
Overides materials in the model using name:value pairs.
AbstractParser
 InheritedparsedChunks : int
[read-only] Returns the total number of data chunks parsed
AbstractParser
 InheritedparseTimeout : int = 40000
Defines a timeout period for file parsing (in milliseconds).
AbstractParser
  scaling : Number = 1
A scaling factor for all geometry in the model.
MD2
 InheritedtotalChunks : int
[read-only] Returns the total number of data chunks available
AbstractParser
Public Methods
 MethodDefined By
  
MD2()
Creates a new Md2 object.
MD2
 Inherited
addOnError(listener:Function):void
Default method for adding a parseError event listener
AbstractParser
 Inherited
addOnProgress(listener:Function):void
Default method for adding a parseProgress event listener
AbstractParser
 Inherited
addOnSuccess(listener:Function):void
Default method for adding a parseSuccess event listener
AbstractParser
 Inherited
Parses 3d file data.
AbstractParser
 Inherited
removeOnError(listener:Function):void
Default method for removing a parseError event listener
AbstractParser
 Inherited
removeOnProgress(listener:Function):void
Default method for removing a parseProgress event listener
AbstractParser
 Inherited
removeOnSuccess(listener:Function):void
Default method for removing a parseSuccess event listener
AbstractParser
Events
 Event Summary Defined By
 InheritedDispatched when the 3d object parser fails to parse a file.AbstractParser
 InheritedDispatched when the 3d object parser progresses by one chunk.AbstractParser
 InheritedDispatched when the 3d object parser completes a file parse successfully.AbstractParser
Property Detail
centerMeshesproperty
public var centerMeshes:Boolean

Controls the automatic centering of geometry data in the model, improving culling and the accuracy of bounding dimension values.

scalingproperty 
public var scaling:Number = 1

A scaling factor for all geometry in the model. Defaults to 1.

Constructor Detail
MD2()Constructor
public function MD2()

Creates a new Md2 object.

####INIT####