In my flash file, I have three buttons. And I need to control three movie clips respectively with each button. However, when I test it, just right after test window has been initialized, all three movie clips playing automatically without me clicking the button. Here is my code:
dropper_button1.addEventListener(MouseEvent.CLICK, dropper1);
function dropper1 (event:MouseEvent):void{
reaction_clip1.play();
}
dropper_button2.addEventListener(MouseEvent.CLICK, dropper2);
function dropper2 (event:MouseEvent):void{
reaction_clip2.play();
}
dropper_button3.addEventListener(MouseEvent.CLICK, dropper3);
function dropper3 (event:MouseEvent):void{
reaction_clip3.play();
}
I'm not sure where my code got wrong. Any advice would be great. Thank you!!!