Packageaway3d.exporters
Classpublic class AS3Exporter
InheritanceAS3Exporter Inheritance flash.events.EventDispatcher

Public Properties
 PropertyDefined by
  as3File : String
[read-only] Returns the last generated as3 file async from events.
AS3Exporter
Public Methods
 MethodDefined by
  
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
  
export(object3d:Object3D, classname:String, packagename:String = ""):void
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
Property detail
as3Fileproperty
as3File:String  [read-only]

Returns the last generated as3 file async from events.

Implementation
    public function get as3File():String
Constructor detail
AS3Exporter()constructor
public function AS3Exporter() Init Parameters
Method detail
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 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 (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

Parameters
listener:Function — The listener function
Wiki link
Click to go to the wiki page for 'away3d.exporters.AS3Exporter'

Code examples

Comments