Frame 1
Frame 2
function createCloseButton() {
trace(_root.close_mc);
_root.help_mc.close_mc.onRelease = function () {
_root.gotoAndStop(4);
};
_root.help_mc.close_mc.onRollOver = function () {
this.gotoAndStop(2);
};
_root.help_mc.close_mc.onRollOut = (_root.close_mc.onDragOut = function () {
this.gotoAndStop(1);
});
}
stop();
var guideIs;
_root.S_mc.onRollOver = function () {
this.nextFrame();
};
_root.S_mc.onRollOut = function () {
this.prevFrame();
};
_root.S_mc.onRelease = function () {
_root.gotoAndStop(4);
};
_root.H_mc.onRollOver = function () {
this.nextFrame();
};
_root.H_mc.onRollOut = (_root.H_mc.onDragOut = function () {
this.prevFrame();
});
_root.H_mc.onRelease = function () {
_root.gotoAndStop(3);
createCloseButton();
};
sound = new Sound();
sound.attachSound("intro_snd");
sound.start(0, 1);
_root.snd_mc.onRelease = function () {
if (!isVolume) {
_root.isSound = false;
this.gotoAndStop(2);
isVolume = !isVolume;
sound.setVolume(0);
} else {
_root.isSound = true;
this.gotoAndStop(1);
isVolume = !isVolume;
sound.setVolume(100);
}
};
Instance of Symbol 107 MovieClip in Frame 2
on (release) {
getURL ("http://www.veryclip.com/tags/super-mario", "_blank");
}
Instance of Symbol 55 MovieClip in Frame 2
on (release) {
getURL ("http://veryclip.com", "_blank");
}
Frame 3
stop();
Frame 4
function gameStart() {
createbox(gameLevel - 1);
createItemButton();
missionViewer(endCount[gameLevel - 1]);
missionCount = endCount[gameLevel - 1];
levelViewer(gameLevel);
var _local2 = [bomb_mc, hint_mc, mix_mc, addTime_mc];
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1]._visible = true;
_local1++;
}
addScore(totalScore);
}
function levelUp() {
gameLevel++;
createbox(gameLevel - 1);
missionViewer(endCount[gameLevel - 1]);
missionCount = endCount[gameLevel - 1];
levelViewer(gameLevel);
var _local2 = [bomb_mc, hint_mc, mix_mc, addTime_mc, pause_mc, snd_mc];
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1].enabled = true;
_local1++;
}
}
function reSet() {
missioncount = 0;
comboCount = 0;
isClick = true;
boxDepth = 300;
baseDepth = 100;
isClick1 = null;
isClick2 = null;
deleteMovieClip();
boxArray = new Array();
baseArray = new Array();
boardArray = new Array();
clearInterval(timeID);
Mouse.show();
delete target_mc.onEnterFrame;
target_mc._x = 10000;
_root.combo_mc.gotoAndStop(1);
_root.item_mc.gotoAndStop(1);
stopAllSounds();
timeBar_mc.bar_mc._xscale = 100;
var _local3 = [bomb_mc, hint_mc, mix_mc, addTime_mc, pause_mc, snd_mc];
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2].enabled = false;
_local2++;
}
}
function gameOver() {
}
function createbox(value) {
var _local4 = 0;
var _local3 = 0;
while (_local3 < HEIGHT_MAX) {
boxArray[_local3] = new Array();
var _local1 = 0;
while (_local1 < WIDTH_MAX) {
if (map[value][_local4]) {
var _local2 = box_mc.duplicateMovieClip("box_mc" + boxDepth, boxDepth);
_local2._x = PX + (WIDTH * _local1);
_local2._y = PY + (HEIGHT * _local3);
boxArray[_local3][_local1] = _local2;
boxArray[_local3][_local1].ybox = _local3 + 1;
boxArray[_local3][_local1].xbox = _local1 + 1;
boxArray[_local3][_local1].number = _local4;
}
boxDepth++;
_local4++;
_local1++;
}
_local3++;
}
_local3 = 0;
while (_local3 < (HEIGHT_MAX + 2)) {
boardArray[_local3] = new Array();
var _local1 = 0;
while (_local1 < (WIDTH_MAX + 2)) {
boardArray[_local3][_local1] = false;
_local1++;
}
_local3++;
}
_local3 = 0;
while (_local3 < (HEIGHT_MAX + 2)) {
var _local1 = 0;
while (_local1 < (WIDTH_MAX + 2)) {
if (boxArray[_local3][_local1]) {
boardArray[_local3 + 1][_local1 + 1] = true;
}
_local1++;
}
_local3++;
}
createImage(boxArray);
}
function createImage(ary) {
var _local3 = new Array();
var _local7 = 0;
while (_local7 < HEIGHT_MAX) {
var _local1 = 0;
while (_local1 < WIDTH_MAX) {
if (ary[_local7][_local1]) {
_local3.push(ary[_local7][_local1]);
}
_local1++;
}
_local7++;
}
_local7 = 0;
while (_local7 < (_local3.length / 2)) {
var _local4 = random(IMAGE_LENGTH) + 2;
var _local5 = random(_local3.length);
var _local6 = _local3[_local5].img_mc;
if (_local6._currentframe == 1) {
_local6.gotoAndStop(_local4);
var _local1 = 0;
while (_local1 < 1) {
_local5 = random(_local3.length);
var _local2 = _local3[_local5].img_mc;
if (_local2._currentframe == 1) {
_local2.gotoAndStop(_local4);
_local6._parent.answer = _local4;
_local2._parent.answer = _local4;
_local1 = 1;
} else {
_local1--;
}
_local1++;
}
} else {
_local7--;
}
_local7++;
}
_local3 = null;
clickPlay();
createBase();
intro();
}
function createBase() {
var _local2 = 0;
while (_local2 < (HEIGHT_MAX + 2)) {
baseArray[_local2] = new Array();
var _local1 = 0;
while (_local1 < (WIDTH_MAX + 2)) {
var _local3 = box_mc.duplicateMovieClip("box_mc" + baseDepth, baseDepth);
_local3._x = (PX - WIDTH) + (WIDTH * _local1);
_local3._y = (PY - HEIGHT) + (HEIGHT * _local2);
baseArray[_local2][_local1] = _local3;
baseArray[_local2][_local1]._visible = false;
if (boardArray[_local2][_local1]) {
baseArray[_local2][_local1].isPlay = true;
} else {
baseArray[_local2][_local1].isPlay = false;
}
baseDepth++;
_local1++;
}
_local2++;
}
}
function intro() {
var _local4 = 0;
isClick = false;
var _local3 = new Array();
var _local2 = 0;
while (_local2 < (HEIGHT_MAX + 2)) {
var _local1 = 0;
while (_local1 < (WIDTH_MAX + 2)) {
if (baseArray[_local2][_local1].isPlay) {
boxArray[_local2 - 1][_local1 - 1].img_mc._xscale = 0;
_local3.push(boxArray[_local2 - 1][_local1 - 1]);
}
_local4++;
_local1++;
}
_local2++;
}
introCount = 0;
introID = setInterval(introPlay, 20, _local3);
}
function introPlay(ary) {
ary[introCount].gotoAndStop(1);
ary[introCount].mc0.gotoAndPlay(2);
ary[introCount].mc0.onEnterFrame = function () {
this.nextFrame();
if (this._currentframe > 6) {
this._parent.img_mc._xscale = this._parent.img_mc._xscale + 25;
if (this._parent.img_mc._xscale > 99) {
this._parent.img_mc._xscale = 100;
this._parent.gotoAndStop(2);
delete this.onEnterFrame;
}
}
};
introCount++;
if (introCount == ary.length) {
clearInterval(introID);
onClick();
soundF();
timerStart(timer);
}
}
function clickPlay() {
var _local3 = 0;
while (_local3 < HEIGHT_MAX) {
var _local2 = 0;
while (_local2 < WIDTH_MAX) {
if (boxArray[_local3][_local2] != null) {
boxArray[_local3][_local2].onRelease = function () {
if (isClick) {
freeSound("click_snd");
isClick2.gotoAndStop(2);
this.gotoAndStop(3);
isClick1 = isClick2;
isClick2 = this;
if (isBomb) {
isBomb = false;
bombPlay();
} else if ((isClick1.answer == isClick2.answer) && (isClick1.number != isClick2.number)) {
isClick = false;
compareCheck(isClick1, isClick2);
} else if (isClick1) {
comboCount = 0;
}
}
};
}
_local2++;
}
_local3++;
}
}
function deleteMovieClip() {
var _local2 = 0;
while (_local2 < (HEIGHT_MAX + 2)) {
var _local1 = 0;
while (_local1 < (WIDTH_MAX + 2)) {
removeMovieClip(baseArray[_local2][_local1]);
_local1++;
}
_local2++;
}
_local2 = 0;
while (_local2 < HEIGHT_MAX) {
var _local1 = 0;
while (_local1 < WIDTH_MAX) {
removeMovieClip(boxArray[_local2][_local1]);
_local1++;
}
_local2++;
}
}
function clickHandler(value) {
var _local2 = 0;
while (_local2 < (HEIGHT_MAX + 2)) {
var _local1 = 0;
while (_local1 < (WIDTH_MAX + 2)) {
if (baseArray[_local2][_local1].isPlay) {
boxArray[_local2 - 1][_local1 - 1].enabled = value;
}
_local1++;
}
_local2++;
}
}
function comboCheck() {
comboCount++;
missionCount - 2;
missionMinusViewer(2);
if (missionCount == 0) {
if (gameLevel == END_LEVEL) {
motionF(5);
} else {
addScore(totalTimer * 12);
motionF(3);
}
} else if ((comboCount > 1) && (comboCount < 10)) {
addScore(comboCount * 15);
} else if (comboCount == 10) {
addScore(comboCount * 10);
comboCount = 0;
item_mc.swapDepths(9999);
var _local2 = random(10) + 1;
this.item_mc.gotoAndPlay(2);
isStop = true;
clickHandler(false);
item_mc.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
isStop = false;
clickHandler(true);
delete this.onEnterFrame;
}
};
this.item_mc.mc.gotoAndStop(_local2);
switch (_local2) {
case 1 :
bomb_mc.i++;
itemViewer(bomb_mc, bomb_mc.i);
break;
case 2 :
hint_mc.i++;
itemViewer(hint_mc, hint_mc.i);
break;
case 3 :
mix_mc.i++;
itemViewer(mix_mc, mix_mc.i);
break;
case 4 :
addTime_mc.i++;
itemViewer(addTime_mc, addTime_mc.i);
break;
default :
freeSound("bonusBlank_snd");
trace("\uAF5D");
}
}
}
function itemViewer(mc, value) {
freeSound("bonusSuccess_snd");
var _local1 = mc;
trace(_local1);
trace(_local1.mc);
_local1.mc.gotoAndStop(value + 1);
}
function createItemButton() {
bomb_mc.onRelease = function () {
if (this.i > 0) {
this.i--;
this.mc.gotoAndStop(this.i + 1);
boxBomb();
}
this.gotoAndStop(1);
};
hint_mc.onRelease = function () {
if (this.i > 0) {
this.i--;
this.mc.gotoAndStop(this.i + 1);
boxHint();
}
this.gotoAndStop(1);
};
mix_mc.onRelease = function () {
if (this.i > 0) {
this.i--;
this.mc.gotoAndStop(this.i + 1);
boxMix();
}
this.gotoAndStop(1);
};
addTime_mc.onRelease = function () {
if (this.i > 0) {
this.i--;
this.mc.gotoAndStop(this.i + 1);
boxAddTime();
}
this.gotoAndStop(1);
};
var _local2 = [bomb_mc, hint_mc, mix_mc, addTime_mc];
var i = 0;
while (i < _local2.length) {
_local2[i].i = 1;
_local2[i].mc.gotoAndStop(_local2[i].i + 1);
_local2[i].swapDepths(9995 + i);
_local2[i].onRollOver = function () {
if (this.i > 0) {
this.gotoAndStop(2);
}
};
_local2[i].onRollOut = (_local2[i].onDragOut = function () {
if (this.i > 0) {
this.gotoAndStop(1);
}
});
i++;
}
}
function boxBomb() {
isBomb = true;
Mouse.hide();
target_mc.swapDepths(_root.getNextHighestDepth());
target_mc.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
}
function boxMix() {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < (HEIGHT_MAX + 2)) {
var _local2 = 0;
while (_local2 < (WIDTH_MAX + 2)) {
if (baseArray[_local3][_local2].isPlay) {
_local6.push(boxArray[_local3 - 1][_local2 - 1].answer);
}
_local2++;
}
_local3++;
}
_local6 = arrayMix(_local6);
var _local5 = 0;
_local3 = 0;
while (_local3 < (HEIGHT_MAX + 2)) {
var _local2 = 0;
while (_local2 < (WIDTH_MAX + 2)) {
if (baseArray[_local3][_local2].isPlay) {
var _local4 = _local6[_local5];
boxArray[_local3 - 1][_local2 - 1].img_mc.gotoAndStop(_local4);
boxArray[_local3 - 1][_local2 - 1].answer = _local4;
_local5++;
}
_local2++;
}
_local3++;
}
isClick = false;
freeSound("mix_snd");
_local5 = 0;
_local3 = 0;
while (_local3 < (HEIGHT_MAX + 2)) {
var _local2 = 0;
while (_local2 < (WIDTH_MAX + 2)) {
if (baseArray[_local3][_local2].isPlay) {
boxArray[_local3 - 1][_local2 - 1].gotoAndStop(6);
boxArray[_local3 - 1][_local2 - 1].mc0.gotoAndPlay(2);
boxArray[_local3 - 1][_local2 - 1].mc5.onEnterFrame = function () {
this.nextFrame();
if (this._currentframe < 5) {
this._parent.img_mc._xscale = this._parent.img_mc._xscale - 30;
} else if (this._currentframe == 5) {
this._parent.img_mc._xscale = 0;
}
if (this._currentframe > 20) {
this._parent.img_mc._xscale = this._parent.img_mc._xscale + 25;
if (this._parent.img_mc._xscale > 99) {
this._parent.img_mc._xscale = 100;
this._parent.gotoAndStop(2);
delete this.onEnterFrame;
}
}
};
}
_local5++;
_local2++;
}
_local3++;
}
clickID = setInterval(onClick, 1000);
}
function onClick() {
clearInterval(clickID);
isClick = true;
}
function arrayMix(ary) {
var _local7 = new Array();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < ary.length) {
var _local3 = random(ary.length);
var _local5 = 0;
var _local1 = 0;
while (_local1 < _local4.length) {
if (_local3 != _local4[_local1]) {
_local5++;
} else {
_local2--;
}
_local1++;
}
if (_local5 == _local7.length) {
_local4.push(_local3);
_local7.push(ary[_local3]);
}
_local2++;
}
return(_local7);
}
function boxAddTime() {
totalTimer = totalTimer + 30;
freeSound("addTime_snd");
}
function bombPlay() {
freeSound("bomb_snd");
Mouse.show();
delete target_mc.onEnterFrame;
target_mc._x = 10000;
var _local2 = 0;
while (_local2 < HEIGHT_MAX) {
var _local1 = 0;
while (_local1 < WIDTH_MAX) {
trace("\uC815\uB2F5\uCCB4\uD06C" + boxArray[_local2][_local1]);
if ((boxArray[_local2][_local1].answer == isClick2.answer) && (isClick2 != boxArray[_local2][_local1])) {
isClick1 = boxArray[_local2][_local1];
_local2 = HEIGHT_MAX;
_local1 = WIDTH_MAX;
checkAnswer();
}
_local1++;
}
_local2++;
}
}
function boxHint() {
isHint = false;
var _local3 = new Array();
var _local5 = 0;
while (_local5 < (HEIGHT_MAX + 2)) {
var _local4 = 0;
while (_local4 < (WIDTH_MAX + 2)) {
if (baseArray[_local5][_local4].isPlay) {
var _local6 = _local3[count];
_local3.push(boxArray[_local5 - 1][_local4 - 1]);
count++;
}
_local4++;
}
_local5++;
}
_local5 = 0;
while (_local5 < _local3.length) {
var _local4 = _local5 + 1;
while (_local4 < _local3.length) {
if (!isHint) {
var _local1 = _local3[_local5];
var _local2 = _local3[_local4];
if (_local1.answer == _local2.answer) {
hintResult(_local1, _local2, _local1.ybox - 1, _local1.xbox, _local2.ybox, _local2.xbox, "U", 1);
hintResult(_local1, _local2, _local1.ybox + 1, _local1.xbox, _local2.ybox, _local2.xbox, "D", 1);
hintResult(_local1, _local2, _local1.ybox, _local1.xbox - 1, _local2.ybox, _local2.xbox, "L", 1);
hintResult(_local1, _local2, _local1.ybox, _local1.xbox + 1, _local2.ybox, _local2.xbox, "R", 1);
}
}
_local4++;
}
_local5++;
}
}
function hintCheck(mc1, mc2, y, x, y2, x2, str, count) {
if (count == 1) {
if (str == "L") {
hintResult(mc1, mc2, y, x - 1, y2, x2, str, count);
} else if (str == "R") {
hintResult(mc1, mc2, y, x + 1, y2, x2, str, count);
} else if (str == "U") {
hintResult(mc1, mc2, y - 1, x, y2, x2, str, count);
} else if (str == "D") {
hintResult(mc1, mc2, y + 1, x, y2, x2, str, count);
}
if ((str == "L") || (str == "R")) {
if (y < y2) {
hintResult(mc1, mc2, y + 1, x, y2, x2, "D", count + 1);
} else if (y > y2) {
hintResult(mc1, mc2, y - 1, x, y2, x2, "U", count + 1);
}
} else if ((str == "U") || (str == "D")) {
if (x < x2) {
hintResult(mc1, mc2, y, x + 1, y2, x2, "R", count + 1);
} else if (x > x2) {
hintResult(mc1, mc2, y, x - 1, y2, x2, "L", count + 1);
}
}
} else if (count == 2) {
if ((str == "U") || (str == "D")) {
if ((str == "U") && (y > y2)) {
hintResult(mc1, mc2, y - 1, x, y2, x2, str, count);
} else if ((str == "D") && (y < y2)) {
hintResult(mc1, mc2, y + 1, x, y2, x2, str, count);
}
if (x != x2) {
if (x < x2) {
hintResult(mc1, mc2, y, x + 1, y2, x2, "R", count + 1);
} else if (x > x2) {
hintResult(mc1, mc2, y, x - 1, y2, x2, "L", count + 1);
}
}
} else if ((str == "L") || (str == "R")) {
if ((str == "L") && (x > x2)) {
hintResult(mc1, mc2, y, x - 1, y2, x2, str, count);
} else if ((str == "R") && (x < x2)) {
hintResult(mc1, mc2, y, x + 1, y2, x2, str, count);
}
if (y != y2) {
if (y < y2) {
hintResult(mc1, mc2, y + 1, x, y2, x2, "D", count + 1);
} else if (y > y2) {
hintResult(mc1, mc2, y - 1, x, y2, x2, "U", count + 1);
}
}
}
} else if (count == 3) {
if ((str == "U") && (x == x2)) {
hintResult(mc1, mc2, y - 1, x, y2, x2, str, count);
} else if ((str == "D") && (x == x2)) {
hintResult(mc1, mc2, y + 1, x, y2, x2, str, count);
} else if ((str == "L") && (y == y2)) {
hintResult(mc1, mc2, y, x - 1, y2, x2, str, count);
} else if ((str == "R") && (y == y2)) {
hintResult(mc1, mc2, y, x + 1, y2, x2, str, count);
}
}
}
function hintResult(mc1, mc2, y, x, y2, x2, str, count) {
if ((((y == y2) && (x == x2)) && (count < 4)) && (isHint == false)) {
mc1.gotoAndStop(4);
mc2.gotoAndStop(4);
isHint = true;
}
var _local1 = baseArray[y][x].isPlay;
if (_local1 == false) {
hintCheck(mc1, mc2, y, x, y2, x2, str, count);
}
}
function compareCheck(mc1, mc2) {
var _local3 = new Array();
_local3.push(mc1);
wayCheck(mc1.ybox - 1, mc1.xbox, mc2.ybox, mc2.xbox, "U", 1, _local3);
wayCheck(mc1.ybox + 1, mc1.xbox, mc2.ybox, mc2.xbox, "D", 1, _local3);
wayCheck(mc1.ybox, mc1.xbox - 1, mc2.ybox, mc2.xbox, "L", 1, _local3);
wayCheck(mc1.ybox, mc1.xbox + 1, mc2.ybox, mc2.xbox, "R", 1, _local3);
_local3 = null;
}
function compareWay(y, x, y2, x2, str, count, temp) {
if (count == 1) {
if (str == "L") {
wayCheck(y, x - 1, y2, x2, str, count, temp);
} else if (str == "R") {
wayCheck(y, x + 1, y2, x2, str, count, temp);
} else if (str == "U") {
wayCheck(y - 1, x, y2, x2, str, count, temp);
} else if (str == "D") {
wayCheck(y + 1, x, y2, x2, str, count, temp);
}
if ((str == "L") || (str == "R")) {
if (y < y2) {
wayCheck(y + 1, x, y2, x2, "D", count + 1, temp);
} else if (y > y2) {
wayCheck(y - 1, x, y2, x2, "U", count + 1, temp);
}
} else if ((str == "U") || (str == "D")) {
if (x < x2) {
wayCheck(y, x + 1, y2, x2, "R", count + 1, temp);
} else if (x > x2) {
wayCheck(y, x - 1, y2, x2, "L", count + 1, temp);
}
}
} else if (count == 2) {
if ((str == "U") || (str == "D")) {
if ((str == "U") && (y > y2)) {
wayCheck(y - 1, x, y2, x2, str, count, temp);
} else if ((str == "D") && (y < y2)) {
wayCheck(y + 1, x, y2, x2, str, count, temp);
}
if (x != x2) {
if (x < x2) {
wayCheck(y, x + 1, y2, x2, "R", count + 1, temp);
} else if (x > x2) {
wayCheck(y, x - 1, y2, x2, "L", count + 1, temp);
}
}
} else if ((str == "L") || (str == "R")) {
if ((str == "L") && (x > x2)) {
wayCheck(y, x - 1, y2, x2, str, count, temp);
} else if ((str == "R") && (x < x2)) {
wayCheck(y, x + 1, y2, x2, str, count, temp);
}
if (y != y2) {
if (y < y2) {
wayCheck(y + 1, x, y2, x2, "D", count + 1, temp);
} else if (y > y2) {
wayCheck(y - 1, x, y2, x2, "U", count + 1, temp);
}
}
}
} else if (count == 3) {
if ((str == "U") && (x == x2)) {
wayCheck(y - 1, x, y2, x2, str, count, temp);
} else if ((str == "D") && (x == x2)) {
wayCheck(y + 1, x, y2, x2, str, count, temp);
} else if ((str == "L") && (y == y2)) {
wayCheck(y, x - 1, y2, x2, str, count, temp);
} else if ((str == "R") && (y == y2)) {
wayCheck(y, x + 1, y2, x2, str, count, temp);
}
}
}
function wayCheck(y, x, y2, x2, str, count, temp) {
clearInterval(ID);
ID = setInterval(resultCheck, 10);
if (((y == y2) && (x == x2)) && (count < 4)) {
temp.push(isClick2);
wayArray.push(temp);
isSuccess = true;
}
var _local5 = baseArray[y][x].isPlay;
if (_local5 == false) {
var _local1 = new Array();
_local1 = _local1.concat(temp);
_local1.push(baseArray[y][x]);
compareWay(y, x, y2, x2, str, count, _local1);
} else {
return(null);
}
}
function resultCheck() {
clearInterval(ID);
if (isSuccess) {
var _local2 = new Array();
var _local3 = 0;
while (_local3 < wayArray.length) {
var _local1 = 0;
while (_local1 < wayArray.length) {
if (wayArray[_local1].length > wayArray[_local1 + 1].length) {
_local2 = wayArray[_local1];
wayArray[_local1] = wayArray[_local1 + 1];
wayArray[_local1 + 1] = _local2;
}
_local1++;
}
_local3++;
}
createWay(wayArray[0]);
wayArray = [];
isSuccess = false;
} else {
isClick = true;
}
}
function createWay(ary) {
this.createEmptyMovieClip("line_mc", 10);
line_mc.lineStyle(3, 16724957, 100);
line_mc.moveTo(ary[0]._x, ary[0]._y);
var _local2 = 1;
while (_local2 < ary.length) {
line_mc.lineTo(ary[_local2]._x, ary[_local2]._y);
_local2++;
}
line_mc.endFill();
successID = setInterval(checkAnswer, 300);
isClick1.gotoAndStop(3);
isClick2.gotoAndStop(3);
}
function checkAnswer() {
clearInterval(successID);
removeMovieClip(line_mc);
successPlay(isClick1);
successPlay(isClick2);
isClick1 = null;
isClick2 = null;
isClick = true;
clearInterval(endID);
comboCheck();
freeSound("success_snd");
addScore(10);
}
function successPlay(mc) {
baseArray[mc.ybox][mc.xbox].isPlay = false;
delete mc.onRelease;
mc.img_mc._visible = false;
mc.gotoAndStop(5);
mc.swapDepths(_root.getNextHighestDepth());
mc.success_mc.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
delete this.onEnterFrame;
removeMovieClip(this._parent);
this._parent._visible = false;
}
};
}
function comboViewer(value) {
if (value > 9) {
combo_mc.mc0.combo.comboScore_mc.gotoAndStop(2);
var _local3 = stringUtil(value, 2);
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = int(_local3.charAt(_local1));
combo_mc.mc0.combo.comboScore_mc["score_mc" + _local1].gotoAndStop(_local2 + 1);
_local1++;
}
} else {
combo_mc.mc0.combo.comboScore_mc.score_mc0.gotoAndStop(value + 1);
}
}
function addScore(value) {
totalScore = totalScore + value;
if (totalScore < 0) {
totalScore = 0;
}
var _local4 = stringUtil(totalScore, 5);
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = int(_local4.charAt(_local2));
_root["score_mc" + _local2].gotoAndStop(_local3 + 1);
_local2++;
}
}
function levelViewer(value) {
var _local4 = stringUtil(value, 2);
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = int(_local4.charAt(_local2));
_root["level_mc" + _local2].gotoAndStop(_local3 + 1);
_local2++;
}
}
function missionViewer(value) {
var _local4 = stringUtil(value, 3);
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = int(_local4.charAt(_local2));
_root["mission_mc" + _local2].gotoAndStop(_local3 + 1);
_local2++;
}
}
function missionMinusViewer(value) {
missionCount = missionCount - value;
if (missionCount < 0) {
missionCount = 0;
}
var _local4 = stringUtil(missionCount, 3);
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = int(_local4.charAt(_local2));
_root["mission_mc" + _local2].gotoAndStop(_local3 + 1);
_local2++;
}
}
function soundF() {
sound = new Sound();
sound.attachSound("main_snd");
sound.start(0, 999);
}
function freeSound(value) {
var _local1 = new Sound();
_local1.attachSound(value);
_local1.start();
}
function sndCheck() {
if (_root.isSound == false) {
_root.snd_mc.gotoAndStop(2);
} else if (_root.isSound == undefined) {
}
}
function createButton() {
_root.firstFrame_mc.onRollOver = function () {
this.gotoAndStop(2);
};
_root.firstFrame_mc.onRollOut = function () {
this.gotoAndStop(1);
};
_root.firstFrame_mc.onDragOut = function () {
this.gotoAndStop(1);
};
_root.firstFrame_mc.onRelease = function () {
var _local3 = [bomb_mc, hint_mc, mix_mc, addTime_mc];
var _local2 = 0;
while (_local2 < _local3.length) {
removeMovieClip(_local3[_local2]);
_local2++;
}
sound.stop();
_root.gotoAndStop(2);
};
_root.rePlay_mc.onRollOver = function () {
this.gotoAndStop(2);
};
_root.rePlay_mc.onRollOut = function () {
this.gotoAndStop(1);
};
_root.rePlay_mc.onDragOut = function () {
this.gotoAndStop(1);
};
_root.rePlay_mc.onRelease = function () {
_root.prevFrame();
};
}
function stringUtil(value, number) {
var _local2 = String(value);
value = int(_local2.length);
var _local1 = value;
while (_local1 < number) {
_local2 = "0" + _local2;
_local1++;
}
return(_local2);
}
function motionF(value) {
_root.text_mc.swapDepths(11000);
if (value == 2) {
sndCheck();
_root.text_mc.gotoAndStop(2);
_root.text_mc.start_mc.play();
_root.text_mc.start_mc.onEnterFrame = function () {
if (this._currentframe == (this._totalframes - 1)) {
gameStart();
this._parent.gotoAndStop(1);
delete this.onEnterFrame;
}
};
} else if (value == 3) {
reSet();
_root.text_mc.gotoAndStop(3);
_root.text_mc.levelUp_mc.play();
_root.text_mc.levelUp_mc.onEnterFrame = function () {
if (this._currentframe == 32) {
this.next_mc.onRelease = function () {
this._parent.play();
};
this.next_mc.onRollOver = function () {
this.gotoAndStop(2);
};
this.next_mc.onRollOut = (this.next_mc.onDragOut = function () {
this.gotoAndStop(1);
});
}
if (this._currentframe == (this._totalframes - 1)) {
levelUp();
this._parent.gotoAndStop(1);
delete this.onEnterFrame;
}
};
} else if (value == 4) {
stopAllSounds();
reSet();
gameOver();
_root.text_mc.gotoAndStop(4);
_root.text_mc.gameOver_mc.play();
_root.text_mc.gameOver_mc.onEnterFrame = function () {
if (this._currentframe == (this._totalframes - 1)) {
_root.nextFrame();
totalScore_txt = totalScore;
createButton();
this.gotoAndStop(1);
delete this.onEnterFrame;
}
};
} else if (value == 5) {
reSet();
gameOver();
_root.text_mc.gotoAndStop(value);
_root.text_mc.gameClear_mc.play();
_root.text_mc.gameClear_mc.onEnterFrame = function () {
if (this._currentframe == (this._totalframes - 1)) {
_root.nextFrame();
totalScore_txt = totalScore;
createButton();
this.gotoAndStop(1);
delete this.onEnterFrame;
}
};
}
}
function intervalF() {
timeID = setInterval(timeCheck, 1000);
}
function timerStart(value) {
totalTimer = value;
intervalF();
}
function timeCheck() {
if (!isStop) {
totalTimer--;
timeBarF();
if (totalTimer <= 0) {
clearInterval(timeID);
motionF(4);
}
}
}
function timeBarF() {
if (totalTimer > timer) {
totalTimer = timer;
}
var _local1 = (totalTimer / timer) * 100;
timeBar_mc.bar_mc._xscale = _local1;
}
stop();
var BOX_LENGTH = 135;
var IMAGE_LENGTH = 45;
var WIDTH_MAX = 15;
var HEIGHT_MAX = 9;
var PX = 63;
var PY = 63;
var WIDTH = 31;
var HEIGHT = 40;
var END_LINE = 3;
var END_LEVEL = 19;
var gameLevel = 1;
var boardArray = new Array();
var wayArray = new Array();
var boxArray = new Array();
var baseArray = new Array();
var isClick1;
var isClick2;
var boxDepth = 300;
var baseDepth = 100;
var isClick = true;
var comboCount = 0;
var missionCount = 0;
var totalScore = 0;
var totalTimer = 0;
var timer = 120;
var isBomb = false;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 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0);
map[18] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
var endCount = new Array(56, 56, 56, 60, 60, 60, 64, 64, 64, 68, 68, 68, 72, 72, 72, 76, 76, 76, 80);
_root.snd_mc.onRelease = function () {
if (!isVolume) {
_root.isSound = false;
this.gotoAndStop(2);
isVolume = !isVolume;
sound.setVolume(0);
} else {
_root.isSound = true;
this.gotoAndStop(1);
isVolume = !isVolume;
sound.setVolume(100);
}
};
_root.pause_mc.onRelease = function () {
this.swapDepths(_root.getNextHighestDepth());
if (isStop == true) {
if (!isVolume) {
sound.setVolume(100);
}
this.gotoAndStop(1);
setIsButton(false);
} else {
sound.setVolume(0);
this.gotoAndStop(2);
setIsButton(true);
}
isStop = !isStop;
};
motionF(2);
Frame 5
function getUser() {
this.onEnterFrame = function () {
if (b_login) {
if (((_root.check_id == "") || (_root.check_id == undefined)) || (_root.check_id == null)) {
_root.user_id = "guest";
} else {
b_login = false;
_root.user_id = _root.check_id;
delete this.onEnterFrame;
_root.SaveRank();
getURL ("javascript:alert('\uC810\uC218\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4.');");
_root.Save_mc.gotoAndStop(3);
}
}
};
}
stop();
_root.sco = totalScore_txt;
trace(totalScore_txt);
var b_login = true;
if ((((_root.user_id == "") || (_root.user_id == undefined)) || (_root.user_id == null)) || (_root.user_id == "guest")) {
getUser();
} else {
_root.Save_mc.gotoAndStop(3);
}
_root.SaveRank();
var CPMStarPoolID = 6821;
var CPMStarSubPoolID = 1;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
Symbol 33 MovieClip Frame 40
stop();
Symbol 47 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 48 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 23 MovieClip in Symbol 49 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 49 MovieClip Frame 101
play();
Symbol 49 MovieClip Frame 165
stop();
Symbol 56 MovieClip Frame 1
function startAd(ngad_url) {
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
var CPMStarPoolID = 6821;
var CPMStarSubPoolID = 1;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
Instance of Symbol 55 MovieClip in Symbol 56 MovieClip Frame 1
on (release) {
getURL ("http://veryclip.com", "_blank");
}
Symbol 86 MovieClip Frame 11
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 7
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 42
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 22
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 1
var CPMStarPoolID = 6821;
var CPMStarSubPoolID = 1;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
Instance of Symbol 55 MovieClip in Symbol 317 MovieClip Frame 1
on (release) {
getURL ("http://veryclip.com", "_blank");
}
Symbol 318 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 32
stop();
Symbol 363 MovieClip Frame 1
this.stop();
Symbol 366 MovieClip Frame 1
stop();