Skip to main content
Participant
February 27, 2012
Question

Stop sound

  • February 27, 2012
  • 1 reply
  • 595 views

I have created flash file that has an empty movie clip.My other swfs are loaded into this empty MC by selecting a button on the main movie. The individual swf files all have sound (streaming) in them. The movie runs like it should - loading and unloading the MCs - the problem is even though the previous MC is no longer on the screen (another one replaces it) the sound still plays - along with the sound from the MC that should be playing. So, I would like to know what I need to do to get the exiting MC to stop playing the sound(s).

Thank you,

Mike

This topic has been closed for replies.

1 reply

Inspiring
February 27, 2012

Easiest thing to do would be to add a REMOVED_FROM_STAGE event to the mc's that you're adding and removing.  In the listener for that, have it stop playing whatever sounds that movie clip has going.  That way when you remove the movieclip from the stage the music from it should stop playing.

mdeluiseAuthor
Participant
February 27, 2012

Thank you, Tim. I will give this a try!