Frame 1
cursor_mc.startDrag("true");
Mouse.hide();
this.onEnterFrame = function () {
Mouse.hide();
};
Button.prototype.useHandCursor = false;
MovieClip.prototype.useHandCursor = false;
function doSomething() {
}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("(C) Andrew Gibson 2007", doSomething);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
_root.menu = MENU;
Frame 16
stop();
Frame 100
stop();
intorly == 0;
intmasterkey == 0;
intmasterbox == 0;
intsmallkey == 0;
intredbox == 0;
intfoil == 0;
intbluntknife == 0;
intsharpknife == 0;
intscrewdriver == 0;
intcell == 0;
intwirewtape == 0;
inttape == 0;
intlock1 == 0;
intlock2 == 0;
intmachine == 0;
intscrews == 0;
intcell2 == 0;
inttweezers == 0;
intbook2 == 0;
doorOpen = new Sound();
doorOpen.attachSound("sounds");
doorOpen2 = new Sound();
doorOpen2.attachSound("door2");
snag = new Sound();
snag.attachSound("snagged");
Invsmallkey._visible = false;
Invmasterkey._visible = false;
Invredbox._visible = false;
Invfoil._visible = false;
Invbluntknife._visible = false;
Invsharpknife._visible = false;
Invscrewdriver._visible = false;
Invcell._visible = false;
Invtape._visible = false;
Invtweezers._visible = false;
if (intcell == 1) {
cell._visible = false;
Invcell._visible = true;
}
if (intcell == 2) {
Invcell._visible = false;
}
if (intscrewdriver == 4) {
Invscrewdriver._visible = true;
}
if (intfoil == 1) {
foil._visible = false;
Invfoil._visible = true;
}
if (inttape == 1) {
Invtape._visible = false;
}
Invcell.onPress = function () {
selectedItem = "cell";
infoText.text = "A battery cell{selected} ";
};
Invscrewdriver.onPress = function () {
if (intscrewdriver == 4) {
infoText.text = "I've already used that item...";
} else {
selectedItem = "screwdriver";
infoText.text = "A screwdriver{selected} ";
}
};
Invtape.onPress = function () {
selectedItem = "tape";
infoText.text = "Some duck tape{selected}";
};
if (intscrewdriver == 2) {
screwdriver._visible = false;
Invscrewdriver._visible = true;
}
if (intredbox == 1) {
Invredbox._visible = true;
}
if (inttape == 1) {
Invtape._visible = true;
}
if (inttape2 == 1) {
tapetable._visible = false;
}
if (intfoil == 2) {
Invfoil._visible = false;
}
Invredbox.onPress = function () {
infoText.text = "A locked red box";
if ((intsmallkey == 1) && (selectedItem == "key1")) {
snag.start();
infoText.text = "I unlocked the box and obtained a blunt knife";
Invredbox._visible = false;
_global.intbluntknife = 1;
_global.intredbox = 2;
_global.intsmallkey = 2;
Invbluntknife._visible = true;
}
};
Invfoil.onPress = function () {
infoText.text = "Some aluminium foil";
if ((intfoil == 1) && (selectedItem == "bluntknife")) {
snag.start();
infoText.text = "I used the foil to sharpen the knife";
Invfoil._visible = false;
Invbluntknife._visible = false;
_global.intbluntknife = 2;
_global.intsharpknife = 1;
_global.intfoil = 2;
Invsharpknife._visible = true;
}
};
if (intsharpknife == 1) {
Invsharpknife._visible = true;
}
if (intsharpknife == 2) {
Invsharpknife._visible = true;
}
if (inttweezers == 1) {
Invtweezers._visible = true;
}
if (inttweezers == 2) {
Invtweezers._visible = true;
}
if (intbluntknife == 1) {
Invbluntknife._visible = true;
}
if (intbluntknife == 2) {
Invbluntknife._visible = false;
}
Invbluntknife.onPress = function () {
if ((intbluntknife == 2) && (intfoil == 2)) {
infoText.text = "I've already used that item...";
} else {
selectedItem = "bluntknife";
infoText.text = "A blunt knife{selected} ";
}
};
Invsmallkey.onPress = function () {
if ((intsmallkey == 2) && (intredbox == 2)) {
infoText.text = "I've already used that item...";
} else {
selectedItem = "key1";
infoText.text = "A small key{selected} ";
}
};
Invsharpknife.onPress = function () {
if (intsharpknife == 2) {
infoText.text = "I've already used that item...";
} else {
selectedItem = "sharpknife";
infoText.text = "A sharpened knife{selected} ";
}
};
if (intsmallkey == 1) {
Invsmallkey._visible = true;
}
if (intsmallkey == 2) {
Invsmallkey._visible = true;
}
if (intmasterkey == 1) {
masterkey._visible = false;
Invmasterkey._visible = true;
}
Invtweezers.onPress = function () {
if ((inttweezers == 2) && (intredeye == 1)) {
infoText.text = "I've already used that item...";
} else {
selectedItem = "tweezers";
infoText.text = "A pair of tweezers{selected} ";
}
};
Invmasterkey.onPress = function () {
selectedItem = "masterkey";
infoText.text = "A master key{selected} ";
};
door.onPress = function () {
if ((intmasterkey == 1) && (selectedItem == "masterkey")) {
doorOpen2.start();
gotoAndPlay (111);
} else {
infoText.text = "The door is tightly locked";
doorOpen.start();
}
};
light.onPress = function () {
infoText.text = "That's the light switch, no use now though";
};
exit.onPress = function () {
infoText.text = "An exit sign. This is not my room";
};
Frame 101
screws.onPress = function () {
if ((intscrewdriver == 2) && (selectedItem == "screwdriver")) {
infoText.text = "I unscrewed the panel and got the red box";
screws._visible = false;
Invredbox._visible = true;
redbox._visible = false;
snag.start();
_global.intredbox = 1;
_global.intscrews = 1;
_global.intscrewdriver = 4;
} else {
infoText.text = "It's a metal panel with screws in it";
}
};
drawer1.onPress = function () {
infoText.text = "The drawer is locked";
};
drawer3.onPress = function () {
infoText.text = "The drawer is locked";
};
bar.onPress = function () {
infoText.text = "The window has been bolted down, no escape...";
};
books.onPress = function () {
infoText.text = "Various books...";
};
books2.onPress = function () {
infoText.text = "Various books...";
};
bookclick.onPress = function () {
if ((intsharpknife == 1) && (selectedItem == "sharpknife")) {
_global.intsharpknife = 2;
_global.inttweezers = 1;
_global.intbook2 = 1;
snag.start();
infoText.text = "I used the sharp knife to cut the spine of the book, out comes a pair of tweezers";
Invtweezers._visible = true;
} else if (inttweezers == 1) {
infoText.text = "The spine of this book is cut open";
} else {
infoText.text = "The spine of this book is bulging";
}
};
drawer2.onPress = function () {
gotoAndStop (102);
};
if (intredbox == 1) {
Invredbox._visible = true;
redbox._visible = false;
}
if (intredbox == 2) {
redbox._visible = false;
}
if (intscrews == 1) {
screws._visible = false;
}
if (intscrewdriver == 4) {
Invscrewdriver._visible = true;
}
Frame 102
infoText.text = "I look inside the drawer";
cell.onPress = function () {
snag.start();
_global.intcell = 1;
infoText.text = "I picked up a button cell";
cell._visible = false;
Invcell._visible = true;
};
if (intcell == 1) {
cell._visible = false;
Invcell._visible = true;
}
if (intcell2 == 2) {
cell._visible = false;
}
Frame 103
right.useHandCursor = false;
newmachine._visible = false;
screwdriver._visible = false;
wirewtape._visible = false;
wire.onPress = function () {
if ((inttape == 1) && (selectedItem == "tape")) {
wire._visible = false;
wirewtape._visible = true;
Invtape._visible = false;
_global.intlock1 = 1;
_global.intwiretape = 1;
_global.inttape = 2;
infoText.text = "I carefully taped the two wires together, I also heard a click noise";
} else {
infoText.text = "A long wire running down the wall with a cut in it";
}
};
right.onPress = function () {
gotoAndStop (104);
};
if (intcell == 2) {
Invcell._visible = false;
}
if (inttape == 2) {
Invtape._visible = false;
}
if (intwiretape == 1) {
wire._visible = false;
wirewtape._visible = true;
}
if (intmachine == 1) {
oldmachine._visible = false;
newmachine._visible = true;
}
newmachine.onPress = function () {
infoText.text = "The machine dispenses a screwdriver";
_global.intmachine = 2;
screwdriver._visible = true;
newmachine._visible = false;
oldmachine._visible = true;
_global.intscrewdriver = 1;
};
if (intscrewdriver == 2) {
screwdriver._visible = false;
}
if (intscrewdriver == 1) {
screwdriver._visible = true;
}
screwdriver.onPress = function () {
_global.intscrewdriver = 2;
snag.start();
infoText.text = "I picked up the screwdriver";
screwdriver._visible = false;
Invscrewdriver._visible = true;
};
Frame 104
infoText.text = "I look to the side of the machine";
batteryplace._visible = false;
buttongo.onPress = function () {
if ((intcell == 1) && (selectedItem == "cell")) {
infoText.text = "I placed the battery inside of the machine";
Invcell._visible = false;
batteryplace._visible = true;
buttongo._visible = false;
_global.intbatteryplace = 1;
_global.intcell = 2;
_global.intcell2 = 2;
_global.intmachine = 1;
} else {
infoText.text = "What's this for?";
}
};
if (intbatteryplace == 1) {
buttongo._visible = false;
batteryplace._visible = true;
}
if (intcell == 2) {
Invcell._visible = false;
}
if (intscrewdriver == 3) {
Invscrewdriver._visible = false;
}
Frame 105
secret.useHandCursor = false;
table.onPress = function () {
infoText.text = "It's a table";
};
vase.onPress = function () {
infoText.text = "Wow, a vase...";
};
frame.onPress = function () {
infoText.text = "It's a frame with an odd looking figure in it";
};
redeye.onPress = function () {
gotoAndStop (106);
};
if (intredeye == 1) {
redeye._visible = false;
}
secret.onPress = function () {
gotoAndStop (107);
};
Frame 106
infoText.text = "I look closer at the painting";
redeye.onPress = function () {
if ((inttweezers == 1) && (selectedItem == "tweezers")) {
infoText.text = "I extracted the red object and heard a click noise ";
snag.start();
redeye._visible = false;
_global.inttweezers = 2;
_global.intdoor = 1;
_global.intredeye = 1;
_global.intlock2 = 1;
} else {
infoText.text = "Strange, I wonder why it's there...";
}
};
if (intredeye == 1) {
redeye._visible = false;
}
Frame 107
infoText.text = "I look under the table";
tapetable.onPress = function () {
snag.start();
_global.inttape = 1;
infoText.text = "I carefully slid the duck tape from under the sellotape";
tapetable._visible = false;
Invtape._visible = true;
};
if (inttape == 1) {
tapetable._visible = false;
}
if (inttape == 2) {
tapetable._visible = false;
}
Frame 108
key2.useHandCursor = false;
key2.onPress = function () {
snag.start();
_global.intsmallkey = 1;
infoText.text = "I found a key lying on the pillow";
key2._visible = false;
Invsmallkey._visible = true;
};
if (intsmallkey == 1) {
key2._visible = false;
Invsmallkey._visible = true;
}
if (intsmallkey == 2) {
key2._visible = false;
}
bar.onPress = function () {
infoText.text = "Another barred window...";
};
tvremote.onPress = function () {
infoText.text = "A TV remote with a strange design...";
};
Frame 109
ORLY._visible = false;
tvside.onPress = function () {
infoText.text = "The speakers are around the outside of the television";
};
tv.onPress = function () {
infoText.text = "It's a TV";
};
tele.onPress = function () {
infoText.text = "An old fashioned telephone. I don't know what it's doing here though...";
};
tvon.onPress = function () {
ORLY._visible = true;
infoText.text = "I turned the TV on";
intorly = 1;
};
tvoff.onPress = function () {
ORLY._visible = false;
infoText.text = "I turned the TV off";
intorly = 2;
};
drawer1.onPress = function () {
infoText.text = "It wont move, it's locked";
};
drawer2.onPress = function () {
infoText.text = "Damn, also locked...";
};
drawer3.onPress = function () {
infoText.text = "Locked again...";
};
if (intorly == 1) {
ORLY._visible = true;
}
if (intorly == 2) {
ORLY._visible = false;
}
Frame 110
newmasterdoor._visible = false;
masterkey._visible = false;
foil.onPress = function () {
snag.start();
_global.intfoil = 1;
infoText.text = "I found a sheet of aluminium foil on the ground ";
foil._visible = false;
Invfoil._visible = true;
};
if (intfoil == 1) {
foil._visible = false;
Invfoil._visible = true;
}
if (intfoil == 2) {
foil._visible = false;
}
if (intmasterbox == 1) {
masterkey._visible = true;
newmasterdoor._visible = true;
oldmasterdoor._visible = false;
}
oldmasterdoor.onPress = function () {
if ((intlock1 == 1) && (intlock2 == 1)) {
infoText.text = "The door opens...";
oldmasterdoor._visible = false;
newmasterdoor._visible = true;
masterkey._visible = true;
_global.intmasterbox = 1;
} else {
infoText.text = "The note on the box reads: 'electromagnetically locked'";
}
};
masterkey.onPress = function () {
snag.start();
_global.intmasterkey = 1;
infoText.text = "I picked up the master key";
masterkey._visible = false;
Invmasterkey._visible = true;
};
if (intmasterkey == 1) {
masterkey._visible = false;
Invmasterkey._visible = true;
}
Frame 166
stop();
Symbol 25 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(loading_bar, _xscale , PercentLoaded);
} else {
_root.play();
}
Symbol 25 MovieClip Frame 2
gotoAndPlay (1);
Symbol 35 Button
on (release) {
gotoAndPlay (17);
}
Symbol 36 Button
on (release) {
gotoAndPlay (17);
}
Symbol 42 Button
on (release) {
gotoAndStop (100);
}
Symbol 43 Button
on (release) {
gotoAndPlay (17);
}
Symbol 55 Button
on (press) {
gotoAndStop (101);
}
Symbol 56 Button
on (release) {
gotoAndStop (110);
}
Symbol 115 Button
on (release) {
gotoAndStop (103);
}
Symbol 116 Button
on (press) {
gotoAndStop (100);
}
Symbol 124 Button
on (release) {
gotoAndStop (101);
}
Symbol 136 Button
on (release) {
gotoAndStop (105);
}
Symbol 144 Button
on (release) {
gotoAndStop (103);
}
Symbol 154 Button
on (release) {
gotoAndStop (108);
}
Symbol 155 Button
on (press) {
gotoAndStop (103);
}
Symbol 156 Button
on (release) {
gotoAndStop (105);
}
Symbol 167 Button
on (release) {
gotoAndStop (109);
}
Symbol 168 Button
on (press) {
gotoAndStop (105);
}
Symbol 184 Button
on (press) {
gotoAndStop (108);
}
Symbol 194 Button
on (release) {
gotoAndStop (100);
}
Symbol 195 Button
on (press) {
gotoAndStop (109);
}
Symbol 200 MovieClip Frame 43
stop();