A question about actionscript 2. I have two arrays - one for buttons, and the other one for movie clips that are triggered by the buttons:
var def:Array = [mc1, mc2, mc3];
var defBtn:Array = [btn1, btn2, btn3];
So I got the movie clips triggered by the respective buttons - any called movie clip is visible and plays its timeline.
for(i=0; i<def.length; i++) {
defBtn[i].iv = i;
def[i].iv = i;
defBtn[i].onRelease = function() {
for( i=0; i<defBtn.length; i++ ) {
def[this.iv]._visible = true;
def[this.iv].play();
}
};
};
However any called movie clip stays visible all the time. I want all movie clips from the array to be invisible except the one called by respective button.
Have no idea how to do this because I NEED to use onRelease (not onRollOut) to make the movie clips dissappear after they animate for a little bit.
I would appreciate help with this AS code please! Thanks