Tween.prevframe() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following example traces a Tween object's current
value that the tween position ends with at the last frame of the tweened
Tween.position
animation. A movie clip instance named
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
This method may be used only on frame-based tweens. A tween is set to frame based at
its creation by setting the
information on the useSeconds parameter, see
1330
Tween class
is required on the Stage for this example:
img1_mc
Tween.stop()
useSeconds parameter to false. For more
Tween.start()
and the
Tween.position
method to stop it.
Tween.start() on page 1334
.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents