0
Start/Stop Audio using JavaScript
Community Beginner
,
/t5/animate-discussions/start-stop-audio-using-javascript/td-p/10280461
Dec 29, 2018
Dec 29, 2018
Copy link to clipboard
Copied
Hi.
I need some help getting an auto icon button on my project to both play and stop/pause a sound. I'm currently using the following, but don't know how to tell it to resume the sound.
this.music.addEventListener("click", fl_MouseClickHandler_6.bind(this));
function fl_MouseClickHandler_6()
{
createjs.Sound.stop();
}
Thank you.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/animate-discussions/start-stop-audio-using-javascript/m-p/10280462#M189581
Dec 29, 2018
Dec 29, 2018
Copy link to clipboard
Copied
use the paused boolean property of your sound instance to pause and unpause (true and false, resp.) your instance.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

