Tweener Documentation
AS2 and AS3.
... time:value, ...
value
:Number — How long a transition will take, in seconds (or in frames, if useFrames
is set to true
). If a value of 0 is used, the tween is created, executed with its final value, and deleted immediately. The default value for this parameter (when omitted) is 0.
// Slides a MovieClip to _x = 100 in 2 seconds (AS2) Tweener.addTween(myMovieClip, {_x:100, time:2});
// Slides a TextField to _x = 200 in half a second (AS2) Tweener.addTween(myTextField, {_x:200, time:0.5});
// Immediately moves a MovieClip to _x = 100 (AS2) Tweener.addTween(myMovieClip, {_x:100});