Frame 1
if (SpeedSetup != 1) {
SpeedSetup = 1;
_root.SpeedFactor = 1;
}
if (MainShip._alpha < 100) {
MainShip._alpha++;
}
Frame 2
gotoAndPlay (1);
Frame 4
gotoAndPlay (3);
Symbol 2 MovieClip [Bullet] Frame 1
this._x = this._x + 30;
if ((this._x > 1300) || (this._x < 0)) {
this.removeMovieClip();
}
Symbol 4 MovieClip Frame 1
if (this.Run != 1) {
this.Run = 1;
this.index = random(40) + 20;
this.index = this.index / 10;
this._size = Math.pow((this.index * 0.1) + (this.index / 10), 2);
this._width = this._size;
this._height = this._size;
this._alpha = Math.abs(100 - ((1 / this._size) * 20));
this._vx = -5 - (this._width * _root.SpeedFactor);
this.Run = 1;
}
this._x = this._x + this._vx;
if (this._x < 0) {
this._x = 1680;
this._y = random(1050);
} else if (this._x > 1680) {
this._x = 0;
this._y = random(1050);
}
this._vx = -5 - (this._width * _root.SpeedFactor);
Symbol 6 MovieClip Frame 1
if (this.Run != 1) {
this.Run = 1;
this.index = random(7) + 3;
this._size = Math.pow((this.index * 0.1) + (this.index / 10), 2);
this._width = this._size;
this._height = this._size;
this._vx = -5 - (this._width * _root.SpeedFactor);
this.Run = 1;
}
this._x = this._x + this._vx;
if (this._x < 0) {
this._x = 1680;
this._y = random(1050);
} else if (this._x > 1680) {
this._x = 0;
this._y = random(1050);
}
this._vx = -5 - (this._width * _root.SpeedFactor);
Symbol 11 MovieClip Frame 1
with (this) {
if (Run != 1) {
Run = 1;
_alpha = 0;
upperBound = 100;
lowerBound = 900;
leftBound = 100;
rightBound = 800;
var Listener = new Object();
Key.addListener(Listener);
}
onEnterFrame = function () {
if ((Key.isDown(65) && (_x > leftBound)) && (_root.SpeedFactor >= 1)) {
_x = _x - 0.3;
_root.SpeedFactor = _root.SpeedFactor - 0.03;
}
if (Key.isDown(68) && (_x < rightBound)) {
_x = _x + 0.3;
_root.SpeedFactor = _root.SpeedFactor + 0.03;
}
if (_root.SpeedFactor < 1) {
_root.SpeedFactor = 1;
}
if (Key.isDown(87) && (_y > upperBound)) {
_y--;
}
if (Key.isDown(83) && (_y < lowerBound)) {
_y++;
}
};
}