Frame 1
stop();
Frame 3
numEnemy = 3;
i = 2;
while (numEnemy >= i) {
enemy1.duplicateMovieClip("enemy" + i, i + 100);
i++;
}
score = 0;
Instance of Symbol 61 MovieClip "mainGround" in Frame 3
onClipEvent (load) {
ground.duplicateMovieClip("ground2", 100);
ground2._x = ground._x + ground._width;
groundStartx = this._x;
groundSpeed = 10;
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - groundSpeed;
if ((groundStartx - ground._width) >= this._x) {
this._x = groundStartx - groundSpeed;
}
}
}
Instance of Symbol 75 MovieClip "fire" in Frame 3
onClipEvent (load) {
_root.fire._visible = false;
moveSpeed = 10;
laserCounter = 1;
scrollx = _root.mainGround.ground._width / 2;
scrollStart = false;
maxLasers = 4;
depthCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17) and (maxLasers >= laserCounter)) {
_root.fire._visible = true;
my_sound.loadSound("shoot.mp3", false);
var my_sound:Sound = new Sound();
my_sound.loadSound("shoot.mp3", true);
depthCounter++;
if (maxLasers < depthCounter) {
depthCounter = 1;
}
}
if (Key.isDown(39)) {
_root.bot._visible = false;
newlineAccessibility.updateProperties(this.fire);
if (Key.isDown(39)) {
if (this._x < scrollx) {
this._x = this._x + moveSpeed;
} else {
scrollStart = false;
}
}
} else if (Key.isDown(37)) {
this._x = this._x - moveSpeed;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 17) {
scrollStart = false;
_root.fire._visible = false;
}
}
Instance of Symbol 76 MovieClip "kay" in Frame 3
onClipEvent (load) {
_root.kay._visible = false;
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
scrollx = _root.mainGround.ground._width / 2;
scrollStart = false;
maxLasers = 4;
depthCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17) and (maxLasers >= laserCounter)) {
var my_sound:Sound = new Sound();
my_sound.loadSound("shoot.mp3", false);
var my_sound:Sound = new Sound();
my_sound.loadSound("shoot.mp3", true);
laserCounter++;
_root.laser.duplicateMovieClip("laser" + depthCounter, depthCounter);
_root["laser" + depthCounter]._visible = true;
depthCounter++;
if (maxLasers < depthCounter) {
depthCounter = 1;
}
}
if (Key.isDown(39)) {
_root.spaceship._visible = false;
newlineAccessibility.updateProperties(this.spaceship2);
if (Key.isDown(39)) {
load.kay._visible = true;
}
if (this._x < scrollx) {
this._x = this._x + moveSpeed;
} else {
scrollStart = false;
}
} else if (Key.isDown(37)) {
this._x = this._x - moveSpeed;
_root.spaceship._visible = false;
_root.spaceship2._visible = false;
_root.kay._visible = true;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 37) {
scrollStart = false;
_root.kay._visible = false;
_root.spaceship._visible = true;
}
}
Instance of Symbol 19 MovieClip "spaceship2" in Frame 3
onClipEvent (load) {
_root.spaceship._visible = false;
_root.spaceship2._visible = false;
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
scrollx = _root.mainGround.ground._width / 2;
scrollStart = false;
maxLasers = 4;
depthCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17) and (maxLasers >= laserCounter)) {
var my_sound:Sound = new Sound();
my_sound.loadSound("shoot.mp3", false);
var my_sound:Sound = new Sound();
my_sound.loadSound("shoot.mp3", true);
laserCounter++;
_root.laser.duplicateMovieClip("laser" + depthCounter, depthCounter);
_root["laser" + depthCounter]._visible = true;
depthCounter++;
if (maxLasers < depthCounter) {
depthCounter = 1;
}
}
if (Key.isDown(39)) {
_root.spaceship2._visible = false;
newlineAccessibility.updateProperties(this.spaceship);
if (Key.isDown(39)) {
_root.spaceship2._visible = true;
}
if (this._x < scrollx) {
this._x = this._x + moveSpeed;
} else {
scrollStart = true;
}
} else if (Key.isDown(37)) {
this._x = this._x - moveSpeed;
_root.spaceship2._visible = false;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 39) {
scrollStart = false;
_root.spaceship2._visible = false;
_root.spaceship._visible = true;
}
}
Instance of Symbol 90 MovieClip "spaceship" in Frame 3
onClipEvent (load) {
_root.spaceship._visible = true;
moveSpeed = 10;
_root.laser._visible = false;
_root.laser2._visible = false;
laserCounter = 1;
scrollx = _root.mainGround.ground._width / 2;
scrollStart = false;
maxLasers = 5;
depthCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(17) and (maxLasers >= laserCounter)) {
var my_sound:Sound = new Sound();
my_sound.loadSound("shoot.mp3", false);
var my_sound:Sound = new Sound();
my_sound.loadSound("shoot.mp3", true);
laserCounter++;
_root.laser.duplicateMovieClip("laser" + depthCounter, depthCounter);
_root["laser" + depthCounter]._visible = true;
_root.laser.duplicateMovieClip("laser2" + depthCounter, depthCounter);
_root["laser2" + depthCounter]._visible = true;
depthCounter++;
if (maxLasers < depthCounter) {
depthCounter = 1;
}
}
if (Key.isDown(39)) {
_root.spaceship._visible = false;
newlineAccessibility.updateProperties(this.spaceship2);
if (Key.isDown(39)) {
load.spaceship._visible = true;
}
if (this._x < scrollx) {
this._x = this._x + moveSpeed;
} else {
scrollStart = true;
}
} else if (Key.isDown(37)) {
this._x = this._x - moveSpeed;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 39) {
scrollStart = false;
_root.spaceship2._visible = false;
_root.spaceship2._visible = false;
}
}
Instance of Symbol 93 MovieClip "laser" in Frame 3
onClipEvent (load) {
laserMoveSpeed = 60;
this._x = _root.spaceship._x + 20;
this._y = _root.spaceship._y - 74;
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (1250 < this._x) {
_root.spaceship.laserCounter--;
this.removeMovieClip();
}
i = 1;
while (_root.numEnemy >= i) {
if (this.hitTest(_root["enemy" + i])) {
_root.score = _root.score + 100;
_root["enemy" + i].gotoAndPlay(2);
}
i++;
}
}
}
Instance of Symbol 112 MovieClip "enemy1" in Frame 3
onClipEvent (load) {
function reset() {
this._x = 700;
this._y = 262;
enemySpeed = random(2) + 3;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - enemySpeed;
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship)) {
_root.gotoAndStop("hit");
}
}
Frame 4
stop();
Frame 5
numEnemy = 3;
i = 2;
while (numEnemy >= i) {
enemy1.duplicateMovieClip("enemy" + i, i + 100);
i++;
}
score = 0;
Instance of Symbol 112 MovieClip "enemy1" in Frame 5
onClipEvent (load) {
function reset() {
this._x = 700;
this._y = 262;
enemySpeed = random(2) + 3;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - enemySpeed;
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship)) {
_root.gotoAndStop("hit+");
}
}
Frame 7
numEnemy = 3;
i = 2;
while (numEnemy >= i) {
enemy1.duplicateMovieClip("enemy" + i, i + 100);
i++;
}
score = 0;
Instance of Symbol 112 MovieClip "enemy1" in Frame 7
onClipEvent (load) {
function reset() {
this._x = 700;
this._y = 262;
enemySpeed = random(2) + 3;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - enemySpeed;
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship)) {
_root.gotoAndStop("gameOver");
}
}
Frame 9
stop();
Symbol 32 Button
on (release) {
gotoAndPlay (3);
}
Symbol 90 MovieClip Frame 1
Symbol 93 MovieClip Frame 1
stop();
if (Key.isDown(17) and (maxLasers >= laserCounter)) {
this.gotoAndStop(2);
var my_sound:Sound = new Sound();
my_sound.loadSound("shoot.mp3", true);
if (Key.getCode() == 17) {
}
}
Symbol 93 MovieClip Frame 5
stopAllSounds();
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 10
stop();
Symbol 121 Button
on (release) {
gotoAndPlay (1);
}