So, I have 4 buttons on the stage. Each button controls associated MCs. When the button is clicked, the MCs fade to invisible (alpha). Now I want them to fade back in when the buttons are clicked again. Is there a way to get them to play in reverse or would you suggest that I do all of the fading tweens dynamically instead of in the MCs timeline? By the way, there is a stop command at the end of each MC. Thanks for your help.
this.cloud_mc.cloud1_mc.stop();
this.cloud_mc.cloud2_mc.stop();
this.cloud_mc.cloud3_mc.stop();
this.cloud_mc.cloud4_mc.stop();
this.cloud_mc.cloud5_mc.stop();
this.cloud_mc.cloud6_mc.stop();
dns_btn.addEventListener(MouseEvent.MOUSE_UP, fade1);
web_btn.addEventListener(MouseEvent.MOUSE_UP, fade2);
span_btn.addEventListener(MouseEvent.MOUSE_UP, fade3);
rtr_btn.addEventListener(MouseEvent.MOUSE_UP, fade4);
function fade1(e:MouseEvent):void
{
this.cloud_mc.cloud1_mc.play();
this.cloud_mc.cloud2_mc.play();
dns_btn.removeEventListener(MouseEvent.MOUSE_UP, fadeDns);
}
function fade2(e:MouseEvent):void
{
this.cloud_mc.cloud3_mc.play();
this.cloud_mc.cloud4_mc.play();
web_btn.removeEventListener(MouseEvent.MOUSE_UP, fadeWeb);
}
function fade3(e:MouseEvent):void
{
this.cloud_mc.cloud5_mc.play();
span_btn.removeEventListener(MouseEvent.MOUSE_UP, fadeSpan);
}
function fade4(e:MouseEvent):void
{
this.cloud_mc.cloud6_mc.play();
rtr_btn.removeEventListener(MouseEvent.MOUSE_UP, fadeRtr);
}