Frame 1
startDrag ("/loading", true);
Frame 2
ifFrameLoaded (15) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (1);
Frame 4
startDrag ("/loading", true);
Frame 5
ifFrameLoaded (25) {
gotoAndPlay (7);
}
Frame 6
gotoAndPlay (4);
Frame 8
ifFrameLoaded (40) {
gotoAndStop (10);
}
startDrag ("/loading", true);
Frame 9
gotoAndPlay (7);
startDrag ("/loading", true);
Frame 10
stop();
Frame 11
stop();
p1_score = 0;
p2_score = 0;
paddlesize = 1;
setProperty("/ps_select", _x , 486);
gametype = 3;
setProperty("/game_select", _x , "450");
setProperty("/game_select", _y , "290");
random_obs = true;
setProperty("/random_obstruction", _alpha , "80");
setProperty("/p1win", _visible , false);
setProperty("/p2win", _visible , false);
if (Number(score_limit) == 0) {
score_limit = 21;
}
Frame 20
startDrag ("/mousetrack", true);
new_obs = true;
setProperty("/obstruct", _visible , false);
ballrot_dir = 5;
ballrot2_dir = 5;
if (Number(speed) == 0) {
gamespeed = 3;
} else if (Number(speed) == 1) {
gamespeed = 4;
} else if (Number(speed) == 2) {
gamespeed = 5;
}
trkey = 3;
tlkey = 3;
brkey = 3;
blkey = 3;
xspeed = "1";
yspeed = "1";
xstep = xspeed;
ystep = yspeed;
xspeed2 = "1";
yspeed2 = "1";
xstep2 = xspeed2;
ystep2 = yspeed2;
balls_left = ballnum;
setProperty("/the_ball", _visible , true);
setProperty("/the_ball2", _visible , false);
ball1status = true;
if (Number(ballnum) == 2) {
ball2status = true;
setProperty("/the_ball2", _visible , true);
}
if (Number(paddlesize) == 0) {
setProperty("/topbat", _xscale , 40);
setProperty("/botbat", _xscale , 40);
paddlesize = 40;
} else if (Number(paddlesize) == 1) {
setProperty("/topbat", _xscale , 70);
setProperty("/botbat", _xscale , 70);
paddlesize = 70;
} else if (Number(paddlesize) == 2) {
setProperty("/topbat", _xscale , 115);
setProperty("/botbat", _xscale , 115);
paddlesize = 100;
}
Frame 21
startDrag ("/mousetrack", true);
loops = 1;
temp_batx = topbatx;
temp_batx2 = botbatx;
while (Number(loops) < Number(gamespeed)) {
if (Number(random_obs) == Number(true)) {
if (Number(new_obs) == Number(true)) {
tellTarget ("/sounds") {
gotoAndPlay ("random_obs");
};
rand_x = Number(random(190)) + 25;
rand_y = random(200);
setProperty("/obstruct", _x , Number(rand_x) + 15);
setProperty("/obstruct", _y , Number(rand_y) + 100);
setProperty("/obstruct", _xscale , "50");
setProperty("/obstruct", _visible , true);
tellTarget ("/obstruct") {
gotoAndPlay (1);
};
new_obs = false;
}
}
if (Number(gametype) == 1) {
topbatx = getProperty("/mousetrack", _x);
if (Number(300 - (paddlesize / 2)) < Number(topbatx)) {
topbatx = 300 - (paddlesize / 2);
}
if (Number(topbatx) < Number(14 + Number(paddlesize / 2))) {
topbatx = 14 + Number(paddlesize / 2);
}
setProperty("/topbat", _x , topbatx);
botbatx = topbatx;
setProperty("/botbat", _x , botbatx);
} else if (Number(gametype) == 2) {
if (Key.isDown(37)) {
if (Number(gametype) == 2) {
topbatx = getProperty("/topbat", _x);
topbatx = topbatx - 4;
if (Number(topbatx) < Number(14 + Number(paddlesize / 2))) {
topbatx = 14 + Number(paddlesize / 2);
}
setProperty("/topbat", _x , topbatx);
}
}
if (Key.isDown(39)) {
topbatx = getProperty("/topbat", _x);
topbatx = Number(topbatx) + 4;
if (Number(300 - (paddlesize / 2)) < Number(topbatx)) {
topbatx = 300 - (paddlesize / 2);
}
setProperty("/topbat", _x , topbatx);
}
if (Key.isDown(88)) {
if (Number(gametype) == 2) {
botbatx = getProperty("/botbat", _x);
botbatx = Number(botbatx) + 4;
if (Number(300 - (paddlesize / 2)) < Number(botbatx)) {
botbatx = 300 - (paddlesize / 2);
}
setProperty("/botbat", _x , botbatx);
}
}
if (Key.isDown(90)) {
if (Number(gametype) == 2) {
botbatx = getProperty("/botbat", _x);
botbatx = botbatx - 4;
if (Number(botbatx) < Number(14 + Number(paddlesize / 2))) {
botbatx = 14 + Number(paddlesize / 2);
}
setProperty("/botbat", _x , botbatx);
}
}
} else if (Number(gametype) == 3) {
topbatx = getProperty("/mousetrack", _x);
if (Number(300 - (paddlesize / 2)) < Number(topbatx)) {
topbatx = 300 - (paddlesize / 2);
}
if (Number(topbatx) < Number(14 + Number(paddlesize / 2))) {
topbatx = 14 + Number(paddlesize / 2);
}
setProperty("/topbat", _x , topbatx);
botbatx = getProperty("/botbat", _x);
if ((Number(ballnum) == 2) and (Number(BallY) < Number(Ball2Y))) {
if (169 < Number(Ball2Y)) {
if ((Number(Ball2X) < Number(botbatx)) and (Number(Number(paddlesize / 2) + 15) < Number(botbatx))) {
setProperty("/botbat", _x , ((botbatx - 0.5) - (speed / 15)) - ((gamespeed - 1) / 3));
} else if (Number(Ball2X) >= Number(botbatx)) {
setProperty("/botbat", _x , Number(Number(Number(botbatx) + 0.5) + Number(speed / 15)) + Number((gamespeed - 1) / 3));
}
}
} else if (169 < Number(BallY)) {
if ((Number(BallX) < Number(botbatx)) and (Number(Number(paddlesize / 2) + 15) < Number(botbatx))) {
setProperty("/botbat", _x , ((botbatx - 0.5) - (speed / 15)) - ((gamespeed - 1) / 3));
} else if (Number(BallX) >= Number(botbatx)) {
setProperty("/botbat", _x , Number(Number(Number(botbatx) + 0.5) + Number(speed / 15)) + Number((gamespeed - 1) / 3));
}
}
}
setProperty("/the_ball", _rotation , ballrot);
ballrot = Number(ballrot) + Number(ballrot_dir);
BallX = getProperty("/the_ball", _x);
BallY = getProperty("/the_ball", _y);
dx1 = BallX - topbatx;
dx2 = BallX - botbatx;
dy1 = BallY - 45;
dy2 = 355 - BallY;
Collision1 = false;
Collision2 = false;
if (Number(random_obs) == Number(true)) {
if (((Number(BallX) >= Number(Number(rand_x - 25) + 15)) and (Number(Number(Number(rand_x) + 50) + 15) >= Number(BallX))) and ((Number((Number(rand_y) + 100) - 15) < Number(BallY)) and (Number(BallY) < Number(Number(Number(rand_y) + 100) + 15)))) {
if (Number(ydir) == 0) {
ydir = 1;
} else if (Number(ydir) == 1) {
ydir = 0;
}
new_obs = true;
}
}
if (((0 < Number(dy1)) and (Number(dy1) < 8)) and ((Number(((-paddlesize) / 2) - 5) < Number(dx1)) and (Number(dx1) < Number(Number(paddlesize / 2) + 5)))) {
Collision1 = true;
p_hit_region = 2;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if (((0 < Number(dy1)) and (Number(dy1) < 10)) and ((Number((-paddlesize) / 2) < Number(dx1)) and (Number(dx1) < Number(paddlesize / 2)))) {
Collision1 = true;
p_hit_region = 1;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if (((0 < Number(dy1)) and (Number(dy1) < 10)) and ((Number((-paddlesize) / 4) < Number(dx1)) and (Number(dx1) < Number(paddlesize / 4)))) {
Collision1 = true;
p_hit_region = 0;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if (((0 < Number(dy2)) and (Number(dy2) < 8)) and ((Number(((-paddlesize) / 2) - 5) < Number(dx2)) and (Number(dx2) < Number(Number(paddlesize / 2) + 5)))) {
Collision2 = true;
p_hit_region = 2;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if (((0 < Number(dy2)) and (Number(dy2) < 10)) and ((Number((-paddlesize) / 2) < Number(dx2)) and (Number(dx2) < Number(paddlesize / 2)))) {
Collision2 = true;
p_hit_region = 1;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if (((0 < Number(dy2)) and (Number(dy2) < 10)) and ((Number((-paddlesize) / 4) < Number(dx2)) and (Number(dx2) < Number(paddlesize / 4)))) {
Collision2 = true;
p_hit_region = 0;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if ((370 < Number(BallY)) or (Number(Collision2) == Number(true))) {
gamespeed = Number(gamespeed) + 0.05;
ydir = 1;
if (Number(p_hit_region) == 0) {
xspeed = xspeed;
} else if (Number(p_hit_region) == 1) {
if ((Number(xdir) == 1) and (Number(dx2) < 0)) {
xspeed = xspeed / (1 + Number(gamespeed));
} else if ((Number(xdir) == 1) and (0 < Number(dx2))) {
xspeed = xspeed * (1 + Number(gamespeed));
if (50 < Number(xpseed)) {
xspeed = 50;
}
}
if ((Number(xdir) == 0) and (Number(dx2) < 0)) {
xspeed = xspeed * (1 + Number(gamespeed));
if (50 < Number(xpseed)) {
xspeed = 50;
}
} else if ((Number(xdir) == 0) and (0 < Number(dx2))) {
xspeed = xspeed / (1 + Number(gamespeed));
if (50 < Number(xpseed)) {
xspeed = 50;
}
}
} else if (Number(p_hit_region) == 2) {
if ((Number(xdir) == 1) and (Number(dx2) < 0)) {
if (Number(xspeed) < 100) {
xspeed = xspeed * (3 + Number(gamespeed));
if (50 < Number(xpseed)) {
xspeed = 50;
}
}
} else if ((Number(xdir) == 1) and (0 < Number(dx2))) {
xspeed = xspeed / (10 + Number(gamespeed));
}
if ((Number(xdir) == 0) and (Number(dx2) < 0)) {
xspeed = xspeed / (10 + Number(gamespeed));
} else if ((Number(xdir) == 0) and (0 < Number(dx2))) {
if (Number(xspeed) < 100) {
xspeed = xspeed * (3 + Number(gamespeed));
if (50 < Number(xpseed)) {
xspeed = 50;
}
}
}
if (Number(xdir) == 0) {
xdir = 1;
} else if (Number(xdir) == 1) {
xdir = 0;
}
}
if (Number(Collision2) == Number(false)) {
tellTarget ("/sounds") {
gotoAndPlay ("score");
};
BallY = 175;
p1_score = Number(p1_score) + 1;
ydir = 1;
xspeed = 1;
yspeed = 1;
tellTarget ("/p1_scorer") {
play();
};
}
}
if ((Number(BallY) < 30) or (Number(Collision1) == Number(true))) {
gamespeed = Number(gamespeed) + 0.05;
ydir = 0;
if (Number(p_hit_region) == 0) {
xspeed = xspeed;
} else if (Number(p_hit_region) == 1) {
if ((Number(xdir) == 1) and (Number(dx2) < 0)) {
xspeed = xspeed / (1 + Number(gamespeed));
} else if ((Number(xdir) == 1) and (0 < Number(dx2))) {
xspeed = xspeed * (1 + Number(gamespeed));
if (50 < Number(xpseed)) {
xspeed = 50;
}
}
if ((Number(xdir) == 0) and (Number(dx2) < 0)) {
if (Number(xspeed) < 100) {
xspeed = xspeed * (1 + Number(gamespeed));
if (50 < Number(xpseed)) {
xspeed = 50;
}
}
} else if ((Number(xdir) == 0) and (0 < Number(dx2))) {
xspeed = xspeed / (1 + Number(gamespeed));
}
} else if (Number(p_hit_region) == 2) {
if ((Number(xdir) == 1) and (Number(dx2) < 0)) {
xspeed = xspeed * (3 + Number(gamespeed));
if (50 < Number(xpseed)) {
xspeed = 50;
}
} else if ((Number(xdir) == 1) and (0 < Number(dx2))) {
xspeed = xspeed / (10 + Number(gamespeed));
}
if ((Number(xdir) == 0) and (Number(dx2) < 0)) {
xspeed = xspeed / (10 + Number(gamespeed));
} else if ((Number(xdir) == 0) and (0 < Number(dx2))) {
if (Number(xspeed) < 100) {
xspeed = xspeed * (3 + Number(gamespeed));
if (50 < Number(xpseed)) {
xspeed = 50;
}
}
}
if (Number(xdir) == 0) {
xdir = 1;
} else if (Number(xdir) == 1) {
xdir = 0;
}
}
if (Number(Collision1) == Number(false)) {
tellTarget ("/sounds") {
gotoAndPlay ("score");
};
BallY = 150;
p2_score = Number(p2_score) + 1;
ydir = 0;
xspeed = 1;
yspeed = 1;
tellTarget ("/p2_scorer") {
play();
};
}
}
if (Number(ydir) == 1) {
setProperty("/the_ball", _y , (BallY - (ystep / 2)) - ((gamespeed - 1) / 2));
} else if (Number(ydir) == 0) {
setProperty("/the_ball", _y , Number(Number(BallY) + Number(ystep / 2)) + Number((gamespeed - 1) / 2));
}
if (Number(BallX) >= 290) {
xdir = 0;
tellTarget ("/sounds") {
gotoAndPlay ("wallhit");
};
}
if (20 >= Number(BallX)) {
xdir = 1;
tellTarget ("/sounds") {
gotoAndPlay ("wallhit");
};
}
if (15 < Number(xspeed)) {
xspeed = 15;
}
Xstep = xspeed;
if (Number(xdir) == 0) {
setProperty("/the_ball", _x , (BallX - (Xstep / 2)) - ((gamespeed - 1) / 2));
} else if (Number(xdir) == 1) {
setProperty("/the_ball", _x , Number(Number(BallX) + Number(Xstep / 2)) + Number((gamespeed - 1) / 2));
}
if (Number(ballnum) == 2) {
setProperty("/the_ball2", _rotation , -ballrot2);
ballrot2 = Number(ballrot2) + Number(ballrot2_dir);
Ball2X = getProperty("/the_ball2", _x);
Ball2Y = getProperty("/the_ball2", _y);
dx1 = Ball2X - topbatx;
dx2 = Ball2X - botbatx;
dy1 = Ball2Y - 45;
dy2 = 355 - Ball2Y;
Collision1 = false;
Collision2 = false;
if (Number(random_obs) == Number(true)) {
if (((Number(Ball2X) >= Number(Number(rand_x - 25) + 15)) and (Number(Number(Number(rand_x) + 50) + 15) >= Number(Ball2X))) and ((Number((Number(rand_y) + 100) - 15) < Number(Ball2Y)) and (Number(Ball2Y) < Number(Number(Number(rand_y) + 100) + 15)))) {
if (Number(ydir2) == 0) {
ydir2 = 1;
} else if (Number(ydir2) == 1) {
ydir2 = 0;
}
new_obs = true;
}
}
if (((0 < Number(dy1)) and (Number(dy1) < 8)) and ((Number(((-paddlesize) / 2) - 5) < Number(dx1)) and (Number(dx1) < Number(Number(paddlesize / 2) + 5)))) {
Collision1 = true;
p_hit_region = 2;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if (((0 < Number(dy1)) and (Number(dy1) < 10)) and ((Number((-paddlesize) / 2) < Number(dx1)) and (Number(dx1) < Number(paddlesize / 2)))) {
Collision1 = true;
p_hit_region = 1;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if (((0 < Number(dy1)) and (Number(dy1) < 10)) and ((Number((-paddlesize) / 4) < Number(dx1)) and (Number(dx1) < Number(paddlesize / 4)))) {
Collision1 = true;
p_hit_region = 0;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if (((0 < Number(dy2)) and (Number(dy2) < 8)) and ((Number(((-paddlesize) / 2) - 5) < Number(dx2)) and (Number(dx2) < Number(Number(paddlesize / 2) + 5)))) {
Collision2 = true;
p_hit_region = 2;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if (((0 < Number(dy2)) and (Number(dy2) < 10)) and ((Number((-paddlesize) / 2) < Number(dx2)) and (Number(dx2) < Number(paddlesize / 2)))) {
Collision2 = true;
p_hit_region = 1;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if (((0 < Number(dy2)) and (Number(dy2) < 10)) and ((Number((-paddlesize) / 4) < Number(dx2)) and (Number(dx2) < Number(paddlesize / 4)))) {
Collision2 = true;
p_hit_region = 0;
tellTarget ("/sounds") {
gotoAndPlay ("paddlehit");
};
}
if ((370 < Number(Ball2Y)) or (Number(Collision2) == Number(true))) {
ydir2 = 0;
if (Number(p_hit_region) == 0) {
xspeed2 = xspeed2;
} else if (Number(p_hit_region) == 1) {
if ((Number(xdir2) == 1) and (Number(dx2) < 0)) {
xspeed2 = xspeed2 / (1 + Number(gamespeed));
} else if ((Number(xdir2) == 1) and (0 < Number(dx2))) {
xspeed2 = xspeed2 * (1 + Number(gamespeed));
if (50 < Number(xpseed2)) {
xspeed2 = 50;
}
}
if ((Number(xdir2) == 0) and (Number(dx2) < 0)) {
xspeed2 = xspeed2 * (1 + Number(gamespeed));
if (50 < Number(xpseed2)) {
xspeed2 = 50;
}
} else if ((Number(xdir2) == 0) and (0 < Number(dx2))) {
xspeed2 = xspeed2 / (1 + Number(gamespeed));
}
} else if (Number(p_hit_region) == 2) {
if ((Number(xdir2) == 1) and (Number(dx2) < 0)) {
if (Number(xspeed2) < 100) {
xspeed2 = xspeed2 * (3 + Number(gamespeed));
if (50 < Number(xpseed2)) {
xspeed2 = 50;
}
}
} else if ((Number(xdir2) == 1) and (0 < Number(dx2))) {
xspeed2 = xspeed2 / (10 + Number(gamespeed));
}
if ((Number(xdir2) == 0) and (Number(dx2) < 0)) {
xspeed2 = xspeed2 / (10 + Number(gamespeed));
} else if ((Number(xdir2) == 0) and (0 < Number(dx2))) {
if (Number(xspeed2) < 100) {
xspeed2 = xspeed2 * (3 + Number(gamespeed));
if (50 < Number(xpseed2)) {
xspeed2 = 50;
}
}
}
if (Number(xdir) == 0) {
xdir2 = 1;
} else if (Number(xdir) == 1) {
xdir2 = 0;
}
}
if (Number(Collision2) == Number(false)) {
tellTarget ("/sounds") {
gotoAndPlay ("score");
};
Ball2Y = 175;
p1_score = Number(p1_score) + 1;
ydir2 = 0;
xspeed2 = 1;
yspeed2 = 1;
tellTarget ("/p1_scorer") {
play();
};
}
}
if ((Number(Ball2Y) < 30) or (Number(Collision1) == Number(true))) {
ydir2 = 1;
if (Number(p_hit_region) == 0) {
xspeed2 = xspeed2;
} else if (Number(p_hit_region) == 1) {
if ((Number(xdir2) == 1) and (Number(dx2) < 0)) {
xspeed2 = xspeed2 / (3 + Number(gamespeed));
} else if ((Number(xdir2) == 1) and (0 < Number(dx2))) {
xspeed2 = 1 + Number(xspeed2 * (3 + Number(gamespeed)));
}
if ((Number(xdir2) == 0) and (Number(dx2) < 0)) {
xspeed2 = 1 + Number(xspeed2 * (3 + Number(gamespeed)));
} else if ((Number(xdir2) == 0) and (0 < Number(dx2))) {
xspeed2 = xspeed2 / (3 + Number(gamespeed));
}
} else if (Number(p_hit_region) == 2) {
if ((Number(xdir2) == 1) and (Number(dx2) < 0)) {
if (Number(xspeed2) < 100) {
xspeed2 = xspeed2 * (3 + Number(gamespeed));
}
} else if ((Number(xdir2) == 1) and (0 < Number(dx2))) {
xspeed2 = xspeed2 / (10 + Number(gamespeed));
}
if ((Number(xdir2) == 0) and (Number(dx2) < 0)) {
xspeed2 = xspeed2 / (10 + Number(gamespeed));
} else if ((Number(xdir2) == 0) and (0 < Number(dx2))) {
if (Number(xspeed2) < 100) {
xspeed2 = xspeed2 * (3 + Number(gamespeed));
}
}
if (Number(xdir2) == 0) {
xdir2 = 1;
} else if (Number(xdir2) == 1) {
xdir2 = 0;
}
}
if (Number(Collision1) == Number(false)) {
tellTarget ("/sounds") {
gotoAndPlay ("score");
};
Ball2Y = 175;
p2_score = Number(p2_score) + 1;
ydir2 = 1;
xspeed2 = 1;
yspeed2 = 1;
tellTarget ("/p2_scorer") {
play();
};
}
}
ystep = 1.5;
if (Number(ydir2) == 0) {
setProperty("/the_ball2", _y , (Ball2Y - (ystep2 / 2)) - ((gamespeed - 1) / 2));
} else if (Number(ydir2) == 1) {
setProperty("/the_ball2", _y , Number(Number(Ball2Y) + Number(ystep2 / 2)) + Number((gamespeed - 1) / 2));
}
if (Number(Ball2X) >= 290) {
xdir2 = 0;
tellTarget ("/sounds") {
gotoAndPlay ("wallhit");
};
}
if (20 >= Number(Ball2X)) {
xdir2 = 1;
tellTarget ("/sounds") {
gotoAndPlay ("wallhit");
};
}
if (15 < Number(xspeed2)) {
xspeed2 = 15;
}
Xstep2 = xspeed2;
if (Number(xdir2) == 0) {
setProperty("/the_ball2", _x , (Ball2X - (Xstep2 / 2)) - ((gamespeed - 1) / 2));
} else if (Number(xdir2) == 1) {
setProperty("/the_ball2", _x , Number(Number(Ball2X) + Number(Xstep2 / 2)) + Number((gamespeed - 1) / 2));
}
} else {
setProperty("/the_ball2", _visible , false);
}
loops = Number(loops) + 1;
}
if (Number(temp_batx) < Number(topbatx)) {
tellTarget ("/topbat") {
gotoAndPlay (7);
};
} else if (Number(topbatx) < Number(temp_batx)) {
tellTarget ("/topbat") {
gotoAndPlay (2);
};
} else {
tellTarget ("/topbat") {
gotoAndStop (1);
};
}
if (Number(temp_batx2) < Number(botbatx)) {
tellTarget ("/botbat") {
gotoAndPlay (2);
};
} else if (Number(botbatx) < Number(temp_batx2)) {
tellTarget ("/botbat") {
gotoAndPlay (6);
};
} else {
tellTarget ("/botbat") {
gotoAndStop (1);
};
}
if (Number(5 + Number(5 * speed)) < Number(gamespeed)) {
gamespeed = 5 + Number(5 * speed);
}
if ((Number(P1_score) >= Number(score_limit)) and (Number(P2_score) < Number(P1_score))) {
p1_score = score_limit;
winner = 1;
gotoAndStop (24);
}
if ((Number(P2_score) >= Number(score_limit)) and (Number(P1_score) < Number(P2_score))) {
p2_score = score_limit;
winner = 2;
gotoAndStop (24);
}
Frame 22
gotoAndPlay (21);
Frame 23
stop();
Frame 24
if (Number(winner) == 1) {
setProperty("/p1win", _alpha , 100);
winner = 0;
}
if (Number(winner) == 2) {
setProperty("/p2win", _alpha , 100);
winner = 0;
}
stop();
Frame 40
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 2
stop();
Symbol 11 MovieClip Frame 6
gotoAndPlay (2);
Symbol 11 MovieClip Frame 10
gotoAndPlay (7);
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 5
gotoAndPlay (2);
Symbol 20 MovieClip Frame 10
gotoAndPlay (6);
Symbol 40 Button
on (release) {
gotoAndStop (11);
}
Symbol 52 Button
on (release) {
if (Number(random_obs) == Number(false)) {
random_obs = true;
setProperty("/random_obstruction", _alpha , "80");
} else {
random_obs = false;
setProperty("/random_obstruction", _alpha , "0");
}
}
Symbol 58 Button
on (release) {
speed = 0;
setProperty("/speed_select", _x , 460);
}
Symbol 59 Button
on (release) {
speed = 1;
setProperty("/speed_select", _x , 485);
}
Symbol 60 Button
on (release) {
speed = 2;
setProperty("/speed_select", _x , 507);
}
Symbol 63 Button
on (release) {
ballnum = 1;
setProperty("/ballnum_select", _x , 460);
}
Symbol 64 Button
on (release) {
ballnum = 2;
setProperty("/ballnum_select", _x , 485);
}
Symbol 67 Button
on (release) {
paddlesize = 0;
setProperty("/ps_select", _x , 465);
}
Symbol 68 Button
on (release) {
paddlesize = 1;
setProperty("/ps_select", _x , 486);
}
Symbol 69 Button
on (release) {
paddlesize = 2;
setProperty("/ps_select", _x , 510);
}
Symbol 74 Button
on (release) {
gametype = 2;
setProperty("/game_select", _x , "350");
setProperty("/game_select", _y , "340");
}
Symbol 79 Button
on (release) {
gametype = 1;
setProperty("/game_select", _x , "350");
setProperty("/game_select", _y , "290");
}
Symbol 84 Button
on (release) {
gametype = 3;
setProperty("/game_select", _x , "450");
setProperty("/game_select", _y , "290");
}
Symbol 94 Button
on (release, keyPress "+") {
score_limit = Number(score_limit) + 1;
}
Symbol 98 Button
on (release, keyPress "-") {
if (1 < Number(score_limit)) {
score_limit = score_limit - 1;
}
}
Symbol 99 Button
on (release) {
gotoAndPlay (12);
}
Symbol 102 Button
on (keyPress "h") {
gotoAndPlay (30);
}
Symbol 110 Button
on (release, keyPress "q") {
gotoAndStop (11);
}
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 15
gotoAndStop (1);
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 15
gotoAndStop (1);
Symbol 128 MovieClip Frame 5
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 10
stop();
Symbol 133 MovieClip Frame 28
stop();
Symbol 133 MovieClip Frame 43
stop();
Symbol 133 MovieClip Frame 57
stop();
Symbol 133 MovieClip Frame 67
stop();
Symbol 133 MovieClip Frame 79
stop();
Symbol 134 Button
on (release) {
gotoAndPlay (20);
}
Symbol 139 MovieClip Frame 16
gotoAndPlay (5);
Symbol 141 MovieClip Frame 16
gotoAndPlay (5);
Symbol 142 Button
on (release) {
gotoAndStop (11);
}