Frame 1
stop();
myMusic = new Sound(myMusicMc);
myMusic.attachSound("myMusic01");
myMusicVolume = 100;
myMusic.setVolume(myMusicVolume);
var musicpaused;
bernieThanks = new Sound(myMusicB);
bernieThanks.attachSound("myMusic02");
Instance of Symbol 6 MovieClip "mainStars" in Frame 1
onClipEvent (load) {
stars.duplicateMovieClip("stars2", 1000);
stars2._x = stars._x + stars._width;
starsStartx = this._x;
starsSpeed = 4;
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - starsSpeed;
if (this._x <= (starsStartx - stars._width)) {
this._x = starsStartx - starsSpeed;
}
}
}
Instance of Symbol 12 MovieClip "mainGround" in Frame 1
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 (this._x <= (groundStartx - ground._width)) {
this._x = groundStartx - groundSpeed;
}
}
}
Instance of Symbol 69 MovieClip "spaceship" in Frame 1
onClipEvent (load) {
idleSpeed = 5;
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
scrollx = _root.mainGround.ground._width - 100;
scrollStart = true;
depthCounter = 1;
}
onClipEvent (enterFrame) {
if ((Key.isDown(32) and (laserCounter <= _root.maxLasers)) and (_root.laserTime._currentframe <= 1)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser" + depthCounter, depthCounter);
_root["laser" + depthCounter]._visible = true;
depthCounter++;
_root.laserTime.play();
if (depthCounter > _root.maxLasers) {
depthCounter = 1;
}
}
if (Key.isDown(39)) {
if (this._x < scrollx) {
this._x = this._x + moveSpeed;
} else {
scrollStart = true;
}
} else if (Key.isDown(37)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(40)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(38)) {
this._y = this._y - moveSpeed;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 39) {
scrollStart = true;
}
}
Frame 2
var lifeCounter;
score = 0;
gameTime = 0;
maxLasers = 2;
numEnemy = 1;
melee.gotoAndStop(1);
lifeMC.gotoAndStop(1);
timerClip.play();
_root.bernieThanks.stop();
var musicpaused;
if (_root.musicpaused != 1) {
_root.myMusic.start(myMusicPosition, 3);
}
Instance of Symbol 6 MovieClip "mainStars" in Frame 2
onClipEvent (load) {
stars.duplicateMovieClip("stars2", 1000);
stars2._x = stars._x + stars._width;
starsStartx = this._x;
starsSpeed = 4;
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - starsSpeed;
if (this._x <= (starsStartx - stars._width)) {
this._x = starsStartx - starsSpeed;
}
}
}
Instance of Symbol 76 MovieClip "ceiling" in Frame 2
onClipEvent (enterFrame) {
if (_root.spaceship._y < 40) {
_root.spaceship._y = 40;
}
}
Instance of Symbol 76 MovieClip "ceiling" in Frame 2
onClipEvent (enterFrame) {
if (_root.spaceship._x < 0) {
_root.spaceship._x = 40;
}
}
Instance of Symbol 76 MovieClip "ceiling" in Frame 2
onClipEvent (enterFrame) {
if (_root.spaceship._y > 360) {
_root.spaceship._y = 360;
}
}
Instance of Symbol 12 MovieClip "mainGround" in Frame 2
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 (this._x <= (groundStartx - ground._width)) {
this._x = groundStartx - groundSpeed;
}
}
}
Instance of Symbol 69 MovieClip "spaceship" in Frame 2
onClipEvent (load) {
idleSpeed = 5;
moveSpeed = 10;
_root.laser._visible = false;
_root.laserCounter = 1;
scrollx = _root.mainGround.ground._width - 100;
scrollStart = true;
depthCounter = 1;
_root.lifeCounter = 0;
}
onClipEvent (enterFrame) {
if ((Key.isDown(32) and (_root.laserCounter <= _root.maxLasers)) and (_root.laserTime._currentframe == 1)) {
_root.laserCounter++;
_root.laser.duplicateMovieClip("laser" + depthCounter, depthCounter);
_root["laser" + depthCounter]._visible = true;
depthCounter++;
_root.laserTime.play();
if (depthCounter > _root.maxLasers) {
depthCounter = 1;
}
}
if (Key.isDown(39)) {
if (this._x < scrollx) {
this._x = this._x + moveSpeed;
} else {
scrollStart = true;
}
} else if (Key.isDown(37)) {
this._x = this._x - moveSpeed;
}
if (Key.isDown(40)) {
this._y = this._y + moveSpeed;
} else if (Key.isDown(38)) {
this._y = this._y - moveSpeed;
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 39) {
scrollStart = true;
}
}
Instance of Symbol 86 MovieClip "laser" in Frame 2
onClipEvent (load) {
laserMoveSpeed = 20;
this._x = _root.spaceship._x + 90;
this._y = _root.spaceship._y;
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
_root.laserCounter--;
this.removeMovieClip();
}
i = 1;
while (i <= _root.numEnemy) {
if (this.hitTest(_root["enemy" + i]) & (_root["enemy" + i]._currentframe == 1)) {
_root["enemy" + i].gotoAndPlay(2);
_root.laserCounter--;
_root.score++;
this.removeMovieClip();
}
i++;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root["cat" + i]) & (_root["cat" + i]._currentframe == 1)) {
_root["cat" + i].gotoAndPlay(2);
_root.laserCounter--;
_root.score++;
this.removeMovieClip();
}
i++;
}
if (this.hitTest(_root.muddy.launcher) & (_root.muddy._currentframe < 85)) {
_root.muddy.gotoAndPlay("death");
_root.laserCounter--;
_root.score++;
this.removeMovieClip();
}
}
}
Instance of Symbol 90 MovieClip "enemy1" in Frame 2
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(400);
enemySpeed = (random(4) + 1) + scoreGuage;
this.gotoAndStop(1);
}
scoreGuage = ((_root.score + _root.gameTime) / 2) / 15;
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.hitSpace) & (this._currentframe == 1)) {
_root.spaceship.gotoAndPlay(8);
this.gotoAndPlay(2);
_root.lifeMC.gotoAndStop(_root.lifeMC._currentframe + 1);
_root.bernieBadSounds.gotoAndPlay(random(4) + 1);
}
}
Instance of Symbol 92 MovieClip in Frame 2
onClipEvent (load) {
function reset() {
this._x = 4000;
this._y = random(350) + 25;
goodySpeed = random(4) + 1;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (goodySpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - goodySpeed;
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship) & (this._currentframe == 1)) {
this.gotoAndPlay(2);
_root.melee.gotoAndPlay(2);
_root.score = _root.score + 2;
_root.maxLasers = 8;
}
}
Instance of Symbol 95 MovieClip in Frame 2
onClipEvent (load) {
function reset() {
this._x = 5700;
this._y = random(350) + 25;
lifeSpeed = random(4) + 1;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (lifeSpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - lifeSpeed;
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship.hitSpace) & (this._currentframe == 1)) {
this.gotoAndPlay(2);
_root.lifeMC.gotoAndStop(_root.lifeMC._currentframe - 1);
_root.score = _root.score + 2;
}
}
Instance of Symbol 104 MovieClip "muddy" in Frame 2
onClipEvent (load) {
function reset() {
this._x = 1000 - scoreGuage;
this._y = random(250) + 75;
this.gotoAndPlay(1);
}
scoreGuage = _root.score / 100;
if (_root.score > 40) {
reset();
}
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - _root.mainGround.groundSpeed;
} else {
this._x = this._x - 0;
}
if (this._x < -10) {
reset();
}
i = 1;
while (i <= 4) {
if (this["mud" + i].hitTest(_root.spaceship.hitSpace) & (this._currentframe < 82)) {
_root.spaceship.gotoAndPlay(8);
this.gotoAndPlay("death");
_root.lifeMC.gotoAndStop(_root.lifeMC._currentframe + 1);
_root.bernieBadSounds.gotoAndPlay(random(4) + 1);
}
i++;
}
}
Instance of Symbol 108 MovieClip "cat2" in Frame 2
onClipEvent (load) {
function reset() {
this._y = -50;
this._x = random(620) + 400;
enemySpeed = random(2);
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.catAttack._currentframe > 30) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed);
this._y = this._y + 5;
} else {
this._x = this._x - enemySpeed;
this._y = this._y + 5;
}
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship.hitSpace) & (this._currentframe == 1)) {
_root.spaceship.gotoAndPlay(8);
this.gotoAndPlay(2);
_root.lifeMC.gotoAndStop(_root.lifeMC._currentframe + 1);
_root.bernieBadSounds.gotoAndPlay(random(4) + 1);
}
}
Instance of Symbol 112 MovieClip "cat1" in Frame 2
onClipEvent (load) {
function reset() {
this._y = -50;
this._x = random(620) + 400;
enemySpeed = 1;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.catAttack._currentframe > 30) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed);
this._y = this._y + 5;
} else {
this._x = this._x - enemySpeed;
this._y = this._y + 5;
}
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship.hitSpace) & (this._currentframe == 1)) {
_root.spaceship.gotoAndPlay(8);
this.gotoAndPlay(2);
_root.lifeMC.gotoAndStop(_root.lifeMC._currentframe + 1);
_root.bernieBadSounds.gotoAndPlay(random(4) + 1);
}
}
Instance of Symbol 116 MovieClip "cat3" in Frame 2
onClipEvent (load) {
function reset() {
this._y = -50;
this._x = random(620) + 400;
enemySpeed = random(2);
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.catAttack._currentframe > 30) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed);
this._y = this._y + 5;
} else {
this._x = this._x - enemySpeed;
this._y = this._y + 5;
}
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship.hitSpace) & (this._currentframe == 1)) {
_root.spaceship.gotoAndPlay(8);
this.gotoAndPlay(2);
_root.lifeMC.gotoAndStop(_root.lifeMC._currentframe + 1);
_root.bernieBadSounds.gotoAndPlay(random(4) + 1);
}
}
Instance of Symbol 38 MovieClip "cat4" in Frame 2
onClipEvent (load) {
function reset() {
this._y = -100;
this._x = random(700) + 400;
enemySpeed = -4;
this.gotoAndStop(1);
}
reset();
}
onClipEvent (enterFrame) {
if (_root.catAttack._currentframe > 30) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed);
this._y = this._y + 5;
} else {
this._x = this._x - enemySpeed;
this._y = this._y + 5;
}
}
if (this._x < -10) {
reset();
}
if (this.hitTest(_root.spaceship.hitSpace) & (this._currentframe == 1)) {
_root.spaceship.gotoAndPlay(8);
this.gotoAndPlay(2);
_root.lifeMC.gotoAndStop(_root.lifeMC._currentframe + 1);
_root.bernieBadSounds.gotoAndPlay(random(4) + 1);
}
}
Frame 3
stop();
Frame 4
_root.gameTime.gotoAndStop(1);
_root.catAttack.gotoAndStop(1);
i = 1;
while (i <= _root.numEnemy) {
_root["enemy" + i].removeMovieClip();
i++;
}
finalScore = _root.score + _root.gameTime;
timerClip.stop();
_root.myMusic.stop();
_root.bernieThanks.start(myMusicPosition, 0);
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 7
stop();
Symbol 50 Button
on (release) {
_root.gotoAndPlay(2);
}
Symbol 64 MovieClip Frame 1
function traceHydrogen() {
if (_root.lifeMC.upOrDown < _root.lifeMC._currentframe) {
_root.lifeMC.bernieBadSounds.gotoAndPlay(_root.lifeMC._currentframe);
}
_root.lifeMC.upOrDown = this._currentframe;
}
var upOrDown;
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 3
stop();
Symbol 64 MovieClip Frame 4
stop();
Symbol 64 MovieClip Frame 5
_root.gotoAndStop("gameOver");
Symbol 66 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 6
this.gotoAndPlay(1);
Symbol 69 MovieClip Frame 49
this.gotoAndPlay(1);
Symbol 83 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 1
badguy.gotoAndStop(random(2) + 1);
stop();
Symbol 90 MovieClip Frame 6
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 104 MovieClip Frame 84
gotoAndPlay (2);
Symbol 104 MovieClip Frame 94
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 6
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 6
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 6
stop();
Symbol 121 MovieClip Frame 1
workingNumber = Math.round(_root.score / 10);
if ((workingNumber > _root.numEnemy) & (_root.numEnemy < 12)) {
_root.numEnemy++;
_root.enemy1.duplicateMovieClip("enemy" + _root.numEnemy, 100 + _root.numEnemy);
}
if ((((((((_root.gameTime == 35) || (_root.gameTime == 80)) || (_root.gameTime == 110)) || (_root.gameTime == 130)) || (_root.gameTime == 160)) || (_root.gameTime == 240)) || (_root.gameTime == 300)) & (_root.catAttack._currentframe < 2)) {
_root.catAttack.gotoAndPlay(2);
}
Symbol 124 MovieClip Frame 1
_root.laserCounter = 0;
_root.maxLasers = 2;
stop();
Symbol 124 MovieClip Frame 166
_root.maxLasers = 2;
this.gotoAndStop(1);
Symbol 127 MovieClip Frame 25
_root.gameTime = _root.gameTime + 1;
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
_root.catAttackPre.gotoAndPlay(2);
Symbol 133 MovieClip Frame 30
_root.catAttackPre.gotoAndStop(1);
Symbol 133 MovieClip Frame 320
i = 1;
while (i <= 4) {
_root["cat" + i]._y = -50;
_root["cat" + i].gotoAndPlay(2);
i++;
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
stop();
Symbol 145 MovieClip Frame 3
stop();
Symbol 145 MovieClip Frame 4
stop();
Symbol 145 MovieClip Frame 5
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 152 Button
on (press) {
if (pause != true) {
_root.musicpaused = 1;
playing = false;
paused = true;
stopped = false;
myConditionText = "Paused";
myMusicPosition = _root.myMusic.position / 1000;
_root.myMusic.stop("myMusic01");
}
}
Symbol 155 Button
on (press) {
if (playing != true) {
playing = true;
paused = false;
stopped = false;
myConditionText = "Playing";
_root.myMusic.start(myMusicPosition, 0);
}
_root.myMusic.onSoundComplete = function () {
_root.myCondition.textColor = 65280;
myConditionText = "Completed";
};
}
Symbol 165 Button
on (release) {
var my_lv = new LoadVars();
my_lv.playerScore = finalScore;
my_lv.playerEmail = finalEmail;
my_lv.playerInitials = finalInitials;
my_lv.playerID = random(100000);
my_lv.send("submitScore2.php", "_blank", "POST");
_root.registerBtn._y = 999999 /* 0x0F423F */;
_root.submitX.gotoAndStop(2);
_root.reg._y = 999999 /* 0x0F423F */;
}
Symbol 174 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
stop();
Symbol 176 Button
on (release) {
gotoAndPlay (2);
}