Frame 1
MochiAd.showPreGameAd({id:"07ea88bf870b0c99", res:"650x550", background:16777215, color:0, outline:0, no_bg:true});
Frame 2
myListener = new Object();
myListener.onKeyUp = function () {
if (Key.getCode() == 32) {
if (tank != undefined) {
if (mines > 0) {
mi = mine_holder.attachMovie("mine", "m" + mine_holder.getNextHighestDepth(), mine_holder.getNextHighestDepth(), {_x:tank._x, _y:tank._y});
mines--;
}
}
} else if (Key.getCode() == 77) {
if (muted) {
muted = false;
mutelogo.gotoAndPlay(3);
kirupaSound3.start(0, 99);
} else {
muted = true;
mutelogo.gotoAndPlay(4);
kirupaSound3.stop();
}
}
};
Key.addListener(myListener);
Frame 3
kirupaSound3 = new Sound(this);
kirupaSound3.attachSound("boomer.mp3");
kirupaSound3.start(0, 99);
var hsapi = new Hsapi(_root.portal_URL);
Frame 4
stop();
Instance of Symbol 334 MovieClip "inst" in Frame 4
onClipEvent (load) {
_visible = false;
}
Frame 5
kirupaSound = new Sound(this);
kirupaSound.attachSound("explode");
expl = function () {
if (!muted) {
kirupaSound.start(0, 1);
}
};
kirupaSound2 = new Sound(this);
kirupaSound2.attachSound("beep.mp3");
beep = function () {
if (!muted) {
kirupaSound2.start(0, 1);
}
};
mouse = false;
shots = (shots2 = (csb = (score = (interest = (mines = 0)))));
muted = false;
nmv = 1;
acc = 1;
speed = 0;
tank.reload = 0;
upgrades = {reload:15, damage:1};
idamage = {upgrades:[1, 1, 1, 2, 2, 2, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 22, 25, 30, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35], num:0};
ireload = {upgrades:[1, 1, 2, 2, 3, 3, 3], num:0};
chealth = 50;
tanks = [];
gold = 0;
_root.createEmptyMovieClip("ebul", _root.getNextHighestDepth());
_root.createEmptyMovieClip("bullets", _root.getNextHighestDepth());
reset = function () {
delete onMouseUp;
delete onEnterFrame;
bullets.removeMovieClip();
ebul.removeMovieClip();
powerups.removeMovieClip();
};
damage = function (amount) {
chealth = chealth - amount;
panel.hp.bar._xscale = panel.hp.bar._xscale - (amount * 2);
if (chealth <= 0) {
reset();
win = false;
gotoAndPlay ("lose");
}
};
onMouseDown = function () {
mouse = true;
};
onMouseUp = function () {
mouse = false;
};
onEnterFrame = function () {
with (tank) {
reload--;
xdiff = _root._xmouse - _x;
ydiff = _root._ymouse - _y;
turret._rotation = (_rotation + (Math.atan2(ydiff, xdiff) * 57.2957795130823)) + 90;
if (Key.isDown(40) || (Key.isDown(83))) {
nmv = 0;
body._rotation = 180;
_y = _y + 5;
} else if (Key.isDown(38) || (Key.isDown(87))) {
nmv = 0;
body._rotation = 0;
_y = _y - 5;
} else if (Key.isDown(39) || (Key.isDown(68))) {
nmv = 0;
body._rotation = 90;
_x = _x + 5;
} else if (Key.isDown(37) || (Key.isDown(65))) {
nmv = 0;
body._rotation = 270;
_x = _x - 5;
}
}
for (c in tanks) {
tanks[c]._x = tanks[c]._x + tanks[c].speed;
for (mm in mine_holder) {
if (tanks[c].hitTest(mine_holder[mm])) {
if (((100 * tanks[c].health) / tanks[c].maxhealth) == 100) {
tanks[c].hp.bar._visible = true;
tanks[c].hp.bar2._visible = true;
}
tanks[c].health = tanks[c].health - 50;
if (tanks[c].health <= 0) {
gold = gold + Math.ceil(wave / 2);
score = score + Math.ceil(wave / 2);
msg = _root.attachMovie("msgg", "m" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:tanks[c]._x, _y:tanks[c]._y});
msg.am.am_txt.text = "+" + Math.ceil(wave / 2);
tanks[c].swapDepths(_root.getNextHighestDepth());
tanks[c].removeMovieClip();
tanks.splice(c, 1);
if (tanks.length == 0) {
tanks = [];
if ((shots2 / shots) == 1) {
ab = true;
} else {
ab = false;
}
if (wave < 23) {
_root.attachMovie("welldone", "welldone", _root.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 2, nmv:nmv, csb:csb, ab:ab});
} else {
play();
}
shots = (shots2 = (csb = 0));
nmv = 1;
}
}
mine_holder[mm].removeMovieClip();
}
}
if (tanks[c].hitTest(tank) && (tank._currentframe == 1)) {
tank.play();
damage(5);
}
if (tanks[c].firing != undefined) {
tanks[c].counter++;
if (tanks[c].turret != undefined) {
qxdiff = tank._x - tanks[c]._x;
qydiff = tank._y - tanks[c]._y;
r = (Math.atan2(qydiff, qxdiff) * 57.2957795130823) + 90;
tanks[c].turret._rotation = r - 90;
}
if (tanks[c].counter >= tanks[c].firing) {
tanks[c].counter = 0;
if (tanks[c].turret == undefined) {
r = 90;
}
dx = Math.cos(((r - 90) * Math.PI) / 180) * 10;
dy = Math.sin(((r - 90) * Math.PI) / 180) * 10;
sx = tanks[c]._x;
sy = tanks[c]._y;
b = ebul.attachMovie("bullet2", "b" + ebul.getNextHighestDepth(), ebul.getNextHighestDepth(), {_x:sx, _y:sy, dx:dx, dy:dy, _rotation:r});
b.onEnterFrame = function () {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
if (this._x < 0) {
this.removeMovieClip();
} else if (this._x > Stage.width) {
this.removeMovieClip();
} else if (this._y < 0) {
this.removeMovieClip();
} else if (this._y > Stage.height) {
this.removeMovieClip();
}
if (this.hitTest(_root.tank)) {
_root.damage(5);
this.removeMovieClip();
}
};
}
}
if (tanks[c]._x > (Stage.width + tanks[c]._width)) {
damage(10);
tanks[c].swapDepths(_root.getNextHighestDepth());
tanks[c].removeMovieClip();
tanks.splice(c, 1);
if (tanks.length == 0) {
tanks = [];
if (wave < 23) {
_root.attachMovie("welldone", "welldone", _root.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 2, nmv:nmv, csb:csb, ab:ab});
} else {
play();
}
}
} else if (tanks[c]._x >= 500) {
csb = 1;
}
for (z in bullets) {
if (tanks[c].hitTest(bullets[z]._x, bullets[z]._y, true)) {
shots2++;
bullets[z].removeMovieClip();
if (((100 * tanks[c].health) / tanks[c].maxhealth) == 100) {
tanks[c].hp.bar._visible = true;
tanks[c].hp.bar2._visible = true;
}
tanks[c].health = tanks[c].health - upgrades.damage;
if (tanks[c].health <= 0) {
gold = gold + Math.ceil(wave / 2);
score = score + Math.ceil(wave / 2);
msg = _root.attachMovie("msgg", "m" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:tanks[c]._x, _y:tanks[c]._y});
msg.am.am_txt.text = "+" + Math.ceil(wave / 2);
if (d >= 0.9) {
powerups.attachMovie("powerup", "p" + powerups.getNextHighestDepth(), powerups.getNextHighestDepth(), {_xscale:50, _yscale:50, _x:tanks[c]._x, _y:tanks[c]._y});
}
tanks[c].swapDepths(_root.getNextHighestDepth());
tanks[c].removeMovieClip();
tanks.splice(c, 1);
d = Math.random();
if (tanks.length == 0) {
tanks = [];
if ((shots2 / shots) == 1) {
ab = true;
} else {
ab = false;
}
if (wave < 23) {
_root.attachMovie("welldone", "welldone", _root.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 2, nmv:nmv, csb:csb, ab:ab});
} else {
play();
}
shots = (shots2 = (csb = 0));
nmv = 1;
}
} else {
tanks[c].hp.bar._yscale = Math.round((100 * tanks[c].health) / tanks[c].maxhealth);
}
}
}
}
if (mouse == true) {
if (((tank.reload <= 0) && (welldone == undefined)) && (tank.turret != undefined)) {
tank.reload = upgrades.reload;
r = tank.turret._rotation;
dx = Math.cos(((r - 90) * Math.PI) / 180) * 10;
dy = Math.sin(((r - 90) * Math.PI) / 180) * 10;
sx = tank._x;
sy = tank._y;
b = bullets.attachMovie("bullet", "b" + bullets.getNextHighestDepth(), bullets.getNextHighestDepth(), {_x:sx, _y:sy, dx:dx, dy:dy, _rotation:r});
shots++;
b.onEnterFrame = function () {
this._x = this._x + this.dx;
this._y = this._y + this.dy;
if (this._x < 0) {
this.removeMovieClip();
} else if (this._x > Stage.width) {
this.removeMovieClip();
} else if (this._y < 0) {
this.removeMovieClip();
} else if (this._y > Stage.height) {
this.removeMovieClip();
}
};
}
}
};
Frame 6
stop();
wave = 1;
Instance of Symbol 347 MovieClip in Frame 6
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 1";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 299 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 299 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 299 MovieClip in Frame 6
onClipEvent (load) {
speed = 1;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 7
stop();
wave = 2;
Instance of Symbol 347 MovieClip in Frame 7
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 2";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 293 MovieClip in Frame 7
onClipEvent (load) {
speed = 1;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 7
onClipEvent (load) {
speed = 1;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 7
onClipEvent (load) {
speed = 1;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 7
onClipEvent (load) {
speed = 1;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 7
onClipEvent (load) {
speed = 1;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 7
onClipEvent (load) {
speed = 1;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 7
onClipEvent (load) {
speed = 1;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 8
stop();
wave = 3;
Instance of Symbol 347 MovieClip in Frame 8
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 3";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 287 MovieClip in Frame 8
onClipEvent (load) {
speed = 1;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 8
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 8
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 3);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 8
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 5);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 8
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 5);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 9
stop();
wave = 4;
Instance of Symbol 347 MovieClip in Frame 9
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 4";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 297 MovieClip in Frame 9
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 5);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 297 MovieClip in Frame 9
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 5);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 297 MovieClip in Frame 9
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 5);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 297 MovieClip in Frame 9
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 7);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 297 MovieClip in Frame 9
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 5);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 297 MovieClip in Frame 9
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 5);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 297 MovieClip in Frame 9
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 5);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 297 MovieClip in Frame 9
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 5);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 297 MovieClip in Frame 9
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 5);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 10
stop();
wave = 5;
Instance of Symbol 347 MovieClip in Frame 10
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 5";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 287 MovieClip in Frame 10
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 9);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 10
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 9);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 10
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 9);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 10
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 9);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 10
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 9);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 10
onClipEvent (load) {
speed = 1.5;
health = (maxhealth = 9);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 10
onClipEvent (load) {
speed = 2;
health = (maxhealth = 7);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 10
onClipEvent (load) {
speed = 2;
health = (maxhealth = 7);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 10
onClipEvent (load) {
speed = 2;
health = (maxhealth = 7);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 10
onClipEvent (load) {
speed = 2;
health = (maxhealth = 7);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 11
stop();
wave = 6;
Instance of Symbol 347 MovieClip in Frame 11
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 6";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 293 MovieClip in Frame 11
onClipEvent (load) {
speed = 3;
health = (maxhealth = 8);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 11
onClipEvent (load) {
speed = 3;
health = (maxhealth = 8);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 11
onClipEvent (load) {
speed = 3;
health = (maxhealth = 8);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 11
onClipEvent (load) {
speed = 3;
health = (maxhealth = 8);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 11
onClipEvent (load) {
speed = 3;
health = (maxhealth = 8);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 11
onClipEvent (load) {
speed = 3;
health = (maxhealth = 8);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 11
onClipEvent (load) {
speed = 3;
health = (maxhealth = 8);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 11
onClipEvent (load) {
speed = 3;
health = (maxhealth = 8);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 11
onClipEvent (load) {
speed = 3;
health = (maxhealth = 8);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 12
stop();
wave = 7;
Instance of Symbol 347 MovieClip in Frame 12
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 7";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 299 MovieClip in Frame 12
onClipEvent (load) {
speed = 1;
health = (maxhealth = 10);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 50;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 12
onClipEvent (load) {
speed = 1;
health = (maxhealth = 10);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 50;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 12
onClipEvent (load) {
speed = 1;
health = (maxhealth = 10);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 50;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 12
onClipEvent (load) {
speed = 1;
health = (maxhealth = 10);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 50;
counter = 25;
}
Instance of Symbol 299 MovieClip in Frame 12
onClipEvent (load) {
speed = 1;
health = (maxhealth = 10);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 50;
counter = 25;
}
Frame 13
stop();
wave = 8;
Instance of Symbol 347 MovieClip in Frame 13
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 8";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 297 MovieClip in Frame 13
onClipEvent (load) {
speed = 1;
health = (maxhealth = 20);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 50;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 13
onClipEvent (load) {
speed = 1;
health = (maxhealth = 20);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 50;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 13
onClipEvent (load) {
speed = 1;
health = (maxhealth = 20);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 50;
counter = 0;
}
Frame 14
stop();
wave = 9;
Instance of Symbol 347 MovieClip in Frame 14
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 9";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 299 MovieClip in Frame 14
onClipEvent (load) {
speed = 1;
health = (maxhealth = 20);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 50;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 14
onClipEvent (load) {
speed = 1;
health = (maxhealth = 20);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 50;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 14
onClipEvent (load) {
speed = 1;
health = (maxhealth = 20);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 50;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 14
onClipEvent (load) {
speed = 4;
health = (maxhealth = 8);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 293 MovieClip in Frame 14
onClipEvent (load) {
speed = 4;
health = (maxhealth = 15);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 15
stop();
wave = 10;
Instance of Symbol 347 MovieClip in Frame 15
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 10";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 289 MovieClip in Frame 15
onClipEvent (load) {
speed = 5;
health = (maxhealth = 20);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 289 MovieClip in Frame 15
onClipEvent (load) {
speed = 4;
health = (maxhealth = 15);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 289 MovieClip in Frame 15
onClipEvent (load) {
speed = 5;
health = (maxhealth = 20);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 289 MovieClip in Frame 15
onClipEvent (load) {
speed = 4;
health = (maxhealth = 15);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 289 MovieClip in Frame 15
onClipEvent (load) {
speed = 5;
health = (maxhealth = 20);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 289 MovieClip in Frame 15
onClipEvent (load) {
speed = 4;
health = (maxhealth = 15);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 16
stop();
wave = 11;
Instance of Symbol 347 MovieClip in Frame 16
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 11";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 293 MovieClip in Frame 16
onClipEvent (load) {
speed = 3;
health = (maxhealth = 25);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 16
onClipEvent (load) {
speed = 3;
health = (maxhealth = 25);
_parent.tanks.push(this);
pi = _parent.tanks.length;
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 16
onClipEvent (load) {
speed = 3;
health = (maxhealth = 25);
_parent.tanks.push(this);
pi = _parent.tanks.length;
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 16
onClipEvent (load) {
speed = 3;
health = (maxhealth = 25);
_parent.tanks.push(this);
pi = _parent.tanks.length;
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 16
onClipEvent (load) {
speed = 3;
health = (maxhealth = 25);
_parent.tanks.push(this);
pi = _parent.tanks.length;
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Frame 17
stop();
wave = 12;
Instance of Symbol 347 MovieClip in Frame 17
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 12";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 299 MovieClip in Frame 17
onClipEvent (load) {
speed = 1;
health = (maxhealth = 40);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 299 MovieClip in Frame 17
onClipEvent (load) {
speed = 1;
health = (maxhealth = 40);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 299 MovieClip in Frame 17
onClipEvent (load) {
speed = 1;
health = (maxhealth = 40);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 299 MovieClip in Frame 17
onClipEvent (load) {
speed = 1;
health = (maxhealth = 40);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 299 MovieClip in Frame 17
onClipEvent (load) {
speed = 1;
health = (maxhealth = 40);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 299 MovieClip in Frame 17
onClipEvent (load) {
speed = 1;
health = (maxhealth = 40);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 299 MovieClip in Frame 17
onClipEvent (load) {
speed = 1;
health = (maxhealth = 40);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 18
stop();
wave = 13;
Instance of Symbol 347 MovieClip in Frame 18
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 13";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 297 MovieClip in Frame 18
onClipEvent (load) {
speed = 1;
health = (maxhealth = 55);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 18
onClipEvent (load) {
speed = 1;
health = (maxhealth = 55);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 18
onClipEvent (load) {
speed = 1;
health = (maxhealth = 55);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 18
onClipEvent (load) {
speed = 1;
health = (maxhealth = 55);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 18
onClipEvent (load) {
speed = 1;
health = (maxhealth = 55);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 18
onClipEvent (load) {
speed = 1;
health = (maxhealth = 55);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Frame 19
stop();
wave = 14;
Instance of Symbol 347 MovieClip in Frame 19
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 14";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 293 MovieClip in Frame 19
onClipEvent (load) {
speed = 2;
health = (maxhealth = 50);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 19
onClipEvent (load) {
speed = 2;
health = (maxhealth = 50);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 19
onClipEvent (load) {
speed = 2;
health = (maxhealth = 50);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 19
onClipEvent (load) {
speed = 2;
health = (maxhealth = 50);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 40;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 19
onClipEvent (load) {
speed = 2;
health = (maxhealth = 50);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 40;
counter = 0;
}
Frame 20
stop();
wave = 15;
Instance of Symbol 347 MovieClip in Frame 20
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 15";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 299 MovieClip in Frame 20
onClipEvent (load) {
speed = 2;
health = (maxhealth = 60);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 20
onClipEvent (load) {
speed = 2;
health = (maxhealth = 60);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 20
onClipEvent (load) {
speed = 2;
health = (maxhealth = 60);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 20
onClipEvent (load) {
speed = 2;
health = (maxhealth = 60);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 40;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 20
onClipEvent (load) {
speed = 2;
health = (maxhealth = 60);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 40;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 20
onClipEvent (load) {
speed = 2;
health = (maxhealth = 60);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 20
onClipEvent (load) {
speed = 2;
health = (maxhealth = 60);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 20
onClipEvent (load) {
speed = 2;
health = (maxhealth = 60);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 30;
counter = 0;
}
Frame 21
stop();
wave = 16;
Instance of Symbol 347 MovieClip in Frame 21
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 16";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 299 MovieClip in Frame 21
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 70);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 20;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 21
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 70);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 20;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 21
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 70);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 20;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 21
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 70);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 20;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 21
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 70);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 20;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 21
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 70);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 20;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 21
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 70);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 20;
counter = 0;
}
Frame 22
stop();
wave = 17;
Instance of Symbol 347 MovieClip in Frame 22
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 17";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 293 MovieClip in Frame 22
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 75);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 22
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 75);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 22
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 75);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 22
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 75);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 22
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 75);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 22
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 75);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 293 MovieClip in Frame 22
onClipEvent (load) {
speed = 2.5;
health = (maxhealth = 75);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Frame 23
stop();
wave = 18;
Instance of Symbol 347 MovieClip in Frame 23
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 18";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 23
onClipEvent (load) {
speed = 4;
health = (maxhealth = 90);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 24
stop();
wave = 19;
Instance of Symbol 347 MovieClip in Frame 24
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 19";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 299 MovieClip in Frame 24
onClipEvent (load) {
speed = 1;
health = (maxhealth = 100);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 24
onClipEvent (load) {
speed = 1;
health = (maxhealth = 100);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Frame 25
stop();
wave = 20;
Instance of Symbol 347 MovieClip in Frame 25
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 20";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 287 MovieClip in Frame 25
onClipEvent (load) {
speed = 1.2;
health = (maxhealth = 750);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 25
onClipEvent (load) {
speed = 1.2;
health = (maxhealth = 750);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 26
stop();
wave = 21;
Instance of Symbol 347 MovieClip in Frame 26
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 21";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 299 MovieClip in Frame 26
onClipEvent (load) {
speed = 2;
health = (maxhealth = 150);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 26
onClipEvent (load) {
speed = 2;
health = (maxhealth = 150);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 26
onClipEvent (load) {
speed = 2;
health = (maxhealth = 150);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 26
onClipEvent (load) {
speed = 2;
health = (maxhealth = 150);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 26
onClipEvent (load) {
speed = 2;
health = (maxhealth = 150);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 26
onClipEvent (load) {
speed = 2;
health = (maxhealth = 150);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 26
onClipEvent (load) {
speed = 2;
health = (maxhealth = 150);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 26
onClipEvent (load) {
speed = 2;
health = (maxhealth = 150);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Instance of Symbol 299 MovieClip in Frame 26
onClipEvent (load) {
speed = 2;
health = (maxhealth = 150);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 35;
counter = 0;
}
Frame 27
stop();
wave = 22;
Instance of Symbol 347 MovieClip in Frame 27
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 22";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 297 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 25;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 25;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 27
onClipEvent (load) {
speed = 3;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 25;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 25;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 25;
counter = 0;
}
Instance of Symbol 297 MovieClip in Frame 27
onClipEvent (load) {
speed = 3;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
firing = 25;
counter = 0;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 287 MovieClip in Frame 27
onClipEvent (load) {
speed = 4;
health = (maxhealth = 500);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 28
stop();
wave = 23;
Instance of Symbol 347 MovieClip in Frame 28
onClipEvent (load) {
xv = _width / 7;
xy = _height / 7;
i = 0;
this.wave.d_txt.text = "WAVE 23";
}
onClipEvent (enterFrame) {
i++;
if (i > 20) {
_width = (_width + xv);
_height = (_height + xy);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
this.unloadMovie();
}
}
}
Instance of Symbol 297 MovieClip in Frame 28
onClipEvent (load) {
speed = 4;
health = (maxhealth = 4000);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Instance of Symbol 297 MovieClip in Frame 28
onClipEvent (load) {
speed = 4;
health = (maxhealth = 4000);
_parent.tanks.push(this);
pi = _parent.tanks.length;
}
Frame 29
if (win == false) {
go_m.go = true;
hsapi.endGame(wave, score, null);
} else {
go_m.go = false;
hsapi.endGame(999, score, null);
}
stop();
reset();
Symbol 8 Button
on (release) {
getURL ("http://www.itch.com", "_blank");
}
Symbol 378 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.4");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 379 MovieClip [__Packages.Hsapi] Frame 0
class Hsapi extends MovieClip
{
var initialized, portal_mc;
function Hsapi (pURL) {
super();
if (pURL == undefined) {
pURL = "hsapitest_as2";
}
initialized = false;
var _local5 = new MovieClipLoader();
var _local4 = new Object();
_local4.parent = this;
portal_mc = _root.createEmptyMovieClip("portal_mc", _root.getNextHighestDepth());
_local4.onLoadError = function (target_mc) {
trace("unable to load:" + pURL);
};
_local4.onLoadComplete = function (target_mc) {
this.parent.initialized = true;
trace("loading completed: " + pURL);
};
_local5.addListener(_local4);
_local5.loadClip(pURL + ".swf", portal_mc);
}
function startGame(gameStr, gameLevel, score, gameParams) {
if (initialized) {
portal_mc.startGame(gameStr, gameLevel, score, gameParams);
} else {
trace("Error: startGame() but Hsapi not yet initialized");
}
}
function levelComplete(gameLevel, score, gameParams) {
if (initialized) {
portal_mc.levelComplete(gameLevel, score, gameParams);
} else {
trace("Error: levelComplete() but Hsapi not yet initialized");
}
}
function milestoneComplete(milestone, score, gameParams) {
if (initialized) {
portal_mc.milestoneComplete(milestone, score, gameParams);
} else {
trace("Error: milestoneComplete() but Hsapi not yet initialized");
}
}
function endGame(gameLevel, score, gameParams) {
if (initialized) {
portal_mc.endGame(gameLevel, score, gameParams);
} else {
trace("Error: endGame() but Hsapi not yet initialized");
}
}
}
Symbol 183 MovieClip Frame 105
stop();
Symbol 187 MovieClip [msgg] Frame 1
_root.expl();
Symbol 187 MovieClip [msgg] Frame 86
this.removeMovieClip();
Symbol 198 MovieClip Frame 2
stop();
_root.gold = _root.gold + 5;
_root.score = _root.score + 5;
Symbol 200 MovieClip Frame 2
stop();
_root.gold = _root.gold + 3;
_root.score = _root.score + 3;
Symbol 202 MovieClip Frame 2
stop();
_root.gold = _root.gold + 1;
_root.score = _root.score + 1;
Symbol 205 MovieClip Frame 2
stop();
_root.score = _root.score + Math.round(_root.gold * 0.1);
inte.text = "+" + Math.round(_root.gold * 0.1);
_root.gold = _root.gold + Math.round(_root.gold * 0.1);
Symbol 212 Button
on (release) {
_root.reset();
_root.gotoAndPlay("menu");
_parent.removeMovieClip();
}
Symbol 214 Button
on (release) {
this._visible = false;
}
Symbol 215 MovieClip Frame 2
stop();
Symbol 224 Button
on (release) {
cost = _root.idamage.num + Math.ceil(Math.pow(_root.idamage.num + 1, 2) / 2);
if (_root.gold >= cost) {
_root.gold = _root.gold - cost;
_root.upgrades.damage = _root.upgrades.damage + _root.idamage.upgrades[_root.idamage.num];
gold_txt.text = "$" + _root.gold;
admg_txt.text = _root.upgrades.damage;
dmg_txt.text = "+" + _root.idamage.upgrades[_root.idamage.num];
_root.idamage.num++;
ncost = _root.idamage.num + Math.ceil(Math.pow(_root.idamage.num + 1, 2) / 2);
cdmg_txt.text = "$" + ncost;
}
}
Symbol 225 Button
on (release) {
if (_root.upgrades.reload > 0) {
if (_root.gold >= Math.pow(_root.ireload.num + 2, 2)) {
_root.gold = _root.gold - Math.pow(_root.ireload.num + 2, 2);
_root.upgrades.reload = _root.upgrades.reload - _root.ireload.upgrades[_root.ireload.num];
gold_txt.text = "$" + _root.gold;
_root.ireload.num++;
if (_root.upgrades.reload <= 0) {
arel_txt.text = "0";
rel_txt.text = "";
crel_txt.text = "MAX";
} else {
arel_txt.text = _root.upgrades.reload;
rel_txt.text = "-" + _root.ireload.upgrades[_root.ireload.num];
crel_txt.text = "$" + Math.pow(_root.ireload.num + 2, 2);
}
}
}
}
Symbol 226 Button
on (release) {
if (_root.gold >= ((50 - _root.chealth) * 2)) {
_root.gold = _root.gold - ((50 - _root.chealth) * 2);
_root.chealth = 50;
_root.panel.hp.bar._xscale = 100;
gold_txt.text = "$" + _root.gold;
ahp_txt.text = _root.chealth;
hp_txt.text = "+" + (50 - _root.chealth);
chp_txt.text = "$" + ((50 - _root.chealth) * 2);
}
}
Symbol 241 Button
on (release) {
if (_root.interest == 0) {
if (_root.gold >= 100) {
_root.gold = _root.gold - 100;
gold_txt.text = "$" + _root.gold;
_root.interest = 1;
int_txt.text = "MAX";
}
}
}
Symbol 242 Button
on (release) {
if (_root.gold >= 20) {
_root.gold = _root.gold - 20;
gold_txt.text = "$" + _root.gold;
_root.mines++;
min_txt.text = _root.mines;
}
}
Symbol 254 Button
on (release) {
_root.play();
this.removeMovieClip();
}
Symbol 256 Button
on (release) {
ays._visible = true;
}
Symbol 259 Button
on (release) {
gotoAndPlay (2);
}
Symbol 261 Button
on (release) {
gotoAndPlay (1);
}
Symbol 267 MovieClip [welldone] Frame 1
for (t in _root.powerups) {
_root.powerups[t].removeMovieClip();
}
for (u in _root.ebul) {
_root.ebul[u].removeMovieClip();
}
if (_root.chealth <= 0) {
this.removeMovieClip();
}
Instance of Symbol 198 MovieClip in Symbol 267 MovieClip [welldone] Frame 1
onClipEvent (load) {
if (_parent.ab == false) {
this.swapDepths(_parent.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 200 MovieClip in Symbol 267 MovieClip [welldone] Frame 1
onClipEvent (load) {
if (_parent.csb == false) {
this.swapDepths(_parent.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 202 MovieClip in Symbol 267 MovieClip [welldone] Frame 1
onClipEvent (load) {
if (_parent.nmv == 0) {
this.swapDepths(_parent.getNextHighestDepth());
this.removeMovieClip();
}
}
Instance of Symbol 205 MovieClip in Symbol 267 MovieClip [welldone] Frame 1
onClipEvent (load) {
if (_root.interest == 0) {
stop();
}
}
Instance of Symbol 215 MovieClip "ays" in Symbol 267 MovieClip [welldone] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 267 MovieClip [welldone] Frame 2
stop();
gold_txt.text = "$" + _root.gold;
if (_root.interest == 1) {
int_txt.text = "MAX";
} else {
int_txt.text = "$100";
}
min_txt.text = _root.mines;
admg_txt.text = _root.upgrades.damage;
dmg_txt.text = "+" + _root.idamage.upgrades[_root.idamage.num];
cost = _root.idamage.num + Math.ceil(Math.pow(_root.idamage.num + 1, 2) / 2);
cdmg_txt.text = "$" + cost;
ahp_txt.text = _root.chealth;
hp_txt.text = "+" + (50 - _root.chealth);
chp_txt.text = "$" + ((50 - _root.chealth) * 2);
if (_root.upgrades.reload <= 0) {
arel_txt.text = "0";
rel_txt.text = "";
crel_txt.text = "MAX";
} else {
arel_txt.text = _root.upgrades.reload;
rel_txt.text = "-" + _root.ireload.upgrades[_root.ireload.num];
crel_txt.text = "$" + Math.pow(_root.ireload.num + 2, 2);
}
Symbol 267 MovieClip [welldone] Frame 3
stop();
gold_txt.text = "$" + _root.gold;
if (_root.interest == 1) {
int_txt.text = "MAX";
} else {
int_txt.text = "$100";
}
min_txt.text = _root.mines;
Symbol 274 MovieClip [powerup] Frame 1
rand = Math.floor(Math.random() * 4) + 1;
gotoAndPlay(rand);
Symbol 274 MovieClip [powerup] Frame 2
stop();
Instance of Symbol 269 MovieClip in Symbol 274 MovieClip [powerup] Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank)) {
_root.beep();
if (_root.chealth <= 40) {
_root.chealth = _root.chealth + 10;
_root.panel.hp.bar._xscale = _root.panel.hp.bar._xscale + 20;
} else {
_root.chealth = 50;
_root.panel.hp.bar._xscale = 100;
}
_parent.removeMovieClip();
}
}
Symbol 274 MovieClip [powerup] Frame 3
stop();
Instance of Symbol 271 MovieClip in Symbol 274 MovieClip [powerup] Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank)) {
_root.beep();
_root.money = _root.money + 5;
_parent.removeMovieClip();
}
}
Symbol 274 MovieClip [powerup] Frame 4
stop();
Instance of Symbol 273 MovieClip in Symbol 274 MovieClip [powerup] Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank)) {
_root.beep();
_root.mines++;
_parent.removeMovieClip();
}
}
Symbol 278 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 1
bar._visible = false;
bar2._visible = false;
Symbol 306 Button
on (release) {
hsapi.startGame("", 1, 0, null);
play();
}
Symbol 308 Button
on (release) {
inst._visible = true;
}
Symbol 310 Button
on (release) {
badges._visible = true;
}
Symbol 316 Button
on (release) {
this._visible = false;
}
Symbol 328 MovieClip Frame 1
_visible = false;
Symbol 328 MovieClip Frame 2
stop();
Symbol 333 Button
on (release) {
this._visible = false;
}
Symbol 334 MovieClip Frame 2
stop();
Symbol 336 Button
on (release) {
_root.muted = false;
gotoAndPlay (5);
_root.kirupaSound3.start(0, 99);
}
Symbol 338 Button
on (release) {
_root.muted = true;
_root.kirupaSound3.stop();
gotoAndPlay (4);
}
Symbol 339 MovieClip Frame 2
if (_root.muted) {
gotoAndPlay (3);
} else {
gotoAndPlay (4);
}
Symbol 339 MovieClip Frame 3
stop();
Symbol 339 MovieClip Frame 4
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 372 Button
on (release) {
gotoAndPlay ("menu");
}
Symbol 377 MovieClip Frame 1
if (go == true) {
play();
} else {
gotoAndPlay (3);
}
Symbol 377 MovieClip Frame 2
stop();
Symbol 377 MovieClip Frame 3
stop();