Frame 1
_lockroot = true;
stop();
if (_root._url.indexOf("armorgames.com") != -1) {
play();
}
Frame 3
percent = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
bar._xscale = percent;
if (percent == 100) {
gotoAndPlay (11);
}
Frame 4
gotoAndPlay (3);
Frame 31
if (_root._url.indexOf("armorgames.com") == -1) {
getURL ("http://www.glowmonkey.com", "_blank");
}
Frame 122
function init_enemies() {
}
function move_enemies() {
}
stop();
gameover = false;
you_lose.swapDepths(99999);
you_lose.removeMovieClip();
you_win.swapDepths(99999);
you_win.removeMovieClip();
path.swapDepths(99999);
path.removeMovieClip();
more_games.swapDepths(99999);
more_games.removeMovieClip();
cant_build.swapDepths(99999);
cant_build.removeMovieClip();
store.swapDepths(99999);
store.removeMovieClip();
start_button.swapDepths(99999);
start_button.removeMovieClip();
butt_tower2.swapDepths(99999);
butt_tower2.removeMovieClip();
butt_tower4.swapDepths(99999);
butt_tower4.removeMovieClip();
butt_base.swapDepths(99999);
butt_base.removeMovieClip();
butt_tower3.swapDepths(99999);
butt_tower3.removeMovieClip();
butt_mine.swapDepths(99999);
butt_mine.removeMovieClip();
butt_mouse_trap.swapDepths(99999);
butt_mouse_trap.removeMovieClip();
butt_pan.swapDepths(99999);
butt_pan.removeMovieClip();
butt_airplane.swapDepths(99999);
butt_airplane.removeMovieClip();
butt_ball.swapDepths(99999);
butt_ball.removeMovieClip();
end_clip.swapDepths(99999);
end_clip.removeMovieClip();
range_upgrade.swapDepths(99999);
range_upgrade.removeMovieClip();
range.swapDepths(99999);
range.removeMovieClip();
butt_reset.swapDepths(99999);
butt_reset.removeMovieClip();
ufo.swapDepths(99999);
ufo.removeMovieClip();
var i = 1;
while (i < MAXenemies) {
var badGuy = this["Enemy" + i];
badGuy.swapDepths(99999);
badGuy.removeMovieClip();
i++;
}
var i = 0;
while (i < MAXcircle) {
circleGuy = this["circle" + i];
circleGuy.swapDepths(99999);
circleGuy.removeMovieClip();
i++;
}
attachMovie("menu", "menu", 1);
Frame 128
function move_circles() {
var _local2 = 0;
while (_local2 < MAXcircle) {
badGuy = this["circle" + _local2];
if (badGuy.dragging) {
badGuy._x = this._xmouse;
badGuy._y = this._ymouse;
}
badGuy.onPress = function () {
if (at_menu) {
this._parent.cant_build.clear();
this.dragging = true;
}
};
badGuy.onRelease = function () {
if ((at_menu && (this._y < 340)) && (!((((this._parent.cant_build.hitTest(this._x - (this._width / 2), this._y - (this._height / 2), true) or this._parent.cant_build.hitTest(this._x + (this._width / 2), this._y + (this._height / 2), true)) or this._parent.cant_build.hitTest(this._x + (this._width / 2), this._y - (this._height / 2), true)) or this._parent.cant_build.hitTest(this._x - (this._width / 2), this._y + (this._height / 2), true)) or this._parent.cant_build.hitTest(this._x, this._y, true)))) {
this._parent.draw_line();
this.dragging = false;
}
};
_local2++;
}
}
function draw_line() {
cant_build.lineStyle(21, 12955491, 60);
cant_build.moveTo(0, 0);
cant_build.lineTo(circle0._x, circle0._y);
cant_build.lineTo(circle1._x, circle1._y);
cant_build.lineTo(circle2._x, circle2._y);
cant_build.lineTo(circle3._x, circle3._y);
cant_build.lineTo(circle4._x, circle4._y);
cant_build.lineTo(circle5._x, circle5._y);
cant_build.lineTo(circle6._x, circle6._y);
cant_build.lineTo(circle7._x, circle7._y);
cant_build.lineTo(circle8._x, circle8._y);
cant_build.lineTo(640, 350);
cant_build.lineStyle(27, 0, 40);
cant_build.moveTo(0, 0);
cant_build.lineTo(circle0._x, circle0._y);
cant_build.lineTo(circle1._x, circle1._y);
cant_build.lineTo(circle2._x, circle2._y);
cant_build.lineTo(circle3._x, circle3._y);
cant_build.lineTo(circle4._x, circle4._y);
cant_build.lineTo(circle5._x, circle5._y);
cant_build.lineTo(circle6._x, circle6._y);
cant_build.lineTo(circle7._x, circle7._y);
cant_build.lineTo(circle8._x, circle8._y);
cant_build.lineTo(640, 350);
cant_build.lineStyle(15, 14929280, 75);
cant_build.moveTo(0, 0);
cant_build.lineTo(circle0._x, circle0._y);
cant_build.lineTo(circle1._x, circle1._y);
cant_build.lineTo(circle2._x, circle2._y);
cant_build.lineTo(circle3._x, circle3._y);
cant_build.lineTo(circle4._x, circle4._y);
cant_build.lineTo(circle5._x, circle5._y);
cant_build.lineTo(circle6._x, circle6._y);
cant_build.lineTo(circle7._x, circle7._y);
cant_build.lineTo(circle8._x, circle8._y);
cant_build.lineTo(640, 350);
}
stop();
at_menu = true;
menu.swapDepths(99999);
menu.removeMovieClip();
attachMovie("menu_tracks", "menu_tracks", 1);
attachMovie("cant_build", "cant_build", 3);
attachMovie("ufo_animation", "ufo", 400000, {_x:-78, _y:-78});
attachMovie("music", "music", 8, {_x:595, _y:330});
music.butt_off.onRelease = function () {
music.gotoAndStop("off");
};
music.butt.onRelease = function () {
music.gotoAndPlay("music_on");
};
MAXcircle = 9;
var i = 0;
while (i < MAXcircle) {
attachMovie("circle", "circle" + i, 30 + i, {_x:120 + (i * 50), _y:50 + (i * 25)});
i++;
}
cant_build.lineStyle(21, 12955491, 60);
cant_build.moveTo(0, 0);
cant_build.lineTo(circle0._x, circle0._y);
cant_build.lineTo(circle1._x, circle1._y);
cant_build.lineTo(circle2._x, circle2._y);
cant_build.lineTo(circle3._x, circle3._y);
cant_build.lineTo(circle4._x, circle4._y);
cant_build.lineTo(circle5._x, circle5._y);
cant_build.lineTo(circle6._x, circle6._y);
cant_build.lineTo(circle7._x, circle7._y);
cant_build.lineTo(circle8._x, circle8._y);
cant_build.lineTo(640, 350);
cant_build.lineStyle(27, 0, 40);
cant_build.moveTo(0, 0);
cant_build.lineTo(circle0._x, circle0._y);
cant_build.lineTo(circle1._x, circle1._y);
cant_build.lineTo(circle2._x, circle2._y);
cant_build.lineTo(circle3._x, circle3._y);
cant_build.lineTo(circle4._x, circle4._y);
cant_build.lineTo(circle5._x, circle5._y);
cant_build.lineTo(circle6._x, circle6._y);
cant_build.lineTo(circle7._x, circle7._y);
cant_build.lineTo(circle8._x, circle8._y);
cant_build.lineTo(640, 350);
cant_build.lineStyle(15, 14929280, 75);
cant_build.moveTo(0, 0);
cant_build.lineTo(circle0._x, circle0._y);
cant_build.lineTo(circle1._x, circle1._y);
cant_build.lineTo(circle2._x, circle2._y);
cant_build.lineTo(circle3._x, circle3._y);
cant_build.lineTo(circle4._x, circle4._y);
cant_build.lineTo(circle5._x, circle5._y);
cant_build.lineTo(circle6._x, circle6._y);
cant_build.lineTo(circle7._x, circle7._y);
cant_build.lineTo(circle8._x, circle8._y);
cant_build.lineTo(640, 350);
this.onEnterFrame = function () {
if (at_menu) {
move_circles();
}
};
Frame 137
function move_circles() {
}
function move_trail_blazer() {
trail_blazer.onEnterFrame = function () {
if (this.hitTest(end_clip)) {
this.removeMovieClip();
}
dist_x = waypoint_x[this.point_to_reach] - this._x;
dist_y = waypoint_y[this.point_to_reach] - this._y;
if ((Math.abs(dist_x) + Math.abs(dist_y)) < 31) {
this.point_to_reach++;
}
angle = Math.atan2(dist_y, dist_x);
this._x = this._x + (30 * Math.cos(angle));
this._y = this._y + (30 * Math.sin(angle));
_root.attachMovie("circle", "trail" + inc, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
inc++;
};
}
function init_enemies() {
if (MAXenemies_count == (MAXenemies - 1)) {
can_init_enemies = false;
i = 0;
MAXenemies_count = 0;
}
if (can_init_enemies && (MAXenemies_count < (MAXenemies - 1))) {
delay = enemy_delay[enemy_delay_increment];
enemy_type = enemy_type_array[enemy_body];
delay_inc = delay_inc + 1;
if (delay_inc == delay) {
i = i + 1;
MAXenemies_count = MAXenemies_count + 1;
attachMovie("enemy" + enemy_type, "Enemy" + i, 5000 + i, {_x:0, _y:0});
this["Enemy" + i].hp = (enemy_hp[enemy_hp_increment] + difficulty) + (difficulty_inc * level);
global_hp = this["Enemy" + i].hp;
this["Enemy" + i].dead = false;
this["Enemy" + i].actual_speed = enemy_speed[enemy_speed_increment];
var _local2 = this["Enemy" + i];
_local2.point_to_reach = 0;
delay_inc = 0;
}
}
}
function move_enemies() {
var _local2 = 1;
while (_local2 < MAXenemies) {
var _local3 = this["Enemy" + _local2];
_local3.speed = this["Enemy" + _local2].actual_speed;
_local3.onEnterFrame = function () {
if (!this.dead) {
if (this.hitTest(end_clip)) {
lives = lives - 1;
total_killed = total_killed + 1;
end_clip.gotoAndPlay(2);
this.removeMovieClip();
}
dist_x = waypoint_x[this.point_to_reach] - this._x;
dist_y = waypoint_y[this.point_to_reach] - this._y;
if ((Math.abs(dist_x) + Math.abs(dist_y)) < 6) {
this.point_to_reach++;
}
angle = Math.atan2(dist_y, dist_x);
this.angle = angle;
this._x = this._x + (this.speed * Math.cos(angle));
this._y = this._y + (this.speed * Math.sin(angle));
this.inside._rotation = ((angle / Math.PI) * 180) - 90;
this.enemy_hp._xscale = (this.hp / this._parent.global_hp) * 100;
}
};
_local2++;
}
}
function trojan() {
attachMovie("trojan_horse", "trojan_horse", 49000, {_x:0, _y:0});
gift_horse();
}
function gift_horse() {
place_horse = 0;
horse_speed = enemy_speed[enemy_speed_increment] * 0.95;
trojan_horse.onEnterFrame = function () {
dist_x = waypoint_x[place_horse] - this._x;
dist_y = waypoint_y[place_horse] - this._y;
if ((Math.abs(dist_x) + Math.abs(dist_y)) < 3) {
place_horse++;
}
angle = Math.atan2(dist_y, dist_x);
this._x = this._x + (horse_speed * Math.cos(angle));
this._y = this._y + (horse_speed * Math.sin(angle));
if (place_horse > 4) {
this.removeMovieClip();
}
};
}
function bombs_away() {
airplane.onEnterFrame = function () {
if (!this.hitTest(this._parent.trojan_horse)) {
var _local2 = 1;
while (_local2 < MAXenemies) {
var _local3 = this._parent["Enemy" + _local2];
if (airplane.block.hitTest(_local3.guts)) {
this._parent["Enemy" + _local2].hp = this._parent["Enemy" + _local2].hp - 1000;
this._parent["Enemy" + _local2].hp = this._parent["Enemy" + _local2].hp - 1000;
this._parent["Enemy" + _local2].dead = true;
var _local4 = ++this._parent.depthEx;
var _local6 = "explode_airplane" + _local4;
var _local5 = this._parent.attachMovie("explode_mine", _local6, _local4 + 160000);
_local5._x = this._parent["Enemy" + _local2]._x;
_local5._y = this._parent["Enemy" + _local2]._y;
this._parent["Enemy" + _local2].removeMovieClip();
this._parent["Enemy" + _local2].dead = true;
_local3.gotoAndStop("death4");
}
_local2++;
}
}
};
}
function new_tower() {
if ((!this["base" + (MAXbases - 1)].placed) && (holding_base)) {
this["base" + (MAXbases - 1)]._x = _xmouse;
this["base" + (MAXbases - 1)]._y = _ymouse;
range._x = _xmouse;
range._y = _ymouse;
this.range._alpha = 100;
can_be_placed = true;
if ((((this.cant_build.hitTest(this["base" + (MAXbases - 1)]._x - (this["base" + (MAXbases - 1)]._width / 2), this["base" + (MAXbases - 1)]._y - (this["base" + (MAXbases - 1)]._height / 2), true) or this.cant_build.hitTest(this["base" + (MAXbases - 1)]._x + (this["base" + (MAXbases - 1)]._width / 2), this["base" + (MAXbases - 1)]._y + (this["base" + (MAXbases - 1)]._height / 2), true)) or this.cant_build.hitTest(this["base" + (MAXbases - 1)]._x + (this["base" + (MAXbases - 1)]._width / 2), this["base" + (MAXbases - 1)]._y - (this["base" + (MAXbases - 1)]._height / 2), true)) or this.cant_build.hitTest(this["base" + (MAXbases - 1)]._x - (this["base" + (MAXbases - 1)]._width / 2), this["base" + (MAXbases - 1)]._y + (this["base" + (MAXbases - 1)]._height / 2), true)) or this.cant_build.hitTest(this["base" + (MAXbases - 1)]._x, this["base" + (MAXbases - 1)]._y, true)) {
this.range._alpha = 0;
can_be_placed = false;
}
if (this.store.hitTest(this["base" + (MAXbases - 1)]._x - (this["base" + (MAXbases - 1)]._width / 2), this["base" + (MAXbases - 1)]._y - (this["base" + (MAXbases - 1)]._height / 2), true)) {
this.range._alpha = 0;
can_be_placed = false;
}
}
if (!this["base" + (MAXbases - 1)].placed) {
this["base" + (MAXbases - 1)].onRelease = function () {
if (can_be_placed && (holding_base)) {
this._parent["base" + (MAXbases - 1)].placed = true;
holding_base = false;
this._parent.range.removeMovieClip();
cant_build.attachMovie("cant_build_block", "cant_build_block" + this, 69000 + MAXbases, {_x:_root["base" + (MAXbases - 1)]._x, _y:_root["base" + (MAXbases - 1)]._y});
}
};
}
}
function new_tower2() {
if ((!this["tower2" + (MAXtower2 - 1)].placed) && (holding_tower2)) {
this["tower2" + (MAXtower2 - 1)]._x = _xmouse;
this["tower2" + (MAXtower2 - 1)]._y = _ymouse;
range._x = _xmouse;
range._y = _ymouse;
this.range._alpha = 100;
can_be_placed2 = true;
if ((((this.cant_build.hitTest(_root["tower2" + (MAXtower2 - 1)]._x - (_root["tower2" + (MAXtower2 - 1)]._width / 2), _root["tower2" + (MAXtower2 - 1)]._y - (_root["tower2" + (MAXtower2 - 1)]._height / 2), true) or this.cant_build.hitTest(_root["tower2" + (MAXtower2 - 1)]._x + (_root["tower2" + (MAXtower2 - 1)]._width / 2), _root["tower2" + (MAXtower2 - 1)]._y + (_root["tower2" + (MAXtower2 - 1)]._height / 2), true)) or this.cant_build.hitTest(_root["tower2" + (MAXtower2 - 1)]._x + (_root["tower2" + (MAXtower2 - 1)]._width / 2), _root["tower2" + (MAXtower2 - 1)]._y - (_root["tower2" + (MAXtower2 - 1)]._height / 2), true)) or this.cant_build.hitTest(_root["tower2" + (MAXtower2 - 1)]._x - (_root["tower2" + (MAXtower2 - 1)]._width / 2), _root["tower2" + (MAXtower2 - 1)]._y + (_root["tower2" + (MAXtower2 - 1)]._height / 2), true)) or this.cant_build.hitTest(_root["tower2" + (MAXtower2 - 1)]._x, _root["tower2" + (MAXtower2 - 1)]._y, true)) {
this.range._alpha = 0;
can_be_placed2 = false;
}
if (this.store.hitTest(_root["tower2" + (MAXtower2 - 1)]._x - (_root["tower2" + (MAXtower2 - 1)]._width / 2), _root["tower2" + (MAXtower2 - 1)]._y - (_root["tower2" + (MAXtower2 - 1)]._height / 2), true)) {
this.range._alpha = 0;
can_be_placed2 = false;
}
}
if (!this["tower2" + (MAXtower2 - 1)].placed) {
_root["tower2" + (MAXtower2 - 1)].onRelease = function () {
if (can_be_placed2 && (holding_tower2)) {
this._parent["tower2" + (MAXtower2 - 1)].placed = true;
holding_tower2 = false;
this._parent.range.removeMovieClip();
cant_build.attachMovie("cant_build_block", "cant_build_block" + this, 68000 + MAXtower2, {_x:this._parent["tower2" + (MAXtower2 - 1)]._x - 15, _y:this._parent["tower2" + (MAXtower2 - 1)]._y});
}
};
}
}
function new_tower3() {
if ((!_root["tower3" + (MAXtower3 - 1)].placed) && (holding_tower3)) {
_root["tower3" + (MAXtower3 - 1)]._x = _xmouse;
_root["tower3" + (MAXtower3 - 1)]._y = _ymouse;
range._x = _xmouse;
range._y = _ymouse;
this.range._alpha = 100;
can_be_placed3 = true;
if ((((this.cant_build.hitTest(this["tower3" + (MAXtower3 - 1)]._x - (this["tower3" + (MAXtower3 - 1)]._width / 2), this["tower3" + (MAXtower3 - 1)]._y - (this["tower3" + (MAXtower3 - 1)]._height / 2), true) or this.cant_build.hitTest(this["tower3" + (MAXtower3 - 1)]._x + (this["tower3" + (MAXtower3 - 1)]._width / 2), this["tower3" + (MAXtower3 - 1)]._y + (this["tower3" + (MAXtower3 - 1)]._height / 2), true)) or this.cant_build.hitTest(this["tower3" + (MAXtower3 - 1)]._x + (this["tower3" + (MAXtower3 - 1)]._width / 2), this["tower3" + (MAXtower3 - 1)]._y - (this["tower3" + (MAXtower3 - 1)]._height / 2), true)) or this.cant_build.hitTest(this["tower3" + (MAXtower3 - 1)]._x - (this["tower3" + (MAXtower3 - 1)]._width / 2), this["tower3" + (MAXtower3 - 1)]._y + (this["tower3" + (MAXtower3 - 1)]._height / 2), true)) or this.cant_build.hitTest(this["tower3" + (MAXtower3 - 1)]._x, this["tower3" + (MAXtower3 - 1)]._y, true)) {
this.range._alpha = 0;
can_be_placed3 = false;
}
if (this.store.hitTest(this["tower3" + (MAXtower3 - 1)]._x - (this["tower3" + (MAXtower3 - 1)]._width / 2), this["tower3" + (MAXtower3 - 1)]._y - (this["tower3" + (MAXtower3 - 1)]._height / 2), true)) {
this.range._alpha = 0;
can_be_placed3 = false;
}
}
if (!this["tower3" + (MAXtower3 - 1)].placed) {
this["tower3" + (MAXtower3 - 1)].onRelease = function () {
if (can_be_placed3 && (holding_tower3)) {
this._parent["tower3" + (MAXtower3 - 1)].placed = true;
holding_tower3 = false;
this._parent.range.removeMovieClip();
cant_build.attachMovie("cant_build_block", "cant_build_block" + this, 67000 + MAXtower3, {_x:this._parent["tower3" + (MAXtower3 - 1)]._x, _y:this._parent["tower3" + (MAXtower3 - 1)]._y});
}
};
}
}
function new_tower4() {
if ((!_root["tower4" + (MAXtower4 - 1)].placed) && (holding_tower4)) {
_root["tower4" + (MAXtower4 - 1)]._x = _xmouse;
_root["tower4" + (MAXtower4 - 1)]._y = _ymouse;
range._x = _xmouse;
range._y = _ymouse;
this.range._alpha = 100;
can_be_placed4 = true;
if ((((this.cant_build.hitTest(this["tower4" + (MAXtower4 - 1)]._x - (this["tower4" + (MAXtower4 - 1)]._width / 2), this["tower4" + (MAXtower4 - 1)]._y - (this["tower4" + (MAXtower4 - 1)]._height / 2), true) or this.cant_build.hitTest(this["tower4" + (MAXtower4 - 1)]._x + (this["tower4" + (MAXtower4 - 1)]._width / 2), this["tower4" + (MAXtower4 - 1)]._y + (this["tower4" + (MAXtower4 - 1)]._height / 2), true)) or this.cant_build.hitTest(this["tower4" + (MAXtower4 - 1)]._x + (this["tower4" + (MAXtower4 - 1)]._width / 2), this["tower4" + (MAXtower4 - 1)]._y - (this["tower4" + (MAXtower4 - 1)]._height / 2), true)) or this.cant_build.hitTest(this["tower4" + (MAXtower4 - 1)]._x - (this["tower4" + (MAXtower4 - 1)]._width / 2), this["tower4" + (MAXtower4 - 1)]._y + (this["tower4" + (MAXtower4 - 1)]._height / 2), true)) or this.cant_build.hitTest(this["tower4" + (MAXtower4 - 1)]._x, this["tower4" + (MAXtower4 - 1)]._y, true)) {
this.range._alpha = 0;
can_be_placed4 = false;
}
if (this.store.hitTest(this["tower4" + (MAXtower4 - 1)]._x - (this["tower4" + (MAXtower4 - 1)]._width / 2), this["tower4" + (MAXtower4 - 1)]._y - (this["tower4" + (MAXtower4 - 1)]._height / 2), true)) {
this.range._alpha = 0;
can_be_placed4 = false;
}
}
if (!this["tower4" + (MAXtower4 - 1)].placed) {
this["tower4" + (MAXtower4 - 1)].onRelease = function () {
if (can_be_placed4 && (holding_tower4)) {
this._parent["tower4" + (MAXtower4 - 1)].placed = true;
holding_tower4 = false;
this._parent.range.removeMovieClip();
cant_build.attachMovie("cant_build_block", "cant_build_block" + this, 66000 + MAXtower4, {_x:this._parent["tower4" + (MAXtower4 - 1)]._x, _y:this._parent["tower4" + (MAXtower4 - 1)]._y});
}
};
}
}
function new_mine() {
if ((!this["mine" + (MAXmine - 1)].placed) && (holding_mine)) {
this["mine" + (MAXmine - 1)]._x = _xmouse;
this["mine" + (MAXmine - 1)]._y = _ymouse;
range._x = _xmouse;
range._y = _ymouse;
this.range._alpha = 100;
can_be_placedmine = false;
if ((this.cant_build.hitTest(this["mine" + (MAXmine - 1)]._x - (this["mine" + (MAXmine - 1)]._width / 10), this["mine" + (MAXmine - 1)]._y - (this["mine" + (MAXmine - 1)]._height / 10), true) or this.cant_build.hitTest(this["mine" + (MAXmine - 1)]._x + (this["mine" + (MAXmine - 1)]._width / 10), this["mine" + (MAXmine - 1)]._y + (this["mine" + (MAXmine - 1)]._height / 10), true)) or this.cant_build.hitTest(this["mine" + (MAXmine - 1)]._x + (this["mine" + (MAXmine - 1)]._width / 10), this["mine" + (MAXmine - 1)]._y - (this["mine" + (MAXmine - 1)]._height / 10), true)) {
can_be_placedmine = true;
}
if (this.store.hitTest(this["mine" + (MAXmine - 1)]._x - (this["mine" + (MAXmine - 1)]._width / 2), this["mine" + (MAXmine - 1)]._y - (this["mine" + (MAXmine - 1)]._height / 2), true)) {
this.range._alpha = 0;
can_be_placedmine = false;
}
}
this["mine" + (MAXmine - 1)].onRelease = function () {
if (can_be_placedmine && (holding_mine)) {
this._parent["mine" + (MAXmine - 1)].placed = true;
holding_mine = false;
this._parent.range.removeMovieClip();
}
};
}
function add_score() {
store.score = score;
store.money = money;
store.level = level;
store.lives = lives;
}
function new_round() {
if (total_killed == (MAXenemies - 1)) {
can_start = true;
enemy_body = enemy_body + 1;
score = score + money;
level = level + 1;
enemy_speed_increment = enemy_speed_increment + 1;
enemy_delay_increment = enemy_delay_increment + 1;
enemy_hp_increment = enemy_hp_increment + 1;
total_killed = 0;
money = money + 10;
cost_base = cost_base + 1;
cost_tower2 = cost_tower2 + 1;
cost_tower3 = cost_tower3 + 1;
cost_tower4 = cost_tower4 + 1;
cost_ball = cost_ball + 1;
cost_pan = cost_pan + 1;
cost_plane = cost_plane + 1;
store.cost_base = cost_base;
store.cost_tower2 = cost_tower2;
store.cost_tower3 = cost_tower3;
store.cost_tower4 = cost_tower4;
store.cost_ball = cost_ball;
store.cost_mouse_trap = cost_mouse_trap;
store.cost_mine = cost_mine;
store.cost_pan = cost_pan;
store.cost_plane = cost_plane;
}
}
function game_over() {
if ((lives < 1) && (!gameover_placed)) {
var _local2 = 1;
while (_local2 < MAXenemies) {
var _local3 = this["Enemy" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXbases) {
var _local3 = this["base" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXpan) {
var _local3 = this["pan" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXtower2) {
var _local3 = this["tower2" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXtower3) {
var _local3 = this["tower3" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXtower4) {
var _local3 = this["tower4" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXmine) {
var _local3 = this["mine" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXmouse_trap) {
var _local3 = this["mouse_trap" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
airplane.swapDepths(99999);
airplane.removeMovieClip();
ball.swapDepths(99999);
ball.removeMovieClip();
trojan_horse.swapDepths(99999);
trojan_horse.removeMovieClip();
start_button.swapDepths(99999);
start_button.removeMovieClip();
butt_tower2.swapDepths(99999);
butt_tower2.removeMovieClip();
butt_tower4.swapDepths(99999);
butt_tower4.removeMovieClip();
butt_base.swapDepths(99999);
butt_base.removeMovieClip();
butt_tower3.swapDepths(99999);
butt_tower3.removeMovieClip();
butt_mine.swapDepths(99999);
butt_mine.removeMovieClip();
butt_mouse_trap.swapDepths(99999);
butt_mouse_trap.removeMovieClip();
butt_pan.swapDepths(99999);
butt_pan.removeMovieClip();
butt_airplane.swapDepths(99999);
butt_airplane.removeMovieClip();
butt_ball.swapDepths(99999);
butt_ball.removeMovieClip();
end_clip.swapDepths(99999);
end_clip.removeMovieClip();
range_upgrade.swapDepths(99999);
range_upgrade.removeMovieClip();
range.swapDepths(99999);
range.removeMovieClip();
attachMovie("you_lose", "you_lose", this.getNextHighestDepth());
gameover = true;
gameover_placed = true;
}
if ((level > 50) && (!gameover_placed)) {
var _local2 = 1;
while (_local2 < MAXenemies) {
var _local3 = this["Enemy" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXbases) {
var _local3 = this["base" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXpan) {
var _local3 = this["pan" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXtower2) {
var _local3 = this["tower2" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXtower3) {
var _local3 = this["tower3" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXtower4) {
var _local3 = this["tower4" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXmine) {
var _local3 = this["mine" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXmouse_trap) {
var _local3 = this["mouse_trap" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
airplane.swapDepths(99999);
airplane.removeMovieClip();
ball.swapDepths(99999);
ball.removeMovieClip();
trojan_horse.swapDepths(99999);
trojan_horse.removeMovieClip();
start_button.swapDepths(99999);
start_button.removeMovieClip();
butt_tower2.swapDepths(99999);
butt_tower2.removeMovieClip();
butt_tower4.swapDepths(99999);
butt_tower4.removeMovieClip();
butt_base.swapDepths(99999);
butt_base.removeMovieClip();
butt_tower3.swapDepths(99999);
butt_tower3.removeMovieClip();
butt_mine.swapDepths(99999);
butt_mine.removeMovieClip();
butt_mouse_trap.swapDepths(99999);
butt_mouse_trap.removeMovieClip();
butt_pan.swapDepths(99999);
butt_pan.removeMovieClip();
butt_airplane.swapDepths(99999);
butt_airplane.removeMovieClip();
butt_ball.swapDepths(99999);
butt_ball.removeMovieClip();
end_clip.swapDepths(99999);
end_clip.removeMovieClip();
range_upgrade.swapDepths(99999);
range_upgrade.removeMovieClip();
range.swapDepths(99999);
range.removeMovieClip();
attachMovie("you_win", "you_win", this.getNextHighestDepth());
gameover = true;
gameover_placed = true;
}
}
function onEnterFrame() {
init_enemies();
move_enemies();
new_mine();
new_tower();
new_tower2();
new_tower3();
new_tower4();
add_score();
new_round();
game_over();
}
stop();
at_menu = false;
base_range = 150;
bombing = false;
bowling = false;
bullets = 1;
can_be_placed = false;
can_be_placed2 = false;
can_be_placed3 = false;
can_be_placed4 = false;
can_be_placedmine = false;
can_be_placedmouse_trap = false;
can_be_placedpan = false;
can_init_enemies = false;
can_start = true;
cost_base = 20;
cost_tower2 = 10;
cost_tower3 = 8;
cost_tower4 = 15;
cost_ball = 150;
cost_mouse_trap = 5;
cost_mine = 5;
cost_pan = 25;
cost_plane = 100;
delay_inc = 0;
depthEx = 0;
firing = false;
gameover = false;
gameover_placed = false;
holding_base = false;
holding_tower2 = false;
holding_tower3 = false;
holding_tower4 = false;
holding_mine = false;
holding_mouse_trap = false;
holding_pan = false;
i = 0;
level = 1;
lives = 50;
menu_tracks.swapDepths(99999);
menu_tracks.removeMovieClip();
attachMovie("end_clip", "end_clip", 1, {_x:560, _y:240});
attachMovie("path", "path", 2);
attachMovie("more_games", "more_games", 5, {_x:535, _y:450});
attachMovie("cant_build", "cant_build", 3);
attachMovie("store", "store", 4);
attachMovie("circle", "trail_blazer", 6, {_x:0, _y:0});
attachMovie("butt_reset", "butt_reset", 7, {_x:535, _y:425});
attachMovie("butt_start", "start_button", this.getNextHighestDepth(), {_x:535, _y:355});
attachMovie("butt_tower2", "butt_tower2", this.getNextHighestDepth(), {_x:35, _y:376});
attachMovie("butt_tower4", "butt_tower4", this.getNextHighestDepth(), {_x:100, _y:374});
attachMovie("butt_base", "butt_base", this.getNextHighestDepth(), {_x:160, _y:371});
attachMovie("butt_tower3", "butt_tower3", this.getNextHighestDepth(), {_x:33, _y:433});
attachMovie("butt_mine", "butt_mine", this.getNextHighestDepth(), {_x:100, _y:432});
attachMovie("butt_airplane", "butt_airplane", this.getNextHighestDepth(), {_x:180, _y:430});
attachMovie("range_upgrade", "range_upgrade", this.getNextHighestDepth(), {_x:-200, _y:-200});
attachMovie("ufo", "ufo", 400000, {_x:-78, _y:-78});
money = 20;
monsters_placed = 0;
MAXenemies = 25;
MAXenemies_count = 0;
MAXbases = 1;
MAXmine = 1;
MAXmouse_trap = 1;
MAXpan = 1;
MAXtower2 = 1;
MAXtower3 = 1;
MAXtower4 = 1;
new_monster = 0;
place_original = place;
placed = false;
score = 0;
score = score + ((difficulty + 4) * 2000);
store.cost_base = cost_base;
store.cost_tower2 = cost_tower2;
store.cost_tower3 = cost_tower3;
store.cost_tower4 = cost_tower4;
store.cost_ball = cost_ball;
store.cost_mouse_trap = cost_mouse_trap;
store.cost_mine = cost_mine;
store.cost_pan = cost_pan;
store.cost_plane = cost_plane;
total_killed = 0;
trojaning = false;
enemy_type_array = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5);
enemy_speed = new Array(1, 2, 1, 3, 4, 5, 5, 4, 4, 3, 4, 3, 6, 6, 6, 6, 6, 6, 6, 4, 4, 6, 6, 6, 6, 5, 5, 6, 4, 4, 5, 5, 6, 5, 6, 5, 5, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6);
enemy_delay = new Array(20, 20, 25, 20, 20, 20, 20, 20, 20, 20, 1, 15, 20, 20, 20, 20, 20, 20, 20, 1, 15, 20, 20, 20, 20, 20, 20, 20, 1, 15, 20, 20, 20, 20, 20, 20, 20, 1, 15, 20, 20, 20, 20, 20, 20, 20, 6, 20, 20, 20);
enemy_hp = new Array(5, 6, 25, 15, 18, 16, 22, 18, 25, 5, 15, 9, 25, 12, 12, 14, 20, 35, 20, 25, 34, 34, 45, 45, 56, 50, 35, 45, 40, 28, 29, 50, 50, 21, 25, 35, 25, 26, 50, 59, 60, 60, 61, 65, 60, 60, 75, 70, 75, 90);
enemy_delay_increment = 0;
enemy_body = 0;
enemy_speed_increment = 0;
enemy_hp_increment = 0;
upgrade_id = 0;
path.gotoAndStop(path_number);
trail_blazer.inc = 0;
trail_blazer.point_to_reach = 0;
if (_root._url.indexOf("armorgames.com") == -1) {
getURL ("http://www.glowmonkey.com", "_blank");
}
cant_build.lineStyle(21, 12955491, 60);
cant_build.moveTo(0, 0);
cant_build.lineTo(waypoint_x[0], waypoint_y[0]);
cant_build.lineTo(waypoint_x[1], waypoint_y[1]);
cant_build.lineTo(waypoint_x[2], waypoint_y[2]);
cant_build.lineTo(waypoint_x[3], waypoint_y[3]);
cant_build.lineTo(waypoint_x[4], waypoint_y[4]);
cant_build.lineTo(waypoint_x[5], waypoint_y[5]);
cant_build.lineTo(waypoint_x[6], waypoint_y[6]);
cant_build.lineTo(waypoint_x[7], waypoint_y[7]);
cant_build.lineTo(waypoint_x[8], waypoint_y[8]);
cant_build.lineTo(waypoint_x[9], waypoint_y[9]);
cant_build.lineStyle(27, 0, 40);
cant_build.moveTo(1, -1);
cant_build.lineTo(waypoint_x[0] + 1, waypoint_y[0] - 1);
cant_build.lineTo(waypoint_x[1] + 1, waypoint_y[1] - 1);
cant_build.lineTo(waypoint_x[2] + 1, waypoint_y[2] - 1);
cant_build.lineTo(waypoint_x[3] + 1, waypoint_y[3] - 1);
cant_build.lineTo(waypoint_x[4] + 1, waypoint_y[4] - 1);
cant_build.lineTo(waypoint_x[5] + 1, waypoint_y[5] - 1);
cant_build.lineTo(waypoint_x[6] + 1, waypoint_y[6] - 1);
cant_build.lineTo(waypoint_x[7] + 1, waypoint_y[7] - 1);
cant_build.lineTo(waypoint_x[8] + 1, waypoint_y[8] - 1);
cant_build.lineTo(waypoint_x[9] + 1, waypoint_y[9] - 1);
cant_build.lineStyle(15, 14929280, 75);
cant_build.moveTo(0, 0);
cant_build.lineTo(waypoint_x[0], waypoint_y[0]);
cant_build.lineTo(waypoint_x[1], waypoint_y[1]);
cant_build.lineTo(waypoint_x[2], waypoint_y[2]);
cant_build.lineTo(waypoint_x[3], waypoint_y[3]);
cant_build.lineTo(waypoint_x[4], waypoint_y[4]);
cant_build.lineTo(waypoint_x[5], waypoint_y[5]);
cant_build.lineTo(waypoint_x[6], waypoint_y[6]);
cant_build.lineTo(waypoint_x[7], waypoint_y[7]);
cant_build.lineTo(waypoint_x[8], waypoint_y[8]);
cant_build.lineTo(waypoint_x[9], waypoint_y[9]);
start_button.onRelease = function () {
if (can_start && (!gameover)) {
ufo.gotoAndPlay(2);
can_init_enemies = true;
store.display_enemies.gotoAndStop(enemy_type_array[enemy_body]);
if ((((enemy_body == 10) or (enemy_body == 19)) or (enemy_body == 28)) or (enemy_body == 37)) {
trojan();
store.display_enemies.gotoAndStop(10);
}
can_start = false;
}
};
butt_base.onRollOver = function () {
store.upgrade.gotoAndStop("tower_description");
};
butt_base.onRelease = function () {
if (((!holding_base) && (money > (cost_base - 1))) && (!gameover)) {
attachMovie("base", "base" + MAXbases, 20000 + MAXbases, {_x:_xmouse, _y:_ymouse});
attachMovie("range", "range", 19000 + MAXbases, {_width:250, _height:250, _x:_xmouse, _y:_ymouse});
this["base" + MAXbases].placed = false;
this["base" + MAXbases].firing = false;
MAXbases = MAXbases + 1;
holding_base = true;
money = money - cost_base;
}
};
butt_tower2.onRollOver = function () {
store.upgrade.gotoAndStop("tower2_description");
};
butt_tower2.onRelease = function () {
if (((!holding_tower2) && (money > (cost_tower2 - 1))) && (!gameover)) {
attachMovie("tower2", "tower2" + MAXtower2, 21000 + MAXtower2, {_x:_xmouse, _y:_ymouse});
attachMovie("range", "range", 19000 + MAXtower2, {_width:150, _height:150, _x:_xmouse, _y:_ymouse});
this["tower2" + MAXtower2].placed = false;
this["tower2" + MAXtower2].firing = false;
MAXtower2 = MAXtower2 + 1;
holding_tower2 = true;
money = money - cost_tower2;
}
};
butt_tower3.onRollOver = function () {
store.upgrade.gotoAndStop("tower3_description");
};
butt_tower3.onRelease = function () {
if (((!holding_tower3) && (money > (cost_tower3 - 1))) && (!gameover)) {
attachMovie("tower3", "tower3" + MAXtower3, 23000 + MAXtower3, {_x:_xmouse, _y:_ymouse});
attachMovie("range", "range", 19000 + MAXtower3, {_width:100, _height:100, _x:_xmouse, _y:_ymouse});
this["tower3" + MAXtower3].placed = false;
this["tower3" + MAXtower3].firing = false;
MAXtower3 = MAXtower3 + 1;
holding_tower3 = true;
money = money - cost_tower3;
}
};
butt_tower4.onRollOver = function () {
store.upgrade.gotoAndStop("tower4_description");
};
butt_tower4.onRelease = function () {
if (((!holding_tower4) && (money > (cost_tower4 - 1))) && (!gameover)) {
attachMovie("tower4", "tower4" + MAXtower4, 24000 + MAXtower4, {_x:_xmouse, _y:_ymouse});
attachMovie("range", "range", 19000 + MAXtower4, {_width:200, _height:200, _x:_xmouse, _y:_ymouse});
this["tower4" + MAXtower4].placed = false;
this["tower4" + MAXtower4].firing = false;
MAXtower4 = MAXtower4 + 1;
holding_tower4 = true;
money = money - cost_tower4;
}
};
butt_mine.onRollOver = function () {
store.upgrade.gotoAndStop("mine_description");
};
butt_mine.onRelease = function () {
if (((!holding_mine) && (money > 4)) && (!gameover)) {
attachMovie("mine", "mine" + MAXmine, 29000 + MAXmine, {_x:_xmouse, _y:_ymouse});
attachMovie("range", "range", 19000 + MAXmine, {_width:25, _height:25, _x:_xmouse, _y:_ymouse});
this["mine" + MAXmine].placed = false;
this["mine" + MAXmine].firing = false;
MAXmine = MAXmine + 1;
holding_mine = true;
money = money - 5;
}
};
butt_airplane.onRollOver = function () {
store.upgrade.gotoAndStop("airplane_description");
};
butt_airplane.onRelease = function () {
if (((money > (cost_plane - 1)) && (!bombing)) && (!gameover)) {
attachMovie("airplane", "airplane", 90000, {_x:280, _y:400});
money = money - cost_plane;
bombing = true;
bombs_away();
}
};
range.onEnterFrame = function () {
if (!placed) {
this._x = _xmouse;
this._y = _ymouse;
}
};
more_games.onRelease = function () {
getURL ("http://www.glowmonkey.com", _blank);
};
butt_reset.onRelease = function () {
var _local2 = 1;
while (_local2 < MAXenemies) {
var _local3 = this["Enemy" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXbases) {
var _local3 = this._parent["base" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXpan) {
var _local3 = this._parent["pan" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXtower2) {
var _local3 = this._parent["tower2" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXtower3) {
var _local3 = this._parent["tower3" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXtower4) {
var _local3 = this._parent["tower4" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXmine) {
var _local3 = this._parent["mine" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < MAXmouse_trap) {
var _local3 = this._parent["mouse_trap" + _local2];
_local3.swapDepths(99999);
_local3.removeMovieClip();
_local2++;
}
airplane.swapDepths(99999);
airplane.removeMovieClip();
ball.swapDepths(99999);
ball.removeMovieClip();
trojan_horse.swapDepths(99999);
trojan_horse.removeMovieClip();
start_button.swapDepths(99999);
start_button.removeMovieClip();
butt_tower2.swapDepths(99999);
butt_tower2.removeMovieClip();
butt_tower4.swapDepths(99999);
butt_tower4.removeMovieClip();
butt_base.swapDepths(99999);
butt_base.removeMovieClip();
butt_tower3.swapDepths(99999);
butt_tower3.removeMovieClip();
butt_mine.swapDepths(99999);
butt_mine.removeMovieClip();
butt_mouse_trap.swapDepths(99999);
butt_mouse_trap.removeMovieClip();
butt_pan.swapDepths(99999);
butt_pan.removeMovieClip();
butt_airplane.swapDepths(99999);
butt_airplane.removeMovieClip();
butt_ball.swapDepths(99999);
butt_ball.removeMovieClip();
end_clip.swapDepths(99999);
end_clip.removeMovieClip();
range_upgrade.swapDepths(99999);
range_upgrade.removeMovieClip();
range.swapDepths(99999);
range.removeMovieClip();
this._parent.gotoAndStop("menu");
};
Frame 143
function init_enemies() {
}
function move_enemies() {
}
you_lose.swapDepths(99999);
you_lose.removeMovieClip();
you_win.swapDepths(99999);
you_win.removeMovieClip();
path.swapDepths(99999);
path.removeMovieClip();
more_games.swapDepths(99999);
more_games.removeMovieClip();
cant_build.swapDepths(99999);
cant_build.removeMovieClip();
store.swapDepths(99999);
store.removeMovieClip();
start_button.swapDepths(99999);
start_button.removeMovieClip();
butt_tower2.swapDepths(99999);
butt_tower2.removeMovieClip();
butt_tower4.swapDepths(99999);
butt_tower4.removeMovieClip();
butt_base.swapDepths(99999);
butt_base.removeMovieClip();
butt_tower3.swapDepths(99999);
butt_tower3.removeMovieClip();
butt_mine.swapDepths(99999);
butt_mine.removeMovieClip();
butt_mouse_trap.swapDepths(99999);
butt_mouse_trap.removeMovieClip();
butt_pan.swapDepths(99999);
butt_pan.removeMovieClip();
butt_airplane.swapDepths(99999);
butt_airplane.removeMovieClip();
butt_ball.swapDepths(99999);
butt_ball.removeMovieClip();
end_clip.swapDepths(99999);
end_clip.removeMovieClip();
range_upgrade.swapDepths(99999);
range_upgrade.removeMovieClip();
gameover = false;
you_lose.swapDepths(99999);
you_lose.removeMovieClip();
you_win.swapDepths(99999);
you_win.removeMovieClip();
path.swapDepths(99999);
path.removeMovieClip();
more_games.swapDepths(99999);
more_games.removeMovieClip();
cant_build.swapDepths(99999);
cant_build.removeMovieClip();
store.swapDepths(99999);
store.removeMovieClip();
start_button.swapDepths(99999);
start_button.removeMovieClip();
butt_tower2.swapDepths(99999);
butt_tower2.removeMovieClip();
butt_tower4.swapDepths(99999);
butt_tower4.removeMovieClip();
butt_base.swapDepths(99999);
butt_base.removeMovieClip();
butt_tower3.swapDepths(99999);
butt_tower3.removeMovieClip();
butt_mine.swapDepths(99999);
butt_mine.removeMovieClip();
butt_mouse_trap.swapDepths(99999);
butt_mouse_trap.removeMovieClip();
butt_pan.swapDepths(99999);
butt_pan.removeMovieClip();
butt_airplane.swapDepths(99999);
butt_airplane.removeMovieClip();
butt_ball.swapDepths(99999);
butt_ball.removeMovieClip();
end_clip.swapDepths(99999);
end_clip.removeMovieClip();
range_upgrade.swapDepths(99999);
range_upgrade.removeMovieClip();
range.swapDepths(99999);
range.removeMovieClip();
butt_reset.swapDepths(99999);
butt_reset.removeMovieClip();
ufo.swapDepths(99999);
ufo.removeMovieClip();
var i = 1;
while (i < MAXenemies) {
var badGuy = this["Enemy" + i];
badGuy.swapDepths(99999);
badGuy.removeMovieClip();
i++;
}
var i = 0;
while (i < MAXcircle) {
circleGuy = this["circle" + i];
circleGuy.swapDepths(99999);
circleGuy.removeMovieClip();
i++;
}
Symbol 8 MovieClip [music] Frame 2
gotoAndPlay (1);
Symbol 8 MovieClip [music] Frame 5
stop();
stopAllSounds();
Symbol 44 MovieClip [death1] Frame 36
_parent._parent.score = _parent._parent.score + 100;
_parent._parent.money = _parent._parent.money + 2;
_parent._parent.total_killed = _parent._parent.total_killed + 1;
_parent.removeMovieClip();
Symbol 61 MovieClip Frame 30
_parent._parent.score = _parent._parent.score + 100;
_parent._parent.money = _parent._parent.money + 2;
_parent._parent.total_killed = _parent._parent.total_killed + 1;
_parent.removeMovieClip();
Symbol 79 MovieClip Frame 60
_parent._parent.score = _parent._parent.score + 100;
_parent._parent.money = _parent._parent.money + 2;
_parent._parent.total_killed = _parent._parent.total_killed + 1;
_parent.removeMovieClip();
Symbol 100 MovieClip Frame 1
_parent._parent.score = _parent._parent.score + 100;
_parent._parent.money = _parent._parent.money + 2;
_parent._parent.total_killed = _parent._parent.total_killed + 1;
charlie = _parent._parent.getNextHighestDepth();
_parent.swapDepths(charlie);
Symbol 100 MovieClip Frame 60
_parent.removeMovieClip();
Symbol 118 MovieClip Frame 54
_parent._parent.score = _parent._parent.score + 100;
_parent._parent.money = _parent._parent.money + 2;
_parent._parent.total_killed = _parent._parent.total_killed + 1;
_parent.removeMovieClip();
Symbol 138 MovieClip Frame 1
_parent._rotation = 0;
Symbol 138 MovieClip Frame 50
_parent._parent.score = _parent._parent.score + 100;
_parent._parent.money = _parent._parent.money + 2;
_parent._parent.total_killed = _parent._parent.total_killed + 1;
_parent.removeMovieClip();
Symbol 141 MovieClip Frame 2
_parent._parent.score = _parent._parent.score + 100;
_parent._parent.money = _parent._parent.money + 2;
_parent._parent.total_killed = _parent._parent.total_killed + 1;
_parent.removeMovieClip();
Symbol 153 MovieClip Frame 60
_parent._parent.score = _parent._parent.score + 100;
_parent._parent.money = _parent._parent.money + 2;
_parent._parent.total_killed = _parent._parent.total_killed + 1;
_parent.removeMovieClip();
Symbol 154 MovieClip [enemy3] Frame 1
stop();
Symbol 154 MovieClip [enemy3] Frame 6
_parent.score = _parent.score + 100;
_parent.total_killed = _parent.total_killed + 1;
this.removeMovieClip();
Symbol 154 MovieClip [enemy3] Frame 7
stop();
Symbol 154 MovieClip [enemy3] Frame 13
stop();
Symbol 154 MovieClip [enemy3] Frame 19
stop();
Symbol 154 MovieClip [enemy3] Frame 25
stop();
Symbol 154 MovieClip [enemy3] Frame 31
stop();
Symbol 154 MovieClip [enemy3] Frame 38
stop();
Symbol 154 MovieClip [enemy3] Frame 50
stop();
Symbol 154 MovieClip [enemy3] Frame 62
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 164 MovieClip [enemy2] Frame 1
stop();
Symbol 164 MovieClip [enemy2] Frame 6
_parent.score = _parent.score + 100;
_parent.total_killed = _parent.total_killed + 1;
this.removeMovieClip();
Symbol 164 MovieClip [enemy2] Frame 7
stop();
Symbol 164 MovieClip [enemy2] Frame 13
stop();
Symbol 164 MovieClip [enemy2] Frame 19
stop();
Symbol 164 MovieClip [enemy2] Frame 25
stop();
Symbol 164 MovieClip [enemy2] Frame 31
stop();
Symbol 164 MovieClip [enemy2] Frame 38
stop();
Symbol 164 MovieClip [enemy2] Frame 50
stop();
Symbol 164 MovieClip [enemy2] Frame 62
stop();
Symbol 171 MovieClip [enemy1] Frame 1
stop();
Symbol 171 MovieClip [enemy1] Frame 6
_parent.score = _parent.score + 100;
_parent.total_killed = _parent.total_killed + 1;
_parent.money = _parent.money + 1;
this.removeMovieClip();
Symbol 171 MovieClip [enemy1] Frame 7
stop();
Symbol 171 MovieClip [enemy1] Frame 13
stop();
Symbol 171 MovieClip [enemy1] Frame 19
stop();
Symbol 171 MovieClip [enemy1] Frame 25
stop();
Symbol 171 MovieClip [enemy1] Frame 31
stop();
Symbol 171 MovieClip [enemy1] Frame 39
stop();
Symbol 171 MovieClip [enemy1] Frame 51
stop();
Symbol 171 MovieClip [enemy1] Frame 63
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 180 MovieClip [enemy] Frame 1
stop();
Instance of Symbol 178 MovieClip in Symbol 180 MovieClip [enemy] Frame 1
/* no clip actions */
Symbol 180 MovieClip [enemy] Frame 6
_parent.score = _parent.score + 100;
_parent.total_killed = _parent.total_killed + 1;
this.removeMovieClip();
Symbol 180 MovieClip [enemy] Frame 7
stop();
Symbol 189 MovieClip [path] Frame 1
stop();
Symbol 189 MovieClip [path] Frame 2
stop();
Symbol 189 MovieClip [path] Frame 3
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 221 MovieClip [cant_build] Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 232 MovieClip [base_turret] Frame 1
stop();
Instance of Symbol 225 MovieClip "guts" in Symbol 233 MovieClip [tower2] Frame 1
onClipEvent (load) {
base_range = 150;
damage = 4;
counter = 0;
counter_max = 60;
bulletSpeed = 30;
m = 0;
depthEx = 0;
}
onClipEvent (enterFrame) {
if (_parent.placed) {
_parent.onRelease = function () {
_parent._parent.store.upgrade.gotoAndStop("tower2");
_parent._parent.store.upgrade_id = this;
_parent._parent.range_upgrade._x = _parent._x;
_parent._parent.range_upgrade._y = _parent._y;
_parent._parent.range_upgrade._height = base_range;
_parent._parent.range_upgrade._width = base_range;
};
}
if (counter < (counter_max + 5)) {
counter = counter + 1;
}
if (_parent.placed && (counter > counter_max)) {
var i = 1;
while (i < _root.MAXenemies) {
distance_from_turret_x = _parent._x - _root["Enemy" + i]._x;
distance_from_turret_y = _parent._y - _root["Enemy" + i]._y;
d = Math.sqrt((distance_from_turret_x * distance_from_turret_x) + (distance_from_turret_y * distance_from_turret_y));
if ((d < (base_range / 2)) and (!_parent.firing)) {
myArray = new Array();
myArray.push(_root["Enemy" + i]);
badGuy = _root["Enemy" + i];
_parent.firing = true;
bullet = attachMovie("missle", "missle" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
start_x = this._x;
start_y = this._y;
var n = 1;
var x1o = badGuy._x;
var y1o = badGuy._y;
var v1 = _parent._parent.enemy_speed[_parent._parent.enemy_speed_increment];
var theta = ((badGuy.angle * Math.PI) / 180);
var cosTheta = Math.cos(theta);
var sinTheta = Math.sin(theta);
var x2o = _parent._x;
var y2o = _parent._y;
var v2 = bulletSpeed;
var C = (x1o - x2o);
var D = (y1o - y2o);
var A = ((((-v2) * v2) + (((v1 * v1) * cosTheta) * cosTheta)) + (((v1 * v1) * sinTheta) * sinTheta));
var B = ((((-2 * n) * v2) + (((2 * C) * v1) * cosTheta)) + (((2 * D) * v1) * sinTheta));
var E = (((C * C) + (D * D)) - (n * n));
var sqrt = Math.sqrt((B * B) - ((4 * A) * E));
var t1 = (((-B) + sqrt) / (2 * A));
var t2 = (((-B) - sqrt) / (2 * A));
var t = t2;
var collisionX = (x1o + ((v1 * cosTheta) * t));
var collisionY = (y1o + ((v1 * sinTheta) * t));
var alpha = Math.atan2(collisionY - y2o, collisionX - x2o);
bulletXVel = bulletSpeed * Math.cos(alpha);
bulletYVel = bulletSpeed * Math.sin(alpha);
_parent.turret._rotation = (alpha * 180) / Math.PI;
bullet._x = this._x;
bullet._y = this._y;
bullet.dir = Math.atan2(distance_from_turret_y, distance_from_turret_x);
bullet._rotation = _parent.turret._rotation;
_parent.turret.gotoAndPlay("fire");
bullet.onEnterFrame = function () {
this._x = this._x + bulletXVel;
this._y = this._y + bulletYVel;
var _local4 = 1;
while (_local4 < _root.MAXenemies) {
var _local8 = _root["Enemy" + _local4];
if (!this.hitTest(_parent._parent.trojan_horse)) {
if (this.hitTest(_root["Enemy" + _local4].guts)) {
this.removeMovieClip();
_parent.firing = false;
counter = 0;
_root["Enemy" + _local4].hp = _root["Enemy" + _local4].hp - damage;
if (_root["Enemy" + _local4].hp < 1) {
_root["Enemy" + _local4].dead = true;
var _local5 = ++_root.depthEx;
var _local7 = "explode2" + _local5;
var _local6 = _root.attachMovie("explode", _local7, _local5 + 200000);
_local6._x = _root["Enemy" + _local4]._x;
_local6._y = _root["Enemy" + _local4]._y;
_root["Enemy" + _local4].removeMovieClip();
_root["Enemy" + _local4].gotoAndStop("death1");
}
}
}
if ((Math.abs(this._x - start_x) > (base_range / 2)) or (Math.abs(this._y - start_y) > (base_range / 2))) {
this.removeMovieClip();
_parent.firing = false;
counter = 0;
}
_local4++;
}
};
}
i++;
}
}
}
Symbol 303 MovieClip Frame 1
stop();
_parent._parent._parent.range_upgrade._x = -200;
_parent._parent._parent.range_upgrade._y = -200;
Symbol 303 MovieClip Frame 5
cost = (_parent._parent.cost_base = 20);
cost_tower2 = 10;
cost_tower3 = 8;
cost_tower4 = 15;
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 5
onClipEvent (enterFrame) {
_parent.damage_id = _parent._parent.upgrade_id.guts.damage;
_parent.bar_damage._xscale = (_parent.damage_id / 25) * 100;
price = 10;
this.onRelease = function () {
if ((_parent._parent.upgrade_id.guts.damage < 25) && (this._parent._parent._parent.money > (price - 1))) {
_parent._parent.upgrade_id.guts.damage = _parent._parent.upgrade_id.guts.damage + 5;
this._parent._parent._parent.money = this._parent._parent._parent.money - price;
}
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 5
onClipEvent (enterFrame) {
_parent.range_id = _parent._parent.upgrade_id.guts.base_range;
_parent.bar_range._xscale = (_parent.range_id / 400) * 100;
price = 10;
this.onRelease = function () {
if ((_parent._parent.upgrade_id.guts.base_range < 400) && (this._parent._parent._parent.money > (price - 1))) {
_parent._parent.upgrade_id.guts.base_range = _parent._parent.upgrade_id.guts.base_range + 50;
this._parent._parent._parent.money = this._parent._parent._parent.money - price;
this._parent._parent._parent.range_upgrade._height = this._parent._parent._parent.range_upgrade._height + 50;
this._parent._parent._parent.range_upgrade._width = this._parent._parent._parent.range_upgrade._width + 50;
}
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 5
onClipEvent (enterFrame) {
_parent.rate_id = _parent._parent.upgrade_id.guts.counter_max;
_parent.bar_rate._xscale = (30 / _parent.rate_id) * 100;
price = 10;
this.onRelease = function () {
if ((_parent._parent.upgrade_id.guts.counter_max > 30) && (this._parent._parent._parent.money > (price - 1))) {
_parent._parent.upgrade_id.guts.counter_max = _parent._parent.upgrade_id.guts.counter_max * 0.5;
this._parent._parent._parent.money = this._parent._parent._parent.money - price;
}
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 5
onClipEvent (enterFrame) {
this.onRelease = function () {
this._parent._parent._parent.money = this._parent._parent._parent.money + this._parent._parent._parent.cost_base;
this._parent._parent._parent.cant_build["cant_build_block" + this._parent._parent.upgrade_id].removeMovieClip();
this._parent._parent.upgrade_id.removeMovieClip();
this._parent._parent._parent.range_upgrade._x = -200;
this._parent.gotoAndStop(1);
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 5
onClipEvent (enterFrame) {
this.onRelease = function () {
this._parent._parent._parent.range_upgrade._x = -200;
this._parent._parent._parent.range_upgrade._y = -200;
this._parent.gotoAndStop(1);
};
}
Symbol 303 MovieClip Frame 11
cost = _parent._parent.cost_tower2;
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 11
onClipEvent (enterFrame) {
_parent.damage_id = _parent._parent.upgrade_id.guts.damage;
_parent.bar_damage._xscale = (_parent.damage_id / 16) * 100;
price = 10;
this.onRelease = function () {
if ((_parent._parent.upgrade_id.guts.damage < 16) && (this._parent._parent._parent.money > (price - 1))) {
_parent._parent.upgrade_id.guts.damage = _parent._parent.upgrade_id.guts.damage + 2;
this._parent._parent._parent.money = this._parent._parent._parent.money - price;
}
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 11
onClipEvent (enterFrame) {
_parent.range_id = _parent._parent.upgrade_id.guts.base_range;
_parent.bar_range._xscale = (_parent.range_id / 250) * 100;
price = 10;
this.onRelease = function () {
if ((_parent._parent.upgrade_id.guts.base_range < 250) && (this._parent._parent._parent.money > (price - 1))) {
_parent._parent.upgrade_id.guts.base_range = _parent._parent.upgrade_id.guts.base_range + 25;
this._parent._parent._parent.money = this._parent._parent._parent.money - price;
this._parent._parent._parent.range_upgrade._height = this._parent._parent._parent.range_upgrade._height + 25;
this._parent._parent._parent.range_upgrade._width = this._parent._parent._parent.range_upgrade._width + 25;
}
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 11
onClipEvent (enterFrame) {
_parent.rate_id = _parent._parent.upgrade_id.guts.counter_max;
_parent.bar_rate._xscale = (15 / _parent.rate_id) * 100;
price = 10;
this.onRelease = function () {
if ((_parent._parent.upgrade_id.guts.counter_max > 15) && (this._parent._parent._parent.money > (price - 1))) {
_parent._parent.upgrade_id.guts.counter_max = _parent._parent.upgrade_id.guts.counter_max * 0.5;
this._parent._parent._parent.money = this._parent._parent._parent.money - price;
}
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 11
onClipEvent (enterFrame) {
this.onRelease = function () {
this._parent._parent._parent.money = this._parent._parent._parent.money + this._parent._parent._parent.cost_tower2;
this._parent._parent._parent.cant_build["cant_build_block" + this._parent._parent.upgrade_id].removeMovieClip();
this._parent._parent.upgrade_id.removeMovieClip();
this._parent._parent._parent.range_upgrade._x = -200;
this._parent.gotoAndStop(1);
};
}
Symbol 303 MovieClip Frame 17
cost = _parent._parent.cost_tower3;
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 17
onClipEvent (enterFrame) {
_parent.damage_id = _parent._parent.upgrade_id.guts.damage;
_parent.bar_damage._xscale = (_parent.damage_id / 20) * 100;
price = 10;
this.onRelease = function () {
if ((_parent._parent.upgrade_id.guts.damage < 20) && (this._parent._parent._parent.money > (price - 1))) {
_parent._parent.upgrade_id.guts.damage = _parent._parent.upgrade_id.guts.damage + 5;
this._parent._parent._parent.money = this._parent._parent._parent.money - price;
}
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 17
onClipEvent (enterFrame) {
_parent.range_id = _parent._parent.upgrade_id.guts.base_range;
_parent.bar_range._xscale = 100;
price = 10;
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 17
onClipEvent (enterFrame) {
_parent.rate_id = _parent._parent.upgrade_id.guts.counter_max;
_parent.bar_rate._xscale = (30 / _parent.rate_id) * 100;
price = 10;
this.onRelease = function () {
if ((_parent._parent.upgrade_id.guts.counter_max > 30) && (this._parent._parent._parent.money > (price - 1))) {
_parent._parent.upgrade_id.guts.counter_max = _parent._parent.upgrade_id.guts.counter_max * 0.5;
this._parent._parent._parent.money = this._parent._parent._parent.money - price;
}
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 17
onClipEvent (enterFrame) {
this.onRelease = function () {
this._parent._parent._parent.money = this._parent._parent._parent.money + this._parent._parent._parent.cost_tower3;
this._parent._parent._parent.cant_build["cant_build_block" + this._parent._parent.upgrade_id].removeMovieClip();
this._parent._parent.upgrade_id.removeMovieClip();
this._parent._parent._parent.range_upgrade._x = -200;
this._parent.gotoAndStop(1);
};
}
Symbol 303 MovieClip Frame 23
cost = _parent._parent.cost_tower4;
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 23
onClipEvent (enterFrame) {
_parent.damage_id = _parent._parent.upgrade_id.guts.damage;
_parent.bar_damage._xscale = (_parent.damage_id / 20) * 100;
price = 10;
this.onRelease = function () {
if ((_parent._parent.upgrade_id.guts.damage < 20) && (this._parent._parent._parent.money > (price - 1))) {
_parent._parent.upgrade_id.guts.damage = _parent._parent.upgrade_id.guts.damage + 3;
this._parent._parent._parent.money = this._parent._parent._parent.money - price;
}
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 23
onClipEvent (enterFrame) {
_parent.range_id = _parent._parent.upgrade_id.guts.base_range;
_parent.bar_range._xscale = (_parent.range_id / 325) * 100;
price = 10;
this.onRelease = function () {
if ((_parent._parent.upgrade_id.guts.base_range < 325) && (this._parent._parent._parent.money > (price - 1))) {
_parent._parent.upgrade_id.guts.base_range = _parent._parent.upgrade_id.guts.base_range + 25;
this._parent._parent._parent.money = this._parent._parent._parent.money - price;
this._parent._parent._parent.range_upgrade._height = this._parent._parent._parent.range_upgrade._height + 25;
this._parent._parent._parent.range_upgrade._width = this._parent._parent._parent.range_upgrade._width + 25;
}
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 23
onClipEvent (enterFrame) {
_parent.rate_id = _parent._parent.upgrade_id.guts.counter_max;
_parent.bar_rate._xscale = (30 / _parent.rate_id) * 100;
price = 10;
this.onRelease = function () {
if ((_parent._parent.upgrade_id.guts.counter_max > 30) && (this._parent._parent._parent.money > (price - 1))) {
_parent._parent.upgrade_id.guts.counter_max = _parent._parent.upgrade_id.guts.counter_max - 15;
this._parent._parent._parent.money = this._parent._parent._parent.money - price;
}
};
}
Instance of Symbol 5 MovieClip in Symbol 303 MovieClip Frame 23
onClipEvent (load) {
block = _parent._parent.upgrade_id;
}
onClipEvent (enterFrame) {
this.onRelease = function () {
this._parent._parent._parent.money = this._parent._parent._parent.money + this._parent._parent._parent.cost_tower4;
this._parent._parent._parent.cant_build["cant_build_block" + this._parent._parent.upgrade_id].removeMovieClip();
this._parent._parent.upgrade_id.removeMovieClip();
this._parent._parent._parent.range_upgrade._x = -200;
this._parent.gotoAndStop(1);
};
}
Symbol 308 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 321 MovieClip [base] Frame 1
turret.onEnterFrame = function () {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan(mousey / mousex) / (Math.PI/180);
if (mousex < 0) {
angle = angle + 180;
}
if ((mousex >= 0) && (mousey < 0)) {
angle = angle + 360;
}
this.cannon._rotation = (angle * -1) + 90;
};
Instance of Symbol 311 MovieClip "guts" in Symbol 321 MovieClip [base] Frame 1
onClipEvent (load) {
base_range = 250;
damage = 10;
counter = 0;
counter_max = 120;
bulletSpeed = 30;
m = 0;
}
onClipEvent (enterFrame) {
if (_parent.placed) {
_parent.onRelease = function () {
_parent._parent.store.upgrade.gotoAndStop("tower");
_parent._parent.store.upgrade_id = this;
_parent._parent.range_upgrade._x = _parent._x;
_parent._parent.range_upgrade._y = _parent._y;
_parent._parent.range_upgrade._height = base_range;
_parent._parent.range_upgrade._width = base_range;
};
}
if (counter < (counter_max + 5)) {
counter = counter + 1;
}
if (_parent.placed && (counter > counter_max)) {
var i = 1;
while (i < _root.MAXenemies) {
distance_from_turret_x = _parent._x - _root["Enemy" + i]._x;
distance_from_turret_y = _parent._y - _root["Enemy" + i]._y;
d = Math.sqrt((distance_from_turret_x * distance_from_turret_x) + (distance_from_turret_y * distance_from_turret_y));
if ((d < (base_range / 2)) and (!_parent.firing)) {
myArray = new Array();
myArray.push(_root["Enemy" + i]);
badGuy = _root["Enemy" + i];
_parent.firing = true;
bullet = attachMovie("rocket", "rocket" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:_parent._x, _y:_parent._y});
start_x = this._x;
start_y = this._y;
var n = 0;
var x1o = badGuy._x;
var y1o = badGuy._y;
var v1 = _parent._parent.enemy_speed[_parent._parent.enemy_speed_increment];
var theta = ((badGuy.angle * Math.PI) / 180);
var cosTheta = Math.cos(theta);
var sinTheta = Math.sin(theta);
var x2o = _parent._x;
var y2o = _parent._y;
var v2 = bulletSpeed;
var C = (x1o - x2o);
var D = (y1o - y2o);
var A = ((((-v2) * v2) + (((v1 * v1) * cosTheta) * cosTheta)) + (((v1 * v1) * sinTheta) * sinTheta));
var B = ((((-2 * n) * v2) + (((2 * C) * v1) * cosTheta)) + (((2 * D) * v1) * sinTheta));
var E = (((C * C) + (D * D)) - (n * n));
var sqrt = Math.sqrt((B * B) - ((4 * A) * E));
var t1 = (((-B) + sqrt) / (2 * A));
var t2 = (((-B) - sqrt) / (2 * A));
var t = t2;
var collisionX = (x1o + ((v1 * cosTheta) * t));
var collisionY = (y1o + ((v1 * sinTheta) * t));
var alpha = Math.atan2(collisionY - y2o, collisionX - x2o);
bulletXVel = bulletSpeed * Math.cos(alpha);
bulletYVel = bulletSpeed * Math.sin(alpha);
_parent.turret._rotation = (alpha * 180) / Math.PI;
bullet._x = this._x;
bullet._y = this._y;
bullet._rotation = _parent.turret._rotation;
_parent.turret.gotoAndPlay("fire");
bullet.onEnterFrame = function () {
this._x = this._x + bulletXVel;
this._y = this._y + bulletYVel;
var _local4 = 1;
while (_local4 < _root.MAXenemies) {
var _local8 = _root["Enemy" + _local4];
if (!this.hitTest(_parent._parent.trojan_horse)) {
if (this.hitTest(_root["Enemy" + _local4].guts)) {
this.removeMovieClip();
_parent.firing = false;
counter = 0;
_root["Enemy" + _local4].hp = _root["Enemy" + _local4].hp - damage;
if (_root["Enemy" + _local4].hp < 1) {
_root["Enemy" + _local4].dead = true;
var _local5 = ++_root.depthEx;
var _local7 = "explode" + _local5;
var _local6 = _root.attachMovie("explode", _local7, _local5 + 190000);
_local6._x = _root["Enemy" + _local4]._x;
_local6._y = _root["Enemy" + _local4]._y;
_root["Enemy" + _local4].removeMovieClip();
_root["Enemy" + _local4].gotoAndStop("death2");
}
}
}
if ((Math.abs(this._x - start_x) > (base_range / 2)) or (Math.abs(this._y - start_y) > (base_range / 2))) {
this.removeMovieClip();
_parent.firing = false;
counter = 0;
}
_local4++;
}
};
}
i++;
}
}
}
Symbol 331 MovieClip Frame 180
_parent.gotoAndStop(1);
Symbol 332 MovieClip [end_clip] Frame 1
stop();
Symbol 334 MovieClip Frame 1
stop();
Instance of Symbol 333 MovieClip "guts" in Symbol 335 MovieClip [tower3] Frame 1
onClipEvent (load) {
base_range = 150;
damage = 5;
counter = 0;
counter_max = 60;
bulletSpeed = 30;
m = 0;
depthEx = 0;
}
onClipEvent (enterFrame) {
if (_parent.placed) {
_parent.onRelease = function () {
_parent._parent.store.upgrade.gotoAndStop("tower3");
_parent._parent.store.upgrade_id = this;
_parent._parent.range_upgrade._x = _parent._x;
_parent._parent.range_upgrade._y = _parent._y;
_parent._parent.range_upgrade._height = base_range;
_parent._parent.range_upgrade._width = base_range;
};
}
if (counter < (counter_max + 5)) {
counter = counter + 1;
}
if (_parent.placed && (counter > counter_max)) {
var i = 1;
while (i < _root.MAXenemies) {
distance_from_turret_x = _parent._x - _root["Enemy" + i]._x;
distance_from_turret_y = _parent._y - _root["Enemy" + i]._y;
d = Math.sqrt((distance_from_turret_x * distance_from_turret_x) + (distance_from_turret_y * distance_from_turret_y));
if ((d < (base_range / 2)) and (!_parent.firing)) {
myArray = new Array();
myArray.push(_root["Enemy" + i]);
badGuy = _root["Enemy" + i];
_parent.firing = true;
bullet = attachMovie("missle_flame", "missle_flame" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
start_x = this._x;
start_y = this._y;
var n = 1;
var x1o = badGuy._x;
var y1o = badGuy._y;
var v1 = _parent._parent.enemy_speed[_parent._parent.enemy_speed_increment];
var theta = ((badGuy.angle * Math.PI) / 180);
var cosTheta = Math.cos(theta);
var sinTheta = Math.sin(theta);
var x2o = _parent._x;
var y2o = _parent._y;
var v2 = bulletSpeed;
var C = (x1o - x2o);
var D = (y1o - y2o);
var A = ((((-v2) * v2) + (((v1 * v1) * cosTheta) * cosTheta)) + (((v1 * v1) * sinTheta) * sinTheta));
var B = ((((-2 * n) * v2) + (((2 * C) * v1) * cosTheta)) + (((2 * D) * v1) * sinTheta));
var E = (((C * C) + (D * D)) - (n * n));
var sqrt = Math.sqrt((B * B) - ((4 * A) * E));
var t1 = (((-B) + sqrt) / (2 * A));
var t2 = (((-B) - sqrt) / (2 * A));
var t = t2;
var collisionX = (x1o + ((v1 * cosTheta) * t));
var collisionY = (y1o + ((v1 * sinTheta) * t));
var alpha = Math.atan2(collisionY - y2o, collisionX - x2o);
bulletXVel = bulletSpeed * Math.cos(alpha);
bulletYVel = bulletSpeed * Math.sin(alpha);
_parent.turret._rotation = (alpha * 180) / Math.PI;
bullet._x = this._x;
bullet._y = this._y;
bullet.dir = Math.atan2(distance_from_turret_y, distance_from_turret_x);
bullet._rotation = _parent.turret._rotation;
_parent.turret.gotoAndPlay("fire");
bullet.onEnterFrame = function () {
this._x = this._x + bulletXVel;
this._y = this._y + bulletYVel;
var _local4 = 1;
while (_local4 < _root.MAXenemies) {
var _local8 = _root["Enemy" + _local4];
if (!this.hitTest(_parent._parent.trojan_horse)) {
if (this.hitTest(_root["Enemy" + _local4].guts)) {
this.removeMovieClip();
_parent.firing = false;
counter = 0;
_root["Enemy" + _local4].hp = _root["Enemy" + _local4].hp - damage;
if (_root["Enemy" + _local4].hp < 1) {
_root["Enemy" + _local4].dead = true;
var _local5 = ++_root.depthEx;
var _local7 = "explode3" + _local5;
var _local6 = _root.attachMovie("explode", _local7, _local5 + 180000);
_local6._x = _root["Enemy" + _local4]._x;
_local6._y = _root["Enemy" + _local4]._y;
_root["Enemy" + _local4].removeMovieClip();
_root["Enemy" + _local4].gotoAndStop("death1");
}
}
}
if ((Math.abs(this._x - start_x) > (base_range / 2)) or (Math.abs(this._y - start_y) > (base_range / 2))) {
this.removeMovieClip();
_parent.firing = false;
counter = 0;
}
_local4++;
}
};
}
i++;
}
}
}
Symbol 373 MovieClip [display_enemies] Frame 1
stop();
Instance of Symbol 375 MovieClip "guts" in Symbol 376 MovieClip [mine] Frame 1
onClipEvent (enterFrame) {
if (_parent.placed) {
if (!this.hitTest(_parent._parent.trojan_horse)) {
var i = 1;
while (i < _root.MAXenemies) {
var badGuy = _root["Enemy" + i];
if (this.hitTest(_root["Enemy" + i].guts)) {
_root["Enemy" + i].hp = _root["Enemy" + i].hp - 1000;
_root["Enemy" + i].dead = true;
var newDepthEx = (++_parent._parent.depthEx);
var nameEx = ("explode5" + newDepthEx);
var clipEx = _root.attachMovie("explode_mine", nameEx, newDepthEx + 160000);
clipEx._x = _root["Enemy" + i]._x;
clipEx._y = _root["Enemy" + i]._y;
_root["Enemy" + i].removeMovieClip();
_root["Enemy" + i].gotoAndStop("death4");
_parent.removeMovieClip();
}
i++;
}
}
}
}
Symbol 387 MovieClip Frame 1
stop();
Symbol 389 MovieClip [tower4] Frame 1
stop();
Instance of Symbol 379 MovieClip [tower4_guts] "guts" in Symbol 389 MovieClip [tower4] Frame 1
onClipEvent (load) {
base_range = 200;
damage = 8;
counter = 0;
counter_max = 90;
bulletSpeed = 30;
}
onClipEvent (enterFrame) {
if (_parent.placed) {
_parent.onRelease = function () {
_parent._parent.store.upgrade.gotoAndStop("tower4");
_parent._parent.store.upgrade_id = this;
_parent._parent.range_upgrade._x = _parent._x;
_parent._parent.range_upgrade._y = _parent._y;
_parent._parent.range_upgrade._height = base_range;
_parent._parent.range_upgrade._width = base_range;
};
}
if (counter < (counter_max + 5)) {
counter = counter + 1;
}
if (_parent.placed && (counter > counter_max)) {
var i = 1;
while (i < _root.MAXenemies) {
distance_from_turret_x = _parent._x - _root["Enemy" + i]._x;
distance_from_turret_y = _parent._y - _root["Enemy" + i]._y;
d = Math.sqrt((distance_from_turret_x * distance_from_turret_x) + (distance_from_turret_y * distance_from_turret_y));
if ((d < (base_range / 2)) and (!_parent.firing)) {
myArray = new Array();
myArray.push(_root["Enemy" + i]);
badGuy = _root["Enemy" + i];
_parent.firing = true;
bullet = attachMovie("missle", "missle" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
start_x = this._x;
start_y = this._y;
var n = 1;
var x1o = badGuy._x;
var y1o = badGuy._y;
var v1 = _parent._parent.enemy_speed[_parent._parent.enemy_speed_increment];
var theta = ((badGuy.angle * Math.PI) / 180);
var cosTheta = Math.cos(theta);
var sinTheta = Math.sin(theta);
var x2o = _parent._x;
var y2o = _parent._y;
var v2 = bulletSpeed;
var C = (x1o - x2o);
var D = (y1o - y2o);
var A = ((((-v2) * v2) + (((v1 * v1) * cosTheta) * cosTheta)) + (((v1 * v1) * sinTheta) * sinTheta));
var B = ((((-2 * n) * v2) + (((2 * C) * v1) * cosTheta)) + (((2 * D) * v1) * sinTheta));
var E = (((C * C) + (D * D)) - (n * n));
var sqrt = Math.sqrt((B * B) - ((4 * A) * E));
var t1 = (((-B) + sqrt) / (2 * A));
var t2 = (((-B) - sqrt) / (2 * A));
var t = t2;
var collisionX = (x1o + ((v1 * cosTheta) * t));
var collisionY = (y1o + ((v1 * sinTheta) * t));
var alpha = Math.atan2(collisionY - y2o, collisionX - x2o);
bulletXVel = bulletSpeed * Math.cos(alpha);
bulletYVel = bulletSpeed * Math.sin(alpha);
_parent.turret._rotation = (alpha * 180) / Math.PI;
bullet._x = this._x;
bullet._y = this._y;
bullet.dir = Math.atan2(distance_from_turret_y, distance_from_turret_x);
bullet._rotation = _parent.turret._rotation;
_parent.turret.gotoAndPlay("fire");
bullet.onEnterFrame = function () {
this._x = this._x + bulletXVel;
this._y = this._y + bulletYVel;
var _local4 = 1;
while (_local4 < _root.MAXenemies) {
var _local8 = _root["Enemy" + _local4];
if (!this.hitTest(_parent._parent.trojan_horse)) {
if (this.hitTest(_root["Enemy" + _local4].guts)) {
this.removeMovieClip();
_parent.firing = false;
counter = 0;
_root["Enemy" + _local4].hp = _root["Enemy" + _local4].hp - damage;
if (_root["Enemy" + _local4].hp < 1) {
_root["Enemy" + _local4].dead = true;
var _local5 = ++_root.depthEx;
var _local7 = "explode4" + _local5;
var _local6 = _root.attachMovie("explode", _local7, _local5 + 170000);
_local6._x = _root["Enemy" + _local4]._x;
_local6._y = _root["Enemy" + _local4]._y;
_root["Enemy" + _local4].removeMovieClip();
_root["Enemy" + _local4].gotoAndStop("death1");
}
}
}
if ((Math.abs(this._x - start_x) > (base_range / 2)) or (Math.abs(this._y - start_y) > (base_range / 2))) {
_parent.firing = false;
counter = 0;
this.removeMovieClip();
}
_local4++;
}
};
}
i++;
}
}
}
Instance of Symbol 379 MovieClip [tower4_guts] "guts" in Symbol 390 MovieClip [butt_tower4] Frame 1
onClipEvent (load) {
base_range = 200;
damage = 8;
counter = 0;
counter_max = 90;
bulletSpeed = 30;
}
onClipEvent (enterFrame) {
if (_parent.placed) {
_parent.onRelease = function () {
_parent._parent.store.upgrade.gotoAndStop("tower4");
_parent._parent.store.upgrade_id = this;
_parent._parent.range_upgrade._x = _parent._x;
_parent._parent.range_upgrade._y = _parent._y;
_parent._parent.range_upgrade._height = base_range;
_parent._parent.range_upgrade._width = base_range;
};
}
if (counter < (counter_max + 5)) {
counter = counter + 1;
}
if (_parent.placed && (counter > counter_max)) {
var i = 1;
while (i < _root.MAXenemies) {
distance_from_turret_x = _parent._x - _root["Enemy" + i]._x;
distance_from_turret_y = _parent._y - _root["Enemy" + i]._y;
d = Math.sqrt((distance_from_turret_x * distance_from_turret_x) + (distance_from_turret_y * distance_from_turret_y));
if ((d < (base_range / 2)) and (!_parent.firing)) {
myArray = new Array();
myArray.push(_root["Enemy" + i]);
badGuy = _root["Enemy" + i];
_parent.firing = true;
bullet = attachMovie("missle", "missle" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
start_x = this._x;
start_y = this._y;
var n = 1;
var x1o = badGuy._x;
var y1o = badGuy._y;
var v1 = _parent._parent.enemy_speed[_parent._parent.enemy_speed_increment];
var theta = ((badGuy.angle * Math.PI) / 180);
var cosTheta = Math.cos(theta);
var sinTheta = Math.sin(theta);
var x2o = _parent._x;
var y2o = _parent._y;
var v2 = bulletSpeed;
var C = (x1o - x2o);
var D = (y1o - y2o);
var A = ((((-v2) * v2) + (((v1 * v1) * cosTheta) * cosTheta)) + (((v1 * v1) * sinTheta) * sinTheta));
var B = ((((-2 * n) * v2) + (((2 * C) * v1) * cosTheta)) + (((2 * D) * v1) * sinTheta));
var E = (((C * C) + (D * D)) - (n * n));
var sqrt = Math.sqrt((B * B) - ((4 * A) * E));
var t1 = (((-B) + sqrt) / (2 * A));
var t2 = (((-B) - sqrt) / (2 * A));
var t = t2;
var collisionX = (x1o + ((v1 * cosTheta) * t));
var collisionY = (y1o + ((v1 * sinTheta) * t));
var alpha = Math.atan2(collisionY - y2o, collisionX - x2o);
bulletXVel = bulletSpeed * Math.cos(alpha);
bulletYVel = bulletSpeed * Math.sin(alpha);
_parent.turret._rotation = (alpha * 180) / Math.PI;
bullet._x = this._x;
bullet._y = this._y;
bullet.dir = Math.atan2(distance_from_turret_y, distance_from_turret_x);
bullet._rotation = _parent.turret._rotation;
_parent.turret.gotoAndPlay("fire");
bullet.onEnterFrame = function () {
this._x = this._x + bulletXVel;
this._y = this._y + bulletYVel;
var _local4 = 1;
while (_local4 < _root.MAXenemies) {
var _local8 = _root["Enemy" + _local4];
if (!this.hitTest(_parent._parent.trojan_horse)) {
if (this.hitTest(_root["Enemy" + _local4].guts)) {
this.removeMovieClip();
_parent.firing = false;
counter = 0;
_root["Enemy" + _local4].hp = _root["Enemy" + _local4].hp - damage;
if (_root["Enemy" + _local4].hp < 1) {
_root["Enemy" + _local4].dead = true;
var _local5 = ++_root.depthEx;
var _local7 = "explode4" + _local5;
var _local6 = _root.attachMovie("explode", _local7, _local5 + 170000);
_local6._x = _root["Enemy" + _local4]._x;
_local6._y = _root["Enemy" + _local4]._y;
_root["Enemy" + _local4].removeMovieClip();
_root["Enemy" + _local4].gotoAndStop("death1");
}
}
}
if ((Math.abs(this._x - start_x) > (base_range / 2)) or (Math.abs(this._y - start_y) > (base_range / 2))) {
_parent.firing = false;
counter = 0;
this.removeMovieClip();
}
_local4++;
}
};
}
i++;
}
}
}
Symbol 396 MovieClip [enemy4] Frame 1
stop();
Symbol 396 MovieClip [enemy4] Frame 6
_parent.score = _parent.score + 100;
_parent.total_killed = _parent.total_killed + 1;
this.removeMovieClip();
Symbol 396 MovieClip [enemy4] Frame 7
stop();
Symbol 396 MovieClip [enemy4] Frame 13
stop();
Symbol 396 MovieClip [enemy4] Frame 19
stop();
Symbol 396 MovieClip [enemy4] Frame 25
stop();
Symbol 396 MovieClip [enemy4] Frame 31
stop();
Symbol 396 MovieClip [enemy4] Frame 40
stop();
Symbol 396 MovieClip [enemy4] Frame 52
stop();
Symbol 396 MovieClip [enemy4] Frame 64
stop();
Instance of Symbol 5 MovieClip "block" in Symbol 399 MovieClip [mouse_trap] Frame 1
onClipEvent (enterFrame) {
if (_parent.placed) {
if (!this.hitTest(_parent._parent.trojan_horse)) {
var i = 1;
while (i < _root.MAXenemies) {
var badGuy = _root["Enemy" + i];
if (this.hitTest(_root["Enemy" + i].guts)) {
_root["Enemy" + i].hp = _root["Enemy" + i].hp - 1000;
_root["Enemy" + i].dead = true;
_root["Enemy" + i].gotoAndStop("death_mouse_trap");
_parent.removeMovieClip();
}
i++;
}
}
}
}
Symbol 402 MovieClip [enemy5] Frame 1
stop();
Instance of Symbol 178 MovieClip "inside" in Symbol 402 MovieClip [enemy5] Frame 1
/* no clip actions */
Symbol 402 MovieClip [enemy5] Frame 6
_parent.score = _parent.score + 100;
_parent.total_killed = _parent.total_killed + 1;
_parent.money = _parent.money + 1;
this.removeMovieClip();
Symbol 402 MovieClip [enemy5] Frame 7
stop();
Symbol 402 MovieClip [enemy5] Frame 13
stop();
Symbol 402 MovieClip [enemy5] Frame 19
stop();
Symbol 402 MovieClip [enemy5] Frame 25
stop();
Symbol 402 MovieClip [enemy5] Frame 31
stop();
Symbol 402 MovieClip [enemy5] Frame 39
stop();
Symbol 402 MovieClip [enemy5] Frame 51
stop();
Symbol 402 MovieClip [enemy5] Frame 63
stop();
Symbol 405 MovieClip [enemy6] Frame 1
stop();
Symbol 405 MovieClip [enemy6] Frame 6
_parent.score = _parent.score + 100;
_parent.total_killed = _parent.total_killed + 1;
_parent.money = _parent.money + 1;
this.removeMovieClip();
Symbol 405 MovieClip [enemy6] Frame 7
stop();
Symbol 405 MovieClip [enemy6] Frame 13
stop();
Symbol 405 MovieClip [enemy6] Frame 19
stop();
Symbol 405 MovieClip [enemy6] Frame 25
stop();
Symbol 405 MovieClip [enemy6] Frame 31
stop();
Symbol 405 MovieClip [enemy6] Frame 39
stop();
Symbol 405 MovieClip [enemy6] Frame 51
stop();
Symbol 405 MovieClip [enemy6] Frame 63
stop();
Symbol 413 MovieClip [enemy7] Frame 1
stop();
Symbol 413 MovieClip [enemy7] Frame 6
_parent.score = _parent.score + 100;
_parent.total_killed = _parent.total_killed + 1;
_parent.money = _parent.money + 1;
this.removeMovieClip();
Symbol 413 MovieClip [enemy7] Frame 7
stop();
Symbol 413 MovieClip [enemy7] Frame 13
stop();
Symbol 413 MovieClip [enemy7] Frame 19
stop();
Symbol 413 MovieClip [enemy7] Frame 25
stop();
Symbol 413 MovieClip [enemy7] Frame 31
stop();
Symbol 413 MovieClip [enemy7] Frame 39
stop();
Symbol 413 MovieClip [enemy7] Frame 51
stop();
Symbol 413 MovieClip [enemy7] Frame 63
stop();
Symbol 416 MovieClip [enemy8] Frame 1
stop();
Symbol 416 MovieClip [enemy8] Frame 6
_parent.score = _parent.score + 100;
_parent.total_killed = _parent.total_killed + 1;
_parent.money = _parent.money + 1;
this.removeMovieClip();
Symbol 416 MovieClip [enemy8] Frame 7
stop();
Symbol 416 MovieClip [enemy8] Frame 13
stop();
Symbol 416 MovieClip [enemy8] Frame 19
stop();
Symbol 416 MovieClip [enemy8] Frame 25
stop();
Symbol 416 MovieClip [enemy8] Frame 31
stop();
Symbol 416 MovieClip [enemy8] Frame 39
stop();
Symbol 416 MovieClip [enemy8] Frame 51
stop();
Symbol 416 MovieClip [enemy8] Frame 63
stop();
Symbol 418 MovieClip [enemy9] Frame 1
stop();
Symbol 418 MovieClip [enemy9] Frame 6
_parent.score = _parent.score + 100;
_parent.total_killed = _parent.total_killed + 1;
_parent.money = _parent.money + 1;
this.removeMovieClip();
Symbol 418 MovieClip [enemy9] Frame 7
stop();
Symbol 418 MovieClip [enemy9] Frame 13
stop();
Symbol 418 MovieClip [enemy9] Frame 19
stop();
Symbol 418 MovieClip [enemy9] Frame 25
stop();
Symbol 418 MovieClip [enemy9] Frame 31
stop();
Symbol 418 MovieClip [enemy9] Frame 39
stop();
Symbol 418 MovieClip [enemy9] Frame 51
stop();
Symbol 418 MovieClip [enemy9] Frame 63
stop();
Symbol 435 MovieClip [airplane] Frame 149
stop();
_parent.bombing = false;
this.removeMovieClip();
Symbol 438 MovieClip [trojan_horse] Frame 1
stop();
Symbol 438 MovieClip [trojan_horse] Frame 5
this.removeMovieClip();
Symbol 438 MovieClip [trojan_horse] Frame 11
this.removeMovieClip();
Symbol 438 MovieClip [trojan_horse] Frame 17
this.removeMovieClip();
Symbol 438 MovieClip [trojan_horse] Frame 23
this.removeMovieClip();
Symbol 438 MovieClip [trojan_horse] Frame 29
this.removeMovieClip();
Symbol 438 MovieClip [trojan_horse] Frame 36
this.removeMovieClip();
Symbol 438 MovieClip [trojan_horse] Frame 48
this.removeMovieClip();
Symbol 438 MovieClip [trojan_horse] Frame 60
this.removeMovieClip();
Instance of Symbol 5 MovieClip in Symbol 448 MovieClip [menu_tracks] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
getURL ("http://www.glowmonkey.com", _blank);
};
}
Instance of Symbol 5 MovieClip in Symbol 448 MovieClip [menu_tracks] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
px0 = this._parent._parent.circle0._x;
py0 = this._parent._parent.circle0._y;
px1 = this._parent._parent.circle1._x;
py1 = this._parent._parent.circle1._y;
px2 = this._parent._parent.circle2._x;
py2 = this._parent._parent.circle2._y;
px3 = this._parent._parent.circle3._x;
py3 = this._parent._parent.circle3._y;
px4 = this._parent._parent.circle4._x;
py4 = this._parent._parent.circle4._y;
px5 = this._parent._parent.circle5._x;
py5 = this._parent._parent.circle5._y;
px6 = this._parent._parent.circle6._x;
py6 = this._parent._parent.circle6._y;
px7 = this._parent._parent.circle7._x;
py7 = this._parent._parent.circle7._y;
px8 = this._parent._parent.circle8._x;
py8 = this._parent._parent.circle8._y;
this._parent._parent.waypoint_x = new Array(px0, px1, px2, px3, px4, px5, px6, px7, px8, 640);
this._parent._parent.waypoint_y = new Array(py0, py1, py2, py3, py4, py5, py6, py7, py8, 350);
this._parent._parent.path_number = 1;
this._parent._parent.gotoAndStop("game");
};
}
Instance of Symbol 5 MovieClip in Symbol 448 MovieClip [menu_tracks] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
getURL ("http://www.glowmonkey.com", _blank);
};
}
Instance of Symbol 220 MovieClip "guts" in Symbol 455 MovieClip [circle] Frame 1
/* no clip actions */
Symbol 459 MovieClip [title_logo] Frame 120
stop();
Instance of Symbol 5 MovieClip in Symbol 460 MovieClip [menu] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
getURL ("http://www.glowmonkey.com", _blank);
};
}
Instance of Symbol 5 MovieClip in Symbol 460 MovieClip [menu] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
this._parent._parent.difficulty = -4;
this._parent._parent.difficulty_inc = 0;
this._parent._parent.gotoAndStop("menu_tracks");
};
}
Instance of Symbol 5 MovieClip in Symbol 460 MovieClip [menu] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
this._parent._parent.difficulty = 0;
this._parent._parent.difficulty_inc = 0;
this._parent._parent.gotoAndStop("menu_tracks");
this._parent.removeMovieClip();
};
}
Instance of Symbol 5 MovieClip in Symbol 460 MovieClip [menu] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
this._parent._parent.difficulty = 5;
this._parent._parent.difficulty_inc = 1;
this._parent._parent.gotoAndStop("menu_tracks");
};
}
Instance of Symbol 5 MovieClip in Symbol 460 MovieClip [menu] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
this._parent._parent.difficulty = 10;
this._parent._parent.difficulty_inc = 2;
this._parent._parent.gotoAndStop("menu_tracks");
};
}
Symbol 468 MovieClip [you_win] Frame 1
score = _parent.score;
Instance of Symbol 5 MovieClip in Symbol 468 MovieClip [you_win] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
this._parent._parent.score = 0;
this._parent._parent.level = 1;
this._parent._parent.lives = 50;
this._parent._parent.gameover = false;
this._parent._parent.gotoAndStop("menu");
};
}
Instance of Symbol 5 MovieClip in Symbol 468 MovieClip [you_win] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
getURL ("http://www.glowmonkey.com", _blank);
this._parent._parent.level = 1;
this._parent._parent.lives = 50;
this._parent._parent.gotoAndStop("menu");
};
}
Instance of Symbol 5 MovieClip in Symbol 468 MovieClip [you_win] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
getURL ("http://www.glowmonkey.com", _blank);
this._parent._parent.level = 1;
this._parent._parent.lives = 50;
this._parent._parent.gotoAndStop("menu");
};
}
Symbol 473 MovieClip [you_lose] Frame 1
score = _parent.score;
Instance of Symbol 5 MovieClip in Symbol 473 MovieClip [you_lose] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
this._parent._parent.score = 0;
this._parent._parent.level = 1;
this._parent._parent.lives = 50;
this._parent._parent.gameover = false;
this._parent._parent.gotoAndStop("menu");
};
}
Instance of Symbol 5 MovieClip in Symbol 473 MovieClip [you_lose] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
getURL ("http://www.glowmonkey.com", _blank);
this._parent._parent.level = 1;
this._parent._parent.lives = 50;
this._parent._parent.gotoAndStop("menu");
};
}
Instance of Symbol 5 MovieClip in Symbol 473 MovieClip [you_lose] Frame 1
onClipEvent (enterFrame) {
this.onRelease = function () {
getURL ("http://www.glowmonkey.com", _blank);
this._parent._parent.level = 1;
this._parent._parent.lives = 50;
this._parent._parent.gotoAndStop("menu");
};
}
Symbol 478 MovieClip [ufo_animation] Frame 119
stop();
Symbol 482 MovieClip [ufo] Frame 1
stop();
Symbol 484 MovieClip [missle_flame] Frame 2
stop();
Symbol 486 MovieClip [missle] Frame 2
stop();
Symbol 492 MovieClip [rocket_guts] Frame 5
stop();
Symbol 502 MovieClip [explode_mine] Frame 22
_parent.score = _parent.score + 100;
_parent.money = _parent.money + 2;
_parent.total_killed = _parent.total_killed + 1;
this.removeMovieClip();
Symbol 512 MovieClip [explode] Frame 16
_parent.score = _parent.score + 100;
_parent.money = _parent.money + 2;
_parent.total_killed = _parent.total_killed + 1;
this.removeMovieClip();
Symbol 515 Button
on (release) {
getURL ("http://www.glowmonkey.com", "_blank");
}