![]() ![]() |
|
Flash Player 6.
my_mc.isTweening(prop)
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.
true or false
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.)
}
}
![]() ![]() |
|