Hello,
I am trying to add sound to a website that was previously created and I am now updating. The site is http://www.buildingbodiestv.com, the only issue I am having is that it is a Flash/HTML hybrid, so when you go to a different section it is restarting the music, and I do not want that to happen. I would like the music to play and loop but not restart when changing sections.
Here is my sound code:
plpSound = new Sound(this);
plpSound.attachSound("theme");
plpSound.start(0, 99);
play_btn.onRelease = function() {
stopAllSounds();
plpSound.start(0, 99);
};
stop_btn.onRelease = function() {
stopAllSounds();
};
Any help would be greatly appreciated