Frame 2
percent = Math.floor((getBytesLoaded() / getBytesTotal()) * 100);
myOutput.text = percent + "%";
Frame 3
if (percent == 100) {
gotoAndPlay ("loaded");
} else {
gotoAndPlay (2);
}
Frame 5
stop();
Frame 10
gotoAndStop (16);
Frame 15
gotoAndPlay ("title");
Frame 16
play();
Frame 25
stop();
Frame 35
gotoAndPlay ("start");
Frame 36
play();
Frame 45
stop();
Frame 46
play();
Frame 55
stop();
Frame 56
play();
Instance of Symbol 99 MovieClip "playcontrol" in Frame 56
onClipEvent (mouseDown) {
this.isDown = true;
}
onClipEvent (mouseUp) {
this.isDown = false;
}
onClipEvent (enterFrame) {
if (this.isDown) {
_root.gotoAndPlay("play");
}
}
Instance of Symbol 102 MovieClip "mainGround" in Frame 56
onClipEvent (enterFrame) {
if (_root.plane.hitTest(_root.mainGround)) {
_root.plane.gotoAndPlay("planeexplode");
}
}
Frame 57
stop();
_root.bird.removeMovieClip();
_root.bird1.removeMovieClip();
_root.bird2.removeMovieClip();
_root.bird3.removeMovieClip();
_root.bird4.removeMovieClip();
_root.bird5.removeMovieClip();
_root.bird6.removeMovieClip();
_root.bird7.removeMovieClip();
_root.bird8.removeMovieClip();
_root.bird9.removeMovieClip();
_root.bird10.removeMovieClip();
_root.bird11.removeMovieClip();
Frame 58
score = 0;
numBird = 1;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
_root.lvltitle.play;
Instance of Symbol 94 MovieClip "mainSky" in Frame 58
onClipEvent (load) {
sky.duplicateMovieClip("sky2", 100);
sky2._x = sky._x + sky._width;
skyStartx = this._x;
skySpeed = 2;
}
onClipEvent (enterFrame) {
this._x = this._x - skySpeed;
if (this._x <= (skyStartx - sky._width)) {
this._x = skyStartx - skySpeed;
}
if (_root.plane.hitTest(_root.mainSky.sky.lightning)) {
skySpeed = 0;
} else {
skySpeed = 2;
}
if (_root.plane.hitTest(_root.mainSky.sky.cloudsmc)) {
skySpeed = 0;
} else {
skySpeed = 2;
}
}
Instance of Symbol 102 MovieClip "mainGround" in Frame 58
onClipEvent (load) {
ground.duplicateMovieClip("ground2", 100);
ground2._x = ground._x + ground._width;
groundStartx = this._x;
groundSpeed = 8;
}
onClipEvent (enterFrame) {
this._x = this._x - groundSpeed;
if (this._x <= (groundStartx - ground._width)) {
this._x = groundStartx - groundSpeed;
}
if (_root.plane.hitTest(_root.mainGround)) {
groundSpeed = 0;
} else {
groundSpeed = 8;
}
}
Instance of Symbol 123 MovieClip "powerupmc" in Frame 58
onClipEvent (enterFrame) {
if (_root.plane.planemc.normalplanemc.hitTest(_root.powerupmc)) {
_root.powerupmc.unload;
_root.plane.planemc.gotoAndPlay("planeinvincible");
_root.powerupmc.gotoAndStop("off");
}
}
Instance of Symbol 125 MovieClip "laser" in Frame 58
onClipEvent (load) {
laserMoveSpeed = 20;
this._y = _root.plane._y;
this._x = _root.plane._x + 35;
}
onClipEvent (enterFrame) {
if (this._name != "laser") {
this._x = this._x + laserMoveSpeed;
if (this._x > 600) {
_root.spaceship.laserCounter--;
this.removeMovieClip();
}
}
}
Instance of Symbol 158 MovieClip "plane" in Frame 58
onClipEvent (load) {
gravity = 0;
_root.laser._visible = false;
laserCounter = 2;
maxLasers = 4;
depthCounter = 1;
}
onClipEvent (mouseDown) {
this.isDown = true;
}
onClipEvent (mouseUp) {
this.isDown = false;
}
onClipEvent (enterFrame) {
if (this.isDown) {
gravity--;
this._y = this._y + gravity;
} else {
gravity++;
this._y = this._y + gravity;
}
if (_root.mainGround.hitTest(_root.plane.planemc.normalplanemc)) {
_root.gotoAndStop("crashground");
}
if (_root.mainSky.sky.lightning.hitTest(_root.plane.planemc.normalplanemc)) {
_root.gotoAndStop("crashsky");
}
if (_root.mainSky.sky.cloudsmc.hitTest(_root.plane.planemc.normalplanemc)) {
_root.gotoAndStop("crashsky");
}
if (_root.mainGround.hitTest(_root.plane.planemc.planeglow)) {
_root.gotoAndStop("crashground");
}
if (_root.mainSky.sky.lightning.hitTest(_root.plane.planemc.planeglow)) {
_root.gotoAndStop("crashsky");
}
if (_root.mainSky.sky.cloudsmc.hitTest(_root.plane.planemc.planeglow)) {
_root.gotoAndStop("crashsky");
}
if (Key.isDown(32) and (laserCounter <= maxLasers)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser" + depthCounter, depthCounter);
_root["laser" + depthCounter]._visible = true;
depthCounter++;
if (depthCounter > maxLasers) {
depthCounter = 1;
}
}
}
Instance of Symbol 171 MovieClip "bird" in Frame 58
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(200) + 100;
birdSpeed = 9;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.plane.scrollStart) {
this._x = this._x - (birdSpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - birdSpeed;
}
if (this._x < -10) {
gotoAndStop ("birdflying");
reset();
}
}
onClipEvent (enterFrame) {
if (_root.plane.planemc.normalplanemc.hitTest(this)) {
_root.plane.gotoAndPlay("birdcrash");
}
if (_root.plane.planemc.planeglow.hitTest(this)) {
this.gotoAndPlay("birdsplatter");
}
}
Frame 59
stop();
Frame 60
numBird = 2;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
_root.lvltitle.gotoAndPlay("lvl2");
Instance of Symbol 171 MovieClip "bird" in Frame 60
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(200) + 100;
birdSpeed = random(12) + 9;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.plane.scrollStart) {
this._x = this._x - (birdSpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - birdSpeed;
}
if (this._x < -10) {
gotoAndStop ("birdflying");
reset();
}
}
onClipEvent (enterFrame) {
if (_root.plane.planemc.normalplanemc.hitTest(this)) {
_root.plane.gotoAndPlay("birdcrash");
}
if (_root.plane.planemc.planeglow.hitTest(this)) {
this.gotoAndPlay("birdsplatter");
}
}
Frame 61
stop();
Frame 62
numBird = 2;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
_root.lvltitle.gotoAndPlay("lvl3");
Instance of Symbol 171 MovieClip "bird" in Frame 62
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(200) + 100;
birdSpeed = random(13) + 9;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.plane.scrollStart) {
this._x = this._x - (birdSpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - birdSpeed;
}
if (this._x < -10) {
gotoAndStop ("birdflying");
reset();
}
}
onClipEvent (enterFrame) {
if (_root.plane.planemc.normalplanemc.hitTest(this)) {
_root.plane.gotoAndPlay("birdcrash");
}
if (_root.plane.planemc.planeglow.hitTest(this)) {
this.gotoAndPlay("birdsplatter");
}
}
Frame 63
stop();
Frame 64
numBird = 3;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
_root.powerupmc.gotoAndPlay("scroll");
_root.lvltitle.gotoAndPlay("lvl4");
Instance of Symbol 171 MovieClip "bird" in Frame 64
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(200) + 100;
birdSpeed = random(14) + 9;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.plane.scrollStart) {
this._x = this._x - (birdSpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - birdSpeed;
}
if (this._x < -10) {
gotoAndStop ("birdflying");
reset();
}
}
onClipEvent (enterFrame) {
if (_root.plane.planemc.normalplanemc.hitTest(this)) {
_root.plane.gotoAndPlay("birdcrash");
}
if (_root.plane.planemc.planeglow.hitTest(this)) {
this.gotoAndPlay("birdsplatter");
}
}
Frame 65
stop();
Frame 66
numBird = 3;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
_root.lvltitle.gotoAndPlay("lvl5");
Instance of Symbol 171 MovieClip "bird" in Frame 66
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(200) + 100;
birdSpeed = random(15) + 9;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.plane.scrollStart) {
this._x = this._x - (birdSpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - birdSpeed;
}
if (this._x < -10) {
gotoAndStop ("birdflying");
reset();
}
}
onClipEvent (enterFrame) {
if (_root.plane.planemc.normalplanemc.hitTest(this)) {
_root.plane.gotoAndPlay("birdcrash");
}
if (_root.plane.planemc.planeglow.hitTest(this)) {
this.gotoAndPlay("birdsplatter");
}
}
Frame 67
stop();
Frame 68
numBird = 4;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
_root.powerupmc.gotoAndPlay("scroll");
_root.lvltitle.gotoAndPlay("lvl6");
Instance of Symbol 171 MovieClip "bird" in Frame 68
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(200) + 100;
birdSpeed = random(16) + 9;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.plane.scrollStart) {
this._x = this._x - (birdSpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - birdSpeed;
}
if (this._x < -10) {
gotoAndStop ("birdflying");
reset();
}
}
onClipEvent (enterFrame) {
if (_root.plane.planemc.normalplanemc.hitTest(this)) {
_root.plane.gotoAndPlay("birdcrash");
}
if (_root.plane.planemc.planeglow.hitTest(this)) {
this.gotoAndPlay("birdsplatter");
}
}
Frame 69
stop();
Frame 70
numBird = 4;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
_root.lvltitle.gotoAndPlay("lvl7");
Instance of Symbol 171 MovieClip "bird" in Frame 70
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(200) + 100;
birdSpeed = random(17) + 9;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.plane.scrollStart) {
this._x = this._x - (birdSpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - birdSpeed;
}
if (this._x < -10) {
gotoAndStop ("birdflying");
reset();
}
}
onClipEvent (enterFrame) {
if (_root.plane.planemc.normalplanemc.hitTest(this)) {
_root.plane.gotoAndPlay("birdcrash");
}
if (_root.plane.planemc.planeglow.hitTest(this)) {
this.gotoAndPlay("birdsplatter");
}
}
Frame 71
stop();
Frame 72
numBird = 5;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
_root.powerupmc.gotoAndPlay("scroll");
_root.lvltitle.gotoAndPlay("lvl8");
Instance of Symbol 171 MovieClip "bird" in Frame 72
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(200) + 100;
birdSpeed = random(18) + 9;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.plane.scrollStart) {
this._x = this._x - (birdSpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - birdSpeed;
}
if (this._x < -10) {
gotoAndStop ("birdflying");
reset();
}
}
onClipEvent (enterFrame) {
if (_root.plane.planemc.normalplanemc.hitTest(this)) {
_root.plane.gotoAndPlay("birdcrash");
}
if (_root.plane.planemc.planeglow.hitTest(this)) {
this.gotoAndPlay("birdsplatter");
}
}
Frame 73
stop();
Frame 74
numBird = 5;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
_root.lvltitle.gotoAndPlay("lvl9");
Frame 75
stop();
Frame 76
numBird = 6;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
_root.powerupmc.gotoAndPlay("scroll");
_root.lvltitle.gotoAndPlay("lvl10");
Frame 77
stop();
Frame 78
stop();
Instance of Symbol 171 MovieClip "bird" in Frame 78
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(200) + 100;
birdSpeed = random(15) + 10;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (birdSpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - birdSpeed;
}
if (this._x < -10) {
reset();
}
}
Instance of Symbol 99 MovieClip "playcontrol" in Frame 78
onClipEvent (mouseDown) {
this.isDown = true;
}
onClipEvent (mouseUp) {
this.isDown = false;
}
onClipEvent (enterFrame) {
if (this.isDown) {
_root.gotoAndPlay("start");
}
}
Instance of Symbol 158 MovieClip "plane" in Frame 78
onClipEvent (enterFrame) {
_root.plane.gotoAndPlay("planeexplode");
}
Instance of Symbol 171 MovieClip "bird" in Frame 78
onClipEvent (enterFrame) {
swapDepths(1);
removeMovieClip(_root.bird);
}
Frame 79
stop();
numBird = 1;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
Instance of Symbol 158 MovieClip "plane" in Frame 79
onClipEvent (enterFrame) {
_root.plane.gotoAndPlay("planeexplode2");
}
Frame 80
stop();
numBird = 1;
i = 2;
while (i <= numBird) {
bird.duplicateMovieClip("bird" + i, i + 100);
i++;
}
Symbol 5 MovieClip Frame 1
varMove = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.loadingMC.loadingBar._xscale = varMove;
Symbol 5 MovieClip Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.gotoAndPlay("loaded");
} else {
gotoAndPlay (1);
}
Symbol 23 Button
on (release) {
gotoAndPlay ("startgame");
}
Symbol 26 Button
on (release) {
gotoAndPlay ("credits");
}
Symbol 29 Button
on (release) {
gotoAndPlay ("info");
}
Symbol 45 Button
on (release) {
gotoAndPlay ("title");
}
Symbol 53 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/view.php?id=1074215&sub=31966", "_self");
}
Symbol 56 Button
on (release) {
getURL ("http://www.flashkit.com", "_self");
}
Symbol 59 Button
on (release) {
getURL ("http://www.findsounds.com", "_self");
}
Symbol 62 Button
on (release) {
getURL ("http://www.newgrounds.com", "_self");
}
Symbol 65 Button
on (release) {
getURL ("http://www.deviantart.com", "_self");
}
Symbol 68 Button
on (release) {
getURL ("http://www.killphilmovie.tk", "_self");
}
Symbol 71 Button
on (release) {
getURL ("http://chillyphilly.deviantart.com", "_self");
}
Symbol 75 MovieClip Frame 600
stop();
Symbol 81 MovieClip Frame 1
numRain = 200;
i = 2;
while (i <= numRain) {
this.raindropmc.duplicateMovieClip("raindropmc" + i, i + 100);
i++;
}
Instance of Symbol 80 MovieClip "raindropmc" in Symbol 81 MovieClip Frame 1
onClipEvent (load) {
function reset() {
this._y = 30;
this._x = random(550) + 1;
rainSpeed = random(20) + 10;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.plane.scrollStart) {
this._y = this._y - (rainSpeed + _root.mainGround.groundSpeed);
} else {
this._y = this._y - rainSpeed;
}
if (this._y < -300) {
reset();
}
}
Symbol 81 MovieClip Frame 2
stop();
Instance of Symbol 90 MovieClip "lightning" in Symbol 93 MovieClip Frame 1
/* no clip actions */
Symbol 97 Button
on (release) {
gotoAndPlay ("title");
}
Symbol 112 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/view.php?id=1074215&sub=31966", "_self");
}
Symbol 116 MovieClip Frame 100
stop();
this.unload();
Symbol 118 MovieClip Frame 1
play();
Symbol 118 MovieClip Frame 250
_root.gotoAndPlay("lvl2");
Symbol 118 MovieClip Frame 500
_root.gotoAndPlay("lvl3");
Symbol 118 MovieClip Frame 1000
_root.gotoAndPlay("lvl4");
Symbol 118 MovieClip Frame 2000
_root.gotoAndPlay("lvl5");
Symbol 118 MovieClip Frame 3000
_root.gotoAndPlay("lvl6");
Symbol 118 MovieClip Frame 4000
_root.gotoAndPlay("lvl7");
Symbol 118 MovieClip Frame 5000
_root.gotoAndPlay("lvl8");
Symbol 118 MovieClip Frame 6000
_root.gotoAndPlay("lvl9");
Symbol 118 MovieClip Frame 7000
_root.gotoAndPlay("lvl10");
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 2
play();
Symbol 123 MovieClip Frame 150
gotoAndStop ("off");
Symbol 136 MovieClip Frame 15
stop();
Symbol 138 MovieClip Frame 1
play();
_root.poweruptimer01.gotoAndPlay("starttimer");
Symbol 138 MovieClip Frame 241
_root.plane.planemc.gotoAndPlay("planeflyingnormal");
Symbol 145 MovieClip Frame 1
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 2
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 3
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 4
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 5
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 6
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 7
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 8
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 9
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 10
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 11
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 12
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 13
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 14
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 15
_root.score = _root.score + 1;
gotoAndPlay ("planeflyingnormal");
Symbol 145 MovieClip Frame 16
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 17
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 18
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 19
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 20
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 21
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 22
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 23
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 24
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 25
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 26
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 27
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 28
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 29
_root.score = _root.score + 1;
Symbol 145 MovieClip Frame 30
_root.score = _root.score + 1;
gotoAndPlay ("planeinvincible");
Symbol 149 MovieClip Frame 14
stop();
Symbol 155 MovieClip Frame 39
stop();
Symbol 156 MovieClip Frame 40
stop();
Symbol 157 MovieClip Frame 6
_root.gotoAndPlay("birddeath");
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
play();
Symbol 158 MovieClip Frame 40
stop();
Symbol 158 MovieClip Frame 41
play();
Symbol 158 MovieClip Frame 80
stop();
Symbol 158 MovieClip Frame 81
play();
Symbol 170 MovieClip Frame 3
_root.score = _root.score + 100;
Symbol 170 MovieClip Frame 15
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
play();
Symbol 171 MovieClip Frame 7
stop();
if (_root.bird._x < -10) {
_root.bird.gotoAndStop("birdflying");
reset();
}
Symbol 192 MovieClip Frame 9
stop();
Symbol 192 MovieClip Frame 19
stop();
Symbol 192 MovieClip Frame 29
stop();
Symbol 192 MovieClip Frame 39
stop();
Symbol 192 MovieClip Frame 49
stop();
Symbol 192 MovieClip Frame 59
stop();
Symbol 192 MovieClip Frame 69
stop();
Symbol 192 MovieClip Frame 79
stop();
Symbol 192 MovieClip Frame 89
stop();
Symbol 192 MovieClip Frame 99
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
play();
Symbol 199 MovieClip Frame 255
gotoAndStop ("timerstopped");
Symbol 202 MovieClip Frame 70
gotoAndPlay (30);