User Guide

1320 Tween class
Tween.duration
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.duration
Description
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.
Example
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);
Tween.fforward()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.fforward()
Returns
Nothing.