Frame 78
objTime = new Date();
varStartSeconds = objTime.getSeconds();
varStartMinutes = objTime.getMinutes();
varStartHours = objTime.getHours();
varStartDays = objTime.getDay();
Frame 79
objNewTime = new Date();
varBytes = _root.getBytesLoaded();
varKbytes = Math.round((_root.getBytesLoaded() / 1024) * 100) / 100;
varTotalBytes = Math.round((_root.getBytesTotal() / 1024) * 100) / 100;
if (1024 < varBytes) {
txtBytes = ((varKbytes add " Kbytes of ") add varTotalBytes) add " Kbytes";
} else {
txtBytes = ((varBytes add " Bytes of ") add varTotalBytes) add " Kbytes";
}
txtPercentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) add "%";
varElapsedSeconds = objNewTime.getSeconds() - varStartSeconds;
varElapsedMinutes = objNewTime.getMinutes() - varStartMinutes;
varElapsedHours = objNewTime.getHours() - varStartHours;
varElapsedDays = objNewTime.getDay() - varStartDays;
varElapsedTime = (((((varElapsedDays * 24) * 60) * 60) + ((varElapsedHours * 60) * 60)) + (varElapsedMinutes * 60)) + varElapsedSeconds;
if (1 < varElapsedTime) {
txtElapsed = varElapsedTime add " Seconds";
} else {
txtElapsed = varElapsedTime add " Second";
}
varSpeed = Math.round(((_root.getBytesLoaded() / varElapsedTime) / 1024) * 10) / 10;
txtSpeed = varSpeed add " Kbytes/Second";
varRemaining = Math.round((_root.getBytesTotal() - _root.getBytesLoaded()) / (varSpeed * 1024));
if (1 < varRemaining) {
txtRemaining = varRemaining add " Seconds";
} else {
txtRemaining = varRemaining add " Second";
}
varMove = Math.Round((_root.getBytesLoaded() / _root.getBytesTotal()) * 458.8);
setProperty("_root.mcLoad", _x , -59.4 + varMove);
Frame 80
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay (81);
} else {
gotoAndPlay (79);
}
Frame 81
stopAllSounds();
Frame 82
screen_left = 20;
screen_right = 530;
screen_top = 20;
screen_bottom = 380;
speed = 10;
skill = 0.04;
accel = 20;
score = 0;
level = 1;
fired = false;
shipdead = false;
shipHeight = 40;
stop();
Frame 90
if ((level * 200) < score) {
skill = skill * 2;
accel = accel / 1.5;
level = ++level;
}
if (shipdead == false) {
gotoAndPlay (85);
}
Frame 214
gotoAndPlay (81);
Symbol 5 MovieClip Frame 1
speed = (Math.random() * 20) + 1;
this._alpha = speed * 5;
this._x = Math.random() * (_parent.screen_right - _parent.screen_left);
this._y = 0;
Symbol 5 MovieClip Frame 2
this._y = this._y + speed;
Symbol 5 MovieClip Frame 3
if (this._y < _parent.screen_bottom) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
Symbol 38 Button
on (release) {
play();
}
Symbol 49 MovieClip Frame 1
speed = random(10) + 1;
accel = 0.95;
y = 0;
size = 1;
debris._x = starx;
debris._alpha = speed * 10;
debris._xscale = size;
debris._yscale = size;
this._rotation = random(180) - 90;
Symbol 49 MovieClip Frame 2
y = y - speed;
size = int(y / 3);
speed = speed * accel;
debris._y = y;
debris._xscale = size;
debris._yscale = size;
Symbol 49 MovieClip Frame 3
if (1 < speed) {
gotoAndPlay (2);
} else {
gotoAndStop (4);
}
Symbol 50 MovieClip Frame 1
counter = 100;
while (0 < counter) {
duplicateMovieClip ("debris", "debris" + counter, counter);
counter = --counter;
}
stop();
Symbol 52 MovieClip Frame 1
left_arrow = 37;
right_arrow = 39;
space = 32;
shipx = (_parent.screen_right - _parent.screen_left) / 2;
shipy = _parent.screen_bottom;
this._x = shipx;
this._y = shipy;
Symbol 52 MovieClip Frame 2
if (Key.isDown(left_arrow) && (_parent.screen_left < shipx)) {
shipx = shipx - _parent.speed;
}
if (Key.isDown(right_arrow) && (shipx < _parent.screen_right)) {
shipx = shipx + _parent.speed;
}
if (Key.isDown(space) && (_parent.fired == false)) {
_parent.fired = true;
_parent.bullet.bulletX = shipX;
}
this._x = shipx;
Symbol 52 MovieClip Frame 3
if (_parent.shipdead) {
gotoAndPlay (12);
} else {
gotoAndPlay (2);
}
Symbol 52 MovieClip Frame 76
_parent.shipdead = true;
stop();
Symbol 55 MovieClip Frame 1
speed = 30;
y = 0;
debris._x = starx;
this._rotation = random(360);
Symbol 55 MovieClip Frame 2
y = y + speed;
debris._y = y;
Symbol 55 MovieClip Frame 3
if (y < 250) {
gotoAndPlay (2);
} else {
gotoAndStop (4);
}
Symbol 56 MovieClip Frame 1
counter = 10;
while (0 < counter) {
duplicateMovieClip ("debris", "debris" + counter, counter);
counter = --counter;
}
stop();
Symbol 59 MovieClip Frame 1
alienX = this._x;
alienY = this._y;
startX = alienX;
startY = alienY;
alienAdvance = 4;
Symbol 59 MovieClip Frame 2
if (_parent.skill < Math.random()) {
targetX = Math.random() * (_parent.screen_right - _parent.screen_left);
targetY = _parent.screen.top + (Math.random() * (_parent.screen_bottom / alienAdvance));
} else {
targetX = _parent.ship._x + ((Math.random() * 100) - 50);
targetY = _parent.ship._y - 5;
}
if (_parent.screen_bottom < targetY) {
targetY = _parent.screen_bottom + 10;
}
Symbol 59 MovieClip Frame 3
distX = targetX - alienX;
distY = targetY - alienY;
alienX = Math.round(alienX + (distX / _parent.accel));
alienY = Math.round(alienY + (distY / _parent.accel));
if (_parent.screen_bottom < alienY) {
gotoAndStop (5);
}
if ((distX < 10) && (distY < 10)) {
alienAdvance = alienAdvance - 0.05;
gotoAndPlay (2);
}
this._x = alienX;
this._y = alienY;
if (this.hitTest(_parent.bullet)) {
_parent.fired = false;
gotoAndPlay (6);
}
if (this.hitTest(_parent.ship)) {
_parent.shipdead = true;
}
Symbol 59 MovieClip Frame 4
gotoAndPlay (3);
Symbol 59 MovieClip Frame 5
this._y = _parent.screen_bottom;
stop();
Symbol 59 MovieClip Frame 6
_parent.score = _parent.score + (_parent.level * 10);
alienAdvance = 4;
Symbol 59 MovieClip Frame 100
alienX = startX;
alienY = startY;
this._x = startX;
this._y = startY;
alienAdvance = 4;
gotoAndPlay (2);
Symbol 60 MovieClip Frame 1
alienX = this._x;
alienY = this._y;
startX = alienX;
startY = alienY;
alienAdvance = 4;
Symbol 60 MovieClip Frame 2
if (_parent.skill < Math.random()) {
targetX = Math.random() * (_parent.screen_right - _parent.screen_left);
targetY = _parent.screen.top + (Math.random() * (_parent.screen_bottom / alienAdvance));
} else {
targetX = _parent.ship._x + ((Math.random() * 100) - 50);
targetY = _parent.ship._y - 5;
}
if (_parent.screen_bottom < targetY) {
targetY = _parent.screen_bottom + 10;
}
Symbol 60 MovieClip Frame 3
distX = targetX - alienX;
distY = targetY - alienY;
alienX = Math.round(alienX + (distX / _parent.accel));
alienY = Math.round(alienY + (distY / _parent.accel));
if (_parent.screen_bottom < alienY) {
gotoAndStop (5);
}
if ((distX < 10) && (distY < 10)) {
alienAdvance = alienAdvance - 0.05;
gotoAndPlay (2);
}
this._x = alienX;
this._y = alienY;
if (this.hitTest(_parent.bullet)) {
_parent.fired = false;
gotoAndPlay (6);
}
if (this.hitTest(_parent.ship)) {
_parent.shipdead = true;
}
Symbol 60 MovieClip Frame 4
gotoAndPlay (3);
Symbol 60 MovieClip Frame 5
this._y = _parent.screen_bottom;
stop();
Symbol 60 MovieClip Frame 6
_parent.score = _parent.score + (_parent.level * 10);
alienAdvance = 4;
Symbol 60 MovieClip Frame 100
alienX = startX;
alienY = startY;
this._x = startX;
this._y = startY;
alienAdvance = 4;
gotoAndPlay (2);
Symbol 62 MovieClip Frame 2
if (_parent.fired == false) {
gotoAndPlay (1);
}
Symbol 62 MovieClip Frame 3
bulletY = _parent.screen_bottom - _parent.shipHeight;
this._y = bulletY;
this._x = bulletX;
Symbol 62 MovieClip Frame 4
bulletY = bulletY - (_parent.speed * 5);
this._y = bulletY;
Symbol 62 MovieClip Frame 5
if ((bulletY < _parent.screen_top) || (_parent.fired == false)) {
_parent.fired = false;
gotoAndPlay (1);
} else {
gotoAndPlay (4);
}