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("Visit The Flash Gaming Network!", handle5));
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[2].separatorBefore = true;
_root.menu = myMenu;
var cursorDepth = 10000;
Instance of Symbol 71 MovieClip "loadbar" in Frame 1
onClipEvent (enterFrame) {
_xscale = _root.loadPercent;
}
Instance of Symbol 74 MovieClip in Frame 1
onClipEvent (enterFrame) {
_x = (_root.loadbar._x + _root.loadbar._width);
this.txtPercent.text = _root.loadPercent + "%";
}
Instance of Symbol 45 MovieClip [CURSOR] in Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 3
var loadPercent;
loadPercent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_framesloaded >= _totalframes) {
gotoAndStop (4);
} else {
gotoAndPlay (1);
}
Frame 4
trans.play();
Instance of Symbol 45 MovieClip [CURSOR] in Frame 56
onClipEvent (load) {
}
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 171
stop();
var once = false;
Instance of Symbol 45 MovieClip [CURSOR] in Frame 171
onClipEvent (load) {
}
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 172
function showMessage(inMessage) {
_root.displayText.text = inMessage;
_root.messageTimer.play();
}
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 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 = 10000;
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) {
_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("flashlight2", "Flashlight w/ Batteries", false, "", 1, "flashlight", "batteries"));
var ceilingCut = false;
var strap1cut = false;
var strap2cut = false;
var puzzle1solved = false;
var flashlighton = false;
var lightcracked = false;
var carwired = false;
var caron = false;
var trunkopen = false;
var wires = new Array(1, 1, 1, 1, 1, 1, 1);
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");
once = true;
}
Instance of Symbol 123 MovieClip "blinkdot" in Frame 172
onClipEvent (load) {
if (_root.caron) {
nextFrame();
}
}
Instance of Symbol 157 MovieClip "arrowl" in Frame 172
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 157 MovieClip "arrowr" in Frame 172
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 159 MovieClip in Frame 172
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 174 MovieClip in Frame 172
onClipEvent (load) {
}
Instance of Symbol 45 MovieClip [CURSOR] in Frame 172
/* no clip actions */
Instance of Symbol 190 MovieClip "flashlight" in Frame 175
onClipEvent (load) {
_root.INV.handleLoad(_name);
}
on (press) {
_root.INV.handlePress(_name, "Flashlight", 1, "batteries", 1);
}
Instance of Symbol 193 MovieClip in Frame 175
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else {
prevFrame();
}
}
}
Instance of Symbol 198 MovieClip in Frame 176
on (press) {
if (_root.cursorMode == 1) {
if (_root.puzzle1solved) {
_root.gotoAndStop("area11");
} else {
_root.gotoAndStop("puzzle1");
}
}
}
Instance of Symbol 12 MovieClip "screwdriver" in Frame 176
onClipEvent (load) {
_root.INV.handleLoad(_name);
}
on (press) {
_root.INV.handlePress(_name, "Screwdriver", 0, "", 1);
}
Instance of Symbol 212 MovieClip "key1" in Frame 177
onClipEvent (load) {
_root.INV.handleLoad(_name);
}
on (press) {
_root.INV.handlePress(_name, "Small Key", 0, "", 1);
}
Instance of Symbol 216 MovieClip in Frame 177
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else {
prevFrame();
}
}
}
Instance of Symbol 21 MovieClip "batteries" in Frame 178
onClipEvent (load) {
_root.INV.handleLoad(_name);
}
on (press) {
_root.INV.handlePress(_name, "Batteries", 1, "flashlight", 1);
}
Instance of Symbol 24 MovieClip "electape" in Frame 178
onClipEvent (load) {
_root.INV.handleLoad(_name);
}
on (press) {
_root.INV.handlePress(_name, "Electrical Tape", 0, "", 1);
}
Instance of Symbol 221 MovieClip in Frame 178
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 2) {
prevFrame();
} else {
_root.showMessage("The glovebox is locked");
}
} else if (_currentframe == 1) {
if (_root.curItem == "key1") {
_root.unlock.start();
nextFrame();
_root.INV.resetCursor();
}
}
}
Instance of Symbol 226 MovieClip in Frame 179
onClipEvent (load) {
if (_root.ceilingCut) {
nextFrame();
}
}
on (press) {
if ((_root.curItem == "knife") && (!_root.ceilingCut)) {
nextFrame();
_root.ceilingCut = true;
_root.rip.start();
_root.INV.resetCursor();
_root.INV.handlePress("wireguide", "Wiring Guide", false, "", 2);
}
if ((_root.cursorMode == 1) && (!_root.ceilingCut)) {
_root.showMessage("Something appears to be stuck in the ceiling");
}
}
Instance of Symbol 231 MovieClip in Frame 180
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else {
prevFrame();
}
}
}
Instance of Symbol 28 MovieClip "knife" in Frame 180
onClipEvent (load) {
_root.INV.handleLoad(_name);
}
on (press) {
_root.INV.handlePress(_name, "Knife", 0, "", 1);
}
Instance of Symbol 231 MovieClip in Frame 180
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else {
prevFrame();
}
}
}
Instance of Symbol 34 MovieClip "bonus" in Frame 180
onClipEvent (load) {
_root.INV.handleLoad(_name);
}
on (press) {
_root.INV.handlePress(_name, "Bonus Item", 0, "", 1);
}
Instance of Symbol 238 MovieClip "key1" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "keyA" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "key3" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "key2" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "key4" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "keyB" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "key6" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "key5" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "key7" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "keyC" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "key9" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "key8" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "keyD" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "keyE" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 238 MovieClip "key0" in Frame 181
onClipEvent (load) {
this.key = this._name.substr(3, 1);
this.num.text = this.key;
}
on (press) {
_root.enterKey(this.key);
}
Instance of Symbol 261 MovieClip in Frame 182
onClipEvent (load) {
if (_root.caron) {
nextFrame();
}
}
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("The car's ignition switch");
}
if (_root.curItem == "key2") {
if (_root.carwired) {
_root.showMessage("The car's electricity has been turned on");
_root.caron = true;
_root.blinkdot.nextFrame();
_root.INV.Remove("key2");
_root.INV.CompressInventory();
_root.INV.DrawInventory(0);
_root.INV.resetCursor();
this.nextFrame();
} else {
_root.showMessage("Nothing happened");
}
}
if (_root.curItem == "key1") {
_root.showMessage("This key doesn't fit");
}
}
Instance of Symbol 123 MovieClip "blinkdot" in Frame 182
onClipEvent (load) {
if (_root.caron) {
nextFrame();
}
}
Instance of Symbol 266 MovieClip in Frame 183
onClipEvent (load) {
if (_root.trunkopen) {
nextFrame();
}
}
on (press) {
if ((_root.cursorMode == 1) && (_currentframe == 1)) {
_root.showMessage("The trunk is locked shut");
}
if (_currentframe == 2) {
_root.timeCheck = false;
_root.finalTime = _root.txtTimer.text;
_root.finish();
_root.gotoAndStop("win");
}
}
Instance of Symbol 270 MovieClip "crack" in Frame 183
onClipEvent (load) {
if (_root.lightcracked) {
nextFrame();
}
}
Instance of Symbol 37 MovieClip "key2" in Frame 183
onClipEvent (load) {
_root.INV.handleLoad(_name);
if (!_root.lightcracked) {
_visible = false;
}
}
on (press) {
_root.INV.handlePress(_name, "Key", 0, "", 1);
}
Instance of Symbol 167 MovieClip in Frame 183
onClipEvent (load) {
_visible = (!_root.flashlighton);
}
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("It's too dark to see anything");
}
if (_root.curItem == "flashlight") {
_root.showMessage("This flashlight has no power");
}
if (_root.curItem == "flashlight2") {
_root.flashlighton = true;
this._visible = false;
}
}
Instance of Symbol 275 MovieClip in Frame 184
on (press) {
if (_root.cursorMode == 1) {
if (_root.caron) {
if (!_root.trunkopen) {
_root.unlock.start();
_root.trunkopen = true;
_root.showMessage("The trunk has been released");
} else {
_root.myclick.start();
}
} else {
_root.showMessage("Nothing happened");
_root.myclick.start();
}
}
}
Frame 185
i = 0;
while (i < _root.wires.length) {
_root["wire" + i].gotoAndStop(_root.wires[i]);
i++;
}
Instance of Symbol 285 MovieClip "wire2" in Frame 185
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else if (_currentframe == 2) {
prevFrame();
} else {
this.gotoAndStop(1);
}
}
if (_root.curItem == "electape") {
if (_currentframe == 2) {
nextFrame();
} else if (_currentframe == 3) {
prevFrame();
}
}
}
Instance of Symbol 288 MovieClip "wire0" in Frame 185
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else if (_currentframe == 2) {
prevFrame();
} else {
this.gotoAndStop(1);
}
}
if (_root.curItem == "electape") {
if (_currentframe == 2) {
nextFrame();
} else if (_currentframe == 3) {
prevFrame();
}
}
}
Instance of Symbol 291 MovieClip "wire1" in Frame 185
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else if (_currentframe == 2) {
prevFrame();
} else {
this.gotoAndStop(1);
}
}
if (_root.curItem == "electape") {
if (_currentframe == 2) {
nextFrame();
} else if (_currentframe == 3) {
prevFrame();
}
}
}
Instance of Symbol 294 MovieClip "wire4" in Frame 185
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else if (_currentframe == 2) {
prevFrame();
} else {
this.gotoAndStop(1);
}
}
if (_root.curItem == "electape") {
if (_currentframe == 2) {
nextFrame();
} else if (_currentframe == 3) {
prevFrame();
}
}
}
Instance of Symbol 298 MovieClip "wire3" in Frame 185
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else if (_currentframe == 2) {
prevFrame();
} else {
this.gotoAndStop(1);
}
}
if (_root.curItem == "electape") {
if (_currentframe == 2) {
nextFrame();
} else if (_currentframe == 3) {
prevFrame();
}
}
}
Instance of Symbol 301 MovieClip "wire5" in Frame 185
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else if (_currentframe == 2) {
prevFrame();
} else {
this.gotoAndStop(1);
}
}
if (_root.curItem == "electape") {
if (_currentframe == 2) {
nextFrame();
} else if (_currentframe == 3) {
prevFrame();
}
}
}
Instance of Symbol 304 MovieClip "wire6" in Frame 185
on (press) {
if (_root.cursorMode == 1) {
if (_currentframe == 1) {
nextFrame();
} else if (_currentframe == 2) {
prevFrame();
} else {
this.gotoAndStop(1);
}
}
if (_root.curItem == "electape") {
if (_currentframe == 2) {
nextFrame();
} else if (_currentframe == 3) {
prevFrame();
}
}
}
Frame 186
function tempExit(Void) {
clearScreen();
gotoAndStop ("mymenu");
}
Instance of Symbol 316 MovieClip in Frame 186
onClipEvent (load) {
this.swapDepths(100);
}
Instance of Symbol 45 MovieClip [CURSOR] "cursor" in Frame 186
onClipEvent (load) {
this.swapDepths(_root.cursorDepth);
}
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 10 MovieClip in Symbol 13 MovieClip [INVscrewdriver] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 10 MovieClip in Symbol 16 MovieClip [INVflashlight] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 10 MovieClip in Symbol 19 MovieClip [INVkey1] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 10 MovieClip in Symbol 22 MovieClip [INVbatteries] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 10 MovieClip in Symbol 25 MovieClip [INVelectape] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 10 MovieClip in Symbol 26 MovieClip [INVflashlight2] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 10 MovieClip in Symbol 29 MovieClip [INVknife] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 10 MovieClip in Symbol 32 MovieClip [INVwireguide] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 10 MovieClip in Symbol 35 MovieClip [INVbonus] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 10 MovieClip in Symbol 38 MovieClip [INVkey2] Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 45 MovieClip [CURSOR] Frame 1
stop();
Instance of Symbol 41 MovieClip "plus" in Symbol 45 MovieClip [CURSOR] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 68 Button
on (press) {
_root.play();
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 25
stop();
Symbol 325 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 " + _root.INV.findItem(_root.curItem).itemDescription) + " and ") + 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();
}
}
function findItem(itemName) {
var _local2;
_local2 = 0;
while (_local2 < Items.length) {
if (Items[_local2].itemName == itemName) {
break;
}
_local2++;
}
return(Items[_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(itemName) {
if (isItem(itemName) || (isSpentItem(itemName))) {
_root[itemName]._visible = false;
}
}
function handlePress(itemName, inDesc, inCombinable, inCombinesWith, inType) {
if (_root.cursorMode == 1) {
if (isFull) {
trace("Inventory is full");
} else {
_root[itemName]._visible = false;
var _local3 = new Item(itemName, inDesc, inCombinable, inCombinesWith, inType);
Add(_local3);
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 (findItem(_root.curItem).combinesWith == itemName) {
var _local3 = 0;
while (_local3 < _root.ComboItems.length) {
if ((_root.ComboItems[_local3].item1 == itemName) || (_root.ComboItems[_local3].item1 == _root.curItem)) {
Add(_root.ComboItems[_local3]);
}
_local3++;
}
Remove(itemName);
Remove(_root.curItem);
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 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 326 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 327 MovieClip [__Packages.ComboItem] Frame 0
class ComboItem extends Item
{
var item1, item2;
function ComboItem (inName, inDesc, inCombinable, inCombinesWith, inType, inI1, inI2) {
super(inName, inDesc, inCombinable, inCombinesWith, inType);
item1 = inI1;
item2 = inI2;
}
}
Symbol 91 MovieClip Frame 30
stop();
Symbol 94 MovieClip Frame 40
stop();
Symbol 96 Button
on (press) {
getURL ("http://flashgn.com", "blank");
}
Instance of Symbol 87 MovieClip in Symbol 98 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 1.5);
}
Symbol 103 Button
on (press) {
play();
}
Symbol 104 MovieClip Frame 15
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 125 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");
}
}
Symbol 126 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");
}
}
Symbol 127 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area4");
}
}
Symbol 128 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area7");
}
}
Symbol 129 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area10");
}
}
Symbol 130 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area12");
}
}
Symbol 131 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("The windows are barred");
}
}
Symbol 132 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("The radio is broken");
}
}
Symbol 133 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("The rearview mirror");
}
}
Symbol 134 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("The shifter is locked into park");
}
}
Symbol 146 Button
on (press) {
gotoAndStop (1);
}
Symbol 153 MovieClip Frame 1
stop();
Instance of Symbol 142 MovieClip in Symbol 153 MovieClip Frame 2
on (press) {
}
Symbol 154 Button
on (press) {
_root.INV.resetCursor();
}
Symbol 159 MovieClip Frame 1
stop();
Symbol 164 Button
on (press) {
getURL ("http://afro-ninja.com/walkthroughs.php", "blank");
}
Symbol 166 Button
on (press) {
getURL ("http://flashgn.com", "blank");
}
Instance of Symbol 167 MovieClip in Symbol 174 MovieClip Frame 1
on (press) {
}
Symbol 174 MovieClip Frame 91
stop();
_root.timeCheck = true;
_root.heartBeat.start();
_root.startTime = getTimer() / 1000;
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 125
_root.displayText.text = "";
Symbol 179 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");
}
}
Symbol 180 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");
}
}
Symbol 181 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("It wont unlock");
}
}
Symbol 186 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");
}
}
Symbol 187 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");
}
}
Symbol 193 MovieClip Frame 1
stop();
Symbol 195 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 203 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 1
stop();
Instance of Symbol 200 MovieClip in Symbol 204 MovieClip Frame 1
on (press) {
if (((_root.cursorMode == 1) && (_root.strap1cut)) && (_root.strap2cut)) {
_parent.nextFrame();
} else if (_root.cursorMode == 1) {
_root.showMessage("The cushion feels loose");
}
}
Instance of Symbol 203 MovieClip in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
if (_root.strap1cut) {
nextFrame();
}
}
on (press) {
if ((_root.curItem == "knife") && (!_root.strap1cut)) {
_root.rip.start();
this.nextFrame();
_root.strap1cut = true;
}
}
Instance of Symbol 203 MovieClip in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
if (_root.strap2cut) {
nextFrame();
}
}
on (press) {
if ((_root.curItem == "knife") && (!_root.strap2cut)) {
_root.rip.start();
this.nextFrame();
_root.strap2cut = true;
}
}
Instance of Symbol 200 MovieClip in Symbol 204 MovieClip Frame 2
on (press) {
if (_root.cursorMode == 1) {
_parent.prevFrame();
}
}
Instance of Symbol 203 MovieClip in Symbol 204 MovieClip Frame 2
onClipEvent (load) {
if (_root.strap1cut) {
nextFrame();
}
}
on (press) {
if ((_root.curItem == "knife") && (!_root.strap1cut)) {
this.nextFrame();
_root.strap1cut = true;
}
}
Symbol 205 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");
}
}
Symbol 206 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");
}
}
Symbol 207 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area6");
}
}
Symbol 208 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area8");
}
}
Symbol 209 Button
on (press) {
if (_root.cursorMode == 1) {
gotoAndStop ("area9");
}
}
Symbol 216 MovieClip Frame 1
stop();
Symbol 217 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 221 MovieClip Frame 1
stop();
Symbol 222 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 226 MovieClip Frame 1
stop();
Symbol 227 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 231 MovieClip Frame 1
stop();
Symbol 241 Button
on (press) {
_root.tone1.start();
_root.txtNumpad.text = "";
}
Symbol 243 Button
on (press) {
if (_root.txtNumpad.text == "E40") {
_root.unlock.start();
_root.puzzle1solved = true;
_root.gotoAndStop("area11");
} else {
_root.tone2.start();
_root.txtNumpad.text = "ERR";
}
}
Symbol 261 MovieClip Frame 1
stop();
Symbol 262 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("The instrument panel");
}
}
Symbol 266 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 1
stop();
Symbol 271 Button
on (press) {
if (!_root.lightcracked) {
if (_root.cursorMode == 1) {
_root.showMessage("The plastic cover looks cracked");
}
if (((_root.curItem == "knife") || (_root.curItem == "flashlight2")) || (_root.curItem == "screwdriver")) {
_root.bash.start();
_root.lightcracked = true;
_root.key2._visible = true;
_root.crack.nextFrame();
}
}
}
Symbol 272 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("Blood stains...");
}
}
Symbol 276 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("There's a plate underneath the steering wheel");
}
if (_root.curItem == "screwdriver") {
if (_root.caron) {
_root.showMessage("The car has already been properly wired");
} else {
_root.gotoAndStop("puzzle2");
}
}
}
Symbol 277 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("Brake pedal");
}
}
Symbol 278 Button
on (press) {
if (_root.cursorMode == 1) {
_root.showMessage("Gas pedal");
}
}
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) {
i = 0;
while (i < _root.wires.length) {
_root.wires[i] = _root["wire" + i]._currentframe;
i++;
}
if (((((_root.wires[0] + _root.wires[5]) + _root.wires[3]) + _root.wires[2]) == 12) && (((_root.wires[1] + _root.wires[4]) + _root.wires[6]) == 3)) {
_root.carwired = true;
} else {
_root.carwired = false;
}
gotoAndStop ("area12");
_root.cursor.gotoAndStop("main");
}
}
Symbol 310 Button
on (press) {
_root.gotoAndStop("menu");
}
Symbol 311 Button
on (press) {
_root.tempExit();
}
Symbol 315 Button
on (press) {
getURL ("http://afro-ninja.com", "blank");
getURL ("http://flashgn.com", "blank");
}
Instance of Symbol 307 MovieClip in Symbol 316 MovieClip Frame 80
onClipEvent (load) {
this.txtFinal.text = ("YOU ESCAPED IN " + _root.finalTime) + "!";
}
Symbol 316 MovieClip Frame 159
stop();