Frame 1
function sendScore() {
getURL (((("javascript:sc_end_js(" + score) + ",") + levelup) + ")");
this.createEmptyMovieClip("sendOb", 10);
sendOb.score = score;
sendOb.encsds = enCodingScore(score);
sendOb.userkey = userkey;
sendOb.gCode = gCode;
sendOb.glevel = userlevel;
sendOb.levelup = levelup;
levelup = 0;
sendOb.loadVariables(scoreURL, "POST");
sendOb.onData = function () {
this.removeMovieClip();
};
}
function urlChk() {
if (((((_url.substr(0, 21) == "http://211.219.154.29") || (_url.substr(0, 23) == "http://wagglewaggle.net")) || (_url.substr(0, 27) == "http://img.wagglewaggle.net")) || (_url.substr(0, 27) == "http://www.wagglewaggle.net")) || (_url.substr(0, 32) == "http://minigame.wagglewaggle.net")) {
return(1);
}
return(1);
}
if (!originallevel) {
originallevel = userlevel.split("")[0];
userlevel = userlevel.split("")[1];
}
levelup = 0;
stopAllSounds();
stop();
varObj = new Object();
stringArray = ["q", "w", "z", "d", "j", "r", "h", "p", "b", "m"];
varObj.addVars = function (varName, level, initValue) {
var _local1 = varName;
level[_local1] = 0;
this[_local1] = null;
this.encodeVars(_local1, level, initValue);
};
varObj.encodeVars = function (varName, level, value) {
if (this[varName] != null) {
level[varName] = Number(this.decodeVars(this[varName]));
} else {
this[varName] = stringArray[0];
}
level[varName] = level[varName] + value;
var _local2 = String(level[varName]);
_local2 = _local2.split("");
var _local3 = "";
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + stringArray[Number(_local2[_local1])];
_local1++;
}
this[varName] = _local3;
};
varObj.decodeVars = function (value) {
var _local3 = value.split("");
var tempResult = "";
var _local2 = 0;
while (_local2 < _local3.length) {
var _local1 = 0;
while (_local1 < stringArray.length) {
if (_local3[_local2] == stringArray[_local1]) {
tempResult = tempResult + String(_local1);
break;
}
_local1++;
}
_local2++;
}
trace("\uB9AC\uD134\uAC12 : " + tempResult);
return(tempResult);
};
Frame 9
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
userlevel = 2;
if (userlevel == 1) {
coinDelay = 80;
delayTime = 10;
boxes = 2;
} else if (userlevel == 2) {
coinDelay = 60;
delayTime = 8;
boxes = 2;
} else if (userlevel == 3) {
coinDelay = 40;
delayTime = 6;
boxes = 3;
}
((bgm = new Sound())).attachSound("bgm");
((poro1 = new Sound())).attachSound("poro1");
((poro2 = new Sound())).attachSound("poro2");
((poro3 = new Sound())).attachSound("poro3");
((poro4 = new Sound())).attachSound("poro4");
((poro5 = new Sound())).attachSound("poro5");
((poro6 = new Sound())).attachSound("poro6");
((poro7 = new Sound())).attachSound("poro7");
((poro8 = new Sound())).attachSound("poro8");
((getGoldSnd = new Sound())).attachSound("getGoldSnd");
((coinSnd = new Sound())).attachSound("coinSnd");
((dropGoldSnd = new Sound())).attachSound("dropGoldSnd");
((niceSnd = new Sound())).attachSound("niceSnd");
((blockDroped = new Sound())).attachSound("blockDroped");
((wowSnd = new Sound())).attachSound("wowSnd");
((startSnd = new Sound())).attachSound("startSnd");
((overSnd = new Sound())).attachSound("overSnd");
((alert = new Sound())).attachSound("alert");
((landingSnd = new Sound())).attachSound("landingSnd");
((missionSnd = new Sound())).attachSound("missionSnd");
VarObj.addVars("score", this, 0);
VarObj.addVars("stg", this, 1);
pausing.removeMovieClip();
item1Amount = 0;
Frame 10
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
itemOb.uitem5 = uitem5;
itemOb.gCode = gCode;
itemOb.userkey = userkey;
ii = 1;
while (ii <= 5) {
if (_root["item" + ii] == 1) {
isItem = 1;
}
ii++;
}
itemOb.loadVariables(itemURL, "POST");
itemOb.onData = function () {
var _local1 = _root;
if (this.userTemp) {
if (_local1.isItem) {
if (item1 && (item3)) {
item1Amount = 3;
scItem = "\"\uD0C0\uC784\uC2A4\uD0D1, \uC810\uC218\uBEE5\uD280\uAE30X2\"";
} else if (item1) {
item1Amount = 3;
scItem = "\"\uD0C0\uC784\uC2A4\uD0D1\"";
} else if (item3) {
scItem = "\"\uC810\uC218\uBEE5\uD280\uAE30X2\"";
}
getURL (("javascript:item_use_chk_ok(" + scItem) + ");");
_local1.isItem = 0;
_local1.gotoAndStop("itemView");
} else {
getURL ("javascript:item_use_chk_ok(0)");
_local1.gotoAndPlay("gameReady");
}
} else {
getURL ("javascript:not_logon();");
_local1.gotoAndStop("loading");
}
};
Instance of Symbol 264 MovieClip "itemM1" in Frame 10
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 264 MovieClip "itemM2" in Frame 10
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 264 MovieClip "itemM3" in Frame 10
onClipEvent (load) {
this._visible = 0;
}
Frame 11
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
jj = 0;
ii = 1;
while (ii <= 5) {
if (_root["item" + ii] == 1) {
jj++;
_root["itemM" + jj].gotoAndStop(ii + 1);
_root["itemM" + jj].timing = jj * 2;
_root["itemM" + jj].onEnterFrame = function () {
var _local1 = this;
_local1.i++;
if (_local1.i == _local1.timing) {
_local1._visible = 1;
}
};
}
ii++;
}
this.onEnterFrame = function () {
var _local1 = this;
_local1.kk++;
if (_local1.kk == 30) {
delete _local1.kk;
_local1.onEnterFrame = null;
_root.gotoAndPlay("gameReady");
}
};
Frame 12
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 13
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 14
howtomsg.htmlText = "<font color = '#FF6EC3'> <b>\uBF40\uB871\uBF40\uB871</b></font><font color = '#666666'>\n\n \uAC19\uC740 \uC0C9\uC758 \uBE14\uB7ED\uC774 \uC138\uAC1C\uC774\uC0C1 \uBAA8\uC5EC\uC788\uB294 \uACF3\uC744 \uD074\uB9AD\uD558\uBA74 \uADF8 \uBE14\uB7ED\uC774 \uC5C6\uC5B4\uC9D1\uB2C8\uB2E4. \uC774\uB807\uAC8C \uC5C6\uC5B4\uC9C4 \uBE14\uB7ED\uC740 \uB3D9\uC804\uC73C\uB85C \uD658\uC0B0, \uB3D9\uC804\uCC3D\uC5D0 \uB4E4\uC5B4\uAC00\uAC8C \uB429\uB2C8\uB2E4. \uB3D9\uC804\uC744 \uCC3D\uB05D\uAE4C\uC9C0 \uBAA8\uC73C\uBA74 \uAE08\uD654\uB85C \uBC14\uB00C\uACE0 \uB2E4\uC2DC \uBE14\uB7ED\uB4E4\uC704\uB85C \uB5A8\uC5B4\uC9C0\uAC8C \uB429\uB2C8\uB2E4. \uAE08\uD654\uC758 \uBC14\uB85C \uC544\uB798\uBE14\uB7ED\uC744 \uC5C6\uC560\uBA74 \uAE08\uD654\uB97C \uC5BB\uC744 \uC218 \uC788\uACE0 \uC2A4\uD14C\uC774\uC9C0\uB2F9 \uC815\uD574\uC9C4 \uAC2F\uC218\uB9CC\uD07C \uAE08\uD654\uB97C \uBAA8\uC73C\uBA74 \uD074\uB9AC\uC5B4\uD558\uAC8C \uB429\uB2C8\uB2E4. \uC77C\uC815\uC870\uAC74\uB9C8\uB2E4 \uB5A8\uC5B4\uC9C0\uB294 \uD3ED\uD0C4\uACFC \uBBF8\uC0AC\uC77C \uC544\uC774\uD15C\uC744 \uC798 \uC0AC\uC6A9\uD558\uACE0 \uC880 \uB354 \uB192\uC740 \uC810\uC218\uB97C \uC5BB\uC744 \uC218 \uC788\uB294 \uB2E4\uC591\uD55C \uBCF4\uB108\uC2A4\uCF64\uBCF4\uB97C \uB178\uB824\uBCF4\uC138\uC694.\n \uB2E8 \uBE14\uB7ED\uC774 \uB9E8\uC704\uCE35\uAE4C\uC9C0 \uB3C4\uB2EC\uD558\uBA74 \uAC8C\uC784\uC624\uBC84\uAC00 \uB418\uB2C8 \uC8FC\uC758\uD558\uC138\uC694.\n\n</font><font color='#FF6EC3'>\n\uC870\uC791\uD0A4\n</font><font color='#666666'>\uBE14\uB7ED\uAE68\uAE30 : \uB9C8\uC6B0\uC2A4 \uC67C\uCABD\uBC84\uD2BC\n</font> ";
Instance of Symbol 295 MovieClip in Frame 14
on (release) {
this._parent.howtomsg.scroll--;
}
Instance of Symbol 298 MovieClip in Frame 14
on (release) {
this._parent.howtomsg.scroll++;
}
Instance of Symbol 301 MovieClip in Frame 14
onClipEvent (load) {
if (this._parent.howtomsg.maxscroll == 1) {
this._visible = 0;
}
this._y = 75;
this.y1 = 75;
this.y2 = 208;
txt = this._parent.howtomsg;
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = 222.5;
_local1._y = _local1.y1 + ((_local1.y2 - _local1.y1) * ((txt.scroll - 1) / (txt.maxscroll - 1)));
};
}
onClipEvent (mouseDown) {
if (this.hitTest(this._parent._xmouse, this._parent._ymouse)) {
this.startDrag(0, 222.5, this.y1, 222.5, this.y2);
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = 222.5;
txt.scroll = txt.maxscroll * ((_local1._y - _local1.y1) / (_local1.y2 - _local1.y1));
};
}
}
onClipEvent (mouseUp) {
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = 222.5;
_local1._y = _local1.y1 + ((_local1.y2 - _local1.y1) * ((txt.scroll - 1) / (txt.maxscroll - 1)));
};
this.stopDrag();
}
Instance of Symbol 323 MovieClip "pauseBtn" in Frame 21
onClipEvent (load) {
this.swapDepths(3236);
}
Instance of Symbol 328 MovieClip in Frame 21
onClipEvent (load) {
_root.sndVolume = new Sound();
if (_root.sndvolume.getVolume() > 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 22
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
function TraceArray() {
var _local2 = 0;
while (_local2 < 16) {
bigyoArr = "";
var _local1 = 0;
while (_local1 < 14) {
bigyoArr = bigyoArr + (blockArray[_local1][_local2] + ",");
_local1++;
}
trace(bigyoArr);
_local2++;
}
}
function Init() {
var _local3 = this;
var _local2 = 1;
while (_local2 <= 6) {
_local3["box" + _local2].gotoAndStop(1);
_local2++;
}
_local2 = 1;
while (_local2 <= boxes) {
_local3["box" + _local2].gotoAndStop(2);
_local2++;
}
blockArray = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
blockClipArray = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
blockMovArray = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
_local2 = 0;
while (_local2 < 14) {
blockArray[_local2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
blockArray[_local2].length = 16;
blockClipArray[_local2].length = 16;
var _local1 = 10;
while (_local1 < 16) {
if (stg < 3) {
blockArray[_local2][_local1] = random(3) + 1;
blckClipArray[_local2][_local1].value = blockArray[_local2][_local1];
} else {
blockArray[_local2][_local1] = random(4) + 1;
blckClipArray[_local2][_local1].value = blockArray[_local2][_local1];
}
_local1++;
}
_local2++;
}
block._visible = 0;
_local3.onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1.readyTimes++;
if (_local1.readyTimes == 5) {
startSnd.start();
} else if (_local1.readyTimes == 15) {
block._visible = 1;
BlockDropReady();
} else if (_local1.readyTimes == 40) {
delete _local1.readyTimes;
_local1.onEnterFrame = null;
_local1.gotoAndStop("game");
}
}
};
}
function BlockSet() {
dep = 0;
var _local2 = 0;
while (_local2 < 14) {
var _local1 = 10;
while (_local1 < 16) {
block.attachMovie("block", (("block" + _local2) + "_") + _local1, dep);
dep++;
blockClipArray[_local2][_local1] = block[(("block" + _local2) + "_") + _local1];
block[(("block" + _local2) + "_") + _local1]._x = Width * _local2;
block[(("block" + _local2) + "_") + _local1]._y = Height * _local1;
blockMovArray[_local2][_local1] = Height * _local1;
block[(("block" + _local2) + "_") + _local1].gotoAndStop(blockArray[_local2][_local1]);
_local1++;
}
_local2++;
}
}
function BlockOnMouse() {
var _local2 = 0;
while (_local2 < 14) {
var _local1 = 10;
while (_local1 < 16) {
block[(("block" + _local2) + "_") + _local1].onRollOver = BlockRollOver;
block[(("block" + _local2) + "_") + _local1].onPress = BlockClick;
block[(("block" + _local2) + "_") + _local1].useHandCursor = 0;
_local1++;
}
_local2++;
}
}
function BlockDropReady() {
var _local1 = 0;
while (_local1 < 14) {
blockClipArray[_local1][15]._y = -random(50);
blockClipArray[_local1][15].i = _local1;
blockClipArray[_local1][15].j = 15;
blockClipArray[_local1][15].onEnterFrame = BlockDrop;
var _local2 = 14;
while (_local2 > -1) {
blockClipArray[_local1][_local2]._y = blockClipArray[_local1][_local2 + 1]._y - (random(40) + 10);
blockClipArray[_local1][_local2].i = _local1;
blockClipArray[_local1][_local2].j = _local2;
blockClipArray[_local1][_local2].onEnterFrame = BlockDrop;
_local2--;
}
_local1++;
}
}
function BlockDrop() {
var _local1 = this;
if (!_global.pause) {
_local1.speed = _local1.speed + 2;
_local1._y = _local1._y + _local1.speed;
if ((_local1._y >= blockMovArray[_local1.i][_local1.j]) && (!_local1.action)) {
if ((_local1.i == 0) && (_local1.j == 15)) {
landingSnd.start();
}
_local1._y = blockMovArray[_local1.i][_local1.j] + 2;
_local1._yscale = 90;
_local1.action = 1;
} else if (_local1.action == 1) {
_local1._y = blockMovArray[_local1.i][_local1.j] + 5;
_local1._yscale = 80;
_local1.action = 2;
} else if (_local1.action == 2) {
_local1._y = blockMovArray[_local1.i][_local1.j] - 1;
_local1._yscale = 105;
_local1.action = 3;
} else if (_local1.action == 3) {
_local1._y = blockMovArray[_local1.i][_local1.j] - 3;
_local1._yscale = 110;
_local1.action = 4;
} else if (_local1.action == 4) {
_local1._y = blockMovArray[_local1.i][_local1.j];
_local1._yscale = 100;
_local1.onEnterFrame = null;
}
}
}
function BlockChkSame(i, j) {
var _local1 = j;
var _local2 = i;
tempBlockArray.push(blockClipArray[_local2][_local1]);
if (blockArray[_local2][_local1] == blockArray[_local2][_local1 + 1]) {
var same = 0;
var _local3 = 0;
while (_local3 < tempBlockArray.length) {
if (blockClipArray[_local2][_local1 + 1] == tempBlockArray[_local3]) {
same = 1;
break;
}
_local3++;
}
if ((_local1 < 16) && (same == 0)) {
BlockChkSame(_local2, _local1 + 1);
}
}
if (blockArray[_local2][_local1] == blockArray[_local2][_local1 - 1]) {
var same = 0;
var _local3 = 0;
while (_local3 < tempBlockArray.length) {
if (blockClipArray[_local2][_local1 - 1] == tempBlockArray[_local3]) {
same = 1;
break;
}
_local3++;
}
if ((_local1 > 0) && (same == 0)) {
BlockChkSame(_local2, _local1 - 1);
}
}
if (blockArray[_local2][_local1] == blockArray[_local2 + 1][_local1]) {
var same = 0;
var _local3 = 0;
while (_local3 < tempBlockArray.length) {
if (blockClipArray[_local2 + 1][_local1] == tempBlockArray[_local3]) {
same = 1;
break;
}
_local3++;
}
if ((_local2 < 14) && (same == 0)) {
BlockChkSame(_local2 + 1, _local1);
}
}
if (blockArray[_local2][_local1] == blockArray[_local2 - 1][_local1]) {
var same = 0;
var _local3 = 0;
while (_local3 < tempBlockArray.length) {
if (blockClipArray[_local2 - 1][_local1] == tempBlockArray[_local3]) {
same = 1;
break;
}
_local3++;
}
if ((_local2 > 0) && (same == 0)) {
BlockChkSame(_local2 - 1, _local1);
}
}
}
function BlockRemove(bomb) {
var _local1 = this;
if (bomb) {
} else if (tempBlockArray.length >= 3) {
if (tempBlockArray[0]._currentframe == setMission) {
setMission = null;
mission();
}
var _local2 = 0;
while (_local2 < tempBlockArray.length) {
var towerNum = 0;
var _local3 = 0;
while (_local3 < tempBlockArray.length) {
if (tempBlockArray[_local2].i == tempBlockArray[_local3].i) {
towerNum++;
}
_local3++;
}
if (towerNum > 4) {
tower();
break;
}
_local2++;
}
if (tempBlockArray.length > 6) {
_local2 = 0;
while (_local2 < tempBlockArray.length) {
_local1.attachMovie("coinEffect", "coinEffect" + effectDep, effectDep);
_local1["coinEffect" + effectDep]._x = tempBlockArray[_local2]._x + block._x;
_local1["coinEffect" + effectDep]._y = tempBlockArray[_local2]._y + block._y;
_local1["coinEffect" + effectDep].gotoAndStop(blockArray[tempblockArray[_local2].i][tempblockArray[_local2].j]);
_local1["coinEffect" + effectDep].speed = 30;
_local1["coinEffect" + effectDep].rd = Math.atan2(coinMark._y - _local1["coinEffect" + effectDep]._y, coinMark._x - _local1["coinEffect" + effectDep]._x);
_local1["coinEffect" + effectDep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1._x = _local1._x + (_local1.speed * Math.cos(_local1.rd));
_local1._y = _local1._y + (_local1.speed * Math.sin(_local1.rd));
if (_local1._x >= coinMark._x) {
_local1.removeMovieClip();
}
}
};
effectDep++;
_local2++;
}
}
_local2 = 0;
while (_local2 < tempBlockArray.length) {
coins.coin.duplicateMovieClip("coin" + coins.dep, coins.dep);
coins["coin" + coins.dep]._visible = 1;
coins["coin" + coins.dep]._y = (_local2 * -20) - (coins.y * 220);
coins["coin" + coins.dep].num = coins.dep;
if (_local2 == 0) {
coins["coin" + coins.dep].snd = 1;
}
coins["coin" + coins.dep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1.gotoAndStop(2);
_local1._y = _local1._y + 20;
if (_local1._y >= (220 - ((_local1.num - 1) * 4))) {
_local1._y = 220 - ((_local1.num - 1) * 4);
if (_local1.snd) {
coinSnd.start();
}
_local1.gotoAndStop(1);
_local1.onEnterFrame = null;
if ((((_local1.num - _local1._parent.k) % 55) == 0) && ((_local1._y + _local1._parent._y) <= 42.5)) {
_local1._parent.goldCoin();
}
}
}
};
coins.dep++;
_local2++;
}
_local2 = 0;
while (_local2 < tempBlockArray.length) {
if (blockArray[tempBlockArray[_local2].i][tempBlockArray[_local2].j - 1] == "coin") {
tempBlockArray.push(blockClipArray[tempBlockArray[_local2].i][tempBlockArray[_local2].j - 1]);
}
tempBlockArray[_local2].removing = 1;
tempBlockArray[_local2].block.gotoAndStop(3);
blockArray[tempblockArray[_local2].i][tempblockArray[_local2].j] = 0;
blockClipArray[tempblockArray[_local2].i][tempblockArray[_local2].j] = null;
if (tempBlockArray[_local2].coin != 1) {
tempBlockArray[_local2].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1.t++;
if (_local1.t == 4) {
_local1.removeMovieClip();
}
}
};
} else {
tempBlockArray[_local2].gotoAndStop(3);
}
_local2++;
}
}
BlockReSet();
}
function BlockReSet() {
var i = 0;
while (i < 14) {
var _local1 = 0;
var _local3 = 16;
while (_local3 > -1) {
if (blockArray[i][_local3] == 0) {
if (!_local1) {
_local1 = _local3;
}
} else if (_local1 != 0) {
trace("leaf - j : " + (_local1 - _local3));
blockArray[i][_local1] = blockArray[i][_local3];
blockClipArray[i][_local1] = blockClipArray[i][_local3];
blockArray[i][_local3] = 0;
blockClipArray[i][_local3] = null;
blockClipArray[i][_local1].i = i;
blockClipArray[i][_local1].j = _local1;
_local1 = _local1 - 1;
}
_local3--;
}
i++;
}
var _local1 = 16;
var _local2 = 0;
var i = 0;
while (i < 14) {
var aru = 0;
var _local3 = 0;
while (_local3 < 16) {
if (blockArray[i][_local3] != 0) {
aru = 1;
}
_local3++;
}
if (aru) {
if (_local1 != 16) {
_local3 = 0;
while (_local3 < 16) {
blockArray[_local1][_local3] = blockArray[i][_local3];
blockClipArray[_local1][_local3] = blockClipArray[i][_local3];
blockArray[i][_local3] = 0;
blockClipArray[i][_local3] = null;
blockClipArray[_local1][_local3].i = _local1;
blockClipArray[_local1][_local3].j = _local3;
_local3++;
}
_local1 = _local1 + 1;
}
} else {
_local2++;
if (_local1 == 16) {
_local1 = i;
}
}
i++;
}
if (_local2 > 1) {
if ((_local2 - columnLine) > 2) {
column();
}
columnLine = _local2;
var lineNum = Math.floor(13 - (_local2 / 2));
var i = lineNum;
while (i > -1) {
var _local3 = 0;
while (_local3 < 16) {
if ((i - Math.floor(_local2 / 2)) >= 0) {
blockArray[i][_local3] = blockArray[i - Math.floor(_local2 / 2)][_local3];
} else {
blockArray[i][_local3] = 0;
}
blockClipArray[i][_local3] = blockClipArray[i - Math.floor(_local2 / 2)][_local3];
blockClipArray[i - Math.floor(_local2 / 2)][_local3] = 0;
blockClipArray[i - Math.floor(_local2 / 2)][_local3] = null;
blockClipArray[i][_local3].i = i;
blockClipArray[i][_local3].j = _local3;
if ((blockClipArray[i][_local3]._x != (i * Width)) || (blockClipArray[i][_local3]._y != (_local3 * Height))) {
blockClipArray[i][_local3].k = 0;
blockClipArray[i][_local3].onEnterFrame = BlockMove;
}
_local3++;
}
i--;
}
} else {
var i = 0;
while (i < 14) {
var _local3 = 0;
while (_local3 < 16) {
if ((blockClipArray[i][_local3]._x != (i * Width)) || (blockClipArray[i][_local3]._y != (_local3 * Height))) {
blockClipArray[i][_local3].k = 0;
blockClipArray[i][_local3].onEnterFrame = BlockMove;
}
_local3++;
}
i++;
}
}
var notCounts = 0;
var i = 0;
while (i < 14) {
if (blockArray[i][1] == 0) {
var _local3 = 0;
while (_local3 < 16) {
blockClipArray[i][_local3].blink._visible = 0;
_local3++;
}
}
if (blockArray[i][0] == 0) {
notCounts++;
}
if (notCounts == 14) {
count.gotoAndStop(3);
count._visible = 0;
count.onEnterFrame = null;
}
i++;
}
}
function BlockMove() {
var _local1 = this;
var _local3 = _global;
if (!_local3.pause) {
if (!_local1.coins) {
if (_local1.k < 3) {
_local1.k++;
} else if (_local1.k == 3) {
if (_local1._x < ((_local1.i * Width) - 1)) {
_local1._x = _local1._x + (Width / 3);
} else if (_local1._x > ((_local1.i * Width) + 1)) {
_local1._x = _local1._x - (Width / 3);
} else {
_local1.xok = 1;
}
if (_local1._y < ((_local1.j * Height) - 1)) {
_local1._y = _local1._y + (Height / 3);
} else if (_local1._y > ((_local1.j * Height) + 1)) {
_local1._y = _local1._y - (Height / 3);
} else {
_local1.yok = 1;
}
if (_local1.xok && (_local1.yok)) {
_local1._x = _local1.i * Width;
_local1._y = _local1.j * Height;
_local1.xok = 0;
_local1.yok = 0;
_local1.onEnterFrame = null;
}
}
} else {
if (_local1._x < ((_local1.i * Width) - 1)) {
_local1._x = _local1._x + (Width / 2);
} else if (_local1._x > ((_local1.i * Width) + 1)) {
_local1._x = _local1._x - (Width / 2);
} else {
_local1.xok = 1;
}
if (_local1._y < ((_local1.j * Height) - 1)) {
_local1._y = _local1._y + (Height / 2);
} else if (_local1._y > ((_local1.j * Height) + 1)) {
_local1._y = _local1._y - (Height / 2);
} else {
_local1.yok = 1;
}
var _local2 = 0;
while (_local2 < 2) {
_local1._parent.attachMovie("star", "star" + dep, dep);
_local1._parent["star" + dep]._x = _local1._x + (random(20) - 10);
_local1._parent["star" + dep]._y = _local1._y - random(5);
_local1._parent["star" + dep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1._alpha = _local1._alpha - 10;
if (_local1._alpha <= 0) {
_local1.removeMovieClip();
}
}
};
dep++;
_local2++;
}
if (_local1.xok && (_local1.yok)) {
_local1._x = _local1.i * Width;
_local1._y = _local1.j * Height;
_local1.xok = 0;
_local1.yok = 0;
_local1.coins = 0;
_local1.onEnterFrame = null;
}
}
}
}
function ViewSameBlock() {
var _local2 = 0;
while (_local2 < 14) {
var _local1 = 0;
while (_local1 < 16) {
if (blockClipArray[_local2][_local1].removing != 1) {
blockClipArray[_local2][_local1].block.gotoAndStop(1);
}
_local1++;
}
_local2++;
}
if (tempBlockArray.length >= 3) {
_local2 = 0;
while (_local2 < tempBlockArray.length) {
if (tempBlockArray[_local2].removing != 1) {
tempBlockArray[_local2].block.gotoAndStop(2);
}
_local2++;
}
}
}
function BlockRollOver() {
tempBlockArray = [];
BlockChkSame(this.i, this.j);
ViewSameBlock();
}
function BlockClick() {
var _local1 = this;
if (tempBlockArray.length >= 3) {
trace("comboChkTimes-clickTimes : " + (block.comboChkTimes - clickTimes));
if ((block.comboChkTimes - clickTimes) < 30) {
poroNum++;
} else {
poroNum = 1;
}
_local1._parent._parent["poro" + poroNum].start();
if (poroNum == 5) {
poroNum = 4;
}
if ((block.comboChkTimes - clickTimes) < 15) {
comboCount++;
if (comboCount > 2) {
combo();
if (comboCount > 4) {
comboCount = 0;
}
}
} else {
comboCount = 0;
}
clickTimes = block.comboChkTimes;
_local1.click = 1;
BlockRemove();
plusScore = 3 + (stg - 1);
if ((tempBlockArray.length > 3) && (tempBlockArray.length < 6)) {
plusScore = plusScore + (((stg - 1) + 2) * (tempBlockArray.length - 2));
} else if ((tempBlockArray.length > 5) && (tempBlockArray.length < 10)) {
plusScore = plusScore + (((stg - 1) + 4) * (tempBlockArray.length - 2));
} else if ((tempBlockArray.length > 9) && (tempBlockArray.length < 16)) {
good(_local1._x, _local1._y);
plusScore = plusScore + (((stg - 1) + 10) * (tempBlockArray.length - 2));
} else if (tempBlockArray.length > 3) {
wow(_local1._x, _local1._y);
plusScore = plusScore + (((stg - 1) + 20) * (tempBlockArray.length - 2));
}
_local1._parent._parent.attachMovie("plusScore", "plusScore" + effectDep, effectDep);
_local1._parent._parent["plusScore" + effectDep]._x = block._x + _local1._x;
_local1._parent._parent["plusScore" + effectDep]._y = block._y + _local1._y;
if (plusScore < 10) {
_local1._parent._parent["plusScore" + effectDep].num.gotoAndStop(1);
} else if (plusScore < 100) {
_local1._parent._parent["plusScore" + effectDep].num.gotoAndStop(2);
} else if (plusScore < 1000) {
_local1._parent._parent["plusScore" + effectDep].num.gotoAndStop(3);
} else if (plusScore < 10000) {
_local1._parent._parent["plusScore" + effectDep].num.gotoAndStop(4);
}
VarObj.encodeVars("score", _local1._parent._parent, plusScore);
scoreM.scoreView(score);
_local1._parent._parent["plusScore" + effectDep].num.n1.gotoAndStop((plusScore % 10) + 1);
_local1._parent._parent["plusScore" + effectDep].num.n2.gotoAndStop(Math.floor((plusScore % 100) / 10) + 1);
_local1._parent._parent["plusScore" + effectDep].num.n3.gotoAndStop(Math.floor((plusScore % 1000) / 100) + 1);
_local1._parent._parent["plusScore" + effectDep].num.n4.gotoAndStop(Math.floor((plusScore % 10000) / 1000) + 1);
_local1._parent._parent["plusScore" + effectDep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1._y = _local1._y - 2;
_local1.i++;
if (_local1.i == 30) {
_local1.removeMovieClip();
}
}
};
effectDep++;
_local1.onPress = null;
}
}
function NextBlockPreSet() {
nextBlockArray = [];
var _local1 = 0;
while (_local1 < 14) {
if (stg < 3) {
nextBlockArray[_local1] = random(3) + 1;
} else {
nextBlockArray[_local1] = random(4) + 1;
}
nextBlocks["b" + _local1].gotoAndStop(nextBlockArray[_local1]);
_local1++;
}
nextBlocks._y = nextBlocksY + Height;
nextBlocks.onEnterFrame = NextBlocksUping;
}
function NextBlocksUping() {
var _local1 = this;
if ((!_global.pause) && (!locking)) {
if ((count._visible != 1) && (!bombing)) {
_local1.i++;
if ((_local1.i % delayTime) == 0) {
_local1._y = _local1._y - 1;
if (_local1._y == nextBlocksY) {
_local1.onEnterFrame = null;
NextBlockSet();
}
}
}
} else if ((!_global.pause) && (locking)) {
more._visible = 1;
if (iceView != 1) {
iceView = 1;
_root.attachMovie("ice", "ice", effectDep);
effectDep++;
ice._x = 330;
ice._y = 250;
}
_local1.l++;
if (_local1.l > 100) {
more._alpha = more._alpha - 1;
}
if (_local1.l == 150) {
iceView = 0;
more._visible = 0;
more._alpha = 100;
_local1.l = 0;
locking = 0;
}
}
}
function NextBlockSet() {
columnLine = 0;
var _local1 = 0;
while (_local1 < 14) {
blockArray[_local1].shift();
blockClipArray[_local1].shift();
blockArray[_local1][15] = nextBlockArray[_local1];
block.attachMovie("block", (("block" + _local1) + "_") + dep, dep);
blockClipArray[_local1][15] = block[(("block" + _local1) + "_") + dep];
blockClipArray[_local1][15]._x = Width * _local1;
blockClipArray[_local1][15]._y = Height * 16;
blockClipArray[_local1][15].i = _local1;
blockClipArray[_local1][15].j = 16;
blockClipArray[_local1][15].onRollOver = BlockRollOver;
blockClipArray[_local1][15].onPress = BlockClick;
blockClipArray[_local1][15].useHandCursor = 0;
dep++;
blockClipArray[_local1][15].gotoAndStop(blockArray[_local1][15]);
var _local2 = 0;
while (_local2 < 16) {
blockClipArray[_local1][_local2].j = blockClipArray[_local1][_local2].j - 1;
blockClipArray[_local1][_local2].k = 2;
if ((_local2 == 15) || (blockClipArray[_local1][_local2].afterAttach == 1)) {
blockClipArray[_local1][_local2].afterAttach = 1;
blockClipArray[_local1][_local2].k = 3;
}
blockClipArray[_local1][_local2].onEnterFrame = BlockMove;
_local2++;
}
if (blockArray[_local1][1] != 0) {
_local2 = 0;
while (_local2 < 16) {
blockClipArray[_local1][_local2].blink._visible = 1;
_local2++;
}
}
if (blockArray[_local1][0] != 0) {
count._x = 236;
count._y = 130;
CountDown();
}
_local1++;
}
NextBlockPreSet();
}
function CountDown() {
var _local1 = this;
count._visible = 1;
count.gotoAndStop(1);
count.i = 0;
count.onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
if (gameClear) {
_local1._visible = 0;
_local1.gotoAndStop(3);
_local1.onEnterFrame = null;
_local1.i = 0;
}
if (!bombing) {
_local1.i++;
if (_local1.i == 1) {
alert.start();
}
if (_local1.i == 55) {
_local1.i = 0;
_local1.nextFrame();
if (_local1._currentframe == 4) {
gameClear = 1;
gameOver = 1;
_local1._parent.gotoAndStop("gameOver");
_local1.onEnterFrame = null;
}
}
}
}
};
}
function bombDrop() {
var _local2 = random(14);
var _local1 = 15;
while (_local1 >= 0) {
if (blockArray[_local2][_local1] == 0) {
block.attachMovie("bomb", "bomb" + dep, dep);
blockArray[_local2][_local1] = "coin";
blockClipArray[_local2][_local1] = block["bomb" + dep];
blockClipArray[_local2][_local1].colors = blockArray[_local2][_local1 + 1];
blockClipArray[_local2][_local1]._x = _local2 * Width;
blockClipArray[_local2][_local1]._y = 0;
blockClipArray[_local2][_local1].i = _local2;
blockClipArray[_local2][_local1].j = _local1;
blockClipArray[_local2][_local1].coin = 1;
blockClipArray[_local2][_local1].coins = 1;
blockClipArray[_local2][_local1].onEnterFrame = BlockMove;
dep++;
return;
}
_local1--;
}
}
function missileDrop() {
var _local2 = random(14);
var _local1 = 15;
while (_local1 >= 0) {
if (blockArray[_local2][_local1] == 0) {
block.attachMovie("missile", "missile" + dep, dep);
blockArray[_local2][_local1] = "coin";
blockClipArray[_local2][_local1] = block["missile" + dep];
blockClipArray[_local2][_local1].colors = blockArray[_local2][_local1 + 1];
blockClipArray[_local2][_local1]._x = _local2 * Width;
blockClipArray[_local2][_local1]._y = 0;
blockClipArray[_local2][_local1].i = _local2;
blockClipArray[_local2][_local1].j = _local1;
blockClipArray[_local2][_local1].coin = 1;
blockClipArray[_local2][_local1].coins = 1;
blockClipArray[_local2][_local1].onEnterFrame = BlockMove;
dep++;
return;
}
_local1--;
}
}
function GoldCoinDrop() {
if (!gameClear) {
var _local2 = random(14);
if (blockArray[_local2][0] != 0) {
var x2 = _local2;
var _local3 = x2;
while (_local3 < 14) {
if (blockArray[_local3][0] == 0) {
_local2 = _local3;
break;
}
_local3++;
}
if (_local2 == x2) {
_local3 = x2;
while (_local3 >= 0) {
if (blockArray[_local3][0] == 0) {
_local2 = _local3;
break;
}
_local3--;
}
}
if (_local2 == x2) {
return(0);
}
}
var _local1 = 15;
while (_local1 >= 0) {
if (blockArray[_local2][_local1] == 0) {
block.attachMovie("goldCoin", "goldCoin" + dep, dep);
blockArray[_local2][_local1] = "coin";
blockClipArray[_local2][_local1] = block["goldCoin" + dep];
blockClipArray[_local2][_local1]._x = _local2 * Width;
blockClipArray[_local2][_local1]._y = 0;
blockClipArray[_local2][_local1].i = _local2;
blockClipArray[_local2][_local1].j = _local1;
blockClipArray[_local2][_local1].coin = 1;
blockClipArray[_local2][_local1].coins = 1;
blockClipArray[_local2][_local1].onEnterFrame = BlockMove;
dep++;
return(undefined);
}
_local1--;
}
}
return(undefined);
}
function CoinGetEffect(x, y) {
var _local3 = this;
getGoldSnd.start();
getCoins++;
if (getCoins > boxes) {
getCoins = boxes;
}
if (getCoins == boxes) {
var _local2 = 0;
while (_local2 < 14) {
var _local1 = 0;
while (_local1 < 16) {
blockClipArray[_local2][_local1].onPress = null;
blockClipArray[_local2][_local1].onRollOver = null;
_local1++;
}
_local2++;
}
}
xM = _local3["box" + getCoins]._x;
yM = _local3["box" + getCoins]._y;
_local3.attachMovie("getHanja", "getHanja" + effectDep, effectDep);
_local3["getHanja" + effectDep]._x = block._x + x;
_local3["getHanja" + effectDep]._y = block._y + y;
_local3["getHanja" + effectDep].getCoins = getCoins;
effectDep++;
_local3.attachMovie("getGoldCoinEffect", "getGoldCoinEffect" + effectDep, effectDep);
_local3["getGoldCoinEffect" + effectDep].mark = _local3["box" + getCoins];
_local3["getGoldCoinEffect" + effectDep]._x = block._x + x;
_local3["getGoldCoinEffect" + effectDep]._y = block._y + y;
_local3["getGoldCoinEffect" + effectDep].speed = 30;
_local3["getGoldCoinEffect" + effectDep].times = 0;
_local3["getGoldCoinEffect" + effectDep].rd = Math.atan2(yM - (block._y + y), xM - (block._x + x));
_local3["getGoldCoinEffect" + effectDep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1._parent.attachMovie("star", "star" + dep, dep);
_local1._parent["star" + dep]._x = _local1._x + (random(20) - 10);
_local1._parent["star" + dep]._y = _local1._y + (random(20) - 10);
_local1._parent["star" + dep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1._alpha = _local1._alpha - 10;
if (_local1._alpha <= 0) {
_local1.removeMovieClip();
}
}
};
dep++;
_local1.times++;
if (_local1.times > 20) {
if (_local1._x >= _local1.mark._x) {
_local1._x = _local1._x + (_local1.speed * Math.cos(_local1.rd));
_local1._y = _local1._y + (_local1.speed * Math.sin(_local1.rd));
}
trace("bombing" + bombing);
if (_local1._x < _local1.mark._x) {
_local1.mark.gotoAndStop(3);
_local1.onEnterFrame = null;
if (getCoins == boxes) {
gameClear = 1;
_local1._parent.gotoAndStop("gameClear");
}
_local1.removeMovieClip();
}
}
}
};
effectDep++;
}
function RemoveMouseEvent() {
var _local2 = 0;
while (_local2 < 14) {
var _local1 = 0;
while (_local1 < 16) {
blockClipArray[_local2][_local1].onPress = null;
blockClipArray[_local2][_local1].onRollOver = null;
_local1++;
}
_local2++;
}
}
function DropAllBlock(stat) {
var _local3 = this;
var _local2 = 0;
while (_local2 < 14) {
var _local1 = 0;
while (_local1 < 16) {
blockClipArray[_local2][_local1].delay = random(10);
blockClipArray[_local2][_local1].speed = -10;
if (stat == 0) {
blockClipArray[_local2][_local1].block.gotoAndStop(4);
if (blockArray[_local2][_local1] == "coin") {
blockClipArray[_local2][_local1].gotoAndStop(4);
}
blockClipArray[_local2][_local1].d = 45;
}
blockClipArray[_local2][_local1].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1.d++;
if (_local1.d >= (_local1.delay + 45)) {
_local1._y = _local1._y + _local1.speed;
_local1.speed = _local1.speed + 2;
if (_local1._y > 400) {
_local1.removeMovieClip();
}
}
}
};
_local1++;
}
_local2++;
}
}
stop();
this.attachMovie("pause", "pausing", 3235);
pausing._x = 236;
pausing._y = 138.5;
pausing._visible = 0;
character.i = 0;
character.gotoAndStop(1);
setMission = null;
columnLine = 0;
gameOver = 0;
gameClear = 0;
Width = 18;
Height = 17;
tempBlockArray = [];
effectDep = 0;
getCoins = 0;
pan.useHandCursor = 0;
stgM.stgView(stg);
Init();
BlockSet();
Instance of Symbol 355 MovieClip "character" in Frame 22
onClipEvent (enterFrame) {
this.i++;
if (this.i == 300) {
_parent.missionSnd.start();
if (_parent.stg < 3) {
ran = random(3) + 1;
} else {
ran = random(4) + 1;
}
_parent.setMission = ran;
this.block._visible = 1;
this.pan._visible = 1;
this.block.gotoAndStop(ran);
} else if (this.i == 450) {
this.gotoAndStop(2);
this.block.gotoAndStop(ran);
} else if (this.i == 540) {
this.gotoAndStop(3);
this.block.gotoAndStop(ran);
}
}
Instance of Symbol 375 MovieClip "scoreM" in Frame 22
onClipEvent (load) {
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++;
}
scoreView(this._parent.score);
}
Instance of Symbol 378 MovieClip "stgM" in Frame 22
onClipEvent (load) {
function stgView(stg) {
var _local1 = stg;
if (!this._parent.ready) {
if (_local1 < 10) {
gotoAndStop (1);
num.gotoAndStop(_local1 + 1);
} else {
gotoAndStop (2);
num.s1.gotoAndStop((_local1 % 10) + 1);
num.s10.gotoAndStop(Math.floor(_local1 / 10) + 1);
}
}
}
stop();
this.stgView(this._parent.stg);
}
Instance of Symbol 382 MovieClip "iBtn1" in Frame 22
onClipEvent (load) {
if (_parent.item1Amount > 0) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 384 MovieClip "iBtn2" in Frame 22
onClipEvent (load) {
if (_parent.item1Amount > 1) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 384 MovieClip "iBtn3" in Frame 22
onClipEvent (load) {
if (_parent.item1Amount > 2) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 427 MovieClip "count" in Frame 22
onClipEvent (load) {
_visible = 0;
}
Frame 23
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 24
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 25
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 26
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 27
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 28
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 29
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 30
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 31
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 32
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 33
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
function wow(x, y) {
var _local1 = this;
VarObj.encodeVars("score", _local1, 300);
scoreM.scoreView(score);
_local1.attachMovie("wow", "wow" + effectDep, effectDep);
_local1["wow" + effectDep]._x = block._x + x;
_local1["wow" + effectDep]._y = (block._y + y) - 20;
_local1["wow" + effectDep].onEnterFrame = function () {
if (!_global.pause) {
this._y = this._y - 2;
}
};
wowSnd.start();
effectDep++;
}
function good(x, y) {
var _local1 = this;
VarObj.encodeVars("score", _local1, 200);
scoreM.scoreView(score);
_local1.attachMovie("good", "good" + effectDep, effectDep);
_local1["good" + effectDep]._x = block._x + x;
_local1["good" + effectDep]._y = (block._y + y) - 20;
_local1["good" + effectDep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1._y = _local1._y - 2;
_local1.i++;
if (_local1.i == 30) {
_local1.removeMovieClip();
}
}
};
effectDep++;
}
function combo() {
var _local1 = this;
trace("combo");
VarObj.encodeVars("score", _local1, 500);
scoreM.scoreView(score);
_local1.attachMovie("combo", "combo" + effectDep, effectDep);
_local1["combo" + effectDep]._x = block._x + 60;
_local1["combo" + effectDep]._y = block._y + 110;
_local1["combo" + effectDep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1._y = _local1._y - 2;
_local1.i++;
if (_local1.i == 30) {
_local1.removeMovieClip();
}
}
};
effectDep++;
}
function column() {
var _local1 = this;
trace("column");
VarObj.encodeVars("score", _local1, 500);
scoreM.scoreView(score);
_local1.attachMovie("column", "column" + effectDep, effectDep);
_local1["column" + effectDep]._x = block._x + 80;
_local1["column" + effectDep]._y = block._y + 120;
_local1["column" + effectDep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1.i++;
if (_local1.i > 2) {
_local1._y = _local1._y - 2;
}
if (_local1.i == 32) {
_local1.removeMovieClip();
}
}
};
effectDep++;
}
function tower() {
var _local1 = this;
trace("tower");
VarObj.encodeVars("score", _local1, 500);
scoreM.scoreView(score);
_local1.attachMovie("tower", "tower" + effectDep, effectDep);
_local1["tower" + effectDep]._x = block._x + 100;
_local1["tower" + effectDep]._y = block._y + 130;
_local1["tower" + effectDep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1.i++;
if (_local1.i > 4) {
_local1._y = _local1._y - 2;
}
if (_local1.i == 34) {
_local1.removeMovieClip();
}
}
};
effectDep++;
}
function mission() {
var _local1 = this;
trace("mission");
VarObj.encodeVars("score", _local1, 500);
scoreM.scoreView(score);
character.i = 0;
character.gotoAndStop(4);
character.block.gotoAndStop(character.ran);
setMission = null;
_local1.attachMovie("mission", "mission" + effectDep, effectDep);
_local1["mission" + effectDep]._x = block._x + 120;
_local1["mission" + effectDep]._y = block._y + 150;
_local1["mission" + effectDep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1.i++;
if (_local1.i > 4) {
_local1._y = _local1._y - 2;
}
if (_local1.i == 34) {
_local1.removeMovieClip();
}
}
};
effectDep++;
}
function SameColorRemove(col) {
var _local1 = this;
VarObj.encodeVars("score", _local1, 500);
scoreM.scoreView(score);
trace("\uD130\uC9C4\uB2E4" + col);
RemoveMouseEvent();
bombing = 1;
var temps = [];
var _local3 = 0;
while (_local3 < 14) {
var _local2 = 0;
while (_local2 < 16) {
if (blockArray[_local3][_local2] == col) {
temps.push(blockClipArray[_local3][_local2]);
}
_local2++;
}
_local3++;
}
_local1.createEmptyMovieClip("bombChk", effectDep);
effectDep++;
bombChk.i = 0;
bombChk.temps = temps;
bombChk.onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
if ((_local1.i % 2) == 0) {
if (blockArray[_local1.temps[_local1.i / 2].i][_local1.temps[_local1.i / 2].j - 1] == "coin") {
_local1.temps.push(blockClipArray[_local1.temps[_local1.i / 2].i][_local1.temps[_local1.i / 2].j - 1]);
trace("coin : " + _local1.temps[_local1.temps.length - 1]);
}
if (blockArray[_local1.temps[_local1.i / 2].i][_local1.temps[_local1.i / 2].j] != "coin") {
_local1.temps[_local1.i / 2].gotoAndStop(5);
_local1.temps[_local1.i / 2].onEnterFrame = function () {
var _local1 = this;
_local1.t++;
if (_local1.t >= 7) {
_local1.removeMovieClip();
}
};
}
_local1.temps[_local1.i / 2].removing = 1;
if (blockArray[_local1.temps[_local1.i / 2].i][_local1.temps[_local1.i / 2].j] == "coin") {
_local1.temps[_local1.i / 2].gotoAndStop(3);
}
blockArray[_local1.temps[_local1.i / 2].i][_local1.temps[_local1.i / 2].j] = 0;
blockClipArray[_local1.temps[_local1.i / 2].i][_local1.temps[_local1.i / 2].j] = null;
}
if ((_local1.i / 2) == _local1.temps.length) {
_local1.onEnterFrame = null;
bombing = 0;
if (!gameClear) {
BlockReSet();
_local1.i = 0;
while (_local1.i < 14) {
_local1.j = 0;
while (_local1.j < 16) {
BlockClipArray[_local1.i][_local1.j].onRollOver = BlockRollOver;
BlockClipArray[_local1.i][_local1.j].onPress = BlockClick;
_local1.j++;
}
_local1.i++;
}
}
_local1.removeMovieClip();
}
_local1.i++;
}
};
}
function missileBomb(j) {
var _local1 = this;
trace(" j : " + j);
RemoveMouseEvent();
var _local2 = [];
var _local3 = 0;
while (_local3 < 14) {
_local2.push(blockClipArray[_local3][j - 1]);
_local2.push(blockClipArray[_local3][j]);
_local2.push(blockClipArray[_local3][j + 1]);
_local3++;
}
_local3 = 0;
while (_local3 < _local2.length) {
if (_local2[_local3] != undefined) {
coins.coin.duplicateMovieClip("coin" + coins.dep, coins.dep);
coins["coin" + coins.dep]._visible = 1;
coins["coin" + coins.dep]._y = (_local3 * -20) - (coins.y * 220);
coins["coin" + coins.dep].num = coins.dep;
if (_local3 == 0) {
coins["coin" + coins.dep].snd = 1;
}
coins["coin" + coins.dep].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1._y = _local1._y + 20;
if (_local1._y >= (220 - ((_local1.num - 1) * 4))) {
_local1._y = 220 - ((_local1.num - 1) * 4);
if (_local1.snd) {
coinSnd.start();
}
_local1.gotoAndStop(1);
_local1.onEnterFrame = null;
if ((((_local1.num - _local1._parent.k) % 55) == 0) && ((_local1._y + _local1._parent._y) == 42.5)) {
_local1._parent.goldCoin();
}
}
}
};
coins.dep++;
}
_local3++;
}
_local3 = 0;
while (_local3 < _local2.length) {
if (blockArray[_local2[_local3].i][_local2[_local3].j - 1] == "coin") {
_local2.push(blockClipArray[_local2[_local3].i][_local2[_local3].j - 1]);
trace("coin : " + _local2[tems.length - 1]);
}
if (blockArray[_local2[_local3].i][_local2[_local3].j] != "coin") {
VarObj.encodeVars("score", _local1, 5);
scoreM.scoreView(score);
_local2[_local3].block.gotoAndStop(3);
_local2[_local3].onEnterFrame = function () {
var _local1 = this;
_local1.t++;
if (_local1.t >= 4) {
_local1.removeMovieClip();
}
};
}
_local2[_local3].removing = 1;
if (blockArray[_local2[_local3].i][_local2[_local3].j] == "coin") {
_local2[_local3].gotoAndStop(3);
}
blockArray[_local2[_local3].i][_local2[_local3].j] = 0;
blockClipArray[_local2[_local3].i][_local2[_local3].j] = null;
_local3++;
}
BlockReSet();
if (!gameClear) {
_local1.i = 0;
while (_local1.i < 14) {
_local1.j = 0;
while (_local1.j < 16) {
BlockClipArray[_local1.i][_local1.j].onRollOver = BlockRollOver;
BlockClipArray[_local1.i][_local1.j].onPress = BlockClick;
_local1.j++;
}
_local1.i++;
}
}
}
nextBlocksY = nextBlocks._y;
BlockOnMouse();
NextBlockPreSet();
coins.startY = 38.5;
collectNums.gotoAndStop(boxes);
if (stg == 1) {
BombDrop();
missileDrop();
}
bgm.start(0, 999);
coins.goldCoin = function () {
var _local1 = this;
dropGoldSnd.start();
coins.i = 0;
coins.y++;
coinMark.play();
GoldCoinDrop();
coins.onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1._y = _local1._y + 20;
_local1.i++;
if (_local1.i == 11) {
_local1.i = 0;
_local1.onEnterFrame = coinOEF;
}
}
};
};
coinOEF = function () {
var _local1 = this;
if (!_global.pause) {
_local1.i++;
if (_local1.i == coinDelay) {
_local1.i = 0;
if (((_local1.dep - _local1.k) % 55) > 0) {
_local1._y = _local1._y + 4;
_local1.k++;
}
}
_local1.j++;
if (_local1.j == 600) {
_local1.j = 0;
_local1.ran = random(3);
if (_local1.ran == 1) {
trace("\uD3ED\uD0C4");
BombDrop();
} else if (_local1.ran == 2) {
trace("\uBBF8\uC0AC\uC77C");
missileDrop();
} else {
trace("\uAF5D");
}
}
}
};
coins.onEnterFrame = coinOEF;
block.comboChkTimes = 30;
clickTimes = 0;
block.onEnterFrame = function () {
if (!_global.pause) {
this.comboChkTimes++;
}
};
Instance of Symbol 437 MovieClip "coins" in Frame 33
onClipEvent (load) {
this.coin._visible = 0;
this.coin.stop();
this.num = 0;
this.dep = 1;
this.y = 0;
}
Instance of Symbol 440 MovieClip "more" in Frame 33
onClipEvent (load) {
this._visible = 0;
}
Frame 34
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 35
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 36
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 37
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 38
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 39
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 40
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
bgm.stop("bgm");
locking = 0;
niceSnd.start();
bombing = 0;
gameClear = 1;
RemoveMouseEvent();
nextBlocks.onEnterFrame = null;
VarObj.encodeVars("stg", this, 1);
if ((delayTime > 1) && ((stg % 2) == 0)) {
delayTime--;
}
if (coinDelay > 10) {
coinDelay = coinDelay - 5;
}
if (stg == 3) {
boxes = 3;
} else if (stg == 6) {
boxes = 4;
} else if (stg == 9) {
boxes = 5;
} else if (stg == 12) {
boxes = 6;
}
character.gotoAndStop(5);
DropAllBlock(1);
times = 0;
this.onEnterFrame = function () {
var _local2 = this;
if (!_global.pause) {
_local2.times++;
if (_local2.times == 45) {
blockDroped.start();
}
if (_local2.times == 90) {
_local2.onEnterFrame = null;
pauseBtn.removeMovieClip();
for (var _local1 in block) {
block[_local1].removeMovieClip();
}
_local2.gotoAndStop("gameReady");
}
}
};
coins.onEnterFrame = function () {
if (!_global.pause) {
this._y = this._y + 2.5;
}
};
Instance of Symbol 378 MovieClip "stgM" in Frame 40
onClipEvent (load) {
function stgView(stg) {
var _local1 = stg;
if (!this._parent.ready) {
if (_local1 < 10) {
gotoAndStop (1);
num.gotoAndStop(_local1 + 1);
} else {
gotoAndStop (2);
num.s1.gotoAndStop((_local1 % 10) + 1);
num.s10.gotoAndStop(Math.floor(_local1 / 10) + 1);
}
}
}
stop();
this.stgView(this._parent.stg - 1);
}
Instance of Symbol 476 MovieClip "iBtn1" in Frame 40
onClipEvent (load) {
if (_parent.item1Amount > 0) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 476 MovieClip "iBtn2" in Frame 40
onClipEvent (load) {
if (_parent.item1Amount > 1) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 476 MovieClip "iBtn3" in Frame 40
onClipEvent (load) {
if (_parent.item1Amount > 2) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Frame 41
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 42
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 43
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 44
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 45
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 46
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 47
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 48
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 49
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 50
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 51
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
bgm.stop("bgm");
overSnd.start();
locking = 0;
bombing = 0;
gameOver = 1;
gameClear = 1;
character.gotoAndStop(6);
RemoveMouseEvent();
var i = 0;
while (i < 14) {
var j = 0;
while (j < 16) {
blockClipArray[i][j].blink._visible = 0;
j++;
}
i++;
}
DropAllBlock(0);
pausing.removeMovieClip();
pauseBtn.removeMovieClip();
_global.pause = 0;
Instance of Symbol 378 MovieClip "stgM" in Frame 51
onClipEvent (load) {
function stgView(stg) {
var _local1 = stg;
if (!this._parent.ready) {
if (_local1 < 10) {
gotoAndStop (1);
num.gotoAndStop(_local1 + 1);
} else {
gotoAndStop (2);
num.s1.gotoAndStop((_local1 % 10) + 1);
num.s10.gotoAndStop(Math.floor(_local1 / 10) + 1);
}
}
}
stop();
this.stgView(this._parent.stg);
}
Frame 52
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
VarObj.encodeVars("score", box1._parent, 0);
trace("score : " + core);
coins.onEnterFrame = null;
tempScore = score;
if (item3) {
score = score * 2;
}
if (userlevel == originallevel) {
if ((userlevel == 1) && (stg >= 6)) {
levelup = 1;
} else if ((userlevel == 2) && (stg >= 10)) {
levelup = 1;
} else {
levelup = 0;
}
} else {
levelup = 0;
}
sendScore();
Frame 53
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 54
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 55
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 56
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 57
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 58
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 59
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 60
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 61
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 62
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 63
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 64
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 65
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 66
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 67
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Frame 68
if (urlChk()) {
} else {
_root.gotoAndStop("loading");
}
if (auth.auth_ret) {
} else {
_root.gotoAndStop("loading");
}
Symbol 33 MovieClip [pause] Frame 1
this.blackBoard.useHandCursor = false;
Symbol 55 MovieClip Frame 8
this._parent._parent._parent.CoinGetEffect(this._parent._x, this._parent._y);
this._parent.removeMovieClip();
Symbol 58 MovieClip [goldCoin] Frame 1
stop();
Symbol 65 MovieClip Frame 3
stop();
Symbol 72 MovieClip Frame 3
stop();
Symbol 79 MovieClip Frame 3
stop();
Symbol 86 MovieClip Frame 3
stop();
Symbol 126 MovieClip Frame 1
var i = 0;
while (i < 30) {
star.duplicateMovieClip("star" + i, i);
this["star" + i]._x = random(70) - 35;
this["star" + i]._y = -random(10);
this["star" + i].xspeed = random(6) - 3;
this["star" + i].yspeed = random(5) + 5;
this["star" + i].onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + _local1.xspeed;
_local1._y = _local1._y - _local1.yspeed;
_local1.yspeed--;
if (_local1.yspeed == -10) {
_local1.removeMovieClip();
}
};
star._visible = 0;
i++;
}
Symbol 127 MovieClip [wow] Frame 31
this.removeMovieClip();
stop();
Symbol 137 MovieClip Frame 7
_parent._parent._parent.SameColorRemove(_parent.colors);
_parent.removeMovieClip();
Symbol 140 MovieClip [bomb] Frame 1
stop();
Symbol 150 MovieClip Frame 4
_parent._parent._parent.missileBomb(this._parent.j);
Symbol 150 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 153 MovieClip [missile] Frame 1
stop();
Symbol 170 MovieClip Frame 12
stop();
Symbol 171 MovieClip [ice] Frame 35
this.removeMovieClip();
Instance of Symbol 178 MovieClip in Symbol 179 MovieClip [getHanja] Frame 1
onClipEvent (load) {
this.gotoAndStop(_parent.getCoins);
}
Symbol 179 MovieClip [getHanja] Frame 20
this.removeMovieClip();
Symbol 182 MovieClip Frame 4
_parent._parent.removeMovieClip();
Symbol 184 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 4
_parent._parent.removeMovieClip();
Symbol 191 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 4
_parent._parent.removeMovieClip();
Symbol 196 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 4
_parent._parent.removeMovieClip();
Symbol 201 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 7
_parent.removeMovieClip();
Instance of Symbol 186 MovieClip "blink" in Symbol 204 MovieClip [block] Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 226 MovieClip Frame 8
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
loadingbar._x = (((_root.getBytesLoaded() * 100) / _root.getBytesTotal()) * 1.47) + -153.7;
if (this._parent._parent.auth_ret) {
this._parent.gotoAndPlay("loadingOk");
} else {
stop();
loadingbar.onEnterFrame = function () {
var _local1 = this;
if (_local1._parent._parent.auth_ret) {
_local1._parent.gotoAndPlay("loadingOk");
_local1.onEnterFrame = null;
} else {
_local1.ij++;
if (_local1.ij == 150) {
_local1.ij = 0;
_local1._parent._parent.auth_retChk();
}
}
};
}
} else {
stop();
loadingbar.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._x = (((_local2.getBytesLoaded() * 100) / _local2.getBytesTotal()) * 1.47) + -143.7;
if (_local2.getBytesLoaded() >= _local2.getBytesTotal()) {
if (_local1._parent._parent.auth_ret) {
_local1._parent.gotoAndPlay("loadingOk");
_local1.onEnterFrame = null;
} else {
loadingbar._x = (((_local2.getBytesLoaded() * 100) / _local2.getBytesTotal()) * 1.47) + -153.7;
_local1.ij++;
if (_local1.ij == 150) {
_local1.ij = 0;
_local1._parent._parent.auth_retChk();
}
}
}
};
}
Symbol 226 MovieClip Frame 24
_parent.gotoAndPlay("loading_ok");
Symbol 227 MovieClip Frame 3
function auth_retChk() {
var _local1 = _root;
if (!_local1.okChk) {
authChkOb = new LoadVars();
authChkOb.game_type = _local1.game_type;
authChkOb.use_id = _local1.use_id;
authChkOb.master_id = _local1.master_id;
authChkOb.game_seq = _local1.game_seq;
authChkOb.dummy = _local1.dummy;
auth_ret = 1;
authChkOb.onLoad = function (success) {
if (success) {
auth_ret = this.auth_ret;
} else {
auth_ret = 0;
}
};
}
}
auth_retChk();
Symbol 227 MovieClip Frame 25
if (_global.reGameStart) {
gotoAndPlay(_currentframe + 2);
} else {
_global.reGameStart = 1;
}
Symbol 227 MovieClip Frame 26
stop();
Symbol 227 MovieClip Frame 37
if (!_root.okChk) {
if (auth_ret) {
_root.okChk = 1;
_root.auth = new Object();
_root.auth.auth_ret = auth_ret;
_root.gotoAndStop("title");
} else {
_root.gotoAndStop(1);
}
} else {
_root.gotoAndStop("title");
}
Symbol 241 Button
on (release) {
if (!click) {
uitem1 = 1;
item1 = uItem1;
if (item1 == 1) {
item1Amount = 3;
}
item2 = uItem2;
item3 = uItem3;
click = 1;
i = 0;
((snd_startBtn = new Sound())).attachSound("click");
snd_startBtn.start();
_root.onEnterFrame = function () {
trace(i);
i++;
if (i == 6) {
delete i;
delete click;
_root.onEnterFrame = null;
itemOb.userTemp = 1;
gotoAndStop ("gameReady");
}
};
}
}
Symbol 244 Button
on (release) {
if (!click) {
click = 1;
i = 0;
((snd_howBtn = new Sound())).attachSound("howsnd");
snd_howBtn.start();
_root.onEnterFrame = function () {
i++;
if (i == 3) {
itemOb.userTemp = 1;
delete i;
delete click;
_root.onEnterFrame = null;
_root.gotoAndStop("howTo");
}
};
}
}
Symbol 264 MovieClip Frame 1
stop();
Symbol 305 Button
on (release, keyPress "p") {
if ((_root.gameover._visible != 1) && (_root.allclear._visible != 1)) {
_global.pause = 1;
_root.sndVolume.setVolume(0);
_parent.pausing._visible = 1;
_parent.coins._visible = 0;
_parent.nextBlocks._visible = 0;
nextFrame();
}
}
on (rollOver) {
p._visible = 1;
}
on (rollOut) {
p._visible = 0;
}
Symbol 310 Button
on (release, keyPress "p") {
_global.pause = 0;
_root.sndVolume.setVolume(100);
_parent.pausing._visible = 0;
_parent.coins._visible = 1;
_parent.nextBlocks._visible = 1;
prevFrame();
}
Symbol 323 MovieClip Frame 1
stop();
Instance of Symbol 308 MovieClip "p" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Symbol 323 MovieClip Frame 2
stop();
Symbol 325 Button
on (release) {
if (!_global.pause) {
_root.sndvolume.setVolume(0);
nextFrame();
}
}
on (rollOver) {
_root.pauseReady = 1;
}
on (rollOut) {
_root.pauseReady = 0;
}
Symbol 327 Button
on (release) {
if (!_global.pause) {
_root.sndvolume.setVolume(100);
prevFrame();
}
}
on (rollOver) {
_root.pauseReady = 1;
}
on (rollOut) {
_root.pauseReady = 0;
}
Symbol 328 MovieClip Frame 1
stop();
Symbol 332 Button
on (rollOver) {
if (gameClear != 1) {
var i = 0;
while (i < 14) {
var j = 0;
while (j < 16) {
if (blockClipArray[i][j].removing != 1) {
blockClipArray[i][j].block.gotoAndStop(1);
}
j++;
}
i++;
}
}
}
Instance of Symbol 204 MovieClip [block] in Symbol 334 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 349 MovieClip Frame 10
stop();
Instance of Symbol 349 MovieClip in Symbol 350 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 2;
}
Instance of Symbol 349 MovieClip in Symbol 350 MovieClip Frame 5
onClipEvent (enterFrame) {
this._y = this._y - 2;
}
Instance of Symbol 349 MovieClip in Symbol 350 MovieClip Frame 10
onClipEvent (enterFrame) {
this._y = this._y - 2;
}
Symbol 355 MovieClip Frame 1
stop();
Instance of Symbol 342 MovieClip "pan" in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 204 MovieClip [block] "block" in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
stop();
}
Instance of Symbol 342 MovieClip "pan" in Symbol 355 MovieClip Frame 2
onClipEvent (load) {
this.x = this._x;
this.y = this._y;
}
Instance of Symbol 204 MovieClip [block] "block" in Symbol 355 MovieClip Frame 2
onClipEvent (load) {
this.x = this._x;
this.y = this._y;
}
onClipEvent (enterFrame) {
if (!_global.pause) {
xr = random(3) - 1;
yr = random(3) - 1;
this._x = this.x + xr;
this._y = this.y + yr;
_parent.pan._x = _parent.pan.x + xr;
_parent.pan._y = _parent.pan.y + yr;
}
}
Instance of Symbol 342 MovieClip "pan" in Symbol 355 MovieClip Frame 3
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 204 MovieClip [block] "block" in Symbol 355 MovieClip Frame 3
onClipEvent (load) {
this._visible = 0;
_parent._parent.setMission = null;
this.block.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (!_global.pause) {
this.i++;
if (this.i == 60) {
this._parent.i = 0;
this._parent.gotoAndStop(1);
}
}
}
Instance of Symbol 342 MovieClip "pan" in Symbol 355 MovieClip Frame 4
onClipEvent (enterFrame) {
if (!_global.pause) {
this.i++;
if (this.i == 4) {
this._visible = 0;
}
}
}
Instance of Symbol 204 MovieClip [block] "block" in Symbol 355 MovieClip Frame 4
onClipEvent (load) {
_parent._parent.setMission = null;
this.block.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (!_global.pause) {
this.i++;
if (this.i == 4) {
this._visible = 0;
}
if (this.i == 60) {
this._parent.i = 0;
this._parent.gotoAndStop(1);
}
}
}
Symbol 381 Button
on (release, keyPress "<Enter>") {
if ((this._parent.item1Amount > 0) && (!this._parent.locking)) {
this._parent["iBtn" + this._parent.item1Amount]._visible = 0;
this._parent.locking = 1;
this._parent.item1Amount--;
}
}
Symbol 383 Button
on (release) {
if ((this._parent.item1Amount > 0) && (!this._parent.locking)) {
this._parent["iBtn" + this._parent.item1Amount]._visible = 0;
this._parent.locking = 1;
this._parent.item1Amount--;
}
}
Symbol 392 MovieClip Frame 1
var i = 0;
while (i < 30) {
star.duplicateMovieClip("star" + i, i);
this["star" + i]._x = random(100) - 50;
this["star" + i]._y = -random(20);
this["star" + i].xspeed = random(10) - 5;
this["star" + i].yspeed = random(10);
this["star" + i].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1._x = _local1._x + _local1.xspeed;
_local1._y = _local1._y - _local1.yspeed;
_local1.yspeed--;
if (_local1.yspeed == -10) {
_local1.removeMovieClip();
}
}
};
star._visible = 0;
i++;
}
Symbol 394 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 418 MovieClip Frame 31
stop();
Symbol 422 MovieClip Frame 31
stop();
Symbol 426 MovieClip Frame 31
stop();
Symbol 427 MovieClip Frame 3
stop();
Symbol 450 MovieClip Frame 14
stop();
Symbol 461 MovieClip Frame 60
_parent._visible = 0;
Symbol 479 MovieClip Frame 1
var i = 0;
while (i < 50) {
star.duplicateMovieClip("star" + i, i);
ran = random(150) + 50;
this["star" + i]._xscale = ran;
this["star" + i]._yscale = ran;
this["star" + i]._x = random(200) - 100;
this["star" + i]._y = -random(20);
this["star" + i].xspeed = random(20) - 10;
this["star" + i].yspeed = random(20);
this["star" + i].onEnterFrame = function () {
var _local1 = this;
if (!_global.pause) {
_local1._x = _local1._x + _local1.xspeed;
_local1._y = _local1._y - _local1.yspeed;
_local1.yspeed--;
if (_local1.yspeed == -30) {
_local1.removeMovieClip();
}
}
};
star._visible = 0;
i++;
}
Symbol 483 MovieClip Frame 19
stop();
Symbol 488 MovieClip Frame 60
stop();
_parent.nextFrame();
Symbol 503 MovieClip Frame 1
this._visible = 0;
stop();
Instance of Symbol 502 MovieClip "scoreView" in Symbol 504 MovieClip Frame 1
onClipEvent (load) {
function scoreView(score, as) {
var _local1 = this;
_local1._parent._visible = 1;
var s8 = (Math.floor((score % 100000000) / 10000000) + 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 () {
var _local1 = this;
if (_local1._currentframe == (s1 + 1)) {
_local1.stop();
if (score < 10) {
snd.stop();
}
num2.gotoAndStop(1);
num2.play();
num2.onEnterFrame = function () {
var _local1 = this;
if (_local1._currentframe == (s2 + 1)) {
_local1.stop();
if (score < 100) {
snd.stop();
}
num3.gotoAndStop(1);
num3.play();
num3.onEnterFrame = function () {
var _local1 = this;
if (_local1._currentframe == (s3 + 1)) {
_local1.stop();
if (score < 1000) {
snd.stop();
}
num4.gotoAndStop(1);
num4.play();
num4.onEnterFrame = function () {
var _local1 = this;
if (_local1._currentframe == (s4 + 1)) {
trace(1);
_local1.stop();
if (score < 10000) {
snd.stop();
}
num5.gotoAndStop(1);
num5.play();
num5.onEnterFrame = function () {
var _local1 = this;
if (_local1._currentframe == (s5 + 1)) {
_local1.stop();
if (score < 100000) {
snd.stop();
}
num6.gotoAndStop(1);
num6.play();
num6.onEnterFrame = function () {
var _local1 = this;
if (_local1._currentframe == (s6 + 1)) {
_local1.stop();
if (score < 100000) {
snd.stop();
}
num7.gotoAndStop(1);
num7.play();
num7.onEnterFrame = function () {
var _local1 = this;
if (_local1._currentframe == (s7 + 1)) {
_local1.stop();
_local1._parent.snd.stop("dding");
if (_root.item3 && (as != 1)) {
_local1._parent._parent.scoreItemMovie.view();
} else {
_local1.createEmptyMovieClip("timerChk", 12345);
_local1.timerChk.time1 = getTimer();
_local1.timerChk.onEnterFrame = function () {
if ((getTimer() - this.time1) >= 2000) {
_root.gotoAndStop("title");
this.removeMovieClip();
}
};
}
_local1.onEnterFrame = null;
}
};
_local1.onEnterFrame = null;
}
};
_local1.onEnterFrame = null;
}
};
_local1.onEnterFrame = null;
}
};
_local1.onEnterFrame = null;
}
};
_local1.onEnterFrame = null;
}
};
_local1.onEnterFrame = null;
}
};
}
i = 1;
while (i <= 8) {
this["num" + i].stop();
i++;
}
scoreView(_parent._parent.tempscore);
snd = new Sound(this);
snd.attachSound("dding");
}
Instance of Symbol 503 MovieClip "scoreItemMovie" in Symbol 504 MovieClip Frame 1
onClipEvent (load) {
view = function () {
var _local1 = this;
var _local2 = _root;
trace("item");
if (_local2.item3 == 1) {
_local1.gotoAndStop(2);
} else if (_local2.item4 == 1) {
_local1.gotoAndStop(3);
} else if (_local2.item5 == 1) {
_local1.gotoAndStop(4);
} else {
_local1._visible = 0;
return(0);
}
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.i++;
if (_local1._i > 6) {
_local1._visible = 1;
}
if ((_local1.i >= 6) && (_local1.i < 12)) {
if ((_local1.i % 2) == 0) {
_local1._visible = 0;
} else {
_local1._visible = 1;
}
} else if (_local1.i == 24) {
_parent.scoreView.scoreView(_root.score, 1);
_local1.onEnterFrame = null;
}
};
return(undefined);
};
}