Frame 4
stop();
Frame 32
stop();
Frame 41
stop();
Frame 55
stop();
Frame 56
_root.Level = 1;
playing = false;
push = new Sound(_root.mySound);
push.attachSound("push");
locked = new Sound(_root.mySound);
locked.attachSound("locked");
walk = new Sound(_root.mySound);
walk.attachSound("walk");
Frame 57
function buildMap(Map) {
MapWidth = Map[0].length;
MapHeight = Map.length;
j = 0;
TileKind = random(3) + 1;
while (j < MapHeight) {
i = 0;
while (i < MapWidth) {
this.attachMovie("Tile", (("t_" + j) + "_") + i, ++Depth);
this[(("t_" + j) + "_") + i]._x = i * TileW;
this[(("t_" + j) + "_") + i]._y = j * TileH;
this[(("t_" + j) + "_") + i].gotoAndStop(Map[j][i]);
this[(("t_" + j) + "_") + i].ExitBox = false;
this[(("t_" + j) + "_") + i].exit = false;
if (Map[j][i] >= 10) {
this[(("t_" + j) + "_") + i].gotoAndStop(1);
this[(("t_" + j) + "_") + i].Tile.gotoAndStop(Map[j][i] - 9);
} else if (Map[j][i] == 3) {
HoleCount++;
this[(("t_" + j) + "_") + i].Enemy.gotoAndStop(2);
this[(("t_" + j) + "_") + i].exit = true;
}
i++;
}
j++;
}
}
function createChar(px, py) {
attachMovie("Hero", "Hero", ++Depth);
Hero._width = TileW;
Hero._height = TileH;
Hero._x = (TileW * px) + (Hero._width / 2);
Hero._y = (TileH * py) + (Hero._height / 2);
}
function MoveHero(chardir) {
if (playGame) {
if (chardir == null) {
} else {
i = Math.floor(Hero._x / TileW);
j = Math.floor(Hero._y / TileH);
if (chardir == "Up") {
_root.Hero.gotoAndStop("Up");
if ((myMap[j - 1][i] == M) || (myMap[j - 1][i] == E)) {
Hero._y = Hero._y - s;
MoveCount++;
walk.start(0, 1);
}
if (myMap[j - 1][i] == B) {
if (myMap[j - 2][i] == M) {
_root[(("t_" + (j - 1)) + "_") + i].ExitBox = false;
push.start(0, 1);
MoveCount++;
BUp(j - 1, i);
Hero._y = Hero._y - s;
} else if (myMap[j - 2][i] == E) {
_root[(("t_" + (j - 1)) + "_") + i].ExitBox = false;
_root[(("t_" + (j - 2)) + "_") + i].ExitBox = true;
locked.start(0, 1);
MoveCount++;
BUp(j - 1, i);
Hero._y = Hero._y - s;
}
}
checkWin();
}
if (chardir == "Down") {
_root.Hero.gotoAndStop("Down");
if ((myMap[j + 1][i] == M) || (myMap[j + 1][i] == E)) {
Hero._y = Hero._y + s;
MoveCount++;
walk.start(0, 1);
}
if (myMap[j + 1][i] == B) {
if (myMap[j + 2][i] == M) {
_root[(("t_" + (j + 1)) + "_") + i].ExitBox = false;
push.start(0, 1);
MoveCount++;
BDown(j + 1, i);
Hero._y = Hero._y + s;
} else if (myMap[j + 2][i] == E) {
_root[(("t_" + (j + 1)) + "_") + i].ExitBox = false;
_root[(("t_" + (j + 2)) + "_") + i].ExitBox = true;
locked.start(0, 1);
MoveCount++;
BDown(j + 1, i);
Hero._y = Hero._y + s;
}
}
checkWin();
}
if (chardir == "Left") {
_root.Hero.gotoAndStop("Left");
if ((myMap[j][i - 1] == M) || (myMap[j][i - 1] == E)) {
Hero._x = Hero._x - s;
MoveCount++;
walk.start(0, 1);
}
if (myMap[j][i - 1] == B) {
if (myMap[j][i - 2] == M) {
_root[(("t_" + j) + "_") + (i - 1)].ExitBox = false;
push.start(0, 1);
MoveCount++;
BLeft(j, i - 1);
Hero._x = Hero._x - s;
} else if (myMap[j][i - 2] == E) {
_root[(("t_" + j) + "_") + (i - 1)].ExitBox = false;
_root[(("t_" + j) + "_") + (i - 2)].ExitBox = true;
locked.start(0, 1);
MoveCount++;
BLeft(j, i - 1);
Hero._x = Hero._x - s;
}
}
checkWin();
}
if (chardir == "Right") {
_root.Hero.gotoAndStop("Right");
if ((myMap[j][i + 1] == M) || (myMap[j][i + 1] == E)) {
Hero._x = Hero._x + s;
MoveCount++;
walk.start(0, 1);
} else if (myMap[j][i + 1] == B) {
if (myMap[j][i + 2] == M) {
_root[(("t_" + j) + "_") + (i + 1)].ExitBox = false;
push.start(0, 1);
MoveCount++;
BRight(j, i + 1);
Hero._x = Hero._x + s;
} else if (myMap[j][i + 2] == E) {
_root[(("t_" + j) + "_") + (i + 1)].ExitBox = false;
_root[(("t_" + j) + "_") + (i + 2)].ExitBox = true;
locked.start(0, 1);
MoveCount++;
BRight(j, i + 1);
Hero._x = Hero._x + s;
}
}
checkWin();
}
updateAfterEvent();
}
}
}
function CheckFailStatus(j, i) {
_root.FailMC.Depth = _root.FailMC.getDepth();
if (((myMap[j][i - 1] >= 10) && (myMap[j - 1][i - 1] >= 10)) && (myMap[j - 1][i] >= 10)) {
_root.playGame = false;
_root.FailMC.swapDepths(++Depth);
_root.FailMC.gotoAndPlay(2);
}
if (((myMap[j - 1][i] >= 10) && (myMap[j - 1][i + 1] >= 10)) && (myMap[j][i + 1] >= 10)) {
_root.playGame = false;
_root.FailMC.swapDepths(++Depth);
_root.FailMC.gotoAndPlay(2);
}
if (((myMap[j][i + 1] >= 10) && (myMap[j + 1][i + 1] >= 10)) && (myMap[j + 1][i] >= 10)) {
_root.playGame = false;
_root.FailMC.swapDepths(++Depth);
_root.FailMC.gotoAndPlay(2);
}
if (((myMap[j][i - 1] >= 10) && (myMap[j + 1][i - 1] >= 10)) && (myMap[j + 1][i] >= 10)) {
_root.playGame = false;
_root.FailMC.swapDepths(++Depth);
_root.FailMC.gotoAndPlay(2);
}
}
function BUp(uy, cx) {
if (_root[(("t_" + uy) + "_") + cx].exit == true) {
_root[(("t_" + uy) + "_") + cx].gotoAndStop(E);
myMap[uy][cx] = E;
} else {
_root[(("t_" + uy) + "_") + cx].gotoAndStop(M);
myMap[uy][cx] = M;
}
_root[(("t_" + (uy - 1)) + "_") + cx].gotoAndStop(B);
if (_root[(("t_" + (uy - 1)) + "_") + cx].ExitBox == true) {
_root[(("t_" + (uy - 1)) + "_") + cx].gem.gotoAndStop(2);
} else {
CheckFailStatus(uy - 1, cx);
}
myMap[uy - 1][cx] = B;
}
function BDown(dy, cx) {
var _local3 = dy;
var _local2 = cx;
var _local4 = _root;
if (_local4[(("t_" + _local3) + "_") + _local2].exit == true) {
_local4[(("t_" + _local3) + "_") + _local2].gotoAndStop(E);
myMap[_local3][_local2] = E;
} else {
_local4[(("t_" + _local3) + "_") + _local2].gotoAndStop(M);
myMap[_local3][_local2] = M;
}
_local4[(("t_" + (_local3 + 1)) + "_") + _local2].gotoAndStop(B);
if (_local4[(("t_" + (_local3 + 1)) + "_") + _local2].ExitBox == true) {
_local4[(("t_" + (_local3 + 1)) + "_") + _local2].gem.gotoAndStop(2);
} else {
CheckFailStatus(dy + 1, cx);
}
myMap[_local3 + 1][_local2] = B;
}
function BLeft(cy, lx) {
var _local3 = cy;
var _local2 = lx;
var _local4 = _root;
if (_local4[(("t_" + _local3) + "_") + _local2].exit == true) {
_local4[(("t_" + _local3) + "_") + _local2].gotoAndStop(E);
myMap[_local3][_local2] = E;
} else {
_local4[(("t_" + _local3) + "_") + _local2].gotoAndStop(M);
myMap[_local3][_local2] = M;
}
_local4[(("t_" + _local3) + "_") + (_local2 - 1)].gotoAndStop(B);
if (_local4[(("t_" + _local3) + "_") + (_local2 - 1)].ExitBox == true) {
_local4[(("t_" + _local3) + "_") + (_local2 - 1)].gem.gotoAndStop(2);
} else {
CheckFailStatus(cy, lx - 1);
}
myMap[_local3][_local2 - 1] = B;
}
function BRight(cy, rx) {
var _local3 = cy;
var _local2 = rx;
var _local4 = _root;
if (_local4[(("t_" + _local3) + "_") + _local2].exit == true) {
_local4[(("t_" + _local3) + "_") + _local2].gotoAndStop(E);
myMap[_local3][_local2] = E;
} else {
_local4[(("t_" + _local3) + "_") + _local2].gotoAndStop(M);
myMap[_local3][_local2] = M;
}
_local4[(("t_" + _local3) + "_") + (_local2 + 1)].gotoAndStop(B);
if (_local4[(("t_" + _local3) + "_") + (_local2 + 1)].ExitBox == true) {
_local4[(("t_" + _local3) + "_") + (_local2 + 1)].gem.gotoAndStop(2);
} else {
CheckFailStatus(cy, rx + 1);
}
myMap[_local3][_local2 + 1] = B;
}
function checkWin() {
var _local4 = _root;
exitCounter = 0;
var _local3 = 0;
while (_local3 < MapHeight) {
var _local2 = 0;
while (_local2 < MapWidth) {
if (_local4[(("t_" + _local3) + "_") + _local2].ExitBox == true) {
exitCounter++;
}
if (exitCounter == HoleCount) {
playGame = false;
_root.WinMC.Depth = _root.WinMC.getDepth();
WinMC.swapDepths(++Depth);
WinMC.gotoAndPlay(2);
}
_local2++;
}
_local3++;
}
}
function placeChar(Level) {
switch (Level) {
case 1 :
createChar(4, 6);
break;
case 2 :
createChar(5, 2);
break;
case 3 :
createChar(6, 4);
break;
case 4 :
createChar(5, 2);
break;
case 5 :
createChar(2, 5);
break;
case 6 :
createChar(4, 2);
break;
case 7 :
createChar(5, 4);
break;
case 8 :
createChar(1, 4);
break;
case 9 :
createChar(3, 2);
break;
case 10 :
createChar(1, 5);
break;
case 11 :
createChar(2, 2);
break;
case 12 :
createChar(2, 5);
break;
case 13 :
createChar(4, 2);
break;
case 14 :
createChar(6, 6);
break;
case 15 :
createChar(6, 7);
break;
case 16 :
createChar(6, 6);
break;
case 17 :
createChar(2, 2);
break;
case 18 :
createChar(2, 2);
break;
case 19 :
createChar(3, 5);
break;
case 20 :
createChar(2, 7);
break;
case 21 :
createChar(6, 3);
break;
case 22 :
createChar(6, 5);
break;
case 23 :
createChar(6, 5);
break;
case 24 :
createChar(6, 3);
}
}
stop();
myMap1 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 10, 11, 11, 11, 11, 12], [5, 10, 19, 2, 2, 3, 2, 22], [5, 13, 2, 4, 2, 6, 2, 22], [5, 13, 2, 3, 4, 2, 2, 22], [5, 13, 2, 2, 6, 4, 10, 16], [5, 13, 3, 2, 2, 2, 22, 5], [5, 14, 15, 15, 15, 15, 16, 5]];
myMap2 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 11, 11, 11, 11, 11, 12], [5, 13, 3, 2, 2, 2, 2, 22], [5, 13, 2, 6, 3, 6, 2, 22], [5, 13, 2, 2, 2, 4, 2, 22], [5, 13, 3, 4, 4, 2, 10, 16], [5, 13, 2, 2, 10, 15, 16, 5], [5, 14, 15, 15, 16, 5, 5, 5]];
myMap3 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 11, 12, 5, 10, 11, 12], [5, 13, 3, 18, 11, 19, 3, 22], [5, 13, 2, 6, 2, 2, 3, 22], [5, 13, 2, 4, 4, 2, 2, 22], [5, 13, 2, 2, 4, 2, 2, 22], [5, 13, 2, 2, 6, 2, 2, 22], [5, 13, 2, 2, 10, 11, 11, 16], [5, 14, 11, 11, 16, 5, 5, 5]];
myMap4 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 10, 11, 11, 12, 5], [5, 5, 5, 13, 2, 2, 18, 12], [10, 11, 11, 19, 2, 2, 2, 22], [13, 3, 2, 6, 4, 4, 2, 22], [13, 2, 2, 2, 2, 2, 10, 16], [13, 3, 2, 2, 4, 10, 16, 5], [14, 12, 3, 2, 2, 22, 5, 5], [5, 14, 11, 11, 11, 16, 5, 5]];
myMap5 = [[5, 5, 5, 5, 5, 5, 5, 5], [10, 11, 11, 11, 12, 5, 5, 5], [13, 2, 3, 3, 18, 11, 11, 12], [13, 2, 4, 2, 2, 2, 2, 22], [13, 2, 2, 6, 4, 6, 2, 22], [13, 2, 2, 2, 3, 4, 2, 22], [14, 11, 11, 11, 11, 11, 11, 16]];
myMap6 = [[5, 5, 5, 5, 5, 5, 5, 5], [10, 11, 11, 11, 11, 11, 12, 5], [13, 3, 2, 2, 2, 3, 22, 5], [13, 2, 2, 4, 6, 2, 18, 12], [13, 2, 6, 2, 4, 3, 2, 22], [13, 2, 2, 2, 4, 6, 2, 22], [14, 11, 11, 12, 2, 2, 2, 22], [5, 5, 5, 14, 11, 11, 11, 16]];
myMap7 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 11, 11, 11, 12, 5, 5], [5, 13, 3, 2, 3, 18, 11, 12], [5, 13, 3, 6, 4, 4, 2, 22], [5, 13, 2, 2, 2, 2, 2, 22], [5, 13, 2, 4, 6, 2, 2, 22], [5, 14, 12, 2, 2, 2, 10, 16], [5, 5, 14, 11, 11, 11, 16, 5]];
myMap8 = [[5, 5, 5, 5, 5, 5, 5, 5], [10, 11, 11, 11, 11, 11, 11, 12], [13, 3, 2, 2, 2, 3, 2, 22], [13, 2, 6, 2, 6, 2, 2, 22], [13, 2, 4, 2, 2, 4, 3, 22], [14, 11, 11, 11, 12, 2, 4, 22], [5, 5, 5, 5, 13, 2, 2, 22], [5, 5, 5, 5, 14, 11, 11, 16]];
myMap9 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 11, 11, 11, 12, 5, 5], [5, 13, 2, 2, 2, 18, 11, 12], [10, 19, 2, 3, 2, 2, 2, 22], [13, 3, 2, 4, 3, 4, 2, 22], [14, 12, 4, 6, 2, 10, 11, 16], [5, 13, 2, 2, 2, 22, 5, 5], [5, 14, 11, 11, 11, 16, 5, 5]];
myMap10 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 11, 11, 12, 5, 5, 5], [10, 19, 2, 2, 18, 11, 11, 12], [13, 3, 3, 4, 2, 2, 3, 22], [13, 2, 6, 4, 2, 4, 2, 22], [13, 2, 2, 2, 6, 2, 2, 22], [14, 11, 11, 11, 12, 2, 2, 22], [5, 5, 5, 5, 14, 11, 11, 16]];
myMap11 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 11, 11, 12, 5, 5, 5], [5, 13, 2, 2, 22, 5, 5, 5], [5, 13, 2, 2, 22, 5, 5, 5], [10, 19, 3, 2, 18, 11, 11, 12], [13, 2, 4, 4, 3, 2, 3, 22], [13, 2, 2, 4, 2, 10, 11, 16], [14, 11, 12, 2, 2, 22, 5, 5], [5, 5, 14, 11, 11, 16, 5, 5]];
myMap12 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 10, 11, 11, 11, 12], [5, 5, 5, 13, 2, 2, 2, 22], [5, 5, 5, 13, 2, 6, 3, 22], [5, 10, 11, 19, 2, 2, 3, 22], [5, 13, 2, 2, 4, 4, 2, 22], [5, 13, 2, 2, 3, 4, 2, 22], [5, 14, 11, 11, 11, 11, 11, 16]];
myMap13 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 11, 11, 11, 11, 12, 5], [5, 13, 2, 2, 2, 2, 18, 12], [5, 13, 2, 2, 6, 2, 2, 22], [5, 13, 3, 2, 2, 4, 2, 22], [5, 13, 2, 4, 4, 6, 3, 22], [5, 14, 11, 12, 2, 2, 3, 22], [5, 5, 5, 14, 11, 11, 11, 16]];
myMap14 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 10, 11, 11, 12, 5, 5], [10, 11, 19, 3, 2, 22, 5, 5], [13, 2, 3, 2, 2, 18, 11, 12], [13, 2, 2, 2, 4, 4, 2, 22], [14, 12, 2, 3, 2, 4, 2, 22], [5, 14, 11, 11, 11, 11, 11, 16]];
myMap15 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 10, 11, 11, 12], [5, 5, 5, 5, 13, 2, 2, 22], [5, 5, 10, 11, 19, 4, 3, 22], [5, 5, 13, 2, 2, 3, 2, 22], [10, 11, 19, 2, 2, 6, 3, 22], [13, 2, 4, 2, 2, 4, 2, 22], [13, 2, 2, 2, 6, 2, 2, 22], [14, 11, 11, 11, 11, 11, 11, 16]];
myMap16 = [[5, 5, 5, 5, 5, 5, 5, 5], [10, 11, 11, 11, 12, 5, 5, 5], [13, 2, 2, 3, 18, 11, 12, 5], [13, 2, 4, 3, 3, 2, 22, 5], [13, 2, 2, 6, 6, 4, 18, 12], [14, 12, 2, 2, 6, 2, 2, 22], [5, 13, 4, 2, 2, 2, 2, 22], [5, 13, 2, 2, 10, 11, 11, 16], [5, 14, 11, 11, 16, 5, 5, 5]];
myMap17 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 11, 11, 11, 11, 11, 12], [10, 19, 2, 2, 2, 2, 2, 22], [13, 3, 2, 6, 2, 2, 2, 22], [13, 2, 4, 4, 4, 3, 10, 16], [13, 2, 3, 6, 2, 2, 22, 5], [13, 2, 2, 10, 11, 11, 16, 5], [14, 11, 11, 16, 5, 5, 5, 5]];
myMap18 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 11, 11, 11, 11, 12, 5], [5, 13, 2, 2, 2, 2, 18, 12], [5, 13, 6, 4, 2, 2, 2, 22], [10, 19, 6, 2, 3, 2, 2, 22], [13, 2, 4, 2, 6, 4, 10, 16], [13, 2, 3, 2, 2, 3, 22, 5], [14, 11, 11, 12, 2, 2, 22, 5], [5, 5, 5, 14, 11, 11, 16, 5]];
myMap19 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 11, 11, 11, 12, 5, 5], [5, 13, 2, 2, 2, 18, 11, 12], [5, 13, 2, 2, 4, 2, 2, 22], [5, 14, 12, 4, 4, 2, 3, 22], [5, 5, 13, 2, 2, 3, 2, 22], [5, 5, 14, 12, 2, 6, 2, 22], [5, 5, 5, 13, 2, 2, 3, 22], [5, 5, 5, 14, 11, 11, 11, 16]];
myMap20 = [[5, 5, 5, 5, 5, 5, 5, 5], [10, 11, 11, 11, 12, 5, 5, 5], [13, 2, 2, 2, 18, 11, 11, 12], [13, 2, 4, 4, 2, 2, 2, 22], [13, 2, 3, 6, 3, 2, 2, 22], [13, 2, 2, 6, 6, 2, 10, 16], [13, 2, 2, 6, 6, 4, 22, 5], [13, 2, 2, 2, 2, 3, 22, 5], [14, 11, 11, 11, 11, 11, 16, 5]];
myMap21 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 10, 11, 11, 11, 11, 11, 12], [10, 19, 2, 2, 2, 3, 2, 22], [13, 2, 4, 2, 2, 4, 2, 22], [13, 3, 4, 3, 10, 11, 11, 16], [13, 2, 2, 10, 16, 5, 5, 5], [13, 2, 2, 22, 5, 5, 5, 5], [13, 2, 2, 22, 5, 5, 5, 5], [14, 11, 11, 16, 5, 5, 5, 5]];
myMap22 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 10, 11, 11, 12, 5, 5], [10, 11, 19, 2, 2, 18, 11, 12], [13, 2, 3, 3, 2, 4, 3, 22], [13, 2, 2, 4, 4, 2, 2, 22], [14, 11, 11, 12, 2, 2, 2, 22], [5, 5, 5, 14, 11, 11, 11, 16]];
myMap23 = [[5, 5, 5, 5, 5, 5, 5, 5], [10, 11, 11, 11, 11, 11, 11, 12], [13, 2, 2, 2, 6, 2, 2, 22], [13, 2, 6, 3, 4, 2, 4, 22], [13, 2, 2, 2, 4, 2, 2, 22], [14, 11, 12, 6, 6, 3, 2, 22], [5, 5, 13, 2, 2, 2, 2, 22], [5, 5, 13, 2, 2, 2, 3, 22], [5, 5, 14, 11, 11, 11, 11, 16]];
myMap24 = [[5, 5, 5, 5, 5, 5, 5, 5], [5, 5, 5, 10, 11, 11, 11, 12], [5, 5, 5, 13, 2, 2, 2, 22], [5, 10, 11, 19, 2, 2, 2, 22], [5, 13, 2, 4, 2, 4, 10, 16], [10, 19, 2, 4, 2, 2, 22, 5], [13, 3, 2, 2, 6, 2, 22, 5], [13, 3, 3, 2, 2, 2, 22, 5], [14, 11, 11, 11, 11, 11, 16, 5]];
fscommand ("allowscale", false);
Depth = 10;
TileW = 50;
TileH = 50;
HoleCount = 0;
s = TileW;
M = 2;
E = 3;
B = 4;
MoveCount = 0;
_root.playGame = true;
_root.LevelUp = true;
myMap = _root["myMap" + _root.Level];
buildMap(myMap);
placeChar(_root.Level);
Instance of Symbol 128 MovieClip in Frame 57
onClipEvent (keyDown) {
if (_root.playGame == false) {
return(undefined);
}
if (Key.isDown(38)) {
Dir = "Up";
} else if (Key.isDown(40)) {
Dir = "Down";
} else if (Key.isDown(37)) {
Dir = "Left";
} else if (Key.isDown(39)) {
Dir = "Right";
} else {
Dir = null;
}
_root.MoveHero(Dir);
updateAfterEvent();
}
Frame 58
removeMovieClip(_root.Hero);
var i = 0;
while (i < MapHeight) {
var j = 0;
while (j < MapWidth) {
removeMovieClip(_root[(("t_" + i) + "_") + j]);
j++;
}
i++;
}
if (_root.Level < 1) {
_root.Level = 24;
}
if (_root.Level > 24) {
_root.Level = 1;
}
prevFrame();
Symbol 48 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
gotoAndPlay(random(80) + 1);
Symbol 60 MovieClip Frame 1
gotoAndPlay(random(80) + 1);
Symbol 61 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 68 MovieClip [Tile] Frame 1
stop();
Symbol 75 MovieClip [Hero] Frame 1
stop();
Symbol 84 MovieClip Frame 100
_root.play();
Symbol 104 Button
on (release) {
_root.gotoAndPlay("Start");
}
Symbol 110 Button
on (release) {
_root.gotoAndPlay("Help");
}
Symbol 114 Button
on (release) {
fscommand ("quit");
}
Symbol 115 MovieClip Frame 64
stop();
Symbol 126 Button
on (release) {
_parent.play();
}
Symbol 134 MovieClip Frame 1
gotoAndStop(_parent.Num + 1);
Symbol 138 MovieClip Frame 1
stop();
Num = random(3) + 1;
Symbol 138 MovieClip Frame 110
_root.Level = _root.Level + 1;
_root.nextFrame();
this.swapDepths(Depth);
Symbol 145 MovieClip Frame 1
gotoAndStop(_parent.Num + 1);
Symbol 148 MovieClip Frame 1
stop();
Num = random(3) + 1;
Symbol 148 MovieClip Frame 12
trace("fail");
Symbol 148 MovieClip Frame 110
_root.FailMC.swapDepths(_root.FailMC.Depth);
_root.nextFrame();
Symbol 160 Button
on (release) {
fscommand ("Quit");
}
Symbol 163 Button
on (press) {
nextFrame();
}
Symbol 166 MovieClip Frame 1
stop();
Symbol 174 Button
on (press) {
if (_root.playGame) {
_root.Level = _root.Level - 1;
if (_root.Level < 1) {
_root.Level = 24;
}
nextFrame();
}
}
Symbol 175 Button
on (press) {
if (_root.playGame) {
_root.Level = _root.Level + 1;
if (_root.Level > 24) {
_root.Level = 1;
}
nextFrame();
}
}
Symbol 178 Button
on (release) {
_root.MusicMC.gotoAndStop(3);
}
Symbol 181 Button
on (release) {
_root.MusicMC.gotoAndPlay(1);
}
Symbol 182 MovieClip Frame 1
stopAllSounds();
Symbol 182 MovieClip Frame 2
stop();
Symbol 182 MovieClip Frame 3
stopAllSounds();
stop();