Frame 1
var music = 3;
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
percentbytes = int(loadedbytes / (totalbytes / 100));
tellTarget (_root.loader) {
gotoAndStop(_root.percentbytes);
};
Frame 2
if (loadedbytes == totalbytes) {
_root.nextFrame();
} else {
gotoAndPlay (1);
}
Frame 3
function EncrpytString(strVal) {
var _local7 = "aHfEjcDebChGiAfIjDbEjacD";
var _local8 = _local7.length;
var _local11 = "0";
var _local3 = "";
var _local9 = strVal.length;
var _local1 = 0;
_local3 = "";
var _local4;
var _local6;
var _local2;
var _local5 = 0;
nCnt = 0;
while (nCnt < _local9) {
_local4 = strVal.charCodeAt(nCnt);
if (_local4 >= 128) {
_local4 = "X";
}
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = (_local4 % 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
_local5 = _local5 + _local2;
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = Math.floor(_local4 / 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
_local5 = _local5 + _local2;
nCnt++;
}
_local5 = _local5 % 256;
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = (_local5 % 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
_local6 = _local7.charCodeAt(_local1);
_local1 = _local1 + 1;
if (_local1 >= _local8) {
_local1 = 0;
}
_local2 = Math.floor(_local5 / 16) + _local6;
_local3 = _local3 + String.fromCharCode(_local2);
return(_local3);
}
function GetUrlParam(strUrl, strParam) {
var _local4 = strUrl.toLowerCase();
var _local1 = _local4.indexOf(strParam);
var _local5 = strParam.length;
if (_local1 > 0) {
var _local3;
var _local2 = _local4.indexOf("&", _local1 + _local5);
if (_local2 > 0) {
_local3 = _local2 - _local1;
} else {
_local3 = strUrl.length - _local1;
}
return(strUrl.substr(_local1 + _local5, _local3));
}
return("");
}
function GetBaseUrl(strUrl) {
var _local1 = strUrl.toLowerCase();
var _local2 = _local1.length;
var _local3 = _local1.indexOf("?", 0);
if (_local3 > 0) {
_local2 = _local3;
}
var _local4 = "download";
if (_local1.substr(0, 4) == "http") {
_local4 = strUrl.substr(7, _local2 - 7);
}
return(_local4);
}
stop();
Instance of Symbol 91 MovieClip in Frame 3
on (release) {
getURL ("http://www.arcadetown.com/index.asp?gameid=defendyourdirt", "_blank");
}
Frame 4
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("a861a48a", this, 10301, true);
Instance of Symbol 155 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndPlay((_root.music = _root.music - 2));
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.music);
}
Frame 6
var maxe = 3;
var edam = 15;
Frame 7
function tmrpaus() {
if (_root.pausegame == false) {
tmrup = tmrup + 1;
}
}
var bc = 1000;
var pausegame = false;
var shop = false;
var e = 1;
var money = 0;
var ballspeed = 3;
var bmback = createEmptyMovieClip("bmc", 1);
var bmbackp = (new flash.display.BitmapData(400, 400, true, 0));
var shooting = false;
var ticks = 0;
var maxtime = 15;
var i = 0;
var bi = 1;
var removeclips = false;
var kills = 0;
_root.kills = kills;
_root.mon = money;
var hits = 0;
var shot = 0;
var score = 0;
var wpn = 1;
var t = 1;
var ttot = 0;
var tmax = 0;
var level = 1;
var lives = 3;
var tmrup = 0;
var die = false;
var glowshadow = (new flash.filters.GlowFilter(0, 0.3, 7, 7, 3, 3, false, false));
bmback.attachBitmap(bmbackp, 1);
bolts = function (x, y, r) {
bltemp = _root.createEmptyMovieClip("bltemp", _root.getNextHighestDepth());
bltemp.attachMovie("bolts", "bolts", 1, {_x:x, _y:y, _rotation:r});
bltemp.bolts.gotoAndStop(random(6) + 1);
bltemp.bolts._xscale = (Math.random() * 50) + 100;
bltemp.bolts._yscale = (Math.random() * 50) + 100;
bltemp.bolts._alpha = (Math.random() * 30) + 100;
bmbackp.draw(bltemp);
bltemp.removeMovieClip();
};
dirtbits = function (x, y, r) {
dirttemp = _root.createEmptyMovieClip("dirttemp", _root.getNextHighestDepth());
dirttemp.attachMovie("dirtbits", "dirtbits", 1, {_x:x, _y:y, _rotation:r});
dirttemp.dirtbits.gotoAndStop(_root.dirt._currentframe);
dirttemp.dirtbits.dirts.gotoAndStop(random(6) + 1);
dirttemp.dirtbits._xscale = (Math.random() * 50) + 100;
dirttemp.dirtbits._yscale = (Math.random() * 50) + 100;
dirttemp.dirtbits._alpha = (Math.random() * 30) + 100;
bmbackp.draw(dirttemp);
dirttemp.removeMovieClip();
};
dead = function (x, y, r) {
dedtemp = _root.createEmptyMovieClip("dedtemp", _root.getNextHighestDepth());
dedtemp.attachMovie("dead", "dead", 1, {_x:x, _y:y, _rotation:r});
dedtemp.dead.gotoAndStop(random(3) + 1);
bmbackp.draw(dedtemp);
dedtemp.removeMovieClip();
};
bdead = function (x, y, r) {
bmbackp.draw(_root.ball);
_root.ball.removeMovieClip();
};
var boom = function (x, y, r) {
boomtemp.boom.gotoAndStop(random(2) + 1);
boomtemp = _root.createEmptyMovieClip("boomtemp", _root.getNextHighestDepth());
boomtemp.attachMovie("boom", "boom", 1, {_x:x, _y:y, _rotation:r});
};
onMouseDown = function () {
if (_root.pausegame == false) {
if (_root.die == false) {
shooting = true;
if (Key.isDown(16)) {
if (ttot < tmax) {
duplicateMovieClip (_root.turret, "t" + tc, tc);
ttot = ttot + 1;
}
}
}
}
};
onMouseUp = function () {
shooting = false;
};
onEnterFrame = function () {
if (_root.removeclips == true) {
_root.bmback.removeMovieClip();
}
_root.info.score = score;
if (Key.isDown(80)) {
if ((_root.pausegame == false) && (_root.paus._currentframe == 1)) {
_root.pausegame = true;
_root.paus.play();
} else if ((_root.pausegame == true) && (_root.paus._currentframe == 45)) {
_root.paus.play();
}
}
if (_root.pausegame == false) {
_root.uptmr = tmrup;
_root.ball._x = _root.ball._x + (Key.isDown(68) * ballspeed);
_root.ball._x = _root.ball._x - (Key.isDown(65) * ballspeed);
_root.ball._y = _root.ball._y + (Key.isDown(83) * ballspeed);
_root.ball._y = _root.ball._y - (Key.isDown(87) * ballspeed);
if (_root.ball._x <= 10) {
_root.ball._x = 10;
}
if (_root.ball._x >= 390) {
_root.ball._x = 390;
}
if (_root.ball._y <= 10) {
_root.ball._y = 10;
}
if (_root.ball._y >= 390) {
_root.ball._y = 390;
}
ticks++;
if (ticks > maxtime) {
ticks = maxtime;
}
if ((shooting == true) && (ticks == maxtime)) {
if (_root.die == false) {
bc++;
shot++;
ticks = 0;
if (bc > 1100) {
bc = 1000;
}
duplicateMovieClip ("bullet", "b" + bc, bc);
_root.ball.play();
if (_root.i <= 5) {
_root.ball.fire.play();
}
}
}
}
};
stop();
var startTime = "nothing";
var tim = "nothing";
var countdown = setInterval(function () {
}, 1000);
myTimer = setInterval(tmrpaus, 1000);
Instance of Symbol 264 MovieClip "dirt" in Frame 7
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == false) {
this.swapDepths(_root.getNextHighestDepth());
}
}
Instance of Symbol 293 MovieClip "dump" in Frame 7
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == false) {
this.swapDepths(_root.getNextHighestDepth());
}
}
Instance of Symbol 301 MovieClip "enemy1" in Frame 7
onClipEvent (load) {
this.filters = [_root.glowshadow];
go = true;
ticks = 0;
maxtime = 30;
oebc = random(100);
ebc = oebc;
this.hp = 100;
this.maxhp = 100;
espd = 0.005;
spawn = random(4);
if (spawn == 0) {
this._x = -20;
this._y = random(420);
}
if (spawn == 1) {
this._x = 420;
this._y = random(420);
}
if (spawn == 2) {
this._x = random(570);
this._y = -20;
}
if (spawn == 3) {
this._x = random(420);
this._y = 420;
}
}
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == false) {
ticks++;
if (ticks > maxtime) {
ticks = maxtime;
}
if (_root.ball.hitTest(this.hit)) {
if (_root.info.lives > 0) {
_root.bolts((x = _root.ball._x), (y = _root.ball._y), (bolts._rotation = _root.ball._rotation));
}
}
this.hpbar._xscale = (this.hp / this.maxhp) * 100;
if (this.hp <= 0) {
_root.boom((x = this._x), (y = this._y));
_root.dead((x = this._x), (y = this._y), (dead._rotation = this._rotation));
_root.score = _root.score + 10;
_root.e++;
duplicateMovieClip (this, "enemy" + _root.e, _root.e);
if (_root.e <= _root.maxe) {
this.hp = 100;
go = true;
this.maxhp = 100;
spawn = random(4);
if (spawn == 0) {
this._x = -20;
this._y = random(420);
}
if (spawn == 1) {
this._x = 420;
this._y = random(420);
}
if (spawn == 2) {
this._x = random(570);
this._y = -20;
}
if (spawn == 3) {
this._x = random(420);
this._y = 420;
}
} else {
this.removeMovieClip();
}
}
if (_root.dirt.stop.hitTest(this.hit)) {
go = false;
}
Xd = _root.dirt._x - _x;
Yd = _root.dirt._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
if (espd < 0.005) {
espd = espd + 0.001;
} else {
espd = 0.005;
}
updateAfterEvent();
this.swapDepths(_root.getNextHighestDepth());
var rads = (Math.PI/180);
var angle;
if (go == true) {
this._rotation = angle / rads;
this._x = this._x + ((_root.dirt._x - this._x) * espd);
this._y = this._y + ((_root.dirt._y - this._y) * espd);
} else if (go == false) {
if (ticks == maxtime) {
ebc = ebc + 1;
ticks = 0;
if (ebc > (oebc + 10)) {
ebc = oebc;
}
duplicateMovieClip (_root.ebul, "e" + ebc, ebc);
i = ebc;
while (i < (oebc + 11)) {
_root["e" + i]._x = this._x;
_root["e" + i]._y = this._y;
_root["e" + i]._rotation = this._rotation;
this.play();
i++;
}
}
}
i = 1000;
while (i < 1101) {
if (_root["b" + i].hitTest(this.hit)) {
this.hp = this.hp - _root.edam;
_root.bolts((x = this._x), (y = this._y), (bolts._rotation = _root["b" + i]._rotation));
espd = -0.005;
_root["b" + i].removeMovieClip();
}
i++;
}
}
}
Instance of Symbol 327 MovieClip "bullet" in Frame 7
onClipEvent (load) {
this._alpha = 100;
spd = 10;
_x = _root.ball._x;
_y = _root.ball._y;
_rotation = _root.ball._rotation;
brot = 180;
this.gotoAndStop(_root.bi);
}
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == false) {
if (!(this._alpha === 0)) {
this._alpha = this._alpha - 1;
}
if (_name == "bullet") {
_x = -1000;
} else if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI / brot) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI / brot) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI / brot) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI / brot) * _rotation)));
}
if ((_y > 400) or (_y < 0)) {
spd = spd * -1;
brot = brot * -1;
}
if ((_x < 0) or (_x > 400)) {
spd = spd * -1;
brot = brot - 180;
}
if (this._alpha <= 0) {
this.removeMovieClip();
}
if (_root.dirt.hit.hitTest(this)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 327 MovieClip "ebul" in Frame 7
onClipEvent (load) {
this._alpha = 100;
spd = 3;
this.gotoAndStop("enbul");
}
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == false) {
if (!(this._alpha === 0)) {
this._alpha = this._alpha - 1;
}
if (_name == "ebul") {
_x = -1000;
} else if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if (this._alpha <= 0) {
this.removeMovieClip();
}
if (_root.dirt.hit.hitTest(this)) {
_root.dirtbits((x = _root.dirt._x), (y = _root.dirt._y), (dirtbits._rotation = this._rotation));
_root.dirt.hp.nextFrame();
this.removeMovieClip();
}
}
}
Instance of Symbol 327 MovieClip "tbul" in Frame 7
onClipEvent (load) {
this._alpha = 100;
spd = 3;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == false) {
if (!(this._alpha === 0)) {
this._alpha = this._alpha - 1;
}
if (_name == "tbul") {
_x = -1000;
} else if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if (this._alpha <= 0) {
this.removeMovieClip();
}
if (this.hitTest(_root["enemy" + _root.e])) {
_root["enemy" + _root.e].hp = _root["enemy" + _root.e].hp - 10;
_root.bolts((x = _root["enemy" + _root.e]._x), (y = _root["enemy" + _root.e]._y), (bolts._rotation = this._rotation));
_root["enemy" + _root.e].espd = -0.005;
this.removeMovieClip();
}
if (_root.dirt.hit.hitTest(this)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 220 MovieClip "ball" in Frame 7
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == false) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
this.swapDepths(_root.getNextHighestDepth());
}
if (_root.dirt.hit.hitTest(_x + (_width / 2), _y, true)) {
this._x = this._x - _root.ballspeed;
}
if (_root.dirt.hit.hitTest(_x - (_width / 2), _y, true)) {
this._x = this._x + _root.ballspeed;
}
if (_root.dirt.hit.hitTest(_x, _y + (_height / 2), true)) {
this._y = this._y - _root.ballspeed;
}
if (_root.dirt.hit.hitTest(_x, _y - (_height / 2), true)) {
this._y = this._y + _root.ballspeed;
}
}
Instance of Symbol 60 MovieClip [turret] "turret" in Frame 7
onClipEvent (load) {
this.filters = [_root.glowshadow];
ticks = 0;
maxtime = 30;
otbc = random(100);
tbc = otbc;
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_name == "turret") {
yes = false;
this._x = -100;
} else {
yes = true;
}
}
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == false) {
if (yes == true) {
this.ticks++;
if (this.ticks > this.maxtime) {
this.ticks = this.maxtime;
}
Xd = _root["enemy" + _root.e]._x - _x;
Yd = _root["enemy" + _root.e]._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
this.swapDepths(_root.getNextHighestDepth());
}
if (this.ticks == this.maxtime) {
tbc = tbc + 1;
ticks = 0;
if (tbc > (otbc + 10)) {
tbc = otbc;
}
duplicateMovieClip (_root.tbul, "t" + tbc, tbc);
i = tbc;
while (i < (otbc + 11)) {
_root["t" + i]._x = this._x;
_root["t" + i]._y = this._y;
_root["t" + i]._rotation = this._rotation;
this.play();
i++;
}
}
}
}
Instance of Symbol 336 MovieClip "pwrups" in Frame 7
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == false) {
this.swapDepths(_root.getNextHighestDepth());
}
}
Instance of Symbol 346 MovieClip in Frame 7
onClipEvent (load) {
this._x = random(400);
this._y = random(400);
}
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == false) {
if (_root.dirt.hitTest(this)) {
this.play();
this._x = random(400);
this._y = random(400);
}
this.swapDepths(_root.getNextHighestDepth());
if (_root.ball.hitTest(this)) {
if (this.pwr._currentframe == 1) {
_root.pwrups.speed.gotoAndPlay(2);
this.play();
this._x = random(400);
this._y = random(400);
} else if (this.pwr._currentframe == 2) {
_root.pwrups.rapid.gotoAndPlay(2);
this.play();
this._x = random(400);
this._y = random(400);
} else if (this.pwr._currentframe == 3) {
_root.pwrups.speed.gotoAndPlay(2);
_root.pwrups.rapid.gotoAndPlay(2);
this.play();
this._x = random(400);
this._y = random(400);
} else if (this.pwr._currentframe == 4) {
_root.bi = _root.bi + 1;
_root.info.wpnlvl = _root.info.wpnlvl + 1;
_root.edam = _root.edam + 2;
this.play();
this._x = random(400);
this._y = random(400);
}
}
}
}
Instance of Symbol 357 MovieClip "info" in Frame 7
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == false) {
this.swapDepths(_root.getNextHighestDepth());
}
}
Instance of Symbol 361 MovieClip "lvlup" in Frame 7
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
this.swapDepths(_root.getNextHighestDepth());
}
Instance of Symbol 386 MovieClip "paus" in Frame 7
onClipEvent (enterFrame) {
if (_root.removeclips == true) {
this.removeMovieClip();
}
if (_root.pausegame == true) {
this.swapDepths(_root.getNextHighestDepth());
}
}
Frame 8
if (_root.diff == "easy") {
_root.score = _root.score + 100;
}
if (_root.diff == "medium") {
_root.score = _root.score + 200;
}
if (_root.diff == "hard") {
_root.score = _root.score + 350;
}
if (_root.diff == "extreme") {
_root.score = _root.score + 500;
}
_root.pausegame = true;
_root.uptmr = int((_root.tmrup / 60) * 100) / 100;
_root.scr = _root.score;
_root.finals = _root.tmrup * _root.score;
Frame 9
if (_root.diff == "easy") {
_root.score = _root.score + 100;
}
if (_root.diff == "medium") {
_root.score = _root.score + 200;
}
if (_root.diff == "hard") {
_root.score = _root.score + 350;
}
if (_root.diff == "extreme") {
_root.score = _root.score + 500;
}
_root.pausegame = true;
_root.uptmr = int((_root.tmrup / 60) * 100) / 100;
_root.scr = _root.score;
_root.finals = 2000 + (_root.tmrup * _root.score);
Symbol 45 MovieClip Frame 23
this.removeMovieClip();
Symbol 46 MovieClip [boom] Frame 1
onEnterFrame = function () {
if (explo._currentframe == 23) {
this.removeMovieClip();
}
};
stop();
Symbol 46 MovieClip [boom] Frame 2
onEnterFrame = function () {
if (explo._currentframe == 23) {
this.removeMovieClip();
}
};
Symbol 56 MovieClip Frame 1
stop();
Symbol 60 MovieClip [turret] Frame 1
stop();
Symbol 72 Button
on (release) {
getURL ("http://www.pillowbasher.com/", "_blank");
}
Symbol 91 MovieClip Frame 160
_root.nextFrame();
Symbol 100 Button
on (release) {
gotoAndStop ("diff");
}
Symbol 107 Button
on (release) {
this.gotoAndStop("inst");
}
Symbol 112 Button
on (release) {
getURL ("http://www.arcadetown.com/index.asp?gameid=defendyourdirt", "_blank");
}
Symbol 117 Button
on (release) {
getURL ("http://www.arcadetown.com/free_content/index.asp", "_blank");
}
Symbol 121 Button
on (release) {
getURL ("http://www.arcadetown.com/index.asp?gameid=defendyourdirt", "_blank");
}
Symbol 126 Button
on (release) {
getURL ("http://www.arcadetown.com/defendyourdirt/view_high_scores.asp", "_blank");
}
Symbol 135 Button
on (release) {
_root.music = _root.music + 1;
}
Symbol 136 Button
on (release) {
_root.music = _root.music + 8;
}
Symbol 138 Button
on (release) {
_root.music = 11;
}
Symbol 139 Button
on (release) {
_root.music = _root.music + 7;
}
Symbol 141 Button
on (release) {
_root.music = _root.music + 1;
}
Symbol 142 Button
on (release) {
_root.music = _root.music - 3;
}
Symbol 146 Button
on (release) {
_root.music = _root.music - 9;
}
Symbol 147 Button
on (release) {
_root.music = _root.music - 3;
}
Symbol 149 Button
on (release) {
_root.music = _root.music - 10;
}
Symbol 150 Button
on (release) {
_root.music = _root.music - 4;
}
Symbol 151 Button
on (release) {
_root.music = _root.music - 10;
}
Symbol 152 Button
on (release) {
_root.music = _root.music - 11;
}
Symbol 153 Button
on (release) {
_root.music = _root.music - 5;
}
Symbol 154 Button
on (release) {
_root.music = _root.music - 11;
}
Symbol 155 MovieClip Frame 1
stopAllSounds();
play();
_root.music = _root.music + 1;
Symbol 155 MovieClip Frame 2
stop();
_root.music = 2;
Symbol 155 MovieClip Frame 3
stopAllSounds();
play();
_root.music = _root.music + 1;
Symbol 155 MovieClip Frame 4
stop();
_root.music = 4;
Symbol 155 MovieClip Frame 5
stopAllSounds();
play();
_root.music = _root.music + 1;
Symbol 155 MovieClip Frame 6
stop();
_root.music = 6;
Symbol 155 MovieClip Frame 7
stopAllSounds();
play();
_root.music = _root.music + 1;
Symbol 155 MovieClip Frame 8
stop();
_root.music = 8;
Symbol 155 MovieClip Frame 9
stopAllSounds();
play();
_root.music = _root.music + 1;
Symbol 155 MovieClip Frame 10
stop();
_root.music = 10;
Symbol 155 MovieClip Frame 11
stopAllSounds();
play();
_root.music = _root.music + 1;
Symbol 155 MovieClip Frame 12
stopAllSounds();
_root.music = 12;
Symbol 159 Button
on (release) {
nextFrame();
}
Symbol 162 Button
on (release) {
prevFrame();
}
Symbol 219 MovieClip Frame 49
_root._root.boom((x = _root._root.ball._x), (y = _root._root.ball._y));
_root._root.ball.gotoAndStop(1);
Symbol 220 MovieClip Frame 1
stop();
_root.die = false;
Instance of Symbol 56 MovieClip in Symbol 220 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.wpn);
}
Symbol 220 MovieClip Frame 5
gotoAndStop (1);
Symbol 220 MovieClip Frame 6
stop();
_root.die = true;
Symbol 224 MovieClip Frame 1
stop();
Instance of Symbol 160 MovieClip in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 225 Button
on (release) {
gotoAndStop ("game");
}
Symbol 230 Button
on (release) {
sel.gotoAndStop("wimpy");
}
Symbol 231 Button
on (release) {
sel.gotoAndStop("easy");
}
Symbol 232 Button
on (release) {
sel.gotoAndStop("med");
}
Symbol 233 Button
on (release) {
sel.gotoAndStop("hard");
}
Symbol 234 Button
on (release) {
sel.gotoAndStop("extreme");
}
Symbol 236 MovieClip Frame 1
stop();
_root._root.maxe = 1;
_root._root.edam = 40;
var diff = "wimpy";
Symbol 236 MovieClip Frame 2
_root._root.maxe = 2;
_root._root.edam = 30;
var diff = "easy";
Symbol 236 MovieClip Frame 3
_root._root.maxe = 3;
_root._root.edam = 20;
var diff = "medium";
Symbol 236 MovieClip Frame 4
_root._root.maxe = 4;
_root._root.edam = 15;
var diff = "hard";
Symbol 236 MovieClip Frame 5
_root._root.maxe = 5;
_root._root.edam = 10;
var diff = "extreme";
Instance of Symbol 236 MovieClip "sel" in Symbol 238 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("med");
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 100
if (_root._root.lives == 0) {
_root._root.gotoAndStop("gameover");
_root._root.removeclips = true;
} else {
_root._root.info.mlv.play();
_root._root.ball.gotoAndStop("death");
_root._root.lives = _root._root.lives - 1;
gotoAndStop (50);
}
Symbol 264 MovieClip Frame 18
_root.pausegame = true;
_root.removeclips = true;
_root._root.gotoAndStop("win");
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 51
_root._root.dirt.nextFrame();
Symbol 290 MovieClip Frame 76
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 111
truck.play();
Instance of Symbol 290 MovieClip in Symbol 293 MovieClip Frame 111
onClipEvent (enterFrame) {
this.play();
}
Symbol 293 MovieClip Frame 261
_root.level = _root.level + 1;
_root.lvlup.play();
Symbol 301 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 4
_root.wpn = 2;
Symbol 327 MovieClip Frame 7
_root.wpn = 3;
Symbol 327 MovieClip Frame 10
_root.wpn = 4;
Symbol 327 MovieClip Frame 13
_root.wpn = 5;
Symbol 327 MovieClip Frame 16
_root.wpn = 6;
Symbol 327 MovieClip Frame 19
_root.wpn = 7;
Symbol 327 MovieClip Frame 22
_root.wpn = 8;
Symbol 327 MovieClip Frame 25
_root.wpn = 4;
Symbol 331 MovieClip Frame 1
stop();
_root._root.maxtime = 15;
this._visible = false;
Symbol 331 MovieClip Frame 2
_root._root.maxtime = 5;
this._visible = true;
Symbol 335 MovieClip Frame 1
stop();
_root._root.ballspeed = 3;
this._visible = false;
Symbol 335 MovieClip Frame 2
_root._root.ballspeed = 6;
this._visible = true;
Instance of Symbol 331 MovieClip "rapid" in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pausegame == true) {
this.stop();
} else if (!(this._currentframe === 1)) {
this.play();
}
}
Instance of Symbol 335 MovieClip "speed" in Symbol 336 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pausegame == true) {
this.stop();
} else if (!(this._currentframe === 1)) {
this.play();
}
}
Symbol 346 MovieClip Frame 1
stop();
Instance of Symbol 345 MovieClip "pwr" in Symbol 346 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4) + 1);
}
Symbol 356 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 1
pwrup = "none";
wpnlvl = 1;
onEnterFrame = function () {
lvs = _root.lives;
timr = _root.tim;
};
Symbol 361 MovieClip Frame 1
_root.pausegame = true;
Instance of Symbol 360 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
this.lvl = _root._root.level;
}
Symbol 361 MovieClip Frame 110
stop();
_root.pausegame = false;
_root.startTime = 30;
_root.countdown = setInterval(function () {
if (_root.pausegame == false) {
if (_root.startTime > 0) {
_root.tim = _root.startTime;
if (_root.startTime < 10) {
_root.tim = "0" + _root.tim;
}
_root.startTime--;
} else {
_root.tim = "00";
_root.dump.play();
clearInterval(_root.countdown);
_root.pausegame = true;
}
}
}, 1000);
Symbol 367 Button
on (release) {
_root._root.gotoAndStop("Menu");
_root._root.removeclips = true;
}
Symbol 368 Button
on (release) {
nextFrame();
}
Symbol 369 Button
on (release) {
gotoAndStop (3);
}
Symbol 370 Button
on (release) {
_root._root.paus.play();
}
Symbol 374 Button
on (release) {
if (_root._root.score >= 100) {
if (_root._root.tmax <= 4) {
_root._root.tmax = _root._root.tmax + 1;
_root._root.score = _root._root.score - 100;
} else {
txt = "you've reached the max number of turrets";
}
} else {
txt = "not enough points";
}
}
Symbol 375 Button
on (release) {
if (_root._root.score >= 250) {
_root._root.lives = _root._root.lives + 1;
_root._root.score = _root._root.score - 250;
} else {
txt = "not enough points";
}
}
Symbol 376 Button
on (release) {
if (_root._root.dirt.hp._currentframe != 1) {
if (_root._root.score >= 200) {
_root._root.dirt.hp.gotoAndStop(1);
_root._root.score = _root._root.score - 200;
} else {
txt = "not enough points";
}
} else {
txt = "health already full";
}
}
Symbol 382 Button
on (release) {
gotoAndStop (1);
}
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 3
onEnterFrame = function () {
avail = _root._root.score;
};
Symbol 386 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 45
stop();
Symbol 386 MovieClip Frame 84
_root.pausegame = false;
Symbol 390 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 399 Button
on (release) {
if (_root.playerName != "Your Name Here") {
if ((((((_root.playerName != "") && (_root.playerName != " ")) && (_root.playerName != " ")) && (_root.playerName != " ")) && (_root.playerName != " ")) && (_root.playerName != " ")) {
var strOut = ((((_root.playerName + "|") + _root.finals) + "|") + _root.diff);
var strOut2 = _root.EncrpytString(strOut);
getURL ("http://www.arcadetown.com/defendyourdirt/hs.asp?" + strOut2, "_blank");
_root.txtbx = "Thank You";
_root.gotoAndStop("Menu");
} else {
_root.txtbx = "Please enter your name first";
}
} else {
_root.txtbx = "Please enter your name first";
}
}
Symbol 414 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 416 Button
on (release) {
if (_root.playerName != "Your Name Here") {
if ((((((_root.playerName != "") && (_root.playerName != " ")) && (_root.playerName != " ")) && (_root.playerName != " ")) && (_root.playerName != " ")) && (_root.playerName != " ")) {
var strOut = ((_root.playerName + "|") + _root.finals);
var strOut2 = _root.EncrpytString(strOut);
getURL ("http://www.arcadetown.com/defendyourdirt/hs.asp?" + strOut2, "_blank");
_root.txtbx = "Thank You";
_root.gotoAndStop("Menu");
} else {
_root.txtbx = "Please enter your name first";
}
} else {
_root.txtbx = "Please enter your name first";
}
}