Frame 1
fscommand (allowscale, false);
percentLoaded = int((_root._framesLoaded / _root._totalframes) * 100) + 1;
percentText = percentLoaded + "%";
loader.outline._rotation = loader.outline._rotation + 45;
Frame 2
if (_root._framesloaded >= _root._totalframes) {
gotoAndStop (3);
} else {
gotoAndPlay (1);
}
Frame 3
loadingText = "Push Bush to Begin";
percentText = "100%";
loader.gotoAndStop("button");
stop();
Frame 10
gotoAndStop (12);
Frame 11
stop();
Frame 12
stop();
Frame 13
stop();
Instance of Symbol 124 MovieClip "h" in Frame 17
onClipEvent (enterFrame) {
if (_root.isNearExplosion(_parent)) {
_root.housesOnScreen--;
_root.attachMovie("smoke", "smoke", 7001);
_root.smoke._x = _parent._x;
_root.smoke._y = _parent._y;
_parent.gotoAndPlay("DESTROY");
}
}
Frame 18
function setupLevel(number) {
var numHo = numHouses[number];
var numCa = numCaves[number];
setupObj("house", numHo);
setupObj("cave", numCa);
housesOnScreen = numHo;
}
function setupObj(objName, objNum) {
var z = 1;
while (objNum >= z) {
var Q = "unset";
while (Q == "unset") {
var ranD = (random(7) + 1);
if (SlotArray[ranD] == 0) {
if (objName == "house") {
SlotArray[ranD] = objName;
} else {
SlotArray[ranD] = objName;
}
if (ranD >= 6) {
var dep = (bank1SlotsZ + ranD);
} else {
var dep = (bank2SlotsZ + ranD);
}
var nname = ("Slot" + ranD);
attachMovie(objName, nname, dep);
eval ("_root." + nname)._x = Xslots[ranD];
eval ("_root." + nname)._y = Yslots[ranD];
eval ("_root." + nname).slot = ranD;
if (objName == "cave") {
cavesOnScreen++;
caveArray.push(nname);
eval (nname).busy = false;
}
Q = "set";
}
}
z++;
}
}
function rolled(number) {
currentRoll = number;
popupStartTime = getTimer();
if (number == 0) {
popup("off");
}
}
function popup(status) {
if (status == "on") {
popClip.poptext = popArray[currentRoll];
popClip._visible = true;
currentRoll = 0;
} else {
popClip._visible = false;
currentRoll = 0;
}
}
function setWeapon(number) {
if (number == 0) {
icon1.select.gotoAndStop(1);
icon2.select.gotoAndStop(1);
icon3.select.gotoAndStop(1);
icon4.select.gotoAndStop(1);
icon5.select.gotoAndStop(1);
currentWeapon = 0;
} else if ((weaponReady == "on") && (!((number == 2) && (0 < sandwichesRemain)))) {
if (number == currentWeapon) {
number = 0;
setCursor("off");
} else {
setCursor("check");
}
clearTargets();
icon1.select.gotoAndStop(1);
icon2.select.gotoAndStop(1);
icon3.select.gotoAndStop(1);
icon4.select.gotoAndStop(1);
icon5.select.gotoAndStop(1);
eval ("icon" + number).select.gotoAndStop(2);
currentWeapon = number;
} else {
gunBuzz();
}
}
function setEWD() {
EWD.sel1._visible = true;
EWD.sel2._visible = true;
EWD.sel3._visible = true;
EWD.sel4._visible = true;
EWD.sel5._visible = true;
eval ("EWD.sel" + currentEWD)._visible = false;
}
function removeMe(obj) {
removeMovieClip(obj);
}
function nextEvent() {
currentEWD++;
if (5 < currentEWD) {
clearScreen();
gotoAndPlay (27);
} else {
gotoAndStop (19);
}
}
function init() {
clearScreen();
setWeapon(0);
weaponDone();
SlotArray = new Array(0, 0, 0, 0, 0, 0, 0, 0);
currentRoll = 0;
currentWeapon = 0;
XsOnScreen = 0;
weaponReady = "on";
popupStartTime = 0;
sandwichesRemain = 0;
explosionsOnScreen = 0;
deadOnScreen = 0;
bombsOnScreen = 0;
holesOnScreen = 0;
holeNum = 0;
housesOnScreen = 0;
MouseIsOver = false;
setCursor("check");
villagersOnScreen = 0;
terroristsOnScreen = 0;
totalPeopleOnScreen = 0;
undergroundPeople = 0;
caveTimer = 0;
caveStartCount = false;
terroristsRemaining = terroristKillsPerLevel[currentEWD];
nextMan = 0;
randomEventTimer = 0;
randomEventStartCount = false;
villagerArray = new Array();
terroristArray = new Array();
totalPeopleArray = new Array();
deathArray = new Array();
caveArray = new Array();
undergroundPeopleArray = new Array();
specialSoundNoPlay = false;
eventTimerStart = false;
NUKE = false;
}
function clearScreen() {
clearTargets();
removeMovieClip("laser");
removeMovieClip("para");
removeMovieClip("F16");
removeMovieClip("dropPlane");
removeMovieClip("carpet");
removeMovieClip("special");
removeMovieClip("bunk1");
var z = 1;
while (_root.bombsOnScreen >= z) {
removeMovieClip("bomb" + z);
z++;
}
var z = 1;
while (explosionsOnScreen >= z) {
removeMovieClip("explo" + z);
z++;
}
var z = 0;
while (z < _root.deathArray.length) {
removeMovieClip(_root.deathArray[z]);
z++;
}
var z = 1;
while (holesOnScreen >= z) {
removeMovieClip("hole" + z);
z++;
}
var z = 1;
while (3 >= z) {
removeMovieClip("sandwich" + z);
z++;
}
var z = 1;
while (7 >= z) {
removeMovieClip("Slot" + z);
z++;
}
var z = 0;
while (z < _root.totalPeopleArray.length) {
removeMovieClip(_root.totalPeopleArray[z]);
z++;
}
}
function nukeScreen() {
clearTargets();
removeMovieClip("laser");
removeMovieClip("para");
removeMovieClip("F16");
removeMovieClip("dropPlane");
removeMovieClip("carpet");
if (bunk1.nuker != true) {
removeMovieClip("bunk1");
}
special.gotoAndPlay("DEATH");
var z = 1;
while (_root.bombsOnScreen >= z) {
removeMovieClip("bomb" + z);
z++;
}
var z = 0;
while (z < _root.deathArray.length) {
removeMovieClip(_root.deathArray[z]);
z++;
}
var z = 1;
while (holesOnScreen >= z) {
removeMovieClip("hole" + z);
z++;
}
var z = 1;
while (3 >= z) {
removeMovieClip("sandwich" + z);
z++;
}
var z = 1;
while (7 >= z) {
if (SlotArray[z] == "house") {
eval ("_root.Slot" + z).gotoAndPlay("DESTROY");
} else {
removeMovieClip("Slot" + z);
}
z++;
}
var z = 0;
while (z < _root.totalPeopleArray.length) {
eval (_root.totalPeopleArray[z]).gotoAndPlay("DEAD");
z++;
}
}
function mouseOver() {
MouseIsOver = true;
if (currentWeapon == 0) {
setCursor("off");
} else {
setCursor("on");
}
}
function mouseOut() {
MouseIsOver = false;
setCursor("off");
}
function fireWeapon() {
if (currentWeapon == 0) {
gunEmpty();
} else if (weaponReady == "on") {
if (currentWeapon == 5) {
icon5.select.gotoAndStop(1);
}
attachTarget(_xmouse, _ymouse);
} else {
gunBuzz();
}
}
function setCursor(mode) {
if (mode == "on") {
if (weaponReady == "on") {
Mouse.hide();
attachMovie("target", "target", targetZ);
startDrag ("target", true);
}
} else if (mode == "off") {
stopDrag();
removeMovieClip("target");
Mouse.show();
} else if (MouseIsOver == true) {
setCursor("on");
} else {
setCursor("off");
}
}
function attachTarget(TargetX, TargetY) {
XsOnScreen++;
attachMovie("X", "X" + XsOnScreen, XZ + XsOnScreen);
eval ("X" + XsOnScreen)._x = TargetX;
eval ("X" + XsOnScreen)._y = TargetY;
if (XsOnScreen == XLimit[currentWeapon]) {
weaponReady = "off";
setCursor("off");
startWeapon();
}
}
function startWeapon() {
if (currentWeapon == 1) {
attachMovie("laser", "laser", bombZ);
laser._x = (random(rightScreen - leftScreen) + leftScreen) + 1;
laser._y = (-1 * random(51)) - 20;
} else if (currentWeapon == 2) {
attachMovie("dropPlane", "dropPlane", planeZ);
var z = random(2);
if (z == 0) {
dropPlane._x = 850;
dropPlane.dir = "left";
} else {
dropPlane._x = -300;
dropPlane.dir = "right";
}
dropPlane._y = 55;
} else if (currentWeapon == 3) {
attachMovie("paratrooper", "para", bombZ);
para._x = (random(rightScreen - leftScreen) + leftScreen) + 1;
para._y = (-1 * random(51)) - 20;
} else if (currentWeapon == 4) {
attachMovie("F16", "F16", planeZ);
var z = random(2);
if (z == 0) {
F16._x = 850;
F16.dir = "left";
} else {
F16._x = -300;
F16.dir = "right";
}
F16._y = 135;
} else if (currentWeapon == 5) {
attachMovie("F16", "F16", planeZ);
var z = random(2);
if (z == 0) {
F16._x = 850;
F16.dir = "left";
} else {
F16._x = -300;
F16.dir = "right";
}
F16._y = 135;
}
}
function weaponDone() {
clearTargets();
weaponReady = "on";
setCursor("check");
}
function setMySlope(obj1, obj2) {
var o2x = obj2._x;
var o2y = obj2._y;
var o1x = obj1._x;
var o1y = obj1._y;
var slopeX = (o1x - o2x);
var slopeY = (o1y - o2y);
obj1.adjX = slopeX / slopeY;
obj1.adjY = 1;
}
function setMyAngle(obj1, obj2) {
var Radians = Math.atan2(obj2._y - obj1._y, obj2._x - obj1._x);
var Degrees = Math.round((Radians * 180) / Math.PI);
obj1._rotation = Degrees;
}
function setMySpeed(obj1, num) {
obj1.speed = weaponSpeed[num];
}
function clearTargets() {
var z = 1;
while (XsOnScreen >= z) {
eval ("X" + z).removeMovieClip();
z++;
}
XsOnScreen = 0;
}
function gunEmpty() {
GlobalSound = new Sound();
GlobalSound.attachSound("gunEmpty");
GlobalSound.setVolume(50);
GlobalSound.start();
}
function gunBuzz() {
GlobalSound = new Sound();
GlobalSound.attachSound("buzz");
GlobalSound.setVolume(50);
GlobalSound.start();
}
function isOffScreen(obj, offset) {
if (((rightScreen - offset) < obj._x) || (obj._x < (leftScreen + offset))) {
return(true);
}
if ((bottomScreen - offset) < obj._y) {
return(true);
}
return(false);
}
function addExplosion(obj) {
var x = obj._x;
var y = obj._y;
explosionsOnScreen++;
attachMovie("explo", "explo" + explosionsOnScreen, exploZ + explosionsOnScreen);
eval ("explo" + explosionsOnScreen)._x = x;
eval ("explo" + explosionsOnScreen)._y = y;
}
function isNearExplosion(obj, Special) {
if (0 < explosionsOnScreen) {
var num = _root.exploNear;
if (Special == "Y") {
num = num * 2;
}
var z = 1;
while (explosionsOnScreen >= z) {
if ((((eval ("explo" + z)._x + num) >= obj._x) && (obj._x >= (eval ("explo" + z)._x - num))) && (((eval ("explo" + z)._y + num) >= obj._y) && (obj._y >= (eval ("explo" + z)._y - num)))) {
return(true);
}
z++;
}
}
return(false);
}
function addHole(obj) {
var x = obj._x;
var y = obj._y;
if (holesOnScreen < 3) {
holesOnScreen++;
}
if (holeNum < 3) {
holeNum++;
} else {
holeNum = 1;
}
eval ("hole" + holeNum).purgeVictims();
attachMovie("hole", "hole" + holeNum, holeZ + holeNum);
eval ("hole" + holeNum)._x = x;
eval ("hole" + holeNum)._y = y;
}
function killed(Ter, Vill, newTer) {
TKilled = TKilled + Ter;
if (newTer == "Y") {
score = score + (Ter * newTBonus);
} else {
score = score + (Ter * TBonus);
}
Vkilled = Vkilled + Vill;
score = score - (Vill * Vpenalty);
}
function IsPast(object1, object2, extra) {
if (object1.dir == "left") {
if ((object2._x + extra) >= object1._x) {
return(true);
}
} else if (object1._x >= (object2._x + extra)) {
return(true);
}
return(false);
}
function createVillager() {
totalPeopleOnScreen++;
nextMan++;
var nname = ("V" + nextMan);
attachMovie("Villager", nname, villagerZ + nextMan);
eval (nname)._x = 500;
eval (nname)._y = (random(105) + 1) + 160;
eval (nname).gotoAndPlay("STAND");
var terr = (random(_root.terroristChance) + 1);
eval (nname).lastCave = "NONE";
eval (nname).lastMile = false;
if (terr == 1) {
terroristsOnScreen++;
terroristArray.push(nname);
eval (nname).Terrorist = true;
eval (nname).original = true;
eval (nname).gotoAndPlay("MAD");
} else {
eval (nname).Terrorist = false;
eval (nname).original = false;
villagersOnScreen++;
villagerArray.push(nname);
}
totalPeopleArray.push(nname);
}
function isNearSandwich(obj, Special) {
if (0 < sandwichesRemain) {
var num = _root.sandwichNear;
if (Special == "Y") {
num = num * 2;
}
var z = 1;
while (3 >= z) {
var nname = eval ("sandwich" + z);
if (eval (nname).sandwich.falling == false) {
if ((((eval (nname)._x + num) >= obj._x) && (obj._x >= (eval (nname)._x - num))) && (((eval (nname)._y + num) >= obj._y) && (obj._y >= (eval (nname)._y - num)))) {
return(z);
}
}
z++;
}
}
return(false);
}
function isNearHole(obj, Special) {
if (0 < holesOnScreen) {
var num = _root.holeNear;
if (Special == "Y") {
num = num * 2;
}
var z = 1;
while (holesOnScreen >= z) {
var nname = ("hole" + z);
if ((((eval (nname)._x + num) >= obj._x) && (obj._x >= (eval (nname)._x - num))) && (((eval (nname)._y + num) >= obj._y) && (obj._y >= (eval (nname)._y - num)))) {
return(z);
}
z++;
}
}
return(false);
}
function isNearCave(obj) {
if (0 < caveArray.length) {
var z = 0;
while (z < caveArray.length) {
var nname = caveArray[z];
if (eval (obj).lastCave != nname) {
if (eval (nname).busy == false) {
if ((((eval (nname)._x + caveNear) >= obj._x) && (obj._x >= (eval (nname)._x - caveNear))) && (((eval (nname)._y + caveNear) >= obj._y) && (obj._y >= (eval (nname)._y - caveNear)))) {
return(z);
}
}
}
z++;
}
}
return(false);
}
function isNearDeath(obj) {
if (0 < deadOnScreen) {
var z = 0;
while (deadOnScreen >= z) {
var nname = deathArray[z - 1];
if (nname.indexOf("Slot") != -1) {
var deadMod = (deadNear * 2);
if ((((eval (nname)._x + deadMod) >= obj._x) && (obj._x >= (eval (nname)._x - deadMod))) && (((eval (nname)._y + deadMod) >= obj._y) && (obj._y >= (eval (nname)._y - deadMod)))) {
return(true);
}
} else if (eval (nname).Terrorist == false) {
var deadMod = deadNear;
if ((((eval (nname)._x + deadMod) >= obj._x) && (obj._x >= (eval (nname)._x - deadMod))) && (((eval (nname)._y + deadMod) >= obj._y) && (obj._y >= (eval (nname)._y - deadMod)))) {
return(true);
}
}
z++;
}
}
return(false);
}
function villagerScoreAdjust(obj) {
if (obj.Terrorist == true) {
if (obj.original == true) {
killed(1, 0, "N");
obj.scoreAdjPos = "+" + TBonus;
obj.scoreAdjNeg = "";
} else {
killed(1, 0, "Y");
_root.score = _root.score + newTBonus;
obj.scoreAdjPos = "+" + newTBonus;
obj.scoreAdjNeg = "";
}
} else {
killed(0, 1);
obj.scoreAdjNeg = -1 * VPenalty;
obj.scoreAdjPos = "";
}
}
function villagerArrayAdjust(obj) {
if (obj.Terrorist == true) {
if (obj.original == true) {
_root.terroristsRemaining--;
}
delArray(terroristArray, obj._name);
terroristsOnScreen--;
} else {
delArray(villagerArray, obj._name);
villagersOnScreen--;
}
delArray(totalPeopleArray, obj._name);
totalPeopleOnScreen--;
}
function delArray(arrayName, item) {
var u = rmArray(arrayName, item);
if (u == "poop") {
} else {
arrayName.splice(u, 1);
}
}
function rmArray(arrayName, item) {
var z = 0;
while (z < arrayName.length) {
if (arrayName[z] == item) {
return(z);
}
z++;
}
return("poop");
}
function angerTerrorists() {
var z = 0;
while (z < terroristArray.length) {
if ((eval (terroristArray[z]).limbo == false) && (eval (terroristArray[z]).dying != true)) {
eval (terroristArray[z]).gotoAndPlay("LAUNCHER");
}
z++;
}
prarieDoggin();
}
function villagerEmerge() {
var z = random(caveArray.length);
if (eval (caveArray[z]).busy == false) {
eval (caveArray[z]).gotoAndPlay("MAN LEAVE");
}
}
function prarieDoggin() {
var x = 0;
var randArray = caveArray.slice(0);
randomizeArray(randArray);
var z = 0;
while (z < undergroundPeople) {
if (eval (undergroundPeopleArray[z]).Terrorist == true) {
if (eval (randArray[x]).busy == false) {
eval (randArray[x]).gotoAndPlay("PRARIEDOG");
x++;
if ((randArray.length - 1) < x) {
return;
}
}
}
z++;
}
}
function bunkerBlow() {
if (undergroundPeople < caveArray.length) {
var min = undergroundPeople;
} else {
var min = caveArray.length;
}
var randArray = caveArray.slice(0);
randomizeArray(randArray);
var z = 0;
while (z < min) {
eval (randArray[z]).gotoAndPlay("BLOWOUT");
z++;
}
}
function randomizeArray(array) {
var q = array.length;
var oldArray = new Array();
oldArray = array.slice(0);
var tmpArray = new Array();
array.splice(0);
z = 0;
while (z < q) {
var x = random(oldArray.length);
array.push(oldArray[x]);
oldArray.splice(x, 1);
z++;
}
}
function randomEvent() {
var z = (random(5) + 1);
if (3 >= z) {
attachMovie("special", "special", _root.specialZ);
special.special = z;
special._x = -50;
special._y = 320;
} else {
attachMovie("carpet", "carpet", _root.specialZ);
carpet._y = -100;
if (z == 4) {
carpet.special = "bomb";
} else if (z == 5) {
carpet.special = "money";
}
}
}
function everybodyHappy() {
while (0 < terroristArray.length) {
var nname = terroristArray.pop();
eval (nname).Terrorist = false;
_root.terroristsOnScreen--;
_root.villagerArray.push(nname);
_root.villagersOnScreen++;
if ((eval (nname).limbo == false) && (eval (nname).dying != true)) {
eval (nname).gotoAndPlay("EAT");
}
}
}
function pickHead(num) {
if (num >= 8) {
return("B");
}
if (num >= 6) {
return("D");
}
if (num >= 4) {
return("R");
}
if (num >= 2) {
return("C");
}
return("P");
}
function calculate() {
if (-10000 >= slotmachine.modScore) {
rank = "BBB";
} else if (slotmachine.modScore >= -1000) {
rank = "PPP";
} else {
rank = pickHead(Math.abs(int(slotmachine.modScore / 1000)));
slotmachine.modScore = slotmachine.modScore - (int(slotmachine.modScore / 1000) * 1000);
rank = rank + pickHead(Math.abs(int(slotmachine.modScore / 100)));
slotmachine.modScore = slotmachine.modScore - (int(slotmachine.modScore / 100) * 100);
rank = rank + pickHead(Math.abs(int(slotmachine.modScore / 10)));
}
}
stopAllSounds();
stop();
TKilled = 0;
VKilled = 0;
citiesRemain = 3;
score = 0;
Xslots = new Array(0, 440, 355, 270, 180, 90, 455, 370);
Yslots = new Array(0, 155, 175, 195, 215, 235, 295, 315);
leftScreen = 37;
rightScreen = 505;
bottomScreen = 345;
popArray = new Array("", "<B>Laser-Guided Missile (key:1)</B><BR>A precision tool in the fight against evil-doers.", "<B>Food Packets / Cluster Bombs (key:2)</B><BR>Random distribution.", "<B>Paratrooper (key:3)</B><BR>Death from above.", "<B>Bunker Buster (key:4)</B><BR>Smoke 'em out of their holes.", "<B>Mini-Nuke (key: 5)</B><BR>A mini-'Big One'");
popTime = 1;
numCaves = new Array(0, 1, 2, 3, 4, 5);
numHouses = new Array(0, 2, 3, 4, 3, 2);
killedPerHouse = 5;
housePenalty = 50;
Vpenalty = 10;
TBonus = 10;
convertTerroristBonus = 10;
newTBonus = 2;
XLimit = new Array(0, 1, 3, 1, 1, 1);
weaponSpeed = new Array(0, 20, 10, 4, 30, 30);
sandwichSpeed = 9;
exploNear = 35;
sandwichNear = 15;
holeNear = 15;
deadNear = 55;
caveNear = 25;
Ytaunt = 100;
carpet1 = 60;
carpet2 = 490;
specialSoundNoPlay = false;
totalPeoplePerLevel = new Array(0, 8, 12, 14, 16, 18);
terroristKillsPerLevel = new Array(0, 3, 5, 8, 10, 12);
villagerRate = new Array(0, 5, 4, 3, 2, 1);
villagerSpeed = new Array(0, 2, 3, 4, 5, 6);
walkRandomizer = new Array(0, 100, 90, 80, 70, 50);
undergroundTime = 4;
terroristChance = 3;
lastMileX = 60;
specialXSpeed = 5;
specialYSpeed = -1;
randomEventTime = 25;
planeZ = 10000;
exploZ = 9000;
bombZ = 8000;
bank1SlotsZ = 7000;
specialZ = 6500;
villagerZ = 6000;
targetZ = 5000;
sandZ = 4000;
XZ = 3000;
bank2SlotsZ = 2000;
holeZ = 1000;
BArray = new Array(1, "Blood-thirsty", "vengeful", "dictator");
DArray = new Array(2, "Maniacal", "cutthroat", "war-profiteer");
RArray = new Array(3, "Homicidal", "paranoid", "sociopath");
CArray = new Array(4, "Calculating", "vindictive", "provocateur");
PArray = new Array(5, "Moderate", "reptilian", "mediator");
spindleHigh = 18;
spindleLow = 474;
stopAllSounds();
currentEWD = 0;
nextEvent();
Frame 19
stopAllSounds();
init();
EWD.play();
Frame 20
objectiveCounter._visible = false;
backdrop.gotoAndStop(currentEWD);
stop();
Instance of Symbol 325 MovieClip "panel" in Frame 20
onClipEvent (load) {
this.shake = false;
}
onClipEvent (enterFrame) {
if (this.shake == true) {
this._rotation = random(7) - 3;
}
}
Frame 21
setupLevel(currentEWD);
createVillager();
stop();
Instance of Symbol 340 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.NUKE != true) {
if (_root.currentRoll != 0) {
var timeA = _root.popupStartTime;
var timeB = getTimer();
var elapsed = ((timeB - timeA) / 1000);
if (elapsed >= _root.popTime) {
_root.popup("on");
}
}
if (_root.totalPeopleOnScreen < _root.totalPeoplePerLevel[_root.currentEWD]) {
if (_root.eventTimerStart == false) {
_root.eventTimerStart = true;
_root.eventTimer = getTimer() / 1000;
} else {
var currentTime = (getTimer() / 1000);
var elapsed = (currentTime - _root.eventTimer);
if (elapsed >= _root.villagerRate[_root.currentEWD]) {
_root.eventTimerStart = false;
_root.createVillager();
}
}
}
if (0 < _root.undergroundPeople) {
if (_root.caveStartCount == false) {
_root.caveStartCount = true;
_root.caveTimer = getTimer() / 1000;
} else {
var currentTime = (getTimer() / 1000);
var elapsed = (currentTime - _root.caveTimer);
if (elapsed >= _root.undergroundTime) {
_root.caveStartCount = false;
_root.villagerEmerge();
}
}
}
if (_root.randomEventStartCount == false) {
_root.randomEventStartCount = true;
_root.randomEventTimer = getTimer() / 1000;
} else {
var currentTime = (getTimer() / 1000);
var elapsed = (currentTime - _root.randomEventTimer);
if (elapsed >= _root.randomEventTime) {
_root.randomEventStartCount = false;
_root.randomEvent();
}
}
if (0 >= _root.terroristsRemaining) {
_root.nextEvent();
}
}
}
Instance of Symbol 342 MovieClip "popClip" in Frame 21
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 353 MovieClip "icon1" in Frame 21
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 353 MovieClip "icon2" in Frame 21
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 353 MovieClip "icon3" in Frame 21
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 353 MovieClip "icon4" in Frame 21
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 353 MovieClip "icon5" in Frame 21
onClipEvent (load) {
this.gotoAndStop(5);
this.flash = true;
}
Instance of Symbol 358 MovieClip in Frame 21
/* no clip actions */
Frame 27
stopAllSounds();
_root.setCursor("off");
_root.slotmachine.gotoAndPlay(2);
stop();
Frame 32
stopAllSounds();
whatevah.play();
TEXT = "<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>// Target: Evil Doers<BR>// Artwork by Mr. BLM<BR>// Programming by <BR>FreshLaundry<BR>// Last Updated: August 4, 2002<BR>// <BR>function setupLevel (number) {<BR> // position the # of houses and caves for that level<BR> var numHo = numHouses[number];<BR> var numCa = numCaves[number];<BR> // setup the houses and caves<BR> setupObj('house', numHo);<BR> setupObj('cave', numCa);<BR> //<BR> housesOnScreen = numHo;<BR>}<BR>function setupObj (objName, objNum) {<BR> for (var z = 1; z[=objNum; z##) {<BR> var Q = 'unset';<BR> while (Q == 'unset') {<BR> var ranD = random(7)#1;<BR> if (SlotArray[ranD] == 0) {<BR> // if the slot hasn't been set yet<BR> if (objName == 'house') {<BR> SlotArray[ranD] = objName;<BR> } else {<BR> SlotArray[ranD] = objName;<BR> }<BR> // depth<BR> if (ranD ]= 6) {<BR> // closest houses<BR> var dep = bank1SlotsZ#ranD;<BR> } else {<BR> // farthest houses<BR> var dep = bank2SlotsZ#ranD;<BR> }<BR> // create object<BR> var nname = 'Slot'#ranD;<BR> attachMovie(objName, nname, dep);<BR> eval('_root.'#nname)._x = Xslots[ranD];<BR> eval('_root.'#nname)._y = Yslots[ranD];<BR> //<BR> eval('_root.'#nname).slot = ranD;<BR> //<BR> if (objName == 'cave') {<BR> // add to cave array<BR> cavesOnScreen##;<BR> caveArray.push(nname);<BR> // set it as unbusy<BR> eval(nname).busy = false;<BR> }<BR> //<BR> Q = 'set';<BR> }<BR> // else nothing, do it again<BR> }<BR> }<BR>}<BR>function rolled (number) {<BR> // if a user rolls over a weapon icon<BR> // it marks the time to wait for popup<BR> currentRoll = number;<BR> popupStartTime = getTimer();<BR> if (number == 0) {<BR> popup('off');<BR> }<BR>}<BR>function popup (status) {<BR> // set on or off<BR> if (status == 'on') {<BR> popClip.poptext = popArray[currentRoll];<BR> popClip._visible = true;<BR> currentRoll = 0;<BR> } else {<BR> popClip._visible = false;<BR> currentRoll = 0;<BR> }<BR>}<BR>function setWeapon (number) {<BR> if (number == 0) {<BR> // just clear it out<BR> icon1.select.gotoAndStop(1);<BR> icon2.select.gotoAndStop(1);<BR> icon3.select.gotoAndStop(1);<BR> icon4.select.gotoAndStop(1);<BR> icon5.select.gotoAndStop(1);<BR> icon6.select.gotoAndStop(1);<BR> currentWeapon = 0;<BR> } else if ((weaponReady == 'on') AND !((number == 2) AND (sandwichesRemain ] 0))) {<BR> // weapon ready to set, make sure the previous weapon is done<BR> if (number == currentWeapon) {<BR> // if they push button already used<BR> // set it to nada<BR> number = 0;<BR> setCursor('off');<BR> } else {<BR> // on or off depending<BR> setCursor('check');<BR> }<BR> clearTargets();<BR> icon1.select.gotoAndStop(1);<BR> icon2.select.gotoAndStop(1);<BR> icon3.select.gotoAndStop(1);<BR> icon4.select.gotoAndStop(1);<BR> icon5.select.gotoAndStop(1);<BR> icon6.select.gotoAndStop(1);<BR> eval('icon'#number).select.gotoAndStop(2);<BR> currentWeapon = number;<BR> } else {<BR> // previous weapon is not done or tried to choose 2 while sandwiches still alive<BR> gunBuzz();<BR> }<BR>}<BR>function setEWD () {<BR> // set the EWD<BR> EWD.sel1._visible = true;<BR> EWD.sel2._visible = true;<BR> EWD.sel3._visible = true;<BR> EWD.sel4._visible = true;<BR> EWD.sel5._visible = true;<BR> eval('EWD.sel'#currentEWD)._visible = false;<BR>}<BR>function removeMe (obj) {<BR> // villager dead - remove<BR> removeMovieClip (obj);<BR>}<BR>function nextEvent () {<BR> currentEWD##;<BR> if (currentEWD ] 5) {<BR> gotoAndPlay('LOSE');<BR> } else {<BR> gotoAndStop('ADVISORY');<BR> }<BR>}<BR>function init () {<BR> // setup the starting settings<BR> // for each level. reset the board.<BR> // <BR> // Objects<BR> clearScreen();<BR> setWeapon(0);<BR> weaponDone();<BR> // Slot locations<BR> SlotArray = new Array(0, 0, 0, 0, 0, 0, 0, 0);<BR> //<BR> currentRoll = 0;<BR> currentWeapon = 0;<BR> XsOnScreen = 0;<BR> weaponReady = 'on';<BR> popupStartTime = 0;<BR> sandwichesRemain = 0;<BR> explosionsOnScreen = 0;<BR> deadOnScreen = 0;<BR> bombsOnScreen = 0;<BR> holesOnScreen = 0;<BR> holeNum = 0;<BR> housesOnScreen = 0;<BR> MouseIsOver = false;<BR> setCursor('check');<BR> // villager stuff<BR> villagersOnScreen = 0;<BR> terroristsOnScreen = 0;<BR> totalPeopleOnScreen = 0;<BR> undergroundPeople = 0;<BR> caveTimer = 0;<BR> caveStartCount = false;<BR> terroristsRemaining = terroristKillsPerLevel[currentEWD];<BR> nextMan = 0;<BR> //<BR> randomEventTimer = 0;<BR> randomEventStartCount = false;<BR> // Storage Containers<BR> villagerArray = new Array();<BR> terroristArray = new Array();<BR> totalPeopleArray = new Array();<BR> deathArray = new Array();<BR> caveArray = new Array();<BR> undergroundPeopleArray = new Array();<BR> //<BR> eventTimerStart = false;<BR> NUKE = false;<BR> // End init<BR>}<BR>function clearScreen() {<BR> clearTargets();<BR> removeMovieClip('laser');<BR> removeMovieClip('para');<BR> removeMovieClip('F16');<BR> removeMovieClip('dropPlane');<BR> removeMovieClip('special');<BR> for (var z = 1; z[=_root.bombsOnScreen; z##) {<BR> // clear all the bombs<BR> removeMovieClip ('bomb'#z);<BR> }<BR> for (var z = 1; z[=explosionsOnScreen; z##) {<BR> // clear all the houses/caves<BR> removeMovieClip ('explo'#z);<BR> // <BR> }<BR> for (var z = 0; z[_root.deathArray.length; z##) {<BR> // clear all the people<BR> removeMovieClip (_root.deathArray[z]);<BR> }<BR> for (var z = 1; z[=holesOnScreen; z##) {<BR> // clear all the holes<BR> removeMovieClip ('hole'#z);<BR> // <BR> }<BR> for (var z = 1; z[=3; z##) {<BR> // clear all the sandwiches<BR> removeMovieClip ('sandwich'#z);<BR> // <BR> }<BR> for (var z = 1; z[=7; z##) {<BR> // clear all the houses/caves<BR> removeMovieClip ('Slot'#z);<BR> // <BR> }<BR> for (var z = 0; z[_root.totalPeopleArray.length; z##) {<BR> // clear all the people<BR> removeMovieClip (_root.totalPeopleArray[z]);<BR> }<BR>}<BR>function nukeScreen() {<BR> // rather than clear, we suicide everything<BR> clearTargets();<BR> removeMovieClip('laser');<BR> removeMovieClip('para');<BR> removeMovieClip('F16');<BR> removeMovieClip('dropPlane');<BR> removeMovieClip('special');<BR> for (var z = 1; z[=_root.bombsOnScreen; z##) {<BR> // clear all the bombs<BR> removeMovieClip ('bomb'#z);<BR> }<BR> for (var z = 0; z[_root.deathArray.length; z##) {<BR> // clear all the dead people<BR> removeMovieClip (_root.deathArray[z]);<BR> }<BR> for (var z = 1; z[=holesOnScreen; z##) {<BR> // clear all the holes<BR> removeMovieClip ('hole'#z);<BR> // <BR> }<BR> for (var z = 1; z[=3; z##) {<BR> // clear all the sandwiches<BR> removeMovieClip ('sandwich'#z);<BR> // <BR> }<BR> for (var z = 1; z[=7; z##) {<BR> // clear all the houses/caves<BR> if (SlotArray[z] == 'house') {<BR> // house, destroy thyself<BR> eval('_root.Slot'#z).gotoAndPlay('DESTROY');<BR> } else {<BR> removeMovieClip ('Slot'#z);<BR> }<BR> }<BR> for (var z = 0; z[_root.totalPeopleArray.length; z##) {<BR> // clear all the people<BR> eval(_root.totalPeopleArray[z]).gotoAndPlay('DEAD');<BR> }<BR> <BR>}<BR>function mouseOver () {<BR> // mouse enters the battlefield<BR> MouseIsOver = true;<BR> if (currentWeapon == 0) {<BR> // do nothing<BR> setCursor('off');<BR> } else {<BR> setCursor('on');<BR> }<BR>}<BR>function mouseOut () {<BR> // mouse leaves the battlefield<BR> MouseIsOver = false;<BR> setCursor('off');<BR>}<BR>function fireWeapon () {<BR> // weapon is fired<BR> if (currentWeapon == 0) {<BR> gunEmpty();<BR> } else if (weaponReady == 'on') {<BR> // put an X marker<BR> attachTarget(_xmouse, _ymouse);<BR> } else {<BR> // weapon not ready<BR> gunBuzz();<BR> }<BR>}<BR>function setCursor (mode) {<BR> if (mode == 'on') {<BR> if (weaponReady == 'on') {<BR> // if you are ready to fire, make cursor a target<BR> Mouse.hide();<BR> attachMovie('target', 'target', targetZ);<BR> startDrag ('target', true);<BR> }<BR> } else if (mode == 'off') {<BR> stopDrag ();<BR> removeMovieClip ('target');<BR> Mouse.show();<BR> } else {<BR> // not sure, check mode<BR> if (MouseIsOver == true) {<BR> setCursor('on');<BR> } else {<BR> setCursor('off');<BR> }<BR> }<BR>}<BR>function attachTarget (TargetX, TargetY) {<BR> // put a target X on the screen<BR> // <BR> // another X on the screen<BR> XsOnScreen##;<BR> // attach clip<BR> attachMovie('X', 'X'#XsOnScreen, XZ#XsOnScreen);<BR> eval('X'#XsOnScreen)._x = TargetX;<BR> eval('X'#XsOnScreen)._y = TargetY;<BR> // check to see if you've reached the limit<BR> if (XsOnScreen == XLimit[currentWeapon]) {<BR> // last one, let the action begin<BR> weaponReady = 'off';<BR> setCursor('off');<BR> startWeapon();<BR> }<BR>}<BR>function startWeapon() {<BR> if (currentWeapon == 1) {<BR> // *** WEAPON 1 ***<BR> attachMovie('laser','laser',bombZ);<BR> laser._x = random(rightScreen-leftScreen)#leftScreen#1;<BR> laser._y = (-1 * random(51))-20;<BR> } else if (currentWeapon == 2) {<BR> // *** WEAPON 2 ***<BR> attachMovie('dropPlane','dropPlane',planeZ);<BR> var z = random(2);<BR> if (z == 0) {<BR> dropPlane._x = 850;<BR> dropPlane.dir = 'left';<BR> } else {<BR> dropPlane._x = -300;<BR> dropPlane.dir = 'right';<BR> }<BR> dropPlane._y = 55;<BR> } else if (currentWeapon == 3) {<BR> // *** WEAPON 3 ***<BR> attachMovie('paratrooper','para',bombZ);<BR> para._x = random(rightScreen-leftScreen)#leftScreen#1;<BR> para._y = (-1 * random(51))-20;<BR> } else if (currentWeapon == 4) {<BR> // *** WEAPON 4 ***<BR> attachMovie('F16','F16',planeZ);<BR> var z = random(2);<BR> if (z == 0) {<BR> F16._x = 850;<BR> F16.dir = 'left';<BR> } else {<BR> F16._x = -300;<BR> F16.dir = 'right';<BR> }<BR> F16._y = 135;<BR> } else if (currentWeapon == 5) {<BR> // *** WEAPON 5 ***<BR> // mini-nuke<BR> attachMovie('F16','F16',planeZ);<BR> var z = random(2);<BR> if (z == 0) {<BR> F16._x = 850;<BR> F16.dir = 'left';<BR> } else {<BR> F16._x = -300;<BR> F16.dir = 'right';<BR> }<BR> F16._y = 135;<BR> }<BR>}<BR>function weaponDone() {<BR> // previous weapon is done, get ready<BR> clearTargets();<BR> weaponReady = 'on';<BR> setCursor('check');<BR>}<BR>function setMySlope(obj1, obj2) {<BR> // determine the slope between 2 objects<BR> var o2x = obj2._x;<BR> var o2y = obj2._y;<BR> var o1x = obj1._x;<BR> var o1y = obj1._y;<BR> //trace('o1x:' # o1x#' o1y:'#o1y#' o2x:'#o2x#' o2y:'#o2y);<BR> // slope<BR> var slopeX = (o1x - o2x);<BR> var slopeY = (o1y - o2y);<BR> //trace('slopex:' # (slopeX/slopeY)#' slopey:1');<BR> obj1.adjX = (slopeX/slopeY);<BR> obj1.adjY = 1;<BR>}<BR>function setMyAngle(obj1, obj2) {<BR> // calculate the angle<BR> var Radians = Math.atan2((obj2._y-obj1._y), (obj2._x-obj1._x)); <BR> var Degrees = Math.round (Radians * 180/Math.PI );<BR> //Trace('Deg:'#Degrees);<BR> obj1._rotation = Degrees;<BR>}<BR>function setMySpeed(obj1, num) {<BR> obj1.speed = weaponSpeed[num];<BR>}<BR>function clearTargets () {<BR> // get the Xs off the screen<BR> for (var z = 1; z[=XsOnScreen; z##) {<BR> eval('X'#z).removeMovieClip();<BR> }<BR> XsOnScreen = 0;<BR>}<BR>function gunEmpty () {<BR> // play sound, do nothing<BR> GlobalSound = new Sound();<BR> GlobalSound.attachSound('gunEmpty');<BR> GlobalSound.setVolume(50);<BR> GlobalSound.start();<BR>}<BR>function gunBuzz () {<BR> // play buzz, do nothing<BR> GlobalSound = new Sound();<BR>GlobalSound.attachSound('buzz');<BR> GlobalSound.setVolume(50);<BR> GlobalSound.start();<BR>}<BR>function isOffScreen (obj, offset) {<BR> // is an object offscreen?<BR> if ((obj._x ] (rightScreen-offset)) || (obj._x [ (leftScreen#offset))) {<BR> // too left or right<BR> return (true);<BR> }<BR> if (obj._y ] (bottomScreen - offset)) {<BR> // too low<BR> return (true);<BR> }<BR> // onscreen<BR> return (false);<BR>}<BR>function addExplosion (obj) {<BR> var x = obj._x;<BR> var y = obj._y;<BR> // put an explosion where obj is<BR> explosionsOnScreen##;<BR> attachMovie('explo', 'explo'#explosionsOnScreen, exploZ#explosionsOnScreen);<BR> eval('explo'#explosionsOnScreen)._x = x;<BR> eval('explo'#explosionsOnScreen)._y = y;<BR>}<BR>function isNearExplosion (obj) {<BR> if (explosionsOnScreen]0) {<BR> // test to see if you are near an explosion<BR> for (var z = 1; z[=explosionsOnScreen; z##) {<BR> if (((obj._x[=(eval('explo'#z)._x#exploNear)) AND (obj._x]=(eval('explo'#z)._x-exploNear))) AND ((obj._y[=(eval('explo'#z)._y#exploNear)) AND (obj._y]=(eval('explo'#z)._y-exploNear)))) {<BR> return (true);<BR> }<BR> }<BR> }<BR> return (false);<BR>}<BR>function addHole (obj) {<BR> var x = obj._x;<BR> var y = obj._y;<BR> if (holesOnScreen [ 3) {<BR> holesOnScreen##;<BR> }<BR> if (holeNum [ 3) {<BR> holeNum##;<BR> } else {<BR> holeNum = 1;<BR> }<BR> // first make sure old hole has purged all victims<BR> // before replacing it<BR> eval('hole'#holeNum).purgeVictims();<BR> // now put a hole where obj is<BR> // put an explosion where obj is<BR> attachMovie('hole', 'hole'#holeNum, holeZ#holeNum);<BR> eval('hole'#holeNum)._x = x;<BR> eval('hole'#holeNum)._y = y;<BR>}<BR>function killed (Ter, Vill, newTer) {<BR> // Terrorists killed<BR> TKilled #= Ter;<BR> if (newTer == 'Y') {<BR> score #= Ter * newTBonus;<BR> } else {<BR> score #= Ter * TBonus<BR> }<BR> // Villagers killed<BR> Vkilled #= Vill;<BR> score -= Vill * Vpenalty;<BR>}<BR>function IsPast (object1, object2, extra) {<BR> if (object1.dir == 'left') {<BR> if (object1._x [= (object2._x # extra)) {<BR> return (true);<BR> }<BR> } else {<BR> if (object1._x ]= (object2._x # extra)) {<BR> return (true);<BR> }<BR> }<BR> return (false);<BR>}<BR>function createVillager () {<BR> // time for a villager<BR> totalPeopleOnScreen##;<BR> nextMan##;<BR> var nname = 'V'#nextMan;<BR> attachMovie('Villager', nname, villagerZ#nextMan);<BR> eval(nname)._x = 500;<BR> eval(nname)._y = random(105)#1#160;<BR> eval(nname).gotoAndPlay('STAND');<BR> var terr = random(_root.terroristChance)#1;<BR> if (terr == 1) {<BR> terroristsOnScreen##;<BR> terroristArray.push(nname);<BR> eval(nname).Terrorist = true;<BR> eval(nname).lastMile = false;<BR> eval(nname).lastCave = 'NONE';<BR> eval(nname).original = true;<BR> eval(nname).gotoAndPlay('MAD');<BR> } else {<BR> eval(nname).Terrorist = false;<BR> villagersOnScreen##;<BR> villagerArray.push(nname);<BR> }<BR> totalPeopleArray.push(nname);<BR>}<BR>function isNearSandwich (obj) {<BR> if (sandwichesRemain]0) {<BR> // test to see if you are near a sandwich<BR> for (var z = 1; z[=3; z##) {<BR> var nname = eval('sandwich'#z);<BR> if (eval(nname).sandwich.falling == false) {<BR> if (((obj._x[=(eval(nname)._x#sandwichNear)) AND (obj._x]=(eval(nname)._x-sandwichNear))) AND ((obj._y[=(eval(nname)._y#sandwichNear)) AND (obj._y]=(eval(nname)._y-sandwichNear)))) {<BR> return (z);<BR> }<BR> }<BR> }<BR> }<BR> return (false);<BR>}<BR>function isNearHole (obj) {<BR> if (holesOnScreen]0) {<BR> // test to see if you are near a hole<BR> for (var z = 1; z[=holesOnScreen; z##) {<BR> var nname = 'hole'#z;<BR> if (((obj._x[=(eval(nname)._x#holeNear)) AND (obj._x]=(eval(nname)._x-holeNear))) AND ((obj._y[=(eval(nname)._y#holeNear)) AND (obj._y]=(eval(nname)._y-holeNear)))) {<BR> return (z);<BR> }<BR> }<BR> }<BR> return (false);<BR>}<BR>function isNearCave (obj) {<BR> if (caveArray.length]0) {<BR> // test to see if you are near a hole<BR> for (var z = 0; z[caveArray.length; z##) {<BR> var nname = caveArray[z];<BR> if (eval(obj).lastCave != nname) {<BR> // if its not the same cave the fella last went in<BR> if (eval(nname).busy == false) {<BR> // if the cave isn't already doing something<BR> if (((obj._x[=(eval(nname)._x#caveNear)) AND (obj._x]=(eval(nname)._x-caveNear))) AND ((obj._y[=(eval(nname)._y#caveNear)) AND (obj._y]=(eval(nname)._y-caveNear)))) {<BR> return (z);<BR> }<BR> }<BR> }<BR> }<BR> }<BR> return (false);<BR>}<BR>function isNearDeath (obj) {<BR> if (deadOnScreen]0) {<BR> // test to see if you are near a hole<BR> for (var z = 0; z[=deadOnScreen; z##) {<BR> var nname = deathArray[z-1];<BR> if (nname.indexOf('Slot') != -1) {<BR> // its a house, piss people off 2wice as far<BR> var deadMod = deadNear*2;<BR> if (((obj._x[=(eval(nname)._x#deadMod)) AND (obj._x]=(eval(nname)._x-deadMod))) AND ((obj._y[=(eval(nname)._y#deadMod)) AND (obj._y]=(eval(nname)._y-deadMod)))) {<BR> return (true);<BR> }<BR> } else if (eval(nname).Terrorist == false) {<BR> // its a person<BR> // if an innocent, check em<BR> var deadMod = deadNear;<BR> if (((obj._x[=(eval(nname)._x#deadMod)) AND (obj._x]=(eval(nname)._x-deadMod))) AND ((obj._y[=(eval(nname)._y#deadMod)) AND (obj._y]=(eval(nname)._y-deadMod)))) {<BR> return (true);<BR> }<BR> }<BR> }<BR> }<BR> return (false);<BR>}<BR>function villagerScoreAdjust (obj) {<BR> // <BR> if (obj.Terrorist == true) {<BR> if (obj.original == true) {<BR> // if it is an original terrorist<BR> // update the killed marker<BR> killed(1, 0, 'N');<BR> obj.scoreAdjPos = '#'#TBonus;<BR> obj.scoreAdjNeg = '';<BR> // <BR> } else {<BR> // just a wanna-be<BR> killed(1, 0, 'Y');<BR> _root.score #= newTBonus;<BR> obj.scoreAdjPos = '#'#newTBonus;<BR> obj.scoreAdjNeg = '';<BR> }<BR> } else {<BR> // <BR> killed(0, 1);<BR> obj.scoreAdjNeg = -1*VPenalty;<BR> obj.scoreAdjPos = '';<BR> // <BR> }<BR>}<BR>function villagerArrayAdjust (obj) {<BR> // <BR> if (obj.Terrorist == true) {<BR> if (obj.original == true) {<BR> // terrorist<BR> _root.terroristsRemaining--;<BR> // <BR> }<BR> delArray(terroristArray, obj._name);<BR> terroristsOnScreen--;<BR> } else {<BR> // <BR> delArray(villagerArray, obj._name);<BR> villagersOnScreen--;<BR> // <BR> }<BR> // <BR> delArray(totalPeopleArray, obj._name);<BR> totalPeopleOnScreen--;<BR>}<BR>function delArray (arrayName, item) {<BR> var u = rmArray(arrayName, item);<BR> if (u == 'poop') {<BR> // <BR> } else {<BR> arrayName.splice(u, 1);<BR> }<BR> // <BR>}<BR>function rmArray (arrayName, item) {<BR> for (var z = 0; z[arrayName.length; z##) {<BR> if (arrayName[z] == item) {<BR> return (z);<BR> }<BR> }<BR> return ('poop');<BR>}<BR>function angerTerrorists () {<BR> // <BR> for (var z = 0; z[terroristArray.length; z##) {<BR> if (eval(terroristArray[z]).limbo == false) {<BR> // if not in limbo<BR> eval(terroristArray[z]).gotoAndPlay('LAUNCHER');<BR> }<BR> }<BR> prarieDoggin();<BR>}<BR>function villagerEmerge () {<BR> // pull a little fellow out of a cave<BR> var z = random(caveArray.length);<BR> // randomly pick a cave<BR> if (eval(caveArray[z]).busy == false) {<BR> // if not busy, go for it<BR> eval(caveArray[z]).gotoAndPlay('MAN LEAVE');<BR> }<BR>}<BR>function prarieDoggin () {<BR> var x = 0;<BR> // starting cave in array<BR> var randArray = caveArray.slice(0); // extract all elements<BR> randomizeArray(randArray);<BR> // get any underground terrorists to poke<BR> for (var z = 0; z[undergroundPeople; z##) {<BR> if (eval(undergroundPeopleArray[z]).Terrorist == true) {<BR> if (eval(randArray[x]).busy == false) {<BR> eval(randArray[x]).gotoAndPlay('PRARIEDOG');<BR> x##;<BR> if (x](randArray.length-1)) {<BR> // no more caves<BR> <BR>eak;<BR> }<BR> }<BR> }<BR> }<BR>}<BR>function bunkerBlow () {<BR> // blow anyone underground up to number of caves, whichever smaller<BR> if (undergroundPeople[caveArray.length) {<BR> var min = undergroundPeople;<BR> } else {<BR> var min = caveArray.length;<BR> }<BR> var randArray = caveArray.slice(0); // extract all elements<BR> randomizeArray(randArray);<BR> for (var z = 0; z[min; z##) {<BR> eval(randArray[z]).gotoAndPlay('BLOWOUT');<BR> }<BR>}<BR>function randomizeArray(array) {<BR> var q = array.length;<BR> var oldArray = new Array();<BR> oldArray = array.slice(0); // extract elements<BR> var tmpArray = new Array();<BR> array.splice(0); // delete all elements<BR> for (z=0; z[q; z##) {<BR> var x = random(oldArray.length);<BR> array.push(oldArray[x]);<BR> oldArray.splice(x,1);<BR> }<BR>}<BR>function randomEvent() {<BR> // set a random event in motion<BR> var z = random(5)#1;<BR> if (z [= 3) {<BR> attachMovie('special','special',_root.specialZ);<BR> special.special = z;<BR> special._x = -50;<BR> special._y = 320;<BR> } else {<BR> // bomb!<BR> attachMovie('carpet','special',_root.specialZ);<BR> carpet._y = -100;<BR> if (z == 4) {<BR> // real bombs<BR> special.special = 'bomb';<BR> } else if (z == 5) {<BR> // money drop!<BR> special.special = 'money';<BR> }<BR> }<BR>}<BR>function everybodyHappy() {<BR> // convert all terrorists<BR> while (terroristArray.length ] 0) {<BR> var nname = terroristArray.pop();<BR> // they arent a terrorist now<BR> eval(nname).Terrorist = false;<BR> _root.terroristsOnScreen--;<BR> _root.villagerArray.push(nname);<BR> _root.villagersOnScreen##;<BR> //<BR> if (eval(nname).limbo == false) {<BR> eval(nname).gotoAndPlay('EAT');<BR> }<BR> // else stay in limbo<BR> }<BR>}<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>Standard Disclaimer<BR>Standard Disclaimer.This product is meant for educational purposes only. Any resemblance to real persons, living or dead is purely coincidental. Void where prohibited. Some assembly required. List each check separately by bank number. Batteries not included. Contents may settle during shipment. Use only as directed. No other warranty expressed or implied. Do not use while operating a motor vehicle or heavy equipment. Postage will be paid by addressee. Subject to CAB approval. This is not an offer to sell securities. Apply only to affected area. May be too intense for some viewers. Do not stamp. Use other side for additional listings. For recreational use only. Do not disturb. All models over 18 years of age. If condition persists, consult your physician. No user-serviceable parts inside. Freshest if eaten before date on carton. Subject to change without notice. Times approximate. Simulated picture. No postage necessary if mailed in the United States. Please remain seated until the ride has come to a complete stop. Breaking seal constitutes acceptance of agreement. For off-road use only. As seen on TV. One size fits all. Many suitcases look alike. Contains a substantial amount of non-tobacco ingredients. Apply only to affected area. Article is provided 'as is' without any warranties. At participating locations only. As seen on TV. Action figures sold separately. Add toner. All rights reserved. Allow four to six weeks for delivery. An equal opportunity web page. Any resemblance to real persons, living or dead, is purely coincidental. Avoid contact with eyes and skin and avoid inhaling fumes. Avoid extreme temperatures and store in a cool dry place. Be sure each item is properly endorsed. Batteries not included. Breaking seal constitutes acceptance of agreement. Call toll free before digging. Closed-captioned for the hearing impaired. Caution. Coffee is very hot. Do not attempt to drive and drink at the same time. We will not settle out of court for a million dollars if you are an idiot and spill coffee on yourself and then sue us. We will counter-sue. And we will win. Because we are McDonalds, damnit, and we are an American staple. Colors may, in time, fade. We have sent the forms which seem right for you. Slippery when wet. For office use only. Not affiliated with the American Red Cross. No manatees, small fur-bearing animals or trees were harmed in the production of this page. Only organically-grown electrons were used. Any similarity to person or persons living or dead is purely coincidental and insufficient grounds for legal prosecution. Stiff penalties for early withdrawal. Drop in any mailbox. Edited for television. Keep cool; process promptly. Post office will not deliver without postage. List was current at time of printing. Return to sender, no forwarding order on file, unable to forward. Not responsible for direct, indirect, incidental or consequential damages resulting from any defect, error or failure to perform. At participating locations only. Not the Beatles. The material on this page may be offensive and frightening to small children, the faint of heart, overly religious individuals, uptight individuals, democrats, Haitians, Mormons, Lesbians, Animal lovers, the socially retarded, carnival workers and adult film stars, please use caution when operating. Studies have shown viewing this page causes cancer in laboratory rats. Contains a substantial amount of non-tobacco ingredients. Contestants have been briefed on some questions before the show. All models over 18 years of age. Disclaimer does not cover misuse, accident, lightning, flood, tornado, tsunami, volcanic eruption, earthquake, hurricanes and other Acts of God, neglect, damage from improper reading, incorrect line voltage, improper or unauthorized reading, broken antenna or marred cabinet, missing or altered serial numbers, electromagnetic radiation from nuclear blasts, sonic boom vibrations, customer adjustments that are not covered in this list, and incidents owing to an airplane crash, ship sinking or taking on water, motor vehicle crashing, dropping the item, falling rocks, leaky roof, broken glass, mud slides, forest fire, or projectile (which can include, but not be limited to, arrows, bullets, shot, BB's, shrapnel, lasers, napalm, torpedoes, or emissions of X-rays, Alpha, Beta and Gamma rays, knives, stones, etc.) Do not disturb. Do not fold, spindle or mutilate. Do not place near a flammable or magnetic source. Do not puncture, incinerate, or store above 120 degrees Fahrenheit. Do not remove this disclaimer under penalty of law. Do not taunt Happy Fun Ball! Do not try this at home. Do not use while operating a motor vehicle or heavy equipment. Do not write below this line. This is for entertainment purposes ONLY! Any advice given should be taken with a MAJOR grain of salt. I am not responsible for anything that may happen from using this problem solving system. I am not a professional, I have no training, I'm not even particularly good at handling my own relationships. So this is really just a joke. Don't believe everything that you read. Your mileage may vary. Each dealer negotiates its own prices. Please keep your hands in the car at all times. Do not tap on glass. Do not eat anything that has been on the floor for more than 10 seconds. Power tools are not an effective cure for headaches. If this were an actual emergency, this broadcast would be followed by official information and instructions. Keep your hands to yourself. Do not point. Please do not feed the animals. High Voltage, keep out! Contents under pressure, may explode. Not to be taken internally. Wait at least 1/2 hour after eating before using this. Penalty for private use. See label for sequence. Substantial penalty for early withdrawal. Do not write below this line. Falling rock. Lost ticket pays maximum rate. Your canceled check is your receipt. Add toner. Place stamp here. Avoid contact with skin. Sanitized for your protection. Be sure each item is properly endorsed. Sign here without admitting guilt. Slightly higher west of the Mississippi. Employees and their families are not eligible. Beware of dog. Contestants have been briefed on some questions before the show. Limited time offer, call now to ensure prompt delivery. You must be present to win. No passes accepted for this engagement. No purchase necessary. Processed at location stamped in code at top of carton. Shading within a garment may occur. Use only in a well-ventilated area. Keep away from fire or flames. Replace with same type. Approved for veterans. Booths for two or more. Check here if tax deductible. Some equipment shown is optional. Price does not include taxes. No Canadian coins. Not recommended for children. Pre-recorded for this time zone. Reproduction strictly prohibited. No solicitors. No alcohol, dogs or horses. No anchovies unless otherwise specified. Restaurant package, not for resale. List at least two alternate dates. First pull up, then pull down. Call toll free number before digging. Driver does not carry cash. Some of the trademarks mentioned in this product appear for identification purposes only. Objects in mirror may be closer than they appear. Record additional transactions on back of previous stub. Do not fold, spindle or mutilate. No transfers issued until the bus comes to a complete stop. Package sold by weight, not volume. Your mileage may vary.<BR><BR>Please do not sue me.<BR><BR>This supersedes all previous notices.<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>Copyright 2002<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>Impeach Bush!<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>";
stop();
Instance of Symbol 62 MovieClip "scrollWatcher" in Frame 32
onClipEvent (enterFrame) {
if (_parent.TEXT.scroll < _parent.TEXT.maxscroll) {
_parent.TEXT.scroll++;
}
}
Instance of Symbol 449 MovieClip "audioIcon" in Frame 32
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.whatevah.songPlaying == false) {
this._visible = true;
} else {
this._visible = false;
}
}
Frame 38
stopAllSounds();
Frame 70
stop();
Symbol 27 MovieClip Frame 5
gotoAndPlay (1);
Symbol 49 MovieClip Frame 15
_root.removeMe(_parent);
stop();
Symbol 59 MovieClip Frame 1
if (_parent._x >= _root.para._x) {
this._xscale = -100;
} else {
this._xscale = 100;
}
Symbol 59 MovieClip Frame 9
_root.para.blow = true;
_parent.gotoAndStop("MAD");
Symbol 60 MovieClip [cave] Frame 1
busy = false;
stop();
Symbol 60 MovieClip [cave] Frame 4
busy = true;
if (slot >= 6) {
gotoAndPlay (40);
}
Symbol 60 MovieClip [cave] Frame 15
gotoAndStop (1);
Symbol 60 MovieClip [cave] Frame 19
busy = true;
vill = _root.undergroundPeopleArray[0];
_root.delArray(_root.undergroundPeopleArray, vill);
_root.undergroundPeople--;
eval ("_root." + vill)._x = this._x;
if (slot >= 6) {
eval ("_root." + vill)._y = this._y - 30;
gotoAndPlay (55);
} else {
eval ("_root." + vill)._y = this._y + 30;
}
Symbol 60 MovieClip [cave] Frame 31
eval ("_root." + vill)._visible = true;
eval ("_root." + vill).gotoAndPlay("STAND");
eval ("_root." + vill).lastCave = this._name;
gotoAndStop (1);
Symbol 60 MovieClip [cave] Frame 50
gotoAndStop (1);
Symbol 60 MovieClip [cave] Frame 66
eval ("_root." + vill)._visible = true;
eval ("_root." + vill).gotoAndPlay("STAND");
eval ("_root." + vill).lastCave = this._name;
gotoAndStop (1);
Symbol 60 MovieClip [cave] Frame 75
busy = true;
mine = _root.undergroundPeopleArray[0];
_root.delArray(_root.undergroundPeopleArray, mine);
_root.undergroundPeople--;
eval ("_root." + mine)._x = this._x;
eval ("_root." + mine)._y = this._y - 78;
Symbol 60 MovieClip [cave] Frame 84
eval ("_root." + mine)._visible = true;
eval ("_root." + mine).gotoAndPlay("EXPLODE");
Symbol 60 MovieClip [cave] Frame 86
function Done() {
gotoAndStop (1);
}
stop();
Symbol 60 MovieClip [cave] Frame 100
busy = true;
Symbol 60 MovieClip [cave] Frame 111
_root.para.blow = true;
gotoAndStop (1);
Symbol 66 MovieClip Frame 4
gotoAndPlay (1);
Symbol 84 MovieClip Frame 15
if (_parent.lastMile == false) {
_parent.gotoAndPlay("STAND");
} else {
_parent.gotoAndStop("WALK LEFT");
}
stop();
Symbol 93 MovieClip [Villager] Frame 1
limbo = false;
function manOffScreen() {
_root.delArray(_root.totalPeopleArray, this._name);
_root.totalPeopleOnScreen--;
if (Terrorist == true) {
_root.nukescore.play();
_root.delArray(_root.terroristArray, this._name);
_root.terroristsOnScreen--;
_root.removeMe(this);
} else {
_root.delArray(_root.villagerArray, this._name);
_root.villagersOnScreen--;
_root.removeMe(this);
}
}
function setMyDirection(dir) {
var vs = _root.villagerSpeed[_root.currentEWD];
if (dir == "lefter") {
xAdj = -1 * vs;
gotoAndStop (10);
} else if (dir == "higher") {
var z = (rand(2) + 1);
if (z == 1) {
xAdj = 0;
yAdj = -1 * ((random(101) * 0.01) * vs);
gotoAndStop (20);
} else {
yAdj = -1 * ((random(101) * 0.01) * vs);
}
} else if (dir == "lower") {
if (xAdj == 0) {
var x = (random(2) + 1);
if (x == 1) {
xAdj = -1 * vs;
gotoAndStop (10);
} else if (x == 2) {
xAdj = 1 * vs;
gotoAndStop (15);
}
yAdj = (random(101) * 0.01) * vs;
} else {
yAdj = (random(101) * 0.01) * vs;
}
} else if (dir == "rand") {
var x = (random(3) + 1);
if (x == 1) {
xAdj = 0;
yAdj = -1 * vs;
gotoAndStop (20);
} else if (x == 2) {
xAdj = -1 * vs;
yAdj = ((random(201) - 100) * 0.01) * vs;
gotoAndStop (10);
} else if (x == 3) {
xAdj = 1 * vs;
yAdj = ((random(201) - 100) * 0.01) * vs;
gotoAndStop (15);
}
}
}
Instance of Symbol 62 MovieClip in Symbol 93 MovieClip [Villager] Frame 1
onClipEvent (enterFrame) {
if (_root.isNearExplosion(_parent)) {
_parent.gotoAndPlay("DEAD");
}
z = _root.isNearDeath(_parent);
if (z) {
if (_parent.Terrorist == true) {
} else {
_parent.Terrorist = true;
_root.terroristArray.push(_parent._name);
_root.terroristsOnScreen++;
_root.delArray.push(_root.villagersArray, _parent._name);
_root.villagersOnScreen--;
}
_parent.gotoAndPlay("MAD");
}
}
Symbol 93 MovieClip [Villager] Frame 5
limbo = false;
setMyDirection("rand");
stop();
Symbol 93 MovieClip [Villager] Frame 10
limbo = false;
man.play();
stop();
Instance of Symbol 62 MovieClip in Symbol 93 MovieClip [Villager] Frame 10
onClipEvent (enterFrame) {
if (_root.isNearExplosion(_parent)) {
_parent.gotoAndPlay("DEAD");
}
z = _root.isNearSandwich(_parent);
if (z) {
if (eval ("_root.sandwich" + z).explosive == true) {
_root.addExplosion(eval ("_root.sandwich" + z));
} else {
munch = new Sound();
var x = random(2);
if (x == 0) {
munch.attachSound("delicious");
} else {
munch.attachSound("nice");
}
munch.start();
_root.removeMe("_root.sandwich" + z);
_root.sandwichesRemain--;
if (_parent.Terrorist == true) {
_parent.Terrorist = false;
_root.delArray(_root.terroristArray, _parent._name);
_root.terroristsOnScreen--;
_root.villagerArray.push(_parent._name);
_root.villagersOnScreen++;
_parent.gotoAndPlay("EAT");
} else {
_parent.gotoAndPlay("STAND");
}
}
}
z = _root.isNearHole(_parent);
if (z) {
_parent._visible = false;
eval ("_root.hole" + z).villagerObjArray.push(_parent);
eval ("_root.hole" + z).gotoAndPlay("FALL");
_parent.gotoAndStop("LIMBO");
}
if (_root.isNearDeath(_parent)) {
if (_parent.Terrorist == true) {
} else {
_parent.Terrorist = true;
_root.terroristArray.push(_parent._name);
_root.terroristsOnScreen++;
_root.delArray.push(_root.villagersArray, _parent._name);
_root.villagersOnScreen--;
}
_parent.gotoAndPlay("MAD");
}
z = _root.isNearCave(_parent);
if (z) {
_parent._visible = false;
_root.undergroundPeopleArray.push(_parent._name);
_root.undergroundPeople++;
eval ("_root." + _root.caveArray[z]).gotoAndPlay("MAN ENTER");
_parent.gotoAndStop("LIMBO");
}
}
Instance of Symbol 62 MovieClip in Symbol 93 MovieClip [Villager] Frame 10
onClipEvent (enterFrame) {
_parent._x = _parent._x + _parent.xAdj;
_parent._y = _parent._y + _parent.yAdj;
var x = _parent._x;
var y = _parent._y;
if (220 >= x) {
yLimBottom = 327;
} else {
yLimBottom = 327 - (0.217 * (x - 220));
}
var yLimTop = (260 - (0.215 * (x - 40)));
if (y >= yLimBottom) {
_parent.setMyDirection("higher");
} else if (yLimTop >= y) {
_parent.setMyDirection("lower");
} else if (x >= 500) {
_parent.setMyDirection("lefter");
} else if (((_root.lastMileX >= x) && (_parent.Terrorist == true)) && (_parent.lastMile == false)) {
_parent.lastMile = true;
_parent.setMyDirection("lefter");
_parent.gotoAndPlay("MAD");
} else if (40 >= x) {
_parent.manOffScreen();
}
var z = (random(_root.walkRandomizer[_root.currentEWD]) + 1);
if (z == 1) {
_parent.setMyDirection("rand");
}
}
Symbol 93 MovieClip [Villager] Frame 15
limbo = false;
man.play();
stop();
Symbol 93 MovieClip [Villager] Frame 20
limbo = false;
man.play();
stop();
Symbol 93 MovieClip [Villager] Frame 25
limbo = false;
dying = true;
play();
Symbol 93 MovieClip [Villager] Frame 31
_root.villagerScoreAdjust(this);
Symbol 93 MovieClip [Villager] Frame 40
_root.villagerArrayAdjust(this);
_root.removeMe(this);
stop();
Symbol 93 MovieClip [Villager] Frame 50
limbo = false;
man.play();
stop();
Symbol 93 MovieClip [Villager] Frame 55
limbo = false;
man.play();
stop();
Symbol 93 MovieClip [Villager] Frame 58
limbo = true;
Symbol 93 MovieClip [Villager] Frame 59
limbo = false;
dying = true;
this._visible = true;
_root.villagerScoreAdjust(this);
_root.deathArray.push(this._name);
_root.deadOnScreen++;
play();
Symbol 93 MovieClip [Villager] Frame 73
_root.villagerArrayAdjust(this);
_root.delArray(_root.deathArray, this._name);
_root.deadOnScreen--;
_root.removeMe(this);
stop();
Symbol 93 MovieClip [Villager] Frame 80
limbo = false;
Instance of Symbol 62 MovieClip in Symbol 93 MovieClip [Villager] Frame 80
onClipEvent (enterFrame) {
if (_root.isNearExplosion(_parent)) {
_parent.gotoAndPlay("DEAD");
}
}
Symbol 93 MovieClip [Villager] Frame 86
if (original == true) {
scoreAdjPos = "+" + _root.convertTerroristBonus;
_root.score = _root.score + _root.convertTerroristBonus;
} else {
scoreAdjPos = "";
}
Symbol 93 MovieClip [Villager] Frame 105
if (original == true) {
_root.terroristsRemaining--;
}
original = false;
setMyDirection("rand");
stop();
Symbol 97 MovieClip [target] Frame 1
sandCount = "";
stop();
Instance of Symbol 95 MovieClip in Symbol 97 MovieClip [target] Frame 1
onClipEvent (enterFrame) {
if (_root.currentWeapon == 2) {
_parent.sandCount = 3 - _root.XsOnScreen;
} else {
_parent.sandCount = "";
}
}
Instance of Symbol 98 MovieClip "missile" in Symbol 99 MovieClip [laser] Frame 1
onClipEvent (load) {
_root.setMySlope(_parent, _root.X1);
_root.setMyAngle(_parent, _root.X1);
_root.setMySpeed(this, 1);
adjX = _parent.adjX;
adjY = _parent.adjY;
var tank = (random(5) / 10);
if (adjX < 0) {
dir = tank;
} else {
dir = -tank;
}
Ylim = _root.X1._y + (random(101) - 50);
launchSound = new Sound();
launchSound.attachSound("launch");
launchSound.setVolume(70);
launchSound.start();
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (adjX * speed);
_parent._y = _parent._y + (adjY * speed);
if (_parent._y >= (Ylim - 70)) {
adjX = adjX + dir;
_parent._rotation = _parent._rotation + (dir * -10);
}
if ((_parent._y >= Ylim) || (_root.isOffScreen(_parent, 5))) {
_root.addExplosion(_parent);
_root.weaponDone();
_root.removeMe(_parent);
}
}
Symbol 105 MovieClip [explo] Frame 4
_root.explosionsOnScreen--;
_root.removeMe(this);
stop();
Instance of Symbol 107 MovieClip "plane" in Symbol 108 MovieClip [dropPlane] Frame 1
onClipEvent (load) {
_root.setMySpeed(this, 2);
planeSound = new Sound();
planeSound.attachSound("flyover");
planeSound.setVolume(80);
planeSound.start();
drop1 = false;
drop2 = false;
drop3 = false;
if (_parent.dir == "right") {
this._xscale = -100;
}
}
onClipEvent (enterFrame) {
if (_parent.dir == "left") {
_parent._x = _parent._x - speed;
} else {
_parent._x = _parent._x + speed;
}
if ((drop1 == false) && (_root.IsPast(_parent, _root.X1, 0))) {
_root.attachMovie("sandwich", "sandwich1", _root.sandZ + 1);
_root.sandwich1._x = _parent._x;
_root.sandwich1._y = _parent._y;
_root.sandwich1.myY = _root.X1._y;
_root.sandwich1.myNum = 1;
drop1 = true;
}
if ((drop2 == false) && (_root.IsPast(_parent, _root.X2, 0))) {
_root.attachMovie("sandwich", "sandwich2", _root.sandZ + 2);
_root.sandwich2._x = _parent._x;
_root.sandwich2._y = _parent._y;
_root.sandwich2.myY = _root.X2._y;
_root.sandwich2.myNum = 2;
drop2 = true;
}
if ((drop3 == false) && (_root.IsPast(_parent, _root.X3, 0))) {
_root.attachMovie("sandwich", "sandwich3", _root.sandZ + 3);
_root.sandwich3._x = _parent._x;
_root.sandwich3._y = _parent._y;
_root.sandwich3.myY = _root.X3._y;
_root.sandwich3.myNum = 3;
drop3 = true;
}
if (((drop1 == true) && (drop2 == true)) && (drop3 == true)) {
if (_root.isOffScreen(_parent)) {
_root.setWeapon(0);
_root.weaponReady = "on";
_root.removeMe(_parent);
}
}
}
Instance of Symbol 110 MovieClip "sandwich" in Symbol 111 MovieClip [sandwich] Frame 1
onClipEvent (load) {
falling = true;
_parent.explosive = random(2);
}
onClipEvent (enterFrame) {
if (falling == true) {
if (_parent._y < _parent.myY) {
_parent._y = _parent._y + _root.sandwichSpeed;
} else {
removeMovieClip("_root.X" + _parent.myNum);
_root.sandwichesRemain++;
squish = new Sound();
squish.attachSound("splooge");
squish.start();
falling = false;
}
} else if (_root.isNearExplosion(_parent)) {
_root.sandwichesRemain--;
_root.removeMe(_parent);
}
}
Symbol 126 MovieClip [house] Frame 1
stop();
Instance of Symbol 124 MovieClip "h" in Symbol 126 MovieClip [house] Frame 1
onClipEvent (enterFrame) {
if (_root.isNearExplosion(_parent)) {
_root.housesOnScreen--;
_root.attachMovie("smoke", "smoke", 7001);
_root.smoke._x = _parent._x;
_root.smoke._y = _parent._y;
_parent.gotoAndPlay("DESTROY");
}
}
Symbol 126 MovieClip [house] Frame 10
_root.killed(0, _root.killedPerHouse);
scoreAdjNeg = -1 * ((_root.VPenalty * _root.killedPerHouse) + _root.housePenalty);
_root.deathArray.push(this._name);
_root.deadOnScreen++;
Symbol 126 MovieClip [house] Frame 18
_root.delArray(_root.deathArray, this._name);
_root.deadOnScreen--;
_root.removeMe(this);
Symbol 130 MovieClip [paratrooper] Frame 1
stop();
Instance of Symbol 128 MovieClip in Symbol 130 MovieClip [paratrooper] Frame 1
onClipEvent (load) {
_root.setMySlope(_parent, _root.X1);
_root.setMySpeed(this, 3);
Ylim = _root.X1._y;
adjX = _parent.adjX;
adjY = _parent.adjY;
taunt = false;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (adjX * speed);
_parent._y = _parent._y + (adjY * speed);
if ((_parent._y >= _root.Ytaunt) && (taunt == false)) {
taunt = true;
_root.angerTerrorists();
}
if (_parent._y >= Ylim) {
_parent.gotoAndPlay("SQUISH");
}
if (_parent.blow == true) {
_root.addExplosion(_parent);
_parent.gotoAndPlay("SQUISH");
}
}
Symbol 130 MovieClip [paratrooper] Frame 5
Symbol 130 MovieClip [paratrooper] Frame 13
_root.weaponDone();
_root.removeMe(this);
stop();
Instance of Symbol 137 MovieClip "Fmov" in Symbol 138 MovieClip [F16] Frame 1
onClipEvent (load) {
_root.setMySpeed(this, 4);
planeSound = new Sound();
planeSound.attachSound("jetpass");
planeSound.setVolume(80);
planeSound.start();
drop1 = false;
releaseXDist = 100;
if (_parent.dir == "right") {
_parent._xscale = -100;
releaseXDist = releaseXDist * -1;
}
}
onClipEvent (enterFrame) {
if (_parent.dir == "left") {
_parent._x = _parent._x - speed;
} else {
_parent._x = _parent._x + speed;
}
_parent._y = _parent._y - int(speed / 8);
if ((drop1 == false) && (_root.IsPast(_parent, _root.X1, releaseXDist))) {
if (_root.currentWeapon == 4) {
_root.attachMovie("bunkerBuster", "bunk1", _root.bombZ);
} else {
_root.attachMovie("mininuke", "bunk1", _root.bombZ);
_root.bunk1.nuker = true;
}
_root.bunk1._x = _parent._x;
_root.bunk1._y = _parent._y - 10;
_parent.bunkOnPlane._visible = false;
drop1 = true;
}
if (drop1 == true) {
if (_root.isOffScreen(_parent)) {
_root.removeMe(_parent);
}
}
}
Instance of Symbol 62 MovieClip in Symbol 146 MovieClip [mininuke] Frame 1
onClipEvent (load) {
_root.setMySlope(_parent, _root.X1);
speed = 15;
adjX = _parent.adjX;
adjY = _parent.adjY;
if (adjX < 0) {
_parent._xscale = -100;
}
Ylim = _root.X1._y;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (adjX * speed);
_parent._y = _parent._y + (adjY * speed);
if (_parent._y >= Ylim) {
_root.NUKE = true;
_parent.gotoAndPlay("NUKE");
}
}
Symbol 146 MovieClip [mininuke] Frame 5
this._xscale = 100;
stop();
Symbol 146 MovieClip [mininuke] Frame 15
_root.specialSound.stop();
_root.specialSoundNoPlay = true;
_root.X1._visible = false;
_root.score = _root.score - 1000;
_root.killed(0, 200);
Symbol 146 MovieClip [mininuke] Frame 33
_root.nukeScreen();
Symbol 146 MovieClip [mininuke] Frame 75
_root.fadeToBlack.play();
Symbol 146 MovieClip [mininuke] Frame 80
_root.specialSoundNoPlay = false;
_root.removeMe(this);
stop();
Instance of Symbol 62 MovieClip in Symbol 157 MovieClip [bunkerBuster] Frame 1
onClipEvent (load) {
_root.setMySlope(_parent, _root.X1);
speed = 15;
adjX = _parent.adjX;
adjY = _parent.adjY;
if (adjX < 0) {
_parent._xscale = -100;
}
Ylim = _root.X1._y;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + (adjX * speed);
_parent._y = _parent._y + (adjY * speed);
if (_parent._y >= Ylim) {
_parent.gotoAndPlay("DRILL");
}
}
Symbol 157 MovieClip [bunkerBuster] Frame 5
stop();
Symbol 157 MovieClip [bunkerBuster] Frame 15
_root.X1._visible = false;
Symbol 157 MovieClip [bunkerBuster] Frame 22
_root.addExplosion(this);
_root.addHole(this);
_root.bunkerBlow();
Symbol 157 MovieClip [bunkerBuster] Frame 33
_root.weaponDone();
_root.removeMe(this);
stop();
Symbol 162 MovieClip [hole] Frame 1
villagerObjArray = new Array();
stop();
function purgeVictims() {
var z = 0;
while (z < villagerObjArray.length) {
eval (villagerObjArray[z]).gotoAndPlay("DEAD");
z++;
}
}
Symbol 162 MovieClip [hole] Frame 37
purgeVictims();
Symbol 162 MovieClip [hole] Frame 42
_root.removeMe(this);
stop();
Symbol 165 MovieClip [carpet] Frame 29
stop();
Instance of Symbol 164 MovieClip in Symbol 165 MovieClip [carpet] Frame 29
onClipEvent (load) {
speed = 60;
bombNum = 0;
_root.bombsOnScreen = 0;
var a = random(2);
if (a == 0) {
x1 = _root.carpet1;
x2 = _root.carpet2;
} else {
x1 = _root.carpet2;
x2 = _root.carpet1;
}
_parent._x = x1;
}
onClipEvent (enterFrame) {
bombNum++;
_root.bombsOnScreen++;
_root.attachMovie(_parent.special, "bomb" + bombNum, _root.specialZ + bombNum);
eval ("_root.bomb" + bombNum)._x = _parent._x;
eval ("_root.bomb" + bombNum)._y = _parent._y;
var a = random(81);
eval ("_root.bomb" + bombNum)._y = eval ("_root.bomb" + bombNum)._y + a;
eval ("_root.bomb" + bombNum).YLim = a + 220;
if (x1 < x2) {
_parent._x = _parent._x + speed;
if (_parent._x >= x2) {
_root.removeMe(_parent);
}
} else {
_parent._x = _parent._x - speed;
if (x2 >= _parent._x) {
_root.removeMe(_parent);
}
}
play();
}
Symbol 165 MovieClip [carpet] Frame 35
gotoAndStop (29);
Instance of Symbol 170 MovieClip "fan" in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
play();
}
Instance of Symbol 172 MovieClip "bomb" in Symbol 173 MovieClip [bomb] Frame 1
onClipEvent (load) {
if (_root.bombsOnScreen == 1) {
_root.specialBanner.gotoAndPlay("BOMBDROP");
}
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + 10;
if (_parent._y >= _parent.YLim) {
_root.addExplosion(_parent);
_root.bombsOnScreen--;
if (_root.bombsOnScreen == 0) {
_root.weaponDone();
}
_root.removeMe(_parent);
}
}
Symbol 198 MovieClip Frame 9
stop();
Symbol 204 MovieClip [special] Frame 1
_root.specialSound.stop();
gotoAndStop("SPECIAL" + special);
Symbol 204 MovieClip [special] Frame 2
stop();
if (_root.specialSoundNoPlay != true) {
_root.specialSound = new Sound();
_root.specialSound.attachSound("truck");
_root.specialSound.start();
}
Instance of Symbol 62 MovieClip in Symbol 204 MovieClip [special] Frame 2
onClipEvent (enterFrame) {
if (_root.isNearExplosion(_parent, "Y")) {
_root.specialSound.stop();
_parent.gotoAndStop("DEATH");
}
z = _root.isNearSandwich(_parent, "Y");
if (z) {
if (eval ("_root.sandwich" + z).explosive == true) {
_root.addExplosion(eval ("_root.sandwich" + z));
}
}
z = _root.isNearHole(_parent, "Y");
if (z) {
_root.specialSound.stop();
_parent.gotoAndPlay("DEATH");
}
_parent._x = _parent._x + _root.specialXSpeed;
_parent._y = _parent._y + _root.specialYSpeed;
if (_parent._x >= 2000) {
_root.specialSound.stop();
_root.removeMe(_parent);
}
}
Symbol 204 MovieClip [special] Frame 3
stop();
if (_root.specialSoundNoPlay != true) {
_root.specialSound = new Sound();
_root.specialSound.attachSound("canada");
_root.specialSound.start();
}
Symbol 204 MovieClip [special] Frame 4
stop();
if (_root.specialSoundNoPlay != true) {
_root.specialSound = new Sound();
_root.specialSound.attachSound("wedding");
_root.specialSound.start();
}
Symbol 204 MovieClip [special] Frame 10
_root.specialSound.stop();
_root.killed(0, 2);
scoreAdjNeg = -1 * (500 + (2 * _root.VPenalty));
_root.score = _root.score + scoreAdjNeg;
if (special == 3) {
gotoAndPlay (40);
}
play();
Symbol 204 MovieClip [special] Frame 33
_root.removeMe(this);
stop();
Symbol 204 MovieClip [special] Frame 63
_root.removeMe(this);
stop();
Symbol 209 MovieClip [money] Frame 1
var a = random(2);
if (a == 0) {
gotoAndPlay (2);
} else {
gotoAndPlay (21);
}
Instance of Symbol 208 MovieClip "momo" in Symbol 209 MovieClip [money] Frame 2
onClipEvent (load) {
if (_root.bombsOnScreen == 1) {
_root.specialBanner.gotoAndPlay("MONEYDROP");
_root.everybodyHappy();
}
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + 10;
if (_parent._y >= _parent.YLim) {
_root.bombsOnScreen--;
_root.removeMe(_parent);
}
}
Symbol 209 MovieClip [money] Frame 11
gotoAndPlay (2);
Instance of Symbol 208 MovieClip "momo" in Symbol 209 MovieClip [money] Frame 21
onClipEvent (load) {
if (_root.bombsOnScreen == 1) {
_root.specialBanner.gotoAndPlay("MONEYDROP");
_root.everybodyHappy();
}
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + 10;
if (_parent._y >= _parent.YLim) {
_root.bombsOnScreen--;
_root.removeMe(_parent);
}
}
Symbol 209 MovieClip [money] Frame 30
gotoAndPlay (21);
Symbol 217 Button
on (release, keyPress "<Space>") {
_root.gotoAndPlay("MUSIC");
}
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 2
stop();
Symbol 226 Button
on (release) {
gotoAndPlay (13);
}
Symbol 227 Button
on (release) {
gotoAndPlay (18);
}
Symbol 228 Button
on (release) {
gotoAndPlay (38);
}
Symbol 231 Button
on (release) {
gotoAndStop (12);
}
on (keyPress "<Space>") {
gotoAndPlay (18);
}
Symbol 240 Button
on (release) {
gotoAndStop (11);
}
on (keyPress "<Space>") {
gotoAndPlay (18);
}
Symbol 244 Button
on (release) {
nextFrame();
}
Symbol 246 Button
on (release) {
gotoAndPlay (38);
}
Symbol 247 Button
on (release) {
gotoAndPlay (18);
}
Symbol 254 Button
on (release) {
prevFrame();
}
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 2
songPlaying = true;
Symbol 292 MovieClip Frame 1040
songPlaying = false;
Symbol 292 MovieClip Frame 1061
gotoAndStop (1);
Symbol 293 Button
on (keyPress "<Space>") {
gotoAndPlay (20);
}
Symbol 313 MovieClip Frame 17
_root.setEWD();
Symbol 313 MovieClip Frame 34
_root.gotoAndStop("GAME");
stop();
Symbol 314 Button
on (keyPress "<End>") {
_root.init();
_root.nextEvent();
}
Symbol 320 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 1
if (_root.currentEWD == 1) {
mission1Text = "YOUR MISHUN<<<SION:";
mission2Text = "ELIMINATE THE TERRORIST THREAT";
mission3Text = "FROM * ORIGINAL TERRAR<<ORIST OPERATIVES.";
mission4Text = "PROTECT THE CIVILIANS.";
} else if (_root.currentEWD == 2) {
mission1Text = "YOUR MISSION:";
mission2Text = "KILL OR CONVERT";
mission3Text = "* ORIGINAL TERRORIST EVIL-DOERS.";
mission4Text = "PROTECT YOUR T<CITIES AT ALL COSTS.";
} else if (_root.currentEWD == 3) {
mission1Text = "YOU'RE<<<R MISSION:";
mission2Text = "STAGE SOME DRAMATIC CNN FOOTAGE.";
mission3Text = "KILL * ORIGINAL TERRORIST FELLAS<<<<<<OPERATIVES.";
mission4Text = "PROTECT YOUR SELF-ESTEEM.";
} else if (_root.currentEWD == 4) {
mission1Text = "YOUR MISSION:";
mission2Text = "MOMMY I'M FRIGHTENED<<<<<<<<<<<<<<<<<<<<KILL. KILL. < KILL.";
mission3Text = "ELIMINATE * ORIGINAL TERRORISTS.";
mission4Text = "PROTECT CIVILIANS FROM OVERLY PAINFUL DEATHS.";
} else if (_root.currentEWD == 5) {
mission1Text = "YOUR MISSION:";
mission2Text = "KILL TIME UNTIL THE NEXT ELECTION.";
mission3Text = "* ORIGINAL TERRORISTS MUST DIE.";
mission4Text = "IT'S ALL ABOUT THE OIL, STUPID.";
}
complete = false;
line = 1;
pointer = 0;
TEXT1 = "";
TEXT2 = "";
TEXT3 = "";
TEXT4 = "";
Symbol 334 MovieClip Frame 2
if (eval (("mission" + line) + "Text").length < pointer) {
pointer = 0;
line++;
if (4 < line) {
complete = true;
}
}
if (eval (("mission" + line) + "Text").charAt(pointer) == "<") {
this["TEXT" + line] = eval ("TEXT" + line).slice(0, -1);
gotoAndPlay (4);
} else if (eval (("mission" + line) + "Text").charAt(pointer) == "*") {
_root.objectiveCounter._visible = true;
Set("TEXT" + line, eval ("TEXT" + line) + (("<B>" + _root.terroristKillsPerLevel[_root.currentEWD]) + "</B>"));
} else {
Set("TEXT" + line, eval ("TEXT" + line) + eval (("mission" + line) + "Text").charAt(pointer));
}
pointer++;
Symbol 334 MovieClip Frame 3
if (complete == false) {
gotoAndPlay (2);
} else {
gotoAndPlay (8);
}
Symbol 334 MovieClip Frame 7
gotoAndPlay (2);
Symbol 334 MovieClip Frame 25
_root.gotoAndPlay("ACTION");
stop();
Symbol 336 Button
on (release, keyPress "<Space>") {
gotoAndPlay (21);
}
Symbol 338 Button
on (rollOver) {
mouseOver();
}
on (rollOut) {
mouseOut();
}
on (release) {
fireWeapon();
}
Symbol 344 Button
on (rollOver) {
_root.rolled(1);
}
on (rollOut) {
_root.rolled(0);
}
on (release, keyPress "1") {
_root.setWeapon(1);
}
Symbol 347 MovieClip Frame 8
gotoAndPlay (2);
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 2
if (_parent.flash == true) {
green.play();
} else {
green.gotoAndStop(1);
}
stop();
Symbol 348 MovieClip Frame 3
gotoAndStop (1);
Symbol 349 Button
on (rollOver) {
_root.rolled(2);
}
on (rollOut) {
_root.rolled(0);
}
on (release, keyPress "2") {
_root.setWeapon(2);
}
Symbol 350 Button
on (rollOver) {
_root.rolled(3);
}
on (rollOut) {
_root.rolled(0);
}
on (release, keyPress "3") {
_root.setWeapon(3);
}
Symbol 351 Button
on (rollOver) {
_root.rolled(4);
}
on (rollOut) {
_root.rolled(0);
}
on (release, keyPress "4") {
_root.setWeapon(4);
}
Symbol 352 Button
on (rollOver) {
_root.rolled(5);
}
on (rollOut) {
_root.rolled(0);
}
on (release, keyPress "5") {
_root.setWeapon(5);
}
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 5
flash = true;
Symbol 358 MovieClip Frame 1
stop();
Instance of Symbol 355 MovieClip in Symbol 358 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.score >= 0) {
_parent.gotoAndStop("GREEN");
} else {
_parent.gotoAndStop("RED");
}
}
Symbol 364 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 2
_root.specialSound.stop();
_root.specialSoundNoPlay = true;
Symbol 364 MovieClip Frame 67
_root.killed(0, 100);
_root.citiesRemain--;
if (0 >= _root.citiesRemain) {
_root.clearScreen();
_root.gotoAndPlay("LOSE");
}
_root.panel.shake = true;
_root.fadeToRed.gotoAndPlay("CITYDOWN");
Symbol 364 MovieClip Frame 125
_root.panel.shake = false;
_root.panel._rotation = 0;
Symbol 364 MovieClip Frame 132
_root.specialSoundNoPlay = false;
gotoAndStop (1);
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 35
gotoAndStop (1);
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 25
_root.nextEvent();
Symbol 367 MovieClip Frame 26
gotoAndStop (1);
Symbol 370 MovieClip Frame 3
gotoAndPlay (1);
Symbol 372 MovieClip Frame 3
gotoAndPlay (1);
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 60
gotoAndStop (1);
Symbol 373 MovieClip Frame 100
gotoAndStop (1);
Symbol 376 Button
on (release) {
gotoAndPlay (38);
}
Symbol 385 Button
on (release) {
gotoAndStop (10);
}
Symbol 387 Button
on (release) {
_root.gotoAndStop("CREDITS");
}
Symbol 388 Button
on (release) {
gotoAndStop (1);
}
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 2
play();
Symbol 389 MovieClip Frame 25
gotoAndPlay (2);
Symbol 406 Button
on (release) {
rankText = "";
modScore = -1 * random(10000);
gotoAndPlay (2);
}
Symbol 411 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 1
modScore = _root.score;
rankText = "";
Instance of Symbol 402 MovieClip in Symbol 412 MovieClip Frame 1
/* no clip actions */
Symbol 412 MovieClip Frame 2
_root.calculate();
lever.play();
Instance of Symbol 402 MovieClip in Symbol 412 MovieClip Frame 11
/* no clip actions */
Instance of Symbol 402 MovieClip in Symbol 412 MovieClip Frame 12
onClipEvent (enterFrame) {
this._y = random(_root.spindleLow - _root.spindleHigh) + _root.spindleHigh;
}
Instance of Symbol 402 MovieClip in Symbol 412 MovieClip Frame 12
onClipEvent (enterFrame) {
this._y = random(_root.spindleLow - _root.spindleHigh) + _root.spindleHigh;
}
Instance of Symbol 402 MovieClip in Symbol 412 MovieClip Frame 12
onClipEvent (enterFrame) {
this._y = random(_root.spindleLow - _root.spindleHigh) + _root.spindleHigh;
}
Symbol 412 MovieClip Frame 35
rankText = eval (("_root." + _root.rank.charAt(0)) + "Array")[1];
Instance of Symbol 411 MovieClip in Symbol 412 MovieClip Frame 35
onClipEvent (enterFrame) {
this.gotoAndStop(eval (("_root." + _root.rank.charAt(0)) + "Array")[0]);
}
Symbol 412 MovieClip Frame 41
rankText = rankText + (" " + eval (("_parent." + _root.rank.charAt(1)) + "Array")[2]);
Instance of Symbol 411 MovieClip in Symbol 412 MovieClip Frame 41
onClipEvent (enterFrame) {
this.gotoAndStop(eval (("_root." + _root.rank.charAt(1)) + "Array")[0]);
}
Symbol 412 MovieClip Frame 47
rankText = rankText + (" " + eval (("_parent." + _root.rank.charAt(2)) + "Array")[3]);
Instance of Symbol 411 MovieClip in Symbol 412 MovieClip Frame 47
onClipEvent (enterFrame) {
this.gotoAndStop(eval (("_root." + _root.rank.charAt(2)) + "Array")[0]);
}
Symbol 412 MovieClip Frame 84
_root.credits_btn.gotoAndPlay(2);
stop();
Symbol 416 Button
on (release) {
gotoAndPlay (10);
}
Symbol 433 Button
on (release) {
getURL ("http://www.democraticunderground.com", "_blank");
}
Symbol 434 Button
on (release) {
getURL ("http://www.smirkingchimp.com", "_blank");
}
Symbol 435 Button
on (release) {
getURL ("http://www.ieamericaradio.com", "_blank");
}
Symbol 436 Button
on (release) {
getURL ("http://www.buzzflash.com", "_blank");
}
Symbol 437 Button
on (release) {
getURL ("http://www.mediawhoresonline.com", "_blank");
}
Symbol 438 Button
on (release) {
getURL ("http://www.bartcop.com", "_blank");
}
Symbol 439 Button
on (release) {
getURL ("http://www.sifl-n-olly.com", "_blank");
}
Symbol 440 Button
on (release) {
getURL ("mailto:freshlaunder@yahoo.com");
}
Symbol 441 Button
on (release) {
getURL ("mailto:blmillustrator@yahoo.com");
}
Symbol 442 Button
on (release) {
getURL ("http://www.boondocks.net", "_blank");
}
Symbol 443 Button
on (release) {
getURL ("http://www.tedrall.com", "_blank");
}
Symbol 448 Button
on (release) {
_root.whatevah.play();
}