Frame 2
gotoAndPlay (30);
Frame 30
function goMenu() {
_root.bye();
_root.gotoAndStop("menu", 1);
gotoAndStop (85);
}
function goCredits() {
_root.bye();
_root.gotoAndPlay("credits", 1);
gotoAndPlay (30);
}
function goReal3() {
_root.gotoAndStop("real", 3);
gotoAndStop (98);
}
function goLose() {
_root.bye();
_root.gotoAndPlay("lose", 1);
gotoAndPlay (30);
}
function goBetween() {
_root.bye();
_root.gotoAndPlay("in between", 1);
gotoAndPlay (93);
}
function goCreator() {
_root.bye();
_root.gotoAndStop("level creator", 2);
gotoAndStop (92);
}
function nextTo(letter, i) {
if ((_root[letter + i]._x == _root.main.x) or (_root[letter + i]._y == _root.main.y)) {
if (((_root[letter + i]._x + 24) == _root.main.x) and (_root.main.facing == "left")) {
return(true);
}
if (((_root[letter + i]._x - 24) == _root.main.x) and (_root.main.facing == "right")) {
return(true);
}
if (((_root[letter + i]._y + 24) == _root.main.y) and (_root.main.facing == "back")) {
return(true);
}
if (((_root[letter + i]._y - 24) == _root.main.y) and (_root.main.facing == "front")) {
return(true);
}
}
return(false);
}
function right() {
_root.brick([_root.main._x + 24], _root.main._y, _root.walkThrough);
if (occupied) {
touched++;
}
if ((_root.main._x + 24) > 544) {
touched++;
}
if (touched == 0) {
_root.main.x = _root.main.x + 24;
_root.movesMade++;
if ((_root.main._currentframe < 161) or (_root.main._currentframe > 240)) {
_root.main.gotoAndPlay(161);
}
_root.main.play();
} else {
_root.main.gotoAndStop(161);
touched = 0;
}
}
function left() {
_root.brick([_root.main._x - 24], _root.main._y, _root.walkThrough);
if (occupied) {
touched++;
}
if ((_root.main._x - 24) < 40) {
touched++;
}
if (touched == 0) {
_root.main.x = _root.main.x - 24;
_root.movesMade++;
if (_root.main._currentframe < 241) {
_root.main.gotoAndPlay(241);
}
_root.main.play();
} else {
_root.main.gotoAndStop(241);
touched = 0;
}
}
function down() {
_root.brick(_root.main._x, [_root.main._y + 24], _root.walkThrough);
if (occupied) {
touched++;
}
if ((_root.main._y + 24) > 382) {
touched++;
}
if (touched == 0) {
_root.main.y = _root.main.y + 24;
_root.movesMade++;
if (_root.main._currentframe > 80) {
_root.main.gotoAndPlay(1);
}
_root.main.play();
} else {
_root.main.gotoAndStop(1);
touched = 0;
}
}
function up() {
_root.brick(_root.main._x, [_root.main._y - 24], _root.walkThrough);
if (occupied) {
touched++;
}
if ((_root.main._y - 24) < 70) {
touched++;
}
if (touched == 0) {
_root.main.y = _root.main.y - 24;
_root.movesMade++;
if ((_root.main._currentframe < 81) or (_root.main._currentframe > 160)) {
_root.main.gotoAndPlay(81);
}
_root.main.play();
} else {
_root.main.gotoAndStop(81);
touched = 0;
}
}
function brick(x, y, ghost) {
occupied = 0;
if (_root[(("b" + x) + "x") + y]) {
occupied = 1;
}
if (ghost == 1) {
occupied = 0;
}
return(occupied);
}
function llload() {
_root.loadContent = _root.Level_Library[_root.level];
}
function llloadCustom() {
loadFrom = ("Q/custom levels/" + _root.uno) + ".mon";
fscommand ("flashstudio.loadfromfile", "loadFrom,loadContent");
}
function llloadCustomm() {
loadFrom = "Q/tempLevel.mon";
fscommand ("flashstudio.loadfromfile", "loadFrom,loadContent");
}
function go() {
while (highestCarryOn == true) {
while (carryOn == true) {
this["number" + i] = one.substr(location, 1);
if (this["number" + i] == "=") {
carryOn = false;
previousLocation = location;
location++;
_root["max" + objectName]++;
} else {
objectName = objectName + this["number" + i];
i++;
previousLocation = location;
location++;
}
}
carryOn = true;
_root.attachMovie(objectName, objectName + _root["max" + objectName], location + 300);
while (highCarryOn == true) {
while (carryOn == true) {
this["number" + i] = one.substr(location, 1);
if (this["number" + i] == ":") {
carryOn = false;
previousLocation = location;
location++;
} else {
total = total + this["number" + i];
i++;
previousLocation = location;
location++;
}
}
carryOn = true;
while (carryOn == true) {
this["number" + i] = one.substr(location, 1);
if (this["number" + i] == ";") {
highCarryOn = false;
carryOn = false;
previousLocation = location;
location = location + 2;
}
if (this["number" + i] == ">") {
highestCarryOn = false;
highCarryOn = false;
carryOn = false;
previousLocation = location;
location++;
}
if (this["number" + i] == ",") {
carryOn = false;
previousLocation = location;
location++;
}
if (((this["number" + i] != ",") and (this["number" + i] != ";")) and (this["number" + i] != ">")) {
equal = equal + this["number" + i];
i++;
previousLocation = location;
location++;
}
}
if (total == "_x") {
equal = equal * 24;
}
if (total == "_y") {
equal = equal * 24;
}
if (total == "xdestination") {
equal = equal * 24;
}
if (total == "ydestination") {
equal = equal * 24;
}
if ((objectName != "_root") and (objectName != "_root+")) {
_root[objectName + _root["max" + objectName]][total] = equal;
} else if (objectName == "_root") {
_root[total] = equal;
} else if (objectName == "_root+") {
}
total = "";
equal = "";
carryOn = true;
}
total = "";
equal = "";
carryOn = true;
highCarryOn = true;
objectName = "";
}
}
function monster(letter, i) {
if ((_root[letter + i].exists == 0) and (_root[(letter + i) + "exists"] == 1)) {
_root[letter + i].removeMovieClip();
_root[(letter + i) + "exists"] = 1;
} else {
if (_root[letter + i].getAwayTime == 0) {
_root[letter + i].turn++;
if (_root[letter + i].turn > 5) {
_root[letter + i].turn = 1;
}
_root[letter + i].moved = 0;
if ((_root[letter + i]._x == _root[letter + i].x) and (_root[letter + i]._y == _root[letter + i].y)) {
_root[letter + i].previousLocation = [((letter + _root[letter + i].x) + "x") + _root[letter + i].y];
_root[letter + i].bx = _root[letter + i]._x - 24;
_root[letter + i].by = _root[letter + i]._y;
if ((Math.abs(_root[letter + i]._x - _root.main._x) >= Math.abs(_root[letter + i]._y - _root.main._y)) and ((_root[letter + i]._x - _root.main._x) > 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx >= 30)) {
_root[letter + i].x = _root[letter + i].x - 24;
_root[letter + i].gotoAndPlay("left");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x + 24;
_root[letter + i].by = _root[letter + i]._y;
if ((Math.abs(_root[letter + i]._x - _root.main._x) >= Math.abs(_root[letter + i]._y - _root.main._y)) and ((_root[letter + i]._x - _root.main._x) <= 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx < 550)) {
_root[letter + i].x = _root[letter + i].x + 24;
_root[letter + i].gotoAndPlay("right");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y - 24;
if ((Math.abs(_root[letter + i]._y - _root.main._y) > Math.abs(_root[letter + i]._x - _root.main._x)) and ((_root[letter + i]._y - _root.main._y) > 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by > 50)) {
_root[letter + i].y = _root[letter + i].y - 24;
_root[letter + i].gotoAndPlay("up");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y + 24;
if ((Math.abs(_root[letter + i]._y - _root.main._y) > Math.abs(_root[letter + i]._x - _root.main._x)) and ((_root[letter + i]._y - _root.main._y) <= 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by < 370)) {
_root[letter + i].y = _root[letter + i].y + 24;
_root[letter + i].gotoAndPlay("down");
_root[letter + i].moved++;
}
}
if (((_root[letter + i].turn == 1) or (_root[letter + i].turn == 2)) or (_root[letter + i].turn == 3)) {
_root[letter + i].bx = _root[letter + i]._x - 24;
_root[letter + i].by = _root[letter + i]._y;
if ((_root[letter + i].moved == 0) and ((_root[letter + i]._x - _root.main._x) > 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx >= 30)) {
_root[letter + i].x = _root[letter + i].x - 24;
_root[letter + i].gotoAndPlay("left");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x + 24;
_root[letter + i].by = _root[letter + i]._y;
if ((_root[letter + i].moved == 0) and ((_root[letter + i]._x - _root.main._x) <= 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx < 550)) {
_root[letter + i].x = _root[letter + i].x + 24;
_root[letter + i].gotoAndPlay("right");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y - 24;
if ((_root[letter + i].moved == 0) and ((_root[letter + i]._y - _root.main._y) > 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by > 53)) {
_root[letter + i].y = _root[letter + i].y - 24;
_root[letter + i].gotoAndPlay("up");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y + 24;
if ((_root[letter + i].moved == 0) and ((_root[letter + i]._y - _root.main._y) <= 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by < 370)) {
_root[letter + i].y = _root[letter + i].y + 24;
_root[letter + i].gotoAndPlay("down");
_root[letter + i].moved++;
}
}
}
if ((_root[letter + i].turn == 4) or (_root[letter + i].turn == 5)) {
_root[letter + i].bx = _root[letter + i]._x - 24;
_root[letter + i].by = _root[letter + i]._y;
if ((_root[letter + i].moved == 0) and ((_root[letter + i]._x - _root.main._x) >= 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx >= 30)) {
_root[letter + i].x = _root[letter + i].x - 24;
_root[letter + i].gotoAndPlay("left");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x + 24;
_root[letter + i].by = _root[letter + i]._y;
if ((_root[letter + i].moved == 0) and ((_root[letter + i]._x - _root.main._x) < 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx < 550)) {
_root[letter + i].x = _root[letter + i].x + 24;
_root[letter + i].gotoAndPlay("right");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y - 24;
if ((_root[letter + i].moved == 0) and ((_root[letter + i]._y - _root.main._y) >= 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by > 53)) {
_root[letter + i].y = _root[letter + i].y - 24;
_root[letter + i].gotoAndPlay("up");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y + 24;
if ((_root[letter + i].moved == 0) and ((_root[letter + i]._y - _root.main._y) < 0)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by < 370)) {
_root[letter + i].y = _root[letter + i].y + 24;
_root[letter + i].gotoAndPlay("down");
_root[letter + i].moved++;
}
}
}
}
if (((int(_root[letter + i]._x / 24) * 24) == _root[letter + i]._x) and ((int(_root[letter + i]._y / 24) * 24) == _root[letter + i]._y)) {
_root[letter + i].when = _root[letter + i].turn;
}
if (_root[letter + i].moved > 0) {
_root[_root[letter + i].previousLocation] = 0;
_root[((letter + _root[letter + i].x) + "x") + _root[letter + i].y] = i;
}
if (_root[letter + i]._x < _root[letter + i].x) {
if ((_root[letter + i]._x + (_root.monsterBaseSpeed * _root[letter + i].supor)) > _root[letter + i].x) {
_root[letter + i]._x = _root[letter + i].x;
} else {
_root[letter + i]._x = _root[letter + i]._x + (_root.monsterBaseSpeed * _root[letter + i].supor);
}
}
if (_root[letter + i]._x > _root[letter + i].x) {
if ((_root[letter + i]._x - (_root.monsterBaseSpeed * _root[letter + i].supor)) < _root[letter + i].x) {
_root[letter + i]._x = _root[letter + i].x;
} else {
_root[letter + i]._x = _root[letter + i]._x - (_root.monsterBaseSpeed * _root[letter + i].supor);
}
}
if (_root[letter + i]._y < _root[letter + i].y) {
if ((_root[letter + i]._y + (_root.monsterBaseSpeed * _root[letter + i].supor)) > _root[letter + i].y) {
_root[letter + i]._y = _root[letter + i].y;
} else {
_root[letter + i]._y = _root[letter + i]._y + (_root.monsterBaseSpeed * _root[letter + i].supor);
}
}
if (_root[letter + i]._y > _root[letter + i].y) {
if ((_root[letter + i]._y - (_root.monsterBaseSpeed * _root[letter + i].supor)) < _root[letter + i].y) {
_root[letter + i]._y = _root[letter + i].y;
} else {
_root[letter + i]._y = _root[letter + i]._y - (_root.monsterBaseSpeed * _root[letter + i].supor);
}
}
}
if (_root[letter + i].getAwayTime > 0) {
_root[letter + i].getAwayTime--;
if (_root[letter + i].getAwayTime < 1) {
if (_root[letter + i].supor == 1) {
if (_root.soundon == 1) {
rroar = new Sound(_root[letter + i]);
rroar.attachSound("roar");
rroar.start();
}
} else if (_root.soundon == 1) {
roarr = new Sound(_root[letter + i]);
roarr.attachSound("roar super");
roarr.start();
}
}
}
if (_root[letter + i]._alpha < 100) {
_root[letter + i]._alpha++;
}
if (_root[letter + i]._rotation != 0) {
_root[letter + i]._rotation = _root[letter + i]._rotation + 38;
}
if (_root[letter + i].exists == 0) {
_root[letter + i].removeMovieClip();
_root[(letter + i) + "exists"] = 0;
}
}
}
function monsterFire(letter, i) {
if ((_root[letter + i].exists == 0) and (_root[(letter + i) + "exists"] == 1)) {
_root[letter + i].removeMovieClip();
_root[(letter + i) + "exists"] = 1;
} else {
if (_root[letter + i].getAwayTime == 0) {
_root[letter + i].turn++;
if (_root[letter + i].turn > 5) {
_root[letter + i].turn = 1;
}
_root[letter + i].moved = 0;
if (_root[letter + i].x == _root.main.x) {
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y - 24;
if ((((_root[letter + i]._y - _root.main._y) > 0) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by > 50)) {
_root[letter + i].y = _root[letter + i].y - 24;
_root[letter + i].gotoAndPlay("up");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y + 24;
if ((((_root[letter + i]._y - _root.main._y) <= 0) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by < 370)) {
_root[letter + i].y = _root[letter + i].y + 24;
_root[letter + i].gotoAndPlay("down");
_root[letter + i].moved++;
}
}
}
if (_root[letter + i].y == _root.main.y) {
_root[letter + i].bx = _root[letter + i]._x - 24;
_root[letter + i].by = _root[letter + i]._y;
if ((((_root[letter + i]._x - _root.main._x) > 0) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx >= 30)) {
_root[letter + i].x = _root[letter + i].x - 24;
_root[letter + i].gotoAndPlay("left");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x + 24;
_root[letter + i].by = _root[letter + i]._y;
if ((((_root[letter + i]._x - _root.main._x) <= 0) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx < 550)) {
_root[letter + i].x = _root[letter + i].x + 24;
_root[letter + i].gotoAndPlay("right");
_root[letter + i].moved++;
}
}
}
if ((_root[letter + i].x != _root.main.x) and (_root[level + i].y != _root.main.y)) {
_root[letter + i].bx = _root[letter + i]._x - 24;
_root[letter + i].by = _root[letter + i]._y;
if ((((Math.abs(_root[letter + i]._x - _root.main._x) < Math.abs(_root[letter + i]._y - _root.main._y)) and ((_root[letter + i]._x - _root.main._x) > 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx >= 30)) {
_root[letter + i].x = _root[letter + i].x - 24;
_root[letter + i].gotoAndPlay("left");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x + 24;
_root[letter + i].by = _root[letter + i]._y;
if ((((Math.abs(_root[letter + i]._x - _root.main._x) < Math.abs(_root[letter + i]._y - _root.main._y)) and ((_root[letter + i]._x - _root.main._x) <= 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx < 550)) {
_root[letter + i].x = _root[letter + i].x + 24;
_root[letter + i].gotoAndPlay("right");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y - 24;
if ((((Math.abs(_root[letter + i]._y - _root.main._y) < Math.abs(_root[letter + i]._x - _root.main._x)) and ((_root[letter + i]._y - _root.main._y) > 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by > 50)) {
_root[letter + i].y = _root[letter + i].y - 24;
_root[letter + i].gotoAndPlay("up");
_root[letter + i].moved++;
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y + 24;
if ((((Math.abs(_root[letter + i]._y - _root.main._y) < Math.abs(_root[letter + i]._x - _root.main._x)) and ((_root[letter + i]._y - _root.main._y) <= 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by < 370)) {
_root[letter + i].y = _root[letter + i].y + 24;
_root[letter + i].gotoAndPlay("down");
_root[letter + i].moved++;
}
}
}
if (((_root[letter + i].turn == 1) or (_root[letter + i].turn == 2)) or (_root[letter + i].turn == 3)) {
_root[letter + i].bx = _root[letter + i]._x - 24;
_root[letter + i].by = _root[letter + i]._y;
if ((((_root[letter + i].moved == 0) and ((_root[letter + i]._x - _root.main._x) > 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx >= 30)) {
_root[letter + i].x = _root[letter + i].x - 24;
_root[letter + i].gotoAndPlay("left");
}
}
_root[letter + i].bx = _root[letter + i]._x + 24;
_root[letter + i].by = _root[letter + i]._y;
if ((((_root[letter + i].moved == 0) and ((_root[letter + i]._x - _root.main._x) <= 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx < 550)) {
_root[letter + i].x = _root[letter + i].x + 24;
_root[letter + i].gotoAndPlay("right");
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y - 24;
if ((((_root[letter + i].moved == 0) and ((_root[letter + i]._y - _root.main._y) > 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by > 53)) {
_root[letter + i].y = _root[letter + i].y - 24;
_root[letter + i].gotoAndPlay("up");
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y + 24;
if ((((_root[letter + i].moved == 0) and ((_root[letter + i]._y - _root.main._y) <= 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by < 370)) {
_root[letter + i].y = _root[letter + i].y + 24;
_root[letter + i].gotoAndPlay("down");
}
}
}
if ((_root[letter + i].turn == 4) or (_root[letter + i].turn == 5)) {
_root[letter + i].bx = _root[letter + i]._x - 24;
_root[letter + i].by = _root[letter + i]._y;
if ((((_root[letter + i].moved == 0) and ((_root[letter + i]._x - _root.main._x) >= 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx >= 30)) {
_root[letter + i].x = _root[letter + i].x - 24;
_root[letter + i].gotoAndPlay("left");
}
}
_root[letter + i].bx = _root[letter + i]._x + 24;
_root[letter + i].by = _root[letter + i]._y;
if ((((_root[letter + i].moved == 0) and ((_root[letter + i]._x - _root.main._x) < 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].bx < 550)) {
_root[letter + i].x = _root[letter + i].x + 24;
_root[letter + i].gotoAndPlay("right");
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y - 24;
if ((((_root[letter + i].moved == 0) and ((_root[letter + i]._y - _root.main._y) >= 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by > 53)) {
_root[letter + i].y = _root[letter + i].y - 24;
_root[letter + i].gotoAndPlay("up");
}
}
_root[letter + i].bx = _root[letter + i]._x;
_root[letter + i].by = _root[letter + i]._y + 24;
if ((((_root[letter + i].moved == 0) and ((_root[letter + i]._y - _root.main._y) < 0)) and (_root[letter + i]._x == _root[letter + i].x)) and (_root[letter + i]._y == _root[letter + i].y)) {
_root.brick(_root[letter + i].bx, _root[letter + i].by, _root[letter + i].ghost);
if ((_root.occupied == 0) and (_root[letter + i].by < 370)) {
_root[letter + i].y = _root[letter + i].y + 24;
_root[letter + i].gotoAndPlay("down");
}
}
}
if (((int(_root[letter + i]._x / 24) * 24) == _root[letter + i]._x) and ((int(_root[letter + i]._y / 24) * 24) == _root[letter + i]._y)) {
_root[letter + i].when = _root[letter + i].turn;
}
if (_root[letter + i]._x < _root[letter + i].x) {
if ((_root[letter + i]._x + (_root.monsterBaseSpeed * _root[letter + i].supor)) > _root[letter + i].x) {
_root[letter + i]._x = _root[letter + i].x;
} else {
_root[letter + i]._x = _root[letter + i]._x + (_root.monsterBaseSpeed * _root[letter + i].supor);
}
}
if (_root[letter + i]._x > _root[letter + i].x) {
if ((_root[letter + i]._x - (_root.monsterBaseSpeed * _root[letter + i].supor)) < _root[letter + i].x) {
_root[letter + i]._x = _root[letter + i].x;
} else {
_root[letter + i]._x = _root[letter + i]._x - (_root.monsterBaseSpeed * _root[letter + i].supor);
}
}
if (_root[letter + i]._y < _root[letter + i].y) {
if ((_root[letter + i]._y + (_root.monsterBaseSpeed * _root[letter + i].supor)) > _root[letter + i].y) {
_root[letter + i]._y = _root[letter + i].y;
} else {
_root[letter + i]._y = _root[letter + i]._y + (_root.monsterBaseSpeed * _root[letter + i].supor);
}
}
if (_root[letter + i]._y > _root[letter + i].y) {
if ((_root[letter + i]._y - (_root.monsterBaseSpeed * _root[letter + i].supor)) < _root[letter + i].y) {
_root[letter + i]._y = _root[letter + i].y;
} else {
_root[letter + i]._y = _root[letter + i]._y - (_root.monsterBaseSpeed * _root[letter + i].supor);
}
}
}
if (_root[letter + i].getAwayTime > 0) {
_root[letter + i].getAwayTime--;
if (_root[letter + i].getAwayTime < 1) {
if (_root[letter + i].supor == 1) {
if (_root.soundon == 1) {
rroar = new Sound(_root[letter + i]);
rroar.attachSound("roar");
rroar.start();
}
} else if (_root.soundon == 1) {
roarr = new Sound(_root[letter + i]);
roarr.attachSound("roar super");
roarr.start();
}
}
}
if (_root[letter + i]._alpha < 100) {
_root[letter + i]._alpha++;
}
if (_root[letter + i]._rotation != 0) {
_root[letter + i]._rotation = _root[letter + i]._rotation + 38;
}
if (_root[letter + i].exists == 0) {
_root[letter + i].removeMovieClip();
_root[(letter + i) + "exists"] = 0;
}
}
}
function fire(letter, i) {
if ((_root[letter + i]._x == _root[letter + i].x) and (_root[letter + i]._y == _root[letter + i].y)) {
if ((_root[letter + i].x != _root.main.x) or (_root[letter + i].y != _root.main.y)) {
if ((_root[letter + i].x == _root[letter + i]._x) and (_root[letter + i].y == _root[letter + i]._y)) {
if (_root[letter + i].x == _root.main.x) {
if (_root.soundOn) {
ffire = new Sound(["fire" + _root.maxfire]);
ffire.attachSound("fireSound");
ffire.start();
}
_root.maxfire++;
_root.attachMovie("fire", ["fire" + _root.maxfire], 1000 + _root.maxfire);
_root["fire" + _root.maxfire]._x = _root[letter + i]._x;
_root["fire" + _root.maxfire]._y = _root[letter + i]._y;
_root["fire" + _root.maxfire].what = "fire";
_root["fire" + _root.maxfire].exists = true;
if (_root[letter + i].y > _root.main.y) {
_root["fire" + _root.maxfire].dy = _root.fireSpeed * -1;
_root["fire" + _root.maxfire].dx = 0;
_root["fire" + _root.maxfire]._rotation = 180;
}
if (_root[letter + i].y < _root.main.y) {
_root["fire" + _root.maxfire].dy = _root.fireSpeed;
_root["fire" + _root.maxfire].dx = 0;
_root["fire" + _root.maxfire]._rotation = 0;
}
}
if (_root[letter + i].y == _root.main.y) {
if (_root.soundOn) {
ffire = new Sound(["fire" + _root.maxfire]);
ffire.attachSound("fireSound");
ffire.start();
}
_root.maxfire++;
_root.attachMovie("fire", ["fire" + _root.maxfire], 1000 + _root.maxfire);
_root["fire" + _root.maxfire]._x = _root[letter + i]._x;
_root["fire" + _root.maxfire]._y = _root[letter + i]._y;
_root["fire" + _root.maxfire].what = "fire";
_root["fire" + _root.maxfire].exists = true;
if (_root[letter + i].x > _root.main.x) {
_root["fire" + _root.maxfire].dx = _root.fireSpeed * -1;
_root["fire" + _root.maxfire].dy = 0;
_root["fire" + _root.maxfire]._rotation = 90;
}
if (_root[letter + i].x < _root.main.x) {
_root["fire" + _root.maxfire].dx = _root.fireSpeed;
_root["fire" + _root.maxfire].dy = 0;
_root["fire" + _root.maxfire]._rotation = 270;
}
}
}
}
}
}
function laser() {
direction = Math.ceil(_root.main._currentframe / 80);
if (direction < 3) {
_root.maxfire++;
_root.attachMovie("laser", ["fire" + _root.maxfire], 1000 + _root.maxfire);
_root["fire" + _root.maxfire]._x = _root.main._x;
_root["fire" + _root.maxfire]._y = _root.main._y;
_root["fire" + _root.maxfire].what = "laser";
if (direction == 2) {
_root["fire" + _root.maxfire].dy = -3;
_root["fire" + _root.maxfire].dx = 0;
_root["fire" + _root.maxfire]._rotation = 180;
}
if (direction == 1) {
_root["fire" + _root.maxfire].dy = 3;
_root["fire" + _root.maxfire].dx = 0;
_root["fire" + _root.maxfire]._rotation = 0;
}
}
if (direction > 2) {
_root.maxfire++;
_root.attachMovie("laser", ["fire" + _root.maxfire], 1000 + _root.maxfire);
_root["fire" + _root.maxfire]._x = _root.main._x;
_root["fire" + _root.maxfire]._y = _root.main._y;
_root["fire" + _root.maxfire].what = "laser";
if (direction == 4) {
_root["fire" + _root.maxfire].dx = -3;
_root["fire" + _root.maxfire].dy = 0;
_root["fire" + _root.maxfire]._rotation = 90;
}
if (direction == 3) {
_root["fire" + _root.maxfire].dx = 3;
_root["fire" + _root.maxfire].dy = 0;
_root["fire" + _root.maxfire]._rotation = 270;
}
}
}
function edit(alpha) {
_root[_root.drag].removeMovieClip();
_root["mx" + alpha]++;
_root["rx" + alpha]++;
if (_root.alpha != "z") {
_root.last = alpha;
}
_root.attachMovie(alpha, [alpha + _root["mx" + alpha]], _root.total);
_root[alpha + _root["mx" + alpha]]._width = 24;
_root[alpha + _root["mx" + alpha]]._height = 24;
_root.drag = [alpha + _root["mx" + alpha]];
_root.dragPrevious = [alpha + _root["mx" + alpha]];
_root.total++;
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("small click");
this.ssound.start();
}
}
function editLevelSprites(l, i) {
_root[l + i]._width = 24;
_root[l + i]._height = 24;
_root[l + i]._x = int(_root[l + i]._x / 24) * 24;
_root[l + i]._y = int(_root[l + i]._y / 24) * 24;
_root[l + i].x = _root[l + i]._x;
_root[l + i].y = _root[l + i]._y;
while (_root[l + i].y > 0) {
_root[l + i].x = _root[l + i].x + 504;
_root[l + i].y = _root[l + i].y - 24;
}
_root[l + i].x = _root[l + i].x / 24;
_root[l + i].x = _root[l + i].x + 1;
_root["kk" + _root[l + i].x] = l;
}
function lload(what) {
_root.loadFrom = what;
fscommand ("flashstudio.loadfromfile", "loadFrom,loadContent");
}
function editGo() {
while (highestCarryOn == true) {
while (carryOn == true) {
this["number" + i] = one.substr(location, 1);
if (this["number" + i] == "=") {
carryOn = false;
previousLocation = location;
location++;
_root["mx" + objectName]++;
} else {
objectName = objectName + this["number" + i];
i++;
previousLocation = location;
location++;
}
}
carryOn = true;
_root.attachMovie(objectName, objectName + _root["mx" + objectName], _root.total++);
while (highCarryOn == true) {
while (carryOn == true) {
this["number" + i] = one.substr(location, 1);
if (this["number" + i] == ":") {
carryOn = false;
previousLocation = location;
location++;
} else {
totall = totall + this["number" + i];
i++;
previousLocation = location;
location++;
}
}
carryOn = true;
while (carryOn == true) {
this["number" + i] = one.substr(location, 1);
if (this["number" + i] == ";") {
highCarryOn = false;
carryOn = false;
previousLocation = location;
location = location + 2;
}
if (this["number" + i] == ">") {
highestCarryOn = false;
highCarryOn = false;
carryOn = false;
previousLocation = location;
location++;
}
if (this["number" + i] == ",") {
carryOn = false;
previousLocation = location;
location++;
}
if (((this["number" + i] != ",") and (this["number" + i] != ";")) and (this["number" + i] != ">")) {
equal = equal + this["number" + i];
i++;
previousLocation = location;
location++;
}
}
if (totall == "_x") {
equal = equal * 24;
}
if (totall == "_y") {
equal = equal * 24;
}
if (totall == "xdestination") {
equal = equal * 24;
}
if (totall == "ydestination") {
equal = equal * 24;
}
if ((objectName != "_root") and (objectName != "_root+")) {
_root[objectName + _root["mx" + objectName]][totall] = equal;
} else if (objectName == "_root") {
_root[totall] = equal;
} else if (objectName == "_root+") {
_root[totall] = _root[totall] + equal;
}
totall = "";
equal = "";
carryOn = true;
}
_root[objectName + _root["mx" + objectName]]._x = int(_root[objectName + _root["mx" + objectName]]._x / 24) * 24;
_root[objectName + _root["mx" + objectName]]._y = int(_root[objectName + _root["mx" + objectName]]._y / 24) * 24;
_root[objectName + _root["mx" + objectName]].x = _root[objectName + _root["mx" + objectName]]._x;
_root[objectName + _root["mx" + objectName]].y = [objectName + _root["mx" + objectName]]._y;
while (_root[objectName + _root["mx" + objectName]].y > 0) {
_root[objectName + _root["mx" + objectName]].x = _root[objectName + _root["mx" + objectName]].x + 504;
_root[objectName + _root["mx" + objectName]].y = _root[objectName + _root["mx" + objectName]].y - 24;
}
_root[objectName + _root["mx" + objectName]].x = _root[objectName + _root["mx" + objectName]].x / 24;
_root[objectName + _root["mx" + objectName]].x = _root[objectName + _root["mx" + objectName]].x + 1;
totall = "";
equal = "";
carryOn = true;
highCarryOn = true;
objectName = "";
}
}
function save() {
_root.convertToCode();
saveTo = ("Q/custom levels/" + _root.saveAs) + ".mon";
saveContent = _root.uno;
fscommand ("flashstudio.savetofile", "saveTo,saveContent");
}
function convertToCode() {
_root.uno = "";
_root.uno = _root.uno + "bar1=_x:1,_y:1; bar2=_x:1,_y:1; ";
j = _root.charList.length;
while (j >= 0) {
k = _root.charList[j];
i = _root["mx" + k];
while (i > 0) {
if (_root[k + i].x != null) {
_root.uno = _root.uno + k;
_root.uno = _root.uno + "=_x:";
_root.uno = _root.uno + int(_root[k + i]._x / 24);
_root.uno = _root.uno + ",_y:";
_root.uno = _root.uno + int(_root[k + i]._y / 24);
if (k == "w") {
_root.uno = _root.uno + ",xdestination:";
_root.uno = _root.uno + int(_root[("aw" + i) + "destination"]._x / 24);
_root.uno = _root.uno + ",ydestination:";
_root.uno = _root.uno + int(_root[("aw" + i) + "destination"]._y / 24);
_root.uno = _root.uno + "; ";
} else if (k == "x") {
_root.uno = _root.uno + ",xdestination:";
_root.uno = _root.uno + int(_root[("cw" + i) + "destination"]._x / 24);
_root.uno = _root.uno + ",ydestination:";
_root.uno = _root.uno + int(_root[("cw" + i) + "destination"]._y / 24);
_root.uno = _root.uno + "; ";
} else if (k == "y") {
_root.uno = _root.uno + ",xdestination:";
_root.uno = _root.uno + int(_root[("ew" + i) + "destination"]._x / 24);
_root.uno = _root.uno + ",ydestination:";
_root.uno = _root.uno + int(_root[("ew" + i) + "destination"]._y / 24);
_root.uno = _root.uno + "; ";
} else if (k == "k") {
_root.uno = _root.uno + ",ccolor:";
_root.uno = _root.uno + _root[k + i].ccolor;
_root.uno = _root.uno + "; ";
} else if (k == "o") {
_root.uno = _root.uno + ",rrotate:";
_root.uno = _root.uno + _root[k + i].rrotate;
_root.uno = _root.uno + ",openWhen:";
_root.uno = _root.uno + _root[k + i].openWhen;
_root.uno = _root.uno + "; ";
} else if (k == "u") {
_root.uno = _root.uno + ",ccolor:";
_root.uno = _root.uno + _root[k + i].ccolor;
_root.uno = _root.uno + ",rrotate:";
_root.uno = _root.uno + _root[k + i].rrotate;
_root.uno = _root.uno + "; ";
} else {
_root.uno = _root.uno + "; ";
}
}
i--;
}
j--;
}
_root.uno = _root.uno + "_root=health:";
_root.uno = _root.uno + _root.optionsTabHealth;
_root.uno = _root.uno + ",backgroundd:";
_root.uno = _root.uno + _root.bbackground._currentframe;
_root.uno = _root.uno + ",zoomView:";
_root.uno = _root.uno + _root.zoomView;
_root.uno = _root.uno + ">";
}
function getFilesDel() {
folder = "Q/custom levels";
searchMask = "*.*";
delimiter = "%";
fscommand ("flashstudio.getfilelist_del", "folder,searchMask,result,delimiter");
}
function goPreview() {
while (highestCarryOn == true) {
while (carryOn == true) {
this["number" + i] = one.substr(location, 1);
if (this["number" + i] == "=") {
carryOn = false;
previousLocation = location;
location++;
_root["max" + objectName]++;
} else {
objectName = objectName + this["number" + i];
i++;
previousLocation = location;
location++;
}
}
carryOn = true;
_root.previewGen.attachMovie(objectName, objectName + _root["max" + objectName], location + 300);
while (highCarryOn == true) {
while (carryOn == true) {
this["number" + i] = one.substr(location, 1);
if (this["number" + i] == ":") {
carryOn = false;
previousLocation = location;
location++;
} else {
total = total + this["number" + i];
i++;
previousLocation = location;
location++;
}
}
carryOn = true;
while (carryOn == true) {
this["number" + i] = one.substr(location, 1);
if (this["number" + i] == ";") {
highCarryOn = false;
carryOn = false;
previousLocation = location;
location = location + 2;
}
if (this["number" + i] == ">") {
highestCarryOn = false;
highCarryOn = false;
carryOn = false;
previousLocation = location;
location++;
}
if (this["number" + i] == ",") {
carryOn = false;
previousLocation = location;
location++;
}
if (((this["number" + i] != ",") and (this["number" + i] != ";")) and (this["number" + i] != ">")) {
equal = equal + this["number" + i];
i++;
previousLocation = location;
location++;
}
}
if (total == "_x") {
equal = equal * 24;
}
if (total == "_y") {
equal = equal * 24;
}
if (total == "xdestination") {
equal = equal * 24;
}
if (total == "ydestination") {
equal = equal * 24;
}
if ((objectName != "_root") and (objectName != "_root+")) {
_root.PreviewGen[objectName + _root["max" + objectName]][total] = equal;
} else if (objectName == "_root") {
_root.PreviewGen[total] = equal;
} else if (objectName == "_root+") {
}
total = "";
equal = "";
carryOn = true;
}
total = "";
equal = "";
carryOn = true;
highCarryOn = true;
objectName = "";
}
}
function getFiles() {
_root.folder = "Q/custom levels";
_root.searchMask = "*.mon";
_root.delimiter = "%";
fscommand ("flashstudio.getfilelist_del", "folder,searchMask,result,delimiter");
}
function loadGameData() {
_root.loadFrom = "Q/gameData.mon";
fscommand ("flashstudio.loadfromfile", "loadFrom,loadContent");
}
function saveGameData(num) {
_root.saveContent = num;
_root.saveTo = "Q/gameData.mon";
fscommand ("flashstudio.savetofile", "saveTo,saveContent");
}
function blowfish(mes) {
_root.key = "Noah";
_root.textToEncrypt = mes;
fscommand ("flashstudio.blowfishenc", "key,textToEncrypt,result");
return(_root.result);
}
function decrypt(mes) {
_root.key = "Noah";
_root.textToDecrypt = mes;
fscommand ("flashstudio.blowfishdec", "key,textToDecrypt,result");
return(_root.result);
}
function loadOptions() {
_root.loadFrom = "Q/options.mon";
fscommand ("flashstudio.loadfromfile", "loadFrom,loadContent");
_root.options = _root.loadContent;
if (_root.options.substr(0, 1) == "b") {
_quality = "BEST";
}
if (_root.options.substr(0, 1) == "h") {
_quality = "HIGH";
}
if (_root.options.substr(0, 1) == "m") {
_quality = "MEDIUM";
}
if (_root.options.substr(0, 1) == "l") {
_quality = "LOW";
}
if (_root.options.substr(1, 1) == "y") {
_root.musicon = true;
}
if (_root.options.substr(1, 1) == "n") {
_root.musicon = false;
}
if (_root.options.substr(2, 1) == "y") {
_root.soundon = true;
}
if (_root.options.substr(2, 1) == "n") {
_root.soundon = false;
}
if ((_root.options.substr(3, 1) == "f") and (_root.screenWay != "f")) {
_root.screenWay = "f";
fscommand ("flashstudio.maximize");
}
if ((_root.options.substr(3, 1) == 8) and (_root.screenWay != 8)) {
_root.screenWay = 8;
fscommand ("flashstudio.restore");
fscommand ("flashstudio.size", "\"800\",\"600\"");
fscommand ("flashstudio.position", "\"0\",\"0\"");
}
if ((_root.options.substr(3, 1) == 6) and (_root.screenWay != 6)) {
_root.screenWay = 6;
fscommand ("flashstudio.restore");
fscommand ("flashstudio.size", "\"600\",\"400\"");
fscommand ("flashstudio.position", "\"0\",\"0\"");
}
}
function lastScreenn() {
if (_root.lastScreen == "menu") {
gotoAndStop (85);
}
if (_root.lastScreen == "load") {
gotoAndStop (30);
}
if (_root.lastScreen == "edit") {
gotoAndStop (30);
}
if (_root.lastScreen == "level creator") {
gotoAndStop (91);
_root.dontLoad = true;
}
if (_root.lastScreen == "load level code") {
gotoAndStop (30);
}
if (_root.lastScreen == "in between") {
gotoAndPlay(_root.lastFrame +92);
}
if (_root.lastScreen == "real") {
if (_root.pause == 0) {
_root.pause = 1;
_root.attachMovie("pause", "ppause", 999934);
if (_root.zoomView == true) {
_root.ppause._width = _root.ppause._width / 2;
_root.ppause._height = _root.ppause._height / 2;
_root.ppause._x = _root.screen._x;
_root.ppause._y = _root.screen._y;
}
}
_root.dontLoad = true;
gotoAndStop (96);
_root.pause = 1;
}
if (_root.lastScreen == "win") {
gotoAndPlay (274);
}
if (_root.lastScreen == "lose") {
gotoAndPlay (110);
}
if (_root.lastScreen == "load game") {
gotoAndStop (30);
}
if (_root.lastScreen == "instructions") {
gotoAndStop(_root.lastFrame +86);
}
if (_root.lastScreen == "credits") {
gotoAndStop (30);
}
}
function bye() {
_root.warn1.removeMovieClip();
_root.warn2.removeMovieClip();
_root.warn3.removeMovieClip();
_root.warn4.removeMovieClip();
if (_root.lastScreen != "real") {
if (_root.realDistorted) {
_root._width = _root._width / 0.95;
_root._height = _root._height / 0.95;
_root._x = _root._x - 24.6;
_root._y = _root._y - 7.9;
_root.realDistorted = false;
}
}
if (_root.lastScreen != "level creator") {
if (_root.zoomView == true) {
_root._width = 565;
_root._height = 410;
_root._x = 0;
_root._y = 0;
_root.zoomView = false;
}
}
if ((_root.lastScreen != "level creator") and (_root.creatorDistorted == true)) {
_root._y = _root._y - 12;
_root.creatorDistorted = false;
}
_root.black.removeMovieClip();
_root.put.removeMovieClip();
_root.cover.removeMovieClip();
_root.covered = false;
_root.screen.removeMovieClip();
removeMovieClip("screen");
removeMovieClip(99999999);
_root.screen._visible = 0;
if (_root.lastScreen != "level creator") {
_root.optionsTab.removeMovieClip();
}
j = _root.charList.length;
while (j >= 0) {
k = _root.charList[j];
i = _root["max" + k];
while (i > 0) {
_root[((k + _root[k + i]._x) + "x") + _root[k + i]._y] = 0;
_root[((k + _root[k + i].x) + "x") + _root[k + i].y] = 0;
_root[_root[k + i].previousLocation] = 0;
_root[k + i].removeMovieClip();
i--;
}
i = _root["mx" + k];
while (i > 0) {
_root[((k + _root[k + i]._x) + "x") + _root[k + i]._y] = 0;
_root[((k + _root[k + i].x) + "x") + _root[k + i].y] = 0;
_root[_root[k + i].previousLocation] = 0;
_root[k + i].removeMovieClip();
i--;
}
j--;
}
_root.warping = false;
_root.pc2.removeMovieClip();
_root.key.removeMovieClip();
_root.gate.removeMovieClip();
_root.lockedGate.removeMovieClip();
_root.pictureViewer.removeMovieClip();
_root.pc.removeMovieClip();
_root.gg.removeMovieClip();
_root.erase.removeMovieClip();
_root.bomb.removeMovieClip();
_root.ril.removeMovieClip();
j = 0;
while (j <= _root.charList.length) {
k = _root.charList[j];
i = 17;
while (i >= 0) {
_root[((k + _root[k + i]._x) + "x") + _root[k + i]._y] = 0;
_root[((k + _root[k + i].x) + "x") + _root[k + i].y] = 0;
_root[_root[k + i].previousLocation] = 0;
_root[k + i].removeMovieClip();
i--;
}
j++;
}
i = _root.mxw;
while (i > 0) {
_root[("aw" + i) + "destination"].removeMovieClip();
i--;
}
i = _root.mxx;
while (i > 0) {
_root[("cw" + i) + "destination"].removeMovieClip();
i--;
}
i = _root.mxy;
while (i > 0) {
_root[("ew" + i) + "destination"].removeMovieClip();
i--;
}
j = _root.charList.length;
while (j >= 0) {
k = _root.charList[j];
_root["max" + k] = 0;
_root["mx" + k] = 0;
_root["rx" + k] = 0;
j--;
}
_root.drag = eval (null)();
_root.playing = 0;
if (_root.song == 1) {
song = 5;
} else {
song = _root.song;
}
_root.bg.stop(["music" + (song - 1)]);
_root.stopAllSounds();
stopAllSounds();
i = 300;
while (i > 0) {
_root[((k + _root.open._x) + "x") + _root.open._y] = 0;
_root.open.removeMovieClip();
i--;
}
_root.main.removeMovieClip();
_root.ppause.removeMovieClip();
_root.pause = 0;
_root.health = 1;
}
function contains(containee, container) {
temp = 0;
i = 0;
while (i < containee.length) {
if (temp > 0) {
if (containee.substr(i, 1) != container.substr(temp, 1)) {
temp = 0;
} else if (containee.substr(i, 1) == container.substr(temp, 1)) {
temp++;
}
} else if (temp == 0) {
if (containee.substr(i, 1) == container.substr(temp, 1)) {
temp++;
}
}
if (temp == container.length) {
return(true);
}
i++;
}
return(false);
}
stop();
_root.frameLabel = "Quit";
fscommand ("flashstudio.setexithandler", "frameLabel");
fscommand ("flashstudio.insertmenuheader", "\"File\"");
fscommand ("flashstudio.insertmenuitem", "\"File\",\"Main Menu\"");
fscommand ("flashstudio.insertmenudivider", "\"File\"");
fscommand ("flashstudio.insertmenuitem", "\"File\",\"Play\"");
fscommand ("flashstudio.insertmenudivider", "\"File\"");
fscommand ("flashstudio.insertmenuitem", "\"File\",\"Instructions\"");
fscommand ("flashstudio.insertmenudivider", "\"File\"");
fscommand ("flashstudio.insertmenuitem", "\"File\",\"Quit\"");
fscommand ("flashstudio.insertmenuheader", "\"Edit\"");
fscommand ("flashstudio.insertmenuitem", "\"Edit\",\"Custom Levels\"");
fscommand ("flashstudio.insertmenuheader", "\"Options\"");
fscommand ("flashstudio.insertmenuitem", "\"Options\",\"Full Screen\"");
fscommand ("flashstudio.insertmenudivider", "\"Options\"");
fscommand ("flashstudio.insertmenuitem", "\"Options\",\"Sound On\"");
fscommand ("flashstudio.insertmenuitem", "\"Options\",\"Sound Off\"");
fscommand ("flashstudio.insertmenudivider", "\"Options\"");
fscommand ("flashstudio.insertmenuitem", "\"Options\",\"Music On\"");
fscommand ("flashstudio.insertmenuitem", "\"Options\",\"Music Off\"");
fscommand ("flashstudio.insertmenudivider", "\"Options\"");
fscommand ("flashstudio.insertmenuitem", "\"Options\",\"Best Quality\"");
fscommand ("flashstudio.insertmenuitem", "\"Options\",\"High Quality\"");
fscommand ("flashstudio.insertmenuitem", "\"Options\",\"Medium Quality\"");
fscommand ("flashstudio.insertmenuitem", "\"Options\",\"Low Quality\"");
fscommand ("flashstudio.insertmenudivider", "\"Options\"");
fscommand ("flashstudio.insertmenuitem", "\"Options\",\"Lighting On\"");
fscommand ("flashstudio.insertmenuitem", "\"Options\",\"Lighting Off\"");
Instance of Symbol 170 MovieClip "actions" in Frame 30
onClipEvent (load) {
_root.dontLoad = false;
_root.uno = "bar1=_x:1,_y:1; bar2=_x:1,_y:1; _root=health:1,backgroundd:1,zoomView:false>";
_root.Level_Library = new Array();
_root.Level_Library.push("bar1=_x:1,_y:1; bar2=_x:1,_y:1; z=_x:21,_y:9; t=_x:20,_y:9; m=_x:2,_y:9; d=_x:12,_y:9; b=_x:4,_y:11; b=_x:4,_y:10; b=_x:4,_y:9; b=_x:4,_y:8; b=_x:6,_y:7; b=_x:7,_y:7; b=_x:8,_y:8; b=_x:8,_y:9; b=_x:7,_y:9; b=_x:7,_y:10; b=_x:7,_y:11; b=_x:6,_y:12; b=_x:11,_y:10; b=_x:10,_y:6; b=_x:11,_y:8; b=_x:11,_y:9; b=_x:9,_y:4; b=_x:8,_y:4; b=_x:10,_y:5; b=_x:10,_y:13; b=_x:9,_y:13; b=_x:8,_y:14; b=_x:13,_y:13; b=_x:14,_y:12; b=_x:14,_y:11; b=_x:14,_y:10; b=_x:13,_y:9; b=_x:12,_y:7; b=_x:13,_y:6; b=_x:13,_y:4; b=_x:12,_y:3; b=_x:17,_y:14; b=_x:17,_y:11; b=_x:17,_y:7; b=_x:18,_y:4; b=_x:19,_y:5; b=_x:19,_y:11; b=_x:20,_y:15; b=_x:21,_y:14; b=_x:18,_y:10; b=_x:18,_y:7; _root=health:5,backgroundd:19,zoomView:0>");
_root.Level_Library.push("bar1=_x:1,_y:1; bar2=_x:1,_y:1; z=_x:10,_y:3; t=_x:9,_y:9; o=_x:5,_y:10,rrotate:,openWhen:2; o=_x:18,_y:10,rrotate:,openWhen:2; m=_x:13,_y:5; m=_x:3,_y:13; m=_x:22,_y:12; d=_x:13,_y:15; b=_x:9,_y:3; b=_x:9,_y:4; b=_x:9,_y:5; b=_x:9,_y:6; b=_x:9,_y:7; b=_x:9,_y:8; b=_x:11,_y:8; b=_x:10,_y:8; b=_x:12,_y:8; b=_x:13,_y:8; b=_x:15,_y:8; b=_x:16,_y:8; b=_x:16,_y:7; b=_x:16,_y:6; b=_x:16,_y:5; b=_x:16,_y:4; b=_x:16,_y:3; b=_x:5,_y:4; b=_x:5,_y:3; b=_x:5,_y:5; b=_x:5,_y:6; b=_x:5,_y:7; b=_x:5,_y:8; b=_x:5,_y:9; b=_x:5,_y:11; b=_x:6,_y:11; b=_x:7,_y:11; b=_x:8,_y:11; b=_x:9,_y:11; b=_x:10,_y:11; b=_x:11,_y:11; b=_x:12,_y:11; b=_x:13,_y:11; b=_x:14,_y:11; b=_x:15,_y:11; b=_x:16,_y:11; b=_x:17,_y:11; b=_x:18,_y:11; b=_x:18,_y:9; b=_x:18,_y:8; b=_x:18,_y:7; b=_x:18,_y:6; b=_x:18,_y:5; b=_x:18,_y:4; b=_x:18,_y:3; _root=health:3,backgroundd:13,zoomView:0>");
_root.Level_Library.push("bar1=_x:1,_y:1; bar2=_x:1,_y:1; z=_x:2,_y:3; w=_x:15,_y:3,xdestination:17,ydestination:3; t=_x:4,_y:8; t=_x:11,_y:5; o=_x:9,_y:3,rrotate:,openWhen:2; o=_x:14,_y:3,rrotate:,openWhen:1; o=_x:21,_y:10,rrotate:90,openWhen:0; n=_x:10,_y:9; m=_x:7,_y:3; m=_x:15,_y:9; f=_x:18,_y:6; d=_x:4,_y:11; d=_x:7,_y:14; d=_x:3,_y:14; d=_x:6,_y:11; d=_x:6,_y:15; d=_x:4,_y:15; d=_x:5,_y:15; d=_x:4,_y:12; d=_x:6,_y:12; b=_x:9,_y:4; b=_x:9,_y:5; b=_x:9,_y:6; b=_x:9,_y:7; b=_x:9,_y:8; b=_x:9,_y:9; b=_x:9,_y:10; b=_x:8,_y:10; b=_x:6,_y:10; b=_x:7,_y:10; b=_x:5,_y:10; b=_x:4,_y:10; b=_x:3,_y:10; b=_x:2,_y:10; b=_x:10,_y:10; b=_x:12,_y:10; b=_x:11,_y:10; b=_x:13,_y:10; b=_x:14,_y:10; b=_x:14,_y:9; b=_x:14,_y:8; b=_x:14,_y:7; b=_x:14,_y:6; b=_x:14,_y:5; b=_x:14,_y:4; b=_x:15,_y:10; b=_x:16,_y:10; b=_x:17,_y:10; b=_x:18,_y:10; b=_x:19,_y:10; b=_x:20,_y:10; b=_x:22,_y:10; b=_x:15,_y:4; b=_x:16,_y:4; b=_x:16,_y:3; _root=health:5,backgroundd:19,zoomView:0>");
_root.Level_Library.push("bar1=_x:1,_y:1; bar2=_x:1,_y:1; z=_x:12,_y:3; w=_x:12,_y:4,xdestination:12,ydestination:6; u=_x:6,_y:15,ccolor:blue,rrotate:; u=_x:2,_y:6,ccolor:red,rrotate:90; u=_x:3,_y:14,ccolor:red,rrotate:90; u=_x:3,_y:12,ccolor:yellow,rrotate:90; u=_x:3,_y:9,ccolor:yellow,rrotate:90; u=_x:12,_y:15,ccolor:yellow,rrotate:; u=_x:16,_y:15,ccolor:red,rrotate:; u=_x:8,_y:15,ccolor:blue,rrotate:; u=_x:7,_y:13,ccolor:yellow,rrotate:90; u=_x:17,_y:14,ccolor:red,rrotate:90; u=_x:7,_y:14,ccolor:blue,rrotate:90; u=_x:12,_y:14,ccolor:yellow,rrotate:90; u=_x:20,_y:15,ccolor:blue,rrotate:; u=_x:17,_y:6,ccolor:blue,rrotate:; u=_x:16,_y:6,ccolor:yellow,rrotate:; u=_x:12,_y:11,ccolor:yellow,rrotate:90; u=_x:12,_y:10,ccolor:red,rrotate:90; u=_x:7,_y:6,ccolor:red,rrotate:; u=_x:8,_y:6,ccolor:blue,rrotate:; k=_x:10,_y:6,ccolor:yellow; k=_x:9,_y:6,ccolor:blue; k=_x:15,_y:6,ccolor:yellow; k=_x:14,_y:6,ccolor:red; k=_x:12,_y:9,ccolor:red; k=_x:12,_y:8,ccolor:blue; k=_x:13,_y:6,ccolor:blue; k=_x:12,_y:7,ccolor:yellow; k=_x:11,_y:6,ccolor:red; d=_x:7,_y:10; b=_x:6,_y:12; b=_x:6,_y:11; b=_x:6,_y:10; b=_x:6,_y:9; b=_x:7,_y:9; b=_x:8,_y:9; b=_x:8,_y:10; b=_x:8,_y:11; b=_x:8,_y:12; b=_x:8,_y:13; b=_x:6,_y:13; b=_x:19,_y:14; b=_x:18,_y:14; b=_x:15,_y:14; b=_x:16,_y:14; b=_x:14,_y:14; b=_x:13,_y:14; b=_x:13,_y:13; b=_x:11,_y:13; b=_x:11,_y:14; b=_x:10,_y:14; b=_x:9,_y:14; b=_x:8,_y:14; b=_x:6,_y:14; b=_x:5,_y:14; b=_x:20,_y:8; b=_x:20,_y:9; b=_x:20,_y:10; b=_x:20,_y:11; b=_x:20,_y:12; b=_x:20,_y:13; b=_x:20,_y:14; b=_x:22,_y:15; b=_x:22,_y:14; b=_x:22,_y:13; b=_x:22,_y:12; b=_x:22,_y:11; b=_x:22,_y:10; b=_x:22,_y:9; b=_x:22,_y:8; b=_x:21,_y:6; b=_x:22,_y:4; b=_x:14,_y:3; b=_x:16,_y:4; b=_x:18,_y:3; b=_x:20,_y:4; b=_x:20,_y:5; b=_x:20,_y:6; b=_x:20,_y:7; b=_x:19,_y:7; b=_x:2,_y:10; b=_x:2,_y:11; b=_x:2,_y:12; b=_x:2,_y:13; b=_x:2,_y:14; b=_x:2,_y:15; b=_x:4,_y:14; b=_x:4,_y:13; b=_x:4,_y:12; b=_x:4,_y:11; b=_x:4,_y:10; b=_x:4,_y:9; b=_x:4,_y:8; b=_x:2,_y:9; b=_x:2,_y:8; b=_x:3,_y:6; b=_x:2,_y:4; b=_x:10,_y:4; b=_x:8,_y:3; b=_x:6,_y:4; b=_x:4,_y:4; b=_x:4,_y:5; b=_x:4,_y:6; b=_x:4,_y:7; b=_x:5,_y:7; b=_x:14,_y:5; b=_x:15,_y:5; b=_x:16,_y:5; b=_x:17,_y:5; b=_x:18,_y:5; b=_x:18,_y:7; b=_x:17,_y:7; b=_x:16,_y:7; b=_x:15,_y:7; b=_x:14,_y:7; b=_x:13,_y:7; b=_x:13,_y:8; b=_x:13,_y:9; b=_x:13,_y:10; b=_x:13,_y:11; b=_x:13,_y:12; b=_x:11,_y:12; b=_x:11,_y:11; b=_x:11,_y:10; b=_x:11,_y:9; b=_x:11,_y:8; b=_x:11,_y:7; b=_x:10,_y:7; b=_x:9,_y:7; b=_x:8,_y:7; b=_x:7,_y:7; b=_x:6,_y:7; b=_x:6,_y:5; b=_x:7,_y:5; b=_x:8,_y:5; b=_x:9,_y:5; b=_x:10,_y:5; b=_x:13,_y:3; b=_x:13,_y:4; b=_x:13,_y:5; b=_x:12,_y:5; b=_x:11,_y:5; b=_x:11,_y:4; b=_x:11,_y:3; _root=health:1,backgroundd:12,zoomView:1>");
_root.Level_Library.push("bar1=_x:1,_y:1; bar2=_x:1,_y:1; z=_x:12,_y:10; t=_x:14,_y:4; n=_x:5,_y:14; n=_x:17,_y:14; n=_x:3,_y:9; d=_x:15,_y:6; b=_x:5,_y:10; b=_x:5,_y:9; b=_x:5,_y:11; b=_x:11,_y:6; b=_x:13,_y:6; b=_x:13,_y:5; b=_x:13,_y:4; b=_x:11,_y:4; b=_x:9,_y:5; b=_x:9,_y:6; b=_x:9,_y:4; b=_x:10,_y:8; b=_x:11,_y:10; b=_x:12,_y:8; b=_x:10,_y:10; b=_x:13,_y:9; b=_x:8,_y:8; b=_x:13,_y:11; b=_x:11,_y:12; b=_x:14,_y:7; b=_x:16,_y:6; b=_x:11,_y:7; b=_x:7,_y:5; b=_x:6,_y:8; b=_x:7,_y:11; b=_x:4,_y:5; b=_x:6,_y:3; b=_x:6,_y:7; b=_x:4,_y:8; b=_x:3,_y:6; b=_x:2,_y:7; b=_x:5,_y:6; b=_x:5,_y:13; b=_x:9,_y:12; b=_x:12,_y:14; b=_x:8,_y:6; b=_x:7,_y:4; b=_x:5,_y:3; b=_x:10,_y:3; b=_x:14,_y:3; b=_x:16,_y:9; b=_x:14,_y:12; b=_x:15,_y:15; b=_x:15,_y:14; b=_x:17,_y:12; b=_x:17,_y:13; b=_x:19,_y:15; b=_x:19,_y:14; b=_x:21,_y:13; b=_x:21,_y:14; b=_x:19,_y:12; b=_x:20,_y:10; b=_x:18,_y:10; b=_x:17,_y:10; b=_x:17,_y:8; b=_x:19,_y:8; b=_x:20,_y:8; b=_x:18,_y:7; b=_x:16,_y:10; b=_x:15,_y:7; b=_x:17,_y:5; b=_x:18,_y:5; b=_x:19,_y:6; b=_x:21,_y:8; b=_x:22,_y:6; b=_x:20,_y:5; b=_x:22,_y:4; b=_x:18,_y:3; b=_x:20,_y:4; b=_x:16,_y:4; _root=health:2,backgroundd:1,zoomView:0>");
_root.Level_Library.push("bar1=_x:1,_y:1; bar2=_x:1,_y:1; z=_x:4,_y:9; t=_x:22,_y:9; q=_x:13,_y:5; q=_x:13,_y:14; q=_x:19,_y:9; h=_x:10,_y:9; d=_x:2,_y:9; _root=health:1,backgroundd:19,zoomView:0>");
_root.Level_Library.push("bar1=_x:1,_y:1; bar2=_x:1,_y:1; z=_x:2,_y:3; t=_x:12,_y:10; l=_x:22,_y:15; l=_x:22,_y:3; l=_x:2,_y:15; h=_x:21,_y:14; d=_x:2,_y:10; d=_x:22,_y:10; d=_x:12,_y:3; d=_x:12,_y:15; b=_x:11,_y:4; b=_x:11,_y:3; b=_x:13,_y:4; b=_x:13,_y:3; b=_x:22,_y:9; b=_x:21,_y:9; b=_x:21,_y:11; b=_x:22,_y:11; b=_x:13,_y:15; b=_x:13,_y:14; b=_x:11,_y:14; b=_x:11,_y:15; b=_x:2,_y:11; b=_x:3,_y:11; b=_x:3,_y:9; b=_x:2,_y:9; b=_x:12,_y:9; b=_x:13,_y:9; b=_x:13,_y:10; b=_x:13,_y:11; b=_x:12,_y:11; b=_x:11,_y:11; b=_x:11,_y:10; b=_x:11,_y:9; _root=health:1,backgroundd:5,zoomView:0>");
_root.Level_Library.push("bar1=_x:1,_y:1; bar2=_x:1,_y:1; z=_x:5,_y:5; w=_x:18,_y:8,xdestination:4,ydestination:12; w=_x:21,_y:8,xdestination:15,ydestination:7; t=_x:7,_y:12; t=_x:21,_y:3; t=_x:18,_y:3; t=_x:6,_y:7; q=_x:16,_y:3; o=_x:8,_y:4,rrotate:,openWhen:5; o=_x:12,_y:4,rrotate:,openWhen:4; j=_x:11,_y:7; j=_x:22,_y:15; j=_x:5,_y:8; j=_x:21,_y:10; j=_x:22,_y:7; g=_x:18,_y:6; d=_x:16,_y:11; b=_x:20,_y:11; b=_x:8,_y:7; b=_x:21,_y:14; b=_x:22,_y:12; b=_x:21,_y:15; b=_x:20,_y:10; b=_x:18,_y:11; b=_x:19,_y:12; b=_x:19,_y:14; b=_x:19,_y:15; b=_x:16,_y:15; b=_x:14,_y:14; b=_x:14,_y:11; b=_x:15,_y:11; b=_x:15,_y:12; b=_x:16,_y:12; b=_x:17,_y:13; b=_x:12,_y:10; b=_x:11,_y:11; b=_x:11,_y:13; b=_x:12,_y:14; b=_x:8,_y:10; b=_x:8,_y:15; b=_x:9,_y:12; b=_x:9,_y:13; b=_x:8,_y:14; b=_x:11,_y:15; b=_x:5,_y:13; b=_x:5,_y:12; b=_x:5,_y:11; b=_x:20,_y:8; b=_x:20,_y:6; b=_x:20,_y:5; b=_x:20,_y:4; b=_x:20,_y:3; b=_x:17,_y:4; b=_x:17,_y:3; b=_x:16,_y:5; b=_x:12,_y:3; b=_x:12,_y:5; b=_x:13,_y:6; b=_x:14,_y:7; b=_x:15,_y:8; b=_x:8,_y:3; b=_x:8,_y:5; b=_x:8,_y:6; b=_x:7,_y:7; b=_x:6,_y:8; b=_x:21,_y:9; b=_x:22,_y:9; b=_x:20,_y:9; b=_x:19,_y:9; b=_x:18,_y:9; b=_x:16,_y:9; b=_x:17,_y:9; b=_x:15,_y:9; b=_x:14,_y:9; b=_x:13,_y:9; b=_x:12,_y:9; b=_x:11,_y:9; b=_x:10,_y:9; b=_x:2,_y:9; b=_x:3,_y:9; b=_x:4,_y:9; b=_x:5,_y:9; b=_x:6,_y:9; b=_x:7,_y:9; b=_x:8,_y:9; b=_x:9,_y:9; b=_x:22,_y:4; _root=health:2,backgroundd:12,zoomView:0>");
_root.Level_Library.push("bar1=_x:1,_y:1; bar2=_x:1,_y:1; z=_x:2,_y:3; u=_x:5,_y:12,ccolor:green,rrotate:90; u=_x:7,_y:15,ccolor:yellow,rrotate:; u=_x:20,_y:8,ccolor:yellow,rrotate:; t=_x:3,_y:3; t=_x:14,_y:4; q=_x:7,_y:3; q=_x:5,_y:8; o=_x:3,_y:4,rrotate:90,openWhen:4; o=_x:4,_y:4,rrotate:,openWhen:4; o=_x:3,_y:8,rrotate:,openWhen:2; l=_x:6,_y:3; l=_x:2,_y:10; k=_x:2,_y:8,ccolor:green; k=_x:4,_y:14,ccolor:yellow; j=_x:6,_y:13; j=_x:22,_y:8; g=_x:21,_y:12; g=_x:22,_y:12; g=_x:21,_y:13; d=_x:2,_y:15; b=_x:3,_y:9; b=_x:2,_y:9; b=_x:2,_y:7; b=_x:3,_y:7; b=_x:7,_y:4; b=_x:6,_y:4; b=_x:7,_y:7; b=_x:6,_y:7; b=_x:2,_y:4; b=_x:3,_y:5; b=_x:4,_y:3; b=_x:4,_y:5; b=_x:2,_y:12; b=_x:3,_y:12; b=_x:4,_y:12; b=_x:6,_y:12; b=_x:7,_y:12; b=_x:7,_y:13; b=_x:7,_y:14; b=_x:11,_y:14; b=_x:11,_y:13; b=_x:11,_y:12; b=_x:11,_y:11; b=_x:11,_y:10; b=_x:11,_y:9; b=_x:11,_y:7; b=_x:11,_y:8; b=_x:11,_y:6; b=_x:11,_y:5; b=_x:11,_y:4; b=_x:11,_y:3; b=_x:8,_y:13; b=_x:9,_y:13; b=_x:9,_y:14; b=_x:9,_y:12; b=_x:9,_y:11; b=_x:9,_y:10; b=_x:9,_y:9; b=_x:9,_y:8; b=_x:22,_y:7; b=_x:21,_y:7; b=_x:20,_y:7; b=_x:20,_y:9; b=_x:22,_y:9; b=_x:14,_y:5; b=_x:15,_y:4; b=_x:20,_y:11; b=_x:20,_y:10; b=_x:20,_y:12; b=_x:20,_y:13; b=_x:20,_y:14; b=_x:20,_y:15; _root=health:1,backgroundd:16,zoomView:1>");
_root.Level_Library.push("bar1=_x:1,_y:1; bar2=_x:1,_y:1; z=_x:3,_y:3; j=_x:6,_y:15; j=_x:11,_y:6; j=_x:20,_y:9; h=_x:4,_y:11; f=_x:14,_y:11; d=_x:21,_y:3; b=_x:10,_y:9; b=_x:11,_y:10; b=_x:12,_y:9; b=_x:11,_y:5; b=_x:10,_y:6; b=_x:9,_y:7; b=_x:8,_y:8; b=_x:7,_y:9; b=_x:12,_y:6; b=_x:13,_y:7; b=_x:14,_y:8; b=_x:15,_y:9; b=_x:5,_y:10; b=_x:6,_y:11; b=_x:7,_y:12; b=_x:8,_y:13; b=_x:9,_y:14; b=_x:10,_y:15; b=_x:12,_y:15; b=_x:13,_y:14; b=_x:14,_y:13; b=_x:15,_y:12; b=_x:16,_y:11; b=_x:17,_y:10; b=_x:18,_y:9; b=_x:19,_y:8; b=_x:4,_y:9; b=_x:3,_y:8; b=_x:9,_y:11; b=_x:10,_y:12; b=_x:11,_y:13; b=_x:12,_y:12; b=_x:13,_y:11; b=_x:2,_y:11; b=_x:5,_y:11; b=_x:4,_y:12; b=_x:5,_y:14; b=_x:7,_y:14; b=_x:4,_y:15; b=_x:2,_y:4; b=_x:3,_y:5; b=_x:4,_y:6; b=_x:5,_y:7; b=_x:8,_y:7; b=_x:7,_y:6; b=_x:6,_y:5; b=_x:5,_y:4; b=_x:7,_y:3; b=_x:8,_y:4; b=_x:10,_y:4; b=_x:13,_y:3; b=_x:14,_y:6; b=_x:15,_y:5; b=_x:16,_y:4; b=_x:20,_y:3; b=_x:19,_y:4; b=_x:18,_y:5; b=_x:17,_y:6; b=_x:16,_y:7; b=_x:20,_y:6; b=_x:20,_y:7; b=_x:20,_y:4; b=_x:21,_y:4; b=_x:22,_y:6; b=_x:22,_y:8; b=_x:19,_y:10; b=_x:20,_y:11; b=_x:21,_y:12; b=_x:17,_y:12; b=_x:18,_y:13; b=_x:19,_y:14; b=_x:15,_y:14; _root=health:3,backgroundd:8,zoomView:0>");
_root.Level_Library.push("bar1=_x:1,_y:1; bar2=_x:1,_y:1; z=_x:2,_y:3; y=_x:14,_y:7,xdestination:11,ydestination:8; y=_x:15,_y:14,xdestination:13,ydestination:8; y=_x:17,_y:8,xdestination:16,ydestination:14; y=_x:18,_y:7,xdestination:15,ydestination:7; y=_x:11,_y:7,xdestination:18,ydestination:6; w=_x:20,_y:10,xdestination:19,ydestination:10; w=_x:19,_y:8,xdestination:3,ydestination:15; u=_x:20,_y:12,ccolor:blue,rrotate:; u=_x:14,_y:15,ccolor:red,rrotate:; t=_x:22,_y:3; t=_x:22,_y:15; q=_x:9,_y:3; q=_x:9,_y:8; q=_x:2,_y:8; o=_x:21,_y:9,rrotate:90,openWhen:1; o=_x:21,_y:13,rrotate:90,openWhen:0; o=_x:20,_y:8,rrotate:,openWhen:0; o=_x:21,_y:11,rrotate:90,openWhen:0; l=_x:17,_y:15; k=_x:22,_y:10,ccolor:blue; k=_x:11,_y:15,ccolor:red; j=_x:22,_y:12; i=_x:4,_y:13; i=_x:21,_y:15; h=_x:21,_y:14; d=_x:2,_y:15; b=_x:11,_y:6; b=_x:10,_y:6; b=_x:10,_y:7; b=_x:10,_y:8; b=_x:19,_y:13; b=_x:19,_y:6; b=_x:2,_y:9; b=_x:3,_y:9; b=_x:5,_y:9; b=_x:4,_y:9; b=_x:6,_y:9; b=_x:7,_y:9; b=_x:8,_y:9; b=_x:9,_y:9; b=_x:10,_y:9; b=_x:11,_y:9; b=_x:12,_y:9; b=_x:13,_y:9; b=_x:14,_y:9; b=_x:15,_y:9; b=_x:16,_y:9; b=_x:18,_y:9; b=_x:17,_y:9; b=_x:19,_y:9; b=_x:20,_y:9; b=_x:22,_y:9; b=_x:22,_y:13; b=_x:22,_y:11; b=_x:20,_y:13; b=_x:20,_y:11; b=_x:18,_y:13; b=_x:17,_y:13; b=_x:16,_y:13; b=_x:15,_y:13; b=_x:14,_y:13; b=_x:13,_y:13; b=_x:12,_y:15; b=_x:14,_y:14; b=_x:16,_y:15; b=_x:10,_y:14; b=_x:3,_y:14; b=_x:12,_y:13; b=_x:10,_y:13; b=_x:11,_y:13; b=_x:9,_y:13; b=_x:8,_y:13; b=_x:7,_y:13; b=_x:6,_y:13; b=_x:5,_y:13; b=_x:2,_y:13; b=_x:18,_y:12; b=_x:18,_y:11; b=_x:13,_y:11; b=_x:14,_y:11; b=_x:15,_y:11; b=_x:16,_y:11; b=_x:12,_y:11; b=_x:11,_y:11; b=_x:10,_y:10; b=_x:8,_y:12; b=_x:8,_y:11; b=_x:6,_y:10; b=_x:6,_y:11; b=_x:4,_y:12; b=_x:4,_y:11; b=_x:3,_y:11; b=_x:6,_y:14; b=_x:4,_y:15; b=_x:9,_y:12; b=_x:8,_y:14; b=_x:18,_y:14; b=_x:20,_y:15; b=_x:22,_y:14; b=_x:12,_y:8; b=_x:12,_y:7; b=_x:12,_y:6; b=_x:14,_y:6; b=_x:13,_y:6; b=_x:15,_y:6; b=_x:16,_y:6; b=_x:17,_y:6; b=_x:18,_y:8; b=_x:15,_y:8; b=_x:17,_y:7; b=_x:14,_y:8; b=_x:17,_y:5; b=_x:18,_y:5; b=_x:19,_y:5; b=_x:19,_y:7; b=_x:20,_y:7; _root=health:1,backgroundd:2,zoomView:1>");
_root.charList = new Array("b", "d", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "t", "u", "v", "w", "x", "y", "z", "fire", "bar1", "bar2");
_root.monsterList = new Array("m", "n", "l", "j", "q");
this._visible = 0;
_root.musicon = true;
_root.soundon = true;
_root.dontLoad = false;
_root.warning = 0;
_root.healthTotal = 0;
_root.totalLevel = 0;
_root.zoomView = false;
_root.qual = 0;
_root._quality = "HIGH";
}
onClipEvent (enterFrame) {
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
percent = loaded / total;
percent = percent * 100;
if (percent >= 98) {
_root.play();
}
}
Frame 85
_root.lastScreen = "menu";
_root.bye();
_root._width = 565;
_root._height = 410;
_root._x = 0;
_root._y = 0;
stop();
if (_root.musicon) {
_root.ironGate = new Sound(_root.main);
_root.ironGate.attachSound("music4");
_root.ironGate.start(2, 99999);
_root.ironGate.setVolume(75);
}
Instance of Symbol 713 MovieClip [n] in Frame 85
onClipEvent (load) {
stop();
}
Instance of Symbol 915 MovieClip [q] in Frame 85
onClipEvent (load) {
stop();
}
Instance of Symbol 1851 MovieClip in Frame 85
onClipEvent (load) {
stop();
}
Instance of Symbol 1893 MovieClip in Frame 85
onClipEvent (load) {
stop();
}
Instance of Symbol 125 MovieClip [FComboBoxSymbol] "quality" in Frame 86
//component parameters
onClipEvent (initialize) {
editable = false;
labels = [];
labels[0] = "Best";
labels[1] = "High";
labels[2] = "Medium";
labels[3] = "Low";
data = [];
data[0] = 0;
data[1] = 1;
data[2] = 2;
data[3] = 3;
rowCount = 8;
changeHandler = "";
}
onClipEvent (load) {
this.setSelectedIndex(_root.qual);
}
onClipEvent (enterFrame) {
_root._quality = this.getSelectedItem().label;
_root.qual = this.getSelectedItem().data;
}
Instance of Symbol 114 MovieClip [FCheckBoxSymbol] "musicon" in Frame 86
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = true;
labelPlacement = "right";
changeHandler = "";
}
onClipEvent (load) {
this.setValue(_root.musicon);
}
onClipEvent (enterFrame) {
_root.musicon = this.getValue();
}
Instance of Symbol 114 MovieClip [FCheckBoxSymbol] "soundon" in Frame 86
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = true;
labelPlacement = "right";
changeHandler = "";
}
onClipEvent (load) {
this.setValue(_root.soundon);
}
onClipEvent (enterFrame) {
_root.soundon = this.getValue();
}
Frame 87
_root.bye();
_root.lastScreen = "instructions";
_root._width = 687.75;
_root._height = 494;
_root._x = 24.6;
_root._y = 7.9;
_root.lastScreen = "instructions";
_root.lastFrame = 1;
stop();
Frame 88
_root.lastFrame = 2;
Instance of Symbol 662 MovieClip [m] in Frame 88
onClipEvent (enterFrame) {
if (this._currentframe > 320) {
this.gotoAndPlay(1);
}
}
Instance of Symbol 713 MovieClip [n] in Frame 88
onClipEvent (enterFrame) {
if (this._currentframe > 320) {
this.gotoAndPlay(1);
}
}
Instance of Symbol 915 MovieClip [q] in Frame 88
onClipEvent (enterFrame) {
if (this._currentframe > 320) {
this.gotoAndPlay(1);
}
}
Instance of Symbol 576 MovieClip [l] in Frame 88
onClipEvent (enterFrame) {
if (this._currentframe > 320) {
this.gotoAndPlay(1);
}
}
Instance of Symbol 491 MovieClip [j] in Frame 88
onClipEvent (enterFrame) {
if (this._currentframe > 320) {
this.gotoAndPlay(1);
}
}
Instance of Symbol 964 MovieClip "healthheart" in Frame 88
onClipEvent (load) {
this.gotoAndStop(2);
}
Frame 89
_root.lastFrame = 3;
Frame 90
_root.lastFrame = 4;
Frame 91
stop();
_root.lastScreen = "level creator";
Frame 92
stop();
_root.lastScreen = "level creator";
Instance of Symbol 170 MovieClip "actions" in Frame 92
onClipEvent (load) {
if (_root.dontLoad == false) {
_root.dontPressYet = 0;
_root.attachMovie("cover", "cover", 411);
_root.zoomView = false;
_root.covered = false;
_root.skipWarp = 0;
_root.tabOpen = false;
_root.optionsOpen = false;
_root._width = 590.7;
_root._height = 439.75;
_root._x = 0;
_root._y = 12;
_root.dontDelete = false;
_root.creatorDistorted = true;
_root.attachMovie("optionsTab", "optionsTab", 88888);
_root.optionsTabHealth = 1;
_root.optionsTab._x = 546.4;
_root.optionsTab._y = 203.3;
alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123450489~!@#$%^&*()+=-?<>";
alphcolor = new Array("0xFF0000", "0x00FF00", "0x0000FF", "0xFFFF00", "0x00FFFF", "0xFF00FF", "0x9900FF", "0xFF7700", "0xFFFFFF");
_root.alphaCount = 0;
i = 0;
while (i < _root.charList.length) {
_root["mx" + _root.charList[i]] = 0;
i++;
}
i = 0;
while (i < _root.charList.length) {
_root["rx" + _root.charList[i]] = 0;
i++;
}
_root.total = 0;
i = 273;
while (i > 0) {
_root["kk" + i] = "v";
i--;
}
_root.location = 0;
_root.previousLocation = 0;
_root.carryOn = true;
_root.highCarryOn = true;
_root.highestCarryOn = true;
_root.objectName = "";
_root.totalAmount = 0;
_root.equalAmount = 0;
_root.totall = 0;
_root.i = 0;
once = 0;
} else {
_root.dontLoad = false;
once = 3;
_root.bbackground.gotoAndStop(_root.backgroundd);
}
this._visible = 0;
}
onClipEvent (enterFrame) {
_root.brickx = _root.b1._y;
if (once == 0) {
_root.one = _root.uno;
once++;
_root.editGo();
_root.bbackground.gotoAndStop(_root.backgroundd);
_root.optionsTabHealth = _root.health;
_root.optionsTab.bbackground_small.gotoAndStop(_root.backgroundd);
_root.optionsTab.heartTab.gotoAndStop(_root.health);
i = _root.mxd;
while (i > 0) {
_root.editLevelSprites("d", i);
i--;
}
_root.rxd = _root.mxd;
i = _root.mxg;
while (i > 0) {
_root.editLevelSprites("g", i);
i--;
}
_root.rxg = _root.mxg;
i = _root.mxt;
while (i > 0) {
_root.editLevelSprites("t", i);
i--;
}
_root.rxt = _root.mxt;
i = _root.mxb;
while (i > 0) {
_root.editLevelSprites("b", i);
i--;
}
_root.rxb = _root.mxb;
i = _root.mxh;
while (i > 0) {
_root.editLevelSprites("h", i);
i--;
}
_root.rxh = _root.mxh;
i = _root.mxf;
while (i > 0) {
_root.editLevelSprites("f", i);
i--;
}
_root.rxf = _root.mxf;
i = _root.mxi;
while (i > 0) {
_root.editLevelSprites("i", i);
i--;
}
_root.rxi = _root.mxi;
i = _root.mxr;
while (i > 0) {
_root.editLevelSprites("r", i);
i--;
}
_root.rxr = _root.mxr;
i = _root.mxw;
while (i > 0) {
_root.editLevelSprites("w", i);
_root.colorcode = _root.alphaCount;
while (_root.colorcode > 8) {
_root.colorcode = _root.colorcode - 9;
}
_root["w" + i].attachMovie("alpha", "alph" + (i + 101), _root.total++);
_root["w" + i]["alph" + (i + 101)]._x = _root[("aw" + (i + 101)) + "destination"]._x + 24;
_root["w" + i]["alph" + (i + 101)]._y = _root[("aw" + (i + 101)) + "destination"]._y + 12;
_root["w" + i].alph = alphabet.substr(_root.alphaCount, 1);
yColor = new Color(_root["w" + i]["alph" + (i + 101)].box);
yColor.setRGB(alphcolor[_root.colorcode]);
_root.attachMovie("wdestination", ("aw" + i) + "destination", _root.total++);
_root[("aw" + i) + "destination"]._x = _root["w" + i].xdestination;
_root[("aw" + i) + "destination"]._y = _root["w" + i].ydestination;
_root[("aw" + i) + "destination"].attachMovie("alpha", "alph" + i, _root.total++);
_root[("aw" + i) + "destination"]["alph" + i]._x = _root[("aw" + i) + "destination"]["alph" + i]._x + 24;
_root[("aw" + i) + "destination"]["alph" + i]._y = _root[("aw" + i) + "destination"]["alph" + i]._y + 12;
_root[("aw" + i) + "destination"].alph = alphabet.substr(_root.alphaCount++, 1);
myColor = new Color(_root[("aw" + i) + "destination"]["alph" + i].box);
myColor.setRGB(alphcolor[_root.colorcode]);
i--;
}
_root.rxw = _root.mxw;
i = _root.mxx;
while (i > 0) {
_root.editLevelSprites("x", i);
_root.colorcode = _root.alphaCount;
while (_root.colorcode > 8) {
_root.colorcode = _root.colorcode - 9;
}
_root["x" + i].attachMovie("clpha", "clph" + (i + 101), _root.total++);
_root["x" + i]["clph" + (i + 101)]._x = _root[("cw" + (i + 101)) + "destination"]._x + 24;
_root["x" + i]["clph" + (i + 101)]._y = _root[("cw" + (i + 101)) + "destination"]._y + 12;
_root["x" + i].alph = alphabet.substr(_root.alphaCount, 1);
yColor = new Color(_root["x" + i]["clph" + (i + 101)].box);
yColor.setRGB(alphcolor[_root.colorcode]);
_root.attachMovie("xdestination", ("cw" + i) + "destination", _root.total++);
_root[("cw" + i) + "destination"]._x = _root["x" + i].xdestination;
_root[("cw" + i) + "destination"]._y = _root["x" + i].ydestination;
_root[("cw" + i) + "destination"].attachMovie("clpha", "clph" + i, _root.total++);
_root[("cw" + i) + "destination"]["clph" + i]._x = _root[("cw" + i) + "destination"]["clph" + i]._x + 24;
_root[("cw" + i) + "destination"]["clph" + i]._y = _root[("cw" + i) + "destination"]["clph" + i]._y + 12;
_root[("cw" + i) + "destination"].alph = alphabet.substr(_root.alphaCount++, 1);
myColor = new Color(_root[("cw" + i) + "destination"]["clph" + i].box);
myColor.setRGB(alphcolor[_root.colorcode]);
i--;
}
_root.rxx = _root.mxx;
i = _root.mxy;
while (i > 0) {
_root.editLevelSprites("y", i);
_root.colorcode = _root.alphaCount;
while (_root.colorcode > 8) {
_root.colorcode = _root.colorcode - 9;
}
_root[("y" + i) + "position"] = _root["y" + i].x;
_root["y" + i].attachMovie("elpha", "elph" + (i + 101), _root.total++);
_root["y" + i]["elph" + (i + 101)]._x = _root[("ew" + (i + 101)) + "destination"]._x + 24;
_root["y" + i]["elph" + (i + 101)]._y = _root[("ew" + (i + 101)) + "destination"]._y + 12;
_root["y" + i].alph = alphabet.substr(_root.alphaCount, 1);
yColor = new Color(_root["y" + i]["elph" + (i + 101)].box);
yColor.setRGB(alphcolor[_root.colorcode]);
_root.attachMovie("ydestination", ("ew" + i) + "destination", _root.total++);
_root[("ew" + i) + "destination"]._x = _root["y" + i].xdestination;
_root[("ew" + i) + "destination"]._y = _root["y" + i].ydestination;
_root[("ew" + i) + "destination"].attachMovie("elpha", "elph" + i, _root.total++);
_root[("ew" + i) + "destination"]["elph" + i]._x = _root[("ew" + i) + "destination"]["elph" + i]._x + 24;
_root[("ew" + i) + "destination"]["elph" + i]._y = _root[("ew" + i) + "destination"]["elph" + i]._y + 12;
_root[("ew" + i) + "destination"].alph = alphabet.substr(_root.alphaCount++, 1);
myColor = new Color(_root[("ew" + i) + "destination"]["elph" + i].box);
myColor.setRGB(alphcolor[_root.colorcode]);
i--;
}
_root.rxy = _root.mxy;
i = _root.mxk;
while (i > 0) {
_root.editLevelSprites("k", i);
if (_root["k" + i].ccolor == "blue") {
_root["k" + i].keyColor = new Color(_root["k" + i].kcolor);
_root["k" + i].keyColor.setRGB("0x0000FF");
}
if (_root["k" + i].ccolor == "green") {
_root["k" + i].keyColor = new Color(_root["k" + i].kcolor);
_root["k" + i].keyColor.setRGB("0x00FF00");
}
if (_root["k" + i].ccolor == "yellow") {
_root["k" + i].keyColor = new Color(_root["k" + i].kcolor);
_root["k" + i].keyColor.setRGB("0xFFFF00");
}
if (_root["k" + i].ccolor == "red") {
_root["k" + i].keyColor = new Color(_root["k" + i].kcolor);
_root["k" + i].keyColor.setRGB("0xFF0000");
}
i--;
}
_root.rxk = _root.mxk;
i = _root.mxm;
while (i > 0) {
_root.editLevelSprites("m", i);
i--;
}
_root.rxm = _root.mxm;
i = _root.mxn;
while (i > 0) {
_root.editLevelSprites("n", i);
i--;
}
_root.rxn = _root.mxn;
i = _root.mxl;
while (i > 0) {
_root.editLevelSprites("l", i);
i--;
}
_root.rxl = _root.mxl;
i = _root.mxj;
while (i > 0) {
_root.editLevelSprites("j", i);
i--;
}
_root.rxj = _root.mxj;
i = _root.mxq;
while (i > 0) {
_root.editLevelSprites("q", i);
i--;
}
_root.rxq = _root.mxq;
i = _root.mxu;
while (i > 0) {
_root.editLevelSprites("u", i);
_root["u" + i].rotate._rotation = _root["u" + i].rrotate;
_root["u" + i].attachMovie("lock", "lock", 1);
_root["u" + i].lock._x = 0;
_root["u" + i].lock._y = -2.6;
_root[(("u" + _root["u" + i]._x) + "x") + _root["u" + i]._y] = i;
if (_root["u" + i].ccolor == "blue") {
_root["u" + i].keyColor1 = new Color(_root["u" + i].rotate.gate.gatee.kcolor);
_root["u" + i].keyColor1.setRGB("0x0000FF");
_root["u" + i].keyColor2 = new Color(_root["u" + i].lock.lock.kcolor);
_root["u" + i].keyColor2.setRGB("0x0000FF");
_root["u" + i].keyColor3 = new Color(_root["u" + i].lock.key.kcolor);
_root["u" + i].keyColor3.setRGB("0x0000FF");
}
if (_root["u" + i].ccolor == "green") {
_root["u" + i].keyColor1 = new Color(_root["u" + i].rotate.gate.gatee.kcolor);
_root["u" + i].keyColor1.setRGB("0x00FF00");
_root["u" + i].keyColor2 = new Color(_root["u" + i].lock.lock.kcolor);
_root["u" + i].keyColor2.setRGB("0x00FF00");
_root["u" + i].keyColor3 = new Color(_root["u" + i].lock.key.kcolor);
_root["u" + i].keyColor3.setRGB("0x00FF00");
}
if (_root["u" + i].ccolor == "yellow") {
_root["u" + i].keyColor1 = new Color(_root["u" + i].rotate.gate.gatee.kcolor);
_root["u" + i].keyColor1.setRGB("0xFFFF00");
_root["u" + i].keyColor2 = new Color(_root["u" + i].lock.lock.kcolor);
_root["u" + i].keyColor2.setRGB("0xFFFF00");
_root["u" + i].keyColor3 = new Color(_root["u" + i].lock.key.kcolor);
_root["u" + i].keyColor3.setRGB("0xFFFF00");
}
if (_root["u" + i].ccolor == "red") {
_root["u" + i].keyColor1 = new Color(_root["u" + i].rotate.gate.gatee.kcolor);
_root["u" + i].keyColor1.setRGB("0xFF0000");
_root["u" + i].keyColor2 = new Color(_root["u" + i].lock.lock.kcolor);
_root["u" + i].keyColor2.setRGB("0xFF0000");
_root["u" + i].keyColor3 = new Color(_root["u" + i].lock.key.kcolor);
_root["u" + i].keyColor3.setRGB("0xFF0000");
}
_root.rxu = _root.mxu;
i--;
}
i = _root.mxv;
while (i > 0) {
_root.editLevelSprites("v", i);
i--;
}
_root.rxv = _root.mxv;
i = _root.mxo;
while (i > 0) {
_root.editLevelSprites("o", i);
_root["o" + i]._rotation = _root["o" + i].rrotate;
i--;
}
_root.rxo = _root.mxo;
i = _root.mxp;
while (i > 0) {
_root.editLevelSprites("p", i);
i--;
}
_root.rxp = _root.mxp;
i = _root.mxz;
while (i > 0) {
_root.editLevelSprites("z", i);
i--;
}
_root.rxz = _root.mxz;
once = 3;
} else {
once = 3;
}
i = 0;
while (i < _root.charList.length) {
if (_root["rx" + _root.charList[i]] <= 0) {
_root["mx" + _root.charList[i]] = 0;
}
i++;
}
_root[_root.drag]._x = _root._xmouse;
_root[_root.drag]._y = _root._ymouse;
_root.dragg = String(_root.drag);
_root.dragg = _root.dragg.substr(0, 1);
if (_root.mxz > 1) {
_root.attachMovie("warn1", "warning", _root.total++);
_root[_root.drag].removeMovieClip();
_root.drag = null;
_root.mxz = 1;
_root.rxz = 1;
}
if (_root.bomb._currentframe == 65) {
_root.bye();
i = 0;
while (i < _root.charList.length) {
_root["mx" + _root.charList[i]] = 0;
i++;
}
i = 0;
while (i < _root.charList.length) {
_root["rx" + _root.charList[i]] = 0;
i++;
}
_root.total = 0;
i = 273;
while (i > 0) {
_root["kk" + i] = "v";
i--;
}
}
}
onClipEvent (mouseDown) {
if (_root.dontPressYet > 0) {
_root.dontPressYet--;
}
if (_root.covered == false) {
if (_root.drag == "bomb") {
_root.bomb.gotoAndPlay("explode");
_root.drag = null;
_root.last = null;
}
if (_root.drag == null) {
if ((((_root._xmouse > 41) and (_root._ymouse > 50)) and (_root.tabOpen == false)) and (_root.optionsOpen == false)) {
_root.attachMovie("hand", "shand", 1999);
_root.shand._visible = 0;
_root.drag = "shand";
}
}
if ((_root.last == "k") and (_root.drag != null)) {
_root.attachMovie("key", "key", 1000000);
_root.last = null;
_root.covered = true;
_root.dontPressYet = 2;
}
if ((_root.last == "o") and (_root.drag != null)) {
_root.attachMovie("gate", "gate", 1000000);
_root.last = null;
_root.covered = true;
_root.dontPressYet = 2;
}
if ((_root.last == "u") and (_root.drag != null)) {
_root[_root.drag].attachMovie("lock", "lock", 1);
_root[_root.drag].lock._x = 0;
_root[_root.drag].lock._y = -2.6;
_root.attachMovie("lockedGate", "lockedGate", 1000000);
_root.last = null;
_root.covered = true;
_root.dontPressYet = 2;
}
snappedX = int((_root[_root.drag]._x + 12) / 24) * 24;
snappedY = int((_root[_root.drag]._y + 12) / 24) * 24;
if ((((snappedX < 540) and (snappedX > 36)) and (snappedY > 54)) and (snappedY < 369)) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("click");
this.ssound.start();
}
_root[_root.drag]._x = int((_root[_root.drag]._x + 12) / 24) * 24;
_root[_root.drag]._y = int((_root[_root.drag]._y + 12) / 24) * 24;
_root[_root.drag].x = _root[_root.drag]._x;
_root[_root.drag].y = _root[_root.drag]._y;
while (_root[_root.drag].y > 0) {
_root[_root.drag].x = _root[_root.drag].x + 504;
_root[_root.drag].y = _root[_root.drag].y - 24;
}
s = new String([_root.drag]);
_root[_root.drag].x = _root[_root.drag].x / 24;
_root[_root.drag].x = _root[_root.drag].x + 1;
if ((_root["kk" + _root[_root.drag].x] != "v") or (_root.drag.substr(0, 2) == "aw")) {
if (_root.drag == "srase") {
_root["rx" + _root.last]--;
_root.last = null;
}
i = _root["mx" + _root["kk" + _root[_root.drag].x]];
while (i > 0) {
if (((_root[_root["kk" + _root[_root.drag].x] + i]._x == _root[_root.drag]._x) and (_root[_root["kk" + _root[_root.drag].x] + i]._y == _root[_root.drag]._y)) and (_root[_root["kk" + _root[_root.drag].x] + i]._name != _root[_root.drag]._name)) {
if (_root.drag == "shand") {
whichK = _root[_root.drag].x;
_root.shand.removeMovieClip();
_root.drag = _root[_root["kk" + whichK] + i]._name;
if (_root["kk" + whichK] == "w") {
_root.skipWarp = 2;
}
if (_root["kk" + whichK] == "x") {
_root.skipWarp = 2;
}
if (_root["kk" + whichK] == "y") {
_root.skipWarp = 2;
}
_root.dontDelete = true;
} else {
q = _root["kk" + _root[_root.drag].x];
_root[_root["kk" + _root[_root.drag].x] + i].removeMovieClip();
_root["rx" + q]--;
}
}
i--;
}
} else if (_root.drag == "shand") {
_root.drag = null;
}
_root["kk" + _root[_root.drag].x] = s.slice(0, 1);
_root.dragg = String(_root.drag);
_root.dragg = _root.dragg.substr(0, 1);
if (((_root.dragg != "v") or (_root.drag == "srase")) or (_root.drag == "bomb")) {
if (_root.dontDelete == false) {
_root.drag = null;
}
}
if (_root.skipWarp == 0) {
if (_root.dontDelete == false) {
if (_root.dragg == "a") {
_root[("x" + _root.drag.substr(2, 1)) + "destination"] = _root[_root.drag]._x;
_root[("y" + _root.drag.substr(2, 1)) + "destination"] = _root[_root.drag]._y;
_root.drag = null;
}
if (_root.dragg == "w") {
colorcode = _root.alphaCount;
while (colorcode > 8) {
colorcode = colorcode - 9;
}
_root[("w" + _root.mxw) + "position"] = _root["w" + _root.mxw].x;
_root["w" + _root.mxw].attachMovie("alpha", "alph" + (_root.mxw + 101), _root.total++);
_root["w" + _root.mxw]["alph" + (_root.mxw + 101)]._x = _root[("aw" + (_root.mxw + 101)) + "destination"]._x + 24;
_root["w" + _root.mxw]["alph" + (_root.mxw + 101)]._y = _root[("aw" + (_root.mxw + 101)) + "destination"]._y + 12;
_root["w" + _root.mxw].alph = alphabet.substr(_root.alphaCount, 1);
yColor = new Color(_root["w" + _root.mxw]["alph" + (_root.mxw + 101)].box);
yColor.setRGB(alphcolor[colorcode]);
_root.drag = String(("aw" + _root.mxw) + "destination");
_root.attachMovie("wdestination", ("aw" + _root.mxw) + "destination", _root.total++);
_root[("aw" + _root.mxw) + "destination"].attachMovie("alpha", "alph" + _root.mxw, _root.total++);
_root[("aw" + _root.mxw) + "destination"]["alph" + _root.mxw]._x = _root[("aw" + _root.mxw) + "destination"]._x + 24;
_root[("aw" + _root.mxw) + "destination"]["alph" + _root.mxw]._y = _root[("aw" + _root.mxw) + "destination"]._y + 12;
_root[("aw" + _root.mxw) + "destination"].alph = alphabet.substr(_root.alphaCount++, 1);
myColor = new Color(_root[("aw" + _root.mxw) + "destination"]["alph" + _root.mxw].box);
myColor.setRGB(alphcolor[colorcode]);
}
if (_root.dragg == "c") {
_root[("x" + _root.drag.substr(2, 1)) + "destination"] = _root[_root.drag]._x;
_root[("y" + _root.drag.substr(2, 1)) + "destination"] = _root[_root.drag]._y;
_root.drag = null;
}
if (_root.dragg == "x") {
colorcode = _root.alphaCount;
while (colorcode > 8) {
colorcode = colorcode - 9;
}
_root[("x" + _root.mxx) + "position"] = _root["x" + _root.mxx].x;
_root["x" + _root.mxx].attachMovie("clpha", "clph" + (_root.mxx + 101), _root.total++);
_root["x" + _root.mxx]["clph" + (_root.mxx + 101)]._x = _root[("cw" + (_root.mxx + 101)) + "destination"]._x + 24;
_root["x" + _root.mxx]["clph" + (_root.mxx + 101)]._y = _root[("cw" + (_root.mxx + 101)) + "destination"]._y + 12;
_root["x" + _root.mxx].alph = alphabet.substr(_root.alphaCount, 1);
yColor = new Color(_root["x" + _root.mxx]["clph" + (_root.mxx + 101)].box);
yColor.setRGB(alphcolor[colorcode]);
_root.drag = String(("cw" + _root.mxx) + "destination");
_root.attachMovie("xdestination", ("cw" + _root.mxx) + "destination", _root.total++);
_root[("cw" + _root.mxx) + "destination"].attachMovie("clpha", "clph" + _root.mxx, _root.total++);
_root[("cw" + _root.mxx) + "destination"]["clph" + _root.mxx]._x = _root[("cw" + _root.mxx) + "destination"]._x + 24;
_root[("cw" + _root.mxx) + "destination"]["clph" + _root.mxx]._y = _root[("cw" + _root.mxx) + "destination"]._y + 12;
_root[("cw" + _root.mxx) + "destination"].alph = alphabet.substr(_root.alphaCount++, 1);
myColor = new Color(_root[("cw" + _root.mxx) + "destination"]["clph" + _root.mxx].box);
myColor.setRGB(alphcolor[colorcode]);
}
if (_root.dragg == "e") {
_root[("x" + _root.drag.substr(2, 1)) + "destination"] = _root[_root.drag]._x;
_root[("y" + _root.drag.substr(2, 1)) + "destination"] = _root[_root.drag]._y;
_root.drag = null;
}
if (_root.dragg == "y") {
colorcode = _root.alphaCount;
while (colorcode > 8) {
colorcode = colorcode - 9;
}
_root[("y" + _root.mxy) + "position"] = _root["y" + _root.mxy].x;
_root["y" + _root.mxy].attachMovie("elpha", "elph" + (_root.mxy + 101), _root.total++);
_root["y" + _root.mxy]["elph" + (_root.mxy + 101)]._x = _root[("ew" + (_root.mxy + 101)) + "destination"]._x + 24;
_root["y" + _root.mxy]["elph" + (_root.mxy + 101)]._y = _root[("ew" + (_root.mxy + 101)) + "destination"]._y + 12;
_root["y" + _root.mxy].alph = alphabet.substr(_root.alphaCount, 1);
yColor = new Color(_root["y" + _root.mxy]["elph" + (_root.mxy + 101)].box);
yColor.setRGB(alphcolor[colorcode]);
_root.drag = String(("ew" + _root.mxy) + "destination");
_root.attachMovie("ydestination", ("ew" + _root.mxy) + "destination", _root.total++);
_root[("ew" + _root.mxy) + "destination"].attachMovie("elpha", "elph" + _root.mxy, _root.total++);
_root[("ew" + _root.mxy) + "destination"]["elph" + _root.mxy]._x = _root[("ew" + _root.mxy) + "destination"]._x + 24;
_root[("ew" + _root.mxy) + "destination"]["elph" + _root.mxy]._y = _root[("ew" + _root.mxy) + "destination"]._y + 12;
_root[("ew" + _root.mxy) + "destination"].alph = alphabet.substr(_root.alphaCount++, 1);
myColor = new Color(_root[("ew" + _root.mxy) + "destination"]["elph" + _root.mxy].box);
myColor.setRGB(alphcolor[colorcode]);
}
}
} else {
_root.skipWarp--;
}
_root.dontDelete = false;
_root.srase.removeMovieClip();
_root.shand.removeMovieClip();
_root.dragg = String(_root.drag);
_root.dragg = _root.dragg.substr(0, 1);
}
}
}
onClipEvent (mouseUp) {
_root.tabOpen = false;
_root.monsters.removeMovieClip();
_root.warp.removeMovieClip();
_root.gates.removeMovieClip();
_root.powerups.removeMovieClip();
if (_root.dontPressYet > 0) {
_root.dontPressYet--;
}
}
onClipEvent (keyDown) {
if (Key.isDown(8)) {
i = _root[_root.drag]._name.substr(0, 1);
_root["rx" + i]--;
_root[_root.drag].removeMovieClip();
_root.drag = null;
_root.skipWarp = 0;
}
if ((_root.drag == null) and Key.isDown(13)) {
if (_root.last != "z") {
_root.edit(_root.last);
}
}
}
Frame 93
_root.lastScreen = "in between";
_root._width = 565;
_root._height = 410;
_root._x = 0;
_root._y = 0;
_root.bye();
Instance of Symbol 170 MovieClip in Frame 93
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
_root.lastFrame = 1;
}
Frame 94
_root.bye();
_root.lastScreen = "in between";
_root._width = 565;
_root._height = 410;
_root._x = 0;
_root._y = 0;
Frame 96
_root.lastScreen = "real";
stop();
Instance of Symbol 170 MovieClip "actions" in Frame 96
onClipEvent (load) {
_root.zoomView = false;
this._visible = 0;
once = 0;
if (_root.dontLoad == false) {
_root.pause = 1;
once = 0;
} else {
_root.dontLoad = false;
if (_root.zoomView != true) {
_root.attachMovie("screen", "screen", -1);
}
_root.screen.gotoAndStop("gameScreen");
once = 42;
_root.bbackground.gotoAndStop(_root.backgroundd);
}
}
onClipEvent (enterFrame) {
if (once == 0) {
once++;
if (((_root.level != "custom") and (_root.level != "custom2")) and (_root.level != null)) {
_root.one = _root.Level_Library[_root.level];
realLevelNumber = Number(_root.level) + 1;
_root.levelName = "Level " + realLevelNumber;
} else if (_root.level == "custom") {
_root.one = _root.uno;
_root.levelName = "Custom";
} else if (_root.level == "custom2") {
_root.llloadCustomm();
_root.one = _root.loadContent;
_root.levelName = "Custom";
} else if (_root.level == null) {
_root.level = 0;
_root.one = _root.Level_Library[_root.level];
realLevelNumber = Number(_root.level) + 1;
_root.levelName = "Level " + realLevelNumber;
}
_root.itemsUsed = 0;
_root.monstersGotten = 0;
_root.lifeLosses = 0;
_root.movesMade = 0;
_root.timeElapsed = 0;
_root.zoomView = false;
_root.location = 0;
_root.maxz = 0;
_root.previousLocation = 0;
_root.carryOn = true;
_root.highCarryOn = true;
_root.highestCarryOn = true;
_root.i = 0;
_root.objectName = "";
_root.totalAmount = 0;
_root.equalAmount = 0;
_root.depthTotal = 0;
_root.warping = false;
_root.speedboosts = 0;
_root.speedtime = 0;
speedReady = 0;
_root.speedCountdown = 0;
_root.shieldboosts = 0;
_root.shieldtime = 0;
_root.shieldCountdown = 0;
_root.invincible = 0;
_root.gooboosts = 0;
_root.gooDepths = new Array();
_root.ghostboosts = 0;
_root.ghosttime = 0;
_root.ghostCountdown = 0;
_root.walkThrough = 0;
_root.keyCountBlue = 0;
_root.keyCountGreen = 0;
_root.keyCountYellow = 0;
_root.keyCountRed = 0;
i = 0;
while (i < _root.charList.length) {
_root["max" + _root.charList[i]] = 0;
i++;
}
_root.maxfire = 0;
_root.maxz = 0;
_root.uNormal = 3;
_root.uFast = 6;
_root.uWalk = _root.uNormal;
_root.getAwayTime = 120;
_root.monsterBaseSpeed = 1.5;
_root.fireSpeed = 4.8;
_root.M = 0;
_root.speed = null;
_root.go();
if (_root.zoomView != true) {
_root.attachMovie("screen", "screen", -1);
_root.attachMovie("put", "put", 456);
_root.realDistorted = true;
_root._width = _root._width * 0.95;
_root._height = _root._height * 0.95;
_root._x = _root._x + 24.6;
_root._y = _root._y + 7.9;
}
if (_root.zoomView == true) {
_root._width = _root._width * 2;
_root._height = _root._height * 2;
_root.attachMovie("screen", "screen", 1747);
_root.screen._width = _root.screen._width / 2;
_root.screen._height = _root.screen._height / 2;
_root.attachMovie("put", "put", 456);
_root.put._width = _root.put._width / 2;
_root.put._height = _root.put._height / 2;
}
_root.bbackground.gotoAndStop(_root.backgroundd);
i = _root.maxo;
while (i > 0) {
_root["o" + i]._width = 24;
_root["o" + i]._height = 24;
_root["o" + i]._x = int(_root["o" + i]._x / 24) * 24;
_root["o" + i]._y = int(_root["o" + i]._y / 24) * 24;
_root["o" + i]._rotation = _root["o" + i].rrotate;
_root["o" + i]._name = ["b" + (i + _root.maxb)];
i--;
}
_root.mino = _root.maxb;
_root.maxb = _root.maxb + _root.maxo;
_root.maxo = _root.maxb;
i = _root.maxm;
while (i > 0) {
_root["m" + i].supor = 1;
i--;
}
i = _root.maxn;
while (i > 0) {
_root["n" + i].supor = 2;
i--;
}
i = _root.maxj;
while (i > 0) {
_root["j" + i].supor = 3;
i--;
}
i = _root.maxl;
while (i > 0) {
_root["l" + i].supor = 2;
_root["l" + i].ghost = 1;
i--;
}
i = _root.maxq;
while (i > 0) {
_root["q" + i].supor = 2;
i--;
}
_root.M = (((_root.maxm + _root.maxn) + _root.maxj) + _root.maxl) + _root.maxq;
this._visible = 0;
i = _root.maxt;
while (i > 0) {
_root["t" + i]._width = 52.2;
_root["t" + i]._height = 34.5;
_root["t" + i]._x = int(_root["t" + i]._x / 24) * 24;
_root["t" + i]._y = int(_root["t" + i]._y / 24) * 24;
_root["t" + i].swapDepths(_root.depthTotal++);
_root[(("t" + _root["t" + i]._x) + "x") + _root["t" + i]._y] = i;
i--;
}
i = _root.maxb;
while (i > 0) {
_root["b" + i]._width = 24;
_root["b" + i]._height = 24;
_root["b" + i]._x = int(_root["b" + i]._x / 24) * 24;
_root["b" + i]._y = int(_root["b" + i]._y / 24) * 24;
_root["b" + i].swapDepths(_root.depthTotal++);
_root["b" + i]._rotation = _root["b" + i].rrotate;
_root[(("b" + _root["b" + i]._x) + "x") + _root["b" + i]._y] = i;
i--;
}
i = _root.maxd;
while (i > 0) {
_root["d" + i]._width = 24;
_root["d" + i]._height = 33;
_root["d" + i]._x = int(_root["d" + i]._x / 24) * 24;
_root["d" + i]._y = int(_root["d" + i]._y / 24) * 24;
_root["d" + i].swapDepths(_root.depthTotal++);
_root[(("d" + _root["d" + i]._x) + "x") + _root["d" + i]._y] = i;
i--;
}
i = _root.maxg;
while (i > 0) {
_root["g" + i]._width = 24;
_root["g" + i]._height = 24;
_root["g" + i]._x = int(_root["g" + i]._x / 24) * 24;
_root["g" + i]._y = int(_root["g" + i]._y / 24) * 24;
_root["g" + i].swapDepths(_root.depthTotal++);
_root[(("g" + _root["g" + i]._x) + "x") + _root["g" + i]._y] = i;
i--;
}
i = _root.maxh;
while (i > 0) {
_root["h" + i]._width = 24;
_root["h" + i]._height = 24;
_root["h" + i]._x = int(_root["h" + i]._x / 24) * 24;
_root["h" + i]._y = int(_root["h" + i]._y / 24) * 24;
_root["h" + i].swapDepths(_root.depthTotal++);
_root[(("h" + _root["h" + i]._x) + "x") + _root["h" + i]._y] = i;
i--;
}
i = _root.maxf;
while (i > 0) {
_root["f" + i]._width = 24;
_root["f" + i]._height = 24;
_root["f" + i]._x = int(_root["f" + i]._x / 24) * 24;
_root["f" + i]._y = int(_root["f" + i]._y / 24) * 24;
_root["f" + i].swapDepths(_root.depthTotal++);
_root.gooDepths.push(_root.depthTotal++);
_root[(("f" + _root["f" + i]._x) + "x") + _root["f" + i]._y] = i;
i--;
}
i = _root.maxi;
while (i > 0) {
_root["i" + i]._width = 24;
_root["i" + i]._height = 24;
_root["i" + i]._x = int(_root["i" + i]._x / 24) * 24;
_root["i" + i]._y = int(_root["i" + i]._y / 24) * 24;
_root["i" + i].swapDepths(_root.depthTotal++);
_root[(("i" + _root["i" + i]._x) + "x") + _root["i" + i]._y] = i;
i--;
}
i = _root.maxr;
while (i > 0) {
_root["r" + i]._width = 24;
_root["r" + i]._height = 24;
_root["r" + i]._x = int(_root["r" + i]._x / 24) * 24;
_root["r" + i]._y = int(_root["r" + i]._y / 24) * 24;
_root["r" + i].swapDepths(_root.depthTotal++);
_root[(("r" + _root["r" + i]._x) + "x") + _root["r" + i]._y] = i;
i--;
}
i = _root.maxw;
while (i > 0) {
_root["w" + i]._width = 24;
_root["w" + i]._height = 24;
_root["w" + i]._x = int(_root["w" + i]._x / 24) * 24;
_root["w" + i]._y = int(_root["w" + i]._y / 24) * 24;
_root["w" + i].swapDepths(_root.depthTotal++);
_root[(("w" + _root["w" + i]._x) + "x") + _root["w" + i]._y] = i;
i--;
}
i = _root.maxx;
while (i > 0) {
_root["x" + i]._width = 24;
_root["x" + i]._height = 24;
_root["x" + i]._x = int(_root["x" + i]._x / 24) * 24;
_root["x" + i]._y = int(_root["x" + i]._y / 24) * 24;
_root["x" + i].swapDepths(_root.depthTotal++);
_root[(("x" + _root["x" + i]._x) + "x") + _root["x" + i]._y] = i;
i--;
}
i = _root.maxy;
while (i > 0) {
_root["y" + i]._width = 24;
_root["y" + i]._height = 24;
_root["y" + i]._x = int(_root["y" + i]._x / 24) * 24;
_root["y" + i]._y = int(_root["y" + i]._y / 24) * 24;
_root["y" + i].swapDepths(_root.depthTotal++);
_root[(("y" + _root["y" + i]._x) + "x") + _root["y" + i]._y] = i;
i--;
}
i = _root.maxk;
while (i > 0) {
_root["k" + i]._width = 24;
_root["k" + i]._height = 24;
_root["k" + i]._x = int(_root["k" + i]._x / 24) * 24;
_root["k" + i]._y = int(_root["k" + i]._y / 24) * 24;
_root["k" + i].swapDepths(_root.depthTotal++);
_root[(("k" + _root["k" + i]._x) + "x") + _root["k" + i]._y] = i;
if (_root["k" + i].ccolor == "blue") {
_root["k" + i].keyColor = new Color(_root["k" + i].kcolor);
_root["k" + i].keyColor.setRGB("0x0000FF");
}
if (_root["k" + i].ccolor == "green") {
_root["k" + i].keyColor = new Color(_root["k" + i].kcolor);
_root["k" + i].keyColor.setRGB("0x00FF00");
}
if (_root["k" + i].ccolor == "yellow") {
_root["k" + i].keyColor = new Color(_root["k" + i].kcolor);
_root["k" + i].keyColor.setRGB("0xFFFF00");
}
if (_root["k" + i].ccolor == "red") {
_root["k" + i].keyColor = new Color(_root["k" + i].kcolor);
_root["k" + i].keyColor.setRGB("0xFF0000");
}
i--;
}
i = _root.maxm;
while (i > 0) {
_root["m" + i]._width = 24;
_root["m" + i]._height = 24;
_root["m" + i]._x = int(_root["m" + i]._x / 24) * 24;
_root["m" + i]._y = int(_root["m" + i]._y / 24) * 24;
_root["m" + i].x = _root["m" + i]._x;
_root["m" + i].y = _root["m" + i]._y;
_root["m" + i].exists = 1;
_root[("m" + i) + "exists"] = 1;
_root["m" + i].getAwayTime = 0;
_root["m" + i].stop();
_root["m" + i].turn = 0;
_root["m" + i].swapDepths(_root.depthTotal++);
i--;
}
i = _root.maxn;
while (i > 0) {
_root["n" + i]._width = 24;
_root["n" + i]._height = 24;
_root["n" + i]._x = int(_root["n" + i]._x / 24) * 24;
_root["n" + i]._y = int(_root["n" + i]._y / 24) * 24;
_root["n" + i].x = _root["n" + i]._x;
_root["n" + i].y = _root["n" + i]._y;
_root["n" + i].exists = 1;
_root[("n" + i) + "exists"] = 1;
_root["n" + i].getAwayTime = 0;
_root["n" + i].stop();
_root["n" + i].turn = 0;
_root["n" + i].swapDepths(_root.depthTotal++);
_root["n" + i].attachMovie("horns", "horn", _root.depthTotal++);
i--;
}
i = _root.maxl;
while (i > 0) {
_root["l" + i]._width = 24;
_root["l" + i]._height = 24;
_root["l" + i]._x = int(_root["l" + i]._x / 24) * 24;
_root["l" + i]._y = int(_root["l" + i]._y / 24) * 24;
_root["l" + i].x = _root["l" + i]._x;
_root["l" + i].y = _root["l" + i]._y;
_root["l" + i].exists = 1;
_root[("l" + i) + "exists"] = 1;
_root["l" + i].getAwayTime = 0;
_root["l" + i].stop();
_root["l" + i].turn = 0;
_root["l" + i].swapDepths(_root.depthTotal++);
i--;
}
i = _root.maxj;
while (i > 0) {
_root["j" + i]._width = 24;
_root["j" + i]._height = 24;
_root["j" + i]._x = int(_root["j" + i]._x / 24) * 24;
_root["j" + i]._y = int(_root["j" + i]._y / 24) * 24;
_root["j" + i].x = _root["j" + i]._x;
_root["j" + i].y = _root["j" + i]._y;
_root["j" + i].exists = 1;
_root[("j" + i) + "exists"] = 1;
_root["j" + i].getAwayTime = 0;
_root["j" + i].stop();
_root["j" + i].turn = 0;
_root["j" + i].swapDepths(_root.depthTotal++);
i--;
}
i = _root.maxq;
while (i > 0) {
_root["q" + i]._width = 24;
_root["q" + i]._height = 24;
_root["q" + i]._x = int(_root["q" + i]._x / 24) * 24;
_root["q" + i]._y = int(_root["q" + i]._y / 24) * 24;
_root["q" + i].x = _root["q" + i]._x;
_root["q" + i].y = _root["q" + i]._y;
_root["q" + i].exists = 1;
_root[("q" + i) + "exists"] = 1;
_root["q" + i].getAwayTime = 0;
_root["q" + i].fireYet = 0;
_root["q" + i].stop();
_root["q" + i].turn = 0;
_root["q" + i].swapDepths(_root.depthTotal++);
i--;
}
_root.z1._name = "main";
_root.main.swapDepths(_root.depthTotal++);
i = _root.maxu;
while (i > 0) {
_root["u" + i]._width = 24;
_root["u" + i]._height = 24;
_root["u" + i].swapDepths(_root.depthTotal++);
_root["u" + i].rotate._rotation = _root["u" + i].rrotate;
_root["u" + i].attachMovie("lock", "lock", 1);
_root["u" + i].lock._x = 0;
_root["u" + i].lock._y = -2.6;
_root["u" + i]._x = int(_root["u" + i]._x / 24) * 24;
_root["u" + i]._y = int(_root["u" + i]._y / 24) * 24;
_root[(("u" + _root["u" + i]._x) + "x") + _root["u" + i]._y] = i;
if (_root["u" + i].ccolor == "blue") {
_root["u" + i].keyColor1 = new Color(_root["u" + i].rotate.gate.gatee.kcolor);
_root["u" + i].keyColor1.setRGB("0x0000FF");
_root["u" + i].keyColor2 = new Color(_root["u" + i].lock.lock.kcolor);
_root["u" + i].keyColor2.setRGB("0x0000FF");
_root["u" + i].keyColor3 = new Color(_root["u" + i].lock.key.kcolor);
_root["u" + i].keyColor3.setRGB("0x0000FF");
}
if (_root["u" + i].ccolor == "green") {
_root["u" + i].keyColor1 = new Color(_root["u" + i].rotate.gate.gatee.kcolor);
_root["u" + i].keyColor1.setRGB("0x00FF00");
_root["u" + i].keyColor2 = new Color(_root["u" + i].lock.lock.kcolor);
_root["u" + i].keyColor2.setRGB("0x00FF00");
_root["u" + i].keyColor3 = new Color(_root["u" + i].lock.key.kcolor);
_root["u" + i].keyColor3.setRGB("0x00FF00");
}
if (_root["u" + i].ccolor == "yellow") {
_root["u" + i].keyColor1 = new Color(_root["u" + i].rotate.gate.gatee.kcolor);
_root["u" + i].keyColor1.setRGB("0xFFFF00");
_root["u" + i].keyColor2 = new Color(_root["u" + i].lock.lock.kcolor);
_root["u" + i].keyColor2.setRGB("0xFFFF00");
_root["u" + i].keyColor3 = new Color(_root["u" + i].lock.key.kcolor);
_root["u" + i].keyColor3.setRGB("0xFFFF00");
}
if (_root["u" + i].ccolor == "red") {
_root["u" + i].keyColor1 = new Color(_root["u" + i].rotate.gate.gatee.kcolor);
_root["u" + i].keyColor1.setRGB("0xFF0000");
_root["u" + i].keyColor2 = new Color(_root["u" + i].lock.lock.kcolor);
_root["u" + i].keyColor2.setRGB("0xFF0000");
_root["u" + i].keyColor3 = new Color(_root["u" + i].lock.key.kcolor);
_root["u" + i].keyColor3.setRGB("0xFF0000");
}
i--;
}
i = _root.maxu;
while (i > 0) {
_root["u" + i]._name = ["b" + (i + _root.maxb)];
_root[(("b" + _root["b" + (i + _root.maxb)]._x) + "x") + _root["b" + (i + _root.maxb)]._y] = i;
i--;
}
_root.minu = _root.maxb;
_root.maxb = _root.maxb + _root.maxu;
_root.maxu = _root.maxb;
_root.touched = 0;
_root.main._width = 24;
_root.main._height = 24;
_root.main._x = int(_root.main._x / 24) * 24;
_root.main._y = int(_root.main._y / 24) * 24;
_root.main.x = _root.main._x;
_root.main.y = _root.main._y;
_root.main.stop();
if (_root.song == null) {
_root.song = 1;
}
}
if (_root.zoomView == true) {
if (Math.abs(_root._x - ((565 - (_root.main._x * 2)) - 282.5)) > 100) {
if ((_root._x - ((565 - (_root.main._x * 2)) - 282.5)) > 0) {
_root._x = (565 - (_root.main._x * 2)) - 182.5;
} else {
_root._x = (565 - (_root.main._x * 2)) - 382.5;
}
}
if (Math.abs(_root._y - ((410 - (_root.main._y * 2)) - 205)) > 100) {
if ((_root._y - ((410 - (_root.main._y * 2)) - 205)) > 0) {
_root._y = (410 - (_root.main._y * 2)) - 105;
} else {
_root._y = (410 - (_root.main._y * 2)) - 305;
}
}
_root.screen._x = (_root._x * -1) / 2;
_root.screen._y = (_root._y * -1) / 2;
_root.put._x = _root.screen._x;
_root.put._y = _root.screen._y;
}
if ((_root.playing == 0) and _root.musicon) {
_root.bg = new Sound(_root.main);
_root.bg.attachSound(["music" + _root.song]);
_root.bg.start();
_root.bg.setVolume(75);
_root.playing = 1;
_root.song++;
if (_root.song > 5) {
_root.song = 1;
}
}
if (_root.bg.position >= (_root.bg.duration - 10)) {
_root.playing = 0;
}
if ((_root.musicon == 0) and (_root.playing != 0)) {
_root.bg.stop(["music" + (_root.song - 1)]);
_root.playing = 0;
}
if ((_root.pause == 0) and (once > 0)) {
_root.timeElapsed++;
if ((Key.isDown(39) and (_root.main._x == _root.main.x)) and (_root.main._y == _root.main.y)) {
_root.right();
_root.warping = false;
}
if ((Key.isDown(37) and (_root.main._x == _root.main.x)) and (_root.main._y == _root.main.y)) {
_root.left();
_root.warping = false;
}
if ((Key.isDown(40) and (_root.main._y == _root.main.y)) and (_root.main._x == _root.main.x)) {
_root.down();
_root.warping = false;
}
if ((Key.isDown(38) and (_root.main._y == _root.main.y)) and (_root.main._x == _root.main.x)) {
_root.up();
_root.warping = false;
}
walk = _root.uWalk;
if (_root.main._x < _root.main.x) {
if ((_root.main._x + walk) > _root.main.x) {
} else {
_root.main._x = _root.main._x + _root.uWalk;
}
}
if (_root.main._x > _root.main.x) {
if ((_root.main._x - walk) < _root.main.x) {
} else {
_root.main._x = _root.main._x - _root.uWalk;
}
}
if (_root.main._y < _root.main.y) {
if ((_root.main._y + _root.uWalk) > _root.main.y) {
} else {
_root.main._y = _root.main._y + _root.uWalk;
}
}
if (_root.main._y > _root.main.y) {
if ((_root.main._y - _root.uWalk) < _root.main.y) {
} else {
_root.main._y = _root.main._y - _root.uWalk;
}
}
if (_root.main._alpha < 100) {
_root.main._alpha++;
}
if (_root.main._rotation != 0) {
_root.main._rotation = _root.main._rotation + 38;
}
i = _root[(("g" + _root.main._x) + "x") + _root.main._y];
if (i and (_root["g" + i]._alpha == 100)) {
_root.health++;
_root["g" + i]._alpha = _root["g" + i]._alpha - 3;
if (_root.soundon) {
hhealthup = new Sound(_root["g" + i]);
hhealthup.attachSound("healthup");
hhealthup.start();
}
_root[(("g" + _root.main._x) + "x") + _root.main._y] = 0;
}
i = _root.maxg;
while (i > 0) {
if ((_root["g" + i]._alpha < 100) and (_root["g" + i]._alpha > 0)) {
_root["g" + i]._alpha = _root["g" + i]._alpha - 2;
}
if (_root["g" + i]._alpha < 1) {
_root["g" + i].removeMovieClip();
}
i--;
}
i = _root[(("h" + _root.main._x) + "x") + _root.main._y];
if (i and (_root["h" + i]._alpha == 100)) {
_root.speedboosts++;
_root["h" + i]._alpha = _root["h" + i]._alpha - 3;
if (_root.soundon) {
hhealthup = new Sound(_root["h" + i]);
hhealthup.attachSound("healthup");
hhealthup.start();
}
_root[(("h" + _root.main._x) + "x") + _root.main._y] = 0;
}
i = _root.maxh;
while (i > 0) {
if ((_root["h" + i]._alpha < 100) and (_root["h" + i]._alpha > 0)) {
_root["h" + i]._alpha = _root["h" + i]._alpha - 2;
}
if (_root["h" + i]._alpha < 1) {
_root["h" + i].removeMovieClip();
}
i--;
}
if (speedReady == 1) {
if ((_root.main.x == _root.main._x) and (_root.main.y == _root.main._y)) {
speedReady = 0;
_root.uWalk = _root.uFast;
}
}
if (_root.speedCountdown > 0) {
_root.speedCountdown--;
_root.speedtime = int(_root.speedCountdown / 30);
} else {
_root.uWalk = _root.uNormal;
_root.speedtime = "";
}
i = _root[(("f" + _root.main._x) + "x") + _root.main._y];
if (i and (_root["f" + i]._alpha == 100)) {
_root.gooboosts++;
_root["f" + i]._alpha = _root["f" + i]._alpha - 3;
if (_root.soundon) {
hhealthup = new Sound(_root["f" + i]);
hhealthup.attachSound("healthup");
hhealthup.start();
}
_root[(("f" + _root.main._x) + "x") + _root.main._y] = 0;
}
i = _root.maxf;
while (i > 0) {
if ((_root["f" + i]._alpha < 100) and (_root["f" + i]._alpha > 0)) {
_root["f" + i]._alpha = _root["f" + i]._alpha - 2;
}
if (_root["f" + i]._alpha < 1) {
_root["f" + i].removeMovieClip();
}
i--;
}
if (gooReady == 1) {
if ((_root.main._x == _root.main.x) and (_root.main._y == _root.main.y)) {
gooReady = 0;
_root.maxt++;
_root.ttemp = _root.gooDepths.pop();
_root.attachMovie("t", "t" + _root.maxt, _root.ttemp);
_root["t" + _root.maxt]._x = _root.main._x;
_root["t" + _root.maxt]._y = _root.main._y;
_root[(("t" + _root["t" + _root.maxt]._x) + "x") + _root["t" + _root.maxt]._y] = _root.maxt;
}
}
i = _root[(("i" + _root.main._x) + "x") + _root.main._y];
if (i and (_root["i" + i]._alpha == 100)) {
_root.shieldboosts++;
_root["i" + i]._alpha = _root["i" + i]._alpha - 3;
if (_root.soundon) {
hhealthup = new Sound(_root["i" + i]);
hhealthup.attachSound("healthup");
hhealthup.start();
}
_root[(("i" + _root.main._x) + "x") + _root.main._y] = 0;
}
i = _root.maxi;
while (i > 0) {
if ((_root["i" + i]._alpha < 100) and (_root["i" + i]._alpha > 0)) {
_root["i" + i]._alpha = _root["i" + i]._alpha - 2;
}
if (_root["i" + i]._alpha < 1) {
_root["i" + i].removeMovieClip();
}
i--;
}
if (_root.shieldCountdown > 0) {
_root.shieldCountdown--;
_root.shieldtime = int(_root.shieldCountdown / 30);
} else {
_root.shieldtime = "";
_root.invincible = 0;
_root.main.shield.play();
}
i = _root[(("r" + _root.main._x) + "x") + _root.main._y];
if (i and (_root["r" + i]._alpha == 100)) {
_root.ghostboosts++;
_root["r" + i]._alpha = _root["r" + i]._alpha - 3;
if (_root.soundon) {
hhealthup = new Sound(_root["r" + i]);
hhealthup.attachSound("healthup");
hhealthup.start();
}
_root[(("r" + _root.main._x) + "x") + _root.main._y] = 0;
}
i = _root.maxr;
while (i > 0) {
if ((_root["r" + i]._alpha < 100) and (_root["r" + i]._alpha > 0)) {
_root["r" + i]._alpha = _root["r" + i]._alpha - 2;
}
if (_root["r" + i]._alpha < 1) {
_root["r" + i].removeMovieClip();
}
i--;
}
if (_root.ghostCountdown > 0) {
_root.ghostCountdown--;
_root.ghosttime = int(_root.ghostCountdown / 30);
} else {
_root.ghosttime = "";
_root.walkThrough = 0;
}
i = _root[(("k" + _root.main._x) + "x") + _root.main._y];
if (i and (_root["k" + i]._alpha == 100)) {
_root["k" + i]._alpha = _root["k" + i]._alpha - 3;
if (_root.soundon) {
hhealthup = new Sound(_root["i" + i]);
hhealthup.attachSound("healthup");
hhealthup.start();
}
_root["KeyCount" + _root["k" + i].ccolor]++;
_root[(("k" + _root.main._x) + "x") + _root.main._y] = 0;
}
i = _root.maxk;
while (i > 0) {
if ((_root["k" + i]._alpha < 100) and (_root["k" + i]._alpha > 0)) {
_root["k" + i]._alpha = _root["k" + i]._alpha - 2;
}
if (_root["k" + i]._alpha < 1) {
_root["k" + i].removeMovieClip();
}
i--;
}
if ((_root.warping == false) and (_root.invincible == 0)) {
j = 0;
while (j < _root.monsterList.length) {
k = _root.monsterList[j];
i = _root[((k + _root.main.x) + "x") + _root.main.y];
if (i and (_root[k + i].getAwayTime == 0)) {
_root[k + i].getAwayTime = _root.getAwayTime;
_root.health--;
_root[k + i].gotoAndPlay(321);
_root.lastMonsterType = k;
_root.lifeLosses++;
if (_root.soundon) {
yyou = new Sound(_root.main);
yyou.attachSound("you");
yyou.start();
}
}
j++;
}
}
i = _root.maxm;
while (i > 0) {
_root.monster("m", i);
i--;
}
i = _root.maxn;
while (i > 0) {
_root.monster("n", i);
if (((_root["n" + i]._currentframe > 0) and (_root["n" + i]._currentframe < 161)) or (_root["n" + i]._currentframe > 320)) {
_root["n" + i].horn._visible = 1;
} else {
_root["n" + i].horn._visible = 0;
}
i--;
}
i = _root.maxj;
while (i > 0) {
_root.monster("j", i);
i--;
}
i = _root.maxl;
while (i > 0) {
_root.monster("l", i);
i--;
}
i = _root.maxq;
while (i > 0) {
_root["q" + i].fireYet++;
_root.monsterFire("q", i);
if (_root["q" + i].fireYet >= 3) {
_root["q" + i].fireYet = 0;
_root.fire("q", i);
}
i--;
}
i = _root.maxfire;
while (i > 0) {
if (_root["fire" + i].exists == true) {
bx = int(((_root["fire" + i]._x + _root["fire" + i].dx) + 12) / 24) * 24;
by = int(((_root["fire" + i]._y + _root["fire" + i].dy) + 12) / 24) * 24;
_root.brick(bx, by, 0);
if (_root.occupied == 0) {
_root["fire" + i]._x = _root["fire" + i]._x + _root["fire" + i].dx;
_root["fire" + i]._y = _root["fire" + i]._y + _root["fire" + i].dy;
} else {
_root["fire" + i].play();
_root["fire" + i].exists = false;
}
if ((((bx > 550) or (bx < -14)) or (by < 42.6)) or (by > 400)) {
_root["fire" + i].dx = 0;
_root["fire" + i].dy = 0;
_root["fire" + i].play();
_root["fire" + i].exists = false;
}
if (((((_root["fire" + i].what == "fire") and (bx == _root.main.x)) and (by == _root.main.y)) and (_root.invincible == 0)) and (_root.warping == 0)) {
_root["fire" + i].dx = 0;
_root["fire" + i].dy = 0;
_root["fire" + i].play();
_root["fire" + i].exists = false;
_root.health--;
_root.lifeLosses++;
_root.lastMonsterType = "q";
if (_root.soundon) {
yyou = new Sound(_root.main);
yyou.attachSound("you");
yyou.start();
}
}
}
i--;
}
j = 0;
while (j < _root.monsterList.length) {
i = _root["max" + _root.monsterList[j]];
while (i > 0) {
q = _root[(("t" + _root[_root.monsterList[j] + i]._x) + "x") + _root[_root.monsterList[j] + i]._y];
if (q) {
_root[_root.monsterList[j] + i].exists = 0;
if (_root.soundon) {
ggoo = new Sound(_root["t" + q]);
ggoo.attachSound("goo");
ggoo.start();
}
_root["t" + q].gotoAndPlay(_root.monsterList[j]);
_root[((_root.monsterList[j] + _root[_root.monsterList[j] + i]._x) + "x") + _root[_root.monsterList[j] + i]._y] = null;
_root.M--;
_root.monstersGotten++;
}
i--;
}
j++;
}
i = _root.maxd;
while (i > 0) {
if ((_root.M <= 0) and (_root["d" + i]._currentframe == 1)) {
_root["d" + i].play();
if (_root.soundon) {
ddoor = new Sound(_root["d" + i]);
ddoor.attachSound("door");
ddoor.start();
}
}
i--;
}
i = _root[(("d" + _root.main._x) + "x") + _root.main._y];
if ((_root.M <= 0) and i) {
if (_root.soundon) {
wwinn = new Sound(_root["d" + i]);
wwinn.attachSound("win");
wwinn.start();
}
if (_root.level == 10) {
_root.goCredits();
} else {
if (_root.level != "custom") {
_root.totalLevel++;
}
_root.goReal3();
}
}
h = 1;
while (h >= 0) {
if (h == 1) {
g = "w";
}
if (h == 0) {
g = "y";
}
i = _root[((g + _root.main._x) + "x") + _root.main._y];
if (i) {
_root[g + i].gotoAndPlay(61);
if (_root.soundon) {
wwarp = new Sound(_root[g + i]);
wwarp.attachSound("warp");
wwarp.start();
}
_root.main.x = int(_root[g + i].xdestination / 24) * 24;
_root.main.y = int(_root[g + i].ydestination / 24) * 24;
_root.main._alpha = 1;
_root.main._rotation = 10;
_root.warping = true;
}
h--;
}
}
h = 1;
while (h >= 0) {
if (h == 1) {
g = "x";
}
if (h == 0) {
g = "y";
}
j = 0;
while (j < _root.monsterList.length) {
k = _root.monsterList[j];
l = _root["max" + k];
while (l > 0) {
i = _root[((g + _root[k + l]._x) + "x") + _root[k + l]._y];
if (i) {
_root[g + i].gotoAndPlay(61);
if (_root.soundon) {
xxarp = new Sound(_root[g + i]);
xxarp.attachSound("warp");
xxarp.start();
}
_root[k + l].x = int(_root[g + i].xdestination / 24) * 24;
_root[k + l].y = int(_root[g + i].ydestination / 24) * 24;
_root[k + l]._alpha = 1;
_root[k + l]._rotation = 10;
_root[k + l].moved++;
_root[((k + _root[k + l]._x) + "x") + _root[k + l]._y] = 0;
}
l--;
}
j++;
}
h--;
}
i = _root.maxo;
while (i > _root.mino) {
if (_root.M <= _root["b" + i].openWhen) {
_root["b" + i].play();
_root["b" + i]._name = "open";
}
i--;
}
if (Key.isDown(13)) {
i = _root.maxu;
while (i > _root.minu) {
_root.qwerty = _root["b" + i]._x;
_root.qwertyy = _root["b" + i]._y;
if (((_root["b" + i].rotate._currentframe == 1) and _root.nextTo("b", i)) and (_root["keyCount" + _root["b" + i].ccolor] > 0)) {
_root["keyCount" + _root["b" + i].ccolor]--;
_root["b" + i].rotate.play();
_root["b" + i].lock.play();
if (_root.soundon) {
lgate = new Sound(_root["b" + i]);
lgate.attachSound("locked gate");
lgate.start();
}
}
i--;
}
}
if (_root.health < 1) {
_root.nextFrame();
}
}
onClipEvent (keyDown) {
if (_root.pause == 0) {
if (Key.isDown(83)) {
if ((_root.speedboosts > 0) and (_root.speedCountdown == 0)) {
_root.itemsUsed++;
_root.speedboosts--;
speedReady = 1;
_root.speedCountdown = 450;
}
}
if (Key.isDown(65)) {
if (_root.gooboosts > 0) {
_root.itemsUsed++;
_root.gooboosts--;
gooReady = 1;
}
}
if (Key.isDown(68)) {
if ((_root.shieldboosts > 0) and (_root.shieldCountdown == 0)) {
_root.itemsUsed++;
_root.shieldboosts--;
_root.main.attachMovie("shield", "shield", _root.depthTotal++);
_root.main.shield._width = 67;
_root.main.shield._height = 67;
_root.shieldCountdown = 450;
_root.invincible = 1;
}
}
if (Key.isDown(70)) {
if ((_root.ghostboosts > 0) and (_root.ghostCountdown == 0)) {
_root.itemsUsed++;
_root.ghostboosts--;
_root.ghostCountdown = 450;
_root.walkThrough = 1;
}
}
}
}
Instance of Symbol 2058 MovieClip in Frame 96
onClipEvent (load) {
this._visible = 0;
}
Frame 97
stop();
Instance of Symbol 170 MovieClip "actions" in Frame 97
onClipEvent (load) {
this._visible = 0;
_root.screen.swapDepths(1020);
_root.screen.gotoAndPlay("gameOver");
_root.main.gotoAndPlay(321);
_root.main.swapDepths(1021);
}
Frame 98
stop();
Instance of Symbol 170 MovieClip "actions" in Frame 98
onClipEvent (load) {
this._visible = 0;
_root.screen.swapDepths(1020);
_root.screen.gotoAndPlay("wellDone");
_root.main.gotoAndPlay(392);
_root.main.swapDepths(1021);
}
Frame 99
_root.lastScreen = "credits";
if (_root.musicon) {
_root.ironGate = new Sound(_root.main);
_root.ironGate.attachSound("music4");
_root.ironGate.start();
_root.ironGate.setVolume(90);
}
Frame 715
_root.goMenu();
gotoAndStop (85);
stop();
Frame 716
gotoAndStop (85);
Symbol 11 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 19 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 22 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 25 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 26 MovieClip [fcb_states] Frame 1
stop();
Symbol 26 MovieClip [fcb_states] Frame 2
stop();
Symbol 26 MovieClip [fcb_states] Frame 3
stop();
Symbol 26 MovieClip [fcb_states] Frame 4
stop();
Symbol 26 MovieClip [fcb_states] Frame 5
stop();
Symbol 26 MovieClip [fcb_states] Frame 6
stop();
Symbol 29 MovieClip [FLabelSymbol] Frame 1
#initclip 3
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 32 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 32 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 32 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 33 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 44 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 54 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 63 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 64 MovieClip [UpArrow] Frame 1
stop();
Symbol 64 MovieClip [UpArrow] Frame 2
stop();
Symbol 64 MovieClip [UpArrow] Frame 3
stop();
Symbol 70 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 77 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 82 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 83 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 91 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 99 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 107 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 108 MovieClip [DownArrow] Frame 1
stop();
Symbol 108 MovieClip [DownArrow] Frame 2
stop();
Symbol 108 MovieClip [DownArrow] Frame 3
stop();
Symbol 111 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 111 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 114 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 4
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
this.attachMovie("fcb_states", "fcb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this.setChangeHandler(this.changeHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.initialValue == undefined) {
this.setCheckState(false);
} else {
this.setCheckState(this.initialValue);
}
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_CHECKBUTTON = 44;
this.STATE_SYSTEM_CHECKED = 16;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = this.fcb_states_mc._width;
var frame = this.fcb_states_mc;
var label = this.fLabel_mc;
var w = 0;
if (frame._width > this.width) {
w = 0;
} else {
w = this.width - frame._width;
}
this.fLabel_mc.setSize(w);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.fcb_states_mc._x = 0;
this.fLabel_mc._x = checkWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.fcb_states_mc._x = this.width - checkWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = pos)) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 0)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var hit = this.fcb_hitArea_mc;
this.hitArea = hit;
if (this.fcb_states_mc._width > w) {
hit._width = this.fcb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.fcb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
this.pressFocus();
_root.focusRect.removeMovieClip();
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
this.fcb_states_mc.gotoAndStop("up");
this.setValue(!this.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
if (checkedValue || (checkedValue == undefined)) {
this.setCheckState(checkedValue);
} else if (checkedValue == false) {
this.setCheckState(checkedValue);
}
this.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var states = this.fcb_states_mc;
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedEnabled");
this.enabled = true;
this.checked = true;
} else {
states.gotoAndStop("up");
this.enabled = true;
this.checked = false;
}
} else {
this.flabel_mc.setEnabled(false);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedDisabled");
this.enabled = false;
this.checked = true;
} else {
states.gotoAndStop("uncheckedDisabled");
this.enabled = false;
this.checked = false;
this.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
Super.setEnabled(true);
} else {
this.enable = false;
Super.setEnabled(false);
}
this.setCheckState(this.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
if (((Key.getCode() == 32) && (this.pressOnce == undefined)) && (this.enabled == true)) {
this.setValue(!this.getValue());
this.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 116 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 117 MovieClip [FScrollBarSymbol] Frame 1
#initclip 6
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 118 MovieClip [DataProviderSymbol] Frame 1
#initclip 2
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var eventObj = {event:"updateAll"};
viewRef.modelChanged(eventObj);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
if (index < this.getLength()) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
} else {
this.items[index].label = value;
}
this.items[index].__ID__ = this.uniqueID++;
var eventObj = {event:"addRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var tmpItm = this.items[index];
this.items.splice(index, 1);
var eventObj = {event:"deleteRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
this.items = new Array();
this.updateViews({event:"deleteRows", firstRow:0, lastRow:this.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var tmpID = this.getItemID(index);
if (typeof(itemObj) == "object") {
this.items[index] = itemObj;
} else {
this.items[index].label = itemObj;
}
this.items[index].__ID__ = tmpID;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var i = 0;
while (i < this.views.length) {
this.views[i].modelChanged(eventObj);
i++;
}
};
#endinitclip
Symbol 119 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 8
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
if (this._name != "itemAsset") {
this.highlighted = false;
this.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
this.displayContent(itmObj, selected);
if ((this.highlighted != selected) || ((this.controller.focused != this.oldFocus) && (selected))) {
this.setHighlighted(selected);
}
this.oldFocus = this.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var LOWEST_DEPTH = -16384;
this.width = width;
this.layoutContent(width);
this.attachMovie("FHighlightSymbol", "highlight_mc", LOWEST_DEPTH);
this.highlight_mc._x = 0.5;
this.highlight_mc._width = width - 0.5;
this.highlight_mc._height = height;
this.highlight_mc.controller = this;
this.highlight_mc._alpha = 0;
this.highlight_mc.trackAsMenu = true;
this.highlight_mc.onPress = function () {
if (this.controller.enable) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
};
this.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
this.highlight_mc.useHandCursor = false;
this.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
this.enable = enabledFlag;
this.fLabel_mc.setEnabled(enabledFlag);
this.highlight_mc.gotoAndStop((enabledFlag ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
this.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:this.controller});
this.fLabel_mc._x = 2;
this.fLabel_mc._y = 0;
this.fLabel_mc.setSize(width - 2);
this.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var tmpLabel = "";
if (itmObj.label != undefined) {
tmpLabel = itmObj.label;
} else if (typeof(itmObj) == "object") {
for (var i in itmObj) {
if (i != "__ID__") {
tmpLabel = (itmObj[i] + ", ") + tmpLabel;
}
}
tmpLabel = tmpLabel.substring(0, tmpLabel.length - 2);
} else {
tmpLabel = itmObj;
}
if (this.fLabel_mc.labelField.text != tmpLabel) {
this.fLabel_mc.setLabel(tmpLabel);
}
var clr = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (clr == undefined) {
clr = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(clr);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
fade = this.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!flag)) {
this.highlight_mc._alpha = (flag ? 100 : 0);
delete this.onEnterFrame;
} else {
this.fadeN = fade;
this.fadeX = 1;
this.highLight_mc._alpha = 20;
this.onEnterFrame = function () {
this.highLight_mc._alpha = (60 * Math.sqrt((this.fadeX++) / this.fadeN)) + 40;
if (this.fadeX > this.fadeN) {
delete this.onEnterFrame;
}
};
}
this.highlighted = flag;
};
#endinitclip
Symbol 120 MovieClip [FSelectableListSymbol] Frame 1
#initclip 5
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
super.init();
this.enable = true;
this.selected = new Array();
this.topDisplayed = (this.numDisplayed = 0);
this.lastSelected = 0;
this.tabChildren = false;
if (this._name != undefined) {
this.dataProvider = new DataProviderClass();
this.dataProvider.addView(this);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndex();
var item = this.getItemAt(index);
this.dataProvider.removeItemAt(index);
return(item);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
this.lastSelID = this.dataProvider.getItemID(this.lastSelected);
this.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
for (var uniqueID in this.selected) {
var tmpInd = this.selected[uniqueID].sIndex;
if (tmpInd != undefined) {
return(tmpInd);
}
}
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var item = this.getSelectedItem();
return(((item.data == undefined) ? (item.label) : (item.data)));
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
if (((index >= 0) && (index < this.getLength())) && (this.enable)) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.invalidate("updateControl");
if (flag != false) {
this.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
this.setScrollPosition(0);
this.clearSelected();
if (obj instanceof Array) {
this.dataProvider = new DataProviderClass();
var i = 0;
while (i < obj.length) {
var value = ((typeof(obj[i]) == "string") ? ({label:obj[i]}) : (obj[i]));
this.dataProvider.addItem(value);
i++;
}
} else {
this.dataProvider = obj;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
this.tmpPos = this.getScrollPosition();
this.itemSymbol = linkID;
this.invalidate("setSize");
this.setScrollPosition(this.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
this.cleanUI();
super.setEnabled(enabledFlag);
this.enable = enabledFlag;
this.boundingBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
var limit = Math.min(this.numDisplayed, this.getLength());
var i = 0;
while (i < limit) {
this.container_mc[("fListItem" + i) + "_mc"].setEnabled(this.enable);
i++;
}
if (this.enable) {
this.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + i), this.isSelected(this.topDisplayed + i));
i++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.boundingBox_mc._xscale = (this.boundingBox_mc._yscale = 100);
this.boundingBox_mc._xscale = (this.width * 100) / this.boundingBox_mc._width;
this.boundingBox_mc._yscale = (this.height * 100) / this.boundingBox_mc._height;
var i = 0;
while (i < this.numDisplayed) {
this.container_mc.attachMovie(this.itemSymbol, ("fListItem" + i) + "_mc", 10 + i, {controller:this, itemNum:i});
var item_mc = this.container_mc[("fListItem" + i) + "_mc"];
var offset = ((this.scrollOffset == undefined) ? 0 : (this.scrollOffset));
item_mc.setSize(this.width - offset, this.itmHgt);
item_mc._y = (this.itmHgt - 2) * i;
i++;
}
this.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var i in this.selected) {
if ((this.selected[i].sIndex != undefined) && (this.selected[i].sIndex >= firstRow)) {
this.selected[i].sIndex = this.selected[i].sIndex + ((lastRow - firstRow) + 1);
this.setSelectedIndex(this.selected[i].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (this.selectHolder == index) {
this.selectionDeleted = true;
}
if (((this.topDisplayed + this.numDisplayed) >= this.getLength()) && (this.topDisplayed > 0)) {
this.topDisplayed--;
if (this.selectionDeleted && ((index - 1) >= 0)) {
this.setSelectedIndex(index - 1, false);
}
} else if (this.selectionDeleted) {
var len = this.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
this.setSelectedIndex(index - 1, false);
} else {
this.setSelectedIndex(index, false);
}
}
for (var i in this.selected) {
if (this.selected[i].sIndex > firstRow) {
this.selected[i].sIndex--;
}
}
} else {
this.clearSelected();
this.topDisplayed = 0;
}
} else if (event == "sort") {
var len = this.getLength();
var i = 0;
while (i < len) {
if (this.isSelected(i)) {
var id = this.dataProvider.getItemID(i);
if (id == this.lastSelID) {
this.lastSelected = i;
}
this.selected[String(id)].sIndex = i;
}
i++;
}
}
this.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
this.attachMovie(this.itemSymbol, "tmpItem_mc", 0, {controller:this});
this.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
this.itmHgt = this.tmpItem_mc._height;
this.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
if (selectedFlag && (!this.isSelected(index))) {
this.selected[String(this.dataProvider.getItemID(index))] = {sIndex:index};
} else if (!selectedFlag) {
delete this.selected[String(this.dataProvider.getItemID(index))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
for (var uniqueID in this.selected) {
var index = this.selected[uniqueID].sIndex;
if (((index != undefined) && (this.topDisplayed <= index)) && (index < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (index - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(index), false);
}
}
delete this.selected;
this.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var tmpInd = (this.topDisplayed + itemNum);
if (this.getItemAt(tmpInd == undefined)) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
this.clearSelected();
this.selectItem(tmpInd, true);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(tmpInd), this.isSelected(tmpInd));
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var itmNum = this.getSelectedIndex();
var newItm = (itmNum + incr);
newItm = Math.max(0, newItm);
newItm = Math.min(this.getLength() - 1, newItm);
if (newItm == itmNum) {
return(undefined);
}
if ((itmNum < this.topDisplayed) || (itmNum >= (this.topDisplayed + this.numDisplayed))) {
this.setScrollPosition(itmNum);
}
if ((newItm >= (this.topDisplayed + this.numDisplayed)) || (newItm < this.topDisplayed)) {
this.setScrollPosition(this.topDisplayed + incr);
}
this.selectionHandler(newItm - this.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
this.focusRect.removeMovieClip();
if (!this.focused) {
this.pressFocus();
}
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
if (this.changeFlag) {
this.executeCallBack();
}
this.changeFlag = false;
this.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("enabled");
i++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
super.myOnKillFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("unfocused");
i++;
}
};
#endinitclip
Instance of Symbol 118 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 120 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 119 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 120 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 121 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 7
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
if (this.enable) {
pos = Math.min(pos, this.getLength() - this.numDisplayed);
pos = Math.max(pos, 0);
this.scrollBar_mc.setScrollPosition(pos);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
this.permaScrollBar = !flag;
this.setSize(this.width, this.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var pos = this.getScrollPosition();
super.setSize(w, h);
if (this.scrollBar_mc != undefined) {
this.removed = true;
}
this.scrollBar_mc = undefined;
this.initScrollBar();
this.setScrollPosition(pos);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
if ((!this.permaScrollBar) && (this.getLength() <= this.numDisplayed)) {
if (this.removed) {
this.scrollBar_mc.removeMovieClip();
this.scrollBar_mc = undefined;
this.scrollOffset = undefined;
this.invalidate("setSize");
}
} else {
if (this.scrollBar_mc == undefined) {
this.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:this.styleTable});
this.scrollBar_mc = this.container_mc.scrollBar_mc;
this.scrollBar_mc.setChangeHandler("scrollHandler", this);
this.scrollBar_mc.setSize(this.height);
this.scrollBar_mc._x = this.width - this.scrollBar_mc._width;
this.scrollBar_mc._y = 0;
this.scrollBar_mc.setLargeScroll(this.numDisplayed - 1);
this.scrollOffset = this.scrollBar_mc._width;
this.invalidate("setSize");
}
this.scrollBar_mc.setScrollProperties(this.numDisplayed, 0, this.getLength() - this.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var pos = scrollBar.getScrollPosition();
this.topDisplayed = pos;
if (this.lastPosition != pos) {
this.updateControl();
}
this.lastPosition = pos;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
super.clickHandler(itmNum);
if ((this.dragScrolling == undefined) && (this.scrollBar_mc != undefined)) {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
clearInterval(this.dragScrolling);
if (this.container_mc._ymouse < 0) {
this.setScrollPosition(this.getScrollPosition() - 1);
this.selectionHandler(0);
this.scrollInterval = Math.max(25, (-23.8 * (-this.container_mc._ymouse)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else if (this.container_mc._ymouse > ((this.itmHgt - 2) * this.numDisplayed)) {
this.setScrollPosition(this.getScrollPosition() + 1);
this.selectionHandler(this.numDisplayed - 1);
this.scrollInterval = Math.max(25, (-23.8 * Math.abs((this.container_mc._ymouse - ((this.itmHgt - 2) * this.numDisplayed)) - 2)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
if (this.focused) {
this.keyCodes = new Array(40, 38, 34, 33, 36, 35);
this.keyIncrs = new Array(1, -1, this.numDisplayed - 1, -(this.numDisplayed - 1), -this.getLength(), this.getLength());
var i = 0;
while (i < this.keyCodes.length) {
if (Key.isDown(this.keyCodes[i])) {
this.moveSelBy(this.keyIncrs[i]);
return(undefined);
}
i++;
}
this.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var tmpCode = Key.getAscii();
if ((tmpCode >= 33) && (tmpCode <= 126)) {
this.findString(String.fromCharCode(tmpCode));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
return(undefined);
}
var itemNum = this.getSelectedIndex();
var jump = 0;
var i = (itemNum + 1);
while (i != itemNum) {
var itmStr = this.getItemAt(i).label.substring(0, str.length);
if ((str == itmStr) || (str.toUpperCase() == itmStr.toUpperCase())) {
var jump = (i - itemNum);
break;
}
if (i >= (this.getLength() - 1)) {
i = -1;
}
i++;
}
if (jump != 0) {
this.moveSelBy(jump);
}
};
#endinitclip
Instance of Symbol 117 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 121 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 120 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 121 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 122 MovieClip [FComboBoxItemSymbol] Frame 1
#initclip 10
function FComboBoxItemClass() {
this.init();
}
FComboBoxItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FComboBoxItemSymbol", FComboBoxItemClass);
FComboBoxItemClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.highlight_mc.onRollOver = function () {
this.controller.controller.selectionHandler(this.controller.itemNum);
};
};
#endinitclip
Symbol 125 MovieClip [FComboBoxSymbol] Frame 1
#initclip 9
function FComboBoxClass() {
_global._popUpLevel = ((_global._popUpLevel == undefined) ? 20000 : (_global._popUpLevel + 1));
this.superHolder = _root.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
var testContainer = this.superHolder.createEmptyMovieClip("testCont", 20000);
var testBox = testContainer.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
if (testBox._name == undefined) {
this.superHolder.removeMovieClip();
this.superHolder = this._parent.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
} else {
testContainer.removeMovieClip();
}
if (this.rowCount == undefined) {
this.rowCount = 8;
this.editable = false;
}
this.itemSymbol = "FComboBoxItemSymbol";
this.init();
this.permaScrollBar = false;
this.proxyBox_mc.gotoAndStop(1);
this.width = this._width;
this.height = (this.proxyBox_mc._height * this._yscale) / 100;
var i = 0;
while (i < this.labels.length) {
this.addItem(this.labels[i], this.data[i]);
i++;
}
this.lastSelected = 0;
this.selectItem(0);
this._xscale = (this._yscale = 100);
this.opened = false;
this.setSize(this.width);
this.highlightTop(false);
if (this.changeHandler.length > 0) {
this.setChangeHandler(this.changeHandler);
}
this.onUnload = function () {
this.superHolder.removeMovieClip();
};
this.setSelectedIndex(0, false);
this.value = "";
this.focusEnabled = true;
this.changeFlag = false;
}
FComboBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FComboBoxSymbol", FComboBoxClass);
FComboBoxClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
var event = eventObj.event;
if ((event == "addRows") || (event == "deleteRows")) {
var diff = ((eventObj.lastRow - eventObj.firstRow) + 1);
var mode = ((event == "addRows") ? 1 : -1);
var len = this.getLength();
var lenBefore = (len - (mode * diff));
if ((this.rowCount > lenBefore) || (this.rowCount > len)) {
this.invalidate("setSize");
}
if (this.getSelectedIndex() == undefined) {
this.setSelectedIndex(0, false);
}
} else if (event == "updateAll") {
this.invalidate("setSize");
}
};
FComboBoxClass.prototype.removeAll = function () {
if (!this.enable) {
return(undefined);
}
super.removeAll();
if (this.editable) {
this.value = "";
}
this.invalidate("setSize");
};
FComboBoxClass.prototype.setSize = function (w) {
if ((((w == undefined) || (typeof(w) != "number")) || (w <= 0)) || (!this.enable)) {
return(undefined);
}
this.proxyBox_mc._width = w;
this.container_mc.removeMovieClip();
this.measureItmHgt();
this.container_mc = this.superHolder.createEmptyMovieClip("container", 3);
this.container_mc.tabChildren = false;
this.setPopUpLocation(this.container_mc);
this.container_mc.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
this.boundingBox_mc = this.container_mc.boundingBox_mc;
this.boundingBox_mc.component = this;
this.registerSkinElement(this.boundingBox_mc.boundingBox, "background");
this.proxyBox_mc._height = this.itmHgt;
this.numDisplayed = Math.min(this.rowCount, this.getLength());
if (this.numDisplayed < 3) {
this.numDisplayed = Math.min(3, this.getLength());
}
this.height = (this.numDisplayed * (this.itmHgt - 2)) + 2;
super.setSize(w, this.height);
this.attachMovie("DownArrow", "downArrow", 10);
this.downArrow._y = 0;
this.downArrow._width = this.itmHgt;
this.downArrow._height = this.itmHgt;
this.downArrow._x = this.proxyBox_mc._width - this.downArrow._width;
this.setEditable(this.editable);
this.container_mc._visible = this.opened;
this.highlightTop(false);
this.fader = this.superHolder.attachMovie("FBoundingBoxSymbol", "faderX", 4);
this.registerSkinElement(this.fader.boundingBox, "background");
this.fader._width = this.width;
this.fader._height = this.height;
this.fader._visible = false;
};
FComboBoxClass.prototype.setDataProvider = function (dp) {
super.setDataProvider(dp);
this.invalidate("setSize");
this.setSelectedIndex(0);
};
FComboBoxClass.prototype.getValue = function () {
if (this.editable) {
return(this.fLabel_mc.getLabel());
}
return(super.getValue());
};
FComboBoxClass.prototype.getRowCount = function () {
return(this.rowCount);
};
FComboBoxClass.prototype.setRowCount = function (count) {
this.rowCount = ((this.getLength() > count) ? (Math.max(count, 3)) : (count));
this.setSize(this.width);
var len = this.getLength();
if ((len - this.getScrollPosition()) < this.rowCount) {
this.setScrollPosition(len - Math.min(this.rowCount, len));
this.invalidate("updateControl");
}
};
FComboBoxClass.prototype.setEditable = function (editableFlag) {
if (!this.enable) {
return(undefined);
}
this.editable = editableFlag;
if (!this.editable) {
this.onPress = this.pressHandler;
this.useHandCursor = false;
this.trackAsMenu = true;
this.attachMovie("FComboBoxItemSymbol", "fLabel_mc", 5, {controller:this, itemNum:-1});
this.fLabel_mc.onRollOver = undefined;
this.fLabel_mc.setSize((this.width - this.itmHgt) + 1, this.itmHgt);
this.topLabel = this.getSelectedItem();
this.fLabel_mc.drawItem(this.topLabel, false);
this.highlightTop(false);
} else {
this.attachMovie("FLabelSymbol", "fLabel_mc", 5);
this.fLabel_txt = this.fLabel_mc.labelField;
this.fLabel_txt.type = "input";
this.fLabel_txt._x = 4;
this.fLabel_txt.onSetFocus = this.onLabelFocus;
this.fLabel_mc.setSize((this.width - this.itmHgt) - 3);
delete this.onPress;
this.fLabel_txt.onKillFocus = function () {
this._parent._parent.myOnKillFocus();
};
this.fLabel_mc.setLabel(this.value);
this.fLabel_txt.onChanged = function () {
this._parent._parent.findInputText();
};
this.downArrow.onPress = this.buttonPressHandler;
this.downArrow.useHandCursor = false;
this.downArrow.trackAsMenu = true;
}
};
FComboBoxClass.prototype.setEnabled = function (enabledFlag) {
enabledFlag = (((enabledFlag == undefined) || (typeof(enabledFlag) != "boolean")) ? true : (enabledFlag));
super.setEnabled(enabledFlag);
this.registerSkinElement(this.boundingBox_mc.boundingBox, "background");
this.proxyBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
this.downArrow.gotoAndStop((this.enable ? 1 : 3));
if (this.editable) {
this.fLabel_txt.type = (enabledFlag ? "input" : "dynamic");
this.fLabel_txt.selectable = enabledFlag;
} else if (enabledFlag) {
this.fLabel_mc.drawItem(this.topLabel, false);
this.setSelectedIndex(this.getSelectedIndex(), false);
}
this.fLabel_mc.setEnabled(this.enable);
this.fLabel_txt.onSetFocus = (enabledFlag ? (this.onLabelFocus) : undefined);
};
FComboBoxClass.prototype.setSelectedIndex = function (index, flag) {
super.setSelectedIndex(index, flag);
if (!this.editable) {
this.topLabel = this.getSelectedItem();
this.fLabel_mc.drawItem(this.topLabel, false);
} else {
this.value = ((flag != undefined) ? "" : (this.getSelectedItem().label));
this.fLabel_mc.setLabel(this.value);
}
this.invalidate("updateControl");
};
FComboBoxClass.prototype.setValue = function (value) {
if (this.editable) {
this.fLabel_mc.setLabel(value);
this.value = value;
}
};
FComboBoxClass.prototype.pressHandler = function () {
this.focusRect.removeMovieClip();
if (this.enable) {
if (!this.opened) {
this.onMouseUp = this.releaseHandler;
} else {
this.onMouseUp = undefined;
}
this.changeFlag = false;
if (!this.focused) {
this.pressFocus();
this.clickFilter = (this.editable ? false : true);
}
if (!this.clickFilter) {
this.openOrClose(!this.opened);
} else {
this.clickFilter = false;
}
}
};
FComboBoxClass.prototype.clickHandler = function (itmNum) {
if (!this.focused) {
if (this.editable) {
this.fLabel_txt.onKillFocus = undefined;
}
this.pressFocus();
}
super.clickHandler(itmNum);
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FComboBoxClass.prototype.highlightTop = function (flag) {
if (!this.editable) {
this.fLabel_mc.drawItem(this.topLabel, flag);
}
};
FComboBoxClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
this.fLabel_mc.highlight_mc.gotoAndStop("enabled");
this.highlightTop(true);
};
FComboBoxClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this._height + 4);
};
FComboBoxClass.prototype.myOnKillFocus = function () {
if (Selection.getFocus().indexOf("labelField") != -1) {
return(undefined);
}
super.myOnKillFocus();
delete this.fLabel_txt.onKeyDown;
this.openOrClose(false);
this.highlightTop(false);
};
FComboBoxClass.prototype.setPopUpLocation = function (mcRef) {
mcRef._x = this._x;
var point = {x:this._x, y:this._y + this.proxyBox_mc._height};
this._parent.localToGlobal(point);
mcRef._parent.globalToLocal(point);
mcRef._x = point.x;
mcRef._y = point.y;
if ((this.height + mcRef._y) >= Stage.height) {
this.upward = true;
mcRef._y = (point.y - this.height) - this.proxyBox_mc._height;
} else {
this.upward = false;
}
};
FComboBoxClass.prototype.openOrClose = function (flag) {
if (this.getLength() == 0) {
return(undefined);
}
this.setPopUpLocation(this.container_mc);
if ((this.lastSelected != -1) && ((this.lastSelected < this.topDisplayed) || (this.lastSelected > (this.topDisplayed + this.numDisplayed)))) {
super.moveSelBy(this.lastSelected - this.getSelectedIndex());
}
if (!flag) {
(this.downArrow.gotoAndStop(1));// not popped
} else {
(this.downArrow.gotoAndStop(2));// not popped
}
if (flag == this.opened) {
return(undefined);
}
this.highlightTop(!flag);
this.fadeRate = this.styleTable.popUpFade.value;
if (((!flag) || (this.fadeRate == undefined)) || (this.fadeRate == 0)) {
this.opened = (this.container_mc._visible = flag);
return(undefined);
}
this.setPopUpLocation(this.fader);
this.time = 0;
this.const = 85 / Math.sqrt(this.fadeRate);
this.fader._alpha = 85;
this.container_mc._visible = (this.fader._visible = true);
this.onEnterFrame = function () {
this.fader._alpha = 100 - ((this.const * Math.sqrt(++this.time)) + 15);
if (this.time >= this.fadeRate) {
this.fader._visible = false;
delete this.onEnterFrame;
this.opened = true;
}
};
};
FComboBoxClass.prototype.fireChange = function () {
this.lastSelected = this.getSelectedIndex();
if (!this.editable) {
this.topLabel = this.getSelectedItem();
this.fLabel_mc.drawItem(this.topLabel, true);
} else {
this.value = this.getSelectedItem().label;
this.fLabel_mc.setLabel(this.value);
}
this.executeCallback();
};
FComboBoxClass.prototype.releaseHandler = function () {
var onCombo = this.boundingBox_mc.hitTest(_root._xmouse, _root._ymouse);
if (this.changeFlag) {
if (onCombo) {
this.fireChange();
}
this.openOrClose(!this.opened);
} else if (onCombo) {
this.openOrClose(false);
} else {
this.onMouseDown = function () {
if ((!this.boundingBox_mc.hitTest(_root._xmouse, _root._ymouse)) && (!this.hitTest(_root._xmouse, _root._ymouse))) {
this.onMouseDown = undefined;
this.openOrClose(false);
}
};
}
this.changeFlag = false;
this.onMouseUp = undefined;
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
};
FComboBoxClass.prototype.moveSelBy = function (itemNum) {
if (itemNum != 0) {
super.moveSelBy(itemNum);
if (this.editable) {
this.setValue(this.getSelectedItem().label);
}
if (!this.opened) {
if (this.changeFlag && (!this.isSelected(this.lastSelected))) {
this.fireChange();
}
}
}
};
FComboBoxClass.prototype.myOnKeyDown = function () {
if (!this.focused) {
return(undefined);
}
if (this.editable && (Key.isDown(13))) {
this.setValue(this.fLabel_mc.getLabel());
this.executeCallback();
this.openOrClose(false);
} else if ((Key.isDown(13) || (Key.isDown(32) && (!this.editable))) && (this.opened)) {
if (this.getSelectedIndex() != this.lastSelected) {
this.fireChange();
}
this.openOrClose(false);
this.fLabel_txt.hscroll = 0;
}
super.myOnKeyDown();
};
FComboBoxClass.prototype.findInputText = function () {
if (!this.editable) {
super.findInputText();
}
};
FComboBoxClass.prototype.onLabelFocus = function () {
this._parent._parent.tabFocused = false;
this._parent._parent.focused = true;
this.onKeyDown = function () {
this._parent._parent.myOnKeyDown();
};
Key.addListener(this);
};
FComboBoxClass.prototype.buttonPressHandler = function () {
this._parent.pressHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 121 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 125 MovieClip [FComboBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 157 Button
on (release) {
_root.play();
}
Symbol 158 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop (3);
}
Symbol 158 MovieClip Frame 2
gotoAndPlay (1);
Symbol 170 MovieClip Frame 1
Instance of Symbol 170 MovieClip in Symbol 289 MovieClip [b] Frame 1
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
_parent.gotoAndStop(_root.bgSet);
}
Instance of Symbol 178 MovieClip in Symbol 289 MovieClip [b] Frame 3
onClipEvent (load) {
gotoAndStop(int(random(2)) + 1);
}
Instance of Symbol 187 MovieClip in Symbol 289 MovieClip [b] Frame 4
onClipEvent (load) {
gotoAndStop(int(random(7)) + 1);
}
Instance of Symbol 192 MovieClip in Symbol 289 MovieClip [b] Frame 5
onClipEvent (load) {
gotoAndStop(int(random(2)) + 1);
}
Instance of Symbol 204 MovieClip in Symbol 289 MovieClip [b] Frame 8
onClipEvent (load) {
gotoAndStop(int(random(5)) + 1);
}
Instance of Symbol 211 MovieClip in Symbol 289 MovieClip [b] Frame 9
onClipEvent (load) {
gotoAndStop(int(random(3)) + 1);
}
Instance of Symbol 288 MovieClip in Symbol 289 MovieClip [b] Frame 10
onClipEvent (load) {
gotoAndPlay(int(((Math.random() * 519) / 10) + 1) * 10);
}
Symbol 314 MovieClip [bomb] Frame 25
gotoAndPlay (1);
Symbol 351 MovieClip [d] Frame 1
stop();
Symbol 351 MovieClip [d] Frame 25
stop();
Symbol 360 Button
on (release) {
_root.play();
_root.warning = 0;
this.removeMovieClip();
}
Symbol 365 Button
on (release) {
_root.warning = 0;
this.removeMovieClip();
}
Symbol 380 MovieClip [fire] Frame 1
stop();
Symbol 380 MovieClip [fire] Frame 20
this.removeMovieClip();
Symbol 384 Button
on (release) {
if (_root.dontPressYet == 0) {
_root.covered = false;
this.removeMovieClip();
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
}
Symbol 388 MovieClip [o] Frame 1
stop();
Symbol 388 MovieClip [o] Frame 38
_root[(("b" + this._x) + "x") + this._y] = null;
stop();
Symbol 391 Button
on (release) {
_root[_root.dragPrevious].rrotate = 0;
_root[_root.dragPrevious]._rotation = 0;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 392 Button
on (release) {
_root[_root.dragPrevious].rrotate = 90;
_root[_root.dragPrevious]._rotation = 90;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 400 Button
on (release) {
if (openWhen > 0) {
openWhen--;
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 401 Button
on (release) {
if (openWhen < 270) {
openWhen++;
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Instance of Symbol 170 MovieClip in Symbol 407 MovieClip [gate] Frame 1
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (_parent.openWhen > 270) {
_parent.openWhen = 270;
}
_parent.openWhen = int(_parent.openWhen);
_root[_root.dragPrevious].openWhen = _parent.openWhen;
}
Instance of Symbol 420 MovieClip in Symbol 491 MovieClip [j] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 426 MovieClip in Symbol 491 MovieClip [j] Frame 32
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 420 MovieClip in Symbol 491 MovieClip [j] Frame 37
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 435 MovieClip in Symbol 491 MovieClip [j] Frame 81
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 450 MovieClip in Symbol 491 MovieClip [j] Frame 161
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 462 MovieClip in Symbol 491 MovieClip [j] Frame 188
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 450 MovieClip in Symbol 491 MovieClip [j] Frame 193
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 462 MovieClip in Symbol 491 MovieClip [j] Frame 268
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 450 MovieClip in Symbol 491 MovieClip [j] Frame 273
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 426 MovieClip in Symbol 491 MovieClip [j] Frame 321
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 491 MovieClip [j] Frame 534
gotoAndPlay (321);
Instance of Symbol 497 MovieClip in Symbol 498 MovieClip [k] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 503 Button
on (release) {
myColor = new Color(preview.kcolor);
myColor.setRGB(16711680);
lastRGB = "0xFF0000";
lastColor = "red";
_root.finalColor = new Color(_root[_root.dragPrevious].kcolor);
_root.finalColor.setRGB(lastRGB);
_root[_root.dragPrevious].ccolor = lastColor;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 506 Button
on (release) {
myColor = new Color(preview.kcolor);
myColor.setRGB(16776960);
lastRGB = "0xFFFF00";
lastColor = "yellow";
_root.finalColor = new Color(_root[_root.dragPrevious].kcolor);
_root.finalColor.setRGB(lastRGB);
_root[_root.dragPrevious].ccolor = lastColor;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 509 Button
on (release) {
myColor = new Color(preview.kcolor);
myColor.setRGB(65280);
lastRGB = "0x00FF00";
lastColor = "green";
_root.finalColor = new Color(_root[_root.dragPrevious].kcolor);
_root.finalColor.setRGB(lastRGB);
_root[_root.dragPrevious].ccolor = lastColor;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 512 Button
on (release) {
myColor = new Color(preview.kcolor);
myColor.setRGB(255);
lastRGB = "0x0000FF";
lastColor = "blue";
_root.finalColor = new Color(_root[_root.dragPrevious].kcolor);
_root.finalColor.setRGB(lastRGB);
_root[_root.dragPrevious].ccolor = lastColor;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Instance of Symbol 515 MovieClip "preview" in Symbol 517 MovieClip [key] Frame 1
onClipEvent (load) {
_parent.myColor = new Color(_parent.preview.kcolor);
_parent.myColor.setRGB(16711680);
_parent.lastRGB = "0xFF0000";
_parent.lastColor = "red";
_root.finalColor = new Color(_root[_root.dragPrevious].kcolor);
_root.finalColor.setRGB(_parent.lastRGB);
_root[_root.dragPrevious].ccolor = _parent.lastColor;
}
Instance of Symbol 523 MovieClip in Symbol 576 MovieClip [l] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 522 MovieClip in Symbol 576 MovieClip [l] Frame 161
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 570 MovieClip in Symbol 576 MovieClip [l] Frame 321
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 576 MovieClip [l] Frame 534
gotoAndPlay (321);
Symbol 584 Button
on (release) {
myColor = new Color(a.gatee.kcolor);
myColor.setRGB(16711680);
myColor2 = new Color(b.kcolor);
myColor2.setRGB(16711680);
lastRGB = "0xFF0000";
lastColor = "red";
_root.finalColor = new Color(_root[_root.dragPrevious].rotate.gate.gatee.kcolor);
_root.finalColor.setRGB(lastRGB);
_root.finalColor2 = new Color(_root[_root.dragPrevious].lock.lock.kcolor);
_root.finalColor2.setRGB(lastRGB);
_root[_root.dragPrevious].ccolor = lastColor;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 585 Button
on (release) {
myColor = new Color(a.gatee.kcolor);
myColor.setRGB(16776960);
myColor2 = new Color(b.kcolor);
myColor2.setRGB(16776960);
lastRGB = "0xFFFF00";
lastColor = "yellow";
_root.finalColor = new Color(_root[_root.dragPrevious].rotate.gate.gatee.kcolor);
_root.finalColor.setRGB(lastRGB);
_root.finalColor2 = new Color(_root[_root.dragPrevious].lock.lock.kcolor);
_root.finalColor2.setRGB(lastRGB);
_root[_root.dragPrevious].ccolor = lastColor;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 586 Button
on (release) {
myColor = new Color(a.gatee.kcolor);
myColor.setRGB(65280);
myColor2 = new Color(b.kcolor);
myColor2.setRGB(65280);
lastRGB = "0x00FF00";
lastColor = "green";
_root.finalColor = new Color(_root[_root.dragPrevious].rotate.gate.gatee.kcolor);
_root.finalColor.setRGB(lastRGB);
_root.finalColor2 = new Color(_root[_root.dragPrevious].lock.lock.kcolor);
_root.finalColor2.setRGB(lastRGB);
_root[_root.dragPrevious].ccolor = lastColor;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 587 Button
on (release) {
myColor = new Color(a.gatee.kcolor);
myColor.setRGB(255);
myColor2 = new Color(b.kcolor);
myColor2.setRGB(255);
lastRGB = "0x0000FF";
lastColor = "blue";
_root.finalColor = new Color(_root[_root.dragPrevious].rotate.gate.gatee.kcolor);
_root.finalColor.setRGB(lastRGB);
_root.finalColor2 = new Color(_root[_root.dragPrevious].lock.lock.kcolor);
_root.finalColor2.setRGB(lastRGB);
_root[_root.dragPrevious].ccolor = lastColor;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Instance of Symbol 595 MovieClip in Symbol 596 MovieClip Frame 1
onClipEvent (load) {
this._visible = _root.lighting;
}
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 51
stop();
_root[(("b" + _parent._x) + "x") + _parent._y] = null;
_parent._name = "open";
Symbol 601 Button
on (release) {
_root[_root.dragPrevious].rrotate = 0;
_root[_root.dragPrevious].rotate._rotation = 0;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 602 Button
on (release) {
_root[_root.dragPrevious].rrotate = 90;
_root[_root.dragPrevious].rotate._rotation = 90;
}
Instance of Symbol 596 MovieClip "b" in Symbol 604 MovieClip [lockedGate] Frame 1
onClipEvent (load) {
_parent.myColor = new Color(_parent.a.gatee.kcolor);
_parent.myColor.setRGB(16776960);
_parent.myColor2 = new Color(_parent.b.kcolor);
_parent.myColor2.setRGB(16776960);
_parent.lastRGB = "0xFFFF00";
_parent.lastColor = "yellow";
_root.finalColor = new Color(_root[_root.dragPrevious].rotate.gate.gatee.kcolor);
_root.finalColor.setRGB(_parent.lastRGB);
_root.finalColor2 = new Color(_root[_root.dragPrevious].lock.lock.kcolor);
_root.finalColor2.setRGB(_parent.lastRGB);
_root[_root.dragPrevious].ccolor = _parent.lastColor;
}
Instance of Symbol 420 MovieClip in Symbol 662 MovieClip [m] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 435 MovieClip in Symbol 662 MovieClip [m] Frame 81
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 632 MovieClip in Symbol 662 MovieClip [m] Frame 161
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 426 MovieClip in Symbol 662 MovieClip [m] Frame 321
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 662 MovieClip [m] Frame 534
gotoAndPlay (321);
Instance of Symbol 666 MovieClip in Symbol 713 MovieClip [n] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 426 MovieClip in Symbol 713 MovieClip [n] Frame 32
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 666 MovieClip in Symbol 713 MovieClip [n] Frame 37
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 435 MovieClip in Symbol 713 MovieClip [n] Frame 81
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 632 MovieClip in Symbol 713 MovieClip [n] Frame 161
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 694 MovieClip in Symbol 713 MovieClip [n] Frame 188
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 632 MovieClip in Symbol 713 MovieClip [n] Frame 193
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 694 MovieClip in Symbol 713 MovieClip [n] Frame 268
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 632 MovieClip in Symbol 713 MovieClip [n] Frame 273
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 713 MovieClip [n] Frame 534
gotoAndPlay (321);
Symbol 720 Button
on (release) {
this.play();
_root.optionsOpen = true;
_root.drag = null;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 725 Button
on (release) {
this.play();
}
Symbol 728 Button
on (release) {
this.play();
_root.optionsOpen = false;
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 768 MovieClip Frame 1
_root.bgSet = "desert";
stop();
Instance of Symbol 733 MovieClip in Symbol 768 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lastScreen == "level creator") {
this._visible = 0;
} else if (_root.zoomView) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Symbol 768 MovieClip Frame 2
_root.bgSet = "cave";
stop();
Symbol 768 MovieClip Frame 3
_root.bgSet = "mountain";
stop();
Symbol 768 MovieClip Frame 4
_root.bgSet = "forest";
stop();
Symbol 768 MovieClip Frame 5
_root.bgSet = "forest";
stop();
Symbol 768 MovieClip Frame 6
_root.bgSet = "jungle";
stop();
Symbol 768 MovieClip Frame 7
_root.bgSet = "lava";
stop();
Symbol 768 MovieClip Frame 8
_root.bgSet = "color";
stop();
Symbol 768 MovieClip Frame 9
_root.bgSet = "mountain";
stop();
Symbol 768 MovieClip Frame 10
_root.bgSet = "ice";
stop();
Symbol 768 MovieClip Frame 11
_root.bgSet = "ice";
stop();
Symbol 768 MovieClip Frame 12
_root.bgSet = "factory";
stop();
Symbol 768 MovieClip Frame 13
_root.bgSet = "factory";
stop();
Symbol 768 MovieClip Frame 14
_root.bgSet = "lava";
stop();
Symbol 768 MovieClip Frame 15
_root.bgSet = "cave";
stop();
Symbol 768 MovieClip Frame 16
_root.bgSet = "ice";
stop();
Symbol 768 MovieClip Frame 17
_root.bgSet = "desert";
stop();
Symbol 768 MovieClip Frame 18
_root.bgSet = "dance";
stop();
Symbol 768 MovieClip Frame 19
_root.bgSet = "ice";
stop();
Symbol 770 Button
on (release) {
_root.bbackground.nextFrame();
_root.optionsTab.bbackground_small.nextFrame();
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 771 Button
on (release) {
_root.bbackground.prevFrame();
_root.optionsTab.bbackground_small.prevFrame();
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 793 MovieClip Frame 1
stop();
Symbol 794 Button
on (release) {
_root.optionsTab.heartTab.nextFrame();
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 795 Button
on (release) {
_root.optionsTab.heartTab.prevFrame();
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 797 Button
on (release) {
_root.optionsTab.view.nextFrame();
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 798 Button
on (release) {
_root.optionsTab.view.prevFrame();
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
Symbol 803 MovieClip Frame 1
stop();
Symbol 810 MovieClip [optionsTab] Frame 1
stop();
Symbol 810 MovieClip [optionsTab] Frame 35
stop();
Instance of Symbol 768 MovieClip "bbackground_small" in Symbol 810 MovieClip [optionsTab] Frame 35
onClipEvent (load) {
this.gotoAndStop(_root.backgroundd);
}
onClipEvent (enterFrame) {
_root.backgroundd = this._currentframe;
}
Instance of Symbol 793 MovieClip "heartTab" in Symbol 810 MovieClip [optionsTab] Frame 35
onClipEvent (load) {
this.gotoAndStop(_root.health);
}
onClipEvent (enterFrame) {
_root.optionsTabHealth = this._currentframe;
_root.health = this._currentframe;
}
Instance of Symbol 803 MovieClip "view" in Symbol 810 MovieClip [optionsTab] Frame 35
onClipEvent (load) {
this.gotoAndStop(_root.zoomView + 1);
}
onClipEvent (enterFrame) {
_root.zoomView = this._currentframe - 1;
}
Symbol 850 MovieClip [p] Frame 1
stop();
Symbol 850 MovieClip [p] Frame 38
_root[(("b" + this._x) + "x") + this._y] = null;
stop();
Symbol 867 Button
on (release) {
_root.pause = 0;
this.removeMovieClip();
_root.ppause.removeMovieClip();
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Instance of Symbol 855 MovieClip [ril] in Symbol 868 MovieClip [pause] Frame 1
onClipEvent (enterFrame) {
_root.ppause._x = _root.screen._x;
_root.ppause._y = _root.screen._y;
}
Instance of Symbol 666 MovieClip in Symbol 915 MovieClip [q] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 426 MovieClip in Symbol 915 MovieClip [q] Frame 32
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 666 MovieClip in Symbol 915 MovieClip [q] Frame 37
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 435 MovieClip in Symbol 915 MovieClip [q] Frame 81
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 450 MovieClip in Symbol 915 MovieClip [q] Frame 161
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 462 MovieClip in Symbol 915 MovieClip [q] Frame 188
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 450 MovieClip in Symbol 915 MovieClip [q] Frame 193
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 462 MovieClip in Symbol 915 MovieClip [q] Frame 268
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 450 MovieClip in Symbol 915 MovieClip [q] Frame 273
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 426 MovieClip in Symbol 915 MovieClip [q] Frame 321
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 915 MovieClip [q] Frame 534
gotoAndPlay (321);
Symbol 928 Button
on (release) {
if ((_root.level == "custom") or (_root.level == "custom2")) {
_root.goCreator();
_root.bye();
} else {
_root.goMenu();
_root.bye();
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 940 Button
on (release) {
if (_root.pause == 0) {
_root.pause = 1;
_root.attachMovie("pause", "ppause", 999934);
if (_root.zoomView == true) {
_root.ppause._width = _root.ppause._width / 2;
_root.ppause._height = _root.ppause._height / 2;
_root.ppause._x = _root.screen._x;
_root.ppause._y = _root.screen._y;
}
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 948 Button
on (release) {
_root.actions.once = 0;
_root.gotoAndPlay("in between", 1);
gotoAndPlay (1);
_root.goBetween();
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 970 MovieClip Frame 1
stop();
Symbol 977 MovieClip Frame 1
stop();
Symbol 983 MovieClip Frame 1
stop();
Symbol 989 MovieClip Frame 1
stop();
Symbol 1039 Button
on (release) {
_root.actions.once = 0;
_root.gotoAndPlay("in between", 1);
gotoAndPlay (1);
_root.goBetween();
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Instance of Symbol 964 MovieClip "healthheart" in Symbol 1041 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 1097 Button
on (rollOver) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
if (_root.level != "custom") {
_root.level++;
_root.goBetween();
} else {
_root.goCreator();
}
}
Symbol 1099 Button
on (rollOver) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
if (_root.level != "custom") {
_root.level++;
_root.goBetween();
} else {
_root.goCreator();
}
}
Symbol 1100 Button
on (rollOver) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
_root.actions.once = 0;
_root.goBetween();
}
Instance of Symbol 1108 MovieClip in Symbol 1145 MovieClip Frame 1
onClipEvent (load) {
if (_root.lifeLosses == 0) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 1112 MovieClip in Symbol 1145 MovieClip Frame 10
onClipEvent (load) {
if (_root.noItemsUsed) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 1119 MovieClip in Symbol 1145 MovieClip Frame 20
onClipEvent (load) {
this.a = _root.monstersGotten * 100;
}
Instance of Symbol 1125 MovieClip in Symbol 1145 MovieClip Frame 30
onClipEvent (load) {
this.a = _root.health * 50;
}
Instance of Symbol 1132 MovieClip in Symbol 1145 MovieClip Frame 40
onClipEvent (load) {
this.a = _root.lifeLosses * 75;
}
Instance of Symbol 1137 MovieClip in Symbol 1145 MovieClip Frame 60
onClipEvent (load) {
this.a = 300 - (_root.movesMade * 5);
if (this.a < 0) {
this.a = 0;
}
}
Instance of Symbol 1141 MovieClip in Symbol 1145 MovieClip Frame 70
onClipEvent (load) {
this.a = (60 - int(_root.timeElapsed / 30)) * 10;
if (this.a < 0) {
this.a = 0;
}
}
Instance of Symbol 1144 MovieClip in Symbol 1145 MovieClip Frame 90
onClipEvent (load) {
this.a = 0;
if (_root.lifeLosses == 0) {
this.a = this.a + 500;
}
if (_root.noItemsUsed) {
this.a = this.a + 200;
}
this.a = this.a + (_root.monstersGotten * 100);
this.a = this.a + (_root.health * 50);
this.a = this.a + (_root.lifeLosses * 75);
varA = 300 - (_root.movesMade * 5);
if (varA < 0) {
varA = 0;
}
this.a = this.a + varA;
varB = (60 - int(_root.timeElapsed / 30)) * 10;
if (varB < 0) {
varB = 0;
}
this.a = this.a + varB;
if (this.a < 0) {
this.a = 0;
}
}
Symbol 1145 MovieClip Frame 110
stop();
Instance of Symbol 1144 MovieClip in Symbol 1145 MovieClip Frame 110
onClipEvent (enterFrame) {
this.a = 0;
if (_root.lifeLosses == 0) {
this.a = this.a + 500;
}
if (_root.noItemsUsed) {
this.a = this.a + 200;
}
this.a = this.a + (_root.monstersGotten * 100);
this.a = this.a + (_root.health * 50);
this.a = this.a + (_root.lifeLosses * 75);
varA = 300 - (_root.movesMade * 5);
if (varA < 0) {
varA = 0;
}
this.a = this.a + varA;
varB = (60 - int(_root.timeElapsed / 30)) * 10;
if (varB < 0) {
varB = 0;
}
this.a = this.a + varB;
if (this.a < 0) {
this.a = 0;
}
}
Instance of Symbol 1141 MovieClip in Symbol 1145 MovieClip Frame 110
onClipEvent (enterFrame) {
this.a = (60 - int(_root.timeElapsed / 30)) * 10;
if (this.a < 0) {
this.a = 0;
}
}
Instance of Symbol 1137 MovieClip in Symbol 1145 MovieClip Frame 110
onClipEvent (enterFrame) {
this.a = 300 - (_root.movesMade * 5);
if (this.a < 0) {
this.a = 0;
}
}
Instance of Symbol 1132 MovieClip in Symbol 1145 MovieClip Frame 110
onClipEvent (enterFrame) {
this.a = _root.lifeLosses * 75;
}
Instance of Symbol 1125 MovieClip in Symbol 1145 MovieClip Frame 110
onClipEvent (enterFrame) {
this.a = _root.health * 50;
}
Instance of Symbol 1119 MovieClip in Symbol 1145 MovieClip Frame 110
onClipEvent (enterFrame) {
this.a = _root.monstersGotten * 100;
}
Instance of Symbol 1112 MovieClip in Symbol 1145 MovieClip Frame 110
onClipEvent (enterFrame) {
if (_root.noItemsUsed) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 1108 MovieClip in Symbol 1145 MovieClip Frame 110
onClipEvent (enterFrame) {
if (_root.lifeLosses == 0) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Symbol 1146 MovieClip Frame 1
stop();
Instance of Symbol 1144 MovieClip in Symbol 1146 MovieClip Frame 1
onClipEvent (enterFrame) {
this.a = 0;
if (_root.lifeLosses == 0) {
this.a = this.a + 500;
}
if (_root.noItemsUsed) {
this.a = this.a + 200;
}
this.a = this.a + (_root.monstersGotten * 100);
this.a = this.a + (_root.health * 50);
this.a = this.a + (_root.lifeLosses * 75);
varA = 300 - (_root.movesMade * 5);
if (varA < 0) {
varA = 0;
}
this.a = this.a + varA;
varB = (60 - int(_root.timeElapsed / 30)) * 10;
if (varB < 0) {
varB = 0;
}
this.a = this.a + varB;
if (this.a < 0) {
this.a = 0;
}
}
Instance of Symbol 1141 MovieClip in Symbol 1146 MovieClip Frame 1
onClipEvent (enterFrame) {
this.a = (60 - int(_root.timeElapsed / 30)) * 10;
if (this.a < 0) {
this.a = 0;
}
}
Instance of Symbol 1137 MovieClip in Symbol 1146 MovieClip Frame 1
onClipEvent (enterFrame) {
this.a = 300 - (_root.movesMade * 5);
if (this.a < 0) {
this.a = 0;
}
}
Instance of Symbol 1132 MovieClip in Symbol 1146 MovieClip Frame 1
onClipEvent (enterFrame) {
this.a = _root.lifeLosses * 75;
}
Instance of Symbol 1125 MovieClip in Symbol 1146 MovieClip Frame 1
onClipEvent (enterFrame) {
this.a = _root.health * 50;
}
Instance of Symbol 1119 MovieClip in Symbol 1146 MovieClip Frame 1
onClipEvent (enterFrame) {
this.a = _root.monstersGotten * 100;
}
Instance of Symbol 1112 MovieClip in Symbol 1146 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.noItemsUsed) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 1108 MovieClip in Symbol 1146 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lifeLosses == 0) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Symbol 1147 MovieClip [screen] Frame 1
_root.screen.swapDepths(747);
play();
Instance of Symbol 964 MovieClip "healthheart" in Symbol 1147 MovieClip [screen] Frame 1
onClipEvent (enterFrame) {
this.hhealth = _root.health;
this.gotoAndStop(hhealth);
}
Instance of Symbol 970 MovieClip "speedbar" in Symbol 1147 MovieClip [screen] Frame 1
onClipEvent (enterFrame) {
if ((_root.speedboosts == 0) and (this._currentframe != 2)) {
this.gotoAndStop(2);
}
if ((_root.speedboosts > 0) and (this._currentframe != 1)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 977 MovieClip in Symbol 1147 MovieClip [screen] Frame 1
onClipEvent (enterFrame) {
if ((_root.shieldboosts == 0) and (this._currentframe == 1)) {
this.gotoAndStop(2);
}
if ((_root.shieldboosts != 0) and (this._currentframe == 2)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 983 MovieClip in Symbol 1147 MovieClip [screen] Frame 1
onClipEvent (enterFrame) {
if (_root.gooboosts == 0) {
this.gotoAndStop(2);
}
if (_root.gooboosts != 0) {
this.gotoAndStop(1);
}
}
Instance of Symbol 989 MovieClip in Symbol 1147 MovieClip [screen] Frame 1
onClipEvent (enterFrame) {
if ((_root.ghostboosts == 0) and (this._currentframe == 1)) {
this.gotoAndStop(2);
}
if ((_root.ghostboosts != 0) and (this._currentframe == 2)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 995 MovieClip "healthheart" in Symbol 1147 MovieClip [screen] Frame 1
onClipEvent (enterFrame) {
this.nnum = _root.keyCountGreen + 1;
this.gotoAndStop(nnum);
}
Instance of Symbol 1001 MovieClip "healthheart" in Symbol 1147 MovieClip [screen] Frame 1
onClipEvent (enterFrame) {
this.nnum = _root.keyCountYellow + 1;
this.gotoAndStop(nnum);
}
Instance of Symbol 1007 MovieClip in Symbol 1147 MovieClip [screen] Frame 1
onClipEvent (enterFrame) {
this.nnum = _root.keyCountBlue + 1;
this.gotoAndStop(nnum);
}
Instance of Symbol 1013 MovieClip "healthheart" in Symbol 1147 MovieClip [screen] Frame 1
onClipEvent (enterFrame) {
this.nnum = _root.keyCountRed + 1;
this.gotoAndStop(nnum);
}
Symbol 1147 MovieClip [screen] Frame 3
if (_root.soundon) {
_root.ssound = new Sound(_root.main);
_root.ssound.attachSound("3");
_root.ssound.start();
}
_root.screen.swapDepths(747);
Symbol 1147 MovieClip [screen] Frame 30
if (_root.soundon) {
_root.ssound = new Sound(_root.main);
_root.ssound.attachSound("2");
_root.ssound.start();
}
Symbol 1147 MovieClip [screen] Frame 60
if (_root.soundon) {
_root.ssound = new Sound(_root.main);
_root.ssound.attachSound("1");
_root.ssound.start();
}
Symbol 1147 MovieClip [screen] Frame 90
if (_root.soundon) {
_root.ssound = new Sound(_root.main);
_root.ssound.attachSound("Go");
_root.ssound.start();
}
Symbol 1147 MovieClip [screen] Frame 99
_root.pause = 0;
Symbol 1147 MovieClip [screen] Frame 100
if (_root.zoomView != true) {
_root.screen.swapDepths(-1);
}
stop();
Symbol 1147 MovieClip [screen] Frame 101
stopAllSounds();
_root.lastScreen = "menu";
Symbol 1147 MovieClip [screen] Frame 102
if (_root.musicon) {
sssound = new Sound(this);
sssound.attachSound("gameOverMusic");
sssound.start();
}
Instance of Symbol 170 MovieClip in Symbol 1147 MovieClip [screen] Frame 126
onClipEvent (load) {
this._visible = 0;
if (_root.zoomView) {
dx = 0;
dy = 0;
i = 100;
} else {
dx = (285 - _root.main._x) / 200;
dy = (230 - _root.main._y) / 200;
i = 200;
}
}
onClipEvent (enterFrame) {
if (i >= 0) {
_root.main._x = _root.main._x + dx;
_root.main._y = _root.main._y + dy;
_root.main._width = _root.main._width * 1.0085;
_root.main._height = _root.main._height * 1.0085;
i--;
}
}
Instance of Symbol 1087 MovieClip in Symbol 1147 MovieClip [screen] Frame 409
onClipEvent (enterFrame) {
gotoAndStop(_root.lastMonsterType);
}
Symbol 1147 MovieClip [screen] Frame 509
stop();
Symbol 1147 MovieClip [screen] Frame 510
_root.lastScreen = "menu";
Instance of Symbol 170 MovieClip in Symbol 1147 MovieClip [screen] Frame 510
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
_root.loadGameData();
}
Instance of Symbol 170 MovieClip in Symbol 1147 MovieClip [screen] Frame 517
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
_root.decrypted = _root.decrypt(_root.loadContent);
}
Instance of Symbol 170 MovieClip in Symbol 1147 MovieClip [screen] Frame 525
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
myNumber = new Number(_root.decrypted);
_root.encryption = _root.blowfish(myNumber + 1);
}
Instance of Symbol 170 MovieClip in Symbol 1147 MovieClip [screen] Frame 531
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (_root.level != "custom") {
if (_root.decrypted < (_root.level + 2)) {
_root.saveGameData(_root.encryption);
}
}
}
Symbol 1147 MovieClip [screen] Frame 739
stop();
Symbol 1304 MovieClip [t] Frame 72
gotoAndPlay (1);
Symbol 1304 MovieClip [t] Frame 188
gotoAndPlay (1);
Symbol 1304 MovieClip [t] Frame 236
gotoAndPlay (1);
Instance of Symbol 523 MovieClip in Symbol 1304 MovieClip [t] Frame 331
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 1304 MovieClip [t] Frame 351
gotoAndPlay (1);
Symbol 1304 MovieClip [t] Frame 445
gotoAndPlay (1);
Symbol 1304 MovieClip [t] Frame 561
gotoAndPlay (1);
Instance of Symbol 1308 MovieClip in Symbol 1317 MovieClip [w] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 1317 MovieClip [w] Frame 60
gotoAndPlay (1);
Symbol 1326 Button
on (press) {
_parent.removeMovieClip();
}
on (keyPress "<Enter>") {
_parent.removeMovieClip();
}
Symbol 1328 Button
on (press) {
_parent.removeMovieClip();
}
Instance of Symbol 170 MovieClip in Symbol 1345 MovieClip [wdestination] Frame 1
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (_root["w" + _parent._name.substr(2, 1)].x == null) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1308 MovieClip in Symbol 1349 MovieClip [x] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 1349 MovieClip [x] Frame 60
gotoAndPlay (1);
Instance of Symbol 170 MovieClip in Symbol 1351 MovieClip [xdestination] Frame 1
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (_root["x" + _parent._name.substr(2, 1)].x == null) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1308 MovieClip in Symbol 1355 MovieClip [y] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 1355 MovieClip [y] Frame 60
gotoAndPlay (1);
Instance of Symbol 170 MovieClip in Symbol 1357 MovieClip [ydestination] Frame 1
onClipEvent (load) {
this._visible = 0;
}
onClipEvent (enterFrame) {
if (_root["y" + _parent._name.substr(2, 1)].x == null) {
_parent.removeMovieClip();
}
}
Instance of Symbol 1360 MovieClip in Symbol 1713 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
_root.main.facing = "front";
}
Instance of Symbol 1360 MovieClip in Symbol 1714 MovieClip [z] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
_root.main.facing = "front";
}
Symbol 1714 MovieClip [z] Frame 80
gotoAndStop (1);
Instance of Symbol 1360 MovieClip in Symbol 1714 MovieClip [z] Frame 81
onClipEvent (enterFrame) {
this._visible = _root.lighting;
_root.main.facing = "back";
}
Symbol 1714 MovieClip [z] Frame 160
gotoAndStop (1);
Instance of Symbol 1401 MovieClip in Symbol 1714 MovieClip [z] Frame 161
onClipEvent (enterFrame) {
this._visible = _root.lighting;
_root.main.facing = "right";
}
Symbol 1714 MovieClip [z] Frame 240
gotoAndStop (1);
Instance of Symbol 1401 MovieClip in Symbol 1714 MovieClip [z] Frame 241
onClipEvent (enterFrame) {
this._visible = _root.lighting;
_root.main.facing = "left";
}
Symbol 1714 MovieClip [z] Frame 320
gotoAndStop (1);
Instance of Symbol 1360 MovieClip in Symbol 1714 MovieClip [z] Frame 321
onClipEvent (enterFrame) {
this._visible = _root.lighting;
_root.main.facing = "front";
}
Symbol 1714 MovieClip [z] Frame 391
stop();
Instance of Symbol 1360 MovieClip in Symbol 1714 MovieClip [z] Frame 392
onClipEvent (enterFrame) {
this._visible = _root.lighting;
_root.main.facing = "front";
}
Symbol 1714 MovieClip [z] Frame 550
_root.main.shield.play();
stop();
Instance of Symbol 1719 MovieClip in Symbol 1720 MovieClip [g] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 1732 MovieClip [shield] Frame 1
stop();
Instance of Symbol 1728 MovieClip in Symbol 1732 MovieClip [shield] Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Symbol 1732 MovieClip [shield] Frame 55
_root.main.shield.removeMovieClip();
this.removeMovieClip();
stop();
Symbol 1734 MovieClip [lock] Frame 1
stop();
Symbol 1734 MovieClip [lock] Frame 43
stop();
Symbol 1738 Button
on (press) {
_root.edit("f");
}
Symbol 1742 Button
on (press) {
_root.edit("h");
}
Symbol 1746 Button
on (press) {
_root.edit("i");
}
Symbol 1750 Button
on (press) {
_root.edit("r");
}
Symbol 1755 Button
on (press) {
_root.edit("g");
}
Symbol 1760 Button
on (press) {
_root.edit("n");
}
Symbol 1764 Button
on (press) {
_root.edit("j");
}
Symbol 1768 Button
on (press) {
_root.edit("l");
}
Symbol 1772 Button
on (press) {
_root.edit("q");
}
Symbol 1776 Button
on (press) {
_root.edit("m");
}
Symbol 1781 Button
on (press) {
_root.edit("k");
}
Symbol 1785 Button
on (press) {
_root.edit("o");
}
Symbol 1789 Button
on (press) {
_root.edit("u");
}
Symbol 1794 Button
on (press) {
_root.edit("x");
}
Symbol 1798 Button
on (press) {
_root.edit("y");
}
Symbol 1802 Button
on (press) {
_root.edit("w");
}
Instance of Symbol 1834 MovieClip in Symbol 1851 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 1859 MovieClip in Symbol 1893 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = _root.lighting;
}
Instance of Symbol 713 MovieClip [n] in Symbol 1895 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 915 MovieClip [q] in Symbol 1895 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1851 MovieClip in Symbol 1895 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1893 MovieClip in Symbol 1895 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1901 Button
on (rollOver) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
_root.ironGate.stop();
_root.level = _root.totalLevel;
gotoAndPlay (93);
}
Symbol 1906 Button
on (rollOver) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
_root.ironGate.stop();
if (_root.uno == "bar1=_x:1,_y:1; bar2=_x:1,_y:1; _root=health:1,backgroundd:1,zoomView:false>") {
gotoAndStop (91);
} else {
gotoAndStop (92);
}
}
Symbol 1911 Button
on (rollOver) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
_root.ironGate.stop();
gotoAndStop (87);
}
Symbol 1915 Button
on (rollOver) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("over");
this.ssound.start();
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
_root.ironGate.stop();
gotoAndStop (86);
}
Symbol 1931 Button
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
gotoAndStop (85);
}
Symbol 1952 Button
on (release) {
_root.ironGate.stop();
if (((_root.level == "custom") or (_root.level == "custom2")) and (_root.lastScreen != "credits")) {
_root.goCreator();
_root.bye();
} else {
_root.goMenu();
_root.bye();
}
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 1963 Button
on (release) {
gotoAndStop (88);
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 1967 Button
on (release) {
gotoAndStop (89);
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 1971 Button
on (release) {
gotoAndStop (90);
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 1976 Button
on (release) {
nextFrame();
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 2001 Button
on (release) {
prevFrame();
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 2004 Button
on (release) {
gotoAndStop (87);
}
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
Symbol 2061 Button
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
_root.bye();
_root.zoomView = false;
gotoAndStop (85);
}
Symbol 2063 Button
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
_root.nextFrame();
}
Symbol 2105 Button
on (release) {
_root[_root.drag].removeMovieClip();
_root.attachMovie("bomb", "bomb", 88889);
_root.drag = "bomb";
}
Symbol 2106 Button
on (press) {
_root.edit("b");
}
Symbol 2107 Button
on (release) {
_root.attachMovie("monsters", "monsters", 9998);
_root.monsters._x = 40;
_root.monsters._y = 173.3;
_root.monsters._width = 71.9;
_root.monsters._height = 41;
_root.tabOpen = true;
}
Symbol 2108 Button
on (press) {
_root.edit("t");
}
Symbol 2109 Button
on (release) {
_root.attachMovie("powerups", "powerups", 9995);
_root.powerups._x = 40;
_root.powerups._y = 227.9;
_root.powerups._width = 71.9;
_root.powerups._height = 41.1;
_root.tabOpen = true;
}
Symbol 2110 Button
on (release) {
_root.attachMovie("gates", "gates", 9996);
_root.gates._x = 40;
_root.gates._y = 282.7;
_root.gates._width = 79;
_root.gates._height = 24.7;
_root.tabOpen = true;
}
Symbol 2111 Button
on (release) {
_root.attachMovie("edit warp", "warp", 9997);
_root.warp._x = 40;
_root.warp._y = 254.7;
_root.warp._width = 71.2;
_root.warp._height = 22.1;
_root.tabOpen = true;
}
Symbol 2112 Button
on (press) {
_root.edit("d");
}
Symbol 2113 Button
on (press) {
_root.edit("z");
}
Symbol 2115 Button
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
if (_root.covered == false) {
if (_root.mxz < 1) {
_root.attachMovie("warn2", "warningg", 599);
}
if (_root.mxd < 1) {
_root.attachMovie("warn3", "wwarning", 598);
}
if ((((((_root.mxq + _root.mxm) + _root.mxn) + _root.mxl) + _root.mxj) > 0) and ((_root.mxt + _root.mxf) == 0)) {
_root.attachMovie("warn4", "wwarningg", 600);
}
if (!(((_root.mxz < 1) or (_root.mxd < 1)) or ((((((_root.mxq + _root.mxm) + _root.mxn) + _root.mxl) + _root.mxj) > 0) and ((_root.mxt + _root.mxf) == 0)))) {
_root.optionsTab.gotoAndStop(1);
_root.optionsOpen = false;
_root.convertToCode();
_root.zoomView = false;
_root.bye();
_root.level = "custom";
play();
}
}
}
Symbol 2116 Button
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
_root.convertToCode();
_root.bye();
_root.zoomView = false;
gotoAndStop (85);
}
Symbol 2121 Button
on (press) {
if (_root.soundon) {
this.ssound = new Sound(this);
this.ssound.attachSound("press");
this.ssound.start();
}
}
on (release) {
_root.convertToCode();
_root.bye();
_root.zoomView = false;
gotoAndStop (91);
}