Frame 1
function do_login() {
var my_result = new LoadVars();
my_result.onLoad = function (passed) {
if (passed) {
if (my_result.checked == "success") {
user = my_result.username;
user_num = my_result.user_num;
main_menu.login_window.gotoAndStop(2);
logged_in = true;
} else {
main_menu.login_window.name_input.text = "";
main_menu.login_window.pass_input.text = "";
logged_in = false;
}
} else {
trace("ohhh");
}
};
my_name = main_menu.login_window.name_input.text;
my_pass = main_menu.login_window.pass_input.text;
var _local1 = new LoadVars();
_local1.my_name = my_name;
_local1.my_pass = my_pass;
_local1.sendAndLoad("http://www.stupidlikeafox.co.nz/bing/bing_functions.php?mode=login", my_result, "POST");
}
function register_user() {
var reg_result = new LoadVars();
reg_result.onLoad = function () {
if (reg_result.reg_check == "success") {
user = reg_name;
main_menu.login_window.gotoAndStop(2);
logged_in = true;
produce_main_menu();
removeMovieClip(register);
} else if (reg_result.reg_check == "failure") {
reason = "Could not log on.\n";
if (reg_result.reason == "empty_field") {
reason = reason + "You haven't filled out \nall fields";
} else if (reg_result.reason == "no_pass_match") {
reason = reason + "Passwords do not match.";
} else if (reg_result.reason == "name_short") {
reason = reason + "Name too short.\n4 characters minimum.";
} else if (reg_result.reason == "pass_short") {
reason = reason + "Password too short.\n6 characters minimum.";
} else if (reg_result.reason == "name_taken") {
reason = reason + "Sorry, that name is taken.";
} else if (reg_result.reason == "invalid_pass") {
reason = reason + "Invalid password.\nPlease try again.";
} else {
reason = reason + "Error registering. \n Please try again later.";
}
play_sound("error_sound");
} else {
trace(reg_result.reason);
reason = "Login not working. \n Please try again later.";
}
};
reg_name = register.new_name.text;
reg_pass_1 = register.new_pass_1.text;
reg_pass_2 = register.new_pass_2.text;
reg_email = register.new_email.text;
var _local1 = new LoadVars();
_local1.send_reg_name = reg_name;
_local1.send_reg_pass_1 = reg_pass_1;
_local1.send_reg_pass_2 = reg_pass_2;
_local1.send_reg_email = reg_email;
_local1.sendAndLoad("http://www.stupidlikeafox.co.nz/bing/bing_functions.php?mode=register", reg_result, "POST");
}
function log_user_out() {
main_menu.login_window.gotoAndStop(1);
main_menu.login_window.name_input.text = "";
main_menu.login_window.pass_input.text = "";
main_menu.login_window.name_input.maxChars = 15;
main_menu.login_window.pass_input.maxChars = 15;
main_menu.login_window.pass_input.password = true;
logged_in = false;
}
function do_register() {
this.attachMovie("register", "register", 499);
register._x = 340;
register._y = 200;
reason = "";
register.new_name.text = "";
register.new_pass_1.text = "";
register.new_pass_2.text = "";
register.new_email.text = "";
register.new_pass_1.password = true;
register.new_pass_2.password = true;
main_menu.login_window.name_input.text = "";
main_menu.login_window.pass_input.text = "";
removeMovieClip(main_menu);
}
function start_game(set_num, stage_num) {
_root.clock_message = set_list[set_num][0][0][2];
_root.lives = 3;
_root.score = 0;
_root.active = true;
_root.my_set_num = set_num;
_root.stage = stage_num + 1;
removeMovieClip(main_menu);
produce_game_menu();
build_map(set_list[set_num][stage_num]);
_root.pass = set_list[set_num][stage_num][0][1];
_root.dir = set_list[set_num][stage_num][0][0];
}
function pass_check(code) {
var _local2 = -1;
var _local3 = -1;
i = 0;
while (i < set_list.length) {
j = 0;
while (j < set_list[i].length) {
if (code == set_list[i][j][0][1]) {
_local2 = i;
_local3 = j;
}
j++;
}
i++;
}
if (_local2 >= 0) {
_root.my_set_num = _local2;
start_game(_local2, _local3);
play_sound(item_sound);
} else {
_root.pass = "";
play_sound(error_sound);
}
}
function build_map(map) {
var _local6 = 10;
var _local4 = 0;
while (_local4 < map_height) {
var _local3 = 0;
while (_local3 < map_length) {
_local6++;
this.attachMovie("game_tile", (("t" + _local4) + "_") + _local3, _local6);
this[(("t" + _local4) + "_") + _local3]._x = ((_local3 * 24) + (this[(("t" + _local4) + "_") + _local3]._width / 2)) + 161;
this[(("t" + _local4) + "_") + _local3]._y = ((_local4 * 24) + (this[(("t" + _local4) + "_") + _local3]._height / 2)) + 45;
this[(("t" + _local4) + "_") + _local3].p = map[_local4 + 1][_local3];
if (map[_local4 + 1][_local3] > 0) {
this[(("t" + _local4) + "_") + _local3].gotoAndStop(Number(map[_local4 + 1][_local3]) + 1);
}
if (this[(("t" + _local4) + "_") + _local3].p == 3) {
_root.start_x = this[(("t" + _local4) + "_") + _local3]._x;
_root.start_y = this[(("t" + _local4) + "_") + _local3]._y;
}
_local3++;
}
_local4++;
}
this.attachMovie("game_on", "game_on", 701);
game_on._x = 340;
game_on._y = 200;
this.attachMovie("ball_start", "ball_start", 700);
ball_start._x = _root.start_x;
ball_start._y = _root.start_y;
}
function produce_game_menu() {
this.attachMovie("game_menu", "game_menu", 501);
game_menu._x = 20;
game_menu._y = 120;
game_menu._visible = true;
}
function produce_ball() {
this.attachMovie("ball_game", "ball_game", 699);
ball_game._x = _root.start_x;
ball_game._y = _root.start_y;
}
function change_map(set_num, stage_num) {
var _local4 = 0;
while (_local4 < map_height) {
var _local3 = 0;
while (_local3 < map_length) {
this[(("t" + _local4) + "_") + _local3].gotoAndStop(Number(set_list[set_num][stage_num - 1][_local4 + 1][_local3]) + 1);
this[(("t" + _local4) + "_") + _local3].tile.gotoAndStop(1);
this[(("t" + _local4) + "_") + _local3].p = set_list[set_num][stage_num - 1][_local4 + 1][_local3];
if (this[(("t" + _local4) + "_") + _local3].p == 3) {
_root.start_x = this[(("t" + _local4) + "_") + _local3]._x;
_root.start_y = this[(("t" + _local4) + "_") + _local3]._y;
}
_local3++;
}
_local4++;
}
this.attachMovie("game_on", "game_on", 701);
game_on._x = 340;
game_on._y = 200;
this.attachMovie("ball_start", "ball_start", 700);
ball_start._x = _root.start_x;
ball_start._y = _root.start_y;
game_menu._visible = true;
ball_game.boom = false;
_root.pass = set_list[set_num][stage_num - 1][0][1];
_root.dir = set_list[set_num][stage_num - 1][0][0];
}
function produce_stage_trans() {
game_menu._visible = false;
this.attachMovie("stage_trans", "stage_trans", 699);
stage_trans._x = 340;
stage_trans._y = 200;
}
function remove_game() {
var _local3 = 0;
while (_local3 < map_height) {
var _local2 = 0;
while (_local2 < map_length) {
removeMovieClip(this[(("t" + _local3) + "_") + _local2]);
_local2++;
}
_local3++;
}
removeMovieClip(share_menu);
removeMovieClip(ball_game);
removeMovieClip(game_menu);
removeMovieClip(game_on);
removeMovieClip(ball_pop_game);
removeMovieClip(ball_start);
removeMovieClip(ball_exit_game);
removeMovieClip(stage_trans);
removeMovieClip(ball_game_over);
}
function produce_game_over() {
this.attachMovie("game_over", "game_over", 600);
game_over._x = 340;
game_over._y = 200;
}
function produce_clocking() {
this.attachMovie("clocking", "clocking", 501);
clocking._x = 340;
clocking._y = 200;
}
function produce_how_to_play() {
removeMovieClip(main_menu);
this.attachMovie("how_to_play", "how_to_play", 499);
how_to_play._x = 340;
how_to_play._y = 200;
}
function produce_main_menu() {
remove_editor_area();
remove_user_buttons();
removeMovieClip(user_editor_page);
this.attachMovie("main_menu", "main_menu", 499);
main_menu._x = 340;
main_menu._y = 200;
_root.code = "";
if (logged_in) {
main_menu.login_window.gotoAndStop(2);
} else {
main_menu.login_window.gotoAndStop(1);
main_menu.login_window.name_input.text = "";
main_menu.login_window.pass_input.text = "";
main_menu.login_window.name_input.maxChars = 15;
main_menu.login_window.pass_input.maxChars = 15;
main_menu.login_window.pass_input.password = true;
}
remove_user_buttons();
}
function produce_editor_menu() {
this.createEmptyMovieClip("editor_menu", 499);
editor_menu._x = 20;
editor_menu._y = 120;
editor_menu.attachMovie("editor_menu", "editor_menu", 499);
}
function produce_test_menu() {
this.createEmptyMovieClip("test_menu", 499);
test_menu._x = 60;
test_menu._y = 320;
test_menu.attachMovie("test_menu", "test_menu", 499);
}
function produce_item_window() {
this.createEmptyMovieClip("item_window", 501);
item_window._x = 214;
item_window._y = 8;
item_window.onscreen = true;
item_window.attachMovie("item_window", "item_window", 501);
}
function hide_item_window() {
item_window._x = 1060;
item_window.onscreen = false;
}
function show_item_window() {
item_window._x = 214;
item_window._y = 8;
item_window.onscreen = true;
place_window_top(item_window, selection_window, direction_window);
}
function produce_selection_window() {
this.createEmptyMovieClip("selection_window", 500);
selection_window._x = 12;
selection_window._y = 102;
selection_window.onscreen = true;
selection_window.attachMovie("selection_window", "selection_window", 500);
}
function hide_selection_window() {
selection_window._x = 680;
selection_window.onscreen = false;
}
function show_selection_window() {
selection_window._x = 12;
selection_window._y = 102;
selection_window.onscreen = true;
place_window_top(selection_window, item_window, direction_window);
}
function produce_direction_window() {
this.createEmptyMovieClip("direction_window", 502);
direction_window._x = 32;
direction_window._y = 122;
direction_window.onscreen = true;
direction_window.attachMovie("direction_window", "direction_window", 502);
}
function hide_direction_window() {
direction_window._x = 700;
direction_window.onscreen = false;
}
function show_direction_window() {
direction_window._x = 32;
direction_window._y = 122;
direction_window.onscreen = true;
place_window_top(direction_window, item_window, selection_window);
}
function place_window_top(target, other_1, other_2) {
if (target.getDepth() != 502) {
my_depth = target.getDepth();
other_1_depth = other_1.getDepth();
other_2_depth = other_2.getDepth();
if ((my_depth < other_1_depth) && (my_depth < other_2_depth)) {
if (other_1_depth == 502) {
target.swapDepths(other_2);
target.swapDepths(other_1);
} else {
target.swapDepths(other_1);
target.swapDepths(other_2);
}
} else if ((my_depth < other_1_depth) && (my_depth > other_2_depth)) {
target.swapDepths(other_1);
} else if ((my_depth > other_1_depth) && (my_depth < other_2_depth)) {
target.swapDepths(other_2);
}
}
}
function build_editor() {
if (!map_is_new) {
rebuild_editor();
} else {
var _local2 = 10;
i = 0;
while (i < map_height) {
j = 0;
while (j < map_length) {
_local2++;
this.attachMovie("editor_tile", (("t" + i) + "_") + j, _local2);
this[(("t" + i) + "_") + j]._x = ((j * 24) + (this[(("t" + i) + "_") + j]._width / 2)) + 161;
this[(("t" + i) + "_") + j]._y = ((i * 24) + (this[(("t" + i) + "_") + j]._height / 2)) + 45;
this[(("t" + i) + "_") + j].p = 0;
this[(("t" + i) + "_") + j].gotoAndStop(1);
j++;
}
i++;
}
}
}
function check_map() {
var _local2 = false;
var _local3 = false;
i = 0;
while (i < map_height) {
j = 0;
while (j < map_length) {
if (this[(("t" + i) + "_") + j].p == 3) {
_local2 = true;
} else if (this[(("t" + i) + "_") + j].p == 9) {
_local3 = true;
}
j++;
}
i++;
}
if (!_local2) {
play_sound(error_sound);
return(false);
}
if (!_local3) {
play_sound(error_sound);
return(false);
}
return(true);
}
function do_hor_line(vert_var) {
i = 0;
while (i < map_length) {
this[(("t" + vert_var) + "_") + i].p = _root.myVar;
this[(("t" + vert_var) + "_") + i].gotoAndStop(_root.myVar + 1);
i++;
}
}
function do_vert_line(hor_var) {
i = 0;
while (i < map_height) {
this[(("t" + i) + "_") + hor_var].p = _root.myVar;
this[(("t" + i) + "_") + hor_var].gotoAndStop(_root.myVar + 1);
i++;
}
}
function do_diag_line_1(x_var, y_var) {
var _local2 = y_var;
my_x = x_var;
while ((i < map_width) || (_local2 >= 0)) {
this[(("t" + _local2) + "_") + my_x].p = myVar;
this[(("t" + _local2) + "_") + my_x].gotoAndStop(myVar + 1);
_local2--;
my_x++;
}
_local2 = y_var + 1;
my_x = x_var - 1;
while ((my_x >= 0) || (_local2 < map_height)) {
this[(("t" + _local2) + "_") + my_x].p = myVar;
this[(("t" + _local2) + "_") + my_x].gotoAndStop(myVar + 1);
_local2++;
my_x--;
}
}
function do_diag_line_2(x_var, y_var) {
var _local2 = y_var;
my_x = x_var;
while ((my_x >= 0) || (_local2 >= 0)) {
this[(("t" + _local2) + "_") + my_x].p = myVar;
this[(("t" + _local2) + "_") + my_x].gotoAndStop(myVar + 1);
_local2--;
my_x--;
}
_local2 = y_var + 1;
my_x = x_var + 1;
while ((my_x < map_width) || (_local2 < map_height)) {
this[(("t" + _local2) + "_") + my_x].p = myVar;
this[(("t" + _local2) + "_") + my_x].gotoAndStop(myVar + 1);
_local2++;
my_x++;
}
}
function fill_editor(curr_var) {
i = 0;
while (i < map_height) {
j = 0;
while (j < map_length) {
this[(("t" + i) + "_") + j].p = curr_var;
this[(("t" + i) + "_") + j].gotoAndStop(curr_var + 1);
j++;
}
i++;
}
}
function output_map() {
printArray = "map[i] = [\n";
printArray = printArray + (("\t\t[" + dir) + ",''],\n");
i = 0;
while (i < map_height) {
printArray = printArray + "\t\t[";
j = 0;
while (j < map_length) {
if (j != (map_length - 1)) {
printArray = printArray + (this[(("t" + i) + "_") + j].p + ",");
} else {
printArray = printArray + this[(("t" + i) + "_") + j].p;
}
j++;
}
if (i != (map_height - 1)) {
printArray = printArray + "],\n";
} else {
printArray = printArray + "]\n\t\t];";
}
i++;
}
trace(printArray);
}
function save_map() {
if (share) {
share_num = 1;
} else {
share_num = 0;
}
var save_result = new LoadVars();
save_result.onLoad = function (passed) {
if (passed) {
if (save_result.checked == success) {
remove_editor_area();
}
} else {
trace("no love");
}
};
var _local1 = new LoadVars();
_local1.my_user = user;
if (map_is_new) {
_local1.mapID = -1;
} else {
_local1.mapID = my_array[my_item].mapID;
my_title = my_array[my_item].title;
}
_local1.my_title = my_title;
_local1.my_dir = dir;
_local1.share = share_num;
_local1.my_data = array_string;
_local1.sendAndLoad("http://www.stupidlikeafox.co.nz/bing/bing_functions.php?mode=save_single", save_result, "POST");
}
function produce_map_name_input() {
remove_editor_area();
this.attachMovie("map_name_input", "map_name_input", 501);
map_name_input._x = 340;
map_name_input._y = 200;
map_name_input.map_name_input_field.text = "Enter name here";
map_name_input.map_name_input_field.maxChars = 12;
}
function produce_new_verify() {
removeMovieClip(map_name_input);
this.attachMovie("new_verify", "new_verify", 502);
new_verify._x = 340;
new_verify._y = 200;
}
function produce_changes_verify() {
if (save_result.checked == success) {
trace("hi!");
this.attachMovie("changes_verify", "changes_verify", 502);
changes_verify._x = 340;
changes_verify._y = 200;
} else {
trace("na.");
}
}
function produce_delete_verify() {
remove_user_buttons();
removeMovieClip(user_editor_page);
this.attachMovie("delete_verify", "delete_verify", 502);
delete_verify._x = 340;
delete_verify._y = 200;
remove_user_buttons();
}
function produce_editor() {
if (!logged_in) {
removeMovieClip(main_menu);
} else {
remove_user_buttons();
removeMovieClip(user_editor_page);
}
build_editor();
produce_direction_window();
produce_item_window();
produce_selection_window();
produce_editor_menu();
remove_user_buttons();
}
function produce_user_editor_page() {
remove_user_buttons();
removeMovieClip(main_menu);
removeMovieClip(new_verify);
removeMovieClip(delete_verify);
removeMovieClip(changes_verify);
removeMovieClip(user_editor_page);
remove_editor_area();
this.attachMovie("user_editor_page", "user_editor_page", 508);
user_editor_page._x = 340;
user_editor_page._y = 200;
my_ID = user_num;
my_info = new XML();
my_info.ignoreWhite = true;
my_info.onLoad = output_my_info;
my_info.load((("http://www.stupidlikeafox.co.nz/bing/bing_functions.php?mode=get_maps&user=" + user) + "&searchtype=") + my_search);
}
function remove_user_buttons() {
removeMovieClip(my_back_bm);
removeMovieClip(my_fwd_bm);
i = 0;
while (i < my_amount) {
removeMovieClip(_root["del" + i]);
removeMovieClip(_root["edit" + i]);
i++;
}
}
function output_my_info(success) {
if (success) {
my_maps = read_my_maps(my_info);
if (my_maps == false) {
trace("couldnt read");
}
my_maps = "";
my_dates = "";
my_votes = "";
my_average = "";
if (user_page_num > 0) {
_root.attachMovie("my_back_bm", "my_back_bm", 599);
my_back_bm._x = 320;
my_back_bm._y = 344;
}
if (my_amount > ((user_page_num + 1) * 11)) {
_root.attachMovie("my_fwd_bm", "my_fwd_bm", 598);
my_fwd_bm._x = 380;
my_fwd_bm._y = 344;
}
i = user_page_num * 11;
while ((i < ((user_page_num * 11) + 11)) && (i < my_amount)) {
my_maps = my_maps + (my_array[i].title + newline);
my_dates = my_dates + (my_array[i].date + newline);
my_votes = my_votes + (my_array[i].votes + newline);
my_average = my_average + (my_array[i].avg + newline);
_root.attachMovie("edit_bm", "edit" + (i - (user_page_num * 11)), 600 + (i - (user_page_num * 11)));
_root["edit" + (i - (user_page_num * 11))]._x = 440;
_root["edit" + (i - (user_page_num * 11))]._y = 130 + ((i - (user_page_num * 11)) * 17);
_root["edit" + (i - (user_page_num * 11))].p = i;
_root["edit" + (i - (user_page_num * 11))].share = my_array[i].share;
_root.attachMovie("del_bm", "del" + (i - (user_page_num * 11)), 620 + (i - (user_page_num * 11)));
_root["del" + (i - (user_page_num * 11))]._x = 480;
_root["del" + (i - (user_page_num * 11))]._y = 130 + ((i - (user_page_num * 11)) * 17);
_root["del" + (i - (user_page_num * 11))].p = i;
i++;
}
} else {
trace("couldnt output");
}
}
function read_my_maps(obj) {
my_array = new Array();
my_amount = obj.firstChild.childNodes.length - 1;
i = 0;
while (i < my_amount) {
my_array[i] = new Array();
my_array[i].map_num = i;
my_array[i].mapID = obj.firstChild.childNodes[i + 1].attributes.id;
my_array[i].title = obj.firstChild.childNodes[i + 1].childNodes[0].firstChild.nodeValue;
my_array[i].dir = obj.firstChild.childNodes[i + 1].childNodes[1].firstChild.nodeValue;
my_array[i].share = obj.firstChild.childNodes[i + 1].childNodes[2].firstChild.nodeValue;
my_array[i].date = obj.firstChild.childNodes[i + 1].childNodes[3].firstChild.nodeValue;
my_array[i].votes = obj.firstChild.childNodes[i + 1].childNodes[4].firstChild.nodeValue;
my_array[i].avg = obj.firstChild.childNodes[i + 1].childNodes[5].firstChild.nodeValue;
my_array[i].data = obj.firstChild.childNodes[i + 1].childNodes[6].firstChild.nodeValue;
i++;
}
return(my_array);
}
function delete_map(p) {
var delete_result = new LoadVars();
delete_result.onLoad = function (passed) {
if (passed) {
if (delete_result.checked == "success") {
trace("removed");
} else if (delete_result.checked == "failure") {
if (delete_result.reason == "bad_userid") {
trace("bad id");
} else if (delete_result.reason == "bad_map") {
trace("bad map");
}
trace("couldnt delete");
play_sound("error_sound");
}
} else {
trace("ohhh");
}
};
my_name = user;
my_ID = my_array[p].mapID;
var _local1 = new LoadVars();
_local1.my_name = my_name;
_local1.my_ID = my_ID;
_local1.sendAndLoad("http://www.stupidlikeafox.co.nz/bing/bing_functions.php?mode=delete_single", delete_result, "POST");
}
function produce_user_stage(stage) {
my_item = stage;
s = 0;
my_array[stage].data = my_array[stage].data.split(",");
test_map = new Array();
test_map[0] = [my_array[stage].dir, ""];
i = 0;
while (i < map_height) {
test_map[i + 1] = new Array();
j = 0;
while (j < map_length) {
test_map[i + 1][j] = Number(my_array[stage].data[s]);
s++;
j++;
}
i++;
}
rebuild_editor();
produce_direction_window();
produce_item_window();
produce_selection_window();
produce_editor_menu();
removeMovieClip(user_editor_page);
remove_user_buttons();
}
function remove_editor_area() {
var _local3 = 0;
while (_local3 < map_height) {
var _local2 = 0;
while (_local2 < map_length) {
removeMovieClip(this[(("t" + _local3) + "_") + _local2]);
removeMovieClip(this[(("test" + _local3) + "_") + _local2]);
_local2++;
}
_local3++;
}
removeMovieClip(item_window);
removeMovieClip(selection_window);
removeMovieClip(direction_window);
removeMovieClip(editor_menu);
}
function create_array() {
test_map = new Array();
test_map[0] = [dir, ""];
i = 0;
while (i < map_height) {
test_map[i + 1] = new Array();
j = 0;
while (j < map_length) {
test_map[i + 1][j] = this[(("t" + i) + "_") + j].p;
j++;
}
i++;
}
}
function produce_data() {
array_string = "";
i = 0;
while (i < map_height) {
j = 0;
while (j < map_length) {
array_string = array_string + (this[(("t" + i) + "_") + j].p + ",");
j++;
}
i++;
}
}
function go_to_test() {
if (check_map()) {
create_array();
hide_current_windows();
removeMovieClip(editor_menu);
produce_test_menu();
build_test();
}
}
function build_test() {
var _local2 = 10;
var _local4 = 0;
var _local3 = 0;
this.createEmptyMovieClip("ball_test", 600);
ball_test.attachMovie("ball_test", "ball_test", 600);
i = 0;
while (i < map_height) {
j = 0;
while (j < map_length) {
_local2++;
this.attachMovie("test_tile", (("test" + i) + "_") + j, _local2);
this[(("test" + i) + "_") + j]._x = ((j * 24) + (this[(("test" + i) + "_") + j]._width / 2)) + 161;
this[(("test" + i) + "_") + j]._y = ((i * 24) + (this[(("test" + i) + "_") + j]._height / 2)) + 45;
this[(("test" + i) + "_") + j].p = test_map[i + 1][j];
if (this[(("test" + i) + "_") + j].p > 0) {
this[(("test" + i) + "_") + j].gotoAndStop(test_map[i + 1][j] + 1);
}
if (this[(("test" + i) + "_") + j].p == 3) {
start_x = this[(("test" + i) + "_") + j]._x;
start_y = this[(("test" + i) + "_") + j]._y;
}
j++;
}
i++;
}
ball_test._x = start_x;
ball_test._y = start_y;
}
function hide_current_windows() {
if (selection_window.onscreen == true) {
selection_window._x = 680;
}
if (direction_window.onscreen == true) {
direction_window._x = 700;
}
if (item_window.onscreen == true) {
item_window._x = 1040;
}
}
function go_back_to_editor() {
removeMovieClip(test_menu);
remove_test();
rebuild_editor();
produce_editor_menu();
show_current_windows();
}
function show_current_windows() {
if (selection_window.onscreen == true) {
selection_window._x = 12;
}
if (direction_window.onscreen == true) {
direction_window._x = 32;
}
if (item_window.onscreen == true) {
item_window._x = 262;
}
}
function remove_test() {
var _local3 = 0;
while (_local3 < map_height) {
var _local2 = 0;
while (_local2 < map_length) {
removeMovieClip(this[(("test" + _local3) + "_") + _local2]);
_local2++;
}
_local3++;
}
removeMovieClip(test_menu);
removeMovieClip(ball_test);
removeMovieClip(ball_exit_test);
removeMovieClip(ball_pop_test);
dir = selected_dir;
}
function rebuild_editor() {
var _local3 = 10;
i = 0;
while (i < map_height) {
j = 0;
while (j < map_length) {
_local3++;
this.attachMovie("editor_tile", (("t" + i) + "_") + j, _local3);
this[(("t" + i) + "_") + j]._x = ((j * 24) + (this[(("t" + i) + "_") + j]._width / 2)) + 161;
this[(("t" + i) + "_") + j]._y = ((i * 24) + (this[(("t" + i) + "_") + j]._height / 2)) + 45;
this[(("t" + i) + "_") + j].p = _root.test_map[i + 1][j];
if (this[(("t" + i) + "_") + j].p > 0) {
this[(("t" + i) + "_") + j].gotoAndStop(test_map[i + 1][j] + 1);
}
j++;
}
i++;
}
}
function produce_share_list() {
removeMovieClip(main_menu);
remove_user_info();
get_list_amount();
}
function produce_share_window() {
this.attachMovie("share_window", "share_window", 499);
share_window._x = 320;
share_window._y = 210;
}
function get_list_amount() {
amount = new XML();
amount.ignoreWhite = true;
amount.onLoad = produce_list_amount;
amount.load("http://www.stupidlikeafox.co.nz/bing/bing_functions.php?mode=get_number_users");
}
function produce_list_amount(success) {
if (success) {
read_amount(amount);
} else {
trace("im going home.");
}
}
function read_amount(amount) {
if (amount.hasChildNodes()) {
my_amount = amount.childNodes[0].childNodes[0].nodeValue;
get_list("top_rated", 0);
} else {
trace("No nodes");
}
}
function get_list(search, page_num) {
my_page_num = page_num;
my_search = search;
list = new XML();
list.ignoreWhite = true;
list.onLoad = output_list;
list.load((("http://www.stupidlikeafox.co.nz/bing/bing_functions.php?mode=get_list&searchtype=" + search) + "&page=") + my_page_num);
}
function output_list(success) {
if (success) {
my_list = read_list(list);
if (my_list == false) {
trace("couldnt get list");
}
produce_share_window();
userlist = "";
map_amount = "";
last_updated = "";
rating = "";
remove_view_buttons();
removeMovieClip(fwd_bm);
removeMovieClip(back_bm);
page_loop = my_amount - (my_page_num * 13);
if (my_page_num == 0) {
if (my_amount > 13) {
page_loop = 13;
} else {
page_loop = my_amount;
}
}
i = 0;
while ((i < page_loop) && (i < 13)) {
_root.attachMovie("view_bm", "view" + i, 600 + i);
_root["view" + i]._x = 490;
_root["view" + i]._y = 88 + (i * 18);
_root["view" + i].p = i;
userlist = userlist + (list_array[i].name + newline);
map_amount = map_amount + (list_array[i].amount + newline);
last_updated = last_updated + (list_array[i].date + newline);
rating = rating + (list_array[i].avg + newline);
i++;
}
if (my_amount > ((my_page_num + 1) * 13)) {
_root.attachMovie("fwd_bm", "fwd_bm", 598);
fwd_bm._x = 380;
fwd_bm._y = 340;
}
if (my_page_num > 0) {
_root.attachMovie("back_bm", "back_bm", 599);
back_bm._x = 320;
back_bm._y = 340;
}
} else {
trace("cannot output list");
}
}
function remove_view_buttons() {
removeMovieClip(fwd_bm);
removeMovieClip(back_bm);
i = 0;
while (i < 13) {
removeMovieClip(_root["view" + i]);
i++;
}
}
function read_list(obj) {
list_array = new Array();
i = 0;
while (i < my_amount) {
list_array[i] = new Array();
list_array[i].name = obj.firstChild.childNodes[i].firstChild.firstChild.nodeValue;
list_array[i].userID = obj.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
list_array[i].amount = obj.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue;
list_array[i].date = obj.firstChild.childNodes[i].childNodes[3].firstChild.nodeValue;
list_array[i].avg = obj.firstChild.childNodes[i].childNodes[4].firstChild.nodeValue;
i++;
}
return(list_array);
}
function produce_user_maps(user_num, page_num, searchtype) {
removeMovieClip(share_window);
my_user_num = user_num;
user_page_num = page_num;
get_user_maps(user_num, 0, 0);
remove_view_buttons();
produce_user_map_window();
}
function produce_user_map_window() {
this.attachMovie("user_map_window", "user_map_window", 499);
user_map_window._x = 340;
user_map_window._y = 200;
}
function get_user_maps(num, page_num) {
user_info = new XML();
user_info.ignoreWhite = true;
user_info.onLoad = output_user_info;
user_page_num = page_num;
my_num = num;
user_amount = list_array[num].amount;
my_ID = list_array[num].userID;
user_info.load((("http://www.stupidlikeafox.co.nz/bing/bing_functions.php?mode=get_user_stages&userID=" + my_ID) + "&searchtype=") + my_search);
}
function output_user_info(success) {
if (success) {
user_maps = read_user_maps(user_info);
if (user_maps == false) {
trace("cannot read maps");
}
selected_user = list_array[my_num].name;
map_title_list = "";
votes_list = "";
average_list = "";
create_user_set(selected_user);
removeMovieClip(fwd_user_bm);
removeMovieClip(back_user_bm);
i = 0;
while (i < 11) {
removeMovieClip(_root["play" + i]);
i++;
}
user_loop = user_amount - (user_page_num * 11);
if (user_page_num == 0) {
if (user_amount > 11) {
user_loop = 11;
} else {
user_loop = user_amount;
}
}
i = 0;
while ((i < user_loop) && (i < 11)) {
_root.attachMovie("play_bm", "play" + i, 600 + i);
_root["play" + i]._x = 310;
_root["play" + i]._y = 116 + (i * 17);
_root["play" + i].p = i;
map_title_list = map_title_list + (user_array[i].title + newline);
votes_list = votes_list + (user_array[i].votes + newline);
average_list = average_list + (user_array[i].avg + newline);
i++;
}
if (user_amount > (11 + (11 * user_page_num))) {
_root.attachMovie("fwd_user_bm", "fwd_user_bm", 598);
fwd_user_bm._x = 312;
fwd_user_bm._y = 330;
}
if (user_page_num > 0) {
_root.attachMovie("back_user_bm", "back_user_bm", 599);
back_user_bm._x = 260;
back_user_bm._y = 330;
}
} else {
trace("Cannot output user stages");
}
}
function remove_user_info() {
removeMovieClip(user_map_window);
removeMovieClip(fwd_user_bm);
removeMovieClip(back_user_bm);
remove_preview();
i = 0;
while (i < user_amount) {
removeMovieClip(_root["play" + i]);
i++;
}
}
function read_user_maps(obj) {
user_array = new Array();
i = 0;
while (i < user_amount) {
user_array[i] = new Array();
user_array[i].map_num = i;
user_array[i].title = obj.firstChild.childNodes[i + 1].childNodes[1].firstChild.nodeValue;
user_array[i].mapID = obj.firstChild.childNodes[i + 1].childNodes[0].firstChild.nodeValue;
user_array[i].data = obj.firstChild.childNodes[i + 1].childNodes[3].firstChild.nodeValue;
user_array[i].avg = obj.firstChild.childNodes[i + 1].childNodes[4].firstChild.nodeValue;
user_array[i].votes = obj.firstChild.childNodes[i + 1].childNodes[5].firstChild.nodeValue;
user_array[i].dir = obj.firstChild.childNodes[i + 1].childNodes[6].firstChild.nodeValue;
i++;
}
return(user_array);
}
function create_user_set() {
shared_set = new Array();
i = 0;
while (i < user_amount) {
shared_set[i] = new Array();
if (i == 0) {
shared_set[i][0] = [user_array[i].dir, user_array[i].title, "You completed this user's stages!"];
} else {
shared_set[i][0] = [user_array[i].dir, user_array[i].title];
}
user_array[i].data = user_array[i].data.split(",");
j = 0;
while (j < map_height) {
shared_set[i][j + 1] = new Array();
k = 0;
while (k < map_length) {
shared_set[i][j + 1][k] = user_array[i].data[k + (j * map_length)];
k++;
}
j++;
}
i++;
}
clock_message = shared_set[0][0][2];
set_list[2] = shared_set;
}
function start_shared_game(my_stage) {
my_stage = my_stage + (user_page_num * 11);
stage = my_stage + 1;
lives = 3;
score = 0;
active = true;
my_set_num = 2;
build_map(set_list[2][my_stage]);
dir = set_list[2][my_stage][0][0];
remove_user_info();
produce_shared_game_menu();
}
function rate_stage(my_rating) {
var rate_result = new LoadVars();
rate_result.onLoad = function (passed) {
if (passed) {
if (rate_result.checked == "success") {
produce_rate_confirm();
} else {
if (rate_result.checked == "failure") {
if (rate_result.reason == "bad_userid") {
trace("ID");
} else if (rate_result.reason == "no_rating") {
trace("rating");
} else if (rate_result.reason == "no_update") {
trace("update");
} else {
trace("other");
}
}
trace("rate checked is neither true or false");
play_sound("error_sound");
}
} else {
trace("couldnt rate");
}
};
var _local1 = new LoadVars();
_local1.designer = selected_user;
_local1.stage_to_rate = user_array[stage - 2].mapID;
_local1.rating = my_rating;
_local1.sendAndLoad("http://www.stupidlikeafox.co.nz/bing/bing_functions.php?mode=rate", rate_result, "POST");
}
function produce_rate_confirm() {
removeMovieClip(stage_trans);
this.attachMovie("rate_confirm", "rate_confirm", 699);
rate_confirm._x = 340;
rate_confirm._y = 200;
}
function create_preview(num) {
prev_depth = 10;
i = 0;
while (i < map_height) {
j = 0;
while (j < map_length) {
prev_depth++;
switch (shared_set[num][i + 1][j]) {
case "0" :
this.attachMovie("grey_bing_tile", (("p" + i) + "_") + j, prev_depth);
this[(("p" + i) + "_") + j]._width = 11;
this[(("p" + i) + "_") + j]._height = 11;
break;
case "3" :
this.attachMovie("static_ball", (("p" + i) + "_") + j, prev_depth);
this[(("p" + i) + "_") + j]._width = 3;
this[(("p" + i) + "_") + j]._height = 3;
break;
default :
this.attachMovie("bing_tile", (("p" + i) + "_") + j, prev_depth);
this[(("p" + i) + "_") + j]._width = 11;
this[(("p" + i) + "_") + j]._height = 11;
}
this[(("p" + i) + "_") + j]._x = (j * 12) + 340;
this[(("p" + i) + "_") + j]._y = (i * 12) + 115;
j++;
}
i++;
}
}
function remove_preview() {
i = 0;
while (i < map_height) {
j = 0;
while (j < map_length) {
removeMovieClip(this[(("p" + i) + "_") + j]);
j++;
}
i++;
}
}
function produce_shared_game_menu() {
this.attachMovie("share_menu", "share_menu", 501);
share_menu._x = 20;
share_menu._y = 120;
}
function get_shared_set(user) {
debugMode = true;
loadingXML = false;
load_map(user);
}
function load_map(user) {
if (loadingXML) {
return(false);
}
mapXML = new XML();
mapXML.ignoreWhite = true;
mapXML.onLoad = parseMapList;
mapXML.load("bing_functions.php?mode=get_maps&userID=" + user);
loadingXML = true;
}
function parseMapList(success) {
if (success) {
outSet = readSet(mapXML);
if (outSet == false) {
debug(3, "ERROR: PARSING XML FILE FAILED\n");
}
trace(((("Retrieved " + outSet.maps.length) + " maps, for user ") + outSet.user) + newline);
loadingXML = false;
} else {
trace("Failed to open XML file");
}
set_name = outSet.user;
set_name = new Array();
set_amount = outSet.maps.length;
i = 0;
while (i < set_amount) {
set_name[i] = new Array();
set_name[i][0] = [outSet.maps[i].dir, outSet.maps[i].title];
outSet.maps[i].data = outSet.maps[i].data.split(",");
j = 0;
while (j < map_height) {
set_name[i][j + 1] = new Array();
k = 0;
while (k < map_length) {
set_name[i][j + 1][k] = outSet.maps[i].data[k + (j * map_length)];
k++;
}
j++;
}
i++;
}
set_list[2] = set_name;
start_game(2, 0);
}
function readSet(obj) {
var _local3 = new Array();
if ((((obj.hasChildNodes() && (obj.firstChild.hasChildNodes())) && (obj.firstChild.nodeName == "set")) && (obj.firstChild.firstChild.hasChildNodes())) && (obj.firstChild.firstChild.nodeName == "user")) {
_local3.user = obj.firstChild.firstChild.firstChild.nodeValue;
} else {
return(false);
}
_local3.maps = new Array();
var _local2 = 1;
while (_local2 < obj.firstChild.childNodes.length) {
var _local1 = obj.firstChild.childNodes[_local2];
if (_local1.nodeName != "map") {
return(false);
}
if ((!_local1.attributes.id) || (isNaN(_local1.attributes.id))) {
return(false);
}
if (_local3.maps[_local1.attributes.id]) {
return(false);
}
_local3.maps[_local1.attributes.id] = getSingleMap(_local1);
if (_local3.maps[_local1.attributes.id] == false) {
return(false);
}
_local2++;
}
return(_local3);
}
function getSingleMap(obj) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < obj.childNodes.length) {
thisNode = obj.childNodes[_local1].nodeName;
if (((((thisNode == "title") || (thisNode == "dir")) || (thisNode == "share")) || (thisNode == "data")) && (obj.childNodes[_local1].hasChildNodes())) {
_local3[thisNode] = obj.childNodes[_local1].firstChild.nodeValue;
} else {
return(false);
}
_local1++;
}
if ((((!_local3.title) || (!_local3.dir)) || (!_local3.share)) || (!_local3.data)) {
return(false);
}
return(_local3);
}
function print_a(obj, indent) {
if (indent == null) {
indent = "";
}
var _local2 = "";
for (item in obj) {
if (typeof(obj[item]) == "object") {
_local2 = _local2 + (((indent + "[") + item) + "] => Object\n");
} else {
_local2 = _local2 + (((((indent + "[") + item) + "] => ") + obj[item]) + newline);
}
_local2 = _local2 + print_a(obj[item], indent + " ");
}
return(_local2);
}
var map_length = 15;
var map_height = 13;
var myVar = 0;
var line = 0;
var dir = 0;
var selected_dir = 0;
_root.my_set_num = 0;
_root.w = 4;
_root.clock_message = "";
_root.new_set = "";
var sound_on = true;
var active = false;
var editor_map_created = false;
var map_is_new = true;
produce_main_menu();
set_list = new Array();
map = new Array();
gauntlet = new Array();
set_list[0] = map;
set_list[1] = gauntlet;
map[0] = [[2, "intro", "You successfully completed Bing. \n Password: gauntlet"], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 9, 0, 2, 0, 7, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 1, 0, 0, 3, 0, 0, 2, 0, 1, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
map[1] = [[2, "stage_2"],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 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6]];
gauntlet[0] = [[2, "gauntlet", "Play Steve the Gary's shared stages\n to view the stages that were discarded\n from the level design of Bing!"], [3, 5, 2, 2, 6, 0, 0, 0, 0, 0, 6, 2, 2, 2, 6], [6, 9, 6, 2, 2, 6, 0, 0, 0, 6, 2, 2, 6, 2, 6], [6, 2, 2, 6, 2, 2, 6, 0, 6, 2, 2, 6, 2, 2, 6], [0, 6, 2, 2, 6, 2, 2, 6, 2, 2, 6, 2, 2, 6, 0], [0, 0, 6, 2, 2, 6, 2, 2, 2, 6, 2, 2, 6, 0, 0], [0, 0, 0, 6, 2, 2, 6, 6, 6, 2, 2, 6, 0, 0, 0], [0, 0, 0, 0, 6, 2, 2, 10, 6, 2, 6, 0, 0, 0, 0], [0, 0, 0, 6, 2, 2, 6, 6, 6, 2, 2, 6, 0, 0, 0], [0, 0, 6, 2, 2, 6, 2, 2, 2, 6, 2, 2, 6, 0, 0], [0, 6, 2, 2, 6, 2, 2, 6, 2, 2, 6, 2, 2, 6, 0], [6, 2, 2, 6, 2, 2, 6, 0, 6, 2, 2, 6, 2, 2, 6], [6, 2, 6, 2, 2, 6, 0, 0, 0, 6, 2, 2, 6, 2, 6], [6, 2, 2, 2, 6, 0, 0, 0, 0, 0, 6, 2, 2, 2, 6]];
gauntlet[1] = [[-1, "swim"], [3, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6], [5, 6, 6, 6, 2, 2, 2, 6, 6, 6, 2, 2, 2, 6, 6], [2, 2, 6, 2, 2, 6, 2, 2, 6, 2, 2, 6, 2, 2, 6], [6, 2, 6, 2, 6, 6, 6, 2, 6, 2, 6, 6, 6, 2, 6], [2, 2, 6, 2, 2, 6, 2, 2, 6, 2, 2, 6, 2, 2, 6], [2, 6, 6, 6, 2, 6, 2, 6, 6, 6, 2, 6, 2, 6, 6], [2, 2, 6, 2, 2, 6, 2, 2, 6, 2, 2, 6, 2, 2, 6], [6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, 2, 6], [6, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2, 6], [6, 2, 6, 2, 2, 2, 6, 2, 2, 2, 6, 2, 2, 2, 6], [6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 2, 6, 6, 6], [6, 2, 2, 2, 6, 2, 2, 2, 6, 2, 2, 2, 6, 6, 6], [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6]];
gauntlet[7] = [[-1, "journey"], [3, 6, 6, 6, 2, 2, 2, 2, 6, 6, 2, 2, 2, 2, 6], [5, 6, 6, 2, 2, 6, 6, 2, 2, 2, 2, 6, 6, 2, 2], [2, 6, 6, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2], [2, 6, 6, 2, 2, 2, 6, 2, 2, 2, 6, 6, 6, 6, 2], [2, 2, 6, 6, 6, 2, 6, 2, 6, 2, 2, 6, 6, 2, 2], [6, 2, 2, 6, 2, 2, 6, 2, 9, 6, 2, 6, 2, 2, 6], [6, 6, 2, 6, 2, 6, 6, 6, 6, 6, 2, 6, 2, 6, 6], [6, 2, 2, 6, 2, 6, 6, 6, 6, 6, 2, 6, 2, 2, 6], [2, 2, 6, 6, 2, 2, 6, 6, 2, 2, 2, 6, 6, 2, 2], [2, 6, 6, 6, 6, 2, 2, 2, 2, 6, 6, 6, 6, 6, 2], [2, 2, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2], [6, 2, 2, 2, 2, 6, 6, 2, 2, 2, 2, 6, 6, 2, 2], [6, 6, 6, 6, 2, 2, 2, 2, 6, 6, 2, 2, 2, 2, 6]];
Instance of Symbol 16 MovieClip "ball" in Symbol 17 MovieClip [ball_test] Frame 1
onClipEvent (load) {
var speed = 4;
var boom = false;
var move_flag = false;
var min_x = 164;
var max_x = 516;
var min_y = 48;
var max_y = 352;
}
onClipEvent (enterFrame) {
if (_root.dir != 0) {
move_flag = true;
}
if ((_root.dir == 0) && (!move_flag)) {
if (Key.isDown(38)) {
_root.dir = 1;
move_flag = true;
} else if (Key.isDown(39)) {
_root.dir = 2;
move_flag = true;
} else if (Key.isDown(40)) {
_root.dir = -1;
move_flag = true;
} else if (Key.isDown(37)) {
_root.dir = -2;
move_flag = true;
}
} else if (_root.dir == 1) {
_parent._parent._y = _parent._parent._y - speed;
} else if (_root.dir == 2) {
_parent._parent._x = _parent._parent._x + speed;
} else if (_root.dir == -1) {
_parent._parent._y = _parent._parent._y + speed;
} else if (_root.dir == -2) {
_parent._parent._x = _parent._parent._x - speed;
}
if (_root.ball_test._visible == false) {
move_flag = false;
}
if (_parent._parent._x > max_x) {
_root.dir = -2;
_parent._parent._x = max_x;
} else if (_parent._parent._x < min_x) {
_root.dir = 2;
_parent._parent._x = min_x;
} else if (_parent._parent._y < min_y) {
_root.dir = -1;
_parent._parent._y = min_y;
} else if (_parent._parent._y > max_y) {
_root.dir = 1;
_parent._parent._y = max_y;
}
if (!move_flag) {
_root.dir = 0;
}
}
Symbol 21 Button
on (release) {
if (_root.myVar == 3) {
var i = 0;
while (i < _root.map_height) {
var j = 0;
while (j < _root.map_length) {
if (_root[(("t" + i) + "_") + j].p == 3) {
_root[(("t" + i) + "_") + j].p = 0;
_root[(("t" + i) + "_") + j].gotoAndStop(1);
}
j++;
}
i++;
}
_root.line = 0;
this.p = _root.myVar;
gotoAndStop(_root.myVar + 1);
} else if (_root.line == 1) {
var my_y = this._y;
var my_y_pos = ((my_y - 56) / 24);
_root.do_hor_line(my_y_pos);
} else if (_root.line == 2) {
var my_x = this._x;
var my_x_pos = ((my_x - 172) / 24);
_root.do_vert_line(my_x_pos);
} else if (_root.line == 3) {
var my_x = this._x;
var my_x_pos = ((my_x - 172) / 24);
var my_y = this._y;
var my_y_pos = ((my_y - 56) / 24);
_root.do_diag_line_1(my_x_pos, my_y_pos);
} else if (_root.line == 4) {
var my_x = this._x;
var my_x_pos = ((my_x - 172) / 24);
var my_y = this._y;
var my_y_pos = ((my_y - 56) / 24);
_root.do_diag_line_2(my_x_pos, my_y_pos);
} else {
this.p = _root.myVar;
gotoAndStop(_root.myVar + 1);
}
}
Symbol 30 MovieClip [editor_tile] Frame 1
stop();
Symbol 35 Button
on (press) {
startDrag (this);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
on (release) {
stopDrag();
}
Symbol 38 MovieClip Frame 1
stop();
Symbol 40 Button
on (release) {
if (_root.myVar != 3) {
_root.fill_editor(_root.myVar);
}
}
Symbol 42 Button
on (release) {
_root.map_is_new = true;
_root.fill_editor(0);
}
Symbol 43 Button
on (keyPress "a") {
_root.myVar = 0;
currTile.gotoAndStop(_root.myVar + 1);
}
on (release) {
_root.myVar = 0;
currTile.gotoAndStop(_root.myVar + 1);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
Symbol 44 Button
on (keyPress "s") {
_root.myVar = 1;
currTile.gotoAndStop(_root.myVar + 1);
}
on (release) {
_root.myVar = 1;
currTile.gotoAndStop(_root.myVar + 1);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
Symbol 45 Button
on (keyPress "d") {
_root.myVar = 2;
currTile.gotoAndStop(_root.myVar + 1);
}
on (release) {
_root.myVar = 2;
currTile.gotoAndStop(_root.myVar + 1);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
Symbol 46 Button
on (keyPress "f") {
_root.myVar = 3;
currTile.gotoAndStop(_root.myVar + 1);
}
on (release) {
_root.myVar = 3;
currTile.gotoAndStop(_root.myVar + 1);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
Symbol 47 Button
on (keyPress "g") {
_root.myVar = 4;
currTile.gotoAndStop(_root.myVar + 1);
}
on (release) {
_root.myVar = 4;
currTile.gotoAndStop(_root.myVar + 1);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
Symbol 48 Button
on (keyPress "h") {
_root.myVar = 5;
currTile.gotoAndStop(_root.myVar + 1);
}
on (release) {
_root.myVar = 5;
currTile.gotoAndStop(_root.myVar + 1);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
Symbol 49 Button
on (keyPress "z") {
_root.myVar = 6;
currTile.gotoAndStop(_root.myVar + 1);
}
on (release) {
_root.myVar = 6;
currTile.gotoAndStop(_root.myVar + 1);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
Symbol 51 Button
on (keyPress "x") {
_root.myVar = 7;
currTile.gotoAndStop(_root.myVar + 1);
}
on (release) {
_root.myVar = 7;
currTile.gotoAndStop(_root.myVar + 1);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
Symbol 52 Button
on (keyPress "c") {
_root.myVar = 8;
currTile.gotoAndStop(_root.myVar + 1);
}
on (release) {
_root.myVar = 8;
currTile.gotoAndStop(_root.myVar + 1);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
Symbol 55 Button
on (keyPress "v") {
_root.myVar = 9;
currTile.gotoAndStop(_root.myVar + 1);
}
on (release) {
_root.myVar = 9;
currTile.gotoAndStop(_root.myVar + 1);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
Symbol 56 Button
on (keyPress "b") {
_root.myVar = 10;
currTile.gotoAndStop(_root.myVar + 1);
}
on (release) {
_root.myVar = 10;
currTile.gotoAndStop(_root.myVar + 1);
_root.place_window_top(_root.item_window, _root.selection_window, _root.direction_window);
}
Symbol 58 Button
on (release) {
_root.hide_item_window();
}
Symbol 61 MovieClip [item_window] Frame 9
stop();
Symbol 64 Button
on (press) {
startDrag (this);
_root.place_window_top(_root.selection_window, _root.item_window, _root.direction_window);
}
on (release) {
stopDrag();
}
Symbol 68 Button
on (keyPress "<Space>") {
_root.line = 0;
}
on (release) {
_root.line = 0;
_root.place_window_top(_root.selection_window, _root.item_window, _root.direction_window);
}
Symbol 71 Button
on (keyPress "1") {
_root.line = 1;
}
on (release) {
_root.line = 1;
_root.place_window_top(_root.selection_window, _root.item_window, _root.direction_window);
}
Symbol 74 Button
on (keyPress "2") {
_root.line = 2;
}
on (release) {
_root.line = 2;
_root.place_window_top(_root.selection_window, _root.item_window, _root.direction_window);
}
Symbol 77 Button
on (keyPress "3") {
_root.line = 3;
}
on (release) {
_root.line = 3;
_root.place_window_top(_root.selection_window, _root.item_window, _root.direction_window);
}
Symbol 80 Button
on (keyPress "4") {
_root.line = 4;
}
on (release) {
_root.line = 4;
_root.place_window_top(_root.selection_window, _root.item_window, _root.direction_window);
}
Symbol 82 Button
on (release) {
_root.hide_selection_window();
}
Instance of Symbol 16 MovieClip in Symbol 83 MovieClip [selection_window] Frame 1
onClipEvent (enterFrame) {
this._y = (19 * (_root.line + 1)) + 7;
}
Symbol 83 MovieClip [selection_window] Frame 9
stop();
Symbol 86 Button
on (press) {
startDrag (this);
_root.place_window_top(_root.direction_window, _root.item_window, _root.selection_window);
}
on (release) {
stopDrag();
}
Symbol 87 Button
on (release) {
_root.dir = 0;
_root.selected_dir = 0;
_root.place_window_top(_root.direction_window, _root.item_window, _root.selection_window);
}
Symbol 88 Button
on (release) {
_root.dir = 1;
_root.selected_dir = 1;
_root.place_window_top(_root.direction_window, _root.item_window, _root.selection_window);
}
Symbol 91 Button
on (release) {
_root.dir = -1;
_root.selected_dir = -1;
_root.place_window_top(_root.direction_window, _root.item_window, _root.selection_window);
}
Symbol 93 Button
on (release) {
_root.dir = 2;
_root.selected_dir = 2;
_root.place_window_top(_root.direction_window, _root.item_window, _root.selection_window);
}
Symbol 94 Button
on (release) {
_root.dir = -2;
_root.selected_dir = -2;
_root.place_window_top(_root.direction_window, _root.item_window, _root.selection_window);
}
Symbol 98 Button
on (release) {
_root.hide_direction_window();
}
Instance of Symbol 16 MovieClip in Symbol 99 MovieClip [direction_window] Frame 1
onClipEvent (enterFrame) {
switch (_root.dir) {
case 0 :
this._y = 26;
break;
case 1 :
this._y = 44;
break;
case -1 :
this._y = 62;
break;
case -2 :
this._y = 81;
break;
case 2 :
this._y = 99;
}
}
Symbol 99 MovieClip [direction_window] Frame 9
stop();
Symbol 107 MovieClip Frame 12
stop();
Symbol 108 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 108 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_test.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_test._x == _parent._parent._x) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_parent.trans_dir = -2;
_root.play_sound(_root.block);
_parent.gotoAndStop(2);
}
}
Instance of Symbol 107 MovieClip in Symbol 108 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 116 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip in Symbol 116 MovieClip Frame 1
onClipEvent (load) {
if (Key.isDown(37)) {
leftDown = true;
} else {
leftDown = false;
}
if (Key.isDown(39)) {
rightDown = true;
} else {
rightDown = false;
}
var my_x = _parent._parent._parent._x;
var my_y = _parent._parent._parent._y;
}
onClipEvent (enterFrame) {
if ((_root.ball_test._x == my_x) && (_root.ball_test._y == my_y)) {
_root.play_sound(_root.paddle);
if (_root.dir == 2) {
_root.dir = 1;
} else if (_root.dir == 1) {
_root.dir = 2;
} else if (_root.dir == -2) {
_root.dir = -1;
} else if (_root.dir == -1) {
_root.dir = -2;
}
}
if (Key.isDown(37) && (leftDown == false)) {
leftDown = true;
_parent.gotoAndStop(4);
} else if (Key.isDown(39) && (rightDown == false)) {
rightDown = true;
_parent.gotoAndStop(2);
}
if (!Key.isDown(37)) {
leftDown = false;
}
if (!Key.isDown(39)) {
rightDown = false;
}
}
Instance of Symbol 111 MovieClip in Symbol 116 MovieClip Frame 2
onClipEvent (load) {
if (Key.isDown(37)) {
leftDown = true;
} else {
leftDown = false;
}
if (Key.isDown(39)) {
rightDown = true;
} else {
rightDown = false;
}
var my_x = _parent._parent._parent._x;
var my_y = _parent._parent._parent._y;
}
onClipEvent (enterFrame) {
if ((_root.ball_test._x == my_x) && (_root.ball_test._y == my_y)) {
if (_root.dir == 1) {
_root.play_sound(_root.paddle);
_root.dir = -1;
} else if (_root.dir == -1) {
_root.play_sound(_root.paddle);
_root.dir = 1;
}
}
if (Key.isDown(37) && (leftDown == false)) {
leftDown = true;
_parent.gotoAndStop(1);
} else if (Key.isDown(39) && (rightDown == false)) {
rightDown = true;
_parent.gotoAndStop(3);
}
if (!Key.isDown(37)) {
leftDown = false;
}
if (!Key.isDown(39)) {
rightDown = false;
}
}
Instance of Symbol 113 MovieClip in Symbol 116 MovieClip Frame 3
onClipEvent (load) {
if (Key.isDown(37)) {
leftDown = true;
} else {
leftDown = false;
}
if (Key.isDown(39)) {
rightDown = true;
} else {
rightDown = false;
}
var my_x = _parent._parent._parent._x;
var my_y = _parent._parent._parent._y;
}
onClipEvent (enterFrame) {
if ((_root.ball_test._x == my_x) && (_root.ball_test._y == my_y)) {
_root.play_sound(_root.paddle);
if (_root.dir == 2) {
_root.dir = -1;
} else if (_root.dir == 1) {
_root.dir = -2;
} else if (_root.dir == -2) {
_root.dir = 1;
} else if (_root.dir == -1) {
_root.dir = 2;
}
}
if (Key.isDown(37) && (leftDown == false)) {
leftDown = true;
_parent.gotoAndStop(2);
} else if (Key.isDown(39) && (rightDown == false)) {
rightDown = true;
_parent.gotoAndStop(4);
}
if (!Key.isDown(37)) {
leftDown = false;
}
if (!Key.isDown(39)) {
rightDown = false;
}
}
Instance of Symbol 115 MovieClip in Symbol 116 MovieClip Frame 4
onClipEvent (load) {
if (Key.isDown(37)) {
leftDown = true;
} else {
leftDown = false;
}
if (Key.isDown(39)) {
rightDown = true;
} else {
rightDown = false;
}
var my_x = _parent._parent._parent._x;
var my_y = _parent._parent._parent._y;
}
onClipEvent (enterFrame) {
if ((_root.ball_test._x == my_x) && (_root.ball_test._y == my_y)) {
if (_root.dir == 2) {
_root.play_sound(_root.paddle);
_root.dir = -2;
} else if (_root.dir == -2) {
_root.play_sound(_root.paddle);
_root.dir = 2;
}
}
if (Key.isDown(37) && (leftDown == false)) {
leftDown = true;
_parent.gotoAndStop(3);
} else if (Key.isDown(39) && (rightDown == false)) {
rightDown = true;
_parent.gotoAndStop(1);
}
if (!Key.isDown(37)) {
leftDown = false;
}
if (!Key.isDown(39)) {
rightDown = false;
}
}
Symbol 117 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 117 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_test.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_test._x == _parent._parent._x) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_parent.trans_dir = -2;
_root.play_sound(_root.block);
_parent.gotoAndStop(2);
}
}
Instance of Symbol 107 MovieClip in Symbol 117 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 119 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_test.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_test._x == _parent._parent._x) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_parent.trans_dir = -2;
_root.play_sound(_root.block);
_parent.gotoAndStop(2);
}
}
Instance of Symbol 101 MovieClip in Symbol 119 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == 1)) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.hard_sound);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.hard_sound);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.hard_sound);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.hard_sound);
}
}
Instance of Symbol 107 MovieClip in Symbol 119 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 121 MovieClip [boom_fade] Frame 16
stop();
Symbol 122 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 122 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_test.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_test._x == _parent._parent._x) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_parent.trans_dir = -2;
_root.play_sound(_root.block);
_parent.gotoAndStop(2);
}
}
Instance of Symbol 120 MovieClip in Symbol 122 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.ball_test.boom == true) {
_parent.gotoAndStop(3);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == 1)) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.boom_sound);
_root.ball_test.boom = true;
_parent.gotoAndStop(3);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.boom_sound);
_root.ball_test.boom = true;
_parent.gotoAndStop(3);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.boom_sound);
_root.ball_test.boom = true;
_parent.gotoAndStop(3);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.boom_sound);
_root.ball_test.boom = true;
_parent.gotoAndStop(3);
}
}
Instance of Symbol 107 MovieClip in Symbol 122 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 124 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_test.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_test._x == _parent._parent._x) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_parent.trans_dir = -2;
_root.play_sound(_root.block);
_parent.gotoAndStop(2);
}
}
Instance of Symbol 123 MovieClip in Symbol 124 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == 1)) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.play_sound(_root.pop_sound);
_root.createEmptyMovieClip("ball_pop_test", 505);
_root.ball_pop_test._x = _root.ball_test._x;
_root.ball_pop_test._y = _root.ball_test._y;
_root.ball_pop_test.attachMovie("ball_pop_test", "ball_pop_test", 505);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.play_sound(_root.pop_sound);
_root.createEmptyMovieClip("ball_pop_test", 505);
_root.ball_pop_test._x = _root.ball_test._x;
_root.ball_pop_test._y = _root.ball_test._y;
_root.ball_pop_test.attachMovie("ball_pop_test", "ball_pop_test", 505);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.play_sound(_root.pop_sound);
_root.createEmptyMovieClip("ball_pop_test", 505);
_root.ball_pop_test._x = _root.ball_test._x;
_root.ball_pop_test._y = _root.ball_test._y;
_root.ball_pop_test.attachMovie("ball_pop_test", "ball_pop_test", 505);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.play_sound(_root.pop_sound);
_root.createEmptyMovieClip("ball_pop_test", 505);
_root.ball_pop_test._x = _root.ball_test._x;
_root.ball_pop_test._y = _root.ball_test._y;
_root.ball_pop_test.attachMovie("ball_pop_test", "ball_pop_test", 505);
}
}
Instance of Symbol 107 MovieClip in Symbol 124 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 127 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 127 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_test.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_test._x == _parent._parent._x) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_parent.trans_dir = -2;
_root.play_sound(_root.block);
_parent.gotoAndStop(2);
}
}
Instance of Symbol 126 MovieClip in Symbol 127 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_root.ball_test._x == _parent._parent._x) && (_root.ball_test._y == _parent._parent._y)) {
_root.createEmptyMovieClip("points_gfx", 506);
_root.points_gfx._x = _parent._parent._x;
_root.points_gfx._y = _parent._parent._y;
_root.points_gfx.attachMovie("points_gfx", "points_gfx", 506);
_root.play_sound(_root.item_sound);
_parent.gotoAndStop(3);
}
}
Instance of Symbol 107 MovieClip in Symbol 127 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 129 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 129 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_test.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_test._x == _parent._parent._x) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_parent.trans_dir = -2;
_root.play_sound(_root.block);
_parent.gotoAndStop(2);
}
}
Instance of Symbol 128 MovieClip in Symbol 129 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == 1)) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.createEmptyMovieClip("flag_holder", 506);
_root.flag_holder._x = _parent._parent._x;
_root.flag_holder._y = _parent._parent._y;
_root.flag_holder.attachMovie("flag_gfx", "flag_gfx", 506);
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.item_sound);
_root.start_x = _parent._parent._x;
_root.start_y = _parent._parent._y;
_parent.gotoAndStop(3);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.createEmptyMovieClip("flag_holder", 506);
_root.flag_holder._x = _parent._parent._x;
_root.flag_holder._y = _parent._parent._y;
_root.flag_holder.attachMovie("flag_gfx", "flag_gfx", 506);
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.item_sound);
_root.start_x = _parent._parent._x;
_root.start_y = _parent._parent._y;
_parent.gotoAndStop(3);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.createEmptyMovieClip("flag_holder", 506);
_root.flag_holder._x = _parent._parent._x;
_root.flag_holder._y = _parent._parent._y;
_root.flag_holder.attachMovie("flag_gfx", "flag_gfx", 506);
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.item_sound);
_root.start_x = _parent._parent._x;
_root.start_y = _parent._parent._y;
_parent.gotoAndStop(3);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.createEmptyMovieClip("flag_holder", 506);
_root.flag_holder._x = _parent._parent._x;
_root.flag_holder._y = _parent._parent._y;
_root.flag_holder.attachMovie("flag_gfx", "flag_gfx", 506);
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.item_sound);
_root.start_x = _parent._parent._x;
_root.start_y = _parent._parent._y;
_parent.gotoAndStop(3);
}
}
Instance of Symbol 107 MovieClip in Symbol 129 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 131 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 131 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_test.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_test._x == _parent._parent._x) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_parent.trans_dir = -2;
_root.play_sound(_root.block);
_parent.gotoAndStop(2);
}
}
Instance of Symbol 101 MovieClip in Symbol 131 MovieClip Frame 2
onClipEvent (load) {
var my_x = _parent._parent._x;
var my_y = _parent._parent._y;
}
onClipEvent (enterFrame) {
if ((_root.ball_test._x == my_x) && (_root.ball_test._y == my_y)) {
_root.play_sound(_root.pass_stage_music);
_root.createEmptyMovieClip("ball_exit_test", 510);
_root.ball_exit_test._x = _root.ball_test._x;
_root.ball_exit_test._y = _root.ball_test._y;
_root.ball_exit_test.attachMovie("ball_exit_test", "ball_exit_test", 510);
}
}
Instance of Symbol 107 MovieClip in Symbol 131 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 133 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_test.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_test._x == _parent._parent._x) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_parent.trans_dir = -2;
_root.play_sound(_root.block);
_parent.gotoAndStop(2);
}
}
Instance of Symbol 132 MovieClip in Symbol 133 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == 1)) && (_root.ball_test._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.createEmptyMovieClip("life_holder", 507);
_root.life_holder._x = _parent._parent._x;
_root.life_holder._y = _parent._parent._y;
_root.life_holder.attachMovie("life_gfx", "life_gfx", 507);
_root.ball_test._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.item_sound);
_parent.gotoAndStop(3);
}
if (((_root.ball_test._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_test._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.createEmptyMovieClip("life_holder", 507);
_root.life_holder._x = _parent._parent._x;
_root.life_holder._y = _parent._parent._y;
_root.life_holder.attachMovie("life_gfx", "life_gfx", 507);
_root.ball_test._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.item_sound);
_parent.gotoAndStop(3);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_test._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.createEmptyMovieClip("life_holder", 507);
_root.life_holder._x = _parent._parent._x;
_root.life_holder._y = _parent._parent._y;
_root.life_holder.attachMovie("life_gfx", "life_gfx", 507);
_root.ball_test._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.item_sound);
_parent.gotoAndStop(3);
}
if (((_root.ball_test._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_test._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.createEmptyMovieClip("life_holder", 507);
_root.life_holder._x = _parent._parent._x;
_root.life_holder._y = _parent._parent._y;
_root.life_holder.attachMovie("life_gfx", "life_gfx", 507);
_root.ball_test._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.item_sound);
_parent.gotoAndStop(3);
}
}
Instance of Symbol 107 MovieClip in Symbol 133 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 134 MovieClip [test_tile] Frame 1
stop();
Symbol 136 MovieClip [ball_pop_game] Frame 1
_root.ball_game._visible = false;
_root.ball_game._x = _root.start_x;
_root.ball_game._y = _root.start_y;
_root.dir = 0;
Symbol 136 MovieClip [ball_pop_game] Frame 17
_parent._x = _root.start_x;
_parent._y = _root.start_y;
Symbol 136 MovieClip [ball_pop_game] Frame 32
_root.ball_game._visible = true;
this.removeMovieClip();
Symbol 137 MovieClip [ball_pop_test] Frame 1
_root.ball_test._visible = false;
_root.ball_test._x = _root.start_x;
_root.ball_test._y = _root.start_y;
_root.dir = 0;
Symbol 137 MovieClip [ball_pop_test] Frame 17
_parent._x = _root.start_x;
_parent._y = _root.start_y;
Symbol 137 MovieClip [ball_pop_test] Frame 32
_root.ball_test._visible = true;
this.removeMovieClip();
Symbol 138 MovieClip [points_gfx] Frame 11
this.removeMovieClip();
Symbol 139 MovieClip [flag_gfx] Frame 11
this.removeMovieClip();
Symbol 140 MovieClip [ball_exit_game] Frame 1
_root.ball_game._visible = false;
_root.active = false;
_root.ball_game._x = _root.start_x;
_root.ball_game._y = _root.start_y;
_root.dir = 0;
Symbol 140 MovieClip [ball_exit_game] Frame 29
_root.stage++;
if (_root.stage > _root.set_list[_root.my_set_num].length) {
_root.produce_clocking();
} else {
_root.produce_stage_trans();
}
this.removeMovieClip();
Symbol 141 MovieClip [ball_exit_test] Frame 1
_root.ball_test._visible = false;
_root.ball_test._x = _root.start_x;
_root.ball_test._y = _root.start_y;
_root.dir = 0;
Symbol 141 MovieClip [ball_exit_test] Frame 29
_parent._x = _root.start_x;
_parent._y = _root.start_y;
Symbol 141 MovieClip [ball_exit_test] Frame 46
_root.ball_test._visible = true;
this.removeMovieClip();
Symbol 142 MovieClip [life_gfx] Frame 11
this.removeMovieClip();
Symbol 146 Button
on (release, keyPress "o") {
if (!_root.item_window.onscreen) {
_root.show_item_window();
} else {
_root.hide_item_window();
}
}
Symbol 147 Button
on (release, keyPress "i") {
if (!_root.selection_window.onscreen) {
_root.show_selection_window();
} else {
_root.hide_selection_window();
}
}
Symbol 149 Button
on (release, keyPress "p") {
if (!_root.direction_window.onscreen) {
_root.show_direction_window();
} else {
_root.hide_direction_window();
}
}
Symbol 152 Button
on (release, keyPress "t") {
_root.go_to_test();
}
Symbol 154 Button
on (release) {
if (_root.logged_in) {
_root.produce_user_editor_page();
} else {
_root.produce_main_menu();
}
}
Symbol 156 Button
on (release) {
if (!_root.map_saved) {
_root.produce_data();
_root.produce_map_name_input();
} else {
_root.produce_data();
_root.save_map();
_root.produce_changes_verify();
}
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 160 Button
on (release) {
_root.share = true;
gotoAndStop (2);
}
Symbol 162 Button
on (release) {
_root.share = false;
gotoAndStop (1);
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 1
stop();
Instance of Symbol 163 MovieClip "share_tick" in Symbol 164 MovieClip Frame 1
onClipEvent (load) {
if (_root.share) {
gotoAndStop (2);
}
}
Instance of Symbol 157 MovieClip in Symbol 165 MovieClip [editor_menu] Frame 1
onClipEvent (load) {
if (_root.logged_in == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 164 MovieClip "share_button" in Symbol 165 MovieClip [editor_menu] Frame 1
onClipEvent (load) {
if (_root.logged_in == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 167 Button
on (release) {
_root.go_back_to_editor();
}
Symbol 176 Button
on (release, keyPress "<Enter>") {
_root.pass_check(my_code.text);
}
Symbol 177 Button
on (release) {
_root.my_function = function () {
_root.start_game(0, 0);
};
gotoAndPlay ("leave_menu");
}
Symbol 178 Button
on (release) {
if (_root.logged_in) {
_root.user_page_num = 0;
_root.my_function = _root.produce_user_editor_page;
gotoAndPlay ("leave_menu");
} else {
_root.my_function = _root.produce_editor;
gotoAndPlay ("leave_menu");
}
}
Symbol 179 Button
on (release) {
_root.my_function = _root.produce_how_to_play;
gotoAndPlay ("leave_menu");
}
Symbol 180 Button
on (release) {
_root.my_function = _root.produce_share_list;
gotoAndPlay ("leave_menu");
}
Symbol 188 Button
on (release) {
_root.do_login();
}
Symbol 189 Button
on (release) {
_root.do_register();
}
Symbol 195 Button
on (release) {
_root.log_user_out();
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 31
stop();
Symbol 208 MovieClip [main_menu] Frame 27
stop();
Symbol 208 MovieClip [main_menu] Frame 60
_root.my_function();
Symbol 209 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 209 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_game.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_game._x == _parent._parent._x) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -2;
_parent.gotoAndStop(2);
}
}
Instance of Symbol 107 MovieClip in Symbol 209 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 210 MovieClip Frame 1
stop();
Instance of Symbol 109 MovieClip in Symbol 210 MovieClip Frame 1
onClipEvent (load) {
if (Key.isDown(37)) {
leftDown = true;
} else {
leftDown = false;
}
if (Key.isDown(39)) {
rightDown = true;
} else {
rightDown = false;
}
var my_x = _parent._parent._parent._x;
var my_y = _parent._parent._parent._y;
}
onClipEvent (enterFrame) {
if ((_root.ball_game._x == my_x) && (_root.ball_game._y == my_y)) {
if (_root.dir == 2) {
_root.play_sound(_root.paddle_up);
_root.dir = 1;
} else if (_root.dir == 1) {
_root.play_sound(_root.paddle_right);
_root.dir = 2;
} else if (_root.dir == -2) {
_root.play_sound(_root.paddle_down);
_root.dir = -1;
} else if (_root.dir == -1) {
_root.play_sound(_root.paddle_left);
_root.dir = -2;
}
}
if (Key.isDown(37) && (leftDown == false)) {
leftDown = true;
_parent.gotoAndStop(4);
} else if (Key.isDown(39) && (rightDown == false)) {
rightDown = true;
_parent.gotoAndStop(2);
}
if (!Key.isDown(37)) {
leftDown = false;
}
if (!Key.isDown(39)) {
rightDown = false;
}
}
Instance of Symbol 111 MovieClip in Symbol 210 MovieClip Frame 2
onClipEvent (load) {
if (Key.isDown(37)) {
leftDown = true;
} else {
leftDown = false;
}
if (Key.isDown(39)) {
rightDown = true;
} else {
rightDown = false;
}
var my_x = _parent._parent._parent._x;
var my_y = _parent._parent._parent._y;
}
onClipEvent (enterFrame) {
if ((_root.ball_game._x == my_x) && (_root.ball_game._y == my_y)) {
if (_root.dir == 1) {
_root.play_sound(_root.paddle_down);
_root.dir = -1;
} else if (_root.dir == -1) {
_root.play_sound(_root.paddle_up);
_root.dir = 1;
}
}
if (Key.isDown(37) && (leftDown == false)) {
leftDown = true;
_parent.gotoAndStop(1);
} else if (Key.isDown(39) && (rightDown == false)) {
rightDown = true;
_parent.gotoAndStop(3);
}
if (!Key.isDown(37)) {
leftDown = false;
}
if (!Key.isDown(39)) {
rightDown = false;
}
}
Instance of Symbol 113 MovieClip in Symbol 210 MovieClip Frame 3
onClipEvent (load) {
if (Key.isDown(37)) {
leftDown = true;
} else {
leftDown = false;
}
if (Key.isDown(39)) {
rightDown = true;
} else {
rightDown = false;
}
var my_x = _parent._parent._parent._x;
var my_y = _parent._parent._parent._y;
}
onClipEvent (enterFrame) {
if ((_root.ball_game._x == my_x) && (_root.ball_game._y == my_y)) {
if (_root.dir == 2) {
_root.play_sound(_root.paddle_left);
_root.dir = -1;
} else if (_root.dir == 1) {
_root.play_sound(_root.paddle_down);
_root.dir = -2;
} else if (_root.dir == -2) {
_root.play_sound(_root.paddle_up);
_root.dir = 1;
} else if (_root.dir == -1) {
_root.play_sound(_root.paddle_right);
_root.dir = 2;
}
}
if (Key.isDown(37) && (leftDown == false)) {
leftDown = true;
_parent.gotoAndStop(2);
} else if (Key.isDown(39) && (rightDown == false)) {
rightDown = true;
_parent.gotoAndStop(4);
}
if (!Key.isDown(37)) {
leftDown = false;
}
if (!Key.isDown(39)) {
rightDown = false;
}
}
Instance of Symbol 115 MovieClip in Symbol 210 MovieClip Frame 4
onClipEvent (load) {
if (Key.isDown(37)) {
leftDown = true;
} else {
leftDown = false;
}
if (Key.isDown(39)) {
rightDown = true;
} else {
rightDown = false;
}
var my_x = _parent._parent._parent._x;
var my_y = _parent._parent._parent._y;
}
onClipEvent (enterFrame) {
if ((_root.ball_game._x == my_x) && (_root.ball_game._y == my_y)) {
if (_root.dir == 2) {
_root.play_sound(_root.paddle_left);
_root.dir = -2;
} else if (_root.dir == -2) {
_root.play_sound(_root.paddle_right);
_root.dir = 2;
}
}
if (Key.isDown(37) && (leftDown == false)) {
leftDown = true;
_parent.gotoAndStop(3);
} else if (Key.isDown(39) && (rightDown == false)) {
rightDown = true;
_parent.gotoAndStop(1);
}
if (!Key.isDown(37)) {
leftDown = false;
}
if (!Key.isDown(39)) {
rightDown = false;
}
}
Symbol 211 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_game.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_game._x == _parent._parent._x) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -2;
_parent.gotoAndStop(2);
}
}
Instance of Symbol 107 MovieClip in Symbol 211 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 213 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_game.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_game._x == _parent._parent._x) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -2;
_parent.gotoAndStop(2);
}
}
Instance of Symbol 101 MovieClip in Symbol 213 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == 1)) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.hard_sound);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.hard_sound);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.hard_sound);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.hard_sound);
}
}
Instance of Symbol 107 MovieClip in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 214 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 214 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_game.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_game._x == _parent._parent._x) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -2;
_parent.gotoAndStop(2);
}
}
Instance of Symbol 120 MovieClip in Symbol 214 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.ball_game.boom == true) {
_parent.gotoAndStop(3);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == 1)) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.boom_sound);
_root.score = _root.score + 500;
_root.ball_game.boom = true;
_parent.gotoAndStop(3);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.boom_sound);
_root.score = _root.score + 500;
_root.ball_game.boom = true;
_parent.gotoAndStop(3);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.boom_sound);
_root.score = _root.score + 500;
_root.ball_game.boom = true;
_parent.gotoAndStop(3);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.boom_sound);
_root.score = _root.score + 500;
_root.ball_game.boom = true;
_parent.gotoAndStop(3);
}
}
Instance of Symbol 107 MovieClip in Symbol 214 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 215 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_game.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_game._x == _parent._parent._x) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -2;
_parent.gotoAndStop(2);
}
}
Instance of Symbol 123 MovieClip in Symbol 215 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == 1)) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.lives--;
_root.ball_game.move_flag = false;
_root.play_sound(_root.pop_sound);
if (_root.lives > 0) {
_root.createEmptyMovieClip("ball_pop_game", 505);
_root.ball_pop_game._x = _root.ball_game._x;
_root.ball_pop_game._y = _root.ball_game._y;
_root.ball_pop_game.attachMovie("ball_pop_game", "ball_pop_game", 505);
} else {
_root.createEmptyMovieClip("ball_game_over", 506);
_root.ball_game_over._x = _root.ball_game._x;
_root.ball_game_over._y = _root.ball_game._y;
_root.ball_game_over.attachMovie("ball_game_over", "ball_game_over", 506);
}
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.lives--;
_root.ball_game.move_flag = false;
_root.play_sound(_root.pop_sound);
if (_root.lives > 0) {
_root.createEmptyMovieClip("ball_pop_game", 505);
_root.ball_pop_game._x = _root.ball_game._x;
_root.ball_pop_game._y = _root.ball_game._y;
_root.ball_pop_game.attachMovie("ball_pop_game", "ball_pop_game", 505);
} else {
_root.createEmptyMovieClip("ball_game_over", 506);
_root.ball_game_over._x = _root.ball_game._x;
_root.ball_game_over._y = _root.ball_game._y;
_root.ball_game_over.attachMovie("ball_game_over", "ball_game_over", 506);
}
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.lives--;
_root.ball_game.move_flag = false;
_root.play_sound(_root.pop_sound);
if (_root.lives > 0) {
_root.createEmptyMovieClip("ball_pop_game", 505);
_root.ball_pop_game._x = _root.ball_game._x;
_root.ball_pop_game._y = _root.ball_game._y;
_root.ball_pop_game.attachMovie("ball_pop_game", "ball_pop_game", 505);
} else {
_root.createEmptyMovieClip("ball_game_over", 506);
_root.ball_game_over._x = _root.ball_game._x;
_root.ball_game_over._y = _root.ball_game._y;
_root.ball_game_over.attachMovie("ball_game_over", "ball_game_over", 506);
}
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.lives--;
_root.ball_game.move_flag = false;
_root.play_sound(_root.pop_sound);
if (_root.lives > 0) {
_root.createEmptyMovieClip("ball_pop_game", 505);
_root.ball_pop_game._x = _root.ball_game._x;
_root.ball_pop_game._y = _root.ball_game._y;
_root.ball_pop_game.attachMovie("ball_pop_game", "ball_pop_game", 505);
} else {
_root.createEmptyMovieClip("ball_game_over", 506);
_root.ball_game_over._x = _root.ball_game._x;
_root.ball_game_over._y = _root.ball_game._y;
_root.ball_game_over.attachMovie("ball_game_over", "ball_game_over", 506);
}
}
}
Instance of Symbol 107 MovieClip in Symbol 215 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 216 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 216 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_game.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_game._x == _parent._parent._x) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -2;
_parent.gotoAndStop(2);
}
}
Instance of Symbol 126 MovieClip in Symbol 216 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_root.ball_game._x == _parent._parent._x) && (_root.ball_game._y == _parent._parent._y)) {
_root.score = _root.score + 100;
_root.createEmptyMovieClip("points_gfx", 506);
_root.points_gfx._x = _parent._parent._x;
_root.points_gfx._y = _parent._parent._y;
_root.points_gfx.attachMovie("points_gfx", "points_gfx", 506);
_root.play_sound(_root.item_sound);
_parent.gotoAndStop(3);
}
}
Instance of Symbol 107 MovieClip in Symbol 216 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 217 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 217 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_game.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_game._x == _parent._parent._x) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -2;
_parent.gotoAndStop(2);
}
}
Instance of Symbol 128 MovieClip in Symbol 217 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == 1)) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.score = _root.score + 10;
_root.createEmptyMovieClip("flag_holder", 506);
_root.flag_holder._x = _parent._parent._x;
_root.flag_holder._y = _parent._parent._y;
_root.flag_holder.attachMovie("flag_gfx", "flag_gfx", 506);
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.item_sound);
_root.start_x = _parent._parent._x;
_root.start_y = _parent._parent._y;
_parent.gotoAndStop(3);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.score = _root.score + 10;
_root.createEmptyMovieClip("flag_holder", 506);
_root.flag_holder._x = _parent._parent._x;
_root.flag_holder._y = _parent._parent._y;
_root.flag_holder.attachMovie("flag_gfx", "flag_gfx", 506);
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.item_sound);
_root.start_x = _parent._parent._x;
_root.start_y = _parent._parent._y;
_parent.gotoAndStop(3);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.score = _root.score + 10;
_root.createEmptyMovieClip("flag_holder", 506);
_root.flag_holder._x = _parent._parent._x;
_root.flag_holder._y = _parent._parent._y;
_root.flag_holder.attachMovie("flag_gfx", "flag_gfx", 506);
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.item_sound);
_root.start_x = _parent._parent._x;
_root.start_y = _parent._parent._y;
_parent.gotoAndStop(3);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.score = _root.score + 10;
_root.createEmptyMovieClip("flag_holder", 506);
_root.flag_holder._x = _parent._parent._x;
_root.flag_holder._y = _parent._parent._y;
_root.flag_holder.attachMovie("flag_gfx", "flag_gfx", 506);
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.item_sound);
_root.start_x = _parent._parent._x;
_root.start_y = _parent._parent._y;
_parent.gotoAndStop(3);
}
}
Instance of Symbol 107 MovieClip in Symbol 217 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 219 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 219 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_game.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_game._x == _parent._parent._x) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -2;
_parent.gotoAndStop(2);
}
}
Instance of Symbol 101 MovieClip in Symbol 219 MovieClip Frame 2
onClipEvent (load) {
var my_x = _parent._parent._x;
var my_y = _parent._parent._y;
}
onClipEvent (enterFrame) {
if ((_root.ball_game._x == my_x) && (_root.ball_game._y == my_y)) {
_root.play_sound(_root.pass_stage_music);
_root.createEmptyMovieClip("ball_exit_game", 500);
_root.ball_exit_game._x = _parent._parent._x;
_root.ball_exit_game._y = _parent._parent._y;
_root.ball_exit_game.attachMovie("ball_exit_game", "ball_exit_game", 500);
}
}
Instance of Symbol 107 MovieClip in Symbol 219 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 220 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 220 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ball_game.boom == true) {
_parent.gotoAndStop(2);
}
if ((_root.ball_game._x == _parent._parent._x) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -1;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = 2;
_parent.gotoAndStop(2);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.block);
_root.score = _root.score + 10;
_parent.trans_dir = -2;
_parent.gotoAndStop(2);
}
}
Instance of Symbol 132 MovieClip in Symbol 220 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == 1)) && (_root.ball_game._y == (_parent._parent._y + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.lives++;
_root.createEmptyMovieClip("life_holder", 507);
_root.life_holder._x = _parent._parent._x;
_root.life_holder._y = _parent._parent._y;
_root.life_holder.attachMovie("life_gfx", "life_gfx", 507);
_root.ball_game._y = _parent._parent._y + (_root.w * 3);
_root.play_sound(_root.item_sound);
_parent.gotoAndStop(3);
}
if (((_root.ball_game._x == _parent._parent._x) && (_root.dir == -1)) && (_root.ball_game._y == (_parent._parent._y - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.lives++;
_root.createEmptyMovieClip("life_holder", 507);
_root.life_holder._x = _parent._parent._x;
_root.life_holder._y = _parent._parent._y;
_root.life_holder.attachMovie("life_gfx", "life_gfx", 507);
_root.ball_game._y = _parent._parent._y - (_root.w * 3);
_root.play_sound(_root.item_sound);
_parent.gotoAndStop(3);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == 2)) && (_root.ball_game._x == (_parent._parent._x - (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.lives++;
_root.createEmptyMovieClip("life_holder", 507);
_root.life_holder._x = _parent._parent._x;
_root.life_holder._y = _parent._parent._y;
_root.life_holder.attachMovie("life_gfx", "life_gfx", 507);
_root.ball_game._x = _parent._parent._x - (_root.w * 3);
_root.play_sound(_root.item_sound);
_parent.gotoAndStop(3);
}
if (((_root.ball_game._y == _parent._parent._y) && (_root.dir == -2)) && (_root.ball_game._x == (_parent._parent._x + (_root.w * 4)))) {
_root.dir = _root.dir * -1;
_root.lives++;
_root.createEmptyMovieClip("life_holder", 507);
_root.life_holder._x = _parent._parent._x;
_root.life_holder._y = _parent._parent._y;
_root.life_holder.attachMovie("life_gfx", "life_gfx", 507);
_root.ball_game._x = _parent._parent._x + (_root.w * 3);
_root.play_sound(_root.item_sound);
_parent.gotoAndStop(3);
}
}
Instance of Symbol 107 MovieClip in Symbol 220 MovieClip Frame 2
onClipEvent (load) {
if (_parent.trans_dir == 1) {
this._rotation = 90;
this._xscale = this._xscale * -1;
} else if (_parent.trans_dir == -1) {
this._rotation = 90;
this._yscale = this._yscale * -1;
} else if (_parent.trans_dir == -2) {
this._rotation = 180;
} else if (_parent.trans_dir == 2) {
this._rotation = 0;
}
}
Symbol 221 MovieClip [game_tile] Frame 1
stop();
Instance of Symbol 16 MovieClip in Symbol 222 MovieClip [ball_game] Frame 1
onClipEvent (load) {
var speed = 4;
var boom = false;
var move_flag = false;
var min_x = 164;
var max_x = 516;
var min_y = 48;
var max_y = 352;
}
onClipEvent (enterFrame) {
if (_root.dir != 0) {
move_flag = true;
}
if ((_root.dir == 0) && (!move_flag)) {
if (Key.isDown(38)) {
_root.dir = 1;
move_flag = true;
} else if (Key.isDown(39)) {
_root.dir = 2;
move_flag = true;
} else if (Key.isDown(40)) {
_root.dir = -1;
move_flag = true;
} else if (Key.isDown(37)) {
_root.dir = -2;
move_flag = true;
}
} else if (_root.dir == 1) {
_parent._y = _parent._y - speed;
} else if (_root.dir == 2) {
_parent._x = _parent._x + speed;
} else if (_root.dir == -1) {
_parent._y = _parent._y + speed;
} else if (_root.dir == -2) {
_parent._x = _parent._x - speed;
}
if (_root.ball_game._visible == false) {
move_flag = false;
}
if (_parent._x > max_x) {
_root.dir = -2;
_parent._x = max_x;
} else if (_parent._x < min_x) {
_root.dir = 2;
_parent._x = min_x;
} else if (_parent._y < min_y) {
_root.dir = -1;
_parent._y = min_y;
} else if (_parent._y > max_y) {
_root.dir = 1;
_parent._y = max_y;
}
if (!move_flag) {
_root.dir = 0;
}
}
Symbol 223 MovieClip Frame 48
stop();
Symbol 229 Button
on (release, keyPress "<Space>") {
_root.remove_game();
_root.produce_main_menu();
_root.code = _root.set_list[_root.my_set_num][_root.stage - 1][0][1];
removeMovieClip(this);
}
Symbol 232 MovieClip [game_over] Frame 48
stop();
Symbol 235 Button
on (release, keyPress "<Space>") {
_root.remove_game();
_root.produce_main_menu();
removeMovieClip(this);
}
Symbol 236 MovieClip Frame 1
this._x = (Math.random() * 255) - 155;
this._y = (Math.random() * 100) - 150;
this.gotoAndPlay(Math.round(Math.random() * 100));
Symbol 237 MovieClip [clocking] Frame 48
stop();
Symbol 245 Button
on (release) {
_root.produce_main_menu();
_root.pass = _root.set_list[_root.my_set_num][_root.stage - 1][0][1];
_root.remove_game();
}
Symbol 251 Button
on (release) {
_root.produce_main_menu();
_root.code = _root.set_list[_root.my_set_num][_root.stage - 1][0][1];
_root.remove_game();
}
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 12
_root.produce_main_menu();
removeMovieClip(_parent);
Symbol 265 Button
on (release) {
fade.gotoAndPlay(1);
}
Symbol 266 Button
on (release) {
gotoAndPlay ("item_guide");
}
Symbol 281 Button
on (release) {
gotoAndPlay (1);
}
Symbol 283 Button
on (release, keyPress "y") {
gotoAndPlay (1);
}
Symbol 284 Button
on (release, keyPress "n") {
_root.produce_main_menu();
removeMovieClip(this);
}
Symbol 286 Button
on (release) {
gotoAndPlay (1);
}
Symbol 287 Button
on (release) {
fade.gotoAndPlay(1);
}
Symbol 308 MovieClip [how_to_play] Frame 532
stop();
Symbol 308 MovieClip [how_to_play] Frame 551
stop();
Symbol 309 MovieClip [game_on] Frame 30
stop();
Symbol 310 MovieClip [ball_start] Frame 49
_root.produce_ball();
removeMovieClip(this);
Symbol 319 Button
on (release) {
_root.rate_stage(1);
}
Symbol 320 Button
on (release) {
_root.rate_stage(2);
}
Symbol 321 Button
on (release) {
_root.rate_stage(3);
}
Symbol 322 Button
on (release) {
_root.rate_stage(4);
}
Symbol 323 Button
on (release) {
_root.rate_stage(5);
}
Symbol 324 MovieClip Frame 1
stop();
Symbol 325 Button
on (release, keyPress "<Space>") {
gotoAndPlay ("exit_stage_trans");
}
Instance of Symbol 324 MovieClip in Symbol 326 MovieClip [stage_trans] Frame 30
onClipEvent (load) {
if (_root.my_set_num == 2) {
this.gotoAndStop(2);
}
}
Symbol 326 MovieClip [stage_trans] Frame 55
stop();
Symbol 326 MovieClip [stage_trans] Frame 85
_root.change_map(_root.my_set_num, _root.stage);
removeMovieClip(this);
Symbol 327 MovieClip [ball_game_over] Frame 1
_root.ball_game._visible = false;
_root.game_menu._visible = false;
_root.dir = 0;
Symbol 327 MovieClip [ball_game_over] Frame 14
_root.produce_game_over();
removeMovieClip(this);
Symbol 336 Button
on (release) {
_root.get_list("username", 0);
}
Symbol 337 Button
on (release) {
_root.get_list("map_num", 0);
}
Symbol 338 Button
on (release) {
_root.get_list("latest", 0);
}
Symbol 339 Button
on (release) {
_root.get_list("top_rated", 0);
}
Symbol 341 Button
on (release) {
_root.remove_view_buttons();
_root.produce_main_menu();
removeMovieClip(share_window);
}
Symbol 342 MovieClip Frame 16
stop();
Symbol 347 Button
on (release) {
_root.start_shared_game(p);
}
on (rollOver) {
_root.create_preview(p);
}
on (rollOut) {
_root.remove_preview();
}
Symbol 350 Button
on (release) {
_root.get_user_maps(_root.my_user_num, _root.user_page_num - 1);
}
Symbol 352 Button
on (release) {
_root.user_page_num--;
_root.produce_user_editor_page();
}
Symbol 354 Button
on (release) {
_root.get_list(_root.my_search, _root.my_page_num - 1);
}
Symbol 357 Button
on (release) {
_root.user_page_num++;
_root.get_user_maps(_root.my_user_num, _root.user_page_num);
}
Symbol 359 Button
on (release) {
_root.user_page_num++;
_root.produce_user_editor_page();
}
Symbol 361 Button
on (release) {
_root.my_page_num++;
_root.get_list(_root.my_search, _root.my_page_num);
}
Symbol 364 Button
on (release) {
_root.produce_user_maps(p, 0, _root.my_search);
}
Symbol 376 Button
on (release) {
_root.produce_share_list();
}
Symbol 377 MovieClip Frame 17
stop();
Symbol 390 Button
on (release) {
_root.register_user();
}
Symbol 392 Button
on (release) {
_root.produce_main_menu();
}
Symbol 403 Button
on (release) {
_root.my_search = "title";
_root.user_page_num = 0;
_root.produce_user_editor_page();
}
Symbol 404 Button
on (release) {
_root.my_search = "latest";
_root.user_page_num = 0;
_root.produce_user_editor_page();
}
Symbol 405 Button
on (release) {
_root.my_search = "top_rated";
_root.user_page_num = 0;
_root.produce_user_editor_page();
}
Symbol 408 Button
on (release) {
_root.map_is_new = true;
_root.map_saved = false;
_root.produce_editor();
}
Symbol 409 MovieClip Frame 21
stop();
Symbol 412 Button
on (release) {
if (share == 1) {
_root.share = true;
} else {
_root.share = false;
}
_root.map_saved = true;
_root.map_is_new = false;
_root.produce_user_stage(p);
}
Symbol 415 Button
on (release) {
_root.my_title = _root.my_array[p].title;
_root.delete_map(p);
_root.produce_delete_verify();
}
Symbol 418 Button
on (release, keyPress "<Space>") {
_root.change_map(_root.my_set_num, _root.stage);
removeMovieClip(this);
}
Symbol 424 Button
on (release, keyPress "<Space>") {
_root.produce_user_editor_page();
}
Symbol 425 MovieClip [changes_verify] Frame 21
stop();
Symbol 436 Button
on (release) {
_root.my_title = map_name_input_field.text;
_root.save_map();
_root.produce_new_verify();
}