The script on my timeline
stop();
bgSound = new Sound();
bgSound.attachSound("welcome.wav");
bgSound.start(0, 1);
fSound = new Sound();
fSound.attachSound("first");
sSound = new Sound();
sSound.attachSound("second.wav");
tSound = new Sound();
tSound.attachSound("third.wav");
foSound = new Sound();
foSound.attachSound("fourth.wav");
fiSound = new Sound();
fiSound.attachSound("fifth.wav");
bgSound.onSoundComplete = function()
{
gotoAndPlay("sec_1");
fSound.start(0,1);
}
fSound.onSoundComplete = function()
{
sSound.start(0,1);
}
sSound.onSoundComplete = function()
{
tSound.start(0,1);
}
tSound.onSoundComplete = function()
{
foSound.start(0,1);
}
foSound.onSoundComplete = function()
{
fiSound.start(0,1);
}
fiSound.onSoundComplete = function()
{
_root.gotoAndPlay("main");
}
Then I have a button on this timeline with the following
on(release) {
stopAllSounds();
}
Anyone know why stopAllSounds(); isn’t working?