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

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

guardianangel.swf

This is the info page for
Flash #181944

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


Text
Loading....

Just Loading

Please wait

Health

Lives:

<p align="left"><font face="Comic Sans MS" size="12" color="#ffffff" letterSpacing="5.000000" kerning="0"><b>5</b></font></p>

Level One

Bombs

Boss Health

Sound On

Sound Off

Control

To adjust quality press "Q".

Stage Clear

Score:

Score

<p align="right"><font face="Comic Sans MS" size="20" color="#ffffff" letterSpacing="5.000000" kerning="0"><b>0</b></font></p>

Level Two

Level Three

THAT BIG

RED

BUTTON!

Start Game

Music By Miz Kaz

controls:
Arrow Keys = Movement
Z = Shoot
X = Bomb

More Games

High Scores

Main Menu

ActionScript [AS1/AS2]

Frame 1
var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); copyrightNotice.separatorBefore = true; 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(4); } mochi.as2.MochiServices.connect("394d816a0504c2c6");
Frame 2
gotoAndPlay (1);
Frame 3
stopAllSounds();
Frame 4
redblue.onPress = function () { getURL ("http://www.avgames.co.uk", "_blank"); };
Frame 5
logo.onPress = function () { getURL ("http://www.minijuegos.com", "_blank"); };
Frame 6
stopAllSounds(); stop(); _root.attachMovie("sound_contr", "sound_contr", 3, {_x:470, _y:380}); _root.attachMovie("qualityControl", "qualityControl", 4, {_x:5, _y:382}); won = false; score = 0; gun = 0; qset = 0; num = 0; qualityControl.qual.text = "High"; lives = 5; mission = 1; gameOn = false; startG.onRelease = function () { gotoAndStop ("stage1"); }; logoSmall.onPress = function () { getURL ("http://www.minijuegos.com", "_blank"); };
Instance of Symbol 395 MovieClip in Frame 6
on (release) { getURL ("http://www.myspace.com/mizkaz", "_blank"); }
Instance of Symbol 405 MovieClip "logoSmall" in Frame 6
on (release) { getURL ("http://www.minijuegos.com", "_blank"); }
Frame 7
stop(); _root.gotoAndStop("title");
Frame 8
stop(); gun = 0; if (lives > -1) { if (mission == 1) { _root.gotoAndPlay("stage1"); } if (mission == 2) { _root.gotoAndPlay("stage2"); } if (mission == 3) { _root.gotoAndPlay("stage3"); } } if (lives < 0) { _root.gotoAndStop("game_done"); }
Frame 9
function removepowerbell() { i = powerbell.length - 1; while (i >= 0) { powerbell[i].removeMovieClip(); powerbell.splice(i, 1); i--; } } function removebossHealth() { i = bossHealth.length - 1; while (i >= 0) { bossHealth[i].removeMovieClip(); bossHealth.splice(i, 1); i--; } } function removeBoss() { i = bosses.length - 1; while (i >= 0) { bosses[i].removeMovieClip(); bosses.splice(i, 1); i--; } } function removeEnemyBullets() { i = enemyBullet.length - 1; while (i >= 0) { enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); i--; } } function removeBullets() { i = bullets.length - 1; while (i >= 0) { bullets[i].removeMovieClip(); bullets.splice(i, 1); i--; } } function removeenemies() { i = enemies.length - 1; while (i >= 0) { enemies[i].removeMovieClip(); enemies.splice(i, 1); i--; } } function removeenemyHealth() { i = enemyHealth.length - 1; while (i >= 0) { enemyHealth[i].removeMovieClip(); enemyHealth.splice(i, 1); i--; } } function removewaveNum() { i = waveNum.length - 1; while (i >= 0) { waveNum[i].removeMovieClip(); waveNum.splice(i, 1); i--; } } function removespecial() { i = special.length - 1; while (i >= 0) { special[i].removeMovieClip(); special.splice(i, 1); i--; } } function removepowerUp1() { i = powerUp1.length - 1; while (i >= 0) { powerUp1[i].removeMovieClip(); powerUp1.splice(i, 1); i--; } } function playersHealthBar() { healthBar._xscale = playerHealth; if (playerHealth < 50) { healthBar.gotoAndStop("normal"); } else { healthBar.gotoAndStop("max"); } } function BossHealthBar() { i = bosses.length - 1; while (i >= 0) { bossHealthBar._xscale = bossHealth[i]; if (bossHealth[i] < 25) { bossHealthBar.gotoAndStop("normal"); } else { bossHealthBar.gotoAndStop("max"); } i--; } } function death() { if (playerHealth < 1) { playerHealth = 0; if (un == 1) { lives--; un = 0; } removeBullets(); removeenemies(); removeenemyHealth(); removewaveNum(); removespecial(); removepowerUp1(); removeEnemyBullets(); removeBoss(); removebossHealth(); removepowerbell(); gameOn = false; alive = false; player.gotoAndStop("dead"); stopAllSounds(); } } function collectPowerUp() { i = powerUp1.length - 1; while (i >= 0) { powerUp1[i]._rotation = powerUp1[i]._rotation + 10; if (powerUp1[i].hitTest(player)) { collectPup_sound.start(); powerUpOnScreen = false; randomNum++; _root.attachMovie("explosion2", "explosion2" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun++; if (gun > 4) { gun = 4; } powerUp1[i].removeMovieClip(); powerUp1.splice(i, 1); } i--; } } function collectBell() { i = powerbell.length - 1; while (i >= 0) { if (powerbell[i].hitTest(player)) { score = score + 300; collectPup_sound.start(); randomNum++; bellPop = _root.attachMovie("explosion_pup", "explosion_pup" + randomNum, _root.getNextHighestDepth(), {_x:powerbell[i]._x, _y:powerbell[i]._y}); bellPop._xscale = 170; bellPop._yscale = 170; randomNum++; plusTen = _root.attachMovie("plusTen", "plusTen" + randomNum, _root.getNextHighestDepth(), {_x:powerbell[i]._x, _y:powerbell[i]._y}); powerbell[i].removeMovieClip(); powerbell.splice(i, 1); } i--; } } function dropBell() { randomNumber++; bell = _root.attachMovie("bell", "bell" + randomNumber, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); powerbell.push(bell); bell._xscale = 170; bell._yscale = 170; bell.onEnterFrame = function () { endX = _root.player._x; endY = _root.player._y; this._x = this._x + ((endX - this._x) / 150); this._y = this._y + ((endY - this._y) / 150); }; } function dropPowerUp() { randomNumber++; StarShot = _root.attachMovie("pup", "star" + randomNumber, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); powerUp1.push(StarShot); StarShot.onEnterFrame = function () { endX = _root.player._x; endY = _root.player._y; this._x = this._x + ((endX - this._x) / 30); this._y = this._y + ((endY - this._y) / 30); }; } function playerHitByEnemyBullet() { i = enemyBullet.length - 1; while (i >= 0) { if (enemyBullet[i].hitTest(player)) { randomNum++; _root.attachMovie("playerEffect", "playerEffect" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun--; if (gun < 0) { gun = 0; } taking_damage = true; playerHealth = playerHealth - 10; enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); } i--; } } function playerHitByBoss() { i = bosses.length - 1; while (i >= 0) { if (bosses[i].hitTest(player)) { randomNum++; _root.attachMovie("playerEffect", "playerEffect" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun--; if (gun < 0) { gun = 0; } taking_damage = true; playerHealth = playerHealth - 10; player._x = player._x - 10; } i--; } } function playerHit() { i = enemies.length - 1; while (i >= 0) { if (enemies[i].hitTest(player)) { randomNum++; _root.attachMovie("playerEffect", "playerEffect" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun--; if (gun < 0) { gun = 0; } taking_damage = true; playerHealth = playerHealth - 10; tango_sound.start(); shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); explosion._xscale = enemies[i]._xscale; explosion._yscale = enemies[i]._yscale; enemies[i].removeMovieClip(); enemies.splice(i, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } i--; } } function EnemyBulletHitBomb() { i = enemyBullet.length - 1; while (i >= 0) { if (enemyBullet[i].hitTest(deathBomb)) { enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); } i--; } } function enemyHitBomb() { i = enemies.length - 1; while (i >= 0) { if (enemies[i].hitTest(deathBomb)) { enemies[i].gotoAndPlay("hit"); enemyHealth[i] = enemyHealth[i] - 10; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (enemyHealth[i] < 1) { score = score + 10; tango_sound.start(); if (!powerUpOnScreen) { dir = ["drop", "dropBell", "dropBell2", "dropBell3", "null4", "null5", "null6", "null7", "null8", "null9", "null10"]; randNum = random(10); setDir = dir[randNum]; switch (setDir) { case "drop" : if (gun < 4) { dropPowerUp(); powerUpOnScreen = true; } break; case "dropBell" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell2" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell3" : if (enemies[i]._x < 400) { dropBell(); } break; case "null4" : break; case "null5" : break; case "null6" : break; case "null7" : break; case "null8" : break; case "null9" : break; case "null10" : } } shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); explosion._xscale = enemies[i]._xscale; explosion._yscale = enemies[i]._yscale; enemies[i].removeMovieClip(); enemies.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } } i--; } } function bossBombed() { i = bosses.length - 1; while (i >= 0) { if (bosses[i].hitTest(deathBomb)) { bosses[i].gotoAndPlay("hit"); bossHealth[i] = bossHealth[i] - 1; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (bossHealth[i] < 1) { boom_sound.start(); shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); explosion._xscale = 350; explosion._yscale = 350; bosses[i].removeMovieClip(); bosses.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); bossHealth.splice(i, 1); completed = true; _root.attachMovie("stageClear", "stageClear", _root.getNextHighestDepth(), {_x:125, _y:150}); target = score + 1000; } } i--; } } function bossSot() { i = bosses.length - 1; while (i >= 0) { j = bullets.length - 1; while (j >= 0) { if (bosses[i].hitTest(bullets[j])) { bosses[i].gotoAndPlay("hit"); bossHealth[i] = bossHealth[i] - 0.1; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (bossHealth[i] < 1) { barBoarder2.removeMovieClip(); bossHealthBar.removeMovieClip(); boom_sound.start(); shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); explosion._xscale = 350; explosion._yscale = 350; bosses[i].removeMovieClip(); bosses.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); bossHealth.splice(i, 1); completed = true; _root.attachMovie("stageClear", "stageClear", _root.getNextHighestDepth(), {_x:125, _y:150}); target = score + 1000; } } j--; } i--; } } function enemySot() { i = enemies.length - 1; while (i >= 0) { j = bullets.length - 1; while (j >= 0) { if (enemies[i].hitTest(bullets[j]) or enemies[i].hitTest(deathBomb)) { score = score + 5; enemies[i].gotoAndPlay("hit"); enemyHealth[i] = enemyHealth[i] - 1; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (enemyHealth[i] < 1) { score = score + 10; tango_sound.start(); if (!powerUpOnScreen) { dir = ["drop", "dropBell", "dropBell2", "dropBell3", "null4", "null5", "null6", "null7", "null8", "null9", "null10"]; randNum = random(10); setDir = dir[randNum]; switch (setDir) { case "drop" : if (gun < 4) { dropPowerUp(); powerUpOnScreen = true; } break; case "dropBell" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell2" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell3" : if (enemies[i]._x < 400) { dropBell(); } break; case "null4" : break; case "null5" : break; case "null6" : break; case "null7" : break; case "null8" : break; case "null9" : break; case "null10" : } } shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); explosion._xscale = enemies[i]._xscale; explosion._yscale = enemies[i]._yscale; enemies[i].removeMovieClip(); enemies.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } } j--; } i--; } } function enemyMovement() { i = enemies.length - 1; while (i >= 0) { if (waveNum[i] == 1) { endX = _root.player._x; endY = _root.player._y; enemies[i]._x = enemies[i]._x + ((endX - enemies[i]._x) / 60); enemies[i]._y = enemies[i]._y + ((endY - enemies[i]._y) / 60); if (player._x > enemies[i]._x) { enemies[i]._xscale = -100; } else { enemies[i]._xscale = 100; } } if (waveNum[i] == 2) { enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 3) { enemies[i]._xscale = 250; enemies[i]._yscale = 250; enemies[i]._x = enemies[i]._x - (enemySpeed / 2); } if (waveNum[i] == 4) { enemies[i]._rotation = -90; enemies[i]._y = enemies[i]._y + enemySpeed; } if (waveNum[i] == 4.5) { enemies[i]._rotation = 90; enemies[i]._y = enemies[i]._y - enemySpeed; } if (waveNum[i] == 5) { enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 6) { enemies[i]._y = enemies[i]._y + 8; enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 6.5) { enemies[i]._y = enemies[i]._y - 8; enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 7) { enemies[i]._xscale = -250; enemies[i]._yscale = 250; enemies[i]._x = enemies[i]._x + (enemySpeed / 1.5); special[i]--; if (special[i] == 0) { shake++; randomNum++; _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); randomNum++; enemy1 = _root.attachMovie("tinyEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x + 15, _y:enemies[i]._y}); enemies.push(enemy1); enemyHealth.push(1); waveNum.push(1); randomNum++; enemy2 = _root.attachMovie("tinyEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x - 15, _y:enemies[i]._y}); enemies.push(enemy2); waveNum.push(1); enemyHealth.push(1); randomNum++; enemy3 = _root.attachMovie("tinyEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y - 15}); enemies.push(enemy3); enemyHealth.push(1); waveNum.push(1); enemies[i].removeMovieClip(); enemies.splice(i, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } } if (waveNum[i] == 9) { special[i]--; enemies[i]._xscale = 250; enemies[i]._yscale = 250; enemies[i]._x = enemies[i]._x - (enemySpeed / 2); if (special[i] == 0) { randomNum++; eBullet = _root.attachMovie("enemy_shot", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - 7; }; } } i--; } } function attackTimers() { if (Start) { attackOneTimer--; attackOneTimer2--; attackOneTimer3--; attackOneTimer4--; attackOneTimer5--; attackOneTimer6--; attackOneTimer7--; attackOneTimer8--; attackOneTimer9--; if (attackOneTimer == 1) { attackOneTimer = 0; position = 1; minus = 3; attackOneTimer2 = 160; } if (attackOneTimer2 == 1) { attackOneTimer2 = 0; position = 1; minus = 3; attackOneTimer3 = 640; } if (attackOneTimer3 == 1) { attackOneTimer3 = 0; position = 1; minus = 3; attackOneTimer4 = 960; } if (attackOneTimer4 == 1) { attackOneTimer4 = 0; position = 1; minus = 3; attackOneTimer5 = 320; } if (attackOneTimer5 == 1) { attackOneTimer5 = 0; position = 1; minus = 3; attackOneTimer6 = 320; } if (attackOneTimer6 == 1) { attackOneTimer6 = 0; position = 1; minus = 3; attackOneTimer7 = 960; } if (attackOneTimer7 == 1) { attackOneTimer7 = 0; position = 1; minus = 3; attackOneTimer8 = 320; } if (attackOneTimer8 == 1) { attackOneTimer8 = 0; position = 1; minus = 3; attackOneTimer9 = 960; } if (attackOneTimer9 == 1) { attackOneTimer9 = 0; position = 1; minus = 3; points.removeMovieClip(); _root.attachMovie("healthBar2", "bossHealthBar", _root.getNextHighestDepth(), {_x:400, _y:20}); _root.attachMovie("barBoarder2", "barBoarder2", _root.getNextHighestDepth(), {_x:400, _y:20}); FirstBoss = _root.attachMovie("bossOne", "bossOne", _root.getNextHighestDepth(), {_x:900, _y:200}); bosses.push(FirstBoss); bossHealth.push(100); FirstBoss.onEnterFrame = function () { if (this._x > 400) { this._x = this._x - 2; } if (goingUp) { if (this._x == 400) { this._y = this._y - 1; } } if (goingDown) { if (this._x == 400) { this._y = this._y + 1; } } if (this._y == 145) { goingUp = false; goingDown = true; } if (this._y == 250) { goingUp = true; goingDown = false; } if ((timeLastEnemyAttached + 500) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { eBullet = _root.attachMovie("bossBullet", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:FirstBoss._x, _y:FirstBoss._y - 100}); eBullet.onEnterFrame = function () { this._x = this._x - 12; }; } if (position == 2) { eBullet = _root.attachMovie("bossBullet", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:FirstBoss._x, _y:FirstBoss._y}); eBullet.onEnterFrame = function () { this._x = this._x - 18; }; } if (position == 1) { eBullet = _root.attachMovie("bossBullet", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:FirstBoss._x, _y:FirstBoss._y + 100}); eBullet.onEnterFrame = function () { this._x = this._x - 12; }; } enemyBullet.push(eBullet); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } }; } } } function attachEnemy() { if (Start) { if (attackOneTimer > 0) { if ((timeLastEnemyAttached + 250) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; enemy = _root.attachMovie("smallEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:Math.round(Math.random() * 350) + 10}); enemies.push(enemy); waveNum.push(1); enemyHealth.push(1); } } if (attackOneTimer2 > 0) { if ((timeLastEnemyAttached + 80) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; enemy = _root.attachMovie("smallEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:Math.round(Math.random() * 350) + 10}); enemies.push(enemy); waveNum.push(2); enemyHealth.push(1); } } if (attackOneTimer3 > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("enemy_one", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); } if (position == 2) { enemy = _root.attachMovie("enemy_one", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:300}); } if (position == 1) { enemy = _root.attachMovie("enemy_one", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:150}); } enemies.push(enemy); waveNum.push(3); enemyHealth.push(30); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } if (attackOneTimer4 > 0) { if ((timeLastEnemyAttached + 175) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 7) { enemy = _root.attachMovie("strangeEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:425, _y:-30}); waveNum.push(4); } if (position == 6) { enemy = _root.attachMovie("strangeEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:275, _y:570}); waveNum.push(4.5); } if (position == 5) { enemy = _root.attachMovie("strangeEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:125, _y:-30}); waveNum.push(4); } if (position == 4) { enemy = _root.attachMovie("strangeEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:450, _y:570}); waveNum.push(4.5); } if (position == 3) { enemy = _root.attachMovie("strangeEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:350, _y:-30}); waveNum.push(4); } if (position == 2) { enemy = _root.attachMovie("strangeEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:200, _y:570}); waveNum.push(4.5); } if (position == 1) { enemy = _root.attachMovie("strangeEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:50, _y:-30}); waveNum.push(4); } enemies.push(enemy); enemyHealth.push(6); minus--; if (minus == 0) { position--; minus = 5; } if (position == 0) { position = 7; } } } if (attackOneTimer5 > 0) { if ((timeLastEnemyAttached + 80) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; enemy = _root.attachMovie("smallEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:Math.round(Math.random() * 350) + 10}); enemies.push(enemy); waveNum.push(5); enemyHealth.push(3); } } if (attackOneTimer6 > 0) { if ((timeLastEnemyAttached + 175) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 2) { enemy = _root.attachMovie("enemy_one", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:440}); waveNum.push(6.5); } if (position == 1) { enemy = _root.attachMovie("enemy_one", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:-40}); waveNum.push(6); } enemies.push(enemy); enemyHealth.push(5); minus--; if (minus == 0) { position--; minus = 5; } if (position == 0) { position = 2; } } } if (attackOneTimer7 > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("enemy_one", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:-10, _y:225}); } if (position == 2) { enemy = _root.attachMovie("enemy_one", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:-10, _y:300}); } if (position == 1) { enemy = _root.attachMovie("enemy_one", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:-10, _y:150}); } enemies.push(enemy); waveNum.push(7); special.push(32); enemyHealth.push(15); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } } if (attackOneTimer8 > 0) { if ((timeLastEnemyAttached + 250) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; enemy = _root.attachMovie("smallEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:Math.round(Math.random() * 350) + 10}); enemies.push(enemy); waveNum.push(1); enemyHealth.push(3); } } if (attackOneTimer9 > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("enemy_one", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); } if (position == 2) { enemy = _root.attachMovie("enemy_one", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:300}); } if (position == 1) { enemy = _root.attachMovie("enemy_one", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:150}); } enemies.push(enemy); waveNum.push(9); enemyHealth.push(30); special.push(Math.round(Math.random() * 17) + 15); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } } function noOverLap() { i = enemies.length - 1; while (i >= 0) { j = enemies.length - 1; while (j >= 0) { if (!(enemies[i] === enemies[j])) { if (enemies[i].hitTest(enemies[j])) { endX = _root.enemies[j]._x; endY = _root.enemies[j]._y; enemies[i]._x = enemies[i]._x - ((endX - enemies[i]._x) / 60); enemies[i]._y = enemies[i]._y - ((endY - enemies[i]._y) / 60); } } j--; } i--; } } function ereaseEnemyBullets() { i = enemyBullet.length - 1; while (i >= 0) { if ((((enemyBullet[i]._x > 550) or (enemyBullet[i]._x < 0)) or (enemyBullet[i]._y > 400)) or (enemyBullet[i]._y < 0)) { enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); } i--; } } function ereaseBullets() { i = bullets.length - 1; while (i >= 0) { if ((((bullets[i]._x > 550) or (bullets[i]._x < 0)) or (bullets[i]._y > 400)) or (bullets[i]._y < 0)) { bullets[i].removeMovieClip(); bullets.splice(i, 1); } i--; } } function ereaseEnemies() { i = enemies.length - 1; while (i >= 0) { if ((((enemies[i]._x > 750) or (enemies[i]._x < -100)) or (enemies[i]._y > 600)) or (enemies[i]._y < -100)) { enemies[i].removeMovieClip(); enemies.splice(i, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } i--; } } function beingHit() { if (alive) { if (taking_damage) { ouch = ouch - 1; player.gotoAndStop("hit"); if (ouch == 0) { taking_damage = false; ouch = 5; } } } } function bomb() { if (alive) { if (dropBomb) { boom = boom - 1; player.gotoAndStop("bomb"); if (boom == 0) { dropBomb = false; canDrop = true; boom = 18; bombNum--; } } } } function playerBounds() { if (player._x > 510) { player._x = 510; } if (player._x < 40) { player._x = 40; } if (player._y > 370) { player._y = 370; } if (player._y < 30) { player._y = 30; } } function playerMovement() { if (alive) { if (!taking_damage) { if (!dropBomb) { if (!shooting) { player.gotoAndStop("normal"); } if (shooting) { player.gotoAndStop("shooting"); } if (Key.isDown(38) or Key.isDown(87)) { player._y = player._y - speed; } if (Key.isDown(39) or Key.isDown(68)) { player._x = player._x + speed; } if (Key.isDown(37) or Key.isDown(65)) { player._x = player._x - speed; } if (Key.isDown(40) or Key.isDown(83)) { player._y = player._y + speed; } } } } } function shaker() { if (shake == 0) { _root._x = 0; _root._y = 0; } else if (shake == 1) { shake = shake + 1; _root._x = _root._x + 3; _root._y = _root._y + 3; } else if (shake == 2) { shake = shake + 1; _root._y = _root._y - 5; _root._x = _root._x - 5; } else if (shake > 2) { shake = 0; _root._x = _root._x + 2; _root._y = _root._y + 2; } } function fire() { if (shooting) { if (gun == 0) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bullet = _root.attachMovie("standard shot_mc", "standard shot_mc" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } } if (gun == 1) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bullet = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU); bulletU.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 5; }; randomNum++; bulletD = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD); bulletD.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 5; }; } } if (gun == 2) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bulletGD = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD); bulletGD._rotation = 90; bulletGD.onEnterFrame = function () { this._y = this._y + bulletSpeed; }; randomNum++; bulletGU = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU); bulletGU._rotation = -90; bulletGU.onEnterFrame = function () { this._y = this._y - bulletSpeed; }; randomNum++; bullet = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU); bulletU.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 5; }; randomNum++; bulletD = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD); bulletD.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 5; }; } } if (gun == 3) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bulletGD = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD); bulletGD._rotation = 90; bulletGD.onEnterFrame = function () { this._y = this._y + bulletSpeed; }; randomNum++; bulletGU = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU); bulletGU._rotation = -90; bulletGU.onEnterFrame = function () { this._y = this._y - bulletSpeed; }; randomNum++; bullet = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU); bulletU.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 5; }; randomNum++; bulletD = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD); bulletD.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 5; }; randomNum++; bulletU2 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU2); bulletU2.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 2.5; }; randomNum++; bulletD3 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD3); bulletD3.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 2.5; }; } } if (gun == 4) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bulletGD2 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD2); bulletGD2._rotation = 90; bulletGD2.onEnterFrame = function () { this._y = this._y + bulletSpeed; this._x = this._x + 5; }; randomNum++; bulletGU3 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU3); bulletGU3._rotation = -90; bulletGU3.onEnterFrame = function () { this._y = this._y - bulletSpeed; this._x = this._x + 5; }; randomNum++; bulletGD = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD); bulletGD._rotation = 90; bulletGD.onEnterFrame = function () { this._y = this._y + bulletSpeed; }; randomNum++; bulletGU = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU); bulletGU._rotation = -90; bulletGU.onEnterFrame = function () { this._y = this._y - bulletSpeed; }; randomNum++; bullet = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU2 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU2); bulletU2.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 2.5; }; randomNum++; bulletD3 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD3); bulletD3.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 2.5; }; randomNum++; bulletU4 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU4); bulletU4.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 13; }; randomNum++; bulletD5 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD5); bulletD5.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 13; }; } } } } function firing() { if (gameOn) { if (canDrop) { if (Key.isDown(88)) { if (bombNum > 0) { dropBomb = true; _root.attachMovie("playerEffect", "playerEffect", _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); _root.attachMovie("deathBomb", "deathBomb", 2); dropDabomb_sound.start(); canDrop = false; } } } if (Key.isDown(90) or Key.isDown(80)) { pullitfire_sound.start(); shooting = true; } else { shooting = false; } } } function showBombNumber() { if (bombNum == 3) { bombCounter.gotoAndStop("three"); } if (bombNum == 2) { bombCounter.gotoAndStop("two"); } if (bombNum == 1) { bombCounter.gotoAndStop("one"); } if (bombNum == 0) { bombCounter.gotoAndStop("zero"); } } function StaeCompleted() { if (completed) { stageClear.sc.text = score; if (score < target) { score = score + 4; } if (score == target) { if (once == 0) { _root.attachMovie("fade", "fade", _root.getNextHighestDepth()); once = 1; } completedTimer++; } if (completedTimer == 64) { stopAllSounds(); gameOn = false; removeBullets(); removeenemies(); removeenemyHealth(); removewaveNum(); removespecial(); removepowerUp1(); removeEnemyBullets(); removeBoss(); removebossHealth(); removepowerbell(); backdrop.removeMovieClip(); healthBar.removeMovieClip(); barBoarder.removeMovieClip(); bombCounter.removeMovieClip(); barBoarder2.removeMovieClip(); bossHealthBar.removeMovieClip(); stageClear.removeMovieClip(); player.removeMovieClip(); _root.gotoAndStop("stage2"); } } } stop(); mission = 1; pullitfire_sound = new Sound(); pullitfire_sound.attachSound("pullitfire"); dropDabomb_sound = new Sound(); dropDabomb_sound.attachSound("dropDabomb"); collectPup_sound = new Sound(); collectPup_sound.attachSound("collectPup"); tango_sound = new Sound(); tango_sound.attachSound("soundfoe"); boom_sound = new Sound(); boom_sound.attachSound("boom"); _root.attachMovie("backdrop", "backdrop", 1); _root.attachMovie("points", "points", _root.getNextHighestDepth(), {_x:300, _y:0}); _root.attachMovie("bombCounter", "bombCounter", _root.getNextHighestDepth(), {_x:160, _y:28}); _root.attachMovie("healthBar", "healthBar", _root.getNextHighestDepth(), {_x:20, _y:20}); _root.attachMovie("barBoarder", "barBoarder", _root.getNextHighestDepth(), {_x:18, _y:20}); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:80, _y:200}); _root.attachMovie("st1_mc", "st1_mc", _root.getNextHighestDepth(), {_x:275, _y:200}); ready = 65; barBoarder.lvs.text = lives; un = 1; target = 0; once = 0; goingUp = true; goingDown = false; alive = true; gOt = 29; speed = 7; bombNum = 3; pinkCombo = 0; blueCombo = 0; randomNum = 0; randomNumber = 0; canDrop = true; Start = false; StartTimer = 121; taking_damage = false; shootingBeam = false; bulletSpeed = 25; completed = false; completedTimer = 0; ouch = 5; shake = 0; beamTimer = 22; enemySpeed = 10; playerHealth = 100; timeOfLastShot = 0; dropBomb = false; boom = 18; timeLastEnemyAttached = 0; powerUpOnScreen = false; shooting = false; var bullets = new Array(); var enemies = new Array(); var enemyBullet = new Array(); var enemyHealth = new Array(); var waveNum = new Array(); var special = new Array(); var powerUp1 = new Array(); var bosses = new Array(); var bossHealth = new Array(); var powerbell = new Array(); minus = 3; position = 1; attackOneTimer = 320; attackOneTimer2 = 0; attackOneTimer3 = 0; attackOneTimer4 = 0; attackOneTimer5 = 0; attackOneTimer6 = 0; attackOneTimer7 = 0; attackOneTimer8 = 0; attackOneTimer9 = 0; crosshair.onEnterFrame = function () { this._x = _xmouse; this._y = _ymouse; }; player.onEnterFrame = function () { ready--; if (ready == 1) { _root.attachMovie("fadeIn", "fadeIn", _root.getNextHighestDepth()); _root.attachMovie("lvl1", "lvl1", _root.getNextHighestDepth(), {_x:125, _y:150}); gameOn = true; } if (ready < 0) { ready = 0; } if (ready == 0) { StartTimer--; } if (StartTimer == 0) { Start = true; StartTimer = 0; } if (!dropBomb) { fire(); } if (bombNum < 0) { bombNum == 0; } points.pts.text = score; playerMovement(); firing(); ereaseBullets(); playerBounds(); attachEnemy(); enemyMovement(); noOverLap(); enemySot(); shaker(); playerHit(); beingHit(); collectPowerUp(); attackTimers(); ereaseEnemies(); death(); playersHealthBar(); bomb(); enemyHitBomb(); showBombNumber(); playerHitByEnemyBullet(); ereaseEnemyBullets(); EnemyBulletHitBomb(); BossHealthBar(); bossSot(); bossBombed(); playerHitByBoss(); collectBell(); StaeCompleted(); }; sound_contr.onEnterFrame = function () { if (!alive) { gOt--; } if (gOt < 0) { backdrop.removeMovieClip(); healthBar.removeMovieClip(); barBoarder.removeMovieClip(); bombCounter.removeMovieClip(); barBoarder2.removeMovieClip(); bossHealthBar.removeMovieClip(); points.removeMovieClip(); player.removeMovieClip(); _root.gotoAndStop("reset"); } }; qualityControl.onEnterFrame = function () { if (Key.isDown(81)) { if (num == 0) { qset++; num = 1; } } else { num = 0; } if (qset == 0) { qualityControl.qual.text = "High"; _quality = "high"; } if (qset == 1) { qualityControl.qual.text = "Medium"; _quality = "medium"; } if (qset == 2) { qualityControl.qual.text = "Low"; _quality = "low"; } if (qset > 2) { qset = 0; } };
Frame 10
function removepowerbell() { i = powerbell.length - 1; while (i >= 0) { powerbell[i].removeMovieClip(); powerbell.splice(i, 1); i--; } } function removebossHealth() { i = bossHealth.length - 1; while (i >= 0) { bossHealth[i].removeMovieClip(); bossHealth.splice(i, 1); i--; } } function removeBoss() { i = bosses.length - 1; while (i >= 0) { bosses[i].removeMovieClip(); bosses.splice(i, 1); i--; } } function removeEnemyBullets() { i = enemyBullet.length - 1; while (i >= 0) { enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); i--; } } function removeBullets() { i = bullets.length - 1; while (i >= 0) { bullets[i].removeMovieClip(); bullets.splice(i, 1); i--; } } function removeenemies() { i = enemies.length - 1; while (i >= 0) { enemies[i].removeMovieClip(); enemies.splice(i, 1); i--; } } function removeenemyHealth() { i = enemyHealth.length - 1; while (i >= 0) { enemyHealth[i].removeMovieClip(); enemyHealth.splice(i, 1); i--; } } function removewaveNum() { i = waveNum.length - 1; while (i >= 0) { waveNum[i].removeMovieClip(); waveNum.splice(i, 1); i--; } } function removespecial() { i = special.length - 1; while (i >= 0) { special[i].removeMovieClip(); special.splice(i, 1); i--; } } function removepowerUp1() { i = powerUp1.length - 1; while (i >= 0) { powerUp1[i].removeMovieClip(); powerUp1.splice(i, 1); i--; } } function playersHealthBar() { healthBar._xscale = playerHealth; if (playerHealth < 50) { healthBar.gotoAndStop("normal"); } else { healthBar.gotoAndStop("max"); } } function BossHealthBar() { i = bosses.length - 1; while (i >= 0) { bossHealthBar._xscale = bossHealth[i]; if (bossHealth[i] < 25) { bossHealthBar.gotoAndStop("normal"); } else { bossHealthBar.gotoAndStop("max"); } i--; } } function death() { if (playerHealth < 1) { playerHealth = 0; if (un == 1) { lives--; un = 0; } removeBullets(); removeenemies(); removeenemyHealth(); removewaveNum(); removespecial(); removepowerUp1(); removeEnemyBullets(); removeBoss(); removebossHealth(); removepowerbell(); gameOn = false; alive = false; player.gotoAndStop("dead"); stopAllSounds(); } } function collectPowerUp() { i = powerUp1.length - 1; while (i >= 0) { powerUp1[i]._rotation = powerUp1[i]._rotation + 10; if (powerUp1[i].hitTest(player)) { collectPup_sound.start(); powerUpOnScreen = false; randomNum++; _root.attachMovie("explosion2", "explosion2" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun++; if (gun > 4) { gun = 4; } powerUp1[i].removeMovieClip(); powerUp1.splice(i, 1); } i--; } } function collectBell() { i = powerbell.length - 1; while (i >= 0) { if (powerbell[i].hitTest(player)) { score = score + 300; collectPup_sound.start(); randomNum++; bellPop = _root.attachMovie("explosion_pup", "explosion_pup" + randomNum, _root.getNextHighestDepth(), {_x:powerbell[i]._x, _y:powerbell[i]._y}); bellPop._xscale = 170; bellPop._yscale = 170; randomNum++; plusTen = _root.attachMovie("plusTen", "plusTen" + randomNum, _root.getNextHighestDepth(), {_x:powerbell[i]._x, _y:powerbell[i]._y}); powerbell[i].removeMovieClip(); powerbell.splice(i, 1); } i--; } } function dropBell() { randomNumber++; bell = _root.attachMovie("bell", "bell" + randomNumber, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); powerbell.push(bell); bell._xscale = 170; bell._yscale = 170; bell.onEnterFrame = function () { endX = _root.player._x; endY = _root.player._y; this._x = this._x + ((endX - this._x) / 150); this._y = this._y + ((endY - this._y) / 150); }; } function dropPowerUp() { randomNumber++; StarShot = _root.attachMovie("pup", "star" + randomNumber, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); powerUp1.push(StarShot); StarShot.onEnterFrame = function () { endX = _root.player._x; endY = _root.player._y; this._x = this._x + ((endX - this._x) / 30); this._y = this._y + ((endY - this._y) / 30); }; } function playerHitByEnemyBullet() { i = enemyBullet.length - 1; while (i >= 0) { if (enemyBullet[i].hitTest(player)) { randomNum++; _root.attachMovie("playerEffect", "playerEffect" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun--; if (gun < 0) { gun = 0; } taking_damage = true; playerHealth = playerHealth - 10; enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); } i--; } } function playerHitByBoss() { i = bosses.length - 1; while (i >= 0) { if (bosses[i].hitTest(player)) { randomNum++; _root.attachMovie("playerEffect", "playerEffect" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun--; if (gun < 0) { gun = 0; } taking_damage = true; playerHealth = playerHealth - 10; player._x = player._x - 10; } i--; } } function playerHit() { i = enemies.length - 1; while (i >= 0) { if (enemies[i].hitTest(player)) { randomNum++; _root.attachMovie("playerEffect", "playerEffect" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun--; if (gun < 0) { gun = 0; } taking_damage = true; playerHealth = playerHealth - 10; tango_sound.start(); shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); explosion._xscale = enemies[i]._xscale; explosion._yscale = enemies[i]._yscale; enemies[i].removeMovieClip(); enemies.splice(i, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } i--; } } function EnemyBulletHitBomb() { i = enemyBullet.length - 1; while (i >= 0) { if (enemyBullet[i].hitTest(deathBomb)) { enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); } i--; } } function enemyHitBomb() { i = enemies.length - 1; while (i >= 0) { if (enemies[i].hitTest(deathBomb)) { enemies[i].gotoAndPlay("hit"); enemyHealth[i] = enemyHealth[i] - 10; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (enemyHealth[i] < 1) { score = score + 10; tango_sound.start(); if (!powerUpOnScreen) { dir = ["drop", "dropBell", "dropBell2", "dropBell3", "null4", "null5", "null6", "null7", "null8", "null9", "null10"]; randNum = random(10); setDir = dir[randNum]; switch (setDir) { case "drop" : if (gun < 4) { dropPowerUp(); powerUpOnScreen = true; } break; case "dropBell" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell2" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell3" : if (enemies[i]._x < 400) { dropBell(); } break; case "null4" : break; case "null5" : break; case "null6" : break; case "null7" : break; case "null8" : break; case "null9" : break; case "null10" : } } shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); explosion._xscale = enemies[i]._xscale; explosion._yscale = enemies[i]._yscale; enemies[i].removeMovieClip(); enemies.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } } i--; } } function bossBombed() { i = bosses.length - 1; while (i >= 0) { if (bosses[i].hitTest(deathBomb)) { bosses[i].gotoAndPlay("hit"); bossHealth[i] = bossHealth[i] - 1; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (bossHealth[i] < 1) { boom_sound.start(); shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); explosion._xscale = 350; explosion._yscale = 350; bosses[i].removeMovieClip(); bosses.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); bossHealth.splice(i, 1); completed = true; _root.attachMovie("stageClear", "stageClear", _root.getNextHighestDepth(), {_x:125, _y:150}); target = score + 2000; } } i--; } } function bossSot() { i = bosses.length - 1; while (i >= 0) { j = bullets.length - 1; while (j >= 0) { if (bosses[i].hitTest(bullets[j])) { bosses[i].gotoAndPlay("hit"); bossHealth[i] = bossHealth[i] - 0.1; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (bossHealth[i] < 1) { barBoarder2.removeMovieClip(); bossHealthBar.removeMovieClip(); boom_sound.start(); shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); explosion._xscale = 350; explosion._yscale = 350; bosses[i].removeMovieClip(); bosses.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); bossHealth.splice(i, 1); completed = true; _root.attachMovie("stageClear", "stageClear", _root.getNextHighestDepth(), {_x:125, _y:150}); target = score + 2000; } } j--; } i--; } } function enemySot() { i = enemies.length - 1; while (i >= 0) { j = bullets.length - 1; while (j >= 0) { if (enemies[i].hitTest(bullets[j]) or enemies[i].hitTest(deathBomb)) { score = score + 5; enemies[i].gotoAndPlay("hit"); enemyHealth[i] = enemyHealth[i] - 1; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (enemyHealth[i] < 1) { score = score + 10; tango_sound.start(); if (!powerUpOnScreen) { dir = ["drop", "dropBell", "dropBell2", "dropBell3", "null4", "null5", "null6", "null7", "null8", "null9", "null10"]; randNum = random(10); setDir = dir[randNum]; switch (setDir) { case "drop" : if (gun < 4) { dropPowerUp(); powerUpOnScreen = true; } break; case "dropBell" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell2" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell3" : if (enemies[i]._x < 400) { dropBell(); } break; case "null4" : break; case "null5" : break; case "null6" : break; case "null7" : break; case "null8" : break; case "null9" : break; case "null10" : } } shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); explosion._xscale = enemies[i]._xscale; explosion._yscale = enemies[i]._yscale; enemies[i].removeMovieClip(); enemies.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } } j--; } i--; } } function enemyMovement() { i = enemies.length - 1; while (i >= 0) { if (waveNum[i] == 1) { endX = _root.player._x; endY = _root.player._y; enemies[i]._x = enemies[i]._x + ((endX - enemies[i]._x) / 60); enemies[i]._y = enemies[i]._y + ((endY - enemies[i]._y) / 60); if (player._x > enemies[i]._x) { enemies[i]._xscale = -100; } else { enemies[i]._xscale = 100; } special[i]--; if (special[i] == 0) { randomNum++; eBullet = _root.attachMovie("enemy_shot", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - 7; }; } } if (waveNum[i] == 2) { enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 3) { enemies[i]._x = enemies[i]._x - (enemySpeed / 2); special[i]--; if (special[i] == 0) { randomNum++; eBullet = _root.attachMovie("bossBullet", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - 15; }; } } if (waveNum[i] == 4) { enemies[i]._x = enemies[i]._x - (enemySpeed / 2); special[i]--; if (special[i] == 0) { randomNum++; eBullet = _root.attachMovie("enemy_shot", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - 7; }; } } if (waveNum[i] == 4.5) { enemies[i]._x = enemies[i]._x - (enemySpeed * 2); } if (waveNum[i] == 5) { enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 6) { enemies[i]._y = enemies[i]._y + 8; enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 6.5) { enemies[i]._y = enemies[i]._y - 8; enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 7) { enemies[i]._xscale = -250; enemies[i]._yscale = 250; enemies[i]._x = enemies[i]._x + (enemySpeed / 1.5); special[i]--; if (special[i] == 0) { shake++; randomNum++; _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); randomNum++; enemy1 = _root.attachMovie("tinyEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x + 15, _y:enemies[i]._y}); enemies.push(enemy1); enemyHealth.push(1); waveNum.push(1); randomNum++; enemy2 = _root.attachMovie("tinyEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x - 15, _y:enemies[i]._y}); enemies.push(enemy2); waveNum.push(1); enemyHealth.push(1); randomNum++; enemy3 = _root.attachMovie("tinyEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y - 15}); enemies.push(enemy3); enemyHealth.push(1); waveNum.push(1); enemies[i].removeMovieClip(); enemies.splice(i, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } } if (waveNum[i] == 9) { special[i]--; enemies[i]._x = enemies[i]._x - enemySpeed; if (special[i] == 0) { randomNum++; eBullet = _root.attachMovie("bossBullet", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - 15; }; } } i--; } } function attackTimers() { if (Start) { attackOneTimer--; attackOneTimer2--; attackOneTimer3--; attackOneTimer4--; attackOneTimer5--; attackOneTimer6--; attackOneTimer7--; attackOneTimer8--; attackOneTimer9--; if (attackOneTimer == 1) { attackOneTimer = 0; position = 1; minus = 3; attackOneTimer2 = 160; } if (attackOneTimer2 == 1) { attackOneTimer2 = 0; position = 1; minus = 3; attackOneTimer3 = 640; } if (attackOneTimer3 == 1) { attackOneTimer3 = 0; position = 1; minus = 3; attackOneTimer4 = 960; } if (attackOneTimer4 == 1) { attackOneTimer4 = 0; position = 1; minus = 3; attackOneTimer5 = 320; } if (attackOneTimer5 == 1) { attackOneTimer5 = 0; position = 1; minus = 3; attackOneTimer6 = 320; } if (attackOneTimer6 == 1) { attackOneTimer6 = 0; position = 1; minus = 3; attackOneTimer7 = 960; } if (attackOneTimer7 == 1) { attackOneTimer7 = 0; position = 1; minus = 3; attackOneTimer8 = 320; } if (attackOneTimer8 == 1) { attackOneTimer8 = 0; position = 1; minus = 3; attackOneTimer9 = 960; } if (attackOneTimer9 == 1) { attackOneTimer9 = 0; position = 1; minus = 3; points.removeMovieClip(); _root.attachMovie("healthBar2", "bossHealthBar", _root.getNextHighestDepth(), {_x:400, _y:20}); _root.attachMovie("barBoarder2", "barBoarder2", _root.getNextHighestDepth(), {_x:400, _y:20}); SecondBoss = _root.attachMovie("bossTwo", "bossTwo", _root.getNextHighestDepth(), {_x:900, _y:200}); bosses.push(SecondBoss); bossHealth.push(100); SecondBoss.onEnterFrame = function () { if (this._x > 400) { this._x = this._x - 2; } if (goingUp) { if (this._x == 400) { this._y = this._y - 1; } } if (goingDown) { if (this._x == 400) { this._y = this._y + 1; } } if (this._y == 145) { goingUp = false; goingDown = true; } if (this._y == 250) { goingUp = true; goingDown = false; } specialAttackTimer--; if (specialAttackTimer < 0) { if ((timeLastEnemyAttached + 100) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; eBullet = _root.attachMovie("bossBullet2", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:SecondBoss._x, _y:SecondBoss._y - 100}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - 12; }; randomNum++; eBullet = _root.attachMovie("bossBullet2", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:SecondBoss._x, _y:SecondBoss._y + 100}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - 12; }; } } if (specialAttackTimer == -96) { sickEmBoys(); specialAttackTimer = 64; } }; } } } function sickEmBoys() { i = bosses.length - 1; while (i >= 0) { randomNum++; bulletGD2 = _root.attachMovie("bossBullet2", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); enemyBullet.push(bulletGD2); bulletGD2._rotation = 90; bulletGD2.onEnterFrame = function () { this._y = this._y + 5; this._x = this._x - 1; }; randomNum++; bulletGU3 = _root.attachMovie("bossBullet2", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); enemyBullet.push(bulletGU3); bulletGU3._rotation = -90; bulletGU3.onEnterFrame = function () { this._y = this._y - 5; this._x = this._x - 1; }; randomNum++; bulletU2 = _root.attachMovie("bossBullet2", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); enemyBullet.push(bulletU2); bulletU2.onEnterFrame = function () { this._x = this._x - 3; this._y = this._y + 1; }; randomNum++; bulletD3 = _root.attachMovie("bossBullet2", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); enemyBullet.push(bulletD3); bulletD3.onEnterFrame = function () { this._x = this._x - 3; this._y = this._y - 1; }; randomNum++; bulletU4 = _root.attachMovie("bossBullet2", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); enemyBullet.push(bulletU4); bulletU4.onEnterFrame = function () { this._x = this._x - 7; this._y = this._y + 4; }; randomNum++; bulletD5 = _root.attachMovie("bossBullet2", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); enemyBullet.push(bulletD5); bulletD5.onEnterFrame = function () { this._x = this._x - 7; this._y = this._y - 4; }; i--; } } function attachEnemy() { if (Start) { if (attackOneTimer > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("smallEnemy2", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); } if (position == 2) { enemy = _root.attachMovie("smallEnemy2", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:300}); } if (position == 1) { enemy = _root.attachMovie("smallEnemy2", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:150}); } enemies.push(enemy); waveNum.push(9); enemyHealth.push(5); special.push(Math.round(Math.random() * 17) + 15); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } if (attackOneTimer2 > 0) { if ((timeLastEnemyAttached + 80) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; enemy = _root.attachMovie("midgetEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:Math.round(Math.random() * 350) + 10}); enemies.push(enemy); waveNum.push(2); enemyHealth.push(5); special.push(Math.round(Math.random() * 17) + 15); } } if (attackOneTimer3 > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("lineEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); } if (position == 2) { enemy = _root.attachMovie("lineEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:300}); } if (position == 1) { enemy = _root.attachMovie("lineEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:150}); } enemies.push(enemy); waveNum.push(3); enemyHealth.push(30); special.push(Math.round(Math.random() * 17) + 15); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } if (attackOneTimer4 > 0) { if ((timeLastEnemyAttached + 175) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 7) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:280}); waveNum.push(4); } if (position == 6) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:200}); waveNum.push(4.5); } if (position == 5) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); waveNum.push(4); } if (position == 4) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:250}); waveNum.push(4.5); } if (position == 3) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:275}); waveNum.push(4); } if (position == 2) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:50}); waveNum.push(4.5); } if (position == 1) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:350}); waveNum.push(4); } special.push(Math.round(Math.random() * 17) + 15); enemies.push(enemy); enemyHealth.push(6); minus--; if (minus == 0) { position--; minus = 5; } if (position == 0) { position = 7; } } } if (attackOneTimer5 > 0) { if ((timeLastEnemyAttached + 80) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; enemy = _root.attachMovie("smallEnemy2", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:Math.round(Math.random() * 350) + 10}); enemies.push(enemy); special.push(Math.round(Math.random() * 17) + 15); waveNum.push(1); enemyHealth.push(3); } } if (attackOneTimer6 > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); } if (position == 2) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:300}); } if (position == 1) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:150}); } enemy._xscale = 250; enemy._yscale = 250; enemies.push(enemy); waveNum.push(3); enemyHealth.push(30); special.push(Math.round(Math.random() * 17) + 15); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } if (attackOneTimer7 > 0) { if ((timeLastEnemyAttached + 250) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; enemy = _root.attachMovie("midgetEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:Math.round(Math.random() * 350) + 10}); enemies.push(enemy); waveNum.push(4); enemyHealth.push(5); special.push(Math.round(Math.random() * 17) + 15); } } } if (attackOneTimer8 > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); } if (position == 2) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:300}); } if (position == 1) { enemy = _root.attachMovie("redEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:150}); } enemy._xscale = 250; enemy._yscale = 250; enemies.push(enemy); waveNum.push(3); enemyHealth.push(30); special.push(Math.round(Math.random() * 17) + 15); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } if (attackOneTimer9 > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("lineEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); } if (position == 2) { enemy = _root.attachMovie("lineEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:300}); } if (position == 1) { enemy = _root.attachMovie("lineEnemy_mc", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:150}); } enemies.push(enemy); waveNum.push(9); enemyHealth.push(30); special.push(Math.round(Math.random() * 17) + 15); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } } function noOverLap() { i = enemies.length - 1; while (i >= 0) { j = enemies.length - 1; while (j >= 0) { if (!(enemies[i] === enemies[j])) { if (enemies[i].hitTest(enemies[j])) { endX = _root.enemies[j]._x; endY = _root.enemies[j]._y; enemies[i]._x = enemies[i]._x - ((endX - enemies[i]._x) / 60); enemies[i]._y = enemies[i]._y - ((endY - enemies[i]._y) / 60); } } j--; } i--; } } function ereaseEnemyBullets() { i = enemyBullet.length - 1; while (i >= 0) { if ((((enemyBullet[i]._x > 550) or (enemyBullet[i]._x < 0)) or (enemyBullet[i]._y > 400)) or (enemyBullet[i]._y < 0)) { enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); } i--; } } function ereaseBullets() { i = bullets.length - 1; while (i >= 0) { if ((((bullets[i]._x > 550) or (bullets[i]._x < 0)) or (bullets[i]._y > 400)) or (bullets[i]._y < 0)) { bullets[i].removeMovieClip(); bullets.splice(i, 1); } i--; } } function ereaseEnemies() { i = enemies.length - 1; while (i >= 0) { if ((((enemies[i]._x > 750) or (enemies[i]._x < -100)) or (enemies[i]._y > 600)) or (enemies[i]._y < -100)) { enemies[i].removeMovieClip(); enemies.splice(i, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } i--; } } function beingHit() { if (alive) { if (taking_damage) { ouch = ouch - 1; player.gotoAndStop("hit"); if (ouch == 0) { taking_damage = false; ouch = 5; } } } } function bomb() { if (alive) { if (dropBomb) { boom = boom - 1; player.gotoAndStop("bomb"); if (boom == 0) { dropBomb = false; canDrop = true; boom = 18; bombNum--; } } } } function playerBounds() { if (player._x > 510) { player._x = 510; } if (player._x < 40) { player._x = 40; } if (player._y > 370) { player._y = 370; } if (player._y < 30) { player._y = 30; } } function playerMovement() { if (alive) { if (!taking_damage) { if (!dropBomb) { if (!shooting) { player.gotoAndStop("normal"); } if (shooting) { player.gotoAndStop("shooting"); } if (Key.isDown(38)) { player._y = player._y - speed; } if (Key.isDown(39)) { player._x = player._x + speed; } if (Key.isDown(37)) { player._x = player._x - speed; } if (Key.isDown(40)) { player._y = player._y + speed; } } } } } function shaker() { if (shake == 0) { _root._x = 0; _root._y = 0; } else if (shake == 1) { shake = shake + 1; _root._x = _root._x + 3; _root._y = _root._y + 3; } else if (shake == 2) { shake = shake + 1; _root._y = _root._y - 5; _root._x = _root._x - 5; } else if (shake > 2) { shake = 0; _root._x = _root._x + 2; _root._y = _root._y + 2; } } function fire() { if (shooting) { if (gun == 0) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bullet = _root.attachMovie("standard shot_mc", "standard shot_mc" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } } if (gun == 1) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bullet = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU); bulletU.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 5; }; randomNum++; bulletD = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD); bulletD.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 5; }; } } if (gun == 2) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bulletGD = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD); bulletGD._rotation = 90; bulletGD.onEnterFrame = function () { this._y = this._y + bulletSpeed; }; randomNum++; bulletGU = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU); bulletGU._rotation = -90; bulletGU.onEnterFrame = function () { this._y = this._y - bulletSpeed; }; randomNum++; bullet = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU); bulletU.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 5; }; randomNum++; bulletD = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD); bulletD.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 5; }; } } if (gun == 3) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bulletGD = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD); bulletGD._rotation = 90; bulletGD.onEnterFrame = function () { this._y = this._y + bulletSpeed; }; randomNum++; bulletGU = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU); bulletGU._rotation = -90; bulletGU.onEnterFrame = function () { this._y = this._y - bulletSpeed; }; randomNum++; bullet = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU); bulletU.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 5; }; randomNum++; bulletD = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD); bulletD.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 5; }; randomNum++; bulletU2 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU2); bulletU2.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 2.5; }; randomNum++; bulletD3 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD3); bulletD3.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 2.5; }; } } if (gun == 4) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bulletGD2 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD2); bulletGD2._rotation = 90; bulletGD2.onEnterFrame = function () { this._y = this._y + bulletSpeed; this._x = this._x + 5; }; randomNum++; bulletGU3 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU3); bulletGU3._rotation = -90; bulletGU3.onEnterFrame = function () { this._y = this._y - bulletSpeed; this._x = this._x + 5; }; randomNum++; bulletGD = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD); bulletGD._rotation = 90; bulletGD.onEnterFrame = function () { this._y = this._y + bulletSpeed; }; randomNum++; bulletGU = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU); bulletGU._rotation = -90; bulletGU.onEnterFrame = function () { this._y = this._y - bulletSpeed; }; randomNum++; bullet = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU2 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU2); bulletU2.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 2.5; }; randomNum++; bulletD3 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD3); bulletD3.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 2.5; }; randomNum++; bulletU4 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU4); bulletU4.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 13; }; randomNum++; bulletD5 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD5); bulletD5.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 13; }; } } } } function firing() { if (gameOn) { if (canDrop) { if (Key.isDown(88)) { if (bombNum > 0) { dropBomb = true; _root.attachMovie("playerEffect", "playerEffect", _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); _root.attachMovie("deathBomb", "deathBomb", 2); dropDabomb_sound.start(); canDrop = false; } } } if (Key.isDown(90)) { pullitfire_sound.start(); shooting = true; } else { shooting = false; } } } function showBombNumber() { if (bombNum == 3) { bombCounter.gotoAndStop("three"); } if (bombNum == 2) { bombCounter.gotoAndStop("two"); } if (bombNum == 1) { bombCounter.gotoAndStop("one"); } if (bombNum == 0) { bombCounter.gotoAndStop("zero"); } } function StaeCompleted() { if (completed) { stageClear.sc.text = score; if (score < target) { score = score + 4; } if (score == target) { if (once == 0) { _root.attachMovie("fade", "fade", _root.getNextHighestDepth()); once = 1; } completedTimer++; } if (completedTimer == 64) { stopAllSounds(); gameOn = false; removeBullets(); removeenemies(); removeenemyHealth(); removewaveNum(); removespecial(); removepowerUp1(); removeEnemyBullets(); removeBoss(); removebossHealth(); removepowerbell(); background2.removeMovieClip(); healthBar.removeMovieClip(); barBoarder.removeMovieClip(); bombCounter.removeMovieClip(); barBoarder2.removeMovieClip(); bossHealthBar.removeMovieClip(); stageClear.removeMovieClip(); player.removeMovieClip(); _root.gotoAndStop("stage3"); } } } stop(); mission = 2; pullitfire_sound = new Sound(); pullitfire_sound.attachSound("pullitfire"); dropDabomb_sound = new Sound(); dropDabomb_sound.attachSound("dropDabomb"); collectPup_sound = new Sound(); collectPup_sound.attachSound("collectPup"); tango_sound = new Sound(); tango_sound.attachSound("soundfoe"); boom_sound = new Sound(); boom_sound.attachSound("boom"); _root.attachMovie("background2", "background2", 1); _root.attachMovie("points", "points", _root.getNextHighestDepth(), {_x:300, _y:0}); _root.attachMovie("bombCounter", "bombCounter", _root.getNextHighestDepth(), {_x:160, _y:28}); _root.attachMovie("healthBar", "healthBar", _root.getNextHighestDepth(), {_x:20, _y:20}); _root.attachMovie("barBoarder", "barBoarder", _root.getNextHighestDepth(), {_x:18, _y:20}); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:80, _y:200}); _root.attachMovie("st2_mc", "st2_mc", _root.getNextHighestDepth(), {_x:275, _y:200}); ready = 65; barBoarder.lvs.text = lives; un = 1; target = 0; once = 0; goingUp = true; goingDown = false; alive = true; gOt = 29; speed = 7; bombNum = 3; pinkCombo = 0; blueCombo = 0; randomNum = 0; randomNumber = 0; canDrop = true; Start = false; StartTimer = 121; taking_damage = false; shootingBeam = false; bulletSpeed = 25; completed = false; completedTimer = 0; ouch = 5; shake = 0; beamTimer = 22; enemySpeed = 10; playerHealth = 100; timeOfLastShot = 0; dropBomb = false; boom = 18; specialAttackTimer = 64; timeLastEnemyAttached = 0; powerUpOnScreen = false; shooting = false; var bullets = new Array(); var enemies = new Array(); var enemyBullet = new Array(); var enemyHealth = new Array(); var waveNum = new Array(); var special = new Array(); var powerUp1 = new Array(); var bosses = new Array(); var bossHealth = new Array(); var powerbell = new Array(); minus = 3; position = 1; attackOneTimer = 320; attackOneTimer2 = 0; attackOneTimer3 = 0; attackOneTimer4 = 0; attackOneTimer5 = 0; attackOneTimer6 = 0; attackOneTimer7 = 0; attackOneTimer8 = 0; attackOneTimer9 = 0; crosshair.onEnterFrame = function () { this._x = _xmouse; this._y = _ymouse; }; player.onEnterFrame = function () { ready--; if (ready == 1) { _root.attachMovie("fadeIn", "fadeIn", _root.getNextHighestDepth()); _root.attachMovie("lvl2", "lvl2", _root.getNextHighestDepth(), {_x:125, _y:150}); gameOn = true; } if (ready < 0) { ready = 0; } if (ready == 0) { StartTimer--; } if (StartTimer == 0) { Start = true; StartTimer = 0; } if (!dropBomb) { fire(); } if (bombNum < 0) { bombNum == 0; } points.pts.text = score; playerMovement(); firing(); ereaseBullets(); playerBounds(); attachEnemy(); enemyMovement(); noOverLap(); enemySot(); shaker(); playerHit(); beingHit(); collectPowerUp(); attackTimers(); ereaseEnemies(); death(); playersHealthBar(); bomb(); enemyHitBomb(); showBombNumber(); playerHitByEnemyBullet(); ereaseEnemyBullets(); EnemyBulletHitBomb(); BossHealthBar(); bossSot(); bossBombed(); playerHitByBoss(); collectBell(); StaeCompleted(); }; sound_contr.onEnterFrame = function () { if (!alive) { gOt--; } if (gOt < 0) { background2.removeMovieClip(); healthBar.removeMovieClip(); barBoarder.removeMovieClip(); bombCounter.removeMovieClip(); barBoarder2.removeMovieClip(); bossHealthBar.removeMovieClip(); points.removeMovieClip(); player.removeMovieClip(); _root.gotoAndPlay("reset"); } }; qualityControl.onEnterFrame = function () { if (Key.isDown(81)) { if (num == 0) { qset++; num = 1; } } else { num = 0; } if (qset == 0) { qualityControl.qual.text = "High"; _quality = "high"; } if (qset == 1) { qualityControl.qual.text = "Medium"; _quality = "medium"; } if (qset == 2) { qualityControl.qual.text = "Low"; _quality = "low"; } if (qset > 2) { qset = 0; } };
Frame 11
function removepowerbell() { i = powerbell.length - 1; while (i >= 0) { powerbell[i].removeMovieClip(); powerbell.splice(i, 1); i--; } } function removebossHealth() { i = bossHealth.length - 1; while (i >= 0) { bossHealth[i].removeMovieClip(); bossHealth.splice(i, 1); i--; } } function removeBoss() { i = bosses.length - 1; while (i >= 0) { bosses[i].removeMovieClip(); bosses.splice(i, 1); i--; } } function removeEnemyBullets() { i = enemyBullet.length - 1; while (i >= 0) { enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); i--; } } function removeBullets() { i = bullets.length - 1; while (i >= 0) { bullets[i].removeMovieClip(); bullets.splice(i, 1); i--; } } function removeenemies() { i = enemies.length - 1; while (i >= 0) { enemies[i].removeMovieClip(); enemies.splice(i, 1); i--; } } function removeenemyHealth() { i = enemyHealth.length - 1; while (i >= 0) { enemyHealth[i].removeMovieClip(); enemyHealth.splice(i, 1); i--; } } function removewaveNum() { i = waveNum.length - 1; while (i >= 0) { waveNum[i].removeMovieClip(); waveNum.splice(i, 1); i--; } } function removespecial() { i = special.length - 1; while (i >= 0) { special[i].removeMovieClip(); special.splice(i, 1); i--; } } function removepowerUp1() { i = powerUp1.length - 1; while (i >= 0) { powerUp1[i].removeMovieClip(); powerUp1.splice(i, 1); i--; } } function playersHealthBar() { healthBar._xscale = playerHealth; if (playerHealth < 50) { healthBar.gotoAndStop("normal"); } else { healthBar.gotoAndStop("max"); } } function BossHealthBar() { i = bosses.length - 1; while (i >= 0) { bossHealthBar._xscale = bossHealth[i]; if (bossHealth[i] < 25) { bossHealthBar.gotoAndStop("normal"); } else { bossHealthBar.gotoAndStop("max"); } i--; } } function death() { if (playerHealth < 1) { playerHealth = 0; if (un == 1) { lives--; un = 0; } removeBullets(); removeenemies(); removeenemyHealth(); removewaveNum(); removespecial(); removepowerUp1(); removeEnemyBullets(); removeBoss(); removebossHealth(); removepowerbell(); gameOn = false; alive = false; player.gotoAndStop("dead"); stopAllSounds(); } } function collectPowerUp() { i = powerUp1.length - 1; while (i >= 0) { powerUp1[i]._rotation = powerUp1[i]._rotation + 10; if (powerUp1[i].hitTest(player)) { collectPup_sound.start(); powerUpOnScreen = false; randomNum++; _root.attachMovie("explosion2", "explosion2" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun++; if (gun > 4) { gun = 4; } powerUp1[i].removeMovieClip(); powerUp1.splice(i, 1); } i--; } } function collectBell() { i = powerbell.length - 1; while (i >= 0) { if (powerbell[i].hitTest(player)) { score = score + 300; collectPup_sound.start(); randomNum++; bellPop = _root.attachMovie("explosion_pup", "explosion_pup" + randomNum, _root.getNextHighestDepth(), {_x:powerbell[i]._x, _y:powerbell[i]._y}); bellPop._xscale = 170; bellPop._yscale = 170; randomNum++; plusTen = _root.attachMovie("plusTen", "plusTen" + randomNum, _root.getNextHighestDepth(), {_x:powerbell[i]._x, _y:powerbell[i]._y}); powerbell[i].removeMovieClip(); powerbell.splice(i, 1); } i--; } } function dropBell() { randomNumber++; bell = _root.attachMovie("bell", "bell" + randomNumber, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); powerbell.push(bell); bell._xscale = 170; bell._yscale = 170; bell.onEnterFrame = function () { endX = _root.player._x; endY = _root.player._y; this._x = this._x + ((endX - this._x) / 150); this._y = this._y + ((endY - this._y) / 150); }; } function dropPowerUp() { randomNumber++; StarShot = _root.attachMovie("pup", "star" + randomNumber, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); powerUp1.push(StarShot); StarShot.onEnterFrame = function () { endX = _root.player._x; endY = _root.player._y; this._x = this._x + ((endX - this._x) / 30); this._y = this._y + ((endY - this._y) / 30); }; } function playerHitByEnemyBullet() { i = enemyBullet.length - 1; while (i >= 0) { if (enemyBullet[i].hitTest(player)) { randomNum++; _root.attachMovie("playerEffect", "playerEffect" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun--; if (gun < 0) { gun = 0; } taking_damage = true; playerHealth = playerHealth - 10; enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); } i--; } } function playerHitByBoss() { i = bosses.length - 1; while (i >= 0) { if (bosses[i].hitTest(player)) { randomNum++; _root.attachMovie("playerEffect", "playerEffect" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun--; if (gun < 0) { gun = 0; } taking_damage = true; playerHealth = playerHealth - 10; player._x = player._x - 10; } i--; } } function playerHit() { i = enemies.length - 1; while (i >= 0) { if (enemies[i].hitTest(player)) { randomNum++; _root.attachMovie("playerEffect", "playerEffect" + randomNum, _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); gun--; if (gun < 0) { gun = 0; } taking_damage = true; playerHealth = playerHealth - 10; tango_sound.start(); shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); explosion._xscale = enemies[i]._xscale; explosion._yscale = enemies[i]._yscale; enemies[i].removeMovieClip(); enemies.splice(i, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } i--; } } function EnemyBulletHitBomb() { i = enemyBullet.length - 1; while (i >= 0) { if (enemyBullet[i].hitTest(deathBomb)) { enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); } i--; } } function enemyHitBomb() { i = enemies.length - 1; while (i >= 0) { if (enemies[i].hitTest(deathBomb)) { enemies[i].gotoAndPlay("hit"); enemyHealth[i] = enemyHealth[i] - 10; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (enemyHealth[i] < 1) { score = score + 10; tango_sound.start(); if (!powerUpOnScreen) { dir = ["drop", "dropBell", "dropBell2", "dropBell3", "null4", "null5", "null6", "null7", "null8", "null9", "null10"]; randNum = random(10); setDir = dir[randNum]; switch (setDir) { case "drop" : if (gun < 4) { dropPowerUp(); powerUpOnScreen = true; } break; case "dropBell" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell2" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell3" : if (enemies[i]._x < 400) { dropBell(); } break; case "null4" : break; case "null5" : break; case "null6" : break; case "null7" : break; case "null8" : break; case "null9" : break; case "null10" : } } shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); explosion._xscale = enemies[i]._xscale; explosion._yscale = enemies[i]._yscale; enemies[i].removeMovieClip(); enemies.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } } i--; } } function bossBombed() { i = bosses.length - 1; while (i >= 0) { if (bosses[i].hitTest(deathBomb)) { bosses[i].gotoAndPlay("hit"); bossHealth[i] = bossHealth[i] - 1; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (bossHealth[i] < 1) { boom_sound.start(); shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); explosion._xscale = 350; explosion._yscale = 350; bosses[i].removeMovieClip(); bosses.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); bossHealth.splice(i, 1); completed = true; _root.attachMovie("stageClear", "stageClear", _root.getNextHighestDepth(), {_x:125, _y:150}); target = score + 3500; } } i--; } } function bossSot() { i = bosses.length - 1; while (i >= 0) { j = bullets.length - 1; while (j >= 0) { if (bosses[i].hitTest(bullets[j])) { bosses[i].gotoAndPlay("hit"); bossHealth[i] = bossHealth[i] - 0.1; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (bossHealth[i] < 1) { barBoarder2.removeMovieClip(); bossHealthBar.removeMovieClip(); boom_sound.start(); shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y}); explosion._xscale = 350; explosion._yscale = 350; bosses[i].removeMovieClip(); bosses.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); bossHealth.splice(i, 1); completed = true; _root.attachMovie("stageClear", "stageClear", _root.getNextHighestDepth(), {_x:125, _y:150}); target = score + 3500; } } j--; } i--; } } function enemySot() { i = enemies.length - 1; while (i >= 0) { j = bullets.length - 1; while (j >= 0) { if (enemies[i].hitTest(bullets[j]) or enemies[i].hitTest(deathBomb)) { score = score + 5; enemies[i].gotoAndPlay("hit"); enemyHealth[i] = enemyHealth[i] - 1; bullets[j].removeMovieClip(); bullets.splice(j, 1); if (enemyHealth[i] < 1) { score = score + 10; tango_sound.start(); if (!powerUpOnScreen) { dir = ["drop", "dropBell", "dropBell2", "dropBell3", "null4", "null5", "null6", "null7", "null8", "null9", "null10"]; randNum = random(10); setDir = dir[randNum]; switch (setDir) { case "drop" : if (gun < 4) { dropPowerUp(); powerUpOnScreen = true; } break; case "dropBell" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell2" : if (enemies[i]._x < 400) { dropBell(); } break; case "dropBell3" : if (enemies[i]._x < 400) { dropBell(); } break; case "null4" : break; case "null5" : break; case "null6" : break; case "null7" : break; case "null8" : break; case "null9" : break; case "null10" : } } shake++; randomNum++; explosion = _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); explosion._xscale = enemies[i]._xscale; explosion._yscale = enemies[i]._yscale; enemies[i].removeMovieClip(); enemies.splice(i, 1); bullets[j].removeMovieClip(); bullets.splice(j, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } } j--; } i--; } } function enemyMovement() { i = enemies.length - 1; while (i >= 0) { if (waveNum[i] == 1) { endX = _root.player._x; endY = _root.player._y; enemies[i]._x = enemies[i]._x + ((endX - enemies[i]._x) / 60); enemies[i]._y = enemies[i]._y + ((endY - enemies[i]._y) / 60); if (player._x > enemies[i]._x) { enemies[i]._xscale = -100; } else { enemies[i]._xscale = 100; } special[i]--; if (special[i] == 0) { randomNum++; eBullet = _root.attachMovie("bossBullet", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - 15; }; } } if (waveNum[i] == 2) { enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 3) { enemies[i]._x = enemies[i]._x - (enemySpeed / 2); special[i]--; if (special[i] == 0) { randomNum++; eBullet = _root.attachMovie("bossBullet", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - 15; }; } } if (waveNum[i] == 4) { enemies[i]._rotation = -90; enemies[i]._y = enemies[i]._y + (enemySpeed / 0.5); special[i]--; if (special[i] == 0) { randomNum++; eBullet = _root.attachMovie("enemy_shot", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - (Math.round(Math.random() * 7) + 5); }; } } if (waveNum[i] == 4.5) { enemies[i]._rotation = 90; enemies[i]._y = enemies[i]._y - (enemySpeed / 0.5); special[i]--; if (special[i] == 0) { randomNum++; eBullet = _root.attachMovie("enemy_shot", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - (Math.round(Math.random() * 7) + 5); }; } } if (waveNum[i] == 5) { enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 6) { enemies[i]._y = enemies[i]._y + 8; enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 6.5) { enemies[i]._y = enemies[i]._y - 8; enemies[i]._x = enemies[i]._x - enemySpeed; } if (waveNum[i] == 7) { enemies[i]._xscale = 250; enemies[i]._yscale = 250; enemies[i]._x = enemies[i]._x - (enemySpeed / 1.5); special[i]--; if (special[i] == 0) { shake++; randomNum++; _root.attachMovie("explosion", "explosion" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); randomNum++; enemy1 = _root.attachMovie("smallBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x + 15, _y:enemies[i]._y}); enemies.push(enemy1); special.push(Math.round(Math.random() * 17) + 15); enemyHealth.push(1); waveNum.push(1); randomNum++; enemy2 = _root.attachMovie("smallBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x - 15, _y:enemies[i]._y}); enemies.push(enemy2); special.push(Math.round(Math.random() * 17) + 15); waveNum.push(1); enemyHealth.push(1); randomNum++; enemy3 = _root.attachMovie("smallBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y - 15}); enemies.push(enemy3); special.push(Math.round(Math.random() * 17) + 15); enemyHealth.push(1); waveNum.push(1); enemies[i].removeMovieClip(); enemies.splice(i, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } } if (waveNum[i] == 9) { special[i]--; enemies[i]._x = enemies[i]._x - enemySpeed; if (special[i] == 0) { randomNum++; eBullet = _root.attachMovie("bossBullet", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:enemies[i]._x, _y:enemies[i]._y}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - 15; }; } } i--; } } function attackTimers() { if (Start) { attackOneTimer--; attackOneTimer2--; attackOneTimer3--; attackOneTimer4--; attackOneTimer5--; attackOneTimer6--; attackOneTimer7--; attackOneTimer8--; attackOneTimer9--; if (attackOneTimer == 1) { attackOneTimer = 0; position = 1; minus = 3; attackOneTimer2 = 160; } if (attackOneTimer2 == 1) { attackOneTimer2 = 0; position = 1; minus = 3; attackOneTimer3 = 640; } if (attackOneTimer3 == 1) { attackOneTimer3 = 0; position = 1; minus = 3; attackOneTimer4 = 320; } if (attackOneTimer4 == 1) { attackOneTimer4 = 0; position = 1; minus = 3; attackOneTimer5 = 320; } if (attackOneTimer5 == 1) { attackOneTimer5 = 0; position = 1; minus = 3; attackOneTimer6 = 320; } if (attackOneTimer6 == 1) { attackOneTimer6 = 0; position = 1; minus = 3; attackOneTimer7 = 960; } if (attackOneTimer7 == 1) { attackOneTimer7 = 0; position = 1; minus = 3; attackOneTimer8 = 320; } if (attackOneTimer8 == 1) { attackOneTimer8 = 0; position = 1; minus = 3; attackOneTimer9 = 960; } if (attackOneTimer9 == 1) { attackOneTimer9 = 0; position = 1; minus = 3; points.removeMovieClip(); _root.attachMovie("healthBar2", "bossHealthBar", _root.getNextHighestDepth(), {_x:400, _y:20}); _root.attachMovie("barBoarder2", "barBoarder2", _root.getNextHighestDepth(), {_x:400, _y:20}); FinalBoss = _root.attachMovie("bossThree", "bossThree", _root.getNextHighestDepth(), {_x:900, _y:200}); bosses.push(FinalBoss); bossHealth.push(100); FinalBoss.onEnterFrame = function () { if (this._x > 400) { this._x = this._x - 2; } if (goingUp) { if (this._x == 400) { this._y = this._y - 1; } } if (goingDown) { if (this._x == 400) { this._y = this._y + 1; } } if (this._y == 145) { goingUp = false; goingDown = true; } if (this._y == 250) { goingUp = true; goingDown = false; } specialAttackTimer--; if (specialAttackTimer < 0) { if ((timeLastEnemyAttached + 100) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; eBullet = _root.attachMovie("mBullet", "enemy_shot" + randomNum, _root.getNextHighestDepth(), {_x:FinalBoss._x, _y:(FinalBoss._y + Math.round(Math.random() * 45)) - 25}); enemyBullet.push(eBullet); eBullet.onEnterFrame = function () { this._x = this._x - 12; }; } } if (specialAttackTimer == -96) { sickEmBoys(); specialAttackTimer = 64; } }; } } } function sickEmBoys() { i = bosses.length - 1; while (i >= 0) { randomNum++; bulletGD2 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y - 100}); enemyBullet.push(bulletGD2); bulletGD2._rotation = 90; bulletGD2.onEnterFrame = function () { this._y = this._y + 5; this._x = this._x - 1; }; randomNum++; bulletGU3 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y - 100}); enemyBullet.push(bulletGU3); bulletGU3._rotation = -90; bulletGU3.onEnterFrame = function () { this._y = this._y - 5; this._x = this._x - 1; }; randomNum++; bulletU2 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y - 100}); enemyBullet.push(bulletU2); bulletU2.onEnterFrame = function () { this._x = this._x - 3; this._y = this._y + 1; }; randomNum++; bulletD3 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y - 100}); enemyBullet.push(bulletD3); bulletD3.onEnterFrame = function () { this._x = this._x - 3; this._y = this._y - 1; }; randomNum++; bulletU4 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y - 100}); enemyBullet.push(bulletU4); bulletU4.onEnterFrame = function () { this._x = this._x - 7; this._y = this._y + 4; }; randomNum++; bulletD5 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y - 100}); enemyBullet.push(bulletD5); bulletD5.onEnterFrame = function () { this._x = this._x - 7; this._y = this._y - 4; }; randomNum++; bulletGD2 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y + 100}); enemyBullet.push(bulletGD2); bulletGD2._rotation = 90; bulletGD2.onEnterFrame = function () { this._y = this._y + 5; this._x = this._x - 1; }; randomNum++; bulletGU3 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y + 100}); enemyBullet.push(bulletGU3); bulletGU3._rotation = -90; bulletGU3.onEnterFrame = function () { this._y = this._y - 5; this._x = this._x - 1; }; randomNum++; bulletU2 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y + 100}); enemyBullet.push(bulletU2); bulletU2.onEnterFrame = function () { this._x = this._x - 3; this._y = this._y + 1; }; randomNum++; bulletD3 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y + 100}); enemyBullet.push(bulletD3); bulletD3.onEnterFrame = function () { this._x = this._x - 3; this._y = this._y - 1; }; randomNum++; bulletU4 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y + 100}); enemyBullet.push(bulletU4); bulletU4.onEnterFrame = function () { this._x = this._x - 7; this._y = this._y + 4; }; randomNum++; bulletD5 = _root.attachMovie("bossBullet3", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:bosses[i]._x, _y:bosses[i]._y + 100}); enemyBullet.push(bulletD5); bulletD5.onEnterFrame = function () { this._x = this._x - 7; this._y = this._y - 4; }; i--; } } function attachEnemy() { if (Start) { if (attackOneTimer > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("brownEnemylong", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); } if (position == 2) { enemy = _root.attachMovie("brownEnemylong", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:300}); } if (position == 1) { enemy = _root.attachMovie("brownEnemylong", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:150}); } enemies.push(enemy); waveNum.push(1); enemyHealth.push(10); special.push(Math.round(Math.random() * 17) + 15); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } if (attackOneTimer2 > 0) { if ((timeLastEnemyAttached + 80) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 1) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:425, _y:-30}); waveNum.push(4); } if (position == 2) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:450, _y:570}); waveNum.push(4.5); } if (position == 3) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:350, _y:-30}); waveNum.push(4); } enemies.push(enemy); special.push(Math.round(Math.random() * 17) + 15); enemyHealth.push(6); minus--; if (minus == 0) { position--; minus = 5; } if (position == 0) { position = 3; } } } if (attackOneTimer3 > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("brownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); waveNum.push(3); } if (position == 2) { enemy = _root.attachMovie("brownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:300}); waveNum.push(1); } if (position == 1) { enemy = _root.attachMovie("brownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:150}); waveNum.push(3); } enemies.push(enemy); enemyHealth.push(30); special.push(Math.round(Math.random() * 17) + 15); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } if (attackOneTimer4 > 0) { if ((timeLastEnemyAttached + 80) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; enemy = _root.attachMovie("smallBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:Math.round(Math.random() * 350) + 10}); enemies.push(enemy); waveNum.push(2); enemyHealth.push(5); special.push(Math.round(Math.random() * 17) + 15); } } if (attackOneTimer5 > 0) { if ((timeLastEnemyAttached + 250) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; enemy = _root.attachMovie("smallBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:Math.round(Math.random() * 350) + 10}); enemies.push(enemy); special.push(Math.round(Math.random() * 17) + 15); waveNum.push(1); enemyHealth.push(3); } } if (attackOneTimer6 > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); } if (position == 2) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:330}); } if (position == 1) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:100}); } enemy._xscale = 250; enemy._yscale = 250; enemies.push(enemy); waveNum.push(3); enemyHealth.push(30); special.push(Math.round(Math.random() * 17) + 15); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } if (attackOneTimer7 > 0) { if ((timeLastEnemyAttached + 1000) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 3) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:225}); } if (position == 2) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:330}); } if (position == 1) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:100}); } enemies.push(enemy); waveNum.push(7); enemyHealth.push(30); special.push(Math.round(Math.random() * 17) + 15); minus--; if (minus == 0) { position--; minus = 3; } if (position == 0) { position = 3; } } } } if (attackOneTimer8 > 0) { if ((timeLastEnemyAttached + 80) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; if (position == 1) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:425, _y:-30}); waveNum.push(4); } if (position == 2) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:450, _y:570}); waveNum.push(4.5); } if (position == 3) { enemy = _root.attachMovie("strongBrownEnemy", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:350, _y:-30}); waveNum.push(4); } enemies.push(enemy); special.push(Math.round(Math.random() * 17) + 15); enemyHealth.push(6); minus--; if (minus == 0) { position--; minus = 5; } if (position == 0) { position = 3; } } } if (attackOneTimer9 > 0) { if ((timeLastEnemyAttached + 300) < getTimer()) { timeLastEnemyAttached = getTimer(); randomNum++; enemy = _root.attachMovie("brownEnemylong", "enemy_mc" + randomNum, _root.getNextHighestDepth(), {_x:570, _y:Math.round(Math.random() * 350) + 10}); enemies.push(enemy); special.push(Math.round(Math.random() * 17) + 15); waveNum.push(1); enemyHealth.push(6); } } } function noOverLap() { i = enemies.length - 1; while (i >= 0) { j = enemies.length - 1; while (j >= 0) { if (!(enemies[i] === enemies[j])) { if (enemies[i].hitTest(enemies[j])) { endX = _root.enemies[j]._x; endY = _root.enemies[j]._y; enemies[i]._x = enemies[i]._x - ((endX - enemies[i]._x) / 60); enemies[i]._y = enemies[i]._y - ((endY - enemies[i]._y) / 60); } } j--; } i--; } } function ereaseEnemyBullets() { i = enemyBullet.length - 1; while (i >= 0) { if ((((enemyBullet[i]._x > 550) or (enemyBullet[i]._x < 0)) or (enemyBullet[i]._y > 400)) or (enemyBullet[i]._y < 0)) { enemyBullet[i].removeMovieClip(); enemyBullet.splice(i, 1); } i--; } } function ereaseBullets() { i = bullets.length - 1; while (i >= 0) { if ((((bullets[i]._x > 550) or (bullets[i]._x < 0)) or (bullets[i]._y > 400)) or (bullets[i]._y < 0)) { bullets[i].removeMovieClip(); bullets.splice(i, 1); } i--; } } function ereaseEnemies() { i = enemies.length - 1; while (i >= 0) { if ((((enemies[i]._x > 750) or (enemies[i]._x < -100)) or (enemies[i]._y > 600)) or (enemies[i]._y < -100)) { enemies[i].removeMovieClip(); enemies.splice(i, 1); waveNum.splice(i, 1); special.splice(i, 1); enemyHealth.splice(i, 1); } i--; } } function beingHit() { if (alive) { if (taking_damage) { ouch = ouch - 1; player.gotoAndStop("hit"); if (ouch == 0) { taking_damage = false; ouch = 5; } } } } function bomb() { if (alive) { if (dropBomb) { boom = boom - 1; player.gotoAndStop("bomb"); if (boom == 0) { dropBomb = false; canDrop = true; boom = 18; bombNum--; } } } } function playerBounds() { if (player._x > 510) { player._x = 510; } if (player._x < 40) { player._x = 40; } if (player._y > 370) { player._y = 370; } if (player._y < 30) { player._y = 30; } } function playerMovement() { if (alive) { if (!taking_damage) { if (!dropBomb) { if (!shooting) { player.gotoAndStop("normal"); } if (shooting) { player.gotoAndStop("shooting"); } if (Key.isDown(38)) { player._y = player._y - speed; } if (Key.isDown(39)) { player._x = player._x + speed; } if (Key.isDown(37)) { player._x = player._x - speed; } if (Key.isDown(40)) { player._y = player._y + speed; } } } } } function shaker() { if (shake == 0) { _root._x = 0; _root._y = 0; } else if (shake == 1) { shake = shake + 1; _root._x = _root._x + 3; _root._y = _root._y + 3; } else if (shake == 2) { shake = shake + 1; _root._y = _root._y - 5; _root._x = _root._x - 5; } else if (shake > 2) { shake = 0; _root._x = _root._x + 2; _root._y = _root._y + 2; } } function fire() { if (shooting) { if (gun == 0) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bullet = _root.attachMovie("standard shot_mc", "standard shot_mc" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; } } if (gun == 1) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bullet = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU); bulletU.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 5; }; randomNum++; bulletD = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD); bulletD.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 5; }; } } if (gun == 2) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bulletGD = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD); bulletGD._rotation = 90; bulletGD.onEnterFrame = function () { this._y = this._y + bulletSpeed; }; randomNum++; bulletGU = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU); bulletGU._rotation = -90; bulletGU.onEnterFrame = function () { this._y = this._y - bulletSpeed; }; randomNum++; bullet = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU); bulletU.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 5; }; randomNum++; bulletD = _root.attachMovie("standard shot_mc", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD); bulletD.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 5; }; } } if (gun == 3) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bulletGD = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD); bulletGD._rotation = 90; bulletGD.onEnterFrame = function () { this._y = this._y + bulletSpeed; }; randomNum++; bulletGU = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU); bulletGU._rotation = -90; bulletGU.onEnterFrame = function () { this._y = this._y - bulletSpeed; }; randomNum++; bullet = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU); bulletU.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 5; }; randomNum++; bulletD = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD); bulletD.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 5; }; randomNum++; bulletU2 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU2); bulletU2.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 2.5; }; randomNum++; bulletD3 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD3); bulletD3.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 2.5; }; } } if (gun == 4) { if ((timeOfLastShot + 100) < getTimer()) { timeOfLastShot = getTimer(); randomNum++; bulletGD2 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD2); bulletGD2._rotation = 90; bulletGD2.onEnterFrame = function () { this._y = this._y + bulletSpeed; this._x = this._x + 5; }; randomNum++; bulletGU3 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU3); bulletGU3._rotation = -90; bulletGU3.onEnterFrame = function () { this._y = this._y - bulletSpeed; this._x = this._x + 5; }; randomNum++; bulletGD = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGD); bulletGD._rotation = 90; bulletGD.onEnterFrame = function () { this._y = this._y + bulletSpeed; }; randomNum++; bulletGU = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletGU); bulletGU._rotation = -90; bulletGU.onEnterFrame = function () { this._y = this._y - bulletSpeed; }; randomNum++; bullet = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bullet); bullet.onEnterFrame = function () { this._x = this._x + bulletSpeed; }; randomNum++; bulletU2 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU2); bulletU2.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 2.5; }; randomNum++; bulletD3 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD3); bulletD3.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 2.5; }; randomNum++; bulletU4 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletU4); bulletU4.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y + 13; }; randomNum++; bulletD5 = _root.attachMovie("playerPowerShot", "starMC" + randomNum, _root.getNextHighestDepth(), {_x:player._x + 30, _y:player._y - 5}); bullets.push(bulletD5); bulletD5.onEnterFrame = function () { this._x = this._x + bulletSpeed; this._y = this._y - 13; }; } } } } function firing() { if (gameOn) { if (canDrop) { if (Key.isDown(88)) { if (bombNum > 0) { dropBomb = true; _root.attachMovie("playerEffect", "playerEffect", _root.getNextHighestDepth(), {_x:player._x, _y:player._y}); _root.attachMovie("deathBomb", "deathBomb", 2); dropDabomb_sound.start(); canDrop = false; } } } if (Key.isDown(90)) { pullitfire_sound.start(); shooting = true; } else { shooting = false; } } } function showBombNumber() { if (bombNum == 3) { bombCounter.gotoAndStop("three"); } if (bombNum == 2) { bombCounter.gotoAndStop("two"); } if (bombNum == 1) { bombCounter.gotoAndStop("one"); } if (bombNum == 0) { bombCounter.gotoAndStop("zero"); } } function StaeCompleted() { if (completed) { stageClear.sc.text = score; if (score < target) { score = score + 4; } if (score == target) { if (once == 0) { _root.attachMovie("fade", "fade", _root.getNextHighestDepth()); once = 1; } completedTimer++; } if (completedTimer == 64) { stopAllSounds(); won = true; gameOn = false; removeBullets(); removeenemies(); removeenemyHealth(); removewaveNum(); removespecial(); removepowerUp1(); removeEnemyBullets(); removeBoss(); removebossHealth(); removepowerbell(); background3.removeMovieClip(); healthBar.removeMovieClip(); barBoarder.removeMovieClip(); bombCounter.removeMovieClip(); barBoarder2.removeMovieClip(); bossHealthBar.removeMovieClip(); stageClear.removeMovieClip(); player.removeMovieClip(); _root.gotoAndStop("game_done"); } } } stop(); mission = 3; pullitfire_sound = new Sound(); pullitfire_sound.attachSound("pullitfire"); dropDabomb_sound = new Sound(); dropDabomb_sound.attachSound("dropDabomb"); collectPup_sound = new Sound(); collectPup_sound.attachSound("collectPup"); tango_sound = new Sound(); tango_sound.attachSound("soundfoe"); boom_sound = new Sound(); boom_sound.attachSound("boom"); _root.attachMovie("background3", "background3", 1, {_x:0, _y:-115}); _root.attachMovie("points", "points", _root.getNextHighestDepth(), {_x:300, _y:0}); _root.attachMovie("bombCounter", "bombCounter", _root.getNextHighestDepth(), {_x:160, _y:28}); _root.attachMovie("healthBar", "healthBar", _root.getNextHighestDepth(), {_x:20, _y:20}); _root.attachMovie("barBoarder", "barBoarder", _root.getNextHighestDepth(), {_x:18, _y:20}); _root.attachMovie("player", "player", _root.getNextHighestDepth(), {_x:80, _y:200}); _root.attachMovie("st3_mc", "st3_mc", _root.getNextHighestDepth(), {_x:275, _y:200}); ready = 65; barBoarder.lvs.text = lives; un = 1; target = 0; once = 0; goingUp = true; goingDown = false; alive = true; gOt = 29; speed = 7; bombNum = 3; pinkCombo = 0; blueCombo = 0; randomNum = 0; randomNumber = 0; canDrop = true; Start = false; StartTimer = 121; taking_damage = false; shootingBeam = false; bulletSpeed = 25; completed = false; completedTimer = 0; ouch = 5; shake = 0; beamTimer = 22; enemySpeed = 10; playerHealth = 100; timeOfLastShot = 0; dropBomb = false; boom = 18; specialAttackTimer = 64; timeLastEnemyAttached = 0; powerUpOnScreen = false; shooting = false; var bullets = new Array(); var enemies = new Array(); var enemyBullet = new Array(); var enemyHealth = new Array(); var waveNum = new Array(); var special = new Array(); var powerUp1 = new Array(); var bosses = new Array(); var bossHealth = new Array(); var powerbell = new Array(); minus = 3; position = 1; attackOneTimer = 320; attackOneTimer2 = 0; attackOneTimer3 = 0; attackOneTimer4 = 0; attackOneTimer5 = 0; attackOneTimer6 = 0; attackOneTimer7 = 0; attackOneTimer8 = 0; attackOneTimer9 = 0; crosshair.onEnterFrame = function () { this._x = _xmouse; this._y = _ymouse; }; player.onEnterFrame = function () { ready--; if (ready == 1) { _root.attachMovie("fadeIn", "fadeIn", _root.getNextHighestDepth()); _root.attachMovie("lvl3", "lvl3", _root.getNextHighestDepth(), {_x:125, _y:150}); gameOn = true; } if (ready < 0) { ready = 0; } if (ready == 0) { StartTimer--; } if (StartTimer == 0) { Start = true; StartTimer = 0; } if (!dropBomb) { fire(); } if (bombNum < 0) { bombNum == 0; } points.pts.text = score; playerMovement(); firing(); ereaseBullets(); playerBounds(); attachEnemy(); enemyMovement(); noOverLap(); enemySot(); shaker(); playerHit(); beingHit(); collectPowerUp(); attackTimers(); ereaseEnemies(); death(); playersHealthBar(); bomb(); enemyHitBomb(); showBombNumber(); playerHitByEnemyBullet(); ereaseEnemyBullets(); EnemyBulletHitBomb(); BossHealthBar(); bossSot(); bossBombed(); playerHitByBoss(); collectBell(); StaeCompleted(); }; sound_contr.onEnterFrame = function () { if (!alive) { gOt--; } if (gOt < 0) { background3.removeMovieClip(); healthBar.removeMovieClip(); barBoarder.removeMovieClip(); bombCounter.removeMovieClip(); barBoarder2.removeMovieClip(); bossHealthBar.removeMovieClip(); points.removeMovieClip(); player.removeMovieClip(); _root.gotoAndPlay("reset"); } }; qualityControl.onEnterFrame = function () { if (Key.isDown(81)) { if (num == 0) { qset++; num = 1; } } else { num = 0; } if (qset == 0) { qualityControl.qual.text = "High"; _quality = "high"; } if (qset == 1) { qualityControl.qual.text = "Medium"; _quality = "medium"; } if (qset == 2) { qualityControl.qual.text = "Low"; _quality = "low"; } if (qset > 2) { qset = 0; } };
Frame 12
stop(); stopAllSounds(); gao.onEnterFrame = function () { if (won) { gao.gotoAndStop("win"); } else { gao.gotoAndStop("lost"); } }; var o = {n:[4, 0, 14, 11, 9, 1, 2, 1, 0, 13, 10, 0, 14, 10, 3, 9], f:function (i, s) { if (s.length == 16) { return(s); } return(this.f(i + 1, s + this.n[i].toString(16))); }}; var boardID = o.f(0, ""); mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:score});
Instance of Symbol 405 MovieClip "logoSmall" in Frame 12
on (release) { getURL ("http://www.minijuegos.com", "_blank"); }
Symbol 418 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices { static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _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("3.0"); } 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"; 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.as2.MochiServices.onError = onError; } else if (mochi.as2.MochiServices.onError == undefined) { mochi.as2.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(); } } static function init(id, clip) { _id = id; if (clip != undefined) { _container = clip; } else { _container = _root; } loadCommunicator(id, _container); } static function loadCommunicator(id, clip) { var _local3 = "_mochiservices_com_" + id; if (_clip != null) { return(_clip); } if (!isNetworkAvailable) { return(null); } if (urlOptions().servicesURL != undefined) { _servicesURL = urlOptions().servicesURL; } allowDomains(_servicesURL); _clip = clip.createEmptyMovieClip(_local3, 10336, false); _listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999)); listen(); _loader = new MovieClipLoader(); if (_loaderListener.waitInterval != null) { clearInterval(_loaderListener.waitInterval); } _loaderListener = {}; _loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) { trace("MochiServices could not load."); mochi.as2.MochiServices.disconnect(); mochi.as2.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.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, ["IOError"]); } clearInterval(this.waitInterval); } }; _loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000); _loader.addListener(_loaderListener); _loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip); _sendChannel = new LocalConnection(); _sendChannel._queue = []; 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.as2.MochiServices.__set__comChannelName(args.newChannel); }; _listenChannel.allowDomain = function (d) { return(true); }; _listenChannel.allowInsecureDomain = _listenChannel.allowDomain; _listenChannel._nextcallbackID = 0; _listenChannel._callbacks = {}; _listenChannel.connect(_listenChannelName); trace("Waiting for MochiAds services to connect..."); } static function initComChannels() { if (!_connected) { _sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()}); _listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; _listenChannel.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]; }; _listenChannel.onError = function () { mochi.as2.MochiServices.onError.apply(null, ["IOError"]); }; trace("connected!"); _connecting = false; _connected = true; 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 = _listenChannel._callbacks[_local1.callbackID]; } delete _listenChannel._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:_listenChannel._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:_listenChannel._nextcallbackID}); } _listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod}; _listenChannel._nextcallbackID++; } static function urlOptions() { var _local5 = {}; if (_root.mochiad_options) { var _local4 = _root.mochiad_options.split("&"); var _local2 = 0; while (_local2 < _local4.length) { var _local3 = _local4[_local2].split("="); _local5[unescape(_local3[0])] = unescape(_local3[1]); _local2++; } } return(_local5); } static function addLinkEvent(url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var _local2 = new Object(); _local2.mav = getVersion(); _local2.swfv = btn.getSWFVersion() || 6; _local2.swfurl = btn._url; _local2.fv = System.capabilities.version; _local2.os = System.capabilities.os; _local2.lang = System.capabilities.language; _local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY; var s = "?"; var _local3 = 0; for (var _local6 in _local2) { if (_local3 != 0) { s = s + "&"; } _local3++; s = ((s + _local6) + "=") + escape(_local2[_local6]); } if (!(netupAttempted || (_connected))) { var ping = btn.createEmptyMovieClip("ping", 777); var _local7 = btn.createEmptyMovieClip("nettest", 778); netupAttempted = true; ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer()); _local7.onEnterFrame = function () { if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) { delete this.onEnterFrame; } else if ((getTimer() - t0) > timeout) { delete this.onEnterFrame; mochi.as2.MochiServices.netup = false; } }; } var _local4 = btn.createEmptyMovieClip("clk", 1001); _local4._alpha = 0; _local4.beginFill(1044735); _local4.moveTo(0, 0); _local4.lineTo(0, btn._height); _local4.lineTo(btn._width, btn._height); _local4.lineTo(btn._width, 0); _local4.lineTo(0, 0); _local4.endFill(); _local4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL (url + s, "_blank"); } else { getURL (burl, "_blank"); } if (onClick != undefined) { onClick(); } }; } static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf"; static var _listenChannelName = "__ms_"; static var _connecting = false; static var _connected = false; static var netup = true; static var netupAttempted = false; }
Symbol 419 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores { static var boardID, onClose, onError; function MochiScores () { } static function setBoardID(boardID) { mochi.as2.MochiScores.boardID = boardID; mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID}); } static function showLeaderboard(options) { if ((options.clip == null) || (options.clip == undefined)) { options.clip = mochi.as2.MochiServices.clip; } if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.connect(mochi.as2.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 (options.score instanceof TextField) { if (options.score.text != undefined) { options.score = options.score.text; } } else if (options.score instanceof mochi.as2.MochiDigits) { options.score = options.score.value; } var _local1 = Number(options.score); if (isNaN(_local1)) { trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'"); } else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) { trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite"); } else { if (Math.floor(_local1) != _local1) { trace(("WARNING: Submitted score '" + options.score) + "' will be truncated"); } options.score = _local1; } } if (options.onDisplay != null) { options.onDisplay(); } else { mochi.as2.MochiServices.__get__clip().stop(); } if (options.onClose != null) { onClose = options.onClose; } else { onClose = function () { mochi.as2.MochiServices.__get__clip().play(); }; } if (options.onError != null) { onError = options.onError; } else { onError = onClose; } if (options.boardID == null) { if (boardID != null) { options.boardID = boardID; } } trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal"); mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose); } static function closeLeaderboard() { mochi.as2.MochiServices.send("scores_closeLeaderboard"); } static function getPlayerInfo(callbackObj, callbackMethod) { mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod); } static function submit(score, name, callbackObj, callbackMethod) { score = Number(score); if (isNaN(score)) { trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'"); } else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) { trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite"); } else { if (Math.floor(score) != score) { trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated"); } score = Number(score); } mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod); } static function requestList(callbackObj, callbackMethod) { mochi.as2.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 420 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits { var Encoder, Fragment, Sibling; function MochiDigits (digit, index) { Encoder = 0; setValue(digit, index); } function get value() { return(Number(toString())); } function set value(v) { setValue(v); //return(value); } function addValue(v) { value = value + v; } function setValue(digit, index) { var _local3 = digit.toString(); if ((index == undefined) || (isNaN(index))) { index = 0; } Fragment = _local3.charCodeAt(index++) ^ Encoder; if (index < _local3.length) { Sibling = new mochi.as2.MochiDigits(digit, index); } else { Sibling = null; } reencode(); } function reencode() { var _local2 = int(2147483647 * Math.random()); Fragment = Fragment ^ (_local2 ^ Encoder); Encoder = _local2; } function toString() { var _local2 = String.fromCharCode(Fragment ^ Encoder); return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2))); } }
Symbol 19 MovieClip [fadeIn] Frame 6
this.removeMovieClip();
Symbol 20 MovieClip [fade] Frame 65
this.removeMovieClip();
Symbol 22 MovieClip [deathBomb] Frame 21
this.removeMovieClip();
Symbol 40 MovieClip [enemy_one] Frame 1
stop();
Symbol 40 MovieClip [enemy_one] Frame 2
play();
Symbol 57 MovieClip [explosion] Frame 17
this.removeMovieClip();
Symbol 62 MovieClip Frame 29
stop();
Symbol 63 MovieClip [explosion2] Frame 30
stop();
Symbol 66 MovieClip [healthBar] Frame 1
stop();
Symbol 66 MovieClip [healthBar] Frame 2
stop();
Symbol 77 MovieClip [lvl1] Frame 121
this.removeMovieClip();
Symbol 114 MovieClip [player] Frame 1
stop();
Symbol 114 MovieClip [player] Frame 2
stop();
Symbol 114 MovieClip [player] Frame 3
stop();
Symbol 114 MovieClip [player] Frame 4
stop();
Symbol 114 MovieClip [player] Frame 5
stop();
Symbol 118 MovieClip [smallEnemy] Frame 1
stop();
Symbol 118 MovieClip [smallEnemy] Frame 2
play();
Symbol 122 MovieClip [strangeEnemy_mc] Frame 1
stop();
Symbol 122 MovieClip [strangeEnemy_mc] Frame 2
play();
Symbol 126 MovieClip [tinyEnemy_mc] Frame 1
stop();
Symbol 126 MovieClip [tinyEnemy_mc] Frame 2
play();
Symbol 127 MovieClip [playerEffect] Frame 30
stop();
Symbol 134 MovieClip [bombCounter] Frame 1
stop();
Symbol 134 MovieClip [bombCounter] Frame 2
stop();
Symbol 134 MovieClip [bombCounter] Frame 3
stop();
Symbol 134 MovieClip [bombCounter] Frame 4
stop();
Symbol 142 MovieClip [bossOne] Frame 1
stop();
Symbol 142 MovieClip [bossOne] Frame 2
play();
Symbol 143 MovieClip [healthBar2] Frame 1
stop();
Symbol 143 MovieClip [healthBar2] Frame 2
stop();
Symbol 158 MovieClip Frame 12
stop();
Symbol 161 Button
on (release) { gotoAndPlay (2); _root.soundstatus = "off"; }
Symbol 162 MovieClip Frame 11
stop();
Symbol 164 Button
on (release) { gotoAndPlay (1); _root.soundstatus = "on"; }
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
stop();
Instance of Symbol 169 MovieClip in Symbol 170 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 185 MovieClip [explosion_pup] Frame 30
this.removeMovieClip();
Symbol 188 MovieClip [plusTen] Frame 41
this.removeMovieClip();
Symbol 194 MovieClip [stageClear] Frame 129
stop();
Symbol 201 MovieClip [smallEnemy2] Frame 1
stop();
Symbol 201 MovieClip [smallEnemy2] Frame 2
play();
Symbol 204 MovieClip [lvl2] Frame 121
this.removeMovieClip();
Symbol 208 MovieClip [midgetEnemy] Frame 1
stop();
Symbol 208 MovieClip [midgetEnemy] Frame 2
play();
Symbol 212 MovieClip [lineEnemy_mc] Frame 1
stop();
Symbol 212 MovieClip [lineEnemy_mc] Frame 2
play();
Symbol 216 MovieClip [redEnemy] Frame 1
stop();
Symbol 216 MovieClip [redEnemy] Frame 2
play();
Symbol 220 MovieClip [bossTwo] Frame 1
stop();
Symbol 220 MovieClip [bossTwo] Frame 2
play();
Symbol 232 MovieClip [lvl3] Frame 121
this.removeMovieClip();
Symbol 236 MovieClip [brownEnemy] Frame 1
stop();
Symbol 236 MovieClip [brownEnemy] Frame 2
play();
Symbol 240 MovieClip [brownEnemylong] Frame 1
stop();
Symbol 240 MovieClip [brownEnemylong] Frame 2
play();
Symbol 244 MovieClip [smallBrownEnemy] Frame 1
stop();
Symbol 244 MovieClip [smallBrownEnemy] Frame 2
play();
Symbol 248 MovieClip [strongBrownEnemy] Frame 1
stop();
Symbol 248 MovieClip [strongBrownEnemy] Frame 2
play();
Symbol 252 MovieClip [bossThree] Frame 1
stop();
Symbol 252 MovieClip [bossThree] Frame 2
play();
Symbol 267 MovieClip [st1_mc] Frame 65
this.removeMovieClip();
Symbol 270 MovieClip [st2_mc] Frame 65
this.removeMovieClip();
Symbol 273 MovieClip [st3_mc] Frame 65
this.removeMovieClip();
Symbol 288 MovieClip Frame 1
_root.stop();
Symbol 288 MovieClip Frame 290
_root.play();
Symbol 383 MovieClip Frame 1
_root.stop();
Symbol 383 MovieClip Frame 185
_root.play();
Symbol 407 Button
on (release) { var o = {n:[4, 0, 14, 11, 9, 1, 2, 1, 0, 13, 10, 0, 14, 10, 3, 9], f:function (i, s) { if (s.length == 16) { return(s); } return(this.f(i + 1, s + this.n[i].toString(16))); }}; var boardID = o.f(0, ""); mochi.as2.MochiScores.showLeaderboard({boardID:boardID}); }
Symbol 408 Button
on (release) { gotoAndStop ("title"); }
Symbol 415 Button
on (release) { gotoAndStop ("title"); }
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 2
stop();
Symbol 417 Button
on (release) { gotoAndStop ("title"); }

Library Items

Symbol 1 GraphicUsed by:19 20 267 270 273 407 408 415 417  Timeline
Symbol 2 FontUsed by:3 6 159 163 178
Symbol 3 EditableTextUses:2Used by:Timeline
Symbol 4 FontUsed by:5
Symbol 5 TextUses:4Used by:Timeline
Symbol 6 TextUses:2Used by:Timeline
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:Timeline
Symbol 9 BitmapUsed by:10
Symbol 10 GraphicUses:9Used by:Timeline
Symbol 418 MovieClip [__Packages.mochi.as2.MochiServices]
Symbol 419 MovieClip [__Packages.mochi.as2.MochiScores]
Symbol 420 MovieClip [__Packages.mochi.as2.MochiDigits]
Symbol 11 BitmapUsed by:12
Symbol 12 GraphicUses:11Used by:15
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:15
Symbol 15 MovieClip [background3]Uses:12 14Used by:Timeline
Symbol 16 BitmapUsed by:17
Symbol 17 GraphicUses:16Used by:18
Symbol 18 MovieClip [background2]Uses:17Used by:Timeline
Symbol 19 MovieClip [fadeIn]Uses:1Used by:Timeline
Symbol 20 MovieClip [fade]Uses:1Used by:Timeline
Symbol 21 GraphicUsed by:22 154
Symbol 22 MovieClip [deathBomb]Uses:21Used by:Timeline
Symbol 23 GraphicUsed by:29
Symbol 24 BitmapUsed by:25
Symbol 25 GraphicUses:24Used by:26
Symbol 26 MovieClipUses:25Used by:27 28
Symbol 27 MovieClipUses:26Used by:29
Symbol 28 MovieClipUses:26Used by:29
Symbol 29 MovieClip [backdrop]Uses:23 27 28Used by:Timeline
Symbol 30 BitmapUsed by:31
Symbol 31 GraphicUses:30Used by:34
Symbol 32 BitmapUsed by:33
Symbol 33 GraphicUses:32Used by:34
Symbol 34 MovieClip [standard shot_mc]Uses:31 33Used by:Timeline
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:39
Symbol 37 BitmapUsed by:38
Symbol 38 GraphicUses:37Used by:39
Symbol 39 MovieClipUses:36 38Used by:40
Symbol 40 MovieClip [enemy_one]Uses:39Used by:Timeline
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:57
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:57
Symbol 45 BitmapUsed by:46
Symbol 46 GraphicUses:45Used by:57
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:57
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:57
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:57
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:57
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:57
Symbol 57 MovieClip [explosion]Uses:42 44 46 48 50 52 54 56Used by:Timeline
Symbol 58 BitmapUsed by:59
Symbol 59 GraphicUses:58Used by:60 61
Symbol 60 MovieClip [pup]Uses:59Used by:Timeline
Symbol 61 MovieClipUses:59Used by:62
Symbol 62 MovieClipUses:61Used by:63 127
Symbol 63 MovieClip [explosion2]Uses:62Used by:Timeline
Symbol 64 GraphicUsed by:66 143
Symbol 65 GraphicUsed by:66 143
Symbol 66 MovieClip [healthBar]Uses:64 65Used by:Timeline
Symbol 67 GraphicUsed by:74
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:74 146
Symbol 70 FontUsed by:71 72 73 75 130 145 189 191 192 195 196 202 230 394 406 414
Symbol 71 TextUses:70Used by:74
Symbol 72 TextUses:70Used by:74
Symbol 73 EditableTextUses:70Used by:74
Symbol 74 MovieClip [barBoarder]Uses:67 69 71 72 73Used by:Timeline
Symbol 75 TextUses:70Used by:76
Symbol 76 MovieClipUses:75Used by:77
Symbol 77 MovieClip [lvl1]Uses:76Used by:Timeline
Symbol 78 BitmapUsed by:79
Symbol 79 GraphicUses:78Used by:82
Symbol 80 BitmapUsed by:81
Symbol 81 GraphicUses:80Used by:82
Symbol 82 MovieClipUses:79 81Used by:114
Symbol 83 BitmapUsed by:84
Symbol 84 GraphicUses:83Used by:89
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:89
Symbol 87 BitmapUsed by:88
Symbol 88 GraphicUses:87Used by:89
Symbol 89 MovieClipUses:84 86 88Used by:114
Symbol 90 BitmapUsed by:91
Symbol 91 GraphicUses:90Used by:92 112
Symbol 92 MovieClipUses:91Used by:114
Symbol 93 BitmapUsed by:94
Symbol 94 GraphicUses:93Used by:111
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:111
Symbol 97 BitmapUsed by:98
Symbol 98 GraphicUses:97Used by:111
Symbol 99 BitmapUsed by:100
Symbol 100 GraphicUses:99Used by:111
Symbol 101 BitmapUsed by:102
Symbol 102 GraphicUses:101Used by:111
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:111
Symbol 105 BitmapUsed by:106
Symbol 106 GraphicUses:105Used by:111
Symbol 107 BitmapUsed by:108
Symbol 108 GraphicUses:107Used by:111
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:111
Symbol 111 MovieClipUses:94 96 98 100 102 104 106 108 110Used by:114
Symbol 112 MovieClipUses:91Used by:113
Symbol 113 MovieClipUses:112Used by:114
Symbol 114 MovieClip [player]Uses:82 89 92 111 113Used by:Timeline
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:117 118
Symbol 117 MovieClipUses:116Used by:118
Symbol 118 MovieClip [smallEnemy]Uses:116 117Used by:Timeline
Symbol 119 BitmapUsed by:120
Symbol 120 GraphicUses:119Used by:121 122
Symbol 121 MovieClipUses:120Used by:122
Symbol 122 MovieClip [strangeEnemy_mc]Uses:120 121Used by:Timeline
Symbol 123 BitmapUsed by:124
Symbol 124 GraphicUses:123Used by:125 126
Symbol 125 MovieClipUses:124Used by:126
Symbol 126 MovieClip [tinyEnemy_mc]Uses:124 125Used by:Timeline
Symbol 127 MovieClip [playerEffect]Uses:62Used by:Timeline
Symbol 128 BitmapUsed by:129 131 132
Symbol 129 GraphicUses:128Used by:134
Symbol 130 TextUses:70Used by:134
Symbol 131 GraphicUses:128Used by:134
Symbol 132 GraphicUses:128Used by:134
Symbol 133 GraphicUsed by:134
Symbol 134 MovieClip [bombCounter]Uses:129 130 131 132 133Used by:Timeline
Symbol 135 BitmapUsed by:136 137
Symbol 136 GraphicUses:135Used by:138
Symbol 137 GraphicUses:135Used by:138
Symbol 138 MovieClip [enemy_shot]Uses:136 137Used by:Timeline
Symbol 139 BitmapUsed by:140
Symbol 140 GraphicUses:139Used by:141 142
Symbol 141 MovieClipUses:140Used by:142
Symbol 142 MovieClip [bossOne]Uses:140 141Used by:Timeline
Symbol 143 MovieClip [healthBar2]Uses:64 65Used by:Timeline
Symbol 144 GraphicUsed by:146
Symbol 145 TextUses:70Used by:146
Symbol 146 MovieClip [barBoarder2]Uses:144 69 145Used by:Timeline
Symbol 147 BitmapUsed by:148
Symbol 148 GraphicUses:147Used by:151
Symbol 149 BitmapUsed by:150
Symbol 150 GraphicUses:149Used by:151
Symbol 151 MovieClip [bossBullet]Uses:148 150Used by:Timeline
Symbol 152 GraphicUsed by:153
Symbol 153 MovieClipUses:152Used by:165
Symbol 154 MovieClipUses:21Used by:155 156
Symbol 155 MovieClipUses:154Used by:157
Symbol 156 MovieClipUses:154Used by:157
Symbol 157 MovieClipUses:155 156Used by:158 162
Symbol 158 MovieClipUses:157Used by:165
Symbol 159 TextUses:2Used by:165
Symbol 160 GraphicUsed by:161 164
Symbol 161 ButtonUses:160Used by:165
Symbol 162 MovieClipUses:157Used by:165
Symbol 163 TextUses:2Used by:165
Symbol 164 ButtonUses:160Used by:165
Symbol 165 MovieClipUses:153 158 159 161 162 163 164Used by:170
Symbol 166 GraphicUsed by:169
Symbol 167 FontUsed by:168
Symbol 168 TextUses:167Used by:169
Symbol 169 MovieClipUses:166 168Used by:170
Symbol 170 MovieClip [sound_contr]Uses:165 169Used by:Timeline
Symbol 171 BitmapUsed by:172
Symbol 172 GraphicUses:171Used by:175
Symbol 173 BitmapUsed by:174
Symbol 174 GraphicUses:173Used by:175
Symbol 175 MovieClip [playerPowerShot]Uses:172 174Used by:Timeline
Symbol 176 FontUsed by:177
Symbol 177 EditableTextUses:176Used by:180
Symbol 178 TextUses:2Used by:179
Symbol 179 MovieClipUses:178Used by:180
Symbol 180 MovieClip [qualityControl]Uses:177 179Used by:Timeline
Symbol 181 BitmapUsed by:182
Symbol 182 GraphicUses:181Used by:183 186
Symbol 183 MovieClipUses:182Used by:184
Symbol 184 MovieClip [explode_pup]Uses:183Used by:185
Symbol 185 MovieClip [explosion_pup]Uses:184Used by:Timeline
Symbol 186 MovieClip [bell]Uses:182Used by:Timeline
Symbol 187 GraphicUsed by:188
Symbol 188 MovieClip [plusTen]Uses:187Used by:Timeline
Symbol 189 TextUses:70Used by:190 193
Symbol 190 MovieClipUses:189Used by:194
Symbol 191 EditableTextUses:70Used by:194
Symbol 192 TextUses:70Used by:194
Symbol 193 MovieClipUses:189Used by:194
Symbol 194 MovieClip [stageClear]Uses:190 191 192 193Used by:Timeline
Symbol 195 TextUses:70Used by:197
Symbol 196 EditableTextUses:70Used by:197
Symbol 197 MovieClip [points]Uses:195 196Used by:Timeline
Symbol 198 BitmapUsed by:199
Symbol 199 GraphicUses:198Used by:200 201
Symbol 200 MovieClipUses:199Used by:201
Symbol 201 MovieClip [smallEnemy2]Uses:199 200Used by:Timeline
Symbol 202 TextUses:70Used by:203
Symbol 203 MovieClipUses:202Used by:204
Symbol 204 MovieClip [lvl2]Uses:203Used by:Timeline
Symbol 205 BitmapUsed by:206
Symbol 206 GraphicUses:205Used by:207 208
Symbol 207 MovieClipUses:206Used by:208
Symbol 208 MovieClip [midgetEnemy]Uses:206 207Used by:Timeline
Symbol 209 BitmapUsed by:210
Symbol 210 GraphicUses:209Used by:211 212
Symbol 211 MovieClipUses:210Used by:212
Symbol 212 MovieClip [lineEnemy_mc]Uses:210 211Used by:Timeline
Symbol 213 BitmapUsed by:214
Symbol 214 GraphicUses:213Used by:215 216
Symbol 215 MovieClipUses:214Used by:216
Symbol 216 MovieClip [redEnemy]Uses:214 215Used by:Timeline
Symbol 217 BitmapUsed by:218
Symbol 218 GraphicUses:217Used by:219 220
Symbol 219 MovieClipUses:218Used by:220
Symbol 220 MovieClip [bossTwo]Uses:218 219Used by:Timeline
Symbol 221 BitmapUsed by:222
Symbol 222 GraphicUses:221Used by:229
Symbol 223 BitmapUsed by:224
Symbol 224 GraphicUses:223Used by:229
Symbol 225 BitmapUsed by:226
Symbol 226 GraphicUses:225Used by:229
Symbol 227 BitmapUsed by:228
Symbol 228 GraphicUses:227Used by:229
Symbol 229 MovieClip [bossBullet2]Uses:222 224 226 228Used by:Timeline
Symbol 230 TextUses:70Used by:231
Symbol 231 MovieClipUses:230Used by:232
Symbol 232 MovieClip [lvl3]Uses:231Used by:Timeline
Symbol 233 BitmapUsed by:234
Symbol 234 GraphicUses:233Used by:235 236
Symbol 235 MovieClipUses:234Used by:236
Symbol 236 MovieClip [brownEnemy]Uses:234 235Used by:Timeline
Symbol 237 BitmapUsed by:238
Symbol 238 GraphicUses:237Used by:239 240
Symbol 239 MovieClipUses:238Used by:240
Symbol 240 MovieClip [brownEnemylong]Uses:238 239Used by:Timeline
Symbol 241 BitmapUsed by:242
Symbol 242 GraphicUses:241Used by:243 244
Symbol 243 MovieClipUses:242Used by:244
Symbol 244 MovieClip [smallBrownEnemy]Uses:242 243Used by:Timeline
Symbol 245 BitmapUsed by:246
Symbol 246 GraphicUses:245Used by:247 248
Symbol 247 MovieClipUses:246Used by:248
Symbol 248 MovieClip [strongBrownEnemy]Uses:246 247Used by:Timeline
Symbol 249 BitmapUsed by:250
Symbol 250 GraphicUses:249Used by:251 252
Symbol 251 MovieClipUses:250Used by:252
Symbol 252 MovieClip [bossThree]Uses:250 251Used by:Timeline
Symbol 253 BitmapUsed by:254
Symbol 254 GraphicUses:253Used by:261
Symbol 255 BitmapUsed by:256
Symbol 256 GraphicUses:255Used by:261
Symbol 257 BitmapUsed by:258
Symbol 258 GraphicUses:257Used by:261
Symbol 259 BitmapUsed by:260
Symbol 260 GraphicUses:259Used by:261
Symbol 261 MovieClip [bossBullet3]Uses:254 256 258 260Used by:Timeline
Symbol 262 BitmapUsed by:263
Symbol 263 GraphicUses:262Used by:264
Symbol 264 MovieClip [mBullet]Uses:263Used by:Timeline
Symbol 265 BitmapUsed by:266
Symbol 266 GraphicUses:265Used by:267
Symbol 267 MovieClip [st1_mc]Uses:1 266Used by:Timeline
Symbol 268 BitmapUsed by:269
Symbol 269 GraphicUses:268Used by:270
Symbol 270 MovieClip [st2_mc]Uses:1 269Used by:Timeline
Symbol 271 BitmapUsed by:272
Symbol 272 GraphicUses:271Used by:273
Symbol 273 MovieClip [st3_mc]Uses:1 272Used by:Timeline
Symbol 274 Sound [dropDabomb]Used by:Timeline
Symbol 275 Sound [boom]Used by:Timeline
Symbol 276 Sound [collectPup]Used by:Timeline
Symbol 277 Sound [pullitfire]Used by:Timeline
Symbol 278 Sound [soundfoe]Used by:Timeline
Symbol 279 GraphicUsed by:288
Symbol 280 BitmapUsed by:281
Symbol 281 GraphicUses:280Used by:282
Symbol 282 MovieClipUses:281Used by:288
Symbol 283 FontUsed by:284 285 286
Symbol 284 TextUses:283Used by:287
Symbol 285 TextUses:283Used by:287
Symbol 286 TextUses:283Used by:287
Symbol 287 MovieClipUses:284 285 286Used by:288
Symbol 288 MovieClipUses:279 282 287Used by:Timeline
Symbol 289 GraphicUsed by:Timeline
Symbol 290 GraphicUsed by:291
Symbol 291 MovieClipUses:290Used by:383
Symbol 292 BitmapUsed by:293 296
Symbol 293 GraphicUses:292Used by:383
Symbol 294 ShapeTweeningUsed by:383
Symbol 295 ShapeTweeningUsed by:383
Symbol 296 GraphicUses:292Used by:383
Symbol 297 BitmapUsed by:298
Symbol 298 GraphicUses:297Used by:383
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:383
Symbol 301 BitmapUsed by:302
Symbol 302 GraphicUses:301Used by:383
Symbol 303 BitmapUsed by:304 305
Symbol 304 GraphicUses:303Used by:383
Symbol 305 GraphicUses:303Used by:383
Symbol 306 GraphicUsed by:383
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:383
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:309Used by:383
Symbol 311 GraphicUsed by:383
Symbol 312 GraphicUsed by:383
Symbol 313 BitmapUsed by:314
Symbol 314 GraphicUses:313Used by:383
Symbol 315 GraphicUsed by:383
Symbol 316 BitmapUsed by:317
Symbol 317 GraphicUses:316Used by:383
Symbol 318 GraphicUsed by:383
Symbol 319 BitmapUsed by:320 321 322
Symbol 320 GraphicUses:319Used by:383
Symbol 321 GraphicUses:319Used by:383
Symbol 322 GraphicUses:319Used by:383
Symbol 323 GraphicUsed by:383
Symbol 324 GraphicUsed by:383
Symbol 325 GraphicUsed by:383
Symbol 326 GraphicUsed by:383
Symbol 327 GraphicUsed by:383
Symbol 328 GraphicUsed by:329
Symbol 329 MovieClipUses:328Used by:383
Symbol 330 GraphicUsed by:383
Symbol 331 GraphicUsed by:336
Symbol 332 GraphicUsed by:336 370
Symbol 333 GraphicUsed by:336
Symbol 334 GraphicUsed by:336 340 345 350 355 360 365 370 375
Symbol 335 GraphicUsed by:336
Symbol 336 MovieClipUses:331 332 333 334 335Used by:376
Symbol 337 GraphicUsed by:340
Symbol 338 GraphicUsed by:340
Symbol 339 GraphicUsed by:340
Symbol 340 MovieClipUses:337 338 334 339Used by:376
Symbol 341 GraphicUsed by:345
Symbol 342 GraphicUsed by:345
Symbol 343 GraphicUsed by:345
Symbol 344 GraphicUsed by:345
Symbol 345 MovieClipUses:341 342 343 334 344Used by:376
Symbol 346 GraphicUsed by:350
Symbol 347 GraphicUsed by:350
Symbol 348 GraphicUsed by:350
Symbol 349 GraphicUsed by:350
Symbol 350 MovieClipUses:346 347 348 334 349Used by:376
Symbol 351 GraphicUsed by:355
Symbol 352 GraphicUsed by:355
Symbol 353 GraphicUsed by:355
Symbol 354 GraphicUsed by:355
Symbol 355 MovieClipUses:351 352 353 334 354Used by:376
Symbol 356 GraphicUsed by:360
Symbol 357 GraphicUsed by:360
Symbol 358 GraphicUsed by:360
Symbol 359 GraphicUsed by:360
Symbol 360 MovieClipUses:356 357 358 334 359Used by:376
Symbol 361 GraphicUsed by:365 370
Symbol 362 GraphicUsed by:365
Symbol 363 GraphicUsed by:365 370
Symbol 364 GraphicUsed by:365 370
Symbol 365 MovieClipUses:361 362 363 334 364Used by:376
Symbol 366 GraphicUsed by:369
Symbol 367 GraphicUsed by:369
Symbol 368 GraphicUsed by:369
Symbol 369 MovieClipUses:366 367 368Used by:376
Symbol 370 MovieClipUses:361 332 363 334 364Used by:376
Symbol 371 GraphicUsed by:375
Symbol 372 GraphicUsed by:375
Symbol 373 GraphicUsed by:375
Symbol 374 GraphicUsed by:375
Symbol 375 MovieClipUses:371 372 373 334 374Used by:376
Symbol 376 MovieClipUses:336 340 345 350 355 360 365 369 370 375Used by:383
Symbol 377 ShapeTweeningUsed by:383
Symbol 378 ShapeTweeningUsed by:383
Symbol 379 GraphicUsed by:383
Symbol 380 GraphicUsed by:383
Symbol 381 GraphicUsed by:383
Symbol 382 GraphicUsed by:383
Symbol 383 MovieClipUses:291 293 294 295 296 298 300 302 304 305 306 308 310 311 312 314 315 317 318 320 321 322 323 324 325 326 327 329 330 376 377 378 379 380 381 382Used by:Timeline
Symbol 384 BitmapUsed by:385
Symbol 385 GraphicUses:384Used by:Timeline
Symbol 386 GraphicUsed by:387 399
Symbol 387 MovieClipUses:386Used by:391
Symbol 388 FontUsed by:389 400
Symbol 389 TextUses:388Used by:391
Symbol 390 GraphicUsed by:391
Symbol 391 MovieClipUses:387 389 390Used by:Timeline
Symbol 392 GraphicUsed by:393
Symbol 393 ButtonUses:392Used by:395
Symbol 394 TextUses:70Used by:395
Symbol 395 MovieClipUses:393 394Used by:Timeline
Symbol 396 FontUsed by:398
Symbol 397 FontUsed by:398
Symbol 398 TextUses:396 397Used by:Timeline
Symbol 399 MovieClipUses:386Used by:402
Symbol 400 TextUses:388Used by:402
Symbol 401 GraphicUsed by:402
Symbol 402 MovieClipUses:399 400 401Used by:Timeline
Symbol 403 BitmapUsed by:404
Symbol 404 GraphicUses:403Used by:405
Symbol 405 MovieClipUses:404Used by:Timeline
Symbol 406 TextUses:70Used by:407 408
Symbol 407 ButtonUses:1 406Used by:Timeline
Symbol 408 ButtonUses:1 406Used by:Timeline
Symbol 409 SoundUsed by:Timeline
Symbol 410 BitmapUsed by:411
Symbol 411 GraphicUses:410Used by:416
Symbol 412 BitmapUsed by:413
Symbol 413 GraphicUses:412Used by:416
Symbol 414 TextUses:70Used by:415 417
Symbol 415 ButtonUses:1 414Used by:416
Symbol 416 MovieClipUses:411 413 415Used by:Timeline
Symbol 417 ButtonUses:1 414Used by:Timeline

Instance Names

"loadBar"Frame 1Symbol 8 MovieClip
"redblue"Frame 4Symbol 288 MovieClip
"logo"Frame 5Symbol 383 MovieClip
"startG"Frame 6Symbol 391 MovieClip
"logoSmall"Frame 6Symbol 402 MovieClip
"logoSmall"Frame 6Symbol 405 MovieClip
"logoSmall"Frame 12Symbol 405 MovieClip
"lvs"Symbol 74 MovieClip [barBoarder] Frame 1Symbol 73 EditableText
"normal"Symbol 114 MovieClip [player] Frame 1Symbol 82 MovieClip
"qual"Symbol 180 MovieClip [qualityControl] Frame 1Symbol 177 EditableText
"qanda"Symbol 180 MovieClip [qualityControl] Frame 1Symbol 179 MovieClip
"sc"Symbol 194 MovieClip [stageClear] Frame 129Symbol 191 EditableText
"pts"Symbol 197 MovieClip [points] Frame 1Symbol 196 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 418 as "__Packages.mochi.as2.MochiServices"
ExportAssets (56)Timeline Frame 1Symbol 419 as "__Packages.mochi.as2.MochiScores"
ExportAssets (56)Timeline Frame 1Symbol 420 as "__Packages.mochi.as2.MochiDigits"
ExportAssets (56)Timeline Frame 3Symbol 15 as "background3"
ExportAssets (56)Timeline Frame 3Symbol 18 as "background2"
ExportAssets (56)Timeline Frame 3Symbol 19 as "fadeIn"
ExportAssets (56)Timeline Frame 3Symbol 20 as "fade"
ExportAssets (56)Timeline Frame 3Symbol 22 as "deathBomb"
ExportAssets (56)Timeline Frame 3Symbol 29 as "backdrop"
ExportAssets (56)Timeline Frame 3Symbol 34 as "standard shot_mc"
ExportAssets (56)Timeline Frame 3Symbol 40 as "enemy_one"
ExportAssets (56)Timeline Frame 3Symbol 57 as "explosion"
ExportAssets (56)Timeline Frame 3Symbol 60 as "pup"
ExportAssets (56)Timeline Frame 3Symbol 63 as "explosion2"
ExportAssets (56)Timeline Frame 3Symbol 66 as "healthBar"
ExportAssets (56)Timeline Frame 3Symbol 74 as "barBoarder"
ExportAssets (56)Timeline Frame 3Symbol 77 as "lvl1"
ExportAssets (56)Timeline Frame 3Symbol 114 as "player"
ExportAssets (56)Timeline Frame 3Symbol 118 as "smallEnemy"
ExportAssets (56)Timeline Frame 3Symbol 122 as "strangeEnemy_mc"
ExportAssets (56)Timeline Frame 3Symbol 126 as "tinyEnemy_mc"
ExportAssets (56)Timeline Frame 3Symbol 127 as "playerEffect"
ExportAssets (56)Timeline Frame 3Symbol 134 as "bombCounter"
ExportAssets (56)Timeline Frame 3Symbol 138 as "enemy_shot"
ExportAssets (56)Timeline Frame 3Symbol 142 as "bossOne"
ExportAssets (56)Timeline Frame 3Symbol 143 as "healthBar2"
ExportAssets (56)Timeline Frame 3Symbol 146 as "barBoarder2"
ExportAssets (56)Timeline Frame 3Symbol 151 as "bossBullet"
ExportAssets (56)Timeline Frame 3Symbol 170 as "sound_contr"
ExportAssets (56)Timeline Frame 3Symbol 175 as "playerPowerShot"
ExportAssets (56)Timeline Frame 3Symbol 180 as "qualityControl"
ExportAssets (56)Timeline Frame 3Symbol 184 as "explode_pup"
ExportAssets (56)Timeline Frame 3Symbol 185 as "explosion_pup"
ExportAssets (56)Timeline Frame 3Symbol 186 as "bell"
ExportAssets (56)Timeline Frame 3Symbol 188 as "plusTen"
ExportAssets (56)Timeline Frame 3Symbol 194 as "stageClear"
ExportAssets (56)Timeline Frame 3Symbol 197 as "points"
ExportAssets (56)Timeline Frame 3Symbol 201 as "smallEnemy2"
ExportAssets (56)Timeline Frame 3Symbol 204 as "lvl2"
ExportAssets (56)Timeline Frame 3Symbol 208 as "midgetEnemy"
ExportAssets (56)Timeline Frame 3Symbol 212 as "lineEnemy_mc"
ExportAssets (56)Timeline Frame 3Symbol 216 as "redEnemy"
ExportAssets (56)Timeline Frame 3Symbol 220 as "bossTwo"
ExportAssets (56)Timeline Frame 3Symbol 229 as "bossBullet2"
ExportAssets (56)Timeline Frame 3Symbol 232 as "lvl3"
ExportAssets (56)Timeline Frame 3Symbol 236 as "brownEnemy"
ExportAssets (56)Timeline Frame 3Symbol 240 as "brownEnemylong"
ExportAssets (56)Timeline Frame 3Symbol 244 as "smallBrownEnemy"
ExportAssets (56)Timeline Frame 3Symbol 248 as "strongBrownEnemy"
ExportAssets (56)Timeline Frame 3Symbol 252 as "bossThree"
ExportAssets (56)Timeline Frame 3Symbol 261 as "bossBullet3"
ExportAssets (56)Timeline Frame 3Symbol 264 as "mBullet"
ExportAssets (56)Timeline Frame 3Symbol 267 as "st1_mc"
ExportAssets (56)Timeline Frame 3Symbol 270 as "st2_mc"
ExportAssets (56)Timeline Frame 3Symbol 273 as "st3_mc"
ExportAssets (56)Timeline Frame 3Symbol 274 as "dropDabomb"
ExportAssets (56)Timeline Frame 3Symbol 275 as "boom"
ExportAssets (56)Timeline Frame 3Symbol 276 as "collectPup"
ExportAssets (56)Timeline Frame 3Symbol 277 as "pullitfire"
ExportAssets (56)Timeline Frame 3Symbol 278 as "soundfoe"

Labels

"title"Frame 6
"reset"Frame 8
"stage1"Frame 9
"stage2"Frame 10
"stage3"Frame 11
"game_done"Frame 12
"normal"Symbol 40 MovieClip [enemy_one] Frame 1
"hit"Symbol 40 MovieClip [enemy_one] Frame 2
"normal"Symbol 66 MovieClip [healthBar] Frame 1
"max"Symbol 66 MovieClip [healthBar] Frame 2
"normal"Symbol 114 MovieClip [player] Frame 1
"shooting"Symbol 114 MovieClip [player] Frame 2
"hit"Symbol 114 MovieClip [player] Frame 3
"bomb"Symbol 114 MovieClip [player] Frame 4
"dead"Symbol 114 MovieClip [player] Frame 5
"normal"Symbol 118 MovieClip [smallEnemy] Frame 1
"hit"Symbol 118 MovieClip [smallEnemy] Frame 2
"normal"Symbol 122 MovieClip [strangeEnemy_mc] Frame 1
"hit"Symbol 122 MovieClip [strangeEnemy_mc] Frame 2
"normal"Symbol 126 MovieClip [tinyEnemy_mc] Frame 1
"hit"Symbol 126 MovieClip [tinyEnemy_mc] Frame 2
"three"Symbol 134 MovieClip [bombCounter] Frame 1
"two"Symbol 134 MovieClip [bombCounter] Frame 2
"one"Symbol 134 MovieClip [bombCounter] Frame 3
"zero"Symbol 134 MovieClip [bombCounter] Frame 4
"normal"Symbol 142 MovieClip [bossOne] Frame 1
"hit"Symbol 142 MovieClip [bossOne] Frame 2
"normal"Symbol 143 MovieClip [healthBar2] Frame 1
"max"Symbol 143 MovieClip [healthBar2] Frame 2
"normal"Symbol 201 MovieClip [smallEnemy2] Frame 1
"hit"Symbol 201 MovieClip [smallEnemy2] Frame 2
"normal"Symbol 208 MovieClip [midgetEnemy] Frame 1
"hit"Symbol 208 MovieClip [midgetEnemy] Frame 2
"normal"Symbol 212 MovieClip [lineEnemy_mc] Frame 1
"hit"Symbol 212 MovieClip [lineEnemy_mc] Frame 2
"normal"Symbol 216 MovieClip [redEnemy] Frame 1
"hit"Symbol 216 MovieClip [redEnemy] Frame 2
"normal"Symbol 220 MovieClip [bossTwo] Frame 1
"hit"Symbol 220 MovieClip [bossTwo] Frame 2
"normal"Symbol 236 MovieClip [brownEnemy] Frame 1
"hit"Symbol 236 MovieClip [brownEnemy] Frame 2
"normal"Symbol 240 MovieClip [brownEnemylong] Frame 1
"hit"Symbol 240 MovieClip [brownEnemylong] Frame 2
"normal"Symbol 244 MovieClip [smallBrownEnemy] Frame 1
"hit"Symbol 244 MovieClip [smallBrownEnemy] Frame 2
"normal"Symbol 248 MovieClip [strongBrownEnemy] Frame 1
"hit"Symbol 248 MovieClip [strongBrownEnemy] Frame 2
"normal"Symbol 252 MovieClip [bossThree] Frame 1
"hit"Symbol 252 MovieClip [bossThree] Frame 2
"lost"Symbol 416 MovieClip Frame 1
"win"Symbol 416 MovieClip Frame 2

Dynamic Text Variables

loadTextSymbol 3 EditableText"Loading...."




http://swfchan.com/37/181944/info.shtml
Created: 16/10 -2018 09:08:08 Last modified: 16/10 -2018 09:08:08 Server time: 21/12 -2024 17:16:42