i’m using this a tutorial of republic of code to play sound and it works well for short sounds on there own however i’m trying to stop a song from playing when i click a button but i dont understand how it works. i know i have to use SoundChannel Class but i dont know what this is or how to use it.
i use this to play my sounds.
var mySound2:Sound = new BgSong();
mySound2.play();
how would i get this to work using SoundChannel Class im confused. if anyone could point me in the direction it would be great.