Tween.finish - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Description
Method; forwards the tweened animation directly to the final value of the tweened animation.
Example
In this example,
Tween.fforward()
final value, immediately triggering the
Tween.onMotionFinished
therefore visibly starts with the reversing effect of the
animation was skipped to its end. A movie clip instance named
Stage for this example:
import mx.transitions.Tween;
var myTween:Tween = new Tween(img1_mc, "_x",
mx.transitions.easing.Elastic.easeOut,0, Stage.width - img1_mc._width, 8,
true);
myTween.fforward();
myTween.onMotionFinished = function() {
myTween.yoyo();
};

Tween.finish

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.finish
Description
Property (read-only); a number indicating the ending value of the target object property that
is to be tweened. This property is set as a parameter when creating a new Tween instance or
when calling the
Tween.yoyo()
is called to forward a tweened animation directly to its
onMotionFinished
event calls the
Tween.yoyo()
method.
event. A handler for the
method. The tweened animation
method, since the initial
Tween.yoyo()
is required on the
img1_mc
Tween.finish
1321

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