Combined Code
movieClip 24 death {
frame 1 {
_root.deathanim -= 1;
}
frame 19 {
this.removeMovieClip();
}
}
movieClip 32 {
frame 4 {
stop();
}
}
movieClip 33 Bullet {
frame 1 {
stop();
}
frame 1 {
this.onEnterFrame = function () {
i = 0;
while (i < _root.nrEnemies) {
if (this.hitTest(_root['Enemy' + i])) {
_root['Enemy' + i].reset();
_root.score += 1;
this.gotoAndPlay(2);
}
++i;
}
this._x += 30;
if (this._x > 650) {
this.removeMovieClip();
}
};
}
frame 2 {
this.onEnterFrame = function () {
_root.dark = false;
};
}
frame 20 {
this.onEnterFrame = function () {
_root.dark = true;
this.removeMovieClip();
};
}
}
// unknown tag 88 length 67
movieClip 36 GameOver {
}
movieClip 38 {
}
movieClip 39 {
}
movieClip 40 hurt {
frame 16 {
this.removeMovieClip();
}
}
movieClip 48 {
}
movieClip 49 Enemy {
frame 1 {
stop();
}
}
movieClip 62 Symbol 43 {
frame 48 {
removeMovieClip('');
}
}
frame 1 {
stop();
}
// unknown tag 88 length 62
button 72 {
on (release) {
gotoAndPlay(2);
}
}
button 75 {
on (release) {
gotoAndPlay(3977);
}
}
movieClip 85 {
}
movieClip 91 {
}
movieClip 93 {
}
movieClip 104 {
}
frame 471 {
gotoAndPlay(472);
}
movieClip 111 {
}
movieClip 114 {
}
movieClip 119 {
}
movieClip 121 {
}
movieClip 133 {
}
movieClip 137 {
}
movieClip 141 {
}
frame 880 {
gotoAndPlay(881);
}
movieClip 151 {
}
movieClip 152 {
}
movieClip 155 {
}
movieClip 158 {
}
movieClip 161 {
}
movieClip 163 {
}
movieClip 166 {
}
movieClip 210 {
}
movieClip 212 {
}
movieClip 323 {
}
movieClip 324 {
}
frame 2229 {
gotoAndPlay(2231);
}
movieClip 325 {
}
// unknown tag 88 length 62
frame 2831 {
stop();
}
movieClip 338 {
}
button 341 {
on (release) {
stopAllSounds();
gotoAndPlay(2832);
}
}
movieClip 349 {
}
movieClip 357 {
}
movieClip 360 {
}
movieClip 365 {
}
movieClip 368 {
}
movieClip 370 {
}
movieClip 371 {
}
frame 3976 {
gotoAndStop(3977);
}
frame 3977 {
stop();
}
frame 3977 {
var i = 0;
var dark = true;
var nrEnemies = 10;
var score = 0;
var lives = 9001;
var timer = 8;
i = 1;
while (i < nrEnemies) {
_root.Enemy0.duplicateMovieClip('Enemy' + i, _root.getNextHighestDepth());
++i;
}
i = 0;
while (i < _root.nrEnemies) {
if (this.hitTest(_root['Enemy' + i])) {
}
_root['Enemy' + i].reset();
this.removeMovieClip();
++i;
}
this.onEnterFrame = function () {
++timer;
if (Key.isDown(39)) {
if (Ship.hitTest(550, Ship._y, true)) {
Ship._x -= 15;
}
Ship._x += 10;
} else {
if (Key.isDown(37)) {
if (Ship.hitTest(-85, Ship._y, true)) {
Ship._x += 15;
}
Ship._x -= 10;
} else {
if (Key.isDown(38)) {
if (Ship.hitTest(Ship._x - 40, -100, true)) {
Ship._y += 10;
}
Ship._y -= 10;
} else {
if (Key.isDown(40)) {
if (Ship.hitTest(Ship._x - 40, 400, true)) {
Ship._y -= 10;
}
Ship._y += 10;
}
}
}
}
if (Key.isDown(32)) {
++i;
if (timer >= 4.2) {
_root.attachMovie('Bullet', 'Bullet' + i, _root.getNextHighestDepth());
_root['Bullet' + i]._x = Ship._x + 3;
_root['Bullet' + i]._y = Ship._y;
var v2 = new Sound();
v2.attachSound('shoot');
v2.start();
timer = 0;
}
}
};
}
movieClip 374 {
}
movieClip 379 {
}
movieClip 380 {
}
instance Ship of movieClip 380 {
onClipEvent (load) {
function reset() {
this._x = 100;
this._y = 150;
}
reset();
}
onClipEvent (load) {
removeMovieClip('');
}
onClipEvent (enterFrame) {
i = 0;
while (i < _root.nrEnemies) {
if (this.hitTest(_root['Enemy' + i])) {
_root.attachMovie('hurt', 'hurt', 100);
_root.hurt._x = 0;
_root.hurt._y = 0;
_root.lives -= 100;
if (_root.lives <= 0) {
stopAllSounds();
_root.attachMovie('GameOver', 'GameOver', 100);
_root.GameOver._x = 275;
_root.GameOver._y = 150;
this.swapDepths(10);
this.removeMovieClip();
}
reset();
k = 0;
while (k < _root.nrEnemies) {
_root['Enemy' + k].reset();
++k;
}
}
++i;
}
}
}
instance Enemy0 of movieClip 49 Enemy {
onClipEvent (load) {
function reset() {
var v2 = 12;
this._y = Math.random() * 300;
this._x = 550;
mySpeed = Math.ceil(Math.random() * 6) + 1;
}
reset();
}
onClipEvent (enterFrame) {
this._x -= mySpeed;
if (timer >= 12) {
var dir = Math.ceil(Math.random() * 2);
timer = '0';
}
++timer;
if (dir == 1) {
this._y -= 3;
} else {
if (dir == 2) {
this._y += 3;
}
}
if (this._x < -10) {
reset();
}
}
}