Frame 1
stop();
Frame 2
_global.profilename = "";
_global.control = new Array(87, 83, 68, 65, 32);
_global.controlstext = new Array(String.fromCharCode(_global.control[0]), String.fromCharCode(_global.control[1]), String.fromCharCode(_global.control[2]), String.fromCharCode(_global.control[3]), "Space");
_global.musictype = "all";
_global.goal = 0;
_global.goalend = 0;
_global.played = false;
Frame 3
stop();
Instance of Symbol 253 MovieClip in Frame 3
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
}
}
on (keyPress "<Enter>") {
_root.gotoAndStop("Menu");
}
Frame 4
stop();
hsname = new Array();
hsscore = new Array();
_global.level = 0;
Instance of Symbol 309 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this._y > 198) {
this._y = this._y - 4.5;
}
}
Instance of Symbol 312 MovieClip "instructions" in Frame 4
onClipEvent (enterFrame) {
if (_root.mainsection._visible == true) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 322 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this._x > 360) {
this._x = this._x - 9;
}
}
Instance of Symbol 464 MovieClip "mainsection" in Frame 4
onClipEvent (load) {
this._visible = false;
this.stop();
}
onClipEvent (enterFrame) {
if (this._visible == true) {
if (this._y < -18) {
this._y = this._y + 9;
}
}
}
Instance of Symbol 479 MovieClip "endmenu" in Frame 4
onClipEvent (enterFrame) {
if (_global.played == true) {
this.submittext.text = "Submit your highscore to our leaderboard!";
this.gotoAndStop(3);
ab20_09 = new LoadVars();
ab20_09.z = _global.profilename;
this.submitprofile.text = "Name: " + _global.profilename;
if (_global.goal == 0) {
this.submitscore.text = "Score: " + _global.score;
ab20_09.x = _global.score;
ab20_09.c = 1271;
ab20_09.v = "LVHDCU";
}
if (_global.goal == 1) {
this.submitscore.text = "Score: " + _global.score;
ab20_09.x = _global.score;
if (_global.goalend == 120) {
ab20_09.c = 1316;
ab20_09.v = "ABZJPC";
} else if (_global.goalend == 60) {
ab20_09.c = 1275;
ab20_09.v = "DFREVI";
} else if (_global.goalend == 300) {
ab20_09.c = 1317;
ab20_09.v = "OQVDQG";
} else if (_global.goalend == 600) {
ab20_09.c = 1366;
ab20_09.v = "SEEOEU";
} else {
this.submittext.text = "You cannot submit this score.";
this.submitbutton._visible = false;
}
}
if (_global.goal == 2) {
this.submitscore.text = ("Time: " + _global.timer) + " seconds";
if (_global.goalend == 5000) {
ab20_09.c = 1277;
ab20_09.v = "GALEOI";
} else if (_global.goalend == 1000) {
ab20_09.c = 1371;
ab20_09.v = "ZFCPSG";
} else if (_global.goalend == 10000) {
ab20_09.c = 1372;
ab20_09.v = "HXNWJT";
} else if (_global.goalend == 500) {
ab20_09.c = 1374;
ab20_09.v = "IUKBGF";
} else {
this.submittext.text = "You cannot submit this score.";
this.submitbutton._visible = false;
}
}
}
}
Frame 5
function sendnotes() {
if (count == 0) {
block = block + 2;
_root.b0.duplicateMovieClip("b" + block, block);
_root.b1.duplicateMovieClip("b" + (int(block) + 1), block + 1);
count = 2;
}
}
stop();
block = 0;
count = 2;
counter = 0;
left1 = true;
left2 = true;
right1 = true;
right2 = true;
chain = new Array();
_global.score = 0;
removed = 0;
leveled = 1;
speed = 10;
combo = 0;
special = false;
setInterval(sendnotes, 125);
colour = new Array(["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"]);
id = new Array(["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"], ["empty"]);
Instance of Symbol 483 MovieClip "specialbar" in Frame 5
onClipEvent (load) {
this._width = 0;
}
onClipEvent (enterFrame) {
if (this._width >= 90) {
_root.special = true;
this._width = 90;
}
if (_root.special == true) {
this._width = this._width - 0.5;
}
if (this._width == 0) {
_root.special = false;
}
}
Instance of Symbol 489 MovieClip "b0" in Frame 5
onClipEvent (load) {
id = _root.block;
if (id >= 2) {
if (_root.special == false) {
colour = Math.round((Math.random() * 2) + 1);
} else {
colour = 4;
}
this.gotoAndStop(colour);
control = true;
down = 0;
this._x = 189;
this._y = 27;
column = 9;
row = 10;
downspeed = downmax;
if (colour < 4) {
downmax = _root.speed;
} else {
downmax = _root.speed / 2;
}
mousegrab = false;
movespeed = 0;
_root.left1 = true;
_root.right1 = true;
count = 0;
} else {
_root.count = _root.count - 1;
}
}
onClipEvent (enterFrame) {
if (id >= 2) {
if (control == true) {
down = down + 1;
if (down >= downspeed) {
this._y = this._y + 18;
row = row - 1;
down = 0;
}
if (Key.isDown(_global.control[2]) and (!Key.isDown(_global.control[3]))) {
if ((_root.right1 == true) and (_root.right2 == true)) {
if ((down > 0) and (down < downspeed)) {
movespeed++;
}
if (movespeed == 2) {
movespeed = 0;
this._x = this._x + 18;
column = column + 1;
}
}
}
if (movespeed == 1) {
if ((column < 17) and (_root.id[int(column) + 1][row] == "empty")) {
_root.right1 = true;
} else {
_root.right1 = false;
}
}
if (Key.isDown(_global.control[3]) and (!Key.isDown(_global.control[2]))) {
if ((_root.left1 == true) and (_root.left2 == true)) {
if ((down > 0) and (down < downspeed)) {
movespeed++;
}
if (movespeed == 2) {
movespeed = 0;
this._x = this._x - 18;
column = column - 1;
}
}
}
if (movespeed == 1) {
if ((column > 0) and (_root.id[int(column) - 1][row] == "empty")) {
_root.left1 = true;
} else {
_root.left1 = false;
}
}
if (((!Key.isDown(_global.control[2])) and (!Key.isDown(_global.control[3]))) or (Key.isDown(_global.control[2]) and Key.isDown(_global.control[3]))) {
movespeed = 1;
}
if (Key.isDown(_global.control[1])) {
downspeed = int(downmax) / 5;
} else {
downspeed = downmax;
}
if ((row == 0) or (!(_root.colour[column][int(row) - 1] === "empty"))) {
control = false;
_root.count = _root.count - 1;
_root.columnheight[column] = row + 1;
_root.colour[column][row] = colour;
_root.id[column][row] = id;
downspeed = 5;
}
} else {
if (row >= 9) {
_root.music.mySong.stop();
_root.gotoAndStop("Menu");
_global.played = true;
count = 0;
while (count < (_root.block + 2)) {
_root["b" + count].removeMovieClip();
count++;
}
}
if (mousegrab == true) {
if (_root._xmouse > (this._x + 9)) {
if (((column < 17) and (_root.colour[int(column) + 1][row] == "empty")) and (_root.colour[column][int(row) - 1] != "empty")) {
this._x = this._x + 18;
column = column + 1;
_root.colour[column][row] = colour;
_root.id[column][row] = id;
_root.colour[int(column) - 1][row] = "empty";
_root.id[int(column) - 1][row] = "empty";
}
}
if (_root._xmouse < (this._x - 9)) {
if (((column > 0) and (_root.colour[int(column) - 1][row] == "empty")) and (_root.colour[column][int(row) - 1] != "empty")) {
this._x = this._x - 18;
column = column - 1;
_root.colour[column][row] = colour;
_root.id[column][row] = id;
_root.colour[int(column) + 1][row] = "empty";
_root.id[int(column) + 1][row] = "empty";
}
}
}
if ((_root.colour[column][int(row) - 1] == "empty") and (row > 0)) {
this._y = this._y + 18;
row = row - 1;
_root.colour[column][row] = colour;
_root.id[column][row] = id;
_root.colour[column][int(row) + 1] = "empty";
_root.id[column][int(row) + 1] = "empty";
}
}
if (Key.isDown(_global.control[4])) {
if (this._alpha == 50) {
_root.colour[column][row] = "empty";
_root.id[column][row] = "empty";
if (colour < 4) {
_global.score = _global.score + 25;
_root.combo = _root.combo + 1;
} else {
_root.points = _root.points + 20;
}
_root.removed = _root.removed + 1;
this.swapDepths(99);
this.removeMovieClip();
}
}
}
}
on (press) {
if (this._alpha == 100) {
mousegrab = true;
}
}
onClipEvent (mouseUp) {
mousegrab = false;
}
Instance of Symbol 489 MovieClip "b1" in Frame 5
onClipEvent (load) {
id = int(_root.block) + 1;
if (id >= 2) {
if (_root.special == false) {
colour = Math.round((Math.random() * 2) + 1);
} else {
colour = 4;
}
this.gotoAndStop(colour);
control = true;
down = 0;
this._x = 207;
this._y = 27;
column = 10;
row = 10;
downspeed = downmax;
if (colour < 4) {
downmax = _root.speed;
} else {
downmax = _root.speed / 2;
}
mousegrab = false;
movespeed = 0;
_root.left2 = true;
_root.right2 = true;
count = 0;
rotate = 0;
rotatespeed = 0;
} else {
_root.count = _root.count - 1;
}
}
onClipEvent (enterFrame) {
if (id >= 2) {
if (control == true) {
down = down + 1;
if (down >= downspeed) {
this._y = this._y + 18;
row = row - 1;
down = 0;
}
if (Key.isDown(_global.control[0])) {
rotatespeed++;
}
if (rotatespeed == 2) {
rotatespeed = 0;
if ((rotate == 0) and (_root.colour[int(column) - 1][int(row) - 1] == "empty")) {
row = row - 1;
column = column - 1;
this._x = this._x - 18;
this._y = this._y + 18;
rotate = 1;
} else if ((rotate == 1) and (_root.colour[int(column) - 1][int(row) + 1] == "empty")) {
row = row + 1;
column = column - 1;
this._x = this._x - 18;
this._y = this._y - 18;
rotate = 2;
} else if ((rotate == 2) and (_root.colour[int(column) + 1][int(row) + 1] == "empty")) {
row = row + 1;
column = column + 1;
this._x = this._x + 18;
this._y = this._y - 18;
rotate = 3;
} else if ((rotate == 3) and (_root.colour[int(column) + 1][int(row) - 1] == "empty")) {
row = row - 1;
column = column + 1;
this._x = this._x + 18;
this._y = this._y + 18;
rotate = 0;
}
}
if (Key.isDown(_global.control[2]) and (!Key.isDown(_global.control[3]))) {
if ((_root.right1 == true) and (_root.right2 == true)) {
if ((down > 0) and (down < downspeed)) {
movespeed++;
}
if (movespeed == 2) {
movespeed = 0;
this._x = this._x + 18;
column = column + 1;
}
}
}
if (movespeed == 1) {
if ((column < 17) and (_root.id[int(column) + 1][row] == "empty")) {
_root.right2 = true;
} else {
_root.right2 = false;
}
}
if (Key.isDown(_global.control[3]) and (!Key.isDown(_global.control[2]))) {
if ((_root.left1 == true) and (_root.left2 == true)) {
if ((down > 0) and (down < downspeed)) {
movespeed++;
}
if (movespeed == 2) {
movespeed = 0;
this._x = this._x - 18;
column = column - 1;
}
}
}
if (movespeed == 1) {
if ((column > 0) and (_root.id[int(column) - 1][row] == "empty")) {
_root.left2 = true;
} else {
_root.left2 = false;
}
}
if (((!Key.isDown(_global.control[2])) and (!Key.isDown(_global.control[3]))) or (Key.isDown(_global.control[2]) and Key.isDown(_global.control[3]))) {
movespeed = 1;
}
if (Key.isDown(_global.control[1])) {
downspeed = int(downmax) / 5;
} else {
downspeed = downmax;
}
if ((row == 0) or (!(_root.colour[column][int(row) - 1] === "empty"))) {
control = false;
_root.count = _root.count - 1;
_root.colour[column][row] = colour;
_root.id[column][row] = id;
downspeed = 5;
}
} else {
if (row >= 9) {
_root.music.mySong.stop();
_root.stopAllSounds();
_root.gotoAndStop("Menu");
_global.played = true;
count = 0;
while (count < (_root.block + 2)) {
_root["b" + count].removeMovieClip();
count++;
}
}
if (mousegrab == true) {
if (_root._xmouse > (this._x + 9)) {
if (((column < 17) and (_root.colour[int(column) + 1][row] == "empty")) and (_root.colour[column][int(row) - 1] != "empty")) {
this._x = this._x + 18;
column = column + 1;
_root.colour[column][row] = colour;
_root.id[column][row] = id;
_root.colour[int(column) - 1][row] = "empty";
_root.id[int(column) - 1][row] = "empty";
}
}
if (_root._xmouse < (this._x - 9)) {
if (((column > 0) and (_root.colour[int(column) - 1][row] == "empty")) and (_root.colour[column][int(row) - 1] != "empty")) {
this._x = this._x - 18;
column = column - 1;
_root.colour[column][row] = colour;
_root.id[column][row] = id;
_root.colour[int(column) + 1][row] = "empty";
_root.id[int(column) + 1][row] = "empty";
}
}
}
if ((_root.colour[column][int(row) - 1] == "empty") and (row > 0)) {
this._y = this._y + 18;
row = row - 1;
_root.colour[column][row] = colour;
_root.id[column][row] = id;
_root.colour[column][int(row) + 1] = "empty";
_root.id[column][int(row) + 1] = "empty";
}
}
if (Key.isDown(_global.control[4])) {
if (this._alpha == 50) {
_root.colour[column][row] = "empty";
_root.id[column][row] = "empty";
_root.removed = _root.removed + 1;
if (colour < 4) {
_global.score = _global.score + 25;
_root.combo = _root.combo + 1;
} else {
_root.points = _root.points + 20;
}
this.swapDepths(99);
this.removeMovieClip();
}
}
}
}
on (press) {
if (this._alpha == 100) {
mousegrab = true;
}
}
onClipEvent (mouseUp) {
mousegrab = false;
}
Instance of Symbol 489 MovieClip "control" in Frame 5
onClipEvent (load) {
function clock() {
second = second + 1;
_global.timer = _global.timer + 1;
if (second == 60) {
minute = minute + 1;
second = 0;
}
if (second < 10) {
_root.timer.text = (String(minute) + ":0") + String(second);
} else {
_root.timer.text = (String(minute) + ":") + String(second);
}
}
_global.timer = 0;
second = 0;
minute = 0;
clock();
setInterval(clock, 1000);
counter = 0;
while (counter <= 20) {
i = 0;
while (i <= 11) {
_root.colour[counter][i] = "empty";
i++;
}
counter++;
}
counter = 0;
while (counter <= 20) {
i = 0;
while (i <= 11) {
_root.id[counter][i] = "empty";
i++;
}
counter++;
}
}
onClipEvent (enterFrame) {
if (!Key.isDown(32)) {
if (_root.combo > 30) {
if (_root.special == false) {
_root.specialbar._width = _root.specialbar._width + ((_root.combo - 30) * 2);
}
}
_root.combo = 0;
}
_root.score.text = _global.score;
_root.remove.text = _root.removed;
_root.level.text = _global.level;
_root.speed = 10 - (_global.level / 10);
if (_root.removed > 100000) {
_global.level = 50;
} else if (_root.removed > 90000) {
_global.level = 49;
} else if (_root.removed > 80000) {
_global.level = 48;
} else if (_root.removed > 75000) {
_global.level = 47;
} else if (_root.removed > 70000) {
_global.level = 46;
} else if (_root.removed > 65000) {
_global.level = 45;
} else if (_root.removed > 60000) {
_global.level = 44;
} else if (_root.removed > 55000) {
_global.level = 43;
} else if (_root.removed > 50000) {
_global.level = 42;
} else if (_root.removed > 45000) {
_global.level = 41;
} else if (_root.removed > 40000) {
_global.level = 40;
} else if (_root.removed > 35000) {
_global.level = 39;
} else if (_root.removed > 30000) {
_global.level = 38;
} else if (_root.removed > 25000) {
_global.level = 37;
} else if (_root.removed > 20000) {
_global.level = 36;
} else if (_root.removed > 15000) {
_global.level = 35;
} else if (_root.removed > 10000) {
_global.level = 34;
} else if (_root.removed > 9500) {
_global.level = 33;
} else if (_root.removed > 9000) {
_global.level = 32;
} else if (_root.removed > 8500) {
_global.level = 31;
} else if (_root.removed > 8000) {
_global.level = 30;
} else if (_root.removed > 7500) {
_global.level = 29;
} else if (_root.removed > 7000) {
_global.level = 28;
} else if (_root.removed > 6500) {
_global.level = 27;
} else if (_root.removed > 6000) {
_global.level = 26;
} else if (_root.removed > 5500) {
_global.level = 25;
} else if (_root.removed > 5000) {
_global.level = 24;
} else if (_root.removed > 4750) {
_global.level = 23;
} else if (_root.removed > 4500) {
_global.level = 22;
} else if (_root.removed > 4250) {
_global.level = 21;
} else if (_root.removed > 4000) {
_global.level = 20;
} else if (_root.removed > 3750) {
_global.level = 19;
} else if (_root.removed > 3500) {
_global.level = 18;
} else if (_root.removed > 3250) {
_global.level = 17;
} else if (_root.removed > 3000) {
_global.level = 16;
} else if (_root.removed > 2750) {
_global.level = 15;
} else if (_root.removed > 2500) {
_global.level = 14;
} else if (_root.removed > 2250) {
_global.level = 13;
} else if (_root.removed > 2000) {
_global.level = 12;
} else if (_root.removed > 1750) {
_global.level = 11;
} else if (_root.removed > 1500) {
_global.level = 10;
} else if (_root.removed > 1250) {
_global.level = 9;
} else if (_root.removed > 1000) {
_global.level = 8;
} else if (_root.removed > 750) {
_global.level = 7;
} else if (_root.removed > 500) {
_global.level = 6;
} else if (_root.removed > 250) {
_global.level = 5;
} else if (_root.removed > 100) {
_global.level = 4;
} else if (_root.removed > 50) {
_global.level = 3;
} else if (_root.removed > 10) {
_global.level = 2;
}
}
Instance of Symbol 489 MovieClip "crawler" in Frame 5
onClipEvent (load) {
function reset() {
u = 0;
ul = 0;
ur = 0;
uu = 0;
uul = 0;
uur = 0;
d = 0;
dl = 0;
dr = 0;
dd = 0;
ddl = 0;
ddr = 0;
l = 0;
ll = 0;
llu = 0;
lld = 0;
r = 0;
rr = 0;
rru = 0;
rrd = 0;
}
reset();
col = 0;
row = 0;
}
onClipEvent (enterFrame) {
row = 0;
while (row <= 10) {
col = 0;
while (col <= 17) {
reset();
if (!(_root.id[col][row] === "empty")) {
if (row == 0) {
lld = 2;
dl = 2;
d = 2;
dr = 2;
rrd = 2;
dd = 2;
dd = 2;
ddr = 2;
} else if (row == 1) {
ddl = 2;
dd = 2;
ddr = 2;
} else if (row == 9) {
uul = 2;
uu = 2;
uur = 2;
} else if (row == 10) {
llu = 2;
ul = 2;
u = 2;
ur = 2;
rru = 2;
uul = 2;
uu = 2;
uur = 2;
}
if (col == 0) {
uul = 2;
ul = 2;
l = 2;
dl = 2;
ddl = 2;
llu = 2;
ll = 2;
lld = 2;
} else if (col == 1) {
llu = 2;
ll = 2;
lld = 2;
} else if (col == 16) {
rru = 2;
rr = 2;
rrd = 2;
} else if (col == 17) {
uur = 2;
ur = 2;
r = 2;
dr = 2;
ddr = 2;
rru = 2;
rr = 2;
rrd = 2;
}
if (_root.colour[col][row] < 4) {
if (uul == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) - 1][int(row) + 2]) or (_root.colour[int(col) - 1][int(row) + 2] == 4)) {
uul = 1;
}
}
if (uu == 0) {
if ((_root.colour[col][row] == _root.colour[int(col)][int(row) + 2]) or (_root.colour[int(col)][int(row) + 2] == 4)) {
uu = 1;
}
}
if (uur == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) + 1][int(row) + 2]) or (_root.colour[int(col) + 1][int(row) + 2] == 4)) {
uur = 1;
}
}
if (llu == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) - 2][int(row) + 1]) or (_root.colour[int(col) - 2][int(row) + 1] == 4)) {
llu = 1;
}
}
if (ul == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) - 1][int(row) + 1]) or (_root.colour[int(col) - 1][int(row) + 1] == 4)) {
ul = 1;
}
}
if (u == 0) {
if ((_root.colour[col][row] == _root.colour[int(col)][int(row) + 1]) or (_root.colour[int(col)][int(row) + 1] == 4)) {
u = 1;
}
}
if (ur == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) + 1][int(row) + 1]) or (_root.colour[int(col) + 1][int(row) + 1] == 4)) {
ur = 1;
}
}
if (rru == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) + 2][int(row) + 1]) or (_root.colour[int(col) + 2][int(row) + 1] == 4)) {
rru = 1;
}
}
if (ll == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) - 2][int(row)]) or (_root.colour[int(col) - 2][int(row)] == 4)) {
ll = 1;
}
}
if (l == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) - 1][int(row)]) or (_root.colour[int(col) - 1][int(row)] == 4)) {
l = 1;
}
}
if (r == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) + 1][int(row)]) or (_root.colour[int(col) + 1][int(row)] == 4)) {
r = 1;
}
}
if (rr == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) + 2][int(row)]) or (_root.colour[int(col) + 2][int(row)] == 4)) {
rr = 1;
}
}
if (lld == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) - 2][int(row) - 1]) or (_root.colour[int(col) - 2][int(row) - 1] == 4)) {
lld = 1;
}
}
if (dl == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) - 1][int(row) - 1]) or (_root.colour[int(col) - 1][int(row) - 1] == 4)) {
dl = 1;
}
}
if (d == 0) {
if ((_root.colour[col][row] == _root.colour[int(col)][int(row) - 1]) or (_root.colour[int(col)][int(row) - 1] == 4)) {
d = 1;
}
}
if (dr == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) + 1][int(row) - 1]) or (_root.colour[int(col) + 1][int(row) - 1] == 4)) {
dr = 1;
}
}
if (rrd == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) + 2][int(row) - 1]) or (_root.colour[int(col) + 2][int(row) - 1] == 4)) {
rrd = 1;
}
}
if (ddl == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) - 1][int(row) - 2]) or (_root.colour[int(col) - 1][int(row) - 2] == 4)) {
ddl = 1;
}
}
if (dd == 0) {
if ((_root.colour[col][row] == _root.colour[int(col)][int(row) - 2]) or (_root.colour[int(col)][int(row) - 2] == 4)) {
dd = 1;
}
}
if (ddr == 0) {
if ((_root.colour[col][row] == _root.colour[int(col) + 1][int(row) - 2]) or (_root.colour[int(col) + 1][int(row) - 2] == 4)) {
ddr = 1;
}
}
} else {
if (uul == 0) {
if (!(_root.colour[col][row] === "empty")) {
uul = 1;
}
}
if (uu == 0) {
if (!(_root.colour[col][row] === "empty")) {
uu = 1;
}
}
if (uur == 0) {
if (!(_root.colour[col][row] === "empty")) {
uur = 1;
}
}
if (llu == 0) {
if (!(_root.colour[col][row] === "empty")) {
llu = 1;
}
}
if (ul == 0) {
if (!(_root.colour[col][row] === "empty")) {
ul = 1;
}
}
if (u == 0) {
if (!(_root.colour[col][row] === "empty")) {
u = 1;
}
}
if (ur == 0) {
if (!(_root.colour[col][row] === "empty")) {
ur = 1;
}
}
if (rru == 0) {
if (!(_root.colour[col][row] === "empty")) {
rru = 1;
}
}
if (ll == 0) {
if (!(_root.colour[col][row] === "empty")) {
ll = 1;
}
}
if (l == 0) {
if (!(_root.colour[col][row] === "empty")) {
l = 1;
}
}
if (r == 0) {
if (!(_root.colour[col][row] === "empty")) {
r = 1;
}
}
if (rr == 0) {
if (!(_root.colour[col][row] === "empty")) {
rr = 1;
}
}
if (lld == 0) {
if (!(_root.colour[col][row] === "empty")) {
lld = 1;
}
}
if (dl == 0) {
if (!(_root.colour[col][row] === "empty")) {
dl = 1;
}
}
if (d == 0) {
if (!(_root.colour[col][row] === "empty")) {
d = 1;
}
}
if (dr == 0) {
if (!(_root.colour[col][row] === "empty")) {
dr = 1;
}
}
if (rrd == 0) {
if (!(_root.colour[col][row] === "empty")) {
rrd = 1;
}
}
if (ddl == 0) {
if (!(_root.colour[col][row] === "empty")) {
ddl = 1;
}
}
if (dd == 0) {
if (!(_root.colour[col][row] === "empty")) {
dd = 1;
}
}
if (ddr == 0) {
if (!(_root.colour[col][row] === "empty")) {
ddr = 1;
}
}
}
if (((((uu == 1) and (uur == 1)) and (u == 1)) and (ur == 1)) and (r == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else if (((((rr == 1) and (rrd == 1)) and (r == 1)) and (dr == 1)) and (d == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else if (((((dd == 1) and (ddl == 1)) and (d == 1)) and (dl == 1)) and (l == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else if (((((ll == 1) and (llu == 1)) and (l == 1)) and (ul == 1)) and (u == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else if (((((uu == 1) and (uul == 1)) and (u == 1)) and (ul == 1)) and (l == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else if (((((rr == 1) and (rru == 1)) and (r == 1)) and (ur == 1)) and (u == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else if (((((dd == 1) and (ddr == 1)) and (d == 1)) and (dr == 1)) and (r == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else if (((((ll == 1) and (lld == 1)) and (l == 1)) and (dl == 1)) and (d == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else if (((((u == 1) and (ur == 1)) and (r == 1)) and (dr == 1)) and (d == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else if (((((u == 1) and (ul == 1)) and (l == 1)) and (dl == 1)) and (d == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else if (((((l == 1) and (ul == 1)) and (u == 1)) and (ur == 1)) and (r == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else if (((((l == 1) and (dl == 1)) and (d == 1)) and (dr == 1)) and (r == 1)) {
_root["b" + [_root.id[col][row]]]._alpha = 50;
} else {
_root["b" + [_root.id[col][row]]]._alpha = 100;
}
}
col++;
}
row++;
}
row = 0;
col = 0;
}
Instance of Symbol 489 MovieClip "goal" in Frame 5
onClipEvent (enterFrame) {
if (_global.goal == 1) {
if (((_root.control.minute * 60) + _root.control.second) >= _global.goalend) {
count = 0;
while (count < (_root.block + 2)) {
_root["b" + count].removeMovieClip();
count++;
}
_global.played = true;
_root.music.mySong.stop();
_root.gotoAndStop("Menu");
}
}
if (_global.goal == 2) {
if (_global.score >= _global.goalend) {
count = 0;
while (count < (_root.block + 2)) {
_root["b" + count].removeMovieClip();
count++;
}
_global.played = true;
_root.control.clearInterval(clock);
_root.music.mySong.stop();
_root.gotoAndStop("Menu");
}
}
}
Instance of Symbol 489 MovieClip "music" in Frame 5
onClipEvent (load) {
mySong = new Sound(this);
song = Math.round((Math.random() * 2) + 1);
if (_global.musictype == "all") {
style = Math.round(Math.random() * 3);
if (style == 0) {
mySong.attachSound("rock" + song);
} else if (style == 1) {
mySong.attachSound("ska" + song);
} else if (style == 2) {
mySong.attachSound("techno" + song);
} else if (style == 3) {
mySong.attachSound("punk" + song);
}
} else {
mySong.attachSound(String(_global.musictype) + song);
}
mySong.start(0, 0);
}
onClipEvent (enterFrame) {
style = Math.round(Math.random() * 3);
if (_global.musictype == "all") {
if (mySong.position == mySong.duration) {
style = Math.round(Math.random() * 3);
if (song < 3) {
song = song + 1;
} else {
song = 0;
}
if (style == 0) {
mySong.attachSound("rock" + String(song));
} else if (style == 1) {
mySong.attachSound("ska" + String(song));
} else if (style == 2) {
mySong.attachSound("techno" + String(song));
} else if (style == 3) {
mySong.attachSound("punk" + String(song));
}
mySong.start(0, 0);
}
} else if (mySong.position == mySong.duration) {
if (song < 3) {
song = song + 1;
} else {
song = 0;
}
mySong.attachSound(String(_global.musictype) + song);
mySong.start(0, 0);
}
}
Symbol 100 MovieClip Frame 141
gotoAndPlay ("bb");
Symbol 178 MovieClip Frame 40
stop();
Symbol 190 Button
on (press) {
_root.play();
}
Symbol 191 Button
on (press) {
play();
}
Instance of Symbol 176 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (load) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("play_button");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 194 MovieClip Frame 130
stop();
Symbol 194 MovieClip Frame 154
_root.play();
Symbol 199 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 247 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Instance of Symbol 302 MovieClip in Symbol 309 MovieClip Frame 1
on (release) {
_root.getURL("http://www.newgrounds.com/", "_blank");
}
Instance of Symbol 306 MovieClip in Symbol 309 MovieClip Frame 1
on (release) {
_root.getURL("http://www.armorgames.com/", "_blank");
}
Instance of Symbol 308 MovieClip in Symbol 309 MovieClip Frame 1
on (release) {
_root.mainsection._visible = true;
_root.mainsection.gotoAndStop(4);
}
Instance of Symbol 315 MovieClip in Symbol 322 MovieClip Frame 1
on (release) {
_root.mainsection._visible = true;
_root.mainsection.gotoAndStop(2);
}
Instance of Symbol 317 MovieClip in Symbol 322 MovieClip Frame 1
on (release) {
_root.mainsection._visible = true;
_root.mainsection.gotoAndStop(3);
}
Instance of Symbol 319 MovieClip in Symbol 322 MovieClip Frame 1
on (release) {
_root.mainsection._visible = true;
_root.mainsection.gotoAndStop(5);
}
Instance of Symbol 321 MovieClip in Symbol 322 MovieClip Frame 1
on (release) {
_root.mainsection._visible = true;
_root.mainsection.gotoAndStop(1);
}
Symbol 419 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 1
stop();
Instance of Symbol 329 MovieClip "rock" in Symbol 464 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (release) {
_parent.punk.gotoAndStop(1);
_parent.ska.gotoAndStop(1);
_parent.rock.gotoAndStop(2);
_parent.techno.gotoAndStop(1);
_parent.allmusic.gotoAndStop(1);
_global.musictype = "rock";
}
Instance of Symbol 333 MovieClip "ska" in Symbol 464 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (release) {
_parent.punk.gotoAndStop(1);
_parent.ska.gotoAndStop(2);
_parent.rock.gotoAndStop(1);
_parent.techno.gotoAndStop(1);
_parent.allmusic.gotoAndStop(1);
_global.musictype = "ska";
}
Instance of Symbol 337 MovieClip "techno" in Symbol 464 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (release) {
_parent.punk.gotoAndStop(1);
_parent.ska.gotoAndStop(1);
_parent.rock.gotoAndStop(1);
_parent.techno.gotoAndStop(2);
_parent.allmusic.gotoAndStop(1);
_global.musictype = "techno";
}
Instance of Symbol 341 MovieClip "punk" in Symbol 464 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
on (release) {
_parent.punk.gotoAndStop(2);
_parent.ska.gotoAndStop(1);
_parent.rock.gotoAndStop(1);
_parent.techno.gotoAndStop(1);
_parent.allmusic.gotoAndStop(1);
_global.musictype = "punk";
}
Instance of Symbol 344 MovieClip "allmusic" in Symbol 464 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
on (release) {
_parent.punk.gotoAndStop(1);
_parent.ska.gotoAndStop(1);
_parent.rock.gotoAndStop(1);
_parent.techno.gotoAndStop(1);
_parent.allmusic.gotoAndStop(2);
_global.musictype = "all";
}
Instance of Symbol 348 MovieClip "levelslider" in Symbol 464 MovieClip Frame 1
onClipEvent (load) {
sety = this._y;
setx = this._x;
this._x = _root.levelbar._x;
}
onClipEvent (enterFrame) {
_parent.txtlevel.text = Math.round((this._x - _parent.levelbar._x) / 3);
_global.level = Math.round((this._x - _parent.levelbar._x) / 3);
}
on (press) {
this.startDrag(true, setx, sety, (setx + _parent.levelbar._width) - 3, sety);
}
on (release, releaseOutside) {
this.stopDrag();
}
Instance of Symbol 351 MovieClip in Symbol 464 MovieClip Frame 1
on (release) {
stopAllSounds();
_root.gotoAndStop("Game");
_global.level = _root.txtlevel.text;
}
Instance of Symbol 396 MovieClip in Symbol 464 MovieClip Frame 2
on (release) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1271;
__top10_send__.kid = "LVHDCU";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.hsname[i] = __top10_receive__["name" + i];
_root.hsscore[i] = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
onClipEvent (load) {
i = 0;
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1271;
__top10_send__.kid = "LVHDCU";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.hsname[i] = __top10_receive__["name" + i];
_root.hsscore[i] = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_parent[("_name" + i) + "_"].text = _root.hsname[i];
_parent[("_score" + i) + "_"].text = _root.hsscore[i];
i++;
}
}
Instance of Symbol 398 MovieClip in Symbol 464 MovieClip Frame 2
on (release) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1275;
__top10_send__.kid = "DFREVI";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.hsname[i] = __top10_receive__["name" + i];
_root.hsscore[i] = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_parent[("_name" + i) + "_"].text = _root.hsname[i];
_parent[("_score" + i) + "_"].text = _root.hsscore[i];
i++;
}
}
Instance of Symbol 400 MovieClip in Symbol 464 MovieClip Frame 2
on (release) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1316;
__top10_send__.kid = "ABZJPC";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.hsname[i] = __top10_receive__["name" + i];
_root.hsscore[i] = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_parent[("_name" + i) + "_"].text = _root.hsname[i];
_parent[("_score" + i) + "_"].text = _root.hsscore[i];
i++;
}
}
Instance of Symbol 402 MovieClip in Symbol 464 MovieClip Frame 2
on (release) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1317;
__top10_send__.kid = "OQVDQG";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.hsname[i] = __top10_receive__["name" + i];
_root.hsscore[i] = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_parent[("_name" + i) + "_"].text = _root.hsname[i];
_parent[("_score" + i) + "_"].text = _root.hsscore[i];
i++;
}
}
Instance of Symbol 404 MovieClip in Symbol 464 MovieClip Frame 2
on (release) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1366;
__top10_send__.kid = "SEEOEU";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.hsname[i] = __top10_receive__["name" + i];
_root.hsscore[i] = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_parent[("_name" + i) + "_"].text = _root.hsname[i];
_parent[("_score" + i) + "_"].text = _root.hsscore[i];
i++;
}
}
Instance of Symbol 406 MovieClip in Symbol 464 MovieClip Frame 2
on (release) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1371;
__top10_send__.kid = "ZFCPSG";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.hsname[i] = __top10_receive__["name" + i];
_root.hsscore[i] = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_parent[("_name" + i) + "_"].text = _root.hsname[i];
_parent[("_score" + i) + "_"].text = _root.hsscore[i];
i++;
}
}
Instance of Symbol 408 MovieClip in Symbol 464 MovieClip Frame 2
on (release) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1277;
__top10_send__.kid = "GALEOI";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.hsname[i] = __top10_receive__["name" + i];
_root.hsscore[i] = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_parent[("_name" + i) + "_"].text = _root.hsname[i];
_parent[("_score" + i) + "_"].text = _root.hsscore[i];
i++;
}
}
Instance of Symbol 410 MovieClip in Symbol 464 MovieClip Frame 2
on (release) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1372;
__top10_send__.kid = "HXNWJT";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.hsname[i] = __top10_receive__["name" + i];
_root.hsscore[i] = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_parent[("_name" + i) + "_"].text = _root.hsname[i];
_parent[("_score" + i) + "_"].text = _root.hsscore[i];
i++;
}
}
Instance of Symbol 412 MovieClip in Symbol 464 MovieClip Frame 2
on (release) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 1374;
__top10_send__.kid = "IUKBGF";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.hsname[i] = __top10_receive__["name" + i];
_root.hsscore[i] = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i = 0;
while (i < 11) {
_parent[("_name" + i) + "_"].text = _root.hsname[i];
_parent[("_score" + i) + "_"].text = _root.hsscore[i];
i++;
}
}
Symbol 464 MovieClip Frame 3
_root.mainsection.profilename.text = _global.profilename;
_root.mainsection.rotateblocks.rotatekey.text = _global.controlstext[0];
_root.mainsection.movedown.downkey.text = _global.controlstext[1];
_root.mainsection.moveright.rightkey.text = _global.controlstext[2];
_root.mainsection.moveleft.leftkey.text = _global.controlstext[3];
_root.mainsection.clearblocks.clearkey.text = _global.controlstext[4];
keys = 5;
keyListener = new Object();
keyListener.onKeyDown = function () {
_global.control[keys] = Key.getCode();
if (_global.control[keys] == 32) {
_global.controlstext[keys] = "Space";
} else if (_global.control[keys] == 46) {
_global.controlstext[keys] = "Delete";
} else if (_global.control[keys] == 45) {
_global.controlstext[keys] = "Insert";
} else if (_global.control[keys] == 40) {
_global.controlstext[keys] = "Down";
} else if (_global.control[keys] == 39) {
_global.controlstext[keys] = "Right";
} else if (_global.control[keys] == 38) {
_global.controlstext[keys] = "Up";
} else if (_global.control[keys] == 37) {
_global.controlstext[keys] = "Left";
} else if (_global.control[keys] == 36) {
_global.controlstext[keys] = "Home";
} else if (_global.control[keys] == 35) {
_global.controlstext[keys] = "End";
} else if (_global.control[keys] == 34) {
_global.controlstext[keys] = "Pagedown";
} else if (_global.control[keys] == 33) {
_global.controlstext[keys] = "Pageup";
} else if (_global.control[keys] == 27) {
_global.controlstext[keys] = "Escape";
} else if (_global.control[keys] == 20) {
_global.controlstext[keys] = "Capslock";
} else if (_global.control[keys] == 17) {
_global.controlstext[keys] = "Control";
} else if (_global.control[keys] == 16) {
_global.controlstext[keys] = "Shift";
} else if (_global.control[keys] == 13) {
_global.controlstext[keys] = "Enter";
} else if (_global.control[keys] == 9) {
_global.controlstext[keys] = "Tab";
} else if (_global.control[keys] == 8) {
_global.controlstext[keys] = "Backspace";
} else {
_global.controlstext[keys] = String.fromCharCode(_global.control[keys]);
}
_global.controlstext[0].toUpperCase();
_root.mainsection.rotateblocks.rotatekey.text = _global.controlstext[0];
_root.mainsection.movedown.downkey.text = _global.controlstext[1];
_root.mainsection.moveright.rightkey.text = _global.controlstext[2];
_root.mainsection.moveleft.leftkey.text = _global.controlstext[3];
_root.mainsection.clearblocks.clearkey.text = _global.controlstext[4];
user.data.rotatekey = _global.control[0];
user.data.downkey = _global.control[1];
user.data.rightkey = _global.control[2];
user.data.leftkey = _global.control[3];
user.data.clearkey = _global.control[4];
keys = 5;
_root.mainsection.movedown.gotoAndStop(1);
_root.mainsection.moveleft.gotoAndStop(1);
_root.mainsection.moveright.gotoAndStop(1);
_root.mainsection.clearblocks.gotoAndStop(1);
_root.mainsection.rotateblocks.gotoAndStop(1);
};
Key.addListener(keyListener);
Instance of Symbol 419 MovieClip "rotateblocks" in Symbol 464 MovieClip Frame 3
on (release) {
this._parent.movedown.gotoAndStop(1);
this._parent.moveleft.gotoAndStop(1);
this._parent.moveright.gotoAndStop(1);
this._parent.clearblocks.gotoAndStop(1);
this._parent.rotateblocks.gotoAndStop(2);
_parent.keys = 0;
}
Instance of Symbol 423 MovieClip "movedown" in Symbol 464 MovieClip Frame 3
on (release) {
this._parent.movedown.gotoAndStop(2);
this._parent.moveleft.gotoAndStop(1);
this._parent.moveright.gotoAndStop(1);
this._parent.clearblocks.gotoAndStop(1);
this._parent.rotateblocks.gotoAndStop(1);
_parent.keys = 1;
}
Instance of Symbol 427 MovieClip "moveright" in Symbol 464 MovieClip Frame 3
on (release) {
this._parent.movedown.gotoAndStop(1);
this._parent.moveleft.gotoAndStop(1);
this._parent.moveright.gotoAndStop(2);
this._parent.clearblocks.gotoAndStop(1);
this._parent.rotateblocks.gotoAndStop(1);
_parent.keys = 2;
}
Instance of Symbol 431 MovieClip "moveleft" in Symbol 464 MovieClip Frame 3
on (release) {
this._parent.movedown.gotoAndStop(1);
this._parent.moveleft.gotoAndStop(2);
this._parent.moveright.gotoAndStop(1);
this._parent.clearblocks.gotoAndStop(1);
this._parent.rotateblocks.gotoAndStop(1);
_parent.keys = 3;
}
Instance of Symbol 435 MovieClip "clearblocks" in Symbol 464 MovieClip Frame 3
on (release) {
this._parent.movedown.gotoAndStop(1);
this._parent.moveleft.gotoAndStop(1);
this._parent.moveright.gotoAndStop(1);
this._parent.clearblocks.gotoAndStop(2);
this._parent.rotateblocks.gotoAndStop(1);
_parent.keys = 4;
}
Instance of Symbol 329 MovieClip "rock" in Symbol 464 MovieClip Frame 5
onClipEvent (load) {
this.stop();
}
on (release) {
_parent.punk.gotoAndStop(1);
_parent.ska.gotoAndStop(1);
_parent.rock.gotoAndStop(2);
_parent.techno.gotoAndStop(1);
_parent.allmusic.gotoAndStop(1);
_global.musictype = "rock";
}
Instance of Symbol 333 MovieClip "ska" in Symbol 464 MovieClip Frame 5
onClipEvent (load) {
this.stop();
}
on (release) {
_parent.punk.gotoAndStop(1);
_parent.ska.gotoAndStop(2);
_parent.rock.gotoAndStop(1);
_parent.techno.gotoAndStop(1);
_parent.allmusic.gotoAndStop(1);
_global.musictype = "ska";
}
Instance of Symbol 337 MovieClip "techno" in Symbol 464 MovieClip Frame 5
onClipEvent (load) {
this.stop();
}
on (release) {
_parent.punk.gotoAndStop(1);
_parent.ska.gotoAndStop(1);
_parent.rock.gotoAndStop(1);
_parent.techno.gotoAndStop(2);
_parent.allmusic.gotoAndStop(1);
_global.musictype = "techno";
}
Instance of Symbol 341 MovieClip "punk" in Symbol 464 MovieClip Frame 5
onClipEvent (load) {
this.stop();
}
on (release) {
_parent.punk.gotoAndStop(2);
_parent.ska.gotoAndStop(1);
_parent.rock.gotoAndStop(1);
_parent.techno.gotoAndStop(1);
_parent.allmusic.gotoAndStop(1);
_global.musictype = "punk";
}
Instance of Symbol 344 MovieClip "allmusic" in Symbol 464 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(2);
}
on (release) {
_parent.punk.gotoAndStop(1);
_parent.ska.gotoAndStop(1);
_parent.rock.gotoAndStop(1);
_parent.techno.gotoAndStop(1);
_parent.allmusic.gotoAndStop(2);
_global.musictype = "all";
}
Instance of Symbol 351 MovieClip in Symbol 464 MovieClip Frame 5
on (release) {
stopAllSounds();
_global.goal = 1;
_global.goalend = _parent.txttime.text;
_root.gotoAndStop("Game");
}
Instance of Symbol 351 MovieClip in Symbol 464 MovieClip Frame 5
on (release) {
stopAllSounds();
_global.goal = 2;
_global.goalend = _parent.txtscore.text;
_root.gotoAndStop("Game");
}
Symbol 479 MovieClip Frame 1
stop();
Instance of Symbol 470 MovieClip in Symbol 479 MovieClip Frame 1
on (release, keyPress "<Enter>") {
if (this._parent.profileinput.text == "") {
_global.profilename = "Default";
} else {
_global.profilename = this._parent.profileinput.text;
}
_parent._visible = false;
}
Instance of Symbol 470 MovieClip in Symbol 479 MovieClip Frame 2
on (release, keyPress "<Enter>") {
_parent._visible = false;
}
Instance of Symbol 473 MovieClip "submitbutton" in Symbol 479 MovieClip Frame 3
on (release) {
_root.endmenu.ab20_09.sendAndLoad("http://armorbot.com/s_b", _root.endmenu.ab20_09, "POST");
_parent._visible = false;
_global.played = false;
_global.goal = 0;
}
Instance of Symbol 475 MovieClip in Symbol 479 MovieClip Frame 3
on (release) {
_global.goal = 0;
_parent._visible = false;
_global.played = false;
}
Symbol 489 MovieClip Frame 1
stop();