public function pause(Void):VoidMake a pause in the Interpolation. You can continue the motion later with resume method. Broadcast an InterpolationEvent.
public function resume(Void):VoidResume the motion after it was paused. Broadcast an InterpolationEvent.
public function getPercent(Void):NumberReturns the percent of the interpolator. 0 is the beginning, and 100 is the end.
Void |
a Number between [0-100] corresponding on the percentage of the interpolation progress.
public function getProgress(Void):NumberReturns the progress of the interpolator. 0 is the beginning, and 1 is the end.
Void |
a Number between [0-1] corresponding on the interpolation progress.
public function getType(Void):TransformTypeReturns the type of the interpolation.
Void |
TransformType the type of the interpolation
public function setDuration(t:Number):Voidset the interpolation duration in number of frames. Could be lower than 5!
Void
public function destroy(Void):VoidDestroy the transformation instance and remove all its listeners. Shall be implemented in the derivated classes.
Void |
public function addEventListener(t:String, oL):Void
Adds passed-in oL listener for receiving passed-in t event type.
Take a look at example below to see all possible method call.
Example
var oEB : IEventDispatcher = new EventBroadcaster(this);
oEB.addEventListener( myClass.onSometingEVENT, myFirstObject);
oEB.addEventListener( myClass.onSometingElseEVENT, this, __onSomethingElse);
oEB.addEventListener( myClass.onSometingElseEVENT, this, Delegate.create(this, __onSomething) );
t | Name of the Event. |
oL | Listener object. |
public function removeEventListener(t:String, oL):Void
Removes passed-in oL listener that suscribed for passed-in t event.
Example
var oEB : IEventDispatcher = new EventBroadcaster(this);
oEB.removeEventListener( myClass.onSometingEVENT, myFirstObject);
oEB.removeEventListener( myClass.onSometingElseEVENT, this);
t | Name of the Event. |
oL | Listener object. |
public function dispatchEvent(o:Object):Void
Wrapper for Macromedia EventDispatcher polymorphism.
Example
var oEB : IEventDispatcher = new EventBroadcaster(this);
oEB.dispatchEvent( {type:'onSomething', target:this, param:12} );
o | Event object. |
public function broadcastEvent(e:IEvent):VoidBroadcasts event to suscribed listeners.
Example using full Pixlib API
var oEB : IEventDispatcher = new EventBroadcaster(this);
var e : IEvent = new BasicEvent( myClass.onSomeThing, this);
oEB.addEventListener( myClass.onSomeThing, this);
oEB.broadcastEvent( e );
e | an IEvent instance |
public function getMatrix(Void):Matrix4Returns the associated matrix.
Void |
Matrix4 The matrix of the transform3D associated to the interpolator.
public function isModified(Void):BooleanAllows you to know if the transformation has been modified.
Void |
Boolean True if the transformation has been modified, false otherwise.