Frame 1
Array.prototype.random = function () {
var _local5 = this.length;
var _local6 = new Array();
var _local3 = 0;
while (_local3 < _local5) {
var _local4 = Math.round(Math.random() * (this.length - 1));
_local6[_local3] = this[_local4];
this.splice(_local4, 1);
_local3++;
}
var _local2 = 0;
while (_local2 < _local5) {
this[_local2] = _local6[_local2];
_local2++;
}
};
Stage.showMenu = false;
_focusrect = false;
Frame 2
stop();
var paintingdown = false;
var itemselected = "";
var zoomedin = false;
var hasmag = false;
var hascrow = false;
var hasblow = false;
var hasstick = false;
var hasslide = false;
var hassparker = false;
var hasread = false;
var haskey = false;
var hasnote = false;
var passcorect = false;
var clickedsparker = false;
var screendown = false;
var hasbomb = false;
var bombtick = false;
disp = function (mystr) {
_root.displayy = mystr;
};
zoomin = function (mystr) {
_root.zooom.gotoAndStop(mystr);
_root.zooom._alpha = 100;
_root.zoomedin = true;
_root.zooom._x = 0;
};
zoomout = function () {
_root.zooom._alpha = 0;
_root.zooom._x = 2500;
_root.zooom.gotoAndStop("blank");
_root.zoomedin = false;
_root.disp("");
};
z = function () {
return(_root.zoomedin);
};
getItem = function () {
return(_root.itemselected);
};
addTheItem = function (str) {
if (str == "mag") {
_root.hasmag = true;
_root.updateInven();
} else if (str == "blowtourch") {
_root.hasblow = true;
_root.updateInven();
} else if (str == "slide") {
_root.hasslide = true;
_root.updateInven();
} else if (str == "sparker") {
_root.hassparker = true;
_root.updateInven();
} else if (str == "key") {
_root.haskey = true;
_root.updateInven();
} else if (str == "bomb") {
_root.hasbomb = true;
_root.updateInven();
} else if (str == "note") {
_root.hasnote = true;
_root.updateInven();
} else {
trace("error: input incorrect in addTheItem function");
}
};
updateInven = function () {
_root.inventory.btn_mag._visible = _root.hasmag;
_root.inventory.btn_crow._visible = _root.hascrow;
_root.inventory.btn_blowtourch._visible = _root.hasblow;
_root.inventory.btn_stick._visible = _root.hasstick;
_root.inventory.btn_slide._visible = _root.hasslide;
_root.inventory.btn_key._visible = _root.haskey;
_root.inventory.btn_sparker._visible = _root.hassparker;
_root.inventory.btn_bomb._visible = _root.hasbomb;
_root.inventory.btn_note._visible = _root.hasnote;
};
numar_from_str = function (str) {
str = str.toLowerCase();
var _local4 = str.split("");
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local4.length) {
var _local2 = _local4[_local1];
if (_local2 == " ") {
_local3[_local1] = " ";
} else {
_local3[_local1] = _local2.charCodeAt(0) - 96;
}
_local1++;
}
return(_local3);
};
encrypt = function (key, str) {
var _local1 = numar_from_str(str);
var _local2 = 0;
while (_local2 < _local1.length) {
temp = _local1[_local2];
if (temp == " ") {
_local1[_local2] = " ";
} else {
_local1[_local2] = key[temp - 1] + 96;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.length) {
temp = _local1[_local2];
if (temp == " ") {
_local1[_local2] = " ";
} else {
_local1[_local2] = String.fromCharCode(temp);
}
_local2++;
}
var _local4 = _local1.join("");
return(_local4);
};
n2t = function (str) {
big = "";
myar = str.split("");
i = 0;
while (i < myar.length) {
num = myar[i];
if (num == "0") {
big = big + "zero ";
} else if (num == "1") {
big = big + "one ";
} else if (num == "2") {
big = big + "two ";
} else if (num == "3") {
big = big + "three ";
} else if (num == "4") {
big = big + "four ";
} else if (num == "5") {
big = big + "five ";
} else if (num == "6") {
big = big + "six ";
} else if (num == "7") {
big = big + "seven ";
} else if (num == "8") {
big = big + "eight ";
} else if (num == "9") {
big = big + "nine ";
} else {
big = big + "you fucked up somewhere in poop function";
}
i++;
}
return(big);
};
genrandnumbs = function (num) {
str = "";
i = 0;
while (i < num) {
r = random(9).toString();
str = str + r;
i++;
}
return(str);
};
var numstr = genrandnumbs(5);
var numwords = n2t(numstr);
var num_ar = new Array();
var i = 0;
while (i < 26) {
num_ar[i] = i + 1;
i++;
}
num_ar.random();
var poa = "i pledge allegiance to the flag of the united states of america";
var code = numwords;
var enpoa = encrypt(num_ar, poa);
var thepassword = numstr;
var encode = encrypt(num_ar, code);
trace(thepassword);
Frame 3
stop();
if (_root.haskey) {
_root.small_key._visible = false;
}
updateInven();
Frame 4
stop();
updateInven();
Frame 5
stop();
if (_root.hasstick) {
_root.small_stick._visible = false;
}
updateInven();
Frame 6
stop();
updateInven();
Frame 7
stop();
Symbol 5 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
bytesloaded = _root.getBytesLoaded();
totalFileSize = _root.getBytesTotal();
amountLoaded = bytesLoaded / totalFilesize;
} else {
gotoAndStop ("loaded");
}
Symbol 5 MovieClip Frame 2
gotoAndPlay (1);
Symbol 5 MovieClip Frame 3
_root.play();
Symbol 11 MovieClip Frame 12
gotoAndPlay (1);
Symbol 16 Button
on (press) {
_root.nextFrame();
}
Symbol 28 Button
on (press) {
if (_root.hasmag == true) {
_root.itemselected = "mag";
_root.disp("Magnifying Glass");
}
}
Symbol 31 Button
on (press) {
if (_root.hascrow == true) {
_root.itemselected = "crow";
_root.disp("Crowbar");
}
}
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 3
gotoAndPlay (2);
Symbol 38 MovieClip Frame 1
if (_root.clickedsparker) {
gotoAndStop (3);
}
Symbol 38 MovieClip Frame 2
if (!_root.clickedsparker) {
gotoAndPlay (1);
}
Symbol 38 MovieClip Frame 3
flame.gotoAndPlay(2);
Symbol 39 Button
on (press) {
if (_root.hasblow == true) {
_root.itemselected = "blowtourch";
_root.disp("Blow tourch");
if (_root.hassparker) {
_root.disp("I used the sparker to ignite it!");
_root.clickedsparker = true;
}
}
}
Symbol 41 Button
on (press) {
if (_root.hasstick == true) {
_root.itemselected = "stick";
_root.disp("Long hooked stick.");
}
}
Symbol 44 Button
on (press) {
if (_root.hasslide == true) {
_root.itemselected = "slide";
_root.disp("A slide for a projector.");
}
}
Symbol 46 Button
on (press) {
if (_root.haskey == true) {
_root.itemselected = "key";
_root.disp("A small key.");
}
}
Symbol 48 Button
on (press) {
if (_root.hassparker == true) {
_root.itemselected = "sparker";
_root.disp("A sparker. It makes sparks, idiot.");
}
}
Symbol 51 Button
on (press) {
if (_root.hasbomb == true) {
_root.itemselected = "bomb";
_root.disp("IT'S GONNA BLOW!!!!!!!");
}
}
Symbol 54 Button
on (press) {
if (_root.hasnote == true) {
_root.itemselected = "note";
_root.disp("\"The safe is behind the flower painting, and the combination is...\" NOOO! It is burnt off and I can't read it!");
}
}
Symbol 66 Button
on (press) {
if (!_root.zoomedin) {
_root.gotoAndPlay("E");
_root.disp("");
}
}
Symbol 67 Button
on (press) {
if (!_root.zoomedin) {
_root.gotoAndPlay("W");
_root.disp("");
}
}
Symbol 68 Button
on (press) {
if (!_root.z()) {
zoomin("pledge");
}
}
Symbol 69 Button
on (press) {
if (!_root.z()) {
zoomin("drawer");
}
}
Symbol 70 Button
on (press) {
if (!_root.z()) {
zoomin("comp1");
}
}
Symbol 71 Button
on (press) {
if (!_root.z()) {
trace("1");
if (_root.small_key._visible != false) {
trace("2");
_root.disp("Hey, there is a small key on the ground.");
_root.addTheItem("key");
_root.small_key._visible = false;
}
}
}
Symbol 73 Button
on (press) {
if (_root.z()) {
if (_root.getItem() == "mag") {
_root.zoomin("pledge_writing");
} else {
_root.disp("There is something written there. But it is too small.");
}
}
}
Symbol 74 Button
on (press) {
if (_root.z()) {
_root.disp("Painting of the Pledge of Allegiance");
}
}
Symbol 78 Button
on (press) {
if (_root.z()) {
_root.zoomout();
}
}
Symbol 82 Button
on (press) {
_root.addTheItem("mag");
nextFrame();
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();
Symbol 84 MovieClip Frame 3
stop();
Symbol 85 Button
on (press) {
if (_root.z()) {
if (_root.getItem() == "crow") {
if (_root.hasmag) {
drawer.gotoAndStop(3);
this.btn3._visible = false;
} else {
drawer.gotoAndStop(2);
this.btn3._visible = false;
_root.disp("You used the crowbar");
}
} else {
_root.disp("The drawer seems to be glued shut...");
}
}
}
Symbol 94 Button
on (press) {
if (compPassw.toString() != _root.thepassword) {
_root.disp("Hmm... it says its wrong");
} else {
_root.disp("It says its MAGNET DEACTIVATED. Who knows what that means!");
_root.passcorrect = true;
}
}
Symbol 95 Button
on (press) {
if (_root.zoomedin) {
gotoAndPlay ("comp2");
}
}
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 100 Button
on (press) {
if (_root.zoomedin) {
if (!_root.hasslide) {
_root.addTheItem("slide");
_root.disp("It's a slide for a projector. Alright!");
slide.gotoAndStop(2);
_root.updateInven();
}
}
}
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
stop();
Symbol 105 Button
on (press) {
if (_root.zoomedin) {
if (outlet._currentframe == 1) {
outlet.gotoAndStop(2);
_root.projon = true;
_root.disp("Alright, the projector should turn on now.");
_root.projector.gotoAndStop(2);
}
}
}
Symbol 109 Button
on (press) {
if (_root.zoomedin && (_root.hassparker == false)) {
_root.addTheItem("sparker");
_root.disp("It looks like a sparker thing of some kind...");
spark_small._visible = false;
}
}
Symbol 114 MovieClip Frame 1
stop();
if (_root.hasnote) {
gotoAndStop (3);
}
Symbol 114 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 3
stop();
Symbol 115 Button
on (press) {
if (_root.zoomedin) {
if (locker._currentframe == 2) {
locker.gotoAndStop(3);
_root.addTheItem("note");
_root.disp("The note says: The safe is behind the flower painting, and the combination is...NOOO! It is burnt off and I can't read it!");
} else if (locker._currentframe != 3) {
if (_root.getItem() == "key") {
locker.gotoAndStop(2);
} else {
_root.disp("It's locked");
}
}
}
}
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
stop();
Symbol 116 MovieClip Frame 3
stop();
if (_root.hasmag) {
drawer.gotoAndStop(3);
btn3._visible = false;
}
Symbol 116 MovieClip Frame 4
stop();
pl_pass = _root.enpoa + "...";
Symbol 116 MovieClip Frame 5
stop();
comp_written = _root.encode;
trace(comp_written);
Symbol 116 MovieClip Frame 6
stop();
Symbol 116 MovieClip Frame 7
stop();
if (_root.hasslide) {
slide.gotoAndStop(2);
_root.disp("I don't think there is anything else here");
} else {
_root.disp("Hey! Why would someone hide that there?");
}
Symbol 116 MovieClip Frame 8
stop();
_root.disp("Well there's ya problem!");
Symbol 116 MovieClip Frame 9
stop();
_root.disp("OOOH, that is what 'Reed Blew Buhk' meant. Duh!");
Instance of Symbol 108 MovieClip "spark_small" in Symbol 116 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_root.hassparker == true) {
this._visible = false;
}
}
Symbol 116 MovieClip Frame 10
stop();
Symbol 126 MovieClip Frame 1
stop();
if (_root.hasblow) {
gotoAndStop (8);
}
Symbol 126 MovieClip Frame 7
stop();
Symbol 126 MovieClip Frame 8
stop();
Symbol 129 MovieClip Frame 1
stop();
if (_root.hasbomb) {
gotoAndStop (3);
} else if (_root.bombtick) {
gotoAndStop (2);
}
Symbol 129 MovieClip Frame 2
stop();
Symbol 129 MovieClip Frame 3
stop();
Symbol 137 MovieClip Frame 1
stop();
if (_root.paintingdown) {
gotoAndStop (6);
}
Symbol 137 MovieClip Frame 6
stop();
Symbol 138 Button
on (press) {
if (!_root.zoomedin) {
if (_root.hasnote) {
if (_root.paintingdown == false) {
_root.disp("Ah ha! A safe!");
_root.painting.gotoAndPlay(2);
_root.paintingdown = true;
}
}
}
}
Symbol 139 Button
on (press) {
if (!_root.zoomedin) {
if (_root.paintingdown == true) {
if ((_root.getItem() != "blowtourch") && (_root.safe._currentframe == 1)) {
_root.disp("How can I open the safe without the combination?!");
} else {
if (_root.bombtick) {
_root.safe.gotoAndStop(3);
_root.addTheItem("bomb");
_root.disp("It's going to blow any second!!!");
}
if (_root.clickedsparker && (_root.hasbomb == false)) {
_root.disp("AHHH!!! A BOMB!!!!");
_root.bombtick = true;
_root.safe.gotoAndStop(2);
} else if (!_root.hasbomb) {
_root.disp("How can I open the safe without the combination?!");
}
}
}
}
}
Symbol 140 Button
on (press) {
if (!_root.zoomedin) {
_root.gotoAndPlay("S");
_root.disp("");
}
}
Symbol 141 Button
on (press) {
if (!_root.zoomedin) {
_root.gotoAndPlay("N");
_root.disp("");
}
}
Symbol 142 Button
on (press) {
if (!_root.zoomedin) {
if (_root.bt_anim._currentframe == 1) {
if (_root.getItem() == "crow") {
_root.bt_anim.gotoAndPlay(2);
_root.disp("What the...!?");
} else {
_root.disp("Weird, theres a crack in the ceiling that is sealed up poorly.");
}
}
}
}
Symbol 143 Button
on (press) {
if (!_root.zoomedin) {
if (_root.bt_anim._currentframe == 7) {
addTheItem("blowtourch");
_root.bt_anim.gotoAndStop(8);
_root.disp("A blowtourch in the ceiling?!");
}
}
}
Symbol 144 Button
on (press) {
if (!_root.zoomedin) {
if (getItem() == "key") {
_root.disp("This key doesn't fit.");
} else if (getItem() == "bomb") {
_root.gotoAndStop("win");
} else if (getItem() == "crow") {
_root.disp("You think the crowbar would work, but it doesn't");
} else {
_root.disp("Wouldn't it be nice if the door just opened?");
}
}
}
Symbol 151 MovieClip Frame 1
stop();
if (_root.hascrow == true) {
nextFrame();
}
Symbol 151 MovieClip Frame 2
stop();
Symbol 154 Button
on (press) {
if (!_root.zoomedin) {
_root.disp("I have no time to read!");
}
}
Symbol 155 Button
on (press) {
if (!_root.zoomedin) {
if (_root.hasread) {
_root.zoomin("bluebook");
} else {
_root.disp("I have no time to read!");
}
}
}
Symbol 156 Button
on (press) {
if (!_root.zoomedin) {
_root.disp("If that is an original, I'd bar it up too");
}
}
Symbol 157 Button
on (press) {
if (!_root.zoomedin) {
if (_root.bar._currentframe == 1) {
_root.disp("This bar just came off! Kinda is like a crow bar too.");
_root.hascrow = true;
_root.bar.gotoAndStop(2);
_root.updateInven();
} else {
_root.disp("If that is an original, I'd bar it up too");
}
}
}
Symbol 158 Button
on (press) {
if (!_root.zoomedin) {
if (!_root.hasstick) {
_root.disp("Some long hook stick that was behind the book shelf.");
_root.hasstick = true;
_root.small_stick._visible = false;
_root.updateInven();
}
}
}
Symbol 162 MovieClip Frame 1
stop();
if (_root.screendown) {
nextFrame();
}
Symbol 162 MovieClip Frame 2
stop();
Symbol 166 MovieClip Frame 1
stop();
if (_root.projon) {
if (_root.hasread) {
gotoAndStop (3);
} else {
nextFrame();
}
}
Symbol 166 MovieClip Frame 2
stop();
if (_root.hasread) {
nextFrame();
}
Symbol 166 MovieClip Frame 3
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Symbol 172 Button
on (press) {
if (!_root.zoomedin) {
if (_root.getItem() == "stick") {
if (_root.screen._currentframe == 1) {
_root.screen.gotoAndStop(2);
_root.screendown = true;
_root.disp("Nice. The long hooked stick let me pull down the screen.");
}
} else {
_root.disp("I can't reach it!");
}
}
}
Symbol 173 Button
on (press) {
if (!_root.zoomedin) {
if (_root.getItem() == "slide") {
if (_root.projon) {
if (_root.screendown) {
_root.disp("Alright, I got it to work. What does that mean??");
_root.projector.gotoAndStop(3);
_root.hasread = true;
} else {
_root.disp("I need the screen down if I want to see the slide!");
}
} else {
_root.disp("I have the slide, but it's not on, so it won't do me any good");
}
} else if (_root.projon) {
_root.disp("It's on, but there is no slide to project");
} else {
_root.disp("The projector doesn't seem to be working");
}
}
}
Symbol 174 Button
on (press) {
if (!_root.z()) {
zoomin("underdesk");
}
}
Symbol 175 Button
on (press) {
if (!_root.z()) {
zoomin("behinddesk");
}
}
Symbol 176 Button
on (press) {
if (!_root.zoomedin) {
if (_root.cabinet._currentframe == 2) {
_root.zoomin("lockbox");
}
}
}
Symbol 177 Button
on (press) {
if (!_root.zoomedin) {
if (_root.passcorrect && (_root.cabinet._currentframe == 1)) {
_root.cabinet.gotoAndStop(2);
} else if (_root.cabinet._currentframe == 1) {
_root.disp("It seems to have some kind of magnetic lock...");
}
}
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 71
stop();