Frame 1
var so = SharedObject.getLocal("temp");
var inf = new Object();
inf.flag = "inf";
inf.levels = new Array(0, 0, 0, 0, 0, 0, 0, 0);
if (so.data.content.flag == "inf") {
i = 0;
while (i < 8) {
inf.levels[i] = so.data.content.levels[i];
i++;
}
}
trace(so.data.content.levels);
Frame 2
var data_xml = new XML();
var _game = data_xml.createElement("GAME");
data_xml.appendChild(_game);
var level1 = data_xml.createElement("LEVEL");
_game.appendChild(level1);
level1.attributes.NAME = "K1";
var bear1 = data_xml.createElement("BEAR");
level1.appendChild(bear1);
bear1.attributes.X = "16";
bear1.attributes.Y = "6";
var exit1 = data_xml.createElement("EXIT");
level1.appendChild(exit1);
exit1.attributes.X = "2";
exit1.attributes.Y = "4";
var line1_1 = data_xml.createElement("LINE");
level1.appendChild(line1_1);
line1_1.attributes.Y = "1";
line1_1.attributes.X9 = "wall";
line1_1.attributes.X10 = "wall";
var line1_2 = data_xml.createElement("LINE");
level1.appendChild(line1_2);
line1_2.attributes.Y = "2";
line1_2.attributes.X7 = "block";
line1_2.attributes.X8 = "block";
line1_2.attributes.X9 = "block";
line1_2.attributes.X10 = "block";
line1_2.attributes.X11 = "block";
line1_2.attributes.X12 = "block";
var line1_3 = data_xml.createElement("LINE");
level1.appendChild(line1_3);
line1_3.attributes.Y = "3";
line1_3.attributes.X6 = "block";
line1_3.attributes.X7 = "block";
line1_3.attributes.X8 = "block";
line1_3.attributes.X9 = "block";
line1_3.attributes.X10 = "block";
line1_3.attributes.X11 = "block";
line1_3.attributes.X12 = "block";
line1_3.attributes.X13 = "block";
var line1_4 = data_xml.createElement("LINE");
level1.appendChild(line1_4);
line1_4.attributes.Y = "4";
line1_4.attributes.X2 = "ice_closed";
line1_4.attributes.X3 = "block";
line1_4.attributes.X7 = "block";
line1_4.attributes.X8 = "broken";
line1_4.attributes.X9 = "broken";
line1_4.attributes.X10 = "broken";
line1_4.attributes.X11 = "broken";
line1_4.attributes.X12 = "block";
var line1_5 = data_xml.createElement("LINE");
level1.appendChild(line1_5);
line1_5.attributes.Y = "5";
line1_5.attributes.X3 = "block";
line1_5.attributes.X4 = "block";
line1_5.attributes.X6 = "block";
line1_5.attributes.X7 = "block";
line1_5.attributes.X8 = "block";
line1_5.attributes.X9 = "block";
line1_5.attributes.X10 = "block";
line1_5.attributes.X11 = "block";
line1_5.attributes.X12 = "block";
line1_5.attributes.X13 = "block";
line1_5.attributes.X14 = "block";
line1_5.attributes.X15 = "block";
line1_5.attributes.X16 = "block";
var line1_6 = data_xml.createElement("LINE");
level1.appendChild(line1_6);
line1_6.attributes.Y = "6";
line1_6.attributes.X4 = "block";
line1_6.attributes.X5 = "block";
line1_6.attributes.X6 = "block";
line1_6.attributes.X7 = "block";
line1_6.attributes.X8 = "block";
line1_6.attributes.X9 = "block";
line1_6.attributes.X10 = "block";
line1_6.attributes.X11 = "block";
line1_6.attributes.X12 = "block";
line1_6.attributes.X13 = "block";
line1_6.attributes.X16 = "block_up";
var line1_7 = data_xml.createElement("LINE");
level1.appendChild(line1_7);
line1_7.attributes.Y = "7";
line1_7.attributes.X5 = "block";
line1_7.attributes.X6 = "block";
line1_7.attributes.X7 = "block";
line1_7.attributes.X8 = "block";
line1_7.attributes.X9 = "block";
line1_7.attributes.X10 = "block";
line1_7.attributes.X11 = "block";
line1_7.attributes.X12 = "block";
line1_7.attributes.X13 = "block";
line1_7.attributes.X16 = "block";
var line1_8 = data_xml.createElement("LINE");
level1.appendChild(line1_8);
line1_8.attributes.Y = "8";
line1_8.attributes.X6 = "block";
line1_8.attributes.X7 = "block";
line1_8.attributes.X8 = "block";
line1_8.attributes.X9 = "block";
line1_8.attributes.X10 = "block";
line1_8.attributes.X11 = "block";
line1_8.attributes.X12 = "block";
line1_8.attributes.X13 = "block";
line1_8.attributes.X14 = "block";
line1_8.attributes.X15 = "block";
var line1_9 = data_xml.createElement("LINE");
level1.appendChild(line1_9);
line1_9.attributes.Y = "9";
line1_9.attributes.X6 = "block";
line1_9.attributes.X7 = "block";
line1_9.attributes.X8 = "block";
line1_9.attributes.X9 = "block";
line1_9.attributes.X10 = "block";
line1_9.attributes.X11 = "block";
line1_9.attributes.X12 = "block";
line1_9.attributes.X13 = "block";
var line1_10 = data_xml.createElement("LINE");
level1.appendChild(line1_10);
line1_10.attributes.Y = "10";
line1_10.attributes.X7 = "block";
line1_10.attributes.X8 = "block";
line1_10.attributes.X9 = "block";
line1_10.attributes.X10 = "block";
line1_10.attributes.X11 = "block";
line1_10.attributes.X12 = "block";
var line1_11 = data_xml.createElement("LINE");
level1.appendChild(line1_11);
line1_11.attributes.Y = "11";
line1_11.attributes.X6 = "wall";
line1_11.attributes.X7 = "wall";
line1_11.attributes.X8 = "wall";
line1_11.attributes.X9 = "wall";
line1_11.attributes.X10 = "wall";
line1_11.attributes.X11 = "wall";
line1_11.attributes.X12 = "wall";
line1_11.attributes.X13 = "wall";
var fruit1_1 = data_xml.createElement("FRUIT");
level1.appendChild(fruit1_1);
fruit1_1.attributes.Y = "2";
fruit1_1.attributes.X7 = "grape";
fruit1_1.attributes.X8 = "grape";
fruit1_1.attributes.X9 = "grape";
fruit1_1.attributes.X10 = "grape";
fruit1_1.attributes.X11 = "grape";
fruit1_1.attributes.X12 = "grape";
var fruit1_2 = data_xml.createElement("FRUIT");
level1.appendChild(fruit1_2);
fruit1_2.attributes.Y = "3";
fruit1_2.attributes.X6 = "grape";
fruit1_2.attributes.X7 = "grape";
fruit1_2.attributes.X8 = "grape";
fruit1_2.attributes.X9 = "grape";
fruit1_2.attributes.X10 = "grape";
fruit1_2.attributes.X11 = "grape";
fruit1_2.attributes.X12 = "grape";
fruit1_2.attributes.X13 = "grape";
var fruit1_3 = data_xml.createElement("FRUIT");
level1.appendChild(fruit1_3);
fruit1_3.attributes.Y = "4";
fruit1_3.attributes.X7 = "strawberry";
fruit1_3.attributes.X12 = "strawberry";
var fruit1_4 = data_xml.createElement("FRUIT");
level1.appendChild(fruit1_4);
fruit1_4.attributes.Y = "6";
fruit1_4.attributes.X6 = "apple";
fruit1_4.attributes.X7 = "banana";
fruit1_4.attributes.X8 = "apple";
fruit1_4.attributes.X9 = "banana";
fruit1_4.attributes.X10 = "apple";
fruit1_4.attributes.X11 = "banana";
fruit1_4.attributes.X12 = "apple";
fruit1_4.attributes.X13 = "banana";
var fruit1_5 = data_xml.createElement("FRUIT");
level1.appendChild(fruit1_5);
fruit1_5.attributes.Y = "8";
fruit1_5.attributes.X6 = "banana";
fruit1_5.attributes.X7 = "apple";
fruit1_5.attributes.X8 = "banana";
fruit1_5.attributes.X9 = "apple";
fruit1_5.attributes.X10 = "banana";
fruit1_5.attributes.X11 = "apple";
fruit1_5.attributes.X12 = "banana";
fruit1_5.attributes.X13 = "apple";
var fruit1_6 = data_xml.createElement("FRUIT");
level1.appendChild(fruit1_6);
fruit1_6.attributes.Y = "10";
fruit1_6.attributes.X7 = "cherry";
fruit1_6.attributes.X8 = "cherry";
fruit1_6.attributes.X9 = "cherry";
fruit1_6.attributes.X10 = "cherry";
fruit1_6.attributes.X11 = "cherry";
fruit1_6.attributes.X12 = "cherry";
var level2 = data_xml.createElement("LEVEL");
_game.appendChild(level2);
level2.attributes.NAME = "K2";
var bear2 = data_xml.createElement("BEAR");
level2.appendChild(bear2);
bear2.attributes.X = "9";
bear2.attributes.Y = "8";
var exit2 = data_xml.createElement("EXIT");
level2.appendChild(exit2);
exit2.attributes.X = "9";
exit2.attributes.Y = "6";
var line2_1 = data_xml.createElement("LINE");
level2.appendChild(line2_1);
line2_1.attributes.Y = "1";
line2_1.attributes.X6 = "wall";
line2_1.attributes.X7 = "wall";
line2_1.attributes.X8 = "wall";
line2_1.attributes.X9 = "wall";
line2_1.attributes.X10 = "wall";
line2_1.attributes.X11 = "wall";
line2_1.attributes.X12 = "wall";
var line2_2 = data_xml.createElement("LINE");
level2.appendChild(line2_2);
line2_2.attributes.Y = "2";
line2_2.attributes.X4 = "wall";
line2_2.attributes.X5 = "wall";
line2_2.attributes.X6 = "wall";
line2_2.attributes.X7 = "wall";
line2_2.attributes.X8 = "wall";
line2_2.attributes.X9 = "wall";
line2_2.attributes.X10 = "wall";
line2_2.attributes.X11 = "wall";
line2_2.attributes.X12 = "wall";
line2_2.attributes.X13 = "wall";
line2_2.attributes.X14 = "wall";
var line2_3 = data_xml.createElement("LINE");
level2.appendChild(line2_3);
line2_3.attributes.Y = "3";
line2_3.attributes.X3 = "block";
line2_3.attributes.X4 = "block";
line2_3.attributes.X5 = "block";
line2_3.attributes.X6 = "block";
line2_3.attributes.X7 = "block";
line2_3.attributes.X8 = "block";
line2_3.attributes.X9 = "block";
line2_3.attributes.X10 = "block";
line2_3.attributes.X11 = "block";
line2_3.attributes.X12 = "block";
line2_3.attributes.X13 = "block";
line2_3.attributes.X14 = "block";
line2_3.attributes.X15 = "block";
var line2_4 = data_xml.createElement("LINE");
level2.appendChild(line2_4);
line2_4.attributes.Y = "4";
line2_4.attributes.X2 = "block";
line2_4.attributes.X3 = "block";
line2_4.attributes.X4 = "block";
line2_4.attributes.X5 = "block";
line2_4.attributes.X7 = "block";
line2_4.attributes.X8 = "block";
line2_4.attributes.X9 = "block";
line2_4.attributes.X10 = "block";
line2_4.attributes.X11 = "block";
line2_4.attributes.X13 = "block";
line2_4.attributes.X14 = "block";
line2_4.attributes.X15 = "block";
line2_4.attributes.X16 = "block";
var line2_5 = data_xml.createElement("LINE");
level2.appendChild(line2_5);
line2_5.attributes.Y = "5";
line2_5.attributes.X2 = "block";
line2_5.attributes.X3 = "block";
line2_5.attributes.X4 = "block";
line2_5.attributes.X5 = "block";
line2_5.attributes.X7 = "block";
line2_5.attributes.X8 = "block";
line2_5.attributes.X9 = "block";
line2_5.attributes.X10 = "block";
line2_5.attributes.X11 = "block";
line2_5.attributes.X13 = "block";
line2_5.attributes.X14 = "block";
line2_5.attributes.X15 = "block";
line2_5.attributes.X16 = "block";
var line2_6 = data_xml.createElement("LINE");
level2.appendChild(line2_6);
line2_6.attributes.Y = "6";
line2_6.attributes.X2 = "block";
line2_6.attributes.X3 = "block";
line2_6.attributes.X4 = "block";
line2_6.attributes.X5 = "block";
line2_6.attributes.X6 = "block";
line2_6.attributes.X7 = "block";
line2_6.attributes.X8 = "block";
line2_6.attributes.X9 = "ice_closed";
line2_6.attributes.X10 = "block";
line2_6.attributes.X11 = "block";
line2_6.attributes.X12 = "block";
line2_6.attributes.X13 = "block";
line2_6.attributes.X14 = "block";
line2_6.attributes.X15 = "block";
line2_6.attributes.X16 = "block";
var line2_7 = data_xml.createElement("LINE");
level2.appendChild(line2_7);
line2_7.attributes.Y = "7";
line2_7.attributes.X2 = "block";
line2_7.attributes.X3 = "block";
line2_7.attributes.X4 = "broken";
line2_7.attributes.X5 = "block";
line2_7.attributes.X6 = "block";
line2_7.attributes.X7 = "block";
line2_7.attributes.X8 = "block";
line2_7.attributes.X9 = "block";
line2_7.attributes.X10 = "block";
line2_7.attributes.X11 = "block";
line2_7.attributes.X12 = "block";
line2_7.attributes.X13 = "block";
line2_7.attributes.X14 = "broken";
line2_7.attributes.X15 = "block";
line2_7.attributes.X16 = "block";
var line2_8 = data_xml.createElement("LINE");
level2.appendChild(line2_8);
line2_8.attributes.Y = "8";
line2_8.attributes.X2 = "block";
line2_8.attributes.X3 = "block";
line2_8.attributes.X4 = "block";
line2_8.attributes.X5 = "broken";
line2_8.attributes.X6 = "broken";
line2_8.attributes.X7 = "block";
line2_8.attributes.X8 = "block";
line2_8.attributes.X9 = "block_up";
line2_8.attributes.X10 = "block";
line2_8.attributes.X11 = "block";
line2_8.attributes.X12 = "broken";
line2_8.attributes.X13 = "broken";
line2_8.attributes.X14 = "block";
line2_8.attributes.X15 = "block";
line2_8.attributes.X16 = "block";
var line2_9 = data_xml.createElement("LINE");
level2.appendChild(line2_9);
line2_9.attributes.Y = "9";
line2_9.attributes.X3 = "block";
line2_9.attributes.X4 = "block";
line2_9.attributes.X5 = "block";
line2_9.attributes.X6 = "block";
line2_9.attributes.X7 = "broken";
line2_9.attributes.X8 = "broken";
line2_9.attributes.X9 = "broken";
line2_9.attributes.X10 = "broken";
line2_9.attributes.X11 = "broken";
line2_9.attributes.X12 = "block";
line2_9.attributes.X13 = "block";
line2_9.attributes.X14 = "block";
line2_9.attributes.X15 = "block";
var line2_10 = data_xml.createElement("LINE");
level2.appendChild(line2_10);
line2_10.attributes.Y = "10";
line2_10.attributes.X4 = "block";
line2_10.attributes.X5 = "block";
line2_10.attributes.X6 = "block";
line2_10.attributes.X7 = "block";
line2_10.attributes.X8 = "block";
line2_10.attributes.X9 = "block";
line2_10.attributes.X10 = "block";
line2_10.attributes.X11 = "block";
line2_10.attributes.X12 = "block";
line2_10.attributes.X13 = "block";
line2_10.attributes.X14 = "block";
var line2_11 = data_xml.createElement("LINE");
level2.appendChild(line2_11);
line2_11.attributes.Y = "11";
line2_11.attributes.X6 = "block";
line2_11.attributes.X7 = "block";
line2_11.attributes.X8 = "block";
line2_11.attributes.X9 = "block";
line2_11.attributes.X10 = "block";
line2_11.attributes.X11 = "block";
line2_11.attributes.X12 = "block";
var fruit2_1 = data_xml.createElement("FRUIT");
level2.appendChild(fruit2_1);
fruit2_1.attributes.Y = "3";
fruit2_1.attributes.X3 = "apple";
fruit2_1.attributes.X5 = "grape";
fruit2_1.attributes.X6 = "grape";
fruit2_1.attributes.X7 = "grape";
fruit2_1.attributes.X11 = "grape";
fruit2_1.attributes.X12 = "grape";
fruit2_1.attributes.X13 = "grape";
fruit2_1.attributes.X15 = "banana";
var fruit2_2 = data_xml.createElement("FRUIT");
level2.appendChild(fruit2_2);
fruit2_2.attributes.Y = "4";
fruit2_2.attributes.X2 = "apple";
fruit2_2.attributes.X4 = "banana";
fruit2_2.attributes.X14 = "banana";
fruit2_2.attributes.X16 = "cherry";
var fruit2_3 = data_xml.createElement("FRUIT");
level2.appendChild(fruit2_3);
fruit2_3.attributes.Y = "5";
fruit2_3.attributes.X2 = "apple";
fruit2_3.attributes.X16 = "cherry";
var fruit2_4 = data_xml.createElement("FRUIT");
level2.appendChild(fruit2_4);
fruit2_4.attributes.Y = "6";
fruit2_4.attributes.X2 = "strawberry";
fruit2_4.attributes.X16 = "cherry";
var fruit2_5 = data_xml.createElement("FRUIT");
level2.appendChild(fruit2_5);
fruit2_5.attributes.Y = "7";
fruit2_5.attributes.X2 = "strawberry";
fruit2_5.attributes.X16 = "strawberry";
var fruit2_6 = data_xml.createElement("FRUIT");
level2.appendChild(fruit2_6);
fruit2_6.attributes.Y = "8";
fruit2_6.attributes.X2 = "strawberry";
fruit2_6.attributes.X16 = "strawberry";
var fruit2_7 = data_xml.createElement("FRUIT");
level2.appendChild(fruit2_7);
fruit2_7.attributes.Y = "9";
fruit2_7.attributes.X3 = "cherry";
fruit2_7.attributes.X15 = "strawberry";
var fruit2_8 = data_xml.createElement("FRUIT");
level2.appendChild(fruit2_8);
fruit2_8.attributes.Y = "10";
fruit2_8.attributes.X4 = "cherry";
fruit2_8.attributes.X5 = "cherry";
fruit2_8.attributes.X13 = "apple";
fruit2_8.attributes.X14 = "apple";
var fruit2_9 = data_xml.createElement("FRUIT");
level2.appendChild(fruit2_9);
fruit2_9.attributes.Y = "11";
fruit2_9.attributes.X6 = "banana";
fruit2_9.attributes.X7 = "banana";
fruit2_9.attributes.X8 = "banana";
fruit2_9.attributes.X9 = "grape";
fruit2_9.attributes.X10 = "grape";
fruit2_9.attributes.X11 = "grape";
fruit2_9.attributes.X12 = "apple";
var level3 = data_xml.createElement("LEVEL");
_game.appendChild(level3);
level3.attributes.NAME = "K3";
var line3_1 = data_xml.createElement("LINE");
level3.appendChild(line3_1);
line3_1.attributes.Y = "0";
line3_1.attributes.X7 = "wall";
line3_1.attributes.X8 = "wall";
line3_1.attributes.X9 = "wall";
line3_1.attributes.X10 = "wall";
line3_1.attributes.X11 = "wall";
var line3_2 = data_xml.createElement("LINE");
level3.appendChild(line3_2);
line3_2.attributes.Y = "1";
line3_2.attributes.X6 = "wall";
line3_2.attributes.X7 = "wall";
line3_2.attributes.X8 = "wall";
line3_2.attributes.X9 = "wall";
line3_2.attributes.X10 = "wall";
line3_2.attributes.X11 = "block";
line3_2.attributes.X12 = "wall";
var line3_3 = data_xml.createElement("LINE");
level3.appendChild(line3_3);
line3_3.attributes.Y = "2";
line3_3.attributes.X5 = "wall";
line3_3.attributes.X6 = "wall";
line3_3.attributes.X7 = "wall";
line3_3.attributes.X8 = "wall";
line3_3.attributes.X9 = "wall";
line3_3.attributes.X10 = "block";
line3_3.attributes.X11 = "block";
line3_3.attributes.X12 = "block";
line3_3.attributes.X13 = "wall";
var line3_4 = data_xml.createElement("LINE");
level3.appendChild(line3_4);
line3_4.attributes.Y = "3";
line3_4.attributes.X4 = "wall";
line3_4.attributes.X5 = "wall";
line3_4.attributes.X6 = "wall";
line3_4.attributes.X7 = "wall";
line3_4.attributes.X8 = "wall";
line3_4.attributes.X9 = "block";
line3_4.attributes.X10 = "block";
line3_4.attributes.X11 = "ice_closed";
line3_4.attributes.X12 = "block";
line3_4.attributes.X13 = "block";
line3_4.attributes.X14 = "wall";
var line3_5 = data_xml.createElement("LINE");
level3.appendChild(line3_5);
line3_5.attributes.Y = "4";
line3_5.attributes.X3 = "wall";
line3_5.attributes.X4 = "wall";
line3_5.attributes.X5 = "wall";
line3_5.attributes.X6 = "wall";
line3_5.attributes.X7 = "wall";
line3_5.attributes.X8 = "block";
line3_5.attributes.X9 = "block";
line3_5.attributes.X10 = "block";
line3_5.attributes.X11 = "block";
line3_5.attributes.X12 = "block";
line3_5.attributes.X13 = "block";
line3_5.attributes.X14 = "block";
line3_5.attributes.X15 = "wall";
var line3_6 = data_xml.createElement("LINE");
level3.appendChild(line3_6);
line3_6.attributes.Y = "5";
line3_6.attributes.X3 = "block";
line3_6.attributes.X4 = "block";
line3_6.attributes.X5 = "block";
line3_6.attributes.X6 = "block";
line3_6.attributes.X7 = "block";
line3_6.attributes.X8 = "block";
line3_6.attributes.X9 = "block";
line3_6.attributes.X10 = "block";
line3_6.attributes.X11 = "block";
line3_6.attributes.X12 = "block";
line3_6.attributes.X13 = "block";
line3_6.attributes.X14 = "block";
line3_6.attributes.X15 = "block";
var line3_7 = data_xml.createElement("LINE");
level3.appendChild(line3_7);
line3_7.attributes.Y = "6";
line3_7.attributes.X3 = "block";
line3_7.attributes.X4 = "block";
line3_7.attributes.X5 = "block";
line3_7.attributes.X6 = "block";
line3_7.attributes.X7 = "block";
line3_7.attributes.X8 = "block";
line3_7.attributes.X11 = "block";
line3_7.attributes.X14 = "block";
line3_7.attributes.X15 = "block";
var line3_8 = data_xml.createElement("LINE");
level3.appendChild(line3_8);
line3_8.attributes.Y = "7";
line3_8.attributes.X3 = "block";
line3_8.attributes.X4 = "block";
line3_8.attributes.X5 = "block";
line3_8.attributes.X6 = "block";
line3_8.attributes.X7 = "block";
line3_8.attributes.X8 = "block";
line3_8.attributes.X11 = "block";
line3_8.attributes.X14 = "block";
line3_8.attributes.X15 = "block";
var line3_9 = data_xml.createElement("LINE");
level3.appendChild(line3_9);
line3_9.attributes.Y = "8";
line3_9.attributes.X3 = "block";
line3_9.attributes.X4 = "block";
line3_9.attributes.X5 = "block";
line3_9.attributes.X6 = "block";
line3_9.attributes.X7 = "block";
line3_9.attributes.X8 = "block";
line3_9.attributes.X11 = "block_up";
line3_9.attributes.X14 = "block";
line3_9.attributes.X15 = "block";
var line3_10 = data_xml.createElement("LINE");
level3.appendChild(line3_10);
line3_10.attributes.Y = "9";
line3_10.attributes.X3 = "block";
line3_10.attributes.X4 = "block";
line3_10.attributes.X5 = "block";
line3_10.attributes.X6 = "block";
line3_10.attributes.X7 = "block";
line3_10.attributes.X8 = "block";
line3_10.attributes.X9 = "block";
line3_10.attributes.X10 = "block";
line3_10.attributes.X11 = "block";
line3_10.attributes.X12 = "block";
line3_10.attributes.X13 = "block";
line3_10.attributes.X14 = "block";
line3_10.attributes.X15 = "block";
var line3_11 = data_xml.createElement("LINE");
level3.appendChild(line3_11);
line3_11.attributes.Y = "10";
line3_11.attributes.X0 = "broken";
line3_11.attributes.X1 = "broken";
line3_11.attributes.X2 = "broken";
line3_11.attributes.X3 = "broken";
line3_11.attributes.X4 = "broken";
line3_11.attributes.X5 = "broken";
line3_11.attributes.X6 = "broken";
line3_11.attributes.X7 = "broken";
line3_11.attributes.X8 = "broken";
line3_11.attributes.X9 = "broken";
line3_11.attributes.X10 = "block";
line3_11.attributes.X11 = "block";
line3_11.attributes.X12 = "block";
line3_11.attributes.X13 = "broken";
line3_11.attributes.X14 = "broken";
line3_11.attributes.X15 = "broken";
line3_11.attributes.X16 = "broken";
line3_11.attributes.X17 = "broken";
line3_11.attributes.X18 = "broken";
var line3_12 = data_xml.createElement("LINE");
level3.appendChild(line3_12);
line3_12.attributes.Y = "11";
line3_12.attributes.X0 = "block";
line3_12.attributes.X1 = "block";
line3_12.attributes.X9 = "block";
line3_12.attributes.X10 = "block";
line3_12.attributes.X11 = "block";
line3_12.attributes.X12 = "block";
line3_12.attributes.X13 = "block";
line3_12.attributes.X17 = "block";
line3_12.attributes.X18 = "block";
var line3_13 = data_xml.createElement("LINE");
level3.appendChild(line3_13);
line3_13.attributes.Y = "12";
line3_13.attributes.X0 = "block";
line3_13.attributes.X1 = "block";
line3_13.attributes.X2 = "block";
line3_13.attributes.X3 = "block";
line3_13.attributes.X4 = "block";
line3_13.attributes.X5 = "block";
line3_13.attributes.X6 = "block";
line3_13.attributes.X7 = "block";
line3_13.attributes.X8 = "block";
line3_13.attributes.X9 = "block";
line3_13.attributes.X10 = "block";
line3_13.attributes.X11 = "block";
line3_13.attributes.X12 = "block";
line3_13.attributes.X13 = "block";
line3_13.attributes.X14 = "block";
line3_13.attributes.X15 = "block";
line3_13.attributes.X16 = "block";
line3_13.attributes.X17 = "block";
line3_13.attributes.X18 = "block";
var exit3 = data_xml.createElement("EXIT");
level3.appendChild(exit3);
exit3.attributes.X = "11";
exit3.attributes.Y = "3";
var fruit3_1 = data_xml.createElement("FRUIT");
level3.appendChild(fruit3_1);
fruit3_1.attributes.Y = "1";
fruit3_1.attributes.X11 = "strawberry";
var fruit3_2 = data_xml.createElement("FRUIT");
level3.appendChild(fruit3_2);
fruit3_2.attributes.Y = "2";
fruit3_2.attributes.X10 = "strawberry";
fruit3_2.attributes.X12 = "strawberry";
var fruit3_3 = data_xml.createElement("FRUIT");
level3.appendChild(fruit3_3);
fruit3_3.attributes.Y = "3";
fruit3_3.attributes.X9 = "strawberry";
fruit3_3.attributes.X13 = "strawberry";
var fruit3_4 = data_xml.createElement("FRUIT");
level3.appendChild(fruit3_4);
fruit3_4.attributes.Y = "4";
fruit3_4.attributes.X8 = "strawberry";
fruit3_4.attributes.X14 = "strawberry";
var fruit3_5 = data_xml.createElement("FRUIT");
level3.appendChild(fruit3_5);
fruit3_5.attributes.Y = "5";
fruit3_5.attributes.X3 = "strawberry";
fruit3_5.attributes.X8 = "strawberry";
fruit3_5.attributes.X9 = "banana";
fruit3_5.attributes.X10 = "banana";
fruit3_5.attributes.X11 = "banana";
fruit3_5.attributes.X12 = "banana";
fruit3_5.attributes.X13 = "banana";
fruit3_5.attributes.X14 = "strawberry";
var fruit3_6 = data_xml.createElement("FRUIT");
level3.appendChild(fruit3_6);
fruit3_6.attributes.Y = "6";
fruit3_6.attributes.X3 = "strawberry";
fruit3_6.attributes.X8 = "strawberry";
fruit3_6.attributes.X14 = "strawberry";
var fruit3_7 = data_xml.createElement("FRUIT");
level3.appendChild(fruit3_7);
fruit3_7.attributes.Y = "7";
fruit3_7.attributes.X3 = "strawberry";
fruit3_7.attributes.X8 = "strawberry";
fruit3_7.attributes.X14 = "strawberry";
var fruit3_8 = data_xml.createElement("FRUIT");
level3.appendChild(fruit3_8);
fruit3_8.attributes.Y = "8";
fruit3_8.attributes.X3 = "strawberry";
fruit3_8.attributes.X8 = "strawberry";
fruit3_8.attributes.X14 = "strawberry";
var fruit3_9 = data_xml.createElement("FRUIT");
level3.appendChild(fruit3_9);
fruit3_9.attributes.Y = "9";
fruit3_9.attributes.X3 = "strawberry";
fruit3_9.attributes.X4 = "strawberry";
fruit3_9.attributes.X5 = "strawberry";
fruit3_9.attributes.X6 = "strawberry";
fruit3_9.attributes.X7 = "strawberry";
fruit3_9.attributes.X8 = "strawberry";
fruit3_9.attributes.X9 = "strawberry";
fruit3_9.attributes.X10 = "strawberry";
fruit3_9.attributes.X11 = "strawberry";
fruit3_9.attributes.X12 = "strawberry";
fruit3_9.attributes.X13 = "strawberry";
fruit3_9.attributes.X14 = "strawberry";
var fruit3_10 = data_xml.createElement("FRUIT");
level3.appendChild(fruit3_10);
fruit3_10.attributes.Y = "11";
fruit3_10.attributes.X0 = "cherry";
fruit3_10.attributes.X1 = "cherry";
fruit3_10.attributes.X17 = "cherry";
fruit3_10.attributes.X18 = "cherry";
var fruit3_11 = data_xml.createElement("FRUIT");
level3.appendChild(fruit3_11);
fruit3_11.attributes.Y = "12";
fruit3_11.attributes.X0 = "cherry";
fruit3_11.attributes.X1 = "cherry";
fruit3_11.attributes.X2 = "grape";
fruit3_11.attributes.X3 = "banana";
fruit3_11.attributes.X4 = "grape";
fruit3_11.attributes.X5 = "banana";
fruit3_11.attributes.X6 = "grape";
fruit3_11.attributes.X7 = "banana";
fruit3_11.attributes.X8 = "grape";
fruit3_11.attributes.X9 = "banana";
fruit3_11.attributes.X10 = "grape";
fruit3_11.attributes.X11 = "banana";
fruit3_11.attributes.X12 = "grape";
fruit3_11.attributes.X13 = "banana";
fruit3_11.attributes.X14 = "grape";
fruit3_11.attributes.X15 = "banana";
fruit3_11.attributes.X16 = "grape";
fruit3_11.attributes.X17 = "cherry";
fruit3_11.attributes.X18 = "cherry";
var bear3 = data_xml.createElement("BEAR");
level3.appendChild(bear3);
bear3.attributes.X = "11";
bear3.attributes.Y = "8";
var level4 = data_xml.createElement("LEVEL");
_game.appendChild(level4);
level4.attributes.NAME = "K4";
var exit4 = data_xml.createElement("EXIT");
level4.appendChild(exit4);
exit4.attributes.X = "10";
exit4.attributes.Y = "7";
var line4_1 = data_xml.createElement("LINE");
level4.appendChild(line4_1);
line4_1.attributes.Y = "1";
line4_1.attributes.X6 = "block";
line4_1.attributes.X7 = "block";
var line4_2 = data_xml.createElement("LINE");
level4.appendChild(line4_2);
line4_2.attributes.Y = "2";
line4_2.attributes.X5 = "block";
line4_2.attributes.X6 = "block";
line4_2.attributes.X7 = "block";
var line4_3 = data_xml.createElement("LINE");
level4.appendChild(line4_3);
line4_3.attributes.Y = "3";
line4_3.attributes.X7 = "block";
line4_3.attributes.X9 = "block";
line4_3.attributes.X10 = "block";
line4_3.attributes.X11 = "block";
line4_3.attributes.X12 = "block";
var line4_4 = data_xml.createElement("LINE");
level4.appendChild(line4_4);
line4_4.attributes.Y = "4";
line4_4.attributes.X7 = "block";
line4_4.attributes.X8 = "block";
line4_4.attributes.X9 = "block";
line4_4.attributes.X10 = "block";
line4_4.attributes.X11 = "block";
line4_4.attributes.X12 = "block";
line4_4.attributes.X13 = "block";
var line4_5 = data_xml.createElement("LINE");
level4.appendChild(line4_5);
line4_5.attributes.Y = "5";
line4_5.attributes.X2 = "block";
line4_5.attributes.X3 = "block";
line4_5.attributes.X4 = "block";
line4_5.attributes.X7 = "block";
line4_5.attributes.X8 = "block_up";
line4_5.attributes.X9 = "block";
line4_5.attributes.X10 = "block";
line4_5.attributes.X11 = "block";
line4_5.attributes.X12 = "block";
line4_5.attributes.X14 = "block";
line4_5.attributes.X15 = "block";
line4_5.attributes.X13 = "block";
var line4_6 = data_xml.createElement("LINE");
level4.appendChild(line4_6);
line4_6.attributes.Y = "6";
line4_6.attributes.X1 = "block";
line4_6.attributes.X2 = "block";
line4_6.attributes.X3 = "wall";
line4_6.attributes.X4 = "block";
line4_6.attributes.X5 = "block";
line4_6.attributes.X8 = "block";
line4_6.attributes.X9 = "block";
line4_6.attributes.X10 = "block";
line4_6.attributes.X11 = "block";
line4_6.attributes.X12 = "block";
var line4_7 = data_xml.createElement("LINE");
level4.appendChild(line4_7);
line4_7.attributes.Y = "7";
line4_7.attributes.X1 = "block";
line4_7.attributes.X2 = "block";
line4_7.attributes.X3 = "wall";
line4_7.attributes.X4 = "block";
line4_7.attributes.X5 = "block";
line4_7.attributes.X9 = "transporter5";
line4_7.attributes.X10 = "ice_closed";
line4_7.attributes.X11 = "transporter5";
line4_7.attributes.X14 = "block";
line4_7.attributes.X15 = "block";
line4_7.attributes.X16 = "block";
var line4_8 = data_xml.createElement("LINE");
level4.appendChild(line4_8);
line4_8.attributes.Y = "8";
line4_8.attributes.X1 = "block";
line4_8.attributes.X2 = "block";
line4_8.attributes.X3 = "wall";
line4_8.attributes.X4 = "block";
line4_8.attributes.X5 = "block";
line4_8.attributes.X10 = "block";
line4_8.attributes.X13 = "block";
line4_8.attributes.X14 = "block";
line4_8.attributes.X15 = "wall";
line4_8.attributes.X16 = "block";
line4_8.attributes.X17 = "block";
var line4_9 = data_xml.createElement("LINE");
level4.appendChild(line4_9);
line4_9.attributes.Y = "9";
line4_9.attributes.X1 = "block";
line4_9.attributes.X2 = "block";
line4_9.attributes.X3 = "wall";
line4_9.attributes.X4 = "block";
line4_9.attributes.X5 = "block";
line4_9.attributes.X10 = "block";
line4_9.attributes.X13 = "block";
line4_9.attributes.X14 = "block";
line4_9.attributes.X15 = "wall";
line4_9.attributes.X16 = "block";
line4_9.attributes.X17 = "block";
var line4_10 = data_xml.createElement("LINE");
level4.appendChild(line4_10);
line4_10.attributes.Y = "10";
line4_10.attributes.X2 = "block";
line4_10.attributes.X3 = "block";
line4_10.attributes.X4 = "block";
line4_10.attributes.X10 = "block";
line4_10.attributes.X13 = "block";
line4_10.attributes.X14 = "block";
line4_10.attributes.X15 = "wall";
line4_10.attributes.X16 = "block";
line4_10.attributes.X17 = "block";
var line4_11 = data_xml.createElement("LINE");
level4.appendChild(line4_11);
line4_11.attributes.Y = "11";
line4_11.attributes.X3 = "block";
line4_11.attributes.X10 = "block";
line4_11.attributes.X14 = "block";
line4_11.attributes.X15 = "block";
line4_11.attributes.X16 = "block";
var line4_12 = data_xml.createElement("LINE");
level4.appendChild(line4_12);
line4_12.attributes.Y = "12";
line4_12.attributes.X3 = "block";
line4_12.attributes.X4 = "transporter5";
line4_12.attributes.X9 = "block";
line4_12.attributes.X10 = "block";
line4_12.attributes.X14 = "transporter5";
line4_12.attributes.X15 = "block";
var fruit4_1 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_1);
fruit4_1.attributes.Y = "1";
fruit4_1.attributes.X6 = "strawberry";
var fruit4_2 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_2);
fruit4_2.attributes.Y = "2";
fruit4_2.attributes.X5 = "banana";
var fruit4_3 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_3);
fruit4_3.attributes.Y = "3";
fruit4_3.attributes.X9 = "cherry";
fruit4_3.attributes.X10 = "cherry";
fruit4_3.attributes.X11 = "cherry";
fruit4_3.attributes.X12 = "cherry";
var fruit4_4 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_4);
fruit4_4.attributes.Y = "4";
fruit4_4.attributes.X9 = "cherry";
fruit4_4.attributes.X10 = "cherry";
fruit4_4.attributes.X11 = "cherry";
fruit4_4.attributes.X12 = "cherry";
fruit4_4.attributes.X13 = "cherry";
var fruit4_5 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_5);
fruit4_5.attributes.Y = "5";
fruit4_5.attributes.X2 = "apple";
fruit4_5.attributes.X3 = "apple";
fruit4_5.attributes.X4 = "apple";
fruit4_5.attributes.X10 = "cherry";
fruit4_5.attributes.X11 = "cherry";
fruit4_5.attributes.X12 = "cherry";
fruit4_5.attributes.X13 = "grape";
fruit4_5.attributes.X14 = "grape";
fruit4_5.attributes.X15 = "grape";
var fruit4_6 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_6);
fruit4_6.attributes.Y = "6";
fruit4_6.attributes.X1 = "apple";
fruit4_6.attributes.X2 = "apple";
fruit4_6.attributes.X4 = "apple";
fruit4_6.attributes.X5 = "apple";
var fruit4_7 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_7);
fruit4_7.attributes.Y = "7";
fruit4_7.attributes.X1 = "apple";
fruit4_7.attributes.X2 = "apple";
fruit4_7.attributes.X4 = "apple";
fruit4_7.attributes.X5 = "apple";
fruit4_7.attributes.X14 = "apple";
fruit4_7.attributes.X15 = "apple";
fruit4_7.attributes.X16 = "apple";
var fruit4_8 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_8);
fruit4_8.attributes.Y = "8";
fruit4_8.attributes.X1 = "apple";
fruit4_8.attributes.X2 = "apple";
fruit4_8.attributes.X4 = "apple";
fruit4_8.attributes.X5 = "apple";
fruit4_8.attributes.X10 = "banana";
fruit4_8.attributes.X13 = "apple";
fruit4_8.attributes.X14 = "apple";
fruit4_8.attributes.X16 = "apple";
fruit4_8.attributes.X17 = "apple";
var fruit4_9 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_9);
fruit4_9.attributes.Y = "9";
fruit4_9.attributes.X1 = "apple";
fruit4_9.attributes.X2 = "apple";
fruit4_9.attributes.X4 = "apple";
fruit4_9.attributes.X5 = "apple";
fruit4_9.attributes.X10 = "banana";
fruit4_9.attributes.X13 = "apple";
fruit4_9.attributes.X14 = "apple";
fruit4_9.attributes.X16 = "apple";
fruit4_9.attributes.X17 = "apple";
var fruit4_10 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_10);
fruit4_10.attributes.Y = "10";
fruit4_10.attributes.X2 = "apple";
fruit4_10.attributes.X4 = "apple";
fruit4_10.attributes.X10 = "banana";
fruit4_10.attributes.X13 = "apple";
fruit4_10.attributes.X14 = "apple";
fruit4_10.attributes.X16 = "apple";
fruit4_10.attributes.X17 = "apple";
var fruit4_11 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_11);
fruit4_11.attributes.Y = "11";
fruit4_11.attributes.X10 = "banana";
fruit4_11.attributes.X14 = "apple";
fruit4_11.attributes.X16 = "apple";
var fruit4_12 = data_xml.createElement("FRUIT");
level4.appendChild(fruit4_12);
fruit4_12.attributes.Y = "12";
fruit4_12.attributes.X9 = "banana";
fruit4_12.attributes.X10 = "banana";
var bear4 = data_xml.createElement("BEAR");
level4.appendChild(bear4);
bear4.attributes.X = "8";
bear4.attributes.Y = "5";
var level5 = data_xml.createElement("LEVEL");
_game.appendChild(level5);
level5.attributes.NAME = "S1";
var exit5 = data_xml.createElement("EXIT");
level5.appendChild(exit5);
exit5.attributes.X = "14";
exit5.attributes.Y = "6";
var line5_1 = data_xml.createElement("LINE");
level5.appendChild(line5_1);
line5_1.attributes.Y = "0";
line5_1.attributes.X9 = "wall";
line5_1.attributes.X10 = "wall";
line5_1.attributes.X11 = "wall";
line5_1.attributes.X12 = "wall";
line5_1.attributes.X13 = "wall";
var line5_2 = data_xml.createElement("LINE");
level5.appendChild(line5_2);
line5_2.attributes.Y = "1";
line5_2.attributes.X7 = "wall";
line5_2.attributes.X8 = "wall";
line5_2.attributes.X9 = "block";
line5_2.attributes.X10 = "block";
line5_2.attributes.X11 = "block";
line5_2.attributes.X12 = "block";
line5_2.attributes.X13 = "block";
line5_2.attributes.X14 = "wall";
line5_2.attributes.X15 = "wall";
var line5_3 = data_xml.createElement("LINE");
level5.appendChild(line5_3);
line5_3.attributes.Y = "2";
line5_3.attributes.X1 = "wall";
line5_3.attributes.X2 = "wall";
line5_3.attributes.X6 = "wall";
line5_3.attributes.X7 = "block";
line5_3.attributes.X8 = "block";
line5_3.attributes.X9 = "block";
line5_3.attributes.X10 = "block";
line5_3.attributes.X11 = "broken";
line5_3.attributes.X12 = "block";
line5_3.attributes.X13 = "broken";
line5_3.attributes.X14 = "block";
line5_3.attributes.X15 = "block";
line5_3.attributes.X16 = "wall";
var line5_4 = data_xml.createElement("LINE");
level5.appendChild(line5_4);
line5_4.attributes.Y = "3";
line5_4.attributes.X1 = "wall";
line5_4.attributes.X2 = "block";
line5_4.attributes.X3 = "wall";
line5_4.attributes.X5 = "wall";
line5_4.attributes.X6 = "block";
line5_4.attributes.X7 = "block";
line5_4.attributes.X8 = "block";
line5_4.attributes.X9 = "block";
line5_4.attributes.X10 = "block";
line5_4.attributes.X11 = "block";
line5_4.attributes.X12 = "block";
line5_4.attributes.X13 = "block";
line5_4.attributes.X14 = "block";
line5_4.attributes.X15 = "block";
line5_4.attributes.X16 = "block";
line5_4.attributes.X17 = "wall";
var line5_5 = data_xml.createElement("LINE");
level5.appendChild(line5_5);
line5_5.attributes.Y = "4";
line5_5.attributes.X1 = "wall";
line5_5.attributes.X2 = "block";
line5_5.attributes.X3 = "block";
line5_5.attributes.X4 = "wall";
line5_5.attributes.X5 = "block";
line5_5.attributes.X6 = "block";
line5_5.attributes.X7 = "block";
line5_5.attributes.X8 = "block";
line5_5.attributes.X9 = "block";
line5_5.attributes.X10 = "wall";
line5_5.attributes.X12 = "transporter4";
line5_5.attributes.X14 = "transporter4";
line5_5.attributes.X16 = "transporter4";
var line5_6 = data_xml.createElement("LINE");
level5.appendChild(line5_6);
line5_6.attributes.Y = "5";
line5_6.attributes.X1 = "wall";
line5_6.attributes.X2 = "block";
line5_6.attributes.X3 = "block";
line5_6.attributes.X4 = "block";
line5_6.attributes.X5 = "block";
line5_6.attributes.X6 = "block";
line5_6.attributes.X7 = "block";
line5_6.attributes.X8 = "block";
line5_6.attributes.X9 = "wall";
var line5_7 = data_xml.createElement("LINE");
level5.appendChild(line5_7);
line5_7.attributes.Y = "6";
line5_7.attributes.X2 = "block";
line5_7.attributes.X3 = "block_up";
line5_7.attributes.X4 = "block";
line5_7.attributes.X5 = "block";
line5_7.attributes.X6 = "block";
line5_7.attributes.X7 = "block";
line5_7.attributes.X8 = "block";
line5_7.attributes.X9 = "wall";
line5_7.attributes.X14 = "ice_opened";
var line5_8 = data_xml.createElement("LINE");
level5.appendChild(line5_8);
line5_8.attributes.Y = "7";
line5_8.attributes.X1 = "wall";
line5_8.attributes.X2 = "block";
line5_8.attributes.X3 = "block";
line5_8.attributes.X4 = "block";
line5_8.attributes.X5 = "block";
line5_8.attributes.X6 = "block";
line5_8.attributes.X7 = "block";
line5_8.attributes.X8 = "block";
line5_8.attributes.X9 = "wall";
var line5_9 = data_xml.createElement("LINE");
level5.appendChild(line5_9);
line5_9.attributes.Y = "8";
line5_9.attributes.X1 = "wall";
line5_9.attributes.X2 = "block";
line5_9.attributes.X3 = "block";
line5_9.attributes.X4 = "wall";
line5_9.attributes.X5 = "block";
line5_9.attributes.X6 = "block";
line5_9.attributes.X7 = "block";
line5_9.attributes.X8 = "block";
line5_9.attributes.X9 = "block";
line5_9.attributes.X10 = "wall";
line5_9.attributes.X12 = "transporter4";
line5_9.attributes.X14 = "transporter4";
line5_9.attributes.X16 = "transporter4";
var line5_10 = data_xml.createElement("LINE");
level5.appendChild(line5_10);
line5_10.attributes.Y = "9";
line5_10.attributes.X1 = "wall";
line5_10.attributes.X2 = "block";
line5_10.attributes.X3 = "wall";
line5_10.attributes.X5 = "wall";
line5_10.attributes.X6 = "block";
line5_10.attributes.X7 = "block";
line5_10.attributes.X8 = "block";
line5_10.attributes.X9 = "block";
line5_10.attributes.X10 = "block";
line5_10.attributes.X11 = "block";
line5_10.attributes.X12 = "block";
line5_10.attributes.X13 = "block";
line5_10.attributes.X14 = "block";
line5_10.attributes.X15 = "block";
line5_10.attributes.X16 = "block";
line5_10.attributes.X17 = "wall";
var line5_11 = data_xml.createElement("LINE");
level5.appendChild(line5_11);
line5_11.attributes.Y = "10";
line5_11.attributes.X1 = "wall";
line5_11.attributes.X2 = "wall";
line5_11.attributes.X6 = "wall";
line5_11.attributes.X7 = "block";
line5_11.attributes.X8 = "block";
line5_11.attributes.X9 = "block";
line5_11.attributes.X10 = "block";
line5_11.attributes.X11 = "block";
line5_11.attributes.X12 = "block";
line5_11.attributes.X13 = "block";
line5_11.attributes.X14 = "block";
line5_11.attributes.X15 = "block";
line5_11.attributes.X16 = "wall";
var line5_12 = data_xml.createElement("LINE");
level5.appendChild(line5_12);
line5_12.attributes.Y = "11";
line5_12.attributes.X7 = "wall";
line5_12.attributes.X8 = "wall";
line5_12.attributes.X9 = "wall";
line5_12.attributes.X10 = "wall";
line5_12.attributes.X11 = "wall";
line5_12.attributes.X12 = "wall";
line5_12.attributes.X13 = "wall";
line5_12.attributes.X14 = "wall";
line5_12.attributes.X15 = "wall";
var bear5 = data_xml.createElement("BEAR");
level5.appendChild(bear5);
bear5.attributes.X = "3";
bear5.attributes.Y = "6";
var level6 = data_xml.createElement("LEVEL");
_game.appendChild(level6);
level6.attributes.NAME = "S2";
var exit6 = data_xml.createElement("EXIT");
level6.appendChild(exit6);
exit6.attributes.X = "6";
exit6.attributes.Y = "8";
var line6_1 = data_xml.createElement("LINE");
level6.appendChild(line6_1);
line6_1.attributes.Y = "1";
line6_1.attributes.X4 = "wall";
line6_1.attributes.X11 = "transporter5";
line6_1.attributes.X12 = "block";
line6_1.attributes.X13 = "block";
line6_1.attributes.X14 = "wall";
var line6_2 = data_xml.createElement("LINE");
level6.appendChild(line6_2);
line6_2.attributes.Y = "2";
line6_2.attributes.X3 = "wall";
line6_2.attributes.X4 = "block";
line6_2.attributes.X5 = "block";
line6_2.attributes.X11 = "block";
line6_2.attributes.X12 = "wall";
line6_2.attributes.X13 = "block";
line6_2.attributes.X14 = "block_up";
line6_2.attributes.X15 = "wall";
var line6_3 = data_xml.createElement("LINE");
level6.appendChild(line6_3);
line6_3.attributes.Y = "3";
line6_3.attributes.X2 = "wall";
line6_3.attributes.X3 = "block";
line6_3.attributes.X4 = "block";
line6_3.attributes.X5 = "transporter5";
line6_3.attributes.X12 = "block";
line6_3.attributes.X13 = "wall";
line6_3.attributes.X14 = "wall";
line6_3.attributes.X15 = "wall";
line6_3.attributes.X16 = "wall";
var line6_4 = data_xml.createElement("LINE");
level6.appendChild(line6_4);
line6_4.attributes.Y = "4";
line6_4.attributes.X2 = "wall";
line6_4.attributes.X3 = "block";
line6_4.attributes.X4 = "block";
line6_4.attributes.X12 = "block";
line6_4.attributes.X13 = "block";
line6_4.attributes.X14 = "block";
line6_4.attributes.X15 = "block";
line6_4.attributes.X16 = "wall";
var line6_5 = data_xml.createElement("LINE");
level6.appendChild(line6_5);
line6_5.attributes.Y = "5";
line6_5.attributes.X2 = "wall";
line6_5.attributes.X3 = "wall";
line6_5.attributes.X11 = "block";
line6_5.attributes.X12 = "block";
line6_5.attributes.X13 = "block";
line6_5.attributes.X14 = "block";
line6_5.attributes.X15 = "block";
line6_5.attributes.X16 = "wall";
var line6_6 = data_xml.createElement("LINE");
level6.appendChild(line6_6);
line6_6.attributes.Y = "6";
line6_6.attributes.X2 = "wall";
line6_6.attributes.X3 = "block";
line6_6.attributes.X11 = "block";
line6_6.attributes.X12 = "block";
line6_6.attributes.X13 = "block";
line6_6.attributes.X14 = "block";
line6_6.attributes.X15 = "block";
line6_6.attributes.X16 = "wall";
var line6_7 = data_xml.createElement("LINE");
level6.appendChild(line6_7);
line6_7.attributes.Y = "7";
line6_7.attributes.X2 = "wall";
line6_7.attributes.X3 = "block";
line6_7.attributes.X13 = "block";
line6_7.attributes.X14 = "block";
line6_7.attributes.X15 = "block";
line6_7.attributes.X16 = "wall";
var line6_8 = data_xml.createElement("LINE");
level6.appendChild(line6_8);
line6_8.attributes.Y = "8";
line6_8.attributes.X2 = "wall";
line6_8.attributes.X3 = "block";
line6_8.attributes.X4 = "block";
line6_8.attributes.X6 = "ice_opened";
line6_8.attributes.X7 = "broken";
line6_8.attributes.X8 = "broken";
line6_8.attributes.X9 = "block";
line6_8.attributes.X12 = "transporter5";
line6_8.attributes.X13 = "block";
line6_8.attributes.X14 = "block";
line6_8.attributes.X15 = "block";
line6_8.attributes.X16 = "wall";
var line6_9 = data_xml.createElement("LINE");
level6.appendChild(line6_9);
line6_9.attributes.Y = "9";
line6_9.attributes.X3 = "wall";
line6_9.attributes.X4 = "block";
line6_9.attributes.X14 = "block";
line6_9.attributes.X15 = "wall";
var line6_10 = data_xml.createElement("LINE");
level6.appendChild(line6_10);
line6_10.attributes.Y = "10";
line6_10.attributes.X4 = "wall";
line6_10.attributes.X14 = "wall";
var bear6 = data_xml.createElement("BEAR");
level6.appendChild(bear6);
bear6.attributes.X = "14";
bear6.attributes.Y = "2";
var level7 = data_xml.createElement("LEVEL");
_game.appendChild(level7);
level7.attributes.NAME = "S3";
var exit7 = data_xml.createElement("EXIT");
level7.appendChild(exit7);
exit7.attributes.X = "9";
exit7.attributes.Y = "11";
var line7_1 = data_xml.createElement("LINE");
level7.appendChild(line7_1);
line7_1.attributes.Y = "1";
line7_1.attributes.X4 = "wall";
line7_1.attributes.X5 = "wall";
line7_1.attributes.X6 = "wall";
line7_1.attributes.X7 = "wall";
line7_1.attributes.X11 = "wall";
line7_1.attributes.X12 = "wall";
line7_1.attributes.X13 = "wall";
line7_1.attributes.X14 = "wall";
var line7_2 = data_xml.createElement("LINE");
level7.appendChild(line7_2);
line7_2.attributes.Y = "2";
line7_2.attributes.X3 = "wall";
line7_2.attributes.X4 = "wall";
line7_2.attributes.X5 = "block";
line7_2.attributes.X6 = "block";
line7_2.attributes.X7 = "block";
line7_2.attributes.X8 = "wall";
line7_2.attributes.X9 = "wall";
line7_2.attributes.X10 = "wall";
line7_2.attributes.X11 = "block";
line7_2.attributes.X12 = "block";
line7_2.attributes.X13 = "block";
line7_2.attributes.X14 = "wall";
line7_2.attributes.X15 = "wall";
var line7_3 = data_xml.createElement("LINE");
level7.appendChild(line7_3);
line7_3.attributes.Y = "3";
line7_3.attributes.X2 = "wall";
line7_3.attributes.X3 = "wall";
line7_3.attributes.X4 = "block";
line7_3.attributes.X5 = "broken";
line7_3.attributes.X6 = "block";
line7_3.attributes.X7 = "block";
line7_3.attributes.X9 = "block";
line7_3.attributes.X10 = "transporter5";
line7_3.attributes.X13 = "broken";
line7_3.attributes.X14 = "block";
line7_3.attributes.X15 = "wall";
line7_3.attributes.X16 = "wall";
var line7_4 = data_xml.createElement("LINE");
level7.appendChild(line7_4);
line7_4.attributes.Y = "4";
line7_4.attributes.X2 = "wall";
line7_4.attributes.X3 = "wall";
line7_4.attributes.X4 = "block";
line7_4.attributes.X5 = "block";
line7_4.attributes.X6 = "block";
line7_4.attributes.X9 = "block";
line7_4.attributes.X10 = "block";
line7_4.attributes.X13 = "block";
line7_4.attributes.X14 = "block";
line7_4.attributes.X15 = "wall";
line7_4.attributes.X16 = "wall";
var line7_5 = data_xml.createElement("LINE");
level7.appendChild(line7_5);
line7_5.attributes.Y = "5";
line7_5.attributes.X2 = "wall";
line7_5.attributes.X3 = "wall";
line7_5.attributes.X4 = "block_up";
line7_5.attributes.X5 = "broken";
line7_5.attributes.X9 = "block";
line7_5.attributes.X10 = "block";
line7_5.attributes.X13 = "broken";
line7_5.attributes.X14 = "block";
line7_5.attributes.X15 = "wall";
line7_5.attributes.X16 = "wall";
var line7_6 = data_xml.createElement("LINE");
level7.appendChild(line7_6);
line7_6.attributes.Y = "6";
line7_6.attributes.X2 = "wall";
line7_6.attributes.X3 = "wall";
line7_6.attributes.X4 = "block";
line7_6.attributes.X5 = "block";
line7_6.attributes.X9 = "block";
line7_6.attributes.X10 = "block";
line7_6.attributes.X12 = "transporter4";
line7_6.attributes.X13 = "block";
line7_6.attributes.X14 = "block";
line7_6.attributes.X15 = "wall";
line7_6.attributes.X16 = "wall";
var line7_7 = data_xml.createElement("LINE");
level7.appendChild(line7_7);
line7_7.attributes.Y = "7";
line7_7.attributes.X2 = "wall";
line7_7.attributes.X3 = "wall";
line7_7.attributes.X4 = "block";
line7_7.attributes.X5 = "broken";
line7_7.attributes.X8 = "transporter5";
line7_7.attributes.X9 = "block";
line7_7.attributes.X10 = "block";
line7_7.attributes.X13 = "broken";
line7_7.attributes.X14 = "block";
line7_7.attributes.X15 = "wall";
line7_7.attributes.X16 = "wall";
var line7_8 = data_xml.createElement("LINE");
level7.appendChild(line7_8);
line7_8.attributes.Y = "8";
line7_8.attributes.X3 = "wall";
line7_8.attributes.X4 = "wall";
line7_8.attributes.X5 = "wall";
line7_8.attributes.X6 = "block";
line7_8.attributes.X9 = "block";
line7_8.attributes.X10 = "block";
line7_8.attributes.X12 = "block";
line7_8.attributes.X13 = "wall";
line7_8.attributes.X14 = "wall";
line7_8.attributes.X15 = "wall";
var line7_9 = data_xml.createElement("LINE");
level7.appendChild(line7_9);
line7_9.attributes.Y = "9";
line7_9.attributes.X4 = "wall";
line7_9.attributes.X5 = "wall";
line7_9.attributes.X6 = "block";
line7_9.attributes.X7 = "block";
line7_9.attributes.X8 = "block";
line7_9.attributes.X9 = "block";
line7_9.attributes.X10 = "block";
line7_9.attributes.X12 = "block";
line7_9.attributes.X13 = "wall";
line7_9.attributes.X14 = "wall";
var line7_10 = data_xml.createElement("LINE");
level7.appendChild(line7_10);
line7_10.attributes.Y = "10";
line7_10.attributes.X5 = "wall";
line7_10.attributes.X12 = "block";
line7_10.attributes.X13 = "wall";
var line7_11 = data_xml.createElement("LINE");
level7.appendChild(line7_11);
line7_11.attributes.Y = "11";
line7_11.attributes.X5 = "wall";
line7_11.attributes.X9 = "ice_opened";
line7_11.attributes.X10 = "block";
line7_11.attributes.X11 = "block";
line7_11.attributes.X12 = "block";
line7_11.attributes.X13 = "wall";
var bear7 = data_xml.createElement("BEAR");
level7.appendChild(bear7);
bear7.attributes.X = "4";
bear7.attributes.Y = "5";
var level8 = data_xml.createElement("LEVEL");
_game.appendChild(level8);
level8.attributes.NAME = "S4";
var exit8 = data_xml.createElement("EXIT");
level8.appendChild(exit8);
exit8.attributes.X = "11";
exit8.attributes.Y = "4";
var line8_1 = data_xml.createElement("LINE");
level8.appendChild(line8_1);
line8_1.attributes.Y = "1";
line8_1.attributes.X1 = "wall";
line8_1.attributes.X2 = "wall";
line8_1.attributes.X3 = "wall";
line8_1.attributes.X4 = "wall";
line8_1.attributes.X5 = "wall";
line8_1.attributes.X6 = "wall";
line8_1.attributes.X7 = "wall";
line8_1.attributes.X8 = "wall";
line8_1.attributes.X9 = "wall";
line8_1.attributes.X10 = "wall";
line8_1.attributes.X11 = "wall";
line8_1.attributes.X12 = "wall";
line8_1.attributes.X13 = "wall";
line8_1.attributes.X14 = "wall";
line8_1.attributes.X15 = "wall";
line8_1.attributes.X16 = "wall";
line8_1.attributes.X17 = "wall";
var line8_2 = data_xml.createElement("LINE");
level8.appendChild(line8_2);
line8_2.attributes.Y = "2";
line8_2.attributes.X1 = "wall";
line8_2.attributes.X2 = "teleport1";
line8_2.attributes.X16 = "transporter2";
line8_2.attributes.X17 = "wall";
var line8_3 = data_xml.createElement("LINE");
level8.appendChild(line8_3);
line8_3.attributes.Y = "3";
line8_3.attributes.X1 = "wall";
line8_3.attributes.X6 = "block";
line8_3.attributes.X7 = "block";
line8_3.attributes.X11 = "block";
line8_3.attributes.X12 = "block";
line8_3.attributes.X17 = "wall";
var line8_4 = data_xml.createElement("LINE");
level8.appendChild(line8_4);
line8_4.attributes.Y = "4";
line8_4.attributes.X1 = "wall";
line8_4.attributes.X6 = "block";
line8_4.attributes.X7 = "block_up";
line8_4.attributes.X8 = "block";
line8_4.attributes.X9 = "wall";
line8_4.attributes.X10 = "block";
line8_4.attributes.X11 = "ice_opened";
line8_4.attributes.X12 = "block";
line8_4.attributes.X17 = "wall";
var line8_5 = data_xml.createElement("LINE");
level8.appendChild(line8_5);
line8_5.attributes.Y = "5";
line8_5.attributes.X1 = "wall";
line8_5.attributes.X7 = "block";
line8_5.attributes.X8 = "wall";
line8_5.attributes.X9 = "wall";
line8_5.attributes.X10 = "wall";
line8_5.attributes.X11 = "block";
line8_5.attributes.X17 = "wall";
var line8_6 = data_xml.createElement("LINE");
level8.appendChild(line8_6);
line8_6.attributes.Y = "6";
line8_6.attributes.X1 = "wall";
line8_6.attributes.X7 = "transporter5";
line8_6.attributes.X8 = "wall";
line8_6.attributes.X9 = "wall";
line8_6.attributes.X10 = "wall";
line8_6.attributes.X11 = "transporter5";
line8_6.attributes.X17 = "wall";
var line8_7 = data_xml.createElement("LINE");
level8.appendChild(line8_7);
line8_7.attributes.Y = "7";
line8_7.attributes.X1 = "wall";
line8_7.attributes.X7 = "block";
line8_7.attributes.X8 = "wall";
line8_7.attributes.X9 = "wall";
line8_7.attributes.X10 = "wall";
line8_7.attributes.X11 = "block";
line8_7.attributes.X17 = "wall";
var line8_8 = data_xml.createElement("LINE");
level8.appendChild(line8_8);
line8_8.attributes.Y = "8";
line8_8.attributes.X1 = "wall";
line8_8.attributes.X6 = "block";
line8_8.attributes.X7 = "block";
line8_8.attributes.X8 = "block";
line8_8.attributes.X9 = "wall";
line8_8.attributes.X10 = "block";
line8_8.attributes.X11 = "block";
line8_8.attributes.X12 = "block";
line8_8.attributes.X17 = "wall";
var line8_9 = data_xml.createElement("LINE");
level8.appendChild(line8_9);
line8_9.attributes.Y = "9";
line8_9.attributes.X1 = "wall";
line8_9.attributes.X6 = "block";
line8_9.attributes.X7 = "block";
line8_9.attributes.X11 = "block";
line8_9.attributes.X12 = "block";
line8_9.attributes.X17 = "wall";
var line8_10 = data_xml.createElement("LINE");
level8.appendChild(line8_10);
line8_10.attributes.Y = "10";
line8_10.attributes.X1 = "wall";
line8_10.attributes.X2 = "transporter0";
line8_10.attributes.X15 = "transporter0";
line8_10.attributes.X16 = "teleport1";
line8_10.attributes.X17 = "wall";
var line8_11 = data_xml.createElement("LINE");
level8.appendChild(line8_11);
line8_11.attributes.Y = "11";
line8_11.attributes.X1 = "wall";
line8_11.attributes.X2 = "wall";
line8_11.attributes.X3 = "wall";
line8_11.attributes.X4 = "wall";
line8_11.attributes.X5 = "wall";
line8_11.attributes.X6 = "wall";
line8_11.attributes.X7 = "wall";
line8_11.attributes.X8 = "wall";
line8_11.attributes.X9 = "wall";
line8_11.attributes.X10 = "wall";
line8_11.attributes.X11 = "wall";
line8_11.attributes.X12 = "wall";
line8_11.attributes.X13 = "wall";
line8_11.attributes.X14 = "wall";
line8_11.attributes.X15 = "wall";
line8_11.attributes.X16 = "wall";
line8_11.attributes.X17 = "wall";
var bear8 = data_xml.createElement("BEAR");
level8.appendChild(bear8);
bear8.attributes.X = "7";
bear8.attributes.Y = "4";
var click_notavailableSnd = new Sound();
click_notavailableSnd.attachSound("click_notavailable");
var get_item1Snd = new Sound();
get_item1Snd.attachSound("get_item1");
var get_item2Snd = new Sound();
get_item2Snd.attachSound("get_item2");
var get_item3Snd = new Sound();
get_item3Snd.attachSound("get_item3");
var hero_exitSnd = new Sound();
hero_exitSnd.attachSound("hero_exit");
var hero_teleportSnd = new Sound();
hero_teleportSnd.attachSound("hero_teleport");
var level_completedSnd = new Sound();
level_completedSnd.attachSound("level_completed");
var level_startSnd = new Sound();
level_startSnd.attachSound("level_start");
var move_transporterSnd = new Sound();
move_transporterSnd.attachSound("move_transporter");
var open_exitSnd = new Sound();
open_exitSnd.attachSound("open_exit");
var stop_transporterSnd = new Sound();
stop_transporterSnd.attachSound("stop_transporter");
function ef_go() {
progress.setprogress((this.getBytesLoaded() / this.getBytesTotal()) * 100);
if (this.getBytesLoaded() == this.getBytesTotal()) {
this.onEnterFrame = undefined;
_root.play();
}
}
if (_global.bypass == "true") {
if (_global.link != undefined) {
_root.link = _global.link;
}
if (_global.dload_f != undefined) {
_root.dload_f = _global.dload_f;
}
if (_global.close_f != undefined) {
_root.close_f = _global.close_f;
}
if (_global.alawar_f != undefined) {
_root.alawar_f = _global.alawar_f;
}
} else {
stop();
progress.init();
progress.start();
}
Stage.showMenu = false;
Frame 3
function block_view(x, y, view) {
this["l" + y]["b" + x].__interface_operation_id = __interface_operation_id;
result = this["l" + y]["b" + x].setView(view);
if (result === false) {
delete this["l" + y]["b" + x].__interface_operation_id;
}
delete __interface_operation_id;
return(result);
}
function block_replace(x, y, view) {
if (view ne "") {
map[y][x] = view;
} else {
delete map[y][x];
}
}
function fruit_remove(x, y) {
if (((fruit[y][x] != "key1") && (fruit[y][x] != "key2")) && (fruit[y][x] != "key3")) {
fruits_count--;
if (fruit[y][x] == "grape") {
get_item1Snd.start();
}
if (fruit[y][x] == "banana") {
get_item2Snd.start();
}
if (fruit[y][x] == "apple") {
get_item3Snd.start();
}
if (fruit[y][x] == "cherry") {
get_item2Snd.start();
}
if (fruit[y][x] == "strawberry") {
get_item1Snd.start();
}
}
if (fruit[y][x] != undefined) {
delete fruit[y][x];
this[(("fru" + x) + "y") + y].fruit.play();
}
}
function key_remove(i) {
if (keys[i] != undefined) {
delete keys[i];
this[("key" + i) + "indicator"].fruit.play();
}
}
function block_animation(x, y, view) {
this["l" + y]["b" + x].__interface_operation_id = __interface_operation_id;
result = this["l" + y]["b" + x].setAnimation(view);
if (result === false) {
delete this["l" + y]["b" + x].__interface_operation_id;
}
delete __interface_operation_id;
return(result);
}
function transporter_move(x, y, direction) {
x = Number(x);
y = Number(y);
direction = Number(direction);
var _local2 = new Array(Math.round(Math.sin((Math.PI * direction) / 4)), -Math.round(Math.cos((Math.PI * direction) / 4)));
if ((map[y][x].substring(0, "transporter".length) == "transporter") && (map[y + _local2[1]][x + _local2[0]] == undefined)) {
readyFor = false;
var _local1 = 0;
while (map[y + ((_local1 + 1) * _local2[1])][x + ((_local1 + 1) * _local2[0])] == undefined) {
_local1++;
}
var _local5 = map[y][x];
id = InterfaceComander.requestAction("block_replace", ((("x=" + x) + ",y=") + y) + ",view=");
id = InterfaceComander.requestAction("block_view", ((("x=" + x) + ",y=") + y) + ",view=none");
id = InterfaceComander.requestAction("mover_move", (((((((("from_x=" + x) + ",from_y=") + y) + ",to_x=") + (x + (_local1 * _local2[0]))) + ",to_y=") + (y + (_local1 * _local2[1]))) + ",block_type=") + _local5, id);
InterfaceComander.requestAction("block_replace", (((("x=" + (x + (_local1 * _local2[0]))) + ",y=") + (y + (_local1 * _local2[1]))) + ",view=") + _local5, id);
InterfaceComander.requestAction("block_view", (((("x=" + (x + (_local1 * _local2[0]))) + ",y=") + (y + (_local1 * _local2[1]))) + ",view=") + _local5, id);
id = InterfaceComander.requestAction("readyForAction", "bear", id);
move_transporterSnd.start();
}
return(false);
}
function handler_removeAllArrows() {
for (var _local3 in map) {
for (var _local2 in map[_local3]) {
if (map[_local3][_local2].substring(0, "transporter".length) == "transporter") {
_root["l" + _local3]["b" + _local2].Arrow0._visible = false;
_root["l" + _local3]["b" + _local2].Arrow2._visible = false;
_root["l" + _local3]["b" + _local2].Arrow4._visible = false;
_root["l" + _local3]["b" + _local2].Arrow6._visible = false;
}
}
}
}
function map_synchro() {
for (var _local3 in map) {
for (var _local2 in map[_local3]) {
this["l" + _local3]["b" + _local2].setView(map[_local3][_local2]);
}
}
}
function exit_level(next_level, solution) {
bear._visible = false;
for (var _local7 in this.map) {
for (var _local6 in this.map[_local7]) {
this["l" + _local7]["b" + _local6].gotoAndStop("none");
}
delete this.map[_local7];
}
for (var _local7 in this.fruit) {
for (var _local6 in this.fruit[_local7]) {
this[(("fru" + _local6) + "y") + _local7].removeMovieClip();
}
delete this.fruit[_local7];
}
for (var _local4 in this.keys) {
this[("key" + _local4) + "indicator"].removeMovieClip();
delete this.keys[_local4];
}
fruits_count = 0;
if (next_level == "next_level") {
type = _global.current_level.substring(0, 1);
num = _global.current_level.substring(1, 2);
if ((((type == "K") || (type == "S")) && (num >= 1)) && (num <= 3)) {
if (type == "K") {
Base = 0;
}
if (type == "S") {
Base = 4;
}
var _local4 = 1;
while (_local4 <= 4) {
trace((((_local4 + " ") + num) + " ") + _root.inf.levels[_local4 - 1]);
if ((_root.inf.levels[(Base + _local4) - 1] == 0) && (_local4 > num)) {
num = _local4;
next_level = type + num;
break;
}
_local4++;
}
trace(next_level);
}
}
if ((next_level ne "next_level") && (next_level != undefined)) {
if (next_level == -1) {
next_level = _global.current_level;
}
_global.current_level = next_level;
handler_startLevel(XMLPatch(data_xml, "GAME/LEVEL:NAME=" + next_level));
} else {
gotoAndStop ("MainMenu");
}
return(false);
}
GotoDownload = function () {
if (_root.link != undefined) {
getURL (link, "_blank");
} else {
getURL ("http://www.alawar.com/download/SnowyPuzzleIslands.exe", "_blank");
}
if (_root.dload_f != undefined) {
cstr = ("JavaScript:" + dload_f) + "()";
getURL (cstr);
}
};
Object.prototype.inspect = function () {
var _local2 = "";
for (var _local3 in this) {
_local2 = _local2 add ((_local2 != "") ? "; " : "");
if (!isNaN(_local3)) {
_local2 = ((_local2 add "[") add _local3) add "]=>";
} else {
_local2 = ((_local2 add "['") add _local3) add "']=>";
}
if (this[_local3] == undefined) {
_local2 = (_local2 add "") add "undefined";
} else if (!isNaN(this[_local3])) {
_local2 = _local2 add this[_local3];
} else if (this[_local3].getType("Array")) {
_local2 = _local2 add "Array";
} else if (this[_local3].getType("Function")) {
_local2 = _local2 add "Function";
} else if (this[_local3].getType("Object")) {
_local2 = _local2 add "Object";
} else if (this[_local3].getType("String")) {
_local2 = ((_local2 add "'") add this[_local3]) add "'";
} else if (this[_local3].getType() != undefined) {
_local2 = _local2 add this[_local3].getType();
} else {
_local2 = ((_local2 add "'") add this[_local3]) add "'";
}
}
_local2 = ("{" + _local2) + "}";
return(_local2);
};
Array.prototype.inspect = function () {
var _local2 = "";
for (var _local3 in this) {
_local2 = _local2 add ((_local2 != "") ? "; " : "");
if (!isNaN(_local3)) {
_local2 = ((_local2 add "[") add _local3) add "]=>";
} else {
_local2 = ((_local2 add "['") add _local3) add "']=>";
}
if (this[_local3] == undefined) {
_local2 = (_local2 add "") add "undefined";
} else if (!isNaN(this[_local3])) {
_local2 = _local2 add this[_local3];
} else if (this[_local3].getType("Array")) {
_local2 = _local2 add "Array";
} else if (this[_local3].getType("Function")) {
_local2 = _local2 add "Function";
} else if (this[_local3].getType("Object")) {
_local2 = _local2 add "Object";
} else if (this[_local3].getType("String")) {
_local2 = ((_local2 add "'") add this[_local3]) add "'";
} else if (this[_local3].getType() != undefined) {
_local2 = _local2 add this[_local3].getType();
} else {
_local2 = ((_local2 add "'") add this[_local3]) add "'";
}
}
_local2 = ("(" add _local2) add ")";
return(_local2);
};
Object.prototype.inspectDetail = function (level) {
var _local2 = (level add "{") add newline;
for (var _local4 in this) {
if (!isNaN(_local4)) {
_local2 = (((_local2 add level) add "[") add _local4) add "]=>";
} else {
_local2 = (((_local2 add level) add "['") add _local4) add "']=>";
}
if (this[_local4] == undefined) {
_local2 = (((_local2 add "") add "undefined") add ";") add newline;
} else if (!isNaN(this[_local4])) {
_local2 = (((_local2 add "") add this[_local4]) add ";") add newline;
} else if (this[_local4].getType("String")) {
_local2 = (((_local2 add "'") add this[_local4]) add "';") add newline;
} else if (this[_local4].inspectDetail != undefined) {
_local2 = (((_local2 add newline) add this[_local4].inspectDetail(level add " ")) add ";") add newline;
} else if (isFunction(this[_local4])) {
_local2 = (_local2 add "Function;") add newline;
} else {
_local2 = (((_local2 add "'") add this[_local4]) add "';") add newline;
}
}
_local2 = (_local2 add level) add "}";
return(_local2);
};
Array.prototype.count = function () {
var _local2 = 0;
for (var _local3 in this) {
_local2++;
}
return(_local2);
};
Array.prototype.duplicate = function () {
var _local2 = new Array();
for (var _local3 in this) {
if (isArray(this[_local3])) {
_local2[_local3] = this[_local3].duplicate();
} else {
_local2[_local3] = this[_local3];
}
}
return(_local2);
};
Array.prototype.getType = function (typeName) {
if (typeName == undefined) {
return("Array");
}
if (typeName == "Array") {
return(true);
}
return(false);
};
String.prototype.inspect = function () {
return(("'" add this) add "'");
};
String.prototype.inspectDetail = function () {
return(("'" add this) add "'");
};
String.prototype.getType = function (typeName) {
if (typeName == undefined) {
return("String");
}
if (typeName == "String") {
return(true);
}
return(false);
};
Function.prototype.getType = function (typeName) {
if (typeName == undefined) {
return("Function");
}
if (typeName == "Function") {
return(true);
}
return(false);
};
Number.prototype.getType = function (typeName) {
if (typeName == undefined) {
return("Number");
}
if (typeName == "Number") {
return(true);
}
return(false);
};
Object.prototype.getType = function (typeName) {
if (typeName == undefined) {
return("Object");
}
if (typeName == "Object") {
return(true);
}
return(false);
};
String.prototype.trim = function () {
var _local2 = this;
while ((_local2.length > 0) && (_local2.substr(0, 1) eq " ")) {
_local2 = _local2.substring(1, _local2.length);
}
while ((_local2.length > 0) && (this.substr(_local2.length, 1) eq " ")) {
_local2 = _local2.substring(0, _local2.length - 1);
}
return(_local2);
};
String.prototype.paramDecode = function () {
var _local8 = new Array();
var _local9 = 0;
var _local5 = ("" add this) add "";
var _local2 = "";
var _local3 = 0;
var _local7 = 0;
_local3 = 0;
var _local4 = 0;
var _local6 = 0;
while (_local5.length != _local3) {
_local3 = _local5.indexOf(",", _local7);
while ((_local3 >= 0) && (_local5.charAt(_local3 - 1) eq "\\")) {
_local5 = _local5.substring(0, _local3 - 1) + _local5.substring(_local3, _local5.length);
new_index = _local3;
_local3 = _local5.indexOf(",", new_index);
}
if (_local3 < 0) {
_local3 = _local5.length;
}
_local2 = _local5.substring(_local7, _local3);
_local7 = _local3 + 1;
_local4 = _local2.indexOf("=");
while ((_local4 >= 0) && (_local2.substr(_local4 - 1, 1) == "\\")) {
_local2 = _local2.substring(0, _local4 - 1) + _local2.substring(_local4, _local2.length);
new_index = _local4 + 1;
_local4 = _local2.indexOf("=", new_index);
}
if (_local4 >= 0) {
_local6 = _local2.substring(0, _local4);
_local6 = _local6.trim();
if (isNumber(_local6)) {
_local6 = Number(_local6);
}
_local2 = _local2.substring(_local4 + 1, _local2.length);
} else {
_local6 = _local9++;
}
if (isNumber(_local2.trim())) {
_local2 = Number(_local2.trim());
}
_local8[_local6] = _local2;
}
return(_local8);
};
Array.prototype.paramDecode = function () {
var _local2 = new Array();
for (var _local3 in this) {
_local2[_local3] = this[_local3];
}
return(_local2);
};
Number.prototype.paramDecode = function () {
var _local3 = this;
var _local2 = new Array();
_local2[0] = _local3;
return(_local2);
};
Boolean.prototype.paramDecode = function () {
var _local3 = this;
var _local2 = new Array();
_local2[0] = _local3;
return(_local2);
};
Function.prototype.inspect = function () {
return("[type Function]");
};
Boolean.prototype.inspect = function () {
return(String(this));
};
ASSetPropFlags(Object.prototype, "inspect,getType,inspectDetail", 7, true);
ASSetPropFlags(String.prototype, "inspect,getType,inspectDetail,trim,paramDecode", 7, true);
ASSetPropFlags(Array.prototype, "inspect,getType,count,paramDecode,duplicate", 7, true);
ASSetPropFlags(Boolean.prototype, "inspect,paramDecode", 7, true);
ASSetPropFlags(Number.prototype, "getType,paramDecode", 7, true);
_global.isString = function (variable) {
if (variable.getType() eq "String") {
return(true);
}
return(false);
};
_global.isArray = function (variable) {
if (variable.getType() eq "Array") {
return(true);
}
return(false);
};
_global.isFunction = function (variable) {
if (variable.getType() eq "Function") {
return(true);
}
return(false);
};
_global.isNumber = function (variable) {
if (variable === undefined) {
return(false);
}
if (variable.getType() eq "String") {
return(!isNaN(variable.trim()));
}
return(!isNaN(variable));
};
_global.isObject = function (variable) {
if (variable.getType() eq "Object") {
return(true);
}
return(false);
};
InterfaceComander_prototype = function () {
this.unique_id = 0;
this.directives = new Array();
this.in_progress = new Array();
this.registred_composit_properties = new Array();
this.registred_composit_actions = new Array();
this.registred_actions = new Array();
this.count = 0;
this.init = function () {
unique_id = 1;
};
this.registerCompositProperty = function (property, property_list) {
if (isString(property_list)) {
property_list = property_list.paramDecode();
}
this.registred_composit_properties[property] = property_list;
return(true);
};
this.registerAction = function (action, call_string, property, previouse) {
var _local7 = call_string.substring(0, call_string.indexOf("("));
var _local3 = call_string.substring(call_string.indexOf("(") + 1, call_string.indexOf(")"));
if (isString(_local3)) {
_local3 = _local3.paramDecode();
} else if (isNumber(_local3)) {
var _local6 = Number(_local3);
_local3 = new Array();
_local3[0] = _local6;
}
if (isString(previouse)) {
previouse = previouse.paramDecode();
} else if (isNumber(previouse)) {
var _local6 = Number(previouse);
previouse = new Array();
previouse[0] = _local6;
}
if (action.indexOf("[") > 0) {
} else {
if (this.registred_actions[action] == undefined) {
this.registred_actions[action] = new Array();
} else {
delete this.registred_actions[action];
this.registred_actions[action] = new Array();
}
this.registred_actions[action] = new Array();
this.registred_actions[action].action = action;
this.registred_actions[action].property = property;
this.registred_actions[action].previouse = previouse;
this.registred_actions[action].method = _local7;
this.registred_actions[action].parametrs = _local3;
}
};
this.registerComplexAction = function (action, sub_action, parametrs, prerequisit) {
var _local4 = Number(action.substring(action.indexOf("[") + 1, action.indexOf("]")));
action = action.substring(0, action.indexOf("["));
if (isString(parametrs)) {
parametrs = parametrs.paramDecode();
} else if (isNumber(parametrs)) {
var _local7 = Number(parametrs);
parametrs = new Array();
parametrs[0] = _local7;
}
if (isString(prerequisit)) {
prerequisit = prerequisit.paramDecode();
} else if (isNumber(prerequisit)) {
var _local7 = Number(prerequisit);
prerequisit = new Array();
prerequisit[0] = _local7;
}
if (this.registred_composit_actions[action] == undefined) {
this.registred_composit_actions[action] = new Array();
}
var _local2;
while (_local2 < _local4) {
if (this.registred_composit_actions[action][_local2] == undefined) {
this.registred_composit_actions[action][_local2] = undefined;
}
_local2++;
}
if (this.registred_composit_actions[action][_local4] != undefined) {
delete this.registred_composit_actions[action][_local4];
}
this.registred_composit_actions[action][_local4] = new Array();
this.registred_composit_actions[action][_local4].action = sub_action;
this.registred_composit_actions[action][_local4].property = property;
this.registred_composit_actions[action][_local4].prerequisit = prerequisit;
this.registred_composit_actions[action][_local4].parametrs = parametrs;
};
this.requestAction = function (action, parametrs, prerequisit) {
if (isString(parametrs)) {
parametrs = parametrs.paramDecode();
} else if (isNumber(parametrs)) {
var _local7 = Number(parametrs);
parametrs = new Array();
parametrs[0] = _local7;
}
if (prerequisit == undefined) {
prerequisit = new Array();
} else if (isString(prerequisit)) {
prerequisit = prerequisit.paramDecode();
} else if (isNumber(prerequisit)) {
var _local7 = Number(prerequisit);
prerequisit = new Array();
prerequisit[0] = _local7;
}
var _local7 = new Array();
for (var _local8 in prerequisit) {
if (this.registred_composit_properties[prerequisit[_local8]] != undefined) {
for (var _local10 in this.registred_composit_properties[prerequisit[_local8]]) {
_local7[_local7.length] = this.registred_composit_properties[prerequisit[_local8]][_local10];
}
} else {
_local7[_local7.length] = prerequisit[_local8];
}
}
prerequisit = _local7;
if (this.registred_composit_actions[action] != undefined) {
if (this.registred_actions[action].previouse != undefined) {
for (var _local8 in this.registred_actions[action].previouse) {
prerequisit[prerequisit.length] = this.registred_actions[action].previouse[_local8];
}
}
if (prerequisit.length > 0) {
var _local11 = "wp" add (this.unique_id + prerequisit.length);
for (var _local8 in prerequisit) {
this.directives[this.unique_id] = new Array();
this.directives[this.unique_id].id = this.unique_id;
this.directives[this.unique_id].method = "waypoint";
this.directives[this.unique_id].property = _local11;
this.directives[this.unique_id].parametrs = undefined;
this.directives[this.unique_id].previouse = prerequisit[_local8];
this.unique_id++;
}
prerequisit = _local11;
} else {
prerequisit = undefined;
}
var _local3 = new Array();
var _local12;
var _local2 = 0;
while (_local2 < this.registred_composit_actions[action].length) {
_local3[_local2] = new Array();
_local3[_local2].parametrs = new Array();
for (var _local8 in this.registred_composit_actions[action][_local2].parametrs) {
if (parametrs[this.registred_composit_actions[action][_local2].parametrs[_local8]] != undefined) {
_local3[_local2].parametrs[_local8] = parametrs[this.registred_composit_actions[action][_local2].parametrs[_local8]];
} else {
_local3[_local2].parametrs[_local8] = this.registred_composit_actions[action][_local2].parametrs[_local8];
}
}
if (prerequisit != undefined) {
if (isArray(this.registred_composit_actions[action][_local2].prerequisit)) {
_local3[_local2].prerequisit = this.registred_composit_actions[action][_local2].prerequisit.duplicate();
_local3[_local2].prerequisit[_local3[_local2].prerequisit.length] = prerequisit;
} else {
_local3[_local2].prerequisit = prerequisit;
}
} else {
_local3[_local2].prerequisit = this.registred_composit_actions[action][_local2].prerequisit.duplicate();
}
for (var _local10 in _local3[_local2].prerequisit) {
if (isNumber(_local3[_local2].prerequisit[_local10])) {
_local3[_local2].prerequisit[_local10] = _local3[_local3[_local2].prerequisit[_local10]].id;
}
}
_local3[_local2].id = this.requestAction(this.registred_composit_actions[action][_local2].action, _local3[_local2].parametrs, _local3[_local2].prerequisit);
_local12 = _local3[_local2].id;
_local2++;
}
} else if (this.registred_actions[action] != undefined) {
if (this.registred_actions[action].previouse != undefined) {
for (var _local8 in this.registred_actions[action].previouse) {
prerequisit[prerequisit.length] = this.registred_actions[action].previouse[_local8];
}
}
if (prerequisit.length > 1) {
var _local11 = "wp" add (this.unique_id + prerequisit.length);
for (var _local8 in prerequisit) {
this.directives[this.unique_id] = new Array();
this.directives[this.unique_id].id = this.unique_id;
this.directives[this.unique_id].method = "waypoint";
this.directives[this.unique_id].property = _local11;
this.directives[this.unique_id].parametrs = undefined;
this.directives[this.unique_id].previouse = prerequisit[_local8];
this.unique_id++;
}
prerequisit = _local11;
} else if ((prerequisit.length = 1)) {
prerequisit = prerequisit[0];
} else {
prerequisit = undefined;
}
this.count++;
this.directives[this.unique_id] = new Array();
this.directives[this.unique_id].id = this.unique_id;
this.directives[this.unique_id].method = this.registred_actions[action].method;
this.directives[this.unique_id].property = this.registred_actions[action].property;
this.directives[this.unique_id].previouse = prerequisit;
this.directives[this.unique_id].parametrs = this.registred_actions[action].parametrs.duplicate();
for (var _local8 in this.directives[this.unique_id].parametrs) {
if (this.directives[this.unique_id].parametrs[_local8] eq "__id") {
this.directives[this.unique_id].parametrs[_local8] = this.unique_id;
} else if (parametrs[this.directives[this.unique_id].parametrs[_local8]] != undefined) {
this.directives[this.unique_id].parametrs[_local8] = parametrs[this.directives[this.unique_id].parametrs[_local8]];
}
}
var _local12 = this.unique_id;
this.unique_id++;
if (this.registred_composit_properties[this.directives[_local12].property] != undefined) {
var _local9 = this.registred_composit_properties[this.directives[_local12].property].duplicate();
this.directives[_local12].property = _local9[0];
var _local8 = 1;
while (_local8 < _local9.length) {
this.directives[this.unique_id] = new Array();
this.directives[this.unique_id].id = this.unique_id;
this.directives[this.unique_id].method = "waypoint";
this.directives[this.unique_id].property = _local9[_local8];
this.directives[this.unique_id].parametrs = undefined;
this.directives[this.unique_id].previouse = _local12;
this.unique_id++;
_local8++;
}
}
} else {
var _local12 = this.unique_id - 1;
trace(("Error: Undefined action'" add action) add "'");
}
return(_local12);
};
this.doPossibleActions = function () {
var min_i = 1000000;
var max_i = 0;
var executable = true;
var changed = true;
var i;
var j;
for (var i in this.directives) {
min_i = Math.min(i, min_i);
max_i = Math.max(i, max_i);
}
if (min_i != undefined) {
while (changed) {
changed = false;
var i = min_i;
while ((i <= max_i) && (!changed)) {
if (this.directives[i] != undefined) {
executable = true;
if (isNumber(this.directives[i].previouse)) {
if ((this.directives[this.directives[i].previouse] != undefined) || (this.in_progress[this.directives[i].previouse] != undefined)) {
executable = false;
}
} else {
for (var j in this.in_progress) {
if (this.in_progress[j].property eq this.directives[i].previouse) {
executable = false;
}
}
var j = min_i;
while (j < i) {
if (this.directives[j].property eq this.directives[i].previouse) {
executable = false;
}
j++;
}
}
if (executable) {
if (this.directives[i].method == "waypoint") {
changed = true;
} else if (this.directives[i].method eq "delay") {
this.in_progress[i] = this.directives[i];
} else {
var instance = this.directives[i].method.substring(0, this.directives[i].method.indexOf("."));
if (this.directives[i].method.indexOf(".") != -1) {
instance = "_root." add instance;
} else {
instance = "_root";
}
Set(instance add ".__temporary_function", eval ("_root." add this.directives[i].method));
var p = this.directives[i].parametrs;
if (eval ("_root." add this.directives[i].method) == undefined) {
trace("InterfaceComander ERROR: Fail to call function _root." + this.directives[i].method);
} else {
Set(instance add ".__interface_operation_id", i);
var in_progress = eval ("_root." add this.directives[i].method)(p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15], p[16], p[17], p[18], p[19], p[20], p[21], p[22], p[23], p[24], p[25]);
if ((in_progress === false) || (in_progress === undefined)) {
delete eval (instance add ".__interface_operation_id");
changed = true;
this.count--;
} else {
this.in_progress[i] = this.directives[i];
var temp_function = function (id) {
if (id == undefined) {
InterfaceComander.actionDone(__interface_operation_id);
delete __interface_operation_id;
} else {
InterfaceComander.actionDone(id);
}
};
Set(instance add ".__interfaceActionDone", temp_function);
ASSetPropFlags(this, "__interface_operation_id,__interfaceActionDone", 3, false);
}
}
}
delete this.directives[i];
}
}
i++;
}
}
}
};
this.actionDone = function (id) {
if (this.in_progress[id]) {
this.count--;
}
delete this.in_progress[id];
this.doPossibleActions();
};
this.oncePerFrame = function () {
this.doPossibleActions();
for (var _local2 in this.in_progress) {
if (this.in_progress[_local2].method == "delay") {
this.in_progress[_local2].parametrs[0]--;
if (this.in_progress[_local2].parametrs[0] < 0) {
this.ActionDone(_local2);
}
}
}
};
this.registerAction("delay", "delay(0)", undefined, undefined);
ASSetPropFlags(this, "unique_id", 3, true);
ASSetPropFlags(this, "registred_actions,registred_composit_actions,registred_composit_properties,in_progress,directives", 3, true);
ASSetPropFlags(this, "init,registerCompositProperty,registerAction,registerComplexAction,requestAction,doPossibleActions,actionDone,oncePerFrame", 6, true);
};
InterfaceComander = new InterfaceComander_prototype();
_global.XMLPatch = function (this_xml, patch) {
var _local7 = 0;
var _local5 = 0;
var _local3 = this_xml;
var _local4 = "";
if (patch.charAt(0) == "/") {
_local7 = 1;
while (_local3.parentNode != null) {
_local3 = _local3.parentNode;
}
}
while (_local7 < patch.length) {
_local5 = patch.indexOf("/", _local7);
_local5 = ((_local5 == -1) ? (path.length) : (_local5));
_local4 = patch.substring(_local7, _local5);
_local3 = _local3.firstChild;
_local5 = _local4.indexOf(":");
if (-1 == _local5) {
while ((_local3 != null) && (_local3.nodeName.toUpperCase() != _local4.toUpperCase())) {
_local3 = _local3.nextSibling;
}
} else {
var _local8 = _local4.substring(0, _local5).toUpperCase();
do {
if (_local3.nodeName.toUpperCase() == _local8) {
var _local6 = _local5 + 1;
var _local1 = _local4.indexOf(":", _local6);
_local1 = ((_local1 != -1) ? (_local1) : (_local4.length));
_local1 = _local4.substring(_local6, _local1);
if (_local3.attributes[_local1] != null) {
return(_local3.attributes[_local1]);
}
var _local2 = _local1.indexOf("=");
if (_local2 > 0) {
if (_local1.charAt(_local2 - 1) == ">") {
if (Number(_local3.attributes[_local1.substring(0, _local2 - 1)]) >= Number(_local1.substring(_local2 + 1, _local1.length))) {
break;
}
} else if (_local1.charAt(_local2 - 1) == "<") {
if (Number(_local3.attributes[_local1.substring(0, _local2 - 1)]) <= Number(_local1.substring(_local2 + 1, _local1.length))) {
break;
}
} else if (_local1.charAt(_local2 - 1) == "!") {
if (_local3.attributes[_local1.substring(0, _local2 - 1)].toUpperCase() != _local1.substring(_local2 + 1, _local1.length).toUpperCase()) {
break;
}
} else if (_local3.attributes[_local1.substring(0, _local2)].toUpperCase() == _local1.substring(_local2 + 1, _local1.length).toUpperCase()) {
break;
}
}
_local2 = _local1.indexOf(">");
if (-1 != _local2) {
if (Number(_local3.attributes[_local1.substring(0, _local2)]) > Number(_local1.substring(_local2 + 1, _local1.length))) {
break;
}
} else {
_local2 = _local1.indexOf("<");
if (-1 != _local2) {
if (Number(_local3.attributes[_local1.substring(0, _local2)]) < Number(_local1.substring(_local2 + 1, _local1.length))) {
break;
}
}
}
}
_local3 = _local3.nextSibling;
} while (null != _local3);
}
_local7 = _local7 + (_local4.length + 1);
}
return(_local3);
};
_global.XMLinspect = function (temp_xml) {
if (temp_xml.nodeName != undefined) {
var _local2 = temp_xml.nodeName;
for (var _local3 in temp_xml.attributes) {
_local2 = _local2 + ((((" " + _local3) + "=\"") + temp_xml.attributes[_local3]) + "\"");
}
if (temp_xml.parentNode != null) {
_local2 = _local2 + " _parent";
}
if (temp_xml.childNodes != null) {
_local2 = _local2 + " _childs";
}
return(("<" + _local2) + "/>");
}
return(undefined);
};
InterfaceComander.registerAction("bear_move", "bear.move()", "bear", "bear");
InterfaceComander.registerAction("bear_rotate", "bear.rotate(direction)", "bear", "bear");
InterfaceComander.registerAction("bear_stand", "bear.stand(x,y)", "bear", "bear");
InterfaceComander.registerAction("bear_teleport", "bear.teleport(to_x,to_y)", "bear", "bear");
InterfaceComander.registerAction("bear_jamping", "bear.jump()", "bear", "bear");
InterfaceComander.registerAction("transporter_move", "transporter_move(x,y,direction)", "bear", "bear");
InterfaceComander.registerAction("transporter_openWay", "transporter_openWay(x,y)", "bear");
InterfaceComander.registerAction("transporter_closeWay", "transporter_closeWay(x,y)", "bear");
InterfaceComander.registerAction("mover_move", "mover.move(from_x,from_y,to_x,to_y,block_type)");
InterfaceComander.registerAction("block_view", "block_view(x,y,view)");
InterfaceComander.registerAction("block_replace", "block_replace(x,y,view)");
InterfaceComander.registerAction("block_animation", "block_animation(x,y,view)");
InterfaceComander.registerAction("fruit_remove", "fruit_remove(x,y)");
InterfaceComander.registerAction("key_remove", "key_remove(i)");
InterfaceComander.registerAction("removeAllArrows", "handler_removeAllArrows()");
InterfaceComander.registerAction("exit_level", "exit_level(next_level,solution)");
i = 0;
while (this["l" + i] != null) {
this["l" + i].swapDepths((i + 1) * 100);
i++;
}
bear.swapDepths(4050);
screen_off.swapDepths(5000);
mousePointer.swapDepths(6000);
if (map == undefined) {
map = new Array(20);
}
if (fruit == undefined) {
fruit = new Array();
}
if (keys == undefined) {
keys = new Object();
}
x = 0;
while (x < 13) {
map[x] = new Array(20);
x++;
}
moveToOrder = new Array();
this.handler_fileLoaded = function (var_name) {
handler_startLevel(XMLPatch(this[var_name], "/LEVEL"));
};
this.handler_error = function (message) {
trace("ERROR: " + message);
};
this.handler_startLevel = function (level_xml) {
screen_off.closed();
for (var _local10 in this.map) {
for (var _local7 in this.map[_local10]) {
this["l" + _local10]["b" + _local7].gotoAndStop("none");
}
delete this.map[_local10];
}
for (var _local10 in this.fruit) {
for (var _local7 in this.fruit[_local10]) {
this[(("fru" + _local7) + "y") + _local10].removeMovieClip();
}
delete this.fruit[_local10];
}
for (var _local9 in this.keys) {
this[("key" + _local9) + "indicator"].removeMovieClip();
delete this.keys[_local9];
}
fruits_count = 0;
delete exit_point;
var _local3 = level_xml.firstChild;
while (_local3 != null) {
if (_local3.nodeName.toUpperCase() == "LINE") {
var _local5 = _local3.attributes.Y;
if (this.map[_local5] == undefined) {
this.map[_local5] = new Array();
}
for (var _local9 in _local3.attributes) {
if ((_local9.charAt(0) == "X") && (!isNaN(_local9.substr(1, _local9.length)))) {
this.map[_local5][Number(_local9.substr(1, _local9.length))] = _local3.attributes[_local9];
}
}
} else if (_local3.nodeName.toUpperCase() == "FRUIT") {
var _local5 = _local3.attributes.Y;
if (this.fruit[_local5] == undefined) {
this.fruit[_local5] = new Array();
}
for (var _local9 in _local3.attributes) {
if ((_local9.charAt(0) == "X") && (!isNaN(_local9.substr(1, _local9.length)))) {
if (_local3.attributes[_local9].substring(0, "key".length) != "key") {
fruits_count++;
}
this.fruit[_local5][Number(_local9.substr(1, _local9.length))] = _local3.attributes[_local9];
}
}
} else if (_local3.nodeName.toUpperCase() == "EXIT") {
if (exit_point == undefined) {
exit_point = new Array(_local3.attributes.X, _local3.attributes.Y);
}
}
_local3 = _local3.nextSibling;
}
for (var _local9 in this) {
if ((_local9.charAt(0) == "l") && (!isNaN(_local9.substr(1, _local9.length)))) {
for (var _local6 in this[_local9]) {
if ((_local6.charAt(0) == "b") && (!isNaN(_local6.substr(1, _local6.length)))) {
this[_local9][_local6].setView("none");
var _local4 = this.map[Number(_local9.substring(1, _local9.length))][Number(_local6.substring(1, _local6.length))];
if (_local4 != undefined) {
this[_local9][_local6].setView(_local4);
}
}
}
}
if (_local9.substring(0, 2) eq "fru") {
this[_local9].removeMovieClip();
}
}
for (var _local9 in this.fruit) {
for (var _local6 in this.fruit[_local9]) {
duplicateMovieClip ("pattern_fruit", (("fru" + _local6) + "y") + _local9, (((Number(_local9) + 1) * 100) + 5) + Number(_local6));
this[(("fru" + _local6) + "y") + _local9].gotoAndStop(this.fruit[_local9][_local6]);
this[(("fru" + _local6) + "y") + _local9]._x = this["l" + _local9]._x + this["l" + _local9]["b" + _local6]._x;
this[(("fru" + _local6) + "y") + _local9]._y = this["l" + _local9]._y + this["l" + _local9]["b" + _local6]._y;
}
}
var _local11 = XMLPatch(level_xml, "BEAR");
this.bear.direction = 4;
this.bear.stand(_local11.attributes.X, _local11.attributes.Y);
moveToX = undefined;
moveToY = undefined;
handler_removeAllArrows();
screen_off.open();
Level_label_obj.gotoAndPlay(1);
Level_label_obj.Label.gotoAndStop(_global.current_level.substring(1, 2));
level_startSnd.start();
};
Frame 4
function game_checkTerrain(terrain_type) {
return(((((((((((terrain_type eq "block") || (terrain_type eq "block_up")) || (terrain_type eq "ice_opened")) || (terrain_type eq "broken")) || (terrain_type eq "door1_opened")) || (terrain_type eq "door2_opened")) || (terrain_type eq "door3_opened")) || (terrain_type eq "teleport1")) || (terrain_type eq "teleport2")) || (terrain_type eq "teleport3")) || (terrain_type.substring(0, "transporter".length) == "transporter"));
}
function game_moveTo(x, y, previouse) {
var _local13 = Number(x) - Number(this.bear.position[0]);
var _local12 = Number(y) - Number(this.bear.position[1]);
current_direction = this.bear.direction;
if ((Math.abs(_local13) <= 1) && (Math.abs(_local12) <= 1)) {
if (game_checkTerrain(map[y][x])) {
if ((Math.abs(_local13) == 0) && (Math.abs(_local12) == 1)) {
var _local8 = 0;
} else if ((Math.abs(_local13) == 1) && (Math.abs(_local12) == 1)) {
var _local8 = 1;
} else if ((Math.abs(_local13) == 1) && (Math.abs(_local12) == 0)) {
var _local8 = 2;
}
if (_local12 == 1) {
var _local8 = 4 - _local8;
}
if (_local13 == -1) {
var _local8 = 8 - _local8;
}
if (((_local8 % 2) == 1) && ((!game_checkTerrain(map[y][this.bear.position[0]])) || (!game_checkTerrain(map[this.bear.position[1]][x])))) {
return(false);
}
var _local4 = previouse;
if ((((8 + _local8) - current_direction) % 8) < 4) {
while (current_direction != _local8) {
current_direction = (current_direction + 1) % 8;
_local4 = InterfaceComander.requestAction("bear_rotate", "direction=1", _local4);
}
} else {
while (current_direction != _local8) {
current_direction = (current_direction + 7) % 8;
_local4 = InterfaceComander.requestAction("bear_rotate", "direction=-1", _local4);
}
}
if (fruit[y][x] != undefined) {
if (((fruit[y][x] == "key1") || (fruit[y][x] == "key2")) || (fruit[y][x] == "key3")) {
var _local7 = 0;
while (keys[_local7] != null) {
_local7++;
}
keys[_local7] = fruit[y][x];
duplicateMovieClip ("pattern_fruit", ("key" + _local7) + "indicator", 5000 + Number(_local7));
this[("key" + _local7) + "indicator"].gotoAndStop(this.fruit[y][x]);
this[("key" + _local7) + "indicator"]._x = 300 + (35 * Number(_local7));
this[("key" + _local7) + "indicator"]._y = 580;
} else if (fruits_count <= 1) {
id1 = InterfaceComander.requestAction("block_animation", ((("x=" + exit_point[0]) + ",y=") + exit_point[1]) + ",view=Ice_open", _local4);
InterfaceComander.requestAction("block_replace", ((("x=" + exit_point[0]) + ",y=") + exit_point[1]) + ",view=ice_opened", _local4);
InterfaceComander.requestAction("block_view", ((("x=" + exit_point[0]) + ",y=") + exit_point[1]) + ",view=Ice_opened", id1);
open_exitSnd.start();
}
InterfaceComander.requestAction("fruit_remove", (("x=" + x) + ",y=") + y, _local4);
}
if (map[this.bear.position[1]][this.bear.position[0]] == "broken") {
id1 = InterfaceComander.requestAction("block_animation", ((("x=" + this.bear.position[0]) + ",y=") + this.bear.position[1]) + ",view=broken_off", _local4);
InterfaceComander.requestAction("block_view", ((("x=" + this.bear.position[0]) + ",y=") + this.bear.position[1]) + ",view=none", id1);
InterfaceComander.requestAction("block_replace", ((("x=" + this.bear.position[0]) + ",y=") + this.bear.position[1]) + ",view=none", id1);
}
if (map[this.bear.position[1]][this.bear.position[0]] == "block") {
InterfaceComander.requestAction("block_animation", ((("x=" + this.bear.position[0]) + ",y=") + this.bear.position[1]) + ",view=block_up", _local4);
}
if (map[this.bear.position[1]][this.bear.position[0]] == "block_up") {
id1 = InterfaceComander.requestAction("block_animation", ((("x=" + this.bear.position[0]) + ",y=") + this.bear.position[1]) + ",view=block_up", _local4);
InterfaceComander.requestAction("block_replace", ((("x=" + this.bear.position[0]) + ",y=") + this.bear.position[1]) + ",view=block", id1);
}
if (map[y][x] == "block") {
InterfaceComander.requestAction("block_animation", ((("x=" + x) + ",y=") + y) + ",view=block_down", _local4);
}
_local4 = InterfaceComander.requestAction("bear_move", "", undefined);
if (((map[y][x] == "teleport1") || (map[y][x] == "teleport2")) || (map[y][x] == "teleport3")) {
var _local9;
var _local10;
for (var _local14 in _root.map) {
for (var _local11 in _root.map[_local14]) {
if ((map[y][x] == map[_local14][_local11]) && ((_local11 != x) || (_local14 != y))) {
_local9 = _local11;
_local10 = _local14;
}
}
}
if (_local9 != undefined) {
_local4 = InterfaceComander.requestAction("bear_teleport", (("to_x=" + _local9) + ",to_y=") + _local10, undefined);
hero_teleportSnd.start();
}
}
if ((x == exit_point[0]) && (y == exit_point[1])) {
if (((12 - current_direction) % 8) < 4) {
while (current_direction != 4) {
current_direction = (current_direction + 1) % 8;
_local4 = InterfaceComander.requestAction("bear_rotate", "direction=1", _local4);
}
} else {
while (current_direction != 4) {
current_direction = (current_direction + 7) % 8;
_local4 = InterfaceComander.requestAction("bear_rotate", "direction=-1", _local4);
}
}
_local4 = InterfaceComander.requestAction("bear_jamping");
sumK = ((inf.levels[0] + inf.levels[1]) + inf.levels[2]) + inf.levels[3];
sumS = ((inf.levels[4] + inf.levels[5]) + inf.levels[6]) + inf.levels[7];
if (_global.current_level == "K1") {
inf.levels[0] = 1;
}
if (_global.current_level == "K2") {
inf.levels[1] = 1;
}
if (_global.current_level == "K3") {
inf.levels[2] = 1;
}
if (_global.current_level == "K4") {
inf.levels[3] = 1;
}
if (_global.current_level == "S1") {
inf.levels[4] = 1;
}
if (_global.current_level == "S2") {
inf.levels[5] = 1;
}
if (_global.current_level == "S3") {
inf.levels[6] = 1;
}
if (_global.current_level == "S4") {
inf.levels[7] = 1;
}
so.data.content = inf;
sumK_ = ((inf.levels[0] + inf.levels[1]) + inf.levels[2]) + inf.levels[3];
sumS_ = ((inf.levels[4] + inf.levels[5]) + inf.levels[6]) + inf.levels[7];
_root.E_flag == "menu";
if (((sumK == 3) && (sumK_ == 4)) || ((sumS == 3) && (sumS_ == 4))) {
_root.Win_flag = true;
_root.E_flag = "dload";
}
level_completedSnd.start();
_local4 = InterfaceComander.requestAction("exit_level", undefined, _local4);
}
return(_local4);
}
handler_failedToMove(x, y);
} else {
if ((current_x == x) && (current_y == y)) {
handler_error("Move to the same position.");
return(false);
}
return(false);
}
}
function handler_failedToMove(x, y) {
handler_error(((("Failed to move (x=" + x) + ", y=") + y) + ")");
moveToX = undefined;
moveToY = undefined;
click_notavailableSnd.start();
}
function game_calculatePatch(x, y) {
while (moveToOrder.length > 0) {
moveToOrder.shift();
}
if (game_checkTerrain(map[y][x])) {
if ((x == this.bear.position[0]) && (y == this.bear.position[1])) {
return(undefined);
}
if ((Math.abs(x - this.bear.position[0]) <= 1) && (Math.abs(y - this.bear.position[1]) <= 1)) {
if (((x - this.bear.position[0]) * (y - this.bear.position[1])) == 0) {
return(Array(x, y));
}
if (game_checkTerrain(map[y][this.bear.position[0]]) && (game_checkTerrain(map[this.bear.position[1]][x]))) {
return(Array(x, y));
}
}
var _local4 = new Array();
var _local5 = new Array();
for (var _local2 in map) {
for (var _local3 in map[_local2]) {
if (game_checkTerrain(map[_local2][_local3])) {
if (_local4[_local2] == undefined) {
_local4[_local2] = new Array();
}
_local4[_local2][_local3] = 0;
}
}
}
var _local7 = 1;
_local4[y][x] = _local7;
_local5[y] = new Array();
_local5[y][x] = _local7;
var _local9 = 0;
do {
_local9 = 0;
for (var _local14 in _local5) {
for (var _local13 in _local5[_local14]) {
if (_local5[_local14][_local13] == _local7) {
var _local3 = Number(_local13);
var _local2 = Number(_local14);
if (_local4[_local2 + 1][_local3] == 0) {
_local9++;
_local4[_local2 + 1][_local3] = _local7 + 1;
if (_local5[_local2 + 1] == undefined) {
_local5[_local2 + 1] = new Array();
}
_local5[_local2 + 1][_local3] = _local7 + 1;
}
if (_local4[_local2 - 1][_local3] == 0) {
_local9++;
_local4[_local2 - 1][_local3] = _local7 + 1;
if (_local5[_local2 - 1] == undefined) {
_local5[_local2 - 1] = new Array();
}
_local5[_local2 - 1][_local3] = _local7 + 1;
}
if (_local4[_local2][_local3 + 1] == 0) {
_local9++;
_local4[_local2][_local3 + 1] = _local7 + 1;
if (_local5[_local2] == undefined) {
_local5[_local2] = new Array();
}
_local5[_local2][_local3 + 1] = _local7 + 1;
}
if (_local4[_local2][_local3 - 1] == 0) {
_local9++;
_local4[_local2][_local3 - 1] = _local7 + 1;
if (_local5[_local2] == undefined) {
_local5[_local2] = new Array();
}
_local5[_local2][_local3 - 1] = _local7 + 1;
}
if (((_local4[_local2 + 1][_local3 + 1] == 0) && (_local4[_local2][_local3 + 1] != undefined)) && (_local4[_local2 + 1][_local3] != undefined)) {
_local9++;
_local4[_local2 + 1][_local3 + 1] = _local7 + 1;
if (_local5[_local2 + 1] == undefined) {
_local5[_local2 + 1] = new Array();
}
_local5[_local2 + 1][_local3 + 1] = _local7 + 1;
}
if (((_local4[_local2 + 1][_local3 - 1] == 0) && (_local4[_local2][_local3 - 1] != undefined)) && (_local4[_local2 + 1][_local3] != undefined)) {
_local9++;
_local4[_local2 + 1][_local3 - 1] = _local7 + 1;
if (_local5[_local2 + 1] == undefined) {
_local5[_local2 + 1] = new Array();
}
_local5[_local2 + 1][_local3 - 1] = _local7 + 1;
}
if (((_local4[_local2 - 1][_local3 + 1] == 0) && (_local4[_local2][_local3 + 1] != undefined)) && (_local4[_local2 - 1][_local3] != undefined)) {
_local9++;
_local4[_local2 - 1][_local3 + 1] = _local7 + 1;
if (_local5[_local2 - 1] == undefined) {
_local5[_local2 - 1] = new Array();
}
_local5[_local2 - 1][_local3 + 1] = _local7 + 1;
}
if (((_local4[_local2 - 1][_local3 - 1] == 0) && (_local4[_local2][_local3 - 1] != undefined)) && (_local4[_local2 - 1][_local3] != undefined)) {
_local9++;
_local4[_local2 - 1][_local3 - 1] = _local7 + 1;
if (_local5[_local2 - 1] == undefined) {
_local5[_local2 - 1] = new Array();
}
_local5[_local2 - 1][_local3 - 1] = _local7 + 1;
}
delete _local5[_local2][_local3];
}
}
}
if (_local4[this.bear.position[1]][this.bear.position[0]] != 0) {
var _local3 = this.bear.position[0];
var _local2 = this.bear.position[1];
while (_local7 > 1) {
var _local10 = true;
var _local8 = (10 + Math.round((4 * Math.atan2(y - _local2, x - _local3)) / Math.PI)) % 8;
var _local6 = 0;
while (_local6 <= 4) {
if ((_local4[_local2 - Math.round(Math.cos((Math.PI * (_local8 + _local6)) / 4))][_local3 + Math.round(Math.sin((Math.PI * (_local8 + _local6)) / 4))] == _local7) && (_local10)) {
if (((_local8 + _local6) % 2) == 1) {
if ((_local4[_local2][_local3 + Math.round(Math.sin((Math.PI * (_local8 + _local6)) / 4))] != undefined) && (_local4[_local2 - Math.round(Math.cos((Math.PI * (_local8 + _local6)) / 4))][_local3] != undefined)) {
_local3 = _local3 + Math.round(Math.sin((Math.PI * (_local8 + _local6)) / 4));
_local2 = _local2 - Math.round(Math.cos((Math.PI * (_local8 + _local6)) / 4));
moveToOrder.push(Array(_local3, _local2));
_local10 = false;
}
} else {
_local3 = _local3 + Math.round(Math.sin((Math.PI * (_local8 + _local6)) / 4));
_local2 = _local2 - Math.round(Math.cos((Math.PI * (_local8 + _local6)) / 4));
moveToOrder.push(Array(_local3, _local2));
_local10 = false;
}
}
if ((_local4[_local2 - Math.round(Math.cos((Math.PI * (_local8 - _local6)) / 4))][_local3 + Math.round(Math.sin((Math.PI * (_local8 - _local6)) / 4))] == _local7) && (_local10)) {
if (((_local8 - _local6) % 2) == 1) {
if ((_local4[_local2][_local3 + Math.round(Math.sin((Math.PI * (_local8 - _local6)) / 4))] != undefined) && (_local4[_local2 - Math.round(Math.cos((Math.PI * (_local8 - _local6)) / 4))][_local3] != undefined)) {
_local3 = _local3 + Math.round(Math.sin((Math.PI * (_local8 - _local6)) / 4));
_local2 = _local2 - Math.round(Math.cos((Math.PI * (_local8 - _local6)) / 4));
moveToOrder.push(Array(_local3, _local2));
_local10 = false;
}
} else {
_local3 = _local3 + Math.round(Math.sin((Math.PI * (_local8 - _local6)) / 4));
_local2 = _local2 - Math.round(Math.cos((Math.PI * (_local8 - _local6)) / 4));
moveToOrder.push(Array(_local3, _local2));
_local10 = false;
}
}
_local6++;
}
_local7--;
}
return(moveToOrder.shift());
}
if (_local9 == 0) {
return(undefined);
}
_local7++;
} while (_local9 != 0);
}
}
Frame 5
function readyForAction() {
trace("function readyForAction()");
readyFor = true;
return(false);
}
function handler_mouseClick(x, y) {
trace(((("mouseClick(x=" + x) + "; y=") + y) + ")");
if (!(false === game_checkTerrain(map[y][x]))) {
trace("Go!");
handler_removeAllArrows();
moveToX = x;
moveToY = y;
while (moveToOrder.length > 0) {
trace("clear old path");
moveToOrder.shift();
}
if (InterfaceComander.count == 0) {
trace("Ready! Go, go!");
readyFor = true;
} else {
trace("IC_count: " + InterfaceComander.count);
}
} else if (_root.map[y][x].substring(0, 4) == "door") {
handler_removeAllArrows();
var _local4 = map[y][x];
var _local5 = "key" + map[y][x].substring("key".length + 1, map[y][x].length);
for (var _local6 in keys) {
if (keys[_local6] == _local5) {
InterfaceComander.requestAction("key_remove", "i=" + _local6, id);
id1 = InterfaceComander.requestAction("block_animation", ((((("x=" + x) + ",y=") + y) + ",view=") + _local4) + "_open", id);
InterfaceComander.requestAction("block_view", ((((("x=" + x) + ",y=") + y) + ",view=") + _local4) + "_opened", id1);
InterfaceComander.requestAction("block_replace", ((((("x=" + x) + ",y=") + y) + ",view=") + _local4) + "_opened", id1);
break;
}
}
} else {
handler_failedToMove(x, y);
}
}
function handler_arrowAdd(x, y) {
handler_removeAllArrows();
if ((map[Number(y) - 1][x] == undefined) && (((map[y][x] == "transporter0") || (map[y][x] == "transporter4")) || (map[y][x] == "transporter6"))) {
_root["l" + y]["b" + x].Arrow0._visible = true;
}
if ((map[y][Number(x) + 1] == undefined) && (((map[y][x] == "transporter1") || (map[y][x] == "transporter5")) || (map[y][x] == "transporter6"))) {
_root["l" + y]["b" + x].Arrow2._visible = true;
}
if ((map[Number(y) + 1][x] == undefined) && (((map[y][x] == "transporter2") || (map[y][x] == "transporter4")) || (map[y][x] == "transporter6"))) {
_root["l" + y]["b" + x].Arrow4._visible = true;
}
if ((map[y][Number(x) - 1] == undefined) && (((map[y][x] == "transporter3") || (map[y][x] == "transporter5")) || (map[y][x] == "transporter6"))) {
_root["l" + y]["b" + x].Arrow6._visible = true;
}
}
function handler_blockMove(x, y, direction) {
handler_removeAllArrows();
InterfaceComander.requestAction("transporter_move", (((("x=" + x) + ",y=") + y) + ",direction=") + direction);
}
InterfaceComander.registerAction("readyForAction", "readyForAction()");
Frame 6
stop();
if (close_f == undefined) {
_root.Exit_obj._visible = false;
} else {
_root.Exit_obj._visible = true;
}
if (_root.alawar_f != undefined) {
dload._visible = false;
}
Instance of Symbol 310 MovieClip "Help_obj" in Frame 6
onClipEvent (load) {
_visible = false;
}
Frame 7
if (_root.Win_flag) {
gotoAndStop ("DLoad");
}
if (_root.E_flag == "dload") {
_root.E_flag = "";
gotoAndStop ("DLoad");
}
if (_root.E_flag == "menu") {
_root.E_flag = "";
gotoAndStop ("Menu");
}
if (_root.alawar_f != undefined) {
dload._visible = false;
}
Frame 16
if (inf.levels[0] == 1) {
Bird_1.gotoAndStop(2);
} else {
Bird_1.gotoAndStop(1);
}
if (inf.levels[1] == 1) {
Bird_2.gotoAndStop(2);
} else {
Bird_2.gotoAndStop(1);
}
if (inf.levels[2] == 1) {
Bird_3.gotoAndStop(2);
} else {
Bird_3.gotoAndStop(1);
}
if (inf.levels[3] == 1) {
Bird_4.gotoAndStop(2);
} else {
Bird_4.gotoAndStop(1);
}
if (_root.alawar_f != undefined) {
dload._visible = false;
}
Frame 20
if (inf.levels[4] == 1) {
Bird_5.gotoAndStop(2);
} else {
Bird_5.gotoAndStop(1);
}
if (inf.levels[5] == 1) {
Bird_6.gotoAndStop(2);
} else {
Bird_6.gotoAndStop(1);
}
if (inf.levels[6] == 1) {
Bird_7.gotoAndStop(2);
} else {
Bird_7.gotoAndStop(1);
}
if (inf.levels[7] == 1) {
Bird_8.gotoAndStop(2);
} else {
Bird_8.gotoAndStop(1);
}
Frame 27
Level_label_obj._visible = true;
if (_root.alawar_f != undefined) {
dload._visible = false;
}
Instance of Symbol 360 MovieClip "Level_label_obj" in Frame 27
onClipEvent (load) {
Level_label_obj.swapDepths(100000);
Level_label_obj._visible = false;
}
Frame 33
readyFor = false;
if (moveToX != undefined) {
if ((moveToX == this.bear.position[0]) && (moveToY == this.bear.position[1])) {
moveToX = undefined;
moveToY = undefined;
} else {
step = undefined;
step = moveToOrder.shift();
if (step != undefined) {
if (!game_checkTerrain(map[step[1]][step[0]])) {
delete step;
}
}
if (step == undefined) {
step = game_calculatePatch(moveToX, moveToY);
}
if (step == undefined) {
moveToX = undefined;
moveToY = undefined;
} else {
id = game_moveTo(step[0], step[1]);
id = InterfaceComander.requestAction("readyForAction", undefined, id);
}
}
}
if ((((_root.E_flag == "dload") || (_root.E_flag == "menu")) || (_root.E_flag == "restart")) && (allow_F == true)) {
if ((InterfaceComander.count == 0) && (_root.E_flag == "restart")) {
allow_F = false;
gotoAndPlay ("game");
exit_level(-1);
return(undefined);
}
if (InterfaceComander.count == 0) {
allow_F = false;
exit_level();
}
}
gotoAndPlay(_currentframe + 1);
Frame 35
InterfaceComander.oncePerFrame();
if (_currentframe > 30) {
if (readyFor) {
gotoAndPlay ("readyForAction");
} else {
gotoAndPlay(_currentframe - 1);
}
}
Frame 36
stop();
if (_root.Win_flag) {
Dload_o._y = 229;
Win_o._visible = true;
_root.Win_flag = false;
} else {
Dload_o._y = 175;
Win_o._visible = false;
}
Frame 37
stop();
_quality = "HIGH";
gotoAndStop (6);
Frame 38
stop();
_quality = "HIGH";
gotoAndStop (36);
Symbol 19 MovieClip Frame 1
gotoAndStop(Math.floor((Math.random() * 5) + 1));
Symbol 37 MovieClip Frame 1
if ((Math.random() * 3) < 1) {
gotoAndStop ("list");
} else {
stop();
}
Symbol 47 MovieClip Frame 1
wait = Math.random() * 10;
Symbol 47 MovieClip Frame 3
if (wait > 0) {
wait--;
gotoAndPlay(_currentframe - 1);
}
Symbol 54 Button
on (release) {
_parent._parent._parent.handler_blockMove(Math.floor(((_parent._parent._x + _parent._x) - 10) / 40), Math.floor(((_parent._parent._y + _parent._y) - 10) / 40), 0);
}
Symbol 57 Button
on (release) {
_parent._parent.handler_mouseClick(Math.floor(((_parent._x + _x) - 10) / 40), Math.floor(((_parent._y + _y) - 10) / 40));
}
on (rollOver) {
_parent._parent.handler_arrowAdd(Math.floor(((_parent._x + _x) - 10) / 40), Math.floor(((_parent._y + _y) - 10) / 40));
}
Symbol 63 Button
on (release) {
_parent._parent._parent.handler_blockMove(Math.floor(((_parent._parent._x + _parent._x) - 10) / 40), Math.floor(((_parent._parent._y + _parent._y) - 10) / 40), 2);
}
Symbol 70 Button
on (release) {
_parent._parent._parent.handler_blockMove(Math.floor(((_parent._parent._x + _parent._x) - 10) / 40), Math.floor(((_parent._parent._y + _parent._y) - 10) / 40), 4);
}
Symbol 78 Button
on (release) {
_parent._parent._parent.handler_blockMove(Math.floor(((_parent._parent._x + _parent._x) - 10) / 40), Math.floor(((_parent._parent._y + _parent._y) - 10) / 40), 6);
}
Symbol 87 MovieClip Frame 1
function setView(view) {
gotoAndStop(view);
return(false);
}
function setAnimation(view) {
gotoAndPlay(view);
return(true);
}
function actionDone() {
if (__interface_operation_id != undefined) {
var _local2 = __interface_operation_id;
delete __interface_operation_id;
_root.InterfaceComander.actionDone(_local2);
}
}
gotoAndStop ("none");
Symbol 87 MovieClip Frame 15
stop();
actionDone();
Symbol 87 MovieClip Frame 21
stop();
actionDone();
Symbol 87 MovieClip Frame 42
stop();
actionDone();
Symbol 87 MovieClip Frame 62
stop();
actionDone();
Symbol 87 MovieClip Frame 101
stop();
actionDone();
Symbol 87 MovieClip Frame 120
Arrow0._visible = false;
Symbol 87 MovieClip Frame 141
Arrow2._visible = false;
Symbol 87 MovieClip Frame 162
Arrow4._visible = false;
Symbol 87 MovieClip Frame 183
Arrow6._visible = false;
Symbol 87 MovieClip Frame 204
Arrow2._visible = false;
Arrow6._visible = false;
Symbol 87 MovieClip Frame 225
Arrow0._visible = false;
Arrow4._visible = false;
Symbol 87 MovieClip Frame 246
Arrow0._visible = false;
Arrow2._visible = false;
Arrow4._visible = false;
Arrow6._visible = false;
Symbol 102 MovieClip Frame 1
function dropDown() {
_height = (_parent.bear._height + 15);
_y = _parent.bear._y;
_parent.bear.setMask(this);
gotoAndPlay ("drop");
}
function openUp() {
_height = (_parent.bear._height + 15);
_y = (_parent.bear._y - _height);
_parent.bear.setMask(this);
gotoAndPlay ("open");
}
wait = 15;
Symbol 102 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 3
i = 0;
gotoAndPlay(_currentframe + 2);
Symbol 102 MovieClip Frame 6
if (i < wait) {
i++;
_y = (_parent.bear._y - ((_height * i) / wait));
gotoAndPlay(_currentframe - 1);
}
Symbol 102 MovieClip Frame 7
_parent.removeMovieClip();
Symbol 102 MovieClip Frame 8
i = wait;
gotoAndPlay(_currentframe + 2);
Symbol 102 MovieClip Frame 11
if (i > 0) {
i--;
_y = (_parent.bear._y + ((_height * i) / wait));
gotoAndPlay(_currentframe - 1);
}
Symbol 102 MovieClip Frame 12
_parent.bear.setMask(null);
_parent.ActionDone();
Symbol 181 MovieClip Frame 9
stop();
Symbol 182 MovieClip Frame 1
if (direction == undefined) {
direction = 0;
start = Array(_x, _y);
position = Array(0, 0);
_visible = false;
gotoAndStop ("m0ove");
stand = function (x, y) {
if (x != undefined) {
position[0] = Number(x);
}
if (y != undefined) {
position[1] = Number(y);
}
_x = (start[0] + (position[0] * _xscale));
_y = (start[1] + (position[1] * _yscale));
gotoAndStop(("m" + direction) + "ove");
_visible = true;
return(false);
};
move = function () {
_x = (start[0] + (position[0] * _xscale));
_y = (start[1] + (position[1] * _yscale));
position[0] = position[0] + Math.round(Math.sin((Math.PI * direction) / 4));
position[1] = position[1] - Math.round(Math.cos((Math.PI * direction) / 4));
gotoAndPlay(("m" + direction) + "ove");
return(true);
};
rotate = function (dir) {
var _local1 = ((8 + direction) + Number(dir)) % 8;
gotoAndPlay((("r" + direction) + _local1) + "otate");
direction = _local1;
return(true);
};
teleport = function (x, y) {
_root.MoveToX = undefined;
_root.MoveToY = undefined;
old = position;
_root.bear.duplicateMovieClip("bear_teleported", 4049);
this.stand(x, y);
tellTarget ("../bear_teleported") {
call(1);
};
_parent.bear_teleported._visible = true;
_parent.bear_teleported.gotoAndStop(("m" + direction) + "ove");
tellTarget ("../bear_teleported/Mask") {
call(1);
};
_parent.bear_teleported.Mask.dropDown();
this.Mask.openUp();
};
jump = function () {
_root.hero_exitSnd.start();
gotoAndPlay ("jump");
return(true);
};
actionDone = function () {
if (__interface_operation_id != undefined) {
var _local2 = __interface_operation_id;
delete __interface_operation_id;
_root.InterfaceComander.actionDone(_local2);
}
};
}
Symbol 182 MovieClip Frame 2
bear.gotoAndStop(1);
Symbol 182 MovieClip Frame 3
bear.gotoAndPlay(2);
Symbol 182 MovieClip Frame 10
stand();
actionDone();
Symbol 182 MovieClip Frame 11
bear.gotoAndStop(1);
Symbol 182 MovieClip Frame 12
bear.gotoAndPlay(2);
Symbol 182 MovieClip Frame 19
stand();
actionDone();
Symbol 182 MovieClip Frame 20
bear.gotoAndStop(1);
Symbol 182 MovieClip Frame 21
bear.gotoAndPlay(2);
Symbol 182 MovieClip Frame 28
stand();
actionDone();
Symbol 182 MovieClip Frame 29
bear.gotoAndStop(1);
Symbol 182 MovieClip Frame 30
bear.gotoAndPlay(2);
Symbol 182 MovieClip Frame 37
stand();
actionDone();
Symbol 182 MovieClip Frame 38
bear.gotoAndStop(1);
Symbol 182 MovieClip Frame 39
bear.gotoAndPlay(2);
Symbol 182 MovieClip Frame 46
stand();
actionDone();
Symbol 182 MovieClip Frame 47
bear.gotoAndStop(1);
Symbol 182 MovieClip Frame 48
bear.gotoAndPlay(2);
Symbol 182 MovieClip Frame 55
stand();
actionDone();
Symbol 182 MovieClip Frame 56
bear.gotoAndStop(1);
Symbol 182 MovieClip Frame 57
bear.gotoAndPlay(2);
Symbol 182 MovieClip Frame 64
stand();
actionDone();
Symbol 182 MovieClip Frame 65
bear.gotoAndStop(1);
Symbol 182 MovieClip Frame 66
bear.gotoAndPlay(2);
Symbol 182 MovieClip Frame 73
stand();
actionDone();
Symbol 182 MovieClip Frame 77
stand();
actionDone();
Symbol 182 MovieClip Frame 81
stand();
actionDone();
Symbol 182 MovieClip Frame 85
stand();
actionDone();
Symbol 182 MovieClip Frame 89
stand();
actionDone();
Symbol 182 MovieClip Frame 93
stand();
actionDone();
Symbol 182 MovieClip Frame 97
stand();
actionDone();
Symbol 182 MovieClip Frame 101
stand();
actionDone();
Symbol 182 MovieClip Frame 105
stand();
actionDone();
Symbol 182 MovieClip Frame 109
stand();
actionDone();
Symbol 182 MovieClip Frame 113
stand();
actionDone();
Symbol 182 MovieClip Frame 117
stand();
actionDone();
Symbol 182 MovieClip Frame 121
stand();
actionDone();
Symbol 182 MovieClip Frame 125
stand();
actionDone();
Symbol 182 MovieClip Frame 129
stand();
actionDone();
Symbol 182 MovieClip Frame 133
stand();
actionDone();
Symbol 182 MovieClip Frame 137
stand();
actionDone();
Symbol 182 MovieClip Frame 146
stand();
actionDone();
Symbol 184 MovieClip Frame 1
function open() {
gotoAndPlay ("open");
return(true);
}
function close() {
gotoAndPlay ("close");
return(true);
}
function closed() {
gotoAndStop ("open");
return(false);
}
function actionDone() {
if (__interface_operation_id != undefined) {
var _local2 = __interface_operation_id;
delete __interface_operation_id;
_root.InterfaceComander.actionDone(_local2);
}
}
gotoAndStop ("hold");
Symbol 184 MovieClip Frame 15
stop();
actionDone();
Symbol 184 MovieClip Frame 24
gotoAndStop ("hold");
actionDone();
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 16
_parent.removeMovieClip();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 16
_parent.removeMovieClip();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 16
_parent.removeMovieClip();
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 16
_parent.removeMovieClip();
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 16
_parent.removeMovieClip();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 16
_parent.removeMovieClip();
Symbol 199 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
function actionDone() {
if (__interface_operation_id != undefined) {
var _local2 = __interface_operation_id;
delete __interface_operation_id;
_root.InterfaceComander.actionDone(_local2);
}
}
_visible = false;
step = 10;
var dir = new Array(0, 0);
var to = new Array(0, 0);
gotoAndStop ("move");
this.move = function (x, y, to_x, to_y, block_type) {
dir[0] = ((to_x == x) ? 0 : ((step * (to_x - x)) / Math.abs(to_x - x)));
dir[1] = ((to_y == y) ? 0 : ((step * (to_y - y)) / Math.abs(to_y - y)));
to[0] = to_x;
to[1] = to_y;
_x = (_root["l" + y]["b" + x]._x + _root["l" + y]._x);
_y = (_root["l" + y]["b" + x]._y + _root["l" + y]._y);
_visible = true;
block.gotoAndStop(block_type + "off");
bear = (x == _parent.bear.position[0]) && (y == _parent.bear.position[1]);
gotoAndPlay ("move");
return(true);
};
Symbol 200 MovieClip Frame 3
_x = (_x + dir[0]);
_y = (_y + dir[1]);
if ((((((_root["l" + to[1]]["b" + to[0]]._x + _root["l" + to[1]]._x) - step) < _x) && (_x < ((_root["l" + to[1]]["b" + to[0]]._x + _root["l" + to[1]]._x) + step))) && (((_root["l" + to[1]]["b" + to[0]]._y + _root["l" + to[1]]._y) - step) < _y)) && (_y < ((_root["l" + to[1]]["b" + to[0]]._y + _root["l" + to[1]]._y) + step))) {
if (bear) {
_parent.bear.stand(to[0], to[1]);
}
gotoAndPlay ("end_move");
} else {
if (bear) {
_parent.bear._x = _x;
_parent.bear._y = _y;
}
gotoAndPlay ("move");
}
Symbol 200 MovieClip Frame 4
_visible = false;
gotoAndStop ("move");
actionDone();
Symbol 208 MovieClip Frame 1
function init() {
this._alpha = 0;
up1._x = INITXUP;
down1._x = INITXDOWN - (1 * down1._width);
if (up2 != undefined) {
removeMovieClip(up2);
}
if (down2 != undefined) {
removeMovieClip(down2);
}
if (up3 != undefined) {
removeMovieClip(up3);
}
if (down3 != undefined) {
removeMovieClip(down3);
}
}
function start() {
duplicateMovieClip (up1, "up2", this.getNextHighestDepth());
duplicateMovieClip (up1, "up3", this.getNextHighestDepth());
duplicateMovieClip (down1, "down2", this.getNextHighestDepth());
duplicateMovieClip (down1, "down3", this.getNextHighestDepth());
up2._x = up1._width;
up3._x = up1._width * 2;
down2._x = 0;
down3._x = down1._width;
this.onEnterFrame = ef_start;
}
function ef_start() {
up1._x = up1._x - SHIFTSTEP;
up2._x = up2._x - SHIFTSTEP;
up3._x = up3._x - SHIFTSTEP;
down1._x = down1._x + SHIFTSTEP;
down2._x = down2._x + SHIFTSTEP;
down3._x = down3._x + SHIFTSTEP;
i = 1;
while (i <= 3) {
if (this["up" + i]._x < (-1 * up1._width)) {
this["up" + i]._x = up1._width * 2;
}
if (this["down" + i]._x > (2 * down1._width)) {
this["down" + i]._x = -1 * down1._width;
}
i++;
}
if (this._alpha <= (ALPHA - ALPHASTEP)) {
this._alpha = this._alpha + ALPHASTEP;
} else {
this._alpha = ALPHA;
}
}
var INITXUP = 0;
var INITXDOWN = 0;
var SHIFTSTEP = 1;
var ALPHASTEP = 0.7;
var ALPHA;
Symbol 210 MovieClip Frame 1
function init() {
text1.init();
text1.ALPHA = 75;
text2.init();
text2.ALPHA = 15;
}
function start() {
text1.start();
text2.start();
}
Symbol 214 MovieClip Frame 1
FirstTime = true;
Symbol 214 MovieClip Frame 28
if (FirstTime) {
stop();
FirstTime = false;
}
Symbol 214 MovieClip Frame 55
gotoAndPlay (2);
Symbol 234 MovieClip Frame 1
function start() {
Cnt = 0;
this.onEnterFrame = ef_start;
}
function ef_start() {
var _local3;
var _local4;
Cnt++;
if (Cnt < LFRAMES) {
i = 1;
while (i <= 10) {
_local4 = (INITAMP * Math.sin(((((Math.PI*2) / LFRAMES) / 4) * Cnt) + (Math.PI/4))) * (1 - (Cnt / LFRAMES));
_local3 = 100 - (_local4 * Math.sin((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) + (i * LV))));
this["L" + i]._xscale = _local3;
this["L" + i]._yscale = _local3;
_local3 = this["L" + i]._xscale - 100;
if (_local3 > 0) {
if (_local3 > 19) {
this["L" + i]._alpha = (100 - (_local3 * 2.1)) - 20;
} else {
this["L" + i]._alpha = 100 - (_local3 * 2.1);
}
}
i++;
}
} else {
i = 1;
while (i <= 10) {
this["L" + i]._xscale = 100;
this["L" + i]._yscale = 100;
this["L" + i]._alpha = 100;
i++;
}
this.onEnterFrame = undefined;
_parent.dummy.onMouseMove = _parent.go;
}
}
function wave(cx) {
OldCX = CX;
CX = cx;
Cnt = 0;
startf = false;
this.onEnterFrame = ef_wave;
}
function ef_wave() {
var _local3;
var _local5;
var _local4;
Cnt++;
if ((Cnt > 1) && (!startf)) {
return(undefined);
}
if (Cnt < LFRAMES) {
i = 1;
while (i <= 10) {
_local4 = ((((Math.PI*2) * CX) / this._width) * 0.7) + 0.1;
_local5 = (INITAMP * Math.sin(((((Math.PI*2) / LFRAMES) / 4) * Cnt) + (Math.PI/4))) * (1 - (Cnt / LFRAMES));
if ((CX - OldCX) >= 0) {
_local3 = 100 - (_local5 * Math.sin(((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) + (i * LV))) + _local4));
} else {
_local3 = 100 - (_local5 * Math.sin(((((Math.PI*2) / LFRAMES) * LPER) * ((Cnt + INITPH) - (i * LV))) + _local4));
}
if (_local3 < 100) {
_local3 = 100 - ((100 - _local3) * 0.8);
}
this["L" + i]._xscale = _local3;
this["L" + i]._yscale = _local3;
_local3 = this["L" + i]._xscale - 100;
if (_local3 > 0) {
if (_local3 > 18) {
this["L" + i]._alpha = (100 - (_local3 * 2.1)) - 20;
} else {
this["L" + i]._alpha = 100 - (_local3 * 2.1);
}
}
i++;
}
} else {
i = 1;
while (i <= 10) {
this["L" + i]._xscale = 100;
this["L" + i]._yscale = 100;
this["L" + i]._alpha = 100;
i++;
}
this.onEnterFrame = undefined;
_parent.dummy.onMouseMove = _parent.go;
}
}
var LFRAMES = 100;
var LPER = 3;
var INITAMP = 27;
var INITPH = 5;
var LV = 2;
var Cnt;
var CX;
var OldCX = 0;
var startf;
Symbol 240 MovieClip Frame 1
function go() {
if ((((dummy._xmouse < dummy._width) && (dummy._xmouse > 0)) && (dummy._ymouse < dummy._height)) && (dummy._ymouse > 0)) {
loading.wave(dummy._xmouse);
}
}
dummy.useHandCursor = false;
dummy.onRollOut = function () {
loading.startf = true;
};
Symbol 245 MovieClip Frame 1
function start() {
duplicateMovieClip (prnload, "prnload1", this.getNextHighestDepth());
duplicateMovieClip (prnload, "prnload2", this.getNextHighestDepth());
prnload._alpha = PRALPHAINIT;
prnload._xscale = PRMAGNINIT;
prnload._yscale = PRMAGNINIT;
prnload1._alpha = PRALPHAINIT1;
prnload1._xscale = PRMAGNINIT1;
prnload1._yscale = PRMAGNINIT1;
prnload2._alpha = PRALPHAINIT2;
prnload2._xscale = PRMAGNINIT2;
prnload2._yscale = PRMAGNINIT2;
this.onEnterFrame = ef1_start;
}
function ef1_start() {
if (prnload._xscale > 100) {
tmp = PRMAGNSTEP;
if ((prnload._xscale - tmp) < 0) {
tmp = prnload._xscale - 100;
}
prnload._xscale = prnload._xscale - tmp;
prnload._yscale = prnload._yscale - tmp;
prnload._alpha = prnload._alpha + (PRALPHASTEP * PRALPHASTEP);
} else {
prnload._xscale = prnload._xscale - 0.8;
prnload._yscale = prnload._yscale - 0.8;
}
if (prnload._xscale < PRSTART1) {
if (prnload1._xscale > 100) {
tmp = (PRMAGNSTEP1 * PRMAGNSTEP1) / 23;
if ((prnload1._xscale - tmp) < 100) {
tmp = prnload1._xscale - 100;
}
prnload1._xscale = prnload1._xscale - tmp;
prnload1._yscale = prnload1._yscale - tmp;
if (prnload._xscale > 100) {
prnload1._alpha = prnload1._alpha + (PRALPHASTEP1 * PRALPHASTEP1);
} else {
prnload1._alpha = prnload1._alpha - (PRALPHASTEP1 * PRALPHASTEP1);
}
} else {
removeMovieClip(prnload1);
}
}
if (prnload._xscale < PRSTART2) {
if (prnload2._xscale > 100) {
tmp = (PRMAGNSTEP2 * PRMAGNSTEP2) / 15.4;
if ((prnload2._xscale - tmp) < 100) {
tmp = prnload2._xscale - 100;
}
prnload2._xscale = prnload2._xscale - tmp;
prnload2._yscale = prnload2._yscale - tmp;
if (prnload1._xscale != 100) {
prnload2._alpha = prnload2._alpha + (PRALPHASTEP2 * PRALPHASTEP2);
} else {
prnload2._alpha = prnload2._alpha - (PRALPHASTEP2 * PRALPHASTEP2);
}
} else {
removeMovieClip(prnload2);
}
}
if (prnload2 == undefined) {
Cnt = 0;
prnload._alpha = 100;
shadow.play();
prnload.loading.start();
prnload.progress._alpha = 35;
this.onEnterFrame = ef2_start;
_root.onEnterFrame = _root.ef_go;
}
}
function ef2_start() {
Cnt++;
if (Cnt == TEXTSTART) {
text.start();
}
if (Cnt < WVFRAMES) {
tmp = 100 - ((WVINITAMP * (1 - (Cnt / WVFRAMES))) * Math.sin((((Math.PI * Cnt) / WVFRAMES) * WVPERIODS) + (Math.PI/4)));
prnload._xscale = tmp;
prnload._yscale = tmp;
maskmc._xscale = tmp;
maskmc._yscale = tmp;
filled._xscale = tmp;
filled._yscale = tmp;
} else {
this.onEnterFrame = undefined;
}
}
function init() {
text.init();
Cnt = 0;
this._alpha = 100;
htmp = maskmc.target._height;
ytmp = maskmc.target._y;
maskmc.target._height = 0;
maskmc.target._y = ytmp + htmp;
}
function setprogress(pr) {
maskmc.target._height = (pr * htmp) / 100;
maskmc.target._y = ytmp + (htmp * (1 - (pr / 100)));
}
var PRMAGNINIT = 1000;
var PRALPHAINIT = 0;
var PRMAGNSTEP = 25;
var PRALPHASTEP = 1.5;
var PRMAGNINIT1 = 1000;
var PRALPHAINIT1 = 0;
var PRMAGNSTEP1 = 25;
var PRALPHASTEP1 = 1.5;
var PRSTART1 = 700;
var PRMAGNINIT2 = 1000;
var PRALPHAINIT2 = 0;
var PRMAGNSTEP2 = 25;
var PRALPHASTEP2 = 1.6;
var PRSTART2 = 300;
var WVFRAMES = 85;
var WVINITAMP = 17;
var WVPERIODS = 3.5;
var TEXTSTART = 30;
var htmp;
var ytmp;
var Cnt;
Symbol 255 Button
on (release) {
if (Key.isDown(17)) {
so.clear();
delete inf;
var inf = new Object();
inf.flag = "inf";
inf.levels = new Array(0, 0, 0, 0, 0, 0, 0, 0);
}
gotoAndStop ("MainMenu");
}
Symbol 259 Button
on (release) {
Help_obj.gotoAndStop(1);
Help_obj._visible = true;
}
Symbol 264 Button
on (release) {
fscommand ("quit");
if (_root.close_f != 0) {
cstr = ("JavaScript:" + _root.close_f) + "()";
getURL (cstr);
}
}
Symbol 272 Button
on (release) {
_root.gotoAndStop("DLoad");
}
Symbol 293 Button
on (release) {
gotoAndStop (2);
}
Symbol 297 Button
on (release) {
this._visible = false;
}
Symbol 308 Button
on (release) {
gotoAndStop (1);
}
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 2
stop();
Symbol 318 Button
on (release) {
gotoAndStop ("kids");
}
Symbol 322 Button
on (release) {
gotoAndStop ("standart");
}
Symbol 329 Button
on (release) {
gotoAndStop ("Menu");
}
Symbol 333 Button
on (release) {
gotoAndPlay ("game");
exit_level("K1");
}
Symbol 336 Button
on (release) {
gotoAndPlay ("game");
exit_level("K2");
}
Symbol 339 Button
on (release) {
gotoAndPlay ("game");
exit_level("K3");
}
Symbol 342 Button
on (release) {
gotoAndPlay ("game");
exit_level("K4");
}
Symbol 345 MovieClip Frame 1
stop();
Symbol 347 Button
on (release) {
gotoAndPlay ("game");
exit_level("S1");
}
Symbol 348 Button
on (release) {
gotoAndPlay ("game");
exit_level("S2");
}
Symbol 349 Button
on (release) {
gotoAndPlay ("game");
exit_level("S3");
}
Symbol 350 Button
on (release) {
gotoAndPlay ("game");
exit_level("S4");
}
Symbol 355 Button
on (release) {
_root.E_flag = "restart";
allow_F = true;
if (InterfaceComander.count == 0) {
allow_F = false;
gotoAndPlay ("game");
exit_level(-1);
}
}
Symbol 358 Button
on (release) {
_root.E_flag = "menu";
allow_F = true;
if (InterfaceComander.count == 0) {
allow_F = false;
exit_level();
}
}
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 2
stop();
Symbol 359 MovieClip Frame 3
stop();
Symbol 359 MovieClip Frame 4
stop();
Symbol 360 MovieClip Frame 77
stop();
Symbol 363 Button
on (release) {
Help_obj._visible = true;
Help_obj.swapDepths(100000);
trace(Help_obj.getDepth());
}
Symbol 364 Button
on (release) {
_root.E_flag = "dload";
allow_F = true;
if (InterfaceComander.count == 0) {
allow_F = false;
exit_level();
}
}
Symbol 365 Button
on (release) {
handler_mouseClick(Math.floor((_xmouse - 10) / 40), Math.floor((_ymouse - 10) / 40));
}
Symbol 375 Button
on (release) {
_root.GotoDownload();
}
Symbol 380 MovieClip Frame 1
if (_root.alawar_f != undefined) {
dload._visible = false;
hand._visible = false;
}