Tween.position

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX 2004.

Usage

tweenInstance.position

Description

Property (read-only); the current value of the target object property being tweened. This value updates with each drawn frame of the tweened animation.

Example

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);
};