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

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

Providence.swf

This is the info page for
Flash #46560

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


Text
Sound On

Sound Off

Control

Loading....

Just Loading

Please wait

Chapter Five:
Final blow.
Mission:
Crush everything in your
path.

Chapter One:
Trespasser.
Mission:
Clear the mine field and
eradicate the intruder.

Chapter Four:
The infiltrator.
Mission:
Delve deep into enemy
territory.

Chapter One:
Trespasser.
Mission:
Clear the mine field and
eradicate the intruders.

Chapter Three:
An example.
Mission:
Light up the sky with death
and destruction.

Chapter Two:
Hunter, destroyer.
Mission:
Eradicate the enemy
forces!.

PoWeR
UP

Skip to chapter :

Chapter 2

Chapter 3

Chapter 4

Chapter 5

0

Score

Gun

"Z" key to switch weapon

Weapon Selected:

Sword

"X" key to switch weapon

Enemy Status:

0

MISSION COMPLETED

ENEMIES KILLED:

0

SWORD KILLS:

0

GRADE:

0

0

0

0

0

0

0

0

0

0

0

Score

Main Menu

Main Menu

Play More Games

Play More Games

ActionScript [AS1/AS2]

Frame 1
function deadClick() { } function gotoMySite() { getURL ("http://www.avgames.co.uk", "_blank"); } var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); var copyrightNotice = new ContextMenuItem("\u00A9 2008 avgames.co.uk", deadClick); copyrightNotice.separatorBefore = true; var mySiteLink = new ContextMenuItem("Designed by avgames.co.uk", gotoMySite); myMenu.customItems.push(mySiteLink, copyrightNotice); _root.menu = myMenu; bytes_loaded = Math.round(_root.getBytesLoaded()); bytes_total = Math.round(_root.getBytesTotal()); getPercent = bytes_loaded / bytes_total; _root.loadBar._width = getPercent * 100; _root.loadText = Math.round(getPercent * 100) + "%"; if (bytes_loaded == bytes_total) { _root.gotoAndPlay(3); }
Frame 2
gotoAndPlay (1);
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = "__mochibot__"; mbc = "mochibot.com"; g = (_global ? (_global) : (_level0._root)); if (g[mb + swfid]) { return(g[mb + swfid]); } s = System.security; x = mc._root.getSWFVersion; fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5))); if (!s) { s = {}; } sb = s.sandboxType; if (sb == "localWithFile") { return(null); } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version)); u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : ""); lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv)))); g[mb + "level"] = lv; if (fv == 5) { res = "_level" + lv; if (!eval (res)) { loadMovieNum (u, lv); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } __com_mochibot__("587f0ef8", this, 10301, true); mochi.MochiServices.connect("07450d77f3291572");
Frame 491
stopAllSounds();
Frame 512
stop(); score = 0; skipOne.onEnterFrame = function () { if (level > 1) { this._x = 25; this._y = 230; } }; skipTwo.onEnterFrame = function () { if (level > 2) { this._x = 25; this._y = 250; } }; skipThree.onEnterFrame = function () { if (level > 3) { this._x = 25; this._y = 270; } }; skipFour.onEnterFrame = function () { if (level > 4) { this._x = 25; this._y = 290; } };
Instance of Symbol 650 MovieClip "skipOne" in Frame 512
on (press) { _root.gotoAndPlay("c2"); }
Instance of Symbol 654 MovieClip "skipTwo" in Frame 512
on (press) { _root.gotoAndPlay("c3"); }
Instance of Symbol 656 MovieClip "skipThree" in Frame 512
on (press) { _root.gotoAndPlay("c4"); }
Instance of Symbol 658 MovieClip "skipFour" in Frame 512
on (press) { _root.gotoAndPlay("c5"); }
Frame 689
function playerMovement() { if (!locked) { endX = _root._xmouse; endY = _root._ymouse; player._x = player._x + ((endX - player._x) / robotSpeed); player._y = player._y + ((endY - player._y) / robotSpeed); if (!shooting) { if (_root._xmouse < (_root.player._x - 25)) { _root.player.gotoAndStop("back"); } else if (_root._ymouse < (_root.player._y - 25)) { _root.player.gotoAndStop("up"); } else if (_root._ymouse > (_root.player._y - 25)) { _root.player.gotoAndStop("down"); } else { _root.player.gotoAndStop("idle"); } } } } function weapon_switch() { if (Key.getCode() == 90) { _root.weapon_select.gotoAndStop("sword"); sword_selected = true; } else if (Key.getCode() == 88) { _root.weapon_select.gotoAndStop("gun"); sword_selected = false; } } function swordSlash() { if (shooting) { is_attacking++; if (sword_selected) { if (is_attacking > 0) { sslashhit = sslashhit - 1; slashing_strike = _root.attachMovie("slash_hit", "slash_hit", _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); slashing_strike._alpha = 0; if (sslashhit < 0) { slashing_strike.removeMovieClip(); } } } } } function shoot() { if (!locked) { if (!sword_selected) { if (shooting) { is_shooting++; } if (is_shooting > 0) { if (gunPower == 0) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); playerFire.push(shot); } } else if (gunPower == 1) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot1 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); playerFire.push(shot1); shot2 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 10}); playerFire.push(shot2); shot3 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y}); playerFire.push(shot3); } } else if (gunPower == 2) { if ((timeOfLastFire + 200) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot4 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot4.onEnterFrame = function () { this._rotation = this._rotation - 15; }; playerFire.push(shot4); } } else if (gunPower == 3) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot5 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot5.onEnterFrame = function () { this._rotation = this._rotation - 15; }; playerFire.push(shot5); shot6 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot6.onEnterFrame = function () { this._rotation = this._rotation + 15; }; playerFire.push(shot6); } } } } } } function hyperdriveRunning() { _root.player.gotoAndStop("boost"); if ((timeOfLastEnemyFire4 + 50000) < getTimer()) { timeOfLastEnemyFire4 = getTimer(); hyper_drive = _root.attachMovie("streaks", "streaks", _root.getNextHighestDepth(), {_x:0, _y:0}); hyp_sound.start(); } } function playerBounds() { if (player._x > 485) { player._x = 485; } else if (player._x < 60) { player._x = 60; } else if (player._y > 345) { player._y = 345; } else if (player._y < 50) { player._y = 50; } } function eraseFire() { i = playerFire.length - 1; while (i >= 0) { if (playerFire[i]._x > 550) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); } i--; } } function eraseEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i]._x < -125) { holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function eraseEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i]._x < -310) { holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } i--; } } function eraseStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { if ((((standardEnemy[i]._x < -100) or (standardEnemy[i]._x > 650)) or (standardEnemy[i]._y < -100)) or (standardEnemy[i]._y > 500)) { standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function eraseSpinner() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i]._y < -150) { holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function erase2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i]._y > 405) { hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function eraseBlueBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { if ((((holdEnemyBullets[i]._x < -10) or (holdEnemyBullets[i]._x > 550)) or (holdEnemyBullets[i]._y < -10)) or (holdEnemyBullets[i]._y > 400)) { holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); } i--; } } function attachHit_() { endX = _root.player._x; endY = _root.player._y; hit_._x = hit_._x + ((endX - hit_._x) - 20); hit_._y = hit_._y + ((endY - hit_._y) - 30); } function fire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i]._x = playerFire[i]._x + shotSpeed; i--; } } function beamShot() { i = standardEnemy.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 50) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; beam = _root.attachMovie("beam_mc", "beam_mc" + BulletNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x - 23, _y:standardEnemy[i]._y + 20}); holdEnemyBullets.push(beam); beam.onEnterFrame = function () { this._x = this._x - 15; if (locked) { this._x = this._x - 100; } }; } i--; } } function enemy2DSpinnerShoot() { i = hold2DSpinner.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 500) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 5; this._y = this._y + 2; }; } i--; } } function bossShoot() { i = holdAim.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 85) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdAim[i]._x, _y:holdAim[i]._y}); holdEnemyBullets.push(blue_bullet); angle = holdAim[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; }; } i--; } } function standardEnemyShoot() { i = standardEnemy.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 50) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); holdEnemyBullets.push(blue_bullet); angle = standardEnemy[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; }; } i--; } } function enemySpinnerShoot() { i = holdSpinner.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire2 + 500) < getTimer()) { timeOfLastEnemyFire2 = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 5; this._y = this._y - 2; }; } i--; } } function attachDamageFunctions() { takingDamage(); takingDamage2(); takingDamage3(); } function addSmoke() { smoNum++; sm = _root.attachMovie("smoke", "smoke" + smoNum, _root.getNextHighestDepth(), {_x:player._x + 25, _y:player._y - 15}); sm.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 20; this._yscale = this._yscale + 20; if (this._alpha < 0) { this.removeMovieClip(); } }; } function addSmoke2() { smo2Num++; sm2 = _root.attachMovie("smoke", "smoke" + smo2Num, _root.getNextHighestDepth(), {_x:player._x - 10, _y:player._y + 3}); sm2.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 30; this._yscale = this._yscale + 30; if (this._alpha < 0) { this.removeMovieClip(); } }; } function addSmoke3() { smo3Num++; sm3 = _root.attachMovie("smoke", "smoke" + smo3Num, _root.getNextHighestDepth(), {_x:player._x - 5, _y:player._y + 15}); sm3.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 60; this._yscale = this._yscale + 60; if (this._alpha < 0) { this.removeMovieClip(); } }; } function takingDamage() { if (damage == 1) { _root.health_bar.gotoAndStop("hitOnce"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke(); smoke_interval = 3; } } } function takingDamage2() { if (damage == 2) { _root.health_bar.gotoAndStop("hitTwice"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke2(); addSmoke(); smoke_interval = 3; } } } function takingDamage3() { if (damage == 3) { _root.health_bar.gotoAndStop("lastHit"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke3(); addSmoke2(); addSmoke(); smoke_interval = 3; } } } function runSections() { section_one_timer = section_one_timer - 1; if (section_one_timer > 0) { releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 5) { seNum++; StaEn = _root.attachMovie("new_ik_enemy", "new_ik_enemy" + seNum, _root.getNextHighestDepth(), {_x:565, _y:113.3}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 8; }; } if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_ik_enemy", "new_ik_enemy" + seNum, _root.getNextHighestDepth(), {_x:565, _y:265.3}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 8; }; releaseStandardEnemy = 15; } } if (section_one_timer < 0) { section_one_timer = 0; section_two_timer = section_two_timer - 1; if (section_two_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_ik_enemy", "new_ik_enemy" + seNum, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 225) + 280, _y:-45}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 0.5; this._y = this._y + 7; }; releaseStandardEnemy = 15; } } if (section_two_timer < 0) { section_two_timer = 0; section_three_timer = section_three_timer - 1; if (section_three_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_ik_enemy", "new_ik_enemy" + seNum, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 225) + 280, _y:400}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 0.5; this._y = this._y - 7; }; releaseStandardEnemy = 15; } } if (section_three_timer < 0) { section_three_timer = 0; section_four_timer = section_four_timer - 1; if (section_four_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_ik_enemy", "new_ik_enemy" + seNum, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 225) + 280, _y:-40}); standardEnemy.push(StaEn); StaEn._rotation = 200; StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 4; this._y = this._y + 7; }; releaseStandardEnemy = 15; } } if (section_four_timer < 0) { section_four_timer = 0; section_five_timer = section_five_timer - 1; if (section_five_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_ik_enemy", "new_ik_enemy" + seNum, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 225) + 280, _y:400}); standardEnemy.push(StaEn); StaEn._rotation = 200; StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 4; this._y = this._y - 7; }; releaseStandardEnemy = 15; } } if (section_five_timer < 0) { section_five_timer = 0; section_six_timer = section_six_timer - 1; if (section_six_timer > 0) { attachEnemyPlanes(); } } if (section_six_timer < 0) { section_six_timer = 0; section_seven_timer = section_seven_timer - 1; if (section_seven_timer > 0) { enemy2DSpinnerShoot(); enemySpinnerShoot(); attach2DSpinner(); attachSpinner(); } } if (section_seven_timer < 0) { section_seven_timer = 0; section_eight_timer = section_eight_timer - 1; if (section_eight_timer > 0) { releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_ik_enemy", "new_ik_enemy" + seNum, _root.getNextHighestDepth(), {_x:-40, _y:Math.round(Math.random() * 270) + 30}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x + 7; }; releaseStandardEnemy = 25; } } if (section_eight_timer < 0) { section_eight_timer = 0; section_nine_timer = section_nine_timer - 1; if (section_nine_timer > 0) { beamShot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 5) { seNum++; StaEn = _root.attachMovie("latest_enemy", "latest_enemy" + seNum, _root.getNextHighestDepth(), {_x:565, _y:Math.round(Math.random() * 250) + 60}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._x = this._x - 3; if (locked) { this._x = this._x - 100; } }; releaseStandardEnemy = 75; } } if (section_nine_timer < 0) { section_nine_timer = 0; section_ten_timer = section_ten_timer - 1; if (section_ten_timer > 0) { hyperdriveRunning(); locked = true; } } if (section_ten_timer < 0) { locked = false; _root.hyper_drive.removeMovieClip(); section_ten_timer = 0; section_eleven_timer = section_eleven_timer - 1; if (section_eleven_timer > 0) { releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 5) { seNum++; StaEn = _root.attachMovie("missile_enemy", "missile_enemy" + seNum, _root.getNextHighestDepth(), {_x:565, _y:Math.round(Math.random() * 250) + 60}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._x = this._x - 20; }; releaseStandardEnemy = 15; } } if (section_eleven_timer < 0) { section_eleven_timer = 0; section_twelve_timer = section_twelve_timer - 1; if (section_twelve_timer > 0) { if ((timeOfLastEnemyFire2 + 50000) < getTimer()) { timeOfLastEnemyFire2 = getTimer(); _root.attachMovie("warning", "warning", _root.getNextHighestDepth(), {_x:90, _y:125}); } if ((timeOfLastEnemyFire + 1000) < getTimer()) { timeOfLastEnemyFire = getTimer(); voice_danger_sound.start(); } } if (section_twelve_timer < 0) { section_twelve_timer = 0; moveAim(); bst._x = 450.8; bst._y = 1.2; bst.sc.text = boss_health; _root.warning.removeMovieClip(); if (enterBoss == 1) { section_twelve_timer = 0; boss = _root.attachMovie("big_guy", "big_guy", _root.getNextHighestDepth(), {_x:660, _y:210}); holdBoss.push(boss); boss.onEnterFrame = function () { if ((timeOfLastEnemyFire3 + 15) < getTimer()) { timeOfLastEnemyFire3 = getTimer(); bossShoot(); } this._x = this._x - 2; if (this._x < 380) { this._x = 380; } }; attachAim(); enterBoss = 0; } } } } } } } } } } } function show_final_report() { if (boss_dead) { removeAim(); bst._x = 450.8; bst._y = -62.8; if ((timeOfLastEnemyFire5 + 50000) < getTimer()) { timeOfLastEnemyFire5 = getTimer(); mission_completed._x = 90; mission_completed._y = 180; mission_completed.ek.text = enemyKills; mission_completed.ws.text = withSword; setGrade(); } nextLevelCountDown = nextLevelCountDown - 1; if (nextLevelCountDown == 0) { locked = true; stopAllSounds(); mission_completed._x = -0.5; mission_completed._y = -178.5; _root.player.removeMovieClip(); _root.hit_.removeMovieClip(); removePlayerFire(); removePowerUp(); gotoAndPlay ("level_two_intro"); } } } function attachSpinner() { releaseSpinner = releaseSpinner - 1; if (releaseSpinner == 0) { spNum++; enemySpinner = _root.attachMovie("spinner_mc", "spinner_mc" + spNum, _root.getNextHighestDepth(), {_x:450, _y:345}); holdSpinner.push(enemySpinner); releaseSpinner = 50; } } function attach2DSpinner() { release2DSpinner = release2DSpinner - 1; if (release2DSpinner == 0) { spNum++; enemySpinner = _root.attachMovie("spinner_mc", "spinner_mc" + spNum, _root.getNextHighestDepth(), {_x:450, _y:2}); hold2DSpinner.push(enemySpinner); release2DSpinner = 75; } } function attachAim() { bossAim = _root.attachMovie("aim", "aim", _root.getNextHighestDepth(), {_x:770, _y:165}); holdAim.push(bossAim); bossAim.onEnterFrame = function () { this._alpha = 0; this._rotation = this._rotation - 25; }; } function attachEnemyPlanes() { releaseEnemyPlane = releaseEnemyPlane - 1; if (releaseEnemyPlane == 0) { EnemyPlaneNum++; enemyPlane = _root.attachMovie("plane_enemy", "plane_enemy" + EnemyPlaneNum, _root.getNextHighestDepth(), {_x:600, _y:Math.round(Math.random() * 270) + 30}); holdEnemyPlane.push(enemyPlane); releaseEnemyPlane = 28; } } function attachEnemyChopper() { releaseEnemyChopper = releaseEnemyChopper - 1; if (releaseEnemyChopper == 0) { EnemyChopperNum++; enemyChopper = _root.attachMovie("enemy_chopper", "enemy_chopper" + EnemyChopperNum, _root.getNextHighestDepth(), {_x:800, _y:Math.round(Math.random() * 293) + 40}); holdEnemyChopper.push(enemyChopper); releaseEnemyChopper = 150; } } function moveAim() { i = holdAim.length - 1; while (i >= 0) { holdAim[i]._x = holdAim[i]._x - 6; if (holdAim[i]._x < 380) { holdAim[i]._x = 380; } i--; } } function moveEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { holdEnemyPlane[i]._x = holdEnemyPlane[i]._x - enemyPlaneSpeed; i--; } } function moveEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { holdEnemyChopper[i]._x = holdEnemyChopper[i]._x - enemyChopperSpeed; i--; } } function moveSpinner() { i = holdSpinner.length - 1; while (i >= 0) { holdSpinner[i]._y = holdSpinner[i]._y - 10; holdSpinner[i]._x = holdSpinner[i]._x - 6; i--; } } function move2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { hold2DSpinner[i]._y = hold2DSpinner[i]._y + 10; hold2DSpinner[i]._x = hold2DSpinner[i]._x - 6; i--; } } function removePlayerFire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); i--; } } function removeRip() { i = holdRip.length - 1; while (i >= 0) { holdRip[i].removeMovieClip(); holdRip.splice(i, 1); i--; } } function removeAim() { i = holdAim.length - 1; while (i >= 0) { holdAim[i].removeMovieClip(); holdAim.splice(i, 1); i--; } } function removeBoss() { i = holdBoss.length - 1; while (i >= 0) { holdBoss[i].removeMovieClip(); holdBoss.splice(i, 1); i--; } } function removeStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); i--; } } function removeSpinner() { i = holdSpinner.length - 1; while (i >= 0) { holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); i--; } } function remove2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); i--; } } function removeFire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); i--; } } function removeEnemy() { i = holdEnemyPlane.length - 1; while (i >= 0) { holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); i--; } } function removeEnemyBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); i--; } } function removeEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); i--; } } function enemyPlaneCut() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; debNum++; explodeObject_sound.start(); explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function enemyPlaneShot() { i = holdEnemyPlane.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdEnemyPlane[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; debNum++; explodeObject_sound.start(); explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } j--; } i--; } } function enemySpinnerCut() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function enemySpinnerShot() { i = holdSpinner.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdSpinner[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } j--; } i--; } } function standardEnemyCut() { i = standardEnemy.length - 1; while (i >= 0) { if (standardEnemy[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); explodeObject_sound.start(); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function standardEnemyShot() { i = standardEnemy.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (standardEnemy[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); explodeObject_sound.start(); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } j--; } i--; } } function enemy2DSpinnerShot() { i = hold2DSpinner.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (hold2DSpinner[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } j--; } i--; } } function enemy2DSpinnerCut() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i].hitTest(_root.slashing_strike)) { score = score + 100; enemyKills++; withSword++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function bossCut() { i = holdBoss.length - 1; while (i >= 0) { if (holdBoss[i].hitTest(_root.slashing_strike)) { score = score + 25; boss_health = boss_health - 10; holdBoss[i].gotoAndPlay("flash"); explodeObject_sound.start(); if (boss_health < 0) { withSword++; enemyKills++; boss_health = 0; score = score + 25000; loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdBoss[i]._x, _y:holdBoss[i]._y}); exp2._xscale = 250; exp2._yscale = 250; holdBoss[i].removeMovieClip(); boss_dead = true; } } i--; } } function bossShot() { i = holdBoss.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdBoss[i].hitTest(playerFire[j])) { score = score + 2; boss_health = boss_health - 1; holdBoss[i].gotoAndPlay("flash"); explodeObject_sound.start(); if (boss_health == 0) { score = score + 10000; enemyKills++; loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdBoss[i]._x, _y:holdBoss[i]._y}); exp2._xscale = 250; exp2._yscale = 250; holdBoss[i].removeMovieClip(); boss_dead = true; } playerFire[j].removeMovieClip(); playerFire.splice(j, 1); } j--; } i--; } } function enemyChopperShot() { i = holdEnemyChopper.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdEnemyChopper[i].hitTest(playerFire[j])) { score = score + 5; chopper_health = chopper_health - 1; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); _root.enemyChopper.gotoAndPlay("flash"); if (chopper_health == 0) { score = score + 100; enemyKills++; chopper_health = 10; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); explodeObject_sound.start(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; BulletNum++; blue_bullet5 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet5); blue_bullet5.onEnterFrame = function () { this._y = this._y - 2; }; BulletNum++; blue_bullet6 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet6); blue_bullet6.onEnterFrame = function () { this._x = this._x + 4; this._y = this._y + 4; }; BulletNum++; blue_bullet7 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet7); blue_bullet7.onEnterFrame = function () { this._x = this._x + 1.5; this._y = this._y - 1.5; }; BulletNum++; blue_bullet8 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet8); blue_bullet8.onEnterFrame = function () { this._x = this._x + 2; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } j--; } i--; } } function enemyChopperCut() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i].hitTest(_root.slashing_strike)) { score = score + 10; chopper_health = chopper_health - 5; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); _root.enemyChopper.gotoAndPlay("flash"); score = score + 200; if (chopper_health == 0) { withSword++; enemyKills++; chopper_health = 10; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; BulletNum++; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); explodeObject_sound.start(); blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; BulletNum++; blue_bullet5 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet5); blue_bullet5.onEnterFrame = function () { this._y = this._y - 2; }; BulletNum++; blue_bullet6 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet6); blue_bullet6.onEnterFrame = function () { this._x = this._x + 4; this._y = this._y + 4; }; BulletNum++; blue_bullet7 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet7); blue_bullet7.onEnterFrame = function () { this._x = this._x + 1.5; this._y = this._y - 1.5; }; BulletNum++; blue_bullet8 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet8); blue_bullet8.onEnterFrame = function () { this._x = this._x + 2; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } i--; } } function playerHitEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; debNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function playerHitEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; chopper_health = chopper_health - 1; damage++; _root.enemyChopper.gotoAndPlay("flash"); if (chopper_health == 0) { hit_sound.start(); bonus = 1; chopper_health = 10; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; BulletNum++; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } i--; } } function playerHit2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function playerHitStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { if (standardEnemy[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function playerHitSpinner() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function playerHitBoss() { i = holdBoss.length - 1; while (i >= 0) { if (holdBoss[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; holdBoss[i].gotoAndPlay("flash"); } i--; } } function playerHitBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { if (holdEnemyBullets[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdEnemyBullets[i]._x + 20, _y:holdEnemyBullets[i]._y}); exp2._xscale = 40; exp2._yscale = 40; holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); } i--; } } function ripHitEnemy2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (hold2DSpinner[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } j--; } i--; } } function ripHitEnemySpinner() { i = holdSpinner.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (holdSpinner[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } j--; } i--; } } function ripHitStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (standardEnemy[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } j--; } i--; } } function ripHitPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (holdEnemyPlane[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } j--; } i--; } } function viewMouse() { if (_root._ymouse < 350) { Mouse.hide(); } else { Mouse.show(); } } function gameOver() { if (damage > 3) { _root.health_bar.gotoAndStop("none"); fadeTimer = fadeTimer - 1; if ((onlyDoItOnce + 3000) < getTimer()) { onlyDoItOnce = getTimer(); loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:_root.player._x, _y:_root.player._y}); exp2._xscale = 150; exp2._yscale = 150; _root.player.removeMovieClip(); _root.hit_.removeMovieClip(); } if (fadeTimer == 0) { removePlayerFire(); removeRip(); removeAim(); removeBoss(); removeStandardEnemy(); removeSpinner(); remove2DSpinner(); removeFire(); removeEnemy(); removeEnemyBullet(); removeEnemyChopper(); removePowerUp(); locked = true; gotoAndStop ("game_over"); } } } function powerUpGun() { i = holdUp.length - 1; while (i >= 0) { if (holdUp[i].hitTest(_root.hit_)) { if (gunPower < 3) { gunPower++; } else { score = score + 250; } holdUp[i].removeMovieClip(); holdUp.splice(i, 1); } i--; } } function attachPowerUp() { if ((powerUpTimer + 50000) < getTimer()) { powerUpTimer = getTimer(); pUpNum++; pUp = _root.attachMovie("powerUp_", "powerUp_" + pUpNum, _root.getNextHighestDepth(), {_x:1000, _y:Math.round(Math.random() * 230) + 70}); pUp.onEnterFrame = function () { this._x = this._x - 3; }; holdUp.push(pUp); } } function removePowerUp() { i = holdUp.length - 1; while (i >= 0) { holdUp[i].removeMovieClip(); holdUp.splice(i, 1); i--; } } function erasePowerUp() { i = holdUp.length - 1; while (i >= 0) { if (holdUp[i]._x < -125) { holdUp[i].removeMovieClip(); holdUp.splice(i, 1); } i--; } } function setGrade() { if (withSword > 70) { mission_completed.grade.text = "A"; } else if (withSword > 60) { mission_completed.grade.text = "B"; } else if (withSword > 50) { mission_completed.grade.text = "C"; } else { mission_completed.grade.text = "D"; } } function playerHitStart() { level_one_start.onEnterFrame = function () { if (_root.player._x > 190) { _root.player._x = 190; } }; } function StartHitBullet() { i = playerFire.length - 1; while (i >= 0) { if (playerFire[i].hitTest(_root.level_one_start)) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); } i--; } } _root.attachMovie("hit_", "hit_", _root.getNextHighestDepth(), {_x:25, _y:300}); hit_._alpha = 0; _root.attachMovie("level_one_start", "level_one_start", _root.getNextHighestDepth(), {_x:400, _y:138}); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:25, _y:300}); shooting = false; sword_selected = false; locked = false; boss_dead = false; if (level > 1) { level = level; } else { level = 1; } gunPower = 0; enemyKills = 0; withSword = 0; robotSpeed = 7; shotSpeed = 20; enemyPlaneSpeed = 3; enemyChopperSpeed = 6; damage = 0; smokeSpeed = 10; smoke_interval = 3; BulletSpeed = 2; chopper_health = 10; boss_health = 350; score = 0; bonus = 1; powerUpTimer = 0; onlyDoItOnce = 0; fadeTimer = 50; nextLevelCountDown = 150; enterBoss = 1; smokerelease = 10; sslashhit = 3; is_attacking = -3; timeOfLastFire = 0; timeOfLastEnemyFire = 0; timeOfLastEnemyFire2 = 0; timeOfLastEnemyFire3 = 0; timeOfLastEnemyFire4 = 0; timeOfLastEnemyFire5 = 0; is_shooting = -5; releaseStandardEnemy = 110; releaseSpinner = 50; release2DSpinner = 75; releaseEnemyPlane = 50; releaseEnemyChopper = 50; section_one_timer = 250; section_two_timer = 150; section_three_timer = 150; section_four_timer = 150; section_five_timer = 150; section_six_timer = 250; section_seven_timer = 500; section_eight_timer = 500; section_nine_timer = 500; section_ten_timer = 150; section_eleven_timer = 300; section_twelve_timer = 100; section_thirteen_timer = 500; section_fourteen_timer = 500; section_fiftenn_timer = 500; playerShotNum = 0; EnemyChopperNum = 0; EnemyPlaneNum = 0; pUpNum = 0; seNum = 0; smoNum = 0; smo2Num = 0; smo3Num = 0; exp2Num = 0; BulletNum = 0; debNum = 0; chainNum = 0; flashNum = 0; spNum = 0; ripNum = 0; voice_danger_sound = new Sound(); voice_danger_sound.attachSound("voice_danger"); hyp_sound = new Sound(); hyp_sound.attachSound("hyp"); hit_sound = new Sound(); hit_sound.attachSound("boom"); shot_sound = new Sound(); shot_sound.attachSound("ak47"); explodeObject_sound = new Sound(); explodeObject_sound.attachSound("explodeObject"); loudBang_sound = new Sound(); loudBang_sound.attachSound("loudBang"); var holdUp = new Array(); var holdBoss = new Array(); var holdAim = new Array(); var holdRip = new Array(); var playerFire = new Array(); var standardEnemy = new Array(); var holdEnemyPlane = new Array(); var holdSpinner = new Array(); var hold2DSpinner = new Array(); var holdEnemyChopper = new Array(); var holdEnemyBullets = new Array(); _root.onMouseDown = function () { if (!locked) { if (sword_selected) { _root.player.gotoAndStop("slash"); shooting = true; } else { _root.player.gotoAndStop("shoot"); shooting = true; } } }; _root.onMouseUp = function () { if (!locked) { shooting = false; sslashhit = 3; is_shooting = -5; is_attacking = -3; } }; player.onEnterFrame = function () { StartHitBullet(); playerHitStart(); erasePowerUp(); attachPowerUp(); powerUpGun(); standardEnemyShot(); playerHitStandardEnemy(); eraseStandardEnemy(); eraseFire(); playerBounds(); fire(); playerMovement(); shoot(); viewMouse(); erase2DSpinner(); move2DSpinner(); enemy2DSpinnerShot(); playerHit2DSpinner(); attachHit_(); ripHitPlane(); eraseEnemyPlane(); ripHitStandardEnemy(); eraseBlueBullet(); enemyPlaneShot(); moveEnemyPlane(); attachDamageFunctions(); moveEnemyPlane(); weapon_switch(); eraseEnemyChopper(); moveEnemyChopper(); playerHitEnemyChopper(); playerHitBullet(); playerHitEnemyPlane(); moveSpinner(); playerHitSpinner(); enemyChopperShot(); runSections(); enemySpinnerShot(); enemyChopperCut(); eraseSpinner(); swordSlash(); enemy2DSpinnerCut(); standardEnemyCut(); enemySpinnerCut(); enemyPlaneCut(); ripHitEnemySpinner(); ripHitEnemy2DSpinner(); playerHitBoss(); bossShot(); bossCut(); show_final_report(); }; weapon_select.onEnterFrame = function () { gameOver(); }; stop();
Frame 843
function playerMovement() { if (!locked) { endX = _root._xmouse; endY = _root._ymouse; player._x = player._x + ((endX - player._x) / robotSpeed); player._y = player._y + ((endY - player._y) / robotSpeed); if (!shooting) { if (_root._xmouse < (_root.player._x - 25)) { _root.player.gotoAndStop("back"); } else if (_root._ymouse < (_root.player._y - 25)) { _root.player.gotoAndStop("up"); } else if (_root._ymouse > (_root.player._y - 25)) { _root.player.gotoAndStop("down"); } else { _root.player.gotoAndStop("idle"); } } } } function weapon_switch() { if (Key.getCode() == 90) { _root.weapon_select.gotoAndStop("sword"); sword_selected = true; } else if (Key.getCode() == 88) { _root.weapon_select.gotoAndStop("gun"); sword_selected = false; } } function swordSlash() { if (shooting) { is_attacking++; if (sword_selected) { if (is_attacking > 0) { sslashhit = sslashhit - 1; slashing_strike = _root.attachMovie("slash_hit", "slash_hit", _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); slashing_strike._alpha = 0; if (sslashhit < 0) { slashing_strike.removeMovieClip(); } } } } } function shoot() { if (!locked) { if (!sword_selected) { if (shooting) { is_shooting++; } if (is_shooting > 0) { if (gunPower == 0) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); playerFire.push(shot); } } else if (gunPower == 1) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot1 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); playerFire.push(shot1); shot2 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 10}); playerFire.push(shot2); shot3 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y}); playerFire.push(shot3); } } else if (gunPower == 2) { if ((timeOfLastFire + 200) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot4 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot4.onEnterFrame = function () { this._rotation = this._rotation - 15; }; playerFire.push(shot4); } } else if (gunPower == 3) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot5 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot5.onEnterFrame = function () { this._rotation = this._rotation - 15; }; playerFire.push(shot5); shot6 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot6.onEnterFrame = function () { this._rotation = this._rotation + 15; }; playerFire.push(shot6); } } } } } } function hyperdriveRunning() { _root.player.gotoAndStop("boost"); if ((timeOfLastEnemyFire4 + 50000) < getTimer()) { timeOfLastEnemyFire4 = getTimer(); hyper_drive = _root.attachMovie("streaks", "streaks", _root.getNextHighestDepth(), {_x:0, _y:0}); hyp_sound.start(); } } function playerBounds() { if (player._x > 485) { player._x = 485; } else if (player._x < 60) { player._x = 60; } else if (player._y > 345) { player._y = 345; } else if (player._y < 50) { player._y = 50; } } function eraseFire() { i = playerFire.length - 1; while (i >= 0) { if (playerFire[i]._x > 550) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); } i--; } } function eraseEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i]._x < -125) { holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function eraseEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i]._x < -310) { holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } i--; } } function eraseStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { if ((((standardEnemy[i]._x < -100) or (standardEnemy[i]._x > 650)) or (standardEnemy[i]._y < -100)) or (standardEnemy[i]._y > 500)) { standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function eraseSpinner() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i]._y < -150) { holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function erase2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i]._y > 405) { hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function eraseBlueBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { if ((((holdEnemyBullets[i]._x < -10) or (holdEnemyBullets[i]._x > 550)) or (holdEnemyBullets[i]._y < -10)) or (holdEnemyBullets[i]._y > 400)) { holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); } i--; } } function attachHit_() { endX = _root.player._x; endY = _root.player._y; hit_._x = hit_._x + ((endX - hit_._x) - 20); hit_._y = hit_._y + ((endY - hit_._y) - 30); } function fire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i]._x = playerFire[i]._x + shotSpeed; i--; } } function beamShot() { i = standardEnemy.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 100) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; beam = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x - 23, _y:standardEnemy[i]._y + 20}); holdEnemyBullets.push(beam); beam.onEnterFrame = function () { this._x = this._x - 20; if (locked) { this._x = this._x - 100; } }; } i--; } } function enemy2DSpinnerShoot() { i = hold2DSpinner.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 50) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 5; this._y = this._y + 2; }; } i--; } } function bossShoot() { i = holdAim.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 95) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdAim[i]._x, _y:holdAim[i]._y}); holdEnemyBullets.push(blue_bullet); angle = holdAim[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; }; } i--; } } function standardEnemyShoot() { i = standardEnemy.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 30) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); holdEnemyBullets.push(blue_bullet); angle = standardEnemy[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; if (locked) { this._x = this._x - 100; } }; } i--; } } function enemySpinnerShoot() { i = holdSpinner.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire2 + 50) < getTimer()) { timeOfLastEnemyFire2 = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 5; this._y = this._y - 2; }; } i--; } } function attachDamageFunctions() { takingDamage(); takingDamage2(); takingDamage3(); } function addSmoke() { smoNum++; sm = _root.attachMovie("smoke", "smoke" + smoNum, _root.getNextHighestDepth(), {_x:player._x + 25, _y:player._y - 15}); sm.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 20; this._yscale = this._yscale + 20; if (this._alpha < 0) { this.removeMovieClip(); } }; } function addSmoke2() { smo2Num++; sm2 = _root.attachMovie("smoke", "smoke" + smo2Num, _root.getNextHighestDepth(), {_x:player._x - 10, _y:player._y + 3}); sm2.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 30; this._yscale = this._yscale + 30; if (this._alpha < 0) { this.removeMovieClip(); } }; } function addSmoke3() { smo3Num++; sm3 = _root.attachMovie("smoke", "smoke" + smo3Num, _root.getNextHighestDepth(), {_x:player._x - 5, _y:player._y + 15}); sm3.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 60; this._yscale = this._yscale + 60; if (this._alpha < 0) { this.removeMovieClip(); } }; } function takingDamage() { if (damage == 1) { _root.health_bar.gotoAndStop("hitOnce"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke(); smoke_interval = 3; } } } function takingDamage2() { if (damage == 2) { _root.health_bar.gotoAndStop("hitTwice"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke2(); addSmoke(); smoke_interval = 3; } } } function takingDamage3() { if (damage == 3) { _root.health_bar.gotoAndStop("lastHit"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke3(); addSmoke2(); addSmoke(); smoke_interval = 3; } } } function runSections() { section_one_timer = section_one_timer - 1; if (section_one_timer > 0) { attachEnemyChopper(); } if (section_one_timer < 0) { section_one_timer = 0; section_two_timer = section_two_timer - 1; if (section_two_timer > 0) { releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("small_planes", "small_planes" + seNum, _root.getNextHighestDepth(), {_x:600, _y:Math.round(Math.random() * 364) + 6}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._x = this._x - 20; }; releaseStandardEnemy = 15; } } if (section_two_timer < 0) { section_two_timer = 0; section_three_timer = section_three_timer - 1; if (section_three_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("spinner_mc", "spinner_mc" + seNum, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 225) + 280, _y:400}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._y = this._y - 20; }; releaseStandardEnemy = 15; } } if (section_three_timer < 0) { section_three_timer = 0; section_four_timer = section_four_timer - 1; if (section_four_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("spinner_mc", "spinner_mc" + seNum, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 225) + 280, _y:-40}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._y = this._y + 20; }; releaseStandardEnemy = 15; } } if (section_four_timer < 0) { section_four_timer = 0; section_five_timer = section_five_timer - 1; if (section_five_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("spinner_mc", "spinner_mc" + seNum, _root.getNextHighestDepth(), {_x:640, _y:Math.round(Math.random() * 356) + 4}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 20; }; releaseStandardEnemy = 15; } } if (section_five_timer < 0) { section_five_timer = 0; section_six_timer = section_six_timer - 1; if (section_six_timer > 0) { beamShot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 5) { seNum++; StaEn = _root.attachMovie("latest_enemy", "latest_enemy" + seNum, _root.getNextHighestDepth(), {_x:565, _y:Math.round(Math.random() * 250) + 60}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._x = this._x - 7; }; releaseStandardEnemy = 75; } } if (section_six_timer < 0) { section_six_timer = 0; section_seven_timer = section_seven_timer - 1; if (section_seven_timer > 0) { enemy2DSpinnerShoot(); attach2DSpinner(); } if (section_seven_timer < 0) { section_seven_timer = 0; section_eight_timer = section_eight_timer - 1; if (section_eight_timer > 0) { enemySpinnerShoot(); attachSpinner(); } if (section_eight_timer < 0) { section_eight_timer = 0; section_nine_timer = section_nine_timer - 1; if (section_nine_timer > 0) { releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 5) { seNum++; StaEn = _root.attachMovie("spinner_mc", "spinner_mc" + seNum, _root.getNextHighestDepth(), {_x:565, _y:Math.round(Math.random() * 250) + 60}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { if (this._x < player._x) { standardEnemyShoot(); } this._rotation = this._rotation - 50; this._x = this._x - 27; if (locked) { this._x = this._x - 100; } }; releaseStandardEnemy = 75; } } if (section_nine_timer < 0) { section_nine_timer = 0; section_ten_timer = section_ten_timer - 1; if (section_ten_timer > 0) { hyperdriveRunning(); locked = true; } } if (section_ten_timer < 0) { locked = false; _root.hyper_drive.removeMovieClip(); section_ten_timer = 0; section_eleven_timer = section_eleven_timer - 1; if (section_eleven_timer > 0) { attachEnemyPlanes(); } if (section_eleven_timer < 0) { section_eleven_timer = 0; section_twelve_timer = section_twelve_timer - 1; if (section_twelve_timer > 0) { if ((timeOfLastEnemyFire6 + 50000) < getTimer()) { timeOfLastEnemyFire6 = getTimer(); _root.attachMovie("warning", "warning", _root.getNextHighestDepth(), {_x:90, _y:125}); } if ((timeOfLastEnemyFire + 1000) < getTimer()) { timeOfLastEnemyFire = getTimer(); voice_danger_sound.start(); } } if (section_twelve_timer < 0) { section_twelve_timer = 0; moveAim(); bst._x = 450.8; bst._y = 1.2; bst.sc.text = boss_health; _root.warning.removeMovieClip(); standardEnemyShoot(); if (enterBoss == 1) { section_twelve_timer = 0; boss = _root.attachMovie("nb", "nb", _root.getNextHighestDepth(), {_x:660, _y:210}); holdBoss.push(boss); boss.onEnterFrame = function () { bossShoot(); if ((timeOfLastEnemyFire3 + 600) < getTimer()) { timeOfLastEnemyFire3 = getTimer(); BulletNum++; bossFire = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:550, _y:Math.round(Math.random() * 183) + 92}); holdEnemyBullets.push(bossFire); bossFire.onEnterFrame = function () { this._x = this._x - 7; }; } this._x = this._x - 2; if (this._x < 380) { this._x = 380; } }; attachAim(); enterBoss = 0; } } } } } } } } } } } } } function show_final_report() { if (boss_dead) { removeAim(); bst._x = 450.8; bst._y = -62.8; if ((timeOfLastEnemyFire5 + 50000) < getTimer()) { timeOfLastEnemyFire5 = getTimer(); mission_completed._x = 90; mission_completed._y = 180; mission_completed.ek.text = enemyKills; mission_completed.ws.text = withSword; setGrade(); } nextLevelCountDown = nextLevelCountDown - 1; if (nextLevelCountDown == 0) { locked = true; stopAllSounds(); mission_completed._x = -0.5; mission_completed._y = -178.5; _root.player.removeMovieClip(); _root.hit_.removeMovieClip(); removePlayerFire(); removePowerUp(); gotoAndPlay ("level_three_intro"); } } } function attachSpinner() { releaseSpinner = releaseSpinner - 1; if (releaseSpinner == 0) { spNum++; enemySpinner = _root.attachMovie("spinner_mc", "spinner_mc" + spNum, _root.getNextHighestDepth(), {_x:450, _y:345}); holdSpinner.push(enemySpinner); releaseSpinner = 30; } } function attach2DSpinner() { release2DSpinner = release2DSpinner - 1; if (release2DSpinner == 0) { spNum++; enemySpinner = _root.attachMovie("spinner_mc", "spinner_mc" + spNum, _root.getNextHighestDepth(), {_x:450, _y:2}); hold2DSpinner.push(enemySpinner); release2DSpinner = 30; } } function attachAim() { bossAim = _root.attachMovie("aim", "aim", _root.getNextHighestDepth(), {_x:770, _y:200}); holdAim.push(bossAim); bossAim.onEnterFrame = function () { this._alpha = 0; this._rotation = this._rotation - 50; }; } function attachEnemyPlanes() { releaseEnemyPlane = releaseEnemyPlane - 1; if (releaseEnemyPlane == 0) { EnemyPlaneNum++; enemyPlane = _root.attachMovie("small_planes", "small_planes" + EnemyPlaneNum, _root.getNextHighestDepth(), {_x:600, _y:Math.round(Math.random() * 364) + 6}); holdEnemyPlane.push(enemyPlane); releaseEnemyPlane = 15; } } function attachEnemyChopper() { releaseEnemyChopper = releaseEnemyChopper - 1; if (releaseEnemyChopper == 0) { EnemyChopperNum++; enemyChopper = _root.attachMovie("enemy_chopper", "enemy_chopper" + EnemyChopperNum, _root.getNextHighestDepth(), {_x:800, _y:Math.round(Math.random() * 293) + 40}); holdEnemyChopper.push(enemyChopper); releaseEnemyChopper = 150; } } function moveAim() { i = holdAim.length - 1; while (i >= 0) { holdAim[i]._x = holdAim[i]._x - 6; if (holdAim[i]._x < 380) { holdAim[i]._x = 380; } i--; } } function moveEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { holdEnemyPlane[i]._x = holdEnemyPlane[i]._x - enemyPlaneSpeed; i--; } } function moveEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { holdEnemyChopper[i]._x = holdEnemyChopper[i]._x - enemyChopperSpeed; i--; } } function moveSpinner() { i = holdSpinner.length - 1; while (i >= 0) { holdSpinner[i]._y = holdSpinner[i]._y - 10; holdSpinner[i]._x = holdSpinner[i]._x - 6; i--; } } function move2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { hold2DSpinner[i]._y = hold2DSpinner[i]._y + 10; hold2DSpinner[i]._x = hold2DSpinner[i]._x - 6; i--; } } function removePlayerFire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); i--; } } function removeRip() { i = holdRip.length - 1; while (i >= 0) { holdRip[i].removeMovieClip(); holdRip.splice(i, 1); i--; } } function removeAim() { i = holdAim.length - 1; while (i >= 0) { holdAim[i].removeMovieClip(); holdAim.splice(i, 1); i--; } } function removeBoss() { i = holdBoss.length - 1; while (i >= 0) { holdBoss[i].removeMovieClip(); holdBoss.splice(i, 1); i--; } } function removeStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); i--; } } function removeSpinner() { i = holdSpinner.length - 1; while (i >= 0) { holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); i--; } } function remove2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); i--; } } function removeFire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); i--; } } function removeEnemy() { i = holdEnemyPlane.length - 1; while (i >= 0) { holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); i--; } } function removeEnemyBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); i--; } } function removeEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); i--; } } function enemyPlaneCut() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i].hitTest(_root.slashing_strike)) { score = score + 100; enemyKills++; withSword++; debNum++; explodeObject_sound.start(); explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function enemyPlaneShot() { i = holdEnemyPlane.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdEnemyPlane[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; debNum++; explodeObject_sound.start(); explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } j--; } i--; } } function enemySpinnerCut() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function enemySpinnerShot() { i = holdSpinner.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdSpinner[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } j--; } i--; } } function standardEnemyCut() { i = standardEnemy.length - 1; while (i >= 0) { if (standardEnemy[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); explodeObject_sound.start(); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function standardEnemyShot() { i = standardEnemy.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (standardEnemy[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); explodeObject_sound.start(); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } j--; } i--; } } function enemy2DSpinnerShot() { i = hold2DSpinner.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (hold2DSpinner[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } j--; } i--; } } function enemy2DSpinnerCut() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i].hitTest(_root.slashing_strike)) { score = score + 100; enemyKills++; withSword++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function bossCut() { i = holdBoss.length - 1; while (i >= 0) { if (holdBoss[i].hitTest(_root.slashing_strike)) { score = score + 25; boss_health = boss_health - 10; holdBoss[i].gotoAndPlay("flash"); explodeObject_sound.start(); if (boss_health < 0) { enemyKills++; withSword++; boss_health = 0; score = score + 25000; loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdBoss[i]._x, _y:holdBoss[i]._y}); exp2._xscale = 250; exp2._yscale = 250; holdBoss[i].removeMovieClip(); boss_dead = true; } } i--; } } function bossShot() { i = holdBoss.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdBoss[i].hitTest(playerFire[j])) { score = score + 2; boss_health = boss_health - 1; holdBoss[i].gotoAndPlay("flash"); explodeObject_sound.start(); if (boss_health == 0) { score = score + 10000; enemyKills++; loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdBoss[i]._x, _y:holdBoss[i]._y}); exp2._xscale = 250; exp2._yscale = 250; holdBoss[i].removeMovieClip(); boss_dead = true; } playerFire[j].removeMovieClip(); playerFire.splice(j, 1); } j--; } i--; } } function enemyChopperShot() { i = holdEnemyChopper.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdEnemyChopper[i].hitTest(playerFire[j])) { score = score + 5; chopper_health = chopper_health - 1; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); _root.enemyChopper.gotoAndPlay("flash"); if (chopper_health == 0) { enemyKills++; score = score + 100; chopper_health = 10; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); explodeObject_sound.start(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; BulletNum++; blue_bullet5 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet5); blue_bullet5.onEnterFrame = function () { this._y = this._y - 2; }; BulletNum++; blue_bullet6 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet6); blue_bullet6.onEnterFrame = function () { this._x = this._x + 4; this._y = this._y + 4; }; BulletNum++; blue_bullet7 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet7); blue_bullet7.onEnterFrame = function () { this._x = this._x + 1.5; this._y = this._y - 1.5; }; BulletNum++; blue_bullet8 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet8); blue_bullet8.onEnterFrame = function () { this._x = this._x + 2; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } j--; } i--; } } function enemyChopperCut() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i].hitTest(_root.slashing_strike)) { score = score + 10; chopper_health = chopper_health - 5; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); _root.enemyChopper.gotoAndPlay("flash"); score = score + 200; if (chopper_health == 0) { withSword++; enemyKills++; chopper_health = 10; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; BulletNum++; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); explodeObject_sound.start(); blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; BulletNum++; blue_bullet5 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet5); blue_bullet5.onEnterFrame = function () { this._y = this._y - 2; }; BulletNum++; blue_bullet6 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet6); blue_bullet6.onEnterFrame = function () { this._x = this._x + 4; this._y = this._y + 4; }; BulletNum++; blue_bullet7 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet7); blue_bullet7.onEnterFrame = function () { this._x = this._x + 1.5; this._y = this._y - 1.5; }; BulletNum++; blue_bullet8 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet8); blue_bullet8.onEnterFrame = function () { this._x = this._x + 2; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } i--; } } function playerHitEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; debNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function playerHitEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; chopper_health = chopper_health - 1; damage++; _root.enemyChopper.gotoAndPlay("flash"); if (chopper_health == 0) { hit_sound.start(); bonus = 1; chopper_health = 10; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; BulletNum++; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } i--; } } function playerHit2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function playerHitStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { if (standardEnemy[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function playerHitSpinner() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function playerHitBoss() { i = holdBoss.length - 1; while (i >= 0) { if (holdBoss[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; holdBoss[i].gotoAndPlay("flash"); } i--; } } function playerHitBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { if (holdEnemyBullets[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdEnemyBullets[i]._x + 20, _y:holdEnemyBullets[i]._y}); exp2._xscale = 40; exp2._yscale = 40; holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); } i--; } } function ripHitEnemy2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (hold2DSpinner[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } j--; } i--; } } function ripHitEnemySpinner() { i = holdSpinner.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (holdSpinner[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } j--; } i--; } } function ripHitStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (standardEnemy[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } j--; } i--; } } function ripHitPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (holdEnemyPlane[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } j--; } i--; } } function viewMouse() { if (_root._ymouse < 350) { Mouse.hide(); } else { Mouse.show(); } } function gameOver() { if (damage > 3) { _root.health_bar.gotoAndStop("none"); fadeTimer = fadeTimer - 1; if ((onlyDoItOnce + 3000) < getTimer()) { onlyDoItOnce = getTimer(); loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:_root.player._x, _y:_root.player._y}); exp2._xscale = 150; exp2._yscale = 150; _root.player.removeMovieClip(); _root.hit_.removeMovieClip(); } if (fadeTimer == 0) { removePlayerFire(); removeRip(); removeAim(); removeBoss(); removeStandardEnemy(); removeSpinner(); remove2DSpinner(); removeFire(); removeEnemy(); removeEnemyBullet(); removeEnemyChopper(); removePowerUp(); locked = true; gotoAndStop ("game_over"); } } } function powerUpGun() { i = holdUp.length - 1; while (i >= 0) { if (holdUp[i].hitTest(_root.hit_)) { if (gunPower < 3) { gunPower++; } else { score = score + 250; } holdUp[i].removeMovieClip(); holdUp.splice(i, 1); } i--; } } function attachPowerUp() { if ((powerUpTimer + 50000) < getTimer()) { powerUpTimer = getTimer(); pUpNum++; pUp = _root.attachMovie("powerUp_", "powerUp_" + pUpNum, _root.getNextHighestDepth(), {_x:1000, _y:Math.round(Math.random() * 230) + 70}); pUp.onEnterFrame = function () { this._x = this._x - 3; }; holdUp.push(pUp); } } function removePowerUp() { i = holdUp.length - 1; while (i >= 0) { holdUp[i].removeMovieClip(); holdUp.splice(i, 1); i--; } } function erasePowerUp() { i = holdUp.length - 1; while (i >= 0) { if (holdUp[i]._x < -125) { holdUp[i].removeMovieClip(); holdUp.splice(i, 1); } i--; } } function setGrade() { if (withSword > 70) { mission_completed.grade.text = "A"; } else if (withSword > 60) { mission_completed.grade.text = "B"; } else if (withSword > 50) { mission_completed.grade.text = "C"; } else { mission_completed.grade.text = "D"; } } function playerHitStart() { level_two_start.onEnterFrame = function () { if (_root.player._x > 190) { _root.player._x = 190; } }; } function StartHitBullet() { i = playerFire.length - 1; while (i >= 0) { if (playerFire[i].hitTest(_root.level_two_start)) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); } i--; } } _root.attachMovie("hit_", "hit_", _root.getNextHighestDepth(), {_x:25, _y:300}); hit_._alpha = 0; _root.attachMovie("level_two_start", "level_two_start", _root.getNextHighestDepth(), {_x:400, _y:138}); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:25, _y:300}); shooting = false; sword_selected = false; locked = false; boss_dead = false; if (level > 2) { level = level; } else { level = 2; } gunPower = 0; enemyKills = 0; withSword = 0; robotSpeed = 7; shotSpeed = 20; enemyPlaneSpeed = 20; enemyChopperSpeed = 6; damage = 0; smokeSpeed = 10; smoke_interval = 3; BulletSpeed = 2; chopper_health = 10; boss_health = 650; bonus = 1; powerUpTimer = 0; onlyDoItOnce = 0; fadeTimer = 50; nextLevelCountDown = 150; enterBoss = 1; smokerelease = 10; sslashhit = 3; is_attacking = -3; timeOfLastFire = 0; timeOfLastEnemyFire = 0; timeOfLastEnemyFire2 = 0; timeOfLastEnemyFire3 = 0; timeOfLastEnemyFire4 = 0; timeOfLastEnemyFire5 = 0; timeOfLastEnemyFire6 = 0; is_shooting = -5; releaseStandardEnemy = 110; releaseSpinner = 50; release2DSpinner = 75; releaseEnemyPlane = 50; releaseEnemyChopper = 50; section_one_timer = 500; section_two_timer = 500; section_three_timer = 175; section_four_timer = 175; section_five_timer = 300; section_six_timer = 500; section_seven_timer = 500; section_eight_timer = 500; section_nine_timer = 500; section_ten_timer = 150; section_eleven_timer = 300; section_twelve_timer = 100; section_thirteen_timer = 500; section_fourteen_timer = 500; section_fiftenn_timer = 500; playerShotNum = 0; EnemyChopperNum = 0; EnemyPlaneNum = 0; seNum = 0; smoNum = 0; smo2Num = 0; smo3Num = 0; exp2Num = 0; BulletNum = 0; debNum = 0; chainNum = 0; flashNum = 0; spNum = 0; ripNum = 0; voice_danger_sound = new Sound(); voice_danger_sound.attachSound("voice_danger"); hyp_sound = new Sound(); hyp_sound.attachSound("hyp"); hit_sound = new Sound(); hit_sound.attachSound("boom"); shot_sound = new Sound(); shot_sound.attachSound("ak47"); explodeObject_sound = new Sound(); explodeObject_sound.attachSound("explodeObject"); loudBang_sound = new Sound(); loudBang_sound.attachSound("loudBang"); var holdUp = new Array(); var holdBoss = new Array(); var holdAim = new Array(); var holdRip = new Array(); var playerFire = new Array(); var standardEnemy = new Array(); var holdEnemyPlane = new Array(); var holdSpinner = new Array(); var hold2DSpinner = new Array(); var holdEnemyChopper = new Array(); var holdEnemyBullets = new Array(); _root.onMouseDown = function () { if (!locked) { if (sword_selected) { _root.player.gotoAndStop("slash"); shooting = true; } else { _root.player.gotoAndStop("shoot"); shooting = true; } } }; _root.onMouseUp = function () { if (!locked) { shooting = false; sslashhit = 3; is_shooting = -5; is_attacking = -3; } }; player.onEnterFrame = function () { StartHitBullet(); playerHitStart(); erasePowerUp(); attachPowerUp(); powerUpGun(); standardEnemyShot(); playerHitStandardEnemy(); eraseStandardEnemy(); eraseFire(); playerBounds(); fire(); playerMovement(); shoot(); viewMouse(); erase2DSpinner(); move2DSpinner(); enemy2DSpinnerShot(); playerHit2DSpinner(); attachHit_(); ripHitPlane(); eraseEnemyPlane(); ripHitStandardEnemy(); eraseBlueBullet(); enemyPlaneShot(); moveEnemyPlane(); attachDamageFunctions(); moveEnemyPlane(); weapon_switch(); eraseEnemyChopper(); moveEnemyChopper(); playerHitEnemyChopper(); playerHitBullet(); playerHitEnemyPlane(); moveSpinner(); playerHitSpinner(); enemyChopperShot(); runSections(); enemySpinnerShot(); enemyChopperCut(); eraseSpinner(); swordSlash(); enemy2DSpinnerCut(); standardEnemyCut(); enemySpinnerCut(); enemyPlaneCut(); ripHitEnemySpinner(); ripHitEnemy2DSpinner(); playerHitBoss(); bossShot(); bossCut(); show_final_report(); }; weapon_select.onEnterFrame = function () { gameOver(); }; stop();
Frame 1020
function playerMovement() { if (!locked) { endX = _root._xmouse; endY = _root._ymouse; player._x = player._x + ((endX - player._x) / robotSpeed); player._y = player._y + ((endY - player._y) / robotSpeed); if (!shooting) { if (_root._xmouse < (_root.player._x - 25)) { _root.player.gotoAndStop("back"); } else if (_root._ymouse < (_root.player._y - 25)) { _root.player.gotoAndStop("up"); } else if (_root._ymouse > (_root.player._y - 25)) { _root.player.gotoAndStop("down"); } else { _root.player.gotoAndStop("idle"); } } } } function weapon_switch() { if (Key.getCode() == 90) { _root.weapon_select.gotoAndStop("sword"); sword_selected = true; } else if (Key.getCode() == 88) { _root.weapon_select.gotoAndStop("gun"); sword_selected = false; } } function swordSlash() { if (shooting) { is_attacking++; if (sword_selected) { if (is_attacking > 0) { sslashhit = sslashhit - 1; slashing_strike = _root.attachMovie("slash_hit", "slash_hit", _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); slashing_strike._alpha = 0; if (sslashhit < 0) { slashing_strike.removeMovieClip(); } } } } } function shoot() { if (!locked) { if (!sword_selected) { if (shooting) { is_shooting++; } if (is_shooting > 0) { if (gunPower == 0) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); playerFire.push(shot); } } else if (gunPower == 1) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot1 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); playerFire.push(shot1); shot2 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 10}); playerFire.push(shot2); shot3 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y}); playerFire.push(shot3); } } else if (gunPower == 2) { if ((timeOfLastFire + 200) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot4 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot4.onEnterFrame = function () { this._rotation = this._rotation - 15; }; playerFire.push(shot4); } } else if (gunPower == 3) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot5 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot5.onEnterFrame = function () { this._rotation = this._rotation - 15; }; playerFire.push(shot5); shot6 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot6.onEnterFrame = function () { this._rotation = this._rotation + 15; }; playerFire.push(shot6); } } } } } } function hyperdriveRunning() { _root.player.gotoAndStop("boost"); if ((timeOfLastEnemyFire4 + 50000) < getTimer()) { timeOfLastEnemyFire4 = getTimer(); hyper_drive = _root.attachMovie("streaks", "streaks", _root.getNextHighestDepth(), {_x:0, _y:0}); hyp_sound.start(); } } function playerBounds() { if (player._x > 485) { player._x = 485; } else if (player._x < 60) { player._x = 60; } else if (player._y > 345) { player._y = 345; } else if (player._y < 50) { player._y = 50; } } function eraseFire() { i = playerFire.length - 1; while (i >= 0) { if (playerFire[i]._x > 550) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); } i--; } } function eraseEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i]._x < -125) { holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function eraseEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i]._x < -310) { holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } i--; } } function eraseStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { if ((((standardEnemy[i]._x < -100) or (standardEnemy[i]._x > 650)) or (standardEnemy[i]._y < -100)) or (standardEnemy[i]._y > 500)) { standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function eraseSpinner() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i]._y < -150) { holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function erase2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i]._y > 405) { hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function eraseBlueBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { if ((((holdEnemyBullets[i]._x < -10) or (holdEnemyBullets[i]._x > 550)) or (holdEnemyBullets[i]._y < -10)) or (holdEnemyBullets[i]._y > 400)) { holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); } i--; } } function attachHit_() { endX = _root.player._x; endY = _root.player._y; hit_._x = hit_._x + ((endX - hit_._x) - 20); hit_._y = hit_._y + ((endY - hit_._y) - 30); } function fire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i]._x = playerFire[i]._x + shotSpeed; i--; } } function beamShot() { i = standardEnemy.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 100) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; beam = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x - 23, _y:standardEnemy[i]._y + 20}); holdEnemyBullets.push(beam); beam.onEnterFrame = function () { this._x = this._x - 20; if (locked) { this._x = this._x - 100; } }; } i--; } } function enemy2DSpinnerShoot() { i = hold2DSpinner.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 50) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 5; this._y = this._y + 2; }; } i--; } } function bossShoot() { i = holdAim.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 1) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdAim[i]._x, _y:holdAim[i]._y}); holdEnemyBullets.push(blue_bullet); angle = holdAim[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; }; } i--; } } function standardEnemyShoot() { i = standardEnemy.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 30) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); holdEnemyBullets.push(blue_bullet); angle = standardEnemy[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; if (locked) { this._x = this._x - 100; } }; } i--; } } function enemySpinnerShoot() { i = holdSpinner.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire2 + 50) < getTimer()) { timeOfLastEnemyFire2 = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 5; this._y = this._y - 2; }; } i--; } } function attachDamageFunctions() { takingDamage(); takingDamage2(); takingDamage3(); } function addSmoke() { smoNum++; sm = _root.attachMovie("smoke", "smoke" + smoNum, _root.getNextHighestDepth(), {_x:player._x + 25, _y:player._y - 15}); sm.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 20; this._yscale = this._yscale + 20; if (this._alpha < 0) { this.removeMovieClip(); } }; } function addSmoke2() { smo2Num++; sm2 = _root.attachMovie("smoke", "smoke" + smo2Num, _root.getNextHighestDepth(), {_x:player._x - 10, _y:player._y + 3}); sm2.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 30; this._yscale = this._yscale + 30; if (this._alpha < 0) { this.removeMovieClip(); } }; } function addSmoke3() { smo3Num++; sm3 = _root.attachMovie("smoke", "smoke" + smo3Num, _root.getNextHighestDepth(), {_x:player._x - 5, _y:player._y + 15}); sm3.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 60; this._yscale = this._yscale + 60; if (this._alpha < 0) { this.removeMovieClip(); } }; } function takingDamage() { if (damage == 1) { _root.health_bar.gotoAndStop("hitOnce"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke(); smoke_interval = 3; } } } function takingDamage2() { if (damage == 2) { _root.health_bar.gotoAndStop("hitTwice"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke2(); addSmoke(); smoke_interval = 3; } } } function takingDamage3() { if (damage == 3) { _root.health_bar.gotoAndStop("lastHit"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke3(); addSmoke2(); addSmoke(); smoke_interval = 3; } } } function runSections() { section_one_timer = section_one_timer - 1; if (section_one_timer > 0) { beamShot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 5) { seNum++; StaEn = _root.attachMovie("blimp", "blimp" + seNum, _root.getNextHighestDepth(), {_x:565, _y:Math.round(Math.random() * 250) + 60}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._x = this._x - 7; }; releaseStandardEnemy = 75; } } if (section_one_timer < 0) { section_one_timer = 0; section_two_timer = section_two_timer - 1; if (section_two_timer > 0) { releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 5) { seNum++; StaEn = _root.attachMovie("missile_enemy", "missile_enemy" + seNum, _root.getNextHighestDepth(), {_x:565, _y:113.3}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 8; }; } if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("missile_enemy", "missile_enemy" + seNum, _root.getNextHighestDepth(), {_x:565, _y:265.3}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 8; }; releaseStandardEnemy = 15; } } if (section_two_timer < 0) { section_two_timer = 0; section_three_timer = section_three_timer - 1; if (section_three_timer > 0) { releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 5) { seNum++; StaEn = _root.attachMovie("missile_enemy", "missile_enemy" + seNum, _root.getNextHighestDepth(), {_x:565, _y:Math.round(Math.random() * 250) + 60}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._x = this._x - 20; }; releaseStandardEnemy = 15; } } if (section_three_timer < 0) { section_three_timer = 0; section_four_timer = section_four_timer - 1; if (section_four_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_spin", "new_spin" + seNum, _root.getNextHighestDepth(), {_x:640, _y:Math.round(Math.random() * 356) + 4}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 85; this._x = this._x - 5; }; releaseStandardEnemy = 75; } } if (section_four_timer < 0) { section_four_timer = 0; section_five_timer = section_five_timer - 1; if (section_five_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_spin", "new_spin" + seNum, _root.getNextHighestDepth(), {_x:640, _y:Math.round(Math.random() * 356) + 4}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 20; }; releaseStandardEnemy = 15; } } if (section_five_timer < 0) { section_five_timer = 0; section_six_timer = section_six_timer - 1; if (section_six_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_spin", "new_spin" + seNum, _root.getNextHighestDepth(), {_x:640, _y:Math.round(Math.random() * 356) + 4}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 85; this._x = this._x - 5; }; releaseStandardEnemy = 75; } } if (section_six_timer < 0) { section_six_timer = 0; section_seven_timer = section_seven_timer - 1; if (section_seven_timer > 0) { enemy2DSpinnerShoot(); attach2DSpinner(); enemySpinnerShoot(); attachSpinner(); } if (section_seven_timer < 0) { section_seven_timer = 0; section_eight_timer = section_eight_timer - 1; if (section_eight_timer > 0) { attachEnemyPlanes(); } if (section_eight_timer < 0) { section_eight_timer = 0; section_nine_timer = section_nine_timer - 1; if (section_nine_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_spin", "new_spin" + seNum, _root.getNextHighestDepth(), {_x:-40, _y:330}); standardEnemy.push(StaEn); StaEn._rotation = 340; StaEn.onEnterFrame = function () { this._rotation = this._rotation - 3; this._x = this._x + 12; if (locked) { this._x = this._x - 100; } }; releaseStandardEnemy = 25; } } if (section_nine_timer < 0) { section_nine_timer = 0; section_ten_timer = section_ten_timer - 1; if (section_ten_timer > 0) { hyperdriveRunning(); locked = true; } } if (section_ten_timer < 0) { locked = false; _root.hyper_drive.removeMovieClip(); section_ten_timer = 0; section_eleven_timer = section_eleven_timer - 1; if (section_eleven_timer > 0) { attachEnemyPlanes(); } if (section_eleven_timer < 0) { section_eleven_timer = 0; section_twelve_timer = section_twelve_timer - 1; if (section_twelve_timer > 0) { if ((timeOfLastEnemyFire6 + 50000) < getTimer()) { timeOfLastEnemyFire6 = getTimer(); _root.attachMovie("warning", "warning", _root.getNextHighestDepth(), {_x:90, _y:125}); } if ((timeOfLastEnemyFire + 1000) < getTimer()) { timeOfLastEnemyFire = getTimer(); voice_danger_sound.start(); } } if (section_twelve_timer < 0) { section_twelve_timer = 0; moveAim(); bst._x = 450.8; bst._y = 1.2; bst.sc.text = boss_health; _root.warning.removeMovieClip(); standardEnemyShoot(); if (enterBoss == 1) { section_twelve_timer = 0; boss = _root.attachMovie("nunu", "nunu", _root.getNextHighestDepth(), {_x:660, _y:210}); holdBoss.push(boss); boss.onEnterFrame = function () { bossShoot(); if ((timeOfLastEnemyFire3 + 1000) < getTimer()) { timeOfLastEnemyFire3 = getTimer(); BulletNum++; bossFire = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:550, _y:Math.round(Math.random() * 400) + 0}); holdEnemyBullets.push(bossFire); bossFire.onEnterFrame = function () { this._x = this._x - 4; }; } this._x = this._x - 2; if (this._x < 320) { this._x = 320; } }; attachAim(); enterBoss = 0; } } } } } } } } } } } } } function show_final_report() { if (boss_dead) { removeAim(); bst._x = 450.8; bst._y = -62.8; if ((timeOfLastEnemyFire5 + 50000) < getTimer()) { timeOfLastEnemyFire5 = getTimer(); mission_completed._x = 90; mission_completed._y = 180; mission_completed.ek.text = enemyKills; mission_completed.ws.text = withSword; setGrade(); } nextLevelCountDown = nextLevelCountDown - 1; if (nextLevelCountDown == 0) { locked = true; stopAllSounds(); mission_completed._x = -0.5; mission_completed._y = -178.5; _root.player.removeMovieClip(); _root.hit_.removeMovieClip(); removePlayerFire(); removePowerUp(); gotoAndPlay ("level_four_intro"); } } } function attachSpinner() { releaseSpinner = releaseSpinner - 1; if (releaseSpinner == 0) { spNum++; enemySpinner = _root.attachMovie("nnn_ppp", "nnn_ppp" + spNum, _root.getNextHighestDepth(), {_x:450, _y:345}); holdSpinner.push(enemySpinner); releaseSpinner = 25; } } function attach2DSpinner() { release2DSpinner = release2DSpinner - 1; if (release2DSpinner == 0) { spNum++; enemySpinner = _root.attachMovie("nnn_ppp", "nnn_ppp" + spNum, _root.getNextHighestDepth(), {_x:450, _y:2}); hold2DSpinner.push(enemySpinner); release2DSpinner = 50; } } function attachAim() { bossAim = _root.attachMovie("aim", "aim", _root.getNextHighestDepth(), {_x:770, _y:200}); holdAim.push(bossAim); bossAim._rotation = 220; bossAim.onEnterFrame = function () { this._alpha = 0; this._rotation = this._rotation - 2; }; } function attachEnemyPlanes() { releaseEnemyPlane = releaseEnemyPlane - 1; if (releaseEnemyPlane == 0) { EnemyPlaneNum++; enemyPlane = _root.attachMovie("missile_enemy", "missile_enemy" + EnemyPlaneNum, _root.getNextHighestDepth(), {_x:600, _y:Math.round(Math.random() * 364) + 6}); holdEnemyPlane.push(enemyPlane); releaseEnemyPlane = 15; } } function attachEnemyChopper() { releaseEnemyChopper = releaseEnemyChopper - 1; if (releaseEnemyChopper == 0) { EnemyChopperNum++; enemyChopper = _root.attachMovie("enemy_chopper", "enemy_chopper" + EnemyChopperNum, _root.getNextHighestDepth(), {_x:800, _y:Math.round(Math.random() * 293) + 40}); holdEnemyChopper.push(enemyChopper); releaseEnemyChopper = 150; } } function moveAim() { i = holdAim.length - 1; while (i >= 0) { holdAim[i]._x = holdAim[i]._x - 3; if (holdAim[i]._x < 280) { holdAim[i]._x = 280; } i--; } } function moveEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { holdEnemyPlane[i]._x = holdEnemyPlane[i]._x - enemyPlaneSpeed; holdEnemyPlane[i]._rotation = holdEnemyPlane[i]._rotation - 50; i--; } } function moveEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { holdEnemyChopper[i]._x = holdEnemyChopper[i]._x - enemyChopperSpeed; i--; } } function moveSpinner() { i = holdSpinner.length - 1; while (i >= 0) { holdSpinner[i]._y = holdSpinner[i]._y - 10; holdSpinner[i]._x = holdSpinner[i]._x - 6; i--; } } function move2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { hold2DSpinner[i]._y = hold2DSpinner[i]._y + 10; hold2DSpinner[i]._x = hold2DSpinner[i]._x - 6; i--; } } function removePlayerFire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); i--; } } function removeRip() { i = holdRip.length - 1; while (i >= 0) { holdRip[i].removeMovieClip(); holdRip.splice(i, 1); i--; } } function removeAim() { i = holdAim.length - 1; while (i >= 0) { holdAim[i].removeMovieClip(); holdAim.splice(i, 1); i--; } } function removeBoss() { i = holdBoss.length - 1; while (i >= 0) { holdBoss[i].removeMovieClip(); holdBoss.splice(i, 1); i--; } } function removeStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); i--; } } function removeSpinner() { i = holdSpinner.length - 1; while (i >= 0) { holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); i--; } } function remove2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); i--; } } function removeFire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); i--; } } function removeEnemy() { i = holdEnemyPlane.length - 1; while (i >= 0) { holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); i--; } } function removeEnemyBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); i--; } } function removeEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); i--; } } function enemyPlaneCut() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; debNum++; explodeObject_sound.start(); explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function enemyPlaneShot() { i = holdEnemyPlane.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdEnemyPlane[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; debNum++; explodeObject_sound.start(); explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } j--; } i--; } } function enemySpinnerCut() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function enemySpinnerShot() { i = holdSpinner.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdSpinner[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } j--; } i--; } } function standardEnemyCut() { i = standardEnemy.length - 1; while (i >= 0) { if (standardEnemy[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); explodeObject_sound.start(); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function standardEnemyShot() { i = standardEnemy.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (standardEnemy[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); explodeObject_sound.start(); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } j--; } i--; } } function enemy2DSpinnerShot() { i = hold2DSpinner.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (hold2DSpinner[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } j--; } i--; } } function enemy2DSpinnerCut() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function bossCut() { i = holdBoss.length - 1; while (i >= 0) { if (holdBoss[i].hitTest(_root.slashing_strike)) { score = score + 25; boss_health = boss_health - 10; holdBoss[i].gotoAndPlay("flash"); explodeObject_sound.start(); if (boss_health < 0) { enemyKills++; withSword++; boss_health = 0; score = score + 25000; loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdBoss[i]._x, _y:holdBoss[i]._y}); exp2._xscale = 250; exp2._yscale = 250; holdBoss[i].removeMovieClip(); boss_dead = true; } } i--; } } function bossShot() { i = holdBoss.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdBoss[i].hitTest(playerFire[j])) { score = score + 2; boss_health = boss_health - 1; holdBoss[i].gotoAndPlay("flash"); explodeObject_sound.start(); if (boss_health == 0) { enemyKills++; score = score + 10000; loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdBoss[i]._x, _y:holdBoss[i]._y}); exp2._xscale = 250; exp2._yscale = 250; holdBoss[i].removeMovieClip(); boss_dead = true; } playerFire[j].removeMovieClip(); playerFire.splice(j, 1); } j--; } i--; } } function enemyChopperShot() { i = holdEnemyChopper.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdEnemyChopper[i].hitTest(playerFire[j])) { score = score + 5; chopper_health = chopper_health - 1; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); _root.enemyChopper.gotoAndPlay("flash"); if (chopper_health == 0) { score = score + 100; enemyKills++; chopper_health = 10; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); explodeObject_sound.start(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; BulletNum++; blue_bullet5 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet5); blue_bullet5.onEnterFrame = function () { this._y = this._y - 2; }; BulletNum++; blue_bullet6 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet6); blue_bullet6.onEnterFrame = function () { this._x = this._x + 4; this._y = this._y + 4; }; BulletNum++; blue_bullet7 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet7); blue_bullet7.onEnterFrame = function () { this._x = this._x + 1.5; this._y = this._y - 1.5; }; BulletNum++; blue_bullet8 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet8); blue_bullet8.onEnterFrame = function () { this._x = this._x + 2; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } j--; } i--; } } function enemyChopperCut() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i].hitTest(_root.slashing_strike)) { score = score + 10; chopper_health = chopper_health - 5; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); _root.enemyChopper.gotoAndPlay("flash"); score = score + 200; if (chopper_health == 0) { withSword++; chopper_health = 10; enemyKills++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; BulletNum++; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); explodeObject_sound.start(); blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; BulletNum++; blue_bullet5 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet5); blue_bullet5.onEnterFrame = function () { this._y = this._y - 2; }; BulletNum++; blue_bullet6 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet6); blue_bullet6.onEnterFrame = function () { this._x = this._x + 4; this._y = this._y + 4; }; BulletNum++; blue_bullet7 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet7); blue_bullet7.onEnterFrame = function () { this._x = this._x + 1.5; this._y = this._y - 1.5; }; BulletNum++; blue_bullet8 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet8); blue_bullet8.onEnterFrame = function () { this._x = this._x + 2; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } i--; } } function playerHitEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; debNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function playerHitEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; chopper_health = chopper_health - 1; damage++; _root.enemyChopper.gotoAndPlay("flash"); if (chopper_health == 0) { hit_sound.start(); bonus = 1; chopper_health = 10; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; BulletNum++; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } i--; } } function playerHit2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function playerHitStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { if (standardEnemy[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function playerHitSpinner() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function playerHitBoss() { i = holdBoss.length - 1; while (i >= 0) { if (holdBoss[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; holdBoss[i].gotoAndPlay("flash"); } i--; } } function playerHitBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { if (holdEnemyBullets[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdEnemyBullets[i]._x + 20, _y:holdEnemyBullets[i]._y}); exp2._xscale = 40; exp2._yscale = 40; holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); } i--; } } function ripHitEnemy2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (hold2DSpinner[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } j--; } i--; } } function ripHitEnemySpinner() { i = holdSpinner.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (holdSpinner[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } j--; } i--; } } function ripHitStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (standardEnemy[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } j--; } i--; } } function ripHitPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (holdEnemyPlane[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } j--; } i--; } } function viewMouse() { if (_root._ymouse < 350) { Mouse.hide(); } else { Mouse.show(); } } function gameOver() { if (damage > 3) { fadeTimer = fadeTimer - 1; _root.health_bar.gotoAndStop("none"); if ((onlyDoItOnce + 3000) < getTimer()) { onlyDoItOnce = getTimer(); loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:_root.player._x, _y:_root.player._y}); exp2._xscale = 150; exp2._yscale = 150; _root.player.removeMovieClip(); _root.hit_.removeMovieClip(); } if (fadeTimer == 0) { removePlayerFire(); removeRip(); removeAim(); removeBoss(); removeStandardEnemy(); removeSpinner(); remove2DSpinner(); removeFire(); removeEnemy(); removeEnemyBullet(); removeEnemyChopper(); removePowerUp(); locked = true; gotoAndStop ("game_over"); } } } function powerUpGun() { i = holdUp.length - 1; while (i >= 0) { if (holdUp[i].hitTest(_root.hit_)) { if (gunPower < 3) { gunPower++; } else { score = score + 250; } holdUp[i].removeMovieClip(); holdUp.splice(i, 1); } i--; } } function attachPowerUp() { if ((powerUpTimer + 50000) < getTimer()) { powerUpTimer = getTimer(); pUpNum++; pUp = _root.attachMovie("powerUp_", "powerUp_" + pUpNum, _root.getNextHighestDepth(), {_x:1000, _y:Math.round(Math.random() * 230) + 70}); pUp.onEnterFrame = function () { this._x = this._x - 3; }; holdUp.push(pUp); } } function removePowerUp() { i = holdUp.length - 1; while (i >= 0) { holdUp[i].removeMovieClip(); holdUp.splice(i, 1); i--; } } function erasePowerUp() { i = holdUp.length - 1; while (i >= 0) { if (holdUp[i]._x < -125) { holdUp[i].removeMovieClip(); holdUp.splice(i, 1); } i--; } } function setGrade() { if (withSword > 70) { mission_completed.grade.text = "A"; } else if (withSword > 60) { mission_completed.grade.text = "B"; } else if (withSword > 50) { mission_completed.grade.text = "C"; } else { mission_completed.grade.text = "D"; } } function playerHitStart() { level_three_start.onEnterFrame = function () { if (_root.player._x > 190) { _root.player._x = 190; } }; } function StartHitBullet() { i = playerFire.length - 1; while (i >= 0) { if (playerFire[i].hitTest(_root.level_three_start)) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); } i--; } } _root.attachMovie("hit_", "hit_", _root.getNextHighestDepth(), {_x:25, _y:300}); hit_._alpha = 0; _root.attachMovie("level_three_start", "level_three_start", _root.getNextHighestDepth(), {_x:400, _y:138}); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:25, _y:300}); shooting = false; sword_selected = false; locked = false; boss_dead = false; if (level > 3) { level = level; } else { level = 3; } gunPower = 0; enemyKills = 0; withSword = 0; robotSpeed = 7; shotSpeed = 20; enemyPlaneSpeed = 12; enemyChopperSpeed = 6; damage = 0; smokeSpeed = 10; smoke_interval = 3; BulletSpeed = 2; chopper_health = 10; boss_health = 1000; bonus = 1; powerUpTimer = 0; onlyDoItOnce = 0; fadeTimer = 50; nextLevelCountDown = 150; enterBoss = 1; smokerelease = 10; sslashhit = 3; is_attacking = -3; timeOfLastFire = 0; timeOfLastEnemyFire = 0; timeOfLastEnemyFire2 = 0; timeOfLastEnemyFire3 = 0; timeOfLastEnemyFire4 = 0; timeOfLastEnemyFire5 = 0; timeOfLastEnemyFire6 = 0; is_shooting = -5; releaseStandardEnemy = 110; releaseSpinner = 50; release2DSpinner = 75; releaseEnemyPlane = 50; releaseEnemyChopper = 50; section_one_timer = 500; section_two_timer = 175; section_three_timer = 175; section_four_timer = 175; section_five_timer = 300; section_six_timer = 650; section_seven_timer = 1000; section_eight_timer = 500; section_nine_timer = 500; section_ten_timer = 150; section_eleven_timer = 300; section_twelve_timer = 100; section_thirteen_timer = 500; section_fourteen_timer = 500; section_fiftenn_timer = 500; playerShotNum = 0; EnemyChopperNum = 0; EnemyPlaneNum = 0; seNum = 0; smoNum = 0; smo2Num = 0; smo3Num = 0; exp2Num = 0; BulletNum = 0; debNum = 0; chainNum = 0; flashNum = 0; spNum = 0; ripNum = 0; voice_danger_sound = new Sound(); voice_danger_sound.attachSound("voice_danger"); hyp_sound = new Sound(); hyp_sound.attachSound("hyp"); hit_sound = new Sound(); hit_sound.attachSound("boom"); shot_sound = new Sound(); shot_sound.attachSound("ak47"); explodeObject_sound = new Sound(); explodeObject_sound.attachSound("explodeObject"); loudBang_sound = new Sound(); loudBang_sound.attachSound("loudBang"); var holdUp = new Array(); var holdBoss = new Array(); var holdAim = new Array(); var holdRip = new Array(); var playerFire = new Array(); var standardEnemy = new Array(); var holdEnemyPlane = new Array(); var holdSpinner = new Array(); var hold2DSpinner = new Array(); var holdEnemyChopper = new Array(); var holdEnemyBullets = new Array(); _root.onMouseDown = function () { if (!locked) { if (sword_selected) { _root.player.gotoAndStop("slash"); shooting = true; } else { _root.player.gotoAndStop("shoot"); shooting = true; } } }; _root.onMouseUp = function () { if (!locked) { shooting = false; sslashhit = 3; is_shooting = -5; is_attacking = -3; } }; player.onEnterFrame = function () { StartHitBullet(); playerHitStart(); erasePowerUp(); attachPowerUp(); powerUpGun(); standardEnemyShot(); playerHitStandardEnemy(); eraseStandardEnemy(); eraseFire(); playerBounds(); fire(); playerMovement(); shoot(); viewMouse(); erase2DSpinner(); move2DSpinner(); enemy2DSpinnerShot(); playerHit2DSpinner(); attachHit_(); ripHitPlane(); eraseEnemyPlane(); ripHitStandardEnemy(); eraseBlueBullet(); enemyPlaneShot(); moveEnemyPlane(); attachDamageFunctions(); moveEnemyPlane(); weapon_switch(); eraseEnemyChopper(); moveEnemyChopper(); playerHitEnemyChopper(); playerHitBullet(); playerHitEnemyPlane(); moveSpinner(); playerHitSpinner(); enemyChopperShot(); runSections(); enemySpinnerShot(); enemyChopperCut(); eraseSpinner(); swordSlash(); enemy2DSpinnerCut(); standardEnemyCut(); enemySpinnerCut(); enemyPlaneCut(); ripHitEnemySpinner(); ripHitEnemy2DSpinner(); playerHitBoss(); bossShot(); bossCut(); show_final_report(); }; weapon_select.onEnterFrame = function () { gameOver(); }; stop();
Frame 1196
function playerMovement() { if (!locked) { endX = _root._xmouse; endY = _root._ymouse; player._x = player._x + ((endX - player._x) / robotSpeed); player._y = player._y + ((endY - player._y) / robotSpeed); if (!shooting) { if (_root._xmouse < (_root.player._x - 25)) { _root.player.gotoAndStop("back"); } else if (_root._ymouse < (_root.player._y - 25)) { _root.player.gotoAndStop("up"); } else if (_root._ymouse > (_root.player._y - 25)) { _root.player.gotoAndStop("down"); } else { _root.player.gotoAndStop("idle"); } } } } function weapon_switch() { if (Key.getCode() == 90) { _root.weapon_select.gotoAndStop("sword"); sword_selected = true; } else if (Key.getCode() == 88) { _root.weapon_select.gotoAndStop("gun"); sword_selected = false; } } function swordSlash() { if (shooting) { is_attacking++; if (sword_selected) { if (is_attacking > 0) { sslashhit = sslashhit - 1; slashing_strike = _root.attachMovie("slash_hit", "slash_hit", _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); slashing_strike._alpha = 0; if (sslashhit < 0) { slashing_strike.removeMovieClip(); } } } } } function shoot() { if (!locked) { if (!sword_selected) { if (shooting) { is_shooting++; } if (is_shooting > 0) { if (gunPower == 0) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); playerFire.push(shot); } } else if (gunPower == 1) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot1 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); playerFire.push(shot1); shot2 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 10}); playerFire.push(shot2); shot3 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y}); playerFire.push(shot3); } } else if (gunPower == 2) { if ((timeOfLastFire + 200) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot4 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot4.onEnterFrame = function () { this._rotation = this._rotation - 15; }; playerFire.push(shot4); } } else if (gunPower == 3) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot5 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot5.onEnterFrame = function () { this._rotation = this._rotation - 15; }; playerFire.push(shot5); shot6 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot6.onEnterFrame = function () { this._rotation = this._rotation + 15; }; playerFire.push(shot6); } } } } } } function hyperdriveRunning() { _root.player.gotoAndStop("boost"); if ((timeOfLastEnemyFire4 + 50000) < getTimer()) { timeOfLastEnemyFire4 = getTimer(); hyper_drive = _root.attachMovie("streaks", "streaks", _root.getNextHighestDepth(), {_x:0, _y:0}); hyp_sound.start(); } } function playerBounds() { if (player._x > 485) { player._x = 485; } else if (player._x < 60) { player._x = 60; } else if (player._y > 345) { player._y = 345; } else if (player._y < 50) { player._y = 50; } } function eraseFire() { i = playerFire.length - 1; while (i >= 0) { if (playerFire[i]._x > 550) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); } i--; } } function eraseEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i]._x < -125) { holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function eraseEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i]._x < -310) { holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } i--; } } function eraseStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { if ((((standardEnemy[i]._x < -100) or (standardEnemy[i]._x > 650)) or (standardEnemy[i]._y < -100)) or (standardEnemy[i]._y > 500)) { standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function eraseSpinner() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i]._y < -150) { holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function erase2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i]._y > 405) { hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function eraseBlueBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { if ((((holdEnemyBullets[i]._x < -10) or (holdEnemyBullets[i]._x > 550)) or (holdEnemyBullets[i]._y < -10)) or (holdEnemyBullets[i]._y > 400)) { holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); } i--; } } function attachHit_() { endX = _root.player._x; endY = _root.player._y; hit_._x = hit_._x + ((endX - hit_._x) - 20); hit_._y = hit_._y + ((endY - hit_._y) - 30); } function fire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i]._x = playerFire[i]._x + shotSpeed; i--; } } function beamShot() { i = standardEnemy.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 100) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; beam = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x - 23, _y:standardEnemy[i]._y + 20}); holdEnemyBullets.push(beam); beam.onEnterFrame = function () { this._x = this._x - 20; if (locked) { this._x = this._x - 100; } }; } i--; } } function enemy2DSpinnerShoot() { i = hold2DSpinner.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 50) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); holdEnemyBullets.push(blue_bullet); angle = hold2DSpinner[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; }; } i--; } } function bossShoot() { i = holdAim.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire7 + 1000) < getTimer()) { timeOfLastEnemyFire7 = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdAim[i]._x, _y:holdAim[i]._y}); holdEnemyBullets.push(blue_bullet); angle = holdAim[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; }; } i--; } } function chopperEnemyShoot() { i = holdEnemyChopper.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 30) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); angle = holdEnemyChopper[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; if (locked) { this._x = this._x - 100; } }; } i--; } } function standardEnemyShoot() { i = standardEnemy.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 30) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); holdEnemyBullets.push(blue_bullet); angle = standardEnemy[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; if (locked) { this._x = this._x - 100; } }; } i--; } } function enemySpinnerShoot() { i = holdSpinner.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire2 + 50) < getTimer()) { timeOfLastEnemyFire2 = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); holdEnemyBullets.push(blue_bullet); angle = holdSpinner[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; }; } i--; } } function attachDamageFunctions() { takingDamage(); takingDamage2(); takingDamage3(); } function addSmoke() { smoNum++; sm = _root.attachMovie("smoke", "smoke" + smoNum, _root.getNextHighestDepth(), {_x:player._x + 25, _y:player._y - 15}); sm.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 20; this._yscale = this._yscale + 20; if (this._alpha < 0) { this.removeMovieClip(); } }; } function addSmoke2() { smo2Num++; sm2 = _root.attachMovie("smoke", "smoke" + smo2Num, _root.getNextHighestDepth(), {_x:player._x - 10, _y:player._y + 3}); sm2.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 30; this._yscale = this._yscale + 30; if (this._alpha < 0) { this.removeMovieClip(); } }; } function addSmoke3() { smo3Num++; sm3 = _root.attachMovie("smoke", "smoke" + smo3Num, _root.getNextHighestDepth(), {_x:player._x - 5, _y:player._y + 15}); sm3.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 60; this._yscale = this._yscale + 60; if (this._alpha < 0) { this.removeMovieClip(); } }; } function takingDamage() { if (damage == 1) { _root.health_bar.gotoAndStop("hitOnce"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke(); smoke_interval = 3; } } } function takingDamage2() { if (damage == 2) { _root.health_bar.gotoAndStop("hitTwice"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke2(); addSmoke(); smoke_interval = 3; } } } function takingDamage3() { if (damage == 3) { _root.health_bar.gotoAndStop("lastHit"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke3(); addSmoke2(); addSmoke(); smoke_interval = 3; } } } function runSections() { section_one_timer = section_one_timer - 1; if (section_one_timer > 0) { attachEnemyChopper(); chopperEnemyShoot(); } if (section_one_timer < 0) { section_one_timer = 0; section_two_timer = section_two_timer - 1; if (section_two_timer > 0) { attachEnemyPlanes(); } } if (section_two_timer < 0) { section_two_timer = 0; section_three_timer = section_three_timer - 1; if (section_three_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("bleeblau", "bleeblau" + seNum, _root.getNextHighestDepth(), {_x:460, _y:-65}); standardEnemy.push(StaEn); StaEn._rotation = 260; StaEn.onEnterFrame = function () { this._rotation = this._rotation - 3; this._y = this._y + 12; }; releaseStandardEnemy = 25; } } if (section_three_timer < 0) { section_three_timer = 0; section_four_timer = section_four_timer - 1; if (section_four_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("bleeblau", "bleeblau" + seNum, _root.getNextHighestDepth(), {_x:460, _y:400}); standardEnemy.push(StaEn); StaEn._rotation = 200; StaEn.onEnterFrame = function () { this._rotation = this._rotation - 3; this._y = this._y - 20; }; releaseStandardEnemy = 25; } } if (section_four_timer < 0) { section_four_timer = 0; section_five_timer = section_five_timer - 1; if (section_five_timer > 0) { beamShot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 5) { seNum++; StaEn = _root.attachMovie("blimp", "blimp" + seNum, _root.getNextHighestDepth(), {_x:565, _y:Math.round(Math.random() * 250) + 60}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._x = this._x - 7; }; releaseStandardEnemy = 75; } } if (section_five_timer < 0) { section_five_timer = 0; section_six_timer = section_six_timer - 1; if (section_six_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("bleeblau", "bleeblau" + seNum, _root.getNextHighestDepth(), {_x:640, _y:Math.round(Math.random() * 356) + 4}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 75; this._x = this._x - 8; }; releaseStandardEnemy = 75; } } if (section_six_timer < 0) { section_six_timer = 0; section_seven_timer = section_seven_timer - 1; if (section_seven_timer > 0) { enemy2DSpinnerShoot(); attach2DSpinner(); enemySpinnerShoot(); attachSpinner(); } if (section_seven_timer < 0) { section_seven_timer = 0; section_eight_timer = section_eight_timer - 1; if (section_eight_timer > 0) { attachEnemyPlanes(); } if (section_eight_timer < 0) { section_eight_timer = 0; section_nine_timer = section_nine_timer - 1; if (section_nine_timer > 0) { releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("bleeblau", "bleeblau" + seNum, _root.getNextHighestDepth(), {_x:-40, _y:Math.round(Math.random() * 270) + 30}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x + 7; if (locked) { this._x = this._x - 100; } }; releaseStandardEnemy = 25; } } if (section_nine_timer < 0) { section_nine_timer = 0; section_ten_timer = section_ten_timer - 1; if (section_ten_timer > 0) { hyperdriveRunning(); locked = true; } } if (section_ten_timer < 0) { locked = false; _root.hyper_drive.removeMovieClip(); section_ten_timer = 0; section_eleven_timer = section_eleven_timer - 1; if (section_eleven_timer > 0) { attachEnemyPlanes(); } if (section_eleven_timer < 0) { section_eleven_timer = 0; section_twelve_timer = section_twelve_timer - 1; if (section_twelve_timer > 0) { if ((timeOfLastEnemyFire6 + 50000) < getTimer()) { timeOfLastEnemyFire6 = getTimer(); _root.attachMovie("warning", "warning", _root.getNextHighestDepth(), {_x:90, _y:125}); } if ((timeOfLastEnemyFire + 1000) < getTimer()) { timeOfLastEnemyFire = getTimer(); voice_danger_sound.start(); } } if (section_twelve_timer < 0) { section_twelve_timer = 0; moveAim(); bst._x = 450.8; bst._y = 1.2; bst.sc.text = boss_health; _root.warning.removeMovieClip(); if (enterBoss == 1) { section_twelve_timer = 0; boss = _root.attachMovie("nextBadGuy", "nextBadGuy", _root.getNextHighestDepth(), {_x:660, _y:210}); holdBoss.push(boss); boss.onEnterFrame = function () { if ((timeOfLastEnemyFire3 + 15) < getTimer()) { timeOfLastEnemyFire3 = getTimer(); bossShoot(); enemy2DSpinnerShoot(); attach2DSpinner(); enemySpinnerShoot(); attachSpinner(); } this._x = this._x - 2; if (this._x < 380) { this._x = 380; } }; attachAim(); enterBoss = 0; } } } } } } } } } } } } function show_final_report() { if (boss_dead) { removeAim(); bst._x = 450.8; bst._y = -62.8; if ((timeOfLastEnemyFire5 + 50000) < getTimer()) { timeOfLastEnemyFire5 = getTimer(); mission_completed._x = 90; mission_completed._y = 180; mission_completed.ek.text = enemyKills; mission_completed.ws.text = withSword; setGrade(); } nextLevelCountDown = nextLevelCountDown - 1; if (nextLevelCountDown == 0) { locked = true; stopAllSounds(); mission_completed._x = -0.5; mission_completed._y = -178.5; _root.player.removeMovieClip(); _root.hit_.removeMovieClip(); removePlayerFire(); removePowerUp(); gotoAndPlay ("level_five_intro"); } } } function attachSpinner() { releaseSpinner = releaseSpinner - 1; if (releaseSpinner == 0) { spNum++; enemySpinner = _root.attachMovie("bleeblau", "bleeblau" + spNum, _root.getNextHighestDepth(), {_x:450, _y:345}); enemySpinner._rotation = 180; holdSpinner.push(enemySpinner); releaseSpinner = 25; } } function attach2DSpinner() { release2DSpinner = release2DSpinner - 1; if (release2DSpinner == 0) { spNum++; enemySpinner = _root.attachMovie("bleeblau", "bleeblau" + spNum, _root.getNextHighestDepth(), {_x:450, _y:2}); enemySpinner._rotation = 180; hold2DSpinner.push(enemySpinner); release2DSpinner = 50; } } function attachAim() { bossAim = _root.attachMovie("aim", "aim", _root.getNextHighestDepth(), {_x:770, _y:200}); holdAim.push(bossAim); bossAim._rotation = 220; bossAim.onEnterFrame = function () { this._alpha = 0; this._rotation = this._rotation - 2; }; } function attachEnemyPlanes() { releaseEnemyPlane = releaseEnemyPlane - 1; if (releaseEnemyPlane == 0) { EnemyPlaneNum++; enemyPlane = _root.attachMovie("bleeblau", "bleeblau" + EnemyPlaneNum, _root.getNextHighestDepth(), {_x:600, _y:Math.round(Math.random() * 364) + 6}); holdEnemyPlane.push(enemyPlane); releaseEnemyPlane = 15; } } function attachEnemyChopper() { releaseEnemyChopper = releaseEnemyChopper - 1; if (releaseEnemyChopper == 0) { EnemyChopperNum++; enemyChopper = _root.attachMovie("nextBadGuy", "nextBadGuy" + EnemyChopperNum, _root.getNextHighestDepth(), {_x:800, _y:Math.round(Math.random() * 293) + 40}); enemyChopper._rotation = 260; holdEnemyChopper.push(enemyChopper); enemyChopper.onEnterFrame = function () { enemyChopper._rotation = enemyChopper._rotation - 2; }; releaseEnemyChopper = 150; } } function moveAim() { i = holdAim.length - 1; while (i >= 0) { holdAim[i]._x = holdAim[i]._x - 3; if (holdAim[i]._x < 280) { holdAim[i]._x = 280; } i--; } } function moveEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { holdEnemyPlane[i]._x = holdEnemyPlane[i]._x - enemyPlaneSpeed; holdEnemyPlane[i]._rotation = holdEnemyPlane[i]._rotation - 50; i--; } } function moveEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { holdEnemyChopper[i]._x = holdEnemyChopper[i]._x - enemyChopperSpeed; i--; } } function moveSpinner() { i = holdSpinner.length - 1; while (i >= 0) { holdSpinner[i]._y = holdSpinner[i]._y - 10; holdSpinner[i]._x = holdSpinner[i]._x - 6; holdSpinner[i]._rotation = holdSpinner[i]._rotation + 33; i--; } } function move2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { hold2DSpinner[i]._y = hold2DSpinner[i]._y + 10; hold2DSpinner[i]._x = hold2DSpinner[i]._x - 6; hold2DSpinner[i]._rotation = hold2DSpinner[i]._rotation - 33; i--; } } function removePlayerFire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); i--; } } function removeRip() { i = holdRip.length - 1; while (i >= 0) { holdRip[i].removeMovieClip(); holdRip.splice(i, 1); i--; } } function removeAim() { i = holdAim.length - 1; while (i >= 0) { holdAim[i].removeMovieClip(); holdAim.splice(i, 1); i--; } } function removeBoss() { i = holdBoss.length - 1; while (i >= 0) { holdBoss[i].removeMovieClip(); holdBoss.splice(i, 1); i--; } } function removeStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); i--; } } function removeSpinner() { i = holdSpinner.length - 1; while (i >= 0) { holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); i--; } } function remove2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); i--; } } function removeFire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); i--; } } function removeEnemy() { i = holdEnemyPlane.length - 1; while (i >= 0) { holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); i--; } } function removeEnemyBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); i--; } } function removeEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); i--; } } function enemyPlaneCut() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i].hitTest(_root.slashing_strike)) { enemyKills++; withSword++; score = score + 100; debNum++; explodeObject_sound.start(); explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function enemyPlaneShot() { i = holdEnemyPlane.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdEnemyPlane[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; debNum++; explodeObject_sound.start(); explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } j--; } i--; } } function enemySpinnerCut() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function enemySpinnerShot() { i = holdSpinner.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdSpinner[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } j--; } i--; } } function standardEnemyCut() { i = standardEnemy.length - 1; while (i >= 0) { if (standardEnemy[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); explodeObject_sound.start(); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function standardEnemyShot() { i = standardEnemy.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (standardEnemy[i].hitTest(playerFire[j])) { score = score + 50; enemyKills++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); explodeObject_sound.start(); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } j--; } i--; } } function enemy2DSpinnerShot() { i = hold2DSpinner.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (hold2DSpinner[i].hitTest(playerFire[j])) { score = score + 50; ripNum++; enemyKills++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } j--; } i--; } } function enemy2DSpinnerCut() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i].hitTest(_root.slashing_strike)) { score = score + 100; withSword++; enemyKills++; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function bossCut() { i = holdBoss.length - 1; while (i >= 0) { if (holdBoss[i].hitTest(_root.slashing_strike)) { score = score + 25; boss_health = boss_health - 10; holdBoss[i].gotoAndPlay("flash"); explodeObject_sound.start(); if (boss_health < 0) { enemyKills++; withSword++; boss_health = 0; score = score + 25000; loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdBoss[i]._x, _y:holdBoss[i]._y}); exp2._xscale = 250; exp2._yscale = 250; holdBoss[i].removeMovieClip(); boss_dead = true; } } i--; } } function bossShot() { i = holdBoss.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdBoss[i].hitTest(playerFire[j])) { score = score + 2; boss_health = boss_health - 1; holdBoss[i].gotoAndPlay("flash"); explodeObject_sound.start(); if (boss_health == 0) { enemyKills++; score = score + 10000; loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdBoss[i]._x, _y:holdBoss[i]._y}); exp2._xscale = 250; exp2._yscale = 250; holdBoss[i].removeMovieClip(); boss_dead = true; } playerFire[j].removeMovieClip(); playerFire.splice(j, 1); } j--; } i--; } } function enemyChopperShot() { i = holdEnemyChopper.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdEnemyChopper[i].hitTest(playerFire[j])) { score = score + 5; chopper_health = chopper_health - 1; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); _root.enemyChopper.gotoAndPlay("flash"); if (chopper_health == 0) { enemyKills++; score = score + 100; chopper_health = 10; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); explodeObject_sound.start(); BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; BulletNum++; blue_bullet5 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet5); blue_bullet5.onEnterFrame = function () { this._y = this._y - 2; }; BulletNum++; blue_bullet6 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet6); blue_bullet6.onEnterFrame = function () { this._x = this._x + 4; this._y = this._y + 4; }; BulletNum++; blue_bullet7 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet7); blue_bullet7.onEnterFrame = function () { this._x = this._x + 1.5; this._y = this._y - 1.5; }; BulletNum++; blue_bullet8 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet8); blue_bullet8.onEnterFrame = function () { this._x = this._x + 2; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } j--; } i--; } } function enemyChopperCut() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i].hitTest(_root.slashing_strike)) { score = score + 10; chopper_health = chopper_health - 5; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); _root.enemyChopper.gotoAndPlay("flash"); score = score + 200; if (chopper_health == 0) { withSword++; chopper_health = 10; flashNum++; enemyKills++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; BulletNum++; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); explodeObject_sound.start(); blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; BulletNum++; blue_bullet5 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet5); blue_bullet5.onEnterFrame = function () { this._y = this._y - 2; }; BulletNum++; blue_bullet6 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet6); blue_bullet6.onEnterFrame = function () { this._x = this._x + 4; this._y = this._y + 4; }; BulletNum++; blue_bullet7 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet7); blue_bullet7.onEnterFrame = function () { this._x = this._x + 1.5; this._y = this._y - 1.5; }; BulletNum++; blue_bullet8 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet8); blue_bullet8.onEnterFrame = function () { this._x = this._x + 2; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } i--; } } function playerHitEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; debNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function playerHitEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; chopper_health = chopper_health - 1; damage++; _root.enemyChopper.gotoAndPlay("flash"); if (chopper_health == 0) { hit_sound.start(); bonus = 1; chopper_health = 10; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; BulletNum++; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } i--; } } function playerHit2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function playerHitStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { if (standardEnemy[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function playerHitSpinner() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function playerHitBoss() { i = holdBoss.length - 1; while (i >= 0) { if (holdBoss[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; holdBoss[i].gotoAndPlay("flash"); } i--; } } function playerHitBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { if (holdEnemyBullets[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdEnemyBullets[i]._x + 20, _y:holdEnemyBullets[i]._y}); exp2._xscale = 40; exp2._yscale = 40; holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); } i--; } } function ripHitEnemy2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (hold2DSpinner[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } j--; } i--; } } function ripHitEnemySpinner() { i = holdSpinner.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (holdSpinner[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } j--; } i--; } } function ripHitStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (standardEnemy[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } j--; } i--; } } function ripHitPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (holdEnemyPlane[i].hitTest(holdRip[j])) { bonus++; enemyKills++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_shot", "enemy_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } j--; } i--; } } function viewMouse() { if (_root._ymouse < 350) { Mouse.hide(); } else { Mouse.show(); } } function gameOver() { if (damage > 3) { fadeTimer = fadeTimer - 1; _root.health_bar.gotoAndStop("none"); if ((onlyDoItOnce + 3000) < getTimer()) { onlyDoItOnce = getTimer(); loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:_root.player._x, _y:_root.player._y}); exp2._xscale = 150; exp2._yscale = 150; _root.player.removeMovieClip(); _root.hit_.removeMovieClip(); } if (fadeTimer == 0) { removePlayerFire(); removeRip(); removeAim(); removeBoss(); removeStandardEnemy(); removeSpinner(); remove2DSpinner(); removeFire(); removeEnemy(); removeEnemyBullet(); removeEnemyChopper(); removePowerUp(); locked = true; gotoAndStop ("game_over"); } } } function powerUpGun() { i = holdUp.length - 1; while (i >= 0) { if (holdUp[i].hitTest(_root.hit_)) { if (gunPower < 3) { gunPower++; } else { score = score + 250; } holdUp[i].removeMovieClip(); holdUp.splice(i, 1); } i--; } } function attachPowerUp() { if ((powerUpTimer + 50000) < getTimer()) { powerUpTimer = getTimer(); pUpNum++; pUp = _root.attachMovie("powerUp_", "powerUp_" + pUpNum, _root.getNextHighestDepth(), {_x:1000, _y:Math.round(Math.random() * 230) + 70}); pUp.onEnterFrame = function () { this._x = this._x - 3; }; holdUp.push(pUp); } } function removePowerUp() { i = holdUp.length - 1; while (i >= 0) { holdUp[i].removeMovieClip(); holdUp.splice(i, 1); i--; } } function erasePowerUp() { i = holdUp.length - 1; while (i >= 0) { if (holdUp[i]._x < -125) { holdUp[i].removeMovieClip(); holdUp.splice(i, 1); } i--; } } function setGrade() { if (withSword > 70) { mission_completed.grade.text = "A"; } else if (withSword > 60) { mission_completed.grade.text = "B"; } else if (withSword > 50) { mission_completed.grade.text = "C"; } else { mission_completed.grade.text = "D"; } } function playerHitStart() { level_four_start.onEnterFrame = function () { if (_root.player._x > 190) { _root.player._x = 190; } }; } function StartHitBullet() { i = playerFire.length - 1; while (i >= 0) { if (playerFire[i].hitTest(_root.level_four_start)) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); } i--; } } _root.attachMovie("hit_", "hit_", _root.getNextHighestDepth(), {_x:25, _y:300}); hit_._alpha = 0; _root.attachMovie("level_four_start", "level_four_start", _root.getNextHighestDepth(), {_x:400, _y:138}); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:25, _y:300}); shooting = false; sword_selected = false; locked = false; boss_dead = false; if (level > 4) { level = level; } else { level = 4; } gunPower = 0; enemyKills = 0; withSword = 0; robotSpeed = 7; shotSpeed = 20; enemyPlaneSpeed = 12; enemyChopperSpeed = 6; damage = 0; smokeSpeed = 10; smoke_interval = 3; BulletSpeed = 2; chopper_health = 10; boss_health = 650; bonus = 1; powerUpTimer = 0; onlyDoItOnce = 0; fadeTimer = 50; nextLevelCountDown = 150; enterBoss = 1; smokerelease = 10; sslashhit = 3; is_attacking = -3; timeOfLastFire = 0; timeOfLastEnemyFire = 0; timeOfLastEnemyFire2 = 0; timeOfLastEnemyFire3 = 0; timeOfLastEnemyFire4 = 0; timeOfLastEnemyFire5 = 0; timeOfLastEnemyFire6 = 0; timeOfLastEnemyFire7 = 0; is_shooting = -5; releaseStandardEnemy = 110; releaseSpinner = 50; release2DSpinner = 75; releaseEnemyPlane = 50; releaseEnemyChopper = 50; section_one_timer = 1000; section_two_timer = 500; section_three_timer = 175; section_four_timer = 175; section_five_timer = 300; section_six_timer = 650; section_seven_timer = 1000; section_eight_timer = 500; section_nine_timer = 250; section_ten_timer = 150; section_eleven_timer = 300; section_twelve_timer = 100; section_thirteen_timer = 500; section_fourteen_timer = 500; section_fiftenn_timer = 500; playerShotNum = 0; EnemyChopperNum = 0; EnemyPlaneNum = 0; seNum = 0; smoNum = 0; smo2Num = 0; smo3Num = 0; exp2Num = 0; BulletNum = 0; debNum = 0; chainNum = 0; flashNum = 0; spNum = 0; ripNum = 0; voice_danger_sound = new Sound(); voice_danger_sound.attachSound("voice_danger"); hyp_sound = new Sound(); hyp_sound.attachSound("hyp"); hit_sound = new Sound(); hit_sound.attachSound("boom"); shot_sound = new Sound(); shot_sound.attachSound("ak47"); explodeObject_sound = new Sound(); explodeObject_sound.attachSound("explodeObject"); loudBang_sound = new Sound(); loudBang_sound.attachSound("loudBang"); var holdUp = new Array(); var holdBoss = new Array(); var holdAim = new Array(); var holdRip = new Array(); var playerFire = new Array(); var standardEnemy = new Array(); var holdEnemyPlane = new Array(); var holdSpinner = new Array(); var hold2DSpinner = new Array(); var holdEnemyChopper = new Array(); var holdEnemyBullets = new Array(); _root.onMouseDown = function () { if (!locked) { if (sword_selected) { _root.player.gotoAndStop("slash"); shooting = true; } else { _root.player.gotoAndStop("shoot"); shooting = true; } } }; _root.onMouseUp = function () { if (!locked) { shooting = false; sslashhit = 3; is_shooting = -5; is_attacking = -3; } }; player.onEnterFrame = function () { StartHitBullet(); playerHitStart(); erasePowerUp(); attachPowerUp(); powerUpGun(); standardEnemyShot(); playerHitStandardEnemy(); eraseStandardEnemy(); eraseFire(); playerBounds(); fire(); playerMovement(); shoot(); viewMouse(); erase2DSpinner(); move2DSpinner(); enemy2DSpinnerShot(); playerHit2DSpinner(); attachHit_(); ripHitPlane(); eraseEnemyPlane(); ripHitStandardEnemy(); eraseBlueBullet(); enemyPlaneShot(); moveEnemyPlane(); attachDamageFunctions(); moveEnemyPlane(); weapon_switch(); eraseEnemyChopper(); moveEnemyChopper(); playerHitEnemyChopper(); playerHitBullet(); playerHitEnemyPlane(); moveSpinner(); playerHitSpinner(); enemyChopperShot(); runSections(); enemySpinnerShot(); enemyChopperCut(); eraseSpinner(); swordSlash(); enemy2DSpinnerCut(); standardEnemyCut(); enemySpinnerCut(); enemyPlaneCut(); ripHitEnemySpinner(); ripHitEnemy2DSpinner(); playerHitBoss(); bossShot(); bossCut(); show_final_report(); }; weapon_select.onEnterFrame = function () { gameOver(); }; stop();
Frame 1371
function playerMovement() { if (!locked) { endX = _root._xmouse; endY = _root._ymouse; player._x = player._x + ((endX - player._x) / robotSpeed); player._y = player._y + ((endY - player._y) / robotSpeed); if (!shooting) { if (_root._xmouse < (_root.player._x - 25)) { _root.player.gotoAndStop("back"); } else if (_root._ymouse < (_root.player._y - 25)) { _root.player.gotoAndStop("up"); } else if (_root._ymouse > (_root.player._y - 25)) { _root.player.gotoAndStop("down"); } else { _root.player.gotoAndStop("idle"); } } } } function weapon_switch() { if (Key.getCode() == 90) { _root.weapon_select.gotoAndStop("sword"); sword_selected = true; } else if (Key.getCode() == 88) { _root.weapon_select.gotoAndStop("gun"); sword_selected = false; } } function swordSlash() { if (shooting) { is_attacking++; if (sword_selected) { if (is_attacking > 0) { sslashhit = sslashhit - 1; slashing_strike = _root.attachMovie("slash_hit", "slash_hit", _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); slashing_strike._alpha = 0; if (sslashhit < 0) { slashing_strike.removeMovieClip(); } } } } } function shoot() { if (!locked) { if (!sword_selected) { if (shooting) { is_shooting++; } if (is_shooting > 0) { if (gunPower == 0) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); playerFire.push(shot); } } else if (gunPower == 1) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot1 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); playerFire.push(shot1); shot2 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 10}); playerFire.push(shot2); shot3 = _root.attachMovie("player_shot", "player_shot" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y}); playerFire.push(shot3); } } else if (gunPower == 2) { if ((timeOfLastFire + 200) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot4 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot4.onEnterFrame = function () { this._rotation = this._rotation - 15; }; playerFire.push(shot4); } } else if (gunPower == 3) { if ((timeOfLastFire + 150) < getTimer()) { timeOfLastFire = getTimer(); playerShotNum++; shot_sound.start(); _root.attachMovie("gun_flash", "gun_flash", _root.getNextHighestDepth(), {_x:player._x + 55, _y:player._y - 52.5}); shot5 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot5.onEnterFrame = function () { this._rotation = this._rotation - 15; }; playerFire.push(shot5); shot6 = _root.attachMovie("streamer", "streamer" + playerShotNum, _root.getNextHighestDepth(), {_x:player._x + 75, _y:player._y - 5}); shot6.onEnterFrame = function () { this._rotation = this._rotation + 15; }; playerFire.push(shot6); } } } } } } function hyperdriveRunning() { _root.player.gotoAndStop("boost"); if ((timeOfLastEnemyFire4 + 50000) < getTimer()) { timeOfLastEnemyFire4 = getTimer(); hyper_drive = _root.attachMovie("streaks", "streaks", _root.getNextHighestDepth(), {_x:0, _y:0}); hyp_sound.start(); } } function playerBounds() { if (player._x > 485) { player._x = 485; } else if (player._x < 60) { player._x = 60; } else if (player._y > 345) { player._y = 345; } else if (player._y < 50) { player._y = 50; } } function eraseFire() { i = playerFire.length - 1; while (i >= 0) { if (playerFire[i]._x > 550) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); } i--; } } function eraseEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i]._x < -125) { holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function eraseEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i]._x < -310) { holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } i--; } } function eraseStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { if ((((standardEnemy[i]._x < -100) or (standardEnemy[i]._x > 650)) or (standardEnemy[i]._y < -100)) or (standardEnemy[i]._y > 500)) { standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function eraseSpinner() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i]._y < -150) { holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function erase2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i]._y > 405) { hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function eraseBlueBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { if ((((holdEnemyBullets[i]._x < -10) or (holdEnemyBullets[i]._x > 550)) or (holdEnemyBullets[i]._y < -10)) or (holdEnemyBullets[i]._y > 400)) { holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); } i--; } } function attachHit_() { endX = _root.player._x; endY = _root.player._y; hit_._x = hit_._x + ((endX - hit_._x) - 20); hit_._y = hit_._y + ((endY - hit_._y) - 30); } function fire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i]._x = playerFire[i]._x + shotSpeed; i--; } } function beamShot() { i = standardEnemy.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 100) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; beam = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x - 23, _y:standardEnemy[i]._y + 20}); holdEnemyBullets.push(beam); beam.onEnterFrame = function () { this._x = this._x - 20; if (locked) { this._x = this._x - 100; } }; } i--; } } function enemy2DSpinnerShoot() { i = hold2DSpinner.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 50) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); holdEnemyBullets.push(blue_bullet); angle = hold2DSpinner[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; }; } i--; } } function bossShoot() { i = holdAim.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire7 + 1000) < getTimer()) { timeOfLastEnemyFire7 = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdAim[i]._x, _y:holdAim[i]._y}); holdEnemyBullets.push(blue_bullet); angle = holdAim[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; }; } i--; } } function chopperEnemyShoot() { i = holdEnemyChopper.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 30) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); angle = holdEnemyChopper[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; if (locked) { this._x = this._x - 100; } }; } i--; } } function standardEnemyShoot() { i = standardEnemy.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire + 30) < getTimer()) { timeOfLastEnemyFire = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); holdEnemyBullets.push(blue_bullet); angle = standardEnemy[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; if (locked) { this._x = this._x - 100; } }; } i--; } } function enemySpinnerShoot() { i = holdSpinner.length - 1; while (i >= 0) { if ((timeOfLastEnemyFire2 + 50) < getTimer()) { timeOfLastEnemyFire2 = getTimer(); BulletNum++; blue_bullet = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); holdEnemyBullets.push(blue_bullet); angle = holdSpinner[i]._rotation; blue_bullet.dirx = Math.cos((angle * Math.PI) / 180) * 6; blue_bullet.diry = Math.sin((angle * Math.PI) / 180) * 6; blue_bullet.onEnterFrame = function () { this._x = this._x + this.dirx; this._y = this._y + this.diry; }; } i--; } } function attachDamageFunctions() { takingDamage(); takingDamage2(); takingDamage3(); } function addSmoke() { smoNum++; sm = _root.attachMovie("smoke", "smoke" + smoNum, _root.getNextHighestDepth(), {_x:player._x + 25, _y:player._y - 15}); sm.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 20; this._yscale = this._yscale + 20; if (this._alpha < 0) { this.removeMovieClip(); } }; } function addSmoke2() { smo2Num++; sm2 = _root.attachMovie("smoke", "smoke" + smo2Num, _root.getNextHighestDepth(), {_x:player._x - 10, _y:player._y + 3}); sm2.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 30; this._yscale = this._yscale + 30; if (this._alpha < 0) { this.removeMovieClip(); } }; } function addSmoke3() { smo3Num++; sm3 = _root.attachMovie("smoke", "smoke" + smo3Num, _root.getNextHighestDepth(), {_x:player._x - 5, _y:player._y + 15}); sm3.onEnterFrame = function () { this._x = this._x - smokeSpeed; this._alpha = this._alpha - 5; this._xscale = this._xscale + 60; this._yscale = this._yscale + 60; if (this._alpha < 0) { this.removeMovieClip(); } }; } function takingDamage() { if (damage == 1) { _root.health_bar.gotoAndStop("hitOnce"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke(); smoke_interval = 3; } } } function takingDamage2() { if (damage == 2) { _root.health_bar.gotoAndStop("hitTwice"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke2(); addSmoke(); smoke_interval = 3; } } } function takingDamage3() { if (damage == 3) { _root.health_bar.gotoAndStop("lastHit"); smoke_interval = smoke_interval - 1; if (smoke_interval == 0) { addSmoke3(); addSmoke2(); addSmoke(); smoke_interval = 3; } } } function runSections() { section_one_timer = section_one_timer - 1; if (section_one_timer > 0) { attachEnemyPlanes(); } if (section_one_timer < 0) { section_one_timer = 0; section_two_timer = section_two_timer - 1; if (section_two_timer > 0) { enemy2DSpinnerShoot(); attach2DSpinner(); enemySpinnerShoot(); attachSpinner(); } } if (section_two_timer < 0) { section_two_timer = 0; section_three_timer = section_three_timer - 1; if (section_three_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("missile_enemy", "missile_enemy" + seNum, _root.getNextHighestDepth(), {_x:640, _y:Math.round(Math.random() * 356) + 4}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 20; }; releaseStandardEnemy = 15; } } if (section_three_timer < 0) { section_three_timer = 0; section_four_timer = section_four_timer - 1; if (section_four_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("missile_enemy", "missile_enemy" + seNum, _root.getNextHighestDepth(), {_x:460, _y:400}); standardEnemy.push(StaEn); StaEn._rotation = 200; StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._y = this._y - 20; }; releaseStandardEnemy = 25; } } if (section_four_timer < 0) { section_four_timer = 0; section_five_timer = section_five_timer - 1; if (section_five_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("missile_enemy", "missile_enemy" + seNum, _root.getNextHighestDepth(), {_x:Math.round(Math.random() * 225) + 280, _y:-40}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._y = this._y + 20; }; releaseStandardEnemy = 15; } } if (section_five_timer < 0) { section_five_timer = 0; section_six_timer = section_six_timer - 1; if (section_six_timer > 0) { beamShot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 5) { seNum++; StaEn = _root.attachMovie("blimp", "blimp" + seNum, _root.getNextHighestDepth(), {_x:565, _y:Math.round(Math.random() * 250) + 60}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._x = this._x - 12; }; releaseStandardEnemy = 25; } } if (section_six_timer < 0) { section_six_timer = 0; section_seven_timer = section_seven_timer - 1; if (section_seven_timer > 0) { enemy2DSpinnerShoot(); attach2DSpinner(); enemySpinnerShoot(); attachSpinner(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 5) { seNum++; StaEn = _root.attachMovie("missile_enemy", "missile_enemy" + seNum, _root.getNextHighestDepth(), {_x:565, _y:Math.round(Math.random() * 250) + 60}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._x = this._x - 20; }; releaseStandardEnemy = 15; } } if (section_seven_timer < 0) { section_seven_timer = 0; section_eight_timer = section_eight_timer - 1; if (section_eight_timer > 0) { standardEnemyShoot(); releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_spin", "new_spin" + seNum, _root.getNextHighestDepth(), {_x:640, _y:Math.round(Math.random() * 356) + 4}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x - 20; }; releaseStandardEnemy = 15; } } if (section_eight_timer < 0) { section_eight_timer = 0; section_nine_timer = section_nine_timer - 1; if (section_nine_timer > 0) { releaseStandardEnemy = releaseStandardEnemy - 1; if (releaseStandardEnemy == 0) { seNum++; StaEn = _root.attachMovie("new_spin", "new_spin" + seNum, _root.getNextHighestDepth(), {_x:-40, _y:Math.round(Math.random() * 270) + 30}); standardEnemy.push(StaEn); StaEn.onEnterFrame = function () { this._rotation = this._rotation - 50; this._x = this._x + 7; if (locked) { this._x = this._x - 100; } }; releaseStandardEnemy = 25; } } if (section_nine_timer < 0) { section_nine_timer = 0; section_ten_timer = section_ten_timer - 1; if (section_ten_timer > 0) { hyperdriveRunning(); locked = true; } } if (section_ten_timer < 0) { locked = false; _root.hyper_drive.removeMovieClip(); section_ten_timer = 0; section_eleven_timer = section_eleven_timer - 1; if (section_eleven_timer > 0) { attachEnemyPlanes(); } if (section_eleven_timer < 0) { section_eleven_timer = 0; section_twelve_timer = section_twelve_timer - 1; if (section_twelve_timer > 0) { if ((timeOfLastEnemyFire6 + 50000) < getTimer()) { timeOfLastEnemyFire6 = getTimer(); _root.attachMovie("warning", "warning", _root.getNextHighestDepth(), {_x:90, _y:125}); } if ((timeOfLastEnemyFire + 1000) < getTimer()) { timeOfLastEnemyFire = getTimer(); voice_danger_sound.start(); } } if (section_twelve_timer < 0) { section_twelve_timer = 0; moveAim(); bst._x = 450.8; bst._y = 1.2; bst.sc.text = boss_health; _root.warning.removeMovieClip(); if (enterBoss == 1) { section_twelve_timer = 0; boss = _root.attachMovie("thebitch", "thebitch", _root.getNextHighestDepth(), {_x:660, _y:210}); holdBoss.push(boss); boss.onEnterFrame = function () { if ((timeOfLastEnemyFire3 + 15) < getTimer()) { timeOfLastEnemyFire3 = getTimer(); bossShoot(); enemy2DSpinnerShoot(); attach2DSpinner(); enemySpinnerShoot(); attachSpinner(); } this._x = this._x - 2; if (this._x < 380) { this._x = 380; } }; boss2 = _root.attachMovie("thebitch", "thebitch1", _root.getNextHighestDepth(), {_x:660, _y:90}); holdBoss.push(boss2); boss2.onEnterFrame = function () { this._x = this._x - 2; if (boss_health < 300) { this._x = this._x - 15; } else if (boss_health > 300) { if (this._x < 420) { this._x = 420; } } if (this._x < -190) { this.removeMovieClip(); } }; boss3 = _root.attachMovie("thebitch", "thebitch2", _root.getNextHighestDepth(), {_x:660, _y:340}); holdBoss.push(boss3); boss3.onEnterFrame = function () { this._x = this._x - 2; if (boss_health < 500) { this._x = this._x - 15; } else if (boss_health > 500) { if (this._x < 420) { this._x = 420; } } if (this._x < -190) { this.removeMovieClip(); } }; attachAim(); enterBoss = 0; } } } } } } } } } } } } function show_final_report() { if (boss_dead) { removeAim(); bst._x = 450.8; bst._y = -62.8; if ((timeOfLastEnemyFire5 + 50000) < getTimer()) { timeOfLastEnemyFire5 = getTimer(); mission_completed._x = 90; mission_completed._y = 180; mission_completed.ek.text = enemyKills; mission_completed.ws.text = withSword; setGrade(); } nextLevelCountDown = nextLevelCountDown - 1; if (nextLevelCountDown == 0) { locked = true; stopAllSounds(); mission_completed._x = -0.5; mission_completed._y = -178.5; _root.player.removeMovieClip(); _root.hit_.removeMovieClip(); removePlayerFire(); removePowerUp(); gotoAndStop ("game_over"); } } } function attachSpinner() { releaseSpinner = releaseSpinner - 1; if (releaseSpinner == 0) { spNum++; enemySpinner = _root.attachMovie("missile_enemy", "missile_enemy" + spNum, _root.getNextHighestDepth(), {_x:450, _y:345}); enemySpinner._rotation = 180; holdSpinner.push(enemySpinner); releaseSpinner = 25; } } function attach2DSpinner() { release2DSpinner = release2DSpinner - 1; if (release2DSpinner == 0) { spNum++; enemySpinner = _root.attachMovie("missile_enemy", "missile_enemy" + spNum, _root.getNextHighestDepth(), {_x:450, _y:2}); enemySpinner._rotation = 180; hold2DSpinner.push(enemySpinner); release2DSpinner = 50; } } function attachAim() { bossAim = _root.attachMovie("aim", "aim", _root.getNextHighestDepth(), {_x:770, _y:200}); holdAim.push(bossAim); bossAim._rotation = 220; bossAim.onEnterFrame = function () { this._alpha = 0; this._rotation = this._rotation - 2; }; } function attachEnemyPlanes() { releaseEnemyPlane = releaseEnemyPlane - 1; if (releaseEnemyPlane == 0) { EnemyPlaneNum++; enemyPlane = _root.attachMovie("new_spin", "new_spin" + EnemyPlaneNum, _root.getNextHighestDepth(), {_x:600, _y:Math.round(Math.random() * 364) + 6}); holdEnemyPlane.push(enemyPlane); releaseEnemyPlane = 15; } } function attachEnemyChopper() { releaseEnemyChopper = releaseEnemyChopper - 1; if (releaseEnemyChopper == 0) { EnemyChopperNum++; enemyChopper = _root.attachMovie("nextBadGuy", "nextBadGuy" + EnemyChopperNum, _root.getNextHighestDepth(), {_x:800, _y:Math.round(Math.random() * 293) + 40}); enemyChopper._rotation = 260; holdEnemyChopper.push(enemyChopper); enemyChopper.onEnterFrame = function () { enemyChopper._rotation = enemyChopper._rotation - 2; }; releaseEnemyChopper = 150; } } function moveAim() { i = holdAim.length - 1; while (i >= 0) { holdAim[i]._x = holdAim[i]._x - 3; if (holdAim[i]._x < 280) { holdAim[i]._x = 280; } i--; } } function moveEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { holdEnemyPlane[i]._x = holdEnemyPlane[i]._x - enemyPlaneSpeed; holdEnemyPlane[i]._rotation = holdEnemyPlane[i]._rotation - 5; i--; } } function moveEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { holdEnemyChopper[i]._x = holdEnemyChopper[i]._x - enemyChopperSpeed; i--; } } function moveSpinner() { i = holdSpinner.length - 1; while (i >= 0) { holdSpinner[i]._y = holdSpinner[i]._y - 10; holdSpinner[i]._x = holdSpinner[i]._x - 6; holdSpinner[i]._rotation = holdSpinner[i]._rotation + 33; i--; } } function move2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { hold2DSpinner[i]._y = hold2DSpinner[i]._y + 10; hold2DSpinner[i]._x = hold2DSpinner[i]._x - 6; hold2DSpinner[i]._rotation = hold2DSpinner[i]._rotation - 33; i--; } } function removePlayerFire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); i--; } } function removeRip() { i = holdRip.length - 1; while (i >= 0) { holdRip[i].removeMovieClip(); holdRip.splice(i, 1); i--; } } function removeAim() { i = holdAim.length - 1; while (i >= 0) { holdAim[i].removeMovieClip(); holdAim.splice(i, 1); i--; } } function removeBoss() { i = holdBoss.length - 1; while (i >= 0) { holdBoss[i].removeMovieClip(); holdBoss.splice(i, 1); i--; } } function removeStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); i--; } } function removeSpinner() { i = holdSpinner.length - 1; while (i >= 0) { holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); i--; } } function remove2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); i--; } } function removeFire() { i = playerFire.length - 1; while (i >= 0) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); i--; } } function removeEnemy() { i = holdEnemyPlane.length - 1; while (i >= 0) { holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); i--; } } function removeEnemyBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); i--; } } function removeEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); i--; } } function enemyPlaneCut() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i].hitTest(_root.slashing_strike)) { enemyKills++; withSword++; score = score + 100; debNum++; explodeObject_sound.start(); explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function enemyPlaneShot() { i = holdEnemyPlane.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdEnemyPlane[i].hitTest(playerFire[j])) { enemyKills++; score = score + 50; debNum++; explodeObject_sound.start(); explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } j--; } i--; } } function enemySpinnerCut() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i].hitTest(_root.slashing_strike)) { enemyKills++; withSword++; score = score + 100; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function enemySpinnerShot() { i = holdSpinner.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdSpinner[i].hitTest(playerFire[j])) { enemyKills++; score = score + 50; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } j--; } i--; } } function standardEnemyCut() { i = standardEnemy.length - 1; while (i >= 0) { if (standardEnemy[i].hitTest(_root.slashing_strike)) { enemyKills++; withSword++; score = score + 100; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); explodeObject_sound.start(); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function standardEnemyShot() { i = standardEnemy.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (standardEnemy[i].hitTest(playerFire[j])) { enemyKills++; score = score + 50; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); explodeObject_sound.start(); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } j--; } i--; } } function enemy2DSpinnerShot() { i = hold2DSpinner.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (hold2DSpinner[i].hitTest(playerFire[j])) { enemyKills++; score = score + 50; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } j--; } i--; } } function enemy2DSpinnerCut() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i].hitTest(_root.slashing_strike)) { enemyKills++; withSword++; score = score + 100; ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); explodeObject_sound.start(); playerFire[i].removeMovieClip(); playerFire.splice(i, 1); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function bossCut() { i = holdBoss.length - 1; while (i >= 0) { if (holdBoss[i].hitTest(_root.slashing_strike)) { score = score + 25; boss_health = boss_health - 10; holdBoss[i].gotoAndPlay("flash"); explodeObject_sound.start(); if (boss_health < 0) { enemyKills++; withSword++; boss_health = 0; score = score + 25000; loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdBoss[i]._x, _y:holdBoss[i]._y}); exp2._xscale = 250; exp2._yscale = 250; holdBoss[i].removeMovieClip(); boss_dead = true; } } i--; } } function bossShot() { i = holdBoss.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdBoss[i].hitTest(playerFire[j])) { score = score + 2; boss_health = boss_health - 1; holdBoss[i].gotoAndPlay("flash"); explodeObject_sound.start(); if (boss_health == 0) { enemyKills++; score = score + 10000; loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdBoss[i]._x, _y:holdBoss[i]._y}); exp2._xscale = 250; exp2._yscale = 250; holdBoss[i].removeMovieClip(); boss_dead = true; } playerFire[j].removeMovieClip(); playerFire.splice(j, 1); } j--; } i--; } } function enemyChopperShot() { i = holdEnemyChopper.length - 1; while (i >= 0) { j = playerFire.length - 1; while (j >= 0) { if (holdEnemyChopper[i].hitTest(playerFire[j])) { score = score + 5; chopper_health = chopper_health - 1; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); _root.enemyChopper.gotoAndPlay("flash"); if (chopper_health == 0) { enemyKills++; score = score + 100; chopper_health = 10; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); explodeObject_sound.start(); BulletNum++; blue_bullet = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; BulletNum++; blue_bullet5 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet5); blue_bullet5.onEnterFrame = function () { this._y = this._y - 2; }; BulletNum++; blue_bullet6 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet6); blue_bullet6.onEnterFrame = function () { this._x = this._x + 4; this._y = this._y + 4; }; BulletNum++; blue_bullet7 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet7); blue_bullet7.onEnterFrame = function () { this._x = this._x + 1.5; this._y = this._y - 1.5; }; BulletNum++; blue_bullet8 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet8); blue_bullet8.onEnterFrame = function () { this._x = this._x + 2; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } j--; } i--; } } function enemyChopperCut() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i].hitTest(_root.slashing_strike)) { score = score + 10; chopper_health = chopper_health - 5; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); _root.enemyChopper.gotoAndPlay("flash"); score = score + 200; if (chopper_health == 0) { enemyKills++; withSword++; chopper_health = 10; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; BulletNum++; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); explodeObject_sound.start(); blue_bullet = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; BulletNum++; blue_bullet5 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet5); blue_bullet5.onEnterFrame = function () { this._y = this._y - 2; }; BulletNum++; blue_bullet6 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet6); blue_bullet6.onEnterFrame = function () { this._x = this._x + 4; this._y = this._y + 4; }; BulletNum++; blue_bullet7 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet7); blue_bullet7.onEnterFrame = function () { this._x = this._x + 1.5; this._y = this._y - 1.5; }; BulletNum++; blue_bullet8 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x, _y:holdEnemyChopper[i]._y}); holdEnemyBullets.push(blue_bullet8); blue_bullet8.onEnterFrame = function () { this._x = this._x + 2; }; playerFire[i].removeMovieClip(); playerFire.splice(i, 1); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } i--; } } function playerHitEnemyPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { if (holdEnemyPlane[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; debNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } i--; } } function playerHitEnemyChopper() { i = holdEnemyChopper.length - 1; while (i >= 0) { if (holdEnemyChopper[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; chopper_health = chopper_health - 1; damage++; _root.enemyChopper.gotoAndPlay("flash"); if (chopper_health == 0) { hit_sound.start(); bonus = 1; chopper_health = 10; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdEnemyChopper[i]._x - 100, _y:holdEnemyChopper[i]._y}); explo._xscale = 125; explo._yscale = 125; BulletNum++; whiteFlash = _root.attachMovie("flash", "flash" + flashNum, _root.getNextHighestDepth(), {_x:0, _y:0}); holdEnemyChopper[i].removeMovieClip(); holdEnemyChopper.splice(i, 1); } } i--; } } function playerHit2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { if (hold2DSpinner[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x - 50, _y:hold2DSpinner[i]._y - 50}); hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } i--; } } function playerHitStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { if (standardEnemy[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } i--; } } function playerHitSpinner() { i = holdSpinner.length - 1; while (i >= 0) { if (holdSpinner[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; flashNum++; explo = _root.attachMovie("explosion", "explosion" + debNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x - 50, _y:holdSpinner[i]._y - 50}); holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } i--; } } function playerHitBoss() { i = holdBoss.length - 1; while (i >= 0) { if (holdBoss[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; holdBoss[i].gotoAndPlay("flash"); } i--; } } function playerHitBullet() { i = holdEnemyBullets.length - 1; while (i >= 0) { if (holdEnemyBullets[i].hitTest(_root.hit_)) { hit_sound.start(); bonus = 1; damage++; exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdEnemyBullets[i]._x + 20, _y:holdEnemyBullets[i]._y}); exp2._xscale = 40; exp2._yscale = 40; holdEnemyBullets[i].removeMovieClip(); holdEnemyBullets.splice(i, 1); } i--; } } function ripHitEnemy2DSpinner() { i = hold2DSpinner.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (hold2DSpinner[i].hitTest(holdRip[j])) { enemyKills++; bonus++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:hold2DSpinner[i]._x, _y:hold2DSpinner[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = hold2DSpinner[i]._x - 25; iripple._y = hold2DSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; hold2DSpinner[i].removeMovieClip(); hold2DSpinner.splice(i, 1); } j--; } i--; } } function ripHitEnemySpinner() { i = holdSpinner.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (holdSpinner[i].hitTest(holdRip[j])) { enemyKills++; bonus++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:holdSpinner[i]._x, _y:holdSpinner[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdSpinner[i]._x - 25; iripple._y = holdSpinner[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; holdSpinner[i].removeMovieClip(); holdSpinner.splice(i, 1); } j--; } i--; } } function ripHitStandardEnemy() { i = standardEnemy.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (standardEnemy[i].hitTest(holdRip[j])) { enemyKills++; bonus++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:standardEnemy[i]._x, _y:standardEnemy[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = standardEnemy[i]._x - 25; iripple._y = standardEnemy[i]._y - 25; iripple._xscale = 30; iripple._yscale = 30; standardEnemy[i].removeMovieClip(); standardEnemy.splice(i, 1); } j--; } i--; } } function ripHitPlane() { i = holdEnemyPlane.length - 1; while (i >= 0) { j = holdRip.length - 1; while (j >= 0) { if (holdEnemyPlane[i].hitTest(holdRip[j])) { enemyKills++; bonus++; score = score + (bonus * 100); explodeObject_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); chainNum++; chani_text = _root.attachMovie("chain_bonus", "chain_bonus" + chainNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); ripNum++; iripple = _root.attachMovie("ripple", "ripple" + ripNum, _root.getNextHighestDepth()); holdRip.push(iripple); iripple._x = holdEnemyPlane[i]._x + 10; iripple._y = holdEnemyPlane[i]._y; iripple._xscale = 30; iripple._yscale = 30; BulletNum++; blue_bullet = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet); blue_bullet.onEnterFrame = function () { this._x = this._x - 1.5; }; BulletNum++; blue_bullet2 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet2); blue_bullet2.onEnterFrame = function () { this._x = this._x - 2; this._y = this._y - 2; }; BulletNum++; blue_bullet3 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet3); blue_bullet3.onEnterFrame = function () { this._x = this._x - 1.5; this._y = this._y + 3; }; BulletNum++; blue_bullet4 = _root.attachMovie("enemy_pink_shot", "enemy_pink_shot" + BulletNum, _root.getNextHighestDepth(), {_x:holdEnemyPlane[i]._x, _y:holdEnemyPlane[i]._y}); holdEnemyBullets.push(blue_bullet4); blue_bullet4.onEnterFrame = function () { this._y = this._y + 1.5; }; holdEnemyPlane[i].removeMovieClip(); holdEnemyPlane.splice(i, 1); } j--; } i--; } } function viewMouse() { if (_root._ymouse < 350) { Mouse.hide(); } else { Mouse.show(); } } function gameOver() { if (damage > 3) { fadeTimer = fadeTimer - 1; _root.health_bar.gotoAndStop("none"); if ((onlyDoItOnce + 3000) < getTimer()) { onlyDoItOnce = getTimer(); loudBang_sound.start(); exp2Num++; exp2 = _root.attachMovie("exp_two", "exp_two" + exp2Num, _root.getNextHighestDepth(), {_x:_root.player._x, _y:_root.player._y}); exp2._xscale = 150; exp2._yscale = 150; _root.player.removeMovieClip(); _root.hit_.removeMovieClip(); } if (fadeTimer == 0) { removePlayerFire(); removeRip(); removeAim(); removeBoss(); removeStandardEnemy(); removeSpinner(); remove2DSpinner(); removeFire(); removeEnemy(); removeEnemyBullet(); removeEnemyChopper(); removePowerUp(); locked = true; gotoAndStop ("game_over"); } } } function powerUpGun() { i = holdUp.length - 1; while (i >= 0) { if (holdUp[i].hitTest(_root.hit_)) { if (gunPower < 3) { gunPower++; } else { score = score + 250; } holdUp[i].removeMovieClip(); holdUp.splice(i, 1); } i--; } } function attachPowerUp() { if ((powerUpTimer + 50000) < getTimer()) { powerUpTimer = getTimer(); pUpNum++; pUp = _root.attachMovie("powerUp_", "powerUp_" + pUpNum, _root.getNextHighestDepth(), {_x:1000, _y:Math.round(Math.random() * 230) + 70}); pUp.onEnterFrame = function () { this._x = this._x - 3; }; holdUp.push(pUp); } } function removePowerUp() { i = holdUp.length - 1; while (i >= 0) { holdUp[i].removeMovieClip(); holdUp.splice(i, 1); i--; } } function erasePowerUp() { i = holdUp.length - 1; while (i >= 0) { if (holdUp[i]._x < -125) { holdUp[i].removeMovieClip(); holdUp.splice(i, 1); } i--; } } function setGrade() { if (withSword > 70) { mission_completed.grade.text = "A"; } else if (withSword > 60) { mission_completed.grade.text = "B"; } else if (withSword > 50) { mission_completed.grade.text = "C"; } else { mission_completed.grade.text = "D"; } } function playerHitStart() { level_five_start.onEnterFrame = function () { if (_root.player._x > 190) { _root.player._x = 190; } }; } function StartHitBullet() { i = playerFire.length - 1; while (i >= 0) { if (playerFire[i].hitTest(_root.level_five_start)) { playerFire[i].removeMovieClip(); playerFire.splice(i, 1); } i--; } } _root.attachMovie("hit_", "hit_", _root.getNextHighestDepth(), {_x:25, _y:300}); hit_._alpha = 0; _root.attachMovie("level_five_start", "level_five_start", _root.getNextHighestDepth(), {_x:400, _y:138}); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:25, _y:300}); shooting = false; sword_selected = false; locked = false; boss_dead = false; level = 5; gunPower = 0; enemyKills = 0; withSword = 0; robotSpeed = 7; shotSpeed = 20; enemyPlaneSpeed = 12; enemyChopperSpeed = 6; damage = 0; smokeSpeed = 10; smoke_interval = 3; BulletSpeed = 2; chopper_health = 10; boss_health = 650; bonus = 1; powerUpTimer = 0; onlyDoItOnce = 0; fadeTimer = 50; nextLevelCountDown = 150; enterBoss = 1; smokerelease = 10; sslashhit = 3; is_attacking = -3; timeOfLastFire = 0; timeOfLastEnemyFire = 0; timeOfLastEnemyFire2 = 0; timeOfLastEnemyFire3 = 0; timeOfLastEnemyFire4 = 0; timeOfLastEnemyFire5 = 0; timeOfLastEnemyFire6 = 0; timeOfLastEnemyFire7 = 0; is_shooting = -5; releaseStandardEnemy = 25; releaseSpinner = 50; release2DSpinner = 75; releaseEnemyPlane = 110; releaseEnemyChopper = 50; section_one_timer = 250; section_two_timer = 175; section_three_timer = 175; section_four_timer = 175; section_five_timer = 175; section_six_timer = 250; section_seven_timer = 500; section_eight_timer = 500; section_nine_timer = 250; section_ten_timer = 150; section_eleven_timer = 300; section_twelve_timer = 100; section_thirteen_timer = 500; section_fourteen_timer = 500; section_fiftenn_timer = 500; playerShotNum = 0; EnemyChopperNum = 0; EnemyPlaneNum = 0; seNum = 0; smoNum = 0; smo2Num = 0; smo3Num = 0; exp2Num = 0; BulletNum = 0; debNum = 0; chainNum = 0; flashNum = 0; spNum = 0; ripNum = 0; voice_danger_sound = new Sound(); voice_danger_sound.attachSound("voice_danger"); hyp_sound = new Sound(); hyp_sound.attachSound("hyp"); hit_sound = new Sound(); hit_sound.attachSound("boom"); shot_sound = new Sound(); shot_sound.attachSound("ak47"); explodeObject_sound = new Sound(); explodeObject_sound.attachSound("explodeObject"); loudBang_sound = new Sound(); loudBang_sound.attachSound("loudBang"); var holdUp = new Array(); var holdBoss = new Array(); var holdAim = new Array(); var holdRip = new Array(); var playerFire = new Array(); var standardEnemy = new Array(); var holdEnemyPlane = new Array(); var holdSpinner = new Array(); var hold2DSpinner = new Array(); var holdEnemyChopper = new Array(); var holdEnemyBullets = new Array(); _root.onMouseDown = function () { if (!locked) { if (sword_selected) { _root.player.gotoAndStop("slash"); shooting = true; } else { _root.player.gotoAndStop("shoot"); shooting = true; } } }; _root.onMouseUp = function () { if (!locked) { shooting = false; sslashhit = 3; is_shooting = -5; is_attacking = -3; } }; player.onEnterFrame = function () { StartHitBullet(); playerHitStart(); erasePowerUp(); attachPowerUp(); powerUpGun(); standardEnemyShot(); playerHitStandardEnemy(); eraseStandardEnemy(); eraseFire(); playerBounds(); fire(); playerMovement(); shoot(); viewMouse(); erase2DSpinner(); move2DSpinner(); enemy2DSpinnerShot(); playerHit2DSpinner(); attachHit_(); ripHitPlane(); eraseEnemyPlane(); ripHitStandardEnemy(); eraseBlueBullet(); enemyPlaneShot(); moveEnemyPlane(); attachDamageFunctions(); moveEnemyPlane(); weapon_switch(); eraseEnemyChopper(); moveEnemyChopper(); playerHitEnemyChopper(); playerHitBullet(); playerHitEnemyPlane(); moveSpinner(); playerHitSpinner(); enemyChopperShot(); runSections(); enemySpinnerShot(); enemyChopperCut(); eraseSpinner(); swordSlash(); enemy2DSpinnerCut(); standardEnemyCut(); enemySpinnerCut(); enemyPlaneCut(); ripHitEnemySpinner(); ripHitEnemy2DSpinner(); playerHitBoss(); bossShot(); bossCut(); show_final_report(); }; weapon_select.onEnterFrame = function () { gameOver(); }; stop();
Frame 1372
stop(); Mouse.show(); stopAllSounds(); mochi.MochiScores.showLeaderboard({boardID:"2afe8d2a7a2226f9", score:score});
Symbol 18 MovieClip Frame 12
stop();
Symbol 22 Button
on (release) { gotoAndPlay (2); _root.soundstatus = "off"; }
Symbol 23 MovieClip Frame 11
stop();
Symbol 25 Button
on (release) { gotoAndPlay (1); _root.soundstatus = "on"; }
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stop();
Instance of Symbol 30 MovieClip in Symbol 31 MovieClip [sound_contr] Frame 1
onClipEvent (load) { _root.soundstatus = "on"; _root.mySound = new Sound(_level0); _root.mySound2 = new Sound(_level1); _root.mySound3 = new Sound(_level2); _root.mySound4 = new Sound(_level3); _root.mySound5 = new Sound(_level4); maxvolume = 100; minvolume = 0; } onClipEvent (enterFrame) { if (_root.soundstatus == "on") { step = 5; } if (_root.soundstatus == "off") { step = -5; } maxvolume = maxvolume + step; if (maxvolume > 100) { maxvolume = 100; } if (maxvolume < 0) { maxvolume = 0; } _root.mySound.setVolume(maxvolume); _root.mySound2.setVolume(maxvolume); _root.mySound3.setVolume(maxvolume); _root.mySound4.setVolume(maxvolume); _root.mySound5.setVolume(maxvolume); }
Symbol 747 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices { static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel; function MochiServices () { } static function get id() { return(_id); } static function get clip() { return(_container); } static function get childClip() { return(_clip); } static function getVersion() { return("1.32"); } static function allowDomains(server) { var _local1 = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(_local1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(_local1); } } return(_local1); } static function get isNetworkAvailable() { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); } static function set comChannelName(val) { if (val != undefined) { if (val.length > 3) { _sendChannelName = val + "_fromgame"; _rcvChannelName = val; initComChannels(); } } //return(__get__comChannelName()); } static function get connected() { return(_connected); } static function connect(id, clip, onError) { if ((!_connected) && (_clip == undefined)) { trace("MochiServices Connecting..."); _connecting = true; init(id, clip); } if (onError != undefined) { mochi.MochiServices.onError = onError; } else if (mochi.MochiServices.onError == undefined) { mochi.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } static function disconnect() { if (_connected || (_connecting)) { _connecting = (_connected = false); flush(true); if (_clip != undefined) { _clip.removeMovieClip(); delete _clip; } _listenChannel.close(); _rcvChannel.close(); } } static function init(id, clip) { _id = id; if (clip != undefined) { _container = clip; } else { _container = _root; } loadCommunicator(id, _container); } static function loadCommunicator(id, clip) { var _local2 = "_mochiservices_com_" + id; if (_clip != null) { return(_clip); } if (!isNetworkAvailable) { return(null); } allowDomains(_gatewayURL); _clip = clip.createEmptyMovieClip(_local2, 10336, false); _loader = new MovieClipLoader(); if (_loaderListener.waitInterval != null) { clearInterval(_loaderListener.waitInterval); } _loaderListener = {}; _loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) { trace("MochiServices could not load."); mochi.MochiServices.disconnect(); mochi.MochiServices.onError.apply(null, [errorCode]); }; _loaderListener.onLoadStart = function (target_mc) { this.isLoading = true; }; _loaderListener.startTime = getTimer(); _loaderListener.wait = function () { if ((getTimer() - this.startTime) > 10000) { if (!this.isLoading) { mochi.MochiServices.disconnect(); mochi.MochiServices.onError.apply(null, ["IOError"]); } clearInterval(this.waitInterval); } }; _loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000); _loader.addListener(_loaderListener); _loader.loadClip(_gatewayURL, _clip); _sendChannel = new LocalConnection(); _sendChannel._queue = []; _rcvChannel = new LocalConnection(); _rcvChannel.allowDomain = function (d) { return(true); }; _rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain; _rcvChannel._nextcallbackID = 0; _rcvChannel._callbacks = {}; listen(); return(_clip); } static function onStatus(infoObject) { if (!(infoObject.level === "error")) { } else { _connected = false; _listenChannel.connect(_listenChannelName); } } static function listen() { _listenChannel = new LocalConnection(); _listenChannel.handshake = function (args) { mochi.MochiServices.__set__comChannelName(args.newChannel); }; _listenChannel.allowDomain = function (d) { return(true); }; _listenChannel.allowInsecureDomain = _listenChannel.allowDomain; _listenChannel.connect(_listenChannelName); trace("Waiting for MochiAds services to connect..."); } static function initComChannels() { if (!_connected) { _sendChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()}); _rcvChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; _rcvChannel.onReceive = function (pkg) { var _local5 = pkg.callbackID; var _local4 = this._callbacks[_local5]; if (!_local4) { return(undefined); } var _local2 = _local4.callbackMethod; var _local3 = _local4.callbackObject; if (_local3 && (typeof(_local2) == "string")) { _local2 = _local3[_local2]; } if (_local2 != undefined) { _local2.apply(_local3, pkg.args); } delete this._callbacks[_local5]; }; _rcvChannel.onError = function () { mochi.MochiServices.onError.apply(null, ["IOError"]); }; _rcvChannel.connect(_rcvChannelName); trace("connected!"); _connecting = false; _connected = true; _listenChannel.close(); while (_sendChannel._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift()); } } } static function flush(error) { var _local1; var _local2; while (_sendChannel._queue.length > 0) { _local1 = _sendChannel._queue.shift(); if (_local1.callbackID != null) { _local2 = _rcvChannel._callbacks[_local1.callbackID]; } delete _rcvChannel._callbacks[_local1.callbackID]; if (error) { handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod); } } } static function handleError(args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ["NotConnected"]); } if ((args.options != null) && (args.options.onError != null)) { args.options.onError.apply(null, ["NotConnected"]); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = "NotConnected"; if ((callbackObject != null) && (typeof(callbackMethod) == "string")) { callbackObject[callbackMethod](args); } else if (callbackMethod != null) { callbackMethod.apply(args); } } } static function send(methodName, args, callbackObject, callbackMethod) { if (_connected) { _sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID}); } else { if ((_clip == undefined) || (!_connecting)) { onError.apply(null, ["NotConnected"]); handleError(args, callbackObject, callbackMethod); flush(true); return(undefined); } _sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID}); } _rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod}; _rcvChannel._nextcallbackID++; } static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf"; static var _listenChannelName = "__mochiservices"; static var _connecting = false; static var _connected = false; }
Symbol 748 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores { static var boardID, onClose, onError; function MochiScores () { } static function setBoardID(boardID) { mochi.MochiScores.boardID = boardID; mochi.MochiServices.send("scores_setBoardID", {boardID:boardID}); } static function showLeaderboard(options) { if (options.clip != null) { if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) { mochi.MochiServices.disconnect(); mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip); } delete options.clip; } if (options.name != null) { if (typeof(options.name) == "object") { if (options.name.text != undefined) { options.name = options.name.text; } } } if (options.score != null) { if (typeof(options.score) == "object") { if (options.score.text != undefined) { options.score = options.score.text; } } } if (options.onDisplay != null) { options.onDisplay(); } else { mochi.MochiServices.__get__clip().stop(); } if (options.onClose != null) { onClose = options.onClose; } else { onClose = function () { mochi.MochiServices.__get__clip().play(); }; } if (options.onError != null) { onError = options.onError; } else { onError = onClose; } if (options.boardID == null) { if (boardID != null) { options.boardID = boardID; } } mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose); } static function closeLeaderboard() { mochi.MochiServices.send("scores_closeLeaderboard"); } static function getPlayerInfo(callbackObj, callbackMethod) { mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod); } static function submit(score, name, callbackObj, callbackMethod) { mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod); } static function requestList(callbackObj, callbackMethod) { mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod); } static function scoresArrayToObjects(scores) { var _local5 = {}; var _local1; var _local4; var _local2; var _local6; for (var _local8 in scores) { if (typeof(scores[_local8]) == "object") { if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) { _local5[_local8] = []; _local2 = scores[_local8]; _local4 = 0; while (_local4 < _local2.rows.length) { _local6 = {}; _local1 = 0; while (_local1 < _local2.cols.length) { _local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1]; _local1++; } _local5[_local8].push(_local6); _local4++; } } else { _local5[_local8] = {}; for (var _local7 in scores[_local8]) { _local5[_local8][_local7] = scores[_local8][_local7]; } } } else { _local5[_local8] = scores[_local8]; } } return(_local5); } static function doClose(args) { if (args.error == true) { if (args.errorCode == undefined) { args.errorCode = "IOError"; } onError.apply(null, [args.errorCode]); } else { onClose.apply(); } } }
Symbol 50 MovieClip [big_guy] Frame 1
stop();
Symbol 59 MovieClip [chain_bonus] Frame 19
this.removeMovieClip();
Symbol 73 MovieClip [enemy_chopper] Frame 1
stop();
Symbol 151 MovieClip [explosion] Frame 35
this.removeMovieClip();
Symbol 211 MovieClip [exp_two] Frame 30
this.removeMovieClip();
Symbol 212 MovieClip [flash] Frame 1
loudBang_sound = new Sound(); loudBang_sound.attachSound("loudBang"); timeOfLastPlay = 0; this.onEnterFrame = function () { if ((timeOfLastPlay + 3000) < getTimer()) { timeOfLastPlay = getTimer(); loudBang_sound.start(); } };
Symbol 212 MovieClip [flash] Frame 30
this.removeMovieClip();
Symbol 215 MovieClip [gun_flash] Frame 2
this.removeMovieClip();
Symbol 227 MovieClip [level_five_start] Frame 85
this.removeMovieClip();
Symbol 230 MovieClip [level_four_start] Frame 85
this.removeMovieClip();
Symbol 233 MovieClip [level_one_start] Frame 85
this.removeMovieClip();
Symbol 236 MovieClip [level_three_start] Frame 85
this.removeMovieClip();
Symbol 239 MovieClip [level_two_start] Frame 85
this.removeMovieClip();
Symbol 246 MovieClip [nb] Frame 1
stop();
Symbol 257 MovieClip [nextBadGuy] Frame 1
stop();
Symbol 270 MovieClip Frame 12
stop();
Symbol 275 MovieClip [nunu] Frame 1
stop();
Symbol 365 MovieClip Frame 6
stop();
Symbol 380 MovieClip Frame 14
stop();
Symbol 395 MovieClip Frame 13
stop();
Symbol 410 MovieClip Frame 13
stop();
Symbol 432 MovieClip Frame 11
stop();
Symbol 476 MovieClip Frame 13
stop();
Symbol 477 MovieClip [player] Frame 1
stop();
Symbol 477 MovieClip [player] Frame 2
stop();
Symbol 477 MovieClip [player] Frame 3
stop();
Symbol 477 MovieClip [player] Frame 4
stop();
Symbol 477 MovieClip [player] Frame 5
stop();
Symbol 477 MovieClip [player] Frame 6
stop();
Symbol 477 MovieClip [player] Frame 7
stop();
Symbol 493 MovieClip [ripple] Frame 15
this.removeMovieClip();
Symbol 495 MovieClip [slash_hit] Frame 3
this.removeMovieClip();
Symbol 634 MovieClip [thebitch] Frame 1
stop();
Symbol 639 Button
on (press) { getURL ("http://www.avgames.co.uk/", "_blank"); }
Symbol 644 Button
on (release) { gotoAndPlay ("level_one_intro"); }
Symbol 651 Button
on (press) { getURL ("http://www.dragongamez.com"); }
Symbol 662 MovieClip Frame 646
gotoAndPlay (1);
Symbol 674 MovieClip [weapon_select] Frame 1
stop();
Symbol 674 MovieClip [weapon_select] Frame 2
stop();
Symbol 688 MovieClip Frame 29
stop();
Symbol 694 MovieClip Frame 1
stop();
Symbol 694 MovieClip Frame 2
stop();
Symbol 694 MovieClip Frame 3
stop();
Symbol 694 MovieClip Frame 4
stop();
Symbol 694 MovieClip Frame 5
stop();
Symbol 705 MovieClip Frame 647
gotoAndPlay (1);
Symbol 741 Button
on (press) { gotoAndPlay ("title"); }
Symbol 744 Button
on (press) { getURL ("http://www.dragongamez.com"); }
Symbol 746 MovieClip Frame 25
stop();

