Frame 1
fscommand ("allowscale", "false");
fscommand ("trapallkeys", "true");
musicIntro = new Sound();
musicIntro.attachSound("intro_music");
musicIntro.start(0, 9999);
Stage.noScale = true;
_root.ships = 3;
_root.accelerators = 0;
_root.killfiles = 0;
_root.score = 0;
_root.high_score1 = new Object();
_root.high_score1.player_name = "FAC";
_root.high_score1.score = 100000 /* 0x0186A0 */;
_root.high_score2 = new Object();
_root.high_score2.player_name = "T: ";
_root.high_score2.score = 90000 /* 0x015F90 */;
_root.high_score3 = new Object();
_root.high_score3.player_name = "GIG";
_root.high_score3.score = 80000 /* 0x013880 */;
_root.high_score4 = new Object();
_root.high_score4.player_name = "ANE";
_root.high_score4.score = 70000 /* 0x011170 */;
_root.high_score5 = new Object();
_root.high_score5.player_name = "WSR";
_root.high_score5.score = 60000;
_root.high_score6 = new Object();
_root.high_score6.player_name = "OXO";
_root.high_score6.score = 50000;
_root.high_score7 = new Object();
_root.high_score7.player_name = "RZY";
_root.high_score7.score = 40000;
_root.high_score8 = new Object();
_root.high_score8.player_name = "OUR";
_root.high_score8.score = 30000;
_root.high_score9 = new Object();
_root.high_score9.player_name = "SOX";
_root.high_score9.score = 20000;
_root.high_score10 = new Object();
_root.high_score10.player_name = "ORZ";
_root.high_score10.score = 10000;
stop();
Instance of Symbol 263 MovieClip in Frame 1
on (press) {
_root.gotoAndStop("story");
}
Frame 2
stop();
_root.musicIntro.stop("intro_music");
Instance of Symbol 272 MovieClip "main_code" in Frame 2
onClipEvent (load) {
_root.story = "In A.D. 2101, war was beginning.\n\nGiganews, the leading Usenet provider, and now the most \ncomplete of all Usenet repositories, at an astounding 200 years\nof binary retention, was transporting an important payload of\nUsenet posts from the dark reaches of the dangerous Furilarpar\nnebula, to the main data center on Earth.\n\nEn route, their BFG-class cargo ship was waylaid by intergalactic\ntrolls. While the trolls posed no immediate harm to the crew, the\nship\u2019s contents were jettisoned.\n\nYou are a member of the recovery team, equipped with your trusty\ndownload beam and a few handy KILLFILE-missles, you must recover\nthe precious cargo of Usenet articles to save the universe and\ndefeat the evil trolls.\n\nBegun, this flame war has.";
_root.teletype = "";
text_position = 0;
_root.soundTeletype = new Sound(this);
_root.soundTeletype.attachSound("teletype");
}
onClipEvent (enterFrame) {
if (text_position < _root.story.length) {
_root.teletype = _root.teletype + _root.story.substr(text_position, 2);
text_position = text_position + 2;
_root.soundTeletype.start();
}
}
Instance of Symbol 275 MovieClip in Frame 2
on (press) {
_root.gotoAndStop("instructions");
}
Frame 3
stop();
_root.musicGame = new Sound(this);
_root.musicGame.attachSound("game_music");
Instance of Symbol 258 MovieClip [ship_icon] in Frame 3
onClipEvent (enterFrame) {
if (_root.ships >= 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 258 MovieClip [ship_icon] in Frame 3
onClipEvent (enterFrame) {
if (_root.ships >= 2) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 258 MovieClip [ship_icon] in Frame 3
onClipEvent (enterFrame) {
if (_root.ships >= 3) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 284 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.ships > 3) {
this._visible = true;
_root.extra_ships = _root.ships - 3;
this.ships = "+" + _root.extra_ships;
} else {
this._visible = false;
}
}
Instance of Symbol 287 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.accelerators >= 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 290 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.killfiles >= 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 287 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.accelerators >= 2) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 290 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.killfiles >= 2) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 287 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.accelerators >= 3) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 290 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.killfiles >= 3) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 290 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.killfiles >= 4) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 275 MovieClip in Frame 3
on (press) {
_root.gotoAndStop("game");
}
Frame 4
stop();
stop();
Instance of Symbol 272 MovieClip "main_code" in Frame 4
onClipEvent (load) {
_root.tooslowjoe = false;
_root.soundCharged = new Sound();
_root.soundCharged.attachSound("new_charge");
_root.soundKillfile = new Sound();
_root.soundKillfile.attachSound("killfile_launch");
_root.soundTractorBeam = new Sound();
_root.soundTractorBeam.attachSound("tractorbeam");
_root.soundNewLevel = new Sound();
_root.soundNewLevel.attachSound("new_level");
_root.soundPowerup = new Sound();
_root.soundPowerup.attachSound("sfx-dich-034.wav");
_root.soundExplosion = new Sound();
_root.soundExplosion.attachSound("splosion");
_root.soundTrollRepair = new Sound();
_root.soundTrollRepair.attachSound("repair");
_root.soundTrollFireball = new Sound();
_root.soundTrollFireball.attachSound("fireball");
_root.soundTrollship = new Sound();
_root.soundTrollship.attachSound("trollship");
_root.soundTrollHit1 = new Sound();
_root.soundTrollHit1.attachSound("troll_die_1");
_root.soundTrollHit2 = new Sound();
_root.soundTrollHit2.attachSound("troll_die_2");
_root.soundTrollHit3 = new Sound();
_root.soundTrollHit3.attachSound("troll_die_3");
_root.soundTrollGameOver1 = new Sound();
_root.soundTrollGameOver1.attachSound("troll_gameover_iphoneondigg");
_root.soundTrollGameOver2 = new Sound();
_root.soundTrollGameOver2.attachSound("troll_gameover_lulz");
_root.soundTrollGameOver3 = new Sound();
_root.soundTrollGameOver3.attachSound("troll_gameover_priceiswrong");
_root.soundTrollKill1 = new Sound();
_root.soundTrollKill1.attachSound("troll_kill_altsocfurryloser");
_root.soundTrollKill2 = new Sound();
_root.soundTrollKill2.attachSound("troll_kill_anothercastle");
_root.soundTrollKill3 = new Sound();
_root.soundTrollKill3.attachSound("troll_kill_headasplode");
_root.soundTrollKill4 = new Sound();
_root.soundTrollKill4.attachSound("troll_kill_outsuckblackhole");
_root.soundTrollKill5 = new Sound();
_root.soundTrollKill5.attachSound("troll_kill_pwned1");
breakpoint = false;
Stage.noScale = true;
_root.lowest_envelope = 0;
_root.level1 = "11111\n22222\n33333\n44444\n55555\n66666";
_root.level2 = "1B1B1\nB1B1B\n1B1B1\nB1B1B\n1B1B1\nB1B1B";
_root.level3 = "B555B\nB555B\nB555B\nBB0BB\n1B0B1\nBB0BB";
_root.level4 = "11133\nBB133\n866BB\n8B66B\n8BB4B\n8B444";
_root.level5 = "1B7B1\nB747B\n74447\nB747B\nBB7BB\n1BBB1";
_root.level6 = "77911\n77911\n77911\n77911\n77911\n77911";
_root.level7 = "11111\n11111\n99999\n99999\n77777\n77777";
_root.level8 = "77711\n77799\n77711\n99999\n11111\n99999";
reset_all = function () {
_root.reset_game = false;
_root.game_paused = false;
_root.difficulty = 0.5;
_root.envelopes_highest_temp = 0;
_root.base_free_menz = 30000;
_root.free_menz = _root.base_free_menz;
_root.game_level = 1;
_root.beam_maxheight = 0;
_root.ship_default_y = 425;
_root.base_beam_charge_rate = 20;
_root.troll.base_shipspeed = 2;
_root.beam_charge_rate = _root.base_beam_charge_rate;
_root.respawn_time = 120;
_root.restart_time = 180;
_root.score = 0;
_root.reset_score = 0;
_root.msg = "";
_root.ships = 2;
_root.ROF = 15;
_root.bulletspeed = 6;
_root.powerupspeed = 2;
_root.badguy_rows = 5;
_root.badguy_cols = 5;
_root.top_x = 25;
_root.top_y = 100;
_root.xspacing = 80;
_root.yspacing = 45;
_root.shiftdown = 12;
_root.enable_beam = false;
_root.ship_hit_threshhold = 20;
_root.troll_hit_threshhold = 20;
_root.accelerators = 0;
_root.killfiles = 0;
_root.troll.base_wait_time = 150;
explode_counter = 0;
_root.shipspeed = 10;
_root.leftborder = 35;
_root.rightborder = 470;
_root.e_bulletspeed = 3;
_root.e_base_ROF = 45;
_root.e_ROF = _root.e_base_ROF;
attachMovie("fighter", "ship", 1000);
ship._x = Stage.width / 2;
ship._y = _root.ship_default_y;
_root.powerups = new Array();
_root.drop_powerup = false;
_root.powerup_x = 0;
_root.powerup_y = 0;
_root.powerup_target = 0;
_root.max_powerups = 3;
_root.powerup_counter = 0;
_root.max_fire = 4;
_root.shotcounter = 0;
_root.playerbullets = new Array();
_root.lastfired = 0;
_root.enemy_fire = false;
_root.e_fire_x = 0;
_root.e_fire_y = 0;
_root.e_target = 0;
_root.e_max_fire = 10;
_root.e_shotcounter_base = 400;
_root.spawned = _root.spawned + _root.e_max_fire;
_root.e_shotcounter = 0;
_root.e_bullets = new Array();
_root.e_lastfired = _root.e_ROF;
_root.rowcount = 0;
_root.colcount = 0;
_root.main_code.attachMovie("beam", "beam", 1337);
_root.main_code.beam.swapDepths(1);
_root.main_code.beam.activated = true;
_root.main_code.beam._x = ship._x;
_root.main_code.beam._y = ship._y;
_root.main_code.beam._height = 0;
_root.main_code.beam.attached = false;
};
reset = function () {
_root.main_code.flashything.gotoAndPlay("start");
_root.troll.revert = true;
this.shipspeed = this.base_shipspeed;
_root.troll.wait_time = _root.troll.base_wait_time - _root.difficulty;
if (_root.troll.wait_time < 30) {
_root.troll.wait_time = 30;
}
_root.troll.waiting = 0;
_root.troll.shipspeed = _root.troll.base_shipspeed + _root.difficulty;
if (_root.troll.shipspeed > this.shipspeed) {
_root.troll.shipspeed = this.shipspeed;
}
_root.envelopes_left = 0;
_root.envelopes_right = 0;
xpos = _root.top_x;
ypos = _root.top_y;
_root.badguys = new Array();
_root.envelope_chain = 0;
_root.spawned = 0;
_root.e_spawn_id = 0;
deadcounter = 0;
level_pointer = 0;
_root.spawned = 100;
_root.envelopes_spawned = 0;
while (level_pointer < eval (("_root.level" + _root.game_level) + ".length")) {
if (eval ("_root.level" + _root.game_level).substr(level_pointer, 1) == newline) {
ypos = ypos + _root.yspacing;
xpos = _root.top_x;
} else {
if (eval ("envelope" + _root.spawned)) {
eval ("envelope" + _root.spawned).removeMovieClip();
}
attachMovie("envelope_" + eval ("_root.level" + _root.game_level).substr(level_pointer, 1), "envelope" + _root.spawned, _root.spawned);
_root.badguys[_root.spawned] = eval ("envelope" + _root.spawned);
_root.badguys[_root.spawned].spawn_id = _root.spawned;
_root.badguys[_root.spawned]._y = ypos;
_root.badguys[_root.spawned]._x = xpos;
_root.spawned++;
xpos = xpos + _root.xspacing;
}
level_pointer++;
_root.level_pointer = level_pointer;
}
troll.revert = true;
};
reset_all();
reset();
_root.main_code.beam.attached = false;
_root.main_code.flashything.gotoAndStop("stop");
var listener = new Object();
listener.onKeyUp = function () {
var _local2 = Key.getCode();
if (_local2 == 80) {
if ((_root.game_paused == false) && (_root.pause_timeout == 0)) {
_root.game_paused = true;
} else {
_root.game_paused = false;
}
}
};
_root.pause_timeout = 0;
Key.addListener(listener);
}
onClipEvent (enterFrame) {
if (_root.reset_game) {
reset_all();
reset();
}
if (!_root.game_paused) {
if (_root.envelopes_left == 0) {
if (_root.tooslowjoe) {
_root.game_level = _root.tooslowjoe;
} else {
_root.game_level++;
}
_root.tooslowjoe = false;
_root.troll.revert = true;
_root.accelerators = 0;
_root.beam_charge_rate = _root.base_beam_charge_rate;
if (_root.game_level > 8) {
_root.game_level = 1;
}
if (_root.troll._currentframe == 180) {
_root.troll.gotoAndPlay("return");
}
_root.soundNewLevel.start();
_root.difficulty = _root.difficulty + 0.5;
_root.e_ROF = _root.e_ROF - 2.5;
if (_root.e_ROF < 20) {
_root.e_ROF = 20;
}
reset();
}
if (isNaN(_root.main_code.beam._height)) {
_root.beam_excuse = "What beam?";
_root.main_code.attachMovie("beam", "beam", 1337);
_root.main_code.beam.swapDepths(1);
_root.main_code.beam.activated = true;
_root.main_code.beam._x = ship._x;
_root.main_code.beam._y = ship._y;
_root.main_code.beam._height = 0;
_root.main_code.beam.attached = false;
}
if (_root.main_code.beam.attached && (_root.main_code.beam._height <= 0)) {
_root.main_code.beam.attached = false;
}
if ((_root.main_code.beam._height > 1) && (!_root.soundTractorBeam.playing_sound)) {
_root.soundTractorBeam.start(0, 100);
_root.soundTractorBeam.playing_sound = true;
} else if (_root.main_code.beam._height == 0) {
_root.soundTractorBeam.stop("tractorbeam");
_root.soundTractorBeam.playing_sound = false;
}
if (_root.free_menz <= _root.score) {
_root.ships++;
_root.extra_ships = "+" + (_root.ships - 3);
_root.free_menz = _root.free_menz + _root.base_free_menz;
}
if (ship._visible) {
if (breakpoint) {
trace((((_root.shipspeed + " :: ") + _root.leftborder) + " :: ") + _root.rightborder);
breakpoint = false;
}
if (Key.isDown(37)) {
if (ship._x > _root.leftborder) {
ship._x = ship._x - _root.shipspeed;
}
} else if (Key.isDown(39)) {
if (ship._x < _root.rightborder) {
ship._x = ship._x + _root.shipspeed;
}
}
if (Key.isDown(17)) {
if (_root.main_code.beam.activated) {
if (_root.main_code.beam.attached) {
_root.beam_excuse = "We're locked on.";
} else if ((_root.enable_beam && (!_root.main_code.beam.attached)) && (_root.main_code.beam._height < _root.beam_maxheight)) {
if (_root.main_code.beam.attached == false) {
_root.beam_excuse = "It's working";
_root.main_code.beam._height = _root.main_code.beam._height + _root.beam_charge_rate;
}
} else {
_root.beam_excuse = "We've hit max height";
}
_root.main_code.beam._x = ship._x;
_root.main_code.beam._y = ship._y;
}
} else {
_root.main_code.beam.attached = false;
_root.main_code.beam._x = ship._x;
_root.main_code.beam._y = ship._y;
_root.main_code.beam._height = 0;
}
if (Key.isDown(32) && (_root.killfiles > 0)) {
if (_root.shotcounter > _root.max_fire) {
_root.shotcounter = 0;
}
if (_root.lastfired >= _root.ROF) {
attachMovie("bullet", "projectile" + _root.shotcounter, _root.shotcounter);
_root.playerbullets[_root.shotcounter] = eval ("projectile" + _root.shotcounter);
_root.playerbullets[_root.shotcounter]._x = ship._x;
_root.playerbullets[_root.shotcounter]._y = ship._y;
_root.playerbullets[_root.shotcounter].swapDepths(16001);
_root.soundKillfile.start();
_root.troll.danger = true;
_root.shotcounter++;
_root.lastfired = 0;
_root.killfiles--;
}
_root.lastfired++;
} else {
_root.lastfired++;
}
if (((_root.e_fire_y + _root.e_fire_x) != 0) && (_root.troll.can_move)) {
if (_root.e_shotcounter >= _root.e_max_fire) {
_root.e_shotcounter = 0;
}
if (_root.e_lastfired >= _root.e_ROF) {
attachMovie("e_bullet", "e_projectile" + _root.e_shotcounter, _root.e_shotcounter + 200);
_root.soundTrollFireball.start();
_root.e_bullets[_root.e_shotcounter] = eval ("e_projectile" + _root.e_shotcounter);
_root.e_bullets[_root.e_shotcounter]._x = _root.e_fire_x;
_root.e_bullets[_root.e_shotcounter]._y = _root.e_fire_y + 20;
_root.e_shotcounter++;
_root.e_lastfired = 0;
}
_root.e_lastfired++;
_root.enemy_fire = false;
_root.e_fire_y = 0;
_root.e_fire_x = 0;
} else {
_root.enemy_fire = false;
_root.e_lastfired++;
}
if (((_root.powerup_y + _root.powerup_x) != 0) && (_root.powerup_type)) {
if (_root.powerup_counter >= _root.max_powerups) {
_root.powerup_counter = 0;
}
attachMovie("powerup", "powerup" + _root.powerup_counter, _root.powerup_counter + 700);
_root.powerups[_root.powerup_counter] = eval ("powerup" + _root.powerup_counter);
_root.powerups[_root.powerup_counter]._x = _root.powerup_x;
_root.powerups[_root.powerup_counter]._y = _root.powerup_y;
_root.powerups[_root.powerup_counter].powerup_type = _root.powerup_type;
_root.powerups[_root.powerup_counter].graphics.gotoAndPlay(_root.powerup_type);
_root.powerup_counter++;
_root.powerup_y = 0;
_root.powerup_x = 0;
_root.powerup_type = false;
}
}
var ship_hit_count = 0;
while (ship_hit_count < (_root.e_bullets.length + _root.e_shotcounter_base)) {
if (ship._visible && (_root.e_bullets[ship_hit_count])) {
if (((!isNaN(_root.e_bullets[ship_hit_count]._x + _root.e_bullets[ship_hit_count]._y)) && (_root.e_bullets[ship_hit_count]._y >= (ship._y + 20))) && (Math.abs(_root.e_bullets[ship_hit_count]._x - ship._x) <= _root.ship_hit_threshhold)) {
ship._visible = false;
attachMovie("splat", "explode", 555);
minNum = 1;
maxNum = 5;
rndNum = Math.ceil(Math.random() * ((maxNum - minNum) + 1)) + (minNum - 1);
eval ("_root.soundTrollKill" + rndNum).start();
_root.e_bullets[ship_hit_count].removeMovieClip();
explode._x = ship._x;
explode._y = ship._y;
}
}
ship_hit_count++;
}
var troll_hit_count = 0;
while (troll_hit_count < _root.playerbullets.length) {
if (_root.playerbullets[troll_hit_count] && (_root.troll.can_move)) {
if (((!isNaN(_root.playerbullets[troll_hit_count]._x + _root.playerbullets[troll_hit_count]._y)) && (Math.abs(_root.playerbullets[troll_hit_count]._x - _root.troll._x) <= _root.troll_hit_threshhold)) && (_root.playerbullets[troll_hit_count]._y <= _root.troll._y)) {
attachMovie("splat", "explode", 555);
minNum = 1;
maxNum = 3;
rndNum = Math.ceil(Math.random() * ((maxNum - minNum) + 1)) + (minNum - 1);
eval ("_root.soundTrollHit" + rndNum).start();
_root.troll.gotoAndPlay("leave");
explode.swapDepths(101);
_root.playerbullets[troll_hit_count].removeMovieClip();
explode._x = _root.troll._x;
explode._y = _root.troll._y;
}
}
troll_hit_count++;
}
var powerup_count = 0;
while (powerup_count < _root.powerups.length) {
if (_root.powerups[powerup_count]) {
if (((!isNaN(_root.powerups[powerup_count]._x + _root.powerups[powerup_count]._y)) && (_root.powerups[powerup_count]._y >= ship._y)) && (Math.abs(_root.powerups[powerup_count]._x - ship._x) <= _root.ship_hit_threshhold)) {
_root.main_code.flashything.gotoAndPlay("start");
_root.soundPowerup.start();
if ((_root.powerups[powerup_count].powerup_type == "killfile") && (_root.killfiles < 4)) {
_root.killfiles++;
} else if ((_root.powerups[powerup_count].powerup_type == "accelerator") && (_root.accelerators < 3)) {
_root.accelerators++;
_root.beam_charge_rate = _root.base_beam_charge_rate * (_root.accelerators + 1);
} else {
_root.score = _root.score + 2000;
}
_root.powerups[powerup_count].removeMovieClip();
}
}
powerup_count++;
}
if (!ship._visible) {
_root.main_code.beam._height = 0;
_root.extra_ships = "+" + (_root.ships - 3).toString;
_root.beam_excuse = "The ship isn't visible.";
deadcounter++;
if ((deadcounter > _root.respawn_time) && (_root.ships > 0)) {
_root.ships--;
ship._x = Stage.width / 2;
ship._y = _root.ship_default_y;
deadcounter = 0;
ship._visible = true;
_root.accelerators = 0;
_root.killfiles = 0;
_root.beam_charge_rate = _root.base_beam_charge_rate;
}
if (((deadcounter > 180) && (_root.ships == 0)) && (_root.msg != "GAME OVER")) {
_root.msg = "GAME OVER";
minNum = 1;
maxNum = 3;
rndNum = Math.ceil(Math.random() * ((maxNum - minNum) + 1)) + (minNum - 1);
eval ("_root.soundTrollGameOver" + rndNum).start();
deadcounter = 0;
}
if ((deadcounter > _root.restart_time) && (_root.msg == "GAME OVER")) {
_root.final_score = _root.score;
if (_root.score > _root.high_score10.score) {
_root.gotoAndPlay("new_highscore");
} else {
_root.gotoAndPlay("highscores");
}
_root.msg = "";
ship._x = 240;
ship._y = _root.ship_default_y;
deadcounter = 0;
ship._visible = true;
_root.game_level = 1;
}
}
_root.envelopes_left = _root.envelopes_left_temp;
_root.envelopes_right = _root.envelopes_right_temp;
_root.envelopes_left_temp = 0;
_root.envelopes_right_temp = 0;
_root.beam_maxheight = Math.abs(_root.envelopes_highest_temp - 505) - 88;
_root.envelopes_highest_temp = 0;
_root.testvar1 = (((_root.lowest_envelope + " :: ") + _root.main_code.ship._y) + " :: ") + _root.game_level;
}
}
Instance of Symbol 294 MovieClip "troll" in Frame 4
onClipEvent (load) {
this.shoot_threshhold = 70;
this.revert_x = this._x;
this.revert_y = this._y;
this.revert = false;
this.stray = 90;
this.waiting = 0;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if (this.can_move) {
if (Math.abs(_root.main_code.ship._x - this._x) < this.shoot_threshhold) {
_root.e_fire_x = this._x;
_root.e_fire_y = this._y;
}
if (_root.downshift) {
this._y = this._y + _root.shiftdown;
_root.downshift = false;
}
if (((!this.danger) && (!this.dodge)) && (Math.abs(_root.main_code.ship._x - this._x) > this.shipspeed)) {
if ((_root.main_code.ship._x > this._x) && ((_root.envelopes_right + this.stray) > this._x)) {
this._x = this._x + this.shipspeed;
} else if ((_root.main_code.ship._x < this._x) && ((_root.envelopes_left - this.stray) < this._x)) {
this._x = this._x - this.shipspeed;
}
} else if (this.danger) {
this.danger = false;
minNum = 50;
maxNum = 100;
dodge_distance = Math.ceil(Math.random() * ((maxNum - minNum) + 1)) + (minNum - 1);
minNum = 1;
maxNum = 3;
dodge_direction = Math.ceil(Math.random() * ((maxNum - minNum) + 1)) + (minNum - 1);
if (dodge_direction == 1) {
dodge_distance = dodge_distance - (dodge_distance * 2);
this.dodge = this._x + dodge_distance;
} else if (dodge_direction == 2) {
this.dodge = this._x + dodge_distance;
} else {
this.dodge = false;
}
} else if (this.dodge) {
if (Math.abs(this.dodge - this._x) < this.shipspeed) {
this.dodge = false;
} else if (this.dodge > this._x) {
this._x = this._x + this.shipspeed;
} else if (this.dodge < this._x) {
this._x = this._x - this.shipspeed;
}
}
}
if (this.revert) {
this._x = this.revert_x;
this._y = this.revert_y;
this.revert = false;
this.waiting = 0;
}
if ((this.waiting > 0) || (isNaN(this.waiting))) {
this.waiting--;
if ((this.waiting <= 0) || (isNaN(this.waiting))) {
this.gotoAndPlay("return");
}
}
}
}
Frame 5
stop();
Instance of Symbol 272 MovieClip "main_code" in Frame 5
onClipEvent (load) {
}
Instance of Symbol 300 MovieClip in Frame 5
on (press) {
i = 1;
while (i <= 10) {
trace(eval ("_root.high_score" + i).score);
if (_root.final_score > eval ("_root.high_score" + i).score) {
ii = 10;
while (ii > i) {
eval ("_root.high_score" + ii).player_name = eval ("_root.high_score" + (ii - 1)).player_name;
eval ("_root.high_score" + ii).score = eval ("_root.high_score" + (ii - 1)).score;
ii--;
}
eval ("_root.high_score" + i).player_name = _root.input_name.text;
eval ("_root.high_score" + i).score = _root.final_score;
break;
}
i++;
}
_root.gotoAndStop("highscores");
}
Frame 6
stop();
Instance of Symbol 272 MovieClip "main_code" in Frame 6
onClipEvent (load) {
_root.high_score1_player_name = "CMS";
_root.high_score1_score = "100000";
_root.high_score2_player_name = "JAS";
_root.high_score2_score = "90000";
_root.high_score3_player_name = "KMS";
_root.high_score3_score = "80000";
_root.high_score4_player_name = "BKS";
_root.high_score4_score = "70000";
_root.high_score5_player_name = "CMS";
_root.high_score5_score = "60000";
_root.high_score6_player_name = "HST";
_root.high_score6_score = "50000";
_root.high_score7_player_name = "BFG";
_root.high_score7_score = "40000";
_root.high_score8_player_name = "LOL";
_root.high_score8_score = "30000";
_root.high_score9_player_name = "WTF";
_root.high_score9_score = "20000";
_root.high_score10_player_name = "RLY";
_root.high_score10_score = "10000";
}
Instance of Symbol 323 MovieClip in Frame 6
on (press) {
getURL (("mailto:?subject=Giganews%20Flame%20Wars&body=I%20just%20got%20" + _root.score) + "%20points%20on%20Giganews%20Flame%20Wars!%20See%20if%20you%20can%20beat%20that%20here:%20http://www.giganews.com/games/flame-wars.html");
}
Instance of Symbol 325 MovieClip in Frame 6
on (press) {
_root.reset_game = true;
_root.gotoAndPlay("game");
}
Instance of Symbol 328 MovieClip in Frame 6
on (press) {
getURL ("http://www.giganews.com/?a=flamewars");
}
Symbol 30 MovieClip [Preloader_symbol] Frame 1
#initclip 1
if (_global.uk == undefined) {
_global.uk = new Object();
}
if (_global.uk.co == undefined) {
_global.uk.co = new Object();
}
if (_global.uk.co.bigroom == undefined) {
_global.uk.co.bigroom = new Object();
}
_global.uk.co.bigroom.Preloader = function (oid, mclip) {
this.id = oid;
if ((arguments.length > 1) && (mclip)) {
this.initialise(mclip);
} else {
this.initialise();
}
};
_global.uk.co.bigroom.Preloader.prototype.setFilename = function (filename) {
this.filename = filename;
};
_global.uk.co.bigroom.Preloader.prototype.getFilename = function () {
return(this.filename);
};
_global.uk.co.bigroom.Preloader.prototype.setAlign = function (newh, newv, newto) {
if (((((newv == "top") || (newv == "middle")) || (newv == "bottom")) || (newv == "adjust")) || (newv == "adjust to fit")) {
this.valign = newv;
}
if (((((newh == "left") || (newh == "center")) || (newh == "right")) || (newh == "adjust")) || (newh == "adjust to fit")) {
this.halign = newh;
}
switch (newto) {
case "none" :
case 0 :
this.alignto = "none";
break;
case "this component" :
case "component" :
this.alignto = "component";
break;
case "the stage" :
case "stage" :
this.alignto = "stage";
break;
case "the target" :
case "target" :
this.alignto = "target";
break;
default :
this.alignto = newto;
}
};
_global.uk.co.bigroom.Preloader.prototype.setTarget = function (target) {
if ((target == "this component") || (target == "component")) {
this.targetref = this.clip;
} else {
this.targetref = target;
}
};
_global.uk.co.bigroom.Preloader.prototype.getTarget = function () {
return(eval (this.targetref));
};
_global.uk.co.bigroom.Preloader.prototype.getID = function () {
return(this.id);
};
_global.uk.co.bigroom.Preloader.prototype.getBytesLoaded = function () {
return(this.bytesLoaded);
};
_global.uk.co.bigroom.Preloader.prototype.getBytesTotal = function () {
return(this.bytesTotal);
};
_global.uk.co.bigroom.Preloader.prototype.isLoading = function () {
return(this.loading);
};
_global.uk.co.bigroom.Preloader.prototype.setLoadedHandler = function (hand, obj) {
if (arguments.length > 1) {
this.handlerObj = obj;
} else {
this.handlerObj = this.targetref;
}
this.loadHandler = hand;
};
_global.uk.co.bigroom.Preloader.prototype.setCompleteOnFirst = function (status) {
if ((status == "no") || (status == false)) {
this.CompleteOnFirst = false;
} else {
this.CompleteOnFirst = true;
}
};
_global.uk.co.bigroom.Preloader.prototype.getCompleteOnFirst = function (status) {
return(this.CompleteOnFirst);
};
_global.uk.co.bigroom.Preloader.prototype.setPercentToLoad = function (pc) {
this.percentToLoad = Math.min(100, Math.max(0, pc));
};
_global.uk.co.bigroom.Preloader.prototype.setLoadedMovieSize = function (fromFirst, width, height) {
this.getSizeFromMovie = fromFirst;
if (arguments.length > 2) {
this.loadedMovieWidth = width;
this.loadedMovieHeight = height;
}
};
_global.uk.co.bigroom.Preloader.prototype.preLoadMovie = function (filename, target) {
if (arguments.length >= 2) {
this.setTarget(arguments[1]);
}
if (arguments.length >= 1) {
this.setFilename(arguments[0]);
}
switch (this.alignto) {
case "none" :
this.alignbounds = {xMin:0, xMax:0, yMin:0, yMax:0};
break;
case "stage" :
this.alignbounds = {xMin:0, xMax:Stage.width, yMin:0, yMax:Stage.height};
break;
case "component" :
this.alignbounds = this.clip.background_mc.getBounds("_level0");
break;
case "target" :
this.alignbounds = eval (this.targetref).getBounds("_level0");
break;
default :
this.alignbounds = this.alignto.getBounds("_level0");
}
this.loading = true;
this.positioned = -1;
this.previousBytesTotal = (this.previousBytesLoaded = (this.bytesTotal = (this.bytesLoaded = 0)));
this.notify("onLoadStart", this);
loadMovie (this.filename, this.targetref);
if (this.loop) {
clearInterval(this.loop);
}
this.loop = setInterval(this, "stepframe", 50);
};
_global.uk.co.bigroom.Preloader.prototype.addListener = function (obj) {
var _local2 = this.listeners;
var _local3 = _local2.length;
_local2[-1] = obj;
_local3--;
while (_local2[_local3] != obj) {
}
delete _local2[-1];
if (_local3 < 0) {
_local2.unshift(obj);
return(true);
}
return(false);
};
_global.uk.co.bigroom.Preloader.prototype.removeListener = function (obj) {
var _local2 = this.listeners;
var _local3 = _local2.length;
_local2[-1] = obj;
_local3--;
while (_local2[_local3] != obj) {
}
delete _local2[-1];
if (_local3 >= 0) {
_local2.splice(_local3, 1);
return(true);
}
return(false);
};
_global.uk.co.bigroom.Preloader.prototype.initialise = function (mclip) {
if ((arguments.length > 0) && (mclip)) {
this.clip = mclip;
this.setFilename(this.clip.filename);
this.setTarget(this.clip.target);
this.setAlign(this.clip.halign, this.clip.valign, this.clip.alignto);
this.setLoadedHandler(this.clip.loadedHandler);
this.setCompleteOnFirst(this.clip.completeFirst);
this.setPercentToLoad(this.clip.prePercent);
this.setLoadedMovieSize(((this.clip.getSizeFromMovie == "yes") ? true : false), this.clip.movieWidth, this.clip.movieHeight);
} else {
this.clip = null;
this.setFilename("");
this.setTarget("component");
this.setAlign("left", "top", "clip");
this.setLoadedHandler("");
this.setCompleteOnFirst(false);
this.setPrePercentToLoad(100);
this.setLoadedMovieSize(true, 0, 0);
}
this.loading = false;
this.loop = null;
this.previousBytesTotal = (this.previousBytesLoaded = (this.bytesTotal = (this.bytesLoaded = 0)));
if (!this.listeners) {
this.listeners = new Array();
}
};
_global.uk.co.bigroom.Preloader.prototype.doLoadedHandler = function () {
if (typeof(this.handlerObj) == "string") {
}
this.handlerObj = eval (this.handlerObj);
this.handlerObj[this.loadHandler](eval (this.targetref));
};
_global.uk.co.bigroom.Preloader.prototype.notify = function () {
var _local4 = arguments.shift();
var _local3 = this.listeners.concat();
for (var _local5 in _local3) {
_local3[_local5][_local4].apply(_local3[_local5], arguments);
}
};
_global.uk.co.bigroom.Preloader.prototype.stepframe = function () {
var mov = eval (this.targetref);
this.bytesTotal = mov.getBytesTotal();
if (this.bytesTotal > 4) {
if ((this.positioned != -1) && (mov._currentframe > 0)) {
this.positionMovie();
}
if (this.positioned == -1) {
this.positioned = 0;
}
this.bytesLoaded = mov.getBytesLoaded();
if (this.loading) {
if (this.bytesLoaded >= ((this.bytesTotal * this.percentToLoad) / 100)) {
this.loading = false;
this.notify("onLoadEnd", this);
} else if ((this.bytesLoaded != this.previousBytesLoaded) || (this.bytesTotal != this.previousBytesTotal)) {
this.notify("onLoadUpdate", this);
this.bytesLoaded = this.previousBytesLoaded;
this.bytesTotal = this.previousBytesTotal;
}
}
if ((this.positioned > 0) && (this.CompleteOnFirst)) {
this.loading = false;
this.notify("onLoadEnd", this);
}
if ((this.positioned > 0) && (!this.loading)) {
clearInterval(this.loop);
this.doLoadedHandler();
}
}
};
_global.uk.co.bigroom.Preloader.prototype.positionMovie = function () {
var mov = eval (this.targetref);
mov._xscale = (mov._yscale = 100);
if (this.alignto == "none") {
this.positioned = 1;
return(undefined);
}
var newbounds = mov.getBounds("_level0");
if ((!this.getSizeFromMovie) || (mov._width && (mov._height))) {
if (this.getSizeFromMovie) {
var left = newBounds.xMin;
var right = newBounds.xMax;
var top = newBounds.yMin;
var bottom = newBounds.yMax;
} else {
var p = {x:0, y:0};
mov.localToGlobal(p);
var left = p.x;
var right = (left + this.loadedMovieWidth);
var top = p.y;
var bottom = (top + this.loadedMovieHeight);
}
switch (this.valign) {
case "top" :
mov._y = mov._y + (this.alignbounds.yMin - top);
break;
case "middle" :
mov._y = mov._y + ((((this.alignbounds.yMax + this.alignbounds.yMin) - bottom) - top) / 2);
break;
case "bottom" :
mov._y = mov._y + (this.alignbounds.yMax - bottom);
break;
case "adjust" :
case "adjust to fit" :
mov._y = mov._y + (this.alignbounds.yMin - top);
mov._yscale = (100 * (this.alignbounds.yMax - this.alignbounds.yMin)) / (bottom - top);
}
switch (this.halign) {
case "left" :
mov._x = mov._x + (this.alignbounds.xMin - left);
break;
case "center" :
mov._x = mov._x + ((((this.alignbounds.xMax + this.alignbounds.xMin) - right) - left) / 2);
break;
case "right" :
mov._x = mov._x + (this.alignbounds.xMax - right);
break;
case "adjust" :
case "adjust to fit" :
mov._x = mov._x + (this.alignbounds.xMin - left);
mov._xscale = (100 * (this.alignbounds.xMax - this.alignbounds.xMin)) / (right - left);
}
this.positioned = 1;
}
};
if (_global.uk.co.bigroom.preloaders == undefined) {
_global.uk.co.bigroom.preloaders = new Object();
}
_global.uk.co.bigroom.PreloaderContainer = function () {
if (this.id == "") {
this.id = "__p__" + Math.floor(10000 * Math.random());
while (_global.uk.co.bigroom.preloaders[this.id]) {
this.id = "__p__" + Math.floor(10000 * Math.random());
}
}
if (_global.uk.co.bigroom.preloaders[this.id]) {
_global.uk.co.bigroom.preloaders[this.id].initialise(this);
} else {
_global.uk.co.bigroom.preloaders[this.id] = new _global.uk.co.bigroom.Preloader(this.id, this);
}
if ((this.loadnow == "yes") && (this.filename != "")) {
_global.uk.co.bigroom.preloaders[this.id].loop = setInterval(_global.uk.co.bigroom.preloaders[this.id], "preLoadMovie", 50);
}
this.background_mc._visible = false;
};
_global.uk.co.bigroom.PreLoaderContainer.prototype = new MovieClip();
_global.uk.co.bigroom.PreloaderContainer.prototype.getID = function () {
return(this.id);
};
_global.uk.co.bigroom.PreloaderContainer.prototype.getObject = function () {
return(_global.uk.co.bigroom.preloaders[this.id]);
};
Object.registerClass("Preloader_symbol", _global.uk.co.bigroom.PreloaderContainer);
#endinitclip
Symbol 31 MovieClip [Preloader_Clip_Symbol] Frame 1
#initclip 2
if (_global.uk == undefined) {
_global.uk = new Object();
}
if (_global.uk.co == undefined) {
_global.uk.co = new Object();
}
if (_global.uk.co.bigroom == undefined) {
_global.uk.co.bigroom = new Object();
}
_global.uk.co.bigroom.PreloaderClip = function () {
this._visible = false;
this._width = (this._height = 0);
this.setPreloader(this.preloader_id);
this.setClipTarget(this._parent[this._targetInstanceName]);
this.setExpandH(this.expandh);
this.setExpandV(this.expandv);
this.setHide(((this.hide == "yes") ? true : false));
};
_global.uk.co.bigroom.PreloaderClip.prototype = new MovieClip();
_global.uk.co.bigroom.PreloaderClip.prototype.setClipTarget = function (target) {
if (target) {
if (this.clipTarget) {
this.clipTarget._visible = true;
this.stretchClip(100);
}
this.clipTarget = target;
this.maxwidth = this.clipTarget._width;
this.maxheight = this.clipTarget._height;
this.alignBounds = this.clipTarget.getBounds("_level0");
}
};
_global.uk.co.bigroom.PreloaderClip.prototype.setPreloader = function (id) {
if (this.preloaderID) {
this.preloaderID.removeListener(this);
}
if (_global.uk.co.bigroom.preloaders && (_global.uk.co.bigroom.Preloader)) {
if (typeof(id) == "string") {
if (!_global.uk.co.bigroom.preloaders[id]) {
_global.uk.co.bigroom.preloaders[id] = new _global.uk.co.bigroom.Preloader(id);
}
this.preloaderID = _global.uk.co.bigroom.preloaders[id];
_global.uk.co.bigroom.preloaders[id].addListener(this);
} else if (typeof(id) == "object") {
this.preloaderID = id;
id.addListener(this);
} else {
this.preloaderID = null;
}
}
};
_global.uk.co.bigroom.PreloaderClip.prototype.setHide = function (state) {
if (arguments.length > 0) {
this.hide = state;
if (this.hide) {
if (this.preloaderID.isLoading()) {
this.clipTarget._visible = true;
} else {
this.clipTarget._visible = false;
}
this.stretchClip(0);
} else {
this.clipTarget._visible = true;
}
}
};
_global.uk.co.bigroom.PreloaderClip.prototype.setExpandH = function (str) {
str = str.toLowerCase();
if ((str == "left to right") || (str == "ltr")) {
this.expandh = 1;
} else if ((str == "right to left") || (str == "rtl")) {
this.expandh = 2;
} else if ((str == "center out") || (str == "cout")) {
this.expandh = 3;
} else {
this.expandh = 0;
}
};
_global.uk.co.bigroom.PreloaderClip.prototype.setExpandV = function (str) {
str = str.toLowerCase();
if ((str == "top to bottom") || (str == "ttb")) {
this.expandv = 1;
} else if ((str == "bottom to top") || (str == "btt")) {
this.expandv = 2;
} else if ((str == "center out") || (str == "cout")) {
this.expandv = 3;
} else {
this.expandv = 0;
}
};
_global.uk.co.bigroom.PreloaderClip.prototype.onLoadStart = function (obj) {
this.clipTarget._visible = true;
this.stretchClip(0);
};
_global.uk.co.bigroom.PreloaderClip.prototype.onLoadUpdate = function (obj) {
var _local2 = obj.getBytesLoaded();
var _local3 = obj.getBytesTotal();
this.stretchClip(_local2 / _local3);
};
_global.uk.co.bigroom.PreloaderClip.prototype.onLoadEnd = function (obj) {
if (this.hide) {
this.clipTarget._visible = false;
} else {
this.onLoadUpdate(obj);
}
};
_global.uk.co.bigroom.PreloaderClip.prototype.stretchClip = function (ratio) {
if (this.expandh || (this.expandv)) {
mov = this.clipTarget;
if (this.expandh) {
mov._width = this.maxwidth * ratio;
}
if (this.expandv) {
mov._height = this.maxheight * ratio;
}
var _local2 = mov.getBounds("_level0");
switch (this.expandh) {
case 1 :
mov._x = mov._x + (this.alignBounds.xMin - _local2.xMin);
break;
case 3 :
mov._x = mov._x + ((((this.alignBounds.xMax + this.alignBounds.xMin) - _local2.xMax) - _local2.xMin) / 2);
break;
case 2 :
mov._x = mov._x + (this.alignBounds.xMax - _local2.xMax);
}
switch (this.expandv) {
case 1 :
mov._y = mov._y + (this.alignBounds.yMin - _local2.yMin);
break;
case 3 :
mov._y = mov._y + ((((this.alignBounds.yMax + this.alignBounds.yMin) - _local2.yMax) - _local2.yMin) / 2);
break;
case 2 :
mov._y = mov._y + (this.alignBounds.yMax - _local2.yMax);
}
}
};
Object.registerClass("Preloader_Clip_Symbol", _global.uk.co.bigroom.PreloaderClip);
#endinitclip
Instance of Symbol 37 MovieClip "envelope" in Symbol 38 MovieClip [envelope_9] Frame 1
onClipEvent (load) {
this.swapDepths();
this.points = 300;
this.rate = 8;
this.steps = 100;
this.distance = 1;
this.downshift = _root.shiftdown;
this.framecounter = 0;
this.stepcounter = 0;
this.forward = true;
this.hitsamplerate = 10;
this.hitcounter = 0;
_root.reset_score = _root.reset_score + this.points;
this.hit_threshhold = 23;
this.beam_resist = 0;
this.required_charge = 1000;
this.charge = 0;
this.charged = false;
this.swapDepths(10);
this._parent.startwidth = this._parent._width;
this._parent.startheight = this._parent._height;
_root.envelopes_left++;
_root.badguys[_root.spawned] = this;
_root.spawned++;
_root.main_code.beam.attached = false;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if ((_root.envelopes_left_temp > this._parent._x) || (_root.envelopes_left_temp == 0)) {
_root.envelopes_left_temp = this._parent._x;
}
if ((_root.envelopes_right_temp < this._parent._x) || (_root.envelopes_right_temp == 0)) {
_root.envelopes_right_temp = this._parent._x;
}
if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
if ((_root.envelopes_highest_temp > this._parent._y) || (_root.envelopes_highest_temp == 0)) {
_root.envelopes_highest_temp = this._parent._y;
}
}
if ((!this._parent.envelope_glow) && (this.charged)) {
if (_root.enable_beam == this._parent) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
if (_root.envelope_chain != 0) {
if ((_root.envelope_chain >= 3) && (_root.accelerators < 1)) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "accelerator";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else if (_root.envelope_chain >= 2) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "killfile";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else {
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
}
}
this._parent._y = this._parent._y + 10;
this._parent._x = _root.main_code.ship._x;
this.size_ratio = Math.abs(_root.main_code.ship._y - this._parent._y) / this.distance_to_ship;
if (this.size_ratio < 0.2) {
this.size_ratio = 0.2;
}
this._parent._width = this._parent.startwidth * this.size_ratio;
this._parent._height = this._parent.startheight * this.size_ratio;
if (this._parent._y >= _root.main_code.ship._y) {
_root.envelopes_left--;
this.removeMovieClip();
}
} else {
if (this._parent._y > _root.lowest_envelope) {
_root.lowest_envelope = this._parent._y;
}
if (this._parent._y > 400) {
_root.attachMovie("splat", "explode", 555);
_root.explode._x = _root.ship._x;
_root.explode._y = _root.ship._y;
_root.main_code.ship._visible = false;
_root.tooslowjoe = _root.game_level;
_root.main_code.reset();
}
if ((((_root.main_code.beam._y - _root.main_code.beam._height) - 27) <= this._parent._y) && (Math.abs(_root.main_code.beam._x - this._parent._x) < this.hit_threshhold)) {
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.progress_bar.removeMovieClip();
this.charged = true;
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
_root.envelope_chain++;
}
} else {
this.charge = this.charge + _root.beam_charge_rate;
this.progress_bar.bar._width = (66 * this.charge) / this.required_charge;
}
} else {
this._parent.attachMovie("envelope_glow", "envelope_glow", 1);
_root.soundCharged.start();
this._parent.envelope_glow.cacheAsBitmap = true;
this.attachMovie("progress", "progress_bar", 10);
this.progress_bar.bar._width = 0;
this.progress_bar.swapDepths(1000);
_root.main_code.beam.attached = this._parent;
}
} else {
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
}
if ((!this.charged) && (this.progress_bar)) {
this.progress_bar.removeMovieClip();
this.charge = 0;
}
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.distance_to_ship = Math.abs(_root.main_code.ship._y - this._parent._y);
this._parent.envelope_glow.removeMovieClip();
} else {
this.charge = 0;
this.progress_bar.removeMovieClip();
this._parent.envelope_glow.removeMovieClip();
}
} else if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
_root.enable_beam = this._parent;
}
if ((_root.enable_beam == this._parent) && (Math.abs(_root.main_code.ship._x - this._parent._x) > this.hit_threshhold)) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
}
this.framecounter++;
if (this.framecounter == this.rate) {
if (!this.captured) {
if (this.stepcounter == this.steps) {
this.stepcounter = 0;
this._parent._y = this._parent._y + this.downshift;
_root.downshift = true;
if (this.forward) {
this.forward = false;
} else {
this.forward = true;
}
this.stepcounter = 0;
} else {
if (this.forward) {
this._parent._x = this._parent._x + this.distance;
} else {
this._parent._x = this._parent._x - this.distance;
}
this.stepcounter++;
}
}
this.framecounter = 0;
}
}
}
}
Instance of Symbol 41 MovieClip "envelope" in Symbol 42 MovieClip [envelope_8] Frame 1
onClipEvent (load) {
this.swapDepths();
this.points = 300;
this.rate = 8;
this.steps = 100;
this.distance = 1;
this.downshift = _root.shiftdown;
this.framecounter = 0;
this.stepcounter = 0;
this.forward = true;
this.hitsamplerate = 10;
this.hitcounter = 0;
_root.reset_score = _root.reset_score + this.points;
this.hit_threshhold = 23;
this.beam_resist = 0;
this.required_charge = 1000;
this.charge = 0;
this.charged = false;
this.swapDepths(10);
this._parent.startwidth = this._parent._width;
this._parent.startheight = this._parent._height;
_root.envelopes_left++;
_root.badguys[_root.spawned] = this;
_root.spawned++;
_root.main_code.beam.attached = false;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if ((_root.envelopes_left_temp > this._parent._x) || (_root.envelopes_left_temp == 0)) {
_root.envelopes_left_temp = this._parent._x;
}
if ((_root.envelopes_right_temp < this._parent._x) || (_root.envelopes_right_temp == 0)) {
_root.envelopes_right_temp = this._parent._x;
}
if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
if ((_root.envelopes_highest_temp > this._parent._y) || (_root.envelopes_highest_temp == 0)) {
_root.envelopes_highest_temp = this._parent._y;
}
}
if ((!this._parent.envelope_glow) && (this.charged)) {
if (_root.enable_beam == this._parent) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
if (_root.envelope_chain != 0) {
if ((_root.envelope_chain >= 3) && (_root.accelerators < 1)) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "accelerator";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else if (_root.envelope_chain >= 2) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "killfile";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else {
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
}
}
this._parent._y = this._parent._y + 10;
this._parent._x = _root.main_code.ship._x;
this.size_ratio = Math.abs(_root.main_code.ship._y - this._parent._y) / this.distance_to_ship;
if (this.size_ratio < 0.2) {
this.size_ratio = 0.2;
}
this._parent._width = this._parent.startwidth * this.size_ratio;
this._parent._height = this._parent.startheight * this.size_ratio;
if (this._parent._y >= _root.main_code.ship._y) {
_root.envelopes_left--;
this.removeMovieClip();
}
} else {
if (this._parent._y > _root.lowest_envelope) {
_root.lowest_envelope = this._parent._y;
}
if (this._parent._y > 400) {
_root.attachMovie("splat", "explode", 555);
_root.explode._x = _root.ship._x;
_root.explode._y = _root.ship._y;
_root.main_code.ship._visible = false;
_root.tooslowjoe = _root.game_level;
_root.main_code.reset();
}
if ((((_root.main_code.beam._y - _root.main_code.beam._height) - 27) <= this._parent._y) && (Math.abs(_root.main_code.beam._x - this._parent._x) < this.hit_threshhold)) {
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.progress_bar.removeMovieClip();
this.charged = true;
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
_root.envelope_chain++;
}
} else {
this.charge = this.charge + _root.beam_charge_rate;
this.progress_bar.bar._width = (66 * this.charge) / this.required_charge;
}
} else {
this._parent.attachMovie("envelope_glow", "envelope_glow", 1);
_root.soundCharged.start();
this._parent.envelope_glow.cacheAsBitmap = true;
this.attachMovie("progress", "progress_bar", 10);
this.progress_bar.bar._width = 0;
this.progress_bar.swapDepths(1000);
_root.main_code.beam.attached = this._parent;
}
} else {
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
}
if ((!this.charged) && (this.progress_bar)) {
this.progress_bar.removeMovieClip();
this.charge = 0;
}
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.distance_to_ship = Math.abs(_root.main_code.ship._y - this._parent._y);
this._parent.envelope_glow.removeMovieClip();
} else {
this.charge = 0;
this.progress_bar.removeMovieClip();
this._parent.envelope_glow.removeMovieClip();
}
} else if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
_root.enable_beam = this._parent;
}
if ((_root.enable_beam == this._parent) && (Math.abs(_root.main_code.ship._x - this._parent._x) > this.hit_threshhold)) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
}
this.framecounter++;
if (this.framecounter == this.rate) {
if (!this.captured) {
if (this.stepcounter == this.steps) {
this.stepcounter = 0;
this._parent._y = this._parent._y + this.downshift;
_root.downshift = true;
if (this.forward) {
this.forward = false;
} else {
this.forward = true;
}
this.stepcounter = 0;
} else {
if (this.forward) {
this._parent._x = this._parent._x + this.distance;
} else {
this._parent._x = this._parent._x - this.distance;
}
this.stepcounter++;
}
}
this.framecounter = 0;
}
}
}
}
Instance of Symbol 45 MovieClip "envelope" in Symbol 46 MovieClip [envelope_7] Frame 1
onClipEvent (load) {
this.swapDepths();
this.points = 300;
this.rate = 8;
this.steps = 100;
this.distance = 1;
this.downshift = _root.shiftdown;
this.framecounter = 0;
this.stepcounter = 0;
this.forward = true;
this.hitsamplerate = 10;
this.hitcounter = 0;
_root.reset_score = _root.reset_score + this.points;
this.hit_threshhold = 23;
this.beam_resist = 0;
this.required_charge = 1000;
this.charge = 0;
this.charged = false;
this.swapDepths(10);
this._parent.startwidth = this._parent._width;
this._parent.startheight = this._parent._height;
_root.envelopes_left++;
_root.badguys[_root.spawned] = this;
_root.spawned++;
_root.main_code.beam.attached = false;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if ((_root.envelopes_left_temp > this._parent._x) || (_root.envelopes_left_temp == 0)) {
_root.envelopes_left_temp = this._parent._x;
}
if ((_root.envelopes_right_temp < this._parent._x) || (_root.envelopes_right_temp == 0)) {
_root.envelopes_right_temp = this._parent._x;
}
if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
if ((_root.envelopes_highest_temp > this._parent._y) || (_root.envelopes_highest_temp == 0)) {
_root.envelopes_highest_temp = this._parent._y;
}
}
if ((!this._parent.envelope_glow) && (this.charged)) {
if (_root.enable_beam == this._parent) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
if (_root.envelope_chain != 0) {
if ((_root.envelope_chain >= 3) && (_root.accelerators < 1)) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "accelerator";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else if (_root.envelope_chain >= 2) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "killfile";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else {
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
}
}
this._parent._y = this._parent._y + 10;
this._parent._x = _root.main_code.ship._x;
this.size_ratio = Math.abs(_root.main_code.ship._y - this._parent._y) / this.distance_to_ship;
if (this.size_ratio < 0.2) {
this.size_ratio = 0.2;
}
this._parent._width = this._parent.startwidth * this.size_ratio;
this._parent._height = this._parent.startheight * this.size_ratio;
if (this._parent._y >= _root.main_code.ship._y) {
_root.envelopes_left--;
this.removeMovieClip();
}
} else {
if (this._parent._y > _root.lowest_envelope) {
_root.lowest_envelope = this._parent._y;
}
if (this._parent._y > 400) {
_root.attachMovie("splat", "explode", 555);
_root.explode._x = _root.ship._x;
_root.explode._y = _root.ship._y;
_root.main_code.ship._visible = false;
_root.tooslowjoe = _root.game_level;
_root.main_code.reset();
}
if ((((_root.main_code.beam._y - _root.main_code.beam._height) - 27) <= this._parent._y) && (Math.abs(_root.main_code.beam._x - this._parent._x) < this.hit_threshhold)) {
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.progress_bar.removeMovieClip();
this.charged = true;
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
_root.envelope_chain++;
}
} else {
this.charge = this.charge + _root.beam_charge_rate;
this.progress_bar.bar._width = (66 * this.charge) / this.required_charge;
}
} else {
this._parent.attachMovie("envelope_glow", "envelope_glow", 1);
_root.soundCharged.start();
this._parent.envelope_glow.cacheAsBitmap = true;
this.attachMovie("progress", "progress_bar", 10);
this.progress_bar.bar._width = 0;
this.progress_bar.swapDepths(1000);
_root.main_code.beam.attached = this._parent;
}
} else {
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
}
if ((!this.charged) && (this.progress_bar)) {
this.progress_bar.removeMovieClip();
this.charge = 0;
}
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.distance_to_ship = Math.abs(_root.main_code.ship._y - this._parent._y);
this._parent.envelope_glow.removeMovieClip();
} else {
this.charge = 0;
this.progress_bar.removeMovieClip();
this._parent.envelope_glow.removeMovieClip();
}
} else if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
_root.enable_beam = this._parent;
}
if ((_root.enable_beam == this._parent) && (Math.abs(_root.main_code.ship._x - this._parent._x) > this.hit_threshhold)) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
}
this.framecounter++;
if (this.framecounter == this.rate) {
if (!this.captured) {
if (this.stepcounter == this.steps) {
this.stepcounter = 0;
this._parent._y = this._parent._y + this.downshift;
_root.downshift = true;
if (this.forward) {
this.forward = false;
} else {
this.forward = true;
}
this.stepcounter = 0;
} else {
if (this.forward) {
this._parent._x = this._parent._x + this.distance;
} else {
this._parent._x = this._parent._x - this.distance;
}
this.stepcounter++;
}
}
this.framecounter = 0;
}
}
}
}
Instance of Symbol 49 MovieClip "envelope" in Symbol 50 MovieClip [envelope_6] Frame 1
onClipEvent (load) {
this.swapDepths();
this.points = 300;
this.rate = 8;
this.steps = 100;
this.distance = 1;
this.downshift = _root.shiftdown;
this.framecounter = 0;
this.stepcounter = 0;
this.forward = true;
this.hitsamplerate = 10;
this.hitcounter = 0;
_root.reset_score = _root.reset_score + this.points;
this.hit_threshhold = 23;
this.beam_resist = 0;
this.required_charge = 1000;
this.charge = 0;
this.charged = false;
this.swapDepths(10);
this._parent.startwidth = this._parent._width;
this._parent.startheight = this._parent._height;
_root.envelopes_left++;
_root.badguys[_root.spawned] = this;
_root.spawned++;
_root.main_code.beam.attached = false;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if ((_root.envelopes_left_temp > this._parent._x) || (_root.envelopes_left_temp == 0)) {
_root.envelopes_left_temp = this._parent._x;
}
if ((_root.envelopes_right_temp < this._parent._x) || (_root.envelopes_right_temp == 0)) {
_root.envelopes_right_temp = this._parent._x;
}
if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
if ((_root.envelopes_highest_temp > this._parent._y) || (_root.envelopes_highest_temp == 0)) {
_root.envelopes_highest_temp = this._parent._y;
}
}
if ((!this._parent.envelope_glow) && (this.charged)) {
if (_root.enable_beam == this._parent) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
if (_root.envelope_chain != 0) {
if ((_root.envelope_chain >= 3) && (_root.accelerators < 1)) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "accelerator";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else if (_root.envelope_chain >= 2) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "killfile";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else {
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
}
}
this._parent._y = this._parent._y + 10;
this._parent._x = _root.main_code.ship._x;
this.size_ratio = Math.abs(_root.main_code.ship._y - this._parent._y) / this.distance_to_ship;
if (this.size_ratio < 0.2) {
this.size_ratio = 0.2;
}
this._parent._width = this._parent.startwidth * this.size_ratio;
this._parent._height = this._parent.startheight * this.size_ratio;
if (this._parent._y >= _root.main_code.ship._y) {
_root.envelopes_left--;
this.removeMovieClip();
}
} else {
if (this._parent._y > _root.lowest_envelope) {
_root.lowest_envelope = this._parent._y;
}
if (this._parent._y > 400) {
_root.attachMovie("splat", "explode", 555);
_root.explode._x = _root.ship._x;
_root.explode._y = _root.ship._y;
_root.main_code.ship._visible = false;
_root.tooslowjoe = _root.game_level;
_root.main_code.reset();
}
if ((((_root.main_code.beam._y - _root.main_code.beam._height) - 27) <= this._parent._y) && (Math.abs(_root.main_code.beam._x - this._parent._x) < this.hit_threshhold)) {
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.progress_bar.removeMovieClip();
this.charged = true;
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
_root.envelope_chain++;
}
} else {
this.charge = this.charge + _root.beam_charge_rate;
this.progress_bar.bar._width = (66 * this.charge) / this.required_charge;
}
} else {
this._parent.attachMovie("envelope_glow", "envelope_glow", 1);
_root.soundCharged.start();
this._parent.envelope_glow.cacheAsBitmap = true;
this.attachMovie("progress", "progress_bar", 10);
this.progress_bar.bar._width = 0;
this.progress_bar.swapDepths(1000);
_root.main_code.beam.attached = this._parent;
}
} else {
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
}
if ((!this.charged) && (this.progress_bar)) {
this.progress_bar.removeMovieClip();
this.charge = 0;
}
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.distance_to_ship = Math.abs(_root.main_code.ship._y - this._parent._y);
this._parent.envelope_glow.removeMovieClip();
} else {
this.charge = 0;
this.progress_bar.removeMovieClip();
this._parent.envelope_glow.removeMovieClip();
}
} else if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
_root.enable_beam = this._parent;
}
if ((_root.enable_beam == this._parent) && (Math.abs(_root.main_code.ship._x - this._parent._x) > this.hit_threshhold)) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
}
this.framecounter++;
if (this.framecounter == this.rate) {
if (!this.captured) {
if (this.stepcounter == this.steps) {
this.stepcounter = 0;
this._parent._y = this._parent._y + this.downshift;
_root.downshift = true;
if (this.forward) {
this.forward = false;
} else {
this.forward = true;
}
this.stepcounter = 0;
} else {
if (this.forward) {
this._parent._x = this._parent._x + this.distance;
} else {
this._parent._x = this._parent._x - this.distance;
}
this.stepcounter++;
}
}
this.framecounter = 0;
}
}
}
}
Instance of Symbol 53 MovieClip "envelope" in Symbol 54 MovieClip [envelope_5] Frame 1
onClipEvent (load) {
this.swapDepths();
this.points = 300;
this.rate = 8;
this.steps = 100;
this.distance = 1;
this.downshift = _root.shiftdown;
this.framecounter = 0;
this.stepcounter = 0;
this.forward = true;
this.hitsamplerate = 10;
this.hitcounter = 0;
_root.reset_score = _root.reset_score + this.points;
this.hit_threshhold = 23;
this.beam_resist = 0;
this.required_charge = 1000;
this.charge = 0;
this.charged = false;
this.swapDepths(10);
this._parent.startwidth = this._parent._width;
this._parent.startheight = this._parent._height;
_root.envelopes_left++;
_root.badguys[_root.spawned] = this;
_root.spawned++;
_root.main_code.beam.attached = false;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if ((_root.envelopes_left_temp > this._parent._x) || (_root.envelopes_left_temp == 0)) {
_root.envelopes_left_temp = this._parent._x;
}
if ((_root.envelopes_right_temp < this._parent._x) || (_root.envelopes_right_temp == 0)) {
_root.envelopes_right_temp = this._parent._x;
}
if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
if ((_root.envelopes_highest_temp > this._parent._y) || (_root.envelopes_highest_temp == 0)) {
_root.envelopes_highest_temp = this._parent._y;
}
}
if ((!this._parent.envelope_glow) && (this.charged)) {
if (_root.enable_beam == this._parent) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
if (_root.envelope_chain != 0) {
if ((_root.envelope_chain >= 3) && (_root.accelerators < 1)) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "accelerator";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else if (_root.envelope_chain >= 2) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "killfile";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else {
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
}
}
this._parent._y = this._parent._y + 10;
this._parent._x = _root.main_code.ship._x;
this.size_ratio = Math.abs(_root.main_code.ship._y - this._parent._y) / this.distance_to_ship;
if (this.size_ratio < 0.2) {
this.size_ratio = 0.2;
}
this._parent._width = this._parent.startwidth * this.size_ratio;
this._parent._height = this._parent.startheight * this.size_ratio;
if (this._parent._y >= _root.main_code.ship._y) {
_root.envelopes_left--;
this.removeMovieClip();
}
} else {
if (this._parent._y > _root.lowest_envelope) {
_root.lowest_envelope = this._parent._y;
}
if (this._parent._y > 400) {
_root.attachMovie("splat", "explode", 555);
_root.explode._x = _root.ship._x;
_root.explode._y = _root.ship._y;
_root.main_code.ship._visible = false;
_root.tooslowjoe = _root.game_level;
_root.main_code.reset();
}
if ((((_root.main_code.beam._y - _root.main_code.beam._height) - 27) <= this._parent._y) && (Math.abs(_root.main_code.beam._x - this._parent._x) < this.hit_threshhold)) {
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.progress_bar.removeMovieClip();
this.charged = true;
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
_root.envelope_chain++;
}
} else {
this.charge = this.charge + _root.beam_charge_rate;
this.progress_bar.bar._width = (66 * this.charge) / this.required_charge;
}
} else {
this._parent.attachMovie("envelope_glow", "envelope_glow", 1);
_root.soundCharged.start();
this._parent.envelope_glow.cacheAsBitmap = true;
this.attachMovie("progress", "progress_bar", 10);
this.progress_bar.bar._width = 0;
this.progress_bar.swapDepths(1000);
_root.main_code.beam.attached = this._parent;
}
} else {
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
}
if ((!this.charged) && (this.progress_bar)) {
this.progress_bar.removeMovieClip();
this.charge = 0;
}
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.distance_to_ship = Math.abs(_root.main_code.ship._y - this._parent._y);
this._parent.envelope_glow.removeMovieClip();
} else {
this.charge = 0;
this.progress_bar.removeMovieClip();
this._parent.envelope_glow.removeMovieClip();
}
} else if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
_root.enable_beam = this._parent;
}
if ((_root.enable_beam == this._parent) && (Math.abs(_root.main_code.ship._x - this._parent._x) > this.hit_threshhold)) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
}
this.framecounter++;
if (this.framecounter == this.rate) {
if (!this.captured) {
if (this.stepcounter == this.steps) {
this.stepcounter = 0;
this._parent._y = this._parent._y + this.downshift;
_root.downshift = true;
if (this.forward) {
this.forward = false;
} else {
this.forward = true;
}
this.stepcounter = 0;
} else {
if (this.forward) {
this._parent._x = this._parent._x + this.distance;
} else {
this._parent._x = this._parent._x - this.distance;
}
this.stepcounter++;
}
}
this.framecounter = 0;
}
}
}
}
Instance of Symbol 57 MovieClip "envelope" in Symbol 58 MovieClip [envelope_4] Frame 1
onClipEvent (load) {
this.swapDepths();
this.points = 300;
this.rate = 8;
this.steps = 100;
this.distance = 1;
this.downshift = _root.shiftdown;
this.framecounter = 0;
this.stepcounter = 0;
this.forward = true;
this.hitsamplerate = 10;
this.hitcounter = 0;
_root.reset_score = _root.reset_score + this.points;
this.hit_threshhold = 23;
this.beam_resist = 0;
this.required_charge = 1000;
this.charge = 0;
this.charged = false;
this.swapDepths(10);
this._parent.startwidth = this._parent._width;
this._parent.startheight = this._parent._height;
_root.envelopes_left++;
_root.badguys[_root.spawned] = this;
_root.spawned++;
_root.main_code.beam.attached = false;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if ((_root.envelopes_left_temp > this._parent._x) || (_root.envelopes_left_temp == 0)) {
_root.envelopes_left_temp = this._parent._x;
}
if ((_root.envelopes_right_temp < this._parent._x) || (_root.envelopes_right_temp == 0)) {
_root.envelopes_right_temp = this._parent._x;
}
if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
if ((_root.envelopes_highest_temp > this._parent._y) || (_root.envelopes_highest_temp == 0)) {
_root.envelopes_highest_temp = this._parent._y;
}
}
if ((!this._parent.envelope_glow) && (this.charged)) {
if (_root.enable_beam == this._parent) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
if (_root.envelope_chain != 0) {
if ((_root.envelope_chain >= 3) && (_root.accelerators < 1)) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "accelerator";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else if (_root.envelope_chain >= 2) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "killfile";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else {
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
}
}
this._parent._y = this._parent._y + 10;
this._parent._x = _root.main_code.ship._x;
this.size_ratio = Math.abs(_root.main_code.ship._y - this._parent._y) / this.distance_to_ship;
if (this.size_ratio < 0.2) {
this.size_ratio = 0.2;
}
this._parent._width = this._parent.startwidth * this.size_ratio;
this._parent._height = this._parent.startheight * this.size_ratio;
if (this._parent._y >= _root.main_code.ship._y) {
_root.envelopes_left--;
this.removeMovieClip();
}
} else {
if (this._parent._y > _root.lowest_envelope) {
_root.lowest_envelope = this._parent._y;
}
if (this._parent._y > 400) {
_root.attachMovie("splat", "explode", 555);
_root.explode._x = _root.ship._x;
_root.explode._y = _root.ship._y;
_root.main_code.ship._visible = false;
_root.tooslowjoe = _root.game_level;
_root.main_code.reset();
}
if ((((_root.main_code.beam._y - _root.main_code.beam._height) - 27) <= this._parent._y) && (Math.abs(_root.main_code.beam._x - this._parent._x) < this.hit_threshhold)) {
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.progress_bar.removeMovieClip();
this.charged = true;
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
_root.envelope_chain++;
}
} else {
this.charge = this.charge + _root.beam_charge_rate;
this.progress_bar.bar._width = (66 * this.charge) / this.required_charge;
}
} else {
this._parent.attachMovie("envelope_glow", "envelope_glow", 1);
_root.soundCharged.start();
this._parent.envelope_glow.cacheAsBitmap = true;
this.attachMovie("progress", "progress_bar", 10);
this.progress_bar.bar._width = 0;
this.progress_bar.swapDepths(1000);
_root.main_code.beam.attached = this._parent;
}
} else {
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
}
if ((!this.charged) && (this.progress_bar)) {
this.progress_bar.removeMovieClip();
this.charge = 0;
}
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.distance_to_ship = Math.abs(_root.main_code.ship._y - this._parent._y);
this._parent.envelope_glow.removeMovieClip();
} else {
this.charge = 0;
this.progress_bar.removeMovieClip();
this._parent.envelope_glow.removeMovieClip();
}
} else if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
_root.enable_beam = this._parent;
}
if ((_root.enable_beam == this._parent) && (Math.abs(_root.main_code.ship._x - this._parent._x) > this.hit_threshhold)) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
}
this.framecounter++;
if (this.framecounter == this.rate) {
if (!this.captured) {
if (this.stepcounter == this.steps) {
this.stepcounter = 0;
this._parent._y = this._parent._y + this.downshift;
_root.downshift = true;
if (this.forward) {
this.forward = false;
} else {
this.forward = true;
}
this.stepcounter = 0;
} else {
if (this.forward) {
this._parent._x = this._parent._x + this.distance;
} else {
this._parent._x = this._parent._x - this.distance;
}
this.stepcounter++;
}
}
this.framecounter = 0;
}
}
}
}
Instance of Symbol 61 MovieClip "envelope" in Symbol 62 MovieClip [envelope_3] Frame 1
onClipEvent (load) {
this.swapDepths();
this.points = 300;
this.rate = 8;
this.steps = 100;
this.distance = 1;
this.downshift = _root.shiftdown;
this.framecounter = 0;
this.stepcounter = 0;
this.forward = true;
this.hitsamplerate = 10;
this.hitcounter = 0;
_root.reset_score = _root.reset_score + this.points;
this.hit_threshhold = 23;
this.beam_resist = 0;
this.required_charge = 1000;
this.charge = 0;
this.charged = false;
this.swapDepths(10);
this._parent.startwidth = this._parent._width;
this._parent.startheight = this._parent._height;
_root.envelopes_left++;
_root.badguys[_root.spawned] = this;
_root.spawned++;
_root.main_code.beam.attached = false;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if ((_root.envelopes_left_temp > this._parent._x) || (_root.envelopes_left_temp == 0)) {
_root.envelopes_left_temp = this._parent._x;
}
if ((_root.envelopes_right_temp < this._parent._x) || (_root.envelopes_right_temp == 0)) {
_root.envelopes_right_temp = this._parent._x;
}
if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
if ((_root.envelopes_highest_temp > this._parent._y) || (_root.envelopes_highest_temp == 0)) {
_root.envelopes_highest_temp = this._parent._y;
}
}
if ((!this._parent.envelope_glow) && (this.charged)) {
if (_root.enable_beam == this._parent) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
if (_root.envelope_chain != 0) {
if ((_root.envelope_chain >= 3) && (_root.accelerators < 1)) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "accelerator";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else if (_root.envelope_chain >= 2) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "killfile";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else {
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
}
}
this._parent._y = this._parent._y + 10;
this._parent._x = _root.main_code.ship._x;
this.size_ratio = Math.abs(_root.main_code.ship._y - this._parent._y) / this.distance_to_ship;
if (this.size_ratio < 0.2) {
this.size_ratio = 0.2;
}
this._parent._width = this._parent.startwidth * this.size_ratio;
this._parent._height = this._parent.startheight * this.size_ratio;
if (this._parent._y >= _root.main_code.ship._y) {
_root.envelopes_left--;
this.removeMovieClip();
}
} else {
if (this._parent._y > _root.lowest_envelope) {
_root.lowest_envelope = this._parent._y;
}
if (this._parent._y > 400) {
_root.attachMovie("splat", "explode", 555);
_root.explode._x = _root.ship._x;
_root.explode._y = _root.ship._y;
_root.main_code.ship._visible = false;
_root.tooslowjoe = _root.game_level;
_root.main_code.reset();
}
if ((((_root.main_code.beam._y - _root.main_code.beam._height) - 27) <= this._parent._y) && (Math.abs(_root.main_code.beam._x - this._parent._x) < this.hit_threshhold)) {
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.progress_bar.removeMovieClip();
this.charged = true;
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
_root.envelope_chain++;
}
} else {
this.charge = this.charge + _root.beam_charge_rate;
this.progress_bar.bar._width = (66 * this.charge) / this.required_charge;
}
} else {
this._parent.attachMovie("envelope_glow", "envelope_glow", 1);
_root.soundCharged.start();
this._parent.envelope_glow.cacheAsBitmap = true;
this.attachMovie("progress", "progress_bar", 10);
this.progress_bar.bar._width = 0;
this.progress_bar.swapDepths(1000);
_root.main_code.beam.attached = this._parent;
}
} else {
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
}
if ((!this.charged) && (this.progress_bar)) {
this.progress_bar.removeMovieClip();
this.charge = 0;
}
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.distance_to_ship = Math.abs(_root.main_code.ship._y - this._parent._y);
this._parent.envelope_glow.removeMovieClip();
} else {
this.charge = 0;
this.progress_bar.removeMovieClip();
this._parent.envelope_glow.removeMovieClip();
}
} else if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
_root.enable_beam = this._parent;
}
if ((_root.enable_beam == this._parent) && (Math.abs(_root.main_code.ship._x - this._parent._x) > this.hit_threshhold)) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
}
this.framecounter++;
if (this.framecounter == this.rate) {
if (!this.captured) {
if (this.stepcounter == this.steps) {
this.stepcounter = 0;
this._parent._y = this._parent._y + this.downshift;
_root.downshift = true;
if (this.forward) {
this.forward = false;
} else {
this.forward = true;
}
this.stepcounter = 0;
} else {
if (this.forward) {
this._parent._x = this._parent._x + this.distance;
} else {
this._parent._x = this._parent._x - this.distance;
}
this.stepcounter++;
}
}
this.framecounter = 0;
}
}
}
}
Instance of Symbol 65 MovieClip "envelope" in Symbol 66 MovieClip [envelope_2] Frame 1
onClipEvent (load) {
this.swapDepths();
this.points = 300;
this.rate = 8;
this.steps = 100;
this.distance = 1;
this.downshift = _root.shiftdown;
this.framecounter = 0;
this.stepcounter = 0;
this.forward = true;
this.hitsamplerate = 10;
this.hitcounter = 0;
_root.reset_score = _root.reset_score + this.points;
this.hit_threshhold = 23;
this.beam_resist = 0;
this.required_charge = 1000;
this.charge = 0;
this.charged = false;
this.swapDepths(10);
this._parent.startwidth = this._parent._width;
this._parent.startheight = this._parent._height;
_root.envelopes_left++;
_root.badguys[_root.spawned] = this;
_root.spawned++;
_root.main_code.beam.attached = false;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if ((_root.envelopes_left_temp > this._parent._x) || (_root.envelopes_left_temp == 0)) {
_root.envelopes_left_temp = this._parent._x;
}
if ((_root.envelopes_right_temp < this._parent._x) || (_root.envelopes_right_temp == 0)) {
_root.envelopes_right_temp = this._parent._x;
}
if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
if ((_root.envelopes_highest_temp > this._parent._y) || (_root.envelopes_highest_temp == 0)) {
_root.envelopes_highest_temp = this._parent._y;
}
}
if ((!this._parent.envelope_glow) && (this.charged)) {
if (_root.enable_beam == this._parent) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
if (_root.envelope_chain != 0) {
if ((_root.envelope_chain >= 3) && (_root.accelerators < 1)) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "accelerator";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else if (_root.envelope_chain >= 2) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "killfile";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else {
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
}
}
this._parent._y = this._parent._y + 10;
this._parent._x = _root.main_code.ship._x;
this.size_ratio = Math.abs(_root.main_code.ship._y - this._parent._y) / this.distance_to_ship;
if (this.size_ratio < 0.2) {
this.size_ratio = 0.2;
}
this._parent._width = this._parent.startwidth * this.size_ratio;
this._parent._height = this._parent.startheight * this.size_ratio;
if (this._parent._y >= _root.main_code.ship._y) {
_root.envelopes_left--;
this.removeMovieClip();
}
} else {
if (this._parent._y > _root.lowest_envelope) {
_root.lowest_envelope = this._parent._y;
}
if (this._parent._y > 400) {
_root.attachMovie("splat", "explode", 555);
_root.explode._x = _root.ship._x;
_root.explode._y = _root.ship._y;
_root.main_code.ship._visible = false;
_root.tooslowjoe = _root.game_level;
_root.main_code.reset();
}
if ((((_root.main_code.beam._y - _root.main_code.beam._height) - 27) <= this._parent._y) && (Math.abs(_root.main_code.beam._x - this._parent._x) < this.hit_threshhold)) {
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.progress_bar.removeMovieClip();
this.charged = true;
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
_root.envelope_chain++;
}
} else {
this.charge = this.charge + _root.beam_charge_rate;
this.progress_bar.bar._width = (66 * this.charge) / this.required_charge;
}
} else {
this._parent.attachMovie("envelope_glow", "envelope_glow", 1);
_root.soundCharged.start();
this._parent.envelope_glow.cacheAsBitmap = true;
this.attachMovie("progress", "progress_bar", 10);
this.progress_bar.bar._width = 0;
this.progress_bar.swapDepths(1000);
_root.main_code.beam.attached = this._parent;
}
} else {
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
}
if ((!this.charged) && (this.progress_bar)) {
this.progress_bar.removeMovieClip();
this.charge = 0;
}
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.distance_to_ship = Math.abs(_root.main_code.ship._y - this._parent._y);
this._parent.envelope_glow.removeMovieClip();
} else {
this.charge = 0;
this.progress_bar.removeMovieClip();
this._parent.envelope_glow.removeMovieClip();
}
} else if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
_root.enable_beam = this._parent;
}
if ((_root.enable_beam == this._parent) && (Math.abs(_root.main_code.ship._x - this._parent._x) > this.hit_threshhold)) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
}
this.framecounter++;
if (this.framecounter == this.rate) {
if (!this.captured) {
if (this.stepcounter == this.steps) {
this.stepcounter = 0;
this._parent._y = this._parent._y + this.downshift;
_root.downshift = true;
if (this.forward) {
this.forward = false;
} else {
this.forward = true;
}
this.stepcounter = 0;
} else {
if (this.forward) {
this._parent._x = this._parent._x + this.distance;
} else {
this._parent._x = this._parent._x - this.distance;
}
this.stepcounter++;
}
}
this.framecounter = 0;
}
}
}
}
Instance of Symbol 69 MovieClip "envelope" in Symbol 70 MovieClip [envelope_0] Frame 1
onClipEvent (load) {
this.swapDepths();
this.points = 300;
this.rate = 8;
this.steps = 100;
this.distance = 1;
this.downshift = _root.shiftdown;
this.framecounter = 0;
this.stepcounter = 0;
this.forward = true;
this.hitsamplerate = 10;
this.hitcounter = 0;
_root.reset_score = _root.reset_score + this.points;
this.hit_threshhold = 23;
this.beam_resist = 0;
this.required_charge = 1000;
this.charge = 0;
this.charged = false;
this.swapDepths(10);
this._parent.startwidth = this._parent._width;
this._parent.startheight = this._parent._height;
_root.envelopes_left++;
_root.badguys[_root.spawned] = this;
_root.spawned++;
_root.main_code.beam.attached = false;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if ((_root.envelopes_left_temp > this._parent._x) || (_root.envelopes_left_temp == 0)) {
_root.envelopes_left_temp = this._parent._x;
}
if ((_root.envelopes_right_temp < this._parent._x) || (_root.envelopes_right_temp == 0)) {
_root.envelopes_right_temp = this._parent._x;
}
if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
if ((_root.envelopes_highest_temp > this._parent._y) || (_root.envelopes_highest_temp == 0)) {
_root.envelopes_highest_temp = this._parent._y;
}
}
if ((!this._parent.envelope_glow) && (this.charged)) {
if (_root.enable_beam == this._parent) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
if (_root.envelope_chain != 0) {
if ((_root.envelope_chain >= 3) && (_root.accelerators < 1)) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "accelerator";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else if (_root.envelope_chain >= 2) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "killfile";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else {
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
}
}
this._parent._y = this._parent._y + 10;
this._parent._x = _root.main_code.ship._x;
this.size_ratio = Math.abs(_root.main_code.ship._y - this._parent._y) / this.distance_to_ship;
if (this.size_ratio < 0.2) {
this.size_ratio = 0.2;
}
this._parent._width = this._parent.startwidth * this.size_ratio;
this._parent._height = this._parent.startheight * this.size_ratio;
if (this._parent._y >= _root.main_code.ship._y) {
_root.envelopes_left--;
this.removeMovieClip();
}
} else {
if (this._parent._y > _root.lowest_envelope) {
_root.lowest_envelope = this._parent._y;
}
if (this._parent._y > 400) {
_root.attachMovie("splat", "explode", 555);
_root.explode._x = _root.ship._x;
_root.explode._y = _root.ship._y;
_root.main_code.ship._visible = false;
_root.tooslowjoe = _root.game_level;
_root.main_code.reset();
}
if ((((_root.main_code.beam._y - _root.main_code.beam._height) - 27) <= this._parent._y) && (Math.abs(_root.main_code.beam._x - this._parent._x) < this.hit_threshhold)) {
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.progress_bar.removeMovieClip();
this.charged = true;
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
_root.envelope_chain++;
}
} else {
this.charge = this.charge + _root.beam_charge_rate;
this.progress_bar.bar._width = (66 * this.charge) / this.required_charge;
}
} else {
this._parent.attachMovie("envelope_glow", "envelope_glow", 1);
_root.soundCharged.start();
this._parent.envelope_glow.cacheAsBitmap = true;
this.attachMovie("progress", "progress_bar", 10);
this.progress_bar.bar._width = 0;
this.progress_bar.swapDepths(1000);
_root.main_code.beam.attached = this._parent;
}
} else {
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
}
if ((!this.charged) && (this.progress_bar)) {
this.progress_bar.removeMovieClip();
this.charge = 0;
}
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.distance_to_ship = Math.abs(_root.main_code.ship._y - this._parent._y);
this._parent.envelope_glow.removeMovieClip();
} else {
this.charge = 0;
this.progress_bar.removeMovieClip();
this._parent.envelope_glow.removeMovieClip();
}
} else if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
_root.enable_beam = this._parent;
}
if ((_root.enable_beam == this._parent) && (Math.abs(_root.main_code.ship._x - this._parent._x) > this.hit_threshhold)) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
}
this.framecounter++;
if (this.framecounter == this.rate) {
if (!this.captured) {
if (this.stepcounter == this.steps) {
this.stepcounter = 0;
this._parent._y = this._parent._y + this.downshift;
_root.downshift = true;
if (this.forward) {
this.forward = false;
} else {
this.forward = true;
}
this.stepcounter = 0;
} else {
if (this.forward) {
this._parent._x = this._parent._x + this.distance;
} else {
this._parent._x = this._parent._x - this.distance;
}
this.stepcounter++;
}
}
this.framecounter = 0;
}
}
}
}
Instance of Symbol 73 MovieClip "envelope" in Symbol 74 MovieClip [envelope_1] Frame 1
onClipEvent (load) {
this.swapDepths();
this.points = 300;
this.rate = 8;
this.steps = 100;
this.distance = 1;
this.downshift = _root.shiftdown;
this.framecounter = 0;
this.stepcounter = 0;
this.forward = true;
this.hitsamplerate = 10;
this.hitcounter = 0;
_root.reset_score = _root.reset_score + this.points;
this.hit_threshhold = 23;
this.beam_resist = 0;
this.required_charge = 1000;
this.charge = 0;
this.charged = false;
this.swapDepths(10);
this._parent.startwidth = this._parent._width;
this._parent.startheight = this._parent._height;
_root.envelopes_left++;
_root.badguys[_root.spawned] = this;
_root.spawned++;
_root.main_code.beam.attached = false;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if ((_root.envelopes_left_temp > this._parent._x) || (_root.envelopes_left_temp == 0)) {
_root.envelopes_left_temp = this._parent._x;
}
if ((_root.envelopes_right_temp < this._parent._x) || (_root.envelopes_right_temp == 0)) {
_root.envelopes_right_temp = this._parent._x;
}
if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
if ((_root.envelopes_highest_temp > this._parent._y) || (_root.envelopes_highest_temp == 0)) {
_root.envelopes_highest_temp = this._parent._y;
}
}
if ((!this._parent.envelope_glow) && (this.charged)) {
if (_root.enable_beam == this._parent) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
if (_root.envelope_chain != 0) {
if ((_root.envelope_chain >= 3) && (_root.accelerators < 1)) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "accelerator";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else if (_root.envelope_chain >= 2) {
_root.powerup_y = this._parent._y;
_root.powerup_x = this._parent._x;
_root.powerup_type = "killfile";
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
} else {
_root.score = _root.score + (this.points * _root.envelope_chain);
_root.envelope_chain = 0;
}
}
this._parent._y = this._parent._y + 10;
this._parent._x = _root.main_code.ship._x;
this.size_ratio = Math.abs(_root.main_code.ship._y - this._parent._y) / this.distance_to_ship;
if (this.size_ratio < 0.2) {
this.size_ratio = 0.2;
}
this._parent._width = this._parent.startwidth * this.size_ratio;
this._parent._height = this._parent.startheight * this.size_ratio;
if (this._parent._y >= _root.main_code.ship._y) {
_root.envelopes_left--;
this.removeMovieClip();
}
} else {
if (this._parent._y > _root.lowest_envelope) {
_root.lowest_envelope = this._parent._y;
}
if (this._parent._y > 400) {
_root.attachMovie("splat", "explode", 555);
_root.explode._x = _root.ship._x;
_root.explode._y = _root.ship._y;
_root.main_code.ship._visible = false;
_root.tooslowjoe = _root.game_level;
_root.main_code.reset();
}
if ((((_root.main_code.beam._y - _root.main_code.beam._height) - 27) <= this._parent._y) && (Math.abs(_root.main_code.beam._x - this._parent._x) < this.hit_threshhold)) {
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.progress_bar.removeMovieClip();
this.charged = true;
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
_root.envelope_chain++;
}
} else {
this.charge = this.charge + _root.beam_charge_rate;
this.progress_bar.bar._width = (66 * this.charge) / this.required_charge;
}
} else {
this._parent.attachMovie("envelope_glow", "envelope_glow", 1);
_root.soundCharged.start();
this._parent.envelope_glow.cacheAsBitmap = true;
this.attachMovie("progress", "progress_bar", 10);
this.progress_bar.bar._width = 0;
this.progress_bar.swapDepths(1000);
_root.main_code.beam.attached = this._parent;
}
} else {
if (_root.main_code.beam.attached == this._parent) {
_root.main_code.beam.attached = false;
}
if ((!this.charged) && (this.progress_bar)) {
this.progress_bar.removeMovieClip();
this.charge = 0;
}
if (this._parent.envelope_glow) {
if (this.charge >= this.required_charge) {
this.distance_to_ship = Math.abs(_root.main_code.ship._y - this._parent._y);
this._parent.envelope_glow.removeMovieClip();
} else {
this.charge = 0;
this.progress_bar.removeMovieClip();
this._parent.envelope_glow.removeMovieClip();
}
} else if (Math.abs(_root.main_code.ship._x - this._parent._x) <= this.hit_threshhold) {
_root.enable_beam = this._parent;
}
if ((_root.enable_beam == this._parent) && (Math.abs(_root.main_code.ship._x - this._parent._x) > this.hit_threshhold)) {
_root.enable_beam = false;
_root.main_code.beam._height = 0;
}
}
this.framecounter++;
if (this.framecounter == this.rate) {
if (!this.captured) {
if (this.stepcounter == this.steps) {
this.stepcounter = 0;
this._parent._y = this._parent._y + this.downshift;
_root.downshift = true;
if (this.forward) {
this.forward = false;
} else {
this.forward = true;
}
this.stepcounter = 0;
} else {
if (this.forward) {
this._parent._x = this._parent._x + this.distance;
} else {
this._parent._x = this._parent._x - this.distance;
}
this.stepcounter++;
}
}
this.framecounter = 0;
}
}
}
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Instance of Symbol 79 MovieClip "graphics" in Symbol 80 MovieClip [powerup] Frame 1
onClipEvent (load) {
this.threshhold = 518;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if (this._parent._y < this.threshhold) {
this._parent._y = this._parent._y + _root.powerupspeed;
this._parent.activeated = true;
} else {
this._parent.activeated = false;
this._parent.removeMovieClip();
this._parent = null;
}
}
}
Symbol 117 MovieClip [e_fireball] Frame 21
gotoAndPlay (12);
Instance of Symbol 117 MovieClip [e_fireball] "graphics" in Symbol 118 MovieClip [e_bullet] Frame 1
onClipEvent (load) {
this.threshhold = 518;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if (this._parent._y < this.threshhold) {
this._parent._y = this._parent._y + _root.bulletspeed;
this._parent.activeated = true;
} else {
this._parent.activeated = false;
this._parent.removeMovieClip();
this._parent = null;
}
}
}
Instance of Symbol 121 MovieClip "graphics" in Symbol 122 MovieClip [bullet] Frame 1
onClipEvent (load) {
this.threshhold = 25;
}
onClipEvent (enterFrame) {
if (!_root.game_paused) {
if (this._parent._y > this.threshhold) {
this._parent._y = this._parent._y - _root.bulletspeed;
this._parent.activeated = true;
} else {
this._parent.removeMovieClip();
this._parent.activeated = false;
}
}
}
Symbol 201 MovieClip [splat] Frame 1
_root.main_code.flashything.gotoAndPlay("start");
_root.soundExplosion.start();
Symbol 201 MovieClip [splat] Frame 40
removeMovieClip(this);
Symbol 214 MovieClip [score_floater] Frame 1
this.score = 0;
Symbol 214 MovieClip [score_floater] Frame 60
this.removeMovieClip();
Symbol 255 MovieClip [envelope_glow] Frame 20
gotoAndPlay (4);
Symbol 271 MovieClip Frame 9
this.stop();
Symbol 294 MovieClip Frame 1
this.can_move = false;
_root.soundTrollship.start();
Symbol 294 MovieClip Frame 61
this.can_move = true;
Symbol 294 MovieClip Frame 120
gotoAndPlay ("idle");
Symbol 294 MovieClip Frame 121
this.can_move = false;
this.waiting = this.wait_time;
Symbol 294 MovieClip Frame 143
_root.soundTrollship.start();
Symbol 294 MovieClip Frame 180
this.stop();
this.can_move = false;
_root.soundTrollRepair.start();
this.waiting = _root.troll.wait_time;
Symbol 294 MovieClip Frame 181
_root.soundTrollRepair.stop("repair");
Symbol 294 MovieClip Frame 240
this.can_move = true;
this.gotoAndPlay("idle");