Section 1
//ACStinger_472 (Agent079_July19_1a_fla.ACStinger_472)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ACStinger_472 extends MovieClip {
public var shakeNum:int;
public var repeatFlap:int;
public function ACStinger_472(){
addFrameScript(0, frame1, 16, frame17, 28, frame29, 44, frame45, 90, frame91, 163, frame164, 244, frame245);
}
function frame164(){
repeatFlap = 0;
}
function frame1(){
shakeNum = 4;
}
function frame91(){
shakeNum--;
if (shakeNum > 0){
gotoAndPlay("hit2");
} else {
shakeNum = 4;
};
}
function frame245(){
stop();
MovieClip(root).introDone = true;
}
function frame45(){
shakeNum--;
if (shakeNum > 0){
gotoAndPlay("shake2");
} else {
shakeNum = 4;
};
}
function frame17(){
shakeNum--;
if (shakeNum > 0){
gotoAndPlay("shake1");
} else {
shakeNum = 4;
};
}
function frame29(){
shakeNum--;
if (shakeNum > 0){
gotoAndPlay("hit1");
} else {
shakeNum = 4;
};
}
}
}//package Agent079_July19_1a_fla
Section 2
//ArrowRotate_BUT_28 (Agent079_July19_1a_fla.ArrowRotate_BUT_28)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ArrowRotate_BUT_28 extends MovieClip {
public function ArrowRotate_BUT_28(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 3
//BackBUTMenu_529 (Agent079_July19_1a_fla.BackBUTMenu_529)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class BackBUTMenu_529 extends MovieClip {
public function BackBUTMenu_529(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 4
//boomSound_537 (Agent079_July19_1a_fla.boomSound_537)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class boomSound_537 extends MovieClip {
public function boomSound_537(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 5
//Cam2toCam3_BUT_35 (Agent079_July19_1a_fla.Cam2toCam3_BUT_35)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Cam2toCam3_BUT_35 extends MovieClip {
public function Cam2toCam3_BUT_35(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 6
//Cam3toCam2_BUT_40 (Agent079_July19_1a_fla.Cam3toCam2_BUT_40)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Cam3toCam2_BUT_40 extends MovieClip {
public function Cam3toCam2_BUT_40(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 7
//Cam3toCam45_BUT_119 (Agent079_July19_1a_fla.Cam3toCam45_BUT_119)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Cam3toCam45_BUT_119 extends MovieClip {
public function Cam3toCam45_BUT_119(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 8
//Cam3toSides_BUT_34 (Agent079_July19_1a_fla.Cam3toSides_BUT_34)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Cam3toSides_BUT_34 extends MovieClip {
public function Cam3toSides_BUT_34(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 9
//Cam45toCam2_BUT_71 (Agent079_July19_1a_fla.Cam45toCam2_BUT_71)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Cam45toCam2_BUT_71 extends MovieClip {
public function Cam45toCam2_BUT_71(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 10
//Cam45toCam3_BUT_70 (Agent079_July19_1a_fla.Cam45toCam3_BUT_70)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Cam45toCam3_BUT_70 extends MovieClip {
public function Cam45toCam3_BUT_70(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 11
//Cam45toNEXTROOM_BUT_72 (Agent079_July19_1a_fla.Cam45toNEXTROOM_BUT_72)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Cam45toNEXTROOM_BUT_72 extends MovieClip {
public function Cam45toNEXTROOM_BUT_72(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 12
//ChainLinkFenceSOUND_546 (Agent079_July19_1a_fla.ChainLinkFenceSOUND_546)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ChainLinkFenceSOUND_546 extends MovieClip {
public function ChainLinkFenceSOUND_546(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 13
//continueBUT_533 (Agent079_July19_1a_fla.continueBUT_533)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class continueBUT_533 extends MovieClip {
public function continueBUT_533(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 14
//continueOnLevelBUT_536 (Agent079_July19_1a_fla.continueOnLevelBUT_536)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class continueOnLevelBUT_536 extends MovieClip {
public var levelNum:Number;
public var dispNum:String;
public var dispText:TextField;
public function continueOnLevelBUT_536(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
}
function frame2(){
stop();
dispNum = ((levelNum < 10)) ? ("0" + levelNum) : ("" + levelNum);
if (levelNum <= MovieClip(root).maxLevelNum){
this.onPressFunc = function (){
if (MovieClip(root).canClickMenu == true){
trace(levelNum);
MovieClip(root).levelNum = levelNum;
MovieClip(root).gameMode = 1;
MovieClip(root).canClickMenu = false;
MovieClip(root).loadLevelTimer = 0;
gotoAndStop("clicked");
MovieClip(root).mainMenu.gotoAndPlay("mainMenuOut");
};
};
this.addEventListener(MouseEvent.CLICK, this.onPressFunc);
this.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
this.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
gotoAndStop("mouseOUT");
} else {
gotoAndStop("noBUT");
};
}
function frame3(){
dispText.text = dispNum;
}
function frame4(){
dispText.text = dispNum;
}
function frame5(){
dispText.text = dispNum;
}
function frame6(){
dispText.text = dispNum;
}
}
}//package Agent079_July19_1a_fla
Section 15
//creditsBUT_525 (Agent079_July19_1a_fla.creditsBUT_525)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class creditsBUT_525 extends MovieClip {
public function creditsBUT_525(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 16
//ELEV_controlArrow_BUT_210 (Agent079_July19_1a_fla.ELEV_controlArrow_BUT_210)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ELEV_controlArrow_BUT_210 extends MovieClip {
public function ELEV_controlArrow_BUT_210(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 17
//ELEV_CP_FloorINDIC_211 (Agent079_July19_1a_fla.ELEV_CP_FloorINDIC_211)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ELEV_CP_FloorINDIC_211 extends MovieClip {
public function ELEV_CP_FloorINDIC_211(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 18
//ELEV_Icons_BOTLEFT_199 (Agent079_July19_1a_fla.ELEV_Icons_BOTLEFT_199)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ELEV_Icons_BOTLEFT_199 extends MovieClip {
public function ELEV_Icons_BOTLEFT_199(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 19
//ELEV_Icons_BOTRIGHT_200 (Agent079_July19_1a_fla.ELEV_Icons_BOTRIGHT_200)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ELEV_Icons_BOTRIGHT_200 extends MovieClip {
public function ELEV_Icons_BOTRIGHT_200(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 20
//ELEV_Icons_TOPLEFT_201 (Agent079_July19_1a_fla.ELEV_Icons_TOPLEFT_201)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ELEV_Icons_TOPLEFT_201 extends MovieClip {
public function ELEV_Icons_TOPLEFT_201(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 21
//ELEV_Icons_TOPRIGHT_202 (Agent079_July19_1a_fla.ELEV_Icons_TOPRIGHT_202)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ELEV_Icons_TOPRIGHT_202 extends MovieClip {
public function ELEV_Icons_TOPRIGHT_202(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 22
//Elevator_ControlBUT_205 (Agent079_July19_1a_fla.Elevator_ControlBUT_205)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Elevator_ControlBUT_205 extends MovieClip {
public function Elevator_ControlBUT_205(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 23
//ElevatorMove_SOUND_560 (Agent079_July19_1a_fla.ElevatorMove_SOUND_560)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ElevatorMove_SOUND_560 extends MovieClip {
public function ElevatorMove_SOUND_560(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 24
//ElevatorSound_544 (Agent079_July19_1a_fla.ElevatorSound_544)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ElevatorSound_544 extends MovieClip {
public function ElevatorSound_544(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 25
//EV_Cam01_197 (Agent079_July19_1a_fla.EV_Cam01_197)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class EV_Cam01_197 extends MovieClip {
public var doorBOTLEFT:MovieClip;
public var iconsTOPRIGHT:MovieClip;
public var mC2:MovieClip;
public var doorTOPLEFT:MovieClip;
public var iconsBOTRIGHT:MovieClip;
public var iconsBOTLEFT:MovieClip;
public var doorTOPRIGHT:MovieClip;
public var iconsTOPLEFT:MovieClip;
public var doorBOTRIGHT:MovieClip;
public var controlBUT:MovieClip;
public var controlPanel:MovieClip;
public var tile:MovieClip;
public var mC:MovieClip;
public var floorLOGOS:MovieClip;
public var mC3:MovieClip;
public function EV_Cam01_197(){
addFrameScript(0, frame1, 1, frame2, 119, frame120, 120, frame121, 238, frame239, 239, frame240, 359, frame360, 360, frame361, 479, frame480, 480, frame481);
}
function frame239(){
gotoAndStop(1);
}
function frame480(){
gotoAndStop("floor2");
}
function frame360(){
stop();
mC3 = MovieClip(root);
mC3.itemsAr[mC3.itemsObj.floorNum] = 2;
doorTOPLEFT.visible = false;
doorTOPRIGHT.visible = true;
doorBOTRIGHT.visible = false;
doorBOTLEFT.visible = false;
controlPanel.visible = true;
controlPanel.floor1.gotoAndStop(1);
controlPanel.floor2.gotoAndStop(1);
controlPanel.floor3.gotoAndStop(3);
controlBUT.visible = true;
}
function frame240(){
mC2.playSound("elevator");
controlBUT.visible = false;
}
function frame2(){
doorTOPLEFT.visible = false;
doorTOPRIGHT.visible = false;
doorBOTRIGHT.visible = false;
doorBOTLEFT.visible = false;
controlPanel.visible = false;
mC.playSound("elevator");
controlBUT.visible = false;
}
function frame120(){
stop();
mC2 = MovieClip(root);
doorTOPLEFT.visible = false;
doorTOPRIGHT.visible = true;
doorBOTRIGHT.visible = false;
doorBOTLEFT.visible = true;
controlPanel.visible = true;
controlPanel.floor1.gotoAndStop(1);
controlPanel.floor2.gotoAndStop(3);
controlBUT.visible = true;
mC2.itemsAr[mC2.itemsObj.floorNum] = 1;
iconsTOPLEFT.gotoAndStop(mC2.roomPositions[mC2.itemsAr[mC2.itemsObj.floorNum]][0]);
iconsTOPRIGHT.gotoAndStop(mC2.roomPositions[mC2.itemsAr[mC2.itemsObj.floorNum]][1]);
iconsBOTRIGHT.gotoAndStop(mC2.roomPositions[mC2.itemsAr[mC2.itemsObj.floorNum]][2]);
iconsBOTLEFT.gotoAndStop(mC2.roomPositions[mC2.itemsAr[mC2.itemsObj.floorNum]][3]);
}
function frame481(){
controlBUT.visible = false;
}
function frame361(){
mC3.playSound("elevator");
controlBUT.visible = false;
}
function frame121(){
doorTOPLEFT.visible = false;
doorTOPRIGHT.visible = false;
doorBOTRIGHT.visible = false;
doorBOTLEFT.visible = false;
controlPanel.visible = false;
mC2.playSound("elevator");
controlBUT.visible = false;
}
function frame1(){
stop();
mC = MovieClip(root);
doorTOPLEFT.visible = true;
doorTOPRIGHT.visible = false;
doorBOTRIGHT.visible = true;
doorBOTLEFT.visible = false;
controlPanel.visible = true;
controlPanel.visible = true;
controlPanel.floor1.gotoAndStop(3);
controlPanel.floor2.gotoAndStop(1);
controlBUT.visible = true;
mC.itemsAr[mC.itemsObj.floorNum] = 0;
iconsTOPLEFT.gotoAndStop(mC.roomPositions[mC.itemsAr[mC.itemsObj.floorNum]][0]);
iconsTOPRIGHT.gotoAndStop(mC.roomPositions[mC.itemsAr[mC.itemsObj.floorNum]][1]);
iconsBOTRIGHT.gotoAndStop(mC.roomPositions[mC.itemsAr[mC.itemsObj.floorNum]][2]);
iconsBOTLEFT.gotoAndStop(mC.roomPositions[mC.itemsAr[mC.itemsObj.floorNum]][3]);
}
}
}//package Agent079_July19_1a_fla
Section 26
//EV_Doors_213 (Agent079_July19_1a_fla.EV_Doors_213)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class EV_Doors_213 extends MovieClip {
public var keyChain:MovieClip;
public var mC:MovieClip;
public function EV_Doors_213(){
addFrameScript(0, frame1);
}
function frame1(){
mC = MovieClip(root);
if (mC.itemsAr[mC.itemsObj.keyChainInElevator] == 1){
keyChain.visible = true;
} else {
keyChain.visible = false;
};
keyChain.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
trace("clicked on keychain");
mC.pickUpItem(e, mC.itemsObj.keyChainInElevator, mC.invObj.keyChain, "You picked up the MASTER KEY CHAIN", 1);
});
}
}
}//package Agent079_July19_1a_fla
Section 27
//fanDroneCLIP_557 (Agent079_July19_1a_fla.fanDroneCLIP_557)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class fanDroneCLIP_557 extends MovieClip {
public var track1:fan;
public var someChannel:SoundChannel;
public var startSound:Boolean;
public var someTransform:SoundTransform;
public function fanDroneCLIP_557(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame1(){
stop();
track1 = new fan();
someTransform = new SoundTransform(1);
someChannel = new SoundChannel();
startSound = true;
}
function frame2(){
someTransform.volume = MovieClip(root).fanVolume;
someChannel = track1.play(0, 1000, someTransform);
stop();
}
function frame3(){
someChannel.stop();
stop();
}
function frame4(){
someTransform.volume = (someTransform.volume - 0.03);
someChannel.soundTransform = someTransform;
if (someTransform.volume <= 0){
someChannel.stop();
stop();
};
}
function frame5(){
someTransform.volume = (someTransform.volume - 0.03);
someChannel.soundTransform = someTransform;
if (someTransform.volume <= 0){
someChannel.stop();
stop();
} else {
gotoAndPlay(4);
};
}
function frame6(){
someTransform.volume = MovieClip(root).fanVolume;
someChannel.soundTransform = someTransform;
trace(("here " + someTransform.volume));
}
function frame7(){
stop();
}
function frame8(){
someTransform.volume = 0;
someChannel = track1.play(0, 1000, someTransform);
}
function frame9(){
someTransform.volume = (someTransform.volume + 0.03);
someChannel.soundTransform = someTransform;
if (someTransform.volume >= MovieClip(root).fanVolume){
stop();
};
}
function frame10(){
someTransform.volume = (someTransform.volume + 0.03);
someChannel.soundTransform = someTransform;
if (someTransform.volume >= MovieClip(root).fireVolume){
stop();
} else {
gotoAndPlay(9);
};
}
}
}//package Agent079_July19_1a_fla
Section 28
//Fire_Cam3_COPPERKEY_53 (Agent079_July19_1a_fla.Fire_Cam3_COPPERKEY_53)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Fire_Cam3_COPPERKEY_53 extends MovieClip {
public function Fire_Cam3_COPPERKEY_53(){
addFrameScript(0, frame1, 62, frame63);
}
function frame63(){
stop();
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 29
//Fire_Cam3_GOLDKEY_54 (Agent079_July19_1a_fla.Fire_Cam3_GOLDKEY_54)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Fire_Cam3_GOLDKEY_54 extends MovieClip {
public function Fire_Cam3_GOLDKEY_54(){
addFrameScript(0, frame1, 62, frame63);
}
function frame63(){
stop();
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 30
//Fire_Cam3_HOTKEY_56 (Agent079_July19_1a_fla.Fire_Cam3_HOTKEY_56)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Fire_Cam3_HOTKEY_56 extends MovieClip {
public function Fire_Cam3_HOTKEY_56(){
addFrameScript(0, frame1, 62, frame63);
}
function frame63(){
stop();
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 31
//Fire_Cam3_LiquidMetal_59 (Agent079_July19_1a_fla.Fire_Cam3_LiquidMetal_59)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Fire_Cam3_LiquidMetal_59 extends MovieClip {
public function Fire_Cam3_LiquidMetal_59(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 32
//Fire_Cam3_PLATINUMKEY_55 (Agent079_July19_1a_fla.Fire_Cam3_PLATINUMKEY_55)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Fire_Cam3_PLATINUMKEY_55 extends MovieClip {
public function Fire_Cam3_PLATINUMKEY_55(){
addFrameScript(0, frame1, 62, frame63);
}
function frame63(){
stop();
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 33
//Fire_cam3_ToCam5NEW_41 (Agent079_July19_1a_fla.Fire_cam3_ToCam5NEW_41)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Fire_cam3_ToCam5NEW_41 extends MovieClip {
public function Fire_cam3_ToCam5NEW_41(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 34
//Fire_Cam3_WaterBottle_64 (Agent079_July19_1a_fla.Fire_Cam3_WaterBottle_64)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Fire_Cam3_WaterBottle_64 extends MovieClip {
public function Fire_Cam3_WaterBottle_64(){
addFrameScript(0, frame1, 19, frame20);
}
function frame20(){
stop();
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 35
//Fire_Cam3_WaterInTray_61 (Agent079_July19_1a_fla.Fire_Cam3_WaterInTray_61)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Fire_Cam3_WaterInTray_61 extends MovieClip {
public function Fire_Cam3_WaterInTray_61(){
addFrameScript(0, frame1, 49, frame50);
}
function frame50(){
MovieClip(root).curLevel.cam3.hotKey.gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 36
//FIRE_cam4_BBEPXFaint_83 (Agent079_July19_1a_fla.FIRE_cam4_BBEPXFaint_83)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class FIRE_cam4_BBEPXFaint_83 extends MovieClip {
public function FIRE_cam4_BBEPXFaint_83(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame1(){
}
function frame2(){
}
function frame3(){
}
function frame4(){
}
function frame5(){
}
function frame6(){
}
function frame7(){
}
function frame8(){
}
}
}//package Agent079_July19_1a_fla
Section 37
//FIRE_Cam4_FLAMES_79 (Agent079_July19_1a_fla.FIRE_Cam4_FLAMES_79)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class FIRE_Cam4_FLAMES_79 extends MovieClip {
public function FIRE_Cam4_FLAMES_79(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
function frame2(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
function frame3(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
function frame4(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
function frame5(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
function frame6(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
}
}//package Agent079_July19_1a_fla
Section 38
//FIRE_Cam4_LASER_80 (Agent079_July19_1a_fla.FIRE_Cam4_LASER_80)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class FIRE_Cam4_LASER_80 extends MovieClip {
public function FIRE_Cam4_LASER_80(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame2(){
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame3(){
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame4(){
gotoAndPlay((Rand.getRandom(4) + 1));
}
}
}//package Agent079_July19_1a_fla
Section 39
//Fire_Cam4_Streamers_87 (Agent079_July19_1a_fla.Fire_Cam4_Streamers_87)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Fire_Cam4_Streamers_87 extends MovieClip {
public function Fire_Cam4_Streamers_87(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame10(){
gotoAndPlay((Rand.getRandom(8) + 2));
}
function frame1(){
stop();
}
function frame2(){
gotoAndPlay((Rand.getRandom(8) + 2));
}
function frame3(){
gotoAndPlay((Rand.getRandom(8) + 2));
}
function frame4(){
gotoAndPlay((Rand.getRandom(8) + 2));
}
function frame5(){
gotoAndPlay((Rand.getRandom(8) + 2));
}
function frame6(){
gotoAndPlay((Rand.getRandom(8) + 2));
}
function frame7(){
gotoAndPlay((Rand.getRandom(8) + 2));
}
function frame8(){
gotoAndPlay((Rand.getRandom(8) + 2));
}
function frame9(){
gotoAndPlay((Rand.getRandom(8) + 2));
}
}
}//package Agent079_July19_1a_fla
Section 40
//Fire_Cam5_ProverbCOVER_94 (Agent079_July19_1a_fla.Fire_Cam5_ProverbCOVER_94)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Fire_Cam5_ProverbCOVER_94 extends MovieClip {
public function Fire_Cam5_ProverbCOVER_94(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 41
//FireRoom_Cam03_OnPuzzleOnSwitch_50 (Agent079_July19_1a_fla.FireRoom_Cam03_OnPuzzleOnSwitch_50)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class FireRoom_Cam03_OnPuzzleOnSwitch_50 extends MovieClip {
public function FireRoom_Cam03_OnPuzzleOnSwitch_50(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 42
//FireRoom_Cam3_ONPUZZLE_42 (Agent079_July19_1a_fla.FireRoom_Cam3_ONPUZZLE_42)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class FireRoom_Cam3_ONPUZZLE_42 extends MovieClip {
public var spigot3t:MovieClip;
public var green:MovieClip;
public var oilsArray:Array;
public var repeater:int;
public var spigot4b:MovieClip;
public var heightsArray:Array;
public var spigot4t:MovieClip;
public var onBUT:MovieClip;
public var spigot5b:MovieClip;
public var spigot1b:MovieClip;
public var purple:MovieClip;
public var spigot5t:MovieClip;
public var spigot1t:MovieClip;
public var spigot2b:MovieClip;
public var firePuzzleCLICK:MovieClip;
public var blue:MovieClip;
public var puzzleSolved:Boolean;
public var spigot2t:MovieClip;
public var spigot3b:MovieClip;
public var yellow:MovieClip;
public var mC:MovieClip;
public var black:MovieClip;
public function FireRoom_Cam3_ONPUZZLE_42(){
addFrameScript(0, frame1, 40, frame41, 41, frame42, 42, frame43, 43, frame44);
}
public function adjustHeights(oil:int, inc:Number):Number{
var canAdjust:Number = 0;
if ((heightsArray[oil] + inc) < 0){
mC.callMessage("you cannot lower ANY of the fluids to below EMPTY", 1);
} else {
if ((heightsArray[oil] + inc) > 12){
mC.callMessage("you cannot raise ANY of the fluids to above FULL", 1);
} else {
if ((oil - 1) >= 0){
canAdjust = (((heightsArray[(oil - 1)] + inc) < 0)) ? -1 : (((heightsArray[(oil - 1)] + inc) > 12)) ? 1 : canAdjust;
};
if ((oil + 1) <= 4){
canAdjust = (((heightsArray[(oil + 1)] + inc) < 0)) ? -1 : (((heightsArray[(oil + 1)] + inc) > 12)) ? 1 : canAdjust;
};
if (canAdjust == -1){
mC.callMessage("you cannot lower ANY of the fluids to below EMPTY", 1);
} else {
if (canAdjust == 1){
mC.callMessage("you cannot raise ANY of the fluids to above FULL", 1);
} else {
if ((oil - 1) >= 0){
heightsArray[(oil - 1)] = (heightsArray[(oil - 1)] + inc);
};
if ((oil + 1) <= 4){
heightsArray[(oil + 1)] = (heightsArray[(oil + 1)] + inc);
};
heightsArray[oil] = (heightsArray[oil] + inc);
setHeights();
};
};
};
};
return (canAdjust);
}
function frame41(){
repeater = 0;
}
function frame42(){
mC.curLevel.cam3.BGGlow.alpha = (mC.curLevel.cam3.BGGlow.alpha + 0.04);
}
function frame43(){
mC.curLevel.cam3.BGGlow.alpha = (mC.curLevel.cam3.BGGlow.alpha + 0.04);
if (mC.curLevel.cam3.BGGlow.alpha < 1){
gotoAndPlay("repeatFrame");
};
}
function frame44(){
mC.curLevel.cam3.onPuzzle.visible = false;
mC.curLevel.turnOnFurnace();
stop();
}
function frame1(){
firePuzzleCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
MovieClip(root).callMessage("This must be how I turn the FURNACE on... these 5 OILS have to be level with the RED LINES, then I hit that switch", 2);
});
stop();
mC = MovieClip(root);
oilsArray = [yellow, purple, green, blue, black];
heightsArray = [1, 9, 8, 11, 3];
setHeights();
puzzleSolved = false;
spigot1b.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (puzzleSolved == false){
spigot1b.gotoAndPlay(((adjustHeights(0, -1) == 0)) ? "mouseDOWN" : "mouseBAD");
};
});
spigot1t.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (puzzleSolved == false){
spigot1t.gotoAndPlay(((adjustHeights(0, 1) == 0)) ? "mouseDOWN" : "mouseBAD");
};
});
spigot2b.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (puzzleSolved == false){
spigot2b.gotoAndPlay(((adjustHeights(1, -1) == 0)) ? "mouseDOWN" : "mouseBAD");
};
});
spigot2t.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (puzzleSolved == false){
spigot2t.gotoAndPlay(((adjustHeights(1, 1) == 0)) ? "mouseDOWN" : "mouseBAD");
};
});
spigot3b.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (puzzleSolved == false){
spigot3b.gotoAndPlay(((adjustHeights(2, -1) == 0)) ? "mouseDOWN" : "mouseBAD");
};
});
spigot3t.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (puzzleSolved == false){
spigot3t.gotoAndPlay(((adjustHeights(2, 1) == 0)) ? "mouseDOWN" : "mouseBAD");
};
});
spigot4b.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (puzzleSolved == false){
spigot4b.gotoAndPlay(((adjustHeights(3, -1) == 0)) ? "mouseDOWN" : "mouseBAD");
};
});
spigot4t.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (puzzleSolved == false){
spigot4t.gotoAndPlay(((adjustHeights(3, 1) == 0)) ? "mouseDOWN" : "mouseBAD");
};
});
spigot5b.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (puzzleSolved == false){
spigot5b.gotoAndPlay(((adjustHeights(4, -1) == 0)) ? "mouseDOWN" : "mouseBAD");
};
});
spigot5t.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (puzzleSolved == false){
spigot5t.gotoAndPlay(((adjustHeights(4, 1) == 0)) ? "mouseDOWN" : "mouseBAD");
};
});
onBUT.addEventListener(MouseEvent.CLICK, checkComplete);
}
public function setHeights():void{
trace("new heights");
var i:int;
while (i < 5) {
oilsArray[i].scaleY = heightsArray[i];
trace(heightsArray[i]);
i++;
};
}
public function checkComplete(e:MouseEvent):void{
var c:int;
if (puzzleSolved == false){
puzzleSolved = true;
c = 0;
while (c < 5) {
if (heightsArray[c] != 6){
puzzleSolved = false;
};
c++;
};
if (puzzleSolved == true){
mC.itemsAr[mC.itemsObj.furnaceOn] = 1;
mC.curLevel.cam3.BGGlow.visible = true;
mC.curLevel.cam3.BGGlow.alpha = 0;
mC.curLevel.cam2.BGGlow.visible = true;
gotoAndPlay(2);
onBUT.gotoAndStop(2);
} else {
heightsArray = [1, 9, 8, 11, 3];
setHeights();
onBUT.gotoAndPlay(2);
};
};
}
}
}//package Agent079_July19_1a_fla
Section 43
//firstLevelMessage_516 (Agent079_July19_1a_fla.firstLevelMessage_516)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public dynamic class firstLevelMessage_516 extends MovieClip {
public var closer:MovieClip;
public var levMessage:TextField;
public function firstLevelMessage_516(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
closer.addEventListener(MouseEvent.CLICK, closerClick);
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
public function closerClick(e:MouseEvent):void{
gotoAndStop(1);
}
}
}//package Agent079_July19_1a_fla
Section 44
//gameWonMenu_508 (Agent079_July19_1a_fla.gameWonMenu_508)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class gameWonMenu_508 extends MovieClip {
public var sponsorBUT:MovieClip;
public var cFrame:int;
public var saveBUT:MovieClip;
public var nextBUT:MovieClip;
public var bestTimeText:TextField;
public var homeBUT:MovieClip;
public var kongBUT:MovieClip;
public var mC:MovieClip;
public var currentTimeText:TextField;
public function gameWonMenu_508(){
addFrameScript(0, frame1, 5, frame6);
}
public function homeBUTClick(e:MouseEvent):void{
if (mC.canClickWon == true){
mC.gameMode = 0;
mC.mouseCursor.gotoAndStop("hand");
mC.heldItem = "hand";
mC.levelMessage.gotoAndStop(1);
mC.gameMenus.gotoAndPlay("gameWonOut");
};
}
function frame1(){
cFrame = 1;
mC = MovieClip(root);
nextBUT.addEventListener(MouseEvent.CLICK, nextFunc);
nextBUT.addEventListener(MouseEvent.MOUSE_OUT, mC.BUTRollOut);
nextBUT.addEventListener(MouseEvent.MOUSE_OVER, mC.BUTRollOver);
MovieClip(root).curStage.visible = false;
stop();
}
public function moreGamesBUTClick(e:MouseEvent):void{
navigateToURL(new URLRequest("http://www.minijuegos.com"), "_blank");
}
public function nextFunc(e:MouseEvent):void{
cFrame++;
gotoAndStop(cFrame);
}
function frame6(){
sponsorBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
sponsorBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
stop();
mC.gameBeaten = 1;
homeBUT.addEventListener(MouseEvent.CLICK, homeBUTClick);
homeBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
homeBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
if (MovieClip(root).bestTime == 0){
MovieClip(root).bestTime = MovieClip(root).curGameTimer;
} else {
if (MovieClip(root).curGameTimer > MovieClip(root).bestTime){
MovieClip(root).bestTime = MovieClip(root).curGameTimer;
};
};
currentTimeText.text = MovieClip(root).returnTime(MovieClip(root).curGameTimer);
bestTimeText.text = MovieClip(root).returnTime(MovieClip(root).bestTime);
saveBUT.addEventListener(MouseEvent.CLICK, saveBUTClick);
saveBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
saveBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
sponsorBUT.addEventListener(MouseEvent.CLICK, moreGamesBUTClick);
}
public function saveBUTClick(e:MouseEvent):void{
if (mC.canClickHUD == true){
mC.levelMessage.levMessage.text = "game data saved";
mC.levelMessage.gotoAndPlay(2);
mC.saveGameData();
};
}
}
}//package Agent079_July19_1a_fla
Section 45
//HUDHomeBUT_499 (Agent079_July19_1a_fla.HUDHomeBUT_499)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class HUDHomeBUT_499 extends MovieClip {
public function HUDHomeBUT_499(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 46
//HUDInner_490 (Agent079_July19_1a_fla.HUDInner_490)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class HUDInner_490 extends MovieClip {
public var rightScroll:MovieClip;
public var inventoryNum:int;
public var saveBUT:MovieClip;
public var quitWIND:MovieClip;
public var listScroll:Number;
public var homeBUT:MovieClip;
public var muteBUT:MovieClip;
public var moreGamesBUT:MovieClip;
public var mC:MovieClip;
public var walkBUT:MovieClip;
public var HUDinv:MovieClip;
public var leftScroll:MovieClip;
public var bMC:MovieClip;
public function HUDInner_490(){
addFrameScript(0, frame1);
}
public function muteBUTClick(e:MouseEvent):void{
if (MovieClip(root).soundOn == true){
MovieClip(root).soundOn = false;
e.currentTarget.slash.visible = true;
MovieClip(root).mainAmbience.gotoAndPlay("OUT");
MovieClip(root).curLevel.stopSounds();
SoundMixer.stopAll();
} else {
SoundMixer.stopAll();
MovieClip(root).soundOn = true;
e.currentTarget.slash.visible = false;
MovieClip(root).mainAmbience.gotoAndPlay("IN");
MovieClip(root).curLevel.startSounds();
};
}
public function homeBUTClick(e:MouseEvent):void{
if (mC.canClickHUD == true){
quitWIND.visible = true;
};
}
public function moreGamesBUTClick(e:MouseEvent):void{
navigateToURL(new URLRequest("http://www.minijuegos.com"), "_blank");
}
public function refreshList():void{
HUDinv.removeChild(bMC);
bMC = null;
buildList();
bMC.x = ((bMC.x > 0)) ? 0 : ((bMC.x < -(((20 + (inventoryNum * 55)) - 600)))) ? -(((20 + (inventoryNum * 55)) - 600)) : bMC.x;
listScroll = bMC.x;
}
public function invOut(e:MouseEvent):void{
if (this.mouseY < 355){
leftScroll.visible = false;
rightScroll.visible = false;
};
}
public function invClick(e:MouseEvent):void{
if (MovieClip(root).checkCombine(MovieClip(root).heldNum, e.currentTarget.invNum) != true){
MovieClip(root).heldItem = e.currentTarget.invName;
MovieClip(root).heldNum = e.currentTarget.invNum;
MovieClip(root).mouseCursor.gotoAndStop(e.currentTarget.invName);
trace(("now holding: " + e.currentTarget.invName));
MovieClip(root).itemMessage.itMessage.text = ("" + e.currentTarget.writName);
MovieClip(root).itemMessage.gotoAndPlay(2);
};
}
public function saveBUTClick(e:MouseEvent):void{
if (mC.canClickHUD == true){
mC.levelMessage.levMessage.text = "game data saved";
mC.levelMessage.gotoAndPlay(2);
mC.saveGameData();
};
}
public function invOver(e:MouseEvent):void{
if (inventoryNum > 10){
leftScroll.visible = true;
rightScroll.visible = true;
};
}
public function hudListScroll():void{
var scrollInc:Number;
var mX:Number = mC.mouseX;
var mY:Number = HUDinv.mouseY;
if (inventoryNum < 11){
bMC.x = 0;
} else {
if (mY > 0){
if (mX < 300){
scrollInc = ((300 - mX) / 30);
} else {
scrollInc = (-((mX - 300)) / 30);
};
bMC.x = (bMC.x + scrollInc);
bMC.x = ((bMC.x > 0)) ? 0 : ((bMC.x < -(((20 + (inventoryNum * 55)) - 600)))) ? -(((20 + (inventoryNum * 55)) - 600)) : bMC.x;
listScroll = bMC.x;
};
};
}
function frame1(){
quitWIND.visible = false;
homeBUT.addEventListener(MouseEvent.CLICK, homeBUTClick);
homeBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
homeBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
saveBUT.addEventListener(MouseEvent.CLICK, saveBUTClick);
saveBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
saveBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
walkBUT.addEventListener(MouseEvent.CLICK, MovieClip(root).walkBUTClick);
walkBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
walkBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
muteBUT.addEventListener(MouseEvent.CLICK, muteBUTClick);
muteBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
muteBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
moreGamesBUT.addEventListener(MouseEvent.CLICK, moreGamesBUTClick);
moreGamesBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
moreGamesBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
leftScroll.visible = false;
rightScroll.visible = false;
leftScroll.addEventListener(MouseEvent.MOUSE_OUT, invOut);
rightScroll.addEventListener(MouseEvent.MOUSE_OUT, invOut);
inventoryNum = 0;
mC = MovieClip(root);
listScroll = 0;
buildList();
HUDinv.addEventListener(MouseEvent.MOUSE_OUT, invOut);
}
public function buildList():void{
var invItem:HUDList;
inventoryNum = 0;
bMC = new MovieClip();
var i:int;
while (i < mC.invAr.length) {
if (mC.invAr[i] == true){
invItem = new HUDList();
invItem.x = (10 + (inventoryNum * 55));
invItem.invName = mC.invNames[i];
invItem.writName = mC.writNames[i];
invItem.invNum = i;
invItem.gotoAndStop(invItem.invName);
invItem.addEventListener(MouseEvent.CLICK, invClick);
invItem.addEventListener(MouseEvent.MOUSE_OVER, invOver);
invItem.addEventListener(MouseEvent.MOUSE_OUT, invOut);
bMC.addChild(invItem);
inventoryNum++;
};
i++;
};
HUDinv.addChild(bMC);
bMC.x = listScroll;
}
}
}//package Agent079_July19_1a_fla
Section 47
//HUDMuteBUT_501 (Agent079_July19_1a_fla.HUDMuteBUT_501)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class HUDMuteBUT_501 extends MovieClip {
public var slash:MovieClip;
public function HUDMuteBUT_501(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 48
//HUDQuitWind_503 (Agent079_July19_1a_fla.HUDQuitWind_503)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class HUDQuitWind_503 extends MovieClip {
public var homeBUT:MovieClip;
public var cancelBUT:MovieClip;
public var mC:MovieClip;
public var saveBUT:MovieClip;
public function HUDQuitWind_503(){
addFrameScript(0, frame1);
}
public function cancelBUTClick(e:MouseEvent):void{
if (mC.canClickHUD == true){
this.visible = false;
};
}
public function saveBUTClick(e:MouseEvent):void{
if (mC.canClickHUD == true){
mC.levelMessage.levMessage.text = "game data saved";
mC.levelMessage.gotoAndPlay(2);
mC.saveGameData();
homeBUTClick(e);
this.visible = false;
};
}
public function homeBUTClick(e:MouseEvent):void{
if (mC.canClickHUD == true){
mC.gameMode = 0;
mC.mouseCursor.gotoAndStop("hand");
mC.heldItem = "hand";
mC.levelMessage.gotoAndStop(1);
mC.HUD.gotoAndPlay("HUDOut");
MovieClip(root).curLevel.stopSounds();
};
}
function frame1(){
mC = MovieClip(root);
homeBUT.addEventListener(MouseEvent.CLICK, homeBUTClick);
homeBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
homeBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
saveBUT.addEventListener(MouseEvent.CLICK, saveBUTClick);
saveBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
saveBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
cancelBUT.addEventListener(MouseEvent.CLICK, cancelBUTClick);
cancelBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
cancelBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
}
}
}//package Agent079_July19_1a_fla
Section 49
//HUDQuitWINDCancelBUT_506 (Agent079_July19_1a_fla.HUDQuitWINDCancelBUT_506)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class HUDQuitWINDCancelBUT_506 extends MovieClip {
public function HUDQuitWINDCancelBUT_506(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 50
//HUDQuitWindHomeBUT_504 (Agent079_July19_1a_fla.HUDQuitWindHomeBUT_504)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class HUDQuitWindHomeBUT_504 extends MovieClip {
public function HUDQuitWindHomeBUT_504(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 51
//HUDQuitWINDSaveBUT_505 (Agent079_July19_1a_fla.HUDQuitWINDSaveBUT_505)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class HUDQuitWINDSaveBUT_505 extends MovieClip {
public function HUDQuitWINDSaveBUT_505(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 52
//HUDSaveBUT_497 (Agent079_July19_1a_fla.HUDSaveBUT_497)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class HUDSaveBUT_497 extends MovieClip {
public function HUDSaveBUT_497(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 53
//ICE_Cam2_BasketROPE_340 (Agent079_July19_1a_fla.ICE_Cam2_BasketROPE_340)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Cam2_BasketROPE_340 extends MovieClip {
public function ICE_Cam2_BasketROPE_340(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 54
//ICE_Cam2_FLAMES_338 (Agent079_July19_1a_fla.ICE_Cam2_FLAMES_338)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Cam2_FLAMES_338 extends MovieClip {
public function ICE_Cam2_FLAMES_338(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame1(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
function frame2(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
function frame3(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
function frame4(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
function frame5(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
function frame6(){
gotoAndPlay((Rand.getRandom(6) + 1));
}
}
}//package Agent079_July19_1a_fla
Section 55
//ICE_Cam2_GEARROPE_328 (Agent079_July19_1a_fla.ICE_Cam2_GEARROPE_328)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Cam2_GEARROPE_328 extends MovieClip {
public function ICE_Cam2_GEARROPE_328(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 56
//ICE_Cam2_RunningWater_329 (Agent079_July19_1a_fla.ICE_Cam2_RunningWater_329)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Cam2_RunningWater_329 extends MovieClip {
public function ICE_Cam2_RunningWater_329(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 57
//ICE_Cam2_TANK_332 (Agent079_July19_1a_fla.ICE_Cam2_TANK_332)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Cam2_TANK_332 extends MovieClip {
public function ICE_Cam2_TANK_332(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 58
//ICE_Cam3_TANK_346 (Agent079_July19_1a_fla.ICE_Cam3_TANK_346)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Cam3_TANK_346 extends MovieClip {
public function ICE_Cam3_TANK_346(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 59
//ICE_Cam3and7_toEachother_347 (Agent079_July19_1a_fla.ICE_Cam3and7_toEachother_347)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Cam3and7_toEachother_347 extends MovieClip {
public function ICE_Cam3and7_toEachother_347(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 60
//ICE_Cam6_BasketROPE_367 (Agent079_July19_1a_fla.ICE_Cam6_BasketROPE_367)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Cam6_BasketROPE_367 extends MovieClip {
public function ICE_Cam6_BasketROPE_367(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 61
//ICE_Cam7_BasketROPE_373 (Agent079_July19_1a_fla.ICE_Cam7_BasketROPE_373)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Cam7_BasketROPE_373 extends MovieClip {
public function ICE_Cam7_BasketROPE_373(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 62
//ICE_Cam7_CHAIN_372 (Agent079_July19_1a_fla.ICE_Cam7_CHAIN_372)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Cam7_CHAIN_372 extends MovieClip {
public function ICE_Cam7_CHAIN_372(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 63
//ICE_Cam7_TANK_371 (Agent079_July19_1a_fla.ICE_Cam7_TANK_371)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Cam7_TANK_371 extends MovieClip {
public function ICE_Cam7_TANK_371(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 64
//ICE_Steam_374 (Agent079_July19_1a_fla.ICE_Steam_374)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class ICE_Steam_374 extends MovieClip {
public var steam1:MovieClip;
public var steam2:MovieClip;
public function ICE_Steam_374(){
addFrameScript(0, frame1);
}
function frame1(){
steam1.mouseEnabled = false;
steam2.mouseEnabled = false;
}
}
}//package Agent079_July19_1a_fla
Section 65
//inGameMenus_507 (Agent079_July19_1a_fla.inGameMenus_507)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class inGameMenus_507 extends MovieClip {
public var gameWonMenu:MovieClip;
public function inGameMenus_507(){
addFrameScript(0, frame1, 14, frame15, 33, frame34, 90, frame91, 110, frame111);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame91(){
stop();
}
function frame111(){
gotoAndStop(1);
}
function frame34(){
gotoAndStop(1);
}
}
}//package Agent079_July19_1a_fla
Section 66
//ItemKeychain_19 (Agent079_July19_1a_fla.ItemKeychain_19)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ItemKeychain_19 extends MovieClip {
public var gold:MovieClip;
public var platinum:MovieClip;
public var time:MovieClip;
public var mC:MovieClip;
public var copper:MovieClip;
public var fire:MovieClip;
public function ItemKeychain_19(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
mC = MovieClip(root);
platinum.visible = false;
gold.visible = false;
fire.visible = false;
time.visible = false;
copper.visible = false;
}
function frame2(){
platinum.visible = ((mC.itemsAr[mC.itemsObj.platinumKeyInkeychain] == 1)) ? true : false;
gold.visible = ((mC.itemsAr[mC.itemsObj.goldKeyInkeychain] == 1)) ? true : false;
fire.visible = ((mC.itemsAr[mC.itemsObj.fireKeyInkeychain] == 1)) ? true : false;
time.visible = ((mC.itemsAr[mC.itemsObj.timeKeyInkeychain] == 1)) ? true : false;
copper.visible = ((mC.itemsAr[mC.itemsObj.copperKeyInkeychain] == 1)) ? true : false;
}
function frame3(){
gotoAndPlay(2);
}
}
}//package Agent079_July19_1a_fla
Section 67
//itemMessage_518 (Agent079_July19_1a_fla.itemMessage_518)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public dynamic class itemMessage_518 extends MovieClip {
public var closer:MovieClip;
public var itMessage:TextField;
public function itemMessage_518(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
closer.addEventListener(MouseEvent.CLICK, closerClick);
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
public function closerClick(e:MouseEvent):void{
gotoAndStop(1);
}
}
}//package Agent079_July19_1a_fla
Section 68
//Kongintro12fps_4 (Agent079_July19_1a_fla.Kongintro12fps_4)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Kongintro12fps_4 extends MovieClip {
public function Kongintro12fps_4(){
addFrameScript(189, frame190);
}
function frame190(){
stop();
MovieClip(root).sponsorDone = true;
}
}
}//package Agent079_July19_1a_fla
Section 69
//levelSelectBUT_526 (Agent079_July19_1a_fla.levelSelectBUT_526)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class levelSelectBUT_526 extends MovieClip {
public function levelSelectBUT_526(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 70
//levelSelectContent_535 (Agent079_July19_1a_fla.levelSelectContent_535)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class levelSelectContent_535 extends MovieClip {
public var BUT33:MovieClip;
public var BUT35:MovieClip;
public var BUT30:MovieClip;
public var BUT32:MovieClip;
public var BUT34:MovieClip;
public var BUT8:MovieClip;
public var BUT10:MovieClip;
public var BUT11:MovieClip;
public var BUT12:MovieClip;
public var BUT13:MovieClip;
public var BUT15:MovieClip;
public var BUT19:MovieClip;
public var BUT14:MovieClip;
public var BUT16:MovieClip;
public var BUT18:MovieClip;
public var BUT17:MovieClip;
public var BUT20:MovieClip;
public var BUT22:MovieClip;
public var BUT24:MovieClip;
public var BUT26:MovieClip;
public var BUT28:MovieClip;
public var BUT29:MovieClip;
public var BUT23:MovieClip;
public var BUT25:MovieClip;
public var BUT27:MovieClip;
public var BUT21:MovieClip;
public var BUT1:MovieClip;
public var BUT2:MovieClip;
public var BUT3:MovieClip;
public var BUT4:MovieClip;
public var BUT5:MovieClip;
public var BUT6:MovieClip;
public var BUT7:MovieClip;
public var BUT9:MovieClip;
public var BUT31:MovieClip;
public function levelSelectContent_535(){
addFrameScript(0, frame1);
}
function frame1(){
BUT1.levelNum = 1;
BUT2.levelNum = 2;
BUT3.levelNum = 3;
BUT4.levelNum = 4;
BUT5.levelNum = 5;
BUT6.levelNum = 6;
BUT7.levelNum = 7;
BUT8.levelNum = 8;
BUT9.levelNum = 9;
BUT10.levelNum = 10;
BUT11.levelNum = 11;
BUT12.levelNum = 12;
BUT13.levelNum = 13;
BUT14.levelNum = 14;
BUT15.levelNum = 15;
BUT16.levelNum = 16;
BUT17.levelNum = 17;
BUT18.levelNum = 18;
BUT19.levelNum = 19;
BUT20.levelNum = 20;
BUT21.levelNum = 21;
BUT22.levelNum = 22;
BUT23.levelNum = 23;
BUT24.levelNum = 24;
BUT25.levelNum = 25;
BUT26.levelNum = 26;
BUT27.levelNum = 27;
BUT28.levelNum = 28;
BUT29.levelNum = 29;
BUT30.levelNum = 30;
BUT31.levelNum = 31;
BUT32.levelNum = 32;
BUT33.levelNum = 33;
BUT34.levelNum = 34;
BUT35.levelNum = 35;
stop();
}
}
}//package Agent079_July19_1a_fla
Section 71
//Light_cam1_BGGLOW_219 (Agent079_July19_1a_fla.Light_cam1_BGGLOW_219)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_cam1_BGGLOW_219 extends MovieClip {
public function Light_cam1_BGGLOW_219(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 72
//Light_Cam3_BGGLOW_229 (Agent079_July19_1a_fla.Light_Cam3_BGGLOW_229)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam3_BGGLOW_229 extends MovieClip {
public function Light_Cam3_BGGLOW_229(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 73
//Light_Cam3_ColourFilters_237 (Agent079_July19_1a_fla.Light_Cam3_ColourFilters_237)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam3_ColourFilters_237 extends MovieClip {
public function Light_Cam3_ColourFilters_237(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 74
//Light_Cam3_DIAMONDCLIP_236 (Agent079_July19_1a_fla.Light_Cam3_DIAMONDCLIP_236)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam3_DIAMONDCLIP_236 extends MovieClip {
public function Light_Cam3_DIAMONDCLIP_236(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 75
//Light_Cam3_LeftRightArrow_239 (Agent079_July19_1a_fla.Light_Cam3_LeftRightArrow_239)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam3_LeftRightArrow_239 extends MovieClip {
public function Light_Cam3_LeftRightArrow_239(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 76
//Light_Cam3_PowerSwitch_240 (Agent079_July19_1a_fla.Light_Cam3_PowerSwitch_240)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam3_PowerSwitch_240 extends MovieClip {
public function Light_Cam3_PowerSwitch_240(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 77
//Light_Cam3_SPECTRUM_235 (Agent079_July19_1a_fla.Light_Cam3_SPECTRUM_235)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam3_SPECTRUM_235 extends MovieClip {
public function Light_Cam3_SPECTRUM_235(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 78
//Light_Cam3_Spectrum_SWITCH_241 (Agent079_July19_1a_fla.Light_Cam3_Spectrum_SWITCH_241)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam3_Spectrum_SWITCH_241 extends MovieClip {
public function Light_Cam3_Spectrum_SWITCH_241(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 79
//Light_Cam3and7_toEachother_238 (Agent079_July19_1a_fla.Light_Cam3and7_toEachother_238)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam3and7_toEachother_238 extends MovieClip {
public function Light_Cam3and7_toEachother_238(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 80
//Light_Cam4_BGGLOW_243 (Agent079_July19_1a_fla.Light_Cam4_BGGLOW_243)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam4_BGGLOW_243 extends MovieClip {
public function Light_Cam4_BGGLOW_243(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 81
//Light_Cam5_BG_248 (Agent079_July19_1a_fla.Light_Cam5_BG_248)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam5_BG_248 extends MovieClip {
public function Light_Cam5_BG_248(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 82
//Light_Cam6_BGGLOW_253 (Agent079_July19_1a_fla.Light_Cam6_BGGLOW_253)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam6_BGGLOW_253 extends MovieClip {
public function Light_Cam6_BGGLOW_253(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 83
//Light_Cam6_ChineseTILES_254 (Agent079_July19_1a_fla.Light_Cam6_ChineseTILES_254)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam6_ChineseTILES_254 extends MovieClip {
public var MO:MovieClip;
public var select:MovieClip;
public function Light_Cam6_ChineseTILES_254(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 84
//Light_Cam6_RussianTILES_257 (Agent079_July19_1a_fla.Light_Cam6_RussianTILES_257)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam6_RussianTILES_257 extends MovieClip {
public var MO:MovieClip;
public var select:MovieClip;
public function Light_Cam6_RussianTILES_257(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 85
//Light_Cam6_Tile_MO_256 (Agent079_July19_1a_fla.Light_Cam6_Tile_MO_256)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam6_Tile_MO_256 extends MovieClip {
public function Light_Cam6_Tile_MO_256(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package Agent079_July19_1a_fla
Section 86
//Light_Cam6_TILE_MouseDown_255 (Agent079_July19_1a_fla.Light_Cam6_TILE_MouseDown_255)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam6_TILE_MouseDown_255 extends MovieClip {
public function Light_Cam6_TILE_MouseDown_255(){
addFrameScript(0, frame1);
}
function frame1(){
this.visible = false;
}
}
}//package Agent079_July19_1a_fla
Section 87
//Light_Cam6_ToCam4_259 (Agent079_July19_1a_fla.Light_Cam6_ToCam4_259)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam6_ToCam4_259 extends MovieClip {
public function Light_Cam6_ToCam4_259(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 88
//Light_Cam7_BGGLOW_261 (Agent079_July19_1a_fla.Light_Cam7_BGGLOW_261)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam7_BGGLOW_261 extends MovieClip {
public function Light_Cam7_BGGLOW_261(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 89
//Light_Cam7_ToCam3_262 (Agent079_July19_1a_fla.Light_Cam7_ToCam3_262)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Light_Cam7_ToCam3_262 extends MovieClip {
public function Light_Cam7_ToCam3_262(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 90
//LLight_Cam2_BG_222 (Agent079_July19_1a_fla.LLight_Cam2_BG_222)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class LLight_Cam2_BG_222 extends MovieClip {
public function LLight_Cam2_BG_222(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 91
//lockedDoorSound_539 (Agent079_July19_1a_fla.lockedDoorSound_539)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class lockedDoorSound_539 extends MovieClip {
public function lockedDoorSound_539(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 92
//longLevelMessage_513 (Agent079_July19_1a_fla.longLevelMessage_513)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public dynamic class longLevelMessage_513 extends MovieClip {
public var closer:MovieClip;
public var levMessage:TextField;
public function longLevelMessage_513(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
closer.addEventListener(MouseEvent.CLICK, closerClick);
stop();
this.visible = false;
}
function frame2(){
this.visible = true;
}
public function closerClick(e:MouseEvent):void{
gotoAndStop(1);
}
}
}//package Agent079_July19_1a_fla
Section 93
//mainHUD_489 (Agent079_July19_1a_fla.mainHUD_489)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class mainHUD_489 extends MovieClip {
public var HUDInner:MovieClip;
public function mainHUD_489(){
addFrameScript(0, frame1, 12, frame13);
}
function frame13(){
stop();
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 94
//mainMenuInner_522 (Agent079_July19_1a_fla.mainMenuInner_522)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mainMenuInner_522 extends MovieClip {
public var levelSelectBUT:MovieClip;
public var creditsBUT:MovieClip;
public var sponsorBUT:MovieClip;
public var backBUT:MovieClip;
public var facebookBUT:MovieClip;
public var theScore:MovieClip;
public var muteBUT:MovieClip;
public var playBUT:MovieClip;
public var canBackClick:Boolean;
public var moreGamesBUT:MovieClip;
public var walkBUT:MovieClip;
public function mainMenuInner_522(){
addFrameScript(0, frame1, 1, frame2, 9, frame10, 10, frame11, 16, frame17, 17, frame18, 25, frame26, 26, frame27, 32, frame33, 33, frame34, 41, frame42, 42, frame43, 48, frame49, 49, frame50, 57, frame58, 58, frame59, 64, frame65);
}
public function makeBUTSVis():void{
canBackClick = false;
playBUT.visible = true;
creditsBUT.visible = true;
levelSelectBUT.visible = true;
walkBUT.visible = true;
}
function frame42(){
stop();
canBackClick = true;
}
function frame65(){
gotoAndStop("menuFunctioning");
}
public function creditsBUTClick(e:MouseEvent):void{
if (MovieClip(root).canClickMenu == true){
e.currentTarget.gotoAndStop("clicked");
gotoAndPlay("creditsIn");
if (MovieClip(root).soundOn == true){
MovieClip(root).boomSound.gotoAndPlay(2);
};
};
}
function frame10(){
stop();
canBackClick = true;
}
function frame11(){
makeBUTSVis();
play();
}
public function backBUTClick(e:MouseEvent):void{
if (canBackClick == true){
nextFrame();
e.currentTarget.gotoAndStop("Clicked");
if (MovieClip(root).soundOn == true){
MovieClip(root).boomSound.gotoAndPlay(2);
};
};
}
public function muteBUTClick(e:MouseEvent):void{
if (MovieClip(root).soundOn == true){
MovieClip(root).soundOn = false;
e.currentTarget.slash.visible = true;
MovieClip(root).menuMusic.gotoAndPlay("OUT");
MovieClip(root).mainAmbience.gotoAndPlay("OUT");
e.currentTarget.gotoAndStop("musicOFF");
SoundMixer.stopAll();
} else {
SoundMixer.stopAll();
MovieClip(root).soundOn = true;
e.currentTarget.slash.visible = false;
MovieClip(root).menuMusic.gotoAndPlay("IN");
e.currentTarget.gotoAndStop("musicON");
};
}
function frame59(){
makeBUTSVis();
play();
}
public function moreGamesBUTClick(e:MouseEvent):void{
navigateToURL(new URLRequest("http://www.minijuegos.com/"), "_blank");
}
function frame18(){
makeBUTSInvis();
}
function frame50(){
makeBUTSInvis();
}
function frame33(){
gotoAndStop("menuFunctioning");
}
function frame26(){
stop();
canBackClick = true;
}
public function levelSelectBUTClick(e:MouseEvent):void{
if (MovieClip(root).canClickMenu == true){
e.currentTarget.gotoAndStop("clicked");
MovieClip(root).canClickMenu = false;
if (MovieClip(root).soundOn == true){
MovieClip(root).boomSound.gotoAndPlay(2);
};
MovieClip(root).useSaveData = true;
MovieClip(root).initGameData();
MovieClip(root).loadLevelTimer = 0;
MovieClip(root).levelMessage.levMessage.text = "I'll get you Dr. Nemesis...";
MovieClip(root).levelMessage.gotoAndPlay(2);
MovieClip(root).mainMenu.gotoAndPlay("mainMenuOut");
};
}
function frame1(){
stop();
MovieClip(root).canClickMenu = true;
canBackClick = false;
backBUT.addEventListener(MouseEvent.CLICK, backBUTClick);
backBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
backBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
playBUT.addEventListener(MouseEvent.CLICK, playBUTClick);
playBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
playBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
moreGamesBUT.addEventListener(MouseEvent.CLICK, moreGamesBUTClick);
moreGamesBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
moreGamesBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
MovieClip(root).saveData = SharedObject.getLocal("ROOMESCAPE_CookieAC");
if (MovieClip(root).saveData.data.gameInfo){
MovieClip(root).isSaveData = true;
MovieClip(root).extractSaveData();
levelSelectBUT.addEventListener(MouseEvent.CLICK, levelSelectBUTClick);
levelSelectBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
levelSelectBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
} else {
levelSelectBUT.gotoAndStop("butOFF");
};
if (MovieClip(root).bestTime != 0){
theScore.disp.text = MovieClip(root).returnTime(MovieClip(root).bestTime);
} else {
theScore.visible = false;
};
creditsBUT.addEventListener(MouseEvent.CLICK, creditsBUTClick);
creditsBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
creditsBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
muteBUT.addEventListener(MouseEvent.CLICK, muteBUTClick);
muteBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
muteBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
walkBUT.addEventListener(MouseEvent.CLICK, MovieClip(root).walkBUTClick);
walkBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
walkBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
sponsorBUT.addEventListener(MouseEvent.CLICK, moreGamesBUTClick);
sponsorBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
sponsorBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
facebookBUT.addEventListener(MouseEvent.CLICK, facebookClick);
}
function frame2(){
makeBUTSInvis();
}
function frame34(){
makeBUTSInvis();
}
function frame17(){
gotoAndStop("menuFunctioning");
}
function frame43(){
makeBUTSVis();
play();
}
function frame27(){
makeBUTSVis();
play();
}
public function playBUTClick(e:MouseEvent):void{
if (MovieClip(root).canClickMenu == true){
e.currentTarget.gotoAndStop("clicked");
MovieClip(root).canClickMenu = false;
if (MovieClip(root).soundOn == true){
MovieClip(root).boomSound.gotoAndPlay(2);
};
MovieClip(root).useSaveData = false;
MovieClip(root).initGameData();
MovieClip(root).loadLevelTimer = 0;
MovieClip(root).curGameTimer = 0;
MovieClip(root).mainMenu.gotoAndPlay("mainMenuOut");
};
}
function frame49(){
gotoAndStop("menuFunctioning");
}
public function facebookClick(e:MouseEvent):void{
navigateToURL(new URLRequest("http://www.facebook.com/MiniJuegoscom"), "_blank");
}
public function makeBUTSInvis():void{
playBUT.visible = false;
creditsBUT.visible = false;
levelSelectBUT.visible = false;
walkBUT.visible = false;
}
function frame58(){
stop();
canBackClick = true;
}
}
}//package Agent079_July19_1a_fla
Section 95
//mainMenuScene_520 (Agent079_July19_1a_fla.mainMenuScene_520)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mainMenuScene_520 extends MovieClip {
public var innerMenu:MovieClip;
public function mainMenuScene_520(){
addFrameScript(0, frame1, 51, frame52, 111, frame112, 131, frame132, 159, frame160);
}
function frame132(){
MovieClip(root).levelTitle.visible = true;
MovieClip(root).levelTitle.levTitle.text = MovieClip(root).roomNames[MovieClip(root).itemsAr[0]];
}
function frame1(){
stop();
}
function frame52(){
if (MovieClip(root).soundOn){
MovieClip(root).menuMusic.gotoAndPlay("fadeIN");
MovieClip(root).mainAmbience.gotoAndPlay("fadeOUT");
};
}
function frame112(){
stop();
}
function frame160(){
MovieClip(root).gameMode = 1;
if (MovieClip(root).soundOn){
if (MovieClip(root).itemsAr[0] != 10){
trace("fade out BOND music");
MovieClip(root).menuMusic.gotoAndPlay("fadeOUT");
};
MovieClip(root).mainAmbience.gotoAndPlay("fadeIN");
};
}
}
}//package Agent079_July19_1a_fla
Section 96
//MainTimeline (Agent079_July19_1a_fla.MainTimeline)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var invAr:Array;
public var startTimer:Number;
public var menuMusic:MovieClip;
public var fireInfo:Object;
public var fanVolume:Number;
public var introDone:Boolean;
public var heldNum:Number;
public var isSaveData:Boolean;
public var itemsAr:Array;
public var gameMenus:MovieClip;
public var myURL:String;
public var lockedSound:MovieClip;
public var roomInfo:Array;
public var unlockSound:MovieClip;
public var skipIntro:Boolean;
public var fromMenu:Boolean;
public var organBad:MovieClip;
public var switchSound:MovieClip;
public var canClickHUD:Boolean;
public var organ1:MovieClip;
public var organ2:MovieClip;
public var organ3:MovieClip;
public var organ4:MovieClip;
public var organ5:MovieClip;
public var organ6:MovieClip;
public var organ7:MovieClip;
public var mouseCursor:handCursor;
public var saveItems:Array;
public var curGameTimer:Number;
public var preBar:MovieClip;
public var gameTimer:Number;
public var fireSound:MovieClip;
public var ambVolume:Number;
public var skipBUT:MovieClip;
public var gameWonTimer:Number;
public var levelCover:MovieClip;
public var drawerSound:MovieClip;
public var curStage:MovieClip;
public var clickUndo:Boolean;
public var restartLevel:Boolean;
public var mainMenu:MovieClip;
public var elevatorInfo:Object;
public var elevatorSound:MovieClip;
public var gameMode:Number;
public var mainStage:MovieClip;
public var ACLoaded:Boolean;
public var saveData:SharedObject;
public var bestTime:Number;
public var windInfo:Object;
public var HUD:MovieClip;
public var canClickLost:Boolean;
public var boomSound:MovieClip;
public var lightInfo:Object;
public var fireVolume:Number;
public var disable_check:Boolean;
public var chladniNum:int;
public var canClickMenu:Boolean;
public var timeInfo:Object;
public var curLevel:MovieClip;
public var pouringSound:MovieClip;
public var b_preload:MovieClip;
public var menuTimer:Number;
public var itemsObj:Object;
public var animDone:Boolean;
public var levelTitle:MovieClip;
public var b_preloadRelease;
public var swapSound:MovieClip;
public var roomNames:Array;
public var invObj:Object;
public var saveInv:Array;
public var soundOn:Boolean;
public var sandInfo:Object;
public var menuVolume:Number;
public var levelLostTimer:Number;
public var ACStart:Boolean;
public var undoFlash:MovieClip;
public var useSaveData:Boolean;
public var gameBeaten:Number;
public var itemMessage:MovieClip;
public var spigotSound:MovieClip;
public var introLoaded:Boolean;
public var mainAmbience:MovieClip;
public var officeInfo:Object;
public var loadLevelTimer:Number;
public var writNames:Array;
public var fanSound:MovieClip;
public var okDomain:String;
public var sponsorDone:Boolean;
public var roomPositions:Array;
public var pickUpSound:MovieClip;
public var iceInfo:Object;
public var floorNum:int;
public var invNames:Array;
public var elevatorMove:MovieClip;
public var levelMessage:MovieClip;
public var canClickWon:Boolean;
public var longMessage:MovieClip;
public var heldItem:String;
public var chainFence:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 7, frame8, 11, frame12, 19, frame20);
}
public function dispMessage(mess:String):void{
levelMessage.levMessage.text = mess;
levelMessage.gotoAndPlay(2);
longMessage.gotoAndStop(1);
}
public function deleteStage():void{
if (curStage){
mainStage.removeChild(curStage);
curStage = null;
};
}
public function returnTime(inputTime:Number):String{
trace(("saving with a curGameTimer of : " + inputTime));
var theSeconds:Number = Math.floor((inputTime / 1000));
var theMinutes:Number = Math.floor((theSeconds / 60));
theSeconds = (theSeconds - (theMinutes * 60));
var theSeconds2:String = ((theSeconds < 10)) ? "0" : "";
var theHours:Number = Math.floor((theMinutes / 60));
theMinutes = (theMinutes - (theHours * 60));
var theMinutes2:String = ((theMinutes < 10)) ? "0" : "";
var theHours2:String = ((theHours < 10)) ? "0" : "";
var theReturn:String = (((((((theHours2 + theHours) + " : ") + theMinutes2) + theMinutes) + " : ") + theSeconds2) + theSeconds);
return (theReturn);
}
public function mainEF(e:Event):void{
switch (gameMode){
case 0:
mainMenuEF();
break;
case 1:
loadLevelEF();
break;
case 2:
mainEngineEF();
break;
case 3:
break;
case 4:
break;
case 5:
levelLostEF();
break;
case 6:
gameWonEF();
break;
default:
gameMode = 0;
};
}
function frame12(){
stop();
}
public function playSound(whichSound:String):void{
if (soundOn == true){
switch (whichSound){
case "pickUp":
pickUpSound.gotoAndPlay(2);
break;
case "boom":
boomSound.gotoAndPlay(2);
break;
case "placeItem":
pickUpSound.gotoAndPlay(2);
trace("need sound for placeItem");
break;
case "swap":
swapSound.gotoAndPlay(2);
break;
case "elevator":
elevatorMove.gotoAndPlay(2);
break;
case "elevatorDoor":
elevatorSound.gotoAndPlay(2);
break;
case "drawer":
drawerSound.gotoAndPlay(2);
break;
case "switch":
switchSound.gotoAndPlay(2);
break;
case "locked":
lockedSound.gotoAndPlay(2);
break;
case "unlock":
unlockSound.gotoAndPlay(2);
break;
case "chainFence":
chainFence.gotoAndPlay(2);
break;
case "pouring":
pouringSound.gotoAndPlay(2);
break;
case "organBad":
organBad.gotoAndPlay(2);
break;
case "organ1":
organ1.gotoAndPlay(2);
break;
case "organ2":
organ2.gotoAndPlay(2);
break;
case "organ3":
organ3.gotoAndPlay(2);
break;
case "organ4":
organ4.gotoAndPlay(2);
break;
case "organ5":
organ5.gotoAndPlay(2);
break;
case "organ6":
organ6.gotoAndPlay(2);
break;
case "organ7":
organ7.gotoAndPlay(2);
break;
case "":
break;
default:
trace("playSound trying to play unrecognised sound");
break;
};
};
}
public function mouseMoveHandler(evt:MouseEvent):void{
mouseCursor.x = evt.stageX;
mouseCursor.y = evt.stageY;
mouseCursor.visible = true;
}
function frame1(){
MochiBot.track(this, "d5def577");
}
function frame8(){
trace("for some reason this is tracing from frame 8 assets layer");
}
function frame2(){
soundOn = true;
animDone = false;
skipIntro = false;
if (skipIntro == true){
gotoAndStop("mainMenu");
} else {
disable_check = true;
myURL = stage.loaderInfo.url;
okDomain = "minijuegos.com";
if (((((!((myURL.indexOf(okDomain) == -1))) || (disable_check))) && ((framesLoaded >= 3)))){
gotoAndStop("preloader");
} else {
gotoAndPlay(1);
};
};
}
function frame3(){
stop();
sponsorDone = false;
ACStart = true;
introDone = false;
introLoaded = false;
ACLoaded = false;
this.addEventListener(Event.ENTER_FRAME, preEF);
skipBUT.visible = false;
skipBUT.addEventListener(MouseEvent.CLICK, skipIntro2);
}
function frame4(){
b_preloadRelease = function (){
navigateToURL(new URLRequest("http://www.minijuegos.com/"), "_blank");
};
b_preload.addEventListener("mouseUp", b_preloadRelease);
}
public function BUTRollOver(e:MouseEvent):void{
e.currentTarget.gotoAndStop("mouseIN");
}
public function unlockItem(e:MouseEvent, itemNumber:Number, invNumber:Number, displayFail:String="Its locked", displaySuccess:String="You unlocked it", failSize:int=1, sucSize:int=1, sucSound:String="unlock", failSound:String="locked"):void{
if (heldNum == invNumber){
e.currentTarget.visible = false;
itemsAr[itemNumber] = 0;
callMessage(displaySuccess, sucSize);
playSound(sucSound);
} else {
callMessage(displayFail, failSize);
playSound(failSound);
};
}
function frame20(){
menuVolume = 0;
ambVolume = 0;
fireVolume = 0;
fanVolume = 0;
roomPositions = new Array();
floorNum = 0;
roomInfo = new Array();
elevatorInfo = new Object();
roomInfo[1] = elevatorInfo;
officeInfo = new Object();
roomInfo[2] = officeInfo;
fireInfo = new Object();
roomInfo[3] = fireInfo;
lightInfo = new Object();
roomInfo[4] = lightInfo;
iceInfo = new Object();
roomInfo[5] = iceInfo;
windInfo = new Object();
roomInfo[6] = windInfo;
timeInfo = new Object();
roomInfo[7] = timeInfo;
sandInfo = new Object();
roomInfo[8] = sandInfo;
canClickMenu = false;
Mouse.hide();
mouseCursor = new handCursor();
mouseCursor.mouseEnabled = false;
mouseCursor.mouseChildren = false;
mouseCursor.visible = false;
this.addChild(mouseCursor);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
stage.addEventListener(Event.MOUSE_LEAVE, mouseLeaveHandler);
levelTitle.visible = false;
levelMessage.visible = false;
longMessage.visible = false;
stop();
canClickHUD = false;
heldItem = "hand";
heldNum = 0;
levelCover.alpha = 0;
levelCover.visible = false;
isSaveData = false;
gameBeaten = 0;
saveData = SharedObject.getLocal("AGENT79_CookieAC");
if (saveData.data.gameInfo){
isSaveData = true;
};
saveItems = new Array();
saveInv = new Array();
gameTimer = 0;
bestTime = 0;
curGameTimer = 0;
useSaveData = false;
itemsAr = new Array();
itemsObj = new Object();
invAr = new Array();
invObj = new Object();
invNames = new Array();
writNames = new Array();
roomNames = [0, "ELEVATOR", "THE OFFICE", "FIRE ROOM", "LIGHT ROOM", "ICE ROOM", "WIND ROOM", "TIME ROOM", "SAND ROOM", "", "AGENT 079"];
chladniNum = 1;
if (soundOn == true){
};
menuTimer = 0;
restartLevel = false;
fromMenu = false;
loadLevelTimer = 0;
startTimer = 0;
Key.initialize(stage);
clickUndo = false;
canClickLost = false;
levelLostTimer = 0;
canClickWon = false;
gameWonTimer = 0;
gameMode = 0;
this.addEventListener(Event.ENTER_FRAME, mainEF);
}
public function preEF(e:Event):void{
var lBytes:Number = stage.loaderInfo.bytesLoaded;
var tBytes:Number = stage.loaderInfo.bytesTotal;
var percentLoadeder:Number = Math.floor(((lBytes / tBytes) * 100));
preBar.preBarInner.width = percentLoadeder;
if ((((framesLoaded >= 4)) && ((introLoaded == false)))){
trace("4th frame loaded");
introLoaded = true;
gotoAndStop(4);
};
if ((((sponsorDone == true)) && ((framesLoaded >= 12)))){
ACLoaded = true;
gotoAndStop("AC_logo");
trace("goto AC_logo");
sponsorDone = false;
};
if (framesLoaded >= 20){
preBar.visible = false;
skipBUT.visible = true;
if (introDone == true){
sponsorDone = false;
trace("anim done");
this.removeEventListener(Event.ENTER_FRAME, preEF);
gotoAndPlay("introOut");
};
};
}
public function toElevator():void{
itemsAr[itemsObj.episodeNum] = 1;
itemsAr[itemsObj.camNum] = 1;
gameMode = 1;
canClickWon = true;
gameWonTimer = 1;
playSound("elevatorDoor");
longMessage.gotoAndStop(1);
levelMessage.gotoAndStop(1);
curLevel.fadeSounds();
}
public function walkBUTClick(e:MouseEvent):void{
trace("open walkthrough");
navigateToURL(new URLRequest("http://www.minijuegos.com/Agent-079-Walkthroth/9641"), "_blank");
}
public function extractSaveData():void{
gameBeaten = Number(saveData.data.gameBeaten);
trace(saveData.data.gameBeaten);
if ((gameBeaten == 1)){
trace("game beaten saved true");
} else {
trace(" game Beaten saved false");
};
var saveString:String = saveData.data.gameInfo;
var saveArs:Array = saveString.split("!");
saveItems = saveArs[0].split(",");
saveInv = saveArs[1].split(",");
bestTime = int(saveArs[2]);
curGameTimer = int(saveArs[3]);
}
public function changeRoom(fromRoom:int, toRoom:int, toCam:int, changeSound:String=""):void{
if (toRoom != 0){
itemsAr[itemsObj.episodeNum] = toRoom;
itemsAr[itemsObj.camNum] = toCam;
gameMode = 1;
canClickWon = true;
gameWonTimer = 1;
playSound(changeSound);
longMessage.gotoAndStop(1);
levelMessage.gotoAndStop(1);
curLevel.fadeSounds();
};
}
public function gameWonEF():void{
if (gameWonTimer < 50){
if (gameWonTimer == 1){
levelCover.alpha = 0;
levelCover.visible = true;
};
gameWonTimer++;
if (gameWonTimer == 25){
gameMenus.gotoAndPlay("gameWonIn");
canClickWon = true;
};
} else {
if (gameWonTimer == 50){
levelCover.alpha = 1;
gameWonTimer = 51;
};
};
}
public function dispLongMessage(mess:String):void{
longMessage.levMessage.text = mess;
longMessage.gotoAndPlay(2);
levelMessage.gotoAndStop(1);
}
public function checkCombine(item1:Number, item2:Number):Boolean{
var keyItem:Number;
var isCombine:Boolean;
var i:int;
var doesCombine:* = false;
switch (invNames[item1]){
case "EPOXY":
case "epoxyHardener":
if ((((((invNames[item1] == "epoxyHardener")) && ((invNames[item2] == "EPOXY")))) || ((((invNames[item1] == "EPOXY")) && ((invNames[item2] == "epoxyHardener")))))){
invAr[invObj.EPOXY] = 0;
invAr[invObj.epoxyHardener] = 0;
invAr[invObj.waterProofEPOXY] = 1;
HUD.HUDInner.refreshList();
mouseCursor.gotoAndStop("waterProofEPOXY");
heldItem = "waterProofEPOXY";
heldNum = (invObj.waterProofEPOXY + 0);
levelMessage.levMessage.text = "you combined the EPOXY and the EPOXY HARDENER";
levelMessage.gotoAndPlay(2);
itemMessage.itMessage.text = "WATER PROOF EPOXY";
itemMessage.gotoAndPlay(2);
doesCombine = true;
};
break;
case "goldKey":
case "copperKey":
case "platinumKey":
case "fireKey":
case "timeKey":
case "keyChain":
if ((((invNames[item1] == "keyChain")) || ((invNames[item2] == "keyChain")))){
keyItem = ((invNames[item1] == "keyChain")) ? item2 : item1;
isCombine = true;
switch (invNames[keyItem]){
case "goldKey":
itemsAr[itemsObj.goldKeyInkeychain] = 1;
invAr[invObj.goldKey] = 0;
callMessage("You combined the KEY CHAIN and the GOLD KEY");
break;
case "copperKey":
itemsAr[itemsObj.copperKeyInkeychain] = 1;
invAr[invObj.copperKey] = 0;
callMessage("You combined the KEY CHAIN and the COPPER KEY");
break;
case "platinumKey":
itemsAr[itemsObj.platinumKeyInkeychain] = 1;
invAr[invObj.platinumKey] = 0;
callMessage("You combined the KEY CHAIN and the PLATINUM KEY");
break;
case "fireKey":
itemsAr[itemsObj.fireKeyInkeychain] = 1;
invAr[invObj.fireKey] = 0;
callMessage("You combined the KEY CHAIN and the FIRE KEY");
break;
case "timeKey":
itemsAr[itemsObj.timeKeyInkeychain] = 1;
invAr[invObj.timeKey] = 0;
callMessage("You combined the KEY CHAIN and the TIME KEY");
break;
default:
isCombine = false;
break;
};
if (isCombine == true){
mouseCursor.gotoAndStop("keyChain");
heldItem = "keyChain";
heldNum = invObj.keyChain;
HUD.HUDInner.refreshList();
doesCombine = true;
};
};
break;
case "curtainRod":
case "fishingHook":
if ((((((invNames[item1] == "curtainRod")) && ((invNames[item2] == "fishingHook")))) || ((((invNames[item1] == "fishingHook")) && ((invNames[item2] == "curtainRod")))))){
invAr[invObj.curtainRod] = 0;
invAr[invObj.fishingHook] = 0;
invAr[invObj.hookAndRod] = 1;
HUD.HUDInner.refreshList();
mouseCursor.gotoAndStop("hookAndRod");
heldItem = "hookAndRod";
heldNum = (0 + invObj.hookAndRod);
levelMessage.levMessage.text = "you combined the Hook and the Rod";
levelMessage.gotoAndPlay(2);
itemMessage.itMessage.text = "Rod And Hook";
itemMessage.gotoAndPlay(2);
doesCombine = true;
};
break;
case "_1Curtain":
case "_2Curtains":
case "_3Curtains":
if ((((((invNames[item1] == "_1Curtain")) && ((invNames[item2] == "_1Curtain")))) && (!((item1 == item2))))){
i = 0;
while (i < 2) {
if ((invAr[invObj.curtain1] == 1)){
invAr[invObj.curtain1] = 0;
} else {
if ((invAr[invObj.curtain2] == 1)){
invAr[invObj.curtain2] = 0;
} else {
if ((invAr[invObj.curtain3] == 1)){
invAr[invObj.curtain3] = 0;
} else {
invAr[invObj.curtain4] = 0;
};
};
};
i++;
};
if (invAr[invObj._2curtains1] == 1){
invAr[invObj._2curtains2] = 1;
} else {
invAr[invObj._2curtains1] = 1;
};
HUD.HUDInner.refreshList();
mouseCursor.gotoAndStop("hand");
heldItem = "hand";
heldNum = invObj.hand;
levelMessage.levMessage.text = "you tied some sheets together";
levelMessage.gotoAndPlay(2);
doesCombine = true;
} else {
if ((((((invNames[item1] == "_2Curtains")) && ((invNames[item2] == "_1Curtain")))) || ((((invNames[item1] == "_1Curtain")) && ((invNames[item2] == "_2Curtains")))))){
if ((invAr[invObj.curtain1] == 1)){
invAr[invObj.curtain1] = 0;
} else {
if ((invAr[invObj.curtain2] == 1)){
invAr[invObj.curtain2] = 0;
} else {
if ((invAr[invObj.curtain3] == 1)){
invAr[invObj.curtain3] = 0;
} else {
invAr[invObj.curtain4] = 0;
};
};
};
invAr[invObj._2curtains1] = 0;
invAr[invObj._2curtains2] = 0;
invAr[invObj._3curtains] = 1;
HUD.HUDInner.refreshList();
mouseCursor.gotoAndStop("hand");
heldItem = "hand";
heldNum = (0 + invObj.hand);
levelMessage.levMessage.text = "you tied some sheets together";
levelMessage.gotoAndPlay(2);
doesCombine = true;
} else {
if (((((((!((item1 == item2))) && ((invNames[item1] == "_2Curtains")))) && ((invNames[item2] == "_2Curtains")))) || ((((((invNames[item1] == "_3Curtains")) && ((invNames[item2] == "_1Curtain")))) || ((((invNames[item1] == "_1Curtain")) && ((invNames[item2] == "_3Curtains")))))))){
invAr[invObj.curtain1] = 0;
invAr[invObj.curtain2] = 0;
invAr[invObj.curtain3] = 0;
invAr[invObj.curtain4] = 0;
invAr[invObj._2curtains1] = 0;
invAr[invObj._2curtains2] = 0;
invAr[invObj._3curtains] = 0;
invAr[invObj._4curtains] = 1;
HUD.HUDInner.refreshList();
mouseCursor.gotoAndStop("_4Curtains");
heldItem = "_4Curtains";
heldNum = (0 + invObj._4Curtains);
levelMessage.levMessage.text = "you tied some sheets together";
levelMessage.gotoAndPlay(2);
itemMessage.itMessage.text = "4 Tied Blankets";
itemMessage.gotoAndPlay(2);
doesCombine = true;
};
};
};
};
return (doesCombine);
}
public function mainEngineEF(){
var tTimer:Number;
if (itemsAr[0] != 10){
HUD.HUDInner.hudListScroll();
tTimer = getTimer();
curGameTimer = (curGameTimer + (tTimer - startTimer));
startTimer = tTimer;
};
}
public function loadLevelEF():void{
loadLevelTimer++;
if (loadLevelTimer == 1){
menuTimer = 0;
loadLevelTimer = 30;
} else {
if (loadLevelTimer < 41){
levelCover.alpha = (levelCover.alpha + 0.1);
} else {
if (loadLevelTimer == 41){
levelTitle.visible = false;
if (((!((HUD.currentFrame == 40))) && (!((itemsAr[0] == 10))))){
HUD.visible = true;
HUD.gotoAndPlay("HUDIn");
};
deleteStage();
} else {
if (loadLevelTimer == 42){
createLevel();
levelCover.alpha = 1;
levelCover.visible = true;
loadLevelTimer = 89;
} else {
if (loadLevelTimer < 82){
levelCover.alpha = (levelCover.alpha - 0.1);
} else {
if (loadLevelTimer == 100){
levelCover.alpha = 0;
levelCover.visible = false;
loadLevelTimer = 0;
gameMode = 2;
canClickHUD = true;
startTimer = getTimer();
trace("loadLevelEF trace end");
trace(gameTimer);
trace(curGameTimer);
};
};
};
};
};
};
}
public function createStage():void{
curStage = new MovieClip();
mainStage.addChild(curStage);
}
public function saveGameData():void{
var itemsSave:String = new String();
var invSave:String = new String();
itemsSave = itemsAr.join(",");
itemsSave = (itemsSave + ("," + elevatorInfo.leftDoor));
itemsSave = (itemsSave + ("," + elevatorInfo.rightDoor));
itemsSave = (itemsSave + ("," + elevatorInfo.elevDoor));
itemsSave = (itemsSave + ("," + elevatorInfo.leftPower));
itemsSave = (itemsSave + ("," + elevatorInfo.rightPower));
itemsSave = (itemsSave + ("," + elevatorInfo.roomState));
itemsSave = (itemsSave + ("," + elevatorInfo.roomLeft));
itemsSave = (itemsSave + ("," + elevatorInfo.roomRight));
itemsSave = (itemsSave + ("," + officeInfo.leftDoor));
itemsSave = (itemsSave + ("," + officeInfo.rightDoor));
itemsSave = (itemsSave + ("," + officeInfo.elevDoor));
itemsSave = (itemsSave + ("," + officeInfo.leftPower));
itemsSave = (itemsSave + ("," + officeInfo.rightPower));
itemsSave = (itemsSave + ("," + officeInfo.roomState));
itemsSave = (itemsSave + ("," + officeInfo.roomLeft));
itemsSave = (itemsSave + ("," + officeInfo.roomRight));
itemsSave = (itemsSave + ("," + fireInfo.leftDoor));
itemsSave = (itemsSave + ("," + fireInfo.rightDoor));
itemsSave = (itemsSave + ("," + fireInfo.elevDoor));
itemsSave = (itemsSave + ("," + fireInfo.leftPower));
itemsSave = (itemsSave + ("," + fireInfo.rightPower));
itemsSave = (itemsSave + ("," + fireInfo.roomState));
itemsSave = (itemsSave + ("," + fireInfo.roomLeft));
itemsSave = (itemsSave + ("," + fireInfo.roomRight));
itemsSave = (itemsSave + ("," + lightInfo.leftDoor));
itemsSave = (itemsSave + ("," + lightInfo.rightDoor));
itemsSave = (itemsSave + ("," + lightInfo.elevDoor));
itemsSave = (itemsSave + ("," + lightInfo.leftPower));
itemsSave = (itemsSave + ("," + lightInfo.rightPower));
itemsSave = (itemsSave + ("," + lightInfo.roomState));
itemsSave = (itemsSave + ("," + lightInfo.roomLeft));
itemsSave = (itemsSave + ("," + lightInfo.roomRight));
itemsSave = (itemsSave + ("," + iceInfo.leftDoor));
itemsSave = (itemsSave + ("," + iceInfo.rightDoor));
itemsSave = (itemsSave + ("," + iceInfo.elevDoor));
itemsSave = (itemsSave + ("," + iceInfo.leftPower));
itemsSave = (itemsSave + ("," + iceInfo.rightPower));
itemsSave = (itemsSave + ("," + iceInfo.roomState));
itemsSave = (itemsSave + ("," + iceInfo.roomLeft));
itemsSave = (itemsSave + ("," + iceInfo.roomRight));
itemsSave = (itemsSave + ("," + windInfo.leftDoor));
itemsSave = (itemsSave + ("," + windInfo.rightDoor));
itemsSave = (itemsSave + ("," + windInfo.elevDoor));
itemsSave = (itemsSave + ("," + windInfo.leftPower));
itemsSave = (itemsSave + ("," + windInfo.rightPower));
itemsSave = (itemsSave + ("," + windInfo.roomState));
itemsSave = (itemsSave + ("," + windInfo.roomLeft));
itemsSave = (itemsSave + ("," + windInfo.roomRight));
itemsSave = (itemsSave + ("," + timeInfo.leftDoor));
itemsSave = (itemsSave + ("," + timeInfo.rightDoor));
itemsSave = (itemsSave + ("," + timeInfo.elevDoor));
itemsSave = (itemsSave + ("," + timeInfo.leftPower));
itemsSave = (itemsSave + ("," + timeInfo.rightPower));
itemsSave = (itemsSave + ("," + timeInfo.roomState));
itemsSave = (itemsSave + ("," + timeInfo.roomLeft));
itemsSave = (itemsSave + ("," + timeInfo.roomRight));
itemsSave = (itemsSave + ("," + sandInfo.leftDoor));
itemsSave = (itemsSave + ("," + sandInfo.rightDoor));
itemsSave = (itemsSave + ("," + sandInfo.elevDoor));
itemsSave = (itemsSave + ("," + sandInfo.leftPower));
itemsSave = (itemsSave + ("," + sandInfo.rightPower));
itemsSave = (itemsSave + ("," + sandInfo.roomState));
itemsSave = (itemsSave + ("," + sandInfo.roomLeft));
itemsSave = (itemsSave + ("," + sandInfo.roomRight));
itemsSave = (itemsSave + ("," + roomPositions[0]));
itemsSave = (itemsSave + ("," + roomPositions[1]));
invSave = invAr.join(",");
trace(("curgametimer from saveGameData function: " + returnTime(curGameTimer)));
saveData.data.gameInfo = ((((((itemsSave + "!") + invSave) + "!") + bestTime) + "!") + curGameTimer);
saveData.data.gameBeaten = gameBeaten;
saveData.flush();
}
public function levelLostEF():void{
if (levelLostTimer < 50){
if (levelLostTimer == 1){
levelCover.alpha = 0;
levelCover.visible = true;
};
levelCover.alpha = (levelCover.alpha + 0.03);
levelLostTimer++;
if (levelLostTimer == 25){
gameMenus.gotoAndPlay("levelLostIn");
canClickLost = true;
};
} else {
if (levelLostTimer == 50){
levelCover.alpha = 1;
levelLostTimer = 51;
};
};
}
public function mainMenuEF():void{
if (menuTimer < 50){
if ((((menuTimer == 1)) && (!((levelCover.alpha == 1))))){
levelCover.alpha = 0;
levelCover.visible = true;
};
levelCover.alpha = (levelCover.alpha + 0.03);
menuTimer++;
} else {
if (menuTimer == 50){
menuTimer = 51;
levelCover.alpha = 1;
mainMenu.gotoAndPlay("mainMenuIn");
canClickMenu = true;
deleteStage();
};
};
}
public function skipIntro2(e:MouseEvent):void{
this.removeEventListener(Event.ENTER_FRAME, preEF);
gotoAndPlay("introOut");
}
public function getRoomState(roomNum:int):void{
var roomPos:int;
var roomFloor:int;
var i:int;
while (i < 4) {
if (roomPositions[0][i] == roomNum){
roomFloor = 0;
roomPos = i;
roomInfo[roomNum].elevDoor = ((((i == 0)) || ((i == 2)))) ? 1 : 0;
} else {
if (roomPositions[1][i] == roomNum){
roomFloor = 1;
roomPos = i;
roomInfo[roomNum].elevDoor = ((((i == 1)) || ((i == 3)))) ? 1 : 0;
};
};
i++;
};
var roomRight:int = (((roomPos + 1) < 4)) ? (roomPos + 1) : 0;
var roomLeft:int = (((roomPos - 1) >= 0)) ? (roomPos - 1) : 3;
roomInfo[roomNum].roomLeft = (roomPositions[roomFloor][roomLeft] + 0);
roomInfo[roomNum].roomRight = (roomPositions[roomFloor][roomRight] + 0);
if (roomNum == 5){
roomInfo[roomNum].roomState = ((roomInfo[roomNum].roomLeft == 3)) ? 2 : ((((roomFloor == 1)) && ((roomPositions[0][roomPos] == 3)))) ? 3 : 1;
};
}
public function callMessage(mess:String, messSize:int=1):void{
if ((messSize == 1)){
dispMessage(mess);
} else {
if ((messSize == 2)){
dispLongMessage(mess);
} else {
trace("wrong messSize param passed to callMessage function - must be 1 or 2");
};
};
}
public function mouseLeaveHandler(evt:Event):void{
mouseCursor.visible = false;
}
public function createLevel():void{
createStage();
trace("creating a level");
switch (itemsAr[0]){
case 1:
curLevel = new Elevator(1);
break;
case 2:
curLevel = new OfficeRoom(2);
break;
case 3:
curLevel = new FireRoom(3);
break;
case 4:
curLevel = new LightRoom(4);
break;
case 5:
curLevel = new IceRoom(5);
break;
case 6:
curLevel = new WindRoom(6);
break;
case 7:
curLevel = new TimeRoom(7);
break;
case 8:
curLevel = new SandRoom(8);
break;
case 10:
curLevel = new Opening(10);
break;
default:
curLevel = new Elevator(1);
};
curLevel.initLevel(this);
curStage.addChild(curLevel);
}
public function initGameData():void{
var itemsInc:int;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 10;
itemsObj.episodeNum = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.camNum = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 8;
itemsObj.floorNum = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.tileInElevator = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.keyChainInElevator = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.roomControl1 = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.roomControl2 = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.roomControl3 = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.roomControl4 = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.roomControl5 = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.waterCanInOffice = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.timeKeyInOffice = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.fireKeyInOffice = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.goldStatueInOffice = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.statuePartInOffice = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.officePictureOnWall = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.topLeftDrawerLocked = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.botLeftDrawerLocked = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.topRightDrawerLocked = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.monkeyPuzzleSolved = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.monkeyPicture1 = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.monkeyPicture2 = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.monkeyPicture3 = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.monkeyPicture4 = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.monkeyPicture5 = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.monkeyPicture6 = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.tongsInOffice = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.tileInOffice = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.gearInOffice = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.tileInFireRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.furnaceOn = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.waterInFurnace = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.diamondInFurnace = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.goldKey = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.platinumKey = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.copperKey = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.statueBaseInFireRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.statueBaseInFireRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.statueTopInFireRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.flamesInFireRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.fireRoomSmoke = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.fireDoorLocked = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.gearInFireRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.proverbLockedFireRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.gearInLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.spectrumSwitch = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.diamondInLighRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.redFilterInLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.blackFilterInLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 5;
itemsObj.tilesInLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 5;
itemsObj.tile00InLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.tile01InLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 8;
itemsObj.tile02InLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.tile10InLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 6;
itemsObj.tile11InLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.tile12InLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 3;
itemsObj.tile20InLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.tile21InLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 4;
itemsObj.tile22InLightRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.redFilterInIceRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.iceWallInIceRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.copperStatueInIceRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.gearInIceRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.gearRopeInWater = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.tankStateIceRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.scaleBasketInIceRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.CAGESolvedWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.BEDSolvedWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.EGGSolvedWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.ACESolvedWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.FACESolvedWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.BAGSolvedWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.BADGESolvedWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.LIGHTSolvedWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.monkeyREDInWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.monkeyORANGEInWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.monkeyYELLOWInWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.monkeyGREENInWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.monkeyBLUEInWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.monkeyPURPLEInWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.BADGEInWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.EPOXYInWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 2;
itemsObj.pipe1WindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 4;
itemsObj.pipe2WindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 7;
itemsObj.pipe3WindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 3;
itemsObj.pipe4WindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 5;
itemsObj.pipe5WindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.pipe6WindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 6;
itemsObj.pipe7WindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.pipeSolvedWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.eKeyWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.gKeyWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.bKeyWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.dKeyWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.aKeyWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.fKeyWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.cKeyWindRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.blackFilterInTimeRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.gear1InTimeRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.gear2InTimeRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.gear3InTimeRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.gear4InTimeRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.gear5InTimeRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.tileInTimeRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.sundialPartInTimeRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.hourGlassOn = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.sundialOn = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.windClockOn = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.waterClockOn = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.lightClockOn = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.timeClockOn = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.timePuzzleOn = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.epoxyHardenerInTime = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.mudInSandRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.basketInSandRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsObj.sundialPartInSandRoom = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.goldKeyInkeychain = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.copperKeyInkeychain = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.platinumKeyInkeychain = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.fireKeyInkeychain = (itemsInc + 0);
itemsInc++;
itemsAr[itemsInc] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsObj.timeKeyInkeychain = (itemsInc + 0);
itemsInc++;
elevatorInfo.leftDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
elevatorInfo.rightDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
elevatorInfo.elevDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
elevatorInfo.leftPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
elevatorInfo.rightPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
elevatorInfo.roomState = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
elevatorInfo.roomLeft = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
elevatorInfo.roomRight = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
officeInfo.leftDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
officeInfo.rightDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
officeInfo.elevDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
officeInfo.leftPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
officeInfo.rightPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
officeInfo.roomState = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
officeInfo.roomLeft = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 4;
itemsInc++;
officeInfo.roomRight = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
fireInfo.leftDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
fireInfo.rightDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
fireInfo.elevDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
fireInfo.leftPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
fireInfo.rightPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
fireInfo.roomState = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
fireInfo.roomLeft = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
fireInfo.roomRight = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 4;
itemsInc++;
lightInfo.leftDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 2;
itemsInc++;
lightInfo.rightDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
lightInfo.elevDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
lightInfo.leftPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
lightInfo.rightPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
lightInfo.roomState = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
lightInfo.roomLeft = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 3;
itemsInc++;
lightInfo.roomRight = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 2;
itemsInc++;
iceInfo.leftDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
iceInfo.rightDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 2;
itemsInc++;
iceInfo.elevDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
iceInfo.leftPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
iceInfo.rightPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
iceInfo.roomState = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
iceInfo.roomLeft = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 8;
itemsInc++;
iceInfo.roomRight = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 7;
itemsInc++;
windInfo.leftDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
windInfo.rightDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
windInfo.elevDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
windInfo.leftPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
windInfo.rightPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
windInfo.roomState = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
windInfo.roomLeft = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 7;
itemsInc++;
windInfo.roomRight = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 8;
itemsInc++;
timeInfo.leftDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 2;
itemsInc++;
timeInfo.rightDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
timeInfo.elevDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
timeInfo.leftPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
timeInfo.rightPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
timeInfo.roomState = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
timeInfo.roomLeft = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 5;
itemsInc++;
timeInfo.roomRight = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 6;
itemsInc++;
sandInfo.leftDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
sandInfo.rightDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
sandInfo.elevDoor = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
sandInfo.leftPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
sandInfo.rightPower = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
sandInfo.roomState = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 1;
itemsInc++;
sandInfo.roomLeft = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 6;
itemsInc++;
sandInfo.roomRight = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 5;
itemsInc++;
roomPositions[0] = new Array();
roomPositions[0][0] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 3;
itemsInc++;
roomPositions[0][1] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 4;
itemsInc++;
roomPositions[0][2] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 2;
itemsInc++;
roomPositions[0][3] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 0;
itemsInc++;
roomPositions[1] = new Array();
roomPositions[1][0] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 7;
itemsInc++;
roomPositions[1][1] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 6;
itemsInc++;
roomPositions[1][2] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 8;
itemsInc++;
roomPositions[1][3] = ((useSaveData == true)) ? int(saveItems[itemsInc]) : 5;
var invInc = 1;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 1;
invObj.hand = (invInc + 0);
invNames[invInc] = "hand";
writNames[invInc] = "Hand";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.waterCanFull = (invInc + 0);
invNames[invInc] = "waterCanFull";
writNames[invInc] = "FULL WATER CAN";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.waterCan = (invInc + 0);
invNames[invInc] = "waterCan";
writNames[invInc] = "EMPTY CAN";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.sandCan = (invInc + 0);
invNames[invInc] = "sandCan";
writNames[invInc] = "CAN of SAND";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.mudCan = (invInc + 0);
invNames[invInc] = "mudCan";
writNames[invInc] = "CAN of MUD";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.scaleBasket = (invInc + 0);
invNames[invInc] = "scaleBasket";
writNames[invInc] = "SCALE BASKET";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.sundialPart = (invInc + 0);
invNames[invInc] = "sundialPart";
writNames[invInc] = "SUNDIAL PART";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.EPOXY = (invInc + 0);
invNames[invInc] = "EPOXY";
writNames[invInc] = "GLASS EPOXY";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.waterProofEPOXY = (invInc + 0);
invNames[invInc] = "waterProofEPOXY";
writNames[invInc] = "WATER PROOF EPOXY";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.epoxyHardener = (invInc + 0);
invNames[invInc] = "epoxyHardener";
writNames[invInc] = "EPOXY HARDENER";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.diamond = (invInc + 0);
invNames[invInc] = "diamond";
writNames[invInc] = "DIAMOND";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.tongs = (invInc + 0);
invNames[invInc] = "tongs";
writNames[invInc] = "INDUSTRIAL TONGS";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.redFilter = (invInc + 0);
invNames[invInc] = "redFilter";
writNames[invInc] = "RED LIGHT FILTER";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.blackFilter = (invInc + 0);
invNames[invInc] = "blackFilter";
writNames[invInc] = "BLACK LIGHT FILTER";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.statuePart = (invInc + 0);
invNames[invInc] = "statuePart";
writNames[invInc] = "WOODEN STATUE PART";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.goldStatue = (invInc + 0);
invNames[invInc] = "goldStatue";
writNames[invInc] = "GOLD STATUE";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.copperStatue = (invInc + 0);
invNames[invInc] = "copperStatue";
writNames[invInc] = "COPPER STATUE";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.BADGE = (invInc + 0);
invNames[invInc] = "BADGE";
writNames[invInc] = "PLATINUM STATUE";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.keyChain = (invInc + 0);
invNames[invInc] = "keyChain";
writNames[invInc] = "KEY CHAIN";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.timeKey = (invInc + 0);
invNames[invInc] = "timeKey";
writNames[invInc] = "TIME KEY";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.fireKey = (invInc + 0);
invNames[invInc] = "fireKey";
writNames[invInc] = "FIRE KEY";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.goldKey = (invInc + 0);
invNames[invInc] = "goldKey";
writNames[invInc] = "GOLD KEY";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.platinumKey = (invInc + 0);
invNames[invInc] = "platinumKey";
writNames[invInc] = "PLATINUM KEY";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.copperKey = (invInc + 0);
invNames[invInc] = "copperKey";
writNames[invInc] = "COPPER KEY";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.gear1 = (invInc + 0);
invNames[invInc] = "gear1";
writNames[invInc] = "A GEAR";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.gear5 = (invInc + 0);
invNames[invInc] = "gear5";
writNames[invInc] = "A GEAR";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.gear3 = (invInc + 0);
invNames[invInc] = "gear3";
writNames[invInc] = "A GEAR";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.gear4 = (invInc + 0);
invNames[invInc] = "gear4";
writNames[invInc] = "A GEAR";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.gear2 = (invInc + 0);
invNames[invInc] = "gear2";
writNames[invInc] = "A GEAR";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.tile1 = (invInc + 0);
invNames[invInc] = "tile1";
writNames[invInc] = "A PIECE OF TILE";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.tile2 = (invInc + 0);
invNames[invInc] = "tile2";
writNames[invInc] = "A PIECE OF TILE";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.tile3 = (invInc + 0);
invNames[invInc] = "tile3";
writNames[invInc] = "A PIECE OF TILE";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.tile4 = (invInc + 0);
invNames[invInc] = "tile4";
writNames[invInc] = "A PIECE OF TILE";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.monkeyYELLOW = (invInc + 0);
invNames[invInc] = "monkeyYELLOW";
writNames[invInc] = "Yellow-tailed Monkey";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.monkeyBLUE = (invInc + 0);
invNames[invInc] = "monkeyBLUE";
writNames[invInc] = "Blue Diademed Monkey";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.monkeyORANGE = (invInc + 0);
invNames[invInc] = "monkeyORANGE";
writNames[invInc] = "Sumatran Orangutan";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.monkeyRED = (invInc + 0);
invNames[invInc] = "monkeyRED";
writNames[invInc] = "Zanzibar Red Colobus";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.monkeyPURPLE = (invInc + 0);
invNames[invInc] = "monkeyPURPLE";
writNames[invInc] = "Purple-faced Langur";
invInc++;
invAr[invInc] = ((useSaveData == true)) ? int(saveInv[invInc]) : 0;
invObj.monkeyGREEN = (invInc + 0);
invNames[invInc] = "monkeyGREEN";
writNames[invInc] = "Olive Colobus Monkey";
invInc++;
}
public function setHand():void{
mouseCursor.gotoAndStop("hand");
heldItem = "hand";
heldNum = (0 + invObj.hand);
HUD.HUDInner.refreshList();
}
public function BUTRollOut(e:MouseEvent):void{
e.currentTarget.gotoAndStop("mouseOUT");
}
public function pickUpItem(e:MouseEvent, itemNumber:Number, invNumber:Number, displayMessage:String, dispSize:int=1, itemSound:String="pickUp"):void{
if (itemsAr[itemNumber] == 1){
e.currentTarget.visible = false;
itemsAr[itemNumber] = 0;
invAr[invNumber] = 1;
HUD.HUDInner.refreshList();
callMessage(displayMessage, dispSize);
playSound(itemSound);
} else {
trace(itemNumber);
trace(itemsAr[itemNumber]);
};
}
public function changeCam(turnOff:MovieClip, turnOn:MovieClip, newNum:int):void{
turnOff.visible = false;
turnOn.visible = true;
itemsAr[itemsObj.camNum] = newNum;
levelMessage.gotoAndStop(1);
longMessage.gotoAndStop(1);
itemMessage.gotoAndStop(1);
}
}
}//package Agent079_July19_1a_fla
Section 97
//manualContent_531 (Agent079_July19_1a_fla.manualContent_531)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class manualContent_531 extends MovieClip {
public var continueBUT:MovieClip;
public function manualContent_531(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
continueBUT.addEventListener(MouseEvent.CLICK, continueBUTClick);
continueBUT.addEventListener(MouseEvent.MOUSE_OUT, MovieClip(root).BUTRollOut);
continueBUT.addEventListener(MouseEvent.MOUSE_OVER, MovieClip(root).BUTRollOver);
}
public function continueBUTClick(e:MouseEvent):void{
var theFrame:Number = this.currentFrame;
if (theFrame < 6){
theFrame = (theFrame + 1);
} else {
theFrame = 1;
};
gotoAndStop(theFrame);
e.currentTarget.gotoAndStop("Clicked");
if (MovieClip(root).soundOn == true){
MovieClip(root).butPressSound.gotoAndPlay(2);
};
}
}
}//package Agent079_July19_1a_fla
Section 98
//MiniJuegos_MenuBUT_512 (Agent079_July19_1a_fla.MiniJuegos_MenuBUT_512)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class MiniJuegos_MenuBUT_512 extends MovieClip {
public function MiniJuegos_MenuBUT_512(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 99
//MoreGamesBUT_527 (Agent079_July19_1a_fla.MoreGamesBUT_527)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class MoreGamesBUT_527 extends MovieClip {
public function MoreGamesBUT_527(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 100
//MoreGamesBUTMOCLIP_494 (Agent079_July19_1a_fla.MoreGamesBUTMOCLIP_494)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class MoreGamesBUTMOCLIP_494 extends MovieClip {
public function MoreGamesBUTMOCLIP_494(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 101
//MoreGamesHUDBUT_493 (Agent079_July19_1a_fla.MoreGamesHUDBUT_493)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class MoreGamesHUDBUT_493 extends MovieClip {
public function MoreGamesHUDBUT_493(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 102
//muteButtonSlash_502 (Agent079_July19_1a_fla.muteButtonSlash_502)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class muteButtonSlash_502 extends MovieClip {
public function muteButtonSlash_502(){
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(root).soundOn == true){
this.visible = false;
};
}
}
}//package Agent079_July19_1a_fla
Section 103
//Office_Cam02_Picture_107 (Agent079_July19_1a_fla.Office_Cam02_Picture_107)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam02_Picture_107 extends MovieClip {
public function Office_Cam02_Picture_107(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 104
//Office_Cam03_MonkeyPictures_116 (Agent079_July19_1a_fla.Office_Cam03_MonkeyPictures_116)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam03_MonkeyPictures_116 extends MovieClip {
public function Office_Cam03_MonkeyPictures_116(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 105
//Office_Cam03_PictureOnWall_117 (Agent079_July19_1a_fla.Office_Cam03_PictureOnWall_117)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam03_PictureOnWall_117 extends MovieClip {
public function Office_Cam03_PictureOnWall_117(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 106
//Office_Cam04_DrawerBOTBUT_125 (Agent079_July19_1a_fla.Office_Cam04_DrawerBOTBUT_125)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam04_DrawerBOTBUT_125 extends MovieClip {
public function Office_Cam04_DrawerBOTBUT_125(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 107
//Office_Cam04_DrawerTOPBUT_127 (Agent079_July19_1a_fla.Office_Cam04_DrawerTOPBUT_127)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam04_DrawerTOPBUT_127 extends MovieClip {
public function Office_Cam04_DrawerTOPBUT_127(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 108
//Office_Cam05toCam03BUT_124 (Agent079_July19_1a_fla.Office_Cam05toCam03BUT_124)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam05toCam03BUT_124 extends MovieClip {
public function Office_Cam05toCam03BUT_124(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 109
//Office_Cam3_ToCam6BUT_120 (Agent079_July19_1a_fla.Office_Cam3_ToCam6BUT_120)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam3_ToCam6BUT_120 extends MovieClip {
public function Office_Cam3_ToCam6BUT_120(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 110
//Office_Cam5_DrawerBOTBUT_130 (Agent079_July19_1a_fla.Office_Cam5_DrawerBOTBUT_130)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam5_DrawerBOTBUT_130 extends MovieClip {
public function Office_Cam5_DrawerBOTBUT_130(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 111
//Office_Cam5_DrawerTOPBUT_133 (Agent079_July19_1a_fla.Office_Cam5_DrawerTOPBUT_133)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam5_DrawerTOPBUT_133 extends MovieClip {
public function Office_Cam5_DrawerTOPBUT_133(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 112
//Office_Cam6_BackBUT_164 (Agent079_July19_1a_fla.Office_Cam6_BackBUT_164)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_BackBUT_164 extends MovieClip {
public function Office_Cam6_BackBUT_164(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 113
//Office_Cam6_ExitBUT_194 (Agent079_July19_1a_fla.Office_Cam6_ExitBUT_194)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_ExitBUT_194 extends MovieClip {
public function Office_Cam6_ExitBUT_194(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 114
//Office_Cam6_InstructionsBUT_163 (Agent079_July19_1a_fla.Office_Cam6_InstructionsBUT_163)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_InstructionsBUT_163 extends MovieClip {
public function Office_Cam6_InstructionsBUT_163(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 115
//Office_Cam6_PassBUT_148 (Agent079_July19_1a_fla.Office_Cam6_PassBUT_148)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_PassBUT_148 extends MovieClip {
public function Office_Cam6_PassBUT_148(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 116
//Office_Cam6_PassMessagesCLIP_190 (Agent079_July19_1a_fla.Office_Cam6_PassMessagesCLIP_190)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_PassMessagesCLIP_190 extends MovieClip {
public function Office_Cam6_PassMessagesCLIP_190(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 117
//Office_Cam6_PasswordKEYS_166 (Agent079_July19_1a_fla.Office_Cam6_PasswordKEYS_166)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_PasswordKEYS_166 extends MovieClip {
public function Office_Cam6_PasswordKEYS_166(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 118
//Office_Cam6_ProverbsINNER_193 (Agent079_July19_1a_fla.Office_Cam6_ProverbsINNER_193)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_ProverbsINNER_193 extends MovieClip {
public function Office_Cam6_ProverbsINNER_193(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 119
//Office_Cam6_RoomBBL_161 (Agent079_July19_1a_fla.Office_Cam6_RoomBBL_161)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_RoomBBL_161 extends MovieClip {
public function Office_Cam6_RoomBBL_161(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 120
//Office_Cam6_RoomBBR_162 (Agent079_July19_1a_fla.Office_Cam6_RoomBBR_162)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_RoomBBR_162 extends MovieClip {
public function Office_Cam6_RoomBBR_162(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 121
//Office_Cam6_RoomBTL_158 (Agent079_July19_1a_fla.Office_Cam6_RoomBTL_158)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_RoomBTL_158 extends MovieClip {
public function Office_Cam6_RoomBTL_158(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 122
//Office_Cam6_RoomBTR_160 (Agent079_July19_1a_fla.Office_Cam6_RoomBTR_160)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_RoomBTR_160 extends MovieClip {
public function Office_Cam6_RoomBTR_160(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 123
//Office_Cam6_RoomContBUT_147 (Agent079_July19_1a_fla.Office_Cam6_RoomContBUT_147)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_RoomContBUT_147 extends MovieClip {
public function Office_Cam6_RoomContBUT_147(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 124
//Office_Cam6_RoomTBL_156 (Agent079_July19_1a_fla.Office_Cam6_RoomTBL_156)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_RoomTBL_156 extends MovieClip {
public function Office_Cam6_RoomTBL_156(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 125
//Office_Cam6_RoomTBR_157 (Agent079_July19_1a_fla.Office_Cam6_RoomTBR_157)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_RoomTBR_157 extends MovieClip {
public function Office_Cam6_RoomTBR_157(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 126
//Office_Cam6_RoomTTL_153 (Agent079_July19_1a_fla.Office_Cam6_RoomTTL_153)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_RoomTTL_153 extends MovieClip {
public function Office_Cam6_RoomTTL_153(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 127
//Office_Cam6_RoomTTR_155 (Agent079_July19_1a_fla.Office_Cam6_RoomTTR_155)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Office_Cam6_RoomTTR_155 extends MovieClip {
public function Office_Cam6_RoomTTR_155(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 128
//openDrawerSound_541 (Agent079_July19_1a_fla.openDrawerSound_541)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class openDrawerSound_541 extends MovieClip {
public function openDrawerSound_541(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 129
//Opening_Next_BUT_469 (Agent079_July19_1a_fla.Opening_Next_BUT_469)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Opening_Next_BUT_469 extends MovieClip {
public function Opening_Next_BUT_469(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 130
//Opening_Prev_BUT_470 (Agent079_July19_1a_fla.Opening_Prev_BUT_470)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Opening_Prev_BUT_470 extends MovieClip {
public function Opening_Prev_BUT_470(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 131
//Opening_Skip_BUT_471 (Agent079_July19_1a_fla.Opening_Skip_BUT_471)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Opening_Skip_BUT_471 extends MovieClip {
public function Opening_Skip_BUT_471(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 132
//Organ1Sound_548 (Agent079_July19_1a_fla.Organ1Sound_548)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Organ1Sound_548 extends MovieClip {
public function Organ1Sound_548(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 133
//Organ2Sound_549 (Agent079_July19_1a_fla.Organ2Sound_549)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Organ2Sound_549 extends MovieClip {
public function Organ2Sound_549(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 134
//Organ3Sound_550 (Agent079_July19_1a_fla.Organ3Sound_550)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Organ3Sound_550 extends MovieClip {
public function Organ3Sound_550(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 135
//Organ4Sound_551 (Agent079_July19_1a_fla.Organ4Sound_551)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Organ4Sound_551 extends MovieClip {
public function Organ4Sound_551(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 136
//Organ5Sound_552 (Agent079_July19_1a_fla.Organ5Sound_552)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Organ5Sound_552 extends MovieClip {
public function Organ5Sound_552(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 137
//Organ6Sound_553 (Agent079_July19_1a_fla.Organ6Sound_553)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Organ6Sound_553 extends MovieClip {
public function Organ6Sound_553(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 138
//Organ7Sound_554 (Agent079_July19_1a_fla.Organ7Sound_554)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Organ7Sound_554 extends MovieClip {
public function Organ7Sound_554(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 139
//pickingUpItemSound_542 (Agent079_July19_1a_fla.pickingUpItemSound_542)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class pickingUpItemSound_542 extends MovieClip {
public function pickingUpItemSound_542(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 140
//playBUT_524 (Agent079_July19_1a_fla.playBUT_524)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class playBUT_524 extends MovieClip {
public function playBUT_524(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 141
//pouringWaterSound_543 (Agent079_July19_1a_fla.pouringWaterSound_543)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class pouringWaterSound_543 extends MovieClip {
public function pouringWaterSound_543(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 142
//QuitBUTMO_500 (Agent079_July19_1a_fla.QuitBUTMO_500)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class QuitBUTMO_500 extends MovieClip {
public function QuitBUTMO_500(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 143
//roaringFire_556 (Agent079_July19_1a_fla.roaringFire_556)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class roaringFire_556 extends MovieClip {
public var track1:fire;
public var someChannel:SoundChannel;
public var startSound:Boolean;
public var someTransform:SoundTransform;
public function roaringFire_556(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
}
function frame1(){
stop();
track1 = new fire();
someTransform = new SoundTransform(1);
someChannel = new SoundChannel();
startSound = true;
}
function frame2(){
someTransform.volume = MovieClip(root).fireVolume;
someChannel = track1.play(0, 1000, someTransform);
stop();
}
function frame3(){
someChannel.stop();
stop();
}
function frame4(){
someTransform.volume = (someTransform.volume - 0.03);
someChannel.soundTransform = someTransform;
if (someTransform.volume <= 0){
someChannel.stop();
stop();
};
}
function frame5(){
someTransform.volume = (someTransform.volume - 0.03);
someChannel.soundTransform = someTransform;
if (someTransform.volume <= 0){
someChannel.stop();
stop();
} else {
gotoAndPlay(4);
};
}
function frame6(){
someTransform.volume = MovieClip(root).fireVolume;
someChannel.soundTransform = someTransform;
trace(("here " + someTransform.volume));
}
function frame7(){
stop();
}
function frame8(){
someTransform.volume = 0;
someChannel = track1.play(0, 1000, someTransform);
}
function frame9(){
someTransform.volume = (someTransform.volume + 0.03);
someChannel.soundTransform = someTransform;
if (someTransform.volume >= MovieClip(root).fireVolume){
stop();
};
}
function frame10(){
someTransform.volume = (someTransform.volume + 0.03);
someChannel.soundTransform = someTransform;
if (someTransform.volume >= MovieClip(root).fireVolume){
stop();
} else {
gotoAndPlay(9);
};
}
}
}//package Agent079_July19_1a_fla
Section 144
//Sand_Cam2_Balance_425 (Agent079_July19_1a_fla.Sand_Cam2_Balance_425)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Sand_Cam2_Balance_425 extends MovieClip {
public function Sand_Cam2_Balance_425(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 145
//Sand_Cam4_blanceCLICK_431 (Agent079_July19_1a_fla.Sand_Cam4_blanceCLICK_431)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Sand_Cam4_blanceCLICK_431 extends MovieClip {
public function Sand_Cam4_blanceCLICK_431(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 146
//Sand_cam5_Basket_438 (Agent079_July19_1a_fla.Sand_cam5_Basket_438)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Sand_cam5_Basket_438 extends MovieClip {
public function Sand_cam5_Basket_438(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 147
//Sand_cam5_FromWATER_443 (Agent079_July19_1a_fla.Sand_cam5_FromWATER_443)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Sand_cam5_FromWATER_443 extends MovieClip {
public function Sand_cam5_FromWATER_443(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 148
//Sand_Cam5_PouringSAND_434 (Agent079_July19_1a_fla.Sand_Cam5_PouringSAND_434)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Sand_Cam5_PouringSAND_434 extends MovieClip {
public function Sand_Cam5_PouringSAND_434(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 149
//Sand_Cam5_PouringWATER_436 (Agent079_July19_1a_fla.Sand_Cam5_PouringWATER_436)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Sand_Cam5_PouringWATER_436 extends MovieClip {
public function Sand_Cam5_PouringWATER_436(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 150
//Sand_Cam5_ToCam3_440 (Agent079_July19_1a_fla.Sand_Cam5_ToCam3_440)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Sand_Cam5_ToCam3_440 extends MovieClip {
public function Sand_Cam5_ToCam3_440(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 151
//Sand_Cam6_Chladni1_457 (Agent079_July19_1a_fla.Sand_Cam6_Chladni1_457)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Sand_Cam6_Chladni1_457 extends MovieClip {
public function Sand_Cam6_Chladni1_457(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function makeAlpha():void{
if (MovieClip(root).chladniNum == 1){
this.alpha = (this.alpha + ((this.alpha < 1)) ? 0.02 : 0);
} else {
this.alpha = (this.alpha - ((this.alpha > 0)) ? 0.02 : 0);
};
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame1(){
makeAlpha();
}
function frame2(){
makeAlpha();
}
function frame3(){
makeAlpha();
}
function frame4(){
makeAlpha();
}
}
}//package Agent079_July19_1a_fla
Section 152
//Sand_Cam6_Chladni2_456 (Agent079_July19_1a_fla.Sand_Cam6_Chladni2_456)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Sand_Cam6_Chladni2_456 extends MovieClip {
public function Sand_Cam6_Chladni2_456(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function makeAlpha():void{
if (MovieClip(root).chladniNum == 2){
this.alpha = (this.alpha + ((this.alpha < 1)) ? 0.02 : 0);
} else {
this.alpha = (this.alpha - ((this.alpha > 0)) ? 0.02 : 0);
};
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame1(){
makeAlpha();
}
function frame2(){
makeAlpha();
}
function frame3(){
makeAlpha();
}
function frame4(){
makeAlpha();
}
}
}//package Agent079_July19_1a_fla
Section 153
//Sand_Cam6_Chladni3_455 (Agent079_July19_1a_fla.Sand_Cam6_Chladni3_455)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Sand_Cam6_Chladni3_455 extends MovieClip {
public function Sand_Cam6_Chladni3_455(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function makeAlpha():void{
if (MovieClip(root).chladniNum == 3){
this.alpha = (this.alpha + ((this.alpha < 1)) ? 0.02 : 0);
} else {
this.alpha = (this.alpha - ((this.alpha > 0)) ? 0.02 : 0);
};
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame1(){
makeAlpha();
}
function frame2(){
makeAlpha();
}
function frame3(){
makeAlpha();
}
function frame4(){
makeAlpha();
}
}
}//package Agent079_July19_1a_fla
Section 154
//Sand_Cam6_Chladni4_454 (Agent079_July19_1a_fla.Sand_Cam6_Chladni4_454)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Sand_Cam6_Chladni4_454 extends MovieClip {
public function Sand_Cam6_Chladni4_454(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function makeAlpha():void{
if (MovieClip(root).chladniNum == 4){
this.alpha = (this.alpha + ((this.alpha < 1)) ? 0.02 : 0);
} else {
this.alpha = (this.alpha - ((this.alpha > 0)) ? 0.02 : 0);
};
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame1(){
makeAlpha();
}
function frame2(){
makeAlpha();
}
function frame3(){
makeAlpha();
}
function frame4(){
makeAlpha();
}
}
}//package Agent079_July19_1a_fla
Section 155
//Sand_Cam6_Chladni5_453 (Agent079_July19_1a_fla.Sand_Cam6_Chladni5_453)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Sand_Cam6_Chladni5_453 extends MovieClip {
public function Sand_Cam6_Chladni5_453(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function makeAlpha():void{
if (MovieClip(root).chladniNum == 5){
this.alpha = (this.alpha + ((this.alpha < 1)) ? 0.02 : 0);
} else {
this.alpha = (this.alpha - ((this.alpha > 0)) ? 0.02 : 0);
};
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame1(){
makeAlpha();
}
function frame2(){
makeAlpha();
}
function frame3(){
makeAlpha();
}
function frame4(){
makeAlpha();
}
}
}//package Agent079_July19_1a_fla
Section 156
//Sand_Cam6_Chladni6_452 (Agent079_July19_1a_fla.Sand_Cam6_Chladni6_452)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Sand_Cam6_Chladni6_452 extends MovieClip {
public function Sand_Cam6_Chladni6_452(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function makeAlpha():void{
if (MovieClip(root).chladniNum == 6){
this.alpha = (this.alpha + ((this.alpha < 1)) ? 0.02 : 0);
} else {
this.alpha = (this.alpha - ((this.alpha > 0)) ? 0.02 : 0);
};
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame1(){
makeAlpha();
}
function frame2(){
makeAlpha();
}
function frame3(){
makeAlpha();
}
function frame4(){
makeAlpha();
}
}
}//package Agent079_July19_1a_fla
Section 157
//Sand_Cam6_ChladniCLIP_451 (Agent079_July19_1a_fla.Sand_Cam6_ChladniCLIP_451)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Sand_Cam6_ChladniCLIP_451 extends MovieClip {
public var chladni1:MovieClip;
public var chladni2:MovieClip;
public var chladni3:MovieClip;
public var chladni4:MovieClip;
public var chladni5:MovieClip;
public var chladni6:MovieClip;
public function Sand_Cam6_ChladniCLIP_451(){
addFrameScript(1, frame2);
}
function frame2(){
chladni1.alpha = 0;
chladni2.alpha = 0;
chladni3.alpha = 0;
chladni4.alpha = 0;
chladni5.alpha = 0;
chladni6.alpha = 0;
stop();
}
}
}//package Agent079_July19_1a_fla
Section 158
//Sand_cam6_Dial_458 (Agent079_July19_1a_fla.Sand_cam6_Dial_458)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Sand_cam6_Dial_458 extends MovieClip {
public function Sand_cam6_Dial_458(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 159
//Sand_Cam6_Plate_449 (Agent079_July19_1a_fla.Sand_Cam6_Plate_449)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Sand_Cam6_Plate_449 extends MovieClip {
public var plate1:MovieClip;
public var plate2:MovieClip;
public function Sand_Cam6_Plate_449(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
plate1.x = (Rand.getRandom(7) - 3);
plate1.y = (Rand.getRandom(7) - 3);
plate2.x = (Rand.getRandom(7) - 3);
plate2.y = (Rand.getRandom(7) - 3);
}
function frame2(){
plate1.x = (Rand.getRandom(7) - 3);
plate1.y = (Rand.getRandom(7) - 3);
plate2.x = (Rand.getRandom(7) - 3);
plate2.y = (Rand.getRandom(7) - 3);
}
}
}//package Agent079_July19_1a_fla
Section 160
//SaveBUTMO_498 (Agent079_July19_1a_fla.SaveBUTMO_498)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class SaveBUTMO_498 extends MovieClip {
public function SaveBUTMO_498(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 161
//SOUND_Ambience_558 (Agent079_July19_1a_fla.SOUND_Ambience_558)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class SOUND_Ambience_558 extends MovieClip {
public var track1:ambience;
public var someChannel:SoundChannel;
public var mC:MovieClip;
public var modInc:Number;
public var someTransform:SoundTransform;
public function SOUND_Ambience_558(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 6, frame7, 7, frame8, 8, frame9);
}
function frame1(){
stop();
mC = MovieClip(root);
track1 = new ambience();
someTransform = new SoundTransform(1);
someChannel = new SoundChannel();
modInc = 0.002;
}
function frame2(){
someTransform.volume = mC.ambVolume;
someChannel.stop();
someChannel = track1.play(0, 1000, someTransform);
trace("starting BOND");
}
function frame4(){
mC.ambVolume = (mC.ambVolume + modInc);
someTransform.volume = mC.ambVolume;
someChannel.soundTransform = someTransform;
if (someTransform.volume >= 1){
stop();
} else {
gotoAndPlay("repeatFadeIN");
};
}
function frame5(){
mC.ambVolume = 1;
someTransform.volume = mC.ambVolume;
someChannel.soundTransform = someTransform;
someChannel.stop();
someChannel = track1.play(0, 1000, someTransform);
stop();
}
function frame7(){
mC.ambVolume = (mC.ambVolume - modInc);
someTransform.volume = mC.ambVolume;
someChannel.soundTransform = someTransform;
if (someTransform.volume <= 0){
someChannel.stop();
stop();
};
}
function frame8(){
mC.ambVolume = (mC.ambVolume - modInc);
someTransform.volume = mC.ambVolume;
someChannel.soundTransform = someTransform;
if (someTransform.volume <= 0){
someChannel.stop();
stop();
} else {
gotoAndPlay("repeatFadeOUT");
};
}
function frame3(){
mC.ambVolume = (mC.ambVolume + modInc);
someTransform.volume = mC.ambVolume;
someChannel.soundTransform = someTransform;
if (someTransform.volume >= 1){
stop();
};
}
function frame9(){
mC.ambVolume = 0;
someTransform.volume = mC.ambVolume;
someChannel.soundTransform = someTransform;
someChannel.stop();
stop();
}
}
}//package Agent079_July19_1a_fla
Section 162
//SOUND_MainMenu_MUSIC_555 (Agent079_July19_1a_fla.SOUND_MainMenu_MUSIC_555)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class SOUND_MainMenu_MUSIC_555 extends MovieClip {
public var track1:menuMusic;
public var someChannel:SoundChannel;
public var mC:MovieClip;
public var modInc:Number;
public var someTransform:SoundTransform;
public function SOUND_MainMenu_MUSIC_555(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 6, frame7, 7, frame8, 8, frame9);
}
function frame1(){
stop();
mC = MovieClip(root);
track1 = new menuMusic();
someTransform = new SoundTransform(1);
someChannel = new SoundChannel();
modInc = 0.002;
}
function frame2(){
someTransform.volume = mC.menuVolume;
someChannel.stop();
someChannel = track1.play(0, 1000, someTransform);
trace("starting BOND");
}
function frame4(){
mC.menuVolume = (mC.menuVolume + modInc);
someTransform.volume = mC.menuVolume;
someChannel.soundTransform = someTransform;
if (someTransform.volume >= 1){
stop();
} else {
gotoAndPlay("repeatFadeIN");
};
}
function frame5(){
mC.menuVolume = 1;
someTransform.volume = mC.menuVolume;
someChannel.soundTransform = someTransform;
someChannel.stop();
someChannel = track1.play(0, 1000, someTransform);
stop();
}
function frame7(){
mC.menuVolume = (mC.menuVolume - modInc);
someTransform.volume = mC.menuVolume;
someChannel.soundTransform = someTransform;
if (someTransform.volume <= 0){
someChannel.stop();
stop();
};
}
function frame8(){
mC.menuVolume = (mC.menuVolume - modInc);
someTransform.volume = mC.menuVolume;
someChannel.soundTransform = someTransform;
if (someTransform.volume <= 0){
someChannel.stop();
stop();
} else {
gotoAndPlay("repeatFadeOUT");
};
}
function frame3(){
mC.menuVolume = (mC.menuVolume + modInc);
someTransform.volume = mC.menuVolume;
someChannel.soundTransform = someTransform;
if (someTransform.volume >= 1){
stop();
};
}
function frame9(){
mC.menuVolume = 0;
someTransform.volume = mC.menuVolume;
someChannel.soundTransform = someTransform;
someChannel.stop();
stop();
}
}
}//package Agent079_July19_1a_fla
Section 163
//Sound_OrganBadNote_547 (Agent079_July19_1a_fla.Sound_OrganBadNote_547)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Sound_OrganBadNote_547 extends MovieClip {
public function Sound_OrganBadNote_547(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 164
//Spigot_CLIP_48 (Agent079_July19_1a_fla.Spigot_CLIP_48)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Spigot_CLIP_48 extends MovieClip {
public var mC:MovieClip;
public function Spigot_CLIP_48(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 9, frame10, 17, frame18);
}
function frame1(){
stop();
mC = MovieClip(root);
}
function frame3(){
gotoAndPlay(4);
}
function frame4(){
if (mC.soundOn == true){
mC.spigotSound.gotoAndPlay(2);
};
}
function frame18(){
gotoAndStop(1);
}
function frame10(){
gotoAndStop(1);
}
}
}//package Agent079_July19_1a_fla
Section 165
//SpigotSoundCLIP_538 (Agent079_July19_1a_fla.SpigotSoundCLIP_538)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class SpigotSoundCLIP_538 extends MovieClip {
public function SpigotSoundCLIP_538(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 166
//SwapSound_559 (Agent079_July19_1a_fla.SwapSound_559)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class SwapSound_559 extends MovieClip {
public function SwapSound_559(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 167
//SWITCH_SOUND_545 (Agent079_July19_1a_fla.SWITCH_SOUND_545)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class SWITCH_SOUND_545 extends MovieClip {
public function SWITCH_SOUND_545(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 168
//Time_Cam3_HourGlass_391 (Agent079_July19_1a_fla.Time_Cam3_HourGlass_391)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_Cam3_HourGlass_391 extends MovieClip {
public function Time_Cam3_HourGlass_391(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 169
//Time_cam3_Tile3_393 (Agent079_July19_1a_fla.Time_cam3_Tile3_393)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_cam3_Tile3_393 extends MovieClip {
public function Time_cam3_Tile3_393(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 170
//Time_cam3_Tile3_Inner2_394 (Agent079_July19_1a_fla.Time_cam3_Tile3_Inner2_394)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_cam3_Tile3_Inner2_394 extends MovieClip {
public function Time_cam3_Tile3_Inner2_394(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 171
//Time_Cam3_TIMEClock_390 (Agent079_July19_1a_fla.Time_Cam3_TIMEClock_390)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_Cam3_TIMEClock_390 extends MovieClip {
public function Time_Cam3_TIMEClock_390(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 172
//Time_Cam4_CandleFLAME_NEW_404 (Agent079_July19_1a_fla.Time_Cam4_CandleFLAME_NEW_404)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_Cam4_CandleFLAME_NEW_404 extends MovieClip {
public function Time_Cam4_CandleFLAME_NEW_404(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame1(){
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame2(){
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame3(){
gotoAndPlay((Rand.getRandom(4) + 1));
}
function frame4(){
gotoAndPlay((Rand.getRandom(4) + 1));
}
}
}//package Agent079_July19_1a_fla
Section 173
//Time_Cam4_fiberOpticRIGHT_401 (Agent079_July19_1a_fla.Time_Cam4_fiberOpticRIGHT_401)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_Cam4_fiberOpticRIGHT_401 extends MovieClip {
public function Time_Cam4_fiberOpticRIGHT_401(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 174
//Time_Cam4_Sundial_407 (Agent079_July19_1a_fla.Time_Cam4_Sundial_407)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_Cam4_Sundial_407 extends MovieClip {
public function Time_Cam4_Sundial_407(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 175
//Time_Cam4_SundialShadow_406 (Agent079_July19_1a_fla.Time_Cam4_SundialShadow_406)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_Cam4_SundialShadow_406 extends MovieClip {
public function Time_Cam4_SundialShadow_406(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 176
//Time_Cam4_WaterPIPE_413 (Agent079_July19_1a_fla.Time_Cam4_WaterPIPE_413)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_Cam4_WaterPIPE_413 extends MovieClip {
public function Time_Cam4_WaterPIPE_413(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 177
//Time_Cam5_Streamdrs_409 (Agent079_July19_1a_fla.Time_Cam5_Streamdrs_409)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_Cam5_Streamdrs_409 extends MovieClip {
public function Time_Cam5_Streamdrs_409(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 178
//Time_Cam5_WaterClock_OUTER_416 (Agent079_July19_1a_fla.Time_Cam5_WaterClock_OUTER_416)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_Cam5_WaterClock_OUTER_416 extends MovieClip {
public var waterClock:MovieClip;
public function Time_Cam5_WaterClock_OUTER_416(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 179
//Time_Cam5_WindCLOCK_411 (Agent079_July19_1a_fla.Time_Cam5_WindCLOCK_411)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Time_Cam5_WindCLOCK_411 extends MovieClip {
public function Time_Cam5_WindCLOCK_411(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 180
//Time_SertTimeCLIP_419 (Agent079_July19_1a_fla.Time_SertTimeCLIP_419)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Time_SertTimeCLIP_419 extends MovieClip {
public var set1:MovieClip;
public var set2:MovieClip;
public var set3:MovieClip;
public var set4:MovieClip;
public var set5:MovieClip;
public var set6:MovieClip;
public var textB:TextField;
public var closer:MovieClip;
public function Time_SertTimeCLIP_419(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 181
//TO_Elevator_BUT_29 (Agent079_July19_1a_fla.TO_Elevator_BUT_29)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class TO_Elevator_BUT_29 extends MovieClip {
public function TO_Elevator_BUT_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 182
//undoFlash_487 (Agent079_July19_1a_fla.undoFlash_487)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class undoFlash_487 extends MovieClip {
public function undoFlash_487(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
play();
}
}
}//package Agent079_July19_1a_fla
Section 183
//unlockingSound_540 (Agent079_July19_1a_fla.unlockingSound_540)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class unlockingSound_540 extends MovieClip {
public function unlockingSound_540(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 184
//WalkThroughBUT_495 (Agent079_July19_1a_fla.WalkThroughBUT_495)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class WalkThroughBUT_495 extends MovieClip {
public function WalkThroughBUT_495(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 185
//WalkthroughBUTMO_496 (Agent079_July19_1a_fla.WalkthroughBUTMO_496)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class WalkthroughBUTMO_496 extends MovieClip {
public function WalkthroughBUTMO_496(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 186
//Wind_Cam3_ChordTimer_289 (Agent079_July19_1a_fla.Wind_Cam3_ChordTimer_289)
package Agent079_July19_1a_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Wind_Cam3_ChordTimer_289 extends MovieClip {
public function Wind_Cam3_ChordTimer_289(){
addFrameScript(0, frame1, 139, frame140);
}
function frame140(){
MovieClip(root).curLevel.checkWord();
trace("checkWord() ... from timer in wind room");
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 187
//Wind_Cam3_KEY1_278 (Agent079_July19_1a_fla.Wind_Cam3_KEY1_278)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam3_KEY1_278 extends MovieClip {
public function Wind_Cam3_KEY1_278(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 188
//Wind_Cam3_KEY2_279 (Agent079_July19_1a_fla.Wind_Cam3_KEY2_279)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam3_KEY2_279 extends MovieClip {
public function Wind_Cam3_KEY2_279(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 189
//Wind_Cam3_KEY3_280 (Agent079_July19_1a_fla.Wind_Cam3_KEY3_280)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam3_KEY3_280 extends MovieClip {
public function Wind_Cam3_KEY3_280(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 190
//Wind_Cam3_KEY4_281 (Agent079_July19_1a_fla.Wind_Cam3_KEY4_281)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam3_KEY4_281 extends MovieClip {
public function Wind_Cam3_KEY4_281(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 191
//Wind_Cam3_KEY5_282 (Agent079_July19_1a_fla.Wind_Cam3_KEY5_282)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam3_KEY5_282 extends MovieClip {
public function Wind_Cam3_KEY5_282(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 192
//Wind_Cam3_KEY6_283 (Agent079_July19_1a_fla.Wind_Cam3_KEY6_283)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam3_KEY6_283 extends MovieClip {
public function Wind_Cam3_KEY6_283(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 193
//Wind_Cam3_KEY7_284 (Agent079_July19_1a_fla.Wind_Cam3_KEY7_284)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam3_KEY7_284 extends MovieClip {
public function Wind_Cam3_KEY7_284(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 194
//Wind_Cam3_OrganNumbers_277 (Agent079_July19_1a_fla.Wind_Cam3_OrganNumbers_277)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam3_OrganNumbers_277 extends MovieClip {
public function Wind_Cam3_OrganNumbers_277(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 195
//Wind_Cam3_ToCam2_287 (Agent079_July19_1a_fla.Wind_Cam3_ToCam2_287)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam3_ToCam2_287 extends MovieClip {
public function Wind_Cam3_ToCam2_287(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 196
//Wind_Cam3_ToCam4_286 (Agent079_July19_1a_fla.Wind_Cam3_ToCam4_286)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam3_ToCam4_286 extends MovieClip {
public function Wind_Cam3_ToCam4_286(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 197
//Wind_Cam3_ToCam5_285 (Agent079_July19_1a_fla.Wind_Cam3_ToCam5_285)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam3_ToCam5_285 extends MovieClip {
public function Wind_Cam3_ToCam5_285(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 198
//Wind_Cam4_ToCam2_295 (Agent079_July19_1a_fla.Wind_Cam4_ToCam2_295)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam4_ToCam2_295 extends MovieClip {
public function Wind_Cam4_ToCam2_295(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 199
//Wind_Cam4_ToCam3_296 (Agent079_July19_1a_fla.Wind_Cam4_ToCam3_296)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam4_ToCam3_296 extends MovieClip {
public function Wind_Cam4_ToCam3_296(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 200
//Wind_Cam5_PuzzleBUTTONS_314 (Agent079_July19_1a_fla.Wind_Cam5_PuzzleBUTTONS_314)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam5_PuzzleBUTTONS_314 extends MovieClip {
public function Wind_Cam5_PuzzleBUTTONS_314(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 201
//Wind_Cam5_ToCam3_309 (Agent079_July19_1a_fla.Wind_Cam5_ToCam3_309)
package Agent079_July19_1a_fla {
import flash.display.*;
public dynamic class Wind_Cam5_ToCam3_309 extends MovieClip {
public function Wind_Cam5_ToCam3_309(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Agent079_July19_1a_fla
Section 202
//ambience (ambience)
package {
import flash.media.*;
public dynamic class ambience extends Sound {
}
}//package
Section 203
//Elevator (Elevator)
package {
import flash.display.*;
import flash.events.*;
public class Elevator extends MovieClip {
public var cam1:MovieClip;
public var cam2:MovieClip;
public var roomNumber:int;
public var gg:Object;
public var g:Array;
public var i:Array;
public var ii:Object;
public var rootObj:Object;
public var rState:Object;
public function Elevator(rNum:int):void{
super();
roomNumber = rNum;
}
private function door3():void{
trace("This is the 3rd floor door");
if (rootObj.heldItem == "keyChain"){
if ((((((((((g[gg.timeKeyInkeychain] == 1)) && ((g[gg.fireKeyInkeychain] == 1)))) && ((g[gg.copperKeyInkeychain] == 1)))) && ((g[gg.goldKeyInkeychain] == 1)))) && ((g[gg.platinumKeyInkeychain] == 1)))){
rootObj.gameMode = 6;
rootObj.canClickWon = true;
rootObj.gameWonTimer = 1;
rootObj.HUD.gotoAndPlay("HUDOut");
rootObj.longMessage.gotoAndStop(1);
rootObj.levelMessage.gotoAndStop(1);
fadeSounds();
rootObj.mouseCursor.gotoAndStop("hand");
rootObj.heldItem = "hand";
rootObj.heldNum = (0 + ii.hand);
} else {
rootObj.callMessage("Hmmm... it doesn't quite fit... there seems to be something missing from this KEY CHAIN", 2);
};
} else {
rootObj.callMessage("Its locked. There is a HUGE keyhole on the door...", 1);
};
}
private function elevatorUP(e:MouseEvent):void{
if (g[gg.floorNum] == 0){
if ((g[gg.roomControl1] == 1)){
cam1.gotoAndPlay("toFloor2");
} else {
rootObj.callMessage("You do not have LEVEL 2 ACCESS");
};
} else {
if (g[gg.floorNum] == 1){
if ((g[gg.roomControl2] == 1)){
cam1.gotoAndPlay("toFloor3");
} else {
rootObj.callMessage("You do not have LEVEL 3 ACCESS");
};
};
};
}
private function moveRoom(e:MouseEvent, yPos:int, xPos:int):void{
var rRight:int;
var rLeft:int;
var otherY:int = ((yPos == 0)) ? 1 : 0;
if (e.currentTarget.currentFrame == 1){
if (g[gg.roomControl5] == 1){
} else {
rootObj.callMessage("You do NOT have VERTICAL ROOM CONTROL");
};
} else {
if ((((g[gg.roomControl5] == 1)) && ((rootObj.roomPositions[otherY][xPos] == 0)))){
rootObj.roomPositions[otherY][xPos] = (rootObj.roomPositions[yPos][xPos] + 0);
rootObj.roomPositions[yPos][xPos] = 0;
} else {
rRight = (((xPos + 1) == 4)) ? 0 : (xPos + 1);
rLeft = (((xPos - 1) == -1)) ? 3 : (xPos - 1);
if (yPos == 0){
if (rootObj.roomPositions[yPos][rLeft] == 0){
if (g[gg.roomControl3] == 1){
rootObj.roomPositions[yPos][rLeft] = (rootObj.roomPositions[yPos][xPos] + 0);
rootObj.roomPositions[yPos][xPos] = 0;
} else {
rootObj.callMessage("You do NOT have LEVEL 1 ROOM CONTROL");
};
} else {
if (rootObj.roomPositions[yPos][rRight] == 0){
if (g[gg.roomControl3] == 1){
rootObj.roomPositions[yPos][rRight] = (rootObj.roomPositions[yPos][xPos] + 0);
rootObj.roomPositions[yPos][xPos] = 0;
} else {
rootObj.callMessage("You do NOT have LEVEL 1 ROOM CONTROL");
};
} else {
if (g[gg.roomControl3] != 1){
rootObj.callMessage("You do NOT have LEVEL 1 ROOM CONTROL");
};
};
};
} else {
if (rootObj.roomPositions[yPos][rLeft] == 0){
if (g[gg.roomControl4] == 1){
rootObj.roomPositions[yPos][rLeft] = (rootObj.roomPositions[yPos][xPos] + 0);
rootObj.roomPositions[yPos][xPos] = 0;
} else {
rootObj.callMessage("You do NOT have LEVEL 2 ROOM CONTROL");
};
} else {
if (rootObj.roomPositions[yPos][rRight] == 0){
if (g[gg.roomControl4] == 1){
rootObj.roomPositions[yPos][rRight] = (rootObj.roomPositions[yPos][xPos] + 0);
rootObj.roomPositions[yPos][xPos] = 0;
} else {
rootObj.callMessage("You do NOT have LEVEL 2 ROOM CONTROL");
};
} else {
if (g[gg.roomControl4] != 1){
rootObj.callMessage("You do NOT have LEVEL 2 ROOM CONTROL");
};
};
};
};
};
};
setInfo();
}
public function startSounds():void{
}
private function initComputer():void{
cam2.instructions.visible = false;
cam2.roomControl.visible = true;
setInfo();
}
public function initLevel(rObj):void{
var rObj = rObj;
rootObj = rObj;
g = rootObj.itemsAr;
gg = rootObj.itemsObj;
i = rootObj.invAr;
ii = rootObj.invObj;
rootObj.getRoomState(roomNumber);
rState = rootObj.roomInfo[roomNumber];
trace(("floor num: " + g[gg.floorNum]));
if ((g[gg.floorNum] == 0)){
cam1.gotoAndStop("floor1");
} else {
if ((g[gg.floorNum] == 1)){
cam1.gotoAndStop("floor2");
} else {
cam1.gotoAndPlay("startFrame");
};
};
cam2.visible = false;
cam1.doorTOPLEFT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
changeRoom(rootObj.roomPositions[g[gg.floorNum]][0]);
});
cam1.doorTOPRIGHT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((g[gg.floorNum] < 2)){
changeRoom(rootObj.roomPositions[g[gg.floorNum]][1]);
} else {
door3();
};
});
cam1.doorBOTRIGHT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
changeRoom(rootObj.roomPositions[g[gg.floorNum]][2]);
});
cam1.doorBOTLEFT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
changeRoom(rootObj.roomPositions[g[gg.floorNum]][3]);
});
cam1.controlPanel.upBUT.addEventListener(MouseEvent.CLICK, elevatorUP);
cam1.controlPanel.upBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam1.controlPanel.upBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam1.floorLOGOS.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("The LOGOs that appear in the floor here must match up to the rooms that are on the other side of these doors/walls", 2);
});
cam1.controlPanel.downBUT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((g[gg.floorNum] == 1)){
cam1.gotoAndPlay("toFloor1");
} else {
if ((g[gg.floorNum] == 2)){
cam1.gotoAndPlay("toFloor2b");
//unresolved jump
};
};
});
cam1.controlPanel.downBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam1.controlPanel.downBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
if ((g[gg.tileInElevator] == 0)){
cam1.tile.visible = false;
} else {
cam1.tile.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.tileInElevator, ii.tile3, "You picked up a PIECE OF TILE", 1);
});
};
cam1.controlBUT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam2.visible = true;
initComputer();
});
cam1.controlBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam1.controlBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam2.visible = false;
});
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.instructions.visible = false;
cam2.instructions.backBUT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam2.instructions.visible = false;
cam2.roomControl.visible = true;
});
cam2.instructions.backBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.instructions.backBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.roomControl.instructionsBUT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam2.instructions.visible = true;
cam2.roomControl.visible = false;
});
cam2.roomControl.instructionsBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.roomControl.instructionsBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.roomControl.ttl.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 1, 0);
});
cam2.roomControl.ttr.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 1, 1);
});
cam2.roomControl.tbr.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 1, 2);
});
cam2.roomControl.tbl.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 1, 3);
});
cam2.roomControl.btl.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 0, 0);
});
cam2.roomControl.btr.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 0, 1);
});
cam2.roomControl.bbr.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 0, 2);
});
cam2.roomControl.bbl.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 0, 3);
});
startSounds();
}
public function stopSounds():void{
}
private function changeRoom(toRoom:int):void{
if (toRoom != 0){
g[gg.episodeNum] = toRoom;
g[gg.camNum] = 2;
rootObj.gameMode = 1;
rootObj.canClickWon = true;
rootObj.gameWonTimer = 1;
rootObj.playSound("elevatorDoor");
rootObj.levelMessage.gotoAndStop(1);
rootObj.longMessage.gotoAndStop(1);
fadeSounds();
} else {
rootObj.callMessage("Hmmm, it won't open right now...");
};
}
private function setInfo():void{
cam2.roomControl.ttl.gotoAndStop(rootObj.roomPositions[1][0]);
cam2.roomControl.ttr.gotoAndStop(rootObj.roomPositions[1][1]);
cam2.roomControl.tbr.gotoAndStop(rootObj.roomPositions[1][2]);
cam2.roomControl.tbl.gotoAndStop(rootObj.roomPositions[1][3]);
cam2.roomControl.btl.gotoAndStop(rootObj.roomPositions[0][0]);
cam2.roomControl.btr.gotoAndStop(rootObj.roomPositions[0][1]);
cam2.roomControl.bbr.gotoAndStop(rootObj.roomPositions[0][2]);
cam2.roomControl.bbl.gotoAndStop(rootObj.roomPositions[0][3]);
cam1.iconsTOPLEFT.gotoAndStop(rootObj.roomPositions[rootObj.itemsAr[rootObj.itemsObj.floorNum]][0]);
cam1.iconsTOPRIGHT.gotoAndStop(rootObj.roomPositions[rootObj.itemsAr[rootObj.itemsObj.floorNum]][1]);
cam1.iconsBOTRIGHT.gotoAndStop(rootObj.roomPositions[rootObj.itemsAr[rootObj.itemsObj.floorNum]][2]);
cam1.iconsBOTLEFT.gotoAndStop(rootObj.roomPositions[rootObj.itemsAr[rootObj.itemsObj.floorNum]][3]);
cam2.roomControl.granted3.visible = ((g[gg.roomControl3] == 1)) ? true : false;
cam2.roomControl.granted4.visible = ((g[gg.roomControl4] == 1)) ? true : false;
cam2.roomControl.granted5.visible = ((g[gg.roomControl5] == 1)) ? true : false;
}
public function fadeSounds():void{
}
}
}//package
Section 204
//fan (fan)
package {
import flash.media.*;
public dynamic class fan extends Sound {
}
}//package
Section 205
//fire (fire)
package {
import flash.media.*;
public dynamic class fire extends Sound {
}
}//package
Section 206
//FireRoom (FireRoom)
package {
import flash.display.*;
import flash.events.*;
public class FireRoom extends MovieClip {
public var cam1:MovieClip;
public var cam2:MovieClip;
public var cam4:MovieClip;
public var cam6:MovieClip;
public var cam3:MovieClip;
public var cam5:MovieClip;
public var roomNumber:int;
public var gg:Object;
public var g:Array;
public var i:Array;
public var ii:Object;
public var rootObj:Object;
public var rState:Object;
public function FireRoom(rNum:int):void{
super();
roomNumber = rNum;
}
public function initLevel(rObj):void{
var rObj = rObj;
rootObj = rObj;
g = rootObj.itemsAr;
gg = rootObj.itemsObj;
i = rootObj.invAr;
ii = rootObj.invObj;
rootObj.getRoomState(roomNumber);
rState = rootObj.roomInfo[roomNumber];
if (rState.roomRight == 6){
g[gg.flamesInFireRoom] = 0;
g[gg.statueBaseInFireRoom] = 0;
g[gg.statueTopInFireRoom] = 0;
g[gg.fireRoomSmoke] = 0;
cam4.streamers.gotoAndPlay(2);
};
cam1.visible = (cam2.visible = (cam3.visible = (cam4.visible = (cam5.visible = (cam6.visible = false)))));
if ((g[gg.camNum] == 1)){
cam1.visible = true;
} else {
if ((g[gg.camNum] == 2)){
cam2.visible = true;
} else {
if ((g[gg.camNum] == 3)){
cam3.visible = true;
} else {
if ((g[gg.camNum] == 4)){
cam4.visible = true;
} else {
if ((g[gg.camNum] == 5)){
cam5.visible = true;
} else {
cam6.visible = true;
};
};
};
};
};
cam1.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam1, cam2, 2);
setFireVol(g[gg.camNum]);
});
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam1.toELEVATOR.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.elevDoor == 1)){
rootObj.toElevator();
} else {
rootObj.callMessage("Hmmm, it won't open right now...");
};
});
if ((g[gg.tileInFireRoom] == 0)){
cam1.tile.visible = false;
} else {
cam1.tile.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.tileInFireRoom, ii.tile1, "You picked up a PIECE OF TILE", 1);
});
};
cam2.toCam1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam1, 1);
setFireVol(g[gg.camNum]);
});
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam3, 3);
setFireVol(g[gg.camNum]);
});
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam4, 4);
setFireVol(g[gg.camNum]);
});
cam2.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam5, 5);
setFireVol(g[gg.camNum]);
});
cam2.toCam5.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam5.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.BGGlow.visible = ((g[gg.furnaceOn] == 1)) ? true : false;
cam2.firePipes.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(("Hmmm... these pipes seem to lead from that LARGE FURNACE to a room above this one. " + ((g[gg.furnaceOn] == 1)) ? "They appear to be funneling FLAMES through them" : ""), 2);
});
cam3.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam2, 2);
setFireVol(g[gg.camNum]);
});
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam4, 4);
setFireVol(g[gg.camNum]);
});
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam5, 5);
setFireVol(g[gg.camNum]);
});
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.BGGlow.visible = ((g[gg.furnaceOn] == 1)) ? true : false;
cam3.onPuzzle.visible = ((g[gg.furnaceOn] == 1)) ? false : true;
cam3.insideFurnace.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((g[gg.furnaceOn] == 0)){
rootObj.callMessage("Its too dark to see anything in there");
} else {
if ((((rootObj.heldItem == "tongs")) && ((g[gg.diamondInFurnace] == 1)))){
rootObj.pickUpItem(e, gg.diamondInFurnace, ii.diamond, "You picked up the DIAMOND", 1);
} else {
if ((g[gg.diamondInFurnace] == 1)){
rootObj.callMessage("There seems to be something in there but its too hot to reach for it.", 2);
//unresolved jump
};
};
};
});
if ((g[gg.waterInFurnace] == 1)){
cam3.waterCan.gotoAndStop("full");
} else {
cam3.waterCan.addEventListener(MouseEvent.CLICK, waterBottleFunc);
};
cam3.keyMaker.addEventListener(MouseEvent.CLICK, keyPuzzleFunc);
cam3.spigot.addEventListener(MouseEvent.CLICK, spigotFunc);
cam3.hotKey.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("OWW!!, this is too hot to pick up right now!");
});
if ((g[gg.goldKey] == 1)){
cam3.goldKey.gotoAndPlay(60);
//unresolved jump
};
if ((g[gg.platinumKey] == 1)){
cam3.platinumKey.gotoAndPlay(60);
//unresolved jump
};
if ((g[gg.copperKey] == 1)){
cam3.copperKey.gotoAndPlay(60);
//unresolved jump
};
cam3.copperKey.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.copperKey, ii.copperKey, "You picked up the COPPER KEY", 1);
});
cam3.goldKey.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.goldKey, ii.goldKey, "You picked up the GOLD KEY", 1);
});
cam3.platinumKey.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.platinumKey, ii.platinumKey, "You picked up the PLATINUM KEY", 1);
});
cam4.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam2, 2);
setFireVol(g[gg.camNum]);
});
cam4.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam3, 3);
setFireVol(g[gg.camNum]);
});
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.toCam6.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam6, 6);
setFireVol(g[gg.camNum]);
});
cam4.toROOMRIGHT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (((!((rState.roomRight == 0))) && ((rootObj.roomInfo[rState.roomRight].leftDoor == 2)))){
rootObj.changeRoom(roomNumber, rState.roomRight, 5);
} else {
if (((!((rState.roomRight == 0))) && ((rootObj.roomInfo[rState.roomRight].leftDoor == 1)))){
rootObj.callMessage("It seems to be locked from the other side", 1);
} else {
rootObj.callMessage("Hmmm, it seems to lead nowhere...");
};
};
});
if ((g[gg.fireDoorLocked] == 1)){
cam4.roomRightBlocker.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.unlockItem(e, gg.fireDoorLocked, ii.fireKey);
rState.rightDoor = 2;
});
} else {
cam4.roomRightBlocker.visible = false;
};
cam4.BGGlow.visible = ((g[gg.furnaceOn] == 1)) ? true : false;
cam4.statueBase.visible = false;
cam4.statueBase.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rootObj.heldItem == "statuePart")){
rootObj.callMessage("hmmm... this won't seem to fit back together");
} else {
rootObj.callMessage("It seems to be the base to a WOODEN STATUE");
};
});
cam4.statueBaseChar.visible = false;
if (g[gg.statueBaseInFireRoom] == 1){
if ((g[gg.furnaceOn] == 1)){
cam4.statueBaseChar.visible = true;
} else {
cam4.statueBase.visible = true;
};
};
cam4.statueTop.visible = ((g[gg.statueTopInFireRoom] == true)) ? true : false;
cam4.smoke.alpha = (g[gg.fireRoomSmoke] * 0.75);
cam4.flames.visible = ((g[gg.flamesInFireRoom] == 1)) ? true : false;
cam4.flames.addEventListener(MouseEvent.CLICK, clickFlames);
cam4.laser.visible = ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))) ? true : false;
cam4.firePipe.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(("This pipe leads from the FURNACE to the adjoining room. " + ((g[gg.furnaceOn] == 1)) ? "It appears to be funneling FLAMES from the FURNACE" : "I wonder what purpose it serves."), 2);
});
cam4.windPipe.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(("This pipe leads in from the adjoining room. " + ((rState.roomRight == 6)) ? "It appears to be funneling WIND from the WIND ROOM" : "I wonder what purpose it serves."), 2);
});
cam4.lightPipe.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(("This looks like a FIBER OPTIC CABLE from the Adjoining room that connects to some kind of LASER. " + ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))) ? "It appears to be ON" : "I wonder what purpose it serves."), 2);
});
cam4.BBEPXFaint.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("The laser is casting something on the SMOKE but its very faint. I need more SMOKE!", 2);
});
cam4.BBEPX.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("BBEPX? Hmmmm... It looks like its RUSSIAN. I wonder if its some sort of PASSWORD?", 2);
});
cam4.BBEPXFaint.visible = false;
cam4.BBEPX.visible = false;
if ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))){
if ((cam4.smoke.alpha >= 1)){
cam4.BBEPX.visible = true;
} else {
if ((cam4.smoke.alpha == 0.75)){
cam4.BBEPXFaint.visible = true;
//unresolved jump
};
};
};
cam5.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam5, cam2, 2);
setFireVol(g[gg.camNum]);
});
cam5.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam5, cam3, 3);
setFireVol(g[gg.camNum]);
});
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.BGGlow.visible = ((g[gg.furnaceOn] == 1)) ? true : false;
cam5.firePipe.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(("This pipe leads from the FURNACE to the adjoining room. " + ((g[gg.furnaceOn] == 1)) ? "It appears to be funneling FLAMES from the FURNACE" : "I wonder what purpose it serves."), 2);
});
cam5.proverbCover.gotoAndStop(((g[gg.proverbLockedFireRoom] == 1)) ? 1 : 2);
cam5.proverbCover.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (g[gg.proverbLockedFireRoom] == 1){
rootObj.callMessage("It looks like there are words on the wall behind this but I can't make them out", 2);
rootObj.playSound("chainFence");
};
});
if ((g[gg.proverbLockedFireRoom] == 0)){
cam5.padLock.visible = false;
} else {
cam5.padLock.addEventListener(MouseEvent.CLICK, padLockFUNC);
};
cam6.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam6, cam4, 4);
setFireVol(g[gg.camNum]);
});
cam6.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam6.BGGlow.visible = ((g[gg.furnaceOn] == 1)) ? true : false;
if ((g[gg.gearInFireRoom] == 0)){
cam6.gear.visible = false;
} else {
cam6.gear.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.gearInFireRoom, ii.gear5, "You picked up a GEAR", 1);
});
};
startSounds();
}
public function clickFlames(e:MouseEvent):void{
if (rootObj.heldItem == "statuePart"){
cam4.statueTop.visible = true;
g[gg.statueTopInFireRoom] = 1;
g[gg.fireRoomSmoke] = 2;
i[ii.statuePart] = 0;
cam4.smoke.alpha = (g[gg.fireRoomSmoke] / 2);
if ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))){
cam4.BBEPXFaint.visible = false;
cam4.BBEPX.visible = true;
};
rootObj.callMessage("You added the WOODEN STATUE PARTS to the flames... the smoke got a lot thicker.", 2);
rootObj.setHand();
} else {
rootObj.callMessage("OWW!!, its too HOT to search it right now!");
};
}
private function spigotFunc(e:MouseEvent):void{
if (g[gg.waterInFurnace] == 1){
if (cam3.hotKey.currentFrame != 1){
e.currentTarget.gotoAndPlay("mouseDOWN");
cam3.waterInTray.gotoAndPlay(2);
} else {
rootObj.callMessage("There is no reason to release WATER right now");
};
} else {
rootObj.callMessage("There is no WATER to release");
};
}
public function startSounds():void{
if (rootObj.soundOn == true){
setFireVol(g[gg.camNum]);
if (g[gg.furnaceOn] == 1){
rootObj.fireSound.gotoAndStop(2);
};
};
}
private function waterBottleFunc(e:MouseEvent):void{
if (g[gg.waterInFurnace] == 0){
if (rootObj.heldItem == "waterCanFull"){
g[gg.waterInFurnace] = 1;
i[ii.waterCanFull] = 0;
i[ii.waterCan] = 1;
cam3.waterCan.gotoAndPlay(2);
rootObj.mouseCursor.gotoAndStop("waterCan");
rootObj.heldItem = "waterCan";
rootObj.heldNum = (0 + ii.waterCan);
rootObj.HUD.HUDInner.refreshList();
rootObj.callMessage("You filled the BOTTLE with water");
rootObj.playSound("pouring");
} else {
rootObj.callMessage("hmmm... it looks like it needs water");
};
};
}
private function padLockFUNC(e:MouseEvent):void{
if (rootObj.heldItem == "timeKey"){
rootObj.callMessage("You unlocked it");
rootObj.playSound("unlock");
g[gg.proverbLockedFireRoom] = 0;
cam5.proverbCover.gotoAndStop(2);
cam5.padLock.visible = false;
} else {
rootObj.callMessage("Its locked with a PAD LOCK. There is an insignia of a CLOCK on it.", 2);
rootObj.playSound("locked");
};
}
public function fadeInSounds():void{
if (rootObj.soundOn == true){
rootObj.fireVolume = 0.7;
rootObj.fireSound.gotoAndPlay(8);
};
}
public function stopSounds():void{
rootObj.fireSound.gotoAndStop(3);
}
private function keyPuzzleFunc(e:MouseEvent):void{
if (g[gg.furnaceOn] == 1){
if (rootObj.heldItem == "goldStatue"){
i[ii.goldStatue] = 0;
g[gg.goldKey] = 1;
rootObj.setHand();
cam3.liquidMetal.gotoAndPlay(2);
cam3.hotKey.gotoAndPlay(2);
cam3.goldKey.gotoAndPlay(2);
} else {
if (rootObj.heldItem == "BADGE"){
i[ii.BADGE] = 0;
g[gg.platinumKey] = 1;
rootObj.setHand();
cam3.liquidMetal.gotoAndPlay(2);
cam3.hotKey.gotoAndPlay(2);
cam3.platinumKey.gotoAndPlay(2);
} else {
if (rootObj.heldItem == "copperStatue"){
i[ii.copperStatue] = 0;
g[gg.copperKey] = 1;
rootObj.setHand();
cam3.liquidMetal.gotoAndPlay(2);
cam3.hotKey.gotoAndPlay(2);
cam3.copperKey.gotoAndPlay(2);
} else {
if (rootObj.heldItem != "hand"){
rootObj.callMessage("hmmm... I don't think this goes in here");
} else {
rootObj.callMessage("hmmm, it looks like I can melt down metals in here");
};
};
};
};
} else {
if ((((((rootObj.heldItem == "goldStatue")) || ((rootObj.heldItem == "platinumStatue")))) || ((rootObj.heldItem == "copperStatue")))){
rootObj.callMessage("hmmm... I should wait until the furnace is running before I put this in here", 2);
} else {
if (rootObj.heldItem != "hand"){
rootObj.callMessage("hmmm... I don't think this goes in here");
} else {
rootObj.callMessage("hmmm, when the furnace is running it looks like I can melt down metals in here", 2);
};
};
};
}
public function fadeSounds():void{
rootObj.fireSound.gotoAndPlay(4);
}
private function setFireVol(camNum:int):void{
var fVol:Number = 0.1;
switch (camNum){
case 1:
fVol = 0.1;
break;
case 2:
fVol = 0.3;
break;
case 3:
fVol = 0.7;
break;
case 4:
case 5:
case 6:
fVol = 0.5;
break;
};
rootObj.fireVolume = fVol;
rootObj.fireSound.gotoAndPlay(6);
}
public function turnOnFurnace():void{
cam4.BGGlow.visible = true;
cam2.BGGlow.visible = true;
cam5.BGGlow.visible = true;
fadeInSounds();
g[gg.flamesInFireRoom] = 1;
cam4.flames.visible = true;
cam4.statueBase.visible = false;
cam4.statueBaseChar.visible = true;
g[gg.fireRoomSmoke] = 1;
cam4.smoke.alpha = (g[gg.fireRoomSmoke] / 2);
cam4.BBEPXFaint.visible = true;
rootObj.fireInfo.leftPower = 1;
rootObj.fireInfo.rightPower = 1;
rootObj.fireInfo.roomState = 1;
}
}
}//package
Section 207
//handCursor (handCursor)
package {
import flash.display.*;
public dynamic class handCursor extends MovieClip {
public function handCursor(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 208
//HUDList (HUDList)
package {
import flash.display.*;
public dynamic class HUDList extends MovieClip {
public function HUDList(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 209
//IceRoom (IceRoom)
package {
import flash.display.*;
import flash.events.*;
public class IceRoom extends MovieClip {
public var cam1:MovieClip;
public var cam2:MovieClip;
public var cam4:MovieClip;
public var cam6:MovieClip;
private var numLightsOn:int;// = 0
public var cam3:MovieClip;
public var cam5:MovieClip;
public var cam7:MovieClip;
public var roomNumber:int;
private var lightPower:Boolean;
private var theWord:String;// = ""
public var steam:MovieClip;
public var tempPipe:int;
public var g:Array;
public var i:Array;
private var lightWord:String;// = ""
public var gg:Object;
public var rootObj:Object;
public var ii:Object;
public var rState:Object;
public function IceRoom(rNum:int):void{
super();
addFrameScript(0, frame1);
roomNumber = rNum;
}
public function initLevel(rObj):void{
var rObj = rObj;
rootObj = rObj;
g = rootObj.itemsAr;
gg = rootObj.itemsObj;
i = rootObj.invAr;
ii = rootObj.invObj;
rootObj.getRoomState(roomNumber);
rState = rootObj.roomInfo[roomNumber];
g[gg.iceWallInIceRoom] = ((rState.roomState == 3)) ? 0 : g[gg.iceWallInIceRoom];
rootObj.curLevel.steam.visible = ((rState.roomState == 3)) ? true : false;
rootObj.curLevel.steam.mouseEnabled = false;
if (rState.roomState == 3){
g[gg.tankStateIceRoom] = ((g[gg.tankStateIceRoom] == 1)) ? 2 : g[gg.tankStateIceRoom];
};
cam1.visible = (cam2.visible = (cam3.visible = (cam4.visible = (cam5.visible = (cam6.visible = (cam6.visible = (cam7.visible = false)))))));
if ((g[gg.camNum] == 1)){
cam1.visible = true;
} else {
if ((g[gg.camNum] == 2)){
cam2.visible = true;
} else {
if ((g[gg.camNum] == 3)){
cam3.visible = true;
} else {
if ((g[gg.camNum] == 4)){
cam4.visible = true;
} else {
if ((g[gg.camNum] == 5)){
cam5.visible = true;
} else {
if ((g[gg.camNum] == 6)){
cam6.visible = true;
} else {
cam7.visible = true;
};
};
};
};
};
};
cam1.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam1, cam2, 2);
});
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam1.toELEVATOR.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.elevDoor == 1)){
rootObj.toElevator();
} else {
rootObj.callMessage("Hmmm, it won't open right now...");
};
});
cam1.ice.visible = ((rState.roomState == 1)) ? true : false;
if ((g[gg.redFilterInIceRoom] == 0)){
cam1.redFilter.visible = false;
} else {
cam1.redFilter.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.redFilterInIceRoom, ii.redFilter, "You picked up a RED COLOR FILTER", 1);
});
};
cam1.copperStatue.visible = ((g[gg.copperStatueInIceRoom] == 0)) ? false : ((g[gg.iceWallInIceRoom] == 1)) ? false : true;
cam1.copperStatue.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.copperStatueInIceRoom, ii.copperStatue, "You picked up a COPPER STATUE", 1);
});
cam2.toCam1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam1, 1);
});
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.roomState == 1)){
rootObj.changeCam(cam2, cam3, 3);
} else {
rootObj.callMessage("The ICE has melted... I can't reach the other side", 1);
};
});
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.roomState == 1)){
rootObj.changeCam(cam2, cam4, 4);
} else {
rootObj.callMessage("The ICE has melted... I can't reach the other side", 1);
};
});
cam2.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.roomState == 1)){
rootObj.changeCam(cam2, cam5, 5);
} else {
rootObj.callMessage("The ICE has melted... I can't reach the other side", 1);
};
});
cam2.toCam5.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam5.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.ice.visible = ((rState.roomState == 1)) ? true : false;
cam2.copperStatue.visible = ((g[gg.iceWallInIceRoom] == 1)) ? true : false;
cam2.copperStatue.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("There seems to be something frozen into this WALL of ICE");
});
cam2.halfIce.visible = ((rState.roomState == 2)) ? true : false;
if ((g[gg.iceWallInIceRoom] == 0)){
cam2.iceWall.visible = false;
} else {
cam2.iceWall.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("There is a WALL of ICE blocking the room.", 1);
});
};
cam2.ropeBUT.addEventListener(MouseEvent.CLICK, tankBUT);
cam2.gearRope.gotoAndStop(((g[gg.gearRopeInWater] == 1)) ? 1 : 2);
cam2.tank.gotoAndStop(g[gg.tankStateIceRoom]);
if ((((g[gg.tankStateIceRoom] < 3)) && ((rState.roomState == 3)))){
cam2.runningWater.gotoAndStop(g[gg.tankStateIceRoom]);
} else {
if ((rState.roomState == 3)){
cam2.runningWater.gotoAndStop(2);
} else {
cam2.runningWater.visible = false;
};
};
cam2.basketRope.gotoAndStop(((g[gg.tankStateIceRoom] < 3)) ? 1 : 2);
cam2.scaleBasket.visible = ((((g[gg.scaleBasketInIceRoom] == 1)) && ((g[gg.tankStateIceRoom] == 3)))) ? true : false;
cam2.scaleBasket.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.scaleBasketInIceRoom, ii.scaleBasket, "You picked up the SCALE BASKET", 1);
});
if ((g[gg.tankStateIceRoom] == 3)){
cam2.ropeCLICK.visible = false;
} else {
cam2.ropeCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("Whatever its tied to, I can't lift it. The rope also seems to be connected to the TANK at the far side of the room", 2);
});
};
cam2.waterClick.addEventListener(MouseEvent.CLICK, waterClickFUNC);
cam2.flames.visible = (cam2.firePipes.visible = ((rState.roomState == 3)) ? true : false);
cam2.firePipe.visible = ((rState.roomState == 2)) ? true : false;
cam2.firePipesCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(((rState.roomState == 3)) ? "These pipes are connected to the room below. The FLAMES must originate from there. The ICE has melted and the room is filled with STEAM" : "These pipes are connected to the room below.", 2);
});
cam2.firePipeCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(((rState.roomState == 2)) ? "These pipes are connected to the room to The LEFT. Some of the ICE has melted and the room is half filled with WATER" : "These pipes are connected to the room to the LEFT.", 2);
});
if (rState.roomState == 1){
cam3.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam2, 2);
});
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam6.visible = false;
} else {
cam3.toCam6.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam6, 6);
});
cam3.toCam6.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam6.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam2.visible = false;
};
cam3.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam4, 4);
});
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam5, 5);
});
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.waterSpoutCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(("This thing condenses STEAM" + ((rState.roomState == 1)) ? "If I could evaporate the ICE in here I could collect water in this TANK" : ((rState.roomState == 2)) ? "If I could heat this room MORE I could collect water in this TANK." : ""), 2);
});
cam3.tank.gotoAndStop((g[gg.tankStateIceRoom] + 1));
if ((g[gg.tankStateIceRoom] == 3)){
cam3.tankCLICK.visible = false;
} else {
cam3.tankCLICK.addEventListener(MouseEvent.CLICK, tankFUNC);
};
cam4.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.roomState == 1)){
rootObj.changeCam(cam4, cam2, 2);
} else {
rootObj.callMessage("The ICE FLOOR between here and the ELEVATORS has melted. I can't get across this way.", 2);
};
});
cam4.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.roomState <= 2)){
rootObj.changeCam(cam4, cam3, 3);
} else {
rootObj.callMessage("The ICE FLOOR between here and the center of the room has melted. I can't get across this way.", 2);
};
});
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
if (rState.roomState != 3){
cam4.toCam7.visible = false;
} else {
cam4.toCam7.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam7, 7);
});
cam4.toCam7.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam7.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
};
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.waterClick.addEventListener(MouseEvent.CLICK, waterClickFUNC);
cam4.toROOMRIGHT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (((!((rState.roomRight == 0))) && ((rootObj.roomInfo[rState.roomRight].leftDoor == 2)))){
rootObj.changeRoom(roomNumber, rState.roomRight, 5);
} else {
if (((!((rState.roomRight == 0))) && ((rootObj.roomInfo[rState.roomRight].leftDoor == 1)))){
rootObj.callMessage("It seems to be locked from the other side", 1);
} else {
rootObj.callMessage("Hmmm, it seems to lead nowhere...");
};
};
});
cam4.ACUnit.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("Its some sort of PUMP that, when the room's ICE has melted, will PUMP WATER into the adjoining room", 2);
});
cam4.ice.visible = ((rState.roomState == 3)) ? false : true;
cam4.water.addEventListener(MouseEvent.CLICK, waterClickFUNC);
cam5.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.roomState == 1)){
rootObj.changeCam(cam5, cam2, 2);
} else {
rootObj.callMessage("The ICE FLOOR between here and the ELEVATORS has melted. I can't get across this way.", 2);
};
});
cam5.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam5, cam3, 3);
});
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.firePipeCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(("hmmm... this pipe connects the room next door... it looks like the pipes in the FIRE ROOM." + ((rState.roomRight == 3)) ? "There seems to be FIRE POWER coming through it now!" : ""), 2);
});
cam5.firePipe.visible = ((rState.roomState == 2)) ? true : false;
cam5.ice.visible = ((rState.roomState >= 2)) ? false : true;
cam5.chain.gotoAndStop(((g[gg.gearRopeInWater] == 1)) ? 1 : 2);
if ((g[gg.gearRopeInWater] == 0)){
cam5.chainCLICK.visible = 0;
} else {
cam5.chainCLICK.addEventListener(MouseEvent.CLICK, chainFUNC);
};
cam5.gear.visible = ((g[gg.gearInIceRoom] == 0)) ? false : ((g[gg.gearRopeInWater] == 1)) ? false : true;
cam5.gear.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.gearInIceRoom, ii.gear4, "You picked up a GEAR", 1);
});
cam5.ACUnit.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("It appears to be a huge AIR CONDITIONER unit. Its pumping out COLD air", 2);
});
cam6.toCam1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("The ICE FLOOR has melted... I can't get there from here right now", 2);
});
cam6.toCam1.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.toCam1.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam6.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam6, cam3, 3);
});
cam6.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam6.waterClick.addEventListener(MouseEvent.CLICK, waterClickFUNC);
if (((cam6.firePipe.visible == rState.roomRight) == 3)){
//unresolved jump
};
cam6.basketRope.gotoAndStop(((g[gg.tankStateIceRoom] < 3)) ? 1 : 2);
cam7.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam7, cam4, 4);
});
cam7.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam7.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam7.toCam1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("The ICE FLOOR has melted... I can't get there from here right now", 2);
});
cam7.toCam1.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam7.toCam1.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam7.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("The ICE FLOOR has melted... I can't get there from here right now", 2);
});
cam7.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam7.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam7.chain.gotoAndStop(((g[gg.gearRopeInWater] == 1)) ? 1 : 2);
cam7.basketRope.gotoAndStop(((g[gg.tankStateIceRoom] < 3)) ? 1 : 2);
cam7.waterClick.addEventListener(MouseEvent.CLICK, waterClickFUNC);
cam7.tank.gotoAndStop((g[gg.tankStateIceRoom] + 1));
startSounds();
}
public function fadeSounds():void{
}
private function chainFUNC(e:MouseEvent):void{
if (g[gg.gearRopeInWater] == 1){
if (rState.roomState == 2){
g[gg.gearRopeInWater] = 0;
cam5.chainCLICK.visible = 0;
cam5.chain.gotoAndStop(2);
cam5.gear.visible = true;
rootObj.callMessage("Because the ICE is melted I was able to pull the CHAIN out of the WATER", 2);
} else {
rootObj.callMessage("Its frozen into the ICE. I can't budge it!");
};
};
}
function frame1(){
steam.mouseEnabled = false;
}
public function startSounds():void{
}
public function stopSounds():void{
}
public function tankFUNC(e:MouseEvent):void{
if (g[gg.tankStateIceRoom] == 0){
if (rootObj.heldItem == "waterProofEPOXY"){
g[gg.tankStateIceRoom] = 1;
i[ii.waterProofEPOXY] = 0;
rootObj.setHand();
rootObj.callMessage("You used the WATER PROOF EPOXY to mend the TANK");
} else {
if (rootObj.heldItem == "EPOXY"){
rootObj.callMessage("Hmmm... I need to combine this EPOXY with something to make it WATER PROOF", 2);
} else {
if (rootObj.heldItem == "epoxyHardener"){
rootObj.callMessage("Hmmm... I need to combine this with some EPOXY so I can mend this TANK", 2);
} else {
if (rootObj.heldItem != "hand"){
rootObj.callMessage("I can't use this here.");
} else {
rootObj.callMessage("Hmmm... I think I need to mend this CRACK somehow so I can collect water in this TANK", 2);
};
};
};
};
} else {
if (g[gg.tankStateIceRoom] == 1){
if (rootObj.heldItem != "hand"){
rootObj.callMessage("I can't use this here.");
} else {
rootObj.callMessage("Hmmm... I somehow need to get water into this TANK.", 2);
};
} else {
if (g[gg.tankStateIceRoom] == 2){
if (rootObj.heldItem != "hand"){
rootObj.callMessage("I can't use this here.");
} else {
rootObj.callMessage("Hmmm... this TANK seems to be connected to something via these cables. I need to lower it somehow.", 2);
};
};
};
};
cam3.tank.gotoAndStop((g[gg.tankStateIceRoom] + 1));
cam2.tank.gotoAndStop(g[gg.tankStateIceRoom]);
}
private function tankBUT(e:MouseEvent):void{
if (g[gg.iceWallInIceRoom] == 1){
rootObj.callMessage("Nothing happened... I wonder what it does?");
} else {
if (g[gg.tankStateIceRoom] <= 1){
rootObj.callMessage("Nothing happened... perhaps it has something to do with the ropes connected to that TANK at the far side of the room", 2);
} else {
if (g[gg.tankStateIceRoom] == 2){
if (rState.roomState == 1){
rootObj.callMessage("Nothing happened... perhaps the ICE in the floor is preventing it from working properly?", 2);
} else {
g[gg.tankStateIceRoom] = 3;
cam2.tank.gotoAndStop(3);
cam3.tank.gotoAndStop(3);
cam7.tank.gotoAndStop(3);
cam2.basketRope.gotoAndStop(2);
cam2.scaleBasket.visible = true;
cam2.ropeCLICK.visible = false;
rootObj.callMessage("The TANK full of water was lowered... something was raised from below the water.", 2);
};
} else {
if (g[gg.tankStateIceRoom] == 3){
};
};
};
};
}
private function waterClickFUNC(e:MouseEvent):void{
if ((((((rootObj.heldItem == "waterCan")) || ((rootObj.heldItem == "sandCan")))) || ((rootObj.heldItem == "mudCan")))){
i[ii.waterCan] = (i[ii.sandCan] = (i[ii.mudCan] = 0));
i[ii.waterCanFull] = 1;
rootObj.mouseCursor.gotoAndStop("waterCanFull");
rootObj.heldItem = "waterCanFull";
rootObj.heldNum = (0 + ii.waterCanFull);
rootObj.HUD.HUDInner.refreshList();
rootObj.playSound("pouring");
rootObj.callMessage("You filled the CAN with WATER", 1);
} else {
rootObj.callMessage("The ICE FLOOR here has been MELTED into WATER", 1);
};
}
}
}//package
Section 210
//Key (Key)
package {
import flash.display.*;
import flash.events.*;
public class Key {
private static var initialized:Boolean = false;
private static var keysDown:Object = new Object();
private static var curKey:uint;
private static function clearKeys(event:Event):void{
keysDown = new Object();
}
private static function keyPressed(event:KeyboardEvent):void{
keysDown[event.keyCode] = true;
curKey = event.keyCode;
}
public static function whichKey():uint{
if (!initialized){
throw (new Error("Key class has yet been initialized."));
};
return (curKey);
}
public static function isDown(keyCode:uint):Boolean{
if (!initialized){
throw (new Error("Key class has yet been initialized."));
};
return (Boolean((keyCode in keysDown)));
}
public static function initialize(stage:Stage){
if (!initialized){
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
stage.addEventListener(Event.DEACTIVATE, clearKeys);
initialized = true;
};
}
private static function keyReleased(event:KeyboardEvent):void{
if ((event.keyCode in keysDown)){
delete keysDown[event.keyCode];
};
}
}
}//package
Section 211
//LightRoom (LightRoom)
package {
import flash.display.*;
import flash.events.*;
public class LightRoom extends MovieClip {
public var roomNumber:int;
public var clickedX:int;// = 10
public var clickedY:int;// = 10
public var chineseTiles:Array;
public var ii:Object;
public var russianTiles:Array;
public var rootObj:Object;
public var cam1:MovieClip;
public var cam2:MovieClip;
public var cam3:MovieClip;
public var cam4:MovieClip;
public var cam5:MovieClip;
public var cam6:MovieClip;
public var cam7:MovieClip;
public var rootTiles:Array;
public var rState:Object;
public var gg:Object;
public var g:Array;
public var i:Array;
public function LightRoom(rNum:int):void{
super();
roomNumber = rNum;
}
private function diamondFUNC(e:MouseEvent):void{
if (rootObj.heldItem == "diamond"){
g[gg.diamondInLighRoom] = 1;
i[ii.diamond] = 0;
rootObj.playSound("placeItem");
rootObj.setHand();
cam3.diamond.gotoAndStop(2);
if (g[gg.spectrumSwitch] == 1){
cam3.spectrum.gotoAndStop(3);
};
} else {
if (((!((rootObj.heldItem == "hand"))) && ((g[gg.diamondInLighRoom] == 0)))){
rootObj.callMessage("hmmm... this doesn't seem to fit here", 1);
} else {
if (g[gg.diamondInLighRoom] == 0){
rootObj.callMessage("hmmm... it looks like something fits in here", 1);
} else {
rootObj.callMessage("Its stuck. I think its in there for good", 1);
};
};
};
}
private function spectrumSwitchFUNC(e:MouseEvent):void{
if (g[gg.spectrumSwitch] == 1){
g[gg.spectrumSwitch] = 0;
cam3.spectrum.gotoAndStop(1);
} else {
g[gg.spectrumSwitch] = 1;
cam3.spectrum.gotoAndStop(((g[gg.diamondInLighRoom] == 1)) ? 3 : 2);
};
e.currentTarget.gotoAndStop((g[gg.spectrumSwitch] + 1));
rootObj.playSound("switch");
}
private function filtersFUNC(e:MouseEvent):void{
if (rootObj.heldItem == "blackFilter"){
i[ii.redFilter] = ((g[gg.redFilterInLightRoom] == 1)) ? 1 : i[ii.redFilter];
g[gg.redFilterInLightRoom] = 0;
g[gg.blackFilterInLighRoom] = 1;
i[ii.blackFilter] = 0;
rootObj.setHand();
rootObj.callMessage("You placed the BLACK LIGHT FILTER into the LIGHT SOURCE", 2);
} else {
if (rootObj.heldItem == "redFilter"){
i[ii.blackFilter] = ((g[gg.blackFilterInLighRoom] == 1)) ? 1 : i[ii.blackFilter];
g[gg.redFilterInLightRoom] = 1;
g[gg.blackFilterInLighRoom] = 0;
i[ii.redFilter] = 0;
rootObj.setHand();
rootObj.callMessage("You placed the RED LIGHT FILTER into the LIGHT SOURCE", 2);
} else {
if (g[gg.redFilterInLightRoom] == 1){
i[ii.redFilter] = 1;
g[gg.redFilterInLightRoom] = 0;
rootObj.HUD.HUDInner.refreshList();
rootObj.callMessage("You took the RED FILTER from the LIGHT SOURCE");
} else {
if (g[gg.blackFilterInLighRoom] == 1){
i[ii.blackFilter] = 1;
g[gg.blackFilterInLighRoom] = 0;
rootObj.HUD.HUDInner.refreshList();
rootObj.callMessage("You took the BLACK FILTER from the LIGHT SOURCE");
} else {
if (rootObj.heldItem != "hand"){
rootObj.callMessage("Hmmm, this doesn't seem to fit here");
} else {
rootObj.callMessage("WHITE LIGHT is FILTERING out of this slot and is illuminating the WHOLE room... and It looks like something slides in here.", 2);
};
};
};
};
};
setRussianVisible(((g[gg.blackFilterInLighRoom] == 1)) ? false : true);
cam3.colourFilters.gotoAndStop(((g[gg.redFilterInLightRoom] == 1)) ? 2 : ((g[gg.blackFilterInLighRoom] == 1)) ? 3 : 1);
cam1.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam2.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam3.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam4.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam5.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam6.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam7.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
}
public function startSounds():void{
}
public function initLevel(rObj):void{
var rObj = rObj;
rootObj = rObj;
g = rootObj.itemsAr;
gg = rootObj.itemsObj;
i = rootObj.invAr;
ii = rootObj.invObj;
rootTiles = [[gg.tile00InLightRoom, gg.tile01InLightRoom, gg.tile02InLightRoom], [gg.tile10InLightRoom, gg.tile11InLightRoom, gg.tile12InLightRoom], [gg.tile20InLightRoom, gg.tile21InLightRoom, gg.tile22InLightRoom]];
russianTiles = [[cam6.russian00, cam6.russian01, cam6.russian02], [cam6.russian10, cam6.russian11, cam6.russian12], [cam6.russian20, cam6.russian21, cam6.russian22]];
chineseTiles = [[cam6.chinese00, cam6.chinese01, cam6.chinese02], [cam6.chinese10, cam6.chinese11, cam6.chinese12], [cam6.chinese20, cam6.chinese21, cam6.chinese22]];
setTiles();
rootObj.getRoomState(roomNumber);
rState = rootObj.roomInfo[roomNumber];
cam1.visible = (cam2.visible = (cam3.visible = (cam4.visible = (cam5.visible = (cam6.visible = (cam7.visible = false))))));
if ((g[gg.camNum] == 1)){
cam1.visible = true;
} else {
if ((g[gg.camNum] == 2)){
cam2.visible = true;
} else {
if ((g[gg.camNum] == 3)){
cam3.visible = true;
} else {
if ((g[gg.camNum] == 4)){
cam4.visible = true;
} else {
if ((g[gg.camNum] == 5)){
cam5.visible = true;
} else {
if ((g[gg.camNum] == 6)){
cam6.visible = true;
} else {
cam7.visible = true;
};
};
};
};
};
};
cam1.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam1, cam2, 2);
});
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam1.toELEVATOR.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.elevDoor == 1)){
rootObj.toElevator();
} else {
rootObj.callMessage("Hmmm, it won't open right now...");
};
});
if ((g[gg.gearInLightRoom] == 0)){
cam1.gear.visible = false;
} else {
cam1.gear.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.gearInLightRoom, ii.gear3, "You picked up a GEAR", 1);
});
};
cam1.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam2.toCam1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam1, 1);
});
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("I cannot get over there from here", 1);
});
cam2.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam2.fiberOpticLEFT.alpha = ((rState.leftPower == 1)) ? 1 : 0;
cam2.fiberOpticRIGHT.alpha = ((rState.rightPower == 1)) ? 1 : 0;
cam3.toCam7.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam7, 7);
});
cam3.toCam7.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam7.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam4, 4);
});
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam5, 5);
});
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.powerSwitch.gotoAndStop(((rState.leftPower == 1)) ? 1 : ((rState.rightPower == 1)) ? 3 : 2);
cam3.powerSwitch.addEventListener(MouseEvent.CLICK, powerSwitchFUNC);
cam3.fiberOpticLEFT.alpha = ((rState.leftPower == 1)) ? 1 : 0;
cam3.fiberOpticLEFT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((e.currentTarget.alpha == 0)){
rootObj.callMessage("It seems to be some sort of FIBER OPTIC CABLE connected to the next room", 2);
} else {
rootObj.callMessage("It seems to be some sort of FIBER OPTIC CABLE connected to the next room, and it looks like its ON", 2);
};
});
cam3.fiberOpticRIGHT.alpha = ((rState.rightPower == 1)) ? 1 : 0;
cam3.fiberOpticRIGHT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((e.currentTarget.alpha == 0)){
rootObj.callMessage("It seems to be some sort of FIBER OPTIC CABLE connected to the next room", 2);
} else {
rootObj.callMessage("It seems to be some sort of FIBER OPTIC CABLE connected to the next room, and it looks like its ON", 2);
};
});
cam3.filterSlot.visible = ((((rState.rightPower == 0)) && ((rState.leftPower == 0)))) ? true : false;
if ((g[gg.diamondInLighRoom] == 1)){
cam3.diamond.gotoAndStop(2);
} else {
cam3.diamond.addEventListener(MouseEvent.CLICK, diamondFUNC);
};
cam3.spectrumSwitch.gotoAndStop((g[gg.spectrumSwitch] + 1));
cam3.spectrumSwitch.addEventListener(MouseEvent.CLICK, spectrumSwitchFUNC);
if (g[gg.spectrumSwitch] == 1){
cam3.spectrum.gotoAndStop(((g[gg.diamondInLighRoom] == 1)) ? 3 : 2);
} else {
cam3.spectrum.gotoAndStop(1);
};
cam3.spectrum.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((cam3.spectrum.currentFrame == 2)){
rootObj.callMessage("hmmm... there is WHITE LIGHT pouring through that DIAMOND shaped hole", 2);
} else {
rootObj.callMessage("the DIAMOND is splitting the light into the SPECTRUM... RED, ORANGE, YELLOW, GREEN, BLUE and PURPLE", 2);
};
});
cam3.colourFilters.gotoAndStop(((g[gg.redFilterInLightRoom] == 1)) ? 2 : ((g[gg.blackFilterInLighRoom] == 1)) ? 3 : 1);
cam3.colourFilters.addEventListener(MouseEvent.CLICK, filtersFUNC);
cam3.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam4.toCam6.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam6, 6);
});
cam4.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam3, 3);
});
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.fiberOpticRIGHT.alpha = ((rState.rightPower == 1)) ? 1 : 0;
cam4.fiberOpticRIGHT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((e.currentTarget.alpha == 0)){
rootObj.callMessage("It seems to be some sort of FIBER OPTIC CABLE connected to the next room", 2);
} else {
rootObj.callMessage("It seems to be some sort of FIBER OPTIC CABLE connected to the next room, and it looks like its ON", 2);
};
});
cam4.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam5.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam5, cam3, 3);
});
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.toROOMLEFT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (((!((rState.roomLeft == 0))) && ((rootObj.roomInfo[rState.roomLeft].rightDoor == 2)))){
rootObj.changeRoom(roomNumber, rState.roomLeft, 4);
} else {
if (((!((rState.roomLeft == 0))) && ((rootObj.roomInfo[rState.roomLeft].rightDoor == 1)))){
rootObj.callMessage("It seems to be locked from the other side", 1);
} else {
rootObj.callMessage("Hmmm, it seems to lead nowhere...");
};
};
});
cam5.fiberOpticLEFT.alpha = ((rState.leftPower == 1)) ? 1 : 0;
cam5.fiberOpticCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((e.currentTarget.alpha == 0)){
rootObj.callMessage("It seems to be some sort of FIBER OPTIC CABLE connected to the next room", 2);
} else {
rootObj.callMessage("It seems to be some sort of FIBER OPTIC CABLE connected to the next room, and it looks like its ON", 2);
};
});
cam5.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam5.painting.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(((g[gg.redFilterInLightRoom] == 1)) ? "Hey, the RED LIGHT FILTER has revealed a hidden message! The Pipes in this image are numerically arranged: 1637452" : ((g[gg.blackFilterInLighRoom] == 1)) ? "Hmmm... the arrow seems to be pointing to the RIGHT side of the room." : "Its some sort of abstract painting.. it looks like there is a HIDDEN IMAGE, but I can't seem to make it out. I wonder what it means?", 2);
});
cam6.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam6, cam4, 4);
});
cam6.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
if ((g[gg.tilesInLightRoom] == 9)){
cam6.tileBlocker.visible = false;
} else {
cam6.tileBlocker.addEventListener(MouseEvent.CLICK, addTiles);
};
setRussianVisible(((g[gg.blackFilterInLighRoom] == 1)) ? false : true);
cam6.russian00.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 0, 0);
});
cam6.russian01.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 0, 1);
});
cam6.russian02.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 0, 2);
});
cam6.russian10.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 1, 0);
});
cam6.russian11.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 1, 1);
});
cam6.russian12.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 1, 2);
});
cam6.russian20.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 2, 0);
});
cam6.russian21.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 2, 1);
});
cam6.russian22.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 2, 2);
});
cam6.chinese00.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 0, 0);
});
cam6.chinese01.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 0, 1);
});
cam6.chinese02.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 0, 2);
});
cam6.chinese10.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 1, 0);
});
cam6.chinese11.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 1, 1);
});
cam6.chinese12.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 1, 2);
});
cam6.chinese20.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 2, 0);
});
cam6.chinese21.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 2, 1);
});
cam6.chinese22.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
clickTile(e, 2, 2);
});
cam7.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam7, cam3, 3);
});
cam7.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam7.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam7.toCam1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("Its too far to get over there");
});
if ((g[gg.gearInLightRoom] == 0)){
cam7.gear.visible = false;
} else {
cam7.gear.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("There seems to be something on the floor over there");
});
};
startSounds();
}
private function clickTile(e:MouseEvent, cy:int, cx:int):void{
var tempNum:int;
trace(g[rootTiles[cy][cx]]);
if (clickedY == 10){
clickedY = cy;
clickedX = cx;
e.currentTarget.MO.visible = true;
} else {
tempNum = (g[rootTiles[cy][cx]] + 0);
g[rootTiles[cy][cx]] = (g[rootTiles[clickedY][clickedX]] + 0);
g[rootTiles[clickedY][clickedX]] = (tempNum + 0);
russianTiles[clickedY][clickedX].MO.visible = false;
chineseTiles[clickedY][clickedX].MO.visible = false;
clickedY = 10;
clickedX = 10;
setTiles();
rootObj.playSound("swap");
};
}
private function setTiles():void{
var sx:int;
var sy:int;
while (sy < 3) {
sx = 0;
while (sx < 3) {
russianTiles[sy][sx].gotoAndStop((g[rootTiles[sy][sx]] + 1));
chineseTiles[sy][sx].gotoAndStop((g[rootTiles[sy][sx]] + 1));
sx++;
};
sy++;
};
}
private function powerSwitchFUNC(e:MouseEvent):void{
if (e.currentTarget.currentFrame == 1){
e.currentTarget.gotoAndStop(2);
cam5.fiberOpticLEFT.alpha = 0;
cam2.fiberOpticLEFT.alpha = 0;
cam3.fiberOpticLEFT.alpha = 0;
rootObj.lightInfo.leftPower = 0;
cam3.filterSlot.visible = true;
rootObj.callMessage("You changed the SWITCH to send POWER to the MAIN LIGHT in this room", 2);
} else {
if (e.currentTarget.currentFrame == 2){
e.currentTarget.gotoAndStop(3);
cam4.fiberOpticRIGHT.alpha = 1;
cam2.fiberOpticRIGHT.alpha = 1;
cam3.fiberOpticRIGHT.alpha = 1;
rootObj.lightInfo.rightPower = 1;
cam3.filterSlot.visible = false;
rootObj.callMessage("You changed the SWITCH to send POWER to the FIBER OPTIC CABLE that connects to the room to the RIGHT", 2);
} else {
e.currentTarget.gotoAndStop(1);
cam4.fiberOpticRIGHT.alpha = 0;
cam2.fiberOpticRIGHT.alpha = 0;
cam3.fiberOpticRIGHT.alpha = 0;
cam5.fiberOpticLEFT.alpha = 1;
cam2.fiberOpticLEFT.alpha = 1;
cam3.fiberOpticLEFT.alpha = 1;
rootObj.lightInfo.rightPower = 0;
rootObj.lightInfo.leftPower = 1;
cam3.filterSlot.visible = false;
rootObj.callMessage("You changed the SWITCH to send POWER to the FIBER OPTIC CABLE that connects to the room to the LEFT", 2);
};
};
rootObj.playSound("switch");
cam1.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam2.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam3.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam4.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam5.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam6.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
cam7.BGGlow.gotoAndStop(((((((g[gg.redFilterInLightRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 2 : ((((((g[gg.blackFilterInLighRoom] == 1)) && ((rState.leftPower == 0)))) && ((rState.rightPower == 0)))) ? 3 : 1);
}
private function setRussianVisible(vis:Boolean):void{
cam6.russian00.visible = vis;
cam6.russian01.visible = vis;
cam6.russian02.visible = vis;
cam6.russian10.visible = vis;
cam6.russian11.visible = vis;
cam6.russian12.visible = vis;
cam6.russian20.visible = vis;
cam6.russian21.visible = vis;
cam6.russian22.visible = vis;
}
public function stopSounds():void{
}
private function addTiles(e:MouseEvent):void{
if (rootObj.heldItem == "tile1"){
g[gg.tile01InLightRoom] = 7;
g[gg.tilesInLightRoom] = (g[gg.tilesInLightRoom] + 1);
i[ii.tile1] = 0;
rootObj.callMessage("You placed a TILE into the puzzle");
rootObj.setHand();
rootObj.playSound("placeItem");
} else {
if (rootObj.heldItem == "tile2"){
g[gg.tile10InLightRoom] = 2;
g[gg.tilesInLightRoom] = (g[gg.tilesInLightRoom] + 1);
i[ii.tile2] = 0;
rootObj.callMessage("You placed a TILE into the puzzle");
rootObj.setHand();
rootObj.playSound("placeItem");
} else {
if (rootObj.heldItem == "tile3"){
g[gg.tile12InLightRoom] = 9;
g[gg.tilesInLightRoom] = (g[gg.tilesInLightRoom] + 1);
i[ii.tile3] = 0;
rootObj.callMessage("You placed a TILE into the puzzle");
rootObj.setHand();
rootObj.playSound("placeItem");
} else {
if (rootObj.heldItem == "tile4"){
g[gg.tile21InLightRoom] = 1;
g[gg.tilesInLightRoom] = (g[gg.tilesInLightRoom] + 1);
i[ii.tile4] = 0;
rootObj.callMessage("You placed a TILE into the puzzle");
rootObj.setHand();
rootObj.playSound("placeItem");
} else {
if (rootObj.heldItem != "hand"){
rootObj.callMessage("Hmmm, this doesn't seem to fit in here");
} else {
rootObj.callMessage("I don't think I can operate this until ALL of the TILES are in place.", 2);
};
};
};
};
};
setTiles();
e.currentTarget.visible = ((g[gg.tilesInLightRoom] == 9)) ? false : true;
}
public function fadeSounds():void{
}
}
}//package
Section 212
//menuMusic (menuMusic)
package {
import flash.media.*;
public dynamic class menuMusic extends Sound {
}
}//package
Section 213
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(parent:Sprite, tag:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var self:MochiBot = new (MochiBot);
parent.addChild(self);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var server:String = "http://core.mochibot.com/my/core.swf";
var lv:URLVariables = new URLVariables();
lv["sb"] = Security.sandboxType;
lv["v"] = Capabilities.version;
lv["swfid"] = tag;
lv["mv"] = "8";
lv["fv"] = "9";
var url:String = self.root.loaderInfo.loaderURL;
if (url.indexOf("http") == 0){
lv["url"] = url;
} else {
lv["url"] = "local";
};
var req:URLRequest = new URLRequest(server);
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
var loader:Loader = new Loader();
self.addChild(loader);
loader.load(req);
return (self);
}
}
}//package
Section 214
//OfficeRoom (OfficeRoom)
package {
import flash.display.*;
import flash.events.*;
public class OfficeRoom extends MovieClip {
public var cam1:MovieClip;
public var cam2:MovieClip;
public var cam4:MovieClip;
public var cam6:MovieClip;
public var cam3:MovieClip;
public var cam5:MovieClip;
public var roomNumber:int;
public var gg:Object;
public var g:Array;
public var i:Array;
public var ii:Object;
public var rootObj:Object;
public var tPassword:Array;
public var fiberPower:int;// = 0
public var rState:Object;
public function OfficeRoom(rNum:int):void{
tPassword = new Array();
super();
roomNumber = rNum;
}
private function checkPass(e:MouseEvent):void{
switch (tPassword.toString()){
case "E,E,Y,K,V":
if (fiberPower == 1){
cam6.passwords.passMessages.gotoAndStop(2);
g[gg.roomControl1] = 1;
setInfo();
};
break;
case "E,K,U,F,M":
if (fiberPower == 1){
cam6.passwords.passMessages.gotoAndStop(4);
g[gg.roomControl3] = 1;
g[gg.roomControl4] = 1;
setInfo();
};
break;
case "W,I,N,D":
case "E,Y,Z,K,Q":
if (fiberPower == 1){
cam6.passwords.passMessages.gotoAndStop(1);
cam6.passwords.visible = false;
cam6.proverbs.provMessages.gotoAndStop(1);
cam6.proverbs.visible = true;
rootObj.callmessage("hmm... I wonder what it means?");
setInfo();
};
break;
case "X,B,P,L,W":
if (fiberPower == 1){
cam6.passwords.passMessages.gotoAndStop(1);
cam6.passwords.visible = false;
cam6.proverbs.provMessages.gotoAndStop(2);
cam6.proverbs.visible = true;
rootObj.callMessage("hmmm... this one is an ENGLISH Proverb...");
setInfo();
};
break;
case "L,E,A,R,N":
if (fiberPower == 0){
cam6.passwords.passMessages.gotoAndStop(6);
g[gg.roomControl5] = 1;
setInfo();
};
break;
case "V,W,S,K":
if (fiberPower == 2){
cam6.passwords.passMessages.gotoAndStop(1);
cam6.passwords.visible = false;
cam6.proverbs.provMessages.gotoAndStop(3);
cam6.proverbs.visible = true;
rootObj.callMessage("hmmm... do I use these two PROVERBs together in some way? What do they have in common?...", 2);
setInfo();
};
break;
case "W":
if (fiberPower == 2){
cam6.passwords.passMessages.gotoAndStop(3);
g[gg.roomControl2] = 1;
rootObj.playSound("boom");
setInfo();
};
break;
default:
cam6.passwords.passMessages.gotoAndStop(7);
break;
};
cam6.passwords.passBOX.text = "";
tPassword = new Array();
}
public function initLevel(rObj):void{
var rObj = rObj;
rootObj = rObj;
g = rootObj.itemsAr;
gg = rootObj.itemsObj;
i = rootObj.invAr;
ii = rootObj.invObj;
rootObj.getRoomState(roomNumber);
rState = rootObj.roomInfo[roomNumber];
cam1.visible = ((g[gg.camNum] == 1)) ? true : false;
cam2.visible = ((g[gg.camNum] == 2)) ? true : false;
cam3.visible = ((g[gg.camNum] == 3)) ? true : false;
cam4.visible = ((g[gg.camNum] == 4)) ? true : false;
cam5.visible = ((g[gg.camNum] == 5)) ? true : false;
cam6.visible = ((g[gg.camNum] == 6)) ? true : false;
cam1.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam1, cam2, 2);
});
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam1.toELEVATOR.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.elevDoor == 1)){
rootObj.toElevator();
} else {
rootObj.callMessage("Hmmm, it won't open right now...");
};
});
cam2.toCam1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam1, 1);
});
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam3, 3);
});
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.fiberOpticLEFT.visible = ((((rState.roomLeft == 4)) && ((rootObj.lightInfo.rightPower == 1)))) ? true : false;
cam2.fiberOpticRIGHT.visible = ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))) ? true : false;
cam2.waterCan.visible = ((g[gg.waterCanInOffice] == 0)) ? false : true;
cam2.picture.gotoAndStop(((g[gg.officePictureOnWall] == 0)) ? 2 : 1);
cam2.chineseFLAG.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("Its a CHINESE FLAG");
});
cam2.russianFLAG.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("Its a RUSSIAN FLAG");
});
cam3.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam2, 2);
});
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam4, 4);
});
cam3.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam5, 5);
});
cam3.toCam6.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam6, 6);
initComputer();
setInfo();
});
cam3.toCam6.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam6.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.fiberOpticLEFT.visible = ((((rState.roomLeft == 4)) && ((rootObj.lightInfo.rightPower == 1)))) ? true : false;
cam3.fiberOpticRIGHT.visible = ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))) ? true : false;
cam3.fiberOpticLEFTCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(((fiberPower == 1)) ? "The LEFT Fiber Optic Cable is active... and there is a glowing RUSSIAN Flag here..." : "It looks like this desk is connected by some fiber optic cables to the left and right walls... I wonder what they connect to?", 2);
});
cam3.fiberOpticRIGHTCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(((fiberPower == 2)) ? "The RIGHT Fiber Optic Cable is active... and there is a glowing CHINESE Flag here..." : "It looks like this desk is connected by some fiber optic cables to the left and right walls... I wonder what they connect to?", 2);
});
cam3.fern.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("Its just a fern");
});
cam3.lamp.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("This desk lamp is of no use");
});
if ((g[gg.waterCanInOffice] == 0)){
cam3.waterCan.visible = false;
} else {
cam3.waterCan.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam2.waterCan.visible = false;
rootObj.pickUpItem(e, gg.waterCanInOffice, ii.waterCanFull, "You picked up the WATERING CAN", 1);
});
};
if ((g[gg.timeKeyInOffice] == 0)){
cam3.timeKEY.visible = false;
} else {
cam3.timeKEY.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.timeKeyInOffice, ii.timeKey, "You picked up the TIME KEY", 1);
});
};
cam3.picture.gotoAndStop(((g[gg.monkeyPuzzleSolved] == 1)) ? 10 : 1);
cam3.picture.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((cam3.picture.currentFrame == 1)){
rootObj.callMessage("\"Primate Family Tree\"... Its a painting of a tree with a DIAMOND casting light down around it. I wonder what it means", 2);
//unresolved jump
};
});
cam3.monkeyPicture1.gotoAndStop((g[gg.monkeyPicture1] + 1));
cam3.monkeyPicture2.gotoAndStop((g[gg.monkeyPicture2] + 1));
cam3.monkeyPicture3.gotoAndStop((g[gg.monkeyPicture3] + 1));
cam3.monkeyPicture4.gotoAndStop((g[gg.monkeyPicture4] + 1));
cam3.monkeyPicture5.gotoAndStop((g[gg.monkeyPicture5] + 1));
cam3.monkeyPicture6.gotoAndStop((g[gg.monkeyPicture6] + 1));
if (g[gg.monkeyPuzzleSolved] == 0){
cam3.monkeyPicture1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pickUpMonkey(e, 1);
});
cam3.monkeyPicture2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pickUpMonkey(e, 2);
});
cam3.monkeyPicture3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pickUpMonkey(e, 3);
});
cam3.monkeyPicture4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pickUpMonkey(e, 4);
});
cam3.monkeyPicture5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pickUpMonkey(e, 5);
});
cam3.monkeyPicture6.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pickUpMonkey(e, 6);
});
};
if ((g[gg.goldStatueInOffice] == 0)){
cam3.goldStatue.visible = false;
} else {
cam3.goldStatue.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.goldStatueInOffice, ii.goldStatue, "You picked up the GOLD STATUE", 1);
cam6.goldStatue.visible = false;
});
};
cam4.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam3, 3);
});
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.topDrawer.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((g[gg.topRightDrawerLocked] == 1)){
rootObj.unlockItem(e, gg.topRightDrawerLocked, ii.copperKey, "Its locked with a COPPER lock");
} else {
topRightDrawer(e);
};
cam4.topDrawer.visible = true;
});
cam4.gear.visible = false;
cam4.gear.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.gearInOffice, ii.gear1, "You picked up a GEAR", 1);
});
cam4.botDrawer.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
botRightDrawer(e);
});
cam4.statuePART.visible = false;
cam4.statuePART.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.statuePartInOffice, ii.statuePart, "You picked up the WOODEN STATUE Part", 1);
});
cam5.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam5, cam3, 3);
});
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.topDrawer.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((g[gg.topLeftDrawerLocked] == 1)){
rootObj.unlockItem(e, gg.topLeftDrawerLocked, ii.goldKey, "Its locked with a GOLD lock");
} else {
topLeftDrawer(e);
};
cam5.topDrawer.visible = true;
});
cam5.fireKey.visible = false;
cam5.fireKey.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.fireKeyInOffice, ii.fireKey, "You picked up the FIRE KEY", 1);
});
cam5.botDrawer.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((g[gg.botLeftDrawerLocked] == 1)){
rootObj.unlockItem(e, gg.botLeftDrawerLocked, ii.platinumKey, "Its locked with a PLATINUM lock");
} else {
botLeftDrawer(e);
};
cam5.botDrawer.visible = true;
});
cam5.tongs.visible = false;
cam5.tongs.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.tongsInOffice, ii.tongs, "You picked up the INDUSTRIAL TONGS", 1);
});
cam5.tile.visible = false;
cam5.tile.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.tileInOffice, ii.tile2, "You picked up a TILE PIECE", 1);
});
initComputer();
cam6.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam6, cam3, 3);
});
cam6.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
if ((g[gg.goldStatueInOffice] == 0)){
cam6.goldStatue.visible = false;
} else {
cam6.goldStatue.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.goldStatueInOffice, ii.goldStatue, "You picked up the GOLD STATUE", 1);
cam3.goldStatue.visible = false;
});
};
cam6.fiberOpticLEFTCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(((fiberPower == 1)) ? "The LEFT Fiber Optic Cable is active... and there is a glowing RUSSIAN Flag here..." : "Hmm, it looks like this desk is connected to some fiber optic cables at the top.", 2);
});
cam6.fiberOpticRIGHTCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(((fiberPower == 2)) ? "The RIGHT Fiber Optic Cable is active... and there is a glowing CHINESE Flag here..." : "Hmm, it looks like this desk is connected to some fiber optic cables at the top.", 2);
});
cam6.mainPage.roomContBUT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.mainPage.visible = false;
cam6.roomControl.visible = true;
});
cam6.mainPage.roomContBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.mainPage.roomContBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam6.mainPage.passwordBUT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.mainPage.visible = false;
cam6.passwords.visible = true;
});
cam6.mainPage.passwordBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.mainPage.passwordBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam6.roomControl.backBUT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.mainPage.visible = true;
cam6.roomControl.visible = false;
});
cam6.roomControl.backBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.roomControl.backBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam6.roomControl.instructionsBUT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.instructions.visible = true;
cam6.roomControl.visible = false;
});
cam6.roomControl.instructionsBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.roomControl.instructionsBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam6.roomControl.ttl.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 1, 0);
});
cam6.roomControl.ttr.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 1, 1);
});
cam6.roomControl.tbr.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 1, 2);
});
cam6.roomControl.tbl.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 1, 3);
});
cam6.roomControl.btl.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 0, 0);
});
cam6.roomControl.btr.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 0, 1);
});
cam6.roomControl.bbr.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 0, 2);
});
cam6.roomControl.bbl.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
moveRoom(e, 0, 3);
});
cam6.passwords.backBUT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
initComputer();
cam6.mainPage.visible = true;
cam6.passwords.visible = false;
});
cam6.passwords.backBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.passwords.backBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam6.passwords.keyA.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("A");
});
cam6.passwords.keyB.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("B");
});
cam6.passwords.keyD.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("D");
});
cam6.passwords.keyE.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("E");
});
cam6.passwords.keyF.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("F");
});
cam6.passwords.keyI.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("I");
});
cam6.passwords.keyK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("K");
});
cam6.passwords.keyL.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("L");
});
cam6.passwords.keyM.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("M");
});
cam6.passwords.keyN.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("N");
});
cam6.passwords.keyP.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("P");
});
cam6.passwords.keyQ.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("Q");
});
cam6.passwords.keyR.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("R");
});
cam6.passwords.keyREST.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("REST");
});
cam6.passwords.keyS.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("S");
});
cam6.passwords.keyU.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("U");
});
cam6.passwords.keyV.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("V");
});
cam6.passwords.keyW.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("W");
});
cam6.passwords.keyX.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("X");
});
cam6.passwords.keyY.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("Y");
});
cam6.passwords.keyZ.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
pressKey("Z");
});
cam6.passwords.keyENTER.addEventListener(MouseEvent.CLICK, checkPass);
cam6.passwords.keyBACK.addEventListener(MouseEvent.CLICK, eraseKey);
cam6.instructions.backBUT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.roomControl.visible = true;
cam6.instructions.visible = false;
});
cam6.instructions.backBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.instructions.backBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam6.proverbs.backBUT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.passwords.visible = true;
cam6.proverbs.visible = false;
});
cam6.proverbs.backBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.proverbs.backBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
startSounds();
}
private function pickUpMonkey(e:MouseEvent, mSlot:int):void{
var cFrame:*;
var heldMonkey:Boolean;
var monkeyNum:int;
if (g[gg.monkeyPuzzleSolved] == 0){
cFrame = (e.currentTarget.currentFrame - 1);
if (cFrame == 0){
heldMonkey = true;
monkeyNum = 0;
if (rootObj.heldItem == "monkeyRED"){
i[ii.monkeyRED] = 0;
monkeyNum = 1;
e.currentTarget.gotoAndStop(2);
} else {
if (rootObj.heldItem == "monkeyORANGE"){
i[ii.monkeyORANGE] = 0;
monkeyNum = 2;
e.currentTarget.gotoAndStop(3);
} else {
if (rootObj.heldItem == "monkeyYELLOW"){
i[ii.monkeyYELLOW] = 0;
monkeyNum = 3;
e.currentTarget.gotoAndStop(4);
} else {
if (rootObj.heldItem == "monkeyGREEN"){
i[ii.monkeyGREEN] = 0;
monkeyNum = 4;
e.currentTarget.gotoAndStop(5);
} else {
if (rootObj.heldItem == "monkeyBLUE"){
i[ii.monkeyBLUE] = 0;
monkeyNum = 5;
e.currentTarget.gotoAndStop(6);
} else {
if (rootObj.heldItem == "monkeyPURPLE"){
i[ii.monkeyPURPLE] = 0;
monkeyNum = 6;
e.currentTarget.gotoAndStop(7);
} else {
if (rootObj.heldItem == "hand"){
rootObj.callMessage("hmmmm, it looks like something can be placed here", 1);
heldMonkey = false;
} else {
rootObj.callMessage("hmmmm, this doesn't seem to go here", 1);
heldMonkey = false;
};
};
};
};
};
};
};
if (heldMonkey == true){
switch (mSlot){
case 1:
g[gg.monkeyPicture1] = monkeyNum;
break;
case 2:
g[gg.monkeyPicture2] = monkeyNum;
break;
case 3:
g[gg.monkeyPicture3] = monkeyNum;
break;
case 4:
g[gg.monkeyPicture4] = monkeyNum;
break;
case 5:
g[gg.monkeyPicture5] = monkeyNum;
break;
case 6:
g[gg.monkeyPicture6] = monkeyNum;
break;
};
rootObj.setHand();
rootObj.playSound("placeItem");
monkeyPuzzleSolved();
};
} else {
e.currentTarget.gotoAndStop(1);
switch (cFrame){
case 1:
i[ii.monkeyRED] = 1;
rootObj.callMessage("You picked up the RED COLOBUS Picture", 1);
break;
case 2:
i[ii.monkeyORANGE] = 1;
rootObj.callMessage("You picked up the ORANGUTAN Picture", 1);
break;
case 3:
i[ii.monkeyYELLOW] = 1;
rootObj.callMessage("You picked up the YELLOW-TAILED MONKEY Picture", 1);
break;
case 4:
i[ii.monkeyGREEN] = 1;
rootObj.callMessage("You picked up the OLIVE COLOBUS Picture", 1);
break;
case 5:
i[ii.monkeyBLUE] = 1;
rootObj.callMessage("You picked up the BLUE DIADEMED MONKEY Picture", 1);
break;
case 6:
i[ii.monkeyPURPLE] = 1;
rootObj.callMessage("You picked up the PURPLE-FACED LANGUR Picture", 1);
break;
};
switch (mSlot){
case 1:
g[gg.monkeyPicture1] = 0;
break;
case 2:
g[gg.monkeyPicture2] = 0;
break;
case 3:
g[gg.monkeyPicture3] = 0;
break;
case 4:
g[gg.monkeyPicture4] = 0;
break;
case 5:
g[gg.monkeyPicture5] = 0;
break;
case 6:
g[gg.monkeyPicture6] = 0;
break;
};
rootObj.HUD.HUDInner.refreshList();
rootObj.playSound("pickUp");
};
};
}
private function botLeftDrawer(e:MouseEvent):void{
var cFrame:int = e.currentTarget.currentFrame;
if (cFrame == 1){
e.currentTarget.gotoAndStop(2);
cam5.tongs.visible = ((g[gg.tongsInOffice] == 1)) ? true : false;
cam5.tile.visible = ((g[gg.tileInOffice] == 1)) ? true : false;
} else {
e.currentTarget.gotoAndStop(1);
cam5.tongs.visible = false;
cam5.tile.visible = false;
};
rootObj.playSound("drawer");
}
private function eraseKey(e:MouseEvent):void{
tPassword.pop();
cam6.passwords.passBOX.text = "";
var rr:int;
while (rr < tPassword.length) {
cam6.passwords.passBOX.text = (cam6.passwords.passBOX.text + "*");
rr++;
};
}
private function initComputer():void{
cam6.proverbs.visible = false;
cam6.instructions.visible = false;
cam6.passwords.visible = false;
cam6.passwords.passBOX.text = "";
tPassword = new Array();
cam6.passwords.passMessages.gotoAndStop(1);
cam6.roomControl.visible = false;
cam6.mainPage.visible = true;
cam6.passwords.passMessages.gotoAndStop(1);
setInfo();
}
private function moveRoom(e:MouseEvent, yPos:int, xPos:int):void{
var rRight:int;
var rLeft:int;
var otherY:int = ((yPos == 0)) ? 1 : 0;
if (e.currentTarget.currentFrame == 1){
if (g[gg.roomControl5] == 1){
} else {
rootObj.callMessage("You do NOT have VERTICAL ROOM CONTROL");
};
} else {
if ((((g[gg.roomControl5] == 1)) && ((rootObj.roomPositions[otherY][xPos] == 0)))){
rootObj.roomPositions[otherY][xPos] = (rootObj.roomPositions[yPos][xPos] + 0);
rootObj.roomPositions[yPos][xPos] = 0;
} else {
rRight = (((xPos + 1) == 4)) ? 0 : (xPos + 1);
rLeft = (((xPos - 1) == -1)) ? 3 : (xPos - 1);
if (yPos == 0){
if (rootObj.roomPositions[yPos][rLeft] == 0){
if (g[gg.roomControl3] == 1){
rootObj.roomPositions[yPos][rLeft] = (rootObj.roomPositions[yPos][xPos] + 0);
rootObj.roomPositions[yPos][xPos] = 0;
} else {
rootObj.callMessage("You do NOT have LEVEL 1 ROOM CONTROL");
};
} else {
if (rootObj.roomPositions[yPos][rRight] == 0){
if (g[gg.roomControl3] == 1){
rootObj.roomPositions[yPos][rRight] = (rootObj.roomPositions[yPos][xPos] + 0);
rootObj.roomPositions[yPos][xPos] = 0;
} else {
rootObj.callMessage("You do NOT have LEVEL 1 ROOM CONTROL");
};
} else {
if (g[gg.roomControl3] != 1){
rootObj.callMessage("You do NOT have LEVEL 1 ROOM CONTROL");
};
};
};
} else {
if (rootObj.roomPositions[yPos][rLeft] == 0){
if (g[gg.roomControl4] == 1){
rootObj.roomPositions[yPos][rLeft] = (rootObj.roomPositions[yPos][xPos] + 0);
rootObj.roomPositions[yPos][xPos] = 0;
} else {
rootObj.callMessage("You do NOT have LEVEL 2 ROOM CONTROL");
};
} else {
if (rootObj.roomPositions[yPos][rRight] == 0){
if (g[gg.roomControl4] == 1){
rootObj.roomPositions[yPos][rRight] = (rootObj.roomPositions[yPos][xPos] + 0);
rootObj.roomPositions[yPos][xPos] = 0;
} else {
rootObj.callMessage("You do NOT have LEVEL 2 ROOM CONTROL");
};
} else {
if (g[gg.roomControl4] != 1){
rootObj.callMessage("You do NOT have LEVEL 2 ROOM CONTROL");
};
};
};
};
};
};
setInfo();
}
private function topLeftDrawer(e:MouseEvent):void{
var cFrame:int = e.currentTarget.currentFrame;
if (cFrame == 1){
e.currentTarget.gotoAndStop(2);
cam5.fireKey.visible = ((g[gg.fireKeyInOffice] == 1)) ? true : false;
} else {
e.currentTarget.gotoAndStop(1);
cam5.fireKey.visible = false;
};
rootObj.playSound("drawer");
}
private function monkeyPuzzleSolved():void{
trace((((((("monkey pics: " + g[gg.monkeyPicture1]) + g[gg.monkeyPicture2]) + g[gg.monkeyPicture3]) + g[gg.monkeyPicture4]) + g[gg.monkeyPicture5]) + g[gg.monkeyPicture6]));
if ((((((((((((g[gg.monkeyPicture1] == 1)) && ((g[gg.monkeyPicture2] == 2)))) && ((g[gg.monkeyPicture3] == 3)))) && ((g[gg.monkeyPicture4] == 4)))) && ((g[gg.monkeyPicture5] == 5)))) && ((g[gg.monkeyPicture6] == 6)))){
g[gg.monkeyPuzzleSolved] = 1;
cam2.picture.gotoAndStop(2);
cam3.picture.gotoAndPlay(2);
};
}
private function topRightDrawer(e:MouseEvent):void{
var cFrame:int = e.currentTarget.currentFrame;
if (cFrame == 1){
e.currentTarget.gotoAndStop(2);
cam4.gear.visible = ((g[gg.gearInOffice] == 1)) ? true : false;
} else {
e.currentTarget.gotoAndStop(1);
cam4.gear.visible = false;
};
rootObj.playSound("drawer");
}
private function pressKey(wKey:String):void{
var r:int;
if (tPassword.length < 5){
tPassword[tPassword.length] = wKey;
cam6.passwords.passBOX.text = "";
r = 0;
while (r < tPassword.length) {
cam6.passwords.passBOX.text = (cam6.passwords.passBOX.text + "*");
r++;
};
};
}
private function botRightDrawer(e:MouseEvent):void{
var cFrame:int = e.currentTarget.currentFrame;
if (cFrame == 1){
e.currentTarget.gotoAndStop(2);
cam4.statuePART.visible = ((g[gg.statuePartInOffice] == 1)) ? true : false;
} else {
e.currentTarget.gotoAndStop(1);
cam4.statuePART.visible = false;
};
rootObj.playSound("drawer");
}
public function startSounds():void{
}
public function stopSounds():void{
}
private function setInfo():void{
rootObj.getRoomState(2);
rootObj.getRoomState(3);
rootObj.getRoomState(4);
rootObj.getRoomState(5);
rootObj.getRoomState(6);
rootObj.getRoomState(7);
rootObj.getRoomState(8);
var floorNum:int;
floorNum = ((rootObj.roomPositions[1][0] == roomNumber)) ? 1 : floorNum;
floorNum = ((rootObj.roomPositions[1][1] == roomNumber)) ? 1 : floorNum;
floorNum = ((rootObj.roomPositions[1][2] == roomNumber)) ? 1 : floorNum;
floorNum = ((rootObj.roomPositions[1][3] == roomNumber)) ? 1 : floorNum;
g[gg.floorNum] = floorNum;
cam6.roomControl.ttl.gotoAndStop(rootObj.roomPositions[1][0]);
cam6.roomControl.ttr.gotoAndStop(rootObj.roomPositions[1][1]);
cam6.roomControl.tbr.gotoAndStop(rootObj.roomPositions[1][2]);
cam6.roomControl.tbl.gotoAndStop(rootObj.roomPositions[1][3]);
cam6.roomControl.btl.gotoAndStop(rootObj.roomPositions[0][0]);
cam6.roomControl.btr.gotoAndStop(rootObj.roomPositions[0][1]);
cam6.roomControl.bbr.gotoAndStop(rootObj.roomPositions[0][2]);
cam6.roomControl.bbl.gotoAndStop(rootObj.roomPositions[0][3]);
cam6.mainPage.granted1.visible = ((g[gg.roomControl1] == 1)) ? true : false;
cam6.mainPage.granted2.visible = ((g[gg.roomControl2] == 1)) ? true : false;
cam6.mainPage.granted3.visible = ((g[gg.roomControl3] == 1)) ? true : false;
cam6.mainPage.granted4.visible = ((g[gg.roomControl4] == 1)) ? true : false;
cam6.mainPage.granted5.visible = ((g[gg.roomControl5] == 1)) ? true : false;
cam6.roomControl.granted3.visible = ((g[gg.roomControl3] == 1)) ? true : false;
cam6.roomControl.granted4.visible = ((g[gg.roomControl4] == 1)) ? true : false;
cam6.roomControl.granted5.visible = ((g[gg.roomControl5] == 1)) ? true : false;
cam6.fiberOpticLEFT.visible = ((((rState.roomLeft == 4)) && ((rootObj.lightInfo.rightPower == 1)))) ? true : false;
cam6.fiberOpticRIGHT.visible = ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))) ? true : false;
cam3.fiberOpticLEFT.visible = ((((rState.roomLeft == 4)) && ((rootObj.lightInfo.rightPower == 1)))) ? true : false;
cam3.fiberOpticRIGHT.visible = ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))) ? true : false;
cam2.fiberOpticLEFT.visible = ((((rState.roomLeft == 4)) && ((rootObj.lightInfo.rightPower == 1)))) ? true : false;
cam2.fiberOpticRIGHT.visible = ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))) ? true : false;
fiberPower = ((((rState.roomLeft == 4)) && ((rootObj.lightInfo.rightPower == 1)))) ? 1 : ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))) ? 2 : 0;
cam6.passwords.keyboard.gotoAndStop(((((rState.roomLeft == 4)) && ((rootObj.lightInfo.rightPower == 1)))) ? 2 : ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))) ? 3 : 1);
}
public function fadeSounds():void{
}
}
}//package
Section 215
//Opening (Opening)
package {
import flash.display.*;
import flash.events.*;
public class Opening extends MovieClip {
public var skipBUT:MovieClip;
public var cam2:MovieClip;
public var cam4:MovieClip;
public var cam6:MovieClip;
public var cam7:MovieClip;
public var cam8:MovieClip;
public var cam5:MovieClip;
public var prevBUT:MovieClip;
public var cam1:MovieClip;
public var cam3:MovieClip;
public var nextBUT:MovieClip;
public var gg:Object;
public var roomNumber:int;
public var g:Array;
public var i:Array;
public var ii:Object;
public var rootObj:Object;
public var camNum:int;// = 1
public function Opening(rNum:int):void{
super();
roomNumber = rNum;
}
public function initLevel(rObj):void{
rootObj = rObj;
g = rootObj.itemsAr;
gg = rootObj.itemsObj;
i = rootObj.invAr;
ii = rootObj.invObj;
cam2.visible = (cam3.visible = (cam4.visible = (cam5.visible = (cam6.visible = (cam7.visible = (cam8.visible = false))))));
cam1.visible = true;
prevBUT.visible = false;
nextBUT.addEventListener(MouseEvent.CLICK, nextFUNC);
nextBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
nextBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
prevBUT.addEventListener(MouseEvent.CLICK, nextFUNC);
prevBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
prevBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
skipBUT.addEventListener(MouseEvent.CLICK, nextFUNC);
skipBUT.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
skipBUT.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
startSounds();
}
public function startSounds():void{
}
public function stopSounds():void{
}
public function fadeSounds():void{
if (rootObj.soundOn == true){
rootObj.menuMusic.gotoAndPlay("fadeOUT");
};
}
private function nextFUNC(e:MouseEvent):void{
var curCam:MovieClip = ((camNum == 1)) ? cam1 : ((camNum == 2)) ? cam2 : ((camNum == 3)) ? cam3 : ((camNum == 4)) ? cam4 : ((camNum == 5)) ? cam5 : ((camNum == 6)) ? cam6 : ((camNum == 7)) ? cam7 : cam8;
camNum = ((e.currentTarget == nextBUT)) ? (camNum + 1) : ((e.currentTarget == prevBUT)) ? (camNum - 1) : 9;
camNum = ((camNum < 1)) ? 1 : camNum;
prevBUT.visible = true;
nextBUT.visible = true;
switch (camNum){
case 1:
prevBUT.visible = false;
rootObj.changeCam(curCam, cam1, 1);
break;
case 2:
rootObj.changeCam(curCam, cam2, 2);
break;
case 3:
rootObj.changeCam(curCam, cam3, 3);
break;
case 4:
rootObj.changeCam(curCam, cam4, 4);
break;
case 5:
rootObj.changeCam(curCam, cam5, 5);
break;
case 6:
rootObj.changeCam(curCam, cam6, 6);
break;
case 7:
rootObj.changeCam(curCam, cam7, 7);
break;
case 8:
rootObj.changeCam(curCam, cam8, 8);
break;
case 9:
prevBUT.visible = false;
nextBUT.visible = false;
skipBUT.visible = false;
rootObj.changeRoom(10, 1, 1);
break;
};
}
}
}//package
Section 216
//Rand (Rand)
package {
public class Rand {
public static function getRandom(inRandom:Number):Number{
var rNum:Number = Math.random();
return (Math.floor(((rNum * 100) / (100 / inRandom))));
}
public static function makePos(inPos:Number):Number{
var pNum:Number = ((inPos < 0)) ? (inPos * -1) : inPos;
return (pNum);
}
}
}//package
Section 217
//SandRoom (SandRoom)
package {
import flash.display.*;
import flash.events.*;
public class SandRoom extends MovieClip {
public var cam1:MovieClip;
public var cam2:MovieClip;
public var cam4:MovieClip;
public var cam6:MovieClip;
public var theFreq:int;// = 1
public var cam3:MovieClip;
public var cam5:MovieClip;
public var roomNumber:int;
public var gg:Object;
public var g:Array;
public var i:Array;
public var isStatue:Boolean;// = false
public var ii:Object;
public var rootObj:Object;
public var rState:Object;
public function SandRoom(rNum:int):void{
super();
roomNumber = rNum;
}
private function setFreq(e:MouseEvent):void{
var cNum:int = (e.currentTarget.currentFrame + 1);
cNum = ((cNum == 7)) ? 1 : cNum;
e.currentTarget.gotoAndStop(cNum);
rootObj.playSound("switch");
rootObj.chladniNum = cNum;
cam6.readOut.text = (((cNum == 1)) ? "114.47" : ((cNum == 2)) ? "245.07" : ((cNum == 3)) ? "304.33" : ((cNum == 4)) ? "418.59" : ((cNum == 5)) ? "423.59" : "458.54" + " Hz");
}
private function basketFUNC(e:MouseEvent):void{
if (rootObj.heldItem == "waterCanFull"){
rootObj.mouseCursor.gotoAndStop("waterCan");
rootObj.heldItem = "waterCan";
rootObj.heldNum = (0 + ii.waterCan);
i[ii.waterCanFull] = 0;
i[ii.waterCan] = 1;
rootObj.HUD.HUDInner.refreshList();
rootObj.playSound("pouring");
cam5.pouringWATER.gotoAndPlay(2);
rootObj.callMessage("hmmm... the SCALE BASKET is full of holes... the WATER just pours right through it", 2);
} else {
if (rootObj.heldItem == "sandCan"){
rootObj.mouseCursor.gotoAndStop("waterCan");
rootObj.heldItem = "waterCan";
rootObj.heldNum = (0 + ii.waterCan);
i[ii.sandCan] = 0;
i[ii.waterCan] = 1;
rootObj.HUD.HUDInner.refreshList();
cam5.pouringSAND.gotoAndPlay(2);
rootObj.callMessage("hmmm... the SCALE BASKET is full of holes... the SAND just pours right through it", 2);
} else {
if (rootObj.heldItem == "mudCan"){
rootObj.mouseCursor.gotoAndStop("waterCan");
rootObj.heldItem = "waterCan";
rootObj.heldNum = (0 + ii.waterCan);
i[ii.mudCan] = 0;
i[ii.waterCan] = 1;
rootObj.HUD.HUDInner.refreshList();
g[gg.basketInSandRoom] = (g[gg.basketInSandRoom] + 1);
cam5.basket.gotoAndStop((g[gg.basketInSandRoom] + 1));
if (g[gg.basketInSandRoom] == 5){
rootObj.callMessage("I must have added enough weight. The SCALES have Tipped... the other side must have RAISED.", 2);
cam5.balance.visible = true;
cam5.balanceCLICK.visible = true;
cam5.chain.visible = false;
cam4.balance.visible = true;
cam4.sundialPart.visible = true;
cam3.balance.visible = true;
cam2.balance.gotoAndStop(3);
rootObj.playSound("boom");
} else {
if (g[gg.basketInSandRoom] == 2){
rootObj.callMessage("You added some MUD to the BASKET. It doesn't pour through the holes in the BASKET!!", 2);
} else {
rootObj.callMessage("You added MORE MUD to the BASKET.");
};
};
} else {
rootObj.callMessage("I can't budge it... whatever is on the other side of the BALANCE SCALE must be HEAVY. I need to fill this basket with lots of WEIGHT to counter balance it", 2);
};
};
};
}
public function initLevel(rObj):void{
var rObj = rObj;
rootObj = rObj;
g = rootObj.itemsAr;
gg = rootObj.itemsObj;
i = rootObj.invAr;
ii = rootObj.invObj;
rootObj.getRoomState(roomNumber);
rState = rootObj.roomInfo[roomNumber];
g[gg.mudInSandRoom] = ((((rState.roomLeft == 5)) && ((rootObj.iceInfo.roomState >= 2)))) ? 1 : g[gg.mudInSandRoom];
cam1.visible = (cam2.visible = (cam3.visible = (cam4.visible = (cam5.visible = (cam6.visible = false)))));
if ((g[gg.camNum] == 1)){
cam1.visible = true;
} else {
if ((g[gg.camNum] == 2)){
cam2.visible = true;
} else {
if ((g[gg.camNum] == 3)){
cam3.visible = true;
} else {
if ((g[gg.camNum] == 4)){
cam4.visible = true;
} else {
if ((g[gg.camNum] == 5)){
cam5.visible = true;
} else {
cam6.visible = true;
};
};
};
};
};
cam1.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam1, cam2, 2);
});
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam1.toELEVATOR.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (rState.elevDoor == 1){
rootObj.toElevator();
cam6.chladni.gotoAndStop(1);
} else {
rootObj.callMessage("Hmmm, it won't open right now...");
};
});
cam2.toCam1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam1, 1);
});
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam3, 3);
});
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam4, 4);
});
cam2.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam5, 5);
});
cam2.toCam5.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam5.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.mud.visible = ((g[gg.mudInSandRoom] == 1)) ? true : false;
cam2.balance.gotoAndStop(((g[gg.basketInSandRoom] == 0)) ? 1 : ((g[gg.basketInSandRoom] < 4)) ? 2 : 3);
cam3.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam2, 2);
});
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam4, 4);
});
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam5, 5);
});
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.balance.visible = ((g[gg.basketInSandRoom] == 4)) ? true : false;
cam3.statue.addEventListener(MouseEvent.CLICK, sandFUNC);
cam3.mud.visible = ((g[gg.mudInSandRoom] == 1)) ? true : false;
cam4.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam2, 2);
});
cam4.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam3, 3);
});
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.toCam6.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam6, 6);
});
cam4.balance.visible = ((g[gg.basketInSandRoom] == 4)) ? true : false;
cam4.sundialPart.visible = ((((g[gg.basketInSandRoom] == 4)) && ((g[gg.sundialPartInSandRoom] == 1)))) ? true : false;
cam4.sundialPart.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.sundialPartInSandRoom, ii.sundialPart, "You picked up a SUNDIAL PART", 1);
});
cam4.balanceCLICK.gotoAndStop(((g[gg.basketInSandRoom] == 4)) ? 2 : 1);
cam4.balanceCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(((g[gg.basketInSandRoom] == 4)) ? "The BALANCE SCALE has tipped and raised this side to where I can reach it." : "Its too heavy to budge it... I need to tilt the BALANCE SCALE to raise this chain", 2);
});
cam5.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam5, cam2, 2);
});
cam5.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam5, cam3, 3);
});
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.sand.addEventListener(MouseEvent.CLICK, sandFUNC);
if ((g[gg.mudInSandRoom] == 0)){
cam5.mud.visible = false;
} else {
cam5.mud.addEventListener(MouseEvent.CLICK, mudFUNC);
};
cam5.chain.addEventListener(MouseEvent.CLICK, chainFUNC);
cam5.chain.visible = ((g[gg.mudInSandRoom] == 5)) ? false : true;
cam5.balanceCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("You have put enough weight into the basket and the BALANCE beam has lowered. It must have raised on the other side!", 2);
});
cam5.balanceCLICK.visible = ((g[gg.basketInSandRoom] == 5)) ? true : false;
cam5.balance.visible = ((g[gg.basketInSandRoom] == 5)) ? true : false;
cam5.basket.gotoAndStop((g[gg.basketInSandRoom] + 1));
cam5.basket.addEventListener(MouseEvent.CLICK, basketFUNC);
cam5.waterPipe.gotoAndStop(((rState.roomLeft)!=5) ? 1 : (rootObj.iceInfo.roomState + 1));
cam5.waterPipe.addEventListener(MouseEvent.CLICK, waterPipeFUNC);
cam6.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam6, cam4, 4);
});
cam6.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam6.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam6.frequencySelect.visible = false;
cam6.frequencySelect.closer.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.frequencySelect.visible = false;
});
cam6.frequencySelect.set1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.dial.gotoAndStop(1);
rootObj.chladniNum = 1;
cam6.frequencySelect.visible = false;
});
cam6.frequencySelect.set2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.dial.gotoAndStop(2);
rootObj.chladniNum = 2;
cam6.frequencySelect.visible = false;
});
cam6.frequencySelect.set3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.dial.gotoAndStop(3);
rootObj.chladniNum = 3;
cam6.frequencySelect.visible = false;
});
cam6.frequencySelect.set4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.dial.gotoAndStop(4);
rootObj.chladniNum = 4;
cam6.frequencySelect.visible = false;
});
cam6.frequencySelect.set5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.dial.gotoAndStop(5);
rootObj.chladniNum = 5;
cam6.frequencySelect.visible = false;
});
cam6.frequencySelect.set6.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
cam6.dial.gotoAndStop(6);
rootObj.chladniNum = 6;
cam6.frequencySelect.visible = false;
});
rootObj.chladniNum = 1;
cam6.readOut.text = "114.47 Hz";
cam6.dial.addEventListener(MouseEvent.CLICK, setFreq);
cam6.chladni.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("I know what this is... its a CHLADNI Pattern. The plate vibrates at various frequencies and causes the sand on the plate to form different patterns. There are 6 frequencies...", 2);
});
startSounds();
}
private function sandFUNC(e:MouseEvent):void{
if ((((rootObj.heldItem == "waterCanFull")) && ((g[gg.mudInSandRoom] == 0)))){
rootObj.mouseCursor.gotoAndStop("waterCan");
rootObj.heldItem = "waterCan";
rootObj.heldNum = (0 + ii.waterCan);
i[ii.waterCanFull] = 0;
i[ii.waterCan] = 1;
rootObj.HUD.HUDInner.refreshList();
rootObj.playSound("pouring");
rootObj.callMessage("hmmm... seems like it wasn't even enough WATER to make MUD.. it just absorbed into the HUGE pile of SAND", 2);
} else {
if ((((((rootObj.heldItem == "waterCan")) || ((rootObj.heldItem == "mudCan")))) || ((rootObj.heldItem == "waterCanFull")))){
rootObj.mouseCursor.gotoAndStop("sandCan");
rootObj.heldItem = "sandCan";
rootObj.heldNum = (0 + ii.sandCan);
i[ii.waterCan] = (i[ii.waterCanFull] = (i[ii.mudCan] = 0));
i[ii.sandCan] = 1;
rootObj.HUD.HUDInner.refreshList();
rootObj.playSound("swap");
rootObj.callMessage("You filled the CONTAINER with SAND", 1);
} else {
if (isStatue == false){
rootObj.callMessage("There is a HUGE pile of SAND here. I wonder what its for?", 2);
} else {
isStatue = false;
rootObj.callMessage("A GIANT statue sits atop a HUGE Pile of SAND. It holds in its hand a GIANT BALANCE SCALE.", 2);
};
};
};
}
private function chainFUNC(e:MouseEvent):void{
if (rootObj.heldItem == "scaleBasket"){
g[gg.basketInSandRoom] = 1;
cam5.basket.visible = true;
cam5.basket.gotoAndStop(2);
cam2.balance.gotoAndStop(2);
i[ii.scaleBasket] = 0;
rootObj.setHand();
rootObj.callMessage("You attached the SCALE BASKET to the BALANCE SCALE", 2);
} else {
rootObj.callMessage("This chain is attached to the LARGE BALANCE SCALE, but the SCALE BASKET seems to be missing...", 2);
};
}
public function startSounds():void{
}
private function mudFUNC(e:MouseEvent):void{
if (rootObj.heldItem == "waterCanFull"){
rootObj.mouseCursor.gotoAndStop("waterCan");
rootObj.heldItem = "waterCan";
rootObj.heldNum = (0 + ii.waterCan);
i[ii.waterCanFull] = 0;
i[ii.waterCan] = 1;
rootObj.HUD.HUDInner.refreshList();
rootObj.playSound("pouring");
rootObj.callMessage("You poured the WATER out on to the PILE of MUD", 2);
} else {
if (rootObj.heldItem == "sandCan"){
rootObj.mouseCursor.gotoAndStop("waterCan");
rootObj.heldItem = "waterCan";
rootObj.heldNum = (0 + ii.waterCan);
i[ii.sandCan] = 0;
i[ii.waterCan] = 1;
rootObj.HUD.HUDInner.refreshList();
rootObj.callMessage("You poured the SAND out on to the PILE of MUD", 2);
} else {
if (rootObj.heldItem == "waterCan"){
rootObj.mouseCursor.gotoAndStop("mudCan");
rootObj.heldItem = "mudCan";
rootObj.heldNum = (0 + ii.mudCan);
i[ii.waterCan] = 0;
i[ii.mudCan] = 1;
rootObj.HUD.HUDInner.refreshList();
rootObj.callMessage("You filled the EMPTY CONTAINER with MUD", 2);
} else {
rootObj.callMessage("There is a large patch of MUD here in the HUGE pile of SAND. I wonder what its for?", 2);
};
};
};
}
public function stopSounds():void{
}
private function waterPipeFUNC(e:MouseEvent){
if ((((((rState.roomLeft == 5)) && ((rootObj.iceInfo.roomState == 2)))) && ((((((rootObj.heldItem == "waterCan")) || ((rootObj.heldItem == "sandCan")))) || ((rootObj.heldItem == "mudCan")))))){
i[ii.waterCan] = (i[ii.mudCan] = (i[ii.sandCan] = 0));
i[ii.waterCanFull] = 1;
rootObj.mouseCursor.gotoAndStop("waterCanFull");
rootObj.heldItem = "waterCanFull";
rootObj.heldNum = (0 + ii.waterCanFull);
rootObj.HUD.HUDInner.refreshList();
rootObj.callMessage("You filled the CAN with the WATER running from the PIPE.", 2);
} else {
rootObj.callMessage(((rState.roomLeft)!=5) ? "Hmmm.. this looks like the pipes from the ICE ROOM. " : ("Hmmm.. this looks like the pipes from the ICE ROOM. " + ((rootObj.iceInfo.roomState == 1)) ? "There appears to be ICE coming from the pipe." : ((rootObj.iceInfo.roomState == 2)) ? "There is WATER running through the pipe." : "There seems to be STEAM coming from the Pipe"), 2);
};
}
public function fadeSounds():void{
}
}
}//package
Section 218
//TimeRoom (TimeRoom)
package {
import flash.display.*;
import flash.events.*;
public class TimeRoom extends MovieClip {
public var cam1:MovieClip;
public var cam2:MovieClip;
public var cam4:MovieClip;
private var numLightsOn:int;// = 0
public var cam3:MovieClip;
public var cam5:MovieClip;
public var setTime:MovieClip;
public var roomNumber:int;
private var lightPower:Boolean;
private var lightWord:String;// = ""
private var theWord:String;// = ""
private var theClock:String;// = ""
public var gg:Object;
public var tempPipe:int;
public var g:Array;
public var i:Array;
public var ii:Object;
public var rootObj:Object;
public var rState:Object;
public function TimeRoom(rNum:int):void{
super();
roomNumber = rNum;
}
private function setGears():void{
cam2.gear1.visible = ((g[gg.gear1InTimeRoom] == 1)) ? true : false;
cam2.gear2.visible = ((g[gg.gear2InTimeRoom] == 1)) ? true : false;
if ((g[gg.gear1InTimeRoom] == 0)){
cam2.gear2.gotoAndStop(1);
} else {
cam2.gear2.gotoAndPlay(2);
};
cam2.gear3.visible = ((g[gg.gear3InTimeRoom] == 1)) ? true : false;
if ((((g[gg.gear1InTimeRoom] == 0)) || ((g[gg.gear2InTimeRoom] == 0)))){
cam2.gear3.gotoAndStop(1);
} else {
cam2.gear3.gotoAndPlay(2);
};
cam2.gear4.visible = ((g[gg.gear4InTimeRoom] == 1)) ? true : false;
if ((((((g[gg.gear1InTimeRoom] == 0)) || ((g[gg.gear2InTimeRoom] == 0)))) || ((g[gg.gear3InTimeRoom] == 0)))){
cam2.gear4.gotoAndStop(1);
} else {
cam2.gear4.gotoAndPlay(2);
};
cam2.gear5.visible = ((g[gg.gear5InTimeRoom] == 1)) ? true : false;
if ((((((((g[gg.gear1InTimeRoom] == 0)) || ((g[gg.gear2InTimeRoom] == 0)))) || ((g[gg.gear3InTimeRoom] == 0)))) || ((g[gg.gear4InTimeRoom] == 0)))){
cam2.gear5.gotoAndStop(1);
} else {
cam2.gear5.gotoAndPlay(2);
};
cam3.gear1.visible = ((g[gg.gear1InTimeRoom] == 1)) ? true : false;
cam3.gear2.visible = ((g[gg.gear2InTimeRoom] == 1)) ? true : false;
if ((g[gg.gear1InTimeRoom] == 0)){
cam3.gear2.gotoAndStop(1);
} else {
cam3.gear2.gotoAndPlay(2);
};
cam3.gear3.visible = ((g[gg.gear3InTimeRoom] == 1)) ? true : false;
if ((((g[gg.gear1InTimeRoom] == 0)) || ((g[gg.gear2InTimeRoom] == 0)))){
cam3.gear3.gotoAndStop(1);
} else {
cam3.gear3.gotoAndPlay(2);
};
cam3.gear4.visible = ((g[gg.gear4InTimeRoom] == 1)) ? true : false;
if ((((((g[gg.gear1InTimeRoom] == 0)) || ((g[gg.gear2InTimeRoom] == 0)))) || ((g[gg.gear3InTimeRoom] == 0)))){
cam3.gear4.gotoAndStop(1);
} else {
cam3.gear4.gotoAndPlay(2);
};
cam3.gear5.visible = ((g[gg.gear5InTimeRoom] == 1)) ? true : false;
if ((((((((g[gg.gear1InTimeRoom] == 0)) || ((g[gg.gear2InTimeRoom] == 0)))) || ((g[gg.gear3InTimeRoom] == 0)))) || ((g[gg.gear4InTimeRoom] == 0)))){
cam3.gear5.gotoAndStop(1);
} else {
cam3.gear5.gotoAndPlay(2);
};
if ((g[gg.timeClockOn] == 0)){
cam3.gear6.gotoAndStop(1);
} else {
cam3.gear6.gotoAndPlay(2);
};
}
public function initLevel(rObj):void{
var rObj = rObj;
rootObj = rObj;
g = rootObj.itemsAr;
gg = rootObj.itemsObj;
i = rootObj.invAr;
ii = rootObj.invObj;
rootObj.getRoomState(roomNumber);
rState = rootObj.roomInfo[roomNumber];
setTime.visible = false;
setTime.closer.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
setTime.visible = false;
});
setTime.set1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
changeClock(1);
});
setTime.set2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
changeClock(2);
});
setTime.set3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
changeClock(3);
});
setTime.set4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
changeClock(4);
});
setTime.set5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
changeClock(5);
});
setTime.set6.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
changeClock(6);
});
cam1.visible = (cam2.visible = (cam3.visible = (cam4.visible = (cam5.visible = false))));
if ((g[gg.camNum] == 1)){
cam1.visible = true;
} else {
if ((g[gg.camNum] == 2)){
cam2.visible = true;
} else {
if ((g[gg.camNum] == 3)){
cam3.visible = true;
} else {
if ((g[gg.camNum] == 4)){
cam4.visible = true;
} else {
cam5.visible = true;
};
};
};
};
cam1.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam1, cam2, 2);
});
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam1.toELEVATOR.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.elevDoor == 1)){
rootObj.toElevator();
} else {
rootObj.callMessage("Hmmm, it won't open right now...");
};
});
cam1.inscription.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("There seems to be an INSCRIPTION on the floor here", 1);
});
if ((g[gg.epoxyHardenerInTime] == 0)){
cam1.epoxyHardener.visible = false;
} else {
cam1.epoxyHardener.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.epoxyHardenerInTime, ii.epoxyHardener, "You picked up the WATER EPOXY HARDENER", 1);
});
};
cam2.toCam1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam1, 1);
});
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam3, 3);
});
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam4, 4);
});
cam2.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam5, 5);
});
cam2.toCam5.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam5.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam2, 2);
});
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam4, 4);
});
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam5, 5);
});
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
setGears();
cam3.gearBoard.addEventListener(MouseEvent.CLICK, gearFUNC);
if ((((((g[gg.gear1InTimeRoom] == 1)) && ((g[gg.gear2InTimeRoom] == 1)))) && ((g[gg.gear3InTimeRoom] == 1)))){
cam3.largeGear.gotoAndPlay(2);
cam2.largeGear.gotoAndPlay(2);
cam3.tile4.gotoAndStop(2);
} else {
cam3.largeGear.gotoAndStop(1);
cam2.largeGear.gotoAndStop(1);
};
cam3.timeClock.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((g[gg.timeClockOn] > 0)){
setClock("timeClock", 1);
} else {
rootObj.callMessage("Hmmm... It needs to be running before I can set it.", 2);
};
});
if ((g[gg.tileInTimeRoom] == 0)){
cam3.tile4.visible = false;
} else {
cam3.tile4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.tileInTimeRoom, ii.tile4, "You picked up a TILE", 1);
});
};
cam3.sandPattern.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("There is a strange pattern on the pedestal under the HOURGLASS", 2);
});
cam3.timePattern.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("There is a strange pattern on the pedestal under the MAIN CLOCK", 2);
});
cam3.hourGlass.gotoAndStop(((g[gg.hourGlassOn] == 0)) ? 1 : 2);
cam3.hourGlass.addEventListener(MouseEvent.CLICK, hourglassFUNC);
cam3.timeDoor.visible = ((g[gg.timePuzzleOn] == 1)) ? true : false;
cam3.blackFilter.visible = ((((g[gg.timePuzzleOn] == 1)) && ((g[gg.blackFilterInTimeRoom] == 1)))) ? true : false;
cam3.blackFilter.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.blackFilterInTimeRoom, ii.blackFilter, "You picked up the BLACK LIGHT FILTER", 1);
});
cam4.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam2, 2);
});
cam4.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam3, 3);
});
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.firePipe.visible = ((rState.roomRight == 3)) ? true : false;
cam4.firePipeCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (rState.roomRight != 3){
rootObj.callMessage("hmmm... this looks like the PIPES from the FIRE ROOM", 2);
} else {
rootObj.callMessage("hmmm... this looks like the PIPES from the FIRE ROOM. It appears to be ON.", 2);
};
});
g[gg.sundialOn] = ((((rState.roomRight == 3)) && ((g[gg.sundialOn] == 0)))) ? 1 : g[gg.sundialOn];
trace(("the sundial : " + g[gg.sundialOn]));
cam4.candleFlame.visible = ((g[gg.sundialOn] == 0)) ? false : true;
cam4.sundial.visible = ((g[gg.sundialPartInTimeRoom] == 1)) ? true : false;
cam4.sundial.gotoAndStop((g[gg.sundialOn] + 1));
cam4.sundialShadow.gotoAndStop((g[gg.sundialOn] + 1));
cam4.sundial.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((g[gg.sundialOn] > 0)){
setClock("fireClock", 1);
} else {
rootObj.callMessage("Hmmm... there is no FLAME on the candle. Without it I can't set the SUNDIAL.", 2);
};
});
cam4.sundialCLICK.addEventListener(MouseEvent.CLICK, fixSundial);
cam4.sundialCLICK.visible = ((g[gg.sundialPartInTimeRoom] == 1)) ? false : true;
g[gg.lightClockOn] = ((((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))) && ((g[gg.lightClockOn] == 0)))) ? 1 : g[gg.lightClockOn];
cam4.fiberOpticRIGHT.gotoAndStop(((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))) ? 2 : 1);
cam4.fiberOpticRIGHT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((((rState.roomRight == 4)) && ((rootObj.lightInfo.leftPower == 1)))){
rootObj.callMessage("Hmmm... this looks like the FIBER OPTIC CABLES in the LIGHT ROOM. And it appears to be ON", 2);
} else {
rootObj.callMessage("Hmmm... this looks like the FIBER OPTIC CABLES in the LIGHT ROOM.", 2);
};
});
cam4.lightClock.gotoAndStop(((g[gg.lightClockOn] > 0)) ? 2 : 1);
cam4.lightClock.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((g[gg.lightClockOn] > 0)){
setClock("lightClock", 1);
} else {
rootObj.callMessage("Hmmm... there is no DISPLAY on the CLOCK. The batteries appear to be DEAD", 2);
};
});
cam4.lightPattern.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("There is a strange pattern on the pedestal under the DIGITAL CLOCK", 2);
});
cam4.firePattern.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("There is a strange pattern on the pedestal under the SUNDIAL", 2);
});
cam5.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam5, cam2, 2);
});
cam5.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam5, cam3, 3);
});
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.toROOMLEFT.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if (((!((rState.roomLeft == 0))) && ((rootObj.roomInfo[rState.roomLeft].rightDoor == 2)))){
rootObj.changeRoom(roomNumber, rState.roomLeft, 4);
} else {
if (((!((rState.roomLeft == 0))) && ((rootObj.roomInfo[rState.roomLeft].rightDoor == 1)))){
rootObj.callMessage("It seems to be locked from the other side", 1);
} else {
rootObj.callMessage("Hmmm, it seems to lead nowhere...");
};
};
});
cam5.waterPattern.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("There is a strange pattern on the pedestal under the WATER CLOCK", 2);
});
cam5.windPattern.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("There is a strange pattern on the pedestal under the ANEMOMETER", 2);
});
g[gg.waterClockOn] = ((((((rState.roomLeft == 5)) && ((rootObj.iceInfo.roomState >= 2)))) && ((g[gg.waterClockOn] == 0)))) ? 1 : g[gg.waterClockOn];
cam5.waterPipe.gotoAndStop(((rState.roomLeft)!=5) ? 1 : (rootObj.iceInfo.roomState + 1));
cam5.waterPipe.addEventListener(MouseEvent.CLICK, waterPipeFUNC);
cam5.waterClock.gotoAndStop((g[gg.waterClockOn] + 1));
cam5.waterClock.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((g[gg.waterClockOn] > 0)){
setClock("waterClock", 1);
} else {
rootObj.callMessage("Hmmm... there is no running water to operate the WATER CLOCK", 2);
};
});
g[gg.windClockOn] = ((((rState.roomLeft == 6)) && ((g[gg.windClockOn] == 0)))) ? 1 : g[gg.windClockOn];
cam5.windPipe.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(("Hmmm... this looks like the pipes from the WIND ROOM. " + ((rState.roomLeft == 6)) ? "There appears to be WIND coming from the PIPE." : ""), 2);
});
cam5.windClock.gotoAndStop(((g[gg.windClockOn] > 0)) ? 2 : 1);
cam5.windClock.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((g[gg.windClockOn] > 0)){
setClock("windClock", 3);
} else {
rootObj.callMessage("Hmmm... ANEMOMETER isn't spinning. I can't set it's speed.", 2);
};
});
cam5.streamers.gotoAndStop(((rState.roomLeft == 6)) ? 2 : 1);
startSounds();
}
private function gearFUNC(e:MouseEvent):void{
if (rootObj.heldItem == "gear1"){
cam2.gear1.visible = (cam3.gear1.visible = true);
i[ii.gear1] = 0;
g[gg.gear1InTimeRoom] = 1;
rootObj.playSound("placeItem");
rootObj.setHand();
rootObj.callMessage("You placed a GEAR");
} else {
if (rootObj.heldItem == "gear2"){
cam2.gear2.visible = (cam3.gear2.visible = true);
i[ii.gear2] = 0;
g[gg.gear2InTimeRoom] = 1;
rootObj.playSound("placeItem");
rootObj.setHand();
rootObj.callMessage("You placed a GEAR");
} else {
if (rootObj.heldItem == "gear3"){
cam2.gear3.visible = (cam3.gear3.visible = true);
i[ii.gear3] = 0;
g[gg.gear3InTimeRoom] = 1;
rootObj.playSound("placeItem");
rootObj.setHand();
rootObj.callMessage("You placed a GEAR");
} else {
if (rootObj.heldItem == "gear4"){
cam2.gear4.visible = (cam3.gear4.visible = true);
i[ii.gear4] = 0;
g[gg.gear4InTimeRoom] = 1;
rootObj.playSound("placeItem");
rootObj.setHand();
if (g[gg.gear5InTimeRoom] == 1){
rootObj.callMessage("You placed the final GEAR and started the MAIN CLOCK");
g[gg.timeClockOn] = 1;
} else {
rootObj.callMessage("You placed a GEAR");
};
} else {
if (rootObj.heldItem == "gear5"){
cam2.gear5.visible = (cam3.gear5.visible = true);
i[ii.gear5] = 0;
g[gg.gear5InTimeRoom] = 1;
rootObj.playSound("placeItem");
rootObj.setHand();
if (g[gg.gear4InTimeRoom] == 1){
rootObj.callMessage("You placed the final GEAR and started the MAIN CLOCK");
g[gg.timeClockOn] = 1;
} else {
rootObj.callMessage("You placed a GEAR");
};
} else {
if (((!((g[gg.gear5InTimeRoom] == 1))) || (!((g[gg.gear4InTimeRoom] == 1))))){
rootObj.callMessage("There are empty pegs here. I bet I can put clock GEARS on them to complete the TIME ROOM CLOCK", 2);
};
};
};
};
};
};
if ((((((g[gg.gear1InTimeRoom] == 1)) && ((g[gg.gear2InTimeRoom] == 1)))) && ((g[gg.gear3InTimeRoom] == 1)))){
cam3.largeGear.gotoAndPlay(2);
cam2.largeGear.gotoAndPlay(2);
cam3.tile4.gotoAndStop(2);
} else {
cam3.largeGear.gotoAndStop(1);
cam2.largeGear.gotoAndStop(1);
};
setGears();
}
public function stopSounds():void{
}
private function hourglassFUNC(e:MouseEvent):void{
if (g[gg.hourGlassOn] == 0){
if (rootObj.heldItem == "sandCan"){
cam3.hourGlass.gotoAndStop(2);
g[gg.hourGlassOn] = 1;
i[ii.sandCan] = 0;
i[ii.waterCan] = 1;
rootObj.mouseCursor.gotoAndStop("waterCan");
rootObj.heldItem = "waterCan";
rootObj.heldNum = (0 + ii.waterCan);
rootObj.HUD.HUDInner.refreshList();
rootObj.callMessage("I filled the HOURGLASS with SAND. Now I can adjust how much TIME is in it.", 2);
} else {
rootObj.callMessage("There is no SAND in this HOURGLASS. I can't adjust how much TIME is in it", 2);
};
} else {
setClock("hourGlass", 2);
};
}
private function setClock(whichClock:String, sFrame:int):void{
if (g[gg.timePuzzleOn] == 0){
theClock = whichClock;
switch (theClock){
case "timeClock":
setTime.textB.text = (("The TIME CLOCK is currently set to " + ((g[gg.timeClockOn] == 1)) ? "1:14:47" : ((g[gg.timeClockOn] == 2)) ? "2:45:07" : ((g[gg.timeClockOn] == 3)) ? "3:04:33" : ((g[gg.timeClockOn] == 4)) ? "4:18:59" : ((g[gg.timeClockOn] == 5)) ? "4:23:59" : "4:58:54") + ". Would you like to change it to one of the 6 settings?");
break;
case "fireClock":
setTime.textB.text = (("The SUNDIAL is currently set to " + ((g[gg.fireClockOn] == 1)) ? "1:14:47" : ((g[gg.fireClockOn] == 2)) ? "2:45:07" : ((g[gg.fireClockOn] == 3)) ? "3:04:33" : ((g[gg.fireClockOn] == 4)) ? "4:18:59" : ((g[gg.fireClockOn] == 5)) ? "4:23:59" : "4:58:54") + ". Would you like to change it to one of the 6 settings?");
break;
case "lightClock":
setTime.textB.text = (("The DIGITAL CLOCK is currently set to " + ((g[gg.lightClockOn] == 1)) ? "1:14:47" : ((g[gg.lightClockOn] == 2)) ? "2:45:07" : ((g[gg.lightClockOn] == 3)) ? "3:04:33" : ((g[gg.lightClockOn] == 4)) ? "4:18:59" : ((g[gg.lightClockOn] == 5)) ? "4:23:59" : "4:58:54") + ". Would you like to change it to one of the 6 settings?");
break;
case "waterClock":
setTime.textB.text = (("The WATER CLOCK is currently set to " + ((g[gg.waterClockOn] == 1)) ? "1:14:47" : ((g[gg.waterClockOn] == 2)) ? "2:45:07" : ((g[gg.waterClockOn] == 3)) ? "3:04:33" : ((g[gg.waterClockOn] == 4)) ? "4:18:59" : ((g[gg.waterClockOn] == 5)) ? "4:23:59" : "4:58:54") + ". Would you like to change it to one of the 6 settings?");
break;
case "windClock":
setTime.textB.text = (("The ANEMOMETER is currently spinning at " + ((g[gg.windClockOn] == 1)) ? "114.47" : ((g[gg.windClockOn] == 2)) ? "245.07" : ((g[gg.windClockOn] == 3)) ? "304.33" : ((g[gg.windClockOn] == 4)) ? "418.59" : ((g[gg.windClockOn] == 5)) ? "423.59" : "458.54") + "MPH. Would you like to change it to one of the 6 settings?");
break;
case "hourGlass":
setTime.textB.text = (("The HOURGLASS currently has " + ((g[gg.hourGlassOn] == 1)) ? "114.47" : ((g[gg.hourGlassOn] == 2)) ? "245.07" : ((g[gg.hourGlassOn] == 3)) ? "304.33" : ((g[gg.hourGlassOn] == 4)) ? "418.59" : ((g[gg.hourGlassOn] == 5)) ? "423.59" : "458.54") + " seconds of SAND in it. Would you like to change it to one of the 6 settings?");
break;
};
setTime.gotoAndStop(sFrame);
setTime.visible = true;
} else {
rootObj.callMessage("All of the CLOCKS have been set properly already", 2);
};
}
public function startSounds():void{
}
private function changeClock(timeVal:int):void{
setTime.visible = false;
switch (theClock){
case "timeClock":
g[gg.timeClockOn] = timeVal;
cam3.timeClock.gotoAndStop(timeVal);
break;
case "fireClock":
g[gg.fireClockOn] = timeVal;
cam4.sundial.gotoAndStop(timeVal);
cam4.sundialShadow.gotoAndStop(timeVal);
break;
case "lightClock":
g[gg.lightClockOn] = timeVal;
break;
case "waterClock":
g[gg.waterClockOn] = timeVal;
cam5.waterClock.gotoAndStop(timeVal);
break;
case "windClock":
g[gg.windClockOn] = timeVal;
break;
case "hourGlass":
g[gg.hourGlassOn] = timeVal;
break;
};
rootObj.playSound("click");
if ((((((((((((g[gg.timeClockOn] == 5)) && ((g[gg.hourGlassOn] == 1)))) && ((g[gg.fireClockOn] == 6)))) && ((g[gg.lightClockOn] == 4)))) && ((g[gg.waterClockOn] == 2)))) && ((g[gg.windClockOn] == 3)))){
g[gg.timePuzzleOn] = 1;
cam3.timeDoor.visible = true;
cam3.blackFilter.visible = true;
rootObj.playSound("boom");
rootObj.callMessage("Thats it! All of the clocks have been properly set. There was a sound from the direction of the panel where I placed all of the GEARS...", 2);
} else {
rootObj.callMessage("hmmm... Nothing happened. I must have to set ALL 6 CLOCKS properly before something happens.", 2);
};
}
private function fixSundial(e:MouseEvent):void{
if (rootObj.heldItem == "sundialPart"){
g[gg.sundialPartInTimeRoom] = 1;
cam4.sundialCLICK.visible = false;
cam4.sundial.visible = true;
cam4.sundialShadow.gotoAndStop((g[gg.sundialOn] + 1));
i[ii.sundialPart] = 0;
rootObj.callMessage("You fixed the SUNDIAL");
rootObj.setHand();
} else {
rootObj.callMessage("hmmm... it looks like a SUNDIAL, but it seems to be missing a PART. I can't set it without it.", 2);
};
}
private function waterPipeFUNC(e:MouseEvent){
if ((((((rState.roomLeft == 5)) && ((rootObj.iceInfo.roomState == 2)))) && ((((((rootObj.heldItem == "waterCan")) || ((rootObj.heldItem == "sandCan")))) || ((rootObj.heldItem == "mudCan")))))){
i[ii.waterCan] = (i[ii.mudCan] = (i[ii.sandCan] = 0));
i[ii.waterCanFull] = 1;
rootObj.mouseCursor.gotoAndStop("waterCanFull");
rootObj.heldItem = "waterCanFull";
rootObj.heldNum = (0 + ii.waterCanFull);
rootObj.HUD.HUDInner.refreshList();
rootObj.callMessage("You filled the CAN with the WATER running from the PIPE.", 2);
} else {
rootObj.callMessage(((rState.roomLeft)!=5) ? "Hmmm.. this looks like the pipes from the ICE ROOM. " : ("Hmmm.. this looks like the pipes from the ICE ROOM. " + ((rootObj.iceInfo.roomState == 1)) ? "There appears to be ICE coming from the pipe." : ((rootObj.iceInfo.roomState == 2)) ? "There is WATER running through the pipe." : "There seems to be STEAM coming from the Pipe"), 2);
};
}
public function fadeSounds():void{
}
}
}//package
Section 219
//WindRoom (WindRoom)
package {
import flash.display.*;
import flash.events.*;
public class WindRoom extends MovieClip {
public var cam1:MovieClip;
public var cam2:MovieClip;
public var cam3:MovieClip;
public var cam4:MovieClip;
private var numLightsOn:int;// = 0
public var cam5:MovieClip;
public var roomNumber:int;
private var lightPower:Boolean;
private var lightWord:String;// = ""
private var theWord:String;// = ""
public var gg:Object;
public var tempPipe:int;
public var g:Array;
public var i:Array;
public var ii:Object;
public var rootObj:Object;
public var rState:Object;
public function WindRoom(rNum:int):void{
super();
roomNumber = rNum;
}
private function setFanVol(camNum:int):void{
var fVol:Number = 0.1;
switch (camNum){
case 1:
fVol = 0.5;
break;
case 2:
fVol = 0.7;
break;
case 3:
fVol = 0.5;
break;
case 4:
case 5:
case 6:
fVol = 0.7;
break;
};
rootObj.fanVolume = fVol;
rootObj.fanSound.gotoAndPlay(6);
}
public function initLevel(rObj):void{
var rObj = rObj;
rootObj = rObj;
g = rootObj.itemsAr;
gg = rootObj.itemsObj;
i = rootObj.invAr;
ii = rootObj.invObj;
rootObj.getRoomState(roomNumber);
rState = rootObj.roomInfo[roomNumber];
lightPower = ((((rState.roomLeft == 4)) && ((rootObj.lightInfo.rightPower == 1)))) ? true : false;
cam1.visible = (cam2.visible = (cam3.visible = (cam4.visible = (cam5.visible = false))));
if ((g[gg.camNum] == 1)){
cam1.visible = true;
} else {
if ((g[gg.camNum] == 2)){
cam2.visible = true;
} else {
if ((g[gg.camNum] == 3)){
cam3.visible = true;
} else {
if ((g[gg.camNum] == 4)){
cam4.visible = true;
} else {
cam5.visible = true;
};
};
};
};
cam1.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam1, cam2, 2);
setFanVol(g[gg.camNum]);
});
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam1.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam1.toELEVATOR.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
if ((rState.elevDoor == 1)){
rootObj.toElevator();
} else {
rootObj.callMessage("Hmmm, it won't open right now...");
};
});
cam2.toCam1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam1, 1);
setFanVol(g[gg.camNum]);
});
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam1.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam3, 3);
setFanVol(g[gg.camNum]);
});
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam4, 4);
setFanVol(g[gg.camNum]);
});
cam2.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam2, cam5, 5);
setFanVol(g[gg.camNum]);
});
cam2.toCam5.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam2.toCam5.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam2.fiberOpticLEFT.visible = ((((rState.roomLeft == 4)) && ((rootObj.lightInfo.rightPower == 1)))) ? true : false;
cam2.fanCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("There are GIANT FANS blowing air into large PIPES that seem to channel the WIND to the adjoining rooms. I wonder why.", 2);
});
cam3.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam2, 2);
setFanVol(g[gg.camNum]);
});
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam4, 4);
setFanVol(g[gg.camNum]);
});
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam4.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.toCam5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam3, cam5, 5);
setFanVol(g[gg.camNum]);
});
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam3.toCam5.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam3.DCAEGFB.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("Hmmm... the letters D-C-A-E-G-F-B are stenciled here... they seem to be in no particular order", 2);
});
cam3.CAGE.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("hmm... Its a statue of a CAGE... there are some LETTERS and NUMBERS stenciled on the pedestal here", 2);
});
cam3.CAGEDrawer.visible = ((g[gg.CAGESolvedWindRoom] == 1)) ? true : false;
cam3.monkeyRED.visible = ((((g[gg.CAGESolvedWindRoom] == 1)) && ((g[gg.monkeyREDInWindRoom] == 1)))) ? true : false;
cam3.monkeyRED.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.monkeyREDInWindRoom, ii.monkeyRED, "You picked up a picture of a ZANZIBAR RED COLOBUS MONKEY", 2);
});
cam3.instructions.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("Use the letters CADBFEG to spell words by hitting the right keys. You must add each letter before the previous note ends, then wait until the final note finishes", 2);
});
setPipes();
cam3.pipeSwitch1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
swapPipes(gg.pipe1WindRoom, gg.pipe2WindRoom);
});
cam3.pipeSwitch2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
swapPipes(gg.pipe2WindRoom, gg.pipe3WindRoom);
});
cam3.pipeSwitch3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
swapPipes(gg.pipe3WindRoom, gg.pipe4WindRoom);
});
cam3.pipeSwitch4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
swapPipes(gg.pipe4WindRoom, gg.pipe5WindRoom);
});
cam3.pipeSwitch5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
swapPipes(gg.pipe5WindRoom, gg.pipe6WindRoom);
});
cam3.pipeSwitch6.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
swapPipes(gg.pipe6WindRoom, gg.pipe7WindRoom);
});
cam3.key1.gotoAndStop(((g[gg.eKeyWindRoom] == 1)) ? 2 : 1);
cam3.key1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addKey("E", "organ1");
});
cam3.key2.gotoAndStop(((g[gg.gKeyWindRoom] == 1)) ? 2 : 1);
cam3.key2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addKey("G", "organ2");
});
cam3.key3.gotoAndStop(((g[gg.bKeyWindRoom] == 1)) ? 2 : 1);
cam3.key3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addKey("B", "organ3");
});
cam3.key4.gotoAndStop(((g[gg.dKeyWindRoom] == 1)) ? 2 : 1);
cam3.key4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addKey("D", "organ4");
});
cam3.key5.gotoAndStop(((g[gg.aKeyWindRoom] == 1)) ? 2 : 1);
cam3.key5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addKey("A", "organ5");
});
cam3.key6.gotoAndStop(((g[gg.fKeyWindRoom] == 1)) ? 2 : 1);
cam3.key6.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addKey("F", "organ6");
});
cam3.key7.gotoAndStop(((g[gg.cKeyWindRoom] == 1)) ? 2 : 1);
cam3.key7.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addKey("C", "organ7");
});
cam4.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam2, 2);
setFanVol(g[gg.camNum]);
});
cam4.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam4, cam3, 3);
setFanVol(g[gg.camNum]);
});
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam4.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam4.windPipe.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("hmmm... this pipe connects the room next door... it must channel the WIND POWER from this room into the next", 2);
});
cam4.EGG.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("hmmm... Its a statue of an EGG");
});
cam4.EGGDrawer.visible = ((g[gg.EGGSolvedWindRoom] == 1)) ? true : false;
cam4.monkeyORANGE.visible = ((((g[gg.EGGSolvedWindRoom] == 1)) && ((g[gg.monkeyORANGEInWindRoom] == 1)))) ? true : false;
cam4.monkeyORANGE.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.monkeyORANGEInWindRoom, ii.monkeyORANGE, "You picked up a picture of a SUMATRAN ORANGUTAN", 2);
});
cam4.CAGEDrawer.visible = ((g[gg.CAGESolvedWindRoom] == 1)) ? true : false;
cam4.BED.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("hmmm... Its a statue of a BED");
});
cam4.BEDDrawer.visible = ((g[gg.BEDSolvedWindRoom] == 1)) ? true : false;
cam4.monkeyPURPLE.visible = ((((g[gg.BEDSolvedWindRoom] == 1)) && ((g[gg.monkeyPURPLEInWindRoom] == 1)))) ? true : false;
cam4.monkeyPURPLE.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.monkeyPURPLEInWindRoom, ii.monkeyPURPLE, "You picked up a picture of a PURPLE-FACED LANGUR", 2);
});
cam4.BAG.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("hmmm... Its a statue of a BAG");
});
cam4.BAGDrawer.visible = ((g[gg.BAGSolvedWindRoom] == 1)) ? true : false;
cam4.monkeyGREEN.visible = ((((g[gg.BEDSolvedWindRoom] == 1)) && ((g[gg.monkeyGREENInWindRoom] == 1)))) ? true : false;
cam4.monkeyGREEN.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.monkeyGREENInWindRoom, ii.monkeyGREEN, "You picked up a picture of a OLIVE COLOBUS MONKEY", 2);
});
cam5.toCam2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam5, cam2, 2);
setFanVol(g[gg.camNum]);
});
cam5.toCam2.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam2.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.toCam3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.changeCam(cam5, cam3, 3);
setFanVol(g[gg.camNum]);
});
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OUT, rootObj.BUTRollOut);
cam5.toCam3.addEventListener(MouseEvent.MOUSE_OVER, rootObj.BUTRollOver);
cam5.windPipe.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("hmmm... this pipe connects the room next door... it must channel the WIND POWER from this room into the next", 2);
});
cam5.fiberOpticCLICK.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage(("hmmm... there seems to be a FIBER OPTIC CABLE that attaches to the adjoining room... " + ((lightPower == true)) ? "It appears to be ON" : "It appears to be OFF"), 2);
});
cam5.fiberOpticLEFT.visible = ((lightPower == true)) ? true : false;
cam5.ACE.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("hmmm... Its a statue of an ACE of spades");
});
cam5.ACEDrawer.visible = ((g[gg.ACESolvedWindRoom] == 1)) ? true : false;
cam5.monkeyYELLOW.visible = ((((g[gg.ACESolvedWindRoom] == 1)) && ((g[gg.monkeyYELLOWInWindRoom] == 1)))) ? true : false;
cam5.monkeyYELLOW.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.monkeyYELLOWInWindRoom, ii.monkeyYELLOW, "You picked up a picture of a YELLOW-TAILED WOOLEY MONKEY", 2);
});
cam5.FACE.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("hmmm... Its a statue of a FACE");
});
cam5.FACEDrawer.visible = ((g[gg.FACESolvedWindRoom] == 1)) ? true : false;
cam5.monkeyBLUE.visible = ((((g[gg.FACESolvedWindRoom] == 1)) && ((g[gg.monkeyBLUEInWindRoom] == 1)))) ? true : false;
cam5.monkeyBLUE.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.monkeyBLUEInWindRoom, ii.monkeyBLUE, "You picked up a picture of a BLUE DIADEMED MONKEY", 2);
});
cam5.BADGE.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.callMessage("hmmm... Its a statue of a BADGE");
});
cam5.BADGEDrawer.visible = ((g[gg.BADGESolvedWindRoom] == 1)) ? true : false;
cam5.BADGEItem.visible = ((((g[gg.BADGESolvedWindRoom] == 1)) && ((g[gg.BADGEInWindRoom] == 1)))) ? true : false;
cam5.BADGEItem.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.BADGEInWindRoom, ii.BADGE, "You picked up a PLATINUM BADGE Statue", 2);
});
if ((g[gg.LIGHTSolvedWindRoom] == 1)){
cam5.button1.gotoAndStop(2);
} else {
cam5.button1.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addLight(e, "1");
});
};
if ((g[gg.LIGHTSolvedWindRoom] == 1)){
cam5.button2.gotoAndStop(2);
} else {
cam5.button2.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addLight(e, "2");
});
};
if ((g[gg.LIGHTSolvedWindRoom] == 1)){
cam5.button3.gotoAndStop(2);
} else {
cam5.button3.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addLight(e, "3");
});
};
if ((g[gg.LIGHTSolvedWindRoom] == 1)){
cam5.button4.gotoAndStop(2);
} else {
cam5.button4.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addLight(e, "4");
});
};
if ((g[gg.LIGHTSolvedWindRoom] == 1)){
cam5.button5.gotoAndStop(2);
} else {
cam5.button5.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addLight(e, "5");
});
};
if ((g[gg.LIGHTSolvedWindRoom] == 1)){
cam5.button6.gotoAndStop(2);
} else {
cam5.button6.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
addLight(e, "6");
});
};
cam5.EPOXYDrawer.visible = ((g[gg.LIGHTSolvedWindRoom] == 1)) ? true : false;
cam5.EPOXY.visible = ((((g[gg.LIGHTSolvedWindRoom] == 1)) && ((g[gg.EPOXYInWindRoom] == 1)))) ? true : false;
cam5.EPOXY.addEventListener(MouseEvent.CLICK, function (e:MouseEvent){
rootObj.pickUpItem(e, gg.EPOXYInWindRoom, ii.EPOXY, "You picked up the GLASS EPOXY", 1);
});
startSounds();
}
public function startSounds():void{
if (rootObj.soundOn == true){
setFanVol(g[gg.camNum]);
if (g[gg.furnaceOn] == 1){
rootObj.fanSound.gotoAndStop(2);
};
};
}
private function checkPipes():void{
var pipeSolved:Boolean;
pipeSolved = ((g[gg.pipe1WindRoom])!=1) ? false : pipeSolved;
pipeSolved = ((g[gg.pipe2WindRoom])!=6) ? false : pipeSolved;
pipeSolved = ((g[gg.pipe3WindRoom])!=3) ? false : pipeSolved;
pipeSolved = ((g[gg.pipe4WindRoom])!=7) ? false : pipeSolved;
pipeSolved = ((g[gg.pipe5WindRoom])!=4) ? false : pipeSolved;
pipeSolved = ((g[gg.pipe6WindRoom])!=5) ? false : pipeSolved;
pipeSolved = ((g[gg.pipe7WindRoom])!=2) ? false : pipeSolved;
if (pipeSolved){
g[gg.pipeSolvedWindRoom] = 1;
rootObj.playSound("unlock");
rootObj.callMessage("I think the pipes are in the right order now");
};
}
public function stopSounds():void{
rootObj.fanSound.gotoAndStop(3);
}
private function setPipes():void{
cam3.pipe1.gotoAndStop(g[gg.pipe1WindRoom]);
cam3.pipe2.gotoAndStop(g[gg.pipe2WindRoom]);
cam3.pipe3.gotoAndStop(g[gg.pipe3WindRoom]);
cam3.pipe4.gotoAndStop(g[gg.pipe4WindRoom]);
cam3.pipe5.gotoAndStop(g[gg.pipe5WindRoom]);
cam3.pipe6.gotoAndStop(g[gg.pipe6WindRoom]);
cam3.pipe7.gotoAndStop(g[gg.pipe7WindRoom]);
}
private function addKey(theKey:String, theSound:String):void{
if (g[gg.pipeSolvedWindRoom] == 1){
theWord = (theWord + theKey);
trace(("added letter " + theKey));
rootObj.playSound(theSound);
cam3.soundCheck.gotoAndPlay(2);
} else {
rootObj.playSound("organBad");
rootObj.callMessage("This sounds horrible... there must be something wrong with the positioning of the PIPES on the ORGAN", 2);
};
}
public function fadeInSounds():void{
if (rootObj.soundOn == true){
rootObj.fanVolume = 0.7;
rootObj.fanSound.gotoAndPlay(8);
};
}
private function swapPipes(pipe1:int, pipe2:int):void{
var p1:int;
var p2:int;
if (g[gg.pipeSolvedWindRoom] == 0){
p1 = (g[pipe1] + 0);
p2 = (g[pipe2] + 0);
g[pipe1] = (p2 + 0);
g[pipe2] = (p1 + 0);
setPipes();
checkPipes();
} else {
rootObj.callMessage("They seem to be locked into place now");
};
}
public function fadeSounds():void{
rootObj.fanSound.gotoAndPlay(4);
}
public function checkWord():void{
trace(("checking word " + theWord));
switch (theWord){
case "CAGE":
if (g[gg.CAGESolvedWindRoom] == 0){
cam3.CAGEDrawer.visible = true;
cam4.CAGEDrawer.visible = true;
cam3.monkeyRED.visible = true;
g[gg.CAGESolvedWindRoom] = 1;
g[gg.cKeyWindRoom] = 1;
g[gg.aKeyWindRoom] = 1;
g[gg.gKeyWindRoom] = 1;
g[gg.eKeyWindRoom] = 1;
cam3.key7.gotoAndStop(2);
cam3.key5.gotoAndStop(2);
cam3.key2.gotoAndStop(2);
cam3.key1.gotoAndStop(2);
rootObj.playSound("unlock");
};
rootObj.callMessage("You spelled the word C-A-G-E (2-4-6-1) and opened the CAGE STATUE Pedestal", 2);
break;
case "EGG":
if (g[gg.EGGSolvedWindRoom] == 0){
cam4.EGGDrawer.visible = true;
cam4.monkeyORANGE.visible = true;
g[gg.EGGSolvedWindRoom] = 1;
g[gg.aKeyWindRoom] = 1;
g[gg.eKeyWindRoom] = 1;
cam3.key5.gotoAndStop(2);
cam3.key2.gotoAndStop(2);
rootObj.playSound("unlock");
};
rootObj.callMessage("You spelled the word E-G-G (1-6-6) and opened the EGG STATUE Pedestal", 2);
break;
case "BAG":
if (g[gg.BAGSolvedWindRoom] == 0){
cam4.BAGDrawer.visible = true;
cam4.monkeyGREEN.visible = true;
g[gg.BAGSolvedWindRoom] = 1;
g[gg.bKeyWindRoom] = 1;
g[gg.aKeyWindRoom] = 1;
g[gg.gKeyWindRoom] = 1;
cam3.key3.gotoAndStop(2);
cam3.key5.gotoAndStop(2);
cam3.key2.gotoAndStop(2);
rootObj.playSound("unlock");
};
rootObj.callMessage("You spelled the word B-A-G (3-4-6) and opened the BAG STATUE Pedestal", 2);
break;
case "BED":
if (g[gg.BEDSolvedWindRoom] == 0){
cam4.BEDDrawer.visible = true;
cam4.monkeyPURPLE.visible = true;
g[gg.BEDSolvedWindRoom] = 1;
g[gg.bKeyWindRoom] = 1;
g[gg.eKeyWindRoom] = 1;
g[gg.dKeyWindRoom] = 1;
cam3.key3.gotoAndStop(2);
cam3.key1.gotoAndStop(2);
cam3.key4.gotoAndStop(2);
rootObj.playSound("unlock");
};
rootObj.callMessage("You spelled the word B-E-D (3-1-7) and opened the BED STATUE Pedestal", 2);
break;
case "ACE":
if (g[gg.ACESolvedWindRoom] == 0){
cam5.ACEDrawer.visible = true;
cam5.monkeyYELLOW.visible = true;
g[gg.ACESolvedWindRoom] = 1;
g[gg.aKeyWindRoom] = 1;
g[gg.cKeyWindRoom] = 1;
g[gg.eKeyWindRoom] = 1;
cam3.key5.gotoAndStop(2);
cam3.key7.gotoAndStop(2);
cam3.key1.gotoAndStop(2);
rootObj.playSound("unlock");
};
rootObj.callMessage("You spelled the word A-C-E (4-2-1) and opened the ACE STATUE Pedestal", 2);
break;
case "FACE":
if (g[gg.FACESolvedWindRoom] == 0){
cam5.FACEDrawer.visible = true;
cam5.monkeyBLUE.visible = true;
g[gg.FACESolvedWindRoom] = 1;
g[gg.fKeyWindRoom] = 1;
g[gg.aKeyWindRoom] = 1;
g[gg.cKeyWindRoom] = 1;
g[gg.eKeyWindRoom] = 1;
cam3.key6.gotoAndStop(2);
cam3.key5.gotoAndStop(2);
cam3.key7.gotoAndStop(2);
cam3.key1.gotoAndStop(2);
rootObj.playSound("unlock");
};
rootObj.callMessage("You spelled the word F-A-C-E (5-4-2-1) and opened the FACE STATUE Pedestal", 2);
break;
case "BADGE":
if (g[gg.BADGESolvedWindRoom] == 0){
cam5.BADGEDrawer.visible = true;
cam5.BADGEItem.visible = true;
g[gg.BADGESolvedWindRoom] = 1;
g[gg.bKeyWindRoom] = 1;
g[gg.aKeyWindRoom] = 1;
g[gg.dKeyWindRoom] = 1;
g[gg.gKeyWindRoom] = 1;
g[gg.eKeyWindRoom] = 1;
cam3.key3.gotoAndStop(2);
cam3.key5.gotoAndStop(2);
cam3.key4.gotoAndStop(2);
cam3.key2.gotoAndStop(2);
cam3.key1.gotoAndStop(2);
rootObj.playSound("unlock");
};
rootObj.callMessage("You spelled the word B-A-D-F-E (3-4-7-6-1) and opened the BADGE STATUE Pedestal", 2);
break;
default:
rootObj.callMessage("hmmm.. nothing happened. I must not have used the proper key sequence to spell a word", 2);
};
theWord = "";
}
private function addLight(e:MouseEvent, theNum:String):void{
if (e.currentTarget.currentFrame == 1){
lightWord = (lightWord + theNum);
e.currentTarget.gotoAndStop(2);
if (lightWord.length == 6){
if (lightWord == "123456"){
g[gg.LIGHTSolvedWindRoom] = 1;
cam5.EPOXYDrawer.visible = true;
cam5.EPOXY.visible = true;
rootObj.callMessage("You pushed the buttons in the proper sequence and opened the panel", 2);
rootObj.playSound("unlock");
} else {
rootObj.callMessage("Hmmm... nothing happened... perhaps it will help if the the FIBER OPTIC CABLE is getting LIGHT POWER from the next room?", 2);
lightWord = "";
cam5.button1.gotoAndStop(1);
cam5.button2.gotoAndStop(1);
cam5.button3.gotoAndStop(1);
cam5.button4.gotoAndStop(1);
cam5.button5.gotoAndStop(1);
cam5.button6.gotoAndStop(1);
};
};
};
}
}
}//package