Frame 1
MochiAd.showPreGameAd({id:"1cfe8a05e41f7737", res:"550x400"});
Frame 2
function deadClick() {
}
function gotoMySite() {
getURL ("http://www33.brinkster.com/jewgioh", "_blank");
}
function gotoMyStuff() {
getURL ("http://www.vume.com/photos/browse/byuser/violentaj", "_blank");
}
numBullets = 0;
numMissiles = 0;
playerLives = 5;
missileStock = 2;
score = 0;
ki = 0;
stop();
stopAllSounds();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("\u00A9 2008 ViolentAJ", deadClick);
var mySiteLink = new ContextMenuItem("My Site", gotoMySite);
var myStuffLink = new ContextMenuItem("My Stuff", gotoMyStuff);
copyrightNotice.separatorBefore = true;
myMenu.customItems.push(mySiteLink, myStuffLink, copyrightNotice);
_root.menu = myMenu;
Frame 4
stop();
Frame 11
stop();
numBullets = 0;
numMissiles = 0;
playerLives = 5;
missileStock = 2;
score = 0;
ki = 0;
LevelMoveSpd = 0.75;
this.onEnterFrame = function () {
if (playerLives == 0) {
gotoAndPlay ("gameOver");
stopAllSounds();
}
if (((((boss_bridge._currentframe == 22) && (turret1._currentframe == 21)) && (turret2._currentframe == 21)) && (turret3._currentframe == 21)) && (turret4._currentframe == 21)) {
nextFrame();
}
};
Instance of Symbol 94 MovieClip "firstLevelBoss" in Frame 11
onClipEvent (enterFrame) {
if (this._y >= 184) {
_root.LevelMoveSpd = 0;
}
}
Instance of Symbol 126 MovieClip "player" in Frame 11
onClipEvent (load) {
function fireMissile() {
_root.attachMovie("pl_missile", "pl_missile" + j, _root.getNextHighestDepth());
_root["pl_missile" + j]._x = this._x;
_root["pl_missile" + j]._y = this._y - 26;
}
function detonateMissile() {
_root["pl_missile" + j].play();
}
function fireKi() {
_root.attachMovie("kiAttack", "kiAttack" + k, _root.getNextHighestDepth());
_root["kiAttack" + k]._x = this._x;
_root["kiAttack" + k]._y = this._y;
}
playerspeed = 9;
i = 0;
j = 1;
k = 1;
a = false;
missileKey = false;
}
onClipEvent (enterFrame) {
if (_root.playerLives == -1) {
_root.gotoAndStop("youlose");
}
if (i == 5) {
i = 1;
}
if (j == 2) {
j = 1;
}
if ((Key.isDown(38) && (_y > 25)) && (this._currentframe < 30)) {
_y = (_y - playerspeed);
}
if ((Key.isDown(40) && (_y < 350)) && (this._currentframe < 30)) {
_y = (_y + playerspeed);
}
if ((Key.isDown(37) && (_x > 25)) && (this._currentframe < 30)) {
_x = (_x - playerspeed);
}
if ((Key.isDown(39) && (_x < 525)) && (this._currentframe < 30)) {
_x = (_x + playerspeed);
}
if ((Key.isDown(90) && (_root.numBullets < 4)) && (this._currentframe < 30)) {
if (!a) {
_root.numBullets++;
i++;
_root.attachMovie("bullet", "bullet" + i, _root.getNextHighestDepth());
_root["bullet" + i]._x = this._x;
_root["bullet" + i]._y = this._y - 26;
a = true;
} else {
a = false;
}
}
if (((Key.isDown(88) && (_root.numMissiles == 0)) && (_root.missileStock > 0)) && (this._currentframe < 30)) {
fireMissile();
missileKey = true;
_root.numMissiles++;
_root.missileStock--;
j++;
}
if ((!Key.isDown(88)) && (missileKey)) {
detonateMissile();
missileKey = false;
}
if (((Key.isDown(67) && (k == 1)) && (this._currentframe < 30)) && (_root.ki == 100)) {
fireKi();
_root.ki = _root.ki - 100;
k++;
}
}
Instance of Symbol 164 MovieClip "kibar" in Frame 11
onClipEvent (enterFrame) {
this._xscale = _root.ki;
if (_root.ki == 100) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 12
stopAllSounds();
stop();
Frame 13
stop();
LevelMoveSpd = 0.75;
this.onEnterFrame = function () {
if (playerLives == 0) {
gotoAndPlay ("gameOver");
stopAllSounds();
}
};
Instance of Symbol 126 MovieClip "player" in Frame 13
onClipEvent (load) {
function fireMissile() {
_root.attachMovie("pl_missile", "pl_missile" + j, _root.getNextHighestDepth());
_root["pl_missile" + j]._x = this._x;
_root["pl_missile" + j]._y = this._y - 26;
}
function detonateMissile() {
_root["pl_missile" + j].play();
}
function fireKi() {
_root.attachMovie("kiAttack", "kiAttack" + k, _root.getNextHighestDepth());
_root["kiAttack" + k]._x = this._x;
_root["kiAttack" + k]._y = this._y;
}
playerspeed = 9;
i = 0;
j = 1;
k = 1;
a = false;
missileKey = false;
}
onClipEvent (enterFrame) {
if (i == 5) {
i = 1;
}
if (j == 2) {
j = 1;
}
if ((Key.isDown(38) && (_y > 25)) && (this._currentframe < 30)) {
_y = (_y - playerspeed);
}
if ((Key.isDown(40) && (_y < 350)) && (this._currentframe < 30)) {
_y = (_y + playerspeed);
}
if ((Key.isDown(37) && (_x > 25)) && (this._currentframe < 30)) {
_x = (_x - playerspeed);
}
if ((Key.isDown(39) && (_x < 525)) && (this._currentframe < 30)) {
_x = (_x + playerspeed);
}
if ((Key.isDown(90) && (_root.numBullets < 4)) && (this._currentframe < 30)) {
if (!a) {
_root.numBullets++;
i++;
_root.attachMovie("bullet", "bullet" + i, _root.getNextHighestDepth());
_root["bullet" + i]._x = this._x;
_root["bullet" + i]._y = this._y - 26;
a = true;
} else {
a = false;
}
}
if (((Key.isDown(88) && (_root.numMissiles == 0)) && (_root.missileStock > 0)) && (this._currentframe < 30)) {
fireMissile();
missileKey = true;
_root.numMissiles++;
_root.missileStock--;
j++;
}
if ((!Key.isDown(88)) && (missileKey)) {
detonateMissile();
missileKey = false;
}
if (((Key.isDown(67) && (k == 1)) && (this._currentframe < 30)) && (_root.ki == 100)) {
fireKi();
_root.ki = _root.ki - 100;
k++;
}
}
Instance of Symbol 164 MovieClip "kibar" in Frame 13
onClipEvent (enterFrame) {
this._xscale = _root.ki;
if (_root.ki == 100) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 14
stop();
Frame 15
stop();
LevelMoveSpd = 1.5;
this.onEnterFrame = function () {
if (playerLives == 0) {
gotoAndPlay ("gameOver");
stopAllSounds();
}
};
Instance of Symbol 126 MovieClip "player" in Frame 15
onClipEvent (load) {
function fireMissile() {
_root.attachMovie("pl_missile", "pl_missile" + j, _root.getNextHighestDepth());
_root["pl_missile" + j]._x = this._x;
_root["pl_missile" + j]._y = this._y - 26;
}
function detonateMissile() {
_root["pl_missile" + j].play();
}
function fireKi() {
_root.attachMovie("kiAttack", "kiAttack" + k, _root.getNextHighestDepth());
_root["kiAttack" + k]._x = this._x;
_root["kiAttack" + k]._y = this._y;
}
playerspeed = 9;
i = 0;
j = 1;
k = 1;
a = false;
missileKey = false;
}
onClipEvent (enterFrame) {
if (i == 5) {
i = 1;
}
if (j == 2) {
j = 1;
}
if ((Key.isDown(38) && (_y > 25)) && (this._currentframe < 30)) {
_y = (_y - playerspeed);
}
if ((Key.isDown(40) && (_y < 350)) && (this._currentframe < 30)) {
_y = (_y + playerspeed);
}
if ((Key.isDown(37) && (_x > 25)) && (this._currentframe < 30)) {
_x = (_x - playerspeed);
}
if ((Key.isDown(39) && (_x < 525)) && (this._currentframe < 30)) {
_x = (_x + playerspeed);
}
if ((Key.isDown(90) && (_root.numBullets < 4)) && (this._currentframe < 30)) {
if (!a) {
_root.numBullets++;
i++;
_root.attachMovie("bullet", "bullet" + i, _root.getNextHighestDepth());
_root["bullet" + i]._x = this._x;
_root["bullet" + i]._y = this._y - 26;
a = true;
} else {
a = false;
}
}
if (((Key.isDown(88) && (_root.numMissiles == 0)) && (_root.missileStock > 0)) && (this._currentframe < 30)) {
fireMissile();
missileKey = true;
_root.numMissiles++;
_root.missileStock--;
j++;
}
if ((!Key.isDown(88)) && (missileKey)) {
detonateMissile();
missileKey = false;
}
if (((Key.isDown(67) && (k == 1)) && (this._currentframe < 30)) && (_root.ki == 100)) {
fireKi();
_root.ki = _root.ki - 100;
k++;
}
}
Instance of Symbol 164 MovieClip "kibar" in Frame 15
onClipEvent (enterFrame) {
this._xscale = _root.ki;
if (_root.ki == 100) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 16
stop();
Frame 17
stop();
LevelMoveSpd = 0.75;
this.onEnterFrame = function () {
if (playerLives == 0) {
gotoAndPlay ("gameOver");
stopAllSounds();
}
};
Instance of Symbol 126 MovieClip "player" in Frame 17
onClipEvent (load) {
function fireMissile() {
_root.attachMovie("pl_missile", "pl_missile" + j, _root.getNextHighestDepth());
_root["pl_missile" + j]._x = this._x;
_root["pl_missile" + j]._y = this._y - 26;
}
function detonateMissile() {
_root["pl_missile" + j].play();
}
function fireKi() {
_root.attachMovie("kiAttack", "kiAttack" + k, _root.getNextHighestDepth());
_root["kiAttack" + k]._x = this._x;
_root["kiAttack" + k]._y = this._y;
}
playerspeed = 9;
i = 0;
j = 1;
k = 1;
a = false;
missileKey = false;
}
onClipEvent (enterFrame) {
if (i == 5) {
i = 1;
}
if (j == 2) {
j = 1;
}
if ((Key.isDown(38) && (_y > 25)) && (this._currentframe < 30)) {
_y = (_y - playerspeed);
}
if ((Key.isDown(40) && (_y < 350)) && (this._currentframe < 30)) {
_y = (_y + playerspeed);
}
if ((Key.isDown(37) && (_x > 25)) && (this._currentframe < 30)) {
_x = (_x - playerspeed);
}
if ((Key.isDown(39) && (_x < 525)) && (this._currentframe < 30)) {
_x = (_x + playerspeed);
}
if ((Key.isDown(90) && (_root.numBullets < 4)) && (this._currentframe < 30)) {
if (!a) {
_root.numBullets++;
i++;
_root.attachMovie("bullet", "bullet" + i, _root.getNextHighestDepth());
_root["bullet" + i]._x = this._x;
_root["bullet" + i]._y = this._y - 26;
a = true;
} else {
a = false;
}
}
if (((Key.isDown(88) && (_root.numMissiles == 0)) && (_root.missileStock > 0)) && (this._currentframe < 30)) {
fireMissile();
missileKey = true;
_root.numMissiles++;
_root.missileStock--;
j++;
}
if ((!Key.isDown(88)) && (missileKey)) {
detonateMissile();
missileKey = false;
}
if (((Key.isDown(67) && (k == 1)) && (this._currentframe < 30)) && (_root.ki == 100)) {
fireKi();
_root.ki = _root.ki - 100;
k++;
}
}
Instance of Symbol 164 MovieClip "kibar" in Frame 17
onClipEvent (enterFrame) {
this._xscale = _root.ki;
if (_root.ki == 100) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 18
stop();
Frame 19
stop();
LevelMoveSpd = 2;
this.onEnterFrame = function () {
if (playerLives == 0) {
gotoAndPlay ("gameOver");
stopAllSounds();
}
};
Instance of Symbol 126 MovieClip "player" in Frame 19
onClipEvent (load) {
function fireMissile() {
_root.attachMovie("pl_missile", "pl_missile" + j, _root.getNextHighestDepth());
_root["pl_missile" + j]._x = this._x;
_root["pl_missile" + j]._y = this._y - 26;
}
function detonateMissile() {
_root["pl_missile" + j].play();
}
function fireKi() {
_root.attachMovie("kiAttack", "kiAttack" + k, _root.getNextHighestDepth());
_root["kiAttack" + k]._x = this._x;
_root["kiAttack" + k]._y = this._y;
}
playerspeed = 9;
i = 0;
j = 1;
k = 1;
a = false;
missileKey = false;
}
onClipEvent (enterFrame) {
if (i == 5) {
i = 1;
}
if (j == 2) {
j = 1;
}
if ((Key.isDown(38) && (_y > 25)) && (this._currentframe < 30)) {
_y = (_y - playerspeed);
}
if ((Key.isDown(40) && (_y < 350)) && (this._currentframe < 30)) {
_y = (_y + playerspeed);
}
if ((Key.isDown(37) && (_x > 25)) && (this._currentframe < 30)) {
_x = (_x - playerspeed);
}
if ((Key.isDown(39) && (_x < 525)) && (this._currentframe < 30)) {
_x = (_x + playerspeed);
}
if ((Key.isDown(90) && (_root.numBullets < 4)) && (this._currentframe < 30)) {
if (!a) {
_root.numBullets++;
i++;
_root.attachMovie("bullet", "bullet" + i, _root.getNextHighestDepth());
_root["bullet" + i]._x = this._x;
_root["bullet" + i]._y = this._y - 26;
a = true;
} else {
a = false;
}
}
if (((Key.isDown(88) && (_root.numMissiles == 0)) && (_root.missileStock > 0)) && (this._currentframe < 30)) {
fireMissile();
missileKey = true;
_root.numMissiles++;
_root.missileStock--;
j++;
}
if ((!Key.isDown(88)) && (missileKey)) {
detonateMissile();
missileKey = false;
}
if (((Key.isDown(67) && (k == 1)) && (this._currentframe < 30)) && (_root.ki == 100)) {
fireKi();
_root.ki = _root.ki - 100;
k++;
}
}
Instance of Symbol 164 MovieClip "kibar" in Frame 19
onClipEvent (enterFrame) {
this._xscale = _root.ki;
if (_root.ki == 100) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 20
stop();
Frame 21
LevelMoveSpd = 1;
this.onEnterFrame = function () {
if (playerLives == 0) {
gotoAndPlay ("gameOver");
stopAllSounds();
}
if (((((organ1._currentframe == 12) && (organ2._currentframe == 12)) && (organ3._currentframe == 12)) && (organ4._currentframe == 12)) && (organ5._currentframe == 12)) {
stopAllSounds();
nextFrame();
}
};
Instance of Symbol 126 MovieClip "player" in Frame 21
onClipEvent (load) {
function fireMissile() {
_root.attachMovie("pl_missile", "pl_missile" + j, _root.getNextHighestDepth());
_root["pl_missile" + j]._x = this._x;
_root["pl_missile" + j]._y = this._y - 26;
}
function detonateMissile() {
_root["pl_missile" + j].play();
}
function fireKi() {
_root.attachMovie("kiAttack", "kiAttack" + k, _root.getNextHighestDepth());
_root["kiAttack" + k]._x = this._x;
_root["kiAttack" + k]._y = this._y;
}
playerspeed = 9;
i = 0;
j = 1;
k = 1;
a = false;
missileKey = false;
}
onClipEvent (enterFrame) {
if (i == 5) {
i = 1;
}
if (j == 2) {
j = 1;
}
if ((Key.isDown(38) && (_y > 25)) && (this._currentframe < 30)) {
_y = (_y - playerspeed);
}
if ((Key.isDown(40) && (_y < 350)) && (this._currentframe < 30)) {
_y = (_y + playerspeed);
}
if ((Key.isDown(37) && (_x > 25)) && (this._currentframe < 30)) {
_x = (_x - playerspeed);
}
if ((Key.isDown(39) && (_x < 525)) && (this._currentframe < 30)) {
_x = (_x + playerspeed);
}
if ((Key.isDown(90) && (_root.numBullets < 4)) && (this._currentframe < 30)) {
if (!a) {
_root.numBullets++;
i++;
_root.attachMovie("bullet", "bullet" + i, _root.getNextHighestDepth());
_root["bullet" + i]._x = this._x;
_root["bullet" + i]._y = this._y - 26;
a = true;
} else {
a = false;
}
}
if (((Key.isDown(88) && (_root.numMissiles == 0)) && (_root.missileStock > 0)) && (this._currentframe < 30)) {
fireMissile();
missileKey = true;
_root.numMissiles++;
_root.missileStock--;
j++;
}
if ((!Key.isDown(88)) && (missileKey)) {
detonateMissile();
missileKey = false;
}
if (((Key.isDown(67) && (k == 1)) && (this._currentframe < 30)) && (_root.ki == 100)) {
fireKi();
_root.ki = _root.ki - 100;
k++;
}
}
Instance of Symbol 164 MovieClip "kibar" in Frame 21
onClipEvent (enterFrame) {
this._xscale = _root.ki;
if (_root.ki == 100) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 22
stop();
LevelMoveSpd = 0.5;
Instance of Symbol 357 MovieClip "Cplayer" in Frame 22
onClipEvent (enterFrame) {
if (_root.LevelMoveSpd == 0) {
this._y = this._y - 9;
}
}
Frame 40
stop();
passWord = "password";
numBullets = 0;
numMissiles = 0;
playerLives = 5;
missileStock = 2;
score = 0;
ki = 0;
passbutton.onRelease = function () {
if (passText.text == "hastati") {
gotoAndStop ("level2");
}
if (passText.text == "triarii") {
gotoAndStop ("level3");
}
if (passText.text == "cohors") {
gotoAndStop ("level4");
}
if (passText.text == "auxilia") {
gotoAndStop ("level5");
}
if (passText.text == "velites") {
gotoAndStop ("finalLevel");
}
if (passText.text == "nazi") {
playerLives = 99;
}
if (passText.text == "exit") {
gotoAndStop ("menu");
}
if (passText.text == "credits") {
gotoAndStop ("credits");
}
};
Frame 41
playerLives = 5;
Frame 42
stop();
Symbol 3 MovieClip [turretbullet] Frame 1
movespeed = 16;
xdist = _root.player._x - _x;
ydist = _root.player._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = ((Math.atan2(ydist, xdist) / Math.PI) * 180);
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
this.onEnterFrame = function () {
_x = (_x + xmov);
_y = (_y + ymov);
if ((((__y > Stage.height) || (_y < 0)) || (_x > Stage.width)) || (_x < 0)) {
this.removeMovieClip();
}
if (this.hitTest(_root.kiAttack1)) {
this.removeMovieClip();
}
if (this.hitTest(_root.pl_missile1) && (_root.pl_missile1._currentframe >= 2)) {
this.removeMovieClip();
}
if ((this.hitTest(_root.player) && (_root.player._currentframe < 30)) && (_root.player.invul == false)) {
_root.player.gotoAndPlay(30);
this.removeMovieClip();
}
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (_root._currentframe == 12) {
this.removeMovieClip();
}
if (_root._currentframe == 14) {
this.removeMovieClip();
}
if (_root._currentframe == 16) {
this.removeMovieClip();
}
if (_root.playerLives == 0) {
this.removeMovieClip();
}
};
Symbol 5 MovieClip [badBallRight] Frame 1
this.onEnterFrame = function () {
if ((this.hitTest(_root.player) && (_root.player._currentframe < 30)) && (_root.player.invul == false)) {
_root.player.gotoAndPlay(30);
this.removeMovieClip();
}
if (this.hitTest(_root.pl_missile1) && (_root.pl_missile1._currentframe >= 2)) {
this.removeMovieClip();
}
if (this._y > 420) {
this.removeMovieClip();
}
if (this.hitTest(_root.kiAttack1)) {
this.removeMovieClip();
}
this._y = this._y + 4.9;
this._x = this._x + 4.9;
if (_root.playerLives == 0) {
this.removeMovieClip();
}
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (_root._currentframe == 12) {
this.removeMovieClip();
}
if (_root._currentframe == 14) {
this.removeMovieClip();
}
if (_root._currentframe == 16) {
this.removeMovieClip();
}
};
Symbol 7 MovieClip [badBallLeft] Frame 1
this.onEnterFrame = function () {
if ((this.hitTest(_root.player) && (_root.player._currentframe < 30)) && (_root.player.invul == false)) {
_root.player.gotoAndPlay(30);
this.removeMovieClip();
}
if (this.hitTest(_root.pl_missile1) && (_root.pl_missile1._currentframe >= 2)) {
this.removeMovieClip();
}
if (this._y > 420) {
this.removeMovieClip();
}
if (this.hitTest(_root.kiAttack1)) {
this.removeMovieClip();
}
this._y = this._y + 4.9;
this._x = this._x - 4.9;
if (_root.playerLives == 0) {
this.removeMovieClip();
}
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (_root._currentframe == 12) {
this.removeMovieClip();
}
if (_root._currentframe == 14) {
this.removeMovieClip();
}
if (_root._currentframe == 16) {
this.removeMovieClip();
}
};
Symbol 9 MovieClip [badBall] Frame 1
this.onEnterFrame = function () {
if ((this.hitTest(_root.player) && (_root.player._currentframe < 30)) && (_root.player.invul == false)) {
_root.player.gotoAndPlay(30);
this.removeMovieClip();
}
if (this.hitTest(_root.pl_missile1) && (_root.pl_missile1._currentframe >= 2)) {
this.removeMovieClip();
}
if (this._y > 420) {
this.removeMovieClip();
}
if (this.hitTest(_root.kiAttack1)) {
this.removeMovieClip();
}
this._y = this._y + 7;
if (_root.playerLives == 0) {
this.removeMovieClip();
}
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (_root._currentframe == 12) {
this.removeMovieClip();
}
if (_root._currentframe == 14) {
this.removeMovieClip();
}
if (_root._currentframe == 16) {
this.removeMovieClip();
}
};
Symbol 11 MovieClip [badBulletTri] Frame 1
this.onEnterFrame = function () {
if ((this.hitTest(_root.player) && (_root.player._currentframe < 30)) && (_root.player.invul == false)) {
_root.player.gotoAndPlay(30);
this.removeMovieClip();
}
this._y = this._y + 15;
if (this.hitTest(_root.pl_missile1) && (_root.pl_missile1._currentframe >= 2)) {
this.removeMovieClip();
}
if (this._y > 420) {
this.removeMovieClip();
}
if (this.hitTest(_root.kiAttack1)) {
this.removeMovieClip();
}
if (_root.playerLives == 0) {
this.removeMovieClip();
}
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (_root._currentframe == 12) {
this.removeMovieClip();
}
if (_root._currentframe == 14) {
this.removeMovieClip();
}
if (_root._currentframe == 16) {
this.removeMovieClip();
}
};
Symbol 26 MovieClip [kiAttack] Frame 1
_root.player.invul = true;
this.onEnterFrame = function () {
this._x = _root.player._x;
this._y = _root.player._y;
if (this._currentframe <= 75) {
_root.player.invul = true;
}
if (_root.playerLives == 0) {
this.removeMovieClip();
}
};
Symbol 26 MovieClip [kiAttack] Frame 25
_root.player.invul = true;
Symbol 26 MovieClip [kiAttack] Frame 79
stop();
_root.player.invul = false;
_root.player.beams--;
_root.player.k--;
this.removeMovieClip();
Symbol 29 MovieClip [bullet] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 20;
if (this._y < 0) {
_root.numBullets--;
this.removeMovieClip();
}
if (_root.playerLives == 0) {
this.removeMovieClip();
}
};
Symbol 39 MovieClip [pl_missile] Frame 1
stop();
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y - 19;
}
if (this._y < 0) {
_root.numMissiles--;
this.removeMovieClip();
}
if (this._currentframe == 27) {
_root.numMissiles--;
this.removeMovieClip();
}
if (_root.playerLives == 0) {
this.removeMovieClip();
}
};
Symbol 39 MovieClip [pl_missile] Frame 28
stop();
Symbol 41 MovieClip [badBullet] Frame 1
this.onEnterFrame = function () {
if ((this.hitTest(_root.player) && (_root.player._currentframe < 30)) && (_root.player.invul == false)) {
_root.player.gotoAndPlay(30);
this.removeMovieClip();
}
this._y = this._y + 15;
if (this.hitTest(_root.pl_missile1)) {
this.removeMovieClip();
}
if (this._y > 420) {
this.removeMovieClip();
}
if (this.hitTest(_root.kiAttack1)) {
this.removeMovieClip();
}
if (_root.playerLives == 0) {
this.removeMovieClip();
}
if (_root._currentframe == 2) {
this.removeMovieClip();
}
if (_root._currentframe == 12) {
this.removeMovieClip();
}
if (_root._currentframe == 14) {
this.removeMovieClip();
}
if (_root._currentframe == 16) {
this.removeMovieClip();
}
};
Symbol 393 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
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 _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 51 Button
on (release) {
gotoAndPlay ("level1");
}
Symbol 55 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 59 Button
on (release) {
getURL ("http://www33.brinkster.com/jewgioh/default.htm", "_blank");
}
Symbol 62 Button
on (release) {
gotoAndPlay ("password_input");
}
Symbol 78 Button
on (release) {
nextFrame();
}
Symbol 86 Button
on (release) {
gotoAndStop ("menu");
stopAllSounds();
}
Symbol 90 MovieClip Frame 1
sound = 0;
this.onEnterFrame = function () {
if (_root.player.hitTest(this)) {
sound++;
}
if (sound == 1) {
stopAllSounds();
}
if (sound == 2) {
testSound = new Sound(this);
testSound.attachSound("bossLoop");
testSound.start(0, 99);
}
};
Symbol 92 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.firstLevelBossLine.hitTest(firstLevelBoss)) {
this._y = this._y + 0;
} else {
this._y = this._y + _root.LevelMoveSpd;
}
};
Symbol 94 MovieClip Frame 1
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
if (this._y >= 184) {
_root.LevelMoveSpd = 0;
}
};
Symbol 99 MovieClip Frame 1
stop();
damage = 0;
shotOne = 0;
timer = 0;
this.onEnterFrame = function () {
timer++;
this._y = this._y + _root.LevelMoveSpd;
if (this._y > 440) {
this.removeMovieClip();
}
if (this.hitTest(_root.bullet1) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(3);
}
if (((damage == 49) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 50) {
this.gotoAndPlay(5);
}
if (((damage == 49) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if (((this._y > 0) && (timer == 29)) && (this._currentframe < 4)) {
_root.attachMovie("badBall", "destroyerone" + shotOne, _root.getNextHighestDepth());
_root["destroyerone" + shotOne]._x = this._x - 15.3;
_root["destroyerone" + shotOne]._y = this._y + 44.3;
shotOne++;
}
if (((this._y > 0) && (timer == 50)) && (this._currentframe < 4)) {
_root.attachMovie("badBall", "twodestroyer" + shotOne, _root.getNextHighestDepth());
_root["twodestroyer" + shotOne]._x = this._x + 10.8;
_root["twodestroyer" + shotOne]._y = this._y + 44.3;
shotOne++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 99 MovieClip Frame 4
gotoAndStop (2);
damage++;
Symbol 99 MovieClip Frame 5
damage = 57;
if (_root.ki <= 90) {
_root.ki = _root.ki + 10;
} else {
_root.ki = 100;
}
Symbol 99 MovieClip Frame 6
_root.score = _root.score + 500;
damage = 57;
Symbol 99 MovieClip Frame 21
stop();
Symbol 104 MovieClip Frame 1
stop();
damage = 0;
shotOne = 0;
timer = 0;
this.onEnterFrame = function () {
timer++;
this._y = this._y + _root.LevelMoveSpd;
if (this._y > 440) {
this.removeMovieClip();
}
if (this.hitTest(_root.bullet1) && (damage < 101)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 101)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 101)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 101)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(3);
}
if (((damage == 99) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 100) {
this.gotoAndPlay(5);
}
if (((damage == 99) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if (((this._y > 0) && (timer == 17)) && (this._currentframe < 4)) {
_root.attachMovie("badBulletTri", "bridgefire" + shotOne, _root.getNextHighestDepth());
_root["bridgefire" + shotOne]._x = this._x - 15.3;
_root["bridgefire" + shotOne]._y = this._y + 44.3;
shotOne++;
}
if (((this._y > 0) && (timer == 30)) && (this._currentframe < 4)) {
_root.attachMovie("badBulletTri", "phalanx" + shotOne, _root.getNextHighestDepth());
_root["phalanx" + shotOne]._x = this._x + 10.8;
_root["phalanx" + shotOne]._y = this._y + 44.3;
shotOne++;
}
if (((this._y > 0) && (timer == 46)) && (this._currentframe < 4)) {
_root.attachMovie("badBulletTri", "bridgeshot" + shotOne, _root.getNextHighestDepth());
_root["bridgeshot" + shotOne]._x = this._x + 93.6;
_root["bridgeshot" + shotOne]._y = this._y + 29.3;
shotOne++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 104 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 104 MovieClip Frame 5
damage = 107;
Symbol 104 MovieClip Frame 6
damage = 107;
_root.score = _root.score + 10000;
_root.playerLives++;
Symbol 104 MovieClip Frame 22
stop();
Symbol 105 MovieClip Frame 1
stop();
damage = 0;
shotOne = 0;
timer = 0;
this.onEnterFrame = function () {
timer++;
this._y = this._y + _root.LevelMoveSpd;
if (this._y > 440) {
this.removeMovieClip();
}
if (this.hitTest(_root.bullet1) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(3);
}
if (((damage == 49) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 50) {
this.gotoAndPlay(5);
}
if (((damage == 49) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if (((this._y > 0) && (timer == 29)) && (this._currentframe < 4)) {
_root.attachMovie("badBall", "destroyeroneTr" + shotOne, _root.getNextHighestDepth());
_root["destroyeroneTr" + shotOne]._x = this._x - 15.3;
_root["destroyeroneTr" + shotOne]._y = this._y + 44.3;
shotOne++;
}
if (((this._y > 0) && (timer == 50)) && (this._currentframe < 4)) {
_root.attachMovie("badBall", "twodestroyerTr" + shotOne, _root.getNextHighestDepth());
_root["twodestroyerTr" + shotOne]._x = this._x + 10.8;
_root["twodestroyerTr" + shotOne]._y = this._y + 44.3;
shotOne++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 105 MovieClip Frame 4
gotoAndStop (2);
damage++;
Symbol 105 MovieClip Frame 5
damage = 57;
if (_root.ki <= 90) {
_root.ki = _root.ki + 10;
} else {
_root.ki = 100;
}
Symbol 105 MovieClip Frame 6
_root.score = _root.score + 500;
damage = 57;
Symbol 105 MovieClip Frame 21
stop();
Symbol 106 MovieClip Frame 1
stop();
damage = 0;
shotOne = 0;
timer = 0;
this.onEnterFrame = function () {
timer++;
this._y = this._y + _root.LevelMoveSpd;
if (this._y > 440) {
this.removeMovieClip();
}
if (this.hitTest(_root.bullet1) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(3);
}
if (((damage == 49) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 50) {
this.gotoAndPlay(5);
}
if (((damage == 49) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if (((this._y > 0) && (timer == 29)) && (this._currentframe < 4)) {
_root.attachMovie("badBall", "destroyeroneT" + shotOne, _root.getNextHighestDepth());
_root["destroyeroneT" + shotOne]._x = this._x - 15.3;
_root["destroyeroneT" + shotOne]._y = this._y + 44.3;
shotOne++;
}
if (((this._y > 0) && (timer == 50)) && (this._currentframe < 4)) {
_root.attachMovie("badBall", "twodestroyerT" + shotOne, _root.getNextHighestDepth());
_root["twodestroyerT" + shotOne]._x = this._x + 10.8;
_root["twodestroyerT" + shotOne]._y = this._y + 44.3;
shotOne++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 106 MovieClip Frame 4
gotoAndStop (2);
damage++;
Symbol 106 MovieClip Frame 5
damage = 57;
if (_root.ki <= 90) {
_root.ki = _root.ki + 10;
} else {
_root.ki = 100;
}
Symbol 106 MovieClip Frame 6
_root.score = _root.score + 500;
damage = 57;
Symbol 106 MovieClip Frame 21
stop();
Symbol 107 MovieClip Frame 1
stop();
damage = 0;
shotOne = 0;
timer = 0;
this.onEnterFrame = function () {
timer++;
this._y = this._y + _root.LevelMoveSpd;
if (this._y > 440) {
this.removeMovieClip();
}
if (this.hitTest(_root.bullet1) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 51)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(3);
}
if (((damage == 49) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 50) {
this.gotoAndPlay(5);
}
if (((damage == 49) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if (((this._y > 0) && (timer == 29)) && (this._currentframe < 4)) {
_root.attachMovie("badBall", "destroyeroneQ" + shotOne, _root.getNextHighestDepth());
_root["destroyeroneQ" + shotOne]._x = this._x - 15.3;
_root["destroyeroneQ" + shotOne]._y = this._y + 44.3;
shotOne++;
}
if (((this._y > 0) && (timer == 50)) && (this._currentframe < 4)) {
_root.attachMovie("badBall", "twodestroyerQ" + shotOne, _root.getNextHighestDepth());
_root["twodestroyerQ" + shotOne]._x = this._x + 10.8;
_root["twodestroyerQ" + shotOne]._y = this._y + 44.3;
shotOne++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 107 MovieClip Frame 4
gotoAndStop (2);
damage++;
Symbol 107 MovieClip Frame 5
damage = 57;
if (_root.ki <= 90) {
_root.ki = _root.ki + 10;
} else {
_root.ki = 100;
}
Symbol 107 MovieClip Frame 6
_root.score = _root.score + 500;
damage = 57;
Symbol 107 MovieClip Frame 21
stop();
Symbol 111 MovieClip Frame 1
stop();
damage = 0;
shotOne = 0;
timer = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe < 4) {
this._y = this._y + _root.LevelMoveSpd;
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe < 4)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 5) {
this.gotoAndPlay(5);
}
if (((damage == 4) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if ((((this._y > 0) && (timer == 50)) && (this._currentframe < 4)) && (this._y < 440)) {
_root.attachMovie("badBulletTri", "badBulletTri" + shotOne, _root.getNextHighestDepth());
_root["badBulletTri" + shotOne]._x = this._x;
_root["badBulletTri" + shotOne]._y = this._y + 20;
shotOne++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 111 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 111 MovieClip Frame 5
damage = 10;
if (_root.ki <= 97) {
_root.ki = _root.ki + 3;
} else {
_root.ki = 100;
}
Symbol 111 MovieClip Frame 6
_root.score = _root.score + 500;
damage = 10;
Symbol 111 MovieClip Frame 24
stop();
this.removeMovieClip();
Symbol 114 MovieClip Frame 1
stop();
damage = 0;
shotOne = 0;
timer = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe < 4) {
this._y = this._y + _root.LevelMoveSpd;
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe < 4)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 6)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 5) {
this.gotoAndPlay(5);
}
if (((damage == 4) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if ((((this._y > 0) && (timer == 50)) && (this._currentframe < 4)) && (this._y < 440)) {
_root.attachMovie("badBulletTri", "badBulletTriTrip" + shotOne, _root.getNextHighestDepth());
_root["badBulletTriTrip" + shotOne]._x = this._x;
_root["badBulletTriTrip" + shotOne]._y = this._y + 20;
shotOne++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 114 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 114 MovieClip Frame 5
damage = 10;
if (_root.ki <= 97) {
_root.ki = _root.ki + 3;
} else {
_root.ki = 100;
}
Symbol 114 MovieClip Frame 6
_root.score = _root.score + 500;
damage = 10;
Symbol 114 MovieClip Frame 24
stop();
this.removeMovieClip();
Symbol 117 MovieClip Frame 1
stop();
damage = 0;
shotOne = 0;
timer = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe < 4) {
this._y = this._y + _root.LevelMoveSpd;
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe < 4)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 6)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 5) {
this.gotoAndPlay(5);
}
if (((damage == 4) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if ((((this._y > 0) && (timer == 50)) && (this._currentframe < 4)) && (this._y < 440)) {
_root.attachMovie("badBulletTri", "badBulletTriTwin" + shotOne, _root.getNextHighestDepth());
_root["badBulletTriTwin" + shotOne]._x = this._x;
_root["badBulletTriTwin" + shotOne]._y = this._y + 20;
shotOne++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 117 MovieClip Frame 2
stop();
Symbol 117 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 117 MovieClip Frame 5
damage = 10;
if (_root.ki <= 97) {
_root.ki = _root.ki + 3;
} else {
_root.ki = 100;
}
Symbol 117 MovieClip Frame 6
_root.score = _root.score + 500;
damage = 10;
Symbol 117 MovieClip Frame 24
stop();
this.removeMovieClip();
Symbol 120 MovieClip Frame 1
stop();
trueMove = _root.LevelMoveSpd + 0.8;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + _root.LevelMoveSpd;
}
if ((this._currentframe == 1) && (this._y > -18)) {
this._y = this._y + trueMove;
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.pl_missile1) && (this._currentframe == 1)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._y > 10)) && (this._currentframe == 1)) {
this.gotoAndPlay(3);
}
};
Symbol 120 MovieClip Frame 2
if (_root.ki < 100) {
_root.ki++;
}
Symbol 120 MovieClip Frame 3
_root.score = _root.score + 100;
Symbol 120 MovieClip Frame 11
stop();
this.removeMovieClip();
Symbol 123 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
if (_root.player.hitTest(this) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
};
Symbol 123 MovieClip Frame 2
stop();
if (_root.ki <= 80) {
_root.ki = _root.ki + 20;
} else {
_root.ki = 100;
}
Symbol 126 MovieClip Frame 1
invul = true;
Symbol 126 MovieClip Frame 24
invul = false;
stop();
Symbol 126 MovieClip Frame 30
_root.playerLives--;
Symbol 126 MovieClip Frame 57
this._x = 263;
this._y = 289;
invul = true;
_root.missileStock = 2;
if (_root.ki <= 90) {
_root.ki = _root.ki + 10;
} else {
_root.ki = 100;
}
Symbol 128 MovieClip Frame 1
stop();
timer = 0;
shot = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe == 1) {
this._y = this._y + (_root.LevelMoveSpd + 0.75);
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.pl_missile1)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._currentframe == 1)) && (this._y > 10)) {
this.gotoAndPlay(3);
}
if ((((this._y > 0) && (timer == 50)) && (this._currentframe == 1)) && (this._y < 440)) {
_root.attachMovie("badBullet", "badBullet" + shot, _root.getNextHighestDepth());
_root["badBullet" + shot]._x = this._x;
_root["badBullet" + shot]._y = this._y + 20;
shot++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 128 MovieClip Frame 2
if (_root.ki <= 98) {
_root.ki = _root.ki + 2;
} else {
_root.ki = 100;
}
Symbol 128 MovieClip Frame 3
_root.score = _root.score + 150;
Symbol 128 MovieClip Frame 15
stop();
this.removeMovieClip;
Symbol 130 MovieClip Frame 1
stop();
timer = 0;
shot = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe == 1) {
this._y = this._y + (_root.LevelMoveSpd + 0.75);
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.pl_missile1)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._currentframe == 1)) && (this._y > 10)) {
this.gotoAndPlay(3);
}
if ((((this._y > 0) && (timer == 50)) && (this._currentframe == 1)) && (this._y < 440)) {
_root.attachMovie("badBullet", "badBullettwin" + shot, _root.getNextHighestDepth());
_root["badBullettwin" + shot]._x = this._x;
_root["badBullettwin" + shot]._y = this._y + 20;
shot++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 130 MovieClip Frame 2
if (_root.ki <= 98) {
_root.ki = _root.ki + 2;
} else {
_root.ki = 100;
}
Symbol 130 MovieClip Frame 3
_root.score = _root.score + 150;
Symbol 130 MovieClip Frame 15
stop();
this.removeMovieClip;
Symbol 132 MovieClip Frame 1
stop();
timer = 0;
shot = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe == 1) {
this._y = this._y + (_root.LevelMoveSpd + 0.75);
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.pl_missile1)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._currentframe == 1)) && (this._y > 10)) {
this.gotoAndPlay(3);
}
if ((((this._y > 0) && (timer == 50)) && (this._currentframe == 1)) && (this._y < 440)) {
_root.attachMovie("badBullet", "badBullettrip" + shot, _root.getNextHighestDepth());
_root["badBullettrip" + shot]._x = this._x;
_root["badBullettrip" + shot]._y = this._y + 20;
shot++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 132 MovieClip Frame 2
if (_root.ki <= 98) {
_root.ki = _root.ki + 2;
} else {
_root.ki = 100;
}
Symbol 132 MovieClip Frame 3
_root.score = _root.score + 150;
Symbol 132 MovieClip Frame 15
stop();
this.removeMovieClip;
Symbol 134 MovieClip Frame 1
stop();
timer = 0;
shot = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe == 1) {
this._y = this._y + (_root.LevelMoveSpd + 0.75);
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.pl_missile1)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._currentframe == 1)) && (this._y > 10)) {
this.gotoAndPlay(3);
}
if ((((this._y > 0) && (timer == 50)) && (this._currentframe == 1)) && (this._y < 440)) {
_root.attachMovie("badBullet", "badBulletquad" + shot, _root.getNextHighestDepth());
_root["badBulletquad" + shot]._x = this._x;
_root["badBulletquad" + shot]._y = this._y + 20;
shot++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 134 MovieClip Frame 2
if (_root.ki <= 98) {
_root.ki = _root.ki + 2;
} else {
_root.ki = 100;
}
Symbol 134 MovieClip Frame 3
_root.score = _root.score + 150;
Symbol 134 MovieClip Frame 15
stop();
this.removeMovieClip;
Symbol 136 MovieClip Frame 1
stop();
timer = 0;
shot = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe == 1) {
this._y = this._y + (_root.LevelMoveSpd + 0.75);
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.pl_missile1)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._currentframe == 1)) && (this._y > 10)) {
this.gotoAndPlay(3);
}
if ((((this._y > 0) && (timer == 50)) && (this._currentframe == 1)) && (this._y < 440)) {
_root.attachMovie("badBullet", "badBulletquin" + shot, _root.getNextHighestDepth());
_root["badBulletquin" + shot]._x = this._x;
_root["badBulletquin" + shot]._y = this._y + 20;
shot++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 136 MovieClip Frame 2
if (_root.ki <= 98) {
_root.ki = _root.ki + 2;
} else {
_root.ki = 100;
}
Symbol 136 MovieClip Frame 3
_root.score = _root.score + 150;
Symbol 136 MovieClip Frame 15
stop();
this.removeMovieClip;
Symbol 138 MovieClip Frame 1
stop();
timer = 0;
shot = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe == 1) {
this._y = this._y + (_root.LevelMoveSpd + 0.75);
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.pl_missile1)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._currentframe == 1)) && (this._y > 10)) {
this.gotoAndPlay(3);
}
if ((((this._y > 0) && (timer == 50)) && (this._currentframe == 1)) && (this._y < 440)) {
_root.attachMovie("badBullet", "badBulletsex" + shot, _root.getNextHighestDepth());
_root["badBulletsex" + shot]._x = this._x;
_root["badBulletsex" + shot]._y = this._y + 20;
shot++;
}
if (timer == 51) {
timer = 1;
}
};
Symbol 138 MovieClip Frame 2
if (_root.ki <= 98) {
_root.ki = _root.ki + 2;
} else {
_root.ki = 100;
}
Symbol 138 MovieClip Frame 3
_root.score = _root.score + 150;
Symbol 138 MovieClip Frame 15
stop();
this.removeMovieClip;
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 2
stop();
Symbol 173 Button
on (release) {
stopAllSounds();
nextFrame();
}
Symbol 176 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.secondLevelBossLine.hitTest(secondLevelBoss)) {
this._y = this._y + 0;
} else {
this._y = this._y + _root.LevelMoveSpd;
}
};
Symbol 181 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
if ((this.hitTest(_root.player) && (this._currentframe == 1)) && (_root.player._currentframe < 30)) {
this.play();
}
};
Symbol 181 MovieClip Frame 2
stop();
_root.missileStock++;
Symbol 182 MovieClip Frame 1
stop();
damage = 0;
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (damage < 5)) {
this.gotoAndPlay(3);
}
if (damage == 5) {
this.gotoAndPlay(5);
}
if (((damage == 5) && (this.hitTest(_root.kiAttack1))) && (this._currentframe == 2)) {
this.gotoAndPlay(5);
}
};
Symbol 182 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 182 MovieClip Frame 5
_root.score = _root.score + 50;
damage = 17;
Symbol 182 MovieClip Frame 6
stop();
Symbol 191 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
damage = 0;
this.onEnterFrame = function () {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe < 3)) {
_root.attachMovie("turretbullet", "bturr" + shot, _root.getNextHighestDepth());
_root["bturr" + shot]._x = this._x;
_root["bturr" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (damage < 5)) {
this.gotoAndPlay(3);
}
if ((damage == 5) && (!this.hitTest(_root.kiAttack1))) {
this.gotoAndPlay(5);
}
if (((damage == 5) && (this.hitTest(_root.kiAttack1))) && (this._currentframe == 2)) {
this.gotoAndPlay(6);
}
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 191 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 191 MovieClip Frame 5
damage = 50;
if (_root.ki < 100) {
_root.ki++;
}
Symbol 191 MovieClip Frame 6
damage = 50;
_root.score = _root.score + 100;
Symbol 191 MovieClip Frame 14
stop();
Symbol 194 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
damage = 0;
this.onEnterFrame = function () {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe < 3)) {
_root.attachMovie("turretbullet", "bturrT" + shot, _root.getNextHighestDepth());
_root["bturrT" + shot]._x = this._x;
_root["bturrT" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (damage < 5)) {
this.gotoAndPlay(3);
}
if ((damage == 5) && (!this.hitTest(_root.kiAttack1))) {
this.gotoAndPlay(5);
}
if (((damage == 5) && (this.hitTest(_root.kiAttack1))) && (this._currentframe == 2)) {
this.gotoAndPlay(6);
}
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 194 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 194 MovieClip Frame 5
damage = 50;
if (_root.ki < 100) {
_root.ki++;
}
Symbol 194 MovieClip Frame 6
damage = 50;
_root.score = _root.score + 100;
Symbol 194 MovieClip Frame 14
stop();
Symbol 197 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
damage = 0;
this.onEnterFrame = function () {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe < 3)) {
_root.attachMovie("turretbullet", "bturrTr" + shot, _root.getNextHighestDepth());
_root["bturrTr" + shot]._x = this._x;
_root["bturrTr" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (damage < 5)) {
this.gotoAndPlay(3);
}
if ((damage == 5) && (!this.hitTest(_root.kiAttack1))) {
this.gotoAndPlay(5);
}
if (((damage == 5) && (this.hitTest(_root.kiAttack1))) && (this._currentframe == 2)) {
this.gotoAndPlay(6);
}
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 197 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 197 MovieClip Frame 5
damage = 50;
if (_root.ki < 100) {
_root.ki++;
}
Symbol 197 MovieClip Frame 6
damage = 50;
_root.score = _root.score + 100;
Symbol 197 MovieClip Frame 14
stop();
Symbol 200 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
damage = 0;
this.onEnterFrame = function () {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe < 3)) {
_root.attachMovie("turretbullet", "bturrQ" + shot, _root.getNextHighestDepth());
_root["bturrQ" + shot]._x = this._x;
_root["bturrQ" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (damage < 5)) {
this.gotoAndPlay(3);
}
if ((damage == 5) && (!this.hitTest(_root.kiAttack1))) {
this.gotoAndPlay(5);
}
if (((damage == 5) && (this.hitTest(_root.kiAttack1))) && (this._currentframe == 2)) {
this.gotoAndPlay(6);
}
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 200 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 200 MovieClip Frame 5
damage = 50;
if (_root.ki < 100) {
_root.ki++;
}
Symbol 200 MovieClip Frame 6
damage = 50;
_root.score = _root.score + 100;
Symbol 200 MovieClip Frame 14
stop();
Symbol 203 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
damage = 0;
this.onEnterFrame = function () {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe < 3)) {
_root.attachMovie("turretbullet", "bturrQn" + shot, _root.getNextHighestDepth());
_root["bturrQn" + shot]._x = this._x;
_root["bturrQn" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (damage < 5)) {
this.gotoAndPlay(3);
}
if ((damage == 5) && (!this.hitTest(_root.kiAttack1))) {
this.gotoAndPlay(5);
}
if (((damage == 5) && (this.hitTest(_root.kiAttack1))) && (this._currentframe == 2)) {
this.gotoAndPlay(6);
}
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 203 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 203 MovieClip Frame 5
damage = 50;
if (_root.ki < 100) {
_root.ki++;
}
Symbol 203 MovieClip Frame 6
damage = 50;
_root.score = _root.score + 100;
Symbol 203 MovieClip Frame 14
stop();
Symbol 206 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
damage = 0;
this.onEnterFrame = function () {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe < 3)) {
_root.attachMovie("turretbullet", "bturrS" + shot, _root.getNextHighestDepth());
_root["bturrS" + shot]._x = this._x;
_root["bturrS" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (damage < 5)) {
this.gotoAndPlay(3);
}
if ((damage == 5) && (!this.hitTest(_root.kiAttack1))) {
this.gotoAndPlay(5);
}
if (((damage == 5) && (this.hitTest(_root.kiAttack1))) && (this._currentframe == 2)) {
this.gotoAndPlay(6);
}
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 206 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 206 MovieClip Frame 5
damage = 50;
if (_root.ki < 100) {
_root.ki++;
}
Symbol 206 MovieClip Frame 6
damage = 50;
_root.score = _root.score + 100;
Symbol 206 MovieClip Frame 14
stop();
Symbol 209 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
damage = 0;
this.onEnterFrame = function () {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe < 3)) {
_root.attachMovie("turretbullet", "bturrSp" + shot, _root.getNextHighestDepth());
_root["bturrSp" + shot]._x = this._x;
_root["bturrSp" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (damage < 5)) {
this.gotoAndPlay(3);
}
if ((damage == 5) && (!this.hitTest(_root.kiAttack1))) {
this.gotoAndPlay(5);
}
if (((damage == 5) && (this.hitTest(_root.kiAttack1))) && (this._currentframe == 2)) {
this.gotoAndPlay(6);
}
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 209 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 209 MovieClip Frame 5
damage = 50;
if (_root.ki < 100) {
_root.ki++;
}
Symbol 209 MovieClip Frame 6
damage = 50;
_root.score = _root.score + 100;
Symbol 209 MovieClip Frame 14
stop();
Symbol 212 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
damage = 0;
this.onEnterFrame = function () {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe < 3)) {
_root.attachMovie("turretbullet", "bturrO" + shot, _root.getNextHighestDepth());
_root["bturrO" + shot]._x = this._x;
_root["bturrO" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (damage < 5)) {
this.gotoAndPlay(3);
}
if ((damage == 5) && (!this.hitTest(_root.kiAttack1))) {
this.gotoAndPlay(5);
}
if (((damage == 5) && (this.hitTest(_root.kiAttack1))) && (this._currentframe == 2)) {
this.gotoAndPlay(6);
}
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 212 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 212 MovieClip Frame 5
damage = 50;
if (_root.ki < 100) {
_root.ki++;
}
Symbol 212 MovieClip Frame 6
damage = 50;
_root.score = _root.score + 100;
Symbol 212 MovieClip Frame 14
stop();
Symbol 215 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
damage = 0;
this.onEnterFrame = function () {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe < 3)) {
_root.attachMovie("turretbullet", "bturrNo" + shot, _root.getNextHighestDepth());
_root["bturrNo" + shot]._x = this._x;
_root["bturrNo" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (damage < 5)) {
this.gotoAndPlay(3);
}
if ((damage == 5) && (!this.hitTest(_root.kiAttack1))) {
this.gotoAndPlay(5);
}
if (((damage == 5) && (this.hitTest(_root.kiAttack1))) && (this._currentframe == 2)) {
this.gotoAndPlay(6);
}
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 215 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 215 MovieClip Frame 5
damage = 50;
if (_root.ki < 100) {
_root.ki++;
}
Symbol 215 MovieClip Frame 6
damage = 50;
_root.score = _root.score + 100;
Symbol 215 MovieClip Frame 14
stop();
Symbol 219 MovieClip Frame 1
stop();
timer = 0;
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
if (this._y >= 120) {
_root.LevelMoveSpd = 0;
}
if (((this._y > 0) && (timer == 75)) && (this._currentframe < 4)) {
_root.attachMovie("badBulletTri", "bossBulletTri" + shotOne, _root.getNextHighestDepth());
_root["bossBulletTri" + shotOne]._x = this._x;
_root["bossBulletTri" + shotOne]._y = this._y + 16;
shotOne++;
}
timer++;
if (timer == 76) {
timer = 1;
}
};
Symbol 219 MovieClip Frame 3
_root.secondBossTurr1.gotoAndStop(2);
_root.secondBossTurr2.gotoAndStop(2);
_root.secondBossTurr3.gotoAndStop(2);
_root.secondBossTurr4.gotoAndStop(2);
Symbol 219 MovieClip Frame 41
stop();
stopAllSounds();
_root.nextFrame();
Symbol 222 MovieClip Frame 1
stop();
damage = 0;
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
if (this.hitTest(_root.bullet1) && (damage < 201)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 201)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 201)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 201)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if (((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) && (damage < 199)) {
this.gotoAndPlay(3);
}
if ((((damage == 199) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) && (this._currentframe < 5)) {
this.gotoAndPlay(5);
}
if ((this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) && (damage < 199)) {
this.gotoAndPlay(3);
}
if ((damage >= 200) && (this._currentframe <= 4)) {
this.gotoAndPlay(5);
}
if (((damage == 199) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
};
Symbol 222 MovieClip Frame 3
damage++;
Symbol 222 MovieClip Frame 4
gotoAndStop (2);
Symbol 222 MovieClip Frame 5
damage = 900;
Symbol 222 MovieClip Frame 6
_root.score = _root.score + 10000;
_root.playerLives++;
damage = 900;
_root.secondBoss.gotoAndPlay(3);
if (_root.ki <= 50) {
_root.ki = _root.ki + 50;
} else {
_root.ki = 100;
}
stop();
Symbol 224 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe == 1)) {
_root.attachMovie("turretbullet", "BbturrT" + shot, _root.getNextHighestDepth());
_root["BbturrT" + shot]._x = this._x;
_root["BbturrT" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
};
Symbol 224 MovieClip Frame 2
stop();
Symbol 226 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe == 1)) {
_root.attachMovie("turretbullet", "Bbturr" + shot, _root.getNextHighestDepth());
_root["Bbturr" + shot]._x = this._x;
_root["Bbturr" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
};
Symbol 226 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe == 1)) {
_root.attachMovie("turretbullet", "BbturrTr" + shot, _root.getNextHighestDepth());
_root["BbturrTr" + shot]._x = this._x;
_root["BbturrTr" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
};
Symbol 228 MovieClip Frame 2
stop();
Symbol 230 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe == 1)) {
_root.attachMovie("turretbullet", "BbturrQ" + shot, _root.getNextHighestDepth());
_root["BbturrQ" + shot]._x = this._x;
_root["BbturrQ" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
};
Symbol 230 MovieClip Frame 2
stop();
Symbol 232 MovieClip Frame 1
stop();
dir = "left";
timer = 0;
shot = 0;
xspd = 5;
minX = _x - 50;
maxX = _x + 50;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + (_root.LevelMoveSpd + 0.8);
}
if ((dir == "left") && (this._currentframe == 1)) {
this._x = this._x - xspd;
}
if ((dir == "right") && (this._currentframe == 1)) {
this._x = this._x + xspd;
}
if (this._x > maxX) {
dir = "left";
}
if (this._x < minX) {
dir = "right";
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe == 1)) && (_root.pl_missile1._currentframe > 2)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._y > 10)) && (this._currentframe == 1)) {
this.gotoAndPlay(3);
}
if ((((this._y > 0) && (timer == 75)) && (this._currentframe == 1)) && (this._y < 420)) {
_root.attachMovie("badBullet", "zZ" + shot, _root.getNextHighestDepth());
_root["zZ" + shot]._x = this._x - 10.4;
_root["zZ" + shot]._y = this._y + 17.7;
shot++;
}
if ((((this._y > 0) && (timer == 75)) && (this._currentframe == 1)) && (this._y < 420)) {
_root.attachMovie("badBullet", "zed" + shot, _root.getNextHighestDepth());
_root["zed" + shot]._x = this._x + 10.4;
_root["zed" + shot]._y = this._y + 17.7;
shot++;
}
timer++;
if (timer == 76) {
timer = 1;
}
};
Symbol 232 MovieClip Frame 2
if (_root.ki <= 97) {
_root.ki = _root.ki + 3;
} else {
_root.ki = 100;
}
Symbol 232 MovieClip Frame 3
_root.score = _root.score + 300;
Symbol 232 MovieClip Frame 15
stop();
this.removeMovieClip();
Symbol 234 MovieClip Frame 1
stop();
dir = "left";
timer = 0;
shot = 0;
xspd = 5;
minX = _x - 50;
maxX = _x + 50;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + (_root.LevelMoveSpd + 0.8);
}
if ((dir == "left") && (this._currentframe == 1)) {
this._x = this._x - xspd;
}
if ((dir == "right") && (this._currentframe == 1)) {
this._x = this._x + xspd;
}
if (this._x > maxX) {
dir = "left";
}
if (this._x < minX) {
dir = "right";
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe == 1)) && (_root.pl_missile1._currentframe > 2)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._y > 10)) && (this._currentframe == 1)) {
this.gotoAndPlay(3);
}
if ((((this._y > 0) && (timer == 75)) && (this._currentframe == 1)) && (this._y < 420)) {
_root.attachMovie("badBullet", "zZT" + shot, _root.getNextHighestDepth());
_root["zZT" + shot]._x = this._x - 10.4;
_root["zZT" + shot]._y = this._y + 17.7;
shot++;
}
if ((((this._y > 0) && (timer == 75)) && (this._currentframe == 1)) && (this._y < 420)) {
_root.attachMovie("badBullet", "zedT" + shot, _root.getNextHighestDepth());
_root["zedT" + shot]._x = this._x + 10.4;
_root["zedT" + shot]._y = this._y + 17.7;
shot++;
}
timer++;
if (timer == 76) {
timer = 1;
}
};
Symbol 234 MovieClip Frame 2
if (_root.ki <= 97) {
_root.ki = _root.ki + 3;
} else {
_root.ki = 100;
}
Symbol 234 MovieClip Frame 3
_root.score = _root.score + 300;
Symbol 234 MovieClip Frame 15
stop();
this.removeMovieClip();
Symbol 236 MovieClip Frame 1
stop();
dir = "left";
timer = 0;
shot = 0;
xspd = 5;
minX = _x - 50;
maxX = _x + 50;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + (_root.LevelMoveSpd + 0.8);
}
if ((dir == "left") && (this._currentframe == 1)) {
this._x = this._x - xspd;
}
if ((dir == "right") && (this._currentframe == 1)) {
this._x = this._x + xspd;
}
if (this._x > maxX) {
dir = "left";
}
if (this._x < minX) {
dir = "right";
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe == 1)) && (_root.pl_missile1._currentframe > 2)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._y > 10)) && (this._currentframe == 1)) {
this.gotoAndPlay(3);
}
if ((((this._y > 0) && (timer == 75)) && (this._currentframe == 1)) && (this._y < 420)) {
_root.attachMovie("badBullet", "zZTr" + shot, _root.getNextHighestDepth());
_root["zZTr" + shot]._x = this._x - 10.4;
_root["zZTr" + shot]._y = this._y + 17.7;
shot++;
}
if ((((this._y > 0) && (timer == 75)) && (this._currentframe == 1)) && (this._y < 420)) {
_root.attachMovie("badBullet", "zedTr" + shot, _root.getNextHighestDepth());
_root["zedTr" + shot]._x = this._x + 10.4;
_root["zedTr" + shot]._y = this._y + 17.7;
shot++;
}
timer++;
if (timer == 76) {
timer = 1;
}
};
Symbol 236 MovieClip Frame 2
if (_root.ki <= 97) {
_root.ki = _root.ki + 3;
} else {
_root.ki = 100;
}
Symbol 236 MovieClip Frame 3
_root.score = _root.score + 300;
Symbol 236 MovieClip Frame 15
stop();
this.removeMovieClip();
Symbol 238 MovieClip Frame 1
stop();
dir = "left";
timer = 0;
shot = 0;
xspd = 5;
minX = _x - 50;
maxX = _x + 50;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + (_root.LevelMoveSpd + 0.8);
}
if ((dir == "left") && (this._currentframe == 1)) {
this._x = this._x - xspd;
}
if ((dir == "right") && (this._currentframe == 1)) {
this._x = this._x + xspd;
}
if (this._x > maxX) {
dir = "left";
}
if (this._x < minX) {
dir = "right";
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe == 1)) && (_root.pl_missile1._currentframe > 2)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._y > 10)) && (this._currentframe == 1)) {
this.gotoAndPlay(3);
}
if ((((this._y > 0) && (timer == 75)) && (this._currentframe == 1)) && (this._y < 420)) {
_root.attachMovie("badBullet", "zZQ" + shot, _root.getNextHighestDepth());
_root["zZQ" + shot]._x = this._x - 10.4;
_root["zZQ" + shot]._y = this._y + 17.7;
shot++;
}
if ((((this._y > 0) && (timer == 75)) && (this._currentframe == 1)) && (this._y < 420)) {
_root.attachMovie("badBullet", "zedQ" + shot, _root.getNextHighestDepth());
_root["zedQ" + shot]._x = this._x + 10.4;
_root["zedQ" + shot]._y = this._y + 17.7;
shot++;
}
timer++;
if (timer == 76) {
timer = 1;
}
};
Symbol 238 MovieClip Frame 2
if (_root.ki <= 97) {
_root.ki = _root.ki + 3;
} else {
_root.ki = 100;
}
Symbol 238 MovieClip Frame 3
_root.score = _root.score + 300;
Symbol 238 MovieClip Frame 15
stop();
this.removeMovieClip();
Symbol 240 MovieClip Frame 1
stop();
dir = "left";
timer = 0;
shot = 0;
xspd = 5;
minX = _x - 50;
maxX = _x + 50;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + (_root.LevelMoveSpd + 0.8);
}
if ((dir == "left") && (this._currentframe == 1)) {
this._x = this._x - xspd;
}
if ((dir == "right") && (this._currentframe == 1)) {
this._x = this._x + xspd;
}
if (this._x > maxX) {
dir = "left";
}
if (this._x < minX) {
dir = "right";
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe == 1)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (this._currentframe == 1)) {
this.play();
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (this._currentframe == 1)) {
this.play();
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (this._currentframe == 1)) {
this.play();
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (this._currentframe == 1)) {
this.play();
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe == 1)) && (_root.pl_missile1._currentframe > 2)) {
this.play();
}
if ((this.hitTest(_root.kiAttack1) && (this._y > 10)) && (this._currentframe == 1)) {
this.gotoAndPlay(3);
}
if ((((this._y > 0) && (timer == 75)) && (this._currentframe == 1)) && (this._y < 420)) {
_root.attachMovie("badBullet", "zZQn" + shot, _root.getNextHighestDepth());
_root["zZQn" + shot]._x = this._x - 10.4;
_root["zZQn" + shot]._y = this._y + 17.7;
shot++;
}
if ((((this._y > 0) && (timer == 75)) && (this._currentframe == 1)) && (this._y < 420)) {
_root.attachMovie("badBullet", "zedQn" + shot, _root.getNextHighestDepth());
_root["zedQn" + shot]._x = this._x + 10.4;
_root["zedQn" + shot]._y = this._y + 17.7;
shot++;
}
timer++;
if (timer == 76) {
timer = 1;
}
};
Symbol 240 MovieClip Frame 2
if (_root.ki <= 97) {
_root.ki = _root.ki + 3;
} else {
_root.ki = 100;
}
Symbol 240 MovieClip Frame 3
_root.score = _root.score + 300;
Symbol 240 MovieClip Frame 15
stop();
this.removeMovieClip();
Symbol 250 MovieClip Frame 1
sound = 0;
this.onEnterFrame = function () {
if (_root.player.hitTest(this)) {
sound++;
}
if (sound == 1) {
stopAllSounds();
}
if (sound == 2) {
_root.nextFrame();
}
};
Symbol 252 MovieClip Frame 1
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 256 MovieClip Frame 1
stop();
timer = 0;
damage = 0;
shot = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe < 4) {
this._y = this._y + (_root.LevelMoveSpd + 0.05);
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe < 4)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(3);
}
if (((damage == 9) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 10) {
this.gotoAndPlay(5);
}
if (((damage == 9) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if (timer == 49) {
timer = 1;
}
if (((this._currentframe < 5) && (this._y > 0)) && (timer == 48)) {
_root.attachMovie("badBall", "blueForward" + shot, _root.getNextHighestDepth());
_root["blueForward" + shot]._x = this._x;
_root["blueForward" + shot]._y = this._y - 10;
shot++;
_root.attachMovie("badBallLeft", "blueLeft" + shot, _root.getNextHighestDepth());
_root["blueLeft" + shot]._x = this._x;
_root["blueLeft" + shot]._y = this._y - 10;
_root.attachMovie("badBallRight", "blueRight" + shot, _root.getNextHighestDepth());
_root["blueRight" + shot]._x = this._x;
_root["blueRight" + shot]._y = this._y - 10;
}
};
Symbol 256 MovieClip Frame 2
stop();
Symbol 256 MovieClip Frame 4
gotoAndStop (2);
damage++;
Symbol 256 MovieClip Frame 5
damage = 17;
if (_root.ki <= 93) {
_root.ki = _root.ki + 7;
} else {
_root.ki = 100;
}
Symbol 256 MovieClip Frame 6
damage = 17;
_root.score = _root.score + 750;
Symbol 256 MovieClip Frame 20
stop();
this.removeMovieClip();
Symbol 259 MovieClip Frame 1
stop();
timer = 0;
damage = 0;
shot = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe < 4) {
this._y = this._y + (_root.LevelMoveSpd + 0.05);
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe < 4)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(3);
}
if (((damage == 9) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 10) {
this.gotoAndPlay(5);
}
if (((damage == 9) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if (timer == 49) {
timer = 1;
}
if (((this._currentframe < 5) && (this._y > 0)) && (timer == 48)) {
_root.attachMovie("badBall", "blueForwardT" + shot, _root.getNextHighestDepth());
_root["blueForwardT" + shot]._x = this._x;
_root["blueForwardT" + shot]._y = this._y - 10;
shot++;
_root.attachMovie("badBallLeft", "blueLeftT" + shot, _root.getNextHighestDepth());
_root["blueLeftT" + shot]._x = this._x;
_root["blueLeftT" + shot]._y = this._y - 10;
_root.attachMovie("badBallRight", "blueRightT" + shot, _root.getNextHighestDepth());
_root["blueRightT" + shot]._x = this._x;
_root["blueRightT" + shot]._y = this._y - 10;
}
};
Symbol 259 MovieClip Frame 2
stop();
Symbol 259 MovieClip Frame 4
gotoAndStop (2);
damage++;
Symbol 259 MovieClip Frame 5
damage = 17;
if (_root.ki <= 93) {
_root.ki = _root.ki + 7;
} else {
_root.ki = 100;
}
Symbol 259 MovieClip Frame 6
damage = 17;
_root.score = _root.score + 750;
Symbol 259 MovieClip Frame 20
stop();
this.removeMovieClip();
Symbol 262 MovieClip Frame 1
stop();
timer = 0;
damage = 0;
shot = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe < 4) {
this._y = this._y + (_root.LevelMoveSpd + 0.05);
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe < 4)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(3);
}
if (((damage == 9) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 10) {
this.gotoAndPlay(5);
}
if (((damage == 9) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if (timer == 49) {
timer = 1;
}
if (((this._currentframe < 5) && (this._y > 0)) && (timer == 48)) {
_root.attachMovie("badBall", "blueForwardTr" + shot, _root.getNextHighestDepth());
_root["blueForwardTr" + shot]._x = this._x;
_root["blueForwardTr" + shot]._y = this._y - 10;
shot++;
_root.attachMovie("badBallLeft", "blueLeftTr" + shot, _root.getNextHighestDepth());
_root["blueLeftTr" + shot]._x = this._x;
_root["blueLeftTr" + shot]._y = this._y - 10;
_root.attachMovie("badBallRight", "blueRightTr" + shot, _root.getNextHighestDepth());
_root["blueRightTr" + shot]._x = this._x;
_root["blueRightTr" + shot]._y = this._y - 10;
}
};
Symbol 262 MovieClip Frame 2
stop();
Symbol 262 MovieClip Frame 4
gotoAndStop (2);
damage++;
Symbol 262 MovieClip Frame 5
damage = 17;
if (_root.ki <= 93) {
_root.ki = _root.ki + 7;
} else {
_root.ki = 100;
}
Symbol 262 MovieClip Frame 6
damage = 17;
_root.score = _root.score + 750;
Symbol 262 MovieClip Frame 20
stop();
this.removeMovieClip();
Symbol 265 MovieClip Frame 1
stop();
timer = 0;
damage = 0;
shot = 0;
this.onEnterFrame = function () {
timer++;
if (this._currentframe < 4) {
this._y = this._y + (_root.LevelMoveSpd + 0.05);
}
if (this._y > 440) {
this.removeMovieClip();
}
if (((_root.player.hitTest(this) && (_root.player.invul == false)) && (_root.player._currentframe < 30)) && (this._currentframe < 4)) {
_root.player.gotoAndPlay("death");
}
if (this.hitTest(_root.bullet1) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 11)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(3);
}
if (((damage == 9) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 5)) {
this.gotoAndPlay(3);
}
if (damage == 10) {
this.gotoAndPlay(5);
}
if (((damage == 9) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 5)) {
this.gotoAndPlay(6);
}
if (timer == 49) {
timer = 1;
}
if (((this._currentframe < 5) && (this._y > 0)) && (timer == 48)) {
_root.attachMovie("badBall", "blueForwardQuad" + shot, _root.getNextHighestDepth());
_root["blueForwardQuad" + shot]._x = this._x;
_root["blueForwardQuad" + shot]._y = this._y - 10;
shot++;
_root.attachMovie("badBallLeft", "blueLeftQ" + shot, _root.getNextHighestDepth());
_root["blueLeftQ" + shot]._x = this._x;
_root["blueLeftQ" + shot]._y = this._y - 10;
_root.attachMovie("badBallRight", "blueRightQ" + shot, _root.getNextHighestDepth());
_root["blueRightQ" + shot]._x = this._x;
_root["blueRightQ" + shot]._y = this._y - 10;
}
};
Symbol 265 MovieClip Frame 2
stop();
Symbol 265 MovieClip Frame 4
gotoAndStop (2);
damage++;
Symbol 265 MovieClip Frame 5
damage = 17;
if (_root.ki <= 93) {
_root.ki = _root.ki + 7;
} else {
_root.ki = 100;
}
Symbol 265 MovieClip Frame 6
damage = 17;
_root.score = _root.score + 750;
Symbol 265 MovieClip Frame 20
stop();
this.removeMovieClip();
Symbol 274 MovieClip Frame 1
onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 276 MovieClip Frame 1
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
if (this._y > 90) {
_root.LevelMoveSpd = 0;
}
};
Symbol 278 MovieClip Frame 1
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
if ((_root.fourthBoss.damage > 0) && (_root.fourthBoss.damage < 302)) {
this._xscale = _root.fourthBoss.damage * 0.2;
} else {
this._xscale = 0;
}
};
Symbol 299 MovieClip Frame 1
this.onEnterFrame = function () {
if ((this.hitTest(_root.player) && (_root.player._currentframe < 30)) && (_root.player.invul == false)) {
_root.player.gotoAndPlay(30);
}
};
Symbol 299 MovieClip Frame 13
this.onEnterFrame = function () {
if ((this.hitTest(_root.player) && (_root.player._currentframe < 30)) && (_root.player.invul == false)) {
_root.player.gotoAndPlay(30);
}
};
Symbol 299 MovieClip Frame 21
stop();
Symbol 300 MovieClip Frame 1
damage = 300;
timer = 0;
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
if (this._currentframe == 2) {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
}
if (this.hitTest(_root.bullet1) && (damage > -1)) {
damage--;
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage > -1)) {
damage--;
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage > -1)) {
damage--;
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage > -1)) {
damage--;
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 24)) && (_root.pl_missile1._currentframe > 2)) {
damage--;
}
if ((((damage == 1) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) && (this._currentframe < 24)) {
this.gotoAndPlay(24);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 24)) {
damage--;
}
if ((damage <= 0) && (this._currentframe <= 23)) {
this.gotoAndPlay(24);
}
if (((damage == 1) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 24)) {
this.gotoAndPlay(25);
}
timer++;
if (((timer == 240) && (damage > 0)) && (this._y > 0)) {
this.gotoAndPlay(3);
}
if (timer == 241) {
timer = 1;
}
if ((this.hitTest(_root.player) && (_root.player._currentframe < 30)) && (_root.player.invul == false)) {
_root.player.gotoAndPlay(30);
}
};
Symbol 300 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 23
gotoAndStop (2);
Symbol 300 MovieClip Frame 25
damage = -700;
Symbol 300 MovieClip Frame 26
_root.score = _root.score + 10000;
_root.playerLives++;
damage = -700;
if (_root.ki <= 75) {
_root.ki = _root.ki + 25;
} else {
_root.ki = 100;
}
Symbol 300 MovieClip Frame 38
stopAllSounds();
Symbol 300 MovieClip Frame 39
stop();
_root.nextFrame();
Symbol 310 MovieClip Frame 1
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 312 MovieClip Frame 1
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 315 MovieClip Frame 1
stop();
shot = 0;
timer = 0;
damage = 0;
this.onEnterFrame = function () {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
if ((((timer == 30) && (this._y > 0)) && (this._y < 420)) && (this._currentframe < 3)) {
_root.attachMovie("turretbullet", "bturrDec" + shot, _root.getNextHighestDepth());
_root["bturrDec" + shot]._x = this._x;
_root["bturrDec" + shot]._y = this._y;
shot++;
}
timer++;
if (timer == 31) {
timer = 1;
}
if (this.hitTest(_root.bullet1) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage < 6)) {
this.gotoAndPlay(3);
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 5)) && (_root.pl_missile1._currentframe > 2)) {
this.gotoAndPlay(5);
}
if (this.hitTest(_root.kiAttack1) && (damage < 5)) {
this.gotoAndPlay(3);
}
if ((damage == 5) && (!this.hitTest(_root.kiAttack1))) {
this.gotoAndPlay(5);
}
if (((damage == 5) && (this.hitTest(_root.kiAttack1))) && (this._currentframe == 2)) {
this.gotoAndPlay(6);
}
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 315 MovieClip Frame 4
damage++;
gotoAndStop (2);
Symbol 315 MovieClip Frame 5
damage = 50;
if (_root.ki < 100) {
_root.ki++;
}
Symbol 315 MovieClip Frame 6
damage = 50;
_root.score = _root.score + 100;
Symbol 315 MovieClip Frame 14
stop();
Symbol 337 MovieClip Frame 1
damage = 50;
timer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 2) {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
}
if (this.hitTest(_root.bullet1) && (damage > -1)) {
damage--;
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage > -1)) {
damage--;
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage > -1)) {
damage--;
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage > -1)) {
damage--;
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 6)) && (_root.pl_missile1._currentframe > 2)) {
damage--;
}
if ((((damage == 1) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) && (this._currentframe < 6)) {
this.gotoAndPlay(6);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 6)) {
damage--;
}
if ((damage <= 0) && (this._currentframe <= 6)) {
this.gotoAndPlay(6);
}
if (((damage == 1) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 6)) {
this.gotoAndPlay(6);
}
timer++;
if (timer == 51) {
timer = 1;
}
if ((timer == 50) && (this._currentframe < 6)) {
_root.attachMovie("turretbullet", "dis" + shot, _root.getNextHighestDepth());
_root["dis" + shot]._x = this._x;
_root["dis" + shot]._y = this._y;
shot++;
}
};
Symbol 337 MovieClip Frame 5
gotoAndPlay (2);
Symbol 337 MovieClip Frame 6
_root.score = _root.score + 1000;
if (_root.ki <= 90) {
_root.ki = _root.ki + 10;
} else {
_root.ki = 100;
}
Symbol 337 MovieClip Frame 12
stop();
Symbol 340 MovieClip Frame 1
damage = 50;
timer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 2) {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
}
if (this.hitTest(_root.bullet1) && (damage > -1)) {
damage--;
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage > -1)) {
damage--;
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage > -1)) {
damage--;
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage > -1)) {
damage--;
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 6)) && (_root.pl_missile1._currentframe > 2)) {
damage--;
}
if ((((damage == 1) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) && (this._currentframe < 6)) {
this.gotoAndPlay(6);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 6)) {
damage--;
}
if ((damage <= 0) && (this._currentframe <= 6)) {
this.gotoAndPlay(6);
}
if (((damage == 1) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 6)) {
this.gotoAndPlay(6);
}
timer++;
if (timer == 51) {
timer = 1;
}
if ((timer == 50) && (this._currentframe < 6)) {
_root.attachMovie("turretbullet", "disT" + shot, _root.getNextHighestDepth());
_root["disT" + shot]._x = this._x;
_root["disT" + shot]._y = this._y;
shot++;
}
};
Symbol 340 MovieClip Frame 5
gotoAndPlay (2);
Symbol 340 MovieClip Frame 6
_root.score = _root.score + 1000;
if (_root.ki <= 90) {
_root.ki = _root.ki + 10;
} else {
_root.ki = 100;
}
Symbol 340 MovieClip Frame 12
stop();
Symbol 344 MovieClip Frame 1
damage = 50;
timer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 2) {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
}
if (this.hitTest(_root.bullet1) && (damage > -1)) {
damage--;
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage > -1)) {
damage--;
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage > -1)) {
damage--;
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage > -1)) {
damage--;
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 6)) && (_root.pl_missile1._currentframe > 2)) {
damage--;
}
if ((((damage == 1) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) && (this._currentframe < 6)) {
this.gotoAndPlay(6);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 6)) {
damage--;
}
if ((damage <= 0) && (this._currentframe <= 6)) {
this.gotoAndPlay(6);
}
if (((damage == 1) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 6)) {
this.gotoAndPlay(6);
}
timer++;
if (timer == 51) {
timer = 1;
}
if ((timer == 50) && (this._currentframe < 6)) {
_root.attachMovie("turretbullet", "disTr" + shot, _root.getNextHighestDepth());
_root["disTr" + shot]._x = this._x;
_root["disTr" + shot]._y = this._y;
shot++;
}
};
Symbol 344 MovieClip Frame 5
gotoAndPlay (2);
Symbol 344 MovieClip Frame 6
_root.score = _root.score + 1000;
if (_root.ki <= 90) {
_root.ki = _root.ki + 10;
} else {
_root.ki = 100;
}
Symbol 344 MovieClip Frame 12
stop();
Symbol 346 MovieClip Frame 1
damage = 50;
timer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 2) {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
}
if (this.hitTest(_root.bullet1) && (damage > -1)) {
damage--;
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage > -1)) {
damage--;
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage > -1)) {
damage--;
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage > -1)) {
damage--;
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 6)) && (_root.pl_missile1._currentframe > 2)) {
damage--;
}
if ((((damage == 1) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) && (this._currentframe < 6)) {
this.gotoAndPlay(6);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 6)) {
damage--;
}
if ((damage <= 0) && (this._currentframe <= 6)) {
this.gotoAndPlay(6);
}
if (((damage == 1) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 6)) {
this.gotoAndPlay(6);
}
timer++;
if (timer == 51) {
timer = 1;
}
if ((timer == 50) && (this._currentframe < 6)) {
_root.attachMovie("turretbullet", "disQ" + shot, _root.getNextHighestDepth());
_root["disQ" + shot]._x = this._x;
_root["disQ" + shot]._y = this._y;
shot++;
}
};
Symbol 346 MovieClip Frame 5
gotoAndPlay (2);
Symbol 346 MovieClip Frame 6
_root.score = _root.score + 1000;
if (_root.ki <= 90) {
_root.ki = _root.ki + 10;
} else {
_root.ki = 100;
}
Symbol 346 MovieClip Frame 12
stop();
Symbol 348 MovieClip Frame 1
damage = 150;
timer = 0;
this.onEnterFrame = function () {
if (this._currentframe == 2) {
playerx = (_root.player._x - this._x) * -1;
playery = _root.player._y - this._y;
angle = Math.atan(playery / playerx) / (Math.PI/180);
if (playerx < 0) {
angle = angle + 180;
}
if ((playerx >= 0) && (playery < 0)) {
angle = angle + 360;
}
this._rotation = (angle * -1) + 90;
}
if (this.hitTest(_root.bullet1) && (damage > -1)) {
damage--;
_root.bullet1.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet2) && (damage > -1)) {
damage--;
_root.bullet2.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet3) && (damage > -1)) {
damage--;
_root.bullet3.removeMovieClip();
_root.numBullets--;
}
if (this.hitTest(_root.bullet4) && (damage > -1)) {
damage--;
_root.bullet4.removeMovieClip();
_root.numBullets--;
}
if ((this.hitTest(_root.pl_missile1) && (this._currentframe < 6)) && (_root.pl_missile1._currentframe > 2)) {
damage--;
}
if ((((damage == 1) && (this.hitTest(_root.pl_missile1))) && (_root.pl_missile1._currentframe > 2)) && (this._currentframe < 6)) {
this.gotoAndPlay(6);
}
if (this.hitTest(_root.kiAttack1) && (this._currentframe < 6)) {
damage--;
}
if ((damage <= 0) && (this._currentframe <= 6)) {
this.gotoAndPlay(6);
}
if (((damage == 1) && (this.hitTest(_root.kiAttack1))) && (this._currentframe < 6)) {
this.gotoAndPlay(6);
}
timer++;
if (timer == 51) {
timer = 1;
}
if ((timer == 50) && (this._currentframe < 6)) {
_root.attachMovie("turretbullet", "disQd" + shot, _root.getNextHighestDepth());
_root["disQd" + shot]._x = this._x;
_root["disQd" + shot]._y = this._y;
shot++;
}
};
Symbol 348 MovieClip Frame 5
gotoAndPlay (2);
Symbol 348 MovieClip Frame 6
_root.score = _root.score + 7500;
if (_root.ki <= 80) {
_root.ki = _root.ki + 20;
} else {
_root.ki = 100;
}
Symbol 348 MovieClip Frame 12
stop();
Symbol 353 MovieClip Frame 1
sound = 0;
this.onEnterFrame = function () {
if (_root.Cplayer.hitTest(this)) {
sound++;
}
if (sound == 1) {
_root.LevelMoveSpd = 0;
}
};
Symbol 355 MovieClip Frame 1
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 369 MovieClip Frame 1
this.onEnterFrame = function () {
this._y = this._y + _root.LevelMoveSpd;
};
Symbol 378 Button
on (release) {
stopAllSounds();
gotoAndStop ("menu");
}
Symbol 386 Button
on (release) {
if (_root.passWord == "hastati") {
_root.gotoAndPlay("level2");
}
if (_root.passWord == "triarii") {
_root.gotoAndPlay("level3");
}
if (_root.passWord == "cohors") {
_root.gotoAndPlay("level4");
}
}
Symbol 389 Button
on (release) {
gotoAndStop ("menu");
}