home *** CD-ROM | disk | FTP | other *** search
- function toggleSound()
- {
- if(_root.soundOff)
- {
- _root.soundOff = false;
- }
- else
- {
- _root.soundOff = true;
- }
- playMusic();
- }
- function playMusic()
- {
- if(!_root.soundOff)
- {
- _root.mySound = new Sound("sound_mov");
- _root.mySound.attachSound(_root.currentSound);
- _root.mySound.start(0,9999);
- _root.mySound.setVolume(100);
- _root.playing = "true";
- }
- else
- {
- _root.mySound.stop();
- _root.playing = "false";
- }
- }
- function setMusic(name)
- {
- _root.mySound.stop();
- _root.currentSound = name;
- playMusic();
- }
-