Making Buttons with Sound and Adding Background Music
Hey Guys,
I am new to Adobe Animate as of last week and I have been learning steps at a time.
I have buttons for play, pause, and stop. But when I click them they don't make a sound. I have a sound for them. and it is connected to the button:

And the code for the buttons are:
this.play_btn.addEventListener("click", play.bind(this));
this.pause_btn.addEventListener("click", pause.bind(this));
this.stop_btn.addEventListener("click", stop.bind(this));
function play() {
this.play();
}
function pause() {
this.stop();
}
function stop() {
this.gotoAndStop(0);
}
^^^Am I supposed to embed the code for sound somehow in there? ^^^
------------------------
Also, I want to but music in the background of my animation. My animation is 5 seconds long does the music have to be that long? does it have to be .wav or .mp3
Also, How do I embed the music into my animation through the code?
Hope you can help, Thanks everyone!
