Class sandy.util.SaParser

Description

Allows you to load and parse Sandy Animation File (.SA).

Field Index

INTERVAL, ITERATIONS_PER_INTERVAL, onFailEVENT, onInitEVENT, onLoadEVENT, onProgressEVENT

Method Index

addEventListener(), 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:AnimationData, 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

oAnimationData The AnimationData we want to fill
urlString The url of the .ASE file used to initialized the Object3D