Frame 1
stop();
Instance of Symbol 6 MovieClip in Frame 1
/* no clip actions */
Instance of Symbol 6 MovieClip in Frame 1
/* no clip actions */
Instance of Symbol 6 MovieClip in Frame 1
/* no clip actions */
Instance of Symbol 6 MovieClip in Frame 1
onClipEvent (load) {
num1 = new Array([0, 1], [1, 0], [1, 1], [2, 1], [3, 1], [4, 1], [5, 0], [5, 1], [5, 2], [5, 2]);
num2 = new Array([0, 1], [1, 0], [1, 2], [2, 2], [3, 1], [4, 0], [5, 0], [5, 1], [5, 2], [5, 2]);
num3 = new Array([0, 0], [0, 1], [1, 2], [2, 0], [2, 1], [3, 2], [4, 2], [5, 0], [5, 1], [5, 1]);
num4 = new Array([0, 0], [1, 0], [2, 0], [2, 2], [3, 0], [3, 1], [3, 2], [4, 2], [5, 2], [5, 2]);
num5 = new Array([0, 0], [0, 1], [0, 2], [1, 0], [2, 0], [2, 1], [3, 2], [4, 2], [5, 0], [5, 1]);
num6 = new Array([0, 1], [0, 2], [1, 0], [2, 0], [2, 1], [3, 0], [3, 2], [4, 0], [4, 2], [5, 1]);
num7 = new Array([0, 0], [0, 1], [0, 2], [1, 0], [1, 2], [2, 2], [3, 1], [4, 1], [5, 1], [5, 1]);
num8 = new Array([0, 1], [1, 0], [1, 2], [2, 1], [3, 0], [3, 2], [4, 0], [4, 2], [5, 1], [5, 1]);
num9 = new Array([0, 1], [1, 0], [1, 2], [2, 0], [2, 2], [3, 1], [3, 2], [4, 2], [5, 0], [5, 1]);
num0 = new Array([0, 1], [1, 0], [1, 2], [2, 0], [2, 2], [3, 0], [3, 2], [4, 0], [4, 2], [5, 1]);
_root.numPreloadArray = new Array(num0, num1, num2, num3, num4, num5, num6, num7, num8, num9);
}
onClipEvent (enterFrame) {
bytes_loaded = _root.getBytesLoaded();
bytes_total = _root.getBytesTotal();
getPercent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (getPercent < 10) {
_root.number_1.numberIndex = 0;
_root.number_2.numberIndex = 0;
_root.number_0.numberIndex = getPercent;
} else if (getPercent < 100) {
_root.number_1.numberIndex = Math.floor(getPercent / 10);
_root.number_2.numberIndex = 0;
_root.number_0.numberIndex = getPercent - (_root.number_1.numberIndex * 10);
} else {
_root.number_0.numberIndex = 0;
_root.number_1.numberIndex = 0;
_root.number_2.numberIndex = 1;
_root.gotoAndPlay(10);
}
}
Instance of Symbol 9 MovieClip "number_2" in Frame 1
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
tox = _root.numPreloadArray[numberIndex][i][1] * 10;
dx = eval ("dot_" + i)._x - tox;
toy = _root.numPreloadArray[numberIndex][i][0] * 10;
dy = eval ("dot_" + i)._y - toy;
distDot = Math.sqrt((dx * dx) + (dy * dy));
if (distDot > 0.01) {
eval ("dot_" + i)._x = eval ("dot_" + i)._x - (dx / 5);
eval ("dot_" + i)._y = eval ("dot_" + i)._y - (dy / 5);
}
i++;
}
}
Instance of Symbol 9 MovieClip "number_1" in Frame 1
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
tox = _root.numPreloadArray[numberIndex][i][1] * 10;
dx = eval ("dot_" + i)._x - tox;
toy = _root.numPreloadArray[numberIndex][i][0] * 10;
dy = eval ("dot_" + i)._y - toy;
distDot = Math.sqrt((dx * dx) + (dy * dy));
if (distDot > 0.01) {
eval ("dot_" + i)._x = eval ("dot_" + i)._x - (dx / 5);
eval ("dot_" + i)._y = eval ("dot_" + i)._y - (dy / 5);
}
i++;
}
}
Instance of Symbol 9 MovieClip "number_0" in Frame 1
onClipEvent (enterFrame) {
i = 0;
while (i < 10) {
tox = _root.numPreloadArray[numberIndex][i][1] * 10;
dx = eval ("dot_" + i)._x - tox;
toy = _root.numPreloadArray[numberIndex][i][0] * 10;
dy = eval ("dot_" + i)._y - toy;
distDot = Math.sqrt((dx * dx) + (dy * dy));
if (distDot > 0.01) {
eval ("dot_" + i)._x = eval ("dot_" + i)._x - (dx / 5);
eval ("dot_" + i)._y = eval ("dot_" + i)._y - (dy / 5);
}
i++;
}
}
Instance of Symbol 57 MovieClip [blast] in Frame 3
onClipEvent (load) {
stop();
}
Frame 10
delete _root.numPreloadArray;
music = true;
bestScore = 0;
_quality = "HIGH";
stop();
Frame 11
score = 0;
prizeON = false;
level = 1;
metaSFX = new Sound();
metaSFX.attachSound("meta_sound");
weaponSFX = new Sound();
weaponSFX.attachSound("weapon");
energySFX = new Sound();
energySFX.attachSound("energy");
blastSFX = new Sound();
blastSFX.attachSound("blast_weapon");
musicTitle = new Sound();
musicTitle.attachSound("title");
musicGame = new Sound();
musicGame.attachSound("in-game");
if (music) {
musicTitle.start(0, 10000);
}
stop();
Instance of Symbol 11 MovieClip in Frame 11
onClipEvent (load) {
this.useHandCursor = false;
cheatCount = 0;
_root.mainFlag = false;
}
on (keyPress "s") {
if (cheatCount == 0) {
cheatCount = cheatCount + 1;
} else {
cheatCount = 0;
}
}
on (keyPress "t") {
if (cheatCount == 1) {
cheatCount = cheatCount + 1;
} else {
cheatCount = 0;
}
}
on (keyPress "a") {
if (cheatCount == 2) {
cheatCount = cheatCount + 1;
} else {
cheatCount = 0;
}
}
on (keyPress "r") {
if (cheatCount == 3) {
cheatCount = cheatCount + 1;
cheatSnd = new Sound();
cheatSnd.attachSound("energy");
cheatSnd.start(0, 1);
_root.mainFlag = true;
} else {
cheatCount = 0;
}
}
Frame 12
max_asteroids = 0;
AsteroidKilled = function () {
_root.globalBang = 3 + Math.floor(Math.random() * 3);
asteroids_to_kill = asteroids_to_kill - 1;
if ((asteroids_to_kill == 0) && (_currentframe == 12)) {
_root.gotoAndPlay(13);
}
};
AttachAsteroid = function (xpos, ypos, scaleFactor, asteroidType) {
max_asteroids = max_asteroids + 1;
if (asteroidType == 1) {
_root.attachMovie("asteroid", "asteroid" + max_asteroids, max_asteroids + 10);
eval ("_root.asteroid" + max_asteroids)._x = xpos;
eval ("_root.asteroid" + max_asteroids)._y = ypos;
eval ("_root.asteroid" + max_asteroids).scaleFactor = scaleFactor;
}
if (asteroidType == 2) {
_root.attachMovie("crystal", "asteroid" + max_asteroids, max_asteroids + 10);
eval ("_root.asteroid" + max_asteroids)._x = xpos;
eval ("_root.asteroid" + max_asteroids)._y = ypos;
}
if (asteroidType == 3) {
_root.attachMovie("station", "asteroid" + max_asteroids, max_asteroids + 10);
eval ("_root.asteroid" + max_asteroids)._x = xpos;
eval ("_root.asteroid" + max_asteroids)._y = ypos;
}
if (asteroidType == 4) {
_root.attachMovie("meta", "asteroid" + max_asteroids, max_asteroids + 10);
eval ("_root.asteroid" + max_asteroids)._x = xpos;
eval ("_root.asteroid" + max_asteroids)._y = ypos;
}
if (asteroidType == 5) {
_root.attachMovie("satellite", "asteroid" + max_asteroids, max_asteroids + 10);
eval ("_root.asteroid" + max_asteroids)._x = xpos;
eval ("_root.asteroid" + max_asteroids)._y = ypos;
}
};
if (level == 1) {
AttachAsteroid(0, 0, 0, 1);
AttachAsteroid(500, 450, 0, 1);
asteroids_to_kill = 26;
}
if (level == 2) {
AttachAsteroid(0, 0, 0, 1);
AttachAsteroid(500, 450, 0, 1);
AttachAsteroid(500, 0, 0, 1);
asteroids_to_kill = 39;
}
if (level == 3) {
AttachAsteroid(0, 0, 0, 1);
AttachAsteroid(500, 450, 0, 1);
AttachAsteroid(0, 450, 0, 3);
asteroids_to_kill = 27;
}
if (level == 4) {
AttachAsteroid(500, 450, 0, 1);
AttachAsteroid(500, 0, 0, 1);
AttachAsteroid(0, 450, 0, 1);
AttachAsteroid(0, 0, 0, 5);
asteroids_to_kill = 40;
}
if (level == 5) {
AttachAsteroid(0, 0, 0, 1);
AttachAsteroid(500, 0, 0, 1);
AttachAsteroid(0, 450, 0, 2);
asteroids_to_kill = 27;
}
if (level == 6) {
AttachAsteroid(0, 450, 0, 1);
AttachAsteroid(500, 0, 0, 1);
AttachAsteroid(500, 450, 0, 4);
asteroids_to_kill = 27;
}
if (level == 7) {
AttachAsteroid(0, 450, 0, 1);
AttachAsteroid(500, 0, 0, 1);
AttachAsteroid(0, 0, 0, 3);
AttachAsteroid(500, 450, 0, 2);
asteroids_to_kill = 28;
}
if (level == 8) {
AttachAsteroid(0, 0, 0, 1);
AttachAsteroid(500, 0, 0, 1);
AttachAsteroid(0, 450, 0, 5);
AttachAsteroid(500, 450, 0, 4);
asteroids_to_kill = 28;
}
if (level == 9) {
AttachAsteroid(0, 0, 0, 1);
AttachAsteroid(500, 0, 0, 1);
AttachAsteroid(250, 0, 0, 1);
AttachAsteroid(0, 450, 0, 3);
AttachAsteroid(500, 450, 0, 2);
asteroids_to_kill = 41;
}
if (level == 10) {
AttachAsteroid(0, 0, 0, 1);
AttachAsteroid(500, 0, 0, 1);
AttachAsteroid(250, 0, 0, 1);
AttachAsteroid(0, 450, 0, 4);
AttachAsteroid(500, 450, 0, 5);
asteroids_to_kill = 41;
}
if (level == 11) {
AttachAsteroid(0, 0, 0, 1);
AttachAsteroid(500, 0, 0, 1);
AttachAsteroid(0, 450, 0, 2);
AttachAsteroid(500, 450, 0, 4);
AttachAsteroid(250, 450, 0, 5);
asteroids_to_kill = 29;
}
stop();
Instance of Symbol 343 MovieClip "backgroundClip" in Frame 12
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * 5) + 1);
_root.globalBang = 0;
}
onClipEvent (enterFrame) {
if (_root.globalBang > 0) {
_root._x = (Math.random() - 0.5) * _root.globalBang;
_root._y = (Math.random() - 0.5) * _root.globalBang;
_root.globalBang = _root.globalBang - 1;
if (_root.globalBang < 0) {
_root._x = 0;
_root._y = 0;
}
}
}
Instance of Symbol 386 MovieClip "shuttle" in Frame 12
onClipEvent (load) {
Hitted = function (lifeDec) {
if (!playerhitted) {
playerhitted = true;
part.play();
if (!_root.mainFlag) {
_root.playerenergy = _root.playerenergy - lifeDec;
}
if (_root.playerenergy < 0) {
_root.playerenergy = 0;
}
_root.inGamePanel.energyClip.gotoAndStop(101 - _root.playerenergy);
if (_root.playerenergy == 0) {
i = 0;
while (i < 8) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("part_clip", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _x;
eval ("_root.part_clip" + rnd)._y = _y;
i++;
}
_root.globalBang = 12;
_root.attachMovie("blast", "blast", 70);
_root.blast._x = _x;
_root.blast._y = _y;
_root.gotoAndPlay(14);
}
if (((_root.playerenergy < 50) && (Math.random() < 0.1)) && (weaponType > 1)) {
_root.globalBang = 10;
weaponType = 1;
_root.inGamePanel.weapon_title.gotoAndStop(1);
_root.gameText.gotoAndPlay(214);
}
}
};
weaponType = 1;
_root.playerenergy = 100;
playerhitted = false;
rotate = 0;
speed = 0;
}
onClipEvent (enterFrame) {
jetflame._alpha = speed * 14;
_rotation = rotate;
rotate = rotate + rotaspeed;
if (Math.abs(rotaspeed) > 0.1) {
rotaspeed = rotaspeed * 0.9;
} else {
rotaspeed = 0;
}
dx = Math.sin((rotate * Math.PI) / 180) * speed;
dy = Math.cos((rotate * Math.PI) / 180) * speed;
_x = (_x + dx);
_y = (_y - dy);
if (_x < -30) {
_x = 530;
}
if (_x > 530) {
_x = -30;
}
if (_y < -30) {
_y = 480;
}
if (_y > 480) {
_y = -30;
}
if (Math.abs(speed) > 0.1) {
speed = speed * 0.995;
} else {
speed = 0;
}
if (Key.isDown(37)) {
rotaspeed = rotaspeed - 1;
}
if (Key.isDown(39)) {
rotaspeed = rotaspeed + 1;
}
if (Key.isDown(38) && (speed < 8)) {
speed = speed + 0.3;
}
if (Key.isDown(40) && (speed > 0)) {
speed = speed - 0.3;
}
if (Key.isDown(81)) {
if (((_root.quality_trigger._currentframe == 1) || (_root.quality_trigger._currentframe == 41)) || (_root.quality_trigger._currentframe == 81)) {
if ((_quality == "LOW") || (_quality == "MEDIUM")) {
_quality = "HIGH";
_root.quality_trigger.gotoAndPlay(42);
} else if (_quality == "HIGH") {
_quality = "BEST";
_root.quality_trigger.gotoAndPlay(82);
} else {
_quality = "LOW";
_root.quality_trigger.gotoAndPlay(2);
}
}
}
if (Key.isDown(77)) {
if ((_root.music_trigger._currentframe == 1) || (_root.music_trigger._currentframe == 41)) {
if (_root.music) {
_root.musicGame.stop();
_root.music = false;
_root.music_trigger.gotoAndPlay(42);
} else {
_root.musicGame.start(0, 10000);
_root.music = true;
_root.music_trigger.gotoAndPlay(2);
}
}
}
if ((Key.isDown(65) && (glow._currentframe == 1)) && (_root._currentframe == 12)) {
glow.play();
if (weaponType < 4) {
rnd = Math.floor((Math.random() * 5000) + 5000);
_root.attachMovie("shot", "shot" + rnd, rnd);
eval (("_root.shot" + rnd) + ".part").gotoAndStop(weaponType);
eval ("_root.shot" + rnd)._x = _x + (15 * Math.sin((_rotation / 180) * Math.PI));
eval ("_root.shot" + rnd)._y = _y - (15 * Math.cos((_rotation / 180) * Math.PI));
} else {
_root.blastSFX.start(0, 1);
i = 0;
while (i < 10) {
weaponType = 3;
_root.inGamePanel.weapon_title.gotoAndStop(3);
rnd = Math.floor((Math.random() * 5000) + 5000);
_root.attachMovie("supershot", "shot" + rnd, rnd);
eval ("_root.shot" + rnd)._x = _x;
eval ("_root.shot" + rnd)._y = _y;
i++;
}
}
}
}
Frame 13
stop();
Frame 14
if (score > bestScore) {
bestScore = score;
}
stop();
Instance of Symbol 402 MovieClip "gameText" in Frame 14
onClipEvent (load) {
gotoAndPlay (199);
}
Frame 15
gotoAndPlay (11);
Frame 16
if (score > bestScore) {
bestScore = score;
}
stop();
Instance of Symbol 3 MovieClip "part" in Symbol 4 MovieClip [part_clip] Frame 1
onClipEvent (load) {
scaleFactor = (Math.random() * 4) + 1;
rndFactor = (Math.random() * 30) + 40;
speed = scaleFactor + 1;
_parent._xscale = (4 - scaleFactor) * 25;
_parent._yscale = (4 - scaleFactor) * 25;
angle = (Math.random() * 2) * Math.PI;
dx = Math.cos(angle) * speed;
dy = Math.sin(angle) * speed;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + ((dx * _parent._alpha) / rndFactor);
_parent._y = _parent._y + ((dy * _parent._alpha) / rndFactor);
_parent._alpha = _parent._alpha - (scaleFactor + 1);
if (_parent._alpha < 0) {
_parent.removeMovieClip();
}
}
Instance of Symbol 43 MovieClip "part" in Symbol 44 MovieClip [asteroid] Frame 1
onClipEvent (load) {
Explode = function () {
energy = energy - 1;
if (energy > 0) {
hitSFX = new Sound(_parent);
hitSFX.attachSound("hit_short");
hitSFX.setPan((_parent._x - 250) / 2.5);
hitSFX.setVolume(35 + (Math.random() * 20));
hitSFX.start(0, 1);
}
if (energy == 0) {
if ((!_root.prizeON) && (Math.random() < 0.2)) {
_root.prizeON = true;
_root.attachMovie("prize", "prize", 5);
_root.prize._x = _parent._x;
_root.prize._y = _parent._y;
}
if (_parent.scaleFactor < 2) {
_root.AttachAsteroid(_parent._x, _parent._y, _parent.scaleFactor + 1, 1);
_root.AttachAsteroid(_parent._x, _parent._y, _parent.scaleFactor + 1, 1);
if ((_parent.scaleFactor == 1) && (Math.random() < 0.3)) {
_root.max_asteroids = _root.max_asteroids + 1;
_root.attachMovie("comet", "asteroid" + _root.max_asteroids, _root.max_asteroids + 10);
eval ("_root.asteroid" + _root.max_asteroids)._x = _parent._x;
eval ("_root.asteroid" + _root.max_asteroids)._y = _parent._y;
} else {
_root.AttachAsteroid(_parent._x, _parent._y, _parent.scaleFactor + 1, 1);
}
}
i = 0;
while (i < 8) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("part_clip", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _parent._x;
eval ("_root.part_clip" + rnd)._y = _parent._y;
i++;
}
_root.score = _root.score + 10;
_root.AsteroidKilled();
index = _parent._name.substring(8);
_root.attachMovie("blast", "blast" + index, 80 + index);
eval ("_root.blast" + index)._x = _parent._x;
eval ("_root.blast" + index)._y = _parent._y;
eval ("_root.blast" + index)._xscale = _parent._xscale;
eval ("_root.blast" + index)._yscale = _parent._yscale;
_parent.removeMovieClip();
} else {
i = 0;
while (i < 3) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("part_clip", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _parent._x;
eval ("_root.part_clip" + rnd)._y = _parent._y;
i++;
}
}
};
energy = 3 - _parent.scaleFactor;
speed = (_parent.scaleFactor + 1) + (Math.random() * 2);
_parent._xscale = (4 - _parent.scaleFactor) * 25;
_parent._yscale = (4 - _parent.scaleFactor) * 25;
angle = (Math.random() * 2) * Math.PI;
_rotation = (Math.random() * 360);
dx = Math.cos(angle) * speed;
dy = Math.sin(angle) * speed;
if (Math.abs(dx) < 0.1) {
dx = (Math.random() * 2) + 1;
}
if (Math.abs(dy) < 0.1) {
dy = (Math.random() * 2) + 1;
}
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + dx;
_parent._y = _parent._y + dy;
if (_parent.hotspot.hitTest(_root.shuttle._x, _root.shuttle._y, true)) {
_root.shuttle.Hitted((3 - _parent.scaleFactor) * 2);
}
if (_parent._x < -30) {
_parent._x = 530;
}
if (_parent._x > 530) {
_parent._x = -30;
}
if (_parent._y < -30) {
_parent._y = 480;
}
if (_parent._y > 480) {
_parent._y = -30;
}
}
Symbol 57 MovieClip [blast] Frame 1
blast = new Sound(this);
blast.attachSound("blast2");
blast.setPan((_x - 250) / 2.5);
blast.setVolume(90 + (Math.random() * 10));
blast.start(0, 1);
Symbol 57 MovieClip [blast] Frame 72
removeMovieClip(this);
Instance of Symbol 66 MovieClip "part" in Symbol 67 MovieClip [comet] Frame 1
onClipEvent (load) {
Explode = function () {
i = 0;
while (i < 8) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("part_clip", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _parent._x;
eval ("_root.part_clip" + rnd)._y = _parent._y;
i++;
}
_root.score = _root.score + 15;
_root.AsteroidKilled();
index = _parent._name.substring(8);
_root.attachMovie("blast", "blast" + index, 80 + index);
eval ("_root.blast" + index)._x = _parent._x;
eval ("_root.blast" + index)._y = _parent._y;
eval ("_root.blast" + index)._xscale = 36;
eval ("_root.blast" + index)._yscale = 36;
_parent.removeMovieClip();
};
speed = 12;
angle = (Math.random() * 2) * Math.PI;
_parent._rotation = ((angle * 180) / Math.PI) - 90;
dx = Math.cos(angle) * speed;
dy = Math.sin(angle) * speed;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + dx;
_parent._y = _parent._y + dy;
if (_parent.hotspot.hitTest(_root.shuttle._x, _root.shuttle._y, true)) {
_root.shuttle.Hitted(8);
}
if (_parent._x < -30) {
_parent._x = 530;
}
if (_parent._x > 530) {
_parent._x = -30;
}
if (_parent._y < -30) {
_parent._y = 480;
}
if (_parent._y > 480) {
_parent._y = -30;
}
}
Instance of Symbol 100 MovieClip "part" in Symbol 101 MovieClip [crystal] Frame 1
onClipEvent (load) {
Explode = function () {
energy = energy - 1;
if (energy > 0) {
hitSFX = new Sound(_parent);
hitSFX.attachSound("hit_short");
hitSFX.setPan((_parent._x - 250) / 2.5);
hitSFX.setVolume(35 + (Math.random() * 20));
hitSFX.start(0, 1);
}
if (energy < 0) {
i = 0;
while (i < 8) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("crystal_part_clip", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _parent._x;
eval ("_root.part_clip" + rnd)._y = _parent._y;
i++;
}
_root.globalBang = 12;
_root.attachMovie("blast", "blast_2", 72);
_root.blast_2._x = _parent._x;
_root.blast_2._y = _parent._y;
_root.score = _root.score + 30;
_root.AsteroidKilled();
_parent.removeMovieClip();
} else {
i = 0;
while (i < 2) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("crystal_part_clip", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _parent._x;
eval ("_root.part_clip" + rnd)._y = _parent._y;
i++;
}
}
};
energy = 15;
speed = 1 + (Math.random() * 0.3);
angle = (Math.random() * 2) * Math.PI;
_parent._rotation = Math.random() * 360;
dx = Math.cos(angle) * speed;
dy = Math.sin(angle) * speed;
if (Math.abs(dx) < 0.1) {
dx = (Math.random() * 2) + 1;
}
if (Math.abs(dy) < 0.1) {
dy = (Math.random() * 2) + 1;
}
}
onClipEvent (enterFrame) {
if (_parent.hotspot.hitTest(_root.shuttle._x, _root.shuttle._y, true)) {
_root.shuttle.Hitted(12);
}
_parent._xscale = (energy * 3) + 55;
_parent._yscale = (energy * 3) + 55;
if (energy < 15) {
energy = energy + 0.01;
}
_parent._x = _parent._x + dx;
_parent._y = _parent._y + dy;
if (_parent._x < -30) {
_parent._x = 530;
}
if (_parent._x > 530) {
_parent._x = -30;
}
if (_parent._y < -30) {
_parent._y = 480;
}
if (_parent._y > 480) {
_parent._y = -30;
}
}
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip [crystal_part_clip] Frame 1
onClipEvent (load) {
gotoAndStop(Math.floor(Math.random() * 3) + 1);
scaleFactor = (Math.random() * 4) + 1;
rndFactor = (Math.random() * 30) + 40;
speed = scaleFactor + 1;
_parent._xscale = (4 - scaleFactor) * 25;
_parent._yscale = (4 - scaleFactor) * 25;
angle = (Math.random() * 2) * Math.PI;
dx = Math.cos(angle) * speed;
dy = Math.sin(angle) * speed;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + ((dx * _parent._alpha) / rndFactor);
_parent._y = _parent._y + ((dy * _parent._alpha) / rndFactor);
_parent._alpha = _parent._alpha - (scaleFactor + 1);
if (_parent._alpha < 0) {
_parent.removeMovieClip();
}
}
Instance of Symbol 137 MovieClip "part" in Symbol 138 MovieClip [meta] Frame 1
onClipEvent (load) {
meta = true;
Explode = function () {
energy = energy - 1;
if (energy < 0) {
i = 0;
while (i < 8) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("meta_small", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _parent._x;
eval ("_root.part_clip" + rnd)._y = _parent._y;
i++;
}
_root.globalBang = 12;
_root.attachMovie("blast", "blast_2", 72);
_root.blast_2._x = _parent._x;
_root.blast_2._y = _parent._y;
_root.score = _root.score + 20;
_root.AsteroidKilled();
_parent.removeMovieClip();
} else {
i = 0;
while (i < 3) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("meta_small", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _parent._x;
eval ("_root.part_clip" + rnd)._y = _parent._y;
i++;
}
}
};
energy = 10;
speed = 1 + (Math.random() * 0.1);
angle = (Math.random() * 2) * Math.PI;
_parent._rotation = Math.random() * 360;
dx = Math.cos(angle) * speed;
dy = Math.sin(angle) * speed;
if (Math.abs(dx) < 0.1) {
dx = (Math.random() * 2) + 1;
}
if (Math.abs(dy) < 0.1) {
dy = (Math.random() * 2) + 1;
}
dr = Math.random() - 0.5;
}
onClipEvent (enterFrame) {
if (_parent.hotspot.hitTest(_root.shuttle._x, _root.shuttle._y, true)) {
_root.shuttle.Hitted(10);
}
_rotation = (_rotation + dr);
_parent._x = _parent._x + dx;
_parent._y = _parent._y + dy;
if (_parent._x < -30) {
_parent._x = 530;
}
if (_parent._x > 530) {
_parent._x = -30;
}
if (_parent._y < -30) {
_parent._y = 480;
}
if (_parent._y > 480) {
_parent._y = -30;
}
}
Symbol 205 MovieClip Frame 40
gotoAndPlay (1);
Symbol 205 MovieClip Frame 79
gotoAndPlay (41);
Instance of Symbol 205 MovieClip in Symbol 206 MovieClip [prize] Frame 1
onClipEvent (load) {
prizeType = Math.floor(Math.random() * 2);
if (prizeType == 1) {
gotoAndPlay (41);
}
speed = 2 + (Math.random() * 0.3);
angle = (Math.random() * 2) * Math.PI;
dx = Math.cos(angle) * speed;
dy = Math.sin(angle) * speed;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + dx;
_parent._y = _parent._y + dy;
if (_parent.hotspot.hitTest(_root.shuttle._x, _root.shuttle._y, true)) {
if (prizeType == 1) {
_root.gameText.gotoAndPlay(133);
_root.weaponSFX.start(0, 1);
if (_root.shuttle.weaponType < 4) {
_root.shuttle.weaponType = _root.shuttle.weaponType + 1;
_root.inGamePanel.weapon_title.gotoAndStop(_root.shuttle.weaponType);
}
}
if (prizeType == 0) {
_root.gameText.gotoAndPlay(67);
_root.energySFX.start(0, 1);
_root.playerenergy = _root.playerenergy + 12;
if (_root.playerenergy > 100) {
_root.playerenergy = 100;
}
_root.inGamePanel.energyClip.gotoAndStop(101 - _root.playerenergy);
}
_root.prizeON = false;
_parent.removeMovieClip();
}
if (_parent._x < -30) {
_parent._x = 530;
}
if (_parent._x > 530) {
_parent._x = -30;
}
if (_parent._y < -30) {
_parent._y = 480;
}
if (_parent._y > 480) {
_parent._y = -30;
}
}
Instance of Symbol 223 MovieClip "part" in Symbol 224 MovieClip [station] Frame 1
onClipEvent (load) {
Explode = function () {
energy = energy - 1;
if (energy > 0) {
hitSFX = new Sound(_parent);
hitSFX.attachSound("hit_short");
hitSFX.setPan((_parent._x - 250) / 2.5);
hitSFX.setVolume(35 + (Math.random() * 20));
hitSFX.start(0, 1);
}
if (energy < 0) {
i = 0;
while (i < 8) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("part_clip", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _parent._x;
eval ("_root.part_clip" + rnd)._y = _parent._y;
i++;
}
_root.globalBang = 12;
_root.attachMovie("blast", "blast_1", 71);
_root.blast_1._x = _parent._x;
_root.blast_1._y = _parent._y;
_root.score = _root.score + 20;
_root.AsteroidKilled();
_parent.removeMovieClip();
} else {
i = 0;
while (i < 3) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("part_clip", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _parent._x;
eval ("_root.part_clip" + rnd)._y = _parent._y;
i++;
}
}
};
energy = 8;
speed = 1 + (Math.random() * 0.3);
angle = (Math.random() * 2) * Math.PI;
_parent._rotation = Math.random() * 360;
dx = Math.cos(angle) * speed;
dy = Math.sin(angle) * speed;
if (Math.abs(dx) < 0.1) {
dx = (Math.random() * 2) + 1;
}
if (Math.abs(dy) < 0.1) {
dy = (Math.random() * 2) + 1;
}
dr = Math.random() - 0.5;
}
onClipEvent (enterFrame) {
if (_parent.hotspot.hitTest(_root.shuttle._x, _root.shuttle._y, true)) {
_root.shuttle.Hitted(10);
}
_rotation = (_rotation + dr);
_parent._x = _parent._x + dx;
_parent._y = _parent._y + dy;
if (_parent._x < -30) {
_parent._x = 530;
}
if (_parent._x > 530) {
_parent._x = -30;
}
if (_parent._y < -30) {
_parent._y = 480;
}
if (_parent._y > 480) {
_parent._y = -30;
}
}
Instance of Symbol 237 MovieClip "part" in Symbol 238 MovieClip [satellite] Frame 1
onClipEvent (load) {
Explode = function () {
energy = energy - 1;
if (energy > 0) {
hitSFX = new Sound(_parent);
hitSFX.attachSound("hit_short");
hitSFX.setPan((_parent._x - 250) / 2.5);
hitSFX.setVolume(35 + (Math.random() * 20));
hitSFX.start(0, 1);
}
if (energy < 0) {
i = 0;
while (i < 8) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("part_clip", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _parent._x;
eval ("_root.part_clip" + rnd)._y = _parent._y;
i++;
}
_root.globalBang = 12;
_root.attachMovie("blast", "blast_1", 71);
_root.blast_1._x = _parent._x;
_root.blast_1._y = _parent._y;
_root.score = _root.score + 20;
_root.AsteroidKilled();
_parent.removeMovieClip();
} else {
i = 0;
while (i < 3) {
rnd = Math.floor((Math.random() * 3000) + 2000);
_root.attachMovie("part_clip", "part_clip" + rnd, rnd);
eval ("_root.part_clip" + rnd)._x = _parent._x;
eval ("_root.part_clip" + rnd)._y = _parent._y;
i++;
}
}
};
energy = 10;
speed = 2 + (Math.random() * 0.3);
angle = (Math.random() * 2) * Math.PI;
_parent._rotation = Math.random() * 360;
dx = Math.cos(angle) * speed;
dy = Math.sin(angle) * speed;
if (Math.abs(dx) < 0.1) {
dx = (Math.random() * 2) + 1;
}
if (Math.abs(dy) < 0.1) {
dy = (Math.random() * 2) + 1;
}
dr = Math.random() - 0.5;
}
onClipEvent (enterFrame) {
if (_parent.hotspot.hitTest(_root.shuttle._x, _root.shuttle._y, true)) {
_root.shuttle.Hitted(10);
}
if (Math.random() < 0.005) {
dx = -dx;
}
if (Math.random() < 0.005) {
dy = -dy;
}
_rotation = (_rotation + dr);
_parent._x = _parent._x + dx;
_parent._y = _parent._y + dy;
if (_parent._x < -30) {
_parent._x = 530;
}
if (_parent._x > 530) {
_parent._x = -30;
}
if (_parent._y < -30) {
_parent._y = 480;
}
if (_parent._y > 480) {
_parent._y = -30;
}
}
Symbol 241 MovieClip [ion_flare] Frame 6
removeMovieClip(this);
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
stop();
Symbol 247 MovieClip Frame 3
stop();
Instance of Symbol 247 MovieClip "part" in Symbol 248 MovieClip [shot] Frame 1
onClipEvent (load) {
angle = _root.shuttle._rotation;
_rotation = angle;
xdec = 10 * Math.sin((angle / 180) * Math.PI);
ydec = 10 * Math.cos((angle / 180) * Math.PI);
if (_currentframe > 1) {
xdec = xdec * 1.4;
ydec = ydec * 1.4;
}
}
onClipEvent (enterFrame) {
if (_currentframe == 3) {
rnd = Math.floor((Math.random() * 5000) + 10000);
_root.attachMovie("ion_flare", "ion_flare" + rnd, rnd);
eval ("_root.ion_flare" + rnd)._x = (_parent._x + (Math.random() * 40)) - 20;
eval ("_root.ion_flare" + rnd)._y = (_parent._y + (Math.random() * 40)) - 10;
eval ("_root.ion_flare" + rnd)._rotation = Math.random() * 360;
}
i = 1;
while (i < (_root.max_asteroids + 1)) {
if (this.hitTest(eval ("_root.asteroid" + i)._x, eval ("_root.asteroid" + i)._y)) {
if (eval (("_root.asteroid" + i) + ".part").meta) {
_root.metaSFX.start(0, 1);
eval (("_root.asteroid" + i) + ".part").dx = eval (("_root.asteroid" + i) + ".part").dx + (xdec / 5);
eval (("_root.asteroid" + i) + ".part").dy = eval (("_root.asteroid" + i) + ".part").dy - (ydec / 5);
}
eval (("_root.asteroid" + i) + ".part").Explode();
removeMovieClip("_parent");
}
i++;
}
_parent._y = _parent._y - ydec;
_parent._x = _parent._x + xdec;
if ((((_parent._y < -30) || (_parent._y > 480)) || (_parent._x < -30)) || (_parent._x > 530)) {
removeMovieClip("_parent");
}
}
Instance of Symbol 250 MovieClip "part" in Symbol 251 MovieClip [supershot] Frame 1
onClipEvent (load) {
angle = Math.random() * 360;
xdec = 12 * Math.sin((angle / 180) * Math.PI);
ydec = 12 * Math.cos((angle / 180) * Math.PI);
}
onClipEvent (enterFrame) {
i = 1;
while (i < (_root.max_asteroids + 1)) {
if (this.hitTest(eval ("_root.asteroid" + i)._x, eval ("_root.asteroid" + i)._y)) {
if (eval (("_root.asteroid" + i) + ".part").meta) {
_root.metaSFX.start(0, 1);
eval (("_root.asteroid" + i) + ".part").dx = eval (("_root.asteroid" + i) + ".part").dx + (xdec / 5);
eval (("_root.asteroid" + i) + ".part").dy = eval (("_root.asteroid" + i) + ".part").dy - (ydec / 5);
}
eval (("_root.asteroid" + i) + ".part").Explode();
removeMovieClip("_parent");
}
i++;
}
_parent._y = _parent._y - ydec;
_parent._x = _parent._x + xdec;
if ((((_parent._y < -30) || (_parent._y > 480)) || (_parent._x < -30)) || (_parent._x > 530)) {
removeMovieClip("_parent");
}
}
Instance of Symbol 252 MovieClip in Symbol 253 MovieClip [meta_small] Frame 1
onClipEvent (load) {
scaleFactor = (Math.random() * 4) + 1;
rndFactor = (Math.random() * 30) + 40;
speed = scaleFactor + 1;
_parent._xscale = (4 - scaleFactor) * 25;
_parent._yscale = (4 - scaleFactor) * 25;
angle = (Math.random() * 2) * Math.PI;
dx = Math.cos(angle) * speed;
dy = Math.sin(angle) * speed;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + ((dx * _parent._alpha) / rndFactor);
_parent._y = _parent._y + ((dy * _parent._alpha) / rndFactor);
_parent._alpha = _parent._alpha - (scaleFactor + 1);
if (_parent._alpha < 0) {
_parent.removeMovieClip();
}
}
Symbol 271 MovieClip Frame 223
_root.gotoAndPlay(11);
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
stop();
Symbol 287 MovieClip Frame 3
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 2
stop();
Instance of Symbol 287 MovieClip "trigger_quality" in Symbol 292 MovieClip Frame 1
onClipEvent (load) {
if ((_quality == "LOW") || (_quality == "MEDIUM")) {
gotoAndStop (1);
}
if (_quality == "HIGH") {
gotoAndStop (2);
}
if (_quality == "BEST") {
gotoAndStop (3);
}
}
Instance of Symbol 291 MovieClip "trigger_music" in Symbol 292 MovieClip Frame 1
onClipEvent (load) {
if (!_root.music) {
gotoAndStop (2);
}
}
Symbol 312 Button
on (press) {
_root.musicTitle.stop();
if (_root.music) {
_root.musicGame.start(0, 10000);
}
_root.gotoAndPlay(12);
}
Symbol 314 Button
on (press) {
gotoAndStop (20);
}
Symbol 316 Button
on (press) {
getURL ("http://www.virtualtoy.nm.ru");
}
Symbol 318 Button
on (press) {
getURL ("http://www.arcadenut.com");
}
Symbol 320 Button
on (press) {
if ((_quality == "LOW") || (_quality == "MEDIUM")) {
_quality = "HIGH";
trigger_quality.gotoAndStop(2);
} else if (_quality == "HIGH") {
_quality = "BEST";
trigger_quality.gotoAndStop(3);
} else {
_quality = "LOW";
trigger_quality.gotoAndStop(1);
}
}
Symbol 322 Button
on (press) {
if (_root.music) {
_root.musicTitle.stop();
_root.music = false;
trigger_music.gotoAndStop(2);
} else {
_root.musicTitle.start(0, 10000);
_root.music = true;
trigger_music.gotoAndStop(1);
}
}
Symbol 329 Button
on (press) {
gotoAndStop (19);
}
Symbol 332 MovieClip Frame 19
stop();
Instance of Symbol 287 MovieClip "trigger_quality" in Symbol 332 MovieClip Frame 19
onClipEvent (load) {
if ((_quality == "LOW") || (_quality == "MEDIUM")) {
gotoAndStop (1);
}
if (_quality == "HIGH") {
gotoAndStop (2);
}
if (_quality == "BEST") {
gotoAndStop (3);
}
}
Instance of Symbol 291 MovieClip "trigger_music" in Symbol 332 MovieClip Frame 19
onClipEvent (load) {
if (!_root.music) {
gotoAndStop (2);
}
}
Symbol 332 MovieClip Frame 20
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 2
stop();
Symbol 358 MovieClip Frame 3
stop();
Symbol 358 MovieClip Frame 4
stop();
Instance of Symbol 348 MovieClip "energyClip" in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 2
play();
Symbol 366 MovieClip Frame 41
stop();
Symbol 366 MovieClip Frame 42
play();
Symbol 366 MovieClip Frame 81
stop();
Symbol 366 MovieClip Frame 82
play();
Symbol 369 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 2
play();
Symbol 369 MovieClip Frame 41
stop();
Symbol 369 MovieClip Frame 42
play();
Symbol 383 MovieClip Frame 1
_parent.playerhitted = false;
stop();
Symbol 385 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 1
stop();
Symbol 399 Button
on (press) {
_root.musicGame.stop();
_root.prize.removeMovieClip();
i = 0;
while (i < 50) {
eval ("_root.asteroid" + i).removeMovieClip();
i++;
}
_root.gotoAndStop(11);
}
Symbol 402 MovieClip Frame 66
stop();
Symbol 402 MovieClip Frame 132
stop();
Symbol 402 MovieClip Frame 198
stop();
Symbol 402 MovieClip Frame 213
stop();
Symbol 402 MovieClip Frame 279
stop();
Symbol 405 MovieClip Frame 110
_root.prize.removeMovieClip();
_root.prizeON = false;
_root.level = _root.level + 1;
_root.shuttle._x = 250;
_root.shuttle._y = 220;
_root.shuttle.speed = 0;
if (_root.level == 12) {
_root.gotoAndPlay(16);
}
_root.backgroundClip.gotoAndStop(Math.floor(Math.random() * 5) + 1);
_root.gotoAndPlay(12);
Symbol 408 Button
on (press) {
_root.musicGame.stop();
i = 0;
while (i < 50) {
eval ("_root.asteroid" + i).removeMovieClip();
i++;
}
_root.gotoAndStop(11);
}