Categories

Effects

Events


callback: (optional)

callback: function called when the FX has ended

 

The callback function allows you to execute a user-defined function when the effect has ended
This enables you to apply several sequential tweens on the same object!!!

ie: MovieClip.OC_moveTo(10,10,2,easeOutBack,0,"NewFunction");
will call function "NewFunction()" when moveTo is done.

MovieClip.OC_scaleTo(100,100,2,easeInQuad,0, "AnotherFunction");
will call function "AnotherFunction()" when scaleTo is done, etc.

 


parameters: (optional)

parameters: additional parameters for the callback function

 

Besides the callback function, you can also add 2 additional parameters

ie: MovieClip.OC_moveTo(10,10,2,easeOutBack,0,"NewFunction",100,false);
will call function "NewFunction(100,false)" when moveTo is done.

MovieClip.OC_scaleTo(100,100,2,easeInQuad,0, "AnotherFunction",0,true);
will call function "AnotherFunction(0,true)" when scaleTo is done, etc.