Frame 1
function handle1(obj, item) {
getURL ("http://afro-ninja.com");
}
function handle5(obj, item) {
getURL ("http://flashgn.com");
}
function handle2(obj, item) {
_quality = "LOW";
}
function handle3(obj, item) {
_quality = "MEDIUM";
}
function handle4(obj, item) {
_quality = "HIGH";
}
NewgroundsAPI.connectMovie(1234);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(new ContextMenuItem("Visit Afro Ninja Productions!", handle1));
myMenu.customItems.push(new ContextMenuItem("Low Quality", handle2));
myMenu.customItems.push(new ContextMenuItem("Medium Quality", handle3));
myMenu.customItems.push(new ContextMenuItem("High Quality", handle4));
myMenu.customItems[1].separatorBefore = true;
_root.menu = myMenu;
var cursorDepth = 12000;
var fullDomain = _url;
var curSite = "";
if (fullDomain.indexOf("afro-ninja.com") != -1) {
curSite = "afro";
} else if (fullDomain.indexOf("kongregate.com") != -1) {
curSite = "kong";
} else if (fullDomain.indexOf("addictinggames.com") != -1) {
curSite = "addicting";
} else if (fullDomain.indexOf("facebook.com") != -1) {
curSite = "facebook";
}
if ((curSite == "kong") || (curSite == "addicting")) {
ad_switcher.stop();
} else {
ad_switcher.nextFrame();
}
btnLicensing._visible = false;
Instance of Symbol 85 MovieClip "loadbar" in Frame 1
onClipEvent (enterFrame) {
_xscale = _root.loadPercent;
}
Instance of Symbol 89 MovieClip in Frame 1
onClipEvent (enterFrame) {
_x = (_root.loadbar._x + _root.loadbar._width);
this.txtPercent.text = _root.loadPercent + "%";
}
Instance of Symbol 71 MovieClip [CURSOR] "cursor" in Frame 1
onClipEvent (load) {
this.swapDepths(_root.cursorDepth);
}
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 2
var loadPercent;
loadPercent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_framesloaded >= _totalframes) {
btnOK._visible = true;
stop();
} else {
btnOK._visible = false;
gotoAndPlay (1);
}
Frame 3
trans.gotoAndStop(25);
Frame 55
cursor.removeMovieClip();
gotoAndPlay ("introjump");
Instance of Symbol 71 MovieClip [CURSOR] in Frame 78
onClipEvent (load) {
}
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 238
afrohead.play();
Frame 298
stop();
var once = false;
Instance of Symbol 71 MovieClip [CURSOR] in Frame 298
onClipEvent (load) {
}
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 299
function adjustSinkWater(Void) {
if (sinkHotWater || (sinkColdWater)) {
sinkwater._visible = true;
sinkpuddle._visible = true;
if (sinkHotWater && (sinkColdWater)) {
sinkwater._xscale = 150;
} else {
sinkwater._xscale = 100;
}
if (sinkPlugged) {
fillSink();
}
} else {
sinkwater._visible = false;
sinkpuddle._visible = false;
}
}
function fillSink(Void) {
blackover.gotoAndPlay(2);
sinkwater._visible = false;
sinkpuddle._visible = false;
if (sinkHotWater && (sinkColdWater)) {
sinkTemperature = "warm";
} else if (sinkHotWater) {
sinkTemperature = "hot";
} else if (sinkColdWater) {
sinkTemperature = "cold";
}
sinkStartTime = getTimer() / 1000;
var _local4 = _root.createEmptyMovieClip("temperatureClip", _root.getNextHighestDepth());
_local4.onEnterFrame = function (Void) {
var _local3 = (getTimer() / 1000) - _root.sinkStartTime;
if ((_root.sinkTemperature == "hot") && (_local3 > 30)) {
_root.sinkTemperature = "warm";
_root.sinkStartTime = getTimer() / 1000;
} else if ((_root.sinkTemperature == "warm") && (_local3 > 30)) {
_root.sinkTemperature = "cold";
} else if (_root.sinkTemperature == "cold") {
this.onEnterFrame = null;
this.removeMovieClip();
}
};
sinkHotWater = (sinkColdWater = false);
sinkwaterfull.gotoAndStop(2);
sinkFull = true;
}
function emptySink(Void) {
temperatureClip.onEnterFrame = null;
temperatureClip.removeMovieClip();
sinkTemperature = "";
blackover.gotoAndPlay(2);
sinkFull = false;
sinkBakingSoda = false;
sinkwaterfull.gotoAndStop(1);
}
function dropTheDryer(Void) {
powerOut = true;
INV.Remove("hairdryer");
cursorWait();
gotoAndStop ("area4");
dryerplug._visible = true;
dryeranim.gotoAndPlay(2);
}
function showMessage(inMessage) {
_root.displayText.text = inMessage;
_root.messageTimer.gotoAndPlay(2);
}
function clearScreen(Void) {
for (mc in _root) {
_root[mc].removeMovieClip();
}
}
function cursorWait(Void) {
cursorMode = 4;
cursor.gotoAndStop("wait");
curItem = "";
}
function cursorReturn(Void) {
cursorMode = 1;
INV.resetCursor();
}
function finish(Void) {
bmap = new flash.display.BitmapData(550, 400, true, 0);
bmap.draw(_root);
clearScreen();
_root.createEmptyMovieClip("bitmapData", 40);
_root.bitmapData.attachBitmap(bmap, 40);
}
stop();
if (!once) {
var timeCheck = false;
var timeTick = true;
var elapsed;
var hours;
var minutes;
var displayTime;
var stringHours;
var stringMinutes;
var stringSeconds;
var oldStringSeconds;
var startTime;
var ticked = false;
var firstPass = true;
var cursorDepth = 12000;
var cursorMode = 1;
var curItem = "";
var clip = _root.attachMovie("CURSOR", "cursor", cursorDepth);
clip.onEnterFrame = function (Void) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
};
var myFilters = new Array();
myFilters.push(new flash.filters.DropShadowFilter());
clip.filters = myFilters;
var INV = new Inventory(-1, 50, 35, 321, 20, 7);
_root.onEnterFrame = function (Void) {
if (timeCheck) {
elapsed = Math.round((getTimer() / 1000) - startTime);
hours = Math.floor(elapsed / 3600);
elapsed = elapsed - (hours * 3600);
if (hours < 10) {
stringHours = "0" + String(hours);
} else {
stringHours = String(hours);
}
minutes = Math.floor(elapsed / 60);
elapsed = elapsed - (minutes * 60);
if (minutes < 10) {
stringMinutes = "0" + String(minutes);
} else {
stringMinutes = String(minutes);
}
if (elapsed < 10) {
stringSeconds = "0" + String(elapsed);
} else {
stringSeconds = String(elapsed);
}
displayTime = (((stringHours + ":") + stringMinutes) + ":") + stringSeconds;
_root.txtTimer.text = displayTime;
if (!firstPass) {
if ((oldStringSeconds != stringSeconds) && (timeTick)) {
_root.tick.start();
}
}
firstPass = false;
oldStringSeconds = stringSeconds;
for (mc in _root) {
_root[mc].tabEnabled = false;
}
if (Key.isDown(9)) {
_root.viewables.gotoAndStop("tabber");
}
}
};
var ComboItems = new Array();
ComboItems.push(new ComboItem("plunger", "Plunger", false, "", 1, "plungerhead", "stick", new Array("")));
var lightsOn = true;
var toiletWaterOn = false;
var toiletFlushed = false;
var flushing = false;
var flushValvePresent = false;
var waterInTank = false;
var cameFrom;
var panelOpen = false;
var glueRemoved = false;
var mirrorBroken = false;
var mirrorPlaced = false;
var padlockOpen = false;
var sinkPlugged = false;
var sinkHotWater = false;
var sinkColdWater = false;
var sinkFull = false;
var sinkBakingSoda = false;
var sinkTemperature;
var sinkStartTime;
var terminalsAttached = false;
var batteryCorroded = true;
var batteryWet = false;
var keypadSolved = false;
var tubWaterOn = false;
var tubFull = false;
var powerOut = false;
var dryerDropped = false;
var tick = new Sound();
tick.attachSound("tick");
var unlock = new Sound();
unlock.attachSound("unlock");
var rip = new Sound();
rip.attachSound("rip");
var tone1 = new Sound();
tone1.attachSound("tone1");
var tone2 = new Sound();
tone2.attachSound("tone2");
var bash = new Sound();
bash.attachSound("bash");
var myclick = new Sound();
myclick.attachSound("click");
var glass = new Sound();
glass.attachSound("glass");
var toiletFlush = new Sound();
toiletFlush.attachSound("flush");
toiletFlush.onSoundComplete = function (Void) {
_root.flushing = false;
_root.cursorReturn();
};
var pop = new Sound();
pop.attachSound("pop");
var splash = new Sound();
splash.attachSound("splash");
var scrub = new Sound();
scrub.attachSound("scrubbing");
once = true;
}
Instance of Symbol 209 MovieClip in Frame 299
onClipEvent (load) {
if (!_root.toiletWaterOn) {
nextFrame();
}
}
Instance of Symbol 70 MovieClip "plunger" in Frame 299
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Plunger", 0, "", 1);
}
Instance of Symbol 228 MovieClip in Frame 299
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area12");
}
}
Instance of Symbol 234 MovieClip "sinkwater" in Frame 299
onClipEvent (load) {
if (_root.sinkHotWater || (_root.sinkColdWater)) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 243 MovieClip "light" in Frame 299
onClipEvent (load) {
if (_root.lightsOn && (!_root.powerOut)) {
_visible = false;
}
}
Instance of Symbol 269 MovieClip in Frame 299
on (press) {
if (_currentframe == 1) {
nextFrame();
_root.timeTick = false;
} else {
prevFrame();
_root.timeTick = true;
}
}
Instance of Symbol 271 MovieClip "arrowl" in Frame 299
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 271 MovieClip "arrowr" in Frame 299
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 273 MovieClip in Frame 299
onClipEvent (load) {
this.swapDepths(5100);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_currentframe != 10) {
nextFrame();
}
} else if (_currentframe != 1) {
prevFrame();
}
}
Instance of Symbol 291 MovieClip in Frame 299
onClipEvent (load) {
}
Instance of Symbol 71 MovieClip [CURSOR] in Frame 299
/* no clip actions */
Instance of Symbol 20 MovieClip "wrench" in Frame 300
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Wrench", 0, "", 1);
}
Instance of Symbol 302 MovieClip in Frame 300
onClipEvent (load) {
_visible = (!_root.powerOut);
}
Instance of Symbol 309 MovieClip in Frame 300
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else {
prevFrame();
}
}
}
Instance of Symbol 312 MovieClip in Frame 300
onClipEvent (load) {
if (!_root.lightsOn) {
nextFrame();
}
}
on (press) {
if (_root.cursorMode == 1) {
if (_root.powerOut) {
_root.showMessage("No effect, the power is out");
} else if (_currentframe == 1) {
_root.lightsOn = false;
_root.light._visible = true;
nextFrame();
} else {
_root.lightsOn = true;
_root.light._visible = false;
prevFrame();
}
}
}
Instance of Symbol 337 MovieClip in Frame 301
onClipEvent (load) {
if (_root.glueRemoved) {
gotoAndStop (337);
}
}
Instance of Symbol 341 MovieClip "specialshard" in Frame 301
onClipEvent (load) {
nextFrame();
_visible = _root.mirrorPlaced;
}
Instance of Symbol 356 MovieClip in Frame 301
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area15");
}
}
Instance of Symbol 53 MovieClip "drainplug" in Frame 302
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Drain Plug", 0, "", 1);
}
Instance of Symbol 376 MovieClip "KEYPAD" in Frame 302
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area14");
}
}
Instance of Symbol 378 MovieClip "dryerplug" in Frame 302
onClipEvent (load) {
_visible = _root.powerOut;
}
Instance of Symbol 405 MovieClip "dryeranim" in Frame 302
onClipEvent (load) {
if (_root.powerOut && (!_root.dryerDropped)) {
_root.dryerDropped = true;
} else {
stop();
}
}
Instance of Symbol 12 MovieClip "bakingsoda" in Frame 303
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Baking Soda", 0, "", 1);
}
Instance of Symbol 15 MovieClip "bakingsodalabel" in Frame 303
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Baking Soda Label", 0, "", 2);
}
Instance of Symbol 415 MovieClip in Frame 303
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else {
prevFrame();
}
}
}
Instance of Symbol 432 MovieClip in Frame 304
onClipEvent (load) {
if (_root.lightsOn && (!_root.powerOut)) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 209 MovieClip in Frame 305
onClipEvent (load) {
if (!_root.toiletWaterOn) {
nextFrame();
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("It wont budge by hand");
} else if (_root.curItem == "wrench") {
if (_currentframe == 1) {
_root.toiletWaterOn = false;
nextFrame();
} else {
_root.toiletWaterOn = true;
prevFrame();
if (_root.flushValvePresent) {
_root.waterInTank = true;
}
}
}
}
Instance of Symbol 443 MovieClip in Frame 306
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("There is water in the toilet");
} else if (_root.curItem == "plunger") {
_root.INV.Remove("plunger");
_root.cursorWait();
_root.gotoAndStop("area10");
} else if (_root.curItem == "hairdryer") {
_root.showMessage("There isn't a power outlet nearby");
}
}
Instance of Symbol 448 MovieClip "key1" in Frame 306
onClipEvent (load) {
if (!_root.toiletFlushed) {
_visible = false;
} else {
_root.INV.handleLoad(this);
}
}
on (press) {
_root.INV.handlePress(this, "Key", 0, "", 1);
}
Instance of Symbol 9 MovieClip "valvekey" in Frame 307
onClipEvent (load) {
_visible = (!_root.toiletFlushed);
}
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("There is a key stuck in the fill tube");
}
}
Instance of Symbol 457 MovieClip in Frame 307
onClipEvent (load) {
if (_root.toiletWaterOn && (!_root.waterInTank)) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 459 MovieClip "flushvalve" in Frame 307
onClipEvent (load) {
_visible = _root.flushValvePresent;
}
Instance of Symbol 465 MovieClip "toiletwater" in Frame 307
onClipEvent (load) {
_visible = _root.waterInTank;
}
Instance of Symbol 468 MovieClip "fillfloat" in Frame 307
onClipEvent (load) {
if (_root.waterInTank) {
nextFrame();
}
}
Instance of Symbol 470 MovieClip in Frame 307
on (press) {
if (_root.cursorMode == 1) {
if (_root.flushValvePresent) {
if (_root.waterInTank) {
if (!_root.flushing) {
_root.cursorWait();
_root.flushing = true;
_root.toiletFlush.start();
_root.flushclip.gotoAndPlay(2);
_root.toiletFlushed = true;
_root.fillfloat.gotoAndStop(1);
_root.valvekey._visible = false;
if (_root.toiletWaterOn) {
_root.toiletwater.gotoAndPlay(2);
} else {
_root.toiletwater._visible = false;
_root.waterInTank = false;
}
} else {
_root.showMessage("The toilet is currently flushing");
}
} else {
_root.showMessage("There is no water in the tank");
}
} else {
_root.showMessage("The toilet cannot function correctly");
}
}
}
Instance of Symbol 473 MovieClip "flushhandle" in Frame 307
onClipEvent (load) {
if (_root.flushValvePresent) {
nextFrame();
}
}
Instance of Symbol 337 MovieClip "glue" in Frame 309
onClipEvent (load) {
if (_root.glueRemoved) {
gotoAndStop (337);
}
}
on (press) {
if (_currentframe == 1) {
if (_root.cursorMode == 1) {
_root.showMessage("A hard substance has dried onto the wall");
} else if (_root.curItem == "razor") {
_root.glueRemoved = true;
_root.scrub.start();
this.gotoAndPlay(2);
} else if ((_root.curItem == "toothbrush") || (_root.curItem == "toothbrush2")) {
_root.showMessage("Try something else");
}
}
}
Instance of Symbol 341 MovieClip "specialshard" in Frame 309
onClipEvent (load) {
_visible = _root.mirrorPlaced;
}
Instance of Symbol 36 MovieClip "razor" in Frame 310
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Razor", 0, "", 1);
}
Instance of Symbol 44 MovieClip "floss" in Frame 310
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Floss", 0, "", 1);
}
Instance of Symbol 47 MovieClip "toothbrush" in Frame 310
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Toothbrush", 0, "", 1);
}
Instance of Symbol 50 MovieClip "pillbottle" in Frame 310
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Pill Bottle", 0, "", 2);
}
Frame 311
adjustSinkWater();
if (sinkFull) {
sinkwaterfull.gotoAndStop(2);
}
if (sinkBakingSoda) {
sinkwaterfull.gotoAndStop(3);
}
Instance of Symbol 489 MovieClip in Frame 311
on (press) {
if (_root.cursorMode == 1) {
if (_root.sinkFull) {
_root.showMessage("The sink already has water in it");
} else {
_root.sinkHotWater = !_root.sinkHotWater;
_root.adjustSinkWater();
}
}
}
Instance of Symbol 491 MovieClip in Frame 311
on (press) {
if (_root.cursorMode == 1) {
if (_root.sinkFull) {
_root.showMessage("The sink already has water in it");
} else {
_root.sinkColdWater = !_root.sinkColdWater;
_root.adjustSinkWater();
}
}
}
Instance of Symbol 494 MovieClip in Frame 311
onClipEvent (load) {
if (_root.sinkPlugged) {
nextFrame();
}
}
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
_root.stopper.gotoAndStop(2);
_root.sinkPlugged = true;
if (_root.sinkHotWater || (_root.sinkColdWater)) {
_root.fillSink();
}
} else {
prevFrame();
_root.stopper.gotoAndStop(1);
_root.sinkPlugged = false;
if (_root.sinkFull) {
_root.emptySink();
}
}
}
}
Instance of Symbol 501 MovieClip "stopper" in Frame 311
onClipEvent (load) {
if (_root.sinkPlugged) {
nextFrame();
}
}
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
_root.showMessage("The sink is unplugged");
} else {
_root.showMessage("The sink is plugged");
}
}
}
Instance of Symbol 507 MovieClip "sinkwaterfull" in Frame 311
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 2) {
_root.showMessage("The water is " + _root.sinkTemperature);
} else if (_currentframe == 3) {
_root.showMessage(("The water is " + _root.sinkTemperature) + ", and has baking soda in it");
}
} else if (_root.curItem == "bakingsoda") {
if (_currentframe == 2) {
_root.blackover.gotoAndPlay(2);
_root.sinkBakingSoda = true;
nextFrame();
} else if (_currentframe == 3) {
_root.showMessage("There is already baking soda in there");
}
} else if (_root.curItem == "toothbrush") {
if (_currentframe == 3) {
if ((_root.sinkTemperature == "warm") || (_root.sinkTemperature == "hot")) {
_root.showMessage("You dipped the toothbrush in the baking soda solution");
_root.INV.Remove("toothbrush");
_root.INV.Add(new Item("toothbrush2", "Toothbrush w/ Baking Soda", false, "", 1));
_root.INV.DrawInventory(_root.INV.numItems - _root.INV.maxDisplay);
} else if (_root.sinkTemperature == "cold") {
_root.showMessage("The water is too cold for the baking soda to be effective");
}
}
} else if (_root.curItem == "hairdryer") {
if ((_currentframe == 2) || (_currentframe == 3)) {
_root.showMessage("There isn't a power outlet nearby");
}
} else if (_root.curItem == "toothbrush2") {
if (_currentframe == 3) {
_root.showMessage("You already have a baking soda solution on this");
}
}
}
Instance of Symbol 209 MovieClip in Frame 312
onClipEvent (load) {
if (!_root.tubWaterOn) {
nextFrame();
}
}
on (press) {
if (_root.KEYPAD._currentframe == 2) {
if (_root.cursorMode == 1) {
_root.showMessage("It wont budge by hand");
} else if (_root.curItem == "wrench") {
if (_currentframe == 1) {
_root.showMessage("The bathtub water is off");
_root.tubWaterOn = false;
nextFrame();
} else {
_root.showMessage("The bathtub water is on");
_root.tubWaterOn = true;
prevFrame();
}
}
}
}
Instance of Symbol 376 MovieClip "KEYPAD" in Frame 312
onClipEvent (load) {
function enterKey(key) {
if (_root.terminalsAttached) {
if ((this.txtNumpad.text.length < 6) && (_root.cursorMode == 1)) {
_root.tone1.start();
this.txtNumpad.text = this.txtNumpad.text + key;
}
} else {
_root.showMessage("The keypad has no power");
}
}
function checkCode(Void) {
if (_root.terminalsAttached) {
if (_root.cursorMode == 1) {
if (this.txtNumpad.text == "45801") {
_root.unlock.start();
_root.keypadSolved = true;
nextFrame();
} else {
_root.tone2.start();
this.txtNumpad.text = "ERR";
}
}
} else {
_root.showMessage("The keypad has no power");
}
}
if (_root.keypadSolved) {
nextFrame();
}
}
Instance of Symbol 515 MovieClip "tubwater" in Frame 314
onClipEvent (load) {
if (_root.tubFull) {
if (_root.dryerDropped) {
gotoAndStop (301);
} else {
nextFrame();
}
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("The tub is full");
} else if ((_root.curItem == "hairdryer") && (_currentframe == 2)) {
_root.dropTheDryer();
}
}
Instance of Symbol 519 MovieClip in Frame 314
on (press) {
if (_root.cursorMode == 1) {
if (_root.tubFull) {
_root.showMessage("The tub is already full");
} else if (_root.tubWaterOn) {
_root.tubFull = true;
_root.blackover.gotoAndPlay(2);
_root.tubwater.gotoAndStop(2);
} else {
_root.showMessage("No water is coming out");
}
}
}
Frame 315
function tempExit(Void) {
clearScreen();
gotoAndStop ("mymenu");
}
Instance of Symbol 537 MovieClip in Frame 315
onClipEvent (load) {
this.swapDepths(100);
}
Instance of Symbol 71 MovieClip [CURSOR] "cursor" in Frame 315
onClipEvent (load) {
this.swapDepths(_root.cursorDepth);
}
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 7 MovieClip in Symbol 10 MovieClip [INVkey1] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 13 MovieClip [INVbakingsoda] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 16 MovieClip [INVbakingsodalabel] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 18 MovieClip [INVplunger] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 21 MovieClip [INVwrench] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 24 MovieClip [INVstick] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 27 MovieClip [INVplungerhead] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 34 MovieClip [INVhairdryer] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 37 MovieClip [INVrazor] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 40 MovieClip [INVmirrorshard] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 45 MovieClip [INVfloss] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 48 MovieClip [INVtoothbrush] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 51 MovieClip [INVpillbottle] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 54 MovieClip [INVdrainplug] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 7 MovieClip in Symbol 57 MovieClip [INVtoothbrush2] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 71 MovieClip [CURSOR] Frame 1
stop();
Instance of Symbol 60 MovieClip "plus" in Symbol 71 MovieClip [CURSOR] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 80 Button
on (press) {
getURL ("http://afro-ninja.com/licensing", "blank");
}
Symbol 83 Button
on (press) {
nextFrame();
}
Symbol 96 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 98 MovieClip Frame 1
stop();
Symbol 539 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() {
SendLink(NEWGROUNDS);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_links[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_links[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) {
SendStat(id, true);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
movie_options[_local2] = unescape(params[_local2]);
}
if (movie_options.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());
}
} else {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local8 = new XML();
_local8.ignoreWhite = true;
_local8.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);
};
_local8.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 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 540 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 541 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 542 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 543 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 544 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 545 MovieClip [__Packages.Inventory] Frame 0
class Inventory
{
var capacity, boxSize, startX, startY, spacing, maxDisplay, curIndex, curX, curY;
function Inventory (inCapacity, inBoxSize, inStartX, inStartY, inSpacing, inMaxDisplay) {
capacity = inCapacity;
boxSize = inBoxSize;
startX = inStartX;
startY = inStartY;
spacing = inSpacing;
maxDisplay = inMaxDisplay;
if (capacity == -1) {
capCheck = false;
}
Items = new Array();
isFull = false;
numItems = 0;
hidden = false;
Items = new Array();
spentItems = new Array();
var _local2;
_local2 = 0;
while (_local2 < capacity) {
Items[_local2] = null;
_local2++;
}
}
function DrawInventory(startIndex) {
CompressInventory();
if (startIndex < 0) {
startIndex = 0;
}
ClearInventory();
curIndex = startIndex;
var _local7 = startIndex + (maxDisplay - 1);
invDepths = 5000;
ManageArrows(startIndex, _local7);
curX = startX;
curY = startY;
var _local4 = startIndex;
while (_local4 <= _local7) {
if (Items[_local4] != null) {
var _local5 = "INV" + Items[_local4].itemName;
var _local3 = _root.attachMovie(_local5, _local5, invDepths);
invDepths++;
_local3._x = curX;
_local3._y = curY;
_local3.desc = Items[_local4].itemDescription;
_local3.iname = Items[_local4].itemName;
_local3.onRollOver = function (Void) {
if (_root.curItem != this.iname) {
_root.displayTimer.gotoAndStop(1);
_root.displayText.text = this.desc;
if (_root.cursorMode == 2) {
_root.cursor.plus._visible = true;
_root.displayTimer.gotoAndStop(1);
_root.displayText.text = (("Combine/Use " + _root.INV.findItem(_root.curItem).itemDescription) + " with ") + this.desc;
}
}
};
_local3.onRollOut = function (Void) {
_root.displayText.text = "";
_root.cursor.plus._visible = false;
};
_local3.onPress = function (Void) {
_root.INV.inventoryPress(this.iname);
};
if (_root.curItem == Items[_local4].itemName) {
_local3._alpha = 0;
}
curX = curX + (boxSize + spacing);
}
_local4++;
}
}
function ManageArrows(startI, endI) {
if (numItems > maxDisplay) {
_root.arrowl._visible = true;
_root.arrowr._visible = true;
if (startI == 0) {
_root.arrowl.onPress = null;
_root.arrowl._alpha = 15;
} else {
_root.arrowl._alpha = 100;
_root.arrowl.onPress = function (Void) {
_root.INV.ShiftLeft();
};
}
if (endI == (numItems - 1)) {
_root.arrowr.onPress = null;
_root.arrowr._alpha = 15;
} else {
_root.arrowr._alpha = 100;
_root.arrowr.onPress = function (Void) {
_root.INV.ShiftRight();
};
}
} else {
_root.arrowl._visible = false;
_root.arrowr._visible = false;
}
}
function ClearInventory(Void) {
var _local3 = 0;
while (_local3 < numItems) {
_root["INV" + Items[_local3].itemName].removeMovieClip();
_local3++;
}
}
function Add(inItem) {
var _local2 = nextAvailableIndex();
Items[_local2] = inItem;
numItems++;
if (capCheck) {
checkCapacity();
}
}
function Remove(itemName) {
var _local3;
_local3 = 0;
while (_local3 < Items.length) {
if (Items[_local3].itemName == itemName) {
_root["INV" + Items[_local3].itemName].removeMovieClip();
spentItems.push(Items[_local3].itemName);
Items[_local3] = null;
break;
}
_local3++;
}
numItems--;
if (capCheck) {
checkCapacity();
}
CompressInventory();
DrawInventory(0);
resetCursor();
}
function findItem(itemName) {
var _local2;
_local2 = 0;
while (_local2 < Items.length) {
if (Items[_local2].itemName == itemName) {
break;
}
_local2++;
}
return(Items[_local2]);
}
function findItemIndex(itemName) {
var _local2;
_local2 = 0;
while (_local2 < Items.length) {
if (Items[_local2].itemName == itemName) {
break;
}
_local2++;
}
return(_local2);
}
function isItem(itemName) {
return(findItem(itemName).itemName == itemName);
}
function isSpentItem(itemName) {
var _local3 = false;
var _local2 = 0;
while (_local2 < spentItems.length) {
if (spentItems[_local2] == itemName) {
_local3 = true;
}
_local2++;
}
return(_local3);
}
function nextAvailableIndex(Void) {
var _local2;
_local2 = 0;
while (_local2 < Items.length) {
if (Items[_local2] == null) {
break;
}
_local2++;
}
return(_local2);
}
function CompressInventory(Void) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < Items.length) {
if (Items[_local2] != null) {
_local3.push(Items[_local2]);
}
_local2++;
}
Items = _local3;
}
function ShiftLeft(Void) {
curIndex--;
DrawInventory(curIndex);
}
function ShiftRight(Void) {
curIndex++;
DrawInventory(curIndex);
}
function handleLoad(targetMC) {
if (isItem(targetMC._name) || (isSpentItem(targetMC._name))) {
targetMC._visible = false;
}
}
function handlePress(targetMC, inDesc, inCombinable, inCombinesWith, inType) {
if (_root.cursorMode == 1) {
if (isFull) {
trace("Inventory is full");
} else {
targetMC._visible = false;
var _local4 = new Item(targetMC._name, inDesc, inCombinable, inCombinesWith, inType);
Add(_local4);
if (targetMC._name == "peel") {
_root.tookBanana = true;
}
DrawInventory(numItems - maxDisplay);
}
}
}
function inventoryPress(itemName) {
if (_root.curItem == itemName) {
resetCursor();
} else if (_root.cursorMode == 1) {
if (findItem(itemName).type == 1) {
_root.curItem = itemName;
_root.displayText.text = "";
_root["INV" + itemName]._alpha = 0;
_root.cursor.gotoAndStop(itemName);
_root.cursorMode = 2;
} else {
_root.viewables.gotoAndStop(itemName);
}
} else if (_root.cursorMode == 4) {
} else if (findItem(_root.curItem).combinesWith == itemName) {
var _local3;
var _local8;
_local3 = 0;
while (_local3 < _root.ComboItems.length) {
if ((_root.ComboItems[_local3].item1 == itemName) || (_root.ComboItems[_local3].item1 == _root.curItem)) {
Add(_root.ComboItems[_local3]);
_local8 = _local3;
if ((_root.ComboItems[_local3].item1 == "coathanger") || (_root.ComboItems[_local3].item1 == "tinsnips")) {
_root.singlesnap.start();
}
}
_local3++;
}
var _local5 = _root.ComboItems[_local8].savedItems;
var _local6 = false;
var _local7 = false;
for (var _local9 in _local5) {
if (_local5[_local9] == itemName) {
_local6 = true;
}
if (_local5[_local9] == _root.curItem) {
_local7 = true;
}
}
if (!_local7) {
Remove(_root.curItem);
}
if (!_local6) {
Remove(itemName);
}
CompressInventory();
DrawInventory(0);
resetCursor();
} else {
_root.displayTimer.gotoAndStop(1);
_root.displayText.text = "These items do not combine";
}
}
function ToggleVisibility() {
hidden = !hidden;
var _local3;
_local3 = 0;
while (_local3 < capacity) {
_root["box" + _local3]._visible = !_root["box" + _local3]._visible;
if (Items[_local3] != null) {
_root["inv_" + Items[_local3].itemName]._visible = !_root["inv_" + Items[_local3].itemName]._visible;
}
_local3++;
}
}
function resetCursor(Void) {
_root.cursor.gotoAndStop("main");
_root.cursorMode = 1;
_root["INV" + _root.curItem]._alpha = 100;
_root.curItem = "";
_root.cursor.plus._visible = false;
}
function changeType(inItem, inType) {
var _local2 = findItemIndex(inItem);
Items[_local2].type = inType;
}
function checkCapacity(Void) {
((numItems == capacity) ? ((isFull = true)) : ((isFull = false)));
}
var Items = new Array();
var spentItems = new Array();
var capCheck = true;
var isFull = false;
var numItems = 0;
var invDepths = 5000;
var hidden = false;
}
Symbol 546 MovieClip [__Packages.Item] Frame 0
class Item
{
var type;
function Item (inName, inDesc, inCombinable, inCombinesWith, inType) {
itemName = inName;
itemDescription = inDesc;
combinable = inCombinable;
combinesWith = inCombinesWith;
type = inType;
}
var itemName = "";
var itemDescription = "";
var combinable = false;
var combinesWith = "";
}
Symbol 547 MovieClip [__Packages.ComboItem] Frame 0
class ComboItem extends Item
{
var item1, item2, savedItems;
function ComboItem (inName, inDesc, inCombinable, inCombinesWith, inType, inI1, inI2, inSavedItems) {
super(inName, inDesc, inCombinable, inCombinesWith, inType);
item1 = inI1;
item2 = inI2;
savedItems = new Array();
savedItems = inSavedItems;
}
}
Symbol 116 Button
on (press) {
_root.play();
}
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 25
stop();
Symbol 138 MovieClip Frame 1
function LOGO_IN() {
var _local1 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Strong.easeIn, -75, 85, 12, false);
_local1.onMotionFinished = function () {
LOGO_SMASH();
var _local3 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Bounce.easeOut, 60, 85, 6, false);
var _local4 = new mx.transitions.Tween(AGlogo_mc, "_x", mx.transitions.easing.Bounce.easeOut, 30, 50, 6, false);
var _local2 = new mx.transitions.Tween(AGpresented_mc, "_y", mx.transitions.easing.Bounce.easeOut, 15, 25, 6, false);
var _local1 = new mx.transitions.Tween(AGpresented_mc, "_x", mx.transitions.easing.Bounce.easeOut, 110, 100, 6, false);
};
}
function LOGO_SMASH() {
AG_SMASH.start();
AGclick_btn._visible = true;
}
function AG_HOLD_COUNTER() {
if (AG_COUNT == AG_TIME) {
clearInterval(AG_HOLD_ID);
_level0.START_ping.broadcastMessage("presented");
this.unloadMovie();
} else {
AG_COUNT++;
}
}
var AG_SMASH = new Sound();
AG_SMASH.attachSound("Smash");
var AG_COUNT = 0;
var AG_TIME = 4;
var AG_HOLD_ID;
AG_HOLD_ID = setInterval(this, "AG_HOLD_COUNTER", 1000);
AGpresented_mc._alpha = 0;
AGclick_btn._visible = false;
AGlogo_mc._y = -70;
var AGpresented_IN = (new mx.transitions.Tween(AGpresented_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 12, false));
AGpresented_IN.onMotionFinished = function () {
LOGO_IN();
};
AGskip_btn.onRelease = function () {
AG_COUNT = AG_TIME;
AG_HOLD_COUNTER();
};
AGclick_btn.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 19
stop();
Symbol 187 Button
on (press) {
getURL ("http://afro-ninja.com", "blank");
}
Symbol 192 Button
on (press) {
stopAllSounds();
play();
}
Symbol 195 Button
on (press) {
getURL ("http://ktrecords.newgrounds.com/", "blank");
}
Symbol 201 Button
on (press) {
getURL ("http://afro-ninja.com/movie/57", "blank");
}
Symbol 202 MovieClip Frame 15
stop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 216 Button
on (press) {
if (_root.cursorMode == 1) {
if (_root.padlockOpen) {
nextFrame();
} else {
_root.showMessage("It's locked");
}
}
}
Symbol 221 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 227 Button
on (press) {
if (_root.cursorMode == 1) {
prevFrame();
}
}
Symbol 228 MovieClip Frame 1
stop();
Instance of Symbol 214 MovieClip in Symbol 228 MovieClip Frame 1
on (press) {
}
Instance of Symbol 218 MovieClip in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
_visible = (!_root.mirrorBroken);
}
on (press) {
if (!_root.mirrorBroken) {
if (_root.cursorMode == 1) {
_root.showMessage("The mirror is cracked");
} else if (((_root.curItem == "plunger") || (_root.curItem == "wrench")) || (_root.curItem == "stick")) {
_root.mirrorBroken = true;
_root.glass.start();
_visible = false;
_parent.mirrorshard._visible = true;
_parent.blackover.gotoAndPlay(2);
}
}
}
Instance of Symbol 39 MovieClip "mirrorshard" in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
if (_root.mirrorBroken) {
_root.INV.handleLoad(this);
} else {
_visible = false;
}
}
on (press) {
_root.INV.handlePress(this, "Mirror Shard", 0, "", 1);
}
Instance of Symbol 221 MovieClip in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
if (_root.padlockOpen) {
nextFrame();
}
}
on (press) {
if (_currentframe == 1) {
if (_root.cursorMode == 1) {
_root.showMessage("It's locked");
} else if (_root.curItem == "key1") {
nextFrame();
_root.padlockOpen = true;
_root.unlock.start();
}
} else if (_currentframe == 2) {
if (_root.cursorMode == 1) {
_root.showMessage("It's unlocked");
} else if (_root.curItem == "key1") {
_root.showMessage("You already unlocked this");
}
}
}
Symbol 235 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goright");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area2");
_root.cursor.gotoAndStop("main");
}
}
Symbol 236 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goleft");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area4");
_root.cursor.gotoAndStop("main");
}
}
Symbol 237 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area5");
_root.cursor.gotoAndStop("main");
}
}
Symbol 238 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goup");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.cameFrom = 1;
gotoAndStop ("area6");
_root.cursor.gotoAndStop("main");
}
}
Symbol 239 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area9");
_root.cursor.gotoAndStop("main");
}
}
Symbol 240 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area8");
_root.cursor.gotoAndStop("main");
}
}
Symbol 241 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area7");
_root.cursor.gotoAndStop("main");
}
}
Symbol 242 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area13");
_root.cursor.gotoAndStop("main");
}
}
Symbol 255 Button
on (press) {
gotoAndStop (1);
}
Symbol 263 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 1
stop();
Instance of Symbol 248 MovieClip in Symbol 264 MovieClip Frame 2
on (press) {
}
Instance of Symbol 263 MovieClip in Symbol 264 MovieClip Frame 4
on (press) {
if (_root.cursorMode == 1) {
nextFrame();
}
}
Symbol 265 Button
on (press) {
if (_root.cursorMode != 4) {
_root.INV.resetCursor();
}
}
Symbol 269 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 1
stop();
Symbol 278 Button
on (press) {
getURL ("http://afro-ninja.com/walkthroughs.php", "blank");
}
Symbol 281 Button
on (press) {
getURL ("http://afro-ninja.com", "blank");
}
Symbol 284 Button
on (press) {
getURL ("http://addictinggames.com", "blank");
}
Instance of Symbol 243 MovieClip in Symbol 291 MovieClip Frame 1
on (press) {
}
Symbol 291 MovieClip Frame 91
stop();
_root.timeCheck = true;
_root.heartBeat.start();
_root.startTime = getTimer() / 1000;
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 125
_root.displayText.text = "";
Symbol 297 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goright");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area3");
_root.cursor.gotoAndStop("main");
}
}
Symbol 298 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goleft");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area1");
_root.cursor.gotoAndStop("main");
}
}
Symbol 299 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goup");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.cameFrom = 2;
gotoAndStop ("area6");
_root.cursor.gotoAndStop("main");
}
}
Symbol 300 Button
on (press) {
if (_root.cursorMode == 1) {
if (_root.powerOut) {
_root.timeCheck = false;
_root.finalTime = _root.txtTimer.text;
_root.finish();
_root.gotoAndStop("win");
} else {
_root.showMessage("Lasers block your exit");
}
}
}
Symbol 309 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 39
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 60
stop();
_root.cursorReturn();
Symbol 352 MovieClip Frame 1
stop();
Symbol 354 Button
on (press) {
if (_root.cursorMode == 1) {
if (_root.batteryCorroded) {
_root.showMessage("The terminals are corroded");
} else if (_root.batteryWet) {
_root.showMessage("The terminals are wet");
} else if (_root.terminalsAttached) {
_root.showMessage("The wires have been attached");
}
} else if (_root.curItem == "toothbrush2") {
if (_root.batteryCorroded) {
corrosion._visible = false;
water._visible = true;
_root.batteryCorroded = false;
_root.batteryWet = true;
_root.scrub.start();
_root.blackover.gotoAndPlay(2);
} else {
_root.showMessage("You already cleaned this");
}
} else if (_root.curItem == "toothbrush") {
if (_root.batteryCorroded) {
_root.showMessage("This wont work by itself");
}
} else if (_root.curItem == "hairdryer") {
if (_root.batteryWet) {
_root.batteryWet = false;
water.gotoAndPlay(2);
_root.INV.resetCursor();
_root.cursorWait();
}
}
}
Symbol 355 Button
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
if ((!_root.batteryCorroded) && (!_root.batteryWet)) {
wires.nextFrame();
_root.terminalsAttached = true;
} else {
_root.showMessage("The wires cannot be attached yet");
}
}
}
}
Instance of Symbol 344 MovieClip "corrosion" in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
_visible = _root.batteryCorroded;
}
Instance of Symbol 347 MovieClip "water" in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
_visible = _root.batteryWet;
}
Instance of Symbol 352 MovieClip "wires" in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
if (_root.terminalsAttached) {
nextFrame();
}
}
Symbol 357 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goright");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area4");
_root.cursor.gotoAndStop("main");
}
}
Symbol 358 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goleft");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area2");
_root.cursor.gotoAndStop("main");
}
}
Symbol 359 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goup");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.cameFrom = 3;
gotoAndStop ("area6");
_root.cursor.gotoAndStop("main");
}
}
Symbol 360 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area11");
}
}
Symbol 361 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("A power outlet");
}
}
Symbol 372 Button
on (press) {
_root.tone1.start();
txtNumpad.text = "";
}
Symbol 374 Button
on (press) {
checkCode();
}
Symbol 376 MovieClip Frame 1
stop();
Instance of Symbol 369 MovieClip "key1" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "keyA" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "key3" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "key2" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "key4" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "keyB" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "key6" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "key5" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "key7" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "keyC" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "key9" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "key8" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "keyD" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "keyE" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Instance of Symbol 369 MovieClip "key0" in Symbol 376 MovieClip Frame 1
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_parent.enterKey(this.key);
}
Symbol 405 MovieClip Frame 45
_root.light._visible = true;
_root.light.onEnterFrame = function (Void) {
this._alpha = random(100);
};
_root.splash.start();
Symbol 405 MovieClip Frame 81
stop();
_root.light.onEnterFrame = null;
_root.light._alpha = 60;
_root.cursorReturn();
Symbol 406 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goright");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area1");
_root.cursor.gotoAndStop("main");
}
}
Symbol 407 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goleft");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area3");
_root.cursor.gotoAndStop("main");
}
}
Symbol 408 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goup");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.cameFrom = 4;
gotoAndStop ("area6");
_root.cursor.gotoAndStop("main");
}
}
Symbol 409 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area16");
}
}
Symbol 411 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("No need to tamper with these");
}
}
Symbol 412 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goback");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area1");
_root.cursor.gotoAndStop("main");
}
}
Symbol 415 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 6
_root.panelOpen = true;
Instance of Symbol 425 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) {
if (_root.panelOpen) {
gotoAndStop (6);
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("The panel is out of reach");
} else if ((((_root.curItem == "wrench") || (_root.curItem == "toothbrush")) || (_root.curItem == "mirror")) || (_root.curItem == "toothbrush2")) {
_root.showMessage("This item isn't long enough");
} else if ((_root.curItem == "plunger") || (_root.curItem == "stick")) {
if (_currentframe == 5) {
_parent.hairdryer._visible = true;
}
nextFrame();
}
}
Instance of Symbol 428 MovieClip "hairdryer" in Symbol 429 MovieClip Frame 1
onClipEvent (load) {
if (_root.panelOpen) {
_root.INV.handleLoad(this);
} else {
_visible = false;
}
}
on (press) {
_root.INV.handlePress(this, "Hair Dryer", 0, "", 1);
}
Symbol 433 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goback");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area" + cameFrom);
_root.cursor.gotoAndStop("main");
}
}
Symbol 434 Button
on (press) {
if (_root.cursorMode == 1) {
if (_root.powerOut) {
_root.showMessage("The power is out");
} else if (_root.lightsOn) {
_root.showMessage("The light is on");
} else {
_root.showMessage("The light is off");
}
}
}
Symbol 440 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goback");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area1");
_root.cursor.gotoAndStop("main");
}
}
Symbol 465 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 105
_root.fillfloat.gotoAndStop(2);
Symbol 468 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 476 Button
on (press) {
if (_root.cursorMode == 1) {
if (_root.flushValvePresent) {
_root.showMessage("The flush valve has been replaced");
} else {
_root.showMessage("The rubber flush valve is missing");
}
} else if (_root.curItem == "plungerhead") {
if (_root.toiletWaterOn) {
_root.showMessage("The water must be off before placing this item");
} else {
_root.INV.Remove("plungerhead");
_root.flushValvePresent = true;
_root.flushvalve._visible = true;
_root.flushhandle.gotoAndStop(2);
}
}
}
Symbol 481 MovieClip Frame 178
_root.pop.start();
Symbol 481 MovieClip Frame 206
_root.cursorReturn();
_root.INV.Add(new Item("plungerhead", "Plunger Head", true, "stick", 1));
_root.INV.Add(new Item("stick", "Wood Stick", true, "plungerhead", 1));
_root.INV.DrawInventory(_root.INV.numItems - _root.INV.maxDisplay);
_root.gotoAndStop("area1");
Symbol 484 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goback");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area3");
_root.cursor.gotoAndStop("main");
}
}
Symbol 485 Button
on (press) {
if ((!_root.mirrorPlaced) && (_root.curItem == "mirrorshard")) {
_root.INV.Remove("mirrorshard");
_root.mirrorPlaced = true;
_root.specialshard._visible = true;
}
}
Symbol 494 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 1
stop();
Symbol 509 Button
on (rollOver) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("goback");
}
}
on (rollOut) {
if (_root.cursorMode == 1) {
_root.cursor.gotoAndStop("main");
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area4");
_root.cursor.gotoAndStop("main");
}
}
Symbol 515 MovieClip Frame 1
stop();
Symbol 520 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("Nothing in the drain");
}
}
Symbol 526 Button
on (press) {
_root.gotoAndStop("menu");
}
Symbol 527 Button
on (press) {
stopAllSounds();
_root.tempExit();
}
Symbol 532 Button
on (press) {
getURL ("http://afro-ninja.com", "blank");
}
Symbol 536 Button
on (press) {
getURL ("http://ktrecords.newgrounds.com/", "blank");
}
Instance of Symbol 522 MovieClip in Symbol 537 MovieClip Frame 80
onClipEvent (load) {
this.txtFinal.text = ("YOU ESCAPED IN " + _root.finalTime) + "!";
}
Symbol 537 MovieClip Frame 159
stop();