Frame 1
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
percentbytes = int(loadedbytes / (totalbytes / 100));
percent = percentbytes + "%";
tellTarget (_root.loadbar) {
gotoAndStop(_root.percentbytes + 1);
};
function doSomething() {
}
function doSomething2() {
getURL ("http://www.armorgames.com", _blank);
}
function doSomething3() {
_quality = "LOW";
}
function doSomething4() {
_quality = "MEDIUM";
}
function doSomething5() {
_quality = "HIGH";
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("CagedSilhouette - 2007", doSomething);
Functioned2 = new ContextMenuItem("Play More Games", doSomething2);
Functioned3 = new ContextMenuItem("Low Quality", doSomething3);
Functioned4 = new ContextMenuItem("Medium Quality", doSomething4);
Functioned5 = new ContextMenuItem("High Quality", doSomething5);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned3);
MENU.customItems.push(Functioned4);
MENU.customItems.push(Functioned5);
_root.menu = MENU;
Frame 2
if (loadedbytes == totalbytes) {
gotoAndStop (3);
} else {
gotoAndPlay (1);
}
Frame 3
play();
function doSomething() {
}
function doSomething2() {
getURL ("http://www.armorgames.com", _blank);
}
function doSomething3() {
_quality = "LOW";
}
function doSomething4() {
_quality = "MEDIUM";
}
function doSomething5() {
_quality = "HIGH";
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("CagedSilhouette - 2007", doSomething);
Functioned2 = new ContextMenuItem("Play More Games", doSomething2);
Functioned3 = new ContextMenuItem("Low Quality", doSomething3);
Functioned4 = new ContextMenuItem("Medium Quality", doSomething4);
Functioned5 = new ContextMenuItem("High Quality", doSomething5);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned3);
MENU.customItems.push(Functioned4);
MENU.customItems.push(Functioned5);
_root.menu = MENU;
Frame 77
function doSomething() {
}
function doSomething2() {
getURL ("http://www.armorgames.com", _blank);
}
function doSomething3() {
_quality = "LOW";
}
function doSomething4() {
_quality = "MEDIUM";
}
function doSomething5() {
_quality = "HIGH";
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("CagedSilhouette - 2007", doSomething);
Functioned2 = new ContextMenuItem("Play More Games", doSomething2);
Functioned3 = new ContextMenuItem("Low Quality", doSomething3);
Functioned4 = new ContextMenuItem("Medium Quality", doSomething4);
Functioned5 = new ContextMenuItem("High Quality", doSomething5);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned3);
MENU.customItems.push(Functioned4);
MENU.customItems.push(Functioned5);
_root.menu = MENU;
buttonpress = 0;
stop();
Frame 78
function doSomething() {
}
function doSomething2() {
getURL ("http://www.armorgames.com", _blank);
}
function doSomething3() {
_quality = "LOW";
}
function doSomething4() {
_quality = "MEDIUM";
}
function doSomething5() {
_quality = "HIGH";
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("CagedSilhouette - 2007", doSomething);
Functioned2 = new ContextMenuItem("Play More Games", doSomething2);
Functioned3 = new ContextMenuItem("Low Quality", doSomething3);
Functioned4 = new ContextMenuItem("Medium Quality", doSomething4);
Functioned5 = new ContextMenuItem("High Quality", doSomething5);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned3);
MENU.customItems.push(Functioned4);
MENU.customItems.push(Functioned5);
_root.menu = MENU;
function savegame() {
savefile = SharedObject.getLocal("CagedSilhouette-2007-TowerDefenderv1");
savefile.data.pframe = pframe;
savefile.data.saves = 1;
savefile.data.score = score;
savefile.data.monmon = monmon;
savefile.data.money = money;
savefile.data.maxhealth = maxhealth;
savefile.data.health = health;
savefile.data.heal = heal;
savefile.data.hours = hours;
savefile.data.hoursleft = hoursleft;
savefile.data.daynum = daynum;
savefile.data.day = day;
savefile.data.lifenum = lifenum;
savefile.data.lives = lives;
savefile.data.shield = shield;
savefile.data.tankcost = tankcost;
savefile.data.shotspeed = shotspeed;
savefile.data.rotatspeed = rotatspeed;
savefile.data.shotdam = shotdam;
savefile.data.rotty = rotty;
savefile.data.shotty = shotty;
savefile.data.enemieskilled = enemieskilled;
savefile.data.shotsfired = shotsfired;
savefile.data.shotshit = shotshit;
savefile.data.accuracy = accuracy;
savefile.data.deaths = deaths;
savefile.flush();
}
function loadgame() {
savefile = SharedObject.getLocal("CagedSilhouette-2007-TowerDefenderv1");
pframe = savefile.data.pframe;
saves = savefile.data.saves;
score = savefile.data.score;
monmon = savefile.data.monmon;
money = savefile.data.money;
maxhealth = savefile.data.maxhealth;
health = savefile.data.health;
heal = savefile.data.heal;
hours = savefile.data.hours;
hoursleft = savefile.data.hoursleft;
daynum = savefile.data.daynum;
day = savefile.data.day;
lifenum = savefile.data.lifenum;
lives = savefile.data.lives;
shield = savefile.data.shield;
tankcost = savefile.data.tankcost;
shotspeed = savefile.data.shotspeed;
rotatspeed = savefile.data.rotatspeed;
shotdam = savefile.data.shotdam;
rotty = savefile.data.rotty;
shotty = savefile.data.shotty;
enemieskilled = savefile.data.enemieskilled;
shotsfired = savefile.data.shotsfired;
shotshit = savefile.data.shotshit;
accuracy = savefile.data.accuracy;
deaths = savefile.data.deaths;
}
function deletegame() {
savefile = SharedObject.getLocal("CagedSilhouette-2007-TowerDefenderv1");
savefile.clear();
}
stop();
pframe = 1;
saves = 0;
sfact = 0;
disable = 0;
score = 0;
monmon = 0;
money = "$" + monmon;
maxhealth = 100;
health = 100;
heal = 100;
hours = 600;
hoursleft = (((("Time left: " + Math.round(hours / 25)) + "hrs") + " ") + Math.round(mins)) + "mins";
daynum = 1;
day = "Day " + daynum;
lifenum = 3;
lives = "x" + lifenum;
shield = 0;
tankcost = 50;
shotspeed = 15;
rotatspeed = 3;
shotdam = 10;
rotty = 0;
shotty = 0;
enemieskilled = 0;
shotsfired = 0;
shotshit = 0;
accuracy = 0;
deaths = 0;
savefile = SharedObject.getLocal("CagedSilhouette-2007-TowerDefenderv1");
if (savefile.data.saves == 1) {
loadgame();
}
Instance of Symbol 220 MovieClip "countz" in Frame 78
onClipEvent (load) {
mins = 30;
}
onClipEvent (enterFrame) {
_root.lives = "x" + _root.lifenum;
_root.day = "Day " + _root.daynum;
_root.money = "$" + _root.monmon;
}
onClipEvent (enterFrame) {
_root.hoursleft = (((("Time left: " + Math.round(_root.hours / 25)) + "hrs") + " ") + Math.round(mins)) + "mins";
}
onClipEvent (enterFrame) {
_root.daymet.gotoAndStop(_root.hours + 1);
}
onClipEvent (enterFrame) {
_root.healthbar.gotoAndStop(int(_root.health / (_root.maxhealth / 100)) + 1);
if (_root.health < 0) {
_root.health = 0;
}
}
onClipEvent (enterFrame) {
if (_root.health < 0) {
_root.health = 0;
}
if (_root.health >= _root.maxhealth) {
_root.health = _root.maxhealth;
}
}
onClipEvent (enterFrame) {
if (_root.lifenum <= 0) {
_root.lifenum = 0;
}
}
Instance of Symbol 233 MovieClip "shieldish" in Frame 79
onClipEvent (enterFrame) {
if ((_root.disable == 0) and (_root.sfact == 0)) {
if (Key.isDown(35)) {
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 132 MovieClip "shot" in Frame 79
onClipEvent (load) {
edepth = _root.countz.depthcount + 6;
shotspeed = _root.shotspeed;
rotat = _root.barrel._rotation + 90;
this._rotation = rotat - 90;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.top._x + (cosine * 2.5);
this._y = _root.top._y + (sine * 2.5);
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this._name != "shot") and (this.shota == 0)) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat - 90;
if (this._y > 320) {
_root.barrel.shotcount--;
this.removeMovieClip();
}
if (this._y < -20) {
_root.barrel.shotcount--;
this.removeMovieClip();
}
if (this._x > 420) {
_root.barrel.shotcount--;
this.removeMovieClip();
}
if (this._x < -20) {
_root.barrel.shotcount--;
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.treads) and (this.shota == 0)) and (_root.treads.dead == 0)) {
this.gotoAndPlay(2);
_root.shotshit++;
_root.treads.health = _root.treads.health - _root.shotdam;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.treads.health < 0) {
_root.treads.health = 0;
}
if (_root.treads.health == 0) {
_root.treads.gotoAndPlay(2);
_root.enemieskilled++;
_root.i--;
_root.score = _root.score + 1000;
_root.monmon = _root.monmon + 500;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.atv) and (this.shota == 0)) and (_root.atv.dead == 0)) {
this.gotoAndPlay(2);
_root.atv.health = _root.atv.health - _root.shotdam;
_root.shotshit++;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.atv.health < 0) {
_root.atv.health = 0;
}
if (_root.atv.health == 0) {
_root.atv.gotoAndPlay(2);
_root.enemieskilled++;
_root.i--;
_root.score = _root.score + 500;
_root.monmon = _root.monmon + 250;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.wheelpod) and (this.shota == 0)) and (_root.wheelpod.dead == 0)) {
this.gotoAndPlay(2);
_root.wheelpod.health = _root.wheelpod.health - _root.shotdam;
_root.shotshit++;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.wheelpod.health < 0) {
_root.wheelpod.health = 0;
}
if (_root.wheelpod.health == 0) {
_root.wheelpod.gotoAndPlay(2);
_root.enemieskilled++;
_root.i--;
_root.score = _root.score + 250;
_root.monmon = _root.monmon + 125;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.wheelmachine) and (this.shota == 0)) and (_root.wheelmachine.dead == 0)) {
this.gotoAndPlay(2);
_root.wheelmachine.health = _root.wheelmachine.health - _root.shotdam;
_root.shotshit++;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.wheelmachine.health < 0) {
_root.wheelmachine.health = 0;
}
if (_root.wheelmachine.health == 0) {
_root.wheelmachine.gotoAndPlay(2);
_root.enemieskilled++;
_root.i--;
_root.score = _root.score + 1500;
_root.monmon = _root.monmon + 750;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.wheelcannon) and (this.shota == 0)) and (_root.wheelcannon.dead == 0)) {
this.gotoAndPlay(2);
_root.wheelcannon.health = _root.wheelcannon.health - _root.shotdam;
_root.shotshit++;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.wheelcannon.health < 0) {
_root.wheelcannon.health = 0;
}
if (_root.wheelcannon.health == 0) {
_root.wheelcannon.gotoAndPlay(2);
_root.enemieskilled++;
_root.i--;
_root.score = _root.score + 2000;
_root.monmon = _root.monmon + 1000;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.ghost) and (this.shota == 0)) and (_root.ghost.dead == 0)) {
this.gotoAndPlay(2);
_root.ghost.health = _root.ghost.health - _root.shotdam;
_root.shotshit++;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.ghost.health < 0) {
_root.ghost.health = 0;
}
if (_root.ghost.health == 0) {
_root.ghost.gotoAndPlay(2);
_root.enemieskilled++;
_root.i--;
_root.score = _root.score + 4000;
_root.monmon = _root.monmon + 2000;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.gtreads) and (this.shota == 0)) and (_root.gtreads.dead == 0)) {
this.gotoAndPlay(2);
_root.gtreads.health = _root.gtreads.health - _root.shotdam;
_root.shotshit++;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.gtreads.health < 0) {
_root.gtreads.health = 0;
}
if (_root.gtreads.health == 0) {
_root.gtreads.gotoAndPlay(2);
_root.enemieskilled++;
_root.i--;
_root.score = _root.score + 5000;
_root.monmon = _root.monmon + 2500;
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
this._x = 400;
this._y = 400;
}
}
Instance of Symbol 112 MovieClip "barrel" in Frame 79
onClipEvent (load) {
maxchance = 0;
shotchance = 0;
shotchancecount = 0;
dead = 0;
maxshots = 1;
_root.shot.gotoAndStop(11);
shotcount = 2;
depthcount = 1;
}
onClipEvent (enterFrame) {
if (((dead == 0) and (_root.disable == 0)) and (maxshots > 1)) {
if (shotchance < maxchance) {
shotchance = shotchance + 1;
}
if ((shotchance == maxchance) and (shotchancecount < 2)) {
shotchancecount = shotchancecount + 1;
}
if (shotchancecount == maxchance) {
shotchance = 0;
shotchancecount = 0;
}
}
}
onClipEvent (enterFrame) {
rotatspeed = _root.rotatspeed;
}
onClipEvent (enterFrame) {
if ((_root.disable == 0) and (this._rotation < 180)) {
if (Key.isDown(39)) {
this._rotation = this._rotation + rotatspeed;
}
}
}
onClipEvent (enterFrame) {
if ((_root.disable == 0) and (this._rotation > 0)) {
if (Key.isDown(37)) {
this._rotation = this._rotation - rotatspeed;
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (((Key.isDown(32) and (maxshots >= shotcount)) and (dead == 0)) and (shotchance == maxchance)) {
shotcount++;
_root.shotsfired++;
_root.shot.duplicateMovieClip("shot" + depthcount, depthcount);
_root["shot" + depthcount]._visible = true;
depthcount++;
if (depthcount > maxshots) {
depthcount = 1;
}
}
}
}
Instance of Symbol 245 MovieClip "atv" in Frame 79
onClipEvent (load) {
shotchance = 0;
shotchancecount = 0;
maxshots = 5;
_root.zshot._visible = false;
shotcount = 1;
depthcount = 1;
shotchance = 0;
rot = 0;
dead = 0;
speed = 5;
rotat = 0;
health = 20;
xez = random(-20) - 65;
this._x = xez;
this._y = random(300) + 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wheelcannon)) {
this._y = this._y - 4;
}
if (this.hitTest(_root.gtreads)) {
this._y = this._y + 4;
}
if (this.hitTest(_root.ghost)) {
this._y = this._y + 4;
}
if (this.hitTest(_root.wheelmachine)) {
this._y = this._y + 4;
}
if (this.hitTest(_root.treads)) {
this._y = this._y - 4;
}
if (this.hitTest(_root.wheelpod)) {
this._y = this._y + 4;
}
}
onClipEvent (enterFrame) {
if (((dead == 0) and (_root.disable == 0)) and (_root.daynum >= 5)) {
if (shotchance < 10) {
shotchance = shotchance + 1;
}
if ((shotchance == 10) and (shotchancecount < 2)) {
shotchancecount = shotchancecount + 1;
}
if (shotchancecount == 2) {
shotchance = 0;
shotchancecount = 0;
}
}
}
onClipEvent (enterFrame) {
if ((((_root.barrel.dead == 0) and (dead == 0)) and (_root.disable == 0)) and (_root.daynum >= 5)) {
if ((shotchance == 10) and (maxshots >= shotcount)) {
shotcount++;
_root.zshot.duplicateMovieClip("zshot" + depthcount, depthcount - 30);
_root["zshot" + depthcount]._visible = true;
depthcount++;
if (depthcount > maxshots) {
depthcount = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.disable == 0) and (_root.daynum >= 5)) {
if ((rotat < 50) and (rot == 0)) {
rotat = rotat + 5;
}
if (rotat == 50) {
rot = 1;
}
if ((rotat >= -50) and (rot == 1)) {
rotat = rotat - 5;
}
if (rotat == -50) {
rot = 3;
}
if ((rotat <= 50) and (rot == 3)) {
rotat = rotat + 5;
}
if (rotat == 50) {
rot = 0;
}
}
}
onClipEvent (enterFrame) {
sine = Math.sin((rotat * Math.PI) / 180) * speed;
cosine = Math.cos((rotat * Math.PI) / 180) * speed;
if (((dead == 0) and (_root.disable == 0)) and (_root.daynum >= 5)) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat;
}
}
onClipEvent (enterFrame) {
if (health < 0) {
health == 0;
}
}
onClipEvent (enterFrame) {
if (this._x >= (Stage.width + 65)) {
this._x = -65;
}
}
onClipEvent (enterFrame) {
if (this._y >= (Stage.height + 65)) {
this._y = -65;
}
}
onClipEvent (enterFrame) {
if (this._y <= -66) {
this._y = Stage.height + 65;
}
}
onClipEvent (enterFrame) {
if (this._x <= -66) {
this._x = Stage.width + 65;
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this.hitTest(_root.towerbot) and (_root.barrel.dead == 0)) and (dead == 0)) {
health = 0;
this.gotoAndPlay(2);
_root.health = _root.health - 25;
_root.heal = _root.heal - 25;
_root.i--;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health < 0) {
_root.health = 0;
}
if (_root.health == 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
shotchance = 0;
shotchancecount = 0;
maxshots = 5;
_root.zshot._visible = false;
shotcount = 1;
depthcount = 1;
shotchance = 0;
rot = 0;
dead = 0;
speed = 5;
rotat = 0;
health = 20;
xez = random(-20) - 65;
this._x = xez;
this._y = random(300) + 5;
}
}
Instance of Symbol 249 MovieClip "healthbarE2" in Frame 79
onClipEvent (enterFrame) {
this.gotoAndStop((_root.atv.health * 5) + 1);
this._x = _root.atv._x - 12;
this._y = _root.atv._y - 25;
}
onClipEvent (enterFrame) {
if (_root.atv.health == 0) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 249 MovieClip "healthbarE" in Frame 79
onClipEvent (enterFrame) {
this.gotoAndStop(_root.treads.health + 1);
this._x = _root.treads._x;
this._y = _root.treads._y - 25;
}
onClipEvent (enterFrame) {
if (_root.treads.health == 0) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 259 MovieClip "eshot" in Frame 79
onClipEvent (load) {
shotspeed = 20;
rotat = _root.tankbarrel._rotation;
this._rotation = rotat - 90;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.tankbarrel._x + (cosine * 2.5);
this._y = _root.tankbarrel._y + (sine * 2.5);
}
onClipEvent (enterFrame) {
if ((this._name != "eshot") and (this.shotb == 0)) {
if (_root.disable == 0) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat - 90;
if (this._y > 320) {
_root.tankbarrel.shotcount--;
this.removeMovieClip();
}
if (this._y < -20) {
_root.tankbarrel.shotcount--;
this.removeMovieClip();
}
if (this._x > 420) {
_root.tankbarrel.shotcount--;
this.removeMovieClip();
}
if (this._x < -20) {
_root.tankbarrel.shotcount--;
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (this.hitTest(_root.towerbot) and (this.shotb == 0)) {
this.gotoAndPlay(2);
_root.health = _root.health - 10;
_root.heal = _root.heal - 10;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health <= 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
shotspeed = 20;
rotat = _root.tankbarrel._rotation;
this._rotation = rotat - 90;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.tankbarrel._x + (cosine * 2.5);
this._y = _root.tankbarrel._y + (sine * 2.5);
}
}
onClipEvent (enterFrame) {
if ((this.shotb == 0) and this.hitTest(_root.shieldish)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 249 MovieClip "healthbarE3" in Frame 79
onClipEvent (load) {
depth = _root.i;
}
onClipEvent (enterFrame) {
this.gotoAndStop((_root.wheelpod.health * 10) + 1);
this._x = _root.wheelpod._x - 12;
this._y = _root.wheelpod._y - 25;
}
onClipEvent (enterFrame) {
if (_root.wheelpod.health == 0) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 249 MovieClip "healthbarE4" in Frame 79
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(_root.wheelcannon.health / 2) + 1);
this._x = _root.wheelcannon._x - 12;
this._y = _root.wheelcannon._y - 25;
}
onClipEvent (enterFrame) {
if (_root.wheelcannon.health == 0) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 249 MovieClip "healthbarE5" in Frame 79
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(_root.wheelmachine.health / 1.5) + 1);
this._x = _root.wheelmachine._x - 12;
this._y = _root.wheelmachine._y - 25;
}
onClipEvent (enterFrame) {
if (_root.wheelmachine.health == 0) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 264 MovieClip "wheelpod" in Frame 79
onClipEvent (load) {
shotchance = 0;
maxchance = 10;
shotchancecount = 0;
maxshots = 3;
_root.podshot._visible = false;
shotcount = 1;
depthcount = 1;
shotchance = 0;
rot = 0;
dead = 0;
speed = 5;
rotat = 0;
health = 10;
xez = random(-20) - 45;
this._x = xez;
this._y = random(300) + 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wheelcannon)) {
this._y = this._y + 4;
}
if (this.hitTest(_root.wheelmachine)) {
this._y = this._y + 4;
}
if (this.hitTest(_root.gtreads)) {
this._y = this._y + 4;
}
if (this.hitTest(_root.ghost)) {
this._y = this._y + 4;
}
if (this.hitTest(_root.treads)) {
this._y = this._y - 4;
}
if (this.hitTest(_root.atv)) {
this._y = this._y - 4;
}
}
onClipEvent (enterFrame) {
if (((dead == 0) and (_root.disable == 0)) and (_root.daynum > 0)) {
if (shotchance < maxchance) {
shotchance = shotchance + 1;
}
if ((shotchance == maxchance) and (shotchancecount < 2)) {
shotchancecount = shotchancecount + 1;
}
if (shotchancecount == 2) {
shotchance = 0;
shotchancecount = 0;
}
}
}
onClipEvent (enterFrame) {
if ((((_root.barrel.dead == 0) and (dead == 0)) and (_root.disable == 0)) and (_root.daynum > 0)) {
if ((shotchance == maxchance) and (maxshots >= shotcount)) {
shotcount++;
_root.podshot.duplicateMovieClip("podshot" + depthcount, depthcount - 10);
_root["podshot" + depthcount]._visible = true;
depthcount++;
if (depthcount > maxshots) {
depthcount = 1;
}
}
}
}
onClipEvent (enterFrame) {
sine = Math.sin((rotat * Math.PI) / 180) * speed;
cosine = Math.cos((rotat * Math.PI) / 180) * speed;
if (((dead == 0) and (_root.disable == 0)) and (_root.daynum > 0)) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat;
}
}
onClipEvent (enterFrame) {
if (health < 0) {
health == 0;
}
}
onClipEvent (enterFrame) {
if (this._x >= (Stage.width + 45)) {
this._x = -45;
}
}
onClipEvent (enterFrame) {
if (this._y >= (Stage.height + 25)) {
this._y = -25;
}
}
onClipEvent (enterFrame) {
if (this._y <= -26) {
this._y = Stage.height + 25;
}
}
onClipEvent (enterFrame) {
if (this._x <= -46) {
this._x = Stage.width + 45;
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this.hitTest(_root.towerbot) and (_root.barrel.dead == 0)) and (dead == 0)) {
health = 0;
this.gotoAndPlay(2);
_root.health = _root.health - 25;
_root.heal = _root.heal - 25;
_root.i--;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health < 0) {
_root.health = 0;
}
if (_root.health == 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
shotchance = 0;
maxchance = 10;
shotchancecount = 0;
maxshots = 3;
_root.podshot._visible = false;
shotcount = 1;
depthcount = 1;
shotchance = 0;
rot = 0;
dead = 0;
speed = 5;
rotat = 0;
health = 10;
xez = random(-20) - 45;
this._x = xez;
this._y = random(300) + 5;
}
}
Instance of Symbol 271 MovieClip "missle" in Frame 79
onClipEvent (load) {
shotspeed = 5;
rotat = _root.wheelcannon._rotation;
this._rotation = rotat;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.wheelcannon._x + (cosine * 10);
this._y = _root.wheelcannon._y + (sine * 10);
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this._name != "missle") and (this.shotb == 0)) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat;
if (this._y > 305) {
_root.wheelcannon.shotcount--;
this.removeMovieClip();
}
if (this._y < -5) {
_root.wheelcannon.shotcount--;
this.removeMovieClip();
}
if (this._x > 405) {
_root.wheelcannon.shotcount--;
this.removeMovieClip();
}
if (this._x < -5) {
_root.wheelcannon.shotcount--;
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (this.hitTest(_root.towerbot) and (this.shotb == 0)) {
this.gotoAndPlay(2);
_root.health = _root.health - 75;
_root.heal = _root.heal - 75;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health <= 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
_root.wheelcannon.shotcount--;
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if ((this.shotb == 0) and this.hitTest(_root.shieldish)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 276 MovieClip "wheelmachine" in Frame 79
onClipEvent (load) {
shotchance = 0;
shotchancecount = 0;
maxshots = 2;
_root.bullet1._visible = false;
shotcount = 1;
depthcount = 1;
shotchance = 0;
rot = 0;
dead = 0;
speed = 3;
rotat = 0;
health = 150;
xez = random(-20) - 65;
this._x = xez;
this._y = random(300) + 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wheelcannon)) {
this._y = this._y + 5;
}
if (this.hitTest(_root.gtreads)) {
this._y = this._y + 5;
}
if (this.hitTest(_root.ghost)) {
this._y = this._y + 5;
}
if (this.hitTest(_root.wheelpod)) {
this._y = this._y - 5;
}
if (this.hitTest(_root.treads)) {
this._y = this._y - 5;
}
if (this.hitTest(_root.atv)) {
this._y = this._y - 5;
}
}
onClipEvent (enterFrame) {
if (((dead == 0) and (_root.disable == 0)) and (_root.daynum >= 17)) {
if (shotchance < 10) {
shotchance = shotchance + 1;
}
if ((shotchance == 10) and (shotchancecount < 2)) {
shotchancecount = shotchancecount + 1;
}
if (shotchancecount == 2) {
shotchance = 0;
shotchancecount = 0;
}
}
}
onClipEvent (enterFrame) {
if ((((_root.barrel.dead == 0) and (dead == 0)) and (_root.disable == 0)) and (_root.daynum >= 17)) {
if ((shotchance == 10) and (maxshots >= shotcount)) {
shotcount++;
_root.bullet1.duplicateMovieClip("bullet1" + depthcount, depthcount - 65);
_root["bullet1" + depthcount]._visible = true;
depthcount++;
if (depthcount > maxshots) {
depthcount = 1;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.disable == 0) and (_root.daynum >= 17)) {
if ((rotat < 60) and (rot == 0)) {
rotat = rotat + 5;
}
if (rotat == 60) {
rot = 1;
}
if ((rotat >= -60) and (rot == 1)) {
rotat = rotat - 5;
}
if (rotat == -60) {
rot = 3;
}
if ((rotat <= 60) and (rot == 3)) {
rotat = rotat + 5;
}
if (rotat == 60) {
rot = 0;
}
}
}
onClipEvent (enterFrame) {
sine = Math.sin((rotat * Math.PI) / 180) * speed;
cosine = Math.cos((rotat * Math.PI) / 180) * speed;
if (((dead == 0) and (_root.disable == 0)) and (_root.daynum >= 17)) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat;
}
}
onClipEvent (enterFrame) {
if (health < 0) {
health == 0;
}
}
onClipEvent (enterFrame) {
if (this._x >= (Stage.width + 65)) {
this._x = -65;
}
}
onClipEvent (enterFrame) {
if (this._y >= (Stage.height + 65)) {
this._y = -65;
}
}
onClipEvent (enterFrame) {
if (this._y <= -66) {
this._y = Stage.height + 65;
}
}
onClipEvent (enterFrame) {
if (this._x <= -66) {
this._x = Stage.width + 65;
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this.hitTest(_root.towerbot) and (_root.barrel.dead == 0)) and (dead == 0)) {
health = 0;
this.gotoAndPlay(2);
_root.i--;
_root.health = _root.health - 25;
_root.heal = _root.heal - 25;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health < 0) {
_root.health = 0;
}
if (_root.health == 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
shotchance = 0;
shotchancecount = 0;
maxshots = 5;
_root.bullet1._visible = false;
shotcount = 1;
depthcount = 1;
shotchance = 0;
rot = 0;
dead = 0;
speed = 3;
rotat = 0;
health = 150;
xez = random(-20) - 65;
this._x = xez;
this._y = random(300) + 5;
}
}
Instance of Symbol 284 MovieClip "bullet1" in Frame 79
onClipEvent (load) {
shotspeed = 20;
rotat = _root.wheelmachine._rotation;
this._rotation = rotat;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.wheelmachine._x + cosine;
this._y = _root.wheelmachine._y + sine;
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this._name != "bullet1") and (this.shotb == 0)) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat;
if (this._y > 320) {
_root.wheelmachine.shotcount--;
this.removeMovieClip();
}
if (this._y < -20) {
_root.wheelmachine.shotcount--;
this.removeMovieClip();
}
if (this._x > 420) {
_root.wheelmachine.shotcount--;
this.removeMovieClip();
}
if (this._x < -20) {
_root.wheelmachine.shotcount--;
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (this.hitTest(_root.towerbot) and (this.shotb == 0)) {
this.gotoAndPlay(2);
_root.health = _root.health - 50;
_root.heal = _root.heal - 50;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health <= 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
shotspeed = 20;
rotat = _root.wheelmachine._rotation;
this._rotation = rotat;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.wheelmachine._x;
this._y = _root.wheelmachine._y;
}
}
onClipEvent (enterFrame) {
if ((this.shotb == 0) and this.hitTest(_root.shieldish)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 290 MovieClip "podshot" in Frame 79
onClipEvent (load) {
shotspeed = 20;
rotat = _root.wheelpod._rotation;
this._rotation = rotat - 90;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.wheelpod._x + cosine;
this._y = _root.wheelpod._y + 3;
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this._name != "podshot") and (this.shotb == 0)) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat - 90;
if (this._y > 305) {
_root.wheelpod.shotcount--;
this.removeMovieClip();
}
if (this._y < -5) {
_root.wheelpod.shotcount--;
this.removeMovieClip();
}
if (this._x > 405) {
_root.wheelpod.shotcount--;
this.removeMovieClip();
}
if (this._x < -5) {
_root.wheelpod.shotcount--;
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (this.hitTest(_root.towerbot) and (this.shotb == 0)) {
this.gotoAndPlay(2);
_root.health = _root.health - 5;
_root.heal = _root.heal - 5;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health <= 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
_root.wheelpod.shotcount--;
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if ((this.shotb == 0) and this.hitTest(_root.shieldish)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 295 MovieClip "zshot" in Frame 79
onClipEvent (load) {
shotspeed = 20;
rotat = _root.atv._rotation;
this._rotation = rotat - 90;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.atv._x;
this._y = _root.atv._y;
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this._name != "zshot") and (this.shotb == 0)) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat - 90;
if (this._y > 305) {
_root.atv.shotcount--;
this.removeMovieClip();
}
if (this._y < -5) {
_root.atv.shotcount--;
this.removeMovieClip();
}
if (this._x > 405) {
_root.atv.shotcount--;
this.removeMovieClip();
}
if (this._x < -5) {
_root.atv.shotcount--;
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (this.hitTest(_root.towerbot) and (this.shotb == 0)) {
this.gotoAndPlay(2);
_root.health = _root.health - 10;
_root.heal = _root.heal - 10;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health <= 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
shotspeed = 20;
rotat = _root.atv._rotation;
this._rotation = rotat - 90;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.atv._x;
this._y = _root.atv._y;
}
}
onClipEvent (enterFrame) {
if ((this.shotb == 0) and this.hitTest(_root.shieldish)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 302 MovieClip "ghost" in Frame 79
onClipEvent (load) {
shotchance = 0;
shotchancecount = 0;
maxshots = 10;
_root.laserG._visible = false;
shotcount = 1;
depthcount = 1;
shotchance = 0;
rot = 0;
dead = 0;
speed = 3;
rotat = 0;
health = 50;
xez = random(-20) - 85;
this._x = xez;
this._y = random(300) + 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wheelcannon)) {
this._y = this._y - 10;
}
if (this.hitTest(_root.wheelmachine)) {
this._y = this._y - 10;
}
if (this.hitTest(_root.wheelpod)) {
this._y = this._y - 5;
}
if (this.hitTest(_root.treads)) {
this._y = this._y - 5;
}
if (this.hitTest(_root.gtreads)) {
this._y = this._y + 5;
}
if (this.hitTest(_root.atv)) {
this._y = this._y - 5;
}
}
onClipEvent (enterFrame) {
if (((dead == 0) and (_root.disable == 0)) and (_root.daynum >= 30)) {
if (shotchance < 5) {
shotchance = shotchance + 1;
}
if ((shotchance == 5) and (shotchancecount < 2)) {
shotchancecount = shotchancecount + 1;
}
if (shotchancecount == 2) {
shotchance = 0;
shotchancecount = 0;
}
}
}
onClipEvent (enterFrame) {
if ((((_root.barrel.dead == 0) and (dead == 0)) and (_root.disable == 0)) and (_root.daynum >= 30)) {
if ((shotchance == 5) and (maxshots >= shotcount)) {
shotcount++;
_root.laserG.duplicateMovieClip("laserG" + depthcount, depthcount - 500);
_root["laserG" + depthcount]._visible = true;
depthcount++;
if (depthcount > maxshots) {
depthcount = 1;
}
}
}
}
onClipEvent (enterFrame) {
sine = Math.sin((rotat * Math.PI) / 180) * speed;
cosine = Math.cos((rotat * Math.PI) / 180) * speed;
if (((dead == 0) and (_root.disable == 0)) and (_root.daynum >= 30)) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat;
}
}
onClipEvent (enterFrame) {
if (health < 0) {
health == 0;
}
}
onClipEvent (enterFrame) {
if (this._x >= (Stage.width + 85)) {
this._x = -85;
}
}
onClipEvent (enterFrame) {
if (this._y >= (Stage.height + 85)) {
this._y = -85;
}
}
onClipEvent (enterFrame) {
if (this._y <= -86) {
this._y = Stage.height + 85;
}
}
onClipEvent (enterFrame) {
if (this._x <= -86) {
this._x = Stage.width + 85;
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this.hitTest(_root.towerbot) and (_root.barrel.dead == 0)) and (dead == 0)) {
health = 0;
this.gotoAndPlay(2);
_root.i--;
_root.health = _root.health - 25;
_root.heal = _root.heal - 25;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health < 0) {
_root.health = 0;
}
if (_root.health == 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
shotchance = 0;
shotchancecount = 0;
maxshots = 10;
_root.laserG._visible = false;
shotcount = 1;
depthcount = 1;
shotchance = 0;
rot = 0;
dead = 0;
speed = 3;
rotat = 0;
health = 50;
xez = random(-20) - 85;
this._x = xez;
this._y = random(300) + 5;
}
}
Instance of Symbol 309 MovieClip in Frame 79
onClipEvent (enterFrame) {
this._x = _root.ghost._x + 50;
this._y = _root.ghost._y;
this._rotation = this._rotation + 2;
if (_root.ghost.dead != 0) {
this._visible = false;
}
if (_root.ghost.dead == 0) {
this._visible = true;
}
}
Instance of Symbol 324 MovieClip "gtreads" in Frame 79
onClipEvent (load) {
dead = 0;
treadspeed = 2;
rotat = 0;
health = 200;
xez = random(-20) - 85;
this._x = xez;
this._y = random(300) + 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wheelcannon)) {
this._y = this._y - 1;
}
if (this.hitTest(_root.wheelmachine)) {
this._y = this._y + 1;
}
if (this.hitTest(_root.ghost)) {
this._y = this._y + 1;
}
if (this.hitTest(_root.wheelpod)) {
this._y = this._y + 1;
}
if (this.hitTest(_root.atv)) {
this._y = this._y + 1;
}
if (this.hitTest(_root.treads)) {
this._y = this._y - 1;
}
}
onClipEvent (enterFrame) {
if (health < 0) {
health = 0;
}
}
onClipEvent (enterFrame) {
if (this._x == (Stage.width + 75)) {
this._x = -75;
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((_root.daynum >= 50) and (dead == 0)) {
this._x = this._x + treadspeed;
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this.hitTest(_root.towerbot) and (_root.barrel.dead == 0)) and (dead == 0)) {
health = 0;
this.gotoAndPlay(2);
_root.health = _root.health - 25;
_root.heal = _root.heal - 25;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health <= 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
dead = 0;
treadspeed = 2;
rotat = 0;
health = 200;
xez = random(-20) - 85;
this._x = xez;
this._y = random(300) + 5;
}
}
Instance of Symbol 326 MovieClip "gtankbarrel" in Frame 79
onClipEvent (load) {
shotchance = 0;
shotchancecount = 0;
maxshots = 1;
_root.tlaserG._visible = false;
shotcount = 1;
depthcount = 1;
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
a = this._y - _root.top._y;
b = this._x - _root.top._x;
c = b / a;
d = Math.atan(c);
rotat = (d * 180) / Math.PI;
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (_root.daynum >= 50) {
if (shotchance < 25) {
shotchance = shotchance + 1;
}
if ((shotchance == 25) and (shotchancecount < 10)) {
shotchancecount = shotchancecount + 1;
}
if (shotchancecount == 10) {
shotchance = 0;
shotchancecount = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (((_root.barrel.dead == 0) and (_root.daynum >= 50)) and (_root.disable == 0)) {
if (((shotchance == 25) and (maxshots >= shotcount)) and (this._visible == true)) {
shotcount++;
_root.tlaserG.duplicateMovieClip("tlaserG" + depthcount, depthcount - 120);
_root["tlaserG" + depthcount]._visible = true;
depthcount++;
if (depthcount > maxshots) {
depthcount = 1;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.top._y < this._y) {
this._x = _root.gtreads._x;
this._y = _root.gtreads._y;
this._rotation = (rotat * -1) - 90;
} else {
this._x = _root.gtreads._x;
this._y = _root.gtreads._y;
this._rotation = (rotat * -1) + 90;
}
}
onClipEvent (enterFrame) {
if (_root.gtreads.health == 0) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 337 MovieClip "treads" in Frame 79
onClipEvent (load) {
dead = 0;
treadspeed = 2;
rotat = 0;
health = 100;
xez = random(-20) - 65;
this._x = xez;
this._y = random(300) + 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wheelcannon)) {
this._y = this._y + 1;
}
if (this.hitTest(_root.gtreads)) {
this._y = this._y + 1;
}
if (this.hitTest(_root.wheelmachine)) {
this._y = this._y + 1;
}
if (this.hitTest(_root.ghost)) {
this._y = this._y + 1;
}
if (this.hitTest(_root.wheelpod)) {
this._y = this._y + 1;
}
if (this.hitTest(_root.atv)) {
this._y = this._y + 1;
}
}
onClipEvent (enterFrame) {
if (health < 0) {
health = 0;
}
}
onClipEvent (enterFrame) {
if (this._x == (Stage.width + 65)) {
this._x = -65;
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((_root.daynum >= 10) and (dead == 0)) {
this._x = this._x + treadspeed;
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this.hitTest(_root.towerbot) and (_root.barrel.dead == 0)) and (dead == 0)) {
health = 0;
this.gotoAndPlay(2);
_root.health = _root.health - 25;
_root.heal = _root.heal - 25;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health <= 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
dead = 0;
treadspeed = 2;
rotat = 0;
health = 100;
xez = random(-20) - 65;
this._x = xez;
this._y = random(300) + 5;
}
}
Instance of Symbol 339 MovieClip "tankbarrel" in Frame 79
onClipEvent (load) {
shotchance = 0;
shotchancecount = 0;
maxshots = 1;
_root.eshot._visible = false;
shotcount = 1;
depthcount = 1;
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
a = this._y - _root.top._y;
b = this._x - _root.top._x;
c = b / a;
d = Math.atan(c);
rotat = (d * 180) / Math.PI;
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (_root.daynum >= 10) {
if (shotchance < 25) {
shotchance = shotchance + 1;
}
if ((shotchance == 25) and (shotchancecount < 10)) {
shotchancecount = shotchancecount + 1;
}
if (shotchancecount == 10) {
shotchance = 0;
shotchancecount = 0;
}
}
}
}
onClipEvent (enterFrame) {
if (((_root.barrel.dead == 0) and (_root.daynum >= 10)) and (_root.disable == 0)) {
if (((shotchance == 25) and (maxshots >= shotcount)) and (this._visible == true)) {
shotcount++;
_root.eshot.duplicateMovieClip("eshot" + depthcount, depthcount - 20);
_root["eshot" + depthcount]._visible = true;
depthcount++;
if (depthcount > maxshots) {
depthcount = 1;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.top._y < this._y) {
this._x = _root.treads._x;
this._y = _root.treads._y;
this._rotation = (rotat * -1) - 90;
} else {
this._x = _root.treads._x;
this._y = _root.treads._y;
this._rotation = (rotat * -1) + 90;
}
}
onClipEvent (enterFrame) {
if (_root.treads.health == 0) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 351 MovieClip "wheelcannon" in Frame 79
onClipEvent (load) {
shotchance = 0;
maxchance = 50;
shotchancecount = 0;
maxshots = 1;
_root.missle._visible = false;
shotcount = 1;
depthcount = 1;
shotchance = 0;
rot = 0;
dead = 0;
speed = 2;
rotat = 0;
health = 200;
xez = random(-20) - 85;
this._x = xez;
this._y = random(300) + 5;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.wheelpod)) {
this._y = this._y - 2;
}
if (this.hitTest(_root.wheelmachine)) {
this._y = this._y - 2;
}
if (this.hitTest(_root.treads)) {
this._y = this._y - 2;
}
if (this.hitTest(_root.gtreads)) {
this._y = this._y + 2;
}
if (this.hitTest(_root.ghost)) {
this._y = this._y + 2;
}
if (this.hitTest(_root.atv)) {
this._y = this._y - 2;
}
}
onClipEvent (enterFrame) {
if (((dead == 0) and (_root.disable == 0)) and (_root.daynum >= 25)) {
if (shotchance < maxchance) {
shotchance = shotchance + 1;
}
if ((shotchance == maxchance) and (shotchancecount < 2)) {
shotchancecount = shotchancecount + 1;
}
if (shotchancecount == 2) {
shotchance = 0;
shotchancecount = 0;
}
}
}
onClipEvent (enterFrame) {
if ((((_root.barrel.dead == 0) and (dead == 0)) and (_root.disable == 0)) and (_root.daynum >= 25)) {
if ((shotchance == maxchance) and (maxshots >= shotcount)) {
shotcount++;
_root.missle.duplicateMovieClip("missle" + depthcount, depthcount - 250);
_root["missle" + depthcount]._visible = true;
depthcount++;
if (depthcount > maxshots) {
depthcount = 1;
}
}
}
}
onClipEvent (enterFrame) {
sine = Math.sin((rotat * Math.PI) / 180) * speed;
cosine = Math.cos((rotat * Math.PI) / 180) * speed;
if (((dead == 0) and (_root.disable == 0)) and (_root.daynum >= 25)) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat;
}
}
onClipEvent (enterFrame) {
if (health < 0) {
health == 0;
}
}
onClipEvent (enterFrame) {
if (this._x >= (Stage.width + 86)) {
this._x = -85;
}
}
onClipEvent (enterFrame) {
if (this._y >= (Stage.height + 25)) {
this._y = -25;
}
}
onClipEvent (enterFrame) {
if (this._y <= -26) {
this._y = Stage.height + 25;
}
}
onClipEvent (enterFrame) {
if (this._x <= -86) {
this._x = Stage.width + 85;
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this.hitTest(_root.towerbot) and (_root.barrel.dead == 0)) and (dead == 0)) {
health = 0;
this.gotoAndPlay(2);
_root.i--;
_root.health = _root.health - 25;
_root.heal = _root.heal - 25;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health < 0) {
_root.health = 0;
}
if (_root.health == 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
shotchance = 0;
maxchance = 50;
shotchancecount = 0;
maxshots = 1;
_root.missle._visible = false;
shotcount = 1;
depthcount = 1;
shotchance = 0;
rot = 0;
dead = 0;
speed = 2;
rotat = 0;
health = 200;
xez = random(-20) - 85;
this._x = xez;
this._y = random(300) + 5;
}
}
Instance of Symbol 359 MovieClip "laserG" in Frame 79
onClipEvent (load) {
shotspeed = 20;
rotat = _root.ghost._rotation;
this._rotation = rotat;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.ghost._x + (cosine * 2.5);
this._y = _root.ghost._y + (sine * 2.5);
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if ((this._name != "laserG") and (this.shotb == 0)) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat;
if (this._y > 305) {
_root.ghost.shotcount--;
this.removeMovieClip();
}
if (this._y < -5) {
_root.ghost.shotcount--;
this.removeMovieClip();
}
if (this._x > 405) {
_root.ghost.shotcount--;
this.removeMovieClip();
}
if (this._x < -5) {
_root.ghost.shotcount--;
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (this.hitTest(_root.towerbot) and (this.shotb == 0)) {
this.gotoAndPlay(2);
_root.health = _root.health - 5;
_root.heal = _root.heal - 5;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health <= 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
_root.ghost.shotcount--;
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if ((this.shotb == 0) and this.hitTest(_root.shieldish)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 367 MovieClip "tlaserG" in Frame 79
onClipEvent (load) {
shotspeed = 20;
rotat = _root.gtankbarrel._rotation;
this._rotation = rotat;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.gtankbarrel._x + (cosine * 5);
this._y = _root.gtankbarrel._y + (sine * 5);
}
onClipEvent (enterFrame) {
if ((this._name != "tlaserG") and (this.shotb == 0)) {
if (_root.disable == 0) {
this._x = this._x + cosine;
this._y = this._y + sine;
this._rotation = rotat;
if (this._y > 320) {
_root.gtankbarrel.shotcount--;
this.removeMovieClip();
}
if (this._y < -20) {
_root.gtankbarrel.shotcount--;
this.removeMovieClip();
}
if (this._x > 420) {
_root.gtankbarrel.shotcount--;
this.removeMovieClip();
}
if (this._x < -20) {
_root.gtankbarrel.shotcount--;
this.removeMovieClip();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (this.hitTest(_root.towerbot) and (this.shotb == 0)) {
this.gotoAndPlay(2);
_root.health = _root.health - 25;
_root.heal = _root.heal - 25;
this._x = this._x + 0;
this._y = this._y + 0;
if (_root.health <= 0) {
_root.towerbot.gotoAndPlay(2);
_root.monmon = _root.monmon - _root.tankcost;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 1) {
shotspeed = 20;
rotat = _root.gtankbarrel._rotation;
this._rotation = rotat - 90;
sine = Math.sin((rotat * Math.PI) / 180) * shotspeed;
cosine = Math.cos((rotat * Math.PI) / 180) * shotspeed;
this._x = _root.gtankbarrel._x + (cosine * 2.5);
this._y = _root.gtankbarrel._y + (sine * 2.5);
}
}
onClipEvent (enterFrame) {
if ((this.shotb == 0) and this.hitTest(_root.shieldish)) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 249 MovieClip "healthbarE4" in Frame 79
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(_root.ghost.health * 2) + 1);
this._x = _root.ghost._x - 12;
this._y = _root.ghost._y - 25;
}
onClipEvent (enterFrame) {
if (_root.ghost.health == 0) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 249 MovieClip "healthbarE4" in Frame 79
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(_root.gtreads.health / 2) + 1);
this._x = _root.gtreads._x - 12;
this._y = _root.gtreads._y - 25;
}
onClipEvent (enterFrame) {
if (_root.gtreads.health == 0) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 220 MovieClip "countz" in Frame 79
onClipEvent (load) {
mins = 30;
}
onClipEvent (enterFrame) {
_root.lives = "x" + _root.lifenum;
_root.day = "Day " + _root.daynum;
_root.money = "$" + _root.monmon;
}
onClipEvent (enterFrame) {
_root.hoursleft = (((("Time left: " + Math.round(_root.hours / 25)) + "hrs") + " ") + Math.round(mins)) + "mins";
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
mins = mins - 1.2;
_root.hours = _root.hours - 0.5;
if (mins < 0) {
mins = 60;
}
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (_root.hours < 0) {
_root.hours = 0;
mins = 0;
if (_root.hours == 0) {
_root.shop.gotoAndStop(2);
}
}
}
}
onClipEvent (enterFrame) {
_root.daymet.gotoAndStop(_root.hours + 1);
}
onClipEvent (enterFrame) {
_root.healthbar.gotoAndStop(int(_root.health / (_root.maxhealth / 100)) + 1);
if (_root.health < 0) {
_root.health = 0;
}
}
onClipEvent (enterFrame) {
if (_root.disable == 0) {
if (_root.shield == 1) {
if ((_root.health < _root.maxhealth) and (_root.health > 25)) {
_root.heal = _root.heal + 0.25;
_root.health = Math.round(_root.heal);
}
}
}
if (_root.disable == 0) {
if (_root.shield == 2) {
if ((_root.health < _root.maxhealth) and (_root.health > 25)) {
_root.heal = _root.heal + 0.5;
_root.health = Math.round(_root.heal);
}
}
}
if (_root.disable == 0) {
if (_root.shield == 3) {
if ((_root.health < _root.maxhealth) and (_root.health > 25)) {
_root.heal = _root.heal + 0.75;
_root.health = Math.round(_root.heal);
}
}
}
if (_root.disable == 0) {
if (_root.shield == 4) {
if ((_root.health < _root.maxhealth) and (_root.health > 25)) {
_root.heal = _root.heal + 1;
_root.health = Math.round(_root.heal);
}
}
}
if (_root.health == _root.maxhealth) {
_root.heal = _root.maxhealth;
}
if (_root.health == 25) {
_root.heal = 25;
}
}
onClipEvent (enterFrame) {
if (_root.health < 0) {
_root.health = 0;
}
if (_root.health >= _root.maxhealth) {
_root.health = _root.maxhealth;
}
}
onClipEvent (enterFrame) {
if (_root.lifenum <= 0) {
_root.lifenum = 0;
}
}
onClipEvent (enterFrame) {
_root.accuracy = int(_root.shotshit / (_root.shotsfired / 100));
}
Instance of Symbol 546 MovieClip "pause1" in Frame 79
onClipEvent (keyDown) {
if (_root.disable == 0) {
if ((Key.getCode() == 80) and (_root.pframe == 1)) {
this.gotoAndStop(2);
}
}
}
onClipEvent (keyDown) {
if (_root.disable == 2) {
if ((Key.getCode() == 80) and (_root.pframe == 2)) {
this.gotoAndStop(1);
}
}
}
Symbol 20 Button
on (release) {
getURL ("http://www.armorgames.com/", _blank);
}
Symbol 29 Button
on (press) {
getURL ("http://www.armorgames.com", _blank);
}
Symbol 49 Button
on (release) {
if (_root.buttonpress == 0) {
play();
stopAllSounds();
}
}
Symbol 50 Button
on (release) {
if (_root.buttonpress == 0) {
_root.instructions.gotoAndPlay(2);
}
}
Symbol 51 Button
on (release) {
if (_root.buttonpress == 0) {
getURL ("http://www.armorgames.com/", _blank);
}
}
Symbol 57 Button
on (press) {
gotoAndStop (2);
}
Symbol 59 Button
on (press) {
gotoAndStop (1);
}
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
stopAllSounds();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
_parent._root.top.gotoAndStop(2);
_parent._root.barrel.gotoAndStop(2);
_parent._root.barrel.dead = 1;
_parent._root.deaths++;
Symbol 110 MovieClip Frame 13
_parent._root.lifenum = _parent._root.lifenum - 1;
if (_parent._root.lifenum <= 0) {
_parent._root.gotoAndStop("gameover");
}
Symbol 110 MovieClip Frame 102
_parent._root.top.gotoAndStop(1);
_parent._root.barrel.gotoAndStop(1);
_parent._root.barrel.dead = 0;
_parent._root.health = _parent._root.maxhealth;
Symbol 112 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
shota = 0;
stop();
Symbol 132 MovieClip Frame 2
shota = 1;
Symbol 132 MovieClip Frame 11
_parent._root.barrel.shotcount--;
_parent.removeMovieClip();
stop();
Symbol 139 Button
on (release) {
gotoAndStop (1);
}
Symbol 144 Button
on (release) {
nextFrame();
}
Symbol 177 Button
on (release) {
prevFrame();
}
Symbol 203 Button
on (press) {
if ((_parent._root.health < _parent._root.maxhealth) and (_parent._root.monmon >= 250)) {
_parent._root.health = _parent._root.health + 25;
_parent._root.monmon = _parent._root.monmon - 250;
}
}
Symbol 206 Button
on (press) {
if (_parent._root.monmon >= 1000) {
_parent._root.lifenum = _parent._root.lifenum + 1;
_parent._root.monmon = _parent._root.monmon - 1000;
}
}
Symbol 212 MovieClip Frame 1
stop();
_parent._root.buttonpress = 0;
Symbol 212 MovieClip Frame 2
_parent._root.buttonpress = 1;
Symbol 212 MovieClip Frame 6
stop();
Instance of Symbol 159 MovieClip "healthbar" in Symbol 212 MovieClip Frame 7
onClipEvent (enterFrame) {
this.gotoAndStop(101);
}
Instance of Symbol 166 MovieClip "daymet" in Symbol 212 MovieClip Frame 7
onClipEvent (enterFrame) {
this.gotoAndStop(601);
}
Instance of Symbol 182 MovieClip in Symbol 212 MovieClip Frame 8
/* no clip actions */
Instance of Symbol 182 MovieClip in Symbol 212 MovieClip Frame 9
/* no clip actions */
Symbol 228 MovieClip Frame 87
_parent._root.gotoAndStop("start");
Symbol 233 MovieClip Frame 1
stop();
_parent._root.sfact = 0;
Symbol 233 MovieClip Frame 2
_parent._root.sfact = 1;
Symbol 245 MovieClip Frame 1
_parent._root.atv.dead = 0;
stop();
Symbol 245 MovieClip Frame 2
_parent._root.atv.dead = 1;
Symbol 245 MovieClip Frame 70
_parent._root.atv._x = -45;
_parent._root.atv._y = random(Stage.height / 2) + (random(100) + 50);
_parent._root.atv.health = 20;
this.gotoAndStop(1);
Symbol 259 MovieClip Frame 1
shotb = 0;
stop();
Symbol 259 MovieClip Frame 2
shotb = 1;
Symbol 259 MovieClip Frame 11
_parent._root.tankbarrel.shotcount--;
_parent.removeMovieClip();
stop();
Symbol 264 MovieClip Frame 1
stop();
_parent._root.wheelpod.dead = 0;
Symbol 264 MovieClip Frame 2
_parent._root.wheelpod.dead = 1;
Symbol 264 MovieClip Frame 70
_parent._root.wheelpod._x = -45;
_parent._root.wheelpod.rotat = 0;
_parent._root.wheelpod._y = random(Stage.height / 2) + (random(100) + 50);
_parent._root.wheelpod.health = 10;
this.gotoAndStop(1);
Symbol 271 MovieClip Frame 1
shotb = 0;
stop();
Symbol 271 MovieClip Frame 2
shotb = 1;
Symbol 271 MovieClip Frame 7
_parent._root.wheelcannon.shotcount--;
_parent.removeMovieClip();
stop();
Symbol 276 MovieClip Frame 1
_parent._root.wheelmachine.dead = 0;
stop();
Symbol 276 MovieClip Frame 2
_parent._root.wheelmachine.dead = 1;
Symbol 276 MovieClip Frame 70
_parent._root.wheelmachine._x = -45;
_parent._root.wheelmachine._y = random(Stage.height / 2) + (random(100) + 50);
_parent._root.wheelmachine.health = 150;
this.gotoAndStop(1);
Symbol 284 MovieClip Frame 1
shotb = 0;
stop();
Symbol 284 MovieClip Frame 2
shotb = 1;
Symbol 284 MovieClip Frame 6
_parent._root.wheelmachine.shotcount--;
_parent.removeMovieClip();
stop();
Symbol 290 MovieClip Frame 1
shotb = 0;
stop();
Symbol 290 MovieClip Frame 2
shotb = 1;
Symbol 290 MovieClip Frame 6
_parent._root.wheelpod.shotcount--;
_parent.removeMovieClip();
stop();
Symbol 295 MovieClip Frame 1
shotb = 0;
stop();
Symbol 295 MovieClip Frame 2
shotb = 1;
Symbol 295 MovieClip Frame 6
_parent._root.atv.shotcount--;
_parent.removeMovieClip();
stop();
Symbol 302 MovieClip Frame 1
_parent._root.ghost.dead = 0;
stop();
Symbol 302 MovieClip Frame 2
_parent._root.ghost.dead = 1;
Symbol 302 MovieClip Frame 70
_parent._root.ghost.xez = random(-20) - 85;
_parent._root.ghost._x = xez;
_parent._root.ghost._y = random(Stage.height / 2) + (random(100) + 50);
_parent._root.ghost.health = 50;
this.gotoAndStop(1);
Symbol 324 MovieClip Frame 1
_parent._root.gtreads.dead = 0;
stop();
Symbol 324 MovieClip Frame 2
_parent._root.gtreads.dead = 3;
Symbol 324 MovieClip Frame 15
_parent._root.treads.dead = 1;
Symbol 324 MovieClip Frame 60
_parent._root.gtreads._x = -75;
_parent._root.gtreads._y = random(Stage.height / 2) + (random(100) + 50);
_parent._root.gtreads.health = 200;
this.gotoAndStop(1);
Symbol 337 MovieClip Frame 1
_parent._root.treads.dead = 0;
stop();
Symbol 337 MovieClip Frame 2
_parent._root.treads.dead = 3;
Symbol 337 MovieClip Frame 15
_parent._root.treads.dead = 1;
Symbol 337 MovieClip Frame 60
_parent._root.treads._x = -65;
_parent._root.treads._y = random(Stage.height / 2) + (random(100) + 50);
_parent._root.treads.health = 100;
this.gotoAndStop(1);
Symbol 339 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 1
_parent._root.wheelcannon.dead = 0;
stop();
Symbol 351 MovieClip Frame 2
_parent._root.wheelcannon.dead = 1;
Symbol 351 MovieClip Frame 70
_parent._root.wheelcannon._x = -45;
_parent._root.wheelcannon._y = random(Stage.height / 2) + (random(100) + 50);
_parent._root.wheelcannon.health = 200;
this.gotoAndStop(1);
Symbol 359 MovieClip Frame 1
shotb = 0;
stop();
Symbol 359 MovieClip Frame 2
shotb = 1;
Symbol 359 MovieClip Frame 8
_parent._root.ghost.shotcount--;
_parent.removeMovieClip();
stop();
Symbol 367 MovieClip Frame 1
shotb = 0;
stop();
Symbol 367 MovieClip Frame 2
shotb = 1;
Symbol 367 MovieClip Frame 8
_parent._root.gtankbarrel.shotcount--;
_parent.removeMovieClip();
stop();
Symbol 406 Button
on (release) {
this.gotoAndStop(1);
_parent._root.daynum = _parent._root.daynum + 1;
_parent._root.hours = 600;
_parent._root.countz.mins = 30;
}
Symbol 408 Button
on (press) {
if ((_parent._root.monmon >= 2500) and (_parent._root.rotty < 2)) {
_parent._root.rotatspeed = 9;
_parent._root.rotty = 2;
_parent._root.monmon = _parent._root.monmon - 2500;
}
}
Symbol 409 Button
on (press) {
if ((_parent._root.monmon >= 10000) and (_parent._root.shield == 1)) {
_parent._root.shield = 2;
_parent._root.monmon = _parent._root.monmon - 10000;
}
}
Symbol 410 Button
on (press) {
if ((_parent._root.monmon >= 10000) and (_parent._root.shield == 2)) {
_parent._root.shield = 3;
_parent._root.monmon = _parent._root.monmon - 10000;
}
}
Symbol 411 Button
on (press) {
if ((_parent._root.monmon >= 10000) and (_parent._root.shield == 3)) {
_parent._root.shield = 4;
_parent._root.monmon = _parent._root.monmon - 10000;
}
}
Symbol 412 Button
on (press) {
if ((_parent._root.monmon >= 5000) and (_parent._root.shotty < 2)) {
_parent._root.shotspeed = 25;
_parent._root.shotty = 2;
_parent._root.monmon = _parent._root.monmon - 5000;
}
}
Symbol 413 Button
on (press) {
if ((_parent._root.monmon >= 5000) and (_parent._root.shotty < 3)) {
_parent._root.shotspeed = 30;
_parent._root.shotty = 3;
_parent._root.monmon = _parent._root.monmon - 5000;
}
}
Symbol 414 Button
on (press) {
if ((_parent._root.monmon >= 5000) and (_parent._root.shotty < 4)) {
_parent._root.shotspeed = 35;
_parent._root.shotty = 4;
_parent._root.monmon = _parent._root.monmon - 5000;
}
}
Symbol 415 Button
on (press) {
if ((_parent._root.monmon >= 10000) and (_parent._root.shield == 0)) {
_parent._root.shield = 1;
_parent._root.monmon = _parent._root.monmon - 10000;
}
}
Symbol 416 Button
on (press) {
if ((_parent._root.monmon >= 25000) and (_parent._root.maxhealth == 100)) {
_parent._root.maxhealth = 250;
_parent._root.monmon = _parent._root.monmon - 25000;
}
}
Symbol 417 Button
on (press) {
if ((_parent._root.monmon >= 25000) and (_parent._root.maxhealth == 500)) {
_parent._root.maxhealth = 750;
_parent._root.monmon = _parent._root.monmon - 25000;
}
}
Symbol 418 Button
on (press) {
if ((_parent._root.monmon >= 25000) and (_parent._root.maxhealth == 250)) {
_parent._root.maxhealth = 500;
_parent._root.monmon = _parent._root.monmon - 25000;
}
}
Symbol 419 Button
on (press) {
if ((_parent._root.monmon >= 25000) and (_parent._root.maxhealth == 750)) {
_parent._root.maxhealth = 1000;
_parent._root.monmon = _parent._root.monmon - 25000;
}
}
Symbol 420 Button
on (press) {
if ((_parent._root.monmon >= 7500) and (_parent._root.shotdam == 25)) {
_parent._root.shotdam = 50;
_parent._root.monmon = _parent._root.monmon - 7500;
}
}
Symbol 427 Button
on (release) {
nextFrame();
}
Symbol 430 Button
on (release) {
prevFrame();
}
Symbol 433 Button
on (press) {
if ((_parent._root.health < _parent._root.maxhealth) and (_parent._root.monmon >= 500)) {
_parent._root.health = _parent._root.health + 50;
_parent._root.monmon = _parent._root.monmon - 500;
}
}
Symbol 435 Button
on (press) {
if ((_parent._root.health < _parent._root.maxhealth) and (_parent._root.monmon >= 1000)) {
_parent._root.health = _parent._root.health + 100;
_parent._root.monmon = _parent._root.monmon - 1000;
}
}
Symbol 437 Button
on (press) {
if ((_parent._root.health < _parent._root.maxhealth) and (_parent._root.monmon >= 2500)) {
_parent._root.health = _parent._root.health + 250;
_parent._root.monmon = _parent._root.monmon - 2500;
}
}
Symbol 439 Button
on (press) {
if ((_parent._root.health < _parent._root.maxhealth) and (_parent._root.monmon >= 5000)) {
_parent._root.health = _parent._root.health + 5000;
_parent._root.monmon = _parent._root.monmon - 500;
}
}
Symbol 447 Button
on (press) {
if (_parent._root.monmon >= 5000) {
_parent._root.lifenum = _parent._root.lifenum + 5;
_parent._root.monmon = _parent._root.monmon - 5000;
}
}
Symbol 448 Button
on (press) {
if (_parent._root.monmon >= 10000) {
_parent._root.lifenum = _parent._root.lifenum + 10;
_parent._root.monmon = _parent._root.monmon - 10000;
}
}
Symbol 449 MovieClip Frame 1
stop();
_parent._root.disable = 0;
_parent._root.atv.health = 20;
_parent._root.wheelpod.health = 10;
_parent._root.treads.health = 100;
Symbol 449 MovieClip Frame 2
_parent._root.disable = 1;
Instance of Symbol 180 MovieClip "rotatbtn1" in Symbol 449 MovieClip Frame 2
on (press) {
if ((_parent._root.monmon >= 2500) and (_parent._root.rotty < 1)) {
_parent._root.rotatspeed = 6;
_parent._root.rotty = 1;
_parent._root.monmon = _parent._root.monmon - 2500;
}
}
Instance of Symbol 182 MovieClip in Symbol 449 MovieClip Frame 2
on (press) {
if ((_parent._root.monmon >= 5000) and (_parent._root.shotty < 1)) {
_parent._root.shotspeed = 20;
_parent._root.shotty = 1;
_parent._root.monmon = _parent._root.monmon - 5000;
}
}
Instance of Symbol 185 MovieClip "fireex1" in Symbol 449 MovieClip Frame 2
on (press) {
if ((_parent._root.monmon >= 7500) and (_parent._root.shotdam == 10)) {
_parent._root.shotdam = 25;
_parent._root.monmon = _parent._root.monmon - 7500;
}
}
Instance of Symbol 422 MovieClip in Symbol 449 MovieClip Frame 2
onClipEvent (load) {
thex = this._x;
they = this._y;
count = 0;
}
onClipEvent (enterFrame) {
if (_parent._root.shotdam >= 25) {
_parent.fireex._x = thex;
_parent.fireex._y = they;
count = count + 1;
if (count >= 5) {
count = 5;
}
if ((this == Number(this)) and (count == 5)) {
unloadMovieNum (this);
} else {
this.unloadMovie();
}
}
}
Instance of Symbol 205 MovieClip in Symbol 449 MovieClip Frame 2
onClipEvent (load) {
thex = this._x;
they = this._y;
count = 0;
}
onClipEvent (enterFrame) {
if (_parent._root.shield >= 1) {
_parent.sbtn1._x = thex;
_parent.sbtn1._y = they;
count = count + 1;
if (count >= 5) {
count = 5;
}
if ((this == Number(this)) and (count == 5)) {
unloadMovieNum (this);
} else {
this.unloadMovie();
}
}
}
Instance of Symbol 205 MovieClip in Symbol 449 MovieClip Frame 2
onClipEvent (load) {
thex = this._x;
they = this._y;
count = 0;
}
onClipEvent (enterFrame) {
if (_parent._root.shield >= 2) {
_parent.sbtn2._x = thex;
_parent.sbtn2._y = they;
count = count + 1;
if (count >= 5) {
count = 5;
}
if ((this == Number(this)) and (count == 5)) {
unloadMovieNum (this);
} else {
this.unloadMovie();
}
}
}
Instance of Symbol 205 MovieClip in Symbol 449 MovieClip Frame 2
onClipEvent (load) {
thex = this._x;
they = this._y;
count = 0;
}
onClipEvent (enterFrame) {
if (_parent._root.shield >= 3) {
_parent.sbtn3._x = thex;
_parent.sbtn3._y = they;
count = count + 1;
if (count >= 5) {
count = 5;
}
if ((this == Number(this)) and (count == 5)) {
unloadMovieNum (this);
} else {
this.unloadMovie();
}
}
}
Instance of Symbol 205 MovieClip in Symbol 449 MovieClip Frame 2
onClipEvent (load) {
thex = this._x;
they = this._y;
count = 0;
}
onClipEvent (enterFrame) {
if (_parent._root.maxhealth >= 500) {
_parent.hbtn2._x = thex;
_parent.hbtn2._y = they;
count = count + 1;
if (count >= 5) {
count = 5;
}
if ((this == Number(this)) and (count == 5)) {
unloadMovieNum (this);
} else {
this.unloadMovie();
}
}
}
Instance of Symbol 205 MovieClip in Symbol 449 MovieClip Frame 2
onClipEvent (load) {
thex = this._x;
they = this._y;
count = 0;
}
onClipEvent (enterFrame) {
if (_parent._root.maxhealth >= 250) {
_parent.hbtn1._x = thex;
_parent.hbtn1._y = they;
count = count + 1;
if (count >= 5) {
count = 5;
}
if ((this == Number(this)) and (count == 5)) {
unloadMovieNum (this);
} else {
this.unloadMovie();
}
}
}
Instance of Symbol 205 MovieClip in Symbol 449 MovieClip Frame 2
onClipEvent (load) {
thex = this._x;
they = this._y;
count = 0;
}
onClipEvent (enterFrame) {
if (_parent._root.maxhealth >= 750) {
_parent.hbtn3._x = thex;
_parent.hbtn3._y = they;
count = count + 1;
if (count >= 5) {
count = 5;
}
if ((this == Number(this)) and (count == 5)) {
unloadMovieNum (this);
} else {
this.unloadMovie();
}
}
}
Instance of Symbol 424 MovieClip in Symbol 449 MovieClip Frame 2
onClipEvent (load) {
thex = this._x;
they = this._y;
count = 0;
}
onClipEvent (enterFrame) {
if (_parent._root.shotspeed >= 20) {
_parent.shbtn1._x = thex;
_parent.shbtn1._y = they;
count = count + 1;
if (count >= 5) {
count = 5;
}
if ((this == Number(this)) and (count == 5)) {
unloadMovieNum (this);
} else {
this.unloadMovie();
}
}
}
Instance of Symbol 424 MovieClip in Symbol 449 MovieClip Frame 2
onClipEvent (load) {
thex = this._x;
they = this._y;
count = 0;
}
onClipEvent (enterFrame) {
if (_parent._root.shotspeed >= 25) {
_parent.shbtn2._x = thex;
_parent.shbtn2._y = they;
count = count + 1;
if (count >= 5) {
count = 5;
}
if ((this == Number(this)) and (count == 5)) {
unloadMovieNum (this);
} else {
this.unloadMovie();
}
}
}
Instance of Symbol 424 MovieClip in Symbol 449 MovieClip Frame 2
onClipEvent (load) {
thex = this._x;
they = this._y;
count = 0;
}
onClipEvent (enterFrame) {
if (_parent._root.shotspeed >= 30) {
_parent.shbtn3._x = thex;
_parent.shbtn3._y = they;
count = count + 1;
if (count >= 5) {
count = 5;
}
if ((this == Number(this)) and (count == 5)) {
unloadMovieNum (this);
} else {
this.unloadMovie();
}
}
}
Instance of Symbol 426 MovieClip in Symbol 449 MovieClip Frame 2
onClipEvent (load) {
thex = this._x;
they = this._y;
count = 0;
}
onClipEvent (enterFrame) {
if (_parent._root.rotatspeed >= 6) {
_parent.rotatbtn._x = thex;
_parent.rotatbtn._y = they;
count = count + 1;
if (count >= 10) {
count = 10;
}
if ((this == Number(this)) and (count == 10)) {
unloadMovieNum (this);
} else {
this.unloadMovie();
}
}
}
Symbol 453 Button
on (release) {
gotoAndStop ("stats");
}
Symbol 455 Button
on (release) {
gotoAndStop ("options");
}
Symbol 460 Button
on (press) {
_quality = "LOW";
}
Symbol 462 Button
on (press) {
_quality = "MEDIUM";
}
Symbol 464 Button
on (press) {
_quality = "HIGH";
}
Symbol 469 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 481 Button
on (release) {
gotoAndStop (5);
}
Symbol 489 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 497 Button
on (release) {
if (_parent.buttonpress == 0) {
gotoAndStop ("menu");
}
}
Symbol 498 Button
on (release) {
if (_parent.buttonpress == 0) {
gotoAndStop ("stats");
}
}
Symbol 503 Button
on (press) {
if (_parent.buttonpress >= 0) {
_parent._root.barrel.maxchance = 0;
_parent._root.barrel.maxshots = 1;
}
}
Symbol 508 Button
on (press) {
if (_parent.buttonpress == 0) {
this.saved.gotoAndPlay(2);
savegame();
}
}
Symbol 510 Button
on (press) {
if (_parent.buttonpress >= 1) {
_parent._root.barrel.maxchance = 0;
_parent._root.barrel.maxshots = 3;
}
}
Symbol 511 Button
on (press) {
if (_parent.buttonpress >= 2) {
_parent._root.barrel.maxchance = 2;
_parent._root.barrel.maxshots = 25;
}
}
Symbol 513 MovieClip Frame 1
stop();
Symbol 516 Button
on (press) {
if (_parent.buttonpress == 0) {
this.usure.gotoAndPlay(2);
}
}
Symbol 521 Button
on (release) {
gotoAndStop (1);
}
Symbol 522 Button
on (release) {
deletegame();
gotoAndPlay (3);
}
Symbol 531 MovieClip Frame 1
stop();
_parent._root.buttonpress = 0;
Symbol 531 MovieClip Frame 2
function deletegame() {
savefile = SharedObject.getLocal("CagedSilhouette-2007-TowerDefenderv1");
savefile.clear();
}
stop();
Symbol 531 MovieClip Frame 25
_parent._parent._root.gotoAndStop("title");
Symbol 537 MovieClip Frame 1
_parent._parent.buttonpress = 0;
stop();
Symbol 537 MovieClip Frame 2
_parent._parent.buttonpress = 1;
Symbol 537 MovieClip Frame 31
gotoAndStop (1);
Symbol 546 MovieClip Frame 1
stop();
_parent._root.pframe = 1;
_parent._root.disable = 0;
Symbol 546 MovieClip Frame 2
stop();
rotatspeed = "Rotation speed: " + _parent._root.rotatspeed;
shotspeed = "Shot speed: " + _parent._root.shotspeed;
maxhealth = "Maximum health: " + _parent._root.maxhealth;
shield = "Shield: v" + _parent._root.shield;
shotdam = "Shot power: " + _parent._root.shotdam;
enemieskilled = "Enemies Killed: " + _parent._root.enemieskilled;
shotsfired = "Shots fired: " + _parent._root.shotsfired;
shotshit = "Shots hit: " + _parent._root.shotshit;
accuracy = ("Accuracy: " + _parent._root.accuracy) + "%";
deaths = "Deaths: " + _parent._root.deaths;
_parent._root.pframe = 2;
_parent._root.disable = 2;
Instance of Symbol 469 MovieClip in Symbol 546 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._root.rotatspeed != 6) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._root.rotatspeed == 6) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._root.rotty < 1) {
this.gotoAndStop(3);
}
}
on (press) {
_parent._root.rotatspeed = 6;
}
Instance of Symbol 474 MovieClip in Symbol 546 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._root.shotspeed != 25) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotspeed == 25) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotty < 2) {
this.gotoAndStop(3);
}
}
on (press) {
_parent._root.shotspeed = 25;
}
Instance of Symbol 474 MovieClip in Symbol 546 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._root.shotspeed != 30) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotspeed == 30) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotty < 3) {
this.gotoAndStop(3);
}
}
on (press) {
_parent._root.shotspeed = 30;
}
Instance of Symbol 474 MovieClip in Symbol 546 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._root.shotspeed != 35) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotspeed == 35) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotty < 4) {
this.gotoAndStop(3);
}
}
on (press) {
_parent._root.shotspeed = 35;
}
Instance of Symbol 469 MovieClip in Symbol 546 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._root.rotatspeed != 9) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._root.rotatspeed == 9) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._root.rotty < 2) {
this.gotoAndStop(3);
}
}
on (press) {
_parent._root.rotatspeed = 9;
}
Instance of Symbol 474 MovieClip in Symbol 546 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._root.shotspeed != 20) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotspeed == 20) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotty < 1) {
this.gotoAndStop(3);
}
}
on (press) {
_parent._root.shotspeed = 20;
}
Instance of Symbol 474 MovieClip in Symbol 546 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._root.shotspeed != 15) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotspeed == 15) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotty < 0) {
this.gotoAndStop(3);
}
}
on (press) {
_parent._root.shotspeed = 15;
}
Instance of Symbol 469 MovieClip in Symbol 546 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._root.rotatspeed != 3) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._root.rotatspeed == 3) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._root.rotty < 0) {
this.gotoAndStop(3);
}
}
on (press) {
_parent._root.rotatspeed = 3;
}
Instance of Symbol 480 MovieClip in Symbol 546 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._root.shotty == 0) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotty == 1) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotty == 2) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotty == 3) {
this.gotoAndStop(4);
}
}
onClipEvent (enterFrame) {
if (_parent._root.shotty == 4) {
this.gotoAndStop(5);
}
}
Instance of Symbol 480 MovieClip in Symbol 546 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent._root.rotty == 0) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._root.rotty == 1) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_parent._root.rotty == 2) {
this.gotoAndStop(3);
}
}
Symbol 546 MovieClip Frame 3
stop();
rotatspeed = "Rotation speed: " + _parent._root.rotatspeed;
shotspeed = "Shot speed: " + _parent._root.shotspeed;
maxhealth = "Maximum health: " + _parent._root.maxhealth;
shield = "Shield: v" + _parent._root.shield;
shotdam = "Shot power: " + _parent._root.shotdam;
enemieskilled = "Enemies Killed: " + _parent._root.enemieskilled;
shotsfired = "Shots fired: " + _parent._root.shotsfired;
shotshit = "Shots hit: " + _parent._root.shotshit;
accuracy = ("Accuracy: " + _parent._root.accuracy) + "%";
deaths = "Deaths: " + _parent._root.deaths;
_parent._root.pframe = 2;
_parent._root.disable = 2;
Instance of Symbol 180 MovieClip "rotatbtn1" in Symbol 546 MovieClip Frame 3
on (press) {
if ((_parent._root.monmon >= 2500) and (_parent._root.rotty < 1)) {
_parent._root.rotatspeed = 6;
_parent._root.rotty = 1;
_parent._root.monmon = _parent._root.monmon - 2500;
}
}
Instance of Symbol 182 MovieClip in Symbol 546 MovieClip Frame 3
on (press) {
if ((_parent._root.monmon >= 5000) and (_parent._root.shotty < 1)) {
_parent._root.shotspeed = 20;
_parent._root.shotty = 1;
_parent._root.monmon = _parent._root.monmon - 5000;
}
}
Instance of Symbol 185 MovieClip "fireex1" in Symbol 546 MovieClip Frame 3
on (press) {
if ((_parent._root.monmon >= 7500) and (_parent._root.shotdam == 10)) {
_parent._root.shotdam = 25;
_parent._root.monmon = _parent._root.monmon - 7500;
}
}
Symbol 546 MovieClip Frame 4
function savegame() {
savefile = SharedObject.getLocal("CagedSilhouette-2007-TowerDefenderv1");
savefile.data.pframe = _parent._root.pframe;
savefile.data.saves = 1;
savefile.data.score = _parent._root.score;
savefile.data.monmon = _parent._root.monmon;
savefile.data.money = _parent._root.money;
savefile.data.maxhealth = _parent._root.maxhealth;
savefile.data.health = _parent._root.health;
savefile.data.heal = _parent._root.heal;
savefile.data.hours = _parent._root.hours;
savefile.data.hoursleft = _parent._root.hoursleft;
savefile.data.daynum = _parent._root.daynum;
savefile.data.day = _parent._root.day;
savefile.data.lifenum = _parent._root.lifenum;
savefile.data.lives = _parent._root.lives;
savefile.data.shield = _parent._root.shield;
savefile.data.tankcost = _parent._root.tankcost;
savefile.data.shotspeed = _parent._root.shotspeed;
savefile.data.rotatspeed = _parent._root.rotatspeed;
savefile.data.shotdam = _parent._root.shotdam;
savefile.data.rotty = _parent._root.rotty;
savefile.data.shotty = _parent._root.shotty;
savefile.data.enemieskilled = _parent._root.enemieskilled;
savefile.data.shotsfired = _parent._root.shotsfired;
savefile.data.shotshit = _parent._root.shotshit;
savefile.data.accuracy = _parent._root.accuracy;
savefile.data.deaths = _parent._root.deaths;
savefile.flush();
}
stop();
rotatspeed = "Rotation speed: " + _parent._root.rotatspeed;
shotspeed = "Shot speed: " + _parent._root.shotspeed;
maxhealth = "Maximum health: " + _parent._root.maxhealth;
shield = "Shield: v" + _parent._root.shield;
shotdam = "Shot power: " + _parent._root.shotdam;
enemieskilled = "Enemies Killed: " + _parent._root.enemieskilled;
shotsfired = "Shots fired: " + _parent._root.shotsfired;
shotshit = "Shots hit: " + _parent._root.shotshit;
accuracy = ("Accuracy: " + _parent._root.accuracy) + "%";
deaths = "Deaths: " + _parent._root.deaths;
unlock = 0;
buttonpress = 0;
_parent._root.pframe = 2;
_parent._root.disable = 2;
Instance of Symbol 513 MovieClip in Symbol 546 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_parent._root.barrel.maxshots == 1) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_parent._root.barrel.maxshots == 8) {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_parent._root.barrel.maxshots == 3) {
this.gotoAndStop(2);
}
}
Instance of Symbol 515 MovieClip in Symbol 546 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_parent.unlock >= 1) {
this._visible = false;
}
}
Instance of Symbol 515 MovieClip in Symbol 546 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_parent.unlock >= 2) {
this._visible = false;
}
}
Instance of Symbol 220 MovieClip in Symbol 546 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_parent._root.score < 50000) {
_parent.unlock = 0;
}
if (_parent._root.score >= 50000) {
_parent.unlock = 1;
}
if (_parent._root.score >= 100000) {
_parent.unlock = 2;
}
}
Instance of Symbol 515 MovieClip in Symbol 546 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_parent.unlock >= 0) {
this._visible = false;
}
}
Symbol 546 MovieClip Frame 5
stop();
_parent._root.pframe = 2;
_parent._root.disable = 2;
Symbol 557 Button
on (release) {
gotoAndStop ("title");
}