Skip to main content
Known Participant
July 13, 2007
Question

stopping internal sound

  • July 13, 2007
  • 3 replies
  • 246 views
ok, so you load an mp3 into the library. give it an instance name. create a new instance with testSound:mySound = new mySound();
play the sound with testSound.play(); it all works great. but now I want to stop the sound (background music in a game) . I guess letting us do testSound.stop(); would just be too easy....Why can't I stop a sound. I see can stop a sound channel but it only seems to work with external sound loaded with a url?

Thanks
This topic has been closed for replies.

3 replies

Known Participant
July 14, 2007
Thanks guys. I really appreciate the help!!!
Inspiring
July 13, 2007
try:-

stopAllSounds();
Inspiring
July 13, 2007
you must create a new sound channel in AS3 and assign that sound channel to the "testSound". then you can call the stop function from the sound channel and kill the sound. Doesn't matter if the mp3 is in the library or dynamic. It's pretty much the same thing.