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

Components language reference
Table of Contents

Advertisement

Example
The following example applies a tweened animation to the
animation is looped to play repeatedly from its starting point by calling the
method from within a handler triggered by the
the rewindTween_btn button calls the
animation to its starting point. A movie clip instance named
named
stopTween_btn,
instance named
resumeTween_btn
import mx.transitions.Tween;
var myTween:Tween = new Tween(img1_mc, "_x",
mx.transitions.easing.None.easeNone, img1_mc._width, Stage.width, 8,
true);
myTween.onMotionFinished = function() {
myTween.start();
};
stopTween_btn.onRelease = function() {
myTween.stop();
};
rewindTween_btn.onRelease = function() {
myTween.rewind();
};
resumeTween_btn.onRelease = function() {
myTween.resume();
};

Tween.start()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.start()
Returns
Nothing.
1334
Tween class
Tween.rewind()
a movie clip instance named
, are required on the Stage for this example:
img1_mc
Tween.onMotionFinished
method to rewind the tweened
img1_mc,
rewindTween_btn
movie clip
The
.
Tween.start()
event. Clicking
a movie clip instance
and a movie clip

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents