Frame 1
Stage.showMenu = false;
_root.kongregateServices.connect();
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("9c28a067", this, 10301, true);
Frame 2
stop();
Stage.showMenu = false;
Mouse.hide();
urls_allowed = ["kongregate.com", "www.kongregate.com"];
var urlString = _root._url;
Instance of Symbol 48 MovieClip in Frame 2
on (release) {
getURL ("http://legitgames.com/index.php?pageid=AliceIsDead", "_blank");
}
Instance of Symbol 52 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.gotoAndPlay(7);
};
}
Instance of Symbol 56 MovieClip in Frame 2
on (release) {
getURL ("http://legitgames.com/index.php?pageid=AliceIsDead", "_blank");
}
Instance of Symbol 60 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.gotoAndPlay(4);
};
}
Instance of Symbol 99 MovieClip "mouse" in Frame 2
onClipEvent (enterFrame) {
this.showitem._visible = false;
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 3
Stage.showMenu = false;
stop();
Instance of Symbol 311 MovieClip "lens2" in Frame 3
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 313 MovieClip "lens" in Frame 3
onClipEvent (enterFrame) {
if (_root.lensequip == true) {
_root.level.walltext.setMask(_root.lens);
_root.level.walltext._alpha = 100;
this._x = _root._xmouse;
this._y = _root._ymouse;
}
}
Instance of Symbol 99 MovieClip "mouse" in Frame 3
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 4
stop();
Frame 6
stop();
Frame 7
stop();
Instance of Symbol 60 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.gotoAndPlay(4);
};
}
Instance of Symbol 99 MovieClip "mouse" in Frame 7
onClipEvent (enterFrame) {
this.showitem._visible = false;
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 8
var CPMStarContentSpotID = "942QC1C92AD5";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
stop();
Instance of Symbol 348 MovieClip in Frame 8
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.gotoAndPlay(9);
};
}
Instance of Symbol 388 MovieClip "legitlogo" in Frame 9
on (release) {
getURL ("http://legitgames.com/index.php?pageid=AliceIsDead", "_blank");
}
Symbol 11 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.gotoAndPlay(6);
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 11 MovieClip Frame 37
_root.gotoAndStop(6);
Instance of Symbol 43 MovieClip in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(20);
}
Instance of Symbol 43 MovieClip in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(130);
}
Instance of Symbol 43 MovieClip in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(40);
}
Instance of Symbol 43 MovieClip in Symbol 46 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(80);
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Instance of Symbol 71 MovieClip "select" in Symbol 98 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 98 MovieClip Frame 3
stop();
Symbol 98 MovieClip Frame 4
stop();
Symbol 98 MovieClip Frame 5
stop();
Symbol 98 MovieClip Frame 6
stop();
Symbol 98 MovieClip Frame 7
stop();
Symbol 98 MovieClip Frame 8
stop();
Symbol 98 MovieClip Frame 9
stop();
Symbol 98 MovieClip Frame 10
stop();
Symbol 98 MovieClip Frame 11
stop();
Symbol 98 MovieClip Frame 12
stop();
Symbol 98 MovieClip Frame 13
stop();
Symbol 98 MovieClip Frame 14
stop();
Symbol 98 MovieClip Frame 15
stop();
Symbol 185 MovieClip Frame 32
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 2
stop();
Symbol 306 MovieClip Frame 922
_root.gotoAndPlay(2);
Symbol 308 MovieClip Frame 55
_root.level.gotoAndStop(9);
Symbol 309 MovieClip Frame 1
stop();
if (_root.inventory.control.mute != true) {
_root.music.setVolume(10);
}
if (_root.boneobtained == true) {
_root.level.bone._visible = false;
}
if (_root.noteobtained == true) {
_root.level.note._visible = false;
}
if (_root.bottleobtained == true) {
_root.level.bottle._visible = false;
}
if (_root.hairremoved == true) {
_root.level.hair._visible = false;
}
Instance of Symbol 128 MovieClip "alice" in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 130 MovieClip "grass_click" in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 132 MovieClip "bone_click" in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 134 MovieClip "note_click" in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 136 MovieClip "door_click" in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 138 MovieClip "bottle_click" in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 140 MovieClip "face_click" in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(5);
};
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(3);
};
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(2);
};
}
Symbol 309 MovieClip Frame 2
stop();
if (_root.inventory.control.mute != true) {
_root.music.setVolume(20);
}
Instance of Symbol 158 MovieClip "click_hole" in Symbol 309 MovieClip Frame 2
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 2
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(1);
};
}
Symbol 309 MovieClip Frame 3
stop();
if (_root.inventory.control.mute != true) {
_root.music.setVolume(45);
}
if (_root.rockobtained == true) {
_root.level.rock._visible = false;
}
if (_root.shovelobtained == true) {
_root.level.shovel._visible = false;
}
if (_root.doorunlocked != true) {
_root.level.open_chest._visible = false;
} else {
_root.level.open_chest._visible = true;
_root.music.setVolume(85);
}
Instance of Symbol 175 MovieClip "rock_click" in Symbol 309 MovieClip Frame 3
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 177 MovieClip "shovel_click" in Symbol 309 MovieClip Frame 3
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 179 MovieClip "chest_click" in Symbol 309 MovieClip Frame 3
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 3
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(4);
};
}
Symbol 309 MovieClip Frame 4
stop();
if (_root.inventory.control.mute != true) {
_root.music.setVolume(20);
}
if (_root.webdisturbed != true) {
_root.level.spider._visible = false;
} else {
_root.level.spider.gotoAndStop(30);
_root.level.spider_click._visible = true;
}
Instance of Symbol 189 MovieClip "web" in Symbol 309 MovieClip Frame 4
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 191 MovieClip "spider_click" in Symbol 309 MovieClip Frame 4
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 4
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(3);
};
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 4
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(5);
};
}
Symbol 309 MovieClip Frame 5
stop();
if (_root.inventory.control.mute != true) {
_root.music.setVolume(10);
}
if (_root.wallcardobtained == true) {
_root.level.wallcard._visible = false;
}
Instance of Symbol 200 MovieClip "wallcard_click" in Symbol 309 MovieClip Frame 5
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 5
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(4);
};
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 5
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(1);
};
}
Symbol 309 MovieClip Frame 6
stop();
if (_root.inventory.control.mute != true) {
_root.music.setVolume(10);
}
Instance of Symbol 204 MovieClip "doorclose_click" in Symbol 309 MovieClip Frame 6
onClipEvent (load) {
this.tabEnabled = false;
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 6
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(1);
};
}
Symbol 309 MovieClip Frame 7
stop();
if (_root.inventory.control.mute != true) {
_root.music.setVolume(10);
}
Instance of Symbol 140 MovieClip "face_click" in Symbol 309 MovieClip Frame 7
onClipEvent (load) {
this.tabEnabled = false;
}
Symbol 309 MovieClip Frame 8
stop();
if (_root.inventory.control.mute != true) {
_root.music.setVolume(100);
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 8
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(3);
};
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 8
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndStop(14);
};
}
Symbol 309 MovieClip Frame 9
stop();
if (_root.inventory.control.mute != true) {
_root.music.setVolume(80);
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 9
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(8);
};
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 9
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(10);
};
}
Symbol 309 MovieClip Frame 10
stop();
if (_root.inventory.control.mute != true) {
_root.music.setVolume(50);
}
if (_root.treedoorunlocked != true) {
_root.level.treedoor_open._visible = false;
}
if ((_root.treekey == true) && (_root.keyscanned == true)) {
_root.level.treedoor_open._visible = true;
}
if (_root.keyscanned != true) {
_root.level.keycardlight._visible = false;
} else {
_root.level.keycardlight._visible = true;
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 10
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(9);
};
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 10
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(11);
};
}
Symbol 309 MovieClip Frame 11
stop();
if (_root.webdestroyed == true) {
_root.level.web2._visible = false;
_root.level.cataweb._visible = false;
}
if (_root.catdead == true) {
_root.level.cata.gotoAndStop(2);
}
if (_root.bellobtained == true) {
_root.level.click_bell._visible = false;
_root.level.bell_mc._visible = false;
}
if (_root.keyobtained == true) {
_root.level.click_key._visible = false;
_root.level.key_mc._visible = false;
}
if (_root.catdead != true) {
_root.level.click_bell._visible = false;
_root.level.bell_mc._visible = false;
_root.level.click_key._visible = false;
_root.level.key_mc._visible = false;
}
Instance of Symbol 142 MovieClip in Symbol 309 MovieClip Frame 11
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.level.gotoAndPlay(10);
};
}
Symbol 309 MovieClip Frame 12
stop();
Instance of Symbol 316 MovieClip "control" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
function resetinv() {
combine = false;
_root.active.select._visible = false;
_root.active = "none";
}
hintcounter = 0;
hintphase = 1;
globalsound = new Sound();
mute = false;
_root.c1 = 0;
_root.c2 = 0;
_root.c3 = 0;
_root.c4 = 0;
_root.c5 = 0;
_root.c6 = 0;
_root.tabChildren = false;
combine = false;
timer = 0;
_root.active = "none";
bells = new Sound();
bells.attachSound("bellbell");
_root.lockclick = new Sound();
_root.lockclick.attachSound("lockclick");
_root.granted = new Sound();
_root.granted.attachSound("granted");
_root.eegg1 = new Sound();
_root.eegg1.attachSound("eegg1");
_root.music = new Sound();
_root.music.attachSound("song1");
_root.badclick = new Sound();
_root.badclick.attachSound("bad_click");
_root.unlock = new Sound();
_root.unlock.attachSound("unlock");
_root.shovel_break = new Sound();
_root.shovel_break.attachSound("shovel_break");
_root.level.hair2 = new Sound();
_root.level.hair2.attachSound("scary_cue");
_root.level.hiss = new Sound();
_root.level.hiss.attachSound("hiss");
_root.music.start(0, 99999);
_root.music.setVolume(10);
var i = 0;
while (i < 10) {
_root["slotx" + [i]] = _root.inventory["slot_" + i]._x;
_root["sloty" + [i]] = _root.inventory["slot_" + i]._y;
i++;
}
var i = 0;
while (i < 10) {
_root.inventory["slot_" + i].item = "blank";
_root.inventory["slot_" + i].combine = i;
_root.inventory["slot_" + i].gotoAndStop("blank");
i++;
}
itemnum = [];
var i = 0;
while (i < 10) {
itemnum[i] = i;
i++;
}
}
onClipEvent (enterFrame) {
function clearMemory(mc) {
var i;
var t;
for (i in mc) {
t = typeof(eval (mc[i]));
switch (t) {
case "movieclip" :
clearMemory(mc[i]);
break;
case "function" :
break;
default :
delete mc[i];
}
}
}
if (mute == true) {
global.sound.setVolume(0);
}
_root.hint.onRelease = function () {
trace("dong");
getURL ("http://www.legitgames.com/index.php?pageid=20", "_blank");
};
_root.mute.onRelease = function () {
if (mute == false) {
globalsound.setVolume(0);
_root.mute.gotoAndStop(2);
mute = true;
} else if (mute == true) {
globalsound.setVolume(100);
mute = false;
_root.mute.gotoAndStop(1);
} else {
globalsound.setVolume(0);
mute = true;
_root.mute.gotoAndStop(2);
}
};
Mouse.hide();
var i = 0;
while (i < 10) {
j = i + 1;
if (((_root.inventory["slot_" + i].item == "blank") && (_root.inventory["slot_" + j].item != "blank")) && (j != 10)) {
trace("ya trick ya");
_root.inventory["slot_" + i].item = _root.inventory["slot_" + j].item;
_root.inventory["slot_" + i].gotoAndStop(_root.inventory["slot_" + i].item);
_root.inventory["slot_" + j].item = "blank";
_root.inventory["slot_" + j].gotoAndStop("blank");
}
i++;
}
if (_root.lensequip != true) {
_root.lens._visible = false;
_root.lens2._visible = false;
} else {
_root.lens._visible = true;
_root.lens2._visible = true;
}
if (combine && (_root.active.item != "blank")) {
_root.mouse.showitem.gotoAndPlay(_root.active.item);
_root.mouse.showitem._visible = true;
} else {
_root.mouse.showitem._visible = false;
}
if ((((((_root.c1 == 6) && (_root.c2 == 6)) && (_root.c3 == 6)) && (_root.c4 == 6)) && (_root.c5 == 6)) && (_root.c6 == 6)) {
_root.c1 = 0;
_root.c2 = 0;
_root.c3 = 0;
_root.c4 = 0;
_root.c5 = 0;
_root.c6 = 0;
_root.eegg1.start();
}
if ((((((_root.c1 == 8) && (_root.c2 == 2)) && (_root.c3 == 9)) && (_root.c4 == 2)) && (_root.c5 == 0)) && (_root.c6 == 3)) {
_root.c1 = 0;
_root.c2 = 0;
_root.c3 = 0;
_root.c4 = 0;
_root.c5 = 0;
_root.c6 = 0;
_root.level.gotoAndStop(13);
_root.inventory.gui_infotext.text = "You've won...for now.";
_root.kongregateStats.submit("Beaten", 1);
clearMemory(_root);
}
_root.level.c1.onRelease = function () {
_root.lockclick.stop();
_root.lockclick.start();
if (_root.c1 < 9) {
_root.c1++;
} else {
_root.c1 = 0;
}
};
_root.level.c2.onRelease = function () {
_root.lockclick.stop();
_root.lockclick.start();
if (_root.c2 < 9) {
_root.c2++;
} else {
_root.c2 = 0;
}
};
_root.level.c3.onRelease = function () {
_root.lockclick.stop();
_root.lockclick.start();
if (_root.c3 < 9) {
_root.c3++;
} else {
_root.c3 = 0;
}
};
_root.level.c4.onRelease = function () {
_root.lockclick.stop();
_root.lockclick.start();
if (_root.c4 < 9) {
_root.c4++;
} else {
_root.c4 = 0;
}
};
_root.level.c5.onRelease = function () {
_root.lockclick.stop();
_root.lockclick.start();
if (_root.c5 < 9) {
_root.c5++;
} else {
_root.c5 = 0;
}
};
_root.level.c6.onRelease = function () {
_root.lockclick.stop();
_root.lockclick.start();
if (_root.c6 < 9) {
_root.c6++;
} else {
_root.c6 = 0;
}
};
_root.level.alice.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
resetinv();
} else {
_root.inventory.gui_infotext.text = "Alice has seen better days. Nice dress though.";
}
};
_root.level.bone_click.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
resetinv();
} else if (_root.boneobtained != true) {
_root.inventory.gui_infotext.text = "What? She isn't using it anymore...";
_root.level.bone._visible = false;
_root.level.bone_click._visible = false;
var _local3 = 0;
while (_local3 < 10) {
if (_root.inventory["slot_" + _local3].item == "blank") {
_root.inventory["slot_" + _local3].gotoAndStop("bone");
_root.inventory["slot_" + _local3].item = "bone";
_root.inventory["slot_" + _local3].combine = a2;
_root.boneobtained = true;
break;
}
_local3++;
}
}
};
_root.level.door_click.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
resetinv();
} else {
_root.level.gotoAndStop(6);
}
};
_root.level.note_click.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
resetinv();
} else if (_root.noteobtained != true) {
_root.noteobtained = true;
_root.inventory.gui_infotext.text = "A note...";
_root.level.note._visible = false;
_root.level.note_click._visible = false;
var _local3 = 0;
while (_local3 < 10) {
if (_root.inventory["slot_" + _local3].item == "blank") {
_root.inventory["slot_" + _local3].gotoAndStop("note");
_root.inventory["slot_" + _local3].item = "note";
_root.inventory["slot_" + _local3].combine = "arfyr5";
break;
}
_local3++;
}
}
};
_root.level.rock_click.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
resetinv();
} else if (_root.rockobtained != true) {
_root.rockobtained = true;
_root.inventory.gui_infotext.text = "This rock could be useful.";
_root.level.rock._visible = false;
_root.level.rock_click._visible = false;
var _local3 = 0;
while (_local3 < 10) {
if (_root.inventory["slot_" + _local3].item == "blank") {
_root.inventory["slot_" + _local3].gotoAndStop("rock");
_root.inventory["slot_" + _local3].item = "rock";
_root.inventory["slot_" + _local3].combine = a2;
break;
}
_local3++;
}
}
};
_root.level.reset.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
resetinv();
}
};
_root.level.bottle_click.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
resetinv();
} else if (_root.bottleobtained != true) {
_root.bottleobtained = true;
_root.inventory.gui_infotext.text = "It says drink me, but it's empty. Damn.";
_root.level.bottle._visible = false;
_root.level.bottle_click._visible = false;
var _local3 = 0;
while (_local3 < 10) {
if (_root.inventory["slot_" + _local3].item == "blank") {
_root.inventory["slot_" + _local3].gotoAndStop("bottle");
_root.inventory["slot_" + _local3].item = "bottle";
_root.inventory["slot_" + _local3].combine = "245at4";
break;
}
_local3++;
}
}
};
_root.level.web.onRelease = function () {
this.tabEnabled = false;
if (_root.webdisturbed != true) {
_root.level.spider._visible = true;
_root.level.spider.gotoAndPlay(1);
_root.level.spider_click = true;
_root.level.hiss.start();
_root.webdisturbed = true;
} else if ((_root.active != "none") && (_root.webdisturbed == true)) {
if (_root.active.item == "bone") {
_root.inventory.gui_infotext.text = "You could hit it, but if you miss...";
resetinv();
}
if (_root.active.item == "bottle") {
_root.inventory.gui_infotext.text = "Even if it could fit...";
resetinv();
}
if (_root.active.item == "shard") {
_root.inventory.gui_infotext.text = "No that might hurt the spider.";
resetinv();
}
if (_root.active.item == "spear") {
_root.inventory.gui_infotext.text = "Slow down killer, it's just a spider.";
resetinv();
}
if (_root.active.item == "acid") {
_root.inventory.gui_infotext.text = "Why do you want to hurt this spider so bad?";
resetinv();
}
if (_root.active.item == "key") {
_root.inventory.gui_infotext.text = "The spider is not locked.";
resetinv();
}
if (_root.active.item == "sap") {
_root.inventory.gui_infotext.text = "Spiders don't eat syrup, but at least you tried.";
resetinv();
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "Ew, no, it might crawl on to the paper.";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "Let's just leave the spider alone.";
resetinv();
}
if (_root.active.item == "bone_sharp") {
_root.inventory.gui_infotext.text = "Why kill the spider? It could be nice.";
resetinv();
}
if (_root.active.item == "shovel") {
_root.inventory.gui_infotext.text = "It looks dangerous, better to not bother it.";
resetinv();
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "I don't think spiders gamble.";
resetinv();
}
} else if (_root.webdisturbed == true) {
_root.inventory.gui_infotext.text = "A spider...this must be its home.";
}
};
_root.level.wallcard_click.onRelease = function () {
this.tabEnabled = false;
if (_root.wallcardobtained != true) {
var _local3 = 0;
while (_local3 < 10) {
if (_root.inventory["slot_" + _local3].item == "blank") {
_root.inventory["slot_" + _local3].gotoAndStop("keycard");
_root.inventory["slot_" + _local3].item = "keycard";
_root.inventory["slot_" + _local3].combine = "adgewdf";
_root.level.wallcard._visible = false;
_root.wallcardobtained = true;
_root.inventory.gui_infotext.text = "A strange looking playing card.";
break;
}
_local3++;
}
}
};
_root.level.shovel_click.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
if (_root.active.item == "bone") {
_root.inventory.gui_infotext.text = "You aren't a dog, there is no need to bury the bone.";
resetinv();
}
if (_root.active.item == "bottle") {
_root.inventory.gui_infotext.text = "The shovel isn't thirsty.";
resetinv();
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "The shovel might warn the rabbit. Just kidding, nothing happens.";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "Rocks do not know how to use tools.";
resetinv();
}
if (_root.active.item == "acid") {
_root.inventory.gui_infotext.text = "No need to destroy anything else.";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "Rocks do not know how to use tools.";
resetinv();
}
if (_root.active.item == "spear") {
_root.inventory.gui_infotext.text = "Might be a bad idea, don't want to break the spear.";
resetinv();
}
if (_root.active.item == "sap") {
_root.inventory.gui_infotext.text = "Great, it's broken AND sticky.";
resetinv();
}
if (_root.active.item == "shard") {
_root.inventory.gui_infotext.text = "You want to what?";
resetinv();
}
if (_root.active.item == "key") {
_root.inventory.gui_infotext.text = "You unlock the shovel and beat the game. Just kidding.";
resetinv();
}
if (_root.active.item == "shovel") {
_root.inventory.gui_infotext.text = "Can't be fixed.";
resetinv();
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "This isn't the time to play cards with a shovel.";
resetinv();
}
} else if (_root.shovelobtained != true) {
var _local3 = 0;
while (_local3 < 10) {
if (_root.inventory["slot_" + _local3].item == "blank") {
_root.inventory["slot_" + _local3].gotoAndStop("shovel");
_root.inventory["slot_" + _local3].item = "shovel";
_root.inventory["slot_" + _local3].combine = "3512f";
_root.level.shovel._visible = false;
_root.shovelobtained = true;
_root.inventory.gui_infotext.text = "A big stick. Nice.";
_root.shovel_break.start();
break;
}
_local3++;
}
} else {
_root.inventory.gui_infotext.text = "Yes, you broke a shovel. Your parents must be proud.";
}
};
_root.level.doorclose_click.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
if (_root.active.item == "bone") {
_root.inventory.gui_infotext.text = "The bone is too large to fit in the lock.";
resetinv();
}
if (_root.active.item == "bottle") {
_root.inventory.gui_infotext.text = "There is nothing for the door to drink. If it could.";
resetinv();
}
if (_root.active.item == "spear") {
_root.inventory.gui_infotext.text = "You stab the door, but nothing happens.";
resetinv();
}
if (_root.active.item == "sap") {
_root.inventory.gui_infotext.text = "I don't think a sticky door will help anything.";
resetinv();
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "The door probably won't kill the rabbit.";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "You slam the rock against the door. Nothing happens.";
resetinv();
}
if (_root.active.item == "shard") {
_root.inventory.gui_infotext.text = "You try cutting the door. Nothing happens.";
resetinv();
}
if (_root.active.item == "acid") {
_root.inventory.gui_infotext.text = "You pour a little acid on the door. Nothing happens.";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "You slam the rock against the door. Nothing happens.";
resetinv();
}
if (_root.active.item == "key") {
_root.inventory.gui_infotext.text = "The key doesn't fit in this lock.";
resetinv();
}
if (_root.active.item == "bone_sharp") {
_root.inventory.gui_infotext.text = "You hear something unlock.";
_root.unlock.start();
resetinv();
hintphase = 2;
hintcounter = 0;
_root.doorunlocked = true;
}
if (_root.active.item == "shovel") {
_root.inventory.gui_infotext.text = "You try to pry open the door, but it doesn't budge.";
resetinv();
}
} else {
_root.inventory.gui_infotext.text = "No matter how hard you push or pull, the door won't open.";
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "There is no where to put the card.";
resetinv();
}
};
_root.level.chest_click.onRelease = function () {
this.tabEnabled = false;
if ((_root.active != "none") && (_root.doorunlocked != true)) {
if (_root.active.item == "bone") {
_root.inventory.gui_infotext.text = "The bone is too large to fit in the lock.";
resetinv();
}
if (_root.active.item == "bottle") {
_root.inventory.gui_infotext.text = "The bottle is not a key.";
resetinv();
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "You rub the note all over the chest. Nothing happens.";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "You slam the rock against the chest. Nothing happens.";
resetinv();
}
if (_root.active.item == "bone_sharp") {
_root.inventory.gui_infotext.text = "You try to pick the lock. Nothing happens.";
resetinv();
}
if (_root.active.item == "shovel") {
_root.inventory.gui_infotext.text = "You try to pry up the chest but won't budge.";
resetinv();
}
if (_root.active.item == "acid") {
_root.inventory.gui_infotext.text = "You pour a little on the chest, but nothing happens.";
resetinv();
}
if (_root.active.item == "spear") {
_root.inventory.gui_infotext.text = "You stab the chest. Nothing happens.";
resetinv();
}
if (_root.active.item == "sap") {
_root.inventory.gui_infotext.text = "A sticky locked chest is still a locked chests.";
resetinv();
}
if (_root.active.item == "shard") {
_root.inventory.gui_infotext.text = "You chip some paint, but that's about it.";
resetinv();
}
if (_root.active.item == "key") {
_root.inventory.gui_infotext.text = "They key is not for this lock.";
resetinv();
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "You try to slide the card in to the chest. You can't.";
resetinv();
}
} else if (_root.doorunlocked != true) {
_root.inventory.gui_infotext.text = "This fancy chest is locked. Music seems to be coming from it.";
} else {
_root.level.gotoAndStop(8);
}
};
_root.level.click_hole.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
if (_root.active.item == "bone") {
_root.inventory.gui_infotext.text = "You hold the bone towards the light. It's still just a bone.";
resetinv();
}
if (_root.active.item == "bottle") {
_root.inventory.gui_infotext.text = "The empty bottle sparkles from the sunlight, that's about it.";
resetinv();
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "The light shines through the old paper. Nothing happens.";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "The light is not impressed. Nothing happens.";
resetinv();
}
if (_root.active.item == "bone_sharp") {
_root.inventory.gui_infotext.text = "What, you're going to stab the light?";
resetinv();
}
if (_root.active.item == "shovel") {
_root.inventory.gui_infotext.text = "This is not a magic stick, it is a broken shovel. Nothing happens.";
resetinv();
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "The card does nothing.";
resetinv();
}
if (_root.active.item == "key") {
_root.inventory.gui_infotext.text = "You unlock the big hole in the sky. Good job.";
resetinv();
}
if (_root.active.item == "acid") {
_root.inventory.gui_infotext.text = "No, what goes up must come down...and burn you.";
resetinv();
}
if (_root.active.item == "shard") {
_root.inventory.gui_infotext.text = "The glass reflects some light but nothing happens.";
resetinv();
}
if (_root.active.item == "spear") {
_root.inventory.gui_infotext.text = "You threaten the hole. It is not afraid.";
resetinv();
}
if (_root.active.item == "sap") {
_root.inventory.gui_infotext.text = "Yes, why not be sticky and stranded.";
resetinv();
}
} else {
_root.inventory.gui_infotext.text = "This is the hole you fell in. Climbing back out is impossible.";
}
};
_root.level.face_click.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
if (_root.active.item == "bone") {
_root.inventory.gui_infotext.text = "The leg bone is not connected to the head bone...";
resetinv();
}
if (_root.active.item == "bottle") {
_root.inventory.gui_infotext.text = "Alice rejects your offer, because she is dead.";
resetinv();
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "I don't think Alice can read right now. She's dead.";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "That might work, if she was alive. She isn't.";
resetinv();
}
if (_root.active.item == "bone_sharp") {
_root.inventory.gui_infotext.text = "You poke Alice with the sharp bone. Nothing.";
resetinv();
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "Alice, think of a card, any card...wait.";
resetinv();
}
if (_root.active.item == "acid") {
_root.inventory.gui_infotext.text = "No, it could burn her skin...wait.";
resetinv();
}
if (_root.active.item == "spear") {
_root.inventory.gui_infotext.text = "No, you'll hurt her...wait.";
resetinv();
}
if (_root.active.item == "shard") {
_root.inventory.gui_infotext.text = "That might have hurt if she wasn't dead.";
resetinv();
}
if (_root.active.item == "sap") {
_root.inventory.gui_infotext.text = "You want to do what?";
resetinv();
}
} else if ((_root.hairremoved != true) && (_root.active == "none")) {
_root.hairremoved = true;
_root.level.hair._visible = false;
_root.inventory.gui_infotext.text = "Alice forgot to put on makeup.";
_root.level.gotoAndStop(7);
_root.level.hair2.start();
} else {
_root.inventory.gui_infotext.text = "Alice doesn't smile as much as she used to.";
}
};
_root.scroll_right.onRelease = function () {
this.tabEnabled = false;
capture = itemnum.pop();
itemnum.unshift(capture);
var _local3 = 0;
while (_local3 < 10) {
_root.inventory["slot_" + _local3]._x = _root["slotx" + itemnum[_local3]];
_root.inventory["slot_" + _local3]._y = _root["sloty" + itemnum[_local3]];
_local3++;
}
};
_root.scroll_left.onRelease = function () {
this.tabEnabled = false;
capture = itemnum.shift();
itemnum.push(capture);
var _local3 = 0;
while (_local3 < 10) {
_root.inventory["slot_" + _local3]._x = _root["slotx" + itemnum[_local3]];
_root.inventory["slot_" + _local3]._y = _root["sloty" + itemnum[_local3]];
_local3++;
}
};
if (mousedown && (_root.active != "none")) {
timer++;
}
var i = 0;
while (i < 10) {
_root.inventory["slot_" + i].onPress = function () {
if ((combine == false) && (timer == 0)) {
if (_root.active.item == this.item) {
_root.active.select._visible = false;
this.select._visible = false;
_root.active = "none";
} else if (timer >= 25) {
} else {
combine = true;
_root.active.select._visible = false;
_root.active = this;
_root.active.select._visible = true;
}
} else if (((_root.active.combine == this.combine) && (_root.active.combine == a2)) && (_root.active != this)) {
this.item = "blank";
this.gotoAndStop("blank");
this.combine = "ary3637";
_root.active.combine = "aert36";
_root.active.item = "blank";
_root.active.gotoAndStop("blank");
var _local3 = 0;
while (_local3 < 10) {
if (_root.inventory["slot_" + _local3].item == "blank") {
_root.inventory["slot_" + _local3].item = "bone_sharp";
_root.inventory["slot_" + _local3].combine = "ad31345";
_root.inventory["slot_" + _local3].gotoAndStop("bone_sharp");
_root.badclick.start();
_root.inventory.gui_infotext.text = "You sharpen the bone using the rough rock.";
_root.active.select._visible = false;
_root.active = "none";
combine = false;
break;
}
_local3++;
}
} else if (((_root.active.combine == this.combine) && (_root.active.combine == a2)) && (_root.active != this)) {
this.item = "blank";
this.gotoAndStop("blank");
this.combine = "ary3637";
_root.active.combine = "aert36";
_root.active.item = "blank";
_root.active.gotoAndStop("blank");
var _local3 = 0;
while (_local3 < 10) {
if (_root.inventory["slot_" + _local3].item == "blank") {
_root.inventory["slot_" + _local3].item = "bone_sharp";
_root.inventory["slot_" + _local3].combine = "ad31345";
_root.inventory["slot_" + _local3].gotoAndStop("bone_sharp");
_root.badclick.start();
_root.inventory.gui_infotext.text = "You sharpen the bone using the rough rock.";
_root.active.select._visible = false;
_root.active = "none";
combine = false;
break;
}
_local3++;
}
} else if (((_root.active.combine == this.combine) && (_root.active.combine == "spear")) && (_root.active != this)) {
this.item = "blank";
this.gotoAndStop("blank");
this.combine = "ary3633d7";
_root.active.combine = "aert3436";
_root.active.item = "blank";
_root.active.gotoAndStop("blank");
var _local3 = 0;
while (_local3 < 10) {
if (_root.inventory["slot_" + _local3].item == "blank") {
_root.inventory["slot_" + _local3].item = "spear";
_root.inventory["slot_" + _local3].combine = "addf31345";
_root.inventory["slot_" + _local3].gotoAndStop("spear");
_root.badclick.start();
_root.inventory.gui_infotext.text = "You've made a spear, nice job.";
_root.active.select._visible = false;
_root.active = "none";
combine = false;
break;
}
_local3++;
}
} else {
_root.inventory.gui_infotext.text = " ";
combine = false;
_root.active.select._visible = false;
_root.active = "none";
}
};
i++;
}
_root.level.sapclick.onRelease = function () {
this.tabEnabled = false;
if ((_root.active != "none") && (_root.stickyshovel != true)) {
if (_root.active.item == "bottle") {
_root.inventory.gui_infotext.text = "You hold the bottle under the sap but nothing happens.";
resetinv();
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "No, the note will get stuck.";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "It might add flavor, but you still shouldn't eat it.";
resetinv();
}
if (_root.active.item == "bone_sharp") {
_root.inventory.gui_infotext.text = "A sticky lock pick is a bad lock pick.";
resetinv();
}
if (_root.active.item == "shovel") {
_root.inventory.gui_infotext.text = "The stick now has sticky sap on the end of it.";
_root.active.gotoAndStop("sap");
_root.active.item = "sap";
_root.active.combine = "spear";
this.item = "blank";
this.gotoAndStop("blank");
resetinv();
_root.stickyshovel = true;
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "This looks too important to get sticky.";
resetinv();
}
} else if (_root.stickyshovel != true) {
_root.inventory.gui_infotext.text = "This tree has sticky sap. Could be useful.";
} else {
_root.inventory.gui_infotext.text = "I think you've got all the sap you need.";
resetinv();
}
};
_root.level.cataweb.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
if (_root.active.item == "acid") {
_root.inventory.gui_infotext.text = "You throw the bottle. The bottle broke, but the acid took care of the web.";
_root.active.gotoAndStop("shard");
_root.active.item = "shard";
_root.active.combine = "spear";
_root.webdestroyed = true;
resetinv();
_root.level.web2._visible = false;
hintphase = 3;
hintcounter = 0;
_root.level.cataweb._visible = false;
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "You'll have to get rid of this web first.";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "You throw the rock at the web but it just bounces back.";
resetinv();
}
if (_root.active.item == "bone_sharp") {
_root.inventory.gui_infotext.text = "The bone is sharp, but not sharp enough. Nothing happens.";
resetinv();
}
if (_root.active.item == "shovel") {
_root.inventory.gui_infotext.text = "The web is too thick.";
resetinv();
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "This is a web, not a door.";
resetinv();
}
if (_root.active.item == "sap") {
_root.inventory.gui_infotext.text = "No reason to make the web stickier.";
resetinv();
}
} else if (_root.webdestroyed != true) {
_root.inventory.gui_infotext.text = "This web is separating you from the caterpillar.";
} else {
_root.level.web2._visible = false;
resetinv();
}
};
_root.level.acid.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
if (_root.active.item == "bottle") {
_root.inventory.gui_infotext.text = "You fill the bottle with acid.";
_root.active.gotoAndStop("acid");
_root.active.item = "acid";
_root.acidbottle = true;
resetinv();
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "Lets not destroy an important note";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "It would melt.";
resetinv();
}
if (_root.active.item == "bone_sharp") {
_root.inventory.gui_infotext.text = "No, you might need this again.";
resetinv();
}
if (_root.active.item == "shovel") {
_root.inventory.gui_infotext.text = "The acid will melt the stick.";
resetinv();
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "Maybe you shouldn't have nice things.";
resetinv();
}
if (_root.active.item == "sap") {
_root.inventory.gui_infotext.text = "No way, I worked hard for this sap.";
resetinv();
}
} else if (_root.acidbottle != true) {
_root.inventory.gui_infotext.text = "This tree trunk is filled with acid.";
} else {
_root.inventory.gui_infotext.text = "That should be all the acid you need.";
resetinv();
}
};
_root.level.bcase.onRelease = function () {
if (_root.briefcase == true) {
_root.level.gotoAndStop(12);
}
};
_root.level.treedoor.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
if (_root.active.item == "bottle") {
_root.inventory.gui_infotext.text = "Doors can't drink. Besides, the bottle is empty.";
resetinv();
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "The door can't read.";
resetinv();
}
if (_root.active.item == "key") {
_root.inventory.gui_infotext.text = "Something unlocked.";
_root.treekey = true;
_root.lockclick.start();
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "You hurl the rock, but the door doesn't budge.";
resetinv();
}
if (_root.active.item == "bone_sharp") {
_root.inventory.gui_infotext.text = "This lock isn't going to be picked.";
resetinv();
}
if (_root.active.item == "shovel") {
_root.inventory.gui_infotext.text = "There is no where to wedge this in.";
resetinv();
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "Try using the keycard reader.";
resetinv();
}
if (_root.active.item == "sap") {
_root.inventory.gui_infotext.text = "A sticky locked door is still a locked door.";
resetinv();
}
if (_root.active.item == "acid") {
_root.inventory.gui_infotext.text = "The door won't melt.";
resetinv();
}
if (_root.active.item == "spear") {
_root.inventory.gui_infotext.text = "The spear just bounces off.";
resetinv();
}
if (_root.active.item == "shard") {
_root.inventory.gui_infotext.text = "You scrape the door, but nothing happens.";
resetinv();
}
} else if (_root.treekey != true) {
_root.inventory.gui_infotext.text = "This door won't budge...";
} else if ((_root.treekey == true) && (_root.keyscanned == true)) {
_root.level.treedoor_open._visible = true;
_root.briefcase = true;
hintphase = 5;
hintcounter = 0;
} else {
_root.inventory.gui_infotext.text = "You already unlocked the door, maybe there is another lock?";
resetinv();
}
};
_root.level.keypad.onRelease = function () {
this.tabEnabled = false;
if (_root.active != "none") {
if (_root.active.item == "bottle") {
_root.inventory.gui_infotext.text = "You swipe the bottle past the scanner. Nothing.";
resetinv();
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "The scanner doesn't respond.";
resetinv();
}
if (_root.active.item == "key") {
_root.inventory.gui_infotext.text = "Wrong kind of key.";
_root.treekey = true;
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "If it breaks, you're screwed.";
resetinv();
}
if (_root.active.item == "bone_sharp") {
_root.inventory.gui_infotext.text = "This lock can't be picked.";
resetinv();
}
if (_root.active.item == "shovel") {
_root.inventory.gui_infotext.text = "There is no where to wedge this in.";
resetinv();
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "Bingo.";
_root.granted.start();
_root.keyscanned = true;
_root.level.keycardlight._visible = true;
resetinv();
}
if (_root.active.item == "sap") {
_root.inventory.gui_infotext.text = "No, that might ruin the scanner.";
resetinv();
}
if (_root.active.item == "shard") {
_root.inventory.gui_infotext.text = "No, you might break the scanner.";
resetinv();
}
if (_root.active.item == "acid") {
_root.inventory.gui_infotext.text = "No, you might break it.";
resetinv();
}
if (_root.active.item == "spear") {
_root.inventory.gui_infotext.text = "No, you might break it.";
resetinv();
}
} else if (_root.keyscanned != true) {
_root.inventory.gui_infotext.text = "This looks like a keycard scanner...";
} else if ((_root.treekey == true) && (_root.keyscanned == true)) {
_root.level.treedoor_open._visible = true;
_root.briefcase = true;
} else {
_root.inventory.gui_infotext.text = "You already swiped the card, maybe there is another lock?";
resetinv();
}
};
_root.level.click_cata.onRelease = function () {
this.tabEnabled = false;
if ((_root.active != "none") && (_root.catdead != true)) {
if (_root.active.item == "shard") {
_root.inventory.gui_infotext.text = "You'd have to get too close to stab him.";
resetinv();
}
if (_root.active.item == "note") {
_root.inventory.gui_infotext.text = "He ignores the note.";
resetinv();
}
if (_root.active.item == "rock") {
_root.inventory.gui_infotext.text = "You could try, but if it doesn't kill him you're in trouble.";
resetinv();
}
if (_root.active.item == "bone_sharp") {
_root.inventory.gui_infotext.text = "The caterpillar laughs at you as you try to stab it.";
resetinv();
}
if (_root.active.item == "shovel") {
_root.inventory.gui_infotext.text = "You need something that packs a bigger punch.";
resetinv();
}
if (_root.active.item == "keycard") {
_root.inventory.gui_infotext.text = "No, the caterpillar might take it from you.";
resetinv();
}
if (_root.active.item == "sap") {
_root.inventory.gui_infotext.text = "A sticky caterpillar is still a threat.";
resetinv();
}
if (_root.active.item == "spear") {
_root.inventory.gui_infotext.text = "That's one way to get by. You pick up the caterpillar's lens.";
_root.catdead = true;
_root.level.click_bell._visible = true;
_root.level.bell_mc._visible = true;
_root.level.click_key._visible = true;
_root.level.key_mc._visible = true;
_root.level.cata.gotoAndStop(2);
_root.active.gotoAndStop("lens");
_root.active.item = "lens";
hintphase = 4;
hintcounter = 0;
resetinv();
}
} else if (_root.catdead != true) {
_root.inventory.gui_infotext.text = "This caterpillar is not going to let you pass.";
} else {
_root.inventory.gui_infotext.text = "You already killed it, no need to make a bigger mess.";
resetinv();
}
};
_root.level.click_bell.onRelease = function () {
if (_root.active != "none") {
} else {
_root.bellobtained = true;
_root.level.bell_mc._visible = false;
_root.level.click_bell._visible = false;
_root.inventory.gui_infotext.text = "A bell, I wonder if it still works...";
var _local2 = 0;
while (_local2 < 10) {
if (_root.inventory["slot_" + _local2].item == "blank") {
_root.inventory["slot_" + _local2].gotoAndStop("bell");
_root.inventory["slot_" + _local2].item = "bell";
_root.inventory["slot_" + _local2].combine = "bell";
_root.lensobtained = true;
break;
}
_local2++;
}
}
};
if (_root.active.item == "lens") {
_root.lensequip = true;
_root.mouse.showitem._visible = false;
} else {
_root.lensequip = false;
}
if (_root.active.item == "bell") {
bells.start();
_root.inventory.gui_infotext.text = "The bell rings, but nothing happens.";
resetinv();
}
_root.level.click_key.onRelease = function () {
if (_root.active != "none") {
} else {
_root.level.key_mc._visible = false;
_root.level.click_key._visible = false;
_root.inventory.gui_infotext.text = "A key...";
var _local2 = 0;
while (_local2 < 10) {
if (_root.inventory["slot_" + _local2].item == "blank") {
_root.inventory["slot_" + _local2].gotoAndStop("key");
_root.inventory["slot_" + _local2].item = "key";
_root.inventory["slot_" + _local2].combine = "key";
_root.keyobtained = true;
break;
}
_local2++;
}
}
};
}
onClipEvent (mouseUp) {
timer = 0;
mousedown = false;
}
onClipEvent (mouseDown) {
mousedown = true;
_root.active.select.gotoAndStop(1);
}
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 2
stop();
Symbol 334 MovieClip Frame 213
_root.gotoAndStop(3);
Symbol 345 MovieClip Frame 11
stop();
_root.gotoAndStop(2);
Instance of Symbol 60 MovieClip in Symbol 348 MovieClip Frame 83
onClipEvent (enterFrame) {
this.onRelease = function () {
_root.gotoAndPlay(9);
};
}
Symbol 348 MovieClip Frame 203
stop();
Symbol 353 MovieClip Frame 199
stop();
Symbol 354 MovieClip Frame 176
stop();
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 12
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 1
_parent.stop();
Symbol 388 MovieClip Frame 57
sam.play();
Symbol 388 MovieClip Frame 297
stop();
_parent.play();
_root.gotoAndStop(2);