MovieClip.rewTween() , TextField.rewTween()

Availability

Flash Player 6.

Usage

my_mc.rewTween(props)

Parameters

props One or more properties to be specifically affected. If the param is not passed, all properties being tweened are affected.

Accepts the following formats:

To affect colorTransform (methods colorTo, brightnessTo, colorTransformTo, invertColorTo, tintTo) use "_ct_" as props parameter.

Returns

Nothing.

Description

method, jumps  props to the beginning of a (currently-playing) tween in any MovieClip or TextField and restarts the tween. If props is not passed, rewinds all tweens in movieclip or textfield.

tween(s) are unpaused automatically if they were paused.

example:

my_mc.tween(["_x","_width"],[200,0],10);

my_mc.onPress = function() {
  this.rewTween(); // rewinds all movements 
  //this.rewTween("_x"); // jumps _x back to start position & replays it
}