Package | away3d.exporters |
Class | public class AS3Exporter |
Inheritance | AS3Exporter flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
as3File : String [read-only]
Returns the last generated as3 file async from events.
| AS3Exporter |
Method | Defined by | ||
---|---|---|---|
AS3Exporter
()
Class generates a string in the Actionscript3 format representing the object3D(s).
| AS3Exporter | ||
addOnExportComplete(listener:Function):void
Default method for adding a complete event listener
The event.data holds the generated string from the wavefront class
| AS3Exporter | ||
Generates a string in the Actionscript3 format representing the object3D(s).
| AS3Exporter | ||
removeOnExportComplete(listener:Function):void
Default method for removing a complete event listener
| AS3Exporter |
as3File | property |
as3File:String
[read-only]Returns the last generated as3 file async from events.
Implementation public function get as3File():String
AS3Exporter | () | constructor |
public function AS3Exporter()
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 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:
var myClass:ClassName = new ClassName();
view.scene.addChild(myClass);
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
|