Frame 1
MochiAd.showPreloaderAd({id:"a961b06a81d5604c", res:"750x580"});
Frame 3
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
play();
} else {
stop();
}
Frame 36
Frame 120
function scrollTo() {
var _local1 = new Object();
_local1.x = stage_mc.startPos._x;
_local1.y = stage_mc.startPos._y;
stage_mc.localToGlobal(_local1);
}
function dotToTile(pos) {
return(int(pos / tile_width));
}
function tileToDot(pos) {
return((pos * tile_width) + tile_half);
}
function snapToTile(pos) {
return((int(pos / tile_width) * tile_width) + tile_half);
}
function toGlobal(obj1, obj2) {
var _local1 = new Object();
_local1.x = obj1._x;
_local1.y = obj1._y;
obj2.localToGlobal(_local1);
return(_local1);
}
function scroll_start(dir, obj) {
if (flag_pause) {
return(undefined);
}
var _local1 = 20;
if (dir == "left") {
var _local3 = toGlobal(stage_mc.egde_l, stage_mc);
if (_local3.x > egdeX_min) {
return(undefined);
}
stage_mc._x = stage_mc._x + _local1;
} else if (dir == "right") {
var _local3 = toGlobal(stage_mc.egde_r, stage_mc);
if (_local3.x < egdeX_max) {
return(undefined);
}
stage_mc._x = stage_mc._x - _local1;
} else if (dir == "up") {
var _local3 = toGlobal(stage_mc.egde_u, stage_mc);
if ((_local3.y + _local1) > egdeY_min) {
return(undefined);
}
stage_mc._y = stage_mc._y + _local1;
} else if (dir == "down") {
var _local3 = toGlobal(stage_mc.egde_d, stage_mc);
if (_local3.y < egdeY_max) {
return(undefined);
}
stage_mc._y = stage_mc._y - _local1;
} else if (dir == "dr") {
var _local3 = toGlobal(stage_mc.egde_d, stage_mc);
if (_local3.y > egdeY_max) {
stage_mc._y = stage_mc._y - _local1;
}
_local3 = toGlobal(stage_mc.egde_r, stage_mc);
if (_local3.x > egdeX_max) {
stage_mc._x = stage_mc._x - _local1;
}
} else if (dir == "dl") {
var _local3 = toGlobal(stage_mc.egde_d, stage_mc);
if (_local3.y > egdeY_max) {
stage_mc._y = stage_mc._y - _local1;
}
_local3 = toGlobal(stage_mc.egde_l, stage_mc);
if (_local3.x < egdeX_min) {
stage_mc._x = stage_mc._x + _local1;
}
} else if (dir == "ur") {
var _local3 = toGlobal(stage_mc.egde_u, stage_mc);
if ((_local3.y + _local1) < egdeY_min) {
stage_mc._y = stage_mc._y + _local1;
}
_local3 = toGlobal(stage_mc.egde_r, stage_mc);
if (_local3.x > egdeX_max) {
stage_mc._x = stage_mc._x - _local1;
}
} else if (dir == "ul") {
var _local3 = toGlobal(stage_mc.egde_u, stage_mc);
if ((_local3.y + _local1) < egdeY_min) {
stage_mc._y = stage_mc._y + _local1;
}
_local3 = toGlobal(stage_mc.egde_l, stage_mc);
if (_local3.x < egdeX_min) {
stage_mc._x = stage_mc._x + _local1;
}
}
}
function scroll_stop() {
delete this.onEnterFrame;
}
function checkBattle_role(role_type) {
role_num--;
this[("role" + role_type) + "_num"]--;
trace("role_type: " + role_type);
status_self_num(role_num);
if (role_num == 0) {
if (gold_total <= 100) {
stage_lose();
}
}
}
function checkBattle_general() {
trace("checkBattle_general: " + checkBattle_general);
general_type = 0;
role_num--;
status_self_num(role_num);
if (role_num == 0) {
if (gold_total <= 100) {
stage_lose();
}
}
}
function checkBattle_enemy(role_type) {
enemyNum--;
if (enemyNum < 0) {
enemyNum = 0;
}
status_enemy_num(enemyNum);
var _local2;
if (game_level == 1) {
_local2 = int(price_array[role_type] * 0.4);
} else if (game_level == 3) {
_local2 = int(price_array[role_type] * 0.2);
} else {
_local2 = int(price_array[role_type] * 0.3);
}
gold_total = gold_total + _local2;
gold_killEnemy = gold_killEnemy + _local2;
status_gold(gold_total);
if (stageID == 5) {
if (gold_total >= gold_mission5) {
_root.castle_life = _root.stage_mc.base_role.life;
stage_win();
}
} else if (stageID == 8) {
if (gold_total >= gold_mission8) {
_root.castle_life = _root.stage_mc.base_role.life;
stage_win();
}
}
if (enemyNum <= 0) {
if ((mission[stageID] == "enemy") || (mission[stageID] == "defend")) {
_root.castle_life = _root.stage_mc.base_role.life;
stage_win();
} else if ((mission[stageID] == "castle&enemy") && (stage_mc.base_enemy.inDead)) {
_root.castle_life = _root.stage_mc.base_role.life;
stage_win();
} else if (mission[stageID] == "time") {
_root.castle_life = _root.stage_mc.base_role.life;
stage_win();
} else if (((stageID == 5) && (gold_total < gold_mission5)) && (stage_mc.times == 5)) {
stage_lose2();
} else if (((stageID == 8) && (gold_total < gold_mission8)) && (stage_mc.times == 5)) {
stage_lose2();
}
} else if (mission[stageID] == "defend") {
if (enemyNum_attack <= 0) {
_root.castle_life = _root.stage_mc.base_role.life;
stage_win();
}
}
}
function checkBattle_castle(loser) {
if (loser == "role") {
_root.stage_lose();
} else if ((mission[stageID] == "castle") && (loser == "enemy")) {
_root.castle_life = _root.stage_mc.base_role.life;
_root.stage_win();
_root.gold_total = _root.gold_total + 1000;
_root.status_gold(_root.gold_total);
} else if ((mission[stageID] == "castle&enemy") && (enemyNum == 0)) {
_root.castle_life = _root.stage_mc.base_role.life;
_root.stage_win();
_root.gold_total = _root.gold_total + 1000;
_root.status_gold(_root.gold_total);
}
}
function checkBattle_farmhouse(gold) {
gold_total = gold_total + gold;
status_gold(gold_total);
var _local2 = ("You attacked enemy store,and got " + gold) + " GP.";
status_showMsg(_local2);
if (stage_mc.times == undefined) {
stage_mc.times = 0;
}
stage_mc.times++;
if (stageID == 5) {
if (gold_total >= gold_mission5) {
_root.castle_life = _root.stage_mc.base_role.life;
stage_win();
} else if ((stage_mc.times == 5) && (enemyNum == 0)) {
stage_lose2();
}
} else if (stageID == 8) {
if (gold_total >= gold_mission8) {
_root.castle_life = _root.stage_mc.base_role.life;
stage_win();
} else if ((stage_mc.times == 5) && (enemyNum == 0)) {
stage_lose2();
}
}
}
function checkBattle_fire() {
_root.stage_lose();
}
function setSpeed() {
speed_rate++;
if (speed_rate > 4) {
speed_rate = 1;
}
}
function right_menu() {
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
myContextMenu.customItems.push(new ContextMenuItem("Deselect all", mouse_control_mc.deSelectAll));
myContextMenu.customItems.push(new ContextMenuItem("Select all", mouse_control_mc.selectAll));
this.menu = myContextMenu;
}
function set_level() {
if (game_level == 1) {
gold_total = 1600;
} else if (game_level == 3) {
gold_total = 600;
} else {
gold_total = 1000;
}
}
function game_save(name) {
if (save_date.data.stageID == undefined) {
save_date.data.stageID = 0;
} else if (stageID > save_date.data.stageID) {
save_date.data.stageID = stageID;
}
var _local1 = new Object();
if (game_level == 1) {
_local1.difficulty = "Easy";
} else if (game_level == 3) {
_local1.difficulty = "Hard";
} else {
_local1.difficulty = "Normal";
}
_local1.name = name;
_local1.stageID = stageID;
_local1.general_type = general_type;
_local1.gold_total = gold_total;
_local1.castle_life_total = castle_life_total;
_local1.castle_level = castle_level;
_local1.gold_score = gold_score;
save_date.data["data" + name] = _local1;
save_date.flush();
}
function data_select(name) {
gotoAndStop ("clear");
saveData_name = name;
data_load();
_root.attachMovie("win", "win", depth_screen);
win.gotoAndStop("load");
}
function data_load() {
var _local1 = save_date.data["data" + saveData_name];
stageID = _local1.stageID;
general_type = _local1.general_type;
gold_total = _local1.gold_total;
castle_life_total = _local1.castle_life_total;
castle_level = _local1.castle_level;
game_level = _local1.game_level;
gold_score = _local1.gold_score;
stage_tempDate();
}
function start_game() {
trace("save_date.data.stageID: " + save_date.data.stageID);
if (_root.save_date.data.stageID == undefined) {
menu_mc.gotoAndStop("intr");
} else {
menu_mc.gotoAndStop("load");
}
}
function loadData() {
var _local1 = sceneArray[sceneID];
if ((_local1 == "ground3") || (sceneName == "ground4")) {
inBox = true;
} else if (_local1 == "room_number") {
inSuit = true;
} else if (sceneID >= 23) {
inKnife = true;
}
}
function viewHighscore() {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=battlefield_general", "_blank");
}
function addStage() {
stage_mc = _root.attachMovie("stage" + (stageID + 1), "stage_mc", depth_stage);
scroll_control = _root.attachMovie("scroll_control", "scroll_control", depth_scroll);
status_mc = _root.attachMovie("status_mc", "status_mc", depth_status);
status_mc._x = 0;
status_mc._y = 480;
roleBuilding_mc = stage_mc.createEmptyMovieClip("roleBuilding_mc", depth_roleBuilding);
enemyBuilding_mc = stage_mc.createEmptyMovieClip("enemyBuilding_mc", depth_enemyBuilding);
body_loader = stage_mc.createEmptyMovieClip("body_loader", depth_body);
roleShape_mc = stage_mc.createEmptyMovieClip("roleShape_mc", depth_roleShape);
enemyShape_mc = stage_mc.createEmptyMovieClip("enemyShape_mc", depth_enemyShape);
mouse_control_mc = stage_mc.attachMovie("mouse_control", "mouse_control_mc", depth_mouse);
obj_loader = stage_mc.createEmptyMovieClip("obj_loader", depth_obj_loader);
enemy_loader = stage_mc.enemy_loader;
role_loader = stage_mc.role_loader;
land_mc = stage_mc.land_mc;
enemy_control = stage_mc.enemy_control;
role_loader.swapDepths(depth_role);
enemy_loader.swapDepths(depth_enemy);
stage_mc.map_up.swapDepths(depth_map_up);
stage_mc._x = stagePos[stageID][0];
stage_mc._y = stagePos[stageID][1];
var _local2 = role_loader.attachMovie("role6_" + general_type, "general", role_loader.getNextHighestDepth());
_local2._x = stage_mc.generalPos._x;
_local2._y = stage_mc.generalPos._y;
trace("addStage general_type: " + general_type);
}
function stage_init() {
getEnemyNum();
getRoleNum();
status_mc.gotoAndStop("status");
status_stage(stageID + 1);
status_self_num(role_num);
status_enemy_num(enemyNum);
status_gold(gold_total);
castle_life = castle_life_total;
if (mission[stageID] == "time") {
status_mc.status.gotoAndStop("time");
status_stage(stageID + 1);
status_self_num(role_num);
status_enemy_num(enemyNum);
status_gold(gold_total);
}
}
function getEnemyNum() {
var _local3 = 0;
for (var _local6 in enemy_loader) {
_local3++;
enemy_loader[_local6].init2(_local3);
}
var _local1 = enemy_control.enemy_queue;
var _local2 = 0;
for (var _local5 in _local1) {
for (var _local4 in _local1[_local5]) {
_local2++;
}
}
enemyNum_attack = _local2;
trace("enemyNum_attack: " + enemyNum_attack);
enemyNum = _local3 + _local2;
enemyTotal = enemyNum;
}
function getRoleNum() {
var _local1 = 0;
for (var _local2 in role_loader) {
_local1++;
role_loader[_local2].initPos2(_local1);
}
role_num = _local1;
}
function stage_win() {
game_pause();
inGameWin = true;
status_mc.removeMovieClip();
_root.attachMovie("win", "win", depth_screen);
}
function stage_lose() {
game_pause();
inGameOver = true;
status_mc.removeMovieClip();
_root.attachMovie("lose", "lose", depth_screen);
}
function stage_lose2() {
game_pause();
inGameOver = true;
status_mc.removeMovieClip();
_root.attachMovie("lose2", "lose2", depth_screen);
}
function stage_resetDate() {
speed_rate = 1;
gold_killEnemy = 0;
role1_num = 0;
role2_num = 0;
role3_num = 0;
role4_num = 0;
role5_num = 0;
tower_num = 0;
tower_enemy_num = 0;
inGameOver = false;
inGameWin = false;
}
function stage_clearDate() {
}
function stage_tempDate() {
tempData.general_type = general_type;
tempData.gold_total = gold_total;
tempData.castle_life_total = castle_life_total;
tempData.castle_level = castle_level;
trace("stage_tempDate general_type: " + general_type);
}
function stage_loadTempDate() {
general_type = tempData.general_type;
gold_total = tempData.gold_total;
castle_life_total = tempData.castle_life_total;
castle_level = tempData.castle_level;
trace("stage_loadTempDate general_type: " + general_type);
}
function stage_next() {
trace("stage_next: " + stage_next);
stage_mc.removeMovieClip();
stage_tempDate();
stage_resetDate();
stageID++;
gotoAndPlay ("start");
}
function game_play() {
addStage();
game_ready();
}
function game_ready() {
flag_pause = true;
status_mission();
musicStart();
}
function game_start() {
flag_pause = false;
stage_init();
stage_tempDate();
enemy_control.control_start();
}
function game_continue() {
stopAllSounds();
stage_resetDate();
stage_loadTempDate();
tower_ico.removeMovieClip();
status_mc.removeMovieClip();
stage_mc.removeMovieClip();
gotoAndPlay ("start");
}
function game_retry() {
stopAllSounds();
stage_resetDate();
stage_loadTempDate();
tower_ico.removeMovieClip();
status_mc.removeMovieClip();
stage_mc.removeMovieClip();
screen_menu.removeMovieClip();
gotoAndPlay ("start");
}
function game_mainMenu() {
stopAllSounds();
stage_resetDate();
status_mc.removeMovieClip();
stage_mc.removeMovieClip();
screen_menu.removeMovieClip();
_root.gotoAndStop("menu");
}
function game_menu() {
if ((screen_menu instanceof MovieClip) != true) {
status_mc._visible = false;
this.attachMovie("screen_menu", "screen_menu", depth_screen);
game_pause();
} else if (screen_menu instanceof MovieClip) {
status_mc._visible = true;
screen_menu.removeMovieClip();
game_pause();
}
}
function game_pauseScreen() {
if (inGameOver) {
return(undefined);
}
if (inGameWin) {
return(undefined);
}
if (viewType == 2) {
return(undefined);
}
if (screen_menu instanceof MovieClip) {
return(undefined);
}
if (flag_pause == false) {
status_mc._visible = false;
this.attachMovie("screen_pause", "screen_pause", depth_screen);
} else if (flag_pause == true) {
status_mc._visible = true;
screen_pause.removeMovieClip();
}
game_pause();
}
function game_pause() {
if (flag_pause == false) {
flag_pause = true;
for (var _local3 in role_loader) {
var _local1 = role_loader[_local3].body;
for (var _local2 in _local1) {
_local1[_local2].stop();
}
}
for (var _local3 in enemy_loader) {
var _local1 = enemy_loader[_local3].body;
for (var _local2 in _local1) {
_local1[_local2].stop();
}
}
} else if (flag_pause == true) {
flag_pause = false;
for (var _local3 in role_loader) {
var _local1 = role_loader[_local3].body;
for (var _local2 in _local1) {
_local1[_local2].play();
}
}
for (var _local3 in enemy_loader) {
var _local1 = enemy_loader[_local3].body;
for (var _local2 in _local1) {
_local1[_local2].play();
}
}
}
}
function game_clearDate() {
}
function change_moveType(obj) {
if (flag_pause) {
return(undefined);
}
if (moveType == 1) {
moveType = 2;
obj.gotoAndStop(2);
} else if (moveType == 2) {
moveType = 1;
obj.gotoAndStop(1);
}
}
function change_View() {
if (viewType == 1) {
viewType = 2;
zoom_out();
status_mc._visible = false;
} else if ((viewType = 2)) {
viewType = 1;
zoom_in();
status_mc._visible = true;
}
}
function change_View_start() {
if (inGameOver) {
return(undefined);
}
if (inGameWin) {
return(undefined);
}
game_pause();
_root.attachMovie("map_mc1", "map_mc1", depth_map1);
stage_mc.setMask(map_mc1.mask_mc);
}
function change_View_end() {
stage_mc.setMask(null);
map_mc1.removeMovieClip();
game_pause();
}
function zoom_out() {
if (stage_mc._xscale != 100) {
return(undefined);
}
map_posx = stage_mc._x;
map_posy = stage_mc._y;
var _local1 = map_array[stageID];
var _local3 = _local1.w / stage_mc._width;
var _local2 = _local1.h / stage_mc._height;
stage_mc._x = _local1.x;
stage_mc._y = _local1.y;
stage_mc._width = _local1.w;
stage_mc._height = _local1.h;
map_mc1.pos_mc._x = 70 - (map_posx * _local3);
map_mc1.pos_mc._y = 30 - (map_posy * _local2);
map_mc1.pos_mc._xscale = _local2 * 100;
map_mc1.pos_mc._yscale = _local2 * 100;
}
function zoom_in() {
if (stage_mc._xscale == 100) {
return(undefined);
}
stage_mc._xscale = 100;
stage_mc._yscale = 100;
stage_mc._x = map_posx;
stage_mc._y = map_posy;
}
function gotoCastle() {
gotoMap(stage_mc.base_role._x, stage_mc.base_role._y);
}
function gotoMap(posx, posy) {
var _local2 = (egdeX_max / 2) - posx;
var _local1 = (egdeY_max / 2) - posy;
stage_mc._x = _local2;
stage_mc._y = _local1;
var _local6 = Math.abs(stage_mc.egde_r._x - stage_mc.egde_l._x);
var _local7 = Math.abs(stage_mc.egde_u._y - stage_mc.egde_d._y);
var _local8 = toGlobal(stage_mc.egde_l, stage_mc);
if (_local8.x > egdeX_min) {
_local2 = egdeX_min - 10;
}
var _local5 = toGlobal(stage_mc.egde_r, stage_mc);
if (_local5.x < egdeX_max) {
_local2 = egdeX_max - _local6;
}
var _local3 = toGlobal(stage_mc.egde_u, stage_mc);
if (_local3.y > egdeY_min) {
_local1 = egdeY_min - 10;
}
var _local4 = toGlobal(stage_mc.egde_d, stage_mc);
if (_local4.y < egdeY_max) {
_local1 = egdeY_max - _local7;
}
stage_mc._x = _local2;
stage_mc._y = _local1;
}
function buy(id) {
if (flag_pause) {
return(undefined);
}
if (role_num >= role_max) {
status_showMsg(msgObj.roleLimit);
return(undefined);
}
if (reducePrice(id - 1) == false) {
return(undefined);
}
var _local4 = role_loader.getNextHighestDepth();
var _local9 = role_loader.attachMovie("role" + id, "role_" + _local4, _local4);
var _local5 = 40;
var _local8 = role_num % 8;
var _local2 = int(role_num / 8);
if (_local2 == 5) {
_local2 = 0;
}
var _local7 = stage_mc.roleDot._x + (_local8 * _local5);
var _local6 = stage_mc.roleDot._y + (_local2 * _local5);
_local9.initPos(stage_mc.startPos._x, stage_mc.startPos._y, id, _local7, _local6);
role_num++;
this[("role" + id) + "_num"]++;
status_self_num();
}
function general_buy(type, price) {
if ((gold_total - price) < 0) {
return(-1);
}
gold_total = gold_total - price;
general_type = type;
return(gold_total);
}
function buy_tower() {
if (flag_pause) {
return(undefined);
}
if (_root.tower_ico instanceof MovieClip) {
return(undefined);
}
if (reducePrice(5) == false) {
return(undefined);
}
var _local2 = _root.getNextHighestDepth();
var _local3 = _root.attachMovie("tower_ico", "tower_ico", _local2);
_local3.startDrag(true);
}
function set_tower() {
if (flag_pause) {
return(undefined);
}
var _local5 = 1;
while (_local5 < 5) {
var _local4 = tower_ico["dot" + _local5];
var _local2 = toGlobal(_local4, _local4._parent);
if (stage_mc.tower_area.hitTest(_local2.x, _local2.y, true) != true) {
return(false);
}
if (land_mc.hitTest(_local2.x, _local2.y, true)) {
for (_local5 in _root.land_mc) {
var _local3 = _root.land_mc[_local5];
if (_local3.hitTest(_local2.x, _local2.y, true)) {
if (_local3.v_rate == 0) {
return(false);
}
}
}
}
if (roleBuilding_mc.hitTest(_local2.x, _local2.y, true)) {
return(false);
}
_local5++;
}
var _local8 = stage_mc._xmouse;
var _local7 = stage_mc._ymouse;
if (_root._ymouse > egdeY_max) {
return(false);
}
var _local6 = stage_mc.obj_loader.getNextHighestDepth();
var _local9 = stage_mc.obj_loader.attachMovie("tower", "tower_" + _local6, _local6);
_local9.init(_local8, _local7, "role");
tower_num++;
status_self_num();
tower_ico.removeMovieClip();
}
function reducePrice(id) {
var _local1 = price_array[id];
if ((gold_total - _local1) < 0) {
status_showMsg(msgObj.money);
return(false);
}
gold_total = gold_total - _local1;
status_gold(gold_total);
}
function reduceGold(num) {
if ((gold_total - num) < 0) {
return(false);
}
gold_total = gold_total - num;
return(gold_total);
}
function repair_start() {
if (flag_pause) {
return(undefined);
}
if ((_root.obj_select instanceof MovieClip) != true) {
status_showMsg(msgObj.repair);
return(undefined);
}
if (_root.obj_select.life == _root.obj_select._life) {
return(undefined);
}
if (reducePrice(6) == false) {
return(undefined);
}
_root.obj_select.repair();
_root.obj_select = null;
}
function repair_click() {
if (flag_pause) {
return(undefined);
}
repair_ico.removeMovieClip();
}
function repair(price) {
if ((gold_total - price) < 0) {
return(false);
}
gold_total = gold_total - price;
return(gold_total);
}
function repair_end() {
trace("repair_end: " + repair_end);
repair_ico.removeMovieClip();
}
function upgrade(price, hp) {
trace("gold_total: " + [gold_total, price]);
if ((gold_total - price) < 0) {
return(-1);
}
if (castle_level == (castle_array.length - 1)) {
return(-2);
}
gold_total = gold_total - price;
castle_life_total = hp;
castle_level++;
trace("gold_total: " + [gold_total, price]);
return(gold_total);
}
function status_showMsg(msg) {
status_mc.msg_mc.msg_txt.text = msg;
status_mc.msg_mc.gotoAndPlay(1);
}
function status_mission() {
status_mc.gotoAndStop("mission");
status_mc.stage2_txt.text = stageID + 1;
status_mc.mission_txt.text = mission_text[stageID];
}
function status_status() {
status_mc.gotoAndStop("status");
}
function status_stage(num) {
status_mc.status.stage_txt.text = num;
}
function status_self_num() {
with (status_mc.status) {
self_num.text = role_num;
s1.text = role1_num;
s2.text = role2_num;
s3.text = role3_num;
s4.text = role4_num;
s5.text = role5_num;
s6.text = tower_num;
}
}
function status_enemy_num(num) {
status_mc.status.enemy_num.text = num;
}
function status_gold(num) {
status_mc.status.gold_txt.text = num;
}
function status_roleInf(infObj) {
status_mc.gotoAndStop("roleInf");
with (status_mc) {
name_txt.text = infObj.name;
ap_txt.text = infObj.ap;
hp_txt.text = (infObj.hp + "/") + infObj.hp_max;
v_txt.text = infObj.v;
}
}
function status_castleInf(infObj) {
status_mc.gotoAndStop("castleInf");
with (status_mc) {
c_lv.text = infObj.lv;
c_hp.text = (infObj.hp + "/") + infObj.hp_max;
}
}
function status_towerInf(infObj) {
status_mc.gotoAndStop("towerInf");
with (status_mc) {
t_hp.text = (infObj.hp + "/") + infObj.hp_max;
}
}
function status_farmhouseInf(infObj) {
status_mc.gotoAndStop("farmhouseInf");
with (status_mc) {
f_hp.text = (infObj.hp + "/") + infObj.hp_max;
}
}
function getSound(obj) {
if (soundOn) {
return(true);
}
if (soundOn == false) {
return(false);
}
}
function getMusic(obj) {
if (musicOn) {
return(true);
}
if (musicOn == false) {
return(false);
}
}
function setSound(obj) {
if (soundOn == false) {
sword_snd.setVolume(100);
soundOn = true;
obj.gotoAndStop(1);
} else if (soundOn) {
sword_snd.setVolume(0);
soundOn = false;
obj.gotoAndStop(2);
}
}
function setMusic(obj) {
if (musicOn == false) {
bgMusic_snd.setVolume(100);
musicOn = true;
obj.gotoAndStop(1);
} else if (musicOn) {
bgMusic_snd.setVolume(0);
musicOn = false;
obj.gotoAndStop(2);
}
}
function musicStart() {
music_mc.play();
}
function soundStart(sound) {
if (soundOn) {
sound.start();
}
}
function game_setDifficulty(num) {
game_level = num;
menu_difficulty.mc_1.gotoAndStop(1);
menu_difficulty.mc_2.gotoAndStop(1);
menu_difficulty.mc_3.gotoAndStop(1);
menu_difficulty["mc_" + game_level].gotoAndStop(2);
set_level(num);
}
function game_getDifficulty(obj) {
obj.mc1.gotoAndStop(1);
obj.mc2.gotoAndStop(1);
obj.mc3.gotoAndStop(1);
obj["mc_" + game_level].gotoAndStop(2);
menu_difficulty = obj;
set_level(game_level);
}
function game_setQuality(num) {
game_quality = num;
menu_quality.mc_1.gotoAndStop(1);
menu_quality.mc_2.gotoAndStop(1);
menu_quality.mc_3.gotoAndStop(1);
menu_quality.mc_4.gotoAndStop(1);
menu_quality["mc_" + game_quality].gotoAndStop(2);
if (num == 1) {
_quality = "LOW";
} else if (num == 2) {
_quality = "MEDIUM";
} else if (num == 4) {
_quality = "BEST";
} else {
_quality = "HIGH";
}
}
function game_getQuality(obj) {
if (_quality == "LOW") {
game_quality = 1;
} else if (_quality == "MEDIUM") {
game_quality = 2;
} else if (_quality == "BEST") {
game_quality = 4;
} else {
game_quality = 3;
}
obj.mc1.gotoAndStop(1);
obj.mc2.gotoAndStop(1);
obj.mc3.gotoAndStop(1);
obj.mc4.gotoAndStop(1);
obj["mc_" + game_quality].gotoAndStop(2);
menu_quality = obj;
}
stop();
var egdeX_max = 750;
var egdeX_min = 0;
var egdeY_max = 480;
var egdeY_min = 0;
var screen_cX = (egdeX_max / 2);
var screen_cY = (egdeY_max / 2);
var tile_width = 40;
var tile_half = (tile_width / 2);
var role_dis = 50;
var key_ctrl = 17;
var depth_stage = 10;
var depth_scroll = 30;
var depth_status = 40;
var depth_screen = 50;
var depth_map1 = 15;
var depth_map2 = 5;
var depth_mouse = 360;
var depth_map_up = 550;
var depth_role = 500;
var depth_enemy = 400;
var depth_body = 100;
var depth_roleBuilding = 80;
var depth_enemyBuilding = 90;
var depth_roleShape = 200;
var depth_enemyShape = 300;
var depth_obj_loader = 340;
var role_loader;
var enemy_loader;
var stage_mc;
var roleBuilding_mc;
var enemyBuilding_mc;
var body_loader;
var roleShape_mc;
var enemyShape_mc;
var mouse_control_mc;
var enemy_control;
var scroll_control;
var attackTarget;
var land_mc;
var obj_select;
var selectArray = new Array();
var queue_cx;
var queue_cy;
var saveData_name;
var role_max = 30;
var stage_max = 6;
var save_date = SharedObject.getLocal("bf");
var save_sceneID;
_quality = "MEDIUM";
var gold_mission5 = 6000;
var gold_mission8 = 7500;
var stageID = 0;
var general_type = 1;
var gold_total = 1000;
var gold_score = 0;
var castle_life_total = 500;
var castle_life;
var castle_level = 1;
var game_level = 2;
var tempData = new Object();
tempData.general_type = general_type;
tempData.gold_total = gold_total;
tempData.castle_life_total = castle_life_total;
tempData.castle_level = castle_level;
var moveType = 1;
var viewType = 1;
var speed_rate = 1;
var gold_stage = 0;
var gold_killEnemy = 0;
var flag_pause = false;
var inGameWin = false;
var inGameOver = false;
var enemyNum = 0;
var enemyNum_attack = 0;
var enemyTotal = 0;
var role_num = 0;
var tower_enemy_num = 0;
var tower_num = 0;
var role1_num = 0;
var role2_num = 0;
var role3_num = 0;
var role4_num = 0;
var role5_num = 0;
var msgObj = new Object();
msgObj.money = "Not enough funds";
msgObj.castleAttacked = "Castle being attacked by the enemy!";
msgObj.roleLimit = "Maximum number of units reached!";
msgObj.repair = "Click on your castle or tower first";
msgObj.powerUP = "Soldier power up!";
var stagePos = new Array();
stagePos[0] = [-800, -11];
stagePos[1] = [-230, -1130];
stagePos[2] = [-1200, 0];
stagePos[3] = [-820, 0];
stagePos[4] = [-20, -1630];
stagePos[5] = [-15, -5];
stagePos[6] = [-14, -10];
stagePos[7] = [-1150, -17];
stagePos[8] = [-1762, -8];
stagePos[9] = [-15, -4];
stagePos[10] = [-11, -13];
stagePos[11] = [-1770, -20];
stagePos[12] = [-1410, -15];
stagePos[13] = [-1914, -12];
var price_array = new Array();
price_array[0] = 100;
price_array[1] = 200;
price_array[2] = 150;
price_array[3] = 300;
price_array[4] = 400;
price_array[5] = 500;
price_array[6] = 600;
var castle_array = new Array();
castle_array[0] = {hp:500, price:500};
castle_array[1] = {hp:600, price:800};
castle_array[2] = {hp:700, price:1100};
castle_array[3] = {hp:800, price:1400};
castle_array[4] = {hp:900, price:1700};
castle_array[5] = {hp:1000, price:2100};
castle_array[6] = {hp:1100, price:2400};
castle_array[7] = {hp:1200, price:2600};
castle_array[8] = {hp:1300, price:2800};
castle_array[9] = {hp:1400, price:3000};
var mission = new Array();
mission[0] = "castle";
mission[1] = "defend";
mission[2] = "castle";
mission[3] = "enemy";
mission[4] = "castle";
mission[5] = "gold";
mission[6] = "castle&enemy";
mission[7] = "defend";
mission[8] = "gold";
mission[9] = "castle&enemy";
mission[10] = "time";
mission[11] = "castle&enemy";
mission[12] = "defend";
mission[13] = "castle";
var mission_text = new Array();
mission_text[0] = "Your mission is to destroy the enemy castle and protect your castle from attack.";
mission_text[1] = "Our spies have informed us that the enemy is planning a major offensive against us. Defend your castle with every last man.";
mission_text[2] = "Your objective is to destroy all enemy units and take their castle.";
mission_text[3] = "Enemy forces are gathering, kill them all before they can mount an attack.";
mission_text[4] = "Our Emperor demands obedience from all surrounding lands, kill all enemy soldiers and burn their castle to ground. Leave no survivors.Protect your castle as they may launch a sneak attack.";
mission_text[5] = "Our coffers are almost empty. It is time to raid enemy territory and take what is ours. Plunder enemy store houses and get a minimum of 6000 gold pieces.";
mission_text[6] = "Wipe out all enemy soldiers and burn their castle to the ground. Watch out that they don't launch sneak attacks on your castle!";
mission_text[7] = "Military intelligence has informed us that the enemy plans a major attack on our castle. Prepare to defend it with your life!";
mission_text[8] = "War is an expensive business! Time to ransack enemy stores and take a minimum of 7500 gold pieces!";
mission_text[9] = "Kill all enemy soldiers and burn their damn castle to the ground. Protect your castle while you're at it!";
mission_text[10] = "Time is short - your castle is burning to the ground. Destroy all enemy soldiers before your time runs out.";
mission_text[11] = "Once again, our mighty Emperor demands that you kill all opposing soldiers and burn their castle to the ground. Also, watch out for sneak attacks!";
mission_text[12] = "Our scouts have spotted the enemy camping near our castle. Prepare for an attack!";
mission_text[13] = "This is our last offensive. Protect your castle, kill the damned enemy, and burn their remaining stronghold to the ground.";
var map_array = new Array();
map_array[0] = {x:71, y:30, w:696, h:584};
map_array[1] = {x:71, y:27, w:768, h:607};
map_array[2] = {x:70, y:40, w:674, h:539};
map_array[3] = {x:67, y:28, w:778, h:562};
map_array[4] = {x:70, y:31, w:693, h:542};
map_array[5] = {x:71, y:30, w:613, h:541};
map_array[6] = {x:71, y:30, w:638, h:579};
map_array[7] = {x:71, y:30, w:661, h:528};
map_array[8] = {x:71, y:31, w:658, h:528};
map_array[9] = {x:71, y:31, w:638, h:576};
map_array[10] = {x:71, y:31, w:638, h:576};
map_array[11] = {x:71, y:31, w:657, h:606};
map_array[12] = {x:71, y:31, w:638, h:576};
map_array[13] = {x:71, y:31, w:718, h:615};
var game_name = "battlefield_general";
var map_posx;
var map_posy;
var soundOn = true;
var musicOn = true;
var allSound_snd = new Sound(sound_mc);
allSound_snd.setVolume(100);
var bgMusic_snd = new Sound(music_mc);
var sword_snd = new Sound(sound_mc);
sword_snd.attachSound("sword");
var bow_snd = new Sound(sound_mc);
bow_snd.attachSound("bow1");
var canon_snd = new Sound(sound_mc);
canon_snd.attachSound("canon");
var pike_snd = new Sound(sound_mc);
pike_snd.attachSound("pike");
var boom_snd = new Sound(sound_mc);
boom_snd.attachSound("boom");
var menu_difficulty;
var game_quality;
var menu_quality;
Frame 121
game_play();
Instance of Symbol 1181 MovieClip in Frame 121
onClipEvent (keyDown) {
if (Key.isDown(80)) {
_root.game_pauseScreen();
} else if (Key.isDown(77)) {
if ((_root.map_mc1 instanceof MovieClip) != true) {
_root.change_View_start();
} else if (_root.map_mc1.opened) {
_root.map_mc1.play();
}
} else if (Key.isDown(49) || (Key.isDown(97))) {
_root.mouse_control_mc.select_soldier(1);
} else if (Key.isDown(50) || (Key.isDown(98))) {
_root.mouse_control_mc.select_soldier(3);
} else if (Key.isDown(51) || (Key.isDown(99))) {
_root.mouse_control_mc.select_soldier(2);
} else if (Key.isDown(52) || (Key.isDown(100))) {
_root.mouse_control_mc.select_soldier(4);
} else if (Key.isDown(53) || (Key.isDown(101))) {
_root.mouse_control_mc.select_soldier(5);
}
}
Frame 122
stop();
right_menu();
Symbol 1182 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_msec:11000, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = options.ad_msec;
delete options.ad_msec;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
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.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local15 = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = options.ad_msec;
delete options.ad_msec;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
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.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 load(options) {
var _local14 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local14);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.3";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(false);
}
if (_local7._mochiad_loaded) {
return(false);
}
var _local13 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local13);
var _local12 = _getRes(options);
options.res = (_local12[0] + "x") + _local12[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local11 = _local4.server;
delete _local4.server;
var _local10 = _local11.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local10);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_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 _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local10;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local11 + ".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 1183 MovieClip [__Packages.Role] Frame 0
class Role extends MovieClip
{
var role_side, role_type, _life, life, damage, V, role_dis, view_mode, checkAttack_time, checkView_time, start_dir, _rotation, startX, _x, startY, _y, targetX, targetY, dis_all, dis_now, Vx, Vy, body, onEnterFrame, moveOffset_x, moveOffset_y, dot_path, groupMove, dot_dx, dot_dy, checkBlock_timer, _parent, shape, lifeBar_mc, attackTarget, localToGlobal, dot1, building_self, target_building, building_opp, checkView_timer, checkAttack_timer, area_view, targetObj, area_attack, dir_angle, getNextHighestDepth, attachMovie, swapDepths, removeMovieClip, _damage, id, onwerObj, opp_base, mouse_mc, role_name, select_mc;
function Role () {
super();
add_listener();
role_side = "role";
role_type = 1;
_life = 100;
life = _life;
damage = 20;
V = 2;
role_dis = 50;
view_mode = "battle";
checkAttack_time = 500;
checkAttack();
checkView_time = 1000;
checkView();
if (start_dir == "down") {
_rotation = 90;
} else if (start_dir == "up") {
_rotation = -90;
} else if (start_dir == "right") {
_rotation = 0;
} else if (start_dir == "left") {
_rotation = 180;
} else {
_rotation = 90;
}
}
function move_toPos(t_x, t_y) {
startX = _x;
startY = _y;
targetX = t_x;
targetY = t_y;
var _local2 = ExtMath.angleOfLine(startX, startY, targetX, targetY);
dis_all = ExtMath.distance(startX, startY, targetX, targetY);
dis_now = 0;
Vx = V * ExtMath.cosD(_local2);
Vy = V * ExtMath.sinD(_local2);
_rotation = _local2;
body.gotoAndStop("move");
onEnterFrame = move;
inAttack = false;
}
function moveToPos(p, x, y, g) {
moveOffset_x = x;
moveOffset_y = y;
dot_path = p;
dot_id = 0;
groupMove = g;
move_path();
inAttack = false;
}
function moveToPos2(p, g) {
dot_path = p;
dot_id = 0;
groupMove = g;
move_path();
inAttack = false;
}
function move_path() {
var _local4;
var _local3;
_local4 = int(dot_path[dot_id]._x);
_local3 = int(dot_path[dot_id]._y);
if (groupMove != true) {
targetX = _local4;
targetY = _local3;
} else if ((dot_path.length > 1) && (dot_id < (dot_path.length - 1))) {
targetX = _local4;
targetY = _local3;
} else if (_root.moveType == 2) {
targetX = _local4 + dot_dx;
targetY = _local3 + dot_dy;
} else if (_root.moveType == 1) {
targetX = _local4 + (moveOffset_x * _root.tile_width);
targetY = _local3 + (moveOffset_y * _root.tile_width);
}
startX = _x;
startY = _y;
var _local5 = ExtMath.angleOfLine(startX, startY, targetX, targetY);
dis_all = ExtMath.distance(startX, startY, targetX, targetY);
dis_now = 0;
Vx = V * ExtMath.cosD(_local5);
Vy = V * ExtMath.sinD(_local5);
_rotation = _local5;
clearInterval(checkBlock_timer);
checkBlock_timer = setInterval(this, "checkBlock_enemy", 400);
body.gotoAndStop("move");
onEnterFrame = move;
}
function move_end() {
if (dot_path == undefined) {
move_stop();
return(undefined);
}
dot_id++;
if (dot_id == dot_path.length) {
trace("\u5230\u7ED3\u675F\u70B9");
move_stop();
return(undefined);
}
move_path();
}
function move_stop() {
body.gotoAndStop("stand");
onEnterFrame = null;
checkView();
}
function move() {
if (_root.inGameOver) {
move_stop();
return(undefined);
}
if (_root.flag_pause) {
return(undefined);
}
if (inBlock) {
return(undefined);
}
var _local3 = checkLand();
if (_local3 == 0) {
var _local6 = 0;
var _local5 = 0;
if (Vx > 0) {
_local6 = 1;
} else if (Vx < 0) {
_local6 = -1;
}
if (Vy > 0) {
_local5 = 1;
} else if (Vy < 0) {
_local5 = -1;
}
var _local7 = 40;
var _local4 = _root.toGlobal(this, _parent);
var _local9 = _local4.x + (_local7 * _local6);
var _local8 = _local4.y + (_local7 * _local5);
if (_root.land_mc.hitTest(_local9, _local4.y, true)) {
_x = _x - Vx;
}
if (_root.land_mc.hitTest(_local4.x, _local8, true)) {
_y = _y - Vy;
}
return(undefined);
}
if (_local3 == 1) {
_x = _x + (Vx * _root.speed_rate);
_y = _y + (Vy * _root.speed_rate);
dis_now = dis_now + (V * _root.speed_rate);
} else {
if (_local3 == 2) {
return(undefined);
}
_x = _x + ((Vx * _local3) * _root.speed_rate);
_y = _y + ((Vy * _local3) * _root.speed_rate);
dis_now = dis_now + ((V * _local3) * _root.speed_rate);
}
shape._x = _x;
shape._y = _y;
lifeBar_mc._x = _x;
lifeBar_mc._y = _y;
if (dis_now >= dis_all) {
move_end();
}
}
function move_follow() {
if (_root.inGameOver) {
move_stop();
return(undefined);
}
if (_root.flag_pause) {
return(undefined);
}
startX = _x;
startY = _y;
targetX = attackTarget._x;
targetY = attackTarget._y;
var _local4 = ExtMath.angleOfLine(startX, startY, targetX, targetY);
Vx = V * ExtMath.cosD(_local4);
Vy = V * ExtMath.sinD(_local4);
_rotation = _local4;
if (inBlock) {
trace("\u88AB\u963B\u6321");
return(undefined);
}
if ((Math.abs(targetX - _x) < 30) && (Math.abs(targetY - _y) < 30)) {
return(undefined);
}
var _local3 = checkLand();
if (_local3 == 0) {
move_stop();
return(undefined);
}
if (_local3 == 1) {
_x = _x + (Vx * _root.speed_rate);
_y = _y + (Vy * _root.speed_rate);
} else {
if (_local3 == 2) {
return(undefined);
}
_x = _x + ((Vx * _local3) * _root.speed_rate);
_y = _y + ((Vy * _local3) * _root.speed_rate);
}
shape._x = _x;
shape._y = _y;
lifeBar_mc._x = _x;
lifeBar_mc._y = _y;
}
function move_continue() {
move_stop();
}
function checkBlock_role() {
var _local4;
_local4 = 1;
while (_local4 < 3) {
var _local5 = this["dot" + _local4];
var _local3 = new Object();
_local3.x = _local5._x;
_local3.y = _local5._y;
localToGlobal(_local3);
if (_root.roleShape_mc.hitTest(_local3.x, _local3.y, true)) {
inBlock = true;
return(true);
}
_local4++;
}
inBlock = false;
checkBlock_enemy();
}
function checkBlock_enemy() {
var _local4;
_local4 = 1;
while (_local4 < 3) {
var _local5 = this["dot" + _local4];
var _local3 = new Object();
_local3.x = _local5._x;
_local3.y = _local5._y;
localToGlobal(_local3);
if (_root.enemyShape_mc.hitTest(_local3.x, _local3.y, true)) {
trace("checkBlock_enemy");
inBlock = true;
return(true);
}
_local4++;
}
inBlock = false;
}
function checkBlock_target(t) {
var _local3;
_local3 = 1;
while (_local3 < 3) {
var _local4 = this["dot" + _local3];
var _local2 = new Object();
_local2.x = _local4._x;
_local2.y = _local4._y;
localToGlobal(_local2);
if (t.hitTest(_local2.x, _local2.y, true)) {
trace("checkBlock_role:");
inBlock = true;
return(true);
}
_local3++;
}
inBlock = false;
}
function viewBlock_role(role) {
}
function checkLand() {
var _local8 = dot1;
var _local3 = new Object();
_local3.x = _local8._x;
_local3.y = _local8._y;
localToGlobal(_local3);
if (building_self.hitTest(_local3.x, _local3.y, true)) {
for (var _local7 in building_self) {
var _local4 = building_self[_local7];
if (_local4.hitTest(_local3.x, _local3.y, true)) {
target_building = _local4.body;
if (role_type == 2) {
var _local6 = 0;
target_building.getIn(role_type, this, _local6);
} else if (role_type == 5) {
var _local6 = -10;
target_building.getIn(role_type, this, _local6);
}
}
}
return(0);
}
if (building_opp.hitTest(_local3.x, _local3.y, true)) {
target_check_obj();
return(2);
}
if (_root.land_mc.hitTest(_local3.x, _local3.y, true)) {
for (var _local7 in _root.land_mc) {
var _local5 = _root.land_mc[_local7];
if (_local5.hitTest(_local3.x, _local3.y, true)) {
return(_local5.v_rate);
}
}
} else if (((((_x + (Vx * _root.speed_rate)) > _parent._parent.egde_r._x) || ((_x + (Vx * _root.speed_rate)) < _parent._parent.egde_l._x)) || ((_y + (Vy * _root.speed_rate)) > _parent._parent.egde_d._y)) || ((_y + (Vy * _root.speed_rate)) < _parent._parent.egde_u._y)) {
move_stop();
return(0);
}
return(1);
}
function getIn() {
}
function checkView() {
clearInterval(checkView_timer);
checkView_timer = setInterval(this, "searchTarget", checkView_time);
}
function checkAttack() {
clearInterval(checkAttack_timer);
checkAttack_timer = setInterval(this, "target_check", checkAttack_time);
}
function searchTarget() {
if (_root.flag_pause) {
return(undefined);
}
area_view.gotoAndPlay(2);
if (area_view.hitTest(targetObj)) {
var _local6 = new Array();
for (var _local4 in targetObj) {
var _local5 = targetObj[_local4];
if (_local5.inObj) {
continue;
}
var _local3 = new Object();
_local3.x = _local5._x;
_local3.y = _local5._y;
_local5._parent.localToGlobal(_local3);
if (area_view.hitTest(_local3.x, _local3.y, true)) {
_local6.push(_local5);
}
}
if (_local6.length == 0) {
return(undefined);
}
var _local7;
var _local4 = 0;
while (_local4 < _local6.length) {
var _local5 = _local6[_local4];
if (_local4 == (_local6.length - 1)) {
_local7 = _local5;
break;
}
if (_local5.targeted_num < 2) {
_local7 = _local5;
}
_local4++;
}
getTarget(_local7);
_local7.targeted_num++;
}
}
function getTarget(t) {
clearInterval(checkView_timer);
attackTarget = t;
move_toTarget();
alert_send(attackTarget);
}
function target_check() {
if (_root.flag_pause) {
return(undefined);
}
if (attackTarget.isObj) {
return(undefined);
}
area_attack.gotoAndPlay(2);
var _local4 = _root.toGlobal(attackTarget, attackTarget._parent);
if (area_attack.hitTest(_local4.x, _local4.y, true) && (attackTarget instanceof MovieClip)) {
trace("11111");
attack_start();
return(true);
}
if (area_attack.hitTest(targetObj)) {
for (var _local5 in targetObj) {
var _local3 = targetObj[_local5];
if (_local3.inObj) {
continue;
}
_local4 = new Object();
_local4.x = _local3._x;
_local4.y = _local3._y;
_local3._parent.localToGlobal(_local4);
if (area_attack.hitTest(_local4.x, _local4.y, true) && (_local3 instanceof MovieClip)) {
trace("222222===========");
attackTarget = _local3;
attack_start();
return(true);
}
}
}
return(false);
}
function target_check_obj() {
trace("target_check_obj: ");
area_attack.gotoAndPlay(2);
for (var _local3 in building_opp) {
trace("target_check_obj: 1111 " + building_opp);
var _local2 = building_opp[_local3];
if (_local2.body.inDead) {
continue;
}
if (area_attack.hitTest(_local2)) {
trace("target_check_obj: 2222 " + _local2.body);
target_building = _local2.body;
attack_obj();
return(true);
}
}
target_building = null;
return(false);
}
function move_toTarget() {
inAttack = false;
body.gotoAndStop("move");
onEnterFrame = function () {
if (_root.flag_pause) {
return(undefined);
}
if ((this.attackTarget instanceof MovieClip) != true) {
trace("\u76EE\u6807\u6B7B\u4EA1");
this.target_lost();
return(undefined);
}
trace("move_toTarget: " + this.move_toTarget);
this.move_follow();
};
}
function face_target() {
}
function target_lost() {
move_stop();
checkView();
}
function attack_start() {
inAttack = true;
if (attackTarget.inObj) {
attack_obj();
} else {
body.gotoAndStop("attack");
}
}
function attack_end_check() {
inAttack = false;
if (target_check() == false) {
attack_end();
} else if (_root.inGameOver) {
move_stop();
} else if (_root.inGameWin) {
move_stop();
}
}
function attack_end_check2() {
inAttack = false;
if (target_check_obj() == false) {
attack_end();
}
}
function attack_end() {
inAttack = false;
body.gotoAndStop("stand");
checkView();
move_continue();
}
function attack_obj() {
if (inAttack) {
return(undefined);
}
inAttack = true;
move_stop();
body.gotoAndStop("attack2");
_rotation = dir_angle;
}
function hitCheck(obj) {
trace("hit===============" + attackTarget);
if (obj.hitTest(attackTarget.shape)) {
attackTarget.hited(damage, this);
trace("damage: " + damage);
}
}
function hit() {
trace("hit: ");
}
function hited(d, role) {
if (inDead) {
return(undefined);
}
var _local2 = getNextHighestDepth();
var _local4 = attachMovie("blood", "blood" + _local2, _local2);
life = life - d;
showLife();
if (life <= 0) {
die();
return(undefined);
}
if (role.inObj) {
getTarget(role.obj_in);
} else if ((attackTarget instanceof MovieClip) != true) {
getTarget(role);
} else if (attackTarget instanceof Obj) {
getTarget(attackTarget);
}
}
function die() {
trace("die: ");
if (inDead) {
return(undefined);
}
inDead = true;
checkBattle();
var _local4 = _root.body_loader.getNextHighestDepth();
var _local3 = _root.body_loader.attachMovie("body_" + role_type, "body_" + _local4, _local4);
_local3._x = _x;
_local3._y = _y;
_local3._rotation = int(Math.random() * 180);
shape.removeMovieClip();
lifeBar_mc.removeMovieClip();
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
function checkBattle() {
_root.checkBattle_role(role_type);
}
function fire_start() {
var _local4 = 5;
var _local7 = target_building._x;
var _local6 = target_building._y;
var _local5 = _root.stage_mc.getNextHighestDepth();
var _local3 = _root.stage_mc.attachMovie("fire", "fire_" + _local5, _local5);
dir_angle = ExtMath.angleOfLine(_x, _y, _local7, _local6);
_local3._x = _x;
_local3._y = _y;
_local3.Vx = _local4 * ExtMath.cosD(dir_angle);
_local3.Vy = _local4 * ExtMath.sinD(dir_angle);
_local3._rotation = dir_angle;
var _local8 = ExtMath.distance(_x, _y, _local7, _local6);
var f = (int(_local8 / _local4) - 1);
var owner = this;
_local3.onEnterFrame = function () {
if (_root.flag_pause) {
return(undefined);
}
this._x = this._x + this.Vx;
this._y = this._y + this.Vy;
f--;
if (f <= 0) {
owner.target_building.hited(10, owner);
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
function powerUP(num) {
if (damage_rate == 1) {
if (_damage == undefined) {
_damage = damage;
}
damage_rate = num;
damage = damage * damage_rate;
}
}
function powerDown() {
if (damage_rate > 1) {
damage_rate = 1;
if (_damage != undefined) {
damage = _damage;
}
}
}
function add_listener() {
_root.stage_mc.mouse_control_mc.addEventListener("onClick", this);
_root.stage_mc.mouse_control_mc.addEventListener("onMove", this);
_root.stage_mc.mouse_control_mc.addEventListener("onDeSelect", this);
_root.stage_mc.mouse_control_mc.addEventListener("onSetTarget", this);
}
function initPos(x, y, _id, t_x, t_y) {
_x = x;
_y = y;
id = _id;
var _local3 = _root.roleShape_mc.getNextHighestDepth();
shape = _root.roleShape_mc.attachMovie("role_shape", "role_shape" + _local3, _local3);
shape._x = _x;
shape._y = _y;
_local3 = _root.stage_mc.getNextHighestDepth();
lifeBar_mc = _root.stage_mc.attachMovie("life_bar_role", "life_bar_role" + _local3, _local3);
lifeBar_mc._x = _x;
lifeBar_mc._y = _y;
_rotation = -90;
targetObj = _root.enemy_loader;
onwerObj = _root.role_loader;
opp_base = _root.stage_mc.base_enemy;
building_self = _root.roleBuilding_mc;
building_opp = _root.enemyBuilding_mc;
move_toPos(t_x, t_y);
}
function initPos2(_id) {
id = _id;
var _local3 = _root.roleShape_mc.getNextHighestDepth();
shape = _root.roleShape_mc.attachMovie("role_shape", "role_shape" + _local3, _local3);
shape._x = _x;
shape._y = _y;
_local3 = _root.stage_mc.getNextHighestDepth();
lifeBar_mc = _root.stage_mc.attachMovie("life_bar_role", "life_bar_role" + _local3, _local3);
lifeBar_mc._x = _x;
lifeBar_mc._y = _y;
targetObj = _root.enemy_loader;
onwerObj = _root.role_loader;
opp_base = _root.stage_mc.base_enemy;
building_self = _root.roleBuilding_mc;
building_opp = _root.enemyBuilding_mc;
}
function onRollOver() {
if (_root.flag_pause) {
return(undefined);
}
mouse_mc.gotoAndStop("target");
}
function onRollOut() {
if (_root.flag_pause) {
return(undefined);
}
mouse_mc.gotoAndStop(1);
_root.status_status();
}
function onPress() {
if (_root.flag_pause) {
return(undefined);
}
mouse_mc.gotoAndStop(1);
_root.mouse_control_mc.checkSelect2(this);
var _local3 = {hp:life, hp_max:_life, ap:damage, v:V, name:role_name};
_root.status_roleInf(_local3);
}
function onClick() {
select_end();
}
function onPause() {
if (_root.flag_pause) {
body.gotoAndStop("stand");
}
}
function select() {
inSelect = true;
select_mc.gotoAndStop("select");
showLife();
}
function select_end() {
inSelect = false;
select_mc.gotoAndStop(1);
hideLife();
trace("inSelect: " + inSelect);
}
function onDeSelect(obj) {
trace("onDeSelect: " + onDeSelect);
select_end();
}
function onSetTarget(obj) {
if (inSelect != true) {
return(undefined);
}
var _local2 = obj.__target;
if (_local2.isObj) {
target_building = _local2;
} else {
target_building = null;
}
attackTarget = _local2;
move_toTarget();
}
function alert_send(t) {
}
function alert_get(t) {
if (attackTarget != null) {
return(undefined);
}
getTarget(t);
}
function showLife() {
lifeBar_mc._visible = true;
var _local2 = int((life / _life) * 100);
lifeBar_mc.bar_mc._xscale = _local2;
}
function hideLife() {
lifeBar_mc._visible = false;
}
var damage_rate = 1;
var inAttackObj = false;
var inSelect = false;
var inSelect_temp = false;
var inBlock = false;
var inDead = false;
var inAttack = false;
var blockTimes = 0;
var dot_id = 0;
var targeted_num = 0;
}
Symbol 1184 MovieClip [__Packages.ExtMath] Frame 0
class ExtMath extends Math
{
function ExtMath () {
super();
}
static function distance(x1, y1, x2, y2) {
var _local1 = x2 - x1;
var _local2 = y2 - y1;
return(Math.sqrt((_local1 * _local1) + (_local2 * _local2)));
}
static function distance2(x1, y1, x2, y2) {
var _local1 = x2 - x1;
var _local2 = y2 - y1;
return((_local1 * _local1) + (_local2 * _local2));
}
static function degreesToRadians(angle) {
return(angle * 0.01745329);
}
static function radiansToDegrees(angle) {
return(angle * 57.29578);
}
static function sinD(angle) {
return(Math.sin((angle * 3.141593) / 180));
}
static function asinD(ratio) {
return(Math.asin(ratio) * 57.29578);
}
static function cosD(angle) {
return(Math.cos((angle * 3.141593) / 180));
}
static function acosD(ratio) {
return(Math.acos(ratio) * 57.29578);
}
static function tanD(angle) {
return(Math.tan((angle * 3.141593) / 180));
}
static function atan2D(y, x) {
return(Math.atan2(y, x) * 57.29578);
}
static function angleOfLine(x1, y1, x2, y2) {
return(atan2D(y2 - y1, x2 - x1));
}
static function fixAngle(angle) {
angle = angle % 360;
return((((angle % 360) < 0) ? (angle + 360) : (angle)));
}
static function cartesianToFlash(o) {
o._y = o._y * -1;
o._rotation = o._rotation * -1;
}
static function flashToCartesian(o) {
return(cartesianToFlash(o));
}
static function cartesianToPolar(p) {
var _local2 = Math.sqrt((p.x * p.x) + (p.y * p.y));
var _local3 = atan2D(p.y, p.x);
return({r:_local2, t:_local3});
}
static function polarToCartesian(p) {
var _local2 = p.r * cosD(p.t);
var _local3 = p.r * sinD(p.t);
return({x:_local2, y:_local3});
}
static var __proto__ = Math;
}
Symbol 1185 MovieClip [__Packages.Obj] Frame 0
class Obj extends MovieClip
{
var isObj, gotoAndStop, type, shape, shape_mc, _x, _y, inDead, life, _life, body, lifeBar_mc, select_mc;
function Obj () {
super();
isObj = true;
}
function onRollOver() {
if (_root.flag_pause) {
return(undefined);
}
gotoAndStop("s2");
showLife();
}
function onRollOut() {
if (_root.flag_pause) {
return(undefined);
}
gotoAndStop("s1");
hideLife();
}
function onPress() {
if (_root.flag_pause) {
return(undefined);
}
if (type == "enemy") {
gotoAndStop("s1");
_root.mouse_control_mc.setTarget(this);
}
}
function onLoad() {
addShape(shape);
}
function addShape(shape) {
var _local3;
if (type == "enemy") {
_local3 = _root.enemyBuilding_mc;
} else {
_local3 = _root.roleBuilding_mc;
}
var _local4 = _local3.getNextHighestDepth();
shape_mc = _local3.attachMovie(shape, "shape_" + _local4, _local4);
shape_mc._x = _x;
shape_mc._y = _y;
shape_mc.body = this;
trace((((("shape_mc: " + _local3) + " ") + shape) + " ") + this);
}
function selcet_on() {
trace("this:::::: " + this);
}
function hited(d, role) {
if (inDead) {
return(undefined);
}
life = life - d;
checkStatus();
showLife();
if (life <= 0) {
die();
}
}
function checkStatus() {
if ((life / _life) > 0.8) {
body.gotoAndStop("s1");
} else if ((life / _life) < 0.25) {
body.gotoAndStop("s4");
} else if ((life / _life) < 0.5) {
body.gotoAndStop("s3");
} else if ((life / _life) < 0.75) {
body.gotoAndStop("s2");
}
}
function die() {
if (inDead) {
return(undefined);
}
inDead = true;
body.gotoAndStop("end");
}
function showLife() {
lifeBar_mc._visible = true;
var _local2 = int((life / _life) * 100);
lifeBar_mc.bar_mc._xscale = _local2;
}
function hideLife() {
lifeBar_mc._visible = false;
}
function repair() {
if (type == "enemy") {
return(undefined);
}
life = life + 300;
if (life > _life) {
life = _life;
}
showLife();
checkStatus();
}
function select() {
_root.obj_select.select_end();
_root.obj_select = this;
select_mc._visible = true;
}
function select_end() {
select_mc._visible = false;
}
}
Symbol 1186 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends Role
{
var role_side, role_type, enemy_type, gold, view_mode, checkView_time, checkView, shape, start_dir, area_view, attachMovie, dot_id, body, inAttack, dot_path, startX, _x, startY, _y, targetX, targetY, dis_all, dis_now, Vx, V, Vy, _rotation, onEnterFrame, move, dot_path2_id, role_id, move_toPos, attack_obj, building_opp, lifeBar_mc, targetObj, onwerObj, opp_base, building_self, mouse_mc, select_mc, attackTarget, getTarget;
function Enemy () {
super();
role_side = "enemy";
role_type = 21;
enemy_type = 1;
gold = 100;
view_mode = "battle";
checkView_time = 1000;
checkView();
var _local5 = _root.enemyShape_mc.getNextHighestDepth();
shape = _root.enemyShape_mc.attachMovie("role_shape", "role_shape" + _local5, _local5);
var _local4;
if (start_dir == undefined) {
_local4 = "area_view1";
} else {
_local4 = "area_view2";
}
area_view = attachMovie(_local4, "area_view", 124);
initPos();
}
function move_start() {
trace("move_start:" + dot_id);
dot_id = 0;
move_path();
body.gotoAndStop("move");
inAttack = false;
}
function move_path() {
var _local4 = dot_path[dot_id]._x;
var _local3 = dot_path[dot_id]._y;
startX = _x;
startY = _y;
targetX = _local4;
targetY = _local3;
var _local2 = ExtMath.angleOfLine(startX, startY, targetX, targetY);
dis_all = ExtMath.distance(startX, startY, targetX, targetY);
dis_now = 0;
Vx = V * ExtMath.cosD(_local2);
Vy = V * ExtMath.sinD(_local2);
_rotation = _local2;
onEnterFrame = move;
inAttack = false;
}
function move_continue() {
if ((dot_id + 1) < dot_path.length) {
if (checkDot(dot_id + 1)) {
dot_id++;
} else if (checkDot(dot_id)) {
} else {
dot_id++;
}
move_path();
body.gotoAndStop("move");
} else if ((dot_path2_id != undefined) && (dot_path2_id != -1)) {
move_path();
body.gotoAndStop("move");
} else {
move_end();
}
inAttack = false;
}
function move_end() {
if (dot_id == (dot_path.length - 1)) {
trace("\u5230\u7ED3\u675F\u70B9");
if ((dot_path2_id != undefined) && (dot_path2_id != -1)) {
dot_id = 0;
move_path();
return(undefined);
}
move_endPos();
return(undefined);
}
dot_id++;
move_path();
}
function move_endPos() {
var _local3;
if (role_id > 8) {
_local3 = _root.stage_mc["dot_" + int(Math.random() * 8)];
} else {
_local3 = _root.stage_mc["dot_" + role_id];
}
move_toPos(_local3._x, _local3._y);
}
function move_stop() {
trace("move_stop: " + move_stop);
body.gotoAndStop("stand");
onEnterFrame = null;
checkView();
}
function attack_base() {
attack_obj();
}
function getNextDot() {
}
function checkDot(_dot_id) {
trace("checkDot::::::::: " + _dot_id);
var _local7 = _x;
var _local6 = _y;
var _local14 = dot_path[_dot_id]._x;
var _local15 = dot_path[_dot_id]._y;
var _local13 = ExtMath.angleOfLine(_local7, _local6, _local14, _local15);
var _local12 = 10;
var _local11 = _local12 * ExtMath.cosD(_local13);
var _local10 = _local12 * ExtMath.sinD(_local13);
var _local17 = ExtMath.distance(_local7, _local6, _local14, _local15);
var _local9 = int(_local17 / _local12);
var _local8 = 0;
do {
_local7 = _local7 + _local11;
_local6 = _local6 + _local10;
var _local5 = _root.mouse_control_mc.getNextHighestDepth();
var _local3 = _root.mouse_control_mc.attachMovie("viewDot", "viewDot" + _local5, _local5);
_local3._x = _local7;
_local3._y = _local6;
_local3._visible = false;
var _local4 = _root.toGlobal(_local3, _local3._parent);
if (_root.land_mc.hitTest(_local4.x, _local4.y, true)) {
trace("\u6321\u4F4F");
if (building_opp.hitTest(_local4.x, _local4.y, true)) {
return(true);
}
return(false);
}
_local8++;
} while (_local8 <= _local9);
return(true);
}
function init(_role_id, _dot_path) {
role_id = _role_id;
dot_path = _dot_path;
}
function init2(_role_id) {
if ((dot_path2_id == undefined) || (dot_path2_id == -1)) {
return(undefined);
}
role_id = _role_id;
dot_path = _root.stage_mc.dot_path2[dot_path2_id];
move_start();
}
function initPos() {
shape._x = _x;
shape._y = _y;
if (start_dir == "down") {
_rotation = 90;
} else if (start_dir == "up") {
_rotation = -90;
} else if (start_dir == "right") {
_rotation = 0;
} else if (start_dir == "left") {
_rotation = 180;
} else {
_rotation = 90;
}
var _local3 = _root.stage_mc.getNextHighestDepth();
lifeBar_mc = _root.stage_mc.attachMovie("life_bar_enemy", "life_bar_enemy" + _local3, _local3);
lifeBar_mc._x = _x;
lifeBar_mc._y = _y;
targetObj = _root.role_loader;
onwerObj = _root.enemy_loader;
opp_base = _root.stage_mc.base_role;
building_opp = _root.roleBuilding_mc;
building_self = _root.enemyBuilding_mc;
}
function add_listener() {
_root.stage_mc.mouse_control_mc.addEventListener("onPause", this);
}
function onClick() {
}
function onMove() {
}
function select() {
}
function select_end() {
}
function onRollOver() {
if (_root.flag_pause) {
return(undefined);
}
mouse_mc.gotoAndStop("target");
}
function onRollOut() {
if (_root.flag_pause) {
return(undefined);
}
mouse_mc.gotoAndStop(1);
}
function onPress() {
if (_root.flag_pause) {
return(undefined);
}
_root.mouse_control_mc.setTarget(this);
mouse_mc.gotoAndPlay("attack");
select_mc.gotoAndStop("select2");
}
function checkBattle() {
if ((_root.mission[_root.stageID] == "defend") && (start_dir == undefined)) {
_root.enemyNum_attack--;
}
_root.checkBattle_enemy(enemy_type);
}
function target_lost() {
trace("target_lost: ");
move_stop();
checkView();
if ((dot_id + 1) < dot_path.length) {
if (checkDot(dot_id + 1)) {
dot_id++;
} else if (checkDot(dot_id)) {
} else {
dot_id++;
}
move_path();
body.gotoAndStop("move");
} else {
move_end();
}
if (dot_path == undefined) {
move_stop();
}
}
function alert_send(t) {
for (var _local4 in onwerObj) {
var _local2 = onwerObj[_local4];
if (_local2 == this) {
continue;
}
if (_local2.shape.hitTest(area_view)) {
_local2.alert_get(t);
}
}
}
function alert_get(t) {
trace("alert_get: " + t);
if (attackTarget instanceof MovieClip) {
return(undefined);
}
getTarget(t);
}
var inMap = false;
}
Symbol 1187 MovieClip [__Packages.Enemy2] Frame 0
class Enemy2 extends Enemy
{
var role_name, role_type, enemy_type, _life, life, damage, V, gold, checkAttack_time, area_view, attachMovie, inAttack, move_stop, body, _rotation, dir_angle, _x, _y, attackTarget, target_building;
function Enemy2 () {
super();
role_name = "Archer";
role_type = 22;
enemy_type = 2;
_life = 100;
life = _life;
damage = 10;
V = 3;
gold = 200;
checkAttack_time = 1000;
area_view = attachMovie("area_view3", "area_view", 124);
}
function attack_start() {
if (inAttack) {
return(undefined);
}
inAttack = true;
move_stop();
body.gotoAndStop("attack");
arrow_start();
_rotation = dir_angle;
}
function arrow_start() {
var _local5 = 30;
var _local7 = _root.stage_mc.getNextHighestDepth();
var _local3 = _root.stage_mc.attachMovie("arrow", "arrow_" + _local7, _local7);
var _local4 = new Object();
_local4.x = _x;
_local4.y = _y;
var _local6 = ExtMath.angleOfLine(_x, _y, attackTarget._x, attackTarget._y);
_local3._x = _local4.x;
_local3._y = _local4.y;
_local3.Vx = _local5 * ExtMath.cosD(_local6);
_local3.Vy = _local5 * ExtMath.sinD(_local6);
_local3._rotation = _local6;
var _local8 = ExtMath.distance(_local4.x, _local4.y, attackTarget._x, attackTarget._y);
var f = int(_local8 / _local5);
_local3.onEnterFrame = function () {
this._x = this._x + this.Vx;
this._y = this._y + this.Vy;
f--;
if (f <= 0) {
delete this.onEnterFrame;
this.play();
}
};
}
function getIn() {
target_building.getIn(role_type, this);
}
}
Symbol 1188 MovieClip [__Packages.Enemy2_2] Frame 0
class Enemy2_2 extends Enemy2
{
var inObj, area_view, attachMovie, start_dir, _rotation, targetObj, onwerObj, opp_base, building_opp, building_self, obj_in, inAttack, move_stop, body, dir_angle, _x, _y, attackTarget, checkView_timer, onEnterFrame, startX, startY, targetX, targetY, inDead, checkBattle, role_type, shape, swapDepths, _parent, removeMovieClip;
function Enemy2_2 () {
super();
inObj = true;
initPos();
area_view = attachMovie("area_view2", "area_view", 124);
}
function initPos(x, y, _id, t_x, t_y) {
if (start_dir == "down") {
_rotation = 90;
} else if (start_dir == "up") {
_rotation = -90;
} else if (start_dir == "right") {
_rotation = 0;
} else if (start_dir == "left") {
_rotation = 180;
} else {
_rotation = 90;
}
targetObj = _root.role_loader;
onwerObj = _root.enemy_loader;
opp_base = _root.stage_mc.base_role;
building_opp = _root.roleBuilding_mc;
building_self = _root.enemyBuilding_mc;
}
function onPress() {
if (_root.flag_pause) {
return(undefined);
}
obj_in.onPress();
}
function attack_start() {
if (inAttack) {
return(undefined);
}
inAttack = true;
move_stop();
inAttack = true;
body.gotoAndStop("attack");
arrow_start();
_rotation = dir_angle;
}
function arrow_start() {
var _local5 = 30;
var _local7 = _root.stage_mc.getNextHighestDepth();
var _local4 = _root.stage_mc.attachMovie("arrow", "arrow_" + _local7, _local7);
var _local3 = new Object();
_local3.x = _x;
_local3.y = _y;
var _local6 = ExtMath.angleOfLine(_local3.x, _local3.y, attackTarget._x, attackTarget._y);
_local4._x = _local3.x;
_local4._y = _local3.y;
_local4.Vx = _local5 * ExtMath.cosD(_local6);
_local4.Vy = _local5 * ExtMath.sinD(_local6);
_local4._rotation = _local6;
var _local8 = ExtMath.distance(_local3.x, _local3.y, attackTarget._x, attackTarget._y);
var f = int(_local8 / _local5);
_local4.onEnterFrame = function () {
this._x = this._x + this.Vx;
this._y = this._y + this.Vy;
f--;
if (f <= 0) {
delete this.onEnterFrame;
this.play();
}
};
}
function onMove(obj) {
}
function move_toPos(t_x, t_y) {
}
function moveToPos(p, x, y, g) {
}
function moveToPos2(p, g) {
}
function move_toTarget() {
clearInterval(checkView_timer);
onEnterFrame = function () {
if ((this.attackTarget instanceof MovieClip) != true) {
trace("\u76EE\u6807\u6B7B\u4EA1");
this.target_lost();
return(undefined);
}
this.move_follow();
};
}
function move_follow() {
startX = _x;
startY = _y;
targetX = attackTarget._x;
targetY = attackTarget._y;
var _local2 = ExtMath.angleOfLine(startX, startY, targetX, targetY);
_rotation = _local2;
}
function die() {
if (inDead) {
return(undefined);
}
inDead = true;
checkBattle();
var _local4 = _root.body_loader.getNextHighestDepth();
var _local3 = _root.body_loader.attachMovie("body_" + role_type, "body_" + _local4, _local4);
_local3._x = _x;
_local3._y = _y;
_local3._rotation = int(Math.random() * 180);
shape.removeMovieClip();
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
function die2() {
if (inDead) {
return(undefined);
}
inDead = true;
checkBattle();
shape.removeMovieClip();
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
}
Symbol 1189 MovieClip [__Packages.Enemy3] Frame 0
class Enemy3 extends Enemy
{
var role_name, role_type, enemy_type, _life, life, damage, V, gold, checkAttack_time;
function Enemy3 () {
super();
role_name = "Pikeman";
role_type = 23;
enemy_type = 3;
_life = 200;
life = _life;
damage = 25;
V = 2;
gold = 150;
checkAttack_time = 1000;
}
}
Symbol 1190 MovieClip [__Packages.Enemy4] Frame 0
class Enemy4 extends Enemy
{
var role_name, role_type, enemy_type, _life, life, damage, V, checkAttack_time;
function Enemy4 () {
super();
role_name = "Cavalry";
role_type = 24;
enemy_type = 4;
_life = 300;
life = _life;
damage = 30;
V = 4;
checkAttack_time = 500;
}
}
Symbol 1191 MovieClip [__Packages.Enemy5] Frame 0
class Enemy5 extends Enemy
{
var role_name, role_type, enemy_type, _life, life, damage, V, checkAttack_time, area_view, attachMovie, attackTarget, dir_angle, _x, _y, inAttack, body, move_stop, _rotation, attack_end, targetObj, target_building, area_attack, role_side;
function Enemy5 () {
super();
role_name = "cannon soldier";
role_type = 25;
enemy_type = 5;
_life = 300;
life = _life;
damage = 80;
V = 1;
checkAttack_time = 500;
area_view = attachMovie("area_view3", "area_view", 124);
}
function attack_start() {
trace("attack_start::::::::::: " + attackTarget);
if ((attackTarget instanceof MovieClip) != true) {
return(undefined);
}
dir_angle = ExtMath.angleOfLine(_x, _y, attackTarget._x, attackTarget._y);
var _local2 = ExtMath.distance(_x, _y, attackTarget._x, attackTarget._y);
if (_local2 > 600) {
return(undefined);
}
if (inAttack && (body.mc._currentframe > 1)) {
return(undefined);
}
inAttack = true;
move_stop();
body.gotoAndStop("attack");
_rotation = dir_angle;
}
function attack_obj() {
attack_start();
}
function attack_end_check() {
inAttack = false;
if ((attackTarget instanceof MovieClip) != true) {
attack_end();
return(undefined);
}
var _local3 = ExtMath.distance(_x, _y, attackTarget._x, attackTarget._y);
if (((_local3 > 600) || (_local3 == 0)) || (_local3 == undefined)) {
attack_end();
trace("attack_end:::::::::::::::::::: " + attack_end);
}
if (target_check() == false) {
attack_end();
} else if (_root.inGameOver) {
move_stop();
} else if (_root.inGameWin) {
move_stop();
}
}
function bomb_start() {
if ((attackTarget instanceof MovieClip) != true) {
return(undefined);
}
var _local6 = _root.stage_mc.getNextHighestDepth();
var _local4 = _root.stage_mc.attachMovie("bomb", "bomb_" + _local6, _local6);
var _local5 = ExtMath.angleOfLine(_x, _y, attackTarget._x, attackTarget._y);
var _local3 = ExtMath.distance(_x, _y, attackTarget._x, attackTarget._y);
_local3 = _local3 + (int(Math.random() * 150) - 75);
if (_local3 < 150) {
_local3 = 150;
}
_local4._x = _x + (_local3 * ExtMath.cosD(_local5));
_local4._y = _y + (_local3 * ExtMath.sinD(_local5));
_local4.role = this;
}
function hitCheck(obj) {
for (var _local5 in targetObj) {
var _local3 = targetObj[_local5];
var _local2 = new Object();
_local2.x = _local3._x;
_local2.y = _local3._y;
_local3._parent.localToGlobal(_local2);
if (obj.hitTest(_local2.x, _local2.y, true)) {
_local3.hited(damage, this);
return(true);
}
}
if (obj.hitTest(target_building.shape_mc)) {
target_building.hited(damage, this);
}
}
function target_check() {
if (_root.flag_pause) {
return(undefined);
}
area_attack.gotoAndPlay(2);
var _local4 = _root.toGlobal(attackTarget, attackTarget._parent);
if (area_attack.hitTest(_local4.x, _local4.y, true) && (attackTarget instanceof MovieClip)) {
trace("eeeeeeee11111:" + [attackTarget, attackTarget._x, attackTarget._y, attackTarget._parent]);
attack_start();
return(true);
}
if (area_attack.hitTest(_root.stage_mc.base_role._x + _root.stage_mc._x, _root.stage_mc.base_role._y + _root.stage_mc._y, true)) {
target_building = _root.stage_mc.base_role;
attackTarget = target_building;
attack_obj();
return(true);
}
if (area_attack.hitTest(targetObj)) {
trace("eeeeeeee22222");
for (var _local5 in targetObj) {
var _local3 = targetObj[_local5];
if (_local3.inObj) {
continue;
}
_local4 = new Object();
_local4.x = _local3._x;
_local4.y = _local3._y;
_local3._parent.localToGlobal(_local4);
if (area_attack.hitTest(_local4.x, _local4.y, true)) {
trace("222222===========");
attackTarget = _local3;
attack_start();
return(true);
}
}
} else if (area_attack.hitTest(target_building)) {
if (((target_building.type == "role") && (role_side == "role")) || ((target_building.type == "enemy") && (role_side == "enemy"))) {
return(false);
}
attackTarget = target_building;
trace((("33333\uFF1A" + target_building) + "===") + attackTarget);
attack_obj();
return(true);
}
return(false);
}
function getIn() {
var _local2 = -10;
target_building.getIn(role_type, this, _local2);
}
}
Symbol 1192 MovieClip [__Packages.Enemy5_2] Frame 0
class Enemy5_2 extends Enemy5
{
var inObj, area_view, attachMovie, start_dir, _rotation, targetObj, onwerObj, opp_base, building_opp, building_self, obj_in, _x, _y, _parent, checkView_timer, onEnterFrame, startX, startY, targetX, attackTarget, targetY, inDead, checkBattle, role_type, shape, swapDepths, removeMovieClip;
function Enemy5_2 () {
super();
inObj = true;
area_view = attachMovie("area_view3", "area_view", 124);
initPos();
}
function initPos() {
if (start_dir == "down") {
_rotation = 90;
} else if (start_dir == "up") {
_rotation = -90;
} else if (start_dir == "right") {
_rotation = 0;
} else if (start_dir == "left") {
_rotation = 180;
} else {
_rotation = 90;
}
targetObj = _root.role_loader;
onwerObj = _root.enemy_loader;
opp_base = _root.stage_mc.base_role;
building_opp = _root.roleBuilding_mc;
building_self = _root.enemyBuilding_mc;
}
function onPress() {
if (_root.flag_pause) {
return(undefined);
}
obj_in.onPress();
}
function onMove(obj) {
}
function move_toPos(t_x, t_y) {
var _local2 = ExtMath.angleOfLine(_x, _y, _parent._xmouse, _parent._ymouse);
_rotation = _local2;
}
function moveToPos(p, x, y, g) {
var _local2 = ExtMath.angleOfLine(_x, _y, _parent._xmouse, _parent._ymouse);
_rotation = _local2;
}
function moveToPos2(p, g) {
var _local2 = ExtMath.angleOfLine(_x, _y, _parent._xmouse, _parent._ymouse);
_rotation = _local2;
}
function move_toTarget() {
trace("move_toTarget: " + move_toTarget);
clearInterval(checkView_timer);
onEnterFrame = function () {
if ((this.attackTarget instanceof MovieClip) != true) {
trace("\u76EE\u6807\u6B7B\u4EA1");
this.target_lost();
return(undefined);
}
this.move_follow();
};
}
function move_follow() {
startX = _x;
startY = _y;
targetX = attackTarget._x;
targetY = attackTarget._y;
var _local2 = ExtMath.angleOfLine(startX, startY, targetX, targetY);
_rotation = _local2;
}
function die() {
if (inDead) {
return(undefined);
}
inDead = true;
checkBattle();
var _local4 = _root.body_loader.getNextHighestDepth();
var _local3 = _root.body_loader.attachMovie("body_" + role_type, "body_" + _local4, _local4);
_local3._x = _x;
_local3._y = _y;
_local3._rotation = int(Math.random() * 180);
shape.removeMovieClip();
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
function die2() {
if (inDead) {
return(undefined);
}
inDead = true;
checkBattle();
shape.removeMovieClip();
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
}
Symbol 1193 MovieClip [__Packages.Enemy1] Frame 0
class Enemy1 extends Enemy
{
var role_name, role_type, enemy_type, _life, life, damage, V, gold, checkAttack_time;
function Enemy1 () {
super();
role_name = "Swordsman";
role_type = 21;
enemy_type = 1;
_life = 150;
life = _life;
damage = 20;
V = 2;
gold = 100;
checkAttack_time = 1000;
}
}
Symbol 1194 MovieClip [__Packages.Enemy6_1] Frame 0
class Enemy6_1 extends Enemy1
{
var role_name, role_type, enemy_type, _life, life, damage, V, checkAttack_time;
function Enemy6_1 () {
super();
role_name = "General";
role_type = 26;
enemy_type = 4;
_life = 500;
life = _life;
damage = 20;
V = 4;
checkAttack_time = 500;
}
}
Symbol 1195 MovieClip [__Packages.Role1] Frame 0
class Role1 extends Role
{
var role_name, role_type, _life, life, damage, V, gold, checkAttack_time;
function Role1 () {
super();
role_name = "Swordsman";
role_type = 1;
_life = 150;
life = _life;
damage = 20;
V = 2;
gold = 100;
checkAttack_time = 1000;
}
}
Symbol 1196 MovieClip [__Packages.Role2] Frame 0
class Role2 extends Role
{
var role_name, role_type, _life, life, damage, V, gold, checkAttack_time, inAttack, move_stop, attackTarget, attack_obj, body, _rotation, dir_angle, _x, _y, target_building;
function Role2 () {
super();
role_name = "Archer";
role_type = 2;
_life = 100;
life = _life;
damage = 10;
V = 3;
gold = 200;
checkAttack_time = 1000;
}
function attack_start() {
if (inAttack) {
return(undefined);
}
inAttack = true;
move_stop();
inAttack = true;
if (attackTarget.inObj) {
attack_obj();
return(undefined);
}
body.gotoAndStop("attack");
body.gotoAndStop("attack");
arrow_start();
_rotation = dir_angle;
}
function arrow_start() {
var _local5 = 30;
var _local7 = _root.stage_mc.getNextHighestDepth();
var _local3 = _root.stage_mc.attachMovie("arrow", "arrow_" + _local7, _local7);
var _local4 = new Object();
_local4.x = _x;
_local4.y = _y;
var _local6 = ExtMath.angleOfLine(_x, _y, attackTarget._x, attackTarget._y);
_local3._x = _local4.x;
_local3._y = _local4.y;
_local3.Vx = _local5 * ExtMath.cosD(_local6);
_local3.Vy = _local5 * ExtMath.sinD(_local6);
_local3._rotation = _local6;
var _local8 = ExtMath.distance(_local4.x, _local4.y, attackTarget._x, attackTarget._y);
var f = int(_local8 / _local5);
_local3.onEnterFrame = function () {
this._x = this._x + this.Vx;
this._y = this._y + this.Vy;
f--;
if (f <= 0) {
delete this.onEnterFrame;
this.play();
}
};
}
function hitCheck(obj) {
if (obj.hitTest(attackTarget)) {
attackTarget.hited(damage, this);
}
}
function getIn() {
var _local2 = 0;
target_building.getIn(role_type, this, _local2);
}
}
Symbol 1197 MovieClip [__Packages.Role2_2] Frame 0
class Role2_2 extends Role2
{
var inObj, _rotation, targetObj, onwerObj, opp_base, building_self, building_opp, inAttack, move_stop, body, dir_angle, _x, _y, attackTarget, checkView_timer, onEnterFrame, startX, startY, targetX, targetY, inDead, checkBattle, role_type, shape, swapDepths, _parent, removeMovieClip;
function Role2_2 () {
super();
inObj = true;
initPos();
}
function initPos(x, y, _id, t_x, t_y) {
_rotation = -90;
targetObj = _root.enemy_loader;
onwerObj = _root.role_loader;
opp_base = _root.stage_mc.base_enemy;
building_self = _root.roleBuilding_mc;
building_opp = _root.enemyBuilding_mc;
}
function attack_start() {
if (inAttack) {
return(undefined);
}
inAttack = true;
move_stop();
inAttack = true;
body.gotoAndStop("attack");
arrow_start();
_rotation = dir_angle;
}
function arrow_start() {
var _local5 = 30;
var _local7 = _root.stage_mc.getNextHighestDepth();
var _local4 = _root.stage_mc.attachMovie("arrow", "arrow_" + _local7, _local7);
var _local3 = new Object();
_local3.x = _x;
_local3.y = _y;
var _local6 = ExtMath.angleOfLine(_local3.x, _local3.y, attackTarget._x, attackTarget._y);
_local4._x = _local3.x;
_local4._y = _local3.y;
_local4.Vx = _local5 * ExtMath.cosD(_local6);
_local4.Vy = _local5 * ExtMath.sinD(_local6);
_local4._rotation = _local6;
var _local8 = ExtMath.distance(_local3.x, _local3.y, attackTarget._x, attackTarget._y);
var f = int(_local8 / _local5);
_local4.onEnterFrame = function () {
this._x = this._x + this.Vx;
this._y = this._y + this.Vy;
f--;
if (f <= 0) {
delete this.onEnterFrame;
this.play();
}
};
}
function onMove(obj) {
}
function move_toPos(t_x, t_y) {
}
function moveToPos(p, x, y, g) {
}
function moveToPos2(p, g) {
}
function move_toTarget() {
trace("move_toTarget: " + move_toTarget);
clearInterval(checkView_timer);
onEnterFrame = function () {
if ((this.attackTarget instanceof MovieClip) != true) {
trace("\u76EE\u6807\u6B7B\u4EA1");
this.target_lost();
return(undefined);
}
this.move_follow();
};
}
function move_follow() {
startX = _x;
startY = _y;
targetX = attackTarget._x;
targetY = attackTarget._y;
var _local2 = ExtMath.angleOfLine(startX, startY, targetX, targetY);
_rotation = _local2;
}
function die() {
if (inDead) {
return(undefined);
}
inDead = true;
checkBattle();
var _local4 = _root.body_loader.getNextHighestDepth();
var _local3 = _root.body_loader.attachMovie("body_" + role_type, "body_" + _local4, _local4);
_local3._x = _x;
_local3._y = _y;
_local3._rotation = int(Math.random() * 180);
shape.removeMovieClip();
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
function die2() {
if (inDead) {
return(undefined);
}
inDead = true;
checkBattle();
shape.removeMovieClip();
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
}
Symbol 1198 MovieClip [__Packages.Role3] Frame 0
class Role3 extends Role
{
var role_name, role_type, _life, life, damage, V, gold, checkAttack_time;
function Role3 () {
super();
role_name = "Pikeman";
role_type = 3;
_life = 200;
life = _life;
damage = 30;
V = 2;
gold = 150;
checkAttack_time = 1000;
}
}
Symbol 1199 MovieClip [__Packages.Role4] Frame 0
class Role4 extends Role
{
var role_name, role_type, _life, life, damage, V, checkAttack_time;
function Role4 () {
super();
role_name = "Cavalry";
role_type = 4;
_life = 400;
life = _life;
damage = 40;
V = 4;
checkAttack_time = 500;
}
}
Symbol 1200 MovieClip [__Packages.Role5] Frame 0
class Role5 extends Role
{
var role_name, role_type, _life, life, damage, V, checkAttack_time, attackTarget, dir_angle, _x, _y, inAttack, body, move_stop, _rotation, attack_end, targetObj, target_building, role_side, area_attack;
function Role5 () {
super();
role_name = "Canon";
role_type = 5;
_life = 400;
life = _life;
damage = 80;
V = 1;
checkAttack_time = 500;
}
function attack_start() {
if ((attackTarget instanceof MovieClip) != true) {
return(undefined);
}
dir_angle = ExtMath.angleOfLine(_x, _y, attackTarget._x, attackTarget._y);
var _local2 = ExtMath.distance(_x, _y, attackTarget._x, attackTarget._y);
if (_local2 > 600) {
return(undefined);
}
if (inAttack && (body.mc._currentframe > 1)) {
return(undefined);
}
inAttack = true;
move_stop();
body.gotoAndStop("attack");
_rotation = dir_angle;
}
function attack_obj() {
attack_start();
}
function attack_end_check() {
inAttack = false;
if ((attackTarget instanceof MovieClip) != true) {
attack_end();
return(undefined);
}
var _local3 = ExtMath.distance(_x, _y, attackTarget._x, attackTarget._y);
if (((_local3 > 600) || (_local3 == 0)) || (_local3 == undefined)) {
attack_end();
return(undefined);
}
if (target_check() == false) {
attack_end();
} else if (_root.inGameOver) {
move_stop();
} else if (_root.inGameWin) {
move_stop();
}
}
function bomb_start() {
var _local6 = _root.stage_mc.getNextHighestDepth();
var _local4 = _root.stage_mc.attachMovie("bomb", "bomb_" + _local6, _local6);
var _local5 = ExtMath.angleOfLine(_x, _y, attackTarget._x, attackTarget._y);
var _local3 = ExtMath.distance(_x, _y, attackTarget._x, attackTarget._y);
_local3 = _local3 + (int(Math.random() * 150) - 75);
if (_local3 < 150) {
_local3 = 150;
}
_local4._x = _x + (_local3 * ExtMath.cosD(_local5));
_local4._y = _y + (_local3 * ExtMath.sinD(_local5));
_local4.role = this;
}
function hitCheck(obj) {
for (var _local5 in targetObj) {
var _local3 = targetObj[_local5];
var _local2 = new Object();
_local2.x = _local3._x;
_local2.y = _local3._y;
_local3._parent.localToGlobal(_local2);
if (obj.hitTest(_local2.x, _local2.y, true)) {
_local3.hited(damage, this);
return(true);
}
}
if (obj.hitTest(target_building.shape_mc)) {
target_building.hited(damage, this);
}
}
function target_check() {
if (_root.flag_pause) {
return(undefined);
}
if (attackTarget.isObj) {
if (((target_building.type == "role") && (role_side == "role")) || ((target_building.type == "enemy") && (role_side == "enemy"))) {
return(undefined);
}
}
area_attack.gotoAndPlay(2);
var _local4 = _root.toGlobal(attackTarget, attackTarget._parent);
if (area_attack.hitTest(_local4.x, _local4.y, true) && (attackTarget instanceof MovieClip)) {
trace("11111");
attack_start();
return(true);
}
if (area_attack.hitTest(target_building)) {
trace("33333\uFF1A" + target_building);
attack_obj();
return(true);
}
if (area_attack.hitTest(targetObj)) {
for (var _local5 in targetObj) {
var _local3 = targetObj[_local5];
if (_local3.inObj) {
continue;
}
_local4 = new Object();
_local4.x = _local3._x;
_local4.y = _local3._y;
_local3._parent.localToGlobal(_local4);
if (area_attack.hitTest(_local4.x, _local4.y, true)) {
trace("222222===========");
attackTarget = _local3;
attack_start();
return(true);
}
}
}
return(false);
}
function getIn() {
var _local2 = -10;
target_building.getIn(role_type, this, _local2);
}
}
Symbol 1201 MovieClip [__Packages.Role5_2] Frame 0
class Role5_2 extends Role5
{
var inObj, _rotation, targetObj, onwerObj, opp_base, building_self, building_opp, _x, _y, _parent, checkView_timer, onEnterFrame, startX, startY, targetX, attackTarget, targetY, inDead, checkBattle, role_type, shape, swapDepths, removeMovieClip;
function Role5_2 () {
super();
inObj = true;
initPos();
}
function initPos(x, y, _id, t_x, t_y) {
_rotation = -90;
targetObj = _root.enemy_loader;
onwerObj = _root.role_loader;
opp_base = _root.stage_mc.base_enemy;
building_self = _root.roleBuilding_mc;
building_opp = _root.enemyBuilding_mc;
}
function onMove(obj) {
}
function move_toPos(t_x, t_y) {
var _local2 = ExtMath.angleOfLine(_x, _y, _parent._xmouse, _parent._ymouse);
_rotation = _local2;
}
function moveToPos(p, x, y, g) {
var _local2 = ExtMath.angleOfLine(_x, _y, _parent._xmouse, _parent._ymouse);
_rotation = _local2;
}
function moveToPos2(p, g) {
var _local2 = ExtMath.angleOfLine(_x, _y, _parent._xmouse, _parent._ymouse);
_rotation = _local2;
}
function move_toTarget() {
trace("move_toTarget: " + move_toTarget);
clearInterval(checkView_timer);
onEnterFrame = function () {
if ((this.attackTarget instanceof MovieClip) != true) {
trace("\u76EE\u6807\u6B7B\u4EA1");
this.target_lost();
return(undefined);
}
this.move_follow();
};
}
function move_follow() {
startX = _x;
startY = _y;
targetX = attackTarget._x;
targetY = attackTarget._y;
var _local2 = ExtMath.angleOfLine(startX, startY, targetX, targetY);
_rotation = _local2;
}
function die() {
if (inDead) {
return(undefined);
}
inDead = true;
checkBattle();
var _local4 = _root.body_loader.getNextHighestDepth();
var _local3 = _root.body_loader.attachMovie("body_" + role_type, "body_" + _local4, _local4);
_local3._x = _x;
_local3._y = _y;
_local3._rotation = int(Math.random() * 180);
shape.removeMovieClip();
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
function die2() {
if (inDead) {
return(undefined);
}
inDead = true;
checkBattle();
shape.removeMovieClip();
swapDepths(_parent.getNextHighestDepth());
removeMovieClip();
}
}
Symbol 1202 MovieClip [__Packages.Role6_1] Frame 0
class Role6_1 extends Role1
{
var role_name, role_type, _life, life, damage, V, checkAttack_time, area_view, onwerObj;
function Role6_1 () {
super();
role_name = "General";
role_type = 6;
_life = 1500;
life = _life;
damage = 30;
V = 4;
checkAttack_time = 500;
}
function move_toTarget() {
check_powerUP();
super.move_toTarget();
}
function check_powerUP() {
if (_root.flag_pause) {
return(undefined);
}
var _local5 = false;
area_view.gotoAndPlay(2);
if (area_view.hitTest(onwerObj)) {
for (var _local6 in onwerObj) {
var _local3 = onwerObj[_local6];
if (_local3 == this) {
continue;
}
var _local4 = new Object();
_local4.x = _local3._x;
_local4.y = _local3._y;
_local3._parent.localToGlobal(_local4);
if (area_view.hitTest(_local4.x, _local4.y, true)) {
_local3.powerUP(1.35);
_local5 = true;
} else {
_local3.powerDown();
}
}
}
}
function check_powerDown() {
area_view.gotoAndPlay(2);
if (area_view.hitTest(onwerObj)) {
for (var _local4 in onwerObj) {
var _local2 = onwerObj[_local4];
if (_local2 == this) {
continue;
}
var _local3 = new Object();
_local3.x = _local2._x;
_local3.y = _local2._y;
_local2._parent.localToGlobal(_local3);
if (area_view.hitTest(_local3.x, _local3.y, true)) {
_local2.powerDown();
}
}
}
}
function die() {
check_powerDown();
super.die();
}
function checkBattle() {
_root.checkBattle_general(role_type);
}
}
Symbol 1203 MovieClip [__Packages.Role6_2] Frame 0
class Role6_2 extends Role4
{
var role_name, role_type, _life, life, damage, V, checkAttack_time, area_view, onwerObj;
function Role6_2 () {
super();
role_name = "General";
role_type = 6;
_life = 2000;
life = _life;
damage = 45;
V = 5;
checkAttack_time = 500;
}
function checkBattle() {
_root.checkBattle_general(role_type);
}
function move_toTarget() {
check_powerUP();
super.move_toTarget();
}
function check_powerUP() {
if (_root.flag_pause) {
return(undefined);
}
var _local5 = false;
area_view.gotoAndPlay(2);
if (area_view.hitTest(onwerObj)) {
for (var _local6 in onwerObj) {
var _local3 = onwerObj[_local6];
if (_local3 == this) {
continue;
}
var _local4 = new Object();
_local4.x = _local3._x;
_local4.y = _local3._y;
_local3._parent.localToGlobal(_local4);
if (area_view.hitTest(_local4.x, _local4.y, true)) {
_local3.powerUP(1.5);
_local5 = true;
} else {
_local3.powerDown();
}
}
}
}
function check_powerDown() {
area_view.gotoAndPlay(2);
if (area_view.hitTest(onwerObj)) {
for (var _local4 in onwerObj) {
var _local2 = onwerObj[_local4];
if (_local2 == this) {
continue;
}
var _local3 = new Object();
_local3.x = _local2._x;
_local3.y = _local2._y;
_local2._parent.localToGlobal(_local3);
if (area_view.hitTest(_local3.x, _local3.y, true)) {
_local2.powerDown();
}
}
}
}
function die() {
check_powerDown();
super.die();
}
}
Symbol 1204 MovieClip [__Packages.Role6_3] Frame 0
class Role6_3 extends Role2
{
var role_name, role_type, _life, life, damage, V, checkAttack_time, area_view, onwerObj;
function Role6_3 () {
super();
role_name = "General";
role_type = 6;
_life = 3000;
life = _life;
damage = 30;
V = 5;
checkAttack_time = 500;
}
function checkBattle() {
_root.checkBattle_general(role_type);
}
function move_toTarget() {
check_powerUP();
super.move_toTarget();
}
function check_powerUP() {
if (_root.flag_pause) {
return(undefined);
}
var _local5 = false;
area_view.gotoAndPlay(2);
if (area_view.hitTest(onwerObj)) {
for (var _local6 in onwerObj) {
var _local3 = onwerObj[_local6];
if (_local3 == this) {
continue;
}
var _local4 = new Object();
_local4.x = _local3._x;
_local4.y = _local3._y;
_local3._parent.localToGlobal(_local4);
if (area_view.hitTest(_local4.x, _local4.y, true)) {
_local3.powerUP(1.65);
_local5 = true;
} else {
_local3.powerDown();
}
}
}
}
function check_powerDown() {
area_view.gotoAndPlay(2);
if (area_view.hitTest(onwerObj)) {
for (var _local4 in onwerObj) {
var _local2 = onwerObj[_local4];
if (_local2 == this) {
continue;
}
var _local3 = new Object();
_local3.x = _local2._x;
_local3.y = _local2._y;
_local2._parent.localToGlobal(_local3);
if (area_view.hitTest(_local3.x, _local3.y, true)) {
_local2.powerDown();
}
}
}
}
function die() {
check_powerDown();
super.die();
}
}
Symbol 1205 MovieClip [__Packages.Obj_castle] Frame 0
class Obj_castle extends Obj
{
var _life, life, type, gotoAndStop, select, showLife, hideLife, inDead, checkStatus, _parent, body;
function Obj_castle () {
super();
_life = _root.castle_life_total;
life = _life;
}
function onPress() {
if (_root.flag_pause) {
return(undefined);
}
if (type == "enemy") {
gotoAndStop("s1");
_root.mouse_control_mc.setTarget(this);
}
select();
}
function onRollOver() {
if (_root.flag_pause) {
return(undefined);
}
if (type == "role") {
var _local3 = {lv:_root.castle_level, hp:life, hp_max:_life};
_root.status_castleInf(_local3);
}
gotoAndStop("s2");
showLife();
}
function onRollOut() {
if (_root.flag_pause) {
return(undefined);
}
gotoAndStop("s1");
_root.status_status();
hideLife();
}
function hited(d, role) {
if (inDead) {
return(undefined);
}
life = life - d;
checkStatus();
showLife();
if (life <= 0) {
die();
}
if ((_parent.alert == undefined) && (type != "enemy")) {
_parent.alert = true;
_root.status_showMsg(_root.msgObj.castleAttacked);
}
}
function die() {
if (inDead) {
return(undefined);
}
inDead = true;
body.gotoAndStop("end");
_root.checkBattle_castle(type);
}
}
Symbol 1206 MovieClip [__Packages.Enemy_control] Frame 0
class Enemy_control extends MovieClip
{
var enemy_id, enemy_queue_ID, add_time, queue_max, enemy_queue, _x, _y, add_timer, attack_timer, attack_time;
function Enemy_control () {
super();
enemy_id = 0;
enemy_queue_ID = 0;
add_time = 1000;
queue_max = 5;
}
function enemy_add() {
if (_root.flag_pause) {
return(undefined);
}
var _local4 = enemy_queue[enemy_queue_ID][enemy_id];
var _local6 = getPath(_local4);
var _local5 = _root.enemy_loader.getNextHighestDepth();
var _local3 = _root.enemy_loader.attachMovie("enemy" + _local4, "enemy_" + _local5, _local5);
_local3._x = _x;
_local3._y = _y;
_local3.init(enemy_id, _local6);
_local3.initPos();
_local3.move_start();
enemy_id++;
if (enemy_id >= enemy_queue[enemy_queue_ID].length) {
clearInterval(add_timer);
enemy_id = 0;
enemy_queue_ID++;
if (enemy_queue_ID == enemy_queue.length) {
clearInterval(attack_timer);
addOver = true;
}
}
}
function attack_start() {
enemy_id = 0;
clearInterval(add_timer);
add_timer = setInterval(this, "enemy_add", add_time);
}
function control_start() {
clearInterval(attack_timer);
attack_timer = setInterval(this, "attack_start", attack_time);
}
function getPath() {
}
function enemy_activate() {
}
function enemy_move(e_q) {
enemy_queue = e_q;
for (var _local3 in enemy_queue) {
var _local2 = enemy_queue[_local3];
_local2.move_start();
}
}
var addOver = false;
}
Symbol 1207 MovieClip [__Packages.Obj_tower] Frame 0
class Obj_tower extends Obj
{
var _life, life, enemy_add, gotoAndStop, select, type, showLife, hideLife, _x, _y, body, role, enemy_dir, inDead, shape_mc, enemy_link;
function Obj_tower () {
super();
_life = 300;
life = _life;
if ((enemy_add != "") && (enemy_add != undefined)) {
getIn_enemy();
}
}
function onPress() {
if (_root.flag_pause) {
return(undefined);
}
gotoAndStop("s1");
_root.mouse_control_mc.setTarget(this);
select();
}
function onRollOver() {
if (_root.flag_pause) {
return(undefined);
}
if (type == "role") {
var _local3 = {hp:life, hp_max:_life};
_root.status_towerInf(_local3);
}
gotoAndStop("s2");
showLife();
}
function onRollOut() {
if (_root.flag_pause) {
return(undefined);
}
gotoAndStop("s1");
_root.status_status();
hideLife();
}
function init(px, py, t) {
_x = px;
_y = py;
type = t;
}
function checkStatus() {
if ((life / _life) >= 0.5) {
body.gotoAndStop("s1");
} else if ((life / _life) < 0.5) {
body.gotoAndStop("s2");
}
}
function getIn(type, _role, offsetY) {
if (_getIn) {
return(undefined);
}
_getIn = true;
var _local5 = _role._rotation;
_role.lifeBar_mc.removeMovieClip();
_role.shape.removeMovieClip();
_role.removeMovieClip();
var _local3 = _root.role_loader.getNextHighestDepth();
role = _root.role_loader.attachMovie(("role" + type) + "_2", "role_" + _local3, _local3);
role._x = _x;
role._y = _y + offsetY;
role.obj_in = this;
role.inObj = true;
role._rotation = _local5;
}
function getIn_enemy() {
if (_getIn) {
return(undefined);
}
_getIn = true;
var _local3 = 0;
if (enemy_add == "enemy5_2") {
_local3 = -10;
}
var _local4 = _root.enemy_loader.getNextHighestDepth();
role = _root.enemy_loader.attachMovie(enemy_add, "enemy_" + _local4, _local4);
role._x = _x;
role._y = _y + _local3;
role.start_dir = enemy_dir;
role.initPos();
role.obj_in = this;
role.inObj = true;
_root.tower_enemy_num++;
}
function die() {
if (inDead) {
return(undefined);
}
inDead = true;
body.gotoAndPlay("end");
shape_mc.removeMovieClip();
role.die2();
if ((type != "role") && (enemy_link != "")) {
var _local3 = _root.enemy_loader[enemy_link];
_local3.die2();
}
if (type == "role") {
_root.tower_num--;
_root.status_self_num();
} else {
_root.gold_total = _root.gold_total + 200;
_root.status_gold(_root.gold_total);
}
}
var _getIn = false;
}
Symbol 1208 MovieClip [__Packages.Obj_farmhouse] Frame 0
class Obj_farmhouse extends Obj
{
var _life, life, type, shape, gotoAndStop, body, inDead, shape_mc;
function Obj_farmhouse () {
super();
_life = 300;
life = _life;
type = "enemy";
shape = "shape_farmhouse";
}
function onPress() {
if (_root.flag_pause) {
return(undefined);
}
gotoAndStop("s1");
_root.mouse_control_mc.setTarget(this);
}
function onRollOver() {
if (_root.flag_pause) {
return(undefined);
}
var _local3 = {hp:life, hp_max:_life};
_root.status_farmhouseInf(_local3);
gotoAndStop("s2");
}
function onRollOut() {
if (_root.flag_pause) {
return(undefined);
}
gotoAndStop("s1");
_root.status_status();
}
function checkStatus() {
if ((life / _life) < 0.5) {
body.gotoAndStop("s2");
}
}
function die() {
if (inDead) {
return(undefined);
}
inDead = true;
body.gotoAndPlay("end");
shape_mc.removeMovieClip();
_root.checkBattle_farmhouse(1000);
}
}
Symbol 1209 MovieClip [__Packages.Mouse_control] Frame 0
class Mouse_control extends MovieClip
{
var clickObj, moveObj, deSelectObj, setTargetObj, pauseObj, speedObj, mouseObj, selectArea, createEmptyMovieClip, depth_selectArea, clickIco, attachMovie, getNextHighestDepth, posStart_x, _xmouse, posStart_y, _ymouse, posPrev_x, posPrev_y, dot_path, onMouseMove, clickMap, now_select, dispatchEvent, groupArea;
function Mouse_control () {
super();
clickObj = {target:this, type:"onClick"};
moveObj = {target:this, type:"onMove"};
deSelectObj = {target:this, type:"onDeSelect"};
setTargetObj = {target:this, type:"onSetTarget"};
pauseObj = {target:this, type:"onPause"};
speedObj = {target:this, type:"onSetSpeed"};
mouseObj = {lastClickTime:0, clickTime:200};
mx.events.EventDispatcher.initialize(this);
_root.selectArray = [];
selectArea = createEmptyMovieClip("selectArea", depth_selectArea);
clickIco = attachMovie("clickIco", "clickIco", getNextHighestDepth());
var onwer = this;
_root.stage_mc.map.onPress = function () {
onwer.clickMap = true;
};
}
function onPress() {
if (_root.flag_pause) {
return(undefined);
}
_root.repair_end();
}
function onMouseDown() {
if (_root.flag_pause) {
return(undefined);
}
posStart_x = _xmouse;
posStart_y = _ymouse;
posPrev_x = posStart_x;
posPrev_y = posStart_y;
dot_path = [];
var _local4 = getNextHighestDepth();
var _local3 = attachMovie("pathDot", "pathDot" + _local4, _local4);
_local3._visible = false;
_local3._x = posStart_x;
_local3._y = posStart_y;
dot_path.push(_local3);
onMouseMove = draw_selectArea;
if (Key.isDown(_root.key_ctrl)) {
onMouseMove = draw_path;
}
}
function onMouseUp() {
if (_root.flag_pause) {
return(undefined);
}
onMouseMove = null;
checkSelect_area();
if (clickMap) {
move_check();
clickMap = false;
} else if (Key.isDown(_root.key_ctrl)) {
move_check();
clickMap = false;
}
selectArea.clear();
for (var _local3 in dot_path) {
dot_path[_local3]._visible = false;
}
}
function doubleClick() {
}
function move_char() {
if (Key.isDown(_root.key_ctrl)) {
return(undefined);
}
var _local4 = _xmouse;
var _local3 = _ymouse;
now_select._x = _local4;
now_select._y = _local3;
}
function draw_selectArea() {
if (_root.flag_pause) {
selectArea.clear();
return(undefined);
}
_root.obj_select.select_end();
if (Key.isDown(_root.key_ctrl)) {
return(undefined);
}
selectArea.clear();
selectArea.lineStyle(1, 65280, 100);
var _local4 = _xmouse;
var _local3 = _ymouse;
selectArea.moveTo(posStart_x, posStart_y);
selectArea.lineTo(_local4, posStart_y);
selectArea.lineTo(_local4, _local3);
selectArea.lineTo(posStart_x, _local3);
selectArea.lineTo(posStart_x, posStart_y);
updateAfterEvent();
}
function draw_path() {
_root.obj_select.select_end();
if (check_inSelect() == false) {
return(undefined);
}
var _local11 = _xmouse;
var _local12 = _ymouse;
var _local13 = ExtMath.distance(posPrev_x, posPrev_y, _local11, _local12);
var _local9 = ExtMath.angleOfLine(posPrev_x, posPrev_y, _local11, _local12);
var _local8 = 50;
var _local10 = int(_local13 / _local8);
if (_local10 == 0) {
return(undefined);
}
if (_local10 > 0) {
var _local7 = 0;
while (_local7 < _local10) {
var _local6 = getNextHighestDepth();
var _local3 = attachMovie("pathDot", "pathDot" + _local6, _local6);
_local3._visible = true;
var _local5 = posPrev_x + (_local8 * ExtMath.cosD(_local9));
var _local4 = posPrev_y + (_local8 * ExtMath.sinD(_local9));
_local3._x = _local5;
_local3._y = _local4;
posPrev_x = _local5;
posPrev_y = _local4;
dot_path.push(_local3);
_local7++;
}
}
updateAfterEvent();
}
function checkSelect2(role) {
_root.obj_select.select_end();
if (Key.isDown(_root.key_ctrl)) {
role.select();
_root.selectArray.push(role);
if (_root.selectArray.length == 1) {
now_select = _root.selectArray[0];
}
} else {
if (role.inSelect) {
role.select_end();
now_select = null;
var _local3 = 0;
while (_local3 < _root.selectArray.length) {
if (_root.selectArray[_local3] == role) {
_root.selectArray.splice(_local3, 1);
break;
}
_local3++;
}
if (_root.selectArray.length == 1) {
now_select = _root.selectArray[0];
}
return(undefined);
}
select_end();
now_select = null;
_root.selectArray = [];
now_select = role;
role.select();
_root.selectArray.push(role);
}
}
function checkSelect_area() {
if ((selectArea._width < 20) && (selectArea._height < 20)) {
return(false);
}
clickMap = false;
_root.selectArray = [];
select_end();
for (var _local6 in _root.role_loader) {
var _local3 = _root.role_loader[_local6];
if (_local3.shape.hitTest(selectArea)) {
_local3.select();
_root.selectArray.push(_local3);
}
}
var _local7 = _root.selectArray.length;
if (_local7 == 1) {
now_select = _root.selectArray[0];
}
var _local5 = 0;
var _local4 = 0;
for (var _local6 in _root.selectArray) {
var _local3 = _root.selectArray[_local6];
_local5 = _local5 + _local3._x;
_local4 = _local4 + _local3._y;
}
_root.queue_cx = int(_local5 / _local7);
_root.queue_cy = int(_local4 / _local7);
for (var _local6 in _root.selectArray) {
var _local3 = _root.selectArray[_local6];
_local3.dot_dx = _local3._x - _root.queue_cx;
_local3.dot_dy = _local3._y - _root.queue_cy;
}
}
function select_end() {
trace("select_end: " + select_end);
dispatchEvent(clickObj);
}
function selectAll() {
for (var _local4 in _root.role_loader) {
var _local3 = _root.role_loader[_local4];
_local3.select();
_root.selectArray.push(_local3);
}
groupArea = selectArea.getBounds(this);
}
function deSelectAll() {
trace("deSelectAll: " + deSelectAll);
now_select = null;
_root.selectArray = [];
trace("now_select: " + now_select);
for (var _local4 in _root.role_loader) {
var _local3 = _root.role_loader[_local4];
if (_local3.inSelect) {
_local3.select_end();
}
}
}
function check_inSelect() {
for (var _local3 in _root.role_loader) {
var _local2 = _root.role_loader[_local3];
if (_local2.inSelect) {
return(true);
}
}
return(false);
}
function select_soldier(type) {
trace("select_soldier: " + type);
clickMap = false;
_root.selectArray = [];
select_end();
for (var _local7 in _root.role_loader) {
var _local3 = _root.role_loader[_local7];
if (_local3.shape.hitTest(_root.scroll_control) && (_local3.role_type == type)) {
trace("role: " + _local3);
_local3.select();
_root.selectArray.push(_local3);
}
}
var _local8 = _root.selectArray.length;
if (_local8 == 1) {
now_select = _root.selectArray[0];
}
var _local5 = 0;
var _local4 = 0;
for (var _local7 in _root.selectArray) {
var _local3 = _root.selectArray[_local7];
_local5 = _local5 + _local3._x;
_local4 = _local4 + _local3._y;
}
_root.queue_cx = int(_local5 / _local8);
_root.queue_cy = int(_local4 / _local8);
for (var _local7 in _root.selectArray) {
var _local3 = _root.selectArray[_local7];
_local3.dot_dx = _local3._x - _root.queue_cx;
_local3.dot_dy = _local3._y - _root.queue_cy;
}
}
function move_check() {
var _local12 = _xmouse;
var _local11 = _ymouse;
if (_root.role_loader.hitTest(_local12, _local11, true)) {
return(undefined);
}
if (_root._ymouse > _root.egdeY_max) {
return(undefined);
}
_root.obj_select.select_end();
for (var _local13 in _root.selectArray) {
var _local6 = _root.selectArray[_local13];
if ((_local6 instanceof MovieClip) != true) {
_root.selectArray.splice(_local13, 1);
continue;
}
}
var _local14 = _root.selectArray.length;
if (_local14 < 1) {
return(undefined);
}
clickIco.gotoAndPlay(1);
clickIco._x = _local12;
clickIco._y = _local11;
trace("\u5355\u4E2A\u79FB\u52A8: " + now_select);
if (_local14 == 1) {
_root.groupMove = false;
now_select.moveToPos(dot_path, 0, 0, _root.groupMove);
return(undefined);
}
_root.groupMove = true;
if (_root.moveType == 2) {
trace("\u65B9\u5F0F2\uFF1A\u4FDD\u6301\u961F\u5F62");
for (var _local13 in _root.selectArray) {
var _local6 = _root.selectArray[_local13];
_local6.moveToPos2(dot_path, _root.groupMove);
}
} else if (_root.moveType == 1) {
trace("\u65B9\u5F0F1\uFF1A\u666E\u901A");
var _local7 = new Array();
for (var _local13 in _root.selectArray) {
var _local6 = _root.selectArray[_local13];
_local7.push({role_id:_local6.id, role:_local6});
}
_local7.sortOn("role_x", Array.DESCENDING | Array.NUMERIC);
var _local4 = 0;
var _local5 = 0;
var _local8 = 3;
var _local9 = int((_local8 - 1) / 2);
for (var _local13 in _local7) {
var _local6 = _local7[_local13].role;
var _local3 = ExtMath.angleOfLine(_root.queue_cx, _root.queue_cy, _local12, _local11);
_local3 = ExtMath.fixAngle(_local3);
if (((_local3 > 45) && (_local3 < 135)) || ((_local3 > 225) && (_local3 < 315))) {
_local6.moveToPos(dot_path, _local4 - _local9, _local5, _root.groupMove);
_local4++;
if (_local4 == _local8) {
_local4 = 0;
_local5++;
}
} else {
_local6.moveToPos(dot_path, _local4, _local5 - _local9, _root.groupMove);
_local5++;
if (_local5 == _local8) {
_local5 = 0;
_local4++;
}
}
}
}
}
function setTarget(t) {
setTargetObj.__target = t;
dispatchEvent(setTargetObj);
}
function setSpeed(s_r) {
speedObj.speed_rate = s_r;
dispatchEvent(speedObj);
}
function pauseStart() {
dispatchEvent(pauseObj);
}
function moveToPos() {
move_check();
}
var inDrag = false;
var clickRole = false;
}
Symbol 1210 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 8 MovieClip Frame 26
stop();
Symbol 17 MovieClip [body_1] Frame 90
this.removeMovieClip();
Symbol 18 MovieClip [body_2] Frame 90
this.removeMovieClip();
Symbol 19 MovieClip [body_3] Frame 90
this.removeMovieClip();
Symbol 21 MovieClip [body_4] Frame 90
this.removeMovieClip();
Symbol 37 MovieClip [bomb] Frame 1
role.hitCheck(this);
_root.soundStart(_root.boom_snd);
Symbol 37 MovieClip [bomb] Frame 19
stop();
this.removeMovieClip();
Symbol 38 MovieClip [body_5] Frame 90
this.removeMovieClip();
Symbol 42 MovieClip [body_6] Frame 90
this.removeMovieClip();
Symbol 48 MovieClip [body_21] Frame 90
this.removeMovieClip();
Symbol 49 MovieClip [body_22] Frame 90
this.removeMovieClip();
Symbol 50 MovieClip [body_23] Frame 90
this.removeMovieClip();
Symbol 51 MovieClip [body_24] Frame 90
this.removeMovieClip();
Symbol 52 MovieClip [body_25] Frame 90
this.removeMovieClip();
Symbol 53 MovieClip [body_26] Frame 90
this.removeMovieClip();
Symbol 55 MovieClip [area_view1] Frame 1
stop();
this._visible = false;
Symbol 55 MovieClip [area_view1] Frame 2
Symbol 57 MovieClip [area_view2] Frame 1
stop();
this._visible = false;
Symbol 57 MovieClip [area_view2] Frame 2
Symbol 58 MovieClip [area_view3] Frame 1
stop();
this._visible = false;
Symbol 58 MovieClip [area_view3] Frame 2
Symbol 63 MovieClip [blood] Frame 9
this.removeMovieClip();
Symbol 66 MovieClip Frame 1
this._visible = false;
stop();
Symbol 66 MovieClip Frame 2
stop();
this._visible = true;
Symbol 77 MovieClip Frame 1
this._visible = false;
_parent._parent._parent.hitCheck(this);
Symbol 79 MovieClip Frame 3
_root.soundStart(_root.sword_snd);
Symbol 79 MovieClip Frame 10
_parent._parent.attack_end_check();
Symbol 81 MovieClip Frame 5
_parent._parent.fire_start();
Symbol 81 MovieClip Frame 24
_parent._parent.attack_end_check2();
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 6
stop();
Symbol 82 MovieClip Frame 11
stop();
Symbol 82 MovieClip Frame 19
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
this._visible = false;
Symbol 96 MovieClip Frame 2
Symbol 97 MovieClip [enemy1] Frame 1
#initclip 59
Object.registerClass("enemy1", Enemy);
#endinitclip
Symbol 100 MovieClip Frame 2
_root.soundStart(_root.bow_snd);
Symbol 100 MovieClip Frame 13
_parent._parent.attack_end_check();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 6
stop();
Symbol 101 MovieClip Frame 11
stop();
Symbol 101 MovieClip Frame 19
stop();
Symbol 102 MovieClip Frame 1
stop();
this._visible = false;
Symbol 102 MovieClip Frame 2
Symbol 103 MovieClip [enemy2] Frame 1
#initclip 30
Object.registerClass("enemy2", Enemy2);
#endinitclip
Symbol 104 MovieClip [enemy2_2] Frame 1
#initclip 31
Object.registerClass("enemy2_2", Enemy2_2);
#endinitclip
Symbol 109 MovieClip Frame 3
_root.soundStart(_root.pike_snd);
Symbol 109 MovieClip Frame 14
_parent._parent.attack_end_check();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 6
stop();
Symbol 110 MovieClip Frame 11
stop();
Symbol 110 MovieClip Frame 19
stop();
Symbol 111 MovieClip Frame 1
stop();
this._visible = false;
Symbol 111 MovieClip Frame 2
Symbol 112 MovieClip [enemy3] Frame 1
#initclip 32
Object.registerClass("enemy3", Enemy3);
#endinitclip
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 6
stop();
Symbol 124 MovieClip Frame 11
stop();
Symbol 124 MovieClip Frame 19
stop();
Symbol 125 MovieClip Frame 1
stop();
this._visible = false;
Symbol 125 MovieClip Frame 2
Symbol 126 MovieClip [enemy4] Frame 1
#initclip 33
Object.registerClass("enemy4", Enemy4);
#endinitclip
Symbol 130 MovieClip Frame 3
_root.soundStart(_root.canon_snd);
Symbol 130 MovieClip Frame 13
_parent._parent.bomb_start();
Symbol 130 MovieClip Frame 68
_parent._parent.attack_end_check();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 6
stop();
Symbol 131 MovieClip Frame 11
stop();
Symbol 131 MovieClip Frame 19
stop();
Symbol 132 MovieClip Frame 1
stop();
this._visible = false;
Symbol 132 MovieClip Frame 2
Symbol 133 MovieClip [enemy5] Frame 1
#initclip 34
Object.registerClass("enemy5", Enemy5);
#endinitclip
Symbol 134 MovieClip [enemy5_2] Frame 1
#initclip 35
Object.registerClass("enemy5_2", Enemy5_2);
#endinitclip
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 6
stop();
Symbol 136 MovieClip Frame 11
stop();
Symbol 136 MovieClip Frame 17
stop();
Symbol 137 MovieClip [enemy6_1] Frame 1
#initclip 36
Object.registerClass("enemy6_1", Enemy6_1);
#endinitclip
Symbol 139 MovieClip [role_shape] Frame 1
this._visible = false;
Symbol 140 MovieClip [role_shape_cannon] Frame 1
this._visible = false;
Symbol 149 MovieClip Frame 2
_root.soundStart(_root.sword_snd);
Symbol 149 MovieClip Frame 10
_parent._parent.attack_end_check();
Symbol 150 MovieClip Frame 5
_parent._parent.fire_start();
Symbol 150 MovieClip Frame 30
_parent._parent.attack_end_check2();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 6
stop();
Symbol 151 MovieClip Frame 11
stop();
Symbol 151 MovieClip Frame 18
stop();
Symbol 152 MovieClip [role1] Frame 1
#initclip 37
Object.registerClass("role1", Role1);
#endinitclip
Symbol 154 MovieClip Frame 3
_root.soundStart(_root.bow_snd);
Symbol 154 MovieClip Frame 13
_parent._parent.attack_end_check();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 6
stop();
Symbol 155 MovieClip Frame 11
stop();
Symbol 155 MovieClip Frame 19
stop();
Symbol 156 MovieClip [role2] Frame 1
#initclip 38
Object.registerClass("role2", Role2);
#endinitclip
Symbol 157 MovieClip [role2_2] Frame 1
#initclip 39
Object.registerClass("role2_2", Role2_2);
#endinitclip
Symbol 161 MovieClip Frame 2
_root.soundStart(_root.pike_snd);
Symbol 161 MovieClip Frame 14
_parent._parent.attack_end_check();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 6
stop();
Symbol 162 MovieClip Frame 11
stop();
Symbol 162 MovieClip Frame 19
stop();
Symbol 163 MovieClip [role3] Frame 1
#initclip 40
Object.registerClass("role3", Role3);
#endinitclip
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 6
stop();
Symbol 172 MovieClip Frame 11
stop();
Symbol 172 MovieClip Frame 19
stop();
Symbol 173 MovieClip [role4] Frame 1
#initclip 41
Object.registerClass("role4", Role4);
#endinitclip
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 6
stop();
Symbol 174 MovieClip Frame 11
stop();
Symbol 174 MovieClip Frame 19
stop();
Symbol 175 MovieClip Frame 1
stop();
this._visible = false;
Symbol 175 MovieClip Frame 2
Symbol 176 MovieClip [role5] Frame 1
#initclip 42
Object.registerClass("role5", Role5);
#endinitclip
Symbol 177 MovieClip [role5_2] Frame 1
#initclip 43
Object.registerClass("role5_2", Role5_2);
#endinitclip
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 6
stop();
Symbol 184 MovieClip Frame 11
stop();
Symbol 184 MovieClip Frame 17
stop();
Symbol 185 MovieClip [role6_1] Frame 1
#initclip 44
Object.registerClass("role6_1", Role6_1);
#endinitclip
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 6
stop();
Symbol 187 MovieClip Frame 11
stop();
Symbol 187 MovieClip Frame 17
stop();
Symbol 188 MovieClip [role6_2] Frame 1
#initclip 45
Object.registerClass("role6_2", Role6_2);
#endinitclip
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 6
stop();
Symbol 190 MovieClip Frame 11
stop();
Symbol 190 MovieClip Frame 17
stop();
Symbol 191 MovieClip [role6_3] Frame 1
#initclip 46
Object.registerClass("role6_3", Role6_3);
#endinitclip
Symbol 193 MovieClip [arrow] Frame 1
stop();
Symbol 193 MovieClip [arrow] Frame 2
this.removeMovieClip();
Symbol 205 MovieClip Frame 1
this._visible = false;
Symbol 216 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
stop();
if (_parent._name == "base_enemy") {
gotoAndStop (2);
}
Symbol 231 MovieClip Frame 1
this._visible = false;
Symbol 235 MovieClip Frame 1
this._visible = false;
Symbol 236 MovieClip [castle] Frame 1
#initclip 47
Object.registerClass("castle", Obj_castle);
#endinitclip
stop();
shape = "shape_castle";
Symbol 238 MovieClip Frame 1
this._visible = false;
Symbol 241 MovieClip Frame 1
this._visible = false;
Symbol 244 MovieClip [enemy_control1] Frame 1
#initclip 48
Object.registerClass("enemy_control1", Enemy_control);
#endinitclip
function getPath(enemy_type) {
var _local1;
if (enemy_type == 1) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[0];
} else {
_local1 = dot_path[1];
}
} else if (enemy_type == 2) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[0];
} else {
_local1 = dot_path[1];
}
} else if (enemy_type == 3) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[0];
} else {
_local1 = dot_path[1];
}
} else if (enemy_type == 4) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[0];
} else {
_local1 = dot_path[1];
}
} else if (enemy_type == 5) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[0];
} else {
_local1 = dot_path[1];
}
} else {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[0];
} else {
_local1 = dot_path[1];
}
}
return(_local1);
}
stop();
this._visible = false;
var dot_path = new Array();
dot_path = _parent.dot_path;
attack_time = 10000;
var enemy_num = 24;
enemy_queue = new Array();
enemy_queue[0] = [2, 2, 1, 3, 3];
enemy_queue[1] = [1, 1, 1, 1, 1];
enemy_queue[2] = [3, 3, 3, 3, 3];
enemy_queue[3] = [1, 1, 2, 2, 2];
Symbol 246 MovieClip Frame 1
this._visible = false;
Symbol 248 MovieClip Frame 1
v_rate = 0.2;
Symbol 250 MovieClip Frame 1
v_rate = 0.2;
Symbol 252 MovieClip Frame 1
v_rate = 0.4;
Symbol 253 MovieClip Frame 1
v_rate = 0.4;
Symbol 255 MovieClip Frame 1
v_rate = 0;
Symbol 257 MovieClip Frame 1
v_rate = 0.2;
Symbol 258 MovieClip Frame 1
this._visible = false;
Instance of Symbol 97 MovieClip [enemy1] in Symbol 260 MovieClip [enemy_loader1_1] Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 260 MovieClip [enemy_loader1_1] Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 260 MovieClip [enemy_loader1_1] Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 260 MovieClip [enemy_loader1_1] Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 260 MovieClip [enemy_loader1_1] Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 260 MovieClip [enemy_loader1_1] Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 260 MovieClip [enemy_loader1_1] Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 260 MovieClip [enemy_loader1_1] Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 137 MovieClip [enemy6_1] in Symbol 260 MovieClip [enemy_loader1_1] Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 260 MovieClip [enemy_loader1_1] Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 260 MovieClip [enemy_loader1_1] Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Symbol 268 MovieClip Frame 1
this._visible = false;
Symbol 271 MovieClip Frame 1
this._visible = false;
Symbol 272 MovieClip [stage1] Frame 1
dot_path = new Array();
dot_path[0] = [a1, a2, a3, a4, a5, a6];
dot_path[1] = [a1, a2, a3, a3_1, a3_2, a3_3, a3_4];
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 272 MovieClip [stage1] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Instance of Symbol 236 MovieClip [castle] "base_enemy" in Symbol 272 MovieClip [stage1] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
shape = "shape_castle";
}
Symbol 281 MovieClip [enemy_control2] Frame 1
#initclip 49
Object.registerClass("enemy_control2", Enemy_control);
#endinitclip
function getPath(enemy_type) {
var _local1;
if (enemy_type == 1) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 2) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 3) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 4) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 5) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
}
return(_local1);
}
stop();
this._visible = false;
var dot_path = new Array();
dot_path = _parent.dot_path;
attack_time = 30000;
enemy_queue = new Array();
enemy_queue[0] = [1, 1, 1, 1, 1, 1, 1, 1];
enemy_queue[1] = [3, 3, 3, 3, 3, 3, 3, 3];
enemy_queue[2] = [2, 2, 2, 1, 1, 1, 2, 2];
enemy_queue[3] = [2, 2, 2, 4, 4, 4, 4, 4];
enemy_queue[4] = [3, 3, 2, 2, 2, 2, 2, 2];
enemy_queue[5] = [4, 4, 4, 2, 2, 2, 4, 4];
enemy_queue[6] = [4, 4, 4, 4, 4, 4, "6_1"];
Symbol 281 MovieClip [enemy_control2] Frame 14
stop();
control_start();
Symbol 282 MovieClip Frame 1
this._visible = false;
Symbol 284 MovieClip Frame 1
v_rate = 0.2;
Symbol 285 MovieClip Frame 1
this._visible = false;
Symbol 290 MovieClip [stage2] Frame 1
dot_path = new Array();
dot_path[0] = [a1, a2, a2_1, a2_3, a2_4];
dot_path[1] = [a1, a2, a2_1, a2_2, a4_1, a4_2, a4_3];
dot_path[2] = [a1, a2, a3, a3_1, a3_2, a3_3, a3_4, a2_4];
Instance of Symbol 236 MovieClip [castle] "base_enemy" in Symbol 290 MovieClip [stage2] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
shape = "shape_castle";
}
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 290 MovieClip [stage2] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Symbol 296 MovieClip Frame 1
this._visible = false;
Symbol 299 MovieClip Frame 1
this._visible = false;
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 137 MovieClip [enemy6_1] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 301 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Symbol 304 MovieClip [stage4] Frame 1
dot_path = new Array();
dot_path[0] = [a1, a2, a2_1, a2_3, a2_4];
dot_path[1] = [a1, a2, a2_1, a2_2, a4_1, a4_2, a4_3];
dot_path[2] = [a1, a2, a3, a3_1, a3_2, a3_3, a3_4, a2_4];
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 304 MovieClip [stage4] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Symbol 308 MovieClip [enemy_control5] Frame 1
#initclip 50
Object.registerClass("enemy_control5", Enemy_control);
#endinitclip
function getPath(enemy_type) {
var _local1;
if (enemy_type == 1) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 2) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 3) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 4) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 5) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
}
return(_local1);
}
stop();
this._visible = false;
var dot_path = new Array();
dot_path = _parent.dot_path;
attack_time = 30000;
enemy_queue = new Array();
enemy_queue[0] = [1, 1, 1, 3, 3];
enemy_queue[1] = [3, 3, 3, 2, 2];
enemy_queue[2] = [2, 2, 2, 1, 1];
enemy_queue[3] = [2, 2, 2, 4, 4];
enemy_queue[4] = [4, 4, 2, 2, 2];
enemy_queue[5] = [4, 4, 2, 2, 2, 2];
enemy_queue[6] = [4, 4, 2, 2, 5, 5];
enemy_queue[7] = [2, 2, 2, 1, 1];
enemy_queue[8] = [1, 1, 1, 2, 2, 4];
enemy_queue[9] = [5, 5, 5, 3, 3, 4];
enemy_queue[10] = [4, 4, 4, 4, 4, "6_1"];
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 25
_parent.swapDepths(_parent._parent.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 316 MovieClip [tower] Frame 1
#initclip 51
Object.registerClass("tower", Obj_tower);
#endinitclip
stop();
shape = "shape_tower";
Symbol 317 MovieClip Frame 1
this._visible = false;
Symbol 318 MovieClip Frame 1
this._visible = false;
Instance of Symbol 103 MovieClip [enemy2] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 320 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Symbol 323 MovieClip [stage5] Frame 1
dot_path = new Array();
dot_path[0] = [a1, a2, a3, a4, a2_4, a5_1, a5_2, a6, a7, a7_1, a7_2];
dot_path[1] = [a1, a2, a3, a4, a4_1, a4_2, a4_3, a4_4, a6, a7, a7_1, a7_2];
dot_path[2] = [a1, a2, a3, a4, a5_1, a9_1, a9_2, a9_3, a9_4, a9_5, a7_2];
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 323 MovieClip [stage5] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Instance of Symbol 236 MovieClip [castle] "base_enemy" in Symbol 323 MovieClip [stage5] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
shape = "shape_castle";
}
Instance of Symbol 316 MovieClip [tower] "dd4" in Symbol 323 MovieClip [stage5] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] "dd3" in Symbol 323 MovieClip [stage5] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] "dd1" in Symbol 323 MovieClip [stage5] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] "dd2" in Symbol 323 MovieClip [stage5] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 25
_parent.swapDepths(_parent._parent.getNextHighestDepth());
_parent.removeMovieClip();
Symbol 331 MovieClip [farmhouse] Frame 1
#initclip 52
Object.registerClass("farmhouse", Obj_farmhouse);
#endinitclip
stop();
shape = "shape_farmhouse";
Symbol 332 MovieClip Frame 1
this._visible = false;
Symbol 334 MovieClip Frame 1
v_rate = 0;
Symbol 335 MovieClip Frame 1
this._visible = false;
Instance of Symbol 133 MovieClip [enemy5] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 2;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 2;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 2;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 2;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 337 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Symbol 340 MovieClip [stage6] Frame 1
dot_path2 = new Array();
dot_path2[0] = [a1, a2, a3, a4, a5, a6, a7, a8];
dot_path2[1] = [a21, a22, a23, a24];
dot_path2[2] = [a7, a8, a2, a3, a4, a5, a6];
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 340 MovieClip [stage6] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 340 MovieClip [stage6] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 340 MovieClip [stage6] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 340 MovieClip [stage6] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 340 MovieClip [stage6] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 340 MovieClip [stage6] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Symbol 342 MovieClip [enemy_control11] Frame 1
#initclip 53
Object.registerClass("enemy_control11", Enemy_control);
#endinitclip
function getPath(enemy_type) {
var _local1;
if (enemy_type == 1) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 2) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 3) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 4) {
var _local3 = Math.random();
_local1 = dot_path[0];
} else if (enemy_type == 5) {
var _local3 = Math.random();
_local1 = dot_path[0];
} else {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
}
return(_local1);
}
stop();
this._visible = false;
var dot_path = new Array();
dot_path = _parent.dot_path;
attack_time = 30000;
enemy_queue = new Array();
enemy_queue[0] = [4, 4, 4, 4, 4, 4, 4, "6_1"];
enemy_queue[1] = [2, 2, 2, 2, 2, 2, 2, 2];
enemy_queue[2] = [5, 5, 5, 5, 5, 1, 1];
enemy_queue[3] = [2, 2, 2, 2, 3, 3, 3, 3];
enemy_queue[4] = [4, 4, 4, 4, 2, 2, 2, 2];
enemy_queue[5] = [4, 4, 4, 5, 5, "6_1"];
enemy_queue[6] = [4, 4, 2, 2, 2];
enemy_queue[7] = [3, 3, 2, 2, 2];
enemy_queue[8] = [4, 4, 2, 2, 1];
enemy_queue[9] = [4, 4, 2, 2, 3];
enemy_queue[10] = [4, 4, 2, 2, 5, "6_1"];
Symbol 343 MovieClip Frame 1
this._visible = false;
Symbol 344 MovieClip Frame 1
this._visible = false;
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 346 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Symbol 349 MovieClip [stage10] Frame 1
dot_path = new Array();
dot_path[0] = [a1, a2, a3, a4, a5, a6, a7, a8, a9, a91];
dot_path[1] = [a1, a2, a3, a4, a5, a6, a7, a71, a72, a73, a91];
dot_path[2] = [a1, a2, a21, a22, a23, a24, a25, a26];
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 236 MovieClip [castle] "base_enemy" in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
shape = "shape_castle";
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "left";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 349 MovieClip [stage10] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Symbol 351 MovieClip [pathDot] Frame 1
Symbol 353 MovieClip [shape_tower] Frame 1
this._visible = false;
v_rate = 0;
Symbol 355 MovieClip [shape_castle] Frame 1
this._visible = false;
v_rate = 0;
Symbol 356 MovieClip [shape_farmhouse] Frame 1
this._visible = false;
v_rate = 0;
Symbol 357 MovieClip [tower_ico] Frame 1
function onMouseDown() {
_root.set_tower();
}
Symbol 359 MovieClip [viewDot] Frame 1
this.swapDepths(10000);
Symbol 369 Button
on (release) {
type = "continue";
play();
}
Symbol 373 Button
on (release) {
type = "mainMenu";
play();
}
Symbol 377 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 381 Button
on (release) {
getURL ("http://www.ifungames.com", _blank);
}
Symbol 385 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 390 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 398 Button
on (release) {
gotoAndStop (1);
}
Symbol 407 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 412 Button
on (release) {
_root.viewHighscore();
}
Symbol 413 MovieClip Frame 1
stop();
if (_root.gold_score == 0) {
this._visible = false;
}
gold_txt.text = _root.gold_score;
Symbol 413 MovieClip Frame 2
gold_txt.text = _root.gold_score;
Symbol 413 MovieClip Frame 3
function sendData() {
send_var.game = _root.game_name;
send_var.score = _root.gold_score;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = _root.gold_score;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 395 MovieClip in Symbol 413 MovieClip Frame 3
on (release) {
}
Symbol 414 MovieClip [lose] Frame 1
stopAllSounds();
Symbol 414 MovieClip [lose] Frame 35
stop();
Symbol 414 MovieClip [lose] Frame 49
if (type == "continue") {
_root.game_continue();
} else if (type == "mainMenu") {
_root.game_mainMenu();
}
this.removeMovieClip();
Symbol 418 Button
on (release) {
_root.game_menu();
}
Symbol 422 Button
on (release) {
_root.game_mainMenu();
}
Symbol 426 Button
on (release) {
_root.game_retry();
}
Symbol 435 MovieClip [screen_ready] Frame 17
stage_txt.text = _root.stageID + 1;
Symbol 435 MovieClip [screen_ready] Frame 76
_root.game_start();
this.removeMovieClip();
Symbol 439 Button
on (release) {
play();
}
Symbol 440 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 441 Button
on (release) {
_root.viewHighscore();
}
Symbol 446 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 449 MovieClip Frame 1
stop();
if (_root.gold_score == 0) {
this._visible = false;
}
gold_txt.text = _root.gold_score;
Symbol 449 MovieClip Frame 2
gold_txt.text = _root.gold_score;
Symbol 449 MovieClip Frame 3
function sendData() {
send_var.game = _root.game_name;
send_var.score = _root.gold_score;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = _root.gold_score;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 395 MovieClip in Symbol 449 MovieClip Frame 3
on (release) {
}
Symbol 467 MovieClip [screen_winAll] Frame 1
Symbol 467 MovieClip [screen_winAll] Frame 329
stop();
Symbol 467 MovieClip [screen_winAll] Frame 330
_root.game_mainMenu();
_parent.removeMovieClip();
Symbol 492 MovieClip Frame 13
stop();
Instance of Symbol 395 MovieClip in Symbol 492 MovieClip Frame 13
on (release) {
}
Symbol 495 Button
on (release) {
_root.buy(1);
}
Symbol 504 MovieClip Frame 13
stop();
Instance of Symbol 395 MovieClip in Symbol 504 MovieClip Frame 13
on (release) {
}
Symbol 506 Button
on (release) {
_root.buy(3);
}
Symbol 515 MovieClip Frame 13
stop();
Instance of Symbol 395 MovieClip in Symbol 515 MovieClip Frame 13
on (release) {
}
Symbol 517 Button
on (release) {
_root.buy(2);
}
Symbol 526 MovieClip Frame 13
stop();
Instance of Symbol 395 MovieClip in Symbol 526 MovieClip Frame 13
on (release) {
}
Symbol 528 Button
on (release) {
_root.buy(4);
}
Symbol 537 MovieClip Frame 13
stop();
Instance of Symbol 395 MovieClip in Symbol 537 MovieClip Frame 13
on (release) {
}
Symbol 539 Button
on (release) {
_root.buy(5);
}
Symbol 544 MovieClip Frame 13
stop();
Instance of Symbol 395 MovieClip in Symbol 544 MovieClip Frame 13
on (release) {
}
Symbol 546 Button
on (release) {
_root.buy_tower();
}
Symbol 550 MovieClip Frame 13
stop();
Instance of Symbol 395 MovieClip in Symbol 550 MovieClip Frame 13
on (release) {
}
Symbol 552 Button
on (release) {
_root.repair_start();
}
Symbol 553 MovieClip Frame 1
function buy(type) {
if (type == 1) {
_root.role1_num++;
role1_txt.text = _root.role1_num;
} else if (type == 2) {
_root.role2_num++;
role2_txt.text = _root.role2_num;
} else if (type == 3) {
_root.role3_num++;
role3_txt.text = _root.role3_num;
} else if (type == 4) {
_root.role4_num++;
role4_txt.text = _root.role4_num;
} else if (type == 5) {
_root.role5_num++;
role5_txt.text = _root.role5_num;
}
}
Symbol 571 Button
on (release) {
_root.game_retry();
}
Symbol 573 Button
on (release) {
_root.change_View_start();
}
Symbol 575 Button
on (release) {
_root.mouse_control_mc.deSelectAll();
}
Symbol 577 Button
on (release) {
_root.game_menu();
}
Symbol 579 Button
on (release) {
_root.setSpeed();
}
Symbol 584 Button
on (release) {
_root.game_pauseScreen();
}
Symbol 586 Button
on (release) {
_root.gotoCastle();
}
Symbol 588 Button
on (release) {
play();
}
Symbol 598 Button
on (release) {
gotoAndStop (1);
}
Symbol 599 MovieClip Frame 1
stop();
Symbol 599 MovieClip Frame 2
stop();
Instance of Symbol 395 MovieClip in Symbol 599 MovieClip Frame 2
on (release) {
}
Symbol 606 MovieClip Frame 1
function setTime(m, s) {
min = m;
sec = s;
setText();
}
function startTimer() {
clearInterval(start_timer);
start_timer = setInterval(this, "countTime", 1000);
}
function stopTimer() {
clearInterval(start_timer);
}
function continueTimer() {
startTimer();
}
function countTime() {
if (_root.flag_pause) {
return(undefined);
}
sec--;
if (sec < 0) {
sec = 59;
min--;
}
setText();
setCastle();
if ((min == 0) && (sec == 0)) {
stopTimer();
_root.checkBattle_fire();
}
}
function setText() {
if (min < 10) {
min_t = "0" + min;
} else {
min_t = min;
}
if (sec < 10) {
sec_t = "0" + sec;
} else {
sec_t = sec;
}
}
function setCastle() {
if ((min == 4) && (sec == 0)) {
_root.stage_mc.base_role.body.gotoAndStop("s3");
} else if ((min == 2) && (sec == 0)) {
_root.stage_mc.base_role.body.gotoAndStop("s4");
} else if ((min == 0) && (sec == 0)) {
_root.stage_mc.base_role.body.gotoAndStop("s5");
}
}
var sec;
var min;
var start_timer;
setTime(5, 0);
startTimer();
Symbol 607 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 1
stop();
this._visible = false;
Symbol 610 MovieClip Frame 2
this._visible = true;
Symbol 610 MovieClip Frame 90
_root.status_status();
Symbol 616 Button
on (release) {
_root.game_start();
}
Symbol 623 MovieClip Frame 1
stop();
if (_root.getMusic(this) == false) {
gotoAndStop (2);
}
Symbol 623 MovieClip Frame 2
stop();
Symbol 623 MovieClip Frame 3
gotoAndStop (1);
Symbol 624 Button
on (press) {
play();
}
Symbol 625 MovieClip Frame 1
stop();
if (_root.getSound(this) == false) {
gotoAndStop (2);
}
Symbol 625 MovieClip Frame 2
stop();
Symbol 625 MovieClip Frame 3
gotoAndStop (1);
Symbol 627 Button
on (release) {
gotoAndStop (2);
}
Symbol 630 Button
on (release) {
_root.game_setQuality(1);
}
Symbol 633 MovieClip Frame 1
stop();
Symbol 635 Button
on (release) {
_root.game_setQuality(2);
}
Symbol 638 MovieClip Frame 1
stop();
Symbol 640 Button
on (release) {
_root.game_setQuality(3);
}
Symbol 643 MovieClip Frame 1
stop();
Symbol 645 Button
on (release) {
_root.game_setQuality(4);
}
Symbol 647 MovieClip Frame 1
stop();
Symbol 648 MovieClip Frame 1
_root.game_getQuality(this);
Symbol 649 Button
on (release) {
gotoAndStop (1);
}
Symbol 650 MovieClip Frame 1
stop();
Instance of Symbol 395 MovieClip in Symbol 650 MovieClip Frame 2
on (release) {
}
Symbol 671 MovieClip [status_mc] Frame 1
this.swapDepths(25100);
stop();
Instance of Symbol 471 MovieClip in Symbol 671 MovieClip [status_mc] Frame 1
on (release) {
}
Instance of Symbol 623 MovieClip in Symbol 671 MovieClip [status_mc] Frame 7
on (release) {
_root.setMusic(this);
}
Instance of Symbol 625 MovieClip "sound_mc" in Symbol 671 MovieClip [status_mc] Frame 7
on (release) {
_root.setSound(this);
}
Symbol 706 MovieClip Frame 1
var enemy = (_root.enemyTotal - _root.enemyNum);
enemy_txt.text = enemy;
var gold1;
if (_root.game_level == 1) {
gold1 = int(_root.gold_killEnemy / 2);
} else if (_root.game_level == 3) {
gold1 = int(_root.gold_killEnemy / 4);
} else {
gold1 = int(_root.gold_killEnemy / 3);
}
gold1_txt.text = gold1 + " GP";
soldier_txt.text = _root.role_num;
var gold2 = (_root.role_num * 100);
gold2_txt.text = gold2 + " GP";
var integrity = (int((_root.castle_life / _root.castle_life_total) * 100) + "%");
var gold3 = int((1000 * _root.castle_life) / _root.castle_life_total);
castle_txt.text = integrity;
gold3_txt.text = gold3 + " GP";
if (_root.tower_num == 0) {
tower_mc._visible = false;
} else if (_root.tower_num > 0) {
tower_mc._visible = true;
}
tower_mc.tower_txt.text = _root.tower_num;
var gold4 = (500 * _root.tower_num);
tower_mc.gold4_txt.text = gold4 + " GP";
goldLeft_txt.text = _root.gold_total + " GP";
gold5_txt.text = _root.gold_total + " GP";
var gold = (((gold1 + gold2) + gold3) + gold4);
_root.gold_total = _root.gold_total + gold;
Symbol 706 MovieClip Frame 20
if (_root.gold_total >= 5000) {
gotoAndStop ("s2");
} else if (_root.gold_total < 5000) {
gotoAndStop ("s1");
}
Symbol 706 MovieClip Frame 21
stop();
total_gold_txt.text = _root.gold_total + " GP";
gold_e_txt.text = "250 GP";
gold_m_txt.text = (_root.gold_total - 250) + " GP";
_root.gold_score = _root.gold_score + 250;
gold_score_txt.text = _root.gold_score + " GP";
Symbol 706 MovieClip Frame 26
stop();
total_gold_txt.text = _root.gold_total + " GP";
gold_f_txt.text = (_root.gold_total - 5000) + " GP";
gold_b_txt.text = "5000 GP";
_root.gold_score = _root.gold_score + (_root.gold_total - 5000);
gold_score_txt.text = _root.gold_score + " GP";
_root.gold_total = 5000;
Symbol 706 MovieClip Frame 42
stop();
Symbol 711 Button
on (release) {
gotoAndStop (2);
}
Symbol 714 Button
on (release) {
_parent.nextBattle();
}
Symbol 720 Button
on (release) {
_root.game_save(name_txt.text);
play();
}
Symbol 723 Button
on (release) {
gotoAndStop (1);
}
Symbol 725 MovieClip Frame 1
stop();
if ((_root.stageID + 1) >= _root.stage_max) {
gotoAndStop ("s4");
}
Symbol 725 MovieClip Frame 2
stop();
name_txt.text = "Battle" + (_root.stageID + 1);
Symbol 725 MovieClip Frame 3
stop();
Symbol 725 MovieClip Frame 4
stop();
Symbol 739 MovieClip Frame 1
stop();
this._visible = false;
Symbol 739 MovieClip Frame 2
this._visible = true;
Symbol 739 MovieClip Frame 26
gotoAndStop (1);
Symbol 739 MovieClip Frame 27
this._visible = true;
Symbol 739 MovieClip Frame 50
gotoAndStop (1);
Symbol 740 MovieClip Frame 2
stop();
var gold = _root.gold_total;
gold_txt.text = gold + " GP";
var level = _root.castle_level;
var hp = _root.castle_array[level].hp;
var price2 = _root.castle_array[level].price;
lv_txt.text = level + 1;
hp_txt.text = hp;
price2_txt.text = price2 + " GP";
upgrade_btn.onRelease = function () {
var _local2 = _root.upgrade(price2, hp);
trace("gold_now:" + _local2);
if (_local2 == -1) {
msg_mc.play();
} else if (_local2 == -2) {
msg_mc.gotoAndPlay("level");
} else {
gotoAndPlay (1);
}
};
Symbol 741 Button
on (release) {
play();
}
Symbol 773 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 1
stop();
Symbol 790 MovieClip Frame 1
var gold = _root.gold_total;
gold_txt.text = gold + " GP";
Symbol 790 MovieClip Frame 2
stop();
if (_root.general_type != 0) {
gotoAndStop ("upgrade");
}
buy_btn1.onRelease = function () {
var _local2 = _root.general_buy(1, 1000);
if (_local2 != -1) {
gold_txt.text = _local2 + " GP";
gotoAndStop ("upgrade");
} else {
msg_mc.play();
}
};
Symbol 790 MovieClip Frame 5
var gold = _root.gold_total;
gold_txt.text = gold + " GP";
if (_root.general_type == 2) {
buy1_mc.gotoAndStop(2);
} else if (_root.general_type == 3) {
buy2_mc.gotoAndStop(2);
}
buy1_mc.buy_btn2.onRelease = function () {
var _local2 = _root.general_buy(2, 2000);
if (_local2 != -1) {
gold_txt.text = _local2 + " GP";
buy1_mc.gotoAndStop(2);
} else {
msg_mc.play();
}
};
buy2_mc.buy_btn3.onRelease = function () {
var _local2 = _root.general_buy(3, 3000);
if (_local2 != -1) {
gold_txt.text = _local2 + " GP";
buy2_mc.gotoAndStop(2);
} else {
msg_mc.play();
}
};
Symbol 800 MovieClip Frame 1
function showData(name) {
var _local2 = _root.save_date.data["data" + name];
data_name = name;
level_txt.text = ("Battle " + (_local2.stageID + 1)) + " Data";
difficulty_txt.text = _local2.difficulty;
general_txt.text = _local2.general_type;
total_gold_txt.text = _local2.gold_total;
castle_txt.text = _local2.castle_level;
}
var data_name;
showData(_root.saveData_name);
Symbol 801 Button
on (release) {
gotoAndPlay ("s1");
}
Symbol 806 Button
on (release) {
play();
}
Symbol 810 Button
on (release) {
_root.viewHighscore();
}
Symbol 814 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games6/gameindex/battlefield-general.htm", "_blank");
}
Symbol 816 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 819 Button
on (release) {
gotoAndStop (1);
}
Symbol 822 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 823 MovieClip Frame 1
stop();
if (_root.gold_score == 0) {
this._visible = false;
}
gold_txt.text = _root.gold_score;
Symbol 823 MovieClip Frame 2
gold_txt.text = _root.gold_score;
Symbol 823 MovieClip Frame 3
function sendData() {
send_var.game = _root.game_name;
send_var.score = _root.gold_score;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = _root.gold_score;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 395 MovieClip in Symbol 823 MovieClip Frame 3
on (release) {
}
Symbol 824 MovieClip [win] Frame 29
function nextBattle() {
if ((_root.stageID + 1) >= _root.stage_max) {
gotoAndPlay ("winall");
} else {
play();
}
}
stop();
Symbol 824 MovieClip [win] Frame 35
if (_root.castle_level == 10) {
gotoAndPlay ("s2");
}
Symbol 824 MovieClip [win] Frame 36
stop();
Symbol 824 MovieClip [win] Frame 41
if (_root.general_type == 3) {
gotoAndStop ("next");
}
Symbol 824 MovieClip [win] Frame 42
stop();
Symbol 824 MovieClip [win] Frame 49
_root.stage_next();
this.removeMovieClip();
Symbol 824 MovieClip [win] Frame 55
function nextBattle() {
if ((_root.stageID + 1) >= _root.stage_max) {
gotoAndPlay ("winall");
} else {
gotoAndPlay ("s1");
}
}
stop();
Symbol 824 MovieClip [win] Frame 93
stop();
_root.status_mc.removeMovieClip();
_root.stage_mc.removeMovieClip();
Symbol 824 MovieClip [win] Frame 94
stop();
_root.game_mainMenu();
this.removeMovieClip();
Symbol 828 Button
on (release) {
_root.game_retry();
play();
}
Symbol 829 MovieClip [lose2] Frame 1
stop();
Symbol 829 MovieClip [lose2] Frame 2
this.removeMovieClip();
Symbol 835 MovieClip [clickIco] Frame 11
stop();
Symbol 842 Button
on (release) {
_parent._parent.show_mc.showData(name_txt.text);
}
Symbol 845 MovieClip [life_bar_enemy] Frame 1
this._visible = false;
Symbol 846 MovieClip [life_bar_role] Frame 1
this._visible = false;
Symbol 854 Button
on (rollOver) {
mission_mc._visible = true;
}
on (rollOut) {
mission_mc._visible = false;
}
Symbol 857 MovieClip Frame 1
this._visible = false;
mission_txt.text = _root.mission_text[_root.stageID];
Symbol 859 Button
on (release) {
play();
}
Symbol 861 MovieClip [map_mc1] Frame 10
_root.change_View();
_root.attachMovie("map_mc2", "map_mc2", _root.depth_map2);
Symbol 861 MovieClip [map_mc1] Frame 19
stop();
opened = true;
if (_root.stage_mc.base_role != undefined) {
var pt = _root.toGlobal(_root.stage_mc.base_role, _root.stage_mc);
ico1._x = pt.x;
ico1._y = pt.y;
}
if (_root.stage_mc.base_enemy != undefined) {
pt = _root.toGlobal(_root.stage_mc.base_enemy, _root.stage_mc);
ico2._x = pt.x;
ico2._y = pt.y;
}
var posx;
var posy;
mask_mc.onPress = function () {
posx = _root.stage_mc._xmouse;
posy = _root.stage_mc._ymouse;
play();
trace([posx, posy]);
trace([_xmouse, _xmouse]);
};
Symbol 861 MovieClip [map_mc1] Frame 20
_root.map_mc2.play();
Symbol 861 MovieClip [map_mc1] Frame 30
_root.change_View();
if (posx != undefined) {
_root.gotoMap(posx, posy);
}
_root.map_mc2.removeMovieClip();
Symbol 861 MovieClip [map_mc1] Frame 39
stop();
_root.change_View_end();
Symbol 869 MovieClip [map_mc2] Frame 10
stop();
Symbol 869 MovieClip [map_mc2] Frame 21
stop();
Symbol 870 MovieClip [mouse_control] Frame 1
#initclip 54
Object.registerClass("mouse_control", Mouse_control);
#endinitclip
Symbol 874 MovieClip [scroll_control] Frame 1
this._visible = false;
onEnterFrame = function () {
if (Key.isDown(38) && (Key.isDown(37))) {
_root.scroll_start("ul");
} else if (Key.isDown(38) && (Key.isDown(39))) {
_root.scroll_start("ur");
} else if (Key.isDown(40) && (Key.isDown(39))) {
_root.scroll_start("dr");
} else if (Key.isDown(40) && (Key.isDown(37))) {
_root.scroll_start("dl");
} else if (Key.isDown(38)) {
_root.scroll_start("up");
} else if (Key.isDown(40)) {
_root.scroll_start("down");
} else if (Key.isDown(37)) {
_root.scroll_start("left");
} else if (Key.isDown(39)) {
_root.scroll_start("right");
}
};
Symbol 883 MovieClip Frame 1
this._visible = false;
Symbol 884 MovieClip Frame 1
this._visible = false;
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 137 MovieClip [enemy6_1] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 886 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Symbol 889 MovieClip [stage3] Frame 1
dot_path = new Array();
dot_path[0] = [a1, a2, a2_1, a2_3, a2_4];
dot_path[1] = [a1, a2, a2_1, a2_2, a4_1, a4_2, a4_3];
dot_path[2] = [a1, a2, a3, a3_1, a3_2, a3_3, a3_4, a2_4];
Instance of Symbol 236 MovieClip [castle] "base_enemy" in Symbol 889 MovieClip [stage3] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
shape = "shape_castle";
}
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 889 MovieClip [stage3] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Symbol 891 MovieClip Frame 1
this._visible = false;
Symbol 892 MovieClip Frame 1
this._visible = false;
Instance of Symbol 97 MovieClip [enemy1] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = 0;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 894 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = 1;
}
Symbol 897 MovieClip [stage7] Frame 1
dot_path2 = new Array();
dot_path2[0] = [a1, a2, a3, a4];
dot_path2[1] = [a21, a22, a23, a24, a25];
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 897 MovieClip [stage7] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Instance of Symbol 316 MovieClip [tower] in Symbol 897 MovieClip [stage7] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 897 MovieClip [stage7] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 897 MovieClip [stage7] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 897 MovieClip [stage7] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 897 MovieClip [stage7] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 236 MovieClip [castle] "base_enemy" in Symbol 897 MovieClip [stage7] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
shape = "shape_castle";
}
Symbol 900 MovieClip [enemy_control8] Frame 1
#initclip 55
Object.registerClass("enemy_control8", Enemy_control);
#endinitclip
function getPath(enemy_type) {
var _local1;
if (enemy_type == 1) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[2];
} else {
_local1 = dot_path[3];
}
} else if (enemy_type == 2) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[2];
} else {
_local1 = dot_path[3];
}
} else if (enemy_type == 3) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[2];
} else {
_local1 = dot_path[3];
}
} else if (enemy_type == 4) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[2];
} else {
_local1 = dot_path[3];
}
} else if (enemy_type == 5) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[0];
} else {
_local1 = dot_path[2];
}
} else {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[2];
} else {
_local1 = dot_path[3];
}
}
return(_local1);
}
stop();
this._visible = false;
var dot_path = new Array();
dot_path = _parent.dot_path;
attack_time = 25000;
enemy_queue = new Array();
enemy_queue[0] = [4, 4, 4, 2, 2, "6_1"];
enemy_queue[1] = [2, 2, 2, 2, 2, 2];
enemy_queue[2] = [5, 5, 5, 1, 1, 1];
enemy_queue[3] = [3, 3, 3, 3, 3, 3];
enemy_queue[4] = [4, 4, 4, 2, 2, 2];
enemy_queue[5] = [5, 5, 5, 5, 2, 2];
enemy_queue[6] = [4, 4, 2, 2, 5, 5];
enemy_queue[7] = [2, 2, 2, 2, 2, 2];
enemy_queue[8] = [1, 1, 1, 2, 2, 2];
enemy_queue[9] = [5, 5, 5, 3, 3, 3];
enemy_queue[10] = [3, 3, 3, 3, 3, 3];
enemy_queue[11] = [2, 2, 2, 4, 4, 4, 5, 5, 5];
enemy_queue[12] = [2, 2, 2, 2, 4, 4, 4, 4, "6_1"];
Symbol 901 MovieClip Frame 1
this._visible = false;
Symbol 902 MovieClip Frame 1
this._visible = false;
Instance of Symbol 126 MovieClip [enemy4] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 904 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Symbol 907 MovieClip [stage8] Frame 1
dot_path = new Array();
dot_path[0] = [a1, a2, a3, a4, a5_1, a5_2, a5_3, a5_4, a5_5];
dot_path[1] = [a1, a2, a3, a4, a6_1, a6_2, a6_3];
dot_path[2] = [a1, a2, a3, a4, a6_1, a6_2, a7_1, a7_2, a7_3];
dot_path[3] = [a1, a2, a2_1, a2_2, a2_3, a2_4, a5_5];
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 907 MovieClip [stage8] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Instance of Symbol 316 MovieClip [tower] in Symbol 907 MovieClip [stage8] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 907 MovieClip [stage8] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 907 MovieClip [stage8] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 907 MovieClip [stage8] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 907 MovieClip [stage8] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 907 MovieClip [stage8] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 236 MovieClip [castle] "base_enemy" in Symbol 907 MovieClip [stage8] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
shape = "shape_castle";
}
Instance of Symbol 316 MovieClip [tower] in Symbol 907 MovieClip [stage8] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 907 MovieClip [stage8] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 907 MovieClip [stage8] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Symbol 909 MovieClip Frame 1
this._visible = false;
Symbol 910 MovieClip Frame 1
this._visible = false;
Instance of Symbol 133 MovieClip [enemy5] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 2;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 2;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 912 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 2;
}
Symbol 915 MovieClip [stage9] Frame 1
dot_path2 = new Array();
dot_path2[0] = [a1, a2, a3, a4, a5, a6, a7, a8];
dot_path2[1] = [a8, a1, a2, a3, a4, a5, a6, a7];
dot_path2[2] = [a4, a5, a6, a7, a8, a1, a2, a3];
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "left";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "left";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 915 MovieClip [stage9] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Symbol 917 MovieClip Frame 1
this._visible = false;
Symbol 918 MovieClip Frame 1
this._visible = false;
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 920 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Symbol 921 MovieClip [enemy_control12] Frame 1
#initclip 56
Object.registerClass("enemy_control12", Enemy_control);
#endinitclip
function getPath(enemy_type) {
var _local1;
_local1 = dot_path[0];
return(_local1);
}
stop();
this._visible = false;
var dot_path = new Array();
dot_path = _parent.dot_path;
attack_time = 30000;
enemy_queue = new Array();
enemy_queue[0] = [4, 4, 4, 4, 4, 4, "6_1"];
enemy_queue[1] = [2, 2, 2, 2, 2, 2, 2];
enemy_queue[2] = [5, 5, 5, 5, 1, 1];
enemy_queue[3] = [2, 2, 2, 3, 3, 3, 3];
enemy_queue[4] = [4, 4, 4, 2, 2, 2, 2];
enemy_queue[5] = [4, 4, 4, 5, 5, "6_1"];
enemy_queue[6] = [4, 4, 2, 2, 2];
enemy_queue[7] = [3, 3, 2, 2, 2];
enemy_queue[8] = [4, 4, 2, 2, 1];
enemy_queue[9] = [4, 4, 2, 2, 3];
enemy_queue[10] = [4, 4, 2, 2, 5, "6_1"];
Symbol 924 MovieClip [stage12] Frame 1
dot_path = new Array();
dot_path[0] = [a1, a2, a3, a4, a5, a6, a7];
dot_path2 = new Array();
dot_path2[0] = [a21, a22];
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 236 MovieClip [castle] "base_enemy" in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
shape = "shape_castle";
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 924 MovieClip [stage12] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Symbol 926 MovieClip [enemy_control13] Frame 1
#initclip 57
Object.registerClass("enemy_control13", Enemy_control);
#endinitclip
function getPath(enemy_type) {
var _local1;
if (enemy_type == 1) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 2) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 3) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 4) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[0];
} else {
_local1 = dot_path[1];
}
} else if (enemy_type == 5) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[0];
} else {
_local1 = dot_path[1];
}
} else {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
}
return(_local1);
}
stop();
this._visible = false;
var dot_path = new Array();
dot_path = _parent.dot_path;
attack_time = 30000;
enemy_queue = new Array();
enemy_queue[0] = [4, 4, 4, 2, 2, "6_1"];
enemy_queue[1] = [2, 2, 2, 2, 2];
enemy_queue[2] = [5, 5, 5, 1, 1];
enemy_queue[3] = [5, 5, 5, 3, 3];
enemy_queue[4] = [4, 4, 2, 2, 2];
enemy_queue[5] = [4, 4, 2, 2, 2, 2];
enemy_queue[6] = [4, 4, 2, 2, 5, 5];
enemy_queue[7] = [2, 2, 2, 1, 1, "6_1"];
enemy_queue[8] = [1, 1, 1, 2, 2, 4];
enemy_queue[9] = [5, 5, 5, 3, 3, 4];
enemy_queue[10] = [2, 2, 3, 3, 3];
enemy_queue[11] = [2, 2, 4, 4, 4];
enemy_queue[12] = [4, 4, 5, 5, 5, "6_1"];
enemy_queue[13] = [3, 3, 3, 3, 3];
enemy_queue[14] = [4, 4, 4, 4, 4];
enemy_queue[15] = [5, 5, 5, 1, 1];
enemy_queue[16] = [5, 5, 5, 1, 1, "6_1"];
Symbol 927 MovieClip Frame 1
this._visible = false;
Symbol 928 MovieClip Frame 1
this._visible = false;
Instance of Symbol 103 MovieClip [enemy2] in Symbol 930 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 930 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 930 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 930 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 930 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 930 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 930 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 930 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 930 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 930 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Symbol 933 MovieClip [stage13] Frame 1
dot_path = new Array();
dot_path[0] = [a1, a21, a22, a23, a24, a25, a26, a27];
dot_path[1] = [a1, a21, a22, a23, a24, a25, a31, a32, a33, a34];
dot_path[2] = [a1, a41, a42, a43];
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 933 MovieClip [stage13] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Instance of Symbol 236 MovieClip [castle] "base_enemy" in Symbol 933 MovieClip [stage13] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
shape = "shape_castle";
}
Instance of Symbol 316 MovieClip [tower] in Symbol 933 MovieClip [stage13] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 933 MovieClip [stage13] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 933 MovieClip [stage13] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 933 MovieClip [stage13] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Symbol 936 MovieClip [enemy_control14] Frame 1
#initclip 58
Object.registerClass("enemy_control14", Enemy_control);
#endinitclip
function getPath(enemy_type) {
var _local1;
if (enemy_type == 1) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 2) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 3) {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
} else if (enemy_type == 4) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[0];
} else {
_local1 = dot_path[1];
}
} else if (enemy_type == 5) {
var _local3 = Math.random();
if (_local3 < 0.5) {
_local1 = dot_path[0];
} else {
_local1 = dot_path[1];
}
} else {
var _local3 = Math.random();
if (_local3 < 0.3) {
_local1 = dot_path[0];
} else if (_local3 < 0.6) {
_local1 = dot_path[1];
} else {
_local1 = dot_path[2];
}
}
return(_local1);
}
stop();
this._visible = false;
var dot_path = new Array();
dot_path = _parent.dot_path;
attack_time = 20000;
enemy_queue = new Array();
enemy_queue[0] = [2, 2, 2, 3, 3, 5, 5, 5];
enemy_queue[1] = [5, 5, 5, 1, 1, 2, 2, 2];
enemy_queue[2] = [4, 4, 4, 2, 2, 2, 2, 4];
enemy_queue[3] = [3, 3, 3, 3, 3, "6_1"];
enemy_queue[4] = [4, 4, 2, 2, 3, 3, 3, 3];
enemy_queue[5] = [1, 1, 1, 1, 2, 2, 2, 2];
enemy_queue[6] = [3, 3, 3, 3, 5, 5, 5, 5];
enemy_queue[7] = [4, 4, 4, 4, 1, 1, 1, 1];
enemy_queue[8] = [4, 4, 4, 4, "6_1", 2, 2, 2];
enemy_queue[9] = [2, 2, 2, 2, 5, 5, 3, 3];
enemy_queue[10] = [2, 2, 2, 4, 4, 4, 5, 5];
enemy_queue[11] = [3, 3, 5, 5, 1, 1, 1, 1];
enemy_queue[12] = [2, 2, 2, 2, 1, 1, 1, 1];
enemy_queue[13] = [4, 4, 4, 1, 1, 1, 1, 1];
enemy_queue[14] = [4, 4, 4, 4, 4, 4, 4, "6_1"];
Symbol 937 MovieClip Frame 1
this._visible = false;
Symbol 938 MovieClip Frame 1
this._visible = false;
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 137 MovieClip [enemy6_1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 940 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Symbol 943 MovieClip [stage14] Frame 1
dot_path = new Array();
dot_path[0] = [a1, a2, a3, a4, a5, a6, a7, a8, a9, a91, a92];
dot_path[1] = [a1, a2, a21, a22, a23, a24, a25, a26, a27];
dot_path[2] = [a1, a2, a3, a31, a32, a33];
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Instance of Symbol 236 MovieClip [castle] "base_enemy" in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
shape = "shape_castle";
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 331 MovieClip [farmhouse] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy2_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "up";
shape = "shape_tower";
_life = 300;
}
Instance of Symbol 316 MovieClip [tower] in Symbol 943 MovieClip [stage14] Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
enemy_link = "";
enemy_add = "enemy5_2";
enemy_dir = "right";
shape = "shape_tower";
_life = 300;
}
Symbol 945 MovieClip Frame 1
stop();
shape = "shape_castle";
body.gotoAndStop(2);
Symbol 946 MovieClip Frame 1
this._visible = false;
Symbol 947 MovieClip Frame 1
this._visible = false;
Instance of Symbol 152 MovieClip [role1] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 152 MovieClip [role1] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 152 MovieClip [role1] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 152 MovieClip [role1] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 156 MovieClip [role2] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 156 MovieClip [role2] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 156 MovieClip [role2] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 173 MovieClip [role4] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 173 MovieClip [role4] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 173 MovieClip [role4] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 173 MovieClip [role4] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 173 MovieClip [role4] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 173 MovieClip [role4] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 176 MovieClip [role5] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 176 MovieClip [role5] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 163 MovieClip [role3] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 163 MovieClip [role3] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 163 MovieClip [role3] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 163 MovieClip [role3] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 176 MovieClip [role5] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 156 MovieClip [role2] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 156 MovieClip [role2] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 156 MovieClip [role2] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 156 MovieClip [role2] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 156 MovieClip [role2] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 152 MovieClip [role1] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 152 MovieClip [role1] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 152 MovieClip [role1] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 152 MovieClip [role1] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 163 MovieClip [role3] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 163 MovieClip [role3] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 163 MovieClip [role3] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 163 MovieClip [role3] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 176 MovieClip [role5] in Symbol 948 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = 0;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "right";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "up";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Instance of Symbol 97 MovieClip [enemy1] in Symbol 949 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
start_dir = "left";
dot_path2_id = -1;
}
Symbol 952 MovieClip [stage11] Frame 1
dot_path2 = new Array();
dot_path2[0] = [a1, a2, a3, a4, a5, a6, a7];
dot_path2[1] = [a21, a22, a23, a24, a25];
Instance of Symbol 945 MovieClip "base_role" in Symbol 952 MovieClip [stage11] Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Symbol 953 MovieClip Frame 1
stop();
this._visible = false;
Instance of Symbol 97 MovieClip [enemy1] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 103 MovieClip [enemy2] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 104 MovieClip [enemy2_2] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 112 MovieClip [enemy3] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 126 MovieClip [enemy4] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 133 MovieClip [enemy5] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
dot_path2_id = -1;
}
Instance of Symbol 134 MovieClip [enemy5_2] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 137 MovieClip [enemy6_1] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 152 MovieClip [role1] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 156 MovieClip [role2] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 163 MovieClip [role3] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 173 MovieClip [role4] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 176 MovieClip [role5] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 185 MovieClip [role6_1] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 188 MovieClip [role6_2] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 191 MovieClip [role6_3] in Symbol 953 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
start_dir = "down";
}
Instance of Symbol 316 MovieClip [tower] in Symbol 953 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
enemy_add = "";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Symbol 954 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 1034 Button
on (release) {
_root.start_game();
}
Symbol 1037 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 1040 Button
on (release) {
getURL ("http://www.ifungames.com", _blank);
}
Symbol 1043 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 1046 Button
on (release) {
_parent.gotoAndStop("credits");
}
Symbol 1050 Button
on (release) {
_root.viewHighscore();
}
Symbol 1051 MovieClip Frame 1
stop();
Symbol 1051 MovieClip Frame 2
stop();
Symbol 1057 Button
on (release) {
A_1.gotoAndStop(2);
}
Symbol 1062 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 1066 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games6/gameindex/battlefield-general.htm", "_blank");
}
Symbol 1072 Button
on (release) {
getURL ("http://www.freeworldgroup.com/games6/gameindex/battlefield-general.htm", "_blank");
}
Symbol 1076 Button
on (release) {
gotoAndStop (1);
}
Symbol 1077 MovieClip Frame 1
var num = 0;
for (var i in _root.save_date.data) {
var stage_date = _root.save_date.data[i];
if (stage_date.name == undefined) {
continue;
}
var mc = this.attachMovie("levelID_mc", "levelID_mc" + num, 100 + num);
mc._x = 0;
mc._y = 30 * num;
mc.name_txt.text = stage_date.name;
trace("mc_num:" + num);
num++;
}
if (num == 0) {
_parent.play();
}
Symbol 1081 Button
on (rollOver) {
down();
}
on (rollOut) {
stopScroll();
}
Symbol 1084 Button
on (rollOver) {
up();
}
on (rollOut) {
stopScroll();
}
Symbol 1094 Button
on (release) {
_root.data_select(data_name);
}
Symbol 1095 MovieClip Frame 1
function showData(name) {
this._visible = true;
var _local3 = _root.save_date.data["data" + name];
data_name = name;
difficulty_txt.text = _local3.difficulty;
level_txt.text = name + " Details";
general_txt.text = _local3.general_type;
total_gold_txt.text = _local3.gold_total;
castle_txt.text = _local3.castle_level;
lastLevel_txt.text = _local3.stageID + 1;
score_txt.text = _local3.gold_score;
}
stop();
if (d == undefined) {
d = 0;
this._visible = false;
}
var data_name;
Symbol 1098 Button
on (release) {
play();
}
Symbol 1102 Button
on (release) {
play();
}
Instance of Symbol 236 MovieClip [castle] "base_enemy" in Symbol 1103 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = "enemy";
shape = "shape_castle";
}
Instance of Symbol 236 MovieClip [castle] "base_role" in Symbol 1103 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
shape = "shape_castle";
}
Symbol 1104 Button
on (release) {
nextFrame();
}
Symbol 1105 MovieClip Frame 1
stop();
Symbol 1109 MovieClip Frame 29
role.gotoAndStop("select");
Symbol 1109 MovieClip Frame 73
role.gotoAndStop("move");
Symbol 1114 Button
on (release) {
prevFrame();
}
Symbol 1118 MovieClip Frame 83
role1.gotoAndStop("select");
role2.gotoAndStop("select");
role3.gotoAndStop("select");
Symbol 1118 MovieClip Frame 118
role1.gotoAndStop("move");
role2.gotoAndStop("move");
role3.gotoAndStop("move");
Symbol 1121 MovieClip Frame 29
role1.gotoAndStop("select");
Symbol 1121 MovieClip Frame 56
role2.gotoAndStop("select");
Symbol 1121 MovieClip Frame 83
role3.gotoAndStop("select");
Symbol 1121 MovieClip Frame 125
role1.gotoAndStop("move");
role2.gotoAndStop("move");
role3.gotoAndStop("move");
Symbol 1124 MovieClip Frame 29
role.gotoAndStop("select");
Symbol 1124 MovieClip Frame 115
role.gotoAndStop("move");
Instance of Symbol 1127 MovieClip in Symbol 1130 MovieClip Frame 1
onClipEvent (keyDown) {
if (Key.isDown(_root.key_up)) {
_parent.role.body.gotoAndStop("jump");
}
}
Symbol 1132 MovieClip Frame 29
role.gotoAndStop("select");
Symbol 1132 MovieClip Frame 80
role.gotoAndStop("move");
Symbol 1132 MovieClip Frame 146
role.gotoAndStop("attack");
Symbol 1134 MovieClip Frame 1
stop();
Instance of Symbol 316 MovieClip [tower] in Symbol 1135 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
type = "role";
enemy_link = "";
enemy_add = "";
enemy_dir = "down";
shape = "shape_tower";
_life = 300;
}
Symbol 1135 MovieClip Frame 29
role.gotoAndStop("select");
Symbol 1135 MovieClip Frame 73
role.gotoAndStop("move");
Symbol 1140 MovieClip Frame 1
role1.gotoAndStop("attack");
role2.gotoAndStop("attack");
Symbol 1140 MovieClip Frame 60
stop();
Symbol 1142 MovieClip Frame 1
stop();
Symbol 1142 MovieClip Frame 2
stop();
Symbol 1142 MovieClip Frame 3
stop();
Symbol 1142 MovieClip Frame 4
stop();
Symbol 1142 MovieClip Frame 5
stop();
Symbol 1142 MovieClip Frame 6
stop();
Symbol 1142 MovieClip Frame 7
stop();
Symbol 1142 MovieClip Frame 8
stop();
Symbol 1142 MovieClip Frame 9
_parent.play();
Symbol 1145 Button
on (release) {
play();
}
Symbol 1147 Button
on (release) {
gotoAndStop (1);
}
Symbol 1149 Button
on (release) {
_root.play();
}
Symbol 1153 Button
on (release) {
_root.game_setDifficulty(1);
}
Symbol 1155 MovieClip Frame 1
stop();
Symbol 1157 Button
on (release) {
_root.game_setDifficulty(2);
}
Symbol 1160 MovieClip Frame 1
stop();
Symbol 1162 Button
on (release) {
_root.game_setDifficulty(3);
}
Symbol 1164 MovieClip Frame 1
stop();
Symbol 1165 MovieClip Frame 1
_root.game_getDifficulty(this);
Symbol 1168 MovieClip Frame 1
_root.game_getQuality(this);
Symbol 1171 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 1173 MovieClip Frame 1
stop();
Instance of Symbol 1067 MovieClip in Symbol 1173 MovieClip Frame 1
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 1173 MovieClip Frame 2
play();
Symbol 1173 MovieClip Frame 6
function up() {
onEnterFrame = function () {
if ((mc._y + mc._height) < ((mask_mc._y + mask_mc._height) - 10)) {
return(undefined);
}
mc._y = mc._y - v;
};
}
function down() {
onEnterFrame = function () {
if (mc._y > (mask_mc._y + 10)) {
return(undefined);
}
mc._y = mc._y + v;
};
}
function stopScroll() {
delete this.onEnterFrame;
}
stop();
mc.setMask(mask_mc);
var v = 10;
Symbol 1173 MovieClip Frame 7
play();
Symbol 1173 MovieClip Frame 11
stop();
Symbol 1173 MovieClip Frame 12
stop();
Symbol 1173 MovieClip Frame 13
play();
Symbol 1173 MovieClip Frame 17
stop();
Symbol 1173 MovieClip Frame 18
play();
Symbol 1173 MovieClip Frame 22
stop();
Symbol 1175 MovieClip Frame 1
stop();
Symbol 1175 MovieClip Frame 2
stopAllSounds();
Symbol 1175 MovieClip Frame 11
gotoAndStop (1);
Symbol 1177 MovieClip Frame 1
stop();
Symbol 1177 MovieClip Frame 10
gotoAndStop (1);
Symbol 1179 MovieClip Frame 1
this._visible = false;
Symbol 1179 MovieClip Frame 22
stop();
Symbol 1181 MovieClip Frame 1
this._visible = false;