Hello, thanks for your help. This is my code so far, but there seems to be some problems. I'm sure I probably modified the code incorrectly, could you please help me out?
Code:var buttons:Array = [box1, box2, box3]; var current:MovieClip = null; for (var i:int = 0; i < buttons.length; i++){ buttons[i].addEventListener(MouseEvent.MOUSE_DOWN, buttonPress); } function buttonPress(e:MouseEvent):void{ if (current != null){ current.gotoAndPlay("out2"); } current = MovieClip(e.currentTarget); current.gotoAndPlay("over2"); }




Reply With Quote
