Tween.time - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following example applies a tweened animation to the
clip
A
.
stopTween_btn
stop the tweened animation and a
the
Tween.resume()
instance named
img1_mc
instance named
resumeTween_btn
import mx.transitions.Tween;
var myTween:Tween = new Tween(img1_mc, "_x",
mx.transitions.easing.None.easeNone, img1_mc._width, Stage.width, 8,
true);
myTween.onMotionFinished = function() {
myTween.start();
};
stopTween_btn.onRelease = function() {
myTween.stop();
};
resumeTween_btn.onRelease = function() {
myTween.resume();
};

Tween.time

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.time
Description
Property (read-only); the current number of seconds that have passed within the duration of
the animation if the
useSeconds
instance. If the
useSeconds
returns the current number of frames that have passed in the Tween object animation.
1336
Tween class
movie clip's
onRelease()
resumeTween_btn
method to resume the animation from a stopped position. A movie clip
, a movie clip instance named
, are required on the Stage for this example:
parameter was set to
parameter of the animation was set to
property of the
_x
handler calls the
Tween.stop()
movie clip's
onRelease()
stopTween_btn
when creating the Tween
true
false
movie
img1_mc
method to
handler calls
, and a movie clip
,
Tween.time

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents