Groups | Blog | Home
all groups > flash (macromedia) > april 2007 >

flash (macromedia) : How to stop a sound-loop from playing?


Glitcher2000
4/10/2007 7:17:43 PM
I've got some background noise of gunfire that I've placed on a separate layer.
The keyframe containing the gunfire is set to "Stream - Loop" so that it keeps
repeating while staying in synch with the timeline. Now when the scene changes,
I want the gunfire to stop. How can I do this? I tried placing a blank keyframe
at the end of the scene and setting the sound synch to "Stop", but that still
doesn't kill the noise. I also tried adding a "stopAllSounds();" ActionScript
to this blank keyframe, and although that stops the gunfire, it also mutes
every other sound in the following scenes. So how do I simply stop a sound-loop
when I want to?
na_dol
4/10/2007 8:40:51 PM
You should try playing sound with actionscript. It's not hard at all.
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00002872.html
na_dol
4/10/2007 8:48:48 PM
Glitcher2000
4/10/2007 11:28:07 PM
Glitcher2000
4/11/2007 12:00:00 AM
AddThis Social Bookmark Button