Package | away3d.loaders |
Class | public class AC3D |
Inheritance | AC3D AbstractParser flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
centerMeshes : Boolean
Controls the automatic centering of geometry data in the model, improving culling and the accuracy of bounding dimension values. | AbstractParser | ||
container : Object3D [read-only]
Retuns a 3d container object used for storing the parsed 3d object. | AbstractParser | ||
geometryLibrary : GeometryLibrary [read-only]
Retuns a geometryLibrary object used for storing the parsed geometry data. | AbstractParser | ||
material : Material
Overrides all materials in the model. | AbstractParser | ||
materialLibrary : MaterialLibrary [read-only]
Retuns a materialLibrary object used for storing the parsed material objects. | AbstractParser | ||
materials : Object
Overides materials in the model using name:value pairs. | AbstractParser | ||
parsedChunks : int [read-only]
Returns the total number of data chunks parsed
| AbstractParser | ||
parseTimeout : int
Defines a timeout period for file parsing (in milliseconds). | AbstractParser | ||
scaling : Number
A scaling factor for all geometry in the model. | AC3D | ||
sourcesPath : String
An optional unique location url for sources. | AC3D | ||
totalChunks : int [read-only]
Returns the total number of data chunks available
| AbstractParser |
Method | Defined By | ||
---|---|---|---|
AC3D(init:Object = null)
Creates a new AC3D object. | AC3D | ||
addOnError(listener:Function):void
Default method for adding a parseError event listener
| AbstractParser | ||
addOnProgress(listener:Function):void
Default method for adding a parseProgress event listener
| AbstractParser | ||
addOnSuccess(listener:Function):void
Default method for adding a parseSuccess event listener
| AbstractParser | ||
getVersionFromHex(char:String):int | AC3D | ||
[static]
Loads and parses a .ac file into an Object3D object. | AC3D | ||
[static]
Creates a 3d mesh object from the raw ascii data of a .ac file (AC3D). | AC3D | ||
parseGeometry(data:*):Object3D
Parses 3d file data. | AbstractParser | ||
removeOnError(listener:Function):void
Default method for removing a parseError event listener
| AbstractParser | ||
removeOnProgress(listener:Function):void
Default method for removing a parseProgress event listener
| AbstractParser | ||
removeOnSuccess(listener:Function):void
Default method for removing a parseSuccess event listener
| AbstractParser |
scaling | property |
public var scaling:Number
A scaling factor for all geometry in the model. Defaults to 1.
sourcesPath | property |
public var sourcesPath:String
An optional unique location url for sources. url textures becomes composed with "sourcesPath/+[skiped url in file]filename.jpg"
AC3D | () | Constructor |
public function AC3D(init:Object = null)
Creates a new AC3D
object.
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
See also
getVersionFromHex | () | method |
public function getVersionFromHex(char:String):int
Parameters
char:String |
int |
load | () | method |
public static function load(url:String, init:Object = null):Loader3D
Loads and parses a .ac file into an Object3D 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.
|
Loader3D — 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):Object3D
Creates a 3d mesh object from the raw ascii data of a .ac file (AC3D).
Parameters
data:* — The ascii data of a loaded file.
| |
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
Object3D — An Object3D representating the ac file.
|