ok guys here is the situation
I have my buttons 12345 each othe them corresponding to a song preloaded. and i have a stop button that stops all of them now how do i get rid of the stop button so that when the user clicks on another number the corresponding song plays??
1st frame code
mySound = new Sound();
mySound1 = new Sound();
mySound2 = new Sound();
mySound3 = new Sound();
mySound4 = new Sound();
mySound5 = new Sound();
mySound6 = new Sound();
mySound7 = new Sound();
now the button code to open the song
on(press) {
if (playing!=true) {
if (playing=true);
soundIsLoaded=1
mySoundObject1=new Sound();
mySoundObject1.setVolume(55);
mySoundObject1.loadSound("1.mp3",true) //streaming
}
_root.mySoundObject1.onSoundComplete=function()
{playing=false;}
}
now for the stop button
on(press) {
if (playing==true) {
playing=false;
mySound.stop()
mySound1.stop()
mySound2.stop()
mySound3.stop()
mySound4.stop()
mySound5.stop()
mySound6.stop()
mySound7.stop()
}
}
Im a bit confused where to put the mySound.stop in the buttons any helpers here???