in reality the channels are variables.
first create a variable named sound1
then when you want the music tp play:
- Code: Select all
sound1 = //play sound;
and the second sound, create a var named sound2:
- Code: Select all
sound2 = //play sound;
now, if you want the sound1 to stop:
- Code: Select all
stopSound(sound1);
sound1 is the channel in this case which you tell to play and stop. got it?