Frame 1
function gotoKLSite() {
getURL ("http://kannushilink.deviantart.com", "_blank");
}
function gotoJindoSite() {
getURL ("http://www.topaz-games.com/", "_blank");
}
function gotoZBSite() {
getURL ("http://zero-bass.newgrounds.com/", "_blank");
}
function gotoEONSite() {
getURL ("http://www.dissoluteproductions.com/", "_blank");
}
function doNothing() {
}
MochiAd.showPreGameAd({id:"d0cbc909aef0a314", res:"640x480", clip:_root.adv, background:26265, color:16777215, outline:16777215, no_bg:false});
mochi.MochiServices.connect("d0cbc909aef0a314", _root.MA_score, null);
var API = new APIsender();
var option = new Setting();
var Speaker = new Speaker();
var key_mapping = ["", "", "", "", "", "", "", "", "Backspace", "Tab", "", "", "", "Enter", "", "", "Shift", "Control", "", "Pause/Break", "Caps Lock", "", "", "", "", "", "", "Esc", "", "", "", "", "Spacebar", "Page Up", "Page Down", "End", "Home", "Left Arrow", "Up Arrow", "Right Arrow", "Down Arrow", "", "", "", "", "Insert", "Delete", "", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "", "", "", "", "", "", "", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "", "", "", "", "", "Numpad 0", "Numpad 1", "Numpad 2", "Numpad 3", "Numpad 4", "Numpad 5", "Numpad 6", "Numpad 7", "Numpad 8", "Numpad 9", "Multiply", "Add", "", "Subtract", "Decimal", "Divide", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "F13", "F14", "F15", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Num Lock", "ScrLk", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ";", "=", ",", "-", ".", "/", "`", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "[", "\\", "]", "\""];
var key_CW = new Customkey(88);
var key_CCW = new Customkey(90);
var key_drop = new Customkey(32);
var key_pause = new Customkey(80);
var key_speed = new Customkey(16);
var key_up = new Customkey(38);
var key_down = new Customkey(40);
var key_left = new Customkey(37);
var key_right = new Customkey(39);
var key_i_stop = new Customkey(49);
var key_i_bomb = new Customkey(50);
var key_i_skip = new Customkey(51);
var mouse_mode = true;
var mouse_drop = true;
var change_BG = true;
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var Game_maker = new ContextMenuItem("Game Author", doNothing);
var KL_site = new ContextMenuItem("Kannushi Link's deviantART", gotoKLSite);
var J_site = new ContextMenuItem("Topaz Games", gotoJindoSite);
var BGM_maker = new ContextMenuItem("Music Composer", doNothing);
var ZB_site = new ContextMenuItem("ZeRo BaSs' Audio Page", gotoZBSite);
var EON_site = new ContextMenuItem("Dissolute Productions", gotoEONSite);
Game_maker.enabled = false;
BGM_maker.enabled = false;
BGM_maker.separatorBefore = true;
myMenu.customItems.push(Game_maker);
myMenu.customItems.push(KL_site);
myMenu.customItems.push(J_site);
myMenu.customItems.push(BGM_maker);
myMenu.customItems.push(ZB_site);
myMenu.customItems.push(EON_site);
_root.menu = myMenu;
stop();
Instance of Symbol 38 MovieClip in Frame 1
onClipEvent (load) {
var timer = 60;
var color;
var colora = [255, 255, 255];
var colorb = ["", "", ""];
var hexcolor = "";
var filter = (new flash.filters.GlowFilter());
filter.color = 16711680 /* 0xFF0000 */;
filter.blurX = 7;
filter.blurY = 7;
filter.strength = 5;
this.filters = [filter];
}
onClipEvent (enterFrame) {
timer++;
if (timer >= 50) {
hexcolor = "0x";
var i = 0;
while (i < 3) {
colora[i] = Math.floor(random(256));
colorb[i] = colora[i].toString(16);
if (colora[i] < 16) {
colorb[i] = "0" + colorb[i];
}
hexcolor = hexcolor + colorb[i];
i++;
}
this.filter.color = parseInt(hexcolor, 16);
this.filters = [filter];
timer = 0;
}
}
Frame 2
nextFrame();
Frame 3
stop();
Frame 4
prevFrame();
Frame 5
gotoAndStop ("Loading");
Frame 6
gotoAndStop ("Loading");
Frame 7
gotoAndStop ("Loading");
Frame 8
nextFrame();
Frame 9
function gosave() {
tellTarget (_root) {
if (((_root.so.data.played == false) || (_root.so.data.played == null)) || (_root.so.data.played == undefined)) {
so.data.played = true;
so.data.pic_quality = "High";
so.data.sound_SFX = true;
so.data.sound_BGM = true;
so.data.block_pic = 1;
so.data.change_BG = true;
so.data.timer_block = true;
so.data.kb_move_left = 37;
so.data.kb_move_right = 39;
so.data.kb_move_up = 38;
so.data.kb_move_down = 40;
so.data.kb_move_drop = 32;
so.data.kb_turn_CW = 88;
so.data.kb_turn_CCW = 90;
so.data.kb_pauser = 80;
so.data.kb_speed = 16;
so.data.kb_i_stop = 49;
so.data.kb_i_bomb = 50;
so.data.kb_i_skip = 51;
so.data.mouse_move = true;
so.data.mouse_drop = true;
so.data.game_level = 3;
so.data.game_speed = 1;
so.flush(2048);
} else {
so.data.played = true;
so.data.pic_quality = _root._quality;
so.data.sound_SFX = _root.option.sound_SFX;
so.data.sound_BGM = _root.option.sound_BGM;
so.data.block_pic = _root.option.block_pic;
so.data.change_BG = _root.option.change_BG;
so.data.timer_block = _root.option.timer_block;
so.data.kb_move_left = _root.key_left.key_code;
so.data.kb_move_right = _root.key_right.key_code;
so.data.kb_move_up = _root.key_up.key_code;
so.data.kb_move_down = _root.key_down.key_code;
so.data.kb_move_drop = _root.key_drop.key_code;
so.data.kb_turn_CW = _root.key_CW.key_code;
so.data.kb_turn_CCW = _root.key_CCW.key_code;
so.data.kb_pauser = _root.key_pause.key_code;
so.data.kb_speed = _root.key_speed.key_code;
so.data.kb_i_stop = _root.key_i_stop.key_code;
so.data.kb_i_bomb = _root.key_i_bomb.key_code;
so.data.kb_i_skip = _root.key_i_skip.key_code;
so.data.mouse_move = _root.option.block_move;
so.data.mouse_drop = _root.option.block_drop;
so.data.game_level = _root.game_difficulty;
so.data.game_speed = _root.game_level;
so.flush(2048);
}
};
}
var game_level = 1;
var game_difficulty = 3;
var so = SharedObject.getLocal("KL_Blockpolis", "/");
if (((_root.so.data.played == false) || (_root.so.data.played == null)) || (_root.so.data.played == undefined)) {
_root.gosave();
so.flush(2048);
} else {
_root._quality = so.data.pic_quality;
_root.option.sound_SFX = so.data.sound_SFX;
_root.option.sound_BGM = so.data.sound_BGM;
_root.option.block_pic = so.data.block_pic;
_root.option.change_BG = so.data.change_BG;
_root.option.timer_block = so.data.timer_block;
_root.key_left.setKeycode(so.data.kb_move_left);
_root.key_right.setKeycode(so.data.kb_move_right);
_root.key_up.setKeycode(so.data.kb_move_up);
_root.key_down.setKeycode(so.data.kb_move_down);
_root.key_drop.setKeycode(so.data.kb_move_drop);
_root.key_CW.setKeycode(so.data.kb_turn_CW);
_root.key_CCW.setKeycode(so.data.kb_turn_CCW);
_root.key_pause.setKeycode(so.data.kb_pauser);
_root.key_speed.setKeycode(so.data.kb_speed);
_root.key_i_stop.setKeycode(so.data.kb_i_stop);
_root.key_i_bomb.setKeycode(so.data.kb_i_bomb);
_root.key_i_skip.setKeycode(so.data.kb_i_skip);
_root.option.block_move = so.data.mouse_move;
_root.option.block_drop = so.data.mouse_drop;
_root.game_difficulty = so.data.game_level;
_root.game_level = so.data.game_speed;
}
var game_speed = [500, 400, 300, 200, 100, 50, 0];
var game_levelline = [5, 10, 20, 40, 50, 0];
var game_speed_delta = [20, 10, 5, 2.5, 1, 0];
var HP_lose_classic = [1, 2, 3, 4, 5, 6, 6];
var HP_lose_advance = [1, 2, 4, 6, 8, 10, 10];
var game_nextlv = 5;
var game_nextlvo = 5;
var game_blocktimer = 500;
var game_blocktimero = 500;
_root.Speaker.setBGM("ZB_ZBD");
if (_root.option.sound_BGM == true) {
_root.Speaker.playBGM();
}
stop();
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("50b8f6b8", this, 10301, true);
Frame 10
prevFrame();
Frame 11
nextFrame();
Instance of Symbol 38 MovieClip in Frame 11
onClipEvent (load) {
var timer = 60;
var color;
var colora = [255, 255, 255];
var colorb = ["", "", ""];
var hexcolor = "";
var filter = (new flash.filters.GlowFilter());
filter.color = 16711680 /* 0xFF0000 */;
filter.blurX = 7;
filter.blurY = 7;
filter.strength = 5;
this.filters = [filter];
}
onClipEvent (enterFrame) {
timer++;
if (timer >= 50) {
hexcolor = "0x";
var i = 0;
while (i < 3) {
colora[i] = Math.floor(random(256));
colorb[i] = colora[i].toString(16);
if (colora[i] < 16) {
colorb[i] = "0" + colorb[i];
}
hexcolor = hexcolor + colorb[i];
i++;
}
this.filter.color = parseInt(hexcolor, 16);
this.filters = [filter];
timer = 0;
}
}
Frame 12
_root.gosave();
var player_score = 0;
var player_hp = 100;
var player_hpMAX = 100;
var player_powerup = 0;
var game_mode = 1;
_root.Speaker.setBGM("ZB_ZBD");
if (_root.option.sound_BGM == true) {
_root.Speaker.playBGM();
}
var random_BGM = (random(2) + 1);
random_BGM = random(2) + 1;
stop();
Frame 13
prevFrame();
Frame 14
nextFrame();
Frame 15
stop();
Frame 16
prevFrame();
Frame 17
nextFrame();
Frame 18
stop();
Frame 19
prevFrame();
Frame 20
nextFrame();
Frame 21
stop();
Frame 22
prevFrame();
Frame 23
nextFrame();
Instance of Symbol 261 MovieClip in Frame 23
onClipEvent (load) {
function set_key(i) {
set_pos = i;
setting = true;
text_s = "";
if (i == 1) {
this.text_s = "Please set \"Left\" key.";
} else if (i == 2) {
this.text_s = "Please set \"Right\" key.";
} else if (i == 3) {
this.text_s = "Please set \"Up\" key.";
} else if (i == 4) {
this.text_s = "Please set \"Down\" key.";
} else if (i == 5) {
this.text_s = "Please set \"Speed\" key.";
} else if (i == 6) {
this.text_s = "Please set \"Turn CW\" key.";
} else if (i == 7) {
this.text_s = "Please set \"Turn CCW\" key.";
} else if (i == 8) {
this.text_s = "Please set \"Drop\" key.";
} else if (i == 9) {
this.text_s = "Please set \"Pause\" key.";
} else if (i == 10) {
this.text_s = "Please set \"Item - Stop\" key.";
} else if (i == 11) {
this.text_s = "Please set \"Item - Bomb\" key.";
} else if (i == 12) {
this.text_s = "Please set \"Item - Skip\" key.";
}
this.gotoAndStop(2);
}
function refresh_text(i) {
if (i == 1) {
this.c1 = _root.key_left.key_code;
this.t1 = _root.key_left.key_name;
} else if (i == 2) {
this.c2 = _root.key_right.key_code;
this.t2 = _root.key_right.key_name;
} else if (i == 3) {
this.c3 = _root.key_up.key_code;
this.t3 = _root.key_up.key_name;
} else if (i == 4) {
this.c4 = _root.key_down.key_code;
this.t4 = _root.key_down.key_name;
} else if (i == 5) {
this.c5 = _root.key_speed.key_code;
this.t5 = _root.key_speed.key_name;
} else if (i == 6) {
this.c6 = _root.key_CW.key_code;
this.t6 = _root.key_CW.key_name;
} else if (i == 7) {
this.c7 = _root.key_CCW.key_code;
this.t7 = _root.key_CCW.key_name;
} else if (i == 8) {
this.c8 = _root.key_drop.key_code;
this.t8 = _root.key_drop.key_name;
} else if (i == 9) {
this.c9 = _root.key_pause.key_code;
this.t9 = _root.key_pause.key_name;
} else if (i == 10) {
this.c10 = _root.key_i_stop.key_code;
this.t10 = _root.key_i_stop.key_name;
} else if (i == 11) {
this.c11 = _root.key_i_bomb.key_code;
this.t11 = _root.key_i_bomb.key_name;
} else if (i == 12) {
this.c12 = _root.key_i_skip.key_code;
this.t12 = _root.key_i_skip.key_name;
}
}
var setting = false;
var set_pos = -1;
var c1;
var c2;
var c3;
var c4;
var c5;
var c6;
var c7;
var c8;
var c9;
var c10;
var c11;
var c12;
var t1;
var t2;
var t3;
var t4;
var t5;
var t6;
var t7;
var t8;
var t9;
var t10;
var t11;
var t12;
var i = 1;
while (i < 13) {
refresh_text(i);
i++;
}
}
onClipEvent (keyDown) {
var code = Key.getCode();
if (setting == true) {
if (set_pos == 1) {
_root.key_left.setKeycode(code);
} else if (set_pos == 2) {
_root.key_right.setKeycode(code);
} else if (set_pos == 3) {
_root.key_up.setKeycode(code);
} else if (set_pos == 4) {
_root.key_down.setKeycode(code);
} else if (set_pos == 5) {
_root.key_speed.setKeycode(code);
} else if (set_pos == 6) {
_root.key_CW.setKeycode(code);
} else if (set_pos == 7) {
_root.key_CCW.setKeycode(code);
} else if (set_pos == 8) {
_root.key_drop.setKeycode(code);
} else if (set_pos == 9) {
_root.key_pause.setKeycode(code);
} else if (set_pos == 10) {
_root.key_i_stop.setKeycode(code);
} else if (set_pos == 11) {
_root.key_i_bomb.setKeycode(code);
} else if (set_pos == 12) {
_root.key_i_skip.setKeycode(code);
}
setting = false;
refresh_text(set_pos);
this.gotoAndStop(1);
}
}
Frame 24
stop();
Frame 25
prevFrame();
Frame 26
nextFrame();
Frame 27
stop();
Frame 28
prevFrame();
Frame 29
nextFrame();
Frame 30
stop();
Frame 31
prevFrame();
Frame 32
nextFrame();
Frame 33
var temp_mode = 0;
var temp_level = 1;
stop();
Frame 34
prevFrame();
Frame 35
nextFrame();
Frame 36
if (_root.temp_mode == 0) {
if (_root.temp_level == 1) {
mochi.MochiScores.showLeaderboard({boardID:"39f067e44cab99da", res:"640x500", hideDoneButton:true});
} else if (_root.temp_level == 2) {
mochi.MochiScores.showLeaderboard({boardID:"f5c7e916df8195bd", res:"640x500", hideDoneButton:true});
} else if (_root.temp_level == 3) {
mochi.MochiScores.showLeaderboard({boardID:"bc4c4e555d502a3d", res:"640x500", hideDoneButton:true});
}
} else if (_root.temp_mode == 1) {
if (_root.temp_level == 1) {
mochi.MochiScores.showLeaderboard({boardID:"12cf2e763b9d74f9", res:"640x500", hideDoneButton:true});
} else if (_root.temp_level == 2) {
mochi.MochiScores.showLeaderboard({boardID:"4cca9d63f608000b", res:"640x500", hideDoneButton:true});
} else if (_root.temp_level == 3) {
mochi.MochiScores.showLeaderboard({boardID:"1b960d5d43513d8b", res:"640x500", hideDoneButton:true});
}
}
stop();
Frame 37
prevFrame();
Frame 38
nextFrame();
Instance of Symbol 384 MovieClip "BG" in Frame 38
onClipEvent (load) {
var BG_num = (random(3) + 1);
if (BG_num == 2) {
this.gotoAndStop("BG2");
} else if (BG_num == 3) {
this.gotoAndStop("BG3");
} else {
this.gotoAndStop("BG1");
}
}
Instance of Symbol 386 MovieClip "next1" in Frame 38
onClipEvent (load) {
function redraw_block() {
ID = 0;
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
ID = ((i * 5) + j) + 1;
tellTarget (eval (ID)) {
if (_root.board_next[0][i][j] != 0) {
gotoAndStop(_root.board_next[0][i][j]);
} else {
gotoAndStop (9);
}
};
j++;
}
i++;
}
}
var b_depth = 1;
var i = 0;
var j = 0;
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
duplicateMovieClip (this.layout_block, b_depth, b_depth);
tellTarget (eval (b_depth)) {
i = this.i;
j = this.j;
_y = ((this.i * 20) + 10);
_x = ((this.j * 20) + 10);
gotoAndStop (9);
};
b_depth++;
j++;
}
i++;
}
}
Instance of Symbol 386 MovieClip "next2" in Frame 38
onClipEvent (load) {
function redraw_block() {
ID = 0;
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
ID = ((i * 5) + j) + 1;
tellTarget (eval (ID)) {
if (_root.board_next[1][i][j] != 0) {
gotoAndStop(_root.board_next[1][i][j]);
} else {
gotoAndStop (9);
}
};
j++;
}
i++;
}
}
var b_depth = 1;
var i = 0;
var j = 0;
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
duplicateMovieClip (this.layout_block, b_depth, b_depth);
tellTarget (eval (b_depth)) {
i = this.i;
j = this.j;
_y = ((this.i * 20) + 10);
_x = ((this.j * 20) + 10);
gotoAndStop (9);
};
b_depth++;
j++;
}
i++;
}
}
Instance of Symbol 386 MovieClip "next3" in Frame 38
onClipEvent (load) {
function redraw_block() {
ID = 0;
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
ID = ((i * 5) + j) + 1;
tellTarget (eval (ID)) {
if (_root.board_next[2][i][j] != 0) {
gotoAndStop(_root.board_next[2][i][j]);
} else {
gotoAndStop (9);
}
};
j++;
}
i++;
}
}
var b_depth = 1;
var i = 0;
var j = 0;
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
duplicateMovieClip (this.layout_block, b_depth, b_depth);
tellTarget (eval (b_depth)) {
i = this.i;
j = this.j;
_y = ((this.i * 20) + 10);
_x = ((this.j * 20) + 10);
gotoAndStop (9);
};
b_depth++;
j++;
}
i++;
}
}
Instance of Symbol 114 MovieClip "lol" in Frame 38
onClipEvent (load) {
function redraw_board(range, tx, ty) {
if (range == 1) {
i = -1;
while (i <= 1) {
j = -1;
while (j <= 1) {
xx = j + tx;
yy = i + ty;
target = ((yy * 15) + xx) + 1;
if ((((xx >= 0) && (xx < 15)) && (yy >= 0)) && (yy < 15)) {
tellTarget (eval ("_root.board." + target)) {
if (_root.board_game[this.yy][this.xx] != 0) {
gotoAndStop(_root.board_game[this.yy][this.xx]);
} else {
gotoAndStop (9);
}
};
}
j++;
}
i++;
}
} else if (range == 2) {
i = -1;
while (i <= 1) {
xx = i + tx;
if ((xx >= 0) && (xx < 15)) {
j = 0;
while (j < 15) {
target = ((j * 15) + xx) + 1;
tellTarget (eval ("_root.board." + target)) {
if (_root.board_game[this.j][this.xx] != 0) {
gotoAndStop(_root.board_game[this.j][this.xx]);
} else {
gotoAndStop (9);
}
};
j++;
}
}
i++;
}
i = -1;
while (i <= 1) {
yy = i + ty;
if ((yy >= 0) && (yy < 15)) {
j = 0;
while (j < 15) {
target = ((yy * 15) + j) + 1;
tellTarget (eval ("_root.board." + target)) {
if (_root.board_game[this.yy][this.j] != 0) {
gotoAndStop(_root.board_game[this.yy][this.j]);
} else {
gotoAndStop (9);
}
};
j++;
}
}
i++;
}
} else if (range == 3) {
i = 0;
while (i < 15) {
j = 0;
while (j < 15) {
target = ((i * 15) + j) + 1;
tellTarget (eval ("_root.board." + target)) {
if (_root.board_game[this.i][this.j] != 0) {
gotoAndStop(_root.board_game[this.i][this.j]);
} else {
gotoAndStop (9);
}
};
j++;
}
i++;
}
}
}
function check_line(tx, ty) {
var _local6 = true;
var _local10 = false;
var _local4;
var _local3;
var _local5;
var _local2;
var _local9 = 0;
_local5 = -1;
while (_local5 <= 1) {
_local3 = _local5 + ty;
if ((_local3 >= 0) && (_local3 < 15)) {
_local6 = true;
_local2 = 0;
while (_local2 < 15) {
if (_root.board_game[_local3][_local2] == 0) {
_local6 = false;
break;
}
_local2++;
}
if (_local6 == true) {
_local9++;
_root.attachMovie("GFX_lineH", "", _local9, {_x:320, _y:100 + (_local3 * 20)});
_local10 = true;
_local2 = 0;
while (_local2 < 15) {
if ((_local2 < (tx - 1)) || (_local2 > (tx + 1))) {
_root.board_game[_local3][_local2] = 0;
} else {
_root.board_game[_local3][_local2] = 9;
}
_local2++;
}
}
}
_local5++;
}
_local5 = -1;
while (_local5 <= 1) {
_local4 = _local5 + tx;
if ((_local4 >= 0) && (_local4 < 15)) {
_local6 = true;
_local2 = 0;
while (_local2 < 15) {
if (_root.board_game[_local2][_local4] == 0) {
_local6 = false;
break;
}
_local2++;
}
if (_local6 == true) {
_local9++;
_root.attachMovie("GFX_lineV", "", _local9, {_x:180 + (_local4 * 20), _y:240});
_local10 = true;
_local2 = 0;
while (_local2 < 15) {
if ((_local2 < (ty - 1)) || (_local2 > (ty + 1))) {
_root.board_game[_local2][_local4] = 0;
} else {
_root.board_game[_local2][_local4] = 9;
}
_local2++;
}
}
}
_local5++;
}
_local5 = -1;
while (_local5 <= 1) {
_local2 = -1;
while (_local2 <= 1) {
_local4 = tx + _local2;
_local3 = ty + _local5;
if (_root.board_game[_local3][_local4] == 9) {
_root.board_game[_local3][_local4] = 0;
}
_local2++;
}
_local5++;
}
if (_local9 > 0) {
scoring(_local9);
}
if (_local10 == true) {
redraw_board(2, tx, ty);
}
}
function scoring(n) {
if (n > _root.MAX_line_once) {
_root.MAX_line_once = n;
}
_root.total_line = _root.total_line + n;
if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_Line");
}
_root.game_nextlv--;
_root.game_nextlvo;
var _local2;
var _local3 = 1;
if ((_root.game_mode == 1) && (n > 1)) {
_root.player_hpMAX = _root.player_hpMAX + (((n - 1) * ((1 + n) - 1)) / 2);
}
_local2 = 0;
while (_local2 < n) {
_root.player_score = _root.player_score + ((_local2 + 1) * (25 + ((_root.game_level - 1) * 5)));
_root.KL_score = _root.KL_score - ((_local2 + 1) * (25 + ((_root.game_level - 1) * 5)));
new_item_add((_local2 + 1) * (25 + ((_root.game_level - 1) * 5)));
if (((_root.player_hp + _local3) + _local2) < _root.player_hpMAX) {
_root.player_hp = _root.player_hp + (_local3 + _local2);
} else {
_root.player_hp = _root.player_hpMAX;
}
_local2++;
}
if (_root.game_nextlv <= 0) {
if (_root.game_level < 6) {
_root.game_level++;
_root.attachMovie("lvuptext", "lvup", 2000);
_root.lvup._x = 320;
_root.lvup._y = 240;
_root.lvup.gotoAndPlay(2);
if (_root.option.change_BG == true) {
_root.BG.play();
}
if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_LevelUp");
}
}
if (_root.game_level < 6) {
_root.game_nextlvo = _root.game_levelline[_root.game_level - 1];
} else {
_root.game_nextlvo = 0;
}
_root.game_nextlv = _root.game_nextlvo;
if (_root.game_level < 6) {
_root.game_blocktimer = _root.game_speed[_root.game_level - 1];
_root.game_blocktimero = _root.game_speed[_root.game_level - 1];
} else {
_root.game_blocktimer = 50;
_root.game_blocktimero = 50;
}
} else {
_root.game_blocktimero = _root.game_blocktimero - _root.game_speed_delta[_root.game_level - 1];
_root.game_blocktimer = _root.game_blocktimero;
}
}
function new_item_add(pts) {
_root.new_item = _root.new_item + Math.round(pts * _root.game_level);
if (_root.new_item >= _root.new_item_next) {
_root.new_item = _root.new_item - _root.new_item_next;
_root.player_powerup++;
_root.new_item_next = _root.new_item_next + 100;
_root.powerup.f_text.flashing = true;
if ((_root.option.sound_SFX == true) && (_root.game_mode == 1)) {
_root.Speaker.playSFX("SFX_Item");
}
_root.item_count++;
}
}
function next_turn_CW(count) {
var _local2;
_local2 = 0;
while (_local2 < count) {
_local2 = 0;
while (_local2 < 5) {
j = 0;
while (j < 5) {
_root.board_next_temp[_local2][j] = _root.board_next[0][4 - j][_local2];
j++;
}
_local2++;
}
_local2 = 0;
while (_local2 < 5) {
j = 0;
while (j < 5) {
_root.board_next[0][_local2][j] = _root.board_next_temp[_local2][j];
j++;
}
_local2++;
}
_local2++;
}
}
function next_turn_CCW(count) {
i = 0;
while (i < count) {
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
_root.board_next_temp[i][j] = _root.board_next[0][j][4 - i];
j++;
}
i++;
}
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
_root.board_next[0][i][j] = _root.board_next_temp[i][j];
j++;
}
i++;
}
i++;
}
}
function change_block() {
if (_root.game_difficulty == 3) {
var _local3 = random(12) + 1;
} else if (_root.game_difficulty == 2) {
var _local3 = random(20) + 1;
} else if (_root.game_difficulty == 1) {
var _local3 = random(28) + 1;
} else {
var _local3 = 999;
}
var _local6 = random(7) + 1;
var _local2 = _local6;
var _local5 = random(4);
var _local4 = random(2) + 1;
_root.board_mine = _root.board_next[2];
_root.board_next[2] = _root.board_next[1];
_root.board_next[1] = _root.board_next[0];
if (_local3 == 1) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, _local2, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 2) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, _local2, 0, 0], [0, 0, _local2, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 3) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, _local2, 0, 0], [0, 0, _local2, 0, 0], [0, 0, _local2, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 4) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, _local2, _local2, 0], [0, 0, _local2, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 5) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, _local2, 0, 0], [0, 0, _local2, 0, 0], [0, 0, _local2, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 6) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, _local2, 0, 0], [0, 0, _local2, 0, 0], [0, _local2, _local2, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 7) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, _local2, _local2, 0], [0, 0, _local2, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 8) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, _local2, _local2, _local2, 0], [0, 0, _local2, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 9) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, _local2, _local2, _local2, 0], [0, 0, _local2, 0, 0], [0, 0, _local2, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 10) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, _local2, _local2, _local2, 0], [0, _local2, 0, 0, 0], [0, _local2, 0, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 11) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, _local2, 0, 0], [0, _local2, _local2, _local2, 0], [0, 0, _local2, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 12) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, _local2, _local2, _local2, 0], [0, _local2, _local2, _local2, 0], [0, _local2, _local2, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 13) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, _local2, 0, 0], [0, _local2, _local2, 0, 0], [0, _local2, 0, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 14) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, _local2, 0, 0], [0, 0, _local2, _local2, 0], [0, 0, 0, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 15) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, _local2, _local2, _local2, 0], [0, _local2, 0, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 16) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, _local2, 0, 0, 0], [0, _local2, _local2, 0, 0], [0, 0, _local2, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 17) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, _local2, _local2, _local2, 0], [0, _local2, _local2, _local2, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 18) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, _local2, 0, _local2, 0], [0, _local2, _local2, _local2, 0], [0, _local2, 0, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 19) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, _local2, 0, _local2, 0], [0, _local2, 0, _local2, 0], [0, _local2, _local2, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 20) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, _local2, _local2, _local2, 0], [0, 0, _local2, _local2, 0], [0, 0, 0, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 21) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, _local2, 0, 0, 0], [0, _local2, 0, _local2, 0], [0, _local2, _local2, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 22) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, 0, _local2, 0], [0, _local2, 0, _local2, 0], [0, _local2, _local2, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 23) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, _local2, _local2, _local2, 0], [0, _local2, _local2, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 24) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, _local2, _local2, _local2, 0], [0, 0, _local2, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 25) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, _local2, 0, 0], [0, _local2, _local2, _local2, 0], [0, 0, 0, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 26) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, _local2, 0, 0], [0, _local2, _local2, _local2, 0], [0, _local2, 0, 0, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 27) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, _local2, 0, 0, 0], [0, _local2, _local2, _local2, 0], [0, _local2, 0, _local2, 0], [0, 0, 0, 0, 0]];
} else if (_local3 == 28) {
_root.board_next[0] = [[0, 0, 0, 0, 0], [0, 0, 0, _local2, 0], [0, _local2, _local2, _local2, 0], [0, _local2, 0, _local2, 0], [0, 0, 0, 0, 0]];
}
if (_local4 == 1) {
switch (_local5) {
case 0 :
break;
case 1 :
next_turn_CW(1);
break;
case 2 :
next_turn_CW(2);
break;
case 3 :
next_turn_CW(3);
}
} else if (_local4 == 2) {
switch (_local5) {
case 0 :
break;
case 1 :
next_turn_CCW(1);
break;
case 2 :
next_turn_CCW(2);
break;
case 3 :
next_turn_CCW(3);
}
}
redraw_next_block();
}
function redraw_next_block() {
_root.next1.redraw_block();
_root.next2.redraw_block();
_root.next3.redraw_block();
_root.me.redraw_block();
}
_visible = false;
tellTarget (_root) {
var board_game = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
var board_mine = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]];
var board_mine_temp = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]];
var board_next = [[[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]], [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]], [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]];
var board_next_temp = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]];
var board_overlap = [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]];
var item_in_use = [false, false, false];
};
change_block();
change_block();
change_block();
change_block();
}
Instance of Symbol 397 MovieClip "me" in Frame 38
onClipEvent (load) {
function turn_CW() {
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
_root.board_mine_temp[i][j] = _root.board_mine[4 - j][i];
j++;
}
i++;
}
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
_root.board_mine[i][j] = _root.board_mine_temp[i][j];
j++;
}
i++;
}
redraw_block();
}
function turn_CCW() {
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
_root.board_mine_temp[i][j] = _root.board_mine[j][4 - i];
j++;
}
i++;
}
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
_root.board_mine[i][j] = _root.board_mine_temp[i][j];
j++;
}
i++;
}
redraw_block();
}
function redraw_block() {
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
k = (i * 5) + j;
tellTarget (eval ("this." + k)) {
if (_root.board_mine[this.i][this.j] != 0) {
gotoAndStop(_root.board_mine[this.i][this.j]);
} else {
gotoAndStop (9);
}
};
j++;
}
i++;
}
}
function scoring() {
var _local3;
var _local2;
var _local4 = 0;
_local3 = 0;
while (_local3 < 15) {
_local2 = 0;
while (_local2 < 15) {
if (_root.board_game[_local3][_local2] != 0) {
_local4++;
}
_local2++;
}
_local3++;
}
_root.player_score = _root.player_score + ((Math.ceil(_local4 / 10) + _root.game_level) - 1);
_root.KL_score = _root.KL_score - ((Math.ceil(_local4 / 10) + _root.game_level) - 1);
_root.lol.new_item_add(Math.ceil(((_local4 / 10) * (1 + ((_root.game_level - 1) / 5))) * (1 + (_root.text_blocktimer / _root.text_blocktimero))));
}
function drop_block() {
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
_root.board_overlap[i][j] = 0;
j++;
}
i++;
}
_root.block_overlap._x = this._x;
_root.block_overlap._y = this._y;
var _local4 = false;
var _local5 = 0;
var _local3 = false;
if (_root.item_in_use[1] == true) {
_local4 = true;
}
if (_local4 == false) {
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
if (_root.board_mine[i][j] != 0) {
if ((((((my_location[1] + i) - 2) >= 0) && (((my_location[0] + j) - 2) >= 0)) && (((my_location[1] + i) - 2) < 15)) && (((my_location[0] + j) - 2) < 15)) {
if (_root.board_game[(my_location[1] + i) - 2][(my_location[0] + j) - 2] != 0) {
if (_root.game_mode == 0) {
_root.player_hp = _root.player_hp - _root.HP_lose_classic[_root.game_level - 1];
_root.player_score = _root.player_score - _root.HP_lose_classic[_root.game_level - 1];
_root.KL_score = _root.KL_score + _root.HP_lose_classic[_root.game_level - 1];
} else {
_root.player_hp = _root.player_hp - _root.HP_lose_advance[_root.game_level - 1];
_root.player_score = _root.player_score - _root.HP_lose_advance[_root.game_level - 1];
_root.KL_score = _root.KL_score + _root.HP_lose_advance[_root.game_level - 1];
}
_root.board_overlap[i][j] = 1;
_local3 = true;
}
_root.board_game[(this.my_location[1] + i) - 2][(this.my_location[0] + j) - 2] = _root.board_mine[i][j];
} else {
if (_root.game_mode == 0) {
_root.player_hp = _root.player_hp - _root.HP_lose_classic[_root.game_level - 1];
_root.player_score = _root.player_score - _root.HP_lose_classic[_root.game_level - 1];
_root.KL_score = _root.KL_score + _root.HP_lose_classic[_root.game_level - 1];
} else {
_root.player_hp = _root.player_hp - _root.HP_lose_advance[_root.game_level - 1];
_root.player_score = _root.player_score - _root.HP_lose_advance[_root.game_level - 1];
_root.KL_score = _root.KL_score + _root.HP_lose_advance[_root.game_level - 1];
}
_root.board_overlap[i][j] = 1;
_local3 = true;
}
}
j++;
}
i++;
}
_root.lol.redraw_board(1, my_location[0], my_location[1]);
if (_root.option.sound_SFX == true) {
if (_local3 == false) {
_root.Speaker.playSFX("SFX_DropBlock");
} else {
_root.Speaker.playSFX("SFX_DropBlock_Over");
}
}
if (_root.player_hp > 0) {
scoring();
} else {
_root.gotoAndStop("Over");
}
_root.total_block++;
} else {
if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_Bomb");
}
i = -1;
while (i < 2) {
j = -1;
while (j < 2) {
_root.board_game[this.my_location[1] + i][this.my_location[0] + j] = 0;
j++;
}
i++;
}
_root.GFX_bomb._x = 180 + (my_location[0] * 20);
_root.GFX_bomb._y = 100 + (my_location[1] * 20);
_root.GFX_bomb.gotoAndPlay(1);
_root.lol.redraw_board(1, my_location[0], my_location[1]);
}
_root.game_blocktimer = _root.game_blocktimero;
_root.lol.check_line(my_location[0], my_location[1]);
i = 0;
while (i < 3) {
_root.item_in_use[i] = false;
i++;
}
_root.block_overlap.playAll();
_root.lol.change_block();
}
var pause_hold = false;
var i;
var j;
turn_left_hold = false;
turn_right_hold = false;
drop_hold = false;
speed_hold = false;
pause_hold = false;
var move_hold = 0;
var my_location = [7, 7];
}
onClipEvent (enterFrame) {
_x = (180 + (my_location[0] * 20));
_y = (100 + (my_location[1] * 20));
if (_root.game_go == true) {
if (Key.isDown(_root.key_CCW.key_code) == true) {
if (turn_left_hold == false) {
turn_CCW();
}
turn_left_hold = true;
} else {
turn_left_hold = false;
}
if (Key.isDown(_root.key_CW.key_code) == true) {
if (turn_right_hold == false) {
turn_CW();
}
turn_right_hold = true;
} else {
turn_right_hold = false;
}
if (_root.option.block_drop == false) {
if (Key.isDown(_root.key_drop.key_code) == true) {
if (drop_hold == false) {
drop_block();
}
drop_hold = true;
} else {
drop_hold = false;
}
}
if (_root.option.block_move == true) {
my_location[0] = Math.floor((_root._xmouse - 170) / 20);
my_location[1] = Math.floor((_root._ymouse - 90) / 20);
if (my_location[0] < -1) {
my_location[0] = -1;
} else if (my_location[0] > 15) {
my_location[0] = 15;
}
if (my_location[1] < -1) {
my_location[1] = -1;
} else if (my_location[1] > 15) {
my_location[1] = 15;
}
} else {
if (move_hold > 3) {
if ((Key.isDown(_root.key_left.key_code) == true) && (my_location[0] > -1)) {
my_location[0]--;
}
if ((Key.isDown(_root.key_right.key_code) == true) && (my_location[0] < 15)) {
my_location[0]++;
}
if ((Key.isDown(_root.key_up.key_code) == true) && (my_location[1] > -1)) {
my_location[1]--;
}
if ((Key.isDown(_root.key_down.key_code) == true) && (my_location[1] < 15)) {
my_location[1]++;
}
move_hold = 0;
} else {
move_hold++;
}
if ((Key.isDown(_root.key_speed.key_code) == true) && (move_hold < 3)) {
move_hold = 3;
}
}
if (_root.game_blocktimer < 0) {
drop_block();
} else if (_root.item_in_use[0] == false) {
_root.game_blocktimer--;
}
if (((Key.isDown(_root.key_pause.key_code) == true) && (pause_hold == false)) && (_root.game_go == true)) {
_root.game_go = false;
pause_hold = true;
_root.powerup.gotoAndStop(1);
tellTarget (_root) {
attachMovie("Panel_Pause", "pauser", 2008);
};
tellTarget (_root.pauser) {
_x = 320;
_y = 240;
};
} else if (!Key.isDown(_root.key_pause.key_code)) {
pause_hold = false;
}
_root.text_blocktimer = Math.round(_root.game_blocktimer);
_root.text_blocktimero = Math.round(_root.game_blocktimero);
} else {
if (Key.isDown(_root.key_drop.key_code) == true) {
drop_hold = true;
} else {
drop_hold = false;
}
if (((Key.isDown(_root.key_pause.key_code) == true) && (pause_hold == false)) && (_root.game_go == false)) {
if (_root.game_countdown == false) {
_root.game_go = true;
if (_root.game_mode == 1) {
tellTarget (_root.powerup) {
gotoAndStop (2);
};
}
}
removeMovieClip(_root.pauser);
pause_hold = true;
} else if (!Key.isDown(_root.key_pause.key_code)) {
pause_hold = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.game_go == true) {
if (_root.option.block_drop == true) {
if ((((_root._xmouse >= 150) && (_root._xmouse <= 490)) && (_root._ymouse >= 70)) && (_root._ymouse <= 410)) {
if (drop_hold == false) {
drop_block();
}
}
drop_hold = true;
}
}
}
onClipEvent (mouseUp) {
if (_root.game_go == true) {
if (_root.option.block_drop == true) {
drop_hold = false;
}
}
}
Instance of Symbol 398 MovieClip "block_overlap" in Frame 38
onClipEvent (load) {
function playAll() {
var i = 0;
var j = 0;
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
k = (i * 5) + j;
tellTarget (eval ("this." + k)) {
if (_root.board_overlap[i][j] == 1) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
};
j++;
}
i++;
}
}
}
Instance of Symbol 400 MovieClip "hp_bar" in Frame 38
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(((_root.player_hpMAX - _root.player_hp) / _root.player_hpMAX) * 500) + 1);
}
Instance of Symbol 415 MovieClip "powerup" in Frame 38
onClipEvent (load) {
function return_block() {
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
_root.board_mine[i][j] = _root.board_mine_temp[i][j];
j++;
}
i++;
}
_root.me.redraw_block();
}
function item_stop() {
if ((_root.item_in_use[0] == false) && (_root.player_powerup > 0)) {
if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_StopTime");
}
_root.item_in_use[0] = true;
_root.player_powerup--;
} else if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_NoItem");
}
}
function item_bomb() {
if ((_root.item_in_use[1] == false) && (_root.player_powerup > 0)) {
_root.item_in_use[1] = true;
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
_root.board_mine[i][j] = 0;
j++;
}
i++;
}
_root.board_mine[2][2] = 11;
_root.me.redraw_block();
_root.player_powerup--;
} else if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_NoItem");
}
}
function item_skip() {
if (_root.player_powerup > 0) {
if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_SkipBlock");
}
_root.item_in_use[0] = false;
_root.item_in_use[1] = false;
_root.lol.change_block();
_root.game_blocktimer = _root.game_blocktimero;
_root.player_powerup--;
} else if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_NoItem");
}
}
if (_root.game_mode == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 400 MovieClip "timer_bar" in Frame 38
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(((_root.game_blocktimero - _root.game_blocktimer) / _root.game_blocktimero) * 500) + 1);
}
Instance of Symbol 424 MovieClip in Frame 38
onClipEvent (load) {
if (_root.game_mode == 0) {
this._visible = false;
}
}
Instance of Symbol 477 MovieClip in Frame 38
onClipEvent (load) {
function refresh_text(i) {
if (i == 1) {
this.c1 = _root.key_left.key_code;
this.t1 = _root.key_left.key_name;
} else if (i == 2) {
this.c2 = _root.key_right.key_code;
this.t2 = _root.key_right.key_name;
} else if (i == 3) {
this.c3 = _root.key_up.key_code;
this.t3 = _root.key_up.key_name;
} else if (i == 4) {
this.c4 = _root.key_down.key_code;
this.t4 = _root.key_down.key_name;
} else if (i == 5) {
this.c5 = _root.key_speed.key_code;
this.t5 = _root.key_speed.key_name;
} else if (i == 6) {
this.c6 = _root.key_CW.key_code;
this.t6 = _root.key_CW.key_name;
} else if (i == 7) {
this.c7 = _root.key_CCW.key_code;
this.t7 = _root.key_CCW.key_name;
} else if (i == 8) {
this.c8 = _root.key_drop.key_code;
this.t8 = _root.key_drop.key_name;
} else if (i == 9) {
this.c9 = _root.key_pause.key_code;
this.t9 = _root.key_pause.key_name;
} else if (i == 10) {
this.c10 = _root.key_i_stop.key_code;
this.t10 = _root.key_i_stop.key_name;
} else if (i == 11) {
this.c11 = _root.key_i_bomb.key_code;
this.t11 = _root.key_i_bomb.key_name;
} else if (i == 12) {
this.c12 = _root.key_i_skip.key_code;
this.t12 = _root.key_i_skip.key_name;
}
}
var c1;
var c2;
var c3;
var c4;
var c5;
var c6;
var c7;
var c8;
var c9;
var c10;
var c11;
var c12;
var t1;
var t2;
var t3;
var t4;
var t5;
var t6;
var t7;
var t8;
var t9;
var t10;
var t11;
var t12;
var i = 1;
while (i < 13) {
refresh_text(i);
i++;
}
}
onClipEvent (mouseDown) {
if (((!((((_root._xmouse >= 569) && (_root._xmouse <= 611)) && (_root._ymouse >= 29)) && (_root._ymouse <= 49))) && (!((((_root._xmouse >= 164) && (_root._xmouse <= 306)) && (_root._ymouse >= 85)) && (_root._ymouse <= 107)))) && (!((((_root._xmouse >= 164) && (_root._xmouse <= 306)) && (_root._ymouse >= 125)) && (_root._ymouse <= 147)))) {
tellTarget (_root) {
gotoAndStop ("Set");
};
}
}
onClipEvent (enterFrame) {
if (Key.isDown(_root.key_drop.key_code) == true) {
tellTarget (_root) {
gotoAndStop(_currentframe + 3);
};
}
}
Frame 39
var total_line = 0;
var total_block = 0;
var item_count = 0;
var MAX_line_once = 0;
var player_score = 0;
var KL_score = 0;
var player_hp = 100;
var player_hpMAX = 100;
var new_item = 0;
var new_item_next = 100;
var player_powerup = 0;
var score_submit = false;
game_go = false;
_root.game_nextlv = _root.game_levelline[_root.game_level - 1];
_root.game_nextlvo = _root.game_levelline[_root.game_level - 1];
_root.game_blocktimer = _root.game_speed[_root.game_level - 1];
_root.game_blocktimero = _root.game_speed[_root.game_level - 1];
_root.text_blocktimer = _root.game_blocktimer;
_root.text_blocktimero = _root.game_blocktimero;
game_countdown = true;
if (_root.game_mode == 1) {
_root.powerup.gotoAndStop(1);
}
_root.Speaker.stopBGM();
stop();
Frame 40
prevFrame();
Frame 41
nextFrame();
Instance of Symbol 481 MovieClip in Frame 41
onClipEvent (load) {
var nllag = false;
var times = 1;
var sn = 0;
if (Key.isDown(_root.key_drop.key_code) == true) {
nllag = true;
} else if (Key.isDown(_root.key_drop.key_code) == false) {
nllag = false;
}
}
onClipEvent (enterFrame) {
times++;
if (sn != ((Math.ceil(times / 50) * 50) + 1)) {
sn = (Math.ceil(times / 50) * 50) + 1;
}
this.gotoAndStop(Math.ceil(times / 50));
}
Frame 42
game_go = false;
game_countdown = true;
if (_root.game_mode == 1) {
_root.powerup.gotoAndStop(1);
}
stop();
Frame 43
prevFrame();
Frame 44
nextFrame();
Frame 45
game_go = true;
game_countdown = false;
if (_root.game_mode == 1) {
_root.powerup.gotoAndStop(2);
}
if (_root.random_BGM == 1) {
_root.Speaker.setBGM("ZB_RT");
} else {
_root.Speaker.setBGM("EON_DP2");
}
if (_root.option.sound_BGM == true) {
_root.Speaker.playBGM();
}
stop();
Frame 46
prevFrame();
Frame 47
nextFrame();
Instance of Symbol 491 MovieClip "gameover" in Frame 47
onClipEvent (load) {
function bomber() {
var space_left = 0;
var success = false;
var i = 0;
while (i < 5) {
var j = 0;
while (j < 5) {
if (TNT[i][j] == false) {
space_left++;
}
j++;
}
i++;
}
if (space_left > 0) {
while (success == false) {
var i = random(5);
var j = random(5);
if (TNT[j][i] == false) {
duplicateMovieClip ("_root.GFX_bomber", space_left, space_left);
tellTarget (eval ("_root." + space_left)) {
_x = (200 + (j * 60));
_y = (120 + (i * 60));
x3 = j;
y3 = i;
play();
};
TNT[j][i] = true;
success = true;
if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_Boom");
}
}
}
}
}
if (_root.random_BGM == 1) {
_root.random_BGM = 2;
} else {
_root.random_BGM = 1;
}
_root.me._visible = false;
var TNT = [[false, false, false, false, false], [false, false, false, false, false], [false, false, false, false, false], [false, false, false, false, false], [false, false, false, false, false]];
}
Frame 48
game_go = false;
game_countdown = true;
if (_root.game_mode == 1) {
_root.powerup.gotoAndStop(1);
}
_root.Speaker.stopBGM();
stop();
Frame 49
prevFrame();
Frame 50
nextFrame();
Frame 51
game_go = false;
game_countdown = true;
_root.Speaker.stopBGM();
stop();
Frame 52
prevFrame();
Symbol 4 MovieClip [lvuptext] Frame 77
removeMovieClip(this);
Symbol 6 MovieClip [GFX_lineV] Frame 25
this.removeMovieClip();
Symbol 12 Button
on (press) {
_root.game_go = true;
if (_root.game_mode == 1) {
tellTarget (_root.powerup) {
gotoAndStop (2);
};
}
removeMovieClip(this);
}
Symbol 14 Button
on (press) {
this.gotoAndStop(2);
}
Symbol 20 Button
on (press) {
_root.Speaker.playBGM();
_root.option.sound_BGM_on();
gotoAndStop (2);
}
Symbol 21 Button
on (press) {
_root.Speaker.stopBGM();
_root.option.sound_BGM_off();
gotoAndStop (3);
}
Symbol 22 MovieClip Frame 1
if (_root.option.sound_BGM == false) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
stop();
Symbol 22 MovieClip Frame 2
stop();
Symbol 22 MovieClip Frame 3
stop();
Symbol 23 Button
on (press) {
_root._quality = "HIGH";
gotoAndStop (2);
}
Symbol 24 Button
on (press) {
_root._quality = "MEDIUM";
gotoAndStop (3);
}
Symbol 25 Button
on (press) {
_root._quality = "LOW";
gotoAndStop (4);
}
Symbol 26 MovieClip Frame 1
if (_root._quality == "LOW") {
gotoAndStop (4);
} else if (_root._quality == "MEDIUM") {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
stop();
Symbol 26 MovieClip Frame 2
stop();
Symbol 26 MovieClip Frame 3
stop();
Symbol 26 MovieClip Frame 4
stop();
Symbol 27 Button
on (press) {
_root.option.sound_SFX_on();
gotoAndStop (2);
}
Symbol 28 Button
on (press) {
_root.option.sound_SFX_off();
gotoAndStop (3);
}
Symbol 29 MovieClip Frame 1
if (_root.option.sound_SFX == false) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
stop();
Symbol 29 MovieClip Frame 2
stop();
Symbol 29 MovieClip Frame 3
stop();
Symbol 32 Button
on (press) {
tellTarget (_root) {
gotoAndStop ("Over");
};
removeMovieClip(this);
}
Symbol 34 Button
on (press) {
this.gotoAndStop(1);
}
Symbol 35 MovieClip [Panel_Pause] Frame 1
stop();
Symbol 35 MovieClip [Panel_Pause] Frame 2
stop();
Symbol 36 MovieClip [GFX_lineH] Frame 25
stop();
this.removeMovieClip();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 57 MovieClip Frame 3
stop();
Symbol 57 MovieClip Frame 4
stop();
Symbol 57 MovieClip Frame 5
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 3
stop();
Symbol 64 MovieClip Frame 4
stop();
Symbol 64 MovieClip Frame 5
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
stop();
Symbol 71 MovieClip Frame 3
stop();
Symbol 71 MovieClip Frame 4
stop();
Symbol 71 MovieClip Frame 5
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
stop();
Symbol 78 MovieClip Frame 3
stop();
Symbol 78 MovieClip Frame 4
stop();
Symbol 78 MovieClip Frame 5
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
stop();
Symbol 85 MovieClip Frame 4
stop();
Symbol 85 MovieClip Frame 5
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 92 MovieClip Frame 3
stop();
Symbol 92 MovieClip Frame 4
stop();
Symbol 92 MovieClip Frame 5
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 99 MovieClip Frame 3
stop();
Symbol 99 MovieClip Frame 4
stop();
Symbol 99 MovieClip Frame 5
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
Symbol 103 MovieClip Frame 3
stop();
Symbol 103 MovieClip Frame 5
stop();
Symbol 105 MovieClip Frame 11
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
stop();
Symbol 113 MovieClip Frame 3
stop();
Symbol 113 MovieClip Frame 4
stop();
Symbol 113 MovieClip Frame 5
stop();
Symbol 114 MovieClip Frame 1
stop();
Instance of Symbol 57 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
if (_root.option.block_pic == 5) {
tellTarget (this) {
gotoAndStop (5);
};
} else if (_root.option.block_pic == 3) {
tellTarget (this) {
gotoAndStop (4);
};
} else if (_root.option.block_pic == 2) {
tellTarget (this) {
gotoAndStop (3);
};
} else if (_root.option.block_pic == 1) {
tellTarget (this) {
gotoAndStop (2);
};
} else {
tellTarget (this) {
gotoAndStop (1);
};
}
}
Symbol 114 MovieClip Frame 2
stop();
Instance of Symbol 64 MovieClip in Symbol 114 MovieClip Frame 2
onClipEvent (load) {
if (_root.option.block_pic == 5) {
tellTarget (this) {
gotoAndStop (5);
};
} else if (_root.option.block_pic == 3) {
tellTarget (this) {
gotoAndStop (4);
};
} else if (_root.option.block_pic == 2) {
tellTarget (this) {
gotoAndStop (3);
};
} else if (_root.option.block_pic == 1) {
tellTarget (this) {
gotoAndStop (2);
};
} else {
tellTarget (this) {
gotoAndStop (1);
};
}
}
Symbol 114 MovieClip Frame 3
stop();
Instance of Symbol 71 MovieClip in Symbol 114 MovieClip Frame 3
onClipEvent (load) {
if (_root.option.block_pic == 5) {
tellTarget (this) {
gotoAndStop (5);
};
} else if (_root.option.block_pic == 3) {
tellTarget (this) {
gotoAndStop (4);
};
} else if (_root.option.block_pic == 2) {
tellTarget (this) {
gotoAndStop (3);
};
} else if (_root.option.block_pic == 1) {
tellTarget (this) {
gotoAndStop (2);
};
} else {
tellTarget (this) {
gotoAndStop (1);
};
}
}
Symbol 114 MovieClip Frame 4
stop();
Instance of Symbol 78 MovieClip in Symbol 114 MovieClip Frame 4
onClipEvent (load) {
if (_root.option.block_pic == 5) {
tellTarget (this) {
gotoAndStop (5);
};
} else if (_root.option.block_pic == 3) {
tellTarget (this) {
gotoAndStop (4);
};
} else if (_root.option.block_pic == 2) {
tellTarget (this) {
gotoAndStop (3);
};
} else if (_root.option.block_pic == 1) {
tellTarget (this) {
gotoAndStop (2);
};
} else {
tellTarget (this) {
gotoAndStop (1);
};
}
}
Symbol 114 MovieClip Frame 5
stop();
Instance of Symbol 85 MovieClip in Symbol 114 MovieClip Frame 5
onClipEvent (load) {
if (_root.option.block_pic == 5) {
tellTarget (this) {
gotoAndStop (5);
};
} else if (_root.option.block_pic == 3) {
tellTarget (this) {
gotoAndStop (4);
};
} else if (_root.option.block_pic == 2) {
tellTarget (this) {
gotoAndStop (3);
};
} else if (_root.option.block_pic == 1) {
tellTarget (this) {
gotoAndStop (2);
};
} else {
tellTarget (this) {
gotoAndStop (1);
};
}
}
Symbol 114 MovieClip Frame 6
stop();
Instance of Symbol 92 MovieClip in Symbol 114 MovieClip Frame 6
onClipEvent (load) {
if (_root.option.block_pic == 5) {
tellTarget (this) {
gotoAndStop (5);
};
} else if (_root.option.block_pic == 3) {
tellTarget (this) {
gotoAndStop (4);
};
} else if (_root.option.block_pic == 2) {
tellTarget (this) {
gotoAndStop (3);
};
} else if (_root.option.block_pic == 1) {
tellTarget (this) {
gotoAndStop (2);
};
} else {
tellTarget (this) {
gotoAndStop (1);
};
}
}
Symbol 114 MovieClip Frame 7
stop();
Instance of Symbol 99 MovieClip in Symbol 114 MovieClip Frame 7
onClipEvent (load) {
if (_root.option.block_pic == 5) {
tellTarget (this) {
gotoAndStop (5);
};
} else if (_root.option.block_pic == 3) {
tellTarget (this) {
gotoAndStop (4);
};
} else if (_root.option.block_pic == 2) {
tellTarget (this) {
gotoAndStop (3);
};
} else if (_root.option.block_pic == 1) {
tellTarget (this) {
gotoAndStop (2);
};
} else {
tellTarget (this) {
gotoAndStop (1);
};
}
}
Symbol 114 MovieClip Frame 8
stop();
Instance of Symbol 103 MovieClip in Symbol 114 MovieClip Frame 8
onClipEvent (load) {
if (_root.option.block_pic == 5) {
tellTarget (this) {
gotoAndStop (5);
};
} else if (_root.option.block_pic == 3) {
tellTarget (this) {
gotoAndStop (4);
};
} else if (_root.option.block_pic == 2) {
tellTarget (this) {
gotoAndStop (3);
};
} else if (_root.option.block_pic == 1) {
tellTarget (this) {
gotoAndStop (2);
};
} else {
tellTarget (this) {
gotoAndStop (1);
};
}
}
Symbol 114 MovieClip Frame 9
stop();
Symbol 114 MovieClip Frame 10
stop();
Symbol 114 MovieClip Frame 11
stop();
Instance of Symbol 113 MovieClip in Symbol 114 MovieClip Frame 11
onClipEvent (load) {
if (_root.option.block_pic == 5) {
tellTarget (this) {
gotoAndStop (5);
};
} else if (_root.option.block_pic == 3) {
tellTarget (this) {
gotoAndStop (4);
};
} else if (_root.option.block_pic == 2) {
tellTarget (this) {
gotoAndStop (3);
};
} else if (_root.option.block_pic == 1) {
tellTarget (this) {
gotoAndStop (2);
};
} else {
tellTarget (this) {
gotoAndStop (1);
};
}
}
Symbol 117 Button
on (press) {
tellTarget (_root) {
gotoAndStop ("KL");
};
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 120 MovieClip Frame 1
stop();
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 11
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 13
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 14
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 15
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 16
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 17
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 18
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 19
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 20
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Instance of Symbol 118 MovieClip in Symbol 120 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_parent.loadtimer >= 333) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 114 MovieClip in Symbol 120 MovieClip Frame 21
onClipEvent (load) {
gotoAndStop(random(7) + 1);
}
Symbol 123 Button
on (press) {
getURL ("http://www.adobe.com/products/flashplayer/", "_blank");
}
Symbol 124 MovieClip Frame 1
var p_ver = getVersion();
var ver_t = p_ver.split(" ");
var ver_t2 = ver_t[1].split(",", 1);
var fp_ver = parseFloat(ver_t2[0]);
if (fp_ver < 8) {
nextFrame();
}
stop();
Instance of Symbol 120 MovieClip "pbar" in Symbol 124 MovieClip Frame 1
onClipEvent (load) {
totalByte = _root.getBytesTotal();
swf_size = String(Math.ceil(totalByte / 1024) + "KB");
tellTarget (_root) {
stop();
};
var loadtimer = 0;
}
onClipEvent (enterFrame) {
if (loadtimer <= 1000) {
loadtimer++;
}
loadByte = _root.getBytesLoaded();
percent = Math.floor((loadByte / totalByte) * 100);
if (percent > (loadtimer / 2)) {
this.gotoAndStop((loadtimer / 10) + 1);
num = String(Math.floor(loadtimer / 2) + "%");
} else {
this.gotoAndStop(Math.floor(percent / 5) + 1);
num = String(Math.floor(percent) + "%");
}
}
Symbol 124 MovieClip Frame 2
stop();
Symbol 496 MovieClip [__Packages.Customkey] Frame 0
class Customkey
{
function Customkey (n) {
key_code = n;
key_name = _root.key_mapping[key_code];
}
function setKeycode(n) {
key_code = n;
key_name = _root.key_mapping[key_code];
}
function getKeycode(n) {
return(key_code);
}
function getKeyname(n) {
return(_root.key_mapping[key_code]);
}
var key_code = 0;
var key_name = "";
}
Symbol 497 MovieClip [__Packages.Speaker] Frame 0
class Speaker
{
var SFX, BGM;
function Speaker () {
SFX = new Sound();
BGM = new Sound();
}
function playSFX(SFXname) {
SFX.attachSound(SFXname);
SFX.start(0, 1);
}
function setBGM(new_name) {
quote_BGM_name = new_name;
}
function playBGM() {
if (quote_BGM_name != BGM_name) {
BGM_name = quote_BGM_name;
BGM.stop();
BGM.attachSound(BGM_name);
BGM.start(0, 99999999);
}
}
function stopSFX() {
SFX.stop();
}
function stopBGM() {
BGM.stop();
BGM_name = "";
}
var BGM_name = "";
var quote_BGM_name = "";
}
Symbol 498 MovieClip [__Packages.APIsender] Frame 0
class APIsender
{
function APIsender () {
}
function sendData(m, n) {
}
}
Symbol 499 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.43");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 500 MovieClip [__Packages.Setting] Frame 0
class Setting
{
function Setting () {
}
function sound_BGM_on() {
sound_BGM = true;
lol();
}
function sound_BGM_off() {
sound_BGM = false;
lol();
}
function sound_SFX_on() {
sound_SFX = true;
lol();
}
function sound_SFX_off() {
sound_SFX = false;
lol();
}
function quality_high() {
pic_quality = "HIGH";
_root.quality = "HIGH";
}
function quality_low() {
pic_quality = "LOW";
_root._quality = "LOW";
}
function lol() {
}
function block_pic_change(n) {
block_pic = n;
}
function block_timer(n) {
timer_block = n;
}
function change_BG_on() {
change_BG = true;
}
function change_BG_off() {
change_BG = false;
}
function block_mover(n) {
block_move = n;
}
function block_rotater(n) {
block_rotate = n;
}
function block_droper(n) {
block_drop = n;
}
var sound_BGM = true;
var sound_SFX = true;
var pic_quality = _root._quality;
var block_pic = 1;
var change_BG = true;
var timer_block = true;
var block_move = true;
var block_rotate = false;
var block_drop = true;
}
Symbol 501 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local26);
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 28;
var _local21 = options.color;
delete options.color;
var _local18 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local18);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local23, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local13 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local6 = getTimer() - this.started;
var _local4 = false;
var _local5 = _root.getBytesTotal();
var _local8 = _root.getBytesLoaded();
var _local10 = (100 * _local8) / _local5;
var _local11 = (100 * _local6) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local3 = Math.min(100, Math.min(_local10 || 0, _local11));
_local3 = Math.max(this.last_pcnt, _local3);
this.last_pcnt = _local3;
_local9._xscale = _local3;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local6 > chk.ad_timeout) {
_local4 = true;
}
}
if (_local6 > chk.ad_msec) {
_local4 = true;
}
if (((_local5 > 0) && (_local8 >= _local5)) && (_local4)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 502 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.MochiServices.clip;
}
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
} else {
if (Math.floor(_local1) != _local1) {
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
} else {
if (Math.floor(score) != score) {
}
score = Number(score);
}
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 503 MovieClip [__Packages.mochi.MochiDigits] Frame 0
class mochi.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
stopAllSounds();
Symbol 143 MovieClip Frame 3
stopAllSounds();
Symbol 143 MovieClip Frame 4
stopAllSounds();
Symbol 143 MovieClip Frame 6
stopAllSounds();
Symbol 143 MovieClip Frame 7
stopAllSounds();
Symbol 143 MovieClip Frame 8
stopAllSounds();
Symbol 143 MovieClip Frame 9
stopAllSounds();
Symbol 143 MovieClip Frame 10
stopAllSounds();
Symbol 143 MovieClip Frame 11
stopAllSounds();
Symbol 143 MovieClip Frame 12
stopAllSounds();
Symbol 143 MovieClip Frame 13
stopAllSounds();
Symbol 143 MovieClip Frame 14
stopAllSounds();
Symbol 143 MovieClip Frame 15
stopAllSounds();
Symbol 143 MovieClip Frame 16
stopAllSounds();
Symbol 146 MovieClip Frame 100
tellTarget (_root) {
gotoAndStop ("Title");
};
Symbol 147 Button
on (press) {
tellTarget (_root) {
gotoAndStop ("Title");
};
}
Symbol 156 Button
on (press) {
_root.game_mode = 0;
gotoAndStop ("Mode1");
}
Symbol 157 Button
on (press) {
_root.game_mode = 1;
gotoAndStop ("Mode2");
}
Symbol 158 Button
on (press) {
gotoAndStop ("Help");
}
Symbol 159 Button
on (press) {
gotoAndStop ("Credit");
}
Symbol 160 Button
on (press) {
gotoAndStop ("Option");
}
Symbol 161 Button
on (press) {
gotoAndStop ("SList");
}
Symbol 168 Button
on (press) {
gotoAndStop (3);
}
Symbol 169 Button
on (press) {
gotoAndStop (2);
}
Symbol 170 Button
on (press) {
gotoAndStop (7);
}
Symbol 171 Button
on (press) {
gotoAndStop (6);
}
Symbol 172 Button
on (press) {
gotoAndStop (5);
}
Symbol 173 Button
on (press) {
gotoAndStop (4);
}
Symbol 175 MovieClip Frame 1
gotoAndStop(_root.game_level + 1);
stop();
Symbol 175 MovieClip Frame 2
_root.game_level = 1;
stop();
Symbol 175 MovieClip Frame 3
_root.game_level = 2;
stop();
Symbol 175 MovieClip Frame 4
_root.game_level = 3;
stop();
Symbol 175 MovieClip Frame 5
_root.game_level = 4;
stop();
Symbol 175 MovieClip Frame 6
_root.game_level = 5;
stop();
Symbol 175 MovieClip Frame 7
_root.game_level = 6;
stop();
Symbol 180 Button
on (press) {
gotoAndStop (2);
}
Symbol 181 Button
on (press) {
gotoAndStop (3);
}
Symbol 182 Button
on (press) {
gotoAndStop (4);
}
Symbol 183 MovieClip Frame 1
gotoAndStop(5 - _root.game_difficulty);
stop();
Symbol 183 MovieClip Frame 2
_root.game_difficulty = 3;
stop();
Symbol 183 MovieClip Frame 3
_root.game_difficulty = 2;
stop();
Symbol 183 MovieClip Frame 4
_root.game_difficulty = 1;
stop();
Symbol 187 Button
on (press) {
_root.game_nextlv = _root.game_levelline[_root.game_level - 1];
_root.game_nextlvo = _root.game_levelline[_root.game_level - 1];
_root.game_blocktimer = _root.game_speed[_root.game_level - 1];
_root.game_blocktimero = _root.game_speed[_root.game_level - 1];
gotoAndStop ("Ready");
}
Symbol 189 Button
on (press) {
gotoAndStop ("Title");
}
Symbol 197 Button
on (press) {
_root.option.block_pic = 1;
tellTarget (this) {
gotoAndStop(_root.option.block_pic + 1);
};
}
Symbol 198 Button
on (press) {
_root.option.block_pic = 4;
tellTarget (this) {
gotoAndStop(_root.option.block_pic + 1);
};
}
Symbol 199 Button
on (press) {
_root.option.block_pic = 5;
tellTarget (this) {
gotoAndStop(_root.option.block_pic + 1);
};
}
Symbol 200 Button
on (press) {
_root.option.block_pic = 2;
tellTarget (this) {
gotoAndStop(_root.option.block_pic + 1);
};
}
Symbol 201 Button
on (press) {
_root.option.block_pic = 3;
tellTarget (this) {
gotoAndStop(_root.option.block_pic + 1);
};
}
Symbol 202 MovieClip Frame 1
gotoAndStop(_root.option.block_pic + 1);
stop();
Symbol 202 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 3
stop();
Symbol 202 MovieClip Frame 4
stop();
Symbol 202 MovieClip Frame 5
stop();
Symbol 202 MovieClip Frame 6
stop();
Symbol 203 Button
on (press) {
gotoAndStop ("Key");
}
Symbol 204 Button
on (press) {
_root.option.block_mover(false);
gotoAndStop (3);
}
Symbol 205 Button
on (press) {
_root.option.block_mover(true);
gotoAndStop (2);
}
Symbol 206 MovieClip Frame 1
if (_root.option.block_move == true) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 3
stop();
Symbol 207 Button
on (press) {
_root.so.data = null;
_root._quality = "HIGH";
_root.option.sound_SFX = true;
_root.option.sound_BGM = true;
_root.option.block_pic = 1;
_root.option.change_BG = true;
_root.key_left.setKeycode(37);
_root.key_right.setKeycode(39);
_root.key_up.setKeycode(38);
_root.key_down.setKeycode(40);
_root.key_drop.setKeycode(32);
_root.key_CW.setKeycode(88);
_root.key_CCW.setKeycode(90);
_root.key_pause.setKeycode(80);
_root.key_speed.setKeycode(16);
_root.key_i_stop.setKeycode(49);
_root.key_i_bomb.setKeycode(50);
_root.key_i_skip.setKeycode(51);
_root.option.block_move = true;
_root.option.block_drop = true;
_root.game_difficulty = 3;
_root.game_level = 1;
gotoAndStop ("Title");
}
Symbol 208 Button
on (press) {
_root.option.block_droper(false);
gotoAndStop (3);
}
Symbol 209 Button
on (press) {
_root.option.block_droper(true);
gotoAndStop (2);
}
Symbol 210 MovieClip Frame 1
if (_root.option.block_drop == true) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 210 MovieClip Frame 2
stop();
Symbol 210 MovieClip Frame 3
stop();
Symbol 211 Button
on (press) {
_root.option.change_BG_on();
gotoAndStop (2);
}
Symbol 212 Button
on (press) {
_root.option.change_BG_off();
gotoAndStop (3);
}
Symbol 213 MovieClip Frame 1
if (_root.option.change_BG == false) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
stop();
Symbol 213 MovieClip Frame 2
stop();
Symbol 213 MovieClip Frame 3
stop();
Symbol 214 Button
on (press) {
_root.option.block_timer(true);
gotoAndStop (2);
}
Symbol 215 Button
on (press) {
_root.option.block_timer(false);
gotoAndStop (2);
}
Symbol 216 MovieClip Frame 1
if ((_root.option.timer_block == false) || (_root.option.timer_block == null)) {
gotoAndStop (3);
_root.option.timer_block = false;
} else {
gotoAndStop (2);
}
stop();
Symbol 216 MovieClip Frame 2
stop();
Symbol 216 MovieClip Frame 3
stop();
Symbol 246 Button
on (press) {
set_key(1);
}
Symbol 247 Button
on (press) {
set_key(2);
}
Symbol 248 Button
on (press) {
set_key(3);
}
Symbol 249 Button
on (press) {
set_key(4);
}
Symbol 250 Button
on (press) {
set_key(5);
}
Symbol 251 Button
on (press) {
set_key(6);
}
Symbol 252 Button
on (press) {
set_key(7);
}
Symbol 253 Button
on (press) {
set_key(8);
}
Symbol 254 Button
on (press) {
set_key(9);
}
Symbol 256 Button
on (press) {
_root.gotoAndStop(_root._currentframe - 3);
}
Symbol 257 Button
on (press) {
set_key(10);
}
Symbol 258 Button
on (press) {
set_key(11);
}
Symbol 259 Button
on (press) {
set_key(12);
}
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 2
stop();
Symbol 263 Button
on (press) {
gotoAndStop ("hint");
}
Symbol 264 Button
on (press) {
tellTarget (_root) {
gotoAndStop ("Title");
};
}
Symbol 265 Button
on (press) {
gotoAndStop ("advance");
}
Symbol 266 Button
on (press) {
gotoAndStop ("classic");
}
Symbol 267 Button
on (press) {
gotoAndStop ("control");
}
Symbol 268 Button
on (press) {
gotoAndStop ("GI");
}
Symbol 272 Button
on (press) {
gotoAndStop (1);
}
Symbol 273 Button
on (press) {
nextFrame();
}
Symbol 277 Button
on (press) {
prevFrame();
}
Symbol 323 MovieClip Frame 101
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 51
stop();
Symbol 328 MovieClip Frame 1
tellTarget (time_bar) {
gotoAndPlay (1);
};
Symbol 328 MovieClip Frame 50
tellTarget (time_bar) {
gotoAndPlay (1);
};
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 50
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 50
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 50
onClipEvent (load) {
gotoAndStop (4);
}
Symbol 328 MovieClip Frame 90
tellTarget (time_bar) {
gotoAndPlay (1);
};
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 90
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 90
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 90
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 90
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 90
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 90
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 90
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 90
onClipEvent (load) {
gotoAndStop (5);
}
Symbol 328 MovieClip Frame 150
tellTarget (time_bar) {
gotoAndPlay (1);
};
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 150
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 150
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 150
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 150
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 150
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 328 MovieClip Frame 150
onClipEvent (load) {
gotoAndStop (7);
}
Symbol 333 MovieClip Frame 51
stop();
Symbol 335 MovieClip Frame 1
tellTarget (time_bar) {
gotoAndPlay (1);
};
Symbol 335 MovieClip Frame 25
tellTarget (time_bar) {
stop();
};
Symbol 335 MovieClip Frame 51
tellTarget (time_bar) {
gotoAndStop (1);
};
Instance of Symbol 114 MovieClip in Symbol 335 MovieClip Frame 51
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 335 MovieClip Frame 51
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 335 MovieClip Frame 51
onClipEvent (load) {
gotoAndStop (5);
}
Symbol 335 MovieClip Frame 101
tellTarget (time_bar) {
gotoAndPlay (1);
};
Instance of Symbol 114 MovieClip in Symbol 335 MovieClip Frame 151
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 335 MovieClip Frame 151
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 335 MovieClip Frame 151
onClipEvent (load) {
gotoAndStop (5);
}
Symbol 338 MovieClip Frame 1
tellTarget (time_bar) {
gotoAndPlay (1);
};
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
}
Symbol 338 MovieClip Frame 51
tellTarget (time_bar) {
gotoAndStop (1);
};
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 51
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 61
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 61
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 61
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 114 MovieClip in Symbol 338 MovieClip Frame 61
onClipEvent (load) {
gotoAndStop (3);
}
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 2
play();
Symbol 341 MovieClip Frame 10
gotoAndStop (1);
Symbol 342 MovieClip Frame 1
tellTarget (time_bar) {
gotoAndPlay (1);
};
tellTarget (HP_bar) {
gotoAndStop (1);
};
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Symbol 342 MovieClip Frame 51
tellTarget (time_bar) {
gotoAndStop (1);
};
tellTarget (HP_bar) {
nextFrame();
nextFrame();
nextFrame();
};
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 51
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 51
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 342 MovieClip Frame 51
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 341 MovieClip in Symbol 342 MovieClip Frame 51
onClipEvent (load) {
gotoAndPlay (2);
}
Instance of Symbol 341 MovieClip in Symbol 342 MovieClip Frame 51
onClipEvent (load) {
gotoAndPlay (2);
}
Instance of Symbol 341 MovieClip in Symbol 342 MovieClip Frame 51
onClipEvent (load) {
gotoAndPlay (2);
}
Symbol 345 MovieClip Frame 1
tellTarget (time_bar) {
gotoAndPlay (1);
};
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
}
Symbol 345 MovieClip Frame 101
tellTarget (time_bar) {
gotoAndPlay (1);
};
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 101
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 345 MovieClip Frame 151
tellTarget (time_bar) {
gotoAndStop (1);
};
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 151
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 151
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 151
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 114 MovieClip in Symbol 345 MovieClip Frame 151
onClipEvent (load) {
gotoAndStop (5);
}
Symbol 349 MovieClip Frame 1
tellTarget (time_bar) {
gotoAndPlay (1);
};
tellTarget (HP_bar) {
gotoAndStop (48);
};
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 114 MovieClip in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (7);
}
Symbol 349 MovieClip Frame 51
tellTarget (time_bar) {
stop();
};
tellTarget (HP_bar) {
gotoAndStop (51);
};
Instance of Symbol 341 MovieClip in Symbol 349 MovieClip Frame 51
onClipEvent (load) {
gotoAndPlay (2);
}
Instance of Symbol 341 MovieClip in Symbol 349 MovieClip Frame 51
onClipEvent (load) {
gotoAndPlay (2);
}
Instance of Symbol 341 MovieClip in Symbol 349 MovieClip Frame 51
onClipEvent (load) {
gotoAndPlay (2);
}
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 2
stop();
Symbol 358 MovieClip Frame 3
stop();
Symbol 358 MovieClip Frame 4
stop();
Instance of Symbol 114 MovieClip in Symbol 358 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 114 MovieClip in Symbol 358 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 114 MovieClip in Symbol 358 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop (7);
}
Instance of Symbol 114 MovieClip in Symbol 358 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop (7);
}
Symbol 358 MovieClip Frame 5
stop();
Symbol 358 MovieClip Frame 6
stop();
Symbol 358 MovieClip Frame 7
stop();
Symbol 358 MovieClip Frame 8
stop();
Symbol 358 MovieClip Frame 9
stop();
Symbol 358 MovieClip Frame 10
stop();
Symbol 358 MovieClip Frame 11
stop();
Symbol 358 MovieClip Frame 12
stop();
Symbol 358 MovieClip Frame 13
stop();
Symbol 364 Button
on (press) {
getURL ("https://www.mochiads.com/r/a2e030bac295346e", "_blank");
}
Symbol 367 Button
on (press) {
_root.temp_mode = 0;
_root.temp_level = 1;
tellTarget ("_root") {
gotoAndStop(_currentframe + 3);
};
}
Symbol 368 Button
on (press) {
_root.temp_mode = 0;
_root.temp_level = 2;
tellTarget ("_root") {
gotoAndStop(_currentframe + 3);
};
}
Symbol 369 Button
on (press) {
_root.temp_mode = 0;
_root.temp_level = 3;
tellTarget ("_root") {
gotoAndStop(_currentframe + 3);
};
}
Symbol 370 Button
on (press) {
_root.temp_mode = 1;
_root.temp_level = 1;
tellTarget ("_root") {
gotoAndStop(_currentframe + 3);
};
}
Symbol 371 Button
on (press) {
_root.temp_mode = 1;
_root.temp_level = 2;
tellTarget ("_root") {
gotoAndStop(_currentframe + 3);
};
}
Symbol 372 Button
on (press) {
_root.temp_mode = 1;
_root.temp_level = 3;
tellTarget ("_root") {
gotoAndStop(_currentframe + 3);
};
}
Symbol 375 Button
on (press) {
_root.gotoAndStop(_currentframe - 3);
}
Symbol 384 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 50
stop();
Symbol 384 MovieClip Frame 100
stop();
Instance of Symbol 114 MovieClip "layout_block" in Symbol 386 MovieClip Frame 1
onClipEvent (load) {
if (_name == "layout_block") {
_visible = false;
}
}
Instance of Symbol 114 MovieClip "layout_block" in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
if (_name == "layout_block") {
_visible = false;
var b_depth = 1;
var i = 0;
var j = 0;
i = 0;
while (i < 15) {
j = 0;
while (j < 15) {
duplicateMovieClip (this, b_depth, b_depth);
tellTarget (eval ("_root.board." + b_depth)) {
_y = ((this.i * 20) + 10);
_x = ((this.j * 20) + 10);
if (_root.board_game[this.i][this.j] != 0) {
gotoAndStop(_root.board_game[this.i][this.j]);
} else {
gotoAndStop (9);
}
};
b_depth++;
j++;
}
i++;
}
}
}
Instance of Symbol 114 MovieClip "myblock" in Symbol 397 MovieClip Frame 1
onClipEvent (load) {
if (_name == "myblock") {
_visible = false;
var i = 0;
var j = 0;
var b_depth = 0;
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
duplicateMovieClip (this, b_depth, b_depth);
tellTarget (eval ("this._parent." + b_depth)) {
_y = ((this.i * 20) - 40);
_x = ((this.j * 20) - 40);
if (_root.board_mine[this.i][this.j] != 0) {
gotoAndStop(_root.board_mine[this.i][this.j]);
} else {
gotoAndStop (9);
}
_alpha = 75;
};
b_depth++;
j++;
}
i++;
}
}
}
Instance of Symbol 396 MovieClip in Symbol 397 MovieClip Frame 1
onClipEvent (load) {
if ((_root.option.timer_block == false) || (_root.option.timer_block == null)) {
_visible = false;
} else {
_visible = true;
}
this.stop();
}
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(((_root.game_blocktimero - _root.game_blocktimer) / _root.game_blocktimero) * 100) + 1);
}
Instance of Symbol 341 MovieClip "myblock" in Symbol 398 MovieClip Frame 1
onClipEvent (load) {
if (_name == "myblock") {
_visible = false;
var i = 0;
var j = 0;
var b_depth = 0;
i = 0;
while (i < 5) {
j = 0;
while (j < 5) {
duplicateMovieClip (this, b_depth, b_depth);
tellTarget (eval ("this._parent." + b_depth)) {
_y = ((this.i * 20) - 40);
_x = ((this.j * 20) - 40);
};
b_depth++;
j++;
}
i++;
}
}
}
Symbol 404 Button
on (press) {
_root.powerup.item_bomb();
}
Symbol 405 MovieClip Frame 1
stop();
Symbol 406 Button
on (press) {
_root.powerup.item_skip();
}
Symbol 407 MovieClip Frame 1
stop();
Symbol 408 Button
on (press) {
_root.powerup.item_stop();
}
Symbol 409 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 2
stop();
Instance of Symbol 412 MovieClip in Symbol 415 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
var hold = false;
}
onClipEvent (enterFrame) {
if (_root.item_in_use[2] == true) {
_visible = true;
} else {
_visible = false;
}
if (Key.isDown(_root.key_i_skip.key_code) == true) {
if (hold == false) {
_root.powerup.item_skip();
}
hold = true;
} else {
hold = false;
}
}
Instance of Symbol 412 MovieClip in Symbol 415 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
var hold = false;
}
onClipEvent (enterFrame) {
if (_root.item_in_use[1] == true) {
_visible = true;
} else {
_visible = false;
}
if (Key.isDown(_root.key_i_bomb.key_code) == true) {
if (hold == false) {
_root.powerup.item_bomb();
}
hold = true;
} else {
hold = false;
}
}
Instance of Symbol 412 MovieClip in Symbol 415 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
var hold = false;
}
onClipEvent (enterFrame) {
if (_root.item_in_use[0] == true) {
_visible = true;
} else {
_visible = false;
}
if (Key.isDown(_root.key_i_stop.key_code) == true) {
if (hold == false) {
_root.powerup.item_stop();
}
hold = true;
} else {
hold = false;
}
}
Instance of Symbol 414 MovieClip "f_text" in Symbol 415 MovieClip Frame 2
onClipEvent (load) {
var flashing = false;
var f_time = 0;
}
onClipEvent (enterFrame) {
if (flashing == true) {
f_time = 50;
flashing = false;
}
if (f_time > 0) {
if ((f_time % 10) > 4) {
_visible = false;
} else {
_visible = true;
}
f_time--;
} else {
_visible = true;
}
}
Instance of Symbol 400 MovieClip "Item_bar" in Symbol 424 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(500);
var pos;
}
onClipEvent (enterFrame) {
pos = Math.floor((_root.new_item / _root.new_item_next) * 500);
this.gotoAndStop(500 - this.pos);
}
Symbol 426 Button
on (press) {
tellTarget (_root) {
gotoAndStop ("Title");
};
}
Symbol 452 Button
on (press) {
gotoAndStop (4);
}
Symbol 453 Button
on (press) {
gotoAndStop (2);
}
Symbol 454 Button
on (press) {
gotoAndStop (3);
}
Symbol 466 Button
on (press) {
gotoAndStop (5);
}
Symbol 477 MovieClip Frame 1
if (_root.option.block_drop == false) {
if (_root.option.block_move == true) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
} else if (_root.option.block_move == true) {
gotoAndStop (4);
} else {
gotoAndStop (5);
}
stop();
Symbol 477 MovieClip Frame 2
_root.option.block_mover(true);
_root.option.block_droper(false);
stop();
Instance of Symbol 446 MovieClip in Symbol 477 MovieClip Frame 2
onClipEvent (load) {
if (_root.game_mode == 0) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 477 MovieClip Frame 3
_root.option.block_mover(false);
_root.option.block_droper(false);
stop();
Symbol 477 MovieClip Frame 4
_root.option.block_mover(true);
_root.option.block_droper(true);
stop();
Symbol 477 MovieClip Frame 5
_root.option.block_mover(false);
_root.option.block_droper(true);
stop();
Symbol 481 MovieClip Frame 1
if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_Countdown");
}
stop();
Symbol 481 MovieClip Frame 2
if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_Countdown");
}
stop();
Symbol 481 MovieClip Frame 3
if (_root.option.sound_SFX == true) {
_root.Speaker.playSFX("SFX_Countdown");
}
stop();
Symbol 481 MovieClip Frame 4
tellTarget (_root) {
gotoAndStop(_currentframe + 3);
};
stop();
Symbol 483 MovieClip Frame 25
stop();
Symbol 484 MovieClip Frame 5
var i = -1;
while (i < 2) {
var j = -1;
while (j < 2) {
_root.board_game[(1 + (y3 * 3)) + j][(1 + (x3 * 3)) + i] = 0;
j++;
}
i++;
}
_root.lol.redraw_board(1, 1 + (x3 * 3), 1 + (y3 * 3));
Symbol 484 MovieClip Frame 25
stop();
Symbol 487 Button
on (press) {
_root.me._visible = true;
tellTarget (_root) {
_root.lol.change_block();
_root.lol.change_block();
_root.lol.change_block();
_root.lol.change_block();
gotoAndStop ("Ready");
};
}
Symbol 489 Button
on (press) {
tellTarget (_root) {
gotoAndStop ("Title");
};
}
Symbol 490 Button
on (press) {
if ((_root.score_submit == true) || ((_root.player_score + _root.KL_score) != 0)) {
_root.player_score = -1;
}
_root.score_submit = true;
tellTarget ("_root") {
gotoAndStop(_currentframe + 3);
};
}
Symbol 491 MovieClip Frame 1
bomber();
Symbol 491 MovieClip Frame 5
bomber();
Symbol 491 MovieClip Frame 9
bomber();
Symbol 491 MovieClip Frame 13
bomber();
Symbol 491 MovieClip Frame 17
bomber();
Symbol 491 MovieClip Frame 21
bomber();
Symbol 491 MovieClip Frame 25
bomber();
Symbol 491 MovieClip Frame 29
bomber();
Symbol 491 MovieClip Frame 33
bomber();
Symbol 491 MovieClip Frame 37
bomber();
Symbol 491 MovieClip Frame 41
bomber();
Symbol 491 MovieClip Frame 45
bomber();
Symbol 491 MovieClip Frame 49
bomber();
Symbol 491 MovieClip Frame 53
bomber();
Symbol 491 MovieClip Frame 57
bomber();
Symbol 491 MovieClip Frame 61
bomber();
Symbol 491 MovieClip Frame 65
bomber();
Symbol 491 MovieClip Frame 69
bomber();
Symbol 491 MovieClip Frame 73
bomber();
Symbol 491 MovieClip Frame 77
bomber();
Symbol 491 MovieClip Frame 81
bomber();
Symbol 491 MovieClip Frame 85
bomber();
Symbol 491 MovieClip Frame 89
bomber();
Symbol 491 MovieClip Frame 93
bomber();
Symbol 491 MovieClip Frame 97
bomber();
Symbol 491 MovieClip Frame 175
if (_root.game_mode == 0) {
if (_root.game_difficulty == 3) {
_root.API.sendData("Classic - Easy", _root.player_score);
} else if (_root.game_difficulty == 2) {
_root.API.sendData("Classic - Medium", _root.player_score);
} else if (_root.game_difficulty == 1) {
_root.API.sendData("Classic - Hard", _root.player_score);
}
_root.API.sendData("Classic - MAX Total Line", _root.total_line);
_root.API.sendData("Classic - MAX Total Block", _root.total_block);
_root.API.sendData("Classic - MAX Line Clear at once", _root.MAX_line_once);
} else if (_root.game_mode == 1) {
if (_root.game_difficulty == 3) {
_root.API.sendData("Advance - Easy", _root.player_score);
} else if (_root.game_difficulty == 2) {
_root.API.sendData("Advance - Medium", _root.player_score);
} else if (_root.game_difficulty == 1) {
_root.API.sendData("Advance - Hard", _root.player_score);
}
_root.API.sendData("Advance - MAX Total Line", _root.total_line);
_root.API.sendData("Advance - MAX Total Block", _root.total_block);
_root.API.sendData("Advance - MAX Item Get", _root.item_count);
_root.API.sendData("Advance - MAX Line Clear at once", _root.MAX_line_once);
_root.API.sendData("Advance - MAX HP", _root.player_hpMAX);
}
stop();
Symbol 493 Button
on (press) {
nextFrame();
}
Symbol 495 MovieClip Frame 1
if (_root.game_mode == 0) {
if (_root.game_difficulty == 3) {
mochi.MochiScores.showLeaderboard({boardID:"39f067e44cab99da", clip:_root.MA_score, score:_root.player_score, res:"640x490", hideDoneButton:true});
} else if (_root.game_difficulty == 2) {
mochi.MochiScores.showLeaderboard({boardID:"f5c7e916df8195bd", clip:_root.MA_score, score:_root.player_score, res:"640x490", hideDoneButton:true});
} else if (_root.game_difficulty == 1) {
mochi.MochiScores.showLeaderboard({boardID:"bc4c4e555d502a3d", clip:_root.MA_score, score:_root.player_score, res:"640x490", hideDoneButton:true});
}
} else if (_root.game_mode == 1) {
if (_root.game_difficulty == 3) {
mochi.MochiScores.showLeaderboard({boardID:"12cf2e763b9d74f9", clip:_root.MA_score, score:_root.player_score, res:"640x490", hideDoneButton:true});
} else if (_root.game_difficulty == 2) {
mochi.MochiScores.showLeaderboard({boardID:"4cca9d63f608000b", clip:_root.MA_score, score:_root.player_score, res:"640x490", hideDoneButton:true});
} else if (_root.game_difficulty == 1) {
mochi.MochiScores.showLeaderboard({boardID:"1b960d5d43513d8b", clip:_root.MA_score, score:_root.player_score, res:"640x490", hideDoneButton:true});
}
}
stop();
Symbol 495 MovieClip Frame 2
_root.MA_score.unloadMovie();
stop();