PDA

View Full Version : Sounds play with movie clips stopped


dkb
11-17-2009, 01:22 AM
Having some trouble figuring something out. Hopefully someone can help.

I have a project in which I have a dozen movie clips on the screen each of which are started by a separate button. Each of the movie clips has a sound in its first frame.

When I test the swf file all of the sounds from the first frame of each movie clip play simultaneously for about a quarter of a second. I'm not sure why because all the movies are stopped upon initialization. I've tried SoundMixer.stopAll() and I've tried setting volume to zero with SoundMixer.soundTransform = new SoundTransform(0) for each movie but nothing seems to stop the movie clips from producing that initial, short burst of sound.

Any ideas?

maskedMan
11-17-2009, 03:21 AM
Your sounds on the first frame all play because they're on the first frame. the stop() command only prevents the playhead from moving forward on the specified clip, but anything already on frame 1 will be rendered (or in the case of a sound, played).

Move the sounds off frame 1. I would say to frame 2, but if they are stream sounds, that might not be good enough. Try frame 5 or 6.