Frame 1
stopDrag();
setProperty("/bat", _x , "210");
setProperty("/bat", _y , "400");
setProperty("/ball", _x , "210");
setProperty("/ball", _y , "370");
setProperty("/soundFX", _visible , "0");
setProperty("/yellow", _visible , "0");
setProperty("/blue", _visible , "0");
setProperty("/green", _visible , "0");
setProperty("/red", _visible , "0");
stop();
Frame 2
startDrag ("/bat", true, "40", "400", "380", "400");
call("setup_level1");
Frame 3
setProperty("/ball", _x , "270");
setProperty("/ball", _y , "383");
ballDiameter = "12";
ballRadius = ballDiameter / 2;
batWidth = "60";
bat_collision_line = 390 - ballRadius;
timer = getTimer();
score = "0";
addWallScore = "0";
addBatScore = "0";
speed_ind = "1";
lives_left = "3";
edge_cols = "10";
edge_rows = "10";
release = "0";
started = "0";
button = "1";
onscreen_E = "0";
onscreen_C = "0";
onscreen_L = "0";
onscreen_SL = "0";
onscreen_B = "0";
onscreen_SH = "0";
onscreen_F = "0";
expanded = "0";
caught = "0";
armed = "0";
shrunken = "0";
Frame 4
if (started == "0") {
gotoAndPlay (50);
}
if (noOfBricks == "0") {
gotoAndPlay (62);
}
speed_x = vector_x * magnitude;
speed_y = vector_y * magnitude;
ball_xB = getProperty("/ball", _x);
ball_yB = getProperty("/ball", _y);
ball_xA = ball_xB;
ball_yA = ball_yB;
ball_xB = ball_xA + speed_x;
ball_yB = ball_yA + speed_y;
if (direction eq "NE") {
call("NE");
} else if (direction eq "NW") {
call("NW");
} else if (direction eq "SE") {
call("SE");
} else if (direction eq "SW") {
call("SW");
}
if ("410" < ball_xB) {
ball_xB = "410" - ballRadius;
vector_x = -vector_x;
}
if (ball_xB < "10") {
ball_xB = "10" + ballRadius;
vector_x = -vector_x;
}
if (caught == "1") {
if (ball_yB == bat_collision_line) {
bat_left = getProperty("/bat", _x) - (batWidth / "2");
bat_right = getProperty("/bat", _x) + (batWidth / "2");
if ((ball_xB >= bat_left) or (bat_right >= ball_xB)) {
gotoAndPlay (34);
}
}
}
if ("400" < ball_yB) {
gotoAndPlay (55);
}
point_x1 = getProperty("/ball", _x);
point_y1 = getProperty("/ball", _y);
setProperty("/ball", _x , ball_xB);
setProperty("/ball", _y , ball_yB);
point_x2 = getProperty("/ball", _x);
point_y2 = getProperty("/ball", _y);
if (("0" < (point_x2 - point_x1)) and ((point_y2 - point_y1) < "0")) {
direction = "NE";
} else if (("0" < (point_x2 - point_x1)) and ("0" < (point_y2 - point_y1))) {
direction = "SE";
} else if (((point_x2 - point_x1) < "0") and ("0" < (point_y2 - point_y1))) {
direction = "SW";
} else if (((point_x2 - point_x1) < "0") and ((point_y2 - point_y1) < "0")) {
direction = "NW";
}
Frame 5
bricksLeft = noOfBricks;
if (onscreen_B == "1") {
call("BonusLife");
}
if (onscreen_E == "1") {
call("Expand");
}
if (onscreen_C == "1") {
call("Catch");
}
if (onscreen_SL == "1") {
call("Slow");
}
if (onscreen_F == "1") {
call("Fast");
}
if (onscreen_SH == "1") {
call("Shrink");
}
if (started == "1") {
timerCheck = getTimer();
if ((timerCheck - timer) >= "15000") {
magnitude = magnitude + "1";
timer = getTimer();
addWallScore = addWallScore + "50";
addBatScore = addBatScore + "100";
speed_ind = speed_ind + "1";
}
}
gotoAndPlay (4);
Frame 7
i = "1";
m = (ball_yB - ball_yA) / (ball_xB - ball_xA);
c = ball_yA - (m * ball_xA);
row = int((ball_yA - edge_rows) / "20");
col = int((ball_xA - edge_cols) / "40");
H_collision_line = ((row + "1") * "20") - "4";
if ((H_collision_line < ball_yA) and (H_collision_line >= ball_yB)) {
Set("ball_y" add i, H_collision_line);
Set("ball_x" add i, (eval ("ball_y" add i) - c) / m);
i = i + "1";
}
eol = "0";
while (eol == "0") {
H_collision_line = H_collision_line - "20";
if (H_collision_line < ball_yB) {
eol = "1";
} else {
Set("ball_y" add i, H_collision_line);
Set("ball_x" add i, (eval ("ball_y" add i) - c) / m);
i = i + "1";
}
}
V_collision_line = ((col + "1") * "40") + "4";
if ((ball_xA < V_collision_line) and (ball_xB >= V_collision_line)) {
Set("ball_x" add i, V_collision_line);
Set("ball_y" add i, (m * eval ("ball_x" add i)) + c);
i = i + "1";
}
eol = "0";
while (eol == "0") {
V_collision_line = V_collision_line + "40";
if (ball_xB < V_collision_line) {
eol = "1";
} else {
Set("ball_x" add i, V_collision_line);
Set("ball_y" add i, (m * eval ("ball_x" add i)) + c);
i = i + "1";
}
}
noOfpts = i - "1";
j = "1";
while (noOfpts >= j) {
Set("manhattan" add j, ((eval ("ball_x" add j) - ball_xA) * (eval ("ball_x" add j) - ball_xA)) + ((eval ("ball_y" add j) - ball_yA) * (eval ("ball_y" add j) - ball_yA)));
Set("dist" add j, "0");
j = j + "1";
}
n = "1";
while (noOfpts >= n) {
d = "1";
Set("dist" add d, eval ("manhattan" add n));
while ((noOfpts - "1") >= d) {
if (eval ("dist" add (d + "1")) < eval ("dist" add d)) {
distTemp = eval ("dist" add d);
Set("dist" add d, eval ("dist" add (d + "1")));
Set("dist" add (d + "1"), distTemp);
}
d = d + "1";
}
n = n + "1";
}
d = "1";
while (noOfpts >= d) {
n = "1";
while (noOfpts >= n) {
if (eval ("dist" add d) == eval ("manhattan" add n)) {
pt_col = int((eval ("ball_x" add n) - edge_cols) / "40");
pt_row = int((eval ("ball_y" add n) - edge_rows) / "20");
B_collision_line = ((pt_row + "1") * "20") - "4";
L_collision_line = ((pt_col + "1") * "40") + "4";
wall_collision_line = "410" - ballRadius;
ceiling_collision_line = "10" + ballRadius;
if (eval ("ball_y" add n) == ceiling_collision_line) {
tellTarget ("/soundFX") {
gotoAndPlay ("hit");
};
score = score + addWallScore;
vector_y = -vector_y;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
} else if (eval ("ball_y" add n) == B_collision_line) {
isVisible1 = getProperty(("/brick" add pt_col) add (pt_row - "1"), _currentframe);
isVisible2 = getProperty(("/brick" add (pt_col + "1")) add (pt_row - "1"), _currentframe);
if (((isVisible1 == "1") or (isVisible1 == "2")) or (isVisible1 == "3")) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = pt_col add (pt_row - "1");
tellTarget (("/brick" add pt_col) add (pt_row - "1")) {
nextFrame();
};
vector_y = -vector_y;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
} else if ((((isVisible2 == "1") or (isVisible2 == "2")) or (isVisible2 == "3")) and (eval ("ball_x" add n) >= L_collision_line)) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col + "1") add (pt_row - "1");
tellTarget (("/brick" add (pt_col + "1")) add (pt_row - "1")) {
nextFrame();
};
vector_y = -vector_y;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
}
}
if (eval ("ball_x" add n) == wall_collision_line) {
tellTarget ("/soundFX") {
gotoAndPlay ("hit");
};
score = score + addWallScore;
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
} else if (eval ("ball_x" add n) == L_collision_line) {
isVisible1 = getProperty(("/brick" add (pt_col + "1")) add pt_row, _currentframe);
isVisible2 = getProperty(("/brick" add (pt_col + "1")) add (pt_row - "1"), _currentframe);
if (((isVisible1 == "1") or (isVisible1 == "2")) or (isVisible1 == "3")) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col + "1") add pt_row;
tellTarget (("/brick" add (pt_col + "1")) add pt_row) {
nextFrame();
};
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
} else if ((((isVisible2 == "1") or (isVisible2 == "2")) or (isVisible2 == "3")) and (B_collision_line >= eval ("ball_y" add n))) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col + "1") add (pt_row - "1");
tellTarget (("/brick" add (pt_col + "1")) add (pt_row - "1")) {
nextFrame();
};
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
}
}
n = noOfpts;
}
n = n + "1";
}
d = d + "1";
}
Frame 9
i = "1";
m = (ball_yB - ball_yA) / (ball_xB - ball_xA);
c = ball_yA - (m * ball_xA);
row = int((ball_yA - edge_rows) / "20");
col = int((ball_xA - edge_cols) / "40");
H_collision_line = ((row + "1") * "20") - "4";
if ((H_collision_line < ball_yA) and (H_collision_line >= ball_yB)) {
Set("ball_y" add i, H_collision_line);
Set("ball_x" add i, (eval ("ball_y" add i) - c) / m);
i = i + "1";
}
eol = "0";
while (eol == "0") {
H_collision_line = H_collision_line - "20";
if (H_collision_line < ball_yB) {
eol = "1";
} else {
Set("ball_y" add i, H_collision_line);
Set("ball_x" add i, (eval ("ball_y" add i) - c) / m);
i = i + "1";
}
}
V_collision_line = ((col + "1") * "40") - "24";
if ((V_collision_line < ball_xA) and (V_collision_line >= ball_xB)) {
Set("ball_x" add i, V_collision_line);
Set("ball_y" add i, (m * eval ("ball_x" add i)) + c);
i = i + "1";
}
eol = "0";
while (eol == "0") {
V_collision_line = V_collision_line - "40";
if (V_collision_line < ball_xB) {
eol = "1";
} else {
Set("ball_x" add i, V_collision_line);
Set("ball_y" add i, (m * eval ("ball_x" add i)) + c);
i = i + "1";
}
}
noOfpts = i - "1";
j = "1";
while (noOfpts >= j) {
Set("manhattan" add j, ((eval ("ball_x" add j) - ball_xA) * (eval ("ball_x" add j) - ball_xA)) + ((eval ("ball_y" add j) - ball_yA) * (eval ("ball_y" add j) - ball_yA)));
Set("dist" add j, "0");
j = j + "1";
}
n = "1";
while (noOfpts >= n) {
d = "1";
Set("dist" add d, eval ("manhattan" add n));
while ((noOfpts - "1") >= d) {
if (eval ("dist" add (d + "1")) < eval ("dist" add d)) {
distTemp = eval ("dist" add d);
Set("dist" add d, eval ("dist" add (d + "1")));
Set("dist" add (d + "1"), distTemp);
}
d = d + "1";
}
n = n + "1";
}
d = "1";
while (noOfpts >= d) {
n = "1";
while (noOfpts >= n) {
if (eval ("dist" add d) == eval ("manhattan" add n)) {
pt_col = int((eval ("ball_x" add n) - edge_cols) / "40");
pt_row = int((eval ("ball_y" add n) - edge_rows) / "20");
B_collision_line = ((pt_row + "1") * "20") - "4";
R_collision_line = ((pt_col + "1") * "40") - "24";
wall_collision_line = "10" + ballRadius;
ceiling_collision_line = "10" + ballRadius;
if (eval ("ball_y" add n) == ceiling_collision_line) {
tellTarget ("/soundFX") {
gotoAndPlay ("hit");
};
score = score + addWallScore;
vector_y = -vector_y;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
} else if (eval ("ball_y" add n) == B_collision_line) {
isVisible1 = getProperty(("/brick" add pt_col) add (pt_row - "1"), _currentframe);
isVisible2 = getProperty(("/brick" add (pt_col - "1")) add (pt_row - "1"), _currentframe);
if (((isVisible1 == "1") or (isVisible1 == "2")) or (isVisible1 == "3")) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = pt_col add (pt_row - "1");
tellTarget (("/brick" add pt_col) add (pt_row - "1")) {
nextFrame();
};
vector_y = -vector_y;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
} else if ((((isVisible2 == "1") or (isVisible2 == "2")) or (isVisible2 == "3")) and (R_collision_line >= eval ("ball_x" add n))) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col - "1") add (pt_row - "1");
tellTarget (("/brick" add (pt_col - "1")) add (pt_row - "1")) {
nextFrame();
};
vector_y = -vector_y;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
}
}
if (eval ("ball_x" add n) == wall_collision_line) {
tellTarget ("/soundFX") {
gotoAndPlay ("hit");
};
score = score + addWallScore;
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
} else if (eval ("ball_x" add n) == R_collision_line) {
isVisible1 = getProperty(("/brick" add (pt_col - "1")) add pt_row, _currentframe);
isVisible2 = getProperty(("/brick" add (pt_col - "1")) add (pt_row - "1"), _currentframe);
if (((isVisible1 == "1") or (isVisible1 == "2")) or (isVisible1 == "3")) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col - "1") add pt_row;
tellTarget (("/brick" add (pt_col - "1")) add pt_row) {
nextFrame();
};
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
} else if ((((isVisible2 == "1") or (isVisible2 == "2")) or (isVisible2 == "3")) and (B_collision_line >= eval ("ball_y" add n))) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col - "1") add (pt_row - "1");
tellTarget (("/brick" add (pt_col - "1")) add (pt_row - "1")) {
nextFrame();
};
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
}
}
n = noOfpts;
}
n = n + "1";
}
d = d + "1";
}
Frame 11
i = "1";
m = (ball_yB - ball_yA) / (ball_xB - ball_xA);
c = ball_yA - (m * ball_xA);
row = int((ball_yA - edge_rows) / "20");
col = int((ball_xA - edge_cols) / "40");
H_collision_line = ((row + "1") * "20") + "4";
if ((ball_yA < H_collision_line) and (ball_yB >= H_collision_line)) {
Set("ball_y" add i, H_collision_line);
Set("ball_x" add i, (eval ("ball_y" add i) - c) / m);
i = i + "1";
}
eol = "0";
while (eol == "0") {
H_collision_line = H_collision_line + "20";
if (ball_yB < H_collision_line) {
eol = "1";
} else {
Set("ball_y" add i, H_collision_line);
Set("ball_x" add i, (eval ("ball_y" add i) - c) / m);
i = i + "1";
}
}
V_collision_line = ((col + "1") * "40") + "4";
if ((ball_xA < V_collision_line) and (ball_xB >= V_collision_line)) {
Set("ball_x" add i, V_collision_line);
Set("ball_y" add i, (m * eval ("ball_x" add i)) + c);
i = i + "1";
}
eol = "0";
while (eol == "0") {
V_collision_line = V_collision_line + "40";
if (ball_xB < V_collision_line) {
eol = "1";
} else {
Set("ball_x" add i, V_collision_line);
Set("ball_y" add i, (m * eval ("ball_x" add i)) + c);
i = i + "1";
}
}
noOfpts = i - "1";
j = "1";
while (noOfpts >= j) {
Set("manhattan" add j, ((eval ("ball_x" add j) - ball_xA) * (eval ("ball_x" add j) - ball_xA)) + ((eval ("ball_y" add j) - ball_yA) * (eval ("ball_y" add j) - ball_yA)));
Set("dist" add j, "0");
j = j + "1";
}
n = "1";
while (noOfpts >= n) {
d = "1";
Set("dist" add d, eval ("manhattan" add n));
while ((noOfpts - "1") >= d) {
if (eval ("dist" add (d + "1")) < eval ("dist" add d)) {
distTemp = eval ("dist" add d);
Set("dist" add d, eval ("dist" add (d + "1")));
Set("dist" add (d + "1"), distTemp);
}
d = d + "1";
}
n = n + "1";
}
d = "1";
while (noOfpts >= d) {
n = "1";
while (noOfpts >= n) {
if (eval ("dist" add d) == eval ("manhattan" add n)) {
pt_col = int((eval ("ball_x" add n) - edge_cols) / "40");
pt_row = int((eval ("ball_y" add n) - edge_rows) / "20");
T_collision_line = ((pt_row + "1") * "20") + "4";
L_collision_line = ((pt_col + "1") * "40") + "4";
bat_x = getProperty("/bat", _x);
bat_left = bat_x - (batWidth / "2");
bat_right = bat_x + (batWidth / "2");
bat_collision_line = "390" - ballRadius;
wall_collision_line = "410" - ballRadius;
if (eval ("ball_y" add n) == bat_collision_line) {
if ((eval ("ball_x" add n) >= bat_left) and (bat_right >= eval ("ball_x" add n))) {
if (eval ("ball_x" add n) >= (bat_x + int(("2" / "6") * batWidth))) {
vector_x = "4";
vector_y = -"1";
} else if (eval ("ball_x" add n) >= (bat_x + int(("1" / "6") * batWidth))) {
vector_x = "3";
vector_y = -"3";
} else if (eval ("ball_x" add n) >= bat_x) {
vector_x = "1";
vector_y = -"4";
} else if ((bat_x - int(("2" / "6") * batWidth)) >= eval ("ball_x" add n)) {
vector_x = -"4";
vector_y = -"1";
} else if ((bat_x - int(("1" / "6") * batWidth)) >= eval ("ball_x" add n)) {
vector_x = -"3";
vector_y = -"3";
} else if (bat_x >= eval ("ball_x" add n)) {
vector_x = -"1";
vector_y = -"4";
}
tellTarget ("/soundFX") {
gotoAndPlay ("hit");
};
score = score + addBatScore;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
}
} else if (eval ("ball_y" add n) == T_collision_line) {
isVisible1 = getProperty(("/brick" add pt_col) add (pt_row + "1"), _currentframe);
isVisible2 = getProperty(("/brick" add (pt_col + "1")) add (pt_row + "1"), _currentframe);
if (((isVisible1 == "1") or (isVisible1 == "2")) or (isVisible1 == "3")) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = pt_col add (pt_row + "1");
tellTarget (("/brick" add pt_col) add (pt_row + "1")) {
nextFrame();
};
vector_y = -vector_y;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
} else if ((((isVisible2 == "1") or (isVisible2 == "2")) or (isVisible2 == "3")) and (eval ("ball_x" add n) >= L_collision_line)) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col + "1") add (pt_row + "1");
tellTarget (("/brick" add (pt_col + "1")) add (pt_row + "1")) {
nextFrame();
};
vector_y = -vector_y;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
}
}
if (eval ("ball_x" add n) == wall_collision_line) {
tellTarget ("/soundFX") {
gotoAndPlay ("hit");
};
score = score + addWallScore;
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
} else if (eval ("ball_x" add n) == L_collision_line) {
isVisible1 = getProperty(("/brick" add (pt_col + "1")) add pt_row, _currentframe);
isVisible2 = getProperty(("/brick" add (pt_col + "1")) add (pt_row + "1"), _currentframe);
if (((isVisible1 == "1") or (isVisible1 == "2")) or (isVisible1 == "3")) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col + "1") add pt_row;
tellTarget (("/brick" add (pt_col + "1")) add pt_row) {
nextFrame();
};
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
} else if ((((isVisible2 == "1") or (isVisible2 == "2")) or (isVisible2 == "3")) and (eval ("ball_y" add n) >= T_collision_line)) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col + "1") add (pt_row + "1");
tellTarget (("/brick" add (pt_col + "1")) add (pt_row + "1")) {
nextFrame();
};
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
}
}
n = noOfpts;
}
n = n + "1";
}
d = d + "1";
}
Frame 13
i = "1";
m = (ball_yB - ball_yA) / (ball_xB - ball_xA);
c = ball_yA - (m * ball_xA);
row = int((ball_yA - edge_rows) / "20");
col = int((ball_xA - edge_cols) / "40");
H_collision_line = ((row + "1") * "20") + "4";
if ((ball_yA < H_collision_line) and (ball_yB >= H_collision_line)) {
Set("ball_y" add i, H_collision_line);
Set("ball_x" add i, (eval ("ball_y" add i) - c) / m);
i = i + "1";
}
eol = "0";
while (eol == "0") {
H_collision_line = H_collision_line + "20";
if (ball_yB < H_collision_line) {
eol = "1";
} else {
Set("ball_y" add i, H_collision_line);
Set("ball_x" add i, (eval ("ball_y" add i) - c) / m);
i = i + "1";
}
}
V_collision_line = ((col + "1") * "40") - "24";
if ((V_collision_line < ball_xA) and (V_collision_line >= ball_xB)) {
Set("ball_x" add i, V_collision_line);
Set("ball_y" add i, (m * eval ("ball_x" add i)) + c);
i = i + "1";
}
eol = "0";
while (eol == "0") {
V_collision_line = V_collision_line - "40";
if (V_collision_line < ball_xB) {
eol = "1";
} else {
Set("ball_x" add i, V_collision_line);
Set("ball_y" add i, (m * eval ("ball_x" add i)) + c);
i = i + "1";
}
}
noOfpts = i - "1";
j = "1";
while (noOfpts >= j) {
Set("manhattan" add j, ((eval ("ball_x" add j) - ball_xA) * (eval ("ball_x" add j) - ball_xA)) + ((eval ("ball_y" add j) - ball_yA) * (eval ("ball_y" add j) - ball_yA)));
Set("dist" add j, "0");
j = j + "1";
}
n = "1";
while (noOfpts >= n) {
d = "1";
Set("dist" add d, eval ("manhattan" add n));
while ((noOfpts - "1") >= d) {
if (eval ("dist" add (d + "1")) < eval ("dist" add d)) {
distTemp = eval ("dist" add d);
Set("dist" add d, eval ("dist" add (d + "1")));
Set("dist" add (d + "1"), distTemp);
}
d = d + "1";
}
n = n + "1";
}
d = "1";
while (noOfpts >= d) {
n = "1";
while (noOfpts >= n) {
if (eval ("dist" add d) == eval ("manhattan" add n)) {
pt_col = int((eval ("ball_x" add n) - edge_cols) / "40");
pt_row = int((eval ("ball_y" add n) - edge_rows) / "20");
T_collision_line = ((pt_row + "1") * "20") + "4";
R_collision_line = ((pt_col + "1") * "40") - "24";
bat_x = getProperty("/bat", _x);
bat_left = bat_x - (batWidth / "2");
bat_right = bat_x + (batWidth / "2");
bat_collision_line = "390" - ballRadius;
wall_collision_line = "10" + ballRadius;
if (eval ("ball_y" add n) == bat_collision_line) {
if ((eval ("ball_x" add n) >= bat_left) and (bat_right >= eval ("ball_x" add n))) {
if (eval ("ball_x" add n) >= (bat_x + int(("2" / "6") * batWidth))) {
vector_x = "4";
vector_y = -"1";
} else if (eval ("ball_x" add n) >= (bat_x + int(("1" / "6") * batWidth))) {
vector_x = "3";
vector_y = -"3";
} else if (eval ("ball_x" add n) >= bat_x) {
vector_x = "1";
vector_y = -"4";
} else if ((bat_x - int(("2" / "6") * batWidth)) >= eval ("ball_x" add n)) {
vector_x = -"4";
vector_y = -"1";
} else if ((bat_x - int(("1" / "6") * batWidth)) >= eval ("ball_x" add n)) {
vector_x = -"3";
vector_y = -"3";
} else if (bat_x >= eval ("ball_x" add n)) {
vector_x = -"1";
vector_y = -"4";
}
tellTarget ("/soundFX") {
gotoAndPlay ("hit");
};
score = score + addBatScore;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
}
} else if (eval ("ball_y" add n) == T_collision_line) {
isVisible1 = getProperty(("/brick" add pt_col) add (pt_row + "1"), _currentframe);
isVisible2 = getProperty(("/brick" add (pt_col - "1")) add (pt_row + "1"), _currentframe);
if (((isVisible1 == "1") or (isVisible1 == "2")) or (isVisible1 == "3")) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = pt_col add (pt_row + "1");
tellTarget (("/brick" add pt_col) add (pt_row + "1")) {
nextFrame();
};
vector_y = -vector_y;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
} else if ((((isVisible2 == "1") or (isVisible2 == "2")) or (isVisible2 == "3")) and (R_collision_line >= eval ("ball_x" add n))) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col - "1") add (pt_row + "1");
tellTarget (("/brick" add (pt_col - "1")) add (pt_row + "1")) {
nextFrame();
};
vector_y = -vector_y;
ball_yB = eval ("ball_y" add n);
ball_xB = eval ("ball_x" add n);
d = noOfpts;
}
}
if (eval ("ball_x" add n) == wall_collision_line) {
tellTarget ("/soundFX") {
gotoAndPlay ("hit");
};
score = score + addWallScore;
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
} else if (eval ("ball_x" add n) == R_collision_line) {
isVisible1 = getProperty(("/brick" add (pt_col - "1")) add pt_row, _currentframe);
isVisible2 = getProperty(("/brick" add (pt_col - "1")) add (pt_row + "1"), _currentframe);
if (((isVisible1 == "1") or (isVisible1 == "2")) or (isVisible1 == "3")) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col - "1") add pt_row;
tellTarget (("/brick" add (pt_col - "1")) add pt_row) {
nextFrame();
};
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
} else if ((((isVisible2 == "1") or (isVisible2 == "2")) or (isVisible2 == "3")) and (eval ("ball_y" add n) >= T_collision_line)) {
tellTarget ("/soundFX") {
gotoAndPlay ("hitBrick");
};
brickNo = (pt_col - "1") add (pt_row + "1");
tellTarget (("/brick" add (pt_col - "1")) add (pt_row + "1")) {
nextFrame();
};
vector_x = -vector_x;
ball_xB = eval ("ball_x" add n);
ball_yB = eval ("ball_y" add n);
d = noOfpts;
}
}
n = noOfpts;
}
n = n + "1";
}
d = d + "1";
}
Frame 16
i = "1";
while (noOfE >= i) {
expand_y = getProperty("expand" add i, _y);
expand_y = expand_y + "6";
setProperty("expand" add i, _y , expand_y);
if ("390" < expand_y) {
bat_x = getProperty("/bat", _x);
bat_left = bat_x - (batWidth / "2");
bat_right = bat_x + (batWidth / "2");
expand_x = getProperty("expand" add i, _x);
expand_left = expand_x - "10";
expand_right = expand_x + "10";
if ((expand_left >= bat_left) and (bat_right >= expand_right)) {
tellTarget ("/soundFX") {
gotoAndPlay ("Expand");
};
trace("You've just got EXPAND");
if (expanded == "0") {
expanded = "1";
setProperty("/bat", _xscale , "100");
batWidth = "80";
stopDrag();
startDrag ("/bat", true, "50", "400", "370", "400");
power_up = "expand";
shrunken = "0";
call("reset_capsules");
}
removeMovieClip("expand" add i);
onscreen_E = "0";
} else {
removeMovieClip("expand" add i);
onscreen_E = "0";
}
}
i = i + "1";
}
Frame 19
i = "1";
while (noOfC >= i) {
catch_y = getProperty("catch" add i, _y);
catch_y = catch_y + "6";
setProperty("catch" add i, _y , catch_y);
if ("390" < catch_y) {
bat_x = getProperty("/bat", _x);
bat_left = bat_x - (batWidth / "2");
bat_right = bat_x + (batWidth / "2");
catch_x = getProperty("catch" add i, _x);
catch_left = catch_x - "10";
catch_right = catch_x + "10";
if ((catch_left >= bat_left) and (bat_right >= catch_right)) {
tellTarget ("/soundFX") {
gotoAndPlay ("Catch");
};
trace("You've just got CATCH");
if (caught == "0") {
caught = "1";
button = "2";
power_up = "catch";
call("reset_capsules");
}
removeMovieClip("catch" add i);
onscreen_C = "0";
} else {
removeMovieClip("catch" add i);
onscreen_C = "0";
}
}
i = i + "1";
}
Frame 22
i = "1";
while (noOfSL >= i) {
slow_y = getProperty("slow" add i, _y);
slow_y = slow_y + "6";
setProperty("slow" add i, _y , slow_y);
if ("390" < slow_y) {
bat_x = getProperty("/bat", _x);
bat_left = bat_x - (batWidth / "2");
bat_right = bat_x + (batWidth / "2");
slow_x = getProperty("slow" add i, _x);
slow_left = slow_x - "10";
slow_right = slow_x + "10";
if ((slow_left >= bat_left) and (bat_right >= slow_right)) {
tellTarget ("/soundFX") {
gotoAndPlay ("Slow");
};
trace("You've just got SLOW");
if (magnitude >= "5") {
magnitude = magnitude - "2";
speed_ind = speed_ind - "2";
} else {
magnitude = "3";
speed_ind = "1";
}
timer = getTimer();
power_up = "slow";
call("reset_capsules");
removeMovieClip("slow" add i);
onscreen_SL = "0";
} else {
removeMovieClip("slow" add i);
onscreen_SL = "0";
}
}
i = i + "1";
}
Frame 25
i = "1";
while (noOfB >= i) {
bonuslife_y = getProperty("bonuslife" add i, _y);
bonuslife_y = bonuslife_y + "6";
setProperty("bonuslife" add i, _y , bonuslife_y);
if ("390" < bonuslife_y) {
bat_x = getProperty("/bat", _x);
bat_left = bat_x - (batWidth / "2");
bat_right = bat_x + (batWidth / "2");
bonuslife_x = getProperty("bonuslife" add i, _x);
bonuslife_left = bonuslife_x - "10";
bonuslife_right = bonuslife_x + "10";
if ((bonuslife_left >= bat_left) and (bat_right >= bonuslife_right)) {
tellTarget ("/soundFX") {
gotoAndPlay ("bonuslife");
};
trace("You've just got BONUS LIFE");
lives_left = lives_left + "1";
power_up = "bonuslife";
call("reset_capsules");
removeMovieClip("bonuslife" add i);
onscreen_B = "0";
} else {
removeMovieClip("bonuslife" add i);
onscreen_B = "0";
}
}
i = i + "1";
}
Frame 28
i = "1";
while (noOfSH >= i) {
shrink_y = getProperty("shrink" add i, _y);
shrink_y = shrink_y + "6";
setProperty("shrink" add i, _y , shrink_y);
if ("390" < shrink_y) {
bat_x = getProperty("/bat", _x);
bat_left = bat_x - (batWidth / "2");
bat_right = bat_x + (batWidth / "2");
shrink_x = getProperty("shrink" add i, _x);
shrink_left = shrink_x - "10";
shrink_right = shrink_x + "10";
if ((shrink_left >= bat_left) and (bat_right >= shrink_right)) {
tellTarget ("/soundFX") {
gotoAndPlay ("shrink");
};
trace("You've just got SHRINK");
if (shrunken == "0") {
shrunken = "1";
setProperty("/bat", _xscale , "50");
batWidth = "40";
stopDrag();
startDrag ("/bat", true, "30", "400", "390", "400");
power_up = "shrink";
expanded = "0";
call("reset_capsules");
}
removeMovieClip("shrink" add i);
onscreen_SH = "0";
} else {
removeMovieClip("shrink" add i);
onscreen_SH = "0";
}
}
i = i + "1";
}
Frame 31
i = "1";
while (noOfF >= i) {
fast_y = getProperty("fast" add i, _y);
fast_y = fast_y + "6";
setProperty("fast" add i, _y , fast_y);
if ("390" < fast_y) {
bat_x = getProperty("/bat", _x);
bat_left = bat_x - (batWidth / "2");
bat_right = bat_x + (batWidth / "2");
fast_x = getProperty("fast" add i, _x);
fast_left = fast_x - "10";
fast_right = fast_x + "10";
if ((fast_left >= bat_left) and (bat_right >= fast_right)) {
tellTarget ("/soundFX") {
gotoAndPlay ("fast");
};
trace("You've just got FAST");
magnitude = magnitude + "2";
speed_ind = speed_ind + "2";
timer = getTimer();
power_up = "fast";
call("reset_capsules");
removeMovieClip("fast" add i);
onscreen_F = "0";
} else {
removeMovieClip("fast" add i);
onscreen_F = "0";
}
}
i = i + "1";
}
Frame 34
catchTimer = getTimer();
caughtBall = "1";
bat_x = getProperty("/bat", _x);
displace = ball_xB - bat_x;
Frame 35
caughtTime = getTimer();
setProperty("/ball", _x , getProperty("/bat", _x) + displace);
if (caughtBall == "0") {
gotoAndPlay (4);
} else if ((caughtTime - catchTimer) >= "3000") {
gotoAndPlay (4);
}
Frame 36
if (onscreen_B == "1") {
call("BonusLife");
}
if (onscreen_E == "1") {
call("Expand");
}
if (onscreen_C == "1") {
call("Catch");
}
if (onscreen_SL == "1") {
call("Slow");
}
if (onscreen_F == "1") {
call("Fast");
}
if (onscreen_SH == "1") {
call("Shrink");
}
gotoAndPlay (35);
Frame 38
if (power_up ne "expand") {
if (expanded == "1") {
expanded = "0";
setProperty("/bat", _xscale , "75");
batWidth = "60";
stopDrag();
startDrag ("/bat", true, "40", "400", "380", "400");
}
}
if (power_up ne "shrink") {
if (shrunken == "1") {
shrunken = "0";
setProperty("/bat", _xscale , "75");
batWidth = "60";
stopDrag();
startDrag ("/bat", true, "40", "400", "380", "400");
}
}
if (power_up ne "catch") {
if (caught == "1") {
button = "0";
caught = "0";
release = "True";
}
}
Frame 44
speed_ind = "1";
timer = getTimer();
started = "0";
release = "0";
setProperty("/ball", _x , "270");
setProperty("/ball", _y , "383");
ball_yB = "383";
button = "1";
if (expanded == "1") {
expanded = "0";
setProperty("/bat", _xscale , "75");
batWidth = "60";
stopDrag();
startDrag ("/bat", true, "40", "400", "380", "400");
}
if (shrunken == "1") {
shrunken = "0";
setProperty("/bat", _xscale , "75");
batWidth = "60";
stopDrag();
startDrag ("/bat", true, "40", "400", "380", "400");
}
if (caught == "1") {
caught = "0";
}
Frame 50
setProperty("/ball", _x , "270");
setProperty("/ball", _y , "383");
direction = "NE";
vector_x = "1";
vector_y = -"4";
magnitude = "3";
Frame 51
setProperty("/ball", _x , getProperty("/bat", _x));
startTimer = getTimer();
if (started == "1") {
button = "0";
gotoAndPlay (4);
} else if ((startTimer - timer) >= "3000") {
started = "1";
button = "0";
gotoAndPlay (4);
}
Frame 52
gotoAndPlay (51);
Frame 55
tellTarget ("/soundFX") {
gotoAndPlay ("lose");
};
i = "1";
while ("50" >= i) {
removeMovieClip("expand" add i);
removeMovieClip("catch" add i);
removeMovieClip("slow" add i);
i = i + "1";
}
lives_left = lives_left - "1";
if (lives_left < "0") {
gotoAndPlay (100);
}
Frame 60
call("reset_variables");
gotoAndPlay (50);
Frame 62
i = "1";
while ("50" >= i) {
removeMovieClip("expand" add i);
removeMovieClip("catch" add i);
removeMovieClip("slow" add i);
i = i + "1";
}
if (level_is == "1") {
tellTarget ("/soundFX") {
gotoAndPlay ("next_level");
};
call("reset_variables");
call("setup_level2");
} else if (level_is == "2") {
tellTarget ("/soundFX") {
gotoAndPlay ("next_level");
};
call("reset_variables");
call("setup_level3");
} else if (level_is == "3") {
tellTarget ("/soundFX") {
gotoAndPlay ("next_level");
};
call("reset_variables");
call("setup_level4");
} else {
tellTarget ("/soundFX") {
gotoAndPlay ("win");
};
gotoAndPlay (100);
}
Frame 67
gotoAndPlay (50);
Frame 69
setProperty("/yellow", _visible , "1");
setProperty("/blue", _visible , "1");
setProperty("/green", _visible , "1");
setProperty("/red", _visible , "1");
level_is = "1";
noOfBricks = "40";
depth = "1";
rows = "2";
cols = "0";
while (rows == "2") {
while ("9" >= cols) {
duplicateMovieClip ("/green", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = rows + "1";
}
rows = "3";
cols = "0";
while ("5" >= rows) {
while ("9" >= cols) {
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
cols = "0";
rows = rows + "1";
}
i = "1";
noOfC = "3";
while (noOfC >= i) {
RandRows = random("4") + "2";
RandCols = random("10");
Set("c" add i, RandCols add RandRows);
trace((("c" add i) add " = ") add eval ("c" add i));
i = i + "1";
}
i = "1";
noOfE = "5";
while (noOfE >= i) {
RandCols = random("10");
RandRows = random("4") + "2";
Set("e" add i, RandCols add RandRows);
trace((("e" add i) add " = ") add eval ("e" add i));
i = i + "1";
}
i = "1";
noOfSL = "5";
while (noOfSL >= i) {
RandCols = random("10");
RandRows = random("4") + "2";
Set("sl" add i, RandCols add RandRows);
trace((("sl" add i) add " = ") add eval ("sl" add i));
i = i + "1";
}
i = "1";
noOfB = "2";
while (noOfB >= i) {
RandCols = random("10");
RandRows = random("4") + "2";
Set("b" add i, RandCols add RandRows);
trace((("b" add i) add " = ") add eval ("b" add i));
i = i + "1";
}
i = "1";
noOfSH = "2";
while (noOfSH >= i) {
RandCols = random("10");
RandRows = random("4") + "2";
Set("sh" add i, RandCols add RandRows);
trace((("sh" add i) add " = ") add eval ("sh" add i));
i = i + "1";
}
i = "1";
noOfF = "2";
while (noOfF >= i) {
RandCols = random("10");
RandRows = random("4") + "2";
Set("f" add i, RandCols add RandRows);
trace((("f" add i) add " = ") add eval ("f" add i));
i = i + "1";
}
setProperty("/yellow", _visible , "0");
setProperty("/blue", _visible , "0");
setProperty("/green", _visible , "0");
setProperty("/red", _visible , "0");
Frame 73
setProperty("/yellow", _visible , "1");
setProperty("/blue", _visible , "1");
setProperty("/green", _visible , "1");
setProperty("/red", _visible , "1");
level_is = "2";
noOfBricks = "55";
depth = "1";
rows = "3";
cols = "0";
cols_stop = "0";
while ("11" >= rows) {
while (cols_stop >= cols) {
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
cols = "0";
cols_stop = cols_stop + "1";
rows = rows + "1";
}
rows = "12";
cols = "0";
while (rows == "12") {
while ("8" >= cols) {
duplicateMovieClip ("/green", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = rows + "1";
}
rows = "12";
cols = "9";
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
i = "1";
noOfC = "4";
while (noOfC >= i) {
RandRows = random("10") + "3";
RandCols = random("10");
Set("c" add i, RandCols add RandRows);
trace((("c" add i) add " = ") add eval ("c" add i));
i = i + "1";
}
i = "1";
noOfE = "6";
while (noOfE >= i) {
RandRows = random("10") + "3";
RandCols = random("10");
Set("e" add i, RandCols add RandRows);
trace((("e" add i) add " = ") add eval ("e" add i));
i = i + "1";
}
i = "1";
noOfSL = "6";
while (noOfSL >= i) {
RandRows = random("10") + "3";
RandCols = random("10");
Set("sl" add i, RandCols add RandRows);
trace((("sl" add i) add " = ") add eval ("sl" add i));
i = i + "1";
}
i = "1";
noOfB = "2";
while (noOfB >= i) {
RandCols = random("10");
RandRows = random("4") + "2";
Set("b" add i, RandCols add RandRows);
trace((("b" add i) add " = ") add eval ("b" add i));
i = i + "1";
}
i = "1";
noOfSH = "4";
while (noOfSH >= i) {
RandCols = random("10");
RandRows = random("4") + "2";
Set("sh" add i, RandCols add RandRows);
trace((("sh" add i) add " = ") add eval ("sh" add i));
i = i + "1";
}
i = "1";
noOfF = "3";
while (noOfF >= i) {
RandCols = random("10");
RandRows = random("4") + "2";
Set("f" add i, RandCols add RandRows);
trace((("f" add i) add " = ") add eval ("f" add i));
i = i + "1";
}
setProperty("/yellow", _visible , "0");
setProperty("/blue", _visible , "0");
setProperty("/green", _visible , "0");
setProperty("/red", _visible , "0");
Frame 77
setProperty("/yellow", _visible , "1");
setProperty("/blue", _visible , "1");
setProperty("/green", _visible , "1");
setProperty("/red", _visible , "1");
level_is = "3";
noOfBricks = "30";
depth = "1";
rows = "0";
cols = "0";
while ("10" >= rows) {
while ("9" >= cols) {
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
cols = "0";
rows = rows + "5";
}
rows = "4";
cols = "2";
while (rows == "4") {
while ("9" >= cols) {
duplicateMovieClip ("/yellow", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = rows + "1";
}
rows = "9";
cols = "0";
while (rows == "9") {
while ("7" >= cols) {
duplicateMovieClip ("/yellow", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = rows + "1";
}
rows = "14";
cols = "2";
while (rows == "14") {
while ("9" >= cols) {
duplicateMovieClip ("/yellow", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = rows + "1";
}
i = "1";
noOfC = "4";
while (noOfC >= i) {
RandRows = random("11");
RandCols = random("10");
Set("c" add i, RandCols add RandRows);
trace((("c" add i) add " = ") add eval ("c" add i));
i = i + "1";
}
i = "1";
noOfE = "1";
while (noOfE >= i) {
RandRows = random("11");
RandCols = random("10");
Set("e" add i, RandCols add RandRows);
trace((("e" add i) add " = ") add eval ("e" add i));
i = i + "1";
}
i = "1";
noOfSL = "1";
while (noOfSL >= i) {
RandRows = random("11");
RandCols = random("10");
Set("sl" add i, RandCols add RandRows);
trace((("sl" add i) add " = ") add eval ("sl" add i));
i = i + "1";
}
i = "1";
noOfB = "2";
while (noOfB >= i) {
RandRows = random("11");
RandCols = random("10");
Set("b" add i, RandCols add RandRows);
trace((("b" add i) add " = ") add eval ("b" add i));
i = i + "1";
}
i = "1";
noOfSH = "1";
while (noOfSH >= i) {
RandRows = random("11");
RandCols = random("10");
Set("sh" add i, RandCols add RandRows);
trace((("sh" add i) add " = ") add eval ("sh" add i));
i = i + "1";
}
i = "1";
noOfF = "1";
while (noOfF >= i) {
RandRows = random("11");
RandCols = random("10");
Set("f" add i, RandCols add RandRows);
trace((("f" add i) add " = ") add eval ("f" add i));
i = i + "1";
}
setProperty("/yellow", _visible , "0");
setProperty("/blue", _visible , "0");
setProperty("/green", _visible , "0");
setProperty("/red", _visible , "0");
Frame 81
setProperty("/yellow", _visible , "1");
setProperty("/blue", _visible , "1");
setProperty("/green", _visible , "1");
setProperty("/red", _visible , "1");
level_is = "4";
noOfBricks = "70";
depth = "1";
rows = "2";
cols = "1";
while ("3" >= cols) {
duplicateMovieClip ("/blue", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = "3";
cols = "1";
while ("3" >= cols) {
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = "4";
cols = "1";
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "4";
cols = "2";
duplicateMovieClip ("/yellow", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "4";
cols = "3";
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "5";
cols = "1";
while ("7" >= rows) {
while ("3" >= cols) {
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
cols = "1";
rows = rows + "1";
}
rows = "8";
cols = "1";
duplicateMovieClip ("/yellow", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "8";
cols = "2";
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "8";
cols = "3";
duplicateMovieClip ("/yellow", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "9";
cols = "1";
while ("11" >= rows) {
while ("3" >= cols) {
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
cols = "1";
rows = rows + "1";
}
rows = "12";
cols = "1";
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "12";
cols = "2";
duplicateMovieClip ("/yellow", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "12";
cols = "3";
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "13";
cols = "1";
while ("3" >= cols) {
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = "14";
cols = "1";
while ("3" >= cols) {
duplicateMovieClip ("/green", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = "2";
cols = "1" + "5";
while (("3" + "5") >= cols) {
duplicateMovieClip ("/blue", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = "3";
cols = "1" + "5";
while (("3" + "5") >= cols) {
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = "4";
cols = "1" + "5";
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "4";
cols = "2" + "5";
duplicateMovieClip ("/yellow", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "4";
cols = "3" + "5";
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "5";
cols = "1" + "5";
while ("7" >= rows) {
while (("3" + "5") >= cols) {
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
cols = "1" + "5";
rows = rows + "1";
}
rows = "8";
cols = "1" + "5";
duplicateMovieClip ("/yellow", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "8";
cols = "2" + "5";
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "8";
cols = "3" + "5";
duplicateMovieClip ("/yellow", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "9";
cols = "1" + "5";
while ("11" >= rows) {
while (("3" + "5") >= cols) {
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
cols = "1" + "5";
rows = rows + "1";
}
rows = "12";
cols = "1" + "5";
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "12";
cols = "2" + "5";
duplicateMovieClip ("/yellow", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "12";
cols = "3" + "5";
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
depth = depth + "1";
rows = "13";
cols = "1" + "5";
while (("3" + "5") >= cols) {
duplicateMovieClip ("/red", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
rows = "14";
cols = "1" + "5";
while (("3" + "5") >= cols) {
duplicateMovieClip ("/green", ("brick" add cols) add rows, depth);
setProperty(("brick" add cols) add rows, _x , "30" + ("40" * cols));
setProperty(("brick" add cols) add rows, _y , "20" + ("20" * rows));
cols = cols + "1";
depth = depth + "1";
}
i = "1";
noOfC = "4";
while (noOfC >= i) {
RandRows = random("11");
RandCols = random("10");
Set("c" add i, RandCols add RandRows);
trace((("c" add i) add " = ") add eval ("c" add i));
i = i + "1";
}
i = "1";
noOfE = "1";
while (noOfE >= i) {
RandRows = random("11");
RandCols = random("10");
Set("e" add i, RandCols add RandRows);
trace((("e" add i) add " = ") add eval ("e" add i));
i = i + "1";
}
i = "1";
noOfSL = "1";
while (noOfSL >= i) {
RandRows = random("11");
RandCols = random("10");
Set("sl" add i, RandCols add RandRows);
trace((("sl" add i) add " = ") add eval ("sl" add i));
i = i + "1";
}
i = "1";
noOfB = "2";
while (noOfB >= i) {
RandRows = random("11");
RandCols = random("10");
Set("b" add i, RandCols add RandRows);
trace((("b" add i) add " = ") add eval ("b" add i));
i = i + "1";
}
i = "1";
noOfSH = "1";
while (noOfSH >= i) {
RandRows = random("11");
RandCols = random("10");
Set("sh" add i, RandCols add RandRows);
trace((("sh" add i) add " = ") add eval ("sh" add i));
i = i + "1";
}
i = "1";
noOfF = "1";
while (noOfF >= i) {
RandRows = random("11");
RandCols = random("10");
Set("f" add i, RandCols add RandRows);
trace((("f" add i) add " = ") add eval ("f" add i));
i = i + "1";
}
setProperty("/yellow", _visible , "0");
setProperty("/blue", _visible , "0");
setProperty("/green", _visible , "0");
setProperty("/red", _visible , "0");
Frame 100
rows = "0";
cols = "0";
while ("18" >= rows) {
while ("9" >= cols) {
removeMovieClip(("/brick" add cols) add rows);
cols = cols + "1";
}
cols = "0";
rows = rows + "1";
}
Frame 200
_root.gameover = 1;
stop();
Symbol 1 MovieClip Frame 9
stop();
Symbol 11 Button
on (release) {
stopAllSounds();
play();
}
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 2
Set("../:onscreen_E", "1");
play();
Symbol 21 MovieClip Frame 3
Set("../:onscreen_E", "1");
Symbol 21 MovieClip Frame 4
Set("../:onscreen_E", "1");
Symbol 21 MovieClip Frame 5
Set("../:onscreen_E", "1");
Symbol 21 MovieClip Frame 6
Set("../:onscreen_E", "1");
Symbol 21 MovieClip Frame 7
Set("../:onscreen_E", "1");
Symbol 21 MovieClip Frame 8
Set("../:onscreen_E", "1");
Symbol 21 MovieClip Frame 9
Set("../:onscreen_E", "1");
Symbol 21 MovieClip Frame 10
Set("../:onscreen_E", "1");
gotoAndPlay (2);
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 2
Set("../:onscreen_C", "1");
play();
Symbol 28 MovieClip Frame 3
Set("../:onscreen_C", "1");
Symbol 28 MovieClip Frame 4
Set("../:onscreen_C", "1");
Symbol 28 MovieClip Frame 5
Set("../:onscreen_C", "1");
Symbol 28 MovieClip Frame 6
Set("../:onscreen_C", "1");
Symbol 28 MovieClip Frame 7
Set("../:onscreen_C", "1");
Symbol 28 MovieClip Frame 8
Set("../:onscreen_C", "1");
Symbol 28 MovieClip Frame 9
Set("../:onscreen_C", "1");
Symbol 28 MovieClip Frame 10
Set("../:onscreen_C", "1");
gotoAndPlay (2);
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 2
Set("../:onscreen_L", "1");
play();
Symbol 33 MovieClip Frame 3
Set("../:onscreen_L", "1");
Symbol 33 MovieClip Frame 4
Set("../:onscreen_L", "1");
Symbol 33 MovieClip Frame 5
Set("../:onscreen_L", "1");
Symbol 33 MovieClip Frame 6
Set("../:onscreen_L", "1");
Symbol 33 MovieClip Frame 7
Set("../:onscreen_L", "1");
Symbol 33 MovieClip Frame 8
Set("../:onscreen_L", "1");
Symbol 33 MovieClip Frame 9
Set("../:onscreen_L", "1");
Symbol 33 MovieClip Frame 10
Set("../:onscreen_L", "1");
gotoAndPlay (2);
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
Set("../:onscreen_SL", "1");
play();
Symbol 38 MovieClip Frame 3
Set("../:onscreen_SL", "1");
Symbol 38 MovieClip Frame 4
Set("../:onscreen_SL", "1");
Symbol 38 MovieClip Frame 5
Set("../:onscreen_SL", "1");
Symbol 38 MovieClip Frame 6
Set("../:onscreen_SL", "1");
Symbol 38 MovieClip Frame 7
Set("../:onscreen_SL", "1");
Symbol 38 MovieClip Frame 8
Set("../:onscreen_SL", "1");
Symbol 38 MovieClip Frame 9
Set("../:onscreen_SL", "1");
Symbol 38 MovieClip Frame 10
Set("../:onscreen_SL", "1");
gotoAndPlay (2);
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 2
Set("../:onscreen_B", "1");
play();
Symbol 43 MovieClip Frame 3
Set("../:onscreen_B", "1");
Symbol 43 MovieClip Frame 4
Set("../:onscreen_B", "1");
Symbol 43 MovieClip Frame 5
Set("../:onscreen_B", "1");
Symbol 43 MovieClip Frame 6
Set("../:onscreen_B", "1");
Symbol 43 MovieClip Frame 7
Set("../:onscreen_B", "1");
Symbol 43 MovieClip Frame 8
Set("../:onscreen_B", "1");
Symbol 43 MovieClip Frame 9
Set("../:onscreen_B", "1");
Symbol 43 MovieClip Frame 10
Set("../:onscreen_B", "1");
gotoAndPlay (2);
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 2
Set("../:onscreen_SH", "1");
play();
Symbol 48 MovieClip Frame 3
Set("../:onscreen_SH", "1");
Symbol 48 MovieClip Frame 4
Set("../:onscreen_SH", "1");
Symbol 48 MovieClip Frame 5
Set("../:onscreen_SH", "1");
Symbol 48 MovieClip Frame 6
Set("../:onscreen_SH", "1");
Symbol 48 MovieClip Frame 7
Set("../:onscreen_SH", "1");
Symbol 48 MovieClip Frame 8
Set("../:onscreen_SH", "1");
Symbol 48 MovieClip Frame 9
Set("../:onscreen_SH", "1");
Symbol 48 MovieClip Frame 10
Set("../:onscreen_SH", "1");
gotoAndPlay (2);
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
Set("../:onscreen_F", "1");
play();
Symbol 52 MovieClip Frame 3
Set("../:onscreen_F", "1");
Symbol 52 MovieClip Frame 4
Set("../:onscreen_F", "1");
Symbol 52 MovieClip Frame 5
Set("../:onscreen_F", "1");
Symbol 52 MovieClip Frame 6
Set("../:onscreen_F", "1");
Symbol 52 MovieClip Frame 7
Set("../:onscreen_F", "1");
Symbol 52 MovieClip Frame 8
Set("../:onscreen_F", "1");
Symbol 52 MovieClip Frame 9
Set("../:onscreen_F", "1");
Symbol 52 MovieClip Frame 10
Set("../:onscreen_F", "1");
gotoAndPlay (2);
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
brickNumber = ../:brickNo;
Set("../:noOfBricks", ../:noOfBricks - "1");
Set("../:score", ../:score + "200");
i = "1";
while (../:noOfB >= i) {
if (brickNumber == eval ("../:b" add i)) {
brick_x = getProperty("../brick" add brickNumber, _x);
brick_y = getProperty("../brick" add brickNumber, _y);
duplicateMovieClip ("../bonuslife", "bonuslife" add i, ../:depth + "1");
setProperty("../bonuslife" add i, _x , brick_x);
setProperty("../bonuslife" add i, _y , brick_y);
tellTarget ("../bonuslife" add i) {
gotoAndPlay (2);
};
Set("../:depth", ../:depth + "1");
i = ../:noOfB;
}
i = i + "1";
}
i = "1";
while (../:noOfE >= i) {
if (brickNumber == eval ("../:e" add i)) {
brick_x = getProperty("../brick" add brickNumber, _x);
brick_y = getProperty("../brick" add brickNumber, _y);
duplicateMovieClip ("../expand", "expand" add i, ../:depth + "1");
setProperty("../expand" add i, _x , brick_x);
setProperty("../expand" add i, _y , brick_y);
tellTarget ("../expand" add i) {
gotoAndPlay (2);
};
Set("../:depth", ../:depth + "1");
i = ../:noOfE;
}
i = i + "1";
}
i = "1";
while (../:noOfC >= i) {
if (brickNumber == eval ("../:c" add i)) {
brick_x = getProperty("../brick" add brickNumber, _x);
brick_y = getProperty("../brick" add brickNumber, _y);
duplicateMovieClip ("../catch", "catch" add i, ../:depth + "1");
setProperty("../catch" add i, _x , brick_x);
setProperty("../catch" add i, _y , brick_y);
tellTarget ("../catch" add i) {
gotoAndPlay (2);
};
Set("../:depth", ../:depth + "1");
i = ../:noOfC;
}
i = i + "1";
}
i = "1";
while (../:noOfSL >= i) {
if (brickNumber == eval ("../:sl" add i)) {
brick_x = getProperty("../brick" add brickNumber, _x);
brick_y = getProperty("../brick" add brickNumber, _y);
duplicateMovieClip ("../slow", "slow" add i, ../:depth + "1");
setProperty("../slow" add i, _x , brick_x);
setProperty("../slow" add i, _y , brick_y);
tellTarget ("../slow" add i) {
gotoAndPlay (2);
};
Set("../:depth", ../:depth + "1");
i = ../:noOfSL;
}
i = i + "1";
}
i = "1";
while (../:noOfF >= i) {
if (brickNumber == eval ("../:f" add i)) {
brick_x = getProperty("../brick" add brickNumber, _x);
brick_y = getProperty("../brick" add brickNumber, _y);
duplicateMovieClip ("../fast", "fast" add i, ../:depth + "1");
setProperty("../fast" add i, _x , brick_x);
setProperty("../fast" add i, _y , brick_y);
tellTarget ("../fast" add i) {
gotoAndPlay (2);
};
Set("../:depth", ../:depth + "1");
i = ../:noOfF;
}
i = i + "1";
}
i = "1";
while (../:noOfSH >= i) {
if (brickNumber == eval ("../:sh" add i)) {
brick_x = getProperty("../brick" add brickNumber, _x);
brick_y = getProperty("../brick" add brickNumber, _y);
duplicateMovieClip ("../shrink", "shrink" add i, ../:depth + "1");
setProperty("../shrink" add i, _x , brick_x);
setProperty("../shrink" add i, _y , brick_y);
tellTarget ("../shrink" add i) {
gotoAndPlay (2);
};
Set("../:depth", ../:depth + "1");
i = ../:noOfSH;
}
i = i + "1";
}
gotoAndPlay (5);
Symbol 55 MovieClip Frame 5
play();
Symbol 55 MovieClip Frame 15
removeMovieClip("/brick" add brickNumber);
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
stop();
Symbol 59 MovieClip Frame 3
brickNumber = ../:brickNo;
Set("../:noOfBricks", ../:noOfBricks - "1");
Set("../:score", ../:score + "500");
gotoAndPlay (5);
Symbol 59 MovieClip Frame 5
play();
Symbol 59 MovieClip Frame 15
removeMovieClip("/brick" add brickNumber);
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 2
stop();
Symbol 65 MovieClip Frame 3
stop();
Symbol 65 MovieClip Frame 4
brickNumber = ../:brickNo;
Set("../:noOfBricks", ../:noOfBricks - "1");
gotoAndPlay (5);
Symbol 65 MovieClip Frame 5
play();
Symbol 65 MovieClip Frame 15
setProperty("/brick" add brickNumber, _visible , "0");
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
gotoAndStop (1);
Symbol 71 MovieClip Frame 3
gotoAndStop (1);
Symbol 71 MovieClip Frame 4
gotoAndStop (1);
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 31
gotoAndStop (1);
Symbol 88 MovieClip Frame 127
gotoAndStop (1);
Symbol 88 MovieClip Frame 240
gotoAndStop (1);
Symbol 88 MovieClip Frame 442
gotoAndStop (1);
Symbol 88 MovieClip Frame 500
gotoAndStop (1);
Symbol 88 MovieClip Frame 595
gotoAndStop (1);
Symbol 88 MovieClip Frame 690
gotoAndStop (1);
Symbol 88 MovieClip Frame 785
gotoAndStop (1);
Symbol 88 MovieClip Frame 880
gotoAndStop (1);
Symbol 88 MovieClip Frame 975
gotoAndStop (1);
Symbol 88 MovieClip Frame 1070
gotoAndStop (1);
Symbol 106 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "arkanoid";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 113 Button
on (release) {
stopAllSounds();
play();
}
Symbol 129 Button
on (release) {
if (button == "1") {
started = "1";
button = "0";
} else if (button == "2") {
release = "1";
caughtBall = "0";
button = "2";
} else if (button == "3") {
trace("you've got laser");
} else {
trace("you've got nothing");
}
}
Symbol 131 Button
on (release) {
if (button == "1") {
started = "1";
button = "0";
} else if (button == "2") {
release = "1";
caughtBall = "0";
button = "2";
} else if (button == "3") {
trace("you've got laser");
} else {
trace("you've got nothing");
}
}