User Guide

1330 Tween class
Example
The following example traces a Tween object’s current Tween.position and the
Tween.position value that the tween position ends with at the last frame of the tweened
animation. A movie clip instance named
img1_mc is required on the Stage for this example:
import mx.transitions.Tween;
var myTween:Tween = new mx.transitions.Tween(img1_mc, "_x",
mx.transitions.easing.None.easeNone, 0, Stage.width-img1_mc._width, 3,
true);
myTween.onMotionChanged = function() {
var myPosition:Number = myTween.position;
var myFinish:Number = myTween.finish;
trace(myPosition + " : " + myFinish);
};
Tween.prevFrame()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.prevFrame()
Returns
Nothing.
Description
Method; plays the previous frame of the tweened animation from the current stopping point
of an animation that was stopped. Use this method to play a tweened animation backwards
one frame at a time after you use the
Tween.stop() method to stop it.
NOTE
This method may be used only on frame-based tweens. A tween is set to frame based at
its creation by setting the Tween.start() useSeconds parameter to false. For more
information on the
useSeconds parameter, see Tween.start() on page 1334.