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.
public function get as3File():String
AS3LiteExporter | () | Constructor |
public function AS3LiteExporter()
Class generates a string in the Actionscript3 format for Away3DLite, representing the object3D(s).
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
Parameters
listener: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.
Parameters
object3d:Object3D — Object3D. The Object3D to be exported to the AS3 format.
| |
classname:String — Defines the class name used in the output string.
| |
packagename:String — [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
Parameters
listener:Function — The listener function
|