ActionScript 2.0 Components Language Reference |
|
|
|
| Tween class > Tween.position | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
tweenInstance.position
Property (read-only); the current value of the target object property being tweened. This value updates with each drawn frame of the tweened animation.
The following example traces a Tween object's current Tween.position and the Tween.position value that the tween position ends with at the last frame of the tweened animation. A movie clip instance named img1_mc is required on the Stage for this example:
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, 3, true);
myTween.onMotionChanged = function() {
var myPosition:Number = myTween.position;
var myFinish:Number = myTween.finish;
trace(myPosition + " : " + myFinish);
};
|
|
|
|