Frame 1
stop();
MochiAd.showPreGameAd({id:"3554947ca8fc0a5f", res:"550x400"});
mochi.MochiServices.connect("3554947ca8fc0a5f");
Frame 2
var bg_sound = new Sound();
bg_sound.attachSound("ninjaSound", false);
bg_sound.start();
Frame 186
stop();
stopAllSounds();
Frame 187
stop();
Frame 188
stop();
Frame 189
stop();
mochi.MochiScores.showLeaderboard({boardID:"bc93b4a163bcbfa9"});
Frame 190
_root.gotoAndPlay("menuframe");
Frame 191
playsound2 = new Sound(this);
playsound2.attachSound("smash");
playsound3 = new Sound(this);
playsound3.attachSound("explosion2");
playsound3 = new Sound(this);
playsound3.attachSound("blip");
playsound5 = new Sound(this);
playsound5.attachSound("spacemusic");
playsound5.start(0, 10000000);
stop();
level = 1;
smallshotcount = 1;
bigastlife = 50;
smallshotclock = 1;
lvl2dead = 0;
lvl3dead = 0;
_global.sound = 1;
secondenemyshot = 1;
secondenemyshotcount = 1;
lvl6dead = 0;
lvl7dead = 0;
shellshot = 1;
lvl8dead = 0;
scion1shot = 1;
scion1death = 0;
bigscion2shotcount = 1;
scion2death = 0;
lvl12shotcount = 1;
scion3death = 0;
shellshipshot = 1;
shellshipdeath = 0;
smallshellshipshot = 1;
smallshellshipdeath = 0;
firstcolored1shot = 1;
coloredshipdeath = 0;
redshipdeath = 0;
redshotcount = 1;
lvl16dead = 0;
greenshotcount = 1;
purpleshots = 1;
purpledeath = 0;
colorbosslife1 = 20;
colorbosslife2 = 20;
coloredbossdeath = 0;
coloredbossshot = 1;
phaseshot1 = 1;
phasedeath = 0;
phasershot = 1;
phase2death = 0;
overcount = 0;
finalshot = 1;
score = 0;
_global.score = 0;
speedlevel = 6;
Instance of Symbol 65 MovieClip "shiplvl1" in Frame 191
onClipEvent (load) {
this.dead = 0;
this._x = 50;
this._y = 350;
this.distfromast = 500;
this.xdist = 500;
this.ydist = 500;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if (_root.level == 1) {
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / this.pivalue;
if (((_root.smallshotclock % 70) == 0) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.smallshotcount, _root.smallshotcount + 1000, shot);
_root["shot" + _root.smallshotcount]._x = this._x;
_root["shot" + _root.smallshotcount]._y = this._y;
_root["shot" + _root.smallshotcount].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.smallshotcount].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.smallshotcount++;
if (_root.smallshotcount > 50) {
_root.smallshotcount = 1;
}
}
}
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.distfromast = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (this.distfromast > 200) {
if (this._x < _root.ast._x) {
this._x = this._x + 1;
} else {
this._x = this._x - 1;
}
if (this._y < _root.ast._y) {
this._y = this._y + 1;
} else if (this._y > _root.ast._y) {
this._y = this._y - 1;
}
}
}
Instance of Symbol 67 MovieClip "shot" in Frame 191
onClipEvent (load) {
if (this._name == "shot") {
this._visible = false;
} else {
this._visible = true;
}
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.totaldist = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (this.totaldist == 0) {
this.totaldist = 10;
}
}
onClipEvent (enterFrame) {
if (this._name != "shot") {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
i = 1;
while (i <= 4) {
if (this.hitTest(_root.ast["asthit" + i])) {
if (_root.ast.canhit == 1) {
_root.bigastlife--;
}
this.removeMovieClip();
}
i++;
}
if ((((this._x > 550) || (this._x < 0)) || (this._y > 400)) || (this._y < 0)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 85 MovieClip "ast" in Frame 191
onClipEvent (load) {
this._rotation = 0;
this.dead = 0;
this.totalspeed = 0;
this.staticheight = this._height;
this.staticwidth = this._width;
this.canhit = 1;
this.icount = 1;
this.xspeed = 0;
this.yspeed = 0;
this.decay = 0.95;
}
onClipEvent (enterFrame) {
if ((_root.bigastlife <= 0) && (this.dead == 0)) {
this.gotoAndPlay(3);
}
if (this.canhit == 0) {
this.gotoAndStop(2);
this.icount++;
}
if (this.icount == 150) {
this.canhit = 1;
this.icount = 1;
}
if ((this.canhit == 1) && (_root.bigastlife > 0)) {
this.gotoAndStop(1);
}
if (_root.bigastlife > 25) {
this._width = this.staticwidth;
this._height = this.staticheight;
} else if (_root.bigastlife > 10) {
this._width = this.staticwidth / 1.5;
this._height = this.staticheight / 1.5;
} else if (_root.bigastlife > 1) {
this._width = this.staticwidth / 2;
this._height = this.staticheight / 2;
}
if (Key.isDown(39)) {
if (this.xspeed < _root.speedlevel) {
this.xspeed = this.xspeed + 1.2;
}
} else if (Key.isDown(37)) {
if (this.xspeed > (-_root.speedlevel)) {
this.xspeed = this.xspeed - 1.2;
}
} else {
this.xspeed = this.xspeed * this.decay;
}
if (Key.isDown(38)) {
if (this.yspeed > (-_root.speedlevel)) {
this.yspeed = this.yspeed - 1.2;
}
} else if (Key.isDown(40)) {
if (this.yspeed < _root.speedlevel) {
this.yspeed = this.yspeed + 1.2;
}
} else {
this.yspeed = this.yspeed * this.decay;
}
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this._x > 580) {
this._x = -20;
}
if (this._x < -30) {
this._x = 570;
}
if (this._y > 430) {
this._y = -20;
}
if (this._y < -30) {
this._y = 420;
}
}
Instance of Symbol 87 MovieClip "blackdot" in Frame 191
onClipEvent (enterFrame) {
_global.score = _root.score;
_root.smallshotclock++;
if (_root.level == 4) {
_root.boss1.firstlife.gotoAndPlay(11 - _root.boss1.life);
}
if (_root.level == 9) {
_root.secondboss.secondlife.gotoAndPlay(13 - _root.secondboss.life);
}
if (_root.level == 13) {
_root.thirdboss.life3.gotoAndPlay(8 - _root.thirdboss.life);
_root.shellship1.shellshiplife.gotoAndPlay(4 - _root.shellship1.life);
_root.shellship2.shellshiplife.gotoAndPlay(4 - _root.shellship2.life);
_root.shellship3.shellshiplife.gotoAndPlay(4 - _root.shellship3.life);
_root.shellship4.shellshiplife.gotoAndPlay(4 - _root.shellship4.life);
}
if (_root.level == 18) {
_root.coloredboss1.coloredboss1life.gotoAndPlay(21 - _root.colorbosslife1);
_root.coloredboss2.coloredboss2life.gotoAndPlay(21 - _root.colorbosslife2);
}
if (_root.level == 21) {
_root.bigphaser.finallife.gotoAndPlay(31 - _root.bigphaser.life);
}
if (_root.level >= 6) {
_root.secondenemyshotcount++;
}
if (_root.level == 22) {
_root.overcount++;
}
}
Instance of Symbol 88 MovieClip "lvl2ship" in Frame 191
onClipEvent (load) {
this.dead = 0;
this.distfromast = 500;
this.xdist = 500;
this.ydist = 500;
if (this._name == "lvl2ship") {
this._visible = false;
} else {
this._visible = true;
}
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if (this._name != "lvl2ship") {
if (_root.level == 2) {
if (((_root.smallshotclock % 70) == 0) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.smallshotcount, _root.smallshotcount + 9100, shot);
_root["shot" + _root.smallshotcount]._x = this._x;
_root["shot" + _root.smallshotcount]._y = this._y;
_root["shot" + _root.smallshotcount].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.smallshotcount].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.smallshotcount++;
if (_root.smallshotcount > 50) {
_root.smallshotcount = 1;
}
}
}
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.distfromast = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (this.distfromast > 200) {
if (this._x < _root.ast._x) {
this._x = this._x + 1;
} else {
this._x = this._x - 1;
}
if (this._y < _root.ast._y) {
this._y = this._y + 1;
} else if (this._y > _root.ast._y) {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 89 MovieClip "lvl3ship" in Frame 191
onClipEvent (load) {
this.dead = 0;
if (this._name == "lvl3ship") {
this._visible = false;
} else {
this._visible = true;
}
this.movecounter = 1;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if (this._name != "lvl3ship") {
this.movecounter++;
if (this.movecounter < 20) {
this._x = this._x + this.speed;
}
if (_root.level == 3) {
if (((_root.smallshotclock % 70) == 0) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.smallshotcount, _root.smallshotcount + 1000, shot);
_root["shot" + _root.smallshotcount]._x = this._x;
_root["shot" + _root.smallshotcount]._y = this._y;
_root["shot" + _root.smallshotcount].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.smallshotcount].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.smallshotcount++;
if (_root.smallshotcount > 50) {
_root.smallshotcount = 1;
}
}
}
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.distfromast = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
}
}
Instance of Symbol 108 MovieClip "boss1" in Frame 191
onClipEvent (load) {
this._x = -100;
this._y = 200;
this.dead = 0;
this.distfromast = 500;
this.xdist = 500;
this.ydist = 500;
this.life = 10;
this.ishit = 0;
this.xshift = 0;
this.yshift = 0;
this.shiftcount = 1;
this.shotcount = 1;
this.shots = 1;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if (_root.level == 4) {
this.shotcount++;
if ((((this.shotcount % 70) == 0) || ((this.shotcount % 73) == 0)) || ((this.shotcount % 76) == 0)) {
_root.shot.duplicateMovieClip("shot" + this.shots, this.shots + 9200, shot);
_root["shot" + this.shots]._x = this._x;
_root["shot" + this.shots]._y = this._y;
_root["shot" + this.shots].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + this.shots].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
this.shots++;
if (this.shots > 10) {
this.shots = 1;
}
}
if (this.shotcount > 80) {
this.shotcount = 1;
}
if ((this.hitTest(_root.ast.asthit5) && (this.dead == 0)) && (this.ishit == 0)) {
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
this.life--;
if (this._x > _root.ast._x) {
this.xshift = 15;
} else {
this.xshift = -15;
}
if (this._y > _root.ast._y) {
this.yshift = 15;
} else {
this.yshift = -15;
}
this.ishit = 1;
}
if (this.ishit == 1) {
this.shiftcount++;
this._x = this._x + this.xshift;
this._y = this._y + this.yshift;
if (this.shiftcount == 8) {
this.ishit = 0;
this.shiftcount = 1;
}
}
if ((this.life <= 0) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.distfromast = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if ((this.distfromast > 300) && (this.ishit == 0)) {
if (this._x < _root.ast._x) {
this._x = this._x + 2.5;
} else {
this._x = this._x - 2.5;
}
if (this._y < _root.ast._y) {
this._y = this._y + 2.5;
} else if (this._y > _root.ast._y) {
this._y = this._y - 2.5;
}
}
if (this._x > 400) {
this._x = this._x - 2;
} else if (this._x < 100) {
this._x = this._x + 2;
}
if (this._y > 300) {
this._y = this._y - 2;
} else if (this._y < 90) {
this._y = this._y + 2;
}
if (this._x > 560) {
this._x = 0;
}
if (this._x < -10) {
this._x == 550;
}
if (this._y > 410) {
this._y = 0;
}
if (this._y < -10) {
this._y = 400;
}
}
}
Instance of Symbol 114 MovieClip "enemy2type" in Frame 191
onClipEvent (load) {
this.dead = 0;
this.lives = 2;
this.shotcount = 1;
this.shots = 1;
this._x = 650;
this._y = 50;
this.movecount = 1;
this.truemove = 1;
this.movespeed = -6;
this.ishit = 0;
this.hitcounter = 1;
this.vspeed = 0;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if (_root.level == 5) {
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.movecount++;
this.shotcount++;
if (((this.shotcount % 45) == 0) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + this.shots, this.shots + 1000, shot);
_root["shot" + this.shots]._x = this._x;
_root["shot" + this.shots]._y = this._y;
_root["shot" + this.shots].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + this.shots].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
this.shots++;
if (this.shots > 20) {
this.shots = 1;
}
}
if ((this.hitTest(_root.ast) && (this.dead == 0)) && (this.ishit == 0)) {
if (this.lives == 2) {
this.lives--;
this.ishit = 1;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (this._y > _root.ast._y) {
this.vspeed = 10;
} else if (this._y < _root.ast._y) {
this.vspeed = -10;
}
} else if (this.lives == 1) {
this.gotoAndPlay(2);
}
}
if (this.ishit == 1) {
this.hitcounter++;
this._y = this._y + this.vspeed;
}
if (this.hitcounter > 9) {
this.ishit = 0;
this.hitcounter = 1;
}
if (this.movecount > 90) {
this.truemove++;
}
if (((this.movecount % 90) == 0) && (this.movecount == 90)) {
this.movespeed = -this.movespeed;
}
if ((this.truemove % 60) == 0) {
this.movespeed = -this.movespeed;
}
this._x = this._x + this.movespeed;
if (this._y < -5) {
this._y = 400;
} else if (this._y > 405) {
this._y = 0;
}
}
}
Instance of Symbol 115 MovieClip "enemy2duptype" in Frame 191
onClipEvent (load) {
if (this._name != "enemy2duptype") {
this._visible = true;
} else {
this._visible = false;
}
this.dead = 0;
this.lives = 2;
this.movecount = 1;
this.truemove = 1;
this.ishit = 0;
this.hitcounter = 1;
this.vspeed = 0;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if ((_root.level == 6) && (this._name != "enemy2duptype")) {
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
if (((_root.secondenemyshotcount % 45) == 0) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.secondenemyshot, _root.secondenemyshot + 1000, shot);
_root["shot" + _root.secondenemyshot]._x = this._x;
_root["shot" + _root.secondenemyshot]._y = this._y;
_root["shot" + _root.secondenemyshot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.secondenemyshot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.secondenemyshot++;
if (_root.secondenemyshot > 20) {
_root.secondenemyshot = 1;
}
}
if ((this.hitTest(_root.ast) && (this.dead == 0)) && (this.ishit == 0)) {
if (this.lives == 2) {
this.lives--;
this.ishit = 1;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (this._y > _root.ast._y) {
this.vspeed = 10;
} else if (this._y < _root.ast._y) {
this.vspeed = -10;
}
} else if (this.lives == 1) {
this.gotoAndPlay(2);
}
}
if (this.ishit == 1) {
this.hitcounter++;
this._y = this._y + this.vspeed;
}
if (this.hitcounter > 9) {
this.ishit = 0;
this.hitcounter = 1;
}
this.movecount++;
if (this.movecount > 90) {
this.truemove++;
}
if (this.movecount == 90) {
this.movespeed = -this.movespeed;
}
if ((this.truemove % 60) == 0) {
this.movespeed = -this.movespeed;
}
this._x = this._x + this.movespeed;
if (this._y > 405) {
this._y = 0;
} else if (this._y < -5) {
this._y = 400;
}
}
}
Instance of Symbol 116 MovieClip "enemydifttype" in Frame 191
onClipEvent (load) {
if (this._name == "enemydifttype") {
this._visible = false;
} else {
this._visible = true;
}
this.dead = 0;
this.lives = 2;
this.movecount = 1;
this.truemove = 1;
this.ishit = 0;
this.hitcounter = 1;
this.hspeed = 0;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if ((_root.level == 7) && (this._name != "enemydifttype")) {
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
if (((_root.secondenemyshotcount % 45) == 0) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.secondenemyshot, _root.secondenemyshot + 1000, shot);
_root["shot" + _root.secondenemyshot]._x = this._x;
_root["shot" + _root.secondenemyshot]._y = this._y;
_root["shot" + _root.secondenemyshot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.secondenemyshot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.secondenemyshot++;
if (_root.secondenemyshot > 20) {
_root.secondenemyshot = 1;
}
}
if ((this.hitTest(_root.ast) && (this.dead == 0)) && (this.ishit == 0)) {
if (this.lives == 2) {
this.lives--;
this.ishit = 1;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (this._x > _root.ast._x) {
this.hspeed = 10;
} else if (this._x < _root.ast._x) {
this.hspeed = -10;
}
} else if (this.lives == 1) {
this.gotoAndPlay(2);
}
}
if (this.ishit == 1) {
this.hitcounter++;
this._x = this._x + this.hspeed;
}
if (this.hitcounter > 9) {
this.ishit = 0;
this.hitcounter = 1;
}
this.movecount++;
if (this.movecount > 75) {
this.truemove++;
}
if (this.movecount == 75) {
this.movespeed = -this.movespeed;
}
if ((this.truemove % 60) == 0) {
this.movespeed = -this.movespeed;
}
this._y = this._y + this.movespeed;
if (this._x > 555) {
this._x = 0;
} else if (this._x < -5) {
this._x = 550;
}
}
}
Instance of Symbol 117 MovieClip "minidiff" in Frame 191
onClipEvent (load) {
if (this._name == "minidiff") {
this._visible = false;
} else {
this.visible = true;
}
this.dead = 0;
this.lives = 2;
this.ishit = 0;
this.hitcounter = 1;
this.distfromast = 500;
this.xdist = 500;
this.ydist = 500;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if ((this._name != "minidiff") && (_root.level == 8)) {
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.distfromast = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (((_root.secondenemyshotcount % 45) == 0) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.secondenemyshot, _root.secondenemyshot + 1000, shot);
_root["shot" + _root.secondenemyshot]._x = this._x;
_root["shot" + _root.secondenemyshot]._y = this._y;
_root["shot" + _root.secondenemyshot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.secondenemyshot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.secondenemyshot++;
if (_root.secondenemyshot > 20) {
_root.secondenemyshot = 1;
}
}
if ((this.hitTest(_root.ast) && (this.dead == 0)) && (this.ishit == 0)) {
if (this.lives == 2) {
this.lives--;
this.ishit = 1;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (this._x > _root.ast._x) {
this.hspeed = 10;
} else if (this._x < _root.ast._x) {
this.hspeed = -10;
}
} else if (this.lives == 1) {
this.gotoAndPlay(2);
}
}
if (this.ishit == 1) {
this.hitcounter++;
this._x = this._x + this.hspeed;
}
if (this.hitcounter > 9) {
this.ishit = 0;
this.hitcounter = 1;
}
if (this.distfromast > 150) {
if (this._x < _root.ast._x) {
this._x = this._x + 2;
} else {
this._x = this._x - 2;
}
if (this._y < _root.ast._y) {
this._y = this._y + 2;
} else if (this._y > _root.ast._y) {
this._y = this._y - 2;
}
}
}
}
Instance of Symbol 132 MovieClip "secondboss" in Frame 191
onClipEvent (load) {
this._x = -100;
this._y = 200;
this.life = 12;
this.dead = 0;
this.distfromast = 500;
this.xdist = 500;
this.ydist = 500;
this.ishit = 0;
this.xshift = 0;
this.yshift = 0;
this.shiftcount = 1;
this.shotcounter = 1;
this.shots = 1;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if (_root.level == 9) {
if ((this.life <= 0) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
this.shotcounter++;
if ((this.shotcounter % 50) == 0) {
this.shots++;
_root.shot.duplicateMovieClip("shot" + this.shots, this.shots + 1000, shot);
_root["shot" + this.shots]._x = this._x;
_root.shot.duplicateMovieClip("shot" + this.shots, this.shots + 1000, shot);
_root["shot" + this.shots]._x = this._x;
_root["shot" + this.shots]._y = this._y;
_root["shot" + this.shots].xspeed = Math.cos(((this._rotation + 10) * this.pivalue) / 180) * 5;
_root["shot" + this.shots].yspeed = Math.sin(((this._rotation + 10) * this.pivalue) / 180) * 5;
_root["shot" + this.shots]._y = this._y;
_root["shot" + this.shots].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + this.shots].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
this.shots++;
_root.shot.duplicateMovieClip("shot" + this.shots, this.shots + 1000, shot);
_root["shot" + this.shots]._x = this._x;
_root["shot" + this.shots]._y = this._y;
_root["shot" + this.shots].xspeed = Math.cos(((this._rotation - 10) * this.pivalue) / 180) * 5;
_root["shot" + this.shots].yspeed = Math.sin(((this._rotation - 10) * this.pivalue) / 180) * 5;
this.shots++;
if (this.shots > 20) {
this.shots = 1;
}
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.distfromast = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if ((this.distfromast > 175) && (this.ishit == 0)) {
if (this._x < _root.ast._x) {
this._x = this._x + 2.5;
} else {
this._x = this._x - 2.5;
}
if (this._y < _root.ast._y) {
this._y = this._y + 2.5;
} else if (this._y > _root.ast._y) {
this._y = this._y - 2.5;
}
}
if ((this.disfromast < 100) && (this.ishit == 0)) {
if ((this._x < _root.ast._x) && (this._x > 30)) {
this._x = this._x - 0.5;
} else if ((this._x > _root.ast._x) && (this._x < 520)) {
this._x = this._x + 0.5;
}
if ((this._y < _root.ast._y) && (this._y > 20)) {
this._y = this._y - 0.5;
} else if ((this._y > _root.ast._y) && (this._y < 380)) {
this._y = this._y + 0.5;
}
}
if (this._x < 80) {
this._x++;
} else if (this._x > 400) {
this._x--;
}
if (this._y > 310) {
this._y--;
} else if (this._y < 80) {
this._y++;
}
if (this._x > 560) {
this._x = 0;
}
if (this._x < -10) {
this._x == 550;
}
if (this._y > 410) {
this._y = 0;
}
if (this._y < -10) {
this._y = 400;
}
if ((this.hitTest(_root.ast.asthit5) && (this.dead == 0)) && (this.ishit == 0)) {
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
this.life--;
if (this._x > _root.ast._x) {
this.xshift = 15;
} else {
this.xshift = -15;
}
if (this._y > _root.ast._y) {
this.yshift = 15;
} else {
this.yshift = -15;
}
this.ishit = 1;
}
if (this.ishit == 1) {
this.shiftcount++;
this._x = this._x + this.xshift;
this._y = this._y + this.yshift;
if (this.shiftcount == 8) {
this.ishit = 0;
this.shiftcount = 1;
}
}
}
}
Instance of Symbol 134 MovieClip "thirdenemy" in Frame 191
onClipEvent (load) {
this.dead = 0;
this._x = -100;
this._y = -100;
this.distfromast = 500;
this.xdist = 500;
this.ydist = 500;
this.pivalue = Math.PI;
this.scounter = 1;
this.sscount = 1;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if (_root.level == 10) {
this.scounter++;
if ((((this.scounter % 38) == 0) || ((this.scounter % 57) == 0)) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + this.sscount, this.sscount + 2100, shot);
_root["shot" + this.sscount]._x = this._x;
_root["shot" + this.sscount]._y = this._y;
_root["shot" + this.sscount].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + this.sscount].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
this.sscount++;
}
if (this.sscount > 10) {
this.sscount = 1;
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / this.pivalue;
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.distfromast = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (this.distfromast > 110) {
if (this._x < _root.ast._x) {
this._x = this._x + 2;
} else {
this._x = this._x - 2;
}
if (this._y < _root.ast._y) {
this._y = this._y + 2;
} else if (this._y > _root.ast._y) {
this._y = this._y - 2;
}
}
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 136 MovieClip "scion" in Frame 191
onClipEvent (load) {
if (this._name == "scion") {
this._visible = false;
} else {
this._visible = true;
}
this.invinc = 1;
this.icounter = 1;
if (this._name == "scion1") {
this.yincspeed = 10;
this.xincspeed = 10;
} else if (this._name == "scion2") {
this.yincspeed = -10;
this.xincspeed = -10;
}
this.shotcounter = 1;
this.pivalue = Math.PI;
this.dead = 0;
}
onClipEvent (enterFrame) {
if (this._name != "scion") {
this.icounter++;
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
if ((this.icounter > 20) && (this.invinc == 1)) {
this.invinc = 0;
this.icounter = 1;
}
if (this.invinc == 1) {
if ((this._x < 500) && (this._x > 70)) {
this._x = this._x + this.xincspeed;
}
if ((this._y < 350) && (this._y > 65)) {
this._y = this._y + this.yincspeed;
}
}
if (this.invinc == 0) {
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
this.shotcounter++;
if (((this.shotcounter % 37) == 0) || ((this.shotcounter % 55) == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.scion1shot, _root.scion1shot + 2200, shot);
_root["shot" + _root.scion1shot]._x = this._x;
_root["shot" + _root.scion1shot]._y = this._y;
_root["shot" + _root.scion1shot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.scion1shot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.scion1shot++;
if (_root.scion1shot > 50) {
_root.scion1shot = 1;
}
}
}
}
}
Instance of Symbol 138 MovieClip "third2enemy" in Frame 191
onClipEvent (load) {
this.dead = 0;
this.distfromast = 500;
this.xdist = 500;
this.ydist = 500;
this.pivalue = Math.PI;
this.scounter = 1;
this.pivalue = Math.PI;
if (this._name == "third2enemy") {
this._visible = false;
} else {
this.visible = true;
}
}
onClipEvent (enterFrame) {
if ((_root.level == 11) && (this._name != "third2enemy")) {
this.scounter++;
if ((((this.scounter % 38) == 0) || ((this.scounter % 57) == 0)) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.bigscion2shotcount, _root.bigscion2shotcount + 2100, shot);
_root["shot" + _root.bigscion2shotcount]._x = this._x;
_root["shot" + _root.bigscion2shotcount]._y = this._y;
_root["shot" + _root.bigscion2shotcount].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.bigscion2shotcount].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.bigscion2shotcount++;
}
if (_root.bigscion2shotcount > 40) {
_root.bigscion2shotcount = 1;
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / this.pivalue;
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.distfromast = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (this.distfromast > 110) {
if (this._x < _root.ast._x) {
this._x = this._x + 2;
} else {
this._x = this._x - 2;
}
if (this._y < _root.ast._y) {
this._y = this._y + 2;
} else if (this._y > _root.ast._y) {
this._y = this._y - 2;
}
}
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 139 MovieClip "secondscion" in Frame 191
onClipEvent (load) {
if (this._name == "secondscion") {
this._visible = false;
} else {
this._visible = true;
}
this.invinc = 1;
this.icounter = 1;
if ((((this._name == "secondscion1") || (this._name == "secondscion3")) || (this._name == "secondscion5")) || (this._name == "secondscion7")) {
this.yincspeed = 10;
this.xincspeed = 10;
} else if ((((this._name == "secondscion2") || (this._name == "secondscion4")) || (this._name == "secondscion6")) || (this._name == "secondscion8")) {
this.yincspeed = -10;
this.xincspeed = -10;
}
this.shotcounter = 1;
this.pivalue = Math.PI;
this.dead = 0;
}
onClipEvent (enterFrame) {
if (this._name != "secondscion") {
this.icounter++;
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
if ((this.icounter > 20) && (this.invinc == 1)) {
this.invinc = 0;
this.icounter = 1;
}
if (this.invinc == 1) {
if ((this._x < 520) && (this._x > 30)) {
this._x = this._x + this.xincspeed;
}
if ((this._y < 370) && (this._y > 30)) {
this._y = this._y + this.yincspeed;
}
}
if (this.invinc == 0) {
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
this.shotcounter++;
if (((this.shotcounter % 37) == 0) || ((this.shotcounter % 55) == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.scion1shot, _root.scion1shot + 2200, shot);
_root["shot" + _root.scion1shot]._x = this._x;
_root["shot" + _root.scion1shot]._y = this._y;
_root["shot" + _root.scion1shot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.scion1shot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.scion1shot++;
if (_root.scion1shot > 50) {
_root.scion1shot = 1;
}
}
}
}
}
Instance of Symbol 140 MovieClip "third3enemy" in Frame 191
onClipEvent (load) {
this.dead = 0;
this.scounter = 1;
this.pivalue = Math.PI;
if (this._name == "third3enemy") {
this._visible = false;
} else {
this._visible == "true";
}
if ((((this._name == "third3enemy1") || (this._name == "third3enemy2")) || (this._name == "third3enemy3")) || (this._name == "third3enemy4")) {
this.speed = 4;
}
if ((((this._name == "third3enemy5") || (this._name == "third3enemy6")) || (this._name == "third3enemy7")) || (this._name == "third3enemy8")) {
this.speed = -4;
}
this.movecounter = 1;
this.secondmovecounter = 1;
this.isright = 1;
}
onClipEvent (enterFrame) {
if ((_root.level == 12) && (this._name != "third3enemy")) {
this.movecounter++;
if (this.movecounter < 20) {
this._y = this._y + this.speed;
} else {
this.secondmovecounter++;
if (this.isright == 1) {
this._x = this._x + this.speed;
} else {
this._x = this._x - this.speed;
}
if ((this.secondmovecounter % 15) == 0) {
if (this.isright == 1) {
this.isright = 0;
} else {
this.isright = 1;
}
}
}
this.scounter++;
if ((((this.scounter % 38) == 0) || ((this.scounter % 57) == 0)) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.lvl12shotcount, _root.lvl12shotcount + 2100, shot);
_root["shot" + _root.lvl12shotcount]._x = this._x;
_root["shot" + _root.lvl12shotcount]._y = this._y;
_root["shot" + _root.lvl12shotcount].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.lvl12shotcount].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.lvl12shotcount++;
}
if (_root.lvl12shotcount > 60) {
_root.lvl12shotcount = 1;
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / this.pivalue;
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 155 MovieClip "thirdboss" in Frame 191
onClipEvent (load) {
this._x = -100;
this._y = 200;
this.dead = 0;
this.life = 7;
this.shotcounter = 1;
this.shots = 1;
this.xspeed = 3;
this.yspeed = 3;
this.xdist = 200;
this.ydist = 200;
this.distfromast = 700;
this.ishit = 0;
this.pivalue = Math.PI;
this.ishit = 0;
this.xshift = 0;
this.yshift = 0;
this.shiftcount = 1;
}
onClipEvent (enterFrame) {
if ((this.dead == 0) && (_root.level == 13)) {
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.distfromast = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
this.shotcounter++;
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
if ((this.distfromast > 175) && (this.ishit == 0)) {
if (this._x < _root.ast._x) {
this._x = this._x + 2.5;
} else {
this._x = this._x - 2.5;
}
if (this._y < _root.ast._y) {
this._y = this._y + 2.5;
} else if (this._y > _root.ast._y) {
this._y = this._y - 2.5;
}
}
if ((this.disfromast < 100) && (this.ishit == 0)) {
if ((this._x < _root.ast._x) && (this._x > 30)) {
this._x = this._x - 0.5;
} else if ((this._x > _root.ast._x) && (this._x < 520)) {
this._x = this._x + 0.5;
}
if ((this._y < _root.ast._y) && (this._y > 20)) {
this._y = this._y - 0.5;
} else if ((this._y > _root.ast._y) && (this._y < 380)) {
this._y = this._y + 0.5;
}
}
if (this._x < 80) {
this._x++;
} else if (this._x > 430) {
this._x--;
}
if (this._y > 320) {
this._y--;
} else if (this._y < 80) {
this._y++;
}
if (this._x > 560) {
this._x = 0;
}
if (this._x < -10) {
this._x == 550;
}
if (this._y > 410) {
this._y = 0;
}
if (this._y < -10) {
this._y = 400;
}
if (((this.shotcounter % 30) == 0) || ((this.shotcounter % 43) == 0)) {
_root.shot.duplicateMovieClip("shot" + this.shots, this.shots + 1000, shot);
_root["shot" + this.shots]._x = this._x;
_root.shot.duplicateMovieClip("shot" + this.shots, this.shots + 1000, shot);
_root["shot" + this.shots]._x = this._x;
_root["shot" + this.shots]._y = this._y;
_root["shot" + this.shots].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + this.shots].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
this.shots++;
}
if ((this.hitTest(_root.ast.asthit5) && (this.dead == 0)) && (this.ishit == 0)) {
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
this.life--;
if (this._x > _root.ast._x) {
this.xshift = 15;
} else {
this.xshift = -15;
}
if (this._y > _root.ast._y) {
this.yshift = 15;
} else {
this.yshift = -15;
}
this.ishit = 1;
}
if (this.ishit == 1) {
this.shiftcount++;
this._x = this._x + this.xshift;
this._y = this._y + this.yshift;
if (this.shiftcount == 8) {
this.ishit = 0;
this.shiftcount = 1;
}
}
if ((this.life <= 0) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 158 MovieClip "shellship" in Frame 191
onClipEvent (load) {
if (this._name == "shellship") {
this._visible = false;
} else {
this._visible = true;
this.life = 3;
}
this.invnc = 0;
this.invtime = 1;
if (this._name == "shellship1") {
this.xspeed = -15;
this.yspeed = -15;
} else if (this._name == "shellship2") {
this.xspeed = 15;
this.yspeed = -15;
} else if (this._name == "shellship3") {
this.xspeed = -15;
this.yspeed = 15;
} else if (this._name == "shellship4") {
this.xspeed = 15;
this.yspeed = 15;
}
this.dead = 0;
this.shellshotcount = 1;
this.pivalue = Math.PI;
this.ishit = 0;
this.shiftcount = 0;
}
onClipEvent (enterFrame) {
if (this._name != "shellship") {
this.shellshotcount++;
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.invtime++;
if ((this.shellshotcount % 40) == 0) {
_root.shot.duplicateMovieClip("shot" + _root.shellshipshot, _root.shellshipshot + 1432, shot);
_root["shot" + _root.shellshipshot]._x = this._x;
_root["shot" + _root.shellshipshot]._y = this._y;
_root["shot" + _root.shellshipshot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.shellshipshot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.shellshipshot++;
if (_root.shellshipshot > 50) {
_root.shellshipshot = 0;
}
}
if ((this.invtime == 20) && (this.invnc == 0)) {
this.invnc = 1;
}
if (this.invnc == 0) {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
}
if (this._x > 490) {
this._x = this._x - 5;
}
if (this._x < 70) {
this._x = this._x + 5;
}
if (this._y < 70) {
this._y = this._y + 5;
}
if (this._y > 320) {
this._y = this._y - 5;
}
if (((this.hitTest(_root.ast.asthit5) && (this.dead == 0)) && (this.ishit == 0)) && (this.invnc == 1)) {
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
this.life--;
if (this._x > _root.ast._x) {
this.xshift = 15;
} else {
this.xshift = -15;
}
if (this._y > _root.ast._y) {
this.yshift = 15;
} else {
this.yshift = -15;
}
this.ishit = 1;
}
if (this.ishit == 1) {
this.shiftcount++;
this._x = this._x + this.xshift;
this._y = this._y + this.yshift;
if (this.shiftcount == 8) {
this.ishit = 0;
this.shiftcount = 1;
}
}
if ((this.life <= 0) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 160 MovieClip "smallshellship" in Frame 191
onClipEvent (load) {
if (this._name == "smallshellship") {
this._visible = false;
} else {
this._visible = true;
}
this.shotcount = 1;
this.pivalue = Math.PI;
this.dead = 0;
this.invnc = 0;
this.invcount = 1;
if ((((this._name == "smallshellship1") || (this._name == "smallshellship3")) || (this._name == "smallshellship5")) || (this._name == "smallshellship7")) {
this.xspeed = 15;
this.yspeed = 15;
} else if ((((this._name == "smallshellship2") || (this._name == "smallshellship4")) || (this._name == "smallshellship6")) || (this._name == "smallshellship8")) {
this.xspeed = -15;
this.yspeed = -15;
}
}
onClipEvent (enterFrame) {
if (this._name != "smallshellship") {
this.invcount++;
if (this.invcount == 9) {
this.invnc = 1;
}
if (this.invnc == 0) {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
}
if ((this.hitTest(_root.ast) && (this.dead == 0)) && (this.invnc == 1)) {
this.gotoAndPlay(2);
}
this.shotcount++;
if ((this.shotcount % 50) == 0) {
_root.shot.duplicateMovieClip("shot" + _root.smallshellshipshot, _root.smallshellshipshot + 1532, shot);
_root["shot" + _root.smallshellshipshot]._x = this._x;
_root["shot" + _root.smallshellshipshot]._y = this._y;
_root["shot" + _root.smallshellshipshot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.smallshellshipshot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.smallshellshipshot++;
if (_root.smallshellshipshot > 50) {
_root.smallshellshipshot = 0;
}
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
if (this._x > 500) {
this._x = this._x - 5;
}
if (this._x < 50) {
this._x = this._x + 5;
}
if (this._y < 40) {
this._y = this._y + 5;
}
if (this._y > 360) {
this._y = this._y - 5;
}
}
}
Instance of Symbol 161 MovieClip "thirdscion" in Frame 191
onClipEvent (load) {
if (this._name == "thirdscion") {
this._visible = false;
} else {
this._visible = true;
}
this.invinc = 1;
this.icounter = 1;
if ((((((((this._name == "thirdscion1") || (this._name == "thirdscion3")) || (this._name == "thirdscion5")) || (this._name == "thirdscion7")) || (this._name == "thirdscion9")) || (this._name == "thirdscion11")) || (this._name == "thirdsction13")) || (this._name == "thirdsction15")) {
this.yincspeed = 10;
this.xincspeed = 10;
} else if ((((((((this._name == "thirdscion2") || (this._name == "thirdscion4")) || (this._name == "thirdscion6")) || (this._name == "thirdscion8")) || (this._name == "thirdscion10")) || (this._name == "thirdsction12")) || (this._name == "thirdsction14")) || (this._name == "thirdscion16")) {
this.yincspeed = -10;
this.xincspeed = -10;
}
this.shotcounter = 1;
this.pivalue = Math.PI;
this.dead = 0;
}
onClipEvent (enterFrame) {
if (this._name != "thirdscion") {
this.icounter++;
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
if ((this.icounter > 20) && (this.invinc == 1)) {
this.invinc = 0;
this.icounter = 1;
}
if (this.invinc == 1) {
if ((this._x < 500) && (this._x > 50)) {
this._x = this._x + this.xincspeed;
}
if ((this._y < 330) && (this._y > 60)) {
this._y = this._y + this.yincspeed;
}
}
if (this.invinc == 0) {
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
this.shotcounter++;
if (((this.shotcounter % 37) == 0) || ((this.shotcounter % 55) == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.scion1shot, _root.scion1shot + 2200, shot);
_root["shot" + _root.scion1shot]._x = this._x;
_root["shot" + _root.scion1shot]._y = this._y;
_root["shot" + _root.scion1shot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.scion1shot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.scion1shot++;
if (_root.scion1shot > 50) {
_root.scion1shot = 1;
}
}
}
}
}
Instance of Symbol 163 MovieClip "textinst" in Frame 191
onClipEvent (load) {
this._visible = false;
this.viscount = 1;
}
onClipEvent (enterFrame) {
if (this._visible == true) {
this.viscount++;
}
if (this.viscount == 40) {
this._visible = false;
}
}
Instance of Symbol 168 MovieClip "coloredship" in Frame 191
onClipEvent (load) {
if (this._name == "coloredship") {
this._visible = false;
} else {
this._visible = true;
}
if ((((this._name == "coloredship1") || (this._name == "coloredship2")) || (this._name == "coloredship3")) || (this._name == "coloredship4")) {
this._x = 700;
this.xspeed = -10;
} else if ((((this._name == "coloredship5") || (this._name == "coloredship6")) || (this._name == "coloredship7")) || (this._name == "coloredship8")) {
this._x = -150;
this.xspeed = 10;
}
if ((this._name == "coloredship1") || (this._name == "coloredship5")) {
this._y = 320;
} else if ((this._name == "coloredship2") || (this._name == "coloredship6")) {
this._y = 240;
} else if ((this._name == "coloredship3") || (this._name == "coloredship7")) {
this._y = 160;
} else if ((this._name == "coloredship4") || (this._name == "coloredship8")) {
this._y = 80;
}
this.timercount = 1;
this.shotcount = 1;
this.pivalue = Math.PI;
this.dead = 0;
}
onClipEvent (enterFrame) {
if (this._name != "coloredship") {
if (_root.level == 14) {
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
this.shotcount++;
if (((this.shotcount % 25) == 0) && (this.timercount > 30)) {
_root.coloredshot.duplicateMovieClip("coloredshot" + _root.firstcolored1shot, _root.firstcolored1shot + 1732, firstcolored1shot);
_root["coloredshot" + _root.firstcolored1shot]._x = this._x;
_root["coloredshot" + _root.firstcolored1shot]._y = this._y;
_root["coloredshot" + _root.firstcolored1shot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["coloredshot" + _root.firstcolored1shot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.firstcolored1shot++;
if (_root.firstcolored1shot > 50) {
_root.firstcolored1shot = 1;
}
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.timercount++;
if (this.timercount < 30) {
this._x = this._x + this.xspeed;
}
}
}
}
Instance of Symbol 170 MovieClip "coloredshot" in Frame 191
onClipEvent (load) {
if (this._name == "coloredshot") {
this._visible = false;
} else {
this._visible = true;
}
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.totaldist = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (this.totaldist == 0) {
this.totaldist = 10;
}
this.count = 1;
}
onClipEvent (enterFrame) {
if (this._name != "coloredshot") {
this.count++;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
i = 1;
while (i <= 4) {
if (this.hitTest(_root.ast["asthit" + i])) {
if (_root.ast.canhit == 1) {
_root.bigastlife--;
}
this.removeMovieClip();
}
i++;
}
j = 1;
while (j <= 8) {
if ((this.hitTest(_root["coloredship" + j]) && (_root["coloredship" + j].dead == 0)) && (this.count > 10)) {
_root["coloredship" + j].gotoAndPlay(2);
}
j++;
}
if ((((this._x > 550) || (this._x < 0)) || (this._y > 400)) || (this._y < 0)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 175 MovieClip "redship" in Frame 191
onClipEvent (load) {
if (this._name == "redship") {
this._visible = false;
} else {
this._visible = true;
}
if ((((this._name == "redship1") || (this._name == "redship2")) || (this._name == "redship3")) || (this._name == "redship4")) {
this._y = -100;
this.yspeed = 15;
} else if ((((this._name == "redship5") || (this._name == "redship6")) || (this._name == "redship7")) || (this._name == "redship8")) {
this._y = 500;
this.yspeed = -15;
}
if ((this._name == "redship1") || (this._name == "redship5")) {
this._x = 75;
} else if ((this._name == "redship2") || (this._name == "redship6")) {
this._x = 175;
} else if ((this._name == "redship3") || (this._name == "redship7")) {
this._x = 275;
} else if ((this._name == "redship4") || (this._name == "redship8")) {
this._x = 375;
}
this.dead = 0;
this.movect = 0;
this.moving = 0;
this.shotcount = 1;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if ((this._name != "redship") && (_root.level == 15)) {
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
if (((this.shotcount % 25) == 0) && (this.moving == 1)) {
_root.redshot.duplicateMovieClip("redshot" + _root.redshotcount, _root.redshotcount + 1732, redshot);
_root["redshot" + _root.redshotcount]._x = this._x;
_root["redshot" + _root.redshotcount]._y = this._y;
_root["redshot" + _root.redshotcount].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["redshot" + _root.redshotcount].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.redshotcount++;
if (_root.redshotcount > 50) {
_root.redshotcount = 1;
}
}
if (this.moving == 0) {
this.movect++;
this._y = this._y + this.yspeed;
}
if (this.movect == 12) {
this.moving = 1;
}
if (this.moving == 1) {
this.shotcount++;
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
}
}
Instance of Symbol 177 MovieClip "redshot" in Frame 191
onClipEvent (load) {
if (this._name == "redshot") {
this._visible = false;
} else {
this._visible = true;
}
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.totaldist = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (this.totaldist == 0) {
this.totaldist = 10;
}
this.count = 1;
}
onClipEvent (enterFrame) {
if (this._name != "redshot") {
this.count++;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
i = 1;
while (i <= 4) {
if (this.hitTest(_root.ast["asthit" + i])) {
if (_root.ast.canhit == 1) {
_root.bigastlife--;
}
this.removeMovieClip();
}
i++;
}
j = 1;
while (j <= 8) {
if ((this.hitTest(_root["redship" + j]) && (_root["redship" + j].dead == 0)) && (this.count > 10)) {
_root["redship" + j].gotoAndPlay(2);
}
j++;
}
if ((((this._x > 550) || (this._x < 0)) || (this._y > 400)) || (this._y < 0)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 180 MovieClip "greenship" in Frame 191
onClipEvent (load) {
if (this._name == "greenship") {
this._visible = false;
} else {
this._visible = true;
}
this.life = 2;
this.adjust = 0;
this.stoppage = 0;
this.pivalue = Math.PI;
this.movementpiece = 0;
this.mvadjust = 1;
this.shotcount = 1;
this.dead = 0;
this.deflectspeed = 20;
this.invinc = 0;
this.invincct = 1;
}
onClipEvent (enterFrame) {
if ((this._name != "greenship") && (_root.level == 16)) {
if ((this.life <= 0) && (this.dead == 0)) {
this.gotoAndPlay(3);
}
if (this._x > 550) {
this._x = 10;
}
if (this._x < 0) {
this._x = 540;
}
if (this._y > 400) {
this._y = 10;
}
if (this._y < 0) {
this._y = 390;
}
this.adjust++;
if (this.invinc == 1) {
this.invincct++;
if ((this._name == "greenship1") || (this._name == "greenship2")) {
this._y = this._y + this.deflectspeed;
} else if ((this._name == "greenship3") || (this._name == "greenship4")) {
this._x = this._x + this.deflectspeed;
}
}
if (this.invincct == 10) {
this.invinc = 0;
this.invincct = 1;
}
if ((this.hitTest(_root.ast) && (this.dead == 0)) && (this.invinc == 0)) {
if (this.life == 1) {
this.life--;
}
if (this.life == 2) {
this.gotoAndStop(2);
this.invinc = 1;
if ((this._name == "greenship1") || (this._name == "greenship2")) {
if (this._y > _root.ast._y) {
this.deflectspeed = 20;
} else if (this._y < _root.ast._y) {
this.deflectspeed = -20;
}
} else if ((this._name == "greenship3") || (this._name == "greenship4")) {
if (this._x > _root.ast._x) {
this.deflectspeed = 20;
} else if (this._x < _root.ast._x) {
this.deflectspeed = -20;
}
}
}
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
if (this.stoppage == 0) {
if ((this._name == "greenship1") || (this._name == "greenship2")) {
this._y = this._y + this.yspeed;
} else if ((this._name == "greenship3") || (this._name == "greenship4")) {
this._x = this._x + this.xspeed;
}
}
if (this.adjust == 9) {
this.stoppage = 1;
}
if (this.stoppage == 1) {
this.mvadjust++;
this.shotcount++;
if ((this.shotcount % 33) == 0) {
_root.greenshot.duplicateMovieClip("greenshot" + _root.greenshotcount, _root.greenshotcount + 1632, greenshot);
_root["greenshot" + _root.greenshotcount]._x = this._x;
_root["greenshot" + _root.greenshotcount]._y = this._y;
_root["greenshot" + _root.greenshotcount].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["greenshot" + _root.greenshotcount].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.greenshotcount++;
if (_root.greenshotcount > 50) {
_root.greenshotcount = 1;
}
}
if (this.movementpiece == 0) {
if ((this._name == "greenship1") || (this._name == "greenship2")) {
this._x = this._x + this.xspeed;
}
if ((this._name == "greenship3") || (this._name == "greenship4")) {
this._y = this._y + this.yspeed;
}
} else if (this.movementpiece == 1) {
if ((this._name == "greenship1") || (this._name == "greenship2")) {
this._x = this._x - this.xspeed;
}
if ((this._name == "greenship3") || (this._name == "greenship4")) {
this._y = this._y - this.yspeed;
}
}
if ((this.mvadjust % 17) == 0) {
if (this.movementpiece == 0) {
this.movementpiece = 1;
} else if (this.movementpiece == 1) {
this.movementpiece = 0;
}
}
}
}
}
Instance of Symbol 182 MovieClip "greenshot" in Frame 191
onClipEvent (load) {
if (this._name == "greenshot") {
this._visible = false;
} else {
this._visible = true;
}
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.totaldist = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (this.totaldist == 0) {
this.totaldist = 10;
}
this.count = 1;
}
onClipEvent (enterFrame) {
if (this._name != "greenshot") {
this.count++;
this._x = this._x + (1.7 * this.xspeed);
this._y = this._y + (1.7 * this.yspeed);
i = 1;
while (i <= 4) {
if (this.hitTest(_root.ast["asthit" + i])) {
if (_root.ast.canhit == 1) {
_root.bigastlife--;
}
this.removeMovieClip();
}
i++;
}
j = 1;
while (j <= 4) {
if ((this.hitTest(_root["greenship" + j]) && (_root["greenship" + j].dead == 0)) && (this.count > 10)) {
if (_root["greenship" + j].life == 2) {
_root["greenship" + j].gotoAndStop(2);
_root["greenship" + j].life--;
_root.playsound3.start(0, 1);
this.removeMovieClip();
} else if (_root["greenship" + j].life == 1) {
_root["greenship" + j].life--;
}
}
j++;
}
if ((((this._x > 550) || (this._x < 0)) || (this._y > 400)) || (this._y < 0)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 186 MovieClip "purpleship" in Frame 191
onClipEvent (load) {
if (this._name == "purpleship") {
this._visible = false;
} else {
this._visible = true;
}
this.dead = 0;
this.mvcount = 1;
this.canmove = 0;
this.pivalue = Math.PI;
this.shotcount = 1;
}
onClipEvent (enterFrame) {
if ((this._name != "purpleship") && (_root.level == 17)) {
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
if (this.canmove == 0) {
this.mvcount++;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
}
if (this.mvcount == 20) {
this.canmove = 1;
}
if (this.canmove == 1) {
this.shotcount++;
if ((this.shotcount % 25) == 0) {
_root.purpleshot.duplicateMovieClip("purpleshot" + _root.purpleshots, _root.purpleshots + 1532, purpleshot);
_root["purpleshot" + _root.purpleshots]._x = this._x;
_root["purpleshot" + _root.purpleshots]._y = this._y;
_root["purpleshot" + _root.purpleshots].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["purpleshot" + _root.purpleshots].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.purpleshots++;
if (_root.purpleshots > 50) {
_root.purpleshots = 1;
}
}
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
}
}
Instance of Symbol 188 MovieClip "purpleshot" in Frame 191
onClipEvent (load) {
if (this._name == "purpleshot") {
this._visible = false;
} else {
this._visible = true;
}
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.totaldist = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (this.totaldist == 0) {
this.totaldist = 10;
}
this.count = 1;
}
onClipEvent (enterFrame) {
if (this._name != "purpleshot") {
this.count++;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
i = 1;
while (i <= 4) {
if (this.hitTest(_root.ast["asthit" + i])) {
if (_root.ast.canhit == 1) {
_root.bigastlife--;
}
this.removeMovieClip();
}
i++;
}
j = 1;
while (j <= 8) {
if ((this.hitTest(_root["purplescion" + j]) && (_root["purplescion" + j].dead == 0)) && (this.count > 10)) {
_root["purplescion" + j].gotoAndPlay(2);
}
j++;
}
k = 1;
while (k <= 4) {
if ((this.hitTest(_root["purpleship" + k]) && (_root["purpleship" + k].dead == 0)) && (this.count > 10)) {
_root["purpleship" + k].gotoAndPlay(2);
}
k++;
}
if ((((this._x > 550) || (this._x < 0)) || (this._y > 400)) || (this._y < 0)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 190 MovieClip "purplescion" in Frame 191
onClipEvent (load) {
if (this._name == "purplescion") {
this._visible = false;
} else {
this._visible = true;
}
if ((((this._name == "purplescion1") || (this._name == "purplescion3")) || (this._name == "purplescion5")) || (this._name == "purplescion7")) {
this.xspeed = 15;
this.yspeed = 15;
}
if ((((this._name == "purplescion2") || (this._name == "purplescion4")) || (this._name == "purplescion6")) || (this._name == "purplescion8")) {
this.xspeed = -15;
this.yspeed = -15;
}
this.pivalue = Math.PI;
this.dead = 0;
this.invnc = 0;
this.invcount = 1;
this.shotcount = 1;
}
onClipEvent (enterFrame) {
if (this._name != "purplescion") {
if ((this.hitTest(_root.ast) && (this.dead == 0)) && (this.invnc == 1)) {
this.gotoAndPlay(2);
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.invcount++;
if (this.invcount == 9) {
this.invnc = 1;
}
if (this.invnc == 0) {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
}
if ((this.hitTest(_root.ast) && (this.dead == 0)) && (this.invnc == 1)) {
this.gotoAndPlay(2);
}
this.shotcount++;
if ((this.shotcount % 35) == 0) {
_root.purpleshot.duplicateMovieClip("purpleshot" + _root.purpleshots, _root.purpleshots + 1432, purpleshot);
_root["purpleshot" + _root.purpleshots]._x = this._x;
_root["purpleshot" + _root.purpleshots]._y = this._y;
_root["purpleshot" + _root.purpleshots].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["purpleshot" + _root.purpleshots].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.purpleshots++;
if (_root.purpleshots > 98) {
_root.purpleshots = 0;
}
}
if (this._x > 500) {
this._x = this._x - 5;
}
if (this._x < 50) {
this._x = this._x + 5;
}
if (this._y < 40) {
this._y = this._y + 5;
}
if (this._y > 360) {
this._y = this._y - 5;
}
}
}
Instance of Symbol 219 MovieClip "coloredboss1" in Frame 191
onClipEvent (load) {
this._x = 650;
this._y = 100;
this.yspeed = 10;
this.hitspeed = 10;
this.ymvcounter = 1;
this.ytracker = 1;
this.pivalue = Math.PI;
this.shotcount = 1;
this.dead = 0;
this.deflectspeed = 20;
this.invinc = 0;
this.invincct = 1;
}
onClipEvent (enterFrame) {
if (_root.level == 18) {
if ((_root.colorbosslife1 <= 0) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
if (this.invinc == 1) {
this.invincct++;
if (this._x < _root.ast._x) {
this._x = this._x - this.deflectspeed;
} else if (this._x > _root.ast._x) {
this._x = this._x + this.deflectspeed;
}
}
if (this.invincct == 15) {
this.invinc = 0;
this.invincct = 1;
}
if ((this.hitTest(_root.ast) && (this.dead == 0)) && (this.invinc == 0)) {
_root.colorbosslife1--;
this.invinc = 1;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
}
this.shotcount++;
if ((this.shotcount % 24) == 0) {
_root.yellowshot.duplicateMovieClip("yellowshot" + _root.coloredbossshot, _root.coloredbossshot + 1532, yellowshot);
_root["yellowshot" + _root.coloredbossshot]._x = this._x;
_root["yellowshot" + _root.coloredbossshot]._y = this._y;
_root["yellowshot" + _root.coloredbossshot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["yellowshot" + _root.coloredbossshot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.coloredbossshot++;
if (_root.coloredbossshot > 90) {
_root.coloredbossshot = 1;
}
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.ymvcounter++;
if ((this.ymvcounter % 20) == 0) {
if (this.ytracker == 1) {
this.ytracker = 2;
} else if (this.ytracker == 2) {
this.ytracker = 1;
}
}
if (this.ytracker == 1) {
this._y = this._y + this.yspeed;
} else if (this.ytracker == 2) {
this._y = this._y - this.yspeed;
}
if (this._x > 500) {
this._x = this._x - this.hitspeed;
} else if (this._x < 100) {
this._x = this._x + this.hitspeed;
}
}
}
Instance of Symbol 220 MovieClip "coloredboss2" in Frame 191
onClipEvent (load) {
this._x = -100;
this._y = 300;
this.yspeed = -10;
this.hitspeed = 10;
this.ymvcounter = 1;
this.ytracker = 1;
this.pivalue = Math.PI;
this.shotcount = 1;
this.dead = 0;
this.deflectspeed = 20;
this.invinc = 0;
this.invincct = 1;
}
onClipEvent (enterFrame) {
if (_root.level == 18) {
if ((_root.colorbosslife2 <= 0) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
if (this.invinc == 1) {
this.invincct++;
if (this._x < _root.ast._x) {
this._x = this._x - this.deflectspeed;
} else if (this._x > _root.ast._x) {
this._x = this._x + this.deflectspeed;
}
}
if (this.invincct == 15) {
this.invinc = 0;
this.invincct = 1;
}
if ((this.hitTest(_root.ast) && (this.dead == 0)) && (this.invinc == 0)) {
_root.colorbosslife2--;
this.invinc = 1;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
}
this.shotcount++;
if ((this.shotcount % 27) == 0) {
_root.yellowshot.duplicateMovieClip("yellowshot" + _root.coloredbossshot, _root.coloredbossshot + 1532, yellowshot);
_root["yellowshot" + _root.coloredbossshot]._x = this._x;
_root["yellowshot" + _root.coloredbossshot]._y = this._y;
_root["yellowshot" + _root.coloredbossshot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["yellowshot" + _root.coloredbossshot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.coloredbossshot++;
if (_root.coloredbossshot > 90) {
_root.coloredbossshot = 1;
}
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.ymvcounter++;
if ((this.ymvcounter % 20) == 0) {
if (this.ytracker == 1) {
this.ytracker = 2;
} else if (this.ytracker == 2) {
this.ytracker = 1;
}
}
if (this.ytracker == 1) {
this._y = this._y + this.yspeed;
} else if (this.ytracker == 2) {
this._y = this._y - this.yspeed;
}
if (this._x > 500) {
this._x = this._x - this.hitspeed;
} else if (this._x < 100) {
this._x = this._x + this.hitspeed;
}
}
}
Instance of Symbol 222 MovieClip "yellowshot" in Frame 191
onClipEvent (load) {
if (this._name == "yellowshot") {
this._visible = false;
} else {
this._visible = true;
}
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.totaldist = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (this.totaldist == 0) {
this.totaldist = 10;
}
this.count = 1;
}
onClipEvent (enterFrame) {
if (this._name != "yellowshot") {
this.count++;
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
i = 1;
while (i <= 4) {
if (this.hitTest(_root.ast["asthit" + i])) {
if (_root.ast.canhit == 1) {
_root.bigastlife--;
}
this.removeMovieClip();
}
i++;
}
if ((this.hitTest(_root.coloredboss1.hitarea1) && (this.count > 10)) && (_root.coloredboss1.dead == 0)) {
_root.colorbosslife1--;
_root.playsound3.start(0, 1);
this.removeMovieClip();
} else if ((this.hitTest(_root.coloredboss2.hitarea2) && (this.count > 10)) && (_root.coloredboss2.dead == 0)) {
_root.colorbosslife2--;
_root.playsound3.start(0, 1);
this.removeMovieClip();
}
if ((((this._x > 550) || (this._x < 0)) || (this._y > 400)) || (this._y < 0)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 224 MovieClip "text2" in Frame 191
onClipEvent (load) {
this._visible = false;
this.viscount = 1;
}
onClipEvent (enterFrame) {
if (this._visible == true) {
this.viscount++;
}
if (this.viscount == 40) {
this._visible = false;
}
}
Instance of Symbol 230 MovieClip "phaseship" in Frame 191
onClipEvent (load) {
if (this._name == "phaseship") {
this._visible = false;
} else {
this._visible = true;
}
if (this._name == "phaseship1") {
this._x = 650;
this._y = -100;
} else if (this._name == "phaseship2") {
this._x = 650;
this._y = 500;
} else if (this._name == "phaseship3") {
this._x = -100;
this._y = 500;
} else if (this._name == "phaseship4") {
this._x = -100;
this._y = -100;
}
this.movespeed = 10;
this.dead = 0;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if ((_root.level == 19) && (this._name != "phaseship")) {
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / this.pivalue;
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
if (this._x > 450) {
this._x = this._x - this.movespeed;
} else if (this._x < 100) {
this._x = this._x + this.movespeed;
}
if (this._y > 300) {
this._y = this._y - this.movespeed;
} else if (this._y < 100) {
this._y = this._y + this.movespeed;
}
}
}
Instance of Symbol 232 MovieClip "phase2ship" in Frame 191
onClipEvent (load) {
if (this._name == "phase2ship") {
this._visible = false;
} else {
this._visible = true;
}
if ((((this._name == "phase2ship1") || (this._name == "phase2ship2")) || (this._name == "phase2ship3")) || (this._name == "phase2ship4")) {
this._y = -100;
} else if ((((this._name == "phase2ship5") || (this._name == "phase2ship6")) || (this._name == "phase2ship7")) || (this._name == "phase2ship8")) {
this._y = 500;
}
if ((this._name == "phase2ship1") || (this._name == "phase2ship5")) {
this._x = 100;
} else if ((this._name == "phase2ship2") || (this._name == "phase2ship6")) {
this._x = 200;
} else if ((this._name == "phase2ship3") || (this._name == "phase2ship7")) {
this._x = 300;
} else if ((this._name == "phase2ship4") || (this._name == "phase2ship8")) {
this._x = 400;
}
this.dead = 0;
this.pivalue = Math.PI;
this.shotcount = 1;
}
onClipEvent (enterFrame) {
if ((this._name != "phase2ship") && (_root.level == 20)) {
this.shotcount++;
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
if ((this.shotcount % 55) == 0) {
_root.shot.duplicateMovieClip("shot" + _root.phasershot, _root.phasershot + 2200, shot);
_root["shot" + _root.phasershot]._x = this._x;
_root["shot" + _root.phasershot]._y = this._y;
_root["shot" + _root.phasershot].xspeed = Math.cos(((this._rotation + 3.5) * this.pivalue) / 180) * 6.5;
_root["shot" + _root.phasershot].yspeed = Math.sin(((this._rotation + 3.5) * this.pivalue) / 180) * 6.5;
_root.phasershot++;
_root.shot.duplicateMovieClip("shot" + _root.phasershot, _root.phasershot + 2200, shot);
_root["shot" + _root.phasershot]._x = this._x;
_root["shot" + _root.phasershot]._y = this._y;
_root["shot" + _root.phasershot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 6.5;
_root["shot" + _root.phasershot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 6.5;
_root.phasershot++;
_root.shot.duplicateMovieClip("shot" + _root.phasershot, _root.phasershot + 2200, shot);
_root["shot" + _root.phasershot]._x = this._x;
_root["shot" + _root.phasershot]._y = this._y;
_root["shot" + _root.phasershot].xspeed = Math.cos(((this._rotation - 3.5) * this.pivalue) / 180) * 6.5;
_root["shot" + _root.phasershot].yspeed = Math.sin(((this._rotation - 3.5) * this.pivalue) / 180) * 6.5;
_root.phasershot++;
if (_root.phasershot > 300) {
_root.phasershot = 1;
}
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / this.pivalue;
if (this._y > 330) {
this._y = this._y - 5;
} else if (this._y < 70) {
this._y = this._y + 5;
}
}
}
Instance of Symbol 272 MovieClip "bigphaser" in Frame 191
onClipEvent (load) {
this._x = 750;
this._y = -200;
this.life = 30;
this.speed = 10;
this.pivalue = Math.PI;
this.shotcount = 1;
this.numshots = 1;
this.spreadfirect = 1;
this.spreadfire = 1;
this.theangle = 1;
this.dead = 0;
this.deflectspeed = 20;
this.invinc = 0;
this.invincct = 1;
}
onClipEvent (enterFrame) {
if (_root.level == 21) {
this.shotcount++;
this.spreadfirect++;
if (this.invinc == 1) {
this.invincct++;
if (this._x < _root.ast._x) {
this._x = this._x - this.deflectspeed;
} else if (this._x >= _root.ast._x) {
this._x = this._x + this.deflectspeed;
}
if (this._y < _root.ast._y) {
this._y = this._y - this.deflectspeed;
} else if (this._y >= _root.ast._y) {
this._y = this._y + this.deflectspeed;
}
}
if (this.invincct == 15) {
this.invinc = 0;
this.invincct = 1;
}
if ((this.hitTest(_root.ast) && (this.dead == 0)) && (this.invinc == 0)) {
this.life--;
this.invinc = 1;
if (((this.life == 35) || (this.life == 25)) || (this.life == 10)) {
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 300;
_root.health1._y = 200;
}
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
}
if ((this.life <= 0) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
if ((this.spreadfirect % 45) == 0) {
_root.shot.duplicateMovieClip("shot" + this.spreadfire, this.spreadfire + 2300, shot);
_root["shot" + this.spreadfire]._x = this._x;
_root["shot" + this.spreadfire]._y = this._y;
_root["shot" + this.spreadfire].xspeed = Math.cos(((this._rotation + 7) * this.pivalue) / 180) * 6.5;
_root["shot" + this.spreadfire].yspeed = Math.sin(((this._rotation + 7) * this.pivalue) / 180) * 6.5;
this.spreadfire++;
_root.shot.duplicateMovieClip("shot" + this.spreadfire, this.spreadfire + 2300, shot);
_root["shot" + this.spreadfire]._x = this._x;
_root["shot" + this.spreadfire]._y = this._y;
_root["shot" + this.spreadfire].xspeed = Math.cos(((this._rotation + 3.5) * this.pivalue) / 180) * 6.5;
_root["shot" + this.spreadfire].yspeed = Math.sin(((this._rotation + 3.5) * this.pivalue) / 180) * 6.5;
this.spreadfire++;
_root.shot.duplicateMovieClip("shot" + this.spreadfire, this.spreadfire + 2300, shot);
_root["shot" + this.spreadfire]._x = this._x;
_root["shot" + this.spreadfire]._y = this._y;
_root["shot" + this.spreadfire].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 6.5;
_root["shot" + this.spreadfire].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 6.5;
this.spreadfire++;
_root.shot.duplicateMovieClip("shot" + this.spreadfire, this.spreadfire + 2200, shot);
_root["shot" + this.spreadfire]._x = this._x;
_root["shot" + this.spreadfire]._y = this._y;
_root["shot" + this.spreadfire].xspeed = Math.cos(((this._rotation - 3.5) * this.pivalue) / 180) * 6.5;
_root["shot" + this.spreadfire].yspeed = Math.sin(((this._rotation - 3.5) * this.pivalue) / 180) * 6.5;
this.spreadfire++;
_root.shot.duplicateMovieClip("shot" + this.spreadfire, this.spreadfire + 2300, shot);
_root["shot" + this.spreadfire]._x = this._x;
_root["shot" + this.spreadfire]._y = this._y;
_root["shot" + this.spreadfire].xspeed = Math.cos(((this._rotation - 7) * this.pivalue) / 180) * 6.5;
_root["shot" + this.spreadfire].yspeed = Math.sin(((this._rotation - 7) * this.pivalue) / 180) * 6.5;
this.spreadfire++;
if (this.spreadfire > 99) {
this.spreadfire = 1;
}
}
if ((((((((((this.shotcount % 40) == 0) || ((this.shotcount % 43) == 0)) || ((this.shotcount % 46) == 0)) || ((this.shotcount % 49) == 0)) || ((this.shotcount % 52) == 0)) || ((this.shotcount % 55) == 0)) || ((this.shotcount % 58) == 0)) || ((this.shotcount % 61) == 0)) || ((this.shotcount % 64) == 0)) {
this.theangle = 25 - random(50);
_root.shot.duplicateMovieClip("shot" + this.numshots, this.numshots + 2200, shot);
_root["shot" + this.numshots]._x = this._x;
_root["shot" + this.numshots]._y = this._y;
_root["shot" + this.numshots].xspeed = Math.cos(((this._rotation + this.theangle) * this.pivalue) / 180) * 8;
_root["shot" + this.numshots].yspeed = Math.sin(((this._rotation + this.theangle) * this.pivalue) / 180) * 8;
this.numshots++;
if (this.numshots > 99) {
this.numshots = 1;
}
}
if (this.shotcount == 65) {
this.shotcount = 1;
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / this.pivalue;
if (this._x > 300) {
this._x = this._x - this.speed;
} else if (this._x < 200) {
this._x = this._x + this.speed;
}
if (this._y > 250) {
this._y = this._y - this.speed;
} else if (this._y < 150) {
this._y = this._y + this.speed;
}
}
}
Instance of Symbol 274 MovieClip "endphaseship" in Frame 191
onClipEvent (load) {
function reset() {
if (this._name == "endphaseship") {
this._visible = false;
} else {
this._visible = true;
}
if (this._name == "endphaseship1") {
this._x = 100;
this._y = -140;
} else if (this._name == "endphaseship2") {
this._x = 450;
this._y = 540;
} else if (this._name == "endphaseship3") {
this._x = 100;
this._y = 540;
} else if (this._name == "endphaseship4") {
this._x = 450;
this._y = -140;
}
this.dead = 0;
this.pivalue = Math.PI;
this.shotcount = 1;
}
this.reset();
}
onClipEvent (enterFrame) {
if ((this._name != "endphaseship") && (_root.level == 22)) {
this.shotcount++;
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
if ((this.shotcount % 55) == 0) {
_root.shot.duplicateMovieClip("shot" + _root.phasershot, _root.phasershot + 2200, shot);
_root["shot" + _root.phasershot]._x = this._x;
_root["shot" + _root.phasershot]._y = this._y;
_root["shot" + _root.phasershot].xspeed = Math.cos(((this._rotation + 3.5) * this.pivalue) / 180) * 7.5;
_root["shot" + _root.phasershot].yspeed = Math.sin(((this._rotation + 3.5) * this.pivalue) / 180) * 7.5;
_root.phasershot++;
_root.shot.duplicateMovieClip("shot" + _root.phasershot, _root.phasershot + 2200, shot);
_root["shot" + _root.phasershot]._x = this._x;
_root["shot" + _root.phasershot]._y = this._y;
_root["shot" + _root.phasershot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 7.5;
_root["shot" + _root.phasershot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 7.5;
_root.phasershot++;
_root.shot.duplicateMovieClip("shot" + _root.phasershot, _root.phasershot + 2200, shot);
_root["shot" + _root.phasershot]._x = this._x;
_root["shot" + _root.phasershot]._y = this._y;
_root["shot" + _root.phasershot].xspeed = Math.cos(((this._rotation - 3.5) * this.pivalue) / 180) * 7.5;
_root["shot" + _root.phasershot].yspeed = Math.sin(((this._rotation - 3.5) * this.pivalue) / 180) * 7.7;
_root.phasershot++;
if (_root.phasershot > 300) {
_root.phasershot = 1;
}
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / this.pivalue;
if (this._y > 330) {
this._y = this._y - 5;
} else if (this._y < 70) {
this._y = this._y + 5;
}
}
}
Instance of Symbol 276 MovieClip "finaltext" in Frame 191
onClipEvent (load) {
this._visible = false;
this.viscount = 1;
}
onClipEvent (enterFrame) {
if (this._visible == true) {
this.viscount++;
}
if (this.viscount == 40) {
this._visible = false;
}
}
Instance of Symbol 277 MovieClip "finalship" in Frame 191
onClipEvent (load) {
function reset() {
this.dead = 0;
this.distfromast = 500;
this.xdist = 500;
this.ydist = 500;
if (this._name == "finalship") {
this._visible = false;
} else {
this._visible = true;
}
this._y = random(300) + 50;
this.xpos = random(30);
if (this.xpos > 15) {
this._x = -100;
} else {
this._x = 650;
}
this.pivalue = Math.PI;
this.movecounter = 1;
this.shotcount = 1;
}
this.reset();
}
onClipEvent (enterFrame) {
if (((_root.level == 22) && (_root.overcount > 200)) && (this._name != "finalship")) {
this.shotcount++;
if (((this.shotcount % 33) == 0) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.smallshotcount, _root.smallshotcount + 9100, shot);
_root["shot" + _root.smallshotcount]._x = this._x;
_root["shot" + _root.smallshotcount]._y = this._y;
_root["shot" + _root.smallshotcount].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.smallshotcount].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.smallshotcount++;
if (_root.smallshotcount > 98) {
_root.smallshotcount = 1;
}
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
this.xdist = this._x - _root.ast._x;
this.ydist = this._y - _root.ast._y;
this.distfromast = Math.sqrt((this.xdist * this.xdist) + (this.ydist * this.ydist));
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
if (this.distfromast > 150) {
if (this._x < _root.ast._x) {
this._x = this._x + 3;
} else {
this._x = this._x - 3;
}
if (this._y < _root.ast._y) {
this._y = this._y + 3;
} else if (this._y > _root.ast._y) {
this._y = this._y - 3;
}
}
}
}
Instance of Symbol 278 MovieClip "theone" in Frame 191
onClipEvent (load) {
function reset() {
this.dead = 0;
if (this._name == "theone") {
this._visible = false;
} else {
this._visible = true;
}
this.shotcount = 1;
if (((this._name == "theone1") || (this._name == "theone2")) || (this._name == "theone3")) {
this._y = -100;
} else if (((this._name == "theone4") || (this._name == "theone5")) || (this._name == "theone6")) {
this._y = 500;
}
if ((this._name == "theone1") || (this._name == "theone4")) {
this._x = 90;
} else if ((this._name == "theone2") || (this._name == "theone5")) {
this._x = 240;
} else if ((this._name == "theone3") || (this._name == "theone6")) {
this._x = 390;
}
this.pivalue = Math.PI;
}
this.reset();
}
onClipEvent (enterFrame) {
if (((this.dead == 0) && (this._name != "theone")) && (_root.overcount > 500)) {
this.shotcount++;
if (this._x > 350) {
this._x = this._x - 3;
} else if (this._x < 150) {
this._x = this._x + 3;
}
if (this._y > 300) {
this._y = this._y - 3;
} else if (this._y < 100) {
this._y = this._y + 3;
}
if (this.hitTest(_root.ast) && (this.dead == 0)) {
this.gotoAndPlay(2);
}
this._rotation = (Math.atan2(_root.ast._y - this._y, _root.ast._x - this._x) * 180) / Math.PI;
if (((this.shotcount % 33) == 0) && (this.dead == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.finalshot, _root.finalshot + 8100, shot);
_root["shot" + _root.finalshot]._x = this._x;
_root["shot" + _root.finalshot]._y = this._y;
_root["shot" + _root.finalshot].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 5;
_root["shot" + _root.finalshot].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 5;
_root.finalshot++;
if (_root.finalshot > 98) {
_root.finalshot = 1;
}
}
}
}
Instance of Symbol 284 MovieClip "health" in Frame 191
onClipEvent (load) {
if (this._name == "health") {
this._visible = false;
} else {
this._visible = true;
}
this.viscount = 1;
}
onClipEvent (enterFrame) {
if (this._name != "health") {
if (this._visible == true) {
this.viscount++;
}
if (this.viscount == 200) {
this.removeMovieClip();
}
if (this.hitTest(_root.ast)) {
if (_root.bigastlife >= 46) {
_root.bigastlife = 50;
} else {
_root.bigastlife = _root.bigastlife + 4;
}
this.removeMovieClip();
}
}
}
Instance of Symbol 286 MovieClip "speed" in Frame 191
onClipEvent (load) {
if (this._name == "speed") {
this._visible = false;
} else {
this._visible = true;
}
this.viscount = 1;
}
onClipEvent (enterFrame) {
if (this._name != "speed") {
if (this._visible == true) {
this.viscount++;
}
if (this.viscount == 200) {
this.removeMovieClip();
}
if (this.hitTest(_root.ast)) {
_root.speedlevel = _root.speedlevel + 1;
this.removeMovieClip();
}
}
}
Instance of Symbol 288 MovieClip "invin" in Frame 191
onClipEvent (load) {
if (this._name == "invin") {
this._visible = false;
} else {
this._visible = true;
}
this.viscount = 1;
}
onClipEvent (enterFrame) {
if (this._name != "invin") {
if (this._visible == true) {
this.viscount++;
}
if (this.viscount == 200) {
this.removeMovieClip();
}
if (this.hitTest(_root.ast)) {
_root.ast.canhit = 0;
this.removeMovieClip();
}
}
}
Frame 192
stop();
mochi.MochiScores.showLeaderboard({boardID:"bc93b4a163bcbfa9", score:score});
Frame 193
stop();
stopAllSounds();
Symbol 7 Button
on (release) {
getURL ("http://www.flashninjaclan.com", "_blank");
}
Symbol 12 Button
on (release) {
getURL ("http://www.java-gaming.com", "_blank");
}
Symbol 304 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.31");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 305 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var _local21 = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
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 _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._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 = _local6.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 = _local6.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 _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local24, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = _local21;
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.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_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 showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local15 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local15);
var clip = options.clip;
var _local12 = 11000;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var _local11 = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local6 = _getRes(options);
var _local16 = _local6[0];
var _local13 = _local6[1];
_local3._x = _local16 * 0.5;
_local3._y = _local13 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = _local11;
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;
}
};
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
_local3.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
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) {
options.ad_failed();
_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 showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(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 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);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
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++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 306 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.childClip._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.clip.stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.clip.play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 32 MovieClip Frame 1
play();
Symbol 38 Button
on (release) {
getURL ("http://www.flashninjaclan.com", "_blank");
}
Symbol 42 Button
on (release) {
_root.gotoAndPlay("menuframe");
}
Symbol 47 Button
on (release) {
_root.gotoAndPlay("gaming");
}
Symbol 49 Button
on (release) {
_root.gotoAndPlay("controls");
}
Symbol 51 Button
on (release) {
_root.gotoAndPlay("highscores");
}
Symbol 53 Button
on (release) {
getURL ("http://www.flashninjaclan.com", "_blank");
}
Symbol 55 Button
on (release) {
getURL ("http://www.java-gaming.com", "_blank");
}
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 10;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
_root.lvl2ship.duplicateMovieClip("lvl2ship1", 1201, lvl2ship);
_root.lvl2ship1._x = -20;
_root.lvl2ship1._y = 200;
_root.lvl2ship.duplicateMovieClip("lvl2ship2", 1202, lvl2ship);
_root.lvl2ship2._x = 570;
_root.lvl2ship2._y = 200;
_root.lvl2ship.duplicateMovieClip("lvl2ship3", 1203, lvl2ship);
_root.lvl2ship3._x = 275;
_root.lvl2ship3._y = -20;
_root.lvl2ship.duplicateMovieClip("lvl2ship4", 1204, lvl2ship);
_root.lvl2ship4._x = 275;
_root.lvl2ship4._y = 420;
Symbol 65 MovieClip Frame 4
_root.level = 2;
_root.smallshotclock = 0;
this.swapDepths(9999);
this.removeMovieClip();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
this.dead = 1;
play();
Symbol 85 MovieClip Frame 6
_root.health.swapDepths(9999);
_root.health.removeMovieClip();
_root.health1.removeMovieClip();
_root.speed.swapDepths(9999);
_root.speed.removeMovieClip();
_root.speed1.removeMovieClip();
_root.invin.swapDepths(9999);
_root.invin.removeMovieClip();
_root.invin1.removeMovieClip();
_root.bigphaser.swapDepths(9999);
_root.bigphaser.removeMovieClip();
_root.boss1.swapDepths(9999);
_root.boss1.removeMovieClip();
_root.secondboss.swapDepths(9999);
_root.secondboss.removeMovieClip();
_root.thirdboss.swapDepths(9999);
_root.thirdboss.removeMovieClip();
_root.coloredboss1.swapDepths(9999);
_root.coloredboss1.removeMovieClip();
_root.coloredboss2.swapDepths(9999);
_root.coloredboss2.removeMovieClip();
_root.enemydifttype.swapDepths(9999);
_root.enemydifttype.removeMovieClip();
_root.enemy2type.swapDepths(9999);
_root.enemy2type.removeMovieClip();
_root.minidiff.swapDepths(9999);
_root.minidiff.removeMovieClip();
_root.shellship.swapDepths(9999);
_root.shellship.removeMovieClip();
_root.thirdenemy.swapDepths(9999);
_root.thirdenemy.removeMovieClip();
_root.scion.swapDepths(9999);
_root.scion.removeMovieClip();
_root.third2enemy.swapDepths(9999);
_root.third2enemy.removeMovieClip();
_root.secondscion.swapDepths(9999);
_root.secondscion.removeMovieClip();
_root.third3enemy.swapDepths(9999);
_root.third3enemy.removeMovieClip();
_root.smallshellship.swapDepths(9999);
_root.smallshellship.removeMovieClip();
_root.greenship.swapDepths(9999);
_root.greenship.removeMovieClip();
_root.coloredship.swapDepths(9999);
_root.coloredship.removeMovieClip();
_root.redship.swapDepths(9999);
_root.redship.removeMovieClip();
_root.purpleship.swapDepths(9999);
_root.purpleship.removeMovieClip();
_root.purplescion.swapDepths(9999);
_root.purplescion.removeMovieClip();
_root.phase2ship.swapDepths(9999);
_root.phase2ship.removeMovieClip();
_root.phaseship.swapDepths(9999);
_root.phaseship.removeMovieClip();
_root.lvl3ship.swapDepths(9999);
_root.lvl3ship.removeMovieClip();
_root.lvl2ship.swapDepths(9999);
_root.lvl2ship.removeMovieClip();
_root.shiplvl1.swapDepths(9999);
_root.shiplvl1.removeMovieClip();
_root.thirdscion.swapDepths(9999);
_root.thirdscion.removeMovieClip();
_root.theone.swapDepths(9999);
_root.theone.removeMovieClip();
_root.finalship.swapDepths(9999);
_root.finalship.removeMovieClip();
_root.endphaseship.swapDepths(9999);
_root.endphaseship.removeMovieClip();
i = 1;
while (i <= 22) {
_root["enemydifttype" + i].removeMovieClip();
_root["enemy2type" + i].removeMovieClip();
_root["minidiff" + i].removeMovieClip();
_root["shellship" + i].removeMovieClip();
_root["thirdenemy" + i].removeMovieClip();
_root["scion" + i].removeMovieClip();
_root["third2enemy" + i].removeMovieClip();
_root["secondscion" + i].removeMovieClip();
_root["third3enemy" + i].removeMovieClip();
_root["smallshellship" + i].removeMovieClip();
_root["greenship" + i].removeMovieClip();
_root["coloredship" + i].removeMovieClip();
_root["redship" + i].removeMovieClip();
_root["purpleship" + i].removeMovieClip();
_root["purplescion" + i].removeMovieClip();
_root["phase2ship" + i].removeMovieClip();
_root["phaseship" + i].removeMovieClip();
_root["lvl3ship" + i].removeMovieClip();
_root["lvl2ship" + i].removeMovieClip();
_root["shiplvl1" + i].removeMovieClip();
_root["thirdscion" + i].removeMovieClip();
_root["theone" + i].removeMovieClip();
_root["finalship" + i].removeMovieClip();
_root["endphaseship" + i].removeMovieClip();
i++;
}
_root.shot.swapDepths(9999);
_root.shot.removeMovieClip();
_root.greenshot.swapDepths(9999);
_root.greenshot.removeMovieClip();
_root.yellowshot.swapDepths(9999);
_root.yellowshot.removeMovieClip();
_root.coloredshot.swapDepths(9999);
_root.coloredshot.removeMovieClip();
_root.redshot.swapDepths(9999);
_root.redshot.removeMovieClip();
_root.purpleshot.swapDepths(9999);
_root.purpleshot.removeMovieClip();
j = 1;
while (j <= 300) {
_root["shot" + j].removeMovieClip();
_root["greenshot" + j].removeMovieClip();
_root["yellowshot" + j].removeMovieClip();
_root["coloredshot" + j].removeMovieClip();
_root["redshot" + j].removeMovieClip();
_root["purpleshot" + j].removeMovieClip();
j++;
}
_root.blackdot.swapDepths(9999);
_root.blackdot.removeMovieClip();
_root.musicnote.swapDepths(9999);
_root.musicnote.removeMovieClip();
_root.gotoAndStop("gameover");
this.removeMovieClip();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 10;
_root.smallshotclock = 0;
_root.lvl2dead++;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (_root.lvl2dead == 4) {
_root.level = 3;
_root.lvl3ship.duplicateMovieClip("lvl3ship2", 1402, lvl3ship);
_root.lvl3ship2._x = -20;
_root.lvl3ship2._y = 70;
_root.lvl3ship2.speed = 5;
_root.lvl3ship.duplicateMovieClip("lvl3ship3", 1403, lvl3ship);
_root.lvl3ship3._x = -20;
_root.lvl3ship3._y = 120;
_root.lvl3ship3.speed = 5;
_root.lvl3ship.duplicateMovieClip("lvl3ship4", 1404, lvl3ship);
_root.lvl3ship4._x = -20;
_root.lvl3ship4._y = 170;
_root.lvl3ship4.speed = 5;
_root.lvl3ship.duplicateMovieClip("lvl3ship5", 1405, lvl3ship);
_root.lvl3ship5._x = -20;
_root.lvl3ship5._y = 220;
_root.lvl3ship5.speed = 5;
_root.lvl3ship.duplicateMovieClip("lvl3ship6", 1406, lvl3ship);
_root.lvl3ship6._x = -20;
_root.lvl3ship6._y = 270;
_root.lvl3ship6.speed = 5;
_root.lvl3ship.duplicateMovieClip("lvl3ship7", 1407, lvl3ship);
_root.lvl3ship7._x = -20;
_root.lvl3ship7._y = 320;
_root.lvl3ship7.speed = 5;
_root.lvl3ship.duplicateMovieClip("lvl3ship8", 1408, lvl3ship);
_root.lvl3ship8._x = -20;
_root.lvl3ship8._y = 370;
_root.lvl3ship8.speed = 5;
_root.lvl3ship.duplicateMovieClip("lvl3ship9", 1409, lvl3ship);
_root.lvl3ship9._x = 570;
_root.lvl3ship9._y = 20;
_root.lvl3ship9.speed = -5;
_root.lvl3ship.duplicateMovieClip("lvl3ship10", 1410, lvl3ship);
_root.lvl3ship10._x = 570;
_root.lvl3ship10._y = 70;
_root.lvl3ship10.speed = -5;
_root.lvl3ship.duplicateMovieClip("lvl3ship22", 1422, lvl3ship);
_root.lvl3ship22._x = 570;
_root.lvl3ship22._y = 120;
_root.lvl3ship22.speed = -5;
_root.lvl3ship.duplicateMovieClip("lvl3ship12", 1412, lvl3ship);
_root.lvl3ship12._x = 570;
_root.lvl3ship12._y = 170;
_root.lvl3ship12.speed = -5;
_root.lvl3ship.duplicateMovieClip("lvl3ship13", 1413, lvl3ship);
_root.lvl3ship13._x = 570;
_root.lvl3ship13._y = 220;
_root.lvl3ship13.speed = -5;
_root.lvl3ship.duplicateMovieClip("lvl3ship14", 1414, lvl3ship);
_root.lvl3ship14._x = 570;
_root.lvl3ship14._y = 270;
_root.lvl3ship14.speed = -5;
_root.lvl3ship.duplicateMovieClip("lvl3ship15", 1415, lvl3ship);
_root.lvl3ship15._x = 570;
_root.lvl3ship15._y = 320;
_root.lvl3ship15.speed = -5;
root.lvl3ship.duplicateMovieClip("lvl3ship16", 1416, lvl3ship);
_root.lvl3ship16._x = 570;
_root.lvl3ship16._y = 370;
_root.lvl3ship16.speed = -5;
}
Symbol 88 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 10;
_root.lvl3dead++;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (_root.lvl3dead == 14) {
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 300;
_root.health1._y = 200;
_root.level = 4;
}
Symbol 89 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 3
stop();
Symbol 102 MovieClip Frame 4
stop();
Symbol 102 MovieClip Frame 5
stop();
Symbol 102 MovieClip Frame 6
stop();
Symbol 102 MovieClip Frame 7
stop();
Symbol 102 MovieClip Frame 8
stop();
Symbol 102 MovieClip Frame 9
stop();
Symbol 102 MovieClip Frame 10
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 10000;
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 300;
_root.health1._y = 200;
_root.speed.duplicateMovieClip("speed1", 6901, speed);
_root.speed1._x = 100;
_root.speed1._y = 300;
if (_global.sound == 1) {
_root.playsound3.start(0, 1);
}
_root.level = 5;
Symbol 108 MovieClip Frame 6
this.swapDepths(9997);
this.removeMovieClip();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 15;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
_root.level = 6;
_root.enemy2duptype.duplicateMovieClip("enemy2duptype1", 2201, enemy2duptype);
_root.enemy2duptype1._x = -100;
_root.enemy2duptype1._y = 50;
_root.enemy2duptype1.movespeed = 6;
_root.enemy2duptype.duplicateMovieClip("enemy2duptype2", 2202, enemy2duptype);
_root.enemy2duptype2._x = 650;
_root.enemy2duptype2._y = 350;
_root.enemy2duptype2.movespeed = -6;
Symbol 114 MovieClip Frame 5
this.swapDepths(9999);
this.removeMovieClip();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 15;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
_root.lvl6dead++;
if (_root.lvl6dead == 2) {
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 300;
_root.health1._y = 200;
_root.level = 7;
_root.secondenemyshotcount = 1;
_root.enemydifttype.duplicateMovieClip("enemydifttype1", 2203, enemydifttype);
_root.enemydifttype1._x = 75;
_root.enemydifttype1._y = -50;
_root.enemydifttype1.movespeed = 6;
_root.enemydifttype.duplicateMovieClip("enemydifttype2", 2204, enemydifttype);
_root.enemydifttype2._x = 475;
_root.enemydifttype2._y = 450;
_root.enemydifttype2.movespeed = -6;
}
Symbol 115 MovieClip Frame 5
this.swapDepths(9999);
this.removeMovieClip();
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 15;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
_root.lvl7dead++;
if (_root.lvl7dead == 2) {
_root.invin.duplicateMovieClip("invin1", 6301, invin);
_root.invin1._x = 300;
_root.invin1._y = 200;
_root.level = 8;
_root.secondenemyshotcount = 1;
_root.minidiff.duplicateMovieClip("minidiff1", 2211, enemydifttype);
_root.minidiff1._x = -50;
_root.minidiff1._y = -50;
_root.minidiff.duplicateMovieClip("minidiff2", 2212, enemydifttype);
_root.minidiff2._x = -50;
_root.minidiff2._y = 450;
_root.minidiff.duplicateMovieClip("minidiff3", 2213, enemydifttype);
_root.minidiff3._x = 600;
_root.minidiff3._y = -50;
_root.minidiff.duplicateMovieClip("minidiff4", 2214, enemydifttype);
_root.minidiff4._x = 600;
_root.minidiff4._y = 450;
}
Symbol 116 MovieClip Frame 5
this.swapDepths(9999);
this.removeMovieClip();
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 15;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
_root.lvl8dead++;
if (_root.lvl8dead == 4) {
_root.level = 9;
}
Symbol 117 MovieClip Frame 5
this.swapDepths(9999);
this.removeMovieClip();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
stop();
Symbol 131 MovieClip Frame 3
stop();
Symbol 131 MovieClip Frame 4
stop();
Symbol 131 MovieClip Frame 5
stop();
Symbol 131 MovieClip Frame 6
stop();
Symbol 131 MovieClip Frame 7
stop();
Symbol 131 MovieClip Frame 8
stop();
Symbol 131 MovieClip Frame 9
stop();
Symbol 131 MovieClip Frame 10
stop();
Symbol 131 MovieClip Frame 11
stop();
Symbol 131 MovieClip Frame 12
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 15000;
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 300;
_root.health1._y = 200;
_root.speed.duplicateMovieClip("speed1", 6901, speed);
_root.speed1._x = 100;
_root.speed1._y = 300;
if (_global.sound == 1) {
_root.playsound3.start(0, 1);
}
_root.level = 10;
Symbol 132 MovieClip Frame 6
this.swapDepths(9997);
this.removeMovieClip();
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 20;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
_root.scion.duplicateMovieClip("scion1", 1902, scion);
_root.scion1._x = this._x;
_root.scion1._y = this._y;
_root.scion.duplicateMovieClip("scion2", 1903, scion);
_root.scion2._x = this._x;
_root.scion2._y = this._y;
Symbol 134 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
this.dead = 1;
_root.scion1death++;
_root.score = _root.score + 20;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (_root.scion1death >= 2) {
_root.level = 11;
_root.third2enemy.duplicateMovieClip("third2enemy1", 2261, third2enemy);
_root.third2enemy1._x = 600;
_root.third2enemy1._y = 200;
_root.third2enemy.duplicateMovieClip("third2enemy2", 2262, third2enemy);
_root.third2enemy2._x = -50;
_root.third2enemy2._y = 200;
_root.third2enemy.duplicateMovieClip("third2enemy3", 2263, third2enemy);
_root.third2enemy3._x = 275;
_root.third2enemy3._y = -100;
_root.third2enemy.duplicateMovieClip("third2enemy4", 2264, third2enemy);
_root.third2enemy4._x = 275;
_root.third2enemy4._y = 500;
}
Symbol 136 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 20;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (this._name == "third2enemy1") {
_root.secondscion.duplicateMovieClip("secondscion1", 1901, secondscion);
_root.secondscion1._x = this._x;
_root.secondscion1._y = this._y;
_root.secondscion.duplicateMovieClip("secondscion2", 1902, secondscion);
_root.secondscion2._x = this._x;
_root.secondscion2._y = this._y;
} else if (this._name == "third2enemy2") {
_root.secondscion.duplicateMovieClip("secondscion3", 1903, secondscion);
_root.secondscion3._x = this._x;
_root.secondscion3._y = this._y;
_root.secondscion.duplicateMovieClip("secondscion4", 1904, secondscion);
_root.secondscion4._x = this._x;
_root.secondscion4._y = this._y;
} else if (this._name == "third2enemy3") {
_root.secondscion.duplicateMovieClip("secondscion5", 1905, secondscion);
_root.secondscion5._x = this._x;
_root.secondscion5._y = this._y;
_root.secondscion.duplicateMovieClip("secondscion6", 1906, secondscion);
_root.secondscion6._x = this._x;
_root.secondscion6._y = this._y;
} else if (this._name == "third2enemy4") {
_root.secondscion.duplicateMovieClip("secondscion7", 1907, secondscion);
_root.secondscion7._x = this._x;
_root.secondscion7._y = this._y;
_root.secondscion.duplicateMovieClip("secondscion8", 1908, secondscion);
_root.secondscion8._x = this._x;
_root.secondscion8._y = this._y;
}
Symbol 138 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
this.dead = 1;
_root.scion2death++;
_root.score = _root.score + 20;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (_root.scion2death >= 8) {
_root.level = 12;
_root.invin.duplicateMovieClip("invin1", 6301, invin);
_root.invin1._x = 300;
_root.invin1._y = 200;
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 400;
_root.health1._y = 200;
_root.third3enemy.duplicateMovieClip("third3enemy1", 2261, third3enemy);
_root.third3enemy1._x = 200;
_root.third3enemy1._y = -20;
_root.third3enemy.duplicateMovieClip("third3enemy2", 2262, third3enemy);
_root.third3enemy2._x = 280;
_root.third3enemy2._y = -20;
_root.third3enemy.duplicateMovieClip("third3enemy3", 2263, third3enemy);
_root.third3enemy3._x = 260;
_root.third3enemy3._y = -20;
_root.third3enemy.duplicateMovieClip("third3enemy4", 2264, third3enemy);
_root.third3enemy4._x = 340;
_root.third3enemy4._y = -20;
_root.third3enemy.duplicateMovieClip("third3enemy5", 2265, third3enemy);
_root.third3enemy5._x = 200;
_root.third3enemy5._y = 420;
_root.third3enemy.duplicateMovieClip("third3enemy6", 2266, third3enemy);
_root.third3enemy6._x = 280;
_root.third3enemy6._y = 420;
_root.third3enemy.duplicateMovieClip("third3enemy7", 2267, third3enemy);
_root.third3enemy7._x = 360;
_root.third3enemy7._y = 420;
_root.third3enemy.duplicateMovieClip("third3enemy8", 2268, third3enemy);
_root.third3enemy8._x = 440;
_root.third3enemy8._y = 420;
}
Symbol 139 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 20;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (this._name == "third3enemy1") {
_root.thirdscion.duplicateMovieClip("thirdscion1", 1901, thirdscion);
_root.thirdscion1._x = this._x;
_root.thirdscion1._y = this._y;
_root.thirdscion.duplicateMovieClip("thirdscion2", 1902, thirdscion);
_root.thirdscion2._x = this._x;
_root.thirdscion2._y = this._y;
} else if (this._name == "third3enemy2") {
_root.thirdscion.duplicateMovieClip("thirdscion3", 1903, thirdscion);
_root.thirdscion3._x = this._x;
_root.thirdscion3._y = this._y;
_root.thirdscion.duplicateMovieClip("thirdscion4", 1904, thirdscion);
_root.thirdscion4._x = this._x;
_root.thirdscion4._y = this._y;
} else if (this._name == "third3enemy3") {
_root.thirdscion.duplicateMovieClip("thirdscion5", 1905, thirdscion);
_root.thirdscion5._x = this._x;
_root.thirdscion5._y = this._y;
_root.thirdscion.duplicateMovieClip("thirdscion6", 1906, thirdscion);
_root.thirdscion6._x = this._x;
_root.thirdscion6._y = this._y;
} else if (this._name == "third3enemy4") {
_root.thirdscion.duplicateMovieClip("thirdscion7", 1907, thirdscion);
_root.thirdscion7._x = this._x;
_root.thirdscion7._y = this._y;
_root.thirdscion.duplicateMovieClip("thirdscion8", 1908, thirdscion);
_root.thirdscion8._x = this._x;
_root.thirdscion8._y = this._y;
} else if (this._name == "third3enemy5") {
_root.thirdscion.duplicateMovieClip("thirdscion9", 1909, thirdscion);
_root.thirdscion9._x = this._x;
_root.thirdscion9._y = this._y;
_root.thirdscion.duplicateMovieClip("thirdscion10", 1910, thirdscion);
_root.thirdscion10._x = this._x;
_root.thirdscion10._y = this._y;
} else if (this._name == "third3enemy6") {
_root.thirdscion.duplicateMovieClip("thirdscion11", 1911, thirdscion);
_root.thirdscion11._x = this._x;
_root.thirdscion11._y = this._y;
_root.thirdscion.duplicateMovieClip("thirdscion12", 1912, thirdscion);
_root.thirdscion12._x = this._x;
_root.thirdscion12._y = this._y;
} else if (this._name == "third3enemy7") {
_root.thirdscion.duplicateMovieClip("thirdscion13", 1913, thirdscion);
_root.thirdscion13._x = this._x;
_root.thirdscion13._y = this._y;
_root.thirdscion.duplicateMovieClip("thirdscion14", 1914, thirdscion);
_root.thirdscion14._x = this._x;
_root.thirdscion14._y = this._y;
} else if (this._name == "third3enemy8") {
_root.thirdscion.duplicateMovieClip("thirdscion15", 1915, thirdscion);
_root.thirdscion13._x = this._x;
_root.thirdscion13._y = this._y;
_root.thirdscion.duplicateMovieClip("thirdscion16", 1916, thirdscion);
_root.thirdscion16._x = this._x;
_root.thirdscion16._y = this._y;
}
Symbol 140 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 3
stop();
Symbol 149 MovieClip Frame 4
stop();
Symbol 149 MovieClip Frame 5
stop();
Symbol 149 MovieClip Frame 6
stop();
Symbol 149 MovieClip Frame 7
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 20000;
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 300;
_root.health1._y = 200;
_root.shellship.duplicateMovieClip("shellship1", 1901, shellship);
_root.shellship1._x = this._x;
_root.shellship1._y = this._y;
_root.shellship.duplicateMovieClip("shellship2", 1902, shellship);
_root.shellship2._x = this._x;
_root.shellship2._y = this._y;
_root.shellship.duplicateMovieClip("shellship3", 1903, shellship);
_root.shellship3._x = this._x;
_root.shellship3._y = this._y;
_root.shellship.duplicateMovieClip("shellship4", 1904, shellship);
_root.shellship4._x = this._x;
_root.shellship4._y = this._y;
Symbol 155 MovieClip Frame 7
this.swapDepths(9999);
this.removeMovieClip();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 157 MovieClip Frame 3
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 20;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (this._name == "shellship1") {
_root.smallshellship.duplicateMovieClip("smallshellship1", 9901, smallshellship);
_root.smallshellship1._x = this._x;
_root.smallshellship1._y = this._y;
_root.smallshellship.duplicateMovieClip("smallshellship2", 9902, smallshellship);
_root.smallshellship2._x = this._x;
_root.smallshellship2._y = this._y;
}
if (this._name == "shellship2") {
_root.smallshellship.duplicateMovieClip("smallshellship3", 9903, smallshellship);
_root.smallshellship3._x = this._x;
_root.smallshellship3._y = this._y;
_root.smallshellship.duplicateMovieClip("smallshellship4", 9904, smallshellship);
_root.smallshellship4._x = this._x;
_root.smallshellship4._y = this._y;
}
if (this._name == "shellship3") {
_root.smallshellship.duplicateMovieClip("smallshellship5", 9905, smallshellship);
_root.smallshellship5._x = this._x;
_root.smallshellship5._y = this._y;
_root.smallshellship.duplicateMovieClip("smallshellship6", 9906, smallshellship);
_root.smallshellship6._x = this._x;
_root.smallshellship6._y = this._y;
}
if (this._name == "shellship4") {
_root.smallshellship.duplicateMovieClip("smallshellship7", 2907, smallshellship);
_root.smallshellship7._x = this._x;
_root.smallshellship7._y = this._y;
_root.smallshellship.duplicateMovieClip("smallshellship8", 2908, smallshellship);
_root.smallshellship8._x = this._x;
_root.smallshellship8._y = this._y;
}
Symbol 158 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 20;
_root.smallshellshipdeath++;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (_root.smallshellshipdeath == 8) {
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 300;
_root.health1._y = 200;
_root.speed.duplicateMovieClip("speed1", 6901, speed);
_root.speed1._x = 100;
_root.speed1._y = 300;
_root.level = 14;
_root.textinst._visible = true;
i = 1;
while (i <= 8) {
_root.coloredship.duplicateMovieClip("coloredship" + i, 9800 + i, coloredship);
i++;
}
}
Symbol 160 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 2
this.dead = 1;
_root.scion3death++;
_root.score = _root.score + 35;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (_root.scion3death == 15) {
_root.level = 13;
_root.invin.duplicateMovieClip("invin1", 6301, invin);
_root.invin1._x = 300;
_root.invin1._y = 200;
}
Symbol 161 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 35;
_root.coloredshipdeath++;
if (_root.coloredshipdeath == 8) {
_root.invin.duplicateMovieClip("invin1", 6301, invin);
_root.invin1._x = 300;
_root.invin1._y = 200;
_root.level = 15;
i = 1;
while (i <= 8) {
_root.redship.duplicateMovieClip("redship" + i, 9700 + i, redship);
i++;
}
}
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
Symbol 168 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 35;
_root.redshipdeath++;
if (_root.redshipdeath == 8) {
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 300;
_root.health1._y = 200;
_root.level = 16;
_root.greenship.duplicateMovieClip("greenship1", 9601, greenship);
_root.greenship1._x = 275;
_root.greenship1._y = -100;
_root.greenship1.xspeed = 5;
_root.greenship1.yspeed = 10;
_root.greenship.duplicateMovieClip("greenship2", 9602, greenship);
_root.greenship2._x = 275;
_root.greenship2._y = 500;
_root.greenship2.xspeed = -5;
_root.greenship2.yspeed = -10;
_root.greenship.duplicateMovieClip("greenship3", 9603, greenship);
_root.greenship3._x = -100;
_root.greenship3._y = 200;
_root.greenship3.xspeed = 10;
_root.greenship3.yspeed = 5;
_root.greenship.duplicateMovieClip("greenship4", 9604, greenship);
_root.greenship4._x = 650;
_root.greenship4._y = 200;
_root.greenship4.xspeed = -10;
_root.greenship4.yspeed = -5;
}
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
Symbol 175 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 2
stop();
this.life = 1;
_root.score = _root.score + 25;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
Symbol 180 MovieClip Frame 3
this.dead = 1;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
_root.lvl16dead++;
if (_root.lvl16dead == 4) {
_root.level = 17;
_root.purpleship.duplicateMovieClip("purpleship1", 9501, purpleship);
_root.purpleship1._x = -100;
_root.purpleship1._y = -100;
_root.purpleship1.xspeed = 10;
_root.purpleship1.yspeed = 10;
_root.purpleship.duplicateMovieClip("purpleship2", 9502, purpleship);
_root.purpleship2._x = 650;
_root.purpleship2._y = -100;
_root.purpleship2.xspeed = -10;
_root.purpleship2.yspeed = 10;
_root.purpleship.duplicateMovieClip("purpleship3", 9503, purpleship);
_root.purpleship3._x = -100;
_root.purpleship3._y = 500;
_root.purpleship3.xspeed = 10;
_root.purpleship3.yspeed = -10;
_root.purpleship.duplicateMovieClip("purpleship4", 9504, purpleship);
_root.purpleship4._x = 650;
_root.purpleship4._y = 500;
_root.purpleship4.xspeed = -10;
_root.purpleship4.yspeed = -10;
}
Symbol 180 MovieClip Frame 6
this.swapDepths(9999);
this.removeMovieClip();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 35;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (this._name == "purpleship1") {
_root.purplescion.duplicateMovieClip("purplescion1", 3901, purplescion);
_root.purplescion1._x = this._x;
_root.purplescion1._y = this._y;
_root.purplescion.duplicateMovieClip("purplescion2", 3902, purplescion);
_root.purplescion2._x = this._x;
_root.purplescion2._y = this._y;
}
if (this._name == "purpleship2") {
_root.purplescion.duplicateMovieClip("purplescion3", 3903, purplescion);
_root.purplescion3._x = this._x;
_root.purplescion3._y = this._y;
_root.purplescion.duplicateMovieClip("purplescion4", 3904, purplescion);
_root.purplescion4._x = this._x;
_root.purplescion4._y = this._y;
}
if (this._name == "purpleship3") {
_root.purplescion.duplicateMovieClip("purplescion5", 3905, purplescion);
_root.purplescion5._x = this._x;
_root.purplescion5._y = this._y;
_root.purplescion.duplicateMovieClip("purplescion6", 3906, purplescion);
_root.purplescion6._x = this._x;
_root.purplescion6._y = this._y;
}
if (this._name == "purpleship4") {
_root.purplescion.duplicateMovieClip("purplescion7", 3907, purplescion);
_root.purplescion7._x = this._x;
_root.purplescion7._y = this._y;
_root.purplescion.duplicateMovieClip("purplescion8", 3908, purplescion);
_root.purplescion8._x = this._x;
_root.purplescion8._y = this._y;
}
Symbol 186 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 35;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
_root.purpledeath++;
if (_root.purpledeath == 8) {
_root.invin.duplicateMovieClip("invin1", 6301, invin);
_root.invin1._x = 300;
_root.invin1._y = 200;
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 400;
_root.health1._y = 300;
_root.level = 18;
}
Symbol 190 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
stop();
Symbol 216 MovieClip Frame 3
stop();
Symbol 216 MovieClip Frame 4
stop();
Symbol 216 MovieClip Frame 5
stop();
Symbol 216 MovieClip Frame 6
stop();
Symbol 216 MovieClip Frame 7
stop();
Symbol 216 MovieClip Frame 8
stop();
Symbol 216 MovieClip Frame 9
stop();
Symbol 216 MovieClip Frame 10
stop();
Symbol 216 MovieClip Frame 11
stop();
Symbol 216 MovieClip Frame 12
stop();
Symbol 216 MovieClip Frame 13
stop();
Symbol 216 MovieClip Frame 14
stop();
Symbol 216 MovieClip Frame 15
stop();
Symbol 216 MovieClip Frame 16
stop();
Symbol 216 MovieClip Frame 17
stop();
Symbol 216 MovieClip Frame 18
stop();
Symbol 216 MovieClip Frame 19
stop();
Symbol 216 MovieClip Frame 20
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 15000;
_root.coloredbossdeath++;
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 300;
_root.health1._y = 200;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (_root.coloredbossdeath == 2) {
_root.level = 19;
_root.speed.duplicateMovieClip("speed1", 6901, speed);
_root.speed1._x = 100;
_root.speed1._y = 300;
_root.text2._visible = true;
i = 1;
while (i <= 4) {
_root.phaseship.duplicateMovieClip("phaseship" + i, 9400 + i, phaseship);
i++;
}
}
Symbol 219 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 15000;
_root.coloredbossdeath++;
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 300;
_root.health1._y = 200;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
if (_root.coloredbossdeath == 2) {
_root.level = 19;
_root.speed.duplicateMovieClip("speed1", 6901, speed);
_root.speed1._x = 100;
_root.speed1._y = 300;
_root.text2._visible = true;
i = 1;
while (i <= 4) {
_root.phaseship.duplicateMovieClip("phaseship" + i, 9400 + i, phaseship);
i++;
}
}
Symbol 220 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 230 MovieClip Frame 1
stop();
Instance of Symbol 227 MovieClip "eye1" in Symbol 230 MovieClip Frame 1
onClipEvent (load) {
this.shotcount = 1;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if (_parent._name != "phaseship") {
this._rotation = (Math.atan2(_root.ast._y - (this._y + this._parent._y), _root.ast._x - (this._x + this._parent._x)) * 180) / this.pivalue;
this.shotcount++;
if ((((this.shotcount % 45) == 0) || ((this.shotcount % 48) == 0)) || ((this.shotcount % 51) == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.phaseshot1, _root.phaseshot1 + 1132, shot);
_root["shot" + _root.phaseshot1]._x = this._x + this._parent._x;
_root["shot" + _root.phaseshot1]._y = this._y + this._parent._y;
_root["shot" + _root.phaseshot1].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 8;
_root["shot" + _root.phaseshot1].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 8;
_root.phaseshot1++;
if (_root.phaseshot1 > 400) {
_root.phaseshot1 = 1;
}
}
if (this.shotcount == 51) {
this.shotcount = 1;
}
}
}
Instance of Symbol 229 MovieClip "eye2" in Symbol 230 MovieClip Frame 1
onClipEvent (load) {
this.shotcount = 1;
this.pivalue = Math.PI;
}
onClipEvent (enterFrame) {
if (_parent._name != "phaseship") {
this._rotation = (Math.atan2(_root.ast._y - (this._y + this._parent._y), _root.ast._x - (this._x + this._parent._x)) * 180) / this.pivalue;
this.shotcount++;
if ((((this.shotcount % 45) == 0) || ((this.shotcount % 48) == 0)) || ((this.shotcount % 51) == 0)) {
_root.shot.duplicateMovieClip("shot" + _root.phaseshot1, _root.phaseshot1 + 1132, shot);
_root["shot" + _root.phaseshot1]._x = this._x + this._parent._x;
_root["shot" + _root.phaseshot1]._y = this._y + this._parent._y;
_root["shot" + _root.phaseshot1].xspeed = Math.cos((this._rotation * this.pivalue) / 180) * 8;
_root["shot" + _root.phaseshot1].yspeed = Math.sin((this._rotation * this.pivalue) / 180) * 8;
_root.phaseshot1++;
if (_root.phaseshot1 > 400) {
_root.phaseshot1 = 1;
}
}
if (this.shotcount == 51) {
this.shotcount = 1;
}
}
}
Symbol 230 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 40;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
_root.phasedeath++;
if (_root.phasedeath == 4) {
_root.invin.duplicateMovieClip("invin1", 6301, invin);
_root.invin1._x = 300;
_root.invin1._y = 200;
_root.level = 20;
i = 1;
while (i <= 8) {
_root.phase2ship.duplicateMovieClip("phase2ship" + i, 9300 + i, phas2eship);
i++;
}
}
Symbol 230 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 40;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
_root.phase2death++;
if (_root.phase2death == 8) {
_root.health.duplicateMovieClip("health1", 6801, health);
_root.health1._x = 300;
_root.health1._y = 200;
_root.level = 21;
}
Symbol 232 MovieClip Frame 4
this.swapDepths(9999);
this.removeMovieClip();
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 2
stop();
Symbol 265 MovieClip Frame 3
stop();
Symbol 265 MovieClip Frame 4
stop();
Symbol 265 MovieClip Frame 5
stop();
Symbol 265 MovieClip Frame 6
stop();
Symbol 265 MovieClip Frame 7
stop();
Symbol 265 MovieClip Frame 8
stop();
Symbol 265 MovieClip Frame 9
stop();
Symbol 265 MovieClip Frame 10
stop();
Symbol 265 MovieClip Frame 11
stop();
Symbol 265 MovieClip Frame 12
stop();
Symbol 265 MovieClip Frame 13
stop();
Symbol 265 MovieClip Frame 14
stop();
Symbol 265 MovieClip Frame 15
stop();
Symbol 265 MovieClip Frame 16
stop();
Symbol 265 MovieClip Frame 17
stop();
Symbol 265 MovieClip Frame 18
stop();
Symbol 265 MovieClip Frame 19
stop();
Symbol 265 MovieClip Frame 20
stop();
Symbol 265 MovieClip Frame 21
stop();
Symbol 265 MovieClip Frame 22
stop();
Symbol 265 MovieClip Frame 23
stop();
Symbol 265 MovieClip Frame 24
stop();
Symbol 265 MovieClip Frame 25
stop();
Symbol 265 MovieClip Frame 26
stop();
Symbol 265 MovieClip Frame 27
stop();
Symbol 265 MovieClip Frame 28
stop();
Symbol 265 MovieClip Frame 29
stop();
Symbol 265 MovieClip Frame 30
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 2
this.dead = 1;
_root.level = 22;
_root.score = _root.score + 50000;
_root.finaltext._visible = true;
i = 1;
while (i <= 4) {
_root.endphaseship.duplicateMovieClip("endphaseship" + i, 9300 + i, endphaseship);
i++;
}
j = 1;
while (j <= 6) {
_root.finalship.duplicateMovieClip("finalship" + j, 9400 + j, finalship);
j++;
}
k = 1;
while (k <= 6) {
_root.theone.duplicateMovieClip("theone" + k, 9200 + k, theone);
k++;
}
Symbol 272 MovieClip Frame 7
this.swapDepths(9999);
this.removeMovieClip();
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 35;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
Symbol 274 MovieClip Frame 4
this.reset();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 35;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
Symbol 277 MovieClip Frame 4
this.reset();
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 2
this.dead = 1;
_root.score = _root.score + 50;
if (_global.sound == 1) {
_root.playsound2.start(0, 1);
}
Symbol 278 MovieClip Frame 4
this.reset();
Symbol 291 Button
on (release) {
if (_global.sound == 1) {
stopAllSounds();
_global.sound = 0;
} else if (_global.sound == 0) {
_root.playsound5.start(0, 10000000);
_global.sound = 1;
}
}
Symbol 295 Button
on (release) {
getURL ("http://www.flashninjaclan.com/zzz405_Asteroid_Rampage_II.php", "_blank");
}
Symbol 298 Button
on (release) {
getURL ("http://www.flashninjaclan.com/zzz27_Asteroids_Revenge.php", "_blank");
}
Symbol 301 Button
on (release) {
getURL ("http://www.flashninjaclan.com/zzz973_Elite_Forces_Defense.php", "_blank");
}
Symbol 303 Button
on (release) {
_root.gotoAndPlay("menuframe");
}