onStartParams

Availability

AS2 and AS3.

Usage

... onStartParams:value, ...

Parameters

value:Array — A list of parameters (of any type) to be passed to the onStart function.

Examples

// Hides a movieclip, then only shows it when it's time for it to fade in (AS2)
setVisibility = function(vis:Boolean) {
	this._visible = vis;
};
myMovieClip._visible = false;
myMovieClip._alpha = 0;
Tweener.addTween(myMovieClip, {_alpha:100, time:1, delay:4, onStart:setVisibility, onStartParams:[true]});
// Traces a message before starting an animation
Tweener.addTween(myMovieClip, {_x:200, time:1, delay:3, onStart:trace, onStartParams:["I'm starting to move!"]});

See also

onStart