Frame 1
function goTo() {
getURL ("http://www.MoFunZone.com");
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("MoFunZone.com - Play More Games", goTo));
this.menu = newMenu;
Frame 2
function mysound(idname) {
mysoundobj = new Sound(this);
mysoundobj.attachSound(idname);
mysoundobj.start();
}
function yayPop(x, y, amt) {
var _local2 = 0;
while (_local2 < amt) {
_root.i++;
_root.attachMovie("yaypop", "yaypop" + i, _root.getNextHighestDepth(), {_x:x, _y:y});
_local2++;
}
}
function activateWep(wep) {
switch (wep) {
case "minigun" :
turretStyle = "minigun";
break;
case "laser" :
turretStyle = "laser";
break;
case "machinegun" :
turretStyle = "machinegun";
break;
case "rocket" :
turretStyle = "rocket";
}
}
function checkCombo() {
if (inTime == true) {
if (currentCombo >= 1) {
if (currentCombo < 5) {
currentCombo++;
yayPop(mpx, mpy, 20);
_root.i++;
_root.attachMovie("multPop", "multPop" + i, _root.getNextHighestDepth(), {_x:mpx, _y:mpy});
ktimer = 0;
}
}
} else {
currentCombo = 1;
}
}
function gameFailed() {
_root.frocket.detonate();
_root.pauseEnabled = true;
fail.swapDepths(_root.getNextHighestDepth());
fail._visible = true;
_root.fishbar._visible = false;
music_fight.stop();
_root.overlay._visible = false;
}
function doFirstTrigger() {
_root.firstTriggerPopup.removeMovieClip();
pausable = true;
_root.pauseEnabled = false;
}
function doSecondTrigger() {
truckStage = "notrailer";
_root.secondTriggerPopup.removeMovieClip();
pausable = true;
_root.pauseEnabled = false;
}
function doThirdTrigger() {
music_idle.stop();
music_fight.start(0, 999);
truckStage = "full";
_root.thirdTriggerPopup.removeMovieClip();
pausable = true;
_root.pauseEnabled = false;
}
function doFourthTrigger() {
birdRandomPick = 20;
_root.fourthTriggerPopup.removeMovieClip();
pausable = true;
_root.pauseEnabled = false;
}
function doFifthTrigger() {
_root.fish = 50000;
birdRandomPick = 15;
_root.fifthTriggerPopup.removeMovieClip();
pausable = true;
_root.pauseEnabled = false;
}
function doSixthTrigger() {
birdRandomPick = 12;
_root.sixthTriggerPopup.removeMovieClip();
pausable = true;
_root.pauseEnabled = false;
}
function doSeventhTrigger() {
birdRandomPick = 10;
_root.seventhTriggerPopup.removeMovieClip();
pausable = true;
_root.pauseEnabled = false;
}
function endMusic() {
if (hemd == false) {
hemd = true;
music_fight.stop();
music_end.start(0, 999);
}
}
function timeReload() {
if (currentReload < reloadTime) {
currentReload++;
reloaded = false;
} else if (currentReload >= reloadTime) {
currentReload = reloadTime;
reloaded = true;
}
}
function landingPointSetup() {
_root.landingpoint.xp = _root.car._x + (40 * Math.sin(((_root.car.angle + 90) / 180) * Math.PI));
_root.landingpoint.yp = _root.car._y - (40 * Math.cos(((_root.car.angle + 90) / 180) * Math.PI));
}
function truckControl() {
if (_root.w1.control == true) {
if (Key.isDown(37)) {
if (xs > 0) {
xs = xs - accel;
} else {
xs = 0;
}
} else if (Key.isDown(39)) {
if (xs < ms) {
xs = xs + accel;
} else {
xs = ms;
}
} else if (_root.inAir == false) {
if (xs < 0) {
if (xs < 0) {
xs = xs + decel;
} else {
xs = 0;
}
} else if (xs > 0) {
xs = xs - decel;
} else {
xs = 0;
}
}
}
if (w3._x > 850) {
gameEnd = true;
}
}
function constraint(particle1, particle2, distance) {
dist_x = particle1._x - particle2._x;
dist_y = particle1._y - particle2._y;
actual_distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
actual_angle = -Math.atan2(dist_x, dist_y);
error = actual_distance - distance;
particle1._x = particle1._x + ((error / 2) * Math.sin(actual_angle));
particle1._y = particle1._y - ((error / 2) * Math.cos(actual_angle));
particle2._x = particle2._x - ((error / 2) * Math.sin(actual_angle));
particle2._y = particle2._y + ((error / 2) * Math.cos(actual_angle));
}
function shoot() {
trace(ALLCLIP.land._x);
_root.turret.barrel.muzzle.gotoAndPlay(2);
_root.turret.barrel.graphic.gotoAndPlay(2);
pady = _root._ymouse - _root.turret._y;
padx = _root._xmouse - _root.turret._x;
pointAngle = _root.degrees(Math.atan2(pady, padx)) + 90;
invX = _root.turret._x + (80 * Math.sin((_root.turret.barrel._rotation / 180) * Math.PI));
invY = _root.turret._y - (80 * Math.cos((_root.turret.barrel._rotation / 180) * Math.PI));
i++;
if ((turretStyle == "machinegun") || (turretStyle == "cannon")) {
_root.attachMovie("bullet", "bullet" + i, _root.getNextHighestDepth(), {_x:invX, _y:invY, angle:pointAngle, style:turretStyle});
} else if (turretStyle == "minigun") {
_root.attachMovie("minigunbullet", "minigunbullet" + i, _root.getNextHighestDepth(), {_x:invX, _y:invY, angle:pointAngle});
} else if (turretStyle == "laser") {
shootAt(pointAngle - 90, invX, invY);
} else if ((turretStyle == "rocket") && (rocketFired == false)) {
rocketFired = true;
trace(therocket);
_root.attachMovie("rocket", "frocket", _root.getNextHighestDepth(), {_x:invX, _y:invY, angle:pointAngle});
}
}
function spawnBirds() {
randomSpawn = random(birdRandomPick);
if (randomSpawn == 5) {
addBird();
}
}
function addBird() {
i++;
_root.birdArray.push("bird" + _root.i);
rndBird = random(2) + 1;
if (rndBird == 1) {
if (_root.ALLCLIP.land._x > _root.bt2lim) {
ypos = random(100);
_root.attachMovie("bird", "bird" + i, _root.getNextHighestDepth(), {_x:850, _y:ypos, birdName:"bird" + i, speed:5, type:"right", colour:0});
} else if ((_root.ALLCLIP.land._x < _root.bt2lim) && (_root.ALLCLIP.land._x > _root.bt3lim)) {
ypos = random(100);
_root.attachMovie("bird", "bird" + i, _root.getNextHighestDepth(), {_x:850, _y:ypos, birdName:"bird" + i, speed:5, type:"right", colour:random(2)});
} else if (_root.ALLCLIP.land._x < _root.bt3lim) {
ypos = random(100);
_root.attachMovie("bird", "bird" + i, _root.getNextHighestDepth(), {_x:850, _y:ypos, birdName:"bird" + i, speed:5, type:"right", colour:random(3)});
}
} else if (rndBird == 2) {
if (_root.ALLCLIP.land._x > _root.bt2lim) {
ypos = random(100);
_root.attachMovie("bird", "bird" + i, _root.getNextHighestDepth(), {_x:-50, _y:ypos, birdName:"bird" + i, speed:5, type:"left", colour:0});
} else if ((_root.ALLCLIP.land._x < _root.bt2lim) && (_root.ALLCLIP.land._x > _root.bt3lim)) {
ypos = random(100);
_root.attachMovie("bird", "bird" + i, _root.getNextHighestDepth(), {_x:-50, _y:ypos, birdName:"bird" + i, speed:5, type:"left", colour:random(2)});
} else if (_root.ALLCLIP.land._x < _root.bt3lim) {
ypos = random(100);
_root.attachMovie("bird", "bird" + i, _root.getNextHighestDepth(), {_x:-50, _y:ypos, birdName:"bird" + i, speed:5, type:"left", colour:random(3)});
}
}
}
function explosion(ex, ey) {
_root.i++;
_root.attachMovie("explosion", "ex" + _root.i, _root.getNextHighestDepth(), {_x:ex, _y:ey});
}
function killBird(target) {
_root[target].birdDie();
_root.birdArray = _root.birdArray.remove(target);
}
function despawnBird(target) {
_root[target].birdDespawn();
_root.birdArray = _root.birdArray.remove(target);
}
function buildTruck() {
setupTruck(91.6, 270.3, 92, 302, 239.6, 305.5, 155.8, 310.6, 155.2, 310.3);
setupWheels(249, _root.ystart, 147, _root.ystart, 113, _root.ystart, 300, _root.ystart, 30, _root.ystart);
}
function setupWheels(w1x, w1y, w2x, w2y, t1x, t1y, t2x, t2y, w3x, w3y) {
i++;
_root.attachMovie("wheel", "w1", _root.getNextHighestDepth(), {_x:w1x, _y:w1y, slave:false, order:1, wheel:true});
i++;
_root.attachMovie("wheel", "w2", _root.getNextHighestDepth(), {_x:w2x, _y:w2y, slave:true, order:2, wheel:true});
i++;
_root.attachMovie("wheel", "t1", _root.getNextHighestDepth(), {_x:t1x, _y:t1y, slave:true, wheel:false});
i++;
_root.attachMovie("wheel", "t2", _root.getNextHighestDepth(), {_x:t2x, _y:t2y, slave:true, wheel:false});
i++;
_root.attachMovie("wheel", "w3", _root.getNextHighestDepth(), {_x:w3x, _y:w3y, slave:true, order:3, wheel:true});
}
function setupTruck(turretx, turrety, trailerx, trailery, carx, cary, bar1x, bar1y, bar2x, bar2y) {
i++;
_root.attachMovie("turret", "turret", _root.getNextHighestDepth(), {_x:turretx, _y:turrety});
i++;
_root.attachMovie("trailer", "trailer", _root.getNextHighestDepth(), {_x:trailerx, _y:trailery});
i++;
_root.attachMovie("car", "car", _root.getNextHighestDepth(), {_x:carx, _y:cary});
i++;
_root.attachMovie("t1bar", "t1bar", _root.getNextHighestDepth(), {_x:bar1x, _y:bar1y});
i++;
_root.attachMovie("t2bar", "t2bar", _root.getNextHighestDepth(), {_x:bar2x, _y:bar2y});
}
function deleteActors() {
despawnBirds = true;
despawnBullets = true;
}
function allowActors() {
despawnBirds = false;
despawnBullets = false;
}
function endGame() {
_root.frocket.detonate();
_root.w1.removeMovieClip();
_root.w2.removeMovieClip();
_root.t1.removeMovieClip();
_root.t2.removeMovieClip();
_root.w3.removeMovieClip();
_root.turret.removeMovieClip();
_root.trailer.removeMovieClip();
_root.car.removeMovieClip();
_root.t1bar.removeMovieClip();
_root.t2bar.removeMovieClip();
deleteActors();
pausable = false;
}
function resetGame() {
_root.w1.removeMovieClip();
_root.w2.removeMovieClip();
_root.t1.removeMovieClip();
_root.t2.removeMovieClip();
_root.w3.removeMovieClip();
_root.turret.removeMovieClip();
_root.trailer.removeMovieClip();
_root.car.removeMovieClip();
_root.t1bar.removeMovieClip();
_root.t2bar.removeMovieClip();
deleteActors();
resetVariables();
}
function startGame() {
buildTruck();
allowActors();
music_menu.stop();
music_idle.start(0, 999);
pausable = true;
}
function resetVariables() {
shield = 0;
hasRocketBoost = false;
boost = 0;
boostable = false;
rocketFired = false;
xs = 0;
turretStyle = "cannon";
for (weps in unlockedWeps) {
unlockedWeps[weps] = 0;
}
_root.grats._x = -10000;
_root.fishbar._visible = false;
_root.ALLCLIP._x = 0;
_root.ALLCLIP.land._x = 0;
_root.ALLCLIP.building._x = 0;
_root.overlay._x = 0;
for (thing in _root.ALLCLIP.land) {
_root.ALLCLIP.land[thing].swapDepths(0);
_root.ALLCLIP.land[thing].removeMovieClip();
}
for (thing in _root.ALLCLIP.building) {
_root.ALLCLIP.building[thing].swapDepths(0);
_root.ALLCLIP.building[thing].removeMovieClip();
}
pausable = true;
_root.marker._x = -870;
fail._visible = false;
music_menu = new Sound(this);
music_menu.attachSound("menuMUSIC");
music_fight = new Sound(this);
music_fight.attachSound("music_FIGHT");
music_idle = new Sound(this);
music_idle.attachSound("musicIDLE");
music_end = new Sound(this);
music_end.attachSound("endMUSIC");
music_menu.stop();
music_end.stop();
music_idle.stop();
music_fight.stop();
num = 0;
randSpawn = 0;
ypos = 0;
_root.landmovespeed = 0;
_root.xlim = 300;
_root.moving = false;
wdsd = 0;
ystart = 150;
invX = 0;
invY = 0;
padx = 0;
pady = 0;
boffsetx = 0;
boffsety = 0;
pointAngle = 0;
despawnBirds = true;
pauseEnabled = false;
despawnBullets = true;
clickEnabled = true;
difficulty = 1;
xlim = 500;
_root.lockWheels = false;
_root.birdArray = new Array();
_root.landingpoint.xp = 0;
_root.landingpoint.yp = 0;
reloadTime = 28;
currentReload = 0;
reloaded = true;
tile = 0;
noTiles = 0;
timingKill = false;
firstTrigger = false;
secondTrigger = false;
thirdTrigger = false;
fourthTrigger = false;
fifthTrigger = false;
sixthTrigger = false;
seventhTrigger = false;
firstTrigger_x = -140;
secondTrigger_x = -630;
thirdTrigger_x = -1566;
fourthTrigger_x = -16830;
fifthTrigger_x = -35740;
sixthTrigger_x = -52734;
seventhTrigger_x = -71867;
firstTriggerOn = false;
secondTriggerOn = false;
thirdTriggerOn = false;
fourthTriggerOn = false;
fifthTriggerOn = false;
sixthTriggerOn = false;
seventhTriggerOn = false;
hasLaser = false;
hasMinigun = false;
hasMachinegun = false;
hasRocket = false;
score = 0;
birdSpawnAllowed = false;
birdRandomPick = 50;
fish = 50000;
mpx = 400;
mpy = 148;
hemd = false;
inTime = false;
truckStage = "notrailer/notank";
x_shake = 0;
y_shake = 0;
_root.main_menu_on = true;
_root.attachMovie("mainMENU", "mainMENU", _root.getNextHighestDepth());
music_menu.start(0, 999);
_root.main_menu_on = true;
inc = 0;
distance = 0;
Tile = new Array("intro_tile", "trans01_TILE", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "bridge_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt02_tile", "city01_tile", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "end_tile");
Building = new Array("intro_tile_b", "trans01_TILE_b", "huts01_tile_b", "huts01_tile_b", "huts01_tile_b", "huts01_tile_b", "huts02_tile_b", "huts02_tile_b", "huts02_tile_b", "huts02_tile_b", "trans01_TILE_b", "huts02_tile_b", "huts02_tile_b", "bridge_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "trans02_TILE_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "trans02_TILE_b", "apt02_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "trans03_TILE_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "end_tile_b");
Overlay = new Array("intro_overlay", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "overlay_bridge", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", 0, "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "end_overlay");
tPos = new Array();
noTiles = -1;
while (noTiles < (Tile.length + 4)) {
tPos[noTiles] = Number(1700 * noTiles);
noTiles++;
}
rndBird = 0;
gameEnd = false;
_root.alive = true;
_root.overlay._visible = true;
currentCombo = 0;
}
function radians(degrees) {
return((degrees / 180) * Math.PI);
}
function degrees(radians) {
return((radians * 180) / Math.PI);
}
function shootAt(angle, x, y) {
trot.text = angle;
if ((angle > -90) && (angle < 90)) {
fdir = 1;
} else {
fdir = -1;
}
mindist = 10000;
missed = false;
var _local6 = y;
var _local7 = x;
rad = _root.radians(angle);
var _local8 = new Array();
var _local9 = new Array();
closest = null;
minyhit = null;
m = Math.sin(rad) / Math.cos(rad);
b = _local6 - (m * _local7);
for (h in _root.birdArray) {
t = _root[_root.birdArray[h]];
xd = t._x - x;
yd = t._y - y;
var _local3 = Math.sqrt((xd * xd) + (yd * yd));
if (((fdir == 1) && ((t._x + t.khw) > x)) || ((fdir == -1) && ((t._x - t.khw) < x))) {
yhit = (m * t._x) + b;
yhit1 = (m * (t._x - t.khw)) + b;
yhit2 = (m * (t._x + t.khw)) + b;
maxyr = t._y + (t.kth / 2);
minyr = t._y - (t.kth / 2);
misscond = ((yhit2 < minyr) && (yhit1 < minyr)) || ((yhit2 > maxyr) && (yhit1 > maxyr));
if (!misscond) {
_root.bloodPop(t._x, t._y, 50, angle + 90);
t.birdDie();
_root.killBird(t.birdName);
}
}
}
}
function get_dist(p1x, p1y, p2x, p2y) {
return(Math.sqrt(((p2x - p1x) * (p2x - p1x)) + ((p2y - p1y) * (p2y - p1y))));
}
stop();
_root.movespeed = 5;
i = 0;
smokePlay = false;
xs = 0;
ms = 15;
grav = 0.5;
accel = 0.15;
decel = 0.008;
bt2lim = -6800;
bt3lim = -13700;
currentCombo = 0;
turretStyle = "cannon";
_root.grats._x = -10000;
_root.overlay._visible = true;
_root.fishbar._visible = false;
_root.ALLCLIP._x = 0;
_root.ALLCLIP.land._x = 0;
_root.ALLCLIP.building._x = 0;
_root.overlay._x = 0;
mpx = 400;
mpy = 148;
shield = 0;
hasRocketBoost = false;
boost = 0;
boostable = false;
rocketFired = false;
score = 0;
for (thing in _root.ALLCLIP.land) {
_root.ALLCLIP.land[thing].swapDepths(0);
_root.ALLCLIP.land[thing].removeMovieClip();
}
for (thing in _root.ALLCLIP.building) {
_root.ALLCLIP.building[thing].swapDepths(0);
_root.ALLCLIP.building[thing].removeMovieClip();
}
for (thing in _root.overlay) {
if (_root.overlay[thing].imLights == true) {
} else {
_root.overlay[thing].swapDepths(0);
_root.overlay[thing].removeMovieClip();
}
}
_root.marker._x = -870;
_root.alive = true;
fail._visible = false;
music_menu = new Sound(this);
music_menu.attachSound("menuMUSIC");
music_fight = new Sound(this);
music_fight.attachSound("music_FIGHT");
music_idle = new Sound(this);
music_idle.attachSound("musicIDLE");
music_end = new Sound(this);
music_end.attachSound("endMUSIC");
num = 0;
randSpawn = 0;
ypos = 0;
_root.landmovespeed = 0;
_root.xlim = 300;
_root.moving = false;
wdsd = 0;
ystart = 150;
invX = 0;
invY = 0;
padx = 0;
pady = 0;
boffsetx = 0;
boffsety = 0;
pointAngle = 0;
despawnBirds = true;
pauseEnabled = false;
despawnBullets = true;
clickEnabled = true;
difficulty = 1;
xlim = 500;
_root.lockWheels = false;
_root.birdArray = new Array();
_root.landingpoint.xp = 0;
_root.landingpoint.yp = 0;
reloadTime = 28;
currentReload = 0;
reloaded = true;
tile = 0;
timingKill = false;
ktimer = 0;
noTiles = 0;
inTime = false;
pausable = false;
firstTrigger = false;
secondTrigger = false;
thirdTrigger = false;
fourthTrigger = false;
fifthTrigger = false;
sixthTrigger = false;
seventhTrigger = false;
firstTrigger_x = -140;
secondTrigger_x = -630;
thirdTrigger_x = -1566;
fourthTrigger_x = -16830;
fifthTrigger_x = -35740;
sixthTrigger_x = -52734;
seventhTrigger_x = -71867;
firstTriggerOn = false;
secondTriggerOn = false;
thirdTriggerOn = false;
fourthTriggerOn = false;
fifthTriggerOn = false;
sixthTriggerOn = false;
seventhTriggerOn = false;
hasLaser = false;
hasMinigun = false;
hasMachinegun = false;
hasRocket = false;
birdSpawnAllowed = false;
birdRandomPick = 50;
fish = 50000;
hemd = false;
truckStage = "notrailer/notank";
x_shake = 0;
y_shake = 0;
_root.main_menu_on = true;
_root.attachMovie("mainMENU", "mainMENU", _root.getNextHighestDepth());
music_menu.start(0, 999);
_root.main_menu_on = true;
inc = 0;
distance = 0;
Tile = new Array("intro_tile", "trans01_TILE", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "huts01_tile", "bridge_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt01_tile", "apt02_tile", "city01_tile", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "cityREPEAT", "end_tile");
Building = new Array("intro_tile_b", "trans01_TILE_b", "huts01_tile_b", "huts01_tile_b", "huts01_tile_b", "huts01_tile_b", "huts02_tile_b", "huts02_tile_b", "huts02_tile_b", "huts02_tile_b", "trans01_TILE_b", "huts02_tile_b", "huts02_tile_b", "bridge_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "trans02_TILE_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "apt01_tile_b", "trans02_TILE_b", "apt02_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "trans03_TILE_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "city01_tile_b", "end_tile_b");
Overlay = new Array("intro_overlay", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "overlay_bridge", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", 0, "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "city_overlay", "end_overlay");
tPos = new Array();
noTiles = -1;
while (noTiles < (Tile.length + 4)) {
tPos[noTiles] = Number(1700 * noTiles);
noTiles++;
}
var averageFrames = 30;
var timerArray = new Array(averageFrames);
var startTime = 0;
var currentFrame = 0;
rndBird = 0;
gameEnd = false;
i++;
_root.attachMovie("crosshair", "crosshair" + i, _root.getNextHighestDepth());
Array.prototype.remove = function (obj) {
a = [];
var _local2 = 0;
while (_local2 < this.length) {
if (this[_local2] != obj) {
a.push(this[_local2]);
}
_local2++;
}
return(a);
};
_root.onEnterFrame = function () {
ba.text = birdArray;
wwa.text = ALLCLIP.land._x;
if (shield > 0) {
car.shield._visible = true;
} else {
car.shield._visible = false;
}
if (boostable == true) {
boostnote._visible = true;
} else {
boostnote._visible = false;
}
if (rocketFired == true) {
rocketnote._visible = true;
} else {
rocketnote._visible = false;
}
pscore.text = score;
if (turretStyle == "cannon") {
reloadTime = 23;
_root.turret.barrel.gotoAndStop(1);
_root.turret.barrel.muzzle._y = -153;
}
if (turretStyle == "machinegun") {
reloadTime = 9;
_root.turret.barrel.gotoAndStop(2);
_root.turret.barrel.muzzle._y = -213;
}
if (turretStyle == "minigun") {
reloadTime = 1;
_root.turret.barrel.gotoAndStop(3);
_root.turret.barrel.muzzle._y = -213;
}
if (turretStyle == "laser") {
reloadTime = 20;
_root.turret.barrel.gotoAndStop(4);
_root.turret.barrel.muzzle._y = -213;
}
if (turretStyle == "rocket") {
reloadTime = 25;
_root.turret.barrel.gotoAndStop(5);
_root.turret.barrel.muzzle._y = -213;
}
if (truckStage == "notrailer/notank") {
trailer._visible = false;
turret._visible = false;
w3._visible = false;
clickEnabled = false;
t1._visible = false;
t2._visible = false;
t1bar._visible = false;
t2bar._visible = false;
car.fishtank._visible = false;
car.wl._visible = false;
car.fish1._visible = false;
car.fish2._visible = false;
car.fish3._visible = false;
car.fish4._visible = false;
}
if (truckStage == "notrailer") {
trailer._visible = false;
turret._visible = false;
w3._visible = false;
clickEnabled = false;
t1._visible = false;
t2._visible = false;
t1bar._visible = false;
t2bar._visible = false;
car.fishtank._visible = true;
car.wl._visible = true;
car.fish1._visible = true;
car.fish2._visible = true;
car.fish3._visible = true;
car.fish4._visible = true;
}
if (truckStage == "full") {
trailer._visible = true;
turret._visible = true;
w3._visible = true;
clickEnabled = true;
t1._visible = true;
t2._visible = true;
t1bar._visible = true;
t2bar._visible = true;
car.fish1._visible = true;
car.fish2._visible = true;
car.fish3._visible = true;
car.fish4._visible = true;
if (fail._visible == false) {
_root.fishbar._visible = true;
} else {
_root.fishbar._visible = false;
}
}
var _local2 = new flash.filters.BlurFilter(Math.abs(_root.trailer.c1.rf / 4), Math.abs(_root.trailer.c1.rf / 4), 2);
var _local3 = new flash.filters.BlurFilter(Math.abs(_root.trailer.c2.rf / 4), Math.abs(_root.trailer.c2.rf / 4), 2);
_root.trailer.c1.filters = [_local2];
_root.trailer.c2.filters = [_local3];
if (_root.ALLCLIP.land._x <= _root.firstTrigger_x) {
if (firstTrigger == false) {
firstTrigger = true;
_root.pausable = false;
_root.attachMovie("firstTriggerPopup", "firstTriggerPopup", _root.getNextHighestDepth());
_root.pauseEnabled = true;
}
}
if (_root.ALLCLIP.land._x <= _root.secondTrigger_x) {
if (secondTrigger == false) {
secondTrigger = true;
_root.attachMovie("secondTriggerPopup", "secondTriggerPopup", _root.getNextHighestDepth());
pausable = false;
_root.pauseEnabled = true;
}
}
if (_root.ALLCLIP.land._x <= _root.thirdTrigger_x) {
if (thirdTrigger == false) {
thirdTrigger = true;
_root.attachMovie("thirdTriggerPopup", "thirdTriggerPopup", _root.getNextHighestDepth());
pausable = false;
_root.pauseEnabled = true;
}
}
if (_root.ALLCLIP.land._x <= _root.fourthTrigger_x) {
if (fourthTrigger == false) {
fourthTrigger = true;
_root.attachMovie("fourthTriggerPopup", "fourthTriggerPopup", _root.getNextHighestDepth());
pausable = false;
_root.pauseEnabled = true;
}
}
if (_root.ALLCLIP.land._x <= _root.fifthTrigger_x) {
if (fifthTrigger == false) {
fifthTrigger = true;
_root.attachMovie("fifthTriggerPopup", "fifthTriggerPopup", _root.getNextHighestDepth());
pausable = false;
_root.pauseEnabled = true;
}
}
if (_root.ALLCLIP.land._x <= _root.sixthTrigger_x) {
if (sixthTrigger == false) {
sixthTrigger = true;
_root.attachMovie("sixthTriggerPopup", "sixthTriggerPopup", _root.getNextHighestDepth());
pausable = false;
_root.pauseEnabled = true;
}
}
if (_root.ALLCLIP.land._x <= _root.seventhTrigger_x) {
if (seventhTrigger == false) {
seventhTrigger = true;
_root.attachMovie("seventhTriggerPopup", "seventhTriggerPopup", _root.getNextHighestDepth());
pausable = false;
_root.pauseEnabled = true;
}
}
if (_root.fish <= 0) {
_root.alive = false;
}
if (_root.pauseEnabled == true) {
} else if (_root.alive == false) {
_root.gameFailed();
} else if (gameEnd == false) {
if (_root.marker._x <= -850) {
_root.marker._x = 850;
distance = distance + 850;
for (thing in _root.ALLCLIP.land) {
_root.ALLCLIP.land[thing].swapDepths(0);
_root.ALLCLIP.land[thing].removeMovieClip();
}
for (thing in _root.ALLCLIP.building) {
_root.ALLCLIP.building[thing].swapDepths(0);
_root.ALLCLIP.building[thing].removeMovieClip();
}
for (thing in _root.overlay) {
if (_root.overlay[thing].imLights == true) {
} else {
_root.overlay[thing].swapDepths(0);
_root.overlay[thing].removeMovieClip();
}
}
_root.ALLCLIP.building.attachMovie(Building[inc], Building[inc], _root.ALLCLIP.building.getNextHighestDepth(), {_x:tPos[inc], _y:450});
_root.ALLCLIP.building.attachMovie(Building[inc + 1], Building[inc + 1], _root.ALLCLIP.building.getNextHighestDepth(), {_x:tPos[inc + 1], _y:450});
_root.ALLCLIP.land.attachMovie(Tile[inc], Tile[inc], _root.ALLCLIP.land.getNextHighestDepth(), {_x:tPos[inc], _y:450});
_root.ALLCLIP.land.attachMovie(Tile[inc + 1], Tile[inc + 1], _root.ALLCLIP.land.getNextHighestDepth(), {_x:tPos[inc + 1], _y:450});
_root.overlay.attachMovie(Overlay[inc], Overlay[inc], _root.getNextHighestDepth(), {_x:tPos[inc], _y:450});
_root.overlay.attachMovie(Overlay[inc + 1], Overlay[inc + 1], _root.getNextHighestDepth(), {_x:tPos[inc + 1], _y:450});
inc++;
}
if (timingKill == true) {
ktimer++;
inTime = true;
if (currentCombo <= 5) {
} else {
currentCombo = 5;
}
if (ktimer > (reloadTime + 10)) {
timingKill = false;
}
} else {
multiClip.gotoAndStop(1);
ktimer = 0;
inTime = false;
currentCombo = 0;
}
timeReload();
truckControl();
rnd = random(100) + 100;
constraint(w1, w2, 100);
constraint(w2, t1, 34);
constraint(t1, t2, 1);
constraint(t2, w3, 83);
constraint(w1, t1, 130);
constraint(w3, w1, 221.4);
if (birdSpawnAllowed == true) {
spawnBirds();
}
landingPointSetup();
} else {
endGame();
grats._x = 0;
grats.gotoAndPlay(2);
endMusic();
pauseEnabled = true;
}
};
bloodPop = function (blood_x, blood_y, amount, angle) {
num = 0;
while (num < amount) {
i++;
_root.attachMovie("blood", "blood" + i, _root.getNextHighestDepth(), {_x:blood_x, _y:blood_y, freeze:false, dir:angle});
num++;
}
};
_root.createEmptyMovieClip("theClick", _root.getNextHighestDepth());
_root.onMouseDown = function () {
if (turretStyle == "rocket") {
if (_root.clickEnabled == false) {
} else if (_root.pauseEnabled == true) {
} else if (rocketFired == true) {
rocketFired = false;
_root.shaker.play();
_root.frocket.detonate();
} else if (_root.reloaded == true) {
_root.shoot();
_root.shaker.play();
_root.currentReload = 0;
}
} else {
theClick.onEnterFrame = function () {
if (_root.clickEnabled == false) {
} else if (_root.pauseEnabled == true) {
} else if (_root.reloaded == true) {
if (_root.ALLCLIP.land._x < -100) {
_root.shoot();
_root.shaker.play();
_root.currentReload = 0;
}
}
};
}
};
_root.onMouseUp = function () {
delete theClick.onEnterFrame;
};
Instance of Symbol 623 MovieClip "clouds" in Frame 2
onClipEvent (enterFrame) {
if (_x < -990) {
_x = -40;
}
}
Instance of Symbol 625 MovieClip "hills" in Frame 2
onClipEvent (enterFrame) {
if (_x < -1263) {
_x = -153;
}
}
Instance of Symbol 638 MovieClip "overlay" in Frame 2
onClipEvent (enterFrame) {
if ((((_root.firstTriggerOn == true) || (_root.main_menu_on == true)) || (_root.secondTriggerOn == true)) || (_root.gameEnd == true)) {
} else {
this.swapDepths(_root.getNextHighestDepth());
}
this._x = this._x + _root.x_shake;
this._y = this._y + _root.y_shake;
}
Instance of Symbol 669 MovieClip "fishbar" in Frame 2
onClipEvent (enterFrame) {
this.swapDepths(_root.overlay);
}
Instance of Symbol 671 MovieClip in Frame 2
on (keyPress "<Up>") {
if (_root.boostable == true) {
_root.boost = 50;
_root.car.booster.gotoAndStop(2);
_root.car.booster.flame.gotoAndPlay(1);
_root.boostable = false;
}
}
Symbol 17 MovieClip Frame 11
stop();
Symbol 40 MovieClip [missileExplode] Frame 25
removeMovieClip(this);
stop();
Symbol 48 MovieClip [rocket] Frame 1
speed = 15;
onEnterFrame = function () {
if (_root.get_dist(_x, _y, _root._xmouse, _root._ymouse) > 50) {
speed = 15;
} else if (_root.get_dist(_x, _y, _root._xmouse, _root._ymouse) > 10) {
speed = speed * 0.8;
} else {
speed = 0;
}
angle = _root.radians(_root.degrees(Math.atan2(_root._ymouse - _y, _root._xmouse - _x)) + 90);
xmov = speed * Math.sin(angle);
ymov = (-speed) * Math.cos(angle);
_x = (_x + xmov);
_y = (_y + ymov);
_rotation = ((angle / Math.PI) * 180);
};
detonate = function () {
trace("ohshit");
for (victim in _root.birdArray) {
if (_root.get_dist(_root[_root.birdArray[victim]]._x, _root[_root.birdArray[victim]]._y, _x, _y) < 300) {
_root[_root.birdArray[victim]].health = 0;
}
}
_root.i++;
_root.attachMovie("missileExplode", "m" + i, _root.getNextHighestDepth(), {_x:_x, _y:_y});
removeMovieClip(this);
};
Symbol 50 MovieClip [yaypop] Frame 1
travAngle = _root.radians(random(360));
vy = 0;
xMov = 0;
yMov = 0;
force = random(10) + 5;
timer = 0;
size = force * 10;
os = size / 20;
this.onEnterFrame = function () {
_rotation = (_root.degrees(travAngle) - 90);
vy = vy + 1;
_y = (_y + vy);
xMov = force * Math.cos(travAngle);
yMov = force * Math.sin(travAngle);
_x = (_x - xMov);
_y = (_y - yMov);
_xscale = size;
_yscale = size;
size = size - os;
if (timer > _xscale) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
removeMovieClip(this);
}
} else {
timer++;
}
};
Symbol 57 MovieClip Frame 1
gotoAndStop(_root.currentCombo);
Symbol 58 MovieClip [multPop] Frame 6
stop();
onEnterFrame = function () {
if (_root.currentCombo < 5) {
gotoAndPlay (7);
}
};
Symbol 58 MovieClip [multPop] Frame 7
delete onEnterFrame;
Symbol 58 MovieClip [multPop] Frame 35
removeMovieClip(this);
Symbol 60 MovieClip [cityREPEAT] Frame 1
this.cacheAsBitmap = true;
Symbol 62 Button
on (press) {
_root.birdSpawnAllowed = true;
_root.thirdTriggerOn = false;
_root.doThirdTrigger();
}
Symbol 69 MovieClip [thirdTriggerPopup] Frame 1
this.onEnterFrame = function () {
_root.thirdTriggerPopup.swapDepths(_root.getNextHighestDepth());
_root.thirdTriggerOn = true;
};
Instance of Symbol 80 MovieClip "wl" in Symbol 89 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 94 MovieClip Frame 107
stop();
_root.secondTriggerOn = false;
_root.doSecondTrigger();
Symbol 97 Button
on (keyPress "k") {
_root.secondTriggerOn = false;
_root.doSecondTrigger();
}
on (keyPress "K") {
_root.secondTriggerOn = false;
_root.doSecondTrigger();
}
Symbol 98 MovieClip [secondTriggerPopup] Frame 1
this.onEnterFrame = function () {
_root.secondTriggerPopup.swapDepths(_root.getNextHighestDepth());
_root.secondTriggerOn = true;
};
Symbol 99 Button
on (keyPress "k") {
gotoAndStop (2);
}
on (keyPress "K") {
gotoAndStop (2);
}
Symbol 110 Button
on (press) {
cg();
}
Symbol 120 Button
on (press) {
if (haswep == false) {
if (_root.hasMinigun == true) {
Status.text = "You already have this upgrade!";
} else if (_root.score >= 60000) {
_root.hasMinigun = true;
_root.score = _root.score - 60000;
buy("minigun");
} else {
Status.text = "You don't have enough points!";
}
} else {
Status.text = "You have already bought a weapon upgrade!";
}
}
Symbol 123 Button
on (press) {
if (haswep == false) {
if (_root.hasLaser == true) {
Status.text = "You already have this upgrade!";
} else if (_root.score >= 110000) {
_root.score = _root.score - 110000;
_root.hasLaser = true;
buy("laser");
} else {
Status.text = "You don't have enough points!";
}
} else {
Status.text = "You have already bought a weapon upgrade!";
}
}
Symbol 126 Button
on (press) {
if (haswep == false) {
if (_root.hasMachinegun == true) {
Status.text = "You already have this upgrade!";
} else if (_root.score >= 25000) {
_root.score = _root.score - 25000;
_root.hasMachinegun = true;
buy("machinegun");
} else {
Status.text = "You don't have enough points!";
}
} else {
Status.text = "You have already bought a weapon upgrade!";
}
}
Symbol 127 Button
on (press) {
if (_root.boostable == true) {
Status.text = "You already have this upgrade!";
} else if (_root.score >= 10000) {
_root.score = _root.score - 10000;
_root.boostable = true;
} else {
Status.text = "You don't have enough points!";
}
}
Symbol 128 Button
on (press) {
if (hasshield == false) {
if (_root.shield > 10) {
Status.text = "You already have this upgrade!";
} else if (_root.score >= 10000) {
_root.shield = 10;
_root.score = _root.score - 10000;
hasshield = true;
} else {
Status.text = "You don't have enough points!";
}
} else {
Status.text = "You have already bought a truck upgrade!";
}
}
Symbol 135 Button
on (press) {
if (haswep == false) {
if (_root.hasRocket == true) {
Status.text = "You already have this upgrade!";
} else if (_root.score >= 200000) {
_root.score = _root.score - 200000;
_root.hasRocket = true;
buy("rocket");
} else {
Status.text = "You don't have enough points!";
}
} else {
Status.text = "You have already bought a weapon upgrade!";
}
}
Symbol 139 MovieClip [seventhTriggerPopup] Frame 1
this.onEnterFrame = function () {
_root.seventhTriggerPopup.swapDepths(_root.getNextHighestDepth());
_root.seventhTriggerOn = true;
};
stop();
Symbol 139 MovieClip [seventhTriggerPopup] Frame 2
function buy(wep) {
haswep = true;
_root.activateWep(wep);
}
function cg() {
_root.seventhTriggerOn = false;
_root.doSeventhTrigger();
}
haswep = false;
hasshield = false;
hasbooster = false;
this.onEnterFrame = function () {
_root.seventhTriggerPopup.swapDepths(_root.getNextHighestDepth());
_root.seventhTriggerOn = true;
pts.text = "Points: " + _root.score;
if (haswep == true) {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 50;
} else if (_root.score >= 300000) {
buyRocket._alpha = 100;
buyMinigun._alpha = 100;
buyLaser._alpha = 100;
} else if ((_root.score >= 150000) && (_root.score < 300000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 100;
buyLaser._alpha = 100;
} else if ((_root.score >= 100000) && (_root.score < 150000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 100;
buyLaser._alpha = 50;
} else if ((_root.score >= 25000) && (_root.score < 100000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 100;
} else {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 50;
}
if (_root.score >= 10000) {
if (hasshield == true) {
buyShield._alpha = 50;
} else {
buyShield._alpha = 100;
}
if (_root.boostable == true) {
buyBooster._alpha = 50;
} else {
buyBooster._alpha = 100;
}
} else {
buyShield._alpha = 50;
buyBooster._alpha = 50;
}
};
stop();
Symbol 140 Button
on (keyPress "k") {
gotoAndStop (2);
}
on (keyPress "K") {
gotoAndStop (2);
}
Symbol 144 MovieClip [sixthTriggerPopup] Frame 1
this.onEnterFrame = function () {
_root.sixthTriggerPopup.swapDepths(_root.getNextHighestDepth());
_root.sixthTriggerOn = true;
};
stop();
Symbol 144 MovieClip [sixthTriggerPopup] Frame 2
function buy(wep) {
haswep = true;
_root.activateWep(wep);
}
function cg() {
_root.sixthTriggerOn = false;
_root.doSixthTrigger();
}
haswep = false;
hasshield = false;
hasbooster = false;
this.onEnterFrame = function () {
_root.sixthTriggerPopup.swapDepths(_root.getNextHighestDepth());
_root.sixthTriggerOn = true;
pts.text = "Points: " + _root.score;
if (haswep == true) {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 50;
} else if (_root.score >= 300000) {
buyRocket._alpha = 100;
buyMinigun._alpha = 100;
buyLaser._alpha = 100;
} else if ((_root.score >= 150000) && (_root.score < 300000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 100;
buyLaser._alpha = 100;
} else if ((_root.score >= 100000) && (_root.score < 150000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 100;
buyLaser._alpha = 50;
} else if ((_root.score >= 25000) && (_root.score < 100000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 100;
} else {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 50;
}
if (_root.score >= 10000) {
if (hasshield == true) {
buyShield._alpha = 50;
} else {
buyShield._alpha = 100;
}
if (_root.boostable == true) {
buyBooster._alpha = 50;
} else {
buyBooster._alpha = 100;
}
} else {
buyShield._alpha = 50;
buyBooster._alpha = 50;
}
};
stop();
Symbol 145 Button
on (keyPress "k") {
gotoAndStop (2);
}
on (keyPress "K") {
gotoAndStop (2);
}
Symbol 149 MovieClip [fifthTriggerPopup] Frame 1
this.onEnterFrame = function () {
_root.fifthTriggerPopup.swapDepths(_root.getNextHighestDepth());
_root.fifthTriggerOn = true;
};
stop();
Symbol 149 MovieClip [fifthTriggerPopup] Frame 2
function buy(wep) {
haswep = true;
_root.activateWep(wep);
}
function cg() {
_root.fifthTriggerOn = false;
_root.doFifthTrigger();
}
haswep = false;
hasshield = false;
hasbooster = false;
this.onEnterFrame = function () {
_root.fifthTriggerPopup.swapDepths(_root.getNextHighestDepth());
_root.fifthTriggerOn = true;
pts.text = "Points: " + _root.score;
if (haswep == true) {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 50;
} else if (_root.score >= 300000) {
buyRocket._alpha = 100;
buyMinigun._alpha = 100;
buyLaser._alpha = 100;
} else if ((_root.score >= 150000) && (_root.score < 300000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 100;
buyLaser._alpha = 100;
} else if ((_root.score >= 100000) && (_root.score < 150000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 100;
buyLaser._alpha = 50;
} else if ((_root.score >= 25000) && (_root.score < 100000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 100;
} else {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 50;
}
if (_root.score >= 10000) {
if (hasshield == true) {
buyShield._alpha = 50;
} else {
buyShield._alpha = 100;
}
if (_root.boostable == true) {
buyBooster._alpha = 50;
} else {
buyBooster._alpha = 100;
}
} else {
buyShield._alpha = 50;
buyBooster._alpha = 50;
}
};
stop();
Symbol 150 Button
on (keyPress "k") {
gotoAndStop (2);
}
on (keyPress "K") {
gotoAndStop (2);
}
Symbol 154 MovieClip [fourthTriggerPopup] Frame 1
this.onEnterFrame = function () {
_root.fourthTriggerPopup.swapDepths(_root.getNextHighestDepth());
_root.fourthTriggerOn = true;
};
stop();
Symbol 154 MovieClip [fourthTriggerPopup] Frame 2
function buy(wep) {
haswep = true;
_root.activateWep(wep);
}
function cg() {
_root.fourthTriggerOn = false;
_root.doFourthTrigger();
}
haswep = false;
hasshield = false;
hasbooster = false;
this.onEnterFrame = function () {
_root.fourthTriggerPopup.swapDepths(_root.getNextHighestDepth());
_root.fourthTriggerOn = true;
pts.text = "Points: " + _root.score;
if (haswep == true) {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 50;
} else if (_root.score >= 300000) {
buyRocket._alpha = 100;
buyMinigun._alpha = 100;
buyLaser._alpha = 100;
} else if ((_root.score >= 150000) && (_root.score < 300000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 100;
buyLaser._alpha = 100;
} else if ((_root.score >= 100000) && (_root.score < 150000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 100;
buyLaser._alpha = 50;
} else if ((_root.score >= 25000) && (_root.score < 100000)) {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 100;
} else {
buyRocket._alpha = 50;
buyMinigun._alpha = 50;
buyLaser._alpha = 50;
buyFasterCannon._alpha = 50;
}
if (_root.score >= 10000) {
if (hasshield == true) {
buyShield._alpha = 50;
} else {
buyShield._alpha = 100;
}
if (_root.boostable == true) {
buyBooster._alpha = 50;
} else {
buyBooster._alpha = 100;
}
} else {
buyShield._alpha = 50;
buyBooster._alpha = 50;
}
};
stop();
Symbol 155 Button
on (press) {
_root.firstTriggerOn = false;
_root.doFirstTrigger();
}
Symbol 158 MovieClip [firstTriggerPopup] Frame 1
this.onEnterFrame = function () {
_root.firstTriggerPopup.swapDepths(_root.getNextHighestDepth());
_root.firstTriggerOn = true;
};
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 20
stop();
Symbol 188 Button
on (press) {
gotoAndStop (2);
}
on (rollOver) {
_root.clickEnabled = false;
}
on (rollOut) {
_root.clickEnabled = true;
}
Symbol 193 Button
on (press) {
getURL ("http://www.MoFunZone.com/", "_blank");
}
Symbol 196 Button
on (press) {
getURL ("http://www.MoFunZone.com/", "_blank");
}
Symbol 206 Button
on (keyPress "k") {
_root.pauseEnabled = false;
_root.clickEnabled = true;
_root.main_menu_on = false;
_root.startGame();
_root.mainMENU.removeMovieClip();
}
on (keyPress "K") {
_root.pauseEnabled = false;
_root.clickEnabled = true;
_root.main_menu_on = false;
_root.startGame();
_root.mainMENU.removeMovieClip();
}
Symbol 207 MovieClip [mainMENU] Frame 1
this.onLoad = function () {
_root.main_menu_on = true;
};
stop();
Instance of Symbol 168 MovieClip in Symbol 207 MovieClip [mainMENU] Frame 1
on (press) {
_quality = "medium";
}
Instance of Symbol 168 MovieClip in Symbol 207 MovieClip [mainMENU] Frame 1
on (press) {
_quality = "high";
}
Instance of Symbol 178 MovieClip in Symbol 207 MovieClip [mainMENU] Frame 1
on (rollOver) {
gotoAndPlay (1);
}
on (rollOut) {
gotoAndPlay (21);
}
on (press) {
getURL ("http://insanicode.wordpress.com", "_blank");
}
Instance of Symbol 168 MovieClip in Symbol 207 MovieClip [mainMENU] Frame 1
on (press) {
_quality = "low";
}
Instance of Symbol 185 MovieClip in Symbol 207 MovieClip [mainMENU] Frame 1
on (press) {
getURL ("http://www.pinenana.com", "_blank");
}
Symbol 212 MovieClip [end_overlay] Frame 1
this.cacheAsBitmap = true;
Symbol 213 MovieClip [city_overlay] Frame 1
this.cacheAsBitmap = true;
imLights = true;
Symbol 216 MovieClip [overlay_bridge] Frame 1
deleteable = true;
Symbol 226 MovieClip [intro_overlay] Frame 1
deleteable = true;
Symbol 231 MovieClip [end_tile_b] Frame 1
this.cacheAsBitmap = true;
Symbol 233 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 235 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 237 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 240 MovieClip Frame 1
Symbol 242 MovieClip Frame 1
Symbol 246 MovieClip Frame 1
Symbol 260 MovieClip Frame 45
gotoAndPlay (1);
Symbol 263 MovieClip [trans03_TILE_b] Frame 1
Symbol 264 MovieClip [city01_tile_b] Frame 1
this.cacheAsBitmap = true;
Symbol 266 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 274 MovieClip [huts01_tile_b] Frame 1
this.cacheAsBitmap = true;
Symbol 295 MovieClip Frame 1
stop();
Symbol 302 MovieClip [end_tile] Frame 1
this.cacheAsBitmap = true;
Symbol 304 MovieClip [city01_tile] Frame 1
this.cacheAsBitmap = true;
Symbol 306 MovieClip [apt02_tile] Frame 1
this.cacheAsBitmap = true;
Symbol 308 MovieClip [apt01_tile] Frame 1
this.cacheAsBitmap = true;
Symbol 310 MovieClip [bridge_tile] Frame 1
this.cacheAsBitmap = true;
Symbol 312 MovieClip [huts01_tile] Frame 1
this.cacheAsBitmap = true;
Symbol 314 MovieClip [trans01_tile] Frame 1
this.cacheAsBitmap = true;
Symbol 316 MovieClip [intro_tile] Frame 1
this.cacheAsBitmap = true;
Symbol 317 MovieClip [smoke] Frame 1
this.cacheAsBitmap = true;
rp = random(10) + 1;
t = 375;
this.onEnterFrame = function () {
if ((_alpha <= 0) || (_xscale < 0)) {
this.removeMovieClip();
} else {
_alpha = (_alpha - rp);
}
_x = (_x - _root.landmovespeed);
};
Symbol 319 MovieClip [blood] Frame 1
function remove() {
this.removeMovieClip();
trace("not deleted");
}
vy = 0;
t = 0;
freeze = false;
bounces = 2;
rangle = (random(100) / 180) * Math.PI;
r_angle = (random(100) / 180) * Math.PI;
force = (random(100) + 30) / 7;
if (freeze == false) {
size = random(50) + 1;
}
_xscale = size;
_yscale = size;
timer = 0;
rand = random(10);
red = random(90) - random(90);
this.onEnterFrame = function () {
_x = (_x - _root.xs);
timer++;
if (_xscale > 0) {
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
_alpha = (_alpha - 2);
} else {
remove();
}
if (freeze == false) {
t = t + 0.04;
vy = vy + (1.98 * t);
_y = (_y + vy);
xMov = force * Math.cos((((dir + 90) + red) / 180) * Math.PI);
yMov = force * Math.sin((((dir + 90) + red) / 180) * Math.PI);
_x = (_x - xMov);
_y = (_y - yMov);
} else if (timer > 100) {
}
if ((((_x > 900) || (_x < -100)) || (_y < -100)) || (_y > 550)) {
remove();
}
};
Symbol 363 MovieClip Frame 23
stop();
_parent.gotoAndStop(1);
Symbol 365 MovieClip Frame 1
stop();
Symbol 366 MovieClip [car] Frame 1
this.onLoad = function () {
played = false;
tx = 0;
ty = 0;
};
this.onEnterFrame = function () {
dy = _root.w1._y - _root.w2._y;
dx = _root.w1._x - _root.w2._x;
angle = Math.atan2(dy, dx);
_rotation = ((angle * 180) / Math.PI);
tx = _root.w1._x - (dx / 2);
ty = _root.w1._y - (dy / 2);
_x = (_x + ((tx - _x) / 1));
_y = (_y + ((ty - _y) / 1));
};
Instance of Symbol 327 MovieClip "wl" in Symbol 366 MovieClip [car] Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 370 MovieClip Frame 1
stop();
Symbol 371 MovieClip [WHEEL] Frame 1
vy = 0;
flying = false;
backToggle = false;
control = true;
this.onEnterFrame = function () {
this._x = this._x + (_root.x_shake / 2);
this._y = this._y + (_root.y_shake / 2);
if (_root.pauseEnabled == true) {
} else {
_x = (_x + 0.06);
if (wheel == true) {
_xscale = 100;
} else {
wl.gotoAndStop(2);
}
wl.innerwheel._rotation = wl.innerwheel._rotation + (_root.xs * 4);
if (control == true) {
flying = false;
}
if (((_root.ALLCLIP.land.hitTest(this._x, this._y + 14, true) || (flying == true)) || (_root.ALLCLIP.land.hitTest(this._x + 17, this._y, true))) || (_root.ALLCLIP.land.hitTest(this._x - 17, this._y, true))) {
_root.inAir = false;
} else {
vy = vy + _root.grav;
}
if (_root.ALLCLIP.land.hitTest(this._x, this._y + 18, true)) {
_root.inAir = false;
} else {
_root.inAir = true;
}
while (_root.ALLCLIP.land.hitTest(this._x, (this._y + vy) + 14, true)) {
vy = vy - 1;
}
_y = (_y + vy);
if (order == 1) {
if (control == true) {
if (_x >= _root.xlim) {
_root.lockWheels = true;
} else {
_root.lockWheels = false;
}
} else {
_root.lockWheels = false;
}
}
if (_root.lockWheels == true) {
if (order == 1) {
if (_root.boost >= 1) {
_root.ALLCLIP.land._x = _root.ALLCLIP.land._x - (_root.boost / 2);
_root.ALLCLIP.building._x = _root.ALLCLIP.building._x - (_root.boost / 2);
_root.clouds._x = _root.clouds._x - ((_root.boost / 3) / 2);
_root.hills._x = _root.hills._x - ((_root.boost / 2) / 2);
_root.overlay._x = _root.overlay._x - (_root.boost / 2);
_root.marker._x = _root.marker._x - (_root.boost / 2);
_y = (_y - (_root.boost / 2.1));
_root.w2._y = _root.w2._y - (_root.boost / 2.1);
_root.t1._y = _root.t1._y - (_root.boost / 2.1);
_root.t2._y = _root.t2._y - (_root.boost / 2.1);
_root.w3._y = _root.w3._y - (_root.boost / 2.5);
_root.boost--;
} else {
_root.boost = 0;
}
_root.ALLCLIP.land._x = _root.ALLCLIP.land._x - _root.xs;
_root.ALLCLIP.building._x = _root.ALLCLIP.building._x - _root.xs;
_root.clouds._x = _root.clouds._x - (_root.xs / 3);
_root.hills._x = _root.hills._x - (_root.xs / 2);
_root.overlay._x = _root.overlay._x - _root.xs;
_root.marker._x = _root.marker._x - _root.xs;
}
} else if (order == 1) {
} else {
_x = (_x + _root.xs);
}
if (order == 1) {
if ((_x > (_root.xlim - 10)) && (_x <= _root.xlim)) {
_x = (_x + _root.xs);
}
}
}
};
Symbol 377 MovieClip [trailer] Frame 1
this.onLoad = function () {
played = false;
tx = 0;
ty = 0;
};
this.onEnterFrame = function () {
dy = _root.t2._y - _root.w3._y;
dx = _root.t2._x - _root.w3._x;
angle = Math.atan2(dy, dx);
_rotation = ((angle * 180) / Math.PI);
tx = _root.t2._x - (dx / 2);
ty = _root.t2._y - (dy / 2);
_x = (_x + ((tx - _x) / 1));
_y = (_y + ((ty - _y) / 1));
};
Instance of Symbol 373 MovieClip "c2" in Symbol 377 MovieClip [trailer] Frame 1
onClipEvent (load) {
rf = 0;
rd = 0;
tr = 0;
}
onClipEvent (enterFrame) {
rf = _root.turret.barrel._rotation - rd;
_rotation = (_rotation - (rf * 1.5));
rd = _root.turret.barrel._rotation;
}
Instance of Symbol 375 MovieClip in Symbol 377 MovieClip [trailer] Frame 1
onClipEvent (enterFrame) {
_rotation = _root.turret.barrel._rotation;
}
Instance of Symbol 373 MovieClip "c1" in Symbol 377 MovieClip [trailer] Frame 1
onClipEvent (load) {
rf = 0;
rd = 0;
tr = 0;
}
onClipEvent (enterFrame) {
rf = _root.turret.barrel._rotation - rd;
_rotation = (_rotation - ((-rf) * 2.415));
rd = _root.turret.barrel._rotation;
}
Symbol 379 MovieClip [t1bar] Frame 1
this.onLoad = function () {
played = false;
tx = 0;
ty = 0;
};
this.onEnterFrame = function () {
dy = _root.w2._y - _root.t1._y;
dx = _root.w2._x - _root.t1._x;
angle = Math.atan2(dy, dx);
_rotation = ((angle * 180) / Math.PI);
tx = _root.t1._x;
ty = _root.t1._y;
_x = (_x + ((tx - _x) / 1));
_y = (_y + ((ty - _y) / 1));
};
Symbol 381 MovieClip [t2bar] Frame 1
this.onLoad = function () {
played = false;
tx = 0;
ty = 0;
};
this.onEnterFrame = function () {
dy = _root.t2._y - _root.w3._y;
dx = _root.t2._x - _root.w3._x;
angle = Math.atan2(dy, dx);
_rotation = ((angle * 180) / Math.PI);
tx = _root.t2._x;
ty = _root.t2._y;
_x = (_x + ((tx - _x) / 1));
_y = (_y + ((ty - _y) / 1));
};
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 7
gotoAndStop (1);
Symbol 396 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 2
_root.mysoundobj.setVolume(50);
_root.mysound("cannon");
_root.mysoundobj.setVolume(100);
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
_root.mysoundobj.setVolume(50);
_root.mysound("MAG");
_root.mysoundobj.setVolume(100);
Symbol 411 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 417 MovieClip [turret] Frame 1
this.onLoad = function () {
played = false;
tx = 0;
ty = 0;
angle = 0;
};
this.onEnterFrame = function () {
if (_root.pauseEnabled == true) {
} else {
dy = _root._ymouse - _y;
dx = _root._xmouse - _x;
angle = Math.atan2(dy, dx);
barrel._rotation = ((angle * 180) / Math.PI) + 90;
bulk._rotation = _root.trailer._rotation;
_x = ((_root.trailer._x + 4) + (48 * Math.sin(((_root.trailer._rotation - 45) / 180) * Math.PI)));
_y = ((_root.trailer._y - 2) - (48 * Math.cos(((_root.trailer._rotation - 45) / 180) * Math.PI)));
}
};
Symbol 419 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 424 MovieClip [minigunbullet] Frame 1
function slowDie() {
if (timer > 0) {
_alpha = (_alpha - 10);
bolt.graphic.play();
timer = timer - 10;
} else {
this.removeMovieClip(this);
}
}
this.cacheAsBitmap = true;
speed = 70;
xMov = 0;
yMov = 0;
time = 0;
air = 0;
newy = 0;
newx = 0;
newAngle = 0;
dying = false;
slowDieStart = false;
timer = 100;
_visible = false;
trace(_root.ALLCLIP.land._x);
this.onEnterFrame = function () {
if (_root.pauseEnabled == true) {
} else {
if (dying == false) {
for (brds in _root.birdArray) {
if (this.hitBox.hitTest(_root[_root.birdArray[brds]]._x, _root[_root.birdArray[brds]]._y, true)) {
_root.bloodPop(_root[_root.birdArray[brds]]._x, _root[_root.birdArray[brds]]._y, 5, angle);
_root[_root.birdArray[brds]].health = _root[_root.birdArray[brds]].health - 20;
slowDieStart = true;
speed = 0;
dying = true;
}
}
}
if (slowDieStart == true) {
slowDie();
}
xMov = speed * Math.sin((angle * Math.PI) / 180);
yMov = speed * Math.cos((angle * Math.PI) / 180);
_x = (_x + xMov);
_y = (_y - yMov);
test._x = newx;
test._y = newy;
_rotation = (angle - 90);
_visible = true;
if ((((_x > 900) || (_x < -100)) || (_y < -100)) || (_y > 550)) {
removeMovieClip(this);
}
}
if (_root.despawnBullets == true) {
this.removeMovieClip();
}
};
Symbol 425 MovieClip [bullet] Frame 1
function slowDie() {
if (timer > 0) {
_alpha = (_alpha - 10);
bolt.graphic.play();
timer = timer - 10;
} else {
this.removeMovieClip(this);
}
}
this.cacheAsBitmap = true;
if (style == "cannon") {
speed = 54;
bolt.gotoAndStop(1);
} else if (style == "machinegun") {
speed = 70;
bolt.gotoAndStop(2);
}
xMov = 0;
yMov = 0;
time = 0;
air = 0;
newy = 0;
newx = 0;
newAngle = 0;
dying = false;
slowDieStart = false;
timer = 100;
_visible = false;
trace(_root.ALLCLIP.land._x);
this.onEnterFrame = function () {
if (_root.pauseEnabled == true) {
} else {
if (dying == false) {
for (brds in _root.birdArray) {
if (this.hitBox.hitTest(_root[_root.birdArray[brds]]._x, _root[_root.birdArray[brds]]._y, true)) {
_root.bloodPop(_root[_root.birdArray[brds]]._x, _root[_root.birdArray[brds]]._y, 50, angle);
_root[_root.birdArray[brds]].birdDie();
_root.killBird(_root.birdArray[brds]);
slowDieStart = true;
_root.mysound("CROW");
speed = 0;
dying = true;
}
}
}
if (slowDieStart == true) {
slowDie();
}
xMov = speed * Math.sin((angle * Math.PI) / 180);
yMov = speed * Math.cos((angle * Math.PI) / 180);
_x = (_x + xMov);
_y = (_y - yMov);
test._x = newx;
test._y = newy;
_rotation = (angle - 90);
_visible = true;
if ((((_x > 900) || (_x < -100)) || (_y < -100)) || (_y > 550)) {
removeMovieClip(this);
}
}
if (_root.despawnBullets == true) {
this.removeMovieClip();
}
};
Symbol 439 MovieClip Frame 20
gotoAndPlay (1);
Symbol 465 MovieClip Frame 20
gotoAndPlay (1);
Symbol 466 MovieClip [bird] Frame 1
function birdDie() {
dead = true;
}
function birdDespawn() {
this.removeMovieClip();
}
this.cacheAsBitmap = true;
i = 0;
air = 0;
if (colour == 0) {
anim._visible = true;
anim2._visible = false;
} else {
anim._visible = false;
anim2._visible = true;
}
dead = false;
popped = false;
tc = 0;
angle = 0;
speed = (1.5 + (random(10) / 7)) - (random(10) / 7);
md = 0;
dx = 0;
dy = 0;
switched = 0;
angle2 = 0;
health = 100;
switch2 = false;
iveTakenFish = false;
khw = 15;
kth = 30;
if (random(3) == 1) {
diving = true;
} else {
diving = false;
}
this.onEnterFrame = function () {
if (type == "left") {
_xscale = -100;
} else {
_xscale = 100;
}
if (_root.pauseEnabled == true) {
anim.stop();
} else {
if (type == "left") {
if (diving == false) {
if (_x > 800) {
type = "right";
diving = true;
} else {
_x = (_x + 6);
}
fish._visible = false;
} else {
if (md != 3) {
xMov = speed * Math.sin((angle * Math.PI) / 180);
yMov = speed * Math.cos((angle * Math.PI) / 180);
_x = (_x + xMov);
_y = (_y + yMov);
} else {
xMov = speed * Math.sin(angle + (Math.PI/2));
yMov = speed * Math.cos(angle + (Math.PI/2));
_x = (_x + xMov);
_y = (_y - yMov);
}
if (_x > ((70 + random(20)) - random(20))) {
if (switched == 0) {
md = 1;
switched = 1;
angle = 90;
speed = 8.5;
}
}
if (md == 0) {
angle = 90;
}
if (md == 1) {
if (tc > -60) {
angle = angle - 3;
tc = tc - 3;
} else {
md = 2;
}
}
if (md == 2) {
if (tc < 0) {
angle = angle + 3;
tc = tc + 3;
} else {
md = 3;
}
}
if (md == 3) {
dx = ((_root.car._x - 20) + (63 * Math.sin((_root.car._rotation / 180) * Math.PI))) - this._x;
dy = (_root.car._y - (63 * Math.cos((_root.car._rotation / 180) * Math.PI))) - this._y;
angle = Math.atan2(dy, dx);
speed = 6;
}
if (_root.car.tank.hitTest(_x, _y, true)) {
if (switch2 == false) {
md = 4;
speed = 4;
angle = 90;
switch2 = true;
if (iveTakenFish == false) {
iveTakenFish = true;
_root.fish = _root.fish - (2500 + random(100));
}
}
}
if (md == 4) {
this.fish._visible = true;
if (tc < 75) {
angle = angle + 1;
tc = tc + 1;
}
} else {
this.fish._visible = false;
}
}
} else if (diving == false) {
if (_x < 0) {
type = "left";
diving = true;
} else {
_x = (_x - 6);
}
this.fish._visible = false;
} else {
if (md != 3) {
xMov = speed * Math.sin((angle * Math.PI) / 180);
yMov = speed * Math.cos((angle * Math.PI) / 180);
_x = (_x - xMov);
_y = (_y + yMov);
} else {
xMov = speed * Math.sin(angle + (Math.PI/2));
yMov = speed * Math.cos(angle + (Math.PI/2));
_x = (_x + xMov);
_y = (_y - yMov);
}
if (_x < ((730 + random(20)) - random(20))) {
if (switched == 0) {
md = 1;
switched = 1;
angle = 90;
speed = 8.5;
}
}
if (md == 0) {
angle = 90;
}
if (md == 1) {
if (tc > -60) {
angle = angle - 3;
tc = tc - 3;
} else {
md = 2;
}
}
if (md == 2) {
if (tc < 0) {
angle = angle + 3;
tc = tc + 3;
} else {
md = 3;
}
}
if (md == 3) {
dx = ((_root.car._x - 20) + (63 * Math.sin((_root.car._rotation / 180) * Math.PI))) - this._x;
dy = (_root.car._y - (63 * Math.cos((_root.car._rotation / 180) * Math.PI))) - this._y;
angle = Math.atan2(dy, dx);
speed = 6;
}
if (_root.car.tank.hitTest(_x, _y, true)) {
if (switch2 == false) {
md = 4;
speed = 4;
angle = 90;
switch2 = true;
if (iveTakenFish == false) {
iveTakenFish = true;
_root.fish = _root.fish - (2500 + random(100));
}
}
}
if (md == 4) {
this.fish._visible = true;
if (tc < 75) {
angle = angle + 1;
tc = tc + 1;
}
} else {
this.fish._visible = false;
}
}
anim.play();
if (_root.land.hitTest(_x, _y, true)) {
_root.bloodPop(this._x, this._y, 20, -90);
this.removeMovieClip();
trace("not deleted");
}
if (health <= 0) {
_root.killBird(birdName);
_root.mysound("CROW");
_root.bloodPop(_x, _y, 20, random(360));
dead = true;
}
if (dead == true) {
_root.explosion(_x, _y);
_root.timingKill = true;
_root.checkCombo();
_root.score = _root.score + ((random(500) + 500) * _root.currentCombo);
this.removeMovieClip();
}
if (_root.shield > 0) {
if (_root.car.hitTest(_x, _y, true)) {
_root.shield--;
health = 0;
}
}
if (_root.car._y <= 220) {
if (_root.car.hitTest(_x, _y, true)) {
health = 0;
}
}
if ((((_x > 900) || (_x < -100)) || (_y < -100)) || (_y > 550)) {
_root.despawnBird(birdName);
}
}
if (_root.despawnBirds == true) {
this.removeMovieClip();
}
};
Symbol 469 MovieClip [crosshair] Frame 1
this.onEnterFrame = function () {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
this.swapDepths(_root.getNextHighestDepth());
};
Symbol 475 MovieClip Frame 8
_parent.removeMovieClip();
Symbol 478 MovieClip [BULLET_TRAIL] Frame 1
speed = 5;
xMov = 0;
yMov = 0;
angle = -100 + random(20);
this.onEnterFrame = function () {
if (_root.pauseEnabled == true) {
} else {
if (speed > 0) {
speed = speed + 0.09;
}
xMov = speed * Math.sin((angle * Math.PI) / 180);
yMov = speed * Math.cos((angle * Math.PI) / 180);
_x = (_x + xMov);
_y = (_y - yMov);
_rotation = (angle - 90);
if ((this._yscale < 0) || (this._alpha < 0)) {
this.removeMovieClip(this);
} else {
_xscale = (_xscale - 5);
if (_yscale > 0) {
_yscale = (_yscale - 5);
} else {
_alpha = (_alpha - 10);
}
}
}
};
Symbol 480 MovieClip [tile01_TILE] Frame 1
this.onLoad = function () {
imActuallyLoaded = "yes";
};
Symbol 506 MovieClip Frame 11
_parent.gotoAndStop(2);
Symbol 516 MovieClip Frame 1
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
barmask._xscale = percent * 100;
};
Symbol 550 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 550 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 561 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 561 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 569 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 569 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 577 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 577 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 585 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 585 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 593 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 593 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 601 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 601 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 609 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 609 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 616 MovieClip Frame 133
_root.play();
Symbol 617 MovieClip Frame 1
stop();
_root.stop();
shiftamt = 17;
isloaded = false;
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
if (bytesloaded == bytestotal) {
isloaded = true;
}
};
this.onRelease = function () {
getURL ("http://www.mofunzone.com/", "_blank");
};
Symbol 622 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 623 MovieClip Frame 1
this.cacheAsBitmap = true;
this.onEnterFrame = function () {
this._x = this._x + (_root.x_shake / 2);
this._y = this._y + (_root.y_shake / 2);
};
Symbol 625 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x + (_root.x_shake / 2);
this._y = this._y + (_root.y_shake / 2);
};
Symbol 630 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x + _root.x_shake;
this._y = this._y + _root.y_shake;
};
Instance of Symbol 629 MovieClip "land" in Symbol 630 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_x <= -99465) {
_root.w1.control = false;
}
}
Instance of Symbol 646 MovieClip in Symbol 647 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_root.xs * 67);
}
Symbol 649 Button
on (press) {
if (_root.pausable == true) {
if (_root.pauseEnabled == true) {
_root.pauseEnabled = false;
} else {
_root.pauseEnabled = true;
}
}
}
on (keyPress "p") {
if (_root.pausable == true) {
if (_root.pauseEnabled == true) {
_root.pauseEnabled = false;
} else {
_root.pauseEnabled = true;
}
}
}
on (rollOver) {
_root.clickEnabled = false;
}
on (rollOut) {
_root.clickEnabled = true;
}
Symbol 654 MovieClip [shakeness] Frame 1
_root.x_shake = 0;
_root.y_shake = 0;
stop();
Symbol 654 MovieClip [shakeness] Frame 2
_root.x_shake = -5;
_root.y_shake = 5;
Symbol 654 MovieClip [shakeness] Frame 3
_root.x_shake = 5;
_root.y_shake = 5;
Symbol 654 MovieClip [shakeness] Frame 4
_root.x_shake = -4;
_root.y_shake = -5;
Symbol 654 MovieClip [shakeness] Frame 5
_root.x_shake = 4;
_root.y_shake = -5;
Symbol 654 MovieClip [shakeness] Frame 6
_root.x_shake = -3;
_root.y_shake = 4;
Symbol 654 MovieClip [shakeness] Frame 7
_root.x_shake = 3;
_root.y_shake = 4;
Symbol 654 MovieClip [shakeness] Frame 8
_root.x_shake = -2;
_root.y_shake = -4;
Symbol 654 MovieClip [shakeness] Frame 9
_root.x_shake = 2;
_root.y_shake = -4;
Symbol 654 MovieClip [shakeness] Frame 10
_root.x_shake = 0;
_root.y_shake = 0;
Symbol 663 MovieClip Frame 1
_visible = false;
Instance of Symbol 660 MovieClip in Symbol 663 MovieClip Frame 1
on (press) {
_root.resetGame();
}
Instance of Symbol 662 MovieClip in Symbol 663 MovieClip Frame 1
on (press) {
getURL ("http://www.MoFunZone.com/", "_blank");
}
Instance of Symbol 666 MovieClip "fbb" in Symbol 668 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (((_root.fish / 50000) * 250) - 250);
}
Symbol 681 Button
on (press) {
getURL ("http://www.MoFunZone.com/", "_blank");
}
Symbol 683 Button
on (press) {
_root.grats._x = -10000;
_root.resetGame();
}
Symbol 687 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 2
this.swapDepths(_root.getNextHighestDepth());
Symbol 687 MovieClip Frame 20
stop();