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

Components language reference
Table of Contents

Advertisement

Example
The following example creates two tweened animations set at two different
current
settings of both Tween instances are displayed. A movie clip instance named
FPS
and a movie clip instance named
img1_mc,
this example:
import mx.transitions.Tween;
var myTween1:Tween = new Tween(img1_mc, "_y",
mx.transitions.easing.Strong.easeOut,0, Stage.height - img1_mc._height,
400, false);
myTween1.FPS = 1;
var myFPS1:Number = myTween1.FPS;
trace("myTween1.FPS:" + myFPS1);
var myTween2:Tween = new Tween(img2_mc, "_y",
mx.transitions.easing.Strong.easeOut,0, Stage.height - img2_mc._height,
400, false);
myTween2.FPS = 12;
var myFPS2:Number = myTween2.FPS;
trace("myTween2.FPS:" + myFPS2);

Tween.nextFrame()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.nextFrame()
Returns
Nothing.
Description
Method; forwards the tweened animation to the next frame of an animation that was stopped.
Use this method to forward a frame at a time of a tweened animation after you use the
method to stop it.
Tween.stop()
This method may be used only on frame-based tweens. A tween is set to frame based at
its creation by setting the useSeconds parameter to false.
are required on the Stage for
img2_mc
settings. The
FPS
Tween.nextFrame()
1323

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents