MovieClip.isTweening() , TextField.isTweening()

Availability

Flash Player 6.

Usage

my_mc.isTweening(prop)

Parameters

prop A string indicating a single property to query for paused state. (Pass "_ct_" to query whether any color-related tween is tweening.)

If the param is not passed, true is returned if any property is tweening.

Returns

true or false

Description

Use this method to check if your movieclip or textfield is being tweened.
example:
my_mc.tween(["_y","_alpha"],[0,100],5);
_root.onMouseDown = function(){
 if(my_mc.isTweening()){
    my_mc.stopTween(); 
    trace("my_mc was tweening and now is stopped");
 }
} 
example checking one property only:
my_mc.tween(["_y","_alpha"],[0,100],5);
_root.onMouseDown = function(){
 if(my_mc.isTweening("_alpha")){
    my_mc.ffTween("_alpha"); // immediately end fade 
	// (does not affect _y tween in progress.)
 }
}