Frame 1
function itemHandler1(obj, item) {
getURL ("http://badim.ru", "_blank");
}
function itemHandler2(obj, item) {
getURL ("http://kongregate.com/accounts/Badim", "_blank");
}
function itemHandler3(obj, item) {
getURL ("http://www.realore.com/", "_blank");
}
function itemHandler4(obj, item) {
getURL ("http://blitzgamer.com//", "_blank");
}
System.security.allowDomain("api.fanbox.com");
System.security.allowDomain("profile.fanbox.com");
System.security.allowDomain("www.sms.ac");
var FANBOXAPI;
if (FANBOXAPI == undefined) {
FANBOXAPI = new Object();
FANBOXAPI.GamingAPI = new Object();
}
FANBOXAPI.DeveloperKey = "3ac64df1-a509-4bdd-a6b5-58922e17b405";
_lockroot = true;
_global.lang_id = -1;
XML.prototype.ignoreWhite = true;
_global.main_path = "";
_global.snd_path = "";
_global.data_path = _global.main_path + "data/";
_global.langs_path = _global.data_path + "langs/";
_global.gfx_path = "";
var this_date = new Date();
_global.refresh_add = "";
if (this._url.indexOf("http") != -1) {
_global.refresh_add = "?fa" + this_date.valueOf();
}
_global.no_editor = false;
_global.no_ads = true;
_global.single_file = false;
_global.mochiscores_on = false;
_global.options_multylang = true;
_global.cheats_on = true;
_global.blitz_release = true;
_global.minimap_allowed = true;
_global.show_tips = false;
_global.continue_feature = false;
_root.musik_enabled = true;
_global.release_this = true;
if (_global.release_this) {
_global.cheats_on = false;
_global.no_ads = false;
_global.no_editor = true;
_global.show_tips = true;
_global.minimap_allowed = false;
_global.single_file = true;
}
_root.show_progress_bar = function (persent) {
var width = 8;
var height = 300;
_root.createEmptyMovieClip("progress_bar", 550);
with (_root.progress_bar) {
lineStyle(1, 8947848);
moveTo(proces * width, height - 4);
lineTo(width * 100, height - 4);
lineStyle(6, 0);
moveTo(0, height - 4);
lineTo(persent * width, height - 4);
}
};
stop();
_global.mochiad_id = "e171b1f93c277896";
_global.mochiad2_id = "9652bd66d7ec266a";
_global.get_mochiad_id = function () {
if (Math.random() < 0.5) {
return(_global.mochiad_id);
}
return(_global.mochiad2_id);
};
_global.ad_preloaded_showed = true;
_global.objs_xml = new XML();
_global.objs_xml.load((_global.data_path + "objs.xml") + _global.refresh_add);
_root._ip = "208.78.96.244";
_root._port = "80";
_root.l_mc.onEnterFrame = function () {
var _local5 = 250;
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
if (_global.xml_lang_loaded) {
} else {
_local4 = _local4 - 0.01;
}
if (_global.map_xml.loaded) {
} else {
_local4 = _local4 - 0.01;
}
if (_global.ad_preloaded_showed) {
} else {
_local4 = _local4 - 0.01;
}
this._width = _local5 * _local4;
if (_local4 >= 1) {
if (System.capabilities.isDebugger) {
gotoAndStop (5);
} else {
_root.play();
}
}
};
var my_cm = new ContextMenu(menuHandler);
my_cm.builtInItems.zoom = false;
my_cm.builtInItems.print = false;
my_cm.builtInItems.quality = false;
my_cm.builtInItems.play = false;
my_cm.builtInItems.loop = false;
my_cm.builtInItems.rewind = false;
my_cm.builtInItems.forward_back = false;
my_cm.customItems.push(new ContextMenuItem("My other games", itemHandler1));
my_cm.customItems.push(new ContextMenuItem("More games", itemHandler4));
this.menu = my_cm;
if (_global.single_file) {
var strs = [];
strs.push({lang_name:"Hungarian", lang_translator:"P\u00E9ter Szil\u00E1gyi", txt:"<Lang more_games=\"More games\" txt_loading=\"t\u00F6lt\u00E9s\" txt_fotoexit=\"Tal\u00E1ld meg a kij\u00E1ratot\" txt_name=\"N\u00E9v\" txt_scores=\"Pontok\" txt_player=\"J\u00E1t\u00E9kos\" txt_mish=\"K\u00FCldet\u00E9s\" txt_capsules=\"Kapszul\u00E1k\" txt_new=\"\u00DAj\" txt_continue=\"Folytat\u00E1s\" txt_continues=\"Folytat\u00E1s\" txt_wanacontinue=\"M\u00E1r teljes\u00EDtett\u00E9l%en\u00E9h\u00E1ny szintet.%eSzeretn\u00E9d folytatni%evagy \u00FAj j\u00E1t\u00E9kot kezdesz?\" txt_winmsg=\"Gratul\u00E1lunk!%eTeljes\u00EDtetted a szintet.%eK\u00E9szen \u00E1llsz a k\u00F6vetkez\u0151re?\" txt_endmsg=\"Gratul\u00E1lunk!\" txt_losemsg=\"Vesztett\u00E9l!%ePr\u00F3b\u00E1ld meg \u00FAjra!\" txt_scoretable=\"Meg\u00F6lt ellenfelek:%eId\u0151 b\u00F3nusz:%eB\u00F3nuszok:%e\u00D6sszesen:\" txt_showmm=\"Men\u00FC\" txt_next=\"K\u00F6vetkez\u0151\" txt_start=\"Start\" txt_exit=\"Kij\u00E1rat\" txt_lvleditor=\"Szerkeszt\u0151\" txt_web=\"WWW\" txt_facemenu=\"men\u00FC\" txt_resume=\"Folytat\u00E1s\" txt_exittomenu=\"Kij\u00E1rat\" txt_options=\"Be\u00E1ll\u00EDt\u00E1sok\" txt_soundlevel=\"Hanger\u0151\" txt_tips=\"Tippek\" txt_maplist=\"T\u00E9rk\u00E9p_lista\" txt_back=\"Vissza\" txt_newmap=\"\u00DAj_t\u00E9rk\u00E9p\" txt_about=\"N\u00E9vjegy\" txt_wait=\"T\u00F6lt\u00E9s\" txt_keys=\"Billenty\u0171_kioszt\u00E1s\" life=\"\u00E9let\" you_found=\"Megtal\u00E1ltad\" _char_stat0=\"Er\u0151\" _char_stat1=\"\u00DCgyess\u00E9g\" _char_stat2=\"Term\u00E9szet\" txt_close=\"Bez\u00E1r\" txt_showtips=\"Tippek\" txt_allmaps=\"\u00D6sszes\" txt_servermaps=\"Szerver\" sstatus1=\"Sz\u00E9tkapcsolva\" sstatus2=\"\u00D6sszekapcsolva\" sstatus3=\"Kapcsol\u00F3d\u00E1s...\" sstatus4=\"Rossz bel\u00E9p\u0151 n\u00E9v vagy jelsz\u00F3\" txt_pass=\"Jelsz\u00F3\" txt_save_this_ship=\"Mentsd meg ezt a haj\u00F3t!\" txt_tip_100=\"J\u00E1t\u00E9k sz\u00FCneteltetve.%eKlikk%eor%ecsak nyomd meg a space-t%ea folytat\u00E1shoz.\" txt_musikenab=\"Gyer\u00FCnk!\" txt_musikdis=\"Nem szeretem ezt a st\u00EDlust!\" txt_history_1=\" Valamikor a j\u00F6v\u0151ben.%eEgy kis meteor lezuhant az \u00E9gb\u0151l a dzsungel m\u00E9ly\u00E9re. Senki nem figyelt a lezuhan\u00F3 meteoritra az \u00E1llamok k\u00F6z\u00F6tti konfliktusok miatt .\" txt_history_2=\" N\u00E9h\u00E1ny \u00E9vvel k\u00E9s\u0151bb a katonai m\u0171holdak k\u00FCl\u00F6n\u00F6s tev\u00E9kenys\u00E9geket \u00E9szleletek a dzsungelben. A korm\u00E1nyod elit kommand\u00F3 egys\u00E9geket k\u00FCld\u00F6tt, hogy kider\u00EDtse mi t\u00F6rt\u00E9nik. Az \u00FAton sz\u00F6rny\u0171 dolgok t\u00F6rt\u00E9ntek, \u00EDgy csak ketten maradtak \u00E9letben: egy sportol\u00F3n\u0151, aki az olimpi\u00E1ra utazott \u00E9s egy elit kommand\u00F3s.\" txt_history_3=\" \u00DAgy t\u0171nik a vil\u00E1g meg\u0151r\u00FCl. Ezen az eldugott helyen mindenki megpr\u00F3b\u00E1l meg\u00F6lni. Egy szimpla munk\u00E1nak indult, de most m\u00E1r a t\u00FAl\u00E9l\u00E9s a c\u00E9l. Rem\u00E9lem r\u00E1 tudok j\u00F6nni, hogy mi t\u00F6rt\u00E9nik \u00E9s kijutok ebb\u0151l a pokolb\u00F3l.\" txt_history_4=\" Tal\u00E1n kis\u00E9rleteket v\u00E9geztek ezeken az embereken. Biztos vagyok benne, hogy ezek a sz\u00F6rnyek valaha j\u00F3lelk\u0171 emberek voltak. Mindenesetre nem val\u00F3sz\u00EDn\u0171, hogy \u00E1tlagos feladatuk van itt. K\u00E9tlem, hogy ez lett volna a sz\u00F6rnyek vezet\u0151je, m\u00E9g egy csapat patk\u00E1nyt se tudna ir\u00E1ny\u00EDtani. \u00DAgy gondolom a java m\u00E9g h\u00E1travan.\" txt_history_5=\" \u00DAgy t\u0171nik megtal\u00E1ltam a kiutat ebb\u0151l a pokolb\u00F3l.Ez a s\u00E9ta remek a dzsungelben, de azt hiszem v\u00E9geztem. A legfontosabb ami n\u00E1la volt, annak a rep\u00FCl\u0151nek kulcsa, ami dzsungel \u00E9szaki r\u00E9sz\u00E9n zuhant le. Rem\u00E9lem oda\u00E9rek id\u0151ben.\" txt_history_6=\" 2 nappal az \u00FCgyn\u00F6k\u00F6k vissza\u00E9rkez\u00E1se ut\u00E1n a m\u0171holdak m\u00E1r m\u0171k\u00F6dtek. \u00DAjra \u00E9s \u00FAjra felder\u00EDt\u0151 egys\u00E9geket k\u00FCldtek, de m\u00E1r nem volt mit jelenteni.\" />"});
strs.push({lang_name:"English", lang_translator:"Reksnes", txt:"<Lang more_games=\"More games\" txt_loading=\"loading\" txt_fotoexit=\"Find the Exit\" txt_name=\"Name\" txt_scores=\"Scores\" txt_player=\"Player\" txt_mish=\"Mission\" txt_capsules=\"Capsules\" txt_new=\"New\" txt_continue=\"Continue\" txt_continues=\"Continues\" txt_wanacontinue=\"You have already completed%esome levels.%eWould you like to continue%eor start new game?\" txt_winmsg=\"Congratulations!%eYou Cleared a Level.%eReady for the next level?\" txt_endmsg=\"Congratulations!\" txt_losemsg=\"You`ve lost!%eTry again.\" txt_scoretable=\"Killed:%eTime bonus:%eBonuses:%eTotal:\" txt_showmm=\"Menu\" txt_next=\"Next\" txt_start=\"Start\" txt_exit=\"Exit\" txt_lvleditor=\"Editor\" txt_web=\"WWW\" txt_facemenu=\"menu\" txt_resume=\"Resume\" txt_exittomenu=\"Exit\" txt_options=\"Options\" txt_soundlevel=\"Sound level\" txt_tips=\"Tips\" txt_maplist=\"Map_list\" txt_back=\"Back\" txt_newmap=\"New_map\" txt_about=\"About\" txt_wait=\"Loading\" txt_keys=\"Keyboard layout\" life=\"life\" you_found=\"You found\" _char_stat0=\"Strength\" _char_stat1=\"Agility\" _char_stat2=\"Nature\" txt_close=\"Close\" txt_showtips=\"Show tips\" txt_allmaps=\"All\" txt_servermaps=\"Server\" sstatus1=\"Disconnected\" sstatus2=\"Connected\" sstatus3=\"Connecting...\" sstatus4=\"Wrong login name or password\" txt_pass=\"Password\" txt_save_this_ship=\"Save this ship!\" txt_tip_100=\"Game paused.%eClick Next%eor%ejust press Space%eto continue.\" txt_musikenab=\"Lets Rock!\" txt_musikdis=\"I don`t like this style\" txt_history_1=\" Sometime in the future.%eA small meteorite falls from the sky down deep into the jungle dephts. Nobody pays attention to the meteorite fall because of all the general confusion of interstate conflicts.\" txt_history_2=\" A few years later, military satellites discover strange activity in the jungle. Your government sends elite commandos to find out what is going on and to try and clear up the situation. On the way there horrible things occur and only two people survive: a sportswoman who flied to Sochi for the Olympic Games and an elite commando.\" txt_history_3=\" The world seems to be going mad. In this forgotten place everyone is trying to constantly kill me. That used to be a job, but now it`s the only way to survive. I hope I`ll manage to find out what is going on and escape from this hell.\" txt_history_4=\" Perhaps there were experiments made on these people. I am sure that this monster used to be a human being. In any case he hadn`t an ordinary post here. I doubt this is the main leader of these monsters, he couldn`t even lead a pack of rats. I think the most interesting is yet to come.\" txt_history_5=\" It seems like I have managed to find the root of all evil here. The green one wearing the glassess and has an automatic device. This walk in the jungle has been nice, but I think I am finished with it now. The main thing he had was the key to the airplane which landed on the North side of the jungle. I hope I can get there in time.\" txt_history_6=\" 2 days later after the Agents returned to the abnormal zone, the satelites were fixed. They repeatedly sent groups that reported no signs of people.\" />"});
strs.push({lang_name:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439", lang_translator:"Badim", txt:"<Lang more_games=\"\u0414\u0440\u0443\u0433\u0438\u0435 \u0438\u0433\u0440\u044B\" txt_loading=\"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430\" txt_fotoexit=\"\u041D\u0430\u0439\u0434\u0438\u0442\u0435 \u0432\u044B\u0445\u043E\u0434\" txt_name=\"\u0418\u043C\u044F\" txt_scores=\"\u041E\u0447\u043A\u0438\" txt_player=\"\u0418\u0433\u0440\u043E\u043A\" txt_mish=\"\u0423\u0440\u043E\u0432\u0435\u043D\u044C\" txt_capsules=\"\u041A\u0430\u043F\u0441\u0443\u043B\u044B\" txt_new=\"\u0417\u0430\u043D\u043E\u0432\u043E\" txt_continue=\"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u0435\" txt_continues=\"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u0439\" txt_wanacontinue=\"\u0412\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0438 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E%e\u0443\u0440\u043E\u0432\u043D\u0435\u0439 \u0440\u0430\u043D\u0435\u0435.%e\u0425\u043E\u0442\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C,%e\u0438\u043B\u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u044B\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430?\" txt_winmsg=\"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C!%e\u0412\u044B \u043F\u0440\u043E\u0448\u043B\u0438 \u0443\u0440\u043E\u0432\u0435\u043D\u044C.%e\u0413\u043E\u0442\u043E\u0432\u044B \u0434\u043B\u044F \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0433\u043E?\" txt_endmsg=\"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C!\" txt_losemsg=\"\u0412\u044B \u043F\u0440\u043E\u0438\u0433\u0440\u0430\u043B\u0438.%e\u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437.\" txt_scoretable=\"\u0423\u0431\u0438\u0439\u0441\u0442\u0432:%e\u0412\u0440\u0435\u043C\u044F:%e\u0423\u0440\u043E\u0432\u0435\u043D\u044C:%e\u0412\u0441\u0435\u0433\u043E:\" txt_showmm=\"\u041C\u0435\u043D\u044E\" txt_next=\"\u0414\u0430\u043B\u0435\u0435\" txt_start=\"\u0421\u0442\u0430\u0440\u0442\" txt_exit=\"\u0412\u044B\u0445\u043E\u0434\" txt_lvleditor=\"\u042D\u0434\u0438\u0442\u043E\u0440\" txt_web=\"WWW\" txt_facemenu=\"\u043C\u0435\u043D\u044E\" txt_resume=\"\u041E\u0431\u0440\u0430\u0442\u043D\u043E\" txt_exittomenu=\"\u0412\u044B\u0445\u043E\u0434\" txt_options=\"\u041E\u043F\u0446\u0438\u0438\" txt_soundlevel=\"\u0417\u0432\u0443\u043A\" txt_tips=\"\u041F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438\" txt_maplist=\"\u041A\u0430\u0440\u0442\u044B\" txt_back=\"\u041D\u0430\u0437\u0430\u0434\" txt_newmap=\"\u041D\u043E\u0432\u0430\u044F_\u043A\u0430\u0440\u0442\u0430\" txt_about=\"\u0410\u0432\u0442\u043E\u0440\" txt_wait=\"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430\" txt_keys=\"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435\" life=\"\u0436\u0438\u0437\u043D\u044C\" you_found=\"\u0412\u044B \u043D\u0430\u0448\u043B\u0438\" _char_stat0=\"\u0421\u0438\u043B\u0430\" _char_stat1=\"\u041B\u043E\u0432\u043A\u043E\u0441\u0442\u044C\" _char_stat2=\"\u041F\u0440\u0438\u0440\u043E\u0434\u0430\" txt_close=\"\u0417\u0430\u043A\u0440\u044B\u0442\u044C\" txt_showtips=\"\u041F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438\" txt_allmaps=\"\u0412\u0441\u0435\" txt_servermaps=\"\u0421\u0435\u0440\u0432\u0435\u0440\u043D\u044B\u0435\" sstatus1=\"\u0420\u0430\u0437\u044C\u0435\u0434\u0435\u043D\u0435\u043D\" sstatus2=\"\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\" sstatus3=\"\u0421\u043E\u0435\u0434\u0438\u043D\u044F\u0435\u0442\u044C\u0441\u044F...\" sstatus4=\"\u041D\u0435\u043F\u0440\u0430\u0432\u0435\u043B\u044C\u043D\u044B\u0439 \u043F\u0430\u0440\u043E\u043B\u044C \u0438\u043B\u0438 \u043B\u043E\u0433\u0438\u043D\" txt_pass=\"\u041F\u0430\u0440\u043E\u043B\u044C\" txt_save_this_ship=\"\u0421\u043F\u0430\u0441\u0438\u0442\u0435 \u044D\u0442\u043E\u0442 \u043A\u043E\u0440\u0430\u0431\u043B\u044C\" txt_tip_100=\"\u0418\u0433\u0440\u0430 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430.%e\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u0430\u043B\u0435\u0435%e\u0438\u043B\u0438 \u041F\u0440\u043E\u0431\u0435\u043B%e\u0434\u043B\u044F \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u044F.\" txt_musikenab=\"\u041F\u0443\u0441\u0442\u044C \u0438\u0433\u0440\u0430\u0435\u0442!\" txt_musikdis=\"\u041D\u0435 \u043C\u043E\u0439 \u0441\u0442\u0438\u043B\u044C.\" txt_history_1=\" \u0411\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0431\u0443\u0434\u0443\u0449\u0435\u0435, \u043F\u043B\u0430\u043D\u0435\u0442\u0430 \u0417\u0435\u043C\u043B\u044F. \u0412 \u0433\u043B\u0443\u0431\u043E\u043A\u0438\u0445 \u0434\u0436\u0443\u043D\u0433\u043B\u044F\u0445 \u043F\u0430\u0434\u0430\u0435\u0442 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u043C\u0435\u0442\u0435\u043E\u0440\u0438\u0442. \u0421\u0440\u0435\u0434\u0438 \u043E\u0431\u0449\u0435\u0439 \u043D\u0435\u0440\u0430\u0437\u0431\u0435\u0440\u0438\u0445\u0438 \u043C\u0435\u0436\u0433\u043E\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u043A\u043E\u043D\u0444\u043B\u0438\u043A\u0442\u043E\u0432 \u043D\u0438\u043A\u0442\u043E \u043D\u0430 \u044D\u0442\u043E \u043D\u0435 \u043E\u0431\u0440\u0430\u0449\u0430\u0435\u0442 \u0432\u043D\u0438\u043C\u0430\u043D\u0438\u0435.\" txt_history_2=\" \u0418 \u0442\u043E\u043B\u044C\u043A\u043E \u0441\u043F\u0443\u0441\u0442\u044F \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043B\u0435\u0442 \u0432\u043E\u0435\u043D\u043D\u044B\u0435 \u0441\u043F\u0443\u0442\u043D\u0438\u043A\u0438 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u044E\u0442 \u043D\u0435\u043F\u043E\u043D\u044F\u0442\u043D\u0443\u044E \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0432 \u0442\u0435\u0445 \u0441\u0430\u043C\u044B\u0445 \u0434\u0436\u0443\u043D\u0433\u043B\u044F\u0445. \u041F\u0440\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u043E \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043D\u044B \u043F\u043E\u0441\u044B\u043B\u0430\u0435\u0442 \u044D\u043B\u0438\u0442\u043D\u043E\u0433\u043E \u043A\u043E\u043C\u043C\u0430\u043D\u0434\u043E\u0441 \u0440\u0430\u0437\u043E\u0431\u0440\u0430\u0442\u044C\u0441\u044F \u0432 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u041F\u043E \u043F\u0443\u0442\u0438 \u043F\u0440\u043E\u0438\u0441\u0445\u043E\u0434\u0438\u0442 \u0430\u0432\u0438\u0430\u043A\u0430\u0442\u0430\u0441\u0442\u0440\u043E\u0444\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0432\u044B\u0436\u0438\u0432\u0430\u044E\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u0432\u043E\u0435: \u044D\u043B\u0438\u0442\u043D\u044B\u0439 \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0441 \u0438 \u0441\u043F\u043E\u0440\u0442\u0441\u043C\u0435\u043D\u043A\u0430, \u043B\u0435\u0442\u0435\u0432\u0448\u0430\u044F \u043D\u0430 \u043E\u043B\u0438\u043C\u043F\u0438\u0430\u0434\u0443 \u0432 \u0421\u043E\u0447\u0438.\" txt_history_3=\" \u041C\u0438\u0440 \u0441\u043B\u043E\u0432\u043D\u043E \u0432\u0437\u0431\u0435\u0441\u0438\u043B\u0441\u044F. \u0412 \u044D\u0442\u043E\u043C \u0437\u0430\u0431\u044B\u0442\u043E\u043C \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u043E\u043C \u043C\u0435\u0441\u0442\u0435 \u043C\u0435\u043D\u044F \u043F\u044B\u0442\u0430\u044E\u0442\u0441\u044F \u0443\u0431\u0438\u0442\u044C \u043D\u0430 \u043A\u0430\u0436\u0434\u043E\u043C \u0448\u0430\u0433\u0443. \u0422\u043E, \u0447\u0442\u043E \u0440\u0430\u043D\u044C\u0448\u0435 \u0431\u044B\u043B\u043E \u043F\u0440\u043E\u0441\u0442\u043E \u043F\u0440\u043E\u0444\u0435\u0441\u0441\u0438\u0435\u0439, \u0442\u0435\u043F\u0435\u0440\u044C \u0435\u0434\u0438\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0441\u043F\u043E\u0441\u043E\u0431 \u0432\u044B\u0436\u0438\u0442\u044C. \u041D\u0430\u0434\u0435\u044E\u0441\u044C, \u044F \u0445\u043E\u0442\u044C \u043A\u0430\u043A-\u0442\u043E \u0441\u0443\u043C\u0435\u044E \u0440\u0430\u0437\u043E\u0431\u0440\u0430\u0442\u044C\u0441\u044F \u0432 \u043F\u0440\u043E\u0438\u0441\u0445\u043E\u0434\u044F\u0449\u0435\u043C \u0438 \u043F\u043E\u043A\u0438\u043D\u0443\u0442\u044C \u044D\u0442\u043E\u0442 \u0430\u0434.\" txt_history_4=\" \u041C\u043E\u0436\u0435\u0442, \u0437\u0434\u0435\u0441\u044C \u043F\u0440\u043E\u0432\u043E\u0434\u044F\u0442 \u043A\u0430\u043A\u0438\u0435-\u0442\u043E \u043E\u043F\u044B\u0442\u044B \u043D\u0430 \u043B\u044E\u0434\u044F\u0445? \u0412\u043F\u043E\u043B\u043D\u0435 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E, \u0447\u0442\u043E \u044D\u0442\u043E\u0442 \u043C\u043E\u043D\u0441\u0442\u0440 \u0431\u044B\u043B \u043A\u043E\u0433\u0434\u0430-\u0442\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u043E\u043C. \u0412 \u043B\u044E\u0431\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u043E\u043D \u0437\u0430\u043D\u0438\u043C\u0430\u043B \u0437\u0434\u0435\u0441\u044C \u043D\u0435 \u0440\u044F\u0434\u043E\u0432\u0443\u044E \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C. \u0411\u044B\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C \u043F\u043E \u043F\u0440\u0430\u0432\u0443 \u0441\u0438\u043B\u044C\u043D\u043E\u0433\u043E? \u0421\u043E\u043C\u043D\u0435\u0432\u0430\u044E\u0441\u044C. \u042D\u0442\u043E \u0436\u0438\u0432\u043E\u0442\u043D\u043E\u0435 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0432\u043E\u0437\u0433\u043B\u0430\u0432\u043B\u044F\u0442\u044C \u043F\u0440\u043E\u0438\u0441\u0445\u043E\u0434\u044F\u0449\u0435\u0435 \u0437\u0434\u0435\u0441\u044C. \u0414\u0443\u043C\u0430\u044E, \u043C\u0435\u043D\u044F \u0435\u0449\u0435 \u0436\u0434\u0435\u0442 \u0441\u0430\u043C\u043E\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u043D\u043E\u0435.\" txt_history_5=\" \u041F\u043E\u0445\u043E\u0436\u0435, \u043C\u043D\u0435 \u0432\u0441\u0435-\u0442\u0430\u043A\u0438 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0439\u0442\u0438 \u043A\u043E\u0440\u0435\u043D\u044C \u0437\u043B\u0430. \u0417\u0435\u043B\u0435\u043D\u044B\u0439, \u0432 \u043E\u0447\u043A\u0430\u0445, \u0441 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u043E\u043C. \u041F\u0440\u043E\u0433\u0443\u043B\u043A\u0430 \u043F\u043E \u0434\u0436\u0443\u043D\u0433\u043B\u044F\u043C \u0431\u044B\u043B\u0430 \u0441\u043B\u0430\u0432\u043D\u043E\u0439, \u043D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u0441\u043A\u0430\u0436\u0435\u0448\u044C, \u043D\u043E \u043F\u043E\u0440\u0430 \u0441 \u043D\u0435\u0439 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C. \u0413\u043B\u0430\u0432\u043D\u043E\u0435, \u0447\u0442\u043E \u0443 \u043D\u0435\u0433\u043E \u0435\u0441\u0442\u044C \u0438 \u043A\u043B\u044E\u0447 \u043A \u0441\u043A\u0443\u0442\u0435\u0440\u0443, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0438\u043B\u0441\u044F \u043D\u0430 \u0441\u0435\u0432\u0435\u0440\u0435. \u041D\u0430\u0434\u0435\u044E\u0441\u044C, \u044F \u0443\u0441\u043F\u0435\u044E.\" txt_history_6=\" \u0421\u043F\u0443\u0441\u0442\u044F 2 \u0434\u043D\u044F \u043F\u043E\u0441\u043B\u0435 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0430\u0433\u0435\u043D\u0442\u0430 \u0430\u043D\u043E\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0437\u043E\u043D\u0430 \u043F\u0435\u0440\u0435\u0441\u0442\u0430\u043B\u0430 \u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0441\u043F\u0443\u0442\u043D\u0438\u043A\u0430\u043C\u0438. \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u043F\u043E\u0441\u043B\u0430\u043D\u043D\u044B\u0435 \u0433\u0440\u0443\u043F\u043F\u044B \u0434\u043E\u043A\u043B\u0430\u0434\u044B\u0432\u0430\u043B\u0438 \u043E\u0431 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u043A\u0430\u043A\u0438\u0445 \u0431\u044B \u0442\u043E \u043D\u0438 \u0431\u044B\u043B\u043E \u0441\u043B\u0435\u0434\u043E\u0432 \u043F\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044F \u043B\u044E\u0434\u0435\u0439.\" />"});
if (_root.dlang == undefined) {
_root.dlang = 1;
}
_global.lang_xml = new XML(strs[_root.dlang].txt);
_global.xml_lang = _global.lang_xml.firstChild.attributes;
_global.xml_lang_loaded = true;
var map00 = new XML("<map id=\"Tat_Jungle_Tutorial\" tileset=\"1\" bg=\"1\" name=\"Jungle0\" uname=\"Tat\" datestamp=\"1196273173046\"><levels><level params=\"0000000000000000000000000000000000000000000000000\" /><level params=\"00000000a11111111111a000000111111a000000000000000\" /><level params=\"11q11111111111111111111111a111111111111a1z11a1a10\" /><level params=\"1111111111111111111111111111111111111111111111100\" /><level params=\"1111111111111111111111111111111111111111111111110\" /><level params=\"1111111111111111111111111111111111100011111111100\" /><level params=\"11111111111111111111111111111111111aaa111111111a0\" /><level params=\"1111111111111111111111111111111111111110001000110\" /><level params=\"111111111111111111111111111111111111111aa11111110\" /><level params=\"1111111111111111111111111111111111111111111111110\" /><level params=\"1111111111111111111111111111111111111111111111110\" /><level params=\"1111111111111111111111111111111111111111111111110\" /><level params=\"1111111111111111111111111111111111111111111111110\" /><level params=\"1111111111111111111111111111111111111111111111111\" /></levels><objs><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"46,2\" y=\"2\" x=\"46\" id=\"46,2\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"47,6\" y=\"6\" x=\"47\" id=\"47,6\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"39,2\" y=\"2\" x=\"39\" id=\"39,2\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"33,1\" y=\"1\" x=\"33\" id=\"33,1\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"8,1\" y=\"1\" x=\"8\" id=\"8,1\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"20,1\" y=\"1\" x=\"20\" id=\"20,1\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"26,2\" y=\"2\" x=\"26\" id=\"26,2\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><obj tall=\"10\" armor=\"0\" id_bak=\"36,6\" y=\"6\" x=\"36\" id=\"36,6\" name=\"Bonus_Capsule\" type=\"323\" score=\"5000\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"39,8\" y=\"8\" x=\"39\" id=\"39,8\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"40,8\" y=\"8\" x=\"40\" id=\"40,8\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"35,6\" y=\"6\" x=\"35\" id=\"35,6\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"44,2\" y=\"2\" x=\"44\" id=\"44,2\" name=\"Inf_Junior\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"37,6\" y=\"6\" x=\"37\" id=\"37,6\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /></objs></map>").firstChild;
var map0 = new XML("<map id=\"Badim_JungleLong\" tileset=\"1\" bg=\"1\" name=\"JungleLong\" uname=\"Badim\" datestamp=\"1186606940703\"><levels><level params=\"000000000000000000000000000000000000000000000000000000000000000000000000000000000000\" /><level params=\"a111111111q111111a11111a111111111111111a111111a1111111a1111a11111a111a11a11111111az1\" /><level params=\"111111111111111100000000111100000000000011000000000000000001000000000000000001111111\" /><level params=\"11111111111111111111111111111a11111111a11111a111a1a1111a111111a1111111a11a1a11111111\" /><level params=\"011111111111111111000000001000000001000000000010001000000000000000001111111111111111\" /><level params=\"111111111111111111111111a111111a11a11111111111111111aa1110011a1111a1111a111111111111\" /><level params=\"111111111111111111111111111111111111110001111111111a11100001111110000000000000000111\" /><level params=\"a1111111111111111111111111111111111111111111111111111111a00111111111111aaa111a111111\" /><level params=\"111111111111111111111111111111111111100000111111111111100001111111111111111111111111\" /><level params=\"1111111111111111111111111111111111111a1a1a1111111111111a1001111111111111111111111111\" /><level params=\"111111111111111111111111111111111111111111111111111111111001111111111111111111111111\" /><level params=\"111111111111111111111111111111111111111111111111111111111001111111111111111111111111\" /><level params=\"111111111111111111111111111111111111111111111111111111111001111111111111111111111111\" /><level params=\"111111111111111111111111111111111111111111111111111111111001111111111111111111111111\" /></levels><objs><obj armor=\"0\" tall=\"10\" hpmax=\"500\" id_bak=\"51,6\" y=\"6\" x=\"51\" id=\"51,6\" type=\"6\" hp=\"500\" speed=\"0.13\" score=\"10\" dmg=\"70\" /><obj armor=\"0\" tall=\"10\" hpmax=\"200\" id_bak=\"73,3\" y=\"3\" x=\"73\" id=\"73,3\" type=\"2\" hp=\"200\" ter=\"0\" score=\"50\" /><obj armor=\"0\" tall=\"10\" hpmax=\"500\" id_bak=\"71,5\" y=\"5\" x=\"71\" id=\"71,5\" type=\"6\" hp=\"500\" speed=\"0.13\" score=\"10\" dmg=\"70\" /><mine armor=\"0\" id_bak=\"29,3\" y=\"3\" x=\"29\" id=\"29,3\" type=\"3\" dmg=\"10\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"24,5\" y=\"5\" x=\"24\" id=\"24,5\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"38,3\" y=\"3\" x=\"38\" id=\"38,3\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"39,1\" y=\"1\" x=\"39\" id=\"39,1\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"48,3\" y=\"3\" x=\"48\" id=\"48,3\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"50,3\" y=\"3\" x=\"50\" id=\"50,3\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"46,1\" y=\"1\" x=\"46\" id=\"46,1\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"54,1\" y=\"1\" x=\"54\" id=\"54,1\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"55,3\" y=\"3\" x=\"55\" id=\"55,3\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"59,1\" y=\"1\" x=\"59\" id=\"59,1\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"66,5\" y=\"5\" x=\"66\" id=\"66,5\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"65,1\" y=\"1\" x=\"65\" id=\"65,1\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"69,1\" y=\"1\" x=\"69\" id=\"69,1\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"75,3\" y=\"3\" x=\"75\" id=\"75,3\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"71,7\" y=\"7\" x=\"71\" id=\"71,7\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"77,7\" y=\"7\" x=\"77\" id=\"77,7\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"81,1\" y=\"1\" x=\"81\" id=\"81,1\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><mine armor=\"0\" id_bak=\"72,1\" y=\"1\" x=\"72\" id=\"72,1\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"72,7\" y=\"7\" x=\"72\" id=\"72,7\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"61,5\" y=\"5\" x=\"61\" id=\"61,5\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"52,5\" y=\"5\" x=\"52\" id=\"52,5\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"44,3\" y=\"3\" x=\"44\" id=\"44,3\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"31,5\" y=\"5\" x=\"31\" id=\"31,5\" type=\"3\" dmg=\"10\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"56,7\" y=\"7\" x=\"56\" id=\"56,7\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"37,9\" y=\"9\" x=\"37\" id=\"37,9\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"41,9\" y=\"9\" x=\"41\" id=\"41,9\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><obj armor=\"0\" hpmax=\"10\" id_bak=\"39,9\" y=\"9\" x=\"39\" id=\"39,9\" type=\"300\" score=\"1000\" tall=\"0\" hp=\"10\" /><obj armor=\"0\" hpmax=\"40\" id_bak=\"70,3\" y=\"3\" x=\"70\" id=\"70,3\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" hpmax=\"40\" id_bak=\"73,7\" y=\"7\" x=\"73\" id=\"73,7\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" hpmax=\"40\" id_bak=\"53,5\" y=\"5\" x=\"53\" id=\"53,5\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" hpmax=\"40\" id_bak=\"17,1\" y=\"1\" x=\"17\" id=\"17,1\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"62,3\" y=\"3\" x=\"62\" id=\"62,3\" name=\"Stealth_Infantry\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"23,1\" y=\"1\" x=\"23\" id=\"23,1\" name=\"Stealth_Infantry\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><obj exit_xy=\"51,9\" tall=\"10\" armor=\"0\" id_bak=\"55,9\" y=\"9\" x=\"55\" id=\"55,9\" name=\"Teleport\" type=\"25\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"34,5\" y=\"5\" x=\"34\" id=\"34,5\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><obj tall=\"10\" armor=\"0\" id_bak=\"0,7\" y=\"7\" x=\"0\" id=\"0,7\" name=\"Bonus_Capsule\" type=\"323\" score=\"5000\" /><obj exit_xy=\"0,6\" tall=\"10\" armor=\"0\" id_bak=\"0,1\" y=\"1\" x=\"0\" id=\"0,1\" name=\"Teleport\" type=\"26\" /></objs></map>").firstChild;
var map1 = new XML("<map uname=\"Badim\" name=\"Jungle_2\" bg=\"1\" tileset=\"1\" id=\"Badim_Jungle_2\" datestamp=\"1186607040359\"><levels><level params=\"00000000000000000000000000000000000000000000000000000000000\" /><level params=\"1111q11111aaaa1ar1100000000000000000000000000000aa000000000\" /><level params=\"1111111110000001r111111a1a11111a11111a1a1111a11111a1111aaa0\" /><level params=\"11111111111111a1r111111111000011100001000000001111111111a10\" /><level params=\"1111111111111000t111100001111a1111r111000000001111111111110\" /><level params=\"1111111111111111r1111a111111111111r111111a11000000000000000\" /><level params=\"0000000000001111r11111111111111111r111100001000000000000000\" /><level params=\"1aaaa1111a111111r11100000000000000t0111111111111111aaa11z10\" /><level params=\"a111111110111000t0011111111aa11111r111111111111111111111110\" /><level params=\"1111111110111a11r111111111111111111111111111111111111111110\" /><level params=\"a111111110111111r111111111111111111111111111111111111111110\" /><level params=\"1111111110111100t001111111111a11111111111111111111111111110\" /><level params=\"1111111110111100r001111111111111111111111111111111111111110\" /><level params=\"1111111110111100t000000111111001111111111111111111111111110\" /><level params=\"11111111101111a1r111a111100111a1100011111111111111111111110\" /><level params=\"11111111101111111111111111a11001111a11111111111111111111110\" /><level params=\"111111111011111111111111111111a1111111111111111111111111110\" /><level params=\"1111111110111111111111111111111111a111111111111111111111110\" /><level params=\"11111111101111111111111111111111111111111111111111111111110\" /><level params=\"11111111101111111111111111111111111111111111111111111111110\" /><level params=\"11111111101111111111111111111111111111111111111111111111110\" /><level params=\"11111111101111111111111111111111111111111111111111111111110\" /><level params=\"11111111101111111111111111111111111111111111111111111111110\" /><level params=\"11111111101111111111111111111111111111111111111111111111110\" /></levels><objs><ppl armor=\"0\" score=\"100\" name=\"Infantry\" tall=\"8\" hpmax=\"70\" st=\"1\" id_bak=\"14,3\" y=\"3\" x=\"14\" id=\"14,3\" type=\"13\" hp=\"70\" dmg=\"25\" speed=\"0.1\" /><ppl armor=\"0\" score=\"100\" name=\"Infantry\" tall=\"8\" hpmax=\"70\" st=\"1\" id_bak=\"15,1\" y=\"1\" x=\"15\" id=\"15,1\" type=\"13\" hp=\"70\" dmg=\"25\" speed=\"0.1\" /><ppl armor=\"0\" score=\"100\" name=\"Infantry\" tall=\"8\" hpmax=\"70\" st=\"1\" id_bak=\"25,2\" y=\"2\" x=\"25\" id=\"25,2\" type=\"13\" hp=\"70\" dmg=\"25\" speed=\"0.1\" /><ppl armor=\"0\" score=\"100\" name=\"Infantry\" tall=\"8\" hpmax=\"70\" st=\"1\" id_bak=\"37,2\" y=\"2\" x=\"37\" id=\"37,2\" type=\"13\" hp=\"70\" dmg=\"25\" speed=\"-0.1\" /><ppl armor=\"0\" score=\"100\" name=\"Infantry\" tall=\"8\" hpmax=\"70\" st=\"1\" id_bak=\"41,5\" y=\"5\" x=\"41\" id=\"41,5\" type=\"13\" hp=\"70\" dmg=\"25\" speed=\"0.1\" /><ppl armor=\"0\" score=\"300\" name=\"Sniper\" hpmax=\"10\" st=\"1\" id_bak=\"50,2\" y=\"2\" x=\"50\" id=\"50,2\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"-0.1\" tall=\"5\" /><ppl armor=\"0\" score=\"300\" name=\"Sniper\" hpmax=\"10\" st=\"1\" id_bak=\"21,5\" y=\"5\" x=\"21\" id=\"21,5\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" /><ppl armor=\"0\" score=\"100\" name=\"Infantry\" hpmax=\"20\" st=\"1\" id_bak=\"29,4\" y=\"4\" x=\"29\" id=\"29,4\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" score=\"100\" name=\"Infantry\" hpmax=\"20\" st=\"1\" id_bak=\"51,7\" y=\"7\" x=\"51\" id=\"51,7\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" score=\"100\" name=\"Infantry\" hpmax=\"20\" st=\"1\" id_bak=\"53,7\" y=\"7\" x=\"53\" id=\"53,7\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" score=\"100\" name=\"Infantry\" hpmax=\"20\" st=\"1\" id_bak=\"52,7\" y=\"7\" x=\"52\" id=\"52,7\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><obj armor=\"0\" name=\"Door_small\" tall=\"10\" hpmax=\"400\" id_bak=\"9,7\" y=\"7\" x=\"9\" id=\"9,7\" type=\"7\" hp=\"400\" ter=\"0\" score=\"100\" /><obj armor=\"0\" name=\"Door_small_destroed\" tall=\"10\" hpmax=\"0\" id_bak=\"39,2\" y=\"2\" x=\"39\" id=\"39,2\" type=\"100\" hp=\"0\" ter=\"1\" score=\"0\" /><obj armor=\"0\" name=\"Door_small\" tall=\"10\" hpmax=\"400\" id_bak=\"44,2\" y=\"2\" x=\"44\" id=\"44,2\" type=\"7\" hp=\"400\" ter=\"0\" score=\"100\" /><obj armor=\"0\" name=\"Barrel\" hpmax=\"100\" id_bak=\"11,1\" y=\"1\" x=\"11\" id=\"11,1\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" tall=\"10\" hpmax=\"500\" id_bak=\"29,11\" y=\"11\" x=\"29\" id=\"29,11\" type=\"6\" hp=\"500\" speed=\"0.13\" score=\"10\" dmg=\"70\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"28,8\" y=\"8\" x=\"28\" id=\"28,8\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><obj _landed=\"false\" armor=\"0\" tall=\"10\" hpmax=\"500\" id_bak=\"0,10\" y=\"10\" x=\"0\" id=\"0,10\" type=\"6\" hp=\"500\" speed=\"0.13\" score=\"10\" dmg=\"70\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"1,7\" y=\"7\" x=\"1\" id=\"1,7\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" score=\"150\" /><obj _landed=\"true\" armor=\"0\" hpmax=\"10\" id_bak=\"0,8\" y=\"8\" x=\"0\" id=\"0,8\" type=\"301\" score=\"100\" tall=\"0\" hp=\"10\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"56,2\" y=\"2\" x=\"56\" id=\"56,2\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" score=\"150\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"55,2\" y=\"2\" x=\"55\" id=\"55,2\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"23,2\" y=\"2\" x=\"23\" id=\"23,2\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" score=\"150\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"27,8\" y=\"8\" x=\"27\" id=\"27,8\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"2,7\" y=\"7\" x=\"2\" id=\"2,7\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"3,7\" y=\"7\" x=\"3\" id=\"3,7\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"4,7\" y=\"7\" x=\"4\" id=\"4,7\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" score=\"150\" /><mine armor=\"0\" id_bak=\"48,1\" y=\"1\" x=\"48\" id=\"48,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"49,1\" y=\"1\" x=\"49\" id=\"49,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><ppl toshoot=\"0\" hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"31,2\" y=\"2\" x=\"31\" id=\"31,2\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl toshoot=\"25\" hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"13,9\" y=\"9\" x=\"13\" id=\"13,9\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><obj hpmax=\"40\" armor=\"0\" id_bak=\"10,1\" y=\"1\" x=\"10\" id=\"10,1\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><obj hpmax=\"40\" armor=\"0\" id_bak=\"12,1\" y=\"1\" x=\"12\" id=\"12,1\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><obj hpmax=\"40\" armor=\"0\" id_bak=\"13,1\" y=\"1\" x=\"13\" id=\"13,1\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"56,3\" y=\"3\" x=\"56\" id=\"56,3\" name=\"Bonus_score_1000\" type=\"300\" score=\"1000\" tall=\"0\" hp=\"10\" /><obj exit_xy=\"35,4\" tall=\"10\" armor=\"0\" id_bak=\"57,2\" y=\"2\" x=\"57\" id=\"57,2\" name=\"Teleport\" type=\"25\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"30,16\" y=\"16\" x=\"30\" id=\"30,16\" name=\"Inf_Junior\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"26,15\" y=\"15\" x=\"26\" id=\"26,15\" name=\"Inf_Junior\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"20,14\" y=\"14\" x=\"20\" id=\"20,14\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"14,14\" y=\"14\" x=\"14\" id=\"14,14\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"30,14\" y=\"14\" x=\"30\" id=\"30,14\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><obj tall=\"10\" armor=\"0\" id_bak=\"34,17\" y=\"17\" x=\"34\" id=\"34,17\" name=\"Bonus_Capsule\" type=\"323\" score=\"5000\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"35,15\" y=\"15\" x=\"35\" id=\"35,15\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /></objs></map>").firstChild;
var map2 = new XML("<map id=\"Badim_Jungle_3\" tileset=\"1\" bg=\"1\" name=\"Jungle_3\" uname=\"Badim\" datestamp=\"1189634566859\"><levels><level params=\"00000000000000000000000000000000000000000000\" /><level params=\"0aaa1z11a1a11111a11a11a1111a111aa11111111aa0\" /><level params=\"011111111111111111111111111111100111111111a0\" /><level params=\"01111111111111111111111111100110011111111110\" /><level params=\"011111111111111111111111111001100111111111a0\" /><level params=\"00000000000000000000000000000010000000000000\" /><level params=\"00000000000000000000000000000010000000000000\" /><level params=\"00000000000000000a1a1a000000001001111111aa11\" /><level params=\"0000000000000000011111000000001a111111111111\" /><level params=\"0aaaa1111a11111aa11111a1a11a11111111111111a1\" /><level params=\"01111111111111111111111111111111111111111111\" /><level params=\"01000110000001100111111000011111111111111111\" /><level params=\"01000110000001100000000000010000000000000000\" /><level params=\"11aaa111111001100000000000010000000000000000\" /><level params=\"1111111111100111a1111a1111a10000000000000000\" /><level params=\"00000011111000000011000000000000000000000000\" /><level params=\"0000001a111000000011000000000000000000000000\" /><level params=\"001111111111111100110000111a1111111111111111\" /><level params=\"00000000000000000011000011111111111111111111\" /><level params=\"00000000000000000011000011000111111111111111\" /><level params=\"11q11111a1a1a11aa111aa0011000111111111111111\" /><level params=\"11111111111111111111110011000011111111111111\" /><level params=\"11111111111111111111110011000000000000000111\" /><level params=\"11111111111111111111110011000000000000000000\" /><level params=\"11111111111111111111110011000000000000000000\" /></levels><objs><ppl armor=\"0\" score=\"100\" name=\"Infantry\" hpmax=\"20\" st=\"1\" id_bak=\"16,20\" y=\"20\" x=\"16\" id=\"16,20\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" score=\"300\" name=\"Sniper\" hpmax=\"10\" st=\"1\" id_bak=\"20,20\" y=\"20\" x=\"20\" id=\"20,20\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" /><ppl armor=\"0\" score=\"100\" name=\"Infantry\" hpmax=\"20\" st=\"1\" id_bak=\"16,9\" y=\"9\" x=\"16\" id=\"16,9\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" score=\"100\" name=\"Infantry\" hpmax=\"20\" st=\"1\" id_bak=\"22,9\" y=\"9\" x=\"22\" id=\"22,9\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" score=\"100\" name=\"Infantry\" hpmax=\"20\" st=\"1\" id_bak=\"27,9\" y=\"9\" x=\"27\" id=\"27,9\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><obj armor=\"0\" name=\"Door_small\" tall=\"10\" hpmax=\"400\" id_bak=\"16,14\" y=\"14\" x=\"16\" id=\"16,14\" type=\"7\" hp=\"400\" ter=\"0\" score=\"100\" /><obj armor=\"0\" name=\"Door_small_destroed\" tall=\"10\" hpmax=\"0\" id_bak=\"21,14\" y=\"14\" x=\"21\" id=\"21,14\" type=\"100\" hp=\"0\" ter=\"1\" score=\"0\" /><obj armor=\"0\" name=\"Door_big_destroed\" tall=\"10\" hpmax=\"0\" id_bak=\"24,9\" y=\"9\" x=\"24\" id=\"24,9\" type=\"101\" hp=\"0\" ter=\"1\" score=\"0\" /><obj armor=\"0\" name=\"Door_big_destroed\" tall=\"10\" hpmax=\"0\" id_bak=\"15,9\" y=\"9\" x=\"15\" id=\"15,9\" type=\"101\" hp=\"0\" ter=\"1\" score=\"0\" /><obj armor=\"0\" name=\"Door_big_destroed\" tall=\"10\" hpmax=\"0\" id_bak=\"9,9\" y=\"9\" x=\"9\" id=\"9,9\" type=\"101\" hp=\"0\" ter=\"1\" score=\"0\" /><obj armor=\"0\" name=\"Door_small\" tall=\"10\" hpmax=\"400\" id_bak=\"32,1\" y=\"1\" x=\"32\" id=\"32,1\" type=\"7\" hp=\"400\" ter=\"0\" score=\"100\" /><obj armor=\"0\" name=\"Door_big_destroed\" tall=\"10\" hpmax=\"0\" id_bak=\"27,1\" y=\"1\" x=\"27\" id=\"27,1\" type=\"101\" hp=\"0\" ter=\"1\" score=\"0\" /><ppl armor=\"0\" name=\"Infantry\" hpmax=\"20\" st=\"1\" id_bak=\"10,20\" y=\"20\" x=\"10\" id=\"10,20\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><mine armor=\"0\" name=\"Jungle_Mine\" id_bak=\"8,20\" y=\"20\" x=\"8\" id=\"8,20\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" name=\"Jungle_Mine\" id_bak=\"15,20\" y=\"20\" x=\"15\" id=\"15,20\" type=\"3\" dmg=\"10\" /><obj armor=\"0\" name=\"Door_big\" tall=\"10\" hpmax=\"200\" id_bak=\"27,17\" y=\"17\" x=\"27\" id=\"27,17\" type=\"8\" hp=\"200\" ter=\"0\" ter_up=\"0\" score=\"200\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"31,8\" y=\"8\" x=\"31\" id=\"31,8\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"10,1\" y=\"1\" x=\"10\" id=\"10,1\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"19,1\" y=\"1\" x=\"19\" id=\"19,1\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"21,20\" y=\"20\" x=\"21\" id=\"21,20\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" tall=\"10\" hpmax=\"200\" id_bak=\"1,1\" y=\"1\" x=\"1\" id=\"1,1\" type=\"2\" hp=\"200\" ter=\"0\" score=\"50\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"2,1\" y=\"1\" x=\"2\" id=\"2,1\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"12,20\" y=\"20\" x=\"12\" id=\"12,20\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"22,1\" y=\"1\" x=\"22\" id=\"22,1\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"3,1\" y=\"1\" x=\"3\" id=\"3,1\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"26,14\" y=\"14\" x=\"26\" id=\"26,14\" name=\"Jungle_Samuray\" type=\"14\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"3,9\" y=\"9\" x=\"3\" id=\"3,9\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"4,9\" y=\"9\" x=\"4\" id=\"4,9\" name=\"Inf_Junior\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"40,7\" y=\"7\" x=\"40\" id=\"40,7\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"41,7\" y=\"7\" x=\"41\" id=\"41,7\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"42,1\" y=\"1\" x=\"42\" id=\"42,1\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"41,1\" y=\"1\" x=\"41\" id=\"41,1\" name=\"Jungle_Samuray\" type=\"14\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><obj tall=\"10\" hpmax=\"500\" armor=\"0\" id_bak=\"42,4\" y=\"4\" x=\"42\" id=\"42,4\" name=\"Rock_Left\" type=\"6\" hp=\"500\" speed=\"-0.13\" score=\"10\" dmg=\"70\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"31,1\" y=\"1\" x=\"31\" id=\"31,1\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"16,1\" y=\"1\" x=\"16\" id=\"16,1\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"8,1\" y=\"1\" x=\"8\" id=\"8,1\" name=\"Jungle_Samuray_Hided\" type=\"14\" hide_range=\"4\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><obj exit_xy=\"10,13\" tall=\"10\" armor=\"0\" id_bak=\"1,9\" y=\"9\" x=\"1\" id=\"1,9\" name=\"Teleport\" type=\"25\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"2,9\" y=\"9\" x=\"2\" id=\"2,9\" name=\"Jungle_Samuray_Hided\" type=\"14\" hide_range=\"4\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><mine armor=\"0\" id_bak=\"17,7\" y=\"7\" x=\"17\" id=\"17,7\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"21,7\" y=\"7\" x=\"21\" id=\"21,7\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"19,7\" y=\"7\" x=\"19\" id=\"19,7\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><obj armor=\"0\" id_bak=\"42,9\" y=\"9\" x=\"42\" id=\"42,9\" name=\"Bonus_score_1000\" type=\"300\" score=\"1000\" tall=\"0\" /><obj armor=\"0\" id_bak=\"42,2\" y=\"2\" x=\"42\" id=\"42,2\" name=\"Enable_weap_2\" type=\"302\" score=\"100\" tall=\"0\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"4,13\" y=\"13\" x=\"4\" id=\"4,13\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"3,13\" y=\"13\" x=\"3\" id=\"3,13\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"2,13\" y=\"13\" x=\"2\" id=\"2,13\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><obj tall=\"10\" armor=\"0\" id_bak=\"7,16\" y=\"16\" x=\"7\" id=\"7,16\" name=\"Bonus_Capsule\" type=\"323\" score=\"5000\" /></objs></map>").firstChild;
var map3 = new XML("<map datestamp=\"1185142792437\" uname=\"Dn\" name=\"Jungle_4\" bg=\"2\" tileset=\"1\" id=\"Dn_Jungle_4\"><levels><level params=\"0000000001111111001111000000000000000000000011111100000000000000000001100000000000000000100001000111110\" /><level params=\"0000q1111111100100111000000aa11000000000a00011111100000000001aa11001111a1000011a10000000111001000100000\" /><level params=\"000011100100011100111000000111111100a00010001111110000111a1111111111100011a11111100011a1111001111100000\" /><level params=\"00a111111100011100110000000000111111111111a110011110001111111000111111a111111111111a11111111a11111a1z11\" /><level params=\"1111111111a111000011000000000011111111111111100001111r1110000000000011111000000111111111111111111111111\" /><level params=\"1100110000111100001111a110000111111111111111111a11111r1110000000000000100000000110000111111110000111111\" /><level params=\"111111a1a1111111a111111110011100111001111110011110000t0000000000000000100000000110000110001111a11100000\" /><level params=\"1111111111111111111111111111111111100110001000011001ar11a1a10000000000100000011111ar1110001111111100000\" /><level params=\"1111111111111111111111111111111000111100001r111111111111111111aa00001111a1aa1111111r1111a1100001111a100\" /><level params=\"11111111111111111111111111111111a11111a1000t011111111110001111111a1a111111111111111r111111111a111111a00\" /><level params=\"1111111111111111111111111111111111111111111ra11111111110001111000000111110000111111r1111111111111111100\" /><level params=\"11111111111111111111111111111111111111111111111111111110000000000000000000000000000t0111111111111111000\" /><level params=\"111111111111111111111111111111111111111110011110000000000000000000000000000aaaa1111r1111111111111100000\" /><level params=\"1111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000\" /><level params=\"1111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000\" /><level params=\"1111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000\" /><level params=\"1111111111111111111111111111111111111111100000000000000000000000000000000000000000000000000000000000000\" /></levels><objs><obj armor=\"0\" tall=\"10\" hpmax=\"200\" id_bak=\"57,2\" y=\"2\" x=\"57\" id=\"57,2\" type=\"8\" hp=\"200\" ter_up=\"0\" ter=\"0\" score=\"200\" /><obj armor=\"0\" tall=\"10\" hpmax=\"0\" id_bak=\"62,1\" y=\"1\" x=\"62\" id=\"62,1\" type=\"101\" hp=\"0\" ter=\"1\" score=\"0\" /><obj armor=\"0\" tall=\"10\" hpmax=\"400\" id_bak=\"65,9\" y=\"9\" x=\"65\" id=\"65,9\" type=\"7\" hp=\"400\" ter=\"0\" score=\"100\" /><obj armor=\"0\" tall=\"10\" hpmax=\"0\" id_bak=\"75,8\" y=\"8\" x=\"75\" id=\"75,8\" type=\"101\" hp=\"0\" ter=\"1\" score=\"0\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"10,4\" y=\"4\" x=\"10\" id=\"10,4\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"16,6\" y=\"6\" x=\"16\" id=\"16,6\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"22,5\" y=\"5\" x=\"22\" id=\"22,5\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"32,9\" y=\"9\" x=\"32\" id=\"32,9\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"38,9\" y=\"9\" x=\"38\" id=\"38,9\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"42,3\" y=\"3\" x=\"42\" id=\"42,3\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"44,10\" y=\"10\" x=\"44\" id=\"44,10\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"52,7\" y=\"7\" x=\"52\" id=\"52,7\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"61,1\" y=\"1\" x=\"61\" id=\"61,1\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"58,7\" y=\"7\" x=\"58\" id=\"58,7\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"67,9\" y=\"9\" x=\"67\" id=\"67,9\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"70,3\" y=\"3\" x=\"70\" id=\"70,3\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"71,1\" y=\"1\" x=\"71\" id=\"71,1\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl exp_range=\"2\" armor=\"0\" hpmax=\"50\" st=\"1\" id_bak=\"79,1\" y=\"1\" x=\"79\" id=\"79,1\" type=\"12\" hp=\"50\" dmg=\"50\" speed=\"0.14\" tall=\"7\" score=\"300\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"82,7\" y=\"7\" x=\"82\" id=\"82,7\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"92,3\" y=\"3\" x=\"92\" id=\"92,3\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"98,3\" y=\"3\" x=\"98\" id=\"98,3\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"94,6\" y=\"6\" x=\"94\" id=\"94,6\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"83,3\" y=\"3\" x=\"83\" id=\"83,3\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl exp_range=\"2\" armor=\"0\" hpmax=\"50\" st=\"1\" id_bak=\"93,9\" y=\"9\" x=\"93\" id=\"93,9\" type=\"12\" hp=\"50\" dmg=\"50\" speed=\"0.14\" tall=\"7\" score=\"300\" /><ppl exp_range=\"2\" armor=\"0\" hpmax=\"50\" st=\"1\" id_bak=\"86,2\" y=\"2\" x=\"86\" id=\"86,2\" type=\"12\" hp=\"50\" dmg=\"50\" speed=\"0.14\" tall=\"7\" score=\"300\" /><obj armor=\"0\" hpmax=\"10\" id_bak=\"100,9\" y=\"9\" x=\"100\" id=\"100,9\" type=\"300\" score=\"1000\" tall=\"0\" hp=\"10\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"88,8\" y=\"8\" x=\"88\" id=\"88,8\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"6,6\" y=\"6\" x=\"6\" id=\"6,6\" name=\"Stealth_Infantry\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" score=\"150\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"8,6\" y=\"6\" x=\"8\" id=\"8,6\" name=\"Infantry\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" score=\"100\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"99,8\" y=\"8\" x=\"99\" id=\"99,8\" name=\"Stealth_Infantry\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl armor=\"0\" hpmax=\"50\" st=\"1\" id_bak=\"72,8\" y=\"8\" x=\"72\" id=\"72,8\" name=\"Fanatic\" type=\"12\" hp=\"50\" dmg=\"50\" speed=\"0.14\" tall=\"7\" score=\"300\" exp_range=\"2\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"27,1\" y=\"1\" x=\"27\" id=\"27,1\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><ppl hpmax=\"60\" st=\"1\" armor=\"0\" id_bak=\"28,1\" y=\"1\" x=\"28\" id=\"28,1\" name=\"Inf_Stealth(lvl:2)\" type=\"13\" hide_range=\"3\" hp=\"60\" dmg=\"35\" speed=\"0.11\" tall=\"8\" score=\"300\" /><obj exit_xy=\"7,6\" tall=\"10\" armor=\"0\" id_bak=\"2,3\" y=\"3\" x=\"2\" id=\"2,3\" name=\"Teleport\" type=\"25\" /><mine armor=\"0\" id_bak=\"36,2\" y=\"2\" x=\"36\" id=\"36,2\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"40,1\" y=\"1\" x=\"40\" id=\"40,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><obj exit_xy=\"51,7\" tall=\"10\" armor=\"0\" id_bak=\"47,5\" y=\"5\" x=\"47\" id=\"47,5\" name=\"Teleport\" type=\"25\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"74,2\" y=\"2\" x=\"74\" id=\"74,2\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"63,8\" y=\"8\" x=\"63\" id=\"63,8\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"62,8\" y=\"8\" x=\"62\" id=\"62,8\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><obj tall=\"10\" hpmax=\"0\" armor=\"0\" id_bak=\"56,7\" y=\"7\" x=\"56\" id=\"56,7\" name=\"Door_big_destroed\" type=\"101\" hp=\"0\" ter=\"1\" score=\"0\" /><obj tall=\"10\" hpmax=\"0\" armor=\"0\" id_bak=\"74,8\" y=\"8\" x=\"74\" id=\"74,8\" name=\"Door_big_destroed\" type=\"101\" hp=\"0\" ter=\"1\" score=\"0\" /><obj tall=\"10\" armor=\"0\" id_bak=\"75,12\" y=\"12\" x=\"75\" id=\"75,12\" name=\"Bonus_Capsule\" type=\"323\" score=\"5000\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"76,12\" y=\"12\" x=\"76\" id=\"76,12\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"77,12\" y=\"12\" x=\"77\" id=\"77,12\" name=\"Jungle_Samuray\" type=\"14\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"78,12\" y=\"12\" x=\"78\" id=\"78,12\" name=\"Jungle_Samuray_Hided\" type=\"14\" hide_range=\"4\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /></objs></map>").firstChild;
var map4 = new XML("<map uname=\"Tat\" name=\"Jungle_5\" bg=\"1\" tileset=\"1\" id=\"Tat_Jungle_5\" datestamp=\"1186607352796\"><levels><level params=\"000000000000000000000000000000000000000000000000000000000000000000000000000000000000\" /><level params=\"0aaaaaaaaaa0000r11a000000a111a0000000000111aa110000a00000001111a00000111100000000000\" /><level params=\"000001110000011r11111a111111111111111a11110011111a111a1111111111111a1111111a1aa00000\" /><level params=\"11q111111111a11r111111111100001110000100000011111111100001100011111111111111111aaa00\" /><level params=\"111111111100000t000110001111a11111a1111111111000000000000100001111110011110011111100\" /><level params=\"111111111111111r0001111111111111111000011000000111a11a111100000000000000000000111100\" /><level params=\"111000000111111111110011110000011111a11100000001000010011000000000000000000000000000\" /><level params=\"1111a1ra1111111110000011111111a1111111111111a00011111000111a10011111111a000000000000\" /><level params=\"111111r11111111111aa1110001111111111111111000000111000001111111110000001111000000000\" /><level params=\"111110t000100000011000000001111111111111111111a11111111a11011110000000011111a111z100\" /><level params=\"111111r111111a11111111a11111111111111111111111111111111111011111r11a1000011111111100\" /><level params=\"1111111111111a100a0011111111111111111111111111111111111111011111r1111111111001111100\" /><level params=\"1111111111111111111110000000000000000000111100000000000011010000t0001111110000000000\" /><level params=\"0001111111100111111111111a10000000000000000100000000000001000001r1a11100000000000000\" /><level params=\"000111111110000011111111111aaa111111a1111111111110000a0000111a11r1111000000001aa1000\" /><level params=\"00001110001000001111110001111111111111111111110011a11111a1100000t00000000111a1111000\" /><level params=\"0000000000000000000000000001111001111000001110001111111111111111r1a11111a11111111aa1\" /><level params=\"000000000000000000000000000001100a11000000000000111111111111111111110001111111111111\" /><level params=\"00000000000000000000000000000000000000000000000000011a111111111111000000000001111000\" /><level params=\"000000000000000000000000000000000000000000000000000001110000000000000000000000110000\" /><level params=\"000000000000000000000000000000000000000000000000000000000000000000000000000000000000\" /><level params=\"000000000000000000000000000000000000000000000000000000000000000000000000000000000000\" /></levels><objs><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"53,2\" y=\"2\" x=\"53\" id=\"53,2\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"50,5\" y=\"5\" x=\"50\" id=\"50,5\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"53,5\" y=\"5\" x=\"53\" id=\"53,5\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl exp_range=\"2\" armor=\"0\" hpmax=\"50\" st=\"1\" id_bak=\"67,10\" y=\"10\" x=\"67\" id=\"67,10\" type=\"12\" hp=\"50\" dmg=\"50\" speed=\"0.14\" tall=\"7\" /><ppl exp_range=\"2\" armor=\"0\" _landed=\"false\" hpmax=\"50\" st=\"1\" id_bak=\"76,9\" y=\"9\" x=\"76\" id=\"76,9\" type=\"12\" hp=\"50\" dmg=\"50\" speed=\"-0.14\" tall=\"4\" /><ter_size armor=\"0\" id_bak=\"13,11\" y=\"11\" x=\"13\" id=\"13,11\" type=\"-22\" /><ter_size armor=\"0\" id_bak=\"17,11\" y=\"11\" x=\"17\" id=\"17,11\" type=\"-22\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"75,2\" y=\"2\" x=\"75\" id=\"75,2\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"63,1\" y=\"1\" x=\"63\" id=\"63,1\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"44,1\" y=\"1\" x=\"44\" id=\"44,1\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"22,10\" y=\"10\" x=\"22\" id=\"22,10\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"-0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"36,14\" y=\"14\" x=\"36\" id=\"36,14\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"-0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"29,14\" y=\"14\" x=\"29\" id=\"29,14\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"36,6\" y=\"6\" x=\"36\" id=\"36,6\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"46,9\" y=\"9\" x=\"46\" id=\"46,9\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"71,7\" y=\"7\" x=\"71\" id=\"71,7\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"49,2\" y=\"2\" x=\"49\" id=\"49,2\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"-0.1\" tall=\"8\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"34,4\" y=\"4\" x=\"34\" id=\"34,4\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"13,10\" y=\"10\" x=\"13\" id=\"13,10\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"61,14\" y=\"14\" x=\"61\" id=\"61,14\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl exp_range=\"2\" armor=\"0\" hpmax=\"50\" st=\"1\" id_bak=\"66,16\" y=\"16\" x=\"66\" id=\"66,16\" type=\"12\" hp=\"50\" dmg=\"50\" speed=\"0.14\" tall=\"7\" /><ppl exp_range=\"2\" armor=\"0\" hpmax=\"50\" st=\"1\" id_bak=\"59,7\" y=\"7\" x=\"59\" id=\"59,7\" type=\"12\" hp=\"50\" dmg=\"50\" speed=\"0.14\" tall=\"7\" /><ppl exp_range=\"2\" armor=\"0\" _landed=\"true\" hpmax=\"50\" st=\"1\" id_bak=\"79,14\" y=\"14\" x=\"79\" id=\"79,14\" type=\"12\" hp=\"50\" dmg=\"50\" speed=\"-0.14\" tall=\"4\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"28,4\" y=\"4\" x=\"28\" id=\"28,4\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"44,7\" y=\"7\" x=\"44\" id=\"44,7\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"-0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"55,9\" y=\"9\" x=\"55\" id=\"55,9\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"56,15\" y=\"15\" x=\"56\" id=\"56,15\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"76,15\" y=\"15\" x=\"76\" id=\"76,15\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"37,2\" y=\"2\" x=\"37\" id=\"37,2\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"10\" st=\"1\" id_bak=\"4,7\" y=\"7\" x=\"4\" id=\"4,7\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"30,7\" y=\"7\" x=\"30\" id=\"30,7\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><ppl armor=\"0\" hpmax=\"20\" st=\"1\" id_bak=\"72,16\" y=\"16\" x=\"72\" id=\"72,16\" type=\"13\" hp=\"20\" dmg=\"25\" speed=\"0.1\" tall=\"8\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"7,7\" y=\"7\" x=\"7\" id=\"7,7\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"18,8\" y=\"8\" x=\"18\" id=\"18,8\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"19,8\" y=\"8\" x=\"19\" id=\"19,8\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"28,14\" y=\"14\" x=\"28\" id=\"28,14\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"27,14\" y=\"14\" x=\"27\" id=\"27,14\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"81,16\" y=\"16\" x=\"81\" id=\"81,16\" name=\"Stealth_Infantry\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><obj armor=\"0\" hpmax=\"10\" id_bak=\"82,16\" y=\"16\" x=\"82\" id=\"82,16\" name=\"Bonus_score_1000\" type=\"300\" score=\"1000\" tall=\"0\" hp=\"10\" /><ppl armor=\"0\" hpmax=\"50\" st=\"1\" id_bak=\"77,2\" y=\"2\" x=\"77\" id=\"77,2\" name=\"Fanatic\" type=\"12\" hp=\"50\" dmg=\"50\" speed=\"0.14\" tall=\"7\" score=\"300\" exp_range=\"2\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"80,3\" y=\"3\" x=\"80\" id=\"80,3\" name=\"Stealth_Infantry\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl armor=\"0\" hpmax=\"30\" st=\"1\" id_bak=\"79,3\" y=\"3\" x=\"79\" id=\"79,3\" name=\"Stealth_Infantry\" type=\"13\" hide_range=\"5\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><obj armor=\"0\" hpmax=\"40\" id_bak=\"78,2\" y=\"2\" x=\"78\" id=\"78,2\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" hpmax=\"10\" id_bak=\"81,3\" y=\"3\" x=\"81\" id=\"81,3\" name=\"Enable_weap_3\" type=\"303\" score=\"100\" tall=\"0\" hp=\"10\" /><ppl armor=\"0\" hpmax=\"50\" st=\"1\" id_bak=\"67,2\" y=\"2\" x=\"67\" id=\"67,2\" name=\"Fanatic\" type=\"12\" hp=\"50\" dmg=\"50\" speed=\"0.14\" tall=\"7\" score=\"300\" exp_range=\"2\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"29,1\" y=\"1\" x=\"29\" id=\"29,1\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"25,1\" y=\"1\" x=\"25\" id=\"25,1\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"43,1\" y=\"1\" x=\"43\" id=\"43,1\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"33,17\" y=\"17\" x=\"33\" id=\"33,17\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"66,13\" y=\"13\" x=\"66\" id=\"66,13\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><mine armor=\"0\" id_bak=\"5,1\" y=\"1\" x=\"5\" id=\"5,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"6,1\" y=\"1\" x=\"6\" id=\"6,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"7,1\" y=\"1\" x=\"7\" id=\"7,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"8,1\" y=\"1\" x=\"8\" id=\"8,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"9,1\" y=\"1\" x=\"9\" id=\"9,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><ppl hpmax=\"60\" st=\"1\" armor=\"0\" id_bak=\"12,3\" y=\"3\" x=\"12\" id=\"12,3\" name=\"Inf_Stealth(lvl:2)\" type=\"13\" hide_range=\"3\" hp=\"60\" dmg=\"35\" speed=\"0.11\" tall=\"8\" score=\"300\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"18,1\" y=\"1\" x=\"18\" id=\"18,1\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><obj exit_xy=\"20,8\" tall=\"10\" armor=\"0\" id_bak=\"21,2\" y=\"2\" x=\"21\" id=\"21,2\" name=\"Teleport\" type=\"25\" /><mine armor=\"0\" id_bak=\"51,1\" y=\"1\" x=\"51\" id=\"51,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><obj exit_xy=\"23,10\" tall=\"10\" armor=\"0\" id_bak=\"78,14\" y=\"14\" x=\"78\" id=\"78,14\" name=\"Teleport\" type=\"25\" /><mine armor=\"0\" id_bak=\"4,1\" y=\"1\" x=\"4\" id=\"4,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"3,1\" y=\"1\" x=\"3\" id=\"3,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"2,1\" y=\"1\" x=\"2\" id=\"2,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"1,1\" y=\"1\" x=\"1\" id=\"1,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"10,1\" y=\"1\" x=\"10\" id=\"10,1\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"25,13\" y=\"13\" x=\"25\" id=\"25,13\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><mine armor=\"0\" id_bak=\"53,14\" y=\"14\" x=\"53\" id=\"53,14\" name=\"Poison(lvl:2)\" type=\"22\" dmg=\"5\" time=\"10\" /><obj tall=\"10\" armor=\"0\" id_bak=\"53,18\" y=\"18\" x=\"53\" id=\"53,18\" name=\"Bonus_Capsule\" type=\"323\" score=\"5000\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"50,15\" y=\"15\" x=\"50\" id=\"50,15\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /></objs></map>").firstChild;
var map5 = new XML("<map datestamp=\"1186607392750\" id=\"Badim_Jungle_Boss1\" tileset=\"1\" bg=\"2\" name=\"Jungle_Boss1\" uname=\"Badim\"><levels><level params=\"00000000000000000\" /><level params=\"a11q1111aa111azaa\" /><level params=\"11111111111111111\" /><level params=\"11111111111111111\" /><level params=\"11111111111111111\" /><level params=\"11111111111111111\" /><level params=\"11111111111111111\" /><level params=\"11111111111111111\" /></levels><objs><ppl lpx=\"195.35\" normal_speed=\"-0.1\" hpmax=\"700\" id_bak=\"13,1\" y=\"1\" x=\"13\" id=\"13,1\" type=\"50\" hp=\"700\" dmg=\"25\" speed=\"0.1\" st=\"1\" tall=\"10\" boss=\"1\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"9,1\" y=\"1\" x=\"9\" id=\"9,1\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><obj hpmax=\"100\" id_bak=\"16,1\" y=\"1\" x=\"16\" id=\"16,1\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"0,1\" y=\"1\" x=\"0\" id=\"0,1\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><mine id_bak=\"15,1\" y=\"1\" x=\"15\" id=\"15,1\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"8,1\" y=\"1\" x=\"8\" id=\"8,1\" type=\"3\" dmg=\"10\" /></objs></map>").firstChild;
var map6 = new XML("<map id=\"Tat_Jungle_6\" tileset=\"1\" bg=\"1\" name=\"Jungle_6\" uname=\"Tat\" datestamp=\"1186607417515\"><levels><level params=\"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\" /><level params=\"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\" /><level params=\"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\" /><level params=\"00000000000000000000000000000000000000000000000000000000000000000aaa000aaa00000000000000000000\" /><level params=\"0000000000000000000000000000000000000000aaa00aa1aa00000000000011a1111a11111111a000000000000000\" /><level params=\"11q1100000a00a00a000000000000000000a111r11a0011111111111aa000011111111111111111000000000000000\" /><level params=\"111111r11111111r10000000000011a11000000t00000111111111111r0000a111111111111111111za11a00000000\" /><level params=\"111111r11100000r100000001aa11111111aa11ra1100000001111111r000001111111111111111a1111111r000000\" /><level params=\"111111r111111a1r00001111111111111110001r111000011a1111111r00000000000000000011111111111r100000\" /><level params=\"000000t00111111r00001111110000011111a11t00000001111111111t00000000000000000000000000011r100011\" /><level params=\"11aa11r11111111t00001111111111a11111111r111aa000000000001r111001a11a11a1000000000000011t000000\" /><level params=\"111000t01110001r11a11111111111111111111111000000000000000t1111a1100000011a1000000000011r100000\" /><level params=\"1111arra11100001111000000001111111111111111111a111a111a11r011a1100000001111111a1a100011r111a11\" /><level params=\"11111r11110000000111111aa11111111111111111111111111111111r0111111111a0000111111111100000011111\" /><level params=\"11111r100000000001111111111111111111111111111111111111111r011111111111a11111111111111a11111111\" /><level params=\"11110t0000000a1111111000000000000000000011111111111111111r010000100011111110000001111000111111\" /><level params=\"11111r111a1a11111111111111a000000000000000010000000000000r00001111a111111100000000000000111111\" /><level params=\"111111100111111111111111111111a11aa1aa11a11111a1000011000t111111111111100000011111000000000111\" /><level params=\"111111111000000011111100011111111111111111111111r1a111111r100000100000000a1a111110001100000000\" /><level params=\"00011001111a111111000000000111100111111111111111r111111111111a111111aa1a11111100111a11r1100000\" /><level params=\"00000001111r111100000000000001000111111111000111r1111111111111111111111111111111111111r1100011\" /><level params=\"00000000000t0001111a11aa1a11111110000000111a1000t0000000111111110000000110000011110000t1100000\" /><level params=\"0000000aa11raa111111111111111111100000000000000ara000011110000000000000000011111000011r1110000\" /><level params=\"001a111111111111111111111111111111r1111aa1111111111aa111111r111111aaaaa111111000000001r1100000\" /><level params=\"0011111111111111111111111111111111r111000111111111111111111r1111100000001111000000a11100000011\" /><level params=\"0011111111111111111111111111111111r111000000000111111111100t0110000000000000000a11111111aa0011\" /><level params=\"00a1111111111111111111111111111110t000000000000111111001111ra11111aaa00011a11a1111111110000011\" /><level params=\"0011111111111111111111111111111111r1111111aaa0011110000011111111111110001111111111111110000011\" /><level params=\"00aa1111111111111111111111111111111111111a1110011110000011111111111110001111111111111110000011\" /><level params=\"001111111111111111111111111111111111111111111001111000001111111111111000a111111111111110000011\" /></levels><objs><obj hpmax=\"10\" armor=\"0\" id_bak=\"72,29\" y=\"29\" x=\"72\" id=\"72,29\" name=\"Bonus_score_1000\" type=\"300\" score=\"1000\" tall=\"0\" hp=\"10\" /><ppl hpmax=\"60\" st=\"1\" armor=\"0\" id_bak=\"74,26\" y=\"26\" x=\"74\" id=\"74,26\" name=\"Inf_Stealth(lvl:2)\" type=\"13\" hide_range=\"3\" hp=\"60\" dmg=\"35\" speed=\"0.11\" tall=\"8\" score=\"300\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"79,25\" y=\"25\" x=\"79\" id=\"79,25\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"82,24\" y=\"24\" x=\"82\" id=\"82,24\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"88,25\" y=\"25\" x=\"88\" id=\"88,25\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"89,25\" y=\"25\" x=\"89\" id=\"89,25\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><mine armor=\"0\" id_bak=\"80,12\" y=\"12\" x=\"80\" id=\"80,12\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"10,5\" y=\"5\" x=\"10\" id=\"10,5\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"13,5\" y=\"5\" x=\"13\" id=\"13,5\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"16,5\" y=\"5\" x=\"16\" id=\"16,5\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"40,4\" y=\"4\" x=\"40\" id=\"40,4\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"49,4\" y=\"4\" x=\"49\" id=\"49,4\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"48,4\" y=\"4\" x=\"48\" id=\"48,4\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"45,4\" y=\"4\" x=\"45\" id=\"45,4\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><ppl hpmax=\"60\" st=\"1\" armor=\"0\" id_bak=\"46,4\" y=\"4\" x=\"46\" id=\"46,4\" name=\"Inf_Stealth(lvl:2)\" type=\"13\" hide_range=\"3\" hp=\"60\" dmg=\"35\" speed=\"0.11\" tall=\"8\" score=\"300\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"35,5\" y=\"5\" x=\"35\" id=\"35,5\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"30,6\" y=\"6\" x=\"30\" id=\"30,6\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"25,7\" y=\"7\" x=\"25\" id=\"25,7\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"35,7\" y=\"7\" x=\"35\" id=\"35,7\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"36,9\" y=\"9\" x=\"36\" id=\"36,9\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><obj tall=\"10\" hpmax=\"400\" armor=\"0\" id_bak=\"39,23\" y=\"23\" x=\"39\" id=\"39,23\" name=\"Door_small\" type=\"7\" hp=\"400\" ter=\"0\" score=\"100\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"40,23\" y=\"23\" x=\"40\" id=\"40,23\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"22,21\" y=\"21\" x=\"22\" id=\"22,21\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"25,21\" y=\"21\" x=\"25\" id=\"25,21\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"9,16\" y=\"16\" x=\"9\" id=\"9,16\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"11,16\" y=\"16\" x=\"11\" id=\"11,16\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"4,12\" y=\"12\" x=\"4\" id=\"4,12\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><mine armor=\"0\" id_bak=\"7,12\" y=\"12\" x=\"7\" id=\"7,12\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"11,19\" y=\"19\" x=\"11\" id=\"11,19\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><ppl hpmax=\"60\" st=\"1\" armor=\"0\" id_bak=\"18,11\" y=\"11\" x=\"18\" id=\"18,11\" name=\"Inf_Stealth(lvl:2)\" type=\"13\" hide_range=\"3\" hp=\"60\" dmg=\"35\" speed=\"0.11\" tall=\"8\" score=\"300\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"23,13\" y=\"13\" x=\"23\" id=\"23,13\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"30,17\" y=\"17\" x=\"30\" id=\"30,17\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"34,17\" y=\"17\" x=\"34\" id=\"34,17\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"37,17\" y=\"17\" x=\"37\" id=\"37,17\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"36,17\" y=\"17\" x=\"36\" id=\"36,17\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><mine armor=\"0\" id_bak=\"33,17\" y=\"17\" x=\"33\" id=\"33,17\" name=\"Poison(lvl:2)\" type=\"22\" dmg=\"5\" time=\"10\" /><obj exit_xy=\"21,8\" tall=\"10\" armor=\"0\" id_bak=\"13,15\" y=\"15\" x=\"13\" id=\"13,15\" name=\"Teleport\" type=\"25\" /><obj exit_xy=\"47,8\" tall=\"10\" armor=\"0\" id_bak=\"44,10\" y=\"10\" x=\"44\" id=\"44,10\" name=\"Teleport\" type=\"25\" /><mine armor=\"0\" id_bak=\"57,5\" y=\"5\" x=\"57\" id=\"57,5\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"41,4\" y=\"4\" x=\"41\" id=\"41,4\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><obj tall=\"10\" hpmax=\"500\" armor=\"0\" id_bak=\"61,12\" y=\"12\" x=\"61\" id=\"61,12\" name=\"Rock_Left\" type=\"6\" hp=\"500\" speed=\"-0.13\" score=\"10\" dmg=\"70\" /><obj exit_xy=\"5,23\" tall=\"10\" armor=\"0\" id_bak=\"40,17\" y=\"17\" x=\"40\" id=\"40,17\" name=\"Teleport\" type=\"26\" /><obj tall=\"10\" hpmax=\"500\" armor=\"0\" id_bak=\"2,26\" y=\"26\" x=\"2\" id=\"2,26\" name=\"Rock_Rigth\" type=\"6\" hp=\"500\" speed=\"0.13\" score=\"10\" dmg=\"70\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"3,23\" y=\"23\" x=\"3\" id=\"3,23\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"12,22\" y=\"22\" x=\"12\" id=\"12,22\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"13,22\" y=\"22\" x=\"13\" id=\"13,22\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><mine armor=\"0\" id_bak=\"47,22\" y=\"22\" x=\"47\" id=\"47,22\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"49,22\" y=\"22\" x=\"49\" id=\"49,22\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><obj tall=\"10\" hpmax=\"200\" armor=\"0\" id_bak=\"49,8\" y=\"8\" x=\"49\" id=\"49,8\" name=\"Sign_Danger\" type=\"1\" hp=\"200\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"56,5\" y=\"5\" x=\"56\" id=\"56,5\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"43,10\" y=\"10\" x=\"43\" id=\"43,10\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"26,16\" y=\"16\" x=\"26\" id=\"26,16\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><obj exit_xy=\"67,10\" tall=\"10\" armor=\"0\" id_bak=\"75,18\" y=\"18\" x=\"75\" id=\"75,18\" name=\"Teleport\" type=\"25\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"64,10\" y=\"10\" x=\"64\" id=\"64,10\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"70,10\" y=\"10\" x=\"70\" id=\"70,10\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"66,16\" y=\"16\" x=\"66\" id=\"66,16\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"68,13\" y=\"13\" x=\"68\" id=\"68,13\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"85,6\" y=\"6\" x=\"85\" id=\"85,6\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><mine armor=\"0\" id_bak=\"67,3\" y=\"3\" x=\"67\" id=\"67,3\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"71,3\" y=\"3\" x=\"71\" id=\"71,3\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"73,3\" y=\"3\" x=\"73\" id=\"73,3\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><mine armor=\"0\" id_bak=\"65,3\" y=\"3\" x=\"65\" id=\"65,3\" name=\"Poison(lvl:1)\" type=\"22\" dmg=\"5\" time=\"5\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"66,3\" y=\"3\" x=\"66\" id=\"66,3\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"72,3\" y=\"3\" x=\"72\" id=\"72,3\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"64,4\" y=\"4\" x=\"64\" id=\"64,4\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"69,4\" y=\"4\" x=\"69\" id=\"69,4\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"78,4\" y=\"4\" x=\"78\" id=\"78,4\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><obj tall=\"10\" hpmax=\"500\" armor=\"0\" id_bak=\"79,7\" y=\"7\" x=\"79\" id=\"79,7\" name=\"Rock_Rigth\" type=\"6\" hp=\"500\" speed=\"0.13\" score=\"10\" dmg=\"70\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"60,26\" y=\"26\" x=\"60\" id=\"60,26\" name=\"Jungle_Samuray\" type=\"14\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"77,26\" y=\"26\" x=\"77\" id=\"77,26\" name=\"Jungle_Samuray\" type=\"14\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"46,12\" y=\"12\" x=\"46\" id=\"46,12\" name=\"Jungle_Samuray\" type=\"14\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"54,12\" y=\"12\" x=\"54\" id=\"54,12\" name=\"Jungle_Samuray\" type=\"14\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"50,12\" y=\"12\" x=\"50\" id=\"50,12\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"91,12\" y=\"12\" x=\"91\" id=\"91,12\" name=\"Jungle_Samuray\" type=\"14\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"23,21\" y=\"21\" x=\"23\" id=\"23,21\" name=\"Jungle_Samuray\" type=\"14\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"24,13\" y=\"13\" x=\"24\" id=\"24,13\" name=\"Jungle_Samuray\" type=\"14\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"40,7\" y=\"7\" x=\"40\" id=\"40,7\" name=\"Jungle_Samuray\" type=\"14\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><mine armor=\"0\" id_bak=\"42,4\" y=\"4\" x=\"42\" id=\"42,4\" name=\"Poison(lvl:2)\" type=\"22\" dmg=\"5\" time=\"10\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"42,5\" y=\"5\" x=\"42\" id=\"42,5\" name=\"Enable_weap_1\" type=\"301\" score=\"100\" tall=\"0\" hp=\"10\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"41,28\" y=\"28\" x=\"41\" id=\"41,28\" name=\"Enable_weap_2\" type=\"302\" score=\"100\" tall=\"0\" hp=\"10\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"68,26\" y=\"26\" x=\"68\" id=\"68,26\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl hpmax=\"60\" st=\"1\" armor=\"0\" id_bak=\"66,26\" y=\"26\" x=\"66\" id=\"66,26\" name=\"Inf_Stealth(lvl:2)\" type=\"13\" hide_range=\"3\" hp=\"60\" dmg=\"35\" speed=\"0.11\" tall=\"8\" score=\"300\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"67,26\" y=\"26\" x=\"67\" id=\"67,26\" name=\"Enable_weap_3\" type=\"303\" score=\"100\" tall=\"0\" hp=\"10\" /><mine armor=\"0\" id_bak=\"73,18\" y=\"18\" x=\"73\" id=\"73,18\" name=\"Jungle_Mine\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"70,14\" y=\"14\" x=\"70\" id=\"70,14\" name=\"Jungle_Mine\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"46,17\" y=\"17\" x=\"46\" id=\"46,17\" name=\"Jungle_Mine\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"19,21\" y=\"21\" x=\"19\" id=\"19,21\" name=\"Jungle_Mine\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"3,10\" y=\"10\" x=\"3\" id=\"3,10\" name=\"Jungle_Mine\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"26,7\" y=\"7\" x=\"26\" id=\"26,7\" name=\"Jungle_Mine\" type=\"3\" dmg=\"10\" /><obj hpmax=\"40\" armor=\"0\" id_bak=\"36,7\" y=\"7\" x=\"36\" id=\"36,7\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><obj hpmax=\"40\" armor=\"0\" id_bak=\"62,11\" y=\"11\" x=\"62\" id=\"62,11\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><obj hpmax=\"40\" armor=\"0\" id_bak=\"73,11\" y=\"11\" x=\"73\" id=\"73,11\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><obj hpmax=\"40\" armor=\"0\" id_bak=\"51,23\" y=\"23\" x=\"51\" id=\"51,23\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><mine armor=\"0\" id_bak=\"52,23\" y=\"23\" x=\"52\" id=\"52,23\" name=\"Jungle_Mine\" type=\"3\" dmg=\"10\" /><obj hpmax=\"40\" armor=\"0\" id_bak=\"7,22\" y=\"22\" x=\"7\" id=\"7,22\" name=\"Barrel\" type=\"9\" hp=\"40\" ter=\"1\" score=\"10\" dmg=\"40\" tall=\"4\" exp_range=\"4\" /><mine armor=\"0\" id_bak=\"8,22\" y=\"22\" x=\"8\" id=\"8,22\" name=\"Jungle_Mine\" type=\"3\" dmg=\"10\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"43,21\" y=\"21\" x=\"43\" id=\"43,21\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><obj tall=\"10\" hpmax=\"50\" id_bak=\"66,23\" y=\"23\" x=\"66\" id=\"66,23\" name=\"Door_armored\" type=\"21\" hp=\"50\" ter=\"0\" armor=\"25\" score=\"300\" /><obj tall=\"10\" hpmax=\"50\" id_bak=\"70,23\" y=\"23\" x=\"70\" id=\"70,23\" name=\"Door_armored\" type=\"21\" hp=\"50\" ter=\"0\" armor=\"25\" score=\"300\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"67,23\" y=\"23\" x=\"67\" id=\"67,23\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"69,23\" y=\"23\" x=\"69\" id=\"69,23\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"68,19\" y=\"19\" x=\"68\" id=\"68,19\" name=\"Jungle_Samuray_Hided\" type=\"14\" hide_range=\"5\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"71,19\" y=\"19\" x=\"71\" id=\"71,19\" name=\"Jungle_Samuray_Hided\" type=\"14\" hide_range=\"5\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"67,10\" y=\"10\" x=\"67\" id=\"67,10\" name=\"Jungle_Samuray_Hided\" type=\"14\" hide_range=\"5\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"13,8\" y=\"8\" x=\"13\" id=\"13,8\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"2,10\" y=\"10\" x=\"2\" id=\"2,10\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"50,18\" y=\"18\" x=\"50\" id=\"50,18\" name=\"Inf_Still\" type=\"15\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"61,19\" y=\"19\" x=\"61\" id=\"61,19\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"69,19\" y=\"19\" x=\"69\" id=\"69,19\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"78,12\" y=\"12\" x=\"78\" id=\"78,12\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"82,6\" y=\"6\" x=\"82\" id=\"82,6\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"44,27\" y=\"27\" x=\"44\" id=\"44,27\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"43,27\" y=\"27\" x=\"43\" id=\"43,27\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"42,27\" y=\"27\" x=\"42\" id=\"42,27\" name=\"Jungle_Samuray_Hided\" type=\"14\" hide_range=\"4\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"30,10\" y=\"10\" x=\"30\" id=\"30,10\" name=\"Browler\" type=\"16\" hp=\"40\" dmg=\"15\" speed=\"0.14\" tall=\"8\" score=\"200\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"85,14\" y=\"14\" x=\"85\" id=\"85,14\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"83,19\" y=\"19\" x=\"83\" id=\"83,19\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"68,23\" y=\"23\" x=\"68\" id=\"68,23\" name=\"Bonus_Armor\" type=\"311\" score=\"10\" tall=\"0\" hp=\"10\" dmg=\"20\" ttl=\"60\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"2,28\" y=\"28\" x=\"2\" id=\"2,28\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"3,28\" y=\"28\" x=\"3\" id=\"3,28\" name=\"Bonus_Firepower\" type=\"312\" score=\"10\" tall=\"0\" hp=\"10\" dmg=\"20\" ttl=\"60\" /><obj tall=\"10\" armor=\"0\" id_bak=\"62,6\" y=\"6\" x=\"62\" id=\"62,6\" name=\"Bonus_Capsule\" type=\"323\" score=\"5000\" /></objs></map>").firstChild;
var map7 = new XML("<map datestamp=\"1186607443156\" id=\"Badim_Jungle_Boss2\" tileset=\"1\" bg=\"2\" name=\"Jungle_Boss2\" uname=\"Badim\"><levels><level params=\"0000000000000000000000000000\" /><level params=\"a11q1111ra11111aar1111az1111\" /><level params=\"11111111r11111111r1111111111\" /><level params=\"11111111r11111111r1111111111\" /><level params=\"00000000t00000000t0000001000\" /><level params=\"a11111a1r1111a111r111a1111aa\" /><level params=\"1111111111111111111111111111\" /><level params=\"1111111111111111111111111111\" /><level params=\"1111111111111111111111111111\" /><level params=\"1111111111111111111111111111\" /><level params=\"1111111111111111111111111111\" /><level params=\"1111111111111111111111111111\" /></levels><objs><obj armor=\"0\" hpmax=\"100\" id_bak=\"9,1\" y=\"1\" x=\"9\" id=\"9,1\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"16,1\" y=\"1\" x=\"16\" id=\"16,1\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><obj armor=\"0\" hpmax=\"100\" id_bak=\"0,1\" y=\"1\" x=\"0\" id=\"0,1\" type=\"9\" hp=\"100\" ter=\"1\" score=\"10\" dmg=\"50\" tall=\"4\" exp_range=\"4\" /><mine armor=\"0\" id_bak=\"15,1\" y=\"1\" x=\"15\" id=\"15,1\" type=\"3\" dmg=\"10\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"26,5\" y=\"5\" x=\"26\" id=\"26,5\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"27,5\" y=\"5\" x=\"27\" id=\"27,5\" name=\"Infantry\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl hpmax=\"700\" armor=\"0\" id_bak=\"22,1\" y=\"1\" x=\"22\" id=\"22,1\" name=\"Commandos\" type=\"51\" hp=\"700\" dmg=\"40\" speed=\"0.13\" st=\"1\" tall=\"10\" boss=\"1\" score=\"1000\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"21,5\" y=\"5\" x=\"21\" id=\"21,5\" name=\"Infantry\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"13,5\" y=\"5\" x=\"13\" id=\"13,5\" name=\"Infantry\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"6,5\" y=\"5\" x=\"6\" id=\"6,5\" name=\"Infantry\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl hpmax=\"10\" st=\"1\" armor=\"0\" id_bak=\"0,5\" y=\"5\" x=\"0\" id=\"0,5\" name=\"Sniper\" type=\"10\" hp=\"10\" dmg=\"20\" speed=\"0.1\" tall=\"5\" score=\"300\" /></objs></map>").firstChild;
var map8 = new XML("<map id=\"Bonus_1\" tileset=\"1\" bg=\"3\" name=\"Bonus_1\" uname=\"Badim\" datestamp=\"1186607473031\"><levels><level params=\"00000000000000000\" /><level params=\"aaraaaqa1a1aaaar1\" /><level params=\"00t001000111111r1\" /><level params=\"aar1111a1001000t0\" /><level params=\"11r111111111111ra\" /><level params=\"11t000000000000t1\" /><level params=\"11ra1a111111111r1\" /><level params=\"00t000011000000t0\" /><level params=\"a1r1a1111a1a111r1\" /><level params=\"111100000000111r1\" /><level params=\"1111a111a111000t0\" /><level params=\"001111111111a11r1\" /><level params=\"aa111111111111110\" /><level params=\"0000000110000001a\" /><level params=\"11a1a111111111a00\" /><level params=\"11111111111111111\" /><level params=\"11000000000000011\" /><level params=\"11a111aaz1a111111\" /><level params=\"11111111111111111\" /><level params=\"11111111111111111\" /><level params=\"11111111111111111\" /><level params=\"11111111111111111\" /></levels><objs><obj hpmax=\"1000\" armor=\"0\" id_bak=\"9,1\" y=\"1\" x=\"9\" id=\"9,1\" name=\"Alien_car\" boss=\"1\" type=\"27\" hp=\"1000\" score=\"0\" tall=\"10\" exp_range=\"10\" dmg=\"1000\" /><obj exit_xy=\"3,8\" tall=\"10\" armor=\"0\" id_bak=\"3,1\" y=\"1\" x=\"3\" id=\"3,1\" name=\"Teleport\" type=\"25\" /><obj exit_xy=\"12,14\" tall=\"10\" armor=\"0\" id_bak=\"14,1\" y=\"1\" x=\"14\" id=\"14,1\" name=\"Teleport\" type=\"26\" /><obj y=\"13\" x=\"17\" id=\"17,13\" name=\"Bonus_Capsule\" type=\"323\" score=\"5000\" /><obj y=\"13\" x=\"17\" id=\"17,13\" name=\"Bonus_Capsule\" type=\"323\" score=\"5000\" /><obj tall=\"10\" armor=\"0\" id_bak=\"16,13\" y=\"13\" x=\"16\" id=\"16,13\" name=\"Bonus_Capsule\" type=\"323\" score=\"5000\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"0,8\" y=\"8\" x=\"0\" id=\"0,8\" name=\"Bonus_life\" type=\"310\" score=\"100\" tall=\"0\" hp=\"10\" /><obj tall=\"10\" hpmax=\"0\" armor=\"0\" id_bak=\"5,6\" y=\"6\" x=\"5\" id=\"5,6\" name=\"Door_small_destroed\" type=\"100\" hp=\"0\" ter=\"1\" score=\"0\" /><obj tall=\"10\" hpmax=\"0\" armor=\"0\" id_bak=\"11,8\" y=\"8\" x=\"11\" id=\"11,8\" name=\"Door_armored_destroed\" type=\"113\" hp=\"0\" ter=\"1\" score=\"0\" /><obj tall=\"10\" hpmax=\"0\" armor=\"0\" id_bak=\"7,3\" y=\"3\" x=\"7\" id=\"7,3\" name=\"Door_big_destroed\" type=\"101\" hp=\"0\" ter=\"1\" score=\"0\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"16,4\" y=\"4\" x=\"16\" id=\"16,4\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"9,8\" y=\"8\" x=\"9\" id=\"9,8\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"3,6\" y=\"6\" x=\"3\" id=\"3,6\" name=\"Inf_Junior\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"1,3\" y=\"3\" x=\"1\" id=\"1,3\" name=\"Inf_Junior\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"0,3\" y=\"3\" x=\"0\" id=\"0,3\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"4,8\" y=\"8\" x=\"4\" id=\"4,8\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"12,11\" y=\"11\" x=\"12\" id=\"12,11\" name=\"Jungle_Samuray_Hided\" type=\"14\" hide_range=\"4\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"4,10\" y=\"10\" x=\"4\" id=\"4,10\" name=\"Jungle_Samuray_Hided\" type=\"14\" hide_range=\"4\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><obj armor=\"0\" id_bak=\"0,12\" y=\"12\" x=\"0\" id=\"0,12\" name=\"Enable_weap_1\" type=\"301\" score=\"100\" tall=\"0\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"1,12\" y=\"12\" x=\"1\" id=\"1,12\" name=\"Inf_Stealth(lvl:1)\" type=\"13\" hide_range=\"5\" hp=\"40\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"150\" /><mine armor=\"0\" id_bak=\"1,1\" y=\"1\" x=\"1\" id=\"1,1\" name=\"Jungle_Mine\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"5,1\" y=\"1\" x=\"5\" id=\"5,1\" name=\"Jungle_Mine\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"4,1\" y=\"1\" x=\"4\" id=\"4,1\" name=\"Jungle_Mine\" type=\"3\" dmg=\"10\" /><mine armor=\"0\" id_bak=\"0,1\" y=\"1\" x=\"0\" id=\"0,1\" name=\"Jungle_Mine\" type=\"3\" dmg=\"30\" /><mine armor=\"0\" id_bak=\"7,1\" y=\"1\" x=\"7\" id=\"7,1\" name=\"Jungle_Mine\" type=\"3\" dmg=\"30\" /><mine armor=\"0\" id_bak=\"11,1\" y=\"1\" x=\"11\" id=\"11,1\" name=\"Jungle_Mine\" type=\"3\" dmg=\"30\" /><mine armor=\"0\" id_bak=\"12,1\" y=\"1\" x=\"12\" id=\"12,1\" name=\"Jungle_Mine\" type=\"3\" dmg=\"30\" /><mine armor=\"0\" id_bak=\"13,1\" y=\"1\" x=\"13\" id=\"13,1\" name=\"Jungle_Mine\" type=\"3\" dmg=\"30\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"8,10\" y=\"10\" x=\"8\" id=\"8,10\" name=\"Bonus_Armor\" type=\"311\" score=\"10\" tall=\"0\" hp=\"10\" dmg=\"20\" ttl=\"60\" /><obj hpmax=\"10\" armor=\"0\" id_bak=\"2,14\" y=\"14\" x=\"2\" id=\"2,14\" name=\"Bonus_Firepower\" type=\"312\" score=\"10\" tall=\"0\" hp=\"10\" dmg=\"20\" ttl=\"60\" /><ppl hpmax=\"30\" st=\"1\" armor=\"0\" id_bak=\"4,14\" y=\"14\" x=\"4\" id=\"4,14\" name=\"Inf_Junior\" type=\"13\" hp=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"14,14\" y=\"14\" x=\"14\" id=\"14,14\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"6,17\" y=\"17\" x=\"6\" id=\"6,17\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"10,17\" y=\"17\" x=\"10\" id=\"10,17\" name=\"Inf_Still_Stealth\" type=\"15\" hide_range=\"6\" hp=\"40\" dmg=\"20\" speed=\"0.10\" tall=\"8\" score=\"100\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"7,17\" y=\"17\" x=\"7\" id=\"7,17\" name=\"Jungle_Samuray_Hided\" type=\"14\" hide_range=\"4\" hp=\"40\" dmg=\"30\" speed=\"0.14\" tall=\"8\" score=\"200\" CTH=\"0.6\" /><ppl hpmax=\"40\" st=\"1\" armor=\"0\" id_bak=\"2,17\" y=\"17\" x=\"2\" id=\"2,17\" name=\"Browler\" type=\"16\" hp=\"40\" dmg=\"15\" speed=\"0.14\" tall=\"8\" score=\"200\" /></objs></map>").firstChild;
_global.map_xml = new XML("<maps />");
_global.map_xml.firstChild.appendChild(map00);
_global.map_xml.firstChild.appendChild(map0);
_global.map_xml.firstChild.appendChild(map1);
_global.map_xml.firstChild.appendChild(map2);
_global.map_xml.firstChild.appendChild(map3);
_global.map_xml.firstChild.appendChild(map4);
_global.map_xml.firstChild.appendChild(map5);
_global.map_xml.firstChild.appendChild(map6);
_global.map_xml.firstChild.appendChild(map7);
_global.map_xml.firstChild.appendChild(map8);
_global.map_xml.loaded = true;
_global.map_xml.firstChild.attributes.local_maps = true;
} else {
_global.xml_lang_loaded = false;
_global.xml_lang = new XML();
_global.xml_lang.onLoad = function (success) {
if (success) {
trace("__xml_lang:" + xml_lang);
var _local3 = _global.xml_lang.firstChild.attributes;
_global.xml_lang = this.firstChild.attributes;
_global.xml_lang_loaded = true;
}
};
_global.xml_lang.load((_global.langs_path + "rus.xml") + _global.refresh_add);
_global.map_xml = new XML();
_global.map_xml.onLoad = function () {
this.firstChild.attributes.local_maps = true;
};
_global.map_xml.load((_global.data_path + "levels.xml") + _global.refresh_add);
}
Frame 2
Frame 4
_root.progress_bar.unloadMovie();
Frame 5
function get_txt(txt) {
if (_global.xml_lang[txt] == undefined) {
return(txt);
}
return(String(_global.xml_lang[txt]));
}
function _find_xml(name, item_xml) {
var _local2 = item_xml.childNodes;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].nodeName == name) {
return(_local2[_local1]);
}
if (_local2[_local1].hasChildNodes()) {
var _local3 = _find_xml(name, _local2[_local1]);
if (_local3 != -1) {
return(_local3);
}
}
_local1++;
}
return(-1);
}
function show_trivia_txt(mc, dtxt, txt) {
dtxt.text = "";
mc.dtxt = dtxt;
mc.txt = txt;
mc.cur_let = 0;
mc.onEnterFrame = function () {
var _local4 = this.dtxt;
var _local5 = this.txt;
var _local8 = 0;
while (_local8 < 2) {
_local4.text = _local4.text + _local5.charAt(this.cur_let);
this.cur_let++;
if (_local5.charCodeAt(this.cur_let) == 32) {
var _local9 = _local4.text;
var _local10 = _local4.textHeight;
var _local3 = _local5.indexOf(" ", this.cur_let + 1);
var _local7 = _local5.indexOf("\r", this.cur_let + 1);
if (_local7 != -1) {
if (_local7 < _local3) {
_local3 = _local7;
}
}
if (_local3 == -1) {
_local3 = _local5.length;
}
var _local12 = _local3 - this.cur_let;
var _local6 = "";
var _local2 = this.cur_let;
while (_local2 < _local3) {
_local6 = _local6 + _local5.charAt(_local2);
_local2++;
}
_local4.text = _local4.text + _local6;
var _local11 = _local4.textHeight;
_local4.text = _local9;
if (_local11 != _local10) {
_local4.text = _local4.text + "\r";
this.cur_let++;
}
}
_local8++;
}
};
}
function drawPoly(mc, start_xy, xy, lineStyle, fillStyle) {
mc.lineStyle(lineStyle._ticknes, lineStyle._color, lineStyle._alpha);
if (fillStyle._alpha > 0) {
mc.beginFill(fillStyle._color, fillStyle._alpha);
}
var _local4;
var _local3;
_local4 = start_xy[0] + xy[0][0];
_local3 = start_xy[1] + xy[0][1];
mc.moveTo(_local4, _local3);
var _local1 = 1;
while (_local1 < xy.length) {
_local4 = start_xy[0] + xy[_local1][0];
_local3 = start_xy[1] + xy[_local1][1];
mc.lineTo(_local4, _local3);
_local1++;
}
if (fillStyle._alpha > 0) {
mc.endFill();
}
}
function drawEmptyExHexagon(mc, start_xy, wh, scr_xy, scr_wh, lineStyle, fillStyle) {
mc.lineStyle(lineStyle._ticknes, lineStyle._color, lineStyle._alpha);
mc.beginFill(fillStyle._color, fillStyle._alpha);
var _local5 = scr_wh[0];
var _local4 = scr_wh[1];
var _local3;
var _local2;
_local3 = scr_xy[0];
_local2 = scr_xy[1];
mc.moveTo(_local3, _local2);
mc.lineTo(_local3 + _local5, _local2);
mc.lineTo(_local3 + _local5, _local2 + _local4);
mc.lineTo(_local3, _local2 + _local4);
mc.lineTo(_local3, _local2);
_local5 = wh[0];
_local4 = wh[1];
_local3 = start_xy[0];
_local2 = start_xy[1];
mc.moveTo(_local3, _local2);
mc.lineTo(_local3 + _local5, _local2);
mc.lineTo(_local3 + _local5, _local2 + _local4);
mc.lineTo(_local3, _local2 + _local4);
mc.lineTo(_local3, _local2);
mc.endFill();
}
function drawExHexagon(mc, start_xy, wh, lineStyle, fillStyle) {
mc.lineStyle(lineStyle._ticknes, lineStyle._color, lineStyle._alpha);
mc.beginFill(fillStyle._color, fillStyle._alpha);
var _local6 = wh[0];
var _local5 = wh[1];
var _local4;
var _local3;
_local4 = start_xy[0] - (_local6 / 2);
_local3 = start_xy[1] - (_local5 / 2);
var _local2 = _local5 / 5;
mc.moveTo(_local4 + _local6, (_local3 + _local5) - _local2);
mc.lineTo(_local4 + _local6, _local3 + _local2);
mc.lineTo(_local4 + (_local6 / 2), _local3 - _local2);
mc.lineTo(_local4, _local3 + _local2);
mc.lineTo(_local4, (_local3 + _local5) - _local2);
mc.lineTo(_local4 + (_local6 / 2), (_local3 + _local5) + _local2);
mc.lineTo(_local4 + _local6, (_local3 + _local5) - _local2);
mc.endFill();
}
function drawELine(mc, xy, t_xy, lineStyle) {
mc.lineStyle(lineStyle._ticknes, lineStyle._color, lineStyle._alpha);
mc.moveTo(xy[0], xy[1]);
mc.lineTo(t_xy[0], t_xy[1]);
}
function drawLine(mc, x, y, tx, ty, lineColor, lineAlpha, lineTicknes) {
mc.lineStyle(lineTicknes, lineColor, lineAlpha);
mc.moveTo(x, y);
mc.lineTo(tx, ty);
}
function drawArrow(mc, x, y, tx, ty, fillColor, fillAlpha, lineColor, lineAlpha, lineTicknes) {
mc.lineStyle(lineTicknes, lineColor, lineAlpha);
var _local6 = Math.pow;
var _local10 = Math.PI;
var _local3 = tx - x;
var _local2 = ty - y;
var _local15 = Math.sqrt(_local6(_local3, 2) + _local6(_local2, 2));
var _local1 = 4;
var _local8 = tx - (_local3 / _local1);
var _local9 = ty - (_local2 / _local1);
var _local11 = tx - (_local3 / _local1);
var _local12 = ty + (_local2 / _local1);
mc.moveTo(x, y);
mc.lineTo(tx, ty);
}
function drawGrid(mc, x, y, rows, cols, tw, th, fillColor, fillAlpha, lineColor, lineAlpha, lineTicknes) {
mc.lineStyle(lineTicknes, lineColor, lineAlpha);
var _local7 = cols * tw;
var _local8 = rows * th;
if (fillAlpha > 0) {
mc.beginFill(fillColor, fillAlpha);
}
mc.moveTo(x, y);
mc.lineTo(x + _local7, y);
mc.lineTo(x + _local7, _local8 + y);
mc.lineTo(x, _local8 + y);
mc.lineTo(x, y);
if (fillAlpha > 0) {
mc.endFill();
}
var _local1 = 0;
while (_local1 < rows) {
mc.moveTo(x, (_local1 * th) + y);
mc.lineTo(x + _local7, (_local1 * th) + y);
_local1++;
}
_local1 = 0;
while (_local1 < cols) {
mc.moveTo(x + (_local1 * tw), y);
mc.lineTo(x + (_local1 * tw), _local8 + y);
_local1++;
}
}
function drawExCircle(mc, start_xy, r, lineStyle, fillStyle) {
mc.lineStyle(lineStyle._ticknes, lineStyle._color, lineStyle._alpha);
if ((fillStyle._alpha != 0) or (fillStyle == undefined)) {
mc.beginFill(fillStyle._color, fillStyle._alpha);
}
var _local3 = start_xy[0];
var _local2 = start_xy[1];
mc.moveTo(_local3 + r, _local2);
mc.curveTo(r + _local3, (0.414213562373095 * r) + _local2, (0.707106781186547 * r) + _local3, (0.707106781186547 * r) + _local2);
mc.curveTo((0.414213562373095 * r) + _local3, r + _local2, _local3, r + _local2);
mc.curveTo((-0.414213562373095 * r) + _local3, r + _local2, (-0.707106781186547 * r) + _local3, (0.707106781186547 * r) + _local2);
mc.curveTo((-r) + _local3, (0.414213562373095 * r) + _local2, (-r) + _local3, _local2);
mc.curveTo((-r) + _local3, (-0.414213562373095 * r) + _local2, (-0.707106781186547 * r) + _local3, (-0.707106781186547 * r) + _local2);
mc.curveTo((-0.414213562373095 * r) + _local3, (-r) + _local2, _local3, (-r) + _local2);
mc.curveTo((0.414213562373095 * r) + _local3, (-r) + _local2, (0.707106781186547 * r) + _local3, (-0.707106781186547 * r) + _local2);
mc.curveTo(r + _local3, (-0.414213562373095 * r) + _local2, r + _local3, _local2);
if ((fillStyle._alpha != 0) or (fillStyle == undefined)) {
mc.endFill();
}
}
function drawCircle(mc, x, y, r, lineColor, fillColor, fillAlpha) {
var _local5 = 100;
var _local6 = true;
if (fillAlpha == undefined) {
fillAlpha = 100;
}
if (fillColor == undefined) {
_local6 = false;
}
if (lineColor == -1) {
_local5 = 0;
}
mc.lineStyle(2, lineColor, _local5);
if (_local6) {
}
mc.moveTo(x + r, y);
mc.curveTo(r + x, (0.414213562373095 * r) + y, (0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
mc.curveTo((0.414213562373095 * r) + x, r + y, x, r + y);
mc.curveTo((-0.414213562373095 * r) + x, r + y, (-0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
mc.curveTo((-r) + x, (0.414213562373095 * r) + y, (-r) + x, y);
mc.curveTo((-r) + x, (-0.414213562373095 * r) + y, (-0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
mc.curveTo((-0.414213562373095 * r) + x, (-r) + y, x, (-r) + y);
mc.curveTo((0.414213562373095 * r) + x, (-r) + y, (0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
mc.curveTo(r + x, (-0.414213562373095 * r) + y, r + x, y);
}
function drawSquare(mc, x, y, r, color) {
mc.lineStyle(2, color);
mc.beginFill(color, 50);
mc.moveTo(x + r, y + r);
mc.lineTo(x + r, y - r);
mc.lineTo(x - r, y - r);
mc.lineTo(x - r, y + r);
mc.lineTo(x + r, y + r);
mc.endFill();
}
function drawHexagon(mc, x, y, w, h, fillColor, alpha, fill, lineColor) {
if (lineColor == undefined) {
lineColor = fillColor;
}
if (fill == undefined) {
fill = true;
}
var _local7 = alpha * 2;
if (lineColor == -1) {
_local7 = 0;
}
mc.lineStyle(2, lineColor, _local7);
if (fill) {
mc.beginFill(fillColor, alpha);
}
var _local2 = h / 5;
mc.moveTo(x + w, (y + h) - _local2);
mc.lineTo(x + w, y + _local2);
mc.lineTo(x + (w / 2), y - _local2);
mc.lineTo(x, y + _local2);
mc.lineTo(x, (y + h) - _local2);
mc.lineTo(x + (w / 2), (y + h) + _local2);
mc.lineTo(x + w, (y + h) - _local2);
mc.endFill();
}
function drawPolygon(mc, x, y, w, h, fillColor, fillAlpha, lineColor, lineAlpha, lineTicknes) {
if (lineColor == undefined) {
lineColor = fillColor;
}
if (lineAlpha == undefined) {
lineAlpha = fillAlpha * 2;
}
if (lineTicknes == undefined) {
lineTicknes = 2;
}
mc.lineStyle(lineTicknes, lineColor, lineAlpha);
mc.beginFill(fillColor, fillAlpha);
mc.moveTo(x + w, y + h);
mc.lineTo(x + w, y);
mc.lineTo(x, y);
mc.lineTo(x, y + h);
mc.lineTo(x + w, y + h);
mc.endFill();
}
function drawCross(mc, x, y, r, color) {
mc.lineStyle(3, color);
mc.moveTo(x, y);
mc.lineTo(x + r, y + r);
mc.moveTo(x, y);
mc.lineTo(x - r, y + r);
mc.moveTo(x, y);
mc.lineTo(x + r, y - r);
mc.moveTo(x, y);
mc.lineTo(x - r, y - r);
}
function drawPath(mc, sx, sy, xy, element_width, element_height, lineColor, lineAlpha, lineTicknes, distMax, lineColorA, lineAlphaA, lineTicknesA) {
mc.lineStyle(lineTicknes, lineColor, lineAlpha);
var _local3 = ((xy[0][0] * element_width) + (element_width / 2)) + sx;
var _local2 = ((xy[0][1] * element_height) + (element_height / 2)) + sy;
var _local9 = xy[0][2];
var _local8 = 0;
mc.moveTo(_local3, _local2);
var _local1 = 1;
while (_local1 < xy.length) {
var _local5 = _local3;
var _local4 = _local2;
_local3 = ((xy[_local1][0] * element_width) + (element_width / 2)) + sx;
_local2 = ((xy[_local1][1] * element_height) + (element_height / 2)) + sy;
_local9 = xy[_local1][2];
if (distMax == 0) {
if (_local8 == 0) {
drawArrow(mc, _local5, _local4, _local3, _local2, 0, 0, lineColorA, lineAlphaA, lineTicknesA);
_local8 = 1;
} else {
drawArrow(mc, _local5, _local4, _local3, _local2, 0, 0, lineColor, lineAlpha, lineTicknes);
_local8 = 0;
}
} else if (_local9 > distMax) {
drawArrow(mc, _local5, _local4, _local3, _local2, 0, 0, lineColorA, lineAlphaA, lineTicknesA);
} else {
drawArrow(mc, _local5, _local4, _local3, _local2, 0, 0, lineColor, lineAlpha, lineTicknes);
}
_local1++;
}
}
function show_attrs(item_xml) {
var _local4 = _root.createEmptyMovieClip("escr", _root.dataeditor_escr_depth);
var _local16 = _local4.createEmptyMovieClip("bg_mc", _local4.getNextHighestDepth());
_local4._x = 0;
var _local10 = 0;
var _local7 = 0;
var _local6 = 100;
var _local11 = 22;
var _local12 = 9;
_local4.listenerObject = new Object();
_local4.listenerObject.change = function (eventObject) {
var _local2 = eventObject.target.ntxt.attr;
eventObject.target.item_xml.attributes[_local2] = eventObject.target.text;
};
var _local5;
var _local3;
for (var _local17 in item_xml.attributes) {
_local5 = _local4.createTextField(_local17 + "_ntxt", _local4.getNextHighestDepth(), (_local10 * _local6) * 2.1, _local7 * _local11, _local6, 22);
_local3 = _local4.createClassObject(mx.controls.TextArea, _local17 + "_itxt", _local4.getNextHighestDepth(), {_x:((_local10 * _local6) * 2.1) + _local6, _y:_local7 * _local11, _width:_local6, _height:22, selectable:true, editable:true, html:false});
_local5.selectable = false;
_local5.attr = _local17;
_local5.text = _root.get_hint(_local17);
_local5.border = true;
_local5.background = true;
_local3.item_xml = item_xml;
_local3.ntxt = _local5;
var _local8 = typeof(item_xml.attributes[_local17]);
if ((_local8 == "object") || (_local8 == "movieclip")) {
_local3.text = _local8;
_local3.selectable = false;
_local3.editable = false;
} else {
_local3.text = item_xml.attributes[_local17].toString();
}
_local7++;
if (_local7 > (_local12 - 1)) {
_local7 = _local7 - _local12;
_local10++;
}
_local3.addEventListener("change", _local4.listenerObject);
}
var _local17 = "new_attr";
_local5 = _local4.createClassObject(mx.controls.TextArea, _local17 + "_ntxt", _local4.getNextHighestDepth(), {_x:(_local10 * _local6) * 2.1, _y:_local7 * _local11, _width:_local6, _height:22, selectable:true, editable:true});
_local3 = _local4.createClassObject(mx.controls.TextArea, _local17 + "_itxt", _local4.getNextHighestDepth(), {_x:((_local10 * _local6) * 2.1) + _local6, _y:_local7 * _local11, _width:_local6, _height:22, selectable:true, editable:true});
_local5.text = _root.get_hint(_local17);
_local3.item_xml = item_xml;
_local3.ntxt = _local5;
_local3.text = "new_value";
_local3.addEventListener("change", _local4.listenerObject);
_local7++;
if (_local7 > (_local12 - 1)) {
_local7 = _local7 - _local12;
_local10++;
}
var _local14 = _local4.createEmptyMovieClip("mc" + _local4.getNextHighestDepth(), _local4.getNextHighestDepth());
_local14._x = (_local10 * _local6) * 2.1;
_local14._y = _local7 * 22;
_local6 = _local6 * 2;
var _local15 = _local11;
_root.drawPoly(_local14, [0, 0], [[0, 0], [_local6, 0], [_local6, _local15], [0, _local15], [0, 0]], {_ticknes:2, _color:3355443, _alpha:100}, {_color:16720418, _alpha:100});
_local14.mc = _local4;
_local14.onRelease = function () {
this.mc.unloadMovie();
};
_local6 = _local4._width;
_local15 = _local12 * _local11;
_root.drawPoly(_local16, [0, 0], [[0, 0], [_local6, 0], [_local6, _local15], [0, _local15], [0, 0]], {_ticknes:2, _color:3355443, _alpha:100}, {_color:2236962, _alpha:100});
_local16.onRelease = function () {
};
_local16.onPress = function () {
};
}
function show_trivia_txt(mc, dtxt, txt) {
dtxt.text = "";
mc.dtxt = dtxt;
mc.txt = txt;
mc.cur_let = 0;
mc.onEnterFrame = function () {
var _local4 = this.dtxt;
var _local5 = this.txt;
var _local8 = 0;
while (_local8 < 3) {
_local4.text = _local4.text + _local5.charAt(this.cur_let);
this.cur_let++;
if (_local5.charCodeAt(this.cur_let) == 32) {
var _local9 = _local4.text;
var _local10 = _local4.textHeight;
var _local3 = _local5.indexOf(" ", this.cur_let + 1);
var _local7 = _local5.indexOf("\r", this.cur_let + 1);
if (_local7 != -1) {
if (_local7 < _local3) {
_local3 = _local7;
}
}
if (_local3 == -1) {
_local3 = _local5.length;
}
var _local12 = _local3 - this.cur_let;
var _local6 = "";
var _local2 = this.cur_let;
while (_local2 < _local3) {
_local6 = _local6 + _local5.charAt(_local2);
_local2++;
}
_local4.text = _local4.text + _local6;
var _local11 = _local4.textHeight;
_local4.text = _local9;
if (_local11 != _local10) {
_local4.text = _local4.text + "\r";
this.cur_let++;
}
}
_local8++;
}
};
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
bg_depth = -10000;
intro_depth = -2000;
main_depth = -1000;
tiles_depth = -400;
decor_depth = -200;
bonus_depth = 200;
stars_depth = 600;
obj_beyon_depth = 1000;
monsters_depth = 2000;
bullets_depth = 2100;
keydispatcher_dept = 2990;
char_depth = 3000;
obj_depth = 3100;
gfx_depth = 3200;
d_depth = 3500;
keys_depth = 4000;
keys2_depth = 4001;
con_depth = 4100;
face_depth = 5500;
arrow_depth = 5501;
big_screen_depth = 6000;
lvl_editor_depth = 7000;
minimap_depth = 8000;
escmenu_depth = 10000;
tip_depth = 10010;
face_big_depth = 10020;
dataeditor_escr_depth = 10030;
loading_depth = 10050;
trace("ru.badim.utilz.1.5");
MovieClip.prototype.addESplash = function (color, knokout) {
var ttl = 10;
this.onEnterFrame = function () {
var _local2 = new flash.filters.GlowFilter(color, 0.6, ttl * 2, ttl * 2, 3, 1, false, knokout);
ttl--;
if (ttl < 1) {
this.filters = [];
delete this.onEnterFrame;
return(false);
}
this.filters = [_local2];
};
};
MovieClip.prototype.attachFontBut = function (tlname, tname, obj, act) {
var _local2 = this.attachMovie(tlname, tname, this.getNextHighestDepth(), obj);
_local2.make_me_font_but(act);
if (obj._label == undefined) {
_local2.dtxt.text = get_txt(tname);
} else {
_local2.dtxt.text = obj._label;
}
return(_local2);
};
MovieClip.prototype.make_me_font_but = function (act) {
var ntf = new TextFormat();
ntf.color = "0xd81b1b";
var rtf = new TextFormat();
rtf.color = "0xf9860b";
this.dtxt.setTextFormat(ntf);
this.dtxt.setNewTextFormat(ntf);
if (typeof(act) == "function") {
this.act = act;
}
this.set_label = function (txt) {
this._label = txt;
this.dtxt.text = txt;
};
this.set_disable = function (val) {
this._disabled = val;
if (val) {
this._alpha = 50;
} else {
this._alpha = 100;
}
this.gotoAndStop(this._def_frame);
};
this.onRollOver = function () {
if (!this._disabled) {
_root.snd.menu_toggle.start();
this.dtxt.text = ("-" + this._label) + "-";
this.dtxt.setTextFormat(rtf);
}
};
this.onRollOut = (this.onReleaseOutside = function () {
this.dtxt.text = this._label;
this.dtxt.setTextFormat(ntf);
});
this.onPress = function () {
if (!this._disabled) {
}
};
this.onRelease = function () {
if (!this._disabled) {
_root.snd.menu_click.start();
this.act();
}
};
};
MovieClip.prototype.attachBut = function (tlname, tname, obj, act) {
var _local2 = this.attachMovie(tlname, tname, this.getNextHighestDepth(), obj);
_local2.make_me_but(act);
if (obj._label == undefined) {
_local2.dtxt.text = get_txt(tname);
} else {
_local2.dtxt.text = obj._label;
}
_local2.set_label = function (txt) {
this.dtxt.text = txt;
};
return(_local2);
};
MovieClip.prototype.make_me_but = function (act) {
if (typeof(act) == "function") {
this.act = act;
}
this.gotoAndStop(1);
this._def_frame = 1;
this.set_disable = function (val) {
this._disabled = val;
if (val) {
this._alpha = 50;
this._def_frame = 4;
} else {
this._alpha = 100;
this._def_frame = 1;
}
this.gotoAndStop(this._def_frame);
};
this.onRollOver = function () {
if (!this._disabled) {
_root.snd.menu_toggle.start();
this.gotoAndStop(2);
}
};
this.onRollOut = (this.onReleaseOutside = function () {
this.gotoAndStop(this._def_frame);
});
this.onPress = function () {
if (!this._disabled) {
this.gotoAndStop(3);
this._press();
}
};
this.onRelease = function () {
if (!this._disabled) {
_root.snd.menu_click.start();
this.gotoAndStop(2);
this.act();
}
};
};
var PATH = "http://208.109.177.63/~blitzgam/blitz_HighScores/";
var GAMENAME = "elite_forces";
var SCORESPATH = (("http://www.blitzgamer.com/" + GAMENAME) + "_highscores.php");
_global.PATH = "http://208.109.177.63/~blitzgam/blitz_HighScores/";
_global.GAMENAME = "elite_forces";
_global.SCORESPATH = ("http://www.blitzgamer.com/" + GAMENAME) + "_highscores.php";
_global._game_paused = false;
_global._keys_layout = 1;
_root._login = xml_lang.txt_player;
_global.black_filter = new flash.filters.GlowFilter(0, 1, 3, 3, 10, 1, false, false);
var keyListener = {};
_root.cheats = [];
keyListener.onKeyDown = function () {
var _local3 = Key.getCode();
_root.cheats.push(_local3);
while (_root.cheats.length > 5) {
_root.cheats.shift();
}
if (_global.cheats_on) {
var _local4 = _root.cheats.join("_");
switch (_local4) {
case "78_79_65_68_83" :
_global.no_ads = true;
break;
case "73_77_77_79_82" :
break;
case "87_69_65_80_83" :
_global.game.cheat_weaps();
break;
case "87_73_78_69_82" :
_global.game.cheat_winer();
break;
case "76_79_83_69_82" :
_global.game.cheat_loser();
}
}
switch (_local3) {
case 70 :
_global.game.weap_set_next();
break;
case 82 :
_global.game.char_reload();
break;
case 49 :
_global.game.weap_set_type(1);
break;
case 50 :
_global.game.weap_set_type(2);
break;
case 51 :
_global.game.weap_set_type(3);
break;
case 52 :
_global.game.weap_set_type(4);
break;
case 53 :
_global.game.weap_set_type(5);
break;
case 54 :
_global.game.weap_set_type(6);
break;
case 55 :
_global.game.weap_set_type(7);
break;
case 56 :
_global.game.weap_set_type(8);
}
};
Key.addListener(keyListener);
_root.musik = new Sound();
_root.musik_loaded = true;
_root.musik_started = false;
var fname = "Expedition.mp3";
_root.musik.attachSound(fname, false);
_root.set_sounds = function (volume_lvl) {
if (System.capabilities.isDebugger) {
}
if (volume_lvl == undefined) {
volume_lvl = 0.5;
}
_root.SO.data.volume = volume_lvl;
_root.SO.flush();
_root.musik.setVolume(100 * volume_lvl);
_root.reset_sound();
};
_root.reset_sound = function () {
var _local2 = _root.musik.getVolume();
if (System.capabilities.isDebugger) {
}
for (var _local3 in _root.snd) {
_root.snd[_local3].setVolume(_local2);
}
};
_root.snd = {};
var ext = ".mp3";
var fname;
var ffname;
fname = "menu_click";
_root.snd[fname] = new Sound();
ffname = (snd_path + fname) + ext;
_root.snd[fname].attachSound(ffname, false);
fname = "menu_toggle";
_root.snd[fname] = new Sound();
ffname = (snd_path + fname) + ext;
_root.snd[fname].attachSound(ffname, false);
_root.load_snd = function (snd_type) {
var _local5 = ".mp3";
var _local3;
var _local4;
_local3 = "radarping";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "pickup_205";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "pickup_206";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "pickup_207";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
var _local7 = "";
_local3 = ("death_" + snd_type) + _local7;
_root.snd.death = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd.death.attachSound(_local4, false);
_local3 = "explosion_boss1";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "death_boss1";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "howl_boss1";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "reload";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "fire_marine";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "grenade_launch";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "win";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "death_kamikadze";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "death_marine";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "explosion_grenade";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "explosion_kamikadze";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "explosion_mine";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local3 = "explosion_object";
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 1;
_local3 = "rocket" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 2;
_local3 = "rocket" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 3;
_local3 = "rocket" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 4;
_local3 = "rocket" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 1;
_local3 = "body_impact" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 2;
_local3 = "body_impact" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 3;
_local3 = "body_impact" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 1;
_local3 = "object_impact" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 2;
_local3 = "object_impact" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 3;
_local3 = "object_impact" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 1;
_local3 = "machine_gun" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 2;
_local3 = "machine_gun" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 3;
_local3 = "machine_gun" + _local7;
_root.snd[_local3] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd[_local3].attachSound(_local4, false);
_local7 = 1;
_local3 = ("jump_" + snd_type) + _local7;
_root.snd["jump" + _local7] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd["jump" + _local7].attachSound(_local4, false);
_local7 = 2;
_local3 = ("jump_" + snd_type) + _local7;
_root.snd["jump" + _local7] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd["jump" + _local7].attachSound(_local4, false);
_local7 = 1;
_local3 = ("step_" + snd_type) + _local7;
_root.snd["step" + _local7] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd["step" + _local7].attachSound(_local4, false);
_local7 = 2;
_local3 = ("step_" + snd_type) + _local7;
_root.snd["step" + _local7] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd["step" + _local7].attachSound(_local4, false);
_root.snd["step" + _local7].onSoundComplete = function () {
if (_global.going) {
var _local3 = random(3) + 1;
_root.snd["step" + _local3].start();
}
};
_local7 = 3;
_local3 = ("step_" + snd_type) + _local7;
_root.snd["step" + _local7] = new Sound();
_local4 = (snd_path + _local3) + _local5;
_root.snd["step" + _local7].attachSound(_local4, false);
_root.snd["step" + _local7].onSoundComplete = function () {
if (_global.going) {
var _local3 = random(3) + 1;
_root.snd["step" + _local3].start();
}
};
_root.reset_sound();
};
_global.main_x = 0;
_global.main_y = 0;
_global.keyboard_control = true;
_global._game_paused = false;
_root.add_to_log = function (txt) {
trace(txt);
};
_root.SO = SharedObject.getLocal("THUG");
new Hint();
_global.loader = new CLoader(false, true, "load_scr", _root.loading_depth, 250);
_global.game = new CGame(map_xml, 0, 0, 3, null, null, lvls, null, _global.objs_xml, _root.char_type);
trace("ru.badim.drawind.1.5");
_root.get_xml_lang = function (attr) {
if (_global.xml_lang[attr] == undefined) {
return(attr);
}
var _local2 = _global.xml_lang[attr];
_local2 = _local2.split("%e").join("\r");
return(_local2);
};
_root.set_always_glow = function (mc, glowColor, alpha) {
if (glowColor == undefined) {
glowColor = 65280;
}
if (alpha == undefined) {
alpha = 10;
}
var _local2 = alpha;
mc.normal_alpha = _local2;
mc._alpha = _local2;
mc.st = _local2;
mc.onEnterFrame = function () {
if (this.st == undefined) {
this.st = 10;
}
if (this.stspeed == undefined) {
this.stspeed = 2;
}
if (this.st_min == undefined) {
this.st_min = 3;
}
if (this.st_max == undefined) {
this.st_max = 10;
}
var _local2 = new flash.filters.GlowFilter(glowColor, 0.7, this.st, this.st, 10, 1, false, false);
this.filters = [_local2];
this.st = this.st + this.stspeed;
if ((this.stspeed > 0) and (this.st > this.st_max)) {
this.st = this.st_max;
this.stspeed = this.stspeed * -1;
}
if ((this.stspeed < 0) and (this.st < this.st_min)) {
this.st = this.st_min;
this.stspeed = this.stspeed * -1;
}
};
};
MovieClip.prototype.onSpace = function (act, l, r) {
this.act = act;
this.l = l;
this.r = r;
this.onEnterFrame = function () {
if (this.space_presed) {
if (!Key.isDown(32)) {
delete this.onEnterFrame;
this.act();
}
}
this.space_presed = Key.isDown(32);
if (this.r_presed) {
if (!Key.isDown(39)) {
this.r();
}
}
this.r_presed = Key.isDown(39);
if (this.l_presed) {
if (!Key.isDown(37)) {
this.l();
}
}
this.l_presed = Key.isDown(37);
};
};
if (!_global.release_this) {
_root._fps = 0;
var fpsmc = _root.createEmptyMovieClip("fps_mc", 20000);
fpsmc.onEnterFrame = function () {
_root._fps++;
};
fpsmc._x = 400;
fpsmc.createTextField("tf", 10000, 0, 0, 60, 20);
fpsmc.tf.selectable = false;
fpsmc.tf.backgroundColor = 16777215 /* 0xFFFFFF */;
fpsmc.tf.background = true;
setInterval(function () {
_root.fps_mc.tf.text = "fps:" + _root._fps;
_root._fps = 0;
}, 1000);
}
_global.UniteScores = new CUniteScores();
_root.renew_server_status();
_root.add_to_log = function (txt) {
_global.bid_face_mc.log_dtxt.text = (txt + "\r") + _global.bid_face_mc.log_dtxt.text;
};
show_history = function (n, onNext) {
var _local4 = _root.attachMovie("history_scr", "tip_scr", _root.tip_depth);
_local4.onUnload = function () {
_global.game.unpause_game();
};
_local4.onNext = onNext;
_local4.goNext = function () {
this.onNext();
};
_local4.but0_mc.text_dtxt.text = xml_lang.txt_next;
_local4.but0_mc.mc = _local4;
_local4.but0_mc.onRelease = function () {
this.mc.goNext();
};
_local4.mc = _local4;
_local4.onSpace(function () {
this.mc.goNext();
});
_global.game.pause_game();
var _local6 = _local4.createEmptyMovieClip("trt_txt", _local4.getNextHighestDepth());
var _local5 = _root.get_xml_lang("txt_history_" + n);
_root.show_trivia_txt(_local6, _local4.dtxt, _local5);
};
tips = [];
show_tip = function (n) {
if (_global.show_lvl_editor || (_global.show_tips == false)) {
return(false);
}
if (tips[n] && (_global._game_paused <= 0)) {
return(false);
}
var _local9 = _rw;
var _local10 = _rh;
var _local7 = false;
var _local8 = 4294967295;
var _local6 = new flash.display.BitmapData(_local9, _local10, _local7, _local8);
_local6.draw(_root);
var _local4 = _root.attachMovie("tip_scr", "tip_scr", _root.tip_depth);
_local4.attachBitmap(_local6, _local4.getNextHighestDepth());
_local4.gotoAndStop(n);
_local4.body.gotoAndStop(_root.dlang + 1);
_local4.onUnload = function () {
_global.game.unpause_game();
};
if (n != 100) {
tips[n] = true;
}
_local4.but0_mc.text_dtxt.text = xml_lang.txt_close;
_local4.but0_mc.mc = _local4;
_local4.but0_mc.onRelease = function () {
this.mc.unloadMovie();
_root.createEmptyMovieClip("tip_scr", _root.tip_depth);
};
_local4.mc = _local4;
_local4.onSpace(function () {
this.mc.unloadMovie();
_root.createEmptyMovieClip("tip_scr", _root.tip_depth);
});
_global.game.pause_game();
};
show_continue_menu = function () {
var _local3 = _root.attachMovie("continue_scr", "main", _root.main_depth);
_local3.t_dtxt.text = _root.get_xml_lang("txt_continue");
var _local5 = _local3.createEmptyMovieClip("trt_txt", _local3.getNextHighestDepth());
var _local4 = _root.get_xml_lang("txt_wanacontinue");
_root.show_trivia_txt(_local5, _local3.dtxt, _local4);
_local3.back_mc.text_dtxt.text = _root.get_xml_lang("txt_new");
_local3.back_mc.onRelease = function () {
_global.game.set_char_type(_root.char_type);
_global.game.__CMap_ini_map(0);
};
_local3.next_mc.text_dtxt.text = _root.get_xml_lang("txt_next");
_local3.next_mc.onRelease = function () {
_global.game.set_char_type(_root.char_type);
_global.game._score = _root.SO.data.scores / 1;
_global.game._char_capsule = _root.SO.data.c_cap / 1;
_global.game.__CMap_ini_map(_root.SO.data.mish / 1);
};
};
show_login_menu = function () {
var _local3 = _root.createEmptyMovieClip("about_scr", _root.tip_depth);
_local3 = _root.attachMovie("login_scr", "main", _root.main_depth);
_local3.name_dtxt.text = xml_lang.txt_name + ":";
_local3.pass_dtxt.text = xml_lang.txt_pass + ":";
_local3.name_itxt.text = xml_lang.txt_player;
_local3.pass_itxt.text = xml_lang.txt_pass;
if (_global.no_editor) {
_local3.pass_dtxt._visible = false;
_local3.pass_itxt._visible = false;
}
if (_root.SO.data.login != undefined) {
_local3.name_itxt.text = _root.SO.data.login;
}
if (_root.SO.data.pass != undefined) {
_local3.pass_itxt.text = _root.SO.data.pass;
}
_local3.go_next = function () {
_root._login = _root.main.name_itxt.text;
_root._pass = _root.main.pass_itxt.text;
_root.SO.data.login = _root._login;
_root.SO.data.pass = _root._pass;
_root.SO.flush();
var _local3 = _root.get_server_status();
if (_local3 == 1) {
_global.loader.add_xml("auth", true);
_global.smartFox.connect(_ip, _port);
_root.set_server_status(3);
}
if (_local3 == 4) {
_root.socket_login();
}
_root.show_main_menu();
};
_root.main.next_mc.text_dtxt.text = xml_lang.txt_next;
_root.main.next_mc.onRelease = function () {
_root.main.go_next();
};
_local3.onSpace(function () {
_root.main.go_next();
});
if (_root.kongregate_username != undefined) {
_local3.name_itxt.text = _root.kongregate_username;
_root.main.go_next();
}
};
show_main_menu = function () {
_root.createEmptyMovieClip("lvl_ed", _root.lvl_editor_depth);
var _local3 = _root.attachMovie("menu_scr", "main", _root.main_depth);
if (_global.options_multylang) {
_local3.but_lang_en_mc.text_dtxt.text = strs[1].lang_name;
_local3.but_lang_en_mc.onRelease = function () {
_root.dlang = 1;
_global.lang_xml = new XML(strs[1].txt);
_global.xml_lang = _global.lang_xml.firstChild.attributes;
show_main_menu();
};
_local3.but_lang_ru_mc.text_dtxt.text = strs[2].lang_name;
_local3.but_lang_ru_mc.onRelease = function () {
_root.dlang = 2;
_global.lang_xml = new XML(strs[2].txt);
_global.xml_lang = _global.lang_xml.firstChild.attributes;
show_main_menu();
};
_local3.but_lang_hu_mc.text_dtxt.text = strs[0].lang_name;
_local3.but_lang_hu_mc.text_dtxt.autoSize = "right";
_local3.but_lang_hu_mc.onRelease = function () {
_root.dlang = 0;
_global.lang_xml = new XML(strs[0].txt);
_global.xml_lang = _global.lang_xml.firstChild.attributes;
show_main_menu();
};
} else {
_local3.but_lang_en_mc._visible = false;
_local3.but_lang_ru_mc._visible = false;
_local3.but_lang_hu_mc._visible = false;
}
_local3.onSpace(function () {
if (_global.mochi_opened == false) {
_global.show_lvl_editor = false;
_root.show_history(1, function () {
_root.show_history(2, function () {
_root.show_choosechar_menu();
_root.tip_scr.unloadMovie();
});
});
}
}, function () {
if (_global.release_this) {
} else {
_global.no_editor = false;
_root.show_main_menu();
}
}, function () {
if (_global.release_this) {
} else {
_global.no_editor = true;
_root.show_main_menu();
}
});
var _local12 = _local3.but_start_mc;
_local12.text_dtxt.text = xml_lang.txt_start;
_local12.onRelease = function () {
_global.show_lvl_editor = false;
_root.show_history(1, function () {
_root.show_history(2, function () {
_root.show_choosechar_menu();
_root.tip_scr.unloadMovie();
});
});
};
var _local7 = _local3.but_editor_mc;
_local7.text_dtxt.text = xml_lang.txt_lvleditor;
_local7.onRelease = function () {
_global.show_lvl_editor = true;
_root.show_choosechar_menu();
};
var _local4 = _local3.but_www_mc;
_local4.text_dtxt.text = xml_lang.txt_web;
_local4.onRelease = function () {
getURL ("http://badim.ru/flash_thug/", "_blank");
};
var _local5 = _local3.but_maplist_mc;
_local5.text_dtxt.text = xml_lang.txt_maplist;
_local5.onRelease = function () {
_root.show_map_menu();
};
var _local9 = _local3.but_login_mc;
_local9.text_dtxt.text = _root._login;
_local9.onRelease = function () {
_root.show_login_menu();
};
var _local8 = _local3.but_about_mc;
_local8.text_dtxt.text = xml_lang.txt_about;
_local8.onRelease = function () {
_root.show_about();
};
var _local11 = _local3.but_scores_mc;
_local11.text_dtxt.text = xml_lang.txt_scores;
_local11.onRelease = function () {
if (_global.blitz_release) {
getURL (_root.SCORESPATH, "_blank");
} else {
_root.show_mochiscores();
}
};
var _local10 = _local3.but_options_mc;
_local10.text_dtxt.text = xml_lang.txt_options;
_local10.onRelease = function () {
_root.show_options();
};
if (_global.no_editor) {
_local7._visible = false;
_local5._visible = false;
}
if (_global.release_this) {
_local4.text_dtxt.wordWrap = false;
_local4.text_dtxt.autoSize = "left";
_local4.text_dtxt.text = get_txt("more_games");
_local4.text_dtxt._xscale = 90;
_local4.onRelease = function () {
getURL ("http://www.blitzgamer.com/", "_blank");
};
}
var _local6 = "this:" + _global.ver_this;
_local6 = _local6 + "\r";
if (_global.ver_last != undefined) {
_local6 = _local6 + ("server:" + _global.ver_last);
}
_local3.ved_dtxt.text = _local6;
_root.musik_started = true;
if (_root.musik_started) {
if (_root.musik_enabled) {
_root.musik.stop();
_root.musik.start(0, 500);
}
}
_global.game.start_game();
};
show_choosechar_menu = function () {
var _local5 = _root.attachMovie("choosechar_scr", "main", _root.main_depth);
_root.main.set_selector = function (mc, char_type) {
mc.gotoAndStop(1);
mc.act = act;
mc.char_type = char_type;
mc.onRollOver = function () {
_root.snd.menu_toggle.start();
this.gotoAndStop(2);
};
mc.onReleaseOutside = (mc.onRollOut = function () {
if (_root.main.sel_here == this._name) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
});
mc.onPress = function () {
_root.snd.menu_click.start();
this.gotoAndStop(3);
};
mc.onRelease = function () {
_root.main.select_type(this.char_type);
};
};
_root.main.select_type = function (type) {
_root.main.char1.gotoAndStop(1);
_root.main.char2.gotoAndStop(1);
_root.main.char3.gotoAndStop(1);
_root.main.char4.gotoAndStop(1);
var _local2 = _root.main["char" + type];
_root.main.sel_here = _local2._name;
_root.char_type = type;
_root.main.sel_mc._x = _local2._x;
_local2.gotoAndStop(2);
};
_local5.onSpace(function () {
_root.show_game();
}, function () {
if (_root.char_type < 2) {
_root.main.select_type(_root.char_type_l);
} else {
_root.main.select_type(_root.char_type - 1);
}
}, function () {
if (_root.char_type >= _root.char_type_l) {
_root.main.select_type(1);
} else {
_root.main.select_type(_root.char_type + 1);
}
});
_root.char_type_l = 2;
_root.main.set_selector(_root.main.char1, 1);
_root.main.set_selector(_root.main.char2, 2);
_root.main.set_selector(_root.main.char3, 3);
_root.main.set_selector(_root.main.char4, 4);
_root.main.select_type(random(_root.char_type_l) + 1);
_root.main.but0_mc.text_dtxt.text = xml_lang.txt_start;
_root.main.but0_mc.onRelease = function () {
_root.show_game();
};
var _local4 = _root.main.back_mc;
_local4.text_dtxt.text = xml_lang.txt_back;
_local4.onRelease = function () {
_root.show_main_menu();
};
};
show_game = function () {
if (_root.SO.data.mish != undefined) {
if ((_root.SO.data.mish > 0) && (_global.continue_feature)) {
_root.show_continue_menu();
return(false);
}
}
show_next_game(0, 0, 3);
};
show_next_game = function (lvl, scores, lives, checkpoint_x, checkpoint_y, lvls, diams) {
if (_root.char_type == undefined) {
_root.char_type = 2;
}
_global.game.set_char_type(_root.char_type);
_global.game.__CMap_ini_map(lvl);
};
show_win_menu = function (lvl, scores, lives) {
var _local5 = _global.game.__CMap_get_if_this_last_level();
_global.game._enemy_kiled = 0;
var _local6 = "win_scr";
_root.SO.data.mish = lvl + 1;
_root.SO.data.scores = scores.total_score;
_root.SO.data.c_cap = _global.game._char_capsule;
if (_local5) {
_local6 = "end_scr";
_root.SO.data.mish = 0;
_root.SO.data.scores = 0;
}
_root.SO.flush();
if (_local5) {
if (_global.blitz_release) {
_global.score_this_game = scores.total_score;
_root.show_blitz_score();
} else if (System.capabilities.isDebugger || (_global.show_lvl_editor)) {
} else {
MochiAd.sendHighScore({id:_global.mochiad_id, name:_root._login, score:scores.total_score}, _root, null);
_root.kongregateStats.submit("Total scores", scores.total_score);
}
}
var _local3 = _root.attachMovie(_local6, "main", _root.main_depth, tempobj);
var _local8 = _local3.createEmptyMovieClip("trt_txt", _local3.getNextHighestDepth());
var _local7 = _root.get_xml_lang("txt_winmsg");
if (_local5) {
_local3.title_dtxt.text = _root.get_xml_lang("txt_endmsg");
_local7 = _root.get_xml_lang("txt_history_6");
}
_root.show_trivia_txt(_local8, _local3.dtxt, _local7);
_local3.score_dtxt.text = "";
_local3.score_dtxt.text = _local3.score_dtxt.text + _root.get_xml_lang("txt_scoretable");
_local3.score_itxt.text = "";
_local3.score_itxt.text = _local3.score_itxt.text + (scores.score_for_kills + "\r");
_local3.score_itxt.text = _local3.score_itxt.text + (scores.score_for_time + "\r");
_local3.score_itxt.text = _local3.score_itxt.text + (scores.score_for_bonuses + "\r");
_local3.score_itxt.text = _local3.score_itxt.text + (scores.total_score + "\r");
_root.main.go_next = function () {
_root.main.next_mc.text_dtxt.text = xml_lang.txt_wait;
if (_global.no_ads) {
_global.game.__CMap_ini_next_map();
} else {
MochiAd.showTimedAd({id:_global.get_mochiad_id(), res:"700x400", ad_timeout:2000, fadeout_time:200, ad_finished:function () {
_global.game.__CMap_ini_next_map();
}});
}
delete _root.main.go_next;
};
_root.main.next_mc.text_dtxt.text = xml_lang.txt_next;
_root.main.next_mc.onRelease = function () {
_root.main.go_next();
};
_local3.onSpace(function () {
_root.main.go_next();
});
};
show_blitz_score = function () {
var _local3 = _root.attachMovie("score_blitz_scr", "score_blitz_scr", _root.tip_depth);
_local3.but0_mc.text_dtxt.text = xml_lang.txt_close;
_local3.but0_mc.onRelease = function () {
this._parent.unloadMovie();
_root.createEmptyMovieClip("tip_scr", _root.tip_depth);
};
};
show_lose_menu = function (obj) {
var main_mc = _root.attachMovie("lose_scr", "main", _root.main_depth);
trace("---");
trace((("__main_mc:" + main_mc) + ":") + main_mc.getDepth());
var _local5 = main_mc.createEmptyMovieClip("trt_txt", main_mc.getNextHighestDepth());
var _local4 = _root.get_xml_lang("txt_losemsg");
_local4 = _local4 + "\r";
_local4 = _local4 + ((_root.get_xml_lang("txt_continues") + ": ") + obj._char_continues);
_root.show_trivia_txt(_local5, main_mc.dtxt, _local4);
trace("_obj._char_continues:" + obj._char_continues);
_root.main.sub_mc.text_dtxt.text = "Exit&Submit";
_root.main.sub_mc.text_dtxt.wordWrap = false;
_root.main.sub_mc.text_dtxt.autoSize = "left";
_root.main.sub_mc.onRelease = function () {
_global.game._char_continues = 1;
_global.game.lose_game();
_root.score_blitz_scr.but0_mc.onRelease = function () {
_root.show_main_menu();
this._parent.unloadMovie();
_root.createEmptyMovieClip("tip_scr", _root.tip_depth);
};
};
_root.main.back_mc.text_dtxt.text = get_txt("more_games");
_root.main.back_mc.text_dtxt.wordWrap = false;
_root.main.back_mc.text_dtxt.autoSize = "left";
_root.main.back_mc.onRelease = function () {
getURL ("http://www.blitzgamer.com/", "_blank");
};
if (obj._char_continues > 0) {
} else if (_global.blitz_release) {
_global.score_this_game = obj.total_score;
_root.show_blitz_score();
} else if (System.capabilities.isDebugger || (_global.show_lvl_editor)) {
} else {
MochiAd.sendHighScore({id:_global.mochiad_id, name:_root._login, score:obj.total_score}, _root, null);
_root.kongregateStats.submit("Total scores", obj.total_score);
}
main_mc.go_next = function () {
trace("_obj._char_continues:" + obj._char_continues);
if (obj._char_continues > 0) {
_global.game.__CMap_refresh_map();
_root.main.next_mc.text_dtxt.text = xml_lang.txt_wait;
if (_global.no_ads) {
_global.game.__CMap_ini_same_map();
} else {
MochiAd.showTimedAd({id:_global.get_mochiad_id(), res:"700x400", ad_timeout:1000, fadeout_time:200, ad_finished:function () {
_global.game.__CMap_ini_same_map();
}});
}
} else {
_root.show_main_menu();
if (!_global.blitz_release) {
_root.show_mochiscores();
}
}
delete _root.main.go_next;
};
_root.main.next_mc.text_dtxt.text = get_txt("txt_next");
_root.main.next_mc.onRelease = function () {
main_mc.go_next();
};
main_mc.onSpace(function () {
main_mc.go_next();
});
};
show_about = function () {
var _local4 = _root.attachMovie("about_scr", "about_scr", _root.tip_depth);
_local4.onUnload = function () {
_global.game.unpause_game();
};
_local4.but0_mc.text_dtxt.text = xml_lang.txt_close;
_local4.but0_mc.mc = _local4;
_local4.but0_mc.onRelease = function () {
this.mc.unloadMovie();
_root.createEmptyMovieClip("about_scr", _root.tip_depth);
};
_local4.mc = _local4;
_local4.onSpace(function () {
this.mc.unloadMovie();
_root.createEmptyMovieClip("about_scr", _root.tip_depth);
});
_global.game.pause_game();
_local4.menu_name_dtxt.text = xml_lang.txt_about;
};
show_options = function () {
var _local4 = _root.attachMovie("options_scr", "options_scr", _root.tip_depth);
_local4.onUnload = function () {
_global.game.unpause_game();
};
_local4.but0_mc.text_dtxt.text = xml_lang.txt_close;
_local4.but0_mc.mc = _local4;
_local4.but0_mc.onRelease = function () {
this.mc.unloadMovie();
_root.createEmptyMovieClip("tip_scr", _root.tip_depth);
};
_local4.mc = _local4;
_local4.onSpace(function () {
this.mc.unloadMovie();
_root.createEmptyMovieClip("tip_scr", _root.tip_depth);
});
_global.game.pause_game();
_local4.menu_name_dtxt.text = _root.get_xml_lang("txt_options");
_local4.sound_dtxt.text = _root.get_xml_lang("txt_soundlevel");
_local4.keys_dtxt.text = _root.get_xml_lang("txt_keys");
};
show_escmenu = function () {
var _local4 = _root.attachMovie("game_menu_scr", "game_menu_scr", _root.escmenu_depth);
_local4.onUnload = function () {
_global.game.unpause_game();
};
_local4.but0_mc.text_dtxt.text = xml_lang.txt_resume;
_local4.but0_mc.mc = _local4;
_local4.but0_mc.onRelease = function () {
this.mc.unloadMovie();
};
_local4.but1_mc.text_dtxt.text = xml_lang.txt_options;
_local4.but1_mc.onRelease = function () {
_root.show_options();
};
_local4.but2_mc.text_dtxt.text = xml_lang.txt_tips;
_local4.but2_mc.onRelease = function () {
_root.show_tip(1);
};
_local4.but3_mc.text_dtxt.text = xml_lang.txt_exittomenu;
_local4.but3_mc.mc = _local4;
_local4.but3_mc.onRelease = function () {
this.mc.unloadMovie();
_root.show_main_menu();
};
_local4.bg_mc.mc = _local4;
_local4.bg_mc.onPress = function () {
};
_local4.bg_mc.onRelease = function () {
};
_global.game.pause_game();
};
show_map_menu = function () {
_root.attachMovie("map_list_scr", "main", _root.main_depth);
var _local18 = _root.main.but0_mc;
_local18.text_dtxt.text = xml_lang.txt_allmaps;
_local18.onRelease = function () {
_root.main.show_map_list(map_xml);
};
var _local17 = _root.main.but1_mc;
_local17.text_dtxt.text = xml_lang.txt_servermaps;
_local17.onRelease = function () {
var _local3 = _root.get_server_status();
if (_local3 == 1) {
_global.loader.add_xml("auth", true);
_global.smartFox.connect(_ip, _port);
_root.set_server_status(3);
}
if (_local3 == 2) {
_root.socket_get_list();
}
if (_local3 == 4) {
_root.socket_login();
}
};
var _local15 = _root.main.but2_mc;
_local15.text_dtxt.text = xml_lang.txt_back;
_local15.onRelease = function () {
_root.show_main_menu();
};
_root.main.show_map_list = function (maps_xml) {
var _local6 = this.createEmptyMovieClip("list", 111);
_local6._x = 210;
_local6._y = 90;
var _local5 = maps_xml.firstChild.childNodes;
var _local12 = 0;
var _local8 = 0;
if (maps_xml.firstChild.attributes.local_maps) {
var _local7 = {_x:_local12 * 22, _y:_local8 * 22};
var item_mc = _local6.attachMovie("new_map_item", "map_item" + _local6.getNextHighestDepth(), _local6.getNextHighestDepth(), _local7);
_local8++;
item_mc.dtxt.text = xml_lang.txt_newmap;
item_mc.but0_mc.addHint();
item_mc.but0_mc.addHint("New_map");
item_mc.but0_mc.item_mc = item_mc;
item_mc.but0_mc.map_aid = "new";
item_mc.but0_mc.make_me_but(function () {
var _local9 = this.item_mc.dtxt.text;
var _local7 = (_root._login + "_") + _local9;
var _local5 = maps_xml.firstChild.childNodes;
for (var _local8 in _local5) {
var _local4 = _local5[_local8];
if (_local4.attributes.id == _local7) {
return(false);
}
}
var _local6 = new XML("<map />");
_local6.firstChild.attributes.uname = _root._login;
_local6.firstChild.attributes.name = _local9;
_local6.firstChild.attributes.bg = 1;
_local6.firstChild.attributes.tileset = 1;
_local6.firstChild.attributes.id = _local7;
var _local11 = new XML("<levels><level params=\"000000000000000000000000000000000\" /><level params=\"0001q1111111111111111111000000000\" /></levels>");
var _local10 = new XML("<objs />");
_local6.firstChild.appendChild(_local11.firstChild);
_local6.firstChild.appendChild(_local10.firstChild);
_global.map_xml.firstChild.appendChild(_local6.firstChild);
_root.main.show_map_list(_global.map_xml);
});
}
for (var _local13 in _local5) {
var _local4 = _local5[_local13];
var _local7 = {_x:_local12 * 22, _y:_local8 * 22};
var item_mc = _local6.attachMovie("map_item", "map_item" + _local6.getNextHighestDepth(), _local6.getNextHighestDepth(), _local7);
_local8++;
item_mc.dtxt.text = ((((_local13 + ":") + _local4.attributes.name) + "(by ") + _local4.attributes.uname) + ")";
if (maps_xml.firstChild.attributes.local_maps) {
item_mc.but0_mc.addHint();
item_mc.but0_mc.addHint("Show_map");
item_mc.but0_mc.map_aid = _local13;
item_mc.but0_mc.make_me_but(function () {
_global.show_lvl_editor = true;
_root.show_next_game(this.map_aid, 0, 3);
});
item_mc.but1_mc.make_me_but(function () {
trace("fa1");
});
item_mc.but2_mc.make_me_but(function () {
trace("fa2");
});
} else {
item_mc.but0_mc.addHint();
item_mc.but0_mc.addHint("Download_map");
item_mc.but0_mc.map_aid = _local13;
item_mc.but0_mc.id = _local4.attributes.id;
item_mc.but0_mc.make_me_but(function () {
_root.socket_get_map(this.id);
});
item_mc.but1_mc.make_me_but(function () {
trace("fa1");
});
item_mc.but2_mc.make_me_but(function () {
trace("fa2");
});
}
}
};
_root.renew_server_status();
_root.main.show_map_list(_global.map_xml);
};
if (_global.blitz_release) {
show_main_menu();
} else {
show_login_menu();
}
show_mochiscores = function () {
trace("__<show_mochiscores>");
var _local8 = _root.attachMovie("score_scr", "score_scr", _root.tip_depth);
_local8.setTxt = function (txt) {
var _local5 = this.score_mc.all_dtxt;
var _local3 = this.score_mc.n_dtxt;
var _local4 = this.score_mc.name_dtxt;
var _local2 = this.score_mc.score_dtxt;
_local5.text = txt;
if (txt != "") {
_local4.text = "";
_local2.text = "";
_local3.text = "";
}
};
_local8.fetchHighScores = function (scores, playerIndex) {
trace("___<trace_this_shit>");
trace("__scores:" + typeof(scores));
trace("__scores:" + scores.join("|"));
trace("__playerIndex:" + typeof(playerIndex));
trace("___</trace_this_shit>");
var _local9 = scores.length;
trace("_scores_count:" + _local9);
var _local7 = this.score_mc.n_dtxt;
var _local8 = this.score_mc.name_dtxt;
var _local6 = this.score_mc.score_dtxt;
_local7.text = "";
_local8.text = "";
_local6.text = "";
var _local2 = 0;
while (_local2 < _local9) {
var _local4 = scores[_local2];
var _local3 = _local4[0];
var _local5 = _local4[1];
trace((((_local2 + ":") + _local3) + ":") + _local5);
_local7.text = _local7.text + (((_local2 + 1) + ". ") + "\r");
_local8.text = _local8.text + (_local3 + "\r");
_local6.text = _local6.text + (_local5 + "\r");
_local2++;
}
this.setTxt("");
};
var _local13 = MochiAd.fetchHighScores({id:_global.mochiad_id}, _local8, "fetchHighScores");
trace("_hasNetwork:" + _local13);
_local8.setTxt(xml_lang.txt_loading);
_local8.but0_mc.mc = _local8;
_local8.but0_mc.text_dtxt.text = xml_lang.txt_close;
_local8.but0_mc.onRelease = function () {
this.mc.unloadMovie();
_root.createEmptyMovieClip("tip_scr", _root.tip_depth);
};
_local8.mc = _local8;
_local8.onSpace(function () {
this.mc.unloadMovie();
_root.createEmptyMovieClip("tip_scr", _root.tip_depth);
});
trace("__</show_mochiscores>");
};
__com_mochibot__("ba4e72ae", this, 10301, true);
__com_mochibot__("766867eb", this, 10301, true);
Symbol 2 MovieClip [buble] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 2;
this._y = this._y - (Math.random() * 4);
if (this._y < 0) {
this._visible = false;
this.unloadMovie();
}
this._x = this._x + ((Math.random() * 4) - 2);
};
var temp = ((Math.random() * 0.6) + 0.6);
this._xscale = this._xscale * temp;
this._yscale = this._yscale * temp;
Symbol 9 MovieClip Frame 1
this.gotoAndStop(random(2) + 1);
Symbol 10 MovieClip [but_l] Frame 1
stop();
this.onRollOver = function () {
_root.snd.menu_toggle.start();
this.gotoAndStop(2);
};
this.onPress = function () {
_root.snd.menu_click.start();
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 10 MovieClip [but_l] Frame 2
this.addESplash(30464, false);
Symbol 26 MovieClip Frame 1
this.dots = 0;
this.dots_max = 4;
this.onEnterFrame = function () {
this.dtxt.text = "Loading";
this.dots = this.dots + 0.12;
if (this.dots >= this.dots_max) {
this.dots = 0;
}
var _local2 = 0;
while (_local2 < this.dots) {
this.dtxt.text = this.dtxt.text + ".";
_local2++;
}
};
Symbol 39 Button
on (release) {
getURL ("http://www.blitzgamer.com", "_blank");
}
Symbol 2453 MovieClip [__Packages.Hint] Frame 0
class Hint
{
static var hints, mc;
function Hint (fa, fc, lc, fmt, fsize) {
if (fsize == undefined) {
fsize = 10;
}
trace("#included:Hint");
if (hints) {
delete this;
return;
}
hints = [];
mc = _root.createEmptyMovieClip("hints_mc", 26000);
mc.createTextField("tf", 0, 0, 0, 0, 0);
mc.tf.autoSize = true;
mc.tf.selectable = false;
mc.lc = ((lc == undefined) ? 3355443 : (lc));
mc.fc = ((fc == undefined) ? 16777164 : (fc));
mc.fa = ((fa == undefined) ? 100 : (fa));
mc.fmt = new TextFormat("_sans", fsize, 3355443);
for (var i in fmt) {
mc.fmt[i] = fmt[i];
}
TextField.prototype.addHint = (Button.prototype.addHint = (MovieClip.prototype.addHint = function (t) {
var _local2 = Hint.hints.length;
do {
if (!(_local2--)) {
break;
}
} while (Hint.hints[_local2].o != this);
if (t != undefined) {
var _local3 = Hint.hints[_local2];
if (!_local3) {
_local3 = (Hint.hints[Hint.hints.length] = {o:this, txt:t});
}
} else if (Hint.hints[_local2]) {
Hint.hints.splice(_local2, 1);
}
Hint.mc.onMouseMove();
}));
var isParent = function (a, b) {
while (a = a._parent , a != _root) {
if (a == b) {
return(true);
}
}
return(false);
};
var getParentDepth = function (a, p) {
while (a._parent != p) {
a = a._parent;
}
return(a.getDepth());
};
var getGeneric = function (a, b) {
while ((!isParent(a, b)) && (b != _root)) {
b = b._parent;
}
return(b);
};
var order = function (a, b) {
if (isParent(a.o, b.o)) {
return(-1);
}
if (isParent(b.o, a.o)) {
return(1);
}
var _local3 = getGeneric(a.o, b.o);
return(getParentDepth(a.o, _local3) < getParentDepth(b.o, _local3));
};
mc.onMouseMove = function () {
this._visible = false;
if (!Hint.active) {
return(undefined);
}
if (!_root.hitTest(_xmouse, _ymouse, true)) {
return(undefined);
}
var dbl = [];
for (var i in Hint.hints) {
var o = Hint.hints[i].o;
if (o._x == undefined) {
Hint.hints.splice(Number(i), 1);
continue;
}
if (o._visible && (_root.hitTest.call(o, _xmouse, _ymouse, true))) {
dbl.push(Hint.hints[i]);
}
}
switch (dbl.length) {
case 0 :
return(undefined);
case 1 :
var up = dbl[0];
break;
default :
var up = dbl.sort(order)[0];
}
with (this) {
if (hint != up) {
bx = (by = null);
}
hint = up;
(_visible = true);
(_x = _root._xmouse);
(_y = _root._ymouse);
var x = ((_x + _width) < Stage.width);
var y = ((_y - _height) < 0);
if (bx != x) {
bx = x;
if (by == y) {
drawHint();
}
}
if (by != y) {
(by = y);
drawHint();
}
}
updateAfterEvent();
};
mc.drawHint = function () {
var dr = 8;
with (this) {
tf.text = hint.txt;
tf.setTextFormat(fmt);
var w = tf._width;
var h = tf._height;
var sx = ((tf._x = (bx ? (dr) : ((-w) - dr))));
var sy = ((tf._y = (by ? (dr) : ((-h) - dr))));
clear();
var i = 5;
var n = 8;
while (i--) {
beginFill(0, 3);
var ux = ((sx + n) - i);
var lx = ((sx + w) + i);
var uy = ((sy + n) - i);
var ly = ((sy + h) + i);
var r = (n - i);
var f = (0.707106781186548 /* Math.SQRT1_2 */ * r);
var a = (0.588186525863094 * r);
var b = (0.00579432557070009 * r);
var cx = (lx - r);
var cy = (uy + r);
moveTo(ux + r, uy);
lineTo(cx, uy);
curveTo(lx - a, uy + b, cx + f, cy - f);
curveTo(lx - b, uy + a, lx, uy + r);
(cy = ly - r);
lineTo(lx, cy);
curveTo(lx - b, ly - a, cx + f, cy + f);
curveTo(lx - a, ly - b, lx - r, ly);
(cx = ux + r);
lineTo(cx, ly);
curveTo(ux + a, ly - b, cx - f, cy + f);
curveTo(ux - b, ly - a, ux, ly - r);
(cy = uy + r);
lineTo(ux, cy);
curveTo(ux + b, uy + a, cx - f, cy - f);
curveTo(ux + a, uy + b, ux + r, uy);
endFill();
}
lineStyle(0, lc, 50);
beginFill(fc, fa);
moveTo(sx, sy);
lineTo(sx + w, sy);
lineTo(sx + w, sy + h);
lineTo(sx, sy + h);
lineTo(sx, sy);
endFill();
}
updateAfterEvent();
};
}
static var active = true;
}
Symbol 2454 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 2455 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 2456 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 2457 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 2458 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 2459 MovieClip [__Packages.CXYSpace] Frame 0
class CXYSpace
{
var _ts, _tile_size, _game_width, _game_height, _rw, _rh;
function CXYSpace () {
_ts = 60;
_tile_size = 60;
_game_width = 700;
_game_height = 400;
_rw = 700;
_rh = 400;
}
function get_x_scr(x) {
return((x * _ts) + (_ts / 2));
}
function get_y_scr(y) {
return(_rh - ((y * _ts) + (_ts / 2)));
}
}
Symbol 2460 MovieClip [__Packages.CMap] Frame 0
class CMap extends CXYSpace
{
var LEVELS_ID, OBJECT_ID, _teleports, _objs_xml, maxtiles_x, maxtiles_y, _lvls, _map_x, get_x_scr, _map_y, get_y_scr, _ts, _rh, _current_map, _map_xml, _l01, redraw_tiles, _obj_xml, _face_mc, _gfx_scr, _started_time, _score, _objs, _o_mc, _o2_mc, _levels_xml, _tile_set, _bg_frame_id, _exit_frame_id, _lvls_gfxbg, _cur_minimap, _boss_here, _map_bak_xml, _lvls_type, _lvls_rot, _lvls_m;
function CMap () {
super();
LEVELS_ID = 0;
OBJECT_ID = 1;
_teleports = [];
}
function remove_obj(item) {
}
function __CMapEditor_ini(mc) {
}
function __CMap_get_obj(id) {
var _local3 = _objs_xml.childNodes;
for (var _local5 in _local3) {
var _local2 = _local3[_local5];
if (id == _local2.attributes.id) {
return(_local2);
}
}
trace("err#__CMap_get_obj:" + id);
return(-1);
}
function __CMap_get_start_xy() {
var _local3 = 0;
while (_local3 < maxtiles_x) {
var _local2 = 0;
while (_local2 < maxtiles_y) {
if (_lvls[_local3][_local2] == "q") {
return([_local3, _local2]);
}
_local2++;
}
_local3++;
}
trace("__lvls:" + _lvls.join("|"));
return(-1);
}
function __CMap_get_xy(xy) {
var _local3 = get_x_scr(xy[0]) - _map_x;
var _local2 = get_y_scr(xy[1] + 1) + _map_y;
return([_local3, _local2]);
}
function __CMap_get_gxy(xy) {
var _local3 = Math.round(((xy[0] + _map_x) - (_ts / 4)) / _ts);
var _local2 = Math.round(((_rh - xy[1]) + _map_y) / _ts);
return([_local3, _local2 - 1]);
}
function __CMap_get(xy) {
return(_lvls[xy[0]][xy[1]]);
}
function __CMap_get_map_xml() {
var _local9 = new String("");
_local9 = "<levels>\r";
var _local4 = [];
var _local3 = 0;
while (_local3 < _lvls.length) {
_local4[_local3] = [];
var _local6 = 0;
while (_local6 < _lvls[_local3].length) {
var _local5 = _lvls[_local3][_local6];
if ((_local5 == "A") or (_local5 == "a")) {
_local5 = 1;
}
if (_local5 == undefined) {
_local5 = 1;
}
_local4[_local3][_local6] = _local5;
_local6++;
}
_local3++;
}
var _local11 = _objs_xml.childNodes;
for (var _local13 in _local11) {
var _local2 = _local11[_local13];
if ((_local2.attributes.id == "temp") || (_local2.nodeName == "aim")) {
_local2.removeNode();
continue;
}
if (_local2.attributes.id_bak != undefined) {
_local2.attributes.id = _local2.attributes.id_bak;
}
var _local10 = _local2.attributes.id;
var _local7 = _local10.toString().split(",");
_local4[_local7[0]][_local7[1]] = "a";
_local2.attributes.x = _local7[0];
_local2.attributes.y = _local7[1];
if (_local2.nodeName == "ppl") {
_local2.attributes.st = 1;
}
if (_local2.attributes.hpmax != undefined) {
_local2.attributes.hp = _local2.attributes.hpmax;
}
if (_local2.attributes.st != undefined) {
_local2.attributes.st = 1;
}
if (_local2.attributes.kam != undefined) {
delete _local2.attributes.kam;
}
delete _local2.attributes.sx;
delete _local2.attributes.sy;
delete _local2.attributes.item_mc;
delete _local2.attributes._cfame;
delete _local2.attributes.aim_xml;
delete _local2.attributes.as;
}
var _local6 = 0;
while (_local6 < maxtiles_y) {
var _local8 = "";
_local9 = _local9 + "<level params=\"";
_local3 = 0;
while (_local3 < maxtiles_x) {
var _local5 = _local4[_local3][_local6];
_local8 = _local8 + _local5;
_local3++;
}
_local9 = _local9 + _local8;
_local9 = _local9 + "\"/>\r";
_local6++;
}
_local9 = _local9 + "</levels>\r";
_local9 = _local9 + (_objs_xml.toString() + "\r");
_local9 = ("<map>\r" + _local9) + "</map>";
var _local12 = new XML(_local9);
for (var _local13 in _map_xml.firstChild.childNodes[_current_map].attributes) {
_local12.firstChild.attributes[_local13] = _map_xml.firstChild.childNodes[_current_map].attributes[_local13];
}
if (_local12.firstChild.attributes.exit_gfx == undefined) {
_local12.firstChild.attributes.exit_gfx = random(4) + 1;
}
var _local14 = new Date();
_local12.firstChild.attributes.datestamp = _local14.valueOf();
return(_local12);
}
function __CMap__set(xy, val) {
if (_lvls[xy[0]][xy[1]] == undefined) {
return(false);
}
_lvls[xy[0]][xy[1]] = val;
if ((val == 0) or (val == 1)) {
_l01[xy[0]][xy[1]] = val;
}
}
function __CMap_set(xy, val) {
var _local3 = _lvls[xy[0]][xy[1]];
__CMap__set(xy, val);
if (_local3 != val) {
__CMap_set_tiles_angle(xy);
redraw_tiles = true;
}
}
function __CMap_remove_start() {
var _local3 = 0;
while (_local3 < maxtiles_x) {
var _local2 = 0;
while (_local2 < maxtiles_y) {
if (_lvls[_local3][_local2] == "q") {
_lvls[_local3][_local2] = 1;
redraw_tiles = true;
}
_local2++;
}
_local3++;
}
}
function __CMap_remove_exit() {
var _local3 = 0;
while (_local3 < maxtiles_x) {
var _local2 = 0;
while (_local2 < maxtiles_y) {
if (_lvls[_local3][_local2] == "z") {
_lvls[_local3][_local2] = 1;
redraw_tiles = true;
}
_local2++;
}
_local3++;
}
}
function __CMap_add_obj(xy, item_xml) {
var _local7 = item_xml.attributes.type / 1;
var _local3 = __CMap_get(xy);
trace("_lvl_val:" + _local3);
if ((_local3 == "a") || (_local3 == "A")) {
trace("err#__CMap_add_obj:false, _lvl_val:" + _local3);
return(false);
}
switch (_local7) {
case 25 :
case 26 :
__CMap__set(xy, "a");
var _local4 = item_xml.cloneNode();
_objs_xml.appendChild(_local4);
var _local6 = xy.join(",");
_local4.attributes.id = _local6;
_local4.attributes.item_mc = "";
__CMap_after_fill_teleports();
break;
case 4 :
__CMap_remove_start();
__CMap__set(xy, "q");
break;
case 5 :
__CMap_remove_exit();
__CMap__set(xy, "z");
break;
default :
__CMap__set(xy, "a");
_local4 = item_xml.cloneNode();
_objs_xml.appendChild(_local4);
_local6 = xy.join(",");
_local4.attributes.id = _local6;
_local4.attributes.item_mc = "";
}
redraw_tiles = true;
}
function __CMap_refresh_all_obj() {
for (var _local7 in _objs_xml.childNodes) {
var _local4 = _objs_xml.childNodes[_local7];
var _local3 = -1;
var _local2 = _obj_xml.firstChild.childNodes;
for (var _local6 in _local2) {
if ((_local4.attributes.type == _local2[_local6].attributes.type) && (_local4.attributes.name == _local2[_local6].attributes.name)) {
_local3 = _local2[_local6];
break;
}
}
if (_local3 == -1) {
trace("err#didn`t found a _obj_xml");
break;
}
for (var _local5 in _local3.attributes) {
_local4.attributes[_local5] = _local3.attributes[_local5];
}
}
redraw_tiles = true;
}
function ini_face_mc(face_mc) {
_face_mc = face_mc;
_gfx_scr = _root.main.createEmptyMovieClip("gfx_scr", _root.gfx_depth);
refresh_info_tip();
}
function __CMap_ini_same_map() {
var _local2 = _current_map;
__CMap_ini_map(_local2);
}
function __CMap_ini_next_map() {
var _local2 = _current_map + 1;
__CMap_ini_map(_local2);
}
function __CMap_get_if_this_last_level() {
var _local2 = _map_xml.firstChild.childNodes.length;
if (_current_map == (_local2 - 1)) {
return(true);
}
return(false);
}
function __CMap_after_fill_teleports(Void) {
trace("__teleports:" + _teleports.join("|"));
trace("Shoud_be_defined_in_CMapEditor");
}
function __CMap_fill_teleports(Void) {
_teleports = [];
var _local3 = _objs_xml.childNodes;
for (var _local4 in _local3) {
var _local2 = _local3[_local4];
if (((_local2.attributes.type / 1) == 25) || ((_local2.attributes.type / 1) == 26)) {
_teleports.push(_local2);
}
}
__CMap_after_fill_teleports();
}
function __CMap_ini_map(cmap) {
var _local11 = getTimer();
_started_time = getTimer();
var _local14 = _map_xml.firstChild.childNodes.length;
if (cmap >= _local14) {
_score = 0;
cmap = 0;
_current_map = cmap;
_root.show_main_menu();
if (_global.mochiscores_on) {
_root.show_mochiscores();
}
return(false);
}
_current_map = cmap;
if (_root.musik_started) {
} else {
_root.musik_started = true;
if (_root.musik_enabled) {
_root.musik.start(0, 500);
}
}
var _local15 = _root.createEmptyMovieClip("main", _root.main_depth);
var _local9 = _root.main.attachMovie("face_scr", "face_scr", _root.face_depth);
ini_face_mc(_local9);
_objs = [];
_o_mc = _root.main.createEmptyMovieClip("ob_mc", _root.obj_depth);
_o2_mc = _root.main.createEmptyMovieClip("ob2_mc", _root.obj_beyon_depth);
var _local7 = _map_xml.firstChild.childNodes[_current_map];
_levels_xml = _local7.childNodes[LEVELS_ID];
_objs_xml = _local7.childNodes[OBJECT_ID];
__CMap_fill_teleports();
_tile_set = 1;
_bg_frame_id = _local7.attributes.bg / 1;
_exit_frame_id = _local7.attributes.exit_gfx / 1;
if (isNaN(_exit_frame_id)) {
_exit_frame_id = random(4) + 1;
}
maxtiles_x = _map_xml.firstChild.childNodes[_current_map].childNodes[LEVELS_ID].firstChild.attributes.params.length;
maxtiles_y = _map_xml.firstChild.childNodes[_current_map].childNodes[LEVELS_ID].childNodes.length;
_lvls = [];
_l01 = [];
_lvls_gfxbg = [];
_cur_minimap = __CMap_draw_minimap(_map_xml.firstChild.childNodes[_current_map]);
var _local6 = 0;
while (_local6 < maxtiles_x) {
_lvls_gfxbg[_local6] = [];
_lvls[_local6] = [];
_l01[_local6] = [];
var _local5 = 0;
while (_local5 < maxtiles_y) {
_lvls_gfxbg[_local6][_local5] = 0;
var _local4 = _levels_xml.childNodes[_local5].attributes.params.charAt(_local6);
if ((_local4 / 1) == _local4) {
_local4 = _local4 / 1;
}
_lvls[_local6][_local5] = _local4;
if ((_local4 == 0) || (_local4 == "t")) {
_l01[_local6][_local5] = 0;
} else {
_l01[_local6][_local5] = 1;
}
_local5++;
}
_local6++;
}
_boss_here = 0;
add_turtle();
set_tiles_angle();
generate_gfxbg();
show_bg();
if (_global.show_lvl_editor) {
var _local12 = _root.createEmptyMovieClip("lvl_ed", _root.lvl_editor_depth);
__CMapEditor_ini(_local12);
_face_mc.mapserver.save_but.onRelease = function () {
_global.game.__CMapServer_save_cur_map();
};
_face_mc.mapserver.list_but.onRelease = function () {
_global.game.__CMapServer_get_list();
};
_face_mc.mapserver.auth_but.onRelease = function () {
var _local4 = _root.main.face_scr.mapserver.login_dtxt.text;
var _local3 = _root.main.face_scr.mapserver.pass_dtxt.text;
_global.game.__CMapServer_set_login_pass(_local4, _local3);
_global.game.__CMapServer_connect();
};
} else {
_face_mc.fps_dtxt.text = "";
}
redraw_tiles = true;
trace(("__CMap_ini_map:" + (getTimer() - _local11)) + "mc");
switch (cmap) {
case 0 :
_root.show_tip(1);
break;
case 1 :
_root.show_tip(3);
break;
case 2 :
_root.show_tip(4);
break;
case 5 :
_root.show_history(3, function () {
_root.tip_scr.unloadMovie();
});
break;
case 7 :
_root.show_history(4, function () {
_root.tip_scr.unloadMovie();
});
break;
case 8 :
_root.show_history(5, function () {
_root.tip_scr.unloadMovie();
});
}
}
function __CMap_get_minimap_legend(mc) {
var _local5 = {};
_local5.obj_ppl = 16711680 /* 0xFF0000 */;
_local5.obj_obj = 11184640 /* 0xAAAA00 */;
_local5.ground = 0;
_local5.air = 16777215 /* 0xFFFFFF */;
_local5.stair = 255;
_local5.start_and_exit = 65280;
var _local12 = 0;
var _local3 = 20;
var _local7 = 0;
for (var _local11 in _local5) {
var _local4 = mc.createEmptyMovieClip("item" + mc.getNextHighestDepth(), mc.getNextHighestDepth());
_local4._x = (_local3 * 2) * _local7;
_root.drawPoly(_local4, [0, 0], [[0, 0], [_local3, 0], [_local3, _local3], [0, _local3], [0, 0]], {_ticknes:1, _alpha:0, _color:0}, {_color:_local5[_local11], _alpha:100});
_local7++;
_local4.addHint(_local11);
}
mc.filters = [_global.black_filter];
}
function __CMap_draw_minimap(map_xml) {
var _local10 = map_xml.childNodes[LEVELS_ID].firstChild.attributes.params.length;
var _local8 = map_xml.childNodes[LEVELS_ID].childNodes.length;
var _local9 = new flash.display.BitmapData(_local10, _local8, false, 0);
var _local5 = 0;
while (_local5 < _local10) {
var _local4 = 0;
while (_local4 < _local8) {
var _local3 = _levels_xml.childNodes[_local4].attributes.params.charAt(_local5);
if ((_local3 / 1) == _local3) {
_local3 = _local3 / 1;
}
var _local2 = 16777215 /* 0xFFFFFF */;
switch (_local3) {
case 0 :
_local2 = 0;
break;
case "t" :
case "r" :
_local2 = 255;
break;
case "q" :
case "z" :
_local2 = 65280;
break;
case "a" :
var _local6 = (_local5 + ",") + _local4;
var _local7 = __CMap_get_obj(_local6);
switch (_local7.nodeName) {
case "obj" :
_local2 = 11184640 /* 0xAAAA00 */;
break;
case "ppl" :
_local2 = 16711680 /* 0xFF0000 */;
}
}
_local9.setPixel(_local5, (_local8 - 1) - _local4, _local2);
_local4++;
}
_local5++;
}
return(_local9);
}
function __CMap_refresh_map() {
delete _map_xml;
_map_xml = new XML(_map_bak_xml.toString());
}
function __CMap_load_map(map_xml) {
_map_xml = map_xml;
_map_bak_xml = new XML(map_xml.toString());
}
function set_tiles_angle() {
_lvls_type = [];
_lvls_rot = [];
_lvls_m = [];
var _local3 = 0;
while (_local3 < maxtiles_x) {
_lvls_type[_local3] = [];
_lvls_rot[_local3] = [];
_lvls_m[_local3] = [];
var _local2 = 0;
while (_local2 < maxtiles_y) {
var _local4 = get_tile_angle(_local3, _local2);
_lvls_type[_local3][_local2] = _local4[0];
_lvls_m[_local3][_local2] = _local4[2];
_local2++;
}
_local3++;
}
}
function __CMap_set_tiles_angle(xy) {
var _local6 = -1;
while (_local6 < 2) {
var _local5 = -1;
while (_local5 < 2) {
var _local3 = xy[0] + _local6;
var _local2 = xy[1] + _local5;
var _local4 = get_tile_angle(_local3, _local2);
_lvls_type[_local3][_local2] = _local4[0];
_lvls_rot[_local3][_local2] = (_local4[1] / 1) - 1;
_lvls_m[_local3][_local2] = _local4[2];
_local5++;
}
_local6++;
}
}
function generate_gfxbg() {
var _local4 = 0;
while (_local4 < maxtiles_x) {
var _local3 = 0;
while (_local3 < maxtiles_y) {
var _local2 = 0;
if (((_lvls[_local4][_local3] == 1) && (_lvls[_local4][_local3 - 1] == 0)) && (Math.random() > 0.7)) {
_local2 = 1;
if (Math.random() > 0.9) {
_local2 = 2;
} else if (Math.random() > 0.7) {
_local2 = 3;
} else if (Math.random() > 0.5) {
_local2 = 4;
} else if (Math.random() > 0.7) {
_local2 = 5;
} else if (Math.random() > 0.7) {
_local2 = 6;
} else if (Math.random() > 0.7) {
} else if (Math.random() > 0.7) {
_local2 = 8;
} else if (Math.random() > 0.8) {
_local2 = 9;
} else if (Math.random() > 0.5) {
_local2 = 10;
}
_lvls_gfxbg[_local4][_local3] = _local2;
} else if (((_lvls[_local4][_local3] == 0) && (_lvls[_local4][_local3 + 1] == 1)) && (Math.random() > 0.8)) {
_local2 = 20;
if (Math.random() > 0.5) {
_local2 = 21;
}
} else if ((((_lvls[_local4][_local3] == 0) && (_lvls[_local4][_local3 + 1] == 0)) && (_lvls[_local4][_local3 - 1] == 0)) && (Math.random() > 0.8)) {
_local2 = 30;
if (Math.random() > 0.5) {
_local2 = 31;
}
}
_lvls_gfxbg[_local4][_local3] = _local2;
_local3++;
}
_local4++;
}
}
function get_tile_angle(x, y) {
var _local10 = [1, 1];
var _local7 = "";
var _local6 = "";
var _local5 = "";
var _local4 = 1;
while (_local4 > -2) {
var _local3 = -1;
while (_local3 < 2) {
var _local2 = _lvls[x + _local3][y + _local4];
if (_local2 == "t") {
_local2 = 0;
}
if (_local2 == undefined) {
_local2 = 0;
}
if (_local2 != 0) {
_local2 = 1;
}
_local7 = _local7 + _local2;
_local5 = _local5 + _local2;
if ((_local4 == 0) or (_local3 == 0)) {
_local6 = _local6 + _local2;
}
_local3++;
}
_local5 = _local5 + "\r";
_local4--;
}
switch (_local7) {
case "000000000" :
if (Math.random() > 0.3) {
return([1, 1, ""]);
}
if (Math.random() > 0.5) {
return([25, 1, ""]);
}
return([26, 1, ""]);
case "101101101" :
return([2, 1, ""]);
case "000100100" :
case "100100000" :
case "100100100" :
case "100100001" :
return([3, 1, ""]);
case "001001000" :
case "001001001" :
case "001001100" :
case "000001001" :
return([4, 1, ""]);
case "101101111" :
return([5, 1, ""]);
case "111100000" :
case "111100100" :
return([6, 1, ""]);
case "011000000" :
case "110000000" :
case "111000000" :
if (Math.random() > 0.5) {
return([7, 1, ""]);
}
return([28, 1, ""]);
case "011001000" :
case "011001001" :
case "111001001" :
return([8, 1, ""]);
case "111101111" :
return([9, 1, ""]);
case "111101101" :
return([10, 1, ""]);
case "111100110" :
case "111100011" :
case "111100111" :
return([11, 1, ""]);
case "111000111" :
if (Math.random() > 0.5) {
return([12, 1, ""]);
}
return([27, 1, ""]);
case "111001110" :
case "111001011" :
case "111001111" :
return([13, 1, ""]);
case "100100111" :
return([14, 1, ""]);
case "000000111" :
return([15, 1, ""]);
case "001001111" :
return([16, 1, ""]);
case "100000000" :
return([17, 1, ""]);
case "001000000" :
return([18, 1, ""]);
case "000000001" :
return([19, 1, ""]);
case "000000100" :
return([20, 1, ""]);
case "000100000" :
return([21, 1, ""]);
case "000001000" :
return([22, 1, ""]);
case "100000100" :
return([23, 1, ""]);
case "001000001" :
return([24, 1, ""]);
case "111000100" :
return([29, 1, ""]);
case "111000001" :
return([30, 1, ""]);
case "100000111" :
return([31, 1, ""]);
case "001000111" :
return([32, 1, ""]);
}
switch (_local6) {
case "01010" :
return([2, 1, ""]);
case "01011" :
return([5, 1, ""]);
case "11000" :
return([6, 1, ""]);
case "10000" :
if (Math.random() > 0.5) {
return([7, 1, ""]);
}
return([28, 1, ""]);
case "10010" :
return([8, 1, ""]);
case "11011" :
return([9, 1, ""]);
case "11010" :
return([10, 1, ""]);
case "11001" :
return([11, 1, ""]);
case "10001" :
if (Math.random() > 0.5) {
return([12, 1, ""]);
}
return([27, 1, ""]);
case "10011" :
return([13, 1, ""]);
case "01001" :
return([14, 1, ""]);
case "00001" :
return([15, 1, ""]);
case "00011" :
return([16, 1, ""]);
}
return([1, 1, _local5]);
}
function refresh_info_tip() {
}
function add_turtle() {
}
function show_bg() {
}
}
Symbol 2461 MovieClip [__Packages.CMapServer] Frame 0
class CMapServer extends CMap
{
var _ip, _port, _zone, _extensionName, _login, _pass, __CMap_get_map_xml, _log_txt;
function CMapServer () {
super();
_ip = "127.0.0.1";
_port = "9339";
_zone = "thug_map_list";
_extensionName = "Tool";
}
function __CMapServer_set_login_pass(login, pass) {
_login = login;
_pass = pass;
}
function __CMapServer_connect() {
}
function __CMapServer_disconnect() {
}
function __CMapServer_save_cur_map() {
var _local3 = {};
_local3._data = escape(__CMap_get_map_xml());
_global.smartFox.sendXtMessage(_extensionName, "save_map", _local3, "xml");
}
function __CMapServer_load_map() {
}
function __CMapServer_get_list() {
_global.smartFox.sendXtMessage(_extensionName, "get_list", {}, "xml");
}
function add_to_log(txt) {
_log_txt = (txt + "\r") + _log_txt;
}
}
Symbol 2462 MovieClip [__Packages.CMapEditor] Frame 0
class CMapEditor extends CMapServer
{
var _brush, CONST_BRUSH_TERRAIN, CONST_BRUSH_OBJ, CONST_BRUSH_ERASER, CONST_BRUSH_TELEPORT_EXIT, _tile_set, _current_map, _map_xml, redraw_tiles, _bg_frame_id, maxtiles_y, maxtiles_x, _lvls, set_tiles_angle, _l01, _map_x_max, _tile_size, _game_width, get_x_scr, __CMap_get_map_xml, _char_x, _char_y, _map_x, _map_y, __CMap_ini_same_map, __CMap_refresh_all_obj, _ip, _port, _brush_mc, _ts, __CMap_get, __CMap_get_obj, __CMap__set, remove_obj, __CMap_set, __CMap_add_obj, _teleports_mc, _tar_mc, _teleports_depth, _teleports, _cur_minimap, _obj_xml;
function CMapEditor () {
super();
_brush = {};
_brush.get_otype = function () {
return(this._type_xml.attributes.type);
};
CONST_BRUSH_TERRAIN = "terrain";
CONST_BRUSH_OBJ = "object";
CONST_BRUSH_ERASER = "eraser";
CONST_BRUSH_TELEPORT_EXIT = "exit_teleport";
_brush._type = CONST_BRUSH_TERRAIN;
}
function __CMapEditor_set_nex_tileset() {
_tile_set++;
if (_tile_set > 2) {
_tile_set = 1;
}
_map_xml.firstChild.childNodes[_current_map].attributes.tileset = _tile_set;
redraw_tiles = true;
}
function __CMapEditor_set_prev_bg() {
_bg_frame_id--;
show_bg();
_map_xml.firstChild.childNodes[_current_map].attributes.bg = _bg_frame_id;
}
function __CMapEditor_set_next_bg() {
_bg_frame_id++;
show_bg();
_map_xml.firstChild.childNodes[_current_map].attributes.bg = _bg_frame_id;
}
function __CMapEditor_select_brush(item_xml) {
var _local15 = item_xml.attributes.type / 1;
switch (_local15) {
case -27 :
maxtiles_y--;
var _local5 = 0;
while (_local5 < maxtiles_x) {
_lvls[_local5].shift();
_local5++;
}
set_tiles_angle();
redraw_tiles = true;
case -26 :
maxtiles_y--;
_local5 = 0;
while (_local5 < maxtiles_x) {
_lvls[_local5][maxtiles_y] = undefined;
_l01[_local5][maxtiles_y] = undefined;
_local5++;
}
set_tiles_angle();
redraw_tiles = true;
break;
case -25 :
maxtiles_x--;
_map_x_max = (get_x_scr(maxtiles_x) - _game_width) - _tile_size;
var _local4 = 0;
while (_local4 < maxtiles_y) {
_lvls[maxtiles_x][_local4] = undefined;
_l01[maxtiles_x][_local4] = undefined;
_local4++;
}
set_tiles_angle();
redraw_tiles = true;
break;
case -23 :
_local5 = 0;
while (_local5 < maxtiles_x) {
_lvls[_local5].unshift(0);
_local5++;
}
maxtiles_y++;
set_tiles_angle();
redraw_tiles = true;
break;
case -22 :
_local5 = 0;
while (_local5 < maxtiles_x) {
_lvls[_local5][maxtiles_y] = 0;
_l01[_local5][maxtiles_y] = 0;
_local5++;
}
maxtiles_y++;
set_tiles_angle();
redraw_tiles = true;
break;
case -21 :
_lvls[maxtiles_x] = [];
_l01[maxtiles_x] = [];
_local4 = 0;
while (_local4 < maxtiles_y) {
_lvls[maxtiles_x][_local4] = 0;
_l01[maxtiles_x][_local4] = 0;
_local4++;
}
maxtiles_x++;
_map_x_max = (get_x_scr(maxtiles_x) - _game_width) - _tile_size;
set_tiles_angle();
redraw_tiles = true;
break;
case -7 :
var _local12 = __CMap_get_map_xml();
var _local10 = _map_xml.firstChild.childNodes[_current_map];
_map_xml.firstChild.insertBefore(_local12.firstChild, _local10);
_local10.removeNode();
var _local11 = _char_x;
var _local16 = _char_y;
var _local14 = _map_x;
var _local13 = _map_y;
__CMap_ini_same_map();
_char_x = _local11;
_char_y = _local16;
_map_x = _local14;
_map_y = _local13;
_root.main.char.onEnterFrame = function () {
_global.game.editor_turn();
};
break;
case -6 :
_root.main.char.onEnterFrame = function () {
if (_global._game_paused <= 0) {
_global.game.turn();
}
};
break;
case -5 :
__CMap_refresh_all_obj();
break;
case -9 :
__CMapEditor_set_prev_bg();
break;
case -3 :
__CMapEditor_set_next_bg();
return(false);
case -2 :
_brush._type = CONST_BRUSH_ERASER;
break;
case -1 :
var _local8 = __CMap_get_map_xml();
_global.System.setClipboard(_local8);
trace("_mxml:" + _local8);
var _local9 = _root.get_server_status();
if (_local9 == 1) {
_global.loader.add_xml("auth", true);
_global.smartFox.connect(_ip, _port);
_root.set_server_status(3);
}
if (_local9 == 2) {
_root.socket_save_map(escape(_local8));
}
if (_local9 == 4) {
_root.socket_login();
}
return(false);
case -4 :
case -8 :
case 0 :
_brush._type = CONST_BRUSH_TERRAIN;
break;
default :
_brush._type = CONST_BRUSH_OBJ;
if (item_xml.attributes.id == undefined) {
break;
}
if (!((item_xml.attributes.type == 25) || (item_xml.attributes.type == 26))) {
break;
}
_brush._type = CONST_BRUSH_TELEPORT_EXIT;
}
_brush._type_xml = item_xml;
var _local6 = _brush_mc.createEmptyMovieClip("tile", 0);
_local6._x = _local6._x + (_ts / 2);
_local6._y = _local6._y + (_ts / 2);
_local6._alpha = 70;
var _local17 = _local6.attachMovie("tile_obj" + _brush.get_otype(), "body", _local6.getNextHighestDepth());
}
function __CMapEditor_paint(xy, val) {
var _local8 = _brush._type;
switch (_local8) {
case CONST_BRUSH_TELEPORT_EXIT :
_brush._type_xml.attributes.exit_xy = xy.join(",");
break;
case CONST_BRUSH_ERASER :
var _local3 = __CMap_get(xy);
if ((_local3 == "a") || (_local3 == "A")) {
var _local7 = xy.join(",");
var _local4 = __CMap_get_obj(_local7);
__CMap__set([xy[0], xy[1]], 1);
if (_local3 == "A") {
remove_obj(_local4);
}
_local4.removeNode();
}
break;
case CONST_BRUSH_TERRAIN :
var _local5 = _brush.get_otype();
if (_local5 == -8) {
val = "t";
}
if (_local5 == -4) {
val = "r";
}
__CMap_set(xy, val);
break;
case CONST_BRUSH_OBJ :
__CMap_add_obj(xy, _brush._type_xml);
break;
default :
trace("err#_brush._type - undefined");
}
}
function __CMap_after_fill_teleports() {
_teleports_mc = _tar_mc.createEmptyMovieClip("teleports_mc", _teleports_depth);
var _local9 = _teleports;
var _local7 = 470;
var _local6 = 0;
var _local5 = 30;
for (var _local8 in _teleports) {
var item_xml = _teleports[_local8];
var _local4 = _teleports_mc.createEmptyMovieClip("tel" + _teleports_mc.getNextHighestDepth(), _teleports_mc.getNextHighestDepth());
_local4._x = _local7;
_local4._y = _local6;
_local4.item_xml = item_xml;
_local4.onRelease = function () {
_global.game.__CMapEditor_select_brush(this.item_xml);
};
_local4.addHint();
_local4.addHint(((("Exit for Teleport(" + item_xml.attributes.x) + ",") + item_xml.attributes.y) + ")");
_root.drawPolygon(_local4, 0, 0, _local5, _local5, 0, 50, 16711680, 50, 1);
_local6 = _local6 + _local5;
}
}
function __CMapEditor_ini(mc) {
_tar_mc = mc;
var minimcp_mc = _tar_mc.createEmptyMovieClip("minimap", _tar_mc.getNextHighestDepth());
var minimap_con_mc = minimcp_mc.createEmptyMovieClip("container", minimcp_mc.getNextHighestDepth());
minimcp_mc.setZoom = function (zoom) {
trace("___zoom:" + zoom);
minimap_con_mc._xscale = 100 * zoom;
minimap_con_mc._yscale = 100 * zoom;
this._zoom = zoom;
};
minimap_con_mc.attachBitmap(_cur_minimap, minimap_con_mc.getNextHighestDepth());
minimcp_mc._x = 700;
minimcp_mc.setZoom(4);
minimcp_mc.attachBut("but_minus", "zoon_minus", {_x:0, _y:-22}, function () {
this._parent.setZoom(this._parent._zoom - 1);
});
minimcp_mc.attachBut("but_plus", "zoon_plus", {_x:22, _y:-22}, function () {
this._parent.setZoom(this._parent._zoom + 1);
});
minimcp_mc.attachBut("but_sc", "zoon_sc", {_x:44, _y:-22, _drag:false}, function () {
if (this._drag) {
this._drag = false;
stopDrag();
} else {
this._drag = true;
this._parent.startDrag();
}
_root.SO.data.minimcp_mc_x = this._parent._x;
_root.SO.data.minimcp_mc_y = this._parent._y;
_root.SO.data.flush();
});
minimcp_mc._x = _root.SO.data.minimcp_mc_x;
minimcp_mc._y = _root.SO.data.minimcp_mc_y;
var palete_mc = _tar_mc.createEmptyMovieClip("pallete", _tar_mc.getNextHighestDepth());
palete_mc.attachBut("but_sc", "zoon_sc", {_x:0, _y:-22, _drag:false}, function () {
if (this._drag) {
this._drag = false;
stopDrag();
} else {
this._drag = true;
this._parent.startDrag();
}
_root.SO.data.palete_mc_x = this._parent._x;
_root.SO.data.palete_mc_y = this._parent._y;
_root.SO.data.flush();
});
palete_mc._x = _root.SO.data.palete_mc_x;
palete_mc._y = _root.SO.data.palete_mc_y;
_teleports_depth = _tar_mc.getNextHighestDepth();
_teleports_mc = _tar_mc.createEmptyMovieClip("teleports_mc", _teleports_depth);
var _local10 = _obj_xml.firstChild.childNodes;
var _local7 = 0;
var _local8 = 0;
var _local11 = "";
var _local6 = 0;
for (var _local15 in _local10) {
var _local14 = 3;
var _local5 = 30;
var item_xml = _local10[_local15];
var _local9 = item_xml.attributes.type;
var _local4 = palete_mc.createEmptyMovieClip("pal" + palete_mc.getNextHighestDepth(), palete_mc.getNextHighestDepth());
var _local12 = _local4.attachMovie("ico_type" + _local9, "tiles" + _local15, _local4.getNextHighestDepth(), {_x:_local5 / 2, _y:_local5 / 2});
if (_local11 == item_xml.nodeName) {
_local6++;
if (_local6 > 8) {
_local7 = 0;
_local6 = 0;
} else {
_local7 = _local7 + _local5;
_local8 = _local8 - _local5;
}
} else {
_local7 = 0;
_local6 = 0;
}
_local4._x = _local7;
_local4._y = _local8;
_local4.item_xml = item_xml;
_local4.onRelease = function () {
_global.game.__CMapEditor_select_brush(this.item_xml);
};
_local4.addHint();
_local4.addHint(item_xml.attributes.name);
_root.drawPolygon(_local4, 0, 0, _local5, _local5, 0, 50, 16711680, 50, 1);
_local8 = _local8 + _local5;
_local11 = item_xml.nodeName;
}
var _local13 = _tar_mc.createEmptyMovieClip("brush", _tar_mc.getNextHighestDepth());
_brush_mc = _local13;
_root.drawPolygon(_local13, 0, 0, _ts, _ts, 0, 0, 0, 50, 3);
_local13._tar_mc = _tar_mc;
_local13.palete_mc = palete_mc;
_local13._teleports_mc = _teleports_mc;
_local13._ts = _ts;
_local13.minimcp_mc = minimcp_mc;
_local13.onMouseMove = function () {
var _local5 = _global.game.__CMap_get_gxy([this._tar_mc._xmouse, this._tar_mc._ymouse]);
var _local6 = _global.game.__CMap_get_xy(_local5);
var _local4 = _local6[0] - (this._ts / 2);
var _local3 = _local6[1] + (this._ts / 2);
if ((((_local4 < 0) || (_local3 < 0)) || (_local3 > 350)) || (_local4 > 650)) {
return(false);
}
this._x = _local4;
this._y = _local3;
if (this.drag) {
_global.game.__CMapEditor_paint(_local5, this.drag_val);
}
};
_local13.onMouseUp = function () {
this.drag = false;
if (_global.game.get_pause_game() == true) {
return(false);
}
if (this.minimcp_mc.hitTest(_root._xmouse, _root._ymouse, true) == true) {
return(false);
}
if (this.palete_mc.hitTest(_root._xmouse, _root._ymouse, true) == true) {
return(false);
}
if (this._teleports_mc.hitTest(_root._xmouse, _root._ymouse, true) == true) {
return(false);
}
var _local4 = _global.game.__CMap_get_gxy([this._tar_mc._xmouse, this._tar_mc._ymouse]);
_global.game.__CMapEditor_paint(_local4, this.drag_val);
};
_local13.onMouseDown = function () {
if (_global.game.get_pause_game() == true) {
return(false);
}
if (this.minimcp_mc.hitTest(_root._xmouse, _root._ymouse, true) == true) {
return(false);
}
if (this.palete_mc.hitTest(_root._xmouse, _root._ymouse, true) == true) {
return(false);
}
if (this._teleports_mc.hitTest(_root._xmouse, _root._ymouse, true) == true) {
return(false);
}
this.drag = true;
var _local4 = _global.game.__CMap_get_gxy([this._tar_mc._xmouse, this._tar_mc._ymouse]);
this.drag_val = _global.game.__CMap_get(_local4);
if (this.drag_val == 0) {
this.drag_val = 1;
} else {
this.drag_val = 0;
}
};
__CMap_after_fill_teleports();
}
function show_bg() {
}
}
Symbol 2463 MovieClip [__Packages.CWeapons] Frame 0
class CWeapons extends CMapEditor
{
var _weap_max_types, _weap_enabled, _char_capsule, _bonus_weap_dmg, _weap_dmg, _ammo_max, _ammo, _char_need_reload, _face_mc, _weap_type, _weap_name, _weap_penetration, _weap_penetration_size, _weap_range, _weap_preci, _ammo_id, _weap_state_0, _weap_state_1, _weap_state_2, _weap_state_45, _weap_state_45_run, _weap_state_climb, _weap_state_run, _char_melee_dmg;
function CWeapons () {
super();
_weap_max_types = 10;
_weap_enabled = [];
}
function char_get_dmg() {
return((_weap_dmg * _bonus_weap_dmg) * (1 + (_char_capsule / 20)));
}
function remove_ammo() {
if (_ammo_max == 0) {
return(true);
}
if (_ammo == 0) {
_char_need_reload = true;
return(false);
}
_ammo--;
_face_mc.ammo_mc._width = (48 * _ammo) / _ammo_max;
return(true);
}
function weap_set_enebled(val) {
_weap_enabled[val] = true;
weap_refresh_icos();
}
function weap_refresh_icos() {
var _local3 = 1;
var _local4 = 0;
while (_local4 < _weap_max_types) {
if (_weap_enabled[_local4]) {
trace((_local3 + ":") + _local4);
_face_mc[("weap" + _local3) + "_mc"]._visible = true;
_face_mc[("weap" + _local3) + "_mc"].gotoAndStop(_local4);
_face_mc[("weap" + _local3) + "_mc"].onRelease = function () {
_global.game.weap_set_type(this._currentframe);
};
_local3++;
}
_local4++;
}
_local4 = _local3;
while (_local4 < _weap_max_types) {
_face_mc[("weap" + _local4) + "_mc"]._visible = false;
_local4++;
}
}
function weap_get_name(val) {
var _local1 = "";
switch (val) {
case 1 :
_local1 = "AK-47";
break;
case 2 :
_local1 = "eLR-12";
break;
case 3 :
_local1 = "RPG";
break;
case 4 :
_local1 = "Grenade";
break;
case 5 :
_local1 = "Lighting";
break;
case 6 :
_local1 = "Melee";
break;
case 7 :
_local1 = "Johns_gun";
break;
case 8 :
_local1 = "Searching_fist";
break;
default :
_local1 = "unnamed";
}
return(_local1);
}
function weap_set_prev() {
var _local2 = _weap_type - 1;
while (_local2 > 0) {
if (_weap_enabled[_local2]) {
weap_set_type(_local2);
return(true);
}
_local2--;
}
_local2 = _weap_max_types;
while (_local2 >= _weap_type) {
if (_weap_enabled[_local2]) {
weap_set_type(_local2);
return(true);
}
_local2--;
}
return(false);
}
function weap_set_next() {
var _local2 = _weap_type + 1;
while (_local2 < _weap_max_types) {
if (_weap_enabled[_local2]) {
weap_set_type(_local2);
return(true);
}
_local2++;
}
_local2 = 0;
while (_local2 < (_weap_type + 1)) {
if (_weap_enabled[_local2]) {
weap_set_type(_local2);
return(true);
}
_local2++;
}
return(false);
}
function weap_set_type(val) {
if (_weap_enabled[val] != true) {
trace((("__CChar::_weap_enabled[" + val) + "]:") + _weap_enabled[val]);
return(false);
}
trace("__CChar::weap_set_type:" + val);
var _local4 = [0, 5, 4, 8, 6, 0, 0];
var _local5 = [0, 2, 4, 1, 5, 0, 0];
var _local3 = [0, 0, 0, 0, 0, 0, 10];
_weap_name = weap_get_name(val);
switch (val) {
case 1 :
_weap_dmg = 15;
_weap_penetration = false;
_weap_penetration_size = 1;
_ammo_max = 30;
_weap_range = 20;
_weap_preci = 10;
_ammo_id = 0;
_weap_state_0 = 13;
_weap_state_1 = 11;
_weap_state_2 = 0;
_weap_state_45 = 26;
_weap_state_45_run = 0;
_weap_state_climb = 24;
_weap_state_run = 0;
break;
case 2 :
_weap_dmg = 8;
_weap_penetration = true;
_weap_penetration_size = 2;
_ammo_max = 0;
_weap_range = 10;
_weap_preci = 1;
_ammo_id = 0;
_weap_state_0 = 42;
_weap_state_1 = 41;
_weap_state_2 = 0;
_weap_state_45 = 44;
_weap_state_45_run = 0;
_weap_state_climb = 43;
_weap_state_run = 0;
break;
case 3 :
_weap_dmg = 80;
_weap_penetration = false;
_weap_penetration_size = 3;
_ammo_max = 0;
_weap_range = 5;
_weap_preci = 0.5;
_ammo_id = 1;
_weap_state_0 = 0;
_weap_state_1 = 28;
_weap_state_2 = 0;
_weap_state_45 = 0;
_weap_state_45_run = 0;
_weap_state_climb = 0;
_weap_state_run = 0;
break;
case 4 :
_weap_dmg = 20;
_weap_penetration = false;
_weap_penetration_size = 5;
_ammo_max = 1;
_weap_range = 5;
_weap_preci = 0.5;
_ammo_id = 2;
_weap_state_0 = 0;
_weap_state_1 = 27;
_weap_state_2 = 0;
_weap_state_45 = 0;
_weap_state_45_run = 0;
_weap_state_climb = 0;
_weap_state_run = 0;
break;
case 5 :
_weap_dmg = 30;
_weap_penetration = false;
_weap_penetration_size = 5;
_ammo_max = 0;
_weap_range = 20;
_weap_preci = 10;
_ammo_id = 3;
_weap_state_0 = 0;
_weap_state_1 = 35;
_weap_state_2 = 0;
_weap_state_45 = 0;
_weap_state_45_run = 0;
_weap_state_climb = 0;
_weap_state_run = 0;
break;
case 6 :
_weap_dmg = _char_melee_dmg;
_weap_penetration = false;
_weap_penetration_size = 5;
_ammo_max = 0;
_weap_range = 1;
_weap_preci = 10;
_ammo_id = 4;
_weap_state_0 = 0;
_weap_state_1 = 30;
_weap_state_2 = 34;
_weap_state_45 = 0;
_weap_state_45_run = 0;
_weap_state_climb = 0;
_weap_state_run = 0;
break;
case 7 :
_weap_dmg = 20;
_weap_penetration = false;
_weap_penetration_size = 1;
_ammo_max = 0;
_weap_range = 8;
_weap_preci = 10;
_ammo_id = 0;
_weap_state_0 = 38;
_weap_state_1 = 37;
_weap_state_2 = 0;
_weap_state_45 = 39;
_weap_state_45_run = 0;
_weap_state_climb = 40;
_weap_state_run = 0;
break;
case 8 :
_weap_dmg = 13;
_weap_penetration = false;
_weap_penetration_size = 1;
_ammo_max = 0;
_weap_range = 12;
_weap_preci = 10;
_ammo_id = 5;
_weap_state_0 = 0;
_weap_state_1 = 35;
_weap_state_2 = 0;
_weap_state_45 = 0;
_weap_state_45_run = 0;
_weap_state_climb = 0;
_weap_state_run = 0;
break;
}
_weap_type = val;
_ammo = _ammo_max;
_face_mc.ammo_mc._width = (48 * _ammo) / _ammo_max;
_face_mc.weap_mc.body_mc.gotoAndStop(_weap_type);
_char_need_reload = false;
_face_mc.weap_mc.body_mc.addHint();
_face_mc.weap_mc.body_mc.addHint(_weap_name);
}
}
Symbol 2464 MovieClip [__Packages.CChar] Frame 0
class CChar extends CWeapons
{
var _char_pose, _char_state, CHAR_FAT_STAND, CHAR_FAT_SHADOW, CHAR_FAT_MOVING, _char_continues, _char_sing, _char_r, _char_armor, CHAR_TALL_MAX, CHAR_TALL_MIN, _char_lives, _char_eJump_max, _char_eJump, _ch_tall, _ch_fat, _char_hp_max, _char_look_y, _char_run, _ts, _char_climb_speed, _char_jump, _char_xaspeed_max, _char_ygspeed, _char_type_speed, _char_as, _char_ab, _char_down, _char_up, _char_firing, weap_set_type, snd_type, _landed, _stairs, _bonus_weap_dmg, _char_lib_name, _char_name, _char_av_id, _char_melee_dmg, _char_stat0, _char_stat1, _char_stat2, weap_set_enebled, weap_refresh_icos, _face_mc, _char_x, _char_y, _game_height, _char_cat_lives, _char_mc, _weap_preci, _char_side, _char_hp, _char_acr, _char_yspeed, _map_x, _map_y, _lvls, _char_xspeed, _char_xaspeed, get_x_scr, _char_jumping, _char_m_left, _char_m_right, _ammo, _ammo_max, _char_need_reload, _weap_state_45, _weap_state_run, _started_time, _enemy_kiled, _score, _bonuses_scores, _char_historys, _current_map, _rw, _rh, _boss_here, _weap_state_climb, _weap_state_0, _weap_state_1, _weap_state_2, _char_xscale, _l01, redraw_tiles, _objs;
function CChar () {
super();
_char_pose = (_char_state = 1);
CHAR_FAT_STAND = 4;
CHAR_FAT_SHADOW = 10;
CHAR_FAT_MOVING = 12;
_char_continues = 3;
_char_sing = _char_r;
_char_armor = 0;
CHAR_TALL_MAX = 60;
CHAR_TALL_MIN = 35;
_char_lives = 0;
_char_eJump_max = 0;
_char_eJump = 0;
_ch_tall = CHAR_TALL_MAX;
_ch_fat = CHAR_FAT_STAND;
_char_hp_max = 100;
char_set_hp(_char_hp_max);
_char_look_y = 0;
_char_run = _ts / 5;
_char_climb_speed = _ts / 15;
_char_jump = _ts * 0.6;
_char_xaspeed_max = (_ts * 2) / 3;
_char_ygspeed = (-_ts) / 12;
_char_type_speed = 1;
_char_as = 0;
_char_ab = 0;
_char_down = false;
_char_up = false;
_char_firing = false;
weap_set_type(1);
snd_type = "thug";
_landed = true;
_stairs = false;
_bonus_weap_dmg = 1;
}
function char_get_in_shadow() {
if (_char_state == 2) {
return(true);
}
return(false);
}
function set_char_type(val) {
trace("_set_char_type:" + val);
switch (val) {
case 1 :
_char_lib_name = "char1";
_char_name = "Thug";
_char_av_id = 1;
_char_hp_max = 100;
_char_armor = 5;
_char_melee_dmg = 20;
_char_stat0 = 10;
_char_stat1 = 10;
_char_stat2 = 10;
char_set_hp(_char_hp_max);
_char_type_speed = 0.95;
_char_jump = _ts * 0.98;
snd_type = "thug";
weap_set_enebled(1);
weap_set_type(1);
_char_eJump_max = 0;
_char_eJump = 0;
break;
case 2 :
_char_lib_name = "char2";
_char_name = "Kate";
_char_av_id = 2;
_char_hp_max = 50;
_char_armor = 0;
_char_melee_dmg = 8;
_char_stat0 = 10;
_char_stat1 = 10;
_char_stat2 = 10;
char_set_hp(_char_hp_max);
_char_type_speed = 1.05;
_char_jump = _ts * 1.03;
snd_type = "kate";
weap_set_enebled(2);
weap_set_type(2);
_char_eJump_max = 0;
_char_eJump = 0;
break;
case 3 :
_char_lib_name = "char3";
_char_name = "Johns";
_char_av_id = 4;
_char_hp_max = 80;
_char_armor = 2;
_char_melee_dmg = 30;
_char_stat0 = 10;
_char_stat1 = 10;
_char_stat2 = 10;
char_set_hp(_char_hp_max);
_char_type_speed = 0.99;
_char_jump = _ts * 0.96;
snd_type = "thug";
weap_set_enebled(7);
weap_set_type(7);
_char_eJump_max = 1;
_char_eJump = 0;
break;
case 4 :
_char_lib_name = "char4";
_char_name = "Mage";
_char_av_id = 3;
_char_melee_dmg = 40;
_char_stat0 = 10;
_char_stat1 = 10;
_char_stat2 = 10;
_char_hp_max = 120;
char_set_hp(_char_hp_max);
_char_type_speed = 1.15;
_char_jump = _ts * 0.98;
snd_type = "kate";
weap_set_enebled(5);
weap_set_enebled(6);
weap_set_type(5);
_char_eJump_max = 1;
_char_eJump = 0;
}
_char_jump = _char_jump * 0.8;
_root.load_snd(snd_type);
_root.set_sounds(0.5);
weap_refresh_icos();
}
function set_char_lives(val) {
_char_lives = val;
_face_mc.lives_dtxt.text = _char_lives;
}
function add_char_lives(val) {
_char_lives = _char_lives + val;
var _local3 = "+";
if (val < 0) {
_local3 = "";
}
if (_char_lives != 0) {
add_root_txt(_char_x, _game_height - _char_y, ((_local3 + val) + " ") + _global.xml_lang.life);
}
_face_mc.lives_dtxt.text = _char_lives;
}
function char_dead() {
_char_as = 20;
_char_cat_lives++;
trace("__char_cat_lives:" + _char_cat_lives);
_root.snd.death.start();
char_set_hp(_char_hp_max);
__CCondition_removeAll();
add_char_lives(-1);
if (_char_lives <= 0) {
set_char_lives(3);
lose_game(1);
}
}
function aim_get_x() {
return(_char_mc.aim_mc._x);
}
function aim_get_y() {
return(_char_mc.aim_mc._y);
}
function char_get_dmg_tall_y_rnd(tw) {
return(((char_get_dmg_tall_rnd(tw) * _ts) / 10) - (_ts * 0.75));
}
function char_get_dmg_tall_rnd(tw) {
var _local2 = char_get_dmg_tall();
var _local3 = ((0.5 - Math.random()) * Math.abs(tw)) / _weap_preci;
return(_local2 + _local3);
}
function char_get_dmg_tall_y() {
return(((char_get_dmg_tall() * _ts) / 10) - (_ts * 0.75));
}
function char_get_dmg_tall() {
return(1);
}
function char_get_side() {
return(_char_side);
}
function _char_heal(val) {
_char_hp = _char_hp + val;
if (_char_hp > _char_hp_max) {
_char_hp = _char_hp_max;
}
char_show_hp();
}
function char_heal(val) {
_char_heal(val);
_face_mc.hpbar_mc.glow_mc.play();
return(true);
}
function _char_take_dmg(val) {
_char_hp = _char_hp - val;
char_show_hp();
}
function char_take_dmg(val) {
if ((_char_as > 0) || (char_spirit_get())) {
return(false);
}
_char_as = 8;
_char_take_dmg(val);
damage_char();
return(true);
}
function char_set_hp(val) {
_char_hp = val;
char_show_hp();
}
function char_show_hp() {
if (_char_hp < 0) {
_char_hp = 0;
char_dead();
}
var _local2 = _char_hp / _char_hp_max;
_face_mc.hpbar_mc.mask_mc._theight = 71 * _local2;
var _local3 = (9 - Math.round(9 * _local2)) + 1;
_face_mc.char_face_mc.body.gotoAndStop(_local3);
_face_mc.char_face_mc.body._alpha = (100 * (_local2 * 0.3)) + 70;
_face_mc.char_face_mc.sk_mc._alpha = 100 * (1 - _local2);
}
function char_firing(val) {
_char_firing = val;
if (_char_firing) {
_face_mc.keypad.key_z.gotoAndStop(2);
} else {
_face_mc.keypad.key_z.gotoAndStop(1);
}
if (_char_firing) {
char_shoot();
}
}
function char_climb_up() {
if (_char_acr) {
return(false);
}
_char_climb_up();
}
function _char_climb_up() {
_char_acr = true;
_global.char_animation = 23;
_char_yspeed = _char_climb_speed;
}
function char_climb_down() {
if (_char_acr) {
return(false);
}
_char_climb_down();
}
function _char_climb_down() {
_char_acr = true;
_global.char_animation = 23;
_char_yspeed = -_char_climb_speed;
}
function char_climb() {
var _local4 = Math.round(((_char_x + _map_x) + (_ts / 2)) / _ts) - 1;
var _local5 = Math.round(((_char_y + _map_y) + (_ts / 2)) / _ts);
var _local3 = _lvls[_local4][_local5];
if ((_local3 == "r") || (_local3 == "t")) {
_stairs = true;
_char_yspeed = 0;
_char_xspeed = 0;
_char_xaspeed = 0;
_char_acr = false;
_char_x = get_x_scr(_local4) - _map_x;
if (_char_down) {
_char_climb_down();
return(true);
}
if (_char_up) {
_char_climb_up();
return(true);
}
_global.char_animation = 21;
return(true);
}
return(false);
}
function char_set_state(val) {
if (val == 0) {
_char_down = true;
} else {
_char_down = false;
}
if (val == 2) {
_char_up = true;
if (_char_firing && (((_global.char_animation == 11) || (_global.char_animation == 17)) || (_global.char_animation == 27))) {
return(false);
}
if ((_landed == false) && (_stairs == false)) {
if (char_climb()) {
return(false);
}
}
if (char_run_back()) {
return(false);
}
} else {
_char_up = false;
}
if (_stairs) {
if (val == 0) {
char_climb_down();
}
if (val == 2) {
char_climb_up();
}
return(false);
}
_char_pose = val;
if (_char_acr) {
if (_global.char_animation == 8) {
_global.char_animation = 9;
}
if (_global.char_animation == 6) {
_global.char_animation = 7;
}
return(false);
}
_char_set_state(val);
}
function char_set_jump(val) {
if (char_spirit_get()) {
return(false);
}
_char_jumping = val;
if (((_char_state == 0) || (_global.char_animation == 8)) && (val == true)) {
_char_jumping = false;
fall_char();
return(false);
}
if (_stairs && (val == true)) {
___fall_char();
return(false);
}
if (_char_jumping == true) {
_jump_char();
}
}
function char_set_m_l(val) {
_char_m_left = val;
if (val) {
char_step(-1);
}
}
function char_set_m_r(val) {
_char_m_right = val;
if (val) {
char_step(1);
}
}
function _char_set_state(val) {
if (val == _char_state) {
return(false);
}
_char_acr = true;
switch (val) {
case 0 :
_global.char_animation = 8;
_char_down = true;
break;
case 1 :
if (_char_state == 0) {
_global.char_animation = 9;
break;
}
if (_char_state == 2) {
_global.char_animation = 7;
} else {
break;
_global.char_animation = 6;
}
case 2 :
_global.char_animation = 6;
}
}
function char_spirit_get() {
if (_global.char_animation == 45) {
return(true);
}
return(false);
}
function char_spirit(val) {
if (val) {
_char_acr = true;
_global.char_animation = 45;
_char_xaspeed = 0;
_char_xspeed = 0;
_char_yspeed = 0;
} else {
_char_acr = false;
_global.char_animation = 1;
}
}
function check_ammo() {
if ((_ammo <= 0) && (_ammo_max > 0)) {
_char_need_reload = true;
}
}
function reload_ammo() {
_ammo = _ammo_max;
_face_mc.ammo_mc._width = (48 * _ammo) / _ammo_max;
_char_need_reload = false;
}
function char_check_act(val) {
if ((_char_pose != _char_state) && (_char_pose == 0)) {
_char_step(0);
_char_set_state(_char_pose);
return(false);
}
if (_char_firing) {
_char_shoot();
return(false);
}
if (_char_up) {
if ((_char_pose != 2) && (_char_state != 2)) {
_char_step(0);
_char_set_state(2);
return(false);
}
}
if (_char_pose != _char_state) {
_char_step(0);
_char_set_state(_char_pose);
return(false);
}
if (_char_need_reload) {
_char_reload();
return(false);
}
if (_char_jumping) {
_jump_char();
return(false);
}
if (_char_m_right) {
_char_step(1);
return(false);
}
if (_char_m_left) {
_char_step(-1);
return(false);
}
_char_xaspeed = 0;
_char_xspeed = 0;
_ch_fat = CHAR_FAT_STAND;
switch (_char_state) {
case 0 :
_global.char_animation = 12;
break;
case 1 :
if (_stairs) {
_global.char_animation = 21;
} else {
_global.char_animation = 1;
}
break;
case 2 :
_global.char_animation = 15;
}
_char_acr = val;
return(true);
}
function char_act(val, act) {
switch (act) {
case "climb_up_down" :
if (_stairs) {
if (_char_down) {
_char_climb_down();
return(false);
}
if (_char_up) {
_char_climb_up();
return(false);
}
}
_char_yspeed = 0;
_global.char_animation = 21;
_char_acr = false;
break;
case "damage" :
if (_char_yspeed < 0) {
_global.char_animation = 5;
} else if (_char_yspeed > 0) {
_global.char_animation = 4;
} else {
_global.char_animation = 1;
}
_char_acr = false;
char_check_act(val);
return(false);
case "reload" :
reload_ammo();
char_check_act(val);
return(false);
case "shoot" :
var _local4 = false;
if (_global.char_animation == _weap_state_45) {
_local4 = true;
}
_CChar_shoot(_local4);
check_ammo();
char_check_act(val);
return(false);
case "fall" :
_char_xspeed = 0;
_char_xaspeed = 0;
_char_acr = true;
_landed = true;
if (_char_down) {
_char_state = 0;
_global.char_animation = 12;
char_act(false, "sit");
_char_acr = false;
} else {
_char_state = 1;
_global.char_animation = 19;
}
return(true);
case "land" :
_landed = true;
case "exitshadow" :
case "exitsit" :
_char_state = 1;
_ch_tall = CHAR_TALL_MAX;
_global.char_animation = 1;
if (_char_need_reload) {
_char_reload();
return(false);
}
if (_char_firing) {
_char_shoot();
return(false);
}
if (_char_jumping) {
_jump_char();
return(false);
}
if (_char_m_right) {
_char_step(1);
return(false);
}
if (_char_m_left) {
_char_step(-1);
return(false);
}
if (_char_up) {
_char_set_state(2);
}
if (_char_down) {
_char_set_state(0);
}
_char_xspeed = 0;
break;
case "shadow" :
_char_state = 2;
_ch_tall = CHAR_TALL_MAX;
_ch_fat = CHAR_FAT_SHADOW;
_global.char_animation = 15;
break;
case "sit" :
_char_state = 0;
_ch_tall = CHAR_TALL_MIN;
if (_char_need_reload) {
_char_reload();
return(false);
}
if (_char_firing) {
_char_shoot();
return(false);
}
if (_char_m_right || (_char_m_left)) {
_char_xspeed = 0;
switch (_global.char_animation / 1) {
case 2 :
case 3 :
_global.char_animation = 1;
break;
case 10 :
_global.char_animation = 12;
}
return(false);
}
if (_char_y < 200) {
_char_look_y = 90;
}
break;
case "torun" :
if (_char_pose != _char_state) {
_char_step(0);
_char_set_state(_char_pose);
return(true);
}
if (_char_need_reload) {
_char_reload();
return(false);
}
if (_char_jumping) {
_jump_char();
return(false);
}
if (_char_m_right) {
_char_step(1);
_global.char_animation = 3;
return(false);
}
if (_char_m_left) {
_char_step(-1);
_global.char_animation = 3;
return(false);
}
if (_char_firing) {
_char_shoot();
return(false);
}
_char_xspeed = 0;
_ch_fat = CHAR_FAT_STAND;
switch (_global.char_animation / 1) {
case 2 :
case 3 :
_global.char_animation = 1;
break;
case 10 :
_global.char_animation = 12;
}
break;
case "climb_side" :
if (_char_m_right) {
_char_step(1);
return(false);
}
if (_char_m_left) {
_char_step(-1);
return(false);
}
_char_xspeed = 0;
_ch_fat = CHAR_FAT_STAND;
_global.char_animation = 21;
break;
case "shoot_run" :
_local4 = false;
if (_global.char_animation == _weap_state_45) {
_local4 = true;
}
_CChar_shoot(_local4);
case "stealth" :
case "crawl" :
case "run" :
if (_char_pose != _char_state) {
_char_step(0);
_char_set_state(_char_pose);
return(true);
}
if (_char_need_reload) {
_char_reload();
return(false);
}
if (_char_jumping) {
_jump_char();
return(false);
}
if (_char_firing) {
_char_shoot();
return(false);
}
if (_char_m_right) {
_char_step(1);
return(false);
}
if (_char_m_left) {
_char_step(-1);
return(false);
}
_char_xspeed = 0;
_ch_fat = CHAR_FAT_STAND;
switch (_global.char_animation / 1) {
case 2 :
case 3 :
case _weap_state_run :
_global.char_animation = 1;
break;
case 10 :
_global.char_animation = 12;
break;
case 16 :
_global.char_animation = 15;
}
break;
case "run_back" :
win_game();
break;
default :
trace((("__act:" + act) + ":") + val);
}
_char_acr = val;
}
function _win_game() {
var _local5 = getTimer() - _started_time;
var _local11 = 200 - (_local5 / 1000);
if (_local11 < 0) {
_local11 = 0;
}
_local11 = _local11 * 8;
_local11 = Math.round(_local11);
var _local10 = _enemy_kiled * 25;
var _local9 = _local11 + _local10;
_local9 = Math.round(_local9);
_score = _score + _local9;
var _local6 = _bonuses_scores;
_bonuses_scores = 0;
_score = _score + _local6;
var _local3 = {total_score:_score, score_for_kills:_local10, score_for_level:_local9, score_for_time:_local11, score_for_bonuses:_local6, _char_historys:_char_historys};
for (var _local4 in _local3) {
trace((_local4 + ":") + _local3[_local4]);
}
_root.show_win_menu(_current_map, _local3);
}
function gfx_end() {
var _local9 = _rw;
var _local10 = _rh;
var _local7 = true;
var _local8 = 4294967295;
var _local6 = new flash.display.BitmapData(_local9, _local10, _local7, _local8);
_local6.draw(_root);
var _local3 = _root.createEmptyMovieClip("intro", _root.intro_depth);
var _local4 = _local3.createEmptyMovieClip("bg_mc", _local3.getNextHighestDepth());
var _local5 = _local3.createEmptyMovieClip("bit_mc", _local3.getNextHighestDepth());
_local4.attachMovie("menu_bg", "bg", _local4.getNextHighestDepth());
_local5.attachBitmap(_local6, _local5.getNextHighestDepth());
_local4._alpha = 0;
_local4.onEnterFrame = function () {
this._alpha = this._alpha + 2;
if (this._alpha >= 100) {
delete this.onEnterFrame;
}
};
_local5.onEnterFrame = function () {
this._alpha = this._alpha - 2;
if (this._alpha < 1) {
delete this.onEnterFrame;
}
};
}
function win_game() {
gfx_end();
_win_game();
}
function char_run_back() {
if (_char_acr) {
return(false);
}
var _local5 = Math.round(((_char_x + _map_x) + (_ts / 2)) / _ts) - 1;
var _local4 = Math.round(((_char_y + _map_y) + (_ts / 2)) / _ts);
var _local3 = _lvls[_local5][_local4];
if ((_local3 != "z") || (_boss_here > 0)) {
return(false);
}
_char_acr = true;
_global.char_animation = 14;
return(true);
}
function char_shoot() {
if (_char_acr) {
return(false);
}
_char_shoot();
}
function _char_shoot() {
if (_stairs && (_weap_state_climb == 0)) {
_char_acr = false;
return(false);
}
if (_char_need_reload) {
_char_reload();
return(false);
}
_char_acr = true;
_char_xspeed = 0;
if (_char_m_right) {
char_set_sice(1);
}
if (_char_m_left) {
char_set_sice(-1);
}
switch (_char_state) {
case 0 :
if ((_weap_state_0 == 0) && (_weap_state_1 != 0)) {
_char_set_state(1);
break;
}
_global.char_animation = _weap_state_0;
break;
case 1 :
if (_stairs && (_weap_state_climb != 0)) {
_global.char_animation = _weap_state_climb;
} else if (_char_up && (_weap_state_45 != 0)) {
_global.char_animation = _weap_state_45;
} else {
_global.char_animation = _weap_state_1;
}
break;
case 2 :
if ((_weap_state_2 == 0) && (_weap_state_1 != 0)) {
_char_set_state(1);
} else {
_global.char_animation = _weap_state_2;
}
}
}
function char_reload() {
_char_need_reload = true;
if (_char_acr) {
return(false);
}
_char_reload();
}
function _char_reload() {
_char_acr = true;
_char_xspeed = 0;
_root.snd.reload.start();
switch (_char_state) {
case 0 :
_global.char_animation = 18;
break;
case 1 :
if (_stairs) {
_char_acr = false;
___fall_char();
return(false);
}
_global.char_animation = 17;
break;
case 2 :
_char_acr = false;
}
}
function char_step(side) {
if ((_char_acr && (_char_yspeed == 0)) || (_stairs)) {
if (_stairs) {
char_set_sice(side);
}
return(false);
}
_char_step(side);
}
function _char_step(side) {
if (_stairs) {
char_set_sice(side);
return(false);
}
_char_acr = true;
switch (_char_state) {
case 0 :
_global.char_animation = 10;
_char_xspeed = side / 3;
_ch_fat = CHAR_FAT_MOVING;
break;
case 1 :
var _local4 = 1;
if (_landed) {
if (_char_firing && (_weap_state_run != 0)) {
_local4 = 0.8;
_global.char_animation = _weap_state_run;
} else if (((_global.char_animation != 2) && (_global.char_animation != 3)) && (_global.char_animation != 12)) {
_global.char_animation = 2;
} else {
_global.char_animation = 3;
}
}
_char_xspeed = ((side * _char_type_speed) * _local4) / 1.2;
_ch_fat = CHAR_FAT_MOVING;
break;
case 2 :
_global.char_animation = 16;
_char_xspeed = (side * _char_type_speed) / 3.5;
_ch_fat = CHAR_FAT_MOVING;
}
char_set_sice(side);
return(true);
}
function char_set_sice(side) {
if (side != 0) {
_char_side = side;
_root.main.char._xscale = _char_xscale * side;
}
}
function damage_char() {
_char_acr = true;
_stairs = false;
_global.char_animation = 20;
_char_xaspeed = 0;
_char_xspeed = 0;
_ch_fat = CHAR_FAT_STAND;
_char_state = 1;
}
function fall_char() {
if (_char_acr) {
return(false);
}
_fall_char();
}
function _fall_char() {
var _local3 = Math.round(((_char_x + _map_x) + (_ts / 2)) / _ts) - 1;
var _local2 = Math.round(((_char_y + _map_y) + (_ts / 2)) / _ts);
if ((_l01[_local3][_local2 - 1] == 0) && (_l01[_local3][_local2 - 2] == 1)) {
__fall_char();
}
}
function __fall_char() {
_char_y = _char_y - 50;
___fall_char();
}
function ___fall_char() {
_char_acr = true;
_stairs = false;
_global.char_animation = 5;
if (_char_m_right || (_char_m_left)) {
_char_xaspeed = ((_char_side * _char_type_speed) * _char_run) * 0.9;
}
redraw_tiles = true;
}
function jump_char() {
if (_char_acr || (_global.char_animation == 19)) {
return(false);
}
var _local4 = Math.round(((_char_x + _map_x) + (_ts / 2)) / _ts) - 1;
var _local3 = Math.round(((_char_y + _map_y) + (_ts / 2)) / _ts);
if ((_l01[_local4][_local3 - 1] == 0) && (_char_yspeed == 0)) {
_jump_char();
}
}
function _jump_char() {
if (_global.char_animation == 19) {
return(false);
}
var _local4 = Math.round(((_char_x + _map_x) + (_ts / 2)) / _ts) - 1;
var _local3 = Math.round(((_char_y + _map_y) + (_ts / 2)) / _ts);
if (_landed) {
_char_eJump = _char_eJump_max;
__jump_char();
} else if ((_char_eJump > 0) && (_char_yspeed < (((-_char_jump) * 0) / 4))) {
_char_eJump--;
__jump_char();
}
}
function __jump_char() {
if (_char_state != 1) {
char_set_state(1);
return(false);
}
_char_acr = true;
var _local5 = _landed;
_landed = false;
var _local6 = random(3) + 1;
_root.snd["jump" + _local6].start();
if (_char_m_right || (_char_m_left)) {
_char_xaspeed = ((_char_side * _char_type_speed) * _char_run) * 1.1;
_char_xspeed = (_char_side * _char_type_speed) / 1.2;
}
var _local4 = _char_jump;
if (!_local5) {
_local4 = _local4 / 1.2;
}
_char_yspeed = _char_yspeed + _local4;
_global.char_animation = 4;
}
function add_root_txt(x, y, txt) {
}
function _CChar_shoot() {
}
function lose_game() {
}
function __CCondition_removeAll() {
}
function _CChar_trace() {
trace("--------------------------");
trace("_char_state:" + _char_state);
trace("_char_acr:" + _char_acr);
trace("_char_animation:" + _global.char_animation);
trace("_char_xspeed:" + _char_xspeed);
trace("_char_yspeed:" + _char_yspeed);
trace("_char_down:" + _char_down);
trace("_stairs:" + _stairs);
trace("_obj:" + _objs.length);
}
}
Symbol 2465 MovieClip [__Packages.CCondition] Frame 0
class CCondition extends CChar
{
var _con_mc, _cond, _char_type_speed, _char_armor, _bonus_weap_dmg, _char_heal, _char_take_dmg;
function CCondition () {
super();
_con_mc = _root.createEmptyMovieClip("con_mc", _root.con_depth);
__CCondition_removeAll();
}
function __CCondition_removeAll() {
for (var _local4 in _cond) {
var _local3 = _cond[_local4];
__CConditions_after_remove(_local3);
}
_cond = [];
_con_mc = _root.createEmptyMovieClip("con_mc", _root.con_depth);
}
function __CCondition_refresh_mcs() {
for (var _local3 in _cond) {
var _local2 = _cond[_local3];
_local2.item_mc._y = _con_mc_h * _local3;
}
}
function __CCondition_add(obj) {
var _local3 = obj.id;
obj.tts = getTimer();
obj.tl = 0;
if (obj.ttl == undefined) {
obj.ttl = 5;
}
var _local5 = "con_mc" + _con_mc.getNextHighestDepth();
var _local4 = _con_mc.attachMovie("condition_mc", _local5, _con_mc.getNextHighestDepth());
_local4.mc.gotoAndStop(_local3);
obj.item_mc = _local4;
switch (_local3) {
case CONST_CON_HoT :
break;
case CONST_CON_DoT :
break;
case CONST_CON_DeSpeed :
_char_type_speed = _char_type_speed / obj.var0;
break;
case CONST_CON_Speed :
_char_type_speed = _char_type_speed * obj.var0;
break;
case CONST_CON_Armor :
_char_armor = _char_armor + obj.var0;
break;
case CONST_CON_Inviciple :
break;
case CONST_CON_Firepower :
_bonus_weap_dmg++;
}
_cond.push(obj);
__CCondition_refresh_mcs();
}
function __CConditions_after_remove(obj) {
var _local3 = obj.id;
obj.item_mc.play();
switch (_local3) {
case CONST_CON_HoT :
break;
case CONST_CON_DoT :
break;
case CONST_CON_DeSpeed :
_char_type_speed = _char_type_speed * obj.var0;
break;
case CONST_CON_Speed :
_char_type_speed = _char_type_speed / obj.var0;
break;
case CONST_CON_Armor :
_char_armor = _char_armor - obj.var0;
break;
case CONST_CON_Inviciple :
break;
case CONST_CON_Firepower :
_bonus_weap_dmg--;
}
}
function __CConditions_turn() {
for (var _local5 in _cond) {
var _local2 = _cond[_local5];
var _local4 = _local2.id;
var _local3 = getTimer() - _local2.tts;
_local2.tts = getTimer();
_local3 = _local3 / 1000;
_local2.tl = _local2.tl + _local3;
if (_local2.tl > _local2.ttl) {
__CConditions_after_remove(_local2);
_cond.splice(_local5 / 1, 1);
__CCondition_refresh_mcs();
continue;
}
switch (_local4) {
case CONST_CON_HoT :
_char_heal(_local2.var0 * _local3);
break;
case CONST_CON_DoT :
_char_take_dmg(_local2.var0 * _local3);
break;
case CONST_CON_Speed :
break;
case CONST_CON_Armor :
break;
case CONST_CON_Firepower :
}
}
}
var CONST_CON_HoT = 1;
var CONST_CON_DoT = 2;
var CONST_CON_Speed = 3;
var CONST_CON_Armor = 4;
var CONST_CON_Inviciple = 5;
var CONST_CON_Firepower = 6;
var CONST_CON_DeSpeed = 7;
var _con_mc_h = 77;
}
Symbol 2466 MovieClip [__Packages.CObjs] Frame 0
class CObjs extends CCondition
{
var _objs, _enemy_kiled, _exps, _ts, _gfx_scr, get_x_scr, get_y_scr, _bosses_hp, _bosses_hp_max, _face_mc, _map_x, _char_x, _map_y, _char_y, char_take_dmg, lose_game, _l01, __CMap_get, __CMap__set, _game_height, _boss_here, redraw_tiles, _lvls, _char_u, _char_l, _char_r, char_get_in_shadow, _char_as, __CCondition_add, CONST_CON_DoT, maxtiles_x, win_game, CONST_CON_HoT, CONST_CON_Speed, weap_set_enebled, weap_get_name, add_char_lives, CONST_CON_Armor, CONST_CON_Firepower, CONST_CON_DeSpeed, _char_historys, _current_map, _char_capsules_per_lvl, _char_capsule, _char_ab, _bonuses_scores, refresh_info_tip;
function CObjs () {
super();
_objs = [];
_enemy_kiled = 0;
_exps = 0;
}
function add_mc(item_xml) {
}
function _add_bonus(x, y) {
var _local3 = [205, 206, 207, 311, 312];
var _local2 = new XML("<aim />");
_local2.firstChild.attributes.id == "temp";
_local2.firstChild.attributes.type = _local3[random(_local3.length)];
_local2.firstChild.attributes.x = x;
_local2.firstChild.attributes.y = y;
_local2.firstChild.attributes.dmg = 10;
_local2.firstChild.attributes.ttl = 20;
_local2.firstChild.attributes.sy = 20 / _ts;
_local2.firstChild.attributes.item_mc = "";
add_obj(_local2.firstChild);
}
function add_bonus(x, y) {
if (Math.random() > 0.8) {
_add_bonus(x, y + 0.5);
}
}
function add_shoot_trace(xy_start, xy_end, size, ttl) {
var _local4 = 20;
var _local3 = "z_exps" + _gfx_scr.getNextHighestDepth();
var _local2 = _gfx_scr.createEmptyMovieClip(_local3, _gfx_scr.getNextHighestDepth());
_local2.lineStyle(size, 16711680, 50);
_local2.moveTo(xy_start[0], xy_start[1]);
_local2.lineTo(xy_end[0], xy_end[1]);
_local2.tts = ttl;
_local2.onEnterFrame = function () {
this.tts--;
this._alpha = this._alpha * 0.8;
if (this.tts < 0) {
this.unloadMovie();
}
};
}
function add_spider_trace(xy) {
var _local7 = "z_exps" + _gfx_scr.getNextHighestDepth();
var _local4 = _gfx_scr.createEmptyMovieClip(_local7, _gfx_scr.getNextHighestDepth());
_local4.lineStyle(2, 65280, 50);
for (var _local6 in _objs) {
var _local2 = _objs[_local6];
if (_local2.nodeName == "aim") {
continue;
}
var _local3 = _local2.attributes;
_local4.moveTo(get_x_scr(xy[0]), get_y_scr(xy[1]));
_local4.lineTo(get_x_scr(_local3.x / 1), get_y_scr(_local3.y / 1));
}
_local4.tts = 0;
_local4.onEnterFrame = function () {
this.tts--;
this._alpha = this._alpha * 0.9;
if (this.tts < 0) {
this.unloadMovie();
}
};
}
function add_root_explosion(x, y, type_id) {
_exps++;
var _local4 = "z_exps" + _exps;
var _local5 = {_x:x, _y:y};
var _local3 = "z_exps" + type_id;
_root.main.attachMovie(_local3, _local4, _root.stars_depth + _exps, _local5);
if (_exps > 20) {
_exps = 0;
}
}
function add_root_txt(x, y, txt) {
var _local7 = 14;
var _local5 = "z_exps" + _root.main.getNextHighestDepth();
var _local6 = {_x:x, _y:y};
var _local4 = "z_exps" + _local7;
var _local3 = _root.main.attachMovie(_local4, _local5, _root.main.getNextHighestDepth(), _local6);
_local3.dtxt.text = txt;
_local3.onEnterFrame = function () {
this._y--;
};
}
function add_txt(x, y, txt) {
var _local6 = 14;
var _local4 = "z_exps" + _gfx_scr.getNextHighestDepth();
var _local5 = {_x:x, _y:y};
var _local3 = "z_exps" + _local6;
var _local2 = _gfx_scr.attachMovie(_local3, _local4, _gfx_scr.getNextHighestDepth(), _local5);
_local2.dtxt.text = txt;
_local2.onEnterFrame = function () {
this._y--;
};
}
function add_explosion(x, y, type_id) {
var _local3 = "z_exps" + _gfx_scr.getNextHighestDepth();
var _local4 = {_x:x, _y:y};
var _local2 = "z_exps" + type_id;
_gfx_scr.attachMovie(_local2, _local3, _gfx_scr.getNextHighestDepth(), _local4);
}
function get_obj_tall_y(item) {
return(((item.attributes.tall * _ts) / 10) - (_ts / 2));
}
function obj_take_dmg(item_xml, dmg) {
if (item_xml.nodeName == "mine") {
obj_die(item_xml);
return(0);
}
if ((item_xml.attributes.boss / 1) == 1) {
_bosses_hp = _bosses_hp - dmg;
_face_mc.boss_mc.mask_mc._height = (106 * _bosses_hp) / _bosses_hp_max;
}
item_xml.attributes.hp = (item_xml.attributes.hp / 1) - dmg;
if (item_xml.attributes.hp <= 0) {
if (item_xml.attributes.exp_range != undefined) {
obj_die(item_xml);
} else if (item_xml.nodeName == "ppl") {
item_xml.attributes.st = 10;
item_xml.attributes.item_mc.body.gotoAndStop(item_xml.attributes.st);
} else {
obj_die(item_xml);
}
return(0);
}
return(item_xml.attributes.hp);
}
function get_touch_smt(global_xy, dist) {
for (var _local9 in _objs) {
var _local2 = _objs[_local9];
if ((_local2.nodeName == "aim") || (_local2.nodeName == "mine")) {
continue;
}
var _local5 = _local2.attributes;
var _local4 = (_local5.x / 1) - global_xy[0];
var _local3 = (_local5.y / 1) - global_xy[1];
var _local6 = Math.abs(_local4) + Math.abs(_local3);
if (_local6 <= dist) {
_local6 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local6 <= dist) {
return(_local2);
}
}
}
return(-1);
}
function shoot(type, dmg, xy, sxy, asxy, hxy) {
var _local2 = new XML("<aim />");
_local2.firstChild.attributes.type = type;
_local2.firstChild.attributes.x = xy[0];
_local2.firstChild.attributes.y = xy[1];
_local2.firstChild.attributes.sx = sxy[0];
_local2.firstChild.attributes.sy = sxy[1];
_local2.firstChild.attributes.asx = asxy[0];
_local2.firstChild.attributes.asy = asxy[1];
_local2.firstChild.attributes.hx = hxy[0];
_local2.firstChild.attributes.hy = hxy[1];
_local2.firstChild.attributes.ttl = 40;
_local2.firstChild.attributes.item_mc = "";
_local2.firstChild.attributes.dmg = dmg;
add_obj(_local2.firstChild);
}
function get_close_tar(xy) {
var _local11 = xy[0];
var _local10 = xy[1];
var _local7 = 9999999 /* 0x98967F */;
var _local9 = -1;
var _local8 = [];
for (var _local12 in _objs) {
var _local2 = _objs[_local12];
if (_local2.nodeName != "ppl") {
continue;
}
var _local6 = _local2.attributes;
var _local5 = _local11 - (_local6.x / 1);
var _local4 = _local10 - (_local6.y / 1);
var _local3 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
if (_local3 < _local7) {
_local7 = _local3;
_local9 = _local2;
_local8 = [_local5, _local4, _local3];
}
}
return([_local9, _local8]);
}
function mass_exp(global_xy, exp_range) {
var _local7 = ((exp_range + 1) * (exp_range + 1)) - 1;
var _local2 = 0;
while (_local2 < _local7) {
var _local4 = global_xy[0] + ((Math.random() - 0.5) * (exp_range + 2));
var _local3 = global_xy[1] + ((Math.random() - 0.5) * (exp_range + 2));
add_explosion(get_x_scr(_local4), get_y_scr(_local3), 3);
_local2++;
}
}
function mass_dmg(xy, range, dmg) {
for (var _local7 in _objs) {
var _local2 = _objs[_local7];
if (_local2.nodeName == "aim") {
continue;
}
var _local3 = _local2.attributes;
var _local9 = xy[0] - (_local3.x / 1);
var _local8 = xy[1] - (_local3.y / 1);
var _local10 = Math.sqrt((_local9 * _local9) + (_local8 * _local8)) * _ts;
if (_local10 <= range) {
obj_take_dmg(_objs[_local7], dmg);
}
}
var _local12 = Math.round(((_char_x + _map_x) + (_ts / 2)) / _ts) - 1;
var _local11 = Math.round(((_char_y + _map_y) + (_ts / 2)) / _ts);
var _local9 = _local12 - xy[0];
var _local8 = _local11 - xy[1];
var _local10 = Math.sqrt((_local9 * _local9) + (_local8 * _local8)) * _ts;
if (_local10 < range) {
char_take_dmg(dmg);
}
}
function obj_die(item) {
if (item.attributes.type == 27) {
lose_game(2);
return(false);
}
if (item.attributes.aim_xml != undefined) {
remove_obj(item.attributes.aim_xml);
}
if ((item.attributes.ter_up / 1) == 0) {
var _local6 = item.attributes.x / 1;
var _local5 = item.attributes.y / 1;
_l01[_local6][_local5 + 1] = 1;
}
if ((item.attributes.ter / 1) == 0) {
var _local6 = item.attributes.x / 1;
var _local5 = item.attributes.y / 1;
_l01[_local6][_local5] = 1;
}
if ((item.attributes.type / 1) == 12) {
if (item.attributes.exp_range == undefined) {
item.attributes.exp_range = 2;
}
}
if (item.attributes.exp_range != undefined) {
var _local7 = item.attributes.exp_range / 1;
var _local6 = item.attributes.x / 1;
var _local5 = item.attributes.y / 1;
_root.snd.explosion_kamikadze.start();
mass_exp([_local6, _local5], _local7);
var _local8 = item.attributes.dmg / 1;
remove_obj(item);
mass_dmg([_local6, _local5], _local7 * _ts, _local8);
return(true);
}
if ((item.attributes.boss / 1) == 1) {
var _local6 = item.attributes.x / 1;
var _local5 = item.attributes.y / 1;
_root.snd.explosion_boss1.start();
add_explosion(get_x_scr(_local6), get_y_scr(_local5), 10);
}
if (item.nodeName == "mine") {
var _local6 = item.attributes.x / 1;
var _local5 = item.attributes.y / 1;
add_explosion(get_x_scr(_local6), get_y_scr(_local5), 5);
_root.snd.explosion_mine.start();
}
if ((item.nodeName == "ppl") && (item.attributes.boss != 1)) {
var _local6 = item.attributes.x / 1;
var _local5 = item.attributes.y / 1;
_face_mc.enemy_mc._width = 71 - ((71 * _enemy_kiled) / 20);
add_bonus(_local6, _local5);
}
if (item.nodeName == "obj") {
var _local6 = item.attributes.x / 1;
var _local5 = item.attributes.y / 1;
add_bonus(_local6, _local5);
_root.snd.explosion_object.start();
add_explosion(get_x_scr(_local6), get_y_scr(_local5), 3);
if ((item.attributes.type == 7) || (item.attributes.type == 8)) {
var _local4 = new XML("<aim />");
_local4.firstChild.attributes.type = (item.attributes.type / 1) + 93;
_local4.firstChild.attributes.x = _local6;
_local4.firstChild.attributes.y = _local5;
_local4.firstChild.attributes.item_mc = "";
add_obj(_local4.firstChild);
}
}
remove_obj(item);
}
function add_obj(item) {
_objs.push(item);
add_mc(item);
}
function hide_obj(item) {
if (item.attributes.id == "temp") {
return(true);
}
if (item.nodeName == "aim") {
remove_obj(item);
return(true);
}
var _local2 = item;
var _local7 = _local2.attributes;
var _local9 = Math.round(_local7.x / 1);
var _local8 = Math.round(_local7.y / 1);
var _local3 = (_local9 + ",") + _local8;
var _local4 = _local2.attributes.id;
var _local10 = [_local9, _local8];
if ((__CMap_get(_local10) == 1) || (_local3 == _local4)) {
if (_local3 != _local4) {
var _local5 = _local4.split(",");
if (__CMap_get(_local5) == "A") {
__CMap__set(_local5, 1);
}
}
__CMap__set(_local10, "a");
_local2.attributes.id = _local3;
_local2.attributes.item_mc.unloadMovie();
_local2.attributes.item_mc = "";
remove_obj(_local2);
}
}
function get_char_d(item_mc) {
var _local3 = {x:item_mc._x, y:item_mc._y};
_root.main.localToGlobal(_local3);
var _local8 = _local3.x;
var _local7 = _game_height - _local3.y;
var _local5 = _char_x - _local8;
var _local4 = _char_y - _local7;
var _local6 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
return(_local6);
}
function remove_obj(item_xml) {
for (var _local4 in _objs) {
if (_objs[_local4] == item_xml) {
if (item_xml.attributes.boss == 1) {
_boss_here--;
trace("__boss_here:" + _boss_here);
if (_boss_here == 0) {
_root.musik.stop();
_root.musik_started = false;
_root.snd.win.start();
_bosses_hp = 0;
_face_mc.boss_mc.mask_mc._height = (106 * _bosses_hp) / _bosses_hp_max;
}
}
if (item_xml.attributes.aim_xml != undefined) {
remove_obj(item_xml.attributes.aim_xml);
}
_objs[_local4].attributes.item_mc.unloadMovie();
_objs.splice(Number(_local4), 1);
}
}
}
function obj_stop(item_xml) {
var _local2 = 1;
if (item_xml.attributes.kam == true) {
item_xml.attributes.kam = false;
}
if (item_xml.attributes.normal_speed != undefined) {
item_xml.attributes.speed = item_xml.attributes.normal_speed;
}
item_xml.attributes.st = _local2;
item_xml.attributes.item_mc.body.gotoAndStop(item_xml.attributes.st);
}
function _obj_move(item_xml) {
var _local3 = (item_xml.attributes.x / 1) + (item_xml.attributes.speed / 1);
var _local5 = item_xml.attributes.y / 1;
var _local4 = _l01[Math.round(_local3)][Math.round(_local5)];
if ((_local4 == 0) || (_local4 == undefined)) {
obj_stop(item_xml);
return(false);
}
item_xml.attributes.x = _local3;
item_xml.attributes.item_mc._x = get_x_scr(_local3) - _map_x;
item_xml.attributes._landed = false;
return(true);
}
function _move(item_xml) {
var _local3 = (item_xml.attributes.x / 1) + (item_xml.attributes.speed / 1);
var _local5 = item_xml.attributes.y / 1;
var _local4 = _l01[Math.round(_local3)][Math.round(_local5)];
var _local6 = _l01[Math.round(_local3)][Math.round(_local5) - 1];
if (((_local4 == 0) || (_local6 != 0)) || (_local4 == undefined)) {
obj_stop(item_xml);
return(false);
}
item_xml.attributes.x = _local3;
item_xml.attributes.item_mc._x = get_x_scr(_local3) - _map_x;
return(true);
}
function _fall(item_xml) {
if (item_xml.attributes._landed) {
return(false);
}
var _local6 = item_xml.attributes.x / 1;
var _local3 = item_xml.attributes.y / 1;
if (item_xml.attributes.sy == undefined) {
item_xml.attributes.sy = 0;
}
var _local4 = _l01[Math.round(_local6)][Math.round(_local3) - 1];
if ((_local4 == 0) || (_local4 == undefined)) {
item_xml.attributes.sy = 0;
item_xml.attributes._landed = true;
item_xml.attributes.y = Math.round(_local3);
redraw_tiles = true;
return(false);
}
var _local7 = _local6;
var _local5 = _local3 + item_xml.attributes.sy;
item_xml.attributes.sy = item_xml.attributes.sy - (_ts / 700);
if (item_xml.attributes.sy < ((-_ts) / 4)) {
item_xml.attributes.sy = (-_ts) / 4;
}
item_xml.attributes.y = _local5;
item_xml.attributes.item_mc._y = get_y_scr(_local5) + _map_y;
return(true);
}
function turn_obj(x, y) {
var _local54 = _lvls[x][y];
for (var _local53 in _objs) {
var _local4 = _objs[_local53];
var _local5 = _local4.attributes;
var _local7 = _local5.type / 1;
if (_local4.attributes.as > 0) {
var _local35 = _local4.attributes.as / 1;
var _local40 = new flash.filters.GlowFilter(16777215, 0.8, _local35, _local35, 3, 1, true, false);
_local4.attributes.as = _local35 - 1;
_local4.attributes.item_mc.filters = [_local40];
}
if (_local4.attributes.as == 0) {
_local4.attributes.as = -1;
_local4.attributes.item_mc.filters = [];
}
switch (_local7) {
case 1 :
break;
case 3 :
var _local32 = _local5.x / 1;
var _local31 = _local5.y / 1;
var _local43 = _local32 - x;
var _local42 = _local31 - y;
var _local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 0.5) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 5);
char_take_dmg(_local5.dmg / 1);
_root.snd.explosion_mine.start();
remove_obj(_local4);
}
break;
case 6 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 1) {
var _local41 = random(3) + 1;
_root.snd["body_impact" + _local41].start();
char_take_dmg(_local5.dmg / 1);
}
_fall(_local4);
if (!_obj_move(_local4)) {
_local4.attributes.speed = _local4.attributes.speed * -1;
_obj_move(_local4);
}
_local4.attributes.item_mc.body._rotation = _local4.attributes.item_mc.body._rotation + (_local4.attributes.speed * 40);
break;
case 10 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
var _local45 = _local4.attributes.st / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if ((Math.round(_local31) == y) && (_local45 == 1)) {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
_local4.attributes.st = 3;
_local4.attributes._cfame = 1;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
_local45 = _local4.attributes.st / 1;
switch (_local45) {
case 3 :
break;
case 4 :
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
var _local18 = _local4.attributes.dmg / 1;
var _local21 = [(_local32 / 1) + (_local4.attributes.speed * 6), _local31 - (20 / _ts)];
var _local19 = [_local4.attributes.speed * 3, 0];
var _local16 = [0, 0];
shoot(202, _local18, _local21, _local19, _local16, [false, false]);
break;
case 5 :
break;
case 10 :
if (_local4.attributes.item_mc.body.body._currentframe != 2) {
break;
}
var _local9 = (_local43 * 100) / 5;
if ((_local9 < 0) && (_local9 < -100)) {
_local9 = -100;
}
if ((_local9 > 0) && (_local9 > 100)) {
_local9 = 100;
}
_root.snd.death_marine.setPan(_local9);
_root.snd.death_marine.start();
}
break;
case 11 :
if (_local4.attributes.st == undefined) {
_local4.attributes.st = 1;
}
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
switch (_local45) {
case 1 :
if (Math.random() > 0.95) {
_local4.attributes.st = 2;
if (Math.random() > 0.2) {
_local4.attributes.speed = _local4.attributes.speed * -1;
}
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
break;
case 2 :
_move(_local4);
}
break;
case 12 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local4.attributes.tar_x == undefined) {
if ((Math.round(_local31) == y) && (_local45 != 10)) {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
}
} else {
if (_local39 < 1) {
obj_die(_local4);
break;
}
_local43 = _local32 - (_local4.attributes.tar_x / 1);
_local42 = _local31 - (_local4.attributes.tar_y / 1);
_local39 = Math.abs(_local43) + Math.abs(_local42);
}
if (_local39 < 1) {
obj_die(_local4);
} else {
_fall(_local4);
_local45 = _local4.attributes.st / 1;
switch (_local45) {
case 1 :
_local4.attributes.st = 2;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 2 :
if (_obj_move(_local4)) {
break;
}
_local4.attributes.speed = _local4.attributes.speed * -1;
_obj_move(_local4);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local4.attributes.kam != true) {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
}
_local45 = _local4.attributes.st / 1;
if ((_local45 == 1) && (Math.round(_local31) == y)) {
_local4.attributes.st = 2;
_local45 = 2;
_local4.attributes.kam = true;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
} else if (((_local45 == 1) && (Math.abs(_local43) < 5)) && (_local42 > 0)) {
_local4.attributes.st = 3;
_local45 = 3;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
switch (_local45) {
case 1 :
break;
case 2 :
if (_local42 != 0) {
if ((-Math.abs(Math.round(_local43))) == Math.round(_local42)) {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
_local4.attributes.st = 14;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 2;
_local21 = [(_local32 / 1) + _local17, _local31 + (20 / _ts)];
_local19 = [_local17, Math.abs(_local17)];
_local16 = [0, 0];
shoot(202, _local18, _local21, _local19, _local16, [false, false]);
break;
}
}
_move(_local4);
if ((Math.round(_local31) == y) && (_local4.attributes.item_mc.body.body._currentframe == 8)) {
if (Math.random() > 0.4) {
if (((_local4.attributes.speed > 0) && (_local43 < 0)) || ((_local4.attributes.speed < 0) && (_local43 > 0))) {
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 3;
_local21 = [(_local32 / 1) + (_local17 * 2), _local31 - (10 / _ts)];
_local19 = [_local17, 0];
_local16 = [0, 0];
shoot(202, _local18, _local21, _local19, _local16, [false, false]);
}
}
}
break;
case 3 :
break;
case 4 :
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
_root.snd.grenade_launch.start();
var _local6 = new XML("<aim />");
_local6.firstChild.attributes.type = 201;
_local6.firstChild.attributes.x = _local32;
_local6.firstChild.attributes.y = _local31;
_local6.firstChild.attributes.ty = y;
_local6.firstChild.attributes.sx = (-_local43) / 15;
_local6.firstChild.attributes.sy = _ts / 200;
_local6.firstChild.attributes.tx = _local32;
_local6.firstChild.attributes.item_mc = "";
_local6.firstChild.attributes.dmg = _local4.attributes.dmg;
add_obj(_local6.firstChild);
break;
case 10 :
if (_local4.attributes.item_mc.body.body._currentframe == 1) {
_local9 = (_local43 * 100) / 5;
if ((_local9 < 0) && (_local9 < -100)) {
_local9 = -100;
}
if ((_local9 > 0) && (_local9 > 100)) {
_local9 = 100;
}
_root.snd.death_marine.setPan(_local9);
_root.snd.death_marine.start();
}
break;
case 16 :
if (!((_local39 < _local4.attributes.hide_range) && (Math.round(_local31) == y))) {
break;
}
_local4.attributes.st = 17;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
var _local46 = _local4.attributes.item_mc._x - _char_x;
var _local25 = (_local4.attributes.item_mc._y - (_game_height - _char_y)) + _ts;
if (Math.abs(_local46) < _ts) {
if (Math.abs(_local25) < _ts) {
char_take_dmg(_local4.attributes.dmg / 1);
}
}
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (_move(_local4)) {
_local4.attributes.st = 2;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
} else {
_local4.attributes.st = 15;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 2 :
var _local48 = _fall(_local4);
if (!_local48) {
var _local27 = false;
if (_local25 < 0) {
_local27 = _obj_move(_local4);
} else {
_local27 = _move(_local4);
}
if (!_local27) {
_local4.attributes.st = 15;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
}
} else {
_local4.attributes.st = 9;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 9 :
_local48 = _fall(_local4);
if (!_local48) {
_local4.attributes.st = 1;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 16 :
if (Math.abs(_local25) >= _ts) {
break;
}
_local4.attributes.st = 17;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
switch (_local45) {
case 1 :
if (_local4.attributes.toshoot == undefined) {
_local4.attributes.toshoot = 5;
}
if (_local4.attributes.toshoot <= 0) {
_local4.attributes.toshoot = 30;
if (Math.random() > 0.4) {
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 3;
_local21 = [(_local32 / 1) + (_local17 * 2), _local31 + (0 / _ts)];
_local19 = [_local17, 0];
_local16 = [0, 0];
shoot(202, _local18, _local21, _local19, _local16, [false, false]);
}
} else {
_local4.attributes.toshoot--;
}
break;
case 16 :
if (!((_local39 < _local4.attributes.hide_range) && (Math.round(_local31) == y))) {
break;
}
_local4.attributes.st = 17;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (!(_local45 === 1)) {
} else {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.95) {
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 2.5;
_local21 = [x + ((Math.random() - 0.5) * 1), y + 5];
_local19 = [(Math.random() - 0.5) / 4, -Math.abs(_local17)];
_local16 = [0, 0];
shoot(198, _local18, _local21, _local19, _local16, [true, false]);
}
}
break;
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
var _local28 = get_x_scr(_local32) - _map_x;
var _local26 = get_y_scr(_local31) + _map_y;
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
var _local20 = get_close_tar([_local32, _local31]);
var _local47 = _local20[0];
_local43 = _local20[1][0];
_local42 = _local20[1][1];
_local39 = _local20[1][2];
if ((Math.abs(_local39) < 0.5) && (_local47.attributes.st != 16)) {
if (_local47.nodeName == "ppl") {
_root.snd["body_impact" + _local41].start();
} else {
_root.snd["object_impact" + _local41].start();
}
var _local44 = obj_take_dmg(_local47, _local4.attributes.dmg);
if (_local44 <= 0) {
if (_local47.nodeName == "ppl") {
_enemy_kiled++;
trace("__enemy_kiled:" + _enemy_kiled);
}
} else {
_local47.attributes.as = 5;
var _local35 = _local47.attributes.as;
var _local40 = new flash.filters.GlowFilter(16777215, 0.8, _local35, _local35, 3, 1, true, false);
_local47.attributes.item_mc.filters = [_local40];
}
remove_obj(_local4);
} else {
_local4.attributes.sx = _local4.attributes.sx * 1.05;
_local4.attributes.dmg = _local4.attributes.dmg * 0.99;
_local4.attributes.item_mc._xscale = _local4.attributes.item_mc._xscale * 0.98;
_local4.attributes.item_mc._yscale = _local4.attributes.item_mc._yscale * 0.98;
_local4.attributes.sy = ((-_local42) / 20) + (_local4.attributes.sy / 2);
_local4.attributes.ttl--;
if (_local4.attributes.ttl < 0) {
remove_obj(_local4);
} else {
break;
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local4.attributes.sy = _local4.attributes.sy + _local4.attributes.asy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
_local28 = get_x_scr(_local32) - _map_x;
_local26 = get_y_scr(_local31) + _map_y;
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
var _local34 = _local4.attributes.exp_range / 1;
_local47 = get_touch_smt([_local32, _local31], 1);
if (_local47 != -1) {
mass_dmg([_local32, _local31], _local34 * _ts, _local4.attributes.dmg / 1);
mass_exp([_local32, _local31], _local34);
remove_obj(_local4);
}
break;
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
if (Math.ceil(_local31) < Math.ceil(_local4.attributes.ty)) {
if ((_l01[Math.round(_local32)][Math.round(_local31)] == 0) || (_l01[Math.round(_local32)][Math.round(_local31)] == undefined)) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31 + 1), 9);
_root.snd.explosion_grenade.start();
_local39 = get_char_d(_local4.attributes.item_mc);
if (_local39 < 50) {
char_take_dmg(_local4.attributes.dmg / 1);
}
remove_obj(_local4);
break;
}
} else {
_local4.attributes.sy = _local4.attributes.sy - (_ts / 700);
_local28 = get_x_scr(_local32) - _map_x;
_local26 = get_y_scr(_local31) + _map_y;
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
break;
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local4.attributes.sx = _local4.attributes.sx + _local4.attributes.asx;
_local4.attributes.sy = _local4.attributes.sy + _local4.attributes.asy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
_local28 = get_x_scr(_local32) - _map_x;
_local26 = get_y_scr(_local31) + _map_y;
var _local22 = {x:_local28, y:_local26};
_root.main.localToGlobal(_local22);
var _local8 = _local22.x;
var _local51 = _game_height - _local22.y;
var _local15 = _local4.attributes.lpx;
_local4.attributes.lpx = _local8;
if ((_local51 < _char_u) && (_local51 > _char_y)) {
if (((_local8 > _char_l) && (_local8 < _char_r)) || ((_local15 != undefined) && ((((_local8 < _char_x) && (_char_x < _local15)) && (_local8 < _local15)) || (((_local15 < _char_x) && (_char_x < _local8)) && (_local15 < _local8))))) {
if (!char_get_in_shadow()) {
var _local41 = random(3) + 1;
_root.snd["body_impact" + _local41].start();
char_take_dmg(_local4.attributes.dmg);
if (_local7 == 198) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 11);
} else {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 4);
}
remove_obj(_local4);
break;
}
}
} else {
if (_local4.attributes.hx) {
var _local33 = _char_x;
var _local14 = 1;
if (_local33 > _local8) {
_local4.attributes.sx = _local4.attributes.sx + (_local14 / _ts);
} else if (_local33 < _local8) {
_local4.attributes.sx = _local4.attributes.sx - (_local14 / _ts);
}
}
if (_local4.attributes.hy) {
var _local23 = _char_y + ((_char_u + _char_y) / 4);
var _local24 = Math.abs(_local23 - _local51);
var _local14 = 1;
if (_local24 > 100) {
_local14++;
}
if (_local24 > 300) {
_local14++;
}
if (_local24 > 500) {
_local14 = _local14 + 2;
}
if (_local23 > _local51) {
_local4.attributes.sy = _local4.attributes.sy + (_local14 / _ts);
} else if (_local23 < _local51) {
_local4.attributes.sy = _local4.attributes.sy - (_local14 / _ts);
}
}
if ((_local7 == 199) || (_local7 == 198)) {
add_shoot_trace([_local4.attributes.item_mc._x + _map_x, _local4.attributes.item_mc._y - _map_y], [_local28 + _map_x, _local26 - _map_y], 8, 1);
}
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
_local4.attributes.ttl--;
if (_local4.attributes.ttl < 0) {
remove_obj(_local4);
} else {
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (_local39 < 3) {
if ((_local45 == 1) or (_local45 == 2)) {
_local4.attributes.st = 4;
_local45 = 4;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
} else if (_local45 == 4) {
_local4.attributes.st = 1;
_local45 = 1;
}
switch (_local45) {
case 1 :
if (Math.random() > 0.95) {
_local4.attributes.st = 2;
if (Math.random() > 0.2) {
_local4.attributes.speed = _local4.attributes.speed * -1;
}
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
break;
case 2 :
_move(_local4);
break;
case 4 :
char_take_dmg(_local4.attributes.dmg);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 0.5) {
if (_char_as <= 0) {
__CCondition_add({id:CONST_CON_DoT, var0:_local5.dmg / 1, ttl:_local5.time / 1});
}
char_take_dmg(0);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 0.5) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 13);
var _local30 = _local5.exit_xy.split(",");
var _local38 = _local30[0] - x;
var _local36 = _local30[1] - y;
_map_x = _map_x + (_local38 * _ts);
_map_y = _map_y + (_local36 * _ts);
redraw_tiles = true;
add_explosion(get_x_scr(x + _local38), get_y_scr(y + _local36), 13);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
var _local29 = 40;
if (_local4.attributes.tts == undefined) {
_local4.attributes.tts = 60;
_local4.attributes.ppl_to_call = _local29;
}
if (_local4.attributes.tts < 0) {
if (Math.random() > 0.2) {
var _local10 = new XML("<ppl name=\"Fanatic(lvl:0)\" type=\"12\" hp=\"30\" speed=\"0.09\" tall=\"7\" score=\"50\" exp_range=\"1\"/>");
_local10.firstChild.attributes.st = 1;
_local10.firstChild.attributes.id = "temp";
_local10.firstChild.attributes.dmg = _local4.attributes.hp / 10;
_local10.firstChild.attributes.tar_x = _local32;
_local10.firstChild.attributes.tar_y = _local31;
_local10.firstChild.attributes.x = random(maxtiles_x);
_local10.firstChild.attributes.y = 9;
_local10.firstChild.attributes.armor = 0;
_local10.firstChild.attributes.item_mc = "";
if (Math.random() > 0.5) {
_local10.firstChild.attributes.speed = _local10.firstChild.attributes.speed * -1;
}
_local10.firstChild.attributes.speed = _local10.firstChild.attributes.speed * ((Math.random() / 2) + 0.9);
add_obj(_local10.firstChild);
_local4.attributes.ppl_to_call--;
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, Math.round((_local4.attributes.ppl_to_call * 100) / _local29) + "%");
if (_local4.attributes.ppl_to_call < 0) {
win_game();
}
}
_local4.attributes.tts = 10 + ((30 * _local4.attributes.ppl_to_call) / _local29);
} else {
_local4.attributes.tts--;
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.5) {
_local4.attributes.st = 3;
} else {
_local4.attributes.st = 11;
_root.snd.howl_boss1.start();
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 3 :
_local4.attributes.normal_speed = _local4.attributes.speed;
_move(_local4);
break;
case 4 :
_local4.attributes.speed = _local4.attributes.speed * 1.1;
_move(_local4);
_local22 = {x:_local4.attributes.item_mc._x, y:_local4.attributes.item_mc._y};
_root.main.localToGlobal(_local22);
_local8 = _local22.x;
_local51 = _game_height - _local22.y;
_local15 = _local4.attributes.lpx;
_local4.attributes.lpx = _local8;
if (Math.round(_local31) == y) {
if (((_local8 > _char_l) && (_local8 < _char_r)) || ((_local15 != undefined) && ((((_local8 < _char_x) && (_char_x < _local15)) && (_local8 < _local15)) || (((_local15 < _char_x) && (_char_x < _local8)) && (_local15 < _local8))))) {
var _local41 = random(3) + 1;
_root.snd["body_impact" + _local41].start();
char_take_dmg(_local4.attributes.dmg / 1);
add_root_explosion(_char_x, _local22.y + (_ts / 4), 9);
}
}
if (((_local43 < -2) && (_local4.attributes.speed < 0)) || ((_local43 > 2) && (_local4.attributes.speed > 0))) {
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 5 :
_local4.attributes.speed = _local4.attributes.normal_speed;
_move(_local4);
break;
case 12 :
if ((_local4.attributes.item_mc.body.body._currentframe % 4) != 0) {
break;
}
var _local41 = random(4) + 1;
_root.snd["rocket" + _local41].start();
_local18 = _local4.attributes.dmg / 1;
_local21 = [_local32, _local31];
_local19 = [(-_local43) / 20, (-_local42) / 20];
_local16 = [0, 0];
shoot(204, _local18, _local21, _local19, _local16, [false, false]);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if ((_local39 < 1) && (_local45 < 15)) {
char_take_dmg(_local4.attributes.dmg / 1);
_local4.attributes.st = 18;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
} else {
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.5) {
_local4.attributes.st = 3;
} else if (Math.random() > 0.5) {
_local4.attributes.st = 11;
} else {
_local4.attributes.st = 15;
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 4 :
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
_local21 = [(_local32 / 1) + (_local4.attributes.speed * 5), _local31 + (13 / _ts)];
_local19 = [_local4.attributes.speed * 2.5, 0];
_local16 = [0, 0];
shoot(199, _local18, _local21, _local19, _local16, [false, true]);
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 12 :
var _local37 = 1;
if (_local43 > 0) {
_local37 = _local37 * -1;
}
var _local10 = new XML("<ppl name=\"Infantry\" type=\"13\" hp=\"30\" hpmax=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\"/>");
_local10.firstChild.attributes.st = 17;
_local10.firstChild.attributes.id = "temp";
_local10.firstChild.attributes.x = _local32 + _local37;
_local10.firstChild.attributes.y = _local31;
_local10.firstChild.attributes.armor = 0;
_local10.firstChild.attributes.item_mc = "";
add_obj(_local10.firstChild);
_root.snd.howl_boss1.start();
_local4.attributes.st = 1;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 16 :
_local4.attributes.x = x;
_local4.attributes.item_mc._x = get_x_scr(x) - _map_x;
_local4.attributes.st = 17;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (!(_local45 === 1)) {
} else {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.95) {
var _local12 = 0;
while (_local12 < 3) {
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 2.5;
_local21 = [x + ((Math.random() - 0.5) * 6), y + 5];
_local19 = [(Math.random() - 0.5) / 2, -Math.abs(_local17)];
_local16 = [0, 0];
shoot(198, _local18, _local21, _local19, _local16, [true, false]);
_local12++;
}
}
}
break;
_fall(_local4);
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 >= 0.5) {
break;
}
switch (_local7) {
case 205 :
__CCondition_add({id:CONST_CON_HoT, var0:_local4.attributes.dmg / 1});
break;
case 206 :
__CCondition_add({id:CONST_CON_Speed, var0:1.3});
break;
case 207 :
_char_as = 40;
break;
case 300 :
break;
case 301 :
weap_set_enebled(1);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(1));
break;
case 302 :
weap_set_enebled(2);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(2));
break;
case 303 :
weap_set_enebled(3);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(3));
break;
case 304 :
weap_set_enebled(4);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(4));
break;
case 305 :
weap_set_enebled(5);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(5));
break;
case 306 :
weap_set_enebled(6);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(6));
break;
case 310 :
add_char_lives(1);
break;
case 311 :
__CCondition_add({id:CONST_CON_Armor, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 312 :
__CCondition_add({id:CONST_CON_Firepower, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 313 :
__CCondition_add({id:CONST_CON_DeSpeed, var0:2});
break;
case 321 :
_char_historys++;
break;
case 322 :
_char_historys++;
break;
case 323 :
if (_char_capsules_per_lvl[_current_map]) {
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, _root.get_txt("already_taken_here"));
} else {
_char_capsules_per_lvl[_current_map] = true;
_char_capsule++;
_face_mc.c_dtxt.text = "x" + _char_capsule;
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, "+5% DMG");
}
}
_char_ab = 5;
if (_local4.attributes.score != undefined) {
_bonuses_scores = _bonuses_scores + (_local4.attributes.score / 1);
}
add_explosion(get_x_scr(_local32), get_y_scr(_local31), _local7);
remove_obj(_local4);
if (_root.snd["pickup_" + _local7] == undefined) {
_root.snd.pickup_206.start();
} else {
_root.snd["pickup_" + _local7].start();
}
refresh_info_tip();
}
}
}
}
}
}
}
case 13 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local4.attributes.kam != true) {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
}
_local45 = _local4.attributes.st / 1;
if ((_local45 == 1) && (Math.round(_local31) == y)) {
_local4.attributes.st = 2;
_local45 = 2;
_local4.attributes.kam = true;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
} else if (((_local45 == 1) && (Math.abs(_local43) < 5)) && (_local42 > 0)) {
_local4.attributes.st = 3;
_local45 = 3;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
switch (_local45) {
case 1 :
break;
case 2 :
if (_local42 != 0) {
if ((-Math.abs(Math.round(_local43))) == Math.round(_local42)) {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
_local4.attributes.st = 14;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 2;
_local21 = [(_local32 / 1) + _local17, _local31 + (20 / _ts)];
_local19 = [_local17, Math.abs(_local17)];
_local16 = [0, 0];
shoot(202, _local18, _local21, _local19, _local16, [false, false]);
break;
}
}
_move(_local4);
if ((Math.round(_local31) == y) && (_local4.attributes.item_mc.body.body._currentframe == 8)) {
if (Math.random() > 0.4) {
if (((_local4.attributes.speed > 0) && (_local43 < 0)) || ((_local4.attributes.speed < 0) && (_local43 > 0))) {
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 3;
_local21 = [(_local32 / 1) + (_local17 * 2), _local31 - (10 / _ts)];
_local19 = [_local17, 0];
_local16 = [0, 0];
shoot(202, _local18, _local21, _local19, _local16, [false, false]);
}
}
}
break;
case 3 :
break;
case 4 :
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
_root.snd.grenade_launch.start();
var _local6 = new XML("<aim />");
_local6.firstChild.attributes.type = 201;
_local6.firstChild.attributes.x = _local32;
_local6.firstChild.attributes.y = _local31;
_local6.firstChild.attributes.ty = y;
_local6.firstChild.attributes.sx = (-_local43) / 15;
_local6.firstChild.attributes.sy = _ts / 200;
_local6.firstChild.attributes.tx = _local32;
_local6.firstChild.attributes.item_mc = "";
_local6.firstChild.attributes.dmg = _local4.attributes.dmg;
add_obj(_local6.firstChild);
break;
case 10 :
if (_local4.attributes.item_mc.body.body._currentframe == 1) {
_local9 = (_local43 * 100) / 5;
if ((_local9 < 0) && (_local9 < -100)) {
_local9 = -100;
}
if ((_local9 > 0) && (_local9 > 100)) {
_local9 = 100;
}
_root.snd.death_marine.setPan(_local9);
_root.snd.death_marine.start();
}
break;
case 16 :
if (!((_local39 < _local4.attributes.hide_range) && (Math.round(_local31) == y))) {
break;
}
_local4.attributes.st = 17;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 14 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
var _local46 = _local4.attributes.item_mc._x - _char_x;
var _local25 = (_local4.attributes.item_mc._y - (_game_height - _char_y)) + _ts;
if (Math.abs(_local46) < _ts) {
if (Math.abs(_local25) < _ts) {
char_take_dmg(_local4.attributes.dmg / 1);
}
}
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (_move(_local4)) {
_local4.attributes.st = 2;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
} else {
_local4.attributes.st = 15;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 2 :
var _local48 = _fall(_local4);
if (!_local48) {
var _local27 = false;
if (_local25 < 0) {
_local27 = _obj_move(_local4);
} else {
_local27 = _move(_local4);
}
if (!_local27) {
_local4.attributes.st = 15;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
}
} else {
_local4.attributes.st = 9;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 9 :
_local48 = _fall(_local4);
if (!_local48) {
_local4.attributes.st = 1;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 16 :
if (Math.abs(_local25) >= _ts) {
break;
}
_local4.attributes.st = 17;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 15 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
switch (_local45) {
case 1 :
if (_local4.attributes.toshoot == undefined) {
_local4.attributes.toshoot = 5;
}
if (_local4.attributes.toshoot <= 0) {
_local4.attributes.toshoot = 30;
if (Math.random() > 0.4) {
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 3;
_local21 = [(_local32 / 1) + (_local17 * 2), _local31 + (0 / _ts)];
_local19 = [_local17, 0];
_local16 = [0, 0];
shoot(202, _local18, _local21, _local19, _local16, [false, false]);
}
} else {
_local4.attributes.toshoot--;
}
break;
case 16 :
if (!((_local39 < _local4.attributes.hide_range) && (Math.round(_local31) == y))) {
break;
}
_local4.attributes.st = 17;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 16 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (!(_local45 === 1)) {
} else {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.95) {
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 2.5;
_local21 = [x + ((Math.random() - 0.5) * 1), y + 5];
_local19 = [(Math.random() - 0.5) / 4, -Math.abs(_local17)];
_local16 = [0, 0];
shoot(198, _local18, _local21, _local19, _local16, [true, false]);
}
}
break;
case 152 :
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
var _local28 = get_x_scr(_local32) - _map_x;
var _local26 = get_y_scr(_local31) + _map_y;
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
var _local20 = get_close_tar([_local32, _local31]);
var _local47 = _local20[0];
_local43 = _local20[1][0];
_local42 = _local20[1][1];
_local39 = _local20[1][2];
if ((Math.abs(_local39) < 0.5) && (_local47.attributes.st != 16)) {
if (_local47.nodeName == "ppl") {
_root.snd["body_impact" + _local41].start();
} else {
_root.snd["object_impact" + _local41].start();
}
var _local44 = obj_take_dmg(_local47, _local4.attributes.dmg);
if (_local44 <= 0) {
if (_local47.nodeName == "ppl") {
_enemy_kiled++;
trace("__enemy_kiled:" + _enemy_kiled);
}
} else {
_local47.attributes.as = 5;
var _local35 = _local47.attributes.as;
var _local40 = new flash.filters.GlowFilter(16777215, 0.8, _local35, _local35, 3, 1, true, false);
_local47.attributes.item_mc.filters = [_local40];
}
remove_obj(_local4);
} else {
_local4.attributes.sx = _local4.attributes.sx * 1.05;
_local4.attributes.dmg = _local4.attributes.dmg * 0.99;
_local4.attributes.item_mc._xscale = _local4.attributes.item_mc._xscale * 0.98;
_local4.attributes.item_mc._yscale = _local4.attributes.item_mc._yscale * 0.98;
_local4.attributes.sy = ((-_local42) / 20) + (_local4.attributes.sy / 2);
_local4.attributes.ttl--;
if (_local4.attributes.ttl < 0) {
remove_obj(_local4);
} else {
break;
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local4.attributes.sy = _local4.attributes.sy + _local4.attributes.asy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
_local28 = get_x_scr(_local32) - _map_x;
_local26 = get_y_scr(_local31) + _map_y;
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
var _local34 = _local4.attributes.exp_range / 1;
_local47 = get_touch_smt([_local32, _local31], 1);
if (_local47 != -1) {
mass_dmg([_local32, _local31], _local34 * _ts, _local4.attributes.dmg / 1);
mass_exp([_local32, _local31], _local34);
remove_obj(_local4);
}
break;
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
if (Math.ceil(_local31) < Math.ceil(_local4.attributes.ty)) {
if ((_l01[Math.round(_local32)][Math.round(_local31)] == 0) || (_l01[Math.round(_local32)][Math.round(_local31)] == undefined)) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31 + 1), 9);
_root.snd.explosion_grenade.start();
_local39 = get_char_d(_local4.attributes.item_mc);
if (_local39 < 50) {
char_take_dmg(_local4.attributes.dmg / 1);
}
remove_obj(_local4);
break;
}
} else {
_local4.attributes.sy = _local4.attributes.sy - (_ts / 700);
_local28 = get_x_scr(_local32) - _map_x;
_local26 = get_y_scr(_local31) + _map_y;
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
break;
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local4.attributes.sx = _local4.attributes.sx + _local4.attributes.asx;
_local4.attributes.sy = _local4.attributes.sy + _local4.attributes.asy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
_local28 = get_x_scr(_local32) - _map_x;
_local26 = get_y_scr(_local31) + _map_y;
var _local22 = {x:_local28, y:_local26};
_root.main.localToGlobal(_local22);
var _local8 = _local22.x;
var _local51 = _game_height - _local22.y;
var _local15 = _local4.attributes.lpx;
_local4.attributes.lpx = _local8;
if ((_local51 < _char_u) && (_local51 > _char_y)) {
if (((_local8 > _char_l) && (_local8 < _char_r)) || ((_local15 != undefined) && ((((_local8 < _char_x) && (_char_x < _local15)) && (_local8 < _local15)) || (((_local15 < _char_x) && (_char_x < _local8)) && (_local15 < _local8))))) {
if (!char_get_in_shadow()) {
var _local41 = random(3) + 1;
_root.snd["body_impact" + _local41].start();
char_take_dmg(_local4.attributes.dmg);
if (_local7 == 198) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 11);
} else {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 4);
}
remove_obj(_local4);
break;
}
}
} else {
if (_local4.attributes.hx) {
var _local33 = _char_x;
var _local14 = 1;
if (_local33 > _local8) {
_local4.attributes.sx = _local4.attributes.sx + (_local14 / _ts);
} else if (_local33 < _local8) {
_local4.attributes.sx = _local4.attributes.sx - (_local14 / _ts);
}
}
if (_local4.attributes.hy) {
var _local23 = _char_y + ((_char_u + _char_y) / 4);
var _local24 = Math.abs(_local23 - _local51);
var _local14 = 1;
if (_local24 > 100) {
_local14++;
}
if (_local24 > 300) {
_local14++;
}
if (_local24 > 500) {
_local14 = _local14 + 2;
}
if (_local23 > _local51) {
_local4.attributes.sy = _local4.attributes.sy + (_local14 / _ts);
} else if (_local23 < _local51) {
_local4.attributes.sy = _local4.attributes.sy - (_local14 / _ts);
}
}
if ((_local7 == 199) || (_local7 == 198)) {
add_shoot_trace([_local4.attributes.item_mc._x + _map_x, _local4.attributes.item_mc._y - _map_y], [_local28 + _map_x, _local26 - _map_y], 8, 1);
}
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
_local4.attributes.ttl--;
if (_local4.attributes.ttl < 0) {
remove_obj(_local4);
} else {
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (_local39 < 3) {
if ((_local45 == 1) or (_local45 == 2)) {
_local4.attributes.st = 4;
_local45 = 4;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
} else if (_local45 == 4) {
_local4.attributes.st = 1;
_local45 = 1;
}
switch (_local45) {
case 1 :
if (Math.random() > 0.95) {
_local4.attributes.st = 2;
if (Math.random() > 0.2) {
_local4.attributes.speed = _local4.attributes.speed * -1;
}
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
break;
case 2 :
_move(_local4);
break;
case 4 :
char_take_dmg(_local4.attributes.dmg);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 0.5) {
if (_char_as <= 0) {
__CCondition_add({id:CONST_CON_DoT, var0:_local5.dmg / 1, ttl:_local5.time / 1});
}
char_take_dmg(0);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 0.5) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 13);
var _local30 = _local5.exit_xy.split(",");
var _local38 = _local30[0] - x;
var _local36 = _local30[1] - y;
_map_x = _map_x + (_local38 * _ts);
_map_y = _map_y + (_local36 * _ts);
redraw_tiles = true;
add_explosion(get_x_scr(x + _local38), get_y_scr(y + _local36), 13);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
var _local29 = 40;
if (_local4.attributes.tts == undefined) {
_local4.attributes.tts = 60;
_local4.attributes.ppl_to_call = _local29;
}
if (_local4.attributes.tts < 0) {
if (Math.random() > 0.2) {
var _local10 = new XML("<ppl name=\"Fanatic(lvl:0)\" type=\"12\" hp=\"30\" speed=\"0.09\" tall=\"7\" score=\"50\" exp_range=\"1\"/>");
_local10.firstChild.attributes.st = 1;
_local10.firstChild.attributes.id = "temp";
_local10.firstChild.attributes.dmg = _local4.attributes.hp / 10;
_local10.firstChild.attributes.tar_x = _local32;
_local10.firstChild.attributes.tar_y = _local31;
_local10.firstChild.attributes.x = random(maxtiles_x);
_local10.firstChild.attributes.y = 9;
_local10.firstChild.attributes.armor = 0;
_local10.firstChild.attributes.item_mc = "";
if (Math.random() > 0.5) {
_local10.firstChild.attributes.speed = _local10.firstChild.attributes.speed * -1;
}
_local10.firstChild.attributes.speed = _local10.firstChild.attributes.speed * ((Math.random() / 2) + 0.9);
add_obj(_local10.firstChild);
_local4.attributes.ppl_to_call--;
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, Math.round((_local4.attributes.ppl_to_call * 100) / _local29) + "%");
if (_local4.attributes.ppl_to_call < 0) {
win_game();
}
}
_local4.attributes.tts = 10 + ((30 * _local4.attributes.ppl_to_call) / _local29);
} else {
_local4.attributes.tts--;
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.5) {
_local4.attributes.st = 3;
} else {
_local4.attributes.st = 11;
_root.snd.howl_boss1.start();
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 3 :
_local4.attributes.normal_speed = _local4.attributes.speed;
_move(_local4);
break;
case 4 :
_local4.attributes.speed = _local4.attributes.speed * 1.1;
_move(_local4);
_local22 = {x:_local4.attributes.item_mc._x, y:_local4.attributes.item_mc._y};
_root.main.localToGlobal(_local22);
_local8 = _local22.x;
_local51 = _game_height - _local22.y;
_local15 = _local4.attributes.lpx;
_local4.attributes.lpx = _local8;
if (Math.round(_local31) == y) {
if (((_local8 > _char_l) && (_local8 < _char_r)) || ((_local15 != undefined) && ((((_local8 < _char_x) && (_char_x < _local15)) && (_local8 < _local15)) || (((_local15 < _char_x) && (_char_x < _local8)) && (_local15 < _local8))))) {
var _local41 = random(3) + 1;
_root.snd["body_impact" + _local41].start();
char_take_dmg(_local4.attributes.dmg / 1);
add_root_explosion(_char_x, _local22.y + (_ts / 4), 9);
}
}
if (((_local43 < -2) && (_local4.attributes.speed < 0)) || ((_local43 > 2) && (_local4.attributes.speed > 0))) {
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 5 :
_local4.attributes.speed = _local4.attributes.normal_speed;
_move(_local4);
break;
case 12 :
if ((_local4.attributes.item_mc.body.body._currentframe % 4) != 0) {
break;
}
var _local41 = random(4) + 1;
_root.snd["rocket" + _local41].start();
_local18 = _local4.attributes.dmg / 1;
_local21 = [_local32, _local31];
_local19 = [(-_local43) / 20, (-_local42) / 20];
_local16 = [0, 0];
shoot(204, _local18, _local21, _local19, _local16, [false, false]);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if ((_local39 < 1) && (_local45 < 15)) {
char_take_dmg(_local4.attributes.dmg / 1);
_local4.attributes.st = 18;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
} else {
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.5) {
_local4.attributes.st = 3;
} else if (Math.random() > 0.5) {
_local4.attributes.st = 11;
} else {
_local4.attributes.st = 15;
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 4 :
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
_local21 = [(_local32 / 1) + (_local4.attributes.speed * 5), _local31 + (13 / _ts)];
_local19 = [_local4.attributes.speed * 2.5, 0];
_local16 = [0, 0];
shoot(199, _local18, _local21, _local19, _local16, [false, true]);
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 12 :
var _local37 = 1;
if (_local43 > 0) {
_local37 = _local37 * -1;
}
var _local10 = new XML("<ppl name=\"Infantry\" type=\"13\" hp=\"30\" hpmax=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\"/>");
_local10.firstChild.attributes.st = 17;
_local10.firstChild.attributes.id = "temp";
_local10.firstChild.attributes.x = _local32 + _local37;
_local10.firstChild.attributes.y = _local31;
_local10.firstChild.attributes.armor = 0;
_local10.firstChild.attributes.item_mc = "";
add_obj(_local10.firstChild);
_root.snd.howl_boss1.start();
_local4.attributes.st = 1;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 16 :
_local4.attributes.x = x;
_local4.attributes.item_mc._x = get_x_scr(x) - _map_x;
_local4.attributes.st = 17;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (!(_local45 === 1)) {
} else {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.95) {
var _local12 = 0;
while (_local12 < 3) {
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 2.5;
_local21 = [x + ((Math.random() - 0.5) * 6), y + 5];
_local19 = [(Math.random() - 0.5) / 2, -Math.abs(_local17)];
_local16 = [0, 0];
shoot(198, _local18, _local21, _local19, _local16, [true, false]);
_local12++;
}
}
}
break;
_fall(_local4);
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 >= 0.5) {
break;
}
switch (_local7) {
case 205 :
__CCondition_add({id:CONST_CON_HoT, var0:_local4.attributes.dmg / 1});
break;
case 206 :
__CCondition_add({id:CONST_CON_Speed, var0:1.3});
break;
case 207 :
_char_as = 40;
break;
case 300 :
break;
case 301 :
weap_set_enebled(1);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(1));
break;
case 302 :
weap_set_enebled(2);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(2));
break;
case 303 :
weap_set_enebled(3);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(3));
break;
case 304 :
weap_set_enebled(4);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(4));
break;
case 305 :
weap_set_enebled(5);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(5));
break;
case 306 :
weap_set_enebled(6);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(6));
break;
case 310 :
add_char_lives(1);
break;
case 311 :
__CCondition_add({id:CONST_CON_Armor, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 312 :
__CCondition_add({id:CONST_CON_Firepower, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 313 :
__CCondition_add({id:CONST_CON_DeSpeed, var0:2});
break;
case 321 :
_char_historys++;
break;
case 322 :
_char_historys++;
break;
case 323 :
if (_char_capsules_per_lvl[_current_map]) {
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, _root.get_txt("already_taken_here"));
} else {
_char_capsules_per_lvl[_current_map] = true;
_char_capsule++;
_face_mc.c_dtxt.text = "x" + _char_capsule;
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, "+5% DMG");
}
}
_char_ab = 5;
if (_local4.attributes.score != undefined) {
_bonuses_scores = _bonuses_scores + (_local4.attributes.score / 1);
}
add_explosion(get_x_scr(_local32), get_y_scr(_local31), _local7);
remove_obj(_local4);
if (_root.snd["pickup_" + _local7] == undefined) {
_root.snd.pickup_206.start();
} else {
_root.snd["pickup_" + _local7].start();
}
refresh_info_tip();
}
}
}
}
}
}
case 150 :
case 151 :
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local4.attributes.sy = _local4.attributes.sy + _local4.attributes.asy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
_local28 = get_x_scr(_local32) - _map_x;
_local26 = get_y_scr(_local31) + _map_y;
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
var _local34 = _local4.attributes.exp_range / 1;
_local47 = get_touch_smt([_local32, _local31], 1);
if (_local47 != -1) {
mass_dmg([_local32, _local31], _local34 * _ts, _local4.attributes.dmg / 1);
mass_exp([_local32, _local31], _local34);
remove_obj(_local4);
}
break;
case 201 :
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
if (Math.ceil(_local31) < Math.ceil(_local4.attributes.ty)) {
if ((_l01[Math.round(_local32)][Math.round(_local31)] == 0) || (_l01[Math.round(_local32)][Math.round(_local31)] == undefined)) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31 + 1), 9);
_root.snd.explosion_grenade.start();
_local39 = get_char_d(_local4.attributes.item_mc);
if (_local39 < 50) {
char_take_dmg(_local4.attributes.dmg / 1);
}
remove_obj(_local4);
break;
}
} else {
_local4.attributes.sy = _local4.attributes.sy - (_ts / 700);
_local28 = get_x_scr(_local32) - _map_x;
_local26 = get_y_scr(_local31) + _map_y;
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
break;
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local4.attributes.sx = _local4.attributes.sx + _local4.attributes.asx;
_local4.attributes.sy = _local4.attributes.sy + _local4.attributes.asy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
_local28 = get_x_scr(_local32) - _map_x;
_local26 = get_y_scr(_local31) + _map_y;
var _local22 = {x:_local28, y:_local26};
_root.main.localToGlobal(_local22);
var _local8 = _local22.x;
var _local51 = _game_height - _local22.y;
var _local15 = _local4.attributes.lpx;
_local4.attributes.lpx = _local8;
if ((_local51 < _char_u) && (_local51 > _char_y)) {
if (((_local8 > _char_l) && (_local8 < _char_r)) || ((_local15 != undefined) && ((((_local8 < _char_x) && (_char_x < _local15)) && (_local8 < _local15)) || (((_local15 < _char_x) && (_char_x < _local8)) && (_local15 < _local8))))) {
if (!char_get_in_shadow()) {
var _local41 = random(3) + 1;
_root.snd["body_impact" + _local41].start();
char_take_dmg(_local4.attributes.dmg);
if (_local7 == 198) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 11);
} else {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 4);
}
remove_obj(_local4);
break;
}
}
} else {
if (_local4.attributes.hx) {
var _local33 = _char_x;
var _local14 = 1;
if (_local33 > _local8) {
_local4.attributes.sx = _local4.attributes.sx + (_local14 / _ts);
} else if (_local33 < _local8) {
_local4.attributes.sx = _local4.attributes.sx - (_local14 / _ts);
}
}
if (_local4.attributes.hy) {
var _local23 = _char_y + ((_char_u + _char_y) / 4);
var _local24 = Math.abs(_local23 - _local51);
var _local14 = 1;
if (_local24 > 100) {
_local14++;
}
if (_local24 > 300) {
_local14++;
}
if (_local24 > 500) {
_local14 = _local14 + 2;
}
if (_local23 > _local51) {
_local4.attributes.sy = _local4.attributes.sy + (_local14 / _ts);
} else if (_local23 < _local51) {
_local4.attributes.sy = _local4.attributes.sy - (_local14 / _ts);
}
}
if ((_local7 == 199) || (_local7 == 198)) {
add_shoot_trace([_local4.attributes.item_mc._x + _map_x, _local4.attributes.item_mc._y - _map_y], [_local28 + _map_x, _local26 - _map_y], 8, 1);
}
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
_local4.attributes.ttl--;
if (_local4.attributes.ttl < 0) {
remove_obj(_local4);
} else {
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (_local39 < 3) {
if ((_local45 == 1) or (_local45 == 2)) {
_local4.attributes.st = 4;
_local45 = 4;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
} else if (_local45 == 4) {
_local4.attributes.st = 1;
_local45 = 1;
}
switch (_local45) {
case 1 :
if (Math.random() > 0.95) {
_local4.attributes.st = 2;
if (Math.random() > 0.2) {
_local4.attributes.speed = _local4.attributes.speed * -1;
}
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
break;
case 2 :
_move(_local4);
break;
case 4 :
char_take_dmg(_local4.attributes.dmg);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 0.5) {
if (_char_as <= 0) {
__CCondition_add({id:CONST_CON_DoT, var0:_local5.dmg / 1, ttl:_local5.time / 1});
}
char_take_dmg(0);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 0.5) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 13);
var _local30 = _local5.exit_xy.split(",");
var _local38 = _local30[0] - x;
var _local36 = _local30[1] - y;
_map_x = _map_x + (_local38 * _ts);
_map_y = _map_y + (_local36 * _ts);
redraw_tiles = true;
add_explosion(get_x_scr(x + _local38), get_y_scr(y + _local36), 13);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
var _local29 = 40;
if (_local4.attributes.tts == undefined) {
_local4.attributes.tts = 60;
_local4.attributes.ppl_to_call = _local29;
}
if (_local4.attributes.tts < 0) {
if (Math.random() > 0.2) {
var _local10 = new XML("<ppl name=\"Fanatic(lvl:0)\" type=\"12\" hp=\"30\" speed=\"0.09\" tall=\"7\" score=\"50\" exp_range=\"1\"/>");
_local10.firstChild.attributes.st = 1;
_local10.firstChild.attributes.id = "temp";
_local10.firstChild.attributes.dmg = _local4.attributes.hp / 10;
_local10.firstChild.attributes.tar_x = _local32;
_local10.firstChild.attributes.tar_y = _local31;
_local10.firstChild.attributes.x = random(maxtiles_x);
_local10.firstChild.attributes.y = 9;
_local10.firstChild.attributes.armor = 0;
_local10.firstChild.attributes.item_mc = "";
if (Math.random() > 0.5) {
_local10.firstChild.attributes.speed = _local10.firstChild.attributes.speed * -1;
}
_local10.firstChild.attributes.speed = _local10.firstChild.attributes.speed * ((Math.random() / 2) + 0.9);
add_obj(_local10.firstChild);
_local4.attributes.ppl_to_call--;
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, Math.round((_local4.attributes.ppl_to_call * 100) / _local29) + "%");
if (_local4.attributes.ppl_to_call < 0) {
win_game();
}
}
_local4.attributes.tts = 10 + ((30 * _local4.attributes.ppl_to_call) / _local29);
} else {
_local4.attributes.tts--;
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.5) {
_local4.attributes.st = 3;
} else {
_local4.attributes.st = 11;
_root.snd.howl_boss1.start();
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 3 :
_local4.attributes.normal_speed = _local4.attributes.speed;
_move(_local4);
break;
case 4 :
_local4.attributes.speed = _local4.attributes.speed * 1.1;
_move(_local4);
_local22 = {x:_local4.attributes.item_mc._x, y:_local4.attributes.item_mc._y};
_root.main.localToGlobal(_local22);
_local8 = _local22.x;
_local51 = _game_height - _local22.y;
_local15 = _local4.attributes.lpx;
_local4.attributes.lpx = _local8;
if (Math.round(_local31) == y) {
if (((_local8 > _char_l) && (_local8 < _char_r)) || ((_local15 != undefined) && ((((_local8 < _char_x) && (_char_x < _local15)) && (_local8 < _local15)) || (((_local15 < _char_x) && (_char_x < _local8)) && (_local15 < _local8))))) {
var _local41 = random(3) + 1;
_root.snd["body_impact" + _local41].start();
char_take_dmg(_local4.attributes.dmg / 1);
add_root_explosion(_char_x, _local22.y + (_ts / 4), 9);
}
}
if (((_local43 < -2) && (_local4.attributes.speed < 0)) || ((_local43 > 2) && (_local4.attributes.speed > 0))) {
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 5 :
_local4.attributes.speed = _local4.attributes.normal_speed;
_move(_local4);
break;
case 12 :
if ((_local4.attributes.item_mc.body.body._currentframe % 4) != 0) {
break;
}
var _local41 = random(4) + 1;
_root.snd["rocket" + _local41].start();
_local18 = _local4.attributes.dmg / 1;
_local21 = [_local32, _local31];
_local19 = [(-_local43) / 20, (-_local42) / 20];
_local16 = [0, 0];
shoot(204, _local18, _local21, _local19, _local16, [false, false]);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if ((_local39 < 1) && (_local45 < 15)) {
char_take_dmg(_local4.attributes.dmg / 1);
_local4.attributes.st = 18;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
} else {
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.5) {
_local4.attributes.st = 3;
} else if (Math.random() > 0.5) {
_local4.attributes.st = 11;
} else {
_local4.attributes.st = 15;
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 4 :
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
_local21 = [(_local32 / 1) + (_local4.attributes.speed * 5), _local31 + (13 / _ts)];
_local19 = [_local4.attributes.speed * 2.5, 0];
_local16 = [0, 0];
shoot(199, _local18, _local21, _local19, _local16, [false, true]);
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 12 :
var _local37 = 1;
if (_local43 > 0) {
_local37 = _local37 * -1;
}
var _local10 = new XML("<ppl name=\"Infantry\" type=\"13\" hp=\"30\" hpmax=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\"/>");
_local10.firstChild.attributes.st = 17;
_local10.firstChild.attributes.id = "temp";
_local10.firstChild.attributes.x = _local32 + _local37;
_local10.firstChild.attributes.y = _local31;
_local10.firstChild.attributes.armor = 0;
_local10.firstChild.attributes.item_mc = "";
add_obj(_local10.firstChild);
_root.snd.howl_boss1.start();
_local4.attributes.st = 1;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 16 :
_local4.attributes.x = x;
_local4.attributes.item_mc._x = get_x_scr(x) - _map_x;
_local4.attributes.st = 17;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (!(_local45 === 1)) {
} else {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.95) {
var _local12 = 0;
while (_local12 < 3) {
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 2.5;
_local21 = [x + ((Math.random() - 0.5) * 6), y + 5];
_local19 = [(Math.random() - 0.5) / 2, -Math.abs(_local17)];
_local16 = [0, 0];
shoot(198, _local18, _local21, _local19, _local16, [true, false]);
_local12++;
}
}
}
break;
_fall(_local4);
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 >= 0.5) {
break;
}
switch (_local7) {
case 205 :
__CCondition_add({id:CONST_CON_HoT, var0:_local4.attributes.dmg / 1});
break;
case 206 :
__CCondition_add({id:CONST_CON_Speed, var0:1.3});
break;
case 207 :
_char_as = 40;
break;
case 300 :
break;
case 301 :
weap_set_enebled(1);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(1));
break;
case 302 :
weap_set_enebled(2);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(2));
break;
case 303 :
weap_set_enebled(3);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(3));
break;
case 304 :
weap_set_enebled(4);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(4));
break;
case 305 :
weap_set_enebled(5);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(5));
break;
case 306 :
weap_set_enebled(6);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(6));
break;
case 310 :
add_char_lives(1);
break;
case 311 :
__CCondition_add({id:CONST_CON_Armor, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 312 :
__CCondition_add({id:CONST_CON_Firepower, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 313 :
__CCondition_add({id:CONST_CON_DeSpeed, var0:2});
break;
case 321 :
_char_historys++;
break;
case 322 :
_char_historys++;
break;
case 323 :
if (_char_capsules_per_lvl[_current_map]) {
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, _root.get_txt("already_taken_here"));
} else {
_char_capsules_per_lvl[_current_map] = true;
_char_capsule++;
_face_mc.c_dtxt.text = "x" + _char_capsule;
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, "+5% DMG");
}
}
_char_ab = 5;
if (_local4.attributes.score != undefined) {
_bonuses_scores = _bonuses_scores + (_local4.attributes.score / 1);
}
add_explosion(get_x_scr(_local32), get_y_scr(_local31), _local7);
remove_obj(_local4);
if (_root.snd["pickup_" + _local7] == undefined) {
_root.snd.pickup_206.start();
} else {
_root.snd["pickup_" + _local7].start();
}
refresh_info_tip();
}
}
}
}
case 198 :
case 199 :
case 204 :
case 202 :
_local4.attributes.x = _local4.attributes.x + _local4.attributes.sx;
_local4.attributes.y = _local4.attributes.y + _local4.attributes.sy;
_local4.attributes.sx = _local4.attributes.sx + _local4.attributes.asx;
_local4.attributes.sy = _local4.attributes.sy + _local4.attributes.asy;
_local32 = _local4.attributes.x;
_local31 = _local4.attributes.y;
_local28 = get_x_scr(_local32) - _map_x;
_local26 = get_y_scr(_local31) + _map_y;
var _local22 = {x:_local28, y:_local26};
_root.main.localToGlobal(_local22);
var _local8 = _local22.x;
var _local51 = _game_height - _local22.y;
var _local15 = _local4.attributes.lpx;
_local4.attributes.lpx = _local8;
if ((_local51 < _char_u) && (_local51 > _char_y)) {
if (((_local8 > _char_l) && (_local8 < _char_r)) || ((_local15 != undefined) && ((((_local8 < _char_x) && (_char_x < _local15)) && (_local8 < _local15)) || (((_local15 < _char_x) && (_char_x < _local8)) && (_local15 < _local8))))) {
if (!char_get_in_shadow()) {
var _local41 = random(3) + 1;
_root.snd["body_impact" + _local41].start();
char_take_dmg(_local4.attributes.dmg);
if (_local7 == 198) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 11);
} else {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 4);
}
remove_obj(_local4);
break;
}
}
} else {
if (_local4.attributes.hx) {
var _local33 = _char_x;
var _local14 = 1;
if (_local33 > _local8) {
_local4.attributes.sx = _local4.attributes.sx + (_local14 / _ts);
} else if (_local33 < _local8) {
_local4.attributes.sx = _local4.attributes.sx - (_local14 / _ts);
}
}
if (_local4.attributes.hy) {
var _local23 = _char_y + ((_char_u + _char_y) / 4);
var _local24 = Math.abs(_local23 - _local51);
var _local14 = 1;
if (_local24 > 100) {
_local14++;
}
if (_local24 > 300) {
_local14++;
}
if (_local24 > 500) {
_local14 = _local14 + 2;
}
if (_local23 > _local51) {
_local4.attributes.sy = _local4.attributes.sy + (_local14 / _ts);
} else if (_local23 < _local51) {
_local4.attributes.sy = _local4.attributes.sy - (_local14 / _ts);
}
}
if ((_local7 == 199) || (_local7 == 198)) {
add_shoot_trace([_local4.attributes.item_mc._x + _map_x, _local4.attributes.item_mc._y - _map_y], [_local28 + _map_x, _local26 - _map_y], 8, 1);
}
_local4.attributes.item_mc._x = _local28;
_local4.attributes.item_mc._y = _local26;
_local4.attributes.ttl--;
if (_local4.attributes.ttl < 0) {
remove_obj(_local4);
} else {
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (_local39 < 3) {
if ((_local45 == 1) or (_local45 == 2)) {
_local4.attributes.st = 4;
_local45 = 4;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
} else if (_local45 == 4) {
_local4.attributes.st = 1;
_local45 = 1;
}
switch (_local45) {
case 1 :
if (Math.random() > 0.95) {
_local4.attributes.st = 2;
if (Math.random() > 0.2) {
_local4.attributes.speed = _local4.attributes.speed * -1;
}
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
break;
case 2 :
_move(_local4);
break;
case 4 :
char_take_dmg(_local4.attributes.dmg);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 0.5) {
if (_char_as <= 0) {
__CCondition_add({id:CONST_CON_DoT, var0:_local5.dmg / 1, ttl:_local5.time / 1});
}
char_take_dmg(0);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 0.5) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 13);
var _local30 = _local5.exit_xy.split(",");
var _local38 = _local30[0] - x;
var _local36 = _local30[1] - y;
_map_x = _map_x + (_local38 * _ts);
_map_y = _map_y + (_local36 * _ts);
redraw_tiles = true;
add_explosion(get_x_scr(x + _local38), get_y_scr(y + _local36), 13);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
var _local29 = 40;
if (_local4.attributes.tts == undefined) {
_local4.attributes.tts = 60;
_local4.attributes.ppl_to_call = _local29;
}
if (_local4.attributes.tts < 0) {
if (Math.random() > 0.2) {
var _local10 = new XML("<ppl name=\"Fanatic(lvl:0)\" type=\"12\" hp=\"30\" speed=\"0.09\" tall=\"7\" score=\"50\" exp_range=\"1\"/>");
_local10.firstChild.attributes.st = 1;
_local10.firstChild.attributes.id = "temp";
_local10.firstChild.attributes.dmg = _local4.attributes.hp / 10;
_local10.firstChild.attributes.tar_x = _local32;
_local10.firstChild.attributes.tar_y = _local31;
_local10.firstChild.attributes.x = random(maxtiles_x);
_local10.firstChild.attributes.y = 9;
_local10.firstChild.attributes.armor = 0;
_local10.firstChild.attributes.item_mc = "";
if (Math.random() > 0.5) {
_local10.firstChild.attributes.speed = _local10.firstChild.attributes.speed * -1;
}
_local10.firstChild.attributes.speed = _local10.firstChild.attributes.speed * ((Math.random() / 2) + 0.9);
add_obj(_local10.firstChild);
_local4.attributes.ppl_to_call--;
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, Math.round((_local4.attributes.ppl_to_call * 100) / _local29) + "%");
if (_local4.attributes.ppl_to_call < 0) {
win_game();
}
}
_local4.attributes.tts = 10 + ((30 * _local4.attributes.ppl_to_call) / _local29);
} else {
_local4.attributes.tts--;
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.5) {
_local4.attributes.st = 3;
} else {
_local4.attributes.st = 11;
_root.snd.howl_boss1.start();
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 3 :
_local4.attributes.normal_speed = _local4.attributes.speed;
_move(_local4);
break;
case 4 :
_local4.attributes.speed = _local4.attributes.speed * 1.1;
_move(_local4);
_local22 = {x:_local4.attributes.item_mc._x, y:_local4.attributes.item_mc._y};
_root.main.localToGlobal(_local22);
_local8 = _local22.x;
_local51 = _game_height - _local22.y;
_local15 = _local4.attributes.lpx;
_local4.attributes.lpx = _local8;
if (Math.round(_local31) == y) {
if (((_local8 > _char_l) && (_local8 < _char_r)) || ((_local15 != undefined) && ((((_local8 < _char_x) && (_char_x < _local15)) && (_local8 < _local15)) || (((_local15 < _char_x) && (_char_x < _local8)) && (_local15 < _local8))))) {
var _local41 = random(3) + 1;
_root.snd["body_impact" + _local41].start();
char_take_dmg(_local4.attributes.dmg / 1);
add_root_explosion(_char_x, _local22.y + (_ts / 4), 9);
}
}
if (((_local43 < -2) && (_local4.attributes.speed < 0)) || ((_local43 > 2) && (_local4.attributes.speed > 0))) {
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 5 :
_local4.attributes.speed = _local4.attributes.normal_speed;
_move(_local4);
break;
case 12 :
if ((_local4.attributes.item_mc.body.body._currentframe % 4) != 0) {
break;
}
var _local41 = random(4) + 1;
_root.snd["rocket" + _local41].start();
_local18 = _local4.attributes.dmg / 1;
_local21 = [_local32, _local31];
_local19 = [(-_local43) / 20, (-_local42) / 20];
_local16 = [0, 0];
shoot(204, _local18, _local21, _local19, _local16, [false, false]);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if ((_local39 < 1) && (_local45 < 15)) {
char_take_dmg(_local4.attributes.dmg / 1);
_local4.attributes.st = 18;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
} else {
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.5) {
_local4.attributes.st = 3;
} else if (Math.random() > 0.5) {
_local4.attributes.st = 11;
} else {
_local4.attributes.st = 15;
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 4 :
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
_local21 = [(_local32 / 1) + (_local4.attributes.speed * 5), _local31 + (13 / _ts)];
_local19 = [_local4.attributes.speed * 2.5, 0];
_local16 = [0, 0];
shoot(199, _local18, _local21, _local19, _local16, [false, true]);
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 12 :
var _local37 = 1;
if (_local43 > 0) {
_local37 = _local37 * -1;
}
var _local10 = new XML("<ppl name=\"Infantry\" type=\"13\" hp=\"30\" hpmax=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\"/>");
_local10.firstChild.attributes.st = 17;
_local10.firstChild.attributes.id = "temp";
_local10.firstChild.attributes.x = _local32 + _local37;
_local10.firstChild.attributes.y = _local31;
_local10.firstChild.attributes.armor = 0;
_local10.firstChild.attributes.item_mc = "";
add_obj(_local10.firstChild);
_root.snd.howl_boss1.start();
_local4.attributes.st = 1;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 16 :
_local4.attributes.x = x;
_local4.attributes.item_mc._x = get_x_scr(x) - _map_x;
_local4.attributes.st = 17;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (!(_local45 === 1)) {
} else {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.95) {
var _local12 = 0;
while (_local12 < 3) {
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 2.5;
_local21 = [x + ((Math.random() - 0.5) * 6), y + 5];
_local19 = [(Math.random() - 0.5) / 2, -Math.abs(_local17)];
_local16 = [0, 0];
shoot(198, _local18, _local21, _local19, _local16, [true, false]);
_local12++;
}
}
}
break;
_fall(_local4);
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 >= 0.5) {
break;
}
switch (_local7) {
case 205 :
__CCondition_add({id:CONST_CON_HoT, var0:_local4.attributes.dmg / 1});
break;
case 206 :
__CCondition_add({id:CONST_CON_Speed, var0:1.3});
break;
case 207 :
_char_as = 40;
break;
case 300 :
break;
case 301 :
weap_set_enebled(1);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(1));
break;
case 302 :
weap_set_enebled(2);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(2));
break;
case 303 :
weap_set_enebled(3);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(3));
break;
case 304 :
weap_set_enebled(4);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(4));
break;
case 305 :
weap_set_enebled(5);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(5));
break;
case 306 :
weap_set_enebled(6);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(6));
break;
case 310 :
add_char_lives(1);
break;
case 311 :
__CCondition_add({id:CONST_CON_Armor, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 312 :
__CCondition_add({id:CONST_CON_Firepower, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 313 :
__CCondition_add({id:CONST_CON_DeSpeed, var0:2});
break;
case 321 :
_char_historys++;
break;
case 322 :
_char_historys++;
break;
case 323 :
if (_char_capsules_per_lvl[_current_map]) {
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, _root.get_txt("already_taken_here"));
} else {
_char_capsules_per_lvl[_current_map] = true;
_char_capsule++;
_face_mc.c_dtxt.text = "x" + _char_capsule;
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, "+5% DMG");
}
}
_char_ab = 5;
if (_local4.attributes.score != undefined) {
_bonuses_scores = _bonuses_scores + (_local4.attributes.score / 1);
}
add_explosion(get_x_scr(_local32), get_y_scr(_local31), _local7);
remove_obj(_local4);
if (_root.snd["pickup_" + _local7] == undefined) {
_root.snd.pickup_206.start();
} else {
_root.snd["pickup_" + _local7].start();
}
refresh_info_tip();
}
}
}
case 20 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (_local39 < 3) {
if ((_local45 == 1) or (_local45 == 2)) {
_local4.attributes.st = 4;
_local45 = 4;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
} else if (_local45 == 4) {
_local4.attributes.st = 1;
_local45 = 1;
}
switch (_local45) {
case 1 :
if (Math.random() > 0.95) {
_local4.attributes.st = 2;
if (Math.random() > 0.2) {
_local4.attributes.speed = _local4.attributes.speed * -1;
}
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
break;
case 2 :
_move(_local4);
break;
case 4 :
char_take_dmg(_local4.attributes.dmg);
}
break;
case 22 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 0.5) {
if (_char_as <= 0) {
__CCondition_add({id:CONST_CON_DoT, var0:_local5.dmg / 1, ttl:_local5.time / 1});
}
char_take_dmg(0);
}
break;
case 25 :
case 26 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 < 0.5) {
add_explosion(get_x_scr(_local32), get_y_scr(_local31), 13);
var _local30 = _local5.exit_xy.split(",");
var _local38 = _local30[0] - x;
var _local36 = _local30[1] - y;
_map_x = _map_x + (_local38 * _ts);
_map_y = _map_y + (_local36 * _ts);
redraw_tiles = true;
add_explosion(get_x_scr(x + _local38), get_y_scr(y + _local36), 13);
}
break;
case 27 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
var _local29 = 40;
if (_local4.attributes.tts == undefined) {
_local4.attributes.tts = 60;
_local4.attributes.ppl_to_call = _local29;
}
if (_local4.attributes.tts < 0) {
if (Math.random() > 0.2) {
var _local10 = new XML("<ppl name=\"Fanatic(lvl:0)\" type=\"12\" hp=\"30\" speed=\"0.09\" tall=\"7\" score=\"50\" exp_range=\"1\"/>");
_local10.firstChild.attributes.st = 1;
_local10.firstChild.attributes.id = "temp";
_local10.firstChild.attributes.dmg = _local4.attributes.hp / 10;
_local10.firstChild.attributes.tar_x = _local32;
_local10.firstChild.attributes.tar_y = _local31;
_local10.firstChild.attributes.x = random(maxtiles_x);
_local10.firstChild.attributes.y = 9;
_local10.firstChild.attributes.armor = 0;
_local10.firstChild.attributes.item_mc = "";
if (Math.random() > 0.5) {
_local10.firstChild.attributes.speed = _local10.firstChild.attributes.speed * -1;
}
_local10.firstChild.attributes.speed = _local10.firstChild.attributes.speed * ((Math.random() / 2) + 0.9);
add_obj(_local10.firstChild);
_local4.attributes.ppl_to_call--;
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, Math.round((_local4.attributes.ppl_to_call * 100) / _local29) + "%");
if (_local4.attributes.ppl_to_call < 0) {
win_game();
}
}
_local4.attributes.tts = 10 + ((30 * _local4.attributes.ppl_to_call) / _local29);
} else {
_local4.attributes.tts--;
}
break;
case 50 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.5) {
_local4.attributes.st = 3;
} else {
_local4.attributes.st = 11;
_root.snd.howl_boss1.start();
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 3 :
_local4.attributes.normal_speed = _local4.attributes.speed;
_move(_local4);
break;
case 4 :
_local4.attributes.speed = _local4.attributes.speed * 1.1;
_move(_local4);
_local22 = {x:_local4.attributes.item_mc._x, y:_local4.attributes.item_mc._y};
_root.main.localToGlobal(_local22);
_local8 = _local22.x;
_local51 = _game_height - _local22.y;
_local15 = _local4.attributes.lpx;
_local4.attributes.lpx = _local8;
if (Math.round(_local31) == y) {
if (((_local8 > _char_l) && (_local8 < _char_r)) || ((_local15 != undefined) && ((((_local8 < _char_x) && (_char_x < _local15)) && (_local8 < _local15)) || (((_local15 < _char_x) && (_char_x < _local8)) && (_local15 < _local8))))) {
var _local41 = random(3) + 1;
_root.snd["body_impact" + _local41].start();
char_take_dmg(_local4.attributes.dmg / 1);
add_root_explosion(_char_x, _local22.y + (_ts / 4), 9);
}
}
if (((_local43 < -2) && (_local4.attributes.speed < 0)) || ((_local43 > 2) && (_local4.attributes.speed > 0))) {
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
case 5 :
_local4.attributes.speed = _local4.attributes.normal_speed;
_move(_local4);
break;
case 12 :
if ((_local4.attributes.item_mc.body.body._currentframe % 4) != 0) {
break;
}
var _local41 = random(4) + 1;
_root.snd["rocket" + _local41].start();
_local18 = _local4.attributes.dmg / 1;
_local21 = [_local32, _local31];
_local19 = [(-_local43) / 20, (-_local42) / 20];
_local16 = [0, 0];
shoot(204, _local18, _local21, _local19, _local16, [false, false]);
}
break;
case 51 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if ((_local39 < 1) && (_local45 < 15)) {
char_take_dmg(_local4.attributes.dmg / 1);
_local4.attributes.st = 18;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
} else {
switch (_local45) {
case 1 :
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.5) {
_local4.attributes.st = 3;
} else if (Math.random() > 0.5) {
_local4.attributes.st = 11;
} else {
_local4.attributes.st = 15;
}
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 4 :
_local4.attributes.item_mc.body.fire_mc.gotoAndPlay(2 + (4 * random(2)));
_root.snd.fire_marine.start();
_local18 = _local4.attributes.dmg / 1;
_local21 = [(_local32 / 1) + (_local4.attributes.speed * 5), _local31 + (13 / _ts)];
_local19 = [_local4.attributes.speed * 2.5, 0];
_local16 = [0, 0];
shoot(199, _local18, _local21, _local19, _local16, [false, true]);
_local4.attributes.st = 5;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 12 :
var _local37 = 1;
if (_local43 > 0) {
_local37 = _local37 * -1;
}
var _local10 = new XML("<ppl name=\"Infantry\" type=\"13\" hp=\"30\" hpmax=\"30\" dmg=\"25\" speed=\"0.1\" tall=\"8\" score=\"100\"/>");
_local10.firstChild.attributes.st = 17;
_local10.firstChild.attributes.id = "temp";
_local10.firstChild.attributes.x = _local32 + _local37;
_local10.firstChild.attributes.y = _local31;
_local10.firstChild.attributes.armor = 0;
_local10.firstChild.attributes.item_mc = "";
add_obj(_local10.firstChild);
_root.snd.howl_boss1.start();
_local4.attributes.st = 1;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
break;
case 16 :
_local4.attributes.x = x;
_local4.attributes.item_mc._x = get_x_scr(x) - _map_x;
_local4.attributes.st = 17;
_local4.attributes.item_mc.body.gotoAndStop(_local4.attributes.st);
}
break;
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (!(_local45 === 1)) {
} else {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.95) {
var _local12 = 0;
while (_local12 < 3) {
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 2.5;
_local21 = [x + ((Math.random() - 0.5) * 6), y + 5];
_local19 = [(Math.random() - 0.5) / 2, -Math.abs(_local17)];
_local16 = [0, 0];
shoot(198, _local18, _local21, _local19, _local16, [true, false]);
_local12++;
}
}
}
break;
_fall(_local4);
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 >= 0.5) {
break;
}
switch (_local7) {
case 205 :
__CCondition_add({id:CONST_CON_HoT, var0:_local4.attributes.dmg / 1});
break;
case 206 :
__CCondition_add({id:CONST_CON_Speed, var0:1.3});
break;
case 207 :
_char_as = 40;
break;
case 300 :
break;
case 301 :
weap_set_enebled(1);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(1));
break;
case 302 :
weap_set_enebled(2);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(2));
break;
case 303 :
weap_set_enebled(3);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(3));
break;
case 304 :
weap_set_enebled(4);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(4));
break;
case 305 :
weap_set_enebled(5);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(5));
break;
case 306 :
weap_set_enebled(6);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(6));
break;
case 310 :
add_char_lives(1);
break;
case 311 :
__CCondition_add({id:CONST_CON_Armor, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 312 :
__CCondition_add({id:CONST_CON_Firepower, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 313 :
__CCondition_add({id:CONST_CON_DeSpeed, var0:2});
break;
case 321 :
_char_historys++;
break;
case 322 :
_char_historys++;
break;
case 323 :
if (_char_capsules_per_lvl[_current_map]) {
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, _root.get_txt("already_taken_here"));
} else {
_char_capsules_per_lvl[_current_map] = true;
_char_capsule++;
_face_mc.c_dtxt.text = "x" + _char_capsule;
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, "+5% DMG");
}
}
_char_ab = 5;
if (_local4.attributes.score != undefined) {
_bonuses_scores = _bonuses_scores + (_local4.attributes.score / 1);
}
add_explosion(get_x_scr(_local32), get_y_scr(_local31), _local7);
remove_obj(_local4);
if (_root.snd["pickup_" + _local7] == undefined) {
_root.snd.pickup_206.start();
} else {
_root.snd["pickup_" + _local7].start();
}
refresh_info_tip();
}
case 52 :
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
_local45 = _local4.attributes.st / 1;
if (!(_local45 === 1)) {
} else {
if ((_local43 * _local4.attributes.speed) > 0) {
_local4.attributes.speed = _local4.attributes.speed * -1;
if ((_local4.attributes.speed / 1) > 0) {
_local4.attributes.item_mc._xscale = -100;
} else {
_local4.attributes.item_mc._xscale = 100;
}
}
if (Math.random() > 0.95) {
var _local12 = 0;
while (_local12 < 3) {
_local18 = _local4.attributes.dmg / 1;
var _local17 = _local4.attributes.speed * 2.5;
_local21 = [x + ((Math.random() - 0.5) * 6), y + 5];
_local19 = [(Math.random() - 0.5) / 2, -Math.abs(_local17)];
_local16 = [0, 0];
shoot(198, _local18, _local21, _local19, _local16, [true, false]);
_local12++;
}
}
}
break;
case 323 :
case 322 :
case 321 :
case 313 :
case 312 :
case 311 :
case 310 :
case 300 :
case 301 :
case 302 :
case 303 :
case 304 :
case 305 :
case 306 :
case 205 :
case 206 :
case 207 :
case 208 :
case 209 :
_fall(_local4);
_local32 = _local5.x / 1;
_local31 = _local5.y / 1;
_local43 = _local32 - x;
_local42 = _local31 - y;
_local39 = Math.abs(_local43) + Math.abs(_local42);
if (_local39 >= 0.5) {
break;
}
switch (_local7) {
case 205 :
__CCondition_add({id:CONST_CON_HoT, var0:_local4.attributes.dmg / 1});
break;
case 206 :
__CCondition_add({id:CONST_CON_Speed, var0:1.3});
break;
case 207 :
_char_as = 40;
break;
case 300 :
break;
case 301 :
weap_set_enebled(1);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(1));
break;
case 302 :
weap_set_enebled(2);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(2));
break;
case 303 :
weap_set_enebled(3);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(3));
break;
case 304 :
weap_set_enebled(4);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(4));
break;
case 305 :
weap_set_enebled(5);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(5));
break;
case 306 :
weap_set_enebled(6);
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, (_global.xml_lang.you_found + " ") + weap_get_name(6));
break;
case 310 :
add_char_lives(1);
break;
case 311 :
__CCondition_add({id:CONST_CON_Armor, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 312 :
__CCondition_add({id:CONST_CON_Firepower, var0:_local4.attributes.dmg / 1, ttl:_local4.attributes.ttl / 1});
break;
case 313 :
__CCondition_add({id:CONST_CON_DeSpeed, var0:2});
break;
case 321 :
_char_historys++;
break;
case 322 :
_char_historys++;
break;
case 323 :
if (_char_capsules_per_lvl[_current_map]) {
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, _root.get_txt("already_taken_here"));
} else {
_char_capsules_per_lvl[_current_map] = true;
_char_capsule++;
_face_mc.c_dtxt.text = "x" + _char_capsule;
add_root_txt(_local4.attributes.item_mc._x, _local4.attributes.item_mc._y, "+5% DMG");
}
}
_char_ab = 5;
if (_local4.attributes.score != undefined) {
_bonuses_scores = _bonuses_scores + (_local4.attributes.score / 1);
}
add_explosion(get_x_scr(_local32), get_y_scr(_local31), _local7);
remove_obj(_local4);
if (_root.snd["pickup_" + _local7] == undefined) {
_root.snd.pickup_206.start();
} else {
_root.snd["pickup_" + _local7].start();
}
refresh_info_tip();
}
}
}
}
Symbol 2467 MovieClip [__Packages.CGame] Frame 0
class CGame extends CObjs
{
var _tc5, _tc20, _tc30, _obj_xml, _lvls, __CMap_load_map, _char_animation, _char_weapon_id, _char_state, _char_lock, _score, _exps, _ts, _map_x, _char_x, _map_y, _char_y, _l01, _ch_tall, _ch_fat, _char_l, _char_r, _char_u, _char_xaspeed, _char_run, _char_xspeed, _char_down, _char_up, redraw_tiles, _char_mc, _game_height, _fatl_mc, _fatr_mc, _fatu_mc, char_spirit_get, _char_dty, _char_dtx, _map_x_max, _rw, char_spirit, _char_gx, _char_gy, _stairs, _char_climb_speed, _char_as, _char_ab, _char_yspeed, _char_ygspeed, _landed, char_act, _char_look_y, __CConditions_turn, turn_obj, _face_mc, _rh, __CMap_draw_minimap, _current_map, _map_xml, __CMap_get_minimap_legend, remove_ammo, _ammo_id, char_get_side, _weap_dmg, add_obj, _weap_type, add_root_explosion, _char_side, _objs, _weap_range, add_root_txt, _weap_penetration, get_y_scr, get_x_scr, add_explosion, char_get_dmg, obj_take_dmg, _enemy_kiled, add_shoot_trace, aim_get_x, _weap_penetration_size, _boss_here, _bosses_hp, _bosses_hp_max, _char_capsule, _bg_frame_id, _tile_set, _lvls_gfxbg, _lvls_type, _lvls_m, _exit_frame_id, __CMap__set, __CMap_get_obj, _o_mc, hide_obj, _o2_mc, set_char_lives, _char_continues, _char_cat_lives, _char_historys, _char_capsules_per_lvl, _weap_enabled, __CMap_refresh_map, win_game, weap_refresh_icos, __CMap_get_start_xy, _char_acr, _char_jumping, _char_firing, _char_m_right, _char_m_left, __CCondition_removeAll, _bonuses_scores, _game_width, maxtiles_x, _char_lives, _ammo, _ammo_max, _tile_size, _char_lib_name, _char_av_id, char_show_hp, _char_xscale, gfx_end, _started_time;
function CGame (map_xml, cmap, scores, lives, checkpoint_x, checkpoint_y, lvls, diams, obj_xml, char_type) {
super();
trace("ru.badim.turtleEngine.1.1");
_tc5 = 0;
_tc20 = 1;
_tc30 = 1;
_obj_xml = obj_xml;
if (lvls != undefined) {
_lvls = lvls;
}
__CMap_load_map(map_xml);
_global._time_counter = 1;
_char_animation = 1;
_char_weapon_id = 0;
_char_state = 1;
_char_lock = false;
_score = 0;
_exps = 0;
unpause_game();
}
function unload_game() {
}
function load_game() {
}
function editor_turn() {
var _local16 = getTimer();
var _local9 = Math.round(((_char_x + _map_x) + (_ts / 2)) / _ts) - 1;
var _local8 = Math.round(((_char_y + _map_y) + (_ts / 2)) / _ts);
var _local12 = _lvls[_local9][_local8];
var _local15 = _l01[_local9][_local8];
var _local11 = _ch_tall;
var _local10 = _ch_fat;
_char_l = _char_x - _local10;
_char_r = _char_x + _local10;
_char_u = _char_y + _local11;
var _local13 = Math.round(((_char_l + _map_x) + (_ts / 2)) / _ts) - 1;
var _local14 = Math.round(((_char_y + _map_y) + (_ts / 2)) / _ts);
var _local17 = Math.round(((_char_r + _map_x) + (_ts / 2)) / _ts) - 1;
_char_xaspeed = 0;
var _local4 = 0;
_local4 = ((_char_xspeed * _char_run) * 4) + _char_xaspeed;
var _local5 = _local9;
if (_local4 > 0) {
_local5 = Math.round((((_char_r + _map_x) + _local4) + (_ts / 2)) / _ts) - 1;
}
if (_local4 < 0) {
_local5 = Math.round((((_char_l + _map_x) + _local4) + (_ts / 2)) / _ts) - 1;
}
var _local7 = _local8;
if (_l01[_local5][_local7] == undefined) {
_local4 = 0;
}
var _local6 = 0;
if (_char_down && (_l01[_local5][_local7 - 1] != undefined)) {
_local6 = -20;
}
if (_char_up && (_l01[_local5][_local7 + 1] != undefined)) {
_local6 = 20;
}
if ((_local4 != 0) || (_local6 != 0)) {
_map_x = _map_x + _local4;
_map_y = _map_y + _local6;
redraw_tiles = true;
}
if (redraw_tiles) {
show_tiles();
redraw_tiles = false;
}
_char_mc._x = _char_x;
_char_mc._y = _game_height - _char_y;
_char_mc.gotoAndStop(_global.char_animation);
_fatl_mc._x = _char_l;
_fatl_mc._y = _game_height - _char_y;
_fatr_mc._x = _char_r;
_fatr_mc._y = _game_height - _char_y;
_fatu_mc._x = _char_x;
_fatu_mc._y = _game_height - _char_u;
_root.main.gfx_scr._x = -_map_x;
_root.main.gfx_scr._y = _map_y;
}
function turn() {
var _local24 = getTimer();
if (_tc20 > 20) {
_tc20 = 1;
} else {
_tc20++;
}
if (_tc30 > 30) {
_tc30 = 1;
} else {
_tc30++;
}
if (_tc5 > 5) {
_tc5 = 1;
} else {
_tc5++;
}
if (_global._time_counter > 30) {
_global._time_counter = 1;
} else {
_global._time_counter++;
}
if (char_spirit_get()) {
var _local19 = Math.sqrt((_char_dtx * _char_dtx) + (_char_dty * _char_dty));
var _local15 = ((_char_dtx * 10) / _local19) + (_char_dtx * 0.2);
var _local4 = _local15;
if ((((_char_x > (_rw - ddx1)) and (_local4 > 0)) and (_map_x <= _map_x_max)) or (((_char_x < ddx1) and (_local4 < 0)) and (_map_x >= 0))) {
_map_x = _map_x + _local4;
} else if ((((_char_x > (_rw - ddx2)) and (_local4 > 0)) and (_map_x <= _map_x_max)) or (((_char_x < ddx2) and (_local4 < 0)) and (_map_x >= 0))) {
_char_x = _char_x + ((_local4 * 1) / 3);
_map_x = _map_x + ((_local4 * 2) / 3);
} else if ((((_char_x > (_rw - ddx3)) and (_local4 > 0)) and (_map_x <= _map_x_max)) or (((_char_x < ddx3) and (_local4 < 0)) and (_map_x >= 0))) {
_local4 = _local4 / 2;
_char_x = _char_x + _local4;
_map_x = _map_x + _local4;
} else {
_char_x = _char_x + _local4;
}
_char_dtx = _char_dtx - _local15;
var _local14 = ((_char_dty * 10) / _local19) + (_char_dty * 0.2);
_map_y = _map_y + _local14;
_char_dty = _char_dty - _local14;
redraw_tiles = true;
if (Math.abs(_char_dtx) <= 10) {
_map_x = _map_x + _char_dtx;
_map_y = _map_y + _char_dty;
char_spirit(false);
}
} else {
_char_gx = _char_x + _map_x;
_char_gy = _char_y + _map_y;
var _local6 = Math.round((_char_gx + (_ts / 2)) / _ts) - 1;
var _local5 = Math.round((_char_gy + (_ts / 2)) / _ts);
var _local13 = _lvls[_local6][_local5];
var _local28 = _l01[_local6][_local5];
var _local16 = _char_run;
if (_stairs) {
if ((_local13 != "r") && (_local13 != "t")) {
_stairs = false;
} else {
_local16 = _char_climb_speed;
}
}
if (_local5 < 0) {
lose_game(0);
return(true);
}
if ((_char_as == 0) || (_char_ab == 0)) {
var _local12 = [];
if (_char_as > 0) {
var _local22 = new flash.filters.GlowFilter(16777215, 0.8, _char_as, _char_as, 3, 1, true, false);
_local12.push(_local22);
}
if (_char_ab > 0) {
var _local23 = new flash.filters.GlowFilter(1118719, 0.5, _char_ab * 2, _char_ab * 2, 3, 1, false, false);
_local12.push(_local23);
}
_char_mc.filters = _local12;
_char_as--;
_char_ab--;
} else if ((_char_as > 0) || (_char_ab > 0)) {
var _local12 = [];
if (_char_as > 0) {
var _local22 = new flash.filters.GlowFilter(16777215, 0.8, _char_as, _char_as, 3, 1, true, false);
_local12.push(_local22);
_char_as--;
}
if (_char_ab > 0) {
var _local23 = new flash.filters.GlowFilter(1118719, 0.5, _char_ab * 2, _char_ab * 2, 3, 1, false, false);
_local12.push(_local23);
_char_ab--;
}
_char_mc.filters = _local12;
}
var _local20 = _ch_tall;
var _local17 = _ch_fat;
_char_l = _char_x - _local17;
_char_r = _char_x + _local17;
_char_u = _char_y + _local20;
var _local26 = Math.round(((_char_l + _map_x) + (_ts / 2)) / _ts) - 1;
var _local27 = Math.round(((_char_y + _map_y) + (_ts / 2)) / _ts);
var _local29 = Math.round(((_char_r + _map_x) + (_ts / 2)) / _ts) - 1;
_char_xaspeed = _char_xaspeed * 0.89;
if (Math.abs(_char_xaspeed) < 0.2) {
_char_xaspeed = 0;
}
var _local4 = 0;
_local4 = (_char_xspeed * _local16) + _char_xaspeed;
var _local7 = _local6;
if (_local4 > 0) {
_local7 = Math.round((((_char_r + _map_x) + _local4) + (_ts / 2)) / _ts) - 1;
}
if (_local4 < 0) {
_local7 = Math.round((((_char_l + _map_x) + _local4) + (_ts / 2)) / _ts) - 1;
}
var _local11 = _local5;
if (((_l01[_local7][_local11] == 0) && ((_l01[_local7][_local11 + 1] == 0) || (_l01[_local7][_local11 - 1] == 0))) || (_l01[_local7][_local11] == undefined)) {
_local4 = 0;
}
var _local25 = _char_yspeed;
var _local18 = 0;
if (_stairs) {
} else {
if ((_l01[_local6][_local5 - 1] != 0) || (_char_yspeed != 0)) {
_char_yspeed = _char_yspeed + _char_ygspeed;
_landed = false;
}
if (_char_yspeed > 0) {
if ((_l01[_local6][_local5] == 0) and (_l01[_local6][_local5 + 1] == 0)) {
_char_yspeed = 0;
}
}
if ((_local25 >= 0) and (_char_yspeed < 0)) {
_global.char_animation = 5;
}
_char_yspeed = _char_yspeed * 0.92;
if (Math.abs(_char_yspeed) < 0.2) {
_char_yspeed = 0;
}
}
if (_char_yspeed <= 0) {
if (_l01[_local6][_local5 - 1] == 0) {
if ((_char_yspeed < 0) || (_landed == false)) {
var _local10 = (_char_y + _map_y) - (Math.floor((_char_y + _map_y) / _ts) * _ts);
_local10 = 45 - _local10;
if ((_local10 < 25) || (_l01[_local6][_local5 - 2] == 0)) {
_local18 = _local10;
_char_xaspeed = 0;
_char_yspeed = 0;
_stairs = false;
_landed = true;
if (((_global.char_animation == 5) || (_global.char_animation == 4)) || (_global.char_animation > 19)) {
char_act(false, "fall");
}
}
}
}
}
if ((((_char_x > (_rw - ddx1)) and (_local4 > 0)) and (_map_x <= _map_x_max)) or (((_char_x < ddx1) and (_local4 < 0)) and (_map_x >= 0))) {
_map_x = _map_x + _local4;
redraw_tiles = true;
} else if ((((_char_x > (_rw - ddx2)) and (_local4 > 0)) and (_map_x <= _map_x_max)) or (((_char_x < ddx2) and (_local4 < 0)) and (_map_x >= 0))) {
_char_x = _char_x + ((_local4 * 1) / 3);
_map_x = _map_x + ((_local4 * 2) / 3);
redraw_tiles = true;
} else if ((((_char_x > (_rw - ddx3)) and (_local4 > 0)) and (_map_x <= _map_x_max)) or (((_char_x < ddx3) and (_local4 < 0)) and (_map_x >= 0))) {
_local4 = _local4 / 2;
_char_x = _char_x + _local4;
_map_x = _map_x + _local4;
redraw_tiles = true;
} else {
_char_x = _char_x + _local4;
}
var _local9 = _char_yspeed + _local18;
if (((_char_y > 220) and (_char_yspeed > 0)) or (((_char_y < 50) and (_char_yspeed < 0)) and (_map_y > 0))) {
_map_y = _map_y + _local9;
redraw_tiles = true;
} else if (((_char_y > 200) and (_char_yspeed > 0)) or (((_char_y < 70) and (_char_yspeed < 0)) and (_map_y > 0))) {
_local9 = _local9 / 2;
_map_y = _map_y + _local9;
_char_y = _char_y + _local9;
redraw_tiles = true;
} else {
_char_y = _char_y + _local9;
}
var _local8 = 0;
if (_map_y < 0) {
_map_y = 0;
}
if (_char_look_y > 0) {
_local8 = 10;
_char_look_y = _char_look_y - _local8;
if (_map_y < _local8) {
_local8 = _map_y;
}
_map_y = _map_y - _local8;
_char_y = _char_y + _local8;
redraw_tiles = true;
}
__CConditions_turn();
}
if (redraw_tiles) {
show_tiles();
redraw_tiles = false;
}
turn_obj(_local6, _local5);
_char_mc._x = _char_x;
_char_mc._y = _game_height - _char_y;
_char_mc.gotoAndStop(_global.char_animation);
_fatl_mc._x = _char_l;
_fatl_mc._y = _game_height - _char_y;
_fatr_mc._x = _char_r;
_fatr_mc._y = _game_height - _char_y;
_fatu_mc._x = _char_x;
_fatu_mc._y = _game_height - _char_u;
_root.main.gfx_scr._x = -_map_x;
_root.main.gfx_scr._y = _map_y;
if (!_global.release_this) {
var _local21 = getTimer() - _local24;
_face_mc.fps_dtxt.text = _local21 + "mc";
}
}
function _CGame_showminimap() {
if (_global.minimap_allowed) {
var _local5 = _root.main.createEmptyMovieClip("minimap", _root.minimap_depth);
_local5.onMouseDown = function () {
_global.game.unpause_game();
this.unloadMovie();
};
_root.drawPoly(_local5, [0, 0], [[0, 0], [_rw, 0], [_rw, _rh], [0, _rh], [0, 0]], {_ticknes:1, _alpha:0, _color:0}, {_alpha:50, _color:16777215});
var _local4 = _local5.createEmptyMovieClip("body", _local5.getNextHighestDepth());
_local4._x = (_rw / 2) - 200;
var _local7 = __CMap_draw_minimap(_map_xml.firstChild.childNodes[_current_map]);
_local4.attachBitmap(_local7, _local4.getNextHighestDepth());
_local4._width = 400;
_local4._yscale = _local4._xscale;
var _local6 = _local5.createEmptyMovieClip("legend", _local5.getNextHighestDepth());
_local6._x = _local4._x;
_local6._y = _local4._height + 10;
__CMap_get_minimap_legend(_local6);
pause_game();
}
}
function _CChar_shoot(char_up) {
var _local45 = remove_ammo();
if (_local45 == false) {
return(false);
}
var _local17 = Math.round(((_char_x + _map_x) + (_ts / 2)) / _ts) - 1;
var _local8 = Math.round(((_char_y + _map_y) + (_ts / 2)) / _ts);
if (((_ammo_id == 1) || (_ammo_id == 2)) || (_ammo_id == 5)) {
var _local28 = new XML("<aim />");
_local28.firstChild.attributes.type = 150;
_local28.firstChild.attributes.ttl = 40;
if (_ammo_id == 2) {
_local28.firstChild.attributes.type = 151;
}
if (_ammo_id == 5) {
_local28.firstChild.attributes.type = 152;
}
_local28.firstChild.attributes.x = _local17;
_local28.firstChild.attributes.y = ((((_char_y + _map_y) + (_ts / 2)) - _char_mc.aim_mc._y) / _ts) - 1;
var _local42 = 0.5 * char_get_side();
var _local36 = 0;
var _local41 = 0;
if (char_up) {
_local36 = 0.5;
}
if (_ammo_id == 2) {
if (char_up) {
_local36 = _local36 + 0.1;
_local41 = -6 / _ts;
} else {
_local36 = _local36 + 0.3;
_local41 = -4 / _ts;
}
_local42 = 0.8 * char_get_side();
}
_local28.firstChild.attributes.sx = 0.5 * char_get_side();
if (_ammo_id == 5) {
_local28.firstChild.attributes.sx = 0.2 * char_get_side();
}
_local28.firstChild.attributes.sy = _local36;
_local28.firstChild.attributes.asy = _local41;
_local28.firstChild.attributes.item_mc = "";
_local28.firstChild.attributes.exp_range = 1.5;
_local28.firstChild.attributes.dmg = _weap_dmg;
add_obj(_local28.firstChild);
return(false);
}
if ((_ammo_id == 3) || (_ammo_id == 4)) {
} else {
var _local11 = random(3) + 1;
_root.snd["machine_gun" + _local11].start();
if ((_weap_type == 1) || (_weap_type == 7)) {
add_root_explosion(_char_x + (_char_mc.aim_mc._x * _char_side), (_game_height - _char_y) + _char_mc.aim_mc._y, 6 + random(3));
}
}
var _local29 = 999;
var _local30 = -1;
var _local35;
var _local7 = [];
for (var _local38 in _objs) {
var _local3 = _objs[_local38];
var _local15 = _local3.attributes;
var _local5 = _local15.x / 1;
var _local31 = _local15.y / 1;
var _local46 = _local5 - _local17;
var _local12 = _local31 - _local8;
var _local22 = char_get_side();
var _local10 = Math.abs(_local46) + Math.abs(_local12);
var _local14 = Math.round;
var _local27 = _local15.item_mc._x;
var _local24 = _local15.item_mc._y;
var _local25 = (_local15.item_mc._x - _char_x) / _ts;
var _local32 = (_local15.item_mc._y - _char_y) / _ts;
if (((_local22 * _local46) > 0) || (((_ammo_id == 3) || (_ammo_id == 4)) && (_local46 == 0))) {
if (((_local31 == _local8) && (char_up == false)) || ((char_up == true) && (_local14(Math.abs(_local46)) == _local14(_local12)))) {
if (_local25 <= _weap_range) {
var _local13 = 1;
if (_local3.attributes.CTH != undefined) {
_local13 = _local3.attributes.CTH / 1;
}
if (Math.random() > _local13) {
add_root_txt(_local27, _local24, "miss");
continue;
}
if ((_local3.attributes.st != 10) && (_local3.attributes.st != 16)) {
var _local20 = _local3.attributes.hp / 1;
if (_local20 > 0) {
var _local18 = _local3.attributes.tall / 1;
if (char_up) {
var _local23 = (((_char_x + _map_x) / _ts) % 1) * 10;
_local18 = _local18 + _local23;
}
if (_weap_penetration) {
_local7.push(_local3);
} else if (_local10 < _local29) {
_local29 = _local10;
_local35 = _local46;
_local7 = [];
_local7.push(_local3);
}
}
}
}
}
}
}
var _local37 = -1;
var _local34 = -1;
var _local40 = -1;
var _local33 = char_get_side();
var _local6 = 0;
while (_local6 < _weap_range) {
var _local5 = _local17 + (_local6 * _local33);
var _local31 = _local8;
if (char_up) {
_local31 = _local8 + _local6;
}
if ((_lvls[_local5][_local31] == 0) or (_lvls[_local5][_local31] == undefined)) {
break;
}
_local6++;
}
_local34 = _local5;
_local40 = _local31;
_local37 = _local6;
if ((_local37 != -1) && (_local37 < _local29)) {
var _local46 = _local34 - _local17;
var _local43 = get_y_scr(_local40);
var _local44 = get_x_scr(_local34);
if ((_ammo_id == 3) || (_ammo_id == 4)) {
} else {
add_explosion(_local44, _local43, 1);
}
if (!_weap_penetration) {
return(true);
}
}
for (var _local39 in _local7) {
_local30 = _local7[_local39];
var _local3 = _local30;
var _local15 = _local3.attributes;
var _local5 = _local15.x / 1;
var _local31 = _local15.y / 1;
var _local4 = char_get_dmg();
var _local26 = _local3.attributes.armor;
_local4 = _local4 - _local26;
if (_local4 < 0) {
_local4 = 0;
}
var _local20 = _local3.attributes.hp / 1;
if (_local4 > _local20) {
_local4 = _local20;
}
var _local46 = _local5 - _local17;
var _local44 = get_x_scr(_local5);
var _local43 = get_y_scr(_local8);
var _local11 = random(3) + 1;
if (_local3.nodeName == "ppl") {
add_explosion(get_x_scr(_local5), _local43, 4);
_root.snd["body_impact" + _local11].start();
} else {
add_explosion(get_x_scr(_local5), _local43, 1);
_root.snd["object_impact" + _local11].start();
}
if (_ammo_id == 3) {
add_explosion(get_x_scr(_local5), _local43, 11);
}
if (_local4 > 0) {
var _local21 = _local3.nodeName;
_local20 = obj_take_dmg(_local3, _local4);
if (_local20 <= 0) {
add_explosion(get_x_scr(_local5), _local43, 4);
add_explosion(get_x_scr(_local5), _local43, 4);
if (_local21 == "ppl") {
_enemy_kiled++;
}
} else {
_local3.attributes.as = 5;
var _local16 = _local3.attributes.as / 1;
var _local19 = new flash.filters.GlowFilter(16777215, 0.8, _local16, _local16, 3, 1, true, false);
_local3.attributes.item_mc.filters = [_local19];
}
}
if (!_weap_penetration) {
return(true);
}
}
if (_local37 != -1) {
var _local46 = _local34 - _local17;
var _local43 = get_y_scr(_local40);
var _local44 = get_x_scr(_local34);
if (_weap_penetration) {
add_shoot_trace([(_char_x + (aim_get_x() * _char_side)) + _map_x, ((_game_height - _char_y) + _char_mc.aim_mc._y) - _map_y], [_local44, _local43], _weap_penetration_size, 3);
}
return(true);
}
}
function add_boss(item_xml) {
_boss_here++;
_bosses_hp = _bosses_hp + (item_xml.attributes.hp / 1);
_bosses_hp_max = _bosses_hp_max + (item_xml.attributes.hpmax / 1);
_face_mc.boss_mc.mask_mc._height = (106 * _bosses_hp) / _bosses_hp_max;
_face_mc.boss_mc._visible = true;
var _local7 = item_xml.attributes.type;
var _local2 = _face_mc.boss_mc.ico_mc;
var _local4 = _local2._width;
var _local5 = _local2._height;
var _local3 = _local2.attachMovie("ico_type" + _local7, "ico" + _local2.getNextHighestDepth(), _local2.getNextHighestDepth());
_local3._x = _local3._x + (_local4 / 2);
_local3._y = _local3._y + (_local5 / 2);
_local3._width = _local4;
_local3._height = _local5;
_local3.bg_mc._visible = false;
}
function refresh_info_tip() {
var _local4 = "";
_local4 = _local4 + ((_root.get_xml_lang("txt_name") + ":") + _root._login);
_local4 = _local4 + "\r";
_local4 = _local4 + ((((_root.get_xml_lang("txt_mish") + ":") + _current_map) + "/") + _map_xml.firstChild.childNodes.length);
_local4 = _local4 + "\r";
_local4 = _local4 + ((((_root.get_xml_lang("txt_capsules") + ":") + _char_capsule) + "/") + (_map_xml.firstChild.childNodes.length - 2));
_face_mc.info_mc.addHint();
_face_mc.info_mc.addHint(_local4);
_face_mc.info_mc.onRelease = function () {
_global.game._CGame_showminimap();
};
}
function show_bg() {
var _local4 = _root.main.createEmptyMovieClip("bg_scr", _root.bg_depth);
var _local3 = _local4.createEmptyMovieClip("body", _local4.getNextHighestDepth());
var _local5 = ("Jungli_back" + _bg_frame_id) + ".jpg";
_local3.attachMovie(_local5, "bg_mc", _local3.getNextHighestDepth());
}
function show_tiles() {
var _local28 = (_rw / _ts) + 1;
var _local30 = (_rh / _ts) + 1;
var _local13 = _root.main.createEmptyMovieClip("ts", _root.tiles_depth);
var _local29 = _root.main.createEmptyMovieClip("ds", _root.d_depth);
_local13.cacheAsBitmap = true;
var _local5 = 0;
var _local34 = "";
var _local35;
var _local7;
var _local8;
var _local6;
var _local33 = getTimer();
var _local18 = _tile_set;
var _local11 = -2 + Math.round(_map_x / _ts);
var _local12 = -2 + Math.round(_map_y / _ts);
_local11 = get_x_scr(_local11) - _map_x;
_local12 = get_y_scr(_local12) + _map_y;
var _local31 = _local11;
var _local27 = Math.round(_map_x / _ts);
var _local26 = Math.round(_map_y / _ts);
var _local20 = -1;
while (_local20 < _local30) {
_local12 = _local12 - _ts;
_local11 = _local31;
var _local16 = -1;
while (_local16 < _local28) {
_local11 = _local11 + _ts;
var _local10 = _local16 + _local27;
var _local9 = _local20 + _local26;
var _local14 = _lvls_gfxbg[_local10][_local9];
if (_local14 != 0) {
switch (_local14) {
case 2 :
case 3 :
case 10 :
case 20 :
case 21 :
_local5++;
_local8 = "t" + _local5;
_local6 = ("td_" + _local18) + _local14;
_local7 = {_x:_local11, _y:_local12};
_local29.attachMovie(_local6, _local8, _root.decor_depth + _local5, _local7);
break;
default :
_local5++;
_local8 = "t" + _local5;
_local6 = ("td_" + _local18) + _local14;
_local7 = {_x:_local11, _y:_local12};
_local13.attachMovie(_local6, _local8, _root.decor_depth + _local5, _local7);
}
}
var _local15 = _lvls[_local10][_local9];
switch (_local15) {
case 1 :
break;
case 0 :
case "t" :
_local5++;
var _local21 = _lvls_type[_local10][_local9];
_local6 = ("tg" + _local18) + _local21;
_local8 = "t" + _local5;
_local7 = {_x:_local11, _y:_local12};
var _local22 = _local13.attachMovie(_local6, _local8, _root.tiles_depth + _local5, _local7);
if (_lvls_m[_local10][_local9] != "") {
_local22.dtxt.text = _lvls_m[_local10][_local9];
}
if (_local15 == "t") {
_local5++;
_local8 = "t" + _local5;
_local6 = "tile_stairs";
_local7 = {_x:_local11, _y:_local12};
_local13.attachMovie(_local6, _local8, _root.bonus_depth + _local5, _local7);
}
break;
case undefined :
if (_global.show_lvl_editor) {
_local5++;
_local6 = "ts_border";
_local8 = "t" + _local5;
_local7 = {_x:_local11, _y:_local12};
_local22 = _local13.attachMovie(_local6, _local8, _root.tiles_depth + _local5, _local7);
}
break;
case 2 :
break;
case 3 :
break;
case "z" :
_local5++;
_local8 = "t" + _local5;
_local6 = "tile_gate";
_local7 = {_x:_local11, _y:_local12};
var _local19 = _local13.attachMovie(_local6, _local8, _root.bonus_depth + _local5, _local7);
_local19.gotoAndStop(_exit_frame_id);
_root.show_tip(2);
break;
case "q" :
_local5++;
_local8 = "tiles" + _local5;
_local6 = "tile_start";
_local7 = {_x:_local11, _y:_local12};
_local13.attachMovie(_local6, _local8, _root.bonus_depth + _local5, _local7);
break;
case "r" :
_local5++;
_local8 = "tiles" + _local5;
_local6 = "tile_stairs";
_local7 = {_x:_local11, _y:_local12};
_local13.attachMovie(_local6, _local8, _root.bonus_depth + _local5, _local7);
break;
case "a" :
var _local17 = (_local10 + ",") + _local9;
__CMap__set([_local10, _local9], "A");
var _local4 = __CMap_get_obj(_local17);
_local4.attributes.x = _local10;
_local4.attributes.y = _local9;
_local4.attributes.item_mc = "";
if (_local4.attributes.id_bak == undefined) {
_local4.attributes.id_bak = _local17;
}
if (_local4.attributes.armor == undefined) {
_local4.attributes.armor = 0;
} else {
_local4.attributes.armor = Number(_local4.attributes.armor);
}
if (_local4.attributes.hp <= 0) {
}
switch (_local4.nodeName) {
case "obj" :
if ((_local4.attributes.ter / 1) == 0) {
_l01[_local10][_local9] = 0;
}
if ((_local4.attributes.ter_up / 1) == 0) {
_l01[_local10][_local9 + 1] = 0;
}
if (_local4.attributes.hp != undefined) {
if (_local4.attributes.hpmax == undefined) {
_local4.attributes.hpmax = _local4.attributes.hp;
}
}
if (_local4.attributes.tall == undefined) {
_local4.attributes.tall = 10;
}
break;
case "ppl" :
if ((_local4.attributes.type / 1) == 12) {
_local4.attributes.exp_range = 2;
}
if (_local4.attributes.st == undefined) {
_local4.attributes.st = 1;
} else {
_local4.attributes.st = _local4.attributes.st / 1;
}
if (_local4.attributes.hide_range != undefined) {
_local4.attributes.hide_range = _local4.attributes.hide_range / 1;
_local4.attributes.st = 16;
}
if (_local4.attributes.hp == undefined) {
_local4.attributes.hp = 10;
}
if (_local4.attributes.hpmax == undefined) {
_local4.attributes.hpmax = _local4.attributes.hp;
}
if (_local4.attributes.speed == undefined) {
_local4.attributes.speed = 0.5;
}
if (_local4.attributes.tall != undefined) {
break;
}
_local4.attributes.tall = 8;
}
if ((_local4.attributes.boss / 1) == 1) {
add_boss(_local4);
}
add_obj(_local4);
break;
case "A" :
break;
default :
trace((("err#undefined(show_tiles):" + _local15) + ":") + typeof(_local15));
}
_local16++;
}
_local20++;
}
for (var _local32 in _objs) {
var _local25 = _objs[_local32];
add_mc(_local25);
}
}
function add_mc(item_xml) {
var _local9 = _o_mc;
var _local6 = item_xml.attributes;
var _local18 = _local6.x;
var _local16 = _local6.y;
var _local7 = get_x_scr(_local18) - _map_x;
var _local8 = get_y_scr(_local16) + _map_y;
var _local13 = {_x:_local7, _y:_local8};
if (((_local7 < -50) || (_local7 > (_rw + 50))) && ((_local6.boss / 1) != 1)) {
hide_obj(item_xml);
} else {
var _local5;
if ((_local6.item_mc == "") && (_local6.item_mc != undefined)) {
var _local17 = "t" + _local9.getNextHighestDepth();
var _local11 = "tile_obj" + _local6.type;
if (((item_xml.attributes.type == 22) || (item_xml.attributes.type == 25)) || (item_xml.attributes.type == 26)) {
_local9 = _o2_mc;
}
_local5 = _local9.attachMovie(_local11, _local17, _local9.getNextHighestDepth(), _local13);
item_xml.attributes.item_mc = _local5;
_local5.body.item_xml = item_xml;
if (_global.show_lvl_editor) {
var _local15 = new flash.filters.GlowFilter(16777215, 0.7, 5, 5, 10, 2, false, false);
var _local14 = new flash.filters.GlowFilter(16711680, 0.7, 5, 5, 10, 2, false, false);
_local5.filters = [_local15, _local14];
}
if (item_xml.attributes.type == 27) {
_root.show_tip(27);
add_root_txt(_local7, _local8, get_lang_txt("txt_save_this_ship"));
}
} else {
_local5 = _local6.item_mc;
_local5._x = _local7;
_local5._y = _local8;
}
if (item_xml.attributes.st != undefined) {
_local5.body.gotoAndStop(item_xml.attributes.st);
}
if ((item_xml.attributes.speed != undefined) && (item_xml.nodeName == "ppl")) {
if ((item_xml.attributes.speed / 1) > 0) {
_local5._xscale = -100;
} else {
_local5._xscale = 100;
}
}
if (item_xml.attributes.as > 0) {
var _local10 = item_xml.attributes.as / 1;
var _local12 = new flash.filters.GlowFilter(16777215, 0.8, _local10, _local10, 3, 1, true, false);
item_xml.attributes.item_mc.filters = [_local12];
}
}
}
function start_game() {
trace("\r__CGame::start_game");
set_char_lives(3);
_char_continues = 3;
_char_cat_lives = 0;
_score = 0;
_char_historys = 0;
_char_capsule = 0;
_char_capsules_per_lvl = {};
_enemy_kiled = 0;
_face_mc.c_dtxt.text = "x" + _char_capsule;
var _local2 = 0;
while (_local2 < 10) {
_weap_enabled[_local2] = false;
_local2++;
}
__CMap_refresh_map();
}
function cheat_winer() {
win_game();
}
function cheat_loser() {
lose_game(2);
}
function cheat_weaps() {
var _local2 = 1;
while (_local2 < 10) {
_weap_enabled[_local2] = true;
_local2++;
}
weap_refresh_icos();
}
function add_turtle() {
var _local5 = __CMap_get_start_xy();
if (_local5 == -1) {
trace("err#didn`t_found_start_xy(q)");
return(false);
}
_char_xspeed = 0;
_char_xaspeed = 0;
_char_yspeed = 0;
_char_state = 1;
_char_acr = false;
_global.char_animation = 1;
_char_jumping = false;
_char_firing = false;
_char_m_right = false;
_char_m_left = false;
_char_up = false;
_char_down = false;
_stairs = false;
__CCondition_removeAll();
_face_mc.c_dtxt.text = "x" + _char_capsule;
_char_side = 1;
_bonuses_scores = 0;
_map_x = 0;
_map_y = 0;
_map_x_max = (get_x_scr(maxtiles_x) - _game_width) - _ts;
_face_mc.lives_dtxt.text = _char_lives;
_ammo = _ammo_max;
_face_mc.ammo_mc._width = (48 * _ammo) / _ammo_max;
_face_mc.weap_mc.body_mc.gotoAndStop(_weap_type);
_face_mc.weap1_mc.onRelease = function () {
_global.game.weap_set_type(1);
};
_face_mc.weap2_mc.onRelease = function () {
_global.game.weap_set_type(2);
};
_face_mc.weap3_mc.onRelease = function () {
_global.game.weap_set_type(3);
};
_face_mc.weap4_mc.onRelease = function () {
_global.game.weap_set_type(4);
};
weap_refresh_icos();
_bosses_hp = 0;
_bosses_hp_max = 0;
_face_mc.boss_mc._visible = false;
var _local9 = _local5[0];
var _local8 = _local5[1];
_char_x = ((_local9 * _tile_size) / 1) + (_tile_size / 2);
_char_y = (_local8 * _tile_size) / 1;
if (_char_x > (_game_width / 2)) {
_map_x = _char_x - (_game_width / 2);
_char_x = _game_width / 2;
}
if (_char_y > (_game_height / 2)) {
_map_y = _char_y - (_game_height / 2);
_char_y = _game_height / 2;
}
trace("__root.main:" + _root.main);
trace("__char_lib_name:" + _char_lib_name);
_char_mc = _root.main.attachMovie(_char_lib_name, "char", _root.char_depth);
trace("__char_mc:" + _char_mc);
_face_mc.char_face_mc.gotoAndStop(_char_av_id);
char_show_hp();
trace("__face_mc:" + _face_mc);
trace("__char_av_id:" + _char_av_id);
trace("__char_x:" + _char_x);
if (_global.show_lvl_editor) {
_fatr_mc = _root.main.attachMovie("char_fat", "fat_r", _root.main.getNextHighestDepth());
_fatl_mc = _root.main.attachMovie("char_fat", "fat_l", _root.main.getNextHighestDepth());
_fatu_mc = _root.main.attachMovie("char_tall", "fat_u", _root.main.getNextHighestDepth());
}
_face_mc.menu_but.text_dtxt.text = _global.xml_lang.txt_facemenu;
_face_mc.menu_but.onRelease = function () {
_root.show_escmenu();
};
_face_mc.hpbar_mc.mask_mc._theight;
_face_mc.hpbar_mc.mask_mc.sm = 4;
_face_mc.hpbar_mc.mask_mc.sa = 0.5;
_face_mc.hpbar_mc.mask_mc.s = 0;
_face_mc.hpbar_mc.mask_mc.onEnterFrame = function () {
var _local2 = this._theight - this._height;
if (_local2 != 0) {
if (_local2 < 0) {
this.s = this.s - this.sa;
if (this.s < (-this.sm)) {
this.s = -this.sm;
}
if (this.s < _local2) {
this.s = _local2;
}
}
if (_local2 > 0) {
this.s = this.s + this.sa;
if (this.s > this.sm) {
this.s = this.sm;
}
if (this.s > _local2) {
this.s = _local2;
}
}
this._height = this._height + this.s;
} else {
this.s = 0;
}
};
if (_global.show_lvl_editor) {
_root.main.char.onEnterFrame = function () {
_global.game.editor_turn();
};
} else {
_root.main.char.onEnterFrame = function () {
if (_global._game_paused <= 0) {
_global.game.turn();
}
if (!_global._game_paused) {
_root.anykey_count++;
_root.main.game.turn();
if (_root.anykey_count == 140) {
_root.show_tip(100);
}
}
};
turn();
}
var _local7 = _root.main.createEmptyMovieClip("keys_mc", _root.keys_depth);
var _local6 = _root.main.createEmptyMovieClip("keys2_mc", _root.keys2_depth);
_local7.keys = {z:false, up:false, down:false, r:false, l:false, s:false};
_local6.keys = {z:false, up:false, down:false, r:false, l:false, s:false};
_local7._face_mc = _face_mc;
_local6._face_mc = _face_mc;
set_keys();
_char_xscale = _root.main.char._xscale;
}
function set_keys() {
var _local7 = _root.main.keys_mc;
var _local6 = _root.main.keys2_mc;
_local7.onEnterFrame = function () {
var _local4 = this.keys;
var _local5 = {z:Key.isDown(16), up:Key.isDown(87), down:Key.isDown(83), r:Key.isDown(68), l:Key.isDown(65), s:Key.isDown(32)};
if (_local4.z != _local5.z) {
_root.anykey_count = 0;
if (_local4.z) {
_global.game.char_firing(false);
} else {
_global.game.char_firing(true);
}
}
if (_local4.down != _local5.down) {
_root.anykey_count = 0;
if (_local4.down) {
_global.game.char_set_state(1);
this._face_mc.keypad.key_down.gotoAndStop(1);
} else {
_global.game.char_set_state(0);
this._face_mc.keypad.key_down.gotoAndStop(2);
}
}
if (_local4.up != _local5.up) {
_root.anykey_count = 0;
if (_local4.up) {
_global.game.char_set_state(1);
this._face_mc.keypad.key_up.gotoAndStop(1);
} else {
_global.game.char_set_state(2);
this._face_mc.keypad.key_up.gotoAndStop(2);
}
}
if (_local4.l != _local5.l) {
_root.anykey_count = 0;
if (_local4.l) {
_global.game.char_set_m_l(false);
this._face_mc.keypad.key_left.gotoAndStop(1);
} else {
_global.game.char_set_m_l(true);
this._face_mc.keypad.key_left.gotoAndStop(2);
}
}
if (_local4.r != _local5.r) {
_root.anykey_count = 0;
if (_local4.r) {
_global.game.char_set_m_r(false);
this._face_mc.keypad.key_right.gotoAndStop(1);
} else {
_global.game.char_set_m_r(true);
this._face_mc.keypad.key_right.gotoAndStop(2);
}
}
if (_local4.s != _local5.s) {
_root.anykey_count = 0;
if (_local4.s) {
_global.game.char_set_jump(false);
this._face_mc.keypad.key_space.gotoAndStop(1);
} else {
_global.game.char_set_jump(true);
this._face_mc.keypad.key_space.gotoAndStop(2);
}
}
this.keys = _local5;
};
_local6.onEnterFrame = function () {
var _local4 = this.keys;
if (_local4.z != Key.isDown(90)) {
_root.anykey_count = 0;
if (_local4.z) {
_global.game.char_firing(false);
} else {
_global.game.char_firing(true);
}
}
if (_local4.down != Key.isDown(40)) {
_root.anykey_count = 0;
if (_local4.down) {
_global.game.char_set_state(1);
this._face_mc.keypad.key_down.gotoAndStop(1);
} else {
_global.game.char_set_state(0);
this._face_mc.keypad.key_down.gotoAndStop(2);
}
}
if (_local4.up != Key.isDown(38)) {
_root.anykey_count = 0;
if (_local4.up) {
_global.game.char_set_state(1);
this._face_mc.keypad.key_up.gotoAndStop(1);
} else {
_global.game.char_set_state(2);
this._face_mc.keypad.key_up.gotoAndStop(2);
}
}
if (_local4.l != Key.isDown(37)) {
_root.anykey_count = 0;
if (_local4.l) {
_global.game.char_set_m_l(false);
this._face_mc.keypad.key_left.gotoAndStop(1);
} else {
_global.game.char_set_m_l(true);
this._face_mc.keypad.key_left.gotoAndStop(2);
}
}
if (_local4.r != Key.isDown(39)) {
_root.anykey_count = 0;
if (_local4.r) {
_global.game.char_set_m_r(false);
this._face_mc.keypad.key_right.gotoAndStop(1);
} else {
_global.game.char_set_m_r(true);
this._face_mc.keypad.key_right.gotoAndStop(2);
}
}
this.keys = {z:Key.isDown(90), up:Key.isDown(38), down:Key.isDown(40), r:Key.isDown(39), l:Key.isDown(37), s:Key.isDown(32)};
};
}
function switch_pause() {
}
function pause_game() {
_global._game_paused++;
_char_mc._visible = false;
}
function unpause_game() {
_global._game_paused--;
if (_global._game_paused < 0) {
_global._game_paused = 0;
}
_char_mc._visible = true;
}
function get_pause_game() {
if (_global._game_paused > 0) {
return(true);
}
return(false);
}
function lose_game(reason_id) {
_char_continues--;
gfx_end();
if (_char_continues <= 0) {
var _local10 = getTimer() - _started_time;
var _local7 = 0;
var _local6 = _enemy_kiled * 25;
var _local3 = _local7 + _local6;
_local3 = Math.round(_local3);
_score = _score + _local3;
var _local4 = _bonuses_scores;
_bonuses_scores = 0;
_score = _score + _local4;
}
var _local5 = {_char_continues:_char_continues, reason_id:reason_id, total_score:_score};
_root.show_lose_menu(_local5);
}
function get_lang_txt(attr) {
return(_root.get_xml_lang(attr));
}
var ddx1 = 350;
var ddx2 = 370;
var ddx3 = 400;
}
Symbol 2468 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 2469 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.126";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 2470 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 2471 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 2472 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(MovieClip(this), _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local1 = targetDepth;
var _local2 = targetDepth;
if (direction == "down") {
while (depthTable[_local2] != undefined) {
_local2--;
}
return(_local2);
}
while (depthTable[_local1] != undefined) {
_local1++;
}
return(_local1);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 2473 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local8 = false;
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
_local8 = true;
}
if (_local8) {
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 2474 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 2475 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 2476 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local4 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local4 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = mx.controls.scrollClasses.ScrollBar(createObject("HScrollBar", "hSB", 1001));
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local4)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local4, 0, colCount - _local4);
viewableColumns = _local4;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local5 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local5 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = mx.controls.scrollClasses.ScrollBar(createObject("VScrollBar", "vSB", 1002));
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local5 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local5, 0, (rwCount - _local5) + _local8);
viewableRows = _local5;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = mx.controls.scrollClasses.ScrollBar(createObject("FHScrollBar", "hSB", 1001));
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.126";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 2477 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
_scrollPosition = pos;
if (isScrolling != true) {
pos = Math.min(pos, maxPos);
pos = Math.max(pos, minPos);
var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top;
scrollThumb_mc.move(0, _local3);
}
//return(scrollPosition);
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
super.init();
_scrollPosition = 0;
tabEnabled = false;
focusEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (scrollTrack_mc == undefined) {
setSkin(skinIDTrack, scrollTrackName);
}
scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (upArrow_mc == undefined) {
_local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = onUpArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _local2.height;
_minWidth = _local2.width;
if (downArrow_mc == undefined) {
_local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = onDownArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
if (skinID == skinIDUpArrow) {
o.falseUpSkin = upArrowUpName;
o.falseDownSkin = upArrowDownName;
o.falseOverSkin = upArrowOverName;
} else {
o.falseUpSkin = downArrowUpName;
o.falseDownSkin = downArrowDownName;
o.falseOverSkin = downArrowOverName;
}
var _local3 = createObject(linkageName, id, skinID, o);
this[id].visible = false;
this[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = new Object();
_local2.validateNow = true;
_local2.tabEnabled = false;
_local2.leftSkin = thumbTopName;
_local2.middleSkin = thumbMiddleName;
_local2.rightSkin = thumbBottomName;
_local2.gripSkin = thumbGripName;
createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local4;
var _local2 = scrollTrack_mc;
pageSize = pSize;
largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
minPos = Math.max(mnPos, 0);
maxPos = Math.max(mxPos, 0);
_scrollPosition = Math.max(minPos, _scrollPosition);
_scrollPosition = Math.min(maxPos, _scrollPosition);
if (((maxPos - minPos) > 0) && (enabled)) {
var _local5 = _scrollPosition;
if (!initializing) {
upArrow_mc.enabled = true;
downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = startTrackScroller);
_local2.onRelease = releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = stopScrolling);
_local2.onReleaseOutside = releaseScrolling;
_local2.useHandCursor = false;
if (scrollThumb_mc == undefined) {
createThumb();
}
var _local3 = scrollThumb_mc;
if (scrollTrackOverName.length > 0) {
_local2.onRollOver = trackOver;
_local2.onRollOut = trackOut;
}
_local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height;
if (_local4 < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
_local4 = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local4);
}
_local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos);
_local5 = Math.min(_local5, maxPos);
scrollPosition = (Math.max(_local5, minPos));
} else {
scrollThumb_mc.__set__visible(false);
if (!initializing) {
upArrow_mc.enabled = false;
downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (initializing) {
scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function draw(Void) {
if (initializing) {
initializing = false;
scrollTrack_mc.visible = true;
upArrow_mc.__set__visible(true);
downArrow_mc.__set__visible(true);
}
size();
}
function size(Void) {
if (_height == 1) {
return(undefined);
}
if (upArrow_mc == undefined) {
return(undefined);
}
var _local3 = upArrow_mc.__get__height();
var _local2 = downArrow_mc.__get__height();
upArrow_mc.move(0, 0);
var _local4 = scrollTrack_mc;
_local4._y = _local3;
_local4._height = (virtualHeight - _local3) - _local2;
downArrow_mc.move(0, virtualHeight - _local2);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
if (k == 36) {
if (scrollPosition != 0) {
scrollPosition = (0);
dispatchScrollEvent(minMode);
}
return(true);
}
if (k == 35) {
if (scrollPosition < maxPos) {
scrollPosition = (maxPos);
dispatchScrollEvent(maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local3 = smallScroll;
if (inc != "Line") {
_local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll));
}
var _local2 = _scrollPosition + (mode * _local3);
if (_local2 > maxPos) {
_local2 = maxPos;
} else if (_local2 < minPos) {
_local2 = minPos;
}
if (scrollPosition != _local2) {
scrollPosition = (_local2);
var _local4 = ((mode < 0) ? (minusMode) : (plusMode));
dispatchScrollEvent(inc + _local4);
}
}
function startTrackScroller(Void) {
_parent.pressFocus();
if (_parent.scrollTrackDownName.length > 0) {
if (_parent.scrollTrackDown_mc == undefined) {
_parent.setSkin(skinIDTrackDown, scrollTrackDownName);
} else {
_parent.scrollTrackDown_mc.visible = true;
}
}
_parent.trackScroller();
_parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
clearInterval(scrolling);
if (inc == "Page") {
trackScroller();
} else {
scrollIt(inc, mode);
}
scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode);
}
function trackScroller(Void) {
if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) {
scrollIt("Page", 1);
} else if (scrollThumb_mc._y > _ymouse) {
scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
_parent.releaseFocus();
stopScrolling();
_parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
if (_parent.scrollTrackOverName.length > 0) {
if (_parent.scrollTrackOver_mc == undefined) {
_parent.setSkin(skinIDTrackOver, scrollTrackOverName);
} else {
_parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 2478 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.2.126";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 2479 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
ymin = _ymin;
ymax = _ymax;
datamin = _datamin;
datamax = _datamax;
}
function dragThumb(Void) {
scrollMove = _ymouse - lastY;
scrollMove = scrollMove + _y;
if (scrollMove < ymin) {
scrollMove = ymin;
} else if (scrollMove > ymax) {
scrollMove = ymax;
}
_parent.isScrolling = true;
_y = scrollMove;
var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin;
_parent.scrollPosition = _local2;
_parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
_parent.isScrolling = false;
_parent.dispatchScrollEvent("ThumbPosition");
_parent.dispatchScrollChangedEvent();
delete onMouseMove;
}
function onPress(Void) {
_parent.pressFocus();
lastY = _ymouse;
onMouseMove = dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
super.draw();
if (grip_mc == undefined) {
setSkin(3, gripSkin);
}
}
function size() {
super.size();
grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 2480 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 2481 MovieClip [__Packages.mx.controls.TextArea] Frame 0
class mx.controls.TextArea extends mx.core.ScrollView
{
var label, invalidate, initText, dispatchValueChangedEvent, getHPosition, setHPosition, getVPosition, setVPosition, _color, focusTextField, tfx, tfy, tfw, tfh, doLater, _vpos, _hpos, hookedV, vScroller, hookedH, hScroller, getViewMetrics, __get__width, __get__height, hScrollPolicy, vScrollPolicy, getStyle, getFocusManager, addEventListener, removeEventListener, _getTextFormat;
function TextArea () {
super();
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(x) {
label.maxChars = x;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(s) {
label.restrict = ((s == "") ? null : (s));
//return(restrict);
}
function get wordWrap() {
return(label.wordWrap);
}
function set wordWrap(s) {
label.wordWrap = s;
invalidate();
//return(wordWrap);
}
function get editable() {
return(__editable);
}
function set editable(x) {
__editable = x;
label.type = (x ? "input" : "dynamic");
//return(editable);
}
function get password() {
return(label.password);
}
function set password(s) {
label.password = s;
//return(password);
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
var _local2 = label;
if (_local2.html == true) {
return(_local2.htmlText);
}
return(_local2.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
invalidate();
}
dispatchValueChangedEvent(t);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
label.hscroll = pos;
label.background = false;
//return(hPosition);
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
label.scroll = pos + 1;
label.background = false;
//return(vPosition);
}
function get maxVPosition() {
var _local2 = label.maxscroll - 1;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
var _local2 = label.maxhscroll;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function init(Void) {
super.init();
label.styleName = this;
_color = mx.core.UIObject.textColorList;
focusTextField = label;
label.owner = this;
label.onSetFocus = function (x) {
this._parent.onSetFocus(x);
};
label.onKillFocus = function (x) {
this._parent.onKillFocus(x);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = function () {
this.owner.adjustScrollBars();
this.owner.dispatchEvent({type:"change"});
this.owner.dispatchValueChangedEvent(this.owner.text);
};
label.onScroller = function () {
this.owner.hPosition = this.hscroll;
this.owner.vPosition = this.scroll - 1;
};
if (text == undefined) {
text = ("");
}
}
function createChildren(Void) {
super.createChildren();
label.autoSize = "none";
}
function layoutContent(x, y, totalW, totalH, displayW, displayH) {
var _local2 = label;
if ((((tfx != x) || (tfy != y)) || (tfw != displayW)) || (tfh != displayH)) {
tfx = x;
tfy = y;
tfw = displayW;
tfh = displayH;
_local2.move(tfx, tfy);
_local2.setSize(tfw, tfh);
doLater(this, "adjustScrollBars");
}
}
function scrollChanged(Void) {
var _local2 = Selection;
if (_local2.lastBeginIndex != undefined) {
restoreSelection();
}
label.background = false;
}
function onScroll(docObj) {
var _local3 = label;
super.onScroll(docObj);
_local3.hscroll = hPosition + 0;
_local3.scroll = vPosition + 1;
_vpos = _local3.scroll;
_hpos = _local3.hscroll;
_local3.background = false;
if (hookedV != true) {
vScroller.addEventListener("scrollChanged", this);
hookedV = true;
}
if (hookedH != true) {
hScroller.addEventListener("scrollChanged", this);
hookedH = true;
}
}
function size(Void) {
var _local3 = getViewMetrics();
var _local7 = _local3.left + _local3.right;
var _local4 = _local3.top + _local3.bottom;
var _local6 = _local3.left;
var _local5 = _local3.top;
tfx = _local6;
tfy = _local5;
tfw = __get__width() - _local7;
tfh = __get__height() - _local4;
super.size();
label.move(tfx, tfy);
label.setSize(tfw, tfh);
if (__get__height() <= 40) {
hScrollPolicy = "off";
vScrollPolicy = "off";
}
doLater(this, "adjustScrollBars");
}
function setEnabled(enable) {
vScroller.enabled = enable;
hScroller.enabled = enable;
label.type = (((editable == false) || (enable == false)) ? "dynamic" : "input");
label.selectable = enable;
var _local3 = getStyle((enable ? "color" : "disabledColor"));
if (_local3 == undefined) {
_local3 = (enable ? 0 : 8947848);
}
setColor(_local3);
}
function setColor(col) {
label.textColor = col;
}
function setFocus(Void) {
Selection.setFocus(label);
}
function onSetFocus(x) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
getFocusManager().defaultPushButtonEnabled = false;
addEventListener("keyDown", this);
super.onSetFocus(x);
}
function onKillFocus(x) {
getFocusManager().defaultPushButtonEnabled = true;
removeEventListener("keyDown", this);
super.onKillFocus(x);
}
function restoreSelection(x) {
var _local2 = Selection;
Selection.setSelection(_local2.lastBeginIndex, _local2.lastEndIndex);
label.scroll = _vpos;
label.hscroll = _hpos;
}
function getLineOffsets(Void) {
var _local16 = _getTextFormat();
var _local18 = _local16.getTextExtent2(label.text);
var _local5 = _root._getTextExtent;
_local5.setNewTextFormat(TextFormat(_local16));
var _local14 = label.wordWrap;
var _local9 = 0;
var _local7 = (label._width - 2) - 2;
var _local12 = new Array();
var _local17 = new String(label.text);
var _local15 = _local17.split("\r");
var _local11 = 0;
while (_local11 < _local15.length) {
_local12.push(_local9);
var _local4 = _local15[_local11];
_local5.text = _local4;
var _local13 = Math.ceil(_local5.textWidth / _local7);
var _local10 = Math.floor(_local4.length / _local13);
var _local3;
while (_local14 && (_local5.textWidth > _local7)) {
_local3 = _local4.indexOf(" ", _local10);
var _local6;
if (_local3 == -1) {
_local3 = _local4.lastIndexOf(" ");
if (_local3 == -1) {
_local3 = _local10;
}
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
if (_local5.textWidth > _local7) {
while (_local5.textWidth > _local7) {
var _local8 = _local3;
_local3 = _local4.lastIndexOf(" ", _local3 - 1);
if (_local3 == -1) {
_local3 = _local8 - 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
} else if (_local5.textWidth < _local7) {
var _local8 = _local3;
while (_local5.textWidth < _local7) {
_local8 = _local3;
_local3 = _local4.indexOf(" ", _local3 + 1);
if (_local3 == -1) {
if (_local4.indexOf(" ", 0) != -1) {
break;
}
_local3 = _local8 + 1;
}
_local6 = _local4.substr(0, _local3);
_local5.text = _local6;
}
_local3 = _local8;
}
_local9 = _local9 + _local3;
_local12.push(_local9 + 1);
_local4 = _local4.substr(_local3);
if (_local4.charAt(0) == " ") {
_local4 = _local4.substr(1, _local4.length - 1);
_local9 = _local9 + 1;
}
_local5.text = _local4;
}
_local9 = _local9 + (_local4.length + 1);
_local11++;
}
return(_local12);
}
function keyDown(e) {
var _local5 = e.code;
if (_local5 == 34) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = Math.min(label.bottomScroll + 1, label.maxscroll);
if (_local2 == label.maxscroll) {
var _local4 = label.length;
Selection.setSelection(_local4, _local4);
} else {
label.scroll = _local2;
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
}
} else if (_local5 == 33) {
var _local6 = (label.bottomScroll - label.scroll) + 1;
var _local3 = getLineOffsets();
var _local2 = label.scroll - 1;
if (_local2 < 1) {
Selection.setSelection(0, 0);
} else {
Selection.setSelection(_local3[_local2 - 1], _local3[_local2 - 1]);
label.scroll = Math.max(_local2 - _local6, 1);
}
}
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = true;
_local2.wordWrap = wordWrap == true;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = ((editable == true) ? "input" : "dynamic");
size();
_local2.background = false;
}
function adjustScrollBars() {
var _local2 = label;
var _local4 = (_local2.bottomScroll - _local2.scroll) + 1;
var _local3 = (_local4 + _local2.maxscroll) - 1;
if (_local3 < 1) {
_local3 = 1;
}
var _local5 = 0;
if ((_local2.textWidth + 5) > _local2._width) {
if (!_local2.wordWrap) {
_local5 = _local2._width + _local2.maxhscroll;
}
} else {
_local2.hscroll = 0;
_local2.background = false;
}
if ((_local2.height / _local4) != Math.round(_local2.height / _local4)) {
_local3--;
}
setScrollProperties(_local5, 1, _local3, _local2.height / _local4);
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
super.setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding);
if (vScroller == undefined) {
hookedV = false;
}
if (hScroller == undefined) {
hookedH = false;
}
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
function get styleSheet() {
return(label.styleSheet);
}
function set styleSheet(v) {
label.styleSheet = v;
//return(styleSheet);
}
static var symbolName = "TextArea";
static var symbolOwner = mx.controls.TextArea;
static var version = "2.0.2.126";
var className = "TextArea";
var initializing = true;
var clipParameters = {text:1, wordWrap:1, editable:1, maxChars:1, restrict:1, html:1, password:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextArea.prototype.clipParameters, mx.core.ScrollView.prototype.clipParameters);
var __vScrollPolicy = "auto";
var __hScrollPolicy = "auto";
var __editable = true;
}
Symbol 2482 MovieClip [__Packages.CUniteScores] Frame 0
class CUniteScores
{
var ScoreAPI, _user_name;
function CUniteScores () {
trace("ru.badim.CUniteScores.1.3");
_root._lockroot = true;
ini();
}
function ini() {
var _local3 = _root._url;
ScoreAPI = new LocalConnection();
_root.kongregateServices.connect();
}
function set_name(val) {
_user_name = val;
}
function send_scores(scores, add_on) {
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", scores);
_root.HPScoreService.postScore(scores, add_on);
_root.kongregateStats.submit(add_on, scores);
}
}
Symbol 2483 MovieClip [__Packages.CLoader] Frame 0
class CLoader
{
var load_items, load_xmls, _show_tips, _show_bigs, _bigs_count, _bigs_count_max, _big_screen_id, _big_screen_depth, _big_loading_bar_width, _big_need_to_unload, _big_time, _big_timeout, _bg_mc, _big_loading_bar_mc;
function CLoader (show_tips, show_bigs, big_screen_id, big_screen_depth, big_loading_bar_width) {
trace("ru.badim.CLoader.1.7");
load_items = [];
load_xmls = [];
_show_tips = ((show_tips == undefined) ? false : (show_tips));
_show_bigs = ((show_bigs == undefined) ? true : (show_bigs));
_bigs_count = 0;
_bigs_count_max = 0;
_big_screen_id = big_screen_id;
_big_screen_depth = big_screen_depth;
_big_loading_bar_width = big_loading_bar_width;
_big_need_to_unload = false;
_big_time = 0;
_big_timeout = 40000;
}
function trace_all() {
var _local5 = "";
var _local3 = 0;
while (_local3 < load_xmls.length) {
var _local4;
if (load_xmls[_local3][2] != undefined) {
_local4 = load_xmls[_local3][2];
} else {
_local4 = load_xmls[_local3][0];
}
_local5 = _local5 + ((((((((_local4 + "(") + load_xmls[_local3][1]) + ")") + "(") + get_now()) - load_xmls[_local3][4]) + ")") + "\r");
_local3++;
}
if (load_items.length > 0) {
_local5 = _local5 + (_global.xml_lang.loading_gfx + "\r");
_local3 = 0;
while (_local3 < load_items.length) {
if (load_items[_local3][2] != undefined) {
var _local4 = load_items[_local3][2];
} else {
var _local4 = "\u0420\u0435\u0441\u0443\u0440\u0441\u044B";
}
_local5 = _local5 + ((((((((_local4 + "(") + load_items[_local3][1]) + ")") + "(") + get_now()) - load_items[_local3][4]) + ")") + "\r");
_local3++;
}
}
trace("----------");
trace(_local5);
trace("----------");
}
function refresh_big_tips() {
update_tip();
_bg_mc.test_dtxt.text = "";
return(false);
while (_local3 < load_xmls.length) {
var _local4;
if (load_xmls[_local3][2] != undefined) {
_local4 = load_xmls[_local3][2];
} else {
_local4 = load_xmls[_local3][0];
}
_bg_mc.test_dtxt.text = _bg_mc.test_dtxt.text + (_local4 + "\r");
_local3++;
}
if (load_items.length > 0) {
_bg_mc.test_dtxt.text = _bg_mc.test_dtxt.text + (_global.xml_lang.loading_gfx + "\r");
var _local3 = 0;
while (_local3 < load_items.length) {
if (load_items[_local3][2] != undefined) {
var _local4 = load_items[_local3][2];
} else {
var _local4 = "\u0420\u0435\u0441\u0443\u0440\u0441\u044B";
}
_bg_mc.test_dtxt.text = _bg_mc.test_dtxt.text + (_local4 + "\r");
_local3++;
}
}
}
function get_now() {
var _local1 = new Date();
return(_local1.valueOf());
}
function add_big() {
if (_show_bigs) {
if (_bigs_count == 0) {
_bg_mc = _root.attachMovie(_big_screen_id, "big_screen", _big_screen_depth);
_bg_mc.onRelease = function () {
};
_bg_mc.onPress = function () {
};
_big_loading_bar_mc = _bg_mc.loading_bar_mc;
_big_loading_bar_mc._width = 0;
_big_loading_bar_mc._twidth = 0;
_big_loading_bar_mc.ws = 0.3;
_big_loading_bar_mc._speed = 2;
_big_loading_bar_mc._mspeed = 15;
_big_loading_bar_mc._mc = _bg_mc;
_big_loading_bar_mc._maxw = _big_loading_bar_width;
_bg_mc.loading_bar_masked_mc._visible = false;
_bg_mc.loading_bar_empty_mc._visible = false;
_big_loading_bar_mc.onEnterFrame = function () {
var _local2 = this._twidth - this._width;
if (_local2 != 0) {
if (_local2 > 0) {
this.ws = this.ws + this._speed;
if (this.ws > this._mspeed) {
this.ws = this._mspeed;
}
if (this.ws > _local2) {
this.ws = _local2;
}
}
} else {
this.ws = 0.3;
}
this._width = this._width + this.ws;
if (this._width >= this._maxw) {
this._mc.unloadMovie();
}
};
_big_time = get_now();
}
_bigs_count++;
_bigs_count_max++;
refresh_big_tips();
_big_need_to_unload = false;
}
}
function show_big_bar() {
if ((_bigs_count_max == _bigs_count) || (_bigs_count == 0)) {
_big_loading_bar_mc._twidth = _big_loading_bar_width;
} else {
_big_loading_bar_mc._twidth = 1 - ((_bigs_count / _bigs_count_max) * _big_loading_bar_width);
}
}
function unload_big() {
_bg_mc.unloadMovie();
_bigs_count_max = 0;
_bigs_count = 0;
_big_need_to_unload = false;
}
function remove_big() {
if (_show_bigs) {
_bigs_count--;
refresh_big_tips();
show_big_bar();
if (_bigs_count < 1) {
_big_need_to_unload = true;
}
}
}
function add_mc(mc_name, big, task_name) {
if (big == undefined) {
big = false;
}
load_items.push([mc_name, big, task_name, true, get_now()]);
show_ls();
if (big) {
add_big();
}
}
function add_xml(id, big, task_name, item_xml) {
if (big == undefined) {
big = false;
}
trace("add_xml:" + id);
load_xmls.push([id, big, task_name, item_xml, get_now()]);
show_ls();
update_tip();
if (big) {
add_big();
}
}
function remove_all() {
load_items = [];
load_xmls = [];
_bigs_count = 0;
_bigs_count_max = 0;
remove_big();
}
function remove_mc(id) {
var _local2 = load_items[id][1];
if (_local2) {
remove_big();
}
load_items.splice(id, 1);
if ((load_items.length == 0) && (load_xmls.length == 0)) {
hide_ls();
}
update_tip();
}
function remove_xml(id) {
trace("remove_xml:" + id);
var _local3;
var _local2 = 0;
while (_local2 < load_xmls.length) {
if (id == load_xmls[_local2][0]) {
_local3 = load_xmls[_local2][1];
load_xmls.splice(_local2, 1);
break;
}
_local2++;
}
if (_local3) {
remove_big();
}
update_tip();
if ((load_items.length == 0) && (load_xmls.length == 0)) {
hide_ls();
}
}
function exist_xml(id) {
var _local3 = 0;
while (_local3 < load_xmls.length) {
var _local2 = 0;
while (_local2 < load_xmls[_local3][0].length) {
if (id.charAt(_local2) == "*") {
return(true);
}
if (id.charAt(_local2) == load_xmls[_local3][0].charAt(_local2)) {
if ((_local2 + 1) == load_xmls[_local3][0].length) {
return(true);
}
} else {
break;
}
_local2++;
}
_local3++;
}
return(false);
}
function turn() {
var _local2 = 0;
while (_local2 < load_items.length) {
if (load_items[_local2][0]._url == undefined) {
remove_mc(_local2);
return(true);
}
var _local5 = get_now() - load_items[_local2][4];
if (_local5 > _big_timeout) {
trace("#ERROR#BIG_TIMEOUT_MC:" + load_items[_local2][0]);
remove_mc(_local2);
return(true);
}
_local2++;
}
_local2 = 0;
while (_local2 < load_xmls.length) {
var _local5 = get_now() - load_xmls[_local2][4];
if (_local5 > _big_timeout) {
trace("#ERROR#BIG_TIMEOUT_XML:" + load_xmls[_local2][0]);
trace((_local5 + ":") + _big_timeout);
remove_xml(load_xmls[_local2][0]);
return(true);
}
_local2++;
}
var _local7 = 0;
var _local6 = 0;
_local2 = 0;
while (_local2 < load_items.length) {
if (load_items[_local2][3]) {
if (load_items[_local2][0].getBytesLoaded() != 0) {
load_items[_local2][3] = false;
update_tip();
}
}
var _local4 = load_items[_local2][0].getBytesLoaded();
var _local3 = load_items[_local2][0].getBytesTotal();
trace((((load_items[_local2][0]._url + ":") + _local4) + "/") + _local3);
if ((_local4 >= _local3) && (_local3 > 0)) {
remove_mc(_local2);
return(true);
}
_local7 = _local7 + _local4;
_local6 = _local6 + _local3;
_local2++;
}
if (load_xmls.length > 0) {
show_big_bar();
}
if (_bigs_count_max < 2) {
_bg_mc.loading_bar_masked_mc._visible = false;
_bg_mc.loading_bar_empty_mc._visible = false;
} else {
_bg_mc.loading_bar_masked_mc._visible = true;
_bg_mc.loading_bar_empty_mc._visible = true;
}
if (_big_need_to_unload) {
unload_big();
}
}
function show_ls() {
_root.symbol_loading._visible = true;
_root.symbol_loading.play();
}
function update_tip() {
if (_show_tips) {
var _local3 = "";
var _local2 = 0;
while (_local2 < load_xmls.length) {
_local3 = _local3 + ("_xml:" + load_xmls[_local2][0]);
_local3 = _local3 + "\r";
_local2++;
}
_local2 = 0;
while (_local2 < load_items.length) {
if (!load_items[_local2][3]) {
if (load_items[_local2][0]._url == undefined) {
remove_mc(_local2);
return(true);
}
_local3 = _local3 + ("_url:" + load_items[_local2][0]._url);
_local3 = _local3 + "\r";
}
_local2++;
}
_bg_mc.addHint();
_bg_mc.addHint(_local3);
}
}
function hide_ls() {
_root.symbol_loading._visible = false;
_root.symbol_loading.stop();
}
}
Symbol 2484 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
trace("showPreloaderAd.1.5");
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _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) {
trace("<showTimedAd />1.5");
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.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 _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[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 _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 41 Button
on (release) {
getURL ("http://www.blitzgamer.com", "_blank");
}
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 20
stop();
Symbol 104 MovieClip Frame 1
this._visible = false;
_parent.stop();
Symbol 104 MovieClip Frame 2
this._visible = true;
Symbol 104 MovieClip Frame 117
tank.play();
Symbol 104 MovieClip Frame 160
_parent.play();
stop();
_parent.play();
Symbol 119 MovieClip Frame 1
this.gotoAndStop(random(6) + 1);
Symbol 122 MovieClip Frame 1
stop();
this.onRollOver = function () {
_root.snd.menu_toggle.start();
this.gotoAndStop(2);
};
this.onPress = function () {
_root.snd.menu_click.start();
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 122 MovieClip Frame 2
this.addESplash(30464, false);
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 6
stop();
Symbol 156 MovieClip Frame 1
stop();
this.is_open = false;
Symbol 156 MovieClip Frame 5
stop();
this.is_open = true;
Symbol 157 Button
on (press) {
show_help_pane();
}
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 2
play();
Symbol 160 MovieClip Frame 6
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 2
star1_mc.gotoAndPlay("grow");
Symbol 161 MovieClip Frame 3
star2_mc.gotoAndPlay("grow");
Symbol 161 MovieClip Frame 4
star3_mc.gotoAndPlay("grow");
Symbol 161 MovieClip Frame 5
star4_mc.gotoAndPlay("grow");
Symbol 161 MovieClip Frame 6
star5_mc.gotoAndPlay("grow");
Symbol 164 MovieClip Frame 1
var base_mc = this;
var i = 1;
while (i <= 5) {
base_mc["b" + i].num = i;
base_mc["b" + i].onRollOver = function () {
stars_mc.gotoAndStop(this.num + 1);
};
base_mc["b" + i].onRollOut = function () {
stars_mc.gotoAndStop(1);
};
base_mc["b" + i].onPress = function () {
submit_vote(this.num);
};
i++;
}
Symbol 172 MovieClip Frame 15
stop();
Symbol 172 MovieClip Frame 23
stop();
Symbol 172 MovieClip Frame 66
var flr = Math.floor(this.score);
var flr_w = (flr * 20);
var dc = (this.score - Math.floor(this.score));
var dc_w = (dc * 17.1);
var w = (flr_w + dc_w);
star_mask_mc._width = w;
Symbol 172 MovieClip Frame 72
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 4
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 6
stop();
Symbol 212 Button
on (press) {
_parent.show_help_pane();
}
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 4
stop();
Symbol 219 Button
on (release) {
getURL ("http://www.mochibot.com?cpe=dT0yJmNwPUluZm8gUGFuZWwgTGluayZzPUZlZWRiYWNrIEJhciB2MQ%3D%3D", "_blank");
}
on (rollOver) {
logo_mc.gotoAndPlay("in");
}
on (rollOut) {
logo_mc.gotoAndPlay("out");
}
Symbol 220 MovieClip Frame 1
function valid() {
var _local1 = true;
if (comment_txt.text == "") {
_local1 = false;
comment_header_mc.gotoAndStop(2);
} else {
comment_header_mc.gotoAndStop(1);
}
return(_local1);
}
function set_tabs() {
name_txt.tabIndex = 1;
email_txt.tabIndex = 2;
comment_txt.tabIndex = 3;
submit_btn.tabIndex = false;
}
stop();
set_tabs();
get_user_info();
submit_btn.onRollOver = function () {
submit_mc.gotoAndPlay("on");
};
submit_btn.onRollOut = function () {
submit_mc.gotoAndPlay("off");
};
submit_btn.onPress = function () {
if (_root.sending_comment != true) {
if (valid()) {
submit_comment(name_txt.text, email_txt.text, comment_txt.text);
_root.sending_comment = true;
}
}
};
view_comments_btn.onRollOver = function () {
view_comments_mc.gotoAndStop("on");
};
view_comments_btn.onRollOut = function () {
view_comments_mc.gotoAndStop("off");
};
view_comments_btn.onPress = function () {
getURL (_parent.mochi_public_comments_url, "_blank");
};
x_btn.onPress = function () {
_parent.show_comment_pane();
};
name_txt.onSetFocus = function () {
box1_mc.gotoAndStop(2);
};
name_txt.onKillFocus = function () {
box1_mc.gotoAndStop(1);
};
email_txt.onSetFocus = function () {
box2_mc.gotoAndStop(2);
};
email_txt.onKillFocus = function () {
box2_mc.gotoAndStop(1);
};
website_txt.onSetFocus = function () {
box3_mc.gotoAndStop(2);
};
website_txt.onKillFocus = function () {
box3_mc.gotoAndStop(1);
};
comment_txt.onSetFocus = function () {
box4_mc.gotoAndStop(2);
};
comment_txt.onKillFocus = function () {
box4_mc.gotoAndStop(1);
};
Symbol 220 MovieClip Frame 19
stop();
close_btn.onPress = function () {
_parent.show_comment_pane();
};
Symbol 220 MovieClip Frame 23
stop();
close_btn.onPress = function () {
_parent.show_comment_pane();
};
Symbol 220 MovieClip Frame 29
play();
Symbol 220 MovieClip Frame 42
stop();
Symbol 223 MovieClip Frame 1
function init_rate_me() {
cookie = SharedObject.getLocal("rate_me_limit");
var _local1 = cookie.data.year;
var _local4 = cookie.data.month;
var _local3 = cookie.data.date;
var _local5 = cookie.data.hour;
var _local6 = cookie.data.min;
var _local9 = cookie.data.sec;
cookieDate = new Date(_local1, _local4, _local3, _local5, _local6, _local9);
cookieMillisecs = cookieDate.getTime();
currentDate = new Date();
currentMillisecs = currentDate.getTime();
var _local8 = currentMillisecs - cookieMillisecs;
var _local7 = Math.floor(_local8 / 1000);
var _local2 = Math.floor(_local7 / 60);
var _local10 = Math.floor(_local2 / 60);
if ((_local2 < mochi_rate_me_time) && (_local1 != undefined)) {
get_rating();
}
}
function set_rate_me_cookie() {
cookie = SharedObject.getLocal("rate_me_limit");
var _local1 = new Date();
var _local4 = _local1.getFullYear();
var _local3 = _local1.getMonth();
var _local5 = _local1.getDate();
var _local7 = _local1.getHours();
var _local6 = _local1.getMinutes();
var _local2 = _local1.getSeconds();
cookie.data.year = _local4;
cookie.data.month = _local3;
cookie.data.date = _local5;
cookie.data.hour = _local7;
cookie.data.min = _local6;
cookie.data.sec = _local2;
cookie.flush();
}
function show_comment_pane() {
if (!comment_on) {
comment_on = true;
if (!help_on) {
gotoAndPlay ("comment_on");
} else {
help_on = false;
next_frame = "comment_on";
gotoAndPlay ("comment_off");
}
comment_btn_mc.gotoAndPlay("off");
} else {
comment_on = false;
next_frame = null;
gotoAndPlay ("comment_off");
comment_btn_mc.gotoAndPlay("off");
}
}
function show_help_pane() {
if (!help_on) {
help_on = true;
if (!comment_on) {
gotoAndPlay ("comment_on");
} else {
comment_on = false;
next_frame = "comment_on";
gotoAndPlay ("comment_off");
}
} else {
help_on = false;
next_frame = null;
gotoAndPlay ("comment_off");
}
}
function show_component(comment_on) {
if (!is_on) {
is_on = true;
gotoAndPlay ("component_on");
} else if (comment_on) {
next_frame = "component_off";
comment_on = false;
gotoAndPlay ("comment_off");
} else {
next_frame = null;
is_on = false;
gotoAndPlay ("component_off");
}
}
function clear_cookie() {
cookie = SharedObject.getLocal("rate_me_limit");
cookie.clear();
}
stop();
_global.mochi_opened = false;
var mochibot_id = "ba4e72ae";
if ((this._url.indexOf("badim.ru") == -1) && (this._url.indexOf("file:") == -1)) {
this._visible = false;
}
guide_mc._visible = false;
var mochi_rate_me_time = 720;
var mochi_vote_url = "http://www.mochibot.com/api/api-feedback.html";
var mochi_comment_url = "http://www.mochibot.com/api/api-feedback.html";
var mochi_public_comments_url = ("http://www.mochibot.com/shared/shared_feedback.html?swfid=" + mochibot_id);
var mochi_comments_public = false;
var comment_on = false;
var help_on = false;
var is_on = false;
var next_frame = null;
_global.submit_vote = function (vote) {
rate_me_mc.gotoAndPlay("out");
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local3.mochibot_id = mochibot_id;
_local3.vote = vote;
_local3.swfurl = _root._url;
_local4.onLoad = function () {
rate_me_mc.score = this.score;
rate_me_mc.gotoAndPlay("thanks");
};
_local3.sendAndLoad(mochi_vote_url, _local4, "POST");
set_rate_me_cookie();
};
_global.submit_comment = function (name_str, email_str, comment_str) {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local3.name = name_str;
_local3.email = email_str;
_local3.comment = comment_str;
_local3.mochibot_id = mochibot_id;
_local3.swfurl = _root._url;
_local4.onLoad = function () {
if (this.invalidSwf == "true") {
form_mc.gotoAndStop("error");
} else {
form_mc.gotoAndPlay("success");
}
};
_local3.sendAndLoad(mochi_comment_url, _local4, "POST");
};
_global.get_rating = function () {
rate_me_mc.gotoAndStop("score");
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.mochibot_id = mochibot_id;
_local3.onLoad = function () {
rate_me_mc.score = this.score;
rate_me_mc.gotoAndPlay("score");
mochi_comments_public = this.commentsPublic;
};
_local2.sendAndLoad(mochi_vote_url, _local3, "GET");
};
toggle_btn.onRelease = function () {
show_component();
};
toggle_btn.onRollOver = function () {
head_mc._alpha = 100;
bubble_mc.gotoAndPlay(2);
};
toggle_btn.onRollOut = function () {
head_mc._alpha = 50;
bubble_mc.gotoAndStop(1);
};
Symbol 223 MovieClip Frame 2
play();
_global.mochi_opened = true;
Symbol 223 MovieClip Frame 22
init_rate_me();
Symbol 223 MovieClip Frame 29
stop();
comment_btn_mc.hit_btn.onPress = show_comment_pane;
comment_btn_mc.hit_btn.onRollOver = function () {
comment_btn_mc.gotoAndPlay("on");
};
comment_btn_mc.hit_btn.onRollOut = function () {
if (comment_btn_mc.is_open) {
comment_btn_mc.gotoAndPlay("off");
}
};
toggle_btn.onRelease = function () {
show_component();
};
toggle_btn.onRollOver = function () {
head_mc._alpha = 100;
bubble_mc.gotoAndPlay(2);
};
Symbol 223 MovieClip Frame 39
if (help_on) {
form_mc.gotoAndPlay("help");
} else {
form_mc.gotoAndStop(1);
}
Symbol 223 MovieClip Frame 45
stop();
toggle_btn.onRelease = function () {
show_component(true);
};
Symbol 223 MovieClip Frame 51
if (next_frame != null) {
gotoAndPlay(next_frame);
} else {
gotoAndStop ("hold");
}
Symbol 234 MovieClip Frame 1
this.onRollOver = function () {
};
Symbol 234 MovieClip Frame 11
this.onRollOver = function () {
this.gotoAndPlay(1);
};
Symbol 234 MovieClip Frame 35
if (Math.random() > 0.2) {
this.gotoAndPlay(11);
}
Symbol 264 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 10
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 375 MovieClip [star] Frame 1
var xspeed = ((Math.random() * 1) + 1);
if (Math.random() > 0.5) {
xspeed = xspeed * -1;
}
var yspeed = (2 + (Math.random() * 2));
this.onEnterFrame = function () {
this._x = this._x + xspeed;
this._y = this._y - yspeed;
this._yscale = this._yscale * 0.95;
this._xscale = this._xscale * 0.95;
this._alpha--;
yspeed--;
};
Symbol 375 MovieClip [star] Frame 24
this._visible = false;
_parent.unloadMovie();
Symbol 388 MovieClip [bubble] Frame 1
var xspeed = ((Math.random() * 2) + 2);
if (Math.random() > 0.5) {
xspeed = xspeed * -1;
}
var yspeed = 0;
this.onEnterFrame = function () {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
this._yscale = this._yscale * 0.95;
this._xscale = this._xscale * 0.95;
this._alpha--;
yspeed--;
xspeed = xspeed + ((Math.random() * 4) - 2);
};
Symbol 388 MovieClip [bubble] Frame 24
this._visible = false;
_parent.unloadMovie();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 10
_root.main.game.obj_die(this.item_xml);
Symbol 407 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 413 MovieClip [choosechar_scr] Frame 1
Symbol 427 MovieClip Frame 1
stop();
Symbol 438 MovieClip [load_scr] Frame 1
_global.game.pause_game();
this.onUnload = function () {
_global.game.unpause_game();
};
this.dots = 0;
this.dots_max = 4;
this.onEnterFrame = function () {
this.dtxt.text = xml_lang.txt_loading;
this.dots = this.dots + 0.12;
if (this.dots >= this.dots_max) {
this.dots = 0;
}
var _local2 = 0;
while (_local2 < this.dots) {
this.dtxt.text = this.dtxt.text + ".";
_local2++;
}
};
Symbol 448 MovieClip Frame 1
stop();
Symbol 454 MovieClip Frame 1
txt_dtxt.text = xml_lang.txt_showtips;
if (_global.show_tips) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
this.onRelease = function () {
if (_global.show_tips) {
_global.show_tips = false;
this.gotoAndStop(1);
} else {
_global.show_tips = true;
this.gotoAndStop(2);
}
};
Instance of Symbol 471 MovieClip in Symbol 472 MovieClip Frame 1
onClipEvent (load) {
drag = false;
this._x = (_root.musik.getVolume() * 190) / 100;
_parent.bar._width = this._x;
}
on (press) {
this.startDrag(true, 0, this._y, 190, this._y);
drag = true;
}
on (release, releaseOutside) {
this.stopDrag();
drag = false;
}
onClipEvent (mouseMove) {
if (drag) {
_parent.bar._width = this._x;
_root.set_sounds(_parent.bar._width / 190);
}
}
Symbol 477 MovieClip Frame 1
this.addHint();
if (_root.musik_enabled) {
this.gotoAndStop(1);
this.addHint(_root.get_xml_lang("txt_musikenab"));
} else {
this.gotoAndStop(2);
this.addHint(_root.get_xml_lang("txt_musikdis"));
}
this.onRelease = function () {
if (_root.musik_enabled) {
_root.musik_enabled = false;
if (_root.musik_started) {
_root.musik.stop();
}
} else {
_root.musik_enabled = true;
if (_root.musik_started) {
_root.musik.start(0, 500);
}
}
this.addHint();
if (_root.musik_enabled) {
this.gotoAndStop(1);
this.addHint(_root.get_xml_lang("txt_musikenab"));
} else {
this.gotoAndStop(2);
this.addHint(_root.get_xml_lang("txt_musikdis"));
}
};
Symbol 526 MovieClip Frame 1
stop();
this.onRollOver = function () {
_root.snd.menu_toggle.start();
this.gotoAndStop(2);
};
this.onPress = function () {
_root.snd.menu_click.start();
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 526 MovieClip Frame 2
this.addESplash(30464, false);
Symbol 528 MovieClip Frame 1
stop();
this.onRollOver = function () {
_root.snd.menu_toggle.start();
this.gotoAndStop(2);
};
this.onPress = function () {
_root.snd.menu_click.start();
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 528 MovieClip Frame 2
this.addESplash(30464, false);
Symbol 540 MovieClip [score_blitz_scr] Frame 1
yourScore.scoreText.text = _global.score_this_game;
yourScore.name_dtxt.text = _root._login;
if (_root.kongregate_username != undefined) {
yourScore.name_dtxt.text = _root.kongregate_username;
yourScore.name_dtxt.selectable = false;
yourScore.name_dtxt.editable = false;
}
_global.UniteScores.send_scores(_global.score_this_game, "Total scores");
_root.FANBOXAPI.GamingAPI.GameOver(_global.score_this_game);
this.createEmptyMovieClip("highSender", this.getNextHighestDepth());
yourScore.submit.onRelease = function () {
trace("--------");
highSender.playerName = yourScore.nameText;
_root._login = yourScore.name_dtxt.text;
highSender.score = _global.score_this_game;
highSender.gamename = "elitef";
highSender.validator = _root.scoreSystem.processScore(_global.score_this_game);
for (var _local4 in highSender) {
trace((_local4 + ":") + highSender[_local4]);
}
highSender.loadVariables(PATH + "new_score.php", "POST");
trace(("__PATH:" + PATH) + "new_score.php");
trace("__SCORESPATH:" + SCORESPATH);
getURL (SCORESPATH, "_blank");
this._visible = false;
};
Symbol 550 MovieClip Frame 1
this._visible = false;
Symbol 551 MovieClip [z_exps1] Frame 1
var i = 0;
while (i < 3) {
var temp_name = ("star" + i);
this.attachMovie("star", temp_name, _root.stars_depth + i);
i++;
}
stop();
Symbol 552 MovieClip [z_exps2] Frame 1
var i = 0;
while (i < 3) {
var temp_name = ("bubble" + i);
this.attachMovie("bubble", temp_name, _root.stars_depth + i);
i++;
}
stop();
Symbol 591 MovieClip Frame 19
_parent.unloadMovie();
Symbol 594 MovieClip [blood] Frame 1
var xspeed = ((Math.random() * 1) + 1);
if (Math.random() > 0.5) {
xspeed = xspeed * -1;
}
var yspeed = (2 + (Math.random() * 2));
this._alpha = 50;
this.onEnterFrame = function () {
this._x = this._x + xspeed;
this._y = this._y - yspeed;
this._yscale = this._yscale * 0.95;
this._xscale = this._xscale * 0.95;
this._alpha = this._alpha - 2;
yspeed--;
};
Symbol 594 MovieClip [blood] Frame 24
this._visible = false;
_parent.unloadMovie();
Symbol 595 MovieClip [z_exps4] Frame 1
var i = 0;
while (i < 3) {
var temp_name = ("s" + i);
this.attachMovie("blood", temp_name, _root.stars_depth + i);
i++;
}
Symbol 646 MovieClip Frame 25
_parent.unloadMovie();
Symbol 652 MovieClip [z_exps6] Frame 3
this.unloadMovie();
Symbol 657 MovieClip [z_exps7] Frame 3
this.unloadMovie();
Symbol 662 MovieClip [z_exps8] Frame 3
this.unloadMovie();
Symbol 719 MovieClip Frame 28
_parent.unloadMovie();
Symbol 721 MovieClip [z_exps10] Frame 1
var i = 0;
while (i < 3) {
var temp_name = ("star" + this.getNextHighestDepth());
var item_mc = this.attachMovie("z_exps9", temp_name, this.getNextHighestDepth());
var xspeed = ((Math.random() * 2) + 2);
if (Math.random() > 0.5) {
xspeed = xspeed * -1;
}
var yspeed = (4 + (Math.random() * 8));
if (Math.random() > 0.5) {
yspeed = yspeed * -1;
}
item_mc.xspeed = xspeed;
item_mc.yspeed = yspeed;
item_mc.onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y - this.yspeed;
};
i++;
}
Symbol 721 MovieClip [z_exps10] Frame 3
var i = 0;
while (i < 3) {
var temp_name = ("star" + this.getNextHighestDepth());
var item_mc = this.attachMovie("z_exps9", temp_name, this.getNextHighestDepth());
var xspeed = ((Math.random() * 2) + 2);
if (Math.random() > 0.5) {
xspeed = xspeed * -1;
}
var yspeed = (4 + (Math.random() * 8));
if (Math.random() > 0.5) {
yspeed = yspeed * -1;
}
item_mc.xspeed = xspeed;
item_mc.yspeed = yspeed;
item_mc.onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y - this.yspeed;
};
i++;
}
Symbol 721 MovieClip [z_exps10] Frame 5
var i = 0;
while (i < 3) {
var temp_name = ("star" + this.getNextHighestDepth());
var item_mc = this.attachMovie("z_exps9", temp_name, this.getNextHighestDepth());
var xspeed = ((Math.random() * 2) + 2);
if (Math.random() > 0.5) {
xspeed = xspeed * -1;
}
var yspeed = (4 + (Math.random() * 8));
if (Math.random() > 0.5) {
yspeed = yspeed * -1;
}
item_mc.xspeed = xspeed;
item_mc.yspeed = yspeed;
item_mc.onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y - this.yspeed;
};
i++;
}
Symbol 721 MovieClip [z_exps10] Frame 7
var i = 0;
while (i < 3) {
var temp_name = ("star" + this.getNextHighestDepth());
var item_mc = this.attachMovie("z_exps9", temp_name, this.getNextHighestDepth());
var xspeed = ((Math.random() * 2) + 2);
if (Math.random() > 0.5) {
xspeed = xspeed * -1;
}
var yspeed = (4 + (Math.random() * 8));
if (Math.random() > 0.5) {
yspeed = yspeed * -1;
}
item_mc.xspeed = xspeed;
item_mc.yspeed = yspeed;
item_mc.onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y - this.yspeed;
};
i++;
}
Symbol 721 MovieClip [z_exps10] Frame 9
var i = 0;
while (i < 3) {
var temp_name = ("star" + this.getNextHighestDepth());
var item_mc = this.attachMovie("z_exps9", temp_name, this.getNextHighestDepth());
var xspeed = ((Math.random() * 2) + 2);
if (Math.random() > 0.5) {
xspeed = xspeed * -1;
}
var yspeed = (4 + (Math.random() * 8));
if (Math.random() > 0.5) {
yspeed = yspeed * -1;
}
item_mc.xspeed = xspeed;
item_mc.yspeed = yspeed;
item_mc.onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y - this.yspeed;
};
i++;
}
Symbol 721 MovieClip [z_exps10] Frame 11
var i = 0;
while (i < 3) {
var temp_name = ("star" + this.getNextHighestDepth());
var item_mc = this.attachMovie("z_exps9", temp_name, this.getNextHighestDepth());
var xspeed = ((Math.random() * 2) + 2);
if (Math.random() > 0.5) {
xspeed = xspeed * -1;
}
var yspeed = (4 + (Math.random() * 8));
if (Math.random() > 0.5) {
yspeed = yspeed * -1;
}
item_mc.xspeed = xspeed;
item_mc.yspeed = yspeed;
item_mc.onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y - this.yspeed;
};
i++;
}
Symbol 721 MovieClip [z_exps10] Frame 13
var i = 0;
while (i < 3) {
var temp_name = ("star" + this.getNextHighestDepth());
var item_mc = this.attachMovie("z_exps9", temp_name, this.getNextHighestDepth());
var xspeed = ((Math.random() * 2) + 2);
if (Math.random() > 0.5) {
xspeed = xspeed * -1;
}
var yspeed = (4 + (Math.random() * 8));
if (Math.random() > 0.5) {
yspeed = yspeed * -1;
}
item_mc.xspeed = xspeed;
item_mc.yspeed = yspeed;
item_mc.onEnterFrame = function () {
this._x = this._x + this.xspeed;
this._y = this._y - this.yspeed;
};
i++;
}
Symbol 721 MovieClip [z_exps10] Frame 15
stop();
Symbol 725 MovieClip Frame 15
_parent.unloadMovie();
Symbol 731 MovieClip [z_exps207] Frame 15
_parent.unloadMovie();
Symbol 736 MovieClip Frame 15
_parent.unloadMovie();
Symbol 738 MovieClip [z_exps301] Frame 1
this._tx = _root.main.face_scr.weap1_mc._x + _root.main.face_scr._x;
this._ty = _root.main.face_scr.weap1_mc._y + _root.main.face_scr._y;
this.onEnterFrame = function () {
var _local4 = this._tx - (this._x + _parent._x);
var _local6 = 12;
if (_local6 > Math.abs(_local4)) {
_local6 = Math.abs(_local4);
}
if (_local4 < 0) {
_local6 = _local6 * -1;
}
this._x = this._x + _local6;
var _local3 = this._ty - (this._y + _parent._y);
var _local5 = 10;
if (_local5 > Math.abs(_local3)) {
_local5 = Math.abs(_local3);
}
if (_local3 < 0) {
_local5 = _local5 * -1;
}
this._y = this._y + _local5;
_local4 = this._tx - (this._x + _parent._x);
_local3 = this._ty - (this._y + _parent._y);
this._xscale = this._xscale * 0.97;
this._yscale = this._yscale * 0.97;
if (Math.abs(_local4) < 0.1) {
_local4 = 0;
}
if (Math.abs(_local3) < 0.1) {
_local3 = 0;
}
if ((_local4 == 0) && (_local3 == 0)) {
this.unloadMovie();
}
};
Symbol 739 MovieClip [z_exps302] Frame 1
this._tx = _root.main.face_scr.weap1_mc._x + _root.main.face_scr._x;
this._ty = _root.main.face_scr.weap1_mc._y + _root.main.face_scr._y;
this.onEnterFrame = function () {
var _local4 = this._tx - (this._x + _parent._x);
var _local6 = 12;
if (_local6 > Math.abs(_local4)) {
_local6 = Math.abs(_local4);
}
if (_local4 < 0) {
_local6 = _local6 * -1;
}
this._x = this._x + _local6;
var _local3 = this._ty - (this._y + _parent._y);
var _local5 = 10;
if (_local5 > Math.abs(_local3)) {
_local5 = Math.abs(_local3);
}
if (_local3 < 0) {
_local5 = _local5 * -1;
}
this._y = this._y + _local5;
_local4 = this._tx - (this._x + _parent._x);
_local3 = this._ty - (this._y + _parent._y);
this._xscale = this._xscale * 0.97;
this._yscale = this._yscale * 0.97;
if (Math.abs(_local4) < 0.1) {
_local4 = 0;
}
if (Math.abs(_local3) < 0.1) {
_local3 = 0;
}
if ((_local4 == 0) && (_local3 == 0)) {
this.unloadMovie();
}
};
Symbol 740 MovieClip [z_exps303] Frame 1
this._tx = _root.main.face_scr.weap1_mc._x + _root.main.face_scr._x;
this._ty = _root.main.face_scr.weap1_mc._y + _root.main.face_scr._y;
this.onEnterFrame = function () {
var _local4 = this._tx - (this._x + _parent._x);
var _local6 = 12;
if (_local6 > Math.abs(_local4)) {
_local6 = Math.abs(_local4);
}
if (_local4 < 0) {
_local6 = _local6 * -1;
}
this._x = this._x + _local6;
var _local3 = this._ty - (this._y + _parent._y);
var _local5 = 10;
if (_local5 > Math.abs(_local3)) {
_local5 = Math.abs(_local3);
}
if (_local3 < 0) {
_local5 = _local5 * -1;
}
this._y = this._y + _local5;
_local4 = this._tx - (this._x + _parent._x);
_local3 = this._ty - (this._y + _parent._y);
this._xscale = this._xscale * 0.97;
this._yscale = this._yscale * 0.97;
if (Math.abs(_local4) < 0.1) {
_local4 = 0;
}
if (Math.abs(_local3) < 0.1) {
_local3 = 0;
}
if ((_local4 == 0) && (_local3 == 0)) {
this.unloadMovie();
}
};
Symbol 775 MovieClip Frame 19
_parent.unloadMovie();
Symbol 777 MovieClip [z_exps304] Frame 1
this._tx = _root.main.face_scr.weap1_mc._x + _root.main.face_scr._x;
this._ty = _root.main.face_scr.weap1_mc._y + _root.main.face_scr._y;
this.onEnterFrame = function () {
var _local4 = this._tx - (this._x + _parent._x);
var _local6 = 12;
if (_local6 > Math.abs(_local4)) {
_local6 = Math.abs(_local4);
}
if (_local4 < 0) {
_local6 = _local6 * -1;
}
this._x = this._x + _local6;
var _local3 = this._ty - (this._y + _parent._y);
var _local5 = 10;
if (_local5 > Math.abs(_local3)) {
_local5 = Math.abs(_local3);
}
if (_local3 < 0) {
_local5 = _local5 * -1;
}
this._y = this._y + _local5;
_local4 = this._tx - (this._x + _parent._x);
_local3 = this._ty - (this._y + _parent._y);
this._xscale = this._xscale * 0.97;
this._yscale = this._yscale * 0.97;
if (Math.abs(_local4) < 0.1) {
_local4 = 0;
}
if (Math.abs(_local3) < 0.1) {
_local3 = 0;
}
if ((_local4 == 0) && (_local3 == 0)) {
this.unloadMovie();
}
};
Symbol 800 MovieClip Frame 11
_parent.unloadMovie();
Symbol 803 MovieClip [z_exps14] Frame 15
this.unloadMovie();
Symbol 804 MovieClip [z_exps305] Frame 1
this._tx = _root.main.face_scr.weap1_mc._x + _root.main.face_scr._x;
this._ty = _root.main.face_scr.weap1_mc._y + _root.main.face_scr._y;
this.onEnterFrame = function () {
var _local4 = this._tx - (this._x + _parent._x);
var _local6 = 12;
if (_local6 > Math.abs(_local4)) {
_local6 = Math.abs(_local4);
}
if (_local4 < 0) {
_local6 = _local6 * -1;
}
this._x = this._x + _local6;
var _local3 = this._ty - (this._y + _parent._y);
var _local5 = 10;
if (_local5 > Math.abs(_local3)) {
_local5 = Math.abs(_local3);
}
if (_local3 < 0) {
_local5 = _local5 * -1;
}
this._y = this._y + _local5;
_local4 = this._tx - (this._x + _parent._x);
_local3 = this._ty - (this._y + _parent._y);
this._xscale = this._xscale * 0.97;
this._yscale = this._yscale * 0.97;
if (Math.abs(_local4) < 0.1) {
_local4 = 0;
}
if (Math.abs(_local3) < 0.1) {
_local3 = 0;
}
if ((_local4 == 0) && (_local3 == 0)) {
this.unloadMovie();
}
};
Symbol 805 MovieClip [z_exps306] Frame 1
this._tx = _root.main.face_scr.weap1_mc._x + _root.main.face_scr._x;
this._ty = _root.main.face_scr.weap1_mc._y + _root.main.face_scr._y;
this.onEnterFrame = function () {
var _local4 = this._tx - (this._x + _parent._x);
var _local6 = 12;
if (_local6 > Math.abs(_local4)) {
_local6 = Math.abs(_local4);
}
if (_local4 < 0) {
_local6 = _local6 * -1;
}
this._x = this._x + _local6;
var _local3 = this._ty - (this._y + _parent._y);
var _local5 = 10;
if (_local5 > Math.abs(_local3)) {
_local5 = Math.abs(_local3);
}
if (_local3 < 0) {
_local5 = _local5 * -1;
}
this._y = this._y + _local5;
_local4 = this._tx - (this._x + _parent._x);
_local3 = this._ty - (this._y + _parent._y);
this._xscale = this._xscale * 0.97;
this._yscale = this._yscale * 0.97;
if (Math.abs(_local4) < 0.1) {
_local4 = 0;
}
if (Math.abs(_local3) < 0.1) {
_local3 = 0;
}
if ((_local4 == 0) && (_local3 == 0)) {
this.unloadMovie();
}
};
Symbol 1127 MovieClip [tile_obj6] Frame 1
updateAfterEvent();
Symbol 1158 MovieClip Frame 1
_root.set_always_glow(this, 16777215, 100);
Symbol 1160 MovieClip Frame 1
_root.set_always_glow(this, 16777215, 100);
Symbol 1162 MovieClip Frame 1
_root.set_always_glow(this, 16777215, 100);
Symbol 1169 MovieClip Frame 1
_root.set_always_glow(this, 16777215, 100);
Symbol 1171 MovieClip Frame 1
_root.set_always_glow(this, 16777215, 100);
Symbol 1173 MovieClip Frame 1
_root.set_always_glow(this, 16777215, 100);
Symbol 1192 MovieClip Frame 1
stop();
Symbol 1192 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 1192 MovieClip Frame 9
this.gotoAndStop(1);
Symbol 1196 MovieClip Frame 16
_parent.item_xml.attributes.st = 4;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1199 MovieClip Frame 1
_parent.item_xml.attributes.st = 5;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1218 MovieClip Frame 10
_parent.item_xml.attributes.st = 1;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1229 MovieClip Frame 5
_global.game.obj_die(_parent.item_xml);
Symbol 1230 MovieClip Frame 1
stop();
Symbol 1271 MovieClip Frame 1
stop();
Symbol 1332 MovieClip Frame 16
_parent.item_xml.attributes.st = 4;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1333 MovieClip Frame 1
_parent.item_xml.attributes._cfame = this._currentframe;
_parent.item_xml.attributes.st = 5;
Symbol 1344 MovieClip Frame 27
_parent.item_xml.attributes.st = 1;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1355 MovieClip Frame 5
_global.game.obj_die(_parent.item_xml);
Symbol 1358 MovieClip Frame 10
_parent.item_xml.attributes.st = 2;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1379 MovieClip Frame 10
_parent.item_xml.attributes.st = 16;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1381 MovieClip Frame 10
_parent.item_xml.attributes.st = 1;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1384 MovieClip Frame 1
stop();
Symbol 1412 MovieClip Frame 1
this.onEnterFrame = function () {
_parent.item_xml.attributes._cfame = this._currentframe;
};
Symbol 1412 MovieClip Frame 10
_parent.item_xml.attributes.st = 4;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1413 MovieClip Frame 1
Symbol 1414 MovieClip Frame 1
_parent.item_xml.attributes._cfame = this._currentframe;
this.onEnterFrame = function () {
_parent.item_xml.attributes._cfame = this._currentframe;
};
Symbol 1414 MovieClip Frame 5
_parent.item_xml.attributes.st = 1;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1435 MovieClip Frame 1
_root.snd.death_boss1.start();
Symbol 1435 MovieClip Frame 10
_global.game.obj_die(_parent.item_xml);
Symbol 1456 MovieClip Frame 10
_parent.item_xml.attributes.st = 12;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1458 MovieClip Frame 15
_parent.item_xml.attributes.st = 13;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1459 MovieClip Frame 5
_parent.item_xml.attributes.st = 3;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1460 MovieClip Frame 1
stop();
Symbol 1462 MovieClip Frame 28
_root.main.game.obj_die(_parent.item_xml);
Symbol 1476 MovieClip Frame 15
_parent.item_xml.attributes.st = 4;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1477 MovieClip Frame 11
_parent.item_xml.attributes.st = 1;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1486 MovieClip Frame 5
_global.game.obj_die(_parent.item_xml);
Symbol 1497 MovieClip Frame 9
_parent.item_xml.attributes.st = 12;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1498 MovieClip Frame 21
_parent.item_xml.attributes.st = 1;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1509 MovieClip Frame 8
_parent.item_xml.attributes.st = 16;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1510 MovieClip Frame 8
_parent.item_xml.attributes.st = 1;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1519 MovieClip Frame 8
_parent.item_xml.attributes.st = 1;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1520 MovieClip Frame 1
stop();
Symbol 1578 MovieClip Frame 8
_global.game.obj_die(_parent.item_xml);
Symbol 1587 MovieClip Frame 5
_parent.item_xml.attributes.st = 16;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1591 MovieClip Frame 5
_parent.item_xml.attributes.st = 1;
_parent.gotoAndStop(_parent.item_xml.attributes.st);
Symbol 1592 MovieClip Frame 1
stop();
Symbol 1594 MovieClip Frame 1
stop();
Symbol 1596 MovieClip Frame 1
stop();
Symbol 1603 MovieClip Frame 1
stop();
Symbol 1603 MovieClip Frame 10
this.gotoAndStop(2);
Symbol 1612 MovieClip Frame 3
_global.game.char_act(false, "torun");
Symbol 1653 MovieClip Frame 1
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 1653 MovieClip Frame 3
_global.game.char_act(false, "run");
Symbol 1653 MovieClip Frame 5
_global.game.char_act(false, "run");
Symbol 1653 MovieClip Frame 7
_global.game.char_act(false, "run");
Symbol 1653 MovieClip Frame 10
_global.game.char_act(false, "run");
Symbol 1653 MovieClip Frame 11
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 1653 MovieClip Frame 12
_global.game.char_act(false, "run");
Symbol 1653 MovieClip Frame 15
_global.game.char_act(false, "run");
Symbol 1653 MovieClip Frame 17
_global.game.char_act(false, "run");
Symbol 1653 MovieClip Frame 20
_global.game.char_act(false, "run");
Symbol 1668 MovieClip Frame 7
stop();
Symbol 1689 MovieClip Frame 10
stop();
Symbol 1696 MovieClip Frame 3
stop();
_global.game.char_act(false, "shadow");
Symbol 1699 MovieClip Frame 3
_global.game.char_act(false, "exitshadow");
Symbol 1708 MovieClip Frame 4
stop();
_global.game.char_act(false, "sit");
Symbol 1709 MovieClip Frame 3
_global.game.char_act(false, "exitsit");
Symbol 1750 MovieClip Frame 3
_global.game.char_act(false, "crawl");
Symbol 1750 MovieClip Frame 6
_global.game.char_act(false, "crawl");
Symbol 1750 MovieClip Frame 9
_global.game.char_act(false, "crawl");
Symbol 1750 MovieClip Frame 12
_global.game.char_act(false, "crawl");
Symbol 1750 MovieClip Frame 15
_global.game.char_act(false, "crawl");
Symbol 1750 MovieClip Frame 18
_global.game.char_act(false, "crawl");
Symbol 1755 MovieClip Frame 3
_global.game.char_act(false, "shoot");
Symbol 1755 MovieClip Frame 5
_global.game.char_act(false, "shoot");
Symbol 1755 MovieClip Frame 7
_global.game.char_act(false, "shoot");
Symbol 1759 MovieClip Frame 3
_global.game.char_act(false, "shoot");
Symbol 1759 MovieClip Frame 5
_global.game.char_act(false, "shoot");
Symbol 1759 MovieClip Frame 7
_global.game.char_act(false, "shoot");
Symbol 1820 MovieClip Frame 30
_global.game.char_act(false, "run_back");
Symbol 1862 MovieClip Frame 1
_global.game.char_act(false, "stealth");
Symbol 1862 MovieClip Frame 3
_global.game.char_act(false, "stealth");
Symbol 1862 MovieClip Frame 5
_global.game.char_act(false, "stealth");
Symbol 1862 MovieClip Frame 7
_global.game.char_act(false, "stealth");
Symbol 1862 MovieClip Frame 9
_global.game.char_act(false, "stealth");
Symbol 1862 MovieClip Frame 11
_global.game.char_act(false, "stealth");
Symbol 1862 MovieClip Frame 13
_global.game.char_act(false, "stealth");
Symbol 1862 MovieClip Frame 15
_global.game.char_act(false, "stealth");
Symbol 1862 MovieClip Frame 17
_global.game.char_act(false, "stealth");
Symbol 1862 MovieClip Frame 19
_global.game.char_act(false, "stealth");
Symbol 1871 MovieClip Frame 8
_global.game.char_act(false, "reload");
Symbol 1880 MovieClip Frame 7
_global.game.char_act(false, "reload");
Symbol 1881 MovieClip Frame 5
_global.game.char_act(false, "land");
Symbol 1890 MovieClip Frame 4
_global.game.char_act(false, "damage");
Symbol 1903 MovieClip Frame 4
_global.game.char_act(false, "climb_up_down");
Symbol 1903 MovieClip Frame 7
_global.game.char_act(false, "climb_up_down");
Symbol 1903 MovieClip Frame 10
_global.game.char_act(false, "climb_up_down");
Symbol 1903 MovieClip Frame 13
_global.game.char_act(false, "climb_up_down");
Symbol 1903 MovieClip Frame 16
_global.game.char_act(false, "climb_up_down");
Symbol 1908 MovieClip Frame 3
_global.game.char_act(false, "shoot");
Symbol 1951 MovieClip Frame 1
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 1951 MovieClip Frame 4
_global.game.char_act(false, "shoot_run");
Symbol 1951 MovieClip Frame 6
_global.game.char_act(false, "shoot_run");
Symbol 1951 MovieClip Frame 8
_global.game.char_act(false, "shoot_run");
Symbol 1951 MovieClip Frame 11
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 1951 MovieClip Frame 14
_global.game.char_act(false, "shoot_run");
Symbol 1951 MovieClip Frame 16
_global.game.char_act(false, "shoot_run");
Symbol 1951 MovieClip Frame 18
_global.game.char_act(false, "shoot_run");
Symbol 1956 MovieClip Frame 3
_global.game.char_act(false, "shoot");
Symbol 1959 MovieClip Frame 1
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 1959 MovieClip Frame 4
_global.game.char_act(false, "shoot_run");
Symbol 1959 MovieClip Frame 6
_global.game.char_act(false, "shoot_run");
Symbol 1959 MovieClip Frame 8
_global.game.char_act(false, "shoot_run");
Symbol 1959 MovieClip Frame 11
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 1959 MovieClip Frame 14
_global.game.char_act(false, "shoot_run");
Symbol 1959 MovieClip Frame 16
_global.game.char_act(false, "shoot_run");
Symbol 1959 MovieClip Frame 18
_global.game.char_act(false, "shoot_run");
Symbol 1962 MovieClip Frame 17
_global.game.char_act(false, "shoot");
Symbol 1965 MovieClip Frame 15
_global.game.char_act(false, "shoot");
Symbol 1968 MovieClip Frame 3
_global.game.char_act(false, "shoot");
Symbol 1971 MovieClip Frame 3
_global.game.char_act(false, "shoot");
Symbol 1974 MovieClip Frame 3
_global.game.char_act(false, "shoot");
Symbol 1977 MovieClip Frame 3
_global.game.char_act(false, "shoot");
Symbol 1982 MovieClip Frame 1
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 1982 MovieClip Frame 4
_global.game.char_act(false, "shoot_run");
Symbol 1982 MovieClip Frame 6
_global.game.char_act(false, "shoot_run");
Symbol 1982 MovieClip Frame 8
_global.game.char_act(false, "shoot_run");
Symbol 1982 MovieClip Frame 11
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 1982 MovieClip Frame 14
_global.game.char_act(false, "shoot_run");
Symbol 1982 MovieClip Frame 16
_global.game.char_act(false, "shoot_run");
Symbol 1982 MovieClip Frame 18
_global.game.char_act(false, "shoot_run");
Symbol 1985 MovieClip Frame 1
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 1985 MovieClip Frame 4
_global.game.char_act(false, "shoot_run");
Symbol 1985 MovieClip Frame 6
_global.game.char_act(false, "shoot_run");
Symbol 1985 MovieClip Frame 8
_global.game.char_act(false, "shoot_run");
Symbol 1985 MovieClip Frame 11
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 1985 MovieClip Frame 14
_global.game.char_act(false, "shoot_run");
Symbol 1985 MovieClip Frame 16
_global.game.char_act(false, "shoot_run");
Symbol 1985 MovieClip Frame 18
_global.game.char_act(false, "shoot_run");
Symbol 1996 MovieClip Frame 3
_global.game.char_act(false, "torun");
Symbol 2037 MovieClip Frame 1
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 2037 MovieClip Frame 4
_global.game.char_act(false, "run");
Symbol 2037 MovieClip Frame 6
_global.game.char_act(false, "run");
Symbol 2037 MovieClip Frame 10
_global.game.char_act(false, "run");
Symbol 2037 MovieClip Frame 11
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 2037 MovieClip Frame 14
_global.game.char_act(false, "run");
Symbol 2037 MovieClip Frame 16
_global.game.char_act(false, "run");
Symbol 2037 MovieClip Frame 20
_global.game.char_act(false, "run");
Symbol 2046 MovieClip Frame 4
stop();
Symbol 2057 MovieClip Frame 5
stop();
Symbol 2064 MovieClip Frame 3
stop();
_global.game.char_act(false, "shadow");
Symbol 2067 MovieClip Frame 3
_global.game.char_act(false, "exitshadow");
Symbol 2076 MovieClip Frame 4
stop();
_global.game.char_act(false, "sit");
Symbol 2077 MovieClip Frame 3
_global.game.char_act(false, "exitsit");
Symbol 2118 MovieClip Frame 3
_global.game.char_act(false, "crawl");
Symbol 2118 MovieClip Frame 6
_global.game.char_act(false, "crawl");
Symbol 2118 MovieClip Frame 9
_global.game.char_act(false, "crawl");
Symbol 2118 MovieClip Frame 12
_global.game.char_act(false, "crawl");
Symbol 2118 MovieClip Frame 15
_global.game.char_act(false, "crawl");
Symbol 2118 MovieClip Frame 18
_global.game.char_act(false, "crawl");
Symbol 2123 MovieClip Frame 5
_global.game.char_act(false, "shoot");
Symbol 2123 MovieClip Frame 7
_global.game.char_act(false, "shoot");
Symbol 2123 MovieClip Frame 9
_global.game.char_act(false, "shoot");
Symbol 2127 MovieClip Frame 5
_global.game.char_act(false, "shoot");
Symbol 2127 MovieClip Frame 7
_global.game.char_act(false, "shoot");
Symbol 2127 MovieClip Frame 9
_global.game.char_act(false, "shoot");
Symbol 2188 MovieClip Frame 30
_global.game.char_act(false, "run_back");
Symbol 2250 MovieClip Frame 1
_global.game.char_act(false, "stealth");
Symbol 2250 MovieClip Frame 4
_global.game.char_act(false, "stealth");
Symbol 2250 MovieClip Frame 7
_global.game.char_act(false, "stealth");
Symbol 2250 MovieClip Frame 10
_global.game.char_act(false, "stealth");
Symbol 2250 MovieClip Frame 13
_global.game.char_act(false, "stealth");
Symbol 2250 MovieClip Frame 16
_global.game.char_act(false, "stealth");
Symbol 2250 MovieClip Frame 19
_global.game.char_act(false, "stealth");
Symbol 2250 MovieClip Frame 22
_global.game.char_act(false, "stealth");
Symbol 2250 MovieClip Frame 25
_global.game.char_act(false, "stealth");
Symbol 2250 MovieClip Frame 28
_global.game.char_act(false, "stealth");
Symbol 2259 MovieClip Frame 9
_global.game.char_act(false, "reload");
Symbol 2268 MovieClip Frame 8
_global.game.char_act(false, "reload");
Symbol 2269 MovieClip Frame 5
_global.game.char_act(false, "land");
Symbol 2278 MovieClip Frame 4
_global.game.char_act(false, "damage");
Symbol 2301 MovieClip Frame 2
_global.game.char_act(false, "climb_up_down");
Symbol 2301 MovieClip Frame 4
_global.game.char_act(false, "climb_up_down");
Symbol 2301 MovieClip Frame 6
_global.game.char_act(false, "climb_up_down");
Symbol 2301 MovieClip Frame 8
_global.game.char_act(false, "climb_up_down");
Symbol 2301 MovieClip Frame 10
_global.game.char_act(false, "climb_up_down");
Symbol 2301 MovieClip Frame 12
_global.game.char_act(false, "climb_up_down");
Symbol 2301 MovieClip Frame 14
_global.game.char_act(false, "climb_up_down");
Symbol 2301 MovieClip Frame 16
_global.game.char_act(false, "climb_up_down");
Symbol 2301 MovieClip Frame 18
_global.game.char_act(false, "climb_up_down");
Symbol 2306 MovieClip Frame 4
_global.game.char_act(false, "shoot");
Symbol 2347 MovieClip Frame 1
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 2347 MovieClip Frame 4
_global.game.char_act(false, "shoot_run");
Symbol 2347 MovieClip Frame 6
_global.game.char_act(false, "shoot_run");
Symbol 2347 MovieClip Frame 8
_global.game.char_act(false, "shoot_run");
Symbol 2347 MovieClip Frame 11
var num = (random(3) + 1);
_root.snd["step" + num].start();
Symbol 2347 MovieClip Frame 14
_global.game.char_act(false, "shoot_run");
Symbol 2347 MovieClip Frame 16
_global.game.char_act(false, "shoot_run");
Symbol 2347 MovieClip Frame 18
_global.game.char_act(false, "shoot_run");
Symbol 2352 MovieClip Frame 4
_global.game.char_act(false, "shoot");
Symbol 2355 MovieClip Frame 17
_global.game.char_act(false, "shoot");
Symbol 2360 MovieClip Frame 10
_global.game.char_act(false, "shoot");
Symbol 2363 MovieClip Frame 4
_global.game.char_act(false, "shoot");
Symbol 2366 MovieClip Frame 4
_global.game.char_act(false, "shoot");
Symbol 2369 MovieClip Frame 4
_global.game.char_act(false, "shoot");
Symbol 2372 MovieClip Frame 4
_global.game.char_act(false, "shoot");
Symbol 2385 MovieClip [condition_mc] Frame 10
stop();
Symbol 2385 MovieClip [condition_mc] Frame 15
this.unloadMovie();
Symbol 2433 MovieClip Frame 1
stop();
Symbol 2446 MovieClip Frame 1
stop();
Symbol 2452 MovieClip Frame 1
loadMovie ("http://208.109.177.63/~blitzgam/blitz_HighScores/encrypted.swf", this);
this._alpha = 0;