Tween.onmotionstopped - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Description
Event handler; invoked when the animation starts again during or after completing its
animation. This event handler is not invoked at the initial start of a tweened animation.
Calling the
Tween.start()
animation or restart during an animation invokes the
Handling this event allows your code to react at the point at which the tweened animation
was started again sometime after its initial start.
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 the
method is called, the Tween instance invokes the
Tween.start()
event handler. A movie clip instance named
import mx.transitions.Tween;
var myTween:Tween = new Tween(img1_mc, "_x",
mx.transitions.easing.None.easeNone,0, Stage.width, 4, true);
myTween.onMotionFinished = function() {
myTween.start();
};
myTween.onMotionStarted = function() {
trace("onMotionStarted");
};

Tween.onMotionStopped

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.onMotionStopped = function() {
// ...
};
1328
Tween class
,
or
Tween.yoyo()
Tween.onMotionFinished
img1_mc
method to restart a finished
Tween.yoyo()
onMotionStarted
img1_mc
event handler. When the
Tween.onMotionStarted
is required on the Stage for this example:
event handler.
movie clip. The
Tween.start()

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?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents