Section 1
//MainTimeline (EscapetheLab_fla.MainTimeline)
package EscapetheLab_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const GRAPHITE:int = 6;
public const SOL1A5:int = 3;
public const ACID:int = 2;
public const SOLX:int = 5;
public const SCREWDRIVER:int = 8;
public const CUTTERS:int = 0;
public const CURE:int = 10;
public const KEY:int = 1;
public const DOCUMENTS:int = 11;
public const SOL23G:int = 4;
public const VIRUS:int = 9;
public const BRUSH:int = 7;
public var side2Data:side2Img;
public var brownRightCutTrig:Sprite;
public var beep:beepSnd;
public var printsData:printsImg;
public var recipeP1Data:recipeP1Img;
public var drawerData:drawerImg;
public var greenCut:Sprite;
public var whiteLeftCut:Sprite;
public var doorLocked:Boolean;
public var brownLeftCutTrig:Sprite;
public var wallCabinetSet;
public var wallSafe:Sprite;
public var side1Data:side1Img;
public var wallSafeDial:Sprite;
public var greenCutData:greenCutImg;
public var drawer2Data:drawer2Img;
public var drawerTrig:TextField;
public var bombBook:Array;
public var wallSafeData:wallSafeImg;
public var wallSafeDialData:wallSafeDialImg;
public var safeDoor:Sprite;
public var explode:explodeSnd;
public var doorTrig:Sprite;
public var drawer:Sprite;
public var safeLocked:Boolean;
public var bombCase:Sprite;
public var greenCutTrig:Sprite;
public var newsData:newsImg;
public var drawer2Trig:TextField;
public var rotSum:Number;
public var yellowCut:Sprite;
public var wallSafeTrig:TextField;
public var picture1Data:picture1Img;
public var bombNotes:Sprite;
public var safeTrig:TextField;
public var safePrints:String;
public var cabinetDoorOpenData:cabinetDoorOpenImg;
public var menu:Sprite;
public var playerItems:Array;
public var drawer2:Sprite;
public var bombData:bombImg;
public var pinkBook:Array;
public var drawerBlack:Sprite;
public var newsTrig:Sprite;
public var cabinetDoorOpen:Sprite;
public var bombNotesData:bombNotesImg;
public var menuData:menuImg;
public var side2:Sprite;
public var side3:Sprite;
public var side4:Sprite;
public var safeDoorOpen:Sprite;
public var side1:Sprite;
public var safePad:Sprite;
public var whiteRightCut:Sprite;
public var arrowRightData:arrowRightImg;
public var brownRightCut:Sprite;
public var cabinetClosed:Boolean;
public var bombTrig:Sprite;
public var garbageTrig:TextField;
public var yellowCutData:yellowCutImg;
public var wallCabinetDoor:Sprite;
public var menuHighlight:TextField;
public var whiteRightCutData:whiteRightCutImg;
public var turnLeft:Sprite;
public var cabinetDoor:Sprite;
public var doorPadFull:Sprite;
public var screwsOff:int;
public var pinkBookTrig:Sprite;
public var bombWire:Sprite;
public var drawerBlackData:drawerBlackImg;
public var wallSafeLocked:Boolean;
public var yellowCutTrig:Sprite;
public var bombArmed:Boolean;
public var pictureSet:Boolean;
public var safePadData:safePadImg;
public var bombWireData:bombWireImg;
public var cabinetTrig:TextField;
public var whiteRightCutTrig:Sprite;
public var screws:Array;
public var bomb:Sprite;
public var brownLeftCut:Sprite;
public var wallSafeOpenData:wallSafeOpenImg;
public var bombClosed:Boolean;
public var turnDown:Sprite;
public var recipeTrig:Sprite;
public var pencilTrig:TextField;
public var news:Sprite;
public var bombText:TextField;
public var cabinetDoorData:cabinetDoorImg;
public var picture1:Sprite;
public var safePadTrig:TextField;
public var bombWireTrig:Sprite;
public var wallSafeCode:Array;
public var turnDownData:turnDownImg;
public var side4Data:side4Img;
public var safeDoorOpenData:safeDoorOpenImg;
public var whiteLeftCutData:whiteLeftCutImg;
public var safeDoorData:safeDoorImg;
public var powerdown:powerdownSnd;
public var journal:Array;
public var redCutData:redCutImg;
public var unlock:unlockSnd;
public var hazardTrig:TextField;
public var drawerLocked:Boolean;
public var bombBookTrig:Sprite;
public var wallSafeOpen:Sprite;
public var safeOpen:Boolean;
public var arrowLeftData:arrowLeftImg;
public var cabinetLocked:Boolean;
public var side3Data:side3Img;
public var whiteLeftCutTrig:Sprite;
public var arrowRight:Sprite;
public var turnRight:Sprite;
public var brownRightCutData:brownRightCutImg;
public var redCutTrig:Sprite;
public var arrowLeft:Sprite;
public var bombCaseData:bombCaseImg;
public var currentView:String;
public var doorPadTrig:TextField;
public var mixerTrig:Sprite;
public var wallCabinetDoorData:wallCabinetDoorImg;
public var snap:snapSnd;
public var currentSelect:int;
public var turnRightData:turnRightImg;
public var turnLeftData:turnLeftImg;
public var recipeP1:Sprite;
public var redCut:Sprite;
public var journalTrig:Sprite;
public var brownLeftCutData:brownLeftCutImg;
public var doorPadFullData:doorPadFullImg;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function ClickDrawerTrig(_arg1:MouseEvent):void{
if (drawerLocked == false){
LoadDrawer();
currentView = "drawer";
} else {
if (playerItems[currentSelect].itemName == "key"){
drawerLocked = false;
playerItems[KEY].imgMenu.alpha = 0.1;
DisplayText("You unlocked the drawer.");
} else {
DisplayText("The drawer appears locked.");
};
};
}
public function LoadSide2(){
stage.addChild(side2);
stage.addChild(wallSafeTrig);
stage.addChild(picture1);
stage.addChild(drawerTrig);
stage.addChild(drawer2Trig);
if (playerItems[KEY].own == false){
stage.addChild(playerItems[KEY].imgWorld);
};
stage.addChild(bombBookTrig);
stage.addChild(recipeTrig);
if (safeOpen == false){
stage.addChild(safeDoor);
stage.addChild(safePadTrig);
} else {
stage.addChild(safeDoorOpen);
};
stage.addChild(safeTrig);
stage.addChild(pencilTrig);
stage.addChild(newsTrig);
stage.addChild(turnRight);
stage.addChild(turnLeft);
}
public function LoadSide4(){
stage.addChild(side4);
if (playerItems[SOL1A5].own == false){
stage.addChild(playerItems[SOL1A5].imgWorld);
};
if (playerItems[SOL23G].own == false){
stage.addChild(playerItems[SOL23G].imgWorld);
};
if (playerItems[SOLX].own == false){
stage.addChild(playerItems[SOLX].imgWorld);
};
stage.addChild(wallCabinetDoor);
stage.addChild(hazardTrig);
stage.addChild(mixerTrig);
stage.addChild(turnRight);
stage.addChild(turnLeft);
}
public function LoadSide1(){
stage.addChild(side1);
stage.addChild(doorTrig);
stage.addChild(doorPadTrig);
if (playerItems[CUTTERS].own == false){
stage.addChild(playerItems[CUTTERS].imgWorld);
};
stage.addChild(turnRight);
stage.addChild(turnLeft);
stage.addChild(bombTrig);
}
public function LoadSide3(){
stage.addChild(side3);
stage.addChild(pinkBookTrig);
if (playerItems[BRUSH].own == false){
stage.addChild(playerItems[BRUSH].imgWorld);
};
if (cabinetClosed == true){
stage.addChild(cabinetDoor);
} else {
stage.addChild(cabinetDoorOpen);
};
stage.addChild(cabinetTrig);
stage.addChild(garbageTrig);
stage.addChild(turnRight);
stage.addChild(turnLeft);
}
function frame1(){
beep = new beepSnd();
unlock = new unlockSnd();
snap = new snapSnd();
powerdown = new powerdownSnd();
explode = new explodeSnd();
bombData = new bombImg(600, 420);
bomb = CreateSprite(bombData, 600, 420);
bombWireData = new bombWireImg(600, 420);
bombWire = CreateSprite(bombWireData, 600, 420);
cabinetDoorData = new cabinetDoorImg(77, 254);
cabinetDoor = CreateSprite(cabinetDoorData, 77, 254);
cabinetDoorOpenData = new cabinetDoorOpenImg(39, 274);
cabinetDoorOpen = CreateSprite(cabinetDoorOpenData, 39, 274);
doorPadFullData = new doorPadFullImg(600, 420);
doorPadFull = CreateSprite(doorPadFullData, 600, 420);
drawerData = new drawerImg(226, 298);
drawer = CreateSprite(drawerData, 226, 298);
drawer2Data = new drawer2Img(226, 298);
drawer2 = CreateSprite(drawer2Data, 226, 298);
drawerBlackData = new drawerBlackImg(226, 298);
drawerBlack = CreateSprite(drawerBlackData, 226, 298);
safeDoorData = new safeDoorImg(80, 75);
safeDoor = CreateSprite(safeDoorData, 80, 75);
safeDoorOpenData = new safeDoorOpenImg(49, 105);
safeDoorOpen = CreateSprite(safeDoorOpenData, 49, 105);
safePadData = new safePadImg(600, 420);
safePad = CreateSprite(safePadData, 600, 420);
side1Data = new side1Img(600, 420);
side1 = CreateSprite(side1Data, 600, 420);
side2Data = new side2Img(600, 420);
side2 = CreateSprite(side2Data, 600, 420);
side3Data = new side3Img(600, 420);
side3 = CreateSprite(side3Data, 600, 420);
side4Data = new side4Img(600, 420);
side4 = CreateSprite(side4Data, 600, 420);
wallSafeData = new wallSafeImg(600, 420);
wallSafe = CreateSprite(wallSafeData, 600, 420);
wallSafeOpenData = new wallSafeOpenImg(600, 420);
wallSafeOpen = CreateSprite(wallSafeOpenData, 600, 420);
redCutData = new redCutImg(33, 21);
redCut = CreateSprite(redCutData, 33, 21);
yellowCutData = new yellowCutImg(23, 19);
yellowCut = CreateSprite(yellowCutData, 23, 19);
greenCutData = new greenCutImg(29, 15);
greenCut = CreateSprite(greenCutData, 29, 15);
brownLeftCutData = new brownLeftCutImg(19, 11);
brownLeftCut = CreateSprite(brownLeftCutData, 19, 11);
brownRightCutData = new brownRightCutImg(37, 14);
brownRightCut = CreateSprite(brownRightCutData, 37, 14);
whiteLeftCutData = new whiteLeftCutImg(19, 13);
whiteLeftCut = CreateSprite(whiteLeftCutData, 19, 13);
whiteRightCutData = new whiteRightCutImg(39, 17);
whiteRightCut = CreateSprite(whiteRightCutData, 39, 17);
turnRightData = new turnRightImg(25, 420);
turnRight = CreateSprite(turnRightData, 25, 420);
turnLeftData = new turnLeftImg(25, 420);
turnLeft = CreateSprite(turnLeftData, 25, 420);
turnDownData = new turnDownImg(600, 25);
turnDown = CreateSprite(turnDownData, 600, 25);
menuData = new menuImg(600, 50);
menu = CreateSprite(menuData, 600, 50);
wallSafeDialData = new wallSafeDialImg(77, 77);
wallSafeDial = CreateSprite(wallSafeDialData, 77, 77);
arrowLeftData = new arrowLeftImg(36, 33);
arrowLeft = CreateSprite(arrowLeftData, 36, 33);
arrowRightData = new arrowRightImg(36, 33);
arrowRight = CreateSprite(arrowRightData, 36, 33);
picture1Data = new picture1Img(75, 75);
picture1 = CreateSprite(picture1Data, 75, 75);
wallCabinetDoorData = new wallCabinetDoorImg(112, 93);
wallCabinetDoor = CreateSprite(wallCabinetDoorData, 112, 93);
recipeP1Data = new recipeP1Img(333, 377);
recipeP1 = CreateSprite(recipeP1Data, 333, 377);
bombCaseData = new bombCaseImg(242, 280);
bombCase = CreateSprite(bombCaseData, 242, 280);
newsData = new newsImg(535, 396);
news = CreateSprite(newsData, 535, 396);
bombNotesData = new bombNotesImg(507, 209);
bombNotes = CreateSprite(bombNotesData, 507, 209);
printsData = new printsImg(24, 24);
screws = new Array(4);
journal = new Array(6);
pinkBook = new Array(4);
bombBook = new Array(5);
currentView = "side 1";
playerItems = new Array(13);
currentSelect = 0;
menuHighlight = new TextField();
doorLocked = true;
bombArmed = true;
bombText = new TextField();
bombClosed = true;
screwsOff = 0;
safeLocked = true;
safeOpen = false;
safePrints = "none";
wallSafeLocked = true;
wallSafeCode = new Array(2);
rotSum = 0;
pictureSet = true;
drawerLocked = true;
cabinetLocked = true;
cabinetClosed = true;
wallCabinetSet = true;
doorPadTrig = new TextField();
safeTrig = new TextField();
safePadTrig = new TextField();
wallSafeTrig = new TextField();
drawerTrig = new TextField();
drawer2Trig = new TextField();
cabinetTrig = new TextField();
garbageTrig = new TextField();
hazardTrig = new TextField();
pencilTrig = new TextField();
bombBookTrig = new Sprite();
recipeTrig = new Sprite();
bombTrig = new Sprite();
bombWireTrig = new Sprite();
redCutTrig = new Sprite();
yellowCutTrig = new Sprite();
greenCutTrig = new Sprite();
brownLeftCutTrig = new Sprite();
brownRightCutTrig = new Sprite();
whiteLeftCutTrig = new Sprite();
whiteRightCutTrig = new Sprite();
newsTrig = new Sprite();
journalTrig = new Sprite();
mixerTrig = new Sprite();
doorTrig = new Sprite();
pinkBookTrig = new Sprite();
SetUpSide1();
SetUpSide2();
SetUpSide3();
SetUpSide4();
SetUp();
}
public function ClickPicture1(_arg1:MouseEvent):void{
picture1.addEventListener(Event.ENTER_FRAME, MovePicture1);
}
public function ClickBombWireTrig(_arg1:MouseEvent):void{
currentView = "bombwire";
DeleteBomb();
LoadBombWire();
}
public function ClickSafePadTrig(_arg1:MouseEvent):void{
currentView = "safe pad";
DeleteSide2();
LoadSafePad();
}
public function LoadBomb(){
var _local1:int;
stage.addChild(bomb);
stage.addChild(bombText);
stage.addChild(bombWireTrig);
if (bombClosed == true){
stage.addChild(bombCase);
_local1 = 0;
while (_local1 < 4) {
if (screws[_local1].name < 5){
stage.addChild(screws[_local1]);
};
_local1++;
};
};
stage.addChild(turnDown);
}
public function DeleteWallSafeOpen(){
stage.removeChild(wallSafeOpen);
if (playerItems[DOCUMENTS].own == false){
stage.removeChild(playerItems[DOCUMENTS].imgWorld);
};
stage.removeChild(turnDown);
}
public function ClickBombBookTrig(_arg1:MouseEvent):void{
CreateBook(bombBook, 5, 128);
}
public function DisplayText(_arg1:String){
var blipTime:Timer;
var disText:TextField;
var textFormat:TextFormat;
var EndDisplayText:Function;
var strText = _arg1;
EndDisplayText = function (_arg1:TimerEvent):void{
stage.removeChild(disText);
blipTime.removeEventListener(TimerEvent.TIMER_COMPLETE, EndDisplayText);
};
blipTime = new Timer(1800, 1);
disText = new TextField();
textFormat = new TextFormat();
textFormat.align = "center";
textFormat.font = "gulim";
textFormat.size = 18;
textFormat.bold = true;
disText.x = 0;
disText.y = 385;
disText.width = 600;
disText.height = 40;
disText.selectable = false;
disText.text = strText;
disText.setTextFormat(textFormat);
stage.addChild(disText);
blipTime.addEventListener(TimerEvent.TIMER_COMPLETE, EndDisplayText);
blipTime.start();
}
public function ClickSafe(_arg1:MouseEvent):void{
if (safeLocked == false){
stage.removeChild(safeTrig);
if (safeOpen == true){
stage.removeChild(safeDoorOpen);
stage.addChild(safeDoor);
stage.addChild(safePadTrig);
safeTrig.x = 61;
safeTrig.y = 324;
safeOpen = false;
} else {
stage.removeChild(safeDoor);
stage.removeChild(safePadTrig);
stage.addChild(safeDoorOpen);
safeTrig.x = 165;
safeTrig.y = 348;
safeOpen = true;
};
stage.addChild(safeTrig);
};
}
public function FadeIn(){
var creditsData:creditsImg;
var credits:Bitmap;
var RevealGame:Function;
RevealGame = function (_arg1:Event):void{
if (credits.alpha > 0){
credits.alpha = (credits.alpha - 0.01);
} else {
stage.removeChild(credits);
credits.removeEventListener(Event.ENTER_FRAME, RevealGame);
};
};
creditsData = new creditsImg(600, 470);
credits = new Bitmap(creditsData);
credits.alpha = 1.5;
stage.addChild(credits);
credits.addEventListener(Event.ENTER_FRAME, RevealGame);
}
public function PlayerWin(){
var mainBox:TextField;
var yesBox:TextField;
var noBox:TextField;
var textType:TextFormat;
var viewTemp:String;
var ClickNoBox:Function;
var ClickYesBox:Function;
ClickNoBox = function (_arg1:MouseEvent):void{
yesBox.removeEventListener(MouseEvent.CLICK, ClickYesBox);
noBox.removeEventListener(MouseEvent.CLICK, ClickNoBox);
stage.removeChild(mainBox);
stage.removeChild(yesBox);
stage.removeChild(noBox);
currentView = viewTemp;
};
ClickYesBox = function (_arg1:MouseEvent):void{
ClickNoBox(_arg1);
Unload();
EndGame();
};
mainBox = new TextField();
yesBox = new TextField();
noBox = new TextField();
textType = new TextFormat();
viewTemp = currentView;
currentView = "menu";
if ((((playerItems[CURE].own == false)) && ((playerItems[VIRUS].own == false)))){
mainBox.text = "\nIf you leave now, there will be no hope for those 14 people with the virus. Do you really wish to leave?";
} else {
if (playerItems[DOCUMENTS].own == false){
mainBox.text = "\nIf you leave now, Mark will get away with everything! Do you really wish to leave?";
} else {
mainBox.text = "\nDo you really wish to leave?";
};
};
textType.align = "center";
textType.font = "gulim";
textType.leftMargin = 50;
textType.rightMargin = 50;
textType.size = 28;
mainBox.x = 50;
mainBox.y = 35;
mainBox.width = 500;
mainBox.height = 350;
mainBox.wordWrap = true;
mainBox.selectable = false;
mainBox.background = true;
mainBox.backgroundColor = 0x1F1F1F;
mainBox.border = true;
mainBox.borderColor = 0xFFFFFF;
mainBox.textColor = 0xFFFFFF;
mainBox.setTextFormat(textType);
textType.leftMargin = 0;
textType.rightMargin = 0;
textType.bold = true;
textType.size = 14;
textType.leading = -8;
yesBox.x = 125;
yesBox.y = 335;
yesBox.width = 100;
yesBox.height = 30;
yesBox.selectable = false;
yesBox.background = true;
yesBox.backgroundColor = 0xBBBBBB;
yesBox.border = true;
yesBox.borderColor = 0x888888;
yesBox.textColor = 0;
yesBox.text = "\nYes";
yesBox.setTextFormat(textType);
yesBox.addEventListener(MouseEvent.CLICK, ClickYesBox);
noBox.x = 375;
noBox.y = 335;
noBox.width = 100;
noBox.height = 30;
noBox.selectable = false;
noBox.background = true;
noBox.backgroundColor = 0xBBBBBB;
noBox.border = true;
noBox.borderColor = 0x888888;
noBox.textColor = 0;
noBox.text = "\nNo";
noBox.setTextFormat(textType);
noBox.addEventListener(MouseEvent.CLICK, ClickNoBox);
stage.addChild(mainBox);
stage.addChild(yesBox);
stage.addChild(noBox);
}
public function DeleteDrawer2(){
stage.removeChild(drawerBlack);
stage.removeChild(drawer2);
stage.removeChild(turnDown);
}
public function DeleteBombWire(){
stage.removeChild(bombWire);
if (redCut.name == "false"){
stage.removeChild(redCut);
stage.removeChild(redCutTrig);
};
if (yellowCut.name == "false"){
stage.removeChild(yellowCut);
stage.removeChild(yellowCutTrig);
};
if (greenCut.name == "false"){
stage.removeChild(greenCut);
stage.removeChild(greenCutTrig);
};
if (brownRightCut.name == "false"){
stage.removeChild(brownRightCut);
stage.removeChild(brownRightCutTrig);
};
if (whiteRightCut.name == "false"){
stage.removeChild(whiteRightCut);
stage.removeChild(whiteRightCutTrig);
};
if (brownLeftCut.name == "false"){
stage.removeChild(brownLeftCut);
stage.removeChild(brownLeftCutTrig);
};
if (whiteLeftCut.name == "false"){
stage.removeChild(whiteLeftCut);
stage.removeChild(whiteLeftCutTrig);
};
stage.removeChild(turnDown);
}
public function ClickWhiteLeftCutTrig(_arg1:MouseEvent):void{
if (playerItems[currentSelect].itemName == "wire cutters"){
snap.play();
whiteLeftCut.name = "true";
whiteLeftCutTrig.removeEventListener(MouseEvent.CLICK, ClickWhiteLeftCutTrig);
stage.removeChild(whiteLeftCutTrig);
stage.removeChild(whiteLeftCut);
if (redCut.name == "false"){
PlayerLose();
} else {
if (whiteRightCut.name == "true"){
powerdown.play();
bombArmed = false;
bombText.text = "";
};
};
};
}
public function SetUpSide2(){
var _local1:*;
var _local2:journalImg;
var _local3:bombBookImg;
wallSafeCode[0] = -1;
wallSafeCode[1] = -1;
wallSafeDial.x = 145;
wallSafeDial.y = 166;
safeDoor.x = 52;
safeDoor.y = 288;
safeDoorOpen.x = 131;
safeDoorOpen.y = 289;
drawer.blendMode = "add";
drawer.x = 187;
drawer.y = 61;
drawer2.blendMode = "add";
drawer2.x = 187;
drawer2.y = 61;
drawerBlack.blendMode = "multiply";
drawerBlack.x = 187;
drawerBlack.y = 61;
arrowLeft.x = 137;
arrowLeft.y = 129;
arrowLeft.alpha = 0.5;
arrowRight.x = 194;
arrowRight.y = 129;
arrowRight.alpha = 0.5;
picture1.x = 360;
picture1.y = 78;
recipeP1.x = 134;
recipeP1.y = 22;
news.x = 33;
news.y = 12;
_local2 = new journalImg(1674, 298);
_local1 = 0;
while (_local1 < 6) {
journal[_local1] = new Sprite();
journal[_local1].graphics.beginBitmapFill(_local2);
journal[_local1].graphics.drawRect((_local1 * 280), 0, 280, 298);
journal[_local1].graphics.endFill();
_local1++;
};
_local3 = new bombBookImg(1393, 298);
_local1 = 0;
while (_local1 < 5) {
bombBook[_local1] = new Sprite();
bombBook[_local1].graphics.beginBitmapFill(_local3);
bombBook[_local1].graphics.drawRect((_local1 * 280), 0, 280, 298);
bombBook[_local1].graphics.endFill();
_local1++;
};
wallSafeDial.addEventListener(MouseEvent.CLICK, ClickWallSafeDial);
arrowLeft.addEventListener(MouseEvent.CLICK, ClickArrowLeft);
arrowRight.addEventListener(MouseEvent.CLICK, ClickArrowRight);
wallSafeOpen.addEventListener(MouseEvent.CLICK, SelectView);
picture1.addEventListener(MouseEvent.CLICK, ClickPicture1);
safeTrig.x = 61;
safeTrig.y = 324;
safeTrig.width = 16;
safeTrig.height = 12;
safeTrig.selectable = false;
safeTrig.addEventListener(MouseEvent.CLICK, ClickSafe);
safePadTrig.x = 61;
safePadTrig.y = 297;
safePadTrig.width = 26;
safePadTrig.height = 20;
safePadTrig.selectable = false;
safePadTrig.addEventListener(MouseEvent.CLICK, ClickSafePadTrig);
wallSafeTrig.x = 365;
wallSafeTrig.y = 83;
wallSafeTrig.width = 65;
wallSafeTrig.height = 65;
wallSafeTrig.selectable = false;
wallSafeTrig.addEventListener(MouseEvent.CLICK, ClickWallSafeTrig);
drawerTrig.x = 430;
drawerTrig.y = 300;
drawerTrig.width = 94;
drawerTrig.height = 32;
drawerTrig.selectable = false;
drawerTrig.addEventListener(MouseEvent.CLICK, ClickDrawerTrig);
drawer2Trig.x = 430;
drawer2Trig.y = 267;
drawer2Trig.width = 94;
drawer2Trig.height = 32;
drawer2Trig.selectable = false;
drawer2Trig.addEventListener(MouseEvent.CLICK, ClickDrawer2Trig);
pencilTrig.x = 484;
pencilTrig.y = 243;
pencilTrig.width = 27;
pencilTrig.height = 17;
pencilTrig.selectable = false;
pencilTrig.addEventListener(MouseEvent.CLICK, ClickPencilTrig);
bombBookTrig.graphics.beginFill(0);
bombBookTrig.graphics.moveTo(100, 350);
bombBookTrig.graphics.lineTo(119, 331);
bombBookTrig.graphics.lineTo(130, 336);
bombBookTrig.graphics.lineTo(130, 348);
bombBookTrig.graphics.lineTo(117, 360);
bombBookTrig.graphics.endFill();
bombBookTrig.alpha = 0;
bombBookTrig.addEventListener(MouseEvent.CLICK, ClickBombBookTrig);
recipeTrig.graphics.beginFill(0);
recipeTrig.graphics.moveTo(76, 352);
recipeTrig.graphics.lineTo(74, 337);
recipeTrig.graphics.lineTo(88, 335);
recipeTrig.graphics.lineTo(90, 350);
recipeTrig.graphics.endFill();
recipeTrig.alpha = 0;
recipeTrig.addEventListener(MouseEvent.CLICK, ClickRecipeTrig);
newsTrig.graphics.beginFill(0);
newsTrig.graphics.moveTo(375, 239);
newsTrig.graphics.lineTo(392, 229);
newsTrig.graphics.lineTo(413, 248);
newsTrig.graphics.lineTo(395, 0x0100);
newsTrig.graphics.endFill();
newsTrig.alpha = 0;
newsTrig.addEventListener(MouseEvent.CLICK, ClickNewsTrig);
journalTrig.graphics.beginFill(0);
journalTrig.graphics.moveTo(292, 179);
journalTrig.graphics.lineTo(336, 160);
journalTrig.graphics.lineTo(360, 212);
journalTrig.graphics.lineTo(316, 231);
journalTrig.graphics.endFill();
journalTrig.alpha = 0;
journalTrig.addEventListener(MouseEvent.CLICK, ClickJournalTrig);
}
public function SetUpSide3(){
var _local1:*;
var _local2:pinkBookImg;
cabinetDoor.x = 423;
cabinetDoor.y = 102;
cabinetDoorOpen.x = 495;
cabinetDoorOpen.y = 102;
bombNotes.x = 47;
bombNotes.y = 106;
_local2 = new pinkBookImg(1116, 299);
_local1 = 0;
while (_local1 < 4) {
pinkBook[_local1] = new Sprite();
pinkBook[_local1].graphics.beginBitmapFill(_local2);
pinkBook[_local1].graphics.drawRect((_local1 * 280), 0, 280, 298);
pinkBook[_local1].graphics.endFill();
_local1++;
};
cabinetTrig.width = 12;
cabinetTrig.height = 24;
cabinetTrig.x = 426;
cabinetTrig.y = 217;
cabinetTrig.selectable = false;
cabinetTrig.addEventListener(MouseEvent.CLICK, ClickCabinet);
garbageTrig.width = 63;
garbageTrig.height = 20;
garbageTrig.x = 21;
garbageTrig.y = 282;
garbageTrig.selectable = false;
garbageTrig.addEventListener(MouseEvent.CLICK, ClickGarbage);
pinkBookTrig.graphics.beginFill(0);
pinkBookTrig.graphics.moveTo(143, 129);
pinkBookTrig.graphics.lineTo(146, 117);
pinkBookTrig.graphics.lineTo(158, 117);
pinkBookTrig.graphics.lineTo(165, 138);
pinkBookTrig.graphics.lineTo(161, 154);
pinkBookTrig.graphics.lineTo(154, 157);
pinkBookTrig.graphics.endFill();
pinkBookTrig.alpha = 0;
pinkBookTrig.addEventListener(MouseEvent.CLICK, ClickPinkBookTrig);
}
public function SetUpSide4(){
wallCabinetDoor.x = 278;
wallCabinetDoor.y = 77;
hazardTrig.x = 39;
hazardTrig.y = 280;
hazardTrig.width = 46;
hazardTrig.height = 20;
hazardTrig.selectable = false;
hazardTrig.addEventListener(MouseEvent.CLICK, ClickHazard);
mixerTrig.graphics.beginFill(0);
mixerTrig.graphics.moveTo(222, 191);
mixerTrig.graphics.lineTo(265, 191);
mixerTrig.graphics.lineTo(264, 248);
mixerTrig.graphics.lineTo(221, 248);
mixerTrig.graphics.endFill();
mixerTrig.alpha = 0;
mixerTrig.addEventListener(MouseEvent.CLICK, ClickMixerTrig);
wallCabinetDoor.addEventListener(MouseEvent.CLICK, ClickWallCabinetDoor);
}
public function SetUpSide1(){
var _local1:int;
var _local2:TextFormat;
var _local3:screwImg;
_local2 = new TextFormat();
_local3 = new screwImg(7, 7);
_local1 = 0;
while (_local1 < 4) {
screws[_local1] = new Sprite();
screws[_local1] = CreateSprite(_local3, 7, 7);
screws[_local1].name = _local1;
screws[_local1].addEventListener(MouseEvent.CLICK, ClickScrew);
_local1++;
};
bombCase.x = 179;
bombCase.y = 55;
bombCase.addEventListener(MouseEvent.CLICK, ClickBombCase);
screws[0].x = 181;
screws[0].y = 57;
screws[1].x = 412;
screws[1].y = 57;
screws[2].x = 181;
screws[2].y = 326;
screws[3].x = 412;
screws[3].y = 326;
_local2.font = "gulim";
_local2.size = 18;
_local2.color = 0xCC0000;
_local2.bold = true;
bombText.x = 194;
bombText.y = 353;
bombText.width = 209;
bombText.height = 43;
bombText.selectable = false;
bombText.text = " ARMED ARMED";
bombText.setTextFormat(_local2);
redCut.x = 485;
redCut.y = 125;
redCut.name = "false";
yellowCut.x = 480;
yellowCut.y = 142;
yellowCut.name = "false";
greenCut.x = 479;
greenCut.y = 160;
greenCut.name = "false";
brownRightCut.x = 475;
brownRightCut.y = 177;
brownRightCut.name = "false";
whiteRightCut.x = 475;
whiteRightCut.y = 190;
whiteRightCut.name = "false";
brownLeftCut.x = 99;
brownLeftCut.y = 185;
brownLeftCut.name = "false";
whiteLeftCut.x = 98;
whiteLeftCut.y = 196;
whiteLeftCut.name = "false";
doorPadTrig.x = 205;
doorPadTrig.y = 170;
doorPadTrig.width = 24;
doorPadTrig.height = 40;
doorPadTrig.selectable = false;
doorPadTrig.addEventListener(MouseEvent.CLICK, ClickDoorPad);
bombTrig.graphics.beginFill(0);
bombTrig.graphics.moveTo(31, 328);
bombTrig.graphics.lineTo(65, 315);
bombTrig.graphics.lineTo(90, 336);
bombTrig.graphics.lineTo(90, 394);
bombTrig.graphics.lineTo(56, 407);
bombTrig.graphics.lineTo(31, 386);
bombTrig.graphics.endFill();
bombTrig.alpha = 0;
bombTrig.addEventListener(MouseEvent.CLICK, ClickBombTrig);
bombWireTrig.graphics.beginFill(0);
bombWireTrig.graphics.moveTo(186, 63);
bombWireTrig.graphics.lineTo(412, 63);
bombWireTrig.graphics.lineTo(412, 153);
bombWireTrig.graphics.lineTo(186, 153);
bombWireTrig.graphics.endFill();
bombWireTrig.alpha = 0;
bombWireTrig.addEventListener(MouseEvent.CLICK, ClickBombWireTrig);
redCutTrig.graphics.lineStyle(6);
redCutTrig.graphics.moveTo(473, 127);
redCutTrig.graphics.curveTo(504, 134, 516, 152);
redCutTrig.alpha = 0;
redCutTrig.addEventListener(MouseEvent.CLICK, ClickRedCutTrig);
yellowCutTrig.graphics.lineStyle(6);
yellowCutTrig.graphics.moveTo(473, 147);
yellowCutTrig.graphics.curveTo(500, 149, 523, 168);
yellowCutTrig.alpha = 0;
yellowCutTrig.addEventListener(MouseEvent.CLICK, ClickYellowCutTrig);
greenCutTrig.graphics.lineStyle(6);
greenCutTrig.graphics.moveTo(473, 163);
greenCutTrig.graphics.curveTo(500, 163, 528, 181);
greenCutTrig.alpha = 0;
greenCutTrig.addEventListener(MouseEvent.CLICK, ClickGreenCutTrig);
brownRightCutTrig.graphics.lineStyle(6);
brownRightCutTrig.graphics.moveTo(473, 181);
brownRightCutTrig.graphics.curveTo(510, 183, 534, 192);
brownRightCutTrig.alpha = 0;
brownRightCutTrig.addEventListener(MouseEvent.CLICK, ClickBrownRightCutTrig);
whiteRightCutTrig.graphics.lineStyle(6);
whiteRightCutTrig.graphics.moveTo(473, 196);
whiteRightCutTrig.graphics.curveTo(513, 198, 539, 207);
whiteRightCutTrig.alpha = 0;
whiteRightCutTrig.addEventListener(MouseEvent.CLICK, ClickWhiteRightCutTrig);
brownLeftCutTrig.graphics.lineStyle(6);
brownLeftCutTrig.graphics.moveTo(121, 188);
brownLeftCutTrig.graphics.curveTo(95, 193, 79, 200);
brownLeftCutTrig.alpha = 0;
brownLeftCutTrig.addEventListener(MouseEvent.CLICK, ClickBrownLeftCutTrig);
whiteLeftCutTrig.graphics.lineStyle(6);
whiteLeftCutTrig.graphics.moveTo(121, 198);
whiteLeftCutTrig.graphics.curveTo(93, 204, 70, 211);
whiteLeftCutTrig.alpha = 0;
whiteLeftCutTrig.addEventListener(MouseEvent.CLICK, ClickWhiteLeftCutTrig);
doorTrig.graphics.beginFill(0);
doorTrig.graphics.moveTo(248, 193);
doorTrig.graphics.lineTo(274, 193);
doorTrig.graphics.lineTo(274, 203);
doorTrig.graphics.lineTo(248, 203);
doorTrig.graphics.endFill();
doorTrig.alpha = 0;
doorTrig.addEventListener(MouseEvent.CLICK, ClickDoorTrig);
}
public function ClickJournalTrig(_arg1:MouseEvent):void{
CreateBook(journal, 6, 9603006);
}
public function LoadBombWire(){
stage.addChild(bombWire);
if (redCut.name == "false"){
stage.addChild(redCut);
stage.addChild(redCutTrig);
};
if (yellowCut.name == "false"){
stage.addChild(yellowCut);
stage.addChild(yellowCutTrig);
};
if (greenCut.name == "false"){
stage.addChild(greenCut);
stage.addChild(greenCutTrig);
};
if (brownRightCut.name == "false"){
stage.addChild(brownRightCut);
stage.addChild(brownRightCutTrig);
};
if (whiteRightCut.name == "false"){
stage.addChild(whiteRightCut);
stage.addChild(whiteRightCutTrig);
};
if (brownLeftCut.name == "false"){
stage.addChild(brownLeftCut);
stage.addChild(brownLeftCutTrig);
};
if (whiteLeftCut.name == "false"){
stage.addChild(whiteLeftCut);
stage.addChild(whiteLeftCutTrig);
};
stage.addChild(turnDown);
}
public function LoadDrawer2(){
stage.addChild(drawerBlack);
stage.addChild(drawer2);
stage.addChild(turnDown);
}
public function DeleteSafePad(){
stage.removeChild(safePad);
stage.removeChild(turnDown);
}
public function LoadDrawer(){
stage.addChild(drawerBlack);
stage.addChild(drawer);
if (playerItems[SCREWDRIVER].own == false){
stage.addChild(playerItems[SCREWDRIVER].imgWorld);
};
stage.addChild(journalTrig);
stage.addChild(turnDown);
}
public function Click1A5(_arg1:MouseEvent):void{
playerItems[SOL1A5].imgWorld.removeEventListener(MouseEvent.CLICK, Click1A5);
GetItem(playerItems[SOL1A5], "\n\nYou found solution 1A5.", "solution 1a5");
}
public function ClickGarbage(_arg1:MouseEvent):void{
var blocker:TextField;
var ClickBombNotes:Function;
var event = _arg1;
ClickBombNotes = function (_arg1:MouseEvent):void{
bombNotes.removeEventListener(MouseEvent.CLICK, ClickBombNotes);
stage.removeChild(bombNotes);
stage.removeChild(blocker);
};
blocker = new TextField();
blocker.x = 0;
blocker.y = 0;
blocker.width = 600;
blocker.height = 420;
blocker.selectable = false;
bombNotes.addEventListener(MouseEvent.CLICK, ClickBombNotes);
stage.addChild(blocker);
stage.addChild(bombNotes);
DisplayText("You found a piece of paper.");
}
public function DeleteDoorPad(){
stage.removeChild(doorPadFull);
stage.removeChild(turnDown);
}
public function PlayerLose(){
var mainBox:Shape;
var backgroundColor:Number;
var backgroundTrans:Number;
var mainText:TextField;
var textType:TextFormat;
var GameOver:Function;
GameOver = function (_arg1:Event):void{
if (backgroundColor < 0xEE0000){
mainBox.graphics.beginFill(backgroundColor, backgroundTrans);
mainBox.graphics.drawRect(0, 0, 600, 500);
mainBox.graphics.endFill();
backgroundColor = (backgroundColor + 262144);
if (backgroundTrans < 1){
backgroundTrans = (backgroundTrans + 0.005);
};
} else {
mainText.text = "\n\n\n\nGame Over";
mainText.setTextFormat(textType);
};
if ((((mainText.textColor > 0x200000)) && ((backgroundColor >= 0xEE0000)))){
mainText.textColor = (mainText.textColor - 393216);
};
if (mainText.textColor <= 0x200000){
mainBox.removeEventListener(Event.ENTER_FRAME, GameOver);
};
};
mainBox = new Shape();
backgroundColor = 0;
backgroundTrans = 0;
mainText = new TextField();
textType = new TextFormat();
textType.align = "center";
textType.font = "gulim";
textType.bold = true;
textType.size = 48;
mainText.x = 0;
mainText.y = 0;
mainText.width = 600;
mainText.height = 500;
mainText.textColor = 0xEE0000;
mainText.selectable = false;
explode.play();
stage.addChild(mainBox);
stage.addChild(mainText);
mainBox.addEventListener(Event.ENTER_FRAME, GameOver);
Unload();
}
public function MoveWallCabinetDoor(_arg1:Event):void{
if ((((wallCabinetDoor.x > 170)) && ((wallCabinetSet == true)))){
wallCabinetDoor.x = (wallCabinetDoor.x - 4);
} else {
if ((((wallCabinetDoor.x < 278)) && ((wallCabinetSet == false)))){
wallCabinetDoor.x = (wallCabinetDoor.x + 4);
} else {
wallCabinetSet = !(wallCabinetSet);
wallCabinetDoor.removeEventListener(Event.ENTER_FRAME, MoveWallCabinetDoor);
};
};
}
public function LoadSafePad(){
var safePassword:TextField;
var button:Object;
var safeText:TextFormat;
var buttonText:TextFormat;
var i:int;
var a:int;
var b:int;
var strTemp:String;
var printsImg:Array;
var ButtonClick:Function;
ButtonClick = function (_arg1:MouseEvent):void{
if ((((playerItems[currentSelect].itemName == "pencil shavings")) && ((safePrints == "none")))){
safePrints = "all";
DeleteSafePad();
LoadSafePad();
playerItems[currentSelect].imgMenu.alpha = 0.1;
} else {
if ((((playerItems[currentSelect].itemName == "brush")) && ((safePrints == "all")))){
safePrints = "code";
DeleteSafePad();
LoadSafePad();
playerItems[currentSelect].imgMenu.alpha = 0.1;
};
};
beep.play();
if ((((safePassword.text == "-ERROR-")) || ((safePassword.text == "-OPEN-")))){
safePassword.text = "";
};
switch (_arg1.target.text){
case "Clear":
safePassword.text = "";
break;
case "Enter":
if (safePassword.text == "DEATH"){
safePassword.text = "-OPEN-";
unlock.play();
safeLocked = false;
} else {
safePassword.text = "-ERROR-";
};
break;
default:
if (safePassword.length < 7){
safePassword.appendText(_arg1.target.text);
};
break;
};
safePassword.setTextFormat(safeText);
};
safePassword = new TextField();
button = new Array(28);
safeText = new TextFormat();
buttonText = new TextFormat();
i = 0;
a = 0;
b = 0;
strTemp = "";
printsImg = new Array(28);
safePassword.x = 134;
safePassword.y = 85;
safePassword.width = 216;
safePassword.height = 37;
safePassword.selectable = false;
safeText.size = 32;
safeText.align = "right";
safeText.font = "gulim";
buttonText.size = 22;
buttonText.align = "center";
buttonText.font = "gulim";
buttonText.bold = true;
while (i < 28) {
button[i] = new TextField();
button[i].selectable = false;
button[i].border = true;
button[i].borderColor = 0;
button[i].background = true;
button[i].backgroundColor = 0xDDDDDD;
button[i].width = 25;
button[i].height = 25;
button[i].x = (145 + ((10 + 25) * a));
button[i].y = (170 + ((10 + 25) * b));
button[i].text = String.fromCharCode((i + 65));
button[i].setTextFormat(buttonText);
button[i].addEventListener(MouseEvent.CLICK, ButtonClick);
a = (a + 1);
if (a == 6){
a = 0;
b = (b + 1);
};
i = (i + 1);
};
button[26].width = 61;
button[26].text = "Clear";
button[26].setTextFormat(buttonText);
button[27].width = 61;
button[27].x = ((button[21].x + button[21].width) + 10);
button[27].text = "Enter";
button[27].setTextFormat(buttonText);
stage.addChild(safePad);
stage.addChild(safePassword);
i = 0;
while (i < 28) {
if ((((safePrints == "all")) && ((i < 26)))){
printsImg[i] = new Sprite();
printsImg[i] = CreateSprite(printsData, 24, 24);
printsImg[i].x = (button[i].x + 1);
printsImg[i].y = (button[i].y + 1);
printsImg[i].alpha = 0.6;
button[i].blendMode = "overlay";
stage.addChild(printsImg[i]);
} else {
if (safePrints == "code"){
if ((((((((((i == 3)) || ((i == 4)))) || ((i == 0)))) || ((i == 19)))) || ((i == 7)))){
printsImg[i] = new Sprite();
printsImg[i] = CreateSprite(printsData, 24, 24);
printsImg[i].x = (button[i].x + 1);
printsImg[i].y = (button[i].y + 1);
printsImg[i].alpha = 0.6;
button[i].blendMode = "overlay";
stage.addChild(printsImg[i]);
};
};
};
stage.addChild(button[i]);
i = (i + 1);
};
stage.addChild(turnDown);
}
public function SelectView(_arg1:MouseEvent):void{
var _local2:String;
_local2 = _arg1.target.name;
switch (currentView){
case "menu":
break;
case "side 1":
if (_local2 == "turnLeft"){
DeleteSide1();
LoadSide4();
currentView = "side 4";
} else {
if (_local2 == "turnRight"){
DeleteSide1();
LoadSide2();
currentView = "side 2";
};
};
break;
case "side 2":
if (_local2 == "turnLeft"){
DeleteSide2();
LoadSide1();
currentView = "side 1";
} else {
if (_local2 == "turnRight"){
DeleteSide2();
LoadSide3();
currentView = "side 3";
};
};
break;
case "side 3":
if (_local2 == "turnLeft"){
DeleteSide3();
LoadSide2();
currentView = "side 2";
} else {
if (_local2 == "turnRight"){
DeleteSide3();
LoadSide4();
currentView = "side 4";
};
};
break;
case "side 4":
if (_local2 == "turnLeft"){
DeleteSide4();
LoadSide3();
currentView = "side 3";
} else {
if (_local2 == "turnRight"){
DeleteSide4();
LoadSide1();
currentView = "side 1";
};
};
break;
case "door pad":
if (_local2 == "turnDown"){
DeleteDoorPad();
LoadSide1();
currentView = "side 1";
};
break;
case "wall safe":
if (_local2 == "turnDown"){
DeleteWallSafe();
LoadSide2();
currentView = "side 2";
};
break;
case "wall safe open":
if (_local2 == "turnDown"){
DeleteWallSafeOpen();
LoadSide2();
currentView = "side 2";
};
break;
case "safe pad":
if (_local2 == "turnDown"){
DeleteSafePad();
LoadSide2();
currentView = "side 2";
};
break;
case "drawer":
if (_local2 == "turnDown"){
DeleteDrawer();
LoadSide2();
currentView = "side 2";
};
break;
case "drawer2":
if (_local2 == "turnDown"){
DeleteDrawer2();
LoadSide2();
currentView = "side 2";
};
break;
case "bomb":
if (_local2 == "turnDown"){
DeleteBomb();
LoadSide1();
currentView = "side 1";
};
break;
case "bombwire":
if (_local2 == "turnDown"){
DeleteBombWire();
LoadBomb();
currentView = "bomb";
};
break;
default:
trace("Error at SelectView() event < 100");
};
}
public function ClickYellowCutTrig(_arg1:MouseEvent):void{
if (playerItems[currentSelect].itemName == "wire cutters"){
snap.play();
yellowCut.name = "true";
yellowCutTrig.removeEventListener(MouseEvent.CLICK, ClickYellowCutTrig);
stage.removeChild(yellowCutTrig);
stage.removeChild(yellowCut);
};
}
public function ClickBrownLeftCutTrig(_arg1:MouseEvent):void{
if (playerItems[currentSelect].itemName == "wire cutters"){
snap.play();
brownLeftCut.name = "true";
brownLeftCutTrig.removeEventListener(MouseEvent.CLICK, ClickBrownLeftCutTrig);
stage.removeChild(brownLeftCutTrig);
stage.removeChild(brownLeftCut);
if (greenCut.name == "false"){
PlayerLose();
};
};
}
public function ClickWhiteRightCutTrig(_arg1:MouseEvent):void{
if (playerItems[currentSelect].itemName == "wire cutters"){
snap.play();
whiteRightCut.name = "true";
whiteRightCutTrig.removeEventListener(MouseEvent.CLICK, ClickWhiteRightCutTrig);
stage.removeChild(whiteRightCutTrig);
stage.removeChild(whiteRightCut);
if (redCut.name == "false"){
PlayerLose();
} else {
if (whiteLeftCut.name == "true"){
powerdown.play();
bombArmed = false;
bombText.text = "";
};
};
};
}
public function MovePicture1(_arg1:Event):void{
if ((((picture1.x < 430)) && ((pictureSet == true)))){
picture1.x = (picture1.x + 5);
} else {
if ((((picture1.x > 360)) && ((pictureSet == false)))){
picture1.x = (picture1.x - 5);
} else {
pictureSet = !(pictureSet);
picture1.removeEventListener(Event.ENTER_FRAME, MovePicture1);
};
};
}
public function ClickWallSafeDial(_arg1:MouseEvent):void{
if ((((((wallSafeCode[0] == 210)) && ((wallSafeCode[1] == 330)))) && ((rotSum == 90)))){
wallSafeLocked = false;
};
if (wallSafeLocked == false){
currentView = "wall safe open";
DeleteWallSafe();
LoadWallSafeOpen();
};
}
public function CreateBook(_arg1:Array, _arg2:int, _arg3:Number){
var i:Number;
var bookBox:TextField;
var currentPage:Number;
var viewHolder:String;
var ClickPage:Function;
var ClickBookBox:Function;
var aryBook = _arg1;
var numPages = _arg2;
var bookColor = _arg3;
ClickPage = function (_arg1:MouseEvent):void{
if (_arg1.target.name == "even"){
if (currentPage != (numPages - 1)){
if (currentPage > 0){
stage.removeChild(aryBook[(currentPage - 1)]);
};
stage.removeChild(aryBook[currentPage]);
stage.addChild(aryBook[(currentPage + 1)]);
if ((currentPage + 2) <= (numPages - 1)){
stage.addChild(aryBook[(currentPage + 2)]);
};
currentPage = (currentPage + 2);
} else {
ClickBookBox(_arg1);
};
} else {
stage.removeChild(aryBook[(currentPage - 1)]);
if (numPages > currentPage){
stage.removeChild(aryBook[currentPage]);
};
if ((currentPage - 3) > 0){
stage.addChild(aryBook[(currentPage - 3)]);
};
stage.addChild(aryBook[(currentPage - 2)]);
currentPage = (currentPage - 2);
};
};
ClickBookBox = function (_arg1:MouseEvent):void{
var _local2:int;
bookBox.removeEventListener(MouseEvent.CLICK, ClickBookBox);
_local2 = 0;
while (_local2 < numPages) {
aryBook[_local2].removeEventListener(MouseEvent.CLICK, ClickPage);
_local2++;
};
stage.removeChild(bookBox);
if (numPages > currentPage){
stage.removeChild(aryBook[currentPage]);
};
if ((((currentPage > 0)) && ((currentPage <= numPages)))){
stage.removeChild(aryBook[(currentPage - 1)]);
};
currentView = viewHolder;
};
bookBox = new TextField();
currentPage = 0;
i = 0;
while (i < numPages) {
if ((i / 2) == Math.floor((i / 2))){
aryBook[i].x = (300 - (280 * i));
aryBook[i].name = "even";
} else {
aryBook[i].x = (20 - (280 * i));
aryBook[i].name = "odd";
};
aryBook[i].y = 61;
aryBook[i].addEventListener(MouseEvent.CLICK, ClickPage);
i = (i + 1);
};
bookBox.width = 590;
bookBox.height = 310;
bookBox.x = 5;
bookBox.y = 55;
bookBox.selectable = false;
bookBox.background = true;
bookBox.backgroundColor = bookColor;
bookBox.border = true;
bookBox.borderColor = 0;
bookBox.addEventListener(MouseEvent.CLICK, ClickBookBox);
viewHolder = currentView;
currentView = "menu";
stage.addChild(bookBox);
stage.addChild(aryBook[0]);
}
public function LoadDoorPad(){
var i:int;
var a:int;
var b:int;
var doorPassword:TextField;
var button:Object;
var buttonText:TextFormat;
var doorText:TextFormat;
var ButtonClick:Function;
ButtonClick = function (_arg1:MouseEvent):void{
beep.play();
if ((((doorPassword.text == "-ERR-")) || ((doorPassword.text == "-OPEN-")))){
doorPassword.text = "";
};
switch (_arg1.target.text){
case "Clear":
doorPassword.text = "";
break;
case "Enter":
if (doorPassword.text == "3972531"){
unlock.play();
doorPassword.text = "-OPEN-";
doorLocked = false;
} else {
doorPassword.text = "-ERR-";
};
break;
default:
if (doorPassword.length < 7){
doorPassword.appendText(_arg1.target.text);
};
break;
};
doorPassword.setTextFormat(doorText);
};
i = 0;
a = 0;
b = 0;
doorPassword = new TextField();
button = new Array(11);
buttonText = new TextFormat();
doorText = new TextFormat();
doorPassword.width = 160;
doorPassword.height = 52;
doorPassword.x = 208;
doorPassword.y = 76;
doorPassword.selectable = false;
buttonText.size = 28;
buttonText.align = "center";
buttonText.font = "gulim";
doorText.size = 38;
doorText.align = "right";
doorText.font = "gulim";
while (i < 11) {
button[i] = new TextField();
button[i].selectable = false;
button[i].border = true;
button[i].borderColor = 0;
button[i].background = true;
button[i].backgroundColor = 0xDDDDDD;
button[i].width = 40;
button[i].height = 35;
button[i].x = (217 + ((10 + 40) * a));
button[i].y = (172 + ((10 + 35) * b));
button[i].text = (i + 1);
button[i].setTextFormat(buttonText);
button[i].addEventListener(MouseEvent.CLICK, ButtonClick);
a = (a + 1);
if (a == 3){
a = 0;
b = (b + 1);
};
i = (i + 1);
};
buttonText.size = 24;
button[9].x = 216;
button[9].y = (button[8].y + 45);
button[9].width = 65;
button[9].height = 30;
button[9].text = "Clear";
button[9].setTextFormat(buttonText);
button[10].x = 291;
button[10].y = button[9].y;
button[10].width = 65;
button[10].height = 30;
button[10].text = "Enter";
button[10].setTextFormat(buttonText);
stage.addChild(doorPadFull);
stage.addChild(doorPassword);
i = 0;
while (i < 11) {
stage.addChild(button[i]);
i = (i + 1);
};
stage.addChild(turnDown);
}
public function ClickDocuments(_arg1:MouseEvent):void{
playerItems[DOCUMENTS].imgWorld.removeEventListener(MouseEvent.CLICK, ClickDocuments);
GetItem(playerItems[DOCUMENTS], "\n\nYou found incriminating documents.", "incriminating documents");
}
public function ClickRecipeTrig(_arg1:MouseEvent):void{
var blocker:TextField;
var ClickRecipeP1:Function;
var event = _arg1;
ClickRecipeP1 = function (_arg1:MouseEvent):void{
recipeP1.removeEventListener(MouseEvent.CLICK, ClickRecipeP1);
stage.removeChild(recipeP1);
stage.removeChild(blocker);
};
blocker = new TextField();
blocker.x = 0;
blocker.y = 0;
blocker.width = 600;
blocker.height = 420;
blocker.selectable = false;
recipeP1.addEventListener(MouseEvent.CLICK, ClickRecipeP1);
stage.addChild(blocker);
stage.addChild(recipeP1);
}
public function ClickPencilTrig(_arg1:MouseEvent):void{
GetItem(playerItems[GRAPHITE], "\n\nYou found graphite shavings.", "pencil shavings");
pencilTrig.removeEventListener(MouseEvent.CLICK, ClickPencilTrig);
}
public function ClickDoorTrig(_arg1:MouseEvent):void{
if (doorLocked == true){
DisplayText("It's locked...");
} else {
if (bombArmed == true){
PlayerLose();
} else {
PlayerWin();
};
};
}
public function ClickBombCase(_arg1:MouseEvent):void{
if (screwsOff == 4){
bombClosed = false;
stage.removeChild(bombCase);
};
}
public function ClickGreenCutTrig(_arg1:MouseEvent):void{
if (playerItems[currentSelect].itemName == "wire cutters"){
snap.play();
greenCut.name = "true";
greenCutTrig.removeEventListener(MouseEvent.CLICK, ClickGreenCutTrig);
stage.removeChild(greenCutTrig);
stage.removeChild(greenCut);
if (yellowCut.name == "false"){
PlayerLose();
};
};
}
public function SetUp(){
var i:int;
var keyMenuData:keyMenuImg;
var keyWorldData:keyWorldImg;
var cuttersMenuData:cuttersMenuImg;
var cuttersWorldData:cuttersWorldImg;
var acidMenuData:acidMenuImg;
var sol1a5MenuData:sol1a5MenuImg;
var sol1a5WorldData:sol1a5WorldImg;
var sol23gMenuData:sol23gMenuImg;
var sol23gWorldData:sol23gWorldImg;
var solxMenuData:solxMenuImg;
var solxWorldData:solxWorldImg;
var graphiteMenuData:graphiteMenuImg;
var brushMenuData:brushMenuImg;
var brushWorldData:brushWorldImg;
var screwdriverMenuData:screwdriverMenuImg;
var screwdriverWorldData:screwdriverWorldImg;
var virusMenuData:virusMenuImg;
var cureMenuData:cureMenuImg;
var documentsMenuData:documentsMenuImg;
var documentsWorldData:documentsWorldImg;
var blocker:TextField;
var btnPlay:TextField;
var btnMoreGames:TextField;
var mainText:TextFormat;
var ClickBtnPlay:Function;
ClickBtnPlay = function (_arg1:MouseEvent):void{
btnPlay.removeEventListener(MouseEvent.CLICK, ClickBtnPlay);
stage.removeChild(blocker);
stage.removeChild(btnPlay);
stage.removeChild(btnMoreGames);
FadeIn();
};
i = 0;
i = 0;
while (i < 16) {
playerItems[i] = new Item();
i = (i + 1);
};
keyMenuData = new keyMenuImg(100, 100);
keyWorldData = new keyWorldImg(9, 7);
playerItems[KEY].LoadItem(keyMenuData, keyWorldData, 9, 7, true);
playerItems[KEY].slot = KEY;
playerItems[KEY].imgWorld.x = 226;
playerItems[KEY].imgWorld.y = 320;
playerItems[KEY].imgWorld.addEventListener(MouseEvent.CLICK, ClickKey);
cuttersMenuData = new cuttersMenuImg(100, 100);
cuttersWorldData = new cuttersWorldImg(14, 12);
playerItems[CUTTERS].LoadItem(cuttersMenuData, cuttersWorldData, 14, 12, true);
playerItems[CUTTERS].slot = CUTTERS;
playerItems[CUTTERS].imgWorld.x = 455;
playerItems[CUTTERS].imgWorld.y = 363;
playerItems[CUTTERS].imgWorld.addEventListener(MouseEvent.CLICK, ClickCutters);
acidMenuData = new acidMenuImg(100, 100);
playerItems[ACID].LoadItem(acidMenuData, null, 0, 0, false);
playerItems[ACID].slot = ACID;
sol1a5MenuData = new sol1a5MenuImg(100, 100);
sol1a5WorldData = new sol1a5WorldImg(7, 22);
playerItems[SOL1A5].LoadItem(sol1a5MenuData, sol1a5WorldData, 7, 22, true);
playerItems[SOL1A5].slot = SOL1A5;
playerItems[SOL1A5].imgWorld.x = 287;
playerItems[SOL1A5].imgWorld.y = 85;
playerItems[SOL1A5].imgWorld.addEventListener(MouseEvent.CLICK, Click1A5);
sol23gMenuData = new sol23gMenuImg(100, 100);
sol23gWorldData = new sol23gWorldImg(7, 22);
playerItems[SOL23G].LoadItem(sol23gMenuData, sol23gWorldData, 7, 22, true);
playerItems[SOL23G].slot = SOL23G;
playerItems[SOL23G].imgWorld.x = 324;
playerItems[SOL23G].imgWorld.y = 116;
playerItems[SOL23G].imgWorld.addEventListener(MouseEvent.CLICK, Click23G);
solxMenuData = new solxMenuImg(100, 100);
solxWorldData = new solxWorldImg(7, 22);
playerItems[SOLX].LoadItem(solxMenuData, solxWorldData, 7, 22, true);
playerItems[SOLX].slot = SOLX;
playerItems[SOLX].imgWorld.x = 363;
playerItems[SOLX].imgWorld.y = 145;
playerItems[SOLX].imgWorld.addEventListener(MouseEvent.CLICK, ClickX);
graphiteMenuData = new graphiteMenuImg(100, 100);
playerItems[GRAPHITE].LoadItem(graphiteMenuData, null, 0, 0, false);
playerItems[GRAPHITE].slot = GRAPHITE;
brushMenuData = new brushMenuImg(100, 100);
brushWorldData = new brushWorldImg(17, 18);
playerItems[BRUSH].LoadItem(brushMenuData, brushWorldData, 17, 18, true);
playerItems[BRUSH].slot = BRUSH;
playerItems[BRUSH].imgWorld.x = 468;
playerItems[BRUSH].imgWorld.y = 178;
playerItems[BRUSH].imgWorld.addEventListener(MouseEvent.CLICK, ClickBrush);
screwdriverMenuData = new screwdriverMenuImg(100, 100);
screwdriverWorldData = new screwdriverWorldImg(36, 50);
playerItems[SCREWDRIVER].LoadItem(screwdriverMenuData, screwdriverWorldData, 36, 50, true);
playerItems[SCREWDRIVER].slot = SCREWDRIVER;
playerItems[SCREWDRIVER].imgWorld.x = 234;
playerItems[SCREWDRIVER].imgWorld.y = 229;
playerItems[SCREWDRIVER].imgWorld.addEventListener(MouseEvent.CLICK, ClickScrewdriver);
virusMenuData = new virusMenuImg(100, 100);
playerItems[VIRUS].LoadItem(virusMenuData, null, 0, 0, false);
playerItems[VIRUS].slot = VIRUS;
cureMenuData = new cureMenuImg(100, 100);
playerItems[CURE].LoadItem(cureMenuData, null, 0, 0, false);
playerItems[CURE].slot = CURE;
documentsMenuData = new documentsMenuImg(100, 100);
documentsWorldData = new documentsWorldImg(9, 7);
playerItems[DOCUMENTS].LoadItem(documentsMenuData, documentsWorldData, 102, 66, true);
playerItems[DOCUMENTS].slot = DOCUMENTS;
playerItems[DOCUMENTS].imgWorld.x = 226;
playerItems[DOCUMENTS].imgWorld.y = 288;
playerItems[DOCUMENTS].imgWorld.addEventListener(MouseEvent.CLICK, ClickDocuments);
menu.blendMode = "add";
menu.y = 420;
menu.addEventListener(MouseEvent.CLICK, ClickMenu);
menuHighlight.x = 3;
menuHighlight.y = 427;
menuHighlight.width = 42;
menuHighlight.height = 36;
menuHighlight.selectable = false;
menuHighlight.border = true;
menuHighlight.borderColor = 0xFFFF00;
turnRight.x = 575;
turnRight.y = 0;
turnRight.alpha = 0.2;
turnRight.name = "turnRight";
turnRight.addEventListener(MouseEvent.CLICK, SelectView);
turnLeft.x = 0;
turnLeft.y = 0;
turnLeft.alpha = 0.2;
turnLeft.name = "turnLeft";
turnLeft.addEventListener(MouseEvent.CLICK, SelectView);
turnDown.x = 0;
turnDown.y = 395;
turnDown.alpha = 0.2;
turnDown.name = "turnDown";
turnDown.addEventListener(MouseEvent.CLICK, SelectView);
stage.stageFocusRect = false;
LoadSide1();
stage.addChild(menu);
stage.addChild(menuHighlight);
blocker = new TextField();
btnPlay = new TextField();
btnMoreGames = new TextField();
mainText = new TextFormat();
mainText.font = "gulim";
mainText.size = 32;
mainText.align = "center";
mainText.bold = true;
mainText.color = 0xEEEEEE;
blocker.x = 0;
blocker.y = 0;
blocker.width = 600;
blocker.height = 470;
blocker.background = true;
blocker.backgroundColor = 0;
blocker.selectable = false;
blocker.text = "\n\n\nEscape the Lab";
blocker.setTextFormat(mainText);
mainText.size = 14;
mainText.color = 0;
mainText.leading = -8;
btnPlay.x = 75;
btnPlay.y = 285;
btnPlay.width = 175;
btnPlay.height = 30;
btnPlay.background = true;
btnPlay.backgroundColor = 0xDDDDDD;
btnPlay.border = true;
btnPlay.borderColor = 0xAAAAAA;
btnPlay.selectable = false;
btnPlay.text = "\nPlay This Game";
btnPlay.setTextFormat(mainText);
btnPlay.addEventListener(MouseEvent.CLICK, ClickBtnPlay);
mainText.url = "http://www.escapegames24.com";
btnMoreGames.x = 350;
btnMoreGames.y = 285;
btnMoreGames.width = 175;
btnMoreGames.height = 30;
btnMoreGames.background = true;
btnMoreGames.backgroundColor = 0xDDDDDD;
btnMoreGames.border = true;
btnMoreGames.borderColor = 0xAAAAAA;
btnMoreGames.border = true;
btnMoreGames.selectable = false;
btnMoreGames.text = "\nPlay More Games";
btnMoreGames.setTextFormat(mainText);
stage.addChild(blocker);
stage.addChild(btnPlay);
stage.addChild(btnMoreGames);
}
public function ClickDrawer2Trig(_arg1:MouseEvent):void{
LoadDrawer2();
currentView = "drawer2";
}
public function DeleteDrawer(){
stage.removeChild(drawerBlack);
stage.removeChild(drawer);
if (playerItems[SCREWDRIVER].own == false){
stage.addChild(playerItems[SCREWDRIVER].imgWorld);
};
stage.removeChild(journalTrig);
stage.removeChild(turnDown);
}
public function DeleteSide1(){
stage.removeChild(side1);
stage.removeChild(doorTrig);
stage.removeChild(doorPadTrig);
if (playerItems[CUTTERS].own == false){
stage.removeChild(playerItems[CUTTERS].imgWorld);
};
stage.removeChild(turnRight);
stage.removeChild(turnLeft);
stage.removeChild(bombTrig);
}
public function DeleteSide2(){
stage.removeChild(side2);
stage.removeChild(wallSafeTrig);
stage.removeChild(picture1);
stage.removeChild(drawerTrig);
stage.removeChild(drawer2Trig);
if (playerItems[KEY].own == false){
stage.removeChild(playerItems[KEY].imgWorld);
};
stage.removeChild(bombBookTrig);
stage.removeChild(recipeTrig);
if (safeOpen == false){
stage.removeChild(safeDoor);
stage.removeChild(safePadTrig);
} else {
stage.removeChild(safeDoorOpen);
};
stage.removeChild(safeTrig);
stage.removeChild(pencilTrig);
stage.removeChild(newsTrig);
stage.removeChild(turnRight);
stage.removeChild(turnLeft);
}
public function DeleteSide3(){
stage.removeChild(side3);
stage.removeChild(pinkBookTrig);
if (playerItems[BRUSH].own == false){
stage.removeChild(playerItems[BRUSH].imgWorld);
};
if (cabinetClosed == true){
stage.removeChild(cabinetDoor);
} else {
stage.removeChild(cabinetDoorOpen);
};
stage.removeChild(cabinetTrig);
stage.removeChild(garbageTrig);
stage.removeChild(turnRight);
stage.removeChild(turnLeft);
}
public function DeleteSide4(){
stage.removeChild(side4);
if (playerItems[SOL1A5].own == false){
stage.removeChild(playerItems[SOL1A5].imgWorld);
};
if (playerItems[SOL23G].own == false){
stage.removeChild(playerItems[SOL23G].imgWorld);
};
if (playerItems[SOLX].own == false){
stage.removeChild(playerItems[SOLX].imgWorld);
};
stage.removeChild(wallCabinetDoor);
stage.removeChild(hazardTrig);
stage.removeChild(mixerTrig);
stage.removeChild(turnRight);
stage.removeChild(turnLeft);
}
public function ClickBrush(_arg1:MouseEvent):void{
playerItems[BRUSH].imgWorld.removeEventListener(MouseEvent.CLICK, ClickBrush);
GetItem(playerItems[BRUSH], "\n\nYou found a brush.", "brush");
}
public function ClickWallSafeTrig(_arg1:MouseEvent):void{
currentView = "wall safe";
DeleteSide2();
LoadWallSafe();
}
public function ClickMenu(_arg1:MouseEvent):void{
var _local2:Number;
_local2 = 0;
if ((((_arg1.stageY > 426)) && ((_arg1.stageY < 463)))){
_local2 = Math.floor(((_arg1.stageX - 3) / 46));
if (_local2 < 0){
_local2 = 0;
};
currentSelect = _local2;
menuHighlight.x = (3 + (46 * _local2));
};
}
public function ClickScrewdriver(_arg1:MouseEvent):void{
playerItems[SCREWDRIVER].imgWorld.removeEventListener(MouseEvent.CLICK, ClickScrewdriver);
GetItem(playerItems[SCREWDRIVER], "\n\nYou found a screwdriver.", "screwdriver");
}
public function CreateSprite(_arg1:BitmapData, _arg2:Number, _arg3:Number):Sprite{
var _local4:Sprite;
_local4 = new Sprite();
_local4.graphics.beginBitmapFill(_arg1);
_local4.graphics.drawRect(0, 0, _arg2, _arg3);
_local4.graphics.endFill();
return (_local4);
}
public function DeleteBomb(){
var _local1:int;
stage.removeChild(bomb);
stage.removeChild(bombText);
stage.removeChild(bombWireTrig);
if (bombClosed == true){
stage.removeChild(bombCase);
_local1 = 0;
while (_local1 < 4) {
if (screws[_local1].name < 5){
stage.removeChild(screws[_local1]);
};
_local1++;
};
};
stage.removeChild(turnDown);
}
public function ClickNewsTrig(_arg1:MouseEvent):void{
var blocker:TextField;
var ClickNews:Function;
var event = _arg1;
ClickNews = function (_arg1:MouseEvent):void{
news.removeEventListener(MouseEvent.CLICK, ClickNews);
stage.removeChild(news);
stage.removeChild(blocker);
};
blocker = new TextField();
blocker.x = 0;
blocker.y = 0;
blocker.width = 600;
blocker.height = 420;
blocker.selectable = false;
news.addEventListener(MouseEvent.CLICK, ClickNews);
stage.addChild(blocker);
stage.addChild(news);
}
public function ClickArrowRight(_arg1:MouseEvent):void{
if (wallSafeCode[0] == -1){
wallSafeCode[0] = rotSum;
};
rotSum = (rotSum + 30);
if (rotSum >= 360){
rotSum = 0;
};
RotateSafeDial(rotSum);
}
public function ClickCutters(_arg1:MouseEvent):void{
playerItems[CUTTERS].imgWorld.removeEventListener(MouseEvent.CLICK, ClickCutters);
GetItem(playerItems[CUTTERS], "\n\nYou found wire cutters.", "wire cutters");
}
public function CombineMenu(){
var mainBox:TextField;
var leftItemBox:TextField;
var rightItemBox:TextField;
var cancelBox:TextField;
var okBox:TextField;
var textType:TextFormat;
var leftItem:Number;
var rightItem:Number;
var viewTemp:String;
var ClickLeftItemBox:Function;
var ClickRightItemBox:Function;
var ClickCancelBox:Function;
var ClickOkBox:Function;
ClickLeftItemBox = function (_arg1:MouseEvent):void{
if ((((((((((playerItems[currentSelect].itemName == "solution x")) || ((playerItems[currentSelect].itemName == "solution 1a5")))) || ((playerItems[currentSelect].itemName == "solution 23g")))) && (!((currentSelect == rightItem))))) && ((leftItem == -1)))){
stage.removeChild(playerItems[currentSelect].imgMenu);
playerItems[currentSelect].imgMenu.x = 125;
playerItems[currentSelect].imgMenu.y = 185;
playerItems[currentSelect].imgMenu.scaleX = 1;
playerItems[currentSelect].imgMenu.scaleY = 1;
leftItemBox.text = ("\n" + playerItems[currentSelect].itemName);
leftItemBox.setTextFormat(textType);
leftItem = currentSelect;
stage.addChild(playerItems[currentSelect].imgMenu);
};
};
ClickRightItemBox = function (_arg1:MouseEvent):void{
if ((((((((((playerItems[currentSelect].itemName == "solution x")) || ((playerItems[currentSelect].itemName == "solution 1a5")))) || ((playerItems[currentSelect].itemName == "solution 23g")))) && (!((currentSelect == leftItem))))) && ((rightItem == -1)))){
stage.removeChild(playerItems[currentSelect].imgMenu);
playerItems[currentSelect].imgMenu.x = 375;
playerItems[currentSelect].imgMenu.y = 185;
playerItems[currentSelect].imgMenu.scaleX = 1;
playerItems[currentSelect].imgMenu.scaleY = 1;
rightItemBox.text = ("\n" + playerItems[currentSelect].itemName);
rightItemBox.setTextFormat(textType);
rightItem = currentSelect;
stage.addChild(playerItems[currentSelect].imgMenu);
};
};
ClickCancelBox = function (_arg1:MouseEvent):void{
cancelBox.removeEventListener(MouseEvent.CLICK, ClickCancelBox);
okBox.removeEventListener(MouseEvent.CLICK, ClickOkBox);
stage.removeChild(mainBox);
stage.removeChild(leftItemBox);
stage.removeChild(rightItemBox);
if (leftItem > -1){
stage.removeChild(playerItems[leftItem].imgMenu);
PlaceInMenu(playerItems[leftItem]);
};
if (rightItem > -1){
stage.removeChild(playerItems[rightItem].imgMenu);
PlaceInMenu(playerItems[rightItem]);
};
stage.removeChild(cancelBox);
stage.removeChild(okBox);
currentView = viewTemp;
};
ClickOkBox = function (_arg1:MouseEvent):void{
ClickCancelBox(_arg1);
if ((((((leftItem > -1)) && ((rightItem > -1)))) && ((((playerItems[leftItem].itemName == "solution x")) || ((playerItems[rightItem].itemName == "solution x")))))){
if ((((playerItems[leftItem].itemName == "solution 1a5")) || ((playerItems[rightItem].itemName == "solution 1a5")))){
GetItem(playerItems[VIRUS], "You created the Morteven Virus.", "virus");
playerItems[SOL1A5].imgMenu.alpha = 0.1;
playerItems[SOL1A5].itemName = "empty";
playerItems[SOLX].imgMenu.alpha = 0.1;
playerItems[SOLX].itemName = "empty";
};
if ((((playerItems[leftItem].itemName == "solution 23g")) || ((playerItems[rightItem].itemName == "solution 23g")))){
GetItem(playerItems[CURE], "You created the Morteven Virus cure.", "cure");
playerItems[SOL23G].imgMenu.alpha = 0.1;
playerItems[SOL23G].itemName = "empty";
playerItems[SOLX].imgMenu.alpha = 0.1;
playerItems[SOLX].itemName = "empty";
};
} else {
DisplayText("Those items don't seem to go together.");
};
};
mainBox = new TextField();
leftItemBox = new TextField();
rightItemBox = new TextField();
cancelBox = new TextField();
okBox = new TextField();
textType = new TextFormat();
leftItem = -1;
rightItem = -1;
viewTemp = currentView;
currentView = "menu";
textType.align = "center";
textType.font = "gulim";
textType.bold = true;
textType.size = 24;
mainBox.x = 50;
mainBox.y = 35;
mainBox.width = 500;
mainBox.height = 350;
mainBox.selectable = false;
mainBox.background = true;
mainBox.backgroundColor = 0x1F1F1F;
mainBox.border = true;
mainBox.borderColor = 0xFFFFFF;
mainBox.textColor = 0xFFFFFF;
mainBox.text = "\nWhat would you like to combine?";
mainBox.setTextFormat(textType);
textType.size = 14;
leftItemBox.x = 100;
leftItemBox.y = 135;
leftItemBox.width = 150;
leftItemBox.height = 150;
leftItemBox.selectable = false;
leftItemBox.background = true;
leftItemBox.backgroundColor = 0xDDDDDD;
leftItemBox.border = true;
leftItemBox.borderColor = 0xFFFFFF;
leftItemBox.textColor = 0;
leftItemBox.text = "\nItem 1";
leftItemBox.setTextFormat(textType);
leftItemBox.addEventListener(MouseEvent.CLICK, ClickLeftItemBox);
rightItemBox.x = 350;
rightItemBox.y = 135;
rightItemBox.width = 150;
rightItemBox.height = 150;
rightItemBox.selectable = false;
rightItemBox.background = true;
rightItemBox.backgroundColor = 0xDDDDDD;
rightItemBox.border = true;
rightItemBox.borderColor = 0xFFFFFF;
rightItemBox.textColor = 0;
rightItemBox.text = "\nItem 2";
rightItemBox.setTextFormat(textType);
rightItemBox.addEventListener(MouseEvent.CLICK, ClickRightItemBox);
textType.leading = -8;
cancelBox.x = 125;
cancelBox.y = 335;
cancelBox.width = 100;
cancelBox.height = 30;
cancelBox.selectable = false;
cancelBox.background = true;
cancelBox.backgroundColor = 0xBBBBBB;
cancelBox.border = true;
cancelBox.borderColor = 0x888888;
cancelBox.textColor = 0;
cancelBox.text = "\nCancel";
cancelBox.setTextFormat(textType);
cancelBox.addEventListener(MouseEvent.CLICK, ClickCancelBox);
okBox.x = 375;
okBox.y = 335;
okBox.width = 100;
okBox.height = 30;
okBox.selectable = false;
okBox.background = true;
okBox.backgroundColor = 0xBBBBBB;
okBox.border = true;
okBox.borderColor = 0x888888;
okBox.textColor = 0;
okBox.text = "\nOk";
okBox.setTextFormat(textType);
okBox.addEventListener(MouseEvent.CLICK, ClickOkBox);
textType.leading = 0;
stage.addChild(mainBox);
stage.addChild(leftItemBox);
stage.addChild(rightItemBox);
stage.addChild(cancelBox);
stage.addChild(okBox);
}
public function Unload(){
turnRight.removeEventListener(MouseEvent.CLICK, SelectView);
turnLeft.removeEventListener(MouseEvent.CLICK, SelectView);
turnDown.removeEventListener(MouseEvent.CLICK, SelectView);
doorTrig.removeEventListener(MouseEvent.CLICK, ClickDoorTrig);
doorPadTrig.removeEventListener(MouseEvent.CLICK, ClickDoorPad);
bombTrig.removeEventListener(MouseEvent.CLICK, ClickBombTrig);
bombWireTrig.removeEventListener(MouseEvent.CLICK, ClickBombWireTrig);
picture1.removeEventListener(MouseEvent.CLICK, ClickPicture1);
drawerTrig.removeEventListener(MouseEvent.CLICK, ClickDrawerTrig);
drawer2Trig.removeEventListener(MouseEvent.CLICK, ClickDrawerTrig);
wallSafeTrig.removeEventListener(MouseEvent.CLICK, ClickWallSafeTrig);
safePadTrig.removeEventListener(MouseEvent.CLICK, ClickSafePadTrig);
safeTrig.removeEventListener(MouseEvent.CLICK, ClickSafe);
newsTrig.removeEventListener(MouseEvent.CLICK, ClickNewsTrig);
pinkBookTrig.removeEventListener(MouseEvent.CLICK, ClickPinkBookTrig);
garbageTrig.removeEventListener(MouseEvent.CLICK, ClickGarbage);
cabinetTrig.removeEventListener(MouseEvent.CLICK, ClickCabinet);
hazardTrig.removeEventListener(MouseEvent.CLICK, ClickHazard);
wallCabinetDoor.removeEventListener(MouseEvent.CLICK, ClickWallCabinetDoor);
mixerTrig.removeEventListener(MouseEvent.CLICK, ClickMixerTrig);
}
public function ClickRedCutTrig(_arg1:MouseEvent):void{
if (playerItems[currentSelect].itemName == "wire cutters"){
snap.play();
redCut.name = "true";
redCutTrig.removeEventListener(MouseEvent.CLICK, ClickRedCutTrig);
stage.removeChild(redCutTrig);
stage.removeChild(redCut);
if ((((brownRightCut.name == "false")) || ((brownLeftCut.name == "false")))){
PlayerLose();
};
};
}
public function RotateSafeDial(_arg1:Number){
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = ((_arg1 * Math.PI) / 180);
_local3 = 0;
_local4 = 0;
wallSafeDial.rotation = _arg1;
if (_arg1 < 180){
_local3 = (((54.45 * Math.sin(_local2)) * Math.sin((((Math.PI / 2) + _local2) / 2))) / Math.sin(((Math.PI - _local2) / 2)));
_local4 = (((54.45 * Math.sin(_local2)) * Math.sin((((Math.PI / 2) - _local2) / 2))) / Math.sin(((Math.PI - _local2) / 2)));
} else {
if (_arg1 == 180){
_local3 = 77;
_local4 = -77;
} else {
if (_arg1 > 180){
_local3 = (((54.45 * Math.sin(_local2)) * Math.sin((((Math.PI / 2) + _local2) / 2))) / Math.sin(((Math.PI - _local2) / 2)));
_local4 = (((54.45 * Math.sin(_local2)) * Math.sin((((Math.PI / 2) - _local2) / 2))) / Math.sin(((Math.PI - _local2) / 2)));
};
};
};
wallSafeDial.x = (145 + _local3);
wallSafeDial.y = (166 - _local4);
}
public function ClickMixerTrig(_arg1:MouseEvent):void{
CombineMenu();
}
public function ClickArrowLeft(_arg1:MouseEvent):void{
if (((!((wallSafeCode[0] == -1))) && ((wallSafeCode[1] == -1)))){
wallSafeCode[1] = rotSum;
};
rotSum = (rotSum - 30);
if (rotSum < 0){
rotSum = (360 + rotSum);
};
RotateSafeDial(rotSum);
if (rotSum == 0){
wallSafeCode[0] = -1;
wallSafeCode[1] = -1;
};
}
public function EndGame(){
var mainBox:Shape;
var backgroundTrans:Number;
var mainText:TextField;
var textType:TextFormat;
var WinGame:Function;
WinGame = function (_arg1:Event):void{
if (backgroundTrans < 0.3){
mainBox.graphics.beginFill(0, backgroundTrans);
mainBox.graphics.drawRect(0, 0, 600, 500);
mainBox.graphics.endFill();
backgroundTrans = (backgroundTrans + 0.005);
} else {
textType.size = 22;
textType.leftMargin = 50;
textType.rightMargin = 50;
if (playerItems[VIRUS].own == true){
mainText.text = "\n\n\nA fews days after having escaped the lab. You hunt down Mark in hopes infecting him with the virus. Just as you manage to inject him with it, he stabs you in the chest with a knife. As you lay there, helpless and within moments of dieing, you stare up at Mark. He glances back and laughs. 'Farewell John,' he says as he pulls the cure from his coat pocket and walks away.";
};
if (playerItems[CURE].own == true){
mainText.text = "\n\n\nImmediately after escaping, you bring the cure to the Hayton City Hospital where it is then administered to the patients. The local police become skeptical of how you managed to obtain the cure. After undergoing a brief investigation, the police conclude that you were the one responsible for the virus outbreak. They also conclude that you had presented the cure for reasons of ego. They arrest you. Weeks later, you are sentenced for life.";
};
if (playerItems[DOCUMENTS].own == true){
mainText.text = "\n\n\nYou manage to escape with you life, but at the cost of 14 others. You take the incriminating documents to the police. A few days later, the patients at Hayton City Hospital die, and there is a nation wide man hunt for Mark, but he is never found.";
};
if ((((playerItems[CURE].own == true)) && (playerItems[DOCUMENTS].own))){
mainText.text = "\n\n\nImmediately after escaping, you bring the cure to the Hayton City Hospital where it is then administered to the patients. The local police become skeptical of how you managed to obtain the cure. Upon their inquery, you present them with the incriminating documents. Days later, a nation wide man hunt for Mark takes place. He is later found in a restaurant bathroom, having killed himself.";
};
mainText.setTextFormat(textType);
};
if ((((mainText.textColor < 0xEEEEEE)) && ((backgroundTrans >= 0.3)))){
mainText.textColor = (mainText.textColor + 394758);
};
if (mainText.textColor >= 0xEEEEEE){
mainBox.removeEventListener(Event.ENTER_FRAME, WinGame);
};
};
mainBox = new Shape();
backgroundTrans = 0;
mainText = new TextField();
textType = new TextFormat();
textType.align = "center";
textType.font = "gulim";
textType.bold = true;
textType.size = 48;
mainText.x = 0;
mainText.y = 0;
mainText.wordWrap = true;
mainText.selectable = false;
mainText.width = 600;
mainText.height = 500;
mainText.textColor = 0;
stage.addChild(mainBox);
stage.addChild(mainText);
mainBox.addEventListener(Event.ENTER_FRAME, WinGame);
}
public function DeleteWallSafe(){
stage.removeChild(wallSafe);
stage.removeChild(wallSafeDial);
stage.removeChild(arrowLeft);
stage.removeChild(arrowRight);
stage.removeChild(turnDown);
}
public function ClickBombTrig(_arg1:MouseEvent):void{
currentView = "bomb";
DeleteSide1();
LoadBomb();
}
public function GetItem(_arg1:Item, _arg2:String, _arg3:String){
var viewTemp:String;
var boxText:TextField;
var textType:TextFormat;
var ClickBoxText:Function;
var theItem = _arg1;
var displayText = _arg2;
var itemID = _arg3;
ClickBoxText = function (_arg1:MouseEvent):void{
stage.removeChild(boxText);
stage.removeChild(theItem.imgMenu);
PlaceInMenu(theItem);
boxText.removeEventListener(MouseEvent.CLICK, ClickBoxText);
theItem.imgMenu.removeEventListener(MouseEvent.CLICK, ClickBoxText);
currentView = viewTemp;
};
viewTemp = currentView;
boxText = new TextField();
textType = new TextFormat();
textType.align = "center";
textType.font = "gulim";
textType.size = 24;
boxText.x = 50;
boxText.y = 35;
boxText.width = 500;
boxText.height = 350;
boxText.selectable = false;
boxText.background = true;
boxText.backgroundColor = 0x1F1F1F;
boxText.border = true;
boxText.borderColor = 0xFFFFFF;
boxText.textColor = 0xFFFFFF;
boxText.text = ("\n" + displayText);
boxText.setTextFormat(textType);
theItem.imgMenu.x = (300 - (theItem.imgMenu.width / 2));
theItem.imgMenu.y = (260 - (theItem.imgMenu.height / 2));
if (theItem.own == false){
theItem.own = true;
theItem.itemName = itemID;
};
if (theItem.hasWorld == true){
stage.removeChild(theItem.imgWorld);
};
stage.addChild(boxText);
stage.addChild(theItem.imgMenu);
currentView = "menu";
boxText.addEventListener(MouseEvent.CLICK, ClickBoxText);
theItem.imgMenu.addEventListener(MouseEvent.CLICK, ClickBoxText);
}
public function ClickDoorPad(_arg1:MouseEvent):void{
currentView = "door pad";
DeleteSide1();
LoadDoorPad();
}
public function ClickWallCabinetDoor(_arg1:MouseEvent):void{
wallCabinetDoor.addEventListener(Event.ENTER_FRAME, MoveWallCabinetDoor);
}
public function LoadWallSafeOpen(){
stage.addChild(wallSafeOpen);
if (playerItems[DOCUMENTS].own == false){
stage.addChild(playerItems[DOCUMENTS].imgWorld);
};
stage.addChild(turnDown);
}
public function ClickBrownRightCutTrig(_arg1:MouseEvent):void{
if (playerItems[currentSelect].itemName == "wire cutters"){
snap.play();
brownRightCut.name = "true";
brownRightCutTrig.removeEventListener(MouseEvent.CLICK, ClickBrownRightCutTrig);
stage.removeChild(brownRightCutTrig);
stage.removeChild(brownRightCut);
if (greenCut.name == "false"){
PlayerLose();
};
};
}
public function ClickHazard(_arg1:MouseEvent):void{
GetItem(playerItems[ACID], "\n\nYou found sulfuric acid.", "sulfuric acid");
hazardTrig.removeEventListener(MouseEvent.CLICK, ClickHazard);
}
public function LoadWallSafe(){
stage.addChild(wallSafe);
stage.addChild(wallSafeDial);
stage.addChild(arrowLeft);
stage.addChild(arrowRight);
stage.addChild(turnDown);
}
public function ClickScrew(_arg1:MouseEvent):void{
if (playerItems[currentSelect].itemName == "screwdriver"){
screwsOff = (screwsOff + 1);
stage.removeChild(screws[_arg1.target.name]);
_arg1.target.name = 5;
if (screwsOff == 4){
playerItems[currentSelect].imgMenu.alpha = 0.1;
};
};
}
public function Click23G(_arg1:MouseEvent):void{
playerItems[SOL23G].imgWorld.removeEventListener(MouseEvent.CLICK, Click23G);
GetItem(playerItems[SOL23G], "\n\nYou found solution 23G.", "solution 23g");
}
public function ClickCabinet(_arg1:MouseEvent):void{
if (cabinetClosed == true){
if (cabinetLocked == false){
stage.addChild(cabinetDoorOpen);
stage.removeChild(cabinetDoor);
cabinetTrig.x = 520;
cabinetTrig.y = 238;
stage.removeChild(cabinetTrig);
stage.addChild(cabinetTrig);
cabinetClosed = false;
} else {
if (playerItems[currentSelect].itemName == "sulfuric acid"){
DisplayText("You used the sulfuric acid.");
cabinetLocked = false;
playerItems[currentSelect].imgMenu.alpha = 0.1;
} else {
DisplayText("The handle's been welded some how... it won't budge.");
};
};
} else {
stage.addChild(cabinetDoor);
stage.removeChild(cabinetDoorOpen);
cabinetTrig.x = 426;
cabinetTrig.y = 217;
stage.removeChild(cabinetTrig);
stage.addChild(cabinetTrig);
cabinetClosed = true;
};
}
public function ClickKey(_arg1:MouseEvent):void{
playerItems[KEY].imgWorld.removeEventListener(MouseEvent.CLICK, ClickKey);
GetItem(playerItems[KEY], "\n\nYou found a key.", "key");
}
public function ClickPinkBookTrig(_arg1:MouseEvent):void{
CreateBook(pinkBook, 4, 10161998);
}
public function PlaceInMenu(_arg1:Item){
playerItems[_arg1.slot] = _arg1;
_arg1.imgMenu.x = (3 + (46 * _arg1.slot));
_arg1.imgMenu.y = 427;
_arg1.imgMenu.scaleX = 0.42;
_arg1.imgMenu.scaleY = 0.36;
stage.addChild(_arg1.imgMenu);
stage.swapChildren(_arg1.imgMenu, menu);
stage.swapChildren(menu, menuHighlight);
}
public function ClickX(_arg1:MouseEvent):void{
playerItems[SOLX].imgWorld.removeEventListener(MouseEvent.CLICK, ClickX);
GetItem(playerItems[SOLX], "\n\nYou found solution X.", "solution x");
}
}
}//package EscapetheLab_fla
Section 2
//acidMenuImg (acidMenuImg)
package {
import flash.display.*;
public dynamic class acidMenuImg extends BitmapData {
public function acidMenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 3
//arrowLeftImg (arrowLeftImg)
package {
import flash.display.*;
public dynamic class arrowLeftImg extends BitmapData {
public function arrowLeftImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 4
//arrowRightImg (arrowRightImg)
package {
import flash.display.*;
public dynamic class arrowRightImg extends BitmapData {
public function arrowRightImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 5
//beepSnd (beepSnd)
package {
import flash.media.*;
public dynamic class beepSnd extends Sound {
}
}//package
Section 6
//bombBookImg (bombBookImg)
package {
import flash.display.*;
public dynamic class bombBookImg extends BitmapData {
public function bombBookImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 7
//bombCaseImg (bombCaseImg)
package {
import flash.display.*;
public dynamic class bombCaseImg extends BitmapData {
public function bombCaseImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 8
//bombImg (bombImg)
package {
import flash.display.*;
public dynamic class bombImg extends BitmapData {
public function bombImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 9
//bombNotesImg (bombNotesImg)
package {
import flash.display.*;
public dynamic class bombNotesImg extends BitmapData {
public function bombNotesImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 10
//bombWireImg (bombWireImg)
package {
import flash.display.*;
public dynamic class bombWireImg extends BitmapData {
public function bombWireImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 11
//brownLeftCutImg (brownLeftCutImg)
package {
import flash.display.*;
public dynamic class brownLeftCutImg extends BitmapData {
public function brownLeftCutImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 12
//brownRightCutImg (brownRightCutImg)
package {
import flash.display.*;
public dynamic class brownRightCutImg extends BitmapData {
public function brownRightCutImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 13
//brushMenuImg (brushMenuImg)
package {
import flash.display.*;
public dynamic class brushMenuImg extends BitmapData {
public function brushMenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 14
//brushWorldImg (brushWorldImg)
package {
import flash.display.*;
public dynamic class brushWorldImg extends BitmapData {
public function brushWorldImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 15
//cabinetDoorImg (cabinetDoorImg)
package {
import flash.display.*;
public dynamic class cabinetDoorImg extends BitmapData {
public function cabinetDoorImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 16
//cabinetDoorOpenImg (cabinetDoorOpenImg)
package {
import flash.display.*;
public dynamic class cabinetDoorOpenImg extends BitmapData {
public function cabinetDoorOpenImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 17
//creditsImg (creditsImg)
package {
import flash.display.*;
public dynamic class creditsImg extends BitmapData {
public function creditsImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 18
//cureMenuImg (cureMenuImg)
package {
import flash.display.*;
public dynamic class cureMenuImg extends BitmapData {
public function cureMenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 19
//cuttersMenuImg (cuttersMenuImg)
package {
import flash.display.*;
public dynamic class cuttersMenuImg extends BitmapData {
public function cuttersMenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 20
//cuttersWorldImg (cuttersWorldImg)
package {
import flash.display.*;
public dynamic class cuttersWorldImg extends BitmapData {
public function cuttersWorldImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 21
//documentsMenuImg (documentsMenuImg)
package {
import flash.display.*;
public dynamic class documentsMenuImg extends BitmapData {
public function documentsMenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 22
//documentsWorldImg (documentsWorldImg)
package {
import flash.display.*;
public dynamic class documentsWorldImg extends BitmapData {
public function documentsWorldImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 23
//doorPadFullImg (doorPadFullImg)
package {
import flash.display.*;
public dynamic class doorPadFullImg extends BitmapData {
public function doorPadFullImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 24
//drawer2Img (drawer2Img)
package {
import flash.display.*;
public dynamic class drawer2Img extends BitmapData {
public function drawer2Img(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 25
//drawerBlackImg (drawerBlackImg)
package {
import flash.display.*;
public dynamic class drawerBlackImg extends BitmapData {
public function drawerBlackImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 26
//drawerImg (drawerImg)
package {
import flash.display.*;
public dynamic class drawerImg extends BitmapData {
public function drawerImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 27
//explodeSnd (explodeSnd)
package {
import flash.media.*;
public dynamic class explodeSnd extends Sound {
}
}//package
Section 28
//graphiteMenuImg (graphiteMenuImg)
package {
import flash.display.*;
public dynamic class graphiteMenuImg extends BitmapData {
public function graphiteMenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 29
//greenCutImg (greenCutImg)
package {
import flash.display.*;
public dynamic class greenCutImg extends BitmapData {
public function greenCutImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 30
//Item (Item)
package {
import flash.display.*;
public class Item {
public var imgMenu:Sprite;
public var slot:int;// = 0
public var own:Boolean;// = false
public var itemName:String;// = ""
public var imgWorld:Sprite;
public var hasWorld:Boolean;// = false
public function Item(){
itemName = "";
imgWorld = new Sprite();
imgMenu = new Sprite();
hasWorld = false;
slot = 0;
own = false;
super();
}
public function LoadItem(_arg1:BitmapData, _arg2:BitmapData, _arg3:Number, _arg4:Number, _arg5:Boolean):void{
imgMenu.graphics.beginBitmapFill(_arg1);
imgMenu.graphics.drawRect(0, 0, 100, 100);
imgMenu.graphics.endFill();
if (_arg5 == true){
imgWorld.graphics.beginBitmapFill(_arg2);
imgWorld.graphics.drawRect(0, 0, _arg3, _arg4);
imgWorld.graphics.endFill();
hasWorld = true;
};
}
}
}//package
Section 31
//journalImg (journalImg)
package {
import flash.display.*;
public dynamic class journalImg extends BitmapData {
public function journalImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 32
//keyMenuImg (keyMenuImg)
package {
import flash.display.*;
public dynamic class keyMenuImg extends BitmapData {
public function keyMenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 33
//keyWorldImg (keyWorldImg)
package {
import flash.display.*;
public dynamic class keyWorldImg extends BitmapData {
public function keyWorldImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 34
//menuImg (menuImg)
package {
import flash.display.*;
public dynamic class menuImg extends BitmapData {
public function menuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 35
//newsImg (newsImg)
package {
import flash.display.*;
public dynamic class newsImg extends BitmapData {
public function newsImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 36
//picture1Img (picture1Img)
package {
import flash.display.*;
public dynamic class picture1Img extends BitmapData {
public function picture1Img(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 37
//pinkBookImg (pinkBookImg)
package {
import flash.display.*;
public dynamic class pinkBookImg extends BitmapData {
public function pinkBookImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 38
//powerdownSnd (powerdownSnd)
package {
import flash.media.*;
public dynamic class powerdownSnd extends Sound {
}
}//package
Section 39
//printsImg (printsImg)
package {
import flash.display.*;
public dynamic class printsImg extends BitmapData {
public function printsImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 40
//recipeP1Img (recipeP1Img)
package {
import flash.display.*;
public dynamic class recipeP1Img extends BitmapData {
public function recipeP1Img(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 41
//redCutImg (redCutImg)
package {
import flash.display.*;
public dynamic class redCutImg extends BitmapData {
public function redCutImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 42
//safeDoorImg (safeDoorImg)
package {
import flash.display.*;
public dynamic class safeDoorImg extends BitmapData {
public function safeDoorImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 43
//safeDoorOpenImg (safeDoorOpenImg)
package {
import flash.display.*;
public dynamic class safeDoorOpenImg extends BitmapData {
public function safeDoorOpenImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 44
//safePadImg (safePadImg)
package {
import flash.display.*;
public dynamic class safePadImg extends BitmapData {
public function safePadImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 45
//screwdriverMenuImg (screwdriverMenuImg)
package {
import flash.display.*;
public dynamic class screwdriverMenuImg extends BitmapData {
public function screwdriverMenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 46
//screwdriverWorldImg (screwdriverWorldImg)
package {
import flash.display.*;
public dynamic class screwdriverWorldImg extends BitmapData {
public function screwdriverWorldImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 47
//screwImg (screwImg)
package {
import flash.display.*;
public dynamic class screwImg extends BitmapData {
public function screwImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 48
//side1Img (side1Img)
package {
import flash.display.*;
public dynamic class side1Img extends BitmapData {
public function side1Img(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 49
//side2Img (side2Img)
package {
import flash.display.*;
public dynamic class side2Img extends BitmapData {
public function side2Img(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 50
//side3Img (side3Img)
package {
import flash.display.*;
public dynamic class side3Img extends BitmapData {
public function side3Img(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 51
//side4Img (side4Img)
package {
import flash.display.*;
public dynamic class side4Img extends BitmapData {
public function side4Img(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 52
//snapSnd (snapSnd)
package {
import flash.media.*;
public dynamic class snapSnd extends Sound {
}
}//package
Section 53
//sol1a5MenuImg (sol1a5MenuImg)
package {
import flash.display.*;
public dynamic class sol1a5MenuImg extends BitmapData {
public function sol1a5MenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 54
//sol1a5WorldImg (sol1a5WorldImg)
package {
import flash.display.*;
public dynamic class sol1a5WorldImg extends BitmapData {
public function sol1a5WorldImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 55
//sol23gMenuImg (sol23gMenuImg)
package {
import flash.display.*;
public dynamic class sol23gMenuImg extends BitmapData {
public function sol23gMenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 56
//sol23gWorldImg (sol23gWorldImg)
package {
import flash.display.*;
public dynamic class sol23gWorldImg extends BitmapData {
public function sol23gWorldImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 57
//solxMenuImg (solxMenuImg)
package {
import flash.display.*;
public dynamic class solxMenuImg extends BitmapData {
public function solxMenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 58
//solxWorldImg (solxWorldImg)
package {
import flash.display.*;
public dynamic class solxWorldImg extends BitmapData {
public function solxWorldImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 59
//turnDownImg (turnDownImg)
package {
import flash.display.*;
public dynamic class turnDownImg extends BitmapData {
public function turnDownImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 60
//turnLeftImg (turnLeftImg)
package {
import flash.display.*;
public dynamic class turnLeftImg extends BitmapData {
public function turnLeftImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 61
//turnRightImg (turnRightImg)
package {
import flash.display.*;
public dynamic class turnRightImg extends BitmapData {
public function turnRightImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 62
//unlockSnd (unlockSnd)
package {
import flash.media.*;
public dynamic class unlockSnd extends Sound {
}
}//package
Section 63
//wallCabinetDoorImg (wallCabinetDoorImg)
package {
import flash.display.*;
public dynamic class wallCabinetDoorImg extends BitmapData {
public function wallCabinetDoorImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 64
//wallSafeDialImg (wallSafeDialImg)
package {
import flash.display.*;
public dynamic class wallSafeDialImg extends BitmapData {
public function wallSafeDialImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 65
//wallSafeImg (wallSafeImg)
package {
import flash.display.*;
public dynamic class wallSafeImg extends BitmapData {
public function wallSafeImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 66
//wallSafeOpenImg (wallSafeOpenImg)
package {
import flash.display.*;
public dynamic class wallSafeOpenImg extends BitmapData {
public function wallSafeOpenImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 67
//whiteLeftCutImg (whiteLeftCutImg)
package {
import flash.display.*;
public dynamic class whiteLeftCutImg extends BitmapData {
public function whiteLeftCutImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 68
//whiteRightCutImg (whiteRightCutImg)
package {
import flash.display.*;
public dynamic class whiteRightCutImg extends BitmapData {
public function whiteRightCutImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 69
//virusMenuImg (virusMenuImg)
package {
import flash.display.*;
public dynamic class virusMenuImg extends BitmapData {
public function virusMenuImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 70
//yellowCutImg (yellowCutImg)
package {
import flash.display.*;
public dynamic class yellowCutImg extends BitmapData {
public function yellowCutImg(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package