Packageaway3d.exporters
Classpublic class AWDataExporter
InheritanceAWDataExporter Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  file : String
[read-only] Returns the last generated awd string file async from events.
AWDataExporter
Public Methods
 MethodDefined By
  
Class generates a string in the Actionscript3 format representing an abstraction of the object3D(s).
AWDataExporter
  
addOnExportComplete(listener:Function):void
Default method for adding a complete event listener The event.data holds the generated string from the wavefront class
AWDataExporter
  
export(object3d:Object3D):void
Generates a string in the awd format (away3d data).
AWDataExporter
  
removeOnExportComplete(listener:Function):void
Default method for removing a complete event listener
AWDataExporter
Property Detail
fileproperty
file:String  [read-only]

Returns the last generated awd string file async from events.


Implementation
    public function get file():String
Constructor Detail
AWDataExporter()Constructor
public function AWDataExporter()

Class generates a string in the Actionscript3 format representing an abstraction of the object3D(s). The AWDataParser will be required for reserialisation.

####INIT####
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):void

Generates a string in the awd format (away3d data). String represents the object3D(s). The event onComplete, returns in event.data the generated class string. This class is ideal for runtime load of geometry and allows storage/read from database making it ideal for games levels. The Away3D version exports only the geometry, PreFab3D or AWDataExporterAIR class supports material The AWData in Away3D loaders supports both types.

Parameters

object3d:Object3D — Object3D. The Object3D to be exported to the awd format (away3d data).

removeOnExportComplete()method 
public function removeOnExportComplete(listener:Function):void

Default method for removing a complete event listener

Parameters

listener:Function — The listener function