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:
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.