Frame 2
stop();
var soundOff;
var firstLoad;
var music = new Sound();
music.attachSound("eightbit");
if (firstLoad != 1) {
music.start(0, 999);
firstLoad = 1;
}
_root.instrWindow.onEnterFrame = function () {
if (Key.isDown(32)) {
_root.gotoAndStop(3);
}
};
Instance of Symbol 56 MovieClip "instrWindow" in Frame 2
onClipEvent (load) {
_root.instrWindow._visible = false;
}
Frame 3
function resetSpike1() {
dir1 = Math.floor(Math.random() * 4) + 1;
if (dir1 == 1) {
_root.spike1._y = -40;
_root.spike1._x = (Math.random() * 520) + 40;
}
if (dir1 == 2) {
_root.spike1._y = (Math.random() * 420) + 40;
_root.spike1._x = 640;
}
if (dir1 == 3) {
_root.spike1._y = 540;
_root.spike1._x = (Math.random() * 520) + 40;
}
if (dir1 == 4) {
_root.spike1._y = (Math.random() * 420) + 40;
_root.spike1._x = -40;
}
}
function resetSpike2() {
dir2 = Math.floor(Math.random() * 4) + 1;
if (dir2 == 1) {
_root.spike2._y = -40;
_root.spike2._x = (Math.random() * 520) + 40;
}
if (dir2 == 2) {
_root.spike2._y = (Math.random() * 420) + 40;
_root.spike2._x = 640;
}
if (dir2 == 3) {
_root.spike2._y = 540;
_root.spike2._x = (Math.random() * 520) + 40;
}
if (dir2 == 4) {
_root.spike2._y = (Math.random() * 420) + 40;
_root.spike2._x = -40;
}
}
function resetSpike3() {
dir3 = Math.floor(Math.random() * 4) + 1;
if (dir3 == 1) {
_root.spike3._y = -40;
_root.spike3._x = (Math.random() * 520) + 40;
}
if (dir3 == 2) {
_root.spike3._y = (Math.random() * 420) + 40;
_root.spike3._x = 640;
}
if (dir3 == 3) {
_root.spike3._y = 540;
_root.spike3._x = (Math.random() * 520) + 40;
}
if (dir3 == 4) {
_root.spike3._y = (Math.random() * 420) + 40;
_root.spike3._x = -40;
}
}
function resetSpike4() {
dir4 = Math.floor(Math.random() * 4) + 1;
if (dir4 == 1) {
_root.spike4._y = -40;
_root.spike4._x = (Math.random() * 520) + 40;
}
if (dir4 == 2) {
_root.spike4._y = (Math.random() * 420) + 40;
_root.spike4._x = 640;
}
if (dir4 == 3) {
_root.spike4._y = 540;
_root.spike4._x = (Math.random() * 520) + 40;
}
if (dir4 == 4) {
_root.spike4._y = (Math.random() * 420) + 40;
_root.spike4._x = -40;
}
}
function resetSpike5() {
dir5 = Math.floor(Math.random() * 4) + 1;
if (dir5 == 1) {
_root.spike5._y = -40;
_root.spike5._x = (Math.random() * 520) + 40;
}
if (dir5 == 2) {
_root.spike5._y = (Math.random() * 420) + 40;
_root.spike5._x = 640;
}
if (dir5 == 3) {
_root.spike5._y = 540;
_root.spike5._x = (Math.random() * 520) + 40;
}
if (dir5 == 4) {
_root.spike5._y = (Math.random() * 420) + 40;
_root.spike5._x = -40;
}
}
function resetSpike6() {
dir6 = Math.floor(Math.random() * 4) + 1;
if (dir6 == 1) {
_root.spike6._y = -40;
_root.spike6._x = (Math.random() * 520) + 40;
}
if (dir6 == 2) {
_root.spike6._y = (Math.random() * 420) + 40;
_root.spike6._x = 640;
}
if (dir6 == 3) {
_root.spike6._y = 540;
_root.spike6._x = (Math.random() * 520) + 40;
}
if (dir6 == 4) {
_root.spike6._y = (Math.random() * 420) + 40;
_root.spike6._x = -40;
}
}
function resetSpike7() {
dir7 = Math.floor(Math.random() * 4) + 1;
if (dir2 == 1) {
_root.spike7._y = -40;
_root.spike7._x = (Math.random() * 520) + 40;
}
if (dir7 == 2) {
_root.spike7._y = (Math.random() * 420) + 40;
_root.spike7._x = 640;
}
if (dir7 == 3) {
_root.spike7._y = 540;
_root.spike7._x = (Math.random() * 520) + 40;
}
if (dir7 == 4) {
_root.spike7._y = (Math.random() * 420) + 40;
_root.spike7._x = -40;
}
}
function resetSpike8() {
dir8 = Math.floor(Math.random() * 4) + 1;
if (dir8 == 1) {
_root.spike8._y = -40;
_root.spike8._x = (Math.random() * 520) + 40;
}
if (dir8 == 2) {
_root.spike8._y = (Math.random() * 420) + 40;
_root.spike8._x = 640;
}
if (dir8 == 3) {
_root.spike8._y = 540;
_root.spike8._x = (Math.random() * 520) + 40;
}
if (dir8 == 4) {
_root.spike8._y = (Math.random() * 420) + 40;
_root.spike8._x = -40;
}
}
function resetSpike9() {
dir9 = Math.floor(Math.random() * 4) + 1;
if (dir9 == 1) {
_root.spike9._y = -40;
_root.spike9._x = (Math.random() * 520) + 40;
}
if (dir9 == 2) {
_root.spike9._y = (Math.random() * 420) + 40;
_root.spike9._x = 640;
}
if (dir9 == 3) {
_root.spike9._y = 540;
_root.spike9._x = (Math.random() * 520) + 40;
}
if (dir9 == 4) {
_root.spike9._y = (Math.random() * 420) + 40;
_root.spike9._x = -40;
}
}
function resetSpike10() {
dir10 = Math.floor(Math.random() * 4) + 1;
if (dir10 == 1) {
_root.spike10._y = -40;
_root.spike10._x = (Math.random() * 520) + 40;
}
if (dir10 == 2) {
_root.spike10._y = (Math.random() * 420) + 40;
_root.spike10._x = 640;
}
if (dir10 == 3) {
_root.spike10._y = 540;
_root.spike10._x = (Math.random() * 520) + 40;
}
if (dir10 == 4) {
_root.spike10._y = (Math.random() * 420) + 40;
_root.spike10._x = -40;
}
}
function resetSpike11() {
dir11 = Math.floor(Math.random() * 4) + 1;
if (dir11 == 1) {
_root.spike11._y = -40;
_root.spike11._x = (Math.random() * 520) + 40;
}
if (dir11 == 2) {
_root.spike11._y = (Math.random() * 420) + 40;
_root.spike11._x = 640;
}
if (dir11 == 3) {
_root.spike11._y = 540;
_root.spike11._x = (Math.random() * 520) + 40;
}
if (dir11 == 4) {
_root.spike11._y = (Math.random() * 420) + 40;
_root.spike11._x = -40;
}
}
function resetSpike12() {
dir12 = Math.floor(Math.random() * 4) + 1;
if (dir12 == 1) {
_root.spike12._y = -40;
_root.spike12._x = (Math.random() * 520) + 40;
}
if (dir12 == 2) {
_root.spike12._y = (Math.random() * 420) + 40;
_root.spike12._x = 640;
}
if (dir12 == 3) {
_root.spike12._y = 540;
_root.spike12._x = (Math.random() * 520) + 40;
}
if (dir12 == 4) {
_root.spike12._y = (Math.random() * 420) + 40;
_root.spike12._x = -40;
}
}
function resetSpike13() {
dir13 = Math.floor(Math.random() * 4) + 1;
if (dir13 == 1) {
_root.spike13._y = -40;
_root.spike13._x = (Math.random() * 520) + 40;
}
if (dir13 == 2) {
_root.spike13._y = (Math.random() * 420) + 40;
_root.spike13._x = 640;
}
if (dir13 == 3) {
_root.spike13._y = 540;
_root.spike13._x = (Math.random() * 520) + 40;
}
if (dir13 == 4) {
_root.spike13._y = (Math.random() * 420) + 40;
_root.spike13._x = -40;
}
}
function resetSpike14() {
dir14 = Math.floor(Math.random() * 4) + 1;
if (dir14 == 1) {
_root.spike14._y = -40;
_root.spike14._x = (Math.random() * 520) + 40;
}
if (dir14 == 2) {
_root.spike14._y = (Math.random() * 420) + 40;
_root.spike14._x = 640;
}
if (dir14 == 3) {
_root.spike14._y = 540;
_root.spike14._x = (Math.random() * 520) + 40;
}
if (dir14 == 4) {
_root.spike14._y = (Math.random() * 420) + 40;
_root.spike14._x = -40;
}
}
function resetOrange() {
dirOr = Math.floor(Math.random() * 4) + 1;
if (dirOr == 1) {
_root.orange._y = -40;
_root.orange._x = (Math.random() * 520) + 40;
}
if (dirOr == 2) {
_root.orange._y = (Math.random() * 420) + 40;
_root.orange._x = 640;
}
if (dirOr == 3) {
_root.orange._y = 540;
_root.orange._x = (Math.random() * 520) + 40;
}
if (dirOr == 4) {
_root.orange._y = (Math.random() * 420) + 40;
_root.orange._x = -40;
}
}
function resetGreen1() {
dirGr1 = Math.floor(Math.random() * 4) + 1;
if (dirGr1 == 1) {
_root.green1._y = -40;
_root.green1._x = (Math.random() * 520) + 40;
}
if (dirGr1 == 2) {
_root.green1._y = (Math.random() * 420) + 40;
_root.green1._x = 640;
}
if (dirGr1 == 3) {
_root.green1._y = 540;
_root.green1._x = (Math.random() * 520) + 40;
}
if (dirGr1 == 4) {
_root.green1._y = (Math.random() * 420) + 40;
_root.green1._x = -40;
}
}
function resetGreen2() {
dirGr2 = Math.floor(Math.random() * 4) + 1;
if (dirGr2 == 1) {
_root.green2._y = -40;
_root.green2._x = (Math.random() * 520) + 40;
}
if (dirGr2 == 2) {
_root.green2._y = (Math.random() * 420) + 40;
_root.green2._x = 640;
}
if (dirGr2 == 3) {
_root.green2._y = 540;
_root.green2._x = (Math.random() * 520) + 40;
}
if (dirGr2 == 4) {
_root.green2._y = (Math.random() * 420) + 40;
_root.green2._x = -40;
}
}
function resetGreen3() {
dirGr3 = Math.floor(Math.random() * 4) + 1;
if (dirGr3 == 1) {
_root.green3._y = -40;
_root.green3._x = (Math.random() * 520) + 40;
}
if (dirGr3 == 2) {
_root.green3._y = (Math.random() * 420) + 40;
_root.green3._x = 640;
}
if (dirGr3 == 3) {
_root.green3._y = 540;
_root.green3._x = (Math.random() * 520) + 40;
}
if (dirGr3 == 4) {
_root.green3._y = (Math.random() * 420) + 40;
_root.green3._x = -40;
}
}
stop();
var pop = new Sound();
pop.attachSound("balloonpop");
var blip = new Sound();
blip.attachSound("retroblip");
var score = 0;
var dir1;
var dir2;
var dir3;
var dir4;
var dir5;
var dir6;
var dir7;
var dir8;
var dir9;
var dir10;
var dir11;
var dir12;
var dir13;
var dir14;
var dirOr;
var dirGr1;
var dirGr2;
var dirGr3;
var moveable = 1;
_root.lblScore.text = score;
resetSpike1();
resetSpike2();
resetSpike3();
resetSpike4();
resetSpike5();
resetSpike6();
resetSpike7();
resetSpike8();
resetSpike9();
resetSpike10();
resetSpike11();
resetSpike12();
resetSpike13();
resetSpike14();
resetOrange();
resetGreen1();
resetGreen2();
resetGreen3();
_root.player.onEnterFrame = function () {
if (Key.isDown(38)) {
if (moveable == 1) {
if (this._y > 20) {
this._y = this._y - 8;
this.gotoAndStop(1);
}
}
}
if (Key.isDown(40)) {
if (moveable == 1) {
if (this._y < 480) {
this._y = this._y + 8;
this.gotoAndStop(3);
}
}
}
if (Key.isDown(37)) {
if (moveable == 1) {
if (this._x > 20) {
this._x = this._x - 8;
this.gotoAndStop(4);
}
}
}
if (Key.isDown(39)) {
if (moveable == 1) {
if (this._x < 585) {
this._x = this._x + 8;
this.gotoAndStop(2);
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.orange._x, 2) + Math.pow(this._y - _root.orange._y, 2)) <= 20) {
_root.highpts._x = _root.orange._x;
_root.highpts._y = _root.orange._y;
_root.highpts.play();
resetOrange();
score = score + 200;
_root.lblScore.text = score;
if (soundOff != 1) {
blip.start();
}
}
if (Math.sqrt(Math.pow(this._x - _root.green1._x, 2) + Math.pow(this._y - _root.green1._y, 2)) <= 25) {
_root.lowpts1._x = _root.green1._x;
_root.lowpts1._y = _root.green1._y;
_root.lowpts1.play();
resetGreen1();
score = score + 100;
_root.lblScore.text = score;
if (soundOff != 1) {
blip.start();
}
}
if (Math.sqrt(Math.pow(this._x - _root.green2._x, 2) + Math.pow(this._y - _root.green2._y, 2)) <= 25) {
_root.lowpts2._x = _root.green2._x;
_root.lowpts2._y = _root.green2._y;
_root.lowpts2.play();
resetGreen2();
score = score + 100;
_root.lblScore.text = score;
if (soundOff != 1) {
blip.start();
}
}
if (Math.sqrt(Math.pow(this._x - _root.green3._x, 2) + Math.pow(this._y - _root.green3._y, 2)) <= 25) {
_root.lowpts3._x = _root.green3._x;
_root.lowpts3._y = _root.green3._y;
_root.lowpts3.play();
resetGreen3();
score = score + 100;
_root.lblScore.text = score;
if (soundOff != 1) {
blip.start();
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike1._x, 2) + Math.pow(this._y - _root.spike1._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike2._x, 2) + Math.pow(this._y - _root.spike2._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike3._x, 2) + Math.pow(this._y - _root.spike3._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike4._x, 2) + Math.pow(this._y - _root.spike4._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike5._x, 2) + Math.pow(this._y - _root.spike5._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike6._x, 2) + Math.pow(this._y - _root.spike6._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike7._x, 2) + Math.pow(this._y - _root.spike7._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike8._x, 2) + Math.pow(this._y - _root.spike8._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike9._x, 2) + Math.pow(this._y - _root.spike9._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike10._x, 2) + Math.pow(this._y - _root.spike10._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike11._x, 2) + Math.pow(this._y - _root.spike11._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike12._x, 2) + Math.pow(this._y - _root.spike12._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike13._x, 2) + Math.pow(this._y - _root.spike13._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
if (Math.sqrt(Math.pow(this._x - _root.spike14._x, 2) + Math.pow(this._y - _root.spike14._y, 2)) <= 30) {
if (moveable == 1) {
this.gotoAndPlay(5);
moveable = 0;
if (soundOff != 1) {
pop.start();
}
}
}
};
_root.spike1.onEnterFrame = function () {
if (dir1 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike1();
}
} else if (dir1 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike1();
}
} else if (dir1 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike1();
}
} else if (dir1 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike1();
}
}
};
_root.spike2.onEnterFrame = function () {
if (dir2 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike2();
}
}
if (dir2 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike2();
}
}
if (dir2 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike2();
}
}
if (dir2 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike2();
}
}
};
_root.spike3.onEnterFrame = function () {
if (dir3 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike3();
}
}
if (dir3 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike3();
}
}
if (dir3 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike3();
}
}
if (dir3 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike3();
}
}
};
_root.spike4.onEnterFrame = function () {
if (dir4 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike4();
}
}
if (dir4 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike4();
}
}
if (dir4 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike4();
}
}
if (dir4 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike4();
}
}
};
_root.spike5.onEnterFrame = function () {
if (dir5 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike5();
}
}
if (dir5 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike5();
}
}
if (dir5 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike5();
}
}
if (dir5 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike5();
}
}
};
_root.spike6.onEnterFrame = function () {
if (dir6 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike6();
}
}
if (dir6 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike6();
}
}
if (dir6 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike6();
}
}
if (dir6 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike6();
}
}
};
_root.spike7.onEnterFrame = function () {
if (dir7 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike7();
}
}
if (dir7 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike7();
}
}
if (dir7 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike7();
}
}
if (dir7 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike7();
}
}
};
_root.spike8.onEnterFrame = function () {
if (dir8 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike8();
}
}
if (dir8 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike8();
}
}
if (dir8 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike8();
}
}
if (dir8 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike8();
}
}
};
_root.spike9.onEnterFrame = function () {
if (dir9 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike9();
}
} else if (dir9 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike9();
}
} else if (dir9 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike9();
}
} else if (dir9 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike9();
}
}
};
_root.spike10.onEnterFrame = function () {
if (dir10 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike10();
}
} else if (dir10 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike10();
}
} else if (dir10 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike10();
}
} else if (dir10 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike10();
}
}
};
_root.spike11.onEnterFrame = function () {
if (dir11 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike11();
}
} else if (dir11 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike11();
}
} else if (dir11 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike11();
}
} else if (dir11 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike11();
}
}
};
_root.spike12.onEnterFrame = function () {
if (dir12 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike12();
}
} else if (dir12 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike12();
}
} else if (dir12 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike12();
}
} else if (dir12 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike12();
}
}
};
_root.spike13.onEnterFrame = function () {
if (dir13 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike13();
}
} else if (dir13 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike13();
}
} else if (dir13 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike13();
}
} else if (dir13 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike13();
}
}
};
_root.spike14.onEnterFrame = function () {
if (dir14 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetSpike14();
}
} else if (dir14 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetSpike14();
}
} else if (dir14 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetSpike14();
}
} else if (dir14 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetSpike14();
}
}
};
_root.orange.onEnterFrame = function () {
if (dirOr == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetOrange();
}
} else if (dirOr == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetOrange();
}
} else if (dirOr == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetOrange();
}
} else if (dirOr == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetOrange();
}
}
};
_root.green1.onEnterFrame = function () {
if (dirGr1 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetGreen1();
}
} else if (dirGr1 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetGreen1();
}
} else if (dirGr1 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetGreen1();
}
} else if (dirGr1 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetGreen1();
}
}
};
_root.Green2.onEnterFrame = function () {
if (dirGr2 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetGreen2();
}
} else if (dirGr2 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetGreen2();
}
} else if (dirGr2 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetGreen2();
}
} else if (dirGr2 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetGreen2();
}
}
};
_root.green3.onEnterFrame = function () {
if (dirGr3 == 1) {
if (this._y < 540) {
this._y = this._y + 6;
} else {
resetGreen3();
}
} else if (dirGr3 == 2) {
if (this._x > -40) {
this._x = this._x - 6;
} else {
resetGreen3();
}
} else if (dirGr3 == 3) {
if (this._y > -40) {
this._y = this._y - 6;
} else {
resetGreen3();
}
} else if (dirGr3 == 4) {
if (this._x < 640) {
this._x = this._x + 6;
} else {
resetGreen3();
}
}
};
Frame 4
stop();
_root.lblFinalScore.text = score;
if (score >= 500000) {
_root.lblRank.text = "NICE HAX";
} else if (score >= 100000) {
_root.lblRank.text = "HOLY SHIT";
} else if (score >= 75000) {
_root.lblRank.text = "CHUCK NORRIS";
} else if (score >= 50000) {
_root.lblRank.text = "IMMORTAL";
} else if (score >= 25000) {
_root.lblRank.text = "BADASS MOTHERF**KER";
} else if (score >= 10000) {
_root.lblRank.text = "POINT WHORE";
} else if (score >= 7500) {
_root.lblRank.text = "CHAMP";
} else if (score >= 5000) {
_root.lblRank.text = "SKILLED";
} else if (score >= 2500) {
_root.lblRank.text = "DODGEY";
} else if (score >= 1000) {
_root.lblRank.text = "WEAKSAUCE";
} else if (score >= 500) {
_root.lblRank.text = "NUBLET";
} else {
_root.lblRank.text = "FAIL";
}
Symbol 11 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var loaded = (_root.getBytesLoaded() / _root.getBytesTotal());
bar._xscale = 100 * loaded;
lblPercent.text = Math.round(100 * loaded);
if (loaded == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop (2);
}
return(undefined);
}
}
}
function startMovie() {
_root.play();
}
_root.stop();
stop();
var AUTO_PLAY = true;
var loadingComplete = false;
timerHandler();
Instance of Symbol 10 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.timerHandler();
}
Symbol 11 MovieClip Frame 2
stop();
Symbol 16 Button
on (release) {
gotoAndStop (3);
}
Symbol 20 Button
on (release) {
_root.instrWindow._visible = true;
}
Symbol 32 Button
on (release) {
_root.instrWindow._visible = false;
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 2
stop();
Symbol 46 MovieClip Frame 3
stop();
Symbol 46 MovieClip Frame 4
stop();
Symbol 46 MovieClip Frame 5
play();
Symbol 46 MovieClip Frame 6
play();
Symbol 46 MovieClip Frame 7
play();
Symbol 46 MovieClip Frame 8
play();
Symbol 46 MovieClip Frame 9
play();
Symbol 46 MovieClip Frame 10
_root.gotoAndStop(4);
Symbol 60 Button
on (release) {
_root.soundOff = 1;
gotoAndStop (2);
}
Symbol 63 Button
on (release) {
_root.soundOff = 0;
gotoAndStop (1);
}
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 68 Button
on (release) {
gotoAndStop (2);
_root.music.stop();
}
Symbol 72 Button
on (release) {
gotoAndStop (1);
_root.music.start(0, 999);
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 15
stop();
Symbol 102 MovieClip Frame 15
stop();
Symbol 109 Button
on (release) {
moveable = 1;
gotoAndStop (2);
}