Skip to main content
wendyfreise
Participant
June 21, 2020
Question

Overlapping Sound when I go back to main menu

  • June 21, 2020
  • 0 replies
  • 102 views
  1. Here is my code for the 1st actions keyframe:
  2. this.stop();
     
    button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
     
    function fl_ClickToGoToWebPage(event:MouseEvent):void
    {
    }
     
    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);
    }
     
  3. And my code for each house button:
  4. button_8.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_1);
     
    function fl_ClickToGoToAndStopAtFrame_1(event:MouseEvent):void
    {
    gotoAndStop(1);
    }
  5. 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?
    This topic has been closed for replies.