Tween.onmotionresumed - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
In the following example, a tween is applied to the
reaches the end of its animation, it invokes the
the
method. The tween is therefore able to complete its animation before the
Tween.yoyo()
method is called to reverse the animation. A movie clip instance named
Tween.yoyo()
is required on the Stage for this example:
img1_mc
import mx.transitions.Tween;
var myTween:Tween = new Tween(img1_mc, "_x",
mx.transitions.easing.Elastic.easeOut,0, Stage.width-img1_mc._width, 3,
true);
myTween.FPS = 30;
myTween.onMotionFinished = function() {
myTween.yoyo();
};

Tween.onMotionResumed

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.onMotionResumed = function() {
// ...
};
Description
Event handler; invoked when the
allows your code to react at the point at which the tweened animation was resumed.
1326
Tween class
img1_mc
onMotionFinished
method is called. Handling this event
Tween.resume()
movie clip. When the tween
event handler which calls

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents