Frame 1
function SWF_LOAD_WAIT() {
loadb = _root.getBytesLoaded();
loadf = _root._framesloaded;
if ((totalb == loadb) && (totalf == loadf)) {
delete totalb;
clearInterval(tv);
gotoAndPlay (2);
}
}
var tv;
var totalb;
var loadb;
var totalf;
var loadf;
totalb = _root.getBytesTotal();
totalf = _root._totalframes;
tv = setInterval(SWF_LOAD_WAIT, 20);
stop();
Frame 2
function tile_gen(x, y, z) {
n = 0;
tname = (("t" + x) + "_") + y;
if (eval ("_root.field.map." + tname)) {
removeMovieClip(eval ("_root.field.map." + tname));
}
_root.field.map.attachMovie("GRPSET", tname, z);
xpoint = (x * (-(50 - n))) + (y * (50 - n));
ypoint = (x + y) * (25 - (n / 2));
with (eval ("_root.field.map." + tname)) {
_x = xpoint;
_y = ypoint;
}
tile_ref = eval ("_root.field.map." + tname);
tile_ref.area.x = x;
tile_ref.area.y = y;
tile_ref.area.ix = x;
tile_ref.area.iy = y;
tile_ref.area._alpha = 0;
tile_ref.area.onRelease = function () {
if (tID == 0) {
_root.map_drag(false);
} else if (!_root.field.interface.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.tile_release(this.ix, this.iy);
}
};
tile_ref.area.onReleaseOutside = function () {
if (tID != 0) {
var i;
var j;
i = 0;
while (i < bld[bset[tID].first].nxn) {
j = 0;
while (j < bld[bset[tID].first].nxn) {
eval ((("_root.field.map.grid." + (x - i)) + "_") + (y - j)).gotoAndStop("BLANK");
j++;
}
i++;
}
}
if (tID == 0) {
_root.map_drag(false);
}
};
tile_ref.area.onPress = function () {
if (tID == 0) {
if (!_root.field.interface.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.map_drag(true);
}
}
};
tile_ref.area.onRollOver = function () {
_global.cursor_tile_x = x;
_global.cursor_tile_y = y;
if (tID != 0) {
var i;
var j;
i = 0;
while (i < bld[bset[tID].first].nxn) {
j = 0;
while (j < bld[bset[tID].first].nxn) {
eval ((("_root.field.map.grid." + (x - i)) + "_") + (y - j)).gotoAndStop("PREVIEW");
j++;
}
i++;
}
}
_root.field.effect_bldrollover(x, y);
};
tile_ref.area.onRollOut = function () {
_global.cursor_tile_x = -1;
_global.cursor_tile_y = -1;
if (tID != 0) {
var i;
var j;
i = 0;
while (i < bld[bset[tID].first].nxn) {
j = 0;
while (j < bld[bset[tID].first].nxn) {
eval ((("_root.field.map.grid." + (x - i)) + "_") + (y - j)).gotoAndStop("BLANK");
j++;
}
i++;
}
}
_root.field.effect_bldrollout(x, y);
};
tname = (x + "_") + y;
_root.field.map.grid.norm.attachMovie("GRID_NORM", tname, z);
_root.field.map.grid.attachMovie("GRID_INFO", tname, z);
with (eval ("_root.field.map.grid.norm." + tname)) {
_x = xpoint;
_y = ypoint;
}
with (eval ("_root.field.map.grid." + tname)) {
_x = xpoint;
_y = ypoint;
}
eval ("_root.field.map.grid." + tname).x = x;
eval ("_root.field.map.grid." + tname).y = y;
return(tname);
}
function debug_tile_gen() {
_root.attachMovie("GRPSET_" + theme, "DEBUG_TILE", 9999);
DEBUG_TILE._x = -300;
DEBUG_TILE._y = -300;
}
function minimap_gen() {
var n = 0;
var i;
var j;
var z = 0;
var fullwidth = _root.field.interface.minimap.mm_area._width;
var fullheight = _root.field.interface.minimap.mm_area._height;
var mm_width = 10;
var mm_height = 10;
i = 0;
while (i < mapsize) {
j = 0;
while (j < mapsize) {
tname = (("mm_" + i) + "_") + j;
_root.field.interface.minimap.m_array.attachMovie("MINIMAP", tname, z);
xpoint = mm_height * j;
ypoint = mm_width * i;
var targ = eval ("_root.field.interface.minimap.m_array." + tname);
targ._x = xpoint;
targ._y = ypoint;
targ._width = mm_width + n;
targ._height = mm_height + n;
targ.display.gotoAndStop(bld[DEFTILE].mm);
targ.x = i;
targ.y = j;
targ.area._alpha = 0;
targ.area.onRelease = function () {
var mv = (_root.field.map._xscale / 100);
_root.field.map._x = _root.view_center._x - (eval ((("_root.field.map.t" + this._parent.x) + "_") + this._parent.y)._x * mv);
_root.field.map._y = _root.view_center._y - (eval ((("_root.field.map.t" + this._parent.x) + "_") + this._parent.y)._y * mv);
};
z++;
j++;
}
i++;
}
_root.field.interface.minimap.m_array._width = fullwidth;
_root.field.interface.minimap.m_array._height = fullheight;
}
function tile_set(x, y, bldid, subid, areasize, immunity) {
if ((x == U) || (y == U)) {
return(undefined);
}
var tinfo = tile[(x * mapsize) + y];
var tname = ((("_root.field.map.t" + x) + "_") + y);
((bldid == 0) ? ((bldid = "BLANK")) : null);
if (bldid != U) {
tinfo.bldid = bldid;
eval (tname).gotoAndStop("ERR");
var grpid = ((bldid != "BLANK") ? (bld[bldid].grpid) : "BLANK");
eval (tname).gotoAndStop(grpid);
var ix = eval (tname).area.ix;
var iy = eval (tname).area.iy;
var targ = eval ((("_root.field.interface.minimap.m_array.mm_" + x) + "_") + y);
targ.display.gotoAndStop(bld[tile[(x * mapsize) + y].bldid].mm);
targ.display._xscale = (targ.display._yscale = bld[tile[(x * mapsize) + y].bldid].nxn * 100);
}
if (subid != U) {
tinfo.subid = subid;
eval (tname).mod1.gotoAndStop(subid);
}
if (areasize != U) {
tinfo.z = zvalue(x, (y - areasize) + 1) + 1;
eval (tname).swapDepths(tinfo.z);
}
if (immunity != U) {
tinfo.immunity = immunity;
}
tile[(x * mapsize) + y] = tinfo;
return(tinfo);
}
function tile_indirect(x, y, ix, iy) {
var tname = ((("_root.field.map.t" + x) + "_") + y);
ix = ((ix == -1) ? (eval (tname).area.x) : (ix));
iy = ((iy == -1) ? (eval (tname).area.y) : (iy));
eval (tname).area.ix = ix;
eval (tname).area.iy = iy;
}
function tile_minormod(bldmod, x, y, spread) {
spread = ((spread == U) ? true : false);
if (bldmod == 2) {
var tinfo = tile[(x * mapsize) + y];
var tlist = new Array(4);
var vlist = new Array(4);
var tilebit = 0;
var bldset = bldid_split(tinfo.bldid, 0);
var bldnum = bldid_split(tinfo.bldid, 1);
tlist[0] = (((y - 1) < 0) ? -1 : ((x * mapsize) + (y - 1)));
tlist[1] = (((x - 1) < 0) ? -1 : (((x - 1) * mapsize) + y));
tlist[2] = (((y + 1) >= mapsize) ? -1 : ((x * mapsize) + (y + 1)));
tlist[3] = (((x + 1) >= mapsize) ? -1 : (((x + 1) * mapsize) + y));
var i = 0;
while (i < 4) {
if (tlist[i] != -1) {
var n = bldid_split(tile[tlist[i]].bldid, 0);
vlist[i] = Number((n == bldset) || (findv(n, bld[tinfo.bldid].samelist)));
} else {
vlist[i] = 1;
}
vlist[i] = vlist[i] * Math.pow(2, i);
i++;
}
tilebit = (((vlist[0] + vlist[1]) + vlist[2]) + vlist[3]) + 1;
tinfo = tile_set(x, y, U, tilebit);
if (spread) {
var i = 0;
while (i < 4) {
if (vlist[i]) {
tile_minormod(bldmod, int(tlist[i] / mapsize), tlist[i] % mapsize, false);
}
i++;
}
}
}
}
function map_drag(value) {
if (value != now_drag) {
if (value) {
_root.field.map.startDrag();
} else {
_root.field.map.stopDrag();
}
}
_global.now_drag = value;
}
function mapscroll(x, y) {
var h_s = (_root.field.savebutton.hitTest(_root._xmouse, _root._ymouse, true) && (_root.field.savebutton._visible));
((h_s == U) ? ((h_s = false)) : 0);
if (!h_s) {
_root.field.map._x = _root.field.map._x + x;
_root.field.map._y = _root.field.map._y + y;
}
}
function map_grid(value) {
if (value != now_grid) {
if (value) {
}
_root.field.map.grid.norm._visible = value;
}
_global.now_grid = value;
}
function tile_boom(x, y, after_tile) {
var tinfo = tile[(x * mapsize) + y];
var binfo = bld[tinfo.bldid];
var nxn = binfo.nxn;
if (after_tile == U) {
after_tile = DEFTILE;
}
DEBUGMSG(after_tile);
effect("BOOM");
var i = 0;
while (i < nxn) {
var j = 0;
while (j < nxn) {
if ((i == 0) && (j == 0)) {
var depth = tinfo.z;
eval ((("_root.field.map.t" + x) + "_") + y).swapDepths(depth);
tile_set(x, y, after_tile, 0, 1, 0);
} else {
tile_set(x - i, y - j, after_tile, 0);
tile_indirect(x - i, y - j, -1, -1);
}
j++;
}
i++;
}
}
function tile_duplicate(mapsize, start_v, end_v) {
start_v = ((start_v == U) ? 0 : (start_v));
end_v = ((end_v == U) ? (mapsize * mapsize) : (end_v));
var i;
var j;
var je;
var stopper = true;
var t_value = (new Date().getTime() + lperiod);
i = start_v;
while (((i < end_v) && (i < (mapsize * mapsize))) && (stopper)) {
var x = Math.floor(i / mapsize);
var y = (i % mapsize);
var z = zvalue(x, y);
var n = ((x * mapsize) + y);
tile[n] = new tile_info(x, y, z);
tname = tile_gen(x, y, z);
if (list_city_data[n + 1] == U) {
tile_set(x, y, DEFTILE, 0);
} else {
tile_info_assemble(list_city_data[n + 1]);
}
var t_value2 = new Date().getTime();
if (t_value <= t_value2) {
stopper = false;
}
i++;
}
lstart = i;
DEBUGMSG(i);
if (i == (mapsize * mapsize)) {
return(true);
}
return(false);
}
function zvalue(x, y) {
return((((mapsize - 1) * x) + (mapsize * y)) * 2);
}
function tile_release(x, y) {
if ((x == U) || (y == U)) {
return(undefined);
}
var tool = tID;
var tinfo = tile[(x * mapsize) + y];
var binfo = bld[tinfo.bldid];
var bldset = bldid_split(tinfo.bldid, 0);
var bldnum = bldid_split(tinfo.bldid, 1);
var nxn;
var igtile;
var nxnactive;
var alter_bld = null;
if (tool == BOOM) {
nxn = binfo.nxn;
var after_tile;
after_tile = ((after_list[bldset] == U) ? (DEFTILE) : (after_list[bldset]));
eval ((("_root.field.map.t" + x) + "_") + y).destroy.gotoAndPlay("BOOM");
eval ((("_root.field.map.t" + x) + "_") + y).destroy.bmb_h = (nxn - 1) * -25;
eval ((("_root.field.map.t" + x) + "_") + y).destroy.tot_s = nxn * 100;
eval ((("_root.field.map.t" + x) + "_") + y).destroy.after_tile = after_tile;
tile_set(x, y, U, U, U, 1);
return(undefined);
}
var hashcode = hash_list[(tinfo.bldid + ";") + tool];
if (hashcode != U) {
hashcode = hashcode.split(";");
alter_bld = hashcode[0];
tool = hashcode[1];
}
if (alter_bld != null) {
nxn = bld[alter_bld].nxn;
igtile = binfo.nxn;
} else if (same(tool, bldset)) {
nxn = bld[binfo.nextbld].nxn;
igtile = binfo.nxn;
} else {
nxn = bld[bset[tool].first].nxn;
igtile = 0;
}
var allow = true;
var i = 0;
while (i < nxn) {
var j = 0;
while (j < nxn) {
if ((i >= igtile) || (j >= igtile)) {
var a_id = tile[((x - i) * mapsize) + (y - j)].bldid;
var a_value = ((((x - i) < 0) || ((y - j) < 0)) ? false : (allow_construct(tool, a_id, (i == 0) && (j == 0))));
allow = allow & a_value;
if (!a_value) {
eval ((("_root.field.map.grid." + (x - i)) + "_") + (y - j)).gotoAndPlay("ERROR");
}
}
j++;
}
i++;
}
if (allow) {
if (same(tool, bldset) || (alter_bld != null)) {
var next = ((alter_bld == null) ? (binfo.nextbld) : (alter_bld));
if (next != null) {
tinfo = tile_set(x, y, next, 0, nxn);
}
nxnactive = nxn > igtile;
} else {
tinfo = tile_set(x, y, bset[tool].first, 0, nxn);
nxnactive = nxn > 1;
}
if (nxnactive) {
var i = 0;
while (i < nxn) {
var j = 0;
while (j < nxn) {
if ((i == 0) && (j == 0)) {
} else {
tile_indirect(x - i, y - j, x, y);
tile_set(x - i, y - j, 0, 0);
}
j++;
}
i++;
}
}
var bldmod = bld[tinfo.bldid].selfmod;
tile_minormod(bldmod, x, y);
bldset = bldid_split(tinfo.bldid, 0);
_root.field.effect_bldafter(x, y, nxn, tinfo);
effect("CONST_COMP");
}
}
function allow_construct(tool, bldid, sameallow) {
((sameallow == U) ? ((sameallow = true)) : null);
if (bldid == "BLANK") {
return(false);
}
var rv = false;
var bldset = bldid_split(bldid, 0);
if (findv(tool, allow_clist[bldset])) {
rv = rv | true;
}
if (same(tool, bldset) && (sameallow)) {
rv = rv | true;
}
return(rv);
}
function same(tool, bldset) {
var rv = false;
if (findv(tool, same_clist[bldset])) {
rv = rv | true;
}
if (bldset == tool) {
rv = rv | true;
}
return(rv);
}
function bldid_split(id, v) {
return(parseInt(id.split("-")[v]));
}
function SAVE() {
if (timer_save != U) {
DEBUGMSG("\uC774\uBBF8 \uB2E4\uB978 \uB8E8\uD2F4\uC774 \uAE30\uB3D9\uC911\uC774\uBBC0\uB85C \uC800\uC7A5\uC744 \uCDE8\uC18C\uD569\uB2C8\uB2E4.");
return(undefined);
}
DEBUGMSG("\uC800\uC7A5\uAC1C\uC2DC");
proc_marker.gotoAndStop("SAVE");
dataproc.idx = data_id;
dataproc.userid = data_userid;
dataproc.theme = data_theme;
DEBUGMSG("pos=" + data_city_pos);
dataproc.city_name = data_city_name;
dataproc.city_pos = data_city_pos;
dataproc.version = version;
data_city_data = "";
i = 0;
while (i < (mapsize * mapsize)) {
data_city_data = data_city_data + (tile[i].pack() + "!");
i++;
}
dataproc.city_data = data_city_data;
dataproc.city_extra = data_city_extra;
dataproc.io = "save";
dataproc.sendAndLoad("inputoutput.asp", dataproc, "POST");
timer_save = setInterval(ls_wait, 10, true);
DEBUGMSG("\uD0C0\uC774\uBA38#=" + timer_save);
}
function save_after() {
proc_marker.gotoAndStop("NORMAL");
dataproc = new LoadVars();
DEBUGMSG("\uC800\uC7A5\uC644\uB8CC");
}
function LOAD() {
if (timer_save != U) {
DEBUGMSG("\uC774\uBBF8 \uB2E4\uB978 \uB8E8\uD2F4\uC774 \uAE30\uB3D9\uC911\uC774\uBBC0\uB85C \uB85C\uB4DC\uB97C \uCDE8\uC18C\uD569\uB2C8\uB2E4.");
return(undefined);
}
DEBUGMSG("\uB85C\uB4DC\uAC1C\uC2DC");
proc_marker.gotoAndStop("LOAD");
dataproc.io = "load";
dataproc.idx = data_id;
dataproc.sendAndLoad("inputoutput.asp", dataproc, "POST");
timer_save = setInterval(ls_wait, 10, false);
DEBUGMSG("\uD0C0\uC774\uBA38#=" + timer_save);
}
function load_after() {
data_userid = dataproc.userid;
data_theme = dataproc.theme;
data_city_name = dataproc.city_name;
data_city_pos = dataproc.city_pos;
data_city_data = dataproc.city_data;
data_city_extra = dataproc.city_extra;
data_version = dataproc.version;
_global.mapsize = (((data_city_pos != U) && (data_city_pos >= 0)) ? 20 : 10);
_global.theme = Number(data_theme);
_global.load_version = Number(data_version);
data_split();
DEBUGMSG((("\uD14C\uB9C8:" + _global.theme) + "/") + theme);
proc_marker.gotoAndStop("NORMAL");
dataproc = new LoadVars();
DEBUGMSG(((((("\uB85C\uB4DC\uC644\uB8CC====\n\uC8FC\uC694\uC790\uB8CC\uC77C\uB78C: name(" + data_city_name) + ") theme(") + data_theme) + ") pos(") + data_pos) + ")");
DEBUGMSG(("\uC138\uC774\uBE0C \uB370\uC774\uD130 \uBC84\uC804 [" + data_version) + "]");
debug_tile_gen();
NEXTPROC();
}
function data_split() {
var temp_array = data_city_data.split("!");
var l = temp_array.length;
var items;
var x;
var y;
i = 0;
while (i < l) {
items = temp_array[i].split("|");
x = Number(items[0]);
y = Number(items[1]);
list_city_data[((x * mapsize) + y) + 1] = temp_array[i];
i++;
}
}
function load_assemble() {
var t_tile = data_city_data.split("!");
i = 0;
while (i < (mapsize * mapsize)) {
tile[i].assemble(t_tile[i]);
i++;
}
data_city_data = "";
}
function ls_wait(isinput) {
if (Number(dataproc.confirm) == 1) {
DEBUGMSG(("\uD0C0\uC774\uBA38#=" + timer_save) + " \uC5D0 \uB300\uD55C \uD0C0\uC774\uBA38 \uD574\uC81C\uC2DC\uB3C4");
clearInterval(timer_save);
timer_save = U;
DEBUGMSG("==" + dataproc.asp_last_said);
if (isinput) {
save_after();
DEBUGMSG("\uC138\uC774\uBE0C \uB300\uAE30 \uC644\uB8CC...");
} else {
load_after();
DEBUGMSG("\uB85C\uB4DC \uB300\uAE30 \uC644\uB8CC...");
}
dataproc.confirm = 0;
}
}
function timer() {
var xm = _root._xmouse;
var ym = _root._ymouse;
var br_t = borderscroll_tolerance;
var br_s = borderscroll_speed;
if ((((((((xm < br_t) || (xm > (640 - br_t))) || (ym < br_t)) || (ym > (480 - br_t))) && (xm >= 0)) && (xm < 640)) && (ym >= 0)) && (ym < 480)) {
if (maintimer_v[0] >= 5) {
if (xm < br_t) {
mapscroll(br_s, 0);
} else if (xm > (640 - br_t)) {
mapscroll(-br_s, 0);
}
if (ym < br_t) {
mapscroll(0, br_s);
} else if (ym > (480 - br_t)) {
mapscroll(0, -br_s);
}
} else {
maintimer_v[0]++;
}
} else {
maintimer_v[0] = 0;
}
}
delete theme;
system.useCodepage = true;
_global.U = undefined;
_global.DEBUGMSG = function (dbg_text) {
trace(dbg_text);
DEBUG_MSGLINE.text = (dbg_text + newline) + DEBUG_MSGLINE.text;
};
_global.findv = function (value, list_text) {
var tf = false;
if (list_text.substr(0, 1) == "!") {
list_text = list_text.substring(1, list_text.length);
tf = true;
}
var ltx = list_text.split(",");
var rv = false;
var i = 0;
while (i < ltx.length) {
rv = rv | (ltx[i] == String(value));
i++;
}
return(rv ^ tf);
};
_global.effect = function (id) {
_root.field.effectbox.gotoAndStop(id);
_root.field.effectbox.gotoAndStop(1);
};
_global.cheatcode = new Array(8);
_global.tID = 0;
_global.time_tilealert = 3;
_global.now_drag = false;
_global.now_grid = false;
_global.tile = new Array();
_global.bld = new Array();
_global.bset = new Array();
_global.allow_clist = new Array();
_global.same_clist = new Array();
_global.hash_list = new Array();
_global.after_list = new Array();
_global.cursor_tile_x = -1;
_global.cursor_tile_y = -1;
_global.ref = v_id != U;
var data_id = ((v_id == U) ? 0 : (Number(v_id)));
var data_theme = U;
var data_city_name = "";
var data_city_pos = U;
var data_city_data = "";
var data_city_extra = "";
var data_version = 0;
var list_city_data = new Array();
_global.theme = U;
_global.mapsize = U;
_global.version = 0;
_global.load_version = U;
var dataproc = new LoadVars();
dataproc.confirm = 0;
var timer_save = U;
var l_confirmed = false;
var INIT = false;
var maintimer = U;
_global.borderscroll_tolerance = 10;
_global.borderscroll_speed = 10;
_global.keyscroll_speed = 20;
_global.maintimer_v = new Array(0);
DEBUGMSG("\uC678\uB798\uBCC0\uC218...id=" + data_id);
var effect_static_time = 0;
var effect_static_num = 0;
var effect_static_timervalue;
var lperiod = 100;
var lstart = 0;
_global.tile_info = function (x, y, z, bldid, subid, immunity) {
if (((x == U) || (y == U)) || (z == U)) {
DEBUGMSG("SysErr : tile_info : \uD544\uC218\uC815\uBCF4\uB204\uB77D");
return(undefined);
}
this.x = x;
this.y = y;
this.z = z;
this.bldid = ((bldid == U) ? (DEFTILE) : (bldid));
this.subid = ((subid == U) ? 0 : (subid));
this.immunity = ((immunity == U) ? false : (immunity));
this.rollover = false;
this.pack = tile_info_pack.valueOf();
this.assemble = tile_info_assemble.valueOf();
};
_global.tile_info_pack = function () {
var package = "";
var d = "|";
package = (((((((this.x + d) + this.y) + d) + this.bldid) + d) + this.subid) + d) + Number(this.immunity);
return(package);
};
_global.tile_info_assemble = function (package) {
if (package == "") {
return(undefined);
}
var items = package.split("|");
var nxn = bld[items[2]].nxn;
tile_set(Number(items[0]), Number(items[1]), items[2], Number(items[3]), nxn, Boolean(items[5]));
};
_global.bld_info = function (grpid, mm, nxn, name, nextbld, selfmod) {
this.grpid = ((grpid == U) ? 0 : (grpid));
this.mm = ((mm == U) ? 2 : (mm));
this.nxn = ((nxn == U) ? 1 : (nxn));
this.name = ((name == U) ? " " : (name));
this.nextbld = ((nextbld == U) ? null : (nextbld));
this.selfmod = ((selfmod == U) ? 0 : (selfmod));
this.samelist = "";
this.effect = 0;
};
_global.bset_info = function (name, first, icon) {
if ((name == U) || (first == U)) {
DEBUGMSG("SysErr : set_info : \uD544\uC218\uC815\uBCF4\uB204\uB77D");
return(undefined);
}
this.name = name;
this.first = first;
this.icon = ((icon == U) ? (first) : (icon));
};
DEBUGMSG("\uD568\uC218 \uBC0F \uBCC0\uC218\uC120\uC5B8 (DECLARE) \uC644\uB8CC");
Instance of Symbol 358 MovieClip "DEBUG" in Frame 2
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 359 MovieClip "key_detect" in Frame 2
onClipEvent (keyUp) {
var n = Key.getAscii();
var c = Key.getCode();
if ((c == 27) || (n == String("`").charCodeAt(0))) {
DEBUGMSG("ESCAPE\uD0A4 \uC785\uB825\uD655\uC778");
with (eval ((("_root.field.map.grid." + cursor_tile_x) + "_") + cursor_tile_y)) {
var i;
var j;
i = 0;
while (i < bld[bset[tID].first].nxn) {
j = 0;
while (j < bld[bset[tID].first].nxn) {
eval ((("_root.field.map.grid." + (cursor_tile_x - i)) + "_") + (cursor_tile_y - j)).gotoAndStop("BLANK");
j++;
}
i++;
}
}
_global.tID = 0;
}
if (c == 32) {
_root.map_drag(0);
}
if (n) {
cheatcode.shift();
cheatcode.push(String.fromCharCode(n));
var code = cheatcode.toString().toUpperCase();
if (code == "F,U,R,G,U,S,S,=") {
with (_root) {
DEBUG_TILE._x = 200;
DEBUG_TILE._y = 200;
}
} else if (code == "S,Y,L,P,H,N,E,S") {
with (_root) {
DEBUG_TILE._x = -300;
DEBUG_TILE._y = -300;
}
} else if (code == "C,A,L,L,I,N,G,=") {
with (_root) {
DEBUG_MSGLINE._y = 5;
}
} else if (code == "E,U,G,E,N,E,=,=") {
with (_root) {
DEBUG_MSGLINE._y = 5;
}
} else if (code == "R,O,N,I,N,=,=,=") {
with (_root) {
DEBUG_MSGLINE._y = 495;
}
} else if (code == "F,L,A,C,I,T,Y,6") {
with (_root) {
DEBUG._visible = 1;
DEBUG._x = 0;
DEBUG._y = 0;
}
} else if (code == "C,H,E,L,S,O,N,A") {
with (_root) {
VERSION_INFO._visible = 1;
VERSION_BUTTON._x = 16.5;
VERSION_BUTTON._y = 17;
VERSION_INFO._x = 4;
VERSION_INFO._y = 2;
}
} else if (code == "D,E,F,A,U,L,T,=") {
with (_root) {
DEBUG._visible = 0;
DEBUG._x = 0;
DEBUG._y = 410;
VERSION_INFO._visible = 0;
VERSION_BUTTON._x = 650;
VERSION_BUTTON._y = 17;
VERSION_INFO._x = 650;
VERSION_INFO._y = 2;
}
}
}
}
onClipEvent (keyDown) {
var n = Key.getAscii();
var c = Key.getCode();
if (c == 32) {
_root.map_drag(1);
}
if (c == 37) {
_root.mapscroll(keyscroll_speed, 0);
}
if (c == 39) {
_root.mapscroll(-keyscroll_speed, 0);
}
if (c == 38) {
_root.mapscroll(0, keyscroll_speed);
}
if (c == 40) {
_root.mapscroll(0, -keyscroll_speed);
}
}
Instance of Symbol 365 MovieClip "VERSION_INFO" in Frame 2
onClipEvent (load) {
_visible = 0;
}
Frame 3
function NEXTPROC() {
DEBUGMSG("\uD14C\uB9C8:" + theme);
DEBUGMSG("\uB9F5\uC0AC\uC774\uC988:" + mapsize);
DEBUGMSG("\uB370\uC774\uD130 \uB85C\uB4DC (DATA_LOAD) \uC644\uB8CC");
_root.gotoAndPlay("SYS_LOAD");
}
if (ref) {
LOAD();
stop();
} else {
_global.mapsize = 10;
if (v_theme != U) {
_global.theme = Number(v_theme);
} else {
var file_code = new String(_root._url);
file_code = unescape(file_code.substr(file_code.lastIndexOf("/") + 1));
file_code.toLowerCase();
if (file_code == "flacity6_rome.swf") {
_global.theme = 0;
} else if (file_code == "flacity6_future.swf") {
_global.theme = 1;
} else if (file_code == "flacity6_modern.swf") {
_global.theme = 2;
} else if (file_code == "flacity6_water.swf") {
_global.theme = 3;
} else if (file_code == "flacity6_china.swf") {
_global.theme = 4;
} else if (file_code == "flacity6_com.swf") {
_global.theme = 5;
} else if (file_code == "flacity6_park.swf") {
_global.theme = 6;
} else {
_global.theme = 6;
}
DEBUGMSG(("File name indicated as: <" + file_code) + ">");
}
stop();
NEXTPROC();
}
Frame 4
function WAIT() {
if (INIT && (field.getBytesTotal() <= field.getBytesLoaded())) {
clearInterval(field_tv);
delete field_tv;
NEXTPROC();
}
}
function NEXTPROC() {
_root.field.map.grid.swapDepths(9999);
_root.field.map.grid.norm.swapDepths(-1);
_root.field.map.grid.norm._visible = false;
DEBUGMSG("\uD544\uB4DC \uB85C\uB4DC (SYSTEM_LOAD) \uC644\uB8CC");
_root.gotoAndPlay("BLD_LOAD");
}
var field_tv;
if (!INIT) {
field.loadMovie(("flacity6_theme" + theme) + ".swf");
field_tv = setInterval(WAIT, 50);
} else {
DEBUGMSG("\uB0B4\uC7A5 \uD14C\uB9C8 \uBAA8\uB4DC");
NEXTPROC();
}
stop();
Frame 5
field.TDB();
field.jukebox.gotoAndStop("BGM_PLAY");
DEBUGMSG("\uAC74\uBB3C \uB85C\uB4DC (BLD_LOAD) \uC644\uB8CC");
_root.gotoAndPlay("INTERFACE_PREPARE");
Frame 6
minimap_gen();
DEBUGMSG("\uC778\uD130\uD398\uC774\uC2A4 \uC900\uBE44 (INTERFACE_PREPARE) \uC644\uB8CC");
_root.gotoAndPlay("TILE_PREPARE");
Frame 7
function NEXTPROC() {
DEBUGMSG("\uD0C0\uC77C \uC900\uBE44 (TILE_PREPARE) \uC644\uB8CC");
_root.gotoAndPlay("PLAY");
}
if (tile_duplicate(mapsize, lstart)) {
NEXTPROC();
}
Frame 8
_root.gotoAndPlay("TILE_PREPARE");
Frame 9
if (ref) {
if (_root.field.savebutton) {
_root.field.savebutton._visible = 1;
savebutton._visible = 0;
} else {
savebutton._visible = 1;
}
} else {
savebutton._visible = 0;
}
effect_static_timervalue = setInterval(field.effect_static, 10);
maintimer = setInterval(timer, 10);
DEBUGMSG("!!!!!!!!!!");
stop();
Symbol 8 MovieClip [EFFECT_STATIC_1] Frame 1
function loop() {
if ((_x * xmove) < (start_x * xmove)) {
_alpha = (_alpha + (100 / tolerance));
shadow._alpha = shadow._alpha + (shadow_alpha / tolerance);
}
if ((_x * xmove) > (end_x * xmove)) {
_alpha = (_alpha - (100 / tolerance));
shadow._alpha = shadow._alpha - (shadow_alpha / tolerance);
if (_alpha <= 0) {
clearInterval(tv);
removeMovieClip(this);
}
}
_x = (_x + (speed * xmove));
_y = (_y + ((speed / 2) * ymove));
shadow._x = _x;
shadow._y = _y;
}
var object_dir = 0;
var start_v = Math.floor(Math.random() * ((mapsize - 1) * 4));
var x;
var y;
var xe;
var ye;
var xmove;
var ymove;
x = (mapsize - 1) - (start_v % (mapsize - 1));
y = 0;
xe = x;
ye = mapsize - 1;
xmove = 1;
ymove = 1;
object_dir = 3;
var object_type = 0;
DEBUGMSG(object_type);
grp.gotoAndStop(((object_type * 4) + object_dir) + 1);
var tv = U;
var start_x = ((x * -50) + (y * 50));
var start_y = ((x + y) * 25);
var end_x = ((xe * -50) + (ye * 50));
var end_y = ((xe + ye) * 25);
var tolerance = 20;
var speed = 0.5;
var f_height = 0;
var shadow_alpha = 10;
_x = (start_x - ((tolerance * speed) * xmove));
_y = (((start_y - (((tolerance * speed) / 2) * ymove)) - f_height) - 25);
_alpha = 0;
var shadow = eval ("_parent.s_" + _name);
shadow._xscale = (shadow._yscale = 50);
shadow._x = _x;
shadow._y = _y;
shadow._alpha = 0;
tv = setInterval(loop, 10);
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 27 MovieClip [GRID_INFO] Frame 1
stop();
Symbol 27 MovieClip [GRID_INFO] Frame 41
gotoAndStop (2);
Symbol 40 MovieClip Frame 1
var boom_height = _parent._height;
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 2
var boom_height = _parent._height;
bomb._y = bmb_h;
Symbol 45 MovieClip Frame 11
_xscale = tot_s;
_yscale = tot_s;
boom._yscale = ((boom_height / 120) * 100) / (_yscale / 100);
Symbol 45 MovieClip Frame 15
_root.tile_boom(_parent.area.x, _parent.area.y);
Symbol 45 MovieClip Frame 25
_yscale = 100;
_xscale = 100;
gotoAndStop (1);
Symbol 235 MovieClip [GRPSET] Frame 1
function makeyourcall() {
DEBUGMSG("\uCF5C:\uC0B0\uC18C\uC5C6\uC774\uB294 \uC0B4\uC218\uC5C6\uB2E4");
}
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 6
gotoAndStop (2);
Symbol 263 MovieClip Frame 8
gotoAndStop (1);
Symbol 270 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
stop();
Instance of Symbol 276 MovieClip "b1" in Symbol 280 MovieClip Frame 2
onClipEvent (load) {
value = 30;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 276 MovieClip "b2" in Symbol 280 MovieClip Frame 2
onClipEvent (load) {
value = 31;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 276 MovieClip "b3" in Symbol 280 MovieClip Frame 2
onClipEvent (load) {
value = 32;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 276 MovieClip "b4" in Symbol 280 MovieClip Frame 2
onClipEvent (load) {
value = 33;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 276 MovieClip "b1" in Symbol 280 MovieClip Frame 3
onClipEvent (load) {
value = 40;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 276 MovieClip "b2" in Symbol 280 MovieClip Frame 3
onClipEvent (load) {
value = 43;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 276 MovieClip "b3" in Symbol 280 MovieClip Frame 3
onClipEvent (load) {
value = 44;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 276 MovieClip "b3" in Symbol 280 MovieClip Frame 3
onClipEvent (load) {
value = 41;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 276 MovieClip "b3" in Symbol 280 MovieClip Frame 3
onClipEvent (load) {
value = 45;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Symbol 282 MovieClip Frame 1
Instance of Symbol 270 MovieClip "b1" in Symbol 282 MovieClip Frame 1
onClipEvent (load) {
value = 14;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b2" in Symbol 282 MovieClip Frame 1
onClipEvent (load) {
value = 15;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b3" in Symbol 282 MovieClip Frame 1
onClipEvent (load) {
value = 16;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b4" in Symbol 282 MovieClip Frame 1
onClipEvent (load) {
value = 17;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b5" in Symbol 282 MovieClip Frame 1
onClipEvent (load) {
value = 18;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b6" in Symbol 282 MovieClip Frame 1
onClipEvent (load) {
value = 19;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b7" in Symbol 282 MovieClip Frame 1
onClipEvent (load) {
value = 20;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b8" in Symbol 282 MovieClip Frame 1
onClipEvent (load) {
value = 21;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Symbol 288 Button
on (release) {
if (m_value < (items - 5)) {
buttons._y = buttons._y - 45;
m_value++;
second_up._visible = m_value > 0;
second_down._visible = m_value < (items - 5);
}
}
Symbol 290 Button
on (release) {
if (m_value > 0) {
buttons._y = buttons._y + 45;
m_value--;
second_up._visible = m_value > 0;
second_down._visible = m_value < (items - 5);
}
}
Symbol 296 MovieClip Frame 1
stop();
Instance of Symbol 270 MovieClip "b1" in Symbol 296 MovieClip Frame 2
onClipEvent (load) {
value = 6;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b3" in Symbol 296 MovieClip Frame 2
onClipEvent (load) {
value = 28;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b4" in Symbol 296 MovieClip Frame 2
onClipEvent (load) {
value = 7;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b5" in Symbol 296 MovieClip Frame 2
onClipEvent (load) {
value = 8;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b2" in Symbol 296 MovieClip Frame 2
onClipEvent (load) {
value = 5;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b1" in Symbol 296 MovieClip Frame 3
onClipEvent (load) {
value = 9;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b2" in Symbol 296 MovieClip Frame 3
onClipEvent (load) {
value = 10;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b1" in Symbol 296 MovieClip Frame 4
onClipEvent (load) {
value = 11;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b2" in Symbol 296 MovieClip Frame 4
onClipEvent (load) {
value = 12;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b3" in Symbol 296 MovieClip Frame 4
onClipEvent (load) {
value = 13;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Symbol 296 MovieClip Frame 5
items = 8;
buttons._y = buttons._y - (m_value * 45);
second_up._visible = m_value > 0;
second_down._visible = m_value < (items - 5);
Instance of Symbol 270 MovieClip "b1" in Symbol 296 MovieClip Frame 6
onClipEvent (load) {
value = 22;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b2" in Symbol 296 MovieClip Frame 6
onClipEvent (load) {
value = 23;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b3" in Symbol 296 MovieClip Frame 6
onClipEvent (load) {
value = 24;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b4" in Symbol 296 MovieClip Frame 6
onClipEvent (load) {
value = 25;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b5" in Symbol 296 MovieClip Frame 6
onClipEvent (load) {
value = 26;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b1" in Symbol 296 MovieClip Frame 7
onClipEvent (load) {
value = "ROAD";
disp = 39;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value, disp);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b2" in Symbol 296 MovieClip Frame 7
onClipEvent (load) {
value = "WALL";
disp = 49;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value, disp);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b2" in Symbol 296 MovieClip Frame 7
onClipEvent (load) {
value = 27;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Instance of Symbol 270 MovieClip "b3" in Symbol 296 MovieClip Frame 7
onClipEvent (load) {
value = 1;
}
on (release) {
_root.field.interface.second_work(this, value);
}
on (rollOver) {
_root.field.interface.second_over(this, value);
}
on (rollOut) {
_root.field.interface.second_out(this);
}
on (releaseOutside) {
_root.field.interface.second_rel(this);
}
on (press) {
_root.field.interface.second_prs(this);
}
Symbol 296 MovieClip Frame 19
gotoAndStop(n);
Symbol 296 MovieClip Frame 32
gotoAndStop (1);
Symbol 309 MovieClip Frame 1
tooltip.tooltip = "";
tooltip.sizetip = "";
actiontip.actiontip = "";
tooltip.grp.gotoAndStop("BLANK");
tooltip._visible = false;
actiontip._visible = false;
Symbol 314 Button
on (release) {
with (_root.field.map) {
if (_xscale < 400) {
_xscale = _xscale * 2;
_yscale = _yscale * 2;
_x = _x + (_x - _root.view_center._x);
_y = _y + (_y - _root.view_center._y);
}
}
}
on (rollOver) {
actiontip("\uC90C \uC778");
}
on (rollOut) {
actiontip("");
}
Symbol 316 Button
on (release) {
with (_root.field.map) {
if (_xscale > 25) {
_xscale = _xscale / 2;
_yscale = _yscale / 2;
_x = _x - ((_x - _root.view_center._x) / 2);
_y = _y - ((_y - _root.view_center._y) / 2);
}
}
}
on (rollOver) {
actiontip("\uC90C \uC544\uC6C3");
}
on (rollOut) {
actiontip("");
}
Symbol 321 Button
on (release) {
_root.map_grid(true);
gotoAndStop (2);
}
on (rollOver) {
_parent.actiontip("\uACA9\uC790 \uBCF4\uAE30");
}
on (rollOut) {
_parent.actiontip("");
}
Symbol 325 Button
on (release) {
_root.map_grid(false);
gotoAndStop (1);
}
on (rollOver) {
_parent.actiontip("\uACA9\uC790 \uC548 \uBCF4\uAE30");
}
on (rollOut) {
_parent.actiontip("");
}
Symbol 326 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 1
function first_work(button) {
first_rel(button);
var this_b_num = Number(button._name.substr(1));
if (first_sel_b != this_b_num) {
if (first_sel_b != 0) {
eval ("b" + first_sel_b).gotoAndPlay("CLICK1");
}
button.gotoAndStop("PLAIN1");
second.n = this_b_num + 1;
second.gotoAndPlay("UP");
first_sel_b = this_b_num;
} else {
second_fall();
first_sel_b = 0;
}
}
function first_prs(button) {
var this_b_num = Number(button._name.substr(1));
button.gotoAndStop("CLICK" + Number(first_sel_b == this_b_num));
}
function first_rel(button) {
var this_b_num = Number(button._name.substr(1));
button.gotoAndStop("PLAIN" + Number(first_sel_b == this_b_num));
}
function first_over(button) {
var this_b_num = Number(button._name.substr(1));
button.gotoAndStop("OVER" + Number(first_sel_b == this_b_num));
}
function first_out(button) {
var this_b_num = Number(button._name.substr(1));
button.gotoAndStop("PLAIN" + Number(first_sel_b == this_b_num));
}
function second_fall() {
second.gotoAndPlay("DOWN");
eval ("b" + first_sel_b).gotoAndStop("PLAIN0");
first_sel_b = 0;
}
function second_work(button, tool) {
if (isNaN(tool)) {
button.gotoAndStop("THIRD");
second.third.gotoAndStop(tool);
} else {
second_rel(button);
_global.tID = tool;
second.third.gotoAndStop(1);
second_fall();
second_out(button);
}
}
function second_prs(button) {
button.gotoAndStop("CLICK");
}
function second_rel(button) {
button.gotoAndStop("PLAIN");
}
function second_over(button, tool, disp) {
button.gotoAndStop("OVER");
if (isNaN(tool)) {
tool = disp;
}
minimap.mm_border._visible = 0;
minimap.tooltip._visible = 1;
minimap.tooltip.tooltip = bset[tool].name;
var nxn = bld[bset[tool].first].nxn;
minimap.tooltip.sizetip = ((("(" + nxn) + "x") + nxn) + ")";
minimap.tooltip.grp.gotoAndStop(bld[bset[tool].icon].grpid);
with (minimap.tooltip.grp) {
_xscale = 60;
_yscale = 60;
if (_height >= 50) {
_height = 50;
_xscale = _yscale;
}
if (theme == 3) {
_y = 0 + ((_height - 30) / 2);
} else {
_y = 50 + ((_height - 30) / 2);
}
}
}
function second_out(button) {
if (!isNaN(tool)) {
button.gotoAndStop("PLAIN");
}
minimap.mm_border._visible = 1;
minimap.tooltip._visible = 0;
minimap.tooltip.tooltip = "";
minimap.tooltip.sizetip = "";
minimap.tooltip.grp.gotoAndStop("blank");
}
function actiontip(value) {
var onoff = (value != "");
minimap.actiontip.actiontip = value;
minimap.actiontip._visible = onoff;
minimap.mm_border._visible = !onoff;
}
var first_sel_b = 0;
Instance of Symbol 263 MovieClip "b1" in Symbol 327 MovieClip Frame 1
on (release) {
_root.field.interface.first_work(this);
}
on (rollOver) {
_root.field.interface.first_over(this);
_root.field.interface.actiontip("\uC8FC\uAC70");
}
on (rollOut) {
_root.field.interface.first_out(this);
_root.field.interface.actiontip("");
}
on (releaseOutside) {
_root.field.interface.first_rel(this);
}
on (press) {
_root.field.interface.first_prs(this);
}
Instance of Symbol 263 MovieClip "b2" in Symbol 327 MovieClip Frame 1
on (release) {
_root.field.interface.first_work(this);
}
on (rollOver) {
_root.field.interface.first_over(this);
_root.field.interface.actiontip("\uC815\uBD80");
}
on (rollOut) {
_root.field.interface.first_out(this);
_root.field.interface.actiontip("");
}
on (releaseOutside) {
_root.field.interface.first_rel(this);
}
on (press) {
_root.field.interface.first_prs(this);
}
Instance of Symbol 263 MovieClip "b3" in Symbol 327 MovieClip Frame 1
on (release) {
_root.field.interface.first_work(this);
}
on (rollOver) {
_root.field.interface.first_over(this);
_root.field.interface.actiontip("\uC885\uAD50");
}
on (rollOut) {
_root.field.interface.first_out(this);
_root.field.interface.actiontip("");
}
on (releaseOutside) {
_root.field.interface.first_rel(this);
}
on (press) {
_root.field.interface.first_prs(this);
}
Instance of Symbol 263 MovieClip "b4" in Symbol 327 MovieClip Frame 1
on (release) {
_root.field.interface.first_work(this);
}
on (rollOver) {
_root.field.interface.first_over(this);
_root.field.interface.actiontip("\uC0C1\uC5C5");
}
on (rollOut) {
_root.field.interface.first_out(this);
_root.field.interface.actiontip("");
}
on (releaseOutside) {
_root.field.interface.first_rel(this);
}
on (press) {
_root.field.interface.first_prs(this);
}
Instance of Symbol 263 MovieClip "b5" in Symbol 327 MovieClip Frame 1
on (release) {
_root.field.interface.first_work(this);
}
on (rollOver) {
_root.field.interface.first_over(this);
_root.field.interface.actiontip("\uC870\uACBD");
}
on (rollOut) {
_root.field.interface.first_out(this);
_root.field.interface.actiontip("");
}
on (releaseOutside) {
_root.field.interface.first_rel(this);
}
on (press) {
_root.field.interface.first_prs(this);
}
Instance of Symbol 263 MovieClip "b6" in Symbol 327 MovieClip Frame 1
on (release) {
_root.field.interface.first_work(this);
}
on (rollOver) {
_root.field.interface.first_over(this);
_root.field.interface.actiontip("\uD1A0\uBAA9");
}
on (rollOut) {
_root.field.interface.first_out(this);
_root.field.interface.actiontip("");
}
on (releaseOutside) {
_root.field.interface.first_rel(this);
}
on (press) {
_root.field.interface.first_prs(this);
}
Symbol 330 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 333 MovieClip Frame 1
function TDB() {
_global.DEFTILE = "0-0";
_global.BOOM = 1;
bset[0] = new bset_info("\uB300\uC9C0", "0-0");
bld["0-0"] = new bld_info(1, 2, 1, "\uB300\uC9C0", null, 0);
bset[1] = new bset_info("\uAC74\uBB3C \uC81C\uAC70", "1-ICON", "1-ICON");
bld["1-ICON"] = new bld_info(2, 1, 1, "", null, 0);
bset[30] = new bset_info("\uB3C4\uB85C(\uC9C1\uC120)", "30-0");
bld["30-0"] = new bld_info(28, 3, 1, "\uB3C4\uB85C", "30-1", 0);
bld["30-1"] = new bld_info(29, 3, 1, "\uB3C4\uB85C", "30-0", 0);
bset[31] = new bset_info("\uB3C4\uB85C(\uAD50\uCC28)", "31-2");
bld["31-2"] = new bld_info(30, 3, 1, "\uB3C4\uB85C", null, 0);
bset[32] = new bset_info("\uB3C4\uB85C(\uC0BC\uAC70\uB9AC)", "32-3");
bld["32-3"] = new bld_info(31, 3, 1, "\uB3C4\uB85C", "32-4", 0);
bld["32-4"] = new bld_info(32, 3, 1, "\uB3C4\uB85C", "32-5", 0);
bld["32-5"] = new bld_info(33, 3, 1, "\uB3C4\uB85C", "32-6", 0);
bld["32-6"] = new bld_info(34, 3, 1, "\uB3C4\uB85C", "32-3", 0);
bset[33] = new bset_info("\uB3C4\uB85C(\uCEE4\uBE0C)", "33-7");
bld["33-7"] = new bld_info(35, 3, 1, "\uB3C4\uB85C", "33-8", 0);
bld["33-8"] = new bld_info(36, 3, 1, "\uB3C4\uB85C", "33-9", 0);
bld["33-9"] = new bld_info(37, 3, 1, "\uB3C4\uB85C", "33-10", 0);
bld["33-10"] = new bld_info(38, 3, 1, "\uB3C4\uB85C", "33-7", 0);
bset[39] = new bset_info("\uB3C4\uB85C", "30-ICON", "30-ICON");
bld["30-ICON"] = new bld_info(30, 3, 1, "\uB3C4\uB85C", null, 0);
bset[40] = new bset_info("\uC131\uBCBD", "40-0");
bld["40-0"] = new bld_info(39, 4, 1, "\uC131\uBCBD", "40-1", 0);
bld["40-1"] = new bld_info(40, 4, 1, "\uC131\uBCBD", "40-0", 0);
bset[41] = new bset_info("\uC131\uBCBD(\uC131\uD0D1)", "41-2");
bld["41-2"] = new bld_info(56, 4, 1, "\uC131\uD0D1", null, 0);
bset[42] = new bset_info("\uC131\uBCBD(\uC0BC\uAC70\uB9AC)", "42-3");
bld["42-3"] = new bld_info(42, 4, 1, "\uC131\uBCBD", "42-4", 0);
bld["42-4"] = new bld_info(43, 4, 1, "\uC131\uBCBD", "42-5", 0);
bld["42-5"] = new bld_info(44, 4, 1, "\uC131\uBCBD", "42-6", 0);
bld["42-6"] = new bld_info(45, 4, 1, "\uC131\uBCBD", "42-3", 0);
bset[43] = new bset_info("\uC131\uBCBD(\uBAA8\uD241\uC774)", "43-7");
bld["43-7"] = new bld_info(46, 4, 1, "\uC131\uBCBD", "43-8", 0);
bld["43-8"] = new bld_info(47, 4, 1, "\uC131\uBCBD", "43-9", 0);
bld["43-9"] = new bld_info(48, 4, 1, "\uC131\uBCBD", "43-10", 0);
bld["43-10"] = new bld_info(49, 4, 1, "\uC131\uBCBD", "43-7", 0);
bset[44] = new bset_info("\uC131\uBCBD(\uCEE4\uBE0C)", "44-11");
bld["44-11"] = new bld_info(50, 4, 1, "\uC131\uBCBD", "44-12", 0);
bld["44-12"] = new bld_info(51, 4, 1, "\uC131\uBCBD", "44-13", 0);
bld["44-13"] = new bld_info(52, 4, 1, "\uC131\uBCBD", "44-14", 0);
bld["44-14"] = new bld_info(53, 4, 1, "\uC131\uBCBD", "44-11", 0);
bset[45] = new bset_info("\uC131\uBB38", "45-15");
bld["45-15"] = new bld_info(54, 4, 1, "\uC131\uBB38", "45-16", 0);
bld["45-16"] = new bld_info(55, 4, 1, "\uC131\uBB38", "45-15", 0);
bset[49] = new bset_info("\uC131\uBCBD", "40-ICON", "40-ICON");
bld["40-ICON"] = new bld_info(40, 3, 1, "\uC131\uBCBD", null, 0);
bset[5] = new bset_info("\uC11C\uBBFC\uC8FC\uAC70", "5-0");
bld["5-0"] = new bld_info(3, 5, 1, "\uC11C\uBBFC\uC8FC\uAC70", null, 0);
bset[6] = new bset_info("\uD558\uCE35\uC8FC\uAC70", "6-0");
bld["6-0"] = new bld_info(4, 5, 1, "\uD558\uCE35\uC8FC\uAC70", null, 0);
bset[7] = new bset_info("\uC77C\uBC18\uC8FC\uAC70", "7-0");
bld["7-0"] = new bld_info(5, 5, 2, "\uC77C\uBC18\uC8FC\uAC70", null, 0);
bset[8] = new bset_info("\uC77C\uBC18\uC8FC\uAC70", "8-0");
bld["8-0"] = new bld_info(6, 5, 2, "\uC77C\uBC18\uC8FC\uAC70", null, 0);
bset[28] = new bset_info("\uC11C\uBBFC\uC8FC\uAC70", "28-0");
bld["28-0"] = new bld_info(61, 5, 1, "\uC11C\uBBFC\uC8FC\uAC70", null, 0);
bset[9] = new bset_info("\uB9DD\uB8E8", "9-0");
bld["9-0"] = new bld_info(7, 7, 1, "\uB9DD\uB8E8", null, 0);
bset[10] = new bset_info("\uD669\uAD81", "10-0");
bld["10-0"] = new bld_info(8, 7, 4, "\uD669\uAD81", null, 0);
bset[11] = new bset_info("\uB3C4\uAD50\uC0AC\uC6D0", "11-0");
bld["11-0"] = new bld_info(9, 8, 2, "\uB3C4\uAD50\uC0AC\uC6D0", null, 0);
bset[12] = new bset_info("\uBD88\uAD50\uC0AC\uC6D0", "12-0");
bld["12-0"] = new bld_info(10, 8, 2, "\uBD88\uAD50\uC0AC\uC6D0", null, 0);
bset[13] = new bset_info("\uC720\uAD50\uC0AC\uC6D0", "13-0");
bld["13-0"] = new bld_info(11, 8, 2, "\uC720\uAD50\uC0AC\uC6D0", null, 0);
bset[14] = new bset_info("\uC2DC\uC7A5", "14-0");
bld["14-0"] = new bld_info(12, 6, 1, "\uC2DC\uC7A5", null, 0);
bset[15] = new bset_info("\uC74C\uC2DD\uC810", "15-0");
bld["15-0"] = new bld_info(13, 6, 1, "\uC74C\uC2DD\uC810", null, 0);
bset[16] = new bset_info("\uC678\uC591\uAC04", "16-0");
bld["16-0"] = new bld_info(14, 6, 1, "\uC678\uC591\uAC04", null, 0);
bset[17] = new bset_info("\uD55C\uC758\uC6D0", "17-0");
bld["17-0"] = new bld_info(15, 6, 1, "\uD55C\uC758\uC6D0", null, 0);
bset[18] = new bset_info("\uB179\uCC28\uBC2D", "18-0");
bld["18-0"] = new bld_info(16, 6, 2, "\uB179\uCC28\uBC2D", null, 0);
bset[19] = new bset_info("\uACFC\uC218\uC6D0", "19-0");
bld["19-0"] = new bld_info(17, 6, 2, "\uACFC\uC218\uC6D0", null, 0);
bset[20] = new bset_info("\uB17C\uBC2D", "20-0");
bld["20-0"] = new bld_info(18, 6, 2, "\uB17C\uBC2D", null, 0);
bset[21] = new bset_info("\uB300\uD615\uC2DC\uC7A5", "21-0");
bld["21-0"] = new bld_info(19, 6, 3, "\uB300\uD615\uC2DC\uC7A5", null, 0);
bset[22] = new bset_info("\uC815\uC6D0", "22-0");
bld["22-0"] = new bld_info(20, 9, 1, "\uC815\uC6D0", "22-1", 0);
bld["22-1"] = new bld_info(21, 9, 1, "\uC815\uC6D0", "22-2", 0);
bld["22-2"] = new bld_info(22, 9, 1, "\uC815\uC6D0", "22-3", 0);
bld["22-3"] = new bld_info(23, 9, 1, "\uC815\uC6D0", "22-0", 0);
bset[23] = new bset_info("\uC6B0\uBB3C", "23-0");
bld["23-0"] = new bld_info(24, 9, 1, "\uC6B0\uBB3C", null, 0);
bset[24] = new bset_info("\uD0D1", "24-0");
bld["24-0"] = new bld_info(25, 9, 1, "\uD0D1", null, 0);
bset[25] = new bset_info("\uD0D1", "25-0");
bld["25-0"] = new bld_info(26, 9, 1, "\uD0D1", null, 0);
bset[26] = new bset_info("\uC911\uD654\uD0D1", "26-0");
bld["26-0"] = new bld_info(27, 9, 2, "\uC911\uD654\uD0D1", null, 0);
bset[27] = new bset_info("\uAD00\uBB38", "27-0");
bld["27-0"] = new bld_info(57, 4, 2, "\uAD00\uBB38", "27-1", 0);
bld["27-1"] = new bld_info(58, 4, 2, "\uAD00\uBB38", "27-2", 0);
bld["27-2"] = new bld_info(59, 4, 2, "\uAD00\uBB38", "27-3", 0);
bld["27-3"] = new bld_info(60, 4, 2, "\uAD00\uBB38", "27-0", 0);
allow_clist[0] = "!";
var ROAD_SET = "30,31,32,33";
var WALL_SET = "40,41,42,43,44,45";
allow_clist[30] = ROAD_SET + ",27";
allow_clist[31] = ROAD_SET + ",27";
allow_clist[32] = ROAD_SET + ",27";
allow_clist[33] = ROAD_SET + ",27";
allow_clist[40] = WALL_SET + ",27";
allow_clist[41] = WALL_SET + ",27";
allow_clist[42] = WALL_SET + ",27";
allow_clist[43] = WALL_SET + ",27";
allow_clist[44] = WALL_SET + ",27";
allow_clist[45] = WALL_SET + ",27";
delete ROAD_SET;
hash_list["30-0;40"] = "45-16;45";
hash_list["30-0;41"] = "45-16;45";
hash_list["30-0;42"] = "45-16;45";
hash_list["30-0;43"] = "45-16;45";
hash_list["30-0;44"] = "45-16;45";
hash_list["30-0;45"] = "45-16;45";
hash_list["30-1;40"] = "45-15;45";
hash_list["30-1;41"] = "45-15;45";
hash_list["30-1;42"] = "45-15;45";
hash_list["30-1;43"] = "45-15;45";
hash_list["30-1;44"] = "45-15;45";
hash_list["30-1;45"] = "45-15;45";
hash_list["40-0;30"] = "45-15;45";
hash_list["40-1;30"] = "45-16;45";
DEBUGMSG("\uC911\uD654 DB \uC14B\uC5C5 \uC644\uB8CC");
}
function effect_static() {
var timevalue = _root.effect_static_time;
var effect = _root.effect_static_num;
if ((timevalue % 500) == 0) {
map.attachMovie("EFFECT_STATIC_SHADOW", "s_effect" + effect, 8400 + effect);
map.attachMovie("EFFECT_STATIC_1", "effect" + effect, 8500 + effect);
((effect == 19) ? ((effect = 0)) : (effect++));
}
((timevalue == 9999) ? ((timevalue = 0)) : (timevalue++));
_root.effect_static_time = timevalue;
_root.effect_static_num = effect;
}
DEBUGMSG("\uD50C\uB798\uC2DC\uD2F0 \uC911\uD654 \uD14C\uB9C8 V1.0 (040128 Release)");
_root.INIT = true;
stop();
Symbol 336 Button
on (release) {
getURL ("http://www.flacity.co.kr", "_blank");
}
Symbol 339 MovieClip Frame 61
gotoAndPlay (1);
Symbol 341 MovieClip Frame 61
gotoAndPlay (1);
Symbol 342 MovieClip Frame 1
stop();
Symbol 349 Button
on (release) {
x = Number(sys_x.text);
y = Number(sys_y.text);
if (sys_id.text == "") {
sys_data.text = tile[(x * mapsize) + y].bldid;
} else if (sys_id.text == "p") {
sys_data.text = eval ((("_root.field.map.t" + x) + "_") + y)._currentframe;
}
}
Symbol 370 Button
on (release) {
VERSION_INFO._visible = VERSION_INFO._visible ^ 1;
if (VERSION_INFO._visible == 0) {
VERSION_BUTTON._x = 650;
VERSION_BUTTON._y = 17;
VERSION_INFO._x = 650;
VERSION_INFO._y = 2;
} else {
VERSION_BUTTON._x = 16.5;
VERSION_BUTTON._y = 17;
VERSION_INFO._x = 4;
VERSION_INFO._y = 2;
}
}
Symbol 375 Button
on (release) {
SAVE();
}