Frame 1
stop();
e.stop();
Frame 2
stop();
e = new Sound();
e.attachSound("rocketloop.wav");
e.start(0, 100000);
Instance of Symbol 30 MovieClip "topbarrier" in Frame 2
onClipEvent (load) {
this.swapDepths(_root.hi);
this.swapDepths(_root.score);
}
onClipEvent (enterFrame) {
if (go != false) {
if (_root.go != false) {
this._x = this._x - 5;
}
}
if (this.hitTest(_root.ship) == true) {
_root.go = false;
}
if (this._x < -10) {
removeMovieClip(this);
}
if (_root.reset == true) {
removeMovieClip(this);
}
}
Instance of Symbol 31 MovieClip "control" in Frame 2
onClipEvent (load) {
_root.hi.hi = "High: " + _root.high;
_root.reset = false;
_root.go = true;
barrierwidth = 260;
barrierheight = 20;
heightinterval = 0;
_root.bottombarrier.go = false;
_root.topbarrier.go = false;
_root.barrier.go = false;
n = 0;
x = 0;
y = 0;
i = 0;
j = 0;
}
onClipEvent (enterFrame) {
if (_root.go != false) {
n++;
x++;
if (n == 50) {
barrierwidth--;
n = 0;
duplicateMovieClip (_root.barrier, "b" + j, j);
_root["b" + j]._y = random(200);
_root["b" + j]._x = 410;
j++;
}
if (x == 4) {
if (y == 5) {
heightinterval = 10 - random(20);
y = 0;
}
y++;
barrierheight = barrierheight + heightinterval;
if (barrierheight < 0) {
barrierheight = 1;
heightinterval = heightinterval * -1;
}
if ((barrierheight + barrierwidth) > 300) {
barrierheight = 299 - barrierwidth;
heightinterval = heightinterval * -1;
}
duplicateMovieClip (_root.bottombarrier, "bb" + i, i);
_root["bb" + i]._y = barrierheight + barrierwidth;
_root["bb" + i]._x = 410;
_root["bb" + i].gotoAndStop(random(4) + 1);
i++;
duplicateMovieClip (_root.topbarrier, "tb" + i, i);
_root["tb" + i]._y = barrierheight;
_root["tb" + i]._x = 410;
_root["tb" + i].gotoAndStop(random(4) + 1);
i++;
x = 0;
_root.e.setVolume(_root.thrust * 50);
}
}
_root.score.score = "Score: " + Math.floor(i / 2);
}
onClipEvent (mouseMove) {
_root.thrust = (300 - _root._ymouse) / -150;
_root.ship.thrust._alpha = _root.thrust * -50;
}
Instance of Symbol 30 MovieClip "bottombarrier" in Frame 2
onClipEvent (load) {
this.swapDepths(_root.hi);
this.swapDepths(_root.score);
}
onClipEvent (enterFrame) {
if (go != false) {
if (_root.go != false) {
this._x = this._x - 5;
}
}
if (this.hitTest(_root.ship) == true) {
_root.go = false;
}
if (this._x < -10) {
removeMovieClip(this);
}
if (_root.reset == true) {
removeMovieClip(this);
}
}
Instance of Symbol 14 MovieClip "ship" in Frame 2
onClipEvent (enterFrame) {
if (_root.go != false) {
this.gotoAndStop(1);
yvector = (yvector + 0.5) + (_root.thrust * 0.5);
if (yvector < -5) {
yvector = -5;
}
if (yvector > 5) {
yvector = 5;
}
this._y = this._y + yvector;
}
if (_root.go == false) {
this.gotoAndStop(2);
if (Math.floor(_root.control.i / 2) > _root.high) {
_root.high = Math.floor(_root.control.i / 2);
_root.hi.hi = "High: " + _root.high;
}
}
}
Instance of Symbol 33 MovieClip "barrier" in Frame 2
onClipEvent (load) {
this.swapDepths(_root.hi);
this.swapDepths(_root.score);
}
onClipEvent (enterFrame) {
if (go != false) {
if (_root.go != false) {
this._x = this._x - 5;
}
}
if (this.hitTest(_root.ship) == true) {
_root.go = false;
}
if (this._x < -10) {
removeMovieClip(this);
}
if (_root.reset == true) {
removeMovieClip(this);
}
}
Instance of Symbol 30 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship) == true) {
_root.go = false;
}
}
Instance of Symbol 30 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship) == true) {
_root.go = false;
}
}
Frame 3
gotoAndStop (2);
Symbol 5 Button
on (release) {
gotoAndStop (2);
}
Symbol 13 MovieClip Frame 1
_root.e.stop();
p = new Sound();
p.attachSound("gl.wav");
p.start();
p.setVolume(100);
Symbol 13 MovieClip Frame 35
stop();
Symbol 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 2
stop();
Symbol 24 Button
on (release) {
getURL ("http://www.aeflash.com", "_blank");
}
Symbol 25 Button
on (press) {
_root.mousedown = true;
if (_root.go == false) {
_root.reset = true;
gotoAndStop (1);
_root.mousedown = false;
}
}
on (release) {
_root.mousedown = false;
}
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 2
stop();
Symbol 30 MovieClip Frame 3
stop();
Symbol 30 MovieClip Frame 4
stop();