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

Components language reference
Table of Contents

Advertisement

Example
The following example returns the time value of a Tween instance. A movie clip instance
named
, is required on the Stage for this example:
img1_mc
import mx.transitions.Tween;
var myTween:Tween = new mx.transitions.Tween(img1_mc, "_x",
mx.transitions.easing.None.easeNone, 0, Stage.width-img1_mc._width, 10,
false);
myTween.onMotionChanged = function() {
var myCurrentTime:Number = myTween.time;
var myCurrentDuration:Number = myTween.duration;
trace(myCurrentTime + " of " + myCurrentDuration);
};

Tween.toString()

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
tweenInstance.toString()
Returns
The following string is returned: "[Tween]".
Description
Method; returns the class name,
Example
In the following example a Tween object is identified by calling the
method to return
"[Tween]"
named
, is required on the Stage for this example:
img1_mc
import mx.transitions.Tween;
var myTween:Tween = new Tween(img1_mc, "_alpha",
mx.transitions.easing.None.easeNone,0, 100, 50, false);
var theClassName:String = myTween.toString();
trace(theClassName);
"[Tween]".
, identifying the object's class name. A movie clip instance
Tween.toString()
Tween.toString()
1337

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents