STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229456
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2574 · P5148

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/59255217?noj=FRM59255217-5DC" width="1" height="1"></div>

Alice in Spaceland 3.swf

This is the info page for
Flash #57234

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 24 { frame 61 { gotoAndPlay(1); } } movieClip 25 { } movieClip 32 { } movieClip 34 Boss Final Win { frame 100 { stopAllSounds(); Nonoba.api.NonobaAPI.SubmitScore('score3final5', _root.score, function (response) { switch (response) { case Nonoba.api.NonobaAPI.SUCCESS: trace('The score was submitted successfully'); break; case Nonoba.api.NonobaAPI.NOT_LOGGED_IN: trace('The user is not logged in'); break; case Nonoba.api.NonobaAPI.ERROR: trace('An error occurred.'); } }); } frame 101 { stopAllSounds(); Nonoba.api.NonobaAPI.SubmitScore('lives5final3', lives, function (response) { switch (response) { case Nonoba.api.NonobaAPI.SUCCESS: trace('The score was submitted successfully'); break; case Nonoba.api.NonobaAPI.NOT_LOGGED_IN: trace('The user is not logged in'); break; case Nonoba.api.NonobaAPI.ERROR: trace('An error occurred.'); } }); } frame 102 { Nonoba.api.NonobaAPI.AwardAchievement('gaemcompeltdz5', function (response, count) { switch (response) { case Nonoba.api.NonobaAPI.SUCCESS: trace('The achievement was successfully awarded.'); trace('It has been awarded ' + count + ' times.'); break; case Nonoba.api.NonobaAPI.NOT_LOGGED_IN: trace('The user is not logged in.'); break; case Nonoba.api.NonobaAPI.ERROR: trace('An error occurred.'); } }); } frame 131 { gotoAndPlay(103); } } movieClip 42 { frame 21 { gotoAndPlay(1); } } movieClip 43 { frame 40 { gotoAndPlay(1); } } movieClip 44 { frame 40 { gotoAndPlay(1); } } movieClip 45 { } movieClip 53 { frame 21 { gotoAndPlay(1); } } movieClip 61 { frame 21 { gotoAndPlay(1); } } movieClip 69 { frame 21 { gotoAndPlay(1); } } movieClip 77 { frame 21 { gotoAndPlay(1); } } movieClip 85 { frame 21 { gotoAndPlay(1); } } movieClip 93 { frame 21 { gotoAndPlay(1); } } movieClip 101 { frame 21 { gotoAndPlay(1); } } movieClip 116 { } movieClip 118 { } movieClip 121 { } movieClip 123 { frame 1 { _parent._parent.winlevel(); } } movieClip 124 boss1 { frame 30 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(10000); gotoAndPlay('explode'); } if (health <= 74) { _parent.addpoints(100); } if (health <= 65) { boss1r1._visible = false; boss1r2._visible = true; } if (health <= 55) { boss1r2._visible = false; boss1r3._visible = true; } if (health <= 45) { boss1r3._visible = false; boss1r4._visible = true; } if (health <= 35) { boss1r4._visible = false; boss1r5._visible = true; } if (health <= 25) { boss1r5._visible = false; boss1r6._visible = true; } if (health <= 15) { boss1r6._visible = false; boss1r7._visible = true; } if (health <= 5) { boss1r6._visible = false; boss1r7._visible = true; } } function enemyaction() { if (boss1r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_parent.ship._x > _x + 313) { _x = _x + 1; } else { _x = _x - 1; } --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; --guncooldown5; --guncooldown6; --guncooldown7; if (guncooldown == 0) { guncooldown = 41; _parent.insertenemy('boss1bullet1', _x + 53, _y + 299); } if (guncooldown2 == 0) { guncooldown2 = 42; _parent.insertenemy('boss1bullet1', _x + 139, _y + 292); } if (guncooldown3 == 0) { guncooldown3 = 43; _parent.insertenemy('boss1bullet1', _x + 219, _y + 299); } if (guncooldown4 == 0) { guncooldown4 = 44; _parent.insertenemy('boss1bullet1', _x + 292, _y + 280); } if (guncooldown5 == 0) { guncooldown5 = 45; _parent.insertenemy('boss1bullet1', _x + 367, _y + 270); } if (guncooldown6 == 0) { guncooldown6 = 46; _parent.insertenemy('boss1bullet1', _x + 458, _y + 270); } if (guncooldown7 == 0) { guncooldown7 = 47; _parent.insertenemy('boss1bullet1', _x + 547, _y + 270); } } stop(); health = 75; boss1r0._visible = true; boss1r1._visible = true; boss1r2._visible = false; boss1r3._visible = false; boss1r4._visible = false; boss1r5._visible = false; boss1r6._visible = false; boss1r7._visible = false; startx = _x; guncooldown = 0; guncooldown2 = 10; guncooldown3 = 20; guncooldown4 = 30; guncooldown5 = 40; guncooldown6 = 50; guncooldown7 = 60; } frame 32 { guncooldown = 55555; guncooldown2 = 55555; guncooldown3 = 55555; guncooldown4 = 55555; guncooldown5 = 55555; guncooldown6 = 55555; guncooldown7 = 55555; } frame 201 { stop(); } } movieClip 127 { } movieClip 128 tint_clouds { } movieClip 132 { } movieClip 135 { } button 136 { on (press) { _parent.gotoAndPlay('cutscene1'); this.removeMovieClip(); } } movieClip 137 Level 1 Complete { frame 160 { gotoAndPlay(1); } } movieClip 140 { } movieClip 141 { frame 1 { gotoAndPlay(1); } } movieClip 142 star3 { frame 1 { stop(); newspeedandsize = Math.random() * 5 + 1; speed = newspeedandsize; _width = newspeedandsize; _height = newspeedandsize; _y = Math.random() * Stage.height; _x = Math.random() * Stage.width; } } movieClip 144 Level 1 { frame 80 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } movieClip 146 hitarea2 { } movieClip 149 hitarea { } movieClip 153 { } movieClip 169 ship { frame 1 { stop(); if (warmedup == undefined) { gotoAndPlay('warmup'); } } frame 2 { play(); } frame 13 { _parent.loselife(); } frame 75 { warmedup = 1; } } movieClip 171 a1bullet1 { frame 1 { function enemyaction() { _y = _y + 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 172 a1bullet2 { frame 1 { function enemyaction() { _y = _y + 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 173 a1bullet3 { frame 1 { function enemyaction() { _y = _y + 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 174 a1bullet4 { frame 1 { function enemyaction() { _y = _y + 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 176 b7bullet1 { frame 1 { function enemyaction() { _y = _y + 8; _x = _x - 8; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 177 b7bullet2 { frame 1 { function enemyaction() { _y = _y + 8; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 178 b7bullet3 { frame 1 { function enemyaction() { _y = _y + 8; _x = _x + 8; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 181 { } movieClip 182 c3bullet1 { frame 1 { function enemyaction() { _x = _x + 3; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 20 { stop(); } } movieClip 183 c3bullet2 { frame 1 { function enemyaction() { _y = _y - 3; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 20 { stop(); } } movieClip 184 c3bullet3 { frame 1 { function enemyaction() { _x = _x - 3; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 20 { stop(); } } movieClip 185 c3bullet4 { frame 1 { function enemyaction() { _y = _y + 3; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 20 { stop(); } } movieClip 186 b7bullet4 { frame 1 { function enemyaction() { _y = _y + 8; _x = _x - 4; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 187 b7bullet5 { frame 1 { function enemyaction() { _y = _y + 8; _x = _x + 4; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 190 d1bullet { frame 1 { function enemyaction() { _y = _y + 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 192 d2bullet { frame 1 { function enemyaction() { _x = _x + 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 195 d3bullet { frame 1 { function enemyaction() { _y = _y - 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 198 d4bullet { frame 1 { function enemyaction() { _x = _x - 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 201 { } movieClip 203 d6bullet1 { frame 1 { function enemyaction() { _x = _x - 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 205 { } movieClip 206 d6bullet2 { frame 1 { function enemyaction() { _y = _y + 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 207 { } movieClip 208 d6bullet3 { frame 1 { function enemyaction() { _x = _x + 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 209 { } movieClip 210 d6bullet4 { frame 1 { function enemyaction() { _y = _y - 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 227 e1bullet { frame 1 { function enemyaction() { _y = _y + 5; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 100 { stop(); } } movieClip 229 Level 2 { frame 80 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } movieClip 231 Level 3 { frame 80 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } movieClip 232 boss1bullet1 { frame 1 { function enemyaction() { _y = _y + 1; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 3 { function enemyaction() { _y = _y + 2; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 5 { function enemyaction() { _y = _y + 3; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 7 { function enemyaction() { _y = _y + 4; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 9 { function enemyaction() { _y = _y + 5; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 11 { function enemyaction() { _y = _y + 6; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 13 { function enemyaction() { _y = _y + 8; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 15 { function enemyaction() { _y = _y + 9; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } frame 17 { function enemyaction() { _y = _y + 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } stop(); } } movieClip 235 Boss 1 { frame 1 { stopAllSounds(); } frame 2 { mySoundboss1 = new Sound(); mySoundboss1.attachSound('bossmusic'); mySoundboss1.start(0, 999); } frame 80 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } button 237 { on (press) { _parent.gotoAndPlay('lv2'); this.removeMovieClip(); } } movieClip 238 Boss 1 Win { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } movieClip 241 { } movieClip 243 boss2bullet1 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 20; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 245 Boss 2 { frame 1 { stopAllSounds(); } frame 2 { mySoundboss1 = new Sound(); mySoundboss1.attachSound('bossmusic'); mySoundboss1.start(0, 999); } frame 80 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } movieClip 247 boss2bullet2 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 20; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 249 boss2bullet3 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 20; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 251 boss2bullet4 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 20; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 253 boss2bullet5 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 20; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } button 255 { on (press) { _parent.gotoAndPlay('lv3'); this.removeMovieClip(); } } movieClip 256 Boss 2 Win { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } movieClip 258 { } movieClip 260 laserlv5power { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0v2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 3; } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 265 { } movieClip 268 { } movieClip 271 { } movieClip 275 { frame 200 { gotoAndPlay(1); } } movieClip 279 { frame 200 { gotoAndPlay(1); } } movieClip 283 { frame 200 { gotoAndPlay(1); } } movieClip 289 { } movieClip 294 { } movieClip 295 { } movieClip 296 { } movieClip 299 { } movieClip 300 { } movieClip 301 { } movieClip 302 { frame 30 { gotoAndPlay(1); } } movieClip 304 { } movieClip 319 { frame 600 { gotoAndPlay(1); } } movieClip 320 { frame 900 { gotoAndPlay(301); } } movieClip 322 { } movieClip 324 { } movieClip 329 { frame 16 { gotoAndPlay(1); } } movieClip 331 boss3 { frame 1 { _y = 10; } frame 56 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(25000); gotoAndPlay('explode'); } if (health <= 154) { _parent.addpoints(250); gotoAndPlay('hit'); } if (health <= 145) { f1._visible = true; } if (health <= 135) { f2._visible = true; } if (health <= 125) { f3._visible = true; } if (health <= 115) { f4._visible = true; } if (health <= 105) { f5._visible = true; } if (health <= 95) { f6._visible = true; } if (health <= 85) { f7._visible = true; } if (health <= 75) { f8._visible = true; } if (health <= 65) { f9._visible = true; } if (health <= 55) { f10._visible = true; } if (health <= 45) { f11._visible = true; } if (health <= 35) { f12._visible = true; } if (health <= 25) { f13._visible = true; } if (health <= 15) { f14._visible = true; } if (health <= 5) { f15._visible = true; } } function enemyaction() { if (h1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (h2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (h3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (h4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (h5.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (h6.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (hook1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (hook2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; --guncooldown5; --guncooldown6; --guncooldown7; --guncooldown8; if (guncooldown == 0) { guncooldown = 108; _parent.insertenemy('boss3bullet1', _x - 255.5, _y + 181.8); } if (guncooldown2 == 0) { guncooldown2 = 108; _parent.insertenemy('boss3bullet1', _x - 257.1, _y + 296.9); } if (guncooldown3 == 0) { guncooldown3 = 108; _parent.insertenemy('boss3bullet1', _x - 254.1, _y + 417.9); } if (guncooldown4 == 0) { guncooldown4 = 108; _parent.insertenemy('boss3bullet2', _x + 254.1, _y + 417.9); } if (guncooldown5 == 0) { guncooldown5 = 108; _parent.insertenemy('boss3bullet2', _x + 257.1, _y + 296.9); } if (guncooldown6 == 0) { guncooldown6 = 108; _parent.insertenemy('boss3bullet2', _x + 255.5, _y + 181.8); } if (guncooldown7 == 0) { guncooldown7 = 500; _parent.insertenemy('boss3laser1', _x - 184.3, _y + 54.5); } if (guncooldown8 == 0) { guncooldown8 = 500; _parent.insertenemy('boss3laser2', _x + 184.3, _y + 54.5); } } stop(); health = 155; f1._visible = false; f2._visible = false; f3._visible = false; f4._visible = false; f5._visible = false; f6._visible = false; f7._visible = false; f8._visible = false; f9._visible = false; f10._visible = false; f11._visible = false; f12._visible = false; f13._visible = false; f14._visible = false; f15._visible = false; startx = _x; guncooldown = 18; guncooldown2 = 36; guncooldown3 = 54; guncooldown4 = 72; guncooldown5 = 90; guncooldown6 = 108; guncooldown7 = 250; guncooldown8 = 500; } frame 58 { stop(); } frame 59 { gotoAndPlay(60); } frame 60 { guncooldown = 55555; guncooldown2 = 55555; guncooldown3 = 55555; guncooldown4 = 55555; guncooldown5 = 55555; guncooldown6 = 55555; guncooldown7 = 55555; guncooldown8 = 55555; } frame 155 { stop(); } } movieClip 334 i1bullet1 { frame 1 { function enemyaction() { _y = _y + 15; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 335 i1bullet2 { frame 1 { function enemyaction() { _y = _y + 15; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 336 i1bullet3 { frame 1 { function enemyaction() { _y = _y + 15; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 337 i1bullet4 { frame 1 { function enemyaction() { _y = _y + 15; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 338 i1bullet5 { frame 1 { function enemyaction() { _y = _y + 15; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 340 i2bullet1 { frame 1 { function enemyaction() { _y = _y - 12; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 342 i2bullet2 { frame 1 { function enemyaction() { _x = _x + 12; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 344 i2bullet3 { frame 1 { function enemyaction() { _y = _y + 12; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 346 i2bullet4 { frame 1 { function enemyaction() { _x = _x - 12; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 348 i2bullet5 { frame 1 { function enemyaction() { _x = _x + 12; _y = _y - 12; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 350 i2bullet6 { frame 1 { function enemyaction() { _x = _x + 12; _y = _y + 12; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 352 i2bullet7 { frame 1 { function enemyaction() { _x = _x - 12; _y = _y + 12; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 354 i2bullet8 { frame 1 { function enemyaction() { _x = _x - 12; _y = _y - 12; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 362 { } movieClip 368 { } movieClip 369 { } movieClip 370 { frame 25 { gotoAndPlay(1); } } movieClip 371 i6bullet { frame 1 { function enemyaction() { _y = _y + Math.random() * 9; _x = _x + Math.random() * 9; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 372 i6bullet2 { frame 1 { function enemyaction() { _y = _y + Math.random() * 9; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 373 i6bullet3 { frame 1 { function enemyaction() { _y = _y + Math.random() * 9; _x = _x - Math.random() * 9; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 376 { } movieClip 377 { frame 40 { gotoAndPlay(1); } } movieClip 378 boss3bullet1 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 10; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 381 { } movieClip 382 { frame 40 { gotoAndPlay(1); } } movieClip 383 boss3bullet2 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 10; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 386 { } movieClip 388 { } movieClip 391 { } movieClip 393 boss3laser1 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 30 { function enemyaction() { if (r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r5.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r6.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r7.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r8.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r9.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r10.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r11.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r12.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r13.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r14.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r15.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r16.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r17.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r18.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r19.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r20.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r21.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r22.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r23.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r24.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r25.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r26.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r27.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r28.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r29.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r30.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r31.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r32.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } } frame 50 { stop(); this.onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 396 { } movieClip 399 { } movieClip 401 boss3laser2 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 30 { function enemyaction() { if (r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r5.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r6.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r7.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r8.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r9.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r10.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r11.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r12.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r13.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r14.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r15.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r16.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r17.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r18.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r19.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r20.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r21.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r22.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r23.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r24.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r25.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r26.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r27.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r28.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r29.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r30.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r31.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r32.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } } frame 50 { stop(); this.onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 405 { } movieClip 407 { } movieClip 409 boss4 { frame 1 { _y = 30; } frame 56 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(10000); gotoAndPlay('explode'); } else { _parent.addpoints(500); gotoAndPlay('hit'); } } function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 20; _parent.insertenemy('boss4bullet1', _x - 0.2, _y + 26.6); } if (_parent.ship._x > _x) { _x = _x + 5; } else { _x = _x - 5; } if (boss4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } stop(); health = 125; guncooldown = 20; } frame 56 { stop(); } frame 58 { stop(); } frame 66 { stop(); } } movieClip 411 boss4bullet1 { frame 1 { function enemyaction() { _y = _y + 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 413 boss4bullet2 { frame 1 { function enemyaction() { _x = _x - 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 415 boss4bullet3 { frame 1 { function enemyaction() { _y = _y - 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 417 boss4bullet4 { frame 1 { function enemyaction() { _x = _x + 10; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } } } movieClip 420 { } movieClip 423 { frame 1 { _parent._parent.removeenemy(_parent._name); } } movieClip 424 boss4a { frame 1 { _x = 590; _y = 313; } frame 56 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(2500); gotoAndPlay('explode'); } else { _parent.addpoints(100); gotoAndPlay('hit'); } } function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 24; _parent.insertenemy('boss4bullet2', _x - 26.6, _y - 0.2); } if (_parent.ship._y > _y) { _y = _y + 5; } else { _y = _y - 5; } if (boss4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } stop(); health = 50; guncooldown = 24; } frame 56 { stop(); } frame 58 { stop(); } frame 66 { stop(); } } movieClip 427 { } movieClip 430 boss4b { frame 1 { _y = 600; } frame 56 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(2500); gotoAndPlay('explode'); } else { _parent.addpoints(100); gotoAndPlay('hit'); } } function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 32; _parent.insertenemy('boss4bullet3', _x + 0.2, _y - 26.6); } if (_parent.ship._x > _x) { _x = _x + 5; } else { _x = _x - 5; } if (boss4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } stop(); health = 50; guncooldown = 32; } frame 56 { stop(); } frame 58 { stop(); } frame 66 { stop(); } } movieClip 433 { } movieClip 435 boss4c { frame 1 { _x = 30; _y = 313; } frame 56 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(2500); gotoAndPlay('explode'); } else { _parent.addpoints(100); gotoAndPlay('hit'); } } function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 27; _parent.insertenemy('boss4bullet4', _x + 26.6, _y + 0.1); } if (_parent.ship._y > _y) { _y = _y + 5; } else { _y = _y - 5; } if (boss4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } stop(); health = 50; guncooldown = 27; } frame 56 { stop(); } frame 58 { stop(); } frame 66 { stop(); } } movieClip 437 boss4sp1name { frame 1 { function enemyaction() { if (_parent.ship._x > _x) { _x = _x + 3; } else { _x = _x - 3; } if (_parent.ship._y > _y) { _y = _y + 3; } else { _y = _y - 3; } } stop(); _y = 30; } } movieClip 439 Boss 4 SP { frame 1 { stopAllSounds(); } frame 2 { mySoundboss1 = new Sound(); mySoundboss1.attachSound('mcgillicutty'); mySoundboss1.start(0, 999); } frame 80 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } movieClip 441 Boss 3 { frame 1 { stopAllSounds(); } frame 2 { mySoundboss1 = new Sound(); mySoundboss1.attachSound('bossmusic'); mySoundboss1.start(0, 999); } frame 80 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } movieClip 443 Boss 4 { frame 1 { stopAllSounds(); } frame 2 { mySoundboss1 = new Sound(); mySoundboss1.attachSound('bossmusic'); mySoundboss1.start(0, 999); } frame 80 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } movieClip 468 { } movieClip 469 { frame 20 { gotoAndPlay(1); } } movieClip 471 bossfinalbullet { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } stop(); movespeed = 20; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 474 { } movieClip 476 bossfinalbullet2 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 12; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 2 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 12; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 31 { gotoAndPlay(2); } } movieClip 478 { } movieClip 480 { } movieClip 482 { } movieClip 483 bossfinalmoonlaser { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 2 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 3 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 4 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 5 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 6 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 7 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 8 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 9 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 10 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 11 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 12 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 13 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 14 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 15 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 16 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 17 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 18 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 19 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 20 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 21 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 22 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 23 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 24 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 25 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 26 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 27 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 28 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 29 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; } movespeed = 0; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } frame 45 { function enemyaction() { if (r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r5.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r6.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r7.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r8.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r9.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r10.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r11.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r12.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r13.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r14.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r15.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r16.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r17.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r18.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r19.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r20.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r21.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r22.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r23.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r24.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r25.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r26.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r27.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r28.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r29.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r30.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r31.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (r32.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } } frame 65 { stop(); this.onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 485 Boss Final { frame 1 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } movieClip 488 { } movieClip 490 boss5bullet1 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 30; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 492 boss5bullet2 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 30; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 494 boss5bullet3 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 30; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 496 boss5bullet4 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 30; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 498 boss5bullet5 { frame 1 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } movespeed = 30; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 500 { } movieClip 501 boss5i { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 0; } health = 5; _x = Math.random() * 600 + 25; _y = 16; } frame 71 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 10; } } frame 75 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 15; } } frame 78 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 20; } } frame 81 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 25; } } frame 84 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 30; if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); } frame 92 { stop(); } } movieClip 503 { } movieClip 504 laserlv5 { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0v2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 505 laserlv5left { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enehmies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0v2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 506 laserlv5right { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0v2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 510 { } movieClip 511 { } movieClip 512 poweruptrishot { frame 1 { function takedamage(strength) { _parent.removeenemy(_name); } function enemyaction() { _y = _y + 2; if (puts.hitTest(_parent.ship.hitarea)) { _parent.currentweapon = 'trishot'; _parent.removeenemy(_name); } if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); } } movieClip 516 { } movieClip 517 { } movieClip 518 poweruppowershot { frame 1 { function takedamage(strength) { _parent.removeenemy(_name); } function enemyaction() { _y = _y + 2; if (pups.hitTest(_parent.ship.hitarea)) { _parent.currentweapon = 'powershot'; _parent.removeenemy(_name); } if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); } } movieClip 519 laserlv4left { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.foe'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0v2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 520 laserlv4right { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.foe'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0v2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 524 { } movieClip 525 extralife { frame 1 { function takedamage(strength) { _parent.removeenemy(_name); } function enemyaction() { _y = _y + 2; if (extralife.hitTest(_parent.ship.hitarea)) { ++_parent.lives; _parent.removeenemy(_name); } if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); } } button 527 { on (press) { _parent.gotoAndPlay('cutscene2'); this.removeMovieClip(); } } movieClip 528 Level 2 Complete { frame 160 { gotoAndPlay(1); } } button 530 { on (press) { _parent.gotoAndPlay('cutscene3'); this.removeMovieClip(); } } movieClip 531 Level 3 Complete { frame 160 { gotoAndPlay(1); } } button 533 { on (press) { _parent.gotoAndPlay('cutscene4'); this.removeMovieClip(); } } movieClip 534 Level 4 Complete { frame 160 { gotoAndPlay(1); } } button 536 { on (press) { _parent.gotoAndPlay('cutscene5'); this.removeMovieClip(); } } movieClip 537 Level 5 Complete { frame 160 { gotoAndPlay(1); } } button 539 { on (press) { _parent.gotoAndPlay('lv4'); this.removeMovieClip(); } } movieClip 540 Boss 3 Win { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } button 542 { on (press) { _parent.gotoAndPlay('cutscene4sp'); this.removeMovieClip(); } } movieClip 543 Boss 4 Win { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } button 545 { on (press) { _parent.gotoAndPlay('lv5'); this.removeMovieClip(); } } movieClip 546 Boss 4 SP Win { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } button 548 { on (press) { _parent.gotoAndPlay('cutscenefinal'); this.removeMovieClip(); } } movieClip 549 Boss 5 Win { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } movieClip 551 Boss 5 { frame 1 { stopAllSounds(); } frame 2 { mySoundboss1 = new Sound(); mySoundboss1.attachSound('bossmusic'); mySoundboss1.start(0, 999); } frame 80 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } movieClip 553 Level 4 { frame 80 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } movieClip 555 Level 5 { frame 80 { onEnterFrame = function () { _parent.newgame(); this.removeMovieClip(); }; } } movieClip 557 losegame { frame 1 { stop(); stopAllSounds(); } } button 559 { on (press) { _parent.gotoAndPlay('boss2a'); this.removeMovieClip(); } } movieClip 560 Boss Mode { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } movieClip 561 Boss Mode Win { frame 1 { _parent.gotoAndPlay('bossmodewinpre'); } } button 562 { on (press) { _parent.gotoAndPlay('boss3a'); this.removeMovieClip(); } } movieClip 563 Boss Mode 2 { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } button 564 { on (press) { _parent.gotoAndPlay('boss4a'); this.removeMovieClip(); } } movieClip 565 Boss Mode 3 { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } button 566 { on (press) { _parent.gotoAndPlay('boss4spv2'); this.removeMovieClip(); } } movieClip 567 Boss Mode 4 { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } button 568 { on (press) { _parent.gotoAndPlay('boss5a'); this.removeMovieClip(); } } movieClip 569 Boss Mode 4 SP { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } button 570 { on (press) { _parent.gotoAndPlay('cutscenefinalv2'); this.removeMovieClip(); } } movieClip 571 Boss Mode 5 { frame 1 { stopAllSounds(); } frame 160 { gotoAndPlay(1); } } movieClip 572 laserlv4power { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.foe'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0v2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 3; } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 573 laserlv3power { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.foe'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r5'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r6'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r7'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r8'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r9'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 3; } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 574 laserlv2power { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.fighter1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.foe'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r5'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r6'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r7'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r8'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r9'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 3; } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 575 laserboss5 { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 579 { } movieClip 581 { } movieClip 583 { } movieClip 584 boss5 { frame 1 { _y = 200; } frame 2 { function takedamage(strength) { health -= strength; if (health <= 199) { _parent.addpoints(150); gotoAndPlay('hit1'); } if (health <= 160) { _parent.addpoints(150); gotoAndPlay('phase2'); } } function enemyaction() { if (boss5r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_parent.ship._x > _x) { _x = _x + 2; } else { _x = _x - 2; } if (_parent.ship._y > _y) { _y = _y + 4; } else { _y = _y - 4; } --guncooldown; if (guncooldown == 0) { guncooldown = 25; _parent.insertenemy('boss5bullet1', _x + 0, _y + 0); } } stop(); health = 200; startx = _x; guncooldown = 25; _y = 200; } frame 4 { stop(); } frame 5 { function takedamage(strength) { health -= strength; if (health <= 159) { _parent.addpoints(150); gotoAndPlay('hit2'); } if (health <= 120) { _parent.addpoints(150); gotoAndPlay('phase3'); } } function enemyaction() { if (boss5r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_parent.ship._x > _x) { _x = _x + 2; } else { _x = _x - 2; } if (_parent.ship._y > _y) { _y = _y + 4; } else { _y = _y - 4; } --guncooldown; --guncooldown2; if (guncooldown == 0) { guncooldown = 25; _parent.insertenemy('boss5bullet1', _x + 0, _y + 0); } if (guncooldown2 == 0) { guncooldown2 = 18; _parent.insertenemy('boss5bullet2', _x + 0, _y + 0); } } stop(); startx = _x; guncooldown = 25; guncooldown2 = 18; } frame 7 { stop(); } frame 8 { function takedamage(strength) { health -= strength; if (health <= 119) { _parent.addpoints(150); gotoAndPlay('hit3'); } if (health <= 80) { _parent.addpoints(150); gotoAndPlay('phase4'); } } function enemyaction() { if (boss5r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_parent.ship._x > _x) { _x = _x + 2; } else { _x = _x - 2; } if (_parent.ship._y > _y) { _y = _y + 4; } else { _y = _y - 4; } --guncooldown; --guncooldown2; --guncooldown3; if (guncooldown == 0) { guncooldown = 25; _parent.insertenemy('boss5bullet1', _x + 0, _y + 0); } if (guncooldown2 == 0) { guncooldown2 = 18; _parent.insertenemy('boss5bullet2', _x + 0, _y + 0); } if (guncooldown3 == 0) { guncooldown3 = 15; _parent.insertenemy('boss5bullet3', _x + 0, _y + 0); } } stop(); startx = _x; guncooldown = 25; guncooldown2 = 18; guncooldown3 = 15; } frame 10 { stop(); } frame 11 { function takedamage(strength) { health -= strength; if (health <= 79) { _parent.addpoints(150); gotoAndPlay('hit4'); } if (health <= 40) { _parent.addpoints(150); gotoAndPlay('phase5'); } } function enemyaction() { if (boss5r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_parent.ship._x > _x) { _x = _x + 2; } else { _x = _x - 2; } if (_parent.ship._y > _y) { _y = _y + 4; } else { _y = _y - 4; } --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; if (guncooldown == 0) { guncooldown = 25; _parent.insertenemy('boss5bullet1', _x + 0, _y + 0); } if (guncooldown2 == 0) { guncooldown2 = 18; _parent.insertenemy('boss5bullet2', _x + 0, _y + 0); } if (guncooldown3 == 0) { guncooldown3 = 15; _parent.insertenemy('boss5bullet3', _x + 0, _y + 0); } if (guncooldown4 == 0) { guncooldown4 = 9; _parent.insertenemy('boss5bullet4', _x + 0, _y + 0); } } stop(); startx = _x; guncooldown = 25; guncooldown2 = 18; guncooldown3 = 15; guncooldown4 = 9; } frame 13 { stop(); } frame 14 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(55555); gotoAndPlay('explode'); } if (health <= 39) { _parent.addpoints(150); gotoAndPlay('hit5'); } } function enemyaction() { if (boss5r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_parent.ship._x > _x) { _x = _x + 2; } else { _x = _x - 2; } if (_parent.ship._y > _y) { _y = _y + 4; } else { _y = _y - 4; } --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; --guncooldown5; if (guncooldown == 0) { guncooldown = 25; _parent.insertenemy('boss5bullet1', _x + 0, _y + 0); } if (guncooldown2 == 0) { guncooldown2 = 18; _parent.insertenemy('boss5bullet2', _x + 0, _y + 0); } if (guncooldown3 == 0) { guncooldown3 = 15; _parent.insertenemy('boss5bullet3', _x + 0, _y + 0); } if (guncooldown4 == 0) { guncooldown4 = 9; _parent.insertenemy('boss5bullet4', _x + 0, _y + 0); } if (guncooldown5 == 0) { guncooldown5 = 5; _parent.insertenemy('boss5bullet5', _x + 0, _y + 0); } } stop(); startx = _x; guncooldown = 25; guncooldown2 = 18; guncooldown3 = 15; guncooldown4 = 9; guncooldown5 = 5; health = 40; } frame 16 { stop(); } frame 17 { gotoAndPlay(71); guncooldown = 55555; guncooldown2 = 55555; guncooldown3 = 55555; guncooldown4 = 55555; guncooldown5 = 55555; } frame 63 { stop(); } } movieClip 592 { } movieClip 594 { } movieClip 595 boss2 { frame 1 { _y = 200; } frame 20 { _y = 200; } frame 46 { _y = 200; } frame 55 { function takedamage(strength) { health -= strength; if (health <= 99) { _parent.addpoints(150); gotoAndPlay('hit1'); } if (health <= 80) { _parent.addpoints(150); gotoAndPlay('phase2'); } } function enemyaction() { if (boss2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } if (_parent.ship._y > _y) { _y = _y + 3; } else { _y = _y - 3; } --guncooldown; if (guncooldown == 0) { guncooldown = 30; _parent.insertenemy('boss2bullet1', _x + 0, _y + 0); } } stop(); health = 100; startx = _x; guncooldown = 30; _y = 200; } frame 57 { stop(); } frame 58 { function takedamage(strength) { health -= strength; if (health <= 79) { _parent.addpoints(150); gotoAndPlay('hit2'); } if (health <= 60) { _parent.addpoints(150); gotoAndPlay('phase3'); } } function enemyaction() { if (boss2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } if (_parent.ship._y > _y) { _y = _y + 3; } else { _y = _y - 3; } --guncooldown; --guncooldown2; if (guncooldown == 0) { guncooldown = 50; _parent.insertenemy('boss2bullet1', _x + 0, _y + 0); } if (guncooldown2 == 0) { guncooldown2 = 39; _parent.insertenemy('boss2bullet2', _x + 0, _y + 0); } } stop(); startx = _x; guncooldown = 50; guncooldown2 = 39; } frame 60 { stop(); } frame 61 { function takedamage(strength) { health -= strength; if (health <= 59) { _parent.addpoints(150); gotoAndPlay('hit3'); } if (health <= 40) { _parent.addpoints(150); gotoAndPlay('phase4'); } } function enemyaction() { if (boss2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } if (_parent.ship._y > _y) { _y = _y + 3; } else { _y = _y - 3; } --guncooldown; --guncooldown2; --guncooldown3; if (guncooldown == 0) { guncooldown = 50; _parent.insertenemy('boss2bullet1', _x + 0, _y + 0); } if (guncooldown2 == 0) { guncooldown2 = 39; _parent.insertenemy('boss2bullet2', _x + 0, _y + 0); } if (guncooldown3 == 0) { guncooldown3 = 31; _parent.insertenemy('boss2bullet3', _x + 0, _y + 0); } } stop(); startx = _x; guncooldown = 50; guncooldown2 = 39; guncooldown3 = 31; } frame 63 { stop(); } frame 64 { function takedamage(strength) { health -= strength; if (health <= 39) { _parent.addpoints(150); gotoAndPlay('hit4'); } if (health <= 20) { _parent.addpoints(150); gotoAndPlay('phase5'); } } function enemyaction() { if (boss2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } if (_parent.ship._y > _y) { _y = _y + 3; } else { _y = _y - 3; } --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; if (guncooldown == 0) { guncooldown = 50; _parent.insertenemy('boss2bullet1', _x + 0, _y + 0); } if (guncooldown2 == 0) { guncooldown2 = 39; _parent.insertenemy('boss2bullet2', _x + 0, _y + 0); } if (guncooldown3 == 0) { guncooldown3 = 31; _parent.insertenemy('boss2bullet3', _x + 0, _y + 0); } if (guncooldown4 == 0) { guncooldown4 = 18; _parent.insertenemy('boss2bullet4', _x + 0, _y + 0); } } stop(); startx = _x; guncooldown = 50; guncooldown2 = 39; guncooldown3 = 31; guncooldown4 = 18; } frame 66 { stop(); } frame 67 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(15000); gotoAndPlay('explode'); } if (health <= 19) { _parent.addpoints(150); gotoAndPlay('hit5'); } } function enemyaction() { if (boss2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } if (_parent.ship._y > _y) { _y = _y + 3; } else { _y = _y - 3; } --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; --guncooldown5; if (guncooldown == 0) { guncooldown = 50; _parent.insertenemy('boss2bullet1', _x + 0, _y + 0); } if (guncooldown2 == 0) { guncooldown2 = 39; _parent.insertenemy('boss2bullet2', _x + 0, _y + 0); } if (guncooldown3 == 0) { guncooldown3 = 31; _parent.insertenemy('boss2bullet3', _x + 0, _y + 0); } if (guncooldown4 == 0) { guncooldown4 = 18; _parent.insertenemy('boss2bullet4', _x + 0, _y + 0); } if (guncooldown5 == 0) { guncooldown5 = 12; _parent.insertenemy('boss2bullet5', _x + 0, _y + 0); } } stop(); startx = _x; guncooldown = 50; guncooldown2 = 39; guncooldown3 = 31; guncooldown4 = 18; guncooldown5 = 12; health = 20; } frame 69 { stop(); } frame 70 { gotoAndPlay(71); guncooldown = 55555; guncooldown2 = 55555; guncooldown3 = 55555; guncooldown4 = 55555; guncooldown5 = 55555; } frame 116 { stop(); } } movieClip 618 { } movieClip 639 { } movieClip 651 { } movieClip 654 { } movieClip 655 { } movieClip 656 { } movieClip 657 { } movieClip 659 { } movieClip 662 { } movieClip 683 { } movieClip 688 { } movieClip 691 { } movieClip 692 { frame 20 { gotoAndPlay(1); } } movieClip 695 { } movieClip 696 { frame 20 { gotoAndPlay(1); } } movieClip 697 { frame 20 { gotoAndPlay(1); } } movieClip 698 { frame 30 { gotoAndPlay(1); } } movieClip 701 { } movieClip 702 { frame 20 { gotoAndPlay(1); } } movieClip 705 { } movieClip 706 { frame 20 { gotoAndPlay(1); } } movieClip 709 { } movieClip 710 { frame 20 { gotoAndPlay(1); } } movieClip 713 { } movieClip 714 { } movieClip 719 { } movieClip 720 { frame 40 { gotoAndPlay(1); } } movieClip 722 { } movieClip 728 { } movieClip 735 { frame 1 { gotoAndPlay(2); } frame 40 { stop(); } frame 40 { stop(); } } movieClip 736 { frame 10 { stop(); } } movieClip 738 { } movieClip 742 { frame 35 { stop(); } } movieClip 743 { } movieClip 746 { } movieClip 748 { } movieClip 750 { } movieClip 751 { } movieClip 753 { } movieClip 756 { } movieClip 757 { } movieClip 758 { } movieClip 759 { } movieClip 760 { frame 571 { stop(); } } movieClip 761 bossfinal2 { frame 1 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (meteor1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (meteor2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (laserfinal1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (laserfinal2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (laserfinal3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } startx = _x; } frame 2 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.bossfinal.final555)) { this.gotoAndPlay('explode2'); } } } frame 2 { this.onEnterFrame = function () { if (_parent.tiem == 0) { gotoAndPlay('explode2'); } }; } frame 90 { randomattack = int(random(11)); if (randomattack == 0) { gotoAndPlay('a1'); } if (randomattack == 1) { gotoAndPlay('a2'); } if (randomattack == 2) { gotoAndPlay('a3'); } if (randomattack == 3) { gotoAndPlay('a4'); } if (randomattack == 4) { gotoAndPlay('a5'); } if (randomattack == 5) { gotoAndPlay('a6'); } if (randomattack == 6) { gotoAndPlay('a7'); } if (randomattack == 7) { gotoAndPlay('a8'); } if (randomattack == 8) { gotoAndPlay('a9'); } if (randomattack == 9) { gotoAndPlay('a10'); } if (randomattack == 10) { gotoAndPlay('a11'); } } frame 91 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (meteor1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (meteor2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } } frame 226 { gotoAndPlay('a0'); } frame 227 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (laserfinal1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (laserfinal2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (laserfinal3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } startx = _x; } frame 286 { gotoAndPlay('a0'); } frame 287 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (blackhole.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (s1.hitTest(_parent.ship.hitarea)) { _parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 3); } if (s2.hitTest(_parent.ship.hitarea)) { _parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 3); } if (s3.hitTest(_parent.ship.hitarea)) { _parent.ship._y = Math.max(0, _parent.ship._y - 3); } if (s4.hitTest(_parent.ship.hitarea)) { _parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 3); } if (s1.hitTest(_parent.ship.zahit)) { _parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 3); } if (s2.hitTest(_parent.ship.zahit)) { _parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 3); } if (s3.hitTest(_parent.ship.zahit)) { _parent.ship._y = Math.max(0, _parent.ship._y - 3); } if (s4.hitTest(_parent.ship.zahit)) { _parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 3); } } } frame 437 { gotoAndPlay('a0'); } frame 438 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (ball.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } } frame 580 { gotoAndPlay('a0'); } frame 581 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (plus.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (minus.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (times.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (divide.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (pi.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } } frame 683 { gotoAndPlay('a0'); } frame 684 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (c1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c5.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c6.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c7.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c8.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c9.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c10.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c11.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c12.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c13.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c14.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c15.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c16.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c17.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c18.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } } frame 803 { gotoAndPlay('a0'); } frame 804 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (q1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (q2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (q3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (q4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (q5.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (q6.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (q7.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (q8.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (q9.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (q10.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (q11.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } } frame 884 { gotoAndPlay('a0'); } frame 885 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } --guncooldown; if (guncooldown == 0) { guncooldown = 5555555; _parent.insertenemy('bossfinalbullet2', _x + 45.8, _y + 68.5); } } guncooldown = 1; } frame 889 { gotoAndPlay('a0'); } frame 890 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } } } frame 1050 { gotoAndPlay('a0'); } frame 1130 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } --guncooldown; if (guncooldown == 0) { guncooldown = 5555555; _parent.insertenemy('bossfinalmoonlaser', _x + 50, _y + 115); } } guncooldown = 1; } frame 1222 { gotoAndPlay('a0'); } frame 1266 { function enemyaction() { if (final2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (shooplazah.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (final2.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } if (zio555.hitTest(_parent.final555.hitarea)) { gotoAndPlay('explode2'); } } } frame 1314 { gotoAndPlay('a0'); } frame 1315 { stop(); } frame 1316 { stop(); } } movieClip 762 laserfinal { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.final'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.za'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 763 final555 { frame 1 { function enemyaction() { if (this.hitTest(_parent.ship.hitarea)) { _parent.hitself(); } } stop(); movespeed = 0; } } movieClip 768 bossfinal { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(1000000); _parent.addtiem(-5); gotoAndPlay('defeat'); } else { _parent.addpoints(5555); gotoAndPlay('hit'); } } function enemyaction() { lastrotation = _rotation; xdist = _parent.ship._x - _x; ydist = _parent.ship._x - _y; anglechange = (Math.atan2(ydist, xdist) / 3.141593) * 180 - _rotation; if (Math.abs(anglechange) > 180) { anglechange *= -1; } anglechange = Math.min(rotationspeed, Math.max(-rotationspeed, anglechange)); _rotation = _rotation + anglechange; rotationinradians = _rotation * 3.141593 / 180; _x = _x + Math.cos(rotationinradians) * movespeed; _y = _y + Math.sin(rotationinradians) * movespeed; if (final.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > 650) { _y = 1; } if (_y < 0) { _y = 649; } if (_x > 625) { _x = 1; } if (_x < 0) { _x = 624; } --guncooldown; if (guncooldown == 0) { guncooldown = 45; _parent.insertenemy('bossfinalbullet', this._x, this._y); } } health = 255; startx = _x; movespeed = 10; rotationspeed = 3.5; lastrotation = 0; guncooldown = 45; } frame 1 { stop(); } frame 3 { stop(); } frame 4 { function enemyaction() { lastrotation = _rotation; _rotation = _rotation; _x = _x; _y = _y; } movespeed = 0; guncooldown = 5555555; } frame 4 { stopAllSounds(); } frame 621 { stop(); } } movieClip 783 { } movieClip 784 endlevel { frame 1 { function enemyaction() { if (ring.hitTest(_parent.ship.hitarea)) { gotoAndStop('endlevel'); } } stop(); startx = _x; } frame 2 { stop(); } } movieClip 785 laserboss4sp { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss4spr0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 786 laserboss4 { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 787 laserlv4 { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.foe'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0v2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 788 laserboss3 { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 789 laserlv3 { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.foe'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r5'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r6'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r7'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r8'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r9'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 790 laserboss2 { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 791 laserlv2 { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.fighter1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.foe'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r5'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r6'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r7'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r8'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r9'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 792 laserboss1 { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r5'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r6'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r7'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 794 boss4sp5name { frame 1 { _x = 585; _y = 600; } } movieClip 796 boss4sp4name { frame 1 { _x = 30; _y = 600; } } movieClip 798 boss4spbullet5 { frame 2 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } stop(); movespeed = 15; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 799 boss4spbullet4 { frame 2 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } stop(); movespeed = 15; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 801 boss4spbullet3 { frame 2 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } stop(); movespeed = 15; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 802 boss4spbullet2 { frame 2 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } stop(); movespeed = 15; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 804 boss4spbullet1 { frame 2 { function enemyaction() { _x = _x + xmov; _y = _y + ymov; if (this.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } stop(); movespeed = 15; xdist = _parent.ship._x - _x; ydist = _parent.ship._y - _y; totaldist = Math.abs(xdist) + Math.abs(ydist); _rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180; xmov = movespeed * (xdist / totaldist); ymov = movespeed * (ydist / totaldist); } } movieClip 806 boss4sp3name { frame 1 { _x = 595; _y = 30; } } movieClip 808 boss4sp5 { frame 1 { function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 31; _parent.insertenemy('boss4spbullet5', _x, _y); } if (boss4r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } stop(); onEnterFrame = function () { xrotation = _x - _parent.ship._x; yrotation = -(_y - _parent.ship._y); totalrotation = Math.atan(yrotation / xrotation); if (_parent.ship._x > _x) { _rotation = 90 - (totalrotation / 3.141593) * 180; } else { _rotation = -(90 + (totalrotation / 3.141593) * 180); } }; stop(); guncooldown = 31; _x = 595; _y = 600; } } movieClip 810 boss4sp4 { frame 1 { function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 29; _parent.insertenemy('boss4spbullet4', _x, _y); } if (boss4r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } stop(); onEnterFrame = function () { xrotation = _x - _parent.ship._x; yrotation = -(_y - _parent.ship._y); totalrotation = Math.atan(yrotation / xrotation); if (_parent.ship._x > _x) { _rotation = 90 - (totalrotation / 3.141593) * 180; } else { _rotation = -(90 + (totalrotation / 3.141593) * 180); } }; stop(); guncooldown = 29; _x = 30; _y = 600; } } movieClip 812 boss4sp3 { frame 1 { function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 24; _parent.insertenemy('boss4spbullet3', _x, _y); } if (boss4r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } stop(); onEnterFrame = function () { xrotation = _x - _parent.ship._x; yrotation = -(_y - _parent.ship._y); totalrotation = Math.atan(yrotation / xrotation); if (_parent.ship._x > _x) { _rotation = 90 - (totalrotation / 3.141593) * 180; } else { _rotation = -(90 + (totalrotation / 3.141593) * 180); } }; stop(); guncooldown = 24; _x = 595; _y = 30; } } movieClip 814 boss4sp2name { frame 1 { _x = 40; _y = 30; } } movieClip 816 boss4sp2 { frame 1 { function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 21; _parent.insertenemy('boss4spbullet2', _x, _y); } if (boss4r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } stop(); onEnterFrame = function () { xrotation = _x - _parent.ship._x; yrotation = -(_y - _parent.ship._y); totalrotation = Math.atan(yrotation / xrotation); if (_parent.ship._x > _x) { _rotation = 90 - (totalrotation / 3.141593) * 180; } else { _rotation = -(90 + (totalrotation / 3.141593) * 180); } }; stop(); guncooldown = 21; _x = 30; _y = 30; } } movieClip 821 boss4sp1 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(30000); gotoAndPlay('explode'); } else { _parent.addpoints(1000); gotoAndPlay('hit'); } } function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 15; _parent.insertenemy('boss4spbullet1', _x, _y); } if (_parent.ship._x > _x) { _x = _x + 3; } else { _x = _x - 3; } if (_parent.ship._y > _y) { _y = _y + 3; } else { _y = _y - 3; } if (boss4spr0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } onEnterFrame = function () { xrotation = _x - _parent.ship._x; yrotation = -(_y - _parent.ship._y); totalrotation = Math.atan(yrotation / xrotation); if (_parent.ship._x > _x) { _rotation = 90 - (totalrotation / 3.141593) * 180; } else { _rotation = -(90 + (totalrotation / 3.141593) * 180); } }; stop(); health = 225; guncooldown = 15; _y = 30; } frame 1 { stop(); } frame 3 { stop(); } frame 11 { stop(); } } movieClip 826 { frame 150 { stop(); } } movieClip 828 { } movieClip 829 i7 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(1500); gotoAndPlay('explode'); } if (health <= 6) { _parent.addpoints(150); } } function enemyaction() { _y = _y + 5; if (i7r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } health = 7; startx = _x; } frame 150 { stop(); } frame 158 { stop(); } } movieClip 835 { frame 40 { gotoAndPlay(1); } } movieClip 840 { frame 80 { gotoAndPlay(1); } } movieClip 846 { frame 40 { gotoAndPlay(1); } } movieClip 853 { frame 40 { gotoAndPlay(1); } } movieClip 854 i5 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(-10000); gotoAndPlay('explode'); } } function enemyaction() { if (_y < -615) { _parent.addpoints(5000); gotoAndPlay('ascended'); } _y = _y - 2; } stop(); health = 1; startx = _x; } frame 2 { function enemyaction() { _y = _y - 0; } } frame 51 { stop(); } frame 52 { function enemyaction() { _y = _y - 0; } } frame 101 { stop(); } } movieClip 861 { } movieClip 868 { } movieClip 874 { } movieClip 881 { } movieClip 888 { } movieClip 895 { } movieClip 902 { } movieClip 903 { frame 21 { gotoAndPlay(1); } } movieClip 904 { frame 20 { gotoAndPlay(1); } } movieClip 905 i6 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(2500); gotoAndPlay('explode'); } if (health <= 9) { _parent.addpoints(500); } if (health <= 8) { i6r1._visible = true; } if (health <= 6) { i6r2._visible = true; } if (health <= 4) { i6r3._visible = true; } if (health <= 2) { i6r4._visible = true; } } function enemyaction() { _y = _y + 1; if (i6r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } --guncooldown; --guncooldown2; --guncooldown3; if (guncooldown == 0) { guncooldown = 70; _parent.insertenemy('i6bullet', _x + 69, _y + 48); } if (guncooldown2 == 0) { guncooldown2 = 70; _parent.insertenemy('i6bullet2', _x + 69, _y + 48); } if (guncooldown3 == 0) { guncooldown3 = 70; _parent.insertenemy('i6bullet3', _x + 69, _y + 48); } if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); health = 10; startx = _x; guncooldown = 70; guncooldown2 = 70; guncooldown3 = 70; i6r0._visible = true; i6r1._visible = false; i6r2._visible = false; i6r3._visible = false; i6r4._visible = false; } frame 9 { stop(); } } movieClip 907 { } movieClip 915 { frame 21 { gotoAndPlay(1); } } movieClip 923 { frame 21 { gotoAndPlay(1); } } movieClip 931 { frame 21 { gotoAndPlay(1); } } movieClip 939 { frame 21 { gotoAndPlay(1); } } movieClip 947 { frame 21 { gotoAndPlay(1); } } movieClip 955 { frame 21 { gotoAndPlay(1); } } movieClip 963 { frame 21 { gotoAndPlay(1); } } movieClip 971 { frame 21 { gotoAndPlay(1); } } movieClip 972 d7 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(1400); gotoAndStop('explode'); } if (health <= 7) { _parent.addpoints(140); d7r0._visible = false; d7r1._visible = true; } if (health <= 6) { _parent.addpoints(140); d7r1._visible = false; d7r2._visible = true; } if (health <= 5) { _parent.addpoints(140); d7r2._visible = false; d7r3._visible = true; } if (health <= 4) { _parent.addpoints(140); d7r3._visible = false; d7r4._visible = true; } if (health <= 3) { _parent.addpoints(140); d7r4._visible = false; d7r5._visible = true; } if (health <= 2) { _parent.addpoints(140); d7r5._visible = false; d7r6._visible = true; } if (health <= 1) { _parent.addpoints(140); d7r6._visible = false; d7r7._visible = true; } } function enemyaction() { _y = _y + 1; if (d7r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (d7r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (d7r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (d7r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (d7r4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (d7r5.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (d7r6.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (d7r7.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } health = 8; d7r0._visible = true; d7r1._visible = false; d7r2._visible = false; d7r3._visible = false; d7r4._visible = false; d7r5._visible = false; d7r6._visible = false; d7r7._visible = false; startx = _x; } frame 1 { gotoAndPlay(2); } frame 40 { gotoAndPlay(2); } } movieClip 974 { frame 110 { gotoAndPlay(1); } } movieClip 975 { frame 110 { gotoAndPlay(1); } } movieClip 976 i4 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(300); gotoAndPlay('explode'); } if (health <= 2) { _parent.addpoints(30); } } function enemyaction() { _y = _y + 1; if (i4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 0.5; } stop(); health = 3; startx = _x; } frame 9 { stop(); } } movieClip 977 i3 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 0; } health = 5; startx = _x; _y = 16; } frame 71 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 10; } } frame 75 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 15; } } frame 78 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 20; } } frame 81 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 25; } } frame 84 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (i3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 30; if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); } frame 92 { stop(); } } movieClip 980 { frame 25 { gotoAndPlay(1); } } movieClip 982 { } movieClip 983 i2 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(2500); gotoAndPlay('explode'); } else { _parent.addpoints(250); gotoAndPlay('hit'); } } function enemyaction() { _y = _y + 2; if (i2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; --guncooldown5; --guncooldown6; --guncooldown7; --guncooldown8; if (guncooldown == 0) { guncooldown = 25; _parent.insertenemy('i2bullet1', _x + 0, _y - 20); } if (guncooldown2 == 0) { guncooldown2 = 25; _parent.insertenemy('i2bullet2', _x + 20, _y + 0); } if (guncooldown3 == 0) { guncooldown3 = 25; _parent.insertenemy('i2bullet3', _x + 0, _y + 20); } if (guncooldown4 == 0) { guncooldown4 = 25; _parent.insertenemy('i2bullet4', _x - 20, _y + 0); } if (guncooldown5 == 0) { guncooldown5 = 25; _parent.insertenemy('i2bullet5', _x + 12, _y - 12); } if (guncooldown6 == 0) { guncooldown6 = 25; _parent.insertenemy('i2bullet6', _x + 12, _y + 12); } if (guncooldown7 == 0) { guncooldown7 = 25; _parent.insertenemy('i2bullet7', _x - 12, _y + 12); } if (guncooldown8 == 0) { guncooldown8 = 25; _parent.insertenemy('i2bullet8', _x - 12, _y - 12); } } stop(); health = 8; startx = _x; guncooldown = 25; guncooldown2 = 25; guncooldown3 = 25; guncooldown4 = 25; guncooldown5 = 25; guncooldown6 = 25; guncooldown7 = 25; guncooldown8 = 25; } frame 3 { stop(); } frame 11 { stop(); } } movieClip 985 { } movieClip 989 { } movieClip 991 { } movieClip 993 { } movieClip 995 { } movieClip 997 { } movieClip 998 i1 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(2000); gotoAndPlay('explode'); } if (health <= 7) { _parent.addpoints(200); } if (health <= 6) { i1r0a._visible = false; i1r1._visible = true; } if (health <= 4) { i1r1._visible = false; i1r2._visible = true; } if (health <= 2) { i1r2._visible = false; i1r3._visible = true; } } function enemyaction() { _y = _y + 1; if (i1r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (i1r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (i1r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (i1r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 2; } else { _x = _x - 2; } --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; --guncooldown5; if (guncooldown == 0) { guncooldown = 40; _parent.insertenemy('i1bullet1', _x - 19, _y + 40); } if (guncooldown2 == 0) { guncooldown2 = 40; _parent.insertenemy('i1bullet2', _x - 6, _y + 35); } if (guncooldown3 == 0) { guncooldown3 = 40; _parent.insertenemy('i1bullet3', _x + 8, _y + 29); } if (guncooldown4 == 0) { guncooldown4 = 40; _parent.insertenemy('i1bullet4', _x + 21, _y + 35); } if (guncooldown5 == 0) { guncooldown5 = 40; _parent.insertenemy('i1bullet5', _x + 32, _y + 40); } } health = 8; i1r0._visible = true; i1r1._visible = false; i1r2._visible = false; i1r3._visible = false; startx = _x; guncooldown = 40; guncooldown2 = 40; guncooldown3 = 40; guncooldown4 = 40; guncooldown5 = 40; } frame 2 { stop(); } frame 3 { guncooldown = 55555; guncooldown2 = 55555; guncooldown3 = 55555; } frame 10 { stop(); } } movieClip 1000 { } movieClip 1006 { } movieClip 1008 { } movieClip 1009 f2 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(800); gotoAndPlay('explode'); } else { _parent.addpoints(80); gotoAndPlay('hit'); } } function enemyaction() { if (moveright) { _x = _x + 8; if (_x > startx + maxdist) { moveright = false; } } else { _x = _x - 8; if (_x < startx - maxdist) { moveright = true; } } _y = _y + 8; if (f2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); stop(); health = 3; moveright = true; maxdist = 8; startx = _x; } frame 3 { stop(); } frame 11 { stop(); } } movieClip 1010 laserlv1 { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.foe'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.fighter1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } movieClip 1012 { } movieClip 1017 { } movieClip 1020 { } movieClip 1022 { } movieClip 1027 { } movieClip 1030 { } movieClip 1043 e3long { frame 1 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(84)) { gotoAndPlay('c1'); } }; startx = _x; } frame 2 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(3); } }; } frame 3 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(82)) { gotoAndPlay('c2'); } }; startx = _x; } frame 4 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(5); } }; } frame 5 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(73)) { gotoAndPlay('c3'); } }; startx = _x; } frame 6 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(7); } }; } frame 7 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(67)) { gotoAndPlay('c4'); } }; startx = _x; } frame 8 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(9); } }; } frame 9 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(72)) { gotoAndPlay('c5'); } }; startx = _x; } frame 10 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(11); } }; } frame 11 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(76)) { gotoAndPlay('c6'); } }; startx = _x; } frame 12 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(13); } }; } frame 13 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(79)) { gotoAndPlay('c7'); } }; startx = _x; } frame 14 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(15); } }; } frame 15 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(82)) { gotoAndPlay('c8'); } }; startx = _x; } frame 16 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(17); } }; } frame 17 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(79)) { gotoAndPlay('c9'); } }; startx = _x; } frame 18 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(19); } }; } frame 19 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(77)) { gotoAndPlay('c10'); } }; startx = _x; } frame 20 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(21); } }; } frame 21 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(79)) { gotoAndPlay('c11'); } }; startx = _x; } frame 22 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(23); } }; } frame 23 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(78)) { gotoAndPlay('c12'); } }; startx = _x; } frame 24 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(25); } }; } frame 25 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(79)) { gotoAndPlay('c13'); } }; startx = _x; } frame 26 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(27); } }; } frame 27 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(70)) { gotoAndPlay('c14'); } }; startx = _x; } frame 28 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(29); } }; } frame 29 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(76)) { gotoAndPlay('c15'); } }; startx = _x; } frame 30 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(31); } }; } frame 31 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(85)) { gotoAndPlay('c16'); } }; startx = _x; } frame 32 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(33); } }; } frame 33 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(79)) { gotoAndPlay('c17'); } }; startx = _x; } frame 34 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(35); } }; } frame 35 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(82)) { gotoAndPlay('c18'); } }; startx = _x; } frame 36 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(37); } }; } frame 37 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(79)) { gotoAndPlay('c19'); } }; startx = _x; } frame 38 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(39); } }; } frame 39 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(77)) { gotoAndPlay('c20'); } }; startx = _x; } frame 40 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(41); } }; } frame 41 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('c21'); } }; startx = _x; } frame 42 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(43); } }; } frame 43 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(84)) { gotoAndPlay('c22'); } }; startx = _x; } frame 44 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(45); } }; } frame 45 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(72)) { gotoAndPlay('c23'); } }; startx = _x; } frame 46 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(47); } }; } frame 47 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(65)) { gotoAndPlay('c24'); } }; startx = _x; } frame 48 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(49); } }; } frame 49 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(78)) { gotoAndPlay('c25'); } }; startx = _x; } frame 50 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(51); } }; } frame 51 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('explode'); } }; startx = _x; } frame 52 { _parent.addpoints(2500); gotoAndPlay(53); } frame 59 { stop(); } } movieClip 1045 e3miracles { frame 1 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(77)) { gotoAndPlay('c1'); } }; startx = _x; } frame 2 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(3); } }; } frame 3 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(73)) { gotoAndPlay('c2'); } }; startx = _x; } frame 4 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(5); } }; } frame 5 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(82)) { gotoAndPlay('c3'); } }; startx = _x; } frame 6 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(7); } }; } frame 7 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(65)) { gotoAndPlay('c4'); } }; startx = _x; } frame 8 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(9); } }; } frame 9 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(67)) { gotoAndPlay('c5'); } }; startx = _x; } frame 10 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(11); } }; } frame 11 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(76)) { gotoAndPlay('c6'); } }; startx = _x; } frame 12 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(13); } }; } frame 13 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('c7'); } }; startx = _x; } frame 14 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(15); } }; } frame 15 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(83)) { gotoAndPlay('explode'); } }; startx = _x; } frame 16 { _parent.addpoints(250); gotoAndPlay(17); } frame 23 { stop(); } } movieClip 1050 e3keyboard { frame 1 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(75)) { gotoAndPlay('c1'); } }; startx = _x; } frame 2 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(3); } }; } frame 3 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('c2'); } }; startx = _x; } frame 4 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(5); } }; } frame 5 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(89)) { gotoAndPlay('c3'); } }; startx = _x; } frame 6 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(7); } }; } frame 7 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(66)) { gotoAndPlay('c4'); } }; startx = _x; } frame 8 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(9); } }; } frame 9 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(79)) { gotoAndPlay('c5'); } }; startx = _x; } frame 10 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(11); } }; } frame 11 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(65)) { gotoAndPlay('c6'); } }; startx = _x; } frame 12 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(13); } }; } frame 13 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(82)) { gotoAndPlay('c7'); } }; startx = _x; } frame 14 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(15); } }; } frame 15 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(68)) { gotoAndPlay('explode'); } }; startx = _x; } frame 16 { _parent.addpoints(250); gotoAndPlay(17); } frame 23 { stop(); } } movieClip 1051 e3missiles { frame 1 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(77)) { gotoAndPlay('c1'); } }; startx = _x; } frame 2 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(3); } }; } frame 3 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(73)) { gotoAndPlay('c2'); } }; startx = _x; } frame 4 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(5); } }; } frame 5 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(83)) { gotoAndPlay('c3'); } }; startx = _x; } frame 6 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(7); } }; } frame 7 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(83)) { gotoAndPlay('c4'); } }; startx = _x; } frame 8 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(9); } }; } frame 9 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(73)) { gotoAndPlay('c5'); } }; startx = _x; } frame 10 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(11); } }; } frame 11 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(76)) { gotoAndPlay('c6'); } }; startx = _x; } frame 12 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(13); } }; } frame 13 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('c7'); } }; startx = _x; } frame 14 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(15); } }; } frame 15 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(83)) { gotoAndPlay('explode'); } }; startx = _x; } frame 16 { _parent.addpoints(250); gotoAndPlay(17); } frame 23 { stop(); } } movieClip 1052 e3snakebee { frame 1 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(83)) { gotoAndPlay('c1'); } }; startx = _x; } frame 2 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(3); } }; } frame 3 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(78)) { gotoAndPlay('c2'); } }; startx = _x; } frame 4 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(5); } }; } frame 5 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(65)) { gotoAndPlay('c3'); } }; startx = _x; } frame 6 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(7); } }; } frame 7 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(75)) { gotoAndPlay('c4'); } }; startx = _x; } frame 8 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(9); } }; } frame 9 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('c5'); } }; startx = _x; } frame 10 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(11); } }; } frame 11 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(66)) { gotoAndPlay('c6'); } }; startx = _x; } frame 12 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(13); } }; } frame 13 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('c7'); } }; startx = _x; } frame 14 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(15); } }; } frame 15 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('explode'); } }; startx = _x; } frame 16 { _parent.addpoints(250); gotoAndPlay(17); } frame 23 { stop(); } } movieClip 1053 e3literary { frame 1 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(76)) { gotoAndPlay('c1'); } }; startx = _x; } frame 2 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(3); } }; } frame 3 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(73)) { gotoAndPlay('c2'); } }; startx = _x; } frame 4 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(5); } }; } frame 5 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(84)) { gotoAndPlay('c3'); } }; startx = _x; } frame 6 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(7); } }; } frame 7 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('c4'); } }; startx = _x; } frame 8 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(9); } }; } frame 9 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(82)) { gotoAndPlay('c5'); } }; startx = _x; } frame 10 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(11); } }; } frame 11 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(65)) { gotoAndPlay('c6'); } }; startx = _x; } frame 12 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(13); } }; } frame 13 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(82)) { gotoAndPlay('c7'); } }; startx = _x; } frame 14 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(15); } }; } frame 15 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(89)) { gotoAndPlay('explode'); } }; startx = _x; } frame 16 { _parent.addpoints(250); gotoAndPlay(17); } frame 23 { stop(); } } movieClip 1056 e3packages { frame 1 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(80)) { gotoAndPlay('c1'); } }; startx = _x; } frame 2 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(3); } }; } frame 3 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(65)) { gotoAndPlay('c2'); } }; startx = _x; } frame 4 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(5); } }; } frame 5 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(67)) { gotoAndPlay('c3'); } }; startx = _x; } frame 6 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(7); } }; } frame 7 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(75)) { gotoAndPlay('c4'); } }; startx = _x; } frame 8 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(9); } }; } frame 9 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(65)) { gotoAndPlay('c5'); } }; startx = _x; } frame 10 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(11); } }; } frame 11 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(71)) { gotoAndPlay('c6'); } }; startx = _x; } frame 12 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(13); } }; } frame 13 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('c7'); } }; startx = _x; } frame 14 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(15); } }; } frame 15 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(83)) { gotoAndPlay('explode'); } }; startx = _x; } frame 16 { _parent.addpoints(250); gotoAndPlay(17); } frame 23 { stop(); } } movieClip 1058 e3favorite { frame 1 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(70)) { gotoAndPlay('c1'); } }; startx = _x; } frame 2 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(3); } }; } frame 3 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(65)) { gotoAndPlay('c2'); } }; startx = _x; } frame 4 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(5); } }; } frame 5 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(86)) { gotoAndPlay('c3'); } }; startx = _x; } frame 6 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(7); } }; } frame 7 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(79)) { gotoAndPlay('c4'); } }; startx = _x; } frame 8 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(9); } }; } frame 9 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(82)) { gotoAndPlay('c5'); } }; startx = _x; } frame 10 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(11); } }; } frame 11 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(73)) { gotoAndPlay('c6'); } }; startx = _x; } frame 12 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(13); } }; } frame 13 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(84)) { gotoAndPlay('c7'); } }; startx = _x; } frame 14 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(15); } }; } frame 15 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('explode'); } }; startx = _x; } frame 16 { _parent.addpoints(250); gotoAndPlay(17); } frame 23 { stop(); } } movieClip 1059 e3envision { frame 1 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(69)) { gotoAndPlay('c1'); } }; startx = _x; } frame 2 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(3); } }; } frame 3 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(78)) { gotoAndPlay('c2'); } }; startx = _x; } frame 4 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(5); } }; } frame 5 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(86)) { gotoAndPlay('c3'); } }; startx = _x; } frame 6 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(7); } }; } frame 7 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(73)) { gotoAndPlay('c4'); } }; startx = _x; } frame 8 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(9); } }; } frame 9 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(83)) { gotoAndPlay('c5'); } }; startx = _x; } frame 10 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(11); } }; } frame 11 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(73)) { gotoAndPlay('c6'); } }; startx = _x; } frame 12 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(13); } }; } frame 13 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(79)) { gotoAndPlay('c7'); } }; startx = _x; } frame 14 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(15); } }; } frame 15 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(78)) { gotoAndPlay('explode'); } }; startx = _x; } frame 16 { _parent.addpoints(250); gotoAndPlay(17); } frame 23 { stop(); } } movieClip 1060 e3goldfish { frame 1 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(71)) { gotoAndPlay('c1'); } }; startx = _x; } frame 2 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(3); } }; } frame 3 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(79)) { gotoAndPlay('c2'); } }; startx = _x; } frame 4 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(5); } }; } frame 5 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(76)) { gotoAndPlay('c3'); } }; startx = _x; } frame 6 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(7); } }; } frame 7 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(68)) { gotoAndPlay('c4'); } }; startx = _x; } frame 8 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(9); } }; } frame 9 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(70)) { gotoAndPlay('c5'); } }; startx = _x; } frame 10 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(11); } }; } frame 11 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(73)) { gotoAndPlay('c6'); } }; startx = _x; } frame 12 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(13); } }; } frame 13 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(83)) { gotoAndPlay('c7'); } }; startx = _x; } frame 14 { time = 5; this.onEnterFrame = function () { if (time == 0) { gotoAndPlay(15); } }; } frame 15 { function enemyaction() { _y = _y + 1; if (e3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } } stop(); this.onEnterFrame = function () { if (Key.isDown(72)) { gotoAndPlay('explode'); } }; startx = _x; } frame 16 { _parent.addpoints(250); gotoAndPlay(17); } frame 23 { stop(); } } movieClip 1062 { } movieClip 1063 bulletwall4 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(1000); gotoAndPlay('explode'); } } health = 100000000000.0; startx = _x; } } movieClip 1064 { } movieClip 1065 bulletwall3 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(1000); gotoAndPlay('explode'); } } health = 100000000000.0; startx = _x; } } movieClip 1066 bulletwall2 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(1000); gotoAndPlay('explode'); } } health = 100000000000.0; startx = _x; } } movieClip 1067 bulletwall1 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(1000); gotoAndPlay('explode'); } } health = 100000000000.0; startx = _x; } } movieClip 1069 { } movieClip 1070 e2d { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(100); gotoAndPlay('explode'); } if (health <= 1) { _parent.addpoints(10); } } function enemyaction() { _y = _y + 2; if (e2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); health = 1; startx = _x; } frame 9 { stop(); } } movieClip 1072 { } movieClip 1073 e2c { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(100); gotoAndPlay('explode'); } if (health <= 1) { _parent.addpoints(10); } } function enemyaction() { _y = _y + 2; if (e2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); health = 1; startx = _x; } frame 9 { stop(); } } movieClip 1075 { } movieClip 1076 e2b { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(100); gotoAndPlay('explode'); } if (health <= 1) { _parent.addpoints(10); } } function enemyaction() { _y = _y + 2; if (e2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); health = 1; startx = _x; } frame 9 { stop(); } } movieClip 1078 { } movieClip 1079 e2a { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(100); gotoAndPlay('explode'); } if (health <= 1) { _parent.addpoints(10); } } function enemyaction() { _y = _y + 2; if (e2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); health = 1; startx = _x; } frame 9 { stop(); } } movieClip 1081 { } movieClip 1082 e2 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(100); gotoAndPlay('explode'); } if (health <= 1) { _parent.addpoints(10); } } function enemyaction() { _y = _y + 2; if (e2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); health = 1; startx = _x; } frame 9 { stop(); } } movieClip 1084 { } movieClip 1086 { } movieClip 1090 e1 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(500); gotoAndPlay('explode'); } else { _parent.addpoints(25); gotoAndPlay('hit'); } } function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 50; _parent.insertenemy('e1bullet', _x, _y + 12); } if (_parent.ship._x > _x) { _x = _x + 3; } else { _x = _x - 3; } if (e1r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 1; if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } health = 15; guncooldown = 50; } frame 1 { stop(); } frame 3 { stop(); } frame 11 { stop(); } } movieClip 1092 { } movieClip 1096 { } movieClip 1099 { } movieClip 1100 { frame 70 { gotoAndPlay(1); } } movieClip 1102 { } movieClip 1103 { frame 70 { gotoAndPlay(1); } } movieClip 1104 { frame 70 { gotoAndPlay(1); } } movieClip 1105 { frame 70 { gotoAndPlay(1); } } movieClip 1106 { frame 70 { gotoAndPlay(1); } } movieClip 1107 d6 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(200); gotoAndPlay('explode'); } else { _parent.addpoints(20); gotoAndPlay('hit'); } } function enemyaction() { --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; if (guncooldown == 0) { guncooldown = 35; _parent.insertenemy('d6bullet1', _x - 15, _y + 0); } if (guncooldown2 == 0) { guncooldown2 = 35; _parent.insertenemy('d6bullet2', _x + 0, _y + 15); } if (guncooldown3 == 0) { guncooldown3 = 35; _parent.insertenemy('d6bullet3', _x + 15, _y + 0); } if (guncooldown4 == 0) { guncooldown4 = 35; _parent.insertenemy('d6bullet4', _x + 0, _y - 15); } if (d6r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _x = _x + 2; if (_y > Stage.height || _y < 0 || _x > Stage.width) { _parent.removeenemy(_name); } } health = 5; guncooldown = 35; guncooldown2 = 35; guncooldown3 = 35; guncooldown4 = 35; _y = Math.random() * 625 + 25; } frame 1 { tb1._visible = true; tb2._visible = false; tb3._visible = false; } frame 1 { stop(); } frame 2 { tb1._visible = false; tb2._visible = true; tb3._visible = false; } frame 3 { tb1._visible = false; tb2._visible = false; tb3._visible = true; } frame 3 { stop(); } frame 11 { stop(); } } movieClip 1110 { } movieClip 1112 d4 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(200); gotoAndPlay('explode'); } else { _parent.addpoints(20); gotoAndPlay('hit'); } } function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 30; _parent.insertenemy('d4bullet', _x - 15, _y); } if (_parent.ship._y > _y) { _y = _y + 1; } else { _y = _y - 1; } if (d4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _x = _x - 5; if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } health = 2; guncooldown = 30; _y = Math.random() * 625 + 25; } frame 1 { stop(); } frame 3 { stop(); } frame 11 { stop(); } } movieClip 1115 { } movieClip 1117 d3 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(200); gotoAndPlay('explode'); } else { _parent.addpoints(20); gotoAndPlay('hit'); } } function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 50; _parent.insertenemy('d3bullet', _x, _y - 15); } if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } if (d3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y - 3; if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } health = 3; guncooldown = 50; _y = 649; } frame 1 { stop(); } frame 3 { stop(); } frame 11 { stop(); } } movieClip 1120 { } movieClip 1122 { } movieClip 1123 d2 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(200); gotoAndPlay('explode'); } else { _parent.addpoints(20); gotoAndPlay('hit'); } } function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 30; _parent.insertenemy('d2bullet', _x + 15, _y); } if (_parent.ship._y > _y) { _y = _y + 1; } else { _y = _y - 1; } if (d2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _x = _x + 5; if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } health = 2; guncooldown = 30; _y = Math.random() * 625 + 25; } frame 1 { stop(); } frame 3 { stop(); } frame 11 { stop(); } } movieClip 1125 d1 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(200); gotoAndPlay('explode'); } else { _parent.addpoints(20); gotoAndPlay('hit'); } } function enemyaction() { --guncooldown; if (guncooldown == 0) { guncooldown = 50; _parent.insertenemy('d1bullet', _x, _y + 15); } if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } if (d1r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 1; if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } health = 3; guncooldown = 50; } frame 1 { stop(); } frame 3 { stop(); } frame 11 { stop(); } } movieClip 1131 { frame 40 { gotoAndPlay(1); } } movieClip 1137 { frame 40 { gotoAndPlay(1); } } movieClip 1138 c10 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(3000); gotoAndPlay('explode'); } } function enemyaction() { if (c10r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y < -615) { _parent.addpoints(-1500); gotoAndPlay('ascended'); } _y = _y - 4; } stop(); health = 1; startx = _x; } frame 2 { function enemyaction() { _y = _y - 0; } } frame 51 { stop(); } frame 52 { function enemyaction() { _y = _y - 0; } } frame 101 { stop(); } } movieClip 1149 { frame 140 { stop(); } } movieClip 1150 c9 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(1000); gotoAndPlay('explode'); } if (health <= 4) { _parent.addpoints(100); } } function enemyaction() { _y = _y + 1; if (c9r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 3; } else { _x = _x - 3; } } stop(); health = 5; startx = _x; } frame 9 { stop(); } } movieClip 1153 { frame 15 { stop(); } } movieClip 1154 c8 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (b3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 6; } health = 2; startx = _x; } frame 5 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (b3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 8; } } frame 8 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (b3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 12; } } frame 11 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (b3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 18; } } frame 14 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (b3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 25; if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); } frame 22 { stop(); } } movieClip 1155 { } movieClip 1161 { } movieClip 1167 { } movieClip 1168 { frame 79 { gotoAndPlay(1); } } movieClip 1177 { } movieClip 1178 c7 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(500); gotoAndPlay('explode'); } } function enemyaction() { _y = _y + 1; if (b7r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 2; --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; --guncooldown5; if (guncooldown == 0) { guncooldown = 30; _parent.insertenemy('b7bullet1', _x - 18, _y + 18); } if (guncooldown2 == 0) { guncooldown2 = 30; _parent.insertenemy('b7bullet2', _x + 0, _y + 18); } if (guncooldown3 == 0) { guncooldown3 = 30; _parent.insertenemy('b7bullet3', _x + 18, _y + 18); } if (guncooldown4 == 0) { guncooldown4 = 30; _parent.insertenemy('b7bullet4', _x - 9, _y + 18); } if (guncooldown5 == 0) { guncooldown5 = 30; _parent.insertenemy('b7bullet5', _x + 9, _y + 18); } } stop(); health = 7; startx = _x; guncooldown = 30; guncooldown2 = 30; guncooldown3 = 30; guncooldown4 = 30; guncooldown5 = 30; } frame 10 { stop(); } } movieClip 1186 { frame 21 { gotoAndPlay(1); } } movieClip 1194 { frame 21 { gotoAndPlay(1); } } movieClip 1202 { frame 21 { gotoAndPlay(1); } } movieClip 1210 { frame 21 { gotoAndPlay(1); } } movieClip 1218 { frame 21 { gotoAndPlay(1); } } movieClip 1226 { frame 21 { gotoAndPlay(1); } } movieClip 1234 { frame 21 { gotoAndPlay(1); } } movieClip 1235 c6 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(700); gotoAndStop('explode'); } if (health <= 6) { _parent.addpoints(70); c6r0._visible = false; c6r1._visible = true; } if (health <= 5) { _parent.addpoints(70); c6r1._visible = false; c6r2._visible = true; } if (health <= 4) { _parent.addpoints(70); c6r2._visible = false; c6r3._visible = true; } if (health <= 3) { _parent.addpoints(70); c6r3._visible = false; c6r4._visible = true; } if (health <= 2) { _parent.addpoints(70); c6r4._visible = false; c6r5._visible = true; } if (health <= 1) { _parent.addpoints(70); c6r5._visible = false; c6r6._visible = true; } } function enemyaction() { _y = _y + 1; if (c6r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c6r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c6r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c6r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c6r4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c6r5.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c6r6.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } health = 7; c6r0._visible = true; c6r1._visible = false; c6r2._visible = false; c6r3._visible = false; c6r4._visible = false; c6r5._visible = false; c6r6._visible = false; startx = _x; } frame 1 { gotoAndPlay(2); } frame 40 { gotoAndPlay(2); } } movieClip 1241 { frame 40 { gotoAndPlay(1); } } movieClip 1247 { frame 40 { gotoAndPlay(1); } } movieClip 1248 c5 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(-3000); gotoAndPlay('explode'); } } function enemyaction() { if (_y < -615) { _parent.addpoints(1500); gotoAndPlay('ascended'); } _y = _y - 2; } stop(); health = 1; startx = _x; } frame 2 { function enemyaction() { _y = _y - 0; } } frame 51 { stop(); } frame 52 { function enemyaction() { _y = _y - 0; } } frame 101 { stop(); } } movieClip 1250 { } movieClip 1252 { } movieClip 1254 { } movieClip 1256 { } movieClip 1257 { } movieClip 1258 { } movieClip 1260 { } movieClip 1262 { } movieClip 1264 { } movieClip 1266 { } movieClip 1268 { } movieClip 1270 { } movieClip 1272 { } movieClip 1274 { } movieClip 1281 c4 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(400); gotoAndPlay('explode1'); } if (health <= 3) { _parent.addpoints(100); c4r0._visible = false; c4r1._visible = true; } if (health <= 2) { _parent.addpoints(100); c4r1._visible = false; c4r2._visible = true; } if (health <= 1) { _parent.addpoints(100); c4r2._visible = false; c4r3._visible = true; } } function enemyaction() { if (c4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c4r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c4r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c4r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > 800) { _parent.removeenemy(_name); } _y = _y - 5; } c4r0._visible = true; c4r1._visible = false; c4r2._visible = false; c4r3._visible = false; health = 4; startx = _x; } frame 101 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(400); gotoAndPlay('explode2'); } if (health <= 3) { _parent.addpoints(100); c4r0._visible = false; c4r1._visible = true; } if (health <= 2) { _parent.addpoints(100); c4r1._visible = false; c4r2._visible = true; } if (health <= 1) { _parent.addpoints(100); c4r2._visible = false; c4r3._visible = true; } } function enemyaction() { if (c4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c4r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c4r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c4r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > 800) { _parent.removeenemy(_name); } _x = _x + 5; } c4r0._visible = true; c4r1._visible = false; c4r2._visible = false; c4r3._visible = false; health = 4; startx = _x; } frame 200 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(400); gotoAndPlay('explode3'); } if (health <= 3) { _parent.addpoints(100); c4r0._visible = false; c4r1._visible = true; } if (health <= 2) { _parent.addpoints(100); c4r1._visible = false; c4r2._visible = true; } if (health <= 1) { _parent.addpoints(100); c4r2._visible = false; c4r3._visible = true; } } function enemyaction() { if (c4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c4r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c4r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c4r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > 800) { _parent.removeenemy(_name); } _y = _y + 5; } stop(); c4r0._visible = true; c4r1._visible = false; c4r2._visible = false; c4r3._visible = false; health = 4; startx = _x; } frame 209 { stop(); } frame 218 { stop(); } frame 227 { stop(); } } movieClip 1283 { frame 70 { gotoAndPlay(1); } } movieClip 1285 { frame 70 { gotoAndPlay(1); } } movieClip 1287 { frame 70 { gotoAndPlay(1); } } movieClip 1289 { frame 70 { gotoAndPlay(1); } } movieClip 1291 { frame 70 { gotoAndPlay(1); } } movieClip 1292 c3 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(400); gotoAndPlay('explode'); } if (health <= 4) { _parent.addpoints(40); c3r0._visible = false; c3r1._visible = true; } if (health <= 3) { _parent.addpoints(40); c3r1._visible = false; c3r2._visible = true; } if (health <= 2) { _parent.addpoints(40); c3r2._visible = false; c3r3._visible = true; } if (health <= 1) { _parent.addpoints(40); c3r3._visible = false; c3r4._visible = true; } } function enemyaction() { _y = _y + 1; if (c3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c3r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c3r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c3r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (c3r4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; if (guncooldown == 0) { guncooldown = 100; _parent.insertenemy('c3bullet1', _x + 15, _y + 0); } if (guncooldown2 == 0) { guncooldown2 = 100; _parent.insertenemy('c3bullet2', _x + 0, _y - 15); } if (guncooldown3 == 0) { guncooldown3 = 100; _parent.insertenemy('c3bullet3', _x - 15, _y + 0); } if (guncooldown4 == 0) { guncooldown4 = 100; _parent.insertenemy('c3bullet4', _x + 0, _y + 15); } } stop(); health = 7; c3r0._visible = true; c3r1._visible = false; c3r2._visible = false; c3r3._visible = false; c3r4._visible = false; startx = _x; guncooldown = 100; guncooldown2 = 100; guncooldown3 = 100; guncooldown4 = 100; } frame 9 { stop(); } } movieClip 1294 { } movieClip 1296 { } movieClip 1297 { } movieClip 1299 { } movieClip 1301 { } movieClip 1302 { } movieClip 1303 { } movieClip 1305 { } movieClip 1306 { } movieClip 1308 { } movieClip 1309 { } movieClip 1310 c2 { frame 1 { function enemyaction() { if (b1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } startx = _x; } } movieClip 1313 { } movieClip 1314 { } movieClip 1315 { } movieClip 1317 { } movieClip 1318 { } movieClip 1319 c1 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(255); gotoAndPlay('explode'); } if (health <= 4) { _parent.addpoints(25); } } function enemyaction() { if (c1r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p5.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p6.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p7.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p8.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p9.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p10.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p11.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p12.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p13.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p14.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p15.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p16.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (p17.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } } health = 5; startx = _x; } frame 431 { stop(); } frame 432 { stop(); } } movieClip 1328 { frame 140 { stop(); } } movieClip 1329 b9 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(500); gotoAndPlay('explode'); } if (health <= 1) { _parent.addpoints(50); } } function enemyaction() { _y = _y + 1; if (b9r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 2; } else { _x = _x - 2; } } stop(); health = 2; startx = _x; } frame 9 { stop(); } } movieClip 1331 { } movieClip 1333 { } movieClip 1335 { } movieClip 1337 { } movieClip 1339 { } movieClip 1350 b8 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(1111); gotoAndPlay('explode'); } if (health <= 12) { _parent.addpoints(55); b8r0._visible = false; b8r1._visible = true; } if (health <= 9) { _parent.addpoints(55); b8r1._visible = false; b8r2._visible = true; } if (health <= 6) { _parent.addpoints(55); b8r2._visible = false; b8r3._visible = true; } if (health <= 3) { _parent.addpoints(55); b8r3._visible = false; b8r4._visible = true; } } function enemyaction() { _y = _y + 2; if (b8r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b8r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b8r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b8r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b8r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; } health = 15; b8r0._visible = true; b8r1._visible = false; b8r2._visible = false; b8r3._visible = false; b8r4._visible = false; startx = _x; } frame 2 { stop(); } frame 3 { guncooldown = 55555; guncooldown2 = 55555; guncooldown3 = 55555; guncooldown4 = 55555; guncooldown5 = 55555; } frame 38 { stop(); } } movieClip 1351 { frame 79 { gotoAndPlay(1); } } movieClip 1352 b7 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(100); gotoAndPlay('explode'); } } function enemyaction() { _y = _y + 1; if (b7r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 2; --guncooldown; --guncooldown2; --guncooldown3; if (guncooldown == 0) { guncooldown = 30; _parent.insertenemy('b7bullet1', _x - 17, _y + 17); } if (guncooldown2 == 0) { guncooldown2 = 30; _parent.insertenemy('b7bullet2', _x + 0, _y + 17); } if (guncooldown3 == 0) { guncooldown3 = 30; _parent.insertenemy('b7bullet3', _x + 17, _y + 17); } } stop(); health = 5; startx = _x; guncooldown = 30; guncooldown2 = 30; guncooldown3 = 30; } frame 10 { stop(); } } movieClip 1360 { frame 21 { gotoAndPlay(1); } } movieClip 1368 { frame 21 { gotoAndPlay(1); } } movieClip 1376 { frame 21 { gotoAndPlay(1); } } movieClip 1384 { frame 21 { gotoAndPlay(1); } } movieClip 1392 { frame 21 { gotoAndPlay(1); } } movieClip 1393 b6 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(200); gotoAndStop('explode'); } if (health <= 4) { _parent.addpoints(20); b6r0._visible = false; b6r1._visible = true; } if (health <= 3) { _parent.addpoints(20); b6r1._visible = false; b6r2._visible = true; } if (health <= 2) { _parent.addpoints(20); b6r2._visible = false; b6r3._visible = true; } if (health <= 1) { _parent.addpoints(20); b6r3._visible = false; b6r4._visible = true; } } function enemyaction() { _y = _y + 1; if (b6r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b6r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b6r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b6r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b6r4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } health = 5; b6r0._visible = true; b6r1._visible = false; b6r2._visible = false; b6r3._visible = false; b6r4._visible = false; startx = _x; } frame 1 { gotoAndPlay(2); } frame 40 { gotoAndPlay(2); } } movieClip 1399 { frame 40 { gotoAndPlay(1); } } movieClip 1400 { } movieClip 1406 { frame 40 { gotoAndPlay(1); } } movieClip 1407 b5 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(-2000); gotoAndPlay('explode'); } } function enemyaction() { if (_y < -615) { _parent.addpoints(1000); gotoAndPlay('ascended'); } _y = _y - 2; } stop(); health = 1; startx = _x; } frame 2 { function enemyaction() { _y = _y - 0; } } frame 51 { stop(); } frame 52 { function enemyaction() { _y = _y - 0; } } frame 101 { stop(); } } movieClip 1408 { } movieClip 1410 { } movieClip 1412 { } movieClip 1415 b4b { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(200); gotoAndPlay('explode'); } if (health <= 2) { _parent.addpoints(50); b4r0._visible = false; b4r1._visible = true; } if (health <= 1) { _parent.addpoints(50); b4r1._visible = false; b4r2._visible = true; } } function enemyaction() { if (b4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b4r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b4r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y < -615) { _parent.removeenemy(_name); } _y = _y - 4; } stop(); b4r0._visible = true; b4r1._visible = false; b4r2._visible = false; health = 3; startx = _x; } frame 10 { stop(); } } movieClip 1417 { } movieClip 1419 { } movieClip 1421 { } movieClip 1424 b4a { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(200); gotoAndPlay('explode'); } if (health <= 2) { _parent.addpoints(50); b4r0._visible = false; b4r1._visible = true; } if (health <= 1) { _parent.addpoints(50); b4r1._visible = false; b4r2._visible = true; } } function enemyaction() { if (b4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b4r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b4r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 4; _x = _x - 4; } stop(); b4r0._visible = true; b4r1._visible = false; b4r2._visible = false; health = 3; startx = _x; } frame 10 { stop(); } } movieClip 1427 b4 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(200); gotoAndPlay('explode'); } if (health <= 2) { _parent.addpoints(50); b4r0._visible = false; b4r1._visible = true; } if (health <= 1) { _parent.addpoints(50); b4r1._visible = false; b4r2._visible = true; } } function enemyaction() { if (b4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b4r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b4r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 4; _x = _x + 4; } stop(); b4r0._visible = true; b4r1._visible = false; b4r2._visible = false; health = 3; startx = _x; } frame 10 { stop(); } } movieClip 1430 { frame 15 { stop(); } } movieClip 1431 b3 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (b3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 4; } health = 2; startx = _x; } frame 5 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (b3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 6; } } frame 8 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (b3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 10; } } frame 11 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (b3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 15; } } frame 14 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (b3r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 19; if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); } frame 22 { stop(); } } movieClip 1435 { frame 40 { gotoAndPlay(1); } } movieClip 1436 { frame 40 { gotoAndPlay(1); } } movieClip 1438 { } movieClip 1439 { frame 40 { gotoAndPlay(1); } } movieClip 1440 { frame 40 { gotoAndPlay(1); } } movieClip 1441 { frame 40 { gotoAndPlay(1); } } movieClip 1442 { frame 40 { gotoAndPlay(1); } } movieClip 1443 { frame 40 { gotoAndPlay(1); } } movieClip 1444 { frame 40 { gotoAndPlay(1); } } movieClip 1445 { frame 40 { gotoAndPlay(1); } } movieClip 1446 { frame 40 { gotoAndPlay(1); } } movieClip 1447 { } movieClip 1449 { } movieClip 1450 { } movieClip 1451 b1 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(1000); gotoAndPlay('explode'); } if (health <= 9) { _parent.addpoints(10); b1r0._visible = false; b1r1._visible = true; } if (health <= 8) { _parent.addpoints(10); b1r1._visible = false; b1r2._visible = true; } if (health <= 7) { _parent.addpoints(10); b1r2._visible = false; b1r3._visible = true; } if (health <= 6) { _parent.addpoints(10); b1r3._visible = false; b1r4._visible = true; } if (health <= 5) { _parent.addpoints(10); b1r4._visible = false; b1r5._visible = true; } if (health <= 4) { _parent.addpoints(10); b1r5._visible = false; b1r6._visible = true; } if (health <= 3) { _parent.addpoints(10); b1r6._visible = false; b1r7._visible = true; } if (health <= 2) { _parent.addpoints(10); b1r7._visible = false; b1r8._visible = true; } if (health <= 1) { _parent.addpoints(10); b1r8._visible = false; b1r9._visible = true; } } function enemyaction() { if (b1r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b1r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b1r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b1r4.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b1r5.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b1r6.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b1r7.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b1r8.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b1r9.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } health = 10; b1r0._visible = true; b1r1._visible = false; b1r2._visible = false; b1r3._visible = false; b1r4._visible = false; b1r5._visible = false; b1r6._visible = false; b1r7._visible = false; b1r8._visible = false; b1r9._visible = false; startx = _x; } frame 1 { gotoAndPlay(2); } frame 300 { stop(); } frame 301 { stop(); } } movieClip 1455 { } movieClip 1457 { } movieClip 1459 { } movieClip 1461 { } movieClip 1463 { } movieClip 1464 b2 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(200); gotoAndPlay('explode'); } if (health <= 3) { _parent.addpoints(20); b2r0._visible = false; b2r1._visible = true; } if (health <= 2) { _parent.addpoints(20); b2r1._visible = false; b2r2._visible = true; } if (health <= 1) { _parent.addpoints(20); b2r2._visible = false; b2r3._visible = true; } } function enemyaction() { _y = _y + 1; if (b2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b2r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b2r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (b2r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } --guncooldown; --guncooldown2; --guncooldown3; --guncooldown4; if (guncooldown == 0) { guncooldown = 40; _parent.insertenemy('a1bullet1', _x - 19, _y + 41); } if (guncooldown2 == 0) { guncooldown2 = 40; _parent.insertenemy('a1bullet2', _x + 1, _y + 36); } if (guncooldown3 == 0) { guncooldown3 = 40; _parent.insertenemy('a1bullet3', _x + 15, _y + 36); } if (guncooldown4 == 0) { guncooldown4 = 40; _parent.insertenemy('a1bullet4', _x + 32, _y + 41); } } health = 4; b2r0._visible = true; b2r1._visible = false; b2r2._visible = false; b2r3._visible = false; startx = _x; guncooldown = 40; guncooldown2 = 40; guncooldown3 = 40; guncooldown4 = 40; } frame 2 { stop(); } frame 3 { guncooldown = 55555; guncooldown2 = 55555; guncooldown3 = 55555; } frame 10 { stop(); } } movieClip 1466 { } movieClip 1468 { } movieClip 1472 { } movieClip 1473 { frame 6 { gotoAndPlay(1); } } movieClip 1475 f1 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(750); gotoAndPlay('explode'); } else { _parent.addpoints(75); } } function enemyaction() { if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } if (f1r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 2; if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { _parent.removeenemy(_name); } } health = 7; } frame 41 { stop(); } frame 49 { stop(); } } movieClip 1481 { frame 40 { gotoAndPlay(1); } } movieClip 1487 { frame 40 { gotoAndPlay(1); } } movieClip 1493 { frame 40 { gotoAndPlay(1); } } movieClip 1494 a5 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(-1000); gotoAndPlay('explode'); } } function enemyaction() { if (_y < -615) { _parent.addpoints(500); gotoAndPlay('ascended'); } _y = _y - 2; } stop(); health = 1; startx = _x; } frame 2 { function enemyaction() { _y = _y - 0; } } frame 51 { stop(); } frame 52 { function enemyaction() { _y = _y - 0; } } frame 101 { stop(); } } movieClip 1496 { } movieClip 1499 a7a { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(100); gotoAndPlay('explode'); } if (health <= 1) { _parent.addpoints(25); a7r0._visible = false; a7r1._visible = true; } } function enemyaction() { if (a7r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (a7r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 4; _x = _x + 4; } stop(); a7r0._visible = true; a7r1._visible = false; health = 2; startx = _x; } frame 10 { stop(); } } movieClip 1502 a7 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(100); gotoAndPlay('explode'); } if (health <= 1) { _parent.addpoints(25); a7r0._visible = false; a7r1._visible = true; } } function enemyaction() { if (a7r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (a7r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 4; _x = _x - 4; } stop(); a7r0._visible = true; a7r1._visible = false; health = 2; startx = _x; } frame 10 { stop(); } } movieClip 1508 { frame 16 { gotoAndPlay(1); } } movieClip 1516 a10 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(555); gotoAndPlay('explode'); } else { _parent.addpoints(11); } } function enemyaction() { if (moveright) { _x = _x + 2; if (_x > startx + maxdist) { moveright = false; } } else { _x = _x - 2; if (_x < startx - maxdist) { moveright = true; } } if (_y < -650) { _parent.removeenemy(_name); } if (a10r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y - 0.5; } stop(); health = 15; moveright = true; maxdist = 25; startx = _x; } frame 9 { stop(); } } movieClip 1519 { frame 15 { stop(); } } movieClip 1520 a2 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (a2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 2; } health = 1; startx = _x; } frame 5 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (a2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 4; } } frame 8 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (a2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 7; } } frame 11 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (a2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 11; } } frame 14 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(50); gotoAndPlay('explode'); } } function enemyaction() { if (a2r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } _y = _y + 15; if (_y > Stage.height) { _parent.removeenemy(_name); } } stop(); } frame 15 { guncooldown = 55555; guncooldown2 = 55555; guncooldown3 = 55555; } frame 22 { stop(); } } movieClip 1522 { } movieClip 1524 { } movieClip 1526 { } movieClip 1528 { } movieClip 1540 a4 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(500); gotoAndPlay('explode'); } if (health <= 8) { _parent.addpoints(20); a4r0._visible = false; a4r1._visible = true; } if (health <= 6) { _parent.addpoints(20); a4r1._visible = false; a4r2._visible = true; } if (health <= 4) { _parent.addpoints(20); a4r2._visible = false; a4r3._visible = true; } if (health <= 2) { _parent.addpoints(20); a4r3._visible = false; a4r4._visible = true; } } function enemyaction() { _y = _y + 2; if (a4r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (a4r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (a4r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (a4r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (a4r3.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; } health = 10; a4r0._visible = true; a4r1._visible = false; a4r2._visible = false; a4r3._visible = false; a4r4._visible = false; startx = _x; } frame 2 { stop(); } frame 3 { guncooldown = 55555; guncooldown2 = 55555; guncooldown3 = 55555; guncooldown4 = 55555; guncooldown5 = 55555; } frame 38 { stop(); } } movieClip 1542 { } movieClip 1545 { } movieClip 1547 { } movieClip 1549 { } movieClip 1550 a1 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(100); gotoAndPlay('explode'); } if (health <= 2) { _parent.addpoints(10); a9r0._visible = false; a9r1._visible = true; } if (health <= 1) { _parent.addpoints(10); a9r1._visible = false; a9r2._visible = true; } } function enemyaction() { _y = _y + 1; if (a9r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (a9r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (a9r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } _y = _y + 1; if (_parent.ship._x > _x) { _x = _x + 1; } else { _x = _x - 1; } --guncooldown; --guncooldown2; --guncooldown3; if (guncooldown == 0) { guncooldown = 40; _parent.insertenemy('a1bullet1', _x - 19, _y + 40); } if (guncooldown2 == 0) { guncooldown2 = 40; _parent.insertenemy('a1bullet2', _x + 8, _y + 33); } if (guncooldown3 == 0) { guncooldown3 = 40; _parent.insertenemy('a1bullet3', _x + 32, _y + 40); } } health = 3; a9r0._visible = true; a9r1._visible = false; a9r2._visible = false; startx = _x; guncooldown = 40; guncooldown2 = 40; guncooldown3 = 40; } frame 2 { stop(); } frame 3 { guncooldown = 55555; guncooldown2 = 55555; guncooldown3 = 55555; } frame 10 { stop(); } } movieClip 1558 { frame 21 { gotoAndPlay(1); } } movieClip 1566 { frame 21 { gotoAndPlay(1); } } movieClip 1574 { frame 21 { gotoAndPlay(1); } } movieClip 1575 a9 { frame 1 { function takedamage(strength) { health -= strength; if (health <= 0) { _parent.addpoints(100); gotoAndStop('explode'); } if (health <= 2) { _parent.addpoints(10); a1r0._visible = false; a1r1._visible = true; } if (health <= 1) { _parent.addpoints(10); a1r1._visible = false; a1r2._visible = true; } } function enemyaction() { _y = _y + 1; if (a1r0.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (a1r1.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (a1r2.hitTest(_parent.ship.hitarea)) { _parent.hitship(); } if (_y > Stage.height) { _parent.removeenemy(_name); } } health = 3; a1r0._visible = true; a1r1._visible = false; a1r2._visible = false; startx = _x; } frame 1 { gotoAndPlay(2); } frame 40 { gotoAndPlay(2); } } movieClip 1576 starfield { frame 1 { function movestars() { starcount = 1; while (starcount <= stars) { (eval('star3' + starcount))._y += (eval('star3' + starcount)).speed; if ((eval('star3' + starcount))._y > Stage.height) { newspeedandsize = Math.random() * 4 + 1; (eval('star3' + starcount)).speed = newspeedandsize; (eval('star3' + starcount))._width = newspeedandsize; (eval('star3' + starcount))._height = newspeedandsize; (eval('star3' + starcount))._y = -newspeedandsize; (eval('star3' + starcount))._x = Math.random() * Stage.width; } ++starcount; } } stars = 25; starcount = 1; while (starcount <= stars) { this.attachMovie('star3', 'star3' + starcount, this.getNextHighestDepth()); ++starcount; } } } frame 1 { function itemHandler1(obj, item) { getURL('http://www.nonoba.com', ''); } MovieClip.prototype.tabEnabled = false; Button.prototype.tabEnabled = false; TextField.prototype.tabEnabled = false; var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); item1 = new ContextMenuItem('For those who seek cheats', itemHandler1); item2 = new ContextMenuItem('In the land of peeks', itemHandler2); item3 = new ContextMenuItem('Vex themselves to a place', itemHandler3); item4 = new ContextMenuItem('Even Hell will not debase', itemHandler4); myMenu.customItems.push(item1); _root.menu = myMenu; } frame 1 { stop(); } movieClip 1580 { } movieClip 1583 { } movieClip 1594 { } movieClip 1597 { } movieClip 1599 { } movieClip 1603 { } movieClip 1604 { } movieClip 1607 { } movieClip 1611 { } movieClip 1614 { } movieClip 1615 { } movieClip 1617 { } movieClip 1618 { } movieClip 1619 { } button 1621 { on (release) { getURL('http://www.newgrounds.com', '_blank'); } } movieClip 1623 { frame 40 { stop(); } } movieClip 1648 { } button 1649 { on (release) { startMovie(); } } movieClip 1650 { frame 1 { function timerHandler() { if (!loadingComplete) { var v4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * v4; if (v4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop('loaded'); } return undefined; } } dt = getTimer() - time; time += dt; frameAccum += dt; var v3 = 0; for (;;) { if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break; advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } frameAccum -= FRAME_TIME; v3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return undefined; } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof clip[childName] == 'movieclip') { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _root.play(); } _root.stop(); stop(); var FRAME_TIME = 33.33333333333334; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler(); } } movieClip 2014 __Packages.Nonoba.api.NonobaAPI { #initclip if (!_global.Nonoba) { _global.Nonoba = new Object(); } if (!_global.Nonoba.api) { _global.Nonoba.api = new Object(); } if (!_global.Nonoba.api.NonobaAPI) { var v1 = function () { throw new Error('ERROR!: You cannot create an instance of the NonobaAPI class!'); }; Nonoba.api.NonobaAPI = v1; var v2 = v1.prototype; v1.SubmitScore = function (key, score, callback) { if (!Nonoba.api.NonobaAPI.isInited) { Nonoba.api.NonobaAPI.Init(); } if (Nonoba.api.NonobaAPI.failed) { if (callback) { callback(Nonoba.api.NonobaAPI.ERROR); } return undefined; } if (Nonoba.api.NonobaAPI.api && Nonoba.api.NonobaAPI.api.SubmitScore) { Nonoba.api.NonobaAPI.api.SubmitScore(key, score, callback); } else { Nonoba.api.NonobaAPI.cachedRequests.push(function () { Nonoba.api.NonobaAPI.SubmitScore(key, score, callback); }); } }; v1.AwardAchievement = function (key, callback) { if (!Nonoba.api.NonobaAPI.isInited) { Nonoba.api.NonobaAPI.Init(); } if (Nonoba.api.NonobaAPI.failed) { if (callback) { callback(Nonoba.api.NonobaAPI.ERROR, 0); } return undefined; } if (Nonoba.api.NonobaAPI.api && Nonoba.api.NonobaAPI.api.AwardAchievement) { Nonoba.api.NonobaAPI.api.AwardAchievement(key, callback); } else { Nonoba.api.NonobaAPI.cachedRequests.push(function () { Nonoba.api.NonobaAPI.AwardAchievement(key, callback); }); } }; v1.SetUserData = function (key, value, callback) { if (!Nonoba.api.NonobaAPI.isInited) { Nonoba.api.NonobaAPI.Init(); } if (Nonoba.api.NonobaAPI.failed) { if (callback) { callback(Nonoba.api.NonobaAPI.ERROR); } return undefined; } if (Nonoba.api.NonobaAPI.api && Nonoba.api.NonobaAPI.api.SetUserData) { Nonoba.api.NonobaAPI.api.SetUserData(key, value, callback); } else { Nonoba.api.NonobaAPI.cachedRequests.push(function () { Nonoba.api.NonobaAPI.SetUserData(key, value, callback); }); } }; v1.GetUserData = function (key, callback) { if (!Nonoba.api.NonobaAPI.isInited) { Nonoba.api.NonobaAPI.Init(); } if (Nonoba.api.NonobaAPI.failed) { if (callback) { callback(Nonoba.api.NonobaAPI.ERROR, ''); } return undefined; } if (Nonoba.api.NonobaAPI.api && Nonoba.api.NonobaAPI.api.GetUserData) { Nonoba.api.NonobaAPI.api.GetUserData(key, callback); } else { Nonoba.api.NonobaAPI.cachedRequests.push(function () { Nonoba.api.NonobaAPI.GetUserData(key, callback); }); } }; v1.GetUsername = function (callback) { if (!Nonoba.api.NonobaAPI.isInited) { Nonoba.api.NonobaAPI.Init(); } if (Nonoba.api.NonobaAPI.failed) { if (callback) { callback(Nonoba.api.NonobaAPI.ERROR, ''); } return undefined; } if (Nonoba.api.NonobaAPI.api && Nonoba.api.NonobaAPI.api.GetUsername) { Nonoba.api.NonobaAPI.api.GetUsername(callback); } else { Nonoba.api.NonobaAPI.cachedRequests.push(function () { Nonoba.api.NonobaAPI.GetUsername(callback); }); } }; v1.Init = function (container) { function emptyCache() { var v1 = 0; while (v1 < Nonoba.api.NonobaAPI.cachedRequests.length) { Nonoba.api.NonobaAPI.cachedRequests[v1](); ++v1; } Nonoba.api.NonobaAPI.cachedRequests = []; } if (Nonoba.api.NonobaAPI.isInited) { throw new Error('NonobaAPI can not be re-initialized!'); } Nonoba.api.NonobaAPI.isInited = true; var v3 = _root.nonoba$apicodeas2; if (!v3) { Nonoba.api.NonobaAPI.failed = true; emptyCache(); } System.security.allowDomain('*'); container = container || _root; Nonoba.api.NonobaAPI.api = container.createEmptyMovieClip('___NonobaAPI__loader', container.getNextHighestDepth()); var v5 = new MovieClipLoader(); v5.addListener({'onLoadComplete': function () { var loadTimer = setInterval(mx.utils.Delegate.create(Nonoba.api.NonobaAPI, function () { if (Nonoba.api.NonobaAPI.api.SubmitScore !== undefined) { clearInterval(loadTimer); emptyCache(); } }), 500); }, 'onLoadError': function () { Nonoba.api.NonobaAPI.failed = true; emptyCache(); }}); v5.loadClip(v3, Nonoba.api.NonobaAPI.api); }; v1.SUCCESS = 'SUCCESS'; v1.NOT_LOGGED_IN = 'user not logged in'; v1.ERROR = 'error'; v1.isInited = false; v1.loading = false; v1.cachedRequests = []; v1.failed = false; ASSetPropFlags(Nonoba.api.NonobaAPI.prototype, null, 1); } #endinitclip } movieClip 2015 __Packages.mx.utils.Delegate { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.utils) { _global.mx.utils = new Object(); } if (!_global.mx.utils.Delegate) { var v1 = function (f) { super(); this.func = f; }; mx.utils.Delegate = v1; mx.utils.Delegate extends Object; var v2 = v1.prototype; v1.create = function (obj, func) { var v2 = function () { var v2 = arguments.callee.target; var v3 = arguments.callee.func; return v3.apply(v2, arguments); }; v2.target = obj; v2.func = func; return v2; }; v2.createDelegate = function (obj) { return mx.utils.Delegate.create(obj, this.func); }; ASSetPropFlags(mx.utils.Delegate.prototype, null, 1); } #endinitclip } frame 2 { stop(); mySounda = new Sound(); mySounda.attachSound('AiS3OP'); mySounda.start(0, 999); onEnterFrame = function () { if (Key.isDown(38)) { gotoAndStop('p2'); } starfield.movestars(); }; } movieClip 1655 { frame 300 { gotoAndPlay(1); } } movieClip 1659 { frame 200 { gotoAndPlay(1); } } movieClip 1663 { frame 200 { gotoAndPlay(1); } } movieClip 1667 { frame 200 { gotoAndPlay(1); } } movieClip 1671 { frame 200 { gotoAndPlay(1); } } movieClip 1672 { } movieClip 1680 { frame 90 { gotoAndPlay(1); } } movieClip 1682 { } movieClip 1684 { } movieClip 1686 { } button 1687 { on (release) { gotoAndStop('normal'); } } movieClip 1690 { } movieClip 1693 { } frame 3 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 150}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { lives = 20; score = 0; currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Level 1', 'Level 1', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('wingame', 'wingame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); mySounda = new Sound(); mySounda.attachSound('a'); mySounda.start(0, 999); stop(); var lives = 20; var score = 0; var level0enemies = []; var level1enemies = [[10, 'i7', 313], [70, 'i7', 403], [120, 'f1', 223], [182, 'e1', 493], [182, 'e1', 133], [183, 'e1', 43], [183, 'e1', 583], [200, 'a2', 43], [200, 'a2', 583], [201, 'a2', 133], [201, 'a2', 493], [202, 'a2', 223], [202, 'a2', 403], [203, 'a2', 313], [480, 'a2', 313], [481, 'a2', 403], [481, 'a2', 223], [482, 'a2', 493], [482, 'a2', 133], [483, 'a2', 43], [483, 'a2', 583], [600, 'a2', 43], [600, 'a2', 583], [601, 'a2', 133], [601, 'a2', 493], [602, 'a2', 223], [602, 'a2', 203], [683, 'a2', 313]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } movieClip 1697 { frame 1 { function weaponaction() { if (_y + _height < 0) { _parent.removeweapon(_name); } curenemy = 0; while (curenemy < _parent.enemies.length) { if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) { if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r5'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r6'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss1r7'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.boss4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.endlevel'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a4r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a7r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a9r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a9r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.a10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r5'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r6'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r7'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r8'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b1r9'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b2r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b6r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b6r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b6r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b6r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b8r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.b9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c3r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c4r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c6r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c6r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c6r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c6r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c6r5'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c6r6'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c8r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c9r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.c10r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d7r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d7r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d7r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d7r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d7r5'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d7r6'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d7r7'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e1r0v2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e2r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e2r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e2r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.e2r4'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.f2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i1r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i1r1'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i1r2'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i1r3'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i2r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i3r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i4r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i5r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i6r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.i7r0'))) { (eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength); _parent.removeweapon(_name); } } else { if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) { _parent.removeweapon(_name); } } ++curenemy; } } weaponstrength = 1; } instance newBullet of movieClip 503 { onClipEvent (load) { if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) { this.removeMovieClip(); } } } frame 15 { this.onEnterFrame = function () { this.removeMovieClip(); }; } frame 15 { stop(); } } frame 4 { gotoAndStop('lv1'); stopAllSounds(); var lives = 35; var score = 0; } frame 5 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserlv1', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } if (currentweapon == 'powershot') { this.attachMovie('laserlv1power', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Level 1', 'Level 1', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Level 1 Complete', 'Level 1 Complete', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); mySounda = new Sound(); mySounda.attachSound('Level 1 Music'); mySounda.start(0, 999); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [50, 'a9', 100], [100, 'a9', 200], [150, 'a9', 300], [200, 'a9', 400], [250, 'a9', 500], [300, 'a9', 400], [350, 'a9', 300], [400, 'a9', 200], [450, 'a9', 400], [500, 'a9', 100], [550, 'a9', 200], [600, 'a9', 500], [650, 'a9', 100], [700, 'a9', 300], [750, 'a9', 200], [800, 'a1', 100], [850, 'a1', 300], [900, 'a1', 500], [950, 'a1', 200], [1000, 'a1', 400], [1050, 'a1', 200], [1100, 'a1', 500], [1150, 'a1', 200], [1200, 'a1', 300], [1250, 'a1', 100], [1300, 'a2', 50], [1320, 'a2', 100], [1340, 'a2', 150], [1360, 'a2', 200], [1380, 'a2', 250], [1400, 'a2', 300], [1420, 'a2', 350], [1440, 'a2', 400], [1460, 'a2', 450], [1480, 'a2', 500], [1500, 'a2', 550], [1520, 'a2', 600], [1540, 'a2', 550], [1560, 'a2', 500], [1580, 'a2', 450], [1600, 'a2', 400], [1620, 'a2', 350], [1640, 'a2', 300], [1660, 'a2', 250], [1680, 'a2', 200], [1700, 'a2', 150], [1720, 'a2', 100], [1740, 'a2', 50], [1750, 'a4', 200], [1751, 'a4', 400], [1775, 'a9', 200], [1800, 'a9', 100], [1825, 'a9', 400], [1850, 'a10', 100], [1875, 'a4', 200], [1900, 'a1', 400], [1925, 'a1', 300], [1950, 'a1', 250], [1975, 'a7a', 0], [1976, 'a7', 600], [2025, 'a7a', 0], [2026, 'a7', 600], [2040, 'a5', 100], [2060, 'a9', 400], [2080, 'a1', 300], [2100, 'a9', 500], [2120, 'a1', 200], [2140, 'a9', 400], [2200, 'a2', 50], [2201, 'a2', 150], [2202, 'a2', 250], [2203, 'a2', 350], [2204, 'a2', 450], [2205, 'a2', 550], [2220, 'a2', 50], [2221, 'a2', 150], [2222, 'a2', 250], [2223, 'a2', 350], [2224, 'a2', 450], [2225, 'a2', 550], [2240, 'a2', 50], [2241, 'a2', 150], [2242, 'a2', 250], [2243, 'a2', 350], [2244, 'a2', 450], [2245, 'a2', 550], [2260, 'a2', 50], [2261, 'a2', 150], [2262, 'a2', 250], [2263, 'a2', 350], [2264, 'a2', 450], [2265, 'a2', 550], [2280, 'a2', 50], [2281, 'a2', 150], [2282, 'a2', 250], [2283, 'a2', 350], [2284, 'a2', 450], [2285, 'a2', 550], [2300, 'a2', 50], [2301, 'a2', 150], [2302, 'a2', 250], [2303, 'a2', 350], [2304, 'a2', 450], [2305, 'a2', 550], [2320, 'a2', 50], [2321, 'a2', 150], [2322, 'a2', 250], [2323, 'a2', 350], [2324, 'a2', 450], [2325, 'a2', 550], [2340, 'a2', 50], [2341, 'a2', 150], [2342, 'a2', 250], [2343, 'a2', 350], [2344, 'a2', 450], [2345, 'a2', 550], [2360, 'a2', 50], [2361, 'a2', 150], [2362, 'a2', 250], [2363, 'a2', 350], [2364, 'a2', 450], [2365, 'a2', 550], [2380, 'a2', 50], [2381, 'a2', 150], [2382, 'a2', 250], [2383, 'a2', 350], [2384, 'a2', 450], [2385, 'a2', 550], [2400, 'a4', 50], [2401, 'a4', 150], [2402, 'a4', 250], [2403, 'a4', 350], [2404, 'a4', 450], [2405, 'a4', 550], [2425, 'a5', 100], [2426, 'a5', 525], [2427, 'a10', 200], [2428, 'a10', 400], [2435, 'a1', 500], [2450, 'a7a', 0], [2451, 'a7', 600], [2475, 'a7a', 0], [2476, 'a7', 600], [2500, 'a7a', 0], [2501, 'a7', 600], [2525, 'a7a', 0], [2526, 'a7', 600], [2550, 'a7a', 0], [2551, 'a7', 600], [2570, 'extralife', 313], [2575, 'a5', 125], [2576, 'a5', 225], [2577, 'a5', 325], [2578, 'a5', 425], [2579, 'a5', 525], [2600, 'a9', 400], [2625, 'a9', 200], [2650, 'a9', 100], [2675, 'a9', 500], [2700, 'a9', 300], [2725, 'a1', 400], [2750, 'a1', 200], [2775, 'a1', 100], [2800, 'a1', 500], [2825, 'a1', 300], [2850, 'a1', 100], [2875, 'a1', 300], [2900, 'a1', 500], [2925, 'a1', 200], [2950, 'a1', 400], [2975, 'a9', 100], [2976, 'a9', 300], [2977, 'a9', 500], [2978, 'a9', 200], [2979, 'a9', 400], [3000, 'endlevel', 313]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } movieClip 1704 { frame 1000 { gotoAndPlay(1); } } movieClip 1707 { frame 100 { gotoAndPlay(1); } } frame 6 { stop(); hp2 = 50; } movieClip 1708 { } instance hp2 of movieClip 1708 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp2 <= 0) { _root.hp2 = 0; _root.gotoAndPlay('boss1'); } } } movieClip 1710 { } instance tempchar of movieClip 1710 { onClipEvent (load) { if (hitTest(_root.enemyd)) { _root.health._xscale -= 1; } } } movieClip 1712 { } movieClip 1727 { frame 21 { gotoAndPlay(1); } } movieClip 1729 { } movieClip 1731 { } movieClip 1736 { frame 21 { gotoAndPlay(1); } } movieClip 1738 { } movieClip 1749 { frame 21 { gotoAndPlay(1); } } movieClip 1757 { } movieClip 1760 { frame 50 { stop(); } } movieClip 1762 { frame 1 { stopAllSounds(); } frame 232 { stopAllSounds(); } frame 233 { mySoundb = new Sound(); mySoundb.attachSound('foesound'); mySoundb.start(0, 0); } frame 307 { stop(); } frame 307 { mySoundc = new Sound(); mySoundc.attachSound('foe2a'); mySoundc.start(0, 0); mySoundc.onSoundComplete = function () { gotoAndStop('pr2'); }; } frame 308 { stop(); } frame 308 { mySoundg = new Sound(); mySoundg.attachSound('foecheer'); mySoundg.start(0, 0); mySoundg.onSoundComplete = function () { gotoAndStop('pr3'); }; } frame 309 { stop(); } frame 309 { mySoundd = new Sound(); mySoundd.attachSound('foe2b'); mySoundd.start(0, 0); mySoundd.onSoundComplete = function () { gotoAndStop('pr4'); }; } frame 310 { stop(); } frame 310 { mySoundg = new Sound(); mySoundg.attachSound('foecheer'); mySoundg.start(0, 0); mySoundg.onSoundComplete = function () { gotoAndStop('pr5'); }; } frame 311 { stop(); } frame 311 { mySounde = new Sound(); mySounde.attachSound('foe2c'); mySounde.start(0, 0); mySounde.onSoundComplete = function () { gotoAndStop('pr6'); }; } frame 312 { stop(); } frame 312 { mySoundg = new Sound(); mySoundg.attachSound('foecheer'); mySoundg.start(0, 0); mySoundg.onSoundComplete = function () { gotoAndStop('pr7'); }; } frame 313 { stop(); } frame 313 { mySoundg = new Sound(); mySoundg.attachSound('foecheer'); mySoundg.start(0, 0); mySoundg.onSoundComplete = function () { gotoAndPlay('pr8'); }; } frame 314 { mySoundf = new Sound(); mySoundf.attachSound('foe2d'); mySoundf.start(0, 0); } frame 596 { mySoundh = new Sound(); mySoundh.attachSound('foecheer'); mySoundh.start(0, 0); } frame 647 { stop(); } } instance enemyd of movieClip 1762 { onClipEvent (enterFrame) { if (_root.tempchar.hitTest(this)) { _root.hp2 -= 500; } } } frame 7 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss1', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 1', 'Boss 1', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss 1 Win', 'Boss 1 Win', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss1', 0]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } movieClip 1765 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } frame 8 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserlv2', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } if (currentweapon == 'powershot') { this.attachMovie('laserlv2power', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Level 2', 'Level 2', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Level 2 Complete', 'Level 2 Complete', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); mySounda = new Sound(); mySounda.attachSound('Level 2 Music'); mySounda.start(0, 999); stop(); var level0enemies = []; var level1enemies = [[25, 'a9', 400], [50, 'a9', 200], [75, 'a9', 300], [100, 'a9', 200], [125, 'a9', 450], [145, 'poweruppowershot', 313], [150, 'a9', 50], [175, 'a9', 500], [200, 'a9', 200], [225, 'a9', 300], [250, 'a9', 100], [275, 'b6', 444], [300, 'b6', 111], [325, 'b6', 333], [350, 'b6', 222], [375, 'b6', 555], [400, 'b6', 100], [425, 'b6', 200], [450, 'b6', 300], [475, 'b6', 400], [500, 'b6', 500], [525, 'a1', 100], [575, 'a1', 400], [625, 'a1', 200], [675, 'a1', 400], [725, 'a1', 100], [775, 'a1', 100], [825, 'a1', 400], [875, 'a1', 200], [925, 'a1', 400], [962, 'a1', 100], [1000, 'b2', 500], [1050, 'b2', 200], [1100, 'b2', 400], [1150, 'b2', 200], [1200, 'b2', 500], [1250, 'b2', 500], [1300, 'b2', 200], [1350, 'b2', 400], [1400, 'b2', 200], [1450, 'a2', 29], [1450, 'a2', 596], [1475, 'a2', 89], [1475, 'a2', 536], [1500, 'a2', 149], [1500, 'a2', 476], [1525, 'a2', 209], [1525, 'a2', 416], [1550, 'a2', 269], [1550, 'a2', 356], [1575, 'a2', 313], [1600, 'b3', 100], [1600, 'b3', 525], [1650, 'b8', 313], [1675, 'a7a', 1], [1675, 'a7', 624], [1700, 'a7a', 1], [1700, 'a7', 624], [1725, 'a7a', 1], [1725, 'a7', 624], [1750, 'b4', 1], [1750, 'b4a', 624], [1775, 'b4', 1], [1775, 'b4a', 624], [1800, 'b9', 200], [1820, 'poweruppowershot', 313], [1825, 'a9', 500], [1850, 'b6', 500], [1875, 'a9', 500], [1900, 'b6', 500], [1925, 'a9', 500], [1950, 'b6', 500], [1975, 'a9', 500], [2000, 'b6', 500], [2025, 'a9', 500], [2050, 'b6', 500], [2075, 'a9', 125], [2100, 'b6', 125], [2125, 'a9', 125], [2150, 'b6', 125], [2175, 'a9', 125], [2200, 'b6', 125], [2225, 'a9', 125], [2250, 'b5', 125], [2275, 'a9', 125], [2300, 'b6', 125], [2325, 'a9', 315], [2350, 'b6', 315], [2375, 'a9', 315], [2400, 'b6', 315], [2425, 'a9', 315], [2450, 'b6', 315], [2475, 'a9', 315], [2500, 'b6', 315], [2525, 'a9', 315], [2550, 'b6', 315], [2700, 'b9', 500], [2800, 'b9', 500], [2900, 'b9', 500], [2950, 'b9', 500], [3000, 'b9', 500], [3050, 'b7', 313], [3150, 'b7', 100], [3150, 'b7', 525], [3250, 'b5', 200], [3250, 'b7', 425], [3300, 'poweruppowershot', 313], [3350, 'b7', 100], [3350, 'b7', 525], [3400, 'b4b', 100], [3400, 'b4b', 313], [3400, 'b4b', 525], [3500, 'b7', 200], [3500, 'b7', 400], [3600, 'b7', 300], [3600, 'b7', 500], [3700, 'b7', 313], [3750, 'b9', 50], [3750, 'b9', 575], [3850, 'b8', 315], [3950, 'b8', 315], [4050, 'b8', 315], [4100, 'a2', 50], [4101, 'a2', 150], [4102, 'a2', 250], [4103, 'a2', 350], [4104, 'a2', 450], [4105, 'a2', 550], [4120, 'a2', 550], [4121, 'a2', 450], [4122, 'a2', 350], [4123, 'a2', 250], [4124, 'a2', 150], [4125, 'a2', 50], [4140, 'a2', 50], [4141, 'a2', 150], [4102, 'a2', 250], [4143, 'a2', 350], [4144, 'a2', 450], [4145, 'a2', 550], [4160, 'a2', 550], [4161, 'a2', 450], [4162, 'a2', 350], [4163, 'a2', 250], [4164, 'a2', 150], [4165, 'a2', 50], [4180, 'a2', 313], [4181, 'a2', 403], [4181, 'a2', 223], [4182, 'a2', 493], [4182, 'a2', 133], [4183, 'a2', 43], [4183, 'a2', 583], [4200, 'a2', 43], [4200, 'a2', 583], [4201, 'a2', 133], [4201, 'a2', 493], [4202, 'a2', 223], [4202, 'a2', 403], [4203, 'a2', 313], [4220, 'a2', 313], [4221, 'a2', 403], [4221, 'a2', 223], [4222, 'a2', 493], [4222, 'a2', 133], [4223, 'a2', 43], [4223, 'a2', 583], [4240, 'a2', 43], [4240, 'a2', 583], [4241, 'a2', 133], [4241, 'a2', 493], [4242, 'a2', 223], [4242, 'a2', 403], [4243, 'a2', 313], [4245, 'poweruppowershot', 313], [4250, 'b3', 100], [4250, 'b3', 200], [4250, 'b3', 300], [4250, 'b3', 400], [4250, 'b3', 500], [4260, 'b3', 100], [4260, 'b3', 200], [4260, 'b3', 300], [4260, 'b3', 400], [4260, 'b3', 500], [4270, 'b3', 100], [4270, 'b3', 200], [4270, 'b3', 300], [4270, 'b3', 400], [4270, 'b3', 500], [4280, 'b3', 100], [4280, 'b3', 200], [4280, 'b3', 300], [4280, 'b3', 400], [4280, 'b3', 500], [4350, 'b2', 100], [4375, 'a4', 500], [4400, 'b2', 100], [4425, 'a4', 500], [4450, 'a1', 100], [4475, 'a4', 500], [4500, 'b2', 100], [4525, 'a4', 500], [4550, 'b2', 100], [4575, 'b2', 500], [4475, 'a1', 100], [4500, 'b2', 500], [4525, 'a1', 100], [4550, 'b2', 500], [4575, 'b2', 100], [4625, 'a4', 113], [4625, 'a4', 513], [4625, 'b8', 313], [4700, 'b4b', 313], [4700, 'b4b', 413], [4700, 'b4b', 513], [4700, 'b4b', 613], [4700, 'b4b', 213], [4700, 'b4b', 113], [4700, 'b4b', 13], [4725, 'extralife', 313], [4750, 'b7', 100], [4750, 'b7', 500], [4850, 'b7', 200], [4850, 'b7', 400], [4950, 'b7', 300], [5100, 'b1', 0], [5150, 'b1', 0], [5200, 'b1', 0], [5200, 'b2', 50], [5250, 'b2', 575], [5300, 'b5', 313], [5350, 'b9', 200], [5400, 'b2', 400], [5450, 'b9', 400], [5500, 'b2', 200], [5500, 'endlevel', 313]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } movieClip 1768 { frame 5555 { stop(); } } frame 9 { stop(); hp2 = 50; } movieClip 1769 { frame 1 { stop(); } } movieClip 1815 { frame 10 { stop(); } } movieClip 1822 { } movieClip 1823 { frame 749 { stopAllSounds(); } frame 750 { stop(); } } instance hp2 of movieClip 1708 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp2 <= 0) { _root.hp2 = 0; _root.gotoAndPlay('boss2'); } } } instance tempchar of movieClip 1710 { onClipEvent (load) { if (hitTest(_root.enemyd)) { _root.health._xscale -= 1; } } } movieClip 1825 { frame 750 { stop(); } } instance enemyd of movieClip 1825 { onClipEvent (enterFrame) { if (_root.tempchar.hitTest(this)) { _root.hp2 -= 500; } } } frame 10 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss2', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 2', 'Boss 2', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss 2 Win', 'Boss 2 Win', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss2', 313]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } movieClip 1826 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } frame 11 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserlv3', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } if (currentweapon == 'powershot') { this.attachMovie('laserlv3power', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Level 3', 'Level 3', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Level 3 Complete', 'Level 3 Complete', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); mySounda = new Sound(); mySounda.attachSound('Level 3 Music'); mySounda.start(0, 999); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [25, 'a9', 400], [50, 'a9', 200], [75, 'a9', 300], [100, 'a9', 200], [125, 'a9', 450], [150, 'b6', 50], [175, 'b6', 500], [200, 'b6', 200], [225, 'b6', 300], [250, 'b6', 100], [275, 'c6', 422], [300, 'c6', 144], [325, 'c6', 344], [350, 'c6', 211], [375, 'c6', 555], [400, 'poweruppowershot', 313], [410, 'c2', 0], [450, 'b8', 100], [500, 'a4', 300], [500, 'a4', 500], [550, 'a4', 200], [550, 'a4', 313], [600, 'a4', 144], [600, 'a4', 344], [650, 'b8', 211], [700, 'b9', 313], [750, 'b9', 263], [750, 'b9', 363], [800, 'b9', 213], [800, 'b9', 413], [850, 'b9', 163], [850, 'b9', 463], [900, 'b9', 113], [900, 'b9', 513], [950, 'b9', 63], [1000, 'b9', 563], [1000, 'b9', 113], [1050, 'b9', 513], [1050, 'b9', 163], [1100, 'b9', 463], [1100, 'b9', 213], [1175, 'c5', 313], [1150, 'b9', 413], [1150, 'b9', 263], [1200, 'b9', 363], [1200, 'b9', 313], [1250, 'c1', 1], [1250, 'b7', 313], [1300, 'b7', 213], [1350, 'b7', 413], [1400, 'b7', 113], [1450, 'b7', 513], [1475, 'poweruppowershot', 313], [1500, 'b7', 513], [1550, 'b7', 113], [1600, 'b7', 513], [1650, 'b7', 113], [1700, 'b7', 213], [1750, 'b7', 413], [1800, 'b7', 113], [1850, 'b7', 513], [1900, 'b7', 113], [1950, 'b7', 513], [2000, 'b7', 413], [2000, 'b7', 213], [2050, 'c7', 313], [2100, 'c7', 213], [2100, 'c7', 413], [2225, 'a9', 200], [2250, 'b6', 200], [2275, 'c6', 200], [2300, 'a9', 200], [2325, 'b6', 200], [2350, 'c6', 200], [2375, 'a9', 200], [2400, 'b6', 200], [2425, 'c6', 200], [2450, 'a9', 200], [2475, 'b6', 200], [2500, 'c6', 200], [2550, 'a9', 200], [2575, 'b6', 200], [2600, 'c6', 200], [2625, 'a9', 400], [2650, 'b6', 400], [2675, 'c6', 400], [2700, 'a9', 400], [2725, 'b6', 400], [2745, 'poweruppowershot', 313], [2750, 'c6', 400], [2775, 'a9', 400], [2800, 'b6', 400], [2825, 'c6', 400], [2850, 'a9', 400], [2875, 'b6', 400], [2900, 'c6', 400], [2950, 'a9', 400], [2975, 'b6', 400], [3000, 'c6', 400], [3100, 'c9', 100], [3200, 'c9', 500], [3300, 'c9', 100], [3400, 'c7', 313], [3400, 'b7', 213], [3400, 'b7', 113], [3400, 'b7', 413], [3400, 'b7', 513], [3500, 'b3', 113], [3500, 'b3', 513], [3550, 'b3', 213], [3550, 'b3', 313], [3600, 'c8', 400], [3650, 'c4', 50], [3700, 'c4', 50], [3750, 'c4', 50], [3800, 'c4', 50], [3850, 'c4', 50], [3900, 'c4', 50], [3950, 'c4', 50], [3975, 'c5', 400], [4000, 'b4', 1], [4000, 'b4a', 624], [4000, 'c1', 1], [4030, 'b4', 1], [4030, 'b4a', 624], [4050, 'poweruppowershot', 313], [4059, 'b4', 1], [4059, 'b4a', 624], [4088, 'b4', 1], [4088, 'b4a', 624], [4117, 'b4', 1], [4117, 'b4a', 624], [4146, 'b4', 1], [4146, 'b4a', 624], [4175, 'b4', 1], [4175, 'b4a', 624], [4200, 'c3', 100], [4300, 'c3', 300], [4400, 'c3', 500], [4500, 'c3', 200], [4600, 'c3', 400], [4640, 'c5', 100], [4700, 'a2', 43], [4700, 'a2', 583], [4701, 'a2', 133], [4701, 'a2', 493], [4702, 'a2', 223], [4702, 'a2', 403], [4703, 'a2', 313], [4720, 'a2', 313], [4721, 'a2', 403], [4721, 'a2', 223], [4722, 'a2', 493], [4722, 'a2', 133], [4723, 'a2', 43], [4723, 'a2', 583], [4740, 'a2', 43], [4740, 'a2', 583], [4741, 'a2', 133], [4741, 'a2', 493], [4742, 'a2', 223], [4742, 'a2', 403], [4743, 'a2', 313], [4760, 'a2', 313], [4761, 'a2', 403], [4761, 'a2', 223], [4762, 'a2', 493], [4762, 'a2', 133], [4763, 'a2', 43], [4763, 'a2', 583], [4780, 'b3', 43], [4780, 'b3', 583], [4781, 'b3', 133], [4781, 'b3', 493], [4782, 'b3', 223], [4782, 'b3', 403], [4783, 'b3', 313], [4800, 'b3', 313], [4801, 'b3', 403], [4801, 'b3', 223], [4802, 'b3', 493], [4802, 'b3', 133], [4803, 'b3', 43], [4803, 'b3', 583], [4820, 'b3', 43], [4820, 'b3', 583], [4821, 'b3', 133], [4821, 'b3', 493], [4822, 'b3', 223], [4822, 'b3', 403], [4823, 'b3', 313], [4840, 'b3', 313], [4841, 'b3', 403], [4841, 'b3', 223], [4842, 'b3', 493], [4842, 'b3', 133], [4843, 'b3', 43], [4843, 'b3', 583], [4860, 'c8', 43], [4860, 'c8', 583], [4861, 'c8', 133], [4861, 'c8', 493], [4862, 'c8', 223], [4862, 'c8', 403], [4863, 'c8', 313], [4880, 'c8', 313], [4881, 'c8', 403], [4881, 'c8', 223], [4882, 'c8', 493], [4882, 'c8', 133], [4883, 'c8', 43], [4883, 'c8', 583], [4900, 'c8', 43], [4900, 'c8', 583], [4741, 'c8', 133], [4901, 'c8', 493], [4742, 'c8', 223], [4902, 'c8', 403], [4903, 'c8', 313], [4920, 'c8', 313], [4921, 'c8', 403], [4921, 'c8', 223], [4922, 'c8', 493], [4922, 'c8', 133], [4923, 'c8', 43], [4923, 'c8', 583], [4940, 'c8', 43], [4945, 'c8', 583], [4950, 'c8', 133], [4955, 'c8', 493], [4960, 'c8', 223], [4965, 'c8', 403], [4970, 'c8', 313], [4975, 'c8', 313], [4980, 'c8', 403], [4985, 'c8', 223], [4990, 'c8', 493], [4995, 'c8', 133], [5000, 'c8', 43], [5005, 'c8', 583], [5010, 'c8', 43], [5015, 'c8', 583], [5020, 'c8', 133], [5025, 'c8', 493], [5030, 'c8', 223], [5035, 'c8', 403], [5040, 'c8', 313], [5045, 'c8', 313], [5050, 'c8', 403], [5055, 'c8', 223], [5060, 'c8', 493], [5065, 'c8', 133], [5070, 'c8', 43], [5075, 'c8', 583], [5100, 'c2', 0], [5125, 'c3', 163], [5125, 'c3', 263], [5125, 'c3', 363], [5125, 'c3', 463], [5255, 'c9', 313], [5355, 'c9', 403], [5455, 'c9', 223], [5555, 'c9', 493], [5655, 'c9', 133], [5675, 'extralife', 313], [5700, 'c1', 1], [5700, 'b1', 1], [5750, 'c1', 1], [5750, 'b1', 1], [5800, 'c1', 1], [5800, 'b1', 1], [5850, 'b1', 1], [5900, 'b1', 1], [6000, 'c4', 50], [6030, 'c4', 50], [6060, 'c4', 50], [6090, 'c4', 50], [6120, 'c4', 50], [6150, 'c4', 50], [6180, 'c4', 50], [6200, 'endlevel', 313]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } movieClip 1829 { frame 3000 { gotoAndPlay(1); } } frame 12 { stop(); hp2 = 50; onEnterFrame = function () { starfield.movestars(); }; } movieClip 1838 { frame 249 { stopAllSounds(); } frame 250 { stop(); } } instance hp2 of movieClip 1708 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp2 <= 0) { _root.hp2 = 0; _root.gotoAndPlay('boss3'); } } } instance tempchar of movieClip 1710 { onClipEvent (load) { if (hitTest(_root.enemyd)) { _root.health._xscale -= 1; } } } movieClip 1839 { frame 250 { stop(); } } instance enemyd of movieClip 1839 { onClipEvent (enterFrame) { if (_root.tempchar.hitTest(this)) { _root.hp2 -= 500; } } } frame 13 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss3', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 170}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 3', 'Boss 3', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss 3 Win', 'Boss 3 Win', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss3', 313]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } frame 14 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserlv4', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } if (currentweapon == 'trishot') { this.attachMovie('laserlv4left', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('laserlv4', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('laserlv4right', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } if (currentweapon == 'powershot') { this.attachMovie('laserlv4power', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Level 4', 'Level 4', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Level 4 Complete', 'Level 4 Complete', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); mySounda = new Sound(); mySounda.attachSound('Level 4 Music'); mySounda.start(0, 999); stop(); var level0enemies = []; 25; 'a9'; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0][100], [50, 'a9', 200], [75, 'a9', 300], [100, 'a9', 400], [125, 'b6', 500], [150, 'b6', 400], [175, 'b6', 300], [200, 'b6', 200], [225, 'c6', 100], [250, 'c6', 400], [275, 'c6', 300], [300, 'c6', 300], [325, 'd7', 500], [350, 'd7', 100], [375, 'd7', 400], [400, 'd7', 250], [500, 'poweruptrishot', 113], [500, 'poweruppowershot', 513], [550, 'c3', 113], [650, 'c3', 213], [750, 'c3', 313], [850, 'c3', 413], [950, 'c3', 513], [1050, 'c7', 113], [1150, 'c7', 413], [1250, 'c7', 213], [1350, 'c7', 513], [1450, 'c7', 313], [1500, 'c2', 0], [1500, 'f2', 125], [1550, 'f2', 525], [1600, 'f2', 225], [1650, 'f2', 125], [1700, 'f2', 113], [1750, 'f2', 513], [1800, 'f2', 213], [1850, 'f2', 413], [1900, 'f2', 313], [1925, 'poweruptrishot', 113], [1925, 'poweruppowershot', 513], [1950, 'c2', 0], [1950, 'f2', 325], [2000, 'f2', 525], [2050, 'f2', 525], [2100, 'f2', 225], [2125, 'c5', 100], [2150, 'f2', 113], [2200, 'f2', 513], [2250, 'f2', 213], [2300, 'f2', 413], [2350, 'f2', 313], [2400, 'f2', 113], [2400, 'f2', 213], [2400, 'f2', 313], [2400, 'f2', 413], [2400, 'f2', 513], [2450, 'c9', 113], [2500, 'c9', 413], [2550, 'c9', 213], [2600, 'c9', 513], [2650, 'f1', 313], [2700, 'c2', 0], [2700, 'f1', 50], [2750, 'c2', 0], [2750, 'f1', 625], [2800, 'c2', 0], [2800, 'f1', 100], [2820, 'f1', 400], [2840, 'f1', 200], [2860, 'f1', 500], [2880, 'f1', 300], [2890, 'c5', 200], [2895, 'poweruptrishot', 113], [2895, 'poweruppowershot', 513], [2900, 'c4', 50], [2950, 'c4', 50], [3000, 'c4', 50], [3050, 'c4', 50], [3100, 'c4', 50], [3200, 'e1', 100], [3300, 'e1', 400], [3400, 'e1', 200], [3500, 'e1', 500], [3600, 'e1', 300], [3700, 'e1', 400], [3750, 'f1', 100], [3800, 'e1', 500], [3850, 'f1', 200], [3900, 'e1', 300], [3950, 'd1', 100], [4000, 'd1', 500], [4050, 'd1', 200], [4100, 'd1', 400], [4150, 'd1', 300], [4200, 'd3', 300], [4250, 'd3', 400], [4300, 'd3', 200], [4350, 'd3', 500], [4400, 'd3', 100], [4425, 'poweruptrishot', 113], [4425, 'poweruppowershot', 513], [4450, 'd4', 625], [4500, 'd4', 625], [4550, 'd4', 625], [4600, 'd4', 625], [4650, 'd4', 625], [4700, 'd2', 0], [4750, 'd2', 0], [4800, 'd2', 0], [4850, 'd2', 0], [4900, 'd2', 0], [4925, 'c10', 100], [4950, 'd1', 100], [5000, 'd2', 0], [5050, 'd3', 400], [5100, 'd4', 625], [5150, 'd3', 100], [5200, 'd2', 0], [5250, 'd1', 400], [5300, 'd2', 0], [5350, 'd4', 625], [5400, 'd3', 200], [5425, 'c5', 300], [5450, 'd1', 200], [5550, 'd4', 625], [5555, 'd2', 0], [5600, 'd3', 300], [5650, 'd2', 0], [5675, 'poweruptrishot', 113], [5675, 'poweruppowershot', 513], [5700, 'd1', 300], [5750, 'd2', 0], [5800, 'd3', 500], [5850, 'd2', 0], [5900, 'd4', 625], [5950, 'c10', 400], [6000, 'c7', 113], [6000, 'c7', 513], [6050, 'd3', 200], [6100, 'd2', 0], [6150, 'd4', 625], [6175, 'extralife', 313], [6200, 'f2', 300], [6250, 'f1', 200], [6300, 'e1', 500], [6350, 'f2', 100], [6400, 'f2', 400], [6450, 'd1', 113], [6450, 'd1', 213], [6450, 'd1', 313], [6450, 'd1', 413], [6450, 'd1', 513], [6500, 'endlevel', 313]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } frame 15 { stop(); hp2 = 50; onEnterFrame = function () { starfield.movestars(); }; } movieClip 1854 { frame 449 { stopAllSounds(); } frame 450 { stop(); } } instance enemyd of movieClip 1854 { onClipEvent (enterFrame) { if (_root.tempchar.hitTest(this)) { _root.hp2 -= 500; } } } instance hp2 of movieClip 1708 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp2 <= 0) { _root.hp2 = 0; _root.gotoAndPlay('boss4'); } } } instance tempchar of movieClip 1710 { onClipEvent (load) { if (hitTest(_root.enemyd)) { _root.health._xscale -= 1; } } } frame 16 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss4', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 100}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 4', 'Boss 4', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss 4 Win', 'Boss 4 Win', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss4', 313], [0, 'boss4a', 0], [0, 'boss4b', 313], [0, 'boss4c', 0]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } frame 17 { stop(); hp2 = 50; onEnterFrame = function () { starfield.movestars(); }; } movieClip 1864 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 1865 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 1866 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 1867 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 1868 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 1869 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 1870 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 1871 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 1872 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 1873 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } movieClip 1875 { } movieClip 1876 { } movieClip 1877 { } movieClip 1878 { } movieClip 1879 { } movieClip 1880 { } movieClip 1881 { } movieClip 1882 { } movieClip 1883 { } movieClip 1884 { } movieClip 1897 { frame 209 { stopAllSounds(); } frame 699 { stopAllSounds(); } frame 700 { stop(); } } instance enemyd of movieClip 1897 { onClipEvent (enterFrame) { if (_root.tempchar.hitTest(this)) { _root.hp2 -= 500; } } } instance hp2 of movieClip 1708 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp2 <= 0) { _root.hp2 = 0; _root.gotoAndPlay('boss4sp'); } } } instance tempchar of movieClip 1710 { onClipEvent (load) { if (hitTest(_root.enemyd)) { _root.health._xscale -= 1; } } } frame 18 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss4sp', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 4 SP', 'Boss 4 SP', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss 4 SP Win', 'Boss 4 SP Win', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss4sp1', 313], [0, 'boss4sp1name', 313], [0, 'boss4sp2', 0], [0, 'boss4sp2name', 0], [0, 'boss4sp3', 0], [0, 'boss4sp3name', 0], [0, 'boss4sp4', 0], [0, 'boss4sp4name', 0], [0, 'boss4sp5', 0], [0, 'boss4sp5name', 0]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } frame 19 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserlv5', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } if (currentweapon == 'trishot') { this.attachMovie('laserlv5left', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('laserlv5', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('laserlv5right', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } if (currentweapon == 'powershot') { this.attachMovie('laserlv5power', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Level 5', 'Level 5', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Level 5 Complete', 'Level 5 Complete', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); mySounda = new Sound(); mySounda.attachSound('Level 5 Music'); mySounda.start(0, 999); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [10, 'poweruptrishot', 113], [10, 'poweruppowershot', 513], [10, 'extralife', 213], [25, 'f2', 113], [25, 'f2', 213], [25, 'f2', 313], [25, 'f2', 413], [75, 'f2', 163], [75, 'f2', 263], [75, 'f2', 363], [75, 'f2', 463], [125, 'f2', 213], [125, 'f2', 313], [125, 'f2', 413], [125, 'f2', 513], [175, 'f2', 163], [175, 'f2', 263], [175, 'f2', 363], [175, 'f2', 463], [225, 'f2', 113], [225, 'f2', 213], [225, 'f2', 313], [225, 'f2', 413], [275, 'f2', 113], [275, 'f2', 213], [275, 'f2', 313], [275, 'f2', 413], [325, 'f2', 163], [325, 'f2', 263], [325, 'f2', 363], [325, 'f2', 463], [375, 'f2', 213], [375, 'f2', 313], [375, 'f2', 413], [375, 'f2', 513], [400, 'i5', 100], [425, 'f2', 163], [425, 'f2', 263], [425, 'f2', 363], [425, 'f2', 463], [475, 'f2', 113], [475, 'f2', 213], [475, 'f2', 313], [475, 'f2', 413], [480, 'i5', 400], [500, 'e1', 100], [555, 'd3', 400], [600, 'd2', 0], [650, 'd4', 625], [675, 'e3goldfish', 200], [700, 'd1', 200], [750, 'f1', 500], [800, 'd4', 625], [850, 'd6', 0], [900, 'i1', 500], [1000, 'i1', 100], [1100, 'i1', 400], [1200, 'i1', 200], [1250, 'd1', 113], [1250, 'd1', 213], [1250, 'i1', 313], [1250, 'd1', 413], [1250, 'd1', 513], [1300, 'e1', 100], [1300, 'i1', 400], [1400, 'e1', 400], [1400, 'i1', 100], [1450, 'e3literary', 200], [1500, 'i6', 500], [1600, 'i6', 200], [1700, 'i6', 350], [1800, 'i6', 150], [1850, 'i5', 300], [1900, 'd6', 0], [2000, 'i1', 213], [2100, 'i6', 313], [2200, 'i1', 413], [2300, 'd6', 0], [2350, 'poweruptrishot', 113], [2350, 'poweruppowershot', 513], [2350, 'e3envision', 313], [2400, 'i2', 313], [2500, 'i2', 213], [2600, 'i2', 413], [2700, 'i2', 213], [2800, 'i3', 200], [2850, 'i2', 400], [2900, 'i3', 400], [2950, 'i2', 200], [2975, 'e3snakebee', 313], [3000, 'i3', 300], [3050, 'i2', 500], [3100, 'i3', 100], [3150, 'i2', 400], [3200, 'i6', 200], [3250, 'i1', 400], [3300, 'e1', 100], [3350, 'i1', 500], [3400, 'i6', 300], [3425, 'i4', 100], [3450, 'i4', 150], [3475, 'i4', 200], [3500, 'i4', 250], [3525, 'i4', 300], [3550, 'i4', 350], [3575, 'i4', 400], [3600, 'i4', 450], [3610, 'i5', 250], [3625, 'i4', 500], [3650, 'i4', 550], [3675, 'i4', 500], [3700, 'i4', 450], [3710, 'poweruptrishot', 113], [3710, 'poweruppowershot', 513], [3725, 'i4', 400], [3750, 'i4', 350], [3775, 'i4', 300], [3800, 'i4', 250], [3810, 'e3missiles', 100], [3825, 'i4', 200], [3850, 'i4', 150], [3875, 'i4', 100], [3900, 'i2', 113], [3900, 'i2', 313], [3900, 'i2', 513], [4050, 'i1', 213], [4050, 'i1', 413], [4075, 'e3favorite', 400], [4100, 'i7', 100], [4150, 'i7', 500], [4200, 'i7', 200], [4250, 'i7', 400], [4300, 'i7', 300], [4325, 'e3keyboard', 300], [4350, 'e1', 500], [4400, 'e1', 100], [4500, 'f1', 313], [4555, 'poweruptrishot', 113], [4555, 'poweruppowershot', 513], [4600, 'i6', 0], [4600, 'i6', 175], [4600, 'i6', 300], [4600, 'i6', 425], [4600, 'i6', 550], [4800, 'i2', 213], [4800, 'i2', 313], [4800, 'i2', 413], [4900, 'i5', 113], [4900, 'i5', 213], [4900, 'i5', 313], [4900, 'i5', 413], [4900, 'i5', 513], [5000, 'e2a', 115], [5000, 'e2b', 159], [5000, 'e2c', 203], [5000, 'e2b', 247], [5000, 'e2c', 291], [5000, 'e2c', 335], [5000, 'e2a', 379], [5000, 'e2d', 423], [5000, 'e2', 467], [5000, 'e2c', 511], [5022, 'e2', 115], [5022, 'e2b', 159], [5022, 'e2c', 203], [5022, 'e2', 247], [5022, 'e2d', 291], [5022, 'e2d', 335], [5022, 'e2d', 379], [5022, 'e2c', 423], [5022, 'e2a', 467], [5022, 'e2a', 511], [5044, 'e2c', 115], [5044, 'e2a', 159], [5044, 'e2', 203], [5044, 'e2d', 247], [5044, 'e2a', 291], [5044, 'e2a', 335], [5044, 'e2', 379], [5044, 'e2', 423], [5044, 'e2', 467], [5044, 'e2b', 511], [5066, 'e2b', 115], [5066, 'e2', 159], [5066, 'e2a', 203], [5066, 'e2d', 247], [5066, 'e2d', 291], [5066, 'e2c', 335], [5066, 'e2a', 379], [5066, 'e2a', 423], [5066, 'e2d', 467], [5066, 'e2c', 511], [5088, 'e2b', 115], [5088, 'e2c', 159], [5088, 'e2d', 203], [5088, 'e2b', 247], [5088, 'e2b', 291], [5088, 'e2d', 335], [5088, 'e2a', 379], [5088, 'e2c', 423], [5088, 'e2', 467], [5088, 'e2', 511], [5110, 'e2b', 115], [5110, 'e2', 159], [5110, 'e2', 203], [5110, 'e2c', 247], [5110, 'e2c', 291], [5110, 'e2a', 335], [5110, 'e2b', 379], [5110, 'e2a', 423], [5110, 'e2', 467], [5110, 'e2b', 511], [5132, 'e2d', 115], [5132, 'e2a', 159], [5132, 'e2b', 203], [5132, 'e2d', 247], [5132, 'e2d', 291], [5132, 'e2a', 335], [5132, 'e2c', 379], [5132, 'e2c', 423], [5132, 'e2', 467], [5132, 'e2a', 511], [5154, 'e2', 115], [5154, 'e2a', 159], [5154, 'e2d', 203], [5154, 'e2c', 247], [5154, 'e2', 291], [5154, 'e2b', 335], [5154, 'e2b', 379], [5154, 'e2a', 423], [5154, 'e2c', 467], [5154, 'e2d', 511], [5175, 'poweruptrishot', 113], [5175, 'poweruppowershot', 513], [5200, 'i3', 50], [5250, 'i3', 100], [5300, 'i3', 150], [5350, 'i3', 200], [5375, 'e3miracles', 200], [5400, 'i3', 250], [5450, 'i3', 300], [5500, 'i3', 350], [5555, 'i3', 400], [5600, 'i3', 450], [5650, 'i3', 500], [5700, 'i3', 550], [5750, 'i3', 600], [5775, 'e3packages', 300], [5800, 'i4', 200], [5850, 'i4', 400], [5900, 'i4', 100], [5950, 'i4', 300], [5975, 'i5', 200], [6000, 'i4', 200], [6050, 'i4', 500], [6100, 'i4', 200], [6150, 'i4', 300], [6200, 'i7', 113], [6200, 'i7', 213], [6200, 'i7', 313], [6200, 'i7', 413], [6200, 'i7', 513], [6300, 'd6', 0], [6400, 'i6', 150], [6450, 'i6', 250], [6500, 'i6', 350], [6525, 'i5', 400], [6550, 'e1', 200], [6599, 'i1', 100], [6700, 'i1', 300], [6750, 'i1', 400], [6775, 'e3long', 400], [6800, 'i1', 100], [6850, 'i1', 500], [6900, 'i1', 200], [6950, 'i1', 300], [7000, 'i2', 50], [7000, 'i2', 100], [7000, 'i2', 150], [7000, 'i2', 200], [7000, 'i2', 250], [7000, 'i2', 300], [7000, 'i2', 350], [7000, 'i2', 400], [7000, 'i2', 450], [7000, 'i2', 500], [7000, 'i2', 550], [7000, 'i2', 600], [7100, 'endlevel', 313], [7150, 'extralife', 63], [7150, 'extralife', 113], [7150, 'extralife', 163], [7150, 'extralife', 263], [7150, 'extralife', 313], [7150, 'extralife', 363], [7150, 'extralife', 463], [7150, 'extralife', 513], [7150, 'extralife', 563], [7200, 'extralife', 63], [7200, 'extralife', 263], [7200, 'extralife', 363], [7200, 'extralife', 463], [7250, 'extralife', 63], [7250, 'extralife', 263], [7250, 'extralife', 313], [7250, 'extralife', 363], [7250, 'extralife', 463]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(126)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } frame 19 { var maxSnowflakes = 200; var i = 0; while (i < maxSnowflakes) { var nextDepth = this.getNextHighestDepth(); var sf = snowflake.duplicateMovieClip('sf' + i, nextDepth); ++i; } } movieClip 1903 { frame 200 { gotoAndPlay(1); } } movieClip 1904 { } movieClip 1906 { frame 1 { this._x = Math.random() * Stage.width; this._y = Math.random() * Stage.height; this.myFactor = Math.random(); this._alpha = Math.round(myFactor * 100); this.onEnterFrame = function () { var v2 = Math.round(Math.random() * 4 - 1); var v3 = Math.round(Math.random() * 2 - 1); this._x += myFactor * v3; this._y += myFactor * v2; if (this._x < 0 || this._x > Stage.width) { this._x = Math.round(Math.random() * Stage.width); } if (this._y < 0 || this._y > Stage.height) { this._y = 1; } }; } } frame 20 { stop(); hp2 = 50; } movieClip 1918 { frame 319 { stopAllSounds(); } frame 320 { stop(); } } instance enemyd of movieClip 1918 { onClipEvent (enterFrame) { if (_root.tempchar.hitTest(this)) { _root.hp2 -= 500; } } } instance hp2 of movieClip 1708 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp2 <= 0) { _root.hp2 = 0; _root.gotoAndPlay('boss5'); } } } instance tempchar of movieClip 1710 { onClipEvent (load) { if (hitTest(_root.enemyd)) { _root.health._xscale -= 1; } } } frame 21 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss5', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 5', 'Boss 5', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss 5 Win', 'Boss 5 Win', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss5', 313], [25, 'boss5i', 0], [50, 'boss5i', 0], [75, 'boss5i', 0], [100, 'boss5i', 0], [125, 'boss5i', 0], [150, 'boss5i', 0], [175, 'boss5i', 0], [200, 'boss5i', 0], [225, 'boss5i', 0], [250, 'boss5i', 0], [275, 'boss5i', 0], [300, 'boss5i', 0], [325, 'boss5i', 0], [350, 'boss5i', 0], [375, 'boss5i', 0], [400, 'boss5i', 0], [425, 'boss5i', 0], [450, 'boss5i', 0], [475, 'boss5i', 0], [500, 'boss5i', 0], [525, 'boss5i', 0], [550, 'boss5i', 0], [575, 'boss5i', 0], [600, 'boss5i', 0], [625, 'boss5i', 0], [650, 'boss5i', 0], [675, 'boss5i', 0], [700, 'boss5i', 0], [725, 'boss5i', 0], [750, 'boss5i', 0], [775, 'boss5i', 0], [800, 'boss5i', 0], [825, 'boss5i', 0], [850, 'boss5i', 0], [875, 'boss5i', 0], [900, 'boss5i', 0], [925, 'boss5i', 0], [950, 'boss5i', 0], [975, 'boss5i', 0], [1000, 'boss5i', 0], [1025, 'boss5i', 0], [1050, 'boss5i', 0], [1075, 'boss5i', 0], [1100, 'boss5i', 0], [1125, 'boss5i', 0], [1150, 'boss5i', 0], [1175, 'boss5i', 0], [1200, 'boss5i', 0], [1225, 'boss5i', 0], [1250, 'boss5i', 0], [1275, 'boss5i', 0], [1300, 'boss5i', 0], [1325, 'boss5i', 0], [1350, 'boss5i', 0], [1375, 'boss5i', 0], [1400, 'boss5i', 0], [1425, 'boss5i', 0], [1450, 'boss5i', 0], [1475, 'boss5i', 0], [1500, 'boss5i', 0], [1525, 'boss5i', 0], [1550, 'boss5i', 0], [1575, 'boss5i', 0], [1600, 'boss5i', 0], [1625, 'boss5i', 0], [1650, 'boss5i', 0], [1675, 'boss5i', 0], [1700, 'boss5i', 0], [1725, 'boss5i', 0], [1750, 'boss5i', 0], [1775, 'boss5i', 0], [1800, 'boss5i', 0], [1825, 'boss5i', 0], [1850, 'boss5i', 0], [1875, 'boss5i', 0], [1900, 'boss5i', 0], [1925, 'boss5i', 0], [1950, 'boss5i', 0], [1975, 'boss5i', 0], [2000, 'boss5i', 0], [2025, 'boss5i', 0], [2050, 'boss5i', 0], [2075, 'boss5i', 0], [2100, 'boss5i', 0], [2125, 'boss5i', 0], [2150, 'boss5i', 0], [2175, 'boss5i', 0], [2200, 'boss5i', 0], [2225, 'boss5i', 0], [2250, 'boss5i', 0], [2275, 'boss5i', 0], [2300, 'boss5i', 0], [2325, 'boss5i', 0], [2350, 'boss5i', 0], [2375, 'boss5i', 0], [2400, 'boss5i', 0], [2425, 'boss5i', 0], [2450, 'boss5i', 0], [2475, 'boss5i', 0], [2500, 'boss5i', 0], [2525, 'boss5i', 0], [2550, 'boss5i', 0], [2575, 'boss5i', 0], [2600, 'boss5i', 0], [2625, 'boss5i', 0], [2650, 'boss5i', 0], [2675, 'boss5i', 0], [2700, 'boss5i', 0], [2725, 'boss5i', 0], [2750, 'boss5i', 0], [2775, 'boss5i', 0], [2800, 'boss5i', 0], [2825, 'boss5i', 0], [2850, 'boss5i', 0], [2875, 'boss5i', 0], [2900, 'boss5i', 0], [2925, 'boss5i', 0], [2950, 'boss5i', 0], [2975, 'boss5i', 0], [3000, 'boss5i', 0], [3025, 'boss5i', 0], [3050, 'boss5i', 0], [3075, 'boss5i', 0], [3100, 'boss5i', 0], [3125, 'boss5i', 0], [3150, 'boss5i', 0], [3175, 'boss5i', 0], [3200, 'boss5i', 0], [3225, 'boss5i', 0], [3250, 'boss5i', 0], [3275, 'boss5i', 0], [3300, 'boss5i', 0], [3325, 'boss5i', 0], [3350, 'boss5i', 0], [3375, 'boss5i', 0], [3400, 'boss5i', 0], [3425, 'boss5i', 0], [3450, 'boss5i', 0], [3475, 'boss5i', 0], [3500, 'boss5i', 0], [3525, 'boss5i', 0], [3550, 'boss5i', 0], [3575, 'boss5i', 0], [3600, 'boss5i', 0], [3625, 'boss5i', 0], [3650, 'boss5i', 0], [3675, 'boss5i', 0], [3700, 'boss5i', 0], [3725, 'boss5i', 0], [3750, 'boss5i', 0], [3775, 'boss5i', 0], [3800, 'boss5i', 0], [3825, 'boss5i', 0], [3850, 'boss5i', 0], [3875, 'boss5i', 0], [3900, 'boss5i', 0], [3925, 'boss5i', 0], [3950, 'boss5i', 0], [3975, 'boss5i', 0], [4000, 'boss5i', 0], [4025, 'boss5i', 0], [4050, 'boss5i', 0], [4075, 'boss5i', 0], [4100, 'boss5i', 0], [4125, 'boss5i', 0], [4150, 'boss5i', 0], [4175, 'boss5i', 0], [4200, 'boss5i', 0], [4225, 'boss5i', 0], [4250, 'boss5i', 0], [4275, 'boss5i', 0], [4300, 'boss5i', 0], [4325, 'boss5i', 0], [4350, 'boss5i', 0], [4375, 'boss5i', 0], [4400, 'boss5i', 0], [4425, 'boss5i', 0], [4450, 'boss5i', 0], [4475, 'boss5i', 0], [4500, 'boss5i', 0], [4525, 'boss5i', 0], [4550, 'boss5i', 0], [4575, 'boss5i', 0], [4600, 'boss5i', 0], [4625, 'boss5i', 0], [4650, 'boss5i', 0], [4675, 'boss5i', 0], [4700, 'boss5i', 0], [4725, 'boss5i', 0], [4750, 'boss5i', 0], [4775, 'boss5i', 0], [4800, 'boss5i', 0], [4825, 'boss5i', 0], [4850, 'boss5i', 0], [4875, 'boss5i', 0], [4900, 'boss5i', 0], [4925, 'boss5i', 0], [4950, 'boss5i', 0], [4975, 'boss5i', 0], [5000, 'boss5i', 0], [5025, 'boss5i', 0], [5050, 'boss5i', 0], [5075, 'boss5i', 0], [5100, 'boss5i', 0], [5125, 'boss5i', 0], [5150, 'boss5i', 0], [5175, 'boss5i', 0], [5200, 'boss5i', 0], [5225, 'boss5i', 0], [5250, 'boss5i', 0], [5275, 'boss5i', 0], [5300, 'boss5i', 0], [5325, 'boss5i', 0], [5350, 'boss5i', 0], [5375, 'boss5i', 0], [5400, 'boss5i', 0], [5425, 'boss5i', 0], [5450, 'boss5i', 0], [5475, 'boss5i', 0], [5500, 'boss5i', 0], [5525, 'boss5i', 0], [5555, 'boss5i', 0], [5575, 'boss5i', 0], [5600, 'boss5i', 0], [5625, 'boss5i', 0], [5650, 'boss5i', 0], [5675, 'boss5i', 0], [5700, 'boss5i', 0], [5725, 'boss5i', 0], [5750, 'boss5i', 0], [5775, 'boss5i', 0], [5800, 'boss5i', 0], [5825, 'boss5i', 0], [5850, 'boss5i', 0], [5875, 'boss5i', 0], [5900, 'boss5i', 0], [5925, 'boss5i', 0], [5950, 'boss5i', 0], [5975, 'boss5i', 0], [6000, 'boss5i', 0], [6025, 'boss5i', 0], [6050, 'boss5i', 0], [6075, 'boss5i', 0], [6100, 'boss5i', 0], [6125, 'boss5i', 0], [6150, 'boss5i', 0], [6175, 'boss5i', 0], [6200, 'boss5i', 0], [6225, 'boss5i', 0], [6250, 'boss5i', 0], [6275, 'boss5i', 0], [6300, 'boss5i', 0], [6325, 'boss5i', 0], [6350, 'boss5i', 0], [6375, 'boss5i', 0], [6400, 'boss5i', 0], [6425, 'boss5i', 0], [6450, 'boss5i', 0], [6475, 'boss5i', 0], [6500, 'boss5i', 0], [6525, 'boss5i', 0], [6550, 'boss5i', 0], [6575, 'boss5i', 0], [6600, 'boss5i', 0], [6625, 'boss5i', 0], [6650, 'boss5i', 0], [6675, 'boss5i', 0], [6700, 'boss5i', 0], [6725, 'boss5i', 0], [6750, 'boss5i', 0], [6775, 'boss5i', 0], [6800, 'boss5i', 0], [6825, 'boss5i', 0], [6850, 'boss5i', 0], [6875, 'boss5i', 0], [6900, 'boss5i', 0], [6925, 'boss5i', 0], [6950, 'boss5i', 0], [6975, 'boss5i', 0], [7000, 'boss5i', 0], [7025, 'boss5i', 0], [7050, 'boss5i', 0], [7075, 'boss5i', 0], [7100, 'boss5i', 0], [7125, 'boss5i', 0], [7150, 'boss5i', 0], [7175, 'boss5i', 0], [7200, 'boss5i', 0], [7225, 'boss5i', 0], [7250, 'boss5i', 0], [7275, 'boss5i', 0], [7300, 'boss5i', 0], [7325, 'boss5i', 0], [7350, 'boss5i', 0], [7375, 'boss5i', 0], [7400, 'boss5i', 0], [7425, 'boss5i', 0], [7450, 'boss5i', 0], [7475, 'boss5i', 0], [7500, 'boss5i', 0], [7525, 'boss5i', 0], [7550, 'boss5i', 0], [7575, 'boss5i', 0], [7600, 'boss5i', 0], [7625, 'boss5i', 0], [7650, 'boss5i', 0], [7675, 'boss5i', 0], [7700, 'boss5i', 0], [7725, 'boss5i', 0], [7750, 'boss5i', 0], [7775, 'boss5i', 0], [7800, 'boss5i', 0], [7825, 'boss5i', 0], [7850, 'boss5i', 0], [7875, 'boss5i', 0], [7900, 'boss5i', 0], [7925, 'boss5i', 0], [7950, 'boss5i', 0], [7975, 'boss5i', 0], [8000, 'boss5i', 0], [8025, 'boss5i', 0], [8050, 'boss5i', 0], [8075, 'boss5i', 0], [8100, 'boss5i', 0], [8125, 'boss5i', 0], [8150, 'boss5i', 0], [8175, 'boss5i', 0], [8200, 'boss5i', 0], [8225, 'boss5i', 0], [8250, 'boss5i', 0], [8275, 'boss5i', 0], [8300, 'boss5i', 0], [8325, 'boss5i', 0], [8350, 'boss5i', 0], [8375, 'boss5i', 0], [8400, 'boss5i', 0], [8425, 'boss5i', 0], [8450, 'boss5i', 0], [8475, 'boss5i', 0], [8500, 'boss5i', 0], [8525, 'boss5i', 0], [8550, 'boss5i', 0], [8575, 'boss5i', 0], [8600, 'boss5i', 0], [8625, 'boss5i', 0], [8650, 'boss5i', 0], [8675, 'boss5i', 0], [8700, 'boss5i', 0], [8725, 'boss5i', 0], [8750, 'boss5i', 0], [8775, 'boss5i', 0], [8800, 'boss5i', 0], [8825, 'boss5i', 0], [8850, 'boss5i', 0], [8875, 'boss5i', 0], [8900, 'boss5i', 0], [8925, 'boss5i', 0], [8950, 'boss5i', 0], [8975, 'boss5i', 0], [9000, 'boss5i', 0], [9025, 'boss5i', 0], [9050, 'boss5i', 0], [9075, 'boss5i', 0], [9100, 'boss5i', 0], [9125, 'boss5i', 0], [9150, 'boss5i', 0], [9175, 'boss5i', 0], [9200, 'boss5i', 0], [9225, 'boss5i', 0], [9250, 'boss5i', 0], [9275, 'boss5i', 0], [9300, 'boss5i', 0], [9325, 'boss5i', 0], [9350, 'boss5i', 0], [9375, 'boss5i', 0], [9400, 'boss5i', 0], [9425, 'boss5i', 0], [9450, 'boss5i', 0], [9475, 'boss5i', 0], [9500, 'boss5i', 0], [9525, 'boss5i', 0], [9550, 'boss5i', 0], [9575, 'boss5i', 0], [9600, 'boss5i', 0], [9625, 'boss5i', 0], [9650, 'boss5i', 0], [9675, 'boss5i', 0], [9700, 'boss5i', 0], [9725, 'boss5i', 0], [9750, 'boss5i', 0], [9775, 'boss5i', 0], [9800, 'boss5i', 0], [9825, 'boss5i', 0], [9850, 'boss5i', 0], [9875, 'boss5i', 0], [9900, 'boss5i', 0], [9925, 'boss5i', 0], [9950, 'boss5i', 0], [9975, 'boss5i', 0], [10000, 'boss5i', 0]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } movieClip 1919 { frame 81 { stop(); onEnterFrame = function () { this.removeMovieClip(); }; } } frame 22 { stop(); hp2 = 50; } movieClip 1949 { } movieClip 1950 { frame 90 { stop(); } } movieClip 1953 { } movieClip 1954 { frame 80 { gotoAndPlay(1); } } movieClip 1956 { frame 580 { stop(); } } movieClip 1958 { frame 180 { stopAllSounds(); } frame 519 { stopAllSounds(); } frame 520 { stop(); mySoundf1 = new Sound(); mySoundf1.attachSound('ziopt'); mySoundf1.start(0, 0); mySoundf1.onSoundComplete = function () { gotoAndStop('pt2'); }; } frame 521 { stop(); } } instance enemyd of movieClip 1958 { onClipEvent (enterFrame) { if (_root.tempchar.hitTest(this)) { _root.hp2 -= 500; } } } movieClip 1959 { frame 520 { stop(); } } instance hp2 of movieClip 1708 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp2 <= 0) { _root.hp2 = 0; _root.gotoAndPlay('final'); } } } instance tempchar of movieClip 1710 { onClipEvent (load) { if (hitTest(_root.enemyd)) { _root.health._xscale -= 1; } } } frame 23 { function drawCloud() { var v3 = this.startPhase + getTimer() * FLY_RATE; var v5 = Math.floor(v3); var v2 = v3 - v5; if (v5 != this.phaseCtr) { ++this.phaseCtr; this.clouds_mc._x = random(CW - MW) - (CW - MW) / 2; this.xs = random(2) ? -1 : 1; this.ys = random(2) ? -1 : 1; } if (v2 < 0.5) { this._alpha = 50 - Math.cos(v2 * 2 * Math.PI) * 50; } else { this._alpha = 50 - Math.cos((1 - v2) * 2 * Math.PI) * 50; } var v4 = 110 + 200 * v2; this._xscale = v4 * this.xs; this._yscale = v4 * this.ys; this._rotation = v2 * 30; } function init() { var v3 = 0; while (v3 < kMaxCloudLayers) { var v2 = 'clouds_' + v3; this.attachMovie('tint_clouds', v2, v3); this[v2]._x = MW / 2; this[v2]._y = MH / 2; this[v2].clouds_mc._x = random(CW - MW) - (CW - MW) / 2; this[v2].xs = random(2) ? -1 : 1; this[v2].ys = random(2) ? -1 : 1; this[v2].startPhase = v3 / kMaxCloudLayers; this[v2].phaseCtr = 0; this[v2].onEnterFrame = drawCloud; ++v3; } } function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserfinal', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function addtiem(points) { tiem += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss Final', 'Boss Final', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss Final Win', 'Boss Final Win', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); mySounda = new Sound(); mySounda.attachSound('Final Music'); mySounda.start(0, 999); MW = 320; MH = 256; CW = 1024; CH = 256; FLY_RATE = 0.0008; kMaxCloudLayers = 3; init(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'bossfinal', 313], [0, 'bossfinal2', 270]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var tiem = 5; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } frame 24 { stop(); } frame 25 { function wait() { ++_root.scoret; } gotoAndStop('boss1a'); stopAllSounds(); var lives = 25; var scoret = 0; myTimer = setInterval(wait, 1000); } movieClip 1964 { frame 300 { gotoAndPlay(1); } } frame 26 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss1', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 1', 'Boss 1', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss Mode', 'Boss Mode', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss1', 0]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } frame 27 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss2', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 2', 'Boss 2', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss Mode 2', 'Boss Mode 2', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss2', 313]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } frame 28 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss3', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 170}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 3', 'Boss 3', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss Mode 3', 'Boss Mode 3', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss3', 313]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } frame 29 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss4', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 100}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 4', 'Boss 4', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss Mode 4', 'Boss Mode 4', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss4', 313], [0, 'boss4a', 0], [0, 'boss4b', 313], [0, 'boss4c', 0]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } movieClip 1969 { frame 30 { stop(); } } frame 30 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss4sp', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 4 SP', 'Boss 4 SP', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss Mode 4 SP', 'Boss Mode 4 SP', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss4sp1', 313], [0, 'boss4sp1name', 313], [0, 'boss4sp2', 0], [0, 'boss4sp2name', 0], [0, 'boss4sp3', 0], [0, 'boss4sp3name', 0], [0, 'boss4sp4', 0], [0, 'boss4sp4name', 0], [0, 'boss4sp5', 0], [0, 'boss4sp5name', 0]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } frame 31 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserboss5', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss 5', 'Boss 5', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss Mode 5', 'Boss Mode 5', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'boss5', 313], [25, 'boss5i', 0], [50, 'boss5i', 0], [75, 'boss5i', 0], [100, 'boss5i', 0], [125, 'boss5i', 0], [150, 'boss5i', 0], [175, 'boss5i', 0], [200, 'boss5i', 0], [225, 'boss5i', 0], [250, 'boss5i', 0], [275, 'boss5i', 0], [300, 'boss5i', 0], [325, 'boss5i', 0], [350, 'boss5i', 0], [375, 'boss5i', 0], [400, 'boss5i', 0], [425, 'boss5i', 0], [450, 'boss5i', 0], [475, 'boss5i', 0], [500, 'boss5i', 0], [525, 'boss5i', 0], [550, 'boss5i', 0], [575, 'boss5i', 0], [600, 'boss5i', 0], [625, 'boss5i', 0], [650, 'boss5i', 0], [675, 'boss5i', 0], [700, 'boss5i', 0], [725, 'boss5i', 0], [750, 'boss5i', 0], [775, 'boss5i', 0], [800, 'boss5i', 0], [825, 'boss5i', 0], [850, 'boss5i', 0], [875, 'boss5i', 0], [900, 'boss5i', 0], [925, 'boss5i', 0], [950, 'boss5i', 0], [975, 'boss5i', 0], [1000, 'boss5i', 0], [1025, 'boss5i', 0], [1050, 'boss5i', 0], [1075, 'boss5i', 0], [1100, 'boss5i', 0], [1125, 'boss5i', 0], [1150, 'boss5i', 0], [1175, 'boss5i', 0], [1200, 'boss5i', 0], [1225, 'boss5i', 0], [1250, 'boss5i', 0], [1275, 'boss5i', 0], [1300, 'boss5i', 0], [1325, 'boss5i', 0], [1350, 'boss5i', 0], [1375, 'boss5i', 0], [1400, 'boss5i', 0], [1425, 'boss5i', 0], [1450, 'boss5i', 0], [1475, 'boss5i', 0], [1500, 'boss5i', 0], [1525, 'boss5i', 0], [1550, 'boss5i', 0], [1575, 'boss5i', 0], [1600, 'boss5i', 0], [1625, 'boss5i', 0], [1650, 'boss5i', 0], [1675, 'boss5i', 0], [1700, 'boss5i', 0], [1725, 'boss5i', 0], [1750, 'boss5i', 0], [1775, 'boss5i', 0], [1800, 'boss5i', 0], [1825, 'boss5i', 0], [1850, 'boss5i', 0], [1875, 'boss5i', 0], [1900, 'boss5i', 0], [1925, 'boss5i', 0], [1950, 'boss5i', 0], [1975, 'boss5i', 0], [2000, 'boss5i', 0], [2025, 'boss5i', 0], [2050, 'boss5i', 0], [2075, 'boss5i', 0], [2100, 'boss5i', 0], [2125, 'boss5i', 0], [2150, 'boss5i', 0], [2175, 'boss5i', 0], [2200, 'boss5i', 0], [2225, 'boss5i', 0], [2250, 'boss5i', 0], [2275, 'boss5i', 0], [2300, 'boss5i', 0], [2325, 'boss5i', 0], [2350, 'boss5i', 0], [2375, 'boss5i', 0], [2400, 'boss5i', 0], [2425, 'boss5i', 0], [2450, 'boss5i', 0], [2475, 'boss5i', 0], [2500, 'boss5i', 0], [2525, 'boss5i', 0], [2550, 'boss5i', 0], [2575, 'boss5i', 0], [2600, 'boss5i', 0], [2625, 'boss5i', 0], [2650, 'boss5i', 0], [2675, 'boss5i', 0], [2700, 'boss5i', 0], [2725, 'boss5i', 0], [2750, 'boss5i', 0], [2775, 'boss5i', 0], [2800, 'boss5i', 0], [2825, 'boss5i', 0], [2850, 'boss5i', 0], [2875, 'boss5i', 0], [2900, 'boss5i', 0], [2925, 'boss5i', 0], [2950, 'boss5i', 0], [2975, 'boss5i', 0], [3000, 'boss5i', 0], [3025, 'boss5i', 0], [3050, 'boss5i', 0], [3075, 'boss5i', 0], [3100, 'boss5i', 0], [3125, 'boss5i', 0], [3150, 'boss5i', 0], [3175, 'boss5i', 0], [3200, 'boss5i', 0], [3225, 'boss5i', 0], [3250, 'boss5i', 0], [3275, 'boss5i', 0], [3300, 'boss5i', 0], [3325, 'boss5i', 0], [3350, 'boss5i', 0], [3375, 'boss5i', 0], [3400, 'boss5i', 0], [3425, 'boss5i', 0], [3450, 'boss5i', 0], [3475, 'boss5i', 0], [3500, 'boss5i', 0], [3525, 'boss5i', 0], [3550, 'boss5i', 0], [3575, 'boss5i', 0], [3600, 'boss5i', 0], [3625, 'boss5i', 0], [3650, 'boss5i', 0], [3675, 'boss5i', 0], [3700, 'boss5i', 0], [3725, 'boss5i', 0], [3750, 'boss5i', 0], [3775, 'boss5i', 0], [3800, 'boss5i', 0], [3825, 'boss5i', 0], [3850, 'boss5i', 0], [3875, 'boss5i', 0], [3900, 'boss5i', 0], [3925, 'boss5i', 0], [3950, 'boss5i', 0], [3975, 'boss5i', 0], [4000, 'boss5i', 0], [4025, 'boss5i', 0], [4050, 'boss5i', 0], [4075, 'boss5i', 0], [4100, 'boss5i', 0], [4125, 'boss5i', 0], [4150, 'boss5i', 0], [4175, 'boss5i', 0], [4200, 'boss5i', 0], [4225, 'boss5i', 0], [4250, 'boss5i', 0], [4275, 'boss5i', 0], [4300, 'boss5i', 0], [4325, 'boss5i', 0], [4350, 'boss5i', 0], [4375, 'boss5i', 0], [4400, 'boss5i', 0], [4425, 'boss5i', 0], [4450, 'boss5i', 0], [4475, 'boss5i', 0], [4500, 'boss5i', 0], [4525, 'boss5i', 0], [4550, 'boss5i', 0], [4575, 'boss5i', 0], [4600, 'boss5i', 0], [4625, 'boss5i', 0], [4650, 'boss5i', 0], [4675, 'boss5i', 0], [4700, 'boss5i', 0], [4725, 'boss5i', 0], [4750, 'boss5i', 0], [4775, 'boss5i', 0], [4800, 'boss5i', 0], [4825, 'boss5i', 0], [4850, 'boss5i', 0], [4875, 'boss5i', 0], [4900, 'boss5i', 0], [4925, 'boss5i', 0], [4950, 'boss5i', 0], [4975, 'boss5i', 0], [5000, 'boss5i', 0], [5025, 'boss5i', 0], [5050, 'boss5i', 0], [5075, 'boss5i', 0], [5100, 'boss5i', 0], [5125, 'boss5i', 0], [5150, 'boss5i', 0], [5175, 'boss5i', 0], [5200, 'boss5i', 0], [5225, 'boss5i', 0], [5250, 'boss5i', 0], [5275, 'boss5i', 0], [5300, 'boss5i', 0], [5325, 'boss5i', 0], [5350, 'boss5i', 0], [5375, 'boss5i', 0], [5400, 'boss5i', 0], [5425, 'boss5i', 0], [5450, 'boss5i', 0], [5475, 'boss5i', 0], [5500, 'boss5i', 0], [5525, 'boss5i', 0], [5555, 'boss5i', 0], [5575, 'boss5i', 0], [5600, 'boss5i', 0], [5625, 'boss5i', 0], [5650, 'boss5i', 0], [5675, 'boss5i', 0], [5700, 'boss5i', 0], [5725, 'boss5i', 0], [5750, 'boss5i', 0], [5775, 'boss5i', 0], [5800, 'boss5i', 0], [5825, 'boss5i', 0], [5850, 'boss5i', 0], [5875, 'boss5i', 0], [5900, 'boss5i', 0], [5925, 'boss5i', 0], [5950, 'boss5i', 0], [5975, 'boss5i', 0], [6000, 'boss5i', 0], [6025, 'boss5i', 0], [6050, 'boss5i', 0], [6075, 'boss5i', 0], [6100, 'boss5i', 0], [6125, 'boss5i', 0], [6150, 'boss5i', 0], [6175, 'boss5i', 0], [6200, 'boss5i', 0], [6225, 'boss5i', 0], [6250, 'boss5i', 0], [6275, 'boss5i', 0], [6300, 'boss5i', 0], [6325, 'boss5i', 0], [6350, 'boss5i', 0], [6375, 'boss5i', 0], [6400, 'boss5i', 0], [6425, 'boss5i', 0], [6450, 'boss5i', 0], [6475, 'boss5i', 0], [6500, 'boss5i', 0], [6525, 'boss5i', 0], [6550, 'boss5i', 0], [6575, 'boss5i', 0], [6600, 'boss5i', 0], [6625, 'boss5i', 0], [6650, 'boss5i', 0], [6675, 'boss5i', 0], [6700, 'boss5i', 0], [6725, 'boss5i', 0], [6750, 'boss5i', 0], [6775, 'boss5i', 0], [6800, 'boss5i', 0], [6825, 'boss5i', 0], [6850, 'boss5i', 0], [6875, 'boss5i', 0], [6900, 'boss5i', 0], [6925, 'boss5i', 0], [6950, 'boss5i', 0], [6975, 'boss5i', 0], [7000, 'boss5i', 0], [7025, 'boss5i', 0], [7050, 'boss5i', 0], [7075, 'boss5i', 0], [7100, 'boss5i', 0], [7125, 'boss5i', 0], [7150, 'boss5i', 0], [7175, 'boss5i', 0], [7200, 'boss5i', 0], [7225, 'boss5i', 0], [7250, 'boss5i', 0], [7275, 'boss5i', 0], [7300, 'boss5i', 0], [7325, 'boss5i', 0], [7350, 'boss5i', 0], [7375, 'boss5i', 0], [7400, 'boss5i', 0], [7425, 'boss5i', 0], [7450, 'boss5i', 0], [7475, 'boss5i', 0], [7500, 'boss5i', 0], [7525, 'boss5i', 0], [7550, 'boss5i', 0], [7575, 'boss5i', 0], [7600, 'boss5i', 0], [7625, 'boss5i', 0], [7650, 'boss5i', 0], [7675, 'boss5i', 0], [7700, 'boss5i', 0], [7725, 'boss5i', 0], [7750, 'boss5i', 0], [7775, 'boss5i', 0], [7800, 'boss5i', 0], [7825, 'boss5i', 0], [7850, 'boss5i', 0], [7875, 'boss5i', 0], [7900, 'boss5i', 0], [7925, 'boss5i', 0], [7950, 'boss5i', 0], [7975, 'boss5i', 0], [8000, 'boss5i', 0], [8025, 'boss5i', 0], [8050, 'boss5i', 0], [8075, 'boss5i', 0], [8100, 'boss5i', 0], [8125, 'boss5i', 0], [8150, 'boss5i', 0], [8175, 'boss5i', 0], [8200, 'boss5i', 0], [8225, 'boss5i', 0], [8250, 'boss5i', 0], [8275, 'boss5i', 0], [8300, 'boss5i', 0], [8325, 'boss5i', 0], [8350, 'boss5i', 0], [8375, 'boss5i', 0], [8400, 'boss5i', 0], [8425, 'boss5i', 0], [8450, 'boss5i', 0], [8475, 'boss5i', 0], [8500, 'boss5i', 0], [8525, 'boss5i', 0], [8550, 'boss5i', 0], [8575, 'boss5i', 0], [8600, 'boss5i', 0], [8625, 'boss5i', 0], [8650, 'boss5i', 0], [8675, 'boss5i', 0], [8700, 'boss5i', 0], [8725, 'boss5i', 0], [8750, 'boss5i', 0], [8775, 'boss5i', 0], [8800, 'boss5i', 0], [8825, 'boss5i', 0], [8850, 'boss5i', 0], [8875, 'boss5i', 0], [8900, 'boss5i', 0], [8925, 'boss5i', 0], [8950, 'boss5i', 0], [8975, 'boss5i', 0], [9000, 'boss5i', 0], [9025, 'boss5i', 0], [9050, 'boss5i', 0], [9075, 'boss5i', 0], [9100, 'boss5i', 0], [9125, 'boss5i', 0], [9150, 'boss5i', 0], [9175, 'boss5i', 0], [9200, 'boss5i', 0], [9225, 'boss5i', 0], [9250, 'boss5i', 0], [9275, 'boss5i', 0], [9300, 'boss5i', 0], [9325, 'boss5i', 0], [9350, 'boss5i', 0], [9375, 'boss5i', 0], [9400, 'boss5i', 0], [9425, 'boss5i', 0], [9450, 'boss5i', 0], [9475, 'boss5i', 0], [9500, 'boss5i', 0], [9525, 'boss5i', 0], [9550, 'boss5i', 0], [9575, 'boss5i', 0], [9600, 'boss5i', 0], [9625, 'boss5i', 0], [9650, 'boss5i', 0], [9675, 'boss5i', 0], [9700, 'boss5i', 0], [9725, 'boss5i', 0], [9750, 'boss5i', 0], [9775, 'boss5i', 0], [9800, 'boss5i', 0], [9825, 'boss5i', 0], [9850, 'boss5i', 0], [9875, 'boss5i', 0], [9900, 'boss5i', 0], [9925, 'boss5i', 0], [9950, 'boss5i', 0], [9975, 'boss5i', 0], [10000, 'boss5i', 0]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } movieClip 1971 { frame 30 { stop(); } } frame 32 { stop(); hp2 = 50; } instance hp2 of movieClip 1708 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp2 <= 0) { _root.hp2 = 0; _root.gotoAndPlay('bossmodefinal'); } } } instance tempchar of movieClip 1710 { onClipEvent (load) { if (hitTest(_root.enemyd)) { _root.health._xscale -= 1; } } } movieClip 1990 { frame 300 { gotoAndPlay(1); } } movieClip 1992 { frame 580 { stop(); } } movieClip 1993 { frame 180 { stopAllSounds(); } frame 519 { stopAllSounds(); } frame 520 { stop(); mySoundf1 = new Sound(); mySoundf1.attachSound('ziopt'); mySoundf1.start(0, 0); mySoundf1.onSoundComplete = function () { gotoAndStop('pt2'); }; } frame 521 { stop(); } } instance enemyd of movieClip 1993 { onClipEvent (enterFrame) { if (_root.tempchar.hitTest(this)) { _root.hp2 -= 500; } } } frame 33 { function shootweapon() { if (currentweapon == 'singlelazer') { this.attachMovie('laserfinal', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation}); weapons.push('weapons' + weaponcount); ++weaponcount; } else { if (currentweapon == 'trishot') { this.attachMovie('lazerleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazer', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; this.attachMovie('lazerright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y}); weapons.push('weapons' + weaponcount); ++weaponcount; } } } function insertenemy(enemytype, xpos, ypos) { this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos}); enemies.push('enemy' + enemycount); ++enemycount; } function removeenemy(enemyid) { enemysearch = 0; while (enemysearch < enemies.length) { if (enemies[enemysearch] == enemyid) { enemies.splice(enemysearch, 1); break; } ++enemysearch; } (eval(enemyid)).removeMovieClip(); } function removeweapon(weaponid) { weaponsearch = 0; while (weaponsearch < weapons.length) { if (weapons[weaponsearch] == weaponid) { weapons.splice(weaponsearch, 1); break; } ++weaponsearch; } (eval(weaponid)).removeMovieClip(); } function addpoints(points) { score += points; } function addtiem(points) { tiem += points; } function hitship() { if (ship._currentframe == 1) { currentweapon = 'singlelazer'; ship.gotoAndPlay('shiphit'); } } function respawnship() { if (ship != undefined) { removeMovieClip(ship); } this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50}); } function loselife() { if (lives > 0) { --lives; respawnship(); } else { if (ship != undefined) { removeMovieClip(ship); } losegame(); } } function resetlevel() { enemyloop = 0; while (enemyloop < enemies.length) { (eval(enemies[enemyloop])).removeMovieClip(); ++enemyloop; } weaponloop = 0; while (weaponloop < weapons.length) { (eval(weapons[weaponloop])).removeMovieClip(); ++weaponloop; } enemies = []; weapons = []; enemycount = 0; weaponcount = 0; currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies')); levelposition = 0; if (ship != undefined) { ship.removeMovieClip(); } if (currentlevel > 0) { this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } function newgame() { currentlevel = 1; resetlevel(); respawnship(); } function showmainscreen() { currentlevel = 0; resetlevel(); this.attachMovie('Boss Final', 'Boss Final', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function losegame() { currentlevel = 0; resetlevel(); this.attachMovie('losegame', 'losegame', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } function winlevel() { ++currentlevel; ++lives; resetlevel(); if (totallevels >= currentlevel) { respawnship(); } else { this.attachMovie('Boss Mode Win', 'Boss Mode Win', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3}); } } stop(); mySounda = new Sound(); mySounda.attachSound('Final Music'); mySounda.start(0, 999); stop(); var level0enemies = []; var level1enemies = [[0, 'bulletwall1', 0], [0, 'bulletwall2', 625], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'bossfinal', 313], [0, 'bossfinal2', 270]]; var totallevels = 1; var currentweapon = 'singlelazer'; var currentlevel = 1; var cooldowntime = 8; var guncooldown = 0; var tiem = 5; var enemies = []; var weapons = []; var enemycount = 0; var weaponcount = 0; var currentenemies = []; var levelposition = 0; var gamepaused = false; showmainscreen(); onEnterFrame = function () { if (Key.isDown(80)) { gamepaused = !gamepaused; } if (!gamepaused) { ++levelposition; for (;;) { if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break; insertenemy(currentenemies[0][1], currentenemies[0][2], 0); currentenemies.shift(); } guncooldown = Math.max(0, guncooldown - 1); enemysearch = 0; while (enemysearch < enemies.length) { (eval(enemies[enemysearch])).enemyaction(); ++enemysearch; } weaponsearch = 0; while (weaponsearch < weapons.length) { (eval(weapons[weaponsearch])).weaponaction(); ++weaponsearch; } if (Key.isDown(32) or Key.isDown(88)) { if (guncooldown == 0) { guncooldown = cooldowntime; shootweapon(); } } if (Key.isDown(37)) { ship._x = Math.max(ship._width / 2, ship._x - 7); } if (Key.isDown(39)) { ship._x = Math.min(Stage.width - ship._width / 2, ship._x + 7); } if (Key.isDown(38)) { ship._y = Math.max(0, ship._y - 7); } if (Key.isDown(40)) { ship._y = Math.min(Stage.height - ship._height, ship._y + 7); } if (Key.isDown(67)) { ship._rotation -= 10; } if (Key.isDown(86)) { ship._rotation += 10; } starfield.movestars(); } }; } frame 34 { stop(); hp2 = 50; } movieClip 1999 { frame 99 { stop(); } } instance enemyd of movieClip 1999 { onClipEvent (enterFrame) { if (_root.tempchar.hitTest(this)) { _root.hp2 -= 500; } } } instance hp2 of movieClip 1708 { onClipEvent (enterFrame) { this._xscale = _root.hp; if (_root.hp2 <= 0) { _root.hp2 = 0; _root.gotoAndStop('bossmodewin'); } } } instance tempchar of movieClip 1710 { onClipEvent (load) { if (hitTest(_root.enemyd)) { _root.health._xscale -= 1; } } } frame 35 { stop(); clearInterval(myTimer); } movieClip 2006 { frame 1 { stopAllSounds(); Nonoba.api.NonobaAPI.SubmitScore('score5bsmd5', _root.scoret, function (response) { switch (response) { case Nonoba.api.NonobaAPI.SUCCESS: trace('The score was submitted successfully'); break; case Nonoba.api.NonobaAPI.NOT_LOGGED_IN: trace('The user is not logged in'); break; case Nonoba.api.NonobaAPI.ERROR: trace('An error occurred.'); } }); } frame 2 { stopAllSounds(); } frame 3 { Nonoba.api.NonobaAPI.AwardAchievement('bossc5mpltdz5', function (response, count) { switch (response) { case Nonoba.api.NonobaAPI.SUCCESS: trace('The achievement was successfully awarded.'); trace('It has been awarded ' + count + ' times.'); break; case Nonoba.api.NonobaAPI.NOT_LOGGED_IN: trace('The user is not logged in.'); break; case Nonoba.api.NonobaAPI.ERROR: trace('An error occurred.'); } }); } frame 32 { gotoAndPlay(4); } } frame 36 { stop(); } frame 37 { onEnterFrame = function () { if (Key.isDown(40)) { gotoAndStop('p3'); } starfield.movestars(); }; stop(); } frame 38 { onEnterFrame = function () { if (Key.isDown(38)) { gotoAndStop('p4'); } starfield.movestars(); }; stop(); } frame 39 { onEnterFrame = function () { if (Key.isDown(40)) { gotoAndStop('p5'); } starfield.movestars(); }; stop(); } frame 40 { onEnterFrame = function () { if (Key.isDown(37)) { gotoAndStop('p6'); } starfield.movestars(); }; stop(); } frame 41 { onEnterFrame = function () { if (Key.isDown(39)) { gotoAndStop('p7'); } starfield.movestars(); }; stop(); } frame 42 { onEnterFrame = function () { if (Key.isDown(37)) { gotoAndStop('p8'); } starfield.movestars(); }; stop(); } frame 43 { onEnterFrame = function () { if (Key.isDown(39)) { gotoAndStop('p9'); } starfield.movestars(); }; stop(); } frame 44 { onEnterFrame = function () { if (Key.isDown(65)) { gotoAndStop('p10'); } starfield.movestars(); }; stop(); } frame 45 { onEnterFrame = function () { if (Key.isDown(66)) { gotoAndStop('p11'); } starfield.movestars(); }; stop(); } frame 46 { stop(); onEnterFrame = function () { starfield.movestars(); }; } button 2012 { on (release) { gotoAndStop('bossmode'); } } frame 47 { stop(); }




http://swfchan.com/12/57234/info.shtml
Created: 18/4 -2019 10:20:43 Last modified: 18/4 -2019 10:20:43 Server time: 05/11 -2024 09:23:16