Package | away3d.exporters |
Class | public class AS3LiteExporter |
Inheritance | AS3LiteExporter flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
as3File : String [read-only]
Returns the last generated as3 file async from events.
| AS3LiteExporter |
Method | Defined by | ||
---|---|---|---|
Class generates a string in the Actionscript3 format for Away3DLite, representing the object3D(s).
| AS3LiteExporter | ||
addOnExportComplete(listener:Function):void
Default method for adding a complete event listener
The event.data holds the generated string from the wavefront class
| AS3LiteExporter | ||
Generates a string in the Actionscript3 format for Away3DLite, representing the object3D(s).
| AS3LiteExporter | ||
removeOnExportComplete(listener:Function):void
Default method for removing a complete event listener
| AS3LiteExporter |
as3File | property |
as3File:String
[read-only]Returns the last generated as3 file async from events.
Implementation public function get as3File():String
AS3LiteExporter | () | constructor |
public function AS3LiteExporter()
Init Parameters
addOnExportComplete | () | method |
public function addOnExportComplete(listener:Function):void
Default method for adding a complete event listener The event.data holds the generated string from the wavefront class
Parameterslistener:Function — The listener function
|
export | () | method |
public function export(object3d:Object3D, classname:String, packagename:String = ""):void
Generates a string in the Actionscript3 format for Away3DLite, representing the object3D(s). The event onComplete, returns in event.data the generated class string.
Parametersobject3d:Object3D — Object3D. The Object3D to be exported to the AS3 format.
|
|
classname:String — Defines the class name used in the output string.
|
|
packagename:String (default = " ") — [optional] Defines the package name used in the output string. Defaults to no package.
Generated class example of use:
Example: var myClass:ClassName = new ClassName();
view.scene.addChild(myClass as Object3D); or casted as Mesh if the generated class extends Mesh in case of single meshes
To access the objects stored into the class:
- ClassName.containers, a getter returns the ObjectContainers3D Array.
- ClassName.meshes, a getter returns the Mesh Array.
To access a mesh in the meshes array to change a material
(ClassName.meshes[0] as Mesh).material = myNewMat;
|
removeOnExportComplete | () | method |
public function removeOnExportComplete(listener:Function):void
Default method for removing a complete event listener
Parameterslistener:Function — The listener function
|