Frame 1
loaded = getBytesLoaded();
total = getBytesTotal();
if (loaded == total) {
gotoAndStop (4);
}
pc = int((100 * loaded) / total) + "%";
Instance of Symbol 8 MovieClip "A2" in Frame 1
onClipEvent (enterFrame) {
i++;
if (i == 1) {
prevFrame();
}
if (i == 4) {
nextFrame();
}
if (i == 6) {
i = 0;
}
}
Frame 3
gotoAndPlay (1);
Frame 4
score = 0;
stop();
Frame 5
setProperty("LaserFire", _visible , false);
setProperty("AlienFire1", _visible , false);
setProperty("AlienFire2", _visible , false);
setProperty("AlienFire3", _visible , false);
setProperty("AlienFire4", _visible , false);
setProperty("Spaceship", _visible , false);
setProperty("Alien1", _visible , false);
setProperty("Alien2", _visible , false);
setProperty("Alien3", _visible , false);
var i = 4;
while (i < 9) {
setProperty("Life" + i, _visible , false);
i++;
}
lives = 3;
score = 0;
shipScore = 50;
level = 0;
Frame 6
if (level < 84) {
level = level + 14;
}
shifts = 1;
xMin = 400;
xMax = 0;
dir = 4;
alienHeight = 42 + level;
aliensDead = 0;
newLife = 0;
tonePos = 1;
i = 1;
while (lives >= i) {
setProperty("Life" + i, _visible , true);
i++;
}
i = 0;
while (i < 11) {
duplicateMovieClip ("Alien1", "Row1" + i, i);
duplicateMovieClip ("Alien2", "Row2" + i, i + 11);
duplicateMovieClip ("Alien2", "Row3" + i, i + 22);
duplicateMovieClip ("Alien3", "Row4" + i, i + 33);
duplicateMovieClip ("Alien3", "Row5" + i, i + 44);
j = 1;
while (j < 6) {
setProperty(("Row" + j) + i, _x , 102 + (32 * i));
setProperty(("Row" + j) + i, _y , alienHeight + (30 * j));
j++;
}
i++;
}
time = getTimer();
Frame 14
tellTarget ("Spaceship") {
if (_visible) {
if ((_root.SsSound._currentframe == 1) && (_currentframe == 1)) {
_root.SsSound.play();
}
if ((_root.shipScore == 0) || (_x < 0)) {
_root.shipScore = 50;
_visible = false;
_x = 540;
gotoAndStop (1);
}
if (_root.shipScore >= 50) {
_x = (_x - 4);
}
}
};
if (((800 - (3 * alienHeight)) - (5 * aliensDead)) < (getTimer() - time)) {
if (newLife == 1) {
tellTarget ("LaserBase") {
gotoAndStop (1);
_x = 95;
};
newLife = 0;
tonePos = 1;
} else if (newLife) {
newLife--;
} else {
Sound.gotoAndPlay("Tone" + tonePos);
tonePos++;
if (tonePos == 5) {
tonePos = 1;
}
tellTarget ("Spaceship") {
if ((!_visible) && (random(40) < 1)) {
_visible = true;
}
};
if ((0 < shipScore) && (shipScore < 50)) {
shipScore = shipScore - 10;
}
allGone = true;
if ((shifts == 1) && ((497 < xMax) || (xMin < 23))) {
shifts = 0;
dir = dir * -1;
alienHeight = alienHeight + 14;
}
xMin = 400;
xMax = 0;
var i = 0;
while (i < 11) {
var j = 1;
while (j < 6) {
thisAlien = eval (("Row" + j) + i);
if (thisAlien._visible) {
allGone = false;
tellTarget (thisAlien) {
if (_root.shifts == 0) {
_y = (_root.alienHeight + (30 * this.j));
} else {
_x = (_x + _root.dir);
if (_currentframe == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
if (320 < _y) {
_root.lives = 0;
}
if (_x < _root.xMin) {
_root.xMin = _x;
}
if (_root.xMax < _x) {
_root.xMax = _x;
}
};
}
j++;
}
i++;
}
if (shifts == 0) {
xMin = 400;
xMax = 0;
shifts = 1;
}
if (allGone) {
score = score + 1000;
if (lives < 9) {
lives++;
}
gotoAndPlay (6);
}
}
time = getTimer();
}
var i = 0;
while (i < 11) {
var j = 1;
while (j < 6) {
thisAlien = eval (("Row" + j) + i);
if (LaserFire.hitTest(thisAlien)) {
Sound.gotoAndPlay("Kill");
aliensDead++;
LaserFire._y = -20;
Explode._x = thisAlien._X;
Explode._y = thisAlien._y;
Explode.gotoAndPlay(2);
removeMovieClip(thisAlien);
if ((j == 5) || (j == 4)) {
score = score + 10;
} else if ((j == 3) || (j == 2)) {
score = score + 20;
} else {
score = score + 40;
}
}
j++;
}
i++;
}
tellTarget ("LaserFire") {
if (_visible) {
_y = (_y - 12);
if (280 < _y) {
var b = 10;
while (b < 50) {
block = eval ("_root.Block" + b);
if (block._visible && (hitTest(block))) {
_y = 0;
if (block._currentframe == 4) {
block._visible = false;
} else {
block.nextFrame();
}
}
b++;
}
}
if (_y < 40) {
_visible = false;
_y = 392;
}
}
};
if (LaserFire.hitTest(Spaceship) && (Spaceship._currentframe == 1)) {
stopAllSounds();
Sound.gotoAndPlay("KillSS");
setProperty("LaserFire", _y , -20);
shipScore = random(6) + 1;
score = score + (50 * shipScore);
Spaceship.gotoAndStop(shipScore + 1);
SsSound.gotoAndStop(1);
shipScore = 40;
}
var fire = 4;
while (0 < fire) {
if (((!AlienFire4._visible) && (1 < random(20))) && (fire == 4)) {
fire = 3;
}
alienFire = eval ("AlienFire" + fire);
tellTarget (alienFire) {
if (_visible) {
if (this.fire == 4) {
_y = (_y + 12);
} else {
_y = (_y + 8);
}
if (412 < _y) {
_visible = false;
}
} else if ((!_root.newLife) && (random(170 - _root.alienHeight) < 1)) {
var i = random(11);
var j = 5;
while (0 < j) {
firePos = eval (("_root.Row" + j) + i);
if (firePos._visible) {
_x = firePos._x;
_y = (firePos._y + 16);
_visible = true;
j = 0;
}
j--;
}
}
if ((290 < _y) && (_visible)) {
var b = 10;
while (b < 50) {
block = eval ("_root.Block" + b);
if (block._visible && (hitTest(block))) {
_visible = false;
if (block._currentframe == 4) {
block._visible = false;
} else {
block.nextFrame();
}
}
b++;
}
}
};
if (((!newLife) && (alienFire._visible)) && (alienFire.hitTest(LaserBase))) {
Sound.gotoAndPlay("Boom");
alienFire._visible = false;
setProperty("Life" + lives, _visible , false);
LaserBase.gotoAndStop(2);
newLife = 3;
lives--;
}
fire--;
}
if (lives == 0) {
LaserBase.gotoAndStop(2);
gotoAndPlay (16);
}
Frame 15
gotoAndPlay (14);
Frame 16
i = 0;
while (i < 11) {
j = 1;
while (j < 6) {
removeMovieClip(("Row" + j) + i);
j++;
}
i++;
}
Frame 20
stop();
Symbol 8 MovieClip Frame 1
stop();
Symbol 12 Button
on (release) {
getURL ("http://www.neave.com/", "_blank");
}
Symbol 14 Button
on (release) {
play();
}
Symbol 25 MovieClip Frame 60
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 36 Button
on (release) {
fscommand ("quit");
}
Symbol 38 Button
on (release) {
n = 0;
while (n < 11) {
removeMovieClip("Row1" + n);
removeMovieClip("Row2" + n);
removeMovieClip("Row3" + n);
removeMovieClip("Row4" + n);
removeMovieClip("Row5" + n);
n++;
}
_root.gotoAndStop("Loaded");
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 3
stop();
Symbol 65 MovieClip Frame 5
stop();
Symbol 65 MovieClip Frame 7
stop();
Symbol 65 MovieClip Frame 9
stop();
Symbol 65 MovieClip Frame 11
stop();
Symbol 65 MovieClip Frame 13
stop();
Symbol 65 MovieClip Frame 15
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 26
if (_root.Spaceship._visible) {
gotoAndPlay (2);
}
Symbol 68 MovieClip Frame 1
if (_root.LaserBase._currentframe == 1) {
tellTarget (_root.LaserBase) {
if (Key.isDown(39) && (_x < 500)) {
_x = (_x + 6);
} else if (Key.isDown(37) && (20 < _x)) {
_x = (_x - 6);
}
};
if (Key.isDown(32) && (!_root.LaserFire._visible)) {
_root.Sound.gotoAndPlay("Fire");
tellTarget (_root.LaserFire) {
_x = _root.LaserBase._x;
_visible = true;
};
}
}
Symbol 68 MovieClip Frame 2
gotoAndPlay (1);
Symbol 73 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 85 Button
on (release, keyPress "<Space>") {
_root.play();
}
Symbol 86 MovieClip Frame 60
stop();
_root.play();