PDA

View Full Version : SoundMixer.stopAll(); is not stopping all sound...


ginob
04-22-2008, 09:11 PM
I'm working on a website that loads external swf files when buttons are clicked. When a different page is selected (while the swf is still playing), the current sounds stop, but (I think) sounds that start later on the timeline continue to play.

I'm using removeChild and SoundMixer.stopAll();

I also tried using sound transform to mute the volume, but I get the same results.

The sounds in the external swfs are attached to the timeline of the swf and are streaming and customized to precisely match screen activity.

Is there something else I need to do to get all the sounds to stop completely?

Thanks.

ginob
04-22-2008, 11:57 PM
The sounds that are continuing to play are inside movieclips inside the loaded swf files. I tried putting everything on one timeline in the swf and they still don't stop playing.

Any simple way to stop these sounds?

Thanks.

Bowie
04-23-2008, 02:25 AM
From the documentation:

SoundMixer.stopAll()
This method does not stop the playhead. Sounds set to stream will resume playing as the playhead moves over the frames in which they are located.

If you have a sound on the timeline, Try calling stop() to that particular mc before calling SoundMixer.stopAll()

Let me know if it works.

ginob
04-24-2008, 01:58 AM
Thanks for the reply. I couldn't get this to work with AS, so I totally reworked the sound files into one mp3 that plays on frame 1. That fixes the problem.

Thanks again

Bowie
04-24-2008, 03:21 AM
Glad that you found a solution.