Frame 1
men = new ContextMenu();
auto = new ContextMenuItem("Quality: Auto", function () {
_global.quality_set = "auto";
}, true);
hi = new ContextMenuItem("Quality: High", function () {
_global.quality_set = "high";
_quality = "HIGH";
});
med = new ContextMenuItem("Quality: Medium", function () {
_global.quality_set = "medium";
_quality = "MEDIUM";
});
lo = new ContextMenuItem("Quality: Low", function () {
_global.quality_set = "low";
_quality = "LOW";
});
sfb = new ContextMenuItem("SuperFlashBros.net", function () {
getURL ("http://www.superflashbros.net", "_blank", "POST");
}, true);
agms = new ContextMenuItem("ArmorGames.com", function () {
getURL ("http://www.armorgames.com", "_blank", "POST");
});
agm = new ContextMenuItem("Play More Games!", function () {
getURL ("http://www.armorgames.com", "_blank", "POST");
});
men.hideBuiltInItems();
men.customItems.push(auto);
men.customItems.push(hi);
men.customItems.push(med);
men.customItems.push(lo);
men.customItems.push(sfb);
men.customItems.push(agms);
men.customItems.push(agm);
_root.menu = men;
_root.tabEnabled = false;
_global.quality_set = "high";
_global.music_vol = 5;
_global.sfx_vol = 5;
_global.control_type = 1;
_global.updown = "reverse";
Instance of Symbol 21 MovieClip in Frame 1
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 2
per = (100 * _root.getBytesLoaded()) / _root.getBytesTotal();
if (per > 99) {
_root.gotoAndStop("menu");
} else {
_root.bar.gotoAndStop(Math.round(per));
_root.gotoAndPlay(1);
}
Frame 4
stop();
Instance of Symbol 585 MovieClip in Frame 4
onClipEvent (load) {
this.onRelease = function () {
_root.gotoAndPlay("test_go");
};
}
Instance of Symbol 632 MovieClip in Frame 4
onClipEvent (load) {
this.pressed = false;
}
Frame 5
_global.quality_set = "high";
_global.music_vol = 5;
_global.sfx_vol = 5;
_global.control_type = 1;
_global.updown = "reverse";
Frame 115
_quality = "MEDIUM";
Instance of Symbol 774 MovieClip in Frame 115
onClipEvent (load) {
this.onRelease = function () {
_root.gotoAndPlay(740);
};
}
Instance of Symbol 778 MovieClip in Frame 115
onClipEvent (load) {
this.onRelease = function () {
_root.gotoAndPlay("test_go");
};
this.onEnterFrame = function () {
if (Key.isDown(32)) {
_root.gotoAndPlay("test_go");
}
};
}
Frame 1117
sky = new Layout("plane");
sky.addEnemy("tut_target", 280, -160, 300);
airspace.particles = false;
airspace.addLayout("sky", sky);
airspace.setLayout("sky");
airspace.pickups = false;
airspace.player.tutorial = true;
airspace.enemy0._visible = false;
Instance of Symbol 39 MovieClip [AirSpace] "airspace" in Frame 1117
/* no clip actions */
Frame 1206
airspace.enemy0._visible = true;
Frame 1503
stop();
Frame 1518
stopAllSounds();
Frame 1519
sky = new Layout("plane");
sky.enemy_types = ["sky_bug_1", "sky_bug_2", "sky_bug_3", "sky_bug_3"];
sky.generateEnemies();
airspace.obstacle_types = ["bomb", "big_bomb"];
airspace.addLayout("sky", sky);
airspace.setLayout("sky");
stop();
Frame 1520
stopAllSounds();
Frame 1521
sky = new Layout("plane");
sky.addEnemy("blimp", 0, -200, 2000);
airspace.addLayout("sky", sky);
airspace.setLayout("sky");
airspace.pickups = false;
stop();
Frame 1522
stopAllSounds();
Instance of Symbol 1267 MovieClip in Frame 1552
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_root.play();
}
}
Frame 1562
stop();
Frame 1659
stopAllSounds();
Frame 1660
water = new Layout("sub");
water.enemy_types = ["water_bug_1", "water_bug_2", "water_bug_3", "water_bug_3"];
water.enemy_selection = 2;
water.generateEnemies();
airspace.addLayout("water", water);
airspace.setLayout("water");
airspace.obstacle_types = ["can", "mine"];
stop();
Frame 1661
stopAllSounds();
Frame 1662
water = new Layout("sub");
water.addEnemy("whale", 0, -200, 2000);
airspace.addLayout("water", water);
airspace.setLayout("water");
airspace.pickups = false;
stop();
Frame 1663
stopAllSounds();
Instance of Symbol 1267 MovieClip in Frame 1693
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_root.play();
}
}
Frame 1703
stop();
Frame 1809
stopAllSounds();
Frame 1810
space = new Layout("rocket");
space.enemy_types = ["space_bug_1", "space_bug_2", "space_bug_3", "space_bug_3"];
space.enemy_selection = 3;
space.generateEnemies();
airspace.addLayout("space", space);
airspace.setLayout("space");
stop();
Frame 1811
stopAllSounds();
Frame 1812
space = new Layout("rocket");
space.addEnemy("planet", 0, -200, 2000);
airspace.addLayout("space", space);
airspace.setLayout("space");
airspace.pickups = false;
stop();
Frame 1813
stopAllSounds();
Instance of Symbol 1267 MovieClip in Frame 1843
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
stopAllSounds();
_root.play();
}
}
Frame 1853
stop();
Frame 2255
menu_selected = replay;
Instance of Symbol 1518 MovieClip "replay" in Frame 2255
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
setSelect();
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.play_more;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.main;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
stopAllSounds();
_root.gotoAndPlay("logos");
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 1520 MovieClip "main" in Frame 2255
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.replay;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.play_more;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
stopAllSounds();
_root.gotoAndPlay("menu");
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 1522 MovieClip "play_more" in Frame 2255
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.main;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.replay;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
getURL ("http://www.armorgames.com", "_blank");
}
} else {
_parent.pressed = false;
}
}
};
}
Frame 2354
stop();
Symbol 2 MovieClip Frame 1
var bitmapData_1 = (new flash.display.BitmapData(550, 400, true, 16711680));
var mc_1 = this.createEmptyMovieClip("mc", 2);
mc_1.attachBitmap(bitmapData_1, 3);
var randomNum = Math.floor(Math.random() * 10);
bitmapData_1.perlinNoise(550, 400, 6, randomNum, false, true, 8, true, null);
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 1523 MovieClip [__Packages.Position] Frame 0
class Position extends MovieClip
{
var removeMovieClip, _x, _y, _xscale, _yscale, swapDepths, filters, _width, _height, _alpha, _parent;
function Position () {
super();
}
function screenPosition() {
render_z = pos_z - camera_z;
render_scale = camera_depth / (render_z + camera_depth);
render_x = center_x + ((pos_x - camera_x) * render_scale);
render_y = center_y + (((pos_y - camera_y) + center_y_offset) * render_scale);
render_depth = Math.round(render_scale * 1000);
if (((pos_x == Number.NaN) || (pos_y == Number.NaN)) || (pos_z == Number.NaN)) {
removeMovieClip();
}
}
function render() {
_x = render_x;
_y = render_y;
_xscale = (_yscale = 100 * render_scale);
swapDepths(render_depth);
blur(render_z);
}
function blur(p_y) {
var _local2 = (p_y - 200) / 500;
var _local3 = new flash.filters.BlurFilter(_local2, _local2, 1);
filters = [_local3];
}
function offScreen() {
_x = -200;
_y = -200;
_xscale = (_yscale = 5);
}
function drawToScreen() {
screenPosition();
if (((((render_z >= -300) && (render_x > (-50 - _width))) && (render_x < (600 + _width))) && (render_y > (-50 - _height))) && (render_y < (450 + _height))) {
if (render_z > draw_distance) {
offScreen();
} else {
if (render_z > (draw_distance - 200)) {
_alpha = 100 - (((render_z - draw_distance) + 200) / 2);
} else {
_alpha = 100;
}
render();
}
} else {
offScreen();
}
}
function cameraFollow(p_position) {
var _local4;
if (p_position.boss) {
_local4 = true;
} else {
var _local6 = _parent.current_layout.enemies.length == _parent.enemies.length;
var _local3 = true;
if (_local6) {
var _local2 = _parent.enemies.length;
while (_local2 > (_parent.enemies.length - 10)) {
if (_parent.enemies[_local2]._name != undefined) {
_local3 = false;
}
_local2--;
}
}
if (((p_position.__get__posZ() > 25000) && (_local6)) && (_local3)) {
_local4 = false;
} else {
_local4 = true;
}
}
if (_local4) {
camera_x = camera_x + ((p_position.__get__posX() - camera_x) / 5);
camera_y = camera_y + ((p_position.__get__posY() - camera_y) / 5);
camera_z = p_position.posZ;
}
}
function distance2D(p_position) {
var _local3 = posX - p_position.__get__posX();
var _local2 = posY - p_position.__get__posY();
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function distance3D(p_position) {
var _local4 = posX - p_position.__get__posX();
var _local3 = posY - p_position.__get__posY();
var _local2 = posZ - p_position.__get__posZ();
return(Math.sqrt(((_local4 * _local4) + (_local3 * _local3)) + (_local2 * _local2)));
}
function angle2D(p_position) {
var _local3 = p_position.__get__posX() - pos_x;
var _local2 = pos_y - p_position.__get__posY();
return(Math.atan2(_local3, _local2));
}
function angleToCamera() {
var _local3 = camera_x - pos_x;
var _local2 = pos_y - camera_y;
return(Math.atan2(_local3, _local2));
}
static function get cameraDepth() {
return(camera_depth);
}
static function set cameraDepth(p_depth) {
camera_depth = p_depth;
//return(cameraDepth);
}
function get posX() {
return(pos_x);
}
function set posX(p_x) {
pos_x = p_x;
//return(posX);
}
function get posY() {
return(pos_y);
}
function set posY(p_y) {
pos_y = p_y;
//return(posY);
}
function get posZ() {
return(pos_z);
}
function set posZ(p_z) {
pos_z = p_z;
//return(posZ);
}
function get renderX() {
return(render_x);
}
function get renderY() {
return(render_y);
}
function get renderZ() {
return(render_y);
}
function get renderScale() {
return(render_scale);
}
function get renderDepth() {
return(render_depth);
}
function getShot() {
}
var pos_x = 0;
var pos_y = 0;
var pos_z = 0;
var render_x = 0;
var render_y = 0;
var render_z = 0;
var render_scale = 0;
var render_depth = 0;
var started = false;
var missile = false;
var boss = false;
static var camera_x = 0;
static var camera_y = 0;
static var camera_z = 0;
static var camera_depth = 300;
static var center_x = 275;
static var center_y = 200;
static var center_y_offset = 100;
static var draw_distance = 1500;
}
Symbol 1524 MovieClip [__Packages.BlimpAI] Frame 0
class BlimpAI extends Position
{
var color, target_clip, _parent, onEnterFrame, distance2D, __get__posZ, __get__posX, __get__posY, gotoAndStop, attack_clip, miss, pos_x, pos_y, pos_z;
function BlimpAI () {
super();
color = new Color(this);
target_clip = _parent.player;
onEnterFrame = function () {
if (!_global.game_paused) {
if (this.stop_list != null) {
this.startMoving();
this.stop();
}
if (this.redded_out) {
this.redded_out = null;
} else if (this.redded_out == null) {
this.unRed();
}
this.followTarget();
if (((Math.random() < 0.01) && (this._currentframe == 1)) && (this.render_z < 500)) {
this.targs_hit = [false, false, false, false];
this.attack();
}
this.moveX();
this.moveY();
this.moveZ();
} else if (this.stop_list == null) {
this.stopMoving();
}
};
}
function stopMoving() {
stop_list = [];
for (var _local5 in this) {
stop_list.push(this[_local5]);
this[_local5].stop();
for (var _local4 in this[_local5]) {
stop_list.push(this[_local5][_local4]);
this[_local5][_local4].stop();
for (var _local3 in this[_local5][_local4]) {
stop_list.push(this[_local5][_local4][_local3]);
this[_local5][_local4][_local3].stop();
for (var _local2 in this[_local5][_local4][_local3]) {
stop_list.push(this[_local5][_local4][_local3][_local2]);
this[_local5][_local4][_local3][_local2].stop();
}
}
}
}
}
function startMoving() {
for (var _local2 in stop_list) {
stop_list[_local2].play();
}
stop_list = null;
}
function followTarget() {
var _local2 = distance2D(target_clip);
var _local3 = __get__posZ() - (target_clip.__get__posZ() + 700);
var _local4 = 1 - (2 * (__get__posX() > target_clip.__get__posX()));
var _local5 = 1 - (2 * (__get__posY() > target_clip.__get__posY()));
accelerateX((_local4 * _local2) / 600);
accelerateY((_local5 * _local2) / 600);
accelerateZ((-_local3) / 70);
}
function attack() {
var _local2 = Math.ceil(Math.random() * 3) + 1;
gotoAndStop(_local2);
}
function fireEnergyBall() {
_parent.objects[_parent.objects.length] = _parent.attachMovie("energy_ball", "eball" + _parent.objects.length, _parent.getNextHighestDepth()).launch(this, 80, -10);
}
function getShot(p_hittest) {
var _local2 = 1;
while (_local2 < 5) {
var _local3 = attack_clip["chainout" + _local2];
if (_local3.targ.hitTest(p_hittest)) {
_local3.gotoAndStop(28);
targs_hit[_local2 - 1] = true;
} else if (_local3.chain.targ.hitTest(p_hittest)) {
_local3.chain.gotoAndStop(11);
targs_hit[_local2 - 1] = true;
} else if (miss._currentframe == 1) {
miss.play();
}
if (((targs_hit[0] && (targs_hit[1])) && (targs_hit[2])) && (targs_hit[3])) {
attack_clip.nose.gotoAndStop(3);
}
if ((attack_clip.nose._currentframe == 3) && (attack_clip.nose.hitTest(p_hittest))) {
targs_hit = [false, false, false, false];
gotoAndStop(1);
getHurt();
}
_local2++;
}
}
function getHurt() {
redOut();
health = health - 20;
gotoAndStop(6);
if (health <= 0) {
die();
}
}
function die() {
gotoAndStop(5);
}
function redOut() {
if (!redded_out) {
color.setTransform(red);
redded_out = true;
}
}
function unRed() {
color.setTransform(normal);
redded_out = false;
}
function moveX() {
pos_x = pos_x + speed_x;
if (speed_x > 20) {
speed_x = 20;
} else if (speed_x < -20) {
speed_x = -20;
}
}
function moveY() {
pos_y = pos_y + speed_y;
if (speed_y > 20) {
speed_y = 20;
} else if (speed_y < -20) {
speed_y = -20;
}
}
function moveZ() {
pos_z = pos_z + speed_z;
}
function accelerateX(p_a) {
speed_x = speed_x + p_a;
speed_x = speed_x - (speed_x * air_resistance_factor_xy);
}
function accelerateY(p_a) {
speed_y = speed_y + p_a;
speed_y = speed_y - (speed_y * air_resistance_factor_xy);
}
function accelerateZ(p_a) {
speed_z = speed_z + p_a;
speed_z = speed_z - (speed_z * air_resistance_factor);
}
var speed_x = 0;
var speed_y = 0;
var speed_z = 0;
var air_resistance_factor = 0.4;
var air_resistance_factor_xy = 0.05;
var stop_list = null;
var targs_hit = [false, false, false, false];
var fire_left = true;
var has_missiles = false;
var health = 100;
var redded_out = false;
var red = {ra:100, rb:255, ga:100, gb:0, ba:100, bb:0, aa:100, ab:255};
var normal = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
}
Symbol 1525 MovieClip [__Packages.AmmoBox] Frame 0
class AmmoBox extends Position
{
var target_clip, _parent, onEnterFrame, distance3D;
function AmmoBox () {
super();
target_clip = _parent.player;
onEnterFrame = function () {
if (!_global.game_paused) {
if (this.render_z < -200) {
this.removeMovieClip();
}
if (this.checkTarget() && (this._currentframe == 1)) {
this._parent.player.increaseAmmo();
this.gotoAndStop(2);
}
}
};
}
function checkTarget() {
return(distance3D(target_clip) < range);
}
var range = 80;
}
Symbol 1526 MovieClip [__Packages.Barrel] Frame 0
class Barrel extends Position
{
var accel_y, side_x, __set__posX, __set__posY, __set__posZ, target_clip, _parent, onEnterFrame, drawToScreen, distance3D, pos_x, pos_y, pos_z;
function Barrel () {
super();
accel_y = Math.random();
speed_y = -15 + (Math.random() * 10);
side_x = Math.random() - 0.5;
}
function launch(p_launcher, p_x_diff) {
__set__posX(p_launcher.__get__posX() + p_x_diff);
__set__posY(p_launcher.__get__posY() - 100);
__set__posZ(p_launcher.posZ);
var _local4 = p_launcher._x - 275;
speed_x = ((-_local4) / 8) + ((side_x * p_x_diff) / 10);
target_clip = _parent.player;
onEnterFrame = function () {
if (!_global.game_paused) {
this.accelerateY(0.5 + this.accel_y);
this.moveX();
this.moveY();
this.moveZ();
if (this.checkTarget()) {
this.target_clip.getBarreled();
}
if (this.render_z < -150) {
this.removeMovieClip();
}
}
};
drawToScreen();
return(this);
}
function checkTarget() {
return(distance3D(target_clip) < range);
}
function moveX() {
pos_x = pos_x + speed_x;
}
function moveY() {
pos_y = pos_y + speed_y;
}
function moveZ() {
pos_z = pos_z + speed_z;
}
function accelerateX(p_a) {
speed_x = speed_x + p_a;
speed_x = speed_x - (speed_x * air_resistance_factor);
}
function accelerateY(p_a) {
speed_y = speed_y + p_a;
speed_y = speed_y - (speed_y * air_resistance_factor);
}
function accelerateZ(p_a) {
speed_z = speed_z + p_a;
}
var speed_x = 0;
var speed_y = -10;
var speed_z = 0;
var air_resistance_factor = 0.05;
var range = 70;
var missile = true;
}
Symbol 1527 MovieClip [__Packages.TargetPosition] Frame 0
class TargetPosition extends Position
{
var color;
function TargetPosition () {
super();
color = new Color(this);
}
function getShot() {
if (!whited_out) {
color.setTransform(white);
whited_out = true;
} else {
color.setTransform(normal);
whited_out = false;
}
}
function unWhite() {
color.setTransform(normal);
whited_out = false;
}
var whited_out = false;
var white = {ra:100, rb:255, ga:100, gb:255, ba:100, bb:255, aa:100, ab:0};
var normal = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
}
Symbol 1528 MovieClip [__Packages.Missile] Frame 0
class Missile extends TargetPosition
{
var __set__posX, __set__posY, __set__posZ, target_clip, _parent, onEnterFrame, drawToScreen, distance2D, __get__posX, __get__posY, distance3D, pos_x, pos_y, pos_z;
function Missile () {
super();
}
function launch(p_launcher, p_target_clip, p_range, p_speed, p_air_resistance_factor) {
__set__posX(p_launcher.posX);
__set__posY(p_launcher.__get__posY() + 60);
__set__posZ(p_launcher.__get__posZ() + 30);
target_clip = p_target_clip;
range = p_range;
if (p_speed != undefined) {
speed_z = p_speed;
}
if (p_air_resistance_factor != undefined) {
air_resistance_factor = p_air_resistance_factor;
}
if (target_clip == _parent.player) {
speed_direction = -1;
} else {
home_ratio = 20;
}
onEnterFrame = function () {
if (!_global.game_paused) {
if (!this.exploded) {
this.accelerateZ(0.2 * this.speed_direction);
this.homeIn();
this.moveX();
this.moveY();
this.moveZ();
if ((this.render_z < -200) || (this.render_z > Position.draw_distance)) {
EnemyAI.missiles_out--;
this.removeMovieClip();
}
var _local3 = this._x - 275;
var _local4 = this._y - 200;
var _local5 = Math.ceil(Math.sqrt((_local3 * _local3) + (_local4 * _local4)) / 50);
this.gotoAndStop(_local5);
this._rotation = (180 * this.angleToCamera()) / Math.PI;
if (this.checkTarget()) {
this.target_clip.getMissiled();
this.exploded = true;
if (this.target_clip == this._parent.player) {
EnemyAI.missiles_out--;
}
this._rotation = 0;
this.gotoAndStop(11);
}
}
}
};
drawToScreen();
}
function homeIn() {
var _local2 = distance2D(target_clip);
var _local3 = 1 - (2 * (__get__posX() > target_clip.__get__posX()));
var _local4 = 1 - (2 * (__get__posY() > target_clip.__get__posY()));
accelerateX((_local3 * _local2) / home_ratio);
accelerateY((_local4 * _local2) / home_ratio);
}
function checkTarget() {
return(distance3D(target_clip) < range);
}
function moveX() {
pos_x = pos_x + speed_x;
}
function moveY() {
pos_y = pos_y + speed_y;
}
function moveZ() {
pos_z = pos_z + speed_z;
}
function accelerateX(p_a) {
speed_x = speed_x + p_a;
speed_x = speed_x - (speed_x * air_resistance_factor);
}
function accelerateY(p_a) {
speed_y = speed_y + p_a;
speed_y = speed_y - (speed_y * air_resistance_factor);
}
function accelerateZ(p_a) {
speed_z = speed_z + p_a;
}
var range = 40;
var exploded = false;
var speed_x = 0;
var speed_y = 0;
var speed_z = 0;
var speed_direction = 1;
var air_resistance_factor = 0.05;
var home_ratio = 70;
var missile = true;
}
Symbol 1529 MovieClip [__Packages.EnemyAI] Frame 0
class EnemyAI extends TargetPosition
{
var fire_count, extra_z, extra_x, extra_y, target_clip, _parent, onEnterFrame, blast_left, blast_right, distance2D, __get__posZ, __get__posX, __get__posY, whited_out, color, white, unWhite, gotoAndStop, pos_x, pos_y, pos_z;
function EnemyAI () {
super();
fire_count = Math.random() * 5;
extra_z = Math.random() * 200;
extra_x = (Math.random() * 600) - 300;
extra_y = (Math.random() * 600) - 300;
target_clip = _parent.player;
onEnterFrame = function () {
if ((!_global.game_paused) && (this._parent == _root.airspace)) {
if ((this._x > 0) && (this._x < 550)) {
if (this.whited_out) {
this.unWhite();
this.whited_out = null;
} else if (this.whited_out == null) {
this.whited_out = false;
}
this.fireCannon();
if ((Math.random() < 0.015) && (this.has_missiles)) {
this.fireMissile();
}
this.followTarget();
this.keepApart();
this.moveX();
this.moveY();
this.moveZ();
}
}
};
}
function fireCannon() {
if ((fire_count++) > 5) {
fire_count = 0;
if (fire_left) {
blast_left._visible = true;
blast_left.gotoAndPlay(2);
} else {
blast_right._visible = true;
blast_right.gotoAndPlay(2);
}
fire_left = !fire_left;
shootCannon();
} else {
blast_left.gotoAndStop(1);
blast_right.gotoAndStop(1);
}
}
function shootCannon() {
var _local5 = distance2D(target_clip);
var _local2 = __get__posZ() - target_clip.__get__posZ();
var _local3 = (60 / _local5) * (600 / _local2);
var _local4 = Math.random() * _local3;
if (_local4 > 0.3) {
target_clip.getShot();
}
}
function fireMissile() {
if (missiles_out < 4) {
missiles_out++;
var _local2 = _parent.attachMovie("enemy_missile", "missile" + _parent.objects.length, -1000 + _parent.objects.length);
_local2.launch(this, target_clip, 50, speed_z);
_parent.addObject(_local2);
}
}
function followTarget() {
var _local2 = distance2D(target_clip);
var _local3 = __get__posZ() - ((target_clip.__get__posZ() + 800) + extra_z);
var _local4 = 1 - (2 * (__get__posX() > target_clip.__get__posX()));
var _local5 = 1 - (2 * (__get__posY() > target_clip.__get__posY()));
accelerateX((_local4 * (_local2 + extra_x)) / 200);
accelerateY((_local5 * (_local2 + extra_y)) / 200);
accelerateZ((-_local3) / 70);
}
function keepApart() {
for (var _local7 in _parent.enemies) {
if (((_parent.enemies[_local7] != this) && (_parent.enemies[_local7]._x > 0)) && (_parent.enemies[_local7]._x < 550)) {
var _local4 = distance2D(_parent.enemies[_local7]);
var _local5 = 1 - (2 * (__get__posX() < _parent.enemies[_local7].posX));
var _local6 = 1 - (2 * (__get__posY() < _parent.enemies[_local7].posY));
var _local3 = (_local5 * 150) / _local4;
var _local2 = (_local6 * 150) / _local4;
accelerateX((_local3 * _local3) * _local3);
accelerateY((_local2 * _local2) * _local2);
}
}
}
function getMissiled() {
whiteOut();
reduceHealth(70);
}
function whiteOut() {
if (whited_out == false) {
color.setTransform(white);
whited_out = true;
}
}
function getShot() {
whiteOut();
reduceHealth(5.5);
}
function reduceHealth(p_ammount) {
health = health - p_ammount;
if (health <= 0) {
die();
}
}
function die() {
_parent.goodComment();
_parent.enemies_killed++;
unWhite();
getShot = function () {
};
getMissiled = function () {
};
onEnterFrame = function () {
if (!_global.game_paused) {
if ((this._x > 0) && (this._x < 550)) {
this.moveX();
this.moveY();
this.moveZ();
}
}
};
gotoAndStop(2);
}
function moveX() {
pos_x = pos_x + speed_x;
if (speed_x > 20) {
speed_x = 20;
} else if (speed_x < -20) {
speed_x = -20;
}
}
function moveY() {
pos_y = pos_y + speed_y;
if (speed_y > 20) {
speed_y = 20;
} else if (speed_y < -20) {
speed_y = -20;
}
}
function moveZ() {
pos_z = pos_z + speed_z;
}
function accelerateX(p_a) {
speed_x = speed_x + p_a;
speed_x = speed_x - (speed_x * air_resistance_factor_xy);
}
function accelerateY(p_a) {
speed_y = speed_y + p_a;
speed_y = speed_y - (speed_y * air_resistance_factor_xy);
}
function accelerateZ(p_a) {
speed_z = speed_z + p_a;
speed_z = speed_z - (speed_z * air_resistance_factor);
}
var speed_x = 0;
var speed_y = 0;
var speed_z = 0;
var air_resistance_factor = 0.4;
var air_resistance_factor_xy = 0.05;
var fire_left = true;
var has_missiles = false;
static var missiles_out = 0;
var health = 100;
}
Symbol 1530 MovieClip [__Packages.EnergyBall] Frame 0
class EnergyBall extends Position
{
var target_clip, _parent, __set__posX, __set__posY, __set__posZ, onEnterFrame, distance3D, pos_z;
function EnergyBall () {
super();
target_clip = _parent.player;
}
function launch(p_launcher, p_range, p_speed) {
__set__posX(p_launcher.posX);
__set__posY(p_launcher.__get__posY() - 50);
__set__posZ(p_launcher.__get__posZ() + 20);
range = p_range;
speed_z = p_speed;
onEnterFrame = function () {
if (!_global.game_paused) {
this.moveZ();
if (this.checkTarget()) {
this.target_clip.getEnergyBalled();
}
if (this.render_z < -200) {
this.removeMovieClip();
}
}
};
return(this);
}
function checkTarget() {
return(distance3D(target_clip) < range);
}
function moveZ() {
pos_z = pos_z + speed_z;
}
var speed_z = 0;
var range = 40;
var missile = true;
}
Symbol 1531 MovieClip [__Packages.HealthBox] Frame 0
class HealthBox extends Position
{
var target_clip, _parent, onEnterFrame, distance3D;
function HealthBox () {
super();
target_clip = _parent.player;
onEnterFrame = function () {
if (!_global.game_paused) {
if (this.render_z < -200) {
this.removeMovieClip();
}
if (this.checkTarget() && (this._currentframe == 1)) {
this._parent.player.increaseHealth(50);
this.gotoAndStop(2);
}
}
};
}
function checkTarget() {
return(distance3D(target_clip) < range);
}
var range = 80;
}
Symbol 1532 MovieClip [__Packages.Particle] Frame 0
class Particle extends Position
{
var screenPosition, render, render_z, posZ, __set__posX, __set__posY, __get__posX, posX, __get__posY, posY;
function Particle () {
super();
}
function drawToScreen() {
screenPosition();
render();
if (render_z < -200) {
posZ = posZ + 200;
__set__posX((Position.camera_x + Math.round(Math.random() * 250)) - 125);
__set__posY((Position.camera_y + Math.round(Math.random() * 250)) - 175);
}
if (__get__posX() < (Position.camera_x - 125)) {
posX = posX + 250;
} else if (__get__posX() > (Position.camera_x + 125)) {
posX = posX - 250;
}
if (__get__posY() < (Position.camera_y - 175)) {
posY = posY + 250;
} else if (__get__posY() > (Position.camera_y + 75)) {
posY = posY - 250;
}
}
}
Symbol 1533 MovieClip [__Packages.Player] Frame 0
class Player extends Position
{
static var crosshair;
var color, _parent, _x, _y, drawToScreen, cameraFollow, current_target, render_z, _rotation, _currentframe, gotoAndStop, bubble, getDepth, pos_y, pos_x, pos_z;
function Player () {
super();
Position.camera_x = 0;
Position.camera_y = 0;
Position.camera_z = 0;
_global.game_paused = false;
_global.control_type = 1;
color = new Color(this);
crosshair = _parent.attachMovie("crosshair", "crosshair", _parent.getNextHighestDepth());
_x = Position.center_x;
_y = Position.center_y + Position.center_y_offset;
}
function usePlayer() {
if (health > 0) {
useControls();
} else {
dying();
}
drawToScreen();
cameraFollow(this);
if (health <= 0) {
Position.camera_y = dead_y;
}
var _local5 = false;
var _local4 = 0;
while (_local4 < _parent.enemies.length) {
if (_parent.enemies[_local4].hitTest(crosshair.fill)) {
_local5 = true;
current_target = _parent.enemies[_local4];
if (_parent.enemies[_local4].attack_clip.tonsil.hitTest(crosshair.fill)) {
current_target = _parent.enemies[_local4].tonsil_target;
}
}
_local4++;
}
if (zed) {
if (_local5) {
target_count++;
crosshair.gotoAndStop(2);
} else {
target_count = 0;
crosshair.gotoAndStop(1);
}
} else if (_local5 && (target_count > 5)) {
fireMissile(current_target);
target_count = 0;
crosshair.gotoAndStop(1);
} else {
target_count = 0;
crosshair.gotoAndStop(1);
}
moveCrosshair();
fireCannon();
if (whited_out) {
whited_out = null;
} else if (whited_out == null) {
unWhite();
}
if (space) {
if (!space_down) {
_global.game_paused = true;
_root.hud.play();
}
} else {
space_down = false;
}
if (render_z > 500) {
_root.play();
}
}
function checkInput() {
if (!tutorial) {
if (_global.control_type == 1) {
left = Key.isDown(37);
right = Key.isDown(39);
if (_global.updown == "reverse") {
up = Key.isDown(38);
down = Key.isDown(40);
} else {
up = Key.isDown(40);
down = Key.isDown(38);
}
ex = Key.isDown(88);
zed = Key.isDown(90);
} else if (_global.control_type == 2) {
left = Key.isDown(65);
right = Key.isDown(68);
if (_global.updown == "reverse") {
up = Key.isDown(87);
down = Key.isDown(83);
} else {
up = Key.isDown(83);
down = Key.isDown(87);
}
ex = Key.isDown(78);
zed = Key.isDown(77);
}
space = Key.isDown(32);
} else {
speed_z = 0;
}
}
function useControls() {
checkInput();
if (left) {
accelerateX(-acceleration);
} else if (right) {
accelerateX(acceleration);
} else {
accelerateX(speed_x * (air_resistance_factor * 0.6));
}
if (up) {
accelerateY(acceleration);
} else if (down) {
accelerateY(-acceleration);
} else {
accelerateY(speed_y * (air_resistance_factor * 0.6));
}
if (left) {
if ((_rotation - 8) > -50) {
_rotation = _rotation - 8;
} else {
_rotation = -50;
}
} else if (right) {
if ((_rotation + 8) < 50) {
_rotation = _rotation + 8;
} else {
_rotation = 50;
}
} else {
_rotation = _rotation - (_rotation / 6);
}
if (up) {
if (_currentframe > 1) {
gotoAndStop(_currentframe - 1);
}
} else if (down) {
if (_currentframe < 20) {
gotoAndStop(_currentframe + 1);
}
} else {
if (_currentframe > 10) {
gotoAndStop(_currentframe - 1);
} else if (_currentframe < 10) {
gotoAndStop(_currentframe + 1);
}
bubble.blue.gotoAndStop(2);
}
if (left) {
bubble.blue.gotoAndStop(3);
} else if (right) {
bubble.blue.gotoAndStop(4);
} else if (up) {
bubble.blue.gotoAndStop(6);
} else if (down) {
bubble.blue.gotoAndStop(5);
} else {
bubble.blue.gotoAndStop(2);
}
bubble.gotoAndStop(_currentframe);
moveX();
moveY();
moveZ();
}
function moveCrosshair() {
crosshair._x = _x + _rotation;
crosshair._y = (_y - 70) - (3 * (_currentframe - 10));
crosshair.swapDepths(getDepth() - 1);
var _local3 = crosshair._x - _x;
var _local2 = _y - crosshair._y;
crosshair.gunfire._rotation = (180 * Math.atan2(_local3, _local2)) / Math.PI;
crosshair.gunfire._yscale = _local2;
}
function fireCannon() {
if (ex) {
crosshair.gunfire.gotoAndPlay(2);
for (var _local2 in _parent.enemies) {
if (_parent.enemies[_local2].hitTest(crosshair.fill)) {
_parent.enemies[_local2].getShot(crosshair.fill);
} else {
_parent.enemies[_local2].unWhite();
}
}
} else if (crosshair.gunfire._currentframe != 1) {
for (var _local2 in _parent.enemies) {
_parent.enemies[_local2].unWhite();
}
crosshair.gunfire.gotoAndStop(1);
}
}
function fireMissile(p_target) {
if (missiles_left > 0) {
missiles_left--;
var _local2 = _parent.attachMovie("player_missile", "missile" + _parent.objects.length, -1000 + _parent.objects.length);
_local2.launch(this, p_target, 70, speed_z + 10);
_parent.addObject(_local2);
}
}
function getShot() {
whiteOut();
reduceHealth(1);
}
function getMissiled() {
_parent.badComment();
whiteOut();
reduceHealth(4);
}
function getEnergyBalled() {
_parent.badComment();
whiteOut();
reduceHealth(3);
}
function getObstacled() {
_parent.badComment();
whiteOut();
reduceHealth(1);
}
function getBitten() {
_parent.badComment();
whiteOut();
reduceHealth(10);
}
function getBarreled() {
_parent.badComment();
whiteOut();
reduceHealth(1);
}
function getRocked() {
_parent.badComment();
whiteOut();
reduceHealth(1);
}
function getLasered() {
_parent.badComment();
whiteOut();
reduceHealth(8);
}
function whiteOut() {
if (!whited_out) {
color.setTransform(white);
whited_out = true;
}
}
function increaseHealth(p_ammount) {
health = health + p_ammount;
if (health > 100) {
health = 100;
}
updateHealthBar();
}
function increaseAmmo() {
missiles_left = missiles_left + 5;
if (missiles_left > 99) {
missiles_left = 99;
}
}
function reduceHealth(p_ammount) {
health = health - p_ammount;
if (health <= 0) {
die();
}
updateHealthBar();
}
function updateHealthBar() {
var _local3 = 101 - Math.ceil(health);
_root.hud.elements.health_bar.gotoAndStop(_local3);
}
function unWhite() {
color.setTransform(normal);
whited_out = false;
}
function die() {
bubble.gotoAndStop(10);
bubble.blue.gotoAndStop(2);
gotoAndStop(21);
_rotation = 0;
speed_x = 0;
speed_y = 5;
dead_y = pos_y;
die = function () {
};
}
function dying() {
moveY();
moveZ();
if (_y > 500) {
_root.fadeo.gotoAndPlay(1);
_root.gotoAndPlay(_root._currentframe - 1);
}
}
function moveX() {
pos_x = pos_x + speed_x;
if (pos_x > 10000) {
_parent.shiftToX(-10000);
} else if (pos_x < -10000) {
_parent.shiftToX(-10000);
}
}
function moveY() {
pos_y = pos_y + speed_y;
if (pos_y > 10000) {
_parent.shiftToY(-10000);
} else if (pos_y < -10000) {
_parent.shiftToY(10000);
}
}
function moveZ() {
pos_z = pos_z + speed_z;
}
function accelerateX(p_a) {
speed_x = speed_x + p_a;
speed_x = speed_x - (speed_x * air_resistance_factor);
}
function accelerateY(p_a) {
speed_y = speed_y + p_a;
speed_y = speed_y - (speed_y * air_resistance_factor);
}
function accelerateZ(p_a) {
speed_z = speed_z + p_a;
}
var left = false;
var right = false;
var up = false;
var down = false;
var space = false;
var ex = false;
var zed = false;
var space_down = false;
var target_count = 0;
var tutorial = false;
var speed_x = 0;
var speed_y = 0;
var speed_z = 10;
static var air_resistance_factor = 0.12;
static var acceleration = 2.5;
static var missiles_left = 5;
var health = 100;
var whited_out = false;
var white = {ra:100, rb:255, ga:100, gb:255, ba:100, bb:255, aa:100, ab:255};
var normal = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
var dead_y = 0;
}
Symbol 1534 MovieClip [__Packages.Ground] Frame 0
class Ground extends MovieClip
{
function Ground (p_ground, p_mc, p_y) {
super();
p_mc.createEmptyMovieClip("ground_clip", -10);
var _local4 = 0;
while (_local4 < 5) {
clips[_local4] = p_mc.ground_clip.attachMovie(p_ground, "ground" + _local4, p_mc.ground_clip.getNextHighestDepth());
clips[_local4].angle = _local4 * 20;
clips[_local4]._x = 275;
clips[_local4].y = p_y;
clips[_local4].cloud._x = (Math.random() * 200) - 100;
clips[_local4].onEnterFrame = function () {
if (!_global.game_paused) {
var _local3 = ((this._y + this._parent._y) + this._parent._parent._y) + this._parent._parent._parent._y;
if (_local3 > 400) {
this._visible = false;
} else {
this._visible = true;
}
this.angle = this.angle + Ground.speed;
if (this.angle > 90) {
this.angle = this.angle - 100;
}
this._y = this.y - (100 * Math.cos((Math.PI * this.angle) / 180));
this._xscale = 100 + (this._y - (this.y - 80));
this.swapDepths((10 * this.angle) + 50);
if (this.angle < 60) {
this._alpha = (this.angle + 10) * 1.43;
}
}
};
_local4++;
}
}
var clips = [];
static var speed = 2;
}
Symbol 1535 MovieClip [__Packages.PlanetAI] Frame 0
class PlanetAI extends Position
{
var orbit_clips, fire_count, color, target_clip, _parent, onEnterFrame, distance2D, __get__posZ, __get__posX, __get__posY, miss, gotoAndPlay, laser_color, pos_x, pos_y, pos_z;
function PlanetAI () {
super();
orbit_clips = [1, 2, 3, 2, 4, 3, 1, 2];
fire_count = 0;
color = new Color(this);
target_clip = _parent.player;
onEnterFrame = function () {
if (!_global.game_paused) {
this.play();
var _local3 = 0;
while (_local3 < 8) {
this["orbit" + (_local3 + 1)].laser.play();
_local3++;
}
if (this.redded_out) {
this.unRed();
this.redded_out = null;
} else if (this.redded_out == null) {
this.redded_out = false;
}
if (this.laser_redded_out) {
this.lUnRed();
this.laser_redded_out = null;
} else if (this.laser_redded_out == null) {
this.laser_redded_out = false;
}
if (((this.fire_count++) > 3) && (this.render_z < 650)) {
this.fire_count = 0;
this.fireRocks();
}
this.followTarget();
this.moveX();
this.moveY();
this.moveZ();
} else {
this.stop();
var _local3 = 0;
while (_local3 < 8) {
this["orbit" + (_local3 + 1)].laser.stop();
_local3++;
}
}
};
}
function followTarget() {
var _local2 = distance2D(target_clip);
var _local3 = __get__posZ() - (target_clip.__get__posZ() + keep_distance);
var _local4 = 1 - (2 * (__get__posX() > target_clip.__get__posX()));
var _local5 = 1 - (2 * (__get__posY() > target_clip.__get__posY()));
accelerateX((_local4 * _local2) / follow_ratio);
accelerateY((_local5 * _local2) / follow_ratio);
accelerateZ((-_local3) / 70);
}
function fireRocks() {
_parent.objects[_parent.objects.length] = _parent.attachMovie("rock", "rock" + _parent.objects.length, _parent.getNextHighestDepth()).launch(this);
}
function getShot(p_hittest) {
if ((laser_frame > 54) && (laser_out)) {
var _local3 = false;
var _local2 = 0;
while (_local2 < 8) {
if (this["orbit" + (_local2 + 1)].laser.laser_target.hitTest(p_hittest)) {
_local3 = true;
}
_local2++;
}
if (_local3) {
lRedOut();
laser_health = laser_health - 3;
if (laser_health <= 0) {
getHurt();
}
} else if (miss._currentframe == 1) {
miss.play();
}
} else if (miss._currentframe == 1) {
miss.play();
}
}
function getHurt() {
redOut();
health = health - 20;
var _local2 = 0;
while (_local2 < 8) {
this["orbit" + (_local2 + 1)].laser.gotoAndPlay(130);
_local2++;
}
if (health <= 0) {
die();
}
}
function die() {
gotoAndPlay(27);
}
function redOut() {
if (redded_out == false) {
color.setTransform(red);
redded_out = true;
}
}
function unRed() {
color.setTransform(normal);
redded_out = false;
}
function lRedOut() {
if (laser_redded_out == false) {
laser_color.setTransform(red);
laser_redded_out = true;
}
}
function lUnRed() {
laser_color.setTransform(normal);
laser_redded_out = false;
}
function updateOrbits() {
lUnRed();
var _local2 = 0;
while (_local2 < 8) {
this["orbit" + (_local2 + 1)].gotoAndStop(orbit_clips[_local2]);
if (orbit_clips[_local2] == 5) {
laser_color = new Color(this["orbit" + (_local2 + 1)].laser);
}
_local2++;
}
}
function nextOrbit() {
if (orbit_clips[7] == 5) {
laser_out = false;
}
var _local2 = 7;
while (_local2 >= 0) {
var _local3 = _local2 + 1;
orbit_clips[_local3] = orbit_clips[_local2];
_local2--;
}
orbit_clips[0] = Math.ceil(Math.random() * 4);
if ((Math.random() < 0.3) && (!laser_out)) {
laser_out = true;
laser_frame = 0;
laser_health = 100;
orbit_clips[0] = 5;
}
updateOrbits();
}
function moveX() {
pos_x = pos_x + speed_x;
if (speed_x > 20) {
speed_x = 20;
} else if (speed_x < -20) {
speed_x = -20;
}
}
function moveY() {
pos_y = pos_y + speed_y;
if (speed_y > 20) {
speed_y = 20;
} else if (speed_y < -20) {
speed_y = -20;
}
}
function moveZ() {
pos_z = pos_z + speed_z;
}
function accelerateX(p_a) {
speed_x = speed_x + p_a;
speed_x = speed_x - (speed_x * air_resistance_factor_xy);
}
function accelerateY(p_a) {
speed_y = speed_y + p_a;
speed_y = speed_y - (speed_y * air_resistance_factor_xy);
}
function accelerateZ(p_a) {
speed_z = speed_z + p_a;
speed_z = speed_z - (speed_z * air_resistance_factor);
}
var speed_x = 0;
var speed_y = 0;
var speed_z = 0;
var air_resistance_factor = 0.4;
var air_resistance_factor_xy = 0.05;
var keep_distance = 1000;
var follow_ratio = 600;
var fire_left = true;
var laser_frame = 0;
var laser_out = false;
var health = 100;
var redded_out = false;
var laser_health = 100;
var laser_redded_out = false;
var red = {ra:100, rb:255, ga:100, gb:0, ba:100, bb:0, aa:100, ab:255};
var normal = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
}
Symbol 1536 MovieClip [__Packages.Rock] Frame 0
class Rock extends Position
{
var gotoAndStop, speed_x, speed_y, __set__posX, __set__posY, __set__posZ, target_clip, _parent, onEnterFrame, distance3D, screenPosition, render_z, _width, render_x, _height, render_y, offScreen, _alpha, render, pos_x, pos_y, pos_z;
function Rock () {
super();
gotoAndStop(Math.ceil(Math.random() * 6));
speed_x = 4 + (Math.random() * 15);
speed_y = -8 + (Math.random() * 15);
}
function launch(p_launcher) {
__set__posX(p_launcher.__get__posX() - 400);
__set__posY((p_launcher.__get__posY() + (Math.random() * 50)) - 25);
__set__posZ(p_launcher.posZ);
var _local4 = p_launcher._y - 230;
speed_y = speed_y - (_local4 / 5);
var _local5 = p_launcher._x - 275;
speed_x = speed_x - (_local5 / 5);
target_clip = _parent.player;
onEnterFrame = function () {
if (!_global.game_paused) {
this._rotation = this._rotation + 5;
this.moveX();
this.moveY();
this.moveZ();
if (this.checkTarget()) {
this.target_clip.getRocked();
}
if (((((this.render_z < -150) || (this._y < -50)) || (this._y > 450)) || (this._x < -50)) || (this._x > 600)) {
this.removeMovieClip();
}
}
};
drawToScreen();
return(this);
}
function checkTarget() {
return(distance3D(target_clip) < range);
}
function drawToScreen(p_player) {
screenPosition(p_player);
if (((((render_z >= -300) && (render_x > (-50 - _width))) && (render_x < (600 + _width))) && (render_y > (-50 - _height))) && (render_y < (450 + _height))) {
if (render_z > Position.draw_distance) {
offScreen();
} else {
if (render_z > (Position.draw_distance - 200)) {
_alpha = 100 - (((render_z - Position.draw_distance) + 200) / 2);
}
render();
}
} else {
offScreen();
}
}
function moveX() {
pos_x = pos_x + speed_x;
}
function moveY() {
pos_y = pos_y + speed_y;
}
function moveZ() {
pos_z = pos_z + speed_z;
}
function accelerateX(p_a) {
speed_x = speed_x + p_a;
speed_x = speed_x - (speed_x * air_resistance_factor);
}
function accelerateY(p_a) {
speed_y = speed_y + p_a;
speed_y = speed_y - (speed_y * air_resistance_factor);
}
function accelerateZ(p_a) {
speed_z = speed_z + p_a;
}
var speed_z = -5;
var air_resistance_factor = 0.05;
var range = 80;
var health = 100;
}
Symbol 1537 MovieClip [__Packages.WhaleAI] Frame 0
class WhaleAI extends Position
{
var _parent, color, target_clip, onEnterFrame, distance2D, __get__posZ, __get__posX, __get__posY, gotoAndStop, attack_clip, miss, tonsil_color, pos_x, pos_y, pos_z;
function WhaleAI () {
super();
_parent.attachMovie("blank_position", "tonsil_target", _parent.getNextHighestDepth());
_parent.objects.push(_parent.tonsil_target);
_parent.tonsil_target.getMissiled = function () {
this._parent.enemy0.tonsil_health = this._parent.enemy0.tonsil_health - 30;
if (this._parent.enemy0.tonsil_health <= 0) {
this._parent.enemy0.killTonsil();
}
};
color = new Color(this);
target_clip = _parent.player;
onEnterFrame = function () {
if (!_global.game_paused) {
if (this.stop_list != null) {
this.startMoving();
this.stop();
}
if (this.redded_out) {
this.redded_out = null;
} else if (this.redded_out == null) {
this.unRed();
}
if (this.tonsil_redded) {
this.tUnRed();
this.tonsil_redded = null;
} else if (this.tonsil_redded == null) {
this.tonsil_redded = false;
}
this.followTarget();
if ((((Math.random() < 0.1) && (this._currentframe == 1)) && (this.render_z > 220)) && (this.render_z < 400)) {
this.tonsil_health = 100;
this.attack();
this.tonsil_color = new Color(this.attack_clip.tonsil);
}
this.moveX();
this.moveY();
this.moveZ();
this._parent.tonsil_target.posX = this.posX;
this._parent.tonsil_target.posY = this.posY + 20;
this._parent.tonsil_target.posZ = this.posZ;
} else if (this.stop_list == null) {
this.stopMoving();
}
};
}
function stopMoving() {
stop_list = [];
for (var _local5 in this) {
stop_list.push(this[_local5]);
this[_local5].stop();
for (var _local4 in this[_local5]) {
stop_list.push(this[_local5][_local4]);
this[_local5][_local4].stop();
for (var _local3 in this[_local5][_local4]) {
stop_list.push(this[_local5][_local4][_local3]);
this[_local5][_local4][_local3].stop();
for (var _local2 in this[_local5][_local4][_local3]) {
stop_list.push(this[_local5][_local4][_local3][_local2]);
this[_local5][_local4][_local3][_local2].stop();
}
}
}
}
}
function startMoving() {
for (var _local2 in stop_list) {
stop_list[_local2].play();
}
stop_list = null;
}
function followTarget() {
var _local2 = distance2D(target_clip);
var _local3 = __get__posZ() - (target_clip.__get__posZ() + keep_distance);
var _local4 = 1 - (2 * (__get__posX() > target_clip.__get__posX()));
var _local5 = 1 - (2 * (__get__posY() > target_clip.__get__posY()));
accelerateX((_local4 * _local2) / follow_ratio);
accelerateY((_local5 * _local2) / follow_ratio);
accelerateZ((-_local3) / 70);
}
function attack() {
var _local2 = Math.random();
if (_local2 > 0.07) {
gotoAndStop(2);
} else {
gotoAndStop(3);
follow_ratio = 200;
}
}
function fireBarrels() {
_parent.objects[_parent.objects.length] = _parent.attachMovie("barrel", "barrel" + _parent.objects.length, _parent.getNextHighestDepth()).launch(this, 120);
_parent.objects[_parent.objects.length] = _parent.attachMovie("barrel", "barrel" + _parent.objects.length, _parent.getNextHighestDepth()).launch(this, -120);
}
function getShot(p_hittest) {
if (attack_clip.tonsil.hitTest(p_hittest)) {
tRedOut();
tonsil_health = tonsil_health - 10;
if (tonsil_health <= 0) {
killTonsil();
}
} else if (miss._currentframe == 1) {
miss.play();
}
}
function killTonsil() {
gotoAndStop(4);
keep_distance = 700;
follow_ratio = 600;
getHurt();
}
function getHurt() {
redOut();
health = health - 20;
if (health <= 0) {
die();
}
}
function die() {
gotoAndStop(5);
}
function redOut() {
if (redded_out == false) {
color.setTransform(red);
redded_out = true;
}
}
function unRed() {
color.setTransform(normal);
redded_out = false;
}
function tRedOut() {
if (tonsil_redded == false) {
tonsil_color.setTransform(red);
tonsil_redded = true;
}
}
function tUnRed() {
tonsil_color.setTransform(normal);
tonsil_redded = false;
}
function moveX() {
pos_x = pos_x + speed_x;
if (speed_x > 20) {
speed_x = 20;
} else if (speed_x < -20) {
speed_x = -20;
}
}
function moveY() {
pos_y = pos_y + speed_y;
if (speed_y > 20) {
speed_y = 20;
} else if (speed_y < -20) {
speed_y = -20;
}
}
function moveZ() {
pos_z = pos_z + speed_z;
}
function accelerateX(p_a) {
speed_x = speed_x + p_a;
speed_x = speed_x - (speed_x * air_resistance_factor_xy);
}
function accelerateY(p_a) {
speed_y = speed_y + p_a;
speed_y = speed_y - (speed_y * air_resistance_factor_xy);
}
function accelerateZ(p_a) {
speed_z = speed_z + p_a;
speed_z = speed_z - (speed_z * air_resistance_factor);
}
var speed_x = 0;
var speed_y = 0;
var speed_z = 0;
var air_resistance_factor = 0.4;
var air_resistance_factor_xy = 0.05;
var stop_list = null;
var tonsil_health = 100;
var keep_distance = 700;
var follow_ratio = 600;
var fire_left = true;
var has_missiles = false;
var health = 100;
var redded_out = false;
var tonsil_redded = false;
var red = {ra:100, rb:255, ga:100, gb:0, ba:100, bb:0, aa:100, ab:255};
var normal = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
}
Symbol 1538 MovieClip [__Packages.Obstacle] Frame 0
class Obstacle extends Position
{
var target_clip, _parent, onEnterFrame, distance3D, pos_z;
function Obstacle () {
super();
target_clip = _parent.player;
onEnterFrame = function () {
if (!_global.game_paused) {
this.moveZ();
if (this.render_z < -200) {
this.removeMovieClip();
}
if (this.checkTarget()) {
this._parent.player.getObstacled();
}
}
};
}
function checkTarget() {
return(distance3D(target_clip) < range);
}
function moveZ() {
pos_z = pos_z + speed_z;
}
var range = 70;
var speed_z = -10;
}
Symbol 1539 MovieClip [__Packages.AirSpace] Frame 0
class AirSpace extends MovieClip
{
var my_music_vol, my_sfx_vol, master_vol, onEnterFrame, player, current_layout, player_clip, attachMovie, getNextHighestDepth, comments;
function AirSpace () {
super();
EnemyAI.missiles_out = 0;
my_music_vol = new Sound(_root.music);
my_sfx_vol = new Sound(this);
master_vol = new Sound(_root);
onEnterFrame = function () {
if (this.count_to_comment >= 0) {
this.count_to_comment--;
}
this.my_music_vol.setVolume(_global.music_vol * 20);
this.my_sfx_vol.setVolume(_global.sfx_vol * 20);
if (!_global.game_paused) {
this.master_vol.setVolume(100);
if (_global.quality_set == "auto") {
this.timer_num = getTimer() - this.timer;
this.timer = getTimer();
if (this.timer_num < 46) {
this.time_count++;
} else if (this.timer_num > 52) {
this.time_count--;
} else {
this.time_count = 0;
}
if (this.time_count > 5) {
if (this._quality == "MEDIUM") {
this._quality = "HIGH";
} else if (this._quality == "LOW") {
this._quality = "MEDIUM";
}
this.time_count = 0;
} else if (this.time_count < -5) {
if (this._quality == "HIGH") {
this._quality = "MEDIUM";
} else if (this._quality == "MEDIUM") {
this._quality = "LOW";
}
this.time_count = 0;
}
}
if (this.pickups) {
this.addPickups();
this.addObstacles();
}
this.addEnemies();
this.drawAirSpace();
} else {
this.master_vol.setVolume(30);
}
};
}
function drawAirSpace() {
var _local2 = 0;
while (_local2 < enemies.length) {
if (enemies[_local2]._name != undefined) {
enemies[_local2].drawToScreen();
}
_local2++;
}
_local2 = 0;
while (_local2 < objects.length) {
if (objects[_local2]._name != undefined) {
objects[_local2].drawToScreen();
}
_local2++;
}
player.usePlayer();
}
function shiftToX(p_x) {
var _local2 = 0;
while (_local2 < enemies.length) {
enemies[_local2].posX = enemies[_local2].posX + p_x;
_local2++;
}
_local2 = 0;
while (_local2 < objects.length) {
objects[_local2].posX = objects[_local2].posX + p_x;
_local2++;
}
player.posX = player.posX + p_x;
Position.camera_x = Position.camera_x + p_x;
}
function shiftToY(p_y) {
var _local2 = 0;
while (_local2 < enemies.length) {
enemies[_local2].posY = enemies[_local2].posY + p_y;
_local2++;
}
_local2 = 0;
while (_local2 < objects.length) {
objects[_local2].posY = objects[_local2].posY + p_y;
_local2++;
}
player.posY = player.posY + p_y;
Position.camera_y = Position.camera_y + p_y;
}
function addLayout(p_layout_name, p_layout) {
layouts[p_layout_name] = p_layout;
}
function setLayout(p_layout_name) {
current_layout = layouts[p_layout_name];
emptyAirSpace();
populateAirSpace();
drawAirSpace();
}
function addObject(p_object) {
objects.push(p_object);
}
function emptyAirSpace() {
var _local2 = 0;
while (_local2 < enemies.length) {
enemies[_local2].removeMovieClip();
_local2++;
}
enemies = [];
}
function populateAirSpace() {
if (player_clip != current_layout.player_clip) {
player_clip = current_layout.player_clip;
attachMovie(current_layout.player_clip, "player", getNextHighestDepth());
}
var _local2 = 0;
while (_local2 < current_layout.enemies.length) {
var _local3 = current_layout.enemies[_local2];
if (_local3.pos_z < 3000) {
enemy_num++;
enemies[_local2] = attachMovie(_local3.enemy_clip, "enemy" + _local2, getNextHighestDepth());
enemies[_local2].posX = _local3.pos_x;
enemies[_local2].posY = _local3.pos_y;
enemies[_local2].posZ = _local3.pos_z;
}
_local2++;
}
if (particles) {
addParticles();
}
}
function addParticles() {
var _local3 = 0;
while (_local3 < 20) {
var _local2 = attachMovie("particle", "particle" + _local3, getNextHighestDepth());
objects.push(_local2);
_local2.posX = (player.posX + Math.round(Math.random() * 500)) - 250;
_local2.posY = (player.posY + Math.round(Math.random() * 500)) - 250;
_local2.posZ = player.posZ + Math.round(Math.random() * 200);
_local3++;
}
}
function addPickups() {
if (Math.random() < 0.015) {
if (Math.random() > 0.4) {
var _local2 = attachMovie("health", "health" + objects.length, getNextHighestDepth());
} else {
var _local2 = attachMovie("ammo", "ammo" + objects.length, getNextHighestDepth());
}
objects.push(_local2);
_local2.posX = (player.posX + Math.round(Math.random() * 1000)) - 500;
_local2.posY = (player.posY + Math.round(Math.random() * 1000)) - 500;
_local2.posZ = player.posZ + 2000;
}
}
function addObstacles() {
if (Math.random() < 0.009) {
if (obstacle_types.length > 0) {
if (Math.random() > 0.5) {
var _local2 = attachMovie(obstacle_types[0], "obstacle" + objects.length, getNextHighestDepth());
} else {
var _local2 = attachMovie(obstacle_types[1], "obstacle" + objects.length, getNextHighestDepth());
}
} else {
var _local2 = attachMovie("rock_obstacle", "obstacle" + objects.length, getNextHighestDepth());
_local2.gotoAndStop(Math.ceil(Math.random() * 6));
}
objects.push(_local2);
_local2.posX = (player.posX + Math.round(Math.random() * 1000)) - 500;
_local2.posY = (player.posY + Math.round(Math.random() * 1000)) - 500;
_local2.posZ = player.posZ + 2000;
}
}
function addEnemies() {
var _local2 = 0;
while (_local2 < current_layout.enemies.length) {
var _local3 = current_layout.enemies[_local2];
if ((_local3.pos_z <= (player.posZ + 3000)) && (_local3.pos_z > (player.posZ + 2990))) {
enemies[_local2] = attachMovie(_local3.enemy_clip, "enemy" + _local2, getNextHighestDepth());
enemies[_local2].posX = player.posX + _local3.pos_x;
enemies[_local2].posY = player.posY + _local3.pos_y;
enemies[_local2].posZ = _local3.pos_z;
enemy_num++;
}
_local2++;
}
}
function goodComment() {
if ((comments._currentframe == 1) && (count_to_comment <= 0)) {
if (Math.random() < 0.8) {
var _local2 = Math.floor(Math.random() * 6);
if (_local2 == last_comment) {
_local2++;
}
comments.gotoAndPlay(good[_local2]);
last_comment = _local2;
}
}
}
function badComment() {
if ((comments._currentframe == 1) && (count_to_comment <= 0)) {
if (Math.random() < 0.8) {
var _local2 = Math.floor(Math.random() * 6);
if (_local2 == last_comment) {
_local2++;
}
comments.gotoAndPlay(bad[_local2]);
last_comment = _local2;
}
}
}
var enemies = [];
var enemy_types = [];
var enemy_num = 0;
var enemies_killed = 0;
var objects = [];
var clouds = [];
var layouts = {};
var timer = 0;
var timer_num = 0;
var time_count = 0;
var pickups = true;
var obstacle_types = [];
var particles = true;
var good = [2, 40, 80, 120, 160, 200, 2];
var bad = [240, 280, 320, 360, 400, 440, 240];
var last_comment = 0;
var count_to_comment = 200;
}
Symbol 1540 MovieClip [__Packages.Layout] Frame 0
class Layout extends Object
{
var player_clip;
function Layout (p_player_clip) {
super();
enemies = [];
player_clip = p_player_clip;
}
function addEnemy(p_enemy_clip, p_pos_x, p_pos_y, p_pos_z) {
enemies.push(new Enemy(p_enemy_clip, p_pos_x, p_pos_y, p_pos_z));
}
function generateEnemies() {
var _local2 = 1500;
while (_local2 < 25000) {
_local2 = _local2 + (500 + Math.round(Math.random() * 100));
if ((_local2 > 5000) & (enemy_selection == 1)) {
enemy_selection = 2;
}
if ((_local2 > 14000) & (enemy_selection == 2)) {
enemy_selection = 3;
}
var _local3 = enemy_types[Math.floor(Math.random() * enemy_selection)];
addEnemy(_local3, Math.round((Math.random() * 2000) - 1000), Math.round((Math.random() * 2000) - 1000), _local2);
}
}
var enemies = [];
var enemy_types = [];
var enemy_selection = 1;
}
Symbol 1541 MovieClip [__Packages.Enemy] Frame 0
class Enemy
{
var enemy_clip;
function Enemy (p_enemy_clip, p_pos_x, p_pos_y, p_pos_z) {
enemy_clip = p_enemy_clip;
pos_x = p_pos_x;
pos_y = p_pos_y;
pos_z = p_pos_z;
}
var pos_x = 0;
var pos_y = 0;
var pos_z = 0;
}
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 27
gotoAndStop (1);
Symbol 38 MovieClip Frame 56
gotoAndStop (1);
Symbol 38 MovieClip Frame 95
gotoAndStop (1);
Symbol 38 MovieClip Frame 145
gotoAndStop (1);
Symbol 38 MovieClip Frame 192
gotoAndStop (1);
Symbol 38 MovieClip Frame 219
gotoAndStop (1);
Symbol 38 MovieClip Frame 266
gotoAndStop (1);
Symbol 38 MovieClip Frame 308
gotoAndStop (1);
Symbol 38 MovieClip Frame 341
gotoAndStop (1);
Symbol 38 MovieClip Frame 383
gotoAndStop (1);
Symbol 38 MovieClip Frame 418
gotoAndStop (1);
Symbol 38 MovieClip Frame 458
gotoAndStop (1);
Symbol 39 MovieClip [AirSpace] Frame 1
#initclip 50
Object.registerClass("AirSpace", AirSpace);
#endinitclip
Symbol 47 MovieClip Frame 10
_parent.removeMovieClip();
Symbol 48 MovieClip [ammo] Frame 1
#initclip 20
Object.registerClass("ammo", AmmoBox);
#endinitclip
stop();
Symbol 79 MovieClip Frame 46
gotoAndPlay (27);
Symbol 80 MovieClip [barrel] Frame 1
#initclip 21
Object.registerClass("barrel", Barrel);
#endinitclip
Symbol 81 MovieClip [blank_position] Frame 1
#initclip 22
Object.registerClass("blank_position", Position);
#endinitclip
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
this.gotoAndStop(1);
Symbol 92 MovieClip Frame 4
this.gotoAndStop(3);
Symbol 109 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 77
_root.airspace.player.getEnergyBalled();
Symbol 120 MovieClip Frame 87
tar = _parent;
while (!(tar instanceof BlimpAI)) {
tar = tar._parent;
}
tar.gotoAndStop(1);
Symbol 127 MovieClip Frame 12
stop();
Symbol 127 MovieClip Frame 13
this.gotoAndStop(12);
Symbol 128 MovieClip Frame 26
stop();
Symbol 128 MovieClip Frame 27
this.gotoAndStop(26);
Symbol 128 MovieClip Frame 29
this.gotoAndStop(28);
Symbol 129 MovieClip Frame 19
stop();
Symbol 129 MovieClip Frame 20
this.gotoAndStop(19);
Symbol 130 MovieClip Frame 100
_root.airspace.player.getEnergyBalled();
Symbol 130 MovieClip Frame 110
tar = _parent;
while (!(tar instanceof BlimpAI)) {
tar = tar._parent;
}
tar.gotoAndStop(1);
Symbol 131 MovieClip Frame 9
stop();
Symbol 131 MovieClip Frame 10
this.gotoAndStop(9);
Symbol 131 MovieClip Frame 12
this.gotoAndStop(11);
Symbol 138 MovieClip Frame 26
_parent.fireEnergyBall();
Symbol 138 MovieClip Frame 42
_parent.gotoAndStop(1);
Symbol 140 MovieClip Frame 36
_root.play();
Symbol 140 MovieClip Frame 37
this.gotoAndStop(36);
Symbol 143 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 144 MovieClip [blimp] Frame 1
#initclip 23
Object.registerClass("blimp", BlimpAI);
#endinitclip
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 4
this.gotoAndPlay(2);
Symbol 160 MovieClip Frame 6
stop();
Symbol 161 MovieClip [crosshair] Frame 1
stop();
Symbol 172 MovieClip Frame 2
stop();
Symbol 191 MovieClip Frame 17
_parent.removeMovieClip();
Symbol 192 MovieClip [enemy_missile] Frame 1
#initclip 24
Object.registerClass("enemy_missile", Missile);
#endinitclip
Symbol 194 MovieClip [energy_ball] Frame 1
#initclip 25
Object.registerClass("energy_ball", EnergyBall);
#endinitclip
Symbol 197 MovieClip [health] Frame 1
#initclip 26
Object.registerClass("health", HealthBox);
#endinitclip
stop();
Symbol 199 MovieClip [particle] Frame 1
#initclip 27
Object.registerClass("particle", Particle);
#endinitclip
Symbol 229 MovieClip Frame 2
stop();
Symbol 267 MovieClip [plane] Frame 1
#initclip 28
Object.registerClass("plane", Player);
#endinitclip
Symbol 306 MovieClip Frame 129
_parent._parent._parent.player.getLasered();
Symbol 306 MovieClip Frame 140
stop();
Symbol 307 MovieClip Frame 1
stop();
Instance of Symbol 306 MovieClip "laser" in Symbol 307 MovieClip Frame 5
onClipEvent (load) {
if (_parent._parent.laser_frame < 140) {
this.gotoAndPlay(_parent._parent.laser_frame + 1);
} else {
this.gotoAndPlay(140);
}
}
onClipEvent (enterFrame) {
if (_currentframe < 140) {
_parent._parent.laser_frame = _currentframe;
} else {
_parent._parent.laser_frame = 140;
}
}
Symbol 322 MovieClip Frame 12
stop();
Symbol 323 MovieClip [planet] Frame 1
#initclip 29
Object.registerClass("planet", PlanetAI);
#endinitclip
this.nextOrbit();
Symbol 323 MovieClip [planet] Frame 26
gotoAndPlay (1);
Symbol 323 MovieClip [planet] Frame 40
_root.play();
Symbol 328 MovieClip [player_missile] Frame 1
#initclip 30
Object.registerClass("player_missile", Missile);
#endinitclip
Symbol 358 MovieClip Frame 14
stop();
Symbol 359 MovieClip [rock] Frame 1
#initclip 31
Object.registerClass("rock", Rock);
#endinitclip
stop();
Symbol 380 MovieClip [rocket] Frame 1
#initclip 32
Object.registerClass("rocket", Player);
#endinitclip
Symbol 398 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 18
stop();
Symbol 418 MovieClip Frame 18
_parent.removeMovieClip();
Symbol 419 MovieClip [sky_bug_1] Frame 1
#initclip 33
Object.registerClass("sky_bug_1", EnemyAI);
#endinitclip
stop();
Instance of Symbol 398 MovieClip "blast_left" in Symbol 419 MovieClip [sky_bug_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 398 MovieClip "blast_right" in Symbol 419 MovieClip [sky_bug_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 428 MovieClip [sky_bug_2] Frame 1
#initclip 34
Object.registerClass("sky_bug_2", EnemyAI);
#endinitclip
this.has_missiles = true;
this.health = 180;
stop();
Instance of Symbol 398 MovieClip "blast_left" in Symbol 428 MovieClip [sky_bug_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 398 MovieClip "blast_right" in Symbol 428 MovieClip [sky_bug_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 439 MovieClip [sky_bug_3] Frame 1
#initclip 35
Object.registerClass("sky_bug_3", EnemyAI);
#endinitclip
this.has_missiles = true;
this.health = 250;
stop();
Instance of Symbol 398 MovieClip "blast_left" in Symbol 439 MovieClip [sky_bug_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 398 MovieClip "blast_right" in Symbol 439 MovieClip [sky_bug_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 446 MovieClip [space_bug_1] Frame 1
#initclip 36
Object.registerClass("space_bug_1", EnemyAI);
#endinitclip
stop();
Instance of Symbol 398 MovieClip "blast_left" in Symbol 446 MovieClip [space_bug_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 398 MovieClip "blast_right" in Symbol 446 MovieClip [space_bug_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 453 MovieClip [space_bug_2] Frame 1
#initclip 37
Object.registerClass("space_bug_2", EnemyAI);
#endinitclip
this.has_missiles = true;
this.health = 180;
stop();
Instance of Symbol 398 MovieClip "blast_left" in Symbol 453 MovieClip [space_bug_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 398 MovieClip "blast_right" in Symbol 453 MovieClip [space_bug_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 460 MovieClip [space_bug_3] Frame 1
#initclip 38
Object.registerClass("space_bug_3", EnemyAI);
#endinitclip
this.has_missiles = true;
this.health = 250;
stop();
Instance of Symbol 398 MovieClip "blast_left" in Symbol 460 MovieClip [space_bug_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 398 MovieClip "blast_right" in Symbol 460 MovieClip [space_bug_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 479 MovieClip [sub] Frame 1
#initclip 39
Object.registerClass("sub", Player);
#endinitclip
Symbol 482 MovieClip [tut_target] Frame 1
#initclip 40
Object.registerClass("tut_target", TargetPosition);
#endinitclip
Symbol 491 MovieClip [water_bug_1] Frame 1
#initclip 41
Object.registerClass("water_bug_1", EnemyAI);
#endinitclip
stop();
Instance of Symbol 398 MovieClip "blast_left" in Symbol 491 MovieClip [water_bug_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 398 MovieClip "blast_right" in Symbol 491 MovieClip [water_bug_1] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 500 MovieClip [water_bug_2] Frame 1
#initclip 42
Object.registerClass("water_bug_2", EnemyAI);
#endinitclip
this.has_missiles = true;
this.health = 180;
stop();
Instance of Symbol 398 MovieClip "blast_left" in Symbol 500 MovieClip [water_bug_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 398 MovieClip "blast_right" in Symbol 500 MovieClip [water_bug_2] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 513 MovieClip [water_bug_3] Frame 1
#initclip 43
Object.registerClass("water_bug_3", EnemyAI);
#endinitclip
this.has_missiles = true;
this.health = 250;
stop();
Instance of Symbol 398 MovieClip "blast_left" in Symbol 513 MovieClip [water_bug_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 398 MovieClip "blast_right" in Symbol 513 MovieClip [water_bug_3] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 526 MovieClip Frame 8
_parent.fireBarrels();
Symbol 526 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 538 MovieClip Frame 214
stop();
Symbol 543 MovieClip Frame 22
_parent.keep_distance = _parent.keep_distance - 10;
if (_parent.render_z < 30) {
_parent.keep_distance = 700;
_parent.follow_ratio = 600;
_parent._parent.player.getBitten();
this.gotoAndPlay(23);
} else {
this.gotoAndPlay(21);
}
Symbol 543 MovieClip Frame 26
_parent.gotoAndStop(1);
Symbol 544 MovieClip Frame 19
_parent.gotoAndStop(1);
Symbol 546 MovieClip Frame 34
_root.play();
Symbol 547 MovieClip [whale] Frame 1
#initclip 44
Object.registerClass("whale", WhaleAI);
#endinitclip
stop();
Symbol 561 MovieClip [big_bomb] Frame 1
#initclip 45
Object.registerClass("big_bomb", Obstacle);
#endinitclip
Symbol 563 MovieClip [bomb] Frame 1
#initclip 46
Object.registerClass("bomb", Obstacle);
#endinitclip
Symbol 565 MovieClip [can] Frame 1
#initclip 47
Object.registerClass("can", Obstacle);
#endinitclip
Symbol 568 MovieClip [mine] Frame 1
#initclip 48
Object.registerClass("mine", Obstacle);
#endinitclip
Symbol 569 MovieClip [rock_obstacle] Frame 1
#initclip 49
Object.registerClass("rock_obstacle", Obstacle);
#endinitclip
stop();
Symbol 592 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 1
stop();
Symbol 606 MovieClip Frame 1
stop();
Symbol 607 MovieClip Frame 1
stop();
Instance of Symbol 604 MovieClip "c1" in Symbol 607 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 606 MovieClip "c2" in Symbol 607 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Symbol 623 MovieClip Frame 1
stop();
Symbol 626 MovieClip Frame 1
stop();
Symbol 628 MovieClip Frame 1
stop();
Symbol 629 MovieClip Frame 1
stop();
Instance of Symbol 626 MovieClip "reverse" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 628 MovieClip "regular" in Symbol 629 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Symbol 631 MovieClip Frame 1
stop();
Symbol 632 MovieClip Frame 1
menu_selected = this.pla;
stop();
Instance of Symbol 592 MovieClip "play_more" in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.contr;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.sfb;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
getURL ("http://www.armorgames.com", "_blank");
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 594 MovieClip "pla" in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
setSelect();
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.ag;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.contr;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
_root.play();
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 596 MovieClip "sfb" in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.play_more;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(39))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.ag;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
getURL ("http://www.superflashbros.net", "_blank");
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 598 MovieClip "contr" in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.pla;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.play_more;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
_parent.gotoAndStop(2);
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 600 MovieClip "ag" in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.play_more;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.pla;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(37)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.sfb;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
getURL ("http://www.armorgames.com", "_blank");
}
} else {
_parent.pressed = false;
}
}
};
}
Symbol 632 MovieClip Frame 2
menu_selected = this.cont;
Instance of Symbol 607 MovieClip "cont" in Symbol 632 MovieClip Frame 2
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
setSelect();
this.onEnterFrame = function () {
this["c" + _global.control_type].RollOver();
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.back;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.ud;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
if (!_parent.pressed) {
_parent.pressed = true;
this["c" + _global.control_type].RollOut();
if (_global.control_type == 1) {
_global.control_type = 2;
} else if (_global.control_type == 2) {
_global.control_type = 1;
}
_parent.ico.gotoAndStop(_global.control_type);
this["c" + _global.control_type].RollOver();
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 629 MovieClip "ud" in Symbol 632 MovieClip Frame 2
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
this[_global.updown].RollOver();
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.cont;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.back;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
if (!_parent.pressed) {
_parent.pressed = true;
this[_global.updown].RollOut();
if (_global.updown == "reverse") {
_global.updown = "regular";
} else if (_global.updown == "regular") {
_global.updown = "reverse";
}
this[_global.updown].RollOver();
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 631 MovieClip "back" in Symbol 632 MovieClip Frame 2
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.ud;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.cont;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
_parent.gotoAndStop(1);
}
} else {
_parent.pressed = false;
}
}
};
}
Symbol 971 MovieClip Frame 29
stop();
Symbol 999 MovieClip Frame 25
stop();
Symbol 1042 MovieClip Frame 1
g = new Ground("cloud_clip", this, 400);
Symbol 1133 MovieClip Frame 1
stop();
Symbol 1135 MovieClip Frame 1
stop();
Symbol 1136 MovieClip Frame 130
_root.airspace.player.up = true;
Symbol 1136 MovieClip Frame 147
_root.airspace.player.up = false;
_root.airspace.player.down = true;
Symbol 1136 MovieClip Frame 163
_root.airspace.player.down = false;
_root.airspace.player.left = true;
Symbol 1136 MovieClip Frame 180
_root.airspace.player.left = false;
_root.airspace.player.right = true;
Symbol 1136 MovieClip Frame 204
_root.airspace.player.right = false;
Symbol 1136 MovieClip Frame 218
_root.airspace.player.ex = true;
Symbol 1136 MovieClip Frame 251
_root.airspace.player.ex = false;
Symbol 1136 MovieClip Frame 257
_root.airspace.player.zed = true;
Symbol 1136 MovieClip Frame 280
_root.airspace.player.zed = false;
Symbol 1136 MovieClip Frame 300
_root.airspace.enemy0._visible = false;
Symbol 1136 MovieClip Frame 455
menu_selected = this.move_on;
Instance of Symbol 1133 MovieClip "move_on" in Symbol 1136 MovieClip Frame 455
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
setSelect();
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.replay;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.replay;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
stopAllSounds();
_root.gotoAndPlay("test_go");
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 1135 MovieClip "replay" in Symbol 1136 MovieClip Frame 455
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.move_on;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40)) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.move_on;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
stopAllSounds();
_root.gotoAndPlay("tutorial");
}
} else {
_parent.pressed = false;
}
}
};
}
Symbol 1136 MovieClip Frame 487
stop();
Symbol 1145 MovieClip Frame 1
stop();
Instance of Symbol 1150 MovieClip in Symbol 1152 MovieClip Frame 1
onClipEvent (enterFrame) {
var num = Player.missiles_left;
if (num < 10) {
num = "0" + num;
}
this.missile_count.text = num;
}
Symbol 1159 MovieClip Frame 1
stop();
Symbol 1161 MovieClip Frame 1
stop();
Symbol 1166 MovieClip Frame 1
stop();
Symbol 1168 MovieClip Frame 1
stop();
Symbol 1170 MovieClip Frame 1
stop();
Symbol 1175 MovieClip Frame 1
stop();
Symbol 1176 MovieClip Frame 1
stop();
Instance of Symbol 1166 MovieClip "low" in Symbol 1176 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1168 MovieClip "medium" in Symbol 1176 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1170 MovieClip "high" in Symbol 1176 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1175 MovieClip "auto" in Symbol 1176 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Symbol 1179 MovieClip Frame 1
stop();
Symbol 1181 MovieClip Frame 1
stop();
Symbol 1183 MovieClip Frame 1
stop();
Symbol 1185 MovieClip Frame 1
stop();
Symbol 1187 MovieClip Frame 1
stop();
Symbol 1189 MovieClip Frame 1
stop();
Symbol 1190 MovieClip Frame 1
stop();
Instance of Symbol 1179 MovieClip "num0" in Symbol 1190 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1181 MovieClip "num1" in Symbol 1190 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1183 MovieClip "num2" in Symbol 1190 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1185 MovieClip "num3" in Symbol 1190 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1187 MovieClip "num4" in Symbol 1190 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1189 MovieClip "num5" in Symbol 1190 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Symbol 1192 MovieClip Frame 1
stop();
Symbol 1194 MovieClip Frame 1
stop();
Instance of Symbol 1179 MovieClip "num0" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1181 MovieClip "num1" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1183 MovieClip "num2" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1185 MovieClip "num3" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1187 MovieClip "num4" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Instance of Symbol 1189 MovieClip "num5" in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.RollOver = function () {
this.gotoAndStop(2);
};
this.RollOut = function () {
this.gotoAndStop(1);
};
}
Symbol 1195 MovieClip Frame 1
this.pressed = false;
_root.airspace.player.updateHealthBar();
stop();
Symbol 1195 MovieClip Frame 8
menu_selected = this.cont;
stop();
Instance of Symbol 1159 MovieClip "cont" in Symbol 1195 MovieClip Frame 8
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
setSelect();
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.play_more;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.opt;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
_parent.gotoAndPlay(11);
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 1161 MovieClip "opt" in Symbol 1195 MovieClip Frame 8
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.cont;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.contr;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
_parent.gotoAndStop(9);
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 592 MovieClip "play_more" in Symbol 1195 MovieClip Frame 8
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.contr;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.cont;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
getURL ("http://www.armorgames.com", "_blank");
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 598 MovieClip "contr" in Symbol 1195 MovieClip Frame 8
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.opt;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.play_more;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
_parent.gotoAndStop(10);
}
} else {
_parent.pressed = false;
}
}
};
}
Symbol 1195 MovieClip Frame 9
menu_selected = this.qual;
Instance of Symbol 1176 MovieClip "qual" in Symbol 1195 MovieClip Frame 9
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.setSelect();
this.onEnterFrame = function () {
this[_global.quality_set].RollOver();
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.back;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.music;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
if (!_parent.pressed) {
_parent.pressed = true;
this[_global.quality_set].RollOut();
if (_global.quality_set == "low") {
_global.quality_set = "auto";
} else if (_global.quality_set == "medium") {
_global.quality_set = "low";
} else if (_global.quality_set == "high") {
_global.quality_set = "medium";
} else if (_global.quality_set == "auto") {
_global.quality_set = "high";
}
this[_global.quality_set].RollOver();
if (_global.quality_set != "auto") {
_quality = _global.quality_set;
}
}
} else if (Key.isDown(39) || (Key.isDown(68))) {
if (!_parent.pressed) {
_parent.pressed = true;
this[_global.quality_set].RollOut();
if (_global.quality_set == "low") {
_global.quality_set = "medium";
} else if (_global.quality_set == "medium") {
_global.quality_set = "high";
} else if (_global.quality_set == "high") {
_global.quality_set = "auto";
} else if (_global.quality_set == "auto") {
_global.quality_set = "low";
}
this[_global.quality_set].RollOver();
if (_global.quality_set != "auto") {
_quality = _global.quality_set;
}
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 1190 MovieClip "music" in Symbol 1195 MovieClip Frame 9
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
this["num" + _global.music_vol].RollOver();
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.qual;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.sfx;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
if (!_parent.pressed) {
_parent.pressed = true;
this["num" + _global.music_vol].RollOut();
_global.music_vol--;
if (_global.music_vol < 0) {
_global.music_vol = 5;
}
this["num" + _global.music_vol].RollOver();
}
} else if (Key.isDown(39) || (Key.isDown(68))) {
if (!_parent.pressed) {
_parent.pressed = true;
this["num" + _global.music_vol].RollOut();
_global.music_vol++;
if (_global.music_vol > 5) {
_global.music_vol = 0;
}
this["num" + _global.music_vol].RollOver();
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 1192 MovieClip "back" in Symbol 1195 MovieClip Frame 9
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.sfx;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.qual;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
_parent.gotoAndStop(8);
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 1194 MovieClip "sfx" in Symbol 1195 MovieClip Frame 9
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
this["num" + _global.sfx_vol].RollOver();
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.music;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.back;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
if (!_parent.pressed) {
_parent.pressed = true;
this["num" + _global.sfx_vol].RollOut();
_global.sfx_vol--;
if (_global.sfx_vol < 0) {
_global.sfx_vol = 5;
}
this["num" + _global.sfx_vol].RollOver();
}
} else if (Key.isDown(39) || (Key.isDown(68))) {
if (!_parent.pressed) {
_parent.pressed = true;
this["num" + _global.sfx_vol].RollOut();
_global.sfx_vol++;
if (_global.sfx_vol > 5) {
_global.sfx_vol = 0;
}
this["num" + _global.sfx_vol].RollOver();
}
} else {
_parent.pressed = false;
}
}
};
}
Symbol 1195 MovieClip Frame 10
menu_selected = this.cont;
Instance of Symbol 607 MovieClip "cont" in Symbol 1195 MovieClip Frame 10
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
setSelect();
this.onEnterFrame = function () {
this["c" + _global.control_type].RollOver();
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.back;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.ud;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
if (!_parent.pressed) {
_parent.pressed = true;
this["c" + _global.control_type].RollOut();
if (_global.control_type == 1) {
_global.control_type = 2;
} else if (_global.control_type == 2) {
_global.control_type = 1;
}
_parent.ico.gotoAndStop(_global.control_type);
this["c" + _global.control_type].RollOver();
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 629 MovieClip "ud" in Symbol 1195 MovieClip Frame 10
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
this[_global.updown].RollOver();
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.cont;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.back;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (((Key.isDown(37) || (Key.isDown(65))) || (Key.isDown(39))) || (Key.isDown(68))) {
if (!_parent.pressed) {
_parent.pressed = true;
this[_global.updown].RollOut();
if (_global.updown == "reverse") {
_global.updown = "regular";
} else if (_global.updown == "regular") {
_global.updown = "reverse";
}
this[_global.updown].RollOver();
}
} else {
_parent.pressed = false;
}
}
};
}
Instance of Symbol 631 MovieClip "back" in Symbol 1195 MovieClip Frame 10
onClipEvent (load) {
this.setSelect = function () {
this.gotoAndStop(2);
};
this.onEnterFrame = function () {
if (_parent.menu_selected == this) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.ud;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(40) || (Key.isDown(83))) {
if (!_parent.pressed) {
this.gotoAndStop(1);
_parent.menu_selected = _parent.cont;
_parent.menu_selected.setSelect();
_parent.pressed = true;
}
} else if (Key.isDown(32)) {
if (!_parent.pressed) {
_parent.pressed = true;
_parent.gotoAndStop(8);
}
} else {
_parent.pressed = false;
}
}
};
}
Symbol 1195 MovieClip Frame 11
_root.airspace.player.updateHealthBar();
Symbol 1195 MovieClip Frame 15
_root.airspace.player.space_down = true;
_global.game_paused = false;
Symbol 1200 MovieClip Frame 6
stop();
Symbol 1209 MovieClip Frame 40
stop();
Symbol 1212 MovieClip Frame 2
stop();
Symbol 1220 MovieClip Frame 60
stop();
Symbol 1222 MovieClip Frame 2
stop();
Symbol 1250 MovieClip Frame 39
stop();
Symbol 1318 MovieClip Frame 1
var bitmapData_1 = (new flash.display.BitmapData(550, 400, true, 16711680));
var mc_1 = this.createEmptyMovieClip("mc", 2);
mc_1.attachBitmap(bitmapData_1, 3);
var randomNum = Math.floor(Math.random() * 10);
bitmapData_1.perlinNoise(550, 400, 6, randomNum, false, true, 8, false, null);
stop();
Symbol 1319 MovieClip Frame 1
g = new Ground("sea_bed", this, 400);
Symbol 1329 MovieClip Frame 41
stop();
Symbol 1332 MovieClip Frame 2
stop();
Symbol 1374 MovieClip Frame 60
stop();
Symbol 1404 MovieClip Frame 41
stop();
Symbol 1407 MovieClip Frame 2
stop();
Symbol 1417 MovieClip Frame 55
stop();
Symbol 1425 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1518 MovieClip Frame 1
stop();
Symbol 1520 MovieClip Frame 1
stop();
Symbol 1522 MovieClip Frame 1
stop();