2 Replies Latest reply on Nov 22, 2017 7:20 AM by ClayUUID

    Stop sound in HTML5 Canvas

    Zivro

      I have 2 frames,

       

      frame 1    menu and background music on loop.

       

      frame 2    different kind of menu and another type of background music

       

       

      When you press a button in frame 1 it takes you to frame 2 via      gotoAndStop(1);

      Problem is, the remaining instance of background music 1 plays and overlaps the background music on frame 2,

      I was wondering if there was a way to kill the background music in frame 1 when the button takes you to frame 2.

       

      Thanks ahead!