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

Components language reference
Table of Contents

Advertisement

Tween.continueTo()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.continueTo(finish, duration)
Parameters
A number indicating the ending value of the target object property that is to be
finish
tweened.
A number indicating the length of time or number of frames for the tween motion;
duration
duration is measured in length of time if the
true, or measured in frames if it is set to false. For more information on the
parameter, see
Tween.start()
Returns
Nothing.
Description
Method; instructs the tweened animation to continue tweening from its current animation
point to a new finish and duration point.
Example
In this example a handler is triggered by the
instance to continue its animation with new
Tween.continueTo()
Stage for this example:
import mx.transitions.Tween;
var myTween:Tween = new Tween(img1_mc, "_y",
mx.transitions.easing.Elastic.easeOut,0, 200, 3, true);
myTween.onMotionFinished = function() {
var myFinish:Number = 100;
var myDuration:Number = 5;
myTween.continueTo( myFinish, myDuration );
};
on page
1334.
method. A movie clip instance named
Tween.start() useSeconds
event and tells a Tween
onMotionFinished
and
finish
duration
img1_mc
parameter is set to
useSeconds
values by calling the
is required on the
Tween.continueTo()
1319

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents