Package | away3d.exporters |
Class | public class AWDataExporter |
Inheritance | AWDataExporter flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
file : String [read-only]
Returns the last generated awd string file async from events. | AWDataExporter |
Method | Defined 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 | ||
Generates a string in the awd format (away3d data). | AWDataExporter | ||
removeOnExportComplete(listener:Function):void
Default method for removing a complete event listener
| AWDataExporter |
file | property |
file:String
[read-only] Returns the last generated awd string file async from events.
public function get file():String
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.
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
|