ActionScript 2.0 Components Language Reference |
|
|
|
| Tween class > Tween.duration | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
tweenInstance.duration
Property (read-only); a number indicating the duration of the tweened animation in frames or seconds. This property is set as a parameter when creating a new Tween instance or when calling the Tween.yoyo() method.
The following example traces the current duration setting of a Tween object by getting the Tween.duration property. A movie clip instance named img1_mc is required on the Stage for this example:
import mx.transitions.Tween; var myTween:Tween = new Tween(img1_mc, "_y", mx.transitions.easing.Strong.easeOut,0, Stage.height, 50, false); var theDuration:Number = myTween.duration; trace(theDuration);
|
|
|
|