Frame 1
stop();
Frame 2
_root.adviseron = 1;
stop();
Instance of Symbol 237 MovieClip in Frame 2
onClipEvent (load) {
this._alpha = 0;
this.goto = "1";
this.gotoreal = "1";
this.timer = 0;
}
onClipEvent (enterFrame) {
this.timer--;
if (this.gotoreal != this._currentFrame) {
if (0 >= this._alpha) {
this.gotoAndStop(this.gotoreal);
} else {
this._alpha = this._alpha - 7;
}
} else if (this._alpha < 100) {
if (2 < this._currentFrame) {
this._alpha = this._alpha + 7;
} else {
this._alpha = this._alpha + 1;
}
} else if (0 >= this.timer) {
this.gotoreal = this.goto;
}
}
Frame 3
_root.counter = 100;
_root.cash = 0;
_root.level = 1;
_root.damage = 10;
_root.bulletspeed = 10;
_root.accuracy = 80;
_root.explosion = 100;
_root.shield = 1;
_root.hitpoints = 200;
_root.reload = 20;
_root.veteran = 1;
_root.repairpos = 0;
_root.nextlevel = _root.level + 8;
_root.enemylist = new Array();
_root.friendlylist = new Array();
_root.tower.health = 150;
_root.wait = 1000;
_root.xp = 0;
_root.specialcredits = 0;
_root.menupicture.specialbar.specialtimer = 0;
_root.ranknames = new Array();
_root.ranknames[1] = "Private";
_root.ranknames[2] = "First class Private";
_root.ranknames[3] = "Corporal";
_root.ranknames[4] = "Sergeant";
_root.ranknames[5] = "First class Sergeant";
_root.ranknames[6] = "Sergeant Major";
_root.ranknames[7] = "Lieutenant";
_root.ranknames[8] = "Captain";
_root.ranknames[9] = "Major";
_root.ranknames[10] = "Colonel";
Mouse.hide();
_root.pointer.startDrag(true);
_root.damage_available = 20;
_root.hitpoints_available = 10;
_root.bulletspeed_available = 4;
_root.reload_available = 10;
_root.radar_available = 1;
_root.radarextended_available = 1;
_root.units_available = 8;
_root.shield_available = 2;
_root.rockettower_available = 1;
_root.laserturret_available = 1;
_root.veteran_available = 2;
_root.buy = new Sound();
_root.buy.attachSound("buy");
_root.misslelauncher = new Sound();
_root.misslelauncher.attachSound("missle");
_root.flakgunsound = new Sound();
_root.flakgunsound.attachSound("warflakgunsound");
_root.ecmsound = new Sound();
_root.ecmsound.attachSound("warecmsound");
_root.menusoundon = new Sound();
_root.menusoundon.attachSound("menusound");
stop();
Instance of Symbol 264 MovieClip "levelbreak" in Frame 3
onClipEvent (enterFrame) {
if (0 < _root.wait) {
if (_root.adviser._currentFrame == 1) {
this._y = 180;
_root.waittext = Math.round(_root.wait / 36);
}
} else {
this._y = -300;
}
}
Instance of Symbol 340 MovieClip "ship" in Frame 3
onClipEvent (enterFrame) {
_root.wait--;
if ((0 >= _root.nextlevel) and (_root.enemylist.length == 0)) {
_root.level++;
_root.repairpos++;
_root.cash = _root.cash + Math.round(100 + (_root.level * 50));
_root.levelbreak.bonuscash = Math.round(100 + (_root.level * 50));
_root.wait = 1000;
_root.nextlevel = _root.level + 8;
}
if ((((Math.random() < (0.01 + (_root.level / 2000))) and (0 >= _root.wait)) and (0 < _root.nextlevel)) and (_root.pause != 1)) {
_root.nextlevel--;
duplicateMovieClip (_root.beholder.enemy, "enemy" + _root.counter, _root.counter);
_root.enemylist.push("enemy" + _root.counter);
eval ("_root.beholder.enemy" + _root.counter)._x = 640;
eval ("_root.beholder.enemy" + _root.counter)._y = 30 + (Math.random() * 150);
if (_root.level < 4) {
eval ("_root.beholder.enemy" + _root.counter).gotoAndStop(1);
} else if (_root.level < 8) {
eval ("_root.beholder.enemy" + _root.counter).gotoAndStop(Math.round(Math.random() * 2));
} else {
eval ("_root.beholder.enemy" + _root.counter).gotoAndStop(Math.round(Math.random() * 3));
}
_root.counter++;
}
if (0 >= _root.tower.health) {
_root.play();
}
this.specialtimer--;
if ((_root.xp >= 60) and (0 >= this.specialtimer)) {
this.specialtimer = 36;
_root.menupicture.specialbar.gotoAndStop(2);
_root.menupicture.specialbar.bar.gotoAndStop(-(_root.menupicture.specialbar.bar._currentFrame - 3));
}
if (Key.isDown(Key.CONTROL) and (_root.pointer._currentFrame == 1)) {
if (this.menuup == "no") {
this.menuup = "yes";
_root.menupicture._alpha = 100;
_root.menupicture._x = _root._xmouse;
_root.menupicture._y = _root._ymouse;
Mouse.hide();
_root.menusoundon.start();
_root.menupicture.gotoAndStop(1);
if (420 < _root._xmouse) {
_root.menupicture._x = 420;
} else if (_root._xmouse < 180) {
_root.menupicture._x = 180;
}
if (230 < _root._ymouse) {
_root.menupicture._y = 230;
} else if (_root._ymouse < 110) {
_root.menupicture._y = 110;
}
}
} else {
this.menuup = "no";
_root.menupicture._x = 550;
_root.menupicture._y = 350;
_root.menupicture.gotoAndStop(2);
}
}
Instance of Symbol 342 MovieClip "physicalshield" in Frame 3
onClipEvent (enterFrame) {
if (0 >= this.time) {
this._x = 1000;
this._y = 1000;
}
this.time--;
}
Instance of Symbol 489 MovieClip "adviser" in Frame 3
onClipEvent (load) {
if (_root.adviseron == "1") {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(11);
}
}
onClipEvent (enterFrame) {
if (this._currentFrame != 1) {
this._x = this._x + ((this.x - this._x) / 10);
this._y = this._y + ((this.y - this._y) / 10);
_root.wait++;
if ((this._currentFrame == 5) and Key.isDown(Key.CONTROL)) {
this.play();
}
if ((this._currentFrame == 8) and (!Key.isDown(Key.CONTROL))) {
this.play();
}
if (((this._currentFrame == 6) or (this._currentFrame == 7)) and (!Key.isDown(Key.CONTROL))) {
this.gotoAndPlay(5);
}
if ((this._currentFrame == 9) and Key.isDown(Key.CONTROL)) {
this.gotoAndPlay(8);
}
} else {
this._x = this._x + ((150 - this._x) / 10);
this._y = this._y + ((-300 - this._y) / 10);
}
}
Instance of Symbol 494 MovieClip "pointer" in Frame 3
onClipEvent (mouseDown) {
if (this._currentFrame == 3) {
_root.physicalshield._x = _root._xmouse;
_root.physicalshield._y = _root._ymouse;
_root.physicalshield.time = 1000;
this.gotoAndStop(1);
}
if (this._currentFrame == 2) {
if (0 >= _root.friendlylist.length) {
this.gotoAndStop(1);
}
}
}
Frame 4
stopAllSounds();
_root.ranknames = new Array();
_root.ranknames[1] = "Private";
_root.ranknames[2] = "First class Private";
_root.ranknames[3] = "Corporal";
_root.ranknames[4] = "Sergeant";
_root.ranknames[5] = "First class Sergeant";
_root.ranknames[6] = "Sergeant Major";
_root.ranknames[7] = "Lieutenant";
_root.ranknames[8] = "Captain";
_root.ranknames[9] = "Major";
_root.ranknames[10] = "Colonel";
_root.ranksymbol.gotoAndStop(Math.round((_root.level / 5) * (3 - _root.gamelevel)));
_root.rankendname = _root.ranknames[_root.ranksymbol._currentFrame];
Mouse.show();
_root.pointer.stopDrag();
stop();
Symbol 25 Button
on (release) {
_root.play();
}
Symbol 26 MovieClip Frame 1
_root.stop;
this.loading = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
this.loadingrounded = Math.round(this.loading);
if (this.loading != 100) {
} else {
this.gotoAndStop("loaded");
}
Symbol 26 MovieClip Frame 3
gotoAndPlay (1);
Symbol 36 Button
on (release) {
this.goto = "5";
}
Symbol 40 Button
on (release) {
this.goto = "4";
}
Symbol 44 Button
on (release) {
this.goto = "6";
}
Symbol 48 Button
on (release) {
this.goto = "7";
}
Symbol 53 Button
on (release) {
this.goto = "3";
}
Symbol 58 Button
on (release) {
_root.adviseron = 1;
this.gotoAndStop(1);
}
Symbol 62 Button
on (release) {
_root.adviseron = 0;
this.gotoAndStop(2);
}
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 2
stop();
Symbol 70 Button
on (release) {
this.gotoAndStop(1);
}
Symbol 74 Button
on (release) {
this.gotoAndStop(3);
}
Symbol 78 Button
on (release) {
this.gotoAndStop(2);
}
Symbol 82 MovieClip Frame 1
_root.gamelevel = 1.4;
stop();
Symbol 82 MovieClip Frame 2
_root.gamelevel = 1.2;
stop();
Symbol 82 MovieClip Frame 3
_root.gamelevel = 1;
stop();
Symbol 86 Button
on (release) {
stopAllSounds();
this.goto = "9";
}
Symbol 93 Button
on (rollOver) {
this.explantation._x = -180;
this.explantation._y = 50;
this.explantation.gotoAndStop(1);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 97 Button
on (rollOver) {
this.explantation._x = -60;
this.explantation._y = 150;
this.explantation.gotoAndStop(6);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 101 Button
on (rollOver) {
this.explantation._x = -180;
this.explantation._y = 100;
this.explantation.gotoAndStop(2);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 105 Button
on (rollOver) {
this.explantation._x = -60;
this.explantation._y = 100;
this.explantation.gotoAndStop(5);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 109 Button
on (rollOver) {
this.explantation._x = -60;
this.explantation._y = 50;
this.explantation.gotoAndStop(4);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 113 Button
on (rollOver) {
this.explantation._x = -52;
this.explantation._y = 50;
this.explantation.gotoAndStop(17);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 117 Button
on (rollOver) {
this.explantation._x = -52;
this.explantation._y = 150;
this.explantation.gotoAndStop(15);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 121 Button
on (rollOver) {
this.explantation._x = -52;
this.explantation._y = 100;
this.explantation.gotoAndStop(16);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 125 Button
on (rollOver) {
this.explantation._x = -180;
this.explantation._y = 150;
this.explantation.gotoAndStop(3);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 128 Button
on (rollOver) {
this.explantation._x = 25;
this.explantation._y = 150;
this.explantation.gotoAndStop(12);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 131 Button
on (rollOver) {
this.explantation._x = 75;
this.explantation._y = 50;
this.explantation.gotoAndStop(9);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 135 Button
on (rollOver) {
this.explantation._x = 50;
this.explantation._y = 50;
this.explantation.gotoAndStop(8);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 138 Button
on (rollOver) {
this.explantation._x = 70;
this.explantation._y = 70;
this.explantation.gotoAndStop(11);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 142 Button
on (rollOver) {
this.explantation._x = 25;
this.explantation._y = 50;
this.explantation.gotoAndStop(7);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 145 Button
on (rollOver) {
this.explantation._x = 35;
this.explantation._y = 70;
this.explantation.gotoAndStop(10);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 148 Button
on (rollOver) {
this.explantation._x = 75;
this.explantation._y = 150;
this.explantation.gotoAndStop(14);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 151 Button
on (rollOver) {
this.explantation._x = 50;
this.explantation._y = 150;
this.explantation.gotoAndStop(13);
}
on (rollOut) {
this.explantation._x = 900;
this.explantation._y = 900;
}
Symbol 199 Button
on (release) {
_root._quality = "medium";
}
Symbol 203 Button
on (release) {
_root._quality = "high";
}
Symbol 229 Button
on (release) {
this.goto = "3";
}
Symbol 237 MovieClip Frame 1
this.timer = 100;
this.goto = 2;
stop();
Symbol 237 MovieClip Frame 2
this.timer = 100;
this.goto = 3;
stop();
Symbol 237 MovieClip Frame 3
this.goto = "3";
stop();
Symbol 237 MovieClip Frame 4
stop();
Symbol 237 MovieClip Frame 5
stop();
Symbol 237 MovieClip Frame 6
stop();
Symbol 237 MovieClip Frame 7
stop();
Symbol 237 MovieClip Frame 8
stop();
Symbol 237 MovieClip Frame 9
_root.nextFrame();
Symbol 245 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
stop();
Instance of Symbol 245 MovieClip "gun" in Symbol 248 MovieClip Frame 1
onClipEvent (load) {
this.bla = this._x;
}
onClipEvent (enterFrame) {
this.myRadians = Math.atan2((_root._ymouse - _parent._y) + this._y, (_root._xmouse - _parent._x) + this._x);
this.myDegrees = Math.round((this.myRadians * 180) / Math.PI);
this._rotation = this.myDegrees + 90;
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * 0);
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * 0);
this._x = this._x + ((this.bla - this._x) / 3);
this.reload--;
if (0 >= this.reload) {
if (((_root.menupicture._currentframe != 1) and (0 < _root.enemylist.length)) and (_root.pointer._currentFrame == 1)) {
this._x = this._x - (Math.sin(_rotation * (Math.PI/180)) * 5);
duplicateMovieClip (_root.beholder.gunpowder, "gunpowder" + _root.counter, _root.counter);
eval ("_root.beholder.gunpowder" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.gunpowder" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.gunpowder" + _root.counter)._rotation = this._rotation;
_root.counter++;
_root.flakgunsound.start();
duplicateMovieClip (_root.beholder.bullet, "bullet" + _root.counter, _root.counter);
eval ("_root.beholder.bullet" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.bullet" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.bullet" + _root.counter).sender = "tower";
eval ("_root.beholder.bullet" + _root.counter).time = Math.abs(Math.sqrt((((_root._ymouse - _parent._y) + this._y) * ((_root._ymouse - _parent._y) + this._y)) + (((_root._xmouse - _parent._x) + this._x) * ((_root._xmouse - _parent._x) + this._x))));
eval ("_root.beholder.bullet" + _root.counter)._rotation = this._rotation;
_root.counter++;
this.reload = (_root.reload + 10) + (Math.random() * 4);
}
}
}
Symbol 248 MovieClip Frame 2
stop();
Instance of Symbol 247 MovieClip "gun" in Symbol 248 MovieClip Frame 2
onClipEvent (load) {
this.bla = this._x;
}
onClipEvent (enterFrame) {
this.myRadians = Math.atan2((_root._ymouse - _parent._y) + this._y, (_root._xmouse - _parent._x) + this._x);
this.myDegrees = Math.round((this.myRadians * 180) / Math.PI);
this._rotation = this.myDegrees + 90;
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * 0);
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * 0);
this._x = this._x + ((this.bla - this._x) / 3);
this.reload--;
if (0 >= this.reload) {
if (((_root.menupicture._currentframe != 1) and (0 < _root.enemylist.length)) and (_root.pointer._currentFrame == 1)) {
this._x = this._x - (Math.sin(_rotation * (Math.PI/180)) * 5);
duplicateMovieClip (_root.beholder.gunpowder, "gunpowder" + _root.counter, _root.counter);
eval ("_root.beholder.gunpowder" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.gunpowder" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.gunpowder" + _root.counter).gotoAndStop(3);
eval ("_root.beholder.gunpowder" + _root.counter)._rotation = this._rotation;
_root.counter++;
duplicateMovieClip (_root.beholder.rocket, "rocket" + _root.counter, _root.counter);
eval ("_root.beholder.rocket" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.rocket" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.rocket" + _root.counter).t = this.t;
this.x = eval ("_root.beholder." + this.point)._x;
this.y = eval ("_root.beholder." + this.point)._y;
eval ("_root.beholder.rocket" + _root.counter).time = Math.abs(Math.sqrt((((_root._ymouse - _parent._y) + this._y) * ((_root._ymouse - _parent._y) + this._y)) + (((_root._xmouse - _parent._x) + this._x) * ((_root._xmouse - _parent._x) + this._x))));
eval ("_root.beholder.rocket" + _root.counter)._rotation = this._rotation;
_root.counter++;
this.reload = (_root.reload * 5) + (Math.random() * 60);
}
}
}
Symbol 263 Button
on (release) {
_root.wait = 2;
}
Symbol 275 MovieClip Frame 1
this.health = 12 + Math.round((_root.level * _root.level) * 0.8);
this.speed = (2 + (_root.level / 40)) + (Math.random() * 1);
stop();
Instance of Symbol 271 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (load) {
this.bullets = 0;
this._rotation = -110;
this.point = "tower";
}
onClipEvent (enterFrame) {
if (((this.bullets < 4) and (_parent._name != "enemy")) and ((_parent._x + this._x) < (150 + eval ("_root." + this.point)._x))) {
this.reload--;
if (0 >= this.reload) {
this.distance = Math.abs(Math.sqrt((((eval ("_root." + this.point)._y - _parent._y) + this._y) * ((eval ("_root." + this.point)._y - _parent._y) + this._y)) + (((eval ("_root." + this.point)._x - _parent._x) + this._x) * ((eval ("_root." + this.point)._x - _parent._x) + this._x))));
this.x = eval ("_root." + this.point)._x + 20;
this.y = eval ("_root." + this.point)._y + (Math.random() * 100);
myRadians = Math.atan2((this.y - _parent._y) + this._y, (this.x - _parent._x) + this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
duplicateMovieClip (_root.beholder.planebullet, "planebullet" + _root.counter, _root.counter);
eval ("_root.beholder.planebullet" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.planebullet" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.planebullet" + _root.counter).time = Math.abs(Math.sqrt((((this.y - _parent._y) + this._y) * ((this.y - _parent._y) + this._y)) + (((this.x - _parent._x) + this._x) * ((this.x - _parent._x) + this._x))));
eval ("_root.beholder.planebullet" + _root.counter)._rotation = this._rotation;
_root.counter++;
this.reload = 4;
this.bullets++;
}
}
}
Symbol 275 MovieClip Frame 2
this.health = 20 + Math.round((_root.level * _root.level) * 1.2);
this.speed = (1 + (_root.level / 80)) + (Math.random() * 1);
stop();
Instance of Symbol 273 MovieClip in Symbol 275 MovieClip Frame 2
onClipEvent (load) {
this.bullets = 0;
this._rotation = -110;
this.startdistance = Math.random() * 100;
if (0 < _root.friendlylist.length) {
while (0 >= eval ("_root.beholder." + this.point).health) {
this.point = _root.friendlylist[Math.round((Math.random() * _root.friendlylist.length) - 1)];
}
}
}
onClipEvent (enterFrame) {
if ((((this.bullets < 4) and (0 < _root.friendlylist.length)) and (_parent._name != "enemy")) and ((_parent._x + this._x) < (100 + eval ("_root.beholder." + this.point)._x))) {
while (0 >= eval ("_root.beholder." + this.point).health) {
this.point = _root.friendlylist[Math.round((Math.random() * _root.friendlylist.length) - 1)];
}
this.reload--;
if (0 >= this.reload) {
this.distance = Math.abs(Math.sqrt((((eval ("_root.beholder." + this.point)._y - _parent._y) + this._y) * ((eval ("_root.beholder." + this.point)._y - _parent._y) + this._y)) + (((eval ("_root.beholder." + this.point)._x - _parent._x) + this._x) * ((eval ("_root.beholder." + this.point)._x - _parent._x) + this._x))));
this.x = (eval ("_root.beholder." + this.point)._x + this.startdistance) - (this.bullets * 10);
this.y = eval ("_root.beholder." + this.point)._y + 10;
myRadians = Math.atan2((this.y - _parent._y) + this._y, (this.x - _parent._x) + this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
duplicateMovieClip (_root.beholder.planebullet, "planebullet" + _root.counter, _root.counter);
eval ("_root.beholder.planebullet" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.planebullet" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.planebullet" + _root.counter).time = Math.abs(Math.sqrt((((this.y - _parent._y) + this._y) * ((this.y - _parent._y) + this._y)) + (((this.x - _parent._x) + this._x) * ((this.x - _parent._x) + this._x))));
eval ("_root.beholder.planebullet" + _root.counter)._rotation = this._rotation;
_root.counter++;
this.reload = 4;
this.bullets++;
}
}
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
Symbol 281 MovieClip Frame 3
stop();
Symbol 281 MovieClip Frame 4
stop();
Symbol 281 MovieClip Frame 5
stop();
Symbol 288 Button
on (rollOver) {
this.rankname = _root.ranknames[this.rank];
if (380 < (this._x + _parent._x)) {
_root.menupicture._alpha = 0;
}
}
on (rollOut) {
_root.menupicture._alpha = 100;
}
on (release) {
if (_root.pointer._currentFrame == 2) {
this.health = this.health + Math.round(this.starthealth * 0.5);
if (this.starthealth < this.health) {
this.health = this.starthealth;
}
duplicateMovieClip (_root.beholder.icons, "icons" + _root.counter, _root.counter);
eval ("_root.beholder.icons" + _root.counter)._x = this._x + _parent._x;
eval ("_root.beholder.icons" + _root.counter)._y = this._y + _parent._y;
eval ("_root.beholder.icons" + _root.counter).gotoAndStop(3);
_root.counter++;
this.healthbar._xscale = Math.round(this.health / (this.starthealth / 100));
_root.pointer.gotoAndStop(1);
}
}
Symbol 299 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 2
_parent.starthealth = _parent.starthealth + 20;
_parent.health = _parent.health + 20;
_parent.healthbar._xscale = Math.round(_parent.health / (_parent.starthealth / 100));
stop();
Symbol 299 MovieClip Frame 3
_parent.starthealth = _parent.starthealth + 20;
_parent.health = _parent.health + 20;
_parent.healthbar._xscale = Math.round(_parent.health / (_parent.starthealth / 100));
stop();
Symbol 299 MovieClip Frame 4
_parent.starthealth = _parent.starthealth + 40;
_parent.health = _parent.health + 40;
_parent.healthbar._xscale = Math.round(_parent.health / (_parent.starthealth / 100));
stop();
Symbol 299 MovieClip Frame 5
_parent.starthealth = _parent.starthealth + 40;
_parent.health = _parent.health + 40;
_parent.healthbar._xscale = Math.round(_parent.health / (_parent.starthealth / 100));
stop();
Symbol 299 MovieClip Frame 6
_parent.starthealth = _parent.starthealth + 40;
_parent.health = _parent.health + 40;
_parent.healthbar._xscale = Math.round(_parent.health / (_parent.starthealth / 100));
stop();
Symbol 299 MovieClip Frame 7
_parent.starthealth = _parent.starthealth + 100;
_parent.health = _parent.health + 100;
_parent.healthbar._xscale = Math.round(_parent.health / (_parent.starthealth / 100));
stop();
Symbol 299 MovieClip Frame 8
_parent.starthealth = _parent.starthealth + 100;
_parent.health = _parent.health + 100;
_parent.healthbar._xscale = Math.round(_parent.health / (_parent.starthealth / 100));
stop();
Symbol 299 MovieClip Frame 9
_parent.starthealth = _parent.starthealth + 100;
_parent.health = _parent.health + 100;
_parent.healthbar._xscale = Math.round(_parent.health / (_parent.starthealth / 100));
stop();
Symbol 299 MovieClip Frame 10
_parent.starthealth = _parent.starthealth + 100;
_parent.health = _parent.health + 100;
_parent.healthbar._xscale = Math.round(_parent.health / (_parent.starthealth / 100));
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 1
stop();
Instance of Symbol 303 MovieClip "gun" in Symbol 312 MovieClip Frame 1
onClipEvent (load) {
this.bla = this._x;
}
onClipEvent (enterFrame) {
this._x = this._x + ((this.bla - this._x) / 3);
if ((0 < _root.enemylist.length) and (_parent._name != "friendly")) {
while (0 >= eval ("_root.beholder." + this.point).health) {
this.point = _root.enemylist[Math.round((Math.random() * _root.enemylist.length) - 1)];
}
this.reload--;
if (0 >= this.reload) {
this._x = this._x - (Math.sin(_rotation * (Math.PI/180)) * 2);
this.gotoAndPlay(2);
this.distance = Math.abs(Math.sqrt((((eval ("_root.beholder." + this.point)._y - _parent._y) + this._y) * ((eval ("_root.beholder." + this.point)._y - _parent._y) + this._y)) + (((eval ("_root.beholder." + this.point)._x - _parent._x) + this._x) * ((eval ("_root.beholder." + this.point)._x - _parent._x) + this._x))));
this.x = (eval ("_root.beholder." + this.point)._x - ((eval ("_root.beholder." + this.point).speed * this.distance) / _root.bulletspeed)) + ((Math.random() - 0.5) * _root.accuracy);
this.y = eval ("_root.beholder." + this.point)._y + ((Math.random() - 0.5) * _root.accuracy);
myRadians = Math.atan2((this.y - _parent._y) + this._y, (this.x - _parent._x) + this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * -6);
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * 0);
duplicateMovieClip (_root.beholder.gunpowder, "gunpowder" + _root.counter, _root.counter);
eval ("_root.beholder.gunpowder" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.gunpowder" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.gunpowder" + _root.counter).gotoAndStop(1);
eval ("_root.beholder.gunpowder" + _root.counter)._rotation = this._rotation;
_root.counter++;
_root.flakgunsound.start();
duplicateMovieClip (_root.beholder.bullet, "bullet" + _root.counter, _root.counter);
eval ("_root.beholder.bullet" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.bullet" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.bullet" + _root.counter).t = this.t;
eval ("_root.beholder.bullet" + _root.counter).sender = _parent._name;
eval ("_root.beholder.bullet" + _root.counter).time = Math.abs(Math.sqrt((((this.y - _parent._y) + this._y) * ((this.y - _parent._y) + this._y)) + (((this.x - _parent._x) + this._x) * ((this.x - _parent._x) + this._x))));
eval ("_root.beholder.bullet" + _root.counter)._rotation = this._rotation;
_root.counter++;
this.reload = (3 + _root.reload) + ((Math.random() * 5) / _parent.rank);
}
}
}
Symbol 312 MovieClip Frame 2
stop();
Instance of Symbol 307 MovieClip in Symbol 312 MovieClip Frame 2
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if ((0 < _root.enemylist.length) and (_parent._name != "friendly")) {
while (0 >= eval ("_root.beholder." + this.point).health) {
this.point = _root.enemylist[Math.round((Math.random() * _root.enemylist.length) - 1)];
}
myRadians = Math.atan2((eval ("_root.beholder." + this.point)._y - _parent._y) + this._y, (eval ("_root.beholder." + this.point)._x - _parent._x) + this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * 0);
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * 0);
this.reload--;
if (0 >= this.reload) {
this.gotoAndPlay(2);
duplicateMovieClip (_root.beholder.gunpowder, "gunpowder" + _root.counter, _root.counter);
eval ("_root.beholder.gunpowder" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.gunpowder" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.gunpowder" + _root.counter).gotoAndStop(2);
eval ("_root.beholder.gunpowder" + _root.counter)._rotation = this._rotation;
_root.counter++;
_root.ecmsound.start();
_parent.xp = _parent.xp + (3 * _root.veteran);
_parent.rank = Math.round(_parent.xp / 30);
if (_parent.rankicon._currentFrame != _parent.rank) {
duplicateMovieClip (_root.beholder.icons, "icons" + _root.counter, _root.counter);
eval ("_root.beholder.icons" + _root.counter)._x = _parent._x;
eval ("_root.beholder.icons" + _root.counter)._y = _parent._y;
eval ("_root.beholder.icons" + _root.counter).gotoAndStop(2);
_root.counter++;
_parent.rankicon.gotoAndStop(_parent.rank);
}
this.point = _root.enemylist[Math.round((Math.random() * _root.enemylist.length) - 1)];
duplicateMovieClip (_root.beholder.ecmexplosion, "ecmexplosion" + _root.counter, _root.counter);
eval ("_root.beholder.ecmexplosion" + _root.counter)._x = eval ("_root.beholder." + this.point)._x;
eval ("_root.beholder.ecmexplosion" + _root.counter)._y = eval ("_root.beholder." + this.point)._y;
_root.counter++;
this.reload = (20 + (_root.reload * 8)) + ((Math.random() * 60) / _parent.rank);
this.point = _root.enemylist[Math.round((Math.random() * _root.enemylist.length) - 1)];
}
}
}
Symbol 312 MovieClip Frame 3
stop();
Instance of Symbol 310 MovieClip in Symbol 312 MovieClip Frame 3
onClipEvent (load) {
this.bla = this._x;
}
onClipEvent (enterFrame) {
if ((0 < _root.enemylist.length) and (_parent._name != "friendly")) {
while (0 >= eval ("_root.beholder." + this.point).health) {
this.point = _root.enemylist[Math.round((Math.random() * _root.enemylist.length) - 1)];
}
myRadians = Math.atan2((eval ("_root.beholder." + this.point)._y - _parent._y) + this._y, (eval ("_root.beholder." + this.point)._x - _parent._x) + this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * 0);
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * 0);
this._x = this._x + ((this.bla - this._x) / 6);
this.reload--;
if (0 >= this.reload) {
this._x = this._x - (Math.sin(_rotation * (Math.PI/180)) * 10);
this.gotoAndPlay(2);
duplicateMovieClip (_root.beholder.gunpowder, "gunpowder" + _root.counter, _root.counter);
eval ("_root.beholder.gunpowder" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.gunpowder" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.gunpowder" + _root.counter).gotoAndStop(3);
eval ("_root.beholder.gunpowder" + _root.counter)._rotation = this._rotation;
_root.counter++;
_root.misslelauncher.start();
duplicateMovieClip (_root.beholder.rocket, "rocket" + _root.counter, _root.counter);
eval ("_root.beholder.rocket" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.rocket" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.rocket" + _root.counter).sender = _parent._name;
eval ("_root.beholder.rocket" + _root.counter).t = this.t;
this.x = eval ("_root.beholder." + this.point)._x;
this.y = eval ("_root.beholder." + this.point)._y;
_parent.xp = _parent.xp + (1 * _root.veteran);
eval ("_root.beholder.rocket" + _root.counter).time = Math.abs(Math.sqrt((((this.y - _parent._y) + this._y) * ((this.y - _parent._y) + this._y)) + (((this.x - _parent._x) + this._x) * ((this.x - _parent._x) + this._x))));
eval ("_root.beholder.rocket" + _root.counter)._rotation = this._rotation;
_root.counter++;
this.reload = (10 + (_root.reload * 6)) + ((Math.random() * 60) / _parent.rank);
}
}
}
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
stop();
Symbol 315 MovieClip Frame 3
stop();
Symbol 315 MovieClip Frame 4
stop();
Symbol 315 MovieClip Frame 5
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 2
stop();
Symbol 330 MovieClip Frame 3
stop();
Instance of Symbol 331 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if ((0 < _root.enemylist.length) and (0 < _parent.time)) {
this.point = _root.enemylist[0];
myRadians = Math.atan2((eval ("_root.beholder." + this.point)._y - _parent._y) + this._y, (eval ("_root.beholder." + this.point)._x - _parent._x) + this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * 0);
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * 0);
this.reload--;
if (0 >= this.reload) {
this.gotoAndPlay(2);
duplicateMovieClip (_root.beholder.gunpowder, "gunpowder" + _root.counter, _root.counter);
eval ("_root.beholder.gunpowder" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.gunpowder" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.gunpowder" + _root.counter).gotoAndStop(3);
eval ("_root.beholder.gunpowder" + _root.counter)._rotation = this._rotation;
_root.counter++;
_root.rocketfire.start();
duplicateMovieClip (_root.beholder.rocket, "rocket" + _root.counter, _root.counter);
eval ("_root.beholder.rocket" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.rocket" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.rocket" + _root.counter).sender = _parent._name;
eval ("_root.beholder.rocket" + _root.counter).t = this.t;
this.x = eval ("_root.beholder." + this.point)._x;
this.y = eval ("_root.beholder." + this.point)._y;
eval ("_root.beholder.rocket" + _root.counter).time = Math.abs(Math.sqrt((((this.y - _parent._y) + this._y) * ((this.y - _parent._y) + this._y)) + (((this.x - _parent._x) + this._x) * ((this.x - _parent._x) + this._x))));
eval ("_root.beholder.rocket" + _root.counter)._rotation = this._rotation;
_root.counter++;
this.reload = 10;
}
}
}
Instance of Symbol 270 MovieClip "bullet" in Symbol 334 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * _root.bulletspeed);
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * (-_root.bulletspeed));
this.time = this.time - _root.bulletspeed;
if ((0 >= this.time) and (this._name != "bullet")) {
duplicateMovieClip (_root.beholder.cloud, "cloud" + _root.counter, _root.counter);
eval ("_root.beholder.cloud" + _root.counter)._x = this._x;
eval ("_root.beholder.cloud" + _root.counter)._y = this._y;
eval ("_root.beholder.cloud" + _root.counter).sender = this.sender;
_root.counter++;
this.removeMovieClip();
}
}
Instance of Symbol 275 MovieClip "enemy" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
this.bomb = 1;
this.alive = 2;
this.reload == 0;
}
onClipEvent (enterFrame) {
this._x = this._x - this.speed;
if (this._x < 0) {
i = 0;
while (i < _root.enemylist.length) {
if (this._name == _root.enemylist[i]) {
_root.enemylist.splice(i, 1);
}
i++;
}
removeMovieClip(this);
}
}
Instance of Symbol 281 MovieClip "cloud" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
this._xscale = _root.explosion;
this._yscale = _root.explosion;
this._rotation = Math.round(Math.random() * 360);
i = 0;
while (i < _root.enemylist.length) {
if (this.hitTest("_root.beholder." + _root.enemylist[i])) {
eval ("_root.beholder." + _root.enemylist[i]).health = eval ("_root.beholder." + _root.enemylist[i]).health - _root.damage;
if (this.sender == "tower") {
_root.xp++;
_root.specialcredits = Math.floor(_root.xp / 60);
_root.menupicture.specialbar.bar._xscale = (_root.xp - (Math.floor(_root.xp / 60) * 60)) / 2;
}
if (0 >= eval ("_root.beholder." + _root.enemylist[i]).health) {
q = 0;
while (q < 3) {
duplicateMovieClip (_root.beholder.debris, "debris" + _root.counter, _root.counter);
eval ("_root.beholder.debris" + _root.counter)._x = eval ("_root.beholder." + _root.enemylist[i])._x;
eval ("_root.beholder.debris" + _root.counter)._y = eval ("_root.beholder." + _root.enemylist[i])._y;
_root.counter++;
q++;
}
if (this.sender != "tower") {
eval ("_root.beholder." + this.sender).xp = eval ("_root.beholder." + this.sender).xp + (4 * _root.veteran);
eval ("_root.beholder." + this.sender).rank = Math.round(eval ("_root.beholder." + this.sender).xp / 30);
if (eval ("_root.beholder." + this.sender).rankicon._totalFrames < eval ("_root.beholder." + this.sender).rank) {
eval ("_root.beholder." + this.sender).rank = eval ("_root.beholder." + this.sender).rankicon._totalFrames;
}
if (eval ("_root.beholder." + this.sender).rankicon._currentFrame != eval ("_root.beholder." + this.sender).rank) {
duplicateMovieClip (_root.beholder.icons, "icons" + _root.counter, _root.counter);
eval ("_root.beholder.icons" + _root.counter)._x = eval ("_root.beholder." + this.sender)._x;
eval ("_root.beholder.icons" + _root.counter)._y = eval ("_root.beholder." + this.sender)._y;
eval ("_root.beholder.icons" + _root.counter).gotoAndStop(2);
_root.counter++;
eval ("_root.beholder." + this.sender).rankicon.gotoAndStop(eval ("_root.beholder." + this.sender).rank);
}
}
_root.cash = _root.cash + Math.round((800 * _root.gamelevel) - (600 - eval ("_root.beholder." + _root.enemylist[i])._x));
duplicateMovieClip (_root.beholder.icons, "icons" + _root.counter, _root.counter);
eval ("_root.beholder.icons" + _root.counter)._x = this._x;
eval ("_root.beholder.icons" + _root.counter)._y = this._y;
eval ("_root.beholder.icons" + _root.counter).cash = Math.round((800 * _root.gamelevel) - (600 - eval ("_root.beholder." + _root.enemylist[i])._x));
_root.counter++;
removeMovieClip("_root.beholder." + _root.enemylist[i]);
_root.enemylist.splice(i, 1);
}
}
i++;
}
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._name != "cloud") {
this._xscale++;
this._yscale++;
this._alpha = this._alpha - 2;
if (10 >= this._alpha) {
this.removeMovieClip();
}
}
}
Instance of Symbol 312 MovieClip "friendly" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
this.rank = 1;
this.xp = 30;
}
onClipEvent (enterFrame) {
if (this._name != "friendly") {
if (this._x < (this.x - 3)) {
this._x = this._x + 2;
} else if (this.x < this._x) {
this._x = this._x - 2;
}
}
}
Instance of Symbol 314 MovieClip "debris" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
this._rotation = Math.round(Math.random() * 360);
this.x = (Math.random() - 0.5) * 8;
this.y = Math.random() * -6;
this._alpha = 100;
}
onClipEvent (enterFrame) {
this._x = this._x + this.x;
this.y = this.y + 0.5;
this._y = this._y + this.y;
this._alpha = this._alpha - 5;
if (20 >= this._alpha) {
removeMovieClip(this);
}
}
Instance of Symbol 315 MovieClip "gunpowder" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
this._xscale = 50;
this._yscale = 50;
this._alpha = 100;
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * 22);
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * -22);
}
onClipEvent (enterFrame) {
if (this._name != "gunpowder") {
this._xscale++;
this._yscale++;
this._alpha = this._alpha - 8;
if (10 >= this._alpha) {
this.removeMovieClip();
}
}
}
Instance of Symbol 317 MovieClip "ecmexplosion" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
i = 0;
while (i < _root.enemylist.length) {
if (this.hitTest("_root.beholder." + _root.enemylist[i])) {
eval ("_root.beholder." + _root.enemylist[i]).speed = eval ("_root.beholder." + _root.enemylist[i]).speed * 0.5;
}
i++;
}
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._name != "ecmexplosion") {
this._xscale = this._xscale + 30;
this._yscale = this._yscale + 30;
this._alpha = this._alpha - 6;
if (10 >= this._alpha) {
this.removeMovieClip();
}
}
}
Instance of Symbol 319 MovieClip "rocket" in Symbol 334 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * (_root.bulletspeed + 20));
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * (-(_root.bulletspeed + 20)));
this.time = this.time - (_root.bulletspeed + 20);
if ((0 >= this.time) and (this._name != "rocket")) {
duplicateMovieClip (_root.beholder.rocketcloud, "rocketcloud" + _root.counter, _root.counter);
eval ("_root.beholder.rocketcloud" + _root.counter)._x = this._x;
eval ("_root.beholder.rocketcloud" + _root.counter)._y = this._y;
eval ("_root.beholder.rocketcloud" + _root.counter).sender = this.sender;
_root.counter++;
this.removeMovieClip();
}
}
Instance of Symbol 321 MovieClip "rocketcloud" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
i = 0;
while (i < _root.enemylist.length) {
if (this.hitTest("_root.beholder." + _root.enemylist[i])) {
eval ("_root.beholder." + _root.enemylist[i]).health = eval ("_root.beholder." + _root.enemylist[i]).health * 0.5;
eval ("_root.beholder." + _root.enemylist[i]).health = eval ("_root.beholder." + _root.enemylist[i]).health - (_root.damage * 0.5);
if (0 >= eval ("_root.beholder." + _root.enemylist[i]).health) {
if (this.sender == "tower") {
_root.xp++;
_root.specialcredits = Math.floor(_root.xp / 60);
_root.menupicture.specialbar.bar._xscale = (_root.xp - (Math.floor(_root.xp / 60) * 60)) / 2;
}
q = 0;
while (q < 3) {
duplicateMovieClip (_root.beholder.debris, "debris" + _root.counter, _root.counter);
eval ("_root.beholder.debris" + _root.counter)._x = eval ("_root.beholder." + _root.enemylist[i])._x;
eval ("_root.beholder.debris" + _root.counter)._y = eval ("_root.beholder." + _root.enemylist[i])._y;
_root.counter++;
q++;
}
if (this.sender != "tower") {
eval ("_root.beholder." + this.sender).xp = eval ("_root.beholder." + this.sender).xp + (12 * _root.veteran);
eval ("_root.beholder." + this.sender).rank = Math.round(eval ("_root.beholder." + this.sender).xp / 30);
if (eval ("_root.beholder." + this.sender).rankicon._totalFrames < eval ("_root.beholder." + this.sender).rank) {
eval ("_root.beholder." + this.sender).rank = eval ("_root.beholder." + this.sender).rankicon._totalFrames;
}
if (eval ("_root.beholder." + this.sender).rankicon._currentFrame != eval ("_root.beholder." + this.sender).rank) {
duplicateMovieClip (_root.beholder.icons, "icons" + _root.counter, _root.counter);
eval ("_root.beholder.icons" + _root.counter)._x = eval ("_root.beholder." + this.sender)._x;
eval ("_root.beholder.icons" + _root.counter)._y = eval ("_root.beholder." + this.sender)._y;
eval ("_root.beholder.icons" + _root.counter).gotoAndStop(2);
_root.counter++;
eval ("_root.beholder." + this.sender).rankicon.gotoAndStop(eval ("_root.beholder." + this.sender).rank);
}
}
_root.cash = _root.cash + Math.round((800 * _root.gamelevel) - (600 - eval ("_root.beholder." + _root.enemylist[i])._x));
duplicateMovieClip (_root.beholder.icons, "icons" + _root.counter, _root.counter);
eval ("_root.beholder.icons" + _root.counter)._x = this._x;
eval ("_root.beholder.icons" + _root.counter)._y = this._y;
eval ("_root.beholder.icons" + _root.counter).cash = Math.round((800 * _root.gamelevel) - (600 - eval ("_root.beholder." + _root.enemylist[i])._x));
_root.counter++;
removeMovieClip("_root.beholder." + _root.enemylist[i]);
_root.enemylist.splice(i, 1);
}
}
i++;
}
this._alpha = 100;
}
onClipEvent (enterFrame) {
if (this._name != "rocketcloud") {
this._xscale++;
this._yscale++;
this._alpha = this._alpha - 2;
if (10 >= this._alpha) {
this.removeMovieClip();
}
}
}
Instance of Symbol 323 MovieClip "planebullet" in Symbol 334 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * 20);
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * -20);
this.time = this.time - 20;
if ((0 >= this.time) and (this._name != "planebullet")) {
duplicateMovieClip (_root.beholder.planebulletcloud, "planebulletcloud" + _root.counter, _root.counter);
eval ("_root.beholder.planebulletcloud" + _root.counter)._x = this._x;
eval ("_root.beholder.planebulletcloud" + _root.counter)._y = this._y;
_root.counter++;
this.removeMovieClip();
}
if (0 < _root.physicalshield.time) {
if (this.hitTest(_root.physicalshield)) {
_root.physicalshield.time = _root.physicalshield.time - 20;
duplicateMovieClip (_root.beholder.gunpowder, "gunpowder" + _root.counter, _root.counter);
eval ("_root.beholder.gunpowder" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.gunpowder" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.gunpowder" + _root.counter).gotoAndStop(5);
eval ("_root.beholder.gunpowder" + _root.counter)._rotation = this._rotation;
_root.counter++;
removeMovieClip(this);
}
}
}
Instance of Symbol 325 MovieClip "planebulletcloud" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 100;
i = 0;
while (i < _root.friendlylist.length) {
if (this.hitTest("_root.beholder." + _root.friendlylist[i])) {
q = 0;
while (q < 3) {
duplicateMovieClip (_root.beholder.debris, "debris" + _root.counter, _root.counter);
eval ("_root.beholder.debris" + _root.counter)._x = eval ("_root.beholder." + _root.friendlylist[i])._x;
eval ("_root.beholder.debris" + _root.counter)._y = eval ("_root.beholder." + _root.friendlylist[i])._y;
_root.counter++;
q++;
}
eval ("_root.beholder." + _root.friendlylist[i]).health = eval ("_root.beholder." + _root.friendlylist[i]).health - (10 + (_root.level * 2));
eval ("_root.beholder." + _root.friendlylist[i]).healthbar._xscale = Math.round(eval ("_root.beholder." + _root.friendlylist[i]).health / (eval ("_root.beholder." + _root.friendlylist[i]).starthealth / 100));
if (0 >= eval ("_root.beholder." + _root.friendlylist[i]).health) {
if (eval ("_root.beholder." + _root.friendlylist[i]).hitTest(_root._xmouse, _root._ymouse)) {
_root.pointer.gotoAndStop(1);
}
removeMovieClip("_root.beholder." + _root.friendlylist[i]);
_root.friendlylist.splice(i, 1);
_root.units_available++;
}
}
i++;
}
if (this.hitTest(_root.tower)) {
_root.tower.health = _root.tower.health - (1 + Math.round((_root.level / 8) * _root.shield));
q = 0;
while (q < 3) {
duplicateMovieClip (_root.beholder.debris, "debris" + _root.counter, _root.counter);
eval ("_root.beholder.debris" + _root.counter)._x = this._x;
eval ("_root.beholder.debris" + _root.counter)._y = this._y;
_root.counter++;
q++;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "planebulletcloud") {
this._xscale++;
this._yscale = this._yscale + 20;
this._alpha = this._alpha - 8;
if (10 >= this._alpha) {
this.removeMovieClip();
}
}
}
Instance of Symbol 330 MovieClip "icons" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
this.time = 30;
}
onClipEvent (enterFrame) {
this.time--;
this._y--;
if (0 >= this.time) {
removeMovieClip(this);
}
}
Instance of Symbol 333 MovieClip "friendlyfighter" in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
this.time = 0;
}
onClipEvent (enterFrame) {
if (0 < this.time) {
this._x = this._x + 3;
if (640 < this._x) {
this.time = 0;
}
}
}
Instance of Symbol 335 MovieClip in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
this.bla = this._x;
}
onClipEvent (enterFrame) {
if ((0 < _root.enemylist.length) and (0 < _parent._x)) {
this.point = _root.enemylist[0];
myRadians = Math.atan2((eval ("_root.beholder." + this.point)._y - _parent._y) + this._y, (eval ("_root.beholder." + this.point)._x - _parent._x) + this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * 0);
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * 0);
this._x = this._x + ((this.bla - this._x) / 6);
this.reload--;
if (0 >= this.reload) {
this._x = this._x - (Math.sin(_rotation * (Math.PI/180)) * 10);
this.gotoAndPlay(2);
duplicateMovieClip (_root.beholder.gunpowder, "gunpowder" + _root.counter, _root.counter);
eval ("_root.beholder.gunpowder" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.gunpowder" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.gunpowder" + _root.counter).gotoAndStop(3);
eval ("_root.beholder.gunpowder" + _root.counter)._rotation = this._rotation;
_root.counter++;
_root.misslelauncher.start();
duplicateMovieClip (_root.beholder.rocket, "rocket" + _root.counter, _root.counter);
eval ("_root.beholder.rocket" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.rocket" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.rocket" + _root.counter).sender = _parent._name;
eval ("_root.beholder.rocket" + _root.counter).t = this.t;
this.x = eval ("_root.beholder." + this.point)._x;
this.y = eval ("_root.beholder." + this.point)._y;
_parent.xp++;
eval ("_root.beholder.rocket" + _root.counter).time = Math.abs(Math.sqrt((((this.y - _parent._y) + this._y) * ((this.y - _parent._y) + this._y)) + (((this.x - _parent._x) + this._x) * ((this.x - _parent._x) + this._x))));
eval ("_root.beholder.rocket" + _root.counter)._rotation = this._rotation;
_root.counter++;
this.reload = 60;
}
}
}
Symbol 338 MovieClip Frame 1
stop();
Instance of Symbol 338 MovieClip "gun" in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
this.bla = this._x;
}
onClipEvent (enterFrame) {
myRadians = Math.atan2((_root._ymouse - _parent._y) + this._y, (_root._xmouse - _parent._x) + this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
this._x = this._x + (Math.sin(_rotation * (Math.PI/180)) * 0);
this._y = this._y + (Math.cos(_rotation * (Math.PI/180)) * 0);
this._x = this._x + ((this.bla - this._x) / 3);
this.reload--;
if (0 >= this.reload) {
if (((_root.menupicture._currentframe != 1) and (0 < _root.enemylist.length)) and (_root.pointer._currentFrame == 1)) {
this._x = this._x - (Math.sin(_rotation * (Math.PI/180)) * 5);
this.gotoAndPlay(2);
duplicateMovieClip (_root.beholder.gunpowder, "gunpowder" + _root.counter, _root.counter);
eval ("_root.beholder.gunpowder" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.gunpowder" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.gunpowder" + _root.counter)._rotation = this._rotation;
_root.counter++;
_root.flakgunsound.start();
duplicateMovieClip (_root.beholder.bullet, "bullet" + _root.counter, _root.counter);
eval ("_root.beholder.bullet" + _root.counter)._x = _parent._x + this._x;
eval ("_root.beholder.bullet" + _root.counter)._y = _parent._y + this._y;
eval ("_root.beholder.bullet" + _root.counter).sender = "tower";
eval ("_root.beholder.bullet" + _root.counter).time = Math.abs(Math.sqrt((((_root._ymouse - _parent._y) + this._y) * ((_root._ymouse - _parent._y) + this._y)) + (((_root._xmouse - _parent._x) + this._x) * ((_root._xmouse - _parent._x) + this._x))));
eval ("_root.beholder.bullet" + _root.counter)._rotation = this._rotation;
_root.counter++;
this.reload = 3 + _root.reload;
}
}
}
Symbol 347 Button
on (release) {
this.play();
}
Symbol 351 Button
on (release) {
_root._quality = "high";
}
Symbol 354 Button
on (release) {
_root._quality = "medium";
}
Symbol 358 Button
on (release) {
_root.play();
}
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 2
stop();
Symbol 362 Button
on (release) {
this.play();
}
Symbol 365 MovieClip Frame 1
stopAllSounds();
Symbol 365 MovieClip Frame 2
stop();
Symbol 365 MovieClip Frame 3
stopAllSounds();
Symbol 365 MovieClip Frame 4
stop();
Symbol 365 MovieClip Frame 5
stopAllSounds();
Symbol 365 MovieClip Frame 6
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 2
stop();
Symbol 410 MovieClip Frame 3
stop();
Symbol 410 MovieClip Frame 4
stop();
Symbol 410 MovieClip Frame 5
stop();
Symbol 410 MovieClip Frame 6
stop();
Symbol 410 MovieClip Frame 7
stop();
Symbol 410 MovieClip Frame 8
stop();
Symbol 410 MovieClip Frame 9
stop();
Symbol 410 MovieClip Frame 10
stop();
Symbol 410 MovieClip Frame 11
stop();
Symbol 410 MovieClip Frame 12
stop();
Symbol 410 MovieClip Frame 13
stop();
Symbol 410 MovieClip Frame 14
stop();
Symbol 410 MovieClip Frame 15
stop();
Symbol 411 Button
on (release) {
if ((_root.cash >= 6000) and (_root.friendlylist.length < 8)) {
_root.units_available--;
_root.cash = _root.cash - 6000;
_root.friendlylist.push("friendly" + _root.counter);
duplicateMovieClip (_root.beholder.friendly, "friendly" + _root.counter, _root.counter);
eval ("_root.beholder.friendly" + _root.counter).health = _root.hitpoints;
eval ("_root.beholder.friendly" + _root.counter).starthealth = _root.hitpoints;
i = 0;
while (i < _root.friendlylist.length) {
eval ("_root.beholder." + _root.friendlylist[i]).x = 200 + (i * 42);
i++;
}
eval ("_root.beholder.friendly" + _root.counter).gotoAndStop(1);
_root.counter++;
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(6);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 412 Button
on (release) {
if ((_root.cash >= 4000) and (0 < _root.damage_available)) {
_root.damage_available--;
_root.cash = _root.cash - 4000;
_root.damage = Math.round(_root.damage * 1.1);
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(3);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 413 Button
on (release) {
if ((_root.cash >= 7000) and (0 < _root.reload_available)) {
_root.reload_available--;
_root.cash = _root.cash - 7000;
_root.reload = Math.round(_root.reload * 0.8);
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(4);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 414 Button
on (release) {
if ((_root.cash >= 8000) and (0 < _root.bulletspeed_available)) {
_root.cash = _root.cash - 8000;
_root.bulletspeed = Math.round(_root.bulletspeed * 1.1);
_root.bulletspeed_available--;
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(5);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 415 Button
on (release) {
if (_root.cash >= 2000) {
_root.cash = _root.cash - 2000;
_root.tower.health = _root.tower.health + 50;
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(2);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 416 Button
on (release) {
if ((_root.cash >= 20000) and (_root.friendlylist.length < 8)) {
_root.units_available--;
_root.cash = _root.cash - 20000;
_root.friendlylist.push("friendly" + _root.counter);
duplicateMovieClip (_root.beholder.friendly, "friendly" + _root.counter, _root.counter);
eval ("_root.beholder.friendly" + _root.counter).health = _root.hitpoints;
eval ("_root.beholder.friendly" + _root.counter).starthealth = _root.hitpoints;
i = 0;
while (i < _root.friendlylist.length) {
eval ("_root.beholder." + _root.friendlylist[i]).x = 200 + (i * 42);
i++;
}
eval ("_root.beholder.friendly" + _root.counter).gotoAndStop(2);
_root.counter++;
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(7);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 423 Button
on (release) {
if ((_root.cash >= 15000) and (_root.friendlylist.length < 8)) {
_root.units_available--;
_root.cash = _root.cash - 15000;
_root.friendlylist.push("friendly" + _root.counter);
duplicateMovieClip (_root.beholder.friendly, "friendly" + _root.counter, _root.counter);
eval ("_root.beholder.friendly" + _root.counter).health = _root.hitpoints;
eval ("_root.beholder.friendly" + _root.counter).starthealth = _root.hitpoints;
i = 0;
while (i < _root.friendlylist.length) {
eval ("_root.beholder." + _root.friendlylist[i]).x = 200 + (i * 42);
i++;
}
eval ("_root.beholder.friendly" + _root.counter).gotoAndStop(3);
_root.counter++;
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(8);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 424 Button
on (release) {
if ((_root.cash >= 10000) and (_root.radarcentre._x < 0)) {
_root.cash = _root.cash - 10000;
_root.radar_available--;
_root.accuracy = Math.round(_root.accuracy * 0.7);
_root.radarcentre._x = 100;
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(9);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 427 Button
on (release) {
if ((_root.cash >= 10000) and (_root.radarcentreadvanced._x < 0)) {
_root.cash = _root.cash - 10000;
_root.radarextended_available--;
_root.accuracy = Math.round(_root.accuracy * 0.8);
_root.radarcentreadvanced._x = 100;
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(10);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 429 Button
on (release) {
if ((_root.cash >= 6000) and (0 < _root.shield_available)) {
_root.shield_available--;
_root.cash = _root.cash - 6000;
_root.shield = _root.shield - 0.25;
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(11);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 431 Button
on (release) {
if ((_root.cash >= 3000) and (0 < _root.hitpoints_available)) {
_root.cash = _root.cash - 3000;
_root.hitpoints_available--;
_root.hitpoints = Math.round(_root.hitpoints * 1.2);
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(12);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 433 Button
on (release) {
if ((_root.cash >= 90000) and (0 < _root.rockettower_available)) {
_root.rockettower_available--;
_root.cash = _root.cash - 90000;
_root.tower.gotoAndStop(2);
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(13);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 435 Button
on (release) {
if ((_root.cash >= 100000) and (_root.laserturret._x < 0)) {
_root.cash = _root.cash - 100000;
_root.laserturret_available--;
_root.laserturret._x = 70;
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(14);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 438 Button
on (release) {
if ((_root.cash >= 9000) and (0 < _root.veteran_available)) {
_root.veteran_available--;
_root.cash = _root.cash - 9000;
_root.veteran = _root.veteran + 0.5;
_root.buy.start();
}
}
on (rollOver) {
this.menucircle.gotoAndStop(15);
}
on (rollOut) {
this.menucircle.gotoAndStop(1);
}
Symbol 443 Button
on (release) {
if (_root.xp >= 60) {
_root.pointer.gotoAndStop(2);
_root.xp = _root.xp - 60;
_root.buy.start();
_root.specialcredits = Math.floor(_root.xp / 60);
_root.menupicture.specialbar.bar._xscale = (_root.xp - (Math.floor(_root.xp / 60) * 60)) / 2;
if (_root.xp < 60) {
_root.menupicture.specialbar.gotoAndStop(1);
_root.menupicture.specialbar.bar.gotoAndStop(1);
}
}
}
Symbol 444 Button
on (release) {
if ((_root.xp >= 60) and (_root.beholder.friendlyfighter.time == 0)) {
_root.xp = _root.xp - 60;
_root.buy.start();
_root.beholder.friendlyfighter.time = 1;
_root.beholder.friendlyfighter._x = -100;
_root.specialcredits = Math.floor(_root.xp / 60);
_root.menupicture.specialbar.bar._xscale = (_root.xp - (Math.floor(_root.xp / 60) * 60)) / 2;
if (_root.xp < 60) {
_root.menupicture.specialbar.gotoAndStop(1);
_root.menupicture.specialbar.bar.gotoAndStop(1);
}
}
}
Symbol 445 Button
on (release) {
if (_root.xp >= 60) {
_root.pointer.gotoAndStop(3);
_root.xp = _root.xp - 60;
_root.buy.start();
_root.specialcredits = Math.floor(_root.xp / 60);
_root.menupicture.specialbar.bar._xscale = (_root.xp - (Math.floor(_root.xp / 60) * 60)) / 2;
if (_root.xp < 60) {
_root.menupicture.specialbar.gotoAndStop(1);
_root.menupicture.specialbar.bar.gotoAndStop(1);
}
}
}
Symbol 447 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 2
stop();
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 2
stop();
Symbol 452 MovieClip Frame 1
menucircle.gotoAndStop(1);
stop();
Symbol 452 MovieClip Frame 2
menucircle.gotoAndStop(16);
stop();
Instance of Symbol 451 MovieClip "specialbar" in Symbol 452 MovieClip Frame 2
onClipEvent (load) {
_root.menupicture.specialbar.bar._xscale = (_root.xp - (Math.floor(_root.xp / 60) * 60)) / 2;
}
Symbol 459 Button
on (release) {
this.play();
}
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 2
this.x = 300;
this.y = 150;
stop();
Symbol 489 MovieClip Frame 3
this.x = 120;
this.y = 80;
stop();
Symbol 489 MovieClip Frame 4
this.x = 200;
this.y = 170;
stop();
Symbol 489 MovieClip Frame 5
this.x = 300;
this.y = 150;
stop();
Symbol 489 MovieClip Frame 6
this.x = _root.menupicture._x + 86;
this.y = _root.menupicture._y;
stop();
Symbol 489 MovieClip Frame 7
this.x = _root.menupicture._x + 90;
this.y = _root.menupicture._y + 80;
stop();
Symbol 489 MovieClip Frame 8
this.x = _root.menupicture._x;
this.y = _root.menupicture._y;
stop();
Symbol 489 MovieClip Frame 9
this.x = 500;
this.y = 260;
stop();
Symbol 489 MovieClip Frame 10
this.x = 300;
this.y = 150;
stop();
Symbol 489 MovieClip Frame 11
this.x = 300;
this.y = 150;
if (_root.adviseron == "1") {
this.play();
} else {
this.stop();
}
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 2
stop();
Symbol 494 MovieClip Frame 3
stop();
Symbol 502 Button
on (release) {
stopAllSounds();
_root.play();
}