Frame 1
if (null) {
}
k09 = "\uB300\uD55C\uBBFC\uAD6D";
Set("\uC6C0\uB0D0", "\uB6AB\uC5B4\uBD10");
Set("\u701A\u85C9", \u5927\u97D3\u6C11\u570B);
if (testK) {
item1Number = 0;
item2Number = 0;
item3Number = 0;
waterSpeed = 16;
outWater = 4;
waterAmount = 50;
initScore = 1;
_global.score = 0;
stg = 1;
timing = 61;
depth = 10;
stgTime = 1;
chkArray = [];
_global.item1 = 0;
gameStage = new Object();
gameStage.minX = 125;
gameStage.minY = 75;
gameStage.wid = 150;
gameStage.het = 300;
depth = 10;
block = new Object();
block.wid = 30;
block.het = 30;
pipeArrayY1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArray = [pipeArrayY1, pipeArrayY2, pipeArrayY3, pipeArrayY4, pipeArrayY5];
pArray1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray = [pArray1, pArray2, pArray3, pArray4, pArray5];
tempScore = new String(_global.score);
_1score = tempScore.slice(-1);
_2score = tempScore.slice(-2, -1);
_3score = tempScore.slice(-3, -2);
_4score = tempScore.slice(-4, -3);
_5score = tempScore.slice(-5, -4);
scoreM.score1.gotoAndStop(Number(_1score) + 1);
scoreM.score2.gotoAndStop(Number(_2score) + 1);
scoreM.score3.gotoAndStop(Number(_3score) + 1);
scoreM.score4.gotoAndStop(Number(_4score) + 1);
scoreM.score5.gotoAndStop(Number(_5score) + 1);
i = 1;
while (i <= 5) {
if (pipeArray[i - 1][0] == 1) {
} else if (!_global.gameOver) {
depth++;
tempItem = random(50);
tempRan = random(14);
if (tempRan < 4) {
tempRan = 1;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 1];
} else if (tempRan < 8) {
tempRan = 2;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 0, 1, 0];
} else if (tempRan < 12) {
tempRan = 3;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 0];
} else if (tempRan < 13) {
if (stg > 3) {
tempRan = 4;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 1];
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
pipe.duplicateMovieClip("pipe" + depth, depth);
eval ("pipe" + depth)._x = ((gameStage.minX + (block.wid / 2)) + 1) + (block.wid * (i - 1));
eval ("pipe" + depth)._y = (gameStage.minY - (block.het / 2)) + 1;
if (tempItem < 3) {
tempRan2 = random(3) + 2;
eval ("pipe" + depth).gotoAndStop(tempRan2);
eval ("pipe" + depth).tempRan2 = tempRan2;
}
eval ("pipe" + depth)._1_pipe.gotoAndStop(tempRan);
eval ("pipe" + depth)._1_pipe._2_pipe.gotoAndStop(1);
eval ("pipe" + depth)._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
eval ("pipe" + depth).x = i - 1;
eval ("pipe" + depth).y = -1;
eval ("pipe" + depth).cap = 1;
eval ("pipe" + depth).onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
}
i++;
}
if (pipeArray[pipe.x][pipe.y + 1] == 0) {
pipeArray[pipe.x][pipe.y] = 0;
pArray[pipe.x][pipe.y] = null;
pipe.y = pipe.y + 1;
pArray[pipe.x][pipe.y - 2].onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
chkArray = [];
var it = 0;
while (it < 5) {
chkArray[i] = this._parent.pArray[it][this.y];
it++;
}
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
pipe._y = pipe._y + block.het;
} else {
pipeArray[pipe.x][pipe.y] = 1;
pArray[pipe.x][pipe.y] = pipe;
trace("\uC5D4\uD130\uD504\uB808\uC784");
_global.chkStart2 = 1;
return(0);
}
if ((stgTime % timing) == 0) {
readyBlock();
}
_global.chk = 1;
j = 0;
while (j < 10) {
chkArray = [];
pArray[0][j].input = 0;
pArray[0][j].output = 0;
if (pArray[0][j].value[2]) {
pArray[0][j].input = 1;
chkArray[chkArray.length] = pArray[0][j];
if ((((j == 9) && (pArray[0][j].value[0] == 0)) && (pArray[0][j].value[3] == 0)) && (pArray[0][j].value[1] == 1)) {
chkArray[chkArray.length] = pArray[0][j];
waterTank.character.gotoAndPlay("success");
removePipe(pArray[0][j]);
} else {
if (pArray[0][j].value[0] == 1) {
if (pArray[0][j - 1].value[1] == 1) {
chk1 = 1;
} else {
chk1 = 0;
}
}
if (pArray[0][j].value[1] == 1) {
if (pArray[0][j + 1].value[0] == 1) {
chk2 = 1;
} else if (j == 9) {
pArray[0][j].output = 1;
chk2 = 2;
} else {
chk2 = 0;
}
}
if (pArray[0][j].value[3] == 1) {
if (pArray[1][j].value[2] == 1) {
chk3 = 1;
} else {
chk3 = 0;
}
}
if (((chk1 != 0) && (chk2 != 0)) && (chk3 != 0)) {
if (chk1 == 1) {
if (blockChk2(pArray[0][j - 1]) == 0) {
}
}
if (chk2 == 1) {
if (blockChk2(pArray[0][j + 1]) == 0) {
}
}
if (chk3 == 1) {
if (blockChk2(pArray[1][j]) == 0) {
}
}
chk1 = (chk2 = (chk3 = null));
if (chkArray.length > 0) {
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].input) {
input = 1;
break;
}
input = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].output) {
output = 1;
break;
}
output = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].cap) {
vcap = 1;
} else {
vcap = 0;
break;
}
ki++;
}
if ((input && (output)) && (vcap)) {
input = 0;
output = 0;
vcap = 0;
waterTank.character.gotoAndPlay("success");
ki = 0;
while (ki < chkArray.length) {
_global.score = _global.score + initScore;
removePipe(chkArray[ki]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
initScore++;
ki++;
}
initScore = 1;
score();
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
}
j++;
}
input = 0;
output = 0;
vcap = 0;
_global.chk = 0;
i = 0;
while (i < 5) {
if (pipeArray[i][0] == 0) {
eSpeed = 0;
break;
}
eSpeed = 4;
i++;
}
if (waterAmount >= 100) {
_global.gameOver = 1;
}
if (waterAmount <= 0) {
_global.gameClear = 1;
}
_global.chkStart = 0;
pipe.chk1 = "";
pipe.chk2 = "";
pipe.chk3 = "";
pipe.chk4 = "";
if (pipe.value[0] == 1) {
var chk1;
if (pArray[pipe.x][pipe.y - 1].value[1] == 1) {
pipe.chk1 = 1;
} else {
pipe.chk1 = 0;
chkArray = [];
}
}
if (pipe.value[1] == 1) {
var chk2;
if (pArray[pipe.x][pipe.y + 1].value[0] == 1) {
pipe.chk2 = 1;
} else if (pipe.y == 9) {
pipe.output = 1;
pipe.chk2 = 2;
} else {
pipe.chk2 = 0;
chkArray = [];
}
}
if (pipe.value[2] == 1) {
var chk3;
if (pArray[pipe.x - 1][pipe.y].value[3] == 1) {
pipe.chk3 = 1;
} else if (pipe.x == 0) {
pipe.input = 1;
pipe.chk3 = 2;
} else {
pipe.chk3 = 0;
chkArray = [];
}
}
if (pipe.value[3] == 1) {
var chk4;
if (pArray[pipe.x + 1][pipe.y].value[2] == 1) {
pipe.chk4 = 1;
} else if (pipe.x == 4) {
pipe.output = 1;
pipe.input = 1;
pipe.chk4 = 2;
} else {
pipe.chk4 = 0;
chkArray = [];
}
}
if ((((pipe.chk1 != 0) && (pipe.chk2 != 0)) && (pipe.chk3 != 0)) && (pipe.chk4 != 0)) {
if (keyPut == 1) {
}
pipe.cap = 1;
chkArray[chkArray.length] = pipe;
if (pipe.chk1 == 1) {
var jon1;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y - 1] == chkArray[chkT]) {
jon1 = 1;
break;
}
jon1 = 0;
chkT++;
}
if (jon1 == 0) {
blockChk2(pArray[pipe.x][pipe.y - 1]);
}
}
if (pipe.chk2 == 1) {
var jon2;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y + 1] == chkArray[chkT]) {
jon2 = 1;
break;
}
jon2 = 0;
chkT++;
}
if (jon2 == 0) {
blockChk2(pArray[pipe.x][pipe.y + 1]);
}
}
if (pipe.chk3 == 1) {
var jon3;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x - 1][pipe.y] == chkArray[chkT]) {
jon3 = 1;
break;
}
jon3 = 0;
chkT++;
}
if (jon3 == 0) {
blockChk2(pArray[pipe.x - 1][pipe.y]);
}
}
if (pipe.chk4 == 1) {
var jon4;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x + 1][pipe.y] == chkArray[chkT]) {
jon4 = 1;
break;
}
jon4 = 0;
chkT++;
}
if (jon4 == 0) {
blockChk2(pArray[pipe.x + 1][pipe.y]);
}
}
} else {
chkArray = [];
}
pipe.onRelease = null;
pipe.itemUp = pipe._currentframe;
pArray[pipe.x][pipe.y] = 0;
pipeArray[pipe.x][pipe.y] = 0;
eval (pipe)._1_pipe._2_pipe._3_pipe.gotoAndStop(2);
pipe.onEnterFrame = function () {
this.i++;
if (this.i == 3) {
eval (pipe).gotoAndStop("break");
}
if (this.i == 5) {
this.tempArr = [];
j = this.y - 1;
while (j >= 0) {
if (this._parent.pipeArray[this.x][j] == 1) {
this.ok = 0;
ji = 0;
while (ji < this._parent.chkArray.length) {
if (this._parent.pArray[this.x][j] == this._parent.chkArray[ji]) {
this._parent.pArray[this.x][j].chk123 = 1;
}
ji++;
}
if (!this.ok) {
trace(this._parent.pArray[this.x][j]);
this.tempArr[this.tempArr.length] = this._parent.pArray[this.x][j];
this._parent.pipeArray[this.x][j] = 0;
this._parent.pArray[this.x][j] = 0;
trace("pipeArray" + this._parent.pipeArray[this.x][j]);
}
}
j--;
}
trace(this.tempArr);
j = 0;
while (j < this.tempArr.length) {
this._parent.pipeArray[this.x][this.y - j] = 1;
this._parent.pArray[this.x][this.y - j] = this.tempArr[j];
this.tempArr[j]._y = this._y - (this._parent.block.het * j);
this.tempArr[j].y = this.y - j;
j++;
}
if (this.itemUp == 2) {
item1Number = item1Number + 1;
_tempnum = new String(item1Number);
_1num = _tempnum.slice(-1);
if (item1Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item1Num.score1.gotoAndStop(Number(_1num) + 1);
item1Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 4) {
item2Number = item2Number + 1;
_tempnum = new String(item2Number);
_1num = _tempnum.slice(-1);
if (item2Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item2Num.score1.gotoAndStop(Number(_1num) + 1);
item2Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 3) {
item3Number = item3Number + 1;
_tempnum = new String(item3Number);
_1num = _tempnum.slice(-1);
if (item3Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item3Num.score1.gotoAndStop(Number(_1num) + 1);
item3Num.score2.gotoAndStop(Number(_2num) + 1);
}
_global.chkStart2 = 1;
this.removeMovieClip();
}
};
}
k09 = "\uB300\uD55C\uBBFC\uAD6D";
Set("\uC6C0\uB0D0", "\uB6AB\uC5B4\uBD10");
Set("\u701A\u85C9", \u5927\u97D3\u6C11\u570B);
if (testK) {
item1Number = 0;
item2Number = 0;
item3Number = 0;
waterSpeed = 16;
outWater = 4;
waterAmount = 50;
initScore = 1;
_global.score = 0;
stg = 1;
timing = 61;
depth = 10;
stgTime = 1;
chkArray = [];
_global.item1 = 0;
gameStage = new Object();
gameStage.minX = 125;
gameStage.minY = 75;
gameStage.wid = 150;
gameStage.het = 300;
depth = 10;
block = new Object();
block.wid = 30;
block.het = 30;
pipeArrayY1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArray = [pipeArrayY1, pipeArrayY2, pipeArrayY3, pipeArrayY4, pipeArrayY5];
pArray1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray = [pArray1, pArray2, pArray3, pArray4, pArray5];
tempScore = new String(_global.score);
_1score = tempScore.slice(-1);
_2score = tempScore.slice(-2, -1);
_3score = tempScore.slice(-3, -2);
_4score = tempScore.slice(-4, -3);
_5score = tempScore.slice(-5, -4);
scoreM.score1.gotoAndStop(Number(_1score) + 1);
scoreM.score2.gotoAndStop(Number(_2score) + 1);
scoreM.score3.gotoAndStop(Number(_3score) + 1);
scoreM.score4.gotoAndStop(Number(_4score) + 1);
scoreM.score5.gotoAndStop(Number(_5score) + 1);
i = 1;
while (i <= 5) {
if (pipeArray[i - 1][0] == 1) {
} else if (!_global.gameOver) {
depth++;
tempItem = random(50);
tempRan = random(14);
if (tempRan < 4) {
tempRan = 1;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 1];
} else if (tempRan < 8) {
tempRan = 2;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 0, 1, 0];
} else if (tempRan < 12) {
tempRan = 3;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 0];
} else if (tempRan < 13) {
if (stg > 3) {
tempRan = 4;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 1];
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
pipe.duplicateMovieClip("pipe" + depth, depth);
eval ("pipe" + depth)._x = ((gameStage.minX + (block.wid / 2)) + 1) + (block.wid * (i - 1));
eval ("pipe" + depth)._y = (gameStage.minY - (block.het / 2)) + 1;
if (tempItem < 3) {
tempRan2 = random(3) + 2;
eval ("pipe" + depth).gotoAndStop(tempRan2);
eval ("pipe" + depth).tempRan2 = tempRan2;
}
eval ("pipe" + depth)._1_pipe.gotoAndStop(tempRan);
eval ("pipe" + depth)._1_pipe._2_pipe.gotoAndStop(1);
eval ("pipe" + depth)._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
eval ("pipe" + depth).x = i - 1;
eval ("pipe" + depth).y = -1;
eval ("pipe" + depth).cap = 1;
eval ("pipe" + depth).onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
}
i++;
}
if (pipeArray[pipe.x][pipe.y + 1] == 0) {
pipeArray[pipe.x][pipe.y] = 0;
pArray[pipe.x][pipe.y] = null;
pipe.y = pipe.y + 1;
pArray[pipe.x][pipe.y - 2].onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
chkArray = [];
var it = 0;
while (it < 5) {
chkArray[i] = this._parent.pArray[it][this.y];
it++;
}
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
pipe._y = pipe._y + block.het;
} else {
pipeArray[pipe.x][pipe.y] = 1;
pArray[pipe.x][pipe.y] = pipe;
trace("\uC5D4\uD130\uD504\uB808\uC784");
_global.chkStart2 = 1;
return(0);
}
if ((stgTime % timing) == 0) {
readyBlock();
}
_global.chk = 1;
j = 0;
while (j < 10) {
chkArray = [];
pArray[0][j].input = 0;
pArray[0][j].output = 0;
if (pArray[0][j].value[2]) {
pArray[0][j].input = 1;
chkArray[chkArray.length] = pArray[0][j];
if ((((j == 9) && (pArray[0][j].value[0] == 0)) && (pArray[0][j].value[3] == 0)) && (pArray[0][j].value[1] == 1)) {
chkArray[chkArray.length] = pArray[0][j];
waterTank.character.gotoAndPlay("success");
removePipe(pArray[0][j]);
} else {
if (pArray[0][j].value[0] == 1) {
if (pArray[0][j - 1].value[1] == 1) {
chk1 = 1;
} else {
chk1 = 0;
}
}
if (pArray[0][j].value[1] == 1) {
if (pArray[0][j + 1].value[0] == 1) {
chk2 = 1;
} else if (j == 9) {
pArray[0][j].output = 1;
chk2 = 2;
} else {
chk2 = 0;
}
}
if (pArray[0][j].value[3] == 1) {
if (pArray[1][j].value[2] == 1) {
chk3 = 1;
} else {
chk3 = 0;
}
}
if (((chk1 != 0) && (chk2 != 0)) && (chk3 != 0)) {
if (chk1 == 1) {
if (blockChk2(pArray[0][j - 1]) == 0) {
}
}
if (chk2 == 1) {
if (blockChk2(pArray[0][j + 1]) == 0) {
}
}
if (chk3 == 1) {
if (blockChk2(pArray[1][j]) == 0) {
}
}
chk1 = (chk2 = (chk3 = null));
if (chkArray.length > 0) {
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].input) {
input = 1;
break;
}
input = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].output) {
output = 1;
break;
}
output = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].cap) {
vcap = 1;
} else {
vcap = 0;
break;
}
ki++;
}
if ((input && (output)) && (vcap)) {
input = 0;
output = 0;
vcap = 0;
waterTank.character.gotoAndPlay("success");
ki = 0;
while (ki < chkArray.length) {
_global.score = _global.score + initScore;
removePipe(chkArray[ki]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
initScore++;
ki++;
}
initScore = 1;
score();
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
}
j++;
}
input = 0;
output = 0;
vcap = 0;
_global.chk = 0;
i = 0;
while (i < 5) {
if (pipeArray[i][0] == 0) {
eSpeed = 0;
break;
}
eSpeed = 4;
i++;
}
if (waterAmount >= 100) {
_global.gameOver = 1;
}
if (waterAmount <= 0) {
_global.gameClear = 1;
}
_global.chkStart = 0;
pipe.chk1 = "";
pipe.chk2 = "";
pipe.chk3 = "";
pipe.chk4 = "";
if (pipe.value[0] == 1) {
var chk1;
if (pArray[pipe.x][pipe.y - 1].value[1] == 1) {
pipe.chk1 = 1;
} else {
pipe.chk1 = 0;
chkArray = [];
}
}
if (pipe.value[1] == 1) {
var chk2;
if (pArray[pipe.x][pipe.y + 1].value[0] == 1) {
pipe.chk2 = 1;
} else if (pipe.y == 9) {
pipe.output = 1;
pipe.chk2 = 2;
} else {
pipe.chk2 = 0;
chkArray = [];
}
}
if (pipe.value[2] == 1) {
var chk3;
if (pArray[pipe.x - 1][pipe.y].value[3] == 1) {
pipe.chk3 = 1;
} else if (pipe.x == 0) {
pipe.input = 1;
pipe.chk3 = 2;
} else {
pipe.chk3 = 0;
chkArray = [];
}
}
if (pipe.value[3] == 1) {
var chk4;
if (pArray[pipe.x + 1][pipe.y].value[2] == 1) {
pipe.chk4 = 1;
} else if (pipe.x == 4) {
pipe.output = 1;
pipe.input = 1;
pipe.chk4 = 2;
} else {
pipe.chk4 = 0;
chkArray = [];
}
}
if ((((pipe.chk1 != 0) && (pipe.chk2 != 0)) && (pipe.chk3 != 0)) && (pipe.chk4 != 0)) {
if (keyPut == 1) {
}
pipe.cap = 1;
chkArray[chkArray.length] = pipe;
if (pipe.chk1 == 1) {
var jon1;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y - 1] == chkArray[chkT]) {
jon1 = 1;
break;
}
jon1 = 0;
chkT++;
}
if (jon1 == 0) {
blockChk2(pArray[pipe.x][pipe.y - 1]);
}
}
if (pipe.chk2 == 1) {
var jon2;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y + 1] == chkArray[chkT]) {
jon2 = 1;
break;
}
jon2 = 0;
chkT++;
}
if (jon2 == 0) {
blockChk2(pArray[pipe.x][pipe.y + 1]);
}
}
if (pipe.chk3 == 1) {
var jon3;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x - 1][pipe.y] == chkArray[chkT]) {
jon3 = 1;
break;
}
jon3 = 0;
chkT++;
}
if (jon3 == 0) {
blockChk2(pArray[pipe.x - 1][pipe.y]);
}
}
if (pipe.chk4 == 1) {
var jon4;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x + 1][pipe.y] == chkArray[chkT]) {
jon4 = 1;
break;
}
jon4 = 0;
chkT++;
}
if (jon4 == 0) {
blockChk2(pArray[pipe.x + 1][pipe.y]);
}
}
} else {
chkArray = [];
}
pipe.onRelease = null;
pipe.itemUp = pipe._currentframe;
pArray[pipe.x][pipe.y] = 0;
pipeArray[pipe.x][pipe.y] = 0;
eval (pipe)._1_pipe._2_pipe._3_pipe.gotoAndStop(2);
pipe.onEnterFrame = function () {
this.i++;
if (this.i == 3) {
eval (pipe).gotoAndStop("break");
}
if (this.i == 5) {
this.tempArr = [];
j = this.y - 1;
while (j >= 0) {
if (this._parent.pipeArray[this.x][j] == 1) {
this.ok = 0;
ji = 0;
while (ji < this._parent.chkArray.length) {
if (this._parent.pArray[this.x][j] == this._parent.chkArray[ji]) {
this._parent.pArray[this.x][j].chk123 = 1;
}
ji++;
}
if (!this.ok) {
trace(this._parent.pArray[this.x][j]);
this.tempArr[this.tempArr.length] = this._parent.pArray[this.x][j];
this._parent.pipeArray[this.x][j] = 0;
this._parent.pArray[this.x][j] = 0;
trace("pipeArray" + this._parent.pipeArray[this.x][j]);
}
}
j--;
}
trace(this.tempArr);
j = 0;
while (j < this.tempArr.length) {
this._parent.pipeArray[this.x][this.y - j] = 1;
this._parent.pArray[this.x][this.y - j] = this.tempArr[j];
this.tempArr[j]._y = this._y - (this._parent.block.het * j);
this.tempArr[j].y = this.y - j;
j++;
}
if (this.itemUp == 2) {
item1Number = item1Number + 1;
_tempnum = new String(item1Number);
_1num = _tempnum.slice(-1);
if (item1Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item1Num.score1.gotoAndStop(Number(_1num) + 1);
item1Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 4) {
item2Number = item2Number + 1;
_tempnum = new String(item2Number);
_1num = _tempnum.slice(-1);
if (item2Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item2Num.score1.gotoAndStop(Number(_1num) + 1);
item2Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 3) {
item3Number = item3Number + 1;
_tempnum = new String(item3Number);
_1num = _tempnum.slice(-1);
if (item3Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item3Num.score1.gotoAndStop(Number(_1num) + 1);
item3Num.score2.gotoAndStop(Number(_2num) + 1);
}
_global.chkStart2 = 1;
this.removeMovieClip();
}
};
}
k09 = "\uB300\uD55C\uBBFC\uAD6D";
Set("\uC6C0\uB0D0", "\uB6AB\uC5B4\uBD10");
Set("\u701A\u85C9", \u5927\u97D3\u6C11\u570B);
if (testK) {
item1Number = 0;
item2Number = 0;
item3Number = 0;
waterSpeed = 16;
outWater = 4;
waterAmount = 50;
initScore = 1;
_global.score = 0;
stg = 1;
timing = 61;
depth = 10;
stgTime = 1;
chkArray = [];
_global.item1 = 0;
gameStage = new Object();
gameStage.minX = 125;
gameStage.minY = 75;
gameStage.wid = 150;
gameStage.het = 300;
depth = 10;
block = new Object();
block.wid = 30;
block.het = 30;
pipeArrayY1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArray = [pipeArrayY1, pipeArrayY2, pipeArrayY3, pipeArrayY4, pipeArrayY5];
pArray1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray = [pArray1, pArray2, pArray3, pArray4, pArray5];
tempScore = new String(_global.score);
_1score = tempScore.slice(-1);
_2score = tempScore.slice(-2, -1);
_3score = tempScore.slice(-3, -2);
_4score = tempScore.slice(-4, -3);
_5score = tempScore.slice(-5, -4);
scoreM.score1.gotoAndStop(Number(_1score) + 1);
scoreM.score2.gotoAndStop(Number(_2score) + 1);
scoreM.score3.gotoAndStop(Number(_3score) + 1);
scoreM.score4.gotoAndStop(Number(_4score) + 1);
scoreM.score5.gotoAndStop(Number(_5score) + 1);
i = 1;
while (i <= 5) {
if (pipeArray[i - 1][0] == 1) {
} else if (!_global.gameOver) {
depth++;
tempItem = random(50);
tempRan = random(14);
if (tempRan < 4) {
tempRan = 1;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 1];
} else if (tempRan < 8) {
tempRan = 2;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 0, 1, 0];
} else if (tempRan < 12) {
tempRan = 3;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 0];
} else if (tempRan < 13) {
if (stg > 3) {
tempRan = 4;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 1];
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
pipe.duplicateMovieClip("pipe" + depth, depth);
eval ("pipe" + depth)._x = ((gameStage.minX + (block.wid / 2)) + 1) + (block.wid * (i - 1));
eval ("pipe" + depth)._y = (gameStage.minY - (block.het / 2)) + 1;
if (tempItem < 3) {
tempRan2 = random(3) + 2;
eval ("pipe" + depth).gotoAndStop(tempRan2);
eval ("pipe" + depth).tempRan2 = tempRan2;
}
eval ("pipe" + depth)._1_pipe.gotoAndStop(tempRan);
eval ("pipe" + depth)._1_pipe._2_pipe.gotoAndStop(1);
eval ("pipe" + depth)._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
eval ("pipe" + depth).x = i - 1;
eval ("pipe" + depth).y = -1;
eval ("pipe" + depth).cap = 1;
eval ("pipe" + depth).onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
}
i++;
}
if (pipeArray[pipe.x][pipe.y + 1] == 0) {
pipeArray[pipe.x][pipe.y] = 0;
pArray[pipe.x][pipe.y] = null;
pipe.y = pipe.y + 1;
pArray[pipe.x][pipe.y - 2].onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
chkArray = [];
var it = 0;
while (it < 5) {
chkArray[i] = this._parent.pArray[it][this.y];
it++;
}
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
pipe._y = pipe._y + block.het;
} else {
pipeArray[pipe.x][pipe.y] = 1;
pArray[pipe.x][pipe.y] = pipe;
trace("\uC5D4\uD130\uD504\uB808\uC784");
_global.chkStart2 = 1;
return(0);
}
if ((stgTime % timing) == 0) {
readyBlock();
}
_global.chk = 1;
j = 0;
while (j < 10) {
chkArray = [];
pArray[0][j].input = 0;
pArray[0][j].output = 0;
if (pArray[0][j].value[2]) {
pArray[0][j].input = 1;
chkArray[chkArray.length] = pArray[0][j];
if ((((j == 9) && (pArray[0][j].value[0] == 0)) && (pArray[0][j].value[3] == 0)) && (pArray[0][j].value[1] == 1)) {
chkArray[chkArray.length] = pArray[0][j];
waterTank.character.gotoAndPlay("success");
removePipe(pArray[0][j]);
} else {
if (pArray[0][j].value[0] == 1) {
if (pArray[0][j - 1].value[1] == 1) {
chk1 = 1;
} else {
chk1 = 0;
}
}
if (pArray[0][j].value[1] == 1) {
if (pArray[0][j + 1].value[0] == 1) {
chk2 = 1;
} else if (j == 9) {
pArray[0][j].output = 1;
chk2 = 2;
} else {
chk2 = 0;
}
}
if (pArray[0][j].value[3] == 1) {
if (pArray[1][j].value[2] == 1) {
chk3 = 1;
} else {
chk3 = 0;
}
}
if (((chk1 != 0) && (chk2 != 0)) && (chk3 != 0)) {
if (chk1 == 1) {
if (blockChk2(pArray[0][j - 1]) == 0) {
}
}
if (chk2 == 1) {
if (blockChk2(pArray[0][j + 1]) == 0) {
}
}
if (chk3 == 1) {
if (blockChk2(pArray[1][j]) == 0) {
}
}
chk1 = (chk2 = (chk3 = null));
if (chkArray.length > 0) {
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].input) {
input = 1;
break;
}
input = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].output) {
output = 1;
break;
}
output = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].cap) {
vcap = 1;
} else {
vcap = 0;
break;
}
ki++;
}
if ((input && (output)) && (vcap)) {
input = 0;
output = 0;
vcap = 0;
waterTank.character.gotoAndPlay("success");
ki = 0;
while (ki < chkArray.length) {
_global.score = _global.score + initScore;
removePipe(chkArray[ki]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
initScore++;
ki++;
}
initScore = 1;
score();
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
}
j++;
}
input = 0;
output = 0;
vcap = 0;
_global.chk = 0;
i = 0;
while (i < 5) {
if (pipeArray[i][0] == 0) {
eSpeed = 0;
break;
}
eSpeed = 4;
i++;
}
if (waterAmount >= 100) {
_global.gameOver = 1;
}
if (waterAmount <= 0) {
_global.gameClear = 1;
}
_global.chkStart = 0;
pipe.chk1 = "";
pipe.chk2 = "";
pipe.chk3 = "";
pipe.chk4 = "";
if (pipe.value[0] == 1) {
var chk1;
if (pArray[pipe.x][pipe.y - 1].value[1] == 1) {
pipe.chk1 = 1;
} else {
pipe.chk1 = 0;
chkArray = [];
}
}
if (pipe.value[1] == 1) {
var chk2;
if (pArray[pipe.x][pipe.y + 1].value[0] == 1) {
pipe.chk2 = 1;
} else if (pipe.y == 9) {
pipe.output = 1;
pipe.chk2 = 2;
} else {
pipe.chk2 = 0;
chkArray = [];
}
}
if (pipe.value[2] == 1) {
var chk3;
if (pArray[pipe.x - 1][pipe.y].value[3] == 1) {
pipe.chk3 = 1;
} else if (pipe.x == 0) {
pipe.input = 1;
pipe.chk3 = 2;
} else {
pipe.chk3 = 0;
chkArray = [];
}
}
if (pipe.value[3] == 1) {
var chk4;
if (pArray[pipe.x + 1][pipe.y].value[2] == 1) {
pipe.chk4 = 1;
} else if (pipe.x == 4) {
pipe.output = 1;
pipe.input = 1;
pipe.chk4 = 2;
} else {
pipe.chk4 = 0;
chkArray = [];
}
}
if ((((pipe.chk1 != 0) && (pipe.chk2 != 0)) && (pipe.chk3 != 0)) && (pipe.chk4 != 0)) {
if (keyPut == 1) {
}
pipe.cap = 1;
chkArray[chkArray.length] = pipe;
if (pipe.chk1 == 1) {
var jon1;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y - 1] == chkArray[chkT]) {
jon1 = 1;
break;
}
jon1 = 0;
chkT++;
}
if (jon1 == 0) {
blockChk2(pArray[pipe.x][pipe.y - 1]);
}
}
if (pipe.chk2 == 1) {
var jon2;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y + 1] == chkArray[chkT]) {
jon2 = 1;
break;
}
jon2 = 0;
chkT++;
}
if (jon2 == 0) {
blockChk2(pArray[pipe.x][pipe.y + 1]);
}
}
if (pipe.chk3 == 1) {
var jon3;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x - 1][pipe.y] == chkArray[chkT]) {
jon3 = 1;
break;
}
jon3 = 0;
chkT++;
}
if (jon3 == 0) {
blockChk2(pArray[pipe.x - 1][pipe.y]);
}
}
if (pipe.chk4 == 1) {
var jon4;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x + 1][pipe.y] == chkArray[chkT]) {
jon4 = 1;
break;
}
jon4 = 0;
chkT++;
}
if (jon4 == 0) {
blockChk2(pArray[pipe.x + 1][pipe.y]);
}
}
} else {
chkArray = [];
}
pipe.onRelease = null;
pipe.itemUp = pipe._currentframe;
pArray[pipe.x][pipe.y] = 0;
pipeArray[pipe.x][pipe.y] = 0;
eval (pipe)._1_pipe._2_pipe._3_pipe.gotoAndStop(2);
pipe.onEnterFrame = function () {
this.i++;
if (this.i == 3) {
eval (pipe).gotoAndStop("break");
}
if (this.i == 5) {
this.tempArr = [];
j = this.y - 1;
while (j >= 0) {
if (this._parent.pipeArray[this.x][j] == 1) {
this.ok = 0;
ji = 0;
while (ji < this._parent.chkArray.length) {
if (this._parent.pArray[this.x][j] == this._parent.chkArray[ji]) {
this._parent.pArray[this.x][j].chk123 = 1;
}
ji++;
}
if (!this.ok) {
trace(this._parent.pArray[this.x][j]);
this.tempArr[this.tempArr.length] = this._parent.pArray[this.x][j];
this._parent.pipeArray[this.x][j] = 0;
this._parent.pArray[this.x][j] = 0;
trace("pipeArray" + this._parent.pipeArray[this.x][j]);
}
}
j--;
}
trace(this.tempArr);
j = 0;
while (j < this.tempArr.length) {
this._parent.pipeArray[this.x][this.y - j] = 1;
this._parent.pArray[this.x][this.y - j] = this.tempArr[j];
this.tempArr[j]._y = this._y - (this._parent.block.het * j);
this.tempArr[j].y = this.y - j;
j++;
}
if (this.itemUp == 2) {
item1Number = item1Number + 1;
_tempnum = new String(item1Number);
_1num = _tempnum.slice(-1);
if (item1Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item1Num.score1.gotoAndStop(Number(_1num) + 1);
item1Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 4) {
item2Number = item2Number + 1;
_tempnum = new String(item2Number);
_1num = _tempnum.slice(-1);
if (item2Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item2Num.score1.gotoAndStop(Number(_1num) + 1);
item2Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 3) {
item3Number = item3Number + 1;
_tempnum = new String(item3Number);
_1num = _tempnum.slice(-1);
if (item3Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item3Num.score1.gotoAndStop(Number(_1num) + 1);
item3Num.score2.gotoAndStop(Number(_2num) + 1);
}
_global.chkStart2 = 1;
this.removeMovieClip();
}
};
}
k09 = "\uB300\uD55C\uBBFC\uAD6D";
Set("\uC6C0\uB0D0", "\uB6AB\uC5B4\uBD10");
Set("\u701A\u85C9", \u5927\u97D3\u6C11\u570B);
if (testK) {
item1Number = 0;
item2Number = 0;
item3Number = 0;
waterSpeed = 16;
outWater = 4;
waterAmount = 50;
initScore = 1;
_global.score = 0;
stg = 1;
timing = 61;
depth = 10;
stgTime = 1;
chkArray = [];
_global.item1 = 0;
gameStage = new Object();
gameStage.minX = 125;
gameStage.minY = 75;
gameStage.wid = 150;
gameStage.het = 300;
depth = 10;
block = new Object();
block.wid = 30;
block.het = 30;
pipeArrayY1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArray = [pipeArrayY1, pipeArrayY2, pipeArrayY3, pipeArrayY4, pipeArrayY5];
pArray1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray = [pArray1, pArray2, pArray3, pArray4, pArray5];
tempScore = new String(_global.score);
_1score = tempScore.slice(-1);
_2score = tempScore.slice(-2, -1);
_3score = tempScore.slice(-3, -2);
_4score = tempScore.slice(-4, -3);
_5score = tempScore.slice(-5, -4);
scoreM.score1.gotoAndStop(Number(_1score) + 1);
scoreM.score2.gotoAndStop(Number(_2score) + 1);
scoreM.score3.gotoAndStop(Number(_3score) + 1);
scoreM.score4.gotoAndStop(Number(_4score) + 1);
scoreM.score5.gotoAndStop(Number(_5score) + 1);
i = 1;
while (i <= 5) {
if (pipeArray[i - 1][0] == 1) {
} else if (!_global.gameOver) {
depth++;
tempItem = random(50);
tempRan = random(14);
if (tempRan < 4) {
tempRan = 1;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 1];
} else if (tempRan < 8) {
tempRan = 2;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 0, 1, 0];
} else if (tempRan < 12) {
tempRan = 3;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 0];
} else if (tempRan < 13) {
if (stg > 3) {
tempRan = 4;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 1];
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
pipe.duplicateMovieClip("pipe" + depth, depth);
eval ("pipe" + depth)._x = ((gameStage.minX + (block.wid / 2)) + 1) + (block.wid * (i - 1));
eval ("pipe" + depth)._y = (gameStage.minY - (block.het / 2)) + 1;
if (tempItem < 3) {
tempRan2 = random(3) + 2;
eval ("pipe" + depth).gotoAndStop(tempRan2);
eval ("pipe" + depth).tempRan2 = tempRan2;
}
eval ("pipe" + depth)._1_pipe.gotoAndStop(tempRan);
eval ("pipe" + depth)._1_pipe._2_pipe.gotoAndStop(1);
eval ("pipe" + depth)._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
eval ("pipe" + depth).x = i - 1;
eval ("pipe" + depth).y = -1;
eval ("pipe" + depth).cap = 1;
eval ("pipe" + depth).onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
}
i++;
}
if (pipeArray[pipe.x][pipe.y + 1] == 0) {
pipeArray[pipe.x][pipe.y] = 0;
pArray[pipe.x][pipe.y] = null;
pipe.y = pipe.y + 1;
pArray[pipe.x][pipe.y - 2].onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
chkArray = [];
var it = 0;
while (it < 5) {
chkArray[i] = this._parent.pArray[it][this.y];
it++;
}
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
pipe._y = pipe._y + block.het;
} else {
pipeArray[pipe.x][pipe.y] = 1;
pArray[pipe.x][pipe.y] = pipe;
trace("\uC5D4\uD130\uD504\uB808\uC784");
_global.chkStart2 = 1;
return(0);
}
if ((stgTime % timing) == 0) {
readyBlock();
}
_global.chk = 1;
j = 0;
while (j < 10) {
chkArray = [];
pArray[0][j].input = 0;
pArray[0][j].output = 0;
if (pArray[0][j].value[2]) {
pArray[0][j].input = 1;
chkArray[chkArray.length] = pArray[0][j];
if ((((j == 9) && (pArray[0][j].value[0] == 0)) && (pArray[0][j].value[3] == 0)) && (pArray[0][j].value[1] == 1)) {
chkArray[chkArray.length] = pArray[0][j];
waterTank.character.gotoAndPlay("success");
removePipe(pArray[0][j]);
} else {
if (pArray[0][j].value[0] == 1) {
if (pArray[0][j - 1].value[1] == 1) {
chk1 = 1;
} else {
chk1 = 0;
}
}
if (pArray[0][j].value[1] == 1) {
if (pArray[0][j + 1].value[0] == 1) {
chk2 = 1;
} else if (j == 9) {
pArray[0][j].output = 1;
chk2 = 2;
} else {
chk2 = 0;
}
}
if (pArray[0][j].value[3] == 1) {
if (pArray[1][j].value[2] == 1) {
chk3 = 1;
} else {
chk3 = 0;
}
}
if (((chk1 != 0) && (chk2 != 0)) && (chk3 != 0)) {
if (chk1 == 1) {
if (blockChk2(pArray[0][j - 1]) == 0) {
}
}
if (chk2 == 1) {
if (blockChk2(pArray[0][j + 1]) == 0) {
}
}
if (chk3 == 1) {
if (blockChk2(pArray[1][j]) == 0) {
}
}
chk1 = (chk2 = (chk3 = null));
if (chkArray.length > 0) {
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].input) {
input = 1;
break;
}
input = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].output) {
output = 1;
break;
}
output = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].cap) {
vcap = 1;
} else {
vcap = 0;
break;
}
ki++;
}
if ((input && (output)) && (vcap)) {
input = 0;
output = 0;
vcap = 0;
waterTank.character.gotoAndPlay("success");
ki = 0;
while (ki < chkArray.length) {
_global.score = _global.score + initScore;
removePipe(chkArray[ki]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
initScore++;
ki++;
}
initScore = 1;
score();
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
}
j++;
}
input = 0;
output = 0;
vcap = 0;
_global.chk = 0;
i = 0;
while (i < 5) {
if (pipeArray[i][0] == 0) {
eSpeed = 0;
break;
}
eSpeed = 4;
i++;
}
if (waterAmount >= 100) {
_global.gameOver = 1;
}
if (waterAmount <= 0) {
_global.gameClear = 1;
}
_global.chkStart = 0;
pipe.chk1 = "";
pipe.chk2 = "";
pipe.chk3 = "";
pipe.chk4 = "";
if (pipe.value[0] == 1) {
var chk1;
if (pArray[pipe.x][pipe.y - 1].value[1] == 1) {
pipe.chk1 = 1;
} else {
pipe.chk1 = 0;
chkArray = [];
}
}
if (pipe.value[1] == 1) {
var chk2;
if (pArray[pipe.x][pipe.y + 1].value[0] == 1) {
pipe.chk2 = 1;
} else if (pipe.y == 9) {
pipe.output = 1;
pipe.chk2 = 2;
} else {
pipe.chk2 = 0;
chkArray = [];
}
}
if (pipe.value[2] == 1) {
var chk3;
if (pArray[pipe.x - 1][pipe.y].value[3] == 1) {
pipe.chk3 = 1;
} else if (pipe.x == 0) {
pipe.input = 1;
pipe.chk3 = 2;
} else {
pipe.chk3 = 0;
chkArray = [];
}
}
if (pipe.value[3] == 1) {
var chk4;
if (pArray[pipe.x + 1][pipe.y].value[2] == 1) {
pipe.chk4 = 1;
} else if (pipe.x == 4) {
pipe.output = 1;
pipe.input = 1;
pipe.chk4 = 2;
} else {
pipe.chk4 = 0;
chkArray = [];
}
}
if ((((pipe.chk1 != 0) && (pipe.chk2 != 0)) && (pipe.chk3 != 0)) && (pipe.chk4 != 0)) {
if (keyPut == 1) {
}
pipe.cap = 1;
chkArray[chkArray.length] = pipe;
if (pipe.chk1 == 1) {
var jon1;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y - 1] == chkArray[chkT]) {
jon1 = 1;
break;
}
jon1 = 0;
chkT++;
}
if (jon1 == 0) {
blockChk2(pArray[pipe.x][pipe.y - 1]);
}
}
if (pipe.chk2 == 1) {
var jon2;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y + 1] == chkArray[chkT]) {
jon2 = 1;
break;
}
jon2 = 0;
chkT++;
}
if (jon2 == 0) {
blockChk2(pArray[pipe.x][pipe.y + 1]);
}
}
if (pipe.chk3 == 1) {
var jon3;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x - 1][pipe.y] == chkArray[chkT]) {
jon3 = 1;
break;
}
jon3 = 0;
chkT++;
}
if (jon3 == 0) {
blockChk2(pArray[pipe.x - 1][pipe.y]);
}
}
if (pipe.chk4 == 1) {
var jon4;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x + 1][pipe.y] == chkArray[chkT]) {
jon4 = 1;
break;
}
jon4 = 0;
chkT++;
}
if (jon4 == 0) {
blockChk2(pArray[pipe.x + 1][pipe.y]);
}
}
} else {
chkArray = [];
}
pipe.onRelease = null;
pipe.itemUp = pipe._currentframe;
pArray[pipe.x][pipe.y] = 0;
pipeArray[pipe.x][pipe.y] = 0;
eval (pipe)._1_pipe._2_pipe._3_pipe.gotoAndStop(2);
pipe.onEnterFrame = function () {
this.i++;
if (this.i == 3) {
eval (pipe).gotoAndStop("break");
}
if (this.i == 5) {
this.tempArr = [];
j = this.y - 1;
while (j >= 0) {
if (this._parent.pipeArray[this.x][j] == 1) {
this.ok = 0;
ji = 0;
while (ji < this._parent.chkArray.length) {
if (this._parent.pArray[this.x][j] == this._parent.chkArray[ji]) {
this._parent.pArray[this.x][j].chk123 = 1;
}
ji++;
}
if (!this.ok) {
trace(this._parent.pArray[this.x][j]);
this.tempArr[this.tempArr.length] = this._parent.pArray[this.x][j];
this._parent.pipeArray[this.x][j] = 0;
this._parent.pArray[this.x][j] = 0;
trace("pipeArray" + this._parent.pipeArray[this.x][j]);
}
}
j--;
}
trace(this.tempArr);
j = 0;
while (j < this.tempArr.length) {
this._parent.pipeArray[this.x][this.y - j] = 1;
this._parent.pArray[this.x][this.y - j] = this.tempArr[j];
this.tempArr[j]._y = this._y - (this._parent.block.het * j);
this.tempArr[j].y = this.y - j;
j++;
}
if (this.itemUp == 2) {
item1Number = item1Number + 1;
_tempnum = new String(item1Number);
_1num = _tempnum.slice(-1);
if (item1Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item1Num.score1.gotoAndStop(Number(_1num) + 1);
item1Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 4) {
item2Number = item2Number + 1;
_tempnum = new String(item2Number);
_1num = _tempnum.slice(-1);
if (item2Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item2Num.score1.gotoAndStop(Number(_1num) + 1);
item2Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 3) {
item3Number = item3Number + 1;
_tempnum = new String(item3Number);
_1num = _tempnum.slice(-1);
if (item3Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item3Num.score1.gotoAndStop(Number(_1num) + 1);
item3Num.score2.gotoAndStop(Number(_2num) + 1);
}
_global.chkStart2 = 1;
this.removeMovieClip();
}
};
}
k09 = "\uB300\uD55C\uBBFC\uAD6D";
Set("\uC6C0\uB0D0", "\uB6AB\uC5B4\uBD10");
Set("\u701A\u85C9", \u5927\u97D3\u6C11\u570B);
if (testK) {
item1Number = 0;
item2Number = 0;
item3Number = 0;
waterSpeed = 16;
outWater = 4;
waterAmount = 50;
initScore = 1;
_global.score = 0;
stg = 1;
timing = 61;
depth = 10;
stgTime = 1;
chkArray = [];
_global.item1 = 0;
gameStage = new Object();
gameStage.minX = 125;
gameStage.minY = 75;
gameStage.wid = 150;
gameStage.het = 300;
depth = 10;
block = new Object();
block.wid = 30;
block.het = 30;
pipeArrayY1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArray = [pipeArrayY1, pipeArrayY2, pipeArrayY3, pipeArrayY4, pipeArrayY5];
pArray1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray = [pArray1, pArray2, pArray3, pArray4, pArray5];
tempScore = new String(_global.score);
_1score = tempScore.slice(-1);
_2score = tempScore.slice(-2, -1);
_3score = tempScore.slice(-3, -2);
_4score = tempScore.slice(-4, -3);
_5score = tempScore.slice(-5, -4);
scoreM.score1.gotoAndStop(Number(_1score) + 1);
scoreM.score2.gotoAndStop(Number(_2score) + 1);
scoreM.score3.gotoAndStop(Number(_3score) + 1);
scoreM.score4.gotoAndStop(Number(_4score) + 1);
scoreM.score5.gotoAndStop(Number(_5score) + 1);
i = 1;
while (i <= 5) {
if (pipeArray[i - 1][0] == 1) {
} else if (!_global.gameOver) {
depth++;
tempItem = random(50);
tempRan = random(14);
if (tempRan < 4) {
tempRan = 1;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 1];
} else if (tempRan < 8) {
tempRan = 2;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 0, 1, 0];
} else if (tempRan < 12) {
tempRan = 3;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 0];
} else if (tempRan < 13) {
if (stg > 3) {
tempRan = 4;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 1];
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
pipe.duplicateMovieClip("pipe" + depth, depth);
eval ("pipe" + depth)._x = ((gameStage.minX + (block.wid / 2)) + 1) + (block.wid * (i - 1));
eval ("pipe" + depth)._y = (gameStage.minY - (block.het / 2)) + 1;
if (tempItem < 3) {
tempRan2 = random(3) + 2;
eval ("pipe" + depth).gotoAndStop(tempRan2);
eval ("pipe" + depth).tempRan2 = tempRan2;
}
eval ("pipe" + depth)._1_pipe.gotoAndStop(tempRan);
eval ("pipe" + depth)._1_pipe._2_pipe.gotoAndStop(1);
eval ("pipe" + depth)._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
eval ("pipe" + depth).x = i - 1;
eval ("pipe" + depth).y = -1;
eval ("pipe" + depth).cap = 1;
eval ("pipe" + depth).onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
}
i++;
}
if (pipeArray[pipe.x][pipe.y + 1] == 0) {
pipeArray[pipe.x][pipe.y] = 0;
pArray[pipe.x][pipe.y] = null;
pipe.y = pipe.y + 1;
pArray[pipe.x][pipe.y - 2].onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
chkArray = [];
var it = 0;
while (it < 5) {
chkArray[i] = this._parent.pArray[it][this.y];
it++;
}
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
pipe._y = pipe._y + block.het;
} else {
pipeArray[pipe.x][pipe.y] = 1;
pArray[pipe.x][pipe.y] = pipe;
trace("\uC5D4\uD130\uD504\uB808\uC784");
_global.chkStart2 = 1;
return(0);
}
if ((stgTime % timing) == 0) {
readyBlock();
}
_global.chk = 1;
j = 0;
while (j < 10) {
chkArray = [];
pArray[0][j].input = 0;
pArray[0][j].output = 0;
if (pArray[0][j].value[2]) {
pArray[0][j].input = 1;
chkArray[chkArray.length] = pArray[0][j];
if ((((j == 9) && (pArray[0][j].value[0] == 0)) && (pArray[0][j].value[3] == 0)) && (pArray[0][j].value[1] == 1)) {
chkArray[chkArray.length] = pArray[0][j];
waterTank.character.gotoAndPlay("success");
removePipe(pArray[0][j]);
} else {
if (pArray[0][j].value[0] == 1) {
if (pArray[0][j - 1].value[1] == 1) {
chk1 = 1;
} else {
chk1 = 0;
}
}
if (pArray[0][j].value[1] == 1) {
if (pArray[0][j + 1].value[0] == 1) {
chk2 = 1;
} else if (j == 9) {
pArray[0][j].output = 1;
chk2 = 2;
} else {
chk2 = 0;
}
}
if (pArray[0][j].value[3] == 1) {
if (pArray[1][j].value[2] == 1) {
chk3 = 1;
} else {
chk3 = 0;
}
}
if (((chk1 != 0) && (chk2 != 0)) && (chk3 != 0)) {
if (chk1 == 1) {
if (blockChk2(pArray[0][j - 1]) == 0) {
}
}
if (chk2 == 1) {
if (blockChk2(pArray[0][j + 1]) == 0) {
}
}
if (chk3 == 1) {
if (blockChk2(pArray[1][j]) == 0) {
}
}
chk1 = (chk2 = (chk3 = null));
if (chkArray.length > 0) {
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].input) {
input = 1;
break;
}
input = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].output) {
output = 1;
break;
}
output = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].cap) {
vcap = 1;
} else {
vcap = 0;
break;
}
ki++;
}
if ((input && (output)) && (vcap)) {
input = 0;
output = 0;
vcap = 0;
waterTank.character.gotoAndPlay("success");
ki = 0;
while (ki < chkArray.length) {
_global.score = _global.score + initScore;
removePipe(chkArray[ki]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
initScore++;
ki++;
}
initScore = 1;
score();
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
}
j++;
}
input = 0;
output = 0;
vcap = 0;
_global.chk = 0;
i = 0;
while (i < 5) {
if (pipeArray[i][0] == 0) {
eSpeed = 0;
break;
}
eSpeed = 4;
i++;
}
if (waterAmount >= 100) {
_global.gameOver = 1;
}
if (waterAmount <= 0) {
_global.gameClear = 1;
}
_global.chkStart = 0;
pipe.chk1 = "";
pipe.chk2 = "";
pipe.chk3 = "";
pipe.chk4 = "";
if (pipe.value[0] == 1) {
var chk1;
if (pArray[pipe.x][pipe.y - 1].value[1] == 1) {
pipe.chk1 = 1;
} else {
pipe.chk1 = 0;
chkArray = [];
}
}
if (pipe.value[1] == 1) {
var chk2;
if (pArray[pipe.x][pipe.y + 1].value[0] == 1) {
pipe.chk2 = 1;
} else if (pipe.y == 9) {
pipe.output = 1;
pipe.chk2 = 2;
} else {
pipe.chk2 = 0;
chkArray = [];
}
}
if (pipe.value[2] == 1) {
var chk3;
if (pArray[pipe.x - 1][pipe.y].value[3] == 1) {
pipe.chk3 = 1;
} else if (pipe.x == 0) {
pipe.input = 1;
pipe.chk3 = 2;
} else {
pipe.chk3 = 0;
chkArray = [];
}
}
if (pipe.value[3] == 1) {
var chk4;
if (pArray[pipe.x + 1][pipe.y].value[2] == 1) {
pipe.chk4 = 1;
} else if (pipe.x == 4) {
pipe.output = 1;
pipe.input = 1;
pipe.chk4 = 2;
} else {
pipe.chk4 = 0;
chkArray = [];
}
}
if ((((pipe.chk1 != 0) && (pipe.chk2 != 0)) && (pipe.chk3 != 0)) && (pipe.chk4 != 0)) {
if (keyPut == 1) {
}
pipe.cap = 1;
chkArray[chkArray.length] = pipe;
if (pipe.chk1 == 1) {
var jon1;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y - 1] == chkArray[chkT]) {
jon1 = 1;
break;
}
jon1 = 0;
chkT++;
}
if (jon1 == 0) {
blockChk2(pArray[pipe.x][pipe.y - 1]);
}
}
if (pipe.chk2 == 1) {
var jon2;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y + 1] == chkArray[chkT]) {
jon2 = 1;
break;
}
jon2 = 0;
chkT++;
}
if (jon2 == 0) {
blockChk2(pArray[pipe.x][pipe.y + 1]);
}
}
if (pipe.chk3 == 1) {
var jon3;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x - 1][pipe.y] == chkArray[chkT]) {
jon3 = 1;
break;
}
jon3 = 0;
chkT++;
}
if (jon3 == 0) {
blockChk2(pArray[pipe.x - 1][pipe.y]);
}
}
if (pipe.chk4 == 1) {
var jon4;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x + 1][pipe.y] == chkArray[chkT]) {
jon4 = 1;
break;
}
jon4 = 0;
chkT++;
}
if (jon4 == 0) {
blockChk2(pArray[pipe.x + 1][pipe.y]);
}
}
} else {
chkArray = [];
}
pipe.onRelease = null;
pipe.itemUp = pipe._currentframe;
pArray[pipe.x][pipe.y] = 0;
pipeArray[pipe.x][pipe.y] = 0;
eval (pipe)._1_pipe._2_pipe._3_pipe.gotoAndStop(2);
pipe.onEnterFrame = function () {
this.i++;
if (this.i == 3) {
eval (pipe).gotoAndStop("break");
}
if (this.i == 5) {
this.tempArr = [];
j = this.y - 1;
while (j >= 0) {
if (this._parent.pipeArray[this.x][j] == 1) {
this.ok = 0;
ji = 0;
while (ji < this._parent.chkArray.length) {
if (this._parent.pArray[this.x][j] == this._parent.chkArray[ji]) {
this._parent.pArray[this.x][j].chk123 = 1;
}
ji++;
}
if (!this.ok) {
trace(this._parent.pArray[this.x][j]);
this.tempArr[this.tempArr.length] = this._parent.pArray[this.x][j];
this._parent.pipeArray[this.x][j] = 0;
this._parent.pArray[this.x][j] = 0;
trace("pipeArray" + this._parent.pipeArray[this.x][j]);
}
}
j--;
}
trace(this.tempArr);
j = 0;
while (j < this.tempArr.length) {
this._parent.pipeArray[this.x][this.y - j] = 1;
this._parent.pArray[this.x][this.y - j] = this.tempArr[j];
this.tempArr[j]._y = this._y - (this._parent.block.het * j);
this.tempArr[j].y = this.y - j;
j++;
}
if (this.itemUp == 2) {
item1Number = item1Number + 1;
_tempnum = new String(item1Number);
_1num = _tempnum.slice(-1);
if (item1Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item1Num.score1.gotoAndStop(Number(_1num) + 1);
item1Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 4) {
item2Number = item2Number + 1;
_tempnum = new String(item2Number);
_1num = _tempnum.slice(-1);
if (item2Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item2Num.score1.gotoAndStop(Number(_1num) + 1);
item2Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 3) {
item3Number = item3Number + 1;
_tempnum = new String(item3Number);
_1num = _tempnum.slice(-1);
if (item3Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item3Num.score1.gotoAndStop(Number(_1num) + 1);
item3Num.score2.gotoAndStop(Number(_2num) + 1);
}
_global.chkStart2 = 1;
this.removeMovieClip();
}
};
}
k09 = "\uB300\uD55C\uBBFC\uAD6D";
Set("\uC6C0\uB0D0", "\uB6AB\uC5B4\uBD10");
Set("\u701A\u85C9", \u5927\u97D3\u6C11\u570B);
if (testK) {
item1Number = 0;
item2Number = 0;
item3Number = 0;
waterSpeed = 16;
outWater = 4;
waterAmount = 50;
initScore = 1;
_global.score = 0;
stg = 1;
timing = 61;
depth = 10;
stgTime = 1;
chkArray = [];
_global.item1 = 0;
gameStage = new Object();
gameStage.minX = 125;
gameStage.minY = 75;
gameStage.wid = 150;
gameStage.het = 300;
depth = 10;
block = new Object();
block.wid = 30;
block.het = 30;
pipeArrayY1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArray = [pipeArrayY1, pipeArrayY2, pipeArrayY3, pipeArrayY4, pipeArrayY5];
pArray1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray = [pArray1, pArray2, pArray3, pArray4, pArray5];
tempScore = new String(_global.score);
_1score = tempScore.slice(-1);
_2score = tempScore.slice(-2, -1);
_3score = tempScore.slice(-3, -2);
_4score = tempScore.slice(-4, -3);
_5score = tempScore.slice(-5, -4);
scoreM.score1.gotoAndStop(Number(_1score) + 1);
scoreM.score2.gotoAndStop(Number(_2score) + 1);
scoreM.score3.gotoAndStop(Number(_3score) + 1);
scoreM.score4.gotoAndStop(Number(_4score) + 1);
scoreM.score5.gotoAndStop(Number(_5score) + 1);
i = 1;
while (i <= 5) {
if (pipeArray[i - 1][0] == 1) {
} else if (!_global.gameOver) {
depth++;
tempItem = random(50);
tempRan = random(14);
if (tempRan < 4) {
tempRan = 1;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 1];
} else if (tempRan < 8) {
tempRan = 2;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 0, 1, 0];
} else if (tempRan < 12) {
tempRan = 3;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 0];
} else if (tempRan < 13) {
if (stg > 3) {
tempRan = 4;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 1];
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
pipe.duplicateMovieClip("pipe" + depth, depth);
eval ("pipe" + depth)._x = ((gameStage.minX + (block.wid / 2)) + 1) + (block.wid * (i - 1));
eval ("pipe" + depth)._y = (gameStage.minY - (block.het / 2)) + 1;
if (tempItem < 3) {
tempRan2 = random(3) + 2;
eval ("pipe" + depth).gotoAndStop(tempRan2);
eval ("pipe" + depth).tempRan2 = tempRan2;
}
eval ("pipe" + depth)._1_pipe.gotoAndStop(tempRan);
eval ("pipe" + depth)._1_pipe._2_pipe.gotoAndStop(1);
eval ("pipe" + depth)._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
eval ("pipe" + depth).x = i - 1;
eval ("pipe" + depth).y = -1;
eval ("pipe" + depth).cap = 1;
eval ("pipe" + depth).onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
}
i++;
}
if (pipeArray[pipe.x][pipe.y + 1] == 0) {
pipeArray[pipe.x][pipe.y] = 0;
pArray[pipe.x][pipe.y] = null;
pipe.y = pipe.y + 1;
pArray[pipe.x][pipe.y - 2].onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
chkArray = [];
var it = 0;
while (it < 5) {
chkArray[i] = this._parent.pArray[it][this.y];
it++;
}
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
pipe._y = pipe._y + block.het;
} else {
pipeArray[pipe.x][pipe.y] = 1;
pArray[pipe.x][pipe.y] = pipe;
trace("\uC5D4\uD130\uD504\uB808\uC784");
_global.chkStart2 = 1;
return(0);
}
if ((stgTime % timing) == 0) {
readyBlock();
}
_global.chk = 1;
j = 0;
while (j < 10) {
chkArray = [];
pArray[0][j].input = 0;
pArray[0][j].output = 0;
if (pArray[0][j].value[2]) {
pArray[0][j].input = 1;
chkArray[chkArray.length] = pArray[0][j];
if ((((j == 9) && (pArray[0][j].value[0] == 0)) && (pArray[0][j].value[3] == 0)) && (pArray[0][j].value[1] == 1)) {
chkArray[chkArray.length] = pArray[0][j];
waterTank.character.gotoAndPlay("success");
removePipe(pArray[0][j]);
} else {
if (pArray[0][j].value[0] == 1) {
if (pArray[0][j - 1].value[1] == 1) {
chk1 = 1;
} else {
chk1 = 0;
}
}
if (pArray[0][j].value[1] == 1) {
if (pArray[0][j + 1].value[0] == 1) {
chk2 = 1;
} else if (j == 9) {
pArray[0][j].output = 1;
chk2 = 2;
} else {
chk2 = 0;
}
}
if (pArray[0][j].value[3] == 1) {
if (pArray[1][j].value[2] == 1) {
chk3 = 1;
} else {
chk3 = 0;
}
}
if (((chk1 != 0) && (chk2 != 0)) && (chk3 != 0)) {
if (chk1 == 1) {
if (blockChk2(pArray[0][j - 1]) == 0) {
}
}
if (chk2 == 1) {
if (blockChk2(pArray[0][j + 1]) == 0) {
}
}
if (chk3 == 1) {
if (blockChk2(pArray[1][j]) == 0) {
}
}
chk1 = (chk2 = (chk3 = null));
if (chkArray.length > 0) {
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].input) {
input = 1;
break;
}
input = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].output) {
output = 1;
break;
}
output = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].cap) {
vcap = 1;
} else {
vcap = 0;
break;
}
ki++;
}
if ((input && (output)) && (vcap)) {
input = 0;
output = 0;
vcap = 0;
waterTank.character.gotoAndPlay("success");
ki = 0;
while (ki < chkArray.length) {
_global.score = _global.score + initScore;
removePipe(chkArray[ki]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
initScore++;
ki++;
}
initScore = 1;
score();
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
}
j++;
}
input = 0;
output = 0;
vcap = 0;
_global.chk = 0;
i = 0;
while (i < 5) {
if (pipeArray[i][0] == 0) {
eSpeed = 0;
break;
}
eSpeed = 4;
i++;
}
if (waterAmount >= 100) {
_global.gameOver = 1;
}
if (waterAmount <= 0) {
_global.gameClear = 1;
}
_global.chkStart = 0;
pipe.chk1 = "";
pipe.chk2 = "";
pipe.chk3 = "";
pipe.chk4 = "";
if (pipe.value[0] == 1) {
var chk1;
if (pArray[pipe.x][pipe.y - 1].value[1] == 1) {
pipe.chk1 = 1;
} else {
pipe.chk1 = 0;
chkArray = [];
}
}
if (pipe.value[1] == 1) {
var chk2;
if (pArray[pipe.x][pipe.y + 1].value[0] == 1) {
pipe.chk2 = 1;
} else if (pipe.y == 9) {
pipe.output = 1;
pipe.chk2 = 2;
} else {
pipe.chk2 = 0;
chkArray = [];
}
}
if (pipe.value[2] == 1) {
var chk3;
if (pArray[pipe.x - 1][pipe.y].value[3] == 1) {
pipe.chk3 = 1;
} else if (pipe.x == 0) {
pipe.input = 1;
pipe.chk3 = 2;
} else {
pipe.chk3 = 0;
chkArray = [];
}
}
if (pipe.value[3] == 1) {
var chk4;
if (pArray[pipe.x + 1][pipe.y].value[2] == 1) {
pipe.chk4 = 1;
} else if (pipe.x == 4) {
pipe.output = 1;
pipe.input = 1;
pipe.chk4 = 2;
} else {
pipe.chk4 = 0;
chkArray = [];
}
}
if ((((pipe.chk1 != 0) && (pipe.chk2 != 0)) && (pipe.chk3 != 0)) && (pipe.chk4 != 0)) {
if (keyPut == 1) {
}
pipe.cap = 1;
chkArray[chkArray.length] = pipe;
if (pipe.chk1 == 1) {
var jon1;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y - 1] == chkArray[chkT]) {
jon1 = 1;
break;
}
jon1 = 0;
chkT++;
}
if (jon1 == 0) {
blockChk2(pArray[pipe.x][pipe.y - 1]);
}
}
if (pipe.chk2 == 1) {
var jon2;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y + 1] == chkArray[chkT]) {
jon2 = 1;
break;
}
jon2 = 0;
chkT++;
}
if (jon2 == 0) {
blockChk2(pArray[pipe.x][pipe.y + 1]);
}
}
if (pipe.chk3 == 1) {
var jon3;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x - 1][pipe.y] == chkArray[chkT]) {
jon3 = 1;
break;
}
jon3 = 0;
chkT++;
}
if (jon3 == 0) {
blockChk2(pArray[pipe.x - 1][pipe.y]);
}
}
if (pipe.chk4 == 1) {
var jon4;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x + 1][pipe.y] == chkArray[chkT]) {
jon4 = 1;
break;
}
jon4 = 0;
chkT++;
}
if (jon4 == 0) {
blockChk2(pArray[pipe.x + 1][pipe.y]);
}
}
} else {
chkArray = [];
}
pipe.onRelease = null;
pipe.itemUp = pipe._currentframe;
pArray[pipe.x][pipe.y] = 0;
pipeArray[pipe.x][pipe.y] = 0;
eval (pipe)._1_pipe._2_pipe._3_pipe.gotoAndStop(2);
pipe.onEnterFrame = function () {
this.i++;
if (this.i == 3) {
eval (pipe).gotoAndStop("break");
}
if (this.i == 5) {
this.tempArr = [];
j = this.y - 1;
while (j >= 0) {
if (this._parent.pipeArray[this.x][j] == 1) {
this.ok = 0;
ji = 0;
while (ji < this._parent.chkArray.length) {
if (this._parent.pArray[this.x][j] == this._parent.chkArray[ji]) {
this._parent.pArray[this.x][j].chk123 = 1;
}
ji++;
}
if (!this.ok) {
trace(this._parent.pArray[this.x][j]);
this.tempArr[this.tempArr.length] = this._parent.pArray[this.x][j];
this._parent.pipeArray[this.x][j] = 0;
this._parent.pArray[this.x][j] = 0;
trace("pipeArray" + this._parent.pipeArray[this.x][j]);
}
}
j--;
}
trace(this.tempArr);
j = 0;
while (j < this.tempArr.length) {
this._parent.pipeArray[this.x][this.y - j] = 1;
this._parent.pArray[this.x][this.y - j] = this.tempArr[j];
this.tempArr[j]._y = this._y - (this._parent.block.het * j);
this.tempArr[j].y = this.y - j;
j++;
}
if (this.itemUp == 2) {
item1Number = item1Number + 1;
_tempnum = new String(item1Number);
_1num = _tempnum.slice(-1);
if (item1Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item1Num.score1.gotoAndStop(Number(_1num) + 1);
item1Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 4) {
item2Number = item2Number + 1;
_tempnum = new String(item2Number);
_1num = _tempnum.slice(-1);
if (item2Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item2Num.score1.gotoAndStop(Number(_1num) + 1);
item2Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 3) {
item3Number = item3Number + 1;
_tempnum = new String(item3Number);
_1num = _tempnum.slice(-1);
if (item3Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item3Num.score1.gotoAndStop(Number(_1num) + 1);
item3Num.score2.gotoAndStop(Number(_2num) + 1);
}
_global.chkStart2 = 1;
this.removeMovieClip();
}
};
}
k09 = "\uB300\uD55C\uBBFC\uAD6D";
Set("\uC6C0\uB0D0", "\uB6AB\uC5B4\uBD10");
Set("\u701A\u85C9", \u5927\u97D3\u6C11\u570B);
if (testK) {
item1Number = 0;
item2Number = 0;
item3Number = 0;
waterSpeed = 16;
outWater = 4;
waterAmount = 50;
initScore = 1;
_global.score = 0;
stg = 1;
timing = 61;
depth = 10;
stgTime = 1;
chkArray = [];
_global.item1 = 0;
gameStage = new Object();
gameStage.minX = 125;
gameStage.minY = 75;
gameStage.wid = 150;
gameStage.het = 300;
depth = 10;
block = new Object();
block.wid = 30;
block.het = 30;
pipeArrayY1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArray = [pipeArrayY1, pipeArrayY2, pipeArrayY3, pipeArrayY4, pipeArrayY5];
pArray1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray = [pArray1, pArray2, pArray3, pArray4, pArray5];
tempScore = new String(_global.score);
_1score = tempScore.slice(-1);
_2score = tempScore.slice(-2, -1);
_3score = tempScore.slice(-3, -2);
_4score = tempScore.slice(-4, -3);
_5score = tempScore.slice(-5, -4);
scoreM.score1.gotoAndStop(Number(_1score) + 1);
scoreM.score2.gotoAndStop(Number(_2score) + 1);
scoreM.score3.gotoAndStop(Number(_3score) + 1);
scoreM.score4.gotoAndStop(Number(_4score) + 1);
scoreM.score5.gotoAndStop(Number(_5score) + 1);
i = 1;
while (i <= 5) {
if (pipeArray[i - 1][0] == 1) {
} else if (!_global.gameOver) {
depth++;
tempItem = random(50);
tempRan = random(14);
if (tempRan < 4) {
tempRan = 1;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 1];
} else if (tempRan < 8) {
tempRan = 2;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 0, 1, 0];
} else if (tempRan < 12) {
tempRan = 3;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 0];
} else if (tempRan < 13) {
if (stg > 3) {
tempRan = 4;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 1];
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
pipe.duplicateMovieClip("pipe" + depth, depth);
eval ("pipe" + depth)._x = ((gameStage.minX + (block.wid / 2)) + 1) + (block.wid * (i - 1));
eval ("pipe" + depth)._y = (gameStage.minY - (block.het / 2)) + 1;
if (tempItem < 3) {
tempRan2 = random(3) + 2;
eval ("pipe" + depth).gotoAndStop(tempRan2);
eval ("pipe" + depth).tempRan2 = tempRan2;
}
eval ("pipe" + depth)._1_pipe.gotoAndStop(tempRan);
eval ("pipe" + depth)._1_pipe._2_pipe.gotoAndStop(1);
eval ("pipe" + depth)._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
eval ("pipe" + depth).x = i - 1;
eval ("pipe" + depth).y = -1;
eval ("pipe" + depth).cap = 1;
eval ("pipe" + depth).onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
}
i++;
}
if (pipeArray[pipe.x][pipe.y + 1] == 0) {
pipeArray[pipe.x][pipe.y] = 0;
pArray[pipe.x][pipe.y] = null;
pipe.y = pipe.y + 1;
pArray[pipe.x][pipe.y - 2].onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
chkArray = [];
var it = 0;
while (it < 5) {
chkArray[i] = this._parent.pArray[it][this.y];
it++;
}
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
pipe._y = pipe._y + block.het;
} else {
pipeArray[pipe.x][pipe.y] = 1;
pArray[pipe.x][pipe.y] = pipe;
trace("\uC5D4\uD130\uD504\uB808\uC784");
_global.chkStart2 = 1;
return(0);
}
if ((stgTime % timing) == 0) {
readyBlock();
}
_global.chk = 1;
j = 0;
while (j < 10) {
chkArray = [];
pArray[0][j].input = 0;
pArray[0][j].output = 0;
if (pArray[0][j].value[2]) {
pArray[0][j].input = 1;
chkArray[chkArray.length] = pArray[0][j];
if ((((j == 9) && (pArray[0][j].value[0] == 0)) && (pArray[0][j].value[3] == 0)) && (pArray[0][j].value[1] == 1)) {
chkArray[chkArray.length] = pArray[0][j];
waterTank.character.gotoAndPlay("success");
removePipe(pArray[0][j]);
} else {
if (pArray[0][j].value[0] == 1) {
if (pArray[0][j - 1].value[1] == 1) {
chk1 = 1;
} else {
chk1 = 0;
}
}
if (pArray[0][j].value[1] == 1) {
if (pArray[0][j + 1].value[0] == 1) {
chk2 = 1;
} else if (j == 9) {
pArray[0][j].output = 1;
chk2 = 2;
} else {
chk2 = 0;
}
}
if (pArray[0][j].value[3] == 1) {
if (pArray[1][j].value[2] == 1) {
chk3 = 1;
} else {
chk3 = 0;
}
}
if (((chk1 != 0) && (chk2 != 0)) && (chk3 != 0)) {
if (chk1 == 1) {
if (blockChk2(pArray[0][j - 1]) == 0) {
}
}
if (chk2 == 1) {
if (blockChk2(pArray[0][j + 1]) == 0) {
}
}
if (chk3 == 1) {
if (blockChk2(pArray[1][j]) == 0) {
}
}
chk1 = (chk2 = (chk3 = null));
if (chkArray.length > 0) {
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].input) {
input = 1;
break;
}
input = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].output) {
output = 1;
break;
}
output = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].cap) {
vcap = 1;
} else {
vcap = 0;
break;
}
ki++;
}
if ((input && (output)) && (vcap)) {
input = 0;
output = 0;
vcap = 0;
waterTank.character.gotoAndPlay("success");
ki = 0;
while (ki < chkArray.length) {
_global.score = _global.score + initScore;
removePipe(chkArray[ki]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
initScore++;
ki++;
}
initScore = 1;
score();
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
}
j++;
}
input = 0;
output = 0;
vcap = 0;
_global.chk = 0;
i = 0;
while (i < 5) {
if (pipeArray[i][0] == 0) {
eSpeed = 0;
break;
}
eSpeed = 4;
i++;
}
if (waterAmount >= 100) {
_global.gameOver = 1;
}
if (waterAmount <= 0) {
_global.gameClear = 1;
}
_global.chkStart = 0;
pipe.chk1 = "";
pipe.chk2 = "";
pipe.chk3 = "";
pipe.chk4 = "";
if (pipe.value[0] == 1) {
var chk1;
if (pArray[pipe.x][pipe.y - 1].value[1] == 1) {
pipe.chk1 = 1;
} else {
pipe.chk1 = 0;
chkArray = [];
}
}
if (pipe.value[1] == 1) {
var chk2;
if (pArray[pipe.x][pipe.y + 1].value[0] == 1) {
pipe.chk2 = 1;
} else if (pipe.y == 9) {
pipe.output = 1;
pipe.chk2 = 2;
} else {
pipe.chk2 = 0;
chkArray = [];
}
}
if (pipe.value[2] == 1) {
var chk3;
if (pArray[pipe.x - 1][pipe.y].value[3] == 1) {
pipe.chk3 = 1;
} else if (pipe.x == 0) {
pipe.input = 1;
pipe.chk3 = 2;
} else {
pipe.chk3 = 0;
chkArray = [];
}
}
if (pipe.value[3] == 1) {
var chk4;
if (pArray[pipe.x + 1][pipe.y].value[2] == 1) {
pipe.chk4 = 1;
} else if (pipe.x == 4) {
pipe.output = 1;
pipe.input = 1;
pipe.chk4 = 2;
} else {
pipe.chk4 = 0;
chkArray = [];
}
}
if ((((pipe.chk1 != 0) && (pipe.chk2 != 0)) && (pipe.chk3 != 0)) && (pipe.chk4 != 0)) {
if (keyPut == 1) {
}
pipe.cap = 1;
chkArray[chkArray.length] = pipe;
if (pipe.chk1 == 1) {
var jon1;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y - 1] == chkArray[chkT]) {
jon1 = 1;
break;
}
jon1 = 0;
chkT++;
}
if (jon1 == 0) {
blockChk2(pArray[pipe.x][pipe.y - 1]);
}
}
if (pipe.chk2 == 1) {
var jon2;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y + 1] == chkArray[chkT]) {
jon2 = 1;
break;
}
jon2 = 0;
chkT++;
}
if (jon2 == 0) {
blockChk2(pArray[pipe.x][pipe.y + 1]);
}
}
if (pipe.chk3 == 1) {
var jon3;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x - 1][pipe.y] == chkArray[chkT]) {
jon3 = 1;
break;
}
jon3 = 0;
chkT++;
}
if (jon3 == 0) {
blockChk2(pArray[pipe.x - 1][pipe.y]);
}
}
if (pipe.chk4 == 1) {
var jon4;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x + 1][pipe.y] == chkArray[chkT]) {
jon4 = 1;
break;
}
jon4 = 0;
chkT++;
}
if (jon4 == 0) {
blockChk2(pArray[pipe.x + 1][pipe.y]);
}
}
} else {
chkArray = [];
}
pipe.onRelease = null;
pipe.itemUp = pipe._currentframe;
pArray[pipe.x][pipe.y] = 0;
pipeArray[pipe.x][pipe.y] = 0;
eval (pipe)._1_pipe._2_pipe._3_pipe.gotoAndStop(2);
pipe.onEnterFrame = function () {
this.i++;
if (this.i == 3) {
eval (pipe).gotoAndStop("break");
}
if (this.i == 5) {
this.tempArr = [];
j = this.y - 1;
while (j >= 0) {
if (this._parent.pipeArray[this.x][j] == 1) {
this.ok = 0;
ji = 0;
while (ji < this._parent.chkArray.length) {
if (this._parent.pArray[this.x][j] == this._parent.chkArray[ji]) {
this._parent.pArray[this.x][j].chk123 = 1;
}
ji++;
}
if (!this.ok) {
trace(this._parent.pArray[this.x][j]);
this.tempArr[this.tempArr.length] = this._parent.pArray[this.x][j];
this._parent.pipeArray[this.x][j] = 0;
this._parent.pArray[this.x][j] = 0;
trace("pipeArray" + this._parent.pipeArray[this.x][j]);
}
}
j--;
}
trace(this.tempArr);
j = 0;
while (j < this.tempArr.length) {
this._parent.pipeArray[this.x][this.y - j] = 1;
this._parent.pArray[this.x][this.y - j] = this.tempArr[j];
this.tempArr[j]._y = this._y - (this._parent.block.het * j);
this.tempArr[j].y = this.y - j;
j++;
}
if (this.itemUp == 2) {
item1Number = item1Number + 1;
_tempnum = new String(item1Number);
_1num = _tempnum.slice(-1);
if (item1Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item1Num.score1.gotoAndStop(Number(_1num) + 1);
item1Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 4) {
item2Number = item2Number + 1;
_tempnum = new String(item2Number);
_1num = _tempnum.slice(-1);
if (item2Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item2Num.score1.gotoAndStop(Number(_1num) + 1);
item2Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 3) {
item3Number = item3Number + 1;
_tempnum = new String(item3Number);
_1num = _tempnum.slice(-1);
if (item3Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item3Num.score1.gotoAndStop(Number(_1num) + 1);
item3Num.score2.gotoAndStop(Number(_2num) + 1);
}
_global.chkStart2 = 1;
this.removeMovieClip();
}
};
}
k09 = "\uB300\uD55C\uBBFC\uAD6D";
Set("\uC6C0\uB0D0", "\uB6AB\uC5B4\uBD10");
Set("\u701A\u85C9", \u5927\u97D3\u6C11\u570B);
if (testK) {
item1Number = 0;
item2Number = 0;
item3Number = 0;
waterSpeed = 16;
outWater = 4;
waterAmount = 50;
initScore = 1;
_global.score = 0;
stg = 1;
timing = 61;
depth = 10;
stgTime = 1;
chkArray = [];
_global.item1 = 0;
gameStage = new Object();
gameStage.minX = 125;
gameStage.minY = 75;
gameStage.wid = 150;
gameStage.het = 300;
depth = 10;
block = new Object();
block.wid = 30;
block.het = 30;
pipeArrayY1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArray = [pipeArrayY1, pipeArrayY2, pipeArrayY3, pipeArrayY4, pipeArrayY5];
pArray1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray = [pArray1, pArray2, pArray3, pArray4, pArray5];
tempScore = new String(_global.score);
_1score = tempScore.slice(-1);
_2score = tempScore.slice(-2, -1);
_3score = tempScore.slice(-3, -2);
_4score = tempScore.slice(-4, -3);
_5score = tempScore.slice(-5, -4);
scoreM.score1.gotoAndStop(Number(_1score) + 1);
scoreM.score2.gotoAndStop(Number(_2score) + 1);
scoreM.score3.gotoAndStop(Number(_3score) + 1);
scoreM.score4.gotoAndStop(Number(_4score) + 1);
scoreM.score5.gotoAndStop(Number(_5score) + 1);
i = 1;
while (i <= 5) {
if (pipeArray[i - 1][0] == 1) {
} else if (!_global.gameOver) {
depth++;
tempItem = random(50);
tempRan = random(14);
if (tempRan < 4) {
tempRan = 1;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 1];
} else if (tempRan < 8) {
tempRan = 2;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 0, 1, 0];
} else if (tempRan < 12) {
tempRan = 3;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 0];
} else if (tempRan < 13) {
if (stg > 3) {
tempRan = 4;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 1];
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
pipe.duplicateMovieClip("pipe" + depth, depth);
eval ("pipe" + depth)._x = ((gameStage.minX + (block.wid / 2)) + 1) + (block.wid * (i - 1));
eval ("pipe" + depth)._y = (gameStage.minY - (block.het / 2)) + 1;
if (tempItem < 3) {
tempRan2 = random(3) + 2;
eval ("pipe" + depth).gotoAndStop(tempRan2);
eval ("pipe" + depth).tempRan2 = tempRan2;
}
eval ("pipe" + depth)._1_pipe.gotoAndStop(tempRan);
eval ("pipe" + depth)._1_pipe._2_pipe.gotoAndStop(1);
eval ("pipe" + depth)._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
eval ("pipe" + depth).x = i - 1;
eval ("pipe" + depth).y = -1;
eval ("pipe" + depth).cap = 1;
eval ("pipe" + depth).onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
}
i++;
}
if (pipeArray[pipe.x][pipe.y + 1] == 0) {
pipeArray[pipe.x][pipe.y] = 0;
pArray[pipe.x][pipe.y] = null;
pipe.y = pipe.y + 1;
pArray[pipe.x][pipe.y - 2].onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
chkArray = [];
var it = 0;
while (it < 5) {
chkArray[i] = this._parent.pArray[it][this.y];
it++;
}
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
pipe._y = pipe._y + block.het;
} else {
pipeArray[pipe.x][pipe.y] = 1;
pArray[pipe.x][pipe.y] = pipe;
trace("\uC5D4\uD130\uD504\uB808\uC784");
_global.chkStart2 = 1;
return(0);
}
if ((stgTime % timing) == 0) {
readyBlock();
}
_global.chk = 1;
j = 0;
while (j < 10) {
chkArray = [];
pArray[0][j].input = 0;
pArray[0][j].output = 0;
if (pArray[0][j].value[2]) {
pArray[0][j].input = 1;
chkArray[chkArray.length] = pArray[0][j];
if ((((j == 9) && (pArray[0][j].value[0] == 0)) && (pArray[0][j].value[3] == 0)) && (pArray[0][j].value[1] == 1)) {
chkArray[chkArray.length] = pArray[0][j];
waterTank.character.gotoAndPlay("success");
removePipe(pArray[0][j]);
} else {
if (pArray[0][j].value[0] == 1) {
if (pArray[0][j - 1].value[1] == 1) {
chk1 = 1;
} else {
chk1 = 0;
}
}
if (pArray[0][j].value[1] == 1) {
if (pArray[0][j + 1].value[0] == 1) {
chk2 = 1;
} else if (j == 9) {
pArray[0][j].output = 1;
chk2 = 2;
} else {
chk2 = 0;
}
}
if (pArray[0][j].value[3] == 1) {
if (pArray[1][j].value[2] == 1) {
chk3 = 1;
} else {
chk3 = 0;
}
}
if (((chk1 != 0) && (chk2 != 0)) && (chk3 != 0)) {
if (chk1 == 1) {
if (blockChk2(pArray[0][j - 1]) == 0) {
}
}
if (chk2 == 1) {
if (blockChk2(pArray[0][j + 1]) == 0) {
}
}
if (chk3 == 1) {
if (blockChk2(pArray[1][j]) == 0) {
}
}
chk1 = (chk2 = (chk3 = null));
if (chkArray.length > 0) {
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].input) {
input = 1;
break;
}
input = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].output) {
output = 1;
break;
}
output = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].cap) {
vcap = 1;
} else {
vcap = 0;
break;
}
ki++;
}
if ((input && (output)) && (vcap)) {
input = 0;
output = 0;
vcap = 0;
waterTank.character.gotoAndPlay("success");
ki = 0;
while (ki < chkArray.length) {
_global.score = _global.score + initScore;
removePipe(chkArray[ki]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
initScore++;
ki++;
}
initScore = 1;
score();
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
}
j++;
}
input = 0;
output = 0;
vcap = 0;
_global.chk = 0;
i = 0;
while (i < 5) {
if (pipeArray[i][0] == 0) {
eSpeed = 0;
break;
}
eSpeed = 4;
i++;
}
if (waterAmount >= 100) {
_global.gameOver = 1;
}
if (waterAmount <= 0) {
_global.gameClear = 1;
}
_global.chkStart = 0;
pipe.chk1 = "";
pipe.chk2 = "";
pipe.chk3 = "";
pipe.chk4 = "";
if (pipe.value[0] == 1) {
var chk1;
if (pArray[pipe.x][pipe.y - 1].value[1] == 1) {
pipe.chk1 = 1;
} else {
pipe.chk1 = 0;
chkArray = [];
}
}
if (pipe.value[1] == 1) {
var chk2;
if (pArray[pipe.x][pipe.y + 1].value[0] == 1) {
pipe.chk2 = 1;
} else if (pipe.y == 9) {
pipe.output = 1;
pipe.chk2 = 2;
} else {
pipe.chk2 = 0;
chkArray = [];
}
}
if (pipe.value[2] == 1) {
var chk3;
if (pArray[pipe.x - 1][pipe.y].value[3] == 1) {
pipe.chk3 = 1;
} else if (pipe.x == 0) {
pipe.input = 1;
pipe.chk3 = 2;
} else {
pipe.chk3 = 0;
chkArray = [];
}
}
if (pipe.value[3] == 1) {
var chk4;
if (pArray[pipe.x + 1][pipe.y].value[2] == 1) {
pipe.chk4 = 1;
} else if (pipe.x == 4) {
pipe.output = 1;
pipe.input = 1;
pipe.chk4 = 2;
} else {
pipe.chk4 = 0;
chkArray = [];
}
}
if ((((pipe.chk1 != 0) && (pipe.chk2 != 0)) && (pipe.chk3 != 0)) && (pipe.chk4 != 0)) {
if (keyPut == 1) {
}
pipe.cap = 1;
chkArray[chkArray.length] = pipe;
if (pipe.chk1 == 1) {
var jon1;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y - 1] == chkArray[chkT]) {
jon1 = 1;
break;
}
jon1 = 0;
chkT++;
}
if (jon1 == 0) {
blockChk2(pArray[pipe.x][pipe.y - 1]);
}
}
if (pipe.chk2 == 1) {
var jon2;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y + 1] == chkArray[chkT]) {
jon2 = 1;
break;
}
jon2 = 0;
chkT++;
}
if (jon2 == 0) {
blockChk2(pArray[pipe.x][pipe.y + 1]);
}
}
if (pipe.chk3 == 1) {
var jon3;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x - 1][pipe.y] == chkArray[chkT]) {
jon3 = 1;
break;
}
jon3 = 0;
chkT++;
}
if (jon3 == 0) {
blockChk2(pArray[pipe.x - 1][pipe.y]);
}
}
if (pipe.chk4 == 1) {
var jon4;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x + 1][pipe.y] == chkArray[chkT]) {
jon4 = 1;
break;
}
jon4 = 0;
chkT++;
}
if (jon4 == 0) {
blockChk2(pArray[pipe.x + 1][pipe.y]);
}
}
} else {
chkArray = [];
}
pipe.onRelease = null;
pipe.itemUp = pipe._currentframe;
pArray[pipe.x][pipe.y] = 0;
pipeArray[pipe.x][pipe.y] = 0;
eval (pipe)._1_pipe._2_pipe._3_pipe.gotoAndStop(2);
pipe.onEnterFrame = function () {
this.i++;
if (this.i == 3) {
eval (pipe).gotoAndStop("break");
}
if (this.i == 5) {
this.tempArr = [];
j = this.y - 1;
while (j >= 0) {
if (this._parent.pipeArray[this.x][j] == 1) {
this.ok = 0;
ji = 0;
while (ji < this._parent.chkArray.length) {
if (this._parent.pArray[this.x][j] == this._parent.chkArray[ji]) {
this._parent.pArray[this.x][j].chk123 = 1;
}
ji++;
}
if (!this.ok) {
trace(this._parent.pArray[this.x][j]);
this.tempArr[this.tempArr.length] = this._parent.pArray[this.x][j];
this._parent.pipeArray[this.x][j] = 0;
this._parent.pArray[this.x][j] = 0;
trace("pipeArray" + this._parent.pipeArray[this.x][j]);
}
}
j--;
}
trace(this.tempArr);
j = 0;
while (j < this.tempArr.length) {
this._parent.pipeArray[this.x][this.y - j] = 1;
this._parent.pArray[this.x][this.y - j] = this.tempArr[j];
this.tempArr[j]._y = this._y - (this._parent.block.het * j);
this.tempArr[j].y = this.y - j;
j++;
}
if (this.itemUp == 2) {
item1Number = item1Number + 1;
_tempnum = new String(item1Number);
_1num = _tempnum.slice(-1);
if (item1Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item1Num.score1.gotoAndStop(Number(_1num) + 1);
item1Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 4) {
item2Number = item2Number + 1;
_tempnum = new String(item2Number);
_1num = _tempnum.slice(-1);
if (item2Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item2Num.score1.gotoAndStop(Number(_1num) + 1);
item2Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 3) {
item3Number = item3Number + 1;
_tempnum = new String(item3Number);
_1num = _tempnum.slice(-1);
if (item3Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item3Num.score1.gotoAndStop(Number(_1num) + 1);
item3Num.score2.gotoAndStop(Number(_2num) + 1);
}
_global.chkStart2 = 1;
this.removeMovieClip();
}
};
}
k09 = "\uB300\uD55C\uBBFC\uAD6D";
Set("\uC6C0\uB0D0", "\uB6AB\uC5B4\uBD10");
Set("\u701A\u85C9", \u5927\u97D3\u6C11\u570B);
if (testK) {
item1Number = 0;
item2Number = 0;
item3Number = 0;
waterSpeed = 16;
outWater = 4;
waterAmount = 50;
initScore = 1;
_global.score = 0;
stg = 1;
timing = 61;
depth = 10;
stgTime = 1;
chkArray = [];
_global.item1 = 0;
gameStage = new Object();
gameStage.minX = 125;
gameStage.minY = 75;
gameStage.wid = 150;
gameStage.het = 300;
depth = 10;
block = new Object();
block.wid = 30;
block.het = 30;
pipeArrayY1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArray = [pipeArrayY1, pipeArrayY2, pipeArrayY3, pipeArrayY4, pipeArrayY5];
pArray1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray = [pArray1, pArray2, pArray3, pArray4, pArray5];
tempScore = new String(_global.score);
_1score = tempScore.slice(-1);
_2score = tempScore.slice(-2, -1);
_3score = tempScore.slice(-3, -2);
_4score = tempScore.slice(-4, -3);
_5score = tempScore.slice(-5, -4);
scoreM.score1.gotoAndStop(Number(_1score) + 1);
scoreM.score2.gotoAndStop(Number(_2score) + 1);
scoreM.score3.gotoAndStop(Number(_3score) + 1);
scoreM.score4.gotoAndStop(Number(_4score) + 1);
scoreM.score5.gotoAndStop(Number(_5score) + 1);
i = 1;
while (i <= 5) {
if (pipeArray[i - 1][0] == 1) {
} else if (!_global.gameOver) {
depth++;
tempItem = random(50);
tempRan = random(14);
if (tempRan < 4) {
tempRan = 1;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 1];
} else if (tempRan < 8) {
tempRan = 2;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 0, 1, 0];
} else if (tempRan < 12) {
tempRan = 3;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 0];
} else if (tempRan < 13) {
if (stg > 3) {
tempRan = 4;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 1];
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
pipe.duplicateMovieClip("pipe" + depth, depth);
eval ("pipe" + depth)._x = ((gameStage.minX + (block.wid / 2)) + 1) + (block.wid * (i - 1));
eval ("pipe" + depth)._y = (gameStage.minY - (block.het / 2)) + 1;
if (tempItem < 3) {
tempRan2 = random(3) + 2;
eval ("pipe" + depth).gotoAndStop(tempRan2);
eval ("pipe" + depth).tempRan2 = tempRan2;
}
eval ("pipe" + depth)._1_pipe.gotoAndStop(tempRan);
eval ("pipe" + depth)._1_pipe._2_pipe.gotoAndStop(1);
eval ("pipe" + depth)._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
eval ("pipe" + depth).x = i - 1;
eval ("pipe" + depth).y = -1;
eval ("pipe" + depth).cap = 1;
eval ("pipe" + depth).onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
}
i++;
}
if (pipeArray[pipe.x][pipe.y + 1] == 0) {
pipeArray[pipe.x][pipe.y] = 0;
pArray[pipe.x][pipe.y] = null;
pipe.y = pipe.y + 1;
pArray[pipe.x][pipe.y - 2].onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
chkArray = [];
var it = 0;
while (it < 5) {
chkArray[i] = this._parent.pArray[it][this.y];
it++;
}
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
pipe._y = pipe._y + block.het;
} else {
pipeArray[pipe.x][pipe.y] = 1;
pArray[pipe.x][pipe.y] = pipe;
trace("\uC5D4\uD130\uD504\uB808\uC784");
_global.chkStart2 = 1;
return(0);
}
if ((stgTime % timing) == 0) {
readyBlock();
}
_global.chk = 1;
j = 0;
while (j < 10) {
chkArray = [];
pArray[0][j].input = 0;
pArray[0][j].output = 0;
if (pArray[0][j].value[2]) {
pArray[0][j].input = 1;
chkArray[chkArray.length] = pArray[0][j];
if ((((j == 9) && (pArray[0][j].value[0] == 0)) && (pArray[0][j].value[3] == 0)) && (pArray[0][j].value[1] == 1)) {
chkArray[chkArray.length] = pArray[0][j];
waterTank.character.gotoAndPlay("success");
removePipe(pArray[0][j]);
} else {
if (pArray[0][j].value[0] == 1) {
if (pArray[0][j - 1].value[1] == 1) {
chk1 = 1;
} else {
chk1 = 0;
}
}
if (pArray[0][j].value[1] == 1) {
if (pArray[0][j + 1].value[0] == 1) {
chk2 = 1;
} else if (j == 9) {
pArray[0][j].output = 1;
chk2 = 2;
} else {
chk2 = 0;
}
}
if (pArray[0][j].value[3] == 1) {
if (pArray[1][j].value[2] == 1) {
chk3 = 1;
} else {
chk3 = 0;
}
}
if (((chk1 != 0) && (chk2 != 0)) && (chk3 != 0)) {
if (chk1 == 1) {
if (blockChk2(pArray[0][j - 1]) == 0) {
}
}
if (chk2 == 1) {
if (blockChk2(pArray[0][j + 1]) == 0) {
}
}
if (chk3 == 1) {
if (blockChk2(pArray[1][j]) == 0) {
}
}
chk1 = (chk2 = (chk3 = null));
if (chkArray.length > 0) {
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].input) {
input = 1;
break;
}
input = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].output) {
output = 1;
break;
}
output = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].cap) {
vcap = 1;
} else {
vcap = 0;
break;
}
ki++;
}
if ((input && (output)) && (vcap)) {
input = 0;
output = 0;
vcap = 0;
waterTank.character.gotoAndPlay("success");
ki = 0;
while (ki < chkArray.length) {
_global.score = _global.score + initScore;
removePipe(chkArray[ki]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
initScore++;
ki++;
}
initScore = 1;
score();
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
}
j++;
}
input = 0;
output = 0;
vcap = 0;
_global.chk = 0;
i = 0;
while (i < 5) {
if (pipeArray[i][0] == 0) {
eSpeed = 0;
break;
}
eSpeed = 4;
i++;
}
if (waterAmount >= 100) {
_global.gameOver = 1;
}
if (waterAmount <= 0) {
_global.gameClear = 1;
}
_global.chkStart = 0;
pipe.chk1 = "";
pipe.chk2 = "";
pipe.chk3 = "";
pipe.chk4 = "";
if (pipe.value[0] == 1) {
var chk1;
if (pArray[pipe.x][pipe.y - 1].value[1] == 1) {
pipe.chk1 = 1;
} else {
pipe.chk1 = 0;
chkArray = [];
}
}
if (pipe.value[1] == 1) {
var chk2;
if (pArray[pipe.x][pipe.y + 1].value[0] == 1) {
pipe.chk2 = 1;
} else if (pipe.y == 9) {
pipe.output = 1;
pipe.chk2 = 2;
} else {
pipe.chk2 = 0;
chkArray = [];
}
}
if (pipe.value[2] == 1) {
var chk3;
if (pArray[pipe.x - 1][pipe.y].value[3] == 1) {
pipe.chk3 = 1;
} else if (pipe.x == 0) {
pipe.input = 1;
pipe.chk3 = 2;
} else {
pipe.chk3 = 0;
chkArray = [];
}
}
if (pipe.value[3] == 1) {
var chk4;
if (pArray[pipe.x + 1][pipe.y].value[2] == 1) {
pipe.chk4 = 1;
} else if (pipe.x == 4) {
pipe.output = 1;
pipe.input = 1;
pipe.chk4 = 2;
} else {
pipe.chk4 = 0;
chkArray = [];
}
}
if ((((pipe.chk1 != 0) && (pipe.chk2 != 0)) && (pipe.chk3 != 0)) && (pipe.chk4 != 0)) {
if (keyPut == 1) {
}
pipe.cap = 1;
chkArray[chkArray.length] = pipe;
if (pipe.chk1 == 1) {
var jon1;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y - 1] == chkArray[chkT]) {
jon1 = 1;
break;
}
jon1 = 0;
chkT++;
}
if (jon1 == 0) {
blockChk2(pArray[pipe.x][pipe.y - 1]);
}
}
if (pipe.chk2 == 1) {
var jon2;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y + 1] == chkArray[chkT]) {
jon2 = 1;
break;
}
jon2 = 0;
chkT++;
}
if (jon2 == 0) {
blockChk2(pArray[pipe.x][pipe.y + 1]);
}
}
if (pipe.chk3 == 1) {
var jon3;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x - 1][pipe.y] == chkArray[chkT]) {
jon3 = 1;
break;
}
jon3 = 0;
chkT++;
}
if (jon3 == 0) {
blockChk2(pArray[pipe.x - 1][pipe.y]);
}
}
if (pipe.chk4 == 1) {
var jon4;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x + 1][pipe.y] == chkArray[chkT]) {
jon4 = 1;
break;
}
jon4 = 0;
chkT++;
}
if (jon4 == 0) {
blockChk2(pArray[pipe.x + 1][pipe.y]);
}
}
} else {
chkArray = [];
}
pipe.onRelease = null;
pipe.itemUp = pipe._currentframe;
pArray[pipe.x][pipe.y] = 0;
pipeArray[pipe.x][pipe.y] = 0;
eval (pipe)._1_pipe._2_pipe._3_pipe.gotoAndStop(2);
pipe.onEnterFrame = function () {
this.i++;
if (this.i == 3) {
eval (pipe).gotoAndStop("break");
}
if (this.i == 5) {
this.tempArr = [];
j = this.y - 1;
while (j >= 0) {
if (this._parent.pipeArray[this.x][j] == 1) {
this.ok = 0;
ji = 0;
while (ji < this._parent.chkArray.length) {
if (this._parent.pArray[this.x][j] == this._parent.chkArray[ji]) {
this._parent.pArray[this.x][j].chk123 = 1;
}
ji++;
}
if (!this.ok) {
trace(this._parent.pArray[this.x][j]);
this.tempArr[this.tempArr.length] = this._parent.pArray[this.x][j];
this._parent.pipeArray[this.x][j] = 0;
this._parent.pArray[this.x][j] = 0;
trace("pipeArray" + this._parent.pipeArray[this.x][j]);
}
}
j--;
}
trace(this.tempArr);
j = 0;
while (j < this.tempArr.length) {
this._parent.pipeArray[this.x][this.y - j] = 1;
this._parent.pArray[this.x][this.y - j] = this.tempArr[j];
this.tempArr[j]._y = this._y - (this._parent.block.het * j);
this.tempArr[j].y = this.y - j;
j++;
}
if (this.itemUp == 2) {
item1Number = item1Number + 1;
_tempnum = new String(item1Number);
_1num = _tempnum.slice(-1);
if (item1Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item1Num.score1.gotoAndStop(Number(_1num) + 1);
item1Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 4) {
item2Number = item2Number + 1;
_tempnum = new String(item2Number);
_1num = _tempnum.slice(-1);
if (item2Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item2Num.score1.gotoAndStop(Number(_1num) + 1);
item2Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 3) {
item3Number = item3Number + 1;
_tempnum = new String(item3Number);
_1num = _tempnum.slice(-1);
if (item3Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item3Num.score1.gotoAndStop(Number(_1num) + 1);
item3Num.score2.gotoAndStop(Number(_2num) + 1);
}
_global.chkStart2 = 1;
this.removeMovieClip();
}
};
}
k09 = "\uB300\uD55C\uBBFC\uAD6D";
Set("\uC6C0\uB0D0", "\uB6AB\uC5B4\uBD10");
Set("\u701A\u85C9", \u5927\u97D3\u6C11\u570B);
if (testK) {
item1Number = 0;
item2Number = 0;
item3Number = 0;
waterSpeed = 16;
outWater = 4;
waterAmount = 50;
initScore = 1;
_global.score = 0;
stg = 1;
timing = 61;
depth = 10;
stgTime = 1;
chkArray = [];
_global.item1 = 0;
gameStage = new Object();
gameStage.minX = 125;
gameStage.minY = 75;
gameStage.wid = 150;
gameStage.het = 300;
depth = 10;
block = new Object();
block.wid = 30;
block.het = 30;
pipeArrayY1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArray = [pipeArrayY1, pipeArrayY2, pipeArrayY3, pipeArrayY4, pipeArrayY5];
pArray1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray = [pArray1, pArray2, pArray3, pArray4, pArray5];
tempScore = new String(_global.score);
_1score = tempScore.slice(-1);
_2score = tempScore.slice(-2, -1);
_3score = tempScore.slice(-3, -2);
_4score = tempScore.slice(-4, -3);
_5score = tempScore.slice(-5, -4);
scoreM.score1.gotoAndStop(Number(_1score) + 1);
scoreM.score2.gotoAndStop(Number(_2score) + 1);
scoreM.score3.gotoAndStop(Number(_3score) + 1);
scoreM.score4.gotoAndStop(Number(_4score) + 1);
scoreM.score5.gotoAndStop(Number(_5score) + 1);
i = 1;
while (i <= 5) {
if (pipeArray[i - 1][0] == 1) {
} else if (!_global.gameOver) {
depth++;
tempItem = random(50);
tempRan = random(14);
if (tempRan < 4) {
tempRan = 1;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 1];
} else if (tempRan < 8) {
tempRan = 2;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 0, 1, 0];
} else if (tempRan < 12) {
tempRan = 3;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 0];
} else if (tempRan < 13) {
if (stg > 3) {
tempRan = 4;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 1];
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
pipe.duplicateMovieClip("pipe" + depth, depth);
eval ("pipe" + depth)._x = ((gameStage.minX + (block.wid / 2)) + 1) + (block.wid * (i - 1));
eval ("pipe" + depth)._y = (gameStage.minY - (block.het / 2)) + 1;
if (tempItem < 3) {
tempRan2 = random(3) + 2;
eval ("pipe" + depth).gotoAndStop(tempRan2);
eval ("pipe" + depth).tempRan2 = tempRan2;
}
eval ("pipe" + depth)._1_pipe.gotoAndStop(tempRan);
eval ("pipe" + depth)._1_pipe._2_pipe.gotoAndStop(1);
eval ("pipe" + depth)._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
eval ("pipe" + depth).x = i - 1;
eval ("pipe" + depth).y = -1;
eval ("pipe" + depth).cap = 1;
eval ("pipe" + depth).onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
}
i++;
}
if (pipeArray[pipe.x][pipe.y + 1] == 0) {
pipeArray[pipe.x][pipe.y] = 0;
pArray[pipe.x][pipe.y] = null;
pipe.y = pipe.y + 1;
pArray[pipe.x][pipe.y - 2].onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
chkArray = [];
var it = 0;
while (it < 5) {
chkArray[i] = this._parent.pArray[it][this.y];
it++;
}
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
pipe._y = pipe._y + block.het;
} else {
pipeArray[pipe.x][pipe.y] = 1;
pArray[pipe.x][pipe.y] = pipe;
trace("\uC5D4\uD130\uD504\uB808\uC784");
_global.chkStart2 = 1;
return(0);
}
if ((stgTime % timing) == 0) {
readyBlock();
}
_global.chk = 1;
j = 0;
while (j < 10) {
chkArray = [];
pArray[0][j].input = 0;
pArray[0][j].output = 0;
if (pArray[0][j].value[2]) {
pArray[0][j].input = 1;
chkArray[chkArray.length] = pArray[0][j];
if ((((j == 9) && (pArray[0][j].value[0] == 0)) && (pArray[0][j].value[3] == 0)) && (pArray[0][j].value[1] == 1)) {
chkArray[chkArray.length] = pArray[0][j];
waterTank.character.gotoAndPlay("success");
removePipe(pArray[0][j]);
} else {
if (pArray[0][j].value[0] == 1) {
if (pArray[0][j - 1].value[1] == 1) {
chk1 = 1;
} else {
chk1 = 0;
}
}
if (pArray[0][j].value[1] == 1) {
if (pArray[0][j + 1].value[0] == 1) {
chk2 = 1;
} else if (j == 9) {
pArray[0][j].output = 1;
chk2 = 2;
} else {
chk2 = 0;
}
}
if (pArray[0][j].value[3] == 1) {
if (pArray[1][j].value[2] == 1) {
chk3 = 1;
} else {
chk3 = 0;
}
}
if (((chk1 != 0) && (chk2 != 0)) && (chk3 != 0)) {
if (chk1 == 1) {
if (blockChk2(pArray[0][j - 1]) == 0) {
}
}
if (chk2 == 1) {
if (blockChk2(pArray[0][j + 1]) == 0) {
}
}
if (chk3 == 1) {
if (blockChk2(pArray[1][j]) == 0) {
}
}
chk1 = (chk2 = (chk3 = null));
if (chkArray.length > 0) {
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].input) {
input = 1;
break;
}
input = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].output) {
output = 1;
break;
}
output = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].cap) {
vcap = 1;
} else {
vcap = 0;
break;
}
ki++;
}
if ((input && (output)) && (vcap)) {
input = 0;
output = 0;
vcap = 0;
waterTank.character.gotoAndPlay("success");
ki = 0;
while (ki < chkArray.length) {
_global.score = _global.score + initScore;
removePipe(chkArray[ki]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
initScore++;
ki++;
}
initScore = 1;
score();
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
}
j++;
}
input = 0;
output = 0;
vcap = 0;
_global.chk = 0;
i = 0;
while (i < 5) {
if (pipeArray[i][0] == 0) {
eSpeed = 0;
break;
}
eSpeed = 4;
i++;
}
if (waterAmount >= 100) {
_global.gameOver = 1;
}
if (waterAmount <= 0) {
_global.gameClear = 1;
}
_global.chkStart = 0;
pipe.chk1 = "";
pipe.chk2 = "";
pipe.chk3 = "";
pipe.chk4 = "";
if (pipe.value[0] == 1) {
var chk1;
if (pArray[pipe.x][pipe.y - 1].value[1] == 1) {
pipe.chk1 = 1;
} else {
pipe.chk1 = 0;
chkArray = [];
}
}
if (pipe.value[1] == 1) {
var chk2;
if (pArray[pipe.x][pipe.y + 1].value[0] == 1) {
pipe.chk2 = 1;
} else if (pipe.y == 9) {
pipe.output = 1;
pipe.chk2 = 2;
} else {
pipe.chk2 = 0;
chkArray = [];
}
}
if (pipe.value[2] == 1) {
var chk3;
if (pArray[pipe.x - 1][pipe.y].value[3] == 1) {
pipe.chk3 = 1;
} else if (pipe.x == 0) {
pipe.input = 1;
pipe.chk3 = 2;
} else {
pipe.chk3 = 0;
chkArray = [];
}
}
if (pipe.value[3] == 1) {
var chk4;
if (pArray[pipe.x + 1][pipe.y].value[2] == 1) {
pipe.chk4 = 1;
} else if (pipe.x == 4) {
pipe.output = 1;
pipe.input = 1;
pipe.chk4 = 2;
} else {
pipe.chk4 = 0;
chkArray = [];
}
}
if ((((pipe.chk1 != 0) && (pipe.chk2 != 0)) && (pipe.chk3 != 0)) && (pipe.chk4 != 0)) {
if (keyPut == 1) {
}
pipe.cap = 1;
chkArray[chkArray.length] = pipe;
if (pipe.chk1 == 1) {
var jon1;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y - 1] == chkArray[chkT]) {
jon1 = 1;
break;
}
jon1 = 0;
chkT++;
}
if (jon1 == 0) {
blockChk2(pArray[pipe.x][pipe.y - 1]);
}
}
if (pipe.chk2 == 1) {
var jon2;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y + 1] == chkArray[chkT]) {
jon2 = 1;
break;
}
jon2 = 0;
chkT++;
}
if (jon2 == 0) {
blockChk2(pArray[pipe.x][pipe.y + 1]);
}
}
if (pipe.chk3 == 1) {
var jon3;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x - 1][pipe.y] == chkArray[chkT]) {
jon3 = 1;
break;
}
jon3 = 0;
chkT++;
}
if (jon3 == 0) {
blockChk2(pArray[pipe.x - 1][pipe.y]);
}
}
if (pipe.chk4 == 1) {
var jon4;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x + 1][pipe.y] == chkArray[chkT]) {
jon4 = 1;
break;
}
jon4 = 0;
chkT++;
}
if (jon4 == 0) {
blockChk2(pArray[pipe.x + 1][pipe.y]);
}
}
} else {
chkArray = [];
}
pipe.onRelease = null;
pipe.itemUp = pipe._currentframe;
pArray[pipe.x][pipe.y] = 0;
pipeArray[pipe.x][pipe.y] = 0;
eval (pipe)._1_pipe._2_pipe._3_pipe.gotoAndStop(2);
pipe.onEnterFrame = function () {
this.i++;
if (this.i == 3) {
eval (pipe).gotoAndStop("break");
}
if (this.i == 5) {
this.tempArr = [];
j = this.y - 1;
while (j >= 0) {
if (this._parent.pipeArray[this.x][j] == 1) {
this.ok = 0;
ji = 0;
while (ji < this._parent.chkArray.length) {
if (this._parent.pArray[this.x][j] == this._parent.chkArray[ji]) {
this._parent.pArray[this.x][j].chk123 = 1;
}
ji++;
}
if (!this.ok) {
trace(this._parent.pArray[this.x][j]);
this.tempArr[this.tempArr.length] = this._parent.pArray[this.x][j];
this._parent.pipeArray[this.x][j] = 0;
this._parent.pArray[this.x][j] = 0;
trace("pipeArray" + this._parent.pipeArray[this.x][j]);
}
}
j--;
}
trace(this.tempArr);
j = 0;
while (j < this.tempArr.length) {
this._parent.pipeArray[this.x][this.y - j] = 1;
this._parent.pArray[this.x][this.y - j] = this.tempArr[j];
this.tempArr[j]._y = this._y - (this._parent.block.het * j);
this.tempArr[j].y = this.y - j;
j++;
}
if (this.itemUp == 2) {
item1Number = item1Number + 1;
_tempnum = new String(item1Number);
_1num = _tempnum.slice(-1);
if (item1Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item1Num.score1.gotoAndStop(Number(_1num) + 1);
item1Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 4) {
item2Number = item2Number + 1;
_tempnum = new String(item2Number);
_1num = _tempnum.slice(-1);
if (item2Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item2Num.score1.gotoAndStop(Number(_1num) + 1);
item2Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 3) {
item3Number = item3Number + 1;
_tempnum = new String(item3Number);
_1num = _tempnum.slice(-1);
if (item3Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item3Num.score1.gotoAndStop(Number(_1num) + 1);
item3Num.score2.gotoAndStop(Number(_2num) + 1);
}
_global.chkStart2 = 1;
this.removeMovieClip();
}
};
}
Set("\uC0AC\uB78C", "\uC0AC\uB78C");
k09 = "\uB300\uD55C\uBBFC\uAD6D";
Set("\uC6C0\uB0D0", "\uB6AB\uC5B4\uBD10");
Set("\u701A\u85C9", \u5927\u97D3\u6C11\u570B);
if (testA) {
item1Number = 0;
item2Number = 0;
item3Number = 0;
waterSpeed = 16;
outWater = 4;
waterAmount = 50;
initScore = 1;
_global.score = 0;
stg = 1;
timing = 61;
depth = 10;
stgTime = 1;
chkArray = [];
_global.item1 = 0;
gameStage = new Object();
gameStage.minX = 125;
gameStage.minY = 75;
gameStage.wid = 150;
gameStage.het = 300;
depth = 10;
block = new Object();
block.wid = 30;
block.het = 30;
pipeArrayY1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArrayY5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pipeArray = [pipeArrayY1, pipeArrayY2, pipeArrayY3, pipeArrayY4, pipeArrayY5];
pArray1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray4 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray5 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pArray = [pArray1, pArray2, pArray3, pArray4, pArray5];
tempScore = new String(_global.score);
_1score = tempScore.slice(-1);
_2score = tempScore.slice(-2, -1);
_3score = tempScore.slice(-3, -2);
_4score = tempScore.slice(-4, -3);
_5score = tempScore.slice(-5, -4);
scoreM.score1.gotoAndStop(Number(_1score) + 1);
scoreM.score2.gotoAndStop(Number(_2score) + 1);
scoreM.score3.gotoAndStop(Number(_3score) + 1);
scoreM.score4.gotoAndStop(Number(_4score) + 1);
scoreM.score5.gotoAndStop(Number(_5score) + 1);
i = 1;
while (i <= 5) {
if (pipeArray[i - 1][0] == 1) {
} else if (!_global.gameOver) {
depth++;
tempItem = random(50);
tempRan = random(14);
if (tempRan < 4) {
tempRan = 1;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 1];
} else if (tempRan < 8) {
tempRan = 2;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 0, 1, 0];
} else if (tempRan < 12) {
tempRan = 3;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 0];
} else if (tempRan < 13) {
if (stg > 3) {
tempRan = 4;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [1, 1, 1, 1];
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
} else {
tempRan = 5;
eval ("pipe" + depth).tempRan = tempRan;
eval ("pipe" + depth).value = [0, 0, 1, 0];
}
pipe.duplicateMovieClip("pipe" + depth, depth);
eval ("pipe" + depth)._x = ((gameStage.minX + (block.wid / 2)) + 1) + (block.wid * (i - 1));
eval ("pipe" + depth)._y = (gameStage.minY - (block.het / 2)) + 1;
if (tempItem < 3) {
tempRan2 = random(3) + 2;
eval ("pipe" + depth).gotoAndStop(tempRan2);
eval ("pipe" + depth).tempRan2 = tempRan2;
}
eval ("pipe" + depth)._1_pipe.gotoAndStop(tempRan);
eval ("pipe" + depth)._1_pipe._2_pipe.gotoAndStop(1);
eval ("pipe" + depth)._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
eval ("pipe" + depth).x = i - 1;
eval ("pipe" + depth).y = -1;
eval ("pipe" + depth).cap = 1;
eval ("pipe" + depth).onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
}
i++;
}
if (pipeArray[pipe.x][pipe.y + 1] == 0) {
pipeArray[pipe.x][pipe.y] = 0;
pArray[pipe.x][pipe.y] = null;
pipe.y = pipe.y + 1;
pArray[pipe.x][pipe.y - 2].onEnterFrame = function () {
if (this._parent.dropBlock(this) == 0) {
this.onEnterFrame = null;
this.onRelease = function () {
trace("\uC544\uC774\uD15C111 : " + _global.item1);
if (_global.item1 == 1) {
trace((this.y + "_____") + _global.item1);
chkArray = [];
var it = 0;
while (it < 5) {
chkArray[i] = this._parent.pArray[it][this.y];
it++;
}
var it = 0;
while (it < 5) {
this._parent.removePipe(this._parent.pArray[it][this.y]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
it++;
}
_global.item1 = 5;
this._parent.item1Number = this._parent.item1Number - 1;
this._tempnum = new String(this._parent.item1Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item1Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item1Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item1Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox1.gotoAndStop(1);
_1num = "";
_2num = "";
} else if (_global.item1 == 4) {
if (((Math.abs(this.x - _global.tempPipe.x) == 1) && (Math.abs(this.y - _global.tempPipe.y) == 0)) || ((Math.abs(this.x - _global.tempPipe.x) == 0) && (Math.abs(this.y - _global.tempPipe.y) == 1))) {
_global.item1 = 5;
_global.tempPipeNum2 = this._1_pipe._currentframe;
_global.tempPipe1Num2 = this._1_pipe._2_pipe._currentframe;
this.tempRan = _global.tempPipeNum;
_global.tempPipe.tempRan = _global.tempPipeNum2;
_global.tempPipe._1_pipe.gotoAndStop(_global.tempPipeNum2);
_global.tempPipe._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num2);
_global.tempPipe._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(_global.tempPipe1Num);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item2Number = this._parent.item2Number - 1;
this._tempnum = new String(this._parent.item2Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item2Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item2Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item2Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox2.gotoAndStop(1);
_1num = "";
_2num = "";
_global.chkStart2 = 1;
}
} else if (_global.item1 == 2) {
_global.item1 = 4;
_global.tempPipe = this;
_global.tempPipeNum = this._1_pipe._currentframe;
_global.tempPipe1Num = this._1_pipe._2_pipe._currentframe;
trace("\uD30C\uC774\uD504 : " + _global.tempPipeNum);
} else if (_global.item1 == 3) {
_global.item1 = 5;
this.tempRan = _global.targetRan;
trace((this.tempRan + "_____") + _global.targetRan);
this._1_pipe.gotoAndStop(this.tempRan);
this._1_pipe._2_pipe.gotoAndStop(1);
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
this._parent.item3Number = this._parent.item3Number - 1;
this._tempnum = new String(this._parent.item3Number);
this._1num = this._tempnum.slice(-1);
if (this._parent.item3Number > 9) {
this._2num = this._tempnum.slice(-2, -1);
}
this._parent.item3Num.score1.gotoAndStop(Number(this._1num) + 1);
this._parent.item3Num.score2.gotoAndStop(Number(this._2num) + 1);
this._parent.itemBox3.gotoAndStop(1);
_global.targetRan = 0;
_1num = "";
_2num = "";
_global.chkStart2 = 1;
} else if (_global.item1 == 0) {
trace("\uC6D0\uB798 \uD30C\uC774\uD504 : " + this.tempRan);
if (this._1_pipe._2_pipe._currentframe == 1) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [1, 0, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 0, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [1, 0, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 2) {
if (this.tempRan == 1) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 2) {
this.value = [0, 1, 0, 1];
} else if (this.tempRan == 3) {
this.value = [1, 1, 0, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 0, 1];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else if (this._1_pipe._2_pipe._currentframe == 3) {
if (this.tempRan == 1) {
this.value = [1, 1, 0, 0];
} else if (this.tempRan == 2) {
this.value = [0, 1, 1, 0];
} else if (this.tempRan == 3) {
this.value = [0, 1, 1, 1];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 1, 0, 0];
}
this._1_pipe._2_pipe.nextFrame();
_global.chkStart2 = 1;
} else {
if (this.tempRan == 1) {
this.value = [0, 0, 1, 1];
} else if (this.tempRan == 2) {
this.value = [1, 0, 1, 0];
} else if (this.tempRan == 3) {
this.value = [1, 1, 1, 0];
} else if (this.tempRan == 4) {
this.value = [1, 1, 1, 1];
} else {
this.value = [0, 0, 1, 0];
}
this._1_pipe._2_pipe.gotoAndStop(1);
_global.chkStart2 = 1;
}
this._1_pipe._2_pipe._3_pipe.gotoAndStop(1);
trace("\uCCB4\uD06C : " + _global.chkStart);
}
if (_global.item1 == 5) {
_global.item1 = 0;
}
};
}
};
pipe._y = pipe._y + block.het;
} else {
pipeArray[pipe.x][pipe.y] = 1;
pArray[pipe.x][pipe.y] = pipe;
trace("\uC5D4\uD130\uD504\uB808\uC784");
_global.chkStart2 = 1;
return(0);
}
if ((stgTime % timing) == 0) {
readyBlock();
}
_global.chk = 1;
j = 0;
while (j < 10) {
chkArray = [];
pArray[0][j].input = 0;
pArray[0][j].output = 0;
if (pArray[0][j].value[2]) {
pArray[0][j].input = 1;
chkArray[chkArray.length] = pArray[0][j];
if ((((j == 9) && (pArray[0][j].value[0] == 0)) && (pArray[0][j].value[3] == 0)) && (pArray[0][j].value[1] == 1)) {
chkArray[chkArray.length] = pArray[0][j];
waterTank.character.gotoAndPlay("success");
removePipe(pArray[0][j]);
} else {
if (pArray[0][j].value[0] == 1) {
if (pArray[0][j - 1].value[1] == 1) {
chk1 = 1;
} else {
chk1 = 0;
}
}
if (pArray[0][j].value[1] == 1) {
if (pArray[0][j + 1].value[0] == 1) {
chk2 = 1;
} else if (j == 9) {
pArray[0][j].output = 1;
chk2 = 2;
} else {
chk2 = 0;
}
}
if (pArray[0][j].value[3] == 1) {
if (pArray[1][j].value[2] == 1) {
chk3 = 1;
} else {
chk3 = 0;
}
}
if (((chk1 != 0) && (chk2 != 0)) && (chk3 != 0)) {
if (chk1 == 1) {
if (blockChk2(pArray[0][j - 1]) == 0) {
}
}
if (chk2 == 1) {
if (blockChk2(pArray[0][j + 1]) == 0) {
}
}
if (chk3 == 1) {
if (blockChk2(pArray[1][j]) == 0) {
}
}
chk1 = (chk2 = (chk3 = null));
if (chkArray.length > 0) {
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].input) {
input = 1;
break;
}
input = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].output) {
output = 1;
break;
}
output = 0;
ki++;
}
ki = 0;
while (ki < chkArray.length) {
if (chkArray[ki].cap) {
vcap = 1;
} else {
vcap = 0;
break;
}
ki++;
}
if ((input && (output)) && (vcap)) {
input = 0;
output = 0;
vcap = 0;
waterTank.character.gotoAndPlay("success");
ki = 0;
while (ki < chkArray.length) {
_global.score = _global.score + initScore;
removePipe(chkArray[ki]);
waterAmount = waterAmount - outWater;
if (waterAmount <= 0) {
waterAmount = 0;
}
initScore++;
ki++;
}
initScore = 1;
score();
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
} else {
chk1 = (chk2 = (chk3 = null));
input = 0;
output = 0;
}
}
}
j++;
}
input = 0;
output = 0;
vcap = 0;
_global.chk = 0;
i = 0;
while (i < 5) {
if (pipeArray[i][0] == 0) {
eSpeed = 0;
break;
}
eSpeed = 4;
i++;
}
if (waterAmount >= 100) {
_global.gameOver = 1;
}
if (waterAmount <= 0) {
_global.gameClear = 1;
}
_global.chkStart = 0;
pipe.chk1 = "";
pipe.chk2 = "";
pipe.chk3 = "";
pipe.chk4 = "";
if (pipe.value[0] == 1) {
var chk1;
if (pArray[pipe.x][pipe.y - 1].value[1] == 1) {
pipe.chk1 = 1;
} else {
pipe.chk1 = 0;
chkArray = [];
}
}
if (pipe.value[1] == 1) {
var chk2;
if (pArray[pipe.x][pipe.y + 1].value[0] == 1) {
pipe.chk2 = 1;
} else if (pipe.y == 9) {
pipe.output = 1;
pipe.chk2 = 2;
} else {
pipe.chk2 = 0;
chkArray = [];
}
}
if (pipe.value[2] == 1) {
var chk3;
if (pArray[pipe.x - 1][pipe.y].value[3] == 1) {
pipe.chk3 = 1;
} else if (pipe.x == 0) {
pipe.input = 1;
pipe.chk3 = 2;
} else {
pipe.chk3 = 0;
chkArray = [];
}
}
if (pipe.value[3] == 1) {
var chk4;
if (pArray[pipe.x + 1][pipe.y].value[2] == 1) {
pipe.chk4 = 1;
} else if (pipe.x == 4) {
pipe.output = 1;
pipe.input = 1;
pipe.chk4 = 2;
} else {
pipe.chk4 = 0;
chkArray = [];
}
}
if ((((pipe.chk1 != 0) && (pipe.chk2 != 0)) && (pipe.chk3 != 0)) && (pipe.chk4 != 0)) {
if (keyPut == 1) {
}
pipe.cap = 1;
chkArray[chkArray.length] = pipe;
if (pipe.chk1 == 1) {
var jon1;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y - 1] == chkArray[chkT]) {
jon1 = 1;
break;
}
jon1 = 0;
chkT++;
}
if (jon1 == 0) {
blockChk2(pArray[pipe.x][pipe.y - 1]);
}
}
if (pipe.chk2 == 1) {
var jon2;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x][pipe.y + 1] == chkArray[chkT]) {
jon2 = 1;
break;
}
jon2 = 0;
chkT++;
}
if (jon2 == 0) {
blockChk2(pArray[pipe.x][pipe.y + 1]);
}
}
if (pipe.chk3 == 1) {
var jon3;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x - 1][pipe.y] == chkArray[chkT]) {
jon3 = 1;
break;
}
jon3 = 0;
chkT++;
}
if (jon3 == 0) {
blockChk2(pArray[pipe.x - 1][pipe.y]);
}
}
if (pipe.chk4 == 1) {
var jon4;
chkT = 0;
while (chkT < chkArray.length) {
if (pArray[pipe.x + 1][pipe.y] == chkArray[chkT]) {
jon4 = 1;
break;
}
jon4 = 0;
chkT++;
}
if (jon4 == 0) {
blockChk2(pArray[pipe.x + 1][pipe.y]);
}
}
} else {
chkArray = [];
}
pipe.onRelease = null;
pipe.itemUp = pipe._currentframe;
pArray[pipe.x][pipe.y] = 0;
pipeArray[pipe.x][pipe.y] = 0;
eval (pipe)._1_pipe._2_pipe._3_pipe.gotoAndStop(2);
pipe.onEnterFrame = function () {
this.i++;
if (this.i == 3) {
eval (pipe).gotoAndStop("break");
}
if (this.i == 5) {
this.tempArr = [];
j = this.y - 1;
while (j >= 0) {
if (this._parent.pipeArray[this.x][j] == 1) {
this.ok = 0;
ji = 0;
while (ji < this._parent.chkArray.length) {
if (this._parent.pArray[this.x][j] == this._parent.chkArray[ji]) {
this._parent.pArray[this.x][j].chk123 = 1;
}
ji++;
}
if (!this.ok) {
trace(this._parent.pArray[this.x][j]);
this.tempArr[this.tempArr.length] = this._parent.pArray[this.x][j];
this._parent.pipeArray[this.x][j] = 0;
this._parent.pArray[this.x][j] = 0;
trace("pipeArray" + this._parent.pipeArray[this.x][j]);
}
}
j--;
}
trace(this.tempArr);
j = 0;
while (j < this.tempArr.length) {
this._parent.pipeArray[this.x][this.y - j] = 1;
this._parent.pArray[this.x][this.y - j] = this.tempArr[j];
this.tempArr[j]._y = this._y - (this._parent.block.het * j);
this.tempArr[j].y = this.y - j;
j++;
}
if (this.itemUp == 2) {
item1Number = item1Number + 1;
_tempnum = new String(item1Number);
_1num = _tempnum.slice(-1);
if (item1Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item1Num.score1.gotoAndStop(Number(_1num) + 1);
item1Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 4) {
item2Number = item2Number + 1;
_tempnum = new String(item2Number);
_1num = _tempnum.slice(-1);
if (item2Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item2Num.score1.gotoAndStop(Number(_1num) + 1);
item2Num.score2.gotoAndStop(Number(_2num) + 1);
} else if (this.itemUp == 3) {
item3Number = item3Number + 1;
_tempnum = new String(item3Number);
_1num = _tempnum.slice(-1);
if (item3Number > 9) {
_2num = _tempnum.slice(-2, -1);
}
item3Num.score1.gotoAndStop(Number(_1num) + 1);
item3Num.score2.gotoAndStop(Number(_2num) + 1);
}
_global.chkStart2 = 1;
this.removeMovieClip();
}
};
}
Address = "../game/game_score.asp?game_score=";
trace(isUndefined);
_quality = "high";
_root.isItem1 = (_root.uItem1 = false);
_root.isItem2 = (_root.uItem2 = false);
_root.isItem3 = (_root.uItem3 = false);
_root.isItem4 = (_root.uItem4 = false);
var nez = 1;
while (nez < 15) {
removeMovieClip(_root["wigs" + nez].oneWig);
removeMovieClip(_root["wigs" + nez]);
nez++;
}
stop();
Frame 2
if (null) {
}
myS = new Sound();
myS.attachSound("over");
Instance of Symbol 157 MovieClip "displayItem" in Frame 2
onClipEvent (load) {
if (null) {
}
this._visible = false;
}
Instance of Symbol 160 MovieClip "itemLoading" in Frame 2
onClipEvent (load) {
if (null) {
}
this._visible = false;
}
Frame 3
if (null) {
}
this.stop();
_quality = "high";
Frame 4
if (null) {
}
function speak(obj) {
BirdsSound = new Sound();
BirdsSound.attachSound(obj);
BirdsSound.start(0, 37);
}
function shakeWin(me) {
shakeSig = 0;
gap = me;
_root._x = _root.ax;
_root._y = _root.ay;
_root.onEnterFrame = function () {
if ((this.shakeSig % 2) == 1) {
this._y = this._y + this.gap;
} else if ((this.shakeSig % 2) == 0) {
this._y = this._y - this.gap;
}
this.shakeSig++;
if ((this.shakeSig % 2) == 0) {
this.gap--;
}
if (this.gap <= 0) {
this.onEnterFrame = null;
this._x = this.ax;
this._y = this.ay;
}
};
}
function stopSpeak(obj) {
BirdsSound = new Sound();
BirdsSound.attachSound(obj);
BirdsSound.stop(obj);
}
function initMC() {
var i = 1;
while (i < 15) {
_root["door" + i].doorNumb = i;
_root["wigs" + i].wigNumb = i;
_root["wigs" + i].gotoAndStop(1);
_root["wigs" + i].isOpen = false;
i++;
}
isShowHeart = false;
_root.playingBoss = false;
_root.bossEnergy._x = _root.bossEnergy.myX;
_root.bossEnergy._y = _root.bossEnergy.myY;
}
function checkWin() {
var i = 1;
while (i < 15) {
if (_root.cursor.myTarget.hitTest(_root["door" + i])) {
_root.cursor.cursorNumb = i;
return;
}
i++;
}
}
function check_isOpen() {
var i = 1;
while (i < 11) {
if (_root["wigs" + myWinNumb].isOpen == false) {
return(i);
}
i++;
}
}
function mySendScore() {
this.createEmptyMovieClip("sndScore", 31080);
sndScore.gCode = 6;
sndScore.score = _root.score;
trace("myScore = " + sndScore.score);
scoreURL = "/servlet/trid.game.GameResultServlet";
sndScore.loadVariables(scoreURL, "POST");
sndScore.onData = function () {
this.removeMovieClip();
};
}
function gameOverCount() {
_root.uItem1 = false;
_root.uItem2 = false;
_root.uItem3 = false;
_root.uItem4 = false;
_root.uItem5 = "";
stopAllSounds();
_root.MC_bird.onEnterFrame = null;
var i = 1;
while (i <= 10) {
_root["bird" + i].onEnterFrame = null;
removeMovieClip(_root["bird" + i]);
i++;
}
var nw = 1;
while (nw < 15) {
_root["wigs" + nw].oneWig.swapDepths(_root["wigs" + nw].myDepth);
nw++;
}
_root.MC_gameOver._visible = true;
_root.MC_gameOver.gotoAndPlay(2);
}
function openWin(openNumb, numA, numB) {
if (_root.gameSig == true) {
_root.opening.onEnterFrame = function () {
if (_root.isOpen == false) {
var myRand = random(numA);
if ((myRand == numB) && (random(5) != 3)) {
if (_root.myLevel == 1) {
var myWinNumb = (random(3) + 1);
} else if (_root.myLevel == 2) {
var myWinNumb = (random(5) + 1);
} else if (_root.myLevel == 3) {
var myWinNumb = (random(7) + 1);
} else if (_root.myLevel == 4) {
var myWinNumb = (random(14) + 1);
} else if (_root.myLevel == 5) {
var myWinNumb = (random(14) + 1);
} else {
var myWinNumb = (random(14) + 1);
}
if (_root["wigs" + myWinNumb].isOpen == true) {
myWinNumb = _root.check_isOpen();
}
_root["wigs" + myWinNumb].gotoAndStop((_root.myWigNumber = random(16) + 2));
_root["door" + myWinNumb].gotoAndStop(2);
_root["wigs" + myWinNumb].isOpen = true;
trace("myWinNumb : " + myWinNumb);
if (((_root.myWigNumber > 1) && (_root.myWigNumber < 9)) || ((_root.myWigNumber > 15) && (_root.myWigNumber != 18))) {
_root["wigs" + myWinNumb].oneWig.MC_checkTime.gotoAndPlay(2);
} else if ((_root.myWigNumber > 8) && (_root.myWigNumber < 16)) {
trace("bossOpenNumb = " + _root.bossOpenNumb);
trace("isBoss = " + _root.isBoss);
if (_root.isBoss == false) {
_root["wigs" + myWinNumb].oneWig.gotoAndPlay("shoot");
} else if ((_root.isBoss == true) && (_root.bossOpenNumb < 1)) {
_root.isBoss = false;
_root.bossOpenNumb++;
_root["wigs" + myWinNumb].gotoAndStop("boss");
_root["wigs" + myWinNumb].oneWig.gotoAndPlay("shoot");
}
}
_root.countWig++;
if (_root.countWig >= openNumb) {
_root.isOpen = true;
this.onEnterFrame = null;
}
} else if ((myRand == numB) && (random(5) == 3)) {
this.onEnterFrame = null;
_root.myBuffRandN = random(2);
if (_root.myBuffRandN == 0) {
_root.pattern.gotoAndPlay(2);
_root.pattern2.gotoAndStop(1);
} else {
_root.pattern.gotoAndStop(1);
_root.pattern2.gotoAndPlay(2);
}
}
}
};
}
}
function oPen() {
if (_root.myLevel == 1) {
if (_root.userLevel < 2) {
_root.openWin(_root.myLevel, 10, 7);
} else if (_root.userLevel == 2) {
_root.openWin(_root.myLevel, 15, 10);
} else if (_root.userLevel > 2) {
_root.openWin(_root.myLevel, 10, 7);
}
} else if (_root.myLevel == 2) {
if (_root.userLevel < 2) {
_root.openWin(_root.myLevel, 15, 10);
} else if (_root.userLevel == 2) {
_root.openWin(_root.myLevel, 10, 7);
} else if (_root.userLevel > 2) {
_root.openWin(_root.myLevel, 7, 5);
}
} else if (_root.myLevel == 3) {
if (_root.userLevel < 2) {
_root.openWin(_root.myLevel, 10, 7);
} else if (_root.userLevel == 2) {
_root.openWin(_root.myLevel, 7, 5);
} else if (_root.userLevel > 2) {
_root.openWin(_root.myLevel, 6, 5);
}
} else if (_root.myLevel == 4) {
if (_root.userLevel < 2) {
_root.openWin(_root.myLevel, 7, 5);
} else if (_root.userLevel == 2) {
_root.openWin(_root.myLevel, 6, 5);
} else if (_root.userLevel > 2) {
_root.openWin(_root.myLevel, 5, 3);
}
} else if (_root.myLevel == 5) {
if (_root.userLevel < 2) {
_root.openWin(_root.myLevel, 6, 5);
} else if (_root.userLevel == 2) {
_root.openWin(_root.myLevel, 5, 3);
} else if (_root.userLevel > 2) {
_root.openWin(_root.myLevel, 3, 2);
}
} else if (_root.myLevel == 6) {
if (_root.userLevel < 2) {
_root.openWin(_root.myLevel, 5, 3);
} else if (_root.userLevel == 2) {
_root.openWin(_root.myLevel, 3, 2);
} else if (_root.userLevel > 2) {
_root.openWin(_root.myLevel, 2, 1);
}
} else if (_root.myLevel == 7) {
if (_root.userLevel < 2) {
_root.openWin(_root.myLevel, 3, 2);
} else if (_root.userLevel >= 2) {
_root.openWin(_root.myLevel, 2, 1);
}
} else if (_root.myLevel == 8) {
_root.openWin(_root.myLevel, 2, 1);
} else if (_root.myLevel == 9) {
_root.openWin(_root.myLevel, 1, 0);
} else if (_root.myLevel >= 10) {
_root.openWin(_root.myLevel, 1, 0);
}
}
function acquiredBonus() {
_root.MC_bonus.var_bonus = 0;
_root.BS = new Sound();
_root.BS.attachSound("dding");
_root.BS.start(0, 999);
_root.MC_bonus.onEnterFrame = function () {
if (this.var_bonus < (Number((_root.targetNumb + 3) * 10) + _root.money)) {
this.var_bonus = Number(this.var_bonus) + 10;
this.bonusN.gBonus.bonusView(this.var_bonus);
} else {
this.onEnterFrame = null;
_root.BS.stop("dding");
_root.score = _root.score + this.var_bonus;
_root.Gscore.scoreView(_root.score);
this.play();
}
};
}
function myBird() {
_root.MC_bird.z = 1;
_root.MC_bird.onEnterFrame = function () {
this.myRandNumbs = random(137);
if (this.myRandNumbs == 37) {
duplicateMovieClip (_root.MC_bird, "bird" + this.z, this.z);
_root["bird" + this.z]._x = 450;
_root["bird" + this.z]._y = random(140) + 50;
_root["bird" + this.z].onEnterFrame = function () {
this._x = this._x - ((this.scaleNumb = random(7) + 2));
if (this.scaleNumb <= 3) {
this._xscale = 90;
this._yscale = 90;
} else if ((this.scaleNumb > 3) && (this.scaleNumb < 7)) {
this._xscale = 100;
this._yscale = 100;
} else if (this.scaleNumb >= 7) {
this._xscale = 110;
this._yscale = 110;
}
if (this._x < -30) {
this.onEnterFrame = null;
_root.stopSpeak("BirdsSound");
removeMovieClip(this);
}
};
this.z++;
_root.zz++;
if (this.z > 10) {
this.z = 0;
}
}
};
}
_quality = "high";
levelUp = false;
sndSig = false;
windowX = 3;
windowY = 0;
gapX = 46.1;
gapY = 43.9;
depthCount = 3700;
dupCnt = 70;
playingBoss = false;
bossOpenNumb = 0;
_root.cursor.myName1 = 0;
_root.cursor.myName2 = 0;
myWinNumb = "";
myWigNumber = "";
isFire = false;
isOpen = false;
gameSig = true;
myLevel = 1;
isReload = true;
isBoss = false;
countWig = 0;
heartSignal = 0;
enemyNumb = (targetNumb = 10);
if (_root.userLevel < 2) {
bossKilledNumb = 3;
} else if (_root.userLevel == 2) {
bossKilledNumb = 5;
} else if (_root.userLevel > 2) {
bossKilledNumb = 7;
}
dN = 1777;
lifeNumb = 4;
_root.money = 0;
score = 0;
isShowHeart = false;
turnS = new Sound();
turnS.attachSound("turn");
ax = _root._x;
ay = _root._y;
_root.sndCnt = 0;
if (_root.isItem1 == true) {
_root.fireGun._visible = false;
} else {
_root.machineGun._visible = false;
}
initMC();
_root.ready.gotoAndPlay(2);
stop();
AllSound = new Sound(_root);
_root.checkWin();
_root.stgN.stgView(_root.myLevel);
snd_gun = new Sound(_root.machineGun);
snd_gun.attachSound("snd_gun");
Instance of Symbol 196 MovieClip "machineGun" in Frame 4
onClipEvent (load) {
if (null) {
}
this.gotoAndStop("left2");
}
Instance of Symbol 233 MovieClip "fireGun" in Frame 4
onClipEvent (load) {
if (null) {
}
this.gotoAndStop("left2");
}
Instance of Symbol 236 MovieClip "opening" in Frame 4
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 683 MovieClip "wigs3" in Frame 4
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs2" in Frame 4
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs1" in Frame 4
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 698 MovieClip "cursor" in Frame 4
onClipEvent (load) {
if (null) {
}
this.ax = this._x;
this.ay = this._y;
}
onClipEvent (enterFrame) {
if (null) {
}
if (Key.isDown(13)) {
_root.isReload = true;
if (_root.isItem1 == true) {
_root.jar2.Sig = true;
_root.jar2.bullets.gotoAndPlay(1);
_root.jar2.gotoAndPlay(2);
} else {
_root.jar.Sig = true;
_root.jar.bullets.gotoAndPlay(1);
_root.jar.gotoAndPlay(2);
}
}
}
Instance of Symbol 716 MovieClip "bossEnergy" in Frame 4
onClipEvent (load) {
if (null) {
}
this.myX = 350;
this.myY = 350;
this.gotoAndStop(1);
}
Instance of Symbol 737 MovieClip "MC_levelNumb" in Frame 4
onClipEvent (load) {
if (null) {
}
function levelView(levelNumb) {
var s2 = Math.floor((levelNumb % 100) / 10);
var s1 = Math.floor(levelNumb % 10);
i = 1;
while (i <= 2) {
this["n" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
_root.myTimeInt = 250;
} else if (_root.myLevel >= 5) {
_root.myTimeInt = 200;
}
if (_root.myLevel > 10) {
this.gotoAndStop("free");
}
}
i = 1;
while (i <= 2) {
this["n" + i].stop();
i++;
}
this.levelView(_root.myLevel);
}
Instance of Symbol 749 MovieClip "MC_enemyNumb" in Frame 4
onClipEvent (load) {
if (null) {
}
function enemyView(enemyNum) {
var s2 = Math.floor((enemyNum % 100) / 10);
var s1 = Math.floor(enemyNum % 10);
i = 1;
while (i <= 2) {
this["n" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
_root.myTimeInt = 250;
} else if (_root.myLevel >= 5) {
_root.myTimeInt = 200;
}
}
i = 1;
while (i <= 2) {
this["n" + i].stop();
i++;
}
this.enemyView(_root.enemyNumb);
}
Instance of Symbol 772 MovieClip "MC_bird" in Frame 4
onClipEvent (enterFrame) {
if (null) {
}
trace("isBoss = " + _root.isBoss);
trace("playingBoss = " + _root.playingBoss);
trace("isItem2 = " + _root.isItem2);
}
Instance of Symbol 802 MovieClip "MC_bonus" in Frame 4
onClipEvent (load) {
if (null) {
}
this._visible = false;
}
Instance of Symbol 807 MovieClip in Frame 4
onClipEvent (load) {
if (null) {
}
_root.sndvolume = new Sound();
if (_root.sndvolume.getVolume() > 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 850 MovieClip "MC_gameOver" in Frame 4
onClipEvent (load) {
if (null) {
}
this._visible = false;
myD = this.getDepth();
}
Instance of Symbol 857 MovieClip "swapSkin" in Frame 4
onClipEvent (load) {
if (null) {
}
this.myDepth = this.getDepth();
this.swapDepths(30);
}
Instance of Symbol 749 MovieClip "Gmoney" in Frame 4
onClipEvent (load) {
if (null) {
}
function moneyView(money) {
var s2 = Math.floor((money % 100) / 10);
var s1 = Math.floor(money % 10);
i = 1;
while (i <= 2) {
this["n" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
_root.myTimeInt = 250;
} else if (_root.myLevel >= 5) {
_root.myTimeInt = 200;
}
}
i = 1;
while (i <= 2) {
this["n" + i].stop();
i++;
}
this.enemyView(Math.floor(_root.money / 100));
}
Instance of Symbol 869 MovieClip "jar" in Frame 4
onClipEvent (load) {
if (null) {
}
this.Sig = true;
}
Instance of Symbol 882 MovieClip "Gscore" in Frame 4
onClipEvent (load) {
if (null) {
}
function scoreView(score) {
var s8 = Math.floor((score % 100000000) / 10000000);
var s7 = Math.floor((score % 10000000) / 1000000);
var s6 = Math.floor((score % 1000000) / 100000);
var s5 = Math.floor((score % 100000) / 10000);
var s4 = Math.floor((score % 10000) / 1000);
var s3 = Math.floor((score % 1000) / 100);
var s2 = Math.floor((score % 100) / 10);
var s1 = Math.floor(score % 10);
i = 1;
while (i <= 8) {
this["n" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
}
i = 1;
while (i <= 8) {
this["n" + i].stop();
i++;
}
}
Instance of Symbol 895 MovieClip "stgN" in Frame 4
onClipEvent (load) {
if (null) {
}
function stgView(stg) {
if (stg < 10) {
this.gotoAndStop(1);
this.num.gotoAndStop(stg + 1);
} else {
this.gotoAndStop(2);
this.num.s1.gotoAndStop((stg % 10) + 1);
this.num.s10.gotoAndStop((stg / 10) + 1);
}
}
this.stop();
this.stgView(_root.myLevel);
}
Frame 5
if (null) {
}
var kxn = 1;
while (kxn < 15) {
removeMovieClip(_root["wigs" + kxn]);
kxn++;
}
Frame 6
if (null) {
}
windowX = 5;
windowY = 0;
depthCount = 3700;
_root.cursor.myName1 = 0;
_root.cursor.myName2 = 0;
_root.countWig = 0;
myWinNumb = "";
myWigNumber = "";
_root.money = 0;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
isFire = false;
isOpen = false;
gameSig = true;
isBoss = false;
heartSignal = 0;
isShowHeart = false;
_root[_root.myGun].gotoAndStop(4);
enemyNumb = (targetNumb = 15);
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
_root.myLevel = 2;
_root.money = 0;
_root.MC_levelNumb.levelView(_root.myLevel);
_root.stgN.stgView(_root.myLevel);
initMC();
_root.ready.gotoAndPlay(2);
stop();
Instance of Symbol 683 MovieClip "wigs3" in Frame 6
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs2" in Frame 6
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs4" in Frame 6
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs5" in Frame 6
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs1" in Frame 6
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 236 MovieClip "opening" in Frame 6
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 923 MovieClip "cursor" in Frame 6
onClipEvent (load) {
if (null) {
}
this.ax = this._x;
this.ay = this._y;
}
onClipEvent (enterFrame) {
if (null) {
}
if (Key.isDown(13)) {
_root.isReload = true;
if (_root.isItem1 == true) {
_root.jar2.Sig = true;
_root.jar2.bullets.gotoAndPlay(1);
_root.jar2.gotoAndPlay(2);
} else {
_root.jar.Sig = true;
_root.jar.bullets.gotoAndPlay(1);
_root.jar.gotoAndPlay(2);
}
}
}
Frame 7
if (null) {
}
var kxn = 1;
while (kxn < 15) {
removeMovieClip(_root["wigs" + kxn]);
kxn++;
}
Frame 8
if (null) {
}
windowX = 7;
windowY = 0;
depthCount = 3700;
_root.cursor.myName1 = 0;
_root.cursor.myName2 = 0;
_root.money = 0;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
_root.countWig = 0;
myWinNumb = "";
myWigNumber = "";
isFire = false;
isOpen = false;
gameSig = true;
isBoss = false;
heartSignal = 0;
_root[_root.myGun].gotoAndStop("leftEnd");
enemyNumb = (targetNumb = 20);
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
_root.myLevel = 3;
_root.money = 0;
isShowHeart = false;
_root.MC_levelNumb.levelView(_root.myLevel);
_root.stgN.stgView(_root.myLevel);
initMC();
_root.ready.gotoAndPlay(2);
stop();
Instance of Symbol 683 MovieClip "wigs3" in Frame 8
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs7" in Frame 8
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs5" in Frame 8
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs1" in Frame 8
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs2" in Frame 8
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs4" in Frame 8
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 236 MovieClip "opening" in Frame 8
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 683 MovieClip "wigs6" in Frame 8
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 925 MovieClip "cursor" in Frame 8
onClipEvent (load) {
if (null) {
}
this.ax = this._x;
this.ay = this._y;
}
onClipEvent (enterFrame) {
if (null) {
}
if (Key.isDown(13)) {
_root.isReload = true;
if (_root.isItem1 == true) {
_root.jar2.Sig = true;
_root.jar2.bullets.gotoAndPlay(1);
_root.jar2.gotoAndPlay(2);
} else {
_root.jar.Sig = true;
_root.jar.bullets.gotoAndPlay(1);
_root.jar.gotoAndPlay(2);
}
}
}
Frame 9
if (null) {
}
var kxn = 1;
while (kxn < 15) {
removeMovieClip(_root["wigs" + kxn]);
kxn++;
}
Frame 10
if (null) {
}
windowX = 7;
windowY = 1;
depthCount = 3700;
_root.cursor.myName1 = 0;
_root.cursor.myName2 = 0;
_root.money = 0;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
_root.countWig = 0;
myWinNumb = "";
myWigNumber = "";
isFire = false;
isOpen = false;
gameSig = true;
isBoss = false;
heartSignal = 0;
_root[_root.myGun].gotoAndStop("leftEnd");
enemyNumb = (targetNumb = 25);
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
_root.myLevel = 4;
_root.money = 0;
isShowHeart = false;
_root.MC_levelNumb.levelView(_root.myLevel);
_root.stgN.stgView(_root.myLevel);
initMC();
_root.ready.gotoAndPlay(2);
stop();
Instance of Symbol 683 MovieClip "wigs3" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs7" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs5" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs1" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs2" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs4" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 236 MovieClip "opening" in Frame 10
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 683 MovieClip "wigs6" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs10" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs14" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs12" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs8" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs9" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs11" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs13" in Frame 10
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 925 MovieClip "cursor" in Frame 10
onClipEvent (load) {
if (null) {
}
this.ax = this._x;
this.ay = this._y;
}
onClipEvent (enterFrame) {
if (null) {
}
if (Key.isDown(13)) {
_root.isReload = true;
if (_root.isItem1 == true) {
_root.jar2.Sig = true;
_root.jar2.bullets.gotoAndPlay(1);
_root.jar2.gotoAndPlay(2);
} else {
_root.jar.Sig = true;
_root.jar.bullets.gotoAndPlay(1);
_root.jar.gotoAndPlay(2);
}
}
}
Frame 11
if (null) {
}
var kxn = 1;
while (kxn < 15) {
removeMovieClip(_root["wigs" + kxn]);
kxn++;
}
Frame 12
if (null) {
}
windowX = 7;
windowY = 1;
depthCount = 3700;
_root.cursor.myName1 = 0;
_root.cursor.myName2 = 0;
_root.money = 0;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
_root.countWig = 0;
myWinNumb = "";
myWigNumber = "";
isFire = false;
isOpen = false;
isBoss = false;
gameSig = true;
heartSignal = 0;
_root[_root.myGun].gotoAndStop("leftEnd");
enemyNumb = (targetNumb = 30);
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
_root.myLevel = 5;
_root.money = 0;
isShowHeart = false;
_root.MC_levelNumb.levelView(_root.myLevel);
_root.stgN.stgView(_root.myLevel);
initMC();
_root.ready.gotoAndPlay(2);
stop();
Instance of Symbol 683 MovieClip "wigs3" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs7" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs5" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs1" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs2" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs4" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 236 MovieClip "opening" in Frame 12
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 683 MovieClip "wigs6" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs10" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs14" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs12" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs8" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs9" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs11" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs13" in Frame 12
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 925 MovieClip "cursor" in Frame 12
onClipEvent (load) {
if (null) {
}
this.ax = this._x;
this.ay = this._y;
}
onClipEvent (enterFrame) {
if (null) {
}
if (Key.isDown(13)) {
_root.isReload = true;
if (_root.isItem1 == true) {
_root.jar2.Sig = true;
_root.jar2.bullets.gotoAndPlay(1);
_root.jar2.gotoAndPlay(2);
} else {
_root.jar.Sig = true;
_root.jar.bullets.gotoAndPlay(1);
_root.jar.gotoAndPlay(2);
}
}
}
Frame 13
if (null) {
}
var kxn = 1;
while (kxn < 15) {
removeMovieClip(_root["wigs" + kxn]);
kxn++;
}
Frame 14
if (null) {
}
windowX = 7;
windowY = 1;
depthCount = 3700;
_root.cursor.myName1 = 0;
_root.cursor.myName2 = 0;
_root.money = 0;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
_root.countWig = 0;
myWinNumb = "";
myWigNumber = "";
isFire = false;
isOpen = false;
gameSig = true;
isBoss = false;
heartSignal = 0;
_root[_root.myGun].gotoAndStop("leftEnd");
enemyNumb = (targetNumb = 30);
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
_root.myLevel = 6;
_root.money = 0;
isShowHeart = false;
_root.MC_levelNumb.levelView(_root.myLevel);
_root.stgN.stgView(_root.myLevel);
initMC();
_root.ready.gotoAndPlay(2);
stop();
Instance of Symbol 683 MovieClip "wigs3" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs7" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs5" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs1" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs2" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs4" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 236 MovieClip "opening" in Frame 14
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 683 MovieClip "wigs6" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs10" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs14" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs12" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs8" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs9" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs11" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs13" in Frame 14
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 925 MovieClip "cursor" in Frame 14
onClipEvent (load) {
if (null) {
}
this.ax = this._x;
this.ay = this._y;
}
onClipEvent (enterFrame) {
if (null) {
}
if (Key.isDown(13)) {
_root.isReload = true;
if (_root.isItem1 == true) {
_root.jar2.Sig = true;
_root.jar2.bullets.gotoAndPlay(1);
_root.jar2.gotoAndPlay(2);
} else {
_root.jar.Sig = true;
_root.jar.bullets.gotoAndPlay(1);
_root.jar.gotoAndPlay(2);
}
}
}
Frame 15
if (null) {
}
var kxn = 1;
while (kxn < 15) {
removeMovieClip(_root["wigs" + kxn]);
kxn++;
}
Frame 16
if (null) {
}
windowX = 7;
windowY = 1;
depthCount = 3700;
_root.cursor.myName1 = 0;
_root.cursor.myName2 = 0;
_root.money = 0;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
_root.countWig = 0;
myWinNumb = "";
myWigNumber = "";
isFire = false;
isOpen = false;
gameSig = true;
isBoss = false;
heartSignal = 0;
_root[_root.myGun].gotoAndStop("leftEnd");
enemyNumb = (targetNumb = 30);
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
_root.myLevel = 7;
_root.money = 0;
isShowHeart = false;
_root.MC_levelNumb.levelView(_root.myLevel);
_root.stgN.stgView(_root.myLevel);
initMC();
_root.ready.gotoAndPlay(2);
stop();
Instance of Symbol 683 MovieClip "wigs3" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs7" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs5" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs1" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs2" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs4" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 236 MovieClip "opening" in Frame 16
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 683 MovieClip "wigs6" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs10" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs14" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs12" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs8" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs9" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs11" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs13" in Frame 16
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 925 MovieClip "cursor" in Frame 16
onClipEvent (load) {
if (null) {
}
this.ax = this._x;
this.ay = this._y;
}
onClipEvent (enterFrame) {
if (null) {
}
if (Key.isDown(13)) {
_root.isReload = true;
if (_root.isItem1 == true) {
_root.jar2.Sig = true;
_root.jar2.bullets.gotoAndPlay(1);
_root.jar2.gotoAndPlay(2);
} else {
_root.jar.Sig = true;
_root.jar.bullets.gotoAndPlay(1);
_root.jar.gotoAndPlay(2);
}
}
}
Frame 17
if (null) {
}
var kxn = 1;
while (kxn < 15) {
removeMovieClip(_root["wigs" + kxn]);
kxn++;
}
Frame 18
if (null) {
}
windowX = 7;
windowY = 1;
depthCount = 3700;
_root.cursor.myName1 = 0;
_root.cursor.myName2 = 0;
_root.money = 0;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
_root.countWig = 0;
myWinNumb = "";
myWigNumber = "";
isFire = false;
isOpen = false;
gameSig = true;
isBoss = false;
heartSignal = 0;
_root[_root.myGun].gotoAndStop("leftEnd");
enemyNumb = (targetNumb = 30);
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
_root.myLevel = 8;
_root.money = 0;
isShowHeart = false;
_root.MC_levelNumb.levelView(_root.myLevel);
_root.stgN.stgView(_root.myLevel);
initMC();
_root.ready.gotoAndPlay(2);
stop();
Instance of Symbol 683 MovieClip "wigs3" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs7" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs5" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs1" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs2" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs4" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 236 MovieClip "opening" in Frame 18
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 683 MovieClip "wigs6" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs10" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs14" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs12" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs8" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs9" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs11" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs13" in Frame 18
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 925 MovieClip "cursor" in Frame 18
onClipEvent (load) {
if (null) {
}
this.ax = this._x;
this.ay = this._y;
}
onClipEvent (enterFrame) {
if (null) {
}
if (Key.isDown(13)) {
_root.isReload = true;
if (_root.isItem1 == true) {
_root.jar2.Sig = true;
_root.jar2.bullets.gotoAndPlay(1);
_root.jar2.gotoAndPlay(2);
} else {
_root.jar.Sig = true;
_root.jar.bullets.gotoAndPlay(1);
_root.jar.gotoAndPlay(2);
}
}
}
Frame 19
if (null) {
}
var kxn = 1;
while (kxn < 15) {
removeMovieClip(_root["wigs" + kxn]);
kxn++;
}
Frame 20
if (null) {
}
windowX = 7;
windowY = 1;
depthCount = 3700;
_root.cursor.myName1 = 0;
_root.cursor.myName2 = 0;
_root.money = 0;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
_root.countWig = 0;
myWinNumb = "";
myWigNumber = "";
isFire = false;
isOpen = false;
gameSig = true;
isBoss = false;
heartSignal = 0;
_root[_root.myGun].gotoAndStop("leftEnd");
enemyNumb = (targetNumb = 30);
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
_root.myLevel = 9;
_root.money = 0;
isShowHeart = false;
_root.MC_levelNumb.levelView(_root.myLevel);
_root.stgN.stgView(_root.myLevel);
initMC();
_root.ready.gotoAndPlay(2);
stop();
Instance of Symbol 683 MovieClip "wigs3" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs7" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs5" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs1" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs2" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs4" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 236 MovieClip "opening" in Frame 20
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 683 MovieClip "wigs6" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs10" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs14" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs12" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs8" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs9" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs11" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs13" in Frame 20
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 925 MovieClip "cursor" in Frame 20
onClipEvent (load) {
if (null) {
}
this.ax = this._x;
this.ay = this._y;
}
onClipEvent (enterFrame) {
if (null) {
}
if (Key.isDown(13)) {
_root.isReload = true;
if (_root.isItem1 == true) {
_root.jar2.Sig = true;
_root.jar2.bullets.gotoAndPlay(1);
_root.jar2.gotoAndPlay(2);
} else {
_root.jar.Sig = true;
_root.jar.bullets.gotoAndPlay(1);
_root.jar.gotoAndPlay(2);
}
}
}
Frame 21
if (null) {
}
var kxn = 1;
while (kxn < 15) {
removeMovieClip(_root["wigs" + kxn]);
kxn++;
}
Frame 22
if (null) {
}
windowX = 7;
windowY = 1;
depthCount = 3700;
_root.cursor.myName1 = 0;
_root.cursor.myName2 = 0;
_root.money = 0;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
_root.countWig = 0;
myWinNumb = "";
myWigNumber = "";
isFire = false;
isOpen = false;
gameSig = true;
isBoss = false;
heartSignal = 0;
_root[_root.myGun].gotoAndStop("leftEnd");
enemyNumb = (targetNumb = 30);
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
_root.myLevel = _root.myLevel + 1;
_root.money = 0;
isShowHeart = false;
_root.MC_levelNumb.levelView(_root.myLevel);
_root.stgN.stgView(_root.myLevel);
initMC();
_root.ready.gotoAndPlay(2);
stop();
Instance of Symbol 683 MovieClip "wigs3" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs7" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs5" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs1" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs2" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs4" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 236 MovieClip "opening" in Frame 22
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 683 MovieClip "wigs6" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs10" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs14" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs12" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs8" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs9" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs11" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 683 MovieClip "wigs13" in Frame 22
onClipEvent (load) {
if (null) {
}
this.MC_num = String(this._name);
this.MC_num = this.MC_num.slice(4, 6);
this.myDepth = this.getDepth();
}
Instance of Symbol 925 MovieClip "cursor" in Frame 22
onClipEvent (load) {
if (null) {
}
this.ax = this._x;
this.ay = this._y;
}
onClipEvent (enterFrame) {
if (null) {
}
if (Key.isDown(13)) {
_root.isReload = true;
if (_root.isItem1 == true) {
_root.jar2.Sig = true;
_root.jar2.bullets.gotoAndPlay(1);
_root.jar2.gotoAndPlay(2);
} else {
_root.jar.Sig = true;
_root.jar.bullets.gotoAndPlay(1);
_root.jar.gotoAndPlay(2);
}
}
}
Frame 23
if (null) {
}
stop();
var kxn = 1;
while (kxn < 15) {
removeMovieClip(_root["wigs" + kxn]);
kxn++;
}
_root.gotoAndPlay(_currentframe - 2);
Frame 24
if (null) {
}
this.stop();
Symbol 18 Button
on (release) {
if (null) {
}
getURL ("http://www.puppyred.com", "_blank");
}
Symbol 20 Button
on (release) {
if (null) {
}
getURL ("http://www.puppyred.com", "_blank");
}
Symbol 28 MovieClip Frame 9
if (null) {
}
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
} else {
this.stop();
this.loadingbar.onEnterFrame = function () {
this._x = (((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) * 1.47) + -143.7;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
this._parent.gotoAndPlay("loadingOk");
this.onEnterFrame = null;
}
};
}
Symbol 28 MovieClip Frame 31
if (null) {
}
this._parent.gotoAndPlay("loading_ok");
Symbol 28 MovieClip Frame 32
if (null) {
}
Symbol 28 MovieClip Frame 33
if (null) {
}
Symbol 29 MovieClip Frame 1
if (null) {
}
this._parent.comTAG = "cyworld.nate.com";
Symbol 29 MovieClip Frame 2
if (null) {
}
Symbol 29 MovieClip Frame 18
if (null) {
}
if (_root.isLoaded != "fin") {
_root.isLoaded = "fin";
} else {
this.gotoAndPlay("loading_ok");
}
Symbol 29 MovieClip Frame 19
if (null) {
}
this.stop();
if (Number(_root.userLevel) > 10) {
_root.tempLevel = _root.userLevel.slice(0, 1);
_root.userLevel = _root.userLevel.slice(1, 2);
}
Symbol 29 MovieClip Frame 34
if (null) {
}
this.stop();
this._parent.play();
Symbol 133 Button
on (release, keyPress "<Enter>") {
if (null) {
}
stopAllSounds();
_root.myS.start();
userLevel = 1;
_root.isItem1 = false;
_root.isItem2 = false;
if (_root.isItem1 == true) {
_root.myGun = "machineGun";
} else {
_root.myGun = "fireGun";
}
_root.gotoAndPlay("startGame");
}
Symbol 136 Button
on (release) {
if (null) {
}
_root.gotoAndStop("guide");
}
Symbol 156 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 156 MovieClip Frame 2
if (null) {
}
this.stop();
Symbol 156 MovieClip Frame 3
if (null) {
}
this.stop();
Symbol 156 MovieClip Frame 4
if (null) {
}
this.stop();
Symbol 156 MovieClip Frame 5
if (null) {
}
this.stop();
Symbol 156 MovieClip Frame 6
if (null) {
}
this.stop();
Symbol 157 MovieClip Frame 1
if (null) {
}
stop();
Symbol 157 MovieClip Frame 2
if (null) {
}
myItem = new Array();
if (_root.isItem1 == true) {
var k = this.myItem.push("myItem1");
}
if (_root.isItem2 == true) {
var k = this.myItem.push("myItem2");
}
if (_root.isItem3 == true) {
var k = this.myItem.push("myItem3");
}
if (_root.isItem4 == true) {
var k = this.myItem.push("myItem4");
}
Symbol 157 MovieClip Frame 3
if (null) {
}
this.MC_item1.gotoAndStop(this.myItem[0]);
Symbol 157 MovieClip Frame 7
if (null) {
}
this.MC_item2.gotoAndStop(this.myItem[1]);
Symbol 157 MovieClip Frame 11
if (null) {
}
this.MC_item3.gotoAndStop(this.myItem[2]);
Symbol 157 MovieClip Frame 23
if (null) {
}
_root.gotoAndStop("startGame");
this.stop();
Symbol 177 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 177 MovieClip Frame 2
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 177 MovieClip Frame 3
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 177 MovieClip Frame 4
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 177 MovieClip Frame 5
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 177 MovieClip Frame 6
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 177 MovieClip Frame 7
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 177 MovieClip Frame 8
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 177 MovieClip Frame 9
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 177 MovieClip Frame 10
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
this.gotoAndStop(1);
Symbol 180 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 180 MovieClip Frame 2
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 180 MovieClip Frame 3
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 180 MovieClip Frame 4
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 180 MovieClip Frame 5
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 180 MovieClip Frame 6
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 180 MovieClip Frame 7
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 180 MovieClip Frame 8
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 180 MovieClip Frame 9
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 180 MovieClip Frame 10
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
this.gotoAndStop(1);
Symbol 183 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 183 MovieClip Frame 2
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 183 MovieClip Frame 3
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 183 MovieClip Frame 4
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 183 MovieClip Frame 5
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 183 MovieClip Frame 6
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 183 MovieClip Frame 7
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 183 MovieClip Frame 8
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 183 MovieClip Frame 9
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 183 MovieClip Frame 10
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
this.gotoAndStop(1);
Symbol 186 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 186 MovieClip Frame 2
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 186 MovieClip Frame 3
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 186 MovieClip Frame 4
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 186 MovieClip Frame 5
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 186 MovieClip Frame 6
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 186 MovieClip Frame 7
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 186 MovieClip Frame 8
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 186 MovieClip Frame 9
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 186 MovieClip Frame 10
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
this.gotoAndStop(1);
Symbol 189 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 189 MovieClip Frame 2
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 189 MovieClip Frame 3
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 189 MovieClip Frame 4
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 189 MovieClip Frame 5
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 189 MovieClip Frame 6
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 189 MovieClip Frame 7
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 189 MovieClip Frame 8
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 189 MovieClip Frame 9
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 189 MovieClip Frame 10
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
this.gotoAndStop(1);
Symbol 192 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 192 MovieClip Frame 2
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 192 MovieClip Frame 3
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 192 MovieClip Frame 4
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 192 MovieClip Frame 5
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 192 MovieClip Frame 6
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 192 MovieClip Frame 7
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 192 MovieClip Frame 8
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 192 MovieClip Frame 9
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 192 MovieClip Frame 10
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
this.gotoAndStop(1);
Symbol 195 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 195 MovieClip Frame 2
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 195 MovieClip Frame 3
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 195 MovieClip Frame 4
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 195 MovieClip Frame 5
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 195 MovieClip Frame 6
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 195 MovieClip Frame 7
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 195 MovieClip Frame 8
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 195 MovieClip Frame 9
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
if (!Key.isDown(32)) {
this.gotoAndStop(1);
}
Symbol 195 MovieClip Frame 10
if (null) {
}
_root.snd_gun.stop("snd_gun");
_root.snd_gun.start();
if (_root.jar2.bullets._currentframe < 21) {
_root.jar2.bullets.play();
}
this.gotoAndStop(1);
Symbol 196 MovieClip Frame 1
if (null) {
}
stop();
Symbol 196 MovieClip Frame 2
if (null) {
}
stop();
Symbol 196 MovieClip Frame 3
if (null) {
}
stop();
Symbol 196 MovieClip Frame 4
if (null) {
}
stop();
Symbol 196 MovieClip Frame 5
if (null) {
}
stop();
Symbol 196 MovieClip Frame 6
if (null) {
}
stop();
Symbol 196 MovieClip Frame 7
if (null) {
}
stop();
Symbol 209 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 209 MovieClip Frame 2
if (null) {
}
_root.jar.bullets.play();
Symbol 209 MovieClip Frame 10
if (null) {
}
this.gotoAndStop(1);
Symbol 212 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 212 MovieClip Frame 2
if (null) {
}
_root.jar.bullets.play();
Symbol 212 MovieClip Frame 10
if (null) {
}
this.gotoAndStop(1);
Symbol 216 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 216 MovieClip Frame 2
if (null) {
}
_root.jar.bullets.play();
Symbol 216 MovieClip Frame 10
if (null) {
}
this.gotoAndStop(1);
Symbol 220 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 220 MovieClip Frame 2
if (null) {
}
_root.jar.bullets.play();
Symbol 220 MovieClip Frame 10
if (null) {
}
this.gotoAndStop(1);
Symbol 224 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 224 MovieClip Frame 2
if (null) {
}
_root.jar.bullets.play();
Symbol 224 MovieClip Frame 10
if (null) {
}
this.gotoAndStop(1);
Symbol 228 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 228 MovieClip Frame 2
if (null) {
}
_root.jar.bullets.play();
Symbol 228 MovieClip Frame 10
if (null) {
}
this.gotoAndStop(1);
Symbol 232 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 232 MovieClip Frame 2
if (null) {
}
_root.jar.bullets.play();
Symbol 232 MovieClip Frame 10
if (null) {
}
this.gotoAndStop(1);
Symbol 233 MovieClip Frame 1
if (null) {
}
stop();
Symbol 233 MovieClip Frame 2
if (null) {
}
stop();
Symbol 233 MovieClip Frame 3
if (null) {
}
stop();
Symbol 233 MovieClip Frame 4
if (null) {
}
stop();
Symbol 233 MovieClip Frame 5
if (null) {
}
stop();
Symbol 233 MovieClip Frame 6
if (null) {
}
stop();
Symbol 233 MovieClip Frame 7
if (null) {
}
stop();
Symbol 236 MovieClip Frame 25
if (null) {
}
openWinNumb1 = random(7) + 1;
Symbol 236 MovieClip Frame 28
if (null) {
}
openWinNumb2 = random(7) + 1;
if (this.openWinNumb2 == this.openWinNumb1) {
this.gotoAndPlay(this._currentframe - 1);
} else {
this.play();
}
Symbol 236 MovieClip Frame 31
if (null) {
}
openWinNumb3 = random(7) + 1;
if ((this.openWinNumb3 == this.openWinNumb2) || (this.opneWinNumb3 == this.openWinNumb1)) {
this.gotoAndPlay(this._currentframe - 1);
} else {
this.play();
}
Symbol 240 MovieClip Frame 1
if (null) {
}
stop();
Symbol 240 MovieClip Frame 2
if (null) {
}
this.play();
Symbol 240 MovieClip Frame 50
if (null) {
}
_root.isFire = false;
_root.countWig--;
_root["door" + _parent._parent.MC_num].gotoAndStop(1);
_root.isOpen = false;
_parent._parent.isOpen = false;
_root.oPen();
_root["wigs" + _parent._parent.MC_num].gotoAndStop(1);
this.gotoAndPlay(2);
Symbol 279 MovieClip Frame 1
if (null) {
}
stop();
this.killSig = false;
Symbol 279 MovieClip Frame 2
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 279 MovieClip Frame 3
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 279 MovieClip Frame 13
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 279 MovieClip Frame 15
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 279 MovieClip Frame 16
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 279 MovieClip Frame 20
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 279 MovieClip Frame 24
if (null) {
}
this.play();
Symbol 279 MovieClip Frame 25
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 279 MovieClip Frame 26
if (null) {
}
this.stop();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 279 MovieClip Frame 27
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 279 MovieClip Frame 37
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 279 MovieClip Frame 39
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 279 MovieClip Frame 40
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 279 MovieClip Frame 44
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 279 MovieClip Frame 48
if (null) {
}
this.play();
Symbol 279 MovieClip Frame 49
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 279 MovieClip Frame 50
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
Symbol 279 MovieClip Frame 51
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 279 MovieClip Frame 61
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 279 MovieClip Frame 63
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 279 MovieClip Frame 64
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 279 MovieClip Frame 68
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 279 MovieClip Frame 72
if (null) {
}
this.play();
Symbol 279 MovieClip Frame 73
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 311 MovieClip Frame 1
if (null) {
}
stop();
this.killSig = false;
Symbol 311 MovieClip Frame 2
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 311 MovieClip Frame 3
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
this.play();
Symbol 311 MovieClip Frame 13
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 311 MovieClip Frame 15
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 311 MovieClip Frame 16
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 311 MovieClip Frame 20
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 311 MovieClip Frame 24
if (null) {
}
this.play();
Symbol 311 MovieClip Frame 25
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 311 MovieClip Frame 26
if (null) {
}
this.stop();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 311 MovieClip Frame 27
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 311 MovieClip Frame 37
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 311 MovieClip Frame 39
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 311 MovieClip Frame 40
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 311 MovieClip Frame 44
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 311 MovieClip Frame 48
if (null) {
}
this.play();
Symbol 311 MovieClip Frame 49
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 311 MovieClip Frame 50
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
Symbol 311 MovieClip Frame 51
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 311 MovieClip Frame 61
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 311 MovieClip Frame 63
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 311 MovieClip Frame 64
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 311 MovieClip Frame 68
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 311 MovieClip Frame 72
if (null) {
}
this.play();
Symbol 311 MovieClip Frame 73
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 320 MovieClip Frame 1
if (null) {
}
stop();
this.killSig = false;
Symbol 320 MovieClip Frame 2
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 320 MovieClip Frame 3
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 320 MovieClip Frame 13
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 320 MovieClip Frame 15
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 320 MovieClip Frame 16
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 320 MovieClip Frame 20
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 320 MovieClip Frame 24
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 320 MovieClip Frame 25
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 320 MovieClip Frame 26
if (null) {
}
this.stop();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 320 MovieClip Frame 27
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 320 MovieClip Frame 37
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 320 MovieClip Frame 39
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 320 MovieClip Frame 40
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 320 MovieClip Frame 44
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 320 MovieClip Frame 48
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 320 MovieClip Frame 49
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 320 MovieClip Frame 50
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
Symbol 320 MovieClip Frame 51
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 320 MovieClip Frame 61
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 320 MovieClip Frame 63
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 320 MovieClip Frame 64
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 320 MovieClip Frame 68
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 320 MovieClip Frame 72
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 320 MovieClip Frame 73
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 328 MovieClip Frame 1
if (null) {
}
stop();
this.killSig = false;
Symbol 328 MovieClip Frame 2
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 328 MovieClip Frame 3
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 328 MovieClip Frame 13
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 328 MovieClip Frame 15
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 328 MovieClip Frame 16
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 328 MovieClip Frame 25
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 328 MovieClip Frame 26
if (null) {
}
this.stop();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 328 MovieClip Frame 27
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 328 MovieClip Frame 37
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 328 MovieClip Frame 39
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 328 MovieClip Frame 40
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 328 MovieClip Frame 49
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 328 MovieClip Frame 50
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
Symbol 328 MovieClip Frame 51
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 328 MovieClip Frame 61
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 328 MovieClip Frame 63
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 328 MovieClip Frame 64
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 328 MovieClip Frame 73
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 358 MovieClip Frame 1
if (null) {
}
stop();
this.killSig = false;
Symbol 358 MovieClip Frame 2
if (null) {
}
this.stop();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 358 MovieClip Frame 3
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 358 MovieClip Frame 13
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 358 MovieClip Frame 15
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 358 MovieClip Frame 16
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 358 MovieClip Frame 20
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 358 MovieClip Frame 24
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 358 MovieClip Frame 25
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 358 MovieClip Frame 26
if (null) {
}
this.stop();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 358 MovieClip Frame 27
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 358 MovieClip Frame 37
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 358 MovieClip Frame 39
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 358 MovieClip Frame 40
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 358 MovieClip Frame 44
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 358 MovieClip Frame 48
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 358 MovieClip Frame 49
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 358 MovieClip Frame 50
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
Symbol 358 MovieClip Frame 51
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 358 MovieClip Frame 61
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 358 MovieClip Frame 63
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 358 MovieClip Frame 64
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 358 MovieClip Frame 68
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 358 MovieClip Frame 72
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 358 MovieClip Frame 73
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 364 MovieClip Frame 1
if (null) {
}
stop();
this.killSig = false;
Symbol 364 MovieClip Frame 2
if (null) {
}
this.stop();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 364 MovieClip Frame 3
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 364 MovieClip Frame 13
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 364 MovieClip Frame 15
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 364 MovieClip Frame 16
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 364 MovieClip Frame 20
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 364 MovieClip Frame 24
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 364 MovieClip Frame 25
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 364 MovieClip Frame 26
if (null) {
}
this.stop();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 364 MovieClip Frame 27
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 364 MovieClip Frame 37
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 364 MovieClip Frame 39
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 364 MovieClip Frame 40
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 364 MovieClip Frame 44
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 364 MovieClip Frame 48
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 364 MovieClip Frame 49
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 364 MovieClip Frame 50
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
Symbol 364 MovieClip Frame 51
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 364 MovieClip Frame 61
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 364 MovieClip Frame 63
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 364 MovieClip Frame 64
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 364 MovieClip Frame 68
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 364 MovieClip Frame 72
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 364 MovieClip Frame 73
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 370 MovieClip Frame 1
if (null) {
}
stop();
this.killSig = false;
Symbol 370 MovieClip Frame 2
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 370 MovieClip Frame 3
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 370 MovieClip Frame 13
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 370 MovieClip Frame 15
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 370 MovieClip Frame 16
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 370 MovieClip Frame 20
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 370 MovieClip Frame 24
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 370 MovieClip Frame 25
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 370 MovieClip Frame 26
if (null) {
}
this.stop();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 370 MovieClip Frame 27
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 370 MovieClip Frame 37
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 370 MovieClip Frame 39
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 370 MovieClip Frame 40
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 370 MovieClip Frame 44
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 370 MovieClip Frame 48
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 370 MovieClip Frame 49
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 370 MovieClip Frame 50
if (null) {
}
this.play();
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
Symbol 370 MovieClip Frame 51
if (null) {
}
_root.lifeMinus.duplicateMovieClip("lifeMinus" + _root.dN, dN);
_root["lifeMinus" + _root.dN]._x = _parent._x;
_root["lifeMinus" + _root.dN]._y = _parent._y;
_root["lifeMinus" + _root.dN].gotoAndPlay(2);
_root.dN++;
Symbol 370 MovieClip Frame 61
if (null) {
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
}
Symbol 370 MovieClip Frame 63
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 370 MovieClip Frame 64
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 370 MovieClip Frame 68
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 370 MovieClip Frame 72
if (null) {
}
this.play();
trace("\uD604\uC7AC \uD504\uB808\uC784 = " + this._currentframe);
Symbol 370 MovieClip Frame 73
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 377 MovieClip Frame 2
if (null) {
}
_parent._parent.stop();
Symbol 377 MovieClip Frame 7
if (null) {
}
_parent._parent.gotoAndPlay("killed");
Symbol 377 MovieClip Frame 10
if (null) {
}
this.gotoAndStop(1);
Symbol 378 MovieClip Frame 2
if (null) {
}
_parent._parent.stop();
Symbol 378 MovieClip Frame 7
if (null) {
}
_parent._parent.gotoAndPlay("killed");
Symbol 378 MovieClip Frame 10
if (null) {
}
this.gotoAndStop(1);
Symbol 382 MovieClip Frame 2
if (null) {
}
_parent._parent.stop();
Symbol 382 MovieClip Frame 7
if (null) {
}
_parent._parent.gotoAndPlay("killed");
Symbol 382 MovieClip Frame 10
if (null) {
}
this.gotoAndStop(1);
Symbol 383 MovieClip Frame 2
if (null) {
}
_parent._parent.stop();
Symbol 383 MovieClip Frame 7
if (null) {
}
_parent._parent.gotoAndPlay("killed");
Symbol 383 MovieClip Frame 10
if (null) {
}
this.gotoAndStop(1);
Symbol 384 MovieClip Frame 1
if (null) {
}
this.stop();
if (_root.isItem2 == true) {
this.onEnterFrame = function () {
if (_root.playingBoss == true) {
_parent.stop();
this.onEnterFrame = null;
if ((_parent._parent._x > 180) && (_parent._parent._x < 220)) {
if (_root.isItem1 == true) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(5);
}
} else if (_root.isItem1 == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
}
};
}
Symbol 384 MovieClip Frame 2
if (null) {
}
this.stop();
Symbol 384 MovieClip Frame 3
if (null) {
}
this.stop();
Symbol 384 MovieClip Frame 4
if (null) {
}
this.stop();
Symbol 384 MovieClip Frame 5
if (null) {
}
this.stop();
Symbol 413 MovieClip Frame 1
if (null) {
}
if (_root.enemyNumb <= 0) {
_root.isBoss = true;
_root.bossOpenNumb = 0;
} else {
_root.isBoss = false;
}
this.gotoAndPlay("shoot");
this.killSig = false;
this.depthNN = _parent.getDepth();
if (this.depthNN > 0) {
_parent.swapDepths(_parent.myDepth);
}
Symbol 413 MovieClip Frame 2
if (null) {
}
this.assister.onEnterFrame = null;
this.killSig = true;
_root.Lamps.redLamps.nextFrame();
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 413 MovieClip Frame 7
if (null) {
}
this.accessory._visible = false;
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 413 MovieClip Frame 15
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
this.bScore = (this.TF - 50) - this.CF;
_root.score = _root.score + (10 + this.bScore);
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 413 MovieClip Frame 27
if (null) {
}
if (_root.userLevel < 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 5);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 10);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 15);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 20);
}
} else if (_root.userLevel == 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 7);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 12);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 17);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 22);
}
} else if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 9);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 14);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 19);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 24);
}
Symbol 413 MovieClip Frame 60
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 413 MovieClip Frame 69
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 413 MovieClip Frame 70
if (null) {
}
stop();
this.assister.onEnterFrame = null;
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
_root["MC_Blood" + _parent.MC_num].numb = _parent.MC_num;
_root["MC_Blood" + _parent.MC_num].gotoAndPlay(2);
Symbol 413 MovieClip Frame 71
if (null) {
}
this.stop();
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 413 MovieClip Frame 80
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 413 MovieClip Frame 93
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 413 MovieClip Frame 94
if (null) {
}
this.killSig = true;
Symbol 413 MovieClip Frame 103
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 413 MovieClip Frame 118
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 448 MovieClip Frame 1
if (null) {
}
if (_root.enemyNumb <= 0) {
_root.isBoss = true;
_root.bossOpenNumb = 0;
} else {
_root.isBoss = false;
}
this.gotoAndPlay("shoot");
this.killSig = false;
this.depthNN = _parent.getDepth();
if (this.depthNN > 0) {
_parent.swapDepths(_parent.myDepth);
}
Symbol 448 MovieClip Frame 2
if (null) {
}
this.killSig = true;
this.assister.onEnterFrame = null;
_root.Lamps.yellowLamps.nextFrame();
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 448 MovieClip Frame 7
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 448 MovieClip Frame 15
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
this.bScore = (this.TF - 50) - this.CF;
_root.score = _root.score + (10 + this.bScore);
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 448 MovieClip Frame 27
if (null) {
}
if (_root.userLevel < 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 5);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 10);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 15);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 20);
}
} else if (_root.userLevel == 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 7);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 12);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 17);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 22);
}
} else if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 9);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 14);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 19);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 24);
}
Symbol 448 MovieClip Frame 60
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 448 MovieClip Frame 69
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 448 MovieClip Frame 70
if (null) {
}
stop();
this.assister.onEnterFrame = null;
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
_root["MC_Blood" + _parent.MC_num].numb = _parent.MC_num;
_root["MC_Blood" + _parent.MC_num].gotoAndPlay(2);
Symbol 448 MovieClip Frame 71
if (null) {
}
this.stop();
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 448 MovieClip Frame 80
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 448 MovieClip Frame 93
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 448 MovieClip Frame 94
if (null) {
}
this.killSig = true;
Symbol 448 MovieClip Frame 103
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 448 MovieClip Frame 118
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 488 MovieClip Frame 1
if (null) {
}
if (_root.enemyNumb <= 0) {
_root.isBoss = true;
_root.bossOpenNumb = 0;
} else {
_root.isBoss = false;
}
this.gotoAndPlay("shoot");
this.killSig = false;
this.depthNN = _parent.getDepth();
if (this.depthNN > 0) {
_parent.swapDepths(_parent.myDepth);
}
Symbol 488 MovieClip Frame 2
if (null) {
}
this.assister.onEnterFrame = null;
this.killSig = true;
_root.Lamps.greenLamps.nextFrame();
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 488 MovieClip Frame 3
if (null) {
}
this.accessory._visible = false;
Symbol 488 MovieClip Frame 7
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 488 MovieClip Frame 15
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
this.bScore = (this.TF - 50) - this.CF;
_root.score = _root.score + (10 + this.bScore);
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 488 MovieClip Frame 27
if (null) {
}
if (_root.userLevel < 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 5);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 10);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 15);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 20);
}
} else if (_root.userLevel == 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 7);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 12);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 17);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 22);
}
} else if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 9);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 14);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 19);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 24);
}
Symbol 488 MovieClip Frame 60
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 488 MovieClip Frame 69
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 488 MovieClip Frame 70
if (null) {
}
stop();
this.assister.onEnterFrame = null;
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
_root["MC_Blood" + _parent.MC_num].numb = _parent.MC_num;
_root["MC_Blood" + _parent.MC_num].gotoAndPlay(2);
Symbol 488 MovieClip Frame 71
if (null) {
}
this.stop();
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 488 MovieClip Frame 80
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 488 MovieClip Frame 93
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 488 MovieClip Frame 94
if (null) {
}
this.killSig = true;
Symbol 488 MovieClip Frame 103
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 488 MovieClip Frame 119
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 506 MovieClip Frame 13
if (null) {
}
this.stop();
Symbol 527 MovieClip Frame 1
if (null) {
}
if (_root.enemyNumb <= 0) {
_root.isBoss = true;
_root.bossOpenNumb = 0;
} else {
_root.isBoss = false;
}
this.gotoAndPlay("shoot");
this.killSig = false;
this.depthNN = _parent.getDepth();
if (this.depthNN > 0) {
_parent.swapDepths(_parent.myDepth);
}
Symbol 527 MovieClip Frame 2
if (null) {
}
this.assister.onEnterFrame = null;
this.killSig = true;
_root.Lamps.redLamps.nextFrame();
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 527 MovieClip Frame 7
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 527 MovieClip Frame 8
if (null) {
}
this.accessory._visible = false;
Symbol 527 MovieClip Frame 15
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
this.bScore = (this.TF - 50) - this.CF;
_root.score = _root.score + (10 + this.bScore);
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 527 MovieClip Frame 27
if (null) {
}
if (_root.userLevel < 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 5);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 10);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 15);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 20);
}
} else if (_root.userLevel == 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 7);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 12);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 17);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 22);
}
} else if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 9);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 14);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 19);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 24);
}
Symbol 527 MovieClip Frame 60
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 527 MovieClip Frame 69
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 527 MovieClip Frame 70
if (null) {
}
stop();
this.assister.onEnterFrame = null;
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
_root["MC_Blood" + _parent.MC_num].numb = _parent.MC_num;
_root["MC_Blood" + _parent.MC_num].gotoAndPlay(2);
Symbol 527 MovieClip Frame 71
if (null) {
}
this.stop();
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 527 MovieClip Frame 80
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 527 MovieClip Frame 93
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 527 MovieClip Frame 94
if (null) {
}
this.killSig = true;
Symbol 527 MovieClip Frame 103
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 527 MovieClip Frame 118
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 562 MovieClip Frame 1
if (null) {
}
if (_root.enemyNumb <= 0) {
_root.isBoss = true;
_root.bossOpenNumb = 0;
} else {
_root.isBoss = false;
}
this.gotoAndPlay("shoot");
this.killSig = false;
this.depthNN = _parent.getDepth();
if (this.depthNN > 0) {
_parent.swapDepths(_parent.myDepth);
}
Symbol 562 MovieClip Frame 2
if (null) {
}
this.assister.onEnterFrame = null;
this.killSig = true;
_root.Lamps.yellowLamps.nextFrame();
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 562 MovieClip Frame 7
if (null) {
}
this.accessory._visible = false;
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 562 MovieClip Frame 15
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
this.bScore = (this.TF - 50) - this.CF;
_root.score = _root.score + (10 + this.bScore);
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 562 MovieClip Frame 27
if (null) {
}
if (_root.userLevel < 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 5);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 10);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 15);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 20);
}
} else if (_root.userLevel == 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 7);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 12);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 17);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 22);
}
} else if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 9);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 14);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 19);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 24);
}
Symbol 562 MovieClip Frame 60
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 562 MovieClip Frame 69
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 562 MovieClip Frame 70
if (null) {
}
stop();
this.assister.onEnterFrame = null;
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
_root["MC_Blood" + _parent.MC_num].numb = _parent.MC_num;
_root["MC_Blood" + _parent.MC_num].gotoAndPlay(2);
Symbol 562 MovieClip Frame 71
if (null) {
}
this.stop();
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 562 MovieClip Frame 80
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 562 MovieClip Frame 93
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 562 MovieClip Frame 94
if (null) {
}
this.killSig = true;
Symbol 562 MovieClip Frame 103
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 562 MovieClip Frame 118
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 600 MovieClip Frame 1
if (null) {
}
if (_root.enemyNumb <= 0) {
_root.isBoss = true;
_root.bossOpenNumb = 0;
} else {
_root.isBoss = false;
}
this.gotoAndPlay("shoot");
this.killSig = false;
this.depthNN = _parent.getDepth();
if (this.depthNN > 0) {
_parent.swapDepths(_parent.myDepth);
}
Symbol 600 MovieClip Frame 2
if (null) {
}
this.assister.onEnterFrame = null;
this.killSig = true;
_root.Lamps.greenLamps.nextFrame();
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 600 MovieClip Frame 7
if (null) {
}
this.accessory._visible = false;
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 600 MovieClip Frame 15
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
this.bScore = (this.TF - 50) - this.CF;
_root.score = _root.score + (10 + this.bScore);
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 600 MovieClip Frame 27
if (null) {
}
if (_root.userLevel < 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 5);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 10);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 15);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 20);
}
} else if (_root.userLevel == 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 7);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 12);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 17);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 22);
}
} else if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 9);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 14);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 19);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 24);
}
Symbol 600 MovieClip Frame 60
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 600 MovieClip Frame 69
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 600 MovieClip Frame 70
if (null) {
}
stop();
this.assister.onEnterFrame = null;
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
_root["MC_Blood" + _parent.MC_num].numb = _parent.MC_num;
_root["MC_Blood" + _parent.MC_num].gotoAndPlay(2);
Symbol 600 MovieClip Frame 71
if (null) {
}
this.stop();
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 600 MovieClip Frame 80
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 600 MovieClip Frame 93
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 600 MovieClip Frame 94
if (null) {
}
this.killSig = true;
Symbol 600 MovieClip Frame 103
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 600 MovieClip Frame 118
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 631 MovieClip Frame 1
if (null) {
}
if (_root.enemyNumb <= 0) {
_root.isBoss = true;
_root.bossOpenNumb = 0;
} else {
_root.isBoss = false;
}
this.gotoAndPlay("shoot");
this.killSig = false;
this.depthNN = _parent.getDepth();
if (this.depthNN > 0) {
_parent.swapDepths(_parent.myDepth);
}
Symbol 631 MovieClip Frame 2
if (null) {
}
this.killSig = true;
_root.Lamps.redLamps.nextFrame();
if (random(2) == 0) {
this.gotoAndPlay("killedDownDown");
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
} else {
this.play();
}
Symbol 631 MovieClip Frame 7
if (null) {
}
this.accessory._visible = false;
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 631 MovieClip Frame 15
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
this.bScore = (this.TF - 50) - this.CF;
_root.score = _root.score + (10 + this.bScore);
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 631 MovieClip Frame 27
if (null) {
}
if (_root.userLevel < 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 5);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 10);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 15);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 20);
}
} else if (_root.userLevel == 2) {
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 7);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 12);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 17);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 22);
}
} else if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 9);
} else if ((_root.myLevel >= 5) && (_root.myLevel < 7)) {
this.gotoAndPlay(this._currentframe + 14);
} else if ((_root.myLevel >= 7) && (_root.myLevel < 10)) {
this.gotoAndPlay(this._currentframe + 19);
} else if (_root.myLevel >= 10) {
this.gotoAndPlay(this._currentframe + 24);
}
Symbol 631 MovieClip Frame 60
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 631 MovieClip Frame 69
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 631 MovieClip Frame 70
if (null) {
}
stop();
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
_root["MC_Blood" + _parent.MC_num].numb = _parent.MC_num;
_root["MC_Blood" + _parent.MC_num].gotoAndPlay(2);
Symbol 631 MovieClip Frame 71
if (null) {
}
this.stop();
this.killSig = true;
if (Number(_parent.MC_num) > 7) {
this.gotoAndPlay("killedDownUp");
} else {
this.play();
}
Symbol 631 MovieClip Frame 80
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 631 MovieClip Frame 93
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 631 MovieClip Frame 94
if (null) {
}
this.killSig = true;
Symbol 631 MovieClip Frame 103
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 631 MovieClip Frame 118
if (null) {
}
stop();
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
_root.score = _root.score + 10;
_root.Gscore.scoreView(_root.score);
_root.enemyNumb--;
_root.MC_enemyNumb.enemyView(_root.enemyNumb);
if (_root.enemyNumb <= 0) {
_root.enemyNumb = 0;
_root.isBoss = true;
}
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 635 MovieClip Frame 1
if (null) {
}
stop();
this.killSig = false;
Symbol 635 MovieClip Frame 2
if (null) {
}
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
Symbol 635 MovieClip Frame 15
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 635 MovieClip Frame 16
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 635 MovieClip Frame 25
if (null) {
}
_root.money = Number(_root.money) + 100;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
_root.Gscore.scoreView(_root.score);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 644 MovieClip Frame 1
if (null) {
}
stop();
this.killSig = false;
Symbol 644 MovieClip Frame 2
if (null) {
}
this.MC_checkTime.gotoAndStop(1);
_root.heartSignal++;
_root.isShowHeart = true;
Symbol 644 MovieClip Frame 15
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 644 MovieClip Frame 16
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 644 MovieClip Frame 25
if (null) {
}
if (_root.lifeNumb < 4) {
_root.lifeNumb++;
}
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
_root.oPen();
this.killSig = true;
_parent.gotoAndStop(1);
Symbol 653 MovieClip Frame 9
if (null) {
}
this.stop();
Symbol 668 MovieClip Frame 9
if (null) {
}
this.stop();
Symbol 669 MovieClip Frame 1
if (null) {
}
this.killSig = false;
this.depthNN = _parent.getDepth();
if (this.depthNN > 0) {
_parent.swapDepths(_parent.myDepth);
}
Instance of Symbol 653 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
this.gotoAndStop(1);
}
Symbol 669 MovieClip Frame 2
if (null) {
}
if (_root.isItem2 == true) {
this.onEnterFrame = null;
_root.playingBoss = false;
}
this.killSig = true;
_root.bossEnergy._x = _parent._x;
_root.bossEnergy._y = _parent._y - 43;
_root.bossKilledNumb--;
_root.bossEnergy.gotoAndPlay(1);
_root.bossOpenNumb = 0;
Symbol 669 MovieClip Frame 7
if (null) {
}
duplicateMovieClip (_root.MC_ten, "MC_ten" + _root.dupCnt, _root.dupCnt);
_root["MC_ten" + _root.dupCnt]._x = _parent._x;
_root["MC_ten" + _root.dupCnt]._y = _parent._y - (_parent._height / 2);
if (_root.dupCnt > 90) {
_root.dupCnt = 70;
} else {
_root.dupCnt++;
}
Symbol 669 MovieClip Frame 8
if (null) {
}
if (_root.userLevel < 2) {
_root.bossEnergy.gotoAndStop("LevelOne");
} else if (_root.userLevel == 2) {
_root.bossEnergy.gotoAndStop("LevelTwo");
} else {
_root.bossEnergy.gotoAndStop("LevelThree");
}
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
Symbol 669 MovieClip Frame 15
if (null) {
}
stop();
_root.bossEnergy._x = _root.bossEnergy.myX;
_root.bossEnergy._y = _root.bossEnergy.myY;
_parent.swapDepths(_parent.myDepth);
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
this.gotoAndStop(1);
_root.countWig--;
_root.isBoss = true;
_root.isOpen = false;
this._parent.isOpen = false;
this.bScore = this.TF - this.CF;
_root.score = _root.score + (50 + this.bScore);
_root.Gscore.scoreView(_root.score);
_root.bossEnergy.gotoAndStop(1);
if (_root.bossKilledNumb <= 0) {
if (_root.userLevel < 2) {
_root.bossKilledNumb = 3;
} else if (_root.userLevel == 2) {
_root.bossKilledNumb = 5;
} else if (_root.userLevel > 2) {
_root.bossKilledNumb = 7;
}
_root.gameSig = false;
_root.MC_bonus._visible = true;
_root.MC_bonus.gotoAndPlay(2);
} else {
_root.oPen();
}
this.killSig = false;
this.gotoAndStop(1);
this._parent.gotoAndStop(1);
Symbol 669 MovieClip Frame 16
if (null) {
}
if (_root.isItem2 == true) {
this.onEnterFrame = function () {
_root.playingBoss = true;
};
}
if (null) {
}
_root.bossEnergy._x = _parent._x;
_root.bossEnergy._y = _parent._y - 43;
_root.bossEnergy.gotoAndPlay(1);
if (_root.userLevel < 2) {
} else if (_root.userLevel == 2) {
this.gotoAndPlay(this._currentframe + 3);
} else {
this.gotoAndPlay(this._currentframe + 6);
}
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
Instance of Symbol 653 MovieClip in Symbol 669 MovieClip Frame 16
onClipEvent (load) {
if (null) {
}
this.gotoAndStop(1);
}
Symbol 669 MovieClip Frame 23
if (null) {
}
_parent.swapDepths(_root.depthCount);
_root.depthCount++;
Symbol 669 MovieClip Frame 31
if (null) {
}
if (_root.gameSig == false) {
this.gotoAndPlay(this._currentframe - 1);
}
Symbol 669 MovieClip Frame 37
if (null) {
}
if (_root.isItem2 == true) {
this.onEnterFrame = null;
_root.playingBoss = false;
}
_root.lifeNumb--;
_root.MC_life.gotoAndStop(5 - _root.lifeNumb);
if (_root.score > 50) {
_root.score = _root.score - 50;
_root.Gscore.scoreView(_root.score);
} else {
_root.score = 0;
_root.Gscore.scoreView(_root.score);
}
_root["MC_Blood" + _parent.MC_num].numb = _parent.MC_num;
_root["MC_Blood" + _parent.MC_num].gotoAndPlay(2);
_root["MC_Blood" + _parent.MC_num].window.gotoAndStop(2);
_parent.swapDepths(_parent.myDepth);
Symbol 669 MovieClip Frame 47
if (null) {
}
if (_root.enemyNumb <= 0) {
_root.isBoss = true;
_root.bossOpenNumb = 0;
}
_parent.swapDepths(_parent.myDepth);
_root.bossEnergy._x = _root.bossEnergy.myX;
_root.bossEnergy._y = _root.bossEnergy.myY;
_root.bossEnergy.gotoAndStop(1);
stop();
Symbol 675 MovieClip Frame 1
if (null) {
}
stop();
this.killSig = false;
Symbol 675 MovieClip Frame 2
if (null) {
}
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
Symbol 675 MovieClip Frame 15
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 675 MovieClip Frame 16
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 675 MovieClip Frame 25
if (null) {
}
_root.money = Number(_root.money) + 100;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
_root.Gscore.scoreView(_root.score);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 682 MovieClip Frame 1
if (null) {
}
stop();
this.killSig = false;
Symbol 682 MovieClip Frame 2
if (null) {
}
this.MC_checkTime.gotoAndStop(1);
this.killSig = true;
Symbol 682 MovieClip Frame 15
if (null) {
}
_root.isFire = false;
_root["door" + _parent.wigNumb].gotoAndStop(1);
_root.countWig--;
_root.isOpen = false;
_parent.isOpen = false;
Symbol 682 MovieClip Frame 16
if (null) {
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
this.gotoAndPlay(this._currentframe + 4);
} else if (_root.myLevel >= 5) {
this.gotoAndPlay(this._currentframe + 8);
}
Symbol 682 MovieClip Frame 25
if (null) {
}
_root.money = Number(_root.money) - 100;
_root.Gmoney.moneyView(Math.floor(_root.money / 100));
_root.Gscore.scoreView(_root.score);
_root.oPen();
this.killSig = false;
_parent.gotoAndStop(1);
Symbol 683 MovieClip Frame 1
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Instance of Symbol 279 MovieClip "standardWig" in Symbol 683 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
this.MC_checkTime.gotoAndStop(1);
}
Symbol 683 MovieClip Frame 2
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 3
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 4
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 5
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 6
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 7
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 8
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 9
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 10
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 11
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 12
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 13
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 14
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 15
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 16
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 17
if (null) {
}
stop();
this.swapDepths(this.myDepth);
if (((_root.heartSignal > 0) && (_root.enemyNumb > 0)) || (_root.isShowHeart == true)) {
this.gotoAndStop(this._currentframe - 3);
} else if ((_root.heartSignal > 0) && (_root.enemyNumb <= 0)) {
this.gotoAndStop(this._currentframe + 1);
}
Symbol 683 MovieClip Frame 18
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Instance of Symbol 669 MovieClip "oneWig" in Symbol 683 MovieClip Frame 18
onClipEvent (load) {
if (null) {
}
this.gotoAndPlay("shoot");
}
Symbol 683 MovieClip Frame 19
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 683 MovieClip Frame 20
if (null) {
}
stop();
this.swapDepths(this.myDepth);
Symbol 687 MovieClip Frame 1
if (null) {
}
stop();
Symbol 687 MovieClip Frame 2
if (null) {
}
stop();
Symbol 697 Button
on (keyPress "<Right>") {
if (null) {
}
_root.checkWin();
if ((this.myName1 < (_root.windowX - 1)) && (_root.gameSig == true)) {
this.myName1 = this.myName1 + 1;
this._x = this._x + _root.gapX;
if (this.myName1 == 0) {
_root[_root.myGun].gotoAndStop("left2");
} else if (this.myName1 == 1) {
_root[_root.myGun].gotoAndStop("mid");
} else if (this.myName1 == 2) {
_root[_root.myGun].gotoAndStop("right2");
}
}
}
on (keyPress "<Left>") {
if (null) {
}
_root.checkWin();
if ((this.myName1 > 0) && (_root.gameSig == true)) {
this.myName1 = this.myName1 - 1;
this._x = this._x - _root.gapX;
if (this.myName1 == 0) {
_root[_root.myGun].gotoAndStop("left2");
} else if (this.myName1 == 1) {
_root[_root.myGun].gotoAndStop("mid");
} else if (this.myName1 == 2) {
_root[_root.myGun].gotoAndStop("right2");
}
}
}
on (keyPress "<Up>") {
if (null) {
}
_root.checkWin();
if ((this.myName2 > 0) && (_root.gameSig == true)) {
this.myName2 = this.myName2 - 1;
this._y = this._y - _root.gapY;
}
}
on (keyPress "<Down>") {
if (null) {
}
_root.checkWin();
if ((this.myName2 < _root.windowY) && (_root.gameSig == true)) {
this.myName2 = this.myName2 + 1;
this._y = this._y + _root.gapY;
}
}
on (keyPress "<Space>") {
if (null) {
}
_root.checkWin();
if (((_root.isFire == false) && (_root["wigs" + this.cursorNumb].isOpen == true)) && (_root.gameSig == true)) {
if (_root.isReload == true) {
_root[_root.myGun].rifle.play();
if (_root["wigs" + this.cursorNumb].oneWig.killSig == false) {
_root["wigs" + this.cursorNumb].oneWig.TF = _root["wigs" + this.cursorNumb].oneWig._totalframes;
_root["wigs" + this.cursorNumb].oneWig.CF = _root["wigs" + this.cursorNumb].oneWig._currentframe;
_root["wigs" + this.cursorNumb].oneWig.gotoAndPlay(2);
}
if (this.myName1 == 0) {
if (_root.leaves1._currentframe == 1) {
_root.leaves1.gotoAndPlay(2);
}
} else if (this.myName1 == 1) {
if (_root.leaves1._currentframe == 1) {
_root.leaves1.gotoAndPlay(2);
}
if (_root.leaves2._currentframe == 1) {
_root.leaves2.gotoAndPlay(2);
}
if (_root.MC_brownBirds._currentframe == 1) {
_root.MC_brownBirds.gotoAndPlay(2);
}
} else if (this.myName1 == 2) {
if (_root.leaves2._currentframe == 1) {
_root.leaves2.gotoAndPlay(2);
}
}
} else if (_root.isReload == false) {
trace("\uB9AC\uB85C\uB4DC\uB098 \uD558\uBA74\uC11C \uC3F4\uB77C \uC784\uB9C8~~~");
}
} else if (((_root.isFire == true) || (_root["wigs" + this.cursorNumb].isOpen == false)) && (_root.gameSig == true)) {
trace("\uC9C0\uAE08 \uC3D8\uACE0 \uC788\uC790\uB108... \uC7A0\uB9CC \uAE30\uB458\uB824\uBD10...\u3161\u3161;");
if (_root.isReload == true) {
_root[_root.myGun].rifle.play();
} else if (_root.isReload == false) {
trace("\uB9AC\uB85C\uB4DC\uB098 \uD558\uBA74\uC11C \uC3F4\uB77C \uC784\uB9C8~~~");
}
}
}
Symbol 698 MovieClip Frame 1
if (null) {
}
stop();
Instance of Symbol 695 MovieClip "myTarget" in Symbol 698 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
this._alpha = 0;
}
Symbol 702 Button
on (release) {
if (null) {
}
_root.isReload = true;
if (_root.isItem1 == true) {
_root.jar2.Sig = true;
_root.jar2.bullets.gotoAndPlay(1);
_root.jar2.gotoAndPlay(2);
} else {
_root.jar.Sig = true;
_root.jar.bullets.gotoAndPlay(1);
_root.jar.gotoAndPlay(2);
}
}
Symbol 704 MovieClip Frame 1
if (null) {
}
stop();
Symbol 704 MovieClip Frame 2
if (null) {
}
if (_root.enemyNumb <= 0) {
_root.oPen();
this.gotoAndStop(1);
}
if (_root.myLevel == 1) {
myWinNumb = 3;
} else if (_root.myLevel == 2) {
myWinNumb = 5;
} else if (_root.myLevel == 3) {
myWinNumb = 7;
} else if (_root.myLevel >= 4) {
myWinNumb = 14;
}
Symbol 704 MovieClip Frame 3
if (null) {
}
_root["wigs" + this.myWinNumb].gotoAndStop((_root.myWigNumber = random(16) + 2));
_root["door" + this.myWinNumb].gotoAndStop(2);
_root["wigs" + this.myWinNumb].isOpen = true;
if (((_root.myWigNumber > 1) && (_root.myWigNumber < 9)) || (_root.myWigNumber > 15)) {
_root["wigs" + this.myWinNumb].oneWig.MC_checkTime.gotoAndPlay(2);
} else if ((_root.myWigNumber > 8) && (_root.myWigNumber < 16)) {
if (_root.isBoss == false) {
_root["wigs" + this.myWinNumb].oneWig.gotoAndPlay("shoot");
} else if ((_root.isBoss == true) && (_root.bossOpenNumb <= 0)) {
_root["wigs" + this.myWinNumb].gotoAndStop("boss");
_root["wigs" + this.myWinNumb].oneWig.gotoAndPlay("shoot");
_root.BossNumb++;
} else if ((_root.isBoss == true) && (_root.bossOpenNumb > 0)) {
_root["wigs" + this.myWinNumb].gotoAndStop(random(6) + 7);
_root["wigs" + this.myWinNumb].oneWig.gotoAndPlay("shoot");
}
}
_root.countWig++;
if (_root.countWig >= openNumb) {
_root.isOpen = true;
this.onEnterFrame = null;
}
this.myWinNumb--;
Symbol 704 MovieClip Frame 5
if (null) {
}
if (_root.myLevel < 5) {
}
Symbol 704 MovieClip Frame 12
if (null) {
}
if (this.myWinNumb > 0) {
this.gotoAndPlay(3);
} else if (this.myWinNumb < 1) {
this.play();
}
Symbol 704 MovieClip Frame 100
if (null) {
}
_root.oPen();
this.gotoAndStop(1);
Symbol 705 MovieClip Frame 1
if (null) {
}
stop();
Symbol 705 MovieClip Frame 2
if (null) {
}
if (_root.enemyNumb <= 0) {
_root.oPen();
this.gotoAndStop(1);
}
var myFirstWinNumb = 1;
if (_root.myLevel == 1) {
var myWinNumb = 3;
} else if (_root.myLevel == 2) {
var myWinNumb = 5;
} else if (_root.myLevel == 3) {
var myWinNumb = 7;
} else if (_root.myLevel >= 4) {
var myWinNumb = 14;
}
Symbol 705 MovieClip Frame 3
if (null) {
}
_root["wigs" + this.myFirstWinNumb].gotoAndStop((_root.myWigNumber = random(2) + 19));
_root["wigs" + this.myFirstWinNumb].oneWig.gotoAndPlay(1);
_root["door" + this.myFirstWinNumb].gotoAndStop(2);
_root["wigs" + this.myFirstWinNumb].isOpen = true;
trace("this.myFirstWinNumb : " + this.myFirstWinNumb);
_root["wigs" + this.myFirstWinNumb].oneWig.MC_checkTime.gotoAndPlay(2);
_root.countWig++;
if (_root.countWig >= openNumb) {
_root.isOpen = true;
this.onEnterFrame = null;
}
this.myFirstWinNumb++;
Symbol 705 MovieClip Frame 7
if (null) {
}
if (this.myFirstWinNumb <= this.myWinNumb) {
this.gotoAndPlay(3);
} else if (this.myFirstWinNumb > this.myWinNumb) {
this.play();
}
Symbol 705 MovieClip Frame 100
if (null) {
}
_root.oPen();
this.gotoAndStop(1);
Symbol 707 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 707 MovieClip Frame 2
if (null) {
}
this.play();
Symbol 707 MovieClip Frame 11
if (null) {
}
this.removeMovieClip();
Symbol 710 MovieClip Frame 11
if (null) {
}
if (_root.isItem1 == true) {
_root.jar2.gotoAndPlay(2);
_root.fireGun._visible = false;
} else {
_root.jar.gotoAndPlay(2);
_root.machineGun._visible = false;
}
Symbol 710 MovieClip Frame 15
if (null) {
}
BgMusic = new Sound();
BgMusic.attachSound("BGMusic");
BgMusic.start(0, 999);
this.gotoAndStop(1);
Symbol 710 MovieClip Frame 21
if (null) {
}
this.stop();
Symbol 716 MovieClip Frame 1
if (null) {
}
if (_root.userLevel < 2) {
this.gotoAndStop("LevelOne");
} else if (_root.userLevel == 2) {
this.gotoAndStop("LevelTwo");
} else {
this.gotoAndStop("LevelThree");
}
Symbol 716 MovieClip Frame 2
if (null) {
}
if (_root.bossKilledNumb == 1) {
this.gotoAndStop(this._currentframe + 2);
} else if (_root.bossKilledNumb == 2) {
this.gotoAndStop(this._currentframe + 1);
} else if (_root.bossKilledNumb == 0) {
this.gotoAndStop(this._currentframe + 3);
}
trace("_root.bossKilledNumb : " + _root.bossKilledNumb);
Symbol 716 MovieClip Frame 6
if (null) {
}
if (_root.bossKilledNumb == 1) {
this.gotoAndStop(this._currentframe + 4);
} else if (_root.bossKilledNumb == 2) {
this.gotoAndStop(this._currentframe + 3);
} else if (_root.bossKilledNumb == 3) {
this.gotoAndStop(this._currentframe + 2);
} else if (_root.bossKilledNumb == 4) {
this.gotoAndStop(this._currentframe + 1);
} else if (_root.bossKilledNumb == 0) {
this.gotoAndStop(this._currentframe + 5);
}
Symbol 716 MovieClip Frame 12
if (null) {
}
if (_root.bossKilledNumb == 1) {
this.gotoAndStop(this._currentframe + 6);
} else if (_root.bossKilledNumb == 2) {
this.gotoAndStop(this._currentframe + 5);
} else if (_root.bossKilledNumb == 3) {
this.gotoAndStop(this._currentframe + 4);
} else if (_root.bossKilledNumb == 4) {
this.gotoAndStop(this._currentframe + 3);
} else if (_root.bossKilledNumb == 5) {
this.gotoAndStop(this._currentframe + 2);
} else if (_root.bossKilledNumb == 6) {
this.gotoAndStop(this._currentframe + 1);
} else if (_root.bossKilledNumb == 0) {
this.gotoAndStop(this._currentframe + 7);
}
Symbol 716 MovieClip Frame 20
if (null) {
}
this.gotoAndStop(1);
Symbol 737 MovieClip Frame 1
if (null) {
}
stop();
Symbol 757 MovieClip Frame 13
if (null) {
}
this.stop();
Symbol 758 MovieClip Frame 71
if (null) {
}
this.stop();
Symbol 760 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 760 MovieClip Frame 58
if (null) {
}
this.gotoAndStop(1);
Symbol 765 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 765 MovieClip Frame 47
if (null) {
}
this.gotoAndStop(1);
Symbol 766 MovieClip Frame 1
if (null) {
}
this.stop();
Instance of Symbol 758 MovieClip in Symbol 766 MovieClip Frame 2
onClipEvent (load) {
if (null) {
}
this.leaf._visible = false;
}
Instance of Symbol 758 MovieClip in Symbol 766 MovieClip Frame 2
onClipEvent (load) {
if (null) {
}
this.leaf._visible = false;
}
Instance of Symbol 758 MovieClip in Symbol 766 MovieClip Frame 8
onClipEvent (load) {
if (null) {
}
this.leaf._visible = false;
}
Instance of Symbol 758 MovieClip in Symbol 766 MovieClip Frame 8
onClipEvent (load) {
if (null) {
}
this.leaf._visible = false;
}
Instance of Symbol 758 MovieClip in Symbol 766 MovieClip Frame 14
onClipEvent (load) {
if (null) {
}
this.leaf._visible = false;
}
Instance of Symbol 758 MovieClip in Symbol 766 MovieClip Frame 14
onClipEvent (load) {
if (null) {
}
this.leaf._visible = false;
}
Symbol 766 MovieClip Frame 78
if (null) {
}
this.gotoAndStop(1);
Symbol 775 MovieClip Frame 18
if (null) {
}
this.stop();
removeMovieClip(this);
Symbol 795 MovieClip Frame 1
if (null) {
}
stop();
_root.shakeWin(3);
Symbol 795 MovieClip Frame 2
if (null) {
}
stop();
_root.shakeWin(5);
Symbol 797 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 797 MovieClip Frame 2
if (null) {
}
_root.gameSig = false;
var an = 1;
while (an < 11) {
if (((_root["wigs" + an]._currentframe > 8) && (_root["wigs" + an]._currentframe < 16)) || (_root["wigs" + an]._currentframe == 18)) {
_root["wigs" + an].oneWig.stop();
} else if ((_root["wigs" + an]._currentframe >= 1) && (_root["wigs" + an]._currentframe < 9)) {
_root["wigs" + an].oneWig.MC_checkTime.stop();
}
an++;
}
Instance of Symbol 795 MovieClip "window" in Symbol 797 MovieClip Frame 2
onClipEvent (load) {
if (null) {
}
if (_root.enemyNumb > 0) {
this._x = random(271) - 135;
this._y = random(201) - 100;
}
}
Symbol 797 MovieClip Frame 35
if (null) {
}
_root["wigs" + this.numb].gotoAndStop(1);
_root["wigs" + this.numb].isOpen = false;
_root["door" + this.numb].gotoAndStop(1);
_root.countWig--;
trace(_root.lifeNumb);
if (_root.lifeNumb <= 0) {
_root.gameSig = false;
_root.gameOverCount();
} else if (_root.lifeNumb > 0) {
_root.isOpen = false;
_root.gameSig = true;
_root.oPen();
trace("open");
}
this.gotoAndStop(1);
var kn = 1;
while (kn < 11) {
if (((_root["wigs" + kn]._currentframe > 8) && (_root["wigs" + kn]._currentframe < 16)) || (_root["wigs" + kn]._currentframe == 18)) {
_root["wigs" + kn].oneWig.play();
} else if ((_root["wigs" + kn]._currentframe >= 1) && (_root["wigs" + kn]._currentframe < 9)) {
_root["wigs" + kn].oneWig.MC_checkTime.play();
}
kn++;
}
_root.bossEnergy._x = _root.bossEnergy.myX;
_root.bossEnergy._y = _root.bossEnergy.myY;
Instance of Symbol 800 MovieClip "gBonus" in Symbol 801 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
function bonusView(bns) {
var s4 = Math.floor((bns % 10000) / 1000);
var s3 = Math.floor((bns % 1000) / 100);
var s2 = Math.floor((bns % 100) / 10);
var s1 = Math.floor(bns % 10);
i = 1;
while (i <= 4) {
this["n" + i].gotoAndStop(eval ("s" + i) + 1);
i++;
}
if ((_root.myLevel > 2) && (_root.myLevel < 5)) {
_root.myTimeInt = 250;
} else if (_root.myLevel >= 5) {
_root.myTimeInt = 200;
}
}
i = 1;
while (i <= 4) {
this["n" + i].stop();
i++;
}
this.bonusView(_parent.var_bonus);
}
Symbol 802 MovieClip Frame 1
if (null) {
}
stop();
Symbol 802 MovieClip Frame 2
if (null) {
}
_root.gameSig = false;
_root.initMC();
this.var_bonus = 0;
var an = 1;
while (an < 11) {
_root["wigs" + an].oneWig.stop();
_root["wigs" + an].oneWig.MC_checkTime.stop();
an++;
}
Symbol 802 MovieClip Frame 32
if (null) {
}
stop();
_root.acquiredBonus();
Symbol 802 MovieClip Frame 82
if (null) {
}
this._visible = false;
_root.gameSig = true;
_root.play();
this.var_bonus = 0;
this.gotoAndStop(1);
Symbol 804 Button
on (release) {
if (null) {
}
_root.sndvolume.setVolume(0);
nextFrame();
}
Symbol 806 Button
on (release) {
if (null) {
}
_root.sndvolume.setVolume(100);
prevFrame();
}
Symbol 807 MovieClip Frame 1
if (null) {
}
stop();
Symbol 820 MovieClip Frame 1
if (null) {
}
stop();
Symbol 820 MovieClip Frame 2
if (null) {
}
this.play();
_root.gameSig = false;
Instance of Symbol 819 MovieClip "mission" in Symbol 820 MovieClip Frame 2
onClipEvent (load) {
if (null) {
}
if (_root.myLevel <= 10) {
this.gotoAndStop(_root.myLevel);
} else {
this.gotoAndStop(11);
}
}
Symbol 820 MovieClip Frame 70
if (null) {
}
this.gotoAndStop(1);
_root.countWig--;
_root.gameSig = true;
_root.oPen();
_root.myBird();
Symbol 825 Button
on (release, keyPress "<Enter>") {
if (null) {
}
_root.mySendScore();
this._parent._visible = false;
}
Symbol 838 MovieClip Frame 1
if (null) {
}
this._visible = 0;
stop();
Symbol 846 Button
on (release) {
if (null) {
}
_root.gotoAndStop("main");
var nz = 1;
while (nz < 15) {
removeMovieClip(_root["wigs" + nz]);
nz++;
}
removeMovieClip(_root.swapSkin);
removeMovieClip(_root.MC_gameOver);
}
Instance of Symbol 832 MovieClip "submitBtn" in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
this._visible = false;
}
Instance of Symbol 837 MovieClip "scoreView" in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
function scoreView(score) {
this._parent._visible = 1;
var s7 = (Math.floor((score % 10000000) / 1000000) + 1);
var s6 = (Math.floor((score % 1000000) / 100000) + 1);
var s5 = (Math.floor((score % 100000) / 10000) + 1);
var s4 = (Math.floor((score % 10000) / 1000) + 1);
var s3 = (Math.floor((score % 1000) / 100) + 1);
var s2 = (Math.floor((score % 100) / 10) + 1);
var s1 = (Math.floor(score % 10) + 1);
if (score > 0) {
snd.start(0, 999);
}
num1.gotoAndStop(1);
num1.play();
num1.onEnterFrame = function () {
if (this._currentframe == (s1 + 1)) {
this.stop();
if (score < 10) {
snd.stop();
}
num2.gotoAndStop(1);
num2.play();
num2.onEnterFrame = function () {
if (this._currentframe == (s2 + 1)) {
this.stop();
if (score < 100) {
snd.stop();
}
num3.gotoAndStop(1);
num3.play();
num3.onEnterFrame = function () {
if (this._currentframe == (s3 + 1)) {
this.stop();
if (score < 1000) {
snd.stop();
}
num4.gotoAndStop(1);
num4.play();
num4.onEnterFrame = function () {
if (this._currentframe == (s4 + 1)) {
trace(1);
this.stop();
if (score < 10000) {
snd.stop();
}
num5.gotoAndStop(1);
num5.play();
num5.onEnterFrame = function () {
if (this._currentframe == (s5 + 1)) {
this.stop();
if (score < 100000) {
snd.stop();
}
num6.gotoAndStop(1);
num6.play();
num6.onEnterFrame = function () {
if (this._currentframe == (s6 + 1)) {
this.stop();
if (score < 100000) {
snd.stop();
}
num7.gotoAndStop(1);
num7.play();
num7.onEnterFrame = function () {
if (this._currentframe == (s7 + 1)) {
this.stop();
this._parent.snd.stop("dding");
this._parent._parent.scoreItemMovie.view();
this.onEnterFrame = null;
_root.MC_gameOver.gotoAndPlay("replay");
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
this.onEnterFrame = null;
}
};
}
i = 1;
while (i < 8) {
this["num" + i].gotoAndStop(1);
i++;
}
snd = new Sound(this);
snd.attachSound("dding");
}
Instance of Symbol 838 MovieClip "scoreItemMovie" in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
view = function () {
trace("item");
if (_root.isItem3 == 1) {
this.gotoAndStop(2);
} else if (_root.isItem4 == 1) {
this.gotoAndStop(3);
} else if (_root.isItem5 == 1) {
this.gotoAndStop(4);
} else {
this._visible = 0;
return(0);
}
this.onEnterFrame = function () {
this.i++;
if (this._i > 6) {
this._visible = 1;
}
if ((this.i >= 6) && (this.i < 12)) {
if ((this.i % 2) == 0) {
this._visible = 0;
} else {
this._visible = 1;
}
} else if (this.i == 24) {
_parent.scoreView.scoreView(_root.score);
this.onEnterFrame = null;
}
};
};
}
Symbol 849 Button
on (release, keyPress "<Enter>") {
if (null) {
}
_root.gameSig = true;
_root.gotoAndStop("main");
trace("wow");
this._visible = false;
}
Symbol 850 MovieClip Frame 1
if (null) {
}
stop();
Symbol 850 MovieClip Frame 2
if (null) {
}
_root.opening.stop();
_root.opening.onEnterFrame = null;
_root.pattern.stop();
_root.pattern2.stop();
_root.MC_bird.onEnterFrame = null;
this.swapDepths(990782);
var ns = 1;
while (ns < 15) {
_root["wigs" + ns].oneWig.stop();
ns++;
}
Symbol 850 MovieClip Frame 40
if (null) {
}
this.stop();
stopAllSounds();
tempScore = _root.score;
if (_root.isItem3) {
_root.score = _root.score * 2;
} else if (_root.isItem4) {
_root.score = _root.score * 3;
}
this.finalScoreView.scoreView.scoreView(this.tempscore);
Symbol 850 MovieClip Frame 66
if (null) {
}
this.stop();
Symbol 850 MovieClip Frame 68
if (null) {
}
this.play();
Symbol 850 MovieClip Frame 85
if (null) {
}
Symbol 850 MovieClip Frame 100
if (null) {
}
this.stop();
_root.gotoAndStop("main");
var nz = 1;
while (nz < 15) {
removeMovieClip(_root["wigs" + nz]);
nz++;
}
removeMovieClip(_root.swapSkin);
Symbol 854 Button
on (release) {
if (null) {
}
getURL ("http://www.puppyred.com", "_blank");
}
Symbol 861 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 861 MovieClip Frame 8
if (null) {
}
this.stop();
Symbol 864 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 864 MovieClip Frame 8
if (null) {
}
this.stop();
Symbol 868 MovieClip Frame 1
if (null) {
}
stop();
Symbol 868 MovieClip Frame 2
if (null) {
}
stop();
this.bullet1.gotoAndPlay(2);
Symbol 868 MovieClip Frame 3
if (null) {
}
stop();
this.bullet2.gotoAndPlay(2);
Symbol 868 MovieClip Frame 4
if (null) {
}
stop();
this.bullet3.gotoAndPlay(2);
Symbol 868 MovieClip Frame 5
if (null) {
}
stop();
this.bullet4.gotoAndPlay(2);
Symbol 868 MovieClip Frame 6
if (null) {
}
stop();
this.bullet5.gotoAndPlay(2);
Symbol 868 MovieClip Frame 7
if (null) {
}
stop();
this.bullet6.gotoAndPlay(2);
Symbol 868 MovieClip Frame 8
if (null) {
}
stop();
this.bullet7.gotoAndPlay(2);
Symbol 868 MovieClip Frame 9
if (null) {
}
stop();
this.bullet8.gotoAndPlay(2);
Symbol 868 MovieClip Frame 10
if (null) {
}
stop();
this.bullet9.gotoAndPlay(2);
Symbol 868 MovieClip Frame 11
if (null) {
}
stop();
this.bullet10.gotoAndPlay(2);
_parent.Sig = false;
_root.isReload = false;
Symbol 869 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 869 MovieClip Frame 2
if (null) {
}
this.play();
Symbol 869 MovieClip Frame 15
if (null) {
}
this.stop();
Symbol 870 MovieClip Frame 1
if (null) {
}
stop();
Symbol 870 MovieClip Frame 2
if (null) {
}
stop();
Symbol 870 MovieClip Frame 3
if (null) {
}
stop();
Symbol 870 MovieClip Frame 4
if (null) {
}
stop();
Instance of Symbol 893 MovieClip "s1" in Symbol 894 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 893 MovieClip "s10" in Symbol 894 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 893 MovieClip "num" in Symbol 895 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
this.stop();
}
Instance of Symbol 894 MovieClip "num" in Symbol 895 MovieClip Frame 2
onClipEvent (load) {
if (null) {
}
this.stop();
}
Symbol 901 MovieClip Frame 1
if (null) {
}
stop();
Symbol 901 MovieClip Frame 2
if (null) {
}
stop();
this.bullet1.gotoAndPlay(2);
Symbol 901 MovieClip Frame 3
if (null) {
}
stop();
this.bullet2.gotoAndPlay(2);
Symbol 901 MovieClip Frame 4
if (null) {
}
stop();
this.bullet3.gotoAndPlay(2);
Symbol 901 MovieClip Frame 5
if (null) {
}
stop();
this.bullet4.gotoAndPlay(2);
Symbol 901 MovieClip Frame 6
if (null) {
}
stop();
this.bullet5.gotoAndPlay(2);
Symbol 901 MovieClip Frame 7
if (null) {
}
stop();
this.bullet6.gotoAndPlay(2);
Symbol 901 MovieClip Frame 8
if (null) {
}
stop();
this.bullet7.gotoAndPlay(2);
Symbol 901 MovieClip Frame 9
if (null) {
}
stop();
this.bullet8.gotoAndPlay(2);
Symbol 901 MovieClip Frame 10
if (null) {
}
stop();
this.bullet9.gotoAndPlay(2);
Symbol 901 MovieClip Frame 11
if (null) {
}
stop();
this.bullet10.gotoAndPlay(2);
Symbol 901 MovieClip Frame 12
if (null) {
}
stop();
this.bullet11.gotoAndPlay(2);
Symbol 901 MovieClip Frame 13
if (null) {
}
stop();
this.bullet12.gotoAndPlay(2);
Symbol 901 MovieClip Frame 14
if (null) {
}
stop();
this.bullet13.gotoAndPlay(2);
Symbol 901 MovieClip Frame 15
if (null) {
}
stop();
this.bullet14.gotoAndPlay(2);
Symbol 901 MovieClip Frame 16
if (null) {
}
stop();
this.bullet15.gotoAndPlay(2);
Symbol 901 MovieClip Frame 17
if (null) {
}
stop();
this.bullet16.gotoAndPlay(2);
Symbol 901 MovieClip Frame 18
if (null) {
}
stop();
this.bullet17.gotoAndPlay(2);
Symbol 901 MovieClip Frame 19
if (null) {
}
stop();
this.bullet18.gotoAndPlay(2);
Symbol 901 MovieClip Frame 20
if (null) {
}
stop();
this.bullet19.gotoAndPlay(2);
Symbol 901 MovieClip Frame 21
if (null) {
}
stop();
this.bullet20.gotoAndPlay(2);
_parent.Sig = false;
_root.isReload = false;
Symbol 902 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 902 MovieClip Frame 2
if (null) {
}
this.play();
Symbol 902 MovieClip Frame 15
if (null) {
}
this.stop();
Symbol 908 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 908 MovieClip Frame 21
if (null) {
}
this.gotoAndStop(1);
Symbol 919 MovieClip Frame 10
if (null) {
}
this.stop();
Symbol 920 MovieClip Frame 1
if (null) {
}
this.stop();
Symbol 920 MovieClip Frame 18
if (null) {
}
this.bonus100.gotoAndPlay(2);
_root.score = _root.score + 100;
_root.Gscore.scoreView(_root.score);
this.gotoAndStop(2);
Symbol 922 Button
on (keyPress "<Right>") {
if (null) {
}
_root.checkWin();
if ((this.myName1 < (_root.windowX - 1)) && (_root.gameSig == true)) {
this.myName1 = this.myName1 + 1;
this._x = this._x + _root.gapX;
if (this.myName1 == 0) {
_root[_root.myGun].gotoAndStop("left1");
} else if (this.myName1 == 1) {
_root[_root.myGun].gotoAndStop("left2");
} else if (this.myName1 == 2) {
_root[_root.myGun].gotoAndStop("mid");
} else if (this.myName1 == 3) {
_root[_root.myGun].gotoAndStop("right2");
} else if (this.myName1 == 4) {
_root[_root.myGun].gotoAndStop("right1");
}
}
}
on (keyPress "<Left>") {
if (null) {
}
_root.checkWin();
if ((this.myName1 > 0) && (_root.gameSig == true)) {
this.myName1 = this.myName1 - 1;
this._x = this._x - _root.gapX;
if (this.myName1 == 0) {
_root[_root.myGun].gotoAndStop("left1");
} else if (this.myName1 == 1) {
_root[_root.myGun].gotoAndStop("left2");
} else if (this.myName1 == 2) {
_root[_root.myGun].gotoAndStop("mid");
} else if (this.myName1 == 3) {
_root[_root.myGun].gotoAndStop("right2");
} else if (this.myName1 == 4) {
_root[_root.myGun].gotoAndStop("right1");
}
}
}
on (keyPress "<Up>") {
if (null) {
}
_root.checkWin();
if ((this.myName2 > 0) && (_root.gameSig == true)) {
this.myName2 = this.myName2 - 1;
this._y = this._y - _root.gapY;
}
}
on (keyPress "<Down>") {
if (null) {
}
_root.checkWin();
if ((this.myName2 < _root.windowY) && (_root.gameSig == true)) {
this.myName2 = this.myName2 + 1;
this._y = this._y + _root.gapY;
}
}
on (keyPress "<Space>") {
if (null) {
}
_root.checkWin();
if (((_root.isFire == false) && (_root["wigs" + this.cursorNumb].isOpen == true)) && (_root.gameSig == true)) {
if (_root.isReload == true) {
_root[_root.myGun].rifle.play();
if (_root["wigs" + this.cursorNumb].oneWig.killSig == false) {
_root["wigs" + this.cursorNumb].oneWig.TF = _root["wigs" + this.cursorNumb].oneWig._totalframes;
_root["wigs" + this.cursorNumb].oneWig.CF = _root["wigs" + this.cursorNumb].oneWig._currentframe;
_root["wigs" + this.cursorNumb].oneWig.gotoAndPlay(2);
}
if (this.myName1 < 2) {
if (_root.leaves1._currentframe == 1) {
_root.leaves1.gotoAndPlay(2);
}
} else if (this.myName1 == 2) {
if (_root.leaves1._currentframe == 1) {
_root.leaves1.gotoAndPlay(2);
}
if (_root.leaves2._currentframe == 1) {
_root.leaves2.gotoAndPlay(2);
}
} else if (this.myName1 > 2) {
if (_root.leaves2._currentframe == 1) {
_root.leaves2.gotoAndPlay(2);
}
}
_root.jar.bullets.play();
} else if (_root.isReload == false) {
trace("\uB9AC\uB85C\uB4DC\uB098 \uD558\uBA74\uC11C \uC3F4\uB77C \uC784\uB9C8~~~");
}
} else if (((_root.isFire == true) || (_root["wigs" + this.cursorNumb].isOpen == false)) && (_root.gameSig == true)) {
trace("\uC9C0\uAE08 \uC3D8\uACE0 \uC788\uC790\uB108... \uC7A0\uB9CC \uAE30\uB458\uB824\uBD10...\u3161\u3161;");
if (_root.isReload == true) {
_root[_root.myGun].rifle.play();
} else if (_root.isReload == false) {
trace("\uB9AC\uB85C\uB4DC\uB098 \uD558\uBA74\uC11C \uC3F4\uB77C \uC784\uB9C8~~~");
}
}
}
Instance of Symbol 695 MovieClip "myTarget" in Symbol 923 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
this._alpha = 0;
}
Symbol 923 MovieClip Frame 9
if (null) {
}
this.gotoAndPlay(1);
Symbol 924 Button
on (keyPress "<Right>") {
if (null) {
}
_root.checkWin();
if ((this.myName1 < (_root.windowX - 1)) && (_root.gameSig == true)) {
this.myName1 = this.myName1 + 1;
this._x = this._x + _root.gapX;
if (this.myName1 == 0) {
_root[_root.myGun].gotoAndStop("leftEnd");
} else if (this.myName1 == 1) {
_root[_root.myGun].gotoAndStop("left1");
} else if (this.myName1 == 2) {
_root[_root.myGun].gotoAndStop("left2");
} else if (this.myName1 == 3) {
_root[_root.myGun].gotoAndStop("mid");
} else if (this.myName1 == 4) {
_root[_root.myGun].gotoAndStop("right2");
} else if (this.myName1 == 5) {
_root[_root.myGun].gotoAndStop("right1");
} else if (this.myName1 > 5) {
_root[_root.myGun].gotoAndStop("rightEnd");
}
}
}
on (keyPress "<Left>") {
if (null) {
}
_root.checkWin();
if ((this.myName1 > 0) && (_root.gameSig == true)) {
this.myName1 = this.myName1 - 1;
this._x = this._x - _root.gapX;
if (this.myName1 == 0) {
_root[_root.myGun].gotoAndStop("leftEnd");
} else if (this.myName1 == 1) {
_root[_root.myGun].gotoAndStop("left1");
} else if (this.myName1 == 2) {
_root[_root.myGun].gotoAndStop("left2");
} else if (this.myName1 == 3) {
_root[_root.myGun].gotoAndStop("mid");
} else if (this.myName1 == 4) {
_root[_root.myGun].gotoAndStop("right2");
} else if (this.myName1 == 5) {
_root[_root.myGun].gotoAndStop("right1");
} else if (this.myName1 > 5) {
_root[_root.myGun].gotoAndStop("rightEnd");
}
}
}
on (keyPress "<Up>") {
if (null) {
}
_root.checkWin();
if ((this.myName2 > 0) && (_root.gameSig == true)) {
this.myName2 = this.myName2 - 1;
this._y = this._y - _root.gapY;
}
}
on (keyPress "<Down>") {
if (null) {
}
_root.checkWin();
if ((this.myName2 < _root.windowY) && (_root.gameSig == true)) {
this.myName2 = this.myName2 + 1;
this._y = this._y + _root.gapY;
}
}
on (keyPress "<Space>") {
if (null) {
}
_root.checkWin();
if (((_root.isFire == false) && (_root["wigs" + this.cursorNumb].isOpen == true)) && (_root.gameSig == true)) {
if (_root.isReload == true) {
_root[_root.myGun].rifle.play();
if (_root["wigs" + this.cursorNumb].oneWig.killSig == false) {
_root["wigs" + this.cursorNumb].oneWig.TF = _root["wigs" + this.cursorNumb].oneWig._totalframes;
_root["wigs" + this.cursorNumb].oneWig.CF = _root["wigs" + this.cursorNumb].oneWig._currentframe;
_root["wigs" + this.cursorNumb].oneWig.gotoAndPlay(2);
}
if (this.myName1 < 3) {
if (_root.leaves1._currentframe == 1) {
_root.leaves1.gotoAndPlay(2);
}
} else if (this.myName1 == 3) {
if (_root.leaves1._currentframe == 1) {
_root.leaves1.gotoAndPlay(2);
}
if (_root.leaves2._currentframe == 1) {
_root.leaves2.gotoAndPlay(2);
}
} else if (this.myName1 > 3) {
if (_root.leaves2._currentframe == 1) {
_root.leaves2.gotoAndPlay(2);
}
}
_root.jar.bullets.play();
} else if (_root.isReload == false) {
trace("\uB9AC\uB85C\uB4DC\uB098 \uD558\uBA74\uC11C \uC3F4\uB77C \uC784\uB9C8~~~");
}
} else if (((_root.isFire == true) || (_root["wigs" + this.cursorNumb].isOpen == false)) && (_root.gameSig == true)) {
trace("\uC9C0\uAE08 \uC3D8\uACE0 \uC788\uC790\uB108... \uC7A0\uB9CC \uAE30\uB458\uB824\uBD10...\u3161\u3161;");
if (_root.isReload == true) {
_root[_root.myGun].rifle.play();
} else if (_root.isReload == false) {
trace("\uB9AC\uB85C\uB4DC\uB098 \uD558\uBA74\uC11C \uC3F4\uB77C \uC784\uB9C8~~~");
}
}
}
Instance of Symbol 695 MovieClip "myTarget" in Symbol 925 MovieClip Frame 1
onClipEvent (load) {
if (null) {
}
this._alpha = 0;
}
Symbol 925 MovieClip Frame 9
if (null) {
}
this.gotoAndPlay(1);