Frame 1
stop();
Stage.showMenu = false;
NewgroundsAPI.connectMovie(3549);
var saveData = SharedObject.getLocal("NGOFFICEADVENTURE");
var completedChallenges;
var secondsRecord = 0;
var secondsRecordString = "";
var clickRecord = 0;
if (saveData.data.completedChallenges == undefined) {
completedChallenges = new Array(false, false, false, false, false);
} else {
completedChallenges = saveData.data.completedChallenges.concat();
secondsRecord = saveData.data.secondsRecord;
clickRecord = saveData.data.clickRecord;
secondsRecordString = saveData.data.secondsRecordString;
}
Frame 95
gotoAndStop ("main");
Frame 221
function loadChallengeData(Void) {
var _local6 = completedChallenges.length;
var _local4 = 0;
var _local2;
_local2 = 0;
while (_local2 < completedChallenges.length) {
var _local3 = _root.challengesclip["badge" + (_local2 + 1)];
if (completedChallenges[_local2]) {
_local3._alpha = 100;
_local3.nextFrame();
_local4++;
} else {
_local3._alpha = 25;
}
_local2++;
}
var _local5 = "";
if (_local4 == _local6) {
_local5 = " (Fag)";
}
challengesclip.txtChallenges.text = (((_local4 + " of ") + _local6) + " completed") + _local5;
if (secondsRecord != 0) {
challengesclip.txtSpeedRecord.text = ("Beat the game in under 60 seconds (Record: " + secondsRecordString) + ")";
}
if (clickRecord != 0) {
challengesclip.txtClickRecord.text = ("Beat the game in less than 80 clicks (Record: " + clickRecord) + " clicks)";
}
}
function saveGame(Void) {
saveData.data.secondsRecord = secondsRecord;
saveData.data.secondsRecordString = secondsRecordString;
saveData.data.clickRecord = clickRecord;
saveData.data.completedChallenges = completedChallenges.concat();
saveData.flush();
}
stop();
if (!audioPlaying) {
var audioPlaying = true;
var musicLoop = new Sound();
musicLoop.attachSound("musicLoop");
musicLoop.start(0, 999);
}
Instance of Symbol 115 MovieClip "challengesclip" in Frame 221
onClipEvent (load) {
_visible = false;
}
Frame 238
function goTo(inLocation) {
if (cursor == "") {
wordballoons.gotoAndStop(1);
blackover.gotoAndPlay(2);
_root.gotoAndStop(inLocation);
sanitizeScreen();
}
}
function showMessage(inMessage) {
txtMessage.text = inMessage;
messagetimer.gotoAndPlay(2);
}
function showDialog(inPosition, inMessage) {
wordballoons.gotoAndStop(inPosition);
wordballoons.txtMessage.text = inMessage;
if (hiddenMessage) {
wordballoons.txtMessage.textColor = 255;
} else {
wordballoons.txtMessage.textColor = 0;
}
hiddenMessage = false;
}
function showPrompt(inMessage) {
promptclip.gotoAndStop(2);
promptclip.txtMessage.text = inMessage;
}
function cursorFollow(Void) {
cursorclip.gotoAndStop(cursor);
cursorclip._x = _root._xmouse;
cursorclip._y = _root._ymouse;
cursorclip.onEnterFrame = function (Void) {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
cursorclip._visible = true;
Mouse.hide();
}
function resetCursor(Void) {
cursorclip.gotoAndStop(1);
cursorclip.onEnterFrame = null;
cursorclip._visible = false;
Mouse.show();
_root["INV" + cursor]._alpha = 100;
cursor = "";
}
function activateCustomEvent(Void) {
if (customEvent == "") {
} else if (customEvent == "jeffjoin") {
showPrompt("Jeff joined the party!");
jeff._visible = false;
} else if (customEvent == "swainjoin") {
showPrompt("Swain joined the party!\n(that was easy...)");
swain._visible = false;
} else if (customEvent == "bobjoin") {
showPrompt("Bob joined the party!");
bob._visible = false;
} else if (customEvent == "mikejoin") {
showPrompt("Mike joined the party!");
mike._visible = false;
} else if (customEvent == "luisjoin") {
showPrompt("Luis joined the party!");
luis._visible = false;
} else if (customEvent == "afrojoin") {
showPrompt("Afro joined the party!");
afro._visible = false;
} else if (customEvent == "timjoin") {
showPrompt("Tim joined the party!");
tim._visible = false;
} else if (customEvent == "fly") {
promptclip.gotoAndStop(3);
}
customEvent = "";
}
function findFaice(faiceNum) {
if (cursor == "") {
angrehFaices[faiceNum] = true;
var _local1;
faicesFound = 0;
_local1 = 0;
while (_local1 < angrehFaices.length) {
if (angrehFaices[_local1]) {
faicesFound++;
}
_local1++;
}
showPrompt(((("Hidden Angreh Faice!\n" + faicesFound) + "/") + faicesTotal) + " found");
}
}
function mikeDrinks(beverage) {
var _local1 = false;
for (var _local3 in mikesDrinks) {
if (String(beverage) == String(mikesDrinks[_local3])) {
_local1 = true;
}
}
if (!_local1) {
mikesDrinks.push(beverage);
}
}
function vend(beverage) {
if (currentlyVended == "") {
currentlyVended = beverage.toLowerCase();
vendswitch._visible = true;
vendswitch.gotoAndStop(currentlyVended);
blackover.gotoAndPlay(2);
} else {
showPrompt("Pick up what's in the slot first!");
}
}
function createCarrotAle(Void) {
hasCarrotAle = true;
currentCan = "xtreme_ginger_ale";
INVcan.gotoAndStop(_root.currentCan);
hasCarrot = false;
INVcarrot._visible = false;
resetCursor();
txtMessage.text = "";
showPrompt("You created Xtreme Ginger Ale!");
}
function createToxicBeer(Void) {
hasToxicBeer = true;
currentCan = "toxic_beer";
INVcan.gotoAndStop(_root.currentCan);
resetCursor();
txtMessage.text = "";
showPrompt("You created Toxic Beer!");
}
function exitToTitle(Void) {
setup = false;
_root.onEnterFrame = null;
Mouse.removeListener(clickTracker);
_root.gotoAndStop("main");
}
function sanitizeScreen(Void) {
var _local2;
for (_local2 in _root) {
_root[_local2].useHandCursor = false;
_root[_local2].tabEnabled = false;
}
}
stop();
if (!setup) {
var setup = true;
var cursor = "";
var customEvent = "";
var totalClicks = 0;
var totalSeconds = 0;
var startTime = getTimer();
var hasTalkedToAfro = false;
var flownToOhio = false;
var beersForLuis = 0;
var mikesDrinks = new Array();
Mouse.removeListener(clickTracker);
var clickTracker = new Object();
clickTracker.onMouseDown = function (Void) {
totalClicks++;
};
Mouse.addListener(clickTracker);
var hiddenMessages = new Array(false, false, false, false, false, false, false);
var hiddenMessage = false;
var angrehFaices = new Array(false, false, false, false, false, false, false, false, false, false, false);
var faicesTotal = angrehFaices.length;
var faicesFound = 0;
var partyJeff = false;
var partyBob = false;
var partyTim = false;
var partyMike = false;
var partyAfro = false;
var partySwain = false;
var partyLuis = false;
var currentlyVended = "";
var currentCan = "";
var hasPenicorn = false;
var hasCash = false;
var hasList = false;
var hasCarrot = false;
var hasCan = false;
var hasPot = false;
var hasWrench = false;
var hasBleach = false;
var hasPick = false;
var hasToxicBeer = false;
var hasCarrotAle = false;
var usedPenicorn = false;
var usedCash = false;
var usedCarrot = false;
var usedPot = false;
}
_root.onEnterFrame = function (Void) {
sanitizeScreen();
};
Instance of Symbol 126 MovieClip in Frame 238
onClipEvent (load) {
_visible = (!_root.partyBob);
}
Instance of Symbol 55 MovieClip in Frame 238
onClipEvent (load) {
}
on (press) {
_root.resetCursor();
}
Instance of Symbol 155 MovieClip "INVpenicorn" in Frame 238
onClipEvent (load) {
_visible = (_root.hasPenicorn && (!_root.usedPenicorn));
this.properName = _name.substr(3);
}
on (rollOver) {
_root.txtMessage.text = this.properName;
}
on (rollOut) {
_root.txtMessage.text = "";
}
on (press) {
if (_root.cursor == this.properName) {
_root.resetCursor();
} else {
_root.resetCursor();
_alpha = 25;
_root.cursor = this.properName;
_root.cursorFollow();
}
}
Instance of Symbol 157 MovieClip "INVbleach" in Frame 238
onClipEvent (load) {
_visible = (_root.hasBleach && (!_root.usedBleach));
this.properName = _name.substr(3);
}
on (rollOver) {
_root.txtMessage.text = this.properName;
}
on (rollOut) {
_root.txtMessage.text = "";
}
on (press) {
if (_root.cursor == this.properName) {
_root.resetCursor();
} else if (((_root.cursor == "can") && (!_root.hasToxicBeer)) && (_root.currentCan == "miller_time")) {
_root.createToxicBeer();
} else {
_root.resetCursor();
_alpha = 25;
_root.cursor = this.properName;
_root.cursorFollow();
}
}
Instance of Symbol 159 MovieClip "INVpot" in Frame 238
onClipEvent (load) {
_visible = (_root.hasPot && (!_root.usedPot));
this.properName = _name.substr(3);
}
on (rollOver) {
_root.txtMessage.text = this.properName;
}
on (rollOut) {
_root.txtMessage.text = "";
}
on (press) {
if (_root.cursor == this.properName) {
_root.resetCursor();
} else {
_root.resetCursor();
_alpha = 25;
_root.cursor = this.properName;
_root.cursorFollow();
}
}
Instance of Symbol 161 MovieClip "INVwrench" in Frame 238
onClipEvent (load) {
_visible = _root.hasWrench;
this.properName = _name.substr(3);
}
on (rollOver) {
_root.txtMessage.text = this.properName;
}
on (rollOut) {
_root.txtMessage.text = "";
}
on (press) {
if (_root.cursor == this.properName) {
_root.resetCursor();
} else {
_root.resetCursor();
_alpha = 25;
_root.cursor = this.properName;
_root.cursorFollow();
}
}
Instance of Symbol 163 MovieClip "INVpick" in Frame 238
onClipEvent (load) {
_visible = (_root.hasPick && (!_root.usedPick));
this.properName = _name.substr(3);
}
on (rollOver) {
_root.txtMessage.text = this.properName;
}
on (rollOut) {
_root.txtMessage.text = "";
}
on (press) {
if (_root.cursor == this.properName) {
_root.resetCursor();
} else {
_root.resetCursor();
_alpha = 25;
_root.cursor = this.properName;
_root.cursorFollow();
}
}
Instance of Symbol 165 MovieClip "INVcash" in Frame 238
onClipEvent (load) {
_visible = (_root.hasCash && (!_root.usedCash));
this.properName = _name.substr(3);
}
on (rollOver) {
_root.txtMessage.text = this.properName;
}
on (rollOut) {
_root.txtMessage.text = "";
}
on (press) {
if (_root.cursor == this.properName) {
_root.resetCursor();
} else {
_root.resetCursor();
_alpha = 25;
_root.cursor = this.properName;
_root.cursorFollow();
}
}
Instance of Symbol 167 MovieClip "INVlist" in Frame 238
onClipEvent (load) {
_visible = _root.hasList;
this.properName = _name.substr(3);
}
on (rollOver) {
_root.txtMessage.text = this.properName;
_root.listclip.gotoAndStop(2);
}
on (rollOut) {
_root.txtMessage.text = "";
_root.listclip.gotoAndStop(1);
}
Instance of Symbol 169 MovieClip "INVcarrot" in Frame 238
onClipEvent (load) {
_visible = (_root.hasCarrot && (!_root.usedCarrot));
this.properName = _name.substr(3);
}
on (rollOver) {
_root.txtMessage.text = this.properName;
}
on (rollOut) {
_root.txtMessage.text = "";
}
on (press) {
if (_root.cursor == this.properName) {
_root.resetCursor();
} else if (((_root.cursor == "can") && (!_root.hasCarrotAle)) && (_root.currentCan == "ginger_ale")) {
_root.createCarrotAle();
} else {
_root.resetCursor();
_alpha = 25;
_root.cursor = this.properName;
_root.cursorFollow();
}
}
Instance of Symbol 184 MovieClip "INVcan" in Frame 238
onClipEvent (load) {
if (_root.currentCan == "") {
_visible = false;
} else {
_visible = true;
this.gotoAndStop(_root.currentCan);
}
this.properName = _name.substr(3);
}
on (rollOver) {
_root.txtMessage.text = _root.currentCan.split("_").join(" ");
}
on (rollOut) {
_root.txtMessage.text = "";
}
on (press) {
if (_root.cursor == this.properName) {
_root.resetCursor();
} else if (((_root.cursor == "carrot") && (!_root.hasCarrotAle)) && (_root.currentCan == "ginger_ale")) {
_root.createCarrotAle();
} else if (((_root.cursor == "bleach") && (!_root.hasToxicBeer)) && (_root.currentCan == "miller_time")) {
_root.createToxicBeer();
} else {
_root.resetCursor();
_alpha = 25;
_root.cursor = this.properName;
_root.cursorFollow();
}
}
Instance of Symbol 253 MovieClip "bob" in Frame 239
onClipEvent (load) {
_visible = (!_root.partyBob);
}
on (press) {
if (_root.cursor == "") {
_root.showDialog("bottom", "Bob: Sup.");
} else if (_root.cursor == "pot") {
_root.customEvent = "bobjoin";
_root.resetCursor();
_root.INVpot._visible = false;
_root.usedPot = true;
_root.partyBob = true;
_root.showDialog("bottom", "Bob: Look.. uh... the joke was supposed to be something about how 'p-bot' is one letter away from 'pot.' In fact the person who wrote this display text isn't even sure. Fuck it, let's party.");
} else if (_root.cursor == "penicorn") {
_root.resetCursor();
_root.hiddenMessage = true;
_root.hiddenMessages[2] = true;
_root.showDialog("bottom", "Bob: I have to sell these all day long, what makes you think I want another one?");
}
}
Instance of Symbol 264 MovieClip in Frame 240
onClipEvent (load) {
_visible = (!_root.partyJeff);
}
Instance of Symbol 155 MovieClip in Frame 241
onClipEvent (load) {
_visible = (!_root.hasPenicorn);
}
on (press) {
if (_root.cursor == "") {
_visible = false;
_root.hasPenicorn = true;
_root.INVpenicorn._visible = true;
}
}
Instance of Symbol 161 MovieClip in Frame 242
onClipEvent (load) {
_visible = (!_root.hasWrench);
}
on (press) {
if (_root.cursor == "") {
_visible = false;
_root.hasWrench = true;
_root.INVwrench._visible = true;
}
}
Instance of Symbol 277 MovieClip "jeff" in Frame 242
onClipEvent (load) {
_visible = (!_root.partyJeff);
}
on (press) {
if (_root.cursor == "") {
_root.showDialog("top", "Jeff: LEAVE ME THE HELL ALONE. FOR THE 50th TIME, NO, I'M NOT GONNA PARTY WITH YOU QUEERS.");
} else if (_root.cursor == "penicorn") {
_root.customEvent = "jeffjoin";
_root.resetCursor();
_root.INVpenicorn._visible = false;
_root.usedPenicorn = true;
_root.partyJeff = true;
_root.showDialog("top", "Jeff: Oh thanks man, that's just what I needed... another cock joke. Goddammit I hate you guys.");
} else if (_root.cursor == "cash") {
_root.resetCursor();
_root.hiddenMessage = true;
_root.hiddenMessages[3] = true;
_root.showDialog("top", "Jeff: You couldn't pay me enough to do a Tankmen impersonation for you what.");
}
}
Instance of Symbol 284 MovieClip in Frame 243
onClipEvent (load) {
this.gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 284 MovieClip in Frame 243
onClipEvent (load) {
this.gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 284 MovieClip in Frame 243
onClipEvent (load) {
this.gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 284 MovieClip in Frame 243
onClipEvent (load) {
this.gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 284 MovieClip in Frame 243
onClipEvent (load) {
this.gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 284 MovieClip in Frame 243
onClipEvent (load) {
this.gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 284 MovieClip in Frame 243
onClipEvent (load) {
this.gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 284 MovieClip in Frame 243
onClipEvent (load) {
this.gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 284 MovieClip in Frame 243
onClipEvent (load) {
this.gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 284 MovieClip in Frame 243
onClipEvent (load) {
this.gotoAndPlay(random(_totalframes) + 1);
}
Instance of Symbol 165 MovieClip in Frame 243
onClipEvent (load) {
_visible = (!_root.hasCash);
}
on (press) {
if (_root.cursor == "") {
_visible = false;
_root.hasCash = true;
_root.INVcash._visible = true;
}
}
Instance of Symbol 286 MovieClip "tim" in Frame 243
onClipEvent (load) {
_visible = (!_root.partyTim);
}
on (press) {
if (_root.cursor == "") {
if (_root.flownToOhio) {
_root.customEvent = "timjoin";
_root.partyTim = true;
_root.showDialog("top", "Tim: Well, I don't have much else going on right now... I guess I can hang with you guys.");
} else if (_root.partyJeff) {
_root.showDialog("top", "Tim: Need Accomodations? Travel arrangements? I'm your man. Just hook me up with some cash.");
} else {
_root.showDialog("top", "Tim: I hope Tom doesn't mind me using his computer. Too bad I have to wait for Jeff to get off his first... What?? with all the money we spend on the site you think we can afford an office infastructure?");
}
} else if (_root.cursor == "cash") {
if (!_root.partyJeff) {
} else if (_root.hasTalkedToAfro) {
_root.customEvent = "fly";
_root.flownToOhio = true;
_root.INVcash._visible = false;
_root.usedCash = true;
_root.showDialog("top", "Tim: Ohio huh? I'll see what I can do for ya.");
} else {
_root.showDialog("top", "Tim: Come back to me when you actually need something.");
}
_root.resetCursor();
} else if (_root.cursor == "bleach") {
_root.resetCursor();
_root.hiddenMessage = true;
_root.hiddenMessages[4] = true;
_root.showDialog("top", "Tim: What did you spill that needs bleach to take it out? Clean it up yourself.");
}
}
Instance of Symbol 288 MovieClip "mike" in Frame 243
onClipEvent (load) {
_visible = (!_root.partyMike);
}
on (press) {
if (_root.cursor == "") {
_root.showDialog("bottom", "Mike: I'm pretty thirsty, but I'm not sure what sounds good...");
} else if (_root.cursor == "carrot") {
_root.resetCursor();
_root.showDialog("bottom", "Mike: I can't drink this!");
} else if (_root.cursor == "can") {
if (_root.currentCan == "ginger_ale") {
_root.showDialog("bottom", "Mike: Not bad, but it's missing a little something.");
} else if (_root.currentCan == "xtreme_ginger_ale") {
_root.customEvent = "mikejoin";
_root.partyMike = true;
_root.showDialog("bottom", "Mike: Nice! You've combined the essence of ginger ale with... something that's ginger. It's a stretch, but I like your style. No jaggin' around here.");
} else if (_root.currentCan == "toxic_beer") {
_root.showDialog("bottom", "Mike: Woah, get that stuff out of here!");
} else {
_root.mikeDrinks(_root.currentCan);
if (_root.mikesDrinks.length == 9) {
_root.hiddenMessage = true;
_root.hiddenMessages[6] = true;
_root.showDialog("bottom", "Mike: You're pretty bad at this aren't you?");
} else {
_root.showDialog("bottom", "Mike: Thanks, but... not really what I was looking for.");
}
}
_root.hasToxicBeer = false;
_root.hasCarrotAle = false;
_root.resetCursor();
_root.INVcan._visible = false;
_root.hasCan = false;
_root.currentCan = "";
}
}
Instance of Symbol 297 MovieClip "vendGinger_Ale" in Frame 244
onClipEvent (load) {
_alpha = 0;
this.properName = _name.substr(4).split("_").join(" ");
this.codeName = _name.substr(4);
}
on (press) {
gotoAndStop (238);
_alpha = 0;
_root.vend(this.codeName);
}
on (rollOver) {
gotoAndStop (239);
_alpha = 100;
txtLabel.text = this.properName;
}
on (rollOut) {
gotoAndStop (238);
_alpha = 0;
}
Instance of Symbol 297 MovieClip "vendMiller_Time" in Frame 244
onClipEvent (load) {
_alpha = 0;
this.properName = _name.substr(4).split("_").join(" ");
this.codeName = _name.substr(4);
}
on (press) {
gotoAndStop (238);
_alpha = 0;
_root.vend(this.codeName);
}
on (rollOver) {
gotoAndStop (239);
_alpha = 100;
txtLabel.text = this.properName;
}
on (rollOut) {
gotoAndStop (238);
_alpha = 0;
}
Instance of Symbol 184 MovieClip "vendswitch" in Frame 244
onClipEvent (load) {
if (_root.currentlyVended == "") {
_visible = false;
} else {
_visible = true;
this.gotoAndStop(_root.currentlyVended);
}
}
on (press) {
if (_root.cursor == "") {
if (_root.hasCan) {
_root.showPrompt("You can only have one beverage in your inventory!");
} else {
_root.hasCan = true;
_root.currentCan = _root.currentlyVended;
_root.currentlyVended = "";
_root.vendswitch._visible = false;
_root.INVcan._visible = true;
_root.INVcan.gotoAndStop(_root.currentCan);
}
}
}
Instance of Symbol 297 MovieClip "vendSF_Orangeade" in Frame 244
onClipEvent (load) {
_alpha = 0;
this.properName = _name.substr(4).split("_").join(" ");
this.codeName = _name.substr(4);
}
on (press) {
gotoAndStop (238);
_alpha = 0;
_root.vend(this.codeName);
}
on (rollOver) {
gotoAndStop (239);
_alpha = 100;
txtLabel.text = this.properName;
}
on (rollOut) {
gotoAndStop (238);
_alpha = 0;
}
Instance of Symbol 297 MovieClip "vendDiet_Dr_Pepper" in Frame 244
onClipEvent (load) {
_alpha = 0;
this.properName = _name.substr(4).split("_").join(" ");
this.codeName = _name.substr(4);
}
on (press) {
gotoAndStop (238);
_alpha = 0;
_root.vend(this.codeName);
}
on (rollOver) {
gotoAndStop (239);
_alpha = 100;
txtLabel.text = this.properName;
}
on (rollOut) {
gotoAndStop (238);
_alpha = 0;
}
Instance of Symbol 297 MovieClip "vendDiet_Sunkist" in Frame 244
onClipEvent (load) {
_alpha = 0;
this.properName = _name.substr(4).split("_").join(" ");
this.codeName = _name.substr(4);
}
on (press) {
gotoAndStop (238);
_alpha = 0;
_root.vend(this.codeName);
}
on (rollOver) {
gotoAndStop (239);
_alpha = 100;
txtLabel.text = this.properName;
}
on (rollOut) {
gotoAndStop (238);
_alpha = 0;
}
Instance of Symbol 297 MovieClip "vendDiet_Coke" in Frame 244
onClipEvent (load) {
_alpha = 0;
this.properName = _name.substr(4).split("_").join(" ");
this.codeName = _name.substr(4);
}
on (press) {
gotoAndStop (238);
_alpha = 0;
_root.vend(this.codeName);
}
on (rollOver) {
gotoAndStop (239);
_alpha = 100;
txtLabel.text = this.properName;
}
on (rollOut) {
gotoAndStop (238);
_alpha = 0;
}
Instance of Symbol 297 MovieClip "vendPepsi_One" in Frame 244
onClipEvent (load) {
_alpha = 0;
this.properName = _name.substr(4).split("_").join(" ");
this.codeName = _name.substr(4);
}
on (press) {
gotoAndStop (238);
_alpha = 0;
_root.vend(this.codeName);
}
on (rollOver) {
gotoAndStop (239);
_alpha = 100;
txtLabel.text = this.properName;
}
on (rollOut) {
gotoAndStop (238);
_alpha = 0;
}
Instance of Symbol 297 MovieClip "vendDo_The_Dew" in Frame 244
onClipEvent (load) {
_alpha = 0;
this.properName = _name.substr(4).split("_").join(" ");
this.codeName = _name.substr(4);
}
on (press) {
gotoAndStop (238);
_alpha = 0;
_root.vend(this.codeName);
}
on (rollOver) {
gotoAndStop (239);
_alpha = 100;
txtLabel.text = this.properName;
}
on (rollOut) {
gotoAndStop (238);
_alpha = 0;
}
Instance of Symbol 297 MovieClip "vendCherry_Coke" in Frame 244
onClipEvent (load) {
_alpha = 0;
this.properName = _name.substr(4).split("_").join(" ");
this.codeName = _name.substr(4);
}
on (press) {
gotoAndStop (238);
_alpha = 0;
_root.vend(this.codeName);
}
on (rollOver) {
gotoAndStop (239);
_alpha = 100;
txtLabel.text = this.properName;
}
on (rollOut) {
gotoAndStop (238);
_alpha = 0;
}
Instance of Symbol 297 MovieClip "vendDr_Pepper" in Frame 244
onClipEvent (load) {
_alpha = 0;
this.properName = _name.substr(4).split("_").join(" ");
this.codeName = _name.substr(4);
}
on (press) {
gotoAndStop (238);
_alpha = 0;
_root.vend(this.codeName);
}
on (rollOver) {
gotoAndStop (239);
_alpha = 100;
txtLabel.text = this.properName;
}
on (rollOut) {
gotoAndStop (238);
_alpha = 0;
}
Instance of Symbol 301 MovieClip "luis" in Frame 245
onClipEvent (load) {
_visible = (!_root.partyLuis);
}
on (press) {
if (_root.cursor == "") {
_root.showDialog("top", "Luis: Where's my damn beer at.");
} else if (_root.cursor == "bleach") {
_root.resetCursor();
_root.showDialog("top", "Luis: Do I look like a washing machine?");
} else if (_root.cursor == "can") {
if (_root.currentCan == "miller_time") {
_root.beersForLuis++;
var tempMessage;
if (_root.beersForLuis == 1) {
tempMessage = "Whatever.";
} else if (_root.beersForLuis == 2) {
tempMessage = "Whatever..";
} else if (_root.beersForLuis == 3) {
tempMessage = "Whatever...";
} else if (_root.beersForLuis == 4) {
tempMessage = "Whatever....";
} else if (_root.beersForLuis >= 5) {
_root.hiddenMessage = true;
_root.hiddenMessages[5] = true;
tempMessage = "This shit isn't working.";
}
_root.showDialog("top", "Luis: " + tempMessage);
} else if (_root.currentCan == "toxic_beer") {
_root.customEvent = "luisjoin";
_root.partyLuis = true;
_root.showDialog("top", "Luis: Now *THIS* is what I was waiting for!");
} else {
_root.showDialog("top", "Luis: Next time try something with an alcohol content higher than air.");
}
_root.hasToxicBeer = false;
_root.hasCarrotAle = false;
_root.resetCursor();
_root.INVcan._visible = false;
_root.hasCan = false;
_root.currentCan = "";
}
}
Instance of Symbol 157 MovieClip in Frame 246
onClipEvent (load) {
_visible = (!_root.hasBleach);
}
on (press) {
if (_root.cursor == "") {
_visible = false;
_root.hasBleach = true;
_root.INVbleach._visible = true;
}
}
Instance of Symbol 312 MovieClip "afro" in Frame 247
onClipEvent (load) {
_visible = (!_root.partyAfro);
}
on (press) {
if (_root.cursor == "") {
_root.hasTalkedToAfro = true;
_root.showDialog("top", "Afro: It's not really a party unless I have my pick with me. Too bad I left it back in Ohio...");
} else if (_root.cursor == "pot") {
_root.resetCursor();
_root.hiddenMessage = true;
_root.hiddenMessages[0] = true;
_root.showDialog("top", "Afro: Respect yourself, don't do drugs.");
} else if (_root.cursor == "pick") {
_root.INVpick._visible = false;
_root.resetCursor();
_root.customEvent = "afrojoin";
_root.partyAfro = true;
_root.showDialog("top", "Afro: Sweet! Now I'm ready to rock out with fake plastic instruments all night long!");
}
}
Instance of Symbol 314 MovieClip "swain" in Frame 247
onClipEvent (load) {
_visible = (!_root.partySwain);
}
on (press) {
if (_root.cursor == "") {
_root.customEvent = "swainjoin";
_root.partySwain = true;
_root.showDialog("bottom", "Swain: Catch you guys on the flip side, ITS PARTY TIME!");
} else if ((_root.cursor == "can") && (_root.currentCan == "miller_time")) {
_root.resetCursor();
_root.hiddenMessage = true;
_root.hiddenMessages[1] = true;
_root.showDialog("bottom", "Swain: Woah there cowboy, let's save the partying for party time shall we?");
}
}
Frame 248
if ((((((partyAfro && (partyJeff)) && (partySwain)) && (partyBob)) && (partyMike)) && (partyLuis)) && (partyTim)) {
setup = false;
_root.onEnterFrame = null;
totalSeconds = Math.round((getTimer() - startTime) / 1000);
Mouse.removeListener(clickTracker);
endclip.play();
}
Instance of Symbol 167 MovieClip in Frame 248
onClipEvent (load) {
_visible = (!_root.hasList);
}
on (press) {
if (_root.cursor == "") {
_visible = false;
_root.hasList = true;
_root.INVlist._visible = true;
}
}
Instance of Symbol 321 MovieClip in Frame 248
onClipEvent (load) {
_visible = _root.partyAfro;
}
Instance of Symbol 323 MovieClip in Frame 248
onClipEvent (load) {
_visible = _root.partyBob;
}
Instance of Symbol 325 MovieClip in Frame 248
onClipEvent (load) {
_visible = _root.partyMike;
}
Instance of Symbol 327 MovieClip in Frame 248
onClipEvent (load) {
_visible = _root.partyLuis;
}
Instance of Symbol 329 MovieClip in Frame 248
onClipEvent (load) {
_visible = _root.partySwain;
}
Instance of Symbol 331 MovieClip in Frame 248
onClipEvent (load) {
_visible = _root.partyJeff;
}
Instance of Symbol 333 MovieClip in Frame 248
onClipEvent (load) {
_visible = _root.partyTim;
}
Symbol 24 MovieClip Frame 40
stop();
Symbol 38 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 39 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 14 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 40 MovieClip Frame 101
play();
Symbol 40 MovieClip Frame 165
stop();
Symbol 46 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 52 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 54 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 338 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 73 Button
on (press) {
this.enabled = false;
play();
}
Symbol 78 Button
on (press) {
_root.challengesclip._visible = true;
_root.loadChallengeData();
}
Symbol 84 Button
on (press) {
_visible = false;
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Instance of Symbol 55 MovieClip in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
useHandCursor = false;
}
on (press) {
}
Symbol 118 MovieClip Frame 10
stop();
Symbol 124 Button
on (press) {
findFaice(1);
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
markjeff._visible = _root.partyJeff;
marktim._visible = _root.partyTim;
markbob._visible = _root.partyBob;
markluis._visible = _root.partyLuis;
markswain._visible = _root.partySwain;
markafro._visible = _root.partyAfro;
markmike._visible = _root.partyMike;
Instance of Symbol 55 MovieClip in Symbol 163 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 184 MovieClip Frame 1
stop();
Symbol 187 Button
on (press) {
showPrompt("C'mon pussylips, be a man for once in your life.");
}
Symbol 190 Button
on (press) {
exitToTitle();
}
Symbol 194 Button
on (press) {
goTo("s2");
}
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 90
_root.txtMessage.text = "";
Symbol 202 Button
on (press) {
_root.activateCustomEvent();
gotoAndStop (1);
}
Symbol 205 MovieClip Frame 1
stop();
btnOK.useHandCursor = false;
Symbol 205 MovieClip Frame 2
stop();
btnOK.useHandCursor = false;
Instance of Symbol 55 MovieClip in Symbol 205 MovieClip Frame 2
onClipEvent (load) {
useHandCursor = false;
}
on (press) {
}
Symbol 205 MovieClip Frame 3
stop();
btnOK.useHandCursor = false;
Symbol 209 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 209 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.currentCan);
}
Symbol 214 Button
on (press) {
gotoAndStop (1);
}
Symbol 235 MovieClip Frame 140
stop();
_root.hasPick = true;
_root.INVpick._visible = true;
_root.showPrompt("You got the pick!");
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
btnGTFO.useHandCursor = false;
Instance of Symbol 55 MovieClip in Symbol 236 MovieClip Frame 2
onClipEvent (load) {
useHandCursor = false;
}
on (press) {
}
Symbol 247 Button
on (press) {
_root.gotoAndStop("main");
}
Symbol 248 MovieClip Frame 1
stop();
Instance of Symbol 55 MovieClip in Symbol 248 MovieClip Frame 2
onClipEvent (load) {
useHandCursor = false;
}
on (press) {
}
Symbol 248 MovieClip Frame 117
stop();
var challengeCompleteList = "";
if (!_root.completedChallenges[0]) {
_root.completedChallenges[0] = true;
challengeCompleteList = challengeCompleteList + " NG Intern,";
}
var timePart = "Clear Time: ";
var secondsTaken = _root.totalSeconds;
var hoursTaken = Math.floor(secondsTaken / 1800);
secondsTaken = secondsTaken - (hoursTaken * 1800);
var minutesTaken = Math.floor(secondsTaken / 60);
secondsTaken = secondsTaken - (minutesTaken * 60);
secondsTaken = Math.round(secondsTaken);
if (hoursTaken > 99) {
timePart = timePart + "over 99 hours (WTF)";
} else {
var hoursString;
if (hoursTaken < 10) {
hoursString = "0" + hoursTaken;
} else {
hoursString = String(hoursTaken);
}
var minutesString;
if (minutesTaken < 10) {
minutesString = "0" + minutesTaken;
} else {
minutesString = String(minutesTaken);
}
var secondsString;
if (secondsTaken < 10) {
secondsString = "0" + secondsTaken;
} else {
secondsString = String(secondsTaken);
}
var timeDisplay = ((((hoursString + ":") + minutesString) + ":") + secondsString);
timePart = timePart + timeDisplay;
}
txtEndStats.text = timePart + newline;
if ((_root.secondsRecord == 0) || ((_root.secondsRecord != 0) && (_root.totalSeconds < _root.secondsRecord))) {
_root.secondsRecord = _root.totalSeconds;
_root.secondsRecordString = timeDisplay;
}
if (!_root.completedChallenges[1]) {
if (_root.totalSeconds < 60) {
_root.completedChallenges[1] = true;
challengeCompleteList = challengeCompleteList + " Speed Run,";
}
}
txtEndStats.text = txtEndStats.text + (("Clicks: " + _root.totalClicks) + newline);
if ((_root.clickRecord == 0) || ((_root.clickRecord != 0) && (_root.totalClicks < _root.clickRecord))) {
_root.clickRecord = _root.totalClicks;
}
if (!_root.completedChallenges[4]) {
if (_root.totalClicks < 80) {
_root.completedChallenges[4] = true;
challengeCompleteList = challengeCompleteList + " Click Conserver,";
}
}
var messagesFound = 0;
var i;
i = 0;
while (i < _root.hiddenMessages.length) {
if (_root.hiddenMessages[i]) {
messagesFound++;
}
i++;
}
txtEndStats.text = txtEndStats.text + (((("Hidden Messages: " + messagesFound) + "/") + _root.hiddenMessages.length) + newline);
if (!_root.completedChallenges[3]) {
if (messagesFound == _root.hiddenMessages.length) {
_root.completedChallenges[3] = true;
challengeCompleteList = challengeCompleteList + " Smalltalk,";
}
}
txtEndStats.text = txtEndStats.text + (((("Angreh Faices: " + _root.faicesFound) + "/") + _root.faicesTotal) + newline);
if (!_root.completedChallenges[2]) {
if (_root.faicesFound == _root.faicesTotal) {
_root.completedChallenges[2] = true;
challengeCompleteList = challengeCompleteList + " Angreh!,";
}
}
challengeCompleteList = challengeCompleteList.substring(0, challengeCompleteList.length - 1);
txtEndStats.text = txtEndStats.text + ("New Challenges completed: " + challengeCompleteList);
_root.saveGame();
Symbol 251 Button
on (press) {
findFaice(2);
}
Symbol 254 Button
on (press) {
goTo("s3");
}
Symbol 255 Button
on (press) {
goTo("s1");
}
Symbol 256 Button
on (press) {
goTo("s11");
}
Symbol 258 Button
on (press) {
goTo("s12");
}
Symbol 262 Button
on (press) {
findFaice(3);
}
Symbol 265 Button
on (press) {
goTo("s4");
}
Symbol 266 Button
on (press) {
goTo("s5");
}
Symbol 269 Button
on (press) {
findFaice(4);
}
Symbol 270 Button
on (press) {
goTo("s6");
}
Symbol 271 Button
on (press) {
goTo("s8");
}
Symbol 272 Button
on (press) {
goTo("s7");
}
Symbol 275 Button
on (press) {
findFaice(5);
}
Symbol 280 Button
on (press) {
if (cursor == "") {
showMessage("Wait, you can make money on the internet?");
}
}
Symbol 281 Button
on (press) {
findFaice(6);
}
Symbol 291 Button
on (press) {
if (cursor == "") {
showMessage("That's a nice selection of snacks");
}
}
Symbol 292 Button
on (press) {
if (cursor == "") {
showMessage("Grab any drink you want, for free!");
}
}
Symbol 293 Button
on (press) {
findFaice(0);
}
Symbol 297 MovieClip Frame 1
stop();
Symbol 302 Button
on (press) {
goTo("s9");
}
Symbol 303 Button
on (press) {
goTo("s10");
}
Symbol 306 Button
on (press) {
findFaice(7);
}
Symbol 307 Button
on (press) {
if (_root.cursor == "") {
if (_root.hasCarrot) {
showPrompt("You already have a carrot.");
} else {
_root.showPrompt("You found a carrot inside.");
_root.hasCarrot = true;
_root.INVcarrot._visible = true;
}
}
}
Symbol 310 Button
on (press) {
findFaice(8);
}
Symbol 317 Button
on (press) {
if (cursor == "") {
showMessage("Now this is professional");
}
}
Symbol 319 Button
on (press) {
findFaice(9);
}
Symbol 336 Button
on (press) {
findFaice(10);
}
Symbol 337 Button
on (press) {
if (cursor == "") {
if (hasPot) {
} else {
showMessage("The head seems a bit loose...");
}
} else if (cursor == "wrench") {
if (hasPot) {
} else {
hasPot = true;
INVpot._visible = true;
resetCursor();
showPrompt("You found some pot! (shhh)");
}
}
}