Frame 1
if (room == undefined) {
room = 1;
q = 0;
}
stop();
_quality = "HIGH";
Instance of Symbol 42 MovieClip in Frame 1
onClipEvent (load) {
if (_root.initialize != true) {
_root.initialize = true;
} else {
gotoAndStop (3);
}
}
Frame 2
main.setMask(lights);
_quality = "HIGH";
if ((room == 1) || (init == "beginning")) {
messages = ["Damn, looks like the lights are off. I think...yeah, here's my flashlight.\n\n(Hit F to turn on your flashlight.)"];
messageCount = 0;
main.man._x = 50;
main.man._y = 200;
main.man.pistol = false;
}
if (init == "continue") {
if (room == 5) {
messageCount = 17;
lights.gotoAndStop(5);
main.gotoAndStop(5);
messages = [""];
main.man._x = 50;
main.man._y = 320;
main.man.pistol = true;
}
if (room == 6) {
messageCount = 20;
lights.gotoAndStop(6);
main.gotoAndStop(6);
messages = ["Man: Hello?"];
main.man._x = 50;
main.man._y = 80;
main.man.pistol = true;
}
if (room == 9) {
main.gotoAndStop(9);
main.man.pistol = false;
main.man._x = (main.rhodes._x = 10);
main.man._y = 40;
main.rhodes._y = 60;
messageCount = 30;
lights.gotoAndStop(9);
messages = ["Rhodes: Wait, I know him...Give me your gun.\n\nYou: Alright."];
}
if (room == 10) {
main.gotoAndStop(10);
UIMask.setMask(null);
_root.messages = ["Rhodes: Awake at last, Mr. Greene?\n(space)", "You: Ugh...where are you?\n(space)", "Rhodes: I'm talking through the intercom, Jason. I want you to listen very carefully. I'm going to make you give your little speech-I think you're really going to enjoy it. But here's the catch.\n(space)", "Rhodes: There's a First Aid kit nearby, and I want to see if you're quick enough to find it. We've set up a nice little maze for you to run through.\n(space)", "Rhodes: I must say that I would reccomend immediate care for that injury to your shoulder; it's not looking good. Be swift, little rat."];
_root.lights._visible = false;
_root.lights.gotoAndStop(10);
_root.main.man._x = 275;
_root.main.man._y = 200;
_root.main.rhodes.footsteps.stop();
_root.messageCount = 32;
_root.checkpoint.play();
_root.room = 10;
}
}
theSong = new Sound(musicClip);
theSong.setVolume(40);
theSong.attachSound("music");
theSong.start(0, 99999999999);
Instance of Symbol 180 MovieClip "messageWin" in Frame 2
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t++;
_root.currentMessage = substring(_root.messages[0], 0, t);
}
Instance of Symbol 268 MovieClip "puzzle" in Frame 2
onClipEvent (enterFrame) {
if (_x != 0) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 292 MovieClip in Frame 2
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.cinematic == true) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
} else {
_alpha = 0;
}
}
Symbol 6 Button
on (release) {
gotoAndStop (2);
}
Symbol 22 Button
on (release) {
getURL ("http://www.stickpage.com", "_blank");
}
Symbol 25 MovieClip Frame 211
_parent.gotoAndStop(3);
Symbol 33 Button
on (release) {
_parent.init = "beginning";
_parent.gotoAndStop(2);
}
Symbol 36 Button
on (release) {
_root.init = "continue";
_root.gotoAndStop(2);
}
Symbol 41 Button
on (release) {
getURL ("http://www.stickpage.com/", _blank);
}
Symbol 42 MovieClip Frame 1
stop();
Instance of Symbol 9 MovieClip in Symbol 42 MovieClip Frame 1
onClipEvent (load) {
_xscale = 0;
_parent.playbutton._visible = false;
}
onClipEvent (enterFrame) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_xscale == 100) {
_parent.playbutton._visible = true;
}
}
Instance of Symbol 37 MovieClip in Symbol 42 MovieClip Frame 3
onClipEvent (load) {
if (_root.room == 1) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.room == 1) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 17
stop();
Symbol 66 MovieClip Frame 5
removeMovieClip(this);
Symbol 72 MovieClip Frame 6
removeMovieClip(this);
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 252
stop();
_root.messageWin.t = 0;
_root.messages[0] = "Hmm, there isn't one over here-check the opposite corner for me.";
_root.messageCount = 6;
Symbol 79 MovieClip Frame 476
stop();
Symbol 98 MovieClip Frame 300
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 12
dx = _parent.man._x - _x;
dy = _parent.man._y - _y;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
run = Math.cos((_rotation * Math.PI) / 180);
rise = Math.sin((_rotation * Math.PI) / 180);
if (Math.sqrt((dx * dx) + (dy * dy)) < 40) {
_parent.man.health--;
_parent.man.run = _parent.man.run + (run * 5);
_parent.man.rise = _parent.man.rise + (rise * 5);
}
Symbol 108 MovieClip Frame 16
gotoAndStop (1);
Instance of Symbol 98 MovieClip in Symbol 108 MovieClip Frame 35
onClipEvent (load) {
_rotation = random(360);
}
Symbol 108 MovieClip Frame 41
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 8
gotoAndStop (1);
Symbol 123 MovieClip Frame 95
_parent.boss._visible = false;
_parent.target1._visible = false;
_parent.deadboss._visible = true;
Symbol 123 MovieClip Frame 139
_visible = false;
stop();
Symbol 128 MovieClip Frame 19
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 64
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 20
stop();
Symbol 141 MovieClip Frame 31
stop();
Symbol 152 Button
on (release) {
if (_root.passwd.toLowerCase() == "greene") {
_root.messageCount = 29;
_root.messageWin.t = 0;
_root.messages = ["Rhodes: Great, let's keep going."];
_parent.wall.play();
_visible = false;
_parent.man.wall = false;
_parent.man.pistol = true;
} else {
_root.passwd = "Incorrect";
}
}
Symbol 158 MovieClip Frame 1
stop();
Instance of Symbol 60 MovieClip "man" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
_root.pieces = 0;
wall = false;
footsteps = new Sound(this);
footsteps.setVolume(0);
footsteps.attachSound("running footsteps");
footsteps.start(0, 999999999);
rise = (run = 0);
decay = 0.87;
h = _height;
w = _width;
flashlight = false;
hitF = false;
t = 0;
health = 10;
clicking = new Object();
clicking.onMouseDown = function () {
if ((pistol == true) && (_root._ymouse < 400)) {
vx = _root._xmouse - _x;
vy = _root._ymouse - _y;
rot = Math.atan2(vy, vx);
dx = Math.cos(rot);
dy = Math.sin(rot);
_parent.createEmptyMovieClip("bullet" + _root.q, _root.q);
_parent["bullet" + _root.q].lineStyle(1, 16777215);
x = (_x + (dx * 10)) + run;
y = (_y + (dy * 10)) + rise;
_parent["bullet" + _root.q].moveTo(x, y);
go = true;
while (go == true) {
x = x + (dx * 5);
y = y + (dy * 5);
if ((((x < 0) || (x > 550)) || (y < 0)) || (y > 400)) {
go = false;
}
hit = false;
for (i in _parent.enemies) {
if ((_parent[_parent.enemies[i]].hitTest(x, y, true) && (_parent[_parent.enemies[i]]._visible == true)) && ((_parent[_parent.enemies[i]].health > 0) || ((_parent.enemies[i] == "reactor") || (_parent.enemies[i].indexOf("zombie", 0) == -1)))) {
_parent[_parent.enemies[i]].health--;
go = false;
hit = true;
bRot = _parent[_parent.enemies[i]]._rotation;
break;
}
}
}
_parent["bullet" + _root.q].lineTo(x, y);
_parent["bullet" + _root.q].onEnterFrame = function () {
if (this.erase == true) {
removeMovieClip(this);
}
this.erase = true;
};
_root.q++;
if (hit == true) {
if (_parent.enemies[i].indexOf("zombie", 0) != -1) {
duplicateMovieClip (_parent.blood, "blood" + _root.q, _root.q);
_parent["blood" + _root.q]._x = x;
_parent["blood" + _root.q]._y = y;
_parent["blood" + _root.q]._rotation = bRot;
_root.q++;
} else if ((_parent.enemies[i] == "reactor") && (_parent.reactor._currentframe < 9)) {
_parent.reactor.gotoAndPlay(2);
} else if (_parent.enemies[i] == "target1") {
_parent.target1.gotoAndPlay(2);
}
}
duplicateMovieClip (_root.lights.bFlash, "bFlash" + _root.q, _root.q);
_root.lights["bFlash" + _root.q]._x = _x + run;
_root.lights["bFlash" + _root.q]._y = _y + rise;
_root.lights["bFlash" + _root.q]._rotation = (rot * 180) / Math.PI;
_root.q++;
duplicateMovieClip (_parent.muzzleFlash, "muzzleFlash" + _root.q, _root.q);
_parent["muzzleFlash" + _root.q]._x = _x + run;
_parent["muzzleFlash" + _root.q]._y = _y + rise;
_parent["muzzleFlash" + _root.q]._rotation = (rot * 180) / Math.PI;
_root.q++;
}
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
moving = false;
if (_root.cinematic != true) {
if (Key.isDown(65)) {
run = run - 0.7;
moving = true;
}
if (Key.isDown(68)) {
run = run + 0.7;
moving = true;
}
if (Key.isDown(87)) {
rise = rise - 0.7;
moving = true;
}
if (Key.isDown(83)) {
rise = rise + 0.7;
moving = true;
}
if (Key.isDown(70) && (hitF == false)) {
if (_root.messageCount == 0) {
_root.indicator._x = 540;
_root.indicator._y = 390;
_root.messageCount = 1;
_root.messageWin.t = 0;
_root.messages[0] = "I think I can see a light switch over in the corner there.\n\n(Use W, S, A, and D to move. Walk over to the light switch.)";
}
hitF = true;
flicker = random(50) + 2;
if (flashlight == false) {
flashlight = true;
t = 0;
} else {
flashlight = false;
if (_root.messageCount == 2) {
_root.messageCount = 3;
_root.messageWin.t = 0;
_root.messages[0] = "(Exit the room through the door at the bottom of the screen.)";
}
}
}
}
if (!Key.isDown(70)) {
hitF = false;
}
_x = (_x + run);
_y = (_y + rise);
run = run * decay;
rise = rise * decay;
if (Math.abs(run) < 0.1) {
run = 0;
}
if (Math.abs(rise) < 0.1) {
rise = 0;
}
if (moving == false) {
run = run * 0.75;
rise = rise * 0.75;
if (footsteps.getVolume() > 0) {
footsteps.setVolume(footsteps.getVolume() - 10);
}
} else if (footsteps.getVolume() < 80) {
footsteps.setVolume(footsteps.getVolume() + 10);
}
if ((_x + (w / 2)) > 550) {
_x = (550 - (w / 2));
run = 0;
}
if ((_x - (w / 2)) < 0) {
_x = (w / 2);
run = 0;
}
if ((_y + (h / 2)) > 400) {
_y = (400 - (h / 2));
rise = 0;
}
if ((_y - (h / 2)) < 0) {
_y = (h / 2);
rise = 0;
}
if (health <= 0) {
play();
footsteps.setVolume(0);
pistol = false;
flashlight = false;
_root.deathscreen.play();
dead = true;
}
if (_parent._currentframe == 5) {
dx = 275 - _x;
dy = 200 - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 110) {
rot = Math.atan2(dy, dx);
_x = (275 - (Math.cos(rot) * 110));
_y = (200 - (Math.sin(rot) * 110));
}
}
_root.lights.flashlight._x = _x;
_root.lights.flashlight._y = _y;
dx = _root._xmouse - _x;
dy = _root._ymouse - _y;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
if (flashlight == true) {
_root.lights.flashlight._visible = true;
t++;
if (t == flicker) {
t = 0;
_root.lights.flashlight._visible = false;
flicker = random(50) + 2;
}
_root.lights.flashlight._rotation = _rotation;
} else {
_root.lights.flashlight._visible = false;
_root.lights.flashlight._x = 20;
}
}
if ((((_root.messageCount == 1) && (_x > 510)) && (_y > 360)) && (flashlight == true)) {
_root.messageCount = 2;
_root.messageWin.t = 0;
_root.messages[0] = "Much better.\n\n(Press F again to turn off your flashlight.)";
_root.lights.roomLight._alpha = 100;
_root.indicator._x = -100;
}
if (((_root.messageCount == 3) && (_x > 250)) && ((_x < 300) & (_y > 385))) {
flashlight = false;
_root.messageWin.t = 0;
_root.messages[0] = "";
_root.messageCount = 4;
_root.trans.gotoAndPlay(2);
_y = (h / 2);
rise = (run = 0);
_root.messageWin.t = 0;
_root.messages[0] = "Man: Hello? Who's there? I can hear you! I'm not afraid of you!";
}
if (((((_root.messageCount == 4) && (_x > 200)) && (_x < 350)) && (_y > 125)) && (_y < 275)) {
if (flashlight == false) {
if (foundMan != true) {
_root.messageWin.t = 0;
_root.messages[0] = "Man: Who's there?! I can't see you!\n\n(Turn on your flashlight)";
foundMan = true;
}
} else {
_root.messageCount = 5;
_root.messageWin.t = 0;
_root.messages[0] = "Man: Oh, thank god, a survivor. I've been stuck in the dark for so long, I thought I'd die in here. Let's see if we can find a light switch.";
_root.main.man1.play();
}
}
if (((_root.messageCount == 6) && (_x < 75)) && (_y > 325)) {
_root.messageCount = 7;
_root.messageWin.t = 0;
_root.messages[0] = "Man: Hmm, can you see any swi-";
_root.main.man1.play();
}
if (((_root.messageCount == 7) && (_x > 450)) && (_y < 100)) {
_root.messageCount = 8;
_root.messageWin.t = 0;
_root.messages[0] = "Oh my god!\n\n(Find the door-hurry!)";
}
if (((_root.messageCount == 8) && (_x > 475)) && (_y > 375)) {
_root.trans.gotoAndPlay(2);
_y = (h / 2);
_root.messageCount = 9;
_root.messageWin.t = 0;
_root.messages[0] = "";
}
if (((_root.messageCount == 9) && (_x > 425)) && (_y > 275)) {
_root.messageCount = 10;
_root.messageWin.t = 0;
_root.messages[0] = "Injured Man: Help me...He dragged me here...I have a case of medicine...I dropped it back there...";
}
if ((_root.messageCount == 10) && (hitTest(_parent.medkit))) {
_root.messageCount = 11;
_parent.medkit._visible = false;
_root.messageWin.t = 0;
_root.messages[0] = "(Got the medicine kit, get it back to the injured man!)";
}
if (((_root.messageCount == 11) && (_x > 425)) && (_y > 275)) {
_root.messageCount = 12;
_root.messageWin.t = 0;
_root.messages[0] = "Injured Man: Thank you...I...I think that I might...might make it.\n\nOh, no...I can hear him. Take my gun. Kill him...please...\n\n(Click to fire your gun)";
_parent.zombie1._visible = true;
pistol = true;
}
if (((_root.messageCount == 13) && (_x > 425)) && (_y > 275)) {
_root.messageCount = 14;
_root.messageWin.t = 0;
_root.messages[0] = "Hey, don't worry. He's gone, I killed him.\nHey, are you alright?\n...Damnit! He's dead, too.\n\n(Find the door.)";
}
if ((((_root.messageCount == 14) && (_x > 535)) && (_y > 100)) && (_y < 175)) {
_root.trans.gotoAndPlay(2);
_x = (h / 2);
_root.messageCount = 15;
_root.messageWin.t = 0;
_root.messages[0] = "";
}
if ((_root.messageCount == 15) && (_parent.bodyCount == 4)) {
_root.messageCount = 16;
_root.messageWin.t = 0;
_root.messages[0] = "Damnit! I thought there was only one guy to deal with, but here are four more, all dead because of me. Time to keep moving, I guess. I'll find answers later.";
}
if (((_root.messageCount == 16) && (_x > 535)) && (_y > 330)) {
_x = (h / 2);
_root.trans.gotoAndPlay(2);
_root.messageCount = 17;
_root.messageWin.t = 0;
_root.messages[0] = "";
}
if ((_root.messageCount == 17) && (_x > 375)) {
_root.lights.flickerOn.play();
_root.messageCount = 18;
_parent.boss.go = true;
_parent.bossSong.start(0, 99999999999999);
}
if (((_root.messageCount == 19) && (_x > 535)) && (_y < 70)) {
_root.trans.gotoAndPlay(2);
_x = (w / 2);
_root.messageCount = 20;
_root.messageWin.t = 0;
_root.messages[0] = "Man: Hello?";
}
if (((((_root.messageCount == 20) && (_x > 200)) && (_x < 350)) && (_y > 125)) && (_y < 275)) {
_parent.rhodes.walk = true;
_root.messages = ["You: Another survivor! Are you hurt?\n\n(Press the spacebar to continue the conversation)", "Man: No, I'm fine. Who are you?\n(space)", "You: I...I don't know. I can't remember much of anything right now.\n(space)", "Man: Alright. You can call me Rhodes. I was in a group, but the lights went off and they started dying...I got out of there as fast as I could.\n(space)", "You: I just woke up a few rooms back a couple of minutes ago.\n(space)", "Rhodes: Alright. Are you armed?\n(space)", "You: Yeah, I've got a pistol on me.\n(space)", "Rhodes: Well, you're better off than me, then. I haven't found anything to fight back with as of yet.\n(space)", "You: What do you know about this place?\n(space)", "Rhodes: It's big, it has wooden floors, and it scares the hell out of me.\n(space)", "You: Well, there was some sort of assault robot just back through the door there. I had one hell of time taking that thing down.\n(space)", "Rhodes: An assault robot? I guess this isn't just any old building, then. Something important is going on. Why else would you be up against that kind of firepower?\n(space)", "You: Well, that's a possiblity. Maybe this is where they develop or test those machines.\n(space)", "Rhodes: Yeah, it could be either one. Hell, it could be something completely different for all we know. But I'm glad I found another survivor.\n(space)", "You: Why?\n(space)", "Rhodes: I'd never think about going anywhere alone. Good thing you taught that hunk of metal a lesson or two.\n(space)", "You: Heh, yeah. Let's keep moving. Stay close to me, I haven't had much luck keeping others alive so far.\n(space)", "Rhodes: Sounds like a plan.\n\n(Exit the room.)"];
_root.messageWin.t = 0;
_root.messageCount = 21;
}
if (_root.messageCount == 21) {
if (!Key.isDown(32)) {
hitspace = false;
}
if ((Key.isDown(32) && (hitspace == false)) && (_root.messages.length > 1)) {
hitspace = true;
_root.messages.splice(0, 1);
_root.messageWin.t = 0;
}
if ((((_root.messages.length == 1) && (_x > 535)) && (_y > 170)) && (_y < 230)) {
_root.trans.gotoAndPlay(2);
_x = ((_parent.rhodes._x = w / 2));
_parent.rhodes._y = _y - 40;
_root.messageWin.t = 0;
_root.messages = ["Rhodes: Hey, I just stepped on something.\n\n(spacebar)", "You: What is it?\n(space)", "Rhodes: Uh...Hmm, it's a piece of paper.\n(space)", "You: Oh, here's another one!\n(space)", "Rhodes: They're all over the place-let's see if we can get them all.\n(space)", "You: Here's one, and here's one...\n(space)", "Rhodes: Okay, I think we have them all.\n(space)", "You: Looks like it's a note that's been ripped up.\n(space)", "Rhodes: Alright then, put them back together!\n(space)", ""];
_root.messageCount = 22;
}
}
if (_root.messageCount == 22) {
if (!Key.isDown(32)) {
hitspace = false;
}
if (Key.isDown(32) && (hitspace == false)) {
hitspace = true;
if (_root.messages.length > 1) {
_root.messages.splice(0, 1);
_root.messageWin.t = 0;
}
if (_root.messages.length == 1) {
_root.puzzle._x = (_root.puzzle._y = 0);
_root.puzzle.cacheAsBitmap = false;
pistol = false;
}
}
}
if (_root.messageCount == 23) {
if (!Key.isDown(32)) {
hitspace = false;
}
if (Key.isDown(32) && (hitspace == false)) {
hitspace = true;
if (_root.messages.length > 1) {
_root.messages.splice(0, 1);
_root.messageWin.t = 0;
}
}
if ((((_root.messages.length == 1) && (_x > 535)) && (_y > 170)) && (_y < 230)) {
_root.trans.gotoAndPlay(2);
_x = ((_parent.rhodes._x = w / 2));
_parent.rhodes._y = _y - 40;
_root.messageWin.t = 0;
_root.messages = ["Rhodes (whispering): Who's that? He's giving you a weird look...I'd be careful."];
_root.messageCount = 24;
}
}
if (((_root.messageCount == 24) && (_x > 380)) && (wall == false)) {
_parent.wall.play();
wall = true;
_root.messageWin.t = 0;
_root.messages = [" Rhodes: Jesus!\n\n(Press space)", "You: Where the hell did that come from?!\n(space)", "Rhodes: I don't know, but this is just giving me more reasons to be nervous.\n(space)", "You: I know the feeling...\n(space)", "Rhodes: Well...now what? That wall is blocking our way.\n(space)", "You: Let's see what we can find in here.\n\n(search the room.)"];
_root.messageCount = 25;
}
if ((wall == true) && (_x > 410)) {
_x = 410;
run = 0;
}
if (_root.messageCount == 25) {
if (!Key.isDown(32)) {
hitspace = false;
}
if (Key.isDown(32) && (hitspace == false)) {
hitspace = true;
if (_root.messages.length > 1) {
_root.messages.splice(0, 1);
_root.messageWin.t = 0;
}
}
if ((_x < 70) && (_y < 50)) {
_root.messageWin.t = 0;
_root.messages = ["It's locked."];
_root.messageCount = 26;
}
}
if (((_root.messageCount == 27) && (_x < 70)) && (_y < 50)) {
_root.messageWin.t = 0;
_root.messages = ["There's a piece of paper in the box. It reads, \"He is the color of envy.\""];
_root.messageCount = 28;
}
if ((_root.messageCount >= 25) && (_root.messageCount == 28)) {
if (_root.messageCount == 28) {
if ((_x < 40) && (_y > 360)) {
_parent.pwdinput._visible = true;
pistol = false;
} else {
_parent.pwdinput._visible = false;
pistol = true;
}
} else if (((_x < 40) && (_y > 360)) && (_root.messages != ["It's a password console."])) {
_root.messageWin.t = 0;
_root.messages = ["It's a password console."];
}
}
if (((_root.messageCount == 29) && (_x > 535)) && (_y < 75)) {
_root.messageCount = 30;
_root.trans.gotoAndPlay(2);
_x = ((_parent.rhodes._x = w / 2));
_parent.rhodes._y = _y + 40;
_root.messageWin.t = 0;
pistol = false;
_root.messages = ["Rhodes: Wait, I know him...Give me your gun.\n\nYou: Alright."];
}
if (_root.messageCount == 30) {
dx = 275 - _x;
dy = 200 - _y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 60) {
rot = ((Math.atan2(-dy, -dx) * 180) / Math.PI) + 45;
tt = 0;
_root.messageCount = 31;
_root.cinematic = true;
_parent.rhodes.tarX = 275 + (Math.cos((rot * Math.PI) / 180) * 60);
_parent.rhodes.tarY = 200 + (Math.sin((rot * Math.PI) / 180) * 60);
_root.messageWin.t = 0;
_root.messages = ["\n\n\n\nRhodes: Alright, Mr. Greene. Time to come with me.\n(space)", "\n\n\n\nYou: This is Jason Greene?\n(space)", "\n\n\n\nRhodes: No.\n(space)", "\n\n\n\nYou: What?\n(space)", "\n\n\n\nRhodes: You are Jason Greene, and it's time to stop pretending. I've caught you.\n(space)", "\n\n\n\nYou: What the hell is going on?!\n(space)", "\n\n\n\nMan: Rhodes, great work, I was starting to doubt you for a minute there.\n(space)", "\n\n\n\nRhodes: Thank you. Now then, Mr. Greene, give yourself up.\n(space)", "\n\n\n\nYou: I told you, I'm not Jason Greene! You're wrong!\n(space)", "\n\n\n\nRhodes: Come on, Jason, don't tell me you don't remember. It should be coming back to you by now.\n(space)", "\n\n\n\nYou: What are you talking about?!\n(space)", "\n\n\n\nRhodes: You put the green light on the chemical testing going on in this very lab.\n(space)", "\n\n\n\nYou: I don't even know where we are! How could I have anything to do with all this?!\n(space)", "\n\n\n\nMan: Rhodes, I think he's suffering from memory loss.\n(space)", "\n\n\n\nRhodes: That is of no concern to me. I remember it; whether he does or not is irrelevant.\n(space)", "\n\n\n\nYou: I'm not Jason Greene!\n(space)", "\n\n\n\nRhodes: Listen, Jason. This is what happened here. Your company, Reverb Incorporated, has been testing products on humans.\n(space)", "\n\n\n\nRhodes: Many of these products were unsafe, and many test subjects were lost. And you didn't care.\n(space)", "\n\n\n\nRhodes: I was a worker for your company. We all knew that what we were doing was wrong, but no one wanted to speak up.\n(space)", "\n\n\n\nRhodes: Finally, we revolted. We tore down the facility. You were supposed to be killed.\n(space)", "\n\n\n\nRhodes: But somehow, we failed at that. You got away.\n(space)", "\n\n\n\nRhodes: And now, here we are.\n(space)", "\n\n\n\nYou: You're wrong...I couldn't have done that...\n(space)", "\n\n\n\nRhodes: No. You did. And now you need to come with me. I've decided something.\n(space)", "\n\n\n\nRhodes: Death isn't good enough for you. Instead, you'll get to tell everyone about what happened here.\n(space)", "\n\n\n\nYou: No. I won't do it...\n(space)", "\n\n\n\nRhodes: If that's your choice, then so be it."];
}
}
if (_root.messageCount == 31) {
if (!Key.isDown(32)) {
hitspace = false;
}
if (Key.isDown(32) && (hitspace == false)) {
hitspace = true;
if (_root.messages.length > 1) {
_root.messages.splice(0, 1);
_root.messageWin.t = 0;
}
}
if (_root.messages.length == 1) {
tt++;
if (tt == 70) {
duplicateMovieClip (_parent.muzzleFlash, "muzzleFlash" + _root.q, _root.q);
_parent["muzzleFlash" + _root.q]._x = _parent.rhodes._x;
_parent["muzzleFlash" + _root.q]._y = _parent.rhodes._y;
_parent["muzzleFlash" + _root.q]._rotation = (Math.atan2(_y - _parent.rhodes._y, _x - _parent.rhodes._x) * 180) / Math.PI;
_root.q++;
play();
_rotation = ((Math.atan2(_parent.rhodes._y - _y, _parent.rhodes._x - _x) * 180) / Math.PI);
_root.messageWin.t = 0;
_root.messages = ["\n\n\n\nMan: Rhodes, just what the hell was that for! You've killed him!\n(space)", "\n\n\n\nRhodes: No, I only hit his shoulder. He'll live.\n(space)", "\n\n\n\nMan: Where are we taking him?\n(space)", "\n\n\n\nRhodes: There are some cells where the test subjects were held on the other side of the facility.\n(space)", "\n\n\n\nMan: How long will he stay there?\n(space)", "\n\n\n\nRhodes: Until his public announcement is ready to begin. Or, if he doesn't make it, as long as he lasts.\n(space)", "\n\n\n\nRhodes: Actually, I have an idea. We'll give him the right to live, but only if he earns it."];
}
if (tt > 70) {
_root.fadeout.play();
_root.messageCount = 32;
}
}
}
if (_root.messageCount == 32) {
if (!Key.isDown(32)) {
hitspace = false;
}
if (Key.isDown(32) && (hitspace == false)) {
hitspace = true;
if (_root.messages.length > 1) {
_root.messages.splice(0, 1);
_root.messageWin.t = 0;
}
}
if ((_x > 535) && (_y > 310)) {
_root.trans.play();
_root.messages = [""];
_root.messageWin.t = 0;
_root.maze.gotoAndStop(2);
_root.maze._x = 0;
_root.messageCount = 33;
}
}
if (_root.messageCount == 34) {
if (!Key.isDown(32)) {
hitspace = false;
}
if (Key.isDown(32) && (hitspace == false)) {
hitspace = true;
if (_root.messages.length > 1) {
_root.messages.splice(0, 1);
_root.messageWin.t = 0;
} else {
_root.stopAllSounds();
_root.messageCount = 35;
_root.ending.play();
}
}
}
}
Instance of Symbol 66 MovieClip "muzzleFlash" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
if (_name == "muzzleFlash") {
_visible = false;
stop();
} else {
_visible = true;
_xscale = (random(30) + 70);
if (random(2) == 0) {
_yscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 72 MovieClip "blood" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
if (_name == "blood") {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Symbol 158 MovieClip Frame 3
enemies = ["zombie1"];
Instance of Symbol 108 MovieClip "zombie1" in Symbol 158 MovieClip Frame 3
onClipEvent (load) {
footsteps = new Sound(this);
footsteps.setVolume(0);
footsteps.attachSound("footsteps");
footsteps.start(0, 999999999);
speed = 2;
_visible = false;
health = 2;
}
onClipEvent (enterFrame) {
if (((_visible == true) && (health > 0)) && (_parent.man._currentframe == 1)) {
dx = _parent.man._x - _x;
dy = _parent.man._y - _y;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
run = Math.cos((_rotation * Math.PI) / 180);
rise = Math.sin((_rotation * Math.PI) / 180);
if (Math.sqrt((dx * dx) + (dy * dy)) > 30) {
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
if (footsteps.getVolume() < 100) {
footsteps.setVolume(footsteps.getVolume() + 10);
}
} else {
if (footsteps.getVolume() > 0) {
footsteps.setVolume(footsteps.getVolume() - 10);
}
play();
}
}
if ((health <= 0) && (_currentframe < 17)) {
gotoAndPlay (17);
_root.messageCount = 13;
footsteps.stop();
}
}
Symbol 158 MovieClip Frame 4
enemies = ["zombie1", "zombie2", "zombie3", "zombie4"];
bodyCount = 0;
Instance of Symbol 108 MovieClip "zombie1" in Symbol 158 MovieClip Frame 4
onClipEvent (load) {
footsteps = new Sound(this);
footsteps.setVolume(0);
footsteps.attachSound("footsteps");
startSound = random(20) + 1;
a = 0;
speed = 2;
health = 2;
}
onClipEvent (enterFrame) {
a++;
if (a == startSound) {
footsteps.start(0, 999999999);
}
if (((_visible == true) && (health > 0)) && (_parent.man._currentframe == 1)) {
dx = _parent.man._x - _x;
dy = _parent.man._y - _y;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
run = Math.cos((_rotation * Math.PI) / 180);
rise = Math.sin((_rotation * Math.PI) / 180);
if (Math.sqrt((dx * dx) + (dy * dy)) > 30) {
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
if (footsteps.getVolume() < 100) {
footsteps.setVolume(footsteps.getVolume() + 10);
}
} else {
if (footsteps.getVolume() > 0) {
footsteps.setVolume(footsteps.getVolume() - 10);
}
play();
}
}
if ((health <= 0) && (_currentframe < 17)) {
gotoAndPlay (17);
_parent.bodyCount++;
footsteps.stop();
}
}
Instance of Symbol 108 MovieClip "zombie2" in Symbol 158 MovieClip Frame 4
onClipEvent (load) {
footsteps = new Sound(this);
footsteps.setVolume(0);
footsteps.attachSound("footsteps");
startSound = random(20) + 1;
a = 0;
speed = 2;
health = 2;
}
onClipEvent (enterFrame) {
a++;
if (a == startSound) {
footsteps.start(0, 999999999);
}
if (((_visible == true) && (health > 0)) && (_parent.man._currentframe == 1)) {
dx = _parent.man._x - _x;
dy = _parent.man._y - _y;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
run = Math.cos((_rotation * Math.PI) / 180);
rise = Math.sin((_rotation * Math.PI) / 180);
if (Math.sqrt((dx * dx) + (dy * dy)) > 30) {
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
if (footsteps.getVolume() < 100) {
footsteps.setVolume(footsteps.getVolume() + 10);
}
} else {
if (footsteps.getVolume() > 0) {
footsteps.setVolume(footsteps.getVolume() - 10);
}
play();
}
}
if ((health <= 0) && (_currentframe < 17)) {
gotoAndPlay (17);
_parent.bodyCount++;
footsteps.stop();
}
}
Instance of Symbol 108 MovieClip "zombie4" in Symbol 158 MovieClip Frame 4
onClipEvent (load) {
footsteps = new Sound(this);
footsteps.setVolume(0);
footsteps.attachSound("footsteps");
startSound = random(20) + 1;
a = 0;
speed = 2;
health = 2;
}
onClipEvent (enterFrame) {
a++;
if (a == startSound) {
footsteps.start(0, 999999999);
}
if (((_visible == true) && (health > 0)) && (_parent.man._currentframe == 1)) {
dx = _parent.man._x - _x;
dy = _parent.man._y - _y;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
run = Math.cos((_rotation * Math.PI) / 180);
rise = Math.sin((_rotation * Math.PI) / 180);
if (Math.sqrt((dx * dx) + (dy * dy)) > 30) {
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
if (footsteps.getVolume() < 100) {
footsteps.setVolume(footsteps.getVolume() + 10);
}
} else {
if (footsteps.getVolume() > 0) {
footsteps.setVolume(footsteps.getVolume() - 10);
}
play();
}
}
if ((health <= 0) && (_currentframe < 17)) {
gotoAndPlay (17);
_parent.bodyCount++;
footsteps.stop();
}
}
Instance of Symbol 108 MovieClip "zombie3" in Symbol 158 MovieClip Frame 4
onClipEvent (load) {
footsteps = new Sound(this);
footsteps.setVolume(0);
footsteps.attachSound("footsteps");
startSound = random(20) + 1;
a = 0;
speed = 2;
health = 2;
}
onClipEvent (enterFrame) {
a++;
if (a == startSound) {
footsteps.start(0, 999999999);
}
if (((_visible == true) && (health > 0)) && (_parent.man._currentframe == 1)) {
dx = _parent.man._x - _x;
dy = _parent.man._y - _y;
_rotation = ((Math.atan2(dy, dx) * 180) / Math.PI);
run = Math.cos((_rotation * Math.PI) / 180);
rise = Math.sin((_rotation * Math.PI) / 180);
if (Math.sqrt((dx * dx) + (dy * dy)) > 30) {
_x = (_x + (run * speed));
_y = (_y + (rise * speed));
if (footsteps.getVolume() < 100) {
footsteps.setVolume(footsteps.getVolume() + 10);
}
} else {
if (footsteps.getVolume() > 0) {
footsteps.setVolume(footsteps.getVolume() - 10);
}
play();
}
}
if ((health <= 0) && (_currentframe < 17)) {
gotoAndPlay (17);
_parent.bodyCount++;
footsteps.stop();
}
}
Symbol 158 MovieClip Frame 5
_root.checkpoint.play();
_root.room = 5;
enemies = ["boss", "reactor", "target1"];
_root.theSong.stop();
bossSong = new Sound(reactor);
bossSong.setVolume(100);
bossSong.attachSound("boss battle");
Instance of Symbol 115 MovieClip "target1" in Symbol 158 MovieClip Frame 5
onClipEvent (load) {
health = 5;
}
onClipEvent (enterFrame) {
if (_root.lights.flickerOn._currentframe == 1) {
health = 5;
gotoAndStop (1);
}
if (health == 0) {
health = 5;
_parent.boss.adding = true;
_parent.boss.play();
}
}
Instance of Symbol 117 MovieClip "deadboss" in Symbol 158 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 123 MovieClip "reactor" in Symbol 158 MovieClip Frame 5
onClipEvent (load) {
health = 15;
explode = false;
}
onClipEvent (enterFrame) {
if (_root.lights.flickerOn._currentframe == 1) {
health = 30;
gotoAndStop (1);
}
if ((health <= 0) && (explode == false)) {
explode = true;
_parent.explosions.play();
_root.messageCount = 19;
_root.messageWin.t = 0;
_root.messages[0] = "My god, this just gets worse and worse...What was that machine? What the hell am I doing in a building with something like that in it?\n\n(Get to the door.)";
gotoAndPlay (9);
}
if ((health <= 0) && (_parent.bossSong.getVolume() > 0)) {
_parent.bossSong.setVolume(_parent.bossSong.getVolume() - 2);
}
}
Instance of Symbol 133 MovieClip "boss" in Symbol 158 MovieClip Frame 5
onClipEvent (load) {
adding = false;
t = 0;
go = false;
spin = 0;
decay = 0.94;
blurAmt = 20;
crazy = 20;
_parent.createEmptyMovieClip("lightning", _root.q++);
filter = new flash.filters.GlowFilter();
filter.color = 16711935 /* 0xFF00FF */;
filter.quality = 1;
filter.strength = 10;
_parent.lightning.filters = [filter];
}
onClipEvent (enterFrame) {
if (go == true) {
if ((adding == true) && (_parent.reactor.explode == false)) {
t++;
}
if (t >= 130) {
t = 0;
adding = false;
}
rotDiff = (((Math.atan2(_y - _parent.man._y, _x - _parent.man._x) * 180) / Math.PI) - _rotation) + 90;
if (rotDiff > 180) {
rotDiff = rotDiff - 360;
}
if (rotDiff < -180) {
rotDiff = rotDiff + 360;
}
if (rotDiff > 0) {
spin = spin + 0.1;
} else {
spin = spin - 0.1;
}
if (_parent.reactor.explode == true) {
spin = spin - 0.9;
}
spin = spin * decay;
_rotation = (_rotation + spin);
_parent.target1._x = 275 + (Math.cos(((_rotation - 90) * Math.PI) / 180) * 100);
_parent.target1._y = 200 + (Math.sin(((_rotation - 90) * Math.PI) / 180) * 100);
_parent.lightning.clear();
if (t < 1) {
x = 275 + (Math.cos(((_rotation + 90) * Math.PI) / 180) * 335);
y = 200 + (Math.sin(((_rotation + 90) * Math.PI) / 180) * 335);
rot = Math.atan2(y - 200, x - 275);
run = Math.cos(rot);
rise = Math.sin(rot);
dist = Math.sqrt(((y - 200) * (y - 200)) + ((x - 275) * (x - 275)));
_parent.lightning.lineStyle(2, 16777215);
j = 0;
while (j < 1) {
_parent.lightning.moveTo(275, 200);
len = 20;
while (len < dist) {
offx = random(crazy) - (crazy / 2);
offy = random(crazy) - (crazy / 2);
_parent.lightning.lineTo((275 + (run * len)) + offx, (200 + (rise * len)) + offy);
cx = 275 + (run * len);
cy = 200 + (rise * len);
dx = cx - _parent.man._x;
dy = cy - _parent.man._y;
d = Math.sqrt((dx * dx) + (dy * dy));
if (d < 15) {
_parent.man.health = 0;
}
len = len + 20;
}
_parent.lightning.lineTo(x, y);
j++;
}
}
}
}
Symbol 158 MovieClip Frame 6
_root.checkpoint.play();
bossSong.stop();
_root.theSong.start(0, 999999999999);
reactor._visible = false;
_root.room = 6;
Instance of Symbol 135 MovieClip "rhodes" in Symbol 158 MovieClip Frame 6
onClipEvent (load) {
if (_parent._currentframe == 6) {
walk = false;
} else {
walk = true;
}
footsteps = new Sound(this);
footsteps.setVolume(0);
footsteps.attachSound("footsteps");
footsteps.start(0, 999999999);
}
onClipEvent (enterFrame) {
if (walk == true) {
if (tarX == undefined) {
dx = _parent.man._x - _x;
dy = _parent.man._y - _y;
} else {
dx = tarX - _x;
dy = tarY - _y;
}
if ((Math.sqrt((dx * dx) + (dy * dy)) > 40) || ((tarX != undefined) && (Math.sqrt((dx * dx) + (dy * dy)) > 3))) {
rot = Math.atan2(dy, dx);
_x = (_x + (Math.cos(rot) * 2));
_y = (_y + (Math.sin(rot) * 2));
if (footsteps.getVolume() < 80) {
footsteps.setVolume(footsteps.getVolume() + 10);
}
} else if (footsteps.getVolume() > 0) {
footsteps.setVolume(footsteps.getVolume() - 10);
}
}
}
Symbol 158 MovieClip Frame 8
enemies = ["box"];
Instance of Symbol 142 MovieClip "box" in Symbol 158 MovieClip Frame 8
onClipEvent (load) {
health = 1;
lock = true;
}
onClipEvent (enterFrame) {
if (_parent.wall._currentframe == 1) {
health = 1;
}
if ((health == 0) && (lock == true)) {
lock = false;
_root.messageWin.t = 0;
_root.messages = ["Well...that's one way to unlock something."];
_root.messageCount = 27;
}
}
Instance of Symbol 153 MovieClip "pwdinput" in Symbol 158 MovieClip Frame 8
onClipEvent (load) {
_visible = false;
}
Symbol 158 MovieClip Frame 9
enemies = ["man"];
_root.checkpoint.play();
_root.room = 9;
Symbol 168 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 24
stop();
Symbol 178 MovieClip Frame 1
stop();
Instance of Symbol 170 MovieClip "roomLight" in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 171 MovieClip in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 173 MovieClip "flashlight" in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 175 MovieClip "bFlash" in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
if (_name == "bFlash") {
_visible = false;
} else {
_visible = true;
_alpha = 140;
}
}
onClipEvent (enterFrame) {
if (_name != "bFlash") {
_alpha = (_alpha - 40);
if (_alpha <= 0) {
removeMovieClip(this);
}
}
if (_root._currentframe != 2) {
removeMovieClip(this);
}
}
Instance of Symbol 186 MovieClip in Symbol 190 MovieClip Frame 1
onClipEvent (enterFrame) {
_yscale = ((_root.main.man.health / 10) * 100);
if (_root.invulnerable == true) {
_visible = false;
}
}
Symbol 196 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 200 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 204 Button
on (release) {
_root._quality = "LOW";
}
Instance of Symbol 205 MovieClip in Symbol 208 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.main.reactor.health / 30) * 100);
if (_xscale < 0) {
_xscale = 0;
}
}
Instance of Symbol 208 MovieClip in Symbol 209 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((_root.main._currentframe == 5) && (_root.lights.flickerOn._currentframe != 1)) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 211 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 214 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 217 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 220 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 223 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 226 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 229 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 232 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 235 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 238 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 241 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 244 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 247 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 250 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 253 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 256 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 259 Button
on (press) {
if (stuck == false) {
startDrag (this);
}
}
Symbol 265 Button
on (release) {
_root.messageWin.t = 0;
_root.messages = ["You: Jason Greene...This is all sounding very familiar. I think I remember him being a figure of authority, like it says here.\n(space)", "Rhodes: Yeah, I think you're right.\n\n(Exit the room.)"];
_root.messageCount = 23;
_parent._x = 600;
_root.main.man.pistol = true;
}
Instance of Symbol 212 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 215 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 218 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 221 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 224 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 227 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 230 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 233 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 236 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 239 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 242 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 245 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 248 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 251 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 254 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 257 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 260 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = true;
stuck = false;
drag = false;
x = _x;
y = _y;
_x = random(550 - _width);
_y = random(400 - _height);
clicking = new Object();
clicking.onMouseUp = function () {
if (((((_x > (x - 10)) && (_x < (x + 10))) && (_y > (y - 10))) && (_y < (y + 10))) && (stuck == false)) {
_x = x;
_y = y;
_root.pieces++;
stuck = true;
}
stopDrag();
};
Mouse.addListener(clicking);
}
onClipEvent (enterFrame) {
if (stuck == false) {
this.swapDepths(_root.q++);
} else {
_x = x;
_y = y;
}
}
Instance of Symbol 266 MovieClip in Symbol 268 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.pieces == 17) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 2
time = 1350;
createEmptyMovieClip("bar", _root.q++);
_root.onEnterFrame = function () {
time--;
x = (time / 1350) * 550;
bar.clear();
bar.beginFill(16711680, 30);
bar.moveTo(0, 215);
bar.lineTo(0, 235);
bar.lineTo(x, 235);
bar.lineTo(x, 215);
bar.endFill();
if ((time == 0) && (_currentframe == 2)) {
gotoAndStop (1);
_root.main.man.health = 0;
_root.main.man._x = 275;
_root.main.man._y = 200;
}
};
Instance of Symbol 275 MovieClip in Symbol 276 MovieClip Frame 2
onClipEvent (enterFrame) {
if (random(3) == 0) {
duplicateMovieClip (_parent.blood.bloodgen, "blood" + _root.q, _root.q);
_parent.blood.bloodgen._x = (_x + random(5)) - 2;
_parent.blood.bloodgen._y = (_y + random(5)) - 2;
_parent.blood.bloodgen._xscale = random(50) + 25;
_parent.blood.bloodgen._yscale = random(50) + 25;
_root.q++;
}
if (Key.isDown(65)) {
if (_parent.walls.hitTest(_x - 1, _y, true) != true) {
_x = (_x - 1);
}
if (_parent.walls.hitTest(_x - 1, _y, true) != true) {
_x = (_x - 1);
}
}
if (Key.isDown(68)) {
if (_parent.walls.hitTest(_x + 1, _y, true) != true) {
_x = (_x + 1);
}
if (_parent.walls.hitTest(_x + 1, _y, true) != true) {
_x = (_x + 1);
}
}
if (Key.isDown(87)) {
if (_parent.walls.hitTest(_x, _y - 1, true) != true) {
_y = (_y - 1);
}
if (_parent.walls.hitTest(_x, _y - 1, true) != true) {
_y = (_y - 1);
}
}
if (Key.isDown(83)) {
if (_parent.walls.hitTest(_x, _y + 1, true) != true) {
_y = (_y + 1);
}
if (_parent.walls.hitTest(_x, _y + 1, true) != true) {
_y = (_y + 1);
}
}
if ((_x > 520) && (_y > 420)) {
_root.messages = ["Rhodes (intercom): Fantastic work, Mr. Greene! I had my utmost confidence in you.\n(space)", "Rhodes (intercom): However, I'm afraid I have some bad news for you, regarding your speech.\n(space)", "Rhodes (intercom): It's time.\n(space)"];
_root.messageWin.t = 0;
_root.maze._x = 700;
_root.messageCount = 34;
_root.main.man._x = (_root.main.man._y = 60);
_root.trans.gotoAndPlay(2);
_root.maze.gotoAndStop(1);
}
}
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 2
_root.lights.gotoAndStop(_root.lights._currentframe + 1);
_root.main.gotoAndStop(_root.main._currentframe + 1);
Symbol 284 Button
on (release) {
if (_root.main._currentframe < 5) {
_root.main.gotoAndStop(1);
_root.lights.gotoAndStop(1);
_root.main.man.setup(50, 200, false);
_root.messages = ["Damn, looks like the lights are off. I think...yeah, here's my flashlight.\n\n(Hit F to turn on your flashlight.)"];
_root.messageCount = 0;
}
}
Symbol 286 Button
on (release) {
stopAllSounds();
_root.messages = [""];
Mouse.removeListener(_root.main.man.clicking);
_root.gotoAndStop(1);
}
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 17
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 163
_root.trans.gotoAndPlay(2);
_root.cinematic = false;
UIMask.setMask(null);
_root.messages = ["Rhodes: Awake at last, Mr. Greene?\n(space)", "You: Ugh...where are you?\n(space)", "Rhodes: I'm talking through the intercom, Jason. I want you to listen very carefully. I'm going to make you give your little speech-I think you're really going to enjoy it. But here's the catch.\n(space)", "Rhodes: There's a First Aid kit nearby, and I want to see if you're quick enough to find it. We've set up a nice little maze for you to run through.\n(space)", "Rhodes: I must say that I would reccomend immediate care for that injury to your shoulder; it's not looking good. Be swift, little rat."];
_root.lights._visible = false;
_root.main.man.gotoAndStop(1);
_root.main.man._x = 275;
_root.main.man._y = 200;
_root.main.rhodes.footsteps.stop();
_root.messageCount = 32;
_root.checkpoint.play();
_root.room = 10;
Symbol 302 Button
on (release) {
getURL ("http://www.stickpage.com/", _blank);
}
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 107
stop();