Unloading an External SWF

  • sethmac
  • Born
  • Born
  • No Avatar
  • Joined: Jun 21, 2005
  • Posts: 2
  • Status: Offline

Post June 21st, 2005, 7:05 pm

I am making a frame work that holds external swfs and cycles through them when a button is clicked. The problem is each external swf has a sound object. How can I unload the video and keep the event sound from continuing to play. They visual elements go away but the sound continues to play. Please help!!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 21st, 2005, 7:05 pm

  • roarmeow
  • Professor
  • Professor
  • User avatar
  • Joined: Oct 12, 2004
  • Posts: 861
  • Loc: BKNY
  • Status: Offline

Post June 21st, 2005, 7:12 pm

depends on how you're loading it, but the simple answer is:
Code: [ Select ]
stopAllSounds();
  • sethmac
  • Born
  • Born
  • No Avatar
  • Joined: Jun 21, 2005
  • Posts: 2
  • Status: Offline

Post June 21st, 2005, 8:24 pm

Yeah, I've tried that. I dont have the code with me to post but I can get it. I'll explain. I load the the external mp3 into a sound swf. The sound swf is then called by the individual screen swf. The screen swf is then loaded into the framework. I do it this way because all the information on the screen is loaded dynamically with XML. Why exactly does the audio continue to play when the movie has been unloaded?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 40 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.