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

Components language reference
Table of Contents

Advertisement

Description
Method; starts the play of a tweened animation from its starting point. This method is used
for re-starting a Tween from the beginning of its animation after it stops or has completed
its animation.
Example
This example creates a new Tween object that animates the
clip
After the tweened animation is complete and calls the
.
handler, the tween is played again by calling the
movie clip that moves across the Stage from left to right and then starts the animation over
again when it reaches the end of the Stage. A movie clip instance named
on the Stage for this example:
import mx.transitions.Tween;
var myTween:Tween = new Tween(img1_mc, "_x",
mx.transitions.easing.None.easeNone,0, Stage.width, 50, false);
myTween.onMotionFinished = function() {
myTween.start();
};

Tween.stop()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.stop()
Returns
Nothing.
Description
Method; stops the play of a tweened animation at its current value.
property of the
_x
Tween.onMotionFinished
method. The result is a
Tween.start()
movie
img1_mc
event
, is required
img1_mc
Tween.stop()
1335

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents