FlashMX - Multiple sound objects

Hi

I am having problems controlling my sound objects. When the user clicks on a mc on the stage a sound (voice over) starts to play. But if she decides to listen to another sound, she can click on another movie clip…Problem is that when the user clicks on the second movie clip the first sound is still playing while sound number two starts playing as well. I would like the second sound object to replace the first…shouldn’t this be possible by using the mySound.stop(); before initiating the new sound object…I’m feeling pretty lost at the moment…

Any help appreciated…maybe I need another approach…?

Thanks :slight_smile:

Here is part of my code:

Movie Clip one:

on (press) {
mySound=new Sound(this)
mySound.attachSound(“voice_one”)
mySound.start(0,1);
return;
}
}

Movie Clip two:

on (press) {
mySound.stop();
mySound=new Sound(this)
mySound.attachSound(“voice_two”)
return;
}
}

  • Eli