Skip to main content
Participant
September 2, 2008
Question

Fading sound in and out

  • September 2, 2008
  • 1 reply
  • 370 views
I am putting a flash website together. It is a picture of a group of people standing outside and at random intervals a storm will fade in and out giving dynamic rain/wind/thunder sounds and lightning. The only problem I have is fading the sound out. The sound fades in fine with the movie clip but when the movie clip disappears the sound continues. How do I get the sound to stop? Here is the code for that part of the flash. The "randomness" of the storm is set to very high probability on purpose for debugging reasons.
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 2, 2008
at a minimum, apply the stop() method to your soundChannel. you should also ready you sound for gc though there's no guarantee it will be gc'd.