Frame 1
easy = "5.5";
normal = "6";
hard = "6.5";
c_max = normal;
setProperty("/plugintest", _x , "2000");
setProperty("/plugintest", _y , "2000");
Frame 2
ifFrameLoaded (8) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 5
stop();
ball_x = "275";
mouse_key = "0";
ball_y = "170";
dir_x = -"10";
dir_y = "1";
x1 = "60";
x2 = "490";
y1 = "90";
y2 = "250";
name = "Player 1";
older_pos = "170";
older = "275";
old = "275";
new = "275";
old_pos = "170";
new_pos = "170";
c_pos = "170";
GameOver = "0";
Frame 6
if (c_max == normal) {
tellTarget ("/hardness") {
gotoAndStop (3);
};
}
Frame 7
mouse_y = mouse_pos_y;
mouse_x = mouse_pos_x;
older_pos = old_pos;
old_pos = new_pos;
new_pos = mouse_y;
dif_pos = new_pos - older_pos;
dif_y = dif_pos / "6";
older = old;
old = new;
new = mouse_x;
dif_x = (new - older) / "4";
ball_x = ball_x + dir_x;
ball_y = ball_y + dir_y;
setProperty("/Ball", _x , ball_x);
setProperty("/Ball", _y , ball_y);
if ("231.15" < mouse_y) {
mouse_y = "231.15";
}
if (mouse_y < "108.25") {
mouse_y = "108.25";
}
setProperty("/player", _y , /:mouse_y);
if (("490" - (dir_x / "2")) < ball_x) {
tellTarget ("/player") {
play();
};
if (ball_y < (mouse_y - "24")) {
GameOver = "1";
points_c = points_c + "1";
} else if ((mouse_y + "24") < ball_y) {
GameOver = "1";
points_c = points_c + "1";
}
if (GameOver == "0") {
tellTarget ("/Sound2") {
play();
};
dir_x = (dir_x - ("2" * dir_x)) + dif_x;
dir_y = dir_y + dif_pos;
} else {
tellTarget ("/Sound3") {
play();
};
tellTarget ("/fault") {
play();
};
}
if ((-"2") < dir_x) {
dir_x = -"2";
}
if ("8" < dir_y) {
dir_y = "8";
}
if (dir_y < (-"8")) {
dir_y = -"8";
}
}
if (c_pos < ball_y) {
c_pos = c_pos + c_max;
}
if (ball_y < c_pos) {
c_pos = c_pos - c_max;
}
if (c_pos < "108.25") {
c_pos = "108.25";
}
if ("231.15" < c_pos) {
c_pos = "231.15";
}
setProperty("/computer", _y , c_pos);
if (dir_x < (-"30")) {
dir_x = -"30";
}
if (ball_x < ("60" - (dir_x / "2"))) {
tellTarget ("/computer") {
play();
};
if (ball_y < (c_pos - "24")) {
GameOver = "1";
points_p = points_p + "1";
} else if ((c_pos + "24") < ball_y) {
GameOver = "1";
points_p = points_p + "1";
}
if (GameOver == "0") {
tellTarget ("/Sound2") {
play();
};
dir_x = ((dir_x - ("2" * dir_x)) + (random("1000") / "150")) - "3.35";
dir_y = (dir_y + (random("1000") / "150")) - "3.35";
} else {
tellTarget ("/Sound3") {
play();
};
tellTarget ("/point") {
play();
};
}
if (dir_x < "2") {
dir_x = "2";
}
}
if ("10" < dir_y) {
dir_y = "10";
}
if (dir_y < (-"10")) {
dir_y = -"10";
}
if ("30" < dir_x) {
dir_x = "30";
}
if (("250" - (dir_y / "2")) < ball_y) {
tellTarget ("/Sound3") {
play();
};
dir_y = dir_y - ("2" * dir_y);
ball_y = ball_y + dir_y;
}
if (ball_y < ("90" - (dir_y / "2"))) {
tellTarget ("/Sound3") {
play();
};
dir_y = dir_y - ("2" * dir_y);
ball_y = ball_y + dir_y;
}
schatten_x = (((ball_x - "275") / "300") * ball_x) + "275";
schatten_z = ((schatten_x - ball_x) * "4") + "30";
schatten_a = "100" - (schatten_z / "8");
ball_dif = schatten_x - ball_x;
if ((ball_dif < "0") and ((-"1") < ball_dif)) {
setProperty("/water", _x , ball_x);
setProperty("/water", _y , ball_y);
tellTarget ("/water") {
play();
};
tellTarget ("/Sound") {
play();
};
}
if (GameOver == "0") {
setProperty("/Ball", _x , ball_x);
setProperty("/Ball", _y , ball_y);
setProperty("/Schatten", _x , schatten_x);
setProperty("/Schatten", _y , ball_y);
setProperty("/Schatten", _xscale , schatten_z);
setProperty("/Schatten", _yscale , schatten_z);
setProperty("/Schatten", _alpha , schatten_a);
gotoAndPlay (6);
} else {
gotoAndStop (5);
setProperty("/Ball", _alpha , "0");
setProperty("/Schatten", _alpha , "0");
}
if (points_c == "10") {
gotoAndStop (8);
setProperty("/Ball", _alpha , "0");
setProperty("/Schatten", _alpha , "0");
}
if (points_p == "10") {
gotoAndStop (9);
setProperty("/Ball", _alpha , "0");
setProperty("/Schatten", _alpha , "0");
}
Symbol 11 Button
on (release) {
getURL ("http://www.flash.com", "_blank");
}
Symbol 14 Button
on (release) {
setProperty("/plugintest", _x , "2000");
setProperty("/plugintest", _y , "2000");
}
Symbol 21 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 1
stop();
Symbol 42 Button
on (release) {
Set("/:c_max", /:easy);
gotoAndStop (2);
}
Symbol 46 Button
on (release) {
Set("/:c_max", /:normal);
gotoAndStop (3);
}
Symbol 50 Button
on (release) {
Set("/:c_max", /:hard);
gotoAndStop (4);
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 61 Button
on (release) {
setProperty("/Ball", _alpha , "100");
gotoAndPlay (6);
}
Symbol 66 Button
on (release) {
getURL ("http://www.pose.ch");
}
Symbol 68 MovieClip Frame 1
startDrag ("", true);
Set("/:mouse_pos_y", getProperty("/mousepos", _y));
Set("/:mouse_pos_x", getProperty("/mousepos", _x));
Symbol 72 MovieClip Frame 50
stop();
Symbol 75 Button
on (release) {
points_p = "0";
points_c = "0";
tellTarget ("/hardness") {
gotoAndStop (1);
};
gotoAndStop (5);
}
Symbol 78 MovieClip Frame 50
stop();
Symbol 81 Button
on (release) {
points_p = "0";
points_c = "0";
tellTarget ("/hardness") {
gotoAndStop (1);
};
gotoAndStop (5);
}