home *** CD-ROM | disk | FTP | other *** search
- function showIcon(whichIcon)
- {
- whichIcon._visible = 1;
- whichIcon._x = _root._xmouse;
- whichIcon._y = _root._ymouse;
- }
- function hideIcon(whichIcon)
- {
- whichIcon._visible = 0;
- }
- function openTape()
- {
- duchan.tape._visible = 1;
- duchan.tape.tape_light._visible = 1;
- duchan.tape.tape_light._visible = 1;
- duchan.tape.tape_light.gotoAndPlay(2);
- }
- function activateTape()
- {
- duchan.tape._visible = 0;
- duchan.tape.tape_light._visible = 0;
- _root.bg_music.gotoAndPlay("stop music");
- if(flies.active == true)
- {
- _root.flies.gotoAndPlay("stop buzz");
- }
- i = 1;
- while(6 >= i)
- {
- eval("person" add i).gotoAndPlay("music");
- gotoAndPlay(31);
- i++;
- }
- _root.musicOn = true;
- }
- function returnTape()
- {
- gotoAndPlay(22);
- if(_root.soundOn == true)
- {
- _root.bg_music.gotoAndPlay(1);
- }
- else
- {
- _root.soundButt.gotoAndPlay("sound off");
- }
- if(flies.active == true)
- {
- _root.flies.gotoAndPlay("loop");
- }
- i = 1;
- while(6 >= i)
- {
- eval("person" add i).gotoAndPlay("normal");
- resetNerves(eval("person" add i));
- i++;
- }
- _root.musicOn = false;
- }
- function checkTapeStatus(currentSheerit)
- {
- if(currentSheerit >= 1)
- {
- if(_root.lastSheerit < currentSheerit)
- {
- tapeSound.start();
- _root.openTape();
- _root.lastSheerit = currentSheerit;
- }
- }
- }
- function pauseGame()
- {
- if(_root.pauseMode == false)
- {
- _root.pauseMode = true;
- _root.flies.stop();
- _root.flyOriginalTimeAtPause = _root.flyOriginalTime;
- _root.charOriginalTimeAtPause = _root.charOriginalTime;
- _root.bg_music.gotoAndPlay("stop music");
- i = 1;
- while(6 >= i)
- {
- set("_root.person" add i add "_originalTimeAtPause",eval("_root.person" add i add ".nerves.originalTime"));
- i++;
- }
- gotoAndPlay(307);
- }
- else
- {
- _root.pauseMode = false;
- _root.flyOriginalTime = getTimer() - _root.flyOriginalTimeAtPause;
- _root.charOriginalTime = getTimer() - _root.charOriginalTimeAtPause;
- if(soundOn == true)
- {
- _root.bg_music.gotoAndPlay("start");
- }
- else
- {
- _root.soundButt.gotoAndPlay("sound off");
- }
- i = 1;
- while(6 >= i)
- {
- set("_root.person" add i add ".nerves.originalTime",getTimer() - eval("_root.person" add i add "_originalTimeAtPause"));
- i++;
- }
- stopAllSounds();
- _root.flies.play();
- gotoAndPlay(22);
- }
- }
-