Class sandy.util.AseParser

Description

Full credits to Andre-Michelle (www.andre-michelle.com) Parsing *.ASE Files AsciiExport Version 2,00 (3dmax R6) Handle ONLY ONE mesh definition Andre Michelle 09/2005 Adapted to Sandy engine by Thomas PFEIFFER 04/06

Field Index

INTERVAL, ITERATIONS_PER_INTERVAL, onFailEVENT, onInitEVENT, onLoadEVENT, onProgressEVENT

Method Index

addEventListener(), export(), parse(), removeEventListener()

Field Detail

onInitEVENT

static public onInitEVENT:EventType
The OBject3D object is initialized

onLoadEVENT

static public onLoadEVENT:EventType
The load has started

onFailEVENT

static public onFailEVENT:EventType
The load has failed

onProgressEVENT

static public onProgressEVENT:EventType
The load is in progress

INTERVAL

static public INTERVAL:Number
Interval of time between two calls to parsing method. A big value makes parsing slower but less CPU intensive.

ITERATIONS_PER_INTERVAL

static public ITERATIONS_PER_INTERVAL:Number
Number of lines parsed after a parsing method call. This is a good factor to change if you want to make your parser faster or less CPU intensive

Method Detail

addEventListener

static public function addEventListener(t:EventType, o):Void

Add a listener for a specific event.

Parameters

tEventType The type of event we want to register
oThe object listener

removeEventListener

static public function removeEventListener(e:EventType, oL):Void

Remove a listener for a specific event.

Parameters

eString The type of event we want to register
oLThe object listener

parse

static public function parse(o:Object3D, url:String):Void

Initialize the object passed in parameter (which should be new) with the datas stored in the ASE file given in second parameter

Parameters

oObject3D The Object3D we want to initialize
urlString The url of the .ASE file used to initialized the Object3D

export

static public function export(url:String):Void

Parameters

urlString The url of the .ASE file used to initialized the Object3D