home *** CD-ROM | disk | FTP | other *** search
- function soundOn()
- {
- _root.openingSound = new Sound();
- _root.gameOverSound = new Sound();
- _root.gameClearSound = new Sound();
- _root.backSound = new Sound();
- _root.buttonSound = new Sound();
- _root.knockSound = new Sound();
- _root.fishSound = new Sound();
- _root.jumpSound = new Sound();
- _root.openingSound.attachSound("openingSoundM");
- _root.gameOverSound.attachSound("gameOverSoundM");
- _root.gameClearSound.attachSound("gameClearSoundM");
- _root.backSound.attachSound("backSoundM");
- _root.buttonSound.attachSound("buttonSoundM");
- _root.knockSound.attachSound("knockSoundM");
- _root.fishSound.attachSound("fishSoundM");
- _root.jumpSound.attachSound("jumpSoundM");
- }
- function soundOff()
- {
- _root.backSound.stop();
- delete _root.openingSound;
- delete _root.gameOverSound;
- delete _root.gameClearSound;
- delete _root.backSound;
- delete _root.buttonSound;
- delete _root.knockSound;
- delete _root.fishSound;
- delete _root.jumpSound;
- }
- stop();
- _root.screen_mc.swapDepths(1000001);
- if(gameFirstValue)
- {
- soundOn();
- _root.backSound.start(0,999);
- _root.backSound.setVolume(50);
- _root.gameFirstValue = false;
- }
- soundOnOff = "";
-