Frame 1
shield = 60;
stop();
startDrag ("/mousexy", true);
stop();
Frame 2
function clean() {
var _local1 = _root;
for (i in _local1) {
_local1[i].removeMovieClip();
}
}
_root.clean();
c = 1;
while (c < 30) {
_root.star.duplicateMovieClip("boxx" + c, c);
_root["boxx" + c]._x = random(550);
_root["boxx" + c]._y = 50 + random(300);
_root["boxx" + c].gotoAndStop(random(3) + 1);
c = c + 1;
}
_root.dir = 2;
Mouse.show();
stop();
Instance of Symbol 56 MovieClip "star" in Frame 2
onClipEvent (load) {
speed = random(6) + 2;
}
onClipEvent (enterFrame) {
if (_x < -20) {
speed = random(6) + 2;
_x = 520;
_y = (50 + random(300));
gotoAndStop(random(3) + 1 +1);
if (random(50) == 2) {
gotoAndStop (5);
speed = 20;
} else if (random(150) == 5) {
gotoAndStop (6);
speed = 1;
}
}
_x = (_x - speed);
}
Frame 3
enemyNumber = 10;
i = 0;
while (i < enemyNumber) {
duplicateMovieClip ("enemy", "new" + i, 30 + i);
i++;
}
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
shield = 60;
score = 0;
level = 1;
weapon = "laser";
Mouse.hide();
stop();
Instance of Symbol 66 MovieClip "orb" in Frame 3
onClipEvent (load) {
function difference() {
var _local1 = _root;
dx = _local1.ship._x - _x;
dy = _local1.ship._y - _y;
speed = 60;
a = _local1.aimer.speed;
}
function hitCheck() {
var _local1 = _root;
if (this.hitTest(_local1.ship) and flag) {
_local1.shield--;
_local1.ship.play();
electro.play();
}
}
flag = true;
difference();
}
onClipEvent (enterFrame) {
if (_name != "orb") {
_rotation = (_rotation + 5);
_x = (_x + ((dx / speed) * a));
_y = (_y + ((dy / speed) * a));
if ((_x > 600) or (_x < -10)) {
removeMovieClip(this);
}
if ((_y > 550) or (_y < 0)) {
removeMovieClip(this);
}
hitCheck();
}
}
Instance of Symbol 99 MovieClip "ship" in Frame 3
onClipEvent (load) {
soundLaser1 = new Sound();
soundLaser1.attachSound("sound1");
soundLaser2 = new Sound();
soundLaser2.attachSound("sound2");
soundLaser3 = new Sound();
soundLaser3.attachSound("sound3");
soundLaser4 = new Sound();
soundLaser4.attachSound("sound4");
speed = 6;
_root.shipDead = false;
sy = _y;
ang = 0;
Redge = 550 - (_width / 2);
Ledge = 0 + (_width / 2);
Uedge = 400 - (_height / 2);
Dedge = 0 + (_height / 2);
}
onClipEvent (enterFrame) {
sh = 101 - _root.shield;
_root.scudo.gotoAndStop(sh);
_y = (sy + (4 * Math.cos((ang = ang + 0.092))));
c = _root.score;
if (c == 200) {
_root.level = 2;
} else if (c == 300) {
_root.level = 3;
} else if (c == 400) {
_root.level = 4;
} else if (c == 500) {
_root.level = 5;
_root.gotoAndStop("boss1");
}
if (_root.shield <= 0) {
_root.shipDead = true;
gotoAndStop (5);
}
if (Key.isDown(40) and (_y < (Uedge - 50))) {
_y = (_y + speed);
sy = sy + speed;
}
if (Key.isDown(38) and (_y > (Dedge + 50))) {
_y = (_y - speed);
sy = sy - speed;
}
if (Key.isDown(39) and (_x < Redge)) {
_x = (_x + speed);
}
if (Key.isDown(37) and (_x > Ledge)) {
_x = (_x - speed);
}
if (Key.isDown(32)) {
if (false eq _root.flymode) {
if (!a) {
shotCount++;
depth = (shotCount % 100) + 100;
_root.attachMovie("laser", "sparo" + shotCount, depth);
_root["sparo" + shotCount]._x = this._x + (_width - 45);
_root["sparo" + shotCount]._y = this._y - 10;
a = true;
if (_root.bonus1) {
_root["sparo" + shotCount].gotoAndStop(2);
soundLaser1.start();
} else if (_root.bonus2) {
_root["sparo" + shotCount].gotoAndStop(3);
soundLaser2.start();
} else if (_root.bonus3) {
_root["sparo" + shotCount].gotoAndStop(4);
soundLaser4.start();
} else {
_root["sparo" + shotCount].gotoAndStop(1);
soundLaser3.start();
}
}
}
} else {
a = false;
}
}
Instance of Symbol 110 MovieClip "enemy" in Frame 3
onClipEvent (load) {
function reset() {
s = _root.level;
this.gotoAndStop(s);
ship.gotoAndStop(1);
speed = random(10) + 2;
_y = (random(300) + _height);
_x = (550 + _y);
maxfireRand = 200;
_root.firePower = maxfireRand / s;
}
maxx = _root._width + random(40);
maxy = (_root._height / 2) - _height;
sy = random(260) + 20;
reset();
}
onClipEvent (enterFrame) {
if (_name != "enemy") {
if (this.ship._currentframe == 1) {
_y = (sy + (speed * Math.cos((speed = speed + 0.092))));
if (this.hitTest(_root.ship)) {
if (false eq _root.flymode) {
ship.gotoAndStop(2);
_root.ship.play();
_root.shield--;
}
}
if ((random(_root.firePower) + 1) == 2) {
shotCount++;
depth = (shotCount % 100) + 200;
duplicateMovieClip (_root.enemyLaser, "enemyBum" + shotCount, depth);
_root["enemyBum" + shotCount]._x = this._x - 40;
_root["enemyBum" + shotCount]._y = this._y;
}
}
_x = (_x - speed);
if (_x < -10) {
reset();
}
}
}
Instance of Symbol 117 MovieClip "enemyLaser" in Frame 3
onClipEvent (load) {
speed = 15;
}
onClipEvent (enterFrame) {
if (_name != "enemyLaser") {
if (!_root.shipDead) {
if (this.hitTest(_root.ship)) {
if (false eq _root.flymode) {
_root.ship.play();
_root.shield--;
removeMovieClip(this);
}
}
}
_x = (_x - speed);
if (_x < -10) {
removeMovieClip(this);
}
}
}
Instance of Symbol 131 MovieClip in Frame 3
onClipEvent (load) {
oldx = _x;
speed = 0;
go = true;
tf = _totalframes;
s = random(tf) + 1;
laserNames = ["laser", "green laser", "double laser", "triple laser"];
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
if (this.hitTest(_root.ship) and (b1.flag == false)) {
crf = _currentframe;
tempo = 0;
hit = true;
b1.gotoAndPlay(2);
if (crf == 1) {
_root.bonus1 = true;
_root.bonus2 = false;
_root.weapon = laserNames[crf];
} else if (crf == 2) {
_root.bonus2 = true;
_root.bonus1 = false;
_root.weapon = laserNames[crf];
}
if (crf == 3) {
_root.bonus3 = true;
_root.bonus1 = false;
_root.bonus2 = false;
_root.weapon = laserNames[crf];
}
b1.flag = true;
}
_x = (_x - speed);
if (hit) {
if ((++tempo) > 400) {
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
hit = false;
_root.weapon = laserNames[0];
}
}
if (((random(100) + 1) == 2) and go) {
speed = random(10) + 1;
go = false;
gotoAndStop(s +1);
} else if (_x < -10) {
_x = oldx;
speed = 0;
_y = (random(300) + 20);
s = random(tf) + 1;
b1.gotoAndStop(1);
go = true;
}
}
Frame 4
stop();
Instance of Symbol 145 MovieClip in Frame 4
onClipEvent (load) {
function followShip() {
_x = (_x-1);
if ((_x-1) < 300) {
_x = 300;
}
m = true;
my_pos = _root.ship._y + 80;
my = my_pos;
if (my < _y) {
dy = _y - my;
} else {
dy = my - _y;
}
moveSpeedy = dy / 20;
if (my < _y) {
_y = (_y - moveSpeedy);
} else {
_y = (_y + moveSpeedy);
}
}
killed = 0;
xdir = random(3) + 1;
x_speed = 3;
speed = random(3) + 1;
y = 0;
count = 0;
sl = _root.ship.shotCount;
MCColor = new Color(this);
oldColor = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
newColor = {ra:"100", rb:"50", ga:"100", gb:"24", ba:"100", bb:"83", aa:"100", ab:"0"};
}
onClipEvent (enterFrame) {
followShip();
if (this.hitTest(_root.ship)) {
_root.shield = _root.shield - 1;
}
bl = _root.ship.shotCount;
i = sl + count;
while (i <= bl) {
if (hitTest(_root["sparo" + i])) {
count++;
_root.score = _root.score + 10;
_root["sparo" + i].removeMovieClip();
MCColor.setTransform(newColor);
}
i++;
}
y = y + 1;
if (y > 5) {
MCColor.setTransform(oldColor);
y = 0;
}
if (count >= 50) {
gotoAndStop (3);
}
}
Frame 5
Mouse.show();
stop();
Frame 6
stop();
Symbol 6 MovieClip Frame 2
stop();
Symbol 15 MovieClip [laser] Frame 1
stop();
Instance of Symbol 6 MovieClip "fire" in Symbol 15 MovieClip [laser] Frame 1
onClipEvent (load) {
n = _root.enemyNumber;
speed = 10;
}
onClipEvent (enterFrame) {
i = 0;
while (i < n) {
if (_root["new" + i].ship._currentframe == 1) {
if (this.hitTest(_root["new" + i])) {
_root.score = _root.score + 10;
_root["new" + i].ship.gotoAndPlay(2);
removeMovieClip(_parent);
}
}
i++;
}
if (_parent._x <= 550) {
_parent._x = _parent._x + speed;
} else {
removeMovieClip(_parent);
}
}
Symbol 15 MovieClip [laser] Frame 2
stop();
Instance of Symbol 8 MovieClip in Symbol 15 MovieClip [laser] Frame 2
onClipEvent (load) {
n = _root.enemyNumber;
speed = 10;
}
onClipEvent (enterFrame) {
i = 0;
while (i < n) {
if (_root["new" + i].ship._currentframe == 1) {
if (this.hitTest(_root["new" + i])) {
_root.score = _root.score + 10;
_root["new" + i].ship.gotoAndPlay(2);
removeMovieClip(_parent);
}
}
i++;
}
if (_parent._x <= 550) {
_parent._x = _parent._x + speed;
} else {
removeMovieClip(_parent);
}
}
Symbol 15 MovieClip [laser] Frame 3
stop();
Instance of Symbol 12 MovieClip "ball2" in Symbol 15 MovieClip [laser] Frame 3
onClipEvent (load) {
n = _root.enemyNumber;
speed = 10;
}
onClipEvent (enterFrame) {
_y = (_y + 1);
i = 0;
while (i < n) {
if (_root["new" + i].ship._currentframe == 1) {
if (this.hitTest(_root["new" + i])) {
_root.score = _root.score + 10;
_root["new" + i].ship.gotoAndPlay(2);
this.gotoAndStop(2);
}
}
i++;
}
if (_parent._x <= 550) {
_parent._x = _parent._x + speed;
} else {
removeMovieClip(_parent);
}
}
Instance of Symbol 12 MovieClip "ball1" in Symbol 15 MovieClip [laser] Frame 3
onClipEvent (load) {
n = _root.enemyNumber;
speed = 10;
}
onClipEvent (enterFrame) {
_y = (_y - 1);
i = 0;
while (i < n) {
if (_root["new" + i].ship._currentframe == 1) {
if (this.hitTest(_root["new" + i])) {
_root.score = _root.score + 10;
_root["new" + i].ship.gotoAndPlay(2);
this.gotoAndStop(2);
}
}
i++;
}
if (_parent._x <= 550) {
_parent._x = _parent._x + speed;
} else {
removeMovieClip(_parent);
}
}
Symbol 15 MovieClip [laser] Frame 4
stop();
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip [laser] Frame 4
onClipEvent (load) {
n = _root.enemyNumber;
speed = 10;
}
onClipEvent (enterFrame) {
_y = (_y - 2);
i = 0;
while (i < n) {
if (_root["new" + i].ship._currentframe == 1) {
if (this.hitTest(_root["new" + i])) {
_root.score = _root.score + 10;
_root["new" + i].ship.gotoAndPlay(2);
this.gotoAndStop(2);
}
}
i++;
}
if (_parent._x <= 550) {
_parent._x = _parent._x + speed;
} else {
removeMovieClip(_parent);
}
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip [laser] Frame 4
onClipEvent (load) {
n = _root.enemyNumber;
speed = 10;
}
onClipEvent (enterFrame) {
i = 0;
while (i < n) {
if (_root["new" + i].ship._currentframe == 1) {
if (this.hitTest(_root["new" + i])) {
_root.score = _root.score + 10;
_root["new" + i].ship.gotoAndPlay(2);
this.gotoAndStop(2);
}
}
i++;
}
if (_parent._x <= 550) {
_parent._x = _parent._x + speed;
} else {
removeMovieClip(_parent);
}
}
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip [laser] Frame 4
onClipEvent (load) {
n = _root.enemyNumber;
speed = 10;
}
onClipEvent (enterFrame) {
_y = (_y + 2);
i = 0;
while (i < n) {
if (_root["new" + i].ship._currentframe == 1) {
if (this.hitTest(_root["new" + i])) {
_root.score = _root.score + 10;
_root["new" + i].ship.gotoAndPlay(2);
this.gotoAndStop(2);
}
}
i++;
}
if (_parent._x <= 550) {
_parent._x = _parent._x + speed;
} else {
removeMovieClip(_parent);
}
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 6
_root.boss2dead = true;
stop();
Symbol 24 MovieClip Frame 12
stop();
Instance of Symbol 24 MovieClip in Symbol 29 MovieClip Frame 1
onClipEvent (load) {
this._rotation = random(180);
}
Symbol 29 MovieClip Frame 11
stop();
Symbol 30 MovieClip [ship2] Frame 1
stop();
Symbol 30 MovieClip [ship2] Frame 2
stop();
Symbol 35 MovieClip [exlplosion] Frame 12
Symbol 35 MovieClip [exlplosion] Frame 13
_root.gotoAndStop("gameover");
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 50
stop();
Symbol 40 MovieClip Frame 1
setProperty("star", _visible , false);
starcount = 25;
dist = "150";
zinc = "0";
starwidth = 60;
starheight = 60;
sc = 0;
while (Number(sc) < Number(starcount)) {
starinst = "star" add sc;
duplicateMovieClip ("star", starinst, sc);
Set(starinst add ":sx", random(1000) - 500);
Set(starinst add ":sy", random(1000) - 500);
Set(starinst add ":sz", Number(dist) + Number(random(1000)));
sc = Number(sc) + 1;
}
Symbol 40 MovieClip Frame 2
zinc = (150 - getProperty("/mousexy", _y)) / 4;
xinc = (250 - getProperty("/mousexy", _x)) / 4;
call("calc3d");
Symbol 40 MovieClip Frame 3
gotoAndPlay (2);
Symbol 40 MovieClip Frame 4
sc = 0;
while (Number(sc) < Number(starcount)) {
starinst = "star" add sc;
z = eval (starinst add ":sz");
z = z - zinc;
if (Number(z) < Number(dist)) {
z = Number(z) + 1000;
Set(starinst add ":sx", random(1000) - 500);
Set(starinst add ":sy", random(1000) - 500);
} else if (Number(z) > Number(1000 + Number(dist))) {
z = z - 1000;
Set(starinst add ":sx", random(1000) - 500);
Set(starinst add ":sy", random(1000) - 500);
}
x = eval (starinst add ":sx");
x = Number(x) + Number(xinc);
if (Number(x) < Number(-1000)) {
x = Number(x) + 2000;
} else if (Number(x) > 1000) {
x = x - 2000;
}
Set(starinst add ":sx", x);
y = eval (starinst add ":sy");
per = dist / z;
setProperty(starinst, _x , x * per);
setProperty(starinst, _y , y * per);
setProperty(starinst, _xscale , starwidth * per);
setProperty(starinst, _yscale , starheight * per);
Set(starinst add ":sz", z);
Set(starinst add ":distance", int(z / 20));
tellTarget (starinst) {
gotoAndStop(distance);
};
sc = Number(sc) + 1;
}
Symbol 44 Button
on (release) {
play();
}
Symbol 49 Button
on (release) {
gotoAndPlay (3);
}
Symbol 56 MovieClip Frame 1
stop();
Instance of Symbol 55 MovieClip in Symbol 56 MovieClip Frame 5
onClipEvent (enterFrame) {
_rotation = (_rotation + 0.3);
}
Symbol 57 Button
on (release) {
gotoAndStop (7);
}
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 6
_parent.flag = false;
removeMovieClip(_parent);
Symbol 66 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
play();
Symbol 79 MovieClip Frame 3
play();
Symbol 79 MovieClip Frame 4
gotoAndStop (1);
Symbol 96 MovieClip Frame 1
_root.flymode = false;
stop();
Symbol 96 MovieClip Frame 2
_root.flymode = true;
play();
Symbol 96 MovieClip Frame 18
stop();
Symbol 96 MovieClip Frame 31
_root.flymode = false;
Symbol 96 MovieClip Frame 33
stop();
Symbol 97 MovieClip Frame 1
stop();
Instance of Symbol 79 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
tellTarget (this) {
play();
};
}
}
Symbol 97 MovieClip Frame 2
stop();
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
tellTarget (this) {
play();
};
}
}
Symbol 99 MovieClip Frame 1
stop();
Instance of Symbol 97 MovieClip "shot" in Symbol 99 MovieClip Frame 1
onClipEvent (load) {
_root.flymode = false;
}
onClipEvent (enterFrame) {
if (0 eq _root.flyenergie) {
tellTarget (this) {
gotoAndStop (2);
(_root.flyenergie = 1);
};
}
}
onClipEvent (enterFrame) {
if (false eq _root.flymode) {
if (Key.isDown(32)) {
tellTarget (this) {
gotoAndStop (1);
};
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
tellTarget (this) {
gotoAndStop (2);
};
}
}
Instance of Symbol 97 MovieClip "shot" in Symbol 99 MovieClip Frame 2
onClipEvent (load) {
_root.flymode = false;
}
onClipEvent (enterFrame) {
if (false eq _root.flymode) {
if (Key.isDown(32)) {
tellTarget (this) {
gotoAndStop (1);
};
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
tellTarget (this) {
gotoAndStop (2);
};
}
}
Symbol 99 MovieClip Frame 3
gotoAndStop (1);
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 1
rot = false;
stop();
Symbol 106 MovieClip Frame 2
rot = false;
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 3
stop();
Instance of Symbol 106 MovieClip "ship" in Symbol 110 MovieClip Frame 3
onClipEvent (enterFrame) {
if (rot) {
_rotation = (_rotation + 5);
}
}
Symbol 110 MovieClip Frame 4
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 121 MovieClip Frame 1
flag = false;
stop();
Symbol 121 MovieClip Frame 10
stop();
Symbol 126 MovieClip Frame 1
flag = false;
stop();
Symbol 126 MovieClip Frame 10
stop();
Symbol 129 MovieClip Frame 1
flag = false;
stop();
Symbol 129 MovieClip Frame 10
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
stop();
Symbol 131 MovieClip Frame 3
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 23
_root.gotoAndStop("win");
Symbol 145 MovieClip Frame 1
stop();
Instance of Symbol 139 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(40) == 1) {
this.play();
}
}
Symbol 145 MovieClip Frame 2
stop();
Symbol 146 Button
on (release) {
gotoAndPlay (2);
}
Symbol 157 Button
on (release) {
gotoAndStop (2);
}