Library Items

Symbol 1 Sound [boom]
Symbol 2 Sound [voice_danger]
Symbol 3 Sound [hyp]
Symbol 4 Sound [explodeObject]
Symbol 5 Sound [ak47]
Symbol 6 Sound [swipe]
Symbol 7 Sound [loudBang]
Symbol 8 BitmapUsed by:9
Symbol 9 GraphicUses:8Used by:10
Symbol 10 MovieClip [bg]Uses:9
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:11Used by:26
Symbol 13 GraphicUsed by:14 212 626 694
Symbol 14 MovieClipUses:13Used by:15 16
Symbol 15 MovieClipUses:14Used by:17
Symbol 16 MovieClipUses:14Used by:17
Symbol 17 MovieClipUses:15 16Used by:18 23
Symbol 18 MovieClipUses:17Used by:26
Symbol 19 FontUsed by:20 24 32 35 223 225 228 231 234 237
Symbol 20 TextUses:19Used by:26
Symbol 21 GraphicUsed by:22 25
Symbol 22 ButtonUses:21Used by:26
Symbol 23 MovieClipUses:17Used by:26
Symbol 24 TextUses:19Used by:26
Symbol 25 ButtonUses:21Used by:26
Symbol 26 MovieClipUses:12 18 20 22 23 24 25Used by:31
Symbol 27 GraphicUsed by:30
Symbol 28 FontUsed by:29
Symbol 29 TextUses:28Used by:30
Symbol 30 MovieClipUses:27 29Used by:31
Symbol 31 MovieClip [sound_contr]Uses:26 30Used by:Timeline
Symbol 32 EditableTextUses:19Used by:Timeline
Symbol 33 FontUsed by:34
Symbol 34 TextUses:33Used by:Timeline
Symbol 35 TextUses:19Used by:Timeline
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:36Used by:Timeline
Symbol 38 GraphicUsed by:Timeline
Symbol 747 MovieClip [__Packages.mochi.MochiServices]
Symbol 748 MovieClip [__Packages.mochi.MochiScores]
Symbol 39 VideoUsed by:40
Symbol 40 MovieClipUses:39 SS2Used by:Timeline
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:41Used by:43
Symbol 43 MovieClip [aim]Uses:42Used by:Timeline
Symbol 44 BitmapUsed by:45
Symbol 45 GraphicUses:44Used by:46
Symbol 46 MovieClip [beam_mc]Uses:45Used by:Timeline
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:49
Symbol 49 MovieClipUses:48Used by:50
Symbol 50 MovieClip [big_guy]Uses:49Used by:Timeline
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:53
Symbol 53 MovieClip [bleeblau]Uses:52Used by:Timeline
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:54Used by:56
Symbol 56 MovieClip [blimp]Uses:55Used by:Timeline
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:57Used by:59
Symbol 59 MovieClip [chain_bonus]Uses:58Used by:Timeline
Symbol 60 BitmapUsed by:61
Symbol 61 GraphicUses:60Used by:72
Symbol 62 BitmapUsed by:63
Symbol 63 GraphicUses:62Used by:72
Symbol 64 BitmapUsed by:65
Symbol 65 GraphicUses:64Used by:72
Symbol 66 BitmapUsed by:67
Symbol 67 GraphicUses:66Used by:72
Symbol 68 BitmapUsed by:69
Symbol 69 GraphicUses:68Used by:72
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:72
Symbol 72 MovieClipUses:61 63 65 67 69 71Used by:73
Symbol 73 MovieClip [enemy_chopper]Uses:72Used by:Timeline
Symbol 74 BitmapUsed by:75 76
Symbol 75 GraphicUses:74Used by:77
Symbol 76 GraphicUses:74Used by:77
Symbol 77 MovieClip [enemy_pink_shot]Uses:75 76Used by:Timeline
Symbol 78 BitmapUsed by:79 80
Symbol 79 GraphicUses:78Used by:81
Symbol 80 GraphicUses:78Used by:81
Symbol 81 MovieClip [enemy_shot]Uses:79 80Used by:Timeline
Symbol 82 BitmapUsed by:83
Symbol 83 GraphicUses:82Used by:150
Symbol 84 BitmapUsed by:85
Symbol 85 GraphicUses:84Used by:150
Symbol 86 BitmapUsed by:87
Symbol 87 GraphicUses:86Used by:150
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:150
Symbol 90 BitmapUsed by:91
Symbol 91 GraphicUses:90Used by:150
Symbol 92 BitmapUsed by:93
Symbol 93 GraphicUses:92Used by:150
Symbol 94 BitmapUsed by:95
Symbol 95 GraphicUses:94Used by:150
Symbol 96 BitmapUsed by:97
Symbol 97 GraphicUses:96Used by:150
Symbol 98 BitmapUsed by:99
Symbol 99 GraphicUses:98Used by:150
Symbol 100 BitmapUsed by:101
Symbol 101 GraphicUses:100Used by:150
Symbol 102 BitmapUsed by:103
Symbol 103 GraphicUses:102Used by:150
Symbol 104 BitmapUsed by:105
Symbol 105 GraphicUses:104Used by:150
Symbol 106 BitmapUsed by:107
Symbol 107 GraphicUses:106Used by:150
Symbol 108 BitmapUsed by:109
Symbol 109 GraphicUses:108Used by:150
Symbol 110 BitmapUsed by:111
Symbol 111 GraphicUses:110Used by:150
Symbol 112 BitmapUsed by:113
Symbol 113 GraphicUses:112Used by:150
Symbol 114 BitmapUsed by:115
Symbol 115 GraphicUses:114Used by:150
Symbol 116 BitmapUsed by:117
Symbol 117 GraphicUses:116Used by:150
Symbol 118 BitmapUsed by:119
Symbol 119 GraphicUses:118Used by:150
Symbol 120 BitmapUsed by:121
Symbol 121 GraphicUses:120Used by:150
Symbol 122 BitmapUsed by:123
Symbol 123 GraphicUses:122Used by:150
Symbol 124 BitmapUsed by:125
Symbol 125 GraphicUses:124Used by:150
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:150
Symbol 128 BitmapUsed by:129
Symbol 129 GraphicUses:128Used by:150
Symbol 130 BitmapUsed by:131
Symbol 131 GraphicUses:130Used by:150
Symbol 132 BitmapUsed by:133
Symbol 133 GraphicUses:132Used by:150
Symbol 134 BitmapUsed by:135
Symbol 135 GraphicUses:134Used by:150
Symbol 136 BitmapUsed by:137
Symbol 137 GraphicUses:136Used by:150
Symbol 138 BitmapUsed by:139
Symbol 139 GraphicUses:138Used by:150
Symbol 140 BitmapUsed by:141
Symbol 141 GraphicUses:140Used by:150
Symbol 142 BitmapUsed by:143
Symbol 143 GraphicUses:142Used by:150
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:150
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:150
Symbol 148 BitmapUsed by:149
Symbol 149 GraphicUses:148Used by:150
Symbol 150 MovieClipUses:83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149Used by:151
Symbol 151 MovieClip [explosion]Uses:150Used by:Timeline
Symbol 152 BitmapUsed by:153
Symbol 153 GraphicUses:152Used by:210
Symbol 154 BitmapUsed by:155
Symbol 155 GraphicUses:154Used by:210
Symbol 156 BitmapUsed by:157
Symbol 157 GraphicUses:156Used by:210
Symbol 158 BitmapUsed by:159
Symbol 159 GraphicUses:158Used by:210
Symbol 160 BitmapUsed by:161
Symbol 161 GraphicUses:160Used by:210
Symbol 162 BitmapUsed by:163
Symbol 163 GraphicUses:162Used by:210
Symbol 164 BitmapUsed by:165
Symbol 165 GraphicUses:164Used by:210
Symbol 166 BitmapUsed by:167
Symbol 167 GraphicUses:166Used by:210
Symbol 168 BitmapUsed by:169
Symbol 169 GraphicUses:168Used by:210
Symbol 170 BitmapUsed by:171
Symbol 171 GraphicUses:170Used by:210
Symbol 172 BitmapUsed by:173
Symbol 173 GraphicUses:172Used by:210
Symbol 174 BitmapUsed by:175
Symbol 175 GraphicUses:174Used by:210
Symbol 176 BitmapUsed by:177
Symbol 177 GraphicUses:176Used by:210
Symbol 178 BitmapUsed by:179
Symbol 179 GraphicUses:178Used by:210
Symbol 180 BitmapUsed by:181
Symbol 181 GraphicUses:180Used by:210
Symbol 182 BitmapUsed by:183
Symbol 183 GraphicUses:182Used by:210
Symbol 184 BitmapUsed by:185
Symbol 185 GraphicUses:184Used by:210
Symbol 186 BitmapUsed by:187
Symbol 187 GraphicUses:186Used by:210
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:210
Symbol 190 BitmapUsed by:191
Symbol 191 GraphicUses:190Used by:210
Symbol 192 BitmapUsed by:193
Symbol 193 GraphicUses:192Used by:210
Symbol 194 BitmapUsed by:195
Symbol 195 GraphicUses:194Used by:210
Symbol 196 BitmapUsed by:197
Symbol 197 GraphicUses:196Used by:210
Symbol 198 BitmapUsed by:199
Symbol 199 GraphicUses:198Used by:210
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:210
Symbol 202 BitmapUsed by:203
Symbol 203 GraphicUses:202Used by:210
Symbol 204 BitmapUsed by:205
Symbol 205 GraphicUses:204Used by:210
Symbol 206 BitmapUsed by:207
Symbol 207 GraphicUses:206Used by:210
Symbol 208 BitmapUsed by:209
Symbol 209 GraphicUses:208Used by:210
Symbol 210 MovieClipUses:153 155 157 159 161 163 165 167 169 171 173 175 177 179 181 183 185 187 189 191 193 195 197 199 201 203 205 207 209Used by:211
Symbol 211 MovieClip [exp_two]Uses:210Used by:Timeline
Symbol 212 MovieClip [flash]Uses:13Used by:Timeline
Symbol 213 BitmapUsed by:214
Symbol 214 GraphicUses:213Used by:215
Symbol 215 MovieClip [gun_flash]Uses:214Used by:Timeline
Symbol 216 GraphicUsed by:217 494 638 639 642 644 651 737 741 744
Symbol 217 MovieClip [hit_]Uses:216Used by:Timeline
Symbol 218 BitmapUsed by:219
Symbol 219 GraphicUses:218Used by:220
Symbol 220 MovieClip [latest_enemy]Uses:219Used by:Timeline
Symbol 221 GraphicUsed by:227 230 233 236 239 697 745  Timeline
Symbol 222 FontUsed by:223 225 228 231 234 237 485 667 668 669 670 671 672 673 675 676 678 680 681 682 683 684 685 686 687 696 707 709 715 717 723 725 731 735 736
Symbol 223 TextUses:222 19Used by:224
Symbol 224 MovieClipUses:223Used by:227
Symbol 225 TextUses:222 19Used by:226
Symbol 226 MovieClipUses:225Used by:227 230 233 236 239
Symbol 227 MovieClip [level_five_start]Uses:221 224 226Used by:Timeline
Symbol 228 TextUses:222 19Used by:229
Symbol 229 MovieClipUses:228Used by:230
Symbol 230 MovieClip [level_four_start]Uses:221 229 226Used by:Timeline
Symbol 231 TextUses:222 19Used by:232
Symbol 232 MovieClipUses:231Used by:233
Symbol 233 MovieClip [level_one_start]Uses:221 232 226Used by:Timeline
Symbol 234 TextUses:222 19Used by:235
Symbol 235 MovieClipUses:234Used by:236
Symbol 236 MovieClip [level_three_start]Uses:221 235 226Used by:Timeline
Symbol 237 TextUses:222 19Used by:238
Symbol 238 MovieClipUses:237Used by:239
Symbol 239 MovieClip [level_two_start]Uses:221 238 226Used by:Timeline
Symbol 240 BitmapUsed by:241
Symbol 241 GraphicUses:240Used by:242
Symbol 242 MovieClip [missile_enemy]Uses:241Used by:Timeline
Symbol 243 BitmapUsed by:244
Symbol 244 GraphicUses:243Used by:245
Symbol 245 MovieClipUses:244Used by:246
Symbol 246 MovieClip [nb]Uses:245Used by:Timeline
Symbol 247 BitmapUsed by:248
Symbol 248 GraphicUses:247Used by:249
Symbol 249 MovieClipUses:248Used by:250
Symbol 250 MovieClip [new_ik_enemy]Uses:249Used by:Timeline
Symbol 251 BitmapUsed by:252
Symbol 252 GraphicUses:251Used by:253
Symbol 253 MovieClip [new_spin]Uses:252Used by:Timeline
Symbol 254 BitmapUsed by:255
Symbol 255 GraphicUses:254Used by:256
Symbol 256 MovieClipUses:255Used by:257
Symbol 257 MovieClip [nextBadGuy]Uses:256Used by:Timeline
Symbol 258 BitmapUsed by:259
Symbol 259 GraphicUses:258Used by:270
Symbol 260 BitmapUsed by:261
Symbol 261 GraphicUses:260Used by:270
Symbol 262 BitmapUsed by:263
Symbol 263 GraphicUses:262Used by:270
Symbol 264 BitmapUsed by:265
Symbol 265 GraphicUses:264Used by:270
Symbol 266 BitmapUsed by:267
Symbol 267 GraphicUses:266Used by:270
Symbol 268 BitmapUsed by:269
Symbol 269 GraphicUses:268Used by:270
Symbol 270 MovieClipUses:259 261 263 265 267 269Used by:271
Symbol 271 MovieClip [nnn_ppp]Uses:270Used by:Timeline
Symbol 272 BitmapUsed by:273
Symbol 273 GraphicUses:272Used by:274
Symbol 274 MovieClipUses:273Used by:275
Symbol 275 MovieClip [nunu]Uses:274Used by:Timeline
Symbol 276 BitmapUsed by:277
Symbol 277 GraphicUses:276Used by:278
Symbol 278 MovieClip [plane_enemy]Uses:277Used by:Timeline
Symbol 279 BitmapUsed by:280
Symbol 280 GraphicUses:279Used by:321
Symbol 281 BitmapUsed by:282
Symbol 282 GraphicUses:281Used by:321
Symbol 283 BitmapUsed by:284
Symbol 284 GraphicUses:283Used by:321
Symbol 285 BitmapUsed by:286
Symbol 286 GraphicUses:285Used by:321
Symbol 287 BitmapUsed by:288
Symbol 288 GraphicUses:287Used by:321
Symbol 289 BitmapUsed by:290
Symbol 290 GraphicUses:289Used by:321
Symbol 291 BitmapUsed by:292
Symbol 292 GraphicUses:291Used by:321
Symbol 293 BitmapUsed by:294
Symbol 294 GraphicUses:293Used by:321
Symbol 295 BitmapUsed by:296
Symbol 296 GraphicUses:295Used by:321
Symbol 297 BitmapUsed by:298
Symbol 298 GraphicUses:297Used by:321
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:321
Symbol 301 BitmapUsed by:302
Symbol 302 GraphicUses:301Used by:321
Symbol 303 BitmapUsed by:304
Symbol 304 GraphicUses:303Used by:321
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:321
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:321
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:309Used by:321
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:321
Symbol 313 BitmapUsed by:314
Symbol 314 GraphicUses:313Used by:321
Symbol 315 BitmapUsed by:316
Symbol 316 GraphicUses:315Used by:321
Symbol 317 BitmapUsed by:318
Symbol 318 GraphicUses:317Used by:321
Symbol 319 BitmapUsed by:320
Symbol 320 GraphicUses:319Used by:321
Symbol 321 MovieClipUses:280 282 284 286 288 290 292 294 296 298 300 302 304 306 308 310 312 314 316 318 320Used by:380 395 410 432 477
Symbol 322 BitmapUsed by:323
Symbol 323 GraphicUses:322Used by:365
Symbol 324 BitmapUsed by:325
Symbol 325 GraphicUses:324Used by:365
Symbol 326 BitmapUsed by:327
Symbol 327 GraphicUses:326Used by:365
Symbol 328 BitmapUsed by:329
Symbol 329 GraphicUses:328Used by:365
Symbol 330 BitmapUsed by:331
Symbol 331 GraphicUses:330Used by:365
Symbol 332 BitmapUsed by:333
Symbol 333 GraphicUses:332Used by:364
Symbol 334 BitmapUsed by:335
Symbol 335 GraphicUses:334Used by:364
Symbol 336 BitmapUsed by:337
Symbol 337 GraphicUses:336Used by:364
Symbol 338 BitmapUsed by:339
Symbol 339 GraphicUses:338Used by:364
Symbol 340 BitmapUsed by:341
Symbol 341 GraphicUses:340Used by:364
Symbol 342 BitmapUsed by:343
Symbol 343 GraphicUses:342Used by:364
Symbol 344 BitmapUsed by:345
Symbol 345 GraphicUses:344Used by:364
Symbol 346 BitmapUsed by:347
Symbol 347 GraphicUses:346Used by:364
Symbol 348 BitmapUsed by:349
Symbol 349 GraphicUses:348Used by:364
Symbol 350 BitmapUsed by:351
Symbol 351 GraphicUses:350Used by:364
Symbol 352 BitmapUsed by:353
Symbol 353 GraphicUses:352Used by:364
Symbol 354 BitmapUsed by:355
Symbol 355 GraphicUses:354Used by:364
Symbol 356 BitmapUsed by:357
Symbol 357 GraphicUses:356Used by:364
Symbol 358 BitmapUsed by:359
Symbol 359 GraphicUses:358Used by:364
Symbol 360 BitmapUsed by:361
Symbol 361 GraphicUses:360Used by:364
Symbol 362 BitmapUsed by:363
Symbol 363 GraphicUses:362Used by:364
Symbol 364 MovieClipUses:333 335 337 339 341 343 345 347 349 351 353 355 357 359 361 363Used by:365
Symbol 365 MovieClipUses:323 325 327 329 331 364Used by:477
Symbol 366 BitmapUsed by:367
Symbol 367 GraphicUses:366Used by:380
Symbol 368 BitmapUsed by:369
Symbol 369 GraphicUses:368Used by:380
Symbol 370 BitmapUsed by:371
Symbol 371 GraphicUses:370Used by:380
Symbol 372 BitmapUsed by:373
Symbol 373 GraphicUses:372Used by:380
Symbol 374 BitmapUsed by:375
Symbol 375 GraphicUses:374Used by:380
Symbol 376 BitmapUsed by:377
Symbol 377 GraphicUses:376Used by:380
Symbol 378 BitmapUsed by:379
Symbol 379 GraphicUses:378Used by:380
Symbol 380 MovieClipUses:367 369 371 373 375 377 379 321Used by:477
Symbol 381 BitmapUsed by:382
Symbol 382 GraphicUses:381Used by:395
Symbol 383 BitmapUsed by:384
Symbol 384 GraphicUses:383Used by:395
Symbol 385 BitmapUsed by:386
Symbol 386 GraphicUses:385Used by:395
Symbol 387 BitmapUsed by:388
Symbol 388 GraphicUses:387Used by:395
Symbol 389 BitmapUsed by:390
Symbol 390 GraphicUses:389Used by:395
Symbol 391 BitmapUsed by:392
Symbol 392 GraphicUses:391Used by:395
Symbol 393 BitmapUsed by:394
Symbol 394 GraphicUses:393Used by:395
Symbol 395 MovieClipUses:382 384 386 388 390 392 394 321Used by:477
Symbol 396 BitmapUsed by:397
Symbol 397 GraphicUses:396Used by:410
Symbol 398 BitmapUsed by:399
Symbol 399 GraphicUses:398Used by:410
Symbol 400 BitmapUsed by:401
Symbol 401 GraphicUses:400Used by:410
Symbol 402 BitmapUsed by:403
Symbol 403 GraphicUses:402Used by:410
Symbol 404 BitmapUsed by:405
Symbol 405 GraphicUses:404Used by:410
Symbol 406 BitmapUsed by:407
Symbol 407 GraphicUses:406Used by:410
Symbol 408 BitmapUsed by:409
Symbol 409 GraphicUses:408Used by:410
Symbol 410 MovieClipUses:397 399 401 403 405 407 409 321Used by:477
Symbol 411 BitmapUsed by:412
Symbol 412 GraphicUses:411Used by:431
Symbol 413 BitmapUsed by:414
Symbol 414 GraphicUses:413Used by:431
Symbol 415 BitmapUsed by:416
Symbol 416 GraphicUses:415Used by:431
Symbol 417 BitmapUsed by:418
Symbol 418 GraphicUses:417Used by:431
Symbol 419 BitmapUsed by:420
Symbol 420 GraphicUses:419Used by:431
Symbol 421 BitmapUsed by:422
Symbol 422 GraphicUses:421Used by:431
Symbol 423 BitmapUsed by:424
Symbol 424 GraphicUses:423Used by:431
Symbol 425 BitmapUsed by:426
Symbol 426 GraphicUses:425Used by:431
Symbol 427 BitmapUsed by:428
Symbol 428 GraphicUses:427Used by:431
Symbol 429 BitmapUsed by:430
Symbol 430 GraphicUses:429Used by:431
Symbol 431 MovieClipUses:412 414 416 418 420 422 424 426 428 430Used by:432
Symbol 432 MovieClipUses:431 321Used by:477
Symbol 433 BitmapUsed by:434
Symbol 434 GraphicUses:433Used by:476
Symbol 435 BitmapUsed by:436
Symbol 436 GraphicUses:435Used by:476
Symbol 437 BitmapUsed by:438
Symbol 438 GraphicUses:437Used by:476
Symbol 439 BitmapUsed by:440
Symbol 440 GraphicUses:439Used by:476
Symbol 441 BitmapUsed by:442
Symbol 442 GraphicUses:441Used by:476
Symbol 443 BitmapUsed by:444
Symbol 444 GraphicUses:443Used by:476
Symbol 445 BitmapUsed by:446
Symbol 446 GraphicUses:445Used by:476
Symbol 447 BitmapUsed by:448
Symbol 448 GraphicUses:447Used by:476
Symbol 449 BitmapUsed by:450
Symbol 450 GraphicUses:449Used by:476
Symbol 451 BitmapUsed by:452
Symbol 452 GraphicUses:451Used by:476
Symbol 453 BitmapUsed by:454
Symbol 454 GraphicUses:453Used by:476
Symbol 455 BitmapUsed by:456
Symbol 456 GraphicUses:455Used by:476
Symbol 457 BitmapUsed by:458
Symbol 458 GraphicUses:457Used by:475
Symbol 459 BitmapUsed by:460
Symbol 460 GraphicUses:459Used by:475
Symbol 461 BitmapUsed by:462
Symbol 462 GraphicUses:461Used by:475
Symbol 463 BitmapUsed by:464
Symbol 464 GraphicUses:463Used by:475
Symbol 465 BitmapUsed by:466
Symbol 466 GraphicUses:465Used by:475
Symbol 467 BitmapUsed by:468
Symbol 468 GraphicUses:467Used by:475
Symbol 469 BitmapUsed by:470
Symbol 470 GraphicUses:469Used by:475
Symbol 471 BitmapUsed by:472
Symbol 472 GraphicUses:471Used by:475
Symbol 473 BitmapUsed by:474
Symbol 474 GraphicUses:473Used by:475
Symbol 475 MovieClipUses:458 460 462 464 466 468 470 472 474Used by:476
Symbol 476 MovieClipUses:434 436 438 440 442 444 446 448 450 452 454 456 475Used by:477
Symbol 477 MovieClip [player]Uses:321 365 380 395 410 432 476Used by:Timeline
Symbol 478 BitmapUsed by:479
Symbol 479 GraphicUses:478Used by:484
Symbol 480 BitmapUsed by:481
Symbol 481 GraphicUses:480Used by:484
Symbol 482 BitmapUsed by:483
Symbol 483 GraphicUses:482Used by:484
Symbol 484 MovieClip [player_shot]Uses:479 481 483Used by:Timeline
Symbol 485 TextUses:222Used by:486
Symbol 486 MovieClip [powerUp_]Uses:485Used by:Timeline
Symbol 487 GraphicUsed by:488
Symbol 488 MovieClipUses:487Used by:493
Symbol 489 GraphicUsed by:490
Symbol 490 MovieClipUses:489Used by:493
Symbol 491 GraphicUsed by:492
Symbol 492 MovieClipUses:491Used by:493
Symbol 493 MovieClip [ripple]Uses:488 490 492Used by:Timeline
Symbol 494 MovieClipUses:216Used by:495
Symbol 495 MovieClip [slash_hit]Uses:494Used by:Timeline
Symbol 496 BitmapUsed by:497
Symbol 497 GraphicUses:496Used by:618
Symbol 498 BitmapUsed by:499
Symbol 499 GraphicUses:498Used by:618
Symbol 500 BitmapUsed by:501
Symbol 501 GraphicUses:500Used by:618
Symbol 502 BitmapUsed by:503
Symbol 503 GraphicUses:502Used by:618
Symbol 504 BitmapUsed by:505
Symbol 505 GraphicUses:504Used by:618
Symbol 506 BitmapUsed by:507
Symbol 507 GraphicUses:506Used by:618
Symbol 508 BitmapUsed by:509
Symbol 509 GraphicUses:508Used by:618
Symbol 510 BitmapUsed by:511
Symbol 511 GraphicUses:510Used by:618
Symbol 512 BitmapUsed by:513
Symbol 513 GraphicUses:512Used by:618
Symbol 514 BitmapUsed by:515
Symbol 515 GraphicUses:514Used by:618
Symbol 516 BitmapUsed by:517
Symbol 517 GraphicUses:516Used by:618
Symbol 518 BitmapUsed by:519
Symbol 519 GraphicUses:518Used by:618
Symbol 520 BitmapUsed by:521
Symbol 521 GraphicUses:520Used by:618
Symbol 522 BitmapUsed by:523
Symbol 523 GraphicUses:522Used by:618
Symbol 524 BitmapUsed by:525
Symbol 525 GraphicUses:524Used by:618
Symbol 526 BitmapUsed by:527
Symbol 527 GraphicUses:526Used by:618
Symbol 528 BitmapUsed by:529
Symbol 529 GraphicUses:528Used by:618
Symbol 530 BitmapUsed by:531
Symbol 531 GraphicUses:530Used by:618
Symbol 532 BitmapUsed by:533
Symbol 533 GraphicUses:532Used by:618
Symbol 534 BitmapUsed by:535
Symbol 535 GraphicUses:534Used by:618
Symbol 536 BitmapUsed by:537
Symbol 537 GraphicUses:536Used by:618
Symbol 538 BitmapUsed by:539
Symbol 539 GraphicUses:538Used by:618
Symbol 540 BitmapUsed by:541
Symbol 541 GraphicUses:540Used by:618
Symbol 542 BitmapUsed by:543
Symbol 543 GraphicUses:542Used by:618
Symbol 544 BitmapUsed by:545
Symbol 545 GraphicUses:544Used by:618
Symbol 546 BitmapUsed by:547
Symbol 547 GraphicUses:546Used by:618
Symbol 548 BitmapUsed by:549
Symbol 549 GraphicUses:548Used by:618
Symbol 550 BitmapUsed by:551
Symbol 551 GraphicUses:550Used by:618
Symbol 552 BitmapUsed by:553
Symbol 553 GraphicUses:552Used by:618
Symbol 554 BitmapUsed by:555
Symbol 555 GraphicUses:554Used by:618
Symbol 556 BitmapUsed by:557
Symbol 557 GraphicUses:556Used by:618
Symbol 558 BitmapUsed by:559
Symbol 559 GraphicUses:558Used by:618
Symbol 560 BitmapUsed by:561
Symbol 561 GraphicUses:560Used by:618
Symbol 562 BitmapUsed by:563
Symbol 563 GraphicUses:562Used by:618
Symbol 564 BitmapUsed by:565
Symbol 565 GraphicUses:564Used by:618
Symbol 566 BitmapUsed by:567
Symbol 567 GraphicUses:566Used by:618
Symbol 568 BitmapUsed by:569
Symbol 569 GraphicUses:568Used by:618
Symbol 570 BitmapUsed by:571
Symbol 571 GraphicUses:570Used by:618
Symbol 572 BitmapUsed by:573
Symbol 573 GraphicUses:572Used by:618
Symbol 574 BitmapUsed by:575
Symbol 575 GraphicUses:574Used by:618
Symbol 576 BitmapUsed by:577
Symbol 577 GraphicUses:576Used by:618
Symbol 578 BitmapUsed by:579
Symbol 579 GraphicUses:578Used by:618
Symbol 580 BitmapUsed by:581
Symbol 581 GraphicUses:580Used by:618
Symbol 582 BitmapUsed by:583
Symbol 583 GraphicUses:582Used by:618
Symbol 584 BitmapUsed by:585
Symbol 585 GraphicUses:584Used by:618
Symbol 586 BitmapUsed by:587
Symbol 587 GraphicUses:586Used by:618
Symbol 588 BitmapUsed by:589
Symbol 589 GraphicUses:588Used by:618
Symbol 590 BitmapUsed by:591
Symbol 591 GraphicUses:590Used by:618
Symbol 592 BitmapUsed by:593
Symbol 593 GraphicUses:592Used by:618
Symbol 594 BitmapUsed by:595
Symbol 595 GraphicUses:594Used by:618
Symbol 596 BitmapUsed by:597
Symbol 597 GraphicUses:596Used by:618
Symbol 598 BitmapUsed by:599
Symbol 599 GraphicUses:598Used by:618
Symbol 600 BitmapUsed by:601
Symbol 601 GraphicUses:600Used by:618
Symbol 602 BitmapUsed by:603
Symbol 603 GraphicUses:602Used by:618
Symbol 604 BitmapUsed by:605
Symbol 605 GraphicUses:604Used by:618
Symbol 606 BitmapUsed by:607
Symbol 607 GraphicUses:606Used by:618
Symbol 608 BitmapUsed by:609
Symbol 609 GraphicUses:608Used by:618
Symbol 610 BitmapUsed by:611
Symbol 611 GraphicUses:610Used by:618
Symbol 612 BitmapUsed by:613
Symbol 613 GraphicUses:612Used by:618
Symbol 614 BitmapUsed by:615
Symbol 615 GraphicUses:614Used by:618
Symbol 616 BitmapUsed by:617
Symbol 617 GraphicUses:616Used by:618
Symbol 618 MovieClipUses:497 499 501 503 505 507 509 511 513 515 517 519 521 523 525 527 529 531 533 535 537 539 541 543 545 547 549 551 553 555 557 559 561 563 565 567 569 571 573 575 577 579 581 583 585 587 589 591 593 595 597 599 601 603 605 607 609 611 613 615 617Used by:619
Symbol 619 MovieClip [small_planes]Uses:618Used by:Timeline
Symbol 620 BitmapUsed by:621
Symbol 621 GraphicUses:620Used by:622
Symbol 622 MovieClip [smoke]Uses:621Used by:Timeline
Symbol 623 BitmapUsed by:624
Symbol 624 GraphicUses:623Used by:625
Symbol 625 MovieClip [spinner_mc]Uses:624Used by:Timeline
Symbol 626 MovieClip [streaks]Uses:13Used by:Timeline
Symbol 627 BitmapUsed by:628
Symbol 628 GraphicUses:627Used by:629
Symbol 629 MovieClipUses:628Used by:630
Symbol 630 MovieClip [streamer]Uses:629Used by:Timeline
Symbol 631 BitmapUsed by:632
Symbol 632 GraphicUses:631Used by:633 634
Symbol 633 MovieClipUses:632Used by:634
Symbol 634 MovieClip [thebitch]Uses:632 633Used by:Timeline
Symbol 635 BitmapUsed by:636
Symbol 636 GraphicUses:635Used by:637
Symbol 637 MovieClip [warning]Uses:636Used by:Timeline
Symbol 638 MovieClipUses:216Used by:639
Symbol 639 ButtonUses:638 216Used by:Timeline
Symbol 640 BitmapUsed by:641
Symbol 641 GraphicUses:640Used by:Timeline
Symbol 642 MovieClipUses:216Used by:644 651
Symbol 643 GraphicUsed by:644 651
Symbol 644 ButtonUses:642 643 216Used by:Timeline
Symbol 645 GraphicUsed by:646 652
Symbol 646 MovieClipUses:645Used by:650
Symbol 647 FontUsed by:648 649 653 655 657
Symbol 648 TextUses:647Used by:650
Symbol 649 TextUses:647Used by:650
Symbol 650 MovieClipUses:646 648 649Used by:Timeline
Symbol 651 ButtonUses:642 643 216Used by:Timeline
Symbol 652 MovieClipUses:645Used by:654 656 658
Symbol 653 TextUses:647Used by:654
Symbol 654 MovieClipUses:652 653Used by:Timeline
Symbol 655 TextUses:647Used by:656
Symbol 656 MovieClipUses:652 655Used by:Timeline
Symbol 657 TextUses:647Used by:658
Symbol 658 MovieClipUses:652 657Used by:Timeline
Symbol 659 VideoUsed by:Timeline
Symbol 660 BitmapUsed by:661
Symbol 661 GraphicUses:660Used by:662
Symbol 662 MovieClipUses:661Used by:666
Symbol 663 BitmapUsed by:664
Symbol 664 GraphicUses:663Used by:665
Symbol 665 MovieClipUses:664Used by:666
Symbol 666 MovieClipUses:662 665Used by:Timeline
Symbol 667 EditableTextUses:222Used by:Timeline
Symbol 668 TextUses:222Used by:Timeline
Symbol 669 TextUses:222Used by:674
Symbol 670 TextUses:222Used by:674
Symbol 671 TextUses:222Used by:674
Symbol 672 TextUses:222Used by:674
Symbol 673 TextUses:222Used by:674
Symbol 674 MovieClip [weapon_select]Uses:669 670 671 672 673Used by:Timeline
Symbol 675 TextUses:222Used by:677
Symbol 676 EditableTextUses:222Used by:677
Symbol 677 MovieClipUses:675 676Used by:Timeline
Symbol 678 TextUses:222Used by:679
Symbol 679 MovieClipUses:678Used by:688
Symbol 680 TextUses:222Used by:688
Symbol 681 EditableTextUses:222Used by:688
Symbol 682 TextUses:222Used by:688
Symbol 683 EditableTextUses:222Used by:688
Symbol 684 TextUses:222Used by:688
Symbol 685 EditableTextUses:222Used by:688
Symbol 686 EditableTextUses:222Used by:688
Symbol 687 EditableTextUses:222Used by:688
Symbol 688 MovieClipUses:679 680 681 682 683 684 685 686 687Used by:Timeline
Symbol 689 GraphicUsed by:694
Symbol 690 GraphicUsed by:694
Symbol 691 GraphicUsed by:694
Symbol 692 GraphicUsed by:694
Symbol 693 GraphicUsed by:694
Symbol 694 MovieClipUses:689 690 691 13 692 693Used by:Timeline
Symbol 695 SoundUsed by:Timeline
Symbol 696 EditableTextUses:222Used by:Timeline
Symbol 697 MovieClipUses:221Used by:Timeline
Symbol 698 VideoUsed by:699
Symbol 699 MovieClipUses:698 SS3Used by:Timeline
Symbol 700 BitmapUsed by:701
Symbol 701 GraphicUses:700Used by:702
Symbol 702 MovieClipUses:701Used by:706
Symbol 703 BitmapUsed by:704
Symbol 704 GraphicUses:703Used by:705
Symbol 705 MovieClipUses:704Used by:706
Symbol 706 MovieClipUses:702 705Used by:Timeline
Symbol 707 EditableTextUses:222Used by:Timeline
Symbol 708 SoundUsed by:Timeline
Symbol 709 EditableTextUses:222Used by:Timeline
Symbol 710 VideoUsed by:711
Symbol 711 MovieClipUses:710 SS4Used by:Timeline
Symbol 712 BitmapUsed by:713
Symbol 713 GraphicUses:712Used by:714
Symbol 714 MovieClipUses:713Used by:Timeline
Symbol 715 EditableTextUses:222Used by:Timeline
Symbol 716 SoundUsed by:Timeline
Symbol 717 EditableTextUses:222Used by:Timeline
Symbol 718 VideoUsed by:719
Symbol 719 MovieClipUses:718 SS5Used by:Timeline
Symbol 720 BitmapUsed by:721
Symbol 721 GraphicUses:720Used by:722
Symbol 722 MovieClipUses:721Used by:Timeline
Symbol 723 EditableTextUses:222Used by:Timeline
Symbol 724 SoundUsed by:Timeline
Symbol 725 EditableTextUses:222Used by:Timeline
Symbol 726 VideoUsed by:727
Symbol 727 MovieClipUses:726 SS6Used by:Timeline
Symbol 728 BitmapUsed by:729
Symbol 729 GraphicUses:728Used by:730
Symbol 730 MovieClipUses:729Used by:Timeline
Symbol 731 EditableTextUses:222Used by:Timeline
Symbol 732 SoundUsed by:Timeline
Symbol 733 BitmapUsed by:734
Symbol 734 GraphicUses:733Used by:Timeline
Symbol 735 EditableTextUses:222Used by:Timeline
Symbol 736 TextUses:222Used by:Timeline
Symbol 737 MovieClipUses:216Used by:741 744
Symbol 738 FontUsed by:739 740 742 743
Symbol 739 TextUses:738Used by:741
Symbol 740 TextUses:738Used by:741
Symbol 741 ButtonUses:737 739 740 216Used by:Timeline
Symbol 742 TextUses:738Used by:744
Symbol 743 TextUses:738Used by:744
Symbol 744 ButtonUses:737 742 743 216Used by:Timeline
Symbol 745 MovieClipUses:221Used by:746
Symbol 746 MovieClipUses:745Used by:Timeline
Streaming Sound 1Used by:Timeline
Streaming Sound 2Used by:Symbol 40 MovieClip
Streaming Sound 3Used by:Symbol 699 MovieClip
Streaming Sound 4Used by:Symbol 711 MovieClip
Streaming Sound 5Used by:Symbol 719 MovieClip
Streaming Sound 6Used by:Symbol 727 MovieClip

Instance Names

"loadBar"Frame 1Symbol 37 MovieClip
"skipOne"Frame 512Symbol 650 MovieClip
"skipTwo"Frame 512Symbol 654 MovieClip
"skipThree"Frame 512Symbol 656 MovieClip
"skipFour"Frame 512Symbol 658 MovieClip
"score"Frame 689Symbol 667 EditableText
"weapon_select"Frame 689Symbol 674 MovieClip [weapon_select]
"bst"Frame 689Symbol 677 MovieClip
"mission_completed"Frame 689Symbol 688 MovieClip
"health_bar"Frame 689Symbol 694 MovieClip
"score"Frame 690Symbol 696 EditableText
"score"Frame 843Symbol 707 EditableText
"weapon_select"Frame 843Symbol 674 MovieClip [weapon_select]
"bst"Frame 843Symbol 677 MovieClip
"mission_completed"Frame 843Symbol 688 MovieClip
"health_bar"Frame 843Symbol 694 MovieClip
"score"Frame 844Symbol 709 EditableText
"score"Frame 1020Symbol 715 EditableText
"weapon_select"Frame 1020Symbol 674 MovieClip [weapon_select]
"bst"Frame 1020Symbol 677 MovieClip
"mission_completed"Frame 1020Symbol 688 MovieClip
"health_bar"Frame 1020Symbol 694 MovieClip
"score"Frame 1021Symbol 717 EditableText
"score"Frame 1196Symbol 723 EditableText
"weapon_select"Frame 1196Symbol 674 MovieClip [weapon_select]
"bst"Frame 1196Symbol 677 MovieClip
"mission_completed"Frame 1196Symbol 688 MovieClip
"health_bar"Frame 1196Symbol 694 MovieClip
"score"Frame 1197Symbol 725 EditableText
"score"Frame 1371Symbol 731 EditableText
"weapon_select"Frame 1371Symbol 674 MovieClip [weapon_select]
"bst"Frame 1371Symbol 677 MovieClip
"mission_completed"Frame 1371Symbol 688 MovieClip
"health_bar"Frame 1371Symbol 694 MovieClip
"score"Frame 1372Symbol 735 EditableText
"shooting"Symbol 477 MovieClip [player] Frame 2Symbol 365 MovieClip
"sc"Symbol 677 MovieClip Frame 1Symbol 676 EditableText
"ek"Symbol 688 MovieClip Frame 9Symbol 681 EditableText
"ws"Symbol 688 MovieClip Frame 19Symbol 683 EditableText
"grade"Symbol 688 MovieClip Frame 29Symbol 685 EditableText
"ws"Symbol 688 MovieClip Frame 29Symbol 686 EditableText
"ek"Symbol 688 MovieClip Frame 29Symbol 687 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "boom"
ExportAssets (56)Timeline Frame 1Symbol 2 as "voice_danger"
ExportAssets (56)Timeline Frame 1Symbol 3 as "hyp"
ExportAssets (56)Timeline Frame 1Symbol 4 as "explodeObject"
ExportAssets (56)Timeline Frame 1Symbol 5 as "ak47"
ExportAssets (56)Timeline Frame 1Symbol 6 as "swipe"
ExportAssets (56)Timeline Frame 1Symbol 7 as "loudBang"
ExportAssets (56)Timeline Frame 1Symbol 10 as "bg"
ExportAssets (56)Timeline Frame 1Symbol 31 as "sound_contr"
ExportAssets (56)Timeline Frame 1Symbol 747 as "__Packages.mochi.MochiServices"
ExportAssets (56)Timeline Frame 1Symbol 748 as "__Packages.mochi.MochiScores"
ExportAssets (56)Timeline Frame 3Symbol 43 as "aim"
ExportAssets (56)Timeline Frame 3Symbol 46 as "beam_mc"
ExportAssets (56)Timeline Frame 3Symbol 50 as "big_guy"
ExportAssets (56)Timeline Frame 3Symbol 53 as "bleeblau"
ExportAssets (56)Timeline Frame 3Symbol 56 as "blimp"
ExportAssets (56)Timeline Frame 3Symbol 59 as "chain_bonus"
ExportAssets (56)Timeline Frame 3Symbol 73 as "enemy_chopper"
ExportAssets (56)Timeline Frame 3Symbol 77 as "enemy_pink_shot"
ExportAssets (56)Timeline Frame 3Symbol 81 as "enemy_shot"
ExportAssets (56)Timeline Frame 3Symbol 151 as "explosion"
ExportAssets (56)Timeline Frame 3Symbol 211 as "exp_two"
ExportAssets (56)Timeline Frame 3Symbol 212 as "flash"
ExportAssets (56)Timeline Frame 3Symbol 215 as "gun_flash"
ExportAssets (56)Timeline Frame 3Symbol 217 as "hit_"
ExportAssets (56)Timeline Frame 3Symbol 220 as "latest_enemy"
ExportAssets (56)Timeline Frame 3Symbol 227 as "level_five_start"
ExportAssets (56)Timeline Frame 3Symbol 230 as "level_four_start"
ExportAssets (56)Timeline Frame 3Symbol 233 as "level_one_start"
ExportAssets (56)Timeline Frame 3Symbol 236 as "level_three_start"
ExportAssets (56)Timeline Frame 3Symbol 239 as "level_two_start"
ExportAssets (56)Timeline Frame 3Symbol 242 as "missile_enemy"
ExportAssets (56)Timeline Frame 3Symbol 246 as "nb"
ExportAssets (56)Timeline Frame 3Symbol 250 as "new_ik_enemy"
ExportAssets (56)Timeline Frame 3Symbol 253 as "new_spin"
ExportAssets (56)Timeline Frame 3Symbol 257 as "nextBadGuy"
ExportAssets (56)Timeline Frame 3Symbol 271 as "nnn_ppp"
ExportAssets (56)Timeline Frame 3Symbol 275 as "nunu"
ExportAssets (56)Timeline Frame 3Symbol 278 as "plane_enemy"
ExportAssets (56)Timeline Frame 3Symbol 477 as "player"
ExportAssets (56)Timeline Frame 3Symbol 484 as "player_shot"
ExportAssets (56)Timeline Frame 3Symbol 486 as "powerUp_"
ExportAssets (56)Timeline Frame 3Symbol 493 as "ripple"
ExportAssets (56)Timeline Frame 3Symbol 495 as "slash_hit"
ExportAssets (56)Timeline Frame 3Symbol 619 as "small_planes"
ExportAssets (56)Timeline Frame 3Symbol 622 as "smoke"
ExportAssets (56)Timeline Frame 3Symbol 625 as "spinner_mc"
ExportAssets (56)Timeline Frame 3Symbol 626 as "streaks"
ExportAssets (56)Timeline Frame 3Symbol 630 as "streamer"
ExportAssets (56)Timeline Frame 3Symbol 634 as "thebitch"
ExportAssets (56)Timeline Frame 3Symbol 637 as "warning"
ExportAssets (56)Timeline Frame 689Symbol 674 as "weapon_select"

