Packageaway3d.exporters
Classpublic class AS3LiteExporter
InheritanceAS3LiteExporter Inheritance flash.events.EventDispatcher

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

Returns the last generated as3 file async from events.

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

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

Code examples

Comments