Frame 1
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 2
cursor_mc.startDrag("true");
Mouse.hide();
this.onEnterFrame = function () {
Mouse.hide();
};
Button.prototype.useHandCursor = false;
MovieClip.prototype.useHandCursor = false;
Button.prototype.tabEnabled = false;
MovieClip.prototype.tabEnabled = false;
stop();
playbutton.onPress = function () {
gotoAndStop (3);
};
Frame 3
stop();
doorOpen = new Sound();
doorOpen.attachSound("door");
snag = new Sound();
snag.attachSound("snag");
switchnoise = new Sound();
switchnoise.attachSound("switch2");
doorUp = new Sound();
doorUp.attachSound("autodoor");
intdrawer1 == 0;
intdrawer2 == 0;
intpaperbasket == 0;
intpaper1 == 0;
intpaper2 == 0;
intpapertog == 0;
intbluebox == 0;
intredrod == 0;
intredhole == 0;
intbluerod == 0;
intbluehole == 0;
intgreenrod == 0;
intgreenhole == 0;
intkey == 0;
inthalo == 0;
intps3combomemo == 0;
intswitch == 0;
inttest == 0;
intmetalrod == 0;
intfanswitch == 0;
intfanoper == 0;
intfanon == 0;
intgreenplant == 0;
intgreenback == 0;
intgreenhaloguy == 0;
intgreenblob == 0;
Invpaper1._visible = false;
Invpaper2._visible = false;
Invpapertog._visible = false;
Invredrod._visible = false;
Invbluerod._visible = false;
Invgreenrod._visible = false;
Invsymbols._visible = false;
Invkey._visible = false;
Invmetalrod._visible = false;
if (intredrod == 1) {
Invredrod._visible = true;
}
if (intmetalrod == 1) {
Invmetalrod._visible = true;
}
if (intpaper1 == 1) {
Invpaper1._visible = true;
}
if (intgreenrod == 1) {
Invgreenrod._visible = true;
}
if (intpaper2 == 2) {
Invpaper2._visible = true;
}
if (intpapertog == 1) {
Invpapertog._visible = true;
}
Invgreenrod.onPress = function () {
selectedItem = "greenrod";
infoText.text = "A green coloured rod{selected} ";
};
Invbluerod.onPress = function () {
selectedItem = "bluerod";
infoText.text = "A blue coloured rod{selected} ";
};
if (intps3combomemo == 2) {
ps3note._visible = false;
Invsymbols._visible = true;
}
if (intps3combomemo == 3) {
ps3note._visible = false;
Invsymbols._visible = true;
}
Invpaper2.onPress = function () {
selectedItem = "paper2";
infoText.text = "A ripped sheet of paper{selected} ";
};
Invpapertog.onPress = function () {
infoText.text = "The paper reads: '431786'";
};
if (intkey == 1) {
Invkey._visible = true;
}
if (intkey == 2) {
Invkey._visible = true;
}
if (intbluerod == 1) {
Invbluerod._visible = true;
}
if (intmetalrod == 2) {
Invmetalrod._visible = true;
}
Invpaper1.onPress = function () {
if (((intpaper1 == 1) && (intpaper2 == 2)) && (selectedItem == "paper2")) {
snag.start();
infoText.text = "I combined the two sheets of paper";
Invpaper1._visible = false;
Invpaper2._visible = false;
Invpapertog._visible = true;
_global.intpapertog = 1;
_global.intpaper1 = 3;
_global.intpaper2 = 3;
}
};
Invsymbols.onPress = function () {
if (intps3combomemo == 3) {
infoText.text = "I've already used that item...";
} else {
selectedItem = "symbols";
infoText.text = "A list of symbols I don't understand{selected} ";
}
};
Invkey.onPress = function () {
if (intkey == 2) {
infoText.text = "I've already used that item...";
} else {
selectedItem = "key";
infoText.text = "A small key{selected} ";
}
};
Invredrod.onPress = function () {
selectedItem = "redrod";
infoText.text = "A coloured red rod{selected} ";
};
Invmetalrod.onPress = function () {
if (intmetalrod == 2) {
infoText.text = "I've already used that item...";
} else {
selectedItem = "metalrod";
infoText.text = "A small metal strip{selected} ";
}
};
infoText.text = "";
selectedItem = "";
plant1.onPress = function () {
_global.intgreenplant = 1;
};
plantback.onPress = function () {
gotoAndStop (11);
};
fanthing.onPress = function () {
gotoAndStop (12);
};
if (intfanon == 1) {
fanthing.enabled = false;
}
cursor_mc.startDrag("true");
Mouse.hide();
this.onEnterFrame = function () {
Mouse.hide();
};
Frame 4
infoText.text = "";
selectedItem = "";
redrod._visible = false;
metalrod._visible = false;
note.onPress = function () {
infoText.text = "The note on the side reads: 'Just try escaping this time, Anthony!'";
};
insidewaste.onPress = function () {
infoText.text = "Nope, nothing inside the waste paper basket";
};
underbin.onPress = function () {
infoText.text = "I look beside the bin";
gotoAndStop (10);
};
if (intdrawer1 == 1) {
_root.drawer1.gotoAndStop("open");
}
if (intdrawer1 == 2) {
_root.drawer1.gotoAndStop("closed");
}
if (intdrawer2 == 1) {
_root.drawer2.gotoAndStop("open");
}
if (intdrawer2 == 2) {
_root.drawer2.gotoAndStop("closed");
}
cursor_mc.startDrag("true");
Mouse.hide();
this.onEnterFrame = function () {
Mouse.hide();
};
bluebox.onPress = function () {
if ((intkey == 1) && (selectedItem == "key")) {
snag.start();
infoText.text = "I unlocked the small blue box with the key";
_global.intkey = 2;
redrod._visible = true;
metalrod._visible = true;
_global.intbluebox = 1;
_root.bluebox.gotoAndStop("open");
} else {
infoText.text = "A small blue box";
}
};
if (intkey == 2) {
_root.bluebox.gotoAndStop("open");
}
if (intbluebox == 1) {
redrod._visible = true;
metalrod._visible = true;
}
if (intredrod == 1) {
redrod._visible = false;
Invredrod._visible = true;
}
if (intredrod == 2) {
redrod._visible = false;
}
if (intmetalrod == 1) {
metalrod._visible = false;
Invmetalrod._visible = true;
}
if (intmetalrod == 2) {
metalrod._visible = false;
}
redrod.onPress = function () {
infoText.text = "I found a red coloured rod";
_global.intredrod = 1;
snag.start();
Invredrod._visible = true;
redrod._visible = false;
};
metalrod.onPress = function () {
infoText.text = "I found a small metal strip";
_global.intmetalrod = 1;
snag.start();
Invmetalrod._visible = true;
metalrod._visible = false;
};
Frame 5
infoText.text = "";
selectedItem = "";
redhole._visible = false;
bluehole._visible = false;
greenhole._visible = false;
greenh._visible = false;
holer._visible = false;
holeg._visible = false;
holeb._visible = false;
table.onPress = function () {
infoText.text = "A pine table";
};
computer.onPress = function () {
gotoAndStop (9);
infoText.text = "I look closer at the computer screen";
};
cursor_mc.startDrag("true");
Mouse.hide();
this.onEnterFrame = function () {
Mouse.hide();
};
if (intgreenrod == 2) {
holeg._visible = true;
}
if (intredrod == 2) {
holer._visible = true;
}
if (intbluerod == 2) {
holeb._visible = true;
}
Frame 6
infoText.text = "";
selectedItem = "";
paper2._visible = false;
ps3note._visible = false;
mail.onPress = function () {
infoText.text = "This must be the letterbox";
};
if (intpaper2 == 1) {
paper2._visible = true;
}
if (intpaper2 == 2) {
paper2._visible = false;
Invpaper2._visible = true;
}
if (intps3combomemo == 1) {
ps3note._visible = true;
}
if (intps3combomemo == 2) {
ps3note._visible = false;
Invsymbols._visible = true;
}
paper2.onPress = function () {
infoText.text = "I found a piece of paper";
_global.intpaper2 = 2;
snag.start();
Invpaper2._visible = true;
paper2._visible = false;
};
ps3note.onPress = function () {
infoText.text = "I found a note with some symbols on it";
_global.intps3combomemo = 2;
snag.start();
Invsymbols._visible = true;
ps3note._visible = false;
};
gotofan.onPress = function () {
gotoAndStop (13);
};
if (((intredrod == 2) && (intbluerod == 2)) && (intgreenrod == 2)) {
_global.intdoor = 1;
}
door.onPress = function () {
if (intdoor == 1) {
gotoAndPlay (14);
} else {
infoText.text = "The door is locked tight, obviously...";
_root.handle.gotoAndPlay("handle");
doorOpen.start();
}
};
cursor_mc.startDrag("true");
Mouse.hide();
this.onEnterFrame = function () {
Mouse.hide();
};
Frame 7
infoText.text = "I take a closer look at the strange machine";
redhole._visible = false;
bluehole._visible = false;
greenhole._visible = false;
greenholeon.onPress = function () {
if ((intgreenrod == 1) && (selectedItem == "greenrod")) {
infoText.text = "I placed the green rod in a hole";
_global.intgreenrod = 2;
_global.intgreenhole = 1;
greenhole._visible = true;
Invgreenrod._visible = false;
}
};
redholeon.onPress = function () {
if ((intredrod == 1) && (selectedItem == "redrod")) {
infoText.text = "I placed the red rod in a hole";
_global.intredrod = 2;
redhole._visible = true;
Invredrod._visible = false;
}
};
blueholeon.onPress = function () {
if ((intbluerod == 1) && (selectedItem == "bluerod")) {
infoText.text = "I placed the blue rod in a hole";
_global.intbluerod = 2;
bluehole._visible = true;
Invbluerod._visible = false;
}
};
if (intgreenrod == 2) {
greenhole._visible = true;
}
if (intbluerod == 2) {
bluehole._visible = true;
}
if (intredrod == 2) {
redhole._visible = true;
}
cursor_mc.startDrag("true");
Mouse.hide();
this.onEnterFrame = function () {
Mouse.hide();
};
Frame 8
infoText.text = "";
selectedItem = "";
greeneye.onPress = function () {
_global.intgreenhaloguy = 1;
};
backgroundgreen.onPress = function () {
_global.intgreenback = 1;
};
if (intgreenrod == 1) {
Invgreenrod._visible = true;
_root.halo2.gotoAndStop("openhalo");
}
this.onEnterFrame = function () {
if ((((intgreenhaloguy == 1) && (intgreenback == 1)) && (intgreenplant == 1)) && (intgreenblob == 1)) {
_root.halo2.gotoAndStop("openhalo");
}
};
owl2.onPress = function () {
if ((intps3combomemo == 2) && (selectedItem == "symbols")) {
infoText.text = "A laser in the bird's eyes scanned the sheet of symbols ";
_root.owl2.gotoAndPlay("movement");
doorUp.start();
_global.intps3combomemo = 3;
} else {
infoText.text = "There's a symbol etched into the birds beak, and a series of dots...";
}
};
key.onPress = function () {
Invkey._visible = true;
key._visible = false;
snag.start();
_root.infoText.text = "I found a small key inside";
_global.intkey = 1;
};
if ((intkey == 1) or (intkey == 2)) {
key._visible = false;
}
Frame 9
if (inttest == 1) {
_root.test.gotoAndStop("ok");
}
cursor_mc.startDrag("true");
Mouse.hide();
this.onEnterFrame = function () {
Mouse.hide();
};
Frame 10
blob.onPress = function () {
_global.intgreenblob = 1;
};
cursor_mc.startDrag("true");
Mouse.hide();
this.onEnterFrame = function () {
Mouse.hide();
};
Frame 11
infoText.text = "I look around the back of the plant";
if (intswitch == 1) {
_root.switch2.gotoAndStop("switchopen");
}
cursor_mc.startDrag("true");
Mouse.hide();
this.onEnterFrame = function () {
Mouse.hide();
};
Frame 12
infoText.text = "It's a switch";
if (intfanswitch == 1) {
_root.fans.gotoAndStop("off");
}
Frame 13
bluerod._visible = false;
fanoff._visible = false;
infoText.text = "I take a look at the ceiling";
fanoff.onPress = function () {
if ((intfanoper == 1) && (selectedItem == "metalrod")) {
infoText.text = "I poked around in the fan blades and found a blue rod";
fanoff._visible = true;
fanturn._visible = false;
bluerod._visible = true;
_global.intfanoper = 3;
_global.intmetalrod = 2;
_global.intfanon = 1;
}
};
if (intfanoper == 1) {
infoText.text = "The fan is turned off";
fanoff._visible = true;
fanturn._visible = false;
} else {
infoText.text = "The fan is spinning fast, it looks hazordous";
}
if (intfanoper == 3) {
fanoff._visible = true;
fanturn._visible = false;
bluerod._visible = true;
infoText.text = "The fan is off";
}
if (intbluerod == 1) {
bluerod._visible = false;
Invbluerod._visible = true;
}
if (intbluerod == 2) {
bluehole._visible = false;
bluerod._visible = false;
}
bluerod.onPress = function () {
infoText.text = "I found a blue coloured rod";
_global.intbluerod = 1;
snag.start();
Invbluerod._visible = true;
bluerod._visible = false;
};
Frame 14
stop();
Symbol 27 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(loading_bar, _xscale , PercentLoaded);
} else {
_root.play();
}
Symbol 27 MovieClip Frame 2
gotoAndPlay (1);
Symbol 216 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 217 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 218 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 219 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 220 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 30 MovieClip Frame 35
stop();
Symbol 32 MovieClip Frame 29
stop();
Symbol 34 MovieClip Frame 27
stop();
Symbol 50 MovieClip Frame 1
function LOGO_IN() {
var _local1 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Strong.easeIn, -75, 85, 12, false);
_local1.onMotionFinished = function () {
LOGO_SMASH();
var _local3 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Bounce.easeOut, 60, 85, 6, false);
var _local4 = new mx.transitions.Tween(AGlogo_mc, "_x", mx.transitions.easing.Bounce.easeOut, 30, 50, 6, false);
var _local2 = new mx.transitions.Tween(AGpresented_mc, "_y", mx.transitions.easing.Bounce.easeOut, 15, 25, 6, false);
var _local1 = new mx.transitions.Tween(AGpresented_mc, "_x", mx.transitions.easing.Bounce.easeOut, 110, 100, 6, false);
};
}
function LOGO_SMASH() {
AG_SMASH.start();
AGclick_btn._visible = true;
}
function AG_HOLD_COUNTER() {
if (AG_COUNT == AG_TIME) {
clearInterval(AG_HOLD_ID);
_level0.START_ping.broadcastMessage("presented");
this.unloadMovie();
} else {
AG_COUNT++;
}
}
_parent.stop();
var AG_SMASH = new Sound();
AG_SMASH.attachSound("Smash");
var AG_COUNT = 0;
var AG_TIME = 4;
var AG_HOLD_ID;
AG_HOLD_ID = setInterval(this, "AG_HOLD_COUNTER", 1000);
AGpresented_mc._alpha = 0;
AGclick_btn._visible = false;
AGlogo_mc._y = -70;
var AGpresented_IN = (new mx.transitions.Tween(AGpresented_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 12, false));
AGpresented_IN.onMotionFinished = function () {
LOGO_IN();
};
AGskip_btn.onRelease = function () {
AG_COUNT = AG_TIME;
AG_HOLD_COUNTER();
};
AGclick_btn.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
Symbol 64 Button
on (release) {
gotoAndStop (8);
}
Symbol 65 Button
on (release) {
gotoAndStop (4);
}
Symbol 97 MovieClip Frame 1
stop();
drawer2_btn.onPress = function () {
gotoAndStop (2);
_root.infoText.text = "I opened the bottom drawer";
_global.intdrawer2 = 1;
};
if (intdrawer2 == 3) {
drawer2_btn.enabled = false;
}
Symbol 97 MovieClip Frame 2
stop();
drawer2_btn.onPress = function () {
gotoAndStop (1);
_root.infoText.text = "I closed the bottom drawer";
_global.intdrawer2 = 2;
};
inside2.onPress = function () {
_root.infoText.text = "I picked up a ripped sheet of paper in the drawer ";
_global.intdrawer2 = 3;
_global.intpaper1 = 1;
gotoAndStop (1);
drawer2_btn.enabled = false;
_root.Invpaper1._visible = true;
_root.snag.start();
};
Symbol 99 MovieClip Frame 1
stop();
drawer1_btn.onPress = function () {
gotoAndStop (2);
_root.infoText.text = "I opened the top drawer";
_global.intdrawer1 = 1;
};
Symbol 99 MovieClip Frame 2
drawer1_btn.onPress = function () {
gotoAndStop (1);
_root.infoText.text = "I closed the top drawer";
_global.intdrawer1 = 2;
};
inside1.onPress = function () {
_root.infoText.text = "There is nothing inside this drawer...";
};
Symbol 105 MovieClip Frame 1
stop();
Symbol 109 Button
on (release) {
gotoAndStop (3);
}
Symbol 110 Button
on (release) {
gotoAndStop (5);
}
Symbol 119 Button
on (release) {
gotoAndStop (7);
}
Symbol 131 Button
on (release) {
gotoAndStop (6);
}
Symbol 140 MovieClip Frame 1
stop();
Symbol 159 Button
on (release) {
gotoAndStop (5);
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
greenrod.onPress = function () {
_root.Invgreenrod._visible = true;
greenrod._visible = false;
_root.snag.start();
_root.infoText.text = "I found a green rod inside";
_global.intgreenrod = 1;
_global.inthalo = 1;
};
if (intgreenrod == 1) {
greenrod._visible = false;
}
if (intgreenrod == 2) {
greenrod._visible = false;
}
Symbol 172 MovieClip Frame 1
stop();
if (intps3combomemo == 3) {
gotoAndStop (20);
}
Symbol 172 MovieClip Frame 20
stop();
Symbol 182 MovieClip Frame 1
stop();
var myPassword = "431786";
submit_btn.onRelease = function () {
if (password_txt.text == myPassword) {
_global.intps3combomemo = 1;
_global.inttest = 1;
gotoAndStop (2);
_root.infoText.text = "The password was correct";
} else {
_root.infoText.text = "The password seems to be incorrect";
}
};
Symbol 185 Button
on (release) {
gotoAndStop (4);
}
Symbol 192 MovieClip Frame 1
stop();
switchmc.onPress = function () {
gotoAndStop (2);
_root.switchnoise.start();
_root.infoText.text = "I flicked a switch";
_global.intswitch = 1;
_global.intpaper2 = 1;
};
Symbol 193 Button
on (release) {
gotoAndStop (3);
}
Symbol 202 MovieClip Frame 1
stop();
switchfan.onPress = function () {
gotoAndStop (2);
_root.switchnoise.start();
_root.infoText.text = "I turned the fan off";
_global.intfanswitch = 1;
_global.intfanoper = 1;
};
Symbol 202 MovieClip Frame 2
switchfan.onPress = function () {
gotoAndStop (1);
_root.switchnoise.start();
_root.infoText.text = "I turned the fan on";
_global.intfanswitch = 2;
_global.intfanoper = 2;
};
Symbol 210 Button
on (release) {
gotoAndStop (6);
}