Frame 1
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;
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
stop();
Frame 3
doorLocked = new Sound();
doorLocked.attachSound("doorlocked");
obtain = new Sound();
obtain.attachSound("gotitem");
coolevent = new Sound();
coolevent.attachSound("niceevent");
glass = new Sound();
glass.attachSound("glass");
comp = new Sound();
comp.attachSound("stuff");
switchn = new Sound();
switchn.attachSound("sound");
switch2 = new Sound();
switch2.attachSound("switch2");
intmemo == 0;
intmemo2 == 0;
intkey == 0;
intsmallkey == 0;
intgreenbox == 0;
intunlock == 0;
intpliers == 0;
intpin == 0;
intdisk == 0;
intmatch == 0;
intlitmatch == 0;
intstrike == 0;
intdvd == 0;
intswitch == 0;
intturnmemo == 0;
inthammer == 0;
intbattery == 0;
intcloset == 0;
intmenu == 0;
intdvdmenu == 0;
intdrawer == 0;
intdoor == 0;
intpower == 0;
intturn1 == 0;
intturn2 == 0;
intopenbox == 0;
intdispense == 0;
Invkey._visible = false;
Invbatt._visible = false;
Invpin._visible = false;
Invdisk._visible = false;
Invsmallkey._visible = false;
Invmatch._visible = false;
Invlitmatch._visible = false;
Invstrike._visible = false;
Invpliers._visible = false;
batt._visible = false;
if ((intkey == 1) or (intkey == 2)) {
Invkey._visible = true;
}
if ((intsmallkey == 1) or (intsmallkey == 2)) {
Invsmallkey._visible = true;
}
if (intstrike == 1) {
Invstrike._visible = true;
}
if (intbattery == 1) {
Invbatt._visible = true;
batt._visible = false;
}
if (intdisk == 2) {
Invdisk._visible = true;
} else if (intdisk == 3) {
Invdisk._visible = false;
}
if ((intpin == 1) or (intpin == 2)) {
Invpin._visible = true;
}
if ((intpliers == 1) or (intpliers == 2)) {
Invpliers._visible = true;
}
if (intmatch == 1) {
Invmatch._visible = true;
} else if (intmatch == 2) {
Invmatch._visible = false;
}
Invkey.onPress = function () {
if (intkey == 3) {
infoText.text = "I've already used this key";
} else {
selectedItem = "key";
infoText.text = "A small brass key {selected}";
}
};
Invpin.onPress = function () {
if (intpin == 2) {
infoText.text = "I've already used this pin";
} else {
selectedItem = "pin";
infoText.text = "A small, sharp pin {selected}";
}
};
Invpliers.onPress = function () {
if (intpliers == 2) {
infoText.text = "I've already used these pliers";
} else {
selectedItem = "pliers";
infoText.text = "A pair of pliers {selected}";
}
};
Invmatch.onPress = function () {
selectedItem = "match";
infoText.text = "A long lasting matchstick? {selected}";
};
Invsmallkey.onPress = function () {
if (intsmallkey == 2) {
infoText.text = "I've already used this key";
} else {
selectedItem = "smallkey";
infoText.text = "A small key {selected}";
}
};
Invkey.onPress = function () {
if (intkey == 2) {
infoText.text = "I've already used this key";
} else {
selectedItem = "key";
infoText.text = "A brass key {selected}";
}
};
Invdisk.onPress = function () {
selectedItem = "disk";
infoText.text = "A CD {selected}";
};
Invlitmatch.onPress = function () {
if (intmatch == 3) {
infoText.text = "I wont be needing this anymore";
} else {
selectedItem = "litmatch";
infoText.text = "A lit match, long lasting?! {selected}";
}
};
Invstrike.onPress = function () {
if ((intmatch == 1) && (selectedItem == "match")) {
infoText.text = "I struck the match against the rough paper and lit it";
coolevent.start();
Invmatch._visible = false;
Invlitmatch._visible = true;
_global.intlitmatch = 1;
_global.intmatch = 2;
} else if (intlitmatch == 1) {
infoText.text = "I don't think I'll need this again...";
selectedItem = "";
} else {
infoText.text = "A rough strip of card";
selectedItem = "";
}
};
if (intlitmatch == 1) {
Invlitmatch._visible = true;
Invmatch._visible = false;
}
Invbatt.onPress = function () {
selectedItem = "battery";
infoText.text = "A large battery {selected}";
};
if (intbattery == 2) {
Invbatt._visible = false;
}
infoText.text = "";
selectedItem = "";
if (intdispense == 1) {
batt._visible = true;
}
if (intunlock == 1) {
_root.door.gotoAndStop("open");
}
pin.onPress = function () {
infoText.text = "I found a small sharp pin in the very corner of the room";
_global.intpin = 1;
pin._visible = false;
Invpin._visible = true;
obtain.start();
};
batt.onPress = function () {
infoText.text = "I found a large battery";
_global.intbattery = 1;
batt._visible = false;
Invbatt._visible = true;
obtain.start();
};
if (intbattery == 1) {
Invbatt._visible = true;
batt._visible = false;
}
if (intbattery == 2) {
batt._visible = false;
}
if ((intpin == 1) or (intpin == 2)) {
pin._visible = false;
}
if (intunlock == 1) {
_root.door.gotoAndStop("open");
}
door.onPress = function () {
if (intunlock == 1) {
gotoAndStop (13);
}
};
Frame 4
infoText.text = "";
selectedItem = "";
rack._visible = false;
hanger._visible = false;
hammer._visible = false;
box.onPress = function () {
gotoAndStop (5);
};
if (intgreenbox == 1) {
_root.box.gotoAndStop("open");
}
if (intcloset == 1) {
_root.closet.gotoAndStop("closetopen");
handle._visible = false;
} else if (intcloset == 2) {
_root.closet.gotoAndStop("closetlitopen");
handle._visible = false;
hanger._visible = true;
rack._visible = true;
}
if (inthammer == 1) {
hammer._visible = true;
}
closet.onPress = function () {
if ((intsmallkey == 1) && (selectedItem == "smallkey")) {
_root.closet.gotoAndStop("closetopen");
hammer._visible = true;
_global.inthammer = 1;
_global.intsmallkey = 2;
_global.intcloset = 1;
handle._visible = false;
infoText.text = "I used the small key on the closet";
coolevent.start();
} else if (((intcloset == 1) && (intlitmatch == 1)) && (selectedItem == "litmatch")) {
_root.closet.gotoAndStop("closetlitopen");
infoText.text = "I used the lit match to illuminate the closet";
coolevent.start();
_global.intcloset = 2;
_global.intmatch = 3;
rack._visible = true;
hanger._visible = true;
} else if (intcloset == 2) {
infoText.text = "The closet is now illuminated";
} else if (intcloset == 1) {
infoText.text = "It's far too dark to see anything";
} else {
_root.handle.gotoAndPlay("locked");
infoText.text = "The closet door is locked";
doorLocked.start();
}
};
hanger.onPress = function () {
if ((intpliers == 1) && (selectedItem == "pliers")) {
_root.hanger.gotoAndStop("cut");
obtain.start();
infoText.text = "I used the pliers to cut the wire on the coat hanger, I obtained a disk";
_global.intpliers = 2;
_global.intdisk = 2;
Invdisk._visible = true;
} else if (intpliers == 2) {
infoText.text = "I have already cut through this coathanger...";
} else {
infoText.text = "The disk is looped through the coat hanger, I can't get that...";
selectedItem = "";
}
};
if (intpliers == 2) {
_root.hanger.gotoAndStop("cut");
}
hammer.onPress = function () {
infoText.text = "I found a hammer";
_global.inthammer = 2;
hammer._visible = false;
_root.others.Invhammer._visible = true;
obtain.start();
};
Frame 5
infoText.text = "";
if (intcombo1 == 2) {
_root.combo.gotoAndStop(2);
}
if (intcombo2 == 2) {
_root.combo2.gotoAndStop(2);
}
if (intcombo3 == 2) {
_root.combo3.gotoAndStop(2);
}
if (intgreenbox == 1) {
_root.boxopen.gotoAndStop("open");
open2.enabled = false;
}
key._visible = false;
if ((intkey == 1) or (intkey == 2)) {
key._visible = false;
} else if (intgreenbox == 1) {
key._visible = true;
}
open2.onPress = function () {
if ((((((intcombo1 == 7) && (intcombo2 == 3)) && (intcombo3 == 8)) && (intmemo == 1)) && (intdvdmenu == 3)) && (intmemo2 == 3)) {
_global.intgreenbox = 1;
_root.boxopen.gotoAndStop("open");
infoText.text = "I opened the green box";
coolevent.start();
key._visible = true;
open2.enabled = false;
} else {
infoText.text = "Hmm, I don't know the combination...";
selectedItem = "";
}
};
back.onPress = function () {
gotoAndStop (4);
};
key.onPress = function () {
if (intgreenbox == 1) {
snag.start();
key._visible = false;
Invkey._visible = true;
_global.intkey = 1;
infoText.text = "I found a small brass key inside the box";
obtain.start();
}
};
Frame 6
infoText.text = "";
selectedItem = "";
match._visible = false;
if (intpin == 2) {
_root.safe.gotoAndStop("open");
match._visible = true;
}
safe.onPress = function () {
if ((intpin == 1) && (selectedItem == "pin")) {
_global.intpin = 2;
_root.safe.gotoAndStop("open");
match._visible = true;
infoText.text = "I used the pin carefully to pick the lock on the safe";
coolevent.start();
} else if (intpin == 2) {
infoText.text = "I've already opened this safe";
} else {
infoText.text = "A steel safe";
selectedItem = "";
}
};
match.onPress = function () {
infoText.text = "I found a long match, claiming to be long lasting. How?!";
_global.intmatch = 1;
match._visible = false;
Invmatch._visible = true;
obtain.start();
};
pliers.onPress = function () {
infoText.text = "I found a pair of pliers on the shelf";
_global.intpliers = 1;
pliers._visible = false;
Invpliers._visible = true;
obtain.start();
};
if (((intmatch == 1) or (intmatch == 2)) or (intmatch == 3)) {
match._visible = false;
}
if ((intpliers == 1) or (intpliers == 2)) {
pliers._visible = false;
}
note1.onPress = function () {
infoText.text = "It reads: '(1): 10*40+228 = (*--)ofno.' Huh?";
_global.intmemo = 1;
selectedItem = "";
};
Frame 7
infoText.text = "";
selectedItem = "";
light._visible = false;
lightoff._visible = true;
if (intpoweron == 2) {
light._visible = true;
lightoff._visible = false;
startcomp.enabled = false;
_root.computer.gotoAndStop("on");
}
dvd.onPress = function () {
if (((intdvd == 1) && (selectedItem == "dvd")) && (intpoweron == 2)) {
infoText.text = "I inserted the DVD into the computer";
_root.others.Invdvd._visible = false;
_global.intdvd = 2;
coolevent.start();
} else if (intdvd == 2) {
infoText.text = "The DVD drive is occupied";
} else {
infoText.text = "It's a DVD drive";
selectedItem = "";
}
};
table.onPress = function () {
infoText.text = "Woooow, a table, useful stuff...";
};
cosmos.onPress = function () {
infoText.text = "The leading manufacturing company COSMOS";
};
cd.onPress = function () {
if (((intdisk == 2) && (intpoweron == 2)) && (selectedItem == "disk")) {
_global.intdisk = 3;
_root.computer.gotoAndStop("CD");
Invdisk._visible = false;
infoText.text = "I inserted the start-up disk in the drive";
coolevent.start();
} else if (intdisk == 3) {
infoText.text = "The CD drive is occupied";
} else {
infoText.text = "It's a CD drive";
selectedItem = "";
}
};
startcomp.onPress = function () {
light._visible = true;
lightoff._visible = false;
infoText.text = "I turned the computer on";
_global.intpoweron = 2;
startcomp.enabled = false;
_root.computer.gotoAndStop("on");
comp.start();
};
computer.onPress = function () {
gotoAndStop (8);
};
if (intdvdmenu == 3) {
_root.computer.gotoAndStop("dvd");
}
if (intdisk == 3) {
_root.computer.gotoAndStop("CD");
_global.intdvdmenu = 4;
}
Frame 8
infoText.text = "";
dvdbtn._visible = false;
backbtn._visible = false;
cdcheck._visible = false;
back.onRelease = function () {
gotoAndStop (7);
};
if ((intdvd == 2) && (intpoweron == 2)) {
dvdbtn._visible = true;
}
if (intdvdmenu == 3) {
backbtn._visible = false;
dvdbtn._visible = false;
}
dvdbtn.onPress = function () {
_root.computer.gotoAndStop("dvd");
};
backbtn.onPress = function () {
_root.computer.gotoAndStop("on");
};
dispense._visible = false;
dispense.onPress = function () {
_global.intdispense = 1;
infoText.text = "I heard a clunk noise behind me";
coolevent.start();
dispense.enabled = false;
};
if (intdispense == 1) {
dispense.enabled = false;
}
if (intdisk == 3) {
_root.computer.gotoAndStop("CD");
backbtn._visible = false;
dvdbtn._visible = false;
dispense._visible = true;
} else {
infoText.text = "I guess there's no CD";
}
Frame 9
infoText.text = "";
selectedItem = "";
box._visible = false;
drawer1.onPress = function () {
if (intmemo2 == 1) {
_root.drawer.memo2._visible = true;
} else {
infoText.text = "This drawer is locked";
selectedItem = "";
}
};
drawer2.onPress = function () {
infoText.text = "This drawer is locked";
selectedItem = "";
};
smallkey.onPress = function () {
infoText.text = "I found a small key underneath the chest of drawers";
_global.intsmallkey = 1;
smallkey._visible = false;
Invsmallkey._visible = true;
obtain.start();
};
if ((intsmallkey == 1) or (intsmallkey == 2)) {
smallkey._visible = false;
}
if (intdrawer == 1) {
_root.drawer3.gotoAndStop("open");
} else if (intdrawer == 2) {
_root.drawer3.gotoAndStop("closed");
}
door.onPress = function () {
if ((intkey == 1) && (selectedItem == "key")) {
_root.door.gotoAndStop("open");
box._visible = true;
handle._visible = false;
infoText.text = "I used the key on the door";
coolevent.start();
_global.intkey = 2;
_global.intdoor = 1;
} else if (intdoor == 1) {
infotext.text = "I've already opened this door";
} else {
selectedItem = "";
infoText.text = "The door is locked, and why has someone taped over the sign?";
_root.handle.gotoAndPlay("locked");
doorLocked.start();
}
};
if (intdoor == 1) {
_root.door.gotoAndStop("open");
box._visible = true;
handle._visible = false;
}
if (intswitch == 1) {
_root.box.flickswitch.gotoAndStop("flicked");
}
Frame 10
selectedItem = "";
infoText.text = "";
if (((intmemo2 == 1) or (intmemo2 == 2)) or (intmemo2 == 3)) {
gobtn.enabled = false;
}
gobtn.onPress = function () {
if (((intturn1 == 2) && (intturn2 == 3)) && (intturnmemo == 2)) {
coolevent.start();
_global.intmemo2 = 1;
infoText.text = "I heard something...";
gobtn.enabled = false;
} else {
switch2.start();
infoText.text = "What's this for?";
}
};
back2.onRelease = function () {
gotoAndStop (9);
};
Frame 11
infoText.text = "";
selectedItem = "";
strike._visible = false;
if (intopenbox == 1) {
_root.box2.gotoAndStop("open");
strike._visible = true;
}
if (intstrike == 1) {
strike._visible = false;
}
if ((intturnmemo == 1) or (intturnmemo == 2)) {
turnmemo._visible = false;
}
if (inthammer == 3) {
_root.box.gotoAndStop("smash");
}
box.onPress = function () {
if ((inthammer == 2) && (selectedItem == "hammer")) {
glass.start();
_root.box.gotoAndStop("smash");
infoText.text = "I used the hammer to smash the glass, I picked up the note in the box";
_global.inthammer = 3;
_global.intturnmemo = 1;
turnmemo._visible = false;
_root.others.Invturnmemo._visible = true;
} else if (inthammer == 3) {
infoText.text = "I've smashed the glass in this box";
} else {
infoText.text = "A box with a pane of glass fixed to it";
selectedItem = "";
}
};
box2.onPress = function () {
if (intpower == 1) {
_root.box2.gotoAndStop("open");
_global.intopenbox = 1;
_global.intpower = 2;
infoText.text = "I opened the steel box";
strike._visible = true;
coolevent.start();
} else if (intopenbox == 1) {
infoText.text = "I've already opened this steel box";
} else {
infoText.text = "A steel box, and the front panel wont budge";
selectedItem = "";
}
};
strike.onPress = function () {
obtain.start();
strike._visible = false;
Invstrike._visible = true;
infoText.text = "I picked up a rough piece of card";
_global.intstrike = 1;
};
Frame 12
infoText.text = "";
selectedItem = "";
placebatt._visible = false;
battput.onPress = function () {
if ((intbattery == 1) && (selectedItem == "battery")) {
coolevent.start();
placebatt._visible = true;
_global.intbattery = 2;
_global.intunlock = 1;
infoText.text = "I placed the large battery in the slot";
Invbatt._visible = false;
} else if (intbattery == 2) {
infoText.text = "The battery is in the slot";
} else {
infoText.text = "It looks like some sort of slot";
selectedItem = "";
}
};
if (intbattery == 2) {
placebatt._visible = true;
}
who.onPress = function () {
infoText.text = "Argh, I don't understand! Who is this guy? And what the hell have I done to derserve this?!!";
};
Frame 13
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;
Symbol 30 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(loading_bar, _xscale , PercentLoaded);
} else {
_root.play();
}
Symbol 30 MovieClip Frame 2
gotoAndPlay (1);
Symbol 334 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 335 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 336 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 337 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 338 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 39 MovieClip Frame 21
playbtn.onPress = function () {
_root.gotoAndStop(3);
};
Symbol 39 MovieClip Frame 24
stop();
Symbol 55 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 59 MovieClip Frame 1
stop();
Symbol 69 Button
on (release) {
gotoAndStop (12);
}
Symbol 70 Button
on (release) {
gotoAndStop (4);
}
Symbol 97 Button
on (release) {
gotoAndStop (2);
}
Symbol 103 Button
on (release) {
gotoAndStop (1);
}
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
Invmemo._visible = false;
Invdvd._visible = false;
Invhammer._visible = false;
Invturnmemo._visible = false;
if (intdvd == 1) {
Invdvd._visible = true;
}
if ((intturnmemo == 1) or (intturnmemo == 2)) {
Invturnmemo._visible = true;
}
if ((intmemo2 == 2) or (intmemo2 == 3)) {
Invmemo._visible = true;
}
if (intdvd == 2) {
Invdvd._visible = false;
}
if ((inthammer == 2) or (inthammer == 3)) {
Invhammer._visible = true;
}
Invdvd.onPress = function () {
_root.infoText.text = "A DVD {selected}";
_root.selectedItem = "dvd";
};
Invhammer.onPress = function () {
if (inthammer == 3) {
_root.infoText.text = "I have already used this hammer";
} else {
_root.infoText.text = "A hammer {selected}";
_root.selectedItem = "hammer";
}
};
Invmemo.onPress = function () {
_root.infoText.text = "A note, it reads: '(3) 52*2 + 13 (--*)ofno.' Huh?";
_global.intmemo2 = 3;
};
Invturnmemo.onPress = function () {
_root.infoText.text = "It reads: 'Blue right, blue down...'";
_global.intturnmemo = 2;
};
Symbol 121 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 146 Button
on (release) {
gotoAndStop (3);
}
Symbol 147 Button
on (release) {
gotoAndStop (6);
}
Symbol 153 MovieClip Frame 1
stop();
Symbol 159 Button
on (release) {
gotoAndStop (2);
}
Symbol 161 Button
on (release) {
gotoAndStop (3);
}
Symbol 162 Button
on (release) {
gotoAndStop (1);
}
Symbol 164 Button
on (release) {
gotoAndStop (4);
}
Symbol 166 Button
on (release) {
gotoAndStop (5);
}
Symbol 168 Button
on (release) {
gotoAndStop (6);
}
Symbol 170 Button
on (release) {
gotoAndStop (7);
}
Symbol 172 Button
on (release) {
gotoAndStop (8);
}
Symbol 174 Button
on (release) {
gotoAndStop (9);
}
Symbol 176 Button
on (release) {
gotoAndStop (10);
}
Symbol 178 MovieClip Frame 1
stop();
intcombo1 == 0;
if (intcombo1 == 1) {
gotoAndStop (1);
}
if (intcombo1 == 3) {
gotoAndStop (3);
}
if (intcombo1 == 4) {
gotoAndStop (4);
}
if (intcombo1 == 5) {
gotoAndStop (5);
}
if (intcombo1 == 6) {
gotoAndStop (6);
}
if (intcombo1 == 7) {
gotoAndStop (7);
}
if (intcombo1 == 8) {
gotoAndStop (8);
}
if (intcombo1 == 9) {
gotoAndStop (9);
}
if (intcombo1 == 10) {
gotoAndStop (10);
}
_global.intcombo1 = 1;
Symbol 178 MovieClip Frame 2
_global.intcombo1 = 2;
Symbol 178 MovieClip Frame 3
_global.intcombo1 = 3;
Symbol 178 MovieClip Frame 4
_global.intcombo1 = 4;
Symbol 178 MovieClip Frame 5
_global.intcombo1 = 5;
Symbol 178 MovieClip Frame 6
_global.intcombo1 = 6;
Symbol 178 MovieClip Frame 7
_global.intcombo1 = 7;
Symbol 178 MovieClip Frame 8
_global.intcombo1 = 8;
Symbol 178 MovieClip Frame 9
_global.intcombo1 = 9;
Symbol 178 MovieClip Frame 10
_global.intcombo1 = 10;
Symbol 179 Button
on (release) {
gotoAndStop (2);
}
Symbol 180 Button
on (release) {
gotoAndStop (3);
}
Symbol 181 Button
on (release) {
gotoAndStop (1);
}
Symbol 182 Button
on (release) {
gotoAndStop (4);
}
Symbol 183 Button
on (release) {
gotoAndStop (5);
}
Symbol 184 Button
on (release) {
gotoAndStop (6);
}
Symbol 185 Button
on (release) {
gotoAndStop (7);
}
Symbol 186 Button
on (release) {
gotoAndStop (8);
}
Symbol 187 Button
on (release) {
gotoAndStop (9);
}
Symbol 188 Button
on (release) {
gotoAndStop (10);
}
Symbol 189 MovieClip Frame 1
stop();
intcombo2 == 0;
if (intcombo2 == 1) {
gotoAndStop (1);
}
if (intcombo2 == 3) {
gotoAndStop (3);
}
if (intcombo2 == 4) {
gotoAndStop (4);
}
if (intcombo2 == 5) {
gotoAndStop (5);
}
if (intcombo2 == 6) {
gotoAndStop (6);
}
if (intcombo2 == 7) {
gotoAndStop (7);
}
if (intcombo2 == 8) {
gotoAndStop (8);
}
if (intcombo2 == 9) {
gotoAndStop (9);
}
if (intcombo2 == 10) {
gotoAndStop (10);
}
_global.intcombo2 = 1;
Symbol 189 MovieClip Frame 2
_global.intcombo2 = 2;
Symbol 189 MovieClip Frame 3
_global.intcombo2 = 3;
Symbol 189 MovieClip Frame 4
_global.intcombo2 = 4;
Symbol 189 MovieClip Frame 5
_global.intcombo2 = 5;
Symbol 189 MovieClip Frame 6
_global.intcombo2 = 6;
Symbol 189 MovieClip Frame 7
_global.intcombo2 = 7;
Symbol 189 MovieClip Frame 8
_global.intcombo2 = 8;
Symbol 189 MovieClip Frame 9
_global.intcombo2 = 9;
Symbol 189 MovieClip Frame 10
_global.intcombo2 = 10;
Symbol 190 Button
on (release) {
gotoAndStop (2);
}
Symbol 191 Button
on (release) {
gotoAndStop (3);
}
Symbol 192 Button
on (release) {
gotoAndStop (1);
}
Symbol 193 Button
on (release) {
gotoAndStop (4);
}
Symbol 194 Button
on (release) {
gotoAndStop (5);
}
Symbol 195 Button
on (release) {
gotoAndStop (6);
}
Symbol 196 Button
on (release) {
gotoAndStop (7);
}
Symbol 197 Button
on (release) {
gotoAndStop (8);
}
Symbol 198 Button
on (release) {
gotoAndStop (9);
}
Symbol 199 Button
on (release) {
gotoAndStop (10);
}
Symbol 200 MovieClip Frame 1
stop();
intcombo3 == 0;
if (intcombo3 == 1) {
gotoAndStop (1);
}
if (intcombo3 == 3) {
gotoAndStop (3);
}
if (intcombo3 == 4) {
gotoAndStop (4);
}
if (intcombo3 == 5) {
gotoAndStop (5);
}
if (intcombo3 == 6) {
gotoAndStop (6);
}
if (intcombo3 == 7) {
gotoAndStop (7);
}
if (intcombo3 == 8) {
gotoAndStop (8);
}
if (intcombo3 == 9) {
gotoAndStop (9);
}
if (intcombo3 == 10) {
gotoAndStop (10);
}
_global.intcombo3 = 1;
Symbol 200 MovieClip Frame 2
_global.intcombo3 = 2;
Symbol 200 MovieClip Frame 3
_global.intcombo3 = 3;
Symbol 200 MovieClip Frame 4
_global.intcombo3 = 4;
Symbol 200 MovieClip Frame 5
_global.intcombo3 = 5;
Symbol 200 MovieClip Frame 6
_global.intcombo3 = 6;
Symbol 200 MovieClip Frame 7
_global.intcombo3 = 7;
Symbol 200 MovieClip Frame 8
_global.intcombo3 = 8;
Symbol 200 MovieClip Frame 9
_global.intcombo3 = 9;
Symbol 200 MovieClip Frame 10
_global.intcombo3 = 10;
Symbol 209 MovieClip Frame 1
stop();
Symbol 215 Button
on (release) {
gotoAndStop (7);
}
Symbol 255 MovieClip Frame 1
if (intdvdmenu == 3) {
gotoAndStop (4);
}
stop();
Symbol 255 MovieClip Frame 2
_global.intmenu = 1;
_root.backbtn._visible = false;
_root.dvdbtn._visible = true;
Symbol 255 MovieClip Frame 3
_global.intmenu = 2;
Symbol 255 MovieClip Frame 4
_global.intdvdmenu = 3;
_root.dvdbtn._visible = false;
_root.backbtn._visible = false;
Symbol 257 Button
on (release) {
gotoAndStop (9);
}
Symbol 283 MovieClip Frame 1
stop();
draweropen.onPress = function () {
gotoAndStop (2);
_root.infoText.text = "I opened the drawer";
_global.intdrawer = 1;
};
Symbol 283 MovieClip Frame 2
memo._visible = false;
drawerclose.onPress = function () {
gotoAndStop (1);
_root.infoText.text = "I closed the drawer";
_global.intdrawer = 2;
};
dvd.onPress = function () {
_global.intdvd = 1;
dvd._visible = false;
_root.infoText.text = "I found a DVD";
_root.obtain.start();
_root.others.Invdvd._visible = true;
};
if ((intdvd == 1) or (intdvd == 2)) {
dvd._visible = false;
}
if (intmemo2 == 1) {
memo._visible = true;
}
memo.onPress = function () {
_global.intmemo2 = 2;
memo._visible = false;
_root.infoText.text = "I found a note";
_root.obtain.start();
_root.others.Invmemo._visible = true;
};
Symbol 287 MovieClip Frame 1
stop();
Symbol 289 Button
on (release) {
gotoAndStop (10);
}
Symbol 298 MovieClip Frame 1
stop();
switch2.onPress = function () {
gotoAndStop (2);
_root.infoText.text = "I flicked the switch on the power box";
_global.intswitch = 1;
_global.intpower = 1;
_root.switchn.start();
};
Symbol 300 Button
on (release) {
gotoAndStop (11);
}
Symbol 309 MovieClip Frame 1
stop();
_global.intturn1 = 1;
go.onPress = function () {
gotoAndStop (2);
};
Symbol 309 MovieClip Frame 2
go.onPress = function () {
gotoAndStop (3);
};
_global.intturn1 = 2;
Symbol 309 MovieClip Frame 3
go.onPress = function () {
gotoAndStop (4);
};
_global.intturn1 = 3;
Symbol 309 MovieClip Frame 4
go.onPress = function () {
gotoAndStop (2);
};
_global.intturn1 = 4;
Symbol 311 MovieClip Frame 1
stop();
_global.intturn2 = 1;
go.onPress = function () {
gotoAndStop (2);
};
Symbol 311 MovieClip Frame 2
go.onPress = function () {
gotoAndStop (3);
};
_global.intturn2 = 2;
Symbol 311 MovieClip Frame 3
go.onPress = function () {
gotoAndStop (4);
};
_global.intturn2 = 3;
Symbol 311 MovieClip Frame 4
go.onPress = function () {
gotoAndStop (2);
};
_global.intturn2 = 4;
Symbol 317 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 1
stop();