Skip to main content
March 12, 2010
Answered

Stopping a sound file from repeating.

  • March 12, 2010
  • 1 reply
  • 507 views

Hello all,

I'm hoping there is a simple solution out there.  I have added two consecutive streaming audio tracks (mp3) to the timeline of a child SWF.  The child SWF loads onto a parent SWF using a loader.  After loading the child SWF the movieclip and audio plays without a problem.

I have a problem with stopping the audio.  After the child is unloaded and the playhead reset in the parent SWF the first audio track from the child SWF begins to play again (but not the one right after it).  I have been trying to use the SoundMixer.stopAll();  command to stop the audio.  I have not been successful in preventing the audio from playing. I now see that the command only works AFTER the audio begins playing.  Is there a better way to control streaming audio embedded in the timeline?  I need to prevent it from playing again.

Thanks,

PCN

This topic has been closed for replies.
Correct answer kglad

stop your loaded swf's timeline, remove the swf from the display list and ready the loaded swf for gc.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
March 12, 2010

stop your loaded swf's timeline, remove the swf from the display list and ready the loaded swf for gc.

March 13, 2010

Thanks again.

kglad
Community Expert
Community Expert
March 13, 2010

you're welcome.