Frame 1
LOADED = Math.round(getBytesLoaded());
TOTAL = Math.round(getBytesTotal());
PERCENT = LOADED / TOTAL;
BAR._width = PERCENT * 100;
TEXT = Math.round(PERCENT * 100) + "%";
if (LOADED == TOTAL) {
gotoAndPlay ("Deploy");
}
Frame 2
gotoAndPlay(_currentframe - 1);
Frame 34
stop();
Frame 35
main.gotoAndPlay(1);
Frame 165
touchIntro.gotoAndPlay("begin");
stop();
Frame 174
puzzle8_col1 = ["0,0", "0,1", "0,2", "0,3", "0,4", "0,5"];
puzzle8_col2 = ["1,0", "1,1", "1,2", "1,3", "1,4", "1,5"];
puzzle8_col3 = ["2,0", "2,1", "2,2", "2,3", "2,4", "2,5"];
puzzle8_col4 = ["3,0", "3,1", "3,2", "3,3", "3,4", "3,5"];
puzzle8_col5 = ["4,0", "4,1", "4,2", "4,3", "4,4", "4,5"];
puzzle8_col6 = ["5,0", "5,1", "5,2", "5,3", "5,4", "5,5"];
puzzle8_col7 = ["6,0", "6,1", "6,2", "6,3", "6,4", "6,5"];
puzzle8_col8 = ["7,0", "7,1", "7,2", "7,3", "7,4", "7,5"];
puzzle8_arr1 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "border", 13, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "border", 20, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "border", 27, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "border", 34, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "border", 41, "off"], ["0,6", "border", 36, "off"], ["1,6", "light", 37, "off"], ["2,6", "light", 38, "off"], ["3,6", "dark", 39, "off"], ["4,6", "dark", 40, "off"], ["5,6", "border", 41, "off"], ["0,7", "border", 43, "off"], ["1,7", "border", 44, "off"], ["2,7", "border", 45, "off"], ["3,7", "border", 46, "off"], ["4,7", "border", 47, "off"], ["5,7", "border", 48, "off"]];
puzzle8_arr2 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "border", 13, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "border", 20, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "border", 27, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "border", 34, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "border", 41, "off"], ["0,6", "border", 36, "off"], ["1,6", "light", 37, "off"], ["2,6", "light", 38, "off"], ["3,6", "dark", 39, "off"], ["4,6", "dark", 40, "off"], ["5,6", "border", 41, "off"], ["0,7", "border", 43, "off"], ["1,7", "border", 44, "off"], ["2,7", "border", 45, "off"], ["3,7", "border", 46, "off"], ["4,7", "border", 47, "off"], ["5,7", "border", 48, "off"]];
puzzle8_endarrlight = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle8_endarrdark = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
Frame 187
function defineArrs() {
puzzle1_col1 = ["0,0", "0,1", "0,2", "0,3", "0,4", "0,5", "0,6"];
puzzle1_col2 = ["1,0", "1,1", "1,2", "1,3", "1,4", "1,5", "1,6"];
puzzle1_col3 = ["2,0", "2,1", "2,2", "2,3", "2,4", "2,5", "2,6"];
puzzle1_col4 = ["3,0", "3,1", "3,2", "3,3", "3,4", "3,5", "3,6"];
puzzle1_col5 = ["4,0", "4,1", "4,2", "4,3", "4,4", "4,5", "4,6"];
puzzle1_col6 = ["5,0", "5,1", "5,2", "5,3", "5,4", "5,5", "5,6"];
puzzle1_col7 = ["6,0", "6,1", "6,2", "6,3", "6,4", "6,5", "6,6"];
puzzle1_arr1 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle1_arr2 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle1_endarrlight = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle1_endarrdark = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle2_col1 = ["0,0", "0,1", "0,2", "0,3", "0,4", "0,5", "0,6", "0,7", "0,8"];
puzzle2_col2 = ["1,0", "1,1", "1,2", "1,3", "1,4", "1,5", "1,6", "1,7", "1,8"];
puzzle2_col3 = ["2,0", "2,1", "2,2", "2,3", "2,4", "2,5", "2,6", "2,7", "2,8"];
puzzle2_col4 = ["3,0", "3,1", "3,2", "3,3", "3,4", "3,5", "3,6", "3,7", "3,8"];
puzzle2_col5 = ["4,0", "4,1", "4,2", "4,3", "4,4", "4,5", "4,6", "4,7", "4,8"];
puzzle2_col6 = ["5,0", "5,1", "5,2", "5,3", "5,4", "5,5", "5,6", "5,7", "5,8"];
puzzle2_col7 = ["6,0", "6,1", "6,2", "6,3", "6,4", "6,5", "6,6", "6,7", "6,8"];
puzzle2_arr1 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "dark", 44, "off"], ["2,6", "light", 45, "off"], ["3,6", "dark", 46, "off"], ["4,6", "light", 47, "off"], ["5,6", "dark", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "dark", 51, "off"], ["2,7", "light", 52, "off"], ["3,7", "light", 53, "off"], ["4,7", "light", 54, "off"], ["5,7", "dark", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "border", 59, "off"], ["2,8", "border", 60, "off"], ["3,8", "border", 61, "off"], ["4,8", "border", 62, "off"], ["5,8", "border", 63, "off"], ["6,8", "border", 64, "off"]];
puzzle2_arr2 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "light", 44, "off"], ["2,6", "dark", 45, "off"], ["3,6", "light", 46, "off"], ["4,6", "dark", 47, "off"], ["5,6", "light", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "light", 51, "off"], ["2,7", "dark", 52, "off"], ["3,7", "dark", 53, "off"], ["4,7", "dark", 54, "off"], ["5,7", "light", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "border", 59, "off"], ["2,8", "border", 60, "off"], ["3,8", "border", 61, "off"], ["4,8", "border", 62, "off"], ["5,8", "border", 63, "off"], ["6,8", "border", 64, "off"]];
puzzle2_endarrlight = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "light", 44, "off"], ["2,6", "light", 45, "off"], ["3,6", "light", 46, "off"], ["4,6", "light", 47, "off"], ["5,6", "light", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "light", 51, "off"], ["2,7", "light", 52, "off"], ["3,7", "light", 53, "off"], ["4,7", "light", 54, "off"], ["5,7", "light", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "border", 59, "off"], ["2,8", "border", 60, "off"], ["3,8", "border", 61, "off"], ["4,8", "border", 62, "off"], ["5,8", "border", 63, "off"], ["6,8", "border", 64, "off"]];
puzzle2_endarrdark = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "dark", 44, "off"], ["2,6", "dark", 45, "off"], ["3,6", "dark", 46, "off"], ["4,6", "dark", 47, "off"], ["5,6", "dark", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "dark", 51, "off"], ["2,7", "dark", 52, "off"], ["3,7", "dark", 53, "off"], ["4,7", "dark", 54, "off"], ["5,7", "dark", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "border", 59, "off"], ["2,8", "border", 60, "off"], ["3,8", "border", 61, "off"], ["4,8", "border", 62, "off"], ["5,8", "border", 63, "off"], ["6,8", "border", 64, "off"]];
puzzle3_col1 = ["0,0", "0,1", "0,2", "0,3", "0,4", "0,5", "0,6", "0,7", "0,8"];
puzzle3_col2 = ["1,0", "1,1", "1,2", "1,3", "1,4", "1,5", "1,6", "1,7", "1,8"];
puzzle3_col3 = ["2,0", "2,1", "2,2", "2,3", "2,4", "2,5", "2,6", "2,7", "2,8"];
puzzle3_col4 = ["3,0", "3,1", "3,2", "3,3", "3,4", "3,5", "3,6", "3,7", "3,8"];
puzzle3_col5 = ["4,0", "4,1", "4,2", "4,3", "4,4", "4,5", "4,6", "4,7", "4,8"];
puzzle3_col6 = ["5,0", "5,1", "5,2", "5,3", "5,4", "5,5", "5,6", "5,7", "5,8"];
puzzle3_col7 = ["6,0", "6,1", "6,2", "6,3", "6,4", "6,5", "6,6", "6,7", "6,8"];
puzzle3_arr1 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "dark", 44, "off"], ["2,6", "light", 45, "off"], ["3,6", "dark", 46, "off"], ["4,6", "light", 47, "off"], ["5,6", "dark", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "dark", 51, "off"], ["2,7", "light", 52, "off"], ["3,7", "dark", 53, "off"], ["4,7", "light", 54, "off"], ["5,7", "dark", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "border", 59, "off"], ["2,8", "border", 60, "off"], ["3,8", "border", 61, "off"], ["4,8", "border", 62, "off"], ["5,8", "border", 63, "off"], ["6,8", "border", 64, "off"]];
puzzle3_arr2 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "light", 44, "off"], ["2,6", "dark", 45, "off"], ["3,6", "light", 46, "off"], ["4,6", "dark", 47, "off"], ["5,6", "light", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "light", 51, "off"], ["2,7", "dark", 52, "off"], ["3,7", "light", 53, "off"], ["4,7", "dark", 54, "off"], ["5,7", "light", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "border", 59, "off"], ["2,8", "border", 60, "off"], ["3,8", "border", 61, "off"], ["4,8", "border", 62, "off"], ["5,8", "border", 63, "off"], ["6,8", "border", 64, "off"]];
puzzle3_endarrlight = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "light", 44, "off"], ["2,6", "light", 45, "off"], ["3,6", "light", 46, "off"], ["4,6", "light", 47, "off"], ["5,6", "light", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "light", 51, "off"], ["2,7", "light", 52, "off"], ["3,7", "light", 53, "off"], ["4,7", "light", 54, "off"], ["5,7", "light", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "border", 59, "off"], ["2,8", "border", 60, "off"], ["3,8", "border", 61, "off"], ["4,8", "border", 62, "off"], ["5,8", "border", 63, "off"], ["6,8", "border", 64, "off"]];
puzzle3_endarrdark = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "dark", 44, "off"], ["2,6", "dark", 45, "off"], ["3,6", "dark", 46, "off"], ["4,6", "dark", 47, "off"], ["5,6", "dark", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "dark", 51, "off"], ["2,7", "dark", 52, "off"], ["3,7", "dark", 53, "off"], ["4,7", "dark", 54, "off"], ["5,7", "dark", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "border", 59, "off"], ["2,8", "border", 60, "off"], ["3,8", "border", 61, "off"], ["4,8", "border", 62, "off"], ["5,8", "border", 63, "off"], ["6,8", "border", 64, "off"]];
puzzle4_col1 = ["0,0", "0,1", "0,2", "0,3", "0,4", "0,5", "0,6", "0,7", "0,8", "0,9"];
puzzle4_col2 = ["1,0", "1,1", "1,2", "1,3", "1,4", "1,5", "1,6", "1,7", "1,8", "1,9"];
puzzle4_col3 = ["2,0", "2,1", "2,2", "2,3", "2,4", "2,5", "2,6", "2,7", "2,8", "2,9"];
puzzle4_col4 = ["3,0", "3,1", "3,2", "3,3", "3,4", "3,5", "3,6", "3,7", "3,8", "3,9"];
puzzle4_col5 = ["4,0", "4,1", "4,2", "4,3", "4,4", "4,5", "4,6", "4,7", "4,8", "4,9"];
puzzle4_col6 = ["5,0", "5,1", "5,2", "5,3", "5,4", "5,5", "5,6", "5,7", "5,8", "5,9"];
puzzle4_col7 = ["6,0", "6,1", "6,2", "6,3", "6,4", "6,5", "6,6", "6,7", "6,8", "6,9"];
puzzle4_arr1 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "of sf"], ["1,1", "dark", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "dark", 44, "off"], ["2,6", "dark", 45, "off"], ["3,6", "dark", 46, "off"], ["4,6", "light", 47, "off"], ["5,6", "dark", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "dark", 51, "off"], ["2,7", "dark", 52, "off"], ["3,7", "light", 53, "off"], ["4,7", "light", 54, "off"], ["5,7", "dark", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "dark", 59, "off"], ["2,8", "dark", 60, "off"], ["3,8", "light", 61, "off"], ["4,8", "light", 62, "off"], ["5,8", "dark", 63, "off"], ["6,8", "border", 64, "off"], ["0,9", "border", 65, "off"], ["1,9", "border", 66, "off"], ["2,9", "border", 67, "off"], ["3,9", "border", 68, "off"], ["4,9", "border", 69, "off"], ["5,9", "border", 70, "off"], ["6,9", "border", 71, "off"]];
puzzle4_arr2 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "of sf"], ["1,1", "light", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "light", 44, "off"], ["2,6", "light", 45, "off"], ["3,6", "light", 46, "off"], ["4,6", "dark", 47, "off"], ["5,6", "light", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "light", 51, "off"], ["2,7", "light", 52, "off"], ["3,7", "dark", 53, "off"], ["4,7", "dark", 54, "off"], ["5,7", "light", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "light", 59, "off"], ["2,8", "light", 60, "off"], ["3,8", "dark", 61, "off"], ["4,8", "dark", 62, "off"], ["5,8", "light", 63, "off"], ["6,8", "border", 64, "off"], ["0,9", "border", 65, "off"], ["1,9", "border", 66, "off"], ["2,9", "border", 67, "off"], ["3,9", "border", 68, "off"], ["4,9", "border", 69, "off"], ["5,9", "border", 70, "off"], ["6,9", "border", 71, "off"]];
puzzle4_endarrdark = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "of sf"], ["1,1", "dark", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "dark", 44, "off"], ["2,6", "dark", 45, "off"], ["3,6", "dark", 46, "off"], ["4,6", "dark", 47, "off"], ["5,6", "dark", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "dark", 51, "off"], ["2,7", "dark", 52, "off"], ["3,7", "dark", 53, "off"], ["4,7", "dark", 54, "off"], ["5,7", "dark", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "dark", 59, "off"], ["2,8", "dark", 60, "off"], ["3,8", "dark", 61, "off"], ["4,8", "dark", 62, "off"], ["5,8", "dark", 63, "off"], ["6,8", "border", 64, "off"], ["0,9", "border", 65, "off"], ["1,9", "border", 66, "off"], ["2,9", "border", 67, "off"], ["3,9", "border", 68, "off"], ["4,9", "border", 69, "off"], ["5,9", "border", 70, "off"], ["6,9", "border", 71, "off"]];
puzzle4_endarrlight = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "of sf"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "light", 44, "off"], ["2,6", "light", 45, "off"], ["3,6", "light", 46, "off"], ["4,6", "light", 47, "off"], ["5,6", "light", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "light", 51, "off"], ["2,7", "light", 52, "off"], ["3,7", "light", 53, "off"], ["4,7", "light", 54, "off"], ["5,7", "light", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "light", 59, "off"], ["2,8", "light", 60, "off"], ["3,8", "light", 61, "off"], ["4,8", "light", 62, "off"], ["5,8", "light", 63, "off"], ["6,8", "border", 64, "off"], ["0,9", "border", 65, "off"], ["1,9", "border", 66, "off"], ["2,9", "border", 67, "off"], ["3,9", "border", 68, "off"], ["4,9", "border", 69, "off"], ["5,9", "border", 70, "off"], ["6,9", "border", 71, "off"]];
puzzle5_col1 = ["0,0", "0,1", "0,2", "0,3", "0,4", "0,5", "0,6", "0,7", "0,8", "0,9"];
puzzle5_col2 = ["1,0", "1,1", "1,2", "1,3", "1,4", "1,5", "1,6", "1,7", "1,8", "1,9"];
puzzle5_col3 = ["2,0", "2,1", "2,2", "2,3", "2,4", "2,5", "2,6", "2,7", "2,8", "2,9"];
puzzle5_col4 = ["3,0", "3,1", "3,2", "3,3", "3,4", "3,5", "3,6", "3,7", "3,8", "3,9"];
puzzle5_col5 = ["4,0", "4,1", "4,2", "4,3", "4,4", "4,5", "4,6", "4,7", "4,8", "4,9"];
puzzle5_col6 = ["5,0", "5,1", "5,2", "5,3", "5,4", "5,5", "5,6", "5,7", "5,8", "5,9"];
puzzle5_col7 = ["6,0", "6,1", "6,2", "6,3", "6,4", "6,5", "6,6", "6,7", "6,8", "6,9"];
puzzle5_arr1 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "light", 44, "off"], ["2,6", "dark", 45, "off"], ["3,6", "light", 46, "off"], ["4,6", "dark", 47, "off"], ["5,6", "light", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "light", 51, "off"], ["2,7", "dark", 52, "off"], ["3,7", "light", 53, "off"], ["4,7", "dark", 54, "off"], ["5,7", "light", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "light", 59, "off"], ["2,8", "dark", 60, "off"], ["3,8", "light", 61, "off"], ["4,8", "dark", 62, "off"], ["5,8", "light", 63, "off"], ["6,8", "border", 64, "off"], ["0,9", "border", 65, "off"], ["1,9", "border", 66, "off"], ["2,9", "border", 67, "off"], ["3,9", "border", 68, "off"], ["4,9", "border", 69, "off"], ["5,9", "border", 70, "off"], ["6,9", "border", 71, "off"]];
puzzle5_arr2 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "dark", 44, "off"], ["2,6", "light", 45, "off"], ["3,6", "dark", 46, "off"], ["4,6", "light", 47, "off"], ["5,6", "dark", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "dark", 51, "off"], ["2,7", "light", 52, "off"], ["3,7", "dark", 53, "off"], ["4,7", "light", 54, "off"], ["5,7", "dark", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "dark", 59, "off"], ["2,8", "light", 60, "off"], ["3,8", "dark", 61, "off"], ["4,8", "light", 62, "off"], ["5,8", "dark", 63, "off"], ["6,8", "border", 64, "off"], ["0,9", "border", 65, "off"], ["1,9", "border", 66, "off"], ["2,9", "border", 67, "off"], ["3,9", "border", 68, "off"], ["4,9", "border", 69, "off"], ["5,9", "border", 70, "off"], ["6,9", "border", 71, "off"]];
puzzle5_endarrlight = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "light", 44, "off"], ["2,6", "light", 45, "off"], ["3,6", "light", 46, "off"], ["4,6", "light", 47, "off"], ["5,6", "light", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "light", 51, "off"], ["2,7", "light", 52, "off"], ["3,7", "light", 53, "off"], ["4,7", "light", 54, "off"], ["5,7", "light", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "light", 59, "off"], ["2,8", "light", 60, "off"], ["3,8", "light", 61, "off"], ["4,8", "light", 62, "off"], ["5,8", "light", 63, "off"], ["6,8", "border", 64, "off"], ["0,9", "border", 65, "off"], ["1,9", "border", 66, "off"], ["2,9", "border", 67, "off"], ["3,9", "border", 68, "off"], ["4,9", "border", 69, "off"], ["5,9", "border", 70, "off"], ["6,9", "border", 71, "off"]];
puzzle5_endarrdark = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "dark", 44, "off"], ["2,6", "dark", 45, "off"], ["3,6", "dark", 46, "off"], ["4,6", "dark", 47, "off"], ["5,6", "dark", 48, "off"], ["6,6", "border", 49, "off"], ["0,7", "border", 50, "off"], ["1,7", "dark", 51, "off"], ["2,7", "dark", 52, "off"], ["3,7", "dark", 53, "off"], ["4,7", "dark", 54, "off"], ["5,7", "dark", 55, "off"], ["6,7", "border", 56, "off"], ["0,8", "border", 58, "off"], ["1,8", "dark", 59, "off"], ["2,8", "dark", 60, "off"], ["3,8", "dark", 61, "off"], ["4,8", "dark", 62, "off"], ["5,8", "dark", 63, "off"], ["6,8", "border", 64, "off"], ["0,9", "border", 65, "off"], ["1,9", "border", 66, "off"], ["2,9", "border", 67, "off"], ["3,9", "border", 68, "off"], ["4,9", "border", 69, "off"], ["5,9", "border", 70, "off"], ["6,9", "border", 71, "off"]];
puzzle6_col1 = ["0,0", "0,1", "0,2", "0,3", "0,4", "0,5", "0,6"];
puzzle6_col2 = ["1,0", "1,1", "1,2", "1,3", "1,4", "1,5", "1,6"];
puzzle6_col3 = ["2,0", "2,1", "2,2", "2,3", "2,4", "2,5", "2,6"];
puzzle6_col4 = ["3,0", "3,1", "3,2", "3,3", "3,4", "3,5", "3,6"];
puzzle6_col5 = ["4,0", "4,1", "4,2", "4,3", "4,4", "4,5", "4,6"];
puzzle6_col6 = ["5,0", "5,1", "5,2", "5,3", "5,4", "5,5", "5,6"];
puzzle6_col7 = ["6,0", "6,1", "6,2", "6,3", "6,4", "6,5", "6,6"];
puzzle6_arr1 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle6_arr2 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle6_endarrlight = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle6_endarrdark = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle7_col1 = ["0,0", "0,1", "0,2", "0,3", "0,4", "0,5", "0,6"];
puzzle7_col2 = ["1,0", "1,1", "1,2", "1,3", "1,4", "1,5", "1,6"];
puzzle7_col3 = ["2,0", "2,1", "2,2", "2,3", "2,4", "2,5", "2,6"];
puzzle7_col4 = ["3,0", "3,1", "3,2", "3,3", "3,4", "3,5", "3,6"];
puzzle7_col5 = ["4,0", "4,1", "4,2", "4,3", "4,4", "4,5", "4,6"];
puzzle7_col6 = ["5,0", "5,1", "5,2", "5,3", "5,4", "5,5", "5,6"];
puzzle7_col7 = ["6,0", "6,1", "6,2", "6,3", "6,4", "6,5", "6,6"];
puzzle7_arr1 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle7_arr2 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle7_endarrlight = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle7_endarrdark = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle8_col1 = ["0,0", "0,1", "0,2", "0,3", "0,4", "0,5", "0,6"];
puzzle8_col2 = ["1,0", "1,1", "1,2", "1,3", "1,4", "1,5", "1,6"];
puzzle8_col3 = ["2,0", "2,1", "2,2", "2,3", "2,4", "2,5", "2,6"];
puzzle8_col4 = ["3,0", "3,1", "3,2", "3,3", "3,4", "3,5", "3,6"];
puzzle8_col5 = ["4,0", "4,1", "4,2", "4,3", "4,4", "4,5", "4,6"];
puzzle8_col6 = ["5,0", "5,1", "5,2", "5,3", "5,4", "5,5", "5,6"];
puzzle8_col7 = ["6,0", "6,1", "6,2", "6,3", "6,4", "6,5", "6,6"];
puzzle8_arr1 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle8_arr2 = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle8_endarrlight = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "light", 9, "off"], ["2,1", "light", 10, "off"], ["3,1", "light", 11, "off"], ["4,1", "light", 12, "off"], ["5,1", "light", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "light", 16, "off"], ["2,2", "light", 17, "off"], ["3,2", "light", 18, "off"], ["4,2", "light", 19, "off"], ["5,2", "light", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "light", 23, "off"], ["2,3", "light", 24, "off"], ["3,3", "light", 25, "off"], ["4,3", "light", 26, "off"], ["5,3", "light", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "light", 30, "off"], ["2,4", "light", 31, "off"], ["3,4", "light", 32, "off"], ["4,4", "light", 33, "off"], ["5,4", "light", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "light", 37, "off"], ["2,5", "light", 38, "off"], ["3,5", "light", 39, "off"], ["4,5", "light", 40, "off"], ["5,5", "light", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
puzzle8_endarrdark = [["0,0", "border", 1, "off"], ["1,0", "border", 2, "off"], ["2,0", "border", 3, "off"], ["3,0", "border", 4, "off"], ["4,0", "border", 5, "off"], ["5,0", "border", 6, "off"], ["6,0", "border", 7, "off"], ["0,1", "border", 8, "off"], ["1,1", "dark", 9, "off"], ["2,1", "dark", 10, "off"], ["3,1", "dark", 11, "off"], ["4,1", "dark", 12, "off"], ["5,1", "dark", 13, "off"], ["6,1", "border", 14, "off"], ["0,2", "border", 15, "off"], ["1,2", "dark", 16, "off"], ["2,2", "dark", 17, "off"], ["3,2", "dark", 18, "off"], ["4,2", "dark", 19, "off"], ["5,2", "dark", 20, "off"], ["6,2", "border", 21, "off"], ["0,3", "border", 22, "off"], ["1,3", "dark", 23, "off"], ["2,3", "dark", 24, "off"], ["3,3", "dark", 25, "off"], ["4,3", "dark", 26, "off"], ["5,3", "dark", 27, "off"], ["6,3", "border", 28, "off"], ["0,4", "border", 29, "off"], ["1,4", "dark", 30, "off"], ["2,4", "dark", 31, "off"], ["3,4", "dark", 32, "off"], ["4,4", "dark", 33, "off"], ["5,4", "dark", 34, "off"], ["6,4", "border", 35, "off"], ["0,5", "border", 36, "off"], ["1,5", "dark", 37, "off"], ["2,5", "dark", 38, "off"], ["3,5", "dark", 39, "off"], ["4,5", "dark", 40, "off"], ["5,5", "dark", 41, "off"], ["6,5", "border", 42, "off"], ["0,6", "border", 43, "off"], ["1,6", "border", 44, "off"], ["2,6", "border", 45, "off"], ["3,6", "border", 46, "off"], ["4,6", "border", 47, "off"], ["5,6", "border", 48, "off"], ["6,6", "border", 49, "off"]];
}
menuFade = true;
activeClip = 1;
puzzles = new Array(1, 2, 3, 4, 5, 6, 7, 8);
puzzle1_y = 160;
puzzle1_rows = 7;
puzzle1_cols = 7;
puzzle1_arrs = 2;
puzzle2_y = 143;
puzzle2_rows = 7;
puzzle2_cols = 9;
puzzle2_arrs = 2;
puzzle3_y = 143;
puzzle3_rows = 7;
puzzle3_cols = 9;
puzzle3_arrs = 2;
puzzle4_y = 134;
puzzle4_rows = 7;
puzzle4_cols = 10;
puzzle4_arrs = 2;
puzzle5_y = 134;
puzzle5_rows = 7;
puzzle5_cols = 10;
puzzle5_arrs = 2;
puzzle6_y = 160;
puzzle6_rows = 7;
puzzle6_cols = 7;
puzzle6_arrs = 2;
puzzle7_y = 160;
puzzle7_rows = 7;
puzzle7_cols = 7;
puzzle7_arrs = 2;
puzzle8_y = 160;
puzzle8_rows = 7;
puzzle8_cols = 7;
puzzle8_arrs = 2;
movieWidth = 510;
movieHeight = 320;
puzzlesCompleted = 0;
var score_arr = new Array();
puzzle._visible = false;
Frame 188
function init() {
defineArrs();
i = 0;
while (i < puzzles.length) {
removeMovieClip("puzzle" add i);
i++;
}
duplicateMovieClip ("puzzle", "puzzle" add activeClip, 1000);
eval ("puzzle" add activeClip)._y = eval (("puzzle" add activeClip) add "_y");
eval ("puzzle" add activeClip).gotoAndStop(1);
}
init();
stop();
Symbol 29 Button
on (release, releaseOutside) {
if (_parent.chooser._visible != true) {
_parent.typing = "false";
prevClip = _parent.currentClip;
if (_parent.clickCheck(this.clipName, prevClip) == false) {
_parent.previousClip = _parent.currentClip;
_parent.currentClip = this.clipName;
_parent.endX = this._x + (this._width / 2);
_parent.endY = this._y + (this._height / 2);
_parent.tumbler_mc.end_x = _parent.endX;
_parent.tumbler_mc.end_y = _parent.endY;
_parent.distX = _parent.draggable_mc._x - _parent.endX;
_parent.distY = _parent.draggable_mc._y - _parent.endY;
_parent.newendX = this._x + (this._width / 2);
_parent.newendY = this._y + (this._height / 2);
_parent.newdistX = _parent.draggable_mc._x - _parent.newendX;
_parent.newdistY = _parent.draggable_mc._y - _parent.newendY;
_parent.snap_x = _parent.newendX;
_parent.snap_y = _parent.newendY;
_parent.horiz_arr = this.row_arr;
_parent.vert_arr = this.col_arr;
_parent.horiz = this.row;
_parent.vert = this.col;
_parent.rowss = this.rownum;
_parent.colss = this.colnum;
_parent.colposs = this.colpos;
_parent.rowposs = this.rowpos;
_parent.snapx = _parent.endX;
_parent.snapy = _parent.endY;
_parent.dragController(this.clipName, this.row_arr, this.col_arr);
if (this.flag != true) {
_parent.remove = false;
_parent.arrayController(this.clipName, "on", this.clipColor, "insert");
outlines._visible = true;
corners._visible = true;
startpoint._visible = true;
this.flag = true;
_parent.slideTumbler = true;
_parent.slideController.gotoAndPlay(2);
_parent.outlineController(this.clipName, _parent.previousClip);
} else {
_parent.remove = true;
_parent.arrayController(this.clipName, "off", this.clipColor, "remove");
_parent.draggable_mc._x = _parent.endX;
_parent.draggable_mc._y = _parent.endY;
_parent.tumbler_mc._x = _parent.endX;
_parent.tumbler_mc._y = _parent.endY;
this.flag = true;
}
if (_parent.distX < 0) {
_parent.dirX = "left";
} else if (_parent.distX > 0) {
_parent.dirX = "right";
}
if (_parent.distY < 0) {
_parent.dirY = "top";
} else if (_parent.distY > 0) {
_parent.dirY = "bottom";
}
if (_parent.startgame != true) {
_parent.previousClip = _parent.currentClip;
_parent.currentClip = this.clipName;
_parent.draggable_mc._x = _parent.endX;
_parent.draggable_mc._y = _parent.endY;
_parent.tumbler_mc._x = _parent.endX;
_parent.tumbler_mc._y = _parent.endY;
_parent.tumbler_mc._visible = true;
_parent.startgame = true;
}
}
}
}
on (rollOver) {
if (_parent.chooser._visible != true) {
startpoint._visible = true;
}
}
on (rollOut) {
if (_parent.chooser._visible != true) {
if (_parent.history_new[_parent.history_new.length - 1] eq this.clipName) {
startpoint._visible = true;
} else {
startpoint._visible = false;
}
}
}
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 2
stop();
Symbol 40 MovieClip Frame 3
stop();
Symbol 40 MovieClip Frame 4
stop();
Symbol 40 MovieClip Frame 5
stop();
Symbol 40 MovieClip Frame 6
stop();
Symbol 40 MovieClip Frame 7
stop();
Symbol 40 MovieClip Frame 8
stop();
Symbol 41 MovieClip [square] Frame 1
outlines._visible = false;
corners._visible = false;
startPoint._visible = false;
topLeft._visible = false;
topRight._visible = false;
bottomLeft._visible = false;
bottomRight._visible = false;
stop();
Symbol 41 MovieClip [square] Frame 2
stop();
Symbol 41 MovieClip [square] Frame 3
stop();
Symbol 41 MovieClip [square] Frame 4
outlines._visible = false;
startPoint._visible = false;
Symbol 41 MovieClip [square] Frame 9
_parent.deactivateBlocks();
stop();
Symbol 41 MovieClip [square] Frame 14
_parent.deactivateBlocks();
stop();
Symbol 41 MovieClip [square] Frame 15
if ((_parent.resultsdark == 0) and (_parent.resultslight == 0)) {
_parent.deactivateBlocks();
}
stop();
Symbol 62 Button
on (release) {
gotoAndPlay ("lastFrame");
}
Symbol 70 MovieClip Frame 16
stop();
Symbol 72 MovieClip Frame 30
gotoAndPlay (1);
Symbol 73 MovieClip Frame 80
if (_root.shell_ready) {
_root.gotoAndPlay("introStart");
} else {
gotoAndPlay (1);
}
Symbol 74 MovieClip Frame 1
var my_sound = new Sound();
my_sound.attachSound("dsBoot");
Symbol 74 MovieClip Frame 2
my_sound.start();
Symbol 74 MovieClip Frame 20
stop();
Symbol 75 MovieClip Frame 20
stop();
Symbol 78 Button
on (press) {
_parent.gotoAndPlay("initialize");
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
_parent.played = true;
play();
Symbol 82 MovieClip Frame 136
_parent.played = true;
play();
Symbol 82 MovieClip Frame 294
_parent.gotoAndPlay("initialize");
gotoAndStop (1);
Symbol 87 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
_parent.keyRemove();
_parent._parent.reset = true;
_parent._parent.init();
}
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 6
if (_parent._parent._parent.loopCount > 1) {
gotoAndPlay ("left");
_parent._parent._parent.loopCount--;
} else {
stop();
}
Symbol 108 MovieClip Frame 18
if (_parent._parent._parent.loopCount > 1) {
gotoAndPlay ("right");
_parent._parent._parent.loopCount--;
} else {
stop();
}
Symbol 108 MovieClip Frame 27
if (_parent._parent._parent.loopCount > 1) {
gotoAndPlay ("up");
_parent._parent._parent.loopCount--;
} else {
stop();
}
Symbol 108 MovieClip Frame 33
if (_parent._parent._parent.loopCount > 1) {
gotoAndPlay ("down");
_parent._parent._parent.loopCount--;
} else {
stop();
}
Symbol 108 MovieClip Frame 57
gotoAndPlay ("fade");
Symbol 109 Button
on (press, dragOut, dragOver) {
_parent.slideController.gotoAndStop(1);
_parent.slideTumbler = false;
}
on (release) {
if (Number(getTimer() - lastClick_1) < 500) {
_parent.soundController("doubleclickSound");
_parent.endGame();
_parent.remove = true;
_parent.soundController("endgameSound");
_parent.stopDrag();
gotoAndStop (1);
} else {
lastClick_1 = getTimer();
}
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
if (_parent.typing == "true") {
posX = _parent.draggable_mc._x + _parent.spacing;
posY = _parent.draggable_mc._y + _parent.spacing;
} else {
posX = _parent.draggable_mc._x;
posY = _parent.draggable_mc._y;
}
diffX = posX - _parent.endX;
diffY = posY - _parent.endY;
moveX = diffX / speed;
moveY = diffY / speed;
if ((((Number(diffX) < 0.001) and (Number(diffX) > -0.001)) and (Number(diffY) < 0.001)) and (Number(diffY) > -0.001)) {
_parent.slideTumbler = false;
setProperty(_parent.draggable_mc, _x , _parent.endX);
setProperty(_parent.draggable_mc, _y , _parent.endY);
_parent.tumbler_mc.tumbler.gotoAndPlay("fade");
gotoAndStop (1);
} else {
setProperty(_parent.draggable_mc, _x , posX - moveX);
setProperty(_parent.draggable_mc, _y , posY - moveY);
}
Symbol 111 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 118 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 3
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 2
stop();
Symbol 126 MovieClip Frame 3
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
stop();
Symbol 130 MovieClip Frame 3
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
stop();
Symbol 134 MovieClip Frame 3
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 3
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 3
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 3
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 150 MovieClip Frame 3
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
stop();
Symbol 154 MovieClip Frame 3
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
stop();
Symbol 155 MovieClip Frame 3
stop();
Symbol 155 MovieClip Frame 4
stop();
Symbol 155 MovieClip Frame 5
stop();
Symbol 155 MovieClip Frame 6
stop();
Symbol 155 MovieClip Frame 7
stop();
Symbol 155 MovieClip Frame 8
stop();
Symbol 155 MovieClip Frame 9
stop();
Symbol 155 MovieClip Frame 10
stop();
Symbol 156 Button
on (release, releaseOutside) {
eval ("_parent._parent._parent.puzzle" add _parent._parent._parent.activeClip).soundController("selectedSound");
eval ("_parent._parent._parent.puzzle" add _parent._parent._parent.activeClip).keyRemove();
_parent._parent._parent.activeClip = substring(this._name, 2, this._name.length);
_parent._parent._parent.init();
}
Symbol 159 MovieClip Frame 1
stop();
Instance of Symbol 155 MovieClip "numbers" in Symbol 159 MovieClip Frame 1
onClipEvent (load) {
num.gotoAndStop(_parent.clipStatus);
}
Symbol 159 MovieClip Frame 2
stop();
Symbol 159 MovieClip Frame 3
stop();
Symbol 161 Button
on (press) {
if (_parent._parent.activeClip < _parent._parent.puzzles.length) {
if (_parent._parent.activeClip < (_parent._parent.puzzlesCompleted + 1)) {
_parent._parent.activeClip++;
eval ("_parent._parent.puzzle" add _parent._parent.activeClip).keyRemove();
_parent._parent.init();
} else if (_parent._parent.activeClip == (_parent._parent.puzzlesCompleted + 1)) {
_parent._parent.activeClip = 1;
_parent._parent.init();
}
} else {
_parent._parent.activeClip = 1;
_parent._parent.init();
}
}
Symbol 162 Button
on (press) {
if (_parent._parent.activeClip > 1) {
_parent._parent.activeClip--;
eval ("_parent._parent.puzzle" add _parent._parent.activeClip).keyRemove();
_parent._parent.init();
} else if (_parent._parent.activeClip == 1) {
if (_parent._parent.puzzlesCompleted == _parent._parent.puzzles.length) {
_parent._parent.activeClip = _parent._parent.puzzles.length;
_parent._parent.init();
} else {
_parent._parent.activeClip = _parent._parent.puzzlesCompleted + 1;
_parent._parent.init();
}
}
}
Symbol 165 Button
on (release, releaseOutside) {
_parent._parent._parent.display = "inactive";
eval ("_parent._parent._parent.puzzle" add _parent._parent._parent.activeClip).soundController("puzzleSelected");
eval (("_parent._parent._parent.puzzle" add _parent._parent._parent.activeClip) add ".chooser")._visible = false;
eval ("_parent._parent._parent.puzzle" add _parent._parent._parent.activeClip).display = "inactive";
_parent._parent._parent.reset = false;
_parent._parent._parent.menuFade = true;
}
Symbol 169 Button
on (press) {
getURL ("http://polarium.nintendods.com", "_blank");
}
Symbol 174 Button
on (rollOver) {
gotoAndPlay ("in");
}
on (rollOut) {
gotoAndPlay ("out");
}
on (press) {
_parent._parent._parent.display = "inactive";
eval ("_parent._parent._parent._parent.puzzle" add _parent._parent._parent._parent.activeClip).soundController("puzzleSelected");
eval (("_parent._parent._parent._parent.puzzle" add _parent._parent._parent._parent.activeClip) add ".chooser")._visible = false;
eval ("_parent._parent._parent._parent.puzzle" add _parent._parent._parent._parent.activeClip).display = "inactive";
_parent._parent._parent.reset._visible = true;
_parent._parent._parent.menu._visible = true;
_parent._parent._parent.reset = false;
_parent._parent._parent.menuFade = true;
_parent._parent._parent._parent.gotoAndPlay("initialize");
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 10
stop();
Symbol 175 MovieClip Frame 20
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
l = 0;
while (l <= 8) {
if (_parent._parent.puzzles[l] <= (_parent._parent.puzzlesCompleted + 1)) {
if (_parent._parent.puzzles[l] == _parent._parent.activeClip) {
duplicateMovieClip (eval ("n" add (l + 1)), "n_" add (l + 1), this.getNextHighestDepth());
eval ("n_" add (l + 1)).gotoAndStop("active");
eval ("n_" add (l + 1)).clipStatus = "active";
} else {
eval ("n" add (l + 1)).gotoAndStop("enabled");
eval ("n" add (l + 1)).clipStatus = "enabled";
}
} else {
eval ("n" add (l + 1)).gotoAndStop("disabled");
eval ("n" add (l + 1)).clipStatus = "disabled";
}
l++;
}
stop();
Instance of Symbol 159 MovieClip "n3" in Symbol 177 MovieClip Frame 2
onClipEvent (load) {
if (clipStatus == "active") {
numbers.gotoAndStop(substring(this._name, 3, this._name.length));
} else {
numbers.gotoAndStop(substring(this._name, 2, this._name.length));
}
}
Instance of Symbol 159 MovieClip "n2" in Symbol 177 MovieClip Frame 2
onClipEvent (load) {
if (clipStatus == "active") {
numbers.gotoAndStop(substring(this._name, 3, this._name.length));
} else {
numbers.gotoAndStop(substring(this._name, 2, this._name.length));
}
}
Instance of Symbol 159 MovieClip "n5" in Symbol 177 MovieClip Frame 2
onClipEvent (load) {
if (clipStatus == "active") {
numbers.gotoAndStop(substring(this._name, 3, this._name.length));
} else {
numbers.gotoAndStop(substring(this._name, 2, this._name.length));
}
}
Instance of Symbol 159 MovieClip "n4" in Symbol 177 MovieClip Frame 2
onClipEvent (load) {
if (clipStatus == "active") {
numbers.gotoAndStop(substring(this._name, 3, this._name.length));
} else {
numbers.gotoAndStop(substring(this._name, 2, this._name.length));
}
}
Instance of Symbol 159 MovieClip "n7" in Symbol 177 MovieClip Frame 2
onClipEvent (load) {
if (clipStatus == "active") {
numbers.gotoAndStop(substring(this._name, 3, this._name.length));
} else {
numbers.gotoAndStop(substring(this._name, 2, this._name.length));
}
}
Instance of Symbol 159 MovieClip "n6" in Symbol 177 MovieClip Frame 2
onClipEvent (load) {
if (clipStatus == "active") {
numbers.gotoAndStop(substring(this._name, 3, this._name.length));
} else {
numbers.gotoAndStop(substring(this._name, 2, this._name.length));
}
}
Instance of Symbol 159 MovieClip "n8" in Symbol 177 MovieClip Frame 2
onClipEvent (load) {
if (clipStatus == "active") {
_root.activeClip = substring(this._name, 3, this._name.length);
numbers.gotoAndStop(substring(this._name, 3, this._name.length));
} else {
numbers.gotoAndStop(substring(this._name, 2, this._name.length));
}
}
Instance of Symbol 159 MovieClip "n1" in Symbol 177 MovieClip Frame 2
onClipEvent (load) {
if (clipStatus == "active") {
numbers.gotoAndStop(substring(this._name, 3, this._name.length));
} else {
numbers.gotoAndStop(substring(this._name, 2, this._name.length));
}
}
Symbol 177 MovieClip Frame 3
play();
Symbol 177 MovieClip Frame 4
l = 0;
while (l <= 8) {
if (_parent._parent.puzzles[l] <= (_parent._parent.puzzlesCompleted + 1)) {
if (_parent._parent.puzzles[l] == _parent._parent.activeClip) {
duplicateMovieClip (eval ("n" add (l + 1)), "n_" add (l + 1), this.getNextHighestDepth());
eval ("n" add (l + 1)).gotoAndStop("active");
eval (("n" add (l + 1)) add ".numbers.num").gotoAndStop("active");
eval ("n" add (l + 1)).clipStatus = "active";
} else {
eval ("n" add (l + 1)).gotoAndStop("enabled");
eval (("n" add (l + 1)) add ".numbers.num").gotoAndStop("enabled");
eval ("n" add (l + 1)).clipStatus = "enabled";
}
} else {
eval ("n" add (l + 1)).gotoAndStop("disabled");
eval (("n" add (l + 1)) add ".numbers.num").gotoAndStop("disabled");
eval ("n" add (l + 1)).clipStatus = "disabled";
}
l++;
}
Symbol 177 MovieClip Frame 10
_parent._parent.menuFade = false;
duplicateMovieClip (eval ("n" add _parent._parent.activeClip), "n_" add _parent._parent.activeClip, this.getNextHighestDepth());
eval ("n_" add _parent._parent.activeClip).gotoAndStop("active");
eval ("n_" add _parent._parent.activeClip).clipStatus = "active";
stop();
Symbol 177 MovieClip Frame 11
end.txt.text = ("YOU SOLVED ALL " add _parent._parent.puzzles.length) add " PUZZLES!";
_parent.reset._visible = false;
_parent.menu._visible = false;
play();
Symbol 177 MovieClip Frame 19
stop();
Symbol 181 MovieClip Frame 1
num_txt = _parent._parent.activeClip;
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
play();
Symbol 183 MovieClip Frame 40
stop();
if (_parent._parent.activeClip == _parent._parent.puzzles.length) {
_parent._parent.activeClip = 1;
_parent._parent.init();
} else {
_parent._parent.activeClip++;
_parent._parent.init();
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
play();
Symbol 185 MovieClip Frame 40
stop();
_parent._parent.init();
Symbol 186 MovieClip Frame 1
function buildGrid() {
var c_count = 1;
var r_count = 1;
var clipcount = 0;
i = 1;
while (i <= total) {
row[clipcount] = new Array();
column[clipcount] = new Array();
colrow = new Array();
gridcol = new Array();
var target_mc = grid_arr[i - 1][0];
duplicateMovieClip ("squareObj", target_mc, i);
eval (target_mc)._y = eval (target_mc)._y + heightdiff;
eval (target_mc)._x = (squareObj._x + (i * squareObj._width)) - widthdiff;
rcount = r_count - 1;
ccount = c_count - 1;
equation = (((cols * i) + (i - (cols * c_count))) - (diff + (i + 1))) + c_count;
equate_cols = Math.floor(equation / cols);
gridrow = grid_arr[(rows * r_count) + ((i - (rows * r_count)) - 1)][0];
gridcol = new Array(grid_arr[clipcount][0]);
mycol = splitArray(gridcol);
gridcol_reversed = new Array([mycol[1], mycol[0]]);
row[rcount].push([gridrow]);
column[ccount].push([gridcol_reversed]);
colrow.push([column[ccount][6]]);
eval (target_mc).row = gridrow;
eval (target_mc).rownum = r_count;
eval (target_mc).rowpos = row[rcount].length;
eval (target_mc).row_arr = row[rcount];
eval (target_mc).col = gridcol_reversed;
eval (target_mc).colpos = column[ccount].length;
eval (target_mc).colnum = equate_cols + 1;
eval (target_mc).col_arr = eval ((("_parent." add this._name) add "_col") add (equate_cols + 1));
myTime = String((i * i) / rows);
if (!searchString(myTime, ".")) {
diff = cols * (i - c_count);
heightdiff = c_count * squareObj._height;
widthdiff = i * squareObj._width;
c_count++;
r_count++;
}
clipcount++;
i++;
}
duplicateMovieClip ("drag", "draggable_mc", i);
draggable_mc.gotoAndStop(2);
draggable_mc._alpha = 1;
duplicateMovieClip ("drag", "tumbler_mc", i + 1);
tumbler_mc._visible = false;
displayGrid();
}
function searchString(stringName, args) {
var _local1 = stringName;
var _local2 = args;
k = 0;
while (k < _local1.length) {
if ((substring(_local1, k, 1)) == _local2) {
return(k);
}
k++;
}
return(false);
}
function displayGrid() {
i = 0;
while (i < grid_arr.length) {
var target_mc = grid_arr[i][0];
var target_mcColor = grid_arr[i][1];
grid_obj = new Array();
grid_obj["clipName" + i] = grid_arr[i][0];
grid_obj["clipColor" + i] = grid_arr[i][1];
grid_obj["clipID" + i] = grid_arr[i][2];
grid_obj["clipState" + i] = grid_arr[i][3];
eval (target_mc).clipName = grid_obj["clipName" + i];
eval (target_mc).clipColor = grid_obj["clipColor" + i];
eval (target_mc).clipID = grid_obj["clipID" + i];
eval (target_mc).clipState = grid_obj["clipState" + i];
eval (target_mc).flag = false;
eval (target_mc).gotoAndStop(target_mcColor);
clipBorders(target_mc);
i++;
}
}
function clipBorders(target) {
if (eval (target).clipColor == "border") {
if (eval (target).rownum == 1) {
if (eval (target).colnum == 1) {
eval (target).borders.gotoAndStop("topLeft");
} else if (eval (target).colnum == rows) {
eval (target).borders.gotoAndStop("topRight");
} else {
eval (target).borders.gotoAndStop("top");
}
} else if (eval (target).rownum == cols) {
if (eval (target).colnum == 1) {
eval (target).borders.gotoAndStop("bottomLeft");
} else if (eval (target).colnum == rows) {
eval (target).borders.gotoAndStop("bottomRight");
} else {
eval (target).borders.gotoAndStop("bottom");
}
} else if (eval (target).colnum == 1) {
eval (target).borders.gotoAndStop("left");
} else if (eval (target).colnum == cols) {
eval (target).borders.gotoAndStop("right");
}
}
}
function displayMenu() {
duplicateMovieClip ("choose", "chooser", 10000);
chooser._x = eval (grid_arr[0][0])._x + ((eval (grid_arr[0][0])._width * rows) / 2);
chooser._y = eval (grid_arr[0][0])._y + ((eval (grid_arr[0][0])._height * cols) / 2);
if (_parent.reset != true) {
_parent.display = "active";
chooser._visible = true;
_parent.reset = false;
if (_parent.score_arr.length == _parent.puzzles.length) {
chooser.gotoAndPlay("endgame");
} else if (_parent.menuFade == true) {
chooser.gotoAndPlay("fade");
} else {
chooser.gotoAndPlay(2);
}
} else {
_parent.display = "inactive";
chooser._visible = false;
_parent.reset = false;
}
}
function clipBounds(clipName) {
var _local1 = clipName;
var leftX = _local1.getBounds().xMin;
var rightX = _local1.getBounds().xMax;
var topY = _local1.getBounds().yMin;
var bottomY = _local1.getBounds().yMax;
}
function endGame() {
function findErrors() {
i = 0;
while (i < grid_arr.length) {
clipBorders(grid_arr[i][0]);
if (grid_arr[i][1] == grid_endarrlight[i][1]) {
if (grid_arr[i][1] != "border") {
rightlight++;
}
eval (grid_arr[i][0]).startpoint._visible = false;
}
if (grid_arr[i][1] == grid_endarrdark[i][1]) {
if (grid_arr[i][1] != "border") {
rightdark++;
}
eval (grid_arr[i][0]).startpoint._visible = false;
}
eval (grid_arr[i][0]).outlines._visible = false;
eval (grid_arr[i][0]).corners._visible = false;
i++;
}
}
function scoreLight() {
if (rightlight < possible) {
return("lose");
}
if (rightlight == possible) {
return("win");
}
}
function scoreDark() {
if (rightdark < possible) {
return("lose");
}
if (rightdark == possible) {
return("win");
}
}
function scoreKeeper(scoreNum) {
var _local1 = _parent;
_local1.score_arr.push(scoreNum);
_local1.puzzlesCompleted++;
}
rightlight = 0;
rightdark = 0;
resultsdark = 0;
resultslight = 0;
possible = (rows - 2) * (cols - 2);
i = 0;
while (i < history_arr.length) {
k = 0;
while (k < grid_arr.length) {
if (history_arr[i][0] eq grid_arr[k][0]) {
if (history_arr[i][1] != "border") {
if (history_arr[i][1] == "dark") {
grid_arr[k][1] = "light";
eval (history_arr[i][0]).gotoAndPlay("light2");
resultsdark++;
} else if (history_arr[i][1] == "light") {
grid_arr[k][1] = "dark";
eval (history_arr[i][0]).gotoAndPlay("dark2");
resultslight++;
}
} else {
eval (history_arr[i][0]).gotoAndPlay("border3");
}
eval (history_arr[i][0]).outlines._visible = false;
eval (history_arr[i][0]).corners._visible = false;
draggable_mc._visible = false;
tumbler_mc._visible = false;
}
eval (grid_arr[i][0]).startpoint._visible = false;
k++;
}
i++;
}
findErrors();
if (scoreLight() == "win") {
if (searchArray(_root.score_arr, _root.activeClip) == null) {
scoreKeeper(_root.activeClip);
}
duplicateMovieClip ("cleartext", "cleartext1", 9000);
cleartext1._x = eval (grid_arr[0][0])._x + ((eval (grid_arr[0][0])._width * rows) / 2);
cleartext1._y = eval (grid_arr[0][0])._y + ((eval (grid_arr[0][0])._height * cols) / 2);
cleartext1.gotoAndStop(2);
soundController("winSound");
keyRemove();
} else if (scoreDark() == "win") {
if (searchArray(_root.score_arr, _root.activeClip) == null) {
scoreKeeper(_root.activeClip);
}
duplicateMovieClip ("cleartext", "cleartext1", 9000);
cleartext1._x = eval (grid_arr[0][0])._x + ((eval (grid_arr[0][0])._width * rows) / 2);
cleartext1._y = eval (grid_arr[0][0])._y + ((eval (grid_arr[0][0])._height * cols) / 2);
cleartext1.gotoAndStop(2);
soundController("dragSound");
soundController("winSound");
keyRemove();
} else {
duplicateMovieClip ("tryagaintext", "tryagaintext1", 9000);
tryagaintext1._x = eval (grid_arr[0][0])._x + ((eval (grid_arr[0][0])._width * rows) / 2);
tryagaintext1._y = eval (grid_arr[0][0])._y + ((eval (grid_arr[0][0])._height * cols) / 2);
tryagaintext1.gotoAndStop(2);
soundController("loseSound");
keyRemove();
}
}
function deactivateBlocks() {
i = 0;
while (i < grid_arr.length) {
eval (grid_arr[i][0]).gotoAndStop(grid_arr[i][1] add "3");
clipBorders(grid_arr[i][0]);
i++;
}
}
function arrayController(clipName, clipState, clipColor, action) {
switch (action) {
case "insert" :
if (dragging == "true") {
soundController("dragSound");
} else {
soundController("clickSound");
}
eval (previousClip).startpoint._visible = false;
history1 = history;
history_arr.push([clipName, clipColor]);
history_new.push([clipName]);
eval (clipName).arr_position = history_arr.length - 1;
break;
case "replace" :
history_arr[clipColor];
history_new[clipName];
break;
case "splice" :
remove = false;
arr_prefix = new Array();
arr_suffix = new Array();
group_arr = new Array();
group_arr2 = new Array();
clipname_arr = new Array();
clipname_arr2 = Array();
string1 = new Array();
string2 = new Array();
clipname_arr = clipName;
clipname_arr2 = clipColor;
prevNew = searchArray(history_new, previousClip);
prevArr = searchArray2(history_arr, previousClip);
curNew = searchArray(history_new, currentClip);
curArr = searchArray2(history_arr, currentClip);
arr_prefix = prefix(history_new, 0, curNew, 1);
arr_suffix = suffix(history_new, curNew, history_new.length, 1);
i = 0;
while (i < clipname_arr.length) {
group_arr.push([clipname_arr[i]]);
i++;
}
string1 = arr_prefix.concat(group_arr);
string2 = string1.concat(arr_suffix);
i = 0;
while (i < string2.length) {
eval (string2[i]).arr_position = i;
i++;
}
history_new = string2;
arr_prefix = prefix(history_arr, 0, curArr, 2);
arr_suffix = suffix(history_arr, curArr, history_arr.length, 2);
i = 0;
while (i < clipname_arr2.length) {
group_arr2.push([clipname_arr2[i][0], clipname_arr2[i][1]]);
i++;
}
string1 = arr_prefix.concat(group_arr2);
string2 = string1.concat(arr_suffix);
history_arr = string2;
previousClip = history_arr[history_arr.length - 2][0];
break;
case "remove" :
remove = true;
history = history1;
var k;
position = eval (clipName).arr_position;
k = Number(position + 1);
while (k <= history_arr.length) {
resetOutlines(history_arr[k][0]);
if (k < (history_arr.length - 2)) {
eval (history_arr[k - 1][0]).corners.topLeft._visible = true;
eval (history_arr[k - 1][0]).corners.topRight._visible = true;
eval (history_arr[k - 1][0]).corners.bottomLeft._visible = true;
eval (history_arr[k - 1][0]).corners.bottomRight._visible = true;
}
eval (history_arr[k][0]).outlines._visible = false;
eval (history_arr[k][0]).corners._visible = false;
checkWalls(history_arr[k][0], history_arr[k - 1][0]);
eval (history_arr[k][0]).startpoint._visible = false;
eval (history_arr[k][0]).flag = false;
k++;
}
history_arr.splice(position + 1);
history_new.splice(position + 1);
}
output_arr = sortData(history_new, clipName, "sortOn");
}
function checkWalls(clip, prevClip) {
if (eval (clip).topwall == false) {
eval (prevClip).outlines.bottom._visible = true;
eval (clip).topwall = true;
} else if (eval (clip).bottomwall == false) {
eval (prevClip).outlines.top._visible = true;
eval (clip).bottomwall = true;
} else if (eval (clip).rightwall == false) {
eval (prevClip).outlines.left._visible = true;
eval (clip).leftwall = true;
} else if (eval (clip).leftwall == false) {
eval (prevClip).outlines.right._visible = true;
eval (clip).rightwall = true;
}
}
function checkWallCorners(clip, prevClip) {
if (eval (clip).topLeftStatus == true) {
eval (clip).topLeft._visible = true;
} else if (eval (clip).bottomLeftStatus == true) {
eval (clip).bottomLeft._visible = true;
} else if (eval (clip).topRightStatus == true) {
eval (clip).topRight._visible = true;
} else if (eval (clip).bottomRightStatus == true) {
eval (clip).bottomRight._visible = true;
}
}
function resetOutlines(clipName) {
eval (clipName).corners.topLeft._visible = false;
eval (clipName).corners.topRight._visible = false;
eval (clipName).outlines.top._visible = true;
eval (clipName).outlines.bottom._visible = true;
eval (clipName).corners.bottomLeft._visible = false;
eval (clipName).corners.bottomRight._visible = false;
eval (clipName).outlines.right._visible = true;
eval (clipName).outlines.left._visible = true;
eval (clipName).topLeft._visible = false;
eval (clipName).topRight._visible = false;
eval (clipName).bottomLeft._visible = false;
eval (clipName).bottomRight._visible = false;
}
function prefix(arrayName, startPosition, endPosition, count) {
var _local1 = arrayName;
var _local2 = endPosition;
var _local3 = startPosition;
grab_arr = new Array();
if (count == 1) {
i = _local3;
while (i < _local2) {
grab_arr.push(_local1[i]);
i++;
}
} else if (count == 2) {
i = _local3;
while (i < _local2) {
grab_arr.push([_local1[i][0], _local1[i][1]]);
i++;
}
} else {
grab_arr = null;
}
return(grab_arr);
}
function suffix(arrayName, startPosition, endPosition, count) {
var _local1 = arrayName;
var _local2 = endPosition;
var _local3 = startPosition;
grab_arr2 = new Array();
if (count == 1) {
i = _local3;
while (i < _local2) {
grab_arr2.push(_local1[i]);
i++;
}
} else if (count == 2) {
i = _local3;
while (i < _local2) {
grab_arr2.push([_local1[i][0], _local1[i][1]]);
i++;
}
} else {
grab_arr2 = null;
}
return(grab_arr2);
}
function checkGrid(clipName, prevClip) {
currentLocation = splitArray(clipName);
prevLocation = splitArray(prevClip);
currentRow = eval (clipName).rownum;
currentCol = eval (clipName).colnum;
prevRow = eval (prevClip).rownum;
prevCol = eval (prevClip).colnum;
currentRowPos = eval (clipName).rowpos;
currentColPos = eval (clipName).colpos;
prevRowPos = eval (prevClip).rowpos;
prevColPos = eval (prevClip).colpos;
if (prevRow != currentRow) {
controlStatus = "diffrow";
}
if (prevCol != currentCol) {
controlStatus = "diffcol";
}
}
function outlineController(clipName, prevClip) {
function setLeft(clip, state) {
eval (clip).corners.topLeft._visible = state;
eval (clip).outlines.left._visible = state;
eval (clip).corners.bottomLeft._visible = state;
}
function setRight(clip, state) {
eval (clip).corners.topRight._visible = state;
eval (clip).outlines.right._visible = state;
eval (clip).corners.bottomRight._visible = state;
}
function setTop(clip, state) {
eval (clip).corners.topLeft._visible = state;
eval (clip).outlines.top._visible = state;
eval (clip).corners.topRight._visible = state;
}
function setBottom(clip, state) {
eval (clip).corners.bottomLeft._visible = state;
eval (clip).outlines.bottom._visible = state;
eval (clip).corners.bottomRight._visible = state;
}
function setWall(clip, wall, state) {
if (wall == "topwall") {
eval (clip).topwall = state;
} else if (wall == "bottomwall") {
eval (clip).bottomwall = state;
} else if (wall == "rightwall") {
eval (clip).rightwall = state;
} else if (wall == "leftwall") {
eval (clip).leftwall = state;
}
}
function setWallCorner(clip, corner, state) {
if (corner == "topLeft") {
eval (clip).topLeft._visible = state;
eval (clip).topLeftStatus = state;
} else if (corner == "bottomLeft") {
eval (clip).bottomLeft._visible = state;
eval (clip).bottomLeftStatus = state;
} else if (corner == "topRight") {
eval (clip).topRight._visible = state;
eval (clip).topRightStatus = state;
} else if (corner == "bottomRight") {
eval (clip).bottomRight._visible = state;
eval (clip).bottomRightStatus = state;
}
}
function setCorners(clip, corner, state) {
if (corner == "topLeft") {
eval (clip).corners.topLeft._visible = state;
} else if (corner == "topRight") {
eval (clip).corners.topRight._visible = state;
} else if (corner == "bottomLeft") {
eval (clip).corners.bottomLeft._visible = state;
} else if (corner == "bottomRight") {
eval (clip).corners.bottomRight._visible = state;
}
}
function setInbetween(clipName, prevClip, angle) {
function insertData(startPoint, endPoint, angle, count) {
temp_arr = new Array();
send_arr = new Array();
send_arr2 = new Array();
color_arr = new Array();
k = startPoint + 1;
while (k < endPoint) {
if (angle == "horizontal") {
eval (horiz_arr[k]).outlines._visible = true;
eval (horiz_arr[k]).corners._visible = true;
eval (horiz_arr[k]).flag = true;
eval (horiz_arr[k]).corners.topLeft._visible = false;
eval (horiz_arr[k]).outlines.left._visible = false;
eval (horiz_arr[k]).corners.bottomLeft._visible = false;
eval (horiz_arr[k]).corners.topRight._visible = false;
eval (horiz_arr[k]).outlines.right._visible = false;
eval (horiz_arr[k]).corners.bottomRight._visible = false;
temp_arr.push([horiz_arr[k]]);
color_arr.push([horiz_arr[k], eval (horiz_arr[k]).clipColor]);
} else if (angle == "vertical") {
eval (vert_arr[k]).outlines._visible = true;
eval (vert_arr[k]).corners._visible = true;
eval (vert_arr[k]).flag = true;
eval (vert_arr[k]).corners.topLeft._visible = false;
eval (vert_arr[k]).outlines.top._visible = false;
eval (vert_arr[k]).corners.bottomLeft._visible = false;
eval (vert_arr[k]).corners.topRight._visible = false;
eval (vert_arr[k]).outlines.bottom._visible = false;
eval (vert_arr[k]).corners.bottomRight._visible = false;
temp_arr.push([vert_arr[k]]);
color_arr.push([vert_arr[k], eval (vert_arr[k]).clipColor]);
}
k++;
}
if (count == "less") {
send_arr = temp_arr.reverse();
send_arr2 = color_arr.reverse();
} else {
send_arr = temp_arr;
send_arr2 = color_arr;
}
arrayController(send_arr, count, send_arr2, "splice");
}
k = 0;
colStartPoint = searchArray(vert_arr, prevClip);
colEndPoint = searchArray(vert_arr, clipName);
rowStartPoint = searchArray(horiz_arr, prevClip);
rowEndPoint = searchArray(horiz_arr, clipName);
if (remove == false) {
if ((colStartPoint != null) and (colEndPoint != null)) {
if (colEndPoint < colStartPoint) {
insertData(colEndPoint, colStartPoint, "vertical", "less");
} else if (colEndPoint > colStartPoint) {
insertData(colStartPoint, colEndPoint, "vertical", "greater");
}
} else if ((rowStartPoint != null) and (rowEndPoint != null)) {
if (rowEndPoint < rowStartPoint) {
insertData(rowEndPoint, rowStartPoint, "horizontal", "less");
} else if (rowEndPoint > rowStartPoint) {
insertData(rowStartPoint, rowEndPoint, "horizontal", "greater");
}
}
}
}
checkGrid(clipName, prevClip);
history1 = history;
if (currentLocation[0] == prevLocation[0]) {
if (currentLocation[1] < prevLocation[1]) {
if ((prevLocation[1] - currentLocation[1]) > loopLimit) {
_parent.loopCount = loopLimit;
} else {
_parent.loopCount = prevLocation[1] - currentLocation[1];
}
tumbler_mc.tumbler.gotoAndPlay("up");
history = "lesscol";
setBottom(clipName, false);
setInbetween(clipName, prevClip, "vertical");
setTop(prevClip, false);
if (history1 == "lessrow") {
setWallCorner(prevClip, "topRight", true);
} else if (history1 == "greaterrow") {
setWallCorner(prevClip, "topLeft", true);
}
setWall(clipName, "bottomwall", false);
} else if (currentLocation[1] > prevLocation[1]) {
if ((currentLocation[1] - prevLocation[1]) > loopLimit) {
_parent.loopCount = loopLimit;
} else {
_parent.loopCount = currentLocation[1] - prevLocation[1];
}
tumbler_mc.tumbler.gotoAndPlay("down");
history = "greatercol";
setTop(clipName, false);
setInbetween(clipName, prevClip, "vertical");
setBottom(prevClip, false);
if (history1 == "lessrow") {
setWallCorner(prevClip, "bottomRight", true);
} else if (history1 == "greaterrow") {
setWallCorner(prevClip, "bottomLeft", true);
}
setWall(clipName, "topwall", false);
}
return("freetomove");
}
if (currentLocation[1] == prevLocation[1]) {
if (currentLocation[0] < prevLocation[0]) {
if ((prevLocation[0] - currentLocation[0]) > loopLimit) {
_parent.loopCount = loopLimit;
} else {
_parent.loopCount = prevLocation[0] - currentLocation[0];
}
tumbler_mc.tumbler.gotoAndPlay("left");
history = "lessrow";
setRight(clipName, false);
setInbetween(clipName, prevClip, "horizontal");
setLeft(prevClip, false);
if (history1 == "lesscol") {
setWallCorner(prevClip, "bottomLeft", true);
} else if (history1 == "greatercol") {
setWallCorner(prevClip, "topLeft", true);
}
setWall(clipName, "rightwall", false);
} else if (currentLocation[0] > prevLocation[0]) {
if ((currentLocation[0] - prevLocation[0]) > loopLimit) {
_parent.loopCount = loopLimit;
} else {
_parent.loopCount = currentLocation[0] - prevLocation[0];
}
tumbler_mc.tumbler.gotoAndPlay("right");
history = "greaterrow";
setRight(prevClip, false);
setInbetween(clipName, prevClip, "horizontal");
setLeft(clipName, false);
if (history1 == "lesscol") {
setWallCorner(prevClip, "bottomRight", true);
} else if (history1 == "greatercol") {
setWallCorner(prevClip, "topRight", true);
}
setWall(clipName, "leftwall", false);
}
return("freetomove");
}
return("checkmate");
}
function splitArray(arr) {
var _local1 = arr;
_local1 = String(_local1);
splitdata = _local1.split(",");
return(splitdata);
}
function spliceArray(arrayName, splicePosition) {
var _local1 = arrayName;
var _local2 = splicePosition;
k = Number(_local2);
while (k < _local1.length) {
_local1.splice(_local2, 2, _local1[k]);
k++;
}
}
function searchArray(whichArray, searchElement) {
var _local1 = whichArray;
var _local2 = searchElement;
g = 0;
while (g < _local1.length) {
if (_local2 eq _local1[g]) {
return(g);
}
g++;
}
return(null);
}
function searchArray2(whichArray, searchElement) {
var _local1 = whichArray;
var _local2 = searchElement;
g = 0;
while (g < _local1.length) {
if (_local2 eq _local1[g][0]) {
return(g);
}
g++;
}
return(null);
}
function sortData(arr_name, args, sortOption) {
if (sortOption == "sortOn") {
return(arr_name.sortOn(args));
}
}
function soundController(soundName) {
var _local2 = 200;
var minVolume = 0;
var _local1 = new Sound(this);
_local1.setVolume(_local2);
_local1.attachSound(soundName);
_local1.start();
}
function keyMake() {
keyboard = new Object();
keyboard.onKeyDown = function () {
input = Key.getCode();
typing = "true";
if (input == 37) {
keyController("left");
}
if (input == 38) {
keyController("up");
}
if (input == 39) {
keyController("right");
}
if (input == 40) {
keyController("down");
}
if (input == 13) {
endGame();
remove = true;
soundController("endgameSound");
stopDrag();
}
};
Key.addListener(keyboard);
}
function keyRemove() {
Key.removeListener(keyboard);
}
function checkFlags(angle) {
if (angle == "down") {
if (eval (colPosDown).flag == true) {
return(true);
}
return(false);
}
if (angle == "up") {
if (eval (colPosUp).flag == true) {
return(true);
}
return(false);
}
if (angle == "left") {
if (eval (rowPosLeft).flag == true) {
return(true);
}
return(false);
}
if (angle == "right") {
if (eval (rowPosRight).flag == true) {
return(true);
}
return(false);
}
}
function renderController(clip, prevClip, type) {
function renderDrag() {
newendX = eval (clip)._x + (eval (clip)._width / 2);
newendY = eval (clip)._y + (eval (clip)._height / 2);
newdistX = draggable_mc._x - newendX;
newdistY = draggable_mc._y - newendY;
snap_x = newendX;
snap_y = newendY;
dragController(clip, eval (clip).row_arr, eval (clip).col_arr);
if (eval (clip).flag != true) {
remove = false;
arrayController(clip, "on", eval (clip).clipColor, "insert");
eval (clip).outlines._visible = true;
eval (clip).corners._visible = true;
eval (clip).startpoint._visible = true;
eval (clip).flag = true;
outlineController(clip, prevClip);
} else {
remove = true;
arrayController(clip, "off", eval (clip).clipColor, "remove");
eval (clip).startpoint._visible = true;
eval (clip).flag = true;
}
}
horiz_arr = eval (clip).row_arr;
vert_arr = eval (clip).col_arr;
horiz = eval (clip).row;
vert = eval (clip).col;
rowss = eval (clip).rownum;
colss = eval (clip).colnum;
rowPos = searchArray(horiz_arr, clip);
colPos = searchArray(vert_arr, clip);
rowPosPrev = searchArray(horiz_arr, prevClip);
colPosPrev = searchArray(vert_arr, prevClip);
rowPosRight = horiz_arr[rowPos + 1];
rowPosLeft = horiz_arr[rowPos - 1];
colPosDown = vert_arr[colPos + 1];
colPosUp = vert_arr[colPos - 1];
historyPos = searchArray(history_new, prevClip);
pathHistory = history_new[historyPos];
if (checkFlags("down") != true) {
flagDown = false;
}
if (checkFlags("up") != true) {
flagUp = false;
}
if (checkFlags("left") != true) {
flagLeft = false;
}
if (checkFlags("right") != true) {
flagRight = false;
}
if ((eval (clip).flag == false) or (eval (prevClip).flag == true)) {
if (pathHistory == "") {
render();
} else if ((searchArray(horiz_arr, pathHistory) != null) or (searchArray(vert_arr, pathHistory) != null)) {
if (history_new[history_new.length - 1] eq prevClip) {
if (eval (clip).flag == false) {
if (dragging == "true") {
renderDrag();
} else if (type == "click") {
renderClick();
}
} else if ((eval (clip).flag == true) and (clip eq history_new[history_new.length - 2])) {
if (dragging == "true") {
renderDrag();
} else if (type == "click") {
renderClick();
}
}
} else {
eval (history_new[history_new.length - 1]).startpoint._visible = true;
}
}
}
}
function clickCheck(clip, prevClip) {
function checkRow(startPoint, endPoint, position) {
if (position == "greater") {
i = startPoint + 1;
while (i <= endPoint) {
if (eval (horiz_arr2[i]).flag == true) {
return(true);
}
i++;
}
return(false);
}
if (position == "less") {
i = startPoint + 1;
while (i < endPoint) {
if (eval (horiz_arr2[i]).flag == true) {
return(true);
}
i++;
}
return(false);
}
}
function checkColumn(startPoint, endPoint, position) {
if (position == "greater") {
i = startPoint + 1;
while (i <= endPoint) {
if (eval (vert_arr2[i]).flag == true) {
return(true);
}
i++;
}
return(false);
}
if (position == "less") {
i = startPoint + 1;
while (i < endPoint) {
if (eval (vert_arr2[i]).flag == true) {
return(true);
}
i++;
}
}
return(false);
}
horiz_arr = eval (clip).row_arr;
vert_arr = eval (clip).col_arr;
historyPos = searchArray(history_new, prevClip);
pathHistory = history_new[historyPos];
rowPos = searchArray(horiz_arr, clip);
colPos = searchArray(vert_arr, clip);
rowPosPrev = searchArray(horiz_arr, prevClip);
colPosPrev = searchArray(vert_arr, prevClip);
horiz_arr2 = eval (clip).row_arr;
vert_arr2 = eval (clip).col_arr;
checkGrid(clip, prevClip);
if (eval (clip).flag == false) {
if ((pathHistory == undefined) and (startgame != true)) {
return(false);
}
if (currentLocation[0] == prevLocation[0]) {
if (currentLocation[1] < prevLocation[1]) {
if (colPosPrev > colPos) {
if (checkColumn(colPos, colPosPrev, "less") == false) {
return(false);
}
return(true);
}
} else if (currentLocation[1] > prevLocation[1]) {
if (colPosPrev < colPos) {
if (checkColumn(colPosPrev, colPos, "greater") == false) {
return(false);
}
return(true);
}
} else {
return(true);
}
} else if (currentLocation[1] == prevLocation[1]) {
if (currentLocation[0] < prevLocation[0]) {
if (rowPosPrev > rowPos) {
if (checkRow(rowPos, rowPosPrev, "less") == false) {
return(false);
}
return(true);
}
} else if (currentLocation[0] > prevLocation[0]) {
if (rowPosPrev < rowPos) {
if (checkRow(rowPosPrev, rowPos, "greater") == false) {
return(false);
}
return(true);
}
} else {
return(true);
}
} else {
return(true);
}
} else {
return(false);
}
}
function keyController(args) {
if (startgame == true) {
previousClip = currentClip;
horiz_arr = eval (currentClip).row_arr;
vert_arr = eval (currentClip).col_arr;
horiz = eval (currentClip).row;
vert = eval (currentClip).col;
rowss = eval (currentClip).rownum;
colss = eval (currentClip).colnum;
rowPos = searchArray(horiz_arr, currentClip);
colPos = searchArray(vert_arr, currentClip);
rowPosRight = horiz_arr[rowPos + 1];
rowPosLeft = horiz_arr[rowPos - 1];
colPosDown = vert_arr[colPos + 1];
colPosUp = vert_arr[colPos - 1];
historyPos = searchArray(history_new, previousClip);
pathHistory = history_new[historyPos];
if (args == "down") {
if (pathHistory == "") {
currentClip = colPosDown;
} else if (eval (colPosDown).flag == true) {
if ((colPosDown != vert_arr[-1]) and (colPosDown eq history_new[history_new.length - 2])) {
currentClip = colPosDown;
}
} else if ((colPosDown != vert_arr[-1]) and (checkFlags("down") != true)) {
currentClip = colPosDown;
}
} else if (args == "up") {
if (pathHistory == "") {
currentClip = colPosUp;
} else if (eval (colPosUp).flag == true) {
if ((colPosUp != vert_arr[vert_arr.length]) and (colPosUp eq history_new[history_new.length - 2])) {
currentClip = colPosUp;
}
} else if ((colPosUp != vert_arr[vert_arr.length]) and (checkFlags("up") != true)) {
currentClip = colPosUp;
}
} else if (args == "left") {
if (pathHistory == "") {
currentClip = rowPosLeft;
} else if (eval (rowPosLeft).flag == true) {
if ((rowPosLeft != horiz_arr[-1]) and (rowPosLeft eq history_new[history_new.length - 2])) {
currentClip = rowPosLeft;
}
} else if ((rowPosLeft != horiz_arr[-1]) and (checkFlags("left") != true)) {
currentClip = rowPosLeft;
}
} else if (args == "right") {
if (pathHistory == "") {
currentClip = rowPosRight;
} else if (eval (rowPosRight).flag == true) {
if ((rowPosRight != horiz_arr[horiz_arr.length]) and (rowPosRight eq history_new[history_new.length - 2])) {
currentClip = rowPosRight;
}
} else if ((rowPosRight != horiz_arr[horiz_arr.length]) and (checkFlags("right") != true)) {
currentClip = rowPosRight;
}
}
if (currentClip != "") {
newendX = eval (currentClip)._x + (eval (currentClip)._width / 2);
newendY = eval (currentClip)._y + (eval (currentClip)._height / 2);
newdistX = draggable_mc._x - newendX;
newdistY = draggable_mc._y - newendY;
snap_x = newendX;
snap_y = newendY;
endX = eval (currentClip)._x + (eval (currentClip._width) / 2);
endY = eval (currentClip)._y + (eval (currentClip._height) / 2);
distX = draggable_mc._x - endX;
distY = draggable_mc._y - endY;
snapx = endX;
snapy = endY;
tumbler_mc.end_x = endX;
tumbler_mc.end_y = endY;
dragController(eval (currentClip).clipName, horiz_arr, vert_arr);
if (eval (currentClip).flag != true) {
arrayController(eval (currentClip).clipName, "on", eval (currentClip).clipColor, "insert");
eval (currentClip).outlines._visible = true;
eval (currentClip).corners._visible = true;
eval (currentClip).startpoint._visible = true;
eval (previousClip).startpoint._visible = false;
eval (currentClip).flag = true;
slideTumbler = true;
slideController.gotoAndPlay(2);
outlineController(eval (currentClip).clipName, previousClip);
} else {
arrayController(eval (currentClip).clipName, "off", eval (currentClip).clipColor, "remove");
eval (currentClip).startpoint._visible = true;
draggable_mc._x = endX;
draggable_mc._y = endY;
tumbler_mc._x = endX;
tumbler_mc._y = endY;
eval (currentClip).flag = true;
}
}
}
}
function Row(args) {
this.coordsX = args;
}
function Column(args) {
this.coordsY = args;
}
function setBorders(clipName, border) {
border_arr = new Array("top", "bottom", "left", "right", "topLeft", "topRight", "bottomLeft", "bottomRight");
i = 0;
while (i < border_arr.length) {
if (border_arr[i] != border) {
eval (clipName).borders.border_arr[i]._visible = false;
} else {
eval (clipName).borders.border_arr[i]._visible = true;
}
i++;
}
}
function dragAlign(dragBtn) {
left = eval (grid_arr[0][0])._x + (eval (grid_arr[0][0])._width / 2);
top = eval (grid_arr[0][0])._y + (eval (grid_arr[0][0])._height / 2);
right = eval (grid_arr[grid_arr.length - 1][0])._x + (eval (grid_arr[grid_arr.length - 1][0])._width / 2);
bottom = eval (grid_arr[grid_arr.length - 1][0])._y + (eval (grid_arr[0][0])._height / 2);
dragBtn._parent.startDrag(null, Math.round(left), Math.round(top), Math.round(right), Math.round(bottom));
}
function dragController(clipName, clip_row, clip_column) {
left_pos = eval (clip_row[0])._x;
right_pos = eval (clip_row[clip_row.length - 1])._x;
top_pos = eval (clip_row[0])._y;
bottom_pos = eval (clip_row[0])._y;
}
function dragTest(clipName) {
if (eval (clipName).hitTest((draggable_mc._x + (draggable_mc._width / 2)) + (eval ("_parent.puzzle" add _parent.activeClip)._x - (draggable_mc._width / 2)), (draggable_mc._y + (draggable_mc._height / 2)) + (eval ("_parent.puzzle" add _parent.activeClip)._y - (draggable_mc._height / 2)), true)) {
return(true);
}
}
var rows = eval (("_parent." add this._name) add "_rows");
var cols = eval (("_parent." add this._name) add "_cols");
var arrs = eval (("_parent." add this._name) add "_arrs");
var total = (rows * cols);
var currentClip;
var previousClip;
var slideTumbler = false;
var spacing = 2.2;
var grid_arr = new Array();
var history_arr = new Array();
var history_new = new Array();
var temp_color = new Array();
var snaparea = 5;
var loopLimit = 3;
var floatSpacing = 30;
menu._x = squareObj._x - floatSpacing;
menu._y = squareObj._y;
reset._x = squareObj._x - floatSpacing;
reset._y = ((squareObj._height * cols) - (reset._height * 2)) + 11;
squareObj._visible = false;
drag._visible = false;
cleartext._visible = false;
tryagaintext._visible = false;
choose._visible = false;
startgame = false;
var layout = Math.floor((Math.random() * Number(arrs)) + 1);
var grid_arr = eval ((("_parent." add this._name) add "_arr") add layout);
var grid_endarrlight = eval (("_parent." add this._name) add "_endarrlight");
var grid_endarrdark = eval (("_parent." add this._name) add "_endarrdark");
buildGrid();
displayMenu();
draggable_mc.drag_btn.onPress = function () {
dragAlign(this);
dragging = "true";
typing = "false";
};
draggable_mc.drag_btn.onRelease = function () {
this._parent.stopDrag();
this._parent._x = snap_x;
this._parent._y = snap_y;
currentClip = history_arr[history_arr.length - 1][0];
eval (history_arr[history_arr.length - 1][0]).startpoint._visible = true;
tumbler_mc.tumbler.gotoAndPlay("fade");
dragging = "false";
};
keyMake();
Array.prototype.moveElement = function (from, to) {
var _local1 = this[from];
myArray.splice(from, 1);
myArray.splice(to, 0, _local1);
};
Row.prototype.toString = function () {
return(this.coordsX);
};
Column.prototype.toString = function () {
return(this.coordsY);
};
movieClip.prototype.hitCheck = function (clip, startpoint, endpoint) {
var velx = startpoint;
var _local3 = endpoint;
var _local1 = new Object();
var hit = 0;
if (hitTest(clip)) {
var _local2 = 0;
while (_local2 < endpoint) {
_local1.x = 0;
_local1.y = 0;
this["point" + _local2].localToGlobal(_local1);
if (clip.hitTest(_local1.x + velx, _local1.y + _local3, 1)) {
hit++;
xmain = _local1.x + velx;
ymain = _local1.y + _local3;
}
_local2++;
}
}
return(hit);
};
stop();
Instance of Symbol 110 MovieClip "drag" in Symbol 186 MovieClip Frame 1
onClipEvent (mouseMove) {
if (_parent.dragging != "true") {
if ((((this._x > (_parent.snapx - _parent.snaparea)) && (this._x < (_parent.snapx + _parent.snaparea))) && (this._y > (_parent.snapy - _parent.snaparea))) && (this._y < (_parent.snapy + _parent.snaparea))) {
this._x = _parent.snapx;
this._y = _parent.snapy;
eval (_parent.currentClip).startpoint._visible = true;
}
}
}
onClipEvent (enterFrame) {
if (this._name == "tumbler_mc") {
speed = 5;
if (_parent.typing == "true") {
posX = this._x + _parent.spacing;
posY = this._y + _parent.spacing;
} else {
posX = this._x;
posY = this._y;
}
if (_parent.dragging == "true") {
end_x = _parent.newendX;
end_y = _parent.newendY;
} else if ((((this._x > (_parent.snapx - _parent.snaparea)) && (this._x < (_parent.snapx + _parent.snaparea))) && (this._y > (_parent.snapy - _parent.snaparea))) && (this._y < (_parent.snapy + _parent.snaparea))) {
end_x = _parent.endX;
end_y = _parent.endY;
this._x = _parent.snapx;
this._y = _parent.snapy;
}
diffX = posX - end_x;
diffY = posY - end_y;
moveX = diffX / speed;
moveY = diffY / speed;
if ((((Number(diffX) < 0.001) and (Number(diffX) > -0.001)) and (Number(diffY) < 0.001)) and (Number(diffY) > -0.001)) {
_parent.slideTumbler = false;
this._x = end_x;
this._y = end_y;
} else {
this._x = posX - moveX;
this._y = posY - moveY;
}
updateAfterEvent();
}
}
Instance of Symbol 41 MovieClip [square] "squareObj" in Symbol 186 MovieClip Frame 1
onClipEvent (load) {
this.flag = false;
}
onClipEvent (mouseMove) {
if (_parent.dragTest(this.clipName) == true) {
if (touched != true) {
if (_parent.dragging == "true") {
_parent.previousClip = _parent.currentClip;
_parent.currentClip = this.clipName;
_parent.horiz_arr = this.row_arr;
_parent.vert_arr = this.col_arr;
_parent.horiz = this.row;
_parent.vert = this.col;
_parent.rowss = this.rownum;
_parent.colss = this.colnum;
_parent.renderController(this.clipName, _parent.previousClip, "drag");
}
touched = true;
}
} else {
if (_parent.dragging == "true") {
startpoint._visible = false;
} else if (touched == true) {
startpoint._visible = false;
}
touched = false;
}
touched = false;
}
Instance of Symbol 111 MovieClip "slideController" in Symbol 186 MovieClip Frame 1
onClipEvent (load) {
speed = 4.5;
}