Frame 1
function goTo() {
getURL ("http://www.MoFunZone.com");
}
stop();
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("MoFunZone.com - Play More Games", goTo));
this.menu = newMenu;
Frame 2
stop();
Instance of Symbol 264 MovieClip in Frame 2
on (release) {
getURL ("http://www.corkysurprise.com", "_blank");
}
Frame 3
stop();
Instance of Symbol 271 MovieClip in Frame 3
on (release) {
getURL ("http://www.facebook.com/profile.php?id=576845480", "_blank");
}
Frame 4
function changeFrame(where) {
frameChange.play();
frameChange.where = where;
}
stop();
sound = true;
if (_root.musicMenuPlay == undefined) {
_root.createEmptyMovieClip("musicMenuHolder", 2555282828);
menumusic = new Sound(musicMenuHolder);
menumusic.attachSound("menu_music");
if (_root.sound) {
menumusic.start(0, 999999);
musicMenuPlay = 1;
}
}
_root.musicPlay = undefined;
Instance of Symbol 289 MovieClip in Frame 4
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.changeFrame("instructions");
}
Instance of Symbol 303 MovieClip in Frame 4
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.changeFrame("credits");
}
Instance of Symbol 310 MovieClip in Frame 4
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Instance of Symbol 317 MovieClip in Frame 4
on (press) {
_root.changeFrame("engine");
}
on (rollOver) {
m.gotoAndStop(2);
}
on (rollOut) {
m.gotoAndStop(1);
}
Instance of Symbol 325 MovieClip in Frame 4
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
getURL ("http://www.mofunzone.com/game_scores/bomb_detonator/highscores.shtml", "_blank");
}
Instance of Symbol 368 MovieClip in Frame 4
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Frame 5
stop();
Instance of Symbol 376 MovieClip in Frame 5
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.changeFrame("menu");
}
Frame 6
stop();
Instance of Symbol 368 MovieClip in Frame 6
on (press) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Instance of Symbol 380 MovieClip in Frame 6
on (press) {
getURL ("http://www.corkysurprise.com", "_blank");
}
Instance of Symbol 383 MovieClip in Frame 6
on (release) {
getURL ("http://www.facebook.com/profile.php?id=576845480", "_blank");
}
Frame 7
function makeBombs() {
if (timeup) {
return(undefined);
}
i = 1;
while (i <= level) {
bombName = "bomb";
bombWord = bombName + _root.depth;
_root.attachMovie(bombName, bombWord, _root.depth);
_root[bombWord]._x = random(1500) + random(1500);
_root[bombWord]._y = random(1500) + random(1500);
_root[bombWord].number = i;
_root.depth++;
i++;
}
}
function checkLvl() {
if (targets >= level) {
level++;
targets = 0;
_root.car.currentNumber = 1;
makeBombs();
_root.levelDis.play();
_root.score = _root.score + (level * 10);
}
}
function startIt() {
if (!_root.timing) {
if (_root.paused) {
_root.startTime = getTimer() - _root.elapsedTime;
} else {
_root.startTime = getTimer();
}
_root.paused = false;
_root.timing = true;
}
}
function restart() {
if (_root.timing) {
_root.timing = false;
_root.paused = true;
}
}
function makeVan() {
if (timeup) {
return(undefined);
}
_root.depth++;
t = "van" + _root.depth;
_root.attachMovie("van", t, _root.depth);
_root[t]._x = random(500) + random(500);
_root[t]._y = -60;
}
function makePowerUp() {
if (timeup) {
return(undefined);
}
_root.depth++;
t = "powerup" + _root.depth;
_root.attachMovie("powerup", t, _root.depth);
_root[t]._x = random(500) + random(500);
c = random(2);
if (c == 0) {
_root[t]._y = -60;
}
if (c == 1) {
_root[t]._y = 550;
}
}
function cSound() {
if (_root.sound) {
c = random(3);
if (c == 0) {
_root.crash.start();
}
if (c == 1) {
_root.crash2.start();
}
if (c == 2) {
_root.crash3.start();
}
}
}
function blurAll() {
for (i in blurList) {
blurList[i].filters = none;
if (_root.car.speed > 15) {
myBlur = new flash.filters.BlurFilter(_root.car.xSpeed, _root.car.ySpeed, 1);
myTempFilters = blurList[i].filters;
myTempFilters.push(myBlur);
blurList[i].filters = myTempFilters;
}
}
}
level = 1;
_root.musicMenuPlay = undefined;
menumusic.stop();
if (_root.musicPlay == undefined) {
_root.createEmptyMovieClip("musicHolder", 28282828);
music = new Sound(musicHolder);
music.attachSound("music");
if (_root.sound) {
music.start(0, 999999);
}
}
loadVariablesNum ("http://gamefilez.mofunzone.com/game_scores/bomb_detonator/mfz2.php", 0);
_root.timeup = false;
_root.blurList = new Array();
depth = 0;
_root.time = 30;
_root.score = 0;
bg._x = 500;
bg._y = 300;
makeBombs();
targets = 0;
timeup = false;
_root.depthHolder = 0;
delay = random(400);
resetTime = getTimer() + delay;
delayB = 1000;
resetTimeB = getTimer() + delayB;
powerUpTime = getTimer() + delay;
var timing = false;
var paused = false;
var remaining;
var elapsedTime;
var elapsedHours;
var elapsedM;
var elapsedS;
var elapsedH;
var startTime;
var remaining;
var hours;
var minutes;
var seconds;
var hundredths;
startIt();
_root.onEnterFrame = function () {
if (timeup) {
if (car.mooo == undefined) {
loadVariablesNum ("http://gamefilez.mofunzone.com/game_scores/bomb_detonator/mfz.php?" + _root.score, 0);
car.mooo = 1;
}
return(undefined);
}
if (_root.car.timeStop) {
return(undefined);
}
if (getTimer() > resetTime) {
makeVan();
delay = (random(4000) - (level * 100)) + 500;
resetTime = getTimer() + delay;
}
if (getTimer() > powerUpTime) {
makePowerUp();
delay = (random(6000) + random(3000)) + 1000;
powerUpTime = getTimer() + delay;
}
if (getTimer() > resetTimeB) {
time--;
delayB = 1000;
resetTimeB = getTimer() + delayB;
if (_root.sound) {
HUD.timer.beep.start();
}
if (time < 0) {
_root.timeup = true;
}
}
if (time <= 0) {
timeup = true;
}
if (timing) {
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - (elapsedHours * 3600000);
elapsedM = Math.floor(remaining / 60000);
remaining = remaining - (elapsedM * 60000);
elapsedS = Math.floor(remaining / 1000);
remaining = remaining - (elapsedS * 1000);
elapsedH = Math.floor(remaining / 10);
if (elapsedHours < 10) {
hours = "0" + elapsedHours.toString();
} else {
hours = elapsedHours.toString();
}
if (elapsedM < 10) {
minutes = "0" + elapsedM.toString();
} else {
minutes = elapsedM.toString();
}
if (elapsedS < 10) {
seconds = "0" + elapsedS.toString();
} else {
seconds = elapsedS.toString();
}
if (elapsedH < 10) {
hundredths = "0" + elapsedH.toString();
} else {
hundredths = elapsedH.toString();
}
_root.timer_txt = (((minutes + ":") + seconds) + ":") + hundredths;
}
};
_x = (_x + _root.distanceX);
_y = (_y + _root.distanceY);
_root.createEmptyMovieClip("crashSound", 90949);
crash = new Sound(_root.crashSound);
crash.attachSound("crash");
crash.setVolume(70);
crash2 = new Sound(_root.crashSound);
crash2.attachSound("crash2");
crash2.setVolume(70);
crash3 = new Sound(_root.crashSound);
crash3.attachSound("crash3");
crash3.setVolume(70);
var lTime = 0;
var frameCount = 0;
car.onEnterFrame = function () {
timesf = getTimer();
frameCount++;
if ((getTimer() - lTime) >= 1000) {
lTime = getTimer();
_root.fps = frameCount;
frameCount = 0;
}
};
Instance of Symbol 387 MovieClip "bg2" in Frame 7
onClipEvent (load) {
_root.blurList.push(this);
this.cacheAsBitmap = true;
grass.duplicateMovieClip("grassb", 1000);
grassb._x = grass._x + grass._width;
grassb.duplicateMovieClip("grassc", 1001);
grassc._x = grassb._x + grassb._width;
grass.duplicateMovieClip("grassd", 1002);
grassd._x = (grass._x - grass._width) + 1;
grassd.duplicateMovieClip("grasse", 1003);
grasse._x = (grassd._x - grassd._width) + 1;
}
onClipEvent (enterFrame) {
if (q == undefined) {
_root.cam.scrollTarget.push(this);
q = 1;
}
if (_x > 1635) {
_x = 0;
}
if (_x < -1635) {
_x = 0;
}
if (_y > 600) {
_y = (_parent.bg._y - _height);
}
if (_y < -800) {
_y = (_parent.bg._y + _height);
}
}
Instance of Symbol 387 MovieClip "bg" in Frame 7
onClipEvent (load) {
_root.blurList.push(this);
this.cacheAsBitmap = true;
grass.duplicateMovieClip("grassb", 1000);
grassb._x = grass._x + grass._width;
grassb.duplicateMovieClip("grassc", 1001);
grassc._x = grassb._x + grassb._width;
grass.duplicateMovieClip("grassd", 1002);
grassd._x = (grass._x - grass._width) + 1;
grassd.duplicateMovieClip("grasse", 1003);
grasse._x = (grassd._x - grassd._width) + 1;
}
onClipEvent (enterFrame) {
if (q == undefined) {
_root.cam.scrollTarget.push(this);
q = 1;
}
if (_x > 1635) {
_x = 0;
}
if (_x < -1635) {
_x = 0;
}
if (_y > 650) {
_y = (_parent.bg2._y - _height);
}
if (_y < -800) {
_y = (_parent.bg2._y + _height);
}
}
Instance of Symbol 393 MovieClip "car" in Frame 7
onClipEvent (load) {
function updateVars() {
rotateSpeed = speed * 0.4;
xAngle = _rotation * (Math.PI/180);
yAngle = _rotation * (Math.PI/180);
xSpeed = Math.sin(xAngle) * speed;
ySpeed = (Math.cos(yAngle) * speed) * -1;
}
this.swapDepths(999999);
m = _root._currentframe;
currentNumber = 1;
speed = 0;
accel = 0.2;
maxSpeed = 20;
hit = false;
_root.attention = this;
t = 0;
boost = false;
boostTime = 0;
shield = false;
shieldTime = 0;
gun = false;
gunTime = 0;
gunAngle = 0;
t = 0;
bulletList = new Array();
bulletList.push("");
timeStop = false;
timeStopTime = 0;
}
onClipEvent (enterFrame) {
if (!(_root._currentframe === m)) {
this.swapDepths(33);
this.removeMovieClip();
}
if (_root.timeup) {
return(undefined);
}
if (q == undefined) {
_root.cam.scrollTarget.push(this);
q = 1;
}
updateVars();
if (Key.isDown(38)) {
speed = speed + 0.5;
} else if (Key.isDown(40)) {
speed = speed - 0.5;
} else {
speed = speed * 0.8;
}
if (speed > maxSpeed) {
speed = maxSpeed;
}
if (speed < (-maxSpeed)) {
speed = -maxSpeed;
}
if (Key.isDown(37)) {
_rotation = (_rotation - rotateSpeed);
}
if (Key.isDown(39)) {
_rotation = (_rotation + rotateSpeed);
}
if (xSpeed > 0) {
dir = "right";
} else {
dir = "left";
}
if (ySpeed > 0) {
dirY = "up";
} else {
dirY = "down";
}
_y = (_y + ySpeed);
_x = (_x + xSpeed);
_root.blurAll();
if (boost) {
boostTime++;
maxSpeed = 40;
if (boostTime > 150) {
maxSpeed = 20;
boost = false;
boostTime = 0;
if (speed > 20) {
speed = 20;
}
}
}
if (shield) {
_alpha = 50;
shieldTime++;
if (shieldTime > 250) {
shield = false;
shieldTime = 0;
_alpha = 100;
}
}
if (!_root.car.timeStop) {
if (gun) {
if (gunTime == 0) {
delete bulletList;
bulletList = new Array();
bulletList.push("");
}
gunTime++;
t++;
if (t > 1) {
_root.depth++;
t = "bullet" + _root.depth;
_root.attachMovie("bullet", t, _root.depth);
_root[t]._y = _y;
_root[t]._x = _x;
xAngle = gunAngle * (Math.PI/180);
yAngle = gunAngle * (Math.PI/180);
_root[t].xSpeed = Math.sin(xAngle) * 25;
_root[t].ySpeed = (Math.cos(yAngle) * 25) * -1;
_root[t].Angle = gunAngle;
bulletList.push(_root[t]);
gunAngle = gunAngle + 10;
t = 0;
}
if (gunTime > 300) {
gun = false;
gunTime = 0;
}
}
}
if (timeStop) {
_root.timeStop.gotoAndStop(2);
timeStopTime++;
if (timeStopTime > 150) {
timeStop = false;
timeStopTime = 0;
_root.timeStop.gotoAndStop(1);
}
}
}
Instance of Symbol 409 MovieClip "cam" in Frame 7
onClipEvent (load) {
scrollTarget = new Array();
_visible = false;
Motion = 3;
mode = "normal";
transition = 4;
time = 0;
}
onClipEvent (enterFrame) {
distanceX = Math.round(_x - _root.attention._x);
distanceY = Math.round(_y - _root.attention._y);
for (i in scrollTarget) {
scrollTarget[i]._x = scrollTarget[i]._x + (distanceX / Motion);
scrollTarget[i]._y = scrollTarget[i]._y + (distanceY / Motion);
}
_root.distanceX = distanceX / Motion;
_root.distanceY = distanceY / Motion;
mode = _root.car.dir;
modeY = _root.car.dirY;
if (modeY == "down") {
if (_y < 400) {
_y = (_y + ((400 - _y) / transition));
}
}
if (modeY == "up") {
if (_y > 200) {
_y = (_y - ((_y - 200) / transition));
}
}
if (mode == "right") {
if (_x > 300) {
_x = (_x - ((_x - 300) / transition));
}
}
if (mode == "left") {
if (_x < 400) {
_x = (_x + ((400 - _x) / transition));
}
}
if (_root.shake) {
if (lol == undefined) {
_root.sX = _root._x;
_root.sY = _root._y;
}
x = -10;
y = 10;
m = Math.round(Math.random() * (y - x)) + x;
b = Math.round(Math.random() * (y - x)) + x;
_root._x = _root._x + m;
_root._y = _root._y + b;
time++;
if (time > 10) {
_root._x = 0;
_root._y = 0;
time = 0;
x = 0;
_root.shake = false;
lol = undefined;
}
}
}
Instance of Symbol 415 MovieClip "levelDis" in Frame 7
onClipEvent (load) {
this.swapDepths(4000000);
}
Instance of Symbol 429 MovieClip "HUD" in Frame 7
onClipEvent (load) {
this.swapDepths(3999990);
_root.scoreTxt = 0;
m = _root._currentframe;
}
onClipEvent (enterFrame) {
if (!(_root._currentframe === m)) {
this.swapDepths(199);
this.removeMovieClip();
}
_root.levelTxt = "level " + _root.level;
if (_root.scoreTxt < _root.score) {
_root.scoreTxt++;
}
if (_root.scoreTxt > _root.score) {
_root.scoreTxt--;
}
_root.dis = _root.level;
}
Instance of Symbol 435 MovieClip in Frame 7
on (press) {
if (_quality == "HIGH") {
nQ = "MEDIUM";
}
if (_quality == "MEDIUM") {
nQ = "LOW";
}
if (_quality == "LOW") {
nQ = "HIGH";
}
_quality = nQ;
}
onClipEvent (keyDown) {
if (Key.getCode() == 81) {
if (_quality == "HIGH") {
nQ = "MEDIUM";
}
if (_quality == "MEDIUM") {
nQ = "LOW";
}
if (_quality == "LOW") {
nQ = "HIGH";
}
_quality = nQ;
}
}
Instance of Symbol 465 MovieClip "losescreen" in Frame 7
onClipEvent (load) {
this.swapDepths(9998888);
_visible = false;
_alpha = 0;
m = _root._currentframe;
_alpha = random(20);
_x = (_x + random(10));
}
onClipEvent (enterFrame) {
pointDisplay = ("GOT " + _root.score) + " POINTS";
timerTxt = "YOU SURVIVED FOR " + _root.timer_txt;
if (_root.timeup) {
_root.time = 0;
_visible = true;
_alpha = (_alpha + 5);
}
if (_alpha > 100) {
_alpha = 100;
}
if (!(_root._currentframe === m)) {
this.swapDepths(10);
this.removeMovieClip();
}
}
Instance of Symbol 368 MovieClip in Frame 7
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Instance of Symbol 467 MovieClip "arrow" in Frame 7
onClipEvent (load) {
this.swapDepths(9349999);
m = _root._currentframe;
}
onClipEvent (enterFrame) {
if (!(_root._currentframe === m)) {
this.swapDepths(55);
this.removeMovieClip();
}
_x = _root.car._x;
_y = _root.car._y;
targetNumber = _root.car.currentNumber;
word = "bomb" + targetNumber;
target = _root[word];
}
onClipEvent (enterFrame) {
targetNumber = _root.car.currentNumber;
word = "distance" + targetNumber;
target = _root[word];
deltaX = _x - target._x;
deltaY = _y - target._y;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
_rotation = (Angle + 93);
if (_root.killAll) {
this.swapDepths(20191);
this.removeMovieClip();
}
}
Frame 9
_root.timeup = false;
_root.music.stop();
losescreen.removeMovieClip();
_root.musicHolder.removeMovieClip();
_root.gotoAndStop("engine");
Symbol 15 MovieClip Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + 4);
};
Symbol 20 MovieClip Frame 1
this.onEnterFrame = function () {
_rotation = (_rotation + 4);
};
Symbol 43 MovieClip Frame 15
time = time + 1;
Symbol 48 MovieClip [powerup] Frame 1
stop();
c = random(6) + 1;
this.gotoAndStop(c);
m = _root._currentframe;
this.onEnterFrame = function () {
if (!(_root._currentframe === m)) {
this.removeMovieClip();
}
_x = (_x + _root.distanceX);
_y = (_y + _root.distanceY);
if (this.hitTest(_root.car)) {
if (used == undefined) {
used = true;
if (_currentframe == 1) {
_root.score = _root.score + 100;
holy = new Sound(this);
holy.attachSound("holy");
if (_root.sound) {
holy.start();
}
_root.display_bonus.play();
}
if (_currentframe == 2) {
_root.car.boost = true;
holy = new Sound(this);
holy.attachSound("booster");
if (_root.sound) {
holy.start();
}
_root.display_speedboost.play();
}
if (_currentframe == 3) {
_root.car.shield = true;
shield = new Sound(this);
shield.attachSound("shield");
shield.setVolume(500);
if (_root.sound) {
shield.start();
}
_root.display_invincible.play();
}
if (_currentframe == 4) {
_root.car.gun = true;
gun = new Sound(this);
gun.attachSound("gun");
if (_root.sound) {
gun.start();
}
_root.display_cannon.play();
}
if (_currentframe == 5) {
_root.car.timeStop = true;
time = new Sound(this);
time.attachSound("time");
time.setVolume(600);
if (_root.sound) {
time.start();
}
_root.display_timefreeze.play();
}
if (_currentframe == 6) {
_root.time = _root.time + 5;
time = new Sound(this);
time.attachSound("time");
time.setVolume(600);
if (_root.sound) {
time.start();
}
_root.display_timeboost.play();
}
}
}
if (used) {
_alpha = (_alpha - 5);
if (_alpha < 30) {
_root.checkLvl();
this.removeMovieClip();
}
}
if (_x < -400) {
this.removeMovieClip();
trace("goneNow");
}
if (_x > 1200) {
this.removeMovieClip();
trace("goneNow");
}
if (_y < -700) {
this.removeMovieClip();
trace("goneNow");
}
if (_y > 1200) {
this.removeMovieClip();
trace("goneNow");
}
};
Symbol 48 MovieClip [powerup] Frame 2
stop();
Symbol 48 MovieClip [powerup] Frame 3
stop();
Symbol 48 MovieClip [powerup] Frame 4
stop();
Symbol 48 MovieClip [powerup] Frame 5
stop();
Symbol 48 MovieClip [powerup] Frame 6
stop();
Symbol 51 MovieClip [bg] Frame 1
hitLeft = false;
hitRight = false;
hitUp = false;
hitDown = false;
_root.bgcount = _root.bgcount + 1;
onEnterFrame = function () {
if (_root.bg.hitTest(_x, _y, true)) {
if (!(_name === "bg")) {
this.removeMovieClip();
}
}
if (!hitLeft) {
if (leftTest.hitTest(_root.HUD.bgtestA)) {
if (_root.car.dir == "left") {
_root.makeDots("left");
}
}
}
if (!hitRight) {
if (rightTest.hitTest(_root.HUD.bgtestB)) {
if (_root.car.dir == "right") {
_root.makeDots("right");
}
}
}
};
Instance of Symbol 50 MovieClip "leftTest" in Symbol 51 MovieClip [bg] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.HUD.endA)) {
if (_root.car.dir == "right") {
_root.bgcount--;
_parent.parent.hitLeft = false;
_parent.parent.m = undefined;
_parent.removeMovieClip();
}
}
}
Instance of Symbol 50 MovieClip "rightTest" in Symbol 51 MovieClip [bg] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.HUD.endB)) {
if (_root.car.dir == "left") {
_root.bgcount--;
_parent.parent.hitRight = false;
_parent.parent.m = undefined;
_parent.removeMovieClip();
}
}
}
Instance of Symbol 50 MovieClip "upTest" in Symbol 51 MovieClip [bg] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.HUD.endD)) {
_root.bgcount--;
_parent.removeMovieClip();
}
}
Instance of Symbol 50 MovieClip "downTest" in Symbol 51 MovieClip [bg] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.HUD.endC)) {
_root.bgcount--;
_parent.removeMovieClip();
}
}
Symbol 53 MovieClip [trail] Frame 1
time = 0;
this.cacheAsBitmap = true;
m = _root._currentframe;
if ((_root.car.speed < 2) and (_root.car.speed > -2)) {
this.removeMovieClip();
}
this.cacheAsBitmap = true;
this.onEnterFrame = function () {
if (!(_root._currentframe === m)) {
this.removeMovieClip();
}
_x = (_x + _root.distanceX);
_y = (_y + _root.distanceY);
time++;
if (time > 50) {
_alpha = (_alpha - 20);
if (_alpha < 0) {
this.removeMovieClip();
}
}
};
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 60 MovieClip [bomb] Frame 1
m = _root._currentframe;
targeted = false;
if (_root.arrow.target == this) {
_visible = true;
} else {
_visible = false;
}
this.onEnterFrame = function () {
if (!(_root._currentframe === m)) {
this.removeMovieClip();
}
_x = (_x + _root.distanceX);
_y = (_y + _root.distanceY);
if (!targeted) {
if (_root.arrow.target == this) {
_visible = true;
targeted = true;
} else {
_visible = false;
}
}
if (_root.arrow.target == this) {
if (this.hitTest(_root.car)) {
if (used == undefined) {
circles.gotoAndStop(2);
used = true;
_root.targets++;
_root.car.currentNumber++;
_root.score = _root.score + 5;
_root.time = _root.time + 2;
deactivate = new Sound(this);
deactivate.attachSound("deactivate");
if (_root.sound) {
deactivate.start();
}
}
}
}
if (used) {
_alpha = (_alpha - 5);
if (_alpha < 30) {
_root.checkLvl();
this.removeMovieClip();
}
}
};
word = "distance" + number;
_root[word] = this;
Instance of Symbol 63 MovieClip "HUD" in Symbol 65 MovieClip [dots] Frame 1
onClipEvent (load) {
this.swapDepths(10000);
}
Symbol 110 MovieClip [explosion] Frame 2
boom = new Sound(this);
this.boom.attachSound("boom");
this.boom.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
boom.setPan(dis);
}
if (_root.sound) {
this.boom.start();
}
Symbol 110 MovieClip [explosion] Frame 12
_parent.removeMovieClip();
this.removeMovieClip();
Symbol 115 MovieClip [van] Frame 1
function updateVars() {
rotateSpeed = speed * 0.2;
xAngle = _rotation * (Math.PI/180);
yAngle = _rotation * (Math.PI/180);
xSpeed = Math.sin(xAngle) * speed;
ySpeed = (Math.cos(yAngle) * speed) * -1;
}
stop();
_root.cam.scrollTarget.push(this);
speed = 2;
m = _root._currentframe;
_root.blurList.push(this);
hit = false;
t = 0;
explode = false;
onEnterFrame = function () {
if (!(_root._currentframe === m)) {
this.removeMovieClip();
}
enemies = _root.car.bulletList;
if (speed < 2) {
speed = speed + 0.05;
}
updateVars();
if (!_root.timeup) {
if (!_root.car.timeStop) {
_y = (_y - ySpeed);
_x = (_x - xSpeed);
}
}
if (!explode) {
if (this.hitTest(_root.car.square)) {
if (!_root.car.shield) {
if (!hit) {
_root.car.speed = _root.car.speed * -0.9;
speed = speed * -0.9;
hit = true;
_root.cSound();
_root.shake = true;
}
}
}
}
if (hit) {
t++;
if (t > 20) {
_alpha = (_alpha - 10);
if (_alpha < 0) {
this.removeMovieClip();
}
}
}
if (_x < -200) {
this.removeMovieClip();
trace("goneNow");
}
if (_x > 900) {
this.removeMovieClip();
trace("goneNow");
}
if (_y < -500) {
this.removeMovieClip();
trace("goneNow");
}
if (_y > 900) {
this.removeMovieClip();
trace("goneNow");
}
for (whois_hitting in enemies) {
if (this.hitTest(enemies[whois_hitting])) {
explode = true;
_root[enemies[whois_hitting]].hit = true;
}
}
if (explode) {
this.gotoAndStop(2);
}
};
Symbol 115 MovieClip [van] Frame 2
stop();
Symbol 118 MovieClip [bullet] Frame 1
stop();
gun = new Sound(this);
gun.attachSound("shot");
if (_root.sound) {
gun.start();
}
this.onEnterFrame = function () {
if (_root.car.timeStop) {
_x = (_x + _root.distanceX);
_y = (_y + _root.distanceY);
}
if (!_root.car.timeStop) {
_x = (_x + xSpeed);
_y = (_y + ySpeed);
}
_rotation = Angle;
if (_x < -200) {
this.removeMovieClip();
trace("goneNow");
}
if (_x > 900) {
this.removeMovieClip();
trace("goneNow");
}
if (_y < -500) {
this.removeMovieClip();
trace("goneNow");
}
if (_y > 900) {
this.removeMovieClip();
trace("goneNow");
}
if (hit) {
this.gotoAndStop(2);
}
};
Symbol 118 MovieClip [bullet] Frame 2
stop();
Symbol 144 MovieClip Frame 11
_parent.gotoAndStop(2);
Symbol 154 MovieClip Frame 1
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
barmask._xscale = percent * 100;
};
Symbol 186 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 186 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 197 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 197 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 205 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 205 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 213 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 213 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 221 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 221 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 229 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 229 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 237 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 237 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 245 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 245 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 252 MovieClip Frame 133
_root.play();
Symbol 253 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 264 MovieClip Frame 248
_root.createEmptyMovieClip("menumusic", 5000);
mozart = new Sound(_root.menumusic);
mozart.attachSound("mozart");
mozart.start(0, 999);
_root.play();
Symbol 271 MovieClip Frame 101
_root.play();
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 2
stop();
Symbol 275 MovieClip Frame 3
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 2
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 2
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 2
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Symbol 317 MovieClip Frame 1
stop();
Instance of Symbol 316 MovieClip "m" in Symbol 317 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 10
_root.gotoAndStop(where);
if (where == "more_games") {
getURL ("http://www.mofunzone.com/", "_blank");
}
Symbol 365 MovieClip Frame 11
if (where == "more_games") {
stop();
t = 0;
}
this.onEnterFrame = function () {
t++;
if (t > 50) {
play();
where = undefined;
delete onEnterFrame;
}
};
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 2
stop();
Instance of Symbol 389 MovieClip in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(5);
f = 5;
}
onClipEvent (enterFrame) {
if (_root.timeup) {
return(undefined);
}
if (Key.isDown(37)) {
f = f + 1;
}
if (Key.isDown(39)) {
f = f - 1;
}
if ((!Key.isDown(39)) and (!Key.isDown(37))) {
if (f < 5) {
f++;
}
if (f > 5) {
f--;
}
}
if (f > 10) {
f = 10;
}
if (f < 1) {
f = 1;
}
this.gotoAndStop(f);
}
Instance of Symbol 389 MovieClip in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(5);
f = 5;
}
onClipEvent (enterFrame) {
if (_root.timeup) {
return(undefined);
}
if (Key.isDown(39)) {
f = f + 1;
}
if (Key.isDown(37)) {
f = f - 1;
}
if ((!Key.isDown(39)) and (!Key.isDown(37))) {
if (f < 5) {
f++;
}
if (f > 5) {
f--;
}
}
if (f > 10) {
f = 10;
}
if (f < 1) {
f = 1;
}
this.gotoAndStop(f);
_root.car.rF = f;
}
Instance of Symbol 113 MovieClip in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
function trail() {
t = "trail" + _root.depthHolder;
_root.attachMovie("trail", t, _root.depthHolder + 1000000);
_root.depthHolder++;
_root[t]._x = point.x;
_root[t]._y = point.y;
_root[t]._rotation = _root.car._rotation;
}
t = 0;
point = new Object();
}
onClipEvent (enterFrame) {
t++;
if ((_root.car.speed > 2) or (_root.car.speed < -2)) {
if (t > 2) {
trail();
t = 0;
}
}
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
}
Instance of Symbol 113 MovieClip in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
function trail() {
t = "trail" + _root.depthHolder;
_root.attachMovie("trail", t, _root.depthHolder + 1000000);
_root.depthHolder++;
_root[t]._x = point.x;
_root[t]._y = point.y;
_root[t]._rotation = _root.car._rotation;
}
t = 0;
point = new Object();
}
onClipEvent (enterFrame) {
t++;
if ((_root.car.speed > 2) or (_root.car.speed < -2)) {
if (t > 2) {
trail();
t = 0;
}
}
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
}
Symbol 397 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 2
m = new Sound(this);
m.attachSound("metal_door_huge");
if (_root.sound) {
m.start();
}
Symbol 421 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 2
stop();
Instance of Symbol 421 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) {
if (_root.sound) {
_root.sound = true;
this.gotoAndStop(1);
_root.music.setVolume(100);
return(undefined);
}
if (!_root.sound) {
_root.music.setVolume(0);
this.gotoAndStop(2);
}
}
on (press) {
if (!_root.sound) {
_root.sound = true;
this.gotoAndStop(1);
_root.music.setVolume(100);
return(undefined);
}
if (_root.sound) {
_root.sound = false;
_root.music.setVolume(0);
this.gotoAndStop(2);
}
}
Instance of Symbol 427 MovieClip "timer" in Symbol 429 MovieClip Frame 1
onClipEvent (load) {
beep = new Sound(this);
beep.attachSound("beep");
}
onClipEvent (enterFrame) {
dX = Math.abs(_root.car._x - _root.arrow.target._x);
dY = Math.abs(_root.car._y - _root.arrow.target._y);
distance = Math.sqrt(dX) * Math.sqrt(dY);
if (distance < 1300) {
v = 0;
}
if (distance < 1000) {
v = 2;
}
if (distance < 9000) {
v = 10;
}
if (distance < 800) {
v = 15;
}
if (distance < 700) {
v = 20;
}
if (distance < 600) {
v = 25;
}
if (distance < 500) {
v = 30;
}
if (distance < 400) {
v = 35;
}
if (distance < 400) {
v = 40;
}
if (distance < 300) {
v = 45;
}
if (distance < 200) {
v = 50;
}
if (distance < 100) {
v = 55;
}
beep.setVolume(v);
}
Symbol 432 MovieClip Frame 12
stop();
Symbol 433 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 2
stop();
Symbol 462 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 1
stop();
Instance of Symbol 450 MovieClip in Symbol 465 MovieClip Frame 1
on (release) {
_root.gotoAndPlay("reset");
}
Instance of Symbol 457 MovieClip in Symbol 465 MovieClip Frame 1
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Instance of Symbol 459 MovieClip in Symbol 465 MovieClip Frame 1
on (release) {
stopAllSounds();
_root.gotoAndStop("menu");
}
Instance of Symbol 462 MovieClip in Symbol 465 MovieClip Frame 1
on (press) {
getURL ("http://www.mofunzone.com/online_games/bomb_detonator.shtml", "_blank");
}
Instance of Symbol 464 MovieClip in Symbol 465 MovieClip Frame 1
on (release) {
getURL ("http://www.mofunzone.com/game_scores/bomb_detonator/highscores.shtml", "_blank");
}