Frame 1
stop();
Instance of Symbol 21 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(2000);
}
Instance of Symbol 26 MovieClip in Frame 1
onClipEvent (enterFrame) {
total = _root.getBytesTotal();
isloaded = _root.getBytesLoaded();
_root.p = Math.floor(100 * (isLoaded / total));
_root.Loaded = _root.p add "% LOADED";
if (_root.p > 95) {
_root.gotoAndPlay(3);
}
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 4
_root.Sounds.gotoAndPlay(2);
stop();
Enemyspeed = 7;
Score = 0;
Amount = 15;
PowerAmount = 15;
StartCount = 0;
Start = 0;
Level = 1;
Weaver = 0;
Shields = 100;
Timer = 800;
Total = 0;
GrandTotal = 0;
Bomb2 = 0;
MotherLevel = 14;
Instance of Symbol 15 MovieClip [AeroPlane] "Intro4" in Frame 4
onClipEvent (load) {
Enemyspeed = 5;
}
onClipEvent (enterFrame) {
this.gotoSpotX = 434;
this.gotoSpotY = 176;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed) {
_y = (_y - (this.Enemyspeed * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed * Math.sin(_rotation * (Math.PI/180))));
}
if ((((this._x > 425) && (this._x < 445)) && (this._y > 165)) && (this._y < 185)) {
this._x = Math.round(Math.random() * 700);
this._y = Math.round(Math.random() * 500);
}
}
Instance of Symbol 15 MovieClip [AeroPlane] "Intro4" in Frame 4
onClipEvent (load) {
Enemyspeed = 5;
}
onClipEvent (enterFrame) {
this.gotoSpotX = 434;
this.gotoSpotY = 176;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed) {
_y = (_y - (this.Enemyspeed * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed * Math.sin(_rotation * (Math.PI/180))));
}
if ((((this._x > 425) && (this._x < 445)) && (this._y > 165)) && (this._y < 185)) {
this._x = Math.round(Math.random() * 900);
this._y = Math.round(Math.random() * 900);
}
}
Instance of Symbol 15 MovieClip [AeroPlane] "Intro4" in Frame 4
onClipEvent (load) {
Enemyspeed = 5;
}
onClipEvent (enterFrame) {
this.gotoSpotX = 434;
this.gotoSpotY = 176;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed) {
_y = (_y - (this.Enemyspeed * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed * Math.sin(_rotation * (Math.PI/180))));
}
if ((((this._x > 425) && (this._x < 445)) && (this._y > 165)) && (this._y < 185)) {
this._x = Math.round(Math.random() * 900);
this._y = Math.round(Math.random() * 900);
}
}
Instance of Symbol 15 MovieClip [AeroPlane] "Intro4" in Frame 4
onClipEvent (load) {
Enemyspeed = 5;
}
onClipEvent (enterFrame) {
this.gotoSpotX = 434;
this.gotoSpotY = 176;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed) {
_y = (_y - (this.Enemyspeed * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed * Math.sin(_rotation * (Math.PI/180))));
}
if ((((this._x > 425) && (this._x < 445)) && (this._y > 165)) && (this._y < 185)) {
this._x = Math.round(Math.random() * 900);
this._y = Math.round(Math.random() * 900);
}
}
Instance of Symbol 15 MovieClip [AeroPlane] "Intro4" in Frame 4
onClipEvent (load) {
Enemyspeed = 5;
}
onClipEvent (enterFrame) {
this.gotoSpotX = 434;
this.gotoSpotY = 176;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed) {
_y = (_y - (this.Enemyspeed * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed * Math.sin(_rotation * (Math.PI/180))));
}
if ((((this._x > 425) && (this._x < 445)) && (this._y > 165)) && (this._y < 185)) {
this._x = Math.round(Math.random() * 900);
this._y = Math.round(Math.random() * 900);
}
}
Instance of Symbol 15 MovieClip [AeroPlane] "Intro4" in Frame 4
onClipEvent (load) {
Enemyspeed = 5;
}
onClipEvent (enterFrame) {
this.gotoSpotX = 434;
this.gotoSpotY = 176;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed) {
_y = (_y - (this.Enemyspeed * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed * Math.sin(_rotation * (Math.PI/180))));
}
if ((((this._x > 425) && (this._x < 445)) && (this._y > 165)) && (this._y < 185)) {
this._x = Math.round(Math.random() * 900);
this._y = Math.round(Math.random() * 900);
}
}
Instance of Symbol 15 MovieClip [AeroPlane] "Intro4" in Frame 4
onClipEvent (load) {
Enemyspeed = 5;
}
onClipEvent (enterFrame) {
this.gotoSpotX = 434;
this.gotoSpotY = 176;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed) {
_y = (_y - (this.Enemyspeed * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed * Math.sin(_rotation * (Math.PI/180))));
}
if ((((this._x > 425) && (this._x < 445)) && (this._y > 165)) && (this._y < 185)) {
this._x = Math.round(Math.random() * 900);
this._y = Math.round(Math.random() * 900);
}
}
Instance of Symbol 15 MovieClip [AeroPlane] "Intro4" in Frame 4
onClipEvent (load) {
Enemyspeed = 5;
}
onClipEvent (enterFrame) {
this.gotoSpotX = 434;
this.gotoSpotY = 176;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed) {
_y = (_y - (this.Enemyspeed * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed * Math.sin(_rotation * (Math.PI/180))));
}
if ((((this._x > 425) && (this._x < 445)) && (this._y > 165)) && (this._y < 185)) {
this._x = Math.round(Math.random() * 900);
this._y = Math.round(Math.random() * 900);
}
}
Frame 5
stop();
Frame 6
stop();
Frame 15
i = 0;
while (i < Amount) {
removeMovieClip("Plane" + i);
removeMovieClip("Plane1" + i);
removeMovieClip("Plane2" + i);
removeMovieClip("Bolder" + i);
removeMovieClip("Bolder1" + i);
removeMovieClip("Vorlon" + i);
removeMovieClip("Shild" + i);
removeMovieClip("Bomb" + i);
removeMovieClip("MagMine" + i);
removeMovieClip("Warp" + i);
i = i + 1;
}
i = 0;
while (i < PowerAmount) {
removeMovieClip("Power" + i);
i = i + 1;
}
stopAllSounds();
Timer = 800;
Score = 0;
Destory = 0;
myArray = new Array();
Dead = new Array();
if (_root.Level == 1) {
myArray = new Array();
type = new Array(2, 2);
Enemyspeed = 3;
Amount = 2;
PowerAmount = 10;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "slow moving drone ships are approching. be aware...";
}
if (_root.Level == 2) {
myArray = new Array();
type = new Array(2, 2, 2, 2, 2);
Enemyspeed = 3;
Amount = 10;
PowerAmount = 5;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Bomb2 = 0;
Upgrades = "From your mothership you have recived 1 smart bomb...";
}
if (_root.Level == 3) {
myArray = new Array();
type = new Array(1, 1, 1, 1, 1);
Enemyspeed = 3;
Amount = 5;
PowerAmount = 10;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "we can detect 1 fast Vorlon attack fighter in your area...";
Bomb2 = 1;
}
if (_root.Level == 4) {
myArray = new Array();
type = new Array(1, 1);
Enemyspeed = 7;
Amount = 1;
PowerAmount = 10;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "Reports of a small astroid belt in your area.we can detect no other volorn ships in the area...";
}
if (_root.Level == 5) {
myArray = new Array();
type = new Array(5, 5, 5, 5, 5, 5, 5, 5, 5);
Enemyspeed = 10;
Amount = 9;
PowerAmount = 12;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "From your mothership you have recived 20% of shields";
}
if (_root.Level == 6) {
myArray = new Array();
type = new Array(6, 6, 6, 6, 6, 6);
Enemyspeed = 5;
Amount = 10;
PowerAmount = 20;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Shields = Shields + 20;
Upgrades = "reports of vorlon pulse craft in the area. slow moving craft";
}
if (_root.Level == 7) {
myArray = new Array();
type = new Array(3, 3, 3, 3, 3, 3);
Enemyspeed = 5;
Amount = 6;
PowerAmount = 20;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "reports of cloacked craft within the rocks. Not sure of this information";
}
if (_root.Level == 8) {
myArray = new Array();
type = new Array(4, 4, 4, 4, 4, 4, 4, 4, 4, 9, 9);
Enemyspeed = 10;
Amount = 11;
PowerAmount = 15;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "From your mothership you have recived 1 smart bomb. note- you can only carry 1 smart bomb...";
Bomb2 = 1;
}
if (_root.Level == 9) {
myArray = new Array();
type = new Array(6, 6, 6, 6, 1, 1);
Enemyspeed = 8;
Amount = 6;
PowerAmount = 7;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "Beware of fast moving vorlon pulse ships in the area.";
}
if (_root.Level == 10) {
myArray = new Array();
type = new Array(3, 3, 3, 3, 3, 3);
Enemyspeed = 9;
Amount = 6;
PowerAmount = 5;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "Vorlon mag mines in the area. looks like a small vorlon minefield...";
}
if (_root.Level == 11) {
myArray = new Array();
type = new Array(8, 8, 8, 8, 8, 8);
Enemyspeed = 8;
Amount = 8;
PowerAmount = 5;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "Fast moving attack craft approching.you have recived 10% of shields";
}
if (_root.Level == 12) {
myArray = new Array();
type = new Array(1, 1, 1);
Enemyspeed = 8;
Amount = 3;
PowerAmount = 15;
StartCount = 0;
Start = 0;
Shields = Shields + 10;
_root.Counter = 0;
Upgrades = "Large astroid belt ahead. can not detect any cloacked ships";
}
if (_root.Level == 13) {
myArray = new Array();
type = new Array(4, 4, 4, 4, 4, 4, 9, 5, 5, 5, 5, 5, 9, 9);
Enemyspeed = 15;
Amount = 14;
PowerAmount = 15;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Bomb2 = 0;
Upgrades = "we have detected a large vorlon craft in the area.you have recived 1 smart bomb. note- you can only carry 1 smart bomb";
}
if (_root.Level == 14) {
myArray = new Array();
type = new Array();
Enemyspeed = 7;
Amount = 16;
PowerAmount = 15;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Bomb2 = 1;
Upgrades = "you are approching a Large minefield. must be getting close to the vorlons homeworld";
}
Frame 16
if (_root.Level == 15) {
myArray = new Array();
type = new Array(8, 8, 8, 8, 8, 8, 8, 8, 8);
Enemyspeed = 3;
Amount = 9;
PowerAmount = 15;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "you have recived 10% of your shields. You'll need it...";
}
if (_root.Level == 17) {
myArray = new Array();
type = new Array(9, 9, 9, 9, 9, 9, 9, 9, 9, 9);
Enemyspeed = 10;
Amount = 10;
PowerAmount = 5;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Bomb2 = 1;
Upgrades = "you have recived 10% of your shields. You'll need it...";
}
if (_root.Level == 16) {
myArray = new Array();
type = new Array();
Enemyspeed = 3;
Amount = 11;
PowerAmount = 8;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Shields = Shields + 10;
Upgrades = "that was strange. no vorlons.you have recived 1 smart bomb. note- you can only carry 1 smart bomb";
}
if (_root.Level == 18) {
myArray = new Array();
type = new Array(6, 6, 6, 6, 6, 6, 6, 1, 1);
Enemyspeed = 10;
Amount = 9;
PowerAmount = 15;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Shields = Shields + 40;
Upgrades = "Large vorlon crafts in the area. next stop the vorlon home world";
}
if (_root.Level == 19) {
myArray = new Array();
type = new Array();
Enemyspeed = 3;
Amount = 11;
PowerAmount = 8;
StartCount = 0;
Start = 0;
_root.Counter = 0;
}
Frame 17
if ((((_root.Level == 20) or (_root.Level == 21)) or (_root.Level == 22)) or (_root.Level == 23)) {
myArray = new Array();
type = new Array();
Amount1 = Math.round((Math.random() * 3) + 5);
Amount2 = Math.round((Math.random() * 15) + 5);
i = 0;
while (i < Amount1) {
type[i] = 1;
i = i + 1;
}
Enemyspeed = 5;
Amount = Amount1;
PowerAmount = Amount2;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "If you make it back home you will be a hero with this many vorlons around...";
Bomb2 = 0;
}
if (((_root.Level == 24) or (_root.Level == 25)) or (_root.Level == 26)) {
myArray = new Array();
type = new Array();
PowerAmount = 15;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "You are under extreme pressure. we can dectect vorlons all over the area.";
Bomb2 = 0;
}
if ((((_root.Level == 27) or (_root.Level == 28)) or (_root.Level == 29)) or (_root.Level == 30)) {
myArray = new Array();
type = new Array();
Amount1 = Math.round((Math.random() * 3) + 5);
Amount2 = Math.round((Math.random() * 15) + 5);
i = 0;
while (i < Amount1) {
type[i] = 1;
i = i + 1;
}
Enemyspeed = 7;
Amount = Amount1;
PowerAmount = Amount2;
StartCount = 0;
Start = 0;
_root.Counter = 0;
Upgrades = "If you make it back home you will be a hero with this many vorlons around.";
Bomb2 = 0;
}
Frame 20
Mouse.hide();
_root.Planets.gotoAndStop(_root.Level + 1);
i = 0;
while (i < Amount) {
if (type[i] == 1) {
duplicateMovieClip (Plane, "Plane" + i, i);
Number1 = Math.round(Math.random() * 450);
Number2 = Math.round(Math.random() * 600);
setProperty("Plane" + i, _x , Number2);
setProperty("Plane" + i, _y , Number1);
Dead[i] = 1;
}
if (type[i] == 2) {
duplicateMovieClip (Plane1, "Plane1" + i, i);
Number1 = Math.round(Math.random() * 450);
Number2 = Math.round(Math.random() * 600);
setProperty("Plane1" + i, _x , Number2);
setProperty("Plane1" + i, _y , Number1);
Dead[i] = 1;
}
if (type[i] == 3) {
duplicateMovieClip (Plane2, "Plane2" + i, i);
Number1 = Math.round(Math.random() * 450);
Number2 = Math.round(Math.random() * 600);
setProperty("Plane2" + i, _x , Number2);
setProperty("Plane2" + i, _y , Number1);
Dead[i] = 1;
}
if (type[i] == 4) {
duplicateMovieClip (Bolder, "Bolder" + i, i);
Number1 = Math.round(Math.random() * 450);
setProperty("Bolder" + i, _x , -5);
setProperty("Bolder" + i, _y , Number1);
Dead[i] = 1;
}
if (type[i] == 5) {
duplicateMovieClip (Bolder1, "Bolder1" + i, i);
Number1 = Math.round(Math.random() * 600);
setProperty("Bolder1" + i, _y , Number1);
setProperty("Bolder1" + i, _x , -10);
Dead[i] = 1;
}
if (type[i] == 6) {
duplicateMovieClip (Vorlon, "Vorlon" + i, i);
Number1 = Math.round(Math.random() * 450);
Number2 = Math.round(Math.random() * 600);
setProperty("Vorlon" + i, _x , Number2);
setProperty("Vorlon" + i, _y , Number1);
Dead[i] = 1;
}
if (type[i] == 8) {
duplicateMovieClip (MagMine, "MagMine" + i, i);
Number1 = Math.round(Math.random() * 450);
Number2 = Math.round(Math.random() * 600);
setProperty("MagMine" + i, _x , Number2);
setProperty("MagMine" + i, _y , Number1);
Dead[i] = 1;
}
if (type[i] == 9) {
duplicateMovieClip (Warp, "Warp" + i, i);
Number1 = Math.round(Math.random() * 450);
Number2 = Math.round(Math.random() * 600);
setProperty("Warp" + i, _x , Number2);
setProperty("Warp" + i, _y , Number1);
Dead[i] = 1;
}
i = i + 1;
}
i = 0;
while (i < PowerAmount) {
duplicateMovieClip (Power, "Power" + i, i + 100);
Number1 = Math.round((Math.random() * 450) + 30);
Number2 = Math.round((Math.random() * 600) + 30);
setProperty("Power" + i, _x , Number2);
setProperty("Power" + i, _y , Number1);
i = i + 1;
}
stop();
Instance of Symbol 15 MovieClip [AeroPlane] "Plane" in Frame 20
onClipEvent (load) {
count = 0;
}
onClipEvent (enterFrame) {
if (this._y > -40) {
if (_root.Start != 3) {
this.gotoSpotX = _root._xmouse;
this.gotoSpotY = _root._ymouse;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this._root.Enemyspeed) {
_y = (_y - (this._root.Enemyspeed * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this._root.Enemyspeed * Math.sin(_rotation * (Math.PI/180))));
}
if (this.hitTest(_root.Ship.Hit) && (_root.Start == 1)) {
_root.Shields = _root.Shields - 2;
}
i = 0;
while (i < _root.Amount) {
if (_root.Dead[i] == 1) {
if (this != _root["Plane" + i]) {
if (this.hitTest(_root["Plane" + i]) && (_root.Dead[i] == 1)) {
_root.Dead[i] = 0;
this.v = i;
this.gotoAndPlay(10);
}
}
}
i = i + 1;
}
}
}
}
Instance of Symbol 124 MovieClip "Power" in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ship.hit)) {
_root.Score = _root.Score + 1;
_root.Counter = _root.Counter + 1;
if (_root.Counter == _root.PowerAmount) {
_root.Counter = 0;
if (_root.Level == 19) {
_root.gotoAndStop(35);
}
_root.Score = _root.Score + 50;
_root.Start = 2;
}
this.removeMovieClip();
}
}
Instance of Symbol 12 MovieClip [AeroPlane1] "Plane1" in Frame 20
onClipEvent (load) {
Enemyspeed1 = _root.EnemySpeed / 2;
}
onClipEvent (enterFrame) {
if (this._y > -10) {
if (_root.Start != 3) {
this.gotoSpotX = _root._xmouse;
this.gotoSpotY = _root._ymouse;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed1) {
_y = (_y - (this.Enemyspeed1 * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed1 * Math.sin(_rotation * (Math.PI/180))));
}
if (this.hitTest(_root.Ship.Hit) && (_root.Start == 1)) {
_root.Shields = _root.Shields - 1;
}
i = 0;
while (i < _root.Amount) {
if (_root.Dead[i] == 1) {
if (this != _root["Plane1" + i]) {
if (this.hitTest(_root["Plane1" + i]) && (_root.Dead[i] == 1)) {
_root.Dead[i] = 0;
this.v = i;
this.gotoAndPlay(10);
}
}
}
i = i + 1;
}
}
}
}
Instance of Symbol 132 MovieClip "Plane2" in Frame 20
onClipEvent (load) {
EnemySpeed1 = _root.EnemySpeed / 2;
}
onClipEvent (enterFrame) {
if (this._y > -10) {
if (_root.Start != 3) {
this.gotoSpotX = _root._xmouse;
this.gotoSpotY = _root._ymouse;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.EnemySpeed1) {
_y = (_y - (this.EnemySpeed1 * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.EnemySpeed1 * Math.sin(_rotation * (Math.PI/180))));
}
if (this.hitTest(_root.Ship.Hit) && (_root.Start == 1)) {
_root.Shields = _root.Shields - 4;
}
Beam = Math.round(Math.random() * 100);
if (Beam == 50) {
this.gotoAndPlay(5);
}
i = 0;
while (i < _root.Amount) {
if (_root.Dead[i] == 1) {
if (this != _root["Plane2" + i]) {
if (this.hitTest(_root["Plane2" + i]) && (_root.Dead[i] == 1)) {
_root.Dead[i] = 0;
this.v = i;
this.gotoAndPlay(65);
}
}
}
i = i + 1;
}
}
}
}
Instance of Symbol 135 MovieClip "Vorlon" in Frame 20
onClipEvent (load) {
EnemySpeed1 = 0.5;
}
onClipEvent (enterFrame) {
if (this._y > -40) {
if (_root.Start != 3) {
if (_root._xmouse > _x) {
_x = (_x + EnemySpeed1);
}
if (_root._xmouse < _x) {
_x = (_x - EnemySpeed1);
}
if (_root._ymouse > _y) {
_y = (_y + EnemySpeed1);
}
if (_root._ymouse < _y) {
_y = (_y - EnemySpeed1);
}
if (this.hitTest(_root.Ship.Hit) && (_root.Start == 1)) {
_root.Shields = _root.Shields - 5;
}
Beam = Math.round(Math.random() * 100);
if (Beam == 90) {
this.gotoAndPlay(5);
}
}
}
}
Instance of Symbol 142 MovieClip "MagMine" in Frame 20
onClipEvent (load) {
EnemySpeed1 = 0.1;
}
onClipEvent (enterFrame) {
if (this._y > -40) {
if (_root.Start != 3) {
if (_root._xmouse > _x) {
_x = (_x + EnemySpeed1);
}
if (_root._xmouse < _x) {
_x = (_x - EnemySpeed1);
}
if (_root._ymouse > _y) {
_y = (_y + EnemySpeed1);
}
if (_root._ymouse < _y) {
_y = (_y - EnemySpeed1);
}
if (this.hitTest(_root.Ship.Hit) && (_root.Start == 1)) {
_root.dave = 1;
_root.Shields = 0;
_root.ship.gotoAndPlay(10);
this.gotoAndPlay(10);
}
Beam = Math.round(Math.random() * 100);
if (Beam == 90) {
this.gotoAndPlay(5);
}
}
}
}
Instance of Symbol 147 MovieClip "Warp" in Frame 20
onClipEvent (load) {
EnemySpeed1 = 2;
}
onClipEvent (enterFrame) {
if (this._y > -40) {
if (_root.Start != 3) {
this.gotoSpotX = _root._xmouse;
this.gotoSpotY = _root._ymouse;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.EnemySpeed1) {
_y = (_y - (this.EnemySpeed1 * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.EnemySpeed1 * Math.sin(_rotation * (Math.PI/180))));
}
if (this.hitTest(_root.Ship.Hit) && (_root.Start == 1)) {
_root.dave = 1;
_root.Start = 3;
_root.StartCount = 0;
this.gotoAndPlay(5);
}
}
}
}
Instance of Symbol 149 MovieClip "Mother" in Frame 20
onClipEvent (load) {
count = 0;
Enemyspeed1 = 1;
}
onClipEvent (enterFrame) {
if ((((_root.Level == 14) or (_root.Level == 19)) or (_root.Level == 25)) or (_root.Level == 26)) {
if (_root.Start != 3) {
this.gotoSpotX = _root._xmouse;
this.gotoSpotY = _root._ymouse;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed1) {
_y = (_y - (this.Enemyspeed1 * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed1 * Math.sin(_rotation * (Math.PI/180))));
}
}
}
}
Instance of Symbol 151 MovieClip "Fire" in Frame 20
onClipEvent (load) {
count = 0;
Enemyspeed1 = 15;
}
onClipEvent (enterFrame) {
if ((((_root.Level == 14) or (_root.Level == 19)) or (_root.Level == 25)) or (_root.Level == 26)) {
if (_root.Start != 3) {
this.gotoSpotX = _root._xmouse;
this.gotoSpotY = _root._ymouse;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed1) {
_y = (_y - (this.Enemyspeed1 * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed1 * Math.sin(_rotation * (Math.PI/180))));
}
if (this.hitTest(_root.Ship.Hit) && (_root.Start == 1)) {
_root.Shields = _root.Shields - 5;
this._x = _root.Mother._x;
this._y = _root.Mother._y;
}
}
}
}
Instance of Symbol 149 MovieClip "Mother1" in Frame 20
onClipEvent (load) {
count = 0;
Enemyspeed1 = 1;
}
onClipEvent (enterFrame) {
if (((_root.Level == 19) or (_root.Level == 24)) or (_root.Level == 26)) {
if (_root.Start != 3) {
this.gotoSpotX = _root._xmouse;
this.gotoSpotY = _root._ymouse;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed1) {
_y = (_y - (this.Enemyspeed1 * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed1 * Math.sin(_rotation * (Math.PI/180))));
}
}
}
}
Instance of Symbol 151 MovieClip "Fire1" in Frame 20
onClipEvent (load) {
count = 0;
Enemyspeed1 = 17;
}
onClipEvent (enterFrame) {
if (((_root.Level == 19) or (_root.Level == 24)) or (_root.Level == 26)) {
if (_root.Start != 3) {
this.gotoSpotX = _root._xmouse;
this.gotoSpotY = _root._ymouse;
this.delta_x = _x - this.gotoSpotX;
this.delta_y = _y - this.gotoSpotY;
this.targetRotation = (-Math.atan2(this.delta_x, this.delta_y)) / (Math.PI/180);
_rotation = targetRotation;
if (Math.sqrt((this.delta_x * this.delta_x) + (this.delta_y * this.delta_y)) > this.Enemyspeed1) {
_y = (_y - (this.Enemyspeed1 * Math.cos(_rotation * (Math.PI/180))));
_x = (_x + (this.Enemyspeed1 * Math.sin(_rotation * (Math.PI/180))));
}
if (this.hitTest(_root.Ship.Hit) && (_root.Start == 1)) {
_root.Shields = _root.Shields - 5;
this._x = _root.Mother1._x;
this._y = _root.Mother1._y;
}
}
}
}
Instance of Symbol 8 MovieClip [AtomicBomb] "AtomicBomb" in Frame 20
onClipEvent (load) {
count + 0;
Blow = 0;
}
onClipEvent (enterFrame) {
if (this._y > -20) {
count = count + 1;
if (Blow == 0) {
if (Count == 30) {
Blow = 1;
this.gotoAndPlay(5);
}
}
}
}
Instance of Symbol 165 MovieClip "Ship" in Frame 20
onClipEvent (load) {
_root.weaver = 0;
P = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(1)) {
if (_root.Bomb2 > 0) {
_root.AtomicBomb._x = _root.Ship._x;
_root.AtomicBomb._y = _root.Ship._y;
_root.Bomb2 = 0;
}
}
if (_root.Shields <= 0) {
if (_root.dave == 0) {
_root.dave = 1;
_root.Shields = 0;
_root.ship.gotoAndPlay(10);
}
}
if (Key.isDown(2)) {
_root.Shields = 0;
_root.Ship.gotoAndPlay(10);
}
if (Key.isDown(49) && (_root.Level <= 30)) {
_root.Level = _root.Level + 1;
_root.Shields = 100;
_root.Weaver = 0;
_root.Start = 0;
_root.gotoAndPlay(15);
}
if ((_root.Ship._x < 5) && (_root.Shields > 0)) {
_root.Shields = _root.Shields - 1;
}
if ((_root.Ship._x > 640) && (_root.Shields > 0)) {
_root.Shields = _root.Shields - 1;
}
if ((_root.Ship._y < 5) && (_root.Shields > 0)) {
_root.Shields = _root.Shields - 1;
}
if ((_root.Ship._y > 490) && (_root.Shields > 0)) {
_root.Shields = _root.Shields - 1;
}
if (_root.Start != 3) {
_root.Timer = _root.Timer - 1;
_root.weaver = _root.weaver + 1;
if ((_root.weaver == 40) && (_root.Start == 0)) {
_root.weaver = 0;
_root.Start = 1;
_root.dave = 0;
}
_root.Ship._x = _root._xmouse;
_root.Ship._y = _root._ymouse;
if (_root.Start == 0) {
this.gotoAndStop(5);
}
if ((_root.Start == 1) && (_root.dave == 0)) {
this.gotoAndStop(1);
}
if (_root.Start == 2) {
_root.Start = 3;
stopAllSounds();
this.gotoAndStop(70);
}
}
}
Instance of Symbol 168 MovieClip "Bolder" in Frame 20
onClipEvent (load) {
this.Pace = Math.round((Math.random() * 10) + 1);
}
onClipEvent (enterFrame) {
if (this._x > -40) {
if (_root.Start != 3) {
this._x = this._x + (this.Pace + _root.EnemySpeed);
if (this._x > 680) {
this._x = 0;
this._y = Math.round((Math.random() * 450) + 30);
}
if (this.hitTest(_root.Ship.Hit) && (_root.Start == 1)) {
_root.Shields = _root.Shields - 5;
this.gotoAndPlay(10);
}
}
}
}
Instance of Symbol 168 MovieClip "Bolder1" in Frame 20
onClipEvent (load) {
this.Pace = Math.round((Math.random() * 10) + 1);
}
onClipEvent (enterFrame) {
if (this._y > -40) {
if (_root.Start != 3) {
this._y = this._y + (this.Pace + _root.EnemySpeed);
if (this._y > 500) {
this._y = 0;
this._x = Math.round(Math.random() * 600);
}
if (this.hitTest(_root.Ship.Hit) && (_root.Start == 1)) {
_root.Shields = _root.Shields - 5;
}
}
}
}
Instance of Symbol 28 MovieClip "Mask" in Frame 20
onClipEvent (load) {
this.swapDepths(1000);
}
Frame 25
i = 0;
while (i < Amount) {
removeMovieClip("Plane" + i);
removeMovieClip("Plane1" + i);
removeMovieClip("Plane2" + i);
removeMovieClip("Bolder" + i);
removeMovieClip("Bolder1" + i);
removeMovieClip("Vorlon" + i);
removeMovieClip("Shild" + i);
removeMovieClip("MagMine" + i);
removeMovieClip("Warp" + i);
removeMovieClip("Bomb1" + i);
i = i + 1;
}
i = 0;
while (i < PowerAmount) {
removeMovieClip("Power" + i);
i = i + 1;
}
i = 0;
while (i < 100) {
removeMovieClip("Star" + i);
i = i + 1;
}
stopAllSounds();
Mouse.show();
stop();
Frame 30
i = 0;
while (i < Amount) {
removeMovieClip("Plane" + i);
removeMovieClip("Plane1" + i);
removeMovieClip("Plane2" + i);
removeMovieClip("Bolder" + i);
removeMovieClip("Bolder1" + i);
removeMovieClip("Vorlon" + i);
removeMovieClip("Shild" + i);
removeMovieClip("MagMine" + i);
removeMovieClip("Warp" + i);
removeMovieClip("Bomb1" + i);
i = i + 1;
}
i = 0;
while (i < PowerAmount) {
removeMovieClip("Power" + i);
i = i + 1;
}
stopAllSounds();
Mouse.show();
stop();
Frame 35
_root.EndMovie.gotoAndPlay(5);
stop();
Symbol 8 MovieClip [AtomicBomb] Frame 1
stop();
Symbol 8 MovieClip [AtomicBomb] Frame 18
i = 0;
while (i < _root.Amount) {
removeMovieClip(_root["Plane" + i]);
removeMovieClip(_root["Plane1" + i]);
removeMovieClip(_root["Plane2" + i]);
removeMovieClip(_root["Bolder" + i]);
removeMovieClip(_root["Bolder1" + i]);
removeMovieClip(_root["Vorlon" + i]);
removeMovieClip(_root["Shild" + i]);
removeMovieClip(_root["Bomb1" + i]);
removeMovieClip(_root["MagMine" + i]);
removeMovieClip(_root["Warp" + i]);
i = i + 1;
}
Symbol 8 MovieClip [AtomicBomb] Frame 35
this.removeMovieClip();
stop();
Symbol 12 MovieClip [AeroPlane1] Frame 1
stop();
Symbol 12 MovieClip [AeroPlane1] Frame 30
_root.Dead[this.v] = 1;
this._x = Math.round(Math.random() * 850);
this._y = Math.round(Math.random() * 450);
gotoAndStop (1);
Symbol 15 MovieClip [AeroPlane] Frame 1
stop();
Symbol 15 MovieClip [AeroPlane] Frame 20
_root.Dead[this.v] = 1;
this._x = Math.round(Math.random() * 850);
this._y = Math.round(Math.random() * 500);
gotoAndStop (1);
Symbol 23 Button
on (release) {
stopAllSounds();
getURL ("http://www.cloud9designs.net", "_blank");
}
Symbol 52 MovieClip Frame 110
stopAllSounds();
_root.Logo.gotoAndPlay(2);
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 160
_root.gotoAndPlay(4);
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 112 Button
on (release) {
stopAllSounds();
gotoAndPlay (15);
}
Symbol 113 Button
on (release) {
stopAllSounds();
gotoAndStop (6);
}
Symbol 115 MovieClip Frame 226
stopAllSounds();
gotoAndPlay (2);
Symbol 117 Button
on (release) {
stopAllSounds();
_root.Sounds.gotoAndStop(1);
getURL ("http://www.flashninjaclan.com", "_blank");
}
Symbol 129 Button
on (release) {
gotoAndStop (4);
}
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 60
gotoAndStop (1);
Symbol 132 MovieClip Frame 85
_root.Dead[this.v] = 1;
this._x = Math.round(Math.random() * 450);
this._y = Math.round(Math.random() * 850);
gotoAndStop (1);
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 56
this.removeMovieClip();
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 7
gotoAndStop (1);
Symbol 142 MovieClip Frame 60
this.removeMovieClip();
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 55
stopAllSounds();
_root.Level = _root.Level - 1;
_root.Shields = _root.Shields - 10;
_root.gotoAndPlay(15);
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 100
this.removeMovieClip();
stop();
Symbol 160 MovieClip Frame 1
i = 0;
while (i < 200) {
duplicateMovieClip ("t", "t" + i, i);
setProperty("t" + i, _rotation , Math.random() * 360);
setProperty("t" + i, _xscale , Math.random() * 60);
setProperty("t" + i, _yscale , Math.random() * 60);
i = i + 1;
}
stop();
Symbol 160 MovieClip Frame 2
gotoAndPlay (1);
Symbol 163 MovieClip Frame 137
_root.gotoAndPlay(30);
stop();
Symbol 164 MovieClip Frame 137
stopAllSounds();
_root.Level = _root.Level - 3;
_root.Shields = _root.Shields - 30;
_root.gotoAndPlay(15);
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 5
stop();
Symbol 165 MovieClip Frame 7
stop();
Symbol 165 MovieClip Frame 10
_root.Start = 3;
Symbol 165 MovieClip Frame 61
this.removeMovieClip();
_root.gotoAndStop(25);
Symbol 165 MovieClip Frame 70
stop();
Symbol 165 MovieClip Frame 75
stop();
Symbol 184 MovieClip Frame 1
_root.Planets.gotoAndStop(1);
Symbol 184 MovieClip Frame 215
_root.GameOver.gotoAndPlay(2);
stop();
Symbol 188 Button
on (release) {
_root.Start = 0;
gotoAndPlay (83);
}
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 73
stop();
Symbol 194 MovieClip Frame 104
_root.gotoAndPlay(4);
Symbol 198 Button
on (release) {
gotoAndPlay (149);
}
Symbol 209 MovieClip Frame 70
if (_root.Timer > 0) {
_root.Total = _root.Score + _root.Timer;
} else {
_root.Total = _root.Score;
_root.Timer = 0;
}
_root.GrandTotal = _root.GrandTotal + _root.Total;
stop();
Symbol 209 MovieClip Frame 170
_root.Level = _root.level + 1;
_root.Total = 0;
_root.gotoAndPlay(7);
stop();
Symbol 210 MovieClip Frame 80
stop();
Symbol 216 Button
on (release) {
_root.Level = _root.level + 1;
_root.Total = 0;
_root.Weaver = 0;
_root.Start = 0;
_root.gotoAndPlay(7);
}
Symbol 217 MovieClip Frame 5
stopAllSounds();
Symbol 217 MovieClip Frame 111
stopAllSounds();
Symbol 217 MovieClip Frame 257
_root.Planets.gotoAndStop(21);
Symbol 217 MovieClip Frame 393
Mouse.show();
stop();