Muting sounds in Animate CC (HMTL5 Canvas)
Hi
Okay so im having a problem figuring out how to only play one sound at a frame and muting the others.
As you can se in my timeline and actionsscript my buttons (btn1&2) click to frame 2 and 3.
In frame 2 and 3 i have two different sounds playing, that have been imported to the library, draged on to their own layer and are only present in one frame.
There is also a back to start button called "start" that goes back to the first frame and are supposed to mute all sound.

Actionscript:
this.stop();
this.btn1.addEventListener("click", fl_ClickToGoToAndStopAtFrame.bind(this));
function fl_ClickToGoToAndStopAtFrame()
{
this.gotoAndStop(1);
}
this.btn2.addEventListener("click", fl_ClickToGoToAndStopAtFrame_2.bind(this));
function fl_ClickToGoToAndStopAtFrame_2()
{
this.Sound.stop(snd2);
this.gotoAndStop(2);
}
this.start.addEventListener("click", fl_ClickToGoToAndStopAtFrame_3.bind(this));
function fl_ClickToGoToAndStopAtFrame_3()
{
this.Sound.stop(snd2);
this.gotoAndStop(0);
}
The problem
The problem is that the sounds are getting combined and are therefore played both sounds when you click btn1 and btn2, instead of muting the one on the frame that im not on.
(For better usability its all in HTML5 Canvas)
