Question
Overlapping Sound when I go back to main menu
- Here is my code for the 1st actions keyframe:
- this.stop();button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);function fl_ClickToGoToWebPage(event:MouseEvent):void{navigateToURL(new URLRequest("https://www.wizardingworld.com/news/discover-your-hogwarts-house-on-wizarding-world"), "_blank");}button_2.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void{gotoAndStop(2);}button_3.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_2);function fl_ClickToGoToAndStopAtFrame_2(event:MouseEvent):void{gotoAndStop(3);}button_6.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_7);function fl_ClickToGoToAndStopAtFrame_7(event:MouseEvent):void{gotoAndStop(4);}button_7.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_9);function fl_ClickToGoToAndStopAtFrame_9(event:MouseEvent):void{gotoAndStop(5);}
- And my code for each house button:
- button_8.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_1);function fl_ClickToGoToAndStopAtFrame_1(event:MouseEvent):void{gotoAndStop(1);}
- My problem is I have the harry potter them playing in the first keyframe and it overlaps itself when the user clicks on the back to main menu button after clicking on the respective house. What code can I use to fix this issue?
