Code for stop and play audio in diferent buttons
I have a problem, a made three buttons for my animation, Pause, Play and Stop these have the function whit the time line but i hadnt could that music also stop, play and return in HTML5 canvas. I tried to use this code in the pause button but didnt work:
this.PauseButton.addEventListener(MouseEvent.CLICK, fl_ClickToStopAllSounds_5);
function fl_ClickToStopAllSounds_5(event:MouseEvent):void
{
SoundMixer.stopAll();
}
Please what is the correct code for this function.
