Tweener Documentation
AS2 and AS3.
... onCompleteParams:value, ...
value
:Array — A list of parameters (of any type) to be passed to the onComplete
function.
// Fades a movieclip out, then set its visibility to false setVisibility = function(visibility:Boolean) { this._visible = visibility; }; Tweener.addTween(myMovieClip, {_alpha:0, time:1, onComplete:setVisibility, onCompleteParams:[false]});
// Traces a message after animating a MovieClip Tweener.addTween(myMovieClip, {_x:200, time:1, onComplete:trace, onCompleteParams:["I have moved!"]});