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";
}
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";
}
txtUrl.text = curSite;
if ((((curSite != "afro") && (curSite != "kong")) && (curSite != "addicting")) && (curSite != "facebook")) {
MochiAd.showPreloaderAd({id:"cc43634ce003cc8a", res:"550x400"});
extrabg._visible = true;
} else {
extrabg._visible = false;
}
Instance of Symbol 100 MovieClip "loadbar" in Frame 1
onClipEvent (enterFrame) {
_xscale = _root.loadPercent;
}
Instance of Symbol 103 MovieClip in Frame 1
onClipEvent (enterFrame) {
_x = (_root.loadbar._x + _root.loadbar._width);
this.txtPercent.text = _root.loadPercent + "%";
}
Instance of Symbol 73 MovieClip [CURSOR] "cursor" in Frame 1
onClipEvent (load) {
this.swapDepths(_root.cursorDepth);
}
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 2
extrabg._visible = false;
Frame 3
var loadPercent;
loadPercent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_framesloaded >= _totalframes) {
gotoAndStop (4);
} else {
gotoAndPlay (1);
}
Frame 4
trans.play();
Frame 55
cursor.removeMovieClip();
gotoAndPlay ("introjump");
Instance of Symbol 73 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 73 MovieClip [CURSOR] in Frame 298
onClipEvent (load) {
}
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 299
function loadKey(keyValue) {
if (keyValue == "s1") {
_root["key_" + keyValue].txtSymbol.text = "#";
} else if (keyValue == "s2") {
_root["key_" + keyValue].txtSymbol.text = "*";
} else {
var _local3 = new Number(keyValue);
_root["key_" + keyValue].txtSymbol.text = _local3;
_root["key_" + keyValue].txtLetters.text = _root.key_letter_associations[_local3];
}
}
function dial(keyValue) {
if (phoneStatus != "onHook") {
var _local2;
var _local3;
if (keyValue == "s1") {
_local2 = "#";
_local3 = "num";
} else if (keyValue == "s2") {
_local2 = "*";
_local3 = "star";
} else {
_local2 = keyValue.substr(1, 1);
_local3 = _local2;
}
_root.dialtone.stop("dialtone");
_root["tone" + _local3].setVolume(50);
_root["tone" + _local3].start();
_root["tone" + _local3].setVolume(100);
if (phoneStatus == "offHook") {
secondaryPassword = secondaryPassword + _local2;
}
if (phoneStatus == "dialTone") {
dialedNumber = dialedNumber + _local2;
if (dialedNumber.length == 7) {
phoneStatus == "ringing";
_root.ring2.start();
}
}
if (phoneStatus == "hotline1") {
if (_local2 == "1") {
phoneStatus = "hotline2";
_root.hotline1.stop("hotline1");
_root[phoneStatus].start();
} else if (_local2 == "2") {
phoneStatus = "hotline3";
_root.hotline1.stop("hotline1");
_root[phoneStatus].start();
} else if (_local2 == "3") {
phoneStatus = "hotline4";
_root.hotline1.stop("hotline1");
_root[phoneStatus].start();
} else if (_local2 == "4") {
phoneStatus = "hotline5";
_root.hotline1.stop("hotline1");
_root[phoneStatus].start();
}
} else if (phoneStatus == "elec1") {
_root.elec1.stop("elec1");
if (_local2 != "#") {
phonePassword = phonePassword + _local2;
} else if (phonePassword == "644485") {
phoneStatus = "elec3";
_root[phoneStatus].start();
phonePassword = "";
} else {
phoneStatus = "elec2";
_root[phoneStatus].start();
phonePassword = "";
}
} else if (phoneStatus == "elec3") {
if (_local2 == "1") {
_root.elec3.stop("elec3");
phoneStatus = "elec4";
_root[phoneStatus].start();
} else if (_local2 == "2") {
_root.elec3.stop("elec3");
phoneStatus = "elec5";
phonePassword = "";
_root[phoneStatus].start();
}
} else if (phoneStatus == "elec5") {
_root.elec5.stop("elec5");
phonePassword = phonePassword + _local2;
if (phonePassword.length == 7) {
if (phonePassword == "2679532") {
phoneStatus = "elec7";
_root[phoneStatus].start();
phonePassword = "";
} else {
phoneStatus = "elec6";
_root[phoneStatus].start();
phonePassword = "";
}
}
} else if (phoneStatus == "elec7") {
if (_local2 == "1") {
_root.elec7.stop("elec7");
_root.lightOn = true;
_root.lightclip._visible = true;
phoneStatus = "elec8";
_root[phoneStatus].start();
} else if (_local2 == "2") {
_root.elec7.stop("elec7");
_root.lightOn = false;
_root.lightclip._visible = false;
phoneStatus = "elec9";
_root[phoneStatus].start();
}
} else if (phoneStatus == "water1") {
_root.water1.stop("water1");
if (_local2 != "#") {
phonePassword = phonePassword + _local2;
} else if (phonePassword == "48747") {
phoneStatus = "water3";
_root[phoneStatus].start();
phonePassword = "";
} else {
phoneStatus = "water2";
_root[phoneStatus].start();
phonePassword = "";
}
} else if (phoneStatus == "water3") {
_root.water3.stop("water3");
if (_local2 != "#") {
phonePassword = phonePassword + _local2;
} else if (phonePassword == "2724") {
phoneStatus = "water5";
_root[phoneStatus].start();
_root.waterOn = false;
} else {
phoneStatus = "water4";
_root[phoneStatus].start();
phonePassword = "";
}
}
}
}
function callNumber(Void) {
if (dialedNumber == "6344357") {
phoneStatus = "hotline1";
_root[phoneStatus].start();
} else if (dialedNumber == "8675309") {
phoneStatus = "jenny";
_root[phoneStatus].start();
} else if (dialedNumber == "5554921") {
phoneStatus = "busysignal";
_root[phoneStatus].start();
} else if (dialedNumber == "5554922") {
phoneStatus = "phone1";
_root[phoneStatus].start();
} else if (dialedNumber == "5551961") {
phoneStatus = "grudgenoise";
_root[phoneStatus].start();
} else if (dialedNumber == "5557328") {
phoneStatus = "elec1";
_root[phoneStatus].start();
phonePassword = "";
} else if (dialedNumber == "5555253") {
phoneStatus = "water1";
_root[phoneStatus].start();
phonePassword = "";
} else {
operator2.start();
}
}
function killPhone(Void) {
depositMoney.stop("25cents");
dialtone.stop("dialtone");
operator2.stop("operator2");
busysignal.stop("busysignal");
ring2.stop("ring2");
_root[phoneStatus].stop(phoneStatus);
phoneStatus = "onHook";
dialedNumber = "";
secondaryPassword = "";
returns = 0;
if (_root.receiver._currentframe == 2) {
hangup.start();
}
}
function showMessage(inMessage) {
_root.displayText.text = inMessage;
_root.messageTimer.gotoAndPlay(2);
}
function enterKey(key) {
if (_root.txtNumpad.text.length < 5) {
_root.tone1.start();
_root.txtNumpad.text = _root.txtNumpad.text + key;
}
}
function clearScreen(Void) {
for (mc in _root) {
_root[mc].removeMovieClip();
}
}
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("quarterString", "Quarter tied w/ String", false, "", 1, "quarter", "qstring", new Array("")));
ComboItems.push(new ComboItem("fullscrewdriver", "Socket Screwdriver w/ Socket", false, "", 1, "socket", "screwdriver", new Array("")));
var key_letter_associations = new Array();
key_letter_associations[0] = "";
key_letter_associations[1] = "";
key_letter_associations[2] = "ABC";
key_letter_associations[3] = "DEF";
key_letter_associations[4] = "GHI";
key_letter_associations[5] = "JKL";
key_letter_associations[6] = "MNO";
key_letter_associations[7] = "PQRS";
key_letter_associations[8] = "TUV";
key_letter_associations[9] = "WXYZ";
var phoneStatus = "onHook";
var dialedNumber = "";
var phonePassword = "";
var secondaryPassword = "";
var returns = 0;
var socketAvailable = false;
var keyAvailable = false;
var nut1off = false;
var nut2off = false;
var lightOn = false;
var waterOn = true;
var boothLocked = true;
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 tone0 = new Sound();
tone0.attachSound("tone0");
var tone1 = new Sound();
tone1.attachSound("tone1");
var tone2 = new Sound();
tone2.attachSound("tone2");
var tone3 = new Sound();
tone3.attachSound("tone3");
var tone4 = new Sound();
tone4.attachSound("tone4");
var tone5 = new Sound();
tone5.attachSound("tone5");
var tone6 = new Sound();
tone6.attachSound("tone6");
var tone7 = new Sound();
tone7.attachSound("tone7");
var tone8 = new Sound();
tone8.attachSound("tone8");
var tone9 = new Sound();
tone9.attachSound("tone9");
var tonenum = new Sound();
tonenum.attachSound("tonenum");
var tonestar = new Sound();
tonestar.attachSound("tonestar");
var depositMoney = new Sound();
depositMoney.attachSound("25cents");
depositMoney.onSoundComplete = function (Void) {
depositMoney.start();
};
var ring2 = new Sound();
ring2.attachSound("ring2");
ring2.onSoundComplete = function (Void) {
callNumber();
};
var operator2 = new Sound();
operator2.attachSound("operator2");
var hangup = new Sound();
hangup.attachSound("hangup");
var pickup = new Sound();
pickup.attachSound("pickup");
var coindeposit = new Sound();
coindeposit.attachSound("coindeposit");
var busysignal = new Sound();
busysignal.attachSound("busysignal");
var coinreturn = new Sound();
coinreturn.attachSound("coinreturn");
busysignal.onSoundComplete = function (Void) {
busysignal.start();
};
var dialtone = new Sound();
dialtone.attachSound("dialtone");
dialtone.onSoundComplete = function (Void) {
dialtone.start();
};
coindeposit.onSoundComplete = function (Void) {
if (_root.phoneStatus == "moneyDeposit") {
_root.phoneStatus = "dialTone";
_root.dialtone.start();
}
};
var grudgenoise = new Sound();
grudgenoise.attachSound("grudgenoise");
var jenny = new Sound();
jenny.attachSound("jenny");
var hotline1 = new Sound();
hotline1.attachSound("hotline1");
var hotline2 = new Sound();
hotline2.attachSound("hotline2");
var hotline3 = new Sound();
hotline3.attachSound("hotline3");
var hotline4 = new Sound();
hotline4.attachSound("hotline4");
var hotline5 = new Sound();
hotline5.attachSound("hotline5");
var phone1 = new Sound();
phone1.attachSound("phone1");
var elec1 = new Sound();
elec1.attachSound("elec1");
var elec2 = new Sound();
elec2.attachSound("elec2");
elec2.onSoundComplete = function (Void) {
_root.phoneStatus = "elec1";
_root.elec1.start();
};
var elec3 = new Sound();
elec3.attachSound("elec3");
var elec4 = new Sound();
elec4.attachSound("elec4");
elec4.onSoundComplete = function (Void) {
_root.phoneStatus = "elec3";
_root.elec3.start();
};
var elec5 = new Sound();
elec5.attachSound("elec5");
var elec6 = new Sound();
elec6.attachSound("elec6");
elec6.onSoundComplete = function (Void) {
_root.phoneStatus = "elec5";
_root.elec5.start();
};
var elec7 = new Sound();
elec7.attachSound("elec7");
var elec8 = new Sound();
elec8.attachSound("elec8");
var elec9 = new Sound();
elec9.attachSound("elec9");
var water1 = new Sound();
water1.attachSound("water1");
var water2 = new Sound();
water2.attachSound("water2");
water2.onSoundComplete = function (Void) {
_root.phoneStatus = "water1";
_root.water1.start();
};
var water3 = new Sound();
water3.attachSound("water3");
var water4 = new Sound();
water4.attachSound("water4");
water4.onSoundComplete = function (Void) {
_root.phoneStatus = "water3";
_root.water3.start();
};
var water5 = new Sound();
water5.attachSound("water5");
once = true;
}
Instance of Symbol 236 MovieClip "lightclip" in Frame 299
onClipEvent (load) {
_visible = _root.lightOn;
}
Instance of Symbol 263 MovieClip in Frame 299
on (press) {
if (_currentframe == 1) {
nextFrame();
_root.timeTick = false;
} else {
prevFrame();
_root.timeTick = true;
}
}
Instance of Symbol 265 MovieClip "arrowl" in Frame 299
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 265 MovieClip "arrowr" in Frame 299
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 267 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 286 MovieClip in Frame 299
onClipEvent (load) {
}
Instance of Symbol 73 MovieClip [CURSOR] in Frame 299
/* no clip actions */
Instance of Symbol 294 MovieClip "key_01" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 294 MovieClip "key_02" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 294 MovieClip "key_03" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 294 MovieClip "key_04" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 294 MovieClip "key_05" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 294 MovieClip "key_06" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 294 MovieClip "key_07" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 294 MovieClip "key_08" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 294 MovieClip "key_09" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 294 MovieClip "key_s1" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 294 MovieClip "key_00" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 294 MovieClip "key_s2" in Frame 300
onClipEvent (load) {
var keyValue = _name.substr(4, 2);
_root.loadKey(keyValue);
}
on (press) {
_root.dial(keyValue);
}
Instance of Symbol 217 MovieClip in Frame 300
on (press) {
if (_root.phoneStatus == "offHook") {
if (_root.curItem == "quarter") {
_root.showMessage("Find a way to re-use your quarter first");
} else if (_root.curItem == "quarterString") {
_root.INV.resetCursor();
_root.phoneStatus = "moneyDeposit";
_root.depositMoney.stop();
_root.coindeposit.start();
}
}
}
Instance of Symbol 302 MovieClip "receiver" in Frame 300
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
_root.phoneStatus = "offHook";
_root.depositMoney.start();
_root.pickup.start();
} else {
_root.killPhone();
prevFrame();
_root.phoneStatus = "onHook";
}
}
}
Instance of Symbol 317 MovieClip "qstring" in Frame 301
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "String", 1, "quarter", 1);
}
Instance of Symbol 326 MovieClip "binoculars" in Frame 302
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Binoculars", 0, "", 1);
}
Instance of Symbol 236 MovieClip in Frame 302
onClipEvent (load) {
_visible = _root.lightOn;
}
Instance of Symbol 355 MovieClip in Frame 303
onClipEvent (load) {
if (!_root.waterOn) {
nextFrame();
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("A fountain in the park");
} else if (_root.curItem == "binoculars") {
_root.INV.resetCursor();
_root.gotoAndStop("area13");
}
}
Instance of Symbol 363 MovieClip in Frame 304
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("There is a sign in the distance");
} else if (_root.curItem == "binoculars") {
_root.INV.resetCursor();
_root.gotoAndStop("area12");
}
}
Instance of Symbol 366 MovieClip in Frame 304
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("Picnic tables");
}
}
Instance of Symbol 375 MovieClip in Frame 304
onClipEvent (load) {
if (!_root.boothLocked) {
nextFrame();
}
}
on (press) {
if (_root.cursorMode == 1) {
if (_root.boothLocked) {
_root.showMessage("The latch is closed");
} else {
_root.showMessage("The latch is open");
}
}
}
Instance of Symbol 377 MovieClip in Frame 304
on (press) {
if (_root.cursorMode == 1) {
if (_root.boothLocked) {
_root.showMessage("The door is locked shut");
} else {
_root.timeCheck = false;
_root.finalTime = _root.txtTimer.text;
_root.finish();
_root.gotoAndStop("win");
}
}
}
Instance of Symbol 382 MovieClip "quarter" in Frame 305
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Quarter", 1, "qstring", 1);
}
Instance of Symbol 385 MovieClip in Frame 305
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else {
prevFrame();
}
}
}
Instance of Symbol 46 MovieClip "yellowpage" in Frame 305
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Yellow Page", 0, "", 2);
}
Instance of Symbol 387 MovieClip in Frame 305
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area10");
}
}
Instance of Symbol 396 MovieClip in Frame 306
onClipEvent (load) {
_visible = _root.lightOn;
}
Instance of Symbol 220 MovieClip in Frame 307
onClipEvent (load) {
if (_root.nut1off) {
nextFrame();
}
}
on (press) {
if (_currentframe == 1) {
if (_root.cursorMode == 1) {
_root.showMessage("A nut is tightly fastened down");
} else if (_root.curItem == "fullscrewdriver") {
_root.nut1off = true;
nextFrame();
}
} else if (_currentframe == 2) {
if (_root.cursorMode == 1) {
_root.showMessage("The nut has been removed");
}
}
}
Instance of Symbol 220 MovieClip in Frame 307
onClipEvent (load) {
if (_root.nut2off) {
nextFrame();
}
}
on (press) {
if (_currentframe == 1) {
if (_root.cursorMode == 1) {
_root.showMessage("A nut is tightly fastened down");
} else if (_root.curItem == "fullscrewdriver") {
_root.nut2off = true;
nextFrame();
}
} else if (_currentframe == 2) {
if (_root.cursorMode == 1) {
_root.showMessage("The nut has been removed");
}
}
}
Instance of Symbol 28 MovieClip "screwdriver" in Frame 308
onClipEvent (load) {
_root.INV.handleLoad(this);
}
on (press) {
_root.INV.handlePress(this, "Socket Screwdriver", 1, "socket", 1);
}
Frame 309
_root.cursor.gotoAndStop("stylus");
_root.cursorMode = 3;
Instance of Symbol 355 MovieClip in Frame 311
onClipEvent (load) {
if (!_root.waterOn) {
nextFrame();
}
}
Frame 312
function tempExit(Void) {
clearScreen();
gotoAndStop ("mymenu");
}
Instance of Symbol 467 MovieClip in Frame 312
onClipEvent (load) {
this.swapDepths(100);
}
Instance of Symbol 73 MovieClip [CURSOR] "cursor" in Frame 312
onClipEvent (load) {
this.swapDepths(_root.cursorDepth);
}
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 26 MovieClip in Symbol 29 MovieClip [INVscrewdriver] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 26 MovieClip in Symbol 32 MovieClip [INVkey1] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 26 MovieClip in Symbol 35 MovieClip [INVqstring] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 26 MovieClip in Symbol 37 MovieClip [INVquarter] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 26 MovieClip in Symbol 39 MovieClip [INVquarterString] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 26 MovieClip in Symbol 41 MovieClip [INVbinoculars] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 26 MovieClip in Symbol 44 MovieClip [INVsocket] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 26 MovieClip in Symbol 47 MovieClip [INVyellowpage] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 26 MovieClip in Symbol 50 MovieClip [INVfullscrewdriver] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 55 MovieClip "xline" in Symbol 56 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 64 MovieClip [LETTERBOX] Frame 1
stop();
Instance of Symbol 62 MovieClip "highlighter" in Symbol 64 MovieClip [LETTERBOX] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 73 MovieClip [CURSOR] Frame 1
stop();
Instance of Symbol 67 MovieClip "plus" in Symbol 73 MovieClip [CURSOR] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 97 Button
on (press) {
_root.play();
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 25
stop();
Symbol 469 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 470 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 471 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 472 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 473 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 474 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 475 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) {
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 == 3) {
} 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 476 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 477 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 145 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 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 19
stop();
Symbol 195 Button
on (press) {
getURL ("http://afro-ninja.com", "blank");
}
Symbol 201 Button
on (press) {
stopAllSounds();
play();
}
Symbol 204 Button
on (press) {
getURL ("http://ktrecords.newgrounds.com/", "blank");
}
Symbol 205 MovieClip Frame 15
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 224 Button
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area2");
}
}
Symbol 225 Button
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area3");
}
}
Symbol 226 Button
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area9");
}
}
Symbol 227 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("The remnants of an old phonebook");
}
}
Symbol 228 Button
on (press) {
if (_root.cursorMode == 1) {
if (_root.nut1off && (_root.nut2off)) {
nextFrame();
} else {
_root.showMessage("A red handle. It wont budge");
}
}
}
Symbol 231 Button
on (press) {
if (_root.cursorMode == 1) {
prevFrame();
}
}
Symbol 232 Button
on (press) {
if (_root.cursorMode == 1) {
_root.gotoAndStop("area11");
}
}
Symbol 233 MovieClip Frame 1
stop();
Instance of Symbol 220 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
if (_root.nut1off) {
nextFrame();
}
}
Instance of Symbol 220 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (load) {
if (_root.nut2off) {
nextFrame();
}
}
Symbol 237 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 238 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 ("area5");
_root.cursor.gotoAndStop("main");
}
}
Symbol 239 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area7");
_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) {
_root.showMessage("Wires lead out of the telephone");
}
}
Symbol 255 Button
on (press) {
gotoAndStop (1);
}
Symbol 258 MovieClip Frame 1
stop();
Instance of Symbol 246 MovieClip in Symbol 258 MovieClip Frame 2
on (press) {
}
Symbol 259 Button
on (press) {
if (_root.cursorMode != 3) {
_root.INV.resetCursor();
}
}
Symbol 263 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 272 Button
on (press) {
getURL ("http://afro-ninja.com/walkthroughs.php", "blank");
}
Symbol 275 Button
on (press) {
getURL ("http://afro-ninja.com", "blank");
}
Symbol 278 Button
on (press) {
getURL ("http://addictinggames.com", "blank");
}
Instance of Symbol 279 MovieClip in Symbol 286 MovieClip Frame 1
on (press) {
}
Symbol 286 MovieClip Frame 91
stop();
_root.timeCheck = true;
_root.heartBeat.start();
_root.startTime = getTimer() / 1000;
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 125
_root.displayText.text = "";
Symbol 297 Button
on (press) {
if (!socketAvailable) {
socketAvailable = true;
coinreturn.start();
}
if (secondaryPassword == "5675") {
returns++;
if ((returns == 2) && (!keyAvailable)) {
keyAvailable = true;
coinreturn.start();
}
}
}
Symbol 302 MovieClip Frame 1
stop();
Symbol 305 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.killPhone();
gotoAndStop ("area1");
_root.cursor.gotoAndStop("main");
}
}
Symbol 306 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("The booth number is obscured");
}
}
Symbol 308 Button
on (press) {
if (_root.cursorMode == 1) {
if (_root.returnhatch._currentframe == 1) {
_root.returnhatch.nextFrame();
} else {
_root.returnhatch.prevFrame();
}
}
}
Symbol 312 MovieClip Frame 1
stop();
Instance of Symbol 43 MovieClip "socket" in Symbol 312 MovieClip Frame 2
onClipEvent (load) {
if (_root.socketAvailable) {
_root.INV.handleLoad(this);
} else {
_visible = false;
}
}
on (press) {
_root.INV.handlePress(this, "Socket", 1, "screwdriver", 1);
}
Instance of Symbol 31 MovieClip "key1" in Symbol 312 MovieClip Frame 2
onClipEvent (load) {
if (_root.keyAvailable) {
_root.INV.handleLoad(this);
} else {
_visible = false;
}
}
on (press) {
_root.INV.handlePress(this, "Key", 0, "", 1);
}
Instance of Symbol 314 MovieClip in Symbol 317 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 318 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 327 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 328 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 ("area6");
_root.cursor.gotoAndStop("main");
}
}
Symbol 329 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("'CALL ME 4 HELP' is scratched into the glass");
}
}
Symbol 355 MovieClip Frame 1
stop();
Symbol 357 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 358 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 ("area6");
_root.cursor.gotoAndStop("main");
}
}
Symbol 359 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("A streetlight shines outside");
}
}
Symbol 375 MovieClip Frame 1
stop();
Symbol 378 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 ("area5");
_root.cursor.gotoAndStop("main");
}
}
Symbol 379 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 385 MovieClip Frame 1
stop();
Symbol 388 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area1");
_root.cursor.gotoAndStop("main");
}
}
Symbol 390 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("The wires continue to the front of the booth");
}
}
Symbol 397 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 398 Button
on (press) {
if (_root.cursorMode == 1) {
if (_root.lightOn) {
_root.showMessage("The ceiling light is on");
} else {
_root.showMessage("The ceiling light is off");
}
}
}
Instance of Symbol 402 MovieClip in Symbol 405 MovieClip Frame 1
on (press) {
}
Instance of Symbol 404 MovieClip in Symbol 405 MovieClip Frame 1
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("There is a keyhole here");
} else if (_root.curItem == "key1") {
_root.unlock.start();
_parent._visible = false;
}
}
Symbol 406 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 ("area7");
_root.cursor.gotoAndStop("main");
}
}
Symbol 414 Button
on (press) {
gotoAndStop (3);
}
Symbol 415 Button
on (press) {
nextFrame();
}
Symbol 416 Button
on (press) {
_root.INV.resetCursor();
_root.gotoAndStop("area1");
}
Symbol 419 Button
on (press) {
prevFrame();
}
Symbol 423 Button
on (press) {
clearAll();
gotoAndStop (1);
}
Symbol 424 Button
on (press) {
clearAll();
prevFrame();
nextFrame();
}
Symbol 431 Button
on (press) {
_parent.dehighlight();
prevFrame();
}
Symbol 437 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 2
function pressBox(letter, choice) {
if (letter != "") {
var _local2;
if (_root.lettergame.curCol < 10) {
_local2 = String("0" + _root.lettergame.curCol);
} else {
_local2 = String(_root.lettergame.curCol);
}
if (_root.lettergame[(("b" + _root.lettergame.curRow) + "_") + _local2].txtLetter.text != "") {
var _local3 = _root.lettergame[(("b" + _root.lettergame.curRow) + "_") + _local2].txtLetter.text;
clearLetter(_local3);
}
_root.lettergame[(("b" + _root.lettergame.curRow) + "_") + _local2].txtLetter.text = letter;
_root.lettergame["column" + _root.lettergame.curCol]["letter" + choice].xline._visible = true;
_root.lettergame.prompter.gotoAndStop(1);
checkAll();
}
}
function clearLetter(usingLetter) {
var _local3;
if (_root.lettergame.curCol < 10) {
_local3 = String("0" + _root.lettergame.curCol);
} else {
_local3 = String(_root.lettergame.curCol);
}
if ((_root.lettergame["column" + _root.lettergame.curCol].letter1.txtLetter.text == usingLetter) && (_root.lettergame["column" + _root.lettergame.curCol].letter1.xline._visible == true)) {
_root.lettergame["column" + _root.lettergame.curCol].letter1.xline._visible = false;
} else if ((_root.lettergame["column" + _root.lettergame.curCol].letter2.txtLetter.text == usingLetter) && (_root.lettergame["column" + _root.lettergame.curCol].letter2.xline._visible == true)) {
_root.lettergame["column" + _root.lettergame.curCol].letter2.xline._visible = false;
} else if ((_root.lettergame["column" + _root.lettergame.curCol].letter3.txtLetter.text == usingLetter) && (_root.lettergame["column" + _root.lettergame.curCol].letter3.xline._visible == true)) {
_root.lettergame["column" + _root.lettergame.curCol].letter3.xline._visible = false;
}
}
function checkAll(Void) {
var _local6 = "";
var _local5;
var _local3;
_local5 = 1;
while (_local5 < 4) {
_local3 = 0;
while (_local3 < 17) {
var _local4;
if (_local3 < 10) {
_local4 = String("0" + _local3);
} else {
_local4 = String(_local3);
}
if (_root.lettergame[(("b" + _local5) + "_") + _local4]._currentframe == 1) {
_local6 = _local6 + _root.lettergame[(("b" + _local5) + "_") + _local4].txtLetter.text;
}
_local3++;
}
_local5++;
}
if (_local6 == "THETELEPHONEISINHERENTLYOFNOVALUETOUS") {
_root.unlock.start();
_root.boothLocked = false;
_parent.clearAll();
_root.lettergame.gotoAndStop(4);
}
}
Instance of Symbol 434 MovieClip "choice1" in Symbol 437 MovieClip Frame 2
on (press) {
_parent.pressBox(this.txtLetter.text, this._name.substr(6, 1));
}
Instance of Symbol 434 MovieClip "choice2" in Symbol 437 MovieClip Frame 2
on (press) {
_parent.pressBox(this.txtLetter.text, this._name.substr(6, 1));
}
Instance of Symbol 434 MovieClip "choice3" in Symbol 437 MovieClip Frame 2
on (press) {
_parent.pressBox(this.txtLetter.text, this._name.substr(6, 1));
}
Instance of Symbol 436 MovieClip in Symbol 437 MovieClip Frame 2
on (press) {
var altCol;
if (_root.lettergame.curCol < 10) {
altCol = String("0" + _root.lettergame.curCol);
} else {
altCol = String(_root.lettergame.curCol);
}
var usingLetter = _root.lettergame[(("b" + _root.lettergame.curRow) + "_") + altCol].txtLetter.text;
_root.lettergame[(("b" + _root.lettergame.curRow) + "_") + altCol].txtLetter.text = "";
_parent.clearLetter(usingLetter);
_root.lettergame.prompter.gotoAndStop(1);
}
Symbol 442 Button
on (press) {
_parent.gotoAndStop(1);
}
Symbol 443 MovieClip Frame 36
stop();
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 3
function clearAll(Void) {
var _local2;
_local2 = 0;
while (_local2 < 16) {
var _local3;
if (_local2 < 10) {
_local3 = String("0" + _local2);
} else {
_local3 = String(_local2);
}
this["b1_" + _local3].removeMovieClip();
this["b2_" + _local3].removeMovieClip();
this["b3_" + _local3].removeMovieClip();
this["column" + _local2].removeMovieClip();
_local2++;
}
}
function dehighlight(Void) {
var _local2;
_local2 = 0;
while (_local2 < 16) {
var _local3;
if (_local2 < 10) {
_local3 = String("0" + _local2);
} else {
_local3 = String(_local2);
}
this["b1_" + _local3].highlighter._visible = false;
this["b2_" + _local3].highlighter._visible = false;
this["b3_" + _local3].highlighter._visible = false;
_local2++;
}
}
letterbox.letter1.txtLetter.text = "G";
var row1 = new Array("T", "H", "E", "*", "T", "E", "L", "E", "P", "H", "O", "N", "E", "*", "I", "S");
var row2 = new Array("I", "N", "H", "E", "R", "E", "N", "T", "L", "Y", "*", "O", "F", "*", "N", "O");
var row3 = new Array("V", "A", "L", "U", "E", "*", "T", "O", "*", "U", "S", "*", "*", "*", "*", "*");
var jumbleLetters = new Array("T,I,V", "A,H,N", "E,H,L", "E,U", "E,R,T", "E,E", "T,L,N", "E,O,T", "P,L", "U,Y,H", "O,S", "O,N", "E,F", "", "I,N", "O,S");
var curCol;
var curRow;
var originX = 25;
var startX = 25;
var startY = 65;
var boxWidth = 16;
var i;
var h;
var boxDepths = 1000;
var columnDepths = 2000;
h = 1;
while (h <= 3) {
i = 0;
while (i < this["row" + h].length) {
var identifier;
if (i < 10) {
identifier = String("0" + i);
} else {
identifier = String(i);
}
var newBox = attachMovie("LETTERBOX", (("b" + h) + "_") + identifier, boxDepths);
newBox._x = startX;
newBox._y = startY;
boxDepths++;
if (this["row" + h][i] == "*") {
newBox.nextFrame();
newBox.letterValue = "*";
} else {
newBox.letterValue = "";
newBox.onPress = function (Void) {
_root.lettergame.dehighlight();
this.highlighter._visible = true;
_root.lettergame.prompter.gotoAndStop(2);
curCol = new Number(this._name.substr(3, 2));
curRow = new Number(this._name.substr(1, 1));
var _local3;
_local3 = 1;
while (_local3 < 4) {
_root.lettergame.prompter["choice" + _local3].txtLetter.text = "";
_local3++;
}
_local3 = 1;
while (_local3 < 4) {
if (_root.lettergame["column" + curCol]["letter" + _local3].xline._visible == false) {
_root.lettergame.prompter["choice" + _local3].txtLetter.text = _root.lettergame["column" + curCol]["letter" + _local3].txtLetter.text;
}
_local3++;
}
};
}
if (h == 1) {
var tempColumnBox = attachMovie("columnbox", "column" + i, columnDepths);
columnDepths++;
tempColumnBox._x = startX + (boxWidth / 2);
tempColumnBox._y = startY;
var letterAry = jumbleLetters[i].split(",");
var r;
r = 0;
while (r < letterAry.length) {
this["column" + i]["letter" + String(r + 1)].txtLetter.text = letterAry[r];
r++;
}
}
startX = startX + boxWidth;
i++;
}
startY = startY + boxWidth;
startX = originX;
h++;
}
Symbol 448 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 ("area6");
_root.cursor.gotoAndStop("main");
}
}
Symbol 450 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 ("area5");
_root.cursor.gotoAndStop("main");
}
}
Symbol 456 Button
on (press) {
_root.gotoAndStop("menu");
}
Symbol 457 Button
on (press) {
stopAllSounds();
_root.tempExit();
}
Symbol 462 Button
on (press) {
getURL ("http://afro-ninja.com", "blank");
}
Symbol 466 Button
on (press) {
getURL ("http://ktrecords.newgrounds.com/", "blank");
}
Instance of Symbol 452 MovieClip in Symbol 467 MovieClip Frame 80
onClipEvent (load) {
this.txtFinal.text = ("YOU ESCAPED IN " + _root.finalTime) + "!";
}
Symbol 467 MovieClip Frame 159
stop();