MovieClip.pauseTween() , TextField.pauseTween()

Availability

Flash Player 6.

Usage

my_mc.pauseTween(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, pauses props of a (currently-playing) tween within an individual MovieClip or TextField. If props is not passed, pauses all tweens the movieclip or textfield.

Note that if you passed a start delay in the tween and call pauseTween() while the delay is still running, the delay will be paused and can be unpaused in progress. However, individual properties are not supported during delays and the props argument will be ignored in this case.

example:

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

my_mc.onPress = function() {
  this.pauseTween();  // pauses all movements 
  //this.pauseTween("_x"); // pauses just _x tween
}