Frame 1
_root.stop();
Instance of Symbol 7 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.pLoaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this._width = _root.pLoaded * 3;
if (_root.pLoaded >= 100) {
_root.play();
}
}
Frame 2
_root.stop();
sMenu = new Sound();
sMenu.attachSound("ambient1");
sMenu.start(0, 999);
Frame 3
_root.stop();
Frame 4
_root.stop();
_root.newObstruct = 120;
_root.score = 0;
_root.lastValue = "+0";
sMenu.stop();
sPickup = new Sound();
sPickup.attachSound("ding");
sObstruct = new Sound();
sObstruct.attachSound("pop");
sPlay = new Sound();
sPlay.attachSound("techno1");
sPlay.start(0, 9999);
Instance of Symbol 34 MovieClip "pickup" in Frame 4
onClipEvent (load) {
function regen() {
var _local1 = this;
_local1.value = 100;
_local1._x = Math.random() * 640;
_local1._y = Math.random() * 480;
}
this.regen();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.lastValue = "+" + this.value;
_root.lastValueAnim.play();
_root.lastValueAnim._x = this._x;
_root.lastValueAnim._y = this._y;
_root.sPickup.start(0, 1);
_root.score = _root.score + this.value;
this.regen();
}
if (this.value == 0) {
if (_root.score > 0) {
_root.score = _root.score - 30;
}
this.regen();
}
this._alpha = this.value;
this.value = this.value - 1;
}
Instance of Symbol 40 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 1);
this._y = this._y + ((_root.player._y - this._y) / 1);
}
Instance of Symbol 40 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._X - this._x) / 2);
this._y = this._y + ((_root.player._y - this._y) / 2);
}
Instance of Symbol 40 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 3);
this._y = this._y + ((_root.player._y - this._y) / 3);
}
Instance of Symbol 40 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 4);
this._y = this._y + ((_root.player._y - this._y) / 4);
}
Instance of Symbol 40 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._x = this._x + ((_root.player._x - this._x) / 5);
this._y = this._y + ((_root.player._y - this._y) / 5);
}
Instance of Symbol 40 MovieClip "player" in Frame 4
onClipEvent (load) {
this.xspd = 0;
this.yspd = 0;
this.aspd = 1;
this.dspd = 0.5;
this.mspd = 12;
}
onClipEvent (enterFrame) {
this._x = this._x + this.xspd;
this._y = this._y + this.yspd;
if (Key.isDown(39)) {
if (this.xspd < this.mspd) {
this.xspd = this.xspd + this.aspd;
}
} else if (Key.isDown(37)) {
if (this.xspd > (-this.mspd)) {
this.xspd = this.xspd - this.aspd;
}
} else if (this.xspd > 0) {
this.xspd = this.xspd - this.dspd;
} else if (this.xspd < 0) {
this.xspd = this.xspd + this.dspd;
}
if (Key.isDown(40)) {
if (this.yspd < this.mspd) {
this.yspd = this.yspd + this.aspd;
}
} else if (Key.isDown(38)) {
if (this.yspd > (-this.mspd)) {
this.yspd = this.yspd - this.aspd;
}
} else if (this.yspd > 0) {
this.yspd = this.yspd - this.dspd;
} else if (this.yspd < 0) {
this.yspd = this.yspd + this.dspd;
}
}
Instance of Symbol 7 MovieClip in Frame 4
onClipEvent (load) {
i = 0;
counter = 0;
}
onClipEvent (enterFrame) {
if (this.counter == _root.newObstruct) {
i++;
_root.obstruct.duplicateMovieClip("obstruct" + i, i);
counter = 0;
}
counter++;
}
Instance of Symbol 41 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.player.xspd < 0) {
_root.player.xspd = -_root.player.xspd;
}
}
}
Instance of Symbol 41 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.player.xspd > 0) {
_root.player.xspd = -_root.player.xspd;
}
}
}
Instance of Symbol 41 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.player.yspd < 0) {
_root.player.yspd = -_root.player.yspd;
}
}
}
Instance of Symbol 41 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.player.yspd > 0) {
_root.player.yspd = -_root.player.yspd;
}
}
}
Instance of Symbol 43 MovieClip "obstruct" in Frame 4
onClipEvent (load) {
this.size = (Math.random() * 40) + 20;
this._width = this.size;
this._height = this.size;
this._x = Math.random() * 640;
this._y = Math.random() * 480;
while (this.hitTest(_root.player)) {
this._x = Math.random() * 640;
this._y = Math.random() * 480;
}
sObstruct.start(0, 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pickup)) {
_root.pickup.regen();
}
if (this.hitTest(_root.player)) {
_root.play();
}
if (_root._currentframe > 4) {
this.removeMovieClip();
}
}
Frame 5
sPlay.stop();
sGO = new Sound();
sGO.attachSound("techno2");
sGO.start(0, 1);
Frame 143
_root.gotoAndPlay(2);
Symbol 22 Button
on (press) {
gotoAndPlay (4);
}
Symbol 26 Button
on (press) {
gotoAndPlay (3);
}
Symbol 29 Button
on (press) {
getURL ("http://www.joeyroe.co.uk", "_blank");
}
Symbol 38 MovieClip Frame 20
this.stop();