# The Tween class and disabling MCs

**URL:** <https://forum.kirupa.com/t/the-tween-class-and-disabling-mcs/173729>\
**Category:** flash\
**Created:** [December 29, 2005, 2:28am UTC](https://forum.kirupa.com/t/the-tween-class-and-disabling-mcs/173729 "2005-12-29T02:28:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geminian1](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@Geminian1](https://forum.kirupa.com/u/Geminian1)\
**Post date:** [December 29, 2005, 2:28am UTC](https://forum.kirupa.com/t/the-tween-class-and-disabling-mcs/173729/1 "2005-12-29T02:28:25Z")

</div>

Compliments of the season!  
I have four movie clips on the stage. Each has an onRelease function to tween it to a certain position on the stage using the Tween class.  
How do I disable the onRelease handler for the other three movie clips WHILE the fourth movie clip is in the process of tweening?  
Example:

```auto

import mx.transitions.Tween;
import mx.transitions.easing.*;
mvt = function(myclip){
 var upy:Tween = new Tween(myclip,"_y",Strong.easeInOut,myclip._y,70,3,true);
 var upxs:Tween = new Tween(myclip,"_xscale",Strong.easeInOut,myclip._xscale,200,3,true);
}
clip1.onRelease = function(){
 this.swapDepths(_root.getNextHighestDepth());
 mvt(clip1);
}
clip2.onRelease = function(){
 this.swapDepths(_root.getNextHighestDepth());
 mvt(clip2);
}
clip3.onRelease = function(){
 this.swapDepths(_root.getNextHighestDepth());
 mvt(clip3);
}
clip4.onRelease = function(){
 this.swapDepths(_root.getNextHighestDepth());
 mvt(clip4);
}

```

If I press Clip1 and it starts moving, how do I diasble clips 2 to 4 UNTIL clip1 is safely in position \_y = 70 and it’s \_xscale is 200 when they then become enabled? I have tried various if/else statements and also the onMotionStarted listener without, well, most of my hair is gone now!

Any help much appreciated.

Geminian1.
