Frame 1
Stage.showMenu = false;
if (_root.gamezhero == undefined) {
System.security.allowDomain("gamezhero.com", "www.gamezhero.com", "files.gamezhero.com");
_root.createEmptyMovieClip("gamezhero", 100000);
_root.gamezhero.loadMovie("http://files.gamezhero.com/flash/gamezhero2.swf?x=590&y=430&from=yoko&scale=80&t=1131695977671");
}
Frame 2
this.stop();
Frame 4
function allCr() {
var _local1 = this;
_local1.ST.KeyCr();
_local1.MonsterCr();
_local1.popCr();
_local1.switchCr();
_local1.ObjCr();
_local1.stageCr();
}
function stageCr() {
var _local3 = _global;
_local3.OLowNum = 0;
_local3.PLowObjNum = 999;
_local3.PLowNum = 3999;
_local3.PHiNum = 5001;
_local3.PHiObjNum = 5999;
_local3.OHiNum = 8999;
_local3.KeyPoint = 0;
_local3.MonsterPoint = 0;
_local3.popPoint = 0;
_local3.TSpoint = 0;
aRwarp = [];
aBwarp = [];
aHole = [];
aMonster = [];
aOway = [];
aTower = [];
aFields = [];
aFields[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aFields[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aFields[2] = [0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0];
aFields[3] = [0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0];
aFields[4] = [0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0];
aFields[5] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[6] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[7] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[8] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[9] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[10] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[11] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[12] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[13] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[14] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[15] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[16] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[17] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[18] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[19] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[20] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[21] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[22] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[23] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[24] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[25] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[26] = [0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 0, 0];
aFields[27] = [0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0];
aFields[28] = [0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0];
aFields[29] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
aSwitchs = [];
var _local2 = 0;
while (_local2 <= 29) {
aSwitchs[_local2] = [];
var _local1 = 0;
while (_local1 <= 39) {
aSwitchs[_local2].push(0);
_local1++;
}
_local2++;
}
trace("R ?????(aFields)>?" + aFields);
trace("R ???????(aSwitchs)>?" + aSwitchs);
}
function ObjCr() {
var _local2 = this;
var _local1 = 0;
while (_local1 <= 1200) {
_local2["Obj" + _local1].removeMovieClip();
_local1++;
}
_local1 = 0;
while (_local1 <= 1200) {
_local2["switch" + _local1].removeMovieClip();
_local1++;
}
_local2.player.removeMovieClip();
}
function MonsterCr() {
var _local3 = aMonster.length - 1;
var _local1 = 0;
while (_local1 <= _local3) {
var _local2 = aMonster[_local1];
this["monster" + _local2].removeMovieClip();
_local1++;
}
}
function popCr() {
var _local2 = this;
var _local3 = _global.popPoint;
var _local1 = 1;
while (_local1 <= _local3) {
_local2["pop" + _local1].removeMovieClip();
_local1++;
}
}
function switchCr() {
var _local3 = aTower.length - 1;
var _local1 = 0;
while (_local1 <= _local3) {
var _local2 = aTower[_local1];
this["switch" + _local2].removeMovieClip();
_local1++;
}
}
function MoveStart() {
this.player.PStart();
var _local3 = aMonster.length - 1;
var _local1 = 0;
while (_local1 <= _local3) {
var _local2 = aMonster[_local1];
this["monster" + _local2].MStart();
_local1++;
}
}
function fieldsIpt(pX, pY, myName) {
var _local2 = pY;
var _local1 = pX;
var _local3 = myName;
aFields[_local2][_local1] = _local3;
aFields[_local2][_local1 - 1] = _local3;
aFields[_local2 - 1][_local1] = _local3;
aFields[_local2 - 1][_local1 - 1] = _local3;
trace((((((((((("R????????(" + _local1) + "_") + _local2) + ")>") + aFields[_local2][_local1]) + "_") + aFields[_local2][_local1 - 1]) + "_") + aFields[_local2 - 1][_local1]) + "_") + aFields[_local2 - 1][_local1 - 1]);
}
function Lv1Chk(pX, pY) {
var _local2 = pY;
var _local1 = pX;
var Lv1 = aFields[_local2 - 1][_local1 - 1];
var Lv2 = aFields[_local2 - 1][_local1];
var Lv3 = aFields[_local2][_local1 - 1];
var _local3 = aFields[_local2][_local1];
if (((Lv1 == Lv2) && (Lv3 == _local3)) && (Lv1 == _local3)) {
return(true);
}
return(false);
}
function Lv2Chk(pX, pY) {
var _local2 = pY;
var _local1 = pX;
var up1 = aFields[_local2 - 2][_local1 - 1];
var up2 = aFields[_local2 - 2][_local1];
var down1 = aFields[_local2 + 1][_local1 - 1];
var down2 = aFields[_local2 + 1][_local1];
var left1 = aFields[_local2][_local1 - 2];
var left2 = aFields[_local2 - 1][_local1 - 2];
var right1 = aFields[_local2][_local1 + 1];
var right2 = aFields[_local2 - 1][_local1 + 1];
var _local3 = {up1:up1, up2:up2, down1:down1, down2:down2, left1:left1, left2:left2, right1:right1, right2:right2};
return(_local3);
}
function Lv2HallChk(pX, pY) {
var down1 = aFields[pY + 1][pX - 1];
var down2 = aFields[pY + 1][pX];
var _local1 = {down1:down1, down2:down2};
return(_local1);
}
function fieldsMove(pX, pY, myNum, Pkey) {
var _local2 = pY;
var _local1 = pX;
var _local3 = myNum;
if ((_local3 == 2) || (_local3 >= 1200)) {
NewNum = _local3;
if (Pkey == "up") {
if (aFields[_local2 - 1][_local1 - 1] == _local3) {
aFields[_local2 - 1][_local1 - 1] = NewNum;
}
if (aFields[_local2 - 1][_local1] == _local3) {
aFields[_local2 - 1][_local1] = NewNum;
}
if (aFields[_local2][_local1 - 1] == _local3) {
aFields[_local2][_local1 - 1] = 0;
}
if (aFields[_local2][_local1] == _local3) {
aFields[_local2][_local1] = 0;
}
if ((aFields[_local2 - 2][_local1 - 1] == 0) || (aFields[_local2 - 2][_local1 - 1] >= 1200)) {
aFields[_local2 - 2][_local1 - 1] = NewNum;
}
if ((aFields[_local2 - 2][_local1] == 0) || (aFields[_local2 - 2][_local1] >= 1200)) {
aFields[_local2 - 2][_local1] = NewNum;
}
} else if (Pkey == "down") {
if (aFields[_local2 - 1][_local1 - 1] == _local3) {
aFields[_local2 - 1][_local1 - 1] = 0;
}
if (aFields[_local2 - 1][_local1] == _local3) {
aFields[_local2 - 1][_local1] = 0;
}
if (aFields[_local2][_local1 - 1] == _local3) {
aFields[_local2][_local1 - 1] = NewNum;
}
if (aFields[_local2][_local1] == _local3) {
aFields[_local2][_local1] = NewNum;
}
if ((aFields[_local2 + 1][_local1 - 1] == 0) || (aFields[_local2 + 1][_local1 - 1] >= 1200)) {
aFields[_local2 + 1][_local1 - 1] = NewNum;
}
if ((aFields[_local2 + 1][_local1] == 0) || (aFields[_local2 + 1][_local1] >= 1200)) {
aFields[_local2 + 1][_local1] = NewNum;
}
} else if (Pkey == "left") {
if (aFields[_local2 - 1][_local1 - 1] == _local3) {
aFields[_local2 - 1][_local1 - 1] = NewNum;
}
if (aFields[_local2 - 1][_local1] == _local3) {
aFields[_local2 - 1][_local1] = 0;
}
if (aFields[_local2][_local1 - 1] == _local3) {
aFields[_local2][_local1 - 1] = NewNum;
}
if (aFields[_local2][_local1] == _local3) {
aFields[_local2][_local1] = 0;
}
if ((aFields[_local2 - 1][_local1 - 2] == 0) || (aFields[_local2 - 1][_local1 - 2] >= 1200)) {
aFields[_local2 - 1][_local1 - 2] = NewNum;
}
if ((aFields[_local2][_local1 - 2] == 0) || (aFields[_local2][_local1 - 2] >= 1200)) {
aFields[_local2][_local1 - 2] = NewNum;
}
} else if (Pkey == "right") {
if (aFields[_local2 - 1][_local1 - 1] == _local3) {
aFields[_local2 - 1][_local1 - 1] = 0;
}
if (aFields[_local2 - 1][_local1] == _local3) {
aFields[_local2 - 1][_local1] = NewNum;
}
if (aFields[_local2][_local1 - 1] == _local3) {
aFields[_local2][_local1 - 1] = 0;
}
if (aFields[_local2][_local1] == _local3) {
aFields[_local2][_local1] = NewNum;
}
if ((aFields[_local2 - 1][_local1 + 1] == 0) || (aFields[_local2 - 1][_local1 + 1] >= 1200)) {
aFields[_local2 - 1][_local1 + 1] = NewNum;
}
if ((aFields[_local2][_local1 + 1] == 0) || (aFields[_local2][_local1 + 1] >= 1200)) {
aFields[_local2][_local1 + 1] = NewNum;
}
} else if (PKey == "middle") {
if ((aFields[_local2 - 1][_local1 - 1] == 0) || (aFields[_local2 - 1][_local1 - 1] >= 1200)) {
aFields[_local2 - 1][_local1 - 1] = _local3;
}
if ((aFields[_local2 - 1][_local1] == 0) || (aFields[_local2 - 1][_local1] >= 1200)) {
aFields[_local2 - 1][_local1] = _local3;
}
if ((aFields[_local2][_local1 - 1] == 0) || (aFields[_local2][_local1 - 1] >= 1200)) {
aFields[_local2][_local1 - 1] = _local3;
}
if ((aFields[_local2][_local1] == 0) || (aFields[_local2][_local1] >= 1200)) {
aFields[_local2][_local1] = _local3;
}
} else if (PKey == "monsterCr") {
if (aFields[_local2 - 1][_local1 - 1] == _local3) {
aFields[_local2 - 1][_local1 - 1] = 0;
}
if (aFields[_local2 - 1][_local1] == _local3) {
aFields[_local2 - 1][_local1] = 0;
}
if (aFields[_local2][_local1 - 1] == _local3) {
aFields[_local2][_local1 - 1] = 0;
}
if (aFields[_local2][_local1] == _local3) {
aFields[_local2][_local1] = 0;
}
}
} else {
if (_local3 == 5) {
var NewNum = _local3;
if (Pkey == "up") {
var NewPX = _local1;
var NewPY = (_local2 - 1);
aFields[_local2][_local1 - 1] = 0;
aFields[_local2][_local1] = 0;
} else if (Pkey == "down") {
var NewPX = _local1;
var NewPY = (_local2 + 1);
aFields[_local2 - 1][_local1 - 1] = 0;
aFields[_local2 - 1][_local1] = 0;
} else if (Pkey == "left") {
var NewPX = (_local1 - 1);
var NewPY = _local2;
aFields[_local2 - 1][_local1] = 0;
aFields[_local2][_local1] = 0;
} else if (Pkey == "right") {
var NewPX = (_local1 + 1);
var NewPY = _local2;
aFields[_local2 - 1][_local1 - 1] = 0;
aFields[_local2][_local1 - 1] = 0;
}
} else if (Pkey == "up") {
var NewPX = _local1;
var NewPY = (_local2 - 1);
var NewNum = (_local3 - 40);
aFields[_local2][_local1 - 1] = 0;
aFields[_local2][_local1] = 0;
} else if (Pkey == "down") {
var NewPX = _local1;
var NewPY = (_local2 + 1);
var NewNum = (_local3 + 40);
aFields[_local2 - 1][_local1 - 1] = 0;
aFields[_local2 - 1][_local1] = 0;
} else if (Pkey == "left") {
var NewPX = (_local1 - 1);
var NewPY = _local2;
var NewNum = (_local3 - 1);
aFields[_local2 - 1][_local1] = 0;
aFields[_local2][_local1] = 0;
} else if (Pkey == "right") {
var NewPX = (_local1 + 1);
var NewPY = _local2;
var NewNum = (_local3 + 1);
aFields[_local2 - 1][_local1 - 1] = 0;
aFields[_local2][_local1 - 1] = 0;
}
aFields[NewPY - 1][NewPX - 1] = NewNum;
aFields[NewPY - 1][NewPX] = NewNum;
aFields[NewPY][NewPX - 1] = NewNum;
aFields[NewPY][NewPX] = NewNum;
}
}
function switchsIpt(pX, pY, TypeNum, defArray) {
var _local1 = TypeNum;
var _local3 = pY;
var _local2 = pX;
aSwitchs[_local3 - 1][_local2 - 1] = _local1;
aSwitchs[_local3 - 1][_local2] = _local1;
aSwitchs[_local3][_local2 - 1] = _local1;
aSwitchs[_local3][_local2] = _local1;
trace((((((((((("R??????????(" + _local2) + "_") + _local3) + ")>") + aSwitchs[_local3][_local2]) + "_") + aSwitchs[_local3][_local2 - 1]) + "_") + aSwitchs[_local3 - 1][_local2]) + "_") + aSwitchs[_local3 - 1][_local2 - 1]);
if (defArray == "aRwarp") {
aRwarp.push(_local1);
trace((("R???????>(" + _local1) + ")") + aRwarp);
} else if (defArray == "aBwarp") {
aBwarp.push(_local1);
trace((("R???????>(" + _local1) + ")") + aBwarp);
} else if (defArray == "aHole") {
aHole.push(_local1);
trace((("R????>(" + _local1) + ")") + aHole);
this.SHoleCng(_local1);
} else if (defArray == "aOway") {
aOway.push(_local1);
trace((("R???????>(" + _local1) + ")") + aOway);
} else if ((defArray == "aTower") || (defArray == "tower_switch")) {
aTower.push(_local1);
}
}
function switchsChk(pX, pY, aOldSNum, Pkey) {
var _local1 = aOldSNum;
var _local3 = this;
var _l3 = pY;
var _local2 = (_l3 * 40) + (pX + 1);
if (Pkey == "up") {
var NewPX = pX;
var NewPY = (_l3 - 1);
_local2 = _local2 - 40;
} else if (Pkey == "down") {
var NewPX = pX;
var NewPY = (_l3 + 1);
_local2 = _local2 + 40;
} else if (Pkey == "left") {
var NewPX = (pX - 1);
var NewPY = _l3;
_local2 = _local2 - 1;
} else if (Pkey == "right") {
var NewPX = (pX + 1);
var NewPY = _l3;
_local2 = _local2 + 1;
} else {
var NewPX = pX;
var NewPY = _l3;
}
var Lv1 = aSwitchs[NewPY - 1][NewPX - 1];
var Lv2 = aSwitchs[NewPY - 1][NewPX];
var Lv3 = aSwitchs[NewPY][NewPX - 1];
var Lv4 = aSwitchs[NewPY][NewPX];
if (Lv1 != _local1.Lv1) {
_local3["switch" + Lv1].PointUp(myName);
_local3["switch" + _local1.Lv1].PointDown(myName);
trace(((((("R?(" + ObjName) + ")>??????(") + Lv1) + ")?????(") + _local1.Lv1) + ")");
}
if (Lv2 != _local1.Lv2) {
_local3["switch" + Lv2].PointUp(myName);
_local3["switch" + _local1.Lv2].PointDown(myName);
trace(((((("R?(" + ObjName) + ")>??????(") + Lv2) + ")?????(") + _local1.Lv2) + ")");
}
if (Lv3 != _local1.Lv3) {
_local3["switch" + Lv3].PointUp(myName);
_local3["switch" + _local1.Lv3].PointDown(myName);
trace(((((("R?(" + ObjName) + ")>??????(") + Lv3) + ")?????(") + _local1.Lv3) + ")");
}
if (Lv4 != _local1.Lv4) {
_local3["switch" + Lv4].PointUp(myName);
_local3["switch" + _local1.Lv4].PointDown(myName);
trace(((((("R?(" + ObjName) + ")>??????(") + Lv4) + ")?????(") + _local1.Lv4) + ")");
}
trace((((((((((("R???????>(" + PX) + "_") + _l3) + ")?") + Lv1) + "_") + Lv2) + "_") + Lv3) + "_") + Lv4);
if (((Lv1 == Lv2) && (Lv3 == Lv4)) && (Lv1 == Lv3)) {
aNewSNum = {Lv1:Lv1, Lv2:Lv2, Lv3:Lv3, Lv4:Lv4, SwitchOn:Lv1};
return(aNewSNum);
}
aNewSNum = {Lv1:Lv1, Lv2:Lv2, Lv3:Lv3, Lv4:Lv4, SwitchOn:"off"};
return(aNewSNum);
}
function SHoleCng(ObjNum) {
var _local2 = this;
var upNum = (ObjNum - 80);
var _local3 = ObjNum + 80;
var Hmax = (aHole.length - 1);
var _local1 = 0;
while (_local1 <= Hmax) {
if (upNum == aHole[_local1]) {
_local2["switch" + ObjNum].HoleCng("hole");
}
if (_local3 == aHole[_local1]) {
_local2["switch" + _local3].HoleCng("hole");
}
_local1++;
}
}
function warpIpt(myArray, myNum) {
var _local3 = myNum;
var _local2 = myArray;
var Wmax = (_local2.length - 1);
var _local1 = 0;
while (_local1 <= Wmax) {
if (_local2[_local1] == _local3) {
return(undefined);
}
_local1++;
}
_local2.push(_local3);
trace((((("R?" + myArray) + "?") + _local3) + "???") + _local2);
return(undefined);
}
function warpOpt(myArray, myNum) {
var _local3 = myNum;
var _local2 = myArray;
var Wmax = (_local2.length - 1);
var _local1 = 0;
while (_local1 <= Wmax) {
if (_local2[_local1] == _local3) {
_local2.splice(_local1, 1);
trace((((("R?" + myArray) + "??") + _local3) + "???>") + _local2);
}
_local1++;
}
}
function warpNChk(myArray, myNum) {
var _local2 = this;
var aWarp = myArray;
var aNewWarp = aWarp.concat(myNum);
aNewWarp.sort(NumCng);
var Wmax = (aNewWarp.length - 1);
var _local3 = 0;
while (_local3 <= Wmax) {
if (aNewWarp[_local3] == myNum) {
var nextP = ((_local3 + 1) % aNewWarp.length);
var _local1 = aNewWarp[nextP];
_local2.warpOpt(myArray, _local1);
var NewXY = _local2.getXY(_local1);
_local2.fieldsIpt(NewXY.pX, NewXY.pY, 3);
var OldXY = _local2.getXY(myNum);
_local2.fieldsIpt(OldXY.pX, OldXY.pY, 0);
return(_local1);
}
_local3++;
}
return(undefined);
}
function OwayCng() {
var _local2 = this;
var _local3 = aOway.length - 1;
var _local1 = 0;
while (_local1 <= _local3) {
_local2["switch" + aOway[_local1]].Lv2Play();
_local1++;
}
}
function towerCng() {
var _local2 = this;
_local2.SE.towerSEPlay();
var _local3 = aTower.length - 1;
var _local1 = 0;
while (_local1 <= _local3) {
_local2["switch" + aTower[_local1]].Lv2Play();
_local1++;
}
}
function ClearPlay() {
var _local1 = _global;
var _local2 = this;
_local2.popCr();
if (_local1.SSFlg == false) {
if (_local1.aSgClear[_local1.SgNum] != true) {
trace(("R?????????>??????????(" + _local1.SgNum) + ")");
_local1.aSgClear[_local1.SgNum] = true;
rutaSave.data.aSgClear = _local1.aSgClear;
}
if (SgNum == allSg) {
_local2.formatSave();
} else {
_local1.SgNum++;
_local2.SgNumsave();
var _local3 = (SgNum - 1) % 10;
if (_local3 == 0) {
_local1.Sg++;
_local2.SgSave();
}
}
trace((("??????" + _local1.Sg) + "_") + _local1.SgNum);
} else if (_local1.aSgClear[_local1.SSFlg] != true) {
trace(("R?????????>??????????(" + _local1.SSFlg) + ")");
_local1.aSgClear[_local1.SSFlg] = true;
rutaSave.data.aSgClear = _local1.aSgClear;
}
_local2.MonsterAllCr();
_local2.SD.clearBGPlay();
}
function MonsterAllCr() {
var _local3 = aMonster.length - 1;
var _local1 = 0;
while (_local1 <= _local3) {
var _local2 = aMonster[_local1];
this["monster" + _local2].Clear();
_local1++;
}
}
function SaveChk() {
var _local2 = _global;
rutaSave = SharedObject.getLocal("yokoruta");
if (rutaSave.data.Sg == undefined) {
this.formatSave();
_local2.aSgClear = [];
var _local1 = 11;
while (_local1 <= 60) {
_local2.aSgClear[_local1] = false;
_local1++;
}
rutaSave.data.aSgClear = _local2.aSgClear;
trace((((("R?save???>(" + _local2.Sg) + "_") + _local2.SgNum) + ")") + rutaSave.data.aSgClear);
} else {
_local2.Sg = rutaSave.data.Sg;
_local2.SgNum = rutaSave.data.SgNum;
_local2.aSgClear = rutaSave.data.aSgClear;
if (_local2.aSgClear[_local2.SgNum] == null) {
_local2.aSgClear = [];
var _local1 = 11;
while (_local1 < _local2.SgNum) {
_local2.aSgClear[_local1] = true;
_local1++;
}
var _local3 = _local2.SgNum;
while (_local3 <= 60) {
_local2.aSgClear[_local3] = false;
_local3++;
}
rutaSave.data.aSgClear = _local2.aSgClear;
}
}
}
function SgNumSave() {
trace(("R????????(" + _global.SgNum) + ")");
rutaSave.data.SgNum = _global.SgNum;
}
function SgSave() {
rutaSave.data.Sg = _global.Sg;
}
function formatSave() {
var _local1 = _global;
_local1.Sg = 1;
rutaSave.data.Sg = _local1.Sg;
_local1.SgNum = 11;
rutaSave.data.SgNum = _local1.SgNum;
}
function SgClearChk() {
var _local1 = _global;
if (_local1.SSFlg == false) {
if (_local1.aSgClear[_local1.SgNum] != true) {
trace(("R?????????>??????????(" + _local1.SgNum) + ")");
_local1.aSgClear[_local1.SgNum] = true;
rutaSave.data.aSgClear = _local1.aSgClear;
}
} else {
trace("?z" + _local1.aSgClear[_local1.SSFlg]);
if (_local1.aSgClear[_local1.SSFlg] != true) {
trace(("R?????????>??????????(" + _local1.SSFlg) + ")");
_local1.aSgClear[_local1.Flg] = true;
rutaSave.data.aSgClear = _local1.aSgClear;
}
}
}
function MnameInput() {
_global.MonsterPoint++;
MNum = 1200 + _global.MonsterPoint;
aMonster.push(MNum);
trace((("R????????(" + ObjName) + ")>?") + aMonster);
return(MNum);
}
function monsterOpt(myNum) {
var _local2 = myNum;
var _local3 = aMonster.length - 1;
var _local1 = 0;
while (_local1 <= _local3) {
if (aMonster[_local1] == _local2) {
aMonster.splice(_local1, 1);
trace((("R??????????" + _local2) + "???>") + aMonster);
}
_local1++;
}
}
function PMChk(pX, pY) {
var _local3 = pY;
var _local2 = pX;
P = this.player.PXY();
if ((P.pX == _local2) && (P.pY == _local3)) {
return("noPlayer");
}
if (((P.pX == _local2) || ((P.pX + 1) == _local2)) || ((P.pX - 1) == _local2)) {
if (P.pY < _local3) {
var MinNum = P.pY;
var MaxNum = _local3;
var PKey = "up";
} else if (P.pY > _local3) {
var MinNum = _local3;
var MaxNum = P.pY;
var PKey = "down";
var _local1 = MinNum;
while (_local1 <= MaxNum) {
if (((((aFields[_local1][_local2] <= 2) && (aFields[_local1][_local2 - 1] <= 2)) || ((aFields[_local1][_local2] >= 1200) && (aFields[_local1][_local2 - 1] >= 1200))) || ((aFields[_local1][_local2] >= 1200) && (aFields[_local1][_local2 - 1] <= 2))) || ((aFields[_local1][_local2] <= 2) && (aFields[_local1][_local2 - 1] >= 1200))) {
_local1++;
continue;
return(PKey);
if (((P.pY == _local3) || ((P.pY + 1) == _local3)) || ((P.pY - 1) == _local3)) {
if (P.px < _local2) {
var MinNum = P.pX;
var MaxNum = _local2;
var PKey = "left";
} else if (P.pX > _local2) {
var MinNum = _local2;
var MaxNum = P.pX;
var PKey = "right";
_local1 = MinNum;
while (_local1 <= MaxNum) {
if (((((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] <= 2)) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] >= 1200))) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] <= 2))) || ((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] >= 1200))) {
_local1++;
continue;
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
}
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
_local1 = MinNum;
while (_local1 <= MaxNum) {
if (((((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] <= 2)) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] >= 1200))) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] <= 2))) || ((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] >= 1200))) {
_local1++;
continue;
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
}
return(PKey);
return("noPlayer");
return("noPlayer");
}
}
}
return(PKey);
if (((P.pY == _local3) || ((P.pY + 1) == _local3)) || ((P.pY - 1) == _local3)) {
if (P.px < _local2) {
var MinNum = P.pX;
var MaxNum = _local2;
var PKey = "left";
} else if (P.pX > _local2) {
var MinNum = _local2;
var MaxNum = P.pX;
var PKey = "right";
_local1 = MinNum;
while (_local1 <= MaxNum) {
if (((((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] <= 2)) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] >= 1200))) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] <= 2))) || ((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] >= 1200))) {
_local1++;
continue;
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
}
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
_local1 = MinNum;
while (_local1 <= MaxNum) {
if (((((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] <= 2)) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] >= 1200))) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] <= 2))) || ((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] >= 1200))) {
_local1++;
continue;
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
}
return(PKey);
return("noPlayer");
return("noPlayer");
}
}
var _local1 = MinNum;
while (_local1 <= MaxNum) {
if (((((aFields[_local1][_local2] <= 2) && (aFields[_local1][_local2 - 1] <= 2)) || ((aFields[_local1][_local2] >= 1200) && (aFields[_local1][_local2 - 1] >= 1200))) || ((aFields[_local1][_local2] >= 1200) && (aFields[_local1][_local2 - 1] <= 2))) || ((aFields[_local1][_local2] <= 2) && (aFields[_local1][_local2 - 1] >= 1200))) {
_local1++;
continue;
return(PKey);
if (((P.pY == _local3) || ((P.pY + 1) == _local3)) || ((P.pY - 1) == _local3)) {
if (P.px < _local2) {
var MinNum = P.pX;
var MaxNum = _local2;
var PKey = "left";
} else if (P.pX > _local2) {
var MinNum = _local2;
var MaxNum = P.pX;
var PKey = "right";
_local1 = MinNum;
while (_local1 <= MaxNum) {
if (((((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] <= 2)) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] >= 1200))) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] <= 2))) || ((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] >= 1200))) {
_local1++;
continue;
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
}
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
_local1 = MinNum;
while (_local1 <= MaxNum) {
if (((((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] <= 2)) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] >= 1200))) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] <= 2))) || ((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] >= 1200))) {
_local1++;
continue;
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
}
return(PKey);
return("noPlayer");
return("noPlayer");
}
}
}
return(PKey);
}
if (((P.pY == _local3) || ((P.pY + 1) == _local3)) || ((P.pY - 1) == _local3)) {
if (P.px < _local2) {
var MinNum = P.pX;
var MaxNum = _local2;
var PKey = "left";
} else if (P.pX > _local2) {
var MinNum = _local2;
var MaxNum = P.pX;
var PKey = "right";
var _local1 = MinNum;
while (_local1 <= MaxNum) {
if (((((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] <= 2)) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] >= 1200))) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] <= 2))) || ((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] >= 1200))) {
_local1++;
continue;
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
}
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
var _local1 = MinNum;
while (_local1 <= MaxNum) {
if (((((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] <= 2)) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] >= 1200))) || ((aFields[_local3][_local1] >= 1200) && (aFields[_local3 - 1][_local1] <= 2))) || ((aFields[_local3][_local1] <= 2) && (aFields[_local3 - 1][_local1] >= 1200))) {
_local1++;
continue;
return(PKey);
return("noPlayer");
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
}
return(PKey);
return("noPlayer");
return("noPlayer");
}
return("noPlayer");
return("noPlayer");
return("noPlayer");
}
function getXY(myNum) {
var _local2 = Math.floor(myNum / 40);
var _local1 = (myNum - 1) % 40;
NumXY = {pX:_local1, pY:_local2};
return(NumXY);
}
function NumCng(a, b) {
Num1 = a;
Num2 = b;
if (Num1 < Num2) {
return(-1);
}
if (Num1 > Num2) {
return(1);
}
return(0);
}
allSg = 20;
this.SaveChk();
Instance of Symbol 17 MovieClip "bk" in Frame 5
onClipEvent (load) {
_alpha = 0;
}
on (press) {
trace("???");
_parent.play();
}
Frame 6
this.stop();
Frame 8
this.allCr();
this.ST._visible = false;
this.ST.HPChk();
Instance of Symbol 220 MovieClip in Frame 8
onClipEvent (enterFrame) {
this.move();
}
Frame 9
this.stop();
Frame 14
this.stop();
Instance of Symbol 264 MovieClip "player" in Frame 14
onClipEvent (enterFrame) {
this.move();
}
Frame 18
this.allCr();
this.ST._visible = true;
Frame 19
this.stop();
Instance of Symbol 271 MovieClip in Frame 19
onClipEvent (enterFrame) {
this.move();
}
Frame 23
this.BK.SgNumPlay("mainBG");
this.allCr();
Instance of Symbol 281 MovieClip in Frame 23
onClipEvent (load) {
fr = 30;
time = 1000;
time_count = 0;
old_timer = getTimer();
fps = (("fps " + fr) + "/") + fr;
}
onClipEvent (enterFrame) {
time_count = time_count + 1;
if ((getTimer() - old_timer) >= time) {
fps = (("fps " + Math.floor((time_count * 1000) / (getTimer() - old_timer))) + "/") + fr;
old_timer = getTimer();
time_count = 0;
}
}
Frame 24
this.stop();
Instance of Symbol 394 MovieClip "player" in Frame 24
onClipEvent (enterFrame) {
this.move();
}
Frame 28
this.BK.SgNumPlay("mainBG");
this.allCr();
Frame 29
this.stop();
Instance of Symbol 394 MovieClip "player" in Frame 29
onClipEvent (enterFrame) {
this.move();
}
Frame 33
this.BK.SgNumPlay("mainBG");
this.allCr();
Frame 34
this.stop();
Instance of Symbol 394 MovieClip "player" in Frame 34
onClipEvent (enterFrame) {
this.move();
}
Frame 38
this.BK.SgNumPlay("mainBG");
this.allCr();
Frame 39
this.stop();
Instance of Symbol 394 MovieClip "player" in Frame 39
onClipEvent (enterFrame) {
this.move();
}
Frame 43
this.BK.SgNumPlay("mainBG");
this.allCr();
Frame 44
this.stop();
Instance of Symbol 394 MovieClip "player" in Frame 44
onClipEvent (enterFrame) {
this.move();
}
Frame 48
this.BK.SgNumPlay("mainBG");
this.allCr();
Frame 49
this.stop();
Instance of Symbol 394 MovieClip "player" in Frame 49
onClipEvent (enterFrame) {
this.move();
}
Frame 53
this.BK.SgNumPlay("mainBG");
this.allCr();
Frame 54
this.stop();
Instance of Symbol 394 MovieClip "player" in Frame 54
onClipEvent (enterFrame) {
this.move();
}
Frame 58
this.BK.SgNumPlay("mainBG");
this.allCr();
Frame 59
this.stop();
Instance of Symbol 394 MovieClip "player" in Frame 59
onClipEvent (enterFrame) {
this.move();
}
Frame 63
this.BK.SgNumPlay("mainBG");
this.allCr();
Frame 64
this.stop();
Instance of Symbol 394 MovieClip "player" in Frame 64
onClipEvent (enterFrame) {
this.move();
}
Frame 68
this.BK.SgNumPlay("mainBG");
this.allCr();
Frame 69
this.stop();
Instance of Symbol 394 MovieClip "player" in Frame 69
onClipEvent (enterFrame) {
this.move();
}
Frame 73
this.allCr();
Frame 222
this.gotoAndPlay("title2");
Symbol 20 MovieClip Frame 1
speed = 4;
this.onEnterFrame = function () {
if (_x < -210) {
this.onEnterFrame = null;
this.removeMovieClip();
} else {
_x = (_x - 10);
}
};
Symbol 21 MovieClip [clear] Frame 1
this.stop();
Symbol 22 MovieClip Frame 1
function movePlay() {
this.onEnterFrame = function () {
if (_y < 240) {
_y = (_y + speed);
} else {
this.onEnterFrame = null;
}
};
}
speed = 60;
Symbol 22 MovieClip Frame 2
this.stop();
Symbol 25 MovieClip Frame 1
function movePlay() {
this.onEnterFrame = downMove;
}
function downMove() {
_y = (_y + speed);
if (_y >= 200) {
this.onEnterFrame = null;
}
}
speed = 40;
Symbol 25 MovieClip Frame 2
this.stop();
Symbol 28 MovieClip Frame 1
function movePlay() {
this.onEnterFrame = downMove;
}
function downMove() {
_y = (_y + speed);
if (_y >= 200) {
this.onEnterFrame = null;
}
}
speed = 40;
Symbol 28 MovieClip Frame 2
this.stop();
Symbol 31 MovieClip Frame 1
function movePlay() {
this.onEnterFrame = downMove;
}
function downMove() {
_y = (_y + speed);
if (_y >= 200) {
this.onEnterFrame = null;
}
}
speed = 40;
Symbol 31 MovieClip Frame 2
this.stop();
Symbol 34 MovieClip Frame 1
function movePlay() {
this.onEnterFrame = downMove;
}
function downMove() {
_y = (_y + speed);
if (_y >= 200) {
this.onEnterFrame = null;
}
}
speed = 40;
Symbol 34 MovieClip Frame 2
this.stop();
Symbol 37 MovieClip Frame 1
function movePlay() {
this.onEnterFrame = downMove;
}
function downMove() {
_y = (_y + speed);
if (_y >= 200) {
this.onEnterFrame = null;
}
}
speed = 40;
Symbol 37 MovieClip Frame 2
this.stop();
Symbol 40 MovieClip Frame 1
function movePlay() {
this.onEnterFrame = downMove;
}
function downMove() {
_y = (_y + speed);
if (_y >= 200) {
this.onEnterFrame = null;
}
}
speed = 40;
Symbol 40 MovieClip Frame 2
this.stop();
Symbol 43 MovieClip Frame 1
function movePlay() {
this.onEnterFrame = downMove;
}
function downMove() {
_y = (_y + speed);
if (_y >= 200) {
this.onEnterFrame = null;
}
}
speed = 40;
Symbol 43 MovieClip Frame 2
this.stop();
Symbol 46 MovieClip Frame 1
function movePlay() {
this.onEnterFrame = downMove;
}
function downMove() {
_y = (_y + speed);
if (_y >= 200) {
this.onEnterFrame = null;
}
}
speed = 40;
Symbol 46 MovieClip Frame 2
this.stop();
Symbol 47 MovieClip [gameover] Frame 1
function randomHall() {
var aNumList = [1, 2, 3, 4, 5, 6, 7, 8];
aNewList = [];
var _local2 = 7;
while (_local2 >= 0) {
var _local1 = Math.floor(Math.random() * _local2);
var _local3 = aNumList[_local1];
aNewList.push(_local3);
aNumList.splice(_local1, 1);
trace(aNewList);
_local2--;
}
this.onEnterFrame = this.HallPlay;
}
function HallPlay() {
if (HNum <= 7) {
var _local1 = aNewList[HNum];
this["GO" + _local1].movePlay();
HNum++;
} else {
HNum = 0;
this.onEnterFrame = null;
}
}
HNum = 0;
Symbol 47 MovieClip [gameover] Frame 2
this.BK.movePlay();
this.randomHall();
Symbol 47 MovieClip [gameover] Frame 35
_parent.ST.HPChk();
_parent.gotoAndPlay("title2");
this.removeMovieClip();
Symbol 73 MovieClip Frame 1
function NumCng() {
var _local1 = _global;
var _local3 = this;
if (_local1.SSFlg == false) {
var _local2 = _local1.SgNum % 10;
_local3.Num2_mc.gotoAndStop("Num" + _local2);
if (_local2 == 0) {
var Num1 = (Math.floor(_local1.SgNum / 10) - 1);
} else {
var Num1 = Math.floor(_local1.SgNum / 10);
}
_local3.Num1_mc.gotoAndStop("Num" + Num1);
} else {
var _local2 = _local1.SSFlg % 10;
_local3.Num2_mc.gotoAndStop("Num" + _local2);
if (_local2 == 0) {
var Num1 = (Math.floor(_local1.SSFlg / 10) - 1);
} else {
var Num1 = Math.floor(_local1.SSFlg / 10);
}
_local3.Num1_mc.gotoAndStop("NUm" + Num1);
}
}
this.NumCng();
Symbol 74 MovieClip [battleBK] Frame 20
_parent.MoveStart();
_parent.SD.battleBGPlay();
this.removeMovieClip();
Symbol 75 MovieClip [mainBK] Frame 21
_parent.MoveStart();
_parent.SD.mainBGPlay();
this.removeMovieClip();
Symbol 84 MovieClip Frame 1
this.stop();
this._alpha = 0;
Symbol 85 MovieClip [iceBall_up] Frame 1
function fieldsChk() {
this.getXY();
aLv1 = _parent.Lv2chk(pX, pY);
trace(((((((((((((((("B?Lv2?????up>(" + aLv1.up1) + "?") + aLv1.up2) + ")down>(") + aLv1.down1) + "?") + aLv1.down2) + ")left>(") + aLv1.left1) + "?") + aLv1.left2) + ")right>(") + aLv1.right1) + "?") + aLv1.right2) + ")");
}
function getXY() {
pX = Math.floor(_x / mcX);
pY = Math.floor(_y / mcY);
}
function getPLNum() {
var _local1 = _global;
_local1.PLowNum++;
if (_local1.PLowNum == 4998) {
_local1.PLowNum = 4000;
}
ObjDep = _local1.PLowNum;
}
function depCng() {
var _local1 = (pY * 10000) + ObjDep;
this.swapDepths(_local1);
}
function NSpeed() {
var _local1 = this;
_local1.HitChk();
moveY = moveY + Speed;
if (moveY >= 16) {
moveY = 0;
movePoint++;
_local1.fieldsChk();
_local1.depCng();
Lv2ST = _local1.moveChk(aLv1.up1, aLv1.up2);
if (Lv2ST != false) {
if (movePoint <= moveMax) {
_local1.upMove();
} else {
_local1.removeMovieClip();
}
} else {
_local1.removeMovieClip();
}
}
}
function moveChk(Num1, Num2) {
var _local1 = Num2;
var _local2 = Num1;
if (_local2 <= 1) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
if (_local2 == 5) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
if (_local2 >= 1200) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
return(false);
}
function upMove() {
this.onEnterFrame = function () {
_y = (_y - Speed);
this.NSpeed();
};
}
function HitChk() {
var _local2 = _parent;
var Mmax = (_local2.aMonster.length - 1);
var _local3 = 0;
while (_local3 <= Mmax) {
var _local1 = _local2.aMonster[_local3];
if (this.IBHit.hitTest(_local2["monster" + _local1].MHit)) {
_local2["monster" + _local1].hitChk();
this.removeMovieClip();
}
_local3++;
}
}
speed = 8;
moveMax = 6;
mcX = (mcY = 16);
ObjDep = 899;
this.getPLNum();
moveY = 16;
this.NSpeed();
Instance of Symbol 82 MovieClip in Symbol 85 MovieClip [iceBall_up] Frame 1
onClipEvent (load) {
_rotation = -90;
}
Symbol 85 MovieClip [iceBall_up] Frame 2
this.stop();
Symbol 86 MovieClip [iceBall_Right] Frame 1
function fieldsChk() {
this.getXY();
aLv1 = _parent.Lv2chk(pX, pY);
trace(((((((((((((((("B?Lv2?????up>(" + aLv1.up1) + "?") + aLv1.up2) + ")down>(") + aLv1.down1) + "?") + aLv1.down2) + ")left>(") + aLv1.left1) + "?") + aLv1.left2) + ")right>(") + aLv1.right1) + "?") + aLv1.right2) + ")");
}
function getXY() {
pX = Math.floor(_x / mcX);
pY = Math.floor(_y / mcY);
}
function getPHNum() {
var _local1 = _global;
_local1.PHiNum++;
if (_local1.PHiNum == 6000) {
_local1.PHiNum = 5002;
}
ObjDep = _local1.PHiNum;
}
function depCng() {
var _local1 = (pY * 10000) + ObjDep;
this.swapDepths(_local1);
}
function NSpeed() {
var _local1 = this;
_local1.HitChk();
moveY = moveY + Speed;
if (moveY >= 16) {
moveY = 0;
movePoint++;
_local1.fieldsChk();
_local1.depCng();
Lv2ST = _local1.moveChk(aLv1.right1, aLv1.right2);
if (Lv2ST != false) {
if (movePoint <= moveMax) {
_local1.rightMove();
} else {
_local1.removeMovieClip();
}
} else {
_local1.removeMovieClip();
}
}
}
function moveChk(Num1, Num2) {
var _local1 = Num2;
var _local2 = Num1;
if (_local2 <= 1) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
if (_local2 == 5) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
if (_local2 >= 1200) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
return(false);
}
function rightMove() {
this.onEnterFrame = function () {
_x = (_x + Speed);
this.NSpeed();
};
}
function HitChk() {
var _local2 = _parent;
var Mmax = (_local2.aMonster.length - 1);
var _local3 = 0;
while (_local3 <= Mmax) {
var _local1 = _local2.aMonster[_local3];
if (this.IBHit.hitTest(_local2["monster" + _local1].MHit)) {
_local2["monster" + _local1].hitChk();
this.removeMovieClip();
}
_local3++;
}
}
speed = 8;
moveMax = 6;
mcX = (mcY = 16);
ObjDep = 901;
this.getPHNum();
moveY = 16;
this.NSpeed();
Symbol 86 MovieClip [iceBall_Right] Frame 3
this.stop();
Symbol 87 MovieClip [iceBall_left] Frame 1
function fieldsChk() {
this.getXY();
aLv1 = _parent.Lv2chk(pX, pY);
trace(((((((((((((((("B?Lv2?????up>(" + aLv1.up1) + "?") + aLv1.up2) + ")down>(") + aLv1.down1) + "?") + aLv1.down2) + ")left>(") + aLv1.left1) + "?") + aLv1.left2) + ")right>(") + aLv1.right1) + "?") + aLv1.right2) + ")");
}
function getXY() {
pX = Math.floor(_x / mcX);
pY = Math.floor(_y / mcY);
}
function getPHNum() {
var _local1 = _global;
_local1.PHiNum++;
if (_local1.PHiNum == 6000) {
_local1.PHiNum = 5002;
}
ObjDep = _local1.PHiNum;
}
function depCng() {
var _local1 = (pY * 10000) + ObjDep;
this.swapDepths(_local1);
}
function NSpeed() {
var _local1 = this;
_local1.HitChk();
moveY = moveY + Speed;
if (moveY >= 16) {
moveY = 0;
movePoint++;
_local1.fieldsChk();
_local1.depCng();
Lv2ST = _local1.moveChk(aLv1.left1, aLv1.left2);
if (Lv2ST != false) {
if (movePoint <= moveMax) {
_local1.leftMove();
} else {
_local1.removeMovieClip();
}
} else {
_local1.removeMovieClip();
}
}
}
function moveChk(Num1, Num2) {
var _local1 = Num2;
var _local2 = Num1;
if (_local2 <= 1) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
if (_local2 == 5) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
if (_local2 >= 1200) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
return(false);
}
function leftMove() {
this.onEnterFrame = function () {
_x = (_x - Speed);
this.NSpeed();
};
}
function HitChk() {
var _local2 = _parent;
var Mmax = (_local2.aMonster.length - 1);
var _local3 = 0;
while (_local3 <= Mmax) {
var _local1 = _local2.aMonster[_local3];
if (this.IBHit.hitTest(_local2["monster" + _local1].MHit)) {
_local2["monster" + _local1].hitChk();
this.removeMovieClip();
}
_local3++;
}
}
speed = 8;
moveMax = 6;
mcX = (mcY = 16);
ObjDep = 901;
this.getPHNum();
moveY = 16;
this.NSpeed();
Instance of Symbol 82 MovieClip in Symbol 87 MovieClip [iceBall_left] Frame 2
onClipEvent (load) {
Xscale = _xscale;
_xscale = (-Xscale);
}
Symbol 87 MovieClip [iceBall_left] Frame 3
this.stop();
Symbol 88 MovieClip [iceBall_down] Frame 1
function fieldsChk() {
this.getXY();
aLv1 = _parent.Lv2chk(pX, pY);
trace(((((((((((((((("B?Lv2?????up>(" + aLv1.up1) + "?") + aLv1.up2) + ")down>(") + aLv1.down1) + "?") + aLv1.down2) + ")left>(") + aLv1.left1) + "?") + aLv1.left2) + ")right>(") + aLv1.right1) + "?") + aLv1.right2) + ")");
}
function getXY() {
pX = Math.floor(_x / mcX);
pY = Math.floor(_y / mcY);
}
function getPHNum() {
var _local1 = _global;
_local1.PHiNum++;
if (_local1.PHiNum == 6000) {
_local1.PHiNum = 5002;
}
ObjDep = _local1.PHiNum;
}
function depCng() {
var _local1 = (pY * 10000) + ObjDep;
this.swapDepths(_local1);
}
function NSpeed() {
var _local1 = this;
_local1.HitChk();
moveY = moveY + Speed;
if (moveY >= 16) {
moveY = 0;
movePoint++;
_local1.fieldsChk();
_local1.depCng();
Lv2ST = _local1.moveChk(aLv1.down1, aLv1.down2);
if (Lv2ST != false) {
if (movePoint <= moveMax) {
_local1.downMove();
} else {
_local1.removeMovieClip();
}
} else {
_local1.removeMovieClip();
}
}
}
function moveChk(Num1, Num2) {
var _local1 = Num2;
var _local2 = Num1;
if (_local2 <= 1) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
if (_local2 == 5) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
if (_local2 >= 1200) {
if (((_local1 <= 2) || (_local1 == 5)) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
return(false);
}
function downMove() {
this.onEnterFrame = function () {
_y = (_y + Speed);
this.NSpeed();
};
}
function HitChk() {
var _local2 = _parent;
var Mmax = (_local2.aMonster.length - 1);
var _local3 = 0;
while (_local3 <= Mmax) {
var _local1 = _local2.aMonster[_local3];
if (this.IBHit.hitTest(_local2["monster" + _local1].MHit)) {
_local2["monster" + _local1].hitChk();
this.removeMovieClip();
}
_local3++;
}
}
speed = 8;
moveMax = 6;
mcX = (mcY = 16);
ObjDep = 901;
this.getPHNum();
moveY = 16;
this.NSpeed();
Instance of Symbol 82 MovieClip in Symbol 88 MovieClip [iceBall_down] Frame 4
onClipEvent (load) {
_rotation = 90;
}
Symbol 88 MovieClip [iceBall_down] Frame 5
this.stop();
Symbol 97 MovieClip [Cr] Frame 5
this.stop();
this.removeMovieClip();
Symbol 145 MovieClip Frame 1
loadedsize = _root.getBytesLoaded();
totalsize = _root.getBytesTotal();
if (loadedsize >= totalsize) {
_parent.play();
} else {
parcent = (loadedsize / totalsize) * 100;
gdownload = Math.round(parcent);
}
Symbol 145 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 148 MovieClip Frame 1
_alpha = 0;
this.stop();
Symbol 151 MovieClip Frame 1
_alpha = 0;
this.stop();
Symbol 154 MovieClip Frame 1
_alpha = 0;
this.stop();
Symbol 161 MovieClip Frame 3
this.stop();
Symbol 161 MovieClip Frame 7
this.stop();
Symbol 182 MovieClip Frame 1
this.stop();
Symbol 196 MovieClip Frame 2
this.stop();
Symbol 197 MovieClip Frame 1
function HPDamage() {
var _local1 = _parent;
_local1.SD.mainBGStop();
HP--;
if (HP == 2) {
_local1.SE.hitSEPlay();
HP3.gotoAndPlay("Cr");
this.retryTime();
} else if (HP == 1) {
_local1.SE.hitSEPlay();
HP2.gotoAndPlay("Cr");
this.retryTime();
} else if (HP <= 0) {
HP1.gotoAndPlay("Cr");
_local1.player.PCr(PCnt);
}
}
function HPOut() {
HP = 0;
HP3.gotoAndPlay("Cr");
HP2.gotoAndPlay("Cr");
HP1.gotoAndPlay("Cr");
_parent.player.PCr(PCnt);
}
function retryTime() {
var _local1 = _global;
var rTime = 0;
this.onEnterFrame = function () {
var _local1 = _global;
rTime++;
if (rTime >= 20) {
this.onEnterFrame = null;
if (_local1.SSFlg == false) {
_parent.gotoAndPlay("Sg" + _local1.SgNum);
} else {
_parent.gotoAndPlay("Sg" + _local1.SSFlg);
}
}
};
}
function HPChk() {
if (HP <= 0) {
PCnt--;
this.ichi.gotoAndStop("Num" + PCnt);
HP = 3;
HP3.gotoAndStop("nomal");
HP2.gotoAndStop("nomal");
HP1.gotoAndStop("nomal");
}
if (PCnt < 0) {
PCnt = 2;
this.ichi.gotoAndStop("Num" + PCnt);
}
}
function getKey() {
this.itemKey.gotoAndStop("KeyOn");
}
function KeyCr() {
this.itemKey.gotoAndStop("KeyOff");
}
_visible = false;
HP = 3;
PCnt = 2;
this.ichi.gotoAndStop("Num" + PCnt);
Symbol 197 MovieClip Frame 2
this.stop();
Symbol 198 MovieClip Frame 1
function mainBGPlay() {
mainBG.start(0, 999);
}
function mainBGStop() {
mainBG.stop();
}
function battleBGPlay() {
battleBG.start(0, 999);
}
function battleBGStop() {
battleBG.stop();
}
function clearBGPlay() {
mainBG.stop();
battleBG.stop();
clearBG.start();
clearBG.onSoundComplete = function () {
if (_global.SSFlg == false) {
_parent.play();
} else {
_parent.gotoAndPlay("Sg_select");
}
};
}
function againPlay() {
var _local1 = _global;
mainBG.stop();
battleBG.stop();
gameoverBG.start();
gameoverBG.onSoundComplete = function () {
var _local1 = _global;
if (_local1.SSFlg == false) {
_parent.gotoAndPlay("Sg" + _local1.SgNum);
} else {
_parent.gotoAndPlay("Sg" + _local1.SSFlg);
}
};
}
function gameoverPlay() {
mainBG.stop();
battleBG.stop();
gameoverBG.start();
gameoverBG.onSoundComplete = function () {
_parent.BK.GOPlay();
};
}
mainBG = new Sound(this);
mainBG.attachSound("mainBGM");
battleBG = new Sound(this);
battleBG.attachSound("battleBGM");
clearBG = new Sound(this);
clearBG.attachSound("clearBGM");
gameoverBG = new Sound(this);
gameoverBG.attachSound("gameoverBGM");
Symbol 198 MovieClip Frame 2
this.stop();
Symbol 199 MovieClip Frame 1
function switchSEPlay() {
switchSE.start();
}
function hitSEPlay() {
hitSE.start();
}
function monsterCrSEPlay() {
monsterCrSE.start();
}
function warpSEPlay() {
warpSE.start();
}
function hallSEPlay() {
hallSE.start();
}
function KeySEPlay() {
keySE.start();
}
function attackSEPlay() {
attackSE.start();
}
function pushSEPlay() {
pushSE.start();
}
function towerSEPlay() {
towerSE.start();
}
switchSE = new Sound(this);
switchSE.attachSound("switchSE");
hitSE = new Sound(this);
hitSE.attachSound("hitSE");
monsterCrSE = new Sound(this);
monsterCrSE.attachSound("monsterCrSE");
warpSE = new Sound(this);
warpSE.attachSound("warpSE");
switchSE = new Sound(this);
switchSE.attachSound("switchSE");
hallSE = new Sound(this);
hallSE.attachSound("hallSE");
keySE = new Sound(this);
keySE.attachSound("keySE");
attackSE = new Sound(this);
attackSE.attachSound("attackSE");
pushSE = new Sound(this);
pushSE.attachSound("pushSE");
towerSE = new Sound(this);
towerSE.attachSound("towerSE");
Symbol 199 MovieClip Frame 2
this.stop();
Symbol 200 MovieClip Frame 1
function mainBKInput() {
nameNum++;
var _local2 = 310000 /* 0x04BAF0 */;
newPop = "mainBK" + nameNum;
var _local1 = {_x:_x, _y:_y};
_parent.attachMovie("mainBK", newPop, _local2, _local1);
}
function battleBKInput() {
nameNum++;
var _local2 = 310000 /* 0x04BAF0 */;
newPop = "battleBK" + nameNum;
var _local1 = {_x:_x, _y:_y};
_parent.attachMovie("battleBK", newPop, _local2, _local1);
}
function gameoverBKInput() {
nameNum++;
var _local2 = 310000 /* 0x04BAF0 */;
newPop = "gameover" + nameNum;
var _local1 = {_x:_x, _y:_y};
_parent.attachMovie("gameover", newPop, _local2, _local1);
}
function clearInput() {
nameNum++;
var _local2 = 310000 /* 0x04BAF0 */;
newPop = "clear" + nameNum;
var _local1 = {_x:_x, _y:_y};
_parent.attachMovie("clear", newPop, _local2, _local1);
}
function SgNumPlay(PBGM) {
if (PBGM == "mainBG") {
this.mainBKInput();
} else if (PBGM == "battleBG") {
this.battleBKInput();
}
_parent.ST.HPChk();
}
function GOPlay() {
this.gameoverBKInput();
}
function CrTxt() {
this.clearInput();
}
this.stop();
Symbol 203 MovieClip Frame 1
function StarRemove() {
var _local1 = this;
_local1._x = Math.floor(Math.random() * 620) + 10;
_local1._y = Math.floor(Math.random() * 390) + 10;
sizeXY = Math.floor(Math.random() * 100);
_local1._xscale = sizeXY + 20;
_local1._yscale = sizeXY + 20;
_local1._alpha = sizeXY;
}
speed = 2;
this._rotation = Math.floor(Math.random() * 360);
this.gotoAndPlay(Math.floor(Math.random() * 6) + 2);
this.onEnterFrame = function () {
this._rotation = this._rotation + speed;
};
this.StarRemove();
Symbol 203 MovieClip Frame 2
this.StarRemove();
Symbol 203 MovieClip Frame 7
this.gotoAndPlay(2);
Symbol 208 MovieClip Frame 1
function getOHNum() {
var _local1 = _global;
_local1.OHiNum++;
if (_local1.OHiNum == 10000) {
_local1.OHiNum = 9000;
}
var _local3 = _local1.OHiNum;
var _local2 = 300000 + _local3;
this.swapDepths(_local2);
}
Symbol 208 MovieClip Frame 2
this.stop();
Symbol 220 MovieClip Frame 1
function menuChk() {
if (_global.SgNum == 11) {
this.gotoAndStop("newGame");
bCelect = 1;
} else {
this.gotoAndStop("continue");
bCelect = 2;
}
}
function move() {
var _local1 = _global;
var _local3 = _parent;
var _local2 = this;
PCnt++;
if (bMove && (PCnt >= 5)) {
if (Key.isDown(90)) {
bMove = false;
_local3.ST._visible = true;
if (bCelect == 1) {
_local1.SSFlg = false;
_local3.formatSave();
trace(("?????" + _local1.SgNum) + "????");
_local3.gotoAndPlay("Sg" + _local1.SgNum);
} else if (bCelect == 2) {
_local1.SSFlg = false;
trace(("?????" + _local1.SgNum) + "????");
_local3.gotoAndPlay("Sg" + _local1.SgNum);
}
} else if (Key.isDown(38) && (bCelect != 1)) {
bMove = false;
if (bCelect == 2) {
_local2.gotoAndStop("newGame");
bCelect = 1;
}
_local2.onEnterFrame = NSpeed;
} else if (Key.isDown(40) && (bCelect != 2)) {
bMove = false;
if (bCelect == 1) {
_local2.gotoAndStop("continue");
bCelect = 2;
}
_local2.onEnterFrame = NSpeed;
}
}
}
function NSpeed() {
mTime = mTime + speed;
if (mTime >= 16) {
mTime = 0;
bMove = true;
this.onEnterFrame = null;
}
}
speed = 4;
bMove = true;
bCelect = 1;
this.menuChk();
Symbol 220 MovieClip Frame 2
this.stop();
Symbol 225 MovieClip Frame 1
function getXY() {
SgXY = {x:_x, y:_y};
return(SgXY);
}
_alpha = 0;
Symbol 225 MovieClip Frame 2
this.stop();
Symbol 248 MovieClip Frame 19
this.stop();
Symbol 259 MovieClip Frame 1
function movePlay() {
this.onEnterFrame = move;
}
function move() {
speed = speed - (_x / deccel);
speed = speed * lossRate;
_x = (_x + speed);
if ((Math.abs(_x) < 1) && (Math.abs(speed) < 1)) {
_x = 0;
this.onEnterFrame = null;
}
}
function NumCng() {
var _local1 = this;
var Num2 = _name.slice(3, 4);
_local1.SNum2.gotoAndStop("Num" + Num2);
var _local2 = _name.slice(2, 3);
if (Num2 == 0) {
_local2 = _local2 - 1;
}
_local1.SNum1.gotoAndStop("Num" + _local2);
var _local3 = _name.slice(2, 4);
trace(((("SgNum(" + _global.SgNum) + ")_nameNum(") + _local3) + ")");
if (_global.SgNum == _local3) {
_local1.gotoAndStop("now");
defType = true;
} else if ((_global.SgNum - 1) < _local3) {
_local1.gotoAndStop("noClear");
defType = false;
} else {
_local1.gotoAndStop("Clear");
defType = true;
}
}
deccel = 4;
lossRate = 0.6;
_x = 240;
this.NumCng();
Symbol 260 MovieClip Frame 1
function SBPlay(SNum) {
var _local1 = this;
var _local2 = _local1;
SgNum = SNum + "0";
_local2.onEnterFrame = function () {
if (SBCnt <= 9) {
SgNum++;
SBCnt++;
this["SB" + SgNum].movePlay();
} else {
_parent.player.moveStart();
this.onEnterFrame = null;
}
};
}
Symbol 260 MovieClip Frame 2
SBCnt = 0;
this.SBPlay(1);
Symbol 260 MovieClip Frame 3
this.stop();
Symbol 260 MovieClip Frame 4
SBCnt = 0;
this.SBPlay(2);
Symbol 260 MovieClip Frame 5
this.stop();
Symbol 260 MovieClip Frame 6
SBCnt = 0;
this.SBPlay(3);
Symbol 260 MovieClip Frame 7
this.stop();
Symbol 260 MovieClip Frame 8
SBCnt = 0;
this.SBPlay(4);
Symbol 260 MovieClip Frame 9
this.stop();
Symbol 260 MovieClip Frame 10
SBCnt = 0;
this.SBPlay(5);
Symbol 260 MovieClip Frame 11
this.stop();
Symbol 264 MovieClip Frame 1
function moveStart() {
bMove = true;
}
function move() {
if (bMove) {
if (Key.isDown(90)) {
trace(("?????" + _global.SgNum) + "????");
_parent.gotoAndPlay("Sg" + _global.SgNum);
}
}
}
speed = 4;
bMove = false;
Sg = _global.Sg;
SgNum = _global.SgNum;
SgXY = _parent["SgP" + Sg].getXY();
_x = SgXY.x;
_y = SgXY.y;
_parent.SBox.gotoAndStop("SB" + Sg);
Symbol 264 MovieClip Frame 2
this.stop();
Symbol 267 MovieClip Frame 1
function NumCng() {
var _local2 = _name.slice(4, 5);
this.SNum2.gotoAndStop("Num" + _local2);
var _local1 = _name.slice(3, 4);
if (_local2 == 0) {
_local1 = _local1 - 1;
}
this.SNum1.gotoAndStop("Num" + _local1);
}
this.stop();
_alpha = 65;
this.NumCng();
Symbol 268 MovieClip Frame 1
this.stop();
var i = 11;
while (i <= 60) {
if (_global.aSgClear[i] == true) {
var CNum = eval ("Sgm" + i);
this.CNum.gotoAndStop("clear");
}
i++;
}
Symbol 271 MovieClip Frame 1
function corsorMove() {
if (_global.SSFlg == true) {
mNum = 11;
mX = 1;
mY = 1;
_x = (defX + (mX * 112));
_y = (defY + (mY * 40));
_parent.Smbox["Sgm" + mNum]._alpha = 100;
oldNum = mNum;
} else {
mNum = _global.SSFlg;
if ((mNum % 10) == 0) {
mX = (mNum / 10) - 1;
mY = 10;
} else {
mX = Math.floor(mNum / 10);
mY = mNum % 10;
}
_x = (defX + (mX * 112));
_y = (defY + (mY * 40));
_parent.Smbox["Sgm" + mNum]._alpha = 100;
oldNum = mNum;
}
}
function move() {
var _local1 = _parent;
var _local2 = this;
PCnt++;
if (bMove && (PCnt >= 5)) {
if (Key.isDown(90)) {
bMove = false;
_global.SSFlg = mNum;
_local1.gotoAndPlay("Sg" + mNum);
} else if (Key.isDown(32)) {
bMove = false;
_local1.gotoAndPlay("title2");
} else if (Key.isDown(38) && (mY != 1)) {
bMove = false;
mY--;
mNum--;
_y = (defY + (mY * 40));
_local1.Smbox["Sgm" + mNum]._alpha = 100;
_local1.Smbox["Sgm" + oldNum]._alpha = 65;
oldNum = mNum;
_local2.onEnterFrame = NSpeed;
} else if (Key.isDown(40) && (mY != 10)) {
bMove = false;
mY++;
mNum++;
_y = (defY + (mY * 40));
_local1.Smbox["Sgm" + mNum]._alpha = 100;
_local1.Smbox["Sgm" + oldNum]._alpha = 65;
oldNum = mNum;
_local2.onEnterFrame = NSpeed;
} else if (Key.isDown(37) && (mX != 1)) {
bMove = false;
mX--;
mNum = mNum - 10;
_x = (defX + (mX * 112));
_local1.Smbox["Sgm" + mNum]._alpha = 100;
_local1.Smbox["Sgm" + oldNum]._alpha = 65;
oldNum = mNum;
_local2.onEnterFrame = NSpeed;
} else if (Key.isDown(39) && (mX != 5)) {
bMove = false;
mX++;
mNum = mNum + 10;
_x = (defX + (mX * 112));
_local1.Smbox["Sgm" + mNum]._alpha = 100;
_local1.Smbox["Sgm" + oldNum]._alpha = 65;
oldNum = mNum;
_local2.onEnterFrame = NSpeed;
}
}
}
function NSpeed() {
mTime = mTime + speed;
if (mTime >= 16) {
mTime = 0;
bMove = true;
this.onEnterFrame = null;
}
}
this.stop();
defX = _x - 112;
defY = _y - 40;
speed = 4;
bMove = true;
this.corsorMove();
Symbol 286 MovieClip Frame 1
function fieldsInput() {
this.getXY();
_parent.fieldsIpt(pX, pY, 3);
}
function getXY() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
myNum = (pY * 40) + (pX + 1);
_name = ("Obj" + myNum);
}
function getPLONum() {
var _local1 = _global;
_local1.PLowObjNum++;
if (_local1.PLowObjNum == 4000) {
_local1.PLowObjNum = 1000;
}
ObjDep = _local1.PLowObjNum;
}
function DepInput() {
var _local1 = ((30 - pY) * 10000) + ObjDep;
this.swapDepths(_local1);
}
mcXY = 16;
this.fieldsInput();
this.getPLONum();
this.DepInput();
Symbol 286 MovieClip Frame 2
this.stop();
Symbol 355 MovieClip Frame 1
_parent.warpSEPlay();
Symbol 355 MovieClip Frame 7
this.stop();
_parent.warpPlay();
Symbol 356 MovieClip Frame 7
this.stop();
_parent.animeEnd();
Symbol 365 MovieClip Frame 12
this.stop();
Symbol 374 MovieClip Frame 1
_parent.PCrtxt();
Symbol 374 MovieClip Frame 10
this.stop();
Symbol 394 MovieClip Frame 1
function fieldsInput() {
this.getXY();
_name = "player";
_parent.fieldsIpt(pX, pY, myName);
}
function fieldsChk() {
this.getXY();
aLv1 = _parent.Lv2chk(pX, pY);
}
function getXY() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
PNum = (pY * 40) + (pX + 1);
}
function depCng() {
myDep = ((30 - pY) * 10000) + ObjDep;
trace(("P???(" + myDep) + ")");
this.swapDepths(myDep);
}
function animeEnd() {
bMove = true;
}
function PXY() {
var _local1 = {pX:pX, pY:pY};
return(_local1);
}
function PStart() {
bMove = true;
bSpace = true;
}
function PCrtxt() {
_parent.BK.CrTxt();
}
function warpSEPlay() {
_parent.SE.warpSEPlay();
}
function PCr(PCnt) {
var _local1 = this;
_local1.onEnterFrame = null;
bMove = false;
PCnt--;
if (PCnt >= 0) {
_parent.SD.againPlay();
_local1.gotoAndStop("Miss");
} else {
_parent.SD.gameoverPlay();
_local1.gotoAndStop("GameOver");
}
}
function PRasate() {
_parent.gotoAndPlay("Sg" + _global.SgNum);
}
function PGameOver() {
_parent.BK.GOPlay();
}
function ladderChk() {
if ((((oldLv1 != 1) && (oldLv2 != 1)) && (oldLv3 != 1)) && (oldLv4 != 1)) {
bNomalFlg = true;
} else if ((((oldLv1 == 1) && (oldLv2 == 1)) && (oldLv3 == 1)) && (oldLv4 == 1)) {
bNomalFlg = false;
}
trace("P ??????Flg" + bNomalFlg);
}
function warpPlay() {
var _local1 = this;
bWarp = false;
var _local2 = _parent["switch" + aNewSNum.SwitchOn].Lv2Play();
_parent["switch" + _local2.ObjNum].WarpAnime();
_x = _local2.pX;
_y = _local2.pY;
_local1.gotoAndStop("warpOut");
_local1.fieldsInput();
_local1.depCng();
oldSwitch = _local2.ObjNum;
oldSType = "warp";
_local1.switchChk("middle");
}
function towerSwitchPlay() {
bTowerSwitch = false;
_parent["switch" + aNewSNum.SwitchOn].OnPlay();
}
function GgatePlay() {
bSpace = false;
this.onEnterFrame = null;
_parent.ClearPlay();
this.gotoAndStop("Clear");
}
function OwayPlay() {
bOway = false;
var _local1 = _parent["switch" + aNewSNum.SwitchOn].onPlay(myName);
this.OwayChk(_local1);
oldOwayXY = pNum;
bOwayChk = true;
}
function OwayStop() {
if (oldOwayXY != pNum) {
bOwayChk = false;
this.OwayOff();
_parent["switch" + oldSwitch].offPlay();
oldSwitch = 0;
}
}
function OwayOff() {
bUp = true;
bDown = true;
bLeft = true;
bRight = true;
}
function OwayCng(OwayMove) {
this.OwayOff();
this.OwayChk(OwayMove);
}
function OwayChk(OwayMove) {
var _local1 = OwayMove;
if (_local1 == "wayX") {
bUp = false;
bDown = false;
} else if (_local1 == "wayY") {
bLeft = false;
bRight = false;
} else if (_local1 == "wayUR") {
bDown = false;
bLeft = false;
} else if (_local1 == "wayRD") {
bLeft = false;
bUp = false;
} else if (_local1 == "wayDL") {
bUp = false;
bRight = false;
} else if (_local1 == "wayLU") {
bRight = false;
bDown = false;
}
}
function OwaySwitchPlay() {
bOwaySwitch = false;
_parent["switch" + aNewSNum.SwitchOn].onPlay();
_parent.OwayCng();
}
function switchChk(Pkey) {
var _local2 = _parent;
var aOldSNum = {Lv1:oldLv1, Lv2:oldLv2, Lv3:oldLv3, Lv4:oldLv4};
aNewSNum = _local2.switchsChk(pX, pY, aOldSNum, Pkey);
oldLv1 = aNewSNum.Lv1;
oldLv2 = aNewSNum.Lv2;
oldLv3 = aNewSNum.Lv3;
oldLv4 = aNewSNum.Lv4;
this.ladderChk();
if (aNewSNum.SwitchOn != "off") {
if ((aNewSNum.SwitchOn != 0) && (aNewSNum.SwitchOn != oldSwitch)) {
trace((((("P??????????>(" + pX) + "_") + pY) + ")") + aNewSNum.SwitchOn);
if (oldSwitch != 0) {
this.OldSwitchChk();
}
var _local1 = _local2["switch" + aNewSNum.SwitchOn].defChk();
oldSwitch = aNewSNum.SwitchOn;
oldSType = _local1;
if (_local1 == "warp") {
var _local3 = _local2["switch" + aNewSNum.SwitchOn].arrayChk();
var arrayNum = _local2[_local3].length;
if (arrayNum >= 1) {
bWarp = true;
}
} else if (_local1 == "Oway") {
bOway = true;
} else if (_local1 == "Oway_switch") {
bOwaySwitch = true;
} else if (_local1 == "tower_switch") {
bTowerSwitch = true;
} else if (_local1 == "Ggate") {
if (_global.KeyPoint <= 0) {
bGgate = true;
} else {
oldSwitch = 0;
}
}
} else {
if ((oldSwitch != 0) && (aNewSNum.SwitchOn == 0)) {
this.OldSwitchChk();
}
oldSwitch = aNewSNum.SwitchOn;
}
}
}
function OldSwitchChk() {
if ((oldSType == "Oway_switch") || (oldSType == "tower_switch")) {
_parent["switch" + oldSwitch].offPlay();
}
}
function oSpeed() {
var _local1 = this;
movePoint = movePoint - speed;
pWork = pWork + speed;
if (pWork == 16) {
pWork = 0;
_local1.fieldsChk();
_local1.depCng();
if (bWarp) {
_local1.onEnterFrame = null;
_local1.gotoAndStop("warpIn");
} else {
if (bOway) {
_local1.OwayPlay();
} else if (bOwayChk) {
_local1.OwayStop();
}
if (bOwaySwitch) {
_local1.OwaySwitchPlay();
}
if (bTowerSwitch) {
_local1.TowerSwitchPlay();
}
if (bGgate) {
_local1.GgatePlay();
} else {
if (movePoint > 0) {
movePoint = -movePoint;
trace("?? " + movePoint);
} else {
nowKey = null;
}
bMove = true;
_local1.onEnterFrame = null;
}
}
}
}
function move() {
var _local1 = this;
var _local3 = _parent;
if (Key.isDown(32) && (bSpace)) {
bSpace = false;
bMove = false;
_local1.onEnterFrame = null;
_local3.ST.HPDamage();
}
if (bMove) {
_local1.fieldsChk();
if (bNomalFlg == false) {
if (Key.isDown(38) && (nowKey == null)) {
trace((("P?????>" + aLv1.up1) + "?") + aLv1.up2);
var _local2 = _local1.ladderMoveChk(aLv1.up1, aLv1.up2, "up");
if ((_local2 == "nomal") || (_local2 == "ladder")) {
_local1.gotoAndStop("ladderUp");
_local1.upMove(4, 16);
} else if (_local2 == "ObjChk") {
ObjChk = _local3["Obj" + aLv1.up1].Lv2Chk("up");
if ((ObjChk == "item") || (ObjChk == "BrStone")) {
_local1.gotoAndStop("ladderUp");
_local3["Obj" + aLv1.up1].Lv2Play();
_local1.upMove(4, 16);
}
}
} else if (Key.isDown(40) && (nowKey == null)) {
trace((("P?????>" + aLv1.down1) + "?") + aLv1.down2);
var _local2 = _local1.ladderMoveChk(aLv1.down1, aLv1.down2, "down");
if ((_local2 == "nomal") || (_local2 == "ladder")) {
_local1.gotoAndStop("ladderDown");
_local1.downMove(4, 16);
} else if (_local2 == "ObjChk") {
ObjChk = _local3["Obj" + aLv1.down1].Lv2Chk("down");
if ((ObjChk == "item") || (ObjChk == "BrStone")) {
_local1.gotoAndStop("laderDown");
_local3["Obj" + aLv1.down1].Lv2Play();
_local1.downMove(4, 16);
}
}
} else if (Key.isDown(37) || (nowKey == "left")) {
OldKey = "left";
var _local2 = _local1.ladderMoveChk(aLv1.left1, aLv1.left2, "left");
if (_local2 == "nomal") {
if (nowKey == null) {
_local1.gotoAndStop("ladderLeft");
} else {
_local1.gotoAndStop("Wleft");
}
_local1.leftMove(4, 32);
} else if ((_local2 == "ladder") || (_local2 == "half")) {
_local1.gotoAndStop("ladderLeft");
_local1.leftMove(4, 32);
} else if (_local2 == "ObjChk") {
ObjChk = _local3["Obj" + aLv1.left1].Lv2Chk("left");
if ((ObjChk == "item") || (ObjChk == "BrStone")) {
_local1.gotoAndStop("ladderLeft");
_local3["Obj" + aLv1.left1].Lv2Play();
_local1.leftMove(4, 32);
} else if ((ObjChk == "Slack") || (ObjChk == "Ice")) {
if (nowKey == null) {
_local1.gotoAndStop("ladderLeft");
} else {
_local1.gotoAndStop("PLeft");
}
_local3["Obj" + aLv1.left1].Lv2Play("left");
_local1.leftMove(2, 32);
}
} else {
movePoint = 0;
nowKey = null;
}
} else if (Key.isDown(39) || (nowKey == "right")) {
OldKey = "right";
trace((("P?????>" + aLv1.right1) + "?") + aLv1.right2);
var _local2 = _local1.ladderMoveChk(aLv1.right1, aLv1.right2, "right");
if (_local2 == "nomal") {
if (nowKey == null) {
_local1.gotoAndStop("ladderRight");
} else {
_local1.gotoAndStop("Wright");
}
_local1.rightMove(4, 32);
} else if ((_local2 == "ladder") || (_local2 == "half")) {
_local1.gotoAndStop("ladderRight");
_local1.rightMove(4, 32);
} else if (_local2 == "ObjChk") {
ObjChk = _local3["Obj" + aLv1.right1].Lv2Chk("right");
if ((ObjChk == "item") || (ObjChk == "BrStone")) {
_local1.gotoAndStop("ladderRight");
_local3["Obj" + aLv1.right1].Lv2Play();
_local1.rightMove(4, 32);
} else if ((ObjChk == "Slack") || (ObjChk == "Ice")) {
if (nowKey == null) {
_local1.gotoAndStop("ladderRight");
} else {
_local1.gotoAndStop("PRight");
}
_local3["Obj" + aLv1.right1].Lv2Play("right");
_local1.rightMove(2, 32);
}
} else {
movePoint = 0;
nowKey = null;
}
} else {
_local1.gotoAndStop("ladderStop");
}
} else {
trace((((((("P?????(" + pX) + "_") + pY) + ")>") + aLv1.down1) + "?") + aLv1.down2);
var _local2 = _local1.moveChk(aLv1.down1, aLv1.down2, "hall");
trace("(^0^)" + _local2);
if (_local2 == "nomal") {
trace("P ?????");
_local1.gotoAndStop(OldKey);
_local1.downMove(4, 16);
} else if (_local2 == "out") {
_local3.ST.HPOut();
} else if (Key.isDown(38)) {
if ((((oldLv1 == 1) && (oldLv2 == 1)) && (oldLv3 == 1)) && (oldLv4 == 1)) {
_local1.gotoAndStop("ladderUp");
_local1.upMove(4, 16);
bNomalFlg = false;
}
} else if (Key.isDown(40)) {
trace((("P?????>" + aLv1.down1) + "?") + aLv1.down2);
_local2 = _local1.moveChk(aLv1.down1, aLv1.down2, "down");
if (_local2 == "ladder") {
_local1.gotoAndStop("ladderDown");
_local1.downMove(4, 16);
bNomalFlg = false;
} else if (_local2 == "ObjChk") {
ObjChk = _local3["Obj" + aLv1.down1].Lv2Chk("down");
if (ObjChk == "BrStone") {
_local3["Obj" + aLv1.down1].Lv2Play();
_local1.downMove(4, 16);
}
}
} else if (Key.isDown(37)) {
OldKey = "left";
if (bLeft) {
trace((("P?????>" + aLv1.left1) + "?") + aLv1.left2);
_local2 = _local1.moveChk(aLv1.left1, aLv1.left2, "left");
if ((_local2 == "nomal") || (_local2 == "ladder")) {
_local1.gotoAndStop("WLeft");
_local1.leftMove(4, 16);
} else if (_local2 == "ObjChk") {
ObjChk = _local3["Obj" + aLv1.left1].Lv2Chk("left");
if ((ObjChk == "Slack") || (ObjChk == "Ice")) {
gotoAndStop ("PLeft");
_local3["Obj" + aLv1.left1].Lv2Play("left");
_local1.leftMove(2, 16);
} else if ((ObjChk == "item") || (ObjChk == "BrStone")) {
_local1.gotoAndStop("WLeft");
_local3["Obj" + aLv1.left1].Lv2Play();
_local1.leftMove(4, 16);
}
}
} else {
_local1.gotoAndStop("WLeft");
}
} else if (Key.isDown(39)) {
OldKey = "right";
if (bRight) {
trace((("P?????>" + aLv1.right1) + "?") + aLv1.right2);
_local2 = _local1.moveChk(aLv1.right1, aLv1.right2, "right");
if ((_local2 == "nomal") || (_local2 == "ladder")) {
_local1.gotoAndStop("WRight");
_local1.rightMove(4, 16);
} else if (_local2 == "ObjChk") {
ObjChk = _local3["Obj" + aLv1.right1].Lv2Chk("right");
if ((ObjChk == "Slack") || (ObjChk == "Ice")) {
gotoAndStop ("PRight");
_local3["Obj" + aLv1.right1].Lv2Play("right");
_local1.rightMove(2, 16);
} else if ((ObjChk == "item") || (ObjChk == "BrStone")) {
_local1.gotoAndStop("WRight");
_local3["Obj" + aLv1.right1].Lv2Play();
_local1.rightMove(4, 16);
}
}
} else {
_local1.gotoAndStop("WRight");
}
} else if (OldKey == "left") {
_local1.gotoAndStop("left");
} else if (OldKey == "right") {
_local1.gotoAndStop("right");
}
}
}
}
function ladderMoveChk(Num1, Num2) {
var _local1 = Num2;
var _local2 = Num1;
if (_local2 == 0) {
if (_local1 == 0) {
return("nomal");
}
if (_local1 == 1) {
return("half");
}
} else if (_local2 == 1) {
if (_local1 == 1) {
return("ladder");
}
if (_local1 == 0) {
return("half");
}
} else {
if ((_local2 == _local1) && (_local2 > 4)) {
return("ObjChk");
}
return(false);
}
return(undefined);
}
function moveChk(Num1, Num2, Pkey) {
var _local2 = Num2;
var _local1 = Num1;
if (_local1 == 0) {
if (_local2 == 0) {
return("nomal");
}
if (Num == 4) {
return("out");
}
} else {
if ((_local1 == 1) && (_local2 == 1)) {
return("ladder");
}
if ((_local1 == _local2) && (_local1 > 4)) {
return("ObjChk");
}
if (_local1 == 4) {
if ((_local2 == 0) || (_local2 == 4)) {
return("out");
}
return(false);
}
return(false);
}
return(undefined);
}
function upMove(pSpeed, pPoint) {
var _local1 = this;
_parent.fieldsMove(pX, pY, myName, "up");
_local1.switchChk("up");
bMove = false;
nowKey = "up";
movePoint = movePoint + pPoint;
speed = pSpeed;
_local1.onEnterFrame = function () {
_y = (_y - pSpeed);
this.oSpeed();
};
}
function downMove(pSpeed, pPoint) {
var _local1 = this;
_parent.fieldsMove(pX, pY, myName, "down");
_local1.switchChk("down");
bMove = false;
nowKey = "down";
movePoint = movePoint + pPoint;
speed = pSpeed;
_local1.onEnterFrame = function () {
_y = (_y + pSpeed);
this.oSpeed();
};
}
function leftMove(pSpeed, pPoint) {
var _local1 = this;
_parent.fieldsMove(pX, pY, myName, "left");
_local1.switchChk("left");
bMove = false;
nowKey = "left";
movePoint = movePoint + pPoint;
speed = pSpeed;
_local1.onEnterFrame = function () {
_x = (_x - pSpeed);
this.oSpeed();
};
}
function rightMove(pSpeed, pPoint) {
var _local1 = this;
_parent.fieldsMove(pX, pY, myName, "right");
_local1.switchChk("right");
bMove = false;
nowKey = "right";
movePoint = movePoint + pPoint;
speed = pSpeed;
_local1.onEnterFrame = function () {
_x = (_x + pSpeed);
this.oSpeed();
};
}
mcXY = 16;
myName = 2;
bMove = false;
bShoot = true;
bHTimer = true;
bWarp = false;
bOway = false;
bOwayChk = false;
bOwaySwitch = false;
bTowerSwitch = false;
bGgate = false;
oldSwitch = 0;
oldType = 0;
oldLv1 = 0;
oldLv2 = 0;
oldLv3 = 0;
oldLv4 = 0;
bUp = true;
bDown = true;
bLeft = true;
bRight = true;
ObjDep = 5000;
this.gotoAndStop("left");
OldKey = "left";
HitPoint = 50;
movePoint = 0;
bSpace = false;
this.fieldsInput();
this.depCng();
Symbol 395 MovieClip Frame 1
function fieldsInput() {
this.nameChg();
_parent.fieldsIpt(pX, pY, 5);
aLv1 = _parent.Lv2chk(pX, pY);
}
function fieldsChk() {
this.nameChg();
aLv1 = _parent.Lv2chk(pX, pY);
}
function nameChg() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
myNum = (pY * 40) + (pX + 1);
myName = "Obj5";
_name = myName;
trace("K?????>" + _name);
}
function getPHONum() {
var _local1 = _global;
_local1.PHiObjNum++;
if (_local1.PHiObjNum == 9000) {
_local1.PHiObjNum = 6000;
}
ObjDep = _local1.PHiObjNum;
}
function depCng() {
var _local1 = ((30 - pY) * 10000) + ObjDep;
this.swapDepths(_local1);
}
function Lv2Chk() {
if (bMove) {
return(defType);
}
trace("S ????????????");
return(false);
}
function Lv2play() {
_parent.SE.KeySEPlay();
_global.KeyPoint--;
_parent.ST.getKey();
this.ObjCr();
}
function ObjCr() {
_parent.fieldsIpt(pX, pY, 0);
this.removeMovieClip();
}
function downMove() {
var _local1 = this;
_parent.fieldsMove(pX, pY, 5, "down");
_local1.switchChk("down");
movePoint = 4;
_local1.onEnterFrame = function () {
_y = (_y + Speed);
this.oSpeed();
};
}
function oSpeed() {
var _local1 = this;
movePoint--;
if (movePoint <= 0) {
_local1.fieldsChk();
_local1.depCng();
_local1.onEnterFrame = _local1.hallChk;
}
}
function hallChk() {
var _local1 = this;
aLv1 = _parent.Lv2chk(pX, pY);
var _local2 = _local1.aFieldsChk(aLv1.down1, aLv1.down2);
if (_local2) {
bMove = false;
_local1.downMove();
} else if (_local2 == "Cr") {
_local1.Lv2play();
_local1.ObjCr();
} else {
bMove = true;
}
}
function aFieldsChk(Num1, Num2) {
if ((Num1 == 0) && (Num2 == 0)) {
return(true);
}
if ((Num1 == 2) && (Num2 == 2)) {
return("Cr");
}
return(false);
}
mcXY = 16;
speed = 4;
bMove = true;
defType = "item";
_global.KeyPoint++;
this.fieldsInput();
this.getPHONum();
this.depCng();
this.onEnterFrame = hallChk;
Symbol 395 MovieClip Frame 2
this.stop();
Symbol 406 MovieClip Frame 1
_parent.warpSEPlay();
Symbol 406 MovieClip Frame 7
this.stop();
_parent.warpPlay();
Symbol 409 MovieClip Frame 7
_parent.HitChk();
_parent.animeEnd();
_parent.gotoAndStop("nomal");
Symbol 410 MovieClip Frame 1
function fieldsInput() {
this.nameChg();
_parent.fieldsIpt(pX, pY, myNum);
aLv1 = _parent.Lv2chk(pX, pY);
}
function fieldsChk() {
this.nameChg();
aLv1 = _parent.Lv2chk(pX, pY);
}
function nameChg() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
myNum = (pY * 40) + (pX + 1);
myName = "Obj" + myNum;
_name = myName;
trace("S????>" + _name);
}
function getPLONum() {
var _local1 = _global;
_local1.PLowObjNum++;
if (_local1.PLowObjNum == 4000) {
_local1.PLowObjNum = 1000;
}
ObjDep = _local1.PLowObjNum;
}
function depCng() {
var _local1 = ((30 - pY) * 10000) + ObjDep;
this.swapDepths(_local1);
}
function animeEnd() {
bMove = true;
}
function ObjCr() {
var _local1 = _parent;
_local1.SE.hallSEPlay();
_local1["switch" + myNum].ObjIn(defType);
_local1.fieldsIpt(pX, pY, 0);
this.removeMovieClip();
}
function warpSEPlay() {
_parent.SE.warpSEPlay();
}
function warpPlay() {
var _local1 = this;
bWarp = false;
var _local2 = _parent["switch" + aNewSNum.SwitchOn].Lv2Play();
_x = _local2.pX;
_y = _local2.pY;
_local1.gotoAndStop("warpOut");
_local1.fieldsInput();
_local1.depCng();
oldSwitch = _local2.ObjNum;
oldSType = "warp";
_local1.switchChk("middle");
}
function holePlay() {
this.gotoAndStop("hall");
var _local1 = myNum + 80;
_parent["switch" + _local1].DHoleChk(defType);
this.onEnterFrame = null;
}
function towerSwitchPlay() {
bTowerSwitch = false;
_parent["switch" + aNewSNum.SwitchOn].onPlay();
}
function OwayPlay() {
bOway = false;
var _local1 = _parent["switch" + aNewSNum.SwitchOn].OnPlay(myNum);
this.OwayChk(_local1);
oldOwayXY = myNum;
bOwayChk = true;
}
function OwayStop() {
if (oldOwayXY != myNum) {
bOwayChk = false;
this.OwayOff();
_parent["switch" + oldSwitch].offPlay();
oldSwitch = 0;
}
}
function OwayOff() {
bUp = true;
bDown = true;
bLeft = true;
bRight = true;
}
function OwayCng(OwayMove) {
this.OwayOff();
this.OwayChk(OwayMove);
}
function OwayChk(OwayMove) {
var _local1 = OwayMove;
if (_local1 == "wayX") {
bUp = false;
bDown = false;
} else if (_local1 == "wayY") {
bLeft = false;
bRight = false;
} else if (_local1 == "wayUR") {
bDown = false;
bLeft = false;
} else if (_local1 == "wayRD") {
bLeft = false;
bUp = false;
} else if (_local1 == "wayDL") {
bUp = false;
bRight = false;
} else if (_local1 == "wayLU") {
bRight = false;
bDown = false;
}
}
function OwaySwitchPlay() {
bOwaySwitch = false;
_parent["switch" + aNewSNum.SwitchOn].onPlay();
_parent.OwayCng();
}
function switchChk(Pkey) {
var _local2 = {Lv1:oldLv1, Lv2:oldLv2, Lv3:oldLv3, Lv4:oldLv4};
aNewSNum = _parent.switchsChk(pX, pY, _local2, Pkey);
oldLv1 = aNewSNum.Lv1;
oldLv2 = aNewSNum.Lv2;
oldLv3 = aNewSNum.Lv3;
oldLv4 = aNewSNum.Lv4;
if (aNewSNum.SwitchOn != "off") {
trace((("??" + aNewSNum.SwitchOn) + "_") + oldSwitch);
if ((aNewSNum.SwitchOn != 0) && (aNewSNum.SwitchOn != oldSwitch)) {
if (oldSwitch != 0) {
this.OldSwitchChk();
}
var _local1 = _parent["switch" + aNewSNum.SwitchOn].defChk();
oldSwitch = aNewSNum.SwitchOn;
oldSType = _local1;
if (_local1 == "warp") {
bWarp = true;
} else if (_local1 == "hole") {
bHole = true;
} else if (_local1 == "Oway") {
bOway = true;
} else if (_local1 == "Oway_switch") {
bOwaySwitch = true;
} else if (_local1 == "tower_switch") {
bTowerSwitch = true;
}
} else {
if ((oldSwitch != 0) && (aNewSNum.SwitchOn == 0)) {
this.OldSwitchChk();
}
oldSwitch = aNewSNum.SwitchOn;
}
}
}
function OldSwitchChk() {
if (((oldSType == "warp") || (oldSType == "Oway_switch")) || (oldSType == "tower_switch")) {
_parent["switch" + oldSwitch].offPlay();
}
}
function Lv2Chk(PKey) {
if (bMove) {
var _local1 = _parent.Lv2chk(pX, pY);
if ((Pkey == "left") && (bLeft)) {
var _local2 = this.moveChk(_local1.left1, _local1.left2);
return(_local2);
}
if ((Pkey == "right") && (bRight)) {
var _local2 = this.moveChk(_local1.right1, _local1.right2);
return(_local2);
}
} else {
trace("S ????????????");
return(false);
}
return(undefined);
}
function Lv2Play(PKey) {
bMove = false;
if (Pkey == "left") {
this.leftMove();
} else if (Pkey == "right") {
this.rightMove();
}
}
function moveChk(Num1, Num2) {
if (Num1 == 0) {
if (Num2 == 0) {
return(defType);
}
return(false);
}
return(false);
}
function downMove() {
var _local1 = this;
_parent.fieldsMove(pX, pY, myNum, "down");
_local1.switchChk("down");
movePoint = 4;
_local1.onEnterFrame = function () {
_y = (_y + Speed);
this.oSpeed();
};
}
function leftMove() {
var _local1 = this;
_parent.SE.pushSEPlay();
_parent.fieldsMove(pX, pY, myNum, "left");
_local1.switchChk("left");
movePoint = 8;
_local1.onEnterFrame = function () {
_x = (_x - LowSpeed);
this.oSpeed();
};
}
function rightMove() {
var _local1 = this;
_parent.SE.pushSEPlay();
_parent.fieldsMove(pX, pY, myNum, "right");
_local1.switchChk("right");
movePoint = 8;
_local1.onEnterFrame = function () {
_x = (_x + LowSpeed);
this.oSpeed();
};
}
function oSpeed() {
var _local1 = this;
movePoint--;
if (movePoint <= 0) {
_local1.fieldsChk();
_local1.depCng();
if (bWarp) {
_local1.onEnterFrame = null;
_local1.gotoAndStop("warpIn");
} else if (bHole) {
holePlay();
} else {
if (bOway) {
_local1.OwayPlay();
} else if (bOwayChk) {
_local1.OwayStop();
}
if (bOwaySwitch) {
_local1.OwaySwitchPlay();
}
if (bTowerSwitch) {
_local1.TowerSwitchPlay();
}
_local1.onEnterFrame = _local1.hallChk;
}
}
}
function hallChk() {
aLv1 = _parent.Lv2chk(pX, pY);
var _local1 = this.aFieldsChk(aLv1.down1, aLv1.down2);
if (_local1) {
bMove = false;
this.downMove();
} else {
bMove = true;
}
}
function aFieldsChk(Num1, Num2) {
if (Num1 == 0) {
if (Num2 == 0) {
return(true);
}
return(false);
}
return(false);
}
speed = 4;
LowSpeed = 2;
mcXY = 16;
defType = "Slack";
bMove = false;
movePoint = 0;
bWarp = false;
bOway = false;
bOwayChk = false;
bOwaySwitch = false;
oldSwitch = 0;
oldType = 0;
oldLv1 = 0;
oldLv2 = 0;
oldLv3 = 0;
oldLv4 = 0;
bUp = true;
bDown = true;
bLeft = true;
bRight = true;
this.fieldsInput();
this.getPLONum();
this.DepCng();
this.onEnterFrame = this.hallChk;
Symbol 410 MovieClip Frame 2
this.stop();
Symbol 412 MovieClip Frame 1
function fieldsInput() {
this.getXY();
_parent.fieldsIpt(pX, pY, 3);
}
function getXY() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
myNum = (pY * 40) + (pX + 1);
_name = ("Obj" + myNum);
}
function getPLONum() {
var _local1 = _global;
_local1.PLowObjNum++;
if (_local1.PLowObjNum == 4000) {
_local1.PLowObjNum = 1000;
}
ObjDep = _local1.PLowObjNum;
}
function DepInput() {
var _local1 = ((30 - pY) * 10000) + ObjDep;
this.swapDepths(_local1);
}
mcXY = 16;
this.fieldsInput();
this.getPLONum();
this.DepInput();
Symbol 412 MovieClip Frame 2
this.stop();
Symbol 415 MovieClip Frame 1
function ItemsInput() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
myNum = (pY * 40) + (pX + 1);
_name = ("switch" + myNum);
trace("G??????????>" + _name);
_parent.switchsIpt(pX, pY, myNum);
fY = pY + 2;
_parent.fieldsIpt(pX, fY, 3);
}
function getPLONum() {
var _local1 = _global;
_local1.PLowObjNum++;
if (_local1.PLowObjNum == 4000) {
_local1.PLowObjNum = 1000;
}
ObjDep = _local1.PLowObjNum;
}
function DepInput() {
var _local1 = ((28 - pY) * 10000) + ObjDep;
this.swapDepths(_local1);
}
function defChk() {
return(defType);
}
function PointUp() {
OnPoint++;
this.pointChk();
}
function PointDown() {
OnPoint--;
this.pointChk();
}
function PointChk() {
trace(OnPoint);
if (Onpoint > 0) {
_parent[newPop]._visible = true;
} else if (Onpoint == 0) {
_parent[newPop]._visible = false;
}
}
function PopInput() {
var _local1 = _global;
_local1.PHiObjNum++;
if (_local1.PHiObjNum == 9000) {
_local1.PHiObjNum = 6000;
}
var _local3 = (((30 - pY) + 2) * 10000) + _local1.PHiObjNum;
var _local2 = ++_local1.popPoint;
newPop = "pop" + _local2;
var props = {_x:_x, _y:_y};
_parent.attachMovie("Ggate_pop", newPop, _local3, props);
}
mcXY = 16;
myX = _x;
myY = _y;
defType = "Ggate";
this.ItemsInput();
this.getPLONum();
this.DepInput();
this.PopInput();
_parent[newPop]._visible = false;
Symbol 415 MovieClip Frame 2
this.stop();
Symbol 420 MovieClip Frame 1
function ItemsInput() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
myNum = (pY * 40) + (pX + 1);
_name = ("switch" + myNum);
trace("L ???>" + _name);
_parent.fieldsIpt(pX, pY, 1);
_parent.switchsIpt(pX, pY, 1);
}
function getPLONum() {
var _local1 = _global;
_local1.PLowObjNum++;
if (_local1.PLowObjNum == 4000) {
_local1.PLowObjNum = 1000;
}
ObjDep = _local1.PLowObjNum;
}
function DepInput() {
var _local1 = ((28 - pY) * 10000) + ObjDep;
this.swapDepths(_local1);
}
function defChk() {
return(defType);
}
function onPlay() {
}
function offPlay() {
}
mcXY = 16;
defType = "ladder";
this.ItemsInput();
this.getPLONum();
this.DepInput();
Symbol 420 MovieClip Frame 2
this.stop();
Symbol 433 MovieClip Frame 5
this.stop();
_parent.removeMovieClip();
Symbol 434 MovieClip Frame 1
function fieldsInput() {
this.nameChg();
_parent.fieldsIpt(pX, pY, myNum);
aLv1 = _parent.Lv2chk(pX, pY);
}
function fieldsChk() {
this.nameChg();
aLv1 = _parent.Lv2chk(pX, pY);
}
function nameChg() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
myNum = (pY * 40) + (pX + 1);
_name = ("Obj" + myNum);
trace("B???????>" + _name);
}
function getPLONum() {
var _local1 = _global;
_local1.PLowObjNum++;
if (_local1.PLowObjNum == 4000) {
_local1.PLowObjNum = 1000;
}
ObjDep = _local1.PLowObjNum;
}
function DepCng() {
var _local1 = ((30 - pY) * 10000) + ObjDep;
this.swapDepths(_local1);
}
function Lv2Chk() {
if (bMove) {
return(defType);
}
trace("S ????????????");
return(false);
}
function Lv2Play(PKey) {
this.ObjCr();
}
function ObjCr() {
_parent.fieldsIpt(pX, pY, 0);
this.gotoAndStop("Cr");
}
function downMove() {
var _local1 = this;
_parent.fieldsMove(pX, pY, myNum, "down");
_local1.switchChk("down");
movePoint = 4;
_local1.onEnterFrame = function () {
_y = (_y + Speed);
this.oSpeed();
};
}
function oSpeed() {
var _local1 = this;
movePoint--;
if (movePoint <= 0) {
_local1.fieldsChk();
_local1.depCng();
_local1.onEnterFrame = _local1.hallChk;
}
}
function hallChk() {
aLv1 = _parent.Lv2chk(pX, pY);
var _local1 = this.aFieldsChk(aLv1.down1, aLv1.down2);
if (_local1) {
bMove = false;
this.downMove();
} else {
bMove = true;
}
}
function aFieldsChk(Num1, Num2) {
if (Num1 == 0) {
if (Num2 == 0) {
return(true);
}
return(false);
}
return(false);
}
mcXY = 16;
defType = "BrStone";
bMove = true;
speed = 4;
this.fieldsInput();
this.getPLONum();
this.DepCng();
this.onEnterFrame = this.hallChk;
Symbol 434 MovieClip Frame 2
this.stop();
Symbol 440 MovieClip Frame 1
this.stop();
this._alpha = 0;
Symbol 445 MovieClip Frame 1
_parent.warpSEPlay();
Symbol 445 MovieClip Frame 7
this.stop();
_parent.warpPlay();
Symbol 446 MovieClip Frame 7
_parent.remove();
_parent.gotoAndStop("nomal");
Symbol 447 MovieClip Frame 1
function fieldsInput() {
this.nameChg();
_parent.fieldsIpt(pX, pY, myNum);
aLv1 = _parent.Lv2chk(pX, pY);
}
function fieldsChk() {
this.nameChg();
aLv1 = _parent.Lv2chk(pX, pY);
}
function nameChg() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
myNum = (pY * 40) + (pX + 1);
myName = "Obj" + myNum;
_name = ("Obj" + myNum);
}
function getPLONum() {
var _local1 = _global;
_local1.PLowObjNum++;
if (_local1.PLowObjNum == 4000) {
_local1.PLowObjNum = 1000;
}
ObjDep = _local1.PLowObjNum;
}
function depCng() {
var _local1 = ((30 - pY) * 10000) + ObjDep;
this.swapDepths(_local1);
}
function ObjCr() {
var _local1 = _parent;
_local1.SE.hallSEPlay();
_local1["switch" + myNum].ObjIn(defType);
_local1.fieldsIpt(pX, pY, 0);
this.removeMovieClip();
}
function remove() {
moveY = 16;
onEnterFrame = this.iSpeed;
}
function warpSEPlay() {
_parent.SE.warpSEPlay();
}
function warpPlay() {
var _local1 = this;
bWarp = false;
var _local2 = _parent["switch" + aNewSNum.SwitchOn].Lv2Play();
_x = _local2.pX;
_y = _local2.pY;
_local1.gotoAndStop("warpOut");
_local1.fieldsInput();
_local1.depCng();
oldSwitch = _local2.ObjNum;
oldSType = "warp";
_local1.switchChk("middle");
}
function holePlay() {
this.gotoAndStop("hall");
var _local1 = myNum + 80;
_parent["switch" + _local1].DHoleChk(defType);
this.onEnterFrame = null;
}
function towerSwitchPlay() {
bTowerSwitch = false;
_parent["switch" + aNewSNum.SwitchOn].onPlay();
}
function OwayPlay() {
bOway = false;
var _local1 = _parent["switch" + aNewSNum.SwitchOn].OnPlay(myNum);
this.OwayChk(_local1);
oldOwayXY = myNum;
bOwayChk = true;
}
function OwayStop() {
if (oldOwayXY != myNum) {
bOwayChk = false;
this.OwayOff();
_parent["switch" + oldSwitch].offPlay();
oldSwitch = 0;
}
}
function OwayOff() {
bUp = true;
bDown = true;
bLeft = true;
bRight = true;
}
function OwayCng(OwayMove) {
this.OwayOff();
this.OwayChk(OwayMove);
}
function OwayChk(OwayMove) {
var _local1 = OwayMove;
if (_local1 == "wayX") {
bUp = false;
bDown = false;
} else if (_local1 == "wayY") {
bLeft = false;
bRight = false;
} else if (_local1 == "wayUR") {
bDown = false;
bLeft = false;
if (Pkey == "down") {
Pkey = "right";
} else if (Pkey == "left") {
Pkey = "up";
}
} else if (_local1 == "wayRD") {
bLeft = false;
bUp = false;
if (Pkey == "left") {
Pkey = "down";
} else if (Pkey == "up") {
Pkey = "right";
}
} else if (_local1 == "wayDL") {
bUp = false;
bRight = false;
if (Pkey == "up") {
Pkey = "left";
} else if (Pkey == "right") {
Pkey = "down";
}
} else if (_local1 == "wayLU") {
bRight = false;
bDown = false;
if (Pkey == "right") {
Pkey = "up";
} else if (Pkey == "down") {
Pkey = "left";
}
}
}
function OwaySwitchPlay() {
bOwaySwitch = false;
_parent["switch" + aNewSNum.SwitchOn].onPlay();
_parent.OwayCng();
}
function switchChk(Pkey) {
var _local2 = {Lv1:oldLv1, Lv2:oldLv2, Lv3:oldLv3, Lv4:oldLv4};
aNewSNum = _parent.switchsChk(pX, pY, _local2, Pkey);
oldLv1 = aNewSNum.Lv1;
oldLv2 = aNewSNum.Lv2;
oldLv3 = aNewSNum.Lv3;
oldLv4 = aNewSNum.Lv4;
if (aNewSNum.SwitchOn != "off") {
if ((aNewSNum.SwitchOn != 0) && (aNewSNum.SwitchOn != oldSwitch)) {
if (oldSwitch != 0) {
this.OldSwitchChk();
}
var _local1 = _parent["switch" + aNewSNum.SwitchOn].defChk();
oldSwitch = aNewSNum.SwitchOn;
oldSType = _local1;
if (_local1 == "warp") {
bWarp = true;
} else if (_local1 == "hole") {
bHole = true;
} else if (_local1 == "Oway") {
bOway = true;
} else if (_local1 == "Oway_switch") {
bOwaySwitch = true;
} else if (_local1 == "tower_switch") {
bTowerSwitch = true;
}
} else {
if ((oldSwitch != 0) && (aNewSNum.SwitchOn == 0)) {
this.OldSwitchChk();
}
oldSwitch = aNewSNum.SwitchOn;
}
}
}
function OldSwitchChk() {
if (((oldSType == "warp") || (oldSType == "Oway_switch")) || (oldSType == "tower_switch")) {
_parent["switch" + oldSwitch].offPlay();
}
}
function Lv2Chk(Pkey) {
if (bMove) {
var _local1 = _parent.Lv2chk(pX, pY);
if ((Pkey == "left") && (bLeft)) {
var Num1 = _local1.left1;
var _local3 = _local1.left2;
var _local2 = this.moveChk(Num1, _local3);
return(_local2);
}
if ((Pkey == "right") && (bRight)) {
var Num1 = _local1.right1;
var _local3 = _local1.right2;
var _local2 = this.moveChk(Num1, _local3);
return(_local2);
}
} else {
trace("I ?????????????");
return(false);
}
return(undefined);
}
function Lv2play(Pkey) {
bMove = false;
if (Pkey == "left") {
this.leftMove(4, 4);
} else if (Pkey == "right") {
this.rightMove(4, 4);
}
}
function moveChk(Num1, Num2) {
var _local1 = Num2;
var _local2 = Num1;
trace((("I?????>" + _local2) + "_") + _local1);
if (_local2 == 0) {
if ((_local1 == 0) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
if (_local2 >= 1200) {
if ((_local1 == 0) || (_local1 >= 1200)) {
return(defType);
}
return(false);
}
return(false);
}
function stopMove() {
trace("??");
this.onEnterFrame = null;
bMove = true;
}
function downMove(iLowSpeed, iPoint) {
var _local1 = this;
_parent.fieldsMove(pX, pY, myNum, "down");
_local1.switchChk("down");
movePoint = iPoint;
_local1.onEnterFrame = function () {
_y = (_y + iLowSpeed);
this.iSpeed();
};
}
function leftMove(iLowSpeed, iPoint) {
var _local1 = this;
_parent.fieldsMove(pX, pY, myNum, "left");
_local1.switchChk("left");
Pkey = "left";
movePoint = iPoint;
_local1.onEnterFrame = function () {
_x = (_x - iLowSpeed);
this.iSpeed();
};
}
function rightMove(iLowSpeed, iPoint) {
var _local1 = this;
_parent.fieldsMove(pX, pY, myNum, "right");
_local1.switchChk("right");
Pkey = "right";
movePoint = iPoint;
_local1.onEnterFrame = function () {
_x = (_x + iLowSpeed);
this.iSpeed();
};
}
function iSpeed() {
var _local1 = this;
movePoint--;
if (movePoint <= 0) {
trace("bMove>" + bMove);
_local1.fieldsChk();
_local1.depCng();
if (bWarp) {
_local1.onEnterFrame = null;
_local1.gotoAndStop("warpIn");
} else if (bHole) {
_local1.holePlay();
} else {
if (bOway) {
_local1.OwayPlay();
} else if (bOwayChk) {
_local1.OwayStop();
}
if (bOwaySwitch) {
_local1.OwaySwitchPlay();
}
if (bTowerSwitch) {
_local1.TowerSwitchPlay();
}
_local1.onEnterFrame = _local1.hallChk;
}
}
}
function roopChk() {
var _local1 = this;
var _local3 = aLv1.down1;
var _l3 = aLv1.down2;
var Lv2ST = _local1.moveChk(_local3, _l3);
if (Lv2ST != false) {
_local1.onEnterFrame = _local1.hallChk;
} else if (Pkey == "left") {
var lNum1 = aLv1.left1;
var lNum2 = aLv1.left2;
var Lv2ST = _local1.moveChk(lNum1, lNum2);
if (Lv2ST != false) {
_local1.leftMove(4, 4);
} else {
Pkey = null;
_local1.onEnterFrame = _local1.hallChk;
}
} else if (Pkey == "right") {
var _local2 = aLv1.right1;
var _l2 = aLv1.right2;
var Lv2ST = _local1.moveChk(_local2, _l2);
if (Lv2ST != false) {
_local1.rightMove(4, 4);
} else {
Pkey = null;
_local1.onEnterFrame = _local1.hallChk;
}
}
}
function hallChk() {
var _local1 = this;
aLv1 = _parent.Lv2chk(pX, pY);
var bDown = _local1.aFieldsChk(aLv1.down1, aLv1.down2);
if (bDown) {
bMove = false;
_local1.downMove(4, 4);
} else if (Pkey == "left") {
var _local2 = _local1.aFieldsChk(aLv1.left1, aLv1.left2);
if (_local2) {
bMove = false;
_local1.leftMove(4, 4);
} else {
Pkey = null;
bMove = true;
}
} else if (Pkey == "right") {
var _local3 = _local1.aFieldsChk(aLv1.right1, aLv1.right2);
if (_local3) {
bMove = false;
_local1.rightMove(4, 4);
} else {
Pkey = null;
bMove = true;
}
} else {
bMove = true;
}
}
function aFieldsChk(Num1, Num2) {
if (Num1 == 0) {
if (Num2 == 0) {
return(true);
}
return(false);
}
return(false);
}
mcXY = 16;
defType = "Ice";
bMove = true;
Pkey = "hall";
bWarp = false;
bOway = false;
bOwayChk = false;
bOwaySwitch = false;
oldSwitch = 0;
oldType = 0;
oldLv1 = 0;
oldLv2 = 0;
oldLv3 = 0;
oldLv4 = 0;
bUp = true;
bDown = true;
bLeft = true;
bRight = true;
this.fieldsInput();
this.getPLONum();
this.depCng();
this.onEnterFrame = this.hallChk;
Symbol 447 MovieClip Frame 2
this.stop();
Symbol 461 MovieClip Frame 1
function ItemsInput() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
myNum = (pY * 40) + (pX + 1);
_name = ("switch" + myNum);
trace("W???????>" + _name);
_parent.switchsIpt(pX, pY, myNum, defArray);
fY = pY + 2;
_parent.fieldsIpt(pX, fY, 3);
}
function getPLONum() {
var _local1 = _global;
_local1.PLowObjNum++;
if (_local1.PLowObjNum == 4000) {
_local1.PLowObjNum = 1000;
}
ObjDep = _local1.PLowObjNum;
}
function DepInput() {
var _local1 = ((28 - pY) * 10000) + ObjDep;
this.swapDepths(_local1);
}
function defChk() {
return(defType);
}
function arrayChk() {
return(defArray);
}
function warpAnime() {
bWarpOn = true;
}
function Lv2Play() {
var _local2 = _parent.warpNChk(defArray, myNum);
var _local1 = _parent["switch" + _local2].getXY();
var _local3 = {pX:_local1.nextX, pY:_local1.nextY, ObjNum:_local2};
return(_local3);
}
function getXY() {
var _local1 = {nextX:myX, nextY:myY};
return(_local1);
}
function PointUp() {
OnPoint++;
trace((("W???point???>(" + myNum) + ")?") + OnPoint);
this.pointChk();
}
function PointDown() {
OnPoint--;
trace((("W???point???>(" + myNum) + ")?") + OnPoint);
this.pointChk();
}
function PointChk() {
var _local1 = _parent;
var _local2 = this;
if ((Onpoint == 0) && (_currentframe > 3)) {
bWarpOn = false;
_local2.gotoAndStop("nomal");
_local1.warpIpt(defArray, myNum);
_local1[newPop]._visible = false;
} else if ((Onpoint < 4) && (_currentframe <= 3)) {
_local2.gotoAndStop("in");
_local1.warpOpt(defArray, myNum);
_local1[newPop]._visible = true;
} else if (Onpoint == 4) {
var _local3 = _local1.Lv1Chk();
if (_local3 && (bWarpOn)) {
_local2.gotoAndStop("out");
} else {
_local2.gotoAndStop("in");
}
}
}
function PopInput() {
var _local1 = _global;
_local1.PHiObjNum++;
if (_local1.PHiObjNum == 9000) {
_local1.PHiObjNum = 6000;
}
var _local3 = (((30 - pY) + 2) * 10000) + _local1.PHiObjNum;
var _local2 = ++_local1.popPoint;
newPop = "pop" + _local2;
var props = {_x:_x, _y:_y};
_parent.attachMovie("Rwarp_pop", newPop, _local3, props);
}
mcXY = 16;
myX = _x;
myY = _y;
defType = "warp";
defArray = "aRwarp";
OnPoint = 0;
this.gotoAndStop("nomal");
this.ItemsInput();
this.getPLONum();
this.DepInput();
this.PopInput();
_parent[newPop]._visible = false;
Symbol 461 MovieClip Frame 2
this.onEnterFrame = null;
this.roll.stop();
Symbol 461 MovieClip Frame 4
this.onEnterFrame = null;
this.roll.play();
Symbol 461 MovieClip Frame 6
this.onEnterFrame = function () {
nextframe = this.roll._currentframe - 1;
if (nextframe <= 0) {
nextframe = 6;
}
this.roll.gotoAndStop(nextframe);
};
Symbol 466 MovieClip Frame 1
function fieldsInput() {
this.getXY();
_parent.fieldsIpt(pX, pY, 4);
}
function getXY() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
myNum = (pY * 40) + (pX + 1);
_name = ("Obj" + myNum);
}
function getPLONum() {
var _local1 = _global;
_local1.PLowObjNum++;
if (_local1.PLowObjNum == 4000) {
_local1.PLowObjNum = 1000;
}
ObjDep = _local1.PLowObjNum;
}
function DepInput() {
var _local1 = ((30 - pY) * 10000) + ObjDep;
this.swapDepths(_local1);
}
mcXY = 16;
this.fieldsInput();
this.getPLONum();
this.DepInput();
Symbol 466 MovieClip Frame 2
this.stop();
Symbol 480 MovieClip Frame 1
function ItemsInput() {
pX = Math.floor(_x / mcXY);
pY = Math.floor(_y / mcXY);
myNum = (pY * 40) + (pX + 1);
_name = ("switch" + myNum);
trace("W???????>" + _name);
_parent.switchsIpt(pX, pY, myNum, defArray);
fY = pY + 2;
_parent.fieldsIpt(pX, fY, 3);
}
function getPLONum() {
var _local1 = _global;
_local1.PLowObjNum++;
if (_local1.PLowObjNum == 4000) {
_local1.PLowObjNum = 1000;
}
ObjDep = _local1.PLowObjNum;
}
function DepInput() {
var _local1 = ((28 - pY) * 10000) + ObjDep;
this.swapDepths(_local1);
}
function defChk() {
return(defType);
}
function arrayChk() {
return(defArray);
}
function warpAnime() {
bWarpOn = true;
}
function Lv2Play() {
var _local2 = _parent.warpNChk(defArray, myNum);
var _local1 = _parent["switch" + _local2].getXY();
var _local3 = {pX:_local1.nextX, pY:_local1.nextY, ObjNum:_local2};
return(_local3);
}
function getXY() {
var _local1 = {nextX:myX, nextY:myY};
return(_local1);
}
function PointUp() {
OnPoint++;
trace((("W???point???>(" + myNum) + ")?") + OnPoint);
this.pointChk();
}
function PointDown() {
OnPoint--;
trace((("W???point???>(" + myNum) + ")?") + OnPoint);
this.pointChk();
}
function PointChk() {
var _local1 = _parent;
var _local2 = this;
if ((Onpoint == 0) && (_currentframe > 3)) {
bWarpOn = false;
_local2.gotoAndStop("nomal");
_local1.warpIpt(defArray, myNum);
_local1[newPop]._visible = false;
} else if ((Onpoint < 4) && (_currentframe <= 3)) {
_local2.gotoAndStop("in");
_local1.warpOpt(defArray, myNum);
_local1[newPop]._visible = true;
} else if (Onpoint == 4) {
var _local3 = _local1.Lv1Chk();
if (_local3 && (bWarpOn)) {
_local2.gotoAndStop("out");
} else {
_local2.gotoAndStop("in");
}
}
}
function PopInput() {
var _local1 = _global;
_local1.PHiObjNum++;
if (_local1.PHiObjNum == 9000) {
_local1.PHiObjNum = 6000;
}
var _local3 = (((30 - pY) + 2) * 10000) + _local1.PHiObjNum;
var _local2 = ++_local1.popPoint;
newPop = "pop" + _local2;
var props = {_x:_x, _y:_y};
_parent.attachMovie("Rwarp_pop", newPop, _local3, props);
}
mcXY = 16;
myX = _x;
myY = _y;
defType = "warp";
defArray = "aBwarp";
OnPoint = 0;
this.gotoAndStop("nomal");
this.ItemsInput();
this.getPLONum();
this.DepInput();
this.PopInput();
_parent[newPop]._visible = false;
Symbol 480 MovieClip Frame 2
this.onEnterFrame = null;
this.roll.stop();
Symbol 480 MovieClip Frame 4
this.onEnterFrame = null;
this.roll.play();
Symbol 480 MovieClip Frame 6
this.onEnterFrame = function () {
nextframe = this.roll._currentframe - 1;
if (nextframe <= 0) {
nextframe = 6;
}
this.roll.gotoAndStop(nextframe);
};