Frame 1
Object.prototype.gameMC = this;
Object.prototype.containerMC = _parent;
play();
gameMC.Keycodever = 3;
gameMC.code5 = "level5";
gameMC.code6 = "level6";
gameMC.text5 = "Enter your secret code here to unlock the Hagrid's Hut level!";
gameMC.text6 = "Do you know the code? Enter it here to unlock the Hogsmeade\u2122 level.";
gameMC.sw4 = unescape(sw4);
gameMC.sw10 = unescape(sw10);
gameMC.sw2 = unescape(sw2);
Frame 2
var BeginX1 = 532;
var BeginZ1 = -315;
var InvOrder1 = false;
var L1Time = 100;
Inv1Array = [[2, 7, "Brick", false], [8, 2, "Brick", false], [9, 16, "Brick", false]];
Other1Array = [];
Tele1Array = [[14, 19, 8, 5], [8, 11, 15, 9], [3, 9, 16, 17]];
Bad1Array = [];
Maze1Array = [[4, 1, 5], [5, 1, 4], [6, 1, 4], [7, 1, 4], [8, 1, 4], [9, 1, 6], [4, 2, 3], [5, 2, 8], [9, 2, 10], [10, 2, 4], [11, 2, 6], [4, 3, 3], [6, 3, 5], [7, 3, 6], [11, 3, 3], [1, 4, 5], [2, 4, 4], [3, 4, 2], [4, 4, 8], [6, 4, 7], [7, 4, 8], [9, 4, 3], [11, 4, 3], [1, 5, 3], [3, 5, 3], [9, 5, 3], [11, 5, 7], [12, 5, 11], [13, 5, 4], [14, 5, 6], [1, 6, 10], [2, 6, 4], [3, 6, 2], [4, 6, 11], [6, 6, 4], [7, 6, 4], [9, 6, 3], [14, 6, 3], [1, 7, 3], [3, 7, 7], [4, 7, 12], [11, 7, 4], [12, 7, 8], [14, 7, 7], [15, 7, 4], [16, 7, 6], [1, 8, 3], [4, 8, 3], [6, 8, 4], [7, 8, 4], [9, 8, 6], [16, 8, 7], [17, 8, 6], [1, 9, 7], [2, 9, 6], [4, 9, 3], [9, 9, 10], [10, 9, 4], [11, 9, 4], [13, 9, 5], [14, 9, 6], [17, 9, 3], [2, 10, 3], [4, 10, 7], [6, 10, 4], [7, 10, 4], [9, 10, 3], [13, 10, 3], [14, 10, 3], [16, 10, 5], [17, 10, 2], [18, 10, 4], [19, 10, 4], [20, 10, 6], [2, 11, 3], [9, 11, 3], [11, 11, 3], [13, 11, 3], [14, 11, 3], [16, 11, 10], [17, 11, 8], [20, 11, 3], [1, 12, 7], [2, 12, 4], [3, 12, 4], [4, 12, 11], [5, 12, 4], [6, 12, 4], [7, 12, 4], [9, 12, 3], [11, 12, 3], [13, 12, 3], [14, 12, 3], [16, 12, 7], [17, 12, 4], [18, 12, 4], [20, 12, 3], [4, 13, 3], [11, 13, 3], [13, 13, 3], [14, 13, 3], [20, 13, 3], [4, 14, 7], [5, 14, 4], [6, 14, 4], [7, 14, 4], [8, 14, 4], [9, 14, 6], [11, 14, 7], [13, 14, 9], [14, 14, 9], [16, 14, 4], [17, 14, 4], [18, 14, 4], [19, 14, 4], [20, 14, 12], [8, 15, 5], [9, 15, 8], [20, 15, 3], [8, 16, 3], [11, 16, 3], [13, 16, 5], [14, 16, 4], [15, 16, 6], [17, 16, 5], [18, 16, 4], [19, 16, 4], [20, 16, 8], [8, 17, 7], [9, 17, 4], [10, 17, 4], [11, 17, 2], [13, 17, 12], [15, 17, 3], [17, 17, 3], [11, 18, 3], [13, 18, 7], [14, 18, 4], [15, 18, 8], [17, 18, 3], [11, 19, 3], [17, 19, 3], [11, 20, 7], [12, 20, 4], [13, 20, 4], [14, 20, 4], [15, 20, 4], [16, 20, 4], [17, 20, 8]];
Frame 3
var BeginX2 = 276;
var BeginZ2 = -273;
var InvOrder2 = true;
var L2Time = 120;
Inv2Array = [[15, 19, "Brick", false], [8, 3, "Brick", false], [19, 16, "Brick", false]];
Other2Array = [[2, 8, "cloak", false, true]];
Tele2Array = [[12, 8, 2, 10], [16, 16, 10, 3], [10, 16, 18, 11]];
Bad2Array = [[220, -320, "Snape"]];
FWalls2Array = [[11, 5, 4], [4, 7, 4], [9, 7, 4], [9, 10, 3], [13, 10, 3], [7, 11, 3], [15, 12, 3], [16, 17, 4]];
Maze2Array = [[5, 1, 5], [6, 1, 4], [7, 1, 4], [8, 1, 4], [9, 1, 4], [10, 1, 4], [11, 1, 6], [5, 2, 3], [11, 2, 3], [5, 3, 3], [7, 3, 3], [9, 3, 3], [11, 3, 7], [12, 3, 6], [5, 4, 3], [7, 4, 3], [9, 4, 3], [12, 4, 3], [1, 5, 5], [2, 5, 4], [3, 5, 4], [4, 5, 4], [5, 5, 8], [7, 5, 3], [9, 5, 7], [10, 5, 4], [12, 5, 9], [13, 5, 4], [14, 5, 4], [15, 5, 6], [1, 6, 3], [7, 6, 3], [15, 6, 3], [1, 7, 3], [3, 7, 4], [5, 7, 4], [6, 7, 4], [7, 7, 9], [8, 7, 4], [10, 7, 4], [11, 7, 4], [12, 7, 4], [13, 7, 6], [15, 7, 3], [1, 8, 3], [13, 8, 3], [15, 8, 3], [1, 9, 3], [3, 9, 4], [4, 9, 4], [5, 9, 4], [6, 9, 4], [7, 9, 6], [9, 9, 5], [10, 9, 4], [11, 9, 6], [13, 9, 3], [15, 9, 3], [1, 10, 3], [7, 10, 3], [11, 10, 3], [15, 10, 10], [16, 10, 4], [17, 10, 4], [18, 10, 4], [19, 10, 6], [1, 11, 7], [2, 11, 4], [3, 11, 4], [4, 11, 4], [5, 11, 6], [9, 11, 3], [11, 11, 3], [13, 11, 3], [15, 11, 3], [19, 11, 3], [5, 12, 3], [7, 12, 3], [9, 12, 3], [13, 12, 3], [17, 12, 3], [19, 12, 3], [5, 13, 3], [7, 13, 3], [9, 13, 7], [10, 13, 4], [11, 13, 4], [12, 13, 4], [13, 13, 8], [15, 13, 3], [17, 13, 3], [19, 13, 10], [20, 13, 6], [5, 14, 7], [6, 14, 4], [7, 14, 12], [15, 14, 3], [17, 14, 3], [20, 14, 3], [7, 15, 7], [8, 15, 4], [9, 15, 6], [11, 15, 4], [12, 15, 4], [13, 15, 4], [14, 15, 4], [15, 15, 8], [17, 15, 3], [20, 15, 3], [9, 16, 3], [20, 16, 3], [9, 17, 7], [10, 17, 6], [12, 17, 4], [13, 17, 4], [14, 17, 4], [15, 17, 4], [17, 17, 5], [18, 17, 4], [19, 17, 4], [20, 17, 8], [10, 18, 3], [17, 18, 3], [10, 19, 7], [11, 19, 4], [12, 19, 4], [13, 19, 11], [17, 19, 3], [13, 20, 7], [14, 20, 4], [15, 20, 4], [16, 20, 4], [17, 20, 8]];
Frame 4
var BeginX3 = 216;
var BeginZ3 = -157;
var InvOrder3 = true;
var L3Time = 140;
Inv3Array = [[19, 11, "brick", false], [5, 4, "brick", false], [14, 8, "brick", false], [9, 14, "brick", false]];
Other3Array = [];
Tele3Array = [[5, 6, 13, 19], [9, 2, 14, 12], [3, 8, 19, 16]];
Bad3Array = [[130, -250, "Draco"], [390, -350, "Filch"]];
FWalls3Array = [[13, 13, 3], [18, 14, 3], [11, 15, 4], [11, 11, 3], [5, 8, 4], [9, 8, 3], [13, 9, 3], [8, 5, 4], [10, 5, 4], [13, 6, 3]];
Maze3Array = [[4, 1, 5], [5, 1, 5], [6, 1, 11], [7, 1, 4], [8, 1, 4], [9, 1, 4], [10, 1, 6], [4, 2, 3], [5, 2, 3], [6, 2, 3], [10, 2, 3], [3, 3, 5], [4, 3, 12], [5, 3, 9], [6, 3, 2], [7, 3, 4], [8, 3, 4], [10, 3, 7], [11, 3, 11], [12, 3, 4], [13, 3, 6], [3, 4, 3], [4, 4, 3], [11, 4, 3], [13, 4, 3], [3, 5, 7], [4, 5, 12], [6, 5, 10], [7, 5, 11], [9, 5, 4], [11, 5, 8], [13, 5, 10], [14, 5, 4], [15, 5, 6], [1, 6, 5], [2, 6, 11], [3, 6, 4], [4, 6, 12], [6, 6, 7], [7, 6, 8], [15, 6, 3], [1, 7, 3], [2, 7, 3], [4, 7, 3], [9, 7, 5], [10, 7, 4], [11, 7, 6], [13, 7, 3], [15, 7, 3], [1, 8, 3], [2, 8, 3], [4, 8, 7], [6, 8, 4], [7, 8, 6], [11, 8, 3], [13, 8, 3], [15, 8, 7], [16, 8, 4], [17, 8, 4], [18, 8, 6], [2, 9, 3], [7, 9, 3], [9, 9, 3], [11, 9, 3], [18, 9, 7], [19, 9, 4], [20, 9, 6], [2, 10, 7], [3, 10, 4], [4, 10, 4], [5, 10, 6], [7, 10, 3], [9, 10, 3], [11, 10, 3], [13, 10, 7], [14, 10, 4], [15, 10, 11], [16, 10, 6], [18, 10, 10], [19, 10, 4], [20, 10, 3], [5, 11, 3], [15, 11, 3], [16, 11, 3], [18, 11, 3], [20, 11, 3], [5, 12, 10], [6, 12, 4], [7, 12, 4], [8, 12, 4], [9, 12, 4], [10, 12, 4], [11, 12, 12], [13, 12, 3], [15, 12, 3], [16, 12, 3], [20, 12, 3], [5, 13, 7], [6, 13, 4], [7, 13, 11], [8, 13, 4], [9, 13, 4], [10, 13, 4], [11, 13, 8], [15, 13, 3], [16, 13, 3], [18, 13, 3], [20, 13, 3], [7, 14, 3], [13, 14, 3], [15, 14, 3], [16, 14, 3], [20, 14, 3], [7, 15, 7], [8, 15, 4], [9, 15, 11], [10, 15, 4], [12, 15, 4], [13, 15, 8], [15, 15, 3], [16, 15, 3], [18, 15, 3], [20, 15, 3], [9, 16, 3], [15, 16, 3], [16, 16, 3], [18, 16, 3], [20, 16, 3], [9, 17, 7], [10, 17, 4], [11, 17, 4], [12, 17, 6], [14, 17, 4], [15, 17, 9], [16, 17, 8], [18, 17, 10], [19, 17, 4], [20, 17, 8], [12, 18, 3], [18, 18, 3], [12, 19, 3], [14, 19, 5], [15, 19, 4], [16, 19, 4], [17, 19, 4], [18, 19, 8], [12, 20, 7], [13, 20, 4], [14, 20, 8]];
Frame 5
var BeginX4 = 245;
var BeginZ4 = -45;
var InvOrder4 = true;
var L4Time = 150;
Inv4Array = [[11, 17, "brick", false], [5, 4, "brick", false], [19, 13, "brick", false], [4, 10, "brick", false]];
Other4Array = [[7, 10, "cloak", false, true]];
Tele4Array = [[15, 19, 15, 8], [11, 10, 7, 2], [17, 13, 7, 13]];
Bad4Array = [[230, -160, "Snape"], [130, -270, "Draco"], [410, -370, "Filch"]];
FWalls4Array = [[10, 4, 3], [4, 5, 4], [8, 5, 3], [12, 5, 3], [3, 7, 4], [7, 9, 4], [11, 9, 4], [10, 11, 3], [13, 11, 4], [17, 11, 4], [8, 13, 3], [12, 13, 3], [10, 14, 3], [18, 15, 3], [14, 16, 3]];
Maze4Array = [[6, 1, 5], [7, 1, 4], [8, 1, 11], [9, 1, 4], [10, 1, 6], [5, 2, 5], [6, 2, 12], [10, 2, 10], [11, 2, 4], [12, 2, 6], [1, 3, 5], [2, 3, 4], [3, 3, 11], [4, 3, 4], [5, 3, 9], [6, 3, 8], [8, 3, 3], [10, 3, 3], [12, 3, 3], [1, 4, 3], [3, 4, 3], [8, 4, 3], [12, 4, 10], [13, 4, 4], [14, 4, 6], [1, 5, 10], [2, 5, 4], [3, 5, 9], [5, 5, 4], [6, 5, 4], [10, 5, 3], [14, 5, 7], [15, 5, 6], [1, 6, 3], [8, 6, 3], [12, 6, 3], [15, 6, 4], [1, 7, 10], [2, 7, 4], [4, 7, 4], [5, 7, 4], [6, 7, 4], [7, 7, 4], [8, 7, 8], [10, 7, 3], [12, 7, 7], [13, 7, 4], [15, 7, 7], [16, 7, 4], [17, 7, 4], [18, 7, 6], [1, 8, 3], [10, 8, 3], [17, 8, 3], [18, 8, 3], [1, 9, 7], [2, 9, 4], [3, 9, 6], [5, 9, 4], [6, 9, 4], [8, 9, 4], [9, 9, 4], [10, 9, 2], [12, 9, 4], [13, 9, 4], [15, 9, 4], [16, 9, 4], [17, 9, 9], [18, 9, 9], [19, 9, 11], [20, 9, 4], [3, 10, 3], [10, 10, 3], [19, 10, 3], [3, 11, 7], [4, 11, 6], [6, 11, 4], [7, 11, 4], [8, 11, 6], [12, 11, 5], [14, 11, 4], [15, 11, 4], [16, 11, 4], [18, 11, 4], [19, 11, 9], [20, 11, 11], [4, 12, 3], [8, 12, 3], [10, 12, 3], [12, 12, 3], [20, 12, 3], [5, 13, 4], [6, 13, 6], [10, 13, 3], [14, 13, 3], [16, 13, 3], [18, 13, 3], [20, 13, 3], [6, 14, 9], [7, 14, 4], [8, 14, 12], [12, 14, 3], [14, 14, 3], [16, 14, 3], [18, 14, 3], [20, 14, 3], [8, 15, 3], [10, 15, 3], [12, 15, 3], [14, 15, 3], [16, 15, 3], [20, 15, 3], [8, 16, 7], [9, 16, 4], [10, 16, 12], [12, 16, 3], [16, 16, 3], [18, 16, 3], [20, 16, 3], [10, 17, 3], [14, 17, 3], [16, 17, 3], [18, 17, 3], [19, 17, 5], [20, 17, 8], [10, 18, 7], [11, 18, 4], [12, 18, 11], [13, 18, 4], [14, 18, 8], [18, 18, 10], [19, 18, 8], [12, 19, 3], [17, 19, 5], [18, 19, 3], [12, 20, 7], [13, 20, 4], [14, 20, 4], [15, 20, 4], [16, 20, 4], [17, 20, 4], [18, 20, 8]];
Frame 6
var BeginX5 = 275;
var BeginZ5 = -287;
var InvOrder5 = true;
var L5Time = 150;
Inv5Array = [[2, 8, "brick", false], [13, 7, "brick", false], [15, 19, "brick", false], [16, 9, "brick", false]];
Other5Array = [[16, 16, "cloak", false, true]];
Tele5Array = [[12, 18, 7, 2], [3, 11, 11, 5], [19, 14, 8, 8]];
Bad5Array = [[235, -135, "Snape"], [130, -250, "Draco"], [390, -350, "Filch"]];
FWalls5Array = [[4, 6, 3], [11, 6, 6], [7, 8, 4], [7, 11, 3], [10, 12, 4], [15, 14, 3], [18, 16, 3], [13, 18, 3]];
Maze5Array = [[4, 1, 5], [5, 1, 4], [6, 1, 11], [7, 1, 4], [8, 1, 11], [9, 1, 4], [10, 1, 6], [3, 2, 5], [4, 2, 12], [5, 2, 4], [6, 2, 12], [8, 2, 3], [10, 2, 3], [3, 3, 7], [4, 3, 12], [6, 3, 3], [10, 3, 3], [2, 4, 5], [3, 4, 4], [4, 4, 12], [8, 4, 3], [10, 4, 7], [11, 4, 4], [12, 4, 4], [13, 4, 6], [2, 5, 3], [4, 5, 3], [6, 5, 3], [8, 5, 3], [13, 5, 3], [2, 6, 3], [6, 6, 3], [8, 6, 7], [9, 6, 4], [10, 6, 4], [13, 6, 7], [14, 6, 4], [15, 6, 6], [1, 7, 5], [2, 7, 8], [4, 7, 3], [6, 7, 3], [11, 7, 3], [15, 7, 3], [1, 8, 3], [4, 8, 3], [6, 8, 7], [8, 8, 4], [9, 8, 6], [11, 8, 3], [13, 8, 4], [14, 8, 4], [15, 8, 9], [16, 8, 4], [17, 8, 6], [1, 9, 7], [2, 9, 6], [4, 9, 3], [9, 9, 3], [11, 9, 3], [17, 9, 3], [2, 10, 3], [4, 10, 7], [5, 10, 4], [6, 10, 4], [7, 10, 6], [9, 10, 3], [11, 10, 7], [12, 10, 4], [13, 10, 4], [14, 10, 4], [15, 10, 6], [17, 10, 7], [18, 10, 4], [19, 10, 6], [2, 11, 3], [9, 11, 3], [15, 11, 3], [19, 11, 3], [2, 12, 7], [3, 12, 4], [4, 12, 4], [5, 12, 6], [7, 12, 3], [9, 12, 7], [11, 12, 4], [12, 12, 4], [13, 12, 6], [15, 12, 3], [17, 12, 3], [19, 12, 10], [20, 12, 6], [5, 13, 3], [7, 13, 3], [13, 13, 3], [15, 13, 3], [17, 13, 3], [19, 13, 7], [20, 13, 12], [5, 14, 3], [8, 14, 4], [9, 14, 4], [10, 14, 4], [11, 14, 6], [13, 14, 3], [17, 14, 3], [20, 14, 3], [5, 15, 3], [6, 15, 6], [11, 15, 3], [13, 15, 3], [15, 15, 3], [17, 15, 7], [18, 15, 6], [20, 15, 3], [6, 16, 4], [7, 16, 4], [8, 16, 4], [9, 16, 6], [13, 16, 3], [15, 16, 3], [20, 16, 3], [9, 17, 3], [11, 17, 4], [12, 17, 4], [13, 17, 12], [15, 17, 10], [16, 17, 6], [18, 17, 10], [19, 17, 4], [20, 17, 12], [9, 18, 3], [15, 18, 10], [16, 18, 8], [18, 18, 10], [19, 18, 4], [20, 18, 8], [9, 19, 7], [10, 19, 4], [11, 19, 4], [12, 19, 11], [13, 19, 8], [18, 19, 3], [12, 20, 7], [13, 20, 4], [14, 20, 4], [15, 20, 4], [16, 20, 4], [17, 20, 4], [18, 20, 8]];
Frame 7
var BeginX6 = 41;
var BeginZ6 = -222;
var InvOrder6 = true;
var L6Time = 150;
Inv6Array = [[15, 8, "brick", false], [9, 15, "brick", false], [8, 3, "brick", false], [14, 19, "brick", false]];
Other6Array = [[12, 4, "cloak", false, true]];
Tele6Array = [[16, 19, 11, 4], [2, 7, 10, 9], [3, 9, 19, 11]];
Bad6Array = [[230, -135, "Snape"], [130, -250, "Draco"], [380, -340, "Filch"]];
FWalls6Array = [[4, 6, 4], [7, 6, 4], [11, 7, 3], [6, 8, 4], [13, 8, 3], [4, 10, 4], [16, 11, 3], [9, 12, 4], [14, 12, 3], [18, 14, 3], [16, 16, 3]];
Maze6Array = [[6, 1, 5], [7, 1, 11], [8, 1, 4], [9, 1, 6], [6, 2, 10], [7, 2, 8], [9, 2, 3], [6, 3, 3], [9, 3, 10], [10, 3, 4], [11, 3, 4], [12, 3, 6], [1, 4, 5], [2, 4, 4], [3, 4, 11], [4, 4, 4], [5, 4, 4], [6, 4, 9], [7, 4, 4], [9, 4, 3], [12, 4, 3], [13, 4, 3], [14, 4, 3], [1, 5, 3], [3, 5, 3], [11, 5, 5], [12, 5, 4], [13, 5, 9], [14, 5, 6], [1, 6, 10], [2, 6, 4], [3, 6, 9], [5, 6, 4], [6, 6, 4], [8, 6, 4], [9, 6, 4], [11, 6, 3], [14, 6, 3], [1, 7, 3], [13, 7, 5], [14, 7, 9], [15, 7, 4], [16, 7, 6], [1, 8, 3], [3, 8, 4], [4, 8, 4], [5, 8, 4], [7, 8, 4], [8, 8, 4], [9, 8, 4], [10, 8, 4], [11, 8, 12], [16, 8, 7], [17, 8, 6], [1, 9, 3], [11, 9, 3], [13, 9, 7], [14, 9, 6], [17, 9, 3], [1, 10, 7], [2, 10, 4], [3, 10, 11], [5, 10, 4], [6, 10, 4], [7, 10, 4], [8, 10, 4], [9, 10, 4], [11, 10, 3], [14, 10, 5], [16, 10, 9], [17, 10, 4], [18, 10, 4], [19, 10, 4], [20, 10, 6], [3, 11, 3], [11, 11, 10], [12, 11, 6], [14, 11, 3], [20, 11, 3], [3, 12, 7], [4, 12, 6], [6, 12, 4], [7, 12, 4], [8, 12, 4], [10, 12, 4], [11, 12, 9], [12, 12, 8], [16, 12, 3], [18, 12, 3], [20, 12, 3], [4, 13, 3], [14, 13, 3], [16, 13, 3], [18, 13, 3], [20, 13, 3], [4, 14, 7], [5, 14, 4], [6, 14, 4], [7, 14, 4], [8, 14, 6], [10, 14, 4], [11, 14, 4], [12, 14, 4], [14, 14, 3], [16, 14, 3], [20, 14, 3], [8, 15, 3], [14, 15, 3], [16, 15, 3], [18, 15, 3], [20, 15, 3], [7, 16, 4], [8, 16, 9], [9, 16, 4], [10, 16, 11], [11, 16, 4], [12, 16, 4], [14, 16, 8], [18, 16, 3], [20, 16, 3], [10, 17, 3], [16, 17, 3], [18, 17, 10], [19, 17, 4], [20, 17, 8], [9, 18, 4], [10, 18, 9], [11, 18, 4], [12, 18, 4], [13, 18, 6], [15, 18, 4], [16, 18, 8], [18, 18, 3], [13, 19, 3], [18, 19, 3], [13, 20, 7], [14, 20, 4], [15, 20, 4], [16, 20, 4], [17, 20, 4], [18, 20, 8]];
Frame 10
totalBytes = this.getBytesTotal();
loadedBytes = this.getBytesLoaded();
remainingBytes = totalBytes - loadedBytes;
percentDone = int((loadedBytes / totalBytes) * 1000);
bar.gotoAndStop(percentDone);
if (_framesloaded == _totalframes) {
gotoAndStop (12);
}
Frame 11
gotoAndPlay (10);
Instance of Symbol 18 MovieClip in Frame 12
on (press) {
_parent.gotoAndPlay("base");
}
Instance of Symbol 26 MovieClip "debug_mc" in Frame 12
onClipEvent (load) {
if (_root.debug == "yes") {
this._x = 200;
this._visible = 1;
} else {
this._visible = 0;
}
}
Frame 14
gameMC.gLoadInit = false;
gameMC.gGameState = "INIT";
gameMC.gLoadStartTime = 0;
gameMC.gVersionNum = "1.0";
gameMC.gPaused = false;
gameMC.gInitGame = null;
gameMC.min_score = -1;
gameMC.gLevel = 0;
gameMC.gScore = 0;
gameMC.gKills = 0;
gameMC.levelComplete;
gameMC.gLastKillTime;
gameMC.MsgTime = new Date();
gameMC.activeTeleIndx;
gameMC.gLastTeleChange;
gameMC.gLastWallChange;
gameMC.activeWallIndx;
gameMC.endTime;
gameMC.pausestart;
gameMC.ReplayAllowed = true;
gameMC.ReplayScore;
gameMC.ReplayKills;
gameMC.gLastSuperCoinChange;
gameMC.LASTLEVEL = 4;
gameMC.LEVELTIME;
gameMC.gSuperX = xtile;
gameMC.gSuperZ = ztile;
gameMC.gSuperOn = false;
gameMC.SUPERCOINDELAY = 8000;
gameMC.TELEDELAY = 10000;
gameMC.WALLDELAY = 3000;
gameMC.MSGDELAY = 2000;
gameMC.INVISIBLETIME = 15000;
gameMC.KILLDELAY = 2000;
gameMC.WALLCOUNT = 2;
gameMC.TELEPOINTS = 50;
gameMC.BRICKPOINTS = 100;
gameMC.TOKENCOUNT = 26;
gameMC.BGWALKRATE = 2;
function fnOpenHighScores() {
getURL (sw10, "_self");
}
function fnPostHighScore(score) {
postClip.score = score;
postClip.score2 = fnCalcHash(gScore);
if (debug == "yes") {
debug_mc.debugstring = debug_mc.debugstring + ((((("SENDING SCORE " + postClip.score) + " and hash ") + postClip.score2) + " to ") + sw4);
}
postClip.sendAndLoad(sw4, varReceiver, "POST");
}
function fnCalcHash(score) {
var hash;
var x = Math.sin(score + 5774).toString();
trace("Sin is " + x);
var pindx = (x.indexOf(".") + 1);
hash = hash + x.slice(pindx + 5, pindx + 6);
hash = hash + x.slice(pindx + 4, pindx + 5);
hash = hash + x.slice(pindx + 3, pindx + 4);
hash = hash + x.slice(pindx + 2, pindx + 3);
hash = hash + x.slice(pindx + 1, pindx + 2);
hash = hash + x.slice(pindx, pindx + 1);
trace("Hash is " + hash);
return(hash);
}
if (debug == "yes") {
debug_mc.debugstring = debug_mc.debugstring + (" SWF4: " + gameMC.sw4);
debug_mc.debugstring = debug_mc.debugstring + (" SWF10: " + gameMC.sw10);
debug_mc.debugstring = debug_mc.debugstring + (" SWF2: " + gameMC.sw2);
}
var postClip = new LoadVars();
var varReceiver = new LoadVars();
isometricAS = function (maxx, maxz) {
this.maxx = maxx;
this.maxz = maxz;
this.theta = 30;
this.alpha = 45;
this.theta = this.theta * (Math.PI/180);
this.alpha = this.alpha * (Math.PI/180);
this.sinTheta = Math.sin(this.theta);
this.cosTheta = Math.cos(this.theta);
this.sinAlpha = Math.sin(this.alpha);
this.cosAlpha = Math.cos(this.alpha);
};
isometricAS.prototype.mapToScreen = function (xpp, ypp, zpp) {
var yp = ypp;
var xp = ((xpp * this.cosAlpha) + (zpp * this.sinAlpha));
var zp = ((zpp * this.cosAlpha) - (xpp * this.sinAlpha));
var x = xp;
var y = ((yp * this.cosTheta) - (zp * this.sinTheta));
return([x, y]);
};
isometricAS.prototype.mapToIsoWorld = function (screenX, screenY) {
var z = (((screenX / this.cosAlpha) - (screenY / (this.sinAlpha * this.sinTheta))) * (1 / ((this.cosAlpha / this.sinAlpha) + (this.sinAlpha / this.cosAlpha))));
var x = ((1 / this.cosAlpha) * (screenX - (z * this.sinAlpha)));
return([x, z]);
};
isometricAS.prototype.calculateDepth = function (x, y, z) {
var leeway = 5;
var x = (Math.abs(x) * leeway);
var y = Math.abs(y);
var z = (Math.abs(z) * leeway);
var a = this.maxx;
var b = this.maxz;
var floor = ((a * (b - 1)) + x);
var depth = (((a * (z - 1)) + x) + (floor * y));
return(depth);
};
function worldClicked(xm, ym, keyCode) {
var temp = iso.mapToIsoWorld(xm, ym);
var xm = temp[0];
var zm = temp[1];
if (((((!world.char.moving) && (xm >= 0)) && (xm <= world.width)) && (zm >= world.length)) && (zm <= 0)) {
var x = world.char.x;
var z = world.char.z;
world.char.startx = x;
world.char.startz = z;
world.char.endx = xm;
world.char.endz = zm;
world.char.movKey = keyCode;
var angleSpan = 45;
var angle = Math.atan2(zm - z, xm - x);
var realAngle = ((angle * 180) / Math.PI);
realAngle = realAngle + (angleSpan / 2);
if (realAngle < 0) {
realAngle = realAngle + 360;
}
var frame = Math.ceil(realAngle / angleSpan);
world.char.clip.gotoAndStop("walk" + frame);
world.char.frame = frame;
world.char.moving = true;
var cosAngle = Math.cos(angle);
var sinAngle = Math.sin(angle);
world.char.xmov = world.char.speed * cosAngle;
world.char.zmov = world.char.speed * sinAngle;
world.char.feelerx = world.char.feeler * cosAngle;
world.char.feelerz = world.char.feeler * sinAngle;
}
}
function fnCaptureKeys() {
if (!world.char.teleporting) {
var newx;
var newy;
if (((Key.isDown(102) or Key.isDown(69)) or Key.isDown(79)) or Key.isDown(39)) {
newx = world.char.clip._x + (world.cellWidth / 2);
newy = world.char.clip._y - ((world.cellWidth / 2) - world.angleOffset);
gameMC.worldClicked(newx, newy, Key.getCode());
} else if (((Key.isDown(100) or Key.isDown(85)) or Key.isDown(81)) or Key.isDown(38)) {
newx = world.char.clip._x - (world.cellWidth / 2);
newy = world.char.clip._y - ((world.cellWidth / 2) - world.angleOffset);
gameMC.worldClicked(newx, newy, Key.getCode());
} else if (((Key.isDown(99) or Key.isDown(76)) or Key.isDown(68)) or Key.isDown(40)) {
newx = world.char.clip._x + (world.cellWidth / 2);
newy = world.char.clip._y + ((world.cellWidth / 2) - world.angleOffset);
gameMC.worldClicked(newx, newy, Key.getCode());
} else if (((Key.isDown(97) or Key.isDown(65)) or Key.isDown(74)) or Key.isDown(37)) {
newx = world.char.clip._x - (world.cellWidth / 2);
newy = world.char.clip._y + ((world.cellWidth / 2) - world.angleOffset);
gameMC.worldClicked(newx, newy, Key.getCode());
}
}
}
function fnBadGuy(x, z, character) {
var tempx = x;
var tempy = 0;
var tempz = z;
var speed = 2;
var dir = 1;
var xmov = speed;
var zmov = speed;
var name = ("bad" + world.badGuysArray.length);
var x_tile = Math.ceil(tempx / world.cellWidth);
var z_tile = Math.ceil(Math.abs(tempz) / world.cellWidth);
var depth = (world.tiles[x_tile][z_tile].depth + 1);
var clip = world.path.attachMovie(("BadGuy" + character) + "_lmc", name, depth);
var ob = {dir:dir, tempx:tempx, tempy:tempy, tempz:tempz, x_tile:x_tile, z_tile:z_tile, clip:clip, speed:speed, moving:false, targXTile:null, targZTile:null, xmov:xmov, zmov:zmov, time:0, maxtime:80};
world.badGuysArray.push(ob);
positionCharacter(ob);
}
function fnMoveBadGuys() {
var i = 0;
while (i < world.badGuysArray.length) {
var ob = world.badGuysArray[i];
if (ob.moving) {
var tempx = (ob.x + ob.xmov);
var tempz = Math.abs(ob.z + ob.zmov);
var x_tile = Math.ceil(tempx / world.cellWidth);
var z_tile = Math.ceil(tempz / world.cellWidth);
if ((!world.tiles[x_tile][z_tile].isObject) or (world.tiles[x_tile][z_tile].pickup and ((x_tile != ob.targXTile) and (z_tile != ob.targZTile)))) {
ob.tempx = ob.x + ob.xmov;
ob.tempz = ob.z + ob.zmov;
ob.x_tile = x_tile;
ob.z_tile = z_tile;
positionCharacter(ob);
var depth = (world.tiles[x_tile][z_tile].depth + 3);
ob.clip.swapDepths(depth);
} else {
ob.tempx = ob.x;
ob.tempz = ob.z;
ob.xmov = 0;
ob.ymov = 0;
ob.moving = false;
ob.clip.gotoAndStop("stand" + ob.dir);
ob.time = 0;
}
}
i++;
}
}
function fnBadGuyAI() {
var i = 0;
while (i < world.badGuysArray.length) {
var ob = world.badGuysArray[i];
ob.time++;
if ((!ob.moving) and (ob.time > (6 - gameMC.gLevel))) {
var x_tile = ob.x_tile;
var z_tile = ob.z_tile;
var xsign = (world.char.x_tile - ob.x_tile);
var zsign = (world.char.z_tile - ob.z_tile);
var dir;
if (xsign < 0) {
if (!world.tiles[x_tile - 1][z_tile].isObject) {
dir = 5;
} else if ((zsign < 0) and (!world.tiles[x_tile][z_tile - 1].isObject)) {
dir = 3;
} else if ((zsign > 0) and (!world.tiles[x_tile][z_tile + 1].isObject)) {
dir = 7;
}
} else if (xsign > 0) {
if (!world.tiles[x_tile + 1][z_tile].isObject) {
dir = 1;
} else if ((zsign < 0) and (!world.tiles[x_tile][z_tile - 1].isObject)) {
dir = 3;
} else if ((zsign > 0) and (!world.tiles[x_tile][z_tile + 1].isObject)) {
dir = 7;
}
} else if (zsign < 0) {
dir = 3;
} else {
dir = 7;
}
var angle;
if (dir == 5) {
angle = 3.12240426789153;
xChange = -1;
zChange = 0;
} else if (dir == 3) {
angle = 1.5894698775557;
xChange = 0;
zChange = -1;
} else if (dir == 1) {
angle = -0.0186735507608096;
xChange = 1;
zChange = 0;
} else if (dir == 7) {
angle = -1.55803852779381;
xChange = 0;
zChange = 1;
}
var cosAngle = Math.cos(angle);
var sinAngle = Math.sin(angle);
ob.xmov = (2 * cosAngle) * 1.2;
ob.zmov = 2 * sinAngle;
ob.dir = dir;
ob.clip.gotoAndStop("Walk" + dir);
var howfar = (Math.floor(Math.random() * 3) + 1);
ob.targXTile = x_tile + (howfar * xChange);
ob.targZTile = z_tile + (howfar * zChange);
ob.moving = true;
}
i++;
}
}
function buildWorld(maxx, maxz) {
world = new Object();
world.maxx = maxx;
world.maxz = maxz;
world.cellWidth = 29;
world.angleOffset = 7;
world.width = maxx * world.cellWidth;
world.length = (-maxz) * world.cellWidth;
world.path = this.floor_mc;
var path = world.path;
buildFloor(path);
buildCharacter(path);
world.badGuysArray = new Array();
world.goalObjArray = new Array();
world.distItemsArray = new Array();
world.activeInv = 0;
}
function buildCharacter(path) {
world.char = new Object();
world.char.tempx = eval ("BeginX" + gameMC.gLevel);
world.char.tempy = 0;
world.char.tempz = eval ("BeginZ" + gameMC.gLevel);
world.char.speed = 4;
world.char.feeler = 10;
world.char.width = 10;
world.char.xmov = 0;
world.char.zmov = 0;
world.char.x_tile = 0;
world.char.z_tile = 0;
world.char.moving = false;
world.char.invisible = false;
world.char.teleporting = false;
world.char.clip = path.character;
positionCharacter(world.char);
}
function positionCharacter(obj) {
obj.x = obj.tempx;
obj.y = obj.tempy;
obj.z = obj.tempz;
var temp = iso.mapToScreen(obj.x, obj.y, obj.z);
obj.clip._x = temp[0];
obj.clip._y = temp[1];
}
function buildFloor(path) {
path.tile._visible = false;
world.tiles = [];
var y = 0;
var j = 1;
while (j <= 20) {
var i = 1;
while (i <= 20) {
if (j == 1) {
world.tiles[i] = [];
}
var depth = iso.calculateDepth(i, y, j);
var name = ((("cell" + i) + "_") + j);
path.attachMovie("tile", name, depth);
var clip = path[name];
world.tiles[i][j] = {x:i, y:y, z:j, depth:depth, clip:clip, isObject:false, pickup:false, invIndx:null, distractor:false};
var x = ((i - 1) * world.cellWidth);
var z = ((-(j - 1)) * world.cellWidth);
temp = iso.mapToScreen(x, y, z);
clip._x = temp[0];
clip._y = temp[1];
i++;
}
j++;
}
}
function makeObject(x, z, object, pickupable, indx, found, distractor) {
world.tiles[x][z].isObject = true;
world.tiles[x][z].clip.objects.gotoAndStop(object);
world.tiles[x][z].pickup = pickupable;
world.tiles[x][z].invIndx = indx;
world.tiles[x][z].distractor = distractor;
if (eval ("InvOrder" + gameMC.gLevel) and (indx > 0)) {
world.tiles[x][z].clip.objects.Brick_mc.gotoAndStop("UnLit");
} else {
world.tiles[x][z].clip.objects.Brick_mc.gotoAndStop("Lit");
}
}
function clearObject(x, z) {
world.tiles[x][z].isObject = false;
world.tiles[x][z].clip.objects.gotoAndStop(1);
world.tiles[x][z].pickup = false;
world.tiles[x][z].invIndx = null;
world.tiles[x][z].distractor = null;
}
function makeTeleporter(x, z, endx, endz) {
world.tiles[x][z].isObject = true;
world.tiles[x][z].clip.objects.gotoAndStop("teleport");
world.tiles[x][z].pickup = false;
world.tiles[x][z].invIndx = [endx, endz];
world.tiles[x][z].distractor = "teleport";
}
function fnTeleportDone() {
var tArray = this[("Tele" + gameMC.gLevel) + "Array"];
var x1 = tArray[gameMC.activeTeleIndx][0];
var z1 = tArray[gameMC.activeTeleIndx][1];
var x2 = tArray[gameMC.activeTeleIndx][2];
var z2 = tArray[gameMC.activeTeleIndx][3];
fnKillTele(x1, z1);
fnKillTele(x2, z2);
world.char.teleporting = false;
}
function fnKillTele(xtile, ztile) {
world.tiles[xtile][ztile].isObject = false;
world.tiles[xtile][ztile].distractor = false;
world.tiles[xtile][ztile].pickup = false;
world.tiles[xtile][ztile].invIndx = null;
world.tiles[xtile][ztile].clip.objects.gotoAndStop(1);
}
function fnMakeSuperCoin() {
clearInterval(world.superCoinTimer);
var xtile;
var ztile;
var emptyfound = false;
do {
var xt = (Math.floor(Math.random() * 18) + 2);
var zt = (Math.floor(Math.random() * 18) + 2);
var notincorner = true;
if (((((xt < 5) and (zt < 5)) or ((zt >= 10) and (xt <= (zt - 12)))) or ((xt > 10) and (zt < (xt - 10)))) or ((xt > 17) and (zt > 16))) {
notincorner = false;
}
if (notincorner) {
if (fnCheckEmpty(xt, zt)) {
xtile = xt;
ztile = zt;
emptyfound = true;
}
}
} while (!emptyfound);
gameMC.gSuperX = xtile;
gameMC.gSuperZ = ztile;
gameMC.gSuperOn = true;
makeObject(gameMC.gSuperX, gameMC.gSuperZ, "supercoin", true, "supercoin", false, true);
gameMC.gLastSuperCoinChange = getTimer();
}
function fnKillSuperCoin() {
gameMC.gSuperOn = false;
world.tiles[gameMC.gSuperX][gameMC.gSuperZ].isObject = false;
world.tiles[gameMC.gSuperX][gameMC.gSuperZ].distractor = false;
world.tiles[gameMC.gSuperX][gameMC.gSuperZ].pickup = false;
world.tiles[gameMC.gSuperX][gameMC.gSuperZ].invIndx = null;
world.tiles[gameMC.gSuperX][gameMC.gSuperZ].clip.objects.SuperCoin_mc.gotoAndPlay("Out");
gameMC.gSuperZ = null;
gameMC.gSuperX = null;
world.superCoinTimer = setInterval(fnMakeSuperCoin, 5000);
}
function changeGroundTile(x, z, object) {
world.tiles[x][z].clip.innerTile.gotoAndStop(object);
}
function changeManyGroundTiles(x, xnum, z, znum, object) {
var i = 0;
while (i < xnum) {
var j = 0;
while (j < znum) {
world.tiles[x + i][z + j].clip.innerTile.gotoAndStop(object);
j++;
}
i++;
}
}
function fnClearInvisible() {
clearInterval(world.invisibleTimer);
trace("Clearing Invis");
world.char.invisible = false;
}
function fnCheckAvatars(myxtile, myztile) {
var charsempty = true;
if ((world.char.x_tile == myxtile) and (world.char.z_tile == myztile)) {
charsempty = false;
}
var i = 0;
while (i < world.badGuysArray.length) {
if ((world.badGuysArray[i].x_tile == myxtile) and (world.badGuysArray[i].z_tile == myztile)) {
charsempty = false;
}
i++;
}
return(charsempty);
}
function fnCheckEmpty(myxtile, myztile) {
empty = fnCheckAvatars(myxtile, myztile);
if (world.tiles[myxtile][myztile].isObject) {
empty = false;
}
var tArray = this[("Tele" + gameMC.gLevel) + "Array"];
var i = 0;
while (i < tArray.length) {
if ((tArray[i][0] == myxtile) and (tArray[i][1] == myztile)) {
empty = false;
}
if ((tArray[i][2] == myxtile) and (tArray[i][3] == myztile)) {
empty = false;
}
i++;
}
var mArray = eval (("FWalls" + gameMC.gLevel) + "Array");
var i = 0;
while (i < mArray.length) {
if ((mArray[i][0] == myxtile) and (mArray[i][1] == myztile)) {
empty = false;
}
i++;
}
var dArray = this[("Other" + gameMC.gLevel) + "Array"];
var i = 0;
while (i < dArray.length) {
if ((dArray[i][0] == myxtile) and (dArray[i][1] == myztile)) {
empty = false;
}
i++;
}
return(empty);
}
function pickUpDistObject(tilex, tilez, invindx) {
world.tiles[tilex][tilez].isObject = false;
world.tiles[tilex][tilez].pickup = false;
world.tiles[tilex][tilez].clip.objects.gotoAndStop(1);
switch (invindx) {
case "cloak" :
SFX_MC.gotoAndPlay("cloak");
trace("You picked up the cloak");
world.char.invisible = true;
world.invisibleTimer = setInterval(fnClearInvisible, gameMC.INVISIBLETIME);
return;
case "token15" :
SFX_MC.gotoAndPlay("fifteen");
fnScore(15);
return;
case "token25" :
SFX_MC.gotoAndPlay("twentyfive");
fnScore(25);
return;
case "supercoin" :
SFX_MC.gotoAndPlay("twofifty");
gameMC.gSuperZ = null;
gameMC.gSuperX = null;
gameMC.gSuperOn = false;
gameMC.gLastSuperCoinChange = getTimer();
SFX_MC.gotoAndPlay("supercoin");
fnScore(250);
world.superCoinTimer = setInterval(fnMakeSuperCoin, 5000);
return;
default :
trace("Not sure what you picked up");
}
}
function pickUpInvObject(tilex, tilez, invindx) {
trace((((("Picking " + tilex) + " ") + tilez) + " ") + invindx);
if ((invIndx != world.activeInv) and eval ("InvOrder" + gameMC.gLevel)) {
fnShowMessage("That's not the next item.");
} else {
AudioTile_MC.play();
world.activeInv++;
world.tiles[tilex][tilez].isObject = false;
world.tiles[tilex][tilez].pickup = false;
world.tiles[tilex][tilez].clip.objects.gotoAndStop(1);
inventory_mc[("inv" + Invindx) + "_mc"].gotoAndPlay("visible");
world.goalObjArray[Invindx][3] = true;
fnScore(gameMC.BRICKPOINTS);
var allFound = true;
var i = 0;
while (i < world.goalObjArray.length) {
if (!world.goalObjArray[i][3]) {
allFound = false;
break;
}
i++;
}
if (allFound) {
gameMC.fnStopFrameActions();
gameMC.levelComplete = true;
gameMC.ReplayAllowed = true;
world.char.clip.gotoAndStop("stand" + world.char.frame);
var z = 0;
while (z < world.badGuysArray.length) {
world.badGuysArray[z].clip.gotoAndStop("Stand" + world.badGuysArray[z].dir);
z++;
}
} else {
var nextTileX = world.goalObjArray[world.activeInv][0];
var nextTileZ = world.goalObjArray[world.activeInv][1];
fnShowMessage((world.goalObjArray.length - world.activeInv) + " more to go!");
world.tiles[nextTileX][nextTileZ].clip.objects.Brick_mc.gotoAndStop("Lit");
}
}
}
function moveCharacter() {
if (world.char.moving and (!gameMC.world.char.teleporting)) {
world.char.tempx = world.char.x + world.char.xmov;
world.char.tempz = world.char.z + world.char.zmov;
world.char.tempy = world.char.y + world.char.ymov;
var sx = world.char.startx;
var sz = world.char.startz;
var ex = world.char.endx;
var ez = world.char.endz;
var tempx = world.char.tempx;
var tempz = world.char.tempz;
if ((((ex - sx) / Math.abs(ex - sx)) != ((ex - tempx) / Math.abs(ex - tempx))) || (((ez - sz) / Math.abs(ez - sz)) != ((ez - tempz) / Math.abs(ez - tempz)))) {
var lastkey = Key.getCode();
if ((lastkey == world.char.movKey) and (((((((((((((((Key.isDown(100) or Key.isDown(102)) or Key.isDown(99)) or Key.isDown(97)) or Key.isDown(85)) or Key.isDown(79)) or Key.isDown(74)) or Key.isDown(76)) or Key.isDown(81)) or Key.isDown(69)) or Key.isDown(65)) or Key.isDown(68)) or Key.isDown(37)) or Key.isDown(38)) or Key.isDown(39)) or Key.isDown(40))) {
var newx;
var newy;
if (((Key.isDown(102) or Key.isDown(69)) or Key.isDown(79)) or Key.isDown(39)) {
var newx = (world.char.clip._x + (world.cellWidth / 2));
newy = world.char.clip._y - ((world.cellWidth / 2) - world.angleOffset);
} else if (((Key.isDown(100) or Key.isDown(85)) or Key.isDown(81)) or Key.isDown(38)) {
var newx = (world.char.clip._x - (world.cellWidth / 2));
newy = world.char.clip._y - ((world.cellWidth / 2) - world.angleOffset);
} else if (((Key.isDown(99) or Key.isDown(76)) or Key.isDown(68)) or Key.isDown(40)) {
newx = world.char.clip._x + (world.cellWidth / 2);
var newy = (world.char.clip._y + ((world.cellWidth / 2) - world.angleOffset));
} else if (((Key.isDown(97) or Key.isDown(74)) or Key.isDown(65)) or Key.isDown(37)) {
newx = world.char.clip._x - (world.cellWidth / 2);
var newy = (world.char.clip._y + ((world.cellWidth / 2) - world.angleOffset));
}
var temp = iso.mapToIsoWorld(newx, newy);
world.char.endx = temp[0];
world.char.endz = temp[1];
} else {
world.char.moving = false;
world.char.xmov = 0;
world.char.zmov = 0;
world.char.tempx = ex;
world.char.tempz = ez;
world.char.clip.gotoAndStop("stand" + world.char.frame);
}
}
}
}
function detectObjects() {
var x = (world.char.tempx + world.char.feelerx);
var z = Math.abs(world.char.tempz + world.char.feelerz);
var x_tile = Math.ceil(x / world.cellWidth);
var z_tile = Math.ceil(z / world.cellWidth);
if (((world.tiles[x_tile][z_tile].isObject != true) || (world.tiles[x_tile][z_tile].pickup)) || (world.tiles[x_tile][z_tile].distractor == "teleport")) {
var x = world.char.tempx;
var z = Math.abs(world.char.tempz);
var x_tile = Math.ceil(x / world.cellWidth);
var z_tile = Math.ceil(z / world.cellWidth);
if ((world.tiles[x_tile][z_tile].distractor == "teleport") and (!world.char.teleporting)) {
AudioTeleport_MC.gotoAndPlay("down");
world.char.teleporting = true;
world.char.moving = false;
fnScore(gameMC.TELEPOINTS);
var tArray = this[("Tele" + gameMC.gLevel) + "Array"];
var i = 0;
while (i < tArray.length) {
var match = false;
var targxCol;
var targzCol;
if ((x_tile == tArray[i][0]) and (z_tile == tArray[i][1])) {
match = true;
var targxCol = tArray[i][2];
var targzCol = tArray[i][3];
} else if ((x_tile == tArray[i][2]) and (z_tile == tArray[i][3])) {
match = true;
var targxCol = tArray[i][0];
var targzCol = tArray[i][1];
}
if (match) {
trace((("Teleport to x" + targxCol) + " col") + targzCol);
world.char.clip._visible = 0;
world.tiles[x_tile][z_tile].clip.objects.portal_mc.targxCol = targxCol;
world.tiles[x_tile][z_tile].clip.objects.portal_mc.targZCol = targzCol;
world.tiles[x_tile][z_tile].clip.objects.portal_mc.gotoAndStop("enter");
var newx = world.tiles[targxCol][targzCol].clip._x;
var newy = (world.tiles[targxCol][targzCol].clip._y + (world.cellWidth / 6));
var temp = iso.mapToIsoWorld(newx, newy);
world.char.endx = temp[0];
world.char.endz = temp[1];
world.char.tempx = temp[0];
world.char.tempz = temp[1];
world.char.xmov = 0;
world.char.zmov = 0;
x_tile = targxCol;
z_tile = targzCol;
break;
}
i++;
}
}
world.char.x_tile = x_tile;
world.char.z_tile = z_tile;
var depth = (world.tiles[x_tile][z_tile].depth + 2);
world.char.clip.swapDepths(depth);
if (world.tiles[x_tile][z_tile].pickup) {
var invindx = world.tiles[x_tile][z_tile].invIndx;
if (world.tiles[x_tile][z_tile].distractor) {
pickUpDistObject(x_tile, z_tile, invindx);
} else {
pickUpInvObject(x_tile, z_tile, invindx);
}
}
gameMC.charX = x;
gameMC.charZ = z;
gameMC.charXTile = world.char.x_tile;
gameMC.charZTile = world.char.z_tile;
} else {
world.char.tempx = world.char.x;
world.char.tempz = world.char.z;
world.char.xmov = 0;
world.char.ymov = 0;
world.char.moving = false;
var frame = world.char.frame;
world.char.clip.gotoAndStop("stand" + frame);
}
}
function fnCheckDeath() {
var i = 0;
while (i < world.badGuysArray.length) {
var ob = world.badGuysArray[i];
var x_tile = ob.x_tile;
var z_tile = ob.z_tile;
if (((x_tile == world.char.x_tile) and (z_tile == world.char.z_tile)) and (world.char.invisible != true)) {
var thiskillTime = getTimer();
var timediff = (thiskillTime - gameMC.gLastKillTime);
if ((timediff > gameMC.KILLDELAY) or (gameMC.gLastKillTime == null)) {
gameMC.gLastKillTime = thiskillTime;
gameMC.gKills++;
SFX_MC.gotoAndPlay("looseonelife");
world.char.clip.hit_mc.gotoAndPlay("Hit");
Kills_mc.gotoAndStop(gameMC.gKills + 1);
if (gameMC.gKills >= 3) {
fnLevelComplete("Dead");
} else {
gameMC.fnStopFrameActions();
gameMC.levelActive = false;
gameMC.pausestart = getTimer();
clearInterval(world.invisibleTimer);
clearInterval(world.superCoinTimer);
GameAlert_mc.gotoAndStop("Hit");
GameAlert_mc._visible = 1;
}
}
}
i++;
}
}
function fnLevelComplete(state) {
gameMC.fnStopFrameActions();
gameMC.levelActive = false;
fnStopMusic();
world.char.clip._visible = 1;
world.char.clip.gotoAndStop("stand1");
clearInterval(world.invisibleTimer);
clearInterval(world.superCoinTimer);
var i = 0;
while (i < world.tiles.length) {
var z = 0;
while (z < world.tiles[i].length) {
world.tiles[i][z].clip.removeMovieClip();
z++;
}
i++;
}
var i = 0;
while (i < world.goalObjArray.length) {
this["inv" + i].removeMovieClip();
i++;
}
var z = 0;
while (z < world.badGuysArray.length) {
world.badGuysArray[z].clip.removeMovieClip();
z++;
}
delete world;
fnHideMessage();
if (state == "Level") {
SFX_MC.gotoAndPlay("madeIt");
MapClip.Map_mc.gotoAndStop("Level" + gameMC.gLevel);
MapClip._visible = 1;
} else {
gameMC.pausestart = getTimer();
SFX_MC.gotoAndPlay("gameover");
GameAlert_mc.gotoAndStop(state);
GameAlert_mc._visible = 1;
}
}
function fnContinue() {
gameMC.levelComplete = false;
gameMC.levelActive = true;
GameAlert_mc._visible = 0;
GameAlert_mc.gotoAndStop("Park");
var now = getTimer();
gameMC.gLastWallChange = now;
gameMC.gLastTeleChange = now;
var timeaway = (now - gameMC.pausestart);
gameMC.endTime = gameMC.endTime + timeaway;
var i = 0;
while (i < world.badGuysArray.length) {
trace("Deleting " + world.badGuysArray[i].clip);
world.badGuysArray[i].clip.removeMovieClip();
i++;
}
world.badGuysArray = new Array();
var tempBadArray = eval (("Bad" + gameMC.gLevel) + "Array");
var m = 0;
while (m < tempBadArray.length) {
fnBadGuy(tempBadArray[m][0], tempBadArray[m][1], tempBadArray[m][2]);
m++;
}
world.char.tempx = eval ("BeginX" + gameMC.gLevel);
world.char.tempy = 0;
world.char.tempz = eval ("BeginZ" + gameMC.gLevel);
world.char.xmov = 0;
world.char.zmov = 0;
world.char.x_tile = 0;
world.char.z_tile = 0;
world.char.moving = false;
world.char.invisible = false;
world.char.teleporting = false;
positionCharacter(world.char);
fnStartFrameActions();
}
function fnRestartGame(startlevel) {
gameMC.gScore = 0;
gameMC.gKills = 0;
Kills_mc.gotoAndStop(1);
score_txt.text = "0";
MapClip._visible = 0;
MapClip.Map_mc.gotoAndStop("Park");
if (startlevel > 1) {
gameMC.gLevel = startlevel - 1;
fnInitLevel();
} else {
gameMC.LASTLEVEL = 4;
gameMC.gLevel = 0;
GameAlert_mc.gotoAndStop("Help");
GameAlert_mc._visible = 1;
}
}
function fnInitLevel() {
gameMC.levelComplete = false;
gameMC.levelActive = true;
gameMC.ReplayScore = gameMC.gScore;
gameMC.ReplayKills = gameMC.gKills;
gameMC.gLevel++;
level_txt.text = gameMC.gLevel;
mazebg_mc.gotoAndStop(gameMC.gLevel);
GameAlert_mc._visible = 0;
GameAlert_mc.gotoAndStop("Park");
MapClip._visible = 0;
MapClip.Map_mc.gotoAndStop("Park");
gameMC.activeTeleIndx = 0;
gameMC.activeWallIndx = 0;
gameMC.LEVELTIME = eval (("L" + gameMC.gLevel) + "Time") * 1000;
var now = getTimer();
gameMC.gLastWallChange = now;
gameMC.gLastTeleChange = now;
maxx = 20;
maxz = 20;
iso = new isometricAS(maxx, maxz);
buildWorld(maxx, maxz);
var tempMazeArray = eval (("Maze" + gameMC.gLevel) + "Array");
var m = 0;
while (m < tempMazeArray.length) {
makeObject(tempMazeArray[m][0], tempMazeArray[m][1], "block" + tempMazeArray[m][2]);
m++;
}
inventory_mc.gotoAndStop(gameMC.gLevel);
world.goalObjArray = this[("Inv" + gameMC.gLevel) + "Array"];
var i = 0;
while (i < world.goalObjArray.length) {
makeObject(world.goalObjArray[i][0], world.goalObjArray[i][1], world.goalObjArray[i][2], true, i, false, false);
world.goalObjArray[i][3] = false;
inventory_mc[("inv" + Invindx) + "_mc"].gotoAndStop(1);
i++;
}
var tempBadArray = eval (("Bad" + gameMC.gLevel) + "Array");
var m = 0;
while (m < tempBadArray.length) {
fnBadGuy(tempBadArray[m][0], tempBadArray[m][1], tempBadArray[m][2]);
m++;
}
var tOtherArray = this[("Other" + gameMC.gLevel) + "Array"].copy();
var z = 0;
do {
var xt = (Math.floor(Math.random() * 18) + 2);
var zt = (Math.floor(Math.random() * 18) + 2);
var notincorner = true;
if (((((xt < 5) and (zt < 5)) or ((zt >= 10) and (xt <= (zt - 12)))) or ((xt > 10) and (zt < (xt - 10)))) or ((xt > 17) and (zt > 16))) {
notincorner = false;
}
if (notincorner) {
if (fnCheckEmpty(xt, zt)) {
var rndnum = Math.floor(Math.random() * 4);
if (rndnum == 1) {
tOtherArray.push([xt, zt, "token25", false, true]);
} else {
tOtherArray.push([xt, zt, "token15", false, true]);
}
z++;
}
}
} while (z < gameMC.TOKENCOUNT);
world.distItemsArray = tOtherArray;
var i = 0;
while (i < world.distItemsArray.length) {
makeObject(world.distItemsArray[i][0], world.distItemsArray[i][1], world.distItemsArray[i][2], true, world.distItemsArray[i][2], false, true);
world.distItemsArray[i][3] = false;
i++;
}
fnMakeSuperCoin();
gameMC.endTime = Number(getTimer() + gameMC.LEVELTIME);
fnStartMusic();
fnStartFrameActions();
}
function fnRePlayLevel() {
gameMC.ReplayAllowed = false;
gameMC.gLevel--;
gameMC.gScore = gameMC.ReplayScore;
gameMC.gKills = gameMC.ReplayKills;
Kills_mc.gotoAndStop(gameMC.gKills + 1);
score_txt.text = gameMC.gScore;
fnInitLevel();
}
function fnStopFrameActions() {
gameMC.onEnterFrame = "";
}
function fnStartFrameActions() {
gameMC.onEnterFrame = function () {
moveCharacter();
detectObjects();
positionCharacter(world.char);
fnMoveBadGuys();
fnBadGuyAI();
if (!world.char.moving) {
fnCaptureKeys();
}
fnCheckTimer();
fnCheckDeath();
};
}
function fnCheckTimer() {
var now = getTimer();
var end = gameMC.endTime;
var timeleft = ((end - now) / 1000);
minleft = Math.floor(timeleft / 60);
secleft = Math.floor(timeleft - (minleft * 60));
if (minleft < 10) {
minleft = "0" + minleft;
}
if (secleft < 10) {
secleft = "0" + secleft;
}
minleft_txt.text = minleft;
secLeft_txt.text = secleft;
if (timeleft < 1) {
fnLevelComplete("OutOfTime");
}
if (((now - gameMC.MsgTime) > gameMC.MSGDELAY) and (Message_mc._visible == 1)) {
fnHideMessage();
} else {
Message_mc._x = world.char.clip._x + 220;
Message_mc._y = world.char.clip._y;
}
var tempMazeArray = eval (("FWalls" + gameMC.gLevel) + "Array");
if (((now - gameMC.gLastWallChange) > gameMC.WALLDELAY) and (tempMazeArray.length > 1)) {
gameMC.gLastWallChange = now;
var m = 0;
while (m < tempMazeArray.length) {
var xtile = tempMazeArray[m][0];
var ztile = tempMazeArray[m][1];
if ((world.tiles[xtile][ztile].clip.objects._currentframe > 1) and ((world.char.x_tile != xtile) and (world.char.z_tile != ztile))) {
world.tiles[xtile][ztile].clip.objects.block_mc.gotoAndPlay("fade_out");
}
m++;
}
gameMC.activeWallIndx = gameMC.activeWallIndx + gameMC.WALLCOUNT;
if (gameMC.activeWallIndx >= tempMazeArray.length) {
gameMC.activeWallIndx = 0;
}
var endIndex = (gameMC.activeWallIndx + gameMC.WALLCOUNT);
var m = gameMC.activeWallIndx;
while (m != endIndex) {
if (m >= tempMazeArray.length) {
m = 0;
endIndex = endIndex - tempMazeArray.length;
}
var xtile = tempMazeArray[m][0];
var ztile = tempMazeArray[m][1];
var shape = tempMazeArray[m][2];
world.tiles[xtile][ztile].clip.objects.xtile = xtile;
world.tiles[xtile][ztile].clip.objects.ztile = ztile;
world.tiles[xtile][ztile].clip.objects.dynamicWall = true;
makeObject(xtile, ztile, "block" + shape);
m++;
}
}
var tArray = this[("Tele" + gameMC.gLevel) + "Array"];
if ((((now - gameMC.gLastTeleChange) > gameMC.TELEDELAY) and (tArray.length > 1)) and (!world.char.teleporting)) {
gameMC.gLastTeleChange = now;
fnKillTele(tArray[gameMC.activeTeleIndx][0], tArray[gameMC.activeTeleIndx][1], tArray[gameMC.activeTeleIndx][2], tArray[gameMC.activeTeleIndx][3]);
fnKillTele(tArray[gameMC.activeTeleIndx][2], tArray[gameMC.activeTeleIndx][3], tArray[gameMC.activeTeleIndx][0], tArray[gameMC.activeTeleIndx][1]);
gameMC.activeTeleIndx++;
if (gameMC.activeTeleIndx > (tArray.length - 1)) {
gameMC.activeTeleIndx = 0;
}
makeTeleporter(tArray[gameMC.activeTeleIndx][0], tArray[gameMC.activeTeleIndx][1], tArray[gameMC.activeTeleIndx][2], tArray[gameMC.activeTeleIndx][3]);
makeTeleporter(tArray[gameMC.activeTeleIndx][2], tArray[gameMC.activeTeleIndx][3], tArray[gameMC.activeTeleIndx][0], tArray[gameMC.activeTeleIndx][1]);
}
if (gameMC.gSuperOn and ((now - gameMC.gLastSuperCoinChange) > (gameMC.SUPERCOINDELAY - (gameMC.glevel * 500)))) {
fnKillSuperCoin();
}
}
function fnHideMessage() {
Message_mc._visible = 0;
Message_mc.onMouseDown = "";
}
function fnShowMessage(msgString) {
Message_mc._x = world.char.clip._x + 220;
Message_mc._y = world.char.clip._y;
Message_mc._visible = 1;
Message_mc.msg_txt.text = msgString;
Message_mc.onMouseDown = function () {
fnHideMessage();
};
gameMC.MsgTime = getTimer();
}
function fnScore(points) {
gameMC.gScore = gameMC.gScore + points;
score_txt.text = gameMC.gScore;
EarnPoint_mc._x = world.char.clip._x + 190;
EarnPoint_mc._y = world.char.clip._y - 20;
EarnPoint_mc.points = points;
EarnPoint_mc.gotoAndPlay("On");
}
function fnStartMusic() {
mapstop_mc.play();
music_mc.fnStartMusic();
}
function fnStopMusic() {
music_mc.fnStopMusic();
}
function fnHelp(whichstate) {
if (gameMC.levelActive) {
if (whichstate == "on") {
fnStopFrameActions();
GameAlert_mc.gotoAndStop("Help");
GameAlert_mc._visible = 1;
gameMC.pausestart = getTimer();
} else {
var timeaway = (getTimer() - gameMC.pausestart);
gameMC.endTime = gameMC.endTime + timeaway;
GameAlert_mc._visible = 0;
GameAlert_mc.gotoAndStop("Park");
fnStartFrameActions();
}
}
}
Array.prototype.searchArray = function (searchElement) {
var i = 0;
while (i < this.length) {
if (this[i] == searchElement) {
return(i);
}
i++;
}
return(null);
};
Array.prototype.copy = function () {
newArray = new Array();
count = 0;
while (count < this.length) {
newArray[count] = this[count];
count++;
}
return(newArray);
};
Instance of Symbol 959 MovieClip in Frame 14
onClipEvent (load) {
function fnUpdateField() {
vFrameRate = vFrameIncr;
vFrameIncr = Number(0);
}
vFrameIncr = Number(0);
vStartTime = getTimer();
var vCurrentTime;
setInterval(fnUpdateField, 1000);
}
Instance of Symbol 981 MovieClip "Message_mc" in Frame 14
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 1119 MovieClip "MapClip" in Frame 14
onClipEvent (load) {
this._visible = 0;
this._x = 245;
}
Instance of Symbol 1192 MovieClip "GameAlert_mc" in Frame 14
onClipEvent (load) {
this._visible = 0;
this._x = 245;
}
Frame 15
stop();
music_mc.loadMovie(gameMC.sw2 + "music.swf");
MapClip.Map_mc.gotoAndStop("StartGame");
MapClip._visible = 1;
Symbol 13 MovieClip Frame 1
bar.stop();
Symbol 18 MovieClip Frame 134
_parent.gotoAndPlay("base");
Symbol 39 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 8
play();
Instance of Symbol 45 MovieClip in Symbol 46 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 46 MovieClip Frame 20
stop();
gameMC.clearObject(_parent.xtile, _parent.ztile);
Symbol 46 MovieClip Frame 24
play();
Instance of Symbol 45 MovieClip in Symbol 46 MovieClip Frame 24
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 46 MovieClip Frame 35
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 9
play();
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 50 MovieClip Frame 21
stop();
gameMC.clearObject(_parent.xtile, _parent.ztile);
Symbol 50 MovieClip Frame 25
play();
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 25
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 50 MovieClip Frame 36
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 20
gotoAndPlay (1);
Symbol 162 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 6
stop();
Symbol 170 MovieClip Frame 14
stop();
Symbol 186 MovieClip Frame 37
stop();
Symbol 196 MovieClip Frame 43
gotoAndStop (1);
Symbol 202 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 1
stop();
Instance of Symbol 202 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 208 MovieClip in Symbol 221 MovieClip Frame 2
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 214 MovieClip in Symbol 221 MovieClip Frame 3
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 220 MovieClip in Symbol 221 MovieClip Frame 4
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 231 MovieClip Frame 34
stop();
_parent.callDestPortal(x, z);
Symbol 242 MovieClip Frame 17
stop();
gameMC.world.char.clip._visible = 1;
gameMC.fnTeleportDone();
Symbol 243 MovieClip Frame 1
function callDestPortal() {
trace((("Calling " + targxCol) + " , ") + targZCol);
gameMC.world.tiles[targxCol][targZCol].clip.objects.portal_mc.gotoAndStop("exit");
}
stop();
Symbol 246 MovieClip Frame 1
function fnShowName() {
var f = this._currentframe;
if ((f > 1) and (f < 15)) {
var r = 1;
var c = 1;
debug_txt.text = (((r + ",") + c) + ",") + f;
}
}
stop();
Symbol 246 MovieClip Frame 2
fnShowName();
Instance of Symbol 42 MovieClip in Symbol 246 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 246 MovieClip Frame 3
fnShowName();
Instance of Symbol 46 MovieClip "block_mc" in Symbol 246 MovieClip Frame 3
onClipEvent (load) {
if (_parent.dynamicWall) {
this.gotoAndPlay("fade_in");
} else {
this.gotoAndStop(gameMC.gLevel);
}
}
Symbol 246 MovieClip Frame 4
fnShowName();
Instance of Symbol 50 MovieClip "block_mc" in Symbol 246 MovieClip Frame 4
onClipEvent (load) {
if (_parent.dynamicWall) {
this.gotoAndPlay("fade_in");
} else {
this.gotoAndStop(gameMC.gLevel);
}
}
Symbol 246 MovieClip Frame 5
fnShowName();
Instance of Symbol 53 MovieClip in Symbol 246 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 246 MovieClip Frame 6
fnShowName();
Instance of Symbol 56 MovieClip in Symbol 246 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 246 MovieClip Frame 7
fnShowName();
Instance of Symbol 59 MovieClip in Symbol 246 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 246 MovieClip Frame 8
fnShowName();
Instance of Symbol 62 MovieClip in Symbol 246 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 246 MovieClip Frame 9
fnShowName();
Instance of Symbol 65 MovieClip in Symbol 246 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 246 MovieClip Frame 10
fnShowName();
Instance of Symbol 68 MovieClip in Symbol 246 MovieClip Frame 10
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 246 MovieClip Frame 11
fnShowName();
Instance of Symbol 71 MovieClip in Symbol 246 MovieClip Frame 11
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 246 MovieClip Frame 12
fnShowName();
Instance of Symbol 74 MovieClip in Symbol 246 MovieClip Frame 12
onClipEvent (load) {
this.gotoAndStop(gameMC.gLevel);
}
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 28
gotoAndStop (1);
Symbol 312 MovieClip Frame 20
gotoAndPlay (1);
Symbol 313 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 20
gotoAndPlay (1);
Symbol 377 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 20
gotoAndPlay (1);
Symbol 441 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 20
gotoAndPlay (1);
Symbol 505 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 1
stop();
Instance of Symbol 202 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 313 MovieClip in Symbol 506 MovieClip Frame 7
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 208 MovieClip in Symbol 506 MovieClip Frame 25
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 377 MovieClip in Symbol 506 MovieClip Frame 31
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 214 MovieClip in Symbol 506 MovieClip Frame 48
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 441 MovieClip in Symbol 506 MovieClip Frame 54
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 220 MovieClip in Symbol 506 MovieClip Frame 72
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 505 MovieClip in Symbol 506 MovieClip Frame 78
onClipEvent (enterFrame) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (load) {
if (gameMC.world.char.invisible) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 640 MovieClip [BadGuyFilch_lmc] Frame 1
stop();
Symbol 773 MovieClip [BadGuyDraco_lmc] Frame 1
stop();
Symbol 842 MovieClip [BadGuySnape_lmc] Frame 1
stop();
Symbol 853 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 862 MovieClip Frame 1
stop();
Symbol 862 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 866 MovieClip Frame 1
stop();
Symbol 866 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 871 MovieClip Frame 1
stop();
Symbol 871 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 874 MovieClip Frame 1
stop();
Symbol 874 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 878 MovieClip Frame 1
stop();
Symbol 878 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 883 MovieClip Frame 1
stop();
Symbol 883 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 886 MovieClip Frame 1
stop();
Symbol 886 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 890 MovieClip Frame 1
stop();
Symbol 890 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 893 MovieClip Frame 1
stop();
Symbol 893 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 898 MovieClip Frame 1
stop();
Symbol 898 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 901 MovieClip Frame 1
stop();
Symbol 901 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 905 MovieClip Frame 1
stop();
Symbol 905 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 909 MovieClip Frame 1
stop();
Symbol 909 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 914 MovieClip Frame 1
stop();
Symbol 914 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 917 MovieClip Frame 1
stop();
Symbol 917 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 920 MovieClip Frame 1
stop();
Symbol 920 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 923 MovieClip Frame 1
stop();
Symbol 923 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 939 MovieClip Frame 1
stop();
Symbol 939 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 942 MovieClip Frame 1
stop();
Symbol 942 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 945 MovieClip Frame 1
stop();
Symbol 945 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 948 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 71
stop();
if (gameMC.levelComplete) {
gameMC.fnLevelComplete("Level");
}
Symbol 957 MovieClip Frame 1
stop();
Symbol 959 MovieClip Frame 1
vFrameIncr++;
play();
Symbol 959 MovieClip Frame 2
gotoAndPlay (1);
Symbol 971 MovieClip Frame 1
stop();
Symbol 978 Button
on (rollOver) {
gameMC.fnHelp("on");
}
on (rollOut, dragOut) {
gameMC.fnHelp("off");
}
Symbol 979 MovieClip Frame 30
stop();
Symbol 1011 Button
on (release) {
_root.SFX_MC.gotoAndStop("park");
gameMC.fnRestartGame(3);
}
Symbol 1012 MovieClip Frame 89
stop();
_parent.next_mc._visible = 1;
Symbol 1026 Button
on (release) {
gotoAndStop (2);
}
on (rollOver) {
textClip_mc.bubble_txt.text = gameMC.text5;
if (textClip_mc.bubble_txt.bottomScroll < 4) {
textClip_mc.bubble_txt.text = "\r" + textClip_mc.bubble_txt.text;
}
textClip_mc._visible = 1;
}
on (rollOut, dragOut, releaseOutside) {
textClip_mc._visible = 0;
}
Symbol 1031 Button
on (rollOver) {
gotoAndStop (1);
}
Symbol 1044 Button
on (release) {
if (code == gameMC.code5) {
_root.SFX_MC.gotoAndStop("park");
gameMC.LASTLEVEL = 5;
gameMC.fnRestartGame(5);
} else {
gotoAndPlay (7);
}
}
Symbol 1046 MovieClip Frame 1
stop();
_parent.next_mc._visible = 1;
Instance of Symbol 1029 MovieClip "textClip_mc" in Symbol 1046 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 1046 MovieClip Frame 2
code = "";
_parent.next_mc._visible = 0;
Symbol 1046 MovieClip Frame 7
play();
_parent.next_mc._visible = 1;
Symbol 1046 MovieClip Frame 50
gotoAndStop (1);
Symbol 1049 Button
on (release) {
gotoAndStop (2);
}
on (rollOver) {
textClip_mc.bubble_txt.text = gameMC.text6;
if (textClip_mc.bubble_txt.bottomScroll < 4) {
textClip_mc.bubble_txt.text = "\r" + textClip_mc.bubble_txt.text;
}
textClip_mc._visible = 1;
}
on (rollOut, dragOut, releaseOutside) {
textClip_mc._visible = 0;
}
Symbol 1053 Button
on (rollOver) {
gotoAndStop (1);
}
Symbol 1054 Button
on (release) {
if (code == gameMC.code6) {
_root.SFX_MC.gotoAndStop("park");
gameMC.LASTLEVEL = 6;
gameMC.fnRestartGame(6);
} else {
gotoAndPlay (7);
}
}
Symbol 1056 MovieClip Frame 1
stop();
_parent.next_mc._visible = 1;
Instance of Symbol 1052 MovieClip "textClip_mc" in Symbol 1056 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 1056 MovieClip Frame 2
code = "";
_parent.next_mc._visible = 0;
Symbol 1056 MovieClip Frame 7
play();
_parent.next_mc._visible = 1;
Symbol 1056 MovieClip Frame 50
gotoAndStop (1);
Symbol 1057 Button
on (release) {
_root.SFX_MC.gotoAndStop("park");
if (gameMC.gLevel == 0) {
trace("Restarting");
gameMC.fnRestartGame();
} else {
trace("Next Level");
gameMC.fnInitLevel();
}
}
Symbol 1059 MovieClip Frame 30
stop();
Symbol 1068 Button
on (release) {
_root.SFX_MC.gotoAndStop("park");
gameMC.fnInitLevel();
}
Symbol 1069 MovieClip Frame 89
stop();
_parent.next_mc._visible = 1;
Symbol 1075 MovieClip Frame 89
stop();
_parent.next_mc._visible = 1;
Symbol 1085 MovieClip Frame 89
stop();
_parent.next_mc._visible = 1;
Symbol 1097 Button
on (release) {
gameMC.fnOpenHighScores();
}
Symbol 1100 Button
on (release) {
_root.SFX_MC.gotoAndStop("park");
gameMC.fnRestartGame();
}
Symbol 1102 MovieClip Frame 40
stop();
gscore = gameMC.gScore;
gname = "mmJS";
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
stop();
Symbol 1116 MovieClip Frame 40
stop();
Symbol 1118 MovieClip Frame 1
stop();
stop();
Instance of Symbol 1046 MovieClip in Symbol 1118 MovieClip Frame 1
onClipEvent (load) {
if ((gameMC.KeycodeVer == "2") or (gameMC.KeycodeVer == "3")) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 1056 MovieClip in Symbol 1118 MovieClip Frame 1
onClipEvent (load) {
if (gameMC.KeycodeVer == "3") {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 1058 MovieClip "next_mc" in Symbol 1118 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 1118 MovieClip Frame 13
stop();
Symbol 1118 MovieClip Frame 18
stop();
Symbol 1118 MovieClip Frame 23
stop();
Symbol 1118 MovieClip Frame 25
gameMC.fnPostHighScore(gameMC.gScore);
Symbol 1118 MovieClip Frame 30
stop();
Symbol 1118 MovieClip Frame 32
gameMC.fnPostHighScore(gameMC.gScore);
Symbol 1118 MovieClip Frame 35
stop();
Symbol 1118 MovieClip Frame 42
gameMC.fnPostHighScore(gameMC.gScore);
Symbol 1118 MovieClip Frame 43
stop();
Symbol 1118 MovieClip Frame 50
gameMC.fnPostHighScore(gameMC.gScore);
Symbol 1118 MovieClip Frame 51
stop();
Symbol 1119 MovieClip Frame 1
stop();
Symbol 1123 MovieClip Frame 1
stop();
Symbol 1123 MovieClip Frame 2
pointval_mc.points_txt.text = points;
Symbol 1123 MovieClip Frame 19
pointval_mc.points_txt.text = points;
Symbol 1123 MovieClip Frame 25
gotoAndStop (1);
Symbol 1139 MovieClip Frame 30
stop();
Symbol 1227 Button
on (release) {
gameMC.fnRestartGame();
}
Symbol 1145 MovieClip Frame 1
gscore = gameMC.gScore;
gname = "mmJS";
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
Symbol 1147 MovieClip Frame 30
stop();
Symbol 1150 Button
on (release) {
gameMC.fnContinue();
}
Symbol 1153 MovieClip Frame 1
stop();
Symbol 1190 Button
on (release) {
gameMC.fnInitLevel();
}
Symbol 1192 MovieClip Frame 1
stop();
Symbol 1192 MovieClip Frame 2
gameMC.fnPostHighScore(gameMC.gScore);
Symbol 1192 MovieClip Frame 3
gameMC.fnPostHighScore(gameMC.gScore);
Instance of Symbol 1145 MovieClip "ReplayClip" in Symbol 1192 MovieClip Frame 3
onClipEvent (load) {
trace("replay? " + gameMC.ReplayAllowed);
if (gameMC.ReplayAllowed) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1153 MovieClip in Symbol 1192 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(gameMC.gKills);
}
Instance of Symbol 1191 MovieClip in Symbol 1192 MovieClip Frame 5
onClipEvent (load) {
if (gameMC.gLevel == 0) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Symbol 1201 MovieClip Frame 1
stop();
Symbol 1201 MovieClip Frame 11
gotoAndStop (1);
Symbol 1201 MovieClip Frame 21
gotoAndStop (1);
Symbol 1201 MovieClip Frame 31
gotoAndStop (1);
Symbol 1201 MovieClip Frame 41
gotoAndStop (1);
Symbol 1201 MovieClip Frame 51
gotoAndStop (1);
Symbol 1201 MovieClip Frame 199
gotoAndStop (1);
Symbol 1201 MovieClip Frame 216
gotoAndStop (1);
Symbol 1204 MovieClip Frame 1
stop();
Symbol 1204 MovieClip Frame 11
gotoAndStop (1);
Symbol 1208 MovieClip Frame 1
stop();
Symbol 1208 MovieClip Frame 20
gotoAndStop (1);
Symbol 1210 MovieClip Frame 1
stop();
Symbol 1210 MovieClip Frame 3
gotoAndStop (1);