MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1336

Components language reference
Table of Contents

Advertisement

Returns
Nothing.
Description
Method; resumes the play of a tweened animation that has been stopped. Use this method to
continue a tweened animation after you have stopped it by using the
This method may be used only on frame-based tweens. A tween is set to be frame based
at its creation by setting the useSeconds parameter to false.
Example
This example applies a tweened animation to the
looped to play repeatedly from its starting point by calling the
within a handler triggered by the
button calls the
Tween.stop()
Clicking the resumeTween_btn button calls the
tweened animation from its stopping point. A movie clip instance named
clip instance named
stopTween_btn
are required on the Stage for this example:
import mx.transitions.Tween;
var myTween:Tween = new Tween(img1_mc, "_x",
mx.transitions.easing.None.easeNone, -img1_mc._width, Stage.width, 3,
true);
myTween.onMotionFinished = function() {
myTween.start();
};
stopTween_btn.onRelease = function() {
myTween.stop();
};
resumeTween_btn.onRelease = function() {
myTween.resume();
};
1332
Tween class
img1_mc
onMotionFinished
method to stop the tweened animation at its current value.
Tween.resume()
, and a movie clip instance named
Tween.stop()
movie clip
The animation is
.
Tween.start()
event. Clicking the stopTween_btn
method to resume the
img1_mc
resumeTween_btn
method.
method from
, a movie
,

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents