PDA

View Full Version : problems with multiple background sounds



jhaydon
August 19th, 2007, 04:18 AM
I am designing a website entirely in Flash and am having a problem with getting the background sounds to work properly. Client wants different background music for different pages within the flash site. My problem is that if you leave a page with music on it the music keeps playing and then if you return to that same page the song starts over while the original song is still playing. I can't use the stopallsounds because client does want the song to start playing again if you re-enter the page. Please check out the site for me and see if there is any way you can help me. www.classicwebdesign.us/morbid_manor.htm (http://www.classicwebdesign.us/morbid_manor.htm). It's a haunted house site. Please go to the "Why we do it" page to see what I am talking about. If you can help, please be kind and explain it in "newbie" terms as I'm not very well acquainted with actionscript.

Thank you,

Joy

neilmmm
August 19th, 2007, 06:24 AM
have a boolean

something like

(!hauntedHousePlaying){
stopAllSounds();
hauntedHouse.start(0,1);
hauntedHousePlaying=true;

}

jhaydon
August 19th, 2007, 02:00 PM
Thank you! Do I need to change any of the text to the song title?

jhaydon
August 19th, 2007, 02:57 PM
and where does the boolean go?

thank you!