The FlashChemist!

My Experiments and Thoughts on the Flash Platform

Stop All Sounds playing in a Flash Movie

one comment

Well, I didnt know that there is no stopAllSounds() in AS3 compared to AS2 world. But ofcourse you need this method most of the time to stop all the sounds playing in a movie irrespective of the source or hierarchy.

The stop all sound functionality exists, but moved to a new safe place, called the ‘SoundMixer’ class. Why in SoundMixer? No idea.

SoundMixer.stopAll()

is going to do the trick for you.

I always used to feel that why playing sound in AS 3.0 is so complicated. You have to use Sound, SoundChannel, and SoundTransform to write a basic Audio Player. At times SoundMixer tooo.

Written by Vipin

February 28th, 2010 at 5:18 am

Posted in Flash

Tagged with

One Response to 'Stop All Sounds playing in a Flash Movie'

Subscribe to comments with RSS or TrackBack to 'Stop All Sounds playing in a Flash Movie'.

  1. hey, vipin thank u!! it worked!! :)

    syam

    28 Jul 10 at 7:17 am

Leave a Reply