Labels

"title"Frame 491
"level_one_intro"Frame 513
"level_two_intro"Frame 690
"c2"Frame 716
"level_three_intro"Frame 844
"c3"Frame 870
"level_four_intro"Frame 1021
"c4"Frame 1047
"level_five_intro"Frame 1197
"c5"Frame 1223
"game_over"Frame 1372
"flash"Symbol 50 MovieClip [big_guy] Frame 2
"flash"Symbol 73 MovieClip [enemy_chopper] Frame 2
"flash"Symbol 246 MovieClip [nb] Frame 2
"flash"Symbol 257 MovieClip [nextBadGuy] Frame 2
"flash"Symbol 275 MovieClip [nunu] Frame 2
"idle"Symbol 477 MovieClip [player] Frame 1
"shoot"Symbol 477 MovieClip [player] Frame 2
"up"Symbol 477 MovieClip [player] Frame 3
"down"Symbol 477 MovieClip [player] Frame 4
"back"Symbol 477 MovieClip [player] Frame 5
"slash"Symbol 477 MovieClip [player] Frame 6
"boost"Symbol 477 MovieClip [player] Frame 7
"flash"Symbol 634 MovieClip [thebitch] Frame 2
"gun"Symbol 674 MovieClip [weapon_select] Frame 1
"sword"Symbol 674 MovieClip [weapon_select] Frame 2
"hitOnce"Symbol 694 MovieClip Frame 2
"hitTwice"Symbol 694 MovieClip Frame 3
"lastHit"Symbol 694 MovieClip Frame 4
"none"Symbol 694 MovieClip Frame 5

Dynamic Text Variables

loadTextSymbol 32 EditableText"Loading...."
scoreSymbol 667 EditableText"0"
scoreSymbol 696 EditableText"0"
scoreSymbol 707 EditableText"0"
scoreSymbol 709 EditableText"0"
scoreSymbol 715 EditableText"0"
scoreSymbol 717 EditableText"0"
scoreSymbol 723 EditableText"0"
scoreSymbol 725 EditableText"0"
scoreSymbol 731 EditableText"0"
scoreSymbol 735 EditableText"0"




http://swfchan.com/10/46560/info.shtml
Created: 3/5 -2019 10:54:21 Last modified: 3/5 -2019 10:54:21 Server time: 22/12 -2024 23:11:48