Frame 1
function onAPIConnected(e) {
}
var GameName = "Clone Wars";
var branding = "original";
var continueButton = 1;
var TimeNum = 5000;
jaludo.JaludoGameAPI.__set__debug(true);
jaludo.JaludoGameAPI.initialize(0, 0);
jaludo.JaludoGameAPI.create(_root, "5CE059B3-CFC9-43FC-8BEC-E48A40279464");
jaludo.JaludoGameAPI.addEventListener(jaludo.JaludoGameAPI.ON_API_CONNECTED, onAPIConnected);
jaludo.JaludoGameAPI.gameStarted();
function open_link(buttonLocation, Game, GameURL) {
var _local3 = _root._url;
var _local2 = Url;
if (Game) {
_local2 = GameURL;
}
var _local4 = (((((((_local2 + "/#utm_campaign=") + escape(GameName)) + "&utm_content=") + escape(buttonLocation)) + "&utm_medium=") + escape(branding)) + "&utm_source=") + escape(_local3);
getURL (_local4, "_blank");
}
stop();
var Url = "http://www.gamesbook.com";
stop();
Frame 2
function show_msg(txt) {
var _local4 = msg_holder_mc.createEmptyMovieClip("main" + msg_holder_mc.getNextHighestDepth(), msg_holder_mc.getNextHighestDepth());
_local4._y = 0;
_local4._ty = 0;
var _local6 = _local4.createEmptyMovieClip("bg", _local4.getNextHighestDepth());
var _local3 = _local4.createTextField("dtxt", _local4.getNextHighestDepth(), 0, 0, 0, 0);
_local3._y = 1;
_local3.autoSize = true;
_local3.selectable = false;
var _local7 = new TextFormat("_sans", 14, 16777215);
_local3.text = txt;
_local3.setTextFormat(_local7);
_root.drawSqare(_local6, [0, _local3._y], Stage.width, (_local3._height - _local3._y) + 2, {_t:0, _alpha:0, _color:0}, {_color:0, _alpha:85});
msg_holder_mc.di++;
if (msg_holder_mc.di > 50) {
msg_holder_mc.di = 0;
}
msg_count++;
msg_opened_count++;
msg_list.push({_mc:_local4, _txt:txt, _ttl:140, _id:msg_count});
_local4.onPress = function () {
for (var _local2 in msg_list) {
msg_obj = msg_list[_local2];
if (msg_obj._mc == this) {
msg_obj._ttl = -1;
}
}
delete this.onPress;
};
msg_holder_mc.sortList();
}
function get_sp_txt(txt) {
var _local5 = "";
var _local3 = 0;
var _local2 = 0;
while (_local2 < txt.length) {
if (txt.charCodeAt(_local2) === 13) {
_local3 = 0;
}
if ((_local3 > 13) && ((txt.charAt(_local2) == " ") || (_root.dlang === 10))) {
_local5 = _local5 + "\r";
_local3 = 0;
} else {
_local5 = _local5 + txt.charAt(_local2);
}
_local3++;
_local2++;
}
return(_local5);
}
function get_txt(txt) {
if (_global.xml_lang[txt] == undefined) {
trace(txt + "=''");
if (_root.main_lang_id != _root.dlang) {
if (_global.xml_main_lang[txt] == undefined) {
} else {
txt = _global.xml_main_lang[txt];
}
}
var _local4 = txt.toString().split("%e").join("\r");
return(_local4);
}
if (_root.dlang === 10) {
var _local4 = _local4.split("\u3002%e").join("\u3002");
}
var _local4 = _global.xml_lang[txt].toString().split("%e").join("\r");
if (_root.dlang === 10) {
_local4 = _local4.split("\u3002").join("\u3002\r");
}
return(String(_local4));
}
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, afterEnd) {
dtxt.text = "";
mc.dtxt = dtxt;
mc.txt = txt;
mc.cur_let = 0;
mc.afterEnd = afterEnd;
mc.onEnterFrame = function () {
var _local5 = this.dtxt;
var _local4 = this.txt;
if (this.cur_let > _local4.length) {
this.afterEnd();
delete this.onEnterFrame;
}
var _local8 = 0;
while (_local8 < 2) {
_local5.text = _local5.text + _local4.charAt(this.cur_let);
this.cur_let++;
if (_local4.charCodeAt(this.cur_let) == 32) {
var _local9 = _local5.text;
var _local10 = _local5.textHeight;
var _local3 = _local4.indexOf(" ", this.cur_let + 1);
var _local7 = _local4.indexOf("\r", this.cur_let + 1);
if (_local7 != -1) {
if (_local7 < _local3) {
_local3 = _local7;
}
}
if (_local3 == -1) {
_local3 = _local4.length;
}
var _local12 = _local3 - this.cur_let;
var _local6 = "";
var _local2 = this.cur_let;
while (_local2 < _local3) {
_local6 = _local6 + _local4.charAt(_local2);
_local2++;
}
_local5.text = _local5.text + _local6;
var _local11 = _local5.textHeight;
_local5.text = _local9;
if (_local11 != _local10) {
_local5.text = _local5.text + "\r";
this.cur_let++;
}
}
_local8++;
}
};
}
function check_domain() {
domain_str = _root._url.toLowerCase();
if (domain_str.indexOf("file:") > -1) {
domain_str = "localhost";
} else {
domain_str = domain_str.split("//")[1].split("/")[0];
}
_global.external_scores = _global.UniteScores.supportURL(domain_str);
if ((_root._url.indexOf("agame.com") > -1) || (_root._url.indexOf("www8.agame") > -1)) {
_global.options_lock_to_eg_net = true;
_global.options_remove_external_url = true;
_global.options_showads = false;
_global.options_usecmpstar = false;
_global.options_show_intro = false;
}
if (domain_str.indexOf("mindjolt.com") > -1) {
_global.options_payments = "disabled";
}
if (((domain_str.indexOf("mindjolt.com") > -1) || (_root._url.indexOf("gamegarage.co.uk") > -1)) || (_root._url.indexOf("armorgames.com") > -1)) {
}
if (domain_str.indexOf("elite-games") > -1) {
_global.options_lock_to_eg_net = true;
_global.options_show_intro = false;
}
if (((_root._url.indexOf("elite-games.net") > -1) || (_root._url.indexOf("mochiads.com") > -1)) || (_root._url.indexOf("gamejacket") > -1)) {
_global.options_use_mochiscores = true;
}
if (domain_str.indexOf("addictinggames.com") > -1) {
_global.options_addictinggames = true;
_global.options_usemochiad = false;
_global.options_usecmpstar = false;
_global.options_use_mochiscores = true;
}
if ((_root._url.indexOf("andkon.com") > -1) || (_root._url.indexOf("uqudos.com") > -1)) {
_global.options_usemochiad = false;
_global.options_usecmpstar = false;
}
if (domain_str.indexOf("kongregate.com") > -1) {
_global.options_usemochiad = false;
_global.options_usecmpstar = false;
}
if (domain_str.indexOf("flashgamelicense.com") > -1) {
_global.options_showads = false;
_global.options_usecmpstar = false;
_global.options_show_intro = false;
_global.options_use_mochiscores = true;
}
if (domain_str.indexOf("kaisergames.de") > -1) {
_global.options_usemochiad = false;
_global.options_usecmpstar = false;
}
if (_global.options.extra.youyou) {
_global.options_showads = false;
_root.ggAD_mc.gameName = "eliteForceCloneWars";
}
version = ((version + " (") + Number(_global.options_usecmpstar)) + ")";
_root.ver_dtxt.text = "v" + version;
}
function root_load_and_play() {
if (((data_xml.loaded && (lang_xml.loaded)) && (ad_preloaded_showed)) && (_global.go_game)) {
_global.adbox_mc.deini();
_root.play();
}
}
function urlEFWarfare2() {
if ((domain_str.indexOf("kongregate.com") > -1) || (kong_sponsor)) {
getURL ("http://www.kongregate.com/games/Badim/elite-forces-warfare-2/?gamereferral=" + kong_referal, "_blank");
} else {
getURL ("http://www.elite-games.net/games/911/elite-forces-warfare-2.html", "_blank");
}
}
function urlEFWarfare() {
if (domain_str.indexOf("heyzap.com") > -1) {
getURL ("http://www.heyzap.com/games/elite-forces-warfare-3", "_blank");
} else if (domain_str.indexOf("andkon.com") > -1) {
getURL ("http://www.andkon.com/arcade/missiledefender/eliteforceswarfare/", "_blank");
} else if ((domain_str.indexOf("kongregate.com") > -1) || (kong_sponsor)) {
getURL ("http://www.kongregate.com/games/Badim/elite-forces-warfare/?gamereferral=" + kong_referal, "_blank");
} else {
getURL ("http://www.elite-games.net/games/449/elite-forces-warfare.html", "_blank");
}
}
function urlEFCloneWars() {
if (domain_str.indexOf("andkon.com") > -1) {
getURL ("http://www.andkon.com/arcade/missiledefender/eliteforcesclonewars/", "_blank");
} else if (domain_str.indexOf("uqudos.com") > -1) {
getURL ("http://uqudos.com/nl/portfolio/gameplay_68.html", "_blank");
} else if ((domain_str.indexOf("kongregate.com") > -1) || (kong_sponsor)) {
getURL ("http://www.kongregate.com/games/Badim/elite-forces-clone-wars/?gamereferral=" + kong_referal, "_blank");
} else {
getURL ("http://www.elite-games.net/games/247/elite-forces-clone-wars.html", "_blank");
}
}
function urlEFConquest() {
if (domain_str.indexOf("andkon.com") > -1) {
getURL ("http://www.andkon.com/arcade/missiledefender/eliteforcesconquest/", "_blank");
} else if (domain_str.indexOf("uqudos.com") > -1) {
getURL ("http://uqudos.com/nl/portfolio/gameplay_61.html", "_blank");
} else if ((domain_str.indexOf("kongregate.com") > -1) || (kong_sponsor)) {
getURL ("http://www.kongregate.com/games/Badim/elite-forces-conquest/?gamereferral=" + kong_referal, "_blank");
} else {
getURL ("http://www.elite-games.net/games/160/elite-forces-conquest.html", "_blank");
}
}
function urlEFPakistan() {
if (domain_str.indexOf("uqudos.com") > -1) {
getURL ("http://uqudos.com/nl/portfolio/gameplay_60.html", "_blank");
} else if ((domain_str.indexOf("kongregate.com") > -1) || (kong_sponsor)) {
getURL ("http://www.kongregate.com/games/Badim/elite-forces-pakistan/?gamereferral=" + kong_referal, "_blank");
} else {
getURL ("http://www.elite-games.net/games/113/elite-forces-pakistan.html", "_blank");
}
}
function urlEFJungle() {
if (domain_str.indexOf("uqudos.com") > -1) {
getURL ("http://uqudos.com/nl/portfolio/gameplay_57.html", "_blank");
} else if ((domain_str.indexOf("kongregate.com") > -1) || (kong_sponsor)) {
getURL ("http://www.kongregate.com/games/Badim/elite-forces-jungle-mission/?gamereferral=" + kong_referal, "_blank");
} else if (_root._url.indexOf("net-games.biz") > -1) {
getURL ("http://www.net-games.biz/online-games/Elite-Forces.html", "_blank");
} else if (_root._url.indexOf("mindjolt.com") > -1) {
getURL ("http://www.mindjolt.com/games/elite-forces-mission-jungle/", "_blank");
} else if (_root._url.indexOf("gamegarage.co.uk") > -1) {
getURL ("http://www.gamegarage.co.uk/shooting-games/elite-forces:-jungle-strike/", "_blank");
} else {
getURL ("http://www.elite-games.net/games/4/elite-forces-jungle.html", "_blank");
}
}
function urlEFDefense() {
if (domain_str.indexOf("uqudos.com") > -1) {
getURL ("http://uqudos.com/nl/portfolio/gameplay_58.html", "_blank");
} else if ((domain_str.indexOf("kongregate.com") > -1) || (kong_sponsor)) {
getURL ("http://www.kongregate.com/games/Badim/elite-forces-defense/?gamereferral=" + kong_referal, "_blank");
} else if (_root._url.indexOf("net-games.biz") > -1) {
getURL ("http://www.net-games.biz/funny-games/Elite-Forces-Defense.html", "_blank");
} else if (_root._url.indexOf("mindjolt.com") > -1) {
getURL ("http://www.mindjolt.com/games/elite-forces-mission-defense/", "_blank");
} else if (_root._url.indexOf("gamegarage.co.uk") > -1) {
getURL ("http://www.gamegarage.co.uk/strategy-games/elite-forces:-defense/", "_blank");
} else {
getURL ("http://www.elite-games.net/games/5/elite-forces-defense.html", "_blank");
}
}
function urlEFAfghan() {
if (domain_str.indexOf("uqudos.com") > -1) {
getURL ("http://uqudos.com/nl/portfolio/gameplay_59.html", "_blank");
} else if ((domain_str.indexOf("kongregate.com") > -1) || (kong_sponsor)) {
getURL ("http://www.kongregate.com/games/Badim/elite-forces-afghan/?gamereferral=" + kong_referal, "_blank");
} else if (_root._url.indexOf("net-games.biz") > -1) {
getURL ("http://www.net-games.biz/funny-games/Elite-Forces-Afghan.html", "_blank");
} else if (_root._url.indexOf("gamegarage.co.uk") > -1) {
getURL ("http://www.gamegarage.co.uk/shooting-games/ef-afghan/", "_blank");
} else {
getURL ("http://www.elite-games.net/games/35/elite-forces-afghan.html", "_blank");
}
}
function urlCardGame() {
getURL ("http://www.kongregate.com/games/Kongregate/kongai/?gamereferral=elite_forces_conquest", "_blank");
}
function urlFullGame() {
urlEFConquest();
}
_global.this_mc_w = 720;
_global.this_mc_h = 600;
_global.go_game = true;
_global.options_fog_version = false;
stop();
var version = "1.221";
XML.prototype.ignoreWhite = true;
_global.UniteScores = new CUniteScores();
var QUALITY_ID = 2;
var QUALITY_ARR = ["LOW", "MEDIUM", "HIGH"];
_root._quality = QUALITY_ARR[QUALITY_ID];
var total_score_shared_name = "HikdKjQ";
msg_depth = 10030;
if (msg_depth == undefined) {
trace("TOADD:main.as#msg_depth = 1100");
msg_depth = 11000;
}
var msg_holder_mc = _root.createEmptyMovieClip("msgs_mc", msg_depth);
msg_holder_mc.di = 0;
var msg_list = [];
var msg_count = 0;
var msg_opened_count = 0;
msg_holder_mc.sortList = function () {
var _local1 = 0;
for (var _local2 in msg_list) {
msg_obj = msg_list[_local2];
msg_obj._mc._ty = _local1;
_local1 = _local1 + msg_obj._mc._height;
}
};
msg_holder_mc.onEnterFrame = function () {
for (var _local2 in msg_list) {
msg_obj = msg_list[_local2];
var _local1 = msg_obj._mc._ty - msg_obj._mc._y;
if (_local1 != 0) {
if (Math.abs(_local1) < 1) {
msg_obj._mc._y = msg_obj._mc._ty;
} else {
msg_obj._mc._y = msg_obj._mc._y + (_local1 / 5);
}
}
if (msg_obj._ttl > 0) {
msg_obj._ttl--;
} else if (msg_obj._mc._alpha > 0) {
msg_obj._mc._alpha = msg_obj._mc._alpha * 0.9;
msg_obj._mc._alpha = msg_obj._mc._alpha - 4;
} else {
msg_obj._mc.unloadMovie();
msg_list.splice(Number(_local2), 1);
}
}
msg_holder_mc.sortList();
};
trace("ru.badim.utilz.1.8");
MovieClip.prototype.addESplash = function (color, knokout) {
var ttl = 10;
this.onEnterFrame = function () {
var _local2 = new flash.filters.GlowFilter(color, 0.8, 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 = tname;
} else {
_local2.dtxt.text = obj._label;
}
return(_local2);
};
MovieClip.prototype.make_me_font_but = function (act, l_str, r_str) {
if (l_str === undefined) {
l_str = "-";
}
if (r_str === undefined) {
r_str = "-";
}
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 = (l_str + this._label) + r_str;
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.attachAniFontBut = function (tlname, tname, obj, act) {
var _local2 = this.attachMovie(tlname, tname, this.getNextHighestDepth(), obj);
_local2.addHint();
_local2.make_me_ani_font_but(act);
if (obj._label == undefined) {
_local2.dtxt.text = tname;
} else {
_local2.dtxt.text = obj._label;
}
if ((obj._dax != undefined) && (obj._dax != 0)) {
_local2._tx = _local2._x;
_local2._x = _local2._x - ((obj._dax * 100) + 100);
_local2._ttw = obj._dax;
_local2.onEnterFrame = function () {
if (this._ttw < 0) {
var _local2 = this._tx - this._x;
if (Math.abs(_local2) <= 1) {
this._x = this._tx;
delete this.onEnterFrame;
} else {
this._x = this._x + (_local2 / 5);
}
} else {
this._ttw--;
}
};
}
return(_local2);
};
MovieClip.prototype.make_me_ani_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);
this.dtxt.autoSize = "left";
this.gotoAndStop(1);
this._def_frame = 1;
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._def_frame = 4;
this._alpha = 50;
} else {
this._def_frame = 1;
this._alpha = 100;
}
this.gotoAndStop(this._def_frame);
};
this.onRollOver = function () {
if (!this._disabled) {
_root.snd.menu_toggle.start();
this.dtxt.setTextFormat(rtf);
this.gotoAndStop(2);
}
};
this.onRollOut = (this.onReleaseOutside = function () {
this.gotoAndStop(this._def_frame);
this.dtxt.setTextFormat(ntf);
});
this.onPress = function () {
if (!this._disabled) {
this.gotoAndStop(3);
}
};
this.onRelease = function () {
if (!this._disabled) {
_root.snd.menu_click.start();
this.gotoAndStop(2);
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 = tname;
} else {
_local2.dtxt.text = obj._label;
}
if (obj._ani) {
_local2.dtxt.autoSize = "center";
}
return(_local2);
};
MovieClip.prototype.make_me_but = function (act) {
if (typeof(act) == "function") {
this.act = act;
}
this.gotoAndStop(1);
this._def_frame = 1;
this.me_refresh = function () {
this.gotoAndStop(this._def_frame);
};
this.set_label = function (txt) {
this.dtxt.text = txt;
};
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._rollover();
}
};
this.onRollOut = (this.onReleaseOutside = function () {
this.gotoAndStop(this._def_frame);
});
this.onPress = function () {
if (!this._disabled) {
this._press();
this.gotoAndStop(3);
}
};
this.onRelease = function () {
if (!this._disabled) {
_root.snd.menu_click.start();
this.act();
this.gotoAndStop(2);
}
};
};
_global.get_game_mode = function () {
return("");
};
_global.doom_time = function () {
return(false);
};
_global.options_playsounds = true;
_global.options_playmusic = true;
_global.options_onefile = true;
_global.options_showbiginfo = true;
_global.cheats_on = false;
_global.options_multylang = true;
_global.options_allow_survival = false;
_global.options_trace_loaded_data = true;
_global.options_ready_to_go = true;
_global.options_showads = true;
_global.options_usecmpstar = false;
_global.options_game_speed = 1;
_global.score_submited = 0;
_global.options_show_intro = true;
_global.options_editor = false;
_global.options_editor_name = "Main";
_global.options_lvleditor = false;
_global.options_colision_rings = false;
_global.options_show_points = false;
_global.options_showautoproceedbox = true;
_global.options_showdialoges = true;
_global.options_imgod = false;
_global.options_lock_to_eg_net = false;
_global.options_remove_external_url = false;
_global.options_flowplay_version = false;
_global.external_scores = false;
_global.help_char_move_showed = false;
_global.help_build_towers_showed = false;
_global.help_kamikaze_showed = true;
_global.help_upg_towers_showed = false;
_global.help_tutorial = true;
_global.go_game = false;
_global.options_payments = "mochicoins";
_global.options = {};
_global.options.extra = {};
_global.options.extra.youyou = false;
_root.SO = SharedObject.getLocal("THUG_GENETICS", "/");
_global.options_lock_to_eg_net = true;
_global.options_show_intro = false;
var domain_str;
check_domain();
options_sounds_set = function (val) {
for (var _local4 in _root.snd) {
var _local2 = _local4 + ext;
_root.snd[_local4].setVolume(val);
}
};
options_switch_sound = function () {
_global.options_playsounds = !_global.options_playsounds;
for (var _local4 in _root.snd) {
var _local3 = _local4 + ext;
_root.snd[_local4].setVolume(Number(_global.options_playsounds) * 100);
}
return(_global.options_playsounds);
};
CONST_PATH = "";
CONST_PATH_DATA = CONST_PATH + "data/";
CONST_PATH_GXF_DATA = CONST_PATH_DATA + "gfx/";
CONST_PATH_SXF_DATA = CONST_PATH_DATA + "sfx/";
next_but_x = _global.this_mc_w - 80;
next_but_y = _global.this_mc_h - 50;
menus_but_lname = "butAniLeftFont";
menus_sx = ((Stage.width * 0) / 2) + 40;
menus_sy = 155;
menus_dx = 0;
menus_dy = 34;
var this_date = new Date();
_global.refresh_add = "";
if (this._url.indexOf("http") != -1) {
_global.refresh_add = "?fa" + this_date.valueOf();
}
_global.ad_preloaded_showed = true;
_root.main_lang_id = _root.dlang;
_root.main_maps_set_name = "Main";
_root.main_maps_new_name = "New";
var backup_data = {};
var data_xml;
var lang_xml;
if (_global.options_onefile) {
data_xml = new XML("<data><chars><char type=\"1\" name=\"Thug\" speed=\"0\" avaible=\"1\" /><char type=\"2\" name=\"Tanya\" speed=\"2\" avaible=\"1\" /><char type=\"4\" name=\"Sadam\" speed=\"1\" avaible=\"1\" /></chars><maps_example><add_hive gid=\"GID\" val=\"X:Number,Y:Number,R:Number\" /></maps_example><map_list><map_1 rules=\"enemy_sleep\" bg_id=\"2\" name=\"Map #1\" author=\"Badim\"><map><add_hive gid=\"1\" val=\"200,170,48\" /><add_hive gid=\"2\" val=\"620,400,16\" /><add_text val=\"tutorial_text_1\" /></map></map_1><map_2 rules=\"enemy_sleep\" bg_id=\"2\" name=\"Map #2\" author=\"Badim\"><map><add_hive gid=\"1\" val=\"150,330,30\" /><add_hive gid=\"2\" val=\"620,400,50\" /><add_hive gid=\"0\" val=\"300,170,20\" /><add_hive gid=\"0\" val=\"400,190,20\" /><add_text val=\"tutorial_text_2\" /></map></map_2><map_3 rules=\"enemy_slow\" bg_id=\"2\" name=\"Map #3\" author=\"Badim\"><map><add_hive gid=\"1\" val=\"130,160,32\" /><add_hive gid=\"2\" val=\"650,500,32\" /><add_hive gid=\"0\" val=\"180,140,8\" /><add_hive gid=\"0\" val=\"360,340,16\" /><add_hive gid=\"0\" val=\"300,170,24\" /><add_hive gid=\"0\" val=\"400,190,24\" /><add_text val=\"tutorial_text_3\" /></map></map_3><map_jason_2 rules=\"\" bg_id=\"2\" name=\"Map #4\" author=\"KTRECORDS\"><map><add_hive val=\"298,16,30\" gid=\"0\" /><add_hive val=\"421,479,30\" gid=\"0\" /><add_hive val=\"338,370,20\" gid=\"0\" /><add_hive val=\"617,161,26\" gid=\"0\" /><add_hive val=\"91,446,40\" gid=\"0\" /><add_hive val=\"620,400,20\" gid=\"2\" /><add_hive val=\"200,160,40\" gid=\"1\" /></map></map_jason_2><map_jason_3 rules=\"\" bg_id=\"2\" name=\"Map #5\" author=\"KTRECORDS\"><map><add_hive val=\"383,431,30\" gid=\"0\" /><add_hive val=\"272,336,10\" gid=\"0\" /><add_hive val=\"671,255,28\" gid=\"0\" /><add_hive val=\"366,162,22\" gid=\"0\" /><add_hive val=\"297,41,20\" gid=\"0\" /><add_hive val=\"121,387,16\" gid=\"0\" /><add_hive val=\"525,154,86\" gid=\"0\" /><add_hive val=\"620,400,20\" gid=\"2\" /><add_hive val=\"200,160,40\" gid=\"1\" /></map></map_jason_3><map_6 rules=\"enemy_slow\" bg_id=\"2\" name=\"Map #6\" author=\"Badim\"><map><add_hive type=\"3\" val=\"362,524,128\" gid=\"0\" /><add_hive type=\"1\" val=\"255,62,24\" gid=\"0\" /><add_hive type=\"1\" val=\"439,214,16\" gid=\"0\" /><add_hive type=\"1\" val=\"677,423,24\" gid=\"0\" /><add_hive type=\"1\" val=\"681,301,16\" gid=\"0\" /><add_hive type=\"1\" val=\"100,446,32\" gid=\"0\" /><add_hive type=\"1\" val=\"56,350,16\" gid=\"0\" /><add_hive type=\"1\" val=\"185,117,8\" gid=\"0\" /><add_hive type=\"1\" val=\"357,149,8\" gid=\"0\" /><add_hive type=\"1\" val=\"563,464,32\" gid=\"0\" /><add_hive type=\"1\" val=\"200,544,16\" gid=\"0\" /><add_hive type=\"1\" val=\"237,443,48\" gid=\"0\" /><add_hive type=\"1\" val=\"85,179,64\" gid=\"1\" /><add_hive type=\"1\" val=\"666,162,32\" gid=\"2\" /><add_text val=\"tutorial_hold_win_1\" /></map></map_6><map_7 rules=\"\" bg_id=\"2\" name=\"Map #7\" author=\"Badim\"><map><add_hive type=\"1\" val=\"134,103,32\" gid=\"0\" /><add_hive type=\"1\" val=\"655,165,32\" gid=\"0\" /><add_hive type=\"1\" val=\"328,585,32\" gid=\"0\" /><add_hive type=\"1\" val=\"513,222,24\" gid=\"0\" /><add_hive type=\"1\" val=\"208,186,24\" gid=\"0\" /><add_hive type=\"1\" val=\"331,478,24\" gid=\"0\" /><add_hive type=\"1\" val=\"199,382,32\" gid=\"0\" /><add_hive type=\"1\" val=\"492,430,32\" gid=\"0\" /><add_hive type=\"1\" val=\"403,150,32\" gid=\"0\" /><add_hive type=\"1\" val=\"506,36,16\" gid=\"0\" /><add_hive type=\"1\" val=\"373,32,16\" gid=\"0\" /><add_hive type=\"1\" val=\"680,483,16\" gid=\"0\" /><add_hive type=\"1\" val=\"587,579,16\" gid=\"0\" /><add_hive type=\"1\" val=\"150,506,16\" gid=\"0\" /><add_hive type=\"1\" val=\"36,395,16\" gid=\"0\" /><add_hive type=\"1\" val=\"446,36,32\" gid=\"2\" /><add_hive type=\"1\" val=\"640,541,32\" gid=\"3\" /><add_hive type=\"1\" val=\"341,295,64\" gid=\"0\" /><add_hive type=\"1\" val=\"88,452,32\" gid=\"1\" /></map></map_7><map_8 rules=\"enemy_slow\" bg_id=\"2\" name=\"Map #8\" author=\"Badim\"><map><add_hive type=\"1\" val=\"550,128,32\" gid=\"0\" /><add_hive type=\"1\" val=\"268,174,8\" gid=\"0\" /><add_hive type=\"1\" val=\"535,441,16\" gid=\"0\" /><add_hive type=\"1\" val=\"466,149,24\" gid=\"0\" /><add_hive type=\"1\" val=\"247,418,24\" gid=\"0\" /><add_hive type=\"1\" val=\"677,391,24\" gid=\"2\" /><add_hive type=\"1\" val=\"228,45,16\" gid=\"0\" /><add_hive type=\"1\" val=\"65,209,16\" gid=\"0\" /><add_hive type=\"1\" val=\"660,495,32\" gid=\"2\" /><add_hive type=\"1\" val=\"191,145,34\" gid=\"1\" /><add_hive type=\"2\" val=\"352,168,32\" gid=\"0\" /><add_hive type=\"2\" val=\"355,413,32\" gid=\"0\" /><add_text val=\"tutorial_speed_point_1\" /></map></map_8><map_9 rules=\"\" bg_id=\"2\" name=\"Map #9\" author=\"Badim\"><map><add_hive type=\"2\" val=\"83,447,32\" gid=\"0\" /><add_hive type=\"2\" val=\"660,154,32\" gid=\"2\" /><add_hive type=\"1\" val=\"71,120,32\" gid=\"1\" /><add_hive type=\"1\" val=\"666,515,32\" gid=\"2\" /><add_hive type=\"1\" val=\"421,255,32\" gid=\"0\" /><add_hive type=\"1\" val=\"327,379,32\" gid=\"0\" /><add_hive type=\"1\" val=\"442,354,24\" gid=\"0\" /><add_hive type=\"1\" val=\"310,267,24\" gid=\"0\" /><add_hive type=\"1\" val=\"665,428,8\" gid=\"0\" /><add_hive type=\"1\" val=\"570,520,8\" gid=\"0\" /><add_hive type=\"1\" val=\"221,62,16\" gid=\"0\" /><add_hive type=\"1\" val=\"65,266,16\" gid=\"0\" /><add_hive type=\"1\" val=\"67,197,8\" gid=\"0\" /><add_hive type=\"1\" val=\"147,81,8\" gid=\"0\" /><add_hive type=\"1\" val=\"227,213,16\" gid=\"0\" /><add_hive type=\"1\" val=\"505,390,16\" gid=\"0\" /><add_hive type=\"1\" val=\"246,467,32\" gid=\"0\" /><add_hive type=\"1\" val=\"491,131,32\" gid=\"0\" /></map></map_9><map_10 rules=\"\" bg_id=\"2\" name=\"Map #10\" author=\"Badim\"><map><add_hive type=\"1\" val=\"576,349,8\" gid=\"0\" /><add_hive type=\"1\" val=\"689,338,8\" gid=\"0\" /><add_hive type=\"1\" val=\"17,178,8\" gid=\"1\" /><add_hive type=\"1\" val=\"550,188,16\" gid=\"0\" /><add_hive type=\"1\" val=\"327,507,16\" gid=\"0\" /><add_hive type=\"1\" val=\"224,256,24\" gid=\"0\" /><add_hive type=\"2\" val=\"215,576,32\" gid=\"3\" /><add_hive type=\"3\" val=\"406,312,128\" gid=\"0\" /><add_hive type=\"1\" val=\"93,246,16\" gid=\"0\" /><add_hive type=\"1\" val=\"188,134,16\" gid=\"0\" /><add_hive type=\"1\" val=\"484,362,26\" gid=\"0\" /><add_hive type=\"1\" val=\"343,400,30\" gid=\"0\" /><add_hive type=\"1\" val=\"294,80,38\" gid=\"0\" /><add_hive type=\"1\" val=\"442,223,26\" gid=\"0\" /><add_hive type=\"1\" val=\"76,442,38\" gid=\"0\" /><add_hive type=\"1\" val=\"459,531,34\" gid=\"0\" /><add_hive type=\"1\" val=\"667,161,30\" gid=\"0\" /><add_hive type=\"1\" val=\"657,436,52\" gid=\"2\" /><add_hive type=\"1\" val=\"125,539,44\" gid=\"3\" /><add_hive type=\"1\" val=\"109,168,34\" gid=\"1\" /></map></map_10><map_4 rules=\"\" bg_id=\"2\" name=\"Map #11\" author=\"Badim\"><map><add_hive val=\"93,246,16\" gid=\"0\" /><add_hive val=\"188,134,16\" gid=\"0\" /><add_hive val=\"406,312,54\" gid=\"0\" /><add_hive val=\"484,362,26\" gid=\"0\" /><add_hive val=\"343,400,30\" gid=\"0\" /><add_hive val=\"185,289,26\" gid=\"0\" /><add_hive val=\"294,80,38\" gid=\"0\" /><add_hive val=\"442,223,26\" gid=\"0\" /><add_hive val=\"76,442,38\" gid=\"0\" /><add_hive val=\"459,531,34\" gid=\"0\" /><add_hive val=\"667,161,30\" gid=\"0\" /><add_hive val=\"657,436,52\" gid=\"2\" /><add_hive val=\"125,539,44\" gid=\"3\" /><add_hive val=\"109,168,34\" gid=\"1\" /></map></map_4><map_5 rules=\"\" bg_id=\"2\" name=\"Map #12\" author=\"Badim\"><map><add_hive val=\"384,436,8\" gid=\"0\" /><add_hive val=\"143,370,8\" gid=\"0\" /><add_hive val=\"275,332,8\" gid=\"0\" /><add_hive val=\"399,312,8\" gid=\"0\" /><add_hive val=\"360,137,16\" gid=\"0\" /><add_hive val=\"30,417,24\" gid=\"0\" /><add_hive val=\"93,218,64\" gid=\"1\" /><add_hive val=\"450,512,32\" gid=\"3\" /><add_hive val=\"681,422,32\" gid=\"0\" /><add_hive val=\"671,160,32\" gid=\"2\" /><add_hive val=\"343,390,16\" gid=\"0\" /><add_hive val=\"434,223,16\" gid=\"0\" /><add_hive val=\"104,454,16\" gid=\"0\" /><add_hive val=\"270,61,24\" gid=\"0\" /><add_hive val=\"368,519,16\" gid=\"0\" /><add_hive val=\"557,466,16\" gid=\"0\" /><add_hive val=\"678,337,16\" gid=\"0\" /><add_hive val=\"675,233,8\" gid=\"0\" /><add_hive val=\"579,176,8\" gid=\"0\" /><add_hive val=\"667,80,8\" gid=\"0\" /><add_hive val=\"187,282,24\" gid=\"0\" /><add_hive val=\"203,114,16\" gid=\"0\" /></map></map_5><map_11 rules=\"\" bg_id=\"2\" name=\"Map #13\" author=\"Badim\"><map><add_hive type=\"1\" val=\"201,426,8\" gid=\"0\" /><add_hive type=\"1\" val=\"250,511,32\" gid=\"0\" /><add_hive type=\"1\" val=\"524,86,32\" gid=\"0\" /><add_hive type=\"1\" val=\"513,373,32\" gid=\"0\" /><add_hive type=\"1\" val=\"659,175,16\" gid=\"0\" /><add_hive type=\"1\" val=\"321,300,16\" gid=\"0\" /><add_hive type=\"1\" val=\"381,307,16\" gid=\"0\" /><add_hive type=\"1\" val=\"336,360,16\" gid=\"0\" /><add_hive type=\"1\" val=\"328,123,32\" gid=\"0\" /><add_hive type=\"1\" val=\"162,210,32\" gid=\"0\" /><add_hive type=\"1\" val=\"521,223,32\" gid=\"0\" /><add_hive type=\"1\" val=\"442,500,32\" gid=\"0\" /><add_hive type=\"2\" val=\"569,517,64\" gid=\"2\" /><add_hive type=\"1\" val=\"672,317,32\" gid=\"0\" /><add_hive type=\"1\" val=\"110,447,32\" gid=\"0\" /><add_hive type=\"2\" val=\"51,361,64\" gid=\"0\" /><add_hive type=\"1\" val=\"217,50,32\" gid=\"1\" /><add_hive type=\"1\" val=\"669,560,32\" gid=\"2\" /><add_hive type=\"1\" val=\"137,580,16\" gid=\"0\" /><add_hive type=\"1\" val=\"193,557,16\" gid=\"0\" /><add_hive type=\"1\" val=\"125,517,8\" gid=\"3\" /><add_hive type=\"1\" val=\"176,493,16\" gid=\"0\" /><add_hive type=\"1\" val=\"670,432,16\" gid=\"0\" /><add_hive type=\"1\" val=\"172,127,16\" gid=\"0\" /><add_hive type=\"1\" val=\"290,55,8\" gid=\"0\" /></map></map_11><map_2_1 rules=\"\" bg_id=\"2\" name=\"Map 2-1\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"448,494,20\" gid=\"0\" /><add_hive type=\"1\" val=\"363,412,24\" gid=\"0\" /><add_hive type=\"1\" val=\"267,345,18\" gid=\"0\" /><add_hive type=\"1\" val=\"161,383,22\" gid=\"0\" /><add_hive type=\"1\" val=\"531,272,42\" gid=\"0\" /><add_hive type=\"1\" val=\"338,198,38\" gid=\"0\" /><add_hive type=\"3\" val=\"164,159,52\" gid=\"0\" /><add_hive type=\"1\" val=\"603,378,52\" gid=\"0\" /><add_hive type=\"1\" val=\"265,490,60\" gid=\"2\" /><add_hive type=\"1\" val=\"491,110,80\" gid=\"1\" /></map></map_2_1><map_2_2 rules=\"\" bg_id=\"2\" name=\"Map 2-2\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"351,185,18\" gid=\"0\" /><add_hive type=\"1\" val=\"465,394,34\" gid=\"0\" /><add_hive type=\"1\" val=\"96,294,32\" gid=\"0\" /><add_hive type=\"1\" val=\"519,134,38\" gid=\"0\" /><add_hive type=\"1\" val=\"286,326,26\" gid=\"0\" /><add_hive type=\"1\" val=\"382,491,30\" gid=\"0\" /><add_hive type=\"1\" val=\"604,538,32\" gid=\"0\" /><add_hive type=\"1\" val=\"188,187,26\" gid=\"0\" /><add_hive type=\"1\" val=\"600,291,60\" gid=\"3\" /><add_hive type=\"1\" val=\"367,75,60\" gid=\"2\" /><add_hive type=\"1\" val=\"173,469,80\" gid=\"1\" /></map></map_2_2><map_2_3 rules=\"\" bg_id=\"2\" name=\"Map 2-3\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"142,373,32\" gid=\"0\" /><add_hive type=\"1\" val=\"352,84,32\" gid=\"0\" /><add_hive type=\"1\" val=\"525,378,32\" gid=\"0\" /><add_hive type=\"1\" val=\"112,149,40\" gid=\"1\" /><add_hive type=\"1\" val=\"615,143,40\" gid=\"2\" /><add_hive type=\"1\" val=\"348,520,40\" gid=\"3\" /><add_hive type=\"2\" val=\"350,302,110\" gid=\"0\" /></map></map_2_3><map_2_4 rules=\"\" bg_id=\"2\" name=\"Map 2-4\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"255,457,22\" gid=\"0\" /><add_hive type=\"1\" val=\"431,494,18\" gid=\"0\" /><add_hive type=\"1\" val=\"675,291,12\" gid=\"0\" /><add_hive type=\"1\" val=\"131,230,18\" gid=\"0\" /><add_hive type=\"1\" val=\"145,372,24\" gid=\"1\" /><add_hive type=\"2\" val=\"499,57,128\" gid=\"0\" /><add_hive type=\"1\" val=\"151,524,40\" gid=\"0\" /><add_hive type=\"1\" val=\"563,524,40\" gid=\"0\" /><add_hive type=\"1\" val=\"670,420,24\" gid=\"0\" /><add_hive type=\"3\" val=\"280,51,32\" gid=\"0\" /><add_hive type=\"1\" val=\"234,285,14\" gid=\"0\" /><add_hive type=\"1\" val=\"332,388,30\" gid=\"0\" /><add_hive type=\"1\" val=\"386,321,20\" gid=\"0\" /><add_hive type=\"1\" val=\"433,214,26\" gid=\"0\" /><add_hive type=\"1\" val=\"540,188,14\" gid=\"0\" /><add_hive type=\"1\" val=\"665,156,22\" gid=\"2\" /></map></map_2_4><map_2_5 rules=\"\" bg_id=\"2\" name=\"Map 2-5\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"114,411,18\" gid=\"1\" /><add_hive type=\"1\" val=\"601,128,14\" gid=\"2\" /><add_hive type=\"1\" val=\"422,354,16\" gid=\"0\" /><add_hive type=\"1\" val=\"428,200,12\" gid=\"0\" /><add_hive type=\"1\" val=\"515,126,16\" gid=\"0\" /><add_hive type=\"1\" val=\"421,121,18\" gid=\"0\" /><add_hive type=\"1\" val=\"504,273,16\" gid=\"0\" /><add_hive type=\"1\" val=\"426,278,14\" gid=\"0\" /><add_hive type=\"1\" val=\"432,425,16\" gid=\"0\" /><add_hive type=\"1\" val=\"291,121,16\" gid=\"0\" /><add_hive type=\"1\" val=\"204,114,18\" gid=\"0\" /><add_hive type=\"1\" val=\"109,118,16\" gid=\"0\" /><add_hive type=\"1\" val=\"107,194,18\" gid=\"0\" /><add_hive type=\"1\" val=\"110,341,16\" gid=\"0\" /><add_hive type=\"1\" val=\"206,284,14\" gid=\"0\" /><add_hive type=\"1\" val=\"111,276,16\" gid=\"0\" /><add_hive type=\"1\" val=\"205,414,18\" gid=\"0\" /><add_hive type=\"1\" val=\"291,417,16\" gid=\"0\" /></map></map_2_5><map_3_1 rules=\"\" bg_id=\"2\" name=\"Urban Sprawl\" author=\"Luke\"><map><add_hive type=\"1\" val=\"510,222,10\" gid=\"0\" /><add_hive type=\"1\" val=\"174,183,10\" gid=\"0\" /><add_hive type=\"1\" val=\"660,424,10\" gid=\"0\" /><add_hive type=\"1\" val=\"659,56,10\" gid=\"0\" /><add_hive type=\"1\" val=\"47,438,10\" gid=\"0\" /><add_hive type=\"1\" val=\"62,133,10\" gid=\"0\" /><add_hive type=\"1\" val=\"527,430,10\" gid=\"0\" /><add_hive type=\"1\" val=\"516,51,10\" gid=\"0\" /><add_hive type=\"1\" val=\"450,316,10\" gid=\"0\" /><add_hive type=\"1\" val=\"211,279,10\" gid=\"0\" /><add_hive type=\"1\" val=\"243,35,10\" gid=\"0\" /><add_hive type=\"1\" val=\"153,98,10\" gid=\"0\" /><add_hive type=\"1\" val=\"563,139,10\" gid=\"0\" /><add_hive type=\"1\" val=\"600,483,10\" gid=\"0\" /><add_hive type=\"1\" val=\"515,537,10\" gid=\"0\" /><add_hive type=\"1\" val=\"156,506,10\" gid=\"0\" /><add_hive type=\"1\" val=\"228,411,10\" gid=\"0\" /><add_hive type=\"1\" val=\"257,509,10\" gid=\"0\" /><add_hive type=\"1\" val=\"354,489,10\" gid=\"0\" /><add_hive type=\"1\" val=\"363,75,10\" gid=\"0\" /><add_hive type=\"1\" val=\"423,200,10\" gid=\"0\" /><add_hive type=\"1\" val=\"424,421,10\" gid=\"0\" /><add_hive type=\"1\" val=\"382,276,10\" gid=\"0\" /><add_hive type=\"1\" val=\"302,380,10\" gid=\"0\" /><add_hive type=\"1\" val=\"295,238,10\" gid=\"0\" /><add_hive type=\"1\" val=\"269,124,10\" gid=\"0\" /><add_hive type=\"1\" val=\"102,287,70\" gid=\"1\" /><add_hive type=\"1\" val=\"621,285,70\" gid=\"2\" /></map></map_3_1><map_3_2 rules=\"\" bg_id=\"2\" name=\"Sphere of Influence\" author=\"Luke\"><map><add_hive type=\"1\" val=\"414,202,16\" gid=\"0\" /><add_hive type=\"1\" val=\"321,218,16\" gid=\"0\" /><add_hive type=\"1\" val=\"335,323,16\" gid=\"0\" /><add_hive type=\"1\" val=\"436,313,16\" gid=\"0\" /><add_hive type=\"1\" val=\"380,261,64\" gid=\"0\" /><add_hive type=\"1\" val=\"709,106,10\" gid=\"3\" /><add_hive type=\"1\" val=\"657,123,10\" gid=\"3\" /><add_hive type=\"1\" val=\"624,164,10\" gid=\"3\" /><add_hive type=\"1\" val=\"655,209,10\" gid=\"3\" /><add_hive type=\"1\" val=\"706,220,10\" gid=\"3\" /><add_hive type=\"1\" val=\"684,167,20\" gid=\"3\" /><add_hive type=\"1\" val=\"460,568,10\" gid=\"2\" /><add_hive type=\"1\" val=\"445,518,10\" gid=\"2\" /><add_hive type=\"1\" val=\"403,490,10\" gid=\"2\" /><add_hive type=\"1\" val=\"354,507,10\" gid=\"2\" /><add_hive type=\"1\" val=\"340,565,10\" gid=\"2\" /><add_hive type=\"1\" val=\"398,550,20\" gid=\"2\" /><add_hive type=\"1\" val=\"14,322,10\" gid=\"1\" /><add_hive type=\"1\" val=\"62,302,10\" gid=\"1\" /><add_hive type=\"1\" val=\"91,260,10\" gid=\"1\" /><add_hive type=\"1\" val=\"77,212,10\" gid=\"1\" /><add_hive type=\"1\" val=\"27,190,10\" gid=\"1\" /><add_hive type=\"1\" val=\"29,258,20\" gid=\"1\" /></map></map_3_2><map_3_3 rules=\"\" bg_id=\"2\" name=\"Mosh Pit!\" author=\"Luke\"><map><add_hive type=\"1\" val=\"363,273,88\" gid=\"0\" /><add_hive type=\"1\" val=\"370,154,20\" gid=\"2\" /><add_hive type=\"1\" val=\"221,330,20\" gid=\"2\" /><add_hive type=\"1\" val=\"256,369,20\" gid=\"0\" /><add_hive type=\"1\" val=\"308,408,20\" gid=\"1\" /><add_hive type=\"1\" val=\"421,399,20\" gid=\"2\" /><add_hive type=\"1\" val=\"480,372,20\" gid=\"0\" /><add_hive type=\"1\" val=\"516,330,20\" gid=\"3\" /><add_hive type=\"1\" val=\"505,226,20\" gid=\"2\" /><add_hive type=\"1\" val=\"470,189,20\" gid=\"0\" /><add_hive type=\"1\" val=\"422,158,20\" gid=\"3\" /><add_hive type=\"1\" val=\"318,153,20\" gid=\"1\" /><add_hive type=\"1\" val=\"265,172,20\" gid=\"0\" /><add_hive type=\"1\" val=\"231,215,20\" gid=\"3\" /><add_hive type=\"1\" val=\"217,273,20\" gid=\"1\" /><add_hive type=\"1\" val=\"519,279,20\" gid=\"1\" /><add_hive type=\"1\" val=\"366,412,20\" gid=\"3\" /></map></map_3_3><map_3_4 rules=\"\" bg_id=\"2\" name=\"Wall of Death\" author=\"Luke\"><map><add_hive type=\"1\" val=\"593,448,20\" gid=\"2\" /><add_hive type=\"1\" val=\"592,392,20\" gid=\"2\" /><add_hive type=\"1\" val=\"589,330,20\" gid=\"2\" /><add_hive type=\"1\" val=\"586,276,20\" gid=\"2\" /><add_hive type=\"1\" val=\"581,216,20\" gid=\"2\" /><add_hive type=\"1\" val=\"581,161,20\" gid=\"2\" /><add_hive type=\"1\" val=\"579,111,20\" gid=\"2\" /><add_hive type=\"1\" val=\"130,447,20\" gid=\"1\" /><add_hive type=\"1\" val=\"128,393,20\" gid=\"1\" /><add_hive type=\"1\" val=\"132,339,20\" gid=\"1\" /><add_hive type=\"1\" val=\"126,284,20\" gid=\"1\" /><add_hive type=\"1\" val=\"135,231,20\" gid=\"1\" /><add_hive type=\"1\" val=\"134,176,20\" gid=\"1\" /><add_hive type=\"1\" val=\"133,120,20\" gid=\"1\" /></map></map_3_4><map_3_5 rules=\"enemy_slow\" bg_id=\"2\" name=\"150: The Spartans!\" author=\"Luke\"><map><add_hive type=\"1\" val=\"650,151,62\" gid=\"2\" /><add_hive type=\"1\" val=\"293,263,24\" gid=\"0\" /><add_hive type=\"1\" val=\"251,433,24\" gid=\"0\" /><add_hive type=\"1\" val=\"208,139,24\" gid=\"0\" /><add_hive type=\"1\" val=\"414,308,32\" gid=\"2\" /><add_hive type=\"1\" val=\"386,495,32\" gid=\"2\" /><add_hive type=\"1\" val=\"579,347,32\" gid=\"2\" /><add_hive type=\"1\" val=\"515,174,32\" gid=\"2\" /><add_hive type=\"1\" val=\"404,94,32\" gid=\"2\" /><add_hive type=\"3\" val=\"99,267,150\" gid=\"1\" /><add_hive type=\"1\" val=\"170,202,16\" gid=\"1\" /><add_hive type=\"1\" val=\"181,262,16\" gid=\"1\" /><add_hive type=\"1\" val=\"169,316,16\" gid=\"1\" /></map></map_3_5><map_3_6 rules=\"\" bg_id=\"2\" name=\"Death Star: The Light Side\" author=\"Luke\"><map><add_hive type=\"1\" val=\"119,69,20\" gid=\"1\" /><add_hive type=\"1\" val=\"359,44,20\" gid=\"1\" /><add_hive type=\"1\" val=\"637,427,20\" gid=\"1\" /><add_hive type=\"1\" val=\"228,529,10\" gid=\"3\" /><add_hive type=\"1\" val=\"85,290,10\" gid=\"1\" /><add_hive type=\"1\" val=\"250,73,10\" gid=\"3\" /><add_hive type=\"1\" val=\"641,143,10\" gid=\"3\" /><add_hive type=\"1\" val=\"556,83,10\" gid=\"1\" /><add_hive type=\"1\" val=\"674,305,10\" gid=\"1\" /><add_hive type=\"1\" val=\"562,569,10\" gid=\"3\" /><add_hive type=\"1\" val=\"475,537,10\" gid=\"1\" /><add_hive type=\"1\" val=\"64,176,30\" gid=\"1\" /><add_hive type=\"1\" val=\"86,461,8\" gid=\"3\" /><add_hive type=\"1\" val=\"350,290,512\" gid=\"2\" /></map></map_3_6><map_3_7 rules=\"\" bg_id=\"2\" name=\"Death Star: The Dark Side\" author=\"Luke\"><map><add_hive type=\"1\" val=\"674,77,24\" gid=\"1\" /><add_hive type=\"1\" val=\"86,461,8\" gid=\"2\" /><add_hive type=\"1\" val=\"64,176,30\" gid=\"2\" /><add_hive type=\"1\" val=\"475,537,10\" gid=\"2\" /><add_hive type=\"1\" val=\"562,569,10\" gid=\"3\" /><add_hive type=\"1\" val=\"674,305,10\" gid=\"3\" /><add_hive type=\"1\" val=\"556,83,10\" gid=\"3\" /><add_hive type=\"1\" val=\"641,143,10\" gid=\"2\" /><add_hive type=\"1\" val=\"250,73,10\" gid=\"3\" /><add_hive type=\"1\" val=\"85,290,10\" gid=\"3\" /><add_hive type=\"1\" val=\"228,529,10\" gid=\"2\" /><add_hive type=\"1\" val=\"637,427,24\" gid=\"2\" /><add_hive type=\"1\" val=\"359,44,20\" gid=\"2\" /><add_hive type=\"1\" val=\"119,69,20\" gid=\"2\" /><add_hive type=\"1\" val=\"350,290,1024\" gid=\"1\" /></map></map_3_7><map_4_1 rules=\"\" bg_id=\"2\" name=\"Map 4-1\" author=\"Arkh Mori\"><map><add_hive type=\"1\" val=\"367,21,64\" gid=\"1\" /><add_hive type=\"1\" val=\"38,482,64\" gid=\"2\" /><add_hive type=\"1\" val=\"627,452,64\" gid=\"3\" /><add_hive type=\"2\" val=\"326,293,244\" gid=\"0\" /><add_hive type=\"1\" val=\"197,550,12\" gid=\"0\" /><add_hive type=\"1\" val=\"177,471,24\" gid=\"0\" /><add_hive type=\"1\" val=\"165,408,12\" gid=\"0\" /><add_hive type=\"1\" val=\"110,351,12\" gid=\"0\" /><add_hive type=\"1\" val=\"48,300,28\" gid=\"0\" /><add_hive type=\"1\" val=\"147,242,22\" gid=\"0\" /><add_hive type=\"1\" val=\"323,559,18\" gid=\"0\" /><add_hive type=\"1\" val=\"668,317,14\" gid=\"0\" /><add_hive type=\"1\" val=\"611,306,14\" gid=\"0\" /><add_hive type=\"1\" val=\"528,329,10\" gid=\"0\" /><add_hive type=\"1\" val=\"454,392,18\" gid=\"0\" /><add_hive type=\"1\" val=\"452,479,20\" gid=\"0\" /><add_hive type=\"1\" val=\"646,220,14\" gid=\"0\" /><add_hive type=\"1\" val=\"221,66,12\" gid=\"0\" /><add_hive type=\"1\" val=\"292,109,14\" gid=\"0\" /><add_hive type=\"1\" val=\"358,129,24\" gid=\"0\" /><add_hive type=\"1\" val=\"455,112,26\" gid=\"0\" /><add_hive type=\"1\" val=\"490,63,8\" gid=\"0\" /><add_hive type=\"1\" val=\"606,109,18\" gid=\"0\" /><add_hive type=\"1\" val=\"171,131,22\" gid=\"0\" /><add_hive type=\"1\" val=\"340,344,8\" gid=\"0\" /><add_hive type=\"1\" val=\"389,271,14\" gid=\"0\" /><add_hive type=\"1\" val=\"317,227,12\" gid=\"0\" /><add_hive type=\"1\" val=\"271,322,12\" gid=\"0\" /></map></map_4_1><map_4_2 rules=\"\" bg_id=\"2\" name=\"Map 4-2\" author=\"Arkh Mori\"><map><add_hive type=\"1\" val=\"113,324,20\" gid=\"0\" /><add_hive type=\"1\" val=\"416,241,20\" gid=\"0\" /><add_hive type=\"1\" val=\"368,493,20\" gid=\"0\" /><add_hive type=\"2\" val=\"343,374,60\" gid=\"0\" /><add_hive type=\"1\" val=\"70,440,10\" gid=\"0\" /><add_hive type=\"1\" val=\"169,551,10\" gid=\"0\" /><add_hive type=\"1\" val=\"97,538,60\" gid=\"3\" /><add_hive type=\"1\" val=\"527,427,14\" gid=\"2\" /><add_hive type=\"1\" val=\"624,310,14\" gid=\"2\" /><add_hive type=\"1\" val=\"616,400,40\" gid=\"2\" /><add_hive type=\"1\" val=\"273,72,8\" gid=\"0\" /><add_hive type=\"1\" val=\"314,155,8\" gid=\"0\" /><add_hive type=\"1\" val=\"188,289,10\" gid=\"0\" /><add_hive type=\"1\" val=\"63,273,8\" gid=\"0\" /><add_hive type=\"1\" val=\"200,160,40\" gid=\"1\" /></map></map_4_2><map_jason_4 rules=\"\" bg_id=\"2\" name=\"Jason map 4\" author=\"KTRECORDS\"><map><add_hive val=\"257,472,34\" gid=\"0\" /><add_hive val=\"210,351,14\" gid=\"0\" /><add_hive val=\"438,376,28\" gid=\"0\" /><add_hive val=\"617,219,24\" gid=\"0\" /><add_hive val=\"79,496,22\" gid=\"0\" /><add_hive val=\"286,196,76\" gid=\"0\" /><add_hive val=\"462,66,36\" gid=\"3\" /><add_hive val=\"69,305,60\" gid=\"1\" /><add_hive val=\"597,526,46\" gid=\"2\" /></map></map_jason_4><map_jason_5 rules=\"\" bg_id=\"2\" name=\"Jason map 5\" author=\"KTRECORDS\"><map><add_hive val=\"311,493,46\" gid=\"0\" /><add_hive val=\"464,325,22\" gid=\"0\" /><add_hive val=\"137,475,14\" gid=\"0\" /><add_hive val=\"597,207,18\" gid=\"0\" /><add_hive val=\"289,238,88\" gid=\"0\" /><add_hive val=\"90,297,34\" gid=\"2\" /><add_hive val=\"462,65,34\" gid=\"3\" /><add_hive val=\"593,528,48\" gid=\"1\" /></map></map_jason_5><map_jason_6 rules=\"\" bg_id=\"2\" name=\"Jason map 6\" author=\"KTRECORDS\"><map><add_hive val=\"598,355,14\" gid=\"0\" /><add_hive val=\"339,233,62\" gid=\"0\" /><add_hive val=\"588,538,44\" gid=\"0\" /><add_hive val=\"625,210,26\" gid=\"0\" /><add_hive val=\"400,374,34\" gid=\"0\" /><add_hive val=\"259,113,16\" gid=\"0\" /><add_hive val=\"122,283,22\" gid=\"0\" /><add_hive val=\"227,429,68\" gid=\"2\" /><add_hive val=\"496,97,70\" gid=\"1\" /></map></map_jason_6><map_jason_7 rules=\"\" bg_id=\"2\" name=\"Jason map 7\" author=\"KTRECORDS\"><map><add_hive val=\"232,536,10\" gid=\"0\" /><add_hive val=\"356,395,14\" gid=\"0\" /><add_hive val=\"267,69,70\" gid=\"1\" /><add_hive val=\"400,188,10\" gid=\"0\" /><add_hive val=\"86,207,22\" gid=\"0\" /><add_hive val=\"455,509,60\" gid=\"3\" /><add_hive val=\"103,453,60\" gid=\"2\" /><add_hive val=\"675,145,26\" gid=\"0\" /><add_hive val=\"681,301,16\" gid=\"0\" /><add_hive val=\"654,426,18\" gid=\"0\" /><add_hive val=\"391,315,18\" gid=\"0\" /><add_hive val=\"561,186,14\" gid=\"0\" /><add_hive val=\"532,313,58\" gid=\"0\" /><add_hive val=\"257,291,66\" gid=\"0\" /><add_hive val=\"277,446,18\" gid=\"0\" /><add_hive val=\"479,54,20\" gid=\"0\" /></map></map_jason_7><map_jason_8 rules=\"\" bg_id=\"2\" name=\"Jason map 8\" author=\"KTRECORDS\"><map><add_hive val=\"599,484,70\" gid=\"2\" /><add_hive val=\"541,141,70\" gid=\"3\" /><add_hive val=\"98,302,32\" gid=\"0\" /><add_hive val=\"246,472,84\" gid=\"0\" /><add_hive val=\"349,247,24\" gid=\"0\" /><add_hive val=\"594,281,24\" gid=\"0\" /><add_hive val=\"418,67,38\" gid=\"0\" /><add_hive val=\"389,403,16\" gid=\"0\" /><add_hive val=\"481,309,32\" gid=\"0\" /><add_hive val=\"679,185,14\" gid=\"0\" /><add_hive val=\"399,542,24\" gid=\"0\" /><add_hive val=\"202,250,18\" gid=\"0\" /><add_hive val=\"390,167,10\" gid=\"0\" /><add_hive val=\"240,336,10\" gid=\"0\" /><add_hive val=\"207,91,80\" gid=\"1\" /><add_hive val=\"62,153,32\" gid=\"0\" /></map></map_jason_8><map_jason_9 rules=\"\" bg_id=\"2\" name=\"Jason Map 9\" author=\"KTRECORDS\"><map><add_hive val=\"359,188,54\" gid=\"0\" /><add_hive val=\"600,502,20\" gid=\"0\" /><add_hive val=\"316,318,16\" gid=\"0\" /><add_hive val=\"422,499,30\" gid=\"0\" /><add_hive val=\"304,81,20\" gid=\"0\" /><add_hive val=\"156,213,46\" gid=\"0\" /><add_hive val=\"598,311,36\" gid=\"0\" /><add_hive val=\"167,475,80\" gid=\"1\" /><add_hive val=\"536,96,76\" gid=\"3\" /></map></map_jason_9><map_jason_10 rules=\"\" bg_id=\"2\" name=\"Jason Map 10\" author=\"KTRECORDS\"><map><add_hive val=\"161,102,62\" gid=\"1\" /><add_hive val=\"594,455,48\" gid=\"3\" /><add_hive val=\"324,277,106\" gid=\"0\" /><add_hive val=\"585,256,18\" gid=\"0\" /><add_hive val=\"291,485,42\" gid=\"0\" /><add_hive val=\"416,78,32\" gid=\"0\" /><add_hive val=\"101,287,10\" gid=\"0\" /></map></map_jason_10><map_jason_11 rules=\"\" bg_id=\"2\" name=\"Jason Map 11\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"175,326,34\" gid=\"0\" /><add_hive type=\"1\" val=\"497,291,32\" gid=\"0\" /><add_hive type=\"1\" val=\"307,486,30\" gid=\"0\" /><add_hive type=\"1\" val=\"375,88,18\" gid=\"0\" /><add_hive type=\"1\" val=\"619,233,18\" gid=\"0\" /><add_hive type=\"2\" val=\"517,104,52\" gid=\"0\" /><add_hive type=\"1\" val=\"620,400,20\" gid=\"2\" /><add_hive type=\"1\" val=\"200,160,40\" gid=\"1\" /></map></map_jason_11><map_jason_12 rules=\"\" bg_id=\"2\" name=\"Jason Map 12\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"397,251,78\" gid=\"0\" /><add_hive type=\"1\" val=\"187,60,46\" gid=\"0\" /><add_hive type=\"1\" val=\"106,425,46\" gid=\"0\" /><add_hive type=\"1\" val=\"248,362,18\" gid=\"0\" /><add_hive type=\"1\" val=\"540,384,18\" gid=\"0\" /><add_hive type=\"1\" val=\"571,152,18\" gid=\"0\" /><add_hive type=\"1\" val=\"256,160,18\" gid=\"0\" /><add_hive type=\"3\" val=\"621,269,64\" gid=\"0\" /><add_hive type=\"2\" val=\"122,261,30\" gid=\"0\" /><add_hive type=\"1\" val=\"412,81,64\" gid=\"2\" /><add_hive type=\"1\" val=\"396,456,70\" gid=\"1\" /></map></map_jason_12><map_jason_13 rules=\"\" bg_id=\"2\" name=\"Jason Map 13\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"499,539,24\" gid=\"0\" /><add_hive type=\"1\" val=\"200,555,18\" gid=\"0\" /><add_hive type=\"1\" val=\"501,79,26\" gid=\"0\" /><add_hive type=\"1\" val=\"584,448,22\" gid=\"0\" /><add_hive type=\"1\" val=\"389,438,24\" gid=\"0\" /><add_hive type=\"1\" val=\"489,203,18\" gid=\"0\" /><add_hive type=\"1\" val=\"340,120,26\" gid=\"0\" /><add_hive type=\"1\" val=\"220,74,24\" gid=\"0\" /><add_hive type=\"1\" val=\"108,462,18\" gid=\"0\" /><add_hive type=\"3\" val=\"360,270,128\" gid=\"0\" /><add_hive type=\"1\" val=\"568,275,70\" gid=\"1\" /><add_hive type=\"1\" val=\"160,285,70\" gid=\"2\" /></map></map_jason_13><map_jason_14 rules=\"\" bg_id=\"2\" name=\"Jason Map 14\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"402,291,14\" gid=\"0\" /><add_hive type=\"1\" val=\"217,562,30\" gid=\"0\" /><add_hive type=\"3\" val=\"463,72,128\" gid=\"0\" /><add_hive type=\"1\" val=\"316,360,20\" gid=\"0\" /><add_hive type=\"1\" val=\"668,140,22\" gid=\"0\" /><add_hive type=\"1\" val=\"292,77,26\" gid=\"0\" /><add_hive type=\"1\" val=\"439,203,30\" gid=\"0\" /><add_hive type=\"1\" val=\"98,459,32\" gid=\"0\" /><add_hive type=\"1\" val=\"173,273,16\" gid=\"0\" /><add_hive type=\"1\" val=\"428,492,18\" gid=\"0\" /><add_hive type=\"1\" val=\"111,163,70\" gid=\"3\" /><add_hive type=\"1\" val=\"574,460,70\" gid=\"1\" /></map></map_jason_14><map_jason_15 rules=\"\" bg_id=\"2\" name=\"Jason Map 15\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"510,339,16\" gid=\"0\" /><add_hive type=\"1\" val=\"433,420,16\" gid=\"0\" /><add_hive type=\"1\" val=\"306,411,16\" gid=\"0\" /><add_hive type=\"1\" val=\"268,303,16\" gid=\"0\" /><add_hive type=\"1\" val=\"364,203,16\" gid=\"0\" /><add_hive type=\"1\" val=\"485,232,16\" gid=\"0\" /><add_hive type=\"1\" val=\"618,323,38\" gid=\"0\" /><add_hive type=\"1\" val=\"415,501,36\" gid=\"0\" /><add_hive type=\"1\" val=\"223,452,36\" gid=\"0\" /><add_hive type=\"1\" val=\"198,208,36\" gid=\"0\" /><add_hive type=\"1\" val=\"600,186,36\" gid=\"0\" /><add_hive type=\"1\" val=\"315,108,36\" gid=\"0\" /><add_hive type=\"1\" val=\"486,96,50\" gid=\"1\" /><add_hive type=\"2\" val=\"389,312,90\" gid=\"0\" /><add_hive type=\"1\" val=\"133,346,50\" gid=\"2\" /><add_hive type=\"1\" val=\"579,483,50\" gid=\"3\" /></map></map_jason_15><map_jason_16 rules=\"\" bg_id=\"2\" name=\"Jason Map 16\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"150,285,14\" gid=\"0\" /><add_hive type=\"1\" val=\"556,153,40\" gid=\"1\" /><add_hive type=\"1\" val=\"156,433,60\" gid=\"3\" /><add_hive type=\"1\" val=\"408,112,20\" gid=\"0\" /><add_hive type=\"1\" val=\"577,277,18\" gid=\"0\" /><add_hive type=\"1\" val=\"456,467,80\" gid=\"0\" /><add_hive type=\"1\" val=\"309,322,40\" gid=\"0\" /><add_hive type=\"2\" val=\"242,138,130\" gid=\"0\" /><add_hive type=\"1\" val=\"409,239,24\" gid=\"0\" /></map></map_jason_16><map_jason_17 rules=\"\" bg_id=\"2\" name=\"Jason MaP 17\" author=\"KTRECORDS\"><map><add_hive type=\"1\" val=\"156,514,38\" gid=\"0\" /><add_hive type=\"1\" val=\"616,124,54\" gid=\"0\" /><add_hive type=\"1\" val=\"187,95,38\" gid=\"0\" /><add_hive type=\"1\" val=\"394,365,26\" gid=\"0\" /><add_hive type=\"1\" val=\"574,446,32\" gid=\"0\" /><add_hive type=\"1\" val=\"227,408,30\" gid=\"0\" /><add_hive type=\"1\" val=\"503,208,24\" gid=\"0\" /><add_hive type=\"1\" val=\"274,249,14\" gid=\"0\" /><add_hive type=\"1\" val=\"624,281,40\" gid=\"3\" /><add_hive type=\"1\" val=\"385,124,46\" gid=\"1\" /><add_hive type=\"1\" val=\"105,279,40\" gid=\"2\" /><add_hive type=\"2\" val=\"377,527,30\" gid=\"0\" /></map></map_jason_17></map_list></data>");
data_xml.loaded = true;
var strs = [];
strs.push({lang_name:"English", lang_translator:"Ciaren & Josh", txt:"<lang test=\"Test\" restart=\"Restart\" name=\"Name\"\tdname=\"Player\" total_scores=\"Total Scores\" menu=\"Menu\" next=\"Next\" quality_changer=\"Quality Changer\" game_menu=\"Game Menu\" speed_control=\"Speed Control\" help=\"Help\" sound_on=\"Sound on\" sound_off=\"Sound off\" music_on=\"Music On\" music_off=\"Music Off\" more_games=\"More Games\" play=\"Play\" editor=\"Editor\" language=\"Language\" scores=\"Scores\" options=\"Options\" credits=\"Credits\" elite_forces=\"Elite Forces\" elite_games=\"Elite Games\" about=\"About\" show_ad=\"Show Ad\" download=\"Download\" back=\"Back\" run_speed_incresed=\"run speed increased\" color_1=\"Blue\" color_2=\"Red\" color_3=\"Green\" congratilation=\"Congratulations\" game_over=\"Game Over\" nano_released=\"Clones Released\" nano_killed=\"Clones Killed\" hives_captured=\"Barracks Captured\" hives_losted=\"Barracks Lost\" best=\"Best\" submit=\"Submit\" game_saved=\"Game Saved\" resume=\"Resume\" exit=\"Exit\" tutorial_text_1=\"Welcome to 'EF:Clone Wars', the objective is to capture your opponents barracks. You are the blue team, your opponents are in red and green. Send your units to the red barrack to attack. To attack a different Building, click your blue barrack and then click the enemy barrack you wish to attack. You will send 50% of the number of units you have in your barrack.\" tutorial_text_2=\"You have to capture the opponents barracks in order to produce your units. The grey barracks are neutral and will not attack. The number of units in a single barrack is limited. Press the Space bar to deselect your barrack and again to select all of your barracks.\" tutorial_text_3=\"Capture the biggest enemy barracks to produce your units faster, to select multiple barracks, drag and drop on an empty place.%eYou can add or remove to your selection by holding the CTRL key.%eGood luck and have fun!\" tutorial_speed_point_1=\"Capture 'Power Plants' to gain a speed bonus for your Clones. Power Plants produce clones only for self-defense.\" tutorial_hold_win_1=\"Some maps contain a special building.%eYou can alternatively win the map by capturing and holding it for an extended amount of time.%eYou can still win the map using regular methods as well..\" tutorial_editor_1=\"Welcome to the Editor. Here you can create your own map.%eClick and drag to build barracks and resize them.%eClick a barrack to change its team.%eBlue for the player, Red and green for enemies, grey for neutral.%eSHIFT+click will delete a barrack.%eCTRL+click will change type of building.%eSpace to save your map, copy your map code and exit to the lobby.\" />"});
strs.push({lang_name:"Russian - \u0420\u0443\u0441\u0441\u043A\u0438\u0439", lang_translator:"Badim", txt:"<lang name=\"\u0418\u043C\u044F\"\tdname=\"\u0418\u0433\u0440\u043E\u043A\" tutorial_hold_win_1=\"\u041D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u043A\u0430\u0440\u0442\u0430\u0445 \u0432\u044B \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E\u0435 \u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435.%e\u0417\u0430\u0445\u0432\u0430\u0442\u0438\u0442\u0435 \u0435\u0433\u043E \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u0434\u043E \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u0430 \u0434\u043B\u044F \u043F\u043E\u0431\u0435\u0434\u044B.\" tutorial_speed_point_1=\"\u0417\u0430\u0445\u0432\u0430\u0442\u0438\u0442\u0435 'Power Plants' \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u0431\u043E\u043D\u0443\u0441\u0430 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438 \u0432\u0430\u0448\u0438\u043C \u0432\u043E\u0439\u0441\u043A\u0430\u043C. Power Plants \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u044F\u0442 \u043A\u043B\u043E\u043D\u043E\u0432 \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u043E\u0431\u043E\u0440\u043E\u043D\u044B.\" tutorial_text_3=\"\u0427\u0442\u043E\u0431\u044B \u0432\u044B\u0434\u0435\u043B\u0438\u0442\u044C \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0431\u0430\u0440\u0430\u043A\u043E\u0432 - \u043C\u044B\u0448\u043A\u043E\u0439 \u043E\u0431\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0430\u0440\u0430\u043A\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u043C \u043D\u0443\u0436\u043D\u044B.%e\u0414\u043B\u044F \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u044F - \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 CTRL.%e\u0423\u0434\u0430\u0447\u0438 \u0432 \u0431\u043E\u044E!\" tutorial_text_2=\"\u0427\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0431\u043E\u043B\u044C\u0448\u0435 \u0441\u043E\u043B\u0434\u0430\u0442 - \u0437\u0430\u0445\u0432\u0430\u0442\u044B\u0432\u0430\u0439\u0442\u0435 \u0447\u0443\u0436\u0438\u0435 \u0431\u0430\u0440\u0440\u0430\u043A\u0438. \u0421\u0435\u0440\u044B\u0435 \u0431\u0430\u0440\u0430\u043A\u0438 \u043D\u0435\u0439\u0442\u0440\u0430\u043B\u044C\u043D\u044B \u0438 \u043D\u0435 \u0430\u0442\u0430\u043A\u0443\u044E\u0442. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u043E\u043B\u0434\u0430\u0442 \u0432 \u0431\u0430\u0440\u0430\u043A\u0435 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u043E \u0435\u0433\u043E \u0440\u0430\u0437\u043C\u0435\u0440\u043E\u043C. %e\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043F\u0440\u043E\u0431\u0435\u043B \u0434\u043B\u044F \u0442\u043E\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u0441\u043D\u044F\u0442\u044C \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u0438\u0435, \u0438 \u043E\u043F\u044F\u0442\u044C \u043F\u0440\u043E\u0431\u0435\u043B \u0447\u0442\u043E\u0431\u044B \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435 \u0431\u0430\u0440\u0430\u043A\u0438.\" tutorial_text_1=\"\u0414\u043E\u0431\u0440\u043E \u043F\u043E\u0436\u0430\u043B\u043E\u0432\u0430\u0442\u044C \u0432 'EF:Clone Wars'! \u0426\u0435\u043B\u044C \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 - \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u0442\u044C \u0432\u0440\u0430\u0436\u0435\u0441\u043A\u0438\u0435 \u0431\u0430\u0440\u0430\u043A\u0438. \u0412\u044B \u0438\u0433\u0440\u0430\u0435\u0442\u0435 \u0437\u0430 \u0421\u0438\u043D\u0438\u044E \u043A\u043E\u043C\u0430\u043D\u0434\u0443, \u0432\u0430\u0448\u0438 \u0432\u0440\u0430\u0433\u0438 \u0437\u0430 \u043A\u0440\u0430\u0441\u043D\u0443\u044E \u0438 \u0437\u0435\u043B\u0435\u043D\u0443\u044E. \u041F\u043E\u0441\u044B\u043B\u0430\u0439\u0442\u0435 \u0432\u0430\u0448\u0438 \u0432\u043E\u0439\u0441\u043A\u0430 \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u0442\u044C \u0432\u0440\u0430\u0436\u0435\u0441\u043A\u0438\u0435 \u0431\u0430\u0440\u0440\u0430\u043A\u0438. \u0414\u043B\u044F \u0430\u0442\u0430\u043A\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u0432\u0430\u0448 \u0421\u0438\u043D\u0438\u0439 \u0431\u0430\u0440\u0430\u043A \u0438 \u043F\u043E\u0442\u043E\u043C \u043D\u0430 \u0432\u0440\u0430\u0436\u0435\u0441\u043A\u0438\u0439, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0445\u043E\u0442\u0438\u0442\u0435 \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u0442\u044C. \u0412\u044B \u043F\u043E\u0448\u043B\u0435\u0442\u0435 \u0440\u043E\u0432\u043D\u043E 50% \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u043D\u044B\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0432 \u0431\u0430\u0440\u0430\u043A\u0435 \u0432 \u0430\u0442\u0430\u043A\u0443.\" exit=\"\u0412\u044B\u0445\u043E\u0434\" resume=\"\u041E\u0431\u0440\u0430\u0442\u043D\u043E\" game_saved=\"\u0418\u0433\u0440\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0430\" submit=\"Submit\" best=\"\u041B\u0443\u0447\u0448\u0438\u0439\" hives_losted=\"\u0411\u0430\u0440\u0430\u043A\u043E\u0432 \u043F\u043E\u0442\u0435\u0440\u044F\u043D\u043E\" hives_captured=\"\u0411\u0430\u0440\u0430\u043A\u043E\u0432 \u0437\u0430\u0445\u0432\u0430\u0447\u0435\u043D\u043E\" nano_killed=\"\u041A\u043B\u043E\u043D\u043E\u0432 \u0443\u0431\u0438\u0442\u043E\" nano_released=\"\u041A\u043B\u043E\u043D\u043E\u0432 \u0432\u044B\u043F\u0443\u0449\u0435\u043D\u043E\" game_over=\"\u041F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435\" congratilation=\"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C\" color_3=\"\u0417\u0435\u043B\u0435\u043D\u044B\u0439\" color_2=\"\u041A\u0440\u0430\u0441\u043D\u044B\u0439\" color_1=\"\u0421\u0438\u043D\u0438\u0439\" run_speed_incresed=\"\u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0431\u0435\u0433\u0430 \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0430\" back=\"\u041D\u0430\u0437\u0430\u0434\" download=\"\u0421\u043A\u0430\u0447\u0430\u0442\u044C\" show_ad=\"\u0420\u0435\u043A\u043B\u0430\u043C\u0430\" about=\"\u0410\u0432\u0442\u043E\u0440\u044B\" elite_games=\"\u042D\u043B\u0438\u0442\u043D\u044B\u0435 \u0418\u0433\u0440\u044B\" elite_forces=\"Elite Forces\" credits=\"\u0410\u0432\u0442\u043E\u0440\u044B\" options=\"\u041E\u043F\u0446\u0438\u0438\" scores=\"\u041E\u0447\u043A\u0438\" language=\"Language\" editor=\"\u0420\u0435\u0434\u0430\u043A\u0442\u043E\u0440\" play=\"\u0418\u0433\u0440\u0430\u0442\u044C\" more_games=\"\u0414\u0440\u0443\u0433\u0438\u0435 \u0438\u0433\u0440\u044B\" music_off=\"\u041C\u0443\u0437\u044B\u043A\u0430 \u0432\u044B\u043A\u043B.\" music_on=\"\u041C\u0443\u0437\u044B\u043A\u0430 \u0432\u043A\u043B.\" sound_off=\"\u0417\u0432\u0443\u043A \u0432\u044B\u043A\u043B\" sound_on=\"\u0417\u0432\u0443\u043A \u0432\u043A\u043B\" help=\"\u041F\u043E\u043C\u043E\u0449\u044C\" speed_control=\"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438\" game_menu=\"\u041F\u0430\u0443\u0437\u0430\" quality_changer=\"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430\" next=\"\u0414\u0430\u043B\u0435\u0435\" menu=\"\u041C\u0435\u043D\u044E\" total_scores=\"\u0412\u0441\u0435\u0433\u043E \u041E\u0447\u043A\u043E\u0432\" />"});
strs.push({lang_name:"German - Deutsch", www:"http://swf-games.com", www_txt:"Danke fuer die Deutsche Uebersetzung von XOR_Media", lang_translator:"XOR Media", txt:"<lang tutorial_editor_1=\"Willkommen im Editor. Hier kannst du deine eigene Karte erstellen.%eKlicke und ziehe um Baracken zu bauen und um die Gr\u00F6\u00DFe anzupassen.%eKlicke auf eine Baracke, um das Team zu \u00E4ndern.%eBlau f\u00FCr den Spieler, rot und gr\u00FCn f\u00FCr die Gegner, grau f\u00FCr Neutral.%eSHIFT+klick l\u00F6scht eine Baracke.%eSTRG+klick ver\u00E4ndert den Typ des Geb\u00E4udes.%eLeertaste, um die Karte zu Speichern, kopieren den Karten Kode und verlasse den Editor.\" tutorial_hold_win_1=\"Manche Karten enthalten spezielle Geb\u00E4ude.%eDu kannst die Karte wechselweise gewinnen, indem du die Geb\u00E4ude eroberst und diese f\u00FCr eine l\u00E4ngerte Zeitdauer halten kannst.%eDu kannst die Karte ebenso durch regelm\u00E4\u00DFige Methoden gewinnen..\" tutorial_speed_point_1=\"Erobere 'Kraftwerke' um vom Geschwindigkeitsbonus f\u00FCr deine Einheiten zu profitieren. Kraftwerke produzieren Klone nur f\u00FCr die eigene Verteidigung.\" tutorial_text_3=\"Erobere die gr\u00F6\u00DFten gegnerischen Baracken, um Einheiten schneller zu produzieren. Um mehrere Baracken auszuw\u00E4hlen, verwende drag and drop auf einer leeren Stelle. %eDu kannst zur Auswahl hinzuf\u00FCgen oder entfernen, indem man die STRG-Taste gedr\u00FCckt h\u00E4lt. %eViel Gl\u00FCck und Spa\u00DF!\" tutorial_text_2=\"Du musst die gegnerischen Baracken erobern, um deine eigenen Einheiten zu erzeugen. Die grauen Baracken sind neutral, und werden nicht angreifen. Die Anzahl der Einheiten einer Baracke ist begrenzt. Dr\u00FCcke die Leertaste um deine Baracken abzuw\u00E4hlen und wieder die Leertaste, um alle deine Baracken auszuw\u00E4hlen.\" tutorial_text_1=\"Willkommen bei 'EF:Clone Wars', die Aufgabe ist es, die Baracken deines Gegners zu erobern. Du bist das blaue Team, deine Gegner sind rot und gr\u00FCn. Sende deine Einheiten zu den roten Baracken, um diese anzugreifen. Um andere Geb\u00E4ude anzugreifen, klicke deine blaue Baracke an und klicke auf die Gegnerische Baracke, die du angreifen willst. Du wirst 50% von der Einheiten deiner Baracke senden.\" exit=\"Beenden\" resume=\"Fortsetzen\" game_saved=\"Spiel gespeichert\" submit=\"Abschicken\" best=\"Beste\" hives_losted=\"Baracken verloren\" hives_captured=\"Baracken erobert\" nano_killed=\"Klone get\u00F6tet\" nano_released=\"Klone freigelassen\" congratilation=\"Gl\u00FCckwunsch\" game_over=\"Spielende\" color_3=\"Gr\u00FCn\" color_2=\"Rot\" color_1=\"Blau\" run_speed_incresed=\"Renngeschwindigkeit erh\u00F6ht\" dname=\"Spieler\" name=\"Name\" back=\"Zur\u00FCck\" download=\"Download\" show_ad=\"Werbung\" about=\"\u00DCber\" elite_games=\"Elite Games\" elite_forces=\"Elite Forces\" credits=\"Abspann\" options=\"Optionen\" scores=\"Punkte\" language=\"Sprache\" editor=\"Editor\" play=\"Spielen\" more_games=\"Mehr Spiele\" music_off=\"Musik Aus\" music_on=\"Musik An\" sound_off=\"Sound aus\" sound_on=\"Sound an\" help=\"Hilfe\" speed_control=\"Geschwindigkeitskontrolle\" game_menu=\"Spielmen\u00FC\" quality_changer=\"Qualit\u00E4tswechsler\" next=\"Weiter\" menu=\"Men\u00FC\" total_scores=\"Punkte Gesamt\" />"});
strs.push({lang_name:"French - Fran\u00E7ais", www:"http://www.jeux-internet.com/", www_txt:"Plus de jeux en francais ici.", lang_translator:"Chris", txt:"<lang tutorial_editor_1=\"Bienvenue dans l'\u00E9diteur. Ici, vous pouvez cr\u00E9er votre propre carte.%eCliquez et d\u00E9placez les batiments pour les construire et leur donner leur bonne taille.%eCliquez une baraque pour la changer d'\u00E9quipe.%eBleu pour le joueur et Rouge et Vert pour les ennemis, Gris pour les neutres.%eSHIFT+click pour d\u00E9truire une baraque.%eCTRL+click pour changer de type de batiment.%eEspace pour sauver la carte, copiez alors le code de la carte et retourner au menu.\" tutorial_hold_win_1=\"Quelques cartes contiennent des batiments sp\u00E9ciaux.%eVous pouvez gagner la carte en capturant et en tenant le batiment pendant un certain temps.%eMais vous pouvez aussi gagner la carte en utilisant la m\u00E9thode habituelle...\" tutorial_speed_point_1=\"Capturez les 'centrales \u00E9nergetiques' pour gagner un bonus de vitesse pour vos clones. Les centrales \u00E9nergetiques produisent des clones pour l'auto-d\u00E9fense uniquement.\" tutorial_text_3=\"Capturez la plus grande baraque de votre ennemi pour produire vos unit\u00E9s plus rapidement, pour s\u00E9lectionner plusieurs baraques, s\u00E9lectionnez et d\u00E9placez sur un endroit vide.%eVous pouvez ajouter et supprimer vos s\u00E9lections en appuyant sur la touche CTRL.%eBonne chance et amusez vous bien !\" tutorial_text_2=\"Vous devez capturer les baraques de l'adversaire de fa\u00E7on \u00E0 produire vos unit\u00E9s. Les baraques grises sont neutres et ne vous attaqueront pas. Le nombre d'unit\u00E9s dans une baraque est limit\u00E9. Appuyez sur la barre d'Espace pour d\u00E9selectionner votre baraque et en s\u00E9lectionner plusieurs.\" tutorial_text_1=\"Bienvenue \u00E0 'EF: Guerre des clones', l'objectif est de capturer les baraques de votre adversaire. Vous \u00EAtes l'\u00E9quipe bleue, vos adversaires sont les rouges et les verts. Envoyez vos unit\u00E9s vers les baraques rouges pour attaquer. Pour attaquer un batiment diff\u00E9rent, cliquez sur votre baraque bleue et ensuite cliquez sur la baraque que vous d\u00E9sirez attaquer. Vous enverrez 50% des unit\u00E9s qui se trouvent dans votre baraque.\" exit=\"Sortie\" resume=\"Continuer\" name=\"Nom\" dname=\"Joueur\" game_saved=\"Partie sauvegard\u00E9e\" submit=\"Soumettre\" best=\"Meilleur\" hives_losted=\"Les baraques ont \u00E9t\u00E9 perdues\" hives_captured=\"Les baraques ont \u00E9t\u00E9 captur\u00E9es\" nano_killed=\"Les clones ont \u00E9t\u00E9 tu\u00E9s\" nano_released=\"Les clones ont \u00E9t\u00E9 lib\u00E9r\u00E9s\" congratilation=\"F\u00E9licitation\" game_over=\"Fin de la partie\" color_3=\"Vert\" color_2=\"Rouge\" color_1=\"Bleu\" run_speed_incresed=\"courir augmente la vitesse\" back=\"Retour\" download=\"T\u00E9l\u00E9charger\" show_ad=\"Montrer les pubs\" about=\"A propos\" elite_games=\"Elite Games\" elite_forces=\"Elite Forces\" credits=\"Cr\u00E9dits\" options=\"Options\" scores=\"Scores\" language=\"Langue\" editor=\"Editeur\" play=\"Jouer\" more_games=\"Plus de jeux\" music_off=\"Pas de musique\" music_on=\"Musique\" sound_off=\"Pas de bruitage\" sound_on=\"Bruitage\" help=\"Aide\" speed_control=\"Contr\u00F4le de vitesse\" game_menu=\"Menu du jeu\" quality_changer=\"Modificateur de qualit\u00E9\" next=\"Suivant\" menu=\"Menu\" total_scores=\"Score total\" />"});
strs.push({lang_name:"Spanish - Espa\u00F1ol", www:"http://www.arcadereign.com", www_txt:"Traducci\u00F3n cortes\u00EDa de ArcadeReign.com", lang_translator:"Mulitri", txt:"<lang tutorial_editor_1=\"Bienvenido al Editor. Aqu\u00ED puedes crear tu propio mapa.%eHaz Click y arrastra para construir cuarteles y cambiarles de tama\u00F1o.%eClick en un cuartel para cambiarle de equipo.%eAzul para el jugador, Rojo y Verde para los enemigos, Gris para neutral.%eSHIFT+click borrar\u00E1 un cuartel.%eCTRL+click cambiar\u00E1 el tipo de edificaci\u00F3n.%eBarra de Espacio guarda tu mapa, copia el c\u00F3digo de tu mapa y sal al men\u00FA.\" tutorial_hold_win_1=\"Algunos mapas contienen una edificaci\u00F3n especial.%eAlternativamente puedes ganar el mapa capturando y reteniendolo por un cierto periodo de tiempo.%eTambi\u00E9n puedes ganar el mapa usando m\u00E9todos regulares..\" tutorial_speed_point_1=\"Captura 'Plantas de Producci\u00F3n' para conseguir bonos de velocidad para tus clones. Las Plantas de Producci\u00F3n producen clones solamente para defensa propia.\" tutorial_text_3=\"Captura el cuartel enemigo m\u00E1s grande para producir tus unidades m\u00E1s r\u00E1pido, para seleccionar multiples cuarteles, coge y arrastra en un lugar vac\u00EDo.%ePuedes a\u00F1adir o quitar de tu selecci\u00F3n dejando presionada la tela CTRL.%eBuena suerte y divi\u00E9rtete!\" tutorial_text_2=\"Tienes que capturar los cuarteles de tus oponentes para producir tus unidades. Los cuarteles grises son neutrales y no te atacar\u00E1n. El n\u00FAmero de unidades en un cuartel es limitado. Presiona la barra de espacio para deseleccionar tu cuartel y otra vez para seleccionar todos tus cuarteles.\" tutorial_text_1=\"Bienvenido a 'EF:Clone Wars', el objetivo es capturar los cuarteles de tus oponentes. Eres el equipo Azul, tus oponentes son el rojo y el verde. Env\u00EDa tus unidades a atacar el cuartel Rojo. Para atacar una edificaci\u00F3n diferente, haz click en tu cuartel Azul y luego clik en el cuartel enemigo que desees atacar. Enviar\u00E1s el 50% del n\u00FAmero de unidades que tengas en tu cuartel.\" exit=\"Salir\" resume=\"Continuar\" game_saved=\"Juego Guardado\" submit=\"Enviar\" best=\"Mejor\" hives_losted=\"Cuarteles Perdidos\" hives_captured=\"Cuarteles Capturados\" name=\"Nombre\" dname=\"Jugador\" nano_killed=\"Clones Muertos\" nano_released=\"Clones Liberados\" congratilation=\"Felicidades\" game_over=\"Fin del Juego\" color_3=\"Verde\" color_2=\"Rojo\" color_1=\"Azul\" run_speed_incresed=\"velocidad incrementada\" back=\"Atras\" download=\"Descargar\" show_ad=\"Anuncio\" about=\"About\" elite_games=\"Elite Games\" elite_forces=\"Elite Forces\" credits=\"Creditos\" options=\"Opciones\" scores=\"Puntuaciones\" language=\"Idioma\" editor=\"Editor\" play=\"Jugar\" more_games=\"Mas Juegos\" music_off=\"Sin M\u00FAsica\" music_on=\"Con M\u00FAsica\" sound_off=\"Sin Sonido\" sound_on=\"Con Sonido\" help=\"Ayuda\" speed_control=\"Control Velocidad\" game_menu=\"Pausa Menu\" quality_changer=\"Cambiar calidad\" next=\"Siguiente\" menu=\"Menu\" total_scores=\"Puntuaci\u00F3n Total\" />"});
strs.push({lang_name:"Turkish - T\u00FCrk\u00E7e", www:"http://www.zibumi.com", lang_translator:"Serhat", txt:"<lang tutorial_editor_1=\"Edit\u00F6re ho\u015Fgeldin. Burada kendi haritan\u0131 yaratabilirsin.%eK\u0131\u015Fla in\u015Fa etmek ve b\u00FCy\u00FCkl\u00FC\u011F\u00FCn\u00FC ayarlamak i\u00E7in fare ile t\u0131klay\u0131p s\u00FCr\u00FCkle.%eBir k\u0131\u015Flan\u0131n ait oldu\u011Fu tak\u0131m\u0131 de\u011Fi\u015Ftirmek \u00FCzerine t\u0131kla.%eOyuncu i\u00E7in mavi, d\u00FC\u015Fmanlar i\u00E7in k\u0131rm\u0131z\u0131 ve ye\u015Fil, tarafs\u0131zlar i\u00E7in gri renkleri kullan.%eSHIFT+t\u0131k k\u0131\u015Flay\u0131 siler.%eCTRL+t\u0131k bina t\u00FCr\u00FCn\u00FC de\u011Fi\u015Ftirir.%eHaritan\u0131 kaydetmek, harita kodunu al\u0131p lobiye \u00E7\u0131kmak i\u00E7in de Bo\u015Fluk Tu\u015Funu kullan.\" tutorial_hold_win_1=\"Baz\u0131 haritalar \u00F6zel bir bina i\u00E7erirler.%eB\u00F6l\u00FCm\u00FC kazanman\u0131n ba\u015Fka bir yolu da bu binay\u0131 ele ge\u00E7irip belirli bir s\u00FCre elinde tutmakt\u0131r.%eYine de b\u00F6l\u00FCm\u00FC kazanmak i\u00E7in normal yollar\u0131 da deneyebilirsin..\" tutorial_speed_point_1=\"Klonlar\u0131na h\u0131z bonusu kazanmak i\u00E7in 'Elektrik Santralleri'ni ele ge\u00E7ir. Elektrik Santralleri yaln\u0131zca kendilerini savunmak i\u00E7in klon \u00FCretirler.\" tutorial_text_3=\"Kendi birimlerini daha h\u0131zl\u0131 \u00FCretebilmek i\u00E7in d\u00FC\u015Fman\u0131n en b\u00FCy\u00FCk k\u0131\u015Flas\u0131n\u0131 ele ge\u00E7ir. Birden fazla k\u0131\u015Fla se\u00E7mek i\u00E7in, istedi\u011Fin k\u0131\u015Flalar\u0131 fare ile \u00E7er\u00E7eve i\u00E7ine al.%eSe\u00E7imine k\u0131\u015Fla eklemek ya da \u00E7\u0131kartmak i\u00E7in CTRL tu\u015Funa bas\u0131l\u0131 tut.%eBol \u015Fans ve iyi e\u011Flenceler!\" tutorial_text_2=\"Kendi birimlerinden \u00FCretebilmek i\u00E7in di\u011Fer k\u0131\u015Flalar\u0131 da ele ge\u00E7irmen gerekiyor. Gri k\u0131\u015Flalar tarafs\u0131zd\u0131r ve sald\u0131rmazlar. Bir k\u0131\u015Flada bulunabilecek birimlerin say\u0131s\u0131 da s\u0131n\u0131rl\u0131d\u0131r. Se\u00E7ili k\u0131\u015Flay\u0131 b\u0131rakmak ve t\u00FCm k\u0131\u015Flalar\u0131 se\u00E7mek i\u00E7in Bo\u015Fluk Tu\u015Fu'nu kullan.\" tutorial_text_1=\"'EF:Klon Sava\u015Flar\u0131'na ho\u015Fgeldin. Amac\u0131n rakibinin k\u0131\u015Flas\u0131n\u0131 ele ge\u00E7irmek. Sen mavi tak\u0131m\u0131, rakiplerin de k\u0131rm\u0131z\u0131 ve ye\u015Fil tak\u0131mlar\u0131 y\u00F6netiyorsunuz. Birimlerini k\u0131rm\u0131z\u0131 k\u0131\u015Flaya sald\u0131rmak \u00FCzere g\u00F6nder. Ba\u015Fka bir Binaya sald\u0131rmak i\u00E7in \u00F6nce senin mavi k\u0131\u015Flana, sonra da sald\u0131rmak istedi\u011Fin d\u00FC\u015Fman k\u0131\u015Flas\u0131na t\u0131kla. B\u00F6ylece k\u0131\u015Flanda bulunan birimlerin %50'si sald\u0131r\u0131 i\u00E7in g\u00F6nderilecektir.\" exit=\"\u00C7\u0131k\u0131\u015F\" resume=\"Devam et\" game_saved=\"Oyun durumu kaydedildi\" submit=\"G\u00F6nder\" best=\"En \u0130yi\" hives_losted=\"Kaybedilen K\u0131\u015Fla\" hives_captured=\"Ele Ge\u00E7irilen K\u0131\u015Fla\" nano_killed=\"\u00D6ld\u00FCr\u00FClen Klonlar\" name=\"\u0130sim\" dname=\"Oyuncu\" nano_released=\"G\u00F6derilen Klonlar\" congratilation=\"Tebrikler\" game_over=\"Oyun Bitti\" color_3=\"Ye\u015Fil\" color_2=\"K\u0131rm\u0131z\u0131\" color_1=\"Mavi\" run_speed_incresed=\"ko\u015Fma h\u0131z\u0131 artt\u0131r\u0131ld\u0131\" back=\"Geri\" download=\"\u0130ndir\" show_ad=\"\u0130lan\u0131 g\u00F6ster\" about=\"Hakk\u0131nda\" elite_games=\"Elite Oyunlar\u0131\" elite_forces=\"Se\u00E7kin Kuvvetler\" credits=\"Yap\u0131m\" options=\"Se\u00E7enekler\" scores=\"Skorlar\" language=\"Dil\" editor=\"Edit\u00F6r\" play=\"Oyna\" more_games=\"Daha fazla oyun\" music_off=\"M\u00FCzik a\u00E7\u0131k\" music_on=\"M\u00FCzik kapal\u0131\" sound_off=\"Ses kapal\u0131\" sound_on=\"Ses a\u00E7\u0131k\" help=\"Yard\u0131m\" speed_control=\"H\u0131z kontrol\u00FC\" game_menu=\"Duraklama Men\u00FCs\u00FC\" quality_changer=\"Kalite De\u011Fi\u015Ftirici\" next=\"Sonraki\" menu=\"Men\u00FC\" total_scores=\"Toplam Skor\" />"});
strs.push({lang_name:"Chinese-Simplified", www:"http://www.7k7k.com", lang_translator:"\u7531Youyouwin\u7FFB\u8BD1", txt:"<lang tutorial_editor_1=\"\u6B22\u8FCE\u6765\u5230\u7F16\u8F91\u533A. \u4F60\u53EF\u4EE5\u81EA\u5DF1\u521B\u5EFA\u5730\u56FE. \u70B9\u51FB\u5E76\u62D6\u4F4F\u9F20\u6807\u6765\u521B\u5EFA\u6216\u8C03\u6574\u5730\u56FE\u7684\u5927\u5C0F. \u9009\u4E2D\u67D0\u4E2A\u8981\u585E\u6765\u8C03\u6574\u56E2\u961F\u89C4\u6A21, \u84DD\u8272\u4EE3\u8868\u81EA\u5DF1\uFF0C\u7EA2\u8272\u53CA\u7EFF\u8272\u4EE3\u8868\u654C\u4EBA, \u7070\u8272\u4EE3\u8868\u4E2D\u7ACB. \u6309\u4F4FSHIFT\u70B9\u51FB\u9F20\u6807\u53EF\u4EE5\u5220\u9664\u8981\u585E, \u6309\u4F4FCTRL\u70B9\u51FB\u9F20\u6807\u53EF\u4EE5\u8C03\u6574\u8981\u585E\u7684\u7C7B\u578B. \u70B9\u51FB\u7A7A\u683C\u952E\u4FDD\u5B58\u5730\u56FE, \u590D\u5236\u5730\u56FE\u7F16\u7801\u5E76\u8FDB\u5165\u4F11\u606F\u5BA4.\" tutorial_hold_win_1=\"\u67D0\u4E9B\u5730\u56FE\u4E2D\u6709\u7279\u6B8A\u5EFA\u7B51\u7269. \u4F60\u53EF\u4EE5\u901A\u8FC7\u653B\u514B\u6216\u5C3D\u53EF\u80FD\u957F\u65F6\u95F4\u7684\u5360\u6709\u8FD9\u4E9B\u5EFA\u7B51\u7269\u4EE5\u4FBF\u83B7\u53D6\u5730\u56FE. \u4F60\u4E5F\u53EF\u4EE5\u901A\u8FC7\u4E00\u822C\u7684\u901A\u7528\u73A9\u6CD5\u6765\u83B7\u53D6\u5730\u56FE.\" tutorial_speed_point_1=\"\u653B\u514B'\u9B54\u529B\u690D\u7269'\u6765\u589E\u52A0\u4F60\u7684\u514B\u9686\u4EBA\u7684\u901F\u5EA6. \u9B54\u529B\u690D\u7269\u53EA\u5728\u81EA\u6211\u9632\u5FA1\u65F6\u751F\u4EA7\u514B\u9686\u4EBA.\" tutorial_text_3=\"\u8981\u4F7F\u81EA\u8EAB\u6B66\u5668\u88C5\u5907\u7684\u589E\u52A0\u901F\u5EA6\u6700\u5FEB, \u53EF\u9009\u7684\u653B\u51FB\u8981\u585E\u8D8A\u591A\uFF0C\u5FC5\u987B\u653B\u514B\u6700\u5927\u7684\u654C\u519B\u8981\u585E. \u4F60\u53EF\u4EE5\u901A\u8FC7CTRL\u952E\u6765\u589E\u52A0\u6216\u53BB\u9664\u4F60\u7684\u9009\u62E9. \u795D\u4F60\u597D\u8FD0\" tutorial_text_2=\"\u4F60\u9700\u8981\u653B\u514B\u654C\u4EBA\u7684\u8981\u585E\u4EE5\u589E\u52A0\u81EA\u8EAB\u7684\u6B66\u5668\u88C5\u5907. \u7070\u8272\u7684\u8981\u585E\u662F\u4E2D\u7ACB\u7684, \u8BF7\u4E0D\u8981\u653B\u51FB. \u6BCF\u4E2A\u8981\u585E\u4E2D\u6B66\u5668\u88C5\u5907\u7684\u6570\u91CF\u662F\u56FA\u5B9A\u7684. \u70B9\u51FB\u7A7A\u683C\u952E\u653E\u5F03\u5DF2\u9009\u7684\u8981\u585E, \u91CD\u65B0\u70B9\u51FB\u7A7A\u683C\u5065\u9009\u62E9\u5168\u90E8\u8981\u585E.\" tutorial_text_1=\"\u6B22\u8FCE\u6765\u5230'\u7CBE\u7A0E\u90E8\u961F:\u514B\u9686\u6218\u4E89', \u76EE\u6807\u662F\u653B\u514B\u654C\u519B\u7684\u8981\u585E. \u4F60\u662F\u84DD\u961F\uFF0C\u4F60\u7684\u654C\u4EBA\u662F\u7EA2\u961F\u6216\u7EFF\u961F. \u7528\u4F60\u7684\u6B66\u5668\u88C5\u5907\u653B\u51FB\u7EA2\u961F\u8981\u585E. \u8981\u653B\u51FB\u4E0D\u540C\u7684\u5EFA\u7B51\u7269\uFF0C\u8BF7\u70B9\u51FB\u4F60\u81EA\u5DF1\u7684\u84DD\u8272\u8981\u585E\u7136\u540E\u70B9\u51FB\u654C\u65B9\u4F60\u8BA1\u5212\u653B\u51FB\u7684\u8981\u585E. \u4F60\u5C06\u53EF\u4EE5\u53D1\u9001\u8981\u585E\u4E2D50%\u6570\u91CF\u7684\u6B66\u5668\u88C5\u5907\" exit=\"\u9000\u51FA\" resume=\"\u91CD\u73A9\" game_saved=\"\u4FDD\u5B58\u6E38\u620F\" best=\"\u6700\u4F73\u6210\u7EE9\" hives_losted=\"\u8981\u585E\u5931\u5B88\" hives_captured=\"\u8981\u585E\u88AB\u653B\u514B\" nano_killed=\"\u514B\u9686\u4EBA\u6B7B\u4EA1\" nano_released=\"\u514B\u9686\u4EBA\u53D1\u5E03\" congratilation=\"\u606D\u559C\" game_over=\"\u6E38\u620F\u7ED3\u675F\" color_3=\"\u7EFF\u8272\" color_2=\"\u7EA2\u8272\" color_1=\"\u84DD\u8272\" run_speed_incresed=\"\u63D0\u901F\" dname=\"\u73A9\u5BB6\" name=\"\u540D\u79F0\" download=\"\u4E0B\u8F7D\" about=\"\u5173\u4E8E\u6211\u4EEC\" elite_games=\"Elite Games\" elite_forces=\"\u7CBE\u7A0E\u90E8\u961F\" credits=\"\u5206\u503C\" language=\"\u8BED\u8A00\" help=\"\u5E2E\u52A9\" speed_control=\"\u63A7\u5236\u901F\u5EA6\" game_menu=\"\u6E38\u620F\u83DC\u5355\" quality_changer=\"\u5168\u5C4F\" total_scores=\"\u603B\u5206\u6570\" restart=\"\u91CD\u542F\" options=\"\u9009\u9879\" test=\"\u6D4B\u8BD5\" more_games=\"\u66F4\u591A\u6E38\u620F\" scores=\"\u5206\u6570\" editor=\"\u8BBE\u7F6E\" play=\"\u5F00\u59CB\" menu=\"\u83DC\u5355\" next=\"\u4E0B\u4E00\u4E2A\" back=\"\u8FD4\u56DE\" sound_off=\"\u58F0\u97F3\u5173\" sound_on=\"\u58F0\u97F3\u5F00\" submit=\"\u63D0\u4EA4\" music_off=\"\u97F3\u4E50\u5173\" music_on=\"\u97F3\u4E50\u5F00\" />"});
if (_root.dlang == undefined) {
if (System.capabilities.language == "zh-CN") {
_root.dlang = 6;
} else if (System.capabilities.language == "tr") {
_root.dlang = 5;
} else if (System.capabilities.language == "es") {
_root.dlang = 4;
} else if (System.capabilities.language == "fr") {
_root.dlang = 3;
} else if (System.capabilities.language == "de") {
_root.dlang = 2;
} else if (System.capabilities.language == "ru") {
_root.dlang = 1;
} else {
_root.dlang = 0;
}
}
lang_xml = new XML(strs[_root.dlang].txt);
lang_xml.loaded = true;
_root.main_lang_id = 0;
_global.xml_main_lang = new XML(strs[_root.main_lang_id].txt).firstChild.attributes;
_global.xml_lang = lang_xml.firstChild.attributes;
backup_data.data_xml = data_xml.cloneNode(true);
backup_data.gmap_xml = gmap_xml.cloneNode(true);
} else {
data_xml = new XML();
data_xml.onLoad = function (succes) {
trace("__data_xml.loaded:" + succes);
if (_global.options_trace_loaded_data) {
trace("_this:" + this);
}
var _local4 = _root._find_xml("map_list", _root.data_xml);
backup_data.data_xml = data_xml.cloneNode(true);
root_load_and_play();
};
data_xml.load((CONST_PATH_DATA + "data.xml") + _global.refresh_add);
lang_xml = new XML();
lang_xml.onLoad = function (succes) {
trace("__lang_xml.loaded:" + succes);
if (_global.options_trace_loaded_data) {
trace("_this:" + this);
}
_global.xml_lang = this.firstChild.attributes;
root_load_and_play();
};
lang_xml.load((CONST_PATH_DATA + "lang_en.xml") + _global.refresh_add);
}
_global.adbox_mc = _root.attachMovie("adBox", "adBox", 10013);
_global.adbox_mc._x = _root.adbox_border_mc._x;
_global.adbox_mc._y = _root.adbox_border_mc._y;
_global.adbox_mc.onEnterFrame = function () {
this.ini();
delete this.onEnterFrame;
};
var points = 0;
var loading_str = "loading";
if (_global.options.extra.youyou) {
_root.ggAD_mc.onSkip = function () {
root_load_and_play();
};
} else {
_root.start_mc.make_me_font_but(null, "-", "-");
_root.start_mc.set_label(loading_str);
_root.start_mc.set_disable(true);
}
_root.fun_bg_mc.per = 0;
_root.sm_line_mc.onEnterFrame = function () {
var _local7 = _root.getBytesLoaded();
var _local6 = _root.getBytesTotal();
var _local5 = _local7 / _local6;
if (!_global.options_ready_to_go) {
_local5 = _local5 - 0.03;
}
_root.sm_line_mc._xscale = _local5 * 100;
_root.fun_bg_mc.per = _local5;
_root.prel.gotoAndStop(Math.round(_local5 * 100));
_root.prel.procent.text = Math.round(_local5 * 100) + "%";
if (_local5 >= 1) {
_root.fun_bg_mc.per_mc._xscale = 100;
_root.fun_bg_mc.per_mc.dtxt.text = "100%";
_global.go_game = true;
if (_global.options.extra.youyou) {
} else {
_root.start_mc.set_disable(false);
_root.start_mc.set_label("Start Game");
_root.start_mc.act = function () {
root_load_and_play();
};
if (_global.options_no_preload_ads || (_global.options_showads == false)) {
root_load_and_play();
}
}
delete this.onEnterFrame;
return(false);
}
points++;
if (points > 20) {
points = 0;
}
loading_str = "loading";
var _local4 = 0;
while (_local4 < (points / 5)) {
loading_str = loading_str + ".";
loading_str = "." + loading_str;
_local4++;
}
_root.start_mc.set_label(loading_str);
};
var kong_referal = "elite_forces_warfare_2";
var kong_sponsor = false;
var this_date = new Date();
trace("_this_date.getFullYear():" + this_date.getFullYear());
trace("_this_date.getMonth():" + this_date.getMonth());
if ((this_date.getFullYear() < 2010) && (this_date.getMonth() < 8)) {
kong_sponsor = true;
} else {
kong_sponsor = false;
}
trace("__kong_sponsor:" + kong_sponsor);
if (domain_str == undefined) {
domain_str = _root._url.toLowerCase();
if (domain_str.indexOf("file:") > -1) {
domain_str = "localhost";
} else {
domain_str = domain_str.split("//")[1].split("/")[0];
}
}
if (kong_sponsor == undefined) {
kong_sponsor = false;
}
if (kong_referal == undefined) {
kong_referal = (kong_referal = "elite_forces_warfare_2");
}
trace("bende");
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("Elite Forces:Defense", urlEFDefense));
my_cm.customItems.push(new ContextMenuItem("Elite Forces:Afghan", urlEFAfghan));
this.menu = my_cm;
if (this._url.indexOf("file:") != -1) {
fscommand ("showmenu", false);
}
var leaderboard_depth = 10000;
var leaderboard_mc = _root.createEmptyMovieClip("lb_mc", leaderboard_depth);
Instance of Symbol 315 MovieClip in Frame 2
//component parameters
onClipEvent (construct) {
Type = "Intro";
}
Frame 5
function drawSqare(mc, start_xy, w, h, lineStyle, fillStyle) {
drawPoly(mc, start_xy, [[0, 0], [w, 0], [w, h], [0, h], [0, 0]], lineStyle, fillStyle);
}
function drawPoly(mc, start_xy, xy, lineStyle, fillStyle) {
mc.lineStyle(lineStyle._t, 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 drawLine(mc, xy, t_xy, lineStyle) {
mc.lineStyle(lineStyle._t, lineStyle._color, lineStyle._alpha);
mc.moveTo(xy[0], xy[1]);
mc.lineTo(t_xy[0], t_xy[1]);
}
function drawGrid(mc, start_xy, cols, rows, tw, th, lineStyle, fillStyle) {
mc.lineStyle(lineStyle._t, lineStyle._color, lineStyle._alpha);
var _local7 = cols * tw;
var _local8 = rows * th;
if (fillStyle._alpha > 0) {
mc.beginFill(fillStyle._color, fillStyle._alpha);
}
var _local4 = start_xy[0];
var _local3 = start_xy[1];
mc.moveTo(_local4, _local3);
mc.lineTo(_local4 + _local7, _local3);
mc.lineTo(_local4 + _local7, _local8 + _local3);
mc.lineTo(_local4, _local8 + _local3);
mc.lineTo(_local4, _local3);
if (fillStyle._alpha > 0) {
mc.endFill();
}
var _local1 = 0;
while (_local1 < rows) {
mc.moveTo(_local4, (_local1 * th) + _local3);
mc.lineTo(_local4 + _local7, (_local1 * th) + _local3);
_local1++;
}
_local1 = 0;
while (_local1 < cols) {
mc.moveTo(_local4 + (_local1 * tw), _local3);
mc.lineTo(_local4 + (_local1 * tw), _local8 + _local3);
_local1++;
}
}
function drawExCircle(mc, start_xy, r, lineStyle, fillStyle) {
mc.lineStyle(lineStyle._t, 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 drawCross(mc, x, y, r, color) {
mc.endFill();
mc.lineStyle(6, 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 get_map_info(map_nname, rules) {
var _local4 = {};
_local4.count_waves = 0;
var _local6 = _root._find_xml("map_list", _root.data_xml);
for (var _local8 in _local6.childNodes) {
if (_local6.childNodes[_local8].nodeName == map_nname) {
var _local3 = _local6.childNodes[_local8];
for (var _local9 in _local3.firstChild.childNodes) {
var _local2 = _local3.firstChild.childNodes[_local9];
if (_local2.nodeName == "wave_rnd") {
_local4.count_waves++;
}
}
}
}
var _local5 = rules.split(",");
for (var _local9 in _local5) {
if ((_local5[_local9] == "boss_epic") || (_local5[_local9] == "boss_sadam")) {
_local4.count_waves++;
}
}
return(_local4);
}
function getSoundMC() {
var _local1 = sound_temp_mc.getNextHighestDepth();
return(sound_temp_mc.createEmptyMovieClip(String(_local1), _local1));
}
function load_sfx() {
for (var _local3 in _root.snd) {
var _local2 = _local3 + ext;
_root.snd[_local3] = new Sound(getSoundMC());
_root.snd[_local3].attachSound(_local2);
}
}
function load_mfx() {
for (var _local3 in _root.music) {
var _local2 = _local3 + ".mp3";
_root.music[_local3].attachSound(_local2);
}
}
function show_main() {
_root.play_music("music_menu");
var _local6 = _root.attachMovie("main_menu_scr", "main", main_depth);
if (strs[_root.dlang].www_txt != undefined) {
_local6.trans_mc.trans_dtxt.text = strs[_root.dlang].www_txt;
_local6.trans_mc.onRelease = function () {
getURL (strs[_root.dlang].www, "_blank");
};
} else if (strs[_root.dlang].lang_translator != undefined) {
_local6.trans_mc.trans_dtxt.text = (get_txt("translator") + ": ") + strs[_root.dlang].lang_translator;
}
if (_global.options_payments == "mochicoins") {
}
var _local4 = menus_sx;
var _local3 = menus_sy;
var _local8 = menus_dx;
var _local7 = menus_dy;
var _local5 = 1;
var _local9 = 0;
var _local15 = _local6.attachAniFontBut(menus_but_lname, "but" + (_local9++), {_x:_local4, _y:_local3, _dax:_local5, _xscale:110, _yscale:110}, null);
_local5++;
_local4 = _local4 + _local8;
_local3 = _local3 + _local7;
_local4 = _local4 + (_local8 / 3);
_local3 = _local3 + (_local7 / 3);
var _local12 = _local6.attachAniFontBut(menus_but_lname, "but" + (_local9++), {_x:_local4, _y:_local3, _dax:_local5}, null);
_local5++;
_local4 = _local4 + _local8;
_local3 = _local3 + _local7;
if (_root.kongregate_username == undefined) {
if (!_global.external_scores) {
var _local11 = _local6.attachAniFontBut(menus_but_lname, "but" + (_local9++), {_x:_local4, _y:_local3, _dax:_local5}, null);
_local5++;
_local4 = _local4 + _local8;
_local3 = _local3 + _local7;
}
}
var _local13 = _local6.attachAniFontBut(menus_but_lname, "but" + (_local9++), {_x:_local4, _y:_local3, _dax:_local5}, null);
_local5++;
_local4 = _local4 + _local8;
_local3 = _local3 + _local7;
var _local17 = _local6.attachAniFontBut(menus_but_lname, "but" + (_local9++), {_x:_local4, _y:_local3, _dax:_local5}, null);
_local5++;
_local4 = _local4 + _local8;
_local3 = _local3 + _local7;
if (_global.options_multylang && (strs.length > 1)) {
var _local10 = _local6.attachAniFontBut(menus_but_lname, "but" + (_local9++), {_x:_local4, _y:_local3, _dax:_local5}, null);
_local4 = _local4 + _local8;
_local3 = _local3 + _local7;
}
_local4 = _local4 + _local8;
_local3 = _local3 + _local7;
if (!_global.options_remove_external_url) {
var _local14 = _local6.attachAniFontBut(menus_but_lname, "but" + (_local9++), {_x:_local4, _y:_local3, _dax:_local5}, null);
_local5++;
_local4 = _local4 + _local8;
_local3 = _local3 + _local7;
} else if (_global.options_fog_version) {
var _local16 = _local6.attachAniFontBut(menus_but_lname, "but" + (_local9++), {_x:_local4, _y:_local3, _dax:_local5}, null);
_local5++;
_local4 = _local4 + _local8;
_local3 = _local3 + _local7;
}
_local15.set_label(get_txt("play"));
_local15.act = function () {
_global.custom_maps = false;
_global.options_lvleditor = false;
show_skirmishloby();
};
_local13.set_label(get_txt("editor"));
_local13.act = function () {
_global.custom_maps = true;
_global.options_lvleditor = true;
show_skirmishloby();
};
if (_global.options_allow_survival) {
but_survival_mc.set_disable(false);
} else {
but_survival_mc.set_disable(true);
}
_local12.set_label(get_txt("help"));
_local12.act = function () {
show_gametips();
};
var _local18 = get_txt("language");
if ("Language" == _local18) {
_local10.set_label(get_txt("language"));
} else {
_local10.set_label("Language - " + get_txt("language"));
}
_local10.act = function () {
show_lang_menu();
};
_local17.set_label(get_txt("options"));
_local17.act = function () {
show_options();
};
_local16.set_label(get_txt("credits"));
_local16.act = function () {
show_credits_menu();
};
_local14.set_label(get_txt("more_games"));
_local14.act = function () {
if (_global.options_lock_to_eg_net) {
_root.open_link("moregames-menu");
} else if (_global.options_addictinggames) {
getURL ("http://www.addictinggames.com/", "_blank");
} else {
urlMoreGames();
}
};
_local11.set_label(get_txt(""));
_local11.act = function () {
if (_global.options_use_mochiscores) {
show_choosescore();
} else {
getURL ("http://www.play4all.net/highscores_tmp.php?gameid=513&type=daily", "_blank");
}
};
but_ef_games_mc.set_label(get_txt("elite_forces"));
but_ef_games_mc.act = function () {
show_elite_forces_menu();
};
but5_mc.set_label(get_txt("about"));
but_ad_mc.set_label(get_txt("show_ad"));
but_ad_mc.act = function () {
_root.attachMovie("main_menu_scr", "main", main_depth);
mochi.as2.MochiAd.showTimedAd({id:_global.mochiads_id(), res:_global.mochiads_obj.res, ad_timeout:2000, fadeout_time:200, ad_finished:function () {
show_main();
}});
};
but_getswf_mc.set_label(get_txt("download"));
but_getswf_mc.act = function () {
getURL ("http://www.play4all.net/index.php?action=downloadgames", "_blank");
};
}
function show_options() {
var _local7 = _root.attachMovie("main_menu_scr", "main", main_depth);
_local7.dom_dtxt.text = _root.domain_str;
var _local6 = menus_sx;
var _local5 = menus_sy;
var _local10 = menus_dx;
var _local9 = menus_dy;
var _local8 = 0;
var _local4 = 1;
var _local11 = _local7.attachAniFontBut(menus_but_lname, "but" + (_local8++), {_x:_local6, _y:_local5, _dax:_local4}, null);
_local4++;
_local6 = _local6 + _local10;
_local5 = _local5 + _local9;
var _local12 = _local7.attachAniFontBut(menus_but_lname, "but" + (_local8++), {_x:_local6, _y:_local5, _dax:_local4}, null);
_local4++;
_local6 = _local6 + _local10;
_local5 = _local5 + _local9;
var _local13 = _local7.attachAniFontBut(menus_but_lname, "but" + (_local8++), {_x:_local6, _y:_local5, _dax:_local4}, null);
_local4++;
_local6 = _local6 + _local10;
_local5 = _local5 + _local9;
but_road_mc.road_test = but_road_mc.createEmptyMovieClip("road", but_road_mc.getNextHighestDepth());
_root.drawLine(but_road_mc.road_test, [190, 14], [300, 14], {_t:28, _alpha:100, _color:0});
but_road_mc.road_test.filters = _root.road_styles[_root.road_style_id];
but_road_mc.set_label(get_txt("roads"));
but_road_mc.act = function () {
_root.road_style_id++;
if (_root.road_style_id >= _root.road_styles.length) {
_root.road_style_id = 0;
}
this.road_test.filters = _root.road_styles[_root.road_style_id];
};
but_clear_mc.set_label(get_txt("clead_save"));
but_clear_mc.act = function () {
_root.SO.clear();
_root.data_xml = backup_data.data_xml.cloneNode(true);
_root.gmap_xml = backup_data.gmap_xml.cloneNode(true);
};
if (_global.options_playsounds) {
_local11.set_label(get_txt("sound_on"));
} else {
_local11.set_label(get_txt("sound_off"));
}
_local11.act = function () {
if (options_switch_sound()) {
this.set_label(get_txt("sound_on"));
} else {
this.set_label(get_txt("sound_off"));
}
};
if (_global.options_playmusic) {
_local12.set_label(get_txt("music_on"));
} else {
_local12.set_label(get_txt("music_off"));
}
_local12.act = function () {
_global.options_playmusic = !_global.options_playmusic;
if (_global.options_playmusic) {
this.set_label(get_txt("music_on"));
_root.play_music("play");
} else {
this.set_label(get_txt("music_off"));
_root.play_music("stop");
}
};
if (_global.options_multylang && (strs.length > 1)) {
but_lang_mc.set_label(strs[_root.dlang].lang_name);
but_lang_mc.act = function () {
_root.dlang++;
if (_root.dlang >= strs.length) {
_root.dlang = 0;
}
this.set_label(strs[_root.dlang].lang_name);
lang_xml = new XML(strs[_root.dlang].txt);
_global.xml_lang = lang_xml.firstChild.attributes;
show_options();
};
}
_local13.set_label(get_txt("back"));
_local13.act = function () {
show_main();
};
}
function show_gamemenu() {
_global.game._CGame_pause();
var main_mc = _root.attachMovie("game_menu_scr", "game_menu", game_pause_depth);
var _local5 = _global.this_mc_w / 2;
var _local4 = 90;
var _local8 = 0;
var _local7 = 70;
var _local6 = 0;
var _local11 = main_mc.attachFontBut("butFont", "but" + (_local6++), {_x:_local5, _y:_local4}, null);
_local5 = _local5 + _local8;
_local4 = _local4 + _local7;
var _local9 = main_mc.attachFontBut("butFont", "but" + (_local6++), {_x:_local5, _y:_local4}, null);
_local5 = _local5 + _local8;
_local4 = _local4 + _local7;
var _local10 = main_mc.attachFontBut("butFont", "but" + (_local6++), {_x:_local5, _y:_local4, _dax:di}, null);
di++;
_local5 = _local5 + _local8;
_local4 = _local4 + _local7;
if (_global.options_multylang && (strs.length > 1)) {
var _local13 = main_mc.attachFontBut("butFont", "but" + (_local6++), {_x:_local5, _y:_local4}, null);
_local5 = _local5 + _local8;
_local4 = _local4 + _local7;
}
var _local12 = main_mc.attachFontBut("butFont", "but" + (_local6++), {_x:_local5, _y:_local4}, null);
_local5 = _local5 + _local8;
_local4 = _local4 + _local7;
_local11.set_label(get_txt("resume"));
_local11.act = function () {
_global.game._CGame_unpause();
main_mc.unloadMovie();
};
if (_global.options_playsounds) {
_local9.set_label(get_txt("sound_on"));
} else {
_local9.set_label(get_txt("sound_off"));
}
_local9.act = function () {
if (options_switch_sound()) {
this.set_label(get_txt("sound_on"));
} else {
this.set_label(get_txt("sound_off"));
}
};
if (_global.options_playmusic) {
_local10.set_label(get_txt("music_on"));
} else {
_local10.set_label(get_txt("music_off"));
}
_local10.act = function () {
_global.options_playmusic = !_global.options_playmusic;
if (_global.options_playmusic) {
this.set_label(get_txt("music_on"));
_root.play_music("play");
} else {
this.set_label(get_txt("music_off"));
_root.play_music("stop");
}
};
_local12.set_label(get_txt("exit"));
_local12.act = function () {
main_mc.unloadMovie();
show_main();
};
if (_global.options_multylang && (strs.length > 1)) {
_local13.set_label(strs[_root.dlang].lang_name);
_local13.act = function () {
_root.dlang++;
if (_root.dlang >= strs.length) {
_root.dlang = 0;
}
this.set_label(strs[_root.dlang].lang_name);
lang_xml = new XML(strs[_root.dlang].txt);
_global.xml_lang = lang_xml.firstChild.attributes;
show_gamemenu();
};
}
}
function show_gameshop() {
_global.game._CGame_pause();
var main_mc = _root.attachMovie("game_shop_body_mc", "game_menu", game_pause_depth);
main_mc.pages_dtxt.text = (main_mc._currentframe + "/") + main_mc._totalframes;
main_mc.prev_mc.make_me_but();
main_mc.next_mc.make_me_but();
main_mc.prev_mc.act = function () {
var _local1 = main_mc._currentframe - 1;
if (_local1 == 0) {
_local1 = main_mc._totalframes;
}
main_mc.gotoAndStop(_local1);
main_mc.pages_dtxt.text = (main_mc._currentframe + "/") + main_mc._totalframes;
};
main_mc.next_mc.act = function () {
var _local1 = main_mc._currentframe + 1;
if (_local1 == (main_mc._totalframes + 1)) {
_local1 = 1;
}
main_mc.gotoAndStop(_local1);
main_mc.pages_dtxt.text = (main_mc._currentframe + "/") + main_mc._totalframes;
};
var _local4 = main_mc.attachFontBut("butFontShort", "back", {_x:Stage.width / 2, _y:515}, null);
_local4.set_label(get_txt("back"));
_local4.act = function () {
_global.game._CGame_unpause();
main_mc.unloadMovie();
};
}
function show_game() {
_root.play_music("music_game");
var _local17 = 720;
var _local16 = 600;
_global.options_game_speed = 1;
var _local11 = new flash.display.BitmapData(Stage.width, Stage.height, true, 0);
_local11.draw(_root.main);
var _local6 = _root.createEmptyMovieClip("main", main_depth);
_local6.main_name = "game";
mochi.as2.MochiCoins.hideLoginWidget();
var _local12 = _local6.attachMovie("game_map1_bg", "game_bg", _local6.getNextHighestDepth());
var _local15 = _local6.createEmptyMovieClip("game", _local6.getNextHighestDepth());
var _local10;
if (_global.options_lvleditor) {
_local10 = "game_editor_face_scr";
} else {
_local10 = "game_face_scr";
}
var face_mc = _local6.attachMovie(_local10, "face", _local6.getNextHighestDepth());
if (_global.options_lvleditor) {
face_mc.test_mc.make_me_but();
face_mc.test_mc.addHint(get_txt("test"));
face_mc.test_mc.act = function () {
my_custom_map_xml = new XML(_global.game._CGame_editor_get_xml()).firstChild;
_global.options_lvleditor = false;
_root.show_game();
};
}
face_mc.restart_mc.make_me_but();
face_mc.restart_mc.addHint(get_txt("restart"));
face_mc.restart_mc.act = function () {
show_game();
};
face_mc.score_idtxt.text = get_txt("scores") + ":";
face_mc.q_mc.addHint(get_txt("quality_changer"));
face_mc.pause_mc.make_me_but();
face_mc.pause_mc.addHint(get_txt("game_menu"));
face_mc.pause_mc.act = function () {
show_gamemenu();
};
face_mc.fast_mc.make_me_but();
face_mc.fast_mc.addHint(get_txt("speed_control"));
face_mc.fast_mc.act = function () {
_global.options_game_speed++;
if (_global.options_game_speed > 3) {
_global.options_game_speed = 0;
_global.game._CGame_pause();
} else if (_global.options_game_speed > 1) {
_global.options_game_speed = 3;
} else {
_global.game._CGame_unpause();
}
this.body.gotoAndStop(_global.options_game_speed + 1);
};
_global.game_set_prev_speed = function () {
if (_global.options_game_speed == 3) {
_global.options_game_speed = 1;
} else if (_global.options_game_speed == 1) {
_global.options_game_speed = 0;
_global.game._CGame_pause();
}
face_mc.fast_mc.body.gotoAndStop(_global.options_game_speed + 1);
};
_global.game_set_next_speed = function () {
if (_global.options_game_speed == 0) {
_global.options_game_speed = 1;
_global.game._CGame_unpause();
} else if (_global.options_game_speed == 1) {
_global.options_game_speed = 3;
}
face_mc.fast_mc.body.gotoAndStop(_global.options_game_speed + 1);
};
face_mc.tips_mc.addHint(get_txt("help"));
face_mc.tips_mc.onRelease = function () {
show_gametips();
};
var _local14 = _root._find_xml("map_list", _root.data_xml);
var _local5 = _local14.childNodes;
var _local7 = -1;
for (var _local9 in _local5) {
var _local4 = _local5[_local9];
if (_local4.nodeName == _global.map_nname) {
_local7 = _local4.cloneNode(true);
break;
}
}
if (_global.map_nname == "map_XX") {
_local7 = my_custom_map_xml.cloneNode(true);
}
if (_local7 === -1) {
trace("__global.map_nname:" + _global.map_nname);
trace("show_game:map_xml_does_NOT_found");
show_main();
return(false);
}
var _local13 = new CGame();
_global.game = _local13;
_global.game._CCore_ini(_local12, _local15, face_mc);
_global.game._CCore_map_xml_load(_local7);
_global.game.setChar(_global.char_selector);
_global.game._CGame_start();
var _local8 = _local6.createEmptyMovieClip("o" + _local6.getNextHighestDepth(), _local6.getNextHighestDepth());
_local8.attachBitmap(_local11, _local8.getNextHighestDepth());
_local8.ttl = 0;
_local8.onEnterFrame = function () {
this._alpha = this._alpha - (1 + this.ttl);
this.ttl++;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
function show_end_map(win_this_map, reason, stats_obj, scores_earned) {
_root.play_music("music_menu");
trace((("_scores:" + _global.score_submited) + "/") + game_get_all_scores());
jaludo.JaludoGameAPI.sendScore(game_get_all_scores(), 1);
trace("verstuurde score4 = " + game_get_all_scores());
_global.score_submited = game_get_all_scores();
var _local16 = new flash.display.BitmapData(Stage.width, Stage.height, true, 0);
_local16.draw(_root.main);
var main_mc = _root.attachMovie("end_map_scr", "main", main_depth);
if (win_this_map) {
main_mc.title_dtxt.text = get_txt("congratilation");
} else {
main_mc.title_dtxt.text = get_txt("game_over");
}
Mouse.show();
_global.adbox_mc._x = main_mc._x + main_mc.adbox_border_mc._x;
_global.adbox_mc._y = main_mc._y + main_mc.adbox_border_mc._y;
_global.adbox_mc.ini();
var _local10 = _global.game._map_xml.nodeName;
var _local20 = _root._find_xml("map_list", _root.data_xml);
var _local18 = _local20.childNodes;
var _local11 = 0;
for (var i in _local18) {
if ((_local18[i].attributes.scores != undefined) && (_local18[i].attributes.scores > 0)) {
_local11++;
}
if (_local18[i].nodeName == _local10) {
if ((_local18[i].attributes.scores != undefined) && ((_local18[i].attributes.scores / 1) < scores_earned)) {
_local18[i].attributes.scores = scores_earned;
}
_global.map_just_played = i / 1;
}
}
if (win_this_map) {
_global.map_just_played++;
}
main_mc.char_dtxt.text = "";
for (var i in stats_obj) {
main_mc.char_dtxt.text = main_mc.char_dtxt.text + ((get_txt(i) + ": ") + stats_obj[i]);
main_mc.char_dtxt.text = main_mc.char_dtxt.text + "\r";
}
main_mc.char_dtxt.text = main_mc.char_dtxt.text + ((get_txt("scores") + ": ") + scores_earned);
main_mc.char_dtxt.text = main_mc.char_dtxt.text + "\r";
main_mc.char_dtxt.text = main_mc.char_dtxt.text + ((get_txt("total_scores") + ": ") + game_get_all_scores());
var graf_arr = _global.game._graf_nano_players;
var max_graf_val = 10;
var _local19 = graf_arr[1].length;
var max_graf_step = (580 / _local19);
for (var _local14 in graf_arr) {
var points_arr = graf_arr[_local14];
for (var i in points_arr) {
var _local4 = points_arr[i];
if (_local4 > max_graf_val) {
max_graf_val = _local4;
}
}
}
main_mc.next_mc.make_me_but();
main_mc.next_mc.set_label(get_txt("next").toUpperCase());
main_mc.next_mc.act = function () {
_global.adbox_mc.deini();
var _local8 = _root._find_xml("map_list", _root.data_xml);
var _local7 = _local8.childNodes;
var _local5 = _local7.length;
var _local4 = _global.map_just_played / 1;
trace("__cur_map_id:" + _local4);
trace("_(map_list_arr_l-1):" + (_local5 - 1));
if (_local4 >= (_local5 - 1)) {
_global.map_just_played = 0;
if (_global.score_submited < game_get_all_scores()) {
if (_global.external_scores) {
var _local6 = game_get_all_scores();
_global.score_submited = _local6;
_root.save_game();
jaludo.JaludoGameAPI.sendScore(_local6, 1);
trace("verstuurde score = " + _local6);
show_skirmishloby();
} else if (_global.options_use_mochiscores) {
var _local6 = game_get_all_scores();
_global.score_submited = _local6;
_root.save_game();
mochi.as2.MochiScores.showLeaderboard({boardID:_global.mochiscore_id(), score:_local6, res:(_global.this_mc_w + "x") + _global.this_mc_h, onDisplay:function () {
trace("display:" + this);
}, onClose:function () {
trace("close:" + this);
show_skirmishloby();
}});
} else {
show_skirmishloby();
}
} else {
show_skirmishloby();
}
} else {
_global.map_nname = _local7[_local4].nodeName;
show_game();
}
};
main_mc.menu_mc.make_me_but();
main_mc.menu_mc.set_label(get_txt("menu").toUpperCase());
main_mc.menu_mc.act = function () {
_global.adbox_mc.deini();
show_skirmishloby();
};
var graf_mc = main_mc.graf_mc.createEmptyMovieClip("body", main_mc.graf_mc.getNextHighestDepth());
graf_mc._x = 10;
graf_mc._y = -5;
var colors = [0, 255, 16711680, 65280];
for (var _local14 in graf_arr) {
var _local5 = graf_mc.createEmptyMovieClip(_local14, _local14);
}
main_mc.next_mc.set_disable(true);
var i = 0;
graf_mc._onEnterFrame = function () {
for (var _local8 in graf_arr) {
if ((_local8 < 4) && (_local8 > 0)) {
var _local4 = graf_mc[_local8];
var _local3 = graf_arr[_local8];
var _local2 = (_local3[i] * 170) / max_graf_val;
if (_local2 > 0) {
drawLine(_local4, [i * max_graf_step, 180], [i * max_graf_step, 180 - _local2], {_t:1 + ((3 - _local8) * 3), _color:colors[_local8], _alpha:70});
}
}
}
i++;
if (i >= _local3.length) {
main_mc.next_mc.set_disable(false);
delete this.onPress;
delete this.onEnterFrame;
}
};
graf_mc.onEnterFrame = graf_mc._onEnterFrame;
graf_mc.onPress = function () {
while (i < points_arr.length) {
graf_mc._onEnterFrame();
}
delete this.onPress;
};
main_mc.submit_mc.make_me_but();
main_mc.submit_mc.set_label(get_txt("submit").toUpperCase());
trace((("_scores:" + _global.score_submited) + "/") + game_get_all_scores());
if (_global.score_submited >= game_get_all_scores()) {
main_mc.submit_mc.set_disable(true);
} else {
main_mc.submit_mc.act = function () {
if (_global.external_scores) {
var _local4 = game_get_all_scores();
_global.score_submited = _local4;
_root.save_game();
jaludo.JaludoGameAPI.sendScore(_local4, 1);
trace("verstuurde score1 = " + _local4);
this.set_disable(true);
delete this.act;
} else if (_global.options_use_mochiscores) {
var _local4 = game_get_all_scores();
_global.score_submited = _local4;
_root.save_game();
jaludo.JaludoGameAPI.sendScore(_local4, 1);
trace("verstuurde score2 = " + _local4);
this.set_disable(true);
delete this.act;
} else {
jaludo.JaludoGameAPI.sendScore(_local4, 1);
trace("verstuurde score3 = " + _local4);
main_mc.scores_mc._visible = true;
}
};
}
save_game();
var _local13 = main_mc.createEmptyMovieClip("o" + main_mc.getNextHighestDepth(), main_mc.getNextHighestDepth());
_local13.attachBitmap(_local16, _local13.getNextHighestDepth());
_local13.ttl = 0;
_global.adbox_mc._alpha = 0;
_local13.onEnterFrame = function () {
this._alpha = this._alpha - (1 + this.ttl);
_global.adbox_mc._alpha = 100 - this._alpha;
this.ttl++;
if (this._alpha <= 0) {
_global.adbox_mc._alpha = 100;
delete this.onEnterFrame;
}
};
}
function show_game_data_menu() {
var main_mc = _root.attachMovie("save_menu_scr", "main", main_depth);
var _local3 = Stage.width / 2;
var _local2 = 320;
var _local6 = 0;
var _local5 = 80;
var _local4 = 0;
var _local8 = main_mc.attachFontBut("butFont", "but" + (_local4++), {_x:_local3, _y:_local2}, null);
_local3 = _local3 + _local6;
_local2 = _local2 + _local5;
var _local7 = main_mc.attachFontBut("butFont", "but" + (_local4++), {_x:_local3, _y:_local2}, null);
_local3 = _local3 + _local6;
_local2 = _local2 + _local5;
main_mc.dtxt.text = "%3Csave%20base%5Fli%C4%83s%3D%2225%22%20char%C4%8A%C4%8Ce%C4%8E%223%C4%93money%C4%8F30%C4%93scor%C4%9B%C4%8F15129%C4%93%C4%95%C4%97%5Fkill%C4%9C117%C4%B4%C4%96%C4%98type%C4%AE%C5%80%C4%B6nam%C5%86%22Thug%C4%93%C4%83r%C4%AE%2E028%22%3E%3Ctowers%C5%9C%C5%9E%C5%A0r%20%C4%A4%C4%9D7%C4%9E%20x%C4%8F424%C4%93%C4%B8%C4%BA%C4%9C%C4%A7%20lvl%C4%A5%C4%93group%C5%BC%20%C5%83%C5%85%C4%A5%C5%AC%2F%C5%A4%C5%9F%C5%A1%C5%A8%C4%A54%C5%9A%C5%AD%C5%AF4%C4%92%20%C5%B4%C4%BB%C4%8F%C5%B7%C5%B9%C5%BB%C4%9D%C5%BD%C5%BF%C6%81%C6%83%C6%85%C5%8D3%C6%88%C6%8A%C5%A6%C6%8D%C4%900%C4%BF%C6%91%C4%9D5%C4%B3%C6%95%C4%B9%C6%97%22%C6%99%C5%BA%C4%8F2%C6%9D%C6%80%C6%82%C6%9C%C6%84%C5%84%C6%A2%C6%B6%20%C6%89%C5%9D%C6%8B%C5%A7%C5%A922%C6%AA%C5%AE%C4%9D8%C6%AA%C6%96%C5%B6%C4%93%C6%9A%C6%B5%C6%B7%C6%9F%C6%BA%C6%A1%C4%A5%C6%BE%C7%80%C5%A5%C6%8C%C5%A93%C4%AF%C4%93%C7%88%C5%B1%C7%8B%C6%B0%C7%8D%C5%B8%C6%B4%C6%BA%C5%BE%C6%B8%C6%A0%C6%BC%C6%87%C4%93%C7%97%C7%82%C6%A7%C6%A3%C6%BE%C7%9E76%C5%B3%C7%A1%C6%98%C7%8E%C7%A4%C5%AC%C7%A6%C7%92%C5%AC%C7%94%C4%9D%C6%A4%C7%81%C6%A6%C7%846%C6%90%C7%9E2%C5%AC%C7%8C%C7%B6%C7%A3%C6%9B%C7%B3%20%C7%BA%C6%B9%C6%94%C7%BD5%C8%8C%C7%AC%C8%81%C6%B5%C7%9C%C6%AB32%C5%B7%C8%88%C6%B2%C7%B7%C6%9B%C7%B9%C6%9E%C6%B91%C5%B7%C7%BD%C8%A3%C7%BF%C7%98%C7%83%C6%B5%C7%9B%C7%9D%C6%8E%C5%B2%C6%AF%C5%B5%C8%89%C7%8F%C7%A5%C8%A1%C4%AE%C8%A4%C7%A9%22%C8%A6%C7%AB%C6%A5%C7%99%C6%B58%C8%84%C5%AF%C4%91%C7%B4%C8%B0%22%C6%94%C8%B2%C8%AE%C8%8E%C4%8F%C6%AE%C7%BD9%C8%AE%C8%94%C8%BC%C4%904%C6%AE%C7%883%C8%83%C9%82%C6%B1%C5%AC%C9%86%C7%91%C6%B9%C9%8A%C8%B7%C9%8C%C8%BA%C8%80%C9%8F26%C7%87%C5%AF0%C8%87%C7%B5%C8%9D%C8%8A%C4%8F%C6%94%C9%88%22%C8%8C%C7%BD%C9%A3%C9%9F%C8%A8%C7%AE7%C7%B0%C5%AF8%C6%94%C8%9C1%C8%9E%C5%87%C8%8D%C8%B4%C9%AE%C4%93%C9%B0%C9%BB%C6%BF%C8%BB%C8%A9%C4%9D4%C5%AC%C7%8847%C6%90%C8%9C%C6%BE%C8%B2%CA%83%C9%AD%C9%AF%C8%B76%CA%83%C9%8E%CA%8653%C6%94%C9%930%C8%9B%C9%A8%CA%8F%C7%B8%C9%9A%C4%8F%C6%AA%C7%BD%C5%AB%C9%B2%C7%AD%C5%A9%CA%99%C8%AE%C7%B1%CA%9E%C9%83%C8%AE%C8%B2%C8%A0%C7%A7%CA%80%C6%BB%C6%86%C9%AE%C8%A7%CA%A8%C9%AB%C8%AB%C6%AB%C5%B1%CA%83%C9%BA%C9%98%C7%A4%C9%87%C9%BF%C6%BE%C7%BD%C5%B1%CA%A7%C8%95%C9%84%CA%BA%C7%9E%C8%A3%C9%96%C7%A2%CA%B0%CA%A2%22%C9%9C%CA%B59%CA%B7%CB%8738%CA%83%C9%937%C6%AE%C8%9C%C6%B3%C8%9F%CB%8F%C8%AE%C7%BD%CA%88%CB%86%C9%8F%CA%9A%C9%A4%C4%9D9%CA%8D%C9%A8%CA%83%CB%8E%C9%BE%CA%B2%CB%A0%C8%B7%CB%A2%CA%84%C9%A0%CA%86%C6%A3%CA%9B%C5%AF1%CB%A9%C9%83%CA%A0%CB%9E%CB%AD%C7%92%CB%AF%CA%B5%CB%B1%CA%97%C9%B4%CB%98%C9%AB1%C8%AE%C8%9C%CA%AF%CA%A1%CB%BD%C6%B9%CA%A4%C8%B7%CA%A6%CB%B2%C9%B3%C7%9A%CB%97%C8%AC%C9%844%CC%87%C9%A8%CA%BF%C6%9B%CA%91%CB%82%CA%81%C8%B72%CA%96%CA%85%C7%AE%C5%B0%CC%9450%C8%8C%C9%BA%C9%BC%C8%B3%CA%B2%CB%91%C5%8D%CB%93%CB%A3%CB%B45%C9%B6%CB%88%CB%B9%C6%B1%CB%BB%C6%83%C9%AD%CC%AC%C9%89%CB%94%CB%A4%CB%85%C6%AB%CA%99%CA%BD%CA%9F%CB%AB%CC%8A%CA%92%CC%9D%CA%B56%CC%BB%CA%86%C5%B1%CB%B6%C9%90%CC%B4%C4%9C%C9%85%C7%A4%C8%8C%C9%AD%C8%90%C8%B7%C8%92%CC%AF%C6%A7%CC%9F%C9%92%C6%B56%CB%9B%CB%AA%CC%89%C8%8B%CB%8F%CD%93%CA%B5%CD%95%CC%90%CA%B8%C8%B8%C6%8F%CC%94%CC%9F%CD%80%CB%BA%CC%B6%C9%84%CB%8F%CA%93%CD%86%C6%AA%CC%82%C5%A9%C4%B1%CC%B2%C7%85%CD%8D%C7%90%C9%AA%C8%B8%CB%8F%CC%B9%CB%90%CC%A0%CB%B3%CD%97%C9%B8%CD%A8%C4%B0%CB%8C%C9%BD%C8%B2%C9%AC%C9%BF%CD%AF%C5%8D6%C8%93%CC%A1%C8%82%CD%B5%C9%B5%CE%84%C9%A9%CA%90%CD%AE%CD%85%CE%8A%CD%BE%CC%91%C8%AA%C8%BF%C4%909%C6%BE%CC%A8%CD%B9%CC%9B%CA%B2%CE%89%C4%8F%CA%95%CD%96%C7%840%CA%AB%C4%AE5%C9%B9%CD%81%CC%A9%C6%BE%C9%AD%CB%8B%CA%B4%C5%8D%C8%A3%C7%96%CE%8D%C6%B5%C5%98%CC%94%C4%B1%C7%A0%C9%83%C4%B1%CE%AD%CB%8F%CE%B0%C8%A5%CE%B7%CD%A4%CB%87%C8%9A%CC%84%CB%90%CD%9C%CE%BB%CD%8F%C6%9B%CE%AE%C9%BF%CE%BF%C8%B7%CE%B3%CE%A5%CE%B6%C5%B7%C7%887%CD%AA%C6%B1%C4%BD%CE%BD%CC%8B%C8%B5%CE%95%C8%B5%CE%B4%CD%BF%CD%B37%CE%A8%C8%B8%C9%95%C8%AF%CC%B5%CC%A9%CE%A0%C7%92%CD%A1%C5%8D%CE%83%CF%82%C9%8F%CC%86%CE%9A%CB%B8%CE%9D%C9%A8%CF%89%CC%B7%C9%BF%CB%BF%C5%8D%CC%81%CE%B5%C8%B8%CC%9F%CE%B8%CB%A8%CE%91%CD%9E%C9%BD%CC%B8%CF%9B%CD%BD%CF%90%CF%BA%CF%856%CC%97%C9%83%CC%99%D0%80%CC%9C%CE%B1%C8%96%D0%84%C4%A6%CF%A1%C5%99%CA%AD%C9%97%CF%98%C9%AD%CB%83%CC%9E%CF%9D%CE%98%C4%90%CB%9A%CD%A89%CF%87%C6%B1%CF%BF%CC%AA%C7%92%CC%8D%CA%B5%CC%8F%CD%B2%C6%B5%CD%A3%C9%93%CB%B8%CE%91%D0%8A%D0%A2%C8%8F%D0%82%CA%99%D0%8F%CF%BB%C8%980%CE%AB%C9%83%C6%90%CB%AC%CD%92%D0%B0%CD%88%CD%979%CB%A6%C8%99%C9%A7%C9%83%CF%B3%D0%AE%C9%AB%D0%BB%D0%84%C7%86%CD%8B3%CB%B1%CB%9C%CC%A9%CA%B1%C7%92%CD%BC%CC%AE%CF%AC%CA%8641%C8%8C%C7%88%D1%95%D1%81%CF%96%CB%9D%CD%B8%CE%AF%C8%B6%CA%B5%CF%8F%D1%92%C6%A7%CC%96%CE%9A%D0%9E%CE%91%D0%AB%CD%B9%CE%87%CA%B2%D0%97%CA%B5%C9%81%D1%A1%CA%A90%CE%9A%C6%A3%D1%A6%CF%A6%CB%8F%D1%AB%C5%8D%D0%B3%D0%A7%22%CA%8B%CD%99%C7%89%CE%91%C8%8C%CE%93%CF%99%C4%90%D0%82%D1%B8%CF%B940%CF%851%D1%8A%CE%91%C7%85%D0%95%CF%8C%D1%9E%CE%B2%CF%81%D1%B9%C9%94%D1%96%C4%A5%D0%B1%CF%A4%C4%9C%D0%AD%CF%A7%C8%A2%D2%8F%C8%B5%CE%97%CD%A5%D1%8A%CC%B23%CF%94%D1%B3%CD%B9%CF%8B%CA%B2%CF%8D%D1%9F%D2%91%CF%B9%C7%9B%D0%BF%CE%9C%D0%AC%D2%8D%D2%A7%D2%9C%C8%B8%D2%AA%CF%9E%C6%92%CD%8B%D1%95%D0%93%D2%98%D1%8D%CD%A0%D1%86%D1%AE%C5%AF%C7%B2%CE%B8%CD%A3%C8%9C%C6%AE%D2%80%CD%84%D0%8D%C9%AE%D2%9E%CB%87%CC%A5%D2%94%CD%A6%CE%BA%D1%9A%D1%B4%D2%81%D1%90%D3%89%C9%8F%CA%88%CC%B2%D2%89%CF%B1%CE%BB%D1%BF%C7%A4%D2%9A%C5%AF%D0%82%D1%94%D0%844%CE%A4%C6%AB%C4%B1%CD%B7%C8%B8%D0%AD%CB%81%CE%A1%D0%82%D0%87%D3%A09%D2%88%D2%8C%D2%97%CE%A3%D2%BB%D3%91%D0%82%D1%91%D1%B95%CB%B1%C7%888%D0%88%CC%B5%CD%82%CF%8A%CE%BE%D2%B2%D1%A0%D3%B6%D1%B0%CC%94%D3%A1%D3%8E%CD%8E%D3%90%D3%86%CA%82%D0%84%CC%A5%D1%BC%C9%91%D4%86%D3%9D%CE%9F%CE%94%D3%87%D3%A2%D4%82%CE%9A%CC%B1%D0%9F%C4%BC%D0%AD%D1%8E%C6%B9%CE%A2%CA%B6%D4%8B%D2%8A%C6%AB%C6%93%D3%BB%C4%BC%D3%B2%C9%AD%D0%A4%C5%8D%D0%A6%CF%B9%CA%AA%D4%84%D3%BA%D2%8B%D4%88%D0%8C%CB%84%D3%93%CA%98%C8%99%CC%A4%CC%86%CE%91%D1%9B%D1%84%CB%90%D3%B4%D0%BC%CF%9F%CA%89%C4%AE3%D4%98%D3%B1%D4%91%D2%81%CF%A9%CC%85%D0%84%C4%BE%D4%BE%C8%B8%CF%97%D3%B0%CD%AD%D5%83%D0%BA%D3%87%CF%AB%D1%B9%CC%86%CB%A6%C4%AF%D1%99%C4%9C%CD%AC%D4%9B%D4%90%CB%A1%D4%BC%C4%AE%C8%9A%CE%B8%CD%9B%CF%BE%D4%AF%CC%AB%D3%B4%D4%B2%C6%A7%D5%93%CE%B8%D1%AD%C9%BA%D0%A1%D3%A8%C7%92%D4%9D%D3%AB%D2%BE%CF%BA%CF%92%C4%AE%D3%9F%D5%8C%CA%8B%D4%A5%CE%88%D3%AA%D5%9C%CA%87%CC%B2%CE%81%D5%8C%C8%97%D3%85%D5%B8%D4%93%D5%A5%C7%9A%D2%87%CC%94%CD%87%D1%A6%D1%83%D3%9C%D4%BA%D3%87%D3%AD%D5%87%CC%8F%D3%B9%D5%96%D4%BF%D5%B7%CA%B2%D4%A7%CA%A3%D5%BA%CC%B1%CD%8B6%D2%B9%CE%A9%D6%93%D0%A3%D0%82%D4%A9%D2%B5%CD%A6%D3%8C%D0%BE%D1%A6%D3%BD%D1%85%D2%81%D1%B6%D0%A8%D5%87%D5%9E%D3%A3%D2%89%CE%91%D1%83%D5%99%D6%8B%C9%8B%D5%BA%C8%99%D1%BC%D6%9A%D1%A6%D2%99%CD%BB%D5%A4%D0%8F8%D3%8C%C8%A3%D5%81%C8%B8%D0%B8%D3%9B%CB%9F%D3%9E%D6%83%C4%A5%D2%A3%C6%AB8%D6%91%CF%A2%D5%A2%D5%AD%D3%AA%D7%86%C6%AC%D4%96%D4%8F%CA%B3%D6%80%D1%AA%D2%83%D7%90%D1%8A%D1%BC%D6%B5%D1%A6%CD%AC%D5%AC%C6%B9%D6%A9%C9%90%D0%B2%D2%A1%D5%B6%D5%BE%D4%B8%D2%A6%C7%92%D2%A8%D2%90%D0%99%CD%A5%C4%B2%D1%B1%CF%A3%C9%BA%CD%AC%D7%A7%D2%9B%D0%82%D4%81%D2%85%C4%BE%CE%B8%D0%B5%D6%B8%D6%9D%D0%AF%D5%90%D5%BA%D2%86%D5%B2%228%D6%9B%C4%9D%D7%9D%D7%84%D3%87%CC%96%D6%BC%D3%8C%D2%96%C9%BA%D3%84%D7%83%D2%81%D5%AE%D7%90%CA%88%CF%85%CF%A0%D2%8B%CD%AC%D6%8A%CF%B6%CB%B7%D3%A0%D1%95%D4%84%D7%80%D8%9B%D5%8E%D6%81%D4%8A%D5%B0%C9%91%D3%8C6%D0%B6%C6%B1%CD%A3%C9%99%D6%A8%D2%83%C9%8D%D4%AA%D4%B6%D7%89%D3%A5%C5%99%D7%BB%C9%89%D4%BB%D3%A0%CA%8C%CC%94%C9%9E%D5%8C%D3%AF%D7%95%D7%8E%D6%82%D3%A0%D3%A2%C7%88%D5%A0%D5%8C%D8%94%CD%B9%D6%B1%D5%AE%D7%BE%C6%93%D4%84%CC%A7%CA%9F%D3%9A%CB%BC%D0%81%D6%8C%C7%BF%2F%C8%A8%C5%A3%3C%C5%BFads%20in%C5%94%C4%88%C4%8Ffa%C4%BBe%C5%9B%D9%94o%D9%96%20%C4%A2xtR%D9%A5%D9%97%C5%AF%5F%C6%A3%7C4%5F%C6%94ex%D6%840%7C%C4%AF%C5%B7s%D9%B6%D0%A8%D9%B8%C8%A3%C5%B7id%C8%AA%5F%D8%AC%D9%A4%D9%A6%D9%A8%D9%AA%D9%AC%C4%9C9%5F%CE%B0%D9%B5%CE%A6%D9%B8%CE%AA%D9%BB%D9%BD%C8%B8%CC%A5%7C57%C6%94%DA%82%C4%AE6%5F%C6%AE%C7%80%D9%95d%D9%A7%D9%B5%DA%8A%D9%96%C4%BC0%5F%D0%B3%DA%90%C9%AB%C4%91%DA%98%CC%A5%C4%A8%DA%95%DA%93%7C%D6%9A%DA%81%DA%83%D7%81%DA%8E%C5%B7%DA%A1%D9%AC%DA%A4%D9%A9%D9%AB%DA%A7%C6%B5%DA%AA%C5%AC%DA%AC%D2%B3%D9%BF%CA%9D%DA%B1%C5%A9%DB%86%DA%B6%C4%AE7%DA%AA%C9%9F%DA%A2%DA%BD%DA%A6%D9%AD%C9%84%5F%C8%8C%DB%84%C4%A6%D9%B8%C7%85%C6%94%D9%BC%D9%B7%D9%B9%DA%B0%D9%99%DA%B7%D9%B2%C6%94%DA%BB%DA%88%DA%A5%DA%BF%DB%93%DA%9E%C6%AA%DB%977%DB%99%DB%AC%DB%88%C4%A5%CA%9D%7C%DB%9A%C4%93%DA%9C%DB%94%CE%8C%DA%87%DA%A3%DA%89%DB%A7%DA%8C%DA%B9%C4%93%DB%84%C8%9A%DA%92%DB%9F%DB%9C%C8%B5%DA%92%DB%87%DB%A0%C4%AE%DA%9F%DB%8F%DA%BC%DB%BA%DA%8B%C8%B5%DA%AA%CA%83%DB%84%D6%98%DA%AF%DA%94%DA%91%DC%93%DB%B4%DA%B7%DA%8D%CE%B0%DB%A4%DB%B9%DB%A6%DC%8D%C4%901%DA%8E%DC%90%DA%B2%DA%9A%D9%B1%DC%82%DA%B2%DA%AE%DA%93%DC%97%DC%8E%D2%84%DB%B8%DB%91%DB%BB%C4%AE%DC%A0%CE%BC%20%DC%91%DA%97%D1%88%DB%AF%C9%84%DC%A4%C6%93%DB%8B%DC%9F%DC%A1%DC%8A%DB%A5%DA%BE%DC%9E%C4%B1%DA%8E%DB%83%DA%B2%DB%B1%C8%99%DB%9B%DA%B2%DC%B5%DA%9A%DC%AA%D5%8A%DA%8E%CF%9D%DB%90%DC%8C%DB%80%D3%A6%DB%95%DB%BE%DA%95%DC%BA%7C%DD%87%DC%B7%CC%A5%D9%B8%DD%99%DC%87%CF%BA%DD%83%DC%BE%DC%9C%DD%80%DD%92%DB%A9%DD%95%C7%9A%DB%AC%DB%B2%DB%AE%20%DC%83%D1%BA%DA%97%DD%9D%DB%B5%D2%89%DD%94%CB%B2%DD%90%DC%9D%DD%92%C4%AF%DA%8E%C6%AE%DB%BF5%DC%A5%DC%94%C6%98%DA%98%DC%86%DB%B5%DA%A9%C8%97%DC%9B%DC%AE%DC%9E%DD%A5%DC%B3%DA%95%D2%A2%DB%AD%DD%BD%C4%9D%DD%86%DB%9F%DD%B0%D9%B2%DB%B7%DD%B4%DD%A3%DB%93%CC%86%DD%B2%DB%97%DE%8E%DE%8C%DB%9A%DD%98%DD%8B%DD%9E%C7%85%DA%8E%DA%86%DE%93%DB%92%D5%972%DE%A0%DD%A6%C6%B5%DA%AE%D2%A2%DD%88%CF%9F%DD%BB%DD%AF%DA%B7%C8%9A%DA%AA%DD%8F%DC%8B%DD%B5%DB%93%DE%B0%D3%AF%DB%84%C4%BE%DE%AD%D1%AD%DD%AC%DC%80%DB%B2%DE%8F%DA%B7%C6%A3%DA%AA%DA%BA%C5%9C%DE%A2%DC%AF%C7%BE%DF%82%DE%A7%C6%A8%DB%99%DC%A6%DB%9D%D9%BA%DD%8C%D9%B2%D1%B2%DD%B3%DE%B3%DE%94%C4%9C%DF%89%CC%96%DD%BB19%DE%AB%D7%87%DE%8B%DD%8C%DE%87%DE%84%DD%91%DB%93%DF%903%D9%B1%D9%B3%DF%89%DB%98%DB%9E%DE%8C%CA%9A%DB%8A%DD%8C3%DA%85%DD%A1%DE%85%DD%92%DF%AE%C8%AE%DB%97%DA%97%DA%80%DC%B7%C4%91%DF%AC%DE%9E%DF%AE%C7%BF%DF%85%DC%9E%C8%86%D9%AF%DB%B2%DF%B3%DF%89%DF%B9%D9%B9%DC%86%DD%AC%DA%80%E0%A0%86%DC%BB%DE%A5%C8%86%DF%B0%DF%A1%C4%BC%DA%8E%DF%98%DC%89%DE%88%CD%B3%DB%B1%DD%9B%DC%B7%D9%BA%DA%98%DE%9D%DD%B0%DA%9E%CD%BE%DF%BE%DD%B6%E0%A0%9D%D9%B9%DA%9E%DD%B9%DA%95%E0%A0%99%DA%99%DF%9B%DA%96%D9%B8%DA%B5%DD%8C8%DA%8E%DE%92%DF%93%DE%A3%DB%81%E0%A0%8D%E0%A0%94%DC%84%E0%A0%8A%DD%9A%DB%99%DE%80%DA%B7%DF%99%DB%8E%DF%92%DC%BF%E0%A0%B1%C8%B8%DA%8D%C6%BE%DC%91%E0%A0%B8%DE%9A%DD%BB%DC%BA%DD%8C%DD%B7%DF%99%E0%A0%8E%DE%B4%C4%BC5%DD%B8%E0%A0%84%E0%A1%86%DF%8C%E0%A0%B5%E0%A0%97%DD%9E%DC%B1%DB%A3%C5%9C%2F%DA%A2%D9%93po%D9%9At%E0%A1%9B%E0%A1%9Dnt%CD%97%DB%9F%C7%9E%E0%A0%B9%C7%AA%CB%B2%E0%A1%9C%E0%A1%9E%D5%A6%DC%86%C7%9E%DE%BF%C8%AA%C9%9F%E0%A1%AA%E0%A1%A2%C9%B4%CD%8B%DB%B3%DE%9E%CF%9D%E0%A1%B2%E0%A1%A3%C5%A9%E0%A1%87%CC%BE%E0%A0%9B%DE%AF%CD%BE%E0%A1%B9%C7%AE%D1%AD%D1%97%E0%A1%BE%CE%B6%E0%A1%B1%E0%A1%A1%E0%A1%BA%CF%91%CC%A4%DC%BB%E0%A1%8A%E0%A1%A9%E0%A2%88%C6%A7%E0%A0%AB%CC%BE%E0%A1%AF%D7%81%E0%A2%87%E0%A1%AB%E0%A0%95%D8%80%E0%A2%8C%CD%B1%C5%9C%E0%A2%81%CA%A9%DE%9D%D1%97%E0%A2%93%D8%9E%C7%80%E0%A2%9C%C5%AF%E0%A1%A5%D6%AA%E0%A1%95%E0%A1%97%3C%E0%A2%A3%C6%AC%D8%80%DB%98%E0%A1%88%DA%86%E0%A2%AA%DD%9D%CA%8A%E0%A2%A0%C7%BF%E0%A2%B0%E0%A2%83%C9%AB%E0%A1%A7%CF%BA%E0%A2%95%E0%A1%B3%C7%84%E0%A2%9E%C9%AB%E0%A2%A0%E0%A2%80%E0%A2%8F%CA%A9%E0%A2%A5%C9%84%D1%AD%DD%B0%DF%83%E0%A2%A9%E0%A3%81%E0%A2%BE%D8%80%DC%80%DD%8C%DA%A0%E0%A2%9B%E0%A3%89%C9%AE%E0%A1%AD%CE%A9%DC%BB%C6%90%E0%A2%A2%E0%A3%90%DF%99%CD%8B%DF%97%DD%8C%E0%A2%9A%E0%A3%88%E0%A2%96%C6%B5%DD%AA%CB%99%DC%BB%DB%B7%E0%A2%AA%E0%A1%B6%CA%9C%DC%BB%E0%A2%A8%E0%A2%AA%DF%8E%D0%B4%DC%BB%E0%A2%AF%E0%A3%97%E0%A3%92%E0%A2%AB%DF%AD%E0%A2%BA%E0%A2%89%DB%85%D7%B8%E0%A0%8B%E0%A3%B2%C6%A7%E0%A1%94%D1%97%E0%A2%B8%E0%A3%80%E0%A3%9E%C9%84%E0%A3%AF%DC%BB%E0%A3%87%2F%E0%A1%B9%D9%93%2F%C4%81%C4%83%3E";
_local8.set_label(get_txt("ok"));
_local8.act = function () {
show_game_data(main_mc.dtxt.text);
};
_local7.set_label(get_txt("back"));
_local7.act = function () {
show_options();
};
}
function show_game_data(save_xml) {
var _local13 = 600;
var _local12 = 600;
var _local6 = _root.createEmptyMovieClip("main", main_depth);
var _local10 = _local6.createEmptyMovieClip("game", _local6.getNextHighestDepth());
var _local9 = _local10.createEmptyMovieClip("game_bg_mc", _local10.getNextHighestDepth());
var _local14 = _local10.createEmptyMovieClip("nt_mc", _local10.getNextHighestDepth());
var _local15 = _local6.createEmptyMovieClip("lvl_editor", _local6.getNextHighestDepth());
var face_mc = _local6.attachMovie("game_face_scr", "face", _local6.getNextHighestDepth());
face_mc.tips_mc._visible = false;
face_mc.txt_mc._visible = false;
var _local11 = _root._find_xml("towers", _root.data_xml);
face_mc.refreshPowerTxt = function () {
var _local3 = tower_types_min;
while (_local3 <= _root.tower_types_max) {
var _local5 = face_mc[("t" + _local3) + "_mc"].power_dtxt;
var _local4 = _global.game._tower_power[_local3];
if ((_local4 != _local5.text) && (_local4 != 0)) {
face_mc[("t" + _local3) + "_mc"].addESplash(255, false);
}
_local5.text = _local4;
_local3++;
}
};
_root.towers_short_cut = [];
var _local3 = tower_types_min;
while (_local3 <= _root.tower_types_max) {
var _local4 = face_mc[("t" + _local3) + "_mc"];
_local4.body.gotoAndStop(_local3);
_local4.body.upg_mc.gotoAndStop(1);
_local4.cost_dtxt.text = "";
_local3++;
}
var _local8 = face_mc.attachFontBut("butFontSmall", "exit", {_x:_local13 - 60, _y:-2}, null);
_local8.set_label(get_txt("exit"));
_local8.act = function () {
show_main();
};
var _local7 = new CGame({game_mc:_local10, face_mc:face_mc, rw:_local13, rh:_local12, game_bg_mc:_local9});
_global.game = _local7;
_local9.attachMovie("game_map1_bg", "game_map1_bg", _local9.getNextHighestDepth());
_local7.loadXml(save_xml);
_local7.__refreshPowers();
delete _local10.onEnterFrame;
face_mc.weaps_mc._visible = false;
}
function show_gametips() {
_root.main._visible = false;
_global.game._CGame_pause();
var main_mc = _root.attachMovie("game_tips_scr", "game_tips", game_pause_depth);
var _local5 = Stage.width / 2;
var _local4 = 545;
var _local8 = 0;
var _local7 = 70;
var _local6 = 0;
var _local3 = main_mc.attachFontBut("butFont", "but" + (_local6++), {_x:_local5, _y:_local4}, null);
_local5 = _local5 + _local8;
_local4 = _local4 + _local7;
_local3.set_label(get_txt("back"));
_local3.act = function () {
_root.main._visible = true;
_global.game._CGame_unpause();
main_mc.unloadMovie();
};
}
function show_skills(main_mc, tar_mc) {
var guns_xml = _root._find_xml("char_upgrades", _root.data_xml);
var _local8 = guns_xml.childNodes;
main_mc.show_free_points = function () {
this.free_points_dtxt.text = (_root.get_txt("free_points") + ": ") + guns_xml.attributes.free_points;
};
main_mc.skills_reset = function () {
var _local6 = _root._find_xml("char_upgrades", _root.data_xml);
var _local7 = _local6.childNodes;
var _local5 = 0;
while (_local5 < _local7.length) {
var _local3 = _local7[_local5];
var _local4 = _local3.attributes.item_mc;
if ((_local3.attributes.avaible == 1) && (_local3.attributes.name != "reset")) {
_local4.gotoAndStop(2);
_local4.body_mc.gotoAndStop(_local3.attributes.type / 1);
_local6.attributes.free_points = (_local6.attributes.free_points / 1) + 1;
_local3.attributes.avaible = 0;
_local4.body_mc.onRelease = _local4.body_mc._onRelease;
}
_local5++;
}
this.show_free_points();
};
var _local22 = guns_xml.attributes.sx / 1;
var _local21 = guns_xml.attributes.sy / 1;
var _local20 = guns_xml.attributes.dx / 1;
var _local19 = guns_xml.attributes.dy / 1;
var _local9 = main_mc.createEmptyMovieClip("ts" + main_mc.getNextHighestDepth(), main_mc.getNextHighestDepth());
_local9._x = _local22;
_local9._y = _local21;
var _local16 = 0;
for ( ; _local16 < _local8.length ; _local16++) {
var _local17 = _local8[_local16];
var _local7 = _local9.attachMovie("skills_mc", "g" + _local9.getNextHighestDepth(), _local9.getNextHighestDepth());
_local17.attributes.item_mc = _local7;
_local7._x = _local17.attributes.x * _local20;
_local7._y = _local17.attributes.y * _local19;
if (_local17.attributes.avaible == 0) {
_local7.gotoAndStop(2);
} else {
_local7.gotoAndStop(1);
}
_local7.body_mc.gotoAndStop(_local17.attributes.type / 1);
_local7.body_mc.tar_mc = tar_mc;
_local7.body_mc._hint = (get_txt(_local17.attributes.name) + "\r") + get_sp_txt(get_txt("charupgrade_tip_" + _local17.attributes.name));
_local7.body_mc.addHint();
_local7.body_mc.addHint(_local7.body_mc._hint);
if (_local17.attributes.aura_power != undefined) {
var _local15 = _local17.attributes.aura_power.split(",");
_local7.body_mc._hint = _local7.body_mc._hint + "\r";
_local7.body_mc._hint = _local7.body_mc._hint + get_txt(_local15[0]);
if (_local15[0] === "stun") {
_local7.body_mc._hint = _local7.body_mc._hint + (("(" + _local15[2]) + "%)");
}
}
_local7.body_mc.onRollOver = function () {
_root.snd.charupgrade_over.start();
this._parent.addESplash(255, false);
};
_local7.body_mc.onRollOut = function () {
};
_local7.body_mc.type_id = _local17.attributes.type / 1;
_local7.body_mc.this_xml = _local17;
var type_id = (_local17.attributes.type / 1);
_local7.kong_mc._visible = false;
if (_global.limited_version) {
if (((type_id == 24) || (type_id == 34)) || (type_id == 21)) {
_local7.kong_mc.addHint("This Skill avaible only on Kongregate");
_local7.kong_mc._visible = true;
continue;
}
} else {
if (_local17.attributes.name == "reset") {
_local7.body_mc.onRelease = function () {
main_mc.skills_reset();
};
}
_local7.body_mc._onRelease = function () {
if (buy_skill(this.this_xml)) {
this._parent.gotoAndStop(1);
this._parent.body_mc.gotoAndStop(this.type_id);
delete this.onRelease;
} else {
trace("cant_buy_new_skill");
}
main_mc.show_free_points();
};
if (_local17.attributes.avaible == 0) {
if (_local17.attributes.name == "reset") {
} else {
_local7.body_mc.onRelease = _local7.body_mc._onRelease;
}
}
}
}
_local16 = 0;
while (_local16 < _local8.length) {
var _local17 = _local8[_local16];
var _local7 = _local17.attributes.item_mc;
var _local11 = _local17.attributes.need_cu.toString().split(",");
for (var _local18 in _local11) {
var _local10 = _local11[_local18];
var _local5 = 0;
while (_local5 < _local8.length) {
var _local6 = _local8[_local5];
if (_local10 == _local6.attributes.type) {
tar_mc = _local6.attributes.item_mc;
if (_local6.attributes.avaible == 1) {
_root.drawLine(_local9, [_local7._x, _local7._y], [tar_mc._x, tar_mc._y], {_t:3, _color:26112, _alpha:90});
} else {
_root.drawLine(_local9, [_local7._x, _local7._y], [tar_mc._x, tar_mc._y], {_t:3, _color:6684672, _alpha:90});
}
break;
}
_local5++;
}
}
_local16++;
}
main_mc.show_free_points();
}
function buy_skill(skill_xml) {
var _local8 = _root._find_xml("char_upgrades", _root.data_xml);
var _local5 = _local8.childNodes;
var _local7 = skill_xml.attributes.need_cu.toString().split(",");
for (var _local9 in _local7) {
var _local6 = _local7[_local9];
var _local3 = 0;
while (_local3 < _local5.length) {
var _local4 = _local5[_local3];
if (_local6 == _local4.attributes.type) {
if (_local4.attributes.avaible != 1) {
trace("parent_not_avabile");
return(false);
}
}
_local3++;
}
}
if ((_local8.attributes.free_points / 1) > 0) {
_local8.attributes.free_points = (_local8.attributes.free_points / 1) - 1;
skill_xml.attributes.avaible = 1;
if (skill_xml.attributes.type == 24) {
_global.help_kamikaze_showed = false;
}
_root.snd.charupgrades(skill_xml.attributes.name);
return(true);
}
return(false);
}
function show_weaps(main_mc, tar_mc) {
var _local16 = _root._find_xml("guns", _root.data_xml);
var _local11 = _local16.childNodes;
var _local18 = _local16.attributes.sx / 1;
var _local17 = _local16.attributes.sy / 1;
var _local15 = _local16.attributes.dx / 1;
var _local14 = _local16.attributes.dy / 1;
var _local8 = main_mc.createEmptyMovieClip("ts" + main_mc.getNextHighestDepth(), main_mc.getNextHighestDepth());
_local8._x = _local18;
_local8._y = _local17;
var _local7 = 0;
var _local12 = 0;
var _local6 = 0;
while (_local6 < _local11.length) {
var _local4 = _local11[_local6];
var _local3 = _local8.attachMovie("weaps_full_mc", "g" + _local8.getNextHighestDepth(), _local8.getNextHighestDepth());
_local3._x = _local7 * _local15;
_local3._y = _local12 * _local14;
_local7++;
if (_local7 > 4) {
_local7 = 0;
_local12++;
}
if (_local4.attributes.avaible == 0) {
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(1);
}
_local3.body_mc.gotoAndStop(_local4.attributes.type / 1);
_local3.body_mc.hint_txt = (get_txt(_local4.attributes.name) + "\r") + get_txt("weapon_tip_" + _local4.attributes.name);
var _local13 = _root.get_gun_hint_txt(_local4);
_local3.body_mc.addHint(_local13);
var _local10 = _local4.attributes.power.split(",")[0];
if (_local10 != undefined) {
_local3.body_mc.hint_txt = _local3.body_mc.hint_txt + "\r";
var _local5 = _local4.attributes.power.split(",")[0];
_local3.body_mc.hint_txt = _local3.body_mc.hint_txt + ((get_txt("effect") + ":") + get_txt(_local5));
if ((_local5 == "stun") || (_local5 == "dm")) {
var _local9 = _local4.attributes.power.split(",")[2];
_local3.body_mc.hint_txt = _local3.body_mc.hint_txt + (("(" + _local9) + "%)");
}
}
_local3.body_mc.onRollOver = function () {
this._parent.addESplash(255, false);
var _local2 = tar_mc.showInfo(this.hint_txt);
};
_local3.body_mc.onRollOut = function () {
tar_mc.hideInfo();
};
_local3.body_mc.type_id = _local4.attributes.type / 1;
_local3.body_mc.this_xml = _local4;
_local6++;
}
}
function loggedIn(ev) {
var _local2 = ev.userProperties;
var _local1 = _local2.save_str;
_load_game(_local1);
}
function registerItem(event) {
trace(((((("Player owns " + event.count) + " of |") + event.id) + "| for:") + _root.items_ids[String(event.id)]) + "|");
_root.items_got[_root.items_ids[String(event.id)]] = Number(event.count);
}
function newItem(event) {
trace(((("Player just bought " + event.count) + " of ") + event.id) + _root.items_ids[String(event.id)]);
_root.items_got[_root.items_ids[String(event.id)]] = _root.items_got[_root.items_ids[String(event.id)]] + Number(event.count);
}
function show_skirmishloby() {
function get_map_id(val) {
if (val >= map_list_arr_l) {
return(val - map_list_arr_l);
}
if (val < 0) {
return(map_list_arr_l + val);
}
return(val);
}
function draw_map(mc, xml) {
var _local13 = mc.body.createEmptyMovieClip("ln", 65);
for (var _local14 in xml.firstChild.childNodes) {
var _local4 = _local13.createEmptyMovieClip("i", Number(_local14));
var _local3 = xml.firstChild.childNodes[_local14];
var _local7 = _local3.attributes.gid;
var _local2 = _local3.attributes.val.split(",");
var _local1 = _local2[2] / 1;
var _local5 = {_t:1, _alpha:0, _color:0};
var _local6 = {_alpha:70, _color:colors[_local7]};
if (_local3.attributes.type == 3) {
_local1 = 64;
drawSqare(_local4, [(_local2[0] / 1) - (_local1 / 2), (_local2[1] / 1) - (_local1 / 2)], _local1, _local1, _local5, _local6);
} else if (_local3.attributes.type == 2) {
_local1 = 32;
drawCross(_local4, _local2[0] / 1, _local2[1] / 1, _local1, colors[_local7]);
} else {
if (_local1 < 20) {
var _local8 = 20 - _local1;
_local8 = Math.round(Math.sqrt(_local8));
_local1 = 20 - _local8;
}
if (_local1 > 128) {
var _local8 = _local1 - 128;
_local8 = Math.round(Math.sqrt(_local8));
_local1 = 128 + _local8;
}
drawExCircle(_local4, [_local2[0] / 1, _local2[1] / 1], _local1, _local5, _local6);
}
}
}
function refresh_map(mc, xml_id) {
var _local1 = map_list_arr[xml_id];
mc.body.gotoAndStop(_local1.attributes.bg_id);
if (isNaN(_local1.attributes.scores)) {
_local1.attributes.scores = 0;
}
if (_local1.attributes.scores > 0) {
mc.score_dtxt.text = (get_txt("best") + ":") + (_local1.attributes.scores / 1);
} else {
mc.score_dtxt.text = "";
}
mc.dtxt.text = _local1.attributes.name;
draw_map(mc, _local1);
}
function move_maps(this_mc) {
if (map_list_mc.onEnterFrame != undefined) {
return(false);
}
var _local6 = 0;
if (this_mc._x < 355) {
_local6 = -1;
}
if (this_mc._x > 365) {
_local6 = 1;
}
if (_local6 == 0) {
var _local7 = getTimer() - last_time_clicked;
if (_local7 < 250) {
show_game();
} else {
last_time_clicked = getTimer();
}
return(false);
}
cur_map_id = get_map_id((cur_map_id / 1) + (_local6 / 1));
var _local4 = -map_list_max_l;
while (_local4 <= map_list_max_l) {
var _local2 = list_arr[_local4].mc;
var _local1 = _local4 + _local6;
var _local5 = Math.abs(_local1) / _local1;
if (Math.abs(_local1) > 3) {
_local1 = (-_local5) * (Math.abs(_local1) - 1);
}
var _local3 = list_arr[_local1].mc;
_local2._tx = _local3._x;
_local2._ty = _local3._y;
_local2._txscale = _local3._xscale;
_local2._tyscale = _local3._yscale;
_local2._talpha = _local3._alpha;
_local4++;
}
map_list_mc.onEnterFrame = map_list_mc._onEnterFrame;
}
_global.options_skirmish = true;
_global.game_dif = 1;
_global.game_inverse = false;
_global.game_survival = true;
if (_global.options_lvleditor) {
_global.map_nname = "map_XX";
_global.char_selector = 1;
show_game();
return(false);
}
var _local35 = new flash.display.BitmapData(Stage.width, Stage.height, true, 0);
_local35.draw(_root.main);
if (_global.options_payments == "mochicoins") {
}
var main_mc = _root.attachMovie("scirmish_scr", "main", main_depth);
main_mc.txt_dtxt.text = (get_txt("total_scores") + ": ") + game_get_all_scores();
main_mc.shop_mc.make_me_but();
main_mc.shop_mc.set_label(get_txt("shop").toUpperCase());
main_mc.shop_mc.act = function () {
mochi.as2.MochiCoins.showStore();
};
if (_global.options_payments == "disabled") {
main_mc.shop_mc._visible = false;
}
main_mc.submit_mc.make_me_but();
main_mc.submit_mc.set_label(get_txt("submit").toUpperCase());
trace((("_scores:" + _global.score_submited) + "/") + game_get_all_scores());
var _local40 = _root._find_xml("map_list", _root.data_xml);
if (_global.score_submited >= game_get_all_scores()) {
main_mc.submit_mc.set_disable(true);
} else {
main_mc.submit_mc.act = function () {
if (_global.external_scores) {
var _local4 = game_get_all_scores();
_global.score_submited = _local4;
_root.save_game();
_global.UniteScores.send_scores(_local4, "");
this.set_disable(true);
delete this.act;
} else if (_global.options_use_mochiscores) {
var _local4 = game_get_all_scores();
_global.score_submited = _local4;
_root.save_game();
mochi.as2.MochiScores.showLeaderboard({boardID:_global.mochiscore_id(), score:_local4, res:(_global.this_mc_w + "x") + _global.this_mc_h, onDisplay:function () {
trace("display:" + this);
}, onClose:function () {
trace("close:" + this);
}});
this.set_disable(true);
delete this.act;
} else {
main_mc.scores_mc._visible = true;
}
};
}
main_mc.back_mc.make_me_but();
main_mc.back_mc.set_label(get_txt("menu").toUpperCase());
main_mc.back_mc.act = function () {
show_main();
};
main_mc.next_mc.make_me_but();
main_mc.next_mc.set_label(get_txt("next").toUpperCase());
main_mc.next_mc.act = function () {
show_game();
};
var map_list_max_l = 3;
_local40 = _root._find_xml("map_list", _root.data_xml);
var map_list_arr = _local40.childNodes;
var map_list_arr_l = map_list_arr.length;
var map_list_mc = main_mc.createEmptyMovieClip("mal_list_mc", main_mc.getNextHighestDepth());
var cur_map_id = 0;
if (_global.map_just_played == undefined) {
cur_map_id = 0;
} else {
cur_map_id = _global.map_just_played / 1;
if (cur_map_id >= map_list_arr_l) {
cur_map_id = _global.map_just_played;
}
}
if (isNaN(cur_map_id)) {
cur_map_id = 0;
}
var colors = [0, 255, 16711680, 65280];
var list_arr = {};
var id_list = {};
var last_time_clicked = getTimer();
var _local34 = -map_list_max_l;
while (_local34 <= map_list_max_l) {
list_arr[_local34] = {mc:main_mc["map" + _local34]};
refresh_map(list_arr[_local34].mc, get_map_id(_local34));
list_arr[_local34].mc.onRelease = function () {
move_maps(this);
};
id_list[list_arr[_local34].mc._x] = _local34;
_local34++;
}
var ani_speed = 3;
map_list_mc._set_all_maps = function () {
var _local3 = -map_list_max_l;
while (_local3 <= map_list_max_l) {
var _local2 = list_arr[_local3].mc;
_local2._x = _local2._tx;
_local2._y = _local2._ty;
_local2._xscale = _local2._txscale;
_local2._yscale = _local2._tyscale;
_local2._alpha = _local2._talpha;
var _local4 = get_map_id(cur_map_id - id_list[_local2._x]);
refresh_map(_local2, _local4);
_local3++;
}
_global.map_nname = map_list_arr[cur_map_id].nodeName;
main_mc.refresh_thumbs(cur_map_id);
};
map_list_mc._onEnterFrame = function () {
var _local4 = list_arr[0].mc._tx - list_arr[0].mc._x;
if (Math.abs(_local4) < 2) {
this._set_all_maps();
delete this.onEnterFrame;
return(false);
}
var _local3 = -map_list_max_l;
while (_local3 <= map_list_max_l) {
var _local2 = list_arr[_local3].mc;
_local2._x = _local2._x + ((_local2._tx - _local2._x) / ani_speed);
_local2._y = _local2._y + ((_local2._ty - _local2._y) / ani_speed);
_local2._xscale = _local2._xscale + ((_local2._txscale - _local2._xscale) / ani_speed);
_local2._yscale = _local2._yscale + ((_local2._tyscale - _local2._yscale) / ani_speed);
_local2._alpha = _local2._alpha + ((_local2._talpha - _local2._alpha) / ani_speed);
_local3++;
}
};
map_list_mc._set_all_maps();
var _local18 = main_mc.createEmptyMovieClip("maps_thumb", main_mc.getNextHighestDepth());
var _local21 = 680;
var _local39 = Math.ceil(map_list_arr_l / 18);
var _local28 = 20;
var thumbs_maps = [];
var _local22 = 40;
var _local26 = 33.3333333333333;
var _local29 = Math.round(_local21 / map_list_arr_l) * _local39;
var _local30 = _local26 + 1;
var _local12 = (((Stage.width / 2) - (_local21 / 2)) - (_local22 / 2)) + _local28;
var _local23 = 290;
var _local32 = 1;
_local34 = 0;
while (_local34 < map_list_arr_l) {
var _local15 = map_list_arr[_local34];
var _local5 = _local18.attachMovie("map_selector_small_mc", _local18.getNextHighestDepth(), _local18.getNextHighestDepth());
_local5._x = _local12;
_local5._y = _local23;
_local12 = _local12 + _local29;
if (_local12 > _local21) {
_local12 = (((Stage.width / 2) - (_local21 / 2)) - (_local22 / 2)) + _local28;
_local23 = _local23 + _local30;
_local32++;
}
_local5.ar_id = _local34;
_local5.bg_id = Number(_local15.attributes.bg_id);
_local5.body.gotoAndStop(_local5.bg_id);
_local5.body.filters = [_root.white_filter];
_local5.body._width = _local22;
_local5.body._height = _local26;
draw_map(_local5, _local15);
_local5.refresh_bg = function (val) {
if (val == this.ar_id) {
this.filters = [];
} else {
this.filters = [_root.hide_filter];
}
};
_local5.onRelease = function () {
cur_map_id = this.ar_id;
map_list_mc._set_all_maps();
};
thumbs_maps[_local34] = _local5;
_local34++;
}
main_mc.refresh_thumbs = function (val) {
for (var _local2 in thumbs_maps) {
thumbs_maps[_local2].refresh_bg(val);
}
};
main_mc.refresh_thumbs(cur_map_id);
main_mc.players_dtxt.text = "";
main_mc.edit_mc.unloadMovie();
var _local33 = main_mc.createEmptyMovieClip("o" + main_mc.getNextHighestDepth(), main_mc.getNextHighestDepth());
_local33.attachBitmap(_local35, _local33.getNextHighestDepth());
_local33.ttl = 0;
_local33.onEnterFrame = function () {
this._alpha = this._alpha - (1 + this.ttl);
this.ttl++;
if (this._alpha <= 0) {
delete this.onEnterFrame;
}
};
}
function show_loading_scr() {
var _local2 = _root.attachMovie("loading_scr", "main", main_depth);
_local2.dtxt.text = get_txt("loading");
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function find_data_xml(name) {
return(_find_xml(name, data_xml));
}
function game_get_all_scores() {
var _local5 = _root._find_xml("map_list", _root.data_xml);
list_xml = _local5;
var _local3 = 0;
for (var _local4 in list_xml.childNodes) {
var _local2 = list_xml.childNodes[_local4];
if (_local2.nodeName != "map_my") {
if (!isNaN(_local2.attributes.scores)) {
_local3 = _local3 + (_local2.attributes.scores / 1);
}
}
}
return(_local3);
}
function load_game() {
var _local2 = _root.SO.data.game;
_load_game(_local2);
}
function _load_game(old_save_obj) {
var _local7;
if (old_save_obj == undefined) {
return(false);
}
var _local10 = {};
for (var _local11 in old_save_obj) {
var _local5 = old_save_obj[_local11];
_local5 = LZW.decompress(unescape(_local5));
save_atr = LZW.decompress(unescape(_local11));
_local10[save_atr] = _local5;
}
var _local6;
var _local12 = _root._find_xml("map_list", _root.data_xml);
_local7 = _local12;
_local6 = _local10.maps.split("|");
for (var _local11 in _local7.childNodes) {
var _local4 = _local7.childNodes[_local11];
for (var _local9 in _local6) {
var _local3 = _local6[_local9].split(":");
if (_local3[0] == _local4.attributes.name) {
_local4.attributes.scores = _local3[1] / 1;
_global.help_build_towers_showed = true;
}
}
}
_global.score_submited = _local10.score_submited / 1;
if (isNaN(_global.score_submited)) {
_global.score_submited = 0;
}
backup_data.data_xml = data_xml.cloneNode(true);
}
function save_game() {
var _local10 = _root._find_xml("map_list", _root.data_xml);
if (_root.main_maps_set_name == _local10.attributes.maps_set_name) {
trace("custom_maps_not_for_saving");
return(false);
}
saving_mc.gotoAndPlay(1);
var _local6;
var _local5 = {};
var _local8;
_local6 = _local10;
_local8 = [];
for (var _local9 in _local6.childNodes) {
var _local3 = _local6.childNodes[_local9];
if (isNaN(_local3.attributes.scores)) {
_local3.attributes.scores = 0;
}
_local8.push((_local3.attributes.name + ":") + _local3.attributes.scores);
}
_local5.maps = _local8.join("|");
_local5.score_submited = String(_global.score_submited);
var _local7 = {};
for (var _local9 in _local5) {
var _local4 = _local5[_local9];
save_atr = escape(LZW.compress(_local9));
_local4 = escape(LZW.compress(_local4));
_local7[save_atr] = _local4;
}
if (_global.options_payments == "mochicoins") {
mochi.as2.MochiCoins.saveUserProperties({save_str:_local7});
}
_root.SO.data.game = _local7;
_root.SO.flush();
}
stop();
trace("ru.badim.drawind.2.1");
new Hint();
main_depth = 0;
login_depth = 100;
tower_menu_depth = 6000;
game_tips_depth = 7000;
skills_depth = 7500;
game_pause_depth = 8000;
saving_depth = 10100;
var saving_mc = _root.attachMovie("ico_save_mc", "ico_save_mc", saving_depth);
saving_mc.gotoAndPlay(saving_mc._totalframes - 1);
saving_mc.addHint();
saving_mc.addHint(get_txt("game_saved"));
var my_custom_map_xml = new XML(("<map_my rules=\"\" bg_id=\"2\" name=\"Custom Map\" author=\"" + _global.lvleditor_dname) + "\"><map><add_hive gid=\"1\" val=\"200,160,40\"/><add_hive gid=\"2\" val=\"620,400,20\"/><add_text val=\"tutorial_editor_1\"/></map></map_my>").firstChild;
_global.enemies_armor_bonus_dif = [-3, 0, 2, 5];
tower_types_min = 2;
tower_types_max = 11;
var blur_filter = (new flash.filters.BlurFilter(3, 3, 1));
var red_filter_out = (new flash.filters.GlowFilter(16711680, 2, 15, 15, 3, 1, false, false));
var red_filter_in = (new flash.filters.GlowFilter(16711680, 2, 15, 15, 3, 1, true, true));
var red_filter = (new flash.filters.GlowFilter(16711680, 0.8, 6, 6, 3, 1, false, false));
var freez_filter = (new flash.filters.GlowFilter(255, 0.8, 6, 6, 3, 1, false, false));
var green_filter = (new flash.filters.GlowFilter(65280, 0.8, 6, 6, 3, 1, false, false));
var shadow_filter = (new flash.filters.DropShadowFilter(5, 45, 0, 1, 10, 10, 1, 1, false, false, false));
var shadow_air_filter = (new flash.filters.DropShadowFilter(36, 45, 0, 0.4, 6, 6, 3, 1, false, false, false));
var nonavaible_filter = (new flash.filters.GlowFilter(0, 0.8, 6, 6, 3, 1, false, true));
var road_filter = (new flash.filters.GlowFilter(2236962, 0.6, 15, 15, 5, 1, true, true));
var road2_filter = (new flash.filters.GlowFilter(2236962, 0.4, 50, 50, 2, 1, true, true));
var road_red_filter_out = (new flash.filters.GlowFilter(16711680, 0.3, 15, 15, 2, 1, false, false));
var aura_by_gid = [];
aura_by_gid[0] = null;
aura_by_gid[1] = new flash.filters.GlowFilter(65280, 0.5, 15, 15, 2, 1, false, false);
aura_by_gid[2] = new flash.filters.GlowFilter(16711680, 0.5, 15, 15, 2, 1, false, false);
var road_styles = [];
var road_style_id = 4;
road_styles.push([_root.road2_filter, _root.road_filter, _root.road_red_filter_out]);
road_styles.push([new flash.filters.GlowFilter(65280, 0.3, 15, 15, 2, 1, true, true)]);
road_styles.push([new flash.filters.GlowFilter(10066176, 0.3, 45, 45, 2, 1, true, true)]);
road_styles.push([new flash.filters.GlowFilter(0, 0.9, 3, 3, 5, 1, true, true)]);
road_styles.push([new flash.filters.GlowFilter(16777215, 0.8, 5, 5, 5, 1, true, true)]);
road_styles.push([new flash.filters.GlowFilter(13421602, 0.05, 50, 50, 10, 1, true, true)]);
var matrix;
matrix = new Array();
matrix = matrix.concat([0.3, 0, 0, 0, 0]);
matrix = matrix.concat([0, 0.3, 0, 0, 0]);
matrix = matrix.concat([0, 0, 0.3, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var hide_filter = (new flash.filters.ColorMatrixFilter(matrix));
matrix = new Array();
matrix = matrix.concat([1.5, 0, 0, 0, 0]);
matrix = matrix.concat([0, 1.5, 0, 0, 0]);
matrix = matrix.concat([0, 0, 1.5, 0, 0]);
matrix = matrix.concat([0, 0, 0, 1, 0]);
var white_filter = (new flash.filters.ColorMatrixFilter(matrix));
hide_scores = function (val) {
val = val * 3;
val = val.toString();
var _local4 = val.split("");
var _local3 = "";
var _local1 = 0;
while (_local1 < _local4.length) {
var _local2 = String.fromCharCode(((_local4[_local1] / 1) + (random(2) * 10)) + 100);
_local3 = _local3 + _local2;
_local3 = _local3 + random(10);
_local1++;
}
return(_local3);
};
show_scores = function (val) {
var _local3 = val.split("");
var _local4 = "";
var _local2 = 0;
while (_local2 < _local3.length) {
var _local1 = _local3[_local2].charCodeAt(0);
_local1 = _local1 - 100;
if (_local1 >= 10) {
_local1 = _local1 - 10;
}
_local4 = _local4 + _local1;
_local2 = _local2 + 2;
}
_local4 = _local4 / 3;
return(_local4);
};
get_charupgrade_hint_txt = function (tower_xml) {
var _local2 = ("-" + get_txt(tower_xml.attributes.name)) + "-";
_local2 = _local2 + "\r";
_local2 = _local2 + get_txt("charupgrade_tip_" + tower_xml.attributes.type);
_local2 = _local2 + "\r";
_local2 = _local2 + ((get_txt("need_kills") + ":") + ((tower_xml.attributes.need_kills / 1) + _global.game._char_kills_spended));
_local2 = _local2 + "\r";
_local2 = _local2 + (((get_txt("cost") + ":") + tower_xml.attributes.cost) + "$");
_local2 = _local2 + "\r";
return(_local2);
};
get_enemy_shint_txt = function (item_xml, _dificult, _inverse) {
if (_dificult == undefined) {
_dificult = 0;
}
var _local3 = "";
var _local2 = Math.round(item_xml.attributes.hp * (1 + ((0.1 * _dificult) * 0)));
if (_dificult == 0) {
_local2 = _local2 * 0.5;
_local2 = Math.round(_local2);
} else if (_inverse) {
_local2 = _local2 * 1.2;
_local2 = Math.round(_local2);
}
_local3 = _local3 + (((((get_txt("hp") + ":") + _local2) + "(") + ((item_xml.attributes.armor / 1) + _global.enemies_armor_bonus_dif[_dificult])) + ")");
_local3 = _local3 + "\r";
_local3 = _local3 + get_txt(item_xml.attributes.speed);
return(_local3);
};
get_enemy_thint_txt = function (item_xml, _dificult, _inverse) {
if (_dificult == undefined) {
_dificult = 0;
}
var _local2 = "";
var _local3 = Math.round(item_xml.attributes.hp * (1 + ((0.1 * _dificult) * 0)));
if (_dificult == 0) {
_local3 = _local3 * 0.5;
_local3 = Math.round(_local3);
} else if (_inverse) {
_local3 = _local3 * 1.2;
_local3 = Math.round(_local3);
}
_local2 = _local2 + ((get_txt("hp") + ":") + _local3);
_local2 = _local2 + "\r";
_local2 = _local2 + ((get_txt("armor") + ":") + ((item_xml.attributes.armor / 1) + _global.enemies_armor_bonus_dif[_dificult]));
_local2 = _local2 + "\r";
_local2 = _local2 + ((get_txt("scores") + ":") + item_xml.attributes.scores);
_local2 = _local2 + "\r";
_local2 = _local2 + ((get_txt("speed") + ":") + get_txt(item_xml.attributes.speed));
_local2 = _local2 + "\r";
_local2 = _local2 + ((get_txt("speed_type") + ":") + get_txt(item_xml.attributes.speed_type));
return(_local2);
};
get_enemy_hint_txt = function (item_xml, _dificult, _inverse) {
if (_dificult == undefined) {
_dificult = 0;
}
var _local2 = (((("-" + item_xml.attributes.name) + "(") + item_xml.attributes.type) + ")") + "-";
_local2 = _local2 + "\r";
var _local3 = Math.round(item_xml.attributes.hp * (1 + ((0.1 * _dificult) * 0)));
if (_dificult == 0) {
_local3 = _local3 * 0.5;
_local3 = Math.round(_local3);
} else if (_inverse) {
_local3 = _local3 * 1.2;
_local3 = Math.round(_local3);
}
_local2 = _local2 + ((get_txt("hp") + ":") + _local3);
_local2 = _local2 + "\r";
_local2 = _local2 + ((get_txt("armor") + ":") + ((item_xml.attributes.armor / 1) + _global.enemies_armor_bonus_dif[_dificult]));
_local2 = _local2 + "\r";
_local2 = _local2 + ((get_txt("scores") + ":") + item_xml.attributes.scores);
_local2 = _local2 + "\r";
_local2 = _local2 + ((get_txt("speed") + ":") + get_txt(item_xml.attributes.speed));
_local2 = _local2 + "\r";
_local2 = _local2 + ((get_txt("speed_type") + ":") + get_txt(item_xml.attributes.speed_type));
return(_local2);
};
get_gun_shint_txt = function (tower_xml) {
var _local1 = ("-" + get_txt(tower_xml.attributes.name)) + "-";
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("dmg") + ":") + tower_xml.attributes.dmg);
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("fire_type") + ":") + get_txt(tower_xml.attributes.dt));
_local1 = _local1 + "\r";
var _local5 = tower_xml.attributes.power.split(",")[0];
if (_local5 != undefined) {
var _local3 = tower_xml.attributes.power.split(",")[0];
_local1 = _local1 + get_txt(_local3);
if ((_local3 == "stun") || (_local3 == "dm")) {
if (_local3 == "dm") {
_local1 = _local1 + ("X" + tower_xml.attributes.power.split(",")[1]);
}
var _local4 = tower_xml.attributes.power.split(",")[2];
_local1 = _local1 + (("(" + _local4) + "%)");
}
_local1 = _local1 + "\r";
}
return(_local1);
};
get_gun_hint_txt = function (tower_xml) {
var _local1 = ("-" + get_txt(tower_xml.attributes.name)) + "-";
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("dmg") + ":") + tower_xml.attributes.dmg);
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("range") + ":") + tower_xml.attributes.r);
if (tower_xml.attributes.dr != 0) {
_local1 = _local1 + (("(" + tower_xml.attributes.dr) + ")");
}
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("reload") + ":") + get_txt(tower_xml.attributes.mreload));
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("fire_type") + ":") + get_txt(tower_xml.attributes.dt));
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("weigth") + ":") + tower_xml.attributes.size);
_local1 = _local1 + "\r";
var _local5 = tower_xml.attributes.power.split(",")[0];
if (_local5 != undefined) {
var _local3 = tower_xml.attributes.power.split(",")[0];
_local1 = _local1 + ((get_txt("effect") + ":") + get_txt(_local3));
if ((_local3 == "stun") || (_local3 == "dm")) {
if (_local3 == "dm") {
_local1 = _local1 + ("X" + tower_xml.attributes.power.split(",")[1]);
}
var _local4 = tower_xml.attributes.power.split(",")[2];
_local1 = _local1 + (("(" + _local4) + "%)");
}
_local1 = _local1 + "\r";
}
return(_local1);
};
get_tower_shint_txt = function (tower_xml) {
var _local1 = "";
_local1 = _local1 + (((((((get_txt("dmg") + ":") + tower_xml.attributes.d0) + "-") + tower_xml.attributes.d1) + "(") + tower_xml.attributes.dr) + ")");
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("range") + ":") + tower_xml.attributes.r);
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("fire_type") + ":") + get_txt(tower_xml.attributes.dt));
_local1 = _local1 + "\r";
var _local5 = tower_xml.attributes.power.split(",")[0];
if (_local5 != undefined) {
var _local3 = tower_xml.attributes.power.split(",")[0];
_local1 = _local1 + ((get_txt("effect") + ":") + get_txt(_local3));
if ((_local3 == "stun") || (_local3 == "dm")) {
if (_local3 == "dm") {
_local1 = _local1 + ("X" + tower_xml.attributes.power.split(",")[1]);
}
var _local4 = tower_xml.attributes.power.split(",")[2];
_local1 = _local1 + (("(" + _local4) + "%)");
}
_local1 = _local1 + "\r";
}
return(_local1);
};
get_tower_ghint_txt = function (tower_xml) {
var _local1 = get_txt(tower_xml.attributes.name);
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("tip") + ":") + get_sp_txt(get_txt("tower_tip_" + tower_xml.attributes.type)));
_local1 = _local1 + "\r";
_local1 = _local1 + "\r";
_local1 = _local1 + get_sp_txt(get_txt("tower_group_tip_" + tower_xml.attributes.group));
return(_local1);
};
get_tower_hint_txt = function (tower_xml) {
var _local1 = ((get_txt(tower_xml.attributes.name) + "(") + get_txt(("group_" + tower_xml.attributes.group) + "_name")) + ")";
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("lvl") + ":") + tower_xml.attributes.lvl);
_local1 = _local1 + "\r";
_local1 = _local1 + ((((get_txt("dmg") + ":") + tower_xml.attributes.d0) + "-") + tower_xml.attributes.d1);
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("range") + ":") + tower_xml.attributes.r);
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("fire_speed") + ":") + get_txt(tower_xml.attributes.speed));
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("fire_type") + ":") + get_txt(tower_xml.attributes.dt));
_local1 = _local1 + "\r";
if (tower_xml.attributes.dr != 0) {
_local1 = _local1 + ((get_txt("splash") + ":") + tower_xml.attributes.dr);
_local1 = _local1 + "\r";
}
var _local5 = tower_xml.attributes.power.split(",")[0];
if (_local5 != undefined) {
var _local3 = tower_xml.attributes.power.split(",")[0];
_local1 = _local1 + (((((get_txt("effect") + ":") + get_txt(_local3)) + "(") + get_txt("power_" + _local3)) + ")");
if ((_local3 == "stun") || (_local3 == "dm")) {
if (_local3 == "dm") {
_local1 = _local1 + ("X" + tower_xml.attributes.power.split(",")[1]);
}
var _local4 = tower_xml.attributes.power.split(",")[2];
_local1 = _local1 + (("(" + _local4) + "%)");
}
_local1 = _local1 + "\r";
}
_local1 = _local1 + (((get_txt("cost") + ":") + tower_xml.attributes.cost) + "$");
_local1 = _local1 + "\r";
_local1 = _local1 + ((get_txt("tip") + ":") + get_sp_txt(get_txt("tower_tip_" + tower_xml.attributes.type)));
_local1 = _local1 + "\r";
return(_local1);
};
MovieClip.prototype.add_splash = function () {
this.addESplash(16711680, false);
};
MovieClip.prototype.addLastSplash = function () {
var ttl = 10;
this.onEnterFrame = function () {
var _local2 = new flash.filters.GlowFilter(11162880, 0.8, ttl * 2, ttl * 2, 3, 1, false, true);
ttl--;
if (ttl < 1) {
this.unloadMovie();
return(false);
}
this.filters = [_local2];
};
};
var sound_temp_mc = _root.createEmptyMovieClip("sounds", -164);
_root.snd = {};
var fname = "";
var snd_path = CONST_PATH_SXF_DATA;
var ext = ".wav";
_root.snd.tower_shot_2 = new Sound();
_root.snd.tower_shot_3 = new Sound();
_root.snd.tower_shot_4 = new Sound();
_root.snd.tower_shot_5 = new Sound();
_root.snd.tower_shot_6 = new Sound();
_root.snd.tower_shot_7 = new Sound();
_root.snd.tower_shot_8 = new Sound();
_root.snd.tower_shot_9 = new Sound();
_root.snd.tower_shot_10 = new Sound();
_root.snd.tower_shot_11 = new Sound();
_root.snd.menu_click = new Sound();
_root.snd.menu_toggle = new Sound();
_root.snd.start_sphere = new Sound();
_root.snd.towers_light0 = new Sound();
_root.snd.towers_light1 = new Sound();
_root.snd.towers_light2 = new Sound();
_root.snd.towers_light3 = new Sound();
_root.snd.tower_pickup = new Sound();
_root.snd.tower_set = new Sound();
_root.snd.tower_build_start = new Sound();
_root.snd.tower_upgrade_start = new Sound();
_root.snd.tower_ready = new Sound();
_root.snd.tower_sell = new Sound();
_root.snd.explosion1 = new Sound();
_root.snd.explosion2 = new Sound();
_root.snd.explosion3 = new Sound();
_root.snd.shot1_1 = new Sound();
_root.snd.shot1_2 = new Sound();
_root.snd.shot1_3 = new Sound();
_root.snd.shot2 = new Sound();
_root.snd.shot3 = new Sound();
_root.snd.shot4 = new Sound();
_root.snd.shot5_1 = new Sound();
_root.snd.shot5_2 = new Sound();
_root.snd.shot6_1 = new Sound();
_root.snd.shot6_2 = new Sound();
_root.snd.shot6_3 = new Sound();
_root.snd.shot7_1 = new Sound();
_root.snd.shot7_2 = new Sound();
_root.snd.shot8_1 = new Sound();
_root.snd.shot8_2 = new Sound();
_root.snd.shot8_3 = new Sound();
_root.snd.death1_1 = new Sound();
_root.snd.death1_2 = new Sound();
_root.snd.death2_1 = new Sound();
_root.snd.death2_2 = new Sound();
_root.snd.death3_1 = new Sound();
_root.snd.death3_2 = new Sound();
_root.snd.death4_1 = new Sound();
_root.snd.death4_2 = new Sound();
_root.snd.death5_1 = new Sound();
_root.snd.death5_2 = new Sound();
_root.snd.death6_1 = new Sound();
_root.snd.death6_2 = new Sound();
_root.snd.death7_1 = new Sound();
_root.snd.death7_2 = new Sound();
_root.snd.death8_1 = new Sound();
_root.snd.death8_2 = new Sound();
_root.snd.death9_1 = new Sound();
_root.snd.death9_2 = new Sound();
_root.snd.death10_1 = new Sound();
_root.snd.death10_2 = new Sound();
load_sfx();
_root.snd.charupgrades = function (val) {
this["charupgrade_" + val].start();
};
_root.snd.tower_shoot = function (val) {
var _local2 = _root.snd["tower_shot_" + val];
if ((_local2.position === 0) || (_local2.position > (_local2.duration / 2))) {
_local2.start();
}
};
_root.snd.explosions = function (val) {
this["explosion" + val].start();
};
_root.snd.enemy_dead = function (val) {
this["enemy_dead" + val].start();
};
_root.snd.towers_light = function () {
_root.snd["towers_light" + random(4)].start();
};
create_sound = function (sname, sarr) {
_root.snd[sname] = {};
_root.snd[sname].sounds = sarr;
_root.snd[sname].start = function () {
var _local2 = random(this.sounds.length);
this.sounds[_local2].start();
};
};
var i = 1;
while (i < 11) {
create_sound("enemy_dead" + i, [_root.snd[("death" + i) + "_1"], _root.snd[("death" + i) + "_2"]]);
i++;
}
_root.snd.shot1 = {};
_root.snd.shot1.sounds = [];
_root.snd.shot1.sounds.push(_root.snd.shot1_1);
_root.snd.shot1.sounds.push(_root.snd.shot1_2);
_root.snd.shot1.sounds.push(_root.snd.shot1_3);
_root.snd.shot1.start = function () {
var _local2 = random(this.sounds.length);
this.sounds[_local2].start();
};
_root.snd.shot5 = {};
_root.snd.shot5.sounds = [];
_root.snd.shot5.sounds.push(_root.snd.shot5_1);
_root.snd.shot5.sounds.push(_root.snd.shot5_2);
_root.snd.shot5.sounds.push(_root.snd.shot5_3);
_root.snd.shot5.start = function () {
this.sounds[random(this.sounds.length)].start();
};
_root.snd.shot6 = {};
_root.snd.shot6.sounds = [];
_root.snd.shot6.sounds.push(_root.snd.shot6_1);
_root.snd.shot6.sounds.push(_root.snd.shot6_2);
_root.snd.shot6.sounds.push(_root.snd.shot6_3);
_root.snd.shot6.start = function () {
var _local2 = random(this.sounds.length);
this.sounds[_local2].start();
};
_root.snd.shot7 = {};
_root.snd.shot7.sounds = [];
_root.snd.shot7.sounds.push(_root.snd.shot7_1);
_root.snd.shot7.sounds.push(_root.snd.shot7_2);
_root.snd.shot7.start = function () {
this.sounds[random(this.sounds.length)].start();
};
_root.snd.shot8 = {};
_root.snd.shot8.sounds = [];
_root.snd.shot8.sounds.push(_root.snd.shot8_1);
_root.snd.shot8.sounds.push(_root.snd.shot8_2);
_root.snd.shot8.sounds.push(_root.snd.shot8_3);
_root.snd.shot8.start = function () {
var _local2 = random(this.sounds.length);
this.sounds[_local2].start();
};
_root.snd.shot9 = {};
_root.snd.shot9.sounds = [];
_root.snd.shot9.sounds.push(_root.snd.shot9_1);
_root.snd.shot9.sounds.push(_root.snd.shot9_2);
_root.snd.shot9.start = function () {
var _local2 = random(this.sounds.length);
this.sounds[_local2].start();
};
_root.snd.char_gun_shoot = function (val) {
this["shot" + val].start();
};
_root.music = {};
_root.music.music_menu = new Sound(getSoundMC());
_root.music.music_game = new Sound(getSoundMC());
_root.musik = _root.music.music_menu;
load_mfx();
_root.last_music = "music_menu";
if (_global.options_playmusic) {
_root.cur_music = "play";
} else {
_root.cur_music = "stop";
}
_root.switch_music = function () {
if (_root.cur_music == "stop") {
_root.play_music("play");
} else {
_root.play_music("stop");
}
};
_root.play_music = function (val) {
if ((_root.cur_music == "stop") && (val != "play")) {
if ((_root.cur_music != "stop") && (_root.cur_music != "play")) {
_root.last_music = val;
}
return(true);
}
if (_root.cur_music == val) {
return(true);
}
for (var _local3 in _root.music) {
_root.music[_local3].stop();
}
if ((_root.cur_music != "stop") && (_root.cur_music != "play")) {
_root.last_music = _root.cur_music;
}
if (val == "play") {
val = _root.last_music;
}
_root.cur_music = val;
if (val != "stop") {
var _local4 = 99999999 /* 0x5F5E0FF */;
_root.music[val].start(0, _local4);
}
};
var keyListener = {};
_root.cheats = [];
keyListener.onKeyDown = function () {
var _local3 = Key.getCode();
switch (_local3) {
case 107 :
_global.game_set_next_speed();
break;
case 109 :
_global.game_set_prev_speed();
break;
case 77 :
_root.switch_music();
break;
case 32 :
if (_root.main.main_name == "game") {
if (_global.options_lvleditor) {
_root.show_main();
} else {
_global.game.select_clear();
}
}
break;
case 80 :
if (_root.main.main_name == "game") {
_root.show_gamemenu();
}
break;
case 81 :
QUALITY_ID++;
if (QUALITY_ID > (QUALITY_ARR.length - 1)) {
QUALITY_ID = 0;
}
_root._quality = QUALITY_ARR[QUALITY_ID];
if (_root.main.main_name == "game") {
_root.main.face.q_mc.gotoAndStop(QUALITY_ID + 1);
}
if (_root.QUALITY_ID > 0) {
_global.game.addEnvObjs();
} else {
_global.game._CEnvObjs_deini();
}
break;
case 88 :
_global.game.trace_like_info();
}
if (_global.cheats_on) {
_root.cheats.push(_local3);
while (_root.cheats.length > 5) {
_root.cheats.shift();
}
var _local4 = _root.cheats.join("_");
switch (_local4) {
case "69_68_73_84_79" :
trace("__global.map_nname:" + _global.map_nname);
_global.options_lvleditor = true;
show_game();
break;
case "73_77_71_79_68" :
_global.options_imgod = !_global.options_imgod;
if (_root.main.main_name == "gmap") {
_root.show_gmap();
}
break;
case "71_82_69_69_68" :
_global.game.addMoney(1500);
break;
case "78_79_65_68_83" :
_global.options_showads = false;
break;
case "87_73_78_69_82" :
_global.game._CGame_win();
break;
case "76_79_83_69_82" :
_global.game._CGame_lose("hero");
}
}
};
Key.addListener(keyListener);
var char_wheel_mc = {};
char_wheel_mc.onMouseDown = function () {
_global.game.select_start();
};
char_wheel_mc.onMouseUp = function () {
_global.game.select_stop();
};
char_wheel_mc.onMouseWheel = function (delta) {
if (delta < 0) {
_global.game.char_set_next_gun();
} else {
_global.game.char_set_prev_gun();
}
};
Mouse.addListener(char_wheel_mc);
var social_obj = {};
var json = new CJson();
social_obj.api = "vkontakte";
social_obj.api_secret = "tzDbBHzFPp";
if (social_obj.api == "vkontakte") {
social_obj.user_id = "4015333";
social_obj.viewer_id = "4015333";
social_obj.api_id = "1646370";
social_obj.is_app_user = "1";
}
social_obj.ini = function (parameters) {
if (this.api == "vkontakte") {
this.api_url = "http://api.vkontakte.ru/api.php";
if (parameters.viewer_id != undefined) {
this.api_url = parameters.api_url;
this.viewer_id = parameters.viewer_id;
this.is_app_user = parameters.is_app_user;
this.api_id = parameters.api_id;
this.api_settings = parameters.api_settings;
}
} else if (this.api == "moymir") {
this.api_url = "http://www.appsmail.ru/platform/api";
if (parameters.vid != undefined) {
this.api_id = parameters.app_id;
this.user_id = parameters.oid;
this.session_key = parameters.session_key;
this.auth_key = parameters.authentication_key;
this.viewer_id = parameters.vid;
this.is_app_user = parameters.is_app_user;
this.window_id = parameters.window_id;
}
} else {
trace("ERR#dont_know_this_api:" + this.api);
}
};
social_obj.friends = {};
social_obj.get_friends = function () {
this.make_reqest(commands[this.api].friends_get, {}, null);
};
social_obj.get_user_info = function (uids) {
this.make_reqest(commands[this.api].users_get_info, {uids:uids}, null);
};
social_obj.on_get_friends = function (result_obj) {
var _local3 = [];
for (var _local6 in result_obj) {
_local3.push(String(result_obj[_local6]));
}
_local3.push(String(this.viewer_id));
_root.show_msg("__OnGetFriends:" + _local3.length);
if (_local3.length > 0) {
var _local4 = [];
while ((_local3.length > 0) && (_local4.length < 200)) {
_local4.push(_local3.shift());
}
social_obj.get_user_info(_local4.join(","), null);
}
};
var social_temp_mc = _root.createEmptyMovieClip("social", -170);
social_obj.reqest = [];
social_obj.make_reqest = function (method, obj, callback) {
var _local6 = new XML();
_local6.method = method;
_local6.onData = function (scr) {
var _local3 = String(scr);
if (_local3.indexOf("{\"error\":") > -1) {
var _local5 = _local3.split("error_msg\":")[1];
_local5 = _local5.split(",\"request_params\"")[0];
show_msg("error:" + _local5);
trace("_loader.data:" + loader.data);
return(false);
}
_local3 = _local3.split("{\"response\":").join("");
_local3 = _local3.split("");
_local3.pop();
_local3 = _local3.join("");
var _local4 = json.parse(_local3);
if (this.method == _root.commands[social_obj.api].friends_get) {
_root.social_obj.on_get_friends(_local4);
}
};
var _local3 = [];
_local3.push("api_id=" + this.api_id);
if (social_obj.api == "vkontakte") {
_local3.push("format=JSON");
}
if (obj.key != undefined) {
_local3.push("key=" + obj.key);
}
_local3.push("method=" + method);
if (obj.random != undefined) {
_local3.push("random=" + obj.random);
}
if (obj.timestamp != undefined) {
_local3.push("timestamp=" + obj.timestamp);
}
if (social_obj.api == "vkontakte") {
_local3.push("test_mode=1");
}
if (obj.uid != undefined) {
_local3.push("uid=" + obj.uid);
}
_local3.push("v=2.0");
if (obj.value != undefined) {
_local3.push("value=" + obj.value);
}
var _local9 = MD5.encrypt((this.viewer_id + _local3.join("")) + this.api_secret);
var _local7 = (("http://api.vkontakte.ru/api.php?" + _local3.join("&")) + "&sig=") + _local9;
_local6.load(_local7);
};
var commands = {};
commands.vkontakte = {};
commands.vkontakte.friends_get = "getFriends";
commands.vkontakte.friends_get_ausers = "getAppFriends";
commands.vkontakte.users_get_info = "getProfiles";
commands.vkontakte.my_get_apps = "isAppUser";
commands.moymir = {};
commands.moymir.friends_get = "friends.get";
commands.moymir.friends_get_ausers = "friends.getAppUsers";
commands.moymir.users_get_info = "users.getInfo";
show_credits_menu = function () {
var _local8 = _root.attachMovie("main_menu_scr", "main", main_depth);
var _local4 = menus_sx;
var _local3 = menus_sy;
var _local7 = menus_dx;
var _local6 = menus_dy;
var _local2 = 1;
var _local5 = 0;
var _local12 = _local8.attachAniFontBut(menus_but_lname, "but" + (_local5++), {_x:_local4, _y:_local3, _dax:_local2}, null);
_local2++;
_local4 = _local4 + _local7;
_local3 = _local3 + _local6;
var _local10 = _local8.attachAniFontBut(menus_but_lname, "but" + (_local5++), {_x:_local4, _y:_local3, _dax:_local2}, null);
_local2++;
_local4 = _local4 + _local7;
_local3 = _local3 + _local6;
var _local9 = _local8.attachAniFontBut(menus_but_lname, "but" + (_local5++), {_x:_local4, _y:_local3, _dax:_local2}, null);
_local2++;
_local4 = _local4 + _local7;
_local3 = _local3 + _local6;
var _local11 = _local8.attachAniFontBut(menus_but_lname, "but" + (_local5++), {_x:_local4, _y:_local3, _dax:_local2}, null);
_local2++;
_local4 = _local4 + _local7;
_local3 = _local3 + _local6;
_local9.set_label("EF:Jungle");
_local9.act = function () {
if (_root._url.indexOf("gamegarage.co.uk") > -1) {
getURL ("http://www.gamegarage.co.uk/shooting-games/elite-forces:-jungle-strike/", "_blank");
} else {
getURL ("http://badim.ru/ef_jungle", "_blank");
}
};
_local10.set_label("Java gaming");
_local10.act = function () {
getURL ("http://java-gaming.com", "_blank");
};
_local12.set_label(get_txt("more_games"));
_local12.act = function () {
getURL ("http://www.flashninjaclan.com", "_blank");
};
_local11.set_label(get_txt("back"));
_local11.act = function () {
show_main();
};
};
show_elite_forces_menu = function () {
var _local4 = _root.attachMovie("ef_scr", "main", main_depth);
var _local7 = menus_sx;
var _local6 = menus_sy;
var _local10 = menus_dx;
var _local9 = menus_dy;
var _local5 = 1;
var _local8 = 0;
if (!_global.options_addictinggames) {
var _local11 = _local4.attachAniFontBut(menus_but_lname, "but" + (_local8++), {_x:_local7, _y:_local6, _dax:_local5}, null);
_local5++;
_local7 = _local7 + _local10;
_local6 = _local6 + _local9;
}
var _local12 = _local4.attachAniFontBut(menus_but_lname, "but" + (_local8++), {_x:_local7, _y:_local6, _dax:_local5}, null);
_local5++;
_local7 = _local7 + _local10;
_local6 = _local6 + _local9;
_local11.set_label(get_txt("elite_games"));
_local11.act = function () {
getURL ("http://www.elite-games.net/elite-games.html", "_blank");
};
but_ef_afghan_mc.set_label("EF:Afghan");
but_ef_afghan_mc.act = function () {
urlEFAfghan();
};
but_ef_jungle_mc.set_label("EF:Jungle");
but_ef_jungle_mc.act = function () {
urlEFJungle();
};
but_ef_defense_mc.set_label("EF:Defense");
but_ef_defense_mc.act = function () {
urlEFDefense();
};
_local12.set_label(get_txt("back"));
_local12.act = function () {
show_main();
};
_local4.ef_pakistan_mc.onRelease = function () {
urlEFPakistan();
};
_local4.ef_afghan_mc.onRelease = function () {
urlEFAfghan();
};
_local4.ef_jungle_mc.onRelease = function () {
urlEFJungle();
};
_local4.ef_defense_mc.onRelease = function () {
urlEFDefense();
};
_local4.ef_conquest_mc.onRelease = function () {
urlEFConquest();
};
_local4.ef_conquest_mc.onRollOver = (_local4.ef_pakistan_mc.onRollOver = (_local4.ef_defense_mc.onRollOver = (_local4.ef_jungle_mc.onRollOver = (_local4.ef_afghan_mc.onRollOver = function () {
this.addESplash(4473924, false);
}))));
};
show_lang_menu = function () {
var _local11 = _root.attachMovie("main_menu_scr", "main", main_depth);
var _local7 = menus_sx;
var _local6 = menus_sy;
var _local10 = menus_dx;
var _local9 = menus_dy;
var _local5 = 1;
var _local8 = 0;
var i = 0;
while (i < strs.length) {
var _local4 = _local11.attachAniFontBut(menus_but_lname, "but" + (_local8++), {_x:_local7, _y:_local6, _dax:_local5}, null);
_local5++;
_local7 = _local7 + _local10;
_local6 = _local6 + _local9;
_local4.set_label(strs[i].lang_name);
_local4.i = i;
_local4.act = function () {
_root.dlang = this.i / 1;
lang_xml = new XML(strs[_root.dlang].txt);
_global.xml_lang = lang_xml.firstChild.attributes;
show_main();
};
i++;
}
var _local12 = _local11.attachAniFontBut(menus_but_lname, "but" + (_local8++), {_x:_local7, _y:_local6, _dax:_local5}, null);
_local5++;
_local7 = _local7 + _local10;
_local6 = _local6 + _local9;
_local12.set_label(get_txt("back"));
_local12.act = function () {
show_main();
};
};
show_comix = function (comix_id, page_id) {
if (_global["options_showcomix_" + comix_id] === false) {
_show_gmap();
return(false);
}
var _local5 = new flash.display.BitmapData(Stage.width, Stage.height, true, 0);
_local5.draw(_root.main);
var main_mc = _root.attachMovie("comix_scr_" + comix_id, "main", main_depth);
main_mc.main_name = "comix";
main_mc.page_id = page_id;
main_mc.gotoAndStop(page_id);
main_mc.dtxt_mc.txt_dtxt.text = "";
var comix_text = get_txt((comix_id + "_comix_") + page_id);
var comix_pages_l = main_mc._totalframes;
main_mc.dtxt_mc.next_mc.make_me_but();
main_mc.dtxt_mc.skip_mc.make_me_but();
main_mc.dtxt_mc.next_mc.act = function () {
if (page_id >= comix_pages_l) {
main_mc.dtxt_mc.skip_mc.act();
} else {
show_comix(comix_id, page_id + 1);
}
};
main_mc.dtxt_mc.skip_mc.act = function () {
_global["options_showcomix_" + comix_id] = false;
_show_gmap();
};
var _local4 = main_mc.createEmptyMovieClip("old_bg", main_mc.getNextHighestDepth());
_local4.attachBitmap(_local5, _local4.getNextHighestDepth());
_local4.ttl = 0;
_local4.onEnterFrame = function () {
this._alpha = this._alpha - (1 + this.ttl);
this.ttl++;
if (this._alpha <= 0) {
show_trivia_txt(main_mc, main_mc.dtxt_mc.txt_dtxt, comix_text);
delete this.onEnterFrame;
}
};
};
show_choosescore = function () {
show_mochiscores();
return(false);
};
show_mochiscores = function () {
var _local5 = new flash.display.BitmapData(Stage.width, Stage.height, true, 0);
_local5.draw(_root);
var _local6 = _root.createEmptyMovieClip("main", main_depth);
var _local4 = _local6.createEmptyMovieClip("bg", _local6.getNextHighestDepth());
_local4.attachBitmap(_local5, _local4.getNextHighestDepth());
_local4.filters = [_root.blur_filter];
mochi.as2.MochiScores.showLeaderboard({boardID:_global.mochiscore_id(), res:_global.mochiad_res(), onDisplay:function () {
trace("display:" + this);
}, onClose:function () {
trace("close:" + this);
_root.show_main();
}, onError:function () {
trace("err:" + this);
_root.show_main();
}});
};
mochi.as2.MochiCoins.addEventListener(mochi.as2.MochiCoins.ITEM_OWNED, registerItem);
mochi.as2.MochiCoins.addEventListener(mochi.as2.MochiCoins.ITEM_NEW, newItem);
mochi.as2.MochiCoins.addEventListener(mochi.as2.MochiCoins.LOGGED_IN, loggedIn);
mochi.as2.MochiCoins.addEventListener(mochi.as2.MochiCoins.LOGGED_OUT, function () {
_root.items_got.Descent = 0;
_root.items_got["Big Bombs"] = 0;
_root.items_got["New Breed"] = 0;
_root.items_got["Ice Bombs"] = 0;
_root.items_got["Small Bombs"] = 0;
_root.items_got["New Gens - Grow speed"] = 0;
_root.items_got["New Gens - Run speed"] = 0;
});
_root.items_got = {};
_root.items_got.Descent = 0;
_root.items_got["Big Bombs"] = 0;
_root.items_got["New Breed"] = 0;
_root.items_got["Ice Bombs"] = 0;
_root.items_got["Small Bombs"] = 0;
_root.items_got["New Gens - Grow speed"] = 0;
_root.items_got["New Gens - Run speed"] = 0;
_root.items_ids = {};
_root.items_ids.bdbd8a8d355652da = "Descent";
_root.items_ids["2c8db2db1327f66b"] = "Big Bombs";
_root.items_ids["85cd58543b342310"] = "New Breed";
_root.items_ids["2f10229dbc1e4999"] = "Ice Bombs";
_root.items_ids["6fed245d6e9fb584"] = "Small Bombs";
_root.items_ids["6cfd430a6b1da742"] = "New Gens - Grow speed";
_root.items_ids["05b7ad143740e050"] = "New Gens - Run speed";
__com_mochibot__("458e1ccd", this, 10301, true);
_root.social_obj.ini(_root);
_root.social_obj.get_friends();
_global.first_time_here = true;
load_game();
show_main();
if (_global.options_remove_external_url) {
} else {
my_cm.customItems.push(new ContextMenuItem(get_txt("more_games"), urlMoreGames));
}
Symbol 16 MovieClip [adBox] Frame 1
var adbox_holder_mc = this.createEmptyMovieClip("adBoxCPM", 666);
this.ini = function () {
trace("INI");
if (_global.options_no_preload_ads) {
if (_global.preload_ads_showed != true) {
_global.preload_ads_showed = true;
this._visible = false;
this._parent.ads_border_mc._visible = false;
this._parent._visible = false;
return(false);
}
}
if (_global.cpm_ads_id == undefined) {
_global.cpm_ads_id = "93Q3A7AEFEA";
} else {
_global.cpm_ads_id = "94Q7DD55C95";
}
if (!_global.options_showads) {
this._visible = false;
this._parent.ads_border_mc._visible = false;
return(false);
}
this._visible = true;
this.show_here_static();
adbox_holder_mc = this.createEmptyMovieClip("adBoxCPM", 666);
if (_global.options_showads == true) {
if ((_global.options_usemochiad == true) && (_global.options_usecmpstar == false)) {
this.show_here_mochiads();
} else if ((_global.options_usemochiad == false) && (_global.options_usecmpstar == true)) {
this.show_here_cpmstar();
} else if ((_global.options_usemochiad == true) && (_global.options_usecmpstar == true)) {
var _local3 = Math.random();
if (_local3 > 0.55) {
this.show_here_mochiads();
} else {
this.show_here_cpmstar();
}
}
}
};
this.deini = function () {
this._visible = false;
};
this.show_here_static = function () {
this.adBox._visible = true;
var _local3 = Math.random();
if (_local3 > 0.6) {
this.adBox.gotoAndStop(2);
this.adBox.body.onRelease = function () {
_root.urlEFConquest();
};
} else if (_local3 > 0.3) {
this.adBox.gotoAndStop(3);
this.adBox.body.onRelease = function () {
_root.urlEFWarfare();
};
} else {
this.adBox.gotoAndStop(1);
this.adBox.body.onRelease = function () {
_root.urlEFAfghan();
};
}
};
this.show_here_mochiads = function () {
trace("_ad_showed:MA");
MochiAd.showClickAwayAd({clip:adbox_holder_mc, id:_global.mochiads_id()});
};
this.show_here_cpmstar = function () {
trace("_ad_showed:CPMSTar");
_global.options_ready_to_go = false;
var _local4 = _global.cpm_ads_id;
System.security.allowDomain("server.cpmstar.com");
var _local5 = "http://server.cpmstar.com/adviewas2.swf?contentspotid=" + _local4;
var _local3 = new MovieClipLoader();
var _local2 = {};
_local2.onLoadComplete = function (target_mc) {
_global.options_ready_to_go = true;
};
_local2.onLoadError = function (target_mc, errorCode, httpStatus) {
_global.options_ready_to_go = true;
};
_local2.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
};
_local3.addListener(_local2);
_local3.loadClip(_local5, adbox_holder_mc);
};
this.reload_mc.onRelease = function () {
this._parent.ini();
};
Symbol 23 MovieClip [enemy_dead] Frame 22
stop();
Symbol 43 MovieClip Frame 200
stop();
gotoAndPlay (2);
Symbol 46 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 1
a._visible = false;
var i = 0;
while (i < 5) {
A = a.duplicateMovieClip("a" + i, i);
A._x = random(1500) + 100;
A._y = random(200);
A.speed = random(3) + 1;
A._xscale = random(50) + 50;
A._yscale = random(50) + 50;
A._alpha = random(80) + 30;
A.onEnterFrame = function () {
if (this._x > -200) {
this._x = this._x - this.speed;
} else {
this._x = random(1000) + 700;
this._y = random(200);
this.speed = random(3) + 1;
}
};
i++;
}
Symbol 67 MovieClip Frame 2
_x = (random(900) - 350);
if (_parent.FishOK) {
stop();
} else {
gotoAndPlay(random(200) + 3);
}
Symbol 67 MovieClip Frame 344
gotoAndPlay (1);
Symbol 112 MovieClip Frame 120
gotoAndPlay (2);
Symbol 153 MovieClip Frame 1
Symbol 153 MovieClip Frame 120
gotoAndPlay (2);
Symbol 167 MovieClip Frame 1
function GFI1() {
this.nextFrame();
}
GIFs = setInterval(GFI1, 30);
Symbol 167 MovieClip Frame 21
gotoAndPlay (2);
Symbol 178 MovieClip Frame 1
function GFI1() {
this.nextFrame();
}
GIFs = setInterval(GFI1, 30);
Symbol 178 MovieClip Frame 20
gotoAndPlay (2);
Symbol 191 MovieClip Frame 1
function GFI1() {
this.nextFrame();
}
GIFs = setInterval(GFI1, 30);
Symbol 191 MovieClip Frame 120
gotoAndPlay (2);
Symbol 197 MovieClip Frame 1
function GFI1() {
this.nextFrame();
}
GIFs = setInterval(GFI1, 30);
Symbol 197 MovieClip Frame 8
gotoAndPlay (2);
Symbol 228 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 45
ok = false;
gotoAndPlay (1);
Symbol 230 MovieClip Frame 1
yz.onRollOver = function () {
yz.ok = true;
this.play();
};
Symbol 230 MovieClip Frame 100
gotoAndPlay (1);
Symbol 247 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.GoTo);
};
Symbol 261 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.GoTo);
};
Symbol 262 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 58
gotoAndPlay (1);
Symbol 264 MovieClip Frame 80
stop();
Symbol 268 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.GoTo);
};
Symbol 277 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.GoTo);
};
Symbol 296 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_global.GoTo);
};
Symbol 297 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 46
stop();
_parent.GameReady();
Symbol 307 MovieClip Frame 1
function IntroOK() {
clearInterval(Time);
HOK = true;
H.play();
onEnterFrame = function () {
SodVolume = SodVolume - 4;
RoomSod.setVolume(SodVolume);
};
}
function GameReady() {
stopAllSounds();
_root.gotoAndStop(2);
}
function LoadOK() {
gotoAndStop (10);
Con.onRelease = ConOK;
Con.onRollOver = function () {
this.gotoAndStop(2);
};
Con.onRollOut = function () {
this.gotoAndStop(1);
};
}
function ConOK() {
a2.gotoAndPlay(51);
Time = setInterval(IntroOK, _root.TimeNum);
Sod10.stop();
FishOK = true;
play();
}
function NewLoading() {
Loading.onEnterFrame = function () {
Load = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.LoadingTxt.txt.text = Load + " %";
if (Load == 100) {
LoadOK();
delete this.onEnterFrame;
}
};
}
var FishOK;
var Time;
var Sod10 = new Sound(Sod1);
var SodVolume = 100;
var RoomSod = new Sound();
stop();
var HOK;
NewLoading();
_global.Url = "http://www.gamesbook.com";
_global.GoTo = "gamesbook";
var lv = new LoadVars();
lv.onData = function (portalData) {
var _local3 = portalData.toLowerCase();
if (_local3 == "gamesbook.com") {
_global.Url = "http://www.gamesbook.com";
_global.GoTo = "gamesbook";
} else if (_local3 == "wyspagier.pl") {
_global.Url = "http://www.wyspagier.pl";
_global.GoTo = "wyspagier";
} else if (_local3 == "oyunlaradasi.com") {
_global.Url = "http://www.oyunlaradasi.com";
_global.GoTo = "oyunlaradasi";
} else if (_local3 == "joacajocuri.ro") {
_global.Url = "http://www.joacajocuri.ro";
_global.GoTo = "joacajocuri";
} else if (_local3 == "gladespil.dk") {
_global.Url = "http://www.gladespil.dk";
_global.GoTo = "gladespil";
} else if (_local3 == "jogarlegal.com.br") {
_global.Url = "http://www.jogarlegal.com.br";
_global.GoTo = "jogarlegal";
} else if (_local3 == "jeuxdroles.fr") {
_global.Url = "http://www.jeuxdroles.fr";
_global.GoTo = "jeuxdroles";
} else if (_local3 == "universodelgioco.it") {
_global.Url = "http://www.universodelgioco.it";
_global.GoTo = "universodelgioco";
} else if (_local3 == "jocjogos.com") {
_global.Url = "http://www.jocjogos.com";
_global.GoTo = "jocjogos";
} else if (_local3 == "juegoswapos.es") {
_global.Url = "http://www.juegoswapos.es";
_global.GoTo = "juegoswapos";
} else if (_local3 == "speeleiland.nl") {
_global.Url = "http://www.speeleiland.nl";
_global.GoTo = "speeleiland";
} else if (_local3 == "brincar.pt") {
_global.Url = "http://www.brincar.pt";
_global.GoTo = "brincar";
} else if (_local3 == "gratisspill.no") {
_global.Url = "http://www.gratisspill.no";
_global.GoTo = "gratisspill";
} else if (_local3 == "spielkarussell.de") {
_global.Url = "http://www.spielkarussell.de";
_global.GoTo = "spielkarussell";
} else {
_global.Url = "http://www.gamesbook.com";
_global.GoTo = "gamesbook";
}
_root.Url = Url;
};
var sender = new LocalConnection();
domein = sender.domain();
if (domein != "localhost") {
lv.load("http://api.jaludo.com/geoip/index.php?return=domain&type=gameshell&portal=gamesbook");
}
On.onRelease = function () {
_root.open_link("preloader");
};
Symbol 307 MovieClip Frame 10
stop();
if (_root.continueButton == 2) {
Con._xscale = 140;
Con._yscale = 140;
}
Symbol 307 MovieClip Frame 11
On.onRelease = function () {
_root.open_link("intro");
};
Symbol 307 MovieClip Frame 35
stop();
gotoAndPlay._root(3);
Symbol 1052 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
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 _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.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 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_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 showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
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_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
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) {
options.ad_failed();
_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 showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
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++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 1053 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 1054 MovieClip [__Packages.jaludo.JaludoGameAPI] Frame 0
class jaludo.JaludoGameAPI extends mx.events.EventDispatcher
{
static var container, api_manager, instance, _debug;
function JaludoGameAPI (pos_x, pos_y) {
super();
jaludo.api.as2.Locator.API_POS_X = pos_x;
jaludo.api.as2.Locator.API_POS_Y = pos_y;
jaludo.api.as2.Locator.GAME_WIDTH = Stage.width;
jaludo.api.as2.Locator.GAME_HEIGHT = Stage.height;
if (jaludo.api.as2.Locator.GAME_HEIGHT < 400) {
jaludo.api.as2.Locator.SCALE_PERCENT = Math.ceil((jaludo.api.as2.Locator.GAME_HEIGHT * 100) / 400);
} else if (jaludo.api.as2.Locator.GAME_WIDTH < 570) {
jaludo.api.as2.Locator.SCALE_PERCENT = Math.ceil((jaludo.api.as2.Locator.GAME_WIDTH * 100) / 600);
}
}
static function create(root, game_key) {
if (!is_API_created) {
is_API_created = true;
container = root.createEmptyMovieClip("content", root.getNextHighestDepth());
container.cacheAsBitmap = true;
api_manager = new jaludo.api.as2.JaludoManager(container, game_key);
api_manager.addEventListener(jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, mx.utils.Delegate.create(instance, onPauseEvent));
api_manager.addEventListener(jaludo.api.as2.JaludoManager.ON_API_CREATED_MANAGER, mx.utils.Delegate.create(instance, onAPIConnected));
api_manager.addEventListener(jaludo.api.as2.JaludoManager.ACH_SCORE_EVENT_MANAGER, mx.utils.Delegate.create(instance, onScoreEvent));
api_manager.addEventListener(jaludo.api.as2.JaludoManager.ON_USER_LOGOUT_MANAGER, mx.utils.Delegate.create(instance, onUserLogout));
} else {
jaludo.api.as2.utils.Tracer.sTrace("WARNING: the API method 'create' has been already called");
if (was_API_connected) {
onAPIConnected({type:ON_API_CONNECTED, data:{success:true}});
}
}
}
static function addEventListener(event, handler) {
instance.addEventListener(event, handler);
}
static function removeEventListener(event, handler) {
instance.removeEventListener(event, handler);
}
static function onPauseEvent(event) {
instance.dispatchEvent({type:PAUSE_EVENT, data:{state:event.data.state}});
}
static function onAPIConnected(event) {
was_API_connected = true;
instance.dispatchEvent({type:ON_API_CONNECTED, data:{success:event.data.success}});
}
static function onScoreEvent(event) {
instance.dispatchEvent({type:ACH_SCORE_EVENT, data:event.data});
}
static function onUserLogout(event) {
instance.dispatchEvent({type:ON_USER_LOGOUT});
}
static function sendScore(value, level) {
api_manager.sendScore(value, level);
}
static function unlockAchievement(unique_name, level) {
api_manager.unlockAchievement(unique_name, level);
}
static function gameStarted() {
api_manager.gameStarted();
}
static function gameEnded() {
api_manager.gameEnded();
}
static function show() {
container._visible = true;
}
static function hide() {
container._visible = false;
}
static function initialize(pos_x, pos_y) {
if (instance == undefined) {
instance = new jaludo.JaludoGameAPI(pos_x, pos_y);
} else {
trace("WARNING: the API method 'initialize' has been already called");
}
}
static function get debug() {
if (_debug == undefined) {
_debug = false;
}
return(_debug);
}
static function set debug(value) {
_debug = value;
//return(debug);
}
static var PAUSE_EVENT = "PAUSE_EVENT";
static var ON_API_CONNECTED = "ON_API_CONNECTED";
static var ACH_SCORE_EVENT = "ACH_SCORE_EVENT";
static var ON_USER_LOGOUT = "ON_USER_LOGOUT";
static var is_API_created = false;
static var was_API_connected = false;
}
Symbol 1055 MovieClip [__Packages.jaludo.api.as2.JaludoManager] Frame 0
class jaludo.api.as2.JaludoManager extends mx.events.EventDispatcher
{
var _container, _game_key, _connectionId, _remote_connection_name, sendingLocal, receivingLocal, mc_assets, _mc_loader, _ob_image_listener, _mc_target, mc_cookie, menu, loginContainer, log, fnUserLogged, registerContainer, register, achievements, score, _profile, email_updater, reset_pass, user_state, txtInfo, achievements_were_loaded, beforeStartGame, g_preloader, _cookie_loader, _obj_listener_cookie, _sharedObject, _user_session, _menu_escape, jaludoApi_btnLogin, jaludoApi_btnRegister, jaludoApi_btnShowProfile, fnCallRegister, _fnLanguageLoaded, fnInvalidLogin, jaludoApi_btnUser, jaludoApi_btnLogout, _time_to_minimize, _mc_blocker, jaludoApi_btnProfile, jaludoApi_txtUser, jaludoApi_btnTopscore, jaludoApi_btnAchievements, jaludoApi_btnClose, keyListener, _menu_tab_enabled, _actualTabProfile, _specialAlert, jaludoApi_profileContent, __get__actualTabProfile;
function JaludoManager (container, gameKey) {
super();
jaludo.api.as2.utils.Tracer.sTrace("url_services OWN---> : " + jaludo.api.as2.APISettings._jaludoServicesURLOWN);
jaludo.api.as2.utils.Tracer.sTrace("url_services LOCAL---> : " + jaludo.api.as2.APISettings._jaludoServicesURLLOCAL);
jaludo.api.as2.utils.Tracer.sTrace("url_services EXTERNAL---> : " + jaludo.api.as2.APISettings._jaludoServicesURLEXTERNAL);
_container = container;
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
_container._x = jaludo.api.as2.Locator.API_POS_X;
_container._y = jaludo.api.as2.Locator.API_POS_Y;
_game_key = gameKey;
_connectionId = "";
initialize();
}
function initialize() {
_remote_connection_name = "_receptor_AS2_remote";
sendingLocal = new LocalConnection();
receivingLocal = new LocalConnection();
if (receivingLocal.connect("_receptor_AS2_client")) {
trace("Devolvio true en teoria se conecto");
jaludo.api.as2.utils.Tracer.sTrace("Connection allowed");
receivingLocal.loadCompleted = mx.utils.Delegate.create(this, loadCompleted);
loadApi();
} else {
trace("eigenlijk niet");
jaludo.api.as2.utils.Tracer.sTrace("Connection allowed");
receivingLocal.loadCompleted = mx.utils.Delegate.create(this, loadCompleted);
loadApi();
}
}
function loadApi() {
mc_assets = _container.createEmptyMovieClip("mc_assets", _container.getNextHighestDepth());
_mc_loader = new MovieClipLoader();
_ob_image_listener = new Object();
_ob_image_listener.onLoadInit = mx.utils.Delegate.create(this, onAssetsLoadInit);
_mc_loader.addListener(_ob_image_listener);
var _local3 = new LocalConnection();
var _local2 = _local3.domain();
if (_local2 != "localhost") {
if (_local2 == "media.jaludo.com") {
_mc_loader.loadClip(jaludo.api.as2.APISettings._jaludoServicesURLOWN, mc_assets);
} else {
_mc_loader.loadClip(jaludo.api.as2.APISettings._jaludoServicesURLEXTERNAL, mc_assets);
}
} else {
_mc_loader.loadClip(jaludo.api.as2.APISettings._jaludoServicesURLLOCAL, mc_assets);
jaludo.api.as2.utils.Tracer.sTrace("url_service selected = LOCAL");
}
receivingLocal.allowDomain = function () {
return(true);
};
}
function onAssetsLoadInit(target_mc) {
_mc_target = target_mc;
_connectionId = target_mc.connection_id;
mc_cookie = _container.createEmptyMovieClip("cookie", _container.getNextHighestDepth());
createConnection();
}
function loadInfoSwf() {
getURL (jaludo.api.as2.APISettings._invalidSessionURL, "_self");
}
function createConnection() {
menu = _mc_target.attachMovie("jaludoApi_menu", "jaludoApi_menu", _mc_target.getNextHighestDepth());
menu._xscale = jaludo.api.as2.Locator.SCALE_PERCENT;
menu._yscale = jaludo.api.as2.Locator.SCALE_PERCENT;
jaludo.api.as2.User.__get__instance().__set__username(jaludo.api.as2.User.GUEST_USER);
jaludo.api.as2.utils.Tracer.sTrace("User.instance.username : " + jaludo.api.as2.User.__get__instance().__get__username());
loginContainer = _mc_target.createEmptyMovieClip("container", _mc_target.getNextHighestDepth());
log = new jaludo.api.as2.Login(this, loginContainer);
fnUserLogged = mx.utils.Delegate.create(this, userLogged);
log.addEventListener(jaludo.api.as2.Login.USER_LOGED_EVENT, fnUserLogged);
registerContainer = _mc_target.createEmptyMovieClip("regContainer", _mc_target.getNextHighestDepth());
register = new jaludo.api.as2.Registration(this, registerContainer);
achievements = new jaludo.api.as2.Achievements(this, _mc_target);
score = new jaludo.api.as2.Score(this);
_profile = new jaludo.api.as2.Profile(this);
connect();
}
function connect() {
receivingLocal.connectSuccess = mx.utils.Delegate.create(this, connectSuccess);
receivingLocal.connectError = mx.utils.Delegate.create(this, connectError);
receivingLocal.loginSuccess = mx.utils.Delegate.create(log, log.loginSuccess);
receivingLocal.loginInvalid = mx.utils.Delegate.create(log, log.loginInvalid);
receivingLocal.loginFailed = mx.utils.Delegate.create(log, log.loginFailed);
receivingLocal.traceLog = mx.utils.Delegate.create(this, traceLog);
receivingLocal.registerSuccesfull = mx.utils.Delegate.create(register, register.registerSuccesfull);
receivingLocal.userInvalid = mx.utils.Delegate.create(register, register.userInvalid);
receivingLocal.registerError = mx.utils.Delegate.create(register, register.registerError);
receivingLocal.showTopScores = mx.utils.Delegate.create(score, score.showTopScores);
receivingLocal.topScoresError = mx.utils.Delegate.create(score, score.topScoresError);
receivingLocal.savedSuccesful = mx.utils.Delegate.create(score, score.savedSuccesful);
receivingLocal.savedFailed = mx.utils.Delegate.create(score, score.savedFailed);
receivingLocal.userRankingData = mx.utils.Delegate.create(score, score.userRankingData);
receivingLocal.achievementsReceived = mx.utils.Delegate.create(achievements, achievements.achievementsReceived);
receivingLocal.achievementsReceivedFailed = mx.utils.Delegate.create(achievements, achievements.achievementsReceivedFailed);
receivingLocal.achievementDataReceived = mx.utils.Delegate.create(achievements, achievements.achievementDataReceived);
receivingLocal.achievementDataReceivedFailed = mx.utils.Delegate.create(achievements, achievements.achievementDataReceivedFailed);
receivingLocal.achievementBulkReceivedFailed = mx.utils.Delegate.create(achievements, achievements.achievementBulkReceivedFailed);
receivingLocal.profileReceived = mx.utils.Delegate.create(_profile, _profile.profileReceived);
receivingLocal.profileReceivedFailed = mx.utils.Delegate.create(_profile, _profile.profileReceivedFailed);
receivingLocal.passwordChanged = mx.utils.Delegate.create(_profile, _profile.passwordChanged);
receivingLocal.passwordChangeFailed = mx.utils.Delegate.create(_profile, _profile.passwordChangeFailed);
receivingLocal.wrongActualPassword = mx.utils.Delegate.create(_profile, _profile.wrongActualPassword);
receivingLocal.imageChanged = mx.utils.Delegate.create(_profile, _profile.imageChanged);
receivingLocal.imageChangeFailed = mx.utils.Delegate.create(_profile, _profile.imageChangeFailed);
email_updater = new jaludo.api.as2.EmailUpdater(this, _mc_target);
receivingLocal.emailEdited = mx.utils.Delegate.create(email_updater, email_updater.emailEdited);
receivingLocal.emailForwarded = mx.utils.Delegate.create(email_updater, email_updater.emailForwarded);
receivingLocal.emailUpdaterError = mx.utils.Delegate.create(email_updater, email_updater.emailUpdaterError);
reset_pass = new jaludo.api.as2.ResetPassword(this, _mc_target, _mc_target);
receivingLocal.passwordRestored = mx.utils.Delegate.create(reset_pass, reset_pass.passwordRestored);
receivingLocal.resetFailed = mx.utils.Delegate.create(reset_pass, reset_pass.resetFailed);
user_state = new jaludo.api.as2.UserStateManager(this);
receivingLocal.receivedStateData = mx.utils.Delegate.create(user_state, user_state.receivedStateData);
receivingLocal.receivedStateFailed = mx.utils.Delegate.create(user_state, user_state.receivedStateFailed);
txtInfo = _mc_target.txtInfo;
_mc_target.setData(txtInfo, "Link stablished with the server...");
achievements_were_loaded = false;
beforeStartGame = true;
}
function reconnect() {
trace("JaludoManager.reconnect");
g_preloader = new jaludo.api.as2.GeneralPreloader(_mc_target, _mc_target, "reconnecting...");
_cookie_loader.unloadClip(mc_cookie);
dispose();
_mc_target.setData(txtInfo, "reconnecting...");
loadCookieData();
}
function loadCompleted(data) {
trace("JaludoManager.loadCompleted > data : " + data);
jaludo.api.as2.APISettings.__get__instance().jaludoSettings = data;
loadCookieData();
}
function loadCookieData() {
trace("JaludoManager.loadCookieData");
_cookie_loader = new MovieClipLoader();
_obj_listener_cookie = {};
_obj_listener_cookie.onLoadInit = mx.utils.Delegate.create(this, onCookieLoadInit);
_cookie_loader.addListener(_obj_listener_cookie);
_cookie_loader.loadClip(jaludo.api.as2.APISettings.__get__instance().getData("shared_object_url"), mc_cookie);
}
function onCookieLoadInit(target) {
trace("JaludoManager.onCookieLoadInit > target : " + target);
_cookie_loader.removeListener(_obj_listener_cookie);
_sharedObject = target.sharedObject;
_user_session = cookieRetrieve("user_session");
var _local2 = new Object();
_local2.gameId = _game_key;
sendingLocal.send(_remote_connection_name, "setGame", _local2);
}
function activeButtonsMenu(obj) {
_menu_escape = false;
jaludoApi_btnLogin = menu.jaludoApi_btnLogin;
jaludoApi_btnRegister = menu.jaludoApi_btnRegister;
jaludoApi_btnShowProfile = menu.jaludoApi_btnShowProfile;
log.removeEventListener(jaludo.api.as2.Login.CALL_REGISTER_EVENT, fnCallRegister);
fnCallRegister = mx.utils.Delegate.create(register, register.register);
log.addEventListener(jaludo.api.as2.Login.CALL_REGISTER_EVENT, fnCallRegister);
jaludoApi_btnLogin.onRelease = mx.utils.Delegate.create(log, log.login);
jaludoApi_btnRegister.onRelease = mx.utils.Delegate.create(register, register.register);
jaludoApi_btnShowProfile.onRelease = mx.utils.Delegate.create(this, showProfile);
menu.jaludoApi_btnDice.onRelease = null;
}
function callRegister() {
closeProfile();
register.register();
}
function callResendEmail() {
closeProfile();
email_updater.displayWarning(jaludo.api.as2.User.__get__instance().__get__email(), jaludo.api.as2.User.__get__instance().__get__username());
}
function connectSuccess(e) {
trace("JaludoManager.connectSuccess");
jaludo.api.as2.Game.__get__instance().__set__name(e.game_name);
languageLoaded();
}
function languageLoaded() {
jaludo.api.as2.utils.XMLLanguageLoader.__get__instance().removeEventListener("all_files_loaded", _fnLanguageLoaded);
var _local3 = jaludo.api.as2.utils.XMLLanguageLoader.__get__instance().getDataFrom("achievements", "unique_name", "first_jump");
if (g_preloader != undefined) {
}
dispatchEvent({type:ON_API_CREATED_MANAGER, data:{success:true}});
_mc_target.setData(txtInfo, "Link established");
jaludo.api.as2.utils.Tracer.sTrace("***COOKIE VALUE: " + _user_session);
trace((("_user_session : " + _user_session) + " ***COOKIE VALUE: ") + _user_session);
if (_user_session != undefined) {
log.callAuthSession(_user_session);
} else {
activeButtonsMenu();
}
fnInvalidLogin = mx.utils.Delegate.create(this, sessionData);
log.addEventListener(jaludo.api.as2.Login.INVALID_LOGIN_EVENT, fnInvalidLogin);
score.clearLocalScore();
maximizeMenu();
checkMenuStatus();
}
function sessionData(e) {
trace("JaludoManager.sessionData > e : " + e);
log.removeEventListener(jaludo.api.as2.Login.INVALID_LOGIN_EVENT, fnInvalidLogin);
if (e.connect == "need_login") {
} else if (e.connect == "need_confirm") {
trace("***Necesita confirmar***");
email_updater.displayWarning(e.email, e.username);
cookieClear();
activeButtonsMenu();
} else if (e.connect == "failed") {
activeButtonsMenu();
}
}
function connectError(error) {
jaludo.api.as2.utils.Tracer.sTrace("Connection error");
}
function userLogged(e) {
trace("JaludoManager.userLogged > e : " + e);
_mc_target.setData(txtInfo, "User has log in correctly");
log.removeEventListener(jaludo.api.as2.Login.USER_LOGED_EVENT, userLogged);
log.removeEventListener(jaludo.api.as2.Login.INVALID_LOGIN_EVENT, fnInvalidLogin);
maximizeMenu();
achievements_were_loaded = false;
checkGetAchievements();
score.sendLocalScore();
}
function gotoWhatMenu() {
if (jaludo.api.as2.User.__get__instance().__get__username() != jaludo.api.as2.User.GUEST_USER) {
loggedMenu();
} else if (!beforeStartGame) {
loggedGuestMenu();
} else {
basicLoginMenu();
}
menu._x = 0;
menu._y = 0;
_container._x = jaludo.api.as2.Locator.API_POS_X;
_container._y = jaludo.api.as2.Locator.API_POS_Y;
}
function unlockAchievement(unique_name, level) {
achievements.unlockAchievement(unique_name, level);
}
function gameStarted() {
beforeStartGame = false;
maximizeMenu();
checkGetAchievements();
}
function gameEnded() {
showProfile();
actualTabProfile = (TAB_TOPSCORE);
achievements.loadLocalUnlockedAchievements("end");
}
function checkGetAchievements() {
if (!achievements_were_loaded) {
achievements_were_loaded = true;
if (jaludo.api.as2.User.__get__instance().__get__username() == jaludo.api.as2.User.GUEST_USER) {
achievements.getAllAchievements(false);
} else {
achievements.getAllAchievements(true);
}
}
}
function basicLoginMenu() {
menu.gotoAndStop("login");
activeButtonsMenu();
}
function loggedMenu() {
menu.gotoAndStop("logged");
jaludoApi_btnUser = menu.jaludoApi_btnShowProfile;
jaludoApi_btnUser.gotoAndStop(1);
jaludoApi_btnUser.caller = this;
_mc_target.setData(jaludoApi_btnUser.jaludoApi_txtUser, jaludo.api.as2.User.__get__instance().__get__username());
jaludoApi_btnUser.onRollOver = function () {
this.gotoAndStop(2);
this.caller._mc_target.setData(this.jaludoApi_txtUser, jaludo.api.as2.User.__get__instance().__get__username());
};
jaludoApi_btnUser.onRollOut = function () {
this.gotoAndStop(1);
this.caller._mc_target.setData(this.jaludoApi_txtUser, jaludo.api.as2.User.__get__instance().__get__username());
};
jaludoApi_btnUser.onReleaseOutside = function () {
this.gotoAndStop(1);
this.caller._mc_target.setData(this.jaludoApi_txtUser, jaludo.api.as2.User.__get__instance().__get__username());
};
jaludoApi_btnLogout = menu.jaludoApi_btnLogout;
jaludoApi_btnLogout.onRelease = mx.utils.Delegate.create(this, onLogout);
jaludoApi_btnShowProfile = menu.jaludoApi_btnShowProfile;
jaludoApi_btnShowProfile.onRelease = mx.utils.Delegate.create(this, showProfile);
menu.jaludoApi_btnDice.onRelease = mx.utils.Delegate.create(this, showProfile);
}
function loggedGuestMenu() {
menu.gotoAndStop("logged_guest");
jaludoApi_btnLogin = menu.jaludoApi_btnLogin;
jaludoApi_btnRegister = menu.jaludoApi_btnRegister;
jaludoApi_btnLogin.onRelease = mx.utils.Delegate.create(log, log.login);
jaludoApi_btnRegister.onRelease = mx.utils.Delegate.create(register, register.register);
jaludoApi_btnShowProfile = menu.jaludoApi_btnShowProfile;
jaludoApi_btnShowProfile.onRelease = mx.utils.Delegate.create(this, showProfile);
menu.jaludoApi_btnDice.onRelease = mx.utils.Delegate.create(this, showProfile);
}
function openLoginPopup() {
closeProfile();
log.login();
}
function openRegistrationPopup() {
closeProfile();
register.register();
}
function setMenuEnterFrame() {
menu.onEnterFrame = mx.utils.Delegate.create(this, menuEnterFrame);
}
function deleteMenuEnterFrame() {
menu.onEnterFrame = null;
}
function menuEnterFrame() {
if (menu.isInProfile == undefined) {
if (menu.hitTest(_root._xmouse, _root._ymouse, true)) {
if (menu.isInside == undefined) {
menu.isInside = true;
maximizeMenu();
}
} else if (menu.isInside) {
menu.isInside = undefined;
checkMenuStatus();
}
}
}
function minimizeMenu() {
if (menu.isInProfile == undefined) {
clearMinimizeInterval();
deleteMenuEnterFrame();
menu.gotoAndStop("dice");
menu.onRollOver = mx.utils.Delegate.create(this, maximizeMenu);
}
}
function checkMenuStatus() {
clearMinimizeInterval();
_time_to_minimize = setInterval(this, "minimizeMenu", 10000);
}
function maximizeMenu() {
delete menu.onRollOver;
menu.isInside = true;
clearMinimizeInterval();
setMenuEnterFrame();
if (menu.isInProfile == undefined) {
gotoWhatMenu();
}
}
function clearMinimizeInterval() {
clearInterval(_time_to_minimize);
}
function showProfile() {
maximizeMenu();
menu.isInProfile = true;
_mc_blocker = new jaludo.api.as2.Blocker(_mc_target);
dispatchEvent({type:PAUSE_EVENT_MANAGER, data:{state:true}});
menu.swapDepths(_mc_blocker.mc);
_container._focusrect = false;
if (jaludo.api.as2.User.__get__instance().__get__username() != jaludo.api.as2.User.GUEST_USER) {
menu.gotoAndStop("profile");
jaludoApi_btnProfile = menu.jaludoApi_btnProfile;
jaludoApi_txtUser = menu.jaludoApi_txtUser;
actualTabProfile = (TAB_PROFILE);
jaludoApi_btnProfile._caller = this;
jaludoApi_btnProfile.tab = TAB_PROFILE;
jaludoApi_btnProfile.onRelease = function () {
if (this._caller._menu_tab_enabled) {
this._caller.setTab(this);
}
};
jaludoApi_btnProfile.onRollOver = function () {
if (this._currentframe == 1) {
this.gotoAndStop("up_over");
} else if (this._currentframe == 3) {
this.gotoAndStop("down_over");
}
};
jaludoApi_btnProfile.onRollOut = function () {
if (this._currentframe == 2) {
this.gotoAndStop("up");
} else if (this._currentframe == 4) {
this.gotoAndStop("down");
}
};
jaludoApi_btnProfile.onReleaseOutside = function () {
this.onRollOut();
};
_mc_target.setData(jaludoApi_txtUser, jaludo.api.as2.User.__get__instance().__get__username());
} else {
menu.gotoAndStop("profile_guest");
jaludoApi_btnTopscore = menu.jaludoApi_btnTopscore;
actualTabProfile = (TAB_TOPSCORE);
jaludoApi_btnLogin = menu.jaludoApi_btnLogin;
jaludoApi_btnRegister = menu.jaludoApi_btnRegister;
log.removeEventListener(jaludo.api.as2.Login.CALL_REGISTER_EVENT, fnCallRegister);
fnCallRegister = mx.utils.Delegate.create(register, register.register);
log.addEventListener(jaludo.api.as2.Login.CALL_REGISTER_EVENT, fnCallRegister);
jaludoApi_btnLogin.onRelease = mx.utils.Delegate.create(this, openLoginPopup);
jaludoApi_btnRegister.onRelease = mx.utils.Delegate.create(this, openRegistrationPopup);
}
menu._x = jaludo.api.as2.Locator.getCenterX();
menu._y = jaludo.api.as2.Locator.getCenterY();
jaludoApi_btnTopscore = menu.jaludoApi_btnTopscore;
jaludoApi_btnAchievements = menu.jaludoApi_btnAchievements;
jaludoApi_btnClose = menu.jaludoApi_btnClose;
jaludoApi_btnTopscore._caller = this;
jaludoApi_btnTopscore.tab = TAB_TOPSCORE;
jaludoApi_btnTopscore.onRelease = function () {
if (this._caller._menu_tab_enabled) {
this._caller.setTab(this);
}
};
jaludoApi_btnTopscore.onRollOver = function () {
if (this._currentframe == 1) {
this.gotoAndStop("up_over");
} else if (this._currentframe == 3) {
this.gotoAndStop("down_over");
}
};
jaludoApi_btnTopscore.onRollOut = function () {
if (this._currentframe == 2) {
this.gotoAndStop("up");
} else if (this._currentframe == 4) {
this.gotoAndStop("down");
}
};
jaludoApi_btnTopscore.onReleaseOutside = function () {
this.onRollOut();
};
jaludoApi_btnAchievements._caller = this;
jaludoApi_btnAchievements.tab = TAB_ACHIEVEMENTS;
jaludoApi_btnAchievements.onRelease = function () {
if (this._caller._menu_tab_enabled) {
this._caller.setTab(this);
}
};
jaludoApi_btnAchievements.onRollOver = function () {
if (this._currentframe == 1) {
this.gotoAndStop("up_over");
} else if (this._currentframe == 3) {
this.gotoAndStop("down_over");
}
};
jaludoApi_btnAchievements.onRollOut = function () {
if (this._currentframe == 2) {
this.gotoAndStop("up");
} else if (this._currentframe == 4) {
this.gotoAndStop("down");
}
};
jaludoApi_btnAchievements.onReleaseOutside = function () {
this.onRollOut();
};
jaludoApi_btnClose.onRelease = mx.utils.Delegate.create(this, closeProfile);
detectKey();
}
function detectKey() {
keyListener = {};
keyListener.caller = this;
keyListener.onKeyDown = function () {
if (Key.isDown(27)) {
if (this.caller._menu_escape) {
this.caller.closeProfile();
}
} else if (Key.isDown(9)) {
if (this.caller._menu_tab_enabled) {
this.caller.nextTab();
}
}
};
Key.addListener(keyListener);
enableTab();
}
function enableTab() {
_menu_tab_enabled = true;
}
function disableTab() {
_menu_tab_enabled = false;
}
function enabledEscape() {
trace("JaludoManager.enabledEscape");
_menu_escape = true;
}
function disableEscape() {
trace("JaludoManager.disableEscape");
_menu_escape = false;
}
function nextTab() {
if (jaludo.api.as2.User.__get__instance().__get__username() == jaludo.api.as2.User.GUEST_USER) {
if (_actualTabProfile == TAB_TOPSCORE) {
setTab({tab:TAB_ACHIEVEMENTS});
} else if (_actualTabProfile == TAB_ACHIEVEMENTS) {
setTab({tab:TAB_TOPSCORE});
}
} else if (jaludo.api.as2.User.__get__instance().__get__username() != jaludo.api.as2.User.GUEST_USER) {
if (_actualTabProfile == TAB_PROFILE) {
setTab({tab:TAB_TOPSCORE});
} else if (_actualTabProfile == TAB_TOPSCORE) {
setTab({tab:TAB_ACHIEVEMENTS});
} else if (_actualTabProfile == TAB_ACHIEVEMENTS) {
setTab({tab:TAB_PROFILE});
}
}
}
function closeProfile() {
Key.removeListener(keyListener);
menu.isInProfile = undefined;
_mc_blocker.dispose();
dispatchEvent({type:PAUSE_EVENT_MANAGER, data:{state:false}});
achievements.dispose();
score.dispose();
_profile.dispose();
actualTabProfile = ("");
gotoWhatMenu();
}
function setTab(mc) {
actualTabProfile = (mc.tab);
}
function onLogout() {
_mc_target.setData(txtInfo, "User has log out");
log.clearCookie();
trace("***COOKIE VALUE: " + _user_session);
jaludo.api.as2.User.__get__instance().__set__username(jaludo.api.as2.User.GUEST_USER);
achievements.clearLocalAchievementsData();
beforeStartGame = true;
gotoWhatMenu();
dispatchEvent({type:ON_USER_LOGOUT_MANAGER});
reconnect();
}
function registerCompleted(e) {
_mc_target.getData(txtInfo, "Register Completed");
var _local3 = "You have been succesfully registered! You will receive an e-mail to complete the process of registration and then you will be able to login";
var _local2 = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _mc_target);
_local2.showPopup(_local3, jaludo.api.as2.utils.ModalsPopup.TYPE_INFORMATIVE);
log.callLoginFunction(e.user_name, e.password, "not-confirmated");
}
function sendScore(value, level) {
_mc_target.setData(txtInfo, "Sending score");
score.sendScore(value, level);
}
function get sending() {
return(sendingLocal);
}
function set actualTabProfile(value) {
if (_actualTabProfile != value) {
switch (_actualTabProfile) {
case TAB_PROFILE :
jaludoApi_btnProfile.gotoAndStop("up");
_profile.dispose();
break;
case TAB_TOPSCORE :
jaludoApi_btnTopscore.gotoAndStop("up");
score.dispose();
break;
case TAB_ACHIEVEMENTS :
jaludoApi_btnAchievements.gotoAndStop("up");
achievements.dispose();
_specialAlert.dispose();
}
_actualTabProfile = value;
jaludoApi_profileContent = menu.jaludoApi_profileContent;
if (_specialAlert == undefined) {
_specialAlert = new jaludo.api.as2.utils.PopupAnimated(jaludoApi_profileContent, this);
}
if (value != "") {
switch (value) {
case TAB_PROFILE :
jaludoApi_btnProfile.gotoAndStop("down");
_profile.loadProfile(jaludoApi_profileContent);
break;
case TAB_TOPSCORE :
jaludoApi_btnTopscore.gotoAndStop("down");
score.initialize(jaludoApi_profileContent);
break;
case TAB_ACHIEVEMENTS :
jaludoApi_btnAchievements.gotoAndStop("down");
achievements.showAchievements(jaludoApi_profileContent);
_specialAlert.verifiedState();
}
}
}
//return(__get__actualTabProfile());
}
function updateState() {
user_state.verifyState();
}
function setTxtCoins(coins) {
}
function traceLog(obj) {
jaludo.api.as2.utils.Tracer.sTraceObject(obj._data);
}
function cookieStore(name, value) {
jaludo.api.as2.utils.Tracer.sTrace((("JaludoManager.cookieStore > name : " + name) + ", value : ") + value);
_sharedObject.data[name] = value;
_sharedObject.flush();
}
function cookieRetrieve(name) {
var _local2;
_local2 = _sharedObject.data[name];
return(_local2);
}
function cookieClear() {
_sharedObject.clear();
}
function dispatchEvent(e) {
super.dispatchEvent(e);
}
function requestEmail() {
reset_pass.showPopup();
}
function resetSuccesfull() {
var _local3 = "An e-mail indicating your new password has been sent to your account. ";
var _local2 = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _mc_target);
_local2.showPopup(_local3, jaludo.api.as2.utils.ModalsPopup.TYPE_INFORMATIVE);
}
function dispose() {
trace("JaludoManager.dispose");
log.removeEventListener(jaludo.api.as2.Login.INVALID_LOGIN_EVENT, fnInvalidLogin);
log.removeEventListener(jaludo.api.as2.Login.CALL_REGISTER_EVENT, fnCallRegister);
}
var TAB_PROFILE = "TAB_PROFILE";
var TAB_TOPSCORE = "TAB_TOPSCORE";
var TAB_ACHIEVEMENTS = "TAB_ACHIEVEMENTS";
static var PAUSE_EVENT_MANAGER = "PAUSE_EVENT_MANAGER";
static var ON_API_CREATED_MANAGER = "ON_API_CREATED_MANAGER";
static var ACH_SCORE_EVENT_MANAGER = "ACH_SCORE_EVENT_MANAGER";
static var ON_USER_LOGOUT_MANAGER = "ON_USER_LOGOUT_MANAGER";
}
Symbol 1056 MovieClip [__Packages.jaludo.api.as2.Login] Frame 0
class jaludo.api.as2.Login extends mx.events.EventDispatcher
{
var sendingLocal, _caller, _content, _mc_target, _mc_blocker, jaludoApi_loginPopup, jaludoApi_btnCancel, jaludoApi_btnCallLogin, jaludoApi_btnSignUp, jaludoApi_btnForgetPass, jaludoApi_txtUserInput, jaludoApi_txtPassInput, send_preloader, dispatchEvent, jaludoApi_txtLoginInvalid;
function Login (caller, container) {
super(this);
sendingLocal = caller.sending;
_caller = caller;
_content = container;
_mc_target = _caller._mc_target;
}
function login() {
_mc_blocker = new jaludo.api.as2.Blocker(_content);
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, data:{state:true}});
_caller.menu._visible = false;
jaludoApi_loginPopup = _content.attachMovie("jaludoApi_loginPopup", "jaludoApi_loginPopup", _content.getNextHighestDepth());
jaludoApi_loginPopup._x = jaludo.api.as2.Locator.getCenterX();
jaludoApi_loginPopup._y = jaludo.api.as2.Locator.getCenterY();
jaludoApi_loginPopup._xscale = jaludo.api.as2.Locator.SCALE_PERCENT;
jaludoApi_loginPopup._yscale = jaludo.api.as2.Locator.SCALE_PERCENT;
jaludoApi_btnCancel = jaludoApi_loginPopup.jaludoApi_btnCancel;
jaludoApi_btnCallLogin = jaludoApi_loginPopup.jaludoApi_btnLogin;
jaludoApi_btnSignUp = jaludoApi_loginPopup.jaludoApi_btnSignUp;
jaludoApi_btnForgetPass = jaludoApi_loginPopup.jaludoApi_btnForgetPass;
jaludoApi_txtUserInput = jaludoApi_loginPopup.jaludoApi_txtUserInput;
jaludoApi_txtPassInput = jaludoApi_loginPopup.jaludoApi_txtPassInput;
jaludoApi_btnCancel.onRelease = mx.utils.Delegate.create(this, cancelLogin);
jaludoApi_btnCallLogin.onRelease = mx.utils.Delegate.create(this, captureData);
jaludoApi_btnSignUp.onRelease = mx.utils.Delegate.create(this, removeLoginPopup);
jaludoApi_btnForgetPass.onRelease = mx.utils.Delegate.create(this, requestEmail);
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, jaludoApi_loginPopup, captureData, cancelLogin, jaludoApi_btnCallLogin, jaludoApi_btnCancel);
_mc_target.applyTab(jaludoApi_txtUserInput, 1);
Selection.setFocus(jaludoApi_txtUserInput);
_mc_target.applyTab(jaludoApi_txtPassInput, 2);
_mc_target.applyTab(jaludoApi_btnCallLogin, 3);
_mc_target.applyTab(jaludoApi_btnSignUp, 4);
_mc_target.applyTab(jaludoApi_btnCancel, 5);
}
function requestEmail() {
_caller.requestEmail();
disableKey();
dispose();
}
function captureData() {
trace("-----------------------Login.captureData------------------------------");
var _local2 = _mc_target.getData(jaludoApi_txtUserInput);
var _local3 = _mc_target.getData(jaludoApi_txtPassInput);
disableKey();
if (_caller.cookieRetrieve("user_session") == undefined) {
callLoginFunction(_local2, _local3);
} else {
callAuthSession(_caller.cookieRetrieve("user_session"));
}
}
function callAuthSession(session_key) {
send_preloader = new jaludo.api.as2.GeneralPreloader(_content, _mc_target, "authenticate", jaludoApi_loginPopup);
jaludoApi_loginPopup.onEnterFrame = null;
var _local2 = new Object();
_local2.session_key = session_key;
sendingLocal.send(_caller._remote_connection_name, "authSession", _local2);
}
function callLoginFunction(user, pass, state) {
trace((((("Login.callLoginFunction > user : " + user) + ", pass : ") + pass) + ", state : ") + state);
send_preloader = new jaludo.api.as2.GeneralPreloader(_content, _mc_target, "authenticate, please wait...", jaludoApi_loginPopup);
jaludoApi_loginPopup.onEnterFrame = null;
var _local2 = new Object();
_local2.user = user;
_local2.pass = pass;
_local2.state = state;
sendingLocal.send(_caller._remote_connection_name, "makeLogin", _local2);
}
function loginSuccess(obj) {
trace("-------USER LOGGED----------");
jaludo.api.as2.User.__get__instance().__set__username(String(obj.user));
jaludo.api.as2.User.__get__instance().__set__image(String(obj.image_id));
jaludo.api.as2.User.__get__instance().__set__email(String(obj.email));
if (String(obj.state) == jaludo.api.as2.User.CONFIRMED) {
jaludo.api.as2.User.__get__instance().__set__state(jaludo.api.as2.User.CONFIRMED);
} else if (String(obj.state) == jaludo.api.as2.User.UNCONFIRMED) {
jaludo.api.as2.User.__get__instance().__set__state(jaludo.api.as2.User.UNCONFIRMED);
}
saveCookie(String(obj.session_key));
dispatchEvent({type:USER_LOGED_EVENT});
dispose();
}
function loginInvalid(obj) {
jaludoApi_btnCallLogin.enabled = true;
trace("Login.loginInvalid");
for (var _local3 in obj) {
trace((("key : " + _local3) + ", value : ") + obj[_local3]);
}
jaludoApi_txtLoginInvalid = jaludoApi_loginPopup.jaludoApi_txtLoginInvalid;
if (obj.connect == "need_confirm") {
dispose();
} else {
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, jaludoApi_loginPopup, captureData, cancelLogin, jaludoApi_btnCallLogin, jaludoApi_btnCancel);
}
if (_mc_target.getData(jaludoApi_txtLoginInvalid) == "") {
_mc_target.setData(jaludoApi_txtLoginInvalid, "Login Invalid");
}
send_preloader.dispose();
dispatchEvent({type:INVALID_LOGIN_EVENT, connect:obj.connect, email:obj.email, username:obj.username});
}
function loginFailed(obj) {
trace("login failed " + obj.data);
send_preloader.dispose();
}
function cancelLogin() {
trace("Login.cancelLogin");
disableKey();
dispose();
}
function removeLoginPopup() {
disableKey();
dispose();
dispatchEvent({type:CALL_REGISTER_EVENT});
}
function saveCookie(session_key) {
_caller.cookieStore("user_session", session_key);
}
function clearCookie() {
_caller.cookieClear();
}
function disableKey() {
trace("Login.disableKey en el loggin");
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
}
function dispose() {
_mc_blocker.dispose();
send_preloader.dispose();
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, data:{state:false}});
_caller.menu._visible = true;
jaludoApi_loginPopup.onEnterFrame = null;
jaludoApi_loginPopup.removeMovieClip();
}
static var USER_LOGED_EVENT = "USER_LOGED";
static var INVALID_LOGIN_EVENT = "INVALID_LOGIN_EVENT";
static var CALL_REGISTER_EVENT = "CALL_REGISTER";
}
Symbol 1057 MovieClip [__Packages.jaludo.api.as2.Blocker] Frame 0
class jaludo.api.as2.Blocker
{
var mc;
function Blocker (content) {
mc = content.attachMovie("mc_blocker", "mc_blocker", content.getNextHighestDepth());
mc._x = jaludo.api.as2.Locator.getCenterX();
mc._y = jaludo.api.as2.Locator.getCenterY();
mc._focusrect = false;
mc.tabChildren = false;
mc.tabEnabled = false;
mc.useHandCursor = false;
mc.onPress = null;
mc.onRelease = null;
}
function dispose() {
mc.removeMovieClip();
}
}
Symbol 1058 MovieClip [__Packages.jaludo.api.as2.Locator] Frame 0
class jaludo.api.as2.Locator
{
function Locator () {
}
static function getCenterX() {
return((-API_POS_X) + (GAME_WIDTH / 2));
}
static function getCenterY() {
return((-API_POS_Y) + (GAME_HEIGHT / 2));
}
static var GAME_WIDTH = 800;
static var GAME_HEIGHT = 600;
static var API_POS_X = 0;
static var API_POS_Y = 0;
static var SCALE_PERCENT = 100;
}
Symbol 1059 MovieClip [__Packages.jaludo.api.as2.GeneralPreloader] Frame 0
class jaludo.api.as2.GeneralPreloader extends jaludo.api.as2.Blocker
{
var _mc_target, _content, _mc_deactivate, jaludoApi_generalPreloader, jaludoApi_txtAction;
function GeneralPreloader (content, mc_target, acction, mc_deactivate) {
super(content);
_mc_target = mc_target;
_content = content;
_mc_deactivate = mc_deactivate;
content.tabChildren = false;
for (var _local4 in content) {
content[_local4].enabled = false;
}
if (_mc_deactivate != undefined) {
_mc_deactivate.tabChildren = false;
for (var _local4 in _mc_deactivate) {
_mc_deactivate[_local4].enabled = false;
}
}
jaludoApi_generalPreloader = content.attachMovie("jaludoApi_generalPreloader", "jaludoApi_generalPreloader", content.getNextHighestDepth());
jaludoApi_generalPreloader._x = jaludo.api.as2.Locator.getCenterX();
jaludoApi_generalPreloader._y = jaludo.api.as2.Locator.getCenterY();
jaludoApi_txtAction = jaludoApi_generalPreloader.jaludoApi_txtAction;
mc_target.applyTab(content, 1);
mc_target.setData(jaludoApi_txtAction, acction);
}
function dispose() {
_content.tabChildren = true;
for (var _local3 in _content) {
_content[_local3].enabled = true;
}
if (_mc_deactivate != undefined) {
_mc_deactivate.tabChildren = true;
for (var _local3 in _mc_deactivate) {
_mc_deactivate[_local3].enabled = true;
}
}
jaludoApi_generalPreloader.removeMovieClip();
super.dispose();
}
}
Symbol 1060 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 1061 MovieClip [__Packages.jaludo.api.as2.utils.KeyManager] Frame 0
class jaludo.api.as2.utils.KeyManager
{
static var k;
var activePopups;
function KeyManager () {
activePopups = [];
}
static function get instance() {
if (!k) {
k = new jaludo.api.as2.utils.KeyManager();
}
return(k);
}
function detectKey(caller, mc, enterAction, escapeAction, mcEnter, mcEscape) {
trace((((((("KeyManager.detectKey > caller : " + caller) + ", mc : ") + mc) + ", enterAction : ") + enterAction) + ", escapeAction : ") + escapeAction);
Key.removeListener(activePopups[activePopups.length - 1]._mc);
if ((mc != undefined) && (mc != "")) {
if (activePopups.length > 0) {
var _local2 = 0;
while (_local2 < activePopups.length) {
if (activePopups[_local2]._mc._name != mc._name) {
activePopups.push({_caller:caller, _mc:mc, _enterAction:enterAction, _escapeAction:escapeAction, _mcEnter:mcEnter, _mcEscape:mcEscape});
}
_local2++;
}
} else {
activePopups.push({_caller:caller, _mc:mc, _enterAction:enterAction, _escapeAction:escapeAction, _mcEnter:mcEnter, _mcEscape:mcEscape});
}
mc.onKeyDown = mx.utils.Delegate.create(this, onKeyDownPopup);
Key.addListener(mc);
}
}
function onKeyDownPopup() {
var _local4 = Selection.getFocus();
var _local3;
var _local2;
var _local5 = false;
_local3 = _local4.indexOf(activePopups[activePopups.length - 1]._mcEnter._name, 0);
_local2 = _local4.indexOf(activePopups[activePopups.length - 1]._mcEscape._name, 0);
if (((_local3 != -1) && (_local3 != undefined)) || ((_local2 != -1) && (_local2 != undefined))) {
trace((("********bloquea*********" + _local3) + " -- ") + _local2);
_local5 = true;
}
if (_local5 == false) {
if (Key.isDown(27)) {
_local3 = _local4.indexOf(activePopups[activePopups.length - 1]._mcEscape._name, 0);
if ((_local3 == -1) || (_local3 == undefined)) {
Function(activePopups[activePopups.length - 1]._escapeAction).call(activePopups[activePopups.length - 1]._caller);
}
} else if (Key.isDown(13)) {
_local2 = _local4.indexOf(activePopups[activePopups.length - 1]._mcEnter._name, 0);
if ((_local2 == -1) || (_local2 == undefined)) {
Function(activePopups[activePopups.length - 1]._enterAction).call(activePopups[activePopups.length - 1]._caller);
}
}
}
}
function disableKey() {
Key.removeListener(activePopups[activePopups.length - 1]._mc);
activePopups.pop();
var _local2 = activePopups[activePopups.length - 1];
detectKey(_local2._caller, _local2._mc, _local2._enterAction, _local2._escapeAction, _local2._mcEnter, _local2._mcEscape);
}
function dispose() {
Key.removeListener(activePopups[activePopups.length - 1]._mc);
activePopups = [];
}
}
Symbol 1062 MovieClip [__Packages.jaludo.api.as2.User] Frame 0
class jaludo.api.as2.User extends mx.events.EventDispatcher
{
static var user;
var _username, _password, _image, _state, dispatchEvent, _email;
function User () {
super(this);
}
static function get instance() {
if (!user) {
user = new jaludo.api.as2.User();
}
return(user);
}
function get username() {
return(_username);
}
function set username(value) {
_username = value;
//return(username);
}
function get password() {
return(_password);
}
function set password(value) {
_password = value;
//return(password);
}
function get image() {
return(_image);
}
function set image(value) {
_image = value;
//return(image);
}
function get state() {
return(_state);
}
function set state(value) {
dispatchEvent({type:STATE_CHANGED, data:value});
_state = value;
//return(state);
}
function get email() {
return(_email);
}
function set email(value) {
_email = value;
//return(email);
}
static var GUEST_USER = "GUEST_USER";
static var UNCONFIRMED = "UNCONFIRMED";
static var CONFIRMED = "CONFIRMED";
static var STATE_CHANGED = "STATE_CHANGED";
}
Symbol 1063 MovieClip [__Packages.jaludo.api.as2.Registration] Frame 0
class jaludo.api.as2.Registration
{
var _content, _caller, _mc_target, sendingLocal, _mc_blocker, enabledBlocker, _country, _filter, jaludoApi_registerPopup, jaludoApi_txtUsernameInput, jaludoApi_txtPasswordInput, jaludoApi_txtConfirmPassInput, jaludoApi_txtEmailInput, jaludoApi_txtConfirmEmailInput, jaludoApi_txtMonth, jaludoApi_txtDay, jaludoApi_txtYear, mc_content_username, mc_content_password, mc_content_confPassword, mc_content_email, mc_content_confEmail, mc_content_day, mc_content_month, mc_content_year, mc_content_country, jaludoApi_selectMale, jaludoApi_selectFemale, jaludoApi_showCountryList, jaludoApi_countrySelected, btn_showList, jaludoApi_btnRegisterUser, jaludoApi_pictureContainer, jaludoApi_btnCancel, jaludoApi_btnViewTerms, jaludoApi_checkTerms, fnValidationSucces, fnError, fnNotValidate, _listener, _listenerChanged, objControlData, date_list, country_list, _tooltip, alert, fnAlertActivated, _termsPopup, fnTermsActivated, fnAlertDeactivated, fnTermsDeactivated, fileUpload, listen, fileTypes, imageId, photo, _mcPicture, _objListener, send_preloader, _mc_blocker_alert, fnAlertConfirmation;
function Registration (caller, container) {
_content = container;
_caller = caller;
_mc_target = _caller._mc_target;
sendingLocal = _caller.sending;
}
function register() {
_mc_blocker = new jaludo.api.as2.Blocker(_content);
enabledBlocker = false;
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, data:{state:true}});
_caller.menu._visible = false;
_idImage = "";
_country = undefined;
_filter = new flash.filters.GlowFilter();
controlInput = false;
jaludoApi_registerPopup = _content.attachMovie("jaludoApi_registerPopup", "jaludoApi_registerPopup", _content.getNextHighestDepth());
jaludoApi_registerPopup._x = jaludo.api.as2.Locator.getCenterX();
jaludoApi_registerPopup._y = jaludo.api.as2.Locator.getCenterY();
jaludoApi_registerPopup._xscale = jaludo.api.as2.Locator.SCALE_PERCENT;
jaludoApi_registerPopup._yscale = jaludo.api.as2.Locator.SCALE_PERCENT;
jaludoApi_txtUsernameInput = jaludoApi_registerPopup.jaludoApi_txtUsernameInput;
jaludoApi_txtPasswordInput = jaludoApi_registerPopup.jaludoApi_txtPasswordInput;
jaludoApi_txtConfirmPassInput = jaludoApi_registerPopup.jaludoApi_txtConfirmPassInput;
jaludoApi_txtEmailInput = jaludoApi_registerPopup.jaludoApi_txtEmailInput;
jaludoApi_txtConfirmEmailInput = jaludoApi_registerPopup.jaludoApi_txtConfirmEmailInput;
jaludoApi_txtMonth = jaludoApi_registerPopup.jaludoApi_txtMonth;
jaludoApi_txtDay = jaludoApi_registerPopup.jaludoApi_txtDay;
jaludoApi_txtYear = jaludoApi_registerPopup.jaludoApi_txtYear;
mc_content_username = jaludoApi_registerPopup.mc_content_username;
mc_content_password = jaludoApi_registerPopup.mc_content_password;
mc_content_confPassword = jaludoApi_registerPopup.mc_content_confPassword;
mc_content_email = jaludoApi_registerPopup.mc_content_email;
mc_content_confEmail = jaludoApi_registerPopup.mc_content_confEmail;
mc_content_day = jaludoApi_registerPopup.mc_content_day;
mc_content_month = jaludoApi_registerPopup.mc_content_month;
mc_content_year = jaludoApi_registerPopup.mc_content_year;
mc_content_country = jaludoApi_registerPopup.mc_content_country;
jaludoApi_selectMale = jaludoApi_registerPopup.jaludoApi_selectMale;
jaludoApi_selectFemale = jaludoApi_registerPopup.jaludoApi_selectFemale;
jaludoApi_showCountryList = jaludoApi_registerPopup.jaludoApi_showCountryList;
jaludoApi_countrySelected = jaludoApi_showCountryList.jaludoApi_countrySelected;
btn_showList = jaludoApi_showCountryList.btn_showList;
btn_showList.onRelease = mx.utils.Delegate.create(this, showCountryList);
jaludoApi_btnRegisterUser = jaludoApi_registerPopup.jaludoApi_btnRegisterUser;
jaludoApi_btnRegisterUser.onRelease = mx.utils.Delegate.create(this, registerUser);
jaludoApi_pictureContainer = jaludoApi_registerPopup.jaludoApi_pictureContainer;
jaludoApi_btnCancel = jaludoApi_registerPopup.jaludoApi_btnCancel;
jaludoApi_btnCancel.onRelease = mx.utils.Delegate.create(this, cancelRegistration);
jaludoApi_btnViewTerms = jaludoApi_registerPopup.jaludoApi_btnViewTerms;
jaludoApi_btnViewTerms.onRelease = mx.utils.Delegate.create(this, showTerms);
enabledRegisterKey();
jaludoApi_checkTerms = false;
jaludoApi_pictureContainer.onRelease = mx.utils.Delegate.create(this, uploadImage);
_mc_target.applyTab(jaludoApi_txtUsernameInput, 1);
Selection.setFocus(jaludoApi_txtUsernameInput);
_mc_target.applyTab(jaludoApi_txtPasswordInput, 2);
_mc_target.applyTab(jaludoApi_txtConfirmPassInput, 3);
_mc_target.applyTab(jaludoApi_txtEmailInput, 4);
_mc_target.applyTab(jaludoApi_txtConfirmEmailInput, 5);
_mc_target.applyTab(jaludoApi_txtDay, 6);
_mc_target.applyTab(jaludoApi_txtMonth, 7);
_mc_target.applyTab(jaludoApi_txtYear, 8);
_mc_target.applyTab(jaludoApi_showCountryList, 9);
_mc_target.applyTab(jaludoApi_selectMale, 10);
_mc_target.applyTab(jaludoApi_selectFemale, 11);
_mc_target.applyTab(jaludoApi_btnViewTerms, 12);
_mc_target.applyTab(jaludoApi_btnRegisterUser, 13);
_mc_target.applyTab(jaludoApi_btnCancel, 14);
_mc_target.setStyleComponent(jaludoApi_selectMale, "embedFonts", true);
_mc_target.setStyleComponent(jaludoApi_selectMale, "fontStyle", "normal");
_mc_target.setStyleComponent(jaludoApi_selectMale, "fontWeight", "none");
_mc_target.setStyleComponent(jaludoApi_selectMale, "fontFamily", "charcoal1");
_mc_target.setStyleComponent(jaludoApi_selectFemale, "embedFonts", true);
_mc_target.setStyleComponent(jaludoApi_selectFemale, "fontStyle", "normal");
_mc_target.setStyleComponent(jaludoApi_selectFemale, "fontWeight", "none");
_mc_target.setStyleComponent(jaludoApi_selectFemale, "fontFamily", "charcoal1");
fnValidationSucces = mx.utils.Delegate.create(this, validationSuccesfull);
jaludo.api.as2.Validator.__get__instance().addEventListener(jaludo.api.as2.Validator.VALIDATED_SUCCESFULL, fnValidationSucces);
fnError = mx.utils.Delegate.create(this, validationError);
jaludo.api.as2.Validator.__get__instance().addEventListener(jaludo.api.as2.Validator.ERROR_VALIDATED, fnError);
fnNotValidate = mx.utils.Delegate.create(this, notValidate);
jaludo.api.as2.Validator.__get__instance().addEventListener(jaludo.api.as2.Validator.NOT_VALIDATE, fnNotValidate);
_listener = new Object();
_listener.onSetFocus = mx.utils.Delegate.create(this, onSetFocus);
Selection.addListener(_listener);
_listenerChanged = new Object();
_listenerChanged.onChanged = mx.utils.Delegate.create(this, clearConfirmation);
jaludoApi_txtPasswordInput.addListener(_listenerChanged);
jaludoApi_txtEmailInput.addListener(_listenerChanged);
objControlData = {};
objControlData.checkUser = INVALID;
objControlData.checkPass = INVALID;
objControlData.checkConfirmatedPass = INVALID;
objControlData.checkEmail = INVALID;
objControlData.checkConfirmatedEmail = INVALID;
objControlData.checkDate = INVALID;
date_list = new jaludo.api.as2.utils.DateLists(this, jaludoApi_registerPopup, _mc_target);
jaludoApi_selectFemale.onPress = mx.utils.Delegate.create(this, onFocus);
jaludoApi_selectMale.onPress = mx.utils.Delegate.create(this, onFocus);
country_list = new jaludo.api.as2.utils.CountryList(this, jaludoApi_registerPopup, _mc_target);
}
function catchKey(obj) {
trace("Registration.catchKey > obj : " + obj);
}
function onFocus() {
date_list.removeAllList();
country_list.removeList();
}
function clearConfirmation(target) {
var _local3 = {};
_local3.filters = [""];
if (target._name == "jaludoApi_txtPasswordInput") {
if (_mc_target.getData(jaludoApi_txtConfirmPassInput) != "") {
_mc_target.setData(jaludoApi_txtConfirmPassInput, "");
_filter.color = 16777215 /* 0xFFFFFF */;
var _local2 = [];
_local2.push(_filter);
_mc_target.mcFilter(mc_content_confPassword, _local2);
onSetFocus(jaludoApi_txtConfirmPassInput, null);
}
mc_content_confPassword.onEnterFrame = null;
} else if (target._name == "jaludoApi_txtEmailInput") {
if (_mc_target.getData(jaludoApi_txtConfirmEmailInput) != "") {
_mc_target.setData(jaludoApi_txtConfirmEmailInput, "");
_filter.color = 16777215 /* 0xFFFFFF */;
var _local2 = [];
_local2.push(_filter);
_mc_target.mcFilter(mc_content_confEmail, _local2);
onSetFocus(jaludoApi_txtConfirmEmailInput, null);
}
mc_content_confEmail.onEnterFrame = null;
}
_tooltip.removeTip();
}
function showCountryList() {
date_list.removeAllList();
country_list.showCountries(jaludoApi_showCountryList._x, jaludoApi_showCountryList._y);
}
function onSetFocus(oldFocus, newFocus) {
switch (oldFocus._name) {
case "jaludoApi_txtUsernameInput" :
jaludo.api.as2.Validator.__get__instance().checkUser(String(_mc_target.getData(jaludoApi_txtUsernameInput)));
break;
case "jaludoApi_txtPasswordInput" :
jaludo.api.as2.Validator.__get__instance().checkPassword(String(_mc_target.getData(jaludoApi_txtPasswordInput)));
break;
case "jaludoApi_txtConfirmPassInput" :
jaludo.api.as2.Validator.__get__instance().confirmPassword(String(_mc_target.getData(jaludoApi_txtConfirmPassInput)));
break;
case "jaludoApi_txtEmailInput" :
jaludo.api.as2.Validator.__get__instance().checkEmail(String(_mc_target.getData(jaludoApi_txtEmailInput)));
break;
case "jaludoApi_txtConfirmEmailInput" :
jaludo.api.as2.Validator.__get__instance().confirmEmail(_mc_target.getData(jaludoApi_txtConfirmEmailInput));
break;
case "jaludoApi_txtMonth" :
jaludo.api.as2.Validator.__get__instance().checkDate(_mc_target.getData(jaludoApi_txtMonth), _mc_target.getData(jaludoApi_txtDay), _mc_target.getData(jaludoApi_txtYear));
break;
case "jaludoApi_txtDay" :
jaludo.api.as2.Validator.__get__instance().checkDate(_mc_target.getData(jaludoApi_txtMonth), _mc_target.getData(jaludoApi_txtDay), _mc_target.getData(jaludoApi_txtYear));
break;
case "jaludoApi_txtYear" :
jaludo.api.as2.Validator.__get__instance().checkDate(_mc_target.getData(jaludoApi_txtMonth), _mc_target.getData(jaludoApi_txtDay), _mc_target.getData(jaludoApi_txtYear));
}
switch (newFocus._name) {
case "jaludoApi_txtUsernameInput" :
mc_content_username.onEnterFrame = null;
date_list.removeAllList();
country_list.removeList();
break;
case "jaludoApi_txtPasswordInput" :
mc_content_password.onEnterFrame = null;
date_list.removeAllList();
country_list.removeList();
break;
case "jaludoApi_txtConfirmPassInput" :
mc_content_confPassword.onEnterFrame = null;
date_list.removeAllList();
country_list.removeList();
break;
case "jaludoApi_txtEmailInput" :
mc_content_email.onEnterFrame = null;
date_list.removeAllList();
country_list.removeList();
break;
case "jaludoApi_txtConfirmEmailInput" :
mc_content_confEmail.onEnterFrame = null;
date_list.removeAllList();
country_list.removeList();
break;
case "jaludoApi_txtMonth" :
country_list.removeList();
date_list.removeAllList();
date_list.showList("monthsList", mc_content_month._x, mc_content_month._y);
break;
case "jaludoApi_txtDay" :
country_list.removeList();
date_list.removeAllList();
date_list.showList("daysList", mc_content_day._x, mc_content_day._y);
break;
case "jaludoApi_txtYear" :
country_list.removeList();
date_list.removeAllList();
date_list.showList("yearsList", mc_content_year._x, mc_content_year._y);
break;
case "jaludoApi_showCountryList" :
date_list.removeAllList();
country_list.removeList();
country_list.showCountries(jaludoApi_showCountryList._x, jaludoApi_showCountryList._y);
break;
case "jaludoApi_selectMale" :
country_list.removeList();
break;
case "jaludoApi_selectFemale" :
country_list.removeList();
}
_tooltip.removeTip();
}
function validationSuccesfull(e) {
_filter.color = 32768;
var _local2 = [];
_local2.push(_filter);
var _local3 = {};
_local3.filters = [_filter];
switch (e.data) {
case "checkUser" :
_mc_target.mcFilter(mc_content_username, _local2);
mc_content_username.onEnterFrame = null;
break;
case "checkPass" :
_mc_target.mcFilter(mc_content_password, _local2);
mc_content_password.onEnterFrame = null;
break;
case "checkConfirmatedPass" :
_mc_target.mcFilter(mc_content_confPassword, _local2);
mc_content_confPassword.onEnterFrame = null;
break;
case "checkEmail" :
_mc_target.mcFilter(mc_content_email, _local2);
mc_content_email.onEnterFrame = null;
break;
case "checkConfirmatedEmail" :
_mc_target.mcFilter(mc_content_confEmail, _local2);
mc_content_confEmail.onEnterFrame = null;
break;
case "checkDate" :
_mc_target.mcFilter(mc_content_day, _local2);
_mc_target.mcFilter(mc_content_month, _local2);
_mc_target.mcFilter(mc_content_year, _local2);
}
_tooltip.removeTip();
objControlData[e.data] = VALIDATED;
controlInput = true;
}
function validationError(e) {
_filter.color = 16711680 /* 0xFF0000 */;
var _local3 = [];
_local3.push(_filter);
switch (e.data) {
case "checkUser" :
_mc_target.mcFilter(mc_content_username, _local3);
mc_content_username.caller = this;
mc_content_username.error = e.error;
mc_content_username.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this.isInside == undefined) {
this.isInside = true;
this.caller.showInformation(this);
}
} else if (this.isInside) {
this.isInside = undefined;
this.caller.removeInformation(this);
}
};
break;
case "checkPass" :
_mc_target.mcFilter(mc_content_password, _local3);
mc_content_password.caller = this;
mc_content_password.error = e.error;
mc_content_password.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this.isInside == undefined) {
this.isInside = true;
this.caller.showInformation(this);
}
} else if (this.isInside) {
this.isInside = undefined;
this.caller.removeInformation(this);
}
};
break;
case "checkConfirmatedPass" :
_mc_target.mcFilter(mc_content_confPassword, _local3);
mc_content_confPassword.caller = this;
mc_content_confPassword.error = e.error;
mc_content_confPassword.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this.isInside == undefined) {
this.isInside = true;
this.caller.showInformation(this);
}
} else if (this.isInside) {
this.isInside = undefined;
this.caller.removeInformation(this);
}
};
break;
case "checkEmail" :
_mc_target.mcFilter(mc_content_email, _local3);
mc_content_email.caller = this;
mc_content_email.error = e.error;
mc_content_email.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this.isInside == undefined) {
this.isInside = true;
this.caller.showInformation(this);
}
} else if (this.isInside) {
this.isInside = undefined;
this.caller.removeInformation(this);
}
};
break;
case "checkConfirmatedEmail" :
_mc_target.mcFilter(mc_content_confEmail, _local3);
mc_content_confEmail.caller = this;
mc_content_confEmail.error = e.error;
mc_content_confEmail.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this.isInside == undefined) {
this.isInside = true;
this.caller.showInformation(this);
}
} else if (this.isInside) {
this.isInside = undefined;
this.caller.removeInformation(this);
}
};
break;
case "checkDate" :
_mc_target.mcFilter(mc_content_day, _local3);
_mc_target.mcFilter(mc_content_month, _local3);
_mc_target.mcFilter(mc_content_year, _local3);
}
objControlData[e.data] = INVALID;
controlInput = true;
}
function notValidate(e) {
switch (e.data) {
case "checkUser" :
restartTextInput(mc_content_username);
break;
case "checkPass" :
restartTextInput(mc_content_password);
break;
case "checkConfirmatedPass" :
restartTextInput(mc_content_confPassword);
break;
case "checkEmail" :
restartTextInput(mc_content_email);
break;
case "checkConfirmatedEmail" :
restartTextInput(mc_content_confEmail);
break;
case "checkDate" :
restartTextInput(mc_content_day);
restartTextInput(mc_content_month);
restartTextInput(mc_content_year);
}
objControlData[e.data] = INVALID;
}
function restartTextInput(content) {
_filter.color = 16777215 /* 0xFFFFFF */;
var _local2 = [];
_local2.push(_filter);
_mc_target.mcFilter(content, _local2);
}
function activatedBlocker(e) {
trace("Registration.activatedBlocker > e : " + e);
alert.removeEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
_termsPopup.removeEventListener(jaludo.api.as2.TermsAndConditions.ENABLED_BLOCKER_TERMS, fnTermsActivated);
enabledBlocker = true;
removeInformation();
}
function deactivateBlocker(e) {
trace("Registration.deactivateBlocker > e : " + e);
alert.removeEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
alert.removeEventListener(jaludo.api.as2.utils.ModalsPopup.CONFIRMATION_ACEPT_EVENT, fnAlertDeactivated);
_termsPopup.removeEventListener(jaludo.api.as2.TermsAndConditions.OFF_BLOCKER_TERMS, fnTermsDeactivated);
enabledBlocker = false;
}
function showInformation(obj) {
if (enabledBlocker == false) {
_tooltip = new jaludo.api.as2.utils.Tooltip(_content, "tip", "tri", 200);
_tooltip.showTip(_mc_target, obj.error);
}
}
function removeInformation(obj) {
_tooltip.removeTip();
}
function controlDataInput() {
var _local2 = false;
for (var _local3 in objControlData) {
if (objControlData[_local3] == INVALID) {
_local2 = false;
break;
}
_local2 = true;
}
if (_local2 == true) {
return(true);
}
return(false);
}
function uploadImage() {
fileUpload = new flash.net.FileReference();
listen = new Object();
fileUpload.addListener(listen);
listen.onSelect = mx.utils.Delegate.create(this, imageSelected);
listen.onComplete = mx.utils.Delegate.create(this, loadCompleted);
listen.onCancel = mx.utils.Delegate.create(this, selectionCancel);
fileTypes = new Array({description:"Image files", extension:"*.jpg;*.gif;*.jpeg;*.png"});
fileUpload.browse(fileTypes);
}
function imageSelected(image) {
if (fileUpload.size > jaludo.api.as2.utils.UploadImages.MAX_IMAGE_SIZE) {
var _local2 = ("You must select an image lower than " + (jaludo.api.as2.utils.UploadImages.MAX_IMAGE_SIZE / 1000)) + " Kb";
fnAlertActivated = mx.utils.Delegate.create(this, activatedBlocker);
fnAlertDeactivated = mx.utils.Delegate.create(this, deactivateBlocker);
alert = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _content, jaludoApi_registerPopup);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
alert.showPopup(_local2, jaludo.api.as2.utils.ModalsPopup.TYPE_INFORMATIVE);
} else {
jaludoApi_pictureContainer.gotoAndStop("loading");
fileUpload.upload(jaludo.api.as2.APISettings.__get__instance().getData("txt_path") + "uploadFile.php");
}
}
function selectionCancel() {
}
function loadCompleted(image) {
imageId = new LoadVars();
imageId.onLoad = mx.utils.Delegate.create(this, idLoaded);
imageId.load(((jaludo.api.as2.APISettings.__get__instance().getData("images_path") + "/txt/") + fileUpload.name) + ".txt");
}
function idLoaded() {
_idImage = imageId.id;
photo.removeMovieClip();
photo = jaludoApi_pictureContainer.createEmptyMovieClip("photo", jaludoApi_pictureContainer.getNextHighestDepth());
_mcPicture = new MovieClipLoader();
_objListener = {};
_mcPicture.addListener(_objListener);
_objListener.onLoadInit = mx.utils.Delegate.create(this, pictureLoadInit);
_mcPicture.loadClip(jaludo.api.as2.APISettings.__get__instance().getData("images_path") + _idImage, photo);
}
function pictureLoadInit() {
_mcPicture.removeListener(_objListener);
photo._width = 70;
photo._height = 70;
}
function registerUser() {
trace("Registration.registerUser");
country_list.removeList();
date_list.removeAllList();
var _local4;
var _local2;
_local2 = {};
if (controlDataInput()) {
if (jaludoApi_checkTerms == false) {
var _local5 = "You must accept the terms and conditions";
fnAlertActivated = mx.utils.Delegate.create(this, activatedBlocker);
fnAlertDeactivated = mx.utils.Delegate.create(this, deactivateBlocker);
alert = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _content, jaludoApi_registerPopup);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
alert.showPopup(_local5, jaludo.api.as2.utils.ModalsPopup.TYPE_WARNING);
} else if (_country != undefined) {
_local4 = getGender();
if (_local4 != undefined) {
jaludoApi_btnCancel.enabled = false;
_local2.user = _mc_target.getData(jaludoApi_txtUsernameInput);
_local2.password = _mc_target.getData(jaludoApi_txtPasswordInput);
_local2.email = _mc_target.getData(jaludoApi_txtEmailInput);
_local2.birth = (((_mc_target.getData(jaludoApi_txtYear) + "/") + _mc_target.getData(jaludoApi_txtMonth)) + "/") + _mc_target.getData(jaludoApi_txtDay);
_local2.country = _country;
_local2.gender = _local4;
if (_idImage == "") {
_local2.image = imageDefault;
} else {
_local2.image = _idImage;
}
disableRegisterKey();
send_preloader = new jaludo.api.as2.GeneralPreloader(_content, _mc_target, "sending data");
sendingLocal.send(_caller._remote_connection_name, "register", _local2);
} else {
displayWarning();
}
} else {
_filter.color = 16711680 /* 0xFF0000 */;
var _local3 = [];
_local3.push(_filter);
_mc_target.mcFilter(mc_content_country, _local3);
displayWarning();
}
} else {
displayWarning();
}
}
function displayWarning() {
trace("Registration.displayWarning");
fnAlertActivated = mx.utils.Delegate.create(this, activatedBlocker);
fnAlertDeactivated = mx.utils.Delegate.create(this, deactivateBlocker);
alert = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _content, jaludoApi_registerPopup);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
alert.showPopup("Some fields are blank or wrong, please review your form", jaludo.api.as2.utils.ModalsPopup.TYPE_WARNING);
}
function getGender() {
var _local2;
if (jaludoApi_selectMale.selected == true) {
_local2 = "Male";
} else if (jaludoApi_selectFemale.selected == true) {
_local2 = "Female";
} else {
_local2 = undefined;
}
return(_local2);
}
function userInvalid(e) {
for (var _local3 in e) {
trace((("key : " + _local3) + ", value : ") + e[_local3]);
}
jaludo.api.as2.utils.Tracer.sTraceObject(e);
send_preloader.dispose();
enabledRegisterKey();
jaludoApi_btnCancel.enabled = true;
if (e.motive == "user_already_exists") {
var _local4 = "Usename already in use, please select another one";
fnAlertActivated = mx.utils.Delegate.create(this, activatedBlocker);
fnAlertDeactivated = mx.utils.Delegate.create(this, deactivateBlocker);
alert = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _content, jaludoApi_registerPopup);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
alert.showPopup(_local4, jaludo.api.as2.utils.ModalsPopup.TYPE_WARNING);
jaludo.api.as2.Validator.__get__instance().checkUser("");
_mc_target.setData(jaludoApi_txtUsernameInput, "");
} else if (e.motive == "email_already_exists") {
var _local4 = "Email already in use, please select another one";
fnAlertActivated = mx.utils.Delegate.create(this, activatedBlocker);
fnAlertDeactivated = mx.utils.Delegate.create(this, deactivateBlocker);
alert = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _content, jaludoApi_registerPopup);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
alert.showPopup(_local4, jaludo.api.as2.utils.ModalsPopup.TYPE_WARNING);
jaludo.api.as2.Validator.__get__instance().checkEmail("");
clearConfirmation(jaludoApi_txtEmailInput);
_mc_target.setData(jaludoApi_txtEmailInput, "");
}
}
function registerSuccesfull(e) {
send_preloader.dispose();
_caller.registerCompleted(e);
}
function disableRegisterKey() {
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
dispose();
}
function enabledRegisterKey() {
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, jaludoApi_registerPopup, registerUser, cancelRegistration, jaludoApi_btnRegisterUser, jaludoApi_btnCancel);
}
function registerError(e) {
send_preloader.dispose();
var _local2 = "An error has ocurred with your register, please try again later";
fnAlertActivated = mx.utils.Delegate.create(this, activatedBlocker);
fnAlertDeactivated = mx.utils.Delegate.create(this, deactivateBlocker);
alert = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _content, jaludoApi_registerPopup);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
alert.showPopup(_local2, jaludo.api.as2.utils.ModalsPopup.TYPE_WARNING);
jaludoApi_btnCancel.enabled = true;
}
function showTerms() {
date_list.removeAllList();
country_list.removeList();
_termsPopup = new jaludo.api.as2.TermsAndConditions(this, _content, _mc_target, jaludoApi_registerPopup);
fnTermsActivated = mx.utils.Delegate.create(this, activatedBlocker);
fnTermsDeactivated = mx.utils.Delegate.create(this, deactivateBlocker);
_termsPopup.addEventListener(jaludo.api.as2.TermsAndConditions.ENABLED_BLOCKER_TERMS, fnTermsActivated);
_termsPopup.addEventListener(jaludo.api.as2.TermsAndConditions.OFF_BLOCKER_TERMS, fnTermsDeactivated);
_termsPopup.showTerms();
}
function checkingTerms(value) {
_mc_blocker_alert.dispose();
jaludoApi_btnCancel.enabled = true;
if (value == jaludo.api.as2.TermsAndConditions.TERMS_ACCEPTED) {
jaludoApi_checkTerms = true;
jaludoApi_btnViewTerms.gotoAndStop("accepted");
} else if (value == jaludo.api.as2.TermsAndConditions.TERMS_DECLINE) {
jaludoApi_checkTerms = false;
jaludoApi_btnViewTerms.gotoAndStop("not_accepted");
showConfirmation("Rejecting the terms and conditions will cancel the registration process. Are you sure you want to reject the terms and conditions?");
}
}
function showConfirmation(message) {
trace("Registration.showConfirmation > message : " + message);
alert = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _mc_target, jaludoApi_registerPopup);
fnAlertActivated = mx.utils.Delegate.create(this, activatedBlocker);
fnAlertConfirmation = mx.utils.Delegate.create(this, disableRegisterKey);
fnAlertDeactivated = mx.utils.Delegate.create(this, deactivateBlocker);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
alert.addEventListener(jaludo.api.as2.utils.ModalsPopup.CONFIRMATION_ACEPT_EVENT, fnAlertConfirmation);
alert.showConfirmationPopup(message);
}
function cancelRegistration() {
trace("cancelRegistration : " + cancelRegistration);
if ((controlInput == true) || (jaludoApi_checkTerms == true)) {
jaludoApi_btnCancel.enabled = false;
showConfirmation("You are closing the registration form. Do you want to cancel the register process?");
} else {
disableRegisterKey();
}
}
function setDay(name) {
_mc_target.setData(jaludoApi_txtDay, name);
onSetFocus(jaludoApi_txtDay, null);
}
function setMonth(name) {
_mc_target.setData(jaludoApi_txtMonth, name);
onSetFocus(jaludoApi_txtMonth, null);
}
function setYear(name) {
_mc_target.setData(jaludoApi_txtYear, name);
onSetFocus(jaludoApi_txtYear, null);
}
function setCountry(name) {
_filter.color = 32768;
var _local2 = {};
var _local3 = [];
_local3.push(_filter);
_local2.textColor = 0;
_mc_target.setData(jaludoApi_countrySelected, name);
_mc_target.mcFilter(mc_content_country, _local3);
_mc_target.setProperties(jaludoApi_countrySelected, _local2);
_country = name;
controlInput = true;
}
function getCountry() {
return(_country);
}
function dispose() {
_mc_blocker.dispose();
alert.removeEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
alert.removeEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
alert.removeEventListener(jaludo.api.as2.utils.ModalsPopup.CONFIRMATION_ACEPT_EVENT, fnAlertDeactivated);
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, data:{state:false}});
_caller.menu._visible = true;
jaludoApi_txtPasswordInput.removeListener(_listenerChanged);
jaludoApi_txtEmailInput.removeListener(_listenerChanged);
jaludo.api.as2.Validator.__get__instance().removeEventListener(jaludo.api.as2.Validator.NOT_VALIDATE, fnNotValidate);
jaludo.api.as2.Validator.__get__instance().removeEventListener(jaludo.api.as2.Validator.ERROR_VALIDATED, fnError);
jaludo.api.as2.Validator.__get__instance().removeEventListener(jaludo.api.as2.Validator.VALIDATED_SUCCESFULL, fnValidationSucces);
Selection.removeListener(_listener);
jaludoApi_registerPopup.onEnterFrame = null;
jaludoApi_registerPopup.removeMovieClip();
}
var _idImage = "";
var imageDefault = "avatar_default.png";
var VALIDATED = "VALIDATED";
var INVALID = "INVALID";
var controlInput = false;
}
Symbol 1064 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.127";
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 1065 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 1066 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 1067 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 1068 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 1069 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.127";
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 1070 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.127";
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 1071 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local11 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local9 = (__width - borderW) - borderW;
var _local10 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local11 = Math.min(_local9 - _local7, _local15 + 5);
_local3._width = _local11;
_local8 = Math.min(_local10, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local9 - _local11) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local9 - _local11) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local11;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local10 - _local6) / 2;
_local4 = (_local10 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local11 = Math.min(_local9, _local15 + 5);
_local3._width = _local11;
_local8 = Math.min(_local10 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local9 - _local11) / 2;
_local2._x = (_local9 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local10 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local10 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.127";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 1072 MovieClip [__Packages.mx.controls.RadioButton] Frame 0
class mx.controls.RadioButton extends mx.controls.Button
{
var setToggle, __value, selected, releaseFocus, phase, dispatchEvent, _parent, __data, setState, __state, getFocusManager;
function RadioButton () {
super();
}
function init(Void) {
setToggle(__toggle);
__value = this;
super.init();
}
function size(Void) {
super.size();
}
function onRelease() {
if (selected) {
return(undefined);
}
releaseFocus();
phase = "up";
setSelected(true);
dispatchEvent({type:"click"});
_parent[__groupName].dispatchEvent({type:"click"});
}
function setData(val) {
__data = val;
}
function set data(val) {
__data = val;
//return(data);
}
function getData(val) {
return(__data);
}
function get data() {
return(__data);
}
function onUnload() {
if (_parent[__groupName].selectedRadio == this) {
_parent[__groupName].selectedRadio = undefined;
}
_parent[__groupName].radioList[indexNumber] = null;
delete _parent[__groupName].radioList[indexNumber];
}
function setSelected(val) {
var _local2 = _parent[__groupName];
var _local5 = _local2.selectedRadio.__width;
var _local4 = _local2.selectedRadio.__height;
if (val) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
} else if (_local2.selectedRadio == this) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = undefined;
}
setState(val);
}
function deleteGroupObj(groupName) {
delete _parent[groupName];
}
function getGroupName() {
return(__groupName);
}
function get groupName() {
return(__groupName);
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
delete _parent[__groupName].radioList[__data];
addToGroup(groupName);
__groupName = groupName;
}
function set groupName(groupName) {
setGroupName(groupName);
//return(this.groupName);
}
function addToGroup(groupName) {
if ((groupName == "") || (groupName == undefined)) {
return(undefined);
}
var _local2 = _parent[groupName];
if (_local2 == undefined) {
_local2 = (_parent[groupName] = new mx.controls.RadioButtonGroup());
_local2.__groupName = groupName;
}
_local2.addInstance(this);
if (__state) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
}
}
function get emphasized() {
return(undefined);
}
function keyDown(e) {
switch (e.code) {
case 40 :
setNext();
break;
case 38 :
setPrev();
break;
case 37 :
setPrev();
break;
case 39 :
setNext();
}
}
function setNext() {
var _local2 = _parent[groupName];
if ((_local2.selectedRadio.indexNumber + 1) == _local2.radioList.length) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : -1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 + _local3] != undefined) && (_local2.radioList[_local4 + _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 + _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function setPrev() {
var _local2 = _parent[groupName];
if (_local2.selectedRadio.indexNumber == 0) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : 1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 - _local3] != undefined) && (_local2.radioList[_local4 - _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 - _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "RadioButton";
static var symbolOwner = mx.controls.RadioButton;
static var version = "2.0.2.127";
var className = "RadioButton";
var btnOffset = 0;
var __toggle = true;
var __label = "Radio Button";
var __labelPlacement = "right";
var ignoreClassStyleDeclaration = {Button:1};
var __groupName = "radioGroup";
var indexNumber = 0;
var offset = false;
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "RadioFalseUp";
var falseDownIcon = "RadioFalseDown";
var falseOverIcon = "RadioFalseOver";
var falseDisabledIcon = "RadioFalseDisabled";
var trueUpIcon = "RadioTrueUp";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "RadioTrueDisabled";
var centerContent = false;
var borderW = 0;
var clipParameters = {labelPlacement:1, data:1, label:1, groupName:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.RadioButton.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
}
Symbol 1073 MovieClip [__Packages.mx.controls.RadioButtonGroup] Frame 0
class mx.controls.RadioButtonGroup
{
var radioList, __groupName, selectedRadio;
function RadioButtonGroup () {
init();
mx.events.UIEventDispatcher.initialize(this);
}
function init(Void) {
radioList = new Array();
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
}
function getGroupName() {
return(__groupName);
}
function addInstance(instance) {
instance.indexNumber = indexNumber++;
radioList.push(instance);
}
function getValue() {
if (selectedRadio.data == "") {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function getLabelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function setLabelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
}
function setEnabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
}
function setSize(val, val1) {
for (var _local3 in radioList) {
radioList[_local3].setSize(val, val1);
}
}
function getEnabled() {
for (var _local4 in radioList) {
var _local2 = radioList[_local4].enabled;
var _local3 = t + (_local2 + 0);
}
if (_local3 == radioList.length) {
return(true);
}
if (_local3 == 0) {
return(false);
}
}
function setStyle(name, val) {
for (var _local4 in radioList) {
radioList[_local4].setStyle(name, val);
}
}
function setInstance(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
}
function getInstance() {
return(selectedRadio);
}
function setValue(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio.hitArea_mc._height = selectedRadio.__height;
selectedRadio.hitArea_mc._width = selectedRadio.__width;
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
selectedRadio.hitArea_mc._height = (selectedRadio.hitArea_mc._width = 0);
}
}
function set groupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return;
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
//return(this.groupName);
}
function get groupName() {
return(__groupName);
}
function set selectedData(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
}
//return(selectedData);
}
function get selectedData() {
if ((selectedRadio.data == "") || (selectedRadio.data == undefined)) {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function get selection() {
return(selectedRadio);
}
function set selection(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
//return(selection);
}
function set labelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
//return(labelPlacement);
}
function get labelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function set enabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
//return(enabled);
}
function get enabled() {
var _local2 = 0;
for (var _local3 in radioList) {
_local2 = _local2 + radioList[_local3].enabled;
}
if (_local2 == 0) {
return(false);
}
if (_local2 == radioList.length) {
return(true);
}
}
static var symbolName = "RadioButtonGroup";
static var symbolOwner = mx.controls.RadioButtonGroup;
static var version = "2.0.2.127";
var className = "RadioButtonGroup";
var indexNumber = 0;
}
Symbol 1074 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 1075 MovieClip [__Packages.jaludo.api.as2.TermsAndConditions] Frame 0
class jaludo.api.as2.TermsAndConditions extends mx.events.EventDispatcher
{
var _caller, _container, _mc_target, _mouseListener, _mc_blocker_alert, tab_target, dispatchEvent, jaludoApi_termsPopup, jaludoApi_btnAcept, jaludoApi_btnDecline, jaludoApi_btnCancel, mc_container, mc_at_scroll, scroll, mc_scrollbar, _scrollbar_pressed, _scrollerCounter, scrollbar_manager, _prev_mouse_y;
function TermsAndConditions (caller, container, mc_target, disableTabTarget) {
super();
_caller = caller;
_container = container;
_mc_target = mc_target;
_mouseListener = {};
_mc_blocker_alert = new jaludo.api.as2.Blocker(_container);
if (disableTabTarget != undefined) {
tab_target = disableTabTarget;
tab_target.tabChildren = false;
for (var _local3 in tab_target) {
tab_target[_local3].enabled = false;
}
}
}
function showTerms() {
dispatchEvent({type:ENABLED_BLOCKER_TERMS});
init();
}
function init() {
jaludoApi_termsPopup = _container.attachMovie("jaludoApi_termsPopup", "jaludoApi_termsPopup", _container.getNextHighestDepth());
jaludoApi_termsPopup._x = jaludo.api.as2.Locator.getCenterX();
jaludoApi_termsPopup._y = jaludo.api.as2.Locator.getCenterY();
jaludoApi_btnAcept = jaludoApi_termsPopup.jaludoApi_btnAcept;
jaludoApi_btnDecline = jaludoApi_termsPopup.jaludoApi_btnDecline;
jaludoApi_btnCancel = jaludoApi_termsPopup.jaludoApi_btnCancel;
jaludoApi_btnAcept.onRelease = mx.utils.Delegate.create(this, termsAccepted);
jaludoApi_btnDecline.onRelease = mx.utils.Delegate.create(this, termsDecline);
jaludoApi_btnCancel.onRelease = mx.utils.Delegate.create(this, closeTerms);
_mc_target.applyTab(jaludoApi_btnAcept, 1);
_mc_target.applyTab(jaludoApi_btnDecline, 2);
_mc_target.applyTab(jaludoApi_btnCancel, 3);
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, jaludoApi_termsPopup, termsDecline, closeTerms, jaludoApi_btnCancel, jaludoApi_btnAcept);
mc_container = jaludoApi_termsPopup.mc_content;
mc_at_scroll = jaludoApi_termsPopup.attachMovie("jaludoApi_terms_text", "jaludoApi_terms_text", jaludoApi_termsPopup.getNextHighestDepth());
mc_at_scroll._x = mc_container._x;
mc_at_scroll._y = mc_container._y;
scroll = new jaludo.api.as2.utils.Scroll(jaludoApi_termsPopup);
scroll.__set___content(mc_at_scroll);
scroll.__set___upArrow(jaludoApi_termsPopup.mc_up_arrow);
scroll.__set___downArrow(jaludoApi_termsPopup.mc_down_arrow);
scroll.__set___verticalBar(jaludoApi_termsPopup.mc_scrollbar);
scroll.__set___orientation(1);
scroll.__set___width(mc_container._width);
scroll.__set___height(150);
scroll.__set___x(mc_container._x);
scroll.__set___y(mc_container._y);
scroll.generateScroll();
_mouseListener.onMouseWheel = mx.utils.Delegate.create(this, doScroll);
Mouse.addListener(_mouseListener);
}
function onReleaseBackScroller() {
if (mc_scrollbar._ymouse < 0) {
upScroll();
} else {
downScroll();
}
}
function onReleaseScrollBar() {
_scrollbar_pressed = false;
}
function onPressScrollBar() {
_scrollbar_pressed = true;
_scrollerCounter = 0;
}
function downScroll() {
scrollbar_manager.doScroll(-1);
}
function upScroll() {
scrollbar_manager.doScroll(1);
}
function doScroll(delta) {
if (delta > 0) {
upScroll();
} else {
downScroll();
}
}
function onMouseMoveScrollBar() {
if (_scrollbar_pressed) {
if (mc_scrollbar._ymouse < _prev_mouse_y) {
_scrollerCounter--;
} else {
_scrollerCounter++;
}
if (Math.abs(_scrollerCounter) > 10) {
if (_scrollerCounter > 0) {
downScroll();
} else {
upScroll();
}
_scrollerCounter = 0;
}
_prev_mouse_y = mc_scrollbar._ymouse;
}
}
function termsAccepted() {
dispatchEvent({type:OFF_BLOCKER_TERMS});
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
_caller.checkingTerms(TERMS_ACCEPTED);
removeTermsPopup();
}
function termsDecline() {
dispatchEvent({type:OFF_BLOCKER_TERMS});
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
_caller.checkingTerms(TERMS_DECLINE);
removeTermsPopup();
}
function closeTerms() {
dispatchEvent({type:OFF_BLOCKER_TERMS});
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
removeTermsPopup();
}
function removeTermsPopup() {
_mc_blocker_alert.dispose();
if (tab_target != undefined) {
tab_target.tabChildren = true;
for (var _local2 in tab_target) {
tab_target[_local2].enabled = true;
}
}
jaludoApi_termsPopup.removeMovieClip();
Mouse.removeListener(_mouseListener);
}
static var TERMS_ACCEPTED = "TERMS_ACCEPTED";
static var TERMS_DECLINE = "TERMS_DECLINE";
static var ENABLED_BLOCKER_TERMS = "ENABLED_BLOCKER_TERMS";
static var OFF_BLOCKER_TERMS = "OFF_BLOCKER_TERMS";
}
Symbol 1076 MovieClip [__Packages.jaludo.api.as2.displayutil.ScrollController] Frame 0
class jaludo.api.as2.displayutil.ScrollController
{
var _mc_to_scroll, _mc_scrollbar, _mc_masck, UP_LIMIT, DOWN_LIMIT, SCROLL_MIN_SIZE, RECORDS_SCROLLBAR_RELATION, resto, _scroll_relation;
function ScrollController (mc_to_scrolling, mc_scrollbar, mc_masck, up_limit, down_limit) {
_mc_to_scroll = mc_to_scrolling;
_mc_scrollbar = mc_scrollbar;
_mc_masck = mc_masck;
UP_LIMIT = up_limit;
DOWN_LIMIT = down_limit;
SCROLL_MIN_SIZE = 5;
RECORDS_SCROLLBAR_RELATION = 200;
resto = Number(_mc_to_scroll._height - _mc_masck._height);
mc_scrollbar._height = mc_scrollbar._height - Math.ceil(resto / _mc_scrollbar._height);
if (_mc_scrollbar._height < SCROLL_MIN_SIZE) {
_mc_scrollbar._height = SCROLL_MIN_SIZE;
}
_scroll_relation = Math.ceil(resto / _mc_scrollbar._height);
}
function doScroll(delta) {
var _local3 = (resto / _scroll_relation) * (delta / Math.abs(delta));
if ((delta > 0) && ((_mc_to_scroll._y + _local3) > UP_LIMIT)) {
_mc_to_scroll._y = _mc_to_scroll._y + (UP_LIMIT - _mc_to_scroll._y);
} else if ((delta < 0) && (((_mc_to_scroll._y + _local3) + _mc_to_scroll._height) < DOWN_LIMIT)) {
_mc_to_scroll._y = _mc_to_scroll._y - ((_mc_to_scroll._y + _mc_to_scroll._height) - DOWN_LIMIT);
} else {
_mc_to_scroll._y = _mc_to_scroll._y + _local3;
}
if ((_mc_scrollbar._y <= UP_LIMIT) && (delta > 0)) {
return(undefined);
}
if (((_mc_scrollbar._y + _mc_scrollbar._height) >= DOWN_LIMIT) && (delta < 0)) {
return(undefined);
}
_mc_scrollbar._y = _mc_scrollbar._y - (1 * (delta / Math.abs(delta)));
}
}
Symbol 1077 MovieClip [__Packages.jaludo.api.as2.utils.Scroll] Frame 0
class jaludo.api.as2.utils.Scroll
{
var m_timeline_mc, m_x, m_y, m_width, m_height, m_arrows, m_bar, m_orientation, m_barWidth, m_increase, m_speed, m_arrowColor, m_barColor, m_idInterval, m_mask_mc, m_content_mc, m_upArrow_mc, m_downArrow_mc, m_leftArrow_mc, m_rightArrow_mc, m_verticalBar_mc, m_horizontalBar_mc, m_verticalBarGuide_mc, m_horizontalBarGuide_mc, _mouseListener;
function Scroll (timeline) {
removeAll();
if (timeline != undefined) {
m_timeline_mc = timeline;
} else {
m_timeline_mc = _root;
}
m_x = 0;
m_y = 0;
m_width = 0;
m_height = 0;
m_arrows = true;
m_bar = true;
m_orientation = BOTH;
m_barWidth = BAR_LEN;
m_increase = DFT_INCREASE;
m_speed = DFT_SPEED;
m_arrowColor = ARROW_COLOR;
m_barColor = BAR_COLOR;
m_idInterval = 0;
}
function generateScroll() {
m_mask_mc.removeMovieClip();
initInterface();
}
function get _x() {
return(m_x);
}
function set _x(x) {
m_x = x;
//return(_x);
}
function get _y() {
return(m_y);
}
function set _y(y) {
m_y = y;
//return(_y);
}
function get _width() {
return(m_width);
}
function set _width(width) {
m_width = width;
//return(_width);
}
function get _height() {
return(m_height);
}
function set _height(height) {
m_height = height;
//return(_height);
}
function get _arrows() {
return(m_arrows);
}
function set _arrows(arrows) {
m_arrows = arrows;
//return(_arrows);
}
function get _bar() {
return(m_bar);
}
function set _bar(bar) {
m_bar = bar;
//return(_bar);
}
function get _orientation() {
return(m_orientation);
}
function set _orientation(orientation) {
if (((orientation != BOTH) && (orientation != VERTICAL)) && (orientation != HORIZONTAL)) {
m_orientation = BOTH;
} else {
m_orientation = orientation;
}
//return(_orientation);
}
function get _barwidth() {
return(m_barWidth);
}
function set _barwidth(barwidth) {
m_barWidth = barwidth;
//return(_barwidth);
}
function get _increase() {
return(m_increase);
}
function set _increase(increase) {
m_increase = increase;
//return(_increase);
}
function get _speed() {
return(m_speed);
}
function set _speed(speed) {
if (speed < MIN_SPEED) {
m_speed = MIN_SPEED;
} else if (speed > MAX_SPEED) {
m_speed = MAX_SPEED;
} else {
m_speed = speed;
}
//return(_speed);
}
function get _arrowcolor() {
return(m_arrowColor);
}
function set _arrowcolor(arrowcolor) {
m_arrowColor = arrowcolor;
//return(_arrowcolor);
}
function get _barcolor() {
return(m_barColor);
}
function set _barcolor(barcolor) {
m_barColor = barcolor;
//return(_barcolor);
}
function get _timeline() {
return(m_timeline_mc);
}
function set _timeline(timeline) {
m_timeline_mc = timeline;
//return(_timeline);
}
function get _content() {
return(m_content_mc);
}
function set _content(content) {
m_content_mc = content;
//return(_content);
}
function get _upArrow() {
return(m_upArrow_mc);
}
function set _upArrow(upArrow) {
m_upArrow_mc = upArrow;
//return(_upArrow);
}
function get _downArrow() {
return(m_downArrow_mc);
}
function set _downArrow(downArrow) {
m_downArrow_mc = downArrow;
//return(_downArrow);
}
function get _leftArrow() {
return(m_leftArrow_mc);
}
function set _leftArrow(leftArrow) {
m_leftArrow_mc = leftArrow;
//return(_leftArrow);
}
function get _rightArrow() {
return(m_rightArrow_mc);
}
function set _rightArrow(rightArrow) {
m_rightArrow_mc = rightArrow;
//return(_rightArrow);
}
function get _verticalBar() {
return(m_verticalBar_mc);
}
function set _verticalBar(verticalBar) {
m_verticalBar_mc = verticalBar;
//return(_verticalBar);
}
function get _horizontalBar() {
return(m_horizontalBar_mc);
}
function set _horizontalBar(horizontalBar) {
m_horizontalBar_mc = horizontalBar;
//return(_horizontalBar);
}
function removeAll() {
m_timeline_mc = null;
m_mask_mc = null;
m_upArrow_mc = null;
m_downArrow_mc = null;
m_leftArrow_mc = null;
m_rightArrow_mc = null;
m_verticalBar_mc = null;
m_verticalBarGuide_mc = null;
m_horizontalBar_mc = null;
m_horizontalBarGuide_mc = null;
}
function initInterface() {
createMask();
if (m_content_mc._height > m_height) {
createVerticalArrows();
createVerticalBar();
} else {
m_upArrow_mc.removeMovieClip();
m_downArrow_mc.removeMovieClip();
m_verticalBar_mc.removeMovieClip();
m_verticalBarGuide_mc.removeMovieClip();
m_upArrow_mc = null;
m_downArrow_mc = null;
m_verticalBar_mc = null;
m_verticalBarGuide_mc = null;
}
if (m_content_mc._width > m_width) {
createHorizontalArrows();
createHorizontalBar();
} else {
m_leftArrow_mc.removeMovieClip();
m_rightArrow_mc.removeMovieClip();
m_horizontalBar_mc.removeMovieClip();
m_horizontalBarGuide_mc.removeMovieClip();
m_leftArrow_mc = null;
m_rightArrow_mc = null;
m_horizontalBar_mc = null;
m_horizontalBarGuide_mc = null;
}
}
function createMask() {
m_mask_mc = m_timeline_mc.createEmptyMovieClip("mask", m_timeline_mc.getNextHighestDepth());
m_mask_mc._x = m_x;
m_mask_mc._y = m_y;
m_mask_mc.beginFill(16711680);
m_mask_mc.moveTo(0, 0);
m_mask_mc.lineTo(m_width, 0);
m_mask_mc.lineTo(m_width, m_height);
m_mask_mc.lineTo(0, m_height);
m_mask_mc.lineTo(0, 0);
m_mask_mc.endFill();
m_content_mc.setMask(m_mask_mc);
}
function createVerticalArrows() {
if (m_arrows == false) {
m_upArrow_mc = null;
m_downArrow_mc = null;
} else {
if ((m_upArrow_mc == null) || (m_downArrow_mc == null)) {
m_upArrow_mc = null;
m_downArrow_mc = null;
createDefaultVerticalArrows();
}
m_upArrow_mc.onPress = mx.utils.Delegate.create(this, __upArrowPressed);
m_upArrow_mc.onRelease = mx.utils.Delegate.create(this, __upArrowReleased);
m_upArrow_mc.onReleaseOutside = mx.utils.Delegate.create(this, __upArrowReleased);
m_downArrow_mc.onPress = mx.utils.Delegate.create(this, __downArrowPressed);
m_downArrow_mc.onRelease = mx.utils.Delegate.create(this, __downArrowReleased);
m_downArrow_mc.onReleaseOutside = mx.utils.Delegate.create(this, __downArrowReleased);
_mouseListener = {};
_mouseListener.onMouseWheel = mx.utils.Delegate.create(this, doScroll);
Mouse.addListener(_mouseListener);
}
}
function createDefaultVerticalArrows() {
m_upArrow_mc = m_timeline_mc.createEmptyMovieClip("upArrow", m_timeline_mc.getNextHighestDepth());
m_upArrow_mc._x = m_x + m_width;
m_upArrow_mc._y = m_y;
createDefaultArrows(m_upArrow_mc);
m_downArrow_mc = m_timeline_mc.createEmptyMovieClip("downArrow", m_timeline_mc.getNextHighestDepth());
m_downArrow_mc._x = m_x + m_width;
m_downArrow_mc._y = (m_y + m_height) - m_barWidth;
createDefaultArrows(m_downArrow_mc);
}
function createHorizontalArrows() {
if (m_arrows == false) {
m_leftArrow_mc = null;
m_rightArrow_mc = null;
} else {
if ((m_leftArrow_mc == null) || (m_rightArrow_mc == null)) {
m_leftArrow_mc = null;
m_rightArrow_mc = null;
createDefaultHorizontalArrows();
}
m_leftArrow_mc.onPress = mx.utils.Delegate.create(this, __leftArrowPressed);
m_leftArrow_mc.onRelease = mx.utils.Delegate.create(this, __leftArrowReleased);
m_leftArrow_mc.onReleaseOutside = mx.utils.Delegate.create(this, __leftArrowReleased);
m_rightArrow_mc.onPress = mx.utils.Delegate.create(this, __rightArrowPressed);
m_rightArrow_mc.onRelease = mx.utils.Delegate.create(this, __rightArrowReleased);
m_rightArrow_mc.onReleaseOutside = mx.utils.Delegate.create(this, __rightArrowReleased);
}
}
function createDefaultHorizontalArrows() {
m_leftArrow_mc = m_timeline_mc.createEmptyMovieClip("leftArrow", m_timeline_mc.getNextHighestDepth());
m_leftArrow_mc._x = m_x;
m_leftArrow_mc._y = m_y + m_height;
createDefaultArrows(m_leftArrow_mc);
m_rightArrow_mc = m_timeline_mc.createEmptyMovieClip("rightArrow", m_timeline_mc.getNextHighestDepth());
m_rightArrow_mc._x = (m_x + m_width) - m_barWidth;
m_rightArrow_mc._y = m_y + m_height;
createDefaultArrows(m_rightArrow_mc);
}
function createDefaultArrows(arrow_mc) {
var _local3 = Math.floor(m_barWidth / 10);
arrow_mc.beginFill(m_arrowColor);
arrow_mc.moveTo(0, 0);
arrow_mc.lineTo(m_barWidth, 0);
arrow_mc.lineTo(m_barWidth, m_barWidth);
arrow_mc.lineTo(0, m_barWidth);
arrow_mc.lineTo(0, 0);
arrow_mc.endFill();
arrow_mc.beginFill(16777215, 20);
arrow_mc.moveTo(0, (3 * m_barWidth) / 4);
arrow_mc.curveTo(m_barWidth / 4, m_barWidth / 2, m_barWidth / 2, m_barWidth / 2);
arrow_mc.curveTo((3 * m_barWidth) / 4, m_barWidth / 2, m_barWidth, m_barWidth / 4);
arrow_mc.lineTo(m_barWidth, 0);
arrow_mc.lineTo(0, 0);
arrow_mc.lineTo(0, (3 * m_barWidth) / 4);
arrow_mc.endFill();
arrow_mc.beginFill(16777215, 10);
arrow_mc.moveTo(m_barWidth, 0);
arrow_mc.lineTo(m_barWidth, m_barWidth);
arrow_mc.lineTo(0, m_barWidth);
arrow_mc.lineTo(_local3, m_barWidth - _local3);
arrow_mc.lineTo(m_barWidth - _local3, m_barWidth - _local3);
arrow_mc.lineTo(m_barWidth - _local3, _local3);
arrow_mc.lineTo(m_barWidth, 0);
arrow_mc.endFill();
arrow_mc.beginFill(0, 10);
arrow_mc.moveTo(0, 0);
arrow_mc.lineTo(m_barWidth, 0);
arrow_mc.lineTo(m_barWidth - _local3, _local3);
arrow_mc.lineTo(_local3, _local3);
arrow_mc.lineTo(_local3, m_barWidth - _local3);
arrow_mc.lineTo(0, m_barWidth);
arrow_mc.lineTo(0, 0);
arrow_mc.endFill();
}
function createVerticalBar() {
if (m_bar == false) {
m_verticalBar_mc = null;
} else {
if (m_verticalBar_mc == null) {
createDefaultVerticalBar();
}
m_verticalBar_mc.onPress = mx.utils.Delegate.create(this, __verticalBarPressed);
m_verticalBar_mc.onRelease = mx.utils.Delegate.create(this, __verticalBarReleased);
m_verticalBar_mc.onReleaseOutside = mx.utils.Delegate.create(this, __verticalBarReleased);
m_verticalBar_mc._yscale = Math.floor((100 * m_height) / m_content_mc._height);
}
}
function createDefaultVerticalBar() {
var _local2 = Math.floor(m_barWidth / 10);
m_verticalBarGuide_mc = m_timeline_mc.createEmptyMovieClip("verticalBarGuide", m_timeline_mc.getNextHighestDepth());
m_verticalBarGuide_mc._x = m_x + m_width;
m_verticalBarGuide_mc._y = m_y + m_barWidth;
m_verticalBarGuide_mc.beginFill(m_barColor);
m_verticalBarGuide_mc.moveTo(0, 0);
m_verticalBarGuide_mc.lineTo(m_barWidth, 0);
m_verticalBarGuide_mc.lineTo(m_barWidth, m_height - (2 * m_barWidth));
m_verticalBarGuide_mc.lineTo(0, m_height - (2 * m_barWidth));
m_verticalBarGuide_mc.lineTo(0, 0);
m_verticalBarGuide_mc.endFill();
m_verticalBarGuide_mc._alpha = 20;
m_verticalBar_mc = m_timeline_mc.createEmptyMovieClip("verticalBar", m_timeline_mc.getNextHighestDepth());
m_verticalBar_mc._x = m_x + m_width;
m_verticalBar_mc._y = m_y + m_barWidth;
m_verticalBar_mc.beginFill(m_barColor);
m_verticalBar_mc.moveTo(0, 0);
m_verticalBar_mc.lineTo(m_barWidth, 0);
m_verticalBar_mc.lineTo(m_barWidth, m_height - (2 * m_barWidth));
m_verticalBar_mc.lineTo(0, m_height - (2 * m_barWidth));
m_verticalBar_mc.lineTo(0, 0);
m_verticalBar_mc.endFill();
m_verticalBar_mc.beginFill(16777215, 20);
m_verticalBar_mc.moveTo(0, 0);
m_verticalBar_mc.lineTo(m_verticalBar_mc._width, 0);
m_verticalBar_mc.lineTo(m_verticalBar_mc._width, m_verticalBar_mc._height / 2);
m_verticalBar_mc.lineTo(0, m_verticalBar_mc._height / 2);
m_verticalBar_mc.lineTo(0, 0);
m_verticalBar_mc.endFill();
m_verticalBar_mc.beginFill(16777215, 10);
m_verticalBar_mc.moveTo(m_verticalBar_mc._width, 0);
m_verticalBar_mc.lineTo(m_verticalBar_mc._width, m_verticalBar_mc._height);
m_verticalBar_mc.lineTo(0, m_verticalBar_mc._height);
m_verticalBar_mc.lineTo(_local2, m_verticalBar_mc._height - _local2);
m_verticalBar_mc.lineTo(m_verticalBar_mc._width - _local2, m_verticalBar_mc._height - _local2);
m_verticalBar_mc.lineTo(m_verticalBar_mc._width - _local2, _local2);
m_verticalBar_mc.lineTo(m_verticalBar_mc._width, 0);
m_verticalBar_mc.endFill();
m_verticalBar_mc.beginFill(0, 10);
m_verticalBar_mc.moveTo(0, 0);
m_verticalBar_mc.lineTo(m_verticalBar_mc._width, 0);
m_verticalBar_mc.lineTo(m_verticalBar_mc._width - _local2, _local2);
m_verticalBar_mc.lineTo(_local2, _local2);
m_verticalBar_mc.lineTo(_local2, m_verticalBar_mc._height - _local2);
m_verticalBar_mc.lineTo(0, m_verticalBar_mc._height);
m_verticalBar_mc.lineTo(0, 0);
m_verticalBar_mc.endFill();
}
function createHorizontalBar() {
if (m_bar == false) {
m_horizontalBar_mc = null;
} else {
if (m_horizontalBar_mc == null) {
createDefaultHorizontalBar();
}
m_horizontalBar_mc.onPress = mx.utils.Delegate.create(this, __horizontalBarPressed);
m_horizontalBar_mc.onRelease = mx.utils.Delegate.create(this, __horizontalBarReleased);
m_horizontalBar_mc.onReleaseOutside = mx.utils.Delegate.create(this, __horizontalBarReleased);
m_horizontalBar_mc._xscale = Math.floor((100 * m_width) / m_content_mc._width);
}
}
function createDefaultHorizontalBar() {
var _local2 = Math.floor(m_barWidth / 10);
m_horizontalBarGuide_mc = m_timeline_mc.createEmptyMovieClip("horizontalBarGuide", m_timeline_mc.getNextHighestDepth());
m_horizontalBarGuide_mc._x = m_x + m_barWidth;
m_horizontalBarGuide_mc._y = m_y + m_height;
m_horizontalBarGuide_mc.beginFill(m_barColor);
m_horizontalBarGuide_mc.moveTo(0, 0);
m_horizontalBarGuide_mc.lineTo(m_width - (2 * m_barWidth), 0);
m_horizontalBarGuide_mc.lineTo(m_width - (2 * m_barWidth), m_barWidth);
m_horizontalBarGuide_mc.lineTo(0, m_barWidth);
m_horizontalBarGuide_mc.lineTo(0, 0);
m_horizontalBarGuide_mc.endFill();
m_horizontalBarGuide_mc._alpha = 20;
m_horizontalBar_mc = m_timeline_mc.createEmptyMovieClip("horizontalBar", m_timeline_mc.getNextHighestDepth());
m_horizontalBar_mc._x = m_x + m_barWidth;
m_horizontalBar_mc._y = m_y + m_height;
m_horizontalBar_mc.beginFill(m_barColor);
m_horizontalBar_mc.moveTo(0, 0);
m_horizontalBar_mc.lineTo(m_width - (2 * m_barWidth), 0);
m_horizontalBar_mc.lineTo(m_width - (2 * m_barWidth), m_barWidth);
m_horizontalBar_mc.lineTo(0, m_barWidth);
m_horizontalBar_mc.lineTo(0, 0);
m_horizontalBar_mc.endFill();
m_horizontalBar_mc.beginFill(16777215, 20);
m_horizontalBar_mc.moveTo(0, 0);
m_horizontalBar_mc.lineTo(m_horizontalBar_mc._width, 0);
m_horizontalBar_mc.lineTo(m_horizontalBar_mc._width, m_horizontalBar_mc._height / 2);
m_horizontalBar_mc.lineTo(0, m_horizontalBar_mc._height / 2);
m_horizontalBar_mc.lineTo(0, 0);
m_horizontalBar_mc.endFill();
m_horizontalBar_mc.beginFill(16777215, 10);
m_horizontalBar_mc.moveTo(m_horizontalBar_mc._width, 0);
m_horizontalBar_mc.lineTo(m_horizontalBar_mc._width, m_horizontalBar_mc._height);
m_horizontalBar_mc.lineTo(0, m_horizontalBar_mc._height);
m_horizontalBar_mc.lineTo(_local2, m_horizontalBar_mc._height - _local2);
m_horizontalBar_mc.lineTo(m_horizontalBar_mc._width - _local2, m_horizontalBar_mc._height - _local2);
m_horizontalBar_mc.lineTo(m_horizontalBar_mc._width - _local2, _local2);
m_horizontalBar_mc.lineTo(m_horizontalBar_mc._width, 0);
m_horizontalBar_mc.endFill();
m_horizontalBar_mc.beginFill(0, 10);
m_horizontalBar_mc.moveTo(0, 0);
m_horizontalBar_mc.lineTo(m_horizontalBar_mc._width, 0);
m_horizontalBar_mc.lineTo(m_horizontalBar_mc._width - _local2, _local2);
m_horizontalBar_mc.lineTo(_local2, _local2);
m_horizontalBar_mc.lineTo(_local2, m_horizontalBar_mc._height - _local2);
m_horizontalBar_mc.lineTo(0, m_horizontalBar_mc._height);
m_horizontalBar_mc.lineTo(0, 0);
m_horizontalBar_mc.endFill();
}
function movev(delta) {
if (delta > 0) {
if ((m_content_mc._y + delta) > m_mask_mc._y) {
m_content_mc._y = m_mask_mc._y;
} else {
m_content_mc._y = m_content_mc._y + delta;
}
} else if (((m_content_mc._y + m_content_mc._height) + delta) < (m_mask_mc._y + m_mask_mc._height)) {
m_content_mc._y = (m_mask_mc._y + m_mask_mc._height) - m_content_mc._height;
} else {
m_content_mc._y = m_content_mc._y + delta;
}
m_verticalBar_mc._y = (m_y + m_barWidth) + (((m_mask_mc._y - m_content_mc._y) / (m_content_mc._height - m_mask_mc._height)) * ((m_height - (2 * m_barWidth)) - m_verticalBar_mc._height));
}
function moveh(delta) {
if (delta > 0) {
if ((m_content_mc._x + delta) > m_mask_mc._x) {
m_content_mc._x = m_mask_mc._x;
} else {
m_content_mc._x = m_content_mc._x + delta;
}
} else if (((m_content_mc._x + m_content_mc._width) + delta) < (m_mask_mc._x + m_mask_mc._width)) {
m_content_mc._x = (m_mask_mc._x + m_mask_mc._width) - m_content_mc._width;
} else {
m_content_mc._x = m_content_mc._x + delta;
}
m_horizontalBar_mc._x = (m_x + m_barWidth) + (((m_mask_mc._x - m_content_mc._x) / (m_content_mc._width - m_mask_mc._width)) * ((m_width - (2 * m_barWidth)) - m_horizontalBar_mc._width));
}
function moveUp() {
movev(m_increase);
}
function moveDown() {
movev(m_increase * -1);
}
function doScroll(delta) {
if (delta > 0) {
movev(m_increase);
} else {
movev(m_increase * -1);
}
}
function moveLeft() {
moveh(m_increase);
}
function moveRight() {
moveh(m_increase * -1);
}
function moveByVerticalBar() {
m_content_mc._y = -1 * (((((m_verticalBar_mc._y - m_y) - m_barWidth) / ((m_height - (2 * m_barWidth)) - m_verticalBar_mc._height)) * (m_content_mc._height - m_mask_mc._height)) - m_mask_mc._y);
}
function moveByHorizontalBar() {
m_content_mc._x = -1 * (((((m_horizontalBar_mc._x - m_x) - m_barWidth) / ((m_width - (2 * m_barWidth)) - m_horizontalBar_mc._width)) * (m_content_mc._width - m_mask_mc._width)) - m_mask_mc._x);
}
function __upArrowPressed() {
moveUp();
m_idInterval = setInterval(this, "moveUp", 1000 / m_speed);
}
function __upArrowReleased() {
clearInterval(m_idInterval);
}
function __downArrowPressed() {
moveDown();
m_idInterval = setInterval(this, "moveDown", 1000 / m_speed);
}
function __downArrowReleased() {
clearInterval(m_idInterval);
}
function __leftArrowPressed() {
moveLeft();
m_idInterval = setInterval(this, "moveLeft", 1000 / m_speed);
}
function __leftArrowReleased() {
clearInterval(m_idInterval);
}
function __rightArrowPressed() {
moveRight();
m_idInterval = setInterval(this, "moveRight", 1000 / m_speed);
}
function __rightArrowReleased() {
clearInterval(m_idInterval);
}
function __verticalBarPressed() {
m_verticalBar_mc.startDrag(false, m_x + m_width, m_y + m_barWidth, m_x + m_width, ((m_y + m_height) - m_barWidth) - m_verticalBar_mc._height);
m_idInterval = setInterval(this, "moveByVerticalBar", 1000 / m_speed);
}
function __verticalBarReleased() {
m_verticalBar_mc.stopDrag();
clearInterval(m_idInterval);
}
function __horizontalBarPressed() {
m_horizontalBar_mc.startDrag(false, m_x + m_barWidth, m_y + m_height, ((m_x + m_width) - m_barWidth) - m_horizontalBar_mc._width, m_y + m_height);
m_idInterval = setInterval(this, "moveByHorizontalBar", 1000 / m_speed);
}
function __horizontalBarReleased() {
m_horizontalBar_mc.stopDrag();
clearInterval(m_idInterval);
}
static var BOTH = 0;
static var VERTICAL = 1;
static var HORIZONTAL = 2;
static var MIN_SPEED = 1;
static var DFT_SPEED = 10;
static var MAX_SPEED = 20;
static var DFT_INCREASE = 5;
static var BAR_LEN = 5;
static var ARROW_COLOR = 0;
static var BAR_COLOR = 3355443;
}
Symbol 1078 MovieClip [__Packages.jaludo.api.as2.utils.Tooltip] Frame 0
class jaludo.api.as2.utils.Tooltip
{
var varMaxSize, _content, theTip, tip, tooltipContent, text;
function Tooltip (content, whatTip, what_add, mSize) {
varMaxSize = mSize;
_content = content;
theTip = _content.createEmptyMovieClip("tooltip", _content.getNextHighestDepth());
tip = theTip.attachMovie(whatTip, "tip", theTip.getNextHighestDepth());
theTip.attachMovie(what_add, "_add", theTip.getNextHighestDepth());
tip._visible = false;
theTip._add._visible = false;
tooltipContent = tip.tooltip_content;
text = theTip.createTextField("theText", theTip.getNextHighestDepth(), 0, 0, 20, 20);
}
function showTip(mc_target, theText) {
var _local3 = {};
var _local4 = 20;
var stageWidth = jaludo.api.as2.Locator.getCenterX();
theTip._x = _root._xmouse;
theTip._y = _root._ymouse - theTip._height;
theTip.tip._visible = true;
theTip._add._visible = true;
_local3.autoSize = "center";
mc_target.setProperties(text, _local3);
mc_target.setData(text, theText);
_local3.autoSize = "center";
theTip.tip._width = Number(mc_target.getWidthText(text) + _local4);
theTip.tip._height = Number(mc_target.getProperties(text, "_heigth") + _local4);
tooltipContent._height = Number(mc_target.getProperties(text, "_heigth") + _local4);
text._x = tooltipContent._x;
text._y = tooltipContent._y;
theTip.tip._y = (-_local4) / 2;
var add_displaced = 30;
theTip._add._x = add_displaced;
theTip._add._y = theTip.tip._height;
if (_root._xmouse > stageWidth) {
theTip._xscale = -100;
theTip.tip._x = _local4 / 2;
_local3._xscale = -100;
_local3._x = theTip.tip._width;
mc_target.setProperties(text, _local3);
} else {
theTip._xscale = 100;
theTip.tip._x = (-_local4) / 2;
_local3._xscale = 100;
_local3._x = 0;
mc_target.setProperties(text, _local3);
}
var dentro = "";
theTip.onMouseMove = function () {
if (dentro == "") {
if (_root._xmouse > stageWidth) {
dentro = "izq";
} else {
dentro = "der";
}
}
if (dentro == "der") {
this._x = (_root._xmouse - add_displaced) - jaludo.api.as2.Locator.API_POS_X;
} else {
this._x = (_root._xmouse + add_displaced) - jaludo.api.as2.Locator.API_POS_X;
}
this._y = ((_root._ymouse - this._height) + 5) - jaludo.api.as2.Locator.API_POS_Y;
updateAfterEvent();
};
}
function removeTip() {
theTip._visible = false;
tip.removeMovieClip();
theTip.removeMovieClip();
delete theTip.onMouseMove;
}
}
Symbol 1079 MovieClip [__Packages.jaludo.api.as2.utils.DateLists] Frame 0
class jaludo.api.as2.utils.DateLists
{
var _container, _mc_target, _mouseListener, _caller, _mcList, _contentList, mc_up_arrow, mc_down_arrow, mc_scrollbar, scrollback, mc_reference, scroll, _scrollbar_pressed, _scrollerCounter, scrollbar_manager, _prev_mouse_y;
function DateLists (caller, container, target) {
_container = container;
_mc_target = target;
_mouseListener = {};
_caller = caller;
}
function showList(listName, pos_x, pos_y) {
_mcList.removeMovieClip();
_mcList = _container.attachMovie("jaludoApi_" + listName, listName, _container.getNextHighestDepth());
_mcList._x = pos_x;
_mcList._y = pos_y;
_contentList = _mcList.contentList;
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, _mcList, null, removeAllList);
switch (listName) {
case "monthsList" :
createMcListMonths();
break;
case "daysList" :
createMcListDay();
break;
case "yearsList" :
createYearList();
}
}
function removeAllList() {
if ((_mcList != undefined) && (_mcList != null)) {
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
}
_mcList.removeMovieClip();
_mcList = undefined;
}
function createMcListMonths() {
var _local6;
var _local5;
_local6 = 0;
_local5 = 0;
var _local3 = 0;
while (_local3 < MONTHS_NAMES.length) {
var _local2;
_local2 = _contentList.attachMovie("jaludoApi_monthName", "mc_month" + _local3, _contentList.getNextHighestDepth());
_local2._x = _local6;
_local2._y = _local5;
var _local4 = _local2.txt_month_name;
_mc_target.setData(_local4, String(MONTHS_NAMES[_local3]));
_local5 = _local2._y + _local2._height;
_local2.caller = this;
_local2.name = _local3 + 1;
_local2.onRelease = function () {
this.caller.setMonth(this);
};
_local2.onRollOver = function () {
this.caller.rollOver(this);
};
_local2.onRollOut = function () {
this.caller.rollOut(this);
};
_local3++;
}
initializeScroll();
}
function createMcListDay() {
var _local6;
var _local5;
_local6 = 0;
_local5 = 0;
var _local3 = 1;
while (_local3 < 32) {
var _local2;
_local2 = _contentList.attachMovie("jaludoApi_dayName", "mc_day" + _local3, _contentList.getNextHighestDepth());
_local2._x = _local6;
_local2._y = _local5;
var _local4 = _local2.txt_day_name;
_mc_target.setData(_local4, String(_local3));
_local5 = _local2._y + _local2._height;
_local2.caller = this;
_local2.name = _local3;
_local2.onRelease = function () {
this.caller.setDay(this);
};
_local2.onRollOver = function () {
this.caller.rollOver(this);
};
_local2.onRollOut = function () {
this.caller.rollOut(this);
};
_local3++;
}
initializeScroll();
}
function createYearList() {
var _local8 = new Date();
var _local6 = Number(_local8.getFullYear() - 4);
var _local7;
var _local5;
_local7 = 0;
_local5 = 0;
var _local3 = _local6;
while (_local3 > 1905) {
var _local2;
_local2 = _contentList.attachMovie("jaludoApi_YearName", "mc_year" + _local3, _contentList.getNextHighestDepth());
_local2._x = _local7;
_local2._y = _local5;
var _local4 = _local2.txt_year_name;
_mc_target.setData(_local4, String(_local3));
_local5 = _local2._y + _local2._height;
_local2.caller = this;
_local2.name = _local3;
_local2.onRelease = function () {
this.caller.setYear(this);
};
_local2.onRollOver = function () {
this.caller.rollOver(this);
};
_local2.onRollOut = function () {
this.caller.rollOut(this);
};
_local3--;
}
initializeScroll();
}
function rollOut(mc) {
mc.gotoAndStop(1);
}
function rollOver(mc) {
mc.gotoAndStop(2);
}
function initializeScroll() {
mc_up_arrow = _mcList.mc_up_arrow;
mc_down_arrow = _mcList.mc_down_arrow;
mc_scrollbar = _mcList.scrollbar;
scrollback = _mcList.scrollback;
mc_reference = _mcList.mc_reference;
_contentList._x = mc_reference._x;
_contentList._y = mc_reference._y;
scroll = new jaludo.api.as2.utils.Scroll(_mcList);
scroll.__set___content(_contentList);
scroll.__set___upArrow(mc_up_arrow);
scroll.__set___downArrow(mc_down_arrow);
scroll.__set___verticalBar(mc_scrollbar);
scroll.__set___orientation(1);
scroll.__set___width(mc_reference._width);
scroll.__set___height(mc_reference._height);
scroll.__set___x(mc_reference._x);
scroll.__set___y(mc_reference._y);
scroll.__set___speed(15);
scroll.__set___increase(15);
scroll.generateScroll();
}
function onReleaseBackScroller() {
if (mc_scrollbar._ymouse < 0) {
upScroll();
} else {
downScroll();
}
}
function onReleaseScrollBar() {
_scrollbar_pressed = false;
}
function onPressScrollBar() {
_scrollbar_pressed = true;
_scrollerCounter = 0;
}
function downScroll() {
scrollbar_manager.doScroll(-1);
}
function upScroll() {
scrollbar_manager.doScroll(1);
}
function doScroll(delta) {
if (delta > 0) {
upScroll();
} else {
downScroll();
}
}
function onMouseMoveScrollBar() {
if (_scrollbar_pressed) {
if (mc_scrollbar._ymouse < _prev_mouse_y) {
_scrollerCounter--;
} else {
_scrollerCounter++;
}
if (Math.abs(_scrollerCounter) > 10) {
if (_scrollerCounter > 0) {
downScroll();
} else {
upScroll();
}
_scrollerCounter = 0;
}
_prev_mouse_y = mc_scrollbar._ymouse;
}
}
function setDay(info) {
var _local2;
if (info.name < 10) {
_local2 = "0" + info.name;
} else {
_local2 = info.name;
}
_caller.setDay(_local2);
removeAllList();
}
function setMonth(info) {
var _local2;
if (info.name < 10) {
_local2 = "0" + info.name;
} else {
_local2 = info.name;
}
removeAllList();
_caller.setMonth(_local2);
}
function setYear(info) {
var _local2;
_local2 = info.name;
removeAllList();
_caller.setYear(_local2);
}
function dispose() {
Mouse.removeListener(_mouseListener);
}
static var CHOOSING = "CHOOSING";
static var END_CHOOSING = "END_CHOOSING";
var MONTHS_NAMES = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
}
Symbol 1080 MovieClip [__Packages.jaludo.api.as2.utils.CountryList] Frame 0
class jaludo.api.as2.utils.CountryList
{
var _caller, _container, _mc_target, _mouseListener, countries, _country_manager, jaludoApi_countryList, _contentList, mc_reference, mc_up_arrow, mc_down_arrow, mc_scrollbar, scroll;
function CountryList (caller, container, target) {
_caller = caller;
_container = container;
_mc_target = target;
_mouseListener = {};
countries = [];
countries = jaludo.api.as2.APISettings.__get__instance().countries;
_country_manager = new jaludo.api.as2.displayutil.CountryManager();
}
function showCountries(x, y) {
jaludoApi_countryList.removeMovieClip();
_country_manager.initialize(_mc_target);
jaludoApi_countryList = _container.attachMovie("mc_country_list", "country_list", _container.getNextHighestDepth());
jaludoApi_countryList._x = x;
jaludoApi_countryList._y = y;
_contentList = jaludoApi_countryList.contentList;
mc_reference = jaludoApi_countryList.mc_reference;
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, jaludoApi_countryList, null, removeList);
var _local7;
var _local6;
_local7 = 0;
_local6 = 0;
var _local3 = 0;
while (_local3 < countries.length) {
var _local2;
_local2 = _contentList.attachMovie("country_name", "country_name" + _local3, _contentList.getNextHighestDepth());
_local2._x = _local7;
_local2._y = _local6;
var _local5 = _local2.txt_countryName;
_mc_target.setData(_local5, String(countries[_local3]));
var _local4 = _local2.flag_content;
_country_manager.drawFlag(_local4, 0, 0, _country_manager.getCountryCoord(countries[_local3]));
_local6 = _local2._y + _local2._height;
_local2.caller = this;
_local2.name = countries[_local3];
_local2.onRelease = function () {
this.caller.setCountry(this);
};
_local2.onRollOver = function () {
this.caller.rollOver(this);
};
_local2.onRollOut = function () {
this.caller.rollOut(this);
};
_local3++;
}
initializeScroll();
}
function setCountry(obj) {
var _local3 = obj.name;
_caller.setCountry(obj.name);
removeList();
}
function rollOver(mc) {
mc.gotoAndStop(2);
}
function rollOut(mc) {
mc.gotoAndStop(1);
}
function initializeScroll() {
mc_up_arrow = jaludoApi_countryList.mc_up_arrow;
mc_down_arrow = jaludoApi_countryList.mc_down_arrow;
mc_scrollbar = jaludoApi_countryList.scrollbar;
scroll = new jaludo.api.as2.utils.Scroll(jaludoApi_countryList);
scroll.__set___content(_contentList);
scroll.__set___upArrow(mc_up_arrow);
scroll.__set___downArrow(mc_down_arrow);
scroll.__set___verticalBar(mc_scrollbar);
scroll.__set___orientation(1);
scroll.__set___width(mc_reference._width);
scroll.__set___height(mc_reference._height);
scroll.__set___x(mc_reference._x);
scroll.__set___y(mc_reference._y);
scroll.__set___speed(15);
scroll.__set___increase(10);
scroll.generateScroll();
}
function removeList() {
if ((jaludoApi_countryList != undefined) && (jaludoApi_countryList != null)) {
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
}
jaludoApi_countryList.removeMovieClip();
jaludoApi_countryList = undefined;
}
}
Symbol 1081 MovieClip [__Packages.jaludo.api.as2.displayutil.CountryManager] Frame 0
class jaludo.api.as2.displayutil.CountryManager
{
var src, bmp_src;
function CountryManager () {
}
function initialize(mc_target) {
src = mc_target.attachMovie("mc_flags", "mc_flags", mc_target.getNextHighestDepth());
bmp_src = new flash.display.BitmapData(src._width, src._height, false, 16777215);
bmp_src.draw(src);
src._visible = false;
}
function drawFlag(mc, x, y, coordinates) {
var _local2 = mc.createEmptyMovieClip("dest", mc.getNextHighestDepth());
_local2._x = x;
_local2._y = y;
var _local3 = new flash.display.BitmapData(16, 11, false, 16777215);
_local2.attachBitmap(_local3, 1);
var _local5 = 28 * coordinates.x;
var _local4 = 28 * coordinates.y;
_local3.copyPixels(bmp_src, new flash.geom.Rectangle(_local5, _local4, 16, 11), new flash.geom.Point(0, 0));
return(_local2);
}
function getCountryName(coordinates) {
return(countries[coordinates.y][coordinates.x]);
}
function getCountryCoord(name) {
var _local3 = 0;
while (_local3 < countries.length) {
var _local2 = 0;
while (_local2 < countries[_local3].length) {
if (countries[_local3][_local2] == name) {
return({x:_local2, y:_local3});
}
_local2++;
}
_local3++;
}
}
function getCountriesList() {
return(countries);
}
function dispose() {
bmp_src.dispose();
src.removeMovieClip();
}
var countries = new Array(new Array("Andorra", "United Arab Emirates", "Afghanistan", "Antigua and Barbuda", "Anguilla", "Albania", "Armenia", "Netherlands Antilles", "Angola", "Argentina", "American Samoa"), new Array("Austria", "Australia", "Aruba", "\u00C3\u2026land Islands", "Azerbaijan", "Bosnia and Herzegovina", "Barbados", "Bangladesh", "Belgium", "Burkina Faso", "Bulgaria"), new Array("Bahrain", "Burundi", "Benin", "Bermuda", "Brunei", "Bolivia", "Brazil", "Bahamas", "Bhutan", "Bouvet Island", "Botswana"), new Array("Belarus", "Belize", "Canada", "Cocos (Keeling) Islands", "Congo Democratic Republic", "Central African Republic", "Congo Republic", "Switzerland", "Cote d'Ivoire", "Cook Islands", "Chile"), new Array("Cameroon", "Republic of China", "Colombia", "Costa Rica", "?????", "Cuba", "Cape Verde", "Christmas Island", "Cyprus", "Czech Republic", "Germany"), new Array("Djibouti", "Denmark", "Dominica", "Dominican Republic", "Algeria", "Ecuador", "Estonia", "Egypt", "Western Sahara", "England", "Eritrea"), new Array("Spain", "Ethiopia", "?????", "Finland", "Fiji", "Falkland Islands (Islas Malvinas)", "Micronesia, Federated States of", "Faroe Islands", "France", "Gabon", "United Kingdom"), new Array("Grenada", "Georgia", "Ghana", "Gibraltar", "Groenlandia", "Gambia", "Guinea", "?????", "Equatorial Guinea", "Greece", "South Georgia and the South Sandwich"), new Array("Guatemala", "Guam", "Guinea-Bissau", "Guyana", "Hong Kong", "Honduras", "Croatia", "Haiti", "Hungary", "Indonesia", "Ireland"), new Array("Israel", "India", "British Indian Ocean Territory", "Iraq", "Iran", "Iceland", "Italy", "Jamaica", "Jordan", "Japan", "Kenya"), new Array("Kyrgyzstan", "Cambodia", "Kiribati", "Comoros", "Saint Kitts and Nevis", "Korea, North", "Korea, South", "Kuwait", "Cayman Islands", "Kazakhstan", "Laos"), new Array("Lebanon", "Saint Lucia", "Liechtenstein", "Sri Lanka", "Liberia", "Lesotho", "Lithuania", "Luxembourg", "Latvia", "Libya", "Morocco"), new Array("Monaco", "Maldova", "Madagascar", "Marshall Islands", "Macedonia", "Mali", "Union of Myanmar", "Mongolia", "Macao", "Northern Mariana Islands", "Martinique"), new Array("Mauritania", "Montserrat", "Malta", "Mauritius", "Maldives", "Malawi", "Mexico", "Malaysia", "Mozambique", "Namibia", "New Caledonia"), new Array("Niger", "Norfolk Island", "Nigeria", "Nicaragua", "Netherlands", "Norway", "Nepal", "Nauru", "Niue", "New Zealand", "Oman"), new Array("Panama", "Peru", "French Polynesia", "Papua New Guinea", "Philippines", "Pakistan", "Poland", "Saint Pierre and Miquelon", "Pitcairn Islands", "Puerto Rico", "Palestine"), new Array("Portugal", "Palau", "Paraguay", "Qatar", "Romania", "Russian Federation", "Rwanda", "Saudi Arabia", "Solomon Islands", "Seychelles", "Scotland"), new Array("Sudan", "Sweden", "Singapore", "Saint Helena", "Slovenia", "Slovakia", "Sierra Leone", "San Marino", "Senegal", "Somalia", "Suriname"), new Array("Sao Tome and Principe", "El Salvador", "Syria", "Swaziland", "Turks and Caicos Islands", "Chad", "French Southern and Antarctic Lands", "Togo", "Thailand", "Tajikistan", "Tokelau"), new Array("Timor Leste", "Turkmenistan", "Tunisia", "Tonga", "Turkey", "Trinidad and Tobago", "Tuvalu", "Taiwan", "Tanzania", "Ukraine", "Uganda"), new Array("United States Minor Outlying Islands", "United States", "Uruguay", "Uzbekistan", "Holy See (Vatican City)", "Saint Vincent and the Grenadines", "Venezuela", "Virgin Islands, British", "Virgin Islands, U.S.", "Vietnam", "Vanuatu"), new Array("Wales", "Wallis And Futuna", "Samoa", "Yemen", "Mayotte", "South Africa", "Zambia", "Zimbabwe"));
}
Symbol 1082 MovieClip [__Packages.jaludo.api.as2.APISettings] Frame 0
class jaludo.api.as2.APISettings
{
static var s;
var jaludoSettings;
function APISettings () {
jaludoSettings = {};
}
static function get instance() {
if (!s) {
s = new jaludo.api.as2.APISettings();
}
return(s);
}
function get countries() {
return(_countries);
}
function getData(label) {
if (jaludoSettings[label] != undefined) {
return(jaludoSettings[label]);
}
return("error: label not found");
}
static var _invalidSessionURL = "http://www.sismosoft.com/jaludoApi/session/sessionError.html";
static var _jaludoServicesURLOWN = "/Assets_AS2.swf";
static var _jaludoServicesURLEXTERNAL = "http://www.speeleiland.nl/Assets_AS2.swf";
static var _jaludoServicesURLLOCAL = "http://www.speeleiland.nl/Assets_AS2.swf";
var _countries = ["Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Islas Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "French Polynesia", "French Southern and Antarctic Lands", "Gabon", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Grenada", "Groenlandia", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Holy See (Vatican City)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, North", "Korea, South", "Kuwait", "Kyrgyzstan", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Macao", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Maldova", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn Islands", "Poland", "Portugal", "Puerto Rico", "Qatar", "Romania", "Russian", "Rwanda", "Saint Helena", "Saint Kitts and Nevis", "Saint Lucia", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Scotland", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Timor Leste", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "Union of Myanmar", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands, British", "Virgin Islands, U.S.", "Wales", "Wallis And Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe"];
}
Symbol 1083 MovieClip [__Packages.jaludo.api.as2.utils.ModalsPopup] Frame 0
class jaludo.api.as2.utils.ModalsPopup extends mx.events.EventDispatcher
{
var _content, _mc_target, _text, tab_target, dispatchEvent, blocker, jaludoApi_modalPopup, jaludoApi_txtInformation, jaludoApi_btnOk, jaludoApi_btnClose;
function ModalsPopup (mc_target, content, disableTabTarget) {
super();
_content = content;
_mc_target = mc_target;
_text = "";
if (disableTabTarget != undefined) {
tab_target = disableTabTarget;
tab_target.tabChildren = false;
for (var _local3 in tab_target) {
tab_target[_local3].enabled = false;
}
}
}
function showPopup(text, type) {
dispatchEvent({type:ENABLED_BLOCKER_EVENT});
blocker = new jaludo.api.as2.Blocker(_content);
_text = text;
switch (type) {
case TYPE_INFORMATIVE :
showInformative();
break;
case TYPE_WARNING :
showWarning();
break;
case TYPE_ERROR :
showError();
}
}
function showInformative() {
jaludoApi_modalPopup = _content.attachMovie("jaludoApi_alertPopupInformative", "jaludoApi_alertPopupInformative", _content.getNextHighestDepth());
setProperties();
}
function showWarning(text) {
jaludoApi_modalPopup = _content.attachMovie("jaludoApi_alertPopupWarning", "jaludoApi_alertPopupWarning", _content.getNextHighestDepth());
setProperties();
}
function showError(text) {
}
function setProperties() {
jaludoApi_modalPopup._x = jaludo.api.as2.Locator.getCenterX();
jaludoApi_modalPopup._y = jaludo.api.as2.Locator.getCenterY();
jaludoApi_txtInformation = jaludoApi_modalPopup.jaludoApi_txtInformation;
jaludoApi_btnOk = jaludoApi_modalPopup.jaludoApi_btnOk;
jaludoApi_btnClose = jaludoApi_modalPopup.jaludoApi_btnClose;
_mc_target.setData(jaludoApi_txtInformation, _text);
var _local2 = {};
_local2.autoSize = true;
_mc_target.setProperties(jaludoApi_txtInformation, _local2);
jaludoApi_btnOk.onRelease = mx.utils.Delegate.create(this, dispose);
jaludoApi_btnClose.onRelease = mx.utils.Delegate.create(this, dispose);
_mc_target.applyTab(jaludoApi_btnOk, 1);
_mc_target.applyTab(jaludoApi_btnClose, 2);
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, jaludoApi_modalPopup, dispose, dispose, jaludoApi_btnOk, jaludoApi_btnClose);
}
function showConfirmationPopup(message) {
dispatchEvent({type:ENABLED_BLOCKER_EVENT});
blocker = new jaludo.api.as2.Blocker(_content);
jaludoApi_modalPopup = _content.attachMovie("jaludoApi_confirmationPopup", "jaludoApi_confirmationPopup", _content.getNextHighestDepth());
jaludoApi_modalPopup._x = jaludo.api.as2.Locator.getCenterX();
jaludoApi_modalPopup._y = jaludo.api.as2.Locator.getCenterY();
jaludoApi_txtInformation = jaludoApi_modalPopup.jaludoApi_txtInformation;
_mc_target.setData(jaludoApi_txtInformation, message);
var _local4 = {};
_local4.autoSize = true;
_mc_target.setProperties(jaludoApi_txtInformation, _local4);
var _local2;
var _local3;
var _local5;
_local2 = jaludoApi_modalPopup.jaludoApi_btnYes;
_local3 = jaludoApi_modalPopup.jaludoApi_btnNo;
_local5 = jaludoApi_modalPopup.jaludoApi_btnCancel;
_local2.onRelease = mx.utils.Delegate.create(this, aceptAction);
_local3.onRelease = mx.utils.Delegate.create(this, dispose);
_local5.onRelease = mx.utils.Delegate.create(this, dispose);
_mc_target.applyTab(_local2, 1);
_mc_target.applyTab(_local3, 2);
_mc_target.applyTab(_local5, 3);
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, jaludoApi_modalPopup, dispose, dispose, _local3, _local2);
}
function aceptAction() {
dispatchEvent({type:CONFIRMATION_ACEPT_EVENT});
dispose();
}
function dispose() {
blocker.dispose();
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
if (tab_target != undefined) {
tab_target.tabChildren = true;
for (var _local2 in tab_target) {
tab_target[_local2].enabled = true;
}
}
dispatchEvent({type:OFF_BLOCKER_EVENT});
dispatchEvent({type:CONFIRMATION_CLOSE_EVENT});
jaludoApi_modalPopup.removeMovieClip();
}
static var TYPE_INFORMATIVE = "TYPE_INFORMATIVE";
static var TYPE_WARNING = "TYPE_WARNING";
static var TYPE_ERROR = "TYPE_ERROR";
static var ENABLED_BLOCKER_EVENT = "ENABLED_BLOCKER_EVENT";
static var OFF_BLOCKER_EVENT = "OFF_BLOCKER_EVENT";
static var CONFIRMATION_ACEPT_EVENT = "CONFIRMATION_ACEPT_EVENT";
static var CONFIRMATION_CLOSE_EVENT = "CONFIRMATION_CLOSE_EVENT";
}
Symbol 1084 MovieClip [__Packages.jaludo.api.as2.Validator] Frame 0
class jaludo.api.as2.Validator extends mx.events.EventDispatcher
{
static var V;
var dispatchEvent, _password, _email;
function Validator () {
super(this);
}
static function get instance() {
if (!V) {
V = new jaludo.api.as2.Validator();
}
return(V);
}
function checkUser(name) {
var _local3 = new org.as2lib.regexp.Pattern("^[a-zA-Z0-9_-]{3,20}$");
var _local2;
_local2 = new org.as2lib.regexp.Matcher(_local3, name);
if (_local2.matches() == true) {
dispatchEvent({type:VALIDATED_SUCCESFULL, data:"checkUser"});
} else if (name != "") {
dispatchEvent({type:ERROR_VALIDATED, data:"checkUser", error:"User name must be alphanumeric, between 3 and 20 characters long."});
} else {
dispatchEvent({type:NOT_VALIDATE, data:"checkUser"});
}
}
function checkPassword(pass) {
var _local3 = new org.as2lib.regexp.Pattern("^[a-zA-Z0-9_-]{6,20}$");
var _local2;
_local2 = new org.as2lib.regexp.Matcher(_local3, pass);
if (_local2.matches()) {
_password = pass;
dispatchEvent({type:VALIDATED_SUCCESFULL, data:"checkPass"});
} else if (pass != "") {
dispatchEvent({type:ERROR_VALIDATED, data:"checkPass", error:"Password must be alphanumeric, between 6 and 20 characters long."});
} else {
dispatchEvent({type:NOT_VALIDATE, data:"checkPass"});
}
}
function confirmPassword(pass) {
if (_password != "") {
if (_password == pass) {
dispatchEvent({type:VALIDATED_SUCCESFULL, data:"checkConfirmatedPass"});
} else if (pass != "") {
dispatchEvent({type:ERROR_VALIDATED, data:"checkConfirmatedPass", error:"Password fields must be identical."});
} else {
dispatchEvent({type:NOT_VALIDATE, data:"checkConfirmatedPass"});
}
} else {
dispatchEvent({type:NOT_VALIDATE, data:"checkConfirmatedPass"});
}
}
function checkEmail(email) {
var _local2 = new org.as2lib.regexp.Pattern("([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,3}");
var _local4 = new org.as2lib.regexp.Matcher(_local2, email);
if (_local4.matches()) {
_email = email;
dispatchEvent({type:VALIDATED_SUCCESFULL, data:"checkEmail"});
} else if (email != "") {
dispatchEvent({type:ERROR_VALIDATED, data:"checkEmail", error:"The E-mail must exist."});
} else {
dispatchEvent({type:NOT_VALIDATE, data:"checkEmail"});
}
}
function confirmEmail(email) {
if (_email != "") {
if (_email == email) {
_email = "";
dispatchEvent({type:VALIDATED_SUCCESFULL, data:"checkConfirmatedEmail"});
} else if (email != "") {
dispatchEvent({type:ERROR_VALIDATED, data:"checkConfirmatedEmail", error:" E-mail fields must be identical."});
} else {
dispatchEvent({type:NOT_VALIDATE, data:"checkConfirmatedEmail"});
}
} else {
dispatchEvent({type:NOT_VALIDATE, data:"checkConfirmatedEmail"});
}
}
function checkDate(month, day, year) {
var _local2 = Number(month);
var _local3 = Number(day);
var _local6 = Number(year);
var _local9 = new Date();
var _local7 = false;
var _local4 = false;
var _local5 = false;
if (year != "") {
if ((isNaN(_local6) || (_local6 < Number(_local9.getFullYear() - 100))) || (_local6 > Number(_local9.getFullYear() - 4))) {
_local5 = false;
} else {
_local5 = true;
}
}
if (month != "") {
if ((isNaN(_local2) || (_local2 < 1)) || (_local2 > 12)) {
_local7 = false;
} else {
_local7 = true;
}
}
if (day != "") {
if ((isNaN(_local3) || (_local3 < 1)) || (_local3 > 31)) {
_local4 = false;
} else {
_local4 = true;
}
}
if ((month != "") && (day != "")) {
if (((((_local2 == 4) || (_local2 == 6)) || (_local2 == 9)) || (_local2 == 11)) || (_local2 == 2)) {
if (((_local2 == 2) && (_local3 > 28)) || (_local3 > 30)) {
_local4 = false;
}
}
}
if (((month != "") && (day != "")) && (year != "")) {
if (((_local7 == true) && (_local4 == true)) && (_local5 == true)) {
dispatchEvent({type:VALIDATED_SUCCESFULL, data:"checkDate"});
} else {
dispatchEvent({type:ERROR_VALIDATED, data:"checkDate", error:"Date seems be wrong."});
}
} else {
dispatchEvent({type:NOT_VALIDATE, data:"checkDate"});
}
}
static var ERROR_VALIDATED = "ERROR_VALIDATED";
static var VALIDATED_SUCCESFULL = "VALIDATED_SUCCESFULL";
static var NOT_VALIDATE = "NOT_VALIDATE";
}
Symbol 1085 MovieClip [__Packages.org.as2lib.core.BasicInterface] Frame 0
interface org.as2lib.core.BasicInterface
{
}
Symbol 1086 MovieClip [__Packages.org.as2lib.core.BasicClass] Frame 0
class org.as2lib.core.BasicClass implements org.as2lib.core.BasicInterface
{
function BasicClass () {
}
function toString() {
return(org.as2lib.Config.getObjectStringifier().execute(this));
}
}
Symbol 1087 MovieClip [__Packages.org.as2lib.Config] Frame 0
class org.as2lib.Config extends org.as2lib.core.BasicClass
{
static var objectStringifier;
function Config (Void) {
super();
}
static function setObjectStringifier(newStringifier) {
objectStringifier = newStringifier;
}
static function getObjectStringifier(Void) {
if (!objectStringifier) {
objectStringifier = new org.as2lib.core.ObjectStringifier();
}
return(objectStringifier);
}
}
Symbol 1088 MovieClip [__Packages.org.as2lib.util.Stringifier] Frame 0
interface org.as2lib.util.Stringifier extends org.as2lib.core.BasicInterface
{
}
Symbol 1089 MovieClip [__Packages.org.as2lib.core.ObjectStringifier] Frame 0
class org.as2lib.core.ObjectStringifier extends org.as2lib.core.BasicClass implements org.as2lib.util.Stringifier
{
function ObjectStringifier () {
super();
}
function execute(target) {
return(("[type " + org.as2lib.env.reflect.ReflectUtil.getTypeName(target)) + "]");
}
}
Symbol 1090 MovieClip [__Packages.org.as2lib.env.reflect.ReflectUtil] Frame 0
class org.as2lib.env.reflect.ReflectUtil extends org.as2lib.core.BasicClass
{
function ReflectUtil (Void) {
super();
}
static function getUnusedMemberName(object) {
var _local1 = 10000;
var _local3 = MEMBER_PREFIX + "_";
var _local2 = MEMBER_PREFIX + "-";
while (_local1-- , _local1 - -1) {
if (object[_local3 + _local1] === undefined) {
return(_local3 + _local1);
}
if (object[_local2 + _local1] === undefined) {
return(_local2 + _local1);
}
}
return(null);
}
static function getTypeAndMethodInfo(object, method) {
if ((object === null) || (object === undefined)) {
return(null);
}
if (typeof(object) == "function") {
return(getTypeAndMethodInfoByType(object, method));
}
return(getTypeAndMethodInfoByInstance(object, method));
}
static function getTypeAndMethodInfoByType(type, method) {
if ((type === null) || (type === undefined)) {
return(null);
}
if (method.valueOf() == type.valueOf()) {
return([false, getTypeNameForType(type), CONSTRUCTOR]);
}
var _local2 = getMethodNameByObject(method, type);
if ((!(_local2 === null)) && (!(_local2 === undefined))) {
return([true, getTypeNameForType(type), _local2]);
}
return(getTypeAndMethodInfoByPrototype(type.prototype, method));
}
static function getTypeAndMethodInfoByInstance(instance, method) {
if ((instance === null) || (instance === undefined)) {
return(null);
}
if (instance.__constructor__) {
if (instance.__constructor__.prototype == instance.__proto__) {
return(getTypeAndMethodInfoByType(instance.__constructor__, method));
}
}
if (instance.constructor) {
if (instance.constructor.prototype == instance.__proto__) {
return(getTypeAndMethodInfoByType(instance.constructor, method));
}
}
return(getTypeAndMethodInfoByPrototype(instance.__proto__, method));
}
static function getTypeAndMethodInfoByPrototype(p, m) {
if ((p === null) || (p === undefined)) {
return(null);
}
var _local6 = p;
_global.ASSetPropFlags(_global, null, 0, true);
var _local4;
while (p) {
if (p.constructor.valueOf() == m.valueOf()) {
_local4 = CONSTRUCTOR;
} else {
_local4 = getMethodNameByObject(m, p);
}
if (_local4 != null) {
var _local3 = new Array();
_local3[0] = false;
_local3[1] = getTypeNameByPrototype(p, _global, "", [_global]);
_local3[2] = _local4;
return(_local3);
}
p = p.__proto__;
}
return([null, getTypeNameByPrototype(_local6, _global, "", [_global]), null]);
}
static function getTypeName(object) {
if ((object === null) || (object === undefined)) {
return(null);
}
if (typeof(object) == "function") {
return(getTypeNameForType(object));
}
return(getTypeNameForInstance(object));
}
static function getTypeNameForInstance(instance) {
if ((instance === null) || (instance === undefined)) {
return(null);
}
_global.ASSetPropFlags(_global, null, 0, true);
return(getTypeNameByPrototype(instance.__proto__, _global, "", [_global]));
}
static function getTypeNameForType(type) {
if ((type === null) || (type === undefined)) {
return(null);
}
_global.ASSetPropFlags(_global, null, 0, true);
return(getTypeNameByPrototype(type.prototype, _global, "", [_global]));
}
static function getTypeNameByPrototype(c, p, n, a) {
var y = c.__as2lib__typeName;
if ((y != null) && (y != c.__proto__.__as2lib__typeName)) {
return(y);
}
if (n == null) {
n = "";
}
var s = _global.ASSetPropFlags;
for (var r in p) {
try {
if (((!eval ("_global." + r.split("_").join("."))) || (r.indexOf("_") < 0)) && (p[r].prototype === c)) {
var x = (n + r);
c.__as2lib__typeName = x;
s(c, "__as2lib__typeName", 1, true);
return(x);
}
if (p[r].__constructor__.valueOf() == Object) {
var f = false;
var i = 0;
while (i < a.length) {
if (a[i].valueOf() == p[r].valueOf()) {
f = true;
}
i++;
}
if (!f) {
a.push(p[r]);
r = getTypeNameByPrototype(c, p[r], (n + r) + ".", a);
if (r) {
return(r);
}
}
} else if (typeof(p[r]) == "function") {
p[r].prototype.__as2lib__typeName = n + r;
s(p[r].prototype, "__as2lib__typeName", 1, true);
}
} catch(e) {
}
}
return(null);
}
static function getMethodName(method, object) {
if (((!method) || (object === null)) || (object === undefined)) {
return(null);
}
if (typeof(object) == "function") {
return(getMethodNameByType(method, object));
}
return(getMethodNameByInstance(method, object));
}
static function getMethodNameByInstance(method, instance) {
if (((!method) || (instance === null)) || (instance === undefined)) {
return(null);
}
if (instance.__constructor__) {
if (instance.__constructor__.prototype == instance.__proto__) {
return(getMethodNameByType(method, instance.__constructor__));
}
}
if (instance.constructor) {
if (instance.constructor.prototype == instance.__proto__) {
return(getMethodNameByType(method, instance.constructor));
}
}
return(getMethodNameByPrototype(method, instance.__proto__));
}
static function getMethodNameByType(method, type) {
if ((!method) || (!type)) {
return(null);
}
var _local1 = getMethodNameByPrototype(method, type.prototype);
if (_local1 != null) {
return(_local1);
}
return(getMethodNameByObject(method, type));
}
static function getMethodNameByPrototype(m, p) {
if ((((m === null) || (m === undefined)) || (p === null)) || (p === undefined)) {
return(null);
}
while (p) {
var _local2 = getMethodNameByObject(m, p);
if (_local2 != null) {
return(_local2);
}
p = p.__proto__;
}
return(null);
}
static function getMethodNameByObject(m, o) {
var _local6 = m.__as2lib__methodName;
if (_local6 != null) {
return(_local6);
}
var _local5 = _global.ASSetPropFlags;
_local5(o, null, 0, true);
_local5(o, ["__proto__", "prototype", "__constructor__", "constructor"], 7, true);
for (var _local4 in o) {
try {
if (o[_local4].valueOf() == m.valueOf()) {
m.__as2lib__methodName = _local4;
return(_local4);
}
if (typeof(o[_local4]) == "function") {
o[_local4].__as2lib__methodName = _local4;
}
} catch(e) {
}
}
_local5(o, null, 1, true);
return(null);
}
static function isMethodStatic(methodName, object) {
if (((!methodName) || (object === null)) || (object === undefined)) {
return(false);
}
if (typeof(object) == "function") {
return(isMethodStaticByType(methodName, object));
}
return(isMethodStaticByInstance(methodName, object));
}
static function isMethodStaticByInstance(methodName, instance) {
if (((!methodName) || (instance === null)) || (instance === undefined)) {
return(false);
}
return(isMethodStaticByType(methodName, (instance.__constructor__ ? (instance.__constructor) : (instance.constructor))));
}
static function isMethodStaticByType(methodName, type) {
if ((!methodName) || (!type)) {
return(false);
}
try {
if (type[methodName]) {
return(true);
}
} catch(e) {
}
return(false);
}
static function isConstructor(constructor, object) {
if ((((constructor === null) || (constructor === undefined)) || (object === null)) || (object === undefined)) {
return(false);
}
if (typeof(object) == "function") {
return(isConstructorByType(constructor, object));
}
return(isConstructorByInstance(constructor, object));
}
static function isConstructorByInstance(method, instance) {
if (((!method) || (instance === null)) || (instance === undefined)) {
return(false);
}
return(isConstructorByType(method, (instance.__constructor__ ? (instance.__constructor__) : (instance.constructor))));
}
static function isConstructorByType(method, type) {
if ((((method === null) || (method === undefined)) || (type === null)) || (type === undefined)) {
return(false);
}
return(method.valueOf() == type.valueOf());
}
static function getVariableNames(instance) {
var _local3 = new Array();
var _local5 = _global.ASSetPropFlags;
_local5(instance, null, 0, true);
_local5(instance, ["__proto__", "prototype", "__constructor__", "constructor"], 7, true);
for (var _local4 in instance) {
try {
if (typeof(instance[_local4]) != "function") {
_local3.push(_local4);
}
} catch(e) {
}
}
_local5(instance, null, 1, true);
return(_local3);
}
static function getTypeByName(path) {
var result = eval ("_global." + path);
if (!result) {
result = eval ("_global." + path.split(".").join("_"));
}
return(result);
}
static var CONSTRUCTOR = "new";
static var UNKNOWN = "[unknown]";
static var MEMBER_PREFIX = "__as2lib__member";
}
Symbol 1091 MovieClip [__Packages.org.as2lib.regexp.node.Node] Frame 0
class org.as2lib.regexp.node.Node extends org.as2lib.core.BasicClass
{
var next;
function Node () {
super();
next = org.as2lib.regexp.Pattern.ACCEPT;
}
function dup(flag) {
if (flag) {
return(new org.as2lib.regexp.node.Not(this));
}
throw new org.as2lib.env.except.Exception("Internal error in Node dup()", this, arguments);
}
function match(matcher, i, seq) {
matcher.last = i;
matcher.groups[0] = matcher.first;
matcher.groups[1] = matcher.last;
return(true);
}
function study(info) {
if (next != null) {
return(next.study(info));
}
return(info.deterministic);
}
function getNext(Void) {
return(next);
}
function setNext(next) {
this.next = next;
}
}
Symbol 1092 MovieClip [__Packages.org.as2lib.regexp.node.Not] Frame 0
class org.as2lib.regexp.node.Not extends org.as2lib.regexp.node.Node
{
var atom, next;
function Not (atom) {
super();
this.atom = atom;
}
function match(matcher, i, seq) {
return((!atom.match(matcher, i, seq)) && (next.match(matcher, i + 1, seq)));
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1093 MovieClip [__Packages.org.as2lib.regexp.node.TreeInfo] Frame 0
class org.as2lib.regexp.node.TreeInfo extends org.as2lib.core.BasicClass
{
var minLength, maxLength, maxValid, deterministic;
function TreeInfo () {
super();
reset();
}
function reset() {
minLength = 0;
maxLength = 0;
maxValid = true;
deterministic = true;
}
}
Symbol 1094 MovieClip [__Packages.org.as2lib.env.except.AbstractThrowable] Frame 0
class org.as2lib.env.except.AbstractThrowable extends Error
{
static var stringifier, logger;
var message, stackTrace, cause, errorCode;
function AbstractThrowable (message, thrower, args) {
super();
this.message = message;
stackTrace = new Array();
addStackTraceElement(thrower, args.callee, args);
}
static function getStringifier(Void) {
if (!stringifier) {
stringifier = new org.as2lib.env.except.ThrowableStringifier();
}
return(stringifier);
}
static function setStringifier(throwableStringifier) {
stringifier = throwableStringifier;
}
static function getLogger(Void) {
if (!logger) {
logger = org.as2lib.env.log.LogManager.getLogger("org.as2lib.env.except.Throwable");
}
return(logger);
}
function addStackTraceElement(thrower, method, args) {
stackTrace.push(new org.as2lib.env.except.StackTraceElement(thrower, method, args));
}
function getStackTrace(Void) {
return(stackTrace);
}
function getCause(Void) {
return(cause);
}
function initCause(newCause) {
if (!newCause) {
throw new org.as2lib.env.except.IllegalArgumentException("Cause must not be null or undefined.", this, arguments);
}
if (cause) {
throw new org.as2lib.env.except.IllegalStateException(("The cause [" + cause) + "] has already been initialized.", this, arguments);
}
cause = newCause;
return(org.as2lib.env.except.Throwable(this));
}
function getMessage(Void) {
return(message);
}
function initErrorCode(errorCode) {
this.errorCode = errorCode;
return(org.as2lib.env.except.Throwable(this));
}
function getErrorCode(Void) {
return(errorCode);
}
function doToString(Void) {
return(getStringifier().execute(this));
}
}
Symbol 1095 MovieClip [__Packages.org.as2lib.env.log.Logger] Frame 0
interface org.as2lib.env.log.Logger extends org.as2lib.core.BasicInterface
{
}
Symbol 1096 MovieClip [__Packages.org.as2lib.env.except.ThrowableStringifier] Frame 0
class org.as2lib.env.except.ThrowableStringifier extends org.as2lib.core.BasicClass implements org.as2lib.util.Stringifier
{
var showStackTrace, showCause;
function ThrowableStringifier (showStackTrace, showCause) {
super();
this.showStackTrace = ((showStackTrace == null) ? true : (showStackTrace));
this.showCause = ((showCause == null) ? true : (showCause));
}
function execute(target) {
var _local2 = target;
var _local3 = "";
var _local4 = org.as2lib.env.reflect.ReflectUtil.getTypeNameForInstance(_local2);
var _local5 = _local4.length + 2;
_local3 = _local3 + ((_local4 + ": ") + org.as2lib.util.StringUtil.addSpaceIndent(_local2.getMessage(), _local5).substr(_local5));
var _local7 = _local2.getStackTrace();
if (_local7 && (_local7.length > 0)) {
_local3 = _local3 + (newline + stringifyStackTrace(_local2.getStackTrace()));
}
var _local6 = _local2.getCause();
if (_local6) {
_local3 = _local3 + ("\nCaused by: " + _local6);
}
return(_local3);
}
function stringifyStackTrace(stackTrace) {
var _local4 = "";
var _local1 = 0;
while (_local1 < stackTrace.length) {
var _local2 = stackTrace[_local1];
_local4 = _local4 + (" at " + _local2.toString());
if (_local1 < (stackTrace.length - 1)) {
_local4 = _local4 + newline;
}
_local1++;
}
return(_local4);
}
}
Symbol 1097 MovieClip [__Packages.org.as2lib.env.except.Throwable] Frame 0
interface org.as2lib.env.except.Throwable extends org.as2lib.core.BasicInterface
{
}
Symbol 1098 MovieClip [__Packages.org.as2lib.util.StringUtil] Frame 0
class org.as2lib.util.StringUtil extends org.as2lib.core.BasicClass
{
function StringUtil (Void) {
super();
}
static function replace(string, what, to) {
return(string.split(what).join(to));
}
static function trim(string) {
return(leftTrim(rightTrim(string)));
}
static function leftTrim(string) {
return(leftTrimForChars(string, "\n\t\n "));
}
static function rightTrim(string) {
return(rightTrimForChars(string, "\n\t\n "));
}
static function leftTrimForChars(string, chars) {
var _local1 = 0;
var _local3 = string.length;
while ((_local1 < _local3) && (chars.indexOf(string.charAt(_local1)) >= 0)) {
_local1++;
}
return(((_local1 > 0) ? (string.substr(_local1, _local3)) : (string)));
}
static function rightTrimForChars(string, chars) {
var _local3 = 0;
var _local1 = string.length - 1;
while ((_local3 < _local1) && (chars.indexOf(string.charAt(_local1)) >= 0)) {
_local1--;
}
return(((_local1 >= 0) ? (string.substr(_local3, _local1 + 1)) : (string)));
}
static function leftTrimForChar(string, char) {
if (char.length != 1) {
throw new org.as2lib.env.except.IllegalArgumentException(("The Second Attribute char [" + char) + "] must exactly one character.", this, arguments);
}
return(leftTrimForChars(string, char));
}
static function rightTrimForChar(string, char) {
if (char.length != 1) {
throw new org.as2lib.env.except.IllegalArgumentException(("The Second Attribute char [" + char) + "] must exactly one character.", this, arguments);
}
return(rightTrimForChars(string, char));
}
static function checkEmail(email) {
if (email.length < 6) {
return(false);
}
if ((email.split("@").length > 2) || (email.indexOf("@") < 0)) {
return(false);
}
if (email.lastIndexOf("@") > email.lastIndexOf(".")) {
return(false);
}
if (email.lastIndexOf(".") > (email.length - 3)) {
return(false);
}
if (email.lastIndexOf(".") <= (email.lastIndexOf("@") + 1)) {
return(false);
}
return(true);
}
static function assureLength(string, length) {
if ((length < 0) || ((!length) && (!(length === 0)))) {
throw new org.as2lib.env.except.IllegalArgumentException(("The given length [" + length) + "] has to be bigger or equals 0.", this, arguments);
}
return(string.length >= length);
}
static function contains(string, chars) {
if ((chars == null) || (string == null)) {
return(false);
}
var _local1 = chars.length - 1;
while (_local1 >= 0) {
if (string.indexOf(chars.charAt(_local1)) >= 0) {
return(true);
}
_local1--;
}
return(false);
}
static function startsWith(string, searchString) {
if (string.indexOf(searchString) == 0) {
return(true);
}
return(false);
}
static function endsWith(string, searchString) {
if (string.lastIndexOf(searchString) == (string.length - searchString.length)) {
return(true);
}
return(false);
}
static function addSpaceIndent(string, size) {
if (string == null) {
string = "";
}
if (size < 0) {
throw new org.as2lib.env.except.IllegalArgumentException("The given size has to be bigger or equals null.", this, arguments);
}
var indentString = multiply(" ", size);
return(indentString + replace(string, newline, newline + indentString));
}
static function multiply(string, factor) {
var _local2 = "";
var _local1 = factor;
while (_local1 > 0) {
_local2 = _local2 + string;
_local1--;
}
return(_local2);
}
static function ucFirst(string) {
return(string.charAt(0).toUpperCase() + string.substr(1));
}
static function ucWords(string) {
var _local2 = string.split(" ");
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1] = ucFirst(_local2[_local1]);
_local1++;
}
return(_local2.join(" "));
}
static function firstChar(string) {
return(string.charAt(0));
}
static function lastChar(string) {
return(string.charAt(string.length - 1));
}
static function getCharValue(char) {
var _local1 = char.toUpperCase().charCodeAt(0);
if ((_local1 > 47) && (_local1 < 58)) {
return(_local1 - 48);
}
if ((_local1 > 64) && (_local1 < 91)) {
return(_local1 - 55);
}
return(0);
}
static function escape(string, keyMap, ignoreUnicode) {
if (!keyMap) {
keyMap = DEFAULT_ESCAPE_MAP;
}
var _local1 = 0;
var _local3 = keyMap.length;
while (_local1 < _local3) {
string = string.split(keyMap[_local1]).join(keyMap[_local1 + 1]);
_local1 = _local1 + 2;
}
if (!ignoreUnicode) {
_local1 = 0;
_local3 = string.length;
while (_local1 < _local3) {
if (string.substring(_local1, _local1 + 2) == "\\u") {
string = (string.substring(0, _local1) + String.fromCharCode(parseInt(string.substring(_local1 + 2, _local1 + 6), 16))) + string.substring(_local1 + 6);
}
_local1++;
}
}
return(string);
}
static var DEFAULT_ESCAPE_MAP = ["\\t", "\t", "\\n", newline, "\\r", "\r", "\\\"", "\"", "\\\\", "\\", "\\'", "'", "\\f", "\f", "\\b", "\b", "\\", ""];
}
Symbol 1099 MovieClip [__Packages.org.as2lib.env.except.FatalException] Frame 0
class org.as2lib.env.except.FatalException extends org.as2lib.env.except.AbstractThrowable implements org.as2lib.env.except.Throwable
{
var doToString;
function FatalException (message, thrower, args) {
super(message, thrower, args);
}
function toString() {
if (!arguments.caller) {
if (org.as2lib.env.except.AbstractThrowable.getLogger().isFatalEnabled()) {
org.as2lib.env.except.AbstractThrowable.getLogger().fatal(this);
}
}
return(doToString());
}
}
Symbol 1100 MovieClip [__Packages.org.as2lib.env.except.IllegalArgumentException] Frame 0
class org.as2lib.env.except.IllegalArgumentException extends org.as2lib.env.except.FatalException
{
function IllegalArgumentException (message, thrower, args) {
super(message, thrower, args);
}
}
Symbol 1101 MovieClip [__Packages.org.as2lib.env.except.StackTraceElement] Frame 0
class org.as2lib.env.except.StackTraceElement extends org.as2lib.core.BasicClass
{
static var stringifier;
var thrower, method, args;
function StackTraceElement (thrower, method, args) {
super();
this.thrower = (thrower ? (thrower) : null);
this.method = (method ? (method) : null);
this.args = (args ? (args.concat()) : null);
}
static function getStringifier(Void) {
if (!stringifier) {
stringifier = new org.as2lib.env.except.StackTraceElementStringifier();
}
return(stringifier);
}
static function setStringifier(stackTraceElementStringifier) {
stringifier = stackTraceElementStringifier;
}
function getThrower(Void) {
return(thrower);
}
function getMethod(Void) {
return(method);
}
function getArguments(Void) {
return(args.concat());
}
function toString() {
return(getStringifier().execute(this));
}
}
Symbol 1102 MovieClip [__Packages.org.as2lib.env.except.StackTraceElementStringifier] Frame 0
class org.as2lib.env.except.StackTraceElementStringifier extends org.as2lib.core.BasicClass implements org.as2lib.util.Stringifier
{
var showArgumentsValues;
function StackTraceElementStringifier (showArgumentsValues) {
super();
this.showArgumentsValues = showArgumentsValues;
}
function execute(target) {
var _local7 = target;
var _local4;
try {
var _local6 = org.as2lib.env.reflect.ReflectUtil.getTypeAndMethodInfo(_local7.getThrower(), _local7.getMethod());
_local4 = ((_local6[0] == null) ? (UNKNOWN + " ") : ((_local6[0] ? "static " : "")));
_local4 = _local4 + ((_local6[1] == null) ? (UNKNOWN) : (_local6[1]));
_local4 = _local4 + ("." + ((_local6[2] == null) ? (UNKNOWN) : (_local6[2])));
_local4 = _local4 + "(";
if (showArgumentsValues) {
_local4 = _local4 + (_local7.getArguments().toString() ? (_local7.getArguments().toString()) : (UNKNOWN));
} else {
var _local5 = _local7.getArguments();
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = org.as2lib.env.reflect.ReflectUtil.getTypeName(_local5[_local2]);
if (_local3 == null) {
_local3 = UNKNOWN;
}
_local4 = _local4 + _local3;
if (_local2 < (_local5.length - 1)) {
_local4 = _local4 + ", ";
}
_local2++;
}
}
_local4 = _local4 + ")";
} catch(e) {
_local4 = "Exception was thrown during generation of string representation of stack trace element: \n" + org.as2lib.util.StringUtil.addSpaceIndent(e.toString(), 2);
}
return(_local4);
}
static var UNKNOWN = "[unknown]";
}
Symbol 1103 MovieClip [__Packages.org.as2lib.env.log.LogManager] Frame 0
class org.as2lib.env.log.LogManager extends org.as2lib.core.BasicClass
{
static var repository, loggerProxies;
function LogManager (Void) {
super();
}
static function getLogger() {
if (arguments[0].__proto__ != String.prototype) {
return(getLoggerByObject(arguments[0]));
}
return(getLoggerByName(arguments[0]));
}
static function getLoggerByObject(object) {
return(getLoggerByName(org.as2lib.env.reflect.ReflectUtil.getTypeName(object)));
}
static function getLoggerByName(loggerName) {
if (!repository) {
if (loggerProxies[loggerName]) {
return(loggerProxies[loggerName]);
}
if (!loggerProxies) {
loggerProxies = new Array();
}
var _local2 = getBlankLogger();
_local2.__resolve = function () {
return(false);
};
_local2.name = loggerName;
loggerProxies.push(_local2);
loggerProxies[loggerName] = _local2;
return(_local2);
}
var _local2 = repository.getLogger(loggerName);
if (_local2) {
return(_local2);
}
return(null);
}
static function getBlankLogger(Void) {
var _local1 = new Object();
_local1.__proto__ = org.as2lib.env.log.Logger.prototype;
_local1.__constructor__ = org.as2lib.env.log.Logger;
return(_local1);
}
static function setLogger(logger) {
repository = getBlankLoggerRepository();
repository.getLogger = function (loggerName) {
return(logger);
};
}
static function getBlankLoggerRepository(Void) {
var _local1 = new Object();
_local1.__proto__ = org.as2lib.env.log.LoggerRepository.prototype;
_local1.__constructor__ = org.as2lib.env.log.LoggerRepository;
return(_local1);
}
static function getLoggerRepository(Void) {
return(repository);
}
static function setLoggerRepository(loggerRepository) {
repository = loggerRepository;
if (loggerProxies) {
var _local2 = loggerProxies.length - 1;
while (_local2 >= 0) {
var _local1 = loggerProxies[_local2];
var _local3 = _local1.name;
delete _local1.__constructor__;
delete _local1.__resolve;
delete _local1.name;
loggerProxies.pop();
delete loggerProxies[_local3];
var _local4 = loggerRepository.getLogger(_local3);
_local1.__proto__ = _local4;
_local2--;
}
}
}
static function hasLoggerRepository(Void) {
return(repository != null);
}
}
Symbol 1104 MovieClip [__Packages.org.as2lib.env.log.LoggerRepository] Frame 0
interface org.as2lib.env.log.LoggerRepository extends org.as2lib.core.BasicInterface
{
}
Symbol 1105 MovieClip [__Packages.org.as2lib.env.except.IllegalStateException] Frame 0
class org.as2lib.env.except.IllegalStateException extends org.as2lib.env.except.FatalException
{
var __proto__, message, stackTrace, addStackTraceElement;
function IllegalStateException (message, thrower, args) {
super();
__proto__.__proto__ = org.as2lib.env.except.FatalException.prototype;
this.message = message;
stackTrace = new Array();
addStackTraceElement(thrower, args.callee, args);
}
}
Symbol 1106 MovieClip [__Packages.org.as2lib.env.except.Exception] Frame 0
class org.as2lib.env.except.Exception extends org.as2lib.env.except.AbstractThrowable implements org.as2lib.env.except.Throwable
{
var doToString;
function Exception (message, thrower, args) {
super(message, thrower, args);
}
function toString() {
if (!arguments.caller) {
if (org.as2lib.env.except.AbstractThrowable.getLogger().isErrorEnabled()) {
org.as2lib.env.except.AbstractThrowable.getLogger().error(this);
}
}
return(doToString());
}
}
Symbol 1107 MovieClip [__Packages.org.as2lib.regexp.node.LastNode] Frame 0
class org.as2lib.regexp.node.LastNode extends org.as2lib.regexp.node.Node
{
function LastNode () {
super();
}
function match(matcher, i, seq) {
if ((matcher.acceptMode == org.as2lib.regexp.Matcher.ENDANCHOR) && (i != matcher.to)) {
return(false);
}
matcher.last = i;
matcher.groups[0] = matcher.first;
matcher.groups[1] = matcher.last;
return(true);
}
}
Symbol 1108 MovieClip [__Packages.org.as2lib.regexp.Matcher] Frame 0
class org.as2lib.regexp.Matcher extends org.as2lib.core.BasicClass
{
var first, last, oldLast, lastAppendPosition, parentPattern, text, groups, locals, to, from;
function Matcher (newParent, newText) {
super();
acceptMode = NOANCHOR;
first = -1;
last = -1;
oldLast = -1;
lastAppendPosition = 0;
parentPattern = newParent;
text = newText;
var _local4 = Math.max(newParent.groupCount, 10);
groups = new Array(_local4 * 2);
locals = new Array(newParent.localCount);
reset();
}
function getPattern(Void) {
return(parentPattern);
}
function reset(input) {
if (input != null) {
text = input;
}
first = -1;
last = -1;
oldLast = -1;
var _local2 = 0;
while (_local2 < groups.length) {
groups[_local2] = -1;
_local2++;
}
_local2 = 0;
while (_local2 < locals.length) {
locals[_local2] = -1;
_local2++;
}
lastAppendPosition = 0;
return(this);
}
function getStartIndex(group) {
if (first < 0) {
throw new org.as2lib.env.except.Exception("No match available", this, arguments);
}
if (group != null) {
if (group > getGroupCount()) {
throw new org.as2lib.env.except.Exception("No group " + group, this, arguments);
}
return(groups[group * 2]);
}
return(first);
}
function getEndIndex(group) {
if (first < 0) {
throw new org.as2lib.env.except.Exception("No match available", this, arguments);
}
if (group != null) {
if (group > getGroupCount()) {
throw new org.as2lib.env.except.Exception("No group " + group, this, arguments);
}
return(groups[(group * 2) + 1]);
}
return(last);
}
function getGroup(group) {
if (first < 0) {
throw new org.as2lib.env.except.Exception("No match found", this, arguments);
}
if (group == null) {
group = 0;
}
if ((group < 0) || (group > getGroupCount())) {
throw new org.as2lib.env.except.Exception("No group " + group, this, arguments);
}
if ((groups[group * 2] == -1) || (groups[(group * 2) + 1] == -1)) {
return(null);
}
return(getSubSequence(groups[group * 2], groups[(group * 2) + 1]));
}
function getGroupCount(Void) {
return(parentPattern.groupCount - 1);
}
function matches(Void) {
reset();
return(match(0, getTextLength(), ENDANCHOR));
}
function find(newFrom, newTo) {
if ((newFrom == null) && (newTo == null)) {
if (last == first) {
last++;
}
if (last > to) {
var _local2 = 0;
while (_local2 < groups.length) {
groups[_local2] = -1;
_local2++;
}
return(false);
}
newFrom = last;
newTo = getTextLength();
} else if ((from != null) && (to == null)) {
newTo = getTextLength();
reset();
}
from = ((newFrom < 0) ? 0 : (newFrom));
to = newTo;
first = from;
last = -1;
oldLast = ((oldLast < 0) ? (from) : (oldLast));
var _local2 = 0;
while (_local2 < groups.length) {
groups[_local2] = -1;
_local2++;
}
acceptMode = NOANCHOR;
var _local4 = parentPattern.root.match(this, from, text);
if (!_local4) {
first = -1;
}
oldLast = last;
return(_local4);
}
function lookingAt(Void) {
reset();
return(match(0, getTextLength(), NOANCHOR));
}
function appendReplacement(source, replacement) {
if (first < 0) {
throw new org.as2lib.env.except.Exception("No match available", this, arguments);
}
var _local3 = 0;
var _local12 = replacement;
var _local10 = new String();
while (_local3 < replacement.length) {
var _local8 = replacement.charCodeAt(_local3);
if (_local8 == 92) {
_local3++;
_local8 = replacement.charCodeAt(_local3);
_local10 = _local10 + chr(_local8);
_local3++;
} else if (_local8 == 36) {
_local3++;
var _local4 = replacement.charCodeAt(_local3) - 48;
if ((_local4 < 0) || (_local4 > 9)) {
throw new org.as2lib.env.except.Exception("Illegal group reference", this, arguments);
}
_local3++;
var _local9 = false;
while (!_local9) {
if (_local3 >= replacement.length) {
break;
}
var _local5 = replacement.charCodeAt(_local3) - 48;
if ((_local5 < 0) || (_local5 > 9)) {
break;
}
var _local7 = (_local4 * 10) + _local5;
if (getGroupCount() < _local7) {
_local9 = true;
} else {
_local4 = _local7;
_local3++;
}
}
if (getGroup(_local4) != null) {
_local10 = _local10 + String(getGroup(_local4));
}
} else {
_local10 = _local10 + chr(_local8);
_local3++;
}
}
source = source + getSubSequence(lastAppendPosition, first);
source = source + _local10;
lastAppendPosition = last;
return(source);
}
function appendTail(source) {
return(source + getSubSequence(lastAppendPosition, getTextLength()));
}
function replaceAll(replacement) {
reset();
var _local2 = find();
if (_local2) {
var _local3 = new String();
do {
appendReplacement(_local3, replacement);
_local2 = find();
} while (_local2);
appendTail(_local3);
return(_local3);
}
return(text);
}
function replaceFirst(replacement) {
var _local2 = new String();
reset();
if (find()) {
appendReplacement(_local2, replacement);
}
appendTail(_local2);
return(_local2);
}
function match(newFrom, newTo, anchor) {
from = ((newFrom < 0) ? 0 : (newFrom));
to = newTo;
first = from;
last = -1;
oldLast = ((oldLast < 0) ? (from) : (oldLast));
var _local2 = 0;
while (_local2 < groups.length) {
groups[_local2] = -1;
_local2++;
}
acceptMode = anchor;
var _local3 = parentPattern.matchRoot.match(this, from, text);
if (!_local3) {
first = -1;
}
oldLast = last;
return(_local3);
}
function getTextLength(Void) {
return(text.length);
}
function getSubSequence(beginIndex, endIndex) {
return(text.substring(beginIndex, endIndex));
}
static var ENDANCHOR = 1;
static var NOANCHOR = 0;
var acceptMode = NOANCHOR;
}
Symbol 1109 MovieClip [__Packages.org.as2lib.regexp.Pattern] Frame 0
class org.as2lib.regexp.Pattern extends org.as2lib.core.BasicClass
{
var pattern, flags, cursor, groupCount, localCount, root, matchRoot, patternLength, temp, buffer, groupNodes;
function Pattern (newPattern, newFlags) {
super();
pattern = newPattern;
flags = ((newFlags != null) ? (newFlags) : 0);
cursor = 0;
groupCount = 1;
localCount = 0;
if (pattern.length > 0) {
compile();
} else {
root = new org.as2lib.regexp.node.Start(LASTACCEPT);
matchRoot = LASTACCEPT;
}
}
function getPattern(Void) {
return(pattern);
}
function getMatcher(input) {
var _local2 = new org.as2lib.regexp.Matcher(this, input);
return(_local2);
}
function getFlags(Void) {
return(flags);
}
static function matches(pattern, input) {
var _local1 = new org.as2lib.regexp.Pattern(pattern);
var _local2 = _local1.getMatcher(input);
return(_local2.matches());
}
function split(input, limit) {
if (limit == null) {
limit = 0;
}
var _local3 = 0;
var _local9 = limit > 0;
var _local2 = new Array();
var _local4 = getMatcher(input);
while (_local4.find()) {
if ((!_local9) || (_local2.length < (limit - 1))) {
var _local7 = input.substring(_local3, _local4.getStartIndex());
_local2.push(_local7);
_local3 = _local4.getEndIndex();
} else if (_local2.length == (limit - 1)) {
var _local7 = input.substring(_local3, input.length);
_local2.push(_local7);
_local3 = _local4.getEndIndex();
}
}
if (_local3 == 0) {
return([input.toString()]);
}
if ((!_local9) || (_local2.length < limit)) {
_local2.push(input.substring(_local3, input.length));
}
var _local6 = _local2.length;
if (limit == 0) {
while ((_local6 > 0) && (_local2[_local6 - 1].equals(""))) {
_local6--;
}
}
return(_local2.slice(0, _local6));
}
function compile(Void) {
patternLength = pattern.length;
temp = new Array(patternLength + 2);
temp = toCharCodeArray(pattern);
temp[patternLength] = 0;
temp[patternLength + 1] = 0;
buffer = new Array(32);
groupNodes = new Array(10);
matchRoot = parseExpression(LASTACCEPT);
if (patternLength != cursor) {
if (peekChar() == 41) {
throwError("Unmatched closing ')'", arguments);
} else {
throwError("Unexpected internal error", arguments);
}
}
if (matchRoot instanceof org.as2lib.regexp.node.Slice) {
root = org.as2lib.regexp.node.BnM.optimize(matchRoot);
if (root == matchRoot) {
root = new org.as2lib.regexp.node.Start(matchRoot);
}
} else if ((matchRoot instanceof org.as2lib.regexp.node.Begin) || (matchRoot instanceof org.as2lib.regexp.node.First)) {
root = matchRoot;
} else {
root = new org.as2lib.regexp.node.Start(matchRoot);
}
temp = null;
buffer = null;
groupNodes = null;
patternLength = 0;
}
static function printObjectTree(node) {
while (node != null) {
if (node instanceof org.as2lib.regexp.node.Prolog) {
trace(node);
printObjectTree(org.as2lib.regexp.node.Prolog(node).getLoop());
trace("**** end contents prolog loop");
} else if (node instanceof org.as2lib.regexp.node.Loop) {
trace(node);
printObjectTree(org.as2lib.regexp.node.Loop(node).getBody());
trace("**** end contents Loop body");
} else if (node instanceof org.as2lib.regexp.node.Curly) {
trace(node);
printObjectTree(org.as2lib.regexp.node.Curly(node).getAtom());
trace("**** end contents Curly body");
} else {
if (node instanceof org.as2lib.regexp.node.GroupTail) {
trace(node);
trace("Tail next is " + node.getNext());
return(undefined);
}
trace(node);
}
node = node.getNext();
if (node != null) {
trace("->next:");
}
if (node == ACCEPT) {
trace("Accept Node");
node = null;
}
}
}
function hasFlag(f) {
return((flags & f) > 0);
}
function acceptChar(ch, s) {
var _local3 = temp[cursor++];
if (hasFlag(COMMENTS)) {
_local3 = parsePastWhitespace(_local3);
}
if (ch != _local3) {
throwError(s, arguments);
}
}
function markChar(c) {
temp[patternLength] = c;
}
function peekChar(Void) {
var _local2 = temp[cursor];
if (hasFlag(COMMENTS)) {
_local2 = peekPastWhitespace(_local2);
}
return(_local2);
}
function readChar(Void) {
var _local2 = temp[cursor++];
if (hasFlag(COMMENTS)) {
_local2 = parsePastWhitespace(_local2);
}
return(_local2);
}
function readEscapedChar(Void) {
var _local2 = temp[cursor++];
return(_local2);
}
function nextChar(Void) {
var _local2 = temp[++cursor];
if (hasFlag(COMMENTS)) {
_local2 = peekPastWhitespace(_local2);
}
return(_local2);
}
function nextEscapedChar(Void) {
var _local2 = temp[++cursor];
return(_local2);
}
function peekPastWhitespace(ch) {
while (org.as2lib.regexp.AsciiUtil.isSpace(ch) || (ch == 35)) {
while (org.as2lib.regexp.AsciiUtil.isSpace(ch)) {
ch = temp[++cursor];
}
if (ch == 35) {
ch = peekPastLine();
}
}
return(ch);
}
function parsePastWhitespace(ch) {
while (org.as2lib.regexp.AsciiUtil.isSpace(ch) || (ch == 35)) {
while (org.as2lib.regexp.AsciiUtil.isSpace(ch)) {
ch = temp[cursor++];
}
if (ch == 35) {
ch = parsePastLine();
}
}
return(ch);
}
function parsePastLine(Void) {
var _local2 = temp[cursor++];
while ((_local2 != 0) && (!isLineSeparator(_local2))) {
_local2 = temp[cursor++];
}
return(_local2);
}
function peekPastLine(Void) {
var _local2 = temp[++cursor];
while ((_local2 != 0) && (!isLineSeparator(_local2))) {
_local2 = temp[++cursor];
}
return(_local2);
}
function isLineSeparator(ch) {
if (hasFlag(UNIX_LINES)) {
return(ch == 10);
}
return((((ch == 10) || (ch == 13)) || ((ch | 1) == 8233)) || (ch == 133));
}
function skipChar(Void) {
var _local2 = cursor;
var _local3 = temp[_local2 + 1];
cursor = _local2 + 2;
return(_local3);
}
function unreadChar(Void) {
cursor--;
}
function throwError(desc, args) {
throw new org.as2lib.regexp.PatternSyntaxException(desc, this, args);
}
function parseExpression(end) {
var _local2 = null;
while (true) {
var _local3 = parseSequence(end);
if (_local2 == null) {
_local2 = _local3;
} else {
_local2 = new org.as2lib.regexp.node.Branch(_local2, _local3);
}
if (peekChar() != 124) {
return(_local2);
}
nextChar();
}
}
function parseSequence(end) {
var _local6 = null;
var _local5 = null;
var _local3 = null;
var _local11;
var _local10;
var _local4;
while (true) {
_local4 = peekChar();
if (_local4 == 40) {
_local3 = parseGroup();
if (_local3 == null) {
continue;
}
if (_local6 == null) {
_local6 = _local3;
} else {
_local5.setNext(_local3);
}
_local5 = root;
continue;
}
if (_local4 == 91) {
_local3 = parseClass(true);
} else if (_local4 == 92) {
_local4 = nextEscapedChar();
if ((_local4 == 112) || (_local4 == 80)) {
var _local8 = _local4 == 80;
var _local7 = true;
_local4 = nextChar();
if (_local4 != 123) {
unreadChar();
} else {
_local7 = false;
}
_local3 = parseFamily(_local8, _local7);
} else {
unreadChar();
_local3 = parseAtom();
}
} else if (_local4 == 94) {
nextChar();
if (hasFlag(MULTILINE)) {
if (hasFlag(UNIX_LINES)) {
_local3 = new org.as2lib.regexp.node.UnixCaret();
} else {
_local3 = new org.as2lib.regexp.node.Caret();
}
} else {
_local3 = new org.as2lib.regexp.node.Begin();
}
} else if (_local4 == 36) {
nextChar();
if (hasFlag(UNIX_LINES)) {
_local3 = new org.as2lib.regexp.node.UnixDollar(hasFlag(MULTILINE));
} else {
_local3 = new org.as2lib.regexp.node.Dollar(hasFlag(MULTILINE));
}
} else if (_local4 == 46) {
nextChar();
if (hasFlag(DOTALL)) {
_local3 = new org.as2lib.regexp.node.All();
} else if (hasFlag(UNIX_LINES)) {
_local3 = new org.as2lib.regexp.node.UnixDot();
} else {
_local3 = new org.as2lib.regexp.node.Dot();
}
} else {
if ((_local4 == 124) || (_local4 == 41)) {
break;
}
if ((_local4 == 93) || (_local4 == 125)) {
_local3 = parseAtom();
} else if (((_local4 == 63) || (_local4 == 42)) || (_local4 == 43)) {
nextChar();
throwError(("Dangling meta character '" + chr(_local4)) + "'", arguments);
} else {
if (_local4 == 0) {
if (cursor >= patternLength) {
break;
}
}
_local3 = parseAtom();
}
}
_local3 = parseClosure(_local3);
if (_local6 == null) {
_local5 = _local3;
_local6 = _local5;
} else {
_local5.setNext(_local3);
_local5 = _local3;
}
}
if (_local6 == null) {
return(end);
}
_local5.setNext(end);
return(_local6);
}
function parseAtom(Void) {
var _local3 = 0;
var _local4 = -1;
var _local2 = peekChar();
if (true) {
if ((((_local2 == 42) || (_local2 == 43)) || (_local2 == 63)) || (_local2 == 123)) {
if (_local3 > 1) {
cursor = _local4;
_local3--;
}
// unexpected jump
}
if (((((((_local2 == 36) || (_local2 == 46)) || (_local2 == 94)) || (_local2 == 40)) || (_local2 == 91)) || (_local2 == 124)) || (_local2 == 41)) {
// unexpected jump
}
if (_local2 == 92) {
_local2 = nextEscapedChar();
if ((_local2 == 112) || (_local2 == 80)) {
if (_local3 > 0) {
unreadChar();
} else if ((_local2 == 112) || (_local2 == 80)) {
var _local6 = _local2 == 80;
var _local5 = true;
_local2 = nextChar();
if (_local2 != 123) {
unreadChar();
} else {
_local5 = false;
}
return(parseFamily(_local6, _local5));
}
} else {
unreadChar();
_local4 = cursor;
_local2 = parseEscape(false, _local3 == 0);
if (_local2 != null) {
appendChar(_local2, _local3);
_local3++;
_local2 = peekChar();
// unexpected jump
}
if (_local3 == 0) {
return(root);
}
cursor = _local4;
}
// unexpected jump
}
if (_local2 == 0) {
if (cursor >= patternLength) {
// unexpected jump
}
}
_local4 = cursor;
appendChar(_local2, _local3);
_local3++;
_local2 = nextChar();
// unexpected jump
}
if (_local3 == 1) {
return(ceateSingle(buffer[0]));
}
return(createSlice(buffer, _local3));
}
function appendChar(ch, len) {
buffer[len] = ch;
}
function parseBackRef(refNum) {
var _local4 = false;
while (!_local4) {
var _local2 = peekChar();
switch (_local2) {
case 48 :
case 49 :
case 50 :
case 51 :
case 52 :
case 53 :
case 54 :
case 55 :
case 56 :
case 57 :
var _local3 = (refNum * 10) + (_local2 - 48);
if ((groupCount - 1) < _local3) {
_local4 = true;
break;
}
refNum = _local3;
readChar();
break;
default :
_local4 = true;
}
}
if (hasFlag(CASE_INSENSITIVE)) {
return(new org.as2lib.regexp.node.BackRefA(refNum));
}
return(new org.as2lib.regexp.node.BackRef(refNum));
}
function parseEscape(inclass, create) {
var _local9 = skipChar();
switch (_local9) {
case 48 :
return(parseOctal());
case 49 :
case 50 :
case 51 :
case 52 :
case 53 :
case 54 :
case 55 :
case 56 :
case 57 :
if (inclass) {
break;
}
if (groupCount < (_local9 - 48)) {
throwError("No such group yet exists at this point in the pattern", arguments);
}
if (create) {
root = parseBackRef(_local9 - 48);
}
return(null);
case 65 :
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.Begin();
}
return(null);
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.Bound(org.as2lib.regexp.node.Bound.NONE);
}
return(null);
break;
if (create) {
root = new org.as2lib.regexp.node.NotPosix(org.as2lib.regexp.AsciiUtil.DIGIT);
}
return(null);
break;
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.LastMatch();
}
return(null);
break;
if (create) {
var _local5 = cursor;
var _local4;
while (_local4 = readEscapedChar() , _local4 != 0) {
if (_local4 == 92) {
_local4 = readEscapedChar();
if ((_local4 == 69) || (_local4 == 0)) {
break;
}
}
}
var _local7 = cursor - 1;
if (_local4 == 69) {
_local7--;
} else {
unreadChar();
}
var _local3 = _local5;
while (_local3 < _local7) {
appendChar(temp[_local3], _local3 - _local5);
_local3++;
}
root = createSlice(buffer, _local7 - _local5);
}
return(null);
break;
if (create) {
root = new org.as2lib.regexp.node.NotPosix(org.as2lib.regexp.AsciiUtil.SPACE);
}
return(null);
break;
if (create) {
root = new org.as2lib.regexp.node.NotPosix(org.as2lib.regexp.AsciiUtil.WORD);
}
return(null);
break;
if (inclass) {
} else {
if (create) {
if (hasFlag(UNIX_LINES)) {
root = new org.as2lib.regexp.node.UnixDollar(false);
} else {
root = new org.as2lib.regexp.node.Dollar(false);
}
}
return(null);
return(Number(7));
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.Bound(org.as2lib.regexp.node.Bound.BOTH);
}
return(null);
return(parseControl());
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.DIGIT);
}
return(null);
return(Number(27));
return(Number(12));
break;
return(Number(10));
break;
return(Number(13));
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.SPACE);
}
return(null);
return(Number(9));
return(parseUnicode());
return(Number(11));
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.WORD);
}
return(null);
return(parseHexal());
break;
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.End();
}
return(null);
return(_local9);
}
}
}
}
}
}
case 66 :
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.Bound(org.as2lib.regexp.node.Bound.NONE);
}
return(null);
break;
if (create) {
root = new org.as2lib.regexp.node.NotPosix(org.as2lib.regexp.AsciiUtil.DIGIT);
}
return(null);
break;
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.LastMatch();
}
return(null);
break;
if (create) {
var _local5 = cursor;
var _local4;
while (_local4 = readEscapedChar() , _local4 != 0) {
if (_local4 == 92) {
_local4 = readEscapedChar();
if ((_local4 == 69) || (_local4 == 0)) {
break;
}
}
}
var _local7 = cursor - 1;
if (_local4 == 69) {
_local7--;
} else {
unreadChar();
}
var _local3 = _local5;
while (_local3 < _local7) {
appendChar(temp[_local3], _local3 - _local5);
_local3++;
}
root = createSlice(buffer, _local7 - _local5);
}
return(null);
break;
if (create) {
root = new org.as2lib.regexp.node.NotPosix(org.as2lib.regexp.AsciiUtil.SPACE);
}
return(null);
break;
if (create) {
root = new org.as2lib.regexp.node.NotPosix(org.as2lib.regexp.AsciiUtil.WORD);
}
return(null);
break;
if (inclass) {
} else {
if (create) {
if (hasFlag(UNIX_LINES)) {
root = new org.as2lib.regexp.node.UnixDollar(false);
} else {
root = new org.as2lib.regexp.node.Dollar(false);
}
}
return(null);
return(Number(7));
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.Bound(org.as2lib.regexp.node.Bound.BOTH);
}
return(null);
return(parseControl());
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.DIGIT);
}
return(null);
return(Number(27));
return(Number(12));
break;
return(Number(10));
break;
return(Number(13));
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.SPACE);
}
return(null);
return(Number(9));
return(parseUnicode());
return(Number(11));
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.WORD);
}
return(null);
return(parseHexal());
break;
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.End();
}
return(null);
return(_local9);
}
}
}
}
}
case 67 :
break;
case 68 :
if (create) {
root = new org.as2lib.regexp.node.NotPosix(org.as2lib.regexp.AsciiUtil.DIGIT);
}
return(null);
case 69 :
case 70 :
break;
case 71 :
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.LastMatch();
}
return(null);
break;
if (create) {
var _local5 = cursor;
var _local4;
while (_local4 = readEscapedChar() , _local4 != 0) {
if (_local4 == 92) {
_local4 = readEscapedChar();
if ((_local4 == 69) || (_local4 == 0)) {
break;
}
}
}
var _local7 = cursor - 1;
if (_local4 == 69) {
_local7--;
} else {
unreadChar();
}
var _local3 = _local5;
while (_local3 < _local7) {
appendChar(temp[_local3], _local3 - _local5);
_local3++;
}
root = createSlice(buffer, _local7 - _local5);
}
return(null);
break;
if (create) {
root = new org.as2lib.regexp.node.NotPosix(org.as2lib.regexp.AsciiUtil.SPACE);
}
return(null);
break;
if (create) {
root = new org.as2lib.regexp.node.NotPosix(org.as2lib.regexp.AsciiUtil.WORD);
}
return(null);
break;
if (inclass) {
} else {
if (create) {
if (hasFlag(UNIX_LINES)) {
root = new org.as2lib.regexp.node.UnixDollar(false);
} else {
root = new org.as2lib.regexp.node.Dollar(false);
}
}
return(null);
return(Number(7));
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.Bound(org.as2lib.regexp.node.Bound.BOTH);
}
return(null);
return(parseControl());
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.DIGIT);
}
return(null);
return(Number(27));
return(Number(12));
break;
return(Number(10));
break;
return(Number(13));
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.SPACE);
}
return(null);
return(Number(9));
return(parseUnicode());
return(Number(11));
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.WORD);
}
return(null);
return(parseHexal());
break;
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.End();
}
return(null);
return(_local9);
}
}
}
}
case 72 :
case 73 :
case 74 :
case 75 :
case 76 :
case 77 :
case 78 :
case 79 :
case 80 :
break;
case 81 :
if (create) {
var _local5 = cursor;
var _local4;
while (_local4 = readEscapedChar() , _local4 != 0) {
if (_local4 == 92) {
_local4 = readEscapedChar();
if ((_local4 == 69) || (_local4 == 0)) {
break;
}
}
}
var _local7 = cursor - 1;
if (_local4 == 69) {
_local7--;
} else {
unreadChar();
}
var _local3 = _local5;
while (_local3 < _local7) {
appendChar(temp[_local3], _local3 - _local5);
_local3++;
}
root = createSlice(buffer, _local7 - _local5);
}
return(null);
case 82 :
break;
case 83 :
if (create) {
root = new org.as2lib.regexp.node.NotPosix(org.as2lib.regexp.AsciiUtil.SPACE);
}
return(null);
case 84 :
case 85 :
case 86 :
break;
case 87 :
if (create) {
root = new org.as2lib.regexp.node.NotPosix(org.as2lib.regexp.AsciiUtil.WORD);
}
return(null);
case 88 :
case 89 :
break;
case 90 :
if (inclass) {
} else {
if (create) {
if (hasFlag(UNIX_LINES)) {
root = new org.as2lib.regexp.node.UnixDollar(false);
} else {
root = new org.as2lib.regexp.node.Dollar(false);
}
}
return(null);
return(Number(7));
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.Bound(org.as2lib.regexp.node.Bound.BOTH);
}
return(null);
return(parseControl());
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.DIGIT);
}
return(null);
return(Number(27));
return(Number(12));
break;
return(Number(10));
break;
return(Number(13));
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.SPACE);
}
return(null);
return(Number(9));
return(parseUnicode());
return(Number(11));
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.WORD);
}
return(null);
return(parseHexal());
break;
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.End();
}
return(null);
return(_local9);
}
}
}
case 97 :
return(Number(7));
case 98 :
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.Bound(org.as2lib.regexp.node.Bound.BOTH);
}
return(null);
return(parseControl());
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.DIGIT);
}
return(null);
return(Number(27));
return(Number(12));
break;
return(Number(10));
break;
return(Number(13));
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.SPACE);
}
return(null);
return(Number(9));
return(parseUnicode());
return(Number(11));
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.WORD);
}
return(null);
return(parseHexal());
break;
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.End();
}
return(null);
return(_local9);
}
}
case 99 :
return(parseControl());
case 100 :
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.DIGIT);
}
return(null);
case 101 :
return(Number(27));
case 102 :
return(Number(12));
case 103 :
case 104 :
case 105 :
case 106 :
case 107 :
case 108 :
case 109 :
break;
case 110 :
return(Number(10));
case 111 :
case 112 :
case 113 :
break;
case 114 :
return(Number(13));
case 115 :
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.SPACE);
}
return(null);
case 116 :
return(Number(9));
case 117 :
return(parseUnicode());
case 118 :
return(Number(11));
case 119 :
if (create) {
root = new org.as2lib.regexp.node.Posix(org.as2lib.regexp.AsciiUtil.WORD);
}
return(null);
case 120 :
return(parseHexal());
case 121 :
break;
case 122 :
if (inclass) {
} else {
if (create) {
root = new org.as2lib.regexp.node.End();
}
return(null);
return(_local9);
}
default :
return(_local9);
}
throwError("Illegal/unsupported escape squence", arguments);
return(null);
}
function parseClass(consume) {
var _local3 = null;
var _local6 = null;
var _local9 = new org.as2lib.regexp.node.BitClass(false);
var _local8 = true;
var _local7 = true;
var _local5 = nextChar();
while (true) {
switch (_local5) {
case 94 :
if (_local7) {
if (temp[cursor - 1] != 91) {
break;
}
_local5 = nextChar();
_local8 = !_local8;
continue;//outer level
}
break;
case 91 :
_local7 = false;
_local6 = parseClass(true);
if (_local3 == null) {
_local3 = _local6;
} else {
_local3 = new org.as2lib.regexp.node.Add(_local3, _local6);
}
_local5 = peekChar();
continue;//outer level
case 38 :
_local7 = false;
_local5 = nextChar();
if (_local5 == 38) {
_local5 = nextChar();
var _local4 = null;
while ((_local5 != 93) && (_local5 != 38)) {
if (_local5 == 91) {
if (_local4 == null) {
_local4 = parseClass(true);
} else {
_local4 = new org.as2lib.regexp.node.Add(_local4, parseClass(true));
}
} else {
unreadChar();
_local4 = parseClass(false);
}
_local5 = peekChar();
}
if (_local4 != null) {
_local6 = _local4;
}
if (_local3 == null) {
if (_local4 == null) {
throwError("Bad class syntax", arguments);
} else {
_local3 = _local4;
}
} else {
_local3 = new org.as2lib.regexp.node.Both(_local3, _local6);
}
} else {
unreadChar();
break;
}
continue;//outer level
case 0 :
_local7 = false;
if (cursor >= patternLength) {
throwError("Unclosed character class", arguments);
}
break;
case 93 :
_local7 = false;
if (_local3 != null) {
if (consume) {
nextChar();
}
return(_local3);
}
break;
default :
_local7 = false;
}
_local6 = parseRange(_local9);
if (_local8) {
if (_local3 == null) {
_local3 = _local6;
} else if (_local3 != _local6) {
_local3 = new org.as2lib.regexp.node.Add(_local3, _local6);
}
} else if (_local3 == null) {
_local3 = _local6.dup(true);
} else if (_local3 != _local6) {
_local3 = new org.as2lib.regexp.node.Sub(_local3, _local6);
}
_local5 = peekChar();
}
}
function parseRange(bits) {
var _local3 = peekChar();
if (_local3 == 92) {
_local3 = nextEscapedChar();
if ((_local3 == 112) || (_local3 == 80)) {
var _local7 = _local3 == 80;
var _local5 = true;
_local3 = nextChar();
if (_local3 == 123) {
unreadChar();
} else {
_local5 = false;
}
return(parseFamily(_local7, _local5));
}
unreadChar();
_local3 = parseEscape(true, true);
if (_local3 == null) {
return(root);
}
} else {
_local3 = parseSingle();
}
if (_local3 != null) {
if (peekChar() == 45) {
var _local6 = temp[cursor + 1];
if (_local6 == 91) {
if (_local3 < 256) {
return(bits.addChar(_local3, getFlags()));
}
return(ceateSingle(_local3));
}
if (_local6 != 93) {
nextChar();
var _local4 = parseSingle();
if (_local4 < _local3) {
throwError("Illegal character range", arguments);
}
if (hasFlag(CASE_INSENSITIVE)) {
return(new org.as2lib.regexp.node.RangeA((_local3 << 16) + _local4));
}
return(new org.as2lib.regexp.node.Range((_local3 << 16) + _local4));
}
}
if (_local3 < 256) {
return(bits.addChar(_local3, getFlags()));
}
return(ceateSingle(_local3));
}
throwError(("Unexpected character '" + chr(_local3)) + "'", arguments);
}
function parseSingle(Void) {
var _local2 = peekChar();
if (!(_local2 === 92)) {
} else {
return(parseEscape(true, false));
}
nextChar();
return(_local2);
}
function parseFamily(flag, singleLetter) {
throwError("Families dosn't supported in the current Pattern's implementation", arguments);
return(null);
}
function parseGroup(Void) {
var _local3 = null;
var _local4 = null;
var _local12 = flags;
root = null;
var _local6 = nextChar();
if (_local6 == 63) {
_local6 = skipChar();
switch (_local6) {
case 58 :
_local3 = createGroup(true);
_local4 = root;
_local3.setNext(parseExpression(_local4));
break;
case 61 :
case 33 :
_local3 = createGroup(true);
_local4 = root;
_local3.setNext(parseExpression(_local4));
if (_local6 == 61) {
_local4 = new org.as2lib.regexp.node.Pos(_local3);
_local3 = _local4;
} else {
_local4 = new org.as2lib.regexp.node.Neg(_local3);
_local3 = _local4;
}
break;
case 62 :
_local3 = createGroup(true);
_local4 = root;
_local3.setNext(parseExpression(_local4));
_local4 = new org.as2lib.regexp.node.Ques(_local3, INDEPENDENT);
_local3 = _local4;
break;
case 60 :
_local6 = readChar();
_local3 = createGroup(true);
_local4 = root;
_local3.setNext(parseExpression(_local4));
var _local11 = new org.as2lib.regexp.node.TreeInfo();
_local3.study(_local11);
if (_local11.maxValid == false) {
throwError("Look-behind group does not have an obvious maximum length", arguments);
}
if (_local6 == 61) {
_local4 = new org.as2lib.regexp.node.Behind(_local3, _local11.maxLength, _local11.minLength);
_local3 = _local4;
} else if (_local6 == 33) {
_local4 = new org.as2lib.regexp.node.NotBehind(_local3, _local11.maxLength, _local11.minLength);
_local3 = _local4;
} else {
throwError("Unknown look-behind group", arguments);
}
break;
case 49 :
case 50 :
case 51 :
case 52 :
case 53 :
case 54 :
case 55 :
case 56 :
case 57 :
if (groupNodes[_local6 - 48] != null) {
_local4 = new org.as2lib.regexp.node.GroupRef(groupNodes[_local6 - 48]);
_local3 = _local4;
break;
}
throwError("Unknown group reference", arguments);
case 36 :
case 64 :
throwError("Unknown group type", arguments);
default :
unreadChar();
addFlag();
_local6 = readChar();
if (_local6 == 41) {
return(null);
}
if (_local6 != 58) {
throwError("Unknown inline modifier", arguments);
}
_local3 = createGroup(true);
_local4 = root;
_local3.setNext(parseExpression(_local4));
}
} else {
_local3 = createGroup(false);
_local4 = root;
_local3.setNext(parseExpression(_local4));
}
acceptChar(Number(41), "Unclosed group");
flags = _local12;
var _local5 = parseClosure(_local3);
if (_local5 == _local3) {
root = _local4;
return(_local5);
}
if (_local3 == _local4) {
root = _local5;
return(_local5);
}
if (_local5 instanceof org.as2lib.regexp.node.Ques) {
var _local9 = org.as2lib.regexp.node.Ques(_local5);
if (_local9.getType() == POSSESSIVE) {
root = _local5;
return(_local5);
}
_local4.setNext(new org.as2lib.regexp.node.Dummy());
_local4 = _local4.getNext();
if (_local9.getType() == GREEDY) {
_local3 = new org.as2lib.regexp.node.Branch(_local3, _local4);
} else {
_local3 = new org.as2lib.regexp.node.Branch(_local4, _local3);
}
root = _local4;
return(_local3);
}
if (_local5 instanceof org.as2lib.regexp.node.Curly) {
var _local7 = org.as2lib.regexp.node.Curly(_local5);
if (_local7.getType() == POSSESSIVE) {
root = _local5;
return(_local5);
}
var _local11 = new org.as2lib.regexp.node.TreeInfo();
if (_local3.study(_local11)) {
var _local14 = org.as2lib.regexp.node.GroupTail(_local4);
_local3 = (root = new org.as2lib.regexp.node.GroupCurly(_local3.getNext(), _local7.getCmin(), _local7.getCmax(), _local7.getType(), org.as2lib.regexp.node.GroupTail(_local4).getLocalIndex(), org.as2lib.regexp.node.GroupTail(_local4).getGroupIndex()));
return(_local3);
}
var _local10 = org.as2lib.regexp.node.GroupHead(_local3).getLocalIndex();
var _local8;
if (_local7.getType() == GREEDY) {
_local8 = new org.as2lib.regexp.node.Loop(localCount, _local10);
} else {
_local8 = new org.as2lib.regexp.node.LazyLoop(localCount, _local10);
}
var _local13 = new org.as2lib.regexp.node.Prolog(_local8);
localCount = localCount + 1;
_local8.setCmin(_local7.getCmin());
_local8.setCmax(_local7.getCmax());
_local8.setBody(_local3);
_local4.setNext(_local8);
root = _local8;
return(_local13);
}
if (_local5 instanceof org.as2lib.regexp.node.First) {
root = _local5;
return(_local5);
}
throwError("Internal logic error", arguments);
}
function createGroup(anonymous) {
var _local4 = localCount++;
var _local2 = 0;
if (!anonymous) {
_local2 = groupCount++;
}
var _local3 = new org.as2lib.regexp.node.GroupHead(_local4);
root = new org.as2lib.regexp.node.GroupTail(_local4, _local2);
if ((!anonymous) && (_local2 < 10)) {
groupNodes[_local2] = _local3;
}
return(_local3);
}
function addFlag(Void) {
var _local2 = peekChar();
while (true) {
switch (_local2) {
case 105 :
flags = flags | CASE_INSENSITIVE;
break;
case 109 :
flags = flags | MULTILINE;
break;
case 115 :
flags = flags | DOTALL;
break;
case 100 :
flags = flags | UNIX_LINES;
break;
case 117 :
flags = flags | UNICODE_CASE;
break;
case 120 :
flags = flags | COMMENTS;
break;
case 45 :
_local2 = nextChar();
subFlag();
default :
return(undefined);
}
_local2 = nextChar();
}
}
function subFlag(Void) {
var _local2 = peekChar();
while (true) {
switch (_local2) {
case 105 :
flags = flags & (~CASE_INSENSITIVE);
break;
case 109 :
flags = flags & (~MULTILINE);
break;
case 115 :
flags = flags & (~DOTALL);
break;
case 100 :
flags = flags & (~UNIX_LINES);
break;
case 117 :
flags = flags & (~UNICODE_CASE);
break;
case 120 :
flags = flags & (~COMMENTS);
break;
default :
return(undefined);
}
_local2 = nextChar();
}
}
function parseClosure(prev) {
var _local8;
var _local3 = peekChar();
switch (_local3) {
case 63 :
_local3 = nextChar();
if (_local3 == 63) {
nextChar();
return(new org.as2lib.regexp.node.Ques(prev, LAZY));
}
if (_local3 == 43) {
nextChar();
return(new org.as2lib.regexp.node.Ques(prev, POSSESSIVE));
}
return(new org.as2lib.regexp.node.Ques(prev, GREEDY));
case 42 :
_local3 = nextChar();
if (_local3 == 63) {
nextChar();
return(new org.as2lib.regexp.node.Curly(prev, 0, MAX_REPS, LAZY));
}
if (_local3 == 43) {
nextChar();
return(new org.as2lib.regexp.node.Curly(prev, 0, MAX_REPS, POSSESSIVE));
}
return(new org.as2lib.regexp.node.Curly(prev, 0, MAX_REPS, GREEDY));
case 43 :
_local3 = nextChar();
if (_local3 == 63) {
nextChar();
return(new org.as2lib.regexp.node.Curly(prev, 1, MAX_REPS, LAZY));
}
if (_local3 == 43) {
nextChar();
return(new org.as2lib.regexp.node.Curly(prev, 1, MAX_REPS, POSSESSIVE));
}
return(new org.as2lib.regexp.node.Curly(prev, 1, MAX_REPS, GREEDY));
case 123 :
_local3 = temp[cursor + 1];
if (org.as2lib.regexp.AsciiUtil.isDigit(_local3)) {
skipChar();
var _local5 = 0;
do {
_local5 = (_local5 * 10) + (_local3 - 48);
_local3 = readChar();
} while (org.as2lib.regexp.AsciiUtil.isDigit(_local3));
var _local4 = _local5;
if (_local3 == 44) {
_local3 = readChar();
_local4 = MAX_REPS;
if (_local3 != 125) {
_local4 = 0;
while (org.as2lib.regexp.AsciiUtil.isDigit(_local3)) {
_local4 = (_local4 * 10) + (_local3 - 48);
_local3 = readChar();
}
}
}
if (_local3 != 125) {
throwError("Unclosed counted closure", arguments);
}
if (((_local5 | _local4) | (_local4 - _local5)) < 0) {
throwError("Illegal repetition range", arguments);
}
var _local7;
_local3 = peekChar();
if (_local3 == 63) {
nextChar();
_local7 = new org.as2lib.regexp.node.Curly(prev, _local5, _local4, LAZY);
} else if (_local3 == 43) {
nextChar();
_local7 = new org.as2lib.regexp.node.Curly(prev, _local5, _local4, POSSESSIVE);
} else {
_local7 = new org.as2lib.regexp.node.Curly(prev, _local5, _local4, GREEDY);
}
return(_local7);
}
throwError("Illegal repetition", arguments);
return(prev);
}
return(prev);
}
function parseControl(Void) {
if (cursor < patternLength) {
return(readChar() ^ 64);
}
throwError("Illegal control escape sequence", arguments);
return(null);
}
function parseOctal(Void) {
var _local3 = readChar();
if (((_local3 - 48) | (55 - _local3)) >= 0) {
var _local4 = readChar();
if (((_local4 - 48) | (55 - _local4)) >= 0) {
var _local5 = readChar();
if ((((_local5 - 48) | (55 - _local5)) >= 0) && (((_local3 - 48) | (51 - _local3)) >= 0)) {
return((((_local3 - 48) * 64) + ((_local4 - 48) * 8)) + (_local5 - 48));
}
unreadChar();
return(((_local3 - 48) * 8) + (_local4 - 48));
}
unreadChar();
return(_local3 - 48);
}
throwError("Illegal octal escape sequence", arguments);
return(null);
}
function parseHexal(Void) {
var _local3 = readChar();
if (org.as2lib.regexp.AsciiUtil.isHexDigit(_local3)) {
var _local4 = readChar();
if (org.as2lib.regexp.AsciiUtil.isHexDigit(_local4)) {
return((org.as2lib.regexp.AsciiUtil.toDigit(_local3) * 16) + org.as2lib.regexp.AsciiUtil.toDigit(_local4));
}
}
throwError("Illegal hexadecimal escape sequence", arguments);
return(null);
}
function parseUnicode(Void) {
var _local5 = 0;
var _local4 = 0;
while (_local4 < 4) {
var _local3 = readChar();
if (!org.as2lib.regexp.AsciiUtil.isHexDigit(_local3)) {
throwError("Illegal Unicode escape sequence", arguments);
}
_local5 = (_local5 * 16) + org.as2lib.regexp.AsciiUtil.toDigit(_local3);
_local4++;
}
return(_local5);
}
function ceateSingle(ch) {
var _local2 = flags;
if ((_local2 & CASE_INSENSITIVE) == 0) {
return(new org.as2lib.regexp.node.Single(ch));
}
if ((_local2 & UNICODE_CASE) == 0) {
return(new org.as2lib.regexp.node.SingleA(ch));
}
return(new org.as2lib.regexp.node.SingleU(ch));
}
function createSlice(buf, count, hasSupplementary) {
var _local4 = new Array(count);
var _local2 = flags;
if ((_local2 & CASE_INSENSITIVE) == 0) {
_local2 = 0;
while (_local2 < count) {
_local4[_local2] = buf[_local2];
_local2++;
}
return(new org.as2lib.regexp.node.Slice(_local4));
}
if ((_local2 & UNICODE_CASE) == 0) {
_local2 = 0;
while (_local2 < count) {
_local4[_local2] = org.as2lib.regexp.AsciiUtil.toLower(buf[_local2]);
_local2++;
}
return(new org.as2lib.regexp.node.SliceA(_local4));
}
_local2 = 0;
while (_local2 < count) {
var _local3 = buf[_local2];
_local3 = org.as2lib.regexp.AsciiUtil.toLower(org.as2lib.regexp.AsciiUtil.toUpper(_local3));
_local4[_local2] = _local3;
_local2++;
}
return(new org.as2lib.regexp.node.SliceU(_local4));
}
function toCharCodeArray(source) {
var _local3 = new Array(source.length);
var _local1 = 0;
while (_local1 < source.length) {
_local3[_local1] = source.charCodeAt(_local1);
_local1++;
}
return(_local3);
}
function fromCharCodeArray(source) {
var _local3 = new String();
var _local1 = 0;
while (_local1 < source.length) {
_local3 = _local3 + String.fromCharCode(source[_local1]);
_local1++;
}
return(_local3);
}
static var UNIX_LINES = 1;
static var CASE_INSENSITIVE = 2;
static var COMMENTS = 4;
static var MULTILINE = 8;
static var DOTALL = 32;
static var UNICODE_CASE = 64;
static var MAX_REPS = 2147483647;
static var GREEDY = 0;
static var LAZY = 1;
static var POSSESSIVE = 2;
static var INDEPENDENT = 3;
static var ACCEPT = new org.as2lib.regexp.node.Node();
static var LASTACCEPT = new org.as2lib.regexp.node.LastNode();
}
Symbol 1110 MovieClip [__Packages.org.as2lib.regexp.node.Start] Frame 0
class org.as2lib.regexp.node.Start extends org.as2lib.regexp.node.Node
{
var next, minLength;
function Start (node) {
super();
next = node;
var _local3 = new org.as2lib.regexp.node.TreeInfo();
next.study(_local3);
minLength = _local3.minLength;
}
function match(matcher, i, seq) {
if (i > (matcher.to - minLength)) {
return(false);
}
var _local4 = false;
var _local5 = matcher.to - minLength;
while (i <= _local5) {
_local4 = next.match(matcher, i, seq);
if (_local4) {
break;
}
i++;
}
if (_local4) {
matcher.first = i;
matcher.groups[0] = matcher.first;
matcher.groups[1] = matcher.last;
}
return(_local4);
}
function study(info) {
next.study(info);
info.maxValid = false;
info.deterministic = false;
return(false);
}
}
Symbol 1111 MovieClip [__Packages.org.as2lib.regexp.node.Slice] Frame 0
class org.as2lib.regexp.node.Slice extends org.as2lib.regexp.node.Node
{
var buffer, next;
function Slice (buf) {
super();
buffer = buf;
}
function match(matcher, i, seq) {
var _local4 = buffer;
var _local3 = _local4.length;
if ((i + _local3) > matcher.to) {
return(false);
}
var _local2 = 0;
while (_local2 < _local3) {
if (_local4[_local2] != seq.charCodeAt(i + _local2)) {
return(false);
}
_local2++;
}
return(next.match(matcher, i + _local3, seq));
}
function study(info) {
info.minLength = info.minLength + buffer.length;
info.maxLength = info.maxLength + buffer.length;
return(next.study(info));
}
function getBuffer(Void) {
return(buffer);
}
}
Symbol 1112 MovieClip [__Packages.org.as2lib.regexp.node.BnM] Frame 0
class org.as2lib.regexp.node.BnM extends org.as2lib.regexp.node.Node
{
var buffer, lastOcc, optoSft, next;
function BnM (src, lastOcc, optoSft, next) {
super();
buffer = src;
this.lastOcc = lastOcc;
this.optoSft = optoSft;
this.next = next;
}
static function optimize(node) {
if (!(node instanceof org.as2lib.regexp.node.Slice)) {
return(node);
}
var _local3 = org.as2lib.regexp.node.Slice(node).getBuffer();
var _local5 = _local3.length;
if (_local5 < 4) {
return(node);
}
var _local2;
var _local1;
var _local7 = Array(128);
var _local6 = Array(_local5);
_local2 = 0;
while (_local2 < _local5) {
_local7[_local3[_local2] & 127] = _local2 + 1;
_local2++;
}
_local2 = _local5;
while (_local2 > 0) {
var _local4 = false;
_local1 = _local5 - 1;
while (_local1 >= _local2) {
if (_local3[_local1] == _local3[_local1 - _local2]) {
_local6[_local1 - 1] = _local2;
} else {
_local4 = true;
break;
}
_local1--;
}
if (_local4) {
} else {
while (_local1 > 0) {
_local1--;
_local6[_local1] = _local2;
}
}
_local2--;
}
_local6[_local5 - 1] = 1;
return(new org.as2lib.regexp.node.BnM(_local3, _local7, _local6, node.next));
}
function match(matcher, i, seq) {
var _local10 = buffer;
var _local7 = _local10.length;
var _local11 = matcher.to - _local7;
while (i <= _local11) {
var _local6 = false;
var _local2 = _local7 - 1;
while (_local2 >= 0) {
var _local4 = seq.charCodeAt(i + _local2);
if (_local10[_local2] != _local4) {
i = i + Math.max((_local2 + 1) - lastOcc[_local4 & 127], optoSft[_local2]);
_local6 = true;
break;
}
_local2--;
}
if (_local6) {
continue;
}
matcher.first = i;
var _local8 = next.match(matcher, i + _local7, seq);
if (_local8) {
matcher.first = i;
matcher.groups[0] = matcher.first;
matcher.groups[1] = matcher.last;
return(true);
}
i++;
}
return(false);
}
function study(info) {
info.minLength = info.minLength + buffer.length;
info.maxValid = false;
return(next.study(info));
}
}
Symbol 1113 MovieClip [__Packages.org.as2lib.regexp.node.Begin] Frame 0
class org.as2lib.regexp.node.Begin extends org.as2lib.regexp.node.Node
{
var next;
function Begin () {
super();
}
function match(matcher, i, seq) {
if ((i == matcher.from) && (next.match(matcher, i, seq))) {
matcher.first = i;
matcher.groups[0] = i;
matcher.groups[1] = matcher.last;
return(true);
}
return(false);
}
}
Symbol 1114 MovieClip [__Packages.org.as2lib.regexp.node.First] Frame 0
class org.as2lib.regexp.node.First extends org.as2lib.regexp.node.Node
{
var atom, next;
function First (node) {
super();
atom = org.as2lib.regexp.node.BnM.optimize(node);
}
function match(matcher, i, seq) {
if (atom instanceof org.as2lib.regexp.node.BnM) {
return(atom.match(matcher, i, seq) && (next.match(matcher, matcher.last, seq)));
}
while (true) {
if (i > matcher.to) {
return(false);
}
if (atom.match(matcher, i, seq)) {
return(next.match(matcher, matcher.last, seq));
}
i++;
matcher.first++;
}
}
function study(info) {
atom.study(info);
info.maxValid = false;
info.deterministic = false;
return(next.study(info));
}
}
Symbol 1115 MovieClip [__Packages.org.as2lib.regexp.node.Prolog] Frame 0
class org.as2lib.regexp.node.Prolog extends org.as2lib.regexp.node.Node
{
var loop;
function Prolog (loop) {
super();
this.loop = loop;
}
function match(matcher, i, seq) {
return(loop.matchInit(matcher, i, seq));
}
function study(info) {
return(loop.study(info));
}
function getLoop(Void) {
return(loop);
}
}
Symbol 1116 MovieClip [__Packages.org.as2lib.regexp.node.Loop] Frame 0
class org.as2lib.regexp.node.Loop extends org.as2lib.regexp.node.Node
{
var countIndex, beginIndex, cmin, body, cmax, next;
function Loop (countIndex, beginIndex) {
super();
this.countIndex = countIndex;
this.beginIndex = beginIndex;
}
function match(matcher, i, seq) {
if (i > matcher.locals[beginIndex]) {
var _local3 = matcher.locals[countIndex];
if (_local3 < cmin) {
matcher.locals[countIndex] = _local3 + 1;
var _local6 = body.match(matcher, i, seq);
if (!_local6) {
matcher.locals[countIndex] = _local3;
}
return(_local6);
}
if (_local3 < cmax) {
matcher.locals[countIndex] = _local3 + 1;
var _local6 = body.match(matcher, i, seq);
if (!_local6) {
matcher.locals[countIndex] = _local3;
} else {
return(true);
}
}
}
return(next.match(matcher, i, seq));
}
function matchInit(matcher, i, seq) {
var _local6 = matcher.locals[countIndex];
var _local2 = false;
if (0 < cmin) {
matcher.locals[countIndex] = 1;
_local2 = body.match(matcher, i, seq);
} else if (0 < cmax) {
matcher.locals[countIndex] = 1;
_local2 = body.match(matcher, i, seq);
if (_local2 == false) {
_local2 = next.match(matcher, i, seq);
}
} else {
_local2 = next.match(matcher, i, seq);
}
matcher.locals[countIndex] = _local6;
return(_local2);
}
function study(info) {
info.maxValid = false;
info.deterministic = false;
return(false);
}
function getCmin(Void) {
return(cmin);
}
function setCmin(cmin) {
this.cmin = cmin;
}
function getCmax(Void) {
return(cmax);
}
function setCmax(cmax) {
this.cmax = cmax;
}
function getBody(Void) {
return(body);
}
function setBody(body) {
this.body = body;
}
}
Symbol 1117 MovieClip [__Packages.org.as2lib.regexp.node.Curly] Frame 0
class org.as2lib.regexp.node.Curly extends org.as2lib.regexp.node.Node
{
var atom, type, cmin, cmax, next;
function Curly (node, cmin, cmax, type) {
super();
atom = node;
this.type = type;
this.cmin = cmin;
this.cmax = cmax;
}
function match(matcher, i, seq) {
var _local2;
_local2 = 0;
while (_local2 < cmin) {
if (atom.match(matcher, i, seq)) {
i = matcher.last;
} else {
return(false);
}
_local2++;
}
if (type == org.as2lib.regexp.Pattern.GREEDY) {
return(match0(matcher, i, _local2, seq));
}
if (type == org.as2lib.regexp.Pattern.LAZY) {
return(match1(matcher, i, _local2, seq));
}
return(match2(matcher, i, _local2, seq));
}
function match0(matcher, i, j, seq) {
if (j >= cmax) {
return(next.match(matcher, i, seq));
}
var _local7 = j;
if (atom.match(matcher, i, seq)) {
var _local5 = matcher.last - i;
if (_local5 == 0) {
} else {
i = matcher.last;
j++;
while (j < cmax) {
if (!atom.match(matcher, i, seq)) {
break;
}
if ((i + _local5) != matcher.last) {
if (match0(matcher, matcher.last, j + 1, seq)) {
return(true);
}
break;
}
i = i + _local5;
j++;
}
while (j >= _local7) {
if (next.match(matcher, i, seq)) {
return(true);
}
i = i - _local5;
j--;
}
return(false);
}
}
return(next.match(matcher, i, seq));
}
function match1(matcher, i, j, seq) {
while (true) {
if (next.match(matcher, i, seq)) {
return(true);
}
if (j >= cmax) {
return(false);
}
if (!atom.match(matcher, i, seq)) {
return(false);
}
if (i == matcher.last) {
return(false);
}
i = matcher.last;
j++;
}
}
function match2(matcher, i, j, seq) {
while (j < cmax) {
if (!atom.match(matcher, i, seq)) {
break;
}
if (i == matcher.last) {
break;
}
i = matcher.last;
j++;
}
return(next.match(matcher, i, seq));
}
function study(info) {
var _local4 = info.minLength;
var _local5 = info.maxLength;
var _local6 = info.maxValid;
var _local7 = info.deterministic;
info.reset();
atom.study(info);
var _local3 = (info.minLength * cmin) + _local4;
if (_local3 < _local4) {
_local3 = 268435455 /* 0xFFFFFFF */;
}
info.minLength = _local3;
if (_local6 && (info.maxValid)) {
_local3 = (info.maxLength * cmax) + _local5;
info.maxLength = _local3;
if (_local3 < _local5) {
info.maxValid = false;
}
} else {
info.maxValid = false;
}
if (info.deterministic && (cmin == cmax)) {
info.deterministic = _local7;
} else {
info.deterministic = false;
}
return(next.study(info));
}
function getType(Void) {
return(type);
}
function getAtom(Void) {
return(atom);
}
function getCmin(Void) {
return(cmin);
}
function getCmax(Void) {
return(cmax);
}
}
Symbol 1118 MovieClip [__Packages.org.as2lib.regexp.node.GroupTail] Frame 0
class org.as2lib.regexp.node.GroupTail extends org.as2lib.regexp.node.Node
{
var localIndex, groupIndex, next;
function GroupTail (localCount, groupCount) {
super();
localIndex = localCount;
groupIndex = groupCount + groupCount;
}
function match(matcher, i, seq) {
var _local3 = matcher.locals[localIndex];
if (_local3 >= 0) {
var _local6 = matcher.groups[groupIndex];
var _local4 = matcher.groups[groupIndex + 1];
matcher.groups[groupIndex] = _local3;
matcher.groups[groupIndex + 1] = i;
if (next.match(matcher, i, seq)) {
return(true);
}
matcher.groups[groupIndex] = _local6;
matcher.groups[groupIndex + 1] = _local4;
return(false);
}
matcher.last = i;
return(true);
}
function getLocalIndex(Void) {
return(localIndex);
}
function getGroupIndex(Void) {
return(groupIndex);
}
}
Symbol 1119 MovieClip [__Packages.org.as2lib.regexp.AsciiUtil] Frame 0
class org.as2lib.regexp.AsciiUtil extends org.as2lib.core.BasicClass
{
function AsciiUtil (Void) {
super();
}
static function getType(ch) {
return((((ch & 4294967168) == 0) ? (charTypes[ch]) : 0));
}
static function isType(ch, type) {
return((getType(ch) & type) != 0);
}
static function isAscii(ch) {
return((ch & 4294967168) == 0);
}
static function isAlpha(ch) {
return(isType(ch, ALPHA));
}
static function isDigit(ch) {
return(((ch - 48) | (57 - ch)) >= 0);
}
static function isAlnum(ch) {
return(isType(ch, ALNUM));
}
static function isGraph(ch) {
return(isType(ch, GRAPH));
}
static function isPrint(ch) {
return(((ch - 32) | (126 - ch)) >= 0);
}
static function isPunct(ch) {
return(isType(ch, PUNCT));
}
static function isSpace(ch) {
return(isType(ch, SPACE));
}
static function isHexDigit(ch) {
return(isType(ch, HEX));
}
static function isOctDigit(ch) {
return(((ch - 48) | (55 - ch)) >= 0);
}
static function isCntrl(ch) {
return(isType(ch, CNTRL));
}
static function isLower(ch) {
return(((ch - 97) | (122 - ch)) >= 0);
}
static function isUpper(ch) {
return(((ch - 65) | (90 - ch)) >= 0);
}
static function isWord(ch) {
return(isType(ch, WORD));
}
static function toDigit(ch) {
return(charTypes[ch & 127] & 63);
}
static function toLower(ch) {
return((isUpper(ch) ? (ch + 32) : (ch)));
}
static function toUpper(ch) {
return((isLower(ch) ? (ch - 32) : (ch)));
}
static var UPPER = 256;
static var LOWER = 512;
static var DIGIT = 1024;
static var SPACE = 2048;
static var PUNCT = 4096;
static var CNTRL = 8192;
static var BLANK = 16384;
static var HEX = 32768;
static var UNDER = 65536;
static var ASCII = 65280;
static var ALPHA = UPPER | LOWER;
static var ALNUM = (UPPER | LOWER) | DIGIT;
static var GRAPH = ((PUNCT | UPPER) | LOWER) | DIGIT;
static var WORD = ((UPPER | LOWER) | UNDER) | DIGIT;
static var XDIGIT = HEX;
static var charTypes = [CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, (SPACE + CNTRL) + BLANK, SPACE + CNTRL, SPACE + CNTRL, SPACE + CNTRL, SPACE + CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, CNTRL, SPACE + BLANK, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, (DIGIT + HEX) + 0, (DIGIT + HEX) + 1, (DIGIT + HEX) + 2, (DIGIT + HEX) + 3, (DIGIT + HEX) + 4, (DIGIT + HEX) + 5, (DIGIT + HEX) + 6, (DIGIT + HEX) + 7, (DIGIT + HEX) + 8, (DIGIT + HEX) + 9, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT, (UPPER + HEX) + 10, (UPPER + HEX) + 11, (UPPER + HEX) + 12, (UPPER + HEX) + 13, (UPPER + HEX) + 14, (UPPER + HEX) + 15, UPPER + 16, UPPER + 17, UPPER + 18, UPPER + 19, UPPER + 20, UPPER + 21, UPPER + 22, UPPER + 23, UPPER + 24, UPPER + 25, UPPER + 26, UPPER + 27, UPPER + 28, UPPER + 29, UPPER + 30, UPPER + 31, UPPER + 32, UPPER + 33, UPPER + 34, UPPER + 35, PUNCT, PUNCT, PUNCT, PUNCT, PUNCT | UNDER, PUNCT, (LOWER + HEX) + 10, (LOWER + HEX) + 11, (LOWER + HEX) + 12, (LOWER + HEX) + 13, (LOWER + HEX) + 14, (LOWER + HEX) + 15, LOWER + 16, LOWER + 17, LOWER + 18, LOWER + 19, LOWER + 20, LOWER + 21, LOWER + 22, LOWER + 23, LOWER + 24, LOWER + 25, LOWER + 26, LOWER + 27, LOWER + 28, LOWER + 29, LOWER + 30, LOWER + 31, LOWER + 32, LOWER + 33, LOWER + 34, LOWER + 35, PUNCT, PUNCT, PUNCT, PUNCT, CNTRL];
}
Symbol 1120 MovieClip [__Packages.org.as2lib.regexp.PatternSyntaxException] Frame 0
class org.as2lib.regexp.PatternSyntaxException extends org.as2lib.env.except.Exception
{
var description, pattern, index;
function PatternSyntaxException (description, thrower, args) {
super(description, thrower, args);
this.description = description;
pattern = thrower.pattern;
index = thrower.cursor;
}
function getIndex(Void) {
return(index);
}
function getDescription(Void) {
return(description);
}
function getPattern(Void) {
return(pattern);
}
function getMessage(Void) {
var _local2 = description;
if (index >= 0) {
_local2 = _local2 + ((" near index " + index) + ": ");
}
_local2 = _local2 + (NEW_LINE + pattern);
if (index >= 0) {
_local2 = _local2 + ((NEW_LINE + org.as2lib.util.StringUtil.multiply(" ", index)) + "^");
}
return(_local2);
}
static var NEW_LINE = newline;
}
Symbol 1121 MovieClip [__Packages.org.as2lib.regexp.node.Branch] Frame 0
class org.as2lib.regexp.node.Branch extends org.as2lib.regexp.node.Node
{
var prev, next;
function Branch (lhs, rhs) {
super();
prev = lhs;
next = rhs;
}
function match(matcher, i, seq) {
return(prev.match(matcher, i, seq) || (next.match(matcher, i, seq)));
}
function study(info) {
var _local4 = info.minLength;
var _local8 = info.maxLength;
var _local5 = info.maxValid;
info.reset();
prev.study(info);
var _local7 = info.minLength;
var _local3 = info.maxLength;
var _local6 = info.maxValid;
info.reset();
next.study(info);
info.minLength = _local4 + Math.min(_local7, info.minLength);
info.maxLength = _local8 + Math.max(_local3, info.maxLength);
info.maxValid = (_local5 && (_local6)) && (info.maxValid);
info.deterministic = false;
return(false);
}
}
Symbol 1122 MovieClip [__Packages.org.as2lib.regexp.node.UnixCaret] Frame 0
class org.as2lib.regexp.node.UnixCaret extends org.as2lib.regexp.node.Node
{
var next;
function UnixCaret () {
super();
}
function match(matcher, i, seq) {
if (i > matcher.from) {
var _local4 = seq.charCodeAt(i - 1);
if (_local4 != 10) {
return(false);
}
}
if (i == matcher.to) {
return(false);
}
return(next.match(matcher, i, seq));
}
}
Symbol 1123 MovieClip [__Packages.org.as2lib.regexp.node.Caret] Frame 0
class org.as2lib.regexp.node.Caret extends org.as2lib.regexp.node.Node
{
var next;
function Caret () {
super();
}
function match(matcher, i, seq) {
if (i > matcher.from) {
var _local2 = seq.charCodeAt(i - 1);
if ((((_local2 != 10) && (_local2 != 13)) && ((_local2 | 1) != 8233)) && (_local2 != 133)) {
return(false);
}
if ((_local2 == 13) && (seq.charAt(i) == newline)) {
return(false);
}
}
if (i == matcher.to) {
return(false);
}
return(next.match(matcher, i, seq));
}
}
Symbol 1124 MovieClip [__Packages.org.as2lib.regexp.node.UnixDollar] Frame 0
class org.as2lib.regexp.node.UnixDollar extends org.as2lib.regexp.node.Node
{
var multiline, next;
function UnixDollar (mul) {
super();
multiline = mul;
}
function match(matcher, i, seq) {
if (i < matcher.to) {
var _local4 = seq.charCodeAt(i);
if (_local4 == 10) {
if ((multiline == false) && (i != (matcher.to - 1))) {
return(false);
}
} else {
return(false);
}
}
return(next.match(matcher, i, seq));
}
function study(info) {
next.study(info);
return(info.deterministic);
}
}
Symbol 1125 MovieClip [__Packages.org.as2lib.regexp.node.Dollar] Frame 0
class org.as2lib.regexp.node.Dollar extends org.as2lib.regexp.node.Node
{
var multiline, next;
function Dollar (mul) {
super();
multiline = mul;
}
function match(matcher, i, seq) {
if (!multiline) {
if (i < (matcher.to - 2)) {
return(false);
}
if (i == (matcher.to - 2)) {
var _local3 = seq.charCodeAt(i);
if (_local3 != 13) {
return(false);
}
_local3 = seq.charCodeAt(i + 1);
if (_local3 != 10) {
return(false);
}
}
}
if (i < matcher.to) {
var _local3 = seq.charCodeAt(i);
if (_local3 == 10) {
if ((i > 0) && (seq.charAt(i - 1) == "\r")) {
return(false);
}
} else if (((_local3 == 13) || (_local3 == 133)) || ((_local3 | 1) == 8233)) {
} else {
return(false);
}
}
return(next.match(matcher, i, seq));
}
function study(info) {
next.study(info);
return(info.deterministic);
}
}
Symbol 1126 MovieClip [__Packages.org.as2lib.regexp.node.All] Frame 0
class org.as2lib.regexp.node.All extends org.as2lib.regexp.node.Node
{
var next;
function All () {
super();
}
function dup(flag) {
if (flag) {
return(new org.as2lib.regexp.node.Single(-1));
}
return(new org.as2lib.regexp.node.All());
}
function match(matcher, i, seq) {
return((i < matcher.to) && (next.match(matcher, i + 1, seq)));
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1127 MovieClip [__Packages.org.as2lib.regexp.node.Single] Frame 0
class org.as2lib.regexp.node.Single extends org.as2lib.regexp.node.Node
{
var ch, next;
function Single (n) {
super();
ch = n;
}
function dup(flag) {
return((flag ? (new org.as2lib.regexp.node.NotSingle(ch)) : (new org.as2lib.regexp.node.Single(ch))));
}
function match(matcher, i, seq) {
return(((i < matcher.to) && (seq.charCodeAt(i) == ch)) && (next.match(matcher, i + 1, seq)));
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1128 MovieClip [__Packages.org.as2lib.regexp.node.NotSingle] Frame 0
class org.as2lib.regexp.node.NotSingle extends org.as2lib.regexp.node.Node
{
var ch, next;
function NotSingle (n) {
super();
ch = n;
}
function dup(flag) {
return((flag ? (new org.as2lib.regexp.node.Single(ch)) : (new org.as2lib.regexp.node.NotSingle(ch))));
}
function match(matcher, i, seq) {
return(((i < matcher.to) && (seq.charCodeAt(i) != i)) && (next.match(matcher, i + 1, seq)));
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1129 MovieClip [__Packages.org.as2lib.regexp.node.UnixDot] Frame 0
class org.as2lib.regexp.node.UnixDot extends org.as2lib.regexp.node.Node
{
var next;
function UnixDot () {
super();
}
function match(matcher, i, seq) {
if (i < matcher.to) {
var _local2 = seq.charCodeAt(i);
return((_local2 != 10) && (next.match(matcher, i + 1, seq)));
}
return(false);
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1130 MovieClip [__Packages.org.as2lib.regexp.node.Dot] Frame 0
class org.as2lib.regexp.node.Dot extends org.as2lib.regexp.node.Node
{
var next;
function Dot () {
super();
}
function match(matcher, i, seq) {
if (i < matcher.to) {
var _local2 = seq.charCodeAt(i);
return(((((_local2 != 10) && (_local2 != 13)) && ((_local2 | 1) != 8233)) && (_local2 != 133)) && (next.match(matcher, i + 1, seq)));
}
return(false);
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1131 MovieClip [__Packages.org.as2lib.regexp.node.BackRefA] Frame 0
class org.as2lib.regexp.node.BackRefA extends org.as2lib.regexp.node.Node
{
var groupIndex, next;
function BackRefA (groupCount) {
super();
groupIndex = groupCount + groupCount;
}
function match(matcher, i, seq) {
var _local7 = matcher.groups[groupIndex];
var _local10 = matcher.groups[groupIndex + 1];
var _local6 = _local10 - _local7;
if (_local7 < 0) {
return(false);
}
if ((i + _local6) > matcher.to) {
return(false);
}
var _local4 = 0;
while (_local4 < _local6) {
var _local3 = seq.charCodeAt(i + _local4);
var _local2 = seq.charCodeAt(_local7 + _local4);
if (_local3 != _local2) {
_local3 = org.as2lib.regexp.AsciiUtil.toUpper(_local3);
_local2 = org.as2lib.regexp.AsciiUtil.toUpper(_local2);
if (_local3 != _local2) {
_local3 = org.as2lib.regexp.AsciiUtil.toLower(_local3);
_local2 = org.as2lib.regexp.AsciiUtil.toLower(_local2);
if (_local3 != _local2) {
return(false);
}
}
}
_local4++;
}
return(next.match(matcher, i + _local6, seq));
}
function study(info) {
info.maxValid = false;
return(next.study(info));
}
}
Symbol 1132 MovieClip [__Packages.org.as2lib.regexp.node.BackRef] Frame 0
class org.as2lib.regexp.node.BackRef extends org.as2lib.regexp.node.Node
{
var groupIndex, next;
function BackRef (groupCount) {
super();
groupIndex = groupCount + groupCount;
}
function match(matcher, i, seq) {
var _local5 = matcher.groups[groupIndex];
var _local8 = matcher.groups[groupIndex + 1];
var _local4 = _local8 - _local5;
if (_local5 < 0) {
return(false);
}
if ((i + _local4) > matcher.to) {
return(false);
}
var _local2 = 0;
while (_local2 < _local4) {
if (seq.charAt(i + _local2) != seq.charAt(_local5 + _local2)) {
return(false);
}
_local2++;
}
return(next.match(matcher, i + _local4, seq));
}
function study(info) {
info.maxValid = false;
return(next.study(info));
}
}
Symbol 1133 MovieClip [__Packages.org.as2lib.regexp.node.Bound] Frame 0
class org.as2lib.regexp.node.Bound extends org.as2lib.regexp.node.Node
{
var type, next;
function Bound (n) {
super();
type = n;
}
function check(matcher, i, seq) {
var _local1;
var _local4 = false;
if (i > matcher.from) {
_local1 = seq.charCodeAt(i - 1);
_local4 = ((_local1 == 95) || (org.as2lib.regexp.AsciiUtil.isLower(_local1))) || (org.as2lib.regexp.AsciiUtil.isDigit(_local1));
}
var _local2 = false;
if (i < matcher.to) {
_local1 = seq.charCodeAt(i);
_local2 = ((_local1 == 95) || (org.as2lib.regexp.AsciiUtil.isLower(_local1))) || (org.as2lib.regexp.AsciiUtil.isDigit(_local1));
}
return(((Number(_local4) ^ Number(_local2)) ? ((_local2 ? (LEFT) : (RIGHT))) : (NONE)));
}
function match(matcher, i, seq) {
return(((check(matcher, i, seq) & type) > 0) && (next.match(matcher, i, seq)));
}
static var LEFT = 1;
static var RIGHT = 2;
static var BOTH = 3;
static var NONE = 4;
}
Symbol 1134 MovieClip [__Packages.org.as2lib.regexp.node.NotPosix] Frame 0
class org.as2lib.regexp.node.NotPosix extends org.as2lib.regexp.node.Node
{
var ctype, next;
function NotPosix (type) {
super();
ctype = type;
}
function dup(flag) {
return((flag ? (new org.as2lib.regexp.node.Posix(ctype)) : (new org.as2lib.regexp.node.NotPosix(ctype))));
}
function match(matcher, i, seq) {
return(((i < matcher.to) && (!org.as2lib.regexp.AsciiUtil.isType(seq.charCodeAt(i), ctype))) && (next.match(matcher, i + 1, seq)));
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1135 MovieClip [__Packages.org.as2lib.regexp.node.Posix] Frame 0
class org.as2lib.regexp.node.Posix extends org.as2lib.regexp.node.Node
{
var ctype, next;
function Posix (type) {
super();
ctype = type;
}
function dup(flag) {
return((flag ? (new org.as2lib.regexp.node.NotPosix(ctype)) : (new org.as2lib.regexp.node.Posix(ctype))));
}
function match(matcher, i, seq) {
return(((i < matcher.to) && (org.as2lib.regexp.AsciiUtil.isType(seq.charCodeAt(i), ctype))) && (next.match(matcher, i + 1, seq)));
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1136 MovieClip [__Packages.org.as2lib.regexp.node.LastMatch] Frame 0
class org.as2lib.regexp.node.LastMatch extends org.as2lib.regexp.node.Node
{
var next;
function LastMatch () {
super();
}
function match(matcher, i, seq) {
if (i != matcher.oldLast) {
return(false);
}
return(next.match(matcher, i, seq));
}
}
Symbol 1137 MovieClip [__Packages.org.as2lib.regexp.node.End] Frame 0
class org.as2lib.regexp.node.End extends org.as2lib.regexp.node.Node
{
var next;
function End () {
super();
}
function match(matcher, i, seq) {
return((i == matcher.to) && (next.match(matcher, i, seq)));
}
}
Symbol 1138 MovieClip [__Packages.org.as2lib.regexp.node.BitClass] Frame 0
class org.as2lib.regexp.node.BitClass extends org.as2lib.regexp.node.Node
{
var complementMe, bits, next;
function BitClass (flag, newBits) {
super();
complementMe = ((flag != null) ? (flag) : false);
bits = ((newBits != null) ? (newBits) : (new Array(256)));
}
function addChar(c, f) {
if ((f & org.as2lib.regexp.Pattern.CASE_INSENSITIVE) == 0) {
bits[c] = true;
return(this);
}
if (c < 128) {
bits[c] = true;
if (org.as2lib.regexp.AsciiUtil.isUpper(c)) {
c = c + 32;
bits[c] = true;
} else if (org.as2lib.regexp.AsciiUtil.isLower(c)) {
c = c - 32;
bits[c] = true;
}
return(this);
}
c = org.as2lib.regexp.AsciiUtil.toLower(c);
bits[c] = true;
c = org.as2lib.regexp.AsciiUtil.toUpper(c);
bits[c] = true;
return(this);
}
function dup(flag) {
return(new org.as2lib.regexp.node.BitClass(flag, bits));
}
function match(matcher, i, seq) {
if (i >= matcher.to) {
return(false);
}
var _local2 = seq.charCodeAt(i);
var _local3 = ((_local2 > 255) ? (complementMe) : (Boolean(Number(bits[_local2]) ^ Number(complementMe))));
return(_local3 && (next.match(matcher, i + 1, seq)));
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1139 MovieClip [__Packages.org.as2lib.regexp.node.Add] Frame 0
class org.as2lib.regexp.node.Add extends org.as2lib.regexp.node.Node
{
var lhs, rhs, next;
function Add (lhs, rhs) {
super();
this.lhs = lhs;
this.rhs = rhs;
}
function match(matcher, i, seq) {
if (i < matcher.to) {
return((lhs.match(matcher, i, seq) || (rhs.match(matcher, i, seq))) && (next.match(matcher, matcher.last, seq)));
}
return(false);
}
function study(info) {
var _local5 = info.maxValid;
var _local8 = info.deterministic;
var _local4 = info.minLength;
var _local7 = info.maxLength;
lhs.study(info);
var _local6 = info.minLength;
var _local3 = info.maxLength;
info.minLength = _local4;
info.maxLength = _local7;
rhs.study(info);
info.minLength = Math.min(_local6, info.minLength);
info.maxLength = Math.max(_local3, info.maxLength);
info.maxValid = _local5;
info.deterministic = _local8;
return(next.study(info));
}
}
Symbol 1140 MovieClip [__Packages.org.as2lib.regexp.node.Both] Frame 0
class org.as2lib.regexp.node.Both extends org.as2lib.regexp.node.Node
{
var lhs, rhs, next;
function Both (lhs, rhs) {
super();
this.lhs = lhs;
this.rhs = rhs;
}
function match(matcher, i, seq) {
if (i < matcher.to) {
return((lhs.match(matcher, i, seq) && (rhs.match(matcher, i, seq))) && (next.match(matcher, matcher.last, seq)));
}
return(false);
}
function study(info) {
var _local5 = info.maxValid;
var _local8 = info.deterministic;
var _local4 = info.minLength;
var _local7 = info.maxLength;
lhs.study(info);
var _local6 = info.minLength;
var _local3 = info.maxLength;
info.minLength = _local4;
info.maxLength = _local7;
rhs.study(info);
info.minLength = Math.min(_local6, info.minLength);
info.maxLength = Math.max(_local3, info.maxLength);
info.maxValid = _local5;
info.deterministic = _local8;
return(next.study(info));
}
}
Symbol 1141 MovieClip [__Packages.org.as2lib.regexp.node.Sub] Frame 0
class org.as2lib.regexp.node.Sub extends org.as2lib.regexp.node.Add
{
var rhs, lhs, next;
function Sub (lhs, rhs) {
super(lhs, rhs);
}
function match(matcher, i, seq) {
if (i < matcher.to) {
return(((!rhs.match(matcher, i, seq)) && (lhs.match(matcher, i, seq))) && (next.match(matcher, matcher.last, seq)));
}
return(false);
}
function study(info) {
lhs.study(info);
return(next.study(info));
}
}
Symbol 1142 MovieClip [__Packages.org.as2lib.regexp.node.Range] Frame 0
class org.as2lib.regexp.node.Range extends org.as2lib.regexp.node.Node
{
var lower, upper, next;
function Range (n) {
super();
if (n != null) {
lower = n >>> 16;
upper = n & 65535;
}
}
function dup(flag) {
return((flag ? (new org.as2lib.regexp.node.NotRange((lower << 16) + upper)) : (new org.as2lib.regexp.node.Range((lower << 16) + upper))));
}
function match(matcher, i, seq) {
if (i < matcher.to) {
var _local2 = seq.charCodeAt(i);
return((((_local2 - lower) | (upper - _local2)) >= 0) && (next.match(matcher, i + 1, seq)));
}
return(false);
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1143 MovieClip [__Packages.org.as2lib.regexp.node.NotRange] Frame 0
class org.as2lib.regexp.node.NotRange extends org.as2lib.regexp.node.Node
{
var lower, upper, next;
function NotRange (n) {
super();
if (n != null) {
lower = n >>> 16;
upper = n & 65535;
}
}
function dup(flag) {
if (flag) {
return(new org.as2lib.regexp.node.Range((lower << 16) + upper));
}
return(new org.as2lib.regexp.node.NotRange((lower << 16) + upper));
}
function match(matcher, i, seq) {
if (i < matcher.to) {
var _local2 = seq.charCodeAt(i);
return((((_local2 - lower) | (upper - _local2)) < 0) && (next.match(matcher, i + 1, seq)));
}
return(false);
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1144 MovieClip [__Packages.org.as2lib.regexp.node.RangeA] Frame 0
class org.as2lib.regexp.node.RangeA extends org.as2lib.regexp.node.Range
{
var lower, upper, next;
function RangeA (n) {
super();
lower = n >>> 16;
upper = n & 65535;
}
function dup(flag) {
return((flag ? (new org.as2lib.regexp.node.NotRangeA((lower << 16) + upper)) : (new org.as2lib.regexp.node.RangeA((lower << 16) + upper))));
}
function match(matcher, i, seq) {
if (i < matcher.to) {
var _local2 = seq.charCodeAt(i);
var _local3 = ((_local2 - lower) | (upper - _local2)) >= 0;
if (!_local3) {
_local2 = org.as2lib.regexp.AsciiUtil.toUpper(_local2);
_local3 = ((_local2 - lower) | (upper - _local2)) >= 0;
if (!_local3) {
_local2 = org.as2lib.regexp.AsciiUtil.toLower(_local2);
_local3 = ((_local2 - lower) | (upper - _local2)) >= 0;
}
}
return(_local3 && (next.match(matcher, i + 1, seq)));
}
return(false);
}
}
Symbol 1145 MovieClip [__Packages.org.as2lib.regexp.node.NotRangeA] Frame 0
class org.as2lib.regexp.node.NotRangeA extends org.as2lib.regexp.node.NotRange
{
var lower, upper, next;
function NotRangeA (n) {
super();
lower = n >>> 16;
upper = n & 65535;
}
function dup(flag) {
if (flag) {
return(new org.as2lib.regexp.node.RangeA((lower << 16) + upper));
}
return(new org.as2lib.regexp.node.NotRangeA((lower << 16) + upper));
}
function match(matcher, i, seq) {
if (i < matcher.to) {
var _local2 = seq.charCodeAt(i);
var _local3 = ((_local2 - lower) | (upper - _local2)) < 0;
if (_local3) {
_local2 = org.as2lib.regexp.AsciiUtil.toUpper(_local2);
_local3 = ((_local2 - lower) | (upper - _local2)) < 0;
if (_local3) {
_local2 = org.as2lib.regexp.AsciiUtil.toLower(_local2);
_local3 = ((_local2 - lower) | (upper - _local2)) < 0;
}
}
return(_local3 && (next.match(matcher, i + 1, seq)));
}
return(false);
}
}
Symbol 1146 MovieClip [__Packages.org.as2lib.regexp.node.Pos] Frame 0
class org.as2lib.regexp.node.Pos extends org.as2lib.regexp.node.Node
{
var cond, next;
function Pos (cond) {
super();
this.cond = cond;
}
function match(matcher, i, seq) {
return(cond.match(matcher, i, seq) && (next.match(matcher, i, seq)));
}
}
Symbol 1147 MovieClip [__Packages.org.as2lib.regexp.node.Neg] Frame 0
class org.as2lib.regexp.node.Neg extends org.as2lib.regexp.node.Node
{
var cond, next;
function Neg (cond) {
super();
this.cond = cond;
}
function match(matcher, i, seq) {
return((!cond.match(matcher, i, seq)) && (next.match(matcher, i, seq)));
}
}
Symbol 1148 MovieClip [__Packages.org.as2lib.regexp.node.Ques] Frame 0
class org.as2lib.regexp.node.Ques extends org.as2lib.regexp.node.Node
{
var atom, type, next;
function Ques (node, type) {
super();
atom = node;
this.type = type;
}
function match(matcher, i, seq) {
switch (type) {
case org.as2lib.regexp.Pattern.GREEDY :
return((atom.match(matcher, i, seq) && (next.match(matcher, matcher.last, seq))) || (next.match(matcher, i, seq)));
case org.as2lib.regexp.Pattern.LAZY :
return(next.match(matcher, i, seq) || (atom.match(matcher, i, seq) && (next.match(matcher, matcher.last, seq))));
case org.as2lib.regexp.Pattern.POSSESSIVE :
if (atom.match(matcher, i, seq)) {
i = matcher.last;
}
return(next.match(matcher, i, seq));
}
return(atom.match(matcher, i, seq) && (next.match(matcher, matcher.last, seq)));
}
function study(info) {
if (type != org.as2lib.regexp.Pattern.INDEPENDENT) {
var _local3 = info.minLength;
atom.study(info);
info.minLength = _local3;
info.deterministic = false;
return(next.study(info));
}
atom.study(info);
return(next.study(info));
}
function getType(Void) {
return(type);
}
}
Symbol 1149 MovieClip [__Packages.org.as2lib.regexp.node.Behind] Frame 0
class org.as2lib.regexp.node.Behind extends org.as2lib.regexp.node.Node
{
var cond, rmax, rmin, next;
function Behind (cond, rmax, rmin) {
super();
this.cond = cond;
this.rmax = rmax;
this.rmin = rmin;
}
function match(matcher, i, seq) {
var _local6 = Math.max(i - rmax, matcher.from);
var _local2 = i - rmin;
while (_local2 >= _local6) {
if (cond.match(matcher, _local2, seq) && (matcher.last == i)) {
return(next.match(matcher, i, seq));
}
_local2--;
}
return(false);
}
}
Symbol 1150 MovieClip [__Packages.org.as2lib.regexp.node.NotBehind] Frame 0
class org.as2lib.regexp.node.NotBehind extends org.as2lib.regexp.node.Node
{
var cond, rmax, rmin, next;
function NotBehind (cond, rmax, rmin) {
super();
this.cond = cond;
this.rmax = rmax;
this.rmin = rmin;
}
function match(matcher, i, seq) {
var _local5 = Math.max(i - rmax, matcher.from);
var _local2 = i - rmin;
while (_local2 >= _local5) {
if (cond.match(matcher, _local2, seq) && (matcher.last == i)) {
return(false);
}
_local2--;
}
return(next.match(matcher, i, seq));
}
}
Symbol 1151 MovieClip [__Packages.org.as2lib.regexp.node.GroupRef] Frame 0
class org.as2lib.regexp.node.GroupRef extends org.as2lib.regexp.node.Node
{
var head, next;
function GroupRef (head) {
super();
this.head = head;
}
function match(matcher, i, seq) {
return(head.matchRef(matcher, i, seq) && (next.match(matcher, matcher.last, seq)));
}
function study(info) {
info.maxValid = false;
info.deterministic = false;
return(next.study(info));
}
}
Symbol 1152 MovieClip [__Packages.org.as2lib.regexp.node.GroupHead] Frame 0
class org.as2lib.regexp.node.GroupHead extends org.as2lib.regexp.node.Node
{
var localIndex, next;
function GroupHead (localCount) {
super();
localIndex = localCount;
}
function match(matcher, i, seq) {
var _local4 = matcher.locals[localIndex];
matcher.locals[localIndex] = i;
var _local3 = next.match(matcher, i, seq);
matcher.locals[localIndex] = _local4;
return(_local3);
}
function matchRef(matcher, i, seq) {
var _local4 = matcher.locals[localIndex];
matcher.locals[localIndex] = ~i;
var _local3 = next.match(matcher, i, seq);
matcher.locals[localIndex] = _local4;
return(_local3);
}
function getLocalIndex(Void) {
return(localIndex);
}
}
Symbol 1153 MovieClip [__Packages.org.as2lib.regexp.node.Dummy] Frame 0
class org.as2lib.regexp.node.Dummy extends org.as2lib.regexp.node.Node
{
var next;
function Dummy () {
super();
}
function match(matcher, i, seq) {
return(next.match(matcher, i, seq));
}
}
Symbol 1154 MovieClip [__Packages.org.as2lib.regexp.node.GroupCurly] Frame 0
class org.as2lib.regexp.node.GroupCurly extends org.as2lib.regexp.node.Node
{
var atom, type, cmin, cmax, localIndex, groupIndex, next;
function GroupCurly (node, cmin, cmax, type, local, group) {
super();
atom = node;
this.type = type;
this.cmin = cmin;
this.cmax = cmax;
localIndex = local;
groupIndex = group;
}
function match(matcher, i, seq) {
var _local4 = matcher.groups;
var _local8 = matcher.locals;
var _local11 = _local8[localIndex];
var _local10 = _local4[groupIndex];
var _local9 = _local4[groupIndex + 1];
_local8[localIndex] = -1;
var _local6 = true;
var _local2 = 0;
while (_local2 < cmin) {
if (atom.match(matcher, i, seq)) {
_local4[groupIndex] = i;
i = matcher.last;
_local4[groupIndex + 1] = i;
} else {
_local6 = false;
break;
}
_local2++;
}
if (!_local6) {
} else if (type == org.as2lib.regexp.Pattern.GREEDY) {
_local6 = match0(matcher, i, cmin, seq);
} else if (type == org.as2lib.regexp.Pattern.LAZY) {
_local6 = match1(matcher, i, cmin, seq);
} else {
_local6 = match2(matcher, i, cmin, seq);
}
if (!_local6) {
_local8[localIndex] = _local11;
_local4[groupIndex] = _local10;
_local4[groupIndex + 1] = _local9;
}
return(_local6);
}
function match0(matcher, i, j, seq) {
var _local3 = matcher.groups;
var _local9 = _local3[groupIndex];
var _local8 = _local3[groupIndex + 1];
if (true) {
if (j >= cmax) {
} else if (!atom.match(matcher, i, seq)) {
} else {
var _local4 = matcher.last - i;
if (_local4 <= 0) {
_local3[groupIndex] = i;
i = i + _local4;
_local3[groupIndex + 1] = i;
} else {
while (true) {
_local3[groupIndex] = i;
i = i + _local4;
_local3[groupIndex + 1] = i;
j++;
if (j >= cmax) {
break;
}
if (!atom.match(matcher, i, seq)) {
break;
}
if ((i + _local4) != matcher.last) {
if (match0(matcher, i, j, seq)) {
return(true);
}
break;
}
}
while (j > cmin) {
if (next.match(matcher, i, seq)) {
_local3[groupIndex + 1] = i;
i = i - _local4;
_local3[groupIndex] = i;
return(true);
}
_local3[groupIndex + 1] = i;
i = i - _local4;
_local3[groupIndex] = i;
j--;
}
}
}
}
_local3[groupIndex] = _local9;
_local3[groupIndex + 1] = _local8;
return(next.match(matcher, i, seq));
}
function match1(matcher, i, j, seq) {
for(;;){
if (next.match(matcher, i, seq)) {
return(true);
}
if (j >= cmax) {
return(false);
}
if (!atom.match(matcher, i, seq)) {
return(false);
}
if (i == matcher.last) {
return(false);
}
matcher.groups[groupIndex] = i;
i = matcher.last;
matcher.groups[groupIndex + 1] = i;
j++;
};
}
function match2(matcher, i, j, seq) {
while (j < cmax) {
if (!atom.match(matcher, i, seq)) {
break;
}
matcher.groups[groupIndex] = i;
matcher.groups[groupIndex + 1] = matcher.last;
if (i == matcher.last) {
break;
}
i = matcher.last;
j++;
}
return(next.match(matcher, i, seq));
}
function study(info) {
var _local4 = info.minLength;
var _local5 = info.maxLength;
var _local6 = info.maxValid;
var _local7 = info.deterministic;
info.reset();
atom.study(info);
var _local3 = (info.minLength * cmin) + _local4;
if (_local3 < _local4) {
_local3 = 268435455 /* 0xFFFFFFF */;
}
info.minLength = _local3;
if (_local6 && (info.maxValid)) {
_local3 = (info.maxLength * cmax) + _local5;
info.maxLength = _local3;
if (_local3 < _local5) {
info.maxValid = false;
}
} else {
info.maxValid = false;
}
if (info.deterministic && (cmin == cmax)) {
info.deterministic = _local7;
} else {
info.deterministic = false;
}
return(next.study(info));
}
}
Symbol 1155 MovieClip [__Packages.org.as2lib.regexp.node.LazyLoop] Frame 0
class org.as2lib.regexp.node.LazyLoop extends org.as2lib.regexp.node.Loop
{
var beginIndex, countIndex, cmin, body, next, cmax;
function LazyLoop (countIndex, beginIndex) {
super(countIndex, beginIndex);
}
function match(matcher, i, seq) {
if (i > matcher.locals[beginIndex]) {
var _local3 = matcher.locals[countIndex];
if (_local3 < cmin) {
matcher.locals[countIndex] = _local3 + 1;
var _local6 = body.match(matcher, i, seq);
if (!_local6) {
matcher.locals[countIndex] = _local3;
}
return(_local6);
}
if (next.match(matcher, i, seq)) {
return(true);
}
if (_local3 < cmax) {
matcher.locals[countIndex] = _local3 + 1;
var _local6 = body.match(matcher, i, seq);
if (!_local6) {
matcher.locals[countIndex] = _local3;
}
return(_local6);
}
return(false);
}
return(next.match(matcher, i, seq));
}
function matchInit(matcher, i, seq) {
var _local5 = matcher.locals[countIndex];
var _local3 = false;
if (0 < cmin) {
matcher.locals[countIndex] = 1;
_local3 = body.match(matcher, i, seq);
} else if (next.match(matcher, i, seq)) {
_local3 = true;
} else if (0 < cmax) {
matcher.locals[countIndex] = 1;
_local3 = body.match(matcher, i, seq);
}
matcher.locals[countIndex] = _local5;
return(_local3);
}
function study(info) {
info.maxValid = false;
info.deterministic = false;
return(false);
}
}
Symbol 1156 MovieClip [__Packages.org.as2lib.regexp.node.SingleA] Frame 0
class org.as2lib.regexp.node.SingleA extends org.as2lib.regexp.node.Node
{
var ch, next;
function SingleA (n) {
super();
ch = org.as2lib.regexp.AsciiUtil.toLower(n);
}
function dup(flag) {
return((flag ? (new org.as2lib.regexp.node.NotSingleA(ch)) : (new org.as2lib.regexp.node.SingleA(ch))));
}
function match(matcher, i, seq) {
if (i < matcher.to) {
var _local2 = seq.charCodeAt(i);
if ((_local2 == ch) || (org.as2lib.regexp.AsciiUtil.toLower(_local2) == ch)) {
return(next.match(matcher, i + 1, seq));
}
}
return(false);
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1157 MovieClip [__Packages.org.as2lib.regexp.node.NotSingleA] Frame 0
class org.as2lib.regexp.node.NotSingleA extends org.as2lib.regexp.node.Node
{
var ch, next;
function NotSingleA (n) {
super();
ch = org.as2lib.regexp.AsciiUtil.toLower(n);
}
function dup(flag) {
return((flag ? (new org.as2lib.regexp.node.SingleA(ch)) : (new org.as2lib.regexp.node.NotSingleA(ch))));
}
function match(matcher, i, seq) {
if (i < matcher.to) {
var _local2 = seq.charCodeAt(i);
if ((_local2 != ch) && (org.as2lib.regexp.AsciiUtil.toLower(_local2) != ch)) {
return(next.match(matcher, i + 1, seq));
}
}
return(false);
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1158 MovieClip [__Packages.org.as2lib.regexp.node.SingleU] Frame 0
class org.as2lib.regexp.node.SingleU extends org.as2lib.regexp.node.Node
{
var ch, next;
function SingleU (c) {
super();
ch = org.as2lib.regexp.AsciiUtil.toLower(org.as2lib.regexp.AsciiUtil.toUpper(c));
}
function dup(flag) {
return((flag ? (new org.as2lib.regexp.node.NotSingleU(ch)) : (new org.as2lib.regexp.node.SingleU(ch))));
}
function match(matcher, i, seq) {
if (i < matcher.to) {
var _local2 = seq.charCodeAt(i);
if (_local2 == ch) {
return(next.match(matcher, i + 1, seq));
}
_local2 = org.as2lib.regexp.AsciiUtil.toUpper(_local2);
_local2 = org.as2lib.regexp.AsciiUtil.toLower(_local2);
if (_local2 == ch) {
return(next.match(matcher, i + 1, seq));
}
}
return(false);
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1159 MovieClip [__Packages.org.as2lib.regexp.node.NotSingleU] Frame 0
class org.as2lib.regexp.node.NotSingleU extends org.as2lib.regexp.node.Node
{
var ch, next;
function NotSingleU (c) {
super();
ch = org.as2lib.regexp.AsciiUtil.toLower(org.as2lib.regexp.AsciiUtil.toUpper(c));
}
function dup(flag) {
return((flag ? (new org.as2lib.regexp.node.SingleU(ch)) : (new org.as2lib.regexp.node.NotSingleU(ch))));
}
function match(matcher, i, seq) {
if (i < matcher.to) {
var _local2 = seq.charCodeAt(i);
if (_local2 == ch) {
return(false);
}
_local2 = org.as2lib.regexp.AsciiUtil.toUpper(_local2);
_local2 = org.as2lib.regexp.AsciiUtil.toLower(_local2);
if (_local2 != ch) {
return(next.match(matcher, i + 1, seq));
}
}
return(false);
}
function study(info) {
info.minLength++;
info.maxLength++;
return(next.study(info));
}
}
Symbol 1160 MovieClip [__Packages.org.as2lib.regexp.node.SliceA] Frame 0
class org.as2lib.regexp.node.SliceA extends org.as2lib.regexp.node.Node
{
var buffer, next;
function SliceA (buf) {
super();
buffer = buf;
}
function match(matcher, i, seq) {
var _local5 = buffer;
var _local4 = _local5.length;
if ((i + _local4) > matcher.to) {
return(false);
}
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = org.as2lib.regexp.AsciiUtil.toLower(seq.charCodeAt(i + _local2));
if (_local5[_local2] != _local3) {
return(false);
}
_local2++;
}
return(next.match(matcher, i + _local4, seq));
}
function study(info) {
info.minLength = info.minLength + buffer.length;
info.maxLength = info.maxLength + buffer.length;
return(next.study(info));
}
}
Symbol 1161 MovieClip [__Packages.org.as2lib.regexp.node.SliceU] Frame 0
class org.as2lib.regexp.node.SliceU extends org.as2lib.regexp.node.Node
{
var buffer, next;
function SliceU (buf) {
super();
buffer = buf;
}
function match(matcher, i, seq) {
var _local5 = buffer;
var _local4 = _local5.length;
if ((i + _local4) > matcher.to) {
return(false);
}
var _local3 = 0;
while (_local3 < _local4) {
var _local2 = seq.charCodeAt(i + _local3);
_local2 = org.as2lib.regexp.AsciiUtil.toUpper(_local2);
_local2 = org.as2lib.regexp.AsciiUtil.toLower(_local2);
if (_local5[_local3] != _local2) {
return(false);
}
_local3++;
}
return(next.match(matcher, i + _local4, seq));
}
function study(info) {
info.minLength = info.minLength + buffer.length;
info.maxLength = info.maxLength + buffer.length;
return(next.study(info));
}
}
Symbol 1162 MovieClip [__Packages.jaludo.api.as2.utils.UploadImages] Frame 0
class jaludo.api.as2.utils.UploadImages extends mx.events.EventDispatcher
{
var fileUpload, listen, fileTypes, dispatchEvent, imageId, _image;
function UploadImages () {
super(this);
}
function upload() {
fileUpload = new flash.net.FileReference();
listen = new Object();
fileUpload.addListener(listen);
listen.onSelect = mx.utils.Delegate.create(this, imageSelected);
listen.onComplete = mx.utils.Delegate.create(this, loadCompleted);
listen.onCancel = mx.utils.Delegate.create(this, selectionCancel);
fileTypes = new Array({description:"Image files", extension:"*.jpg;*.gif;*.jpeg;*.png"});
fileUpload.browse(fileTypes);
}
function imageSelected(image) {
if (fileUpload.size > MAX_IMAGE_SIZE) {
dispatchEvent({type:UPLOAD_COMPLETED, data:{image:null}});
} else {
fileUpload.upload(jaludo.api.as2.APISettings.__get__instance().getData("txt_path") + "uploadFile.php");
}
}
function selectionCancel() {
}
function loadCompleted(image) {
imageId = new LoadVars();
imageId.onLoad = mx.utils.Delegate.create(this, idLoaded);
imageId.load(((jaludo.api.as2.APISettings.__get__instance().getData("images_path") + "/txt/") + fileUpload.name) + ".txt");
}
function idLoaded() {
_image = imageId.id;
trace("_image : " + _image);
dispatchEvent({type:UPLOAD_COMPLETED, data:{image:_image}});
}
static var UPLOAD_COMPLETED = "UPLOAD_COMPLETED";
static var MAX_IMAGE_SIZE = 30000;
}
Symbol 1163 MovieClip [__Packages.jaludo.api.as2.utils.Tracer] Frame 0
class jaludo.api.as2.utils.Tracer
{
function Tracer () {
}
static function sTrace(message) {
if (jaludo.JaludoGameAPI.__get__debug() == true) {
trace(message);
}
}
static function sTraceObject(object) {
if (jaludo.JaludoGameAPI.__get__debug() == true) {
trace("--------------INIT TRACE OBJECT------------------");
for (var _local2 in object) {
trace((("key : " + _local2) + ", value : ") + object[_local2]);
}
trace("--------------END TRACE OBJECT-------------------");
}
}
}
Symbol 1164 MovieClip [__Packages.jaludo.api.as2.Score] Frame 0
class jaludo.api.as2.Score
{
var _caller, _mc_target, sendingLocal, _response, _mouseListener, _country_manager, _content, jaludoApi_topScorePopup, _topscores_record_container, _topscores_page_container, _page_display, _current_filter, _user_ranking_page, _images_url, _index_image, _scrollbar_relation, UPPER_LIMIT_RECORDS, DOWN_LIMIT_RECORDS, _scrollbar_pressed, _prev_mouse_y, _mcLoader, _objListener, preloader;
function Score (caller) {
_caller = caller;
_mc_target = _caller._mc_target;
sendingLocal = _caller.sending;
_response = true;
_mouseListener = {};
_country_manager = new jaludo.api.as2.displayutil.CountryManager();
}
function initialize(container) {
_content = container;
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, data:{state:true}});
jaludoApi_topScorePopup = _content.attachMovie("jaludoApi_topScoresPopup", "jaludoApi_topScoresPopup", _content.getNextHighestDepth());
jaludoApi_topScorePopup._caller = this;
jaludoApi_topScorePopup.btn_close.onRelease = mx.utils.Delegate.create(this, dispose);
jaludoApi_topScorePopup.btn_day.onRelease = function () {
this._parent._caller.getTopScores("day");
};
jaludoApi_topScorePopup.btn_week.onRelease = function () {
this._parent._caller.getTopScores("week");
};
jaludoApi_topScorePopup.btn_month.onRelease = function () {
this._parent._caller.getTopScores("month");
};
jaludoApi_topScorePopup.btn_all.onRelease = function () {
this._parent._caller.getTopScores("all");
};
_mc_target.setData(jaludoApi_topScorePopup.game_name, jaludo.api.as2.Game.__get__instance().__get__name());
_country_manager.initialize(_mc_target);
showTabTopScores();
}
function showTabTopScores() {
_topscores_record_container = jaludoApi_topScorePopup.mc_topscores_record_container;
_topscores_page_container = jaludoApi_topScorePopup.mc_topscores_page_container;
_page_display = new jaludo.api.as2.displayutil.PageManagerDisplay(this, _topscores_page_container);
_current_filter = "all";
onReleaseGotoMe();
}
function getTopScores(date) {
showPreloader();
if (date != undefined) {
_current_filter = date;
_page_display.resetToFirstPage();
}
var _local4 = _page_display.getCurrentPage();
if (_response) {
_response = false;
sendingLocal.send(_caller._remote_connection_name, "getTopScores", {filter:_current_filter, page:_local4, records_per_page:RECORDS_PER_PAGE});
}
}
function showTopScores(obj) {
var _local2 = obj.data.result;
var _local10 = obj.data.total;
_response = true;
resetObjects();
_mc_target.setData(jaludoApi_topScorePopup.user_name, jaludo.api.as2.User.__get__instance().__get__username());
var _local5 = {};
_local5.textColor = "0x000000";
var _local3 = 0;
while (_local3 < 3) {
_mc_target.setData(jaludoApi_topScorePopup["player_name_" + (_local3 + 1)], "");
_mc_target.setData(jaludoApi_topScorePopup["player_score_" + (_local3 + 1)], "");
_mc_target.setProperties(jaludoApi_topScorePopup["player_name_" + (_local3 + 1)], _local5);
_mc_target.setProperties(jaludoApi_topScorePopup["player_score_" + (_local3 + 1)], _local5);
_local3++;
}
if (jaludo.api.as2.User.__get__instance().__get__username() == jaludo.api.as2.User.GUEST_USER) {
var _local6;
_local6 = SharedObject.getLocal(_caller._game_key);
if (_local6.data.score > 0) {
var _local4 = [];
var _local7 = {name:jaludo.api.as2.User.__get__instance().__get__username(), imgUrl:"avatar_default.png", score:Number(_local6.data.score), date:0};
var _local8 = false;
_local3 = 0;
while (_local3 < _local2.length) {
if (_local2[_local3].score < _local6.data.score) {
if ((_local3 != 3) || (_page_display.getCurrentPage() == 1)) {
_local8 = true;
_local4 = _local4.concat(_local4.concat(_local4.concat(_local2.slice(0, _local3)), _local7), _local2.slice(_local3, _local2.length));
_local2 = _local4;
}
break;
}
_local3++;
}
if (!_local8) {
if ((obj.data.next_score < _local6.data.score) && (_local2[_local2.length - 1].score >= _local6.data.score)) {
_local2.push(_local7);
}
}
}
}
_local3 = 0;
while (_local3 < _local2.length) {
if (_local2[_local3].name == jaludo.api.as2.User.__get__instance().__get__username()) {
_user_ranking_page = _local3 + 1;
break;
}
_local3++;
}
_local3 = 0;
while (_local3 < 3) {
jaludoApi_topScorePopup["player_flag_" + (_local3 + 1)].dest.removeMovieClip();
if (_local2[_local3].name != undefined) {
_mc_target.setData(jaludoApi_topScorePopup["player_name_" + (_local3 + 1)], _local2[_local3].name);
_mc_target.setData(jaludoApi_topScorePopup["player_score_" + (_local3 + 1)], _local2[_local3].score);
if (_local2[_local3].name != jaludo.api.as2.User.GUEST_USER) {
_country_manager.drawFlag(jaludoApi_topScorePopup["player_flag_" + (_local3 + 1)], 0, 0, _country_manager.getCountryCoord(_local2[_local3].country));
}
}
_local3++;
}
_page_display.initialize(_local10);
if (_local2.length > 3) {
loadTopscoresList(_local2.slice(3, _local2.length));
}
_images_url = new Array(_local2[0].imgUrl, _local2[1].imgUrl, _local2[2].imgUrl);
loadLoadingImages();
loadPicture(_index_image);
showUserOnList();
removePreloader();
}
function loadTopscoresList(records) {
var _local3;
var _local5 = (_page_display.getCurrentPage() - 1) * RECORDS_PER_PAGE;
var _local2 = 0;
while (_local2 < records.length) {
_local3 = _topscores_record_container.attachMovie("jaludoApi_topscores_record", "record_" + _local2, _topscores_record_container.getNextHighestDepth());
_local3._y = _local2 * _local3._height;
_mc_target.setData(_local3.player_name, records[_local2].name);
if (records[_local2].name != jaludo.api.as2.User.GUEST_USER) {
_country_manager.drawFlag(_local3.player_flag, 0, 0, _country_manager.getCountryCoord(records[_local2].country));
}
_mc_target.setData(_local3.player_score, records[_local2].score);
_mc_target.setData(_local3.player_ranking, String((((_local5 + _local2) + 1) + 3) + " ."));
if (records[_local2].date == 0) {
_mc_target.setData(_local3.player_date, "Today");
} else if (records[_local2].date == 1) {
_mc_target.setData(_local3.player_date, "Yesterday");
} else {
_mc_target.setData(_local3.player_date, String(records[_local2].date + " days ago"));
}
_local2++;
}
jaludoApi_topScorePopup.mc_scrollbar._height = SCROLL_MAX_SIZE - (records.length - RECORDS_PER_SCREEN);
if (jaludoApi_topScorePopup.mc_scrollbar._height < SCROLL_MIN_SIZE) {
jaludoApi_topScorePopup.mc_scrollbar._height = SCROLL_MIN_SIZE;
} else if (jaludoApi_topScorePopup.mc_scrollbar._height > SCROLL_MAX_SIZE) {
jaludoApi_topScorePopup.mc_scrollbar._height = SCROLL_MAX_SIZE;
}
_scrollbar_relation = Math.ceil(records.length / RECORDS_SCROLLBAR_RELATION);
_mouseListener.onMouseWheel = mx.utils.Delegate.create(this, doScroll);
Mouse.addListener(_mouseListener);
}
function sendScore(value, level) {
if (!(jaludo.api.as2.User.__get__instance().__get__username() === jaludo.api.as2.User.GUEST_USER)) {
sendingLocal.send(_caller._remote_connection_name, "sendScore", {score:String(value), level:String(level)});
} else {
flash.external.ExternalInterface.call("calculateGuestScore", value, _caller._game_key);
var _local2;
_local2 = SharedObject.getLocal(_caller._game_key);
_mc_target.setData(_caller.txtInfo, "COOKIE:Sending score");
if ((_local2.data.score == undefined) || (value > _local2.data.score)) {
_local2.data.score = value;
}
_local2.data.level = level;
_local2.flush();
_mc_target.setData(_caller.txtInfo, "Score has been sent correctly");
}
}
function sendLocalScore() {
var _local2;
_local2 = SharedObject.getLocal(_caller._game_key);
if ((!(_local2.data.score === undefined)) && (!(_local2.data.level === undefined))) {
sendingLocal.send(_caller._remote_connection_name, "sendScore", {score:String(_local2.data.score), level:String(_local2.data.level)});
clearLocalScore();
}
}
function clearLocalScore() {
var _local2;
_local2 = SharedObject.getLocal(_caller._game_key);
_local2.data.score = undefined;
_local2.data.level = undefined;
}
function doScroll(delta) {
if ((_topscores_record_container._y == UPPER_LIMIT_RECORDS) && (delta > 0)) {
return(undefined);
}
if (((_topscores_record_container._y + _topscores_record_container._height) <= DOWN_LIMIT_RECORDS) && (delta < 0)) {
return(undefined);
}
_topscores_record_container._y = _topscores_record_container._y + ((HEIGHT_RECORD * _scrollbar_relation) * (delta / Math.abs(delta)));
jaludoApi_topScorePopup.mc_scrollbar._y = jaludoApi_topScorePopup.mc_scrollbar._y - (_scrollbar_relation * (delta / Math.abs(delta)));
}
function upScrollArrow() {
doScroll(1);
}
function downScrollArrow() {
doScroll(-1);
}
function onPressScrollBar() {
_scrollbar_pressed = true;
}
function onReleaseScrollBar() {
_scrollbar_pressed = false;
}
function onMouseMoveScrollBar() {
if (_scrollbar_pressed) {
if (jaludoApi_topScorePopup.mc_scrollbar._ymouse < _prev_mouse_y) {
doScroll(1);
} else {
doScroll(-1);
}
_prev_mouse_y = jaludoApi_topScorePopup.mc_scrollbar._ymouse;
}
}
function onReleaseGotoMe() {
if (!isUserInTheList()) {
if (jaludo.api.as2.User.__get__instance().__get__username() == jaludo.api.as2.User.GUEST_USER) {
var _local2;
_local2 = SharedObject.getLocal(_caller._game_key);
if (_local2.data.score != undefined) {
sendingLocal.send(_caller._remote_connection_name, "getUserRankingData", {score:String(_local2.data.score), filter:_current_filter, records_per_page:RECORDS_PER_PAGE});
showPreloader();
} else {
getTopScores("all");
}
} else {
sendingLocal.send(_caller._remote_connection_name, "getUserRankingData", {score:String(-1), filter:_current_filter, records_per_page:RECORDS_PER_PAGE});
showPreloader();
}
}
}
function isUserInTheList() {
var _local2 = 0;
while (_local2 < 3) {
if (_mc_target.getData(jaludoApi_topScorePopup["player_name_" + (_local2 + 1)]) == jaludo.api.as2.User.__get__instance().__get__username()) {
return(true);
}
_local2++;
}
for (var _local3 in _topscores_record_container) {
if (_mc_target.getData(_topscores_record_container[_local3].player_name) == jaludo.api.as2.User.__get__instance().__get__username()) {
return(true);
}
}
return(false);
}
function showUserOnList() {
var _local5 = false;
var _local4 = 0;
var _local2 = {};
_local2.textColor = "0xFF0000";
var _local3 = 0;
while (_local3 < 3) {
if (_mc_target.getData(jaludoApi_topScorePopup["player_name_" + (_local3 + 1)]) == jaludo.api.as2.User.__get__instance().__get__username()) {
_local5 = true;
_mc_target.setProperties(jaludoApi_topScorePopup["player_name_" + (_local3 + 1)], _local2);
_mc_target.setProperties(jaludoApi_topScorePopup["player_score_" + (_local3 + 1)], _local2);
break;
}
_local3++;
}
if (!_local5) {
if (_user_ranking_page != -1) {
for (var _local7 in _topscores_record_container) {
if (_mc_target.getData(_topscores_record_container[_local7].player_name) == jaludo.api.as2.User.__get__instance().__get__username()) {
_mc_target.setProperties(_topscores_record_container[_local7].player_ranking, _local2);
_mc_target.setProperties(_topscores_record_container[_local7].player_name, _local2);
_mc_target.setProperties(_topscores_record_container[_local7].player_score, _local2);
_mc_target.setProperties(_topscores_record_container[_local7].player_date, _local2);
_local4 = Number(_mc_target.getData(_topscores_record_container[_local7].player_ranking).substr(0, _mc_target.getData(_topscores_record_container[_local7].player_ranking).length - 2)) - 3;
break;
}
}
if (_user_ranking_page > RECORDS_PER_SCREEN) {
var _local6 = (_local4 - RECORDS_PER_SCREEN) + (RECORDS_PER_SCREEN / 2);
_local3 = 0;
while (_local3 < _local6) {
doScroll(-1);
_local3++;
}
}
}
}
}
function userRankingData(obj) {
if (obj.data.result != false) {
_page_display.setCurrentPage(obj.data.page);
showTopScores(obj);
} else {
jaludo.api.as2.utils.Tracer.sTrace("The user hasn't score for this game yet");
removePreloader();
getTopScores("all");
}
}
function gotoPage(number) {
resetScrollPositions();
clearTopscoreList();
getTopScores();
}
function loadPicture(index_image) {
if (_images_url[index_image] != undefined) {
_mcLoader = new MovieClipLoader();
_objListener = {};
_mcLoader.addListener(_objListener);
_objListener.onLoadInit = mx.utils.Delegate.create(this, pictureLoadInit);
jaludoApi_topScorePopup["player_image_" + (_index_image + 1)].gotoAndStop(1);
_mcLoader.loadClip(jaludo.api.as2.APISettings.__get__instance().getData("images_path") + _images_url[index_image], jaludoApi_topScorePopup["player_image_" + (index_image + 1)]);
} else {
var _local2 = index_image;
while (_local2 < 4) {
_mcLoader.unloadClip(jaludoApi_topScorePopup["player_image_" + (_local2 + 1)]);
_local2++;
}
}
}
function pictureLoadInit() {
_mcLoader.removeListener(_objListener);
jaludoApi_topScorePopup["player_image_" + (_index_image + 1)]._width = 70;
jaludoApi_topScorePopup["player_image_" + (_index_image + 1)]._height = 70;
jaludoApi_topScorePopup["loading_img_" + (_index_image + 1)].removeMovieClip();
_index_image++;
loadPicture(_index_image);
}
function loadLoadingImages() {
var _local3;
var _local2 = 0;
while (_local2 < 3) {
if (_images_url[_local2] != undefined) {
_local3 = jaludoApi_topScorePopup.attachMovie("loading_img", "loading_img_" + (_local2 + 1), jaludoApi_topScorePopup.getNextHighestDepth());
_local3._x = jaludoApi_topScorePopup["player_image_" + (_local2 + 1)]._x;
_local3._y = jaludoApi_topScorePopup["player_image_" + (_local2 + 1)]._y;
}
_local2++;
}
}
function resetObjects() {
_index_image = 0;
_user_ranking_page = -1;
_mcLoader.removeListener(_objListener);
resetScrollPositions();
clearTopscoreList();
_prev_mouse_y = 0;
UPPER_LIMIT_RECORDS = _topscores_record_container._y;
DOWN_LIMIT_RECORDS = _topscores_record_container._y + (HEIGHT_RECORD * RECORDS_PER_SCREEN);
jaludoApi_topScorePopup.mc_up_arrow.onRelease = mx.utils.Delegate.create(this, upScrollArrow);
jaludoApi_topScorePopup.mc_down_arrow.onRelease = mx.utils.Delegate.create(this, downScrollArrow);
jaludoApi_topScorePopup.mc_scrollbar.onPress = mx.utils.Delegate.create(this, onPressScrollBar);
jaludoApi_topScorePopup.mc_scrollbar.onRelease = mx.utils.Delegate.create(this, onReleaseScrollBar);
jaludoApi_topScorePopup.mc_scrollbar.onReleaseOutside = mx.utils.Delegate.create(this, onReleaseScrollBar);
jaludoApi_topScorePopup.mc_scrollbar.onMouseMove = mx.utils.Delegate.create(this, onMouseMoveScrollBar);
jaludoApi_topScorePopup.btn_goto_me.onRelease = mx.utils.Delegate.create(this, onReleaseGotoMe);
Mouse.removeListener(_mouseListener);
}
function resetScrollPositions() {
_topscores_record_container._y = 160;
jaludoApi_topScorePopup.mc_scrollbar._y = 160;
}
function clearTopscoreList() {
for (var _local2 in _topscores_record_container) {
_topscores_record_container[_local2].removeMovieClip();
}
}
function showPreloader() {
preloader = _content.attachMovie("tab_preloader", "tab_preloader", _content.getNextHighestDepth());
preloader.onPress = null;
preloader.useHandCursor = false;
_caller.disableTab();
}
function removePreloader() {
preloader.removeMovieClip();
_caller.enableTab();
}
function savedSuccesful(obj) {
jaludo.api.as2.utils.Tracer.sTrace("SCORE SAVED OK");
_mc_target.setData(_caller.txtInfo, "Score has been sent correctly");
flash.external.ExternalInterface.call("API_scoreSubmit");
}
function savedFailed(error) {
jaludo.api.as2.utils.Tracer.sTrace("There was an error saving score");
}
function topScoresError(error) {
jaludo.api.as2.utils.Tracer.sTrace("There was an error getting top score");
}
function dispose() {
removePreloader();
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, data:{state:false}});
_country_manager.dispose();
jaludoApi_topScorePopup.removeMovieClip();
}
var RECORDS_SCROLLBAR_RELATION = 100;
var HEIGHT_RECORD = 20;
var RECORDS_PER_SCREEN = 8;
var SCROLL_MIN_SIZE = 5;
var SCROLL_MAX_SIZE = 150;
var RECORDS_PER_PAGE = 10;
}
Symbol 1165 MovieClip [__Packages.jaludo.api.as2.displayutil.PageManagerDisplay] Frame 0
class jaludo.api.as2.displayutil.PageManagerDisplay
{
var _caller, _container, _current_page, _total_pages, direction_index, first_btn_index;
function PageManagerDisplay (caller, container) {
_caller = caller;
_container = container;
_current_page = 1;
}
function initialize(records_count) {
_total_pages = Math.ceil(records_count / _caller.RECORDS_PER_PAGE);
direction_index = 0;
first_btn_index = 0;
_container.btn_page_up.onRelease = mx.utils.Delegate.create(this, onReleasePageUp);
_container.btn_page_down.onRelease = mx.utils.Delegate.create(this, onReleasePageDown);
gotoPage(_current_page, true);
}
function createBtns() {
removePageBtns();
var _local2;
var _local4;
if (_total_pages > 4) {
_local4 = MAX_BTNS;
} else {
_local4 = _total_pages;
}
var _local3 = 0;
while (_local3 < _local4) {
_local2 = _container.attachMovie("mc_topscores_page_btn", "mc_page_" + ((first_btn_index + _local3) + 1), _container.getNextHighestDepth());
_local2._x = (direction_index + _local3) * _local2._width;
_caller._mc_target.setData(_local2.txt_number, String((first_btn_index + _local3) + 1));
initEventListenersFor(_local2);
_local3++;
}
if (_total_pages > MAX_BTNS) {
_local2 = _container.attachMovie("mc_topscores_page_points", "mc_page_points", _container.getNextHighestDepth());
if (direction_index == 0) {
_local2._x = 90;
_local2 = _container.attachMovie("mc_topscores_page_btn", "mc_page_" + _total_pages, _container.getNextHighestDepth());
_local2._x = 6 * _local2._width;
_caller._mc_target.setData(_local2.txt_number, String(_total_pages));
} else {
_local2._x = 18;
_local2 = _container.attachMovie("mc_topscores_page_btn", "mc_page_1", _container.getNextHighestDepth());
_local2._x = 0;
_caller._mc_target.setData(_local2.txt_number, String(1));
}
initEventListenersFor(_local2);
}
}
function initEventListenersFor(temp_mc) {
temp_mc._caller = this;
temp_mc._mc_target = _caller._mc_target;
temp_mc.onRelease = function () {
if (this._caller._current_page != Number(this._mc_target.getData(this.txt_number))) {
this._mc_target.setProperties(this.txt_number, {textColor:"0x000000"});
this._caller._current_page = Number(this._mc_target.getData(this.txt_number));
this._caller._caller.gotoPage(this._caller._current_page);
}
};
temp_mc.onRollOver = function () {
if (this._caller._current_page != Number(this._mc_target.getData(this.txt_number))) {
this.gotoAndStop(2);
this._mc_target.setProperties(this.txt_number, {textColor:"0xFFFFFF"});
}
};
temp_mc.onRollOut = function () {
if (this._caller._current_page != Number(this._mc_target.getData(this.txt_number))) {
this.gotoAndStop(1);
this._mc_target.setProperties(this.txt_number, {textColor:"0x000000"});
}
};
temp_mc.onReleaseOutside = function () {
if (this._caller._current_page != Number(this._mc_target.getData(this.txt_number))) {
this.gotoAndStop(1);
this._mc_target.setProperties(this.txt_number, {textColor:"0x000000"});
}
};
}
function onReleasePageUp() {
if (_current_page > 1) {
if (_current_page == (first_btn_index + 1)) {
first_btn_index--;
}
_current_page--;
_caller.gotoPage(_current_page);
}
}
function onReleasePageDown() {
if (_current_page < _total_pages) {
if (_current_page > getLastIndex()) {
first_btn_index++;
}
_current_page++;
_caller.gotoPage(_current_page);
}
}
function reindexBtns(page) {
if ((page == _total_pages) && (_total_pages > 5)) {
direction_index = 2;
first_btn_index = _total_pages - MAX_BTNS;
} else if (page == 1) {
direction_index = 0;
first_btn_index = 0;
} else if (page == (getLastIndex() + 1)) {
if (page <= (_total_pages - 2)) {
first_btn_index = first_btn_index + 2;
}
} else if (page == (first_btn_index + 1)) {
if (page > 2) {
first_btn_index = first_btn_index - 2;
}
}
}
function gotoPage(page, reindex) {
if (reindex) {
reindexBtns(page);
}
createBtns();
if (_current_page != page) {
_container["mc_page_" + _current_page].gotoAndStop(1);
}
_container["mc_page_" + _current_page].gotoAndStop(3);
}
function getCurrentPage() {
return(_current_page);
}
function setCurrentPage(page) {
_current_page = page;
}
function getTotalPages() {
return(_total_pages);
}
function getLastIndex() {
return(first_btn_index + (MAX_BTNS - 1));
}
function removePageBtns() {
for (var _local2 in _container) {
if (_local2.substr(0, 7) == "mc_page") {
_container[_local2].removeMovieClip();
}
}
}
function resetToFirstPage() {
removePageBtns();
_current_page = 1;
}
var MAX_BTNS = 5;
}
Symbol 1166 MovieClip [__Packages.jaludo.api.as2.Game] Frame 0
class jaludo.api.as2.Game
{
static var game;
var _name;
function Game () {
}
static function get instance() {
if (!game) {
game = new jaludo.api.as2.Game();
}
return(game);
}
function get name() {
return(_name);
}
function set name(value) {
_name = value;
//return(name);
}
}
Symbol 1167 MovieClip [__Packages.jaludo.api.as2.Achievements] Frame 0
class jaludo.api.as2.Achievements
{
var _caller, _callerContent, sendingLocal, _achievements_registered, _mouseListener, _mc_target, _index_image, _mainContent, main, container, scrollbar_manager, mc_up_arrow, mc_down_arrow, mc_scrollbar, scrollback, progressNumber, progressPercentageNumber, progressbar, _achievements, _prev_mouse_y, _scrollbar_pressed, _scrollerCounter, _mc_blocker_alert, jaludoApi_warningPopup, _mcLoader, _objListener, PICTURE_WIDTH, PICTURE_HEIGHT;
function Achievements (caller, callerContent) {
_caller = caller;
_callerContent = callerContent;
sendingLocal = _caller.sending;
_achievements_registered = {};
_mouseListener = {};
_mc_target = _caller._mc_target;
}
function getAllAchievements(logged) {
sendingLocal.send(_caller._remote_connection_name, "getAllAchievements", {isLogged:logged});
}
function showAchievements(mainContent) {
_index_image = 0;
_mainContent = mainContent;
main = _mainContent.attachMovie("jaludoApi_Achievements", "jaludoApi_Achievements", _mainContent.getNextHighestDepth());
container = main.container;
scrollbar_manager = new jaludo.api.as2.displayutil.AchievementScrollManager(container, main.mc_scrollbar);
mc_up_arrow = main.mc_up_arrow;
mc_down_arrow = main.mc_down_arrow;
mc_scrollbar = main.mc_scrollbar;
scrollback = main.scrollback;
progressNumber = main.progressNumber;
progressPercentageNumber = main.progressPercentageNumber;
progressbar = main.progressbar;
var _local10 = 0;
var _local11 = 0;
var _local2 = 0;
while (_local2 < _achievements.length) {
var _local4 = scrollbar_manager.addItem("");
_mc_target.setData(_local4.mainLayer.rewardsText, _achievements[_local2].skillPoints);
_mc_target.setData(_local4.mainLayer.mainTitle, _achievements[_local2].name);
_mc_target.setData(_local4.mainLayer.descriptionText, _achievements[_local2].description);
_local4.isLocked = _achievements[_local2].isLocked;
var _local9;
_local9 = SharedObject.getLocal(_caller._game_key);
if (_achievements[_local2].parts != undefined) {
var _local6 = 0;
if (jaludo.api.as2.User.__get__instance().__get__username() != jaludo.api.as2.User.GUEST_USER) {
var _local5 = 0;
while (_local5 < _achievements[_local2].parts.length) {
var _local3 = 0;
while (_local3 < _achievements.length) {
if ((_achievements[_local3].unique_name == _achievements[_local2].parts[_local5]) && (!_achievements[_local3].isLocked)) {
_local6++;
}
_local3++;
}
_local5++;
}
} else {
var _local5 = 0;
while (_local5 < _achievements[_local2].parts.length) {
if (!isLockedAchievementCookie(_achievements[_local2].parts[_local5])) {
_local6++;
}
_local5++;
}
}
_mc_target.setData(_local4.mainLayer.mc_parts_bar.txt_parts_of, (_local6 + "/") + _achievements[_local2].parts.length);
var _local8 = Math.ceil((_local6 * 100) / _achievements[_local2].parts.length);
_local4.mainLayer.mc_parts_bar.gotoAndStop(_local8);
if (_local8 == 100) {
_local4.isLocked = false;
}
} else {
_local4.mainLayer.mc_parts_bar._visible = false;
}
if (_local4.isLocked) {
_mc_target.mcFilter(_local4.mainLayer, jaludo.api.as2.displayutil.DisplayFX.getGreyScaleFilter());
_local4.mainLayer._alpha = 50;
var _local7 = _local4.attachMovie("jaludoApi_padlock", "jaludoApi_padlock", _local4.getNextHighestDepth());
_local7._x = _local7._x + 44;
_local7._y = _local7._y + 33;
_local10++;
}
if ((_local2 % 2) == 0) {
_local4.layerbackground._alpha = 0;
}
_local2++;
}
setProgress(_achievements.length - _local10, _achievements.length);
_prev_mouse_y = 0;
mc_up_arrow.onRelease = mx.utils.Delegate.create(this, upScroll);
mc_down_arrow.onRelease = mx.utils.Delegate.create(this, downScroll);
mc_scrollbar.onPress = mx.utils.Delegate.create(this, onPressScrollBar);
mc_scrollbar.onRelease = mx.utils.Delegate.create(this, onReleaseScrollBar);
mc_scrollbar.onReleaseOutside = mx.utils.Delegate.create(this, onReleaseScrollBar);
mc_scrollbar.onMouseMove = mx.utils.Delegate.create(this, onMouseMoveScrollBar);
scrollback.onRelease = mx.utils.Delegate.create(this, onReleaseBackScroller);
_mouseListener.onMouseWheel = mx.utils.Delegate.create(this, doScroll);
Mouse.addListener(_mouseListener);
loadPicture(0);
}
function checkAchievementBelongsToParts(unique_name_part) {
var _local5;
var _local8;
var _local4 = 0;
while (_local4 < _achievements.length) {
if (_achievements[_local4].parts != undefined) {
_local8 = 0;
_local5 = false;
var _local3 = 0;
while (_local3 < _achievements[_local4].parts.length) {
var _local2 = 0;
while (_local2 < _achievements.length) {
if ((_achievements[_local2].unique_name == _achievements[_local4].parts[_local3]) && (!_achievements[_local2].isLocked)) {
_local8++;
if (_achievements[_local2].unique_name == unique_name_part) {
_local5 = true;
}
}
_local2++;
}
_local3++;
}
}
if (_local5) {
return({achievement:_achievements[_local4].unique_name, parts_unlocked:_local8});
}
_local4++;
}
return(null);
}
function setAchievements(value) {
var _local5 = [];
var _local2 = 0;
while (_local2 < value[0].length) {
var _local4 = {};
_local4.unique_name = value[0][_local2].unique_name;
registerAchievement(value[0][_local2].unique_name);
_local4.name = getRegisteredAchievementAttr(value[0][_local2].unique_name, "title");
_local4.description = getRegisteredAchievementAttr(value[0][_local2].unique_name, "description");
_local4.skillPoints = "Skill Points : " + value[0][_local2].skill_points;
if (value[0][_local2].state != undefined) {
_local4.isLocked = ((value[0][_local2].state == "locked") ? true : false);
} else {
_local4.isLocked = isLockedAchievementCookie(value[0][_local2].unique_name);
}
_local4.pictureName = value[0][_local2].img;
_local4.parts = value[0][_local2].parts;
_local5.push(_local4);
_local2++;
}
return(_local5);
}
function getRegisteredAchievementAttr(unique_name, attr) {
return(_achievements_registered[unique_name][attr]);
}
function isLockedAchievementCookie(unique_name) {
var _local2;
_local2 = SharedObject.getLocal(_caller._game_key);
if (!(_local2.data[unique_name] === undefined)) {
return(false);
}
return(true);
}
function setProgress(progress, max) {
_mc_target.setData(progressNumber, String((progress + " / ") + max));
var _local2 = (progress * 100) / max;
_mc_target.setData(progressPercentageNumber, String(("(" + Math.ceil(_local2)) + "%)"));
progressbar._width = progressbar._width * (_local2 / 100);
}
function onReleaseBackScroller() {
if (mc_scrollbar._ymouse < 0) {
upScroll();
} else {
downScroll();
}
}
function onMouseMoveScrollBar() {
if (_scrollbar_pressed) {
if (mc_scrollbar._ymouse < _prev_mouse_y) {
_scrollerCounter--;
} else {
_scrollerCounter++;
}
if (Math.abs(_scrollerCounter) > 10) {
if (_scrollerCounter > 0) {
downScroll();
} else {
upScroll();
}
_scrollerCounter = 0;
}
_prev_mouse_y = mc_scrollbar._ymouse;
}
}
function onReleaseScrollBar() {
_scrollbar_pressed = false;
}
function onPressScrollBar() {
_scrollbar_pressed = true;
_scrollerCounter = 0;
}
function downScroll() {
scrollbar_manager.down();
}
function upScroll() {
scrollbar_manager.up();
}
function doScroll(delta) {
if (delta > 0) {
upScroll();
} else {
downScroll();
}
}
function achievementsReceived(obj) {
_achievements = setAchievements([obj._data.achievements]);
loadLocalUnlockedAchievements("start");
}
function achievementsReceivedFailed(error) {
}
function achievementDataReceived(obj) {
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.ACH_SCORE_EVENT_MANAGER, data:{unique_name:obj.unique_name, score_points:Number(obj.score_points)}});
}
function achievementDataReceivedFailed(error) {
}
function achievementBulkReceivedFailed(error) {
}
function loadLocalUnlockedAchievements(game_status) {
var _local9 = [];
var _local2;
var _local10 = false;
var _local4;
_local4 = SharedObject.getLocal(_caller._game_key);
var _local3 = 0;
while (_local3 < _achievements.length) {
_local2 = _achievements[_local3].unique_name;
if (!(_local4.data[_local2] === undefined)) {
if (_local4.data[_local2].parts == undefined) {
_local10 = true;
if (_achievements[_local3].isLocked) {
_local9.push({unique_name:_local2, level:_local4.data[_local2].level, date:_local4.data[_local2].date});
setUnlock(_local2);
sendingLocal.send(_caller._remote_connection_name, "getScorePoints", {unique_name:_local2});
flash.external.ExternalInterface.call("API_achievementUnlocked", _local2, 0);
var _local5 = checkAchievementBelongsToParts(_local2);
if (_local5 != null) {
flash.external.ExternalInterface.call("API_achievementUnlocked", _local5.achievement, _local5.parts_unlocked);
}
_local4.data[_local2] = undefined;
}
}
}
_local3++;
}
if (jaludo.api.as2.User.__get__instance().__get__username() != jaludo.api.as2.User.GUEST_USER) {
if (_local9.length > 0) {
_local4.flush();
sendingLocal.send(_caller._remote_connection_name, "commitLocalUnlockedAchievements", _local9);
} else {
jaludo.api.as2.utils.Tracer.sTrace("There aren't new unlocked achievements to commit");
}
} else if (_local10) {
_mc_blocker_alert = new jaludo.api.as2.Blocker(_callerContent);
jaludoApi_warningPopup = _callerContent.attachMovie("jaludoApi_alertPopupWarningAchievements", "jaludoApi_alertPopupWarningAchievements", _callerContent.getNextHighestDepth());
jaludoApi_warningPopup._x = jaludo.api.as2.Locator.getCenterX();
jaludoApi_warningPopup._y = jaludo.api.as2.Locator.getCenterY();
jaludoApi_warningPopup.jaludoApi_btnLogin.onRelease = mx.utils.Delegate.create(this, openLoginPopup);
jaludoApi_warningPopup.jaludoApi_btnRegister.onRelease = mx.utils.Delegate.create(this, openRegistrationPopup);
if (game_status == "start") {
_mc_target.setData(jaludoApi_warningPopup.jaludoApi_txtInformation, "The last time you played you unlocked achievements, if you wish to save them, login or register. If you click cancel, all achievements will be lost.");
jaludoApi_warningPopup.jaludoApi_btnCancel.onRelease = mx.utils.Delegate.create(this, cancelSaveAchievements);
jaludoApi_warningPopup.jaludoApi_btnClose.onRelease = mx.utils.Delegate.create(this, cancelSaveAchievements);
} else if (game_status == "end") {
_mc_target.setData(jaludoApi_warningPopup.jaludoApi_txtInformation, "Please note that you are not logged in, your achievements will not be saved. Do you want to save your progress?");
jaludoApi_warningPopup.jaludoApi_btnCancel.onRelease = mx.utils.Delegate.create(this, disposeAlertPopup);
jaludoApi_warningPopup.jaludoApi_btnClose.onRelease = mx.utils.Delegate.create(this, disposeAlertPopup);
}
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, data:{state:true}});
} else {
jaludo.api.as2.utils.Tracer.sTrace("There aren't unlocked local achievements");
}
}
function openLoginPopup() {
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, data:{state:false}});
disposeAlertPopup();
_caller.openLoginPopup();
}
function openRegistrationPopup() {
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, data:{state:false}});
disposeAlertPopup();
_caller.openRegistrationPopup();
}
function cancelSaveAchievements() {
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, data:{state:false}});
disposeAlertPopup();
clearLocalAchievementsData();
}
function unlockAchievement(unique_name, level) {
if (isRegistered(unique_name)) {
if (isLocked(unique_name)) {
if (jaludo.api.as2.User.__get__instance().__get__username() == jaludo.api.as2.User.GUEST_USER) {
saveCookieUnlockedAchievement(unique_name, level);
} else {
sendingLocal.send(_caller._remote_connection_name, "unlockAchievement", {unique_name:unique_name, level:String(level)});
}
setUnlock(unique_name);
flash.external.ExternalInterface.call("API_achievementUnlocked", unique_name, 0);
var _local3 = checkAchievementBelongsToParts(unique_name);
if (_local3 != null) {
flash.external.ExternalInterface.call("API_achievementUnlocked", _local3.achievement, _local3.parts_unlocked);
var _local2 = 0;
while (_local2 < _achievements.length) {
if (_achievements[_local2].unique_name == _local3.achievement) {
if (((_achievements[_local2].parts.length == _local3.parts_unlocked) && (_achievements[_local2].isLocked)) && (jaludo.api.as2.User.__get__instance().__get__username() != jaludo.api.as2.User.GUEST_USER)) {
sendingLocal.send(_caller._remote_connection_name, "unlockAchievement", {unique_name:_local3.achievement, level:String(level)});
}
break;
}
_local2++;
}
}
}
} else {
jaludo.api.as2.utils.Tracer.sTrace("ERROR: The achievement unique name wasn't registered");
}
}
function registerAchievement(unique_name) {
var _local2 = jaludo.api.as2.utils.XMLLanguageLoader.__get__instance().getDataFrom("achievements", "unique_name", unique_name);
_achievements_registered[unique_name] = {title:_local2.title, description:_local2.description};
}
function saveCookieUnlockedAchievement(unique_name, level) {
var _local2;
_local2 = SharedObject.getLocal(_caller._game_key);
var _local3 = new Date();
var _local4 = (((_local3.getDate() + "-") + (_local3.getMonth() + 1)) + "-") + _local3.getFullYear();
_local2.data[unique_name] = {};
_local2.data[unique_name].level = String(level);
_local2.data[unique_name].date = _local4;
_local2.flush();
}
function isRegistered(unique_name) {
if (_achievements_registered[unique_name] != undefined) {
return(true);
}
return(false);
}
function isLocked(unique_name) {
var _local2 = 0;
while (_local2 < _achievements.length) {
if (_achievements[_local2].unique_name == unique_name) {
return(_achievements[_local2].isLocked);
}
_local2++;
}
return(false);
}
function setUnlock(unique_name) {
trace("setUnlock : " + setUnlock);
var _local2 = 0;
while (_local2 < _achievements.length) {
if (_achievements[_local2].unique_name == unique_name) {
_achievements[_local2].isLocked = false;
break;
}
_local2++;
}
}
function clearLocked() {
var _local2 = 0;
while (_local2 < _achievements.length) {
_achievements[_local2].isLocked = true;
_local2++;
}
}
function clearLocalAchievementsData() {
var _local3;
_local3 = SharedObject.getLocal(_caller._game_key);
var _local2 = 0;
while (_local2 < _achievements.length) {
if (!(_local3.data[_achievements[_local2].unique_name] === undefined)) {
_local3.data[_achievements[_local2].unique_name] = undefined;
}
_local2++;
}
clearLocked();
_local3.flush();
}
function loadPicture(index_image) {
if (_achievements[index_image] != undefined) {
_mcLoader = new MovieClipLoader();
_objListener = {};
_mcLoader.addListener(_objListener);
_objListener.onLoadInit = mx.utils.Delegate.create(this, pictureLoadInit);
var _local4 = _achievements[index_image].pictureName;
var _local2 = main.mc_content["jaludoApi_achievementUnitContainer" + (index_image + 1)];
PICTURE_WIDTH = _local2.mainLayer.pictureContainer._width;
PICTURE_HEIGHT = _local2.mainLayer.pictureContainer._height;
_mcLoader.loadClip(jaludo.api.as2.APISettings.__get__instance().getData("images_path") + _achievements[index_image].pictureName, _local2.mainLayer.pictureContainer);
}
}
function pictureLoadInit() {
_mcLoader.removeListener(_objListener);
var _local2 = main.mc_content["jaludoApi_achievementUnitContainer" + (_index_image + 1)];
_local2.mainLayer.pictureContainer._width = PICTURE_WIDTH;
_local2.mainLayer.pictureContainer._height = PICTURE_HEIGHT;
_local2.mainLayer.pictureContainer.loading.unloadMovie();
_index_image++;
if (_index_image <= _achievements.length) {
loadPicture(_index_image);
}
}
function disposeAlertPopup() {
_caller.dispatchEvent({type:jaludo.api.as2.JaludoManager.PAUSE_EVENT_MANAGER, data:{state:false}});
_mc_blocker_alert.dispose();
jaludoApi_warningPopup.removeMovieClip();
}
function getPosMain() {
var _local2 = new flash.geom.Point(_mainContent._x, _mainContent._y);
return(_local2);
}
function dispose() {
scrollbar_manager.dispose();
scrollbar_manager = null;
container.removeMovieClip();
container = null;
main.removeMovieClip();
Mouse.removeListener(_mouseListener);
delete main;
}
}
Symbol 1168 MovieClip [__Packages.jaludo.api.as2.displayutil.ScrollManager] Frame 0
class jaludo.api.as2.displayutil.ScrollManager
{
var mc_content, itemsCounts, currentItem, itemHeigt;
function ScrollManager (mc_container) {
mc_content = mc_container._parent.createEmptyMovieClip("mc_content", mc_container.getNextHighestDepth());
mc_content._x = mc_container._x;
mc_content._y = mc_container._y;
mc_content.setMask(mc_container);
itemsCounts = 0;
currentItem = 1;
}
function initialize() {
}
function addItem(item) {
itemsCounts++;
var _local2 = mc_content.attachMovie(item, item + itemsCounts, mc_content.getNextHighestDepth());
_local2._y = (itemsCounts - 1) * _local2._height;
MAX_TOP = _local2._y;
itemHeigt = _local2._height;
return(_local2);
}
function down() {
if (currentItem >= itemsCounts) {
return(undefined);
}
currentItem++;
mc_content._y = mc_content._y - itemHeigt;
}
function getItemAt(position) {
return(new MovieClip());
}
function up() {
if (currentItem <= 1) {
return(undefined);
}
currentItem--;
mc_content._y = mc_content._y + itemHeigt;
}
function dispose() {
mc_content.removeMovieClip();
delete mc_content;
}
var MIN_TOP = 0;
var MAX_TOP = 0;
}
Symbol 1169 MovieClip [__Packages.jaludo.api.as2.displayutil.AchievementScrollManager] Frame 0
class jaludo.api.as2.displayutil.AchievementScrollManager extends jaludo.api.as2.displayutil.ScrollManager
{
var _scroller, initPoint, originalSize, currentItem, itemHeigt, mc_content, itemsCounts;
function AchievementScrollManager (mc_container, Scroller) {
super(mc_container);
_scroller = Scroller;
initPoint = _scroller._y;
originalSize = _scroller._height;
}
function up() {
if (currentItem <= 1) {
return(undefined);
}
currentItem--;
mc_content._y = mc_content._y + itemHeigt;
_scroller._y = _scroller._y - _scroller._height;
var _local2 = getItemAt(currentItem + 1);
_local2 = getItemAt(currentItem);
}
function down() {
if (currentItem >= itemsCounts) {
return(undefined);
}
currentItem++;
mc_content._y = mc_content._y - itemHeigt;
_scroller._y = _scroller._y + _scroller._height;
var _local2 = getItemAt(currentItem - 1);
_local2 = getItemAt(currentItem);
}
function addItem(item) {
var _local3 = super.addItem("jaludoApi_achievementUnitContainer");
_scroller._height = originalSize / itemsCounts;
return(_local3);
}
function getItemAt(position) {
return(mc_content["jaludoApi_achievementUnitContainer" + position]);
}
}
Symbol 1170 MovieClip [__Packages.jaludo.api.as2.displayutil.DisplayFX] Frame 0
class jaludo.api.as2.displayutil.DisplayFX
{
function DisplayFX () {
}
static function getGreyScaleFilter() {
var _local2 = 0.2225;
var _local1 = 0.7169;
var _local3 = 0.0606;
var _local4 = [_local2, _local1, _local3, 0, 0, _local2, _local1, _local3, 0, 0, _local2, _local1, _local3, 0, 0, 0, 0, 0, 1, 0];
var _local5 = new flash.filters.ColorMatrixFilter(_local4);
return([_local5]);
}
}
Symbol 1171 MovieClip [__Packages.jaludo.api.as2.utils.XMLLanguageLoader] Frame 0
class jaludo.api.as2.utils.XMLLanguageLoader extends mx.events.EventDispatcher
{
static var _sections, _instance, _game_name, _current_lang, _section_index, _xml;
var _xml_files, dispatchEvent;
function XMLLanguageLoader () {
super();
mx.events.EventDispatcher.initialize(this);
_sections = ["achievements"];
}
static function get instance() {
if (_instance == null) {
_instance = new jaludo.api.as2.utils.XMLLanguageLoader();
}
return(_instance);
}
function loadLanguage(game_name, lang) {
_game_name = game_name;
_current_lang = lang;
_section_index = 0;
_xml_files = [];
loadXML();
}
function loadXML() {
_xml = new XML();
_xml.ignoreWhite = true;
_xml.onLoad = mx.utils.Delegate.create(this, XMLLoaded);
_xml.load((((((jaludo.api.as2.APISettings.__get__instance().getData("base_languages_path") + _game_name) + "/") + _current_lang) + "/") + _sections[_section_index]) + ".xml");
}
function XMLLoaded(success) {
if (success) {
_xml_files[_sections[_section_index]] = _xml;
_section_index++;
if (_sections[_section_index] != undefined) {
loadXML();
} else {
dispatchEvent({type:"all_files_loaded"});
jaludo.api.as2.utils.Tracer.sTrace("All XML language section were loaded successfuly: ");
}
} else {
jaludo.api.as2.utils.Tracer.sTrace("failed to load xml: " + _xml);
}
}
function get xml_files() {
return(_xml_files);
}
function getDataFrom(section, variable, value) {
var _local4;
var _local2 = 0;
while (_local2 < _sections.length) {
if (_sections[_local2] == section) {
_local4 = _local2;
break;
}
_local2++;
}
if (value != "") {
var _local6 = mx.xpath.XPathAPI.selectSingleNode(_xml_files[_sections[_local4]].firstChild, ((((("data/" + section) + "[@") + variable) + "='") + value) + "']");
var _local7 = {};
var _local3;
_local2 = 0;
while (_local2 < _local6.childNodes.length) {
_local3 = _local6.childNodes[_local2];
_local7[_local3.nodeName] = _local3.firstChild.nodeValue;
_local2++;
}
} else {
var _local6 = mx.xpath.XPathAPI.selectSingleNode(_xml_files[_sections[_local4]].firstChild, "data/" + variable);
var _local7 = _local6.firstChild.nodeValue;
}
return(_local7);
}
}
Symbol 1172 MovieClip [__Packages.mx.xpath.XPathAPI] Frame 0
class mx.xpath.XPathAPI
{
function XPathAPI () {
}
static function getEvalString(node, path) {
var _local7 = "";
var _local4 = null;
var _local9 = getPathSet(path);
var _local3 = _local9[0].nodeName;
var _local8;
var _local2 = node;
var _local5 = false;
if ((_local3 != undefined) && ((_local3 == "*") || (node.nodeName == _local3))) {
var _local6 = 1;
while (_local6 < _local9.length) {
_local3 = _local9[_local6].nodeName;
_local8 = _local3.indexOf("@");
if (_local8 >= 0) {
_local3 = _local3.substring(_local8 + 1);
_local5 = _local2.attributes[_local3] != undefined;
_local7 = _local7 + (".attributes." + _local3);
} else {
_local5 = false;
var _local1 = 0;
while (_local1 < _local2.childNodes.length) {
_local4 = _local2.childNodes[_local1];
if (_local4.nodeName == _local3) {
_local7 = _local7 + (".childNodes." + _local1);
_local1 = _local2.childNodes.length;
_local2 = _local4;
_local5 = true;
}
_local1++;
}
}
if (!_local5) {
return("");
}
_local6++;
}
if (!_local5) {
_local7 = "";
} else if (_local8 == -1) {
_local7 = _local7 + ".firstChild.nodeValue";
}
} else {
_local7 = "";
}
return(_local7);
}
static function selectNodeList(node, path) {
var _local2 = new Array(node);
var _local5 = getPathSet(path);
var _local4 = _local5[0];
var _local6 = _local4.__get__nodeName();
var _local1 = null;
if ((_local6 != undefined) && ((_local6 == "*") || (node.nodeName == _local6))) {
if (_local4.__get__filter().length > 0) {
_local1 = new mx.xpath.FilterStack(_local4.__get__filter());
_local2 = filterNodes(_local2, _local1);
}
if (_local2.length > 0) {
var _local3 = 1;
while (_local3 < _local5.length) {
_local4 = _local5[_local3];
_local2 = getAllChildNodesByName(_local2, _local4.__get__nodeName());
if (_local4.__get__filter().length > 0) {
_local1 = new mx.xpath.FilterStack(_local4.__get__filter());
} else {
_local1 = null;
}
if ((_local1 != null) && (_local1.__get__exprs().length > 0)) {
_local2 = filterNodes(_local2, _local1);
}
_local3++;
}
}
} else {
_local2 = new Array();
}
return(_local2);
}
static function selectSingleNode(node, path) {
var _local1 = selectNodeList(node, path);
if (_local1.length > 0) {
return(_local1[0]);
}
return(null);
}
static function setNodeValue(node, path, newValue) {
var _local1 = new Array(node);
var _local9 = getPathSet(path);
var _local7 = _local9[_local9.length - 1].nodeName;
if (_local7.charAt(0) == "@") {
_local7 = _local7.substring(1, _local7.length);
_local9.pop();
} else {
_local7 = null;
}
var _local5 = _local9[0];
var _local11 = _local5.__get__nodeName();
var _local3 = null;
if ((_local11 != undefined) && ((_local11 == "*") || (node.nodeName == _local11))) {
if (_local5.__get__filter().length > 0) {
_local3 = new mx.xpath.FilterStack(_local5.__get__filter());
_local1 = filterNodes(_local1, _local3);
}
if (_local1.length > 0) {
var _local2 = 1;
while (_local2 < _local9.length) {
_local5 = _local9[_local2];
_local1 = getAllChildNodesByName(_local1, _local5.__get__nodeName());
if (_local5.__get__filter().length > 0) {
_local3 = new mx.xpath.FilterStack(_local5.__get__filter());
} else {
_local3 = null;
}
if ((_local3 != null) && (_local3.__get__exprs().length > 0)) {
_local1 = filterNodes(_local1, _local3);
}
_local2++;
}
}
} else {
_local1 = new Array();
}
var _local4 = null;
var _local6 = null;
var _local10 = new XML();
var _local2 = 0;
while (_local2 < _local1.length) {
if (_local7 != null) {
_local1[_local2].attributes[_local7] = newValue;
} else {
_local4 = _local1[_local2];
if ((_local4.firstChild == null) || (_local4.firstChild.nodeType != 3)) {
_local6 = _local10.createTextNode(newValue);
_local4.appendChild(_local6);
} else {
_local6 = _local4.firstChild;
_local6.nodeValue = newValue;
}
}
_local2++;
}
return(_local1.length);
}
static function copyStack(toStk, fromStk) {
var _local1 = 0;
while (_local1 < fromStk.length) {
toStk.splice(_local1, 0, fromStk[_local1]);
_local1++;
}
}
static function evalExpr(expr, node) {
var _local2 = true;
if (expr.__get__attr()) {
_local2 = ((expr.__get__value() != null) ? (node.attributes[expr.__get__name()] == expr.__get__value()) : (node.attributes[expr.__get__name()] != null));
} else {
var _local3 = getChildNodeByName(node, expr.__get__name());
if (_local3 != null) {
_local2 = ((expr.__get__value() != null) ? (_local3.firstChild.nodeValue == expr.__get__value()) : true);
} else {
_local2 = false;
}
}
return(_local2);
}
static function filterNodes(nodeList, stack) {
var _local13 = new Array();
var _local2;
var _local3;
var _local9;
var _local6;
var _local10;
var _local1 = true;
var _local4;
var _local5;
var _local8 = 0;
while (_local8 < nodeList.length) {
_local5 = true;
_local2 = new Array();
_local3 = new Array();
copyStack(_local2, stack.__get__exprs());
copyStack(_local3, stack.__get__ops());
_local4 = nodeList[_local8];
while ((_local2.length > 0) && (_local5)) {
if (typeof(_local2[_local2.length - 1]) == "object") {
_local9 = mx.xpath.FilterExpr(_local2.pop());
_local1 = evalExpr(_local9, _local4);
} else {
_local10 = Boolean(_local2.pop());
_local1 = _local10;
}
if (_local3.length > 0) {
var _local7 = _local2.pop();
_local6 = _local7;
switch (_local3[_local3.length - 1]) {
case "and" :
_local1 = _local1 && (evalExpr(_local6, _local4));
_local5 = _local1;
break;
case "or" :
_local1 = _local1 || (evalExpr(_local6, _local4));
_local5 = !_local1;
}
_local3.pop();
_local2.push(_local1);
}
}
if (_local1) {
_local13.push(_local4);
}
_local8++;
}
return(_local13);
}
static function getAllChildNodesByName(nodeList, name) {
var _local5 = new Array();
var _local2;
var _local3 = 0;
while (_local3 < nodeList.length) {
_local2 = nodeList[_local3].childNodes;
if (_local2 != null) {
var _local1 = 0;
while (_local1 < _local2.length) {
if ((name == "*") || (_local2[_local1].nodeName == name)) {
_local5.push(_local2[_local1]);
}
_local1++;
}
}
_local3++;
}
return(_local5);
}
static function getChildNodeByName(node, nodeName) {
var _local2;
var _local3 = node.childNodes;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2 = _local3[_local1];
if (_local2.nodeName == nodeName) {
return(_local2);
}
_local1++;
}
return(null);
}
static function getKeyValues(node, keySpec) {
var _local5 = "";
var _local3 = new mx.utils.StringTokenParser(keySpec);
var _local2 = _local3.nextToken();
var _local1;
var _local6;
while (_local2 != mx.utils.StringTokenParser.tkEOF) {
_local1 = _local3.token;
_local5 = _local5 + (" " + _local1);
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
if (_local1 == "@") {
_local2 = _local3.nextToken();
_local1 = _local3.token;
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
_local5 = _local5 + (((_local1 + "='") + node.attributes[_local1]) + "'");
}
} else if (_local1 == "/") {
_local2 = _local3.nextToken();
if (_local2 == mx.utils.StringTokenParser.tkSymbol) {
_local1 = _local3.token;
node = getChildNodeByName(node, _local1);
if (node != null) {
_local5 = _local5 + _local1;
}
}
} else if ((((_local1 != "and") && (_local1 != "or")) && (_local1 != "[")) && (_local1 != "]")) {
_local6 = getChildNodeByName(node, _local1);
if (_local6 != null) {
_local5 = _local5 + (("='" + _local6.firstChild.nodeValue) + "'");
}
}
}
if (node == null) {
trace(("Invalid keySpec specified. '" + keySpec) + "' Error.");
return("ERR");
}
_local2 = _local3.nextToken();
}
return(_local5.slice(1));
}
static function getPath(node, keySpecs) {
var _local2 = "";
var _local5 = keySpecs[node.nodeName];
if (_local5 == undefined) {
var _local8 = "";
var _local10;
for (_local10 in node.attributes) {
_local8 = _local8 + (((("@" + _local10) + "='") + node.attributes[_local10]) + "' and ");
}
var _local7 = "";
var _local1;
var _local6;
var _local4 = 0;
while (_local4 < node.childNodes.length) {
_local1 = node.childNodes[_local4];
_local6 = _local1.firstChild.nodeValue;
if (_local6 != undefined) {
_local7 = _local7 + (((_local1.nodeName + "='") + _local6) + "' and ");
}
_local4++;
}
if (_local8.length > 0) {
if (_local7.length > 0) {
_local2 = (((("/" + node.nodeName) + "[") + _local8) + _local7.substring(0, _local7.length - 4)) + "]";
} else {
_local2 = ((("/" + node.nodeName) + "[") + _local8.substring(0, _local8.length - 4)) + "]";
}
} else {
_local2 = ((("/" + node.nodeName) + "[") + _local7.substring(0, _local7.length - 4)) + "]";
}
} else {
_local2 = _local2 + (("/" + node.nodeName) + getKeyValues(node, _local5));
}
var _local1 = node.parentNode;
while (_local1.parentNode != null) {
_local5 = keySpecs[_local1.nodeName];
if (_local5 != undefined) {
_local2 = (("/" + _local1.nodeName) + getKeyValues(_local1, _local5)) + _local2;
} else {
_local2 = ("/" + _local1.nodeName) + _local2;
}
_local1 = _local1.parentNode;
}
return(_local2);
}
static function getPathSet(path) {
var _local6 = new Array();
var _local4;
var _local1;
var _local2;
var _local5;
while (path.length > 0) {
_local4 = path.lastIndexOf("/");
_local1 = path.substring(_local4 + 1);
_local2 = _local1.indexOf("[", 0);
_local5 = ((_local2 >= 0) ? (_local1.substring(_local2 + 1, _local1.length - 1)) : "");
_local1 = ((_local2 >= 0) ? (_local1.substring(0, _local2)) : (_local1));
_local6.splice(0, 0, new mx.xpath.NodePathInfo(_local1, _local5));
path = path.substring(0, _local4);
}
return(_local6);
}
}
Symbol 1173 MovieClip [__Packages.mx.xpath.NodePathInfo] Frame 0
class mx.xpath.NodePathInfo
{
function NodePathInfo (nodeName, filter) {
__nodeName = nodeName;
__filter = filter;
}
function get nodeName() {
return(__nodeName);
}
function get filter() {
return(__filter);
}
var __nodeName = null;
var __filter = null;
}
Symbol 1174 MovieClip [__Packages.mx.xpath.FilterStack] Frame 0
class mx.xpath.FilterStack
{
var __expr, __ops;
function FilterStack (filterVal) {
__expr = new Array();
__ops = new Array();
var _local2 = new mx.utils.StringTokenParser(filterVal);
var _local5 = _local2.nextToken();
var _local4;
var _local3 = _local2.__get__token();
while (_local5 != mx.utils.StringTokenParser.tkEOF) {
if (_local3 == "@") {
_local5 = _local2.nextToken();
_local3 = _local2.token;
_local4 = new mx.xpath.FilterExpr(true, _local3, null);
__expr.splice(0, 0, _local4);
if (_local2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local2.__get__token() == "=") {
_local5 = _local2.nextToken();
_local4.__set__value(_local2.token);
}
}
} else if ((_local3 == "and") || (_local3 == "or")) {
__ops.splice(0, 0, _local3);
} else if ((_local3 != ")") && (_local3 != "(")) {
_local4 = new mx.xpath.FilterExpr(false, _local3, null);
__expr.splice(0, 0, _local4);
if (_local2.nextToken() == mx.utils.StringTokenParser.tkSymbol) {
if (_local2.__get__token() == "=") {
_local5 = _local2.nextToken();
_local4.__set__value(_local2.token);
}
}
}
_local5 = _local2.nextToken();
_local3 = _local2.token;
}
}
function get exprs() {
return(__expr);
}
function get ops() {
return(__ops);
}
}
Symbol 1175 MovieClip [__Packages.mx.utils.StringTokenParser] Frame 0
class mx.utils.StringTokenParser
{
var _source, _skipChars;
function StringTokenParser (source, skipChars) {
_source = source;
_skipChars = ((skipChars == undefined) ? null : (skipChars));
}
function get token() {
return(_token);
}
function getPos() {
return(_index);
}
function nextToken() {
var _local4;
var _local2;
var _local3 = _source.length;
skipBlanks();
if (_index >= _local3) {
return(tkEOF);
}
_local2 = _source.charCodeAt(_index);
if (((((_local2 >= 65) && (_local2 <= 90)) || ((_local2 >= 97) && (_local2 <= 122))) || ((_local2 >= 192) && (_local2 <= Number.POSITIVE_INFINITY))) || (_local2 == 95)) {
_local4 = _index;
_index++;
_local2 = _source.charCodeAt(_index);
while (((((((_local2 >= 65) && (_local2 <= 90)) || ((_local2 >= 97) && (_local2 <= 122))) || ((_local2 >= 48) && (_local2 <= 57))) || ((_local2 >= 192) && (_local2 <= Number.POSITIVE_INFINITY))) || (_local2 == 95)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
_token = _source.substring(_local4, _index);
return(tkSymbol);
}
if ((_local2 == 34) || (_local2 == 39)) {
_index++;
_local4 = _index;
_local2 = _source.charCodeAt(_local4);
while (((_local2 != 34) && (_local2 != 39)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
_token = _source.substring(_local4, _index);
_index++;
return(tkString);
}
if ((_local2 == 45) || ((_local2 >= 48) && (_local2 <= 57))) {
var _local5 = tkInteger;
_local4 = _index;
_index++;
_local2 = _source.charCodeAt(_index);
while (((_local2 >= 48) && (_local2 <= 57)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
if (_index < _local3) {
if (((((((_local2 >= 48) && (_local2 <= 57)) || (_local2 == 46)) || (_local2 == 43)) || (_local2 == 45)) || (_local2 == 101)) || (_local2 == 69)) {
_local5 = tkFloat;
}
while ((((((((_local2 >= 48) && (_local2 <= 57)) || (_local2 == 46)) || (_local2 == 43)) || (_local2 == 45)) || (_local2 == 101)) || (_local2 == 69)) && (_index < _local3)) {
_index++;
_local2 = _source.charCodeAt(_index);
}
}
_token = _source.substring(_local4, _index);
return(_local5);
}
_token = _source.charAt(_index);
_index++;
return(tkSymbol);
}
function skipBlanks() {
if (_index < _source.length) {
var _local2 = _source.charAt(_index);
while ((_local2 == " ") || ((_skipChars != null) && (skipChar(_local2)))) {
_index++;
_local2 = _source.charAt(_index);
}
}
}
function skipChar(ch) {
var _local2 = 0;
while (_local2 < _skipChars.length) {
if (ch == _skipChars[_local2]) {
return(true);
}
_local2++;
}
return(false);
}
static var tkEOF = -1;
static var tkSymbol = 0;
static var tkString = 1;
static var tkInteger = 2;
static var tkFloat = 3;
var _index = 0;
var _token = "";
}
Symbol 1176 MovieClip [__Packages.mx.xpath.FilterExpr] Frame 0
class mx.xpath.FilterExpr
{
function FilterExpr (attrInit, nameInit, valueInit) {
__attr = attrInit;
__name = nameInit;
__value = valueInit;
}
function get attr() {
return(__attr);
}
function set attr(newVal) {
__attr = newVal;
//return(attr);
}
function get name() {
return(__name);
}
function set name(newVal) {
__name = newVal;
//return(name);
}
function get value() {
return(__value);
}
function set value(newVal) {
__value = newVal;
//return(value);
}
var __attr = false;
var __value = null;
var __name = null;
}
Symbol 1177 MovieClip [__Packages.jaludo.api.as2.Profile] Frame 0
class jaludo.api.as2.Profile
{
var _caller, _mc_target, sendingLocal, enabledBlocker, _container, _content, jaludoApi_profilePopup, jaludoApi_diceIcon, jaludoApi_meterFriends, jaludoApi_meterGlobal, jaludoApi_pictureContainer, load_animation, jaludoApi_txtGlobalRanking, jaludoApi_txtFriendsRanking, jaludoApi_txtPointsValue, jaludoApi_txtCoinsNumber, jaludoApi_txtGoldNumber, jaludoApi_txtSilverNumber, jaludoApi_txtBronzeNumber, jaludoApi_txtUserProfile, jaludoApi_btnEditPass, jaludoApi_btnEditImage, _idImage, photo, _mcPicture, _objListener, _mc_blocker_edit, jaludoApi_changePassword, jaludoApi_btnAcept, jaludoApi_btnCancel, jaludoApi_txtActualPass, jaludoApi_txtNewPass, jaludoApi_txtConfirmPass, objControlData, fnValidationSucces, fnError, fnNotValidate, _listener, _listenerChanged, mc_container_actualPass, mc_container_newPass, mc_container_confirmPass, _filter, _g_preloader, fnAlertActivated, fnAlertDeactivated, info, fnAlertAcepted, _upload, fnUploadCompleted, _tooltip, preloader, _mc_blocker;
function Profile (caller) {
_caller = caller;
_mc_target = _caller._mc_target;
sendingLocal = _caller.sending;
}
function loadProfile(container) {
enabledBlocker = false;
_container = container;
_content = _container.createEmptyMovieClip("content", _container.getNextHighestDepth());
jaludoApi_profilePopup = _content.attachMovie("jaludoApi_profilePopup", "jaludoApi_profilePopup", _content.getNextHighestDepth());
jaludoApi_diceIcon = jaludoApi_profilePopup.jaludoApi_diceIcon;
jaludoApi_diceIcon.gotoAndStop("loading");
jaludoApi_meterFriends = jaludoApi_profilePopup.jaludoApi_meterFriends;
jaludoApi_meterGlobal = jaludoApi_profilePopup.jaludoApi_meterGlobal;
jaludoApi_pictureContainer = jaludoApi_profilePopup.jaludoApi_pictureContainer;
load_animation = jaludoApi_pictureContainer.load_animation;
jaludoApi_txtGlobalRanking = jaludoApi_profilePopup.jaludoApi_txtGlobalRanking;
_mc_target.setData(jaludoApi_txtGlobalRanking, "0");
jaludoApi_txtFriendsRanking = jaludoApi_profilePopup.jaludoApi_txtFriendsRanking;
_mc_target.setData(jaludoApi_txtFriendsRanking, "0");
jaludoApi_txtPointsValue = jaludoApi_profilePopup.jaludoApi_txtPointsValue;
_mc_target.setData(jaludoApi_txtPointsValue, "0");
jaludoApi_txtCoinsNumber = jaludoApi_profilePopup.jaludoApi_txtCoinsNumber;
_mc_target.setData(jaludoApi_txtCoinsNumber, "0");
jaludoApi_txtGoldNumber = jaludoApi_profilePopup.jaludoApi_txtGoldNumber;
_mc_target.setData(jaludoApi_txtGoldNumber, "0");
jaludoApi_txtSilverNumber = jaludoApi_profilePopup.jaludoApi_txtSilverNumber;
_mc_target.setData(jaludoApi_txtSilverNumber, "0");
jaludoApi_txtBronzeNumber = jaludoApi_profilePopup.jaludoApi_txtBronzeNumber;
_mc_target.setData(jaludoApi_txtBronzeNumber, "0");
jaludoApi_txtUserProfile = jaludoApi_profilePopup.jaludoApi_txtUserProfile;
_mc_target.setData(jaludoApi_txtUserProfile, "");
jaludoApi_btnEditPass = jaludoApi_profilePopup.jaludoApi_btnEditPass;
jaludoApi_btnEditImage = jaludoApi_profilePopup.jaludoApi_btnEditImage;
jaludoApi_meterFriends.gotoAndStop(1);
jaludoApi_meterGlobal.gotoAndStop(1);
_idImage = "";
getProfile();
showPreloader();
}
function getProfile() {
sendingLocal.send(_caller._remote_connection_name, "getProfile");
}
function profileReceived(data) {
for (var _local3 in data) {
trace((("key : " + _local3) + ", value : ") + data[_local3]);
}
removePreloader();
jaludoApi_meterFriends.gotoAndStop(Number(data.friendsRanking));
jaludoApi_meterGlobal.gotoAndStop(Number(data.globalRanking));
_mc_target.setData(jaludoApi_txtGlobalRanking, String(data.globalRanking + "%"));
_mc_target.setData(jaludoApi_txtFriendsRanking, String(data.friendsRanking + "%"));
_mc_target.setData(jaludoApi_txtPointsValue, String(data.skillPoints));
_mc_target.setData(jaludoApi_txtCoinsNumber, String(data.coins));
_mc_target.setData(jaludoApi_txtGoldNumber, String(data.thropies.gold));
_mc_target.setData(jaludoApi_txtSilverNumber, String(data.thropies.silver));
_mc_target.setData(jaludoApi_txtBronzeNumber, String(data.thropies.bronze));
var _local4 = String(jaludo.api.as2.User.__get__instance().__get__username() + " Player stats");
_mc_target.setData(jaludoApi_txtUserProfile, _local4);
_idImage = jaludo.api.as2.User.__get__instance().image;
jaludoApi_btnEditPass.onRelease = mx.utils.Delegate.create(this, editPassword);
jaludoApi_btnEditImage.onRelease = mx.utils.Delegate.create(this, editImage);
_caller.setTxtCoins(String(data.coins));
loadImage();
setDiceIcon(Number(data.globalRanking));
}
function profileReceivedFailed(error) {
jaludo.api.as2.utils.Tracer.sTraceObject(error);
}
function loadImage() {
if (photo) {
photo.removeMovieClip();
}
photo = jaludoApi_pictureContainer.createEmptyMovieClip("photo", jaludoApi_pictureContainer.getNextHighestDepth());
_mcPicture = new MovieClipLoader();
_objListener = {};
_mcPicture.addListener(_objListener);
_objListener.onLoadInit = mx.utils.Delegate.create(this, pictureLoadInit);
_mcPicture.loadClip(jaludo.api.as2.APISettings.__get__instance().getData("images_path") + _idImage, photo);
}
function pictureLoadInit() {
load_animation._visible = false;
_mcPicture.removeListener(_objListener);
photo._width = 70;
photo._height = 70;
}
function setDiceIcon(ranking) {
if ((ranking > 0) && (ranking <= 20)) {
jaludoApi_diceIcon.gotoAndStop("looser");
} else if ((ranking > 20) && (ranking <= 40)) {
jaludoApi_diceIcon.gotoAndStop("keep_going");
} else if ((ranking > 40) && (ranking <= 60)) {
jaludoApi_diceIcon.gotoAndStop("apprentice");
} else if ((ranking > 60) && (ranking <= 80)) {
jaludoApi_diceIcon.gotoAndStop("almost_there");
} else if ((ranking > 80) && (ranking <= 100)) {
jaludoApi_diceIcon.gotoAndStop("winner");
}
}
function editPassword() {
_caller.disableTab();
_caller.disableEscape();
_mc_blocker_edit = new jaludo.api.as2.Blocker(_mc_target);
jaludoApi_changePassword = _mc_target.attachMovie("jaludoApi_changePassword", "jaludoApi_changePassword", _mc_target.getNextHighestDepth());
jaludoApi_changePassword._x = jaludo.api.as2.Locator.getCenterX();
jaludoApi_changePassword._y = jaludo.api.as2.Locator.getCenterY();
jaludoApi_btnAcept = jaludoApi_changePassword.jaludoApi_btnAcept;
jaludoApi_btnCancel = jaludoApi_changePassword.jaludoApi_btnClose;
jaludoApi_btnAcept.onRelease = mx.utils.Delegate.create(this, sendNewPass);
jaludoApi_btnCancel.onRelease = mx.utils.Delegate.create(this, cancelEdition);
jaludoApi_txtActualPass = jaludoApi_changePassword.jaludoApi_txtActualPass;
Selection.setFocus(jaludoApi_txtActualPass);
jaludoApi_txtNewPass = jaludoApi_changePassword.jaludoApi_txtNewPass;
jaludoApi_txtConfirmPass = jaludoApi_changePassword.jaludoApi_txtConfirmPass;
_mc_target.applyTab(jaludoApi_txtActualPass, 1);
_mc_target.applyTab(jaludoApi_txtNewPass, 2);
_mc_target.applyTab(jaludoApi_txtConfirmPass, 3);
_mc_target.applyTab(jaludoApi_btnAcept, 4);
_mc_target.applyTab(jaludoApi_btnCancel, 5);
objControlData = {};
objControlData.checkActualPass = INVALID;
objControlData.checkPass = INVALID;
objControlData.checkConfirmatedPass = INVALID;
fnValidationSucces = mx.utils.Delegate.create(this, validationSuccesfull);
jaludo.api.as2.Validator.__get__instance().addEventListener(jaludo.api.as2.Validator.VALIDATED_SUCCESFULL, fnValidationSucces);
fnError = mx.utils.Delegate.create(this, validationError);
jaludo.api.as2.Validator.__get__instance().addEventListener(jaludo.api.as2.Validator.ERROR_VALIDATED, fnError);
fnNotValidate = mx.utils.Delegate.create(this, notValidate);
jaludo.api.as2.Validator.__get__instance().addEventListener(jaludo.api.as2.Validator.NOT_VALIDATE, fnNotValidate);
_listener = new Object();
_listener.onSetFocus = mx.utils.Delegate.create(this, onSetFocus);
Selection.addListener(_listener);
_listenerChanged = new Object();
_listenerChanged.onChanged = mx.utils.Delegate.create(this, clearConfirmation);
jaludoApi_txtNewPass.addListener(_listenerChanged);
mc_container_actualPass = jaludoApi_changePassword.mc_container_actualPass;
mc_container_newPass = jaludoApi_changePassword.mc_container_newPass;
mc_container_confirmPass = jaludoApi_changePassword.mc_container_confirmPass;
_filter = new flash.filters.GlowFilter();
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, jaludoApi_changePassword, sendNewPass, cancelEdition, jaludoApi_btnAcept, jaludoApi_btnCancel);
}
function onSetFocus(oldFocus, newFocus) {
switch (oldFocus._name) {
case "jaludoApi_txtActualPass" :
checkActualPass(_mc_target.getData(jaludoApi_txtActualPass));
break;
case "jaludoApi_txtNewPass" :
jaludo.api.as2.Validator.__get__instance().checkPassword(_mc_target.getData(jaludoApi_txtNewPass));
break;
case "jaludoApi_txtConfirmPass" :
jaludo.api.as2.Validator.__get__instance().confirmPassword(_mc_target.getData(jaludoApi_txtConfirmPass));
}
}
function validationSuccesfull(e) {
var _local2 = [];
_filter.color = 32768;
_local2.push(_filter);
objControlData[e.data] = VALIDATED;
switch (e.data) {
case "checkPass" :
_mc_target.mcFilter(mc_container_newPass, _local2);
mc_container_newPass.onEnterFrame = null;
break;
case "checkConfirmatedPass" :
_mc_target.mcFilter(mc_container_confirmPass, _local2);
mc_container_confirmPass.onEnterFrame = null;
}
removeInformation();
controlDataInput();
}
function validationError(e) {
jaludoApi_changePassword["jaludoApi_" + e.data].gotoAndStop(3);
objControlData[e.data] = INVALID;
var _local4 = [];
_filter.color = 16711680 /* 0xFF0000 */;
_local4.push(_filter);
switch (e.data) {
case "checkPass" :
mc_container_newPass.caller = this;
mc_container_newPass.error = e.error;
mc_container_newPass.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this.isInside == undefined) {
this.isInside = true;
this.caller.showInformation(this);
}
} else if (this.isInside) {
this.isInside = undefined;
this.caller.removeInformation(this);
}
};
_mc_target.mcFilter(mc_container_newPass, _local4);
jaludoApi_txtNewPass.addListener(_listenerChanged);
break;
case "checkConfirmatedPass" :
mc_container_confirmPass.caller = this;
mc_container_confirmPass.error = e.error;
mc_container_confirmPass.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this.isInside == undefined) {
this.isInside = true;
this.caller.showInformation(this);
}
} else if (this.isInside) {
this.isInside = undefined;
this.caller.removeInformation(this);
}
};
_mc_target.mcFilter(mc_container_confirmPass, _local4);
jaludoApi_txtConfirmPass.addListener(_listenerChanged);
}
controlDataInput();
}
function notValidate(e) {
objControlData[e.data] = INVALID;
trace("NO VALIDO e.data : " + e.data);
switch (e.data) {
case "checkPass" :
restartFilters(mc_container_newPass);
break;
case "checkConfirmatedPass" :
restartFilters(mc_container_confirmPass);
}
removeInformation();
controlDataInput();
}
function restartFilters(content) {
_filter.color = 16777215 /* 0xFFFFFF */;
var _local2 = [];
_local2.push(_filter);
_mc_target.mcFilter(content, _local2);
}
function checkActualPass(passInput) {
var _local3 = [];
if (passInput != "") {
if (passInput.length >= 6) {
objControlData.checkActualPass = VALIDATED;
_filter.color = 32768;
mc_container_actualPass.onEnterFrame = null;
removeInformation();
} else {
objControlData.checkActualPass = INVALID;
_filter.color = 16711680 /* 0xFF0000 */;
mc_container_actualPass.caller = this;
mc_container_actualPass.error = "Password must be alphanumeric, between 6 and 20 characters long.";
mc_container_actualPass.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this.isInside == undefined) {
this.isInside = true;
this.caller.showInformation(this);
}
} else if (this.isInside) {
this.isInside = undefined;
this.caller.removeInformation(this);
}
};
jaludoApi_txtActualPass.addListener(_listenerChanged);
}
} else {
objControlData.checkActualPass = INVALID;
_filter.color = 16777215 /* 0xFFFFFF */;
mc_container_actualPass.onEnterFrame = null;
removeInformation();
}
_local3.push(_filter);
_mc_target.mcFilter(mc_container_actualPass, _local3);
controlDataInput();
}
function clearConfirmation(target) {
if (target._name == "jaludoApi_txtNewPass") {
_filter.color = 16777215 /* 0xFFFFFF */;
var _local2 = [];
_local2.push(_filter);
if (_mc_target.getData(jaludoApi_txtConfirmPass) != "") {
_mc_target.mcFilter(mc_container_confirmPass, _local2);
_mc_target.setData(jaludoApi_txtConfirmPass, "");
objControlData.checkConfirmatedPass = INVALID;
mc_container_confirmPass.onEnterFrame = null;
_mc_target.mcFilter(mc_container_confirmPass, _local2);
removeInformation();
}
mc_container_newPass.onEnterFrame = null;
removeInformation();
_mc_target.mcFilter(mc_container_newPass, _local2);
}
}
function controlDataInput() {
var _local2 = false;
for (var _local3 in objControlData) {
if (objControlData[_local3] == INVALID) {
_local2 = false;
break;
}
_local2 = true;
}
if (_local2 == true) {
return(true);
}
return(false);
}
function sendNewPass() {
var _local2;
_local2 = Selection.getFocus();
if (_local2.indexOf(jaludoApi_txtActualPass._name, 0) != -1) {
checkActualPass(_mc_target.getData(jaludoApi_txtActualPass));
} else if (_local2.indexOf(jaludoApi_txtNewPass._name, 0) != -1) {
onSetFocus(jaludoApi_txtNewPass, null);
} else if (_local2.indexOf(jaludoApi_txtConfirmPass._name, 0) != -1) {
onSetFocus(jaludoApi_txtConfirmPass, null);
}
if (controlDataInput()) {
var _local3 = {};
_local3.newPassword = _mc_target.getData(jaludoApi_txtNewPass);
_local3.actualPassword = _mc_target.getData(jaludoApi_txtActualPass);
sendingLocal.send(_caller._remote_connection_name, "setNewPassword", _local3);
_g_preloader = new jaludo.api.as2.GeneralPreloader(_mc_target, _mc_target, "sending new password, please wait..");
} else {
displayWarning();
}
}
function displayWarning() {
trace("Profile.displayWarning");
fnAlertActivated = mx.utils.Delegate.create(this, activatedBlocker);
fnAlertDeactivated = mx.utils.Delegate.create(this, deactivateBlocker);
info = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _mc_target, jaludoApi_changePassword);
info.addEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
info.addEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
info.showPopup("Some fields are blank or wrong, please review your form", jaludo.api.as2.utils.ModalsPopup.TYPE_WARNING);
}
function displaySuccesfullInfo() {
fnAlertActivated = mx.utils.Delegate.create(this, activatedBlocker);
fnAlertDeactivated = mx.utils.Delegate.create(this, deactivateBlocker);
fnAlertAcepted = mx.utils.Delegate.create(this, closeModalPopup);
info = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _mc_target);
info.addEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
info.addEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
info.addEventListener(jaludo.api.as2.utils.ModalsPopup.CONFIRMATION_CLOSE_EVENT, fnAlertAcepted);
info.showPopup("Your password has been changed successfully", jaludo.api.as2.utils.ModalsPopup.TYPE_INFORMATIVE);
}
function activatedBlocker(e) {
info.removeEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
enabledBlocker = true;
removeInformation();
}
function deactivateBlocker(e) {
info.removeEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
enabledBlocker = false;
}
function closeModalPopup() {
trace("Profile.closeModalPopup");
info.removeEventListener(jaludo.api.as2.utils.ModalsPopup.CONFIRMATION_CLOSE_EVENT, fnAlertAcepted);
_caller.enableTab();
_caller.enabledEscape();
}
function passwordChanged(e) {
_mc_blocker_edit.dispose();
jaludo.api.as2.Validator.__get__instance().removeEventListener(jaludo.api.as2.Validator.VALIDATED_SUCCESFULL, fnValidationSucces);
jaludo.api.as2.Validator.__get__instance().removeEventListener(jaludo.api.as2.Validator.ERROR_VALIDATED, fnError);
jaludo.api.as2.Validator.__get__instance().removeEventListener(jaludo.api.as2.Validator.NOT_VALIDATE, fnNotValidate);
Selection.removeListener(_listener);
jaludoApi_txtNewPass.removeListener(_listenerChanged);
jaludoApi_changePassword.removeMovieClip();
_g_preloader.dispose();
displaySuccesfullInfo();
}
function passwordChangeFailed(error) {
_g_preloader.dispose();
}
function wrongActualPassword(e) {
objControlData.checkActualPass = INVALID;
_filter.color = 16711680 /* 0xFF0000 */;
var _local3 = [];
_local3.push(_filter);
_mc_target.mcFilter(mc_container_actualPass, _local3);
controlDataInput();
_g_preloader.dispose();
mc_container_actualPass.caller = this;
mc_container_actualPass.error = "current password is incorrect";
mc_container_actualPass.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this.isInside == undefined) {
this.isInside = true;
this.caller.showInformation(this);
}
} else if (this.isInside) {
this.isInside = undefined;
this.caller.removeInformation(this);
}
};
}
function cancelEdition() {
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
_mc_blocker_edit.dispose();
_caller.enableTab();
_caller.enabledEscape();
jaludoApi_changePassword.removeMovieClip();
}
function editImage() {
load_animation._visible = true;
_upload = new jaludo.api.as2.utils.UploadImages();
fnUploadCompleted = mx.utils.Delegate.create(this, uploadCompleted);
_upload.addEventListener(jaludo.api.as2.utils.UploadImages.UPLOAD_COMPLETED, fnUploadCompleted);
_upload.upload();
}
function uploadCompleted(e) {
_upload.removeEventListener(jaludo.api.as2.utils.UploadImages.UPLOAD_COMPLETED, fnUploadCompleted);
_idImage = e.data.image;
if (!(_idImage === null)) {
if (photo) {
photo.removeMovieClip();
}
loadImage();
var _local2 = {};
_local2.newImage = _idImage;
jaludo.api.as2.User.__get__instance().__set__image(_idImage);
sendingLocal.send(_caller._remote_connection_name, "setNewImage", _local2);
} else {
var _local4 = ("You must select an image lower than " + (jaludo.api.as2.utils.UploadImages.MAX_IMAGE_SIZE / 1000)) + " Kb";
var _local3 = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _mc_target);
_local3.showPopup(_local4, jaludo.api.as2.utils.ModalsPopup.TYPE_INFORMATIVE);
}
}
function imageChanged(e) {
trace("Profile.imageChanged > e : " + e);
}
function imageChangeFailed(error) {
for (var _local2 in error) {
trace((("key : " + _local2) + ", value : ") + error[_local2]);
}
jaludo.api.as2.utils.Tracer.sTraceObject(error);
}
function showInformation(obj) {
if (enabledBlocker == false) {
_tooltip = new jaludo.api.as2.utils.Tooltip(_mc_target, "tip", "tri", 200);
_tooltip.showTip(_mc_target, obj.error);
}
}
function removeInformation(obj) {
_tooltip.removeTip();
}
function disabledTooltip() {
trace("Profile.disabledTooltip");
mc_container_actualPass.onEnterFrame = null;
mc_container_confirmPass.onEnterFrame = null;
mc_container_newPass.onEnterFrame = null;
}
function showPreloader() {
preloader = _content.attachMovie("tab_preloader", "tab_preloader", _content.getNextHighestDepth());
preloader.onPress = null;
preloader.useHandCursor = false;
_caller.disableTab();
}
function removePreloader() {
preloader.removeMovieClip();
_caller.enableTab();
_caller.enabledEscape();
}
function dispose() {
info.removeEventListener(jaludo.api.as2.utils.ModalsPopup.ENABLED_BLOCKER_EVENT, fnAlertActivated);
info.removeEventListener(jaludo.api.as2.utils.ModalsPopup.OFF_BLOCKER_EVENT, fnAlertDeactivated);
disabledTooltip();
removeInformation();
removePreloader();
_g_preloader.dispose();
_mc_blocker.dispose();
jaludoApi_profilePopup.removeMovieClip();
_content.removeMovieClip();
}
var VALIDATED = "VALIDATED";
var INVALID = "INVALID";
}
Symbol 1178 MovieClip [__Packages.jaludo.api.as2.EmailUpdater] Frame 0
class jaludo.api.as2.EmailUpdater
{
var _content, _caller, _mc_target, _currentEmail, _username, sendingLocal, _blocker, jaludoApi_changeEmailPopup, jaludoApi_btnChange, jaludoApi_btnCancel, jaludoApi_btnClose, jaludoApi_btnContainer, jaludoApi_btnResend, jaludoApi_txtEmail, _mc_email_content, filter, jaludoApi_btnSend, _preloader, _tooltip;
function EmailUpdater (caller, content) {
_content = content;
_caller = caller;
_mc_target = _caller._mc_target;
}
function displayWarning(currentEmail, username) {
_currentEmail = currentEmail;
_username = username;
sendingLocal = _caller.sending;
init();
}
function init() {
_blocker = new jaludo.api.as2.Blocker(_content);
_caller.menu._visible = false;
jaludoApi_changeEmailPopup = _content.attachMovie("jaludoApi_changeEmailPopup", "jaludoApi_changeEmailPopup", _content.getNextHighestDepth());
jaludoApi_changeEmailPopup._x = Stage.width / 2;
jaludoApi_changeEmailPopup._y = Stage.height / 2;
jaludoApi_btnChange = jaludoApi_changeEmailPopup.jaludoApi_btnChange;
_mc_target.applyTab(jaludoApi_btnChange, 1);
jaludoApi_btnChange.onRelease = mx.utils.Delegate.create(this, enableEditing);
jaludoApi_btnCancel = jaludoApi_changeEmailPopup.jaludoApi_btnCancel;
_mc_target.applyTab(jaludoApi_btnCancel, 3);
jaludoApi_btnCancel.onRelease = mx.utils.Delegate.create(this, disableKey);
jaludoApi_btnClose = jaludoApi_changeEmailPopup.jaludoApi_btnClose;
jaludoApi_btnClose.onRelease = mx.utils.Delegate.create(this, disableKey);
_mc_target.applyTab(jaludoApi_btnClose, 4);
jaludoApi_btnContainer = jaludoApi_changeEmailPopup.jaludoApi_btnContainer;
jaludoApi_btnContainer.gotoAndStop("resend");
jaludoApi_btnResend = jaludoApi_btnContainer.jaludoApi_btnResend;
_mc_target.applyTab(jaludoApi_btnResend, 2);
jaludoApi_btnResend.onRelease = mx.utils.Delegate.create(this, resendEmail);
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, jaludoApi_changeEmailPopup, resendEmail, disableKey, jaludoApi_btnResend, jaludoApi_btnCancel);
jaludoApi_txtEmail = jaludoApi_changeEmailPopup.jaludoApi_txtEmail;
_mc_target.setData(jaludoApi_txtEmail, _currentEmail);
var _local2 = {};
_local2.type = "dynamic";
_local2.selectable = false;
_local2.border = false;
_mc_target.setProperties(jaludoApi_txtEmail, _local2);
_mc_email_content = jaludoApi_changeEmailPopup.mc_email_content;
trace("_mc_email_content : " + _mc_email_content);
filter = new flash.filters.GlowFilter();
}
function enableEditing() {
jaludoApi_btnChange.enabled = false;
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
var _local2 = {};
_local2.type = "input";
_local2.selectable = true;
_local2.border = false;
_mc_target.setProperties(jaludoApi_txtEmail, _local2);
Selection.setFocus(jaludoApi_txtEmail);
_mc_target.applyTab(jaludoApi_txtEmail, 1);
jaludoApi_btnContainer.gotoAndStop("send");
jaludoApi_btnSend = jaludoApi_btnContainer.jaludoApi_btnSend;
_mc_target.applyTab(jaludoApi_btnSend, 2);
_mc_target.applyTab(jaludoApi_btnCancel, 3);
jaludoApi_btnSend.onRelease = mx.utils.Delegate.create(this, sendNewEmail);
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, jaludoApi_changeEmailPopup, sendNewEmail, disableKey, jaludoApi_btnSend, jaludoApi_btnCancel);
}
function resendEmail() {
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
_preloader = new jaludo.api.as2.GeneralPreloader(_content, _mc_target, "sending email...");
sendingLocal.send(_caller._remote_connection_name, "resendEmail", {email:_currentEmail, username:_username});
}
function sendNewEmail() {
trace("EmailUpdater.sendNewEmail");
_tooltip.removeTip();
var _local3 = new Array();
var _local4 = new org.as2lib.regexp.Pattern("([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,3}");
var _local5 = new org.as2lib.regexp.Matcher(_local4, _mc_target.getData(jaludoApi_txtEmail));
if (_local5.matches()) {
trace("****VALIDADO*****");
filter.color = 32768;
_local3.push(filter);
_mc_target.mcFilter(_mc_email_content, _local3);
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
sendingLocal.send(_caller._remote_connection_name, "editEmail", {newEmail:_mc_target.getData(jaludoApi_txtEmail), username:_username});
_preloader = new jaludo.api.as2.GeneralPreloader(_content, _mc_target, "sending email...");
} else {
trace("******ERROR*******");
var _local2 = {};
_local2.type = "input";
_local2.selectable = true;
_local2.border = false;
_mc_target.setProperties(jaludoApi_txtEmail, _local2);
filter.color = 16711680 /* 0xFF0000 */;
_local3.push(filter);
_mc_target.mcFilter(_mc_email_content, _local3);
jaludoApi_txtEmail.onChanged = mx.utils.Delegate.create(this, removeTooltip);
jaludoApi_txtEmail.onSetFocus = mx.utils.Delegate.create(this, showTooltip);
}
}
function showTooltip() {
trace("EmailUpdater.showTooltip");
_tooltip = new jaludo.api.as2.utils.Tooltip(_content, "tip", "tri", 200);
_tooltip.showTip(_mc_target, "The E-mail must exist.");
}
function removeTooltip() {
trace("EmailUpdater.removeTooltip");
_tooltip.removeTip();
}
function emailEdited(e) {
_preloader.dispose();
var _local3 = "You will receive an e-mail to complete the process of registration and then you will be able to login";
var _local2 = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _content);
_local2.showPopup(_local3, jaludo.api.as2.utils.ModalsPopup.TYPE_INFORMATIVE);
removeTooltip();
dispose();
}
function emailForwarded(e) {
_preloader.dispose();
var _local3 = "You will receive an e-mail to complete the process of registration and then you will be able to login";
var _local2 = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _content);
_local2.showPopup(_local3, jaludo.api.as2.utils.ModalsPopup.TYPE_INFORMATIVE);
dispose();
}
function emailUpdaterError(error) {
_preloader.dispose();
trace("An error has occurred please try again later");
var _local3 = "An error has occurred, please try again later";
var _local2 = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _content);
_local2.showPopup(_local3, jaludo.api.as2.utils.ModalsPopup.TYPE_INFORMATIVE);
dispose();
}
function disableKey() {
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
dispose();
}
function dispose() {
_caller.menu._visible = true;
_blocker.dispose();
_tooltip.removeTip();
delete _tooltip;
jaludoApi_changeEmailPopup.removeMovieClip();
}
}
Symbol 1179 MovieClip [__Packages.jaludo.api.as2.ResetPassword] Frame 0
class jaludo.api.as2.ResetPassword
{
var _caller, _container, _mc_target, sendingLocal, _filter, _blocker, jaludoApi_forgetPassPopup, mc_content_email, jaludoApi_btnCancelRequestEmail, jaludoApi_btnSend, jaludoApi_txtEmail, _preloder;
function ResetPassword (caller, container, mc_target) {
_caller = caller;
_container = container;
_mc_target = mc_target;
sendingLocal = _caller.sending;
_filter = new flash.filters.GlowFilter();
}
function showPopup() {
_blocker = new jaludo.api.as2.Blocker(_container);
jaludoApi_forgetPassPopup = _container.attachMovie("jaludoApi_forgetPassPopup", "jaludoApi_forgetPassPopup", _container.getNextHighestDepth());
jaludoApi_forgetPassPopup._x = jaludo.api.as2.Locator.getCenterX();
jaludoApi_forgetPassPopup._y = jaludo.api.as2.Locator.getCenterY();
mc_content_email = jaludoApi_forgetPassPopup.mc_content_email;
jaludoApi_btnCancelRequestEmail = jaludoApi_forgetPassPopup.jaludoApi_btnCancelRequestEmail;
jaludoApi_btnCancelRequestEmail.onRelease = mx.utils.Delegate.create(this, dispose);
jaludoApi_btnSend = jaludoApi_forgetPassPopup.jaludoApi_btnSend;
jaludoApi_btnSend.onRelease = mx.utils.Delegate.create(this, resetPass);
jaludoApi_txtEmail = jaludoApi_forgetPassPopup.jaludoApi_txtEmail;
Selection.setFocus(jaludoApi_txtEmail);
_mc_target.applyTab(jaludoApi_txtEmail, 1);
_mc_target.applyTab(jaludoApi_btnSend, 2);
_mc_target.applyTab(jaludoApi_btnCancelRequestEmail, 3);
jaludo.api.as2.utils.KeyManager.__get__instance().detectKey(this, jaludoApi_forgetPassPopup, resetPass, dispose, jaludoApi_btnSend, jaludoApi_btnCancelRequestEmail);
}
function resetPass() {
var _local2 = [];
var _local3 = new org.as2lib.regexp.Pattern("([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,3}");
var _local4 = new org.as2lib.regexp.Matcher(_local3, _mc_target.getData(jaludoApi_txtEmail));
if (_local4.matches()) {
trace("VALIDADO");
_preloder = new jaludo.api.as2.GeneralPreloader(_container, _mc_target, "Sending data, please wait");
_filter.color = 32768;
_local2.push(_filter);
sendingLocal.send(_caller._remote_connection_name, "resetPassword", _mc_target.getData(jaludoApi_txtEmail));
} else {
trace("INVALIDO");
_filter.color = 16711680 /* 0xFF0000 */;
_local2.push(_filter);
resetInputText();
}
_mc_target.mcFilter(mc_content_email, _local2);
}
function resetInputText() {
jaludoApi_txtEmail.onChanged = mx.utils.Delegate.create(this, clearText);
}
function clearText() {
jaludoApi_txtEmail.onChanged = null;
_filter.color = 16777215 /* 0xFFFFFF */;
var _local2 = [];
_local2.push(_filter);
_mc_target.mcFilter(mc_content_email, _local2);
}
function passwordRestored(e) {
_preloder.dispose();
if (e.reset == "succesfull") {
_caller.resetSuccesfull();
dispose();
} else if (e.reset == "unregistered_user") {
var _local4 = "The email address entered does not exist in our system, please enter the email address you have used to register on our site.";
var _local3 = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _mc_target);
_local3.showPopup(_local4, jaludo.api.as2.utils.ModalsPopup.TYPE_WARNING);
} else if (e.reset == "failed") {
resetFailed({message:"Error"});
}
}
function resetFailed(error) {
_preloder.dispose();
trace("ERROR: Has been a problem in the system, please try again later");
var _local3 = "There was a problem in the system, please try again later";
var _local2 = new jaludo.api.as2.utils.ModalsPopup(_mc_target, _mc_target);
_local2.showPopup(_local3, jaludo.api.as2.utils.ModalsPopup.TYPE_WARNING);
}
function dispose() {
_blocker.dispose();
jaludo.api.as2.utils.KeyManager.__get__instance().disableKey();
jaludoApi_forgetPassPopup.removeMovieClip();
}
}
Symbol 1180 MovieClip [__Packages.jaludo.api.as2.utils.PopupAnimated] Frame 0
class jaludo.api.as2.utils.PopupAnimated
{
var _caller, _content, _type, fnUpdated, _special_popup, _timer_special_popup;
function PopupAnimated (content, caller) {
_caller = caller;
_content = content;
_type = "";
}
function verifiedState() {
if (jaludo.api.as2.User.__get__instance().__get__username() == jaludo.api.as2.User.GUEST_USER) {
_type = "notLoggedPopup";
showSpecialPopup("notLoggedPopup");
} else if (jaludo.api.as2.User.__get__instance().__get__state() == jaludo.api.as2.User.UNCONFIRMED) {
fnUpdated = mx.utils.Delegate.create(this, stateUpdated);
jaludo.api.as2.User.__get__instance().addEventListener(jaludo.api.as2.User.STATE_CHANGED, fnUpdated);
_caller.updateState();
}
}
function stateUpdated(e) {
jaludo.api.as2.User.__get__instance().removeEventListener(jaludo.api.as2.User.STATE_CHANGED, fnUpdated);
if (e.data == jaludo.api.as2.User.UNCONFIRMED) {
_type = "notConfirmPopup";
showSpecialPopup("notConfirmPopup");
}
}
function showSpecialPopup(type) {
_special_popup = _content.attachMovie("jaludoApi_" + type, "special_popup", _content.getNextHighestDepth());
_special_popup.onEnterFrame = mx.utils.Delegate.create(this, controlFrame);
_timer_special_popup = setInterval(this, "goAnimation", 10000);
}
function controlFrame() {
if (_special_popup._currentframe == 9) {
_special_popup.onEnterFrame = null;
var _local3 = _special_popup.btn_close;
var _local2 = _special_popup.btn_action;
_local3.onRelease = mx.utils.Delegate.create(this, goAnimation);
_local2.onRelease = mx.utils.Delegate.create(this, executeAction);
} else if (_special_popup._currentframe == _special_popup._totalframes) {
_special_popup.onEnterFrame = null;
removeSpecialPopup();
}
}
function goAnimation() {
clearInterval(_timer_special_popup);
_special_popup.gotoAndPlay(10);
_special_popup.onEnterFrame = mx.utils.Delegate.create(this, controlFrame);
}
function executeAction() {
if (_type == "notLoggedPopup") {
_caller.callRegister();
} else if (_type == "notConfirmPopup") {
_caller.callResendEmail();
}
dispose();
}
function removeSpecialPopup() {
jaludo.api.as2.User.__get__instance().removeEventListener(jaludo.api.as2.User.STATE_CHANGED, fnUpdated);
_special_popup.removeMovieClip();
_type = "";
}
function dispose() {
jaludo.api.as2.User.__get__instance().removeEventListener(jaludo.api.as2.User.STATE_CHANGED, fnUpdated);
_special_popup.onEnterFrame = null;
clearInterval(_timer_special_popup);
_type = "";
_special_popup.removeMovieClip();
}
}
Symbol 1181 MovieClip [__Packages.jaludo.api.as2.UserStateManager] Frame 0
class jaludo.api.as2.UserStateManager extends mx.events.EventDispatcher
{
var _caller, sendingLocal;
function UserStateManager (caller) {
super();
_caller = caller;
sendingLocal = _caller.sending;
}
function verifyState() {
trace("verifyState : " + verifyState);
sendingLocal.send(_caller._remote_connection_name, "verifyUserState");
}
function receivedStateData(e) {
for (var _local2 in e) {
trace((("key : " + _local2) + ", value : ") + e[_local2]);
}
if (e.state == jaludo.api.as2.User.CONFIRMED) {
trace("---EL ESTADO ES CONFIRMADO---");
jaludo.api.as2.User.__get__instance().__set__state(jaludo.api.as2.User.CONFIRMED);
} else {
jaludo.api.as2.User.__get__instance().__set__state(jaludo.api.as2.User.UNCONFIRMED);
}
}
function receivedStateFailed(error) {
jaludo.api.as2.utils.Tracer.sTrace("Not received the user's status");
dispose();
}
function dispose() {
}
}
Symbol 1182 MovieClip [__Packages.CUniteScores] Frame 0
class CUniteScores
{
var support_domains_arr, auto_submit_domains_arr, _auto_submit, domain_str, newLocalConnection, _user_name, sogi_serial, zapak_score_submit_url;
function CUniteScores () {
var _local4 = "gameserpent.com,zapak,mindjolt.com,thinktemp.com,hallpass.com,gamegarage.co.uk,nonoba.com,surpassarcade.com,thisarcade.com,playit.ru,games.ru.msn.com";
var _local3 = "nonoba.com,sogi.com.tw,kongregate.com";
support_domains_arr = ((_local4 + ",") + _local3).split(",");
auto_submit_domains_arr = _local3.split(",");
trace("ru.badim.CUniteScores.2.7: " + support_domains_arr.length);
_root._lockroot = true;
ini();
}
function get_auto() {
return(_auto_submit);
}
function supportURL(url) {
domain_str = url;
_auto_submit = false;
for (var _local3 in auto_submit_domains_arr) {
if (url.indexOf(auto_submit_domains_arr[_local3]) > -1) {
_auto_submit = true;
break;
}
}
for (var _local3 in support_domains_arr) {
if (url.indexOf(support_domains_arr[_local3]) > -1) {
return(true);
}
}
return(false);
}
function ini() {
var _local4 = _root._url;
newLocalConnection = new LocalConnection();
_root.kongregateServices.connect();
playit_ini();
if (_root._url.indexOf("zapak") > -1) {
var returnObj = new LoadVars();
returnObj.onLoad = function (success) {
if (success) {
_global.UniteScores.zapak_score_submit_url = returnObj.url + "?null=";
}
};
returnObj.Load("http://myworld.zapak.com/apiurl.php", "POST");
}
}
function set_name(val) {
_user_name = val;
}
function set_sogi_serial(val) {
sogi_serial = val;
}
function send_scores(scores, add_on) {
if (add_on == undefined) {
add_on = "";
}
if (domain_str.indexOf("sogi.com.tw") > -1) {
if (add_on == "") {
add_on = "scores";
} else {
add_on = add_on.split(" ").join("").split("-").join("").split("_").join("");
}
var _local13 = sogi_serial;
var score = scores;
var _local12 = add_on;
var _local15 = 1;
var _local16 = new LocalConnection();
_local16.send("bp", "bpSend", _local13, score, _local12, _local15);
return(true);
}
if (zapak_score_submit_url != undefined) {
var checkObj = new LoadVars();
var score = String(scores);
checkObj.score = score;
checkObj.action = "authenticate";
checkObj.onLoad = function () {
var _local4 = new XML(checkObj.responseXML);
var _local5 = _local4.firstChild.childNodes[0].firstChild.toString();
var _local6 = _local4.firstChild.childNodes[1].firstChild;
if (score != _local5) {
} else {
var _local3 = new LoadVars();
_local3.score = score;
_local3.action = "sendscore";
_local3.onLoad = function () {
};
_local3.sendAndLoad(_global.UniteScores.zapak_score_submit_url + _root.get_refresh_add(), _local3, "POST");
}
};
checkObj.sendAndLoad(zapak_score_submit_url + get_refresh_add(), checkObj, "POST");
}
var _local8;
if (add_on == "") {
_local8 = "totalscores";
} else {
_local8 = add_on.split(" ").join("").split("-").join("");
}
_local8 = _local8.toLowerCase();
if (domain_str.indexOf("surpassarcade.com") > -1) {
newLocalConnection.send("spapi", "scoreSend", scores);
}
if (((domain_str.indexOf("mindjolt.com") > -1) || (domain_str.indexOf("thinktemp.com") > -1)) || (domain_str.indexOf("thisarcade.com") > -1)) {
if (add_on == "") {
newLocalConnection.send(_root.com_mindjolt_api, "submitScore", scores);
} else {
newLocalConnection.send(_root.com_mindjolt_api, "submitScore", scores, add_on);
}
}
if (domain_str.indexOf("gameserpent.com") > -1) {
if (add_on == "") {
newLocalConnection.send("GameSerpentChannel" + _root.chidas2, "gameserpent_api", scores, 2);
} else {
newLocalConnection.send("GameSerpentChannel" + _root.chidas2, "gameserpent_api", scores, add_on);
}
}
_root.HPScoreService.postScore(scores, add_on);
if (add_on == "") {
_root.kongregateStats.submit("Total scores", scores);
} else {
_root.kongregateStats.submit(add_on, scores);
}
var _local10 = "http://www.gamegarage.co.uk/scripts/";
var _local14 = _local10 + "score.php";
var _local6 = new LoadVars();
_local6.game_id = _root.game_id;
_local6.user_id = _root.user_id;
if ((_root.game_id != undefined) && (_root.user_id != undefined)) {
_local6.score = scores;
_local6.alg = ((_root.game_id + _root.user_id) + scores) + "a83l9xj";
if ((_root.game_id != undefined) && (_root.user_id != undefined)) {
_local6.sendAndLoad(_local14, _local6, "POST");
}
}
playit_sent_scores(scores);
}
function xorit(txt, key) {
var _local8 = key.length;
var _local9 = txt.length;
var _local2 = 0;
var _local4 = "";
var _local1 = 0;
while (_local1 < _local9) {
if (_local2 >= _local8) {
_local2 = 0;
}
var _local6 = txt.substr(_local1, 1);
_local4 = _local4 + chr(ord(key.substr(_local2, 1)) ^ ord(txt.substr(_local1, 1)));
var _local7 = chr(ord(key.substr(_local2, 1)) ^ ord(txt.substr(_local1, 1)));
_local2++;
_local1++;
}
return(_local4);
}
function playit_ini() {
if ((_root.ssid == undefined) || (_root.id == undefined)) {
return(false);
}
var _local4 = _url.split("/");
if (_local4[0] == "file:") {
_root.dom = "localhost";
} else {
_root.dom = _local4[2];
}
var _local3 = new LoadVars();
var _local5 = new LoadVars();
_local5.onLoad = function (ok) {
if (ok == false) {
return(undefined);
}
if (this.state == "0") {
_root.p1 = this.p1;
_root.p2 = this.p2;
_root.p3 = this.p3;
}
};
_local3.ssid = _root.ssid;
_local3.id = _root.id;
_local3.sendAndLoad(("http://" + _root.dom) + "/crg.php", _local5, "GET");
}
function playit_sent_scores(score, add_on) {
if ((_root.ssid == undefined) || (_root.id == undefined)) {
jaludo.JaludoGameAPI.sendScore(score, 1);
trace("score = " + score);
}
if (score > 0) {
var _local5 = _url.split("/");
if (_local5[0] == "file:") {
_root.dom = "localhost";
} else {
_root.dom = _local5[2];
}
var _local6 = new LoadVars();
var _local3 = new LoadVars();
_local3.ssid = _root.ssid;
_local3.r1 = xorit(_root.p1, _root.p2);
_local3.r2 = xorit(String(score), _root.p2);
_local3.r3 = score;
_local3.r4 = _root.id;
_local3.game_mode = add_on;
_local3.sendAndLoad(("http://" + _root.dom) + "/sgsc.php", _local6, "GET");
}
}
function get_refresh_add() {
var _local2 = new Date();
if (_root._url.indexOf("http") != -1) {
return("?fa" + _local2.valueOf());
}
return("");
}
}
Symbol 1183 MovieClip [__Packages.CJson] Frame 0
class CJson
{
var text;
function CJson () {
}
function stringify(arg) {
var _local4;
var _local3;
var _local7;
var _local2 = "";
var _local5;
switch (typeof(arg)) {
case "object" :
if (arg) {
if (arg instanceof Array) {
_local3 = 0;
while (_local3 < arg.length) {
_local5 = stringify(arg[_local3]);
if (_local2) {
_local2 = _local2 + ",";
}
_local2 = _local2 + _local5;
_local3++;
}
return(("[" + _local2) + "]");
}
if (typeof(arg.toString) != "undefined") {
for (_local3 in arg) {
_local5 = arg[_local3];
if ((typeof(_local5) != "undefined") && (typeof(_local5) != "function")) {
_local5 = stringify(_local5);
if (_local2) {
_local2 = _local2 + ",";
}
_local2 = _local2 + ((stringify(_local3) + ":") + _local5);
}
}
return(("{" + _local2) + "}");
}
}
return("null");
case "number" :
return((isFinite(arg) ? (String(arg)) : "null"));
case "string" :
_local7 = arg.length;
_local2 = "\"";
_local3 = 0;
while (_local3 < _local7) {
_local4 = arg.charAt(_local3);
if (_local4 >= " ") {
if ((_local4 == "\\") || (_local4 == "\"")) {
_local2 = _local2 + "\\";
}
_local2 = _local2 + _local4;
} else {
switch (_local4) {
case "\b" :
_local2 = _local2 + "\\b";
break;
case "\f" :
_local2 = _local2 + "\\f";
break;
case newline :
_local2 = _local2 + "\\n";
break;
case "\r" :
_local2 = _local2 + "\\r";
break;
case "\t" :
_local2 = _local2 + "\\t";
break;
default :
_local4 = _local4.charCodeAt();
_local2 = _local2 + (("\\u00" + Math.floor(_local4 / 16).toString(16)) + (_local4 % 16).toString(16));
}
}
_local3 = _local3 + 1;
}
return(_local2 + "\"");
case "boolean" :
return(String(arg));
}
return("null");
}
function white() {
while (ch) {
if (ch <= " ") {
next();
} else if (ch == "/") {
switch (next()) {
case "/" :
while ((next() && (ch != newline)) && (ch != "\r")) {
}
break;
case "*" :
next();
for(;;){
if (ch) {
if (ch == "*") {
if (next() == "/") {
next();
// unexpected jump
}
} else {
next();
}
} else {
error("Unterminated comment");
}
};
break;
default :
error("Syntax error");
}
} else {
break;
}
}
}
function error(m) {
throw {name:"JSONError", message:m, at:at - 1, text:text};
}
function next() {
ch = text.charAt(at);
at = at + 1;
return(ch);
}
function str() {
var _local5;
var _local2 = "";
var _local4;
var _local3;
var _local6 = false;
if (ch == "\"") {
while (next()) {
if (ch == "\"") {
next();
return(_local2);
}
if (ch == "\\") {
switch (next()) {
case "b" :
_local2 = _local2 + "\b";
break;
case "f" :
_local2 = _local2 + "\f";
break;
case "n" :
_local2 = _local2 + newline;
break;
case "r" :
_local2 = _local2 + "\r";
break;
case "t" :
_local2 = _local2 + "\t";
break;
case "u" :
_local3 = 0;
_local5 = 0;
while (_local5 < 4) {
_local4 = parseInt(next(), 16);
if (!isFinite(_local4)) {
_local6 = true;
break;
}
_local3 = (_local3 * 16) + _local4;
_local5 = _local5 + 1;
}
if (_local6) {
_local6 = false;
break;
}
_local2 = _local2 + String.fromCharCode(_local3);
break;
default :
_local2 = _local2 + ch;
}
} else {
_local2 = _local2 + ch;
}
}
}
error("Bad string");
}
function arr() {
var _local2 = [];
if (ch == "[") {
next();
white();
if (ch == "]") {
next();
return(_local2);
}
while (ch) {
_local2.push(value());
white();
if (ch == "]") {
next();
return(_local2);
}
if (ch != ",") {
break;
}
next();
white();
}
}
error("Bad array");
}
function obj() {
var _local3;
var _local2 = {};
if (ch == "{") {
next();
white();
if (ch == "}") {
next();
return(_local2);
}
while (ch) {
_local3 = str();
white();
if (ch != ":") {
break;
}
next();
_local2[_local3] = value();
white();
if (ch == "}") {
next();
return(_local2);
}
if (ch != ",") {
break;
}
next();
white();
}
}
error("Bad object");
}
function num() {
var _local2 = "";
var _local3;
if (ch == "-") {
_local2 = "-";
next();
}
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
if (ch == ".") {
_local2 = _local2 + ".";
next();
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
}
if ((ch == "e") || (ch == "E")) {
_local2 = _local2 + ch;
next();
if ((ch == "-") || (ch == "+")) {
_local2 = _local2 + ch;
next();
}
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
}
_local3 = Number(_local2);
if (!isFinite(_local3)) {
error("Bad number");
}
return(_local3);
}
function word() {
switch (ch) {
case "t" :
if (((next() == "r") && (next() == "u")) && (next() == "e")) {
next();
return(true);
}
break;
case "f" :
if ((((next() == "a") && (next() == "l")) && (next() == "s")) && (next() == "e")) {
next();
return(false);
}
break;
case "n" :
if (!(((next() == "u") && (next() == "l")) && (next() == "l"))) {
break;
}
next();
return(null);
}
error("Syntax error");
}
function value() {
white();
switch (ch) {
case "{" :
return(obj());
case "[" :
return(arr());
case "\"" :
return(str());
case "-" :
return(num());
}
return((((ch >= "0") && (ch <= "9")) ? (num()) : (word())));
}
function parse(_text) {
text = _text;
at = 0;
ch = " ";
return(value());
}
var ch = "";
var at = 0;
}
Symbol 1184 MovieClip [__Packages.Hint] Frame 0
class Hint
{
static var hints, mc;
function Hint (fa, fc, lc, fmt, fsize) {
if (fsize == undefined) {
fsize = 14;
}
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 1185 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 1186 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 1187 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.2 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 1188 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1189 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
static var gameStart, levelStart;
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function trigger(kind, obj) {
if (obj == undefined) {
obj = {};
} else if (obj.kind != undefined) {
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
obj.kind = kind;
}
mochi.as2.MochiServices.send("events_triggerEvent", {eventObject:obj}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startGame() {
gameStart = new Date().getTime();
trigger("start_game");
}
static function endGame() {
var _local1 = new Date().getTime() - gameStart;
trigger("end_game", {time:_local1});
}
static function startLevel() {
levelStart = new Date().getTime();
trigger("start_level");
}
static function endLevel() {
var _local1 = new Date().getTime() - levelStart;
trigger("end_level", {time:_local1});
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1190 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1191 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 1192 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
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 _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.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 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_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 showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
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_failed();
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;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
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) {
options.ad_failed();
_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 showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function 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;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
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;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
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);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
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++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1193 MovieClip [__Packages.CCore] Frame 0
class CCore
{
var game_bg, game_mc, face_mc, hives_mc, nanos_mc, objs_air_mc, gfx_mc, _player_gid, _speed_bonus, _map_xml;
function CCore () {
}
function _CCore_ini(_game_bg, _game_mc, _face_mc) {
game_bg = _game_bg;
game_mc = _game_mc;
face_mc = _face_mc;
hives_mc = game_mc.createEmptyMovieClip("hives", game_mc.getNextHighestDepth());
hives_mc.di = 0;
nanos_mc = game_mc.createEmptyMovieClip("nanos", game_mc.getNextHighestDepth());
nanos_mc.di = 0;
objs_air_mc = game_mc.createEmptyMovieClip("air_objs", game_mc.getNextHighestDepth());
gfx_mc = game_mc.createEmptyMovieClip("gfx", game_mc.getNextHighestDepth());
gfx_mc.di = 0;
select_ini();
_player_gid = 1;
if (_global.options_lvleditor) {
game_bg.onPress = function () {
this.temp_mc = this.createEmptyMovieClip("temp", 123);
this.start_x = this._xmouse;
this.start_y = this._ymouse;
this.onMouseMove = function () {
var _local6 = this.start_x - this._xmouse;
var _local5 = this.start_y - this._ymouse;
var _local4 = Math.round(Math.sqrt((_local6 * _local6) + (_local5 * _local5)) / 2) * 2;
if (_local4 != this.d) {
_global.game.add_fx_txt(this.start_x, this.start_y, _local4);
}
this.d = _local4;
this.temp_mc.clear();
_root.drawExCircle(this.temp_mc, [this.start_x, this.start_y], _local4, {_t:3, _alpha:90, _color:0}, {_alpha:90, _color:0});
};
};
game_bg.onRelease = (game_bg.onReleaseOutside = function () {
if ((this.d >= 8) && ((this.d / 1) == this.d)) {
var _local3 = _global.game.hive_add(this.start_x, this.start_y, this.d, 0, 1);
}
this.temp_mc.unloadMovie();
delete this.onMouseMove;
});
} else {
game_mc._onEnterFrame = function () {
var _local3 = _global.options_game_speed;
if (Key.isDown(16)) {
_local3 = _local3 * 2;
}
var _local2 = 0;
while (_local2 < _local3) {
_global.game.turn();
_local2++;
}
};
}
}
function _get_speed_bonus(player_id) {
return(_speed_bonus[player_id] * 2);
}
function _CCore_map_xml_load(map_xml) {
_map_xml = map_xml;
}
function select_ini() {
}
function _CGame_pause() {
}
function _CGame_unpause() {
}
}
Symbol 1194 MovieClip [__Packages.CEnvObjs] Frame 0
class CEnvObjs extends CCore
{
var MPI, _eobjs, objs_air_mc, rw, rh;
function CEnvObjs () {
super();
MPI = Math.PI;
_eobjs = [];
}
function _CEnvObjs_deini() {
for (var _local3 in _eobjs) {
var _local2 = _eobjs[_local3];
_local2.unloadMovie();
}
_eobjs = [];
}
function addEnvObjs() {
var _local2 = objs_air_mc.attachMovie("eagle_mc", objs_air_mc.getNextHighestDepth(), objs_air_mc.getNextHighestDepth());
_local2._x = rw * Math.random();
_local2._y = rh * Math.random();
var _local3 = Math.random() * (MPI * 2);
_local3 = (MPI * 2) * Math.random();
var _local4 = 6 + random(3);
_local2._sx = Math.cos(_local3);
_local2._sy = Math.sin(_local3);
_local2._a = _local3;
_local2._rotation = ((_local3 * 180) / MPI) - 90;
_eobjs.push(_local2);
}
function __CEnvObjs_turn() {
for (var _local5 in _eobjs) {
var _local2 = _eobjs[_local5];
if (_local2._x < -50) {
var _local3 = (-(MPI / 2)) + (MPI * Math.random());
var _local4 = 6 + random(3);
_local2._sx = Math.cos(_local3);
_local2._sy = Math.sin(_local3);
_local2._rotation = ((_local3 * 180) / MPI) - 90;
} else if (_local2._x > (rw + 50)) {
var _local3 = (((MPI * 2) / 2) - (MPI / 2)) + (MPI * Math.random());
var _local4 = 6 + random(3);
_local2._sx = Math.cos(_local3);
_local2._sy = Math.sin(_local3);
_local2._rotation = ((_local3 * 180) / MPI) - 90;
} else if (_local2._y > (rh + 50)) {
var _local3 = (((MPI * 3) / 2) - (MPI / 2)) + (MPI * Math.random());
var _local4 = 6 + random(3);
_local2._sx = Math.cos(_local3);
_local2._sy = Math.sin(_local3);
_local2._rotation = ((_local3 * 180) / MPI) - 90;
} else if (_local2._y < -50) {
var _local3 = (((MPI * 1) / 2) - (MPI / 2)) + (MPI * Math.random());
var _local4 = 6 + random(3);
_local2._sx = Math.cos(_local3);
_local2._sy = Math.sin(_local3);
_local2._rotation = ((_local3 * 180) / MPI) - 90;
}
_local2._x = _local2._x + _local2._sx;
_local2._y = _local2._y + _local2._sy;
}
}
}
Symbol 1195 MovieClip [__Packages.CGameFace] Frame 0
class CGameFace extends CEnvObjs
{
var MPR, Ms, face_mc, _scores, gfx_mc, rw, rh;
function CGameFace () {
super();
MPR = 57.2957795130823;
Ms = Math.sqrt;
}
function gd(x, y) {
return(Ms((x * x) + (y * y)));
}
function get_txt(attr) {
return(_root.get_txt(attr));
}
function refreshScores() {
var _local2 = getScores();
if (_local2 != face_mc.score_dtxt.text) {
face_mc.score_mc.addESplash(255, false);
}
face_mc.score_dtxt.text = _local2;
}
function addScores(val) {
_scores = _scores + val;
refreshScores();
}
function setScores(val) {
_scores = val;
refreshScores();
}
function getScores() {
return(_scores);
}
function point_inside(item_mc) {
var _local3 = "game_char_pointer_mc";
item_mc = item_mc.attachMovie(_local3, "pointer", 23);
item_mc.dtxt.text = "";
item_mc._alpha = 100;
item_mc._onEnterFrame = function () {
this.body._rotation = this.body._rotation + 3;
this._alpha = this._alpha * 0.95;
this._alpha--;
if (this._alpha < 2) {
this.unloadMovie();
}
};
item_mc.onEnterFrame = function () {
this._onEnterFrame();
};
}
function point_exy(x, y, c) {
var _local2 = gfx_mc.attachMovie("game_pointer_mc", String(gfx_mc.di), gfx_mc.di, {_x:x, _y:y});
gfx_mc.di++;
_local2.c = c * 2;
_local2._onEnterFrame = function () {
this._xscale = this._xscale + this.c;
this._yscale = this._yscale + this.c;
this.body._rotation = this.body._rotation + 3;
this._alpha = this._alpha * 0.95;
this._alpha--;
if (this._alpha < 2) {
this.unloadMovie();
}
};
_local2.onEnterFrame = function () {
this._onEnterFrame();
};
}
function point_xy(x, y) {
var _local3 = "game_char_pointer_mc";
var _local2 = gfx_mc.attachMovie(_local3, String(gfx_mc.di), gfx_mc.di, {_x:x, _y:y});
gfx_mc.di++;
_local2.dtxt.text = "";
_local2._onEnterFrame = function () {
this.body._rotation = this.body._rotation + 3;
this._alpha = this._alpha * 0.95;
this._alpha--;
if (this._alpha < 2) {
this.unloadMovie();
}
};
_local2.onEnterFrame = function () {
this._onEnterFrame();
};
}
function add_center_txt(txt) {
var _local8 = rw / 2;
var _local7 = rh / 2;
var _local6 = 15;
var _local4 = "z_exps" + gfx_mc.di;
var _local5 = {_x:_local8, _y:_local7};
var _local3 = "z_exps" + _local6;
var _local2 = gfx_mc.attachMovie(_local3, _local4, gfx_mc.di, _local5);
gfx_mc.di++;
_local2.dtxt.text = txt;
_local2.dtxt.autoSize = "center";
if (_local2.dtxt._width > rw) {
_local2.dtxt._xscale = (rw * 90) / _local2.dtxt._width;
}
}
function add_fx_txt(x, y, txt) {
var _local6 = 14;
var _local4 = "z_exps" + gfx_mc.di;
var _local5 = {_x:x, _y:y};
var _local3 = "z_exps" + _local6;
var _local2 = gfx_mc.attachMovie(_local3, _local4, gfx_mc.di, _local5);
gfx_mc.di++;
_local2.dtxt.text = txt;
_local2.onEnterFrame = function () {
this._y--;
};
}
function add_exp(xy, r, fi) {
if (_root.QUALITY_ID === 0) {
add_exp_trace(xy, r, 3);
} else {
var _local5 = "e" + gfx_mc.di;
var _local4 = (r * 100) / 100;
var _local3 = gfx_mc.attachMovie("exps_mc", _local5, gfx_mc.di, {_x:xy[0], _y:xy[1], _xscale:_local4, _yscale:_local4});
_local3._alpha = 80;
_root.snd.explosions(fi);
_local3.gotoAndStop(fi);
_local3._rotation = random(360);
gfx_mc.di++;
}
}
function add_exp_trace(xy_start, r, ttl) {
var _local4 = "e" + gfx_mc.di;
var _local3 = gfx_mc.createEmptyMovieClip(_local4, gfx_mc.di);
gfx_mc.di++;
_local3._x = xy_start[0];
_local3._y = xy_start[1];
_root.drawExCircle(_local3, [0, 0], r, {_t:2, _alpha:60, _color:16711680});
_local3.tts = ttl * 3;
_local3.onEnterFrame = function () {
this.tts--;
this._alpha = this._alpha * 0.96;
if (this.tts < 0) {
this.unloadMovie();
}
};
}
function add_fire_trace(xy_start, xy_end, size, ttl) {
var _local7 = "e" + gfx_mc.di;
var _local3 = gfx_mc.createEmptyMovieClip(_local7, gfx_mc.di);
gfx_mc.di++;
_local3.lineStyle(size, 10027008, 80);
xy_start[0] = xy_start[0] + ((xy_end[0] - xy_start[0]) / 2);
xy_start[1] = xy_start[1] + ((xy_end[1] - xy_start[1]) / 2);
_local3.moveTo(xy_start[0], xy_start[1]);
var _local6 = xy_start[0] + ((xy_end[0] - xy_start[0]) / 2);
var _local5 = xy_start[1] + ((xy_end[1] - xy_start[1]) / 2);
_local3.lineTo(_local6, _local5);
_local3.lineStyle(size * 2, 10027008, 80);
_local3.lineTo(xy_end[0], xy_end[1]);
_local3.tts = ttl;
_local3.onEnterFrame = function () {
this.tts--;
if (this.tts < 0) {
this.unloadMovie();
} else {
this._alpha = this._alpha * 0.9;
}
};
}
function add_lighting_trace(xy_start, xy_end, size, ttl) {
var _local7 = "e" + gfx_mc.di;
var _local2 = gfx_mc.createEmptyMovieClip(_local7, gfx_mc.di);
gfx_mc.di++;
_local2.lineStyle(size, 2254557, 80);
_local2.moveTo(xy_start[0], xy_start[1]);
var _local6 = (xy_start[0] + ((xy_end[0] - xy_start[0]) / 2)) + (Math.random() * 5);
var _local5 = (xy_start[1] + ((xy_end[1] - xy_start[1]) / 2)) + (Math.random() * 5);
_local2.lineTo(_local6, _local5);
_local2.lineTo(xy_end[0], xy_end[1]);
_local2.tts = ttl;
_local2.onEnterFrame = function () {
this.tts--;
this._alpha = this._alpha * 0.9;
if (this.tts < 0) {
this.unloadMovie();
}
};
}
function add_shoot_trace(xy_start, xy_end, size, ttl) {
var _local3 = "e" + gfx_mc.di;
var _local2 = gfx_mc.createEmptyMovieClip(_local3, gfx_mc.di);
gfx_mc.di++;
_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.9;
if (this.tts < 0) {
this.unloadMovie();
}
};
}
function _CGame_pause() {
}
function _CGame_unpause() {
}
function _CGame_win() {
}
function _CGame_lose() {
}
}
Symbol 1196 MovieClip [__Packages.CChar] Frame 0
class CChar extends CGameFace
{
var _char_speed, _char_type, _char_name;
function CChar () {
super();
_char_speed = 0;
}
function setChar(val) {
var _local7 = _root._find_xml("chars", _root.data_xml);
var _local4 = -1;
var _local3 = _local7.childNodes;
for (var _local6 in _local3) {
if (_local3[_local6].attributes.type == val) {
_local4 = _local3[_local6];
break;
}
}
if (_local4 === -1) {
trace("ERR#CChar::setChar:this_type_not_found");
return(0);
}
if (_local4.attributes.avaible == 0) {
trace("ERR#CChar::setChar:this_type_not_allowed");
return(-1);
}
_char_type = val;
_char_name = _local4.attributes.name;
_char_speed = _local4.attributes.speed;
}
}
Symbol 1197 MovieClip [__Packages.CNanos] Frame 0
class CNanos extends CChar
{
var _hives, _nanos, hives_mc, _player_gid, add_fx_txt, addScores, _stat_hives_captured, _stat_hives_losted, _speed_bonus, get_txt, _stat_nano_released, _char_speed, _get_speed_bonus, nanos_mc, cursor_mc, select_mc, game_mc, select_cur_mc, select_dir_mc, gd, select_units, point_exy, select_start_time, select_xy, face_mc;
function CNanos () {
super();
}
function _CNanos_ini() {
_hives = [];
_nanos = [];
}
function hive_add(x, y, r, gid, type) {
var _local4 = hives_mc.attachMovie("hives_mc", hives_mc.di, hives_mc.di, {_x:x, _y:y});
hives_mc.di++;
if (_global.options_lvleditor) {
_local4.hit_mc.onPress = function () {
if (Key.isDown(17)) {
this._parent._type++;
if (this._parent._type > 3) {
this._parent._type = 1;
}
this._parent.refresh_type();
} else if (Key.isDown(16)) {
_global.game.hive_remove(this._parent);
} else {
this._parent.gid++;
if (this._parent.gid > 3) {
this._parent.gid = 0;
}
this._parent.body.gotoAndStop(this._parent.gid + 1);
}
};
}
_local4._ttr = (random(6) * 6) + 6;
_local4.gid = gid;
_local4._col_r = r;
if (_local4._col_r < 20) {
var _local5 = 20 - _local4._col_r;
_local5 = Math.round(Math.sqrt(_local5));
_local4._col_r = 20 - _local5;
}
if (_local4._col_r > 128) {
var _local5 = _local4._col_r - 128;
_local5 = Math.round(Math.sqrt(_local5));
_local4._col_r = 128 + _local5;
}
_local4._nano = 0;
_local4._nano_max = r;
_local4.nano_fill = function () {
if (this._nano < this._nano_max) {
this._nano = this._nano + 0.04;
if (this.gid === _global.game._player_gid) {
this._nano = this._nano + ((0.04 * ((_root.items_got["New Breed"] * 5) + (_root.items_got["New Gens - Grow speed"] * 5))) / 100);
}
if (this._nano > this._nano_max) {
this._nano = this._nano_max;
}
this.nano_refresh();
}
};
_local4.nano_refresh = function () {
this.dtxt.text = Math.floor(this._nano);
};
_local4.set_nano = function (val) {
this._nano = val;
this.nano_refresh();
};
_local4.take_nano = function () {
var _local2 = Math.floor(this._nano / 2);
this._nano = this._nano - _local2;
this.nano_refresh();
return(_local2);
};
_local4.get_nano = function (val, gid) {
var _local2 = false;
if (this.gid === gid) {
this._nano = this._nano + val;
} else {
this._nano = this._nano - val;
}
if (this._nano < 0) {
_local2 = true;
this._nano = this._nano * -1;
this.gid = gid;
this.body.gotoAndStop(gid + 1);
}
this.nano_refresh();
return(_local2);
};
_local4._type = type;
_local4.body.gotoAndStop(gid + 1);
_local4.refresh_type = function () {
this.body.obj_mc.gotoAndStop(this._type);
if (this._type === 1) {
var _local2 = this._col_r * 2;
this.body._xscale = _local2;
this.body._yscale = _local2;
} else {
this._col_r = 32;
this.body._xscale = 100;
this.body._yscale = 100;
}
};
_local4.refresh_type();
if (_global.options_lvleditor) {
_local4.set_nano(Math.round(r));
} else if ((type != 1) && (gid != 0)) {
_local4.set_nano(0);
} else {
_local4.set_nano(Math.round(r / 3));
}
_hives.push(_local4);
return(_local4);
}
function hive_get_nano(hive_mc, val, gid) {
var _local4 = hive_mc.gid;
if (hive_mc.get_nano(val, gid)) {
if (gid === _player_gid) {
var _local5 = Math.round(Math.sqrt(hive_mc._nano_max)) * 10;
add_fx_txt(hive_mc._x, hive_mc._y, "+" + _local5);
addScores(_local5);
_stat_hives_captured++;
_root.snd.tower_build_start.start();
} else if (_local4 === _player_gid) {
_stat_hives_losted++;
_root.snd.tower_upgrade_start.start();
}
if (hive_mc._type === 2) {
_speed_bonus[_local4]--;
_speed_bonus[gid]++;
add_fx_txt(hive_mc._x, hive_mc._y, (get_txt("color_" + gid) + " ") + get_txt("run_speed_incresed"));
}
}
}
function hive_remove(hive_mc) {
for (var _local3 in _hives) {
if (_hives[_local3] == hive_mc) {
hive_mc.unloadMovie();
_hives.splice(Number(_local3), 1);
}
}
}
function nano_add(parent_mc, tar_mc) {
if (parent_mc === tar_mc) {
return(false);
}
var _local6 = parent_mc.take_nano();
if (_local6 < 1) {
return(false);
}
var _local7 = 0;
var extra_move_speed = 100;
if (parent_mc.gid === _player_gid) {
_stat_nano_released = _stat_nano_released + _local6;
_local7 = _char_speed;
extra_move_speed = extra_move_speed + ((_root.items_got["New Gens - Run speed"] * 5) + (_root.items_got["New Breed"] * 5));
}
extra_move_speed = extra_move_speed / 100;
_local7 = _local7 + _get_speed_bonus(parent_mc.gid);
var _local10 = parent_mc._x;
var _local9 = parent_mc._y;
var _local4 = nanos_mc.attachMovie("car_mc", nanos_mc.di, nanos_mc.di, {_x:_local10, _y:_local9});
nanos_mc.di++;
_local4.gid = parent_mc.gid;
_local4.col_r_refresh = function () {
this._col_r = (Math.ceil(Math.sqrt(this._nano)) * 3) + 12;
this._r = (this._col_r * 2) + 16;
};
_local4._reload = 0;
_local4._reload_max = 22;
_local4.nano_refresh = function () {
this.dtxt.text = Math.ceil(this._nano);
this.col_r_refresh();
this.ts_refresh();
if (_global.options_colision_rings) {
this.clear();
_root.drawExCircle(this, [0, 0], this._col_r, {_t:2, _color:255, _alpha:50}, {_alpha:0});
_root.drawExCircle(this, [0, 0], this._r, {_t:2, _color:16711680, _alpha:50}, {_alpha:0});
}
};
_local4._nano = _local6;
_local4._tar_mc = tar_mc;
_local4._s = 0.8 + (_get_speed_bonus(parent_mc.gid) / 2);
_local4._bonus_ts = _local7;
_local4.extra_move_speed = extra_move_speed;
_local4.ts_refresh = function () {
this._ts = 7 - (Math.floor(Math.sqrt(this._nano)) * 2);
this._ts = this._ts + (this._bonus_ts / 2);
if (this._ts < 2) {
this._ts = 2;
}
if (this._ts > 4) {
var _local2 = this._ts - 5;
this._ts = this._ts - _local2;
this._ts = this._ts + (_local2 / 5);
}
this._ts = this._ts * this.extra_move_speed;
this._ts = this._ts * 0.9;
};
if (_global.options_colision_rings) {
_root.drawExCircle(_local4, [0, 0], _local4._col_r, {_t:2, _color:255, _alpha:50}, {_alpha:0});
_root.drawExCircle(_local4, [0, 0], _local4._r, {_t:2, _color:16711680, _alpha:50}, {_alpha:0});
} else {
_local4.range_ring_mc = _local4.createEmptyMovieClip("ring_mc", _local4.getNextHighestDepth());
_local4.showRings = function () {
this.range_ring_mc.clear();
_root.drawExCircle(this.range_ring_mc, [0, 0], this._r, {_t:1, _color:16711680, _alpha:70}, {_alpha:0});
if (_global.options_colision_rings) {
_root.drawExCircle(this, [0, 0], this._col_r, {_t:3, _color:255, _alpha:80}, {_alpha:0});
}
};
_local4.clearRings = function () {
this.clear();
this.range_ring_mc.clear();
};
_local4.hit_mc.onRollOver = function () {
this._parent.showRings();
};
_local4.hit_mc.onRollOut = function () {
this._parent.clearRings();
};
}
_local4.dtxt.text = _local6;
_local4.gotoAndStop(_local4.gid + 1);
if (_root.QUALITY_ID > 1) {
_local4.body.filters = [_root.shadow_filter];
}
_local4.refresh_rot = function () {
var _local3 = this._x - this._tar_mc._x;
var _local2 = this._y - this._tar_mc._y;
var _local4 = ((Math.atan2(_local2, _local3) * 180) / Math.PI) + 90;
this.body._rotation = _local4;
};
_local4.refresh_rot();
_local4.nano_refresh();
_local4._dead = false;
_nanos.push(_local4);
_root.snd.towers_light();
}
function select_ini() {
cursor_mc = -1;
select_mc = game_mc.createEmptyMovieClip("select", game_mc.getNextHighestDepth());
select_cur_mc = game_mc.createEmptyMovieClip("select_cur", game_mc.getNextHighestDepth());
select_dir_mc = game_mc.createEmptyMovieClip("select_dir", game_mc.getNextHighestDepth());
}
function select_get_nearest(x, y) {
for (var _local6 in _hives) {
var _local2 = _hives[_local6];
var _local5 = _local2._x - x;
var _local4 = _local2._y - y;
var _local3 = gd(_local5, _local4);
if (_local3 < (_local2._col_r + 10)) {
return(_local2);
}
}
return(-1);
}
function select_att(x, y) {
var _local3 = select_get_nearest(x, y);
if (_local3 === -1) {
select_clear();
} else {
for (var _local4 in select_units) {
var _local2 = select_units[_local4];
if ((_local2.gid != _player_gid) || (_local2._type > 1)) {
select_units.splice(Number(_local4), 1);
continue;
}
nano_add(_local2, _local3);
}
}
}
function select_clear() {
if (select_units.length === 0) {
for (var _local3 in _hives) {
var _local2 = _hives[_local3];
if (_local2.gid === _player_gid) {
select_units.push(_local2);
point_exy(_local2._x, _local2._y, 1);
}
}
select_after_stop();
} else {
for (var _local3 in select_units) {
var _local2 = select_units[_local3];
point_exy(_local2._x, _local2._y, -1);
}
select_units = [];
select_dir_mc.clear();
select_dir_mc.createEmptyMovieClip("holder", 123);
select_mc.clear();
select_mc._alpha = 100;
delete select_mc.onEnterFrame;
delete cursor_mc.onMouseMove;
cursor_mc.unloadMovie();
cursor_mc = -1;
Mouse.show();
}
}
function attachArr(mc, sx, sy, tx, ty) {
var _local5 = sx - tx;
var _local4 = sy - ty;
var _local7 = gd(_local5, _local4);
if (_local7 === 0) {
return(true);
}
var _local6 = mc.attachMovie("arr_head", mc.di, mc.di);
_local6._x = tx;
_local6._y = ty;
_local6._rotation = ((Math.atan2(_local4, _local5) * 180) / Math.PI) - 90;
mc.di++;
var _local3 = mc.attachMovie("arr_body", mc.di, mc.di);
_local3._x = sx;
_local3._y = sy;
_local3._rotation = ((Math.atan2(_local4, _local5) * 180) / Math.PI) - 90;
_local3.body._height = _local7 - 5;
mc.di++;
}
function select_draw_dirs() {
var _local5 = select_dir_mc.createEmptyMovieClip("holder", 123);
_local5.di = 0;
select_dir_mc.clear();
var _local4 = select_get_nearest(select_dir_mc._xmouse, select_dir_mc._ymouse);
if (_local4 === -1) {
for (var _local9 in select_units) {
var _local3 = select_units[_local9];
if (_root.QUALITY_ID > 1) {
attachArr(_local5, _local3._x, _local3._y, select_dir_mc._xmouse, select_dir_mc._ymouse);
} else {
_root.drawLine(select_dir_mc, [_local3._x, _local3._y], [select_dir_mc._xmouse, select_dir_mc._ymouse], {_t:1, _color:16777215, _alpha:100});
}
}
} else {
for (var _local9 in select_units) {
var _local3 = select_units[_local9];
if (_root.QUALITY_ID > 1) {
attachArr(_local5, _local3._x, _local3._y, _local4._x, _local4._y);
} else {
_root.drawLine(select_dir_mc, [_local3._x, _local3._y], [_local4._x, _local4._y], {_t:1, _color:16777215, _alpha:100});
}
}
}
}
function select_start() {
if (((cursor_mc != -1) && (!Key.isDown(17))) || (_global.options_lvleditor)) {
return(false);
}
select_start_time = getTimer();
select_xy = [game_mc._xmouse, game_mc._ymouse];
select_mc.select_xy = select_xy;
select_mc._alpha = 100;
select_mc.onEnterFrame = function () {
this.clear();
_root.drawSqare(this, [this.select_xy[0], this.select_xy[1]], this._xmouse - this.select_xy[0], this._ymouse - this.select_xy[1], {_t:1, _color:16777215, _alpha:50}, {_color:16777215, _alpha:20});
};
}
function select_stop() {
if (_global.options_lvleditor) {
return(false);
}
if ((cursor_mc != -1) && (!Key.isDown(17))) {
select_att(cursor_mc._x - game_mc._x, cursor_mc._y - game_mc._y);
return(false);
}
var _local12 = getTimer() - select_start_time;
var _local5 = [game_mc._xmouse, game_mc._ymouse];
if (_local12 < 10) {
select_mc.clear();
select_mc._alpha = 100;
delete select_mc.onEnterFrame;
return(false);
}
if (_local5[0] < select_xy[0]) {
var _local13 = _local5[0];
_local5[0] = select_xy[0];
select_xy[0] = _local13;
}
if (_local5[1] < select_xy[1]) {
var _local13 = _local5[1];
_local5[1] = select_xy[1];
select_xy[1] = _local13;
}
var _local10 = 0;
if (!Key.isDown(17)) {
select_units = [];
}
for (var _local11 in _hives) {
var _local3 = _hives[_local11];
if (_local3.gid === _player_gid) {
if ((_local3._x > select_xy[0]) && (_local3._x < _local5[0])) {
if ((_local3._y > select_xy[1]) && (_local3._y < _local5[1])) {
select_units.push(_local3);
point_exy(_local3._x, _local3._y, 1);
_local10++;
}
}
}
}
if (_local10 === 0) {
for (var _local11 in _hives) {
var _local3 = _hives[_local11];
if (_local3.gid === _player_gid) {
var _local8 = game_mc._xmouse - _local3._x;
var _local7 = game_mc._ymouse - _local3._y;
var _local6 = gd(_local8, _local7);
if (_local6 < _local3._col_r) {
var _local4 = true;
for (var _local9 in select_units) {
if (_local3 == select_units[_local9]) {
point_exy(_local3._x, _local3._y, -1);
select_units.splice(Number(_local9), 1);
_local4 = false;
break;
}
}
if (_local4) {
select_units.push(_local3);
point_exy(_local3._x, _local3._y, 1);
}
}
}
}
}
if (select_units.length === 0) {
select_mc.clear();
select_mc._alpha = 100;
delete select_mc.onEnterFrame;
return(false);
}
select_after_stop();
}
function select_after_stop() {
cursor_mc = select_cur_mc.attachMovie("select_cur_mc", "cur", 0);
cursor_mc._x = face_mc._xmouse;
cursor_mc._y = face_mc._ymouse;
Mouse.hide();
cursor_mc._onMouseMove = function () {
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
_global.game.select_draw_dirs();
updateAfterEvent();
};
cursor_mc._onMouseMove();
cursor_mc.onMouseMove = cursor_mc._onMouseMove;
select_mc.onEnterFrame = function () {
this._alpha = this._alpha * 0.8;
this._alpha = this._alpha - 5;
if (this._alpha < 5) {
this.clear();
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
}
Symbol 1198 MovieClip [__Packages.CGame] Frame 0
class CGame extends CNanos
{
var _max_players, _speed_bonus, _hives, _nanos, select_units, _stat_nano_released, _stat_nano_killed, _stat_hives_captured, _stat_hives_losted, _graf_nano_players, _turns, setScores, game_mc, _game_end, addEnvObjs, players_prefered_tar, gd, _get_speed_bonus, _player_gid, add_fx_txt, addScores, hive_get_nano, _rule_enemy_sleep, nano_add, add_lighting_trace, _rule_enemy_slow, face_mc, __CEnvObjs_turn, game_bg, _map_xml, rw, rh, get_txt, hive_add, getScores, _game_paused, _eobjs, hives_mc, nanos_mc, objs_air_mc, gfx_mc;
function CGame () {
super();
}
function _CGame_start() {
_max_players = 4;
_speed_bonus = [];
var _local3 = 0;
while (_local3 < _max_players) {
_speed_bonus[_local3] = 0;
_local3++;
}
_hives = [];
_nanos = [];
select_units = [];
_stat_nano_released = 0;
_stat_nano_killed = 0;
_stat_hives_captured = 0;
_stat_hives_losted = 0;
_graf_nano_players = [[], [], [], [], []];
_turns = 0;
setScores(0);
_CGame_map_xml_ini();
game_mc.onEnterFrame = game_mc._onEnterFrame;
_game_end = false;
addEnvObjs();
addEnvObjs();
players_prefered_tar = [-1, -1, -1, -1, -1];
_root.snd.start_sphere.start();
}
function turn() {
if (_game_end) {
return(false);
}
for (var _local22 in _nanos) {
var _local6 = _nanos[_local22];
if (isNaN(_local6._nano)) {
_local6.unloadMovie();
_nanos.splice(Number(_local22), 1);
break;
}
for (var _local17 in _nanos) {
var _local4 = _nanos[_local17];
if (_local4 === _local6) {
continue;
}
var _local13 = _local4._x - _local6._x;
var _local12 = _local4._y - _local6._y;
var _local10 = gd(_local13, _local12);
if (_local10 < _local6._r) {
if (_local6.gid != _local4.gid) {
_local6._reload = _local6._reload_max - _get_speed_bonus(_local6.gid);
var _local9 = ((Math.atan2(_local12, _local13) * 180) / Math.PI) - 90;
_local6.body._rotation = _local9;
_local6.body.gotoAndStop(2);
_local6.body.fire_mc.play();
_local6._s = 1;
if (_local6._nano == _local4._nano) {
_root.snd.char_gun_shoot(8);
_root.snd.char_gun_shoot(8);
_local6.addLastSplash();
_local4.addLastSplash();
if (_local6.gid == _player_gid) {
if (!isNaN(_local4._nano)) {
_stat_nano_killed = _stat_nano_killed + _local4._nano;
}
var _local8 = _local4._nano;
add_fx_txt(_local4._x, _local4._y, "+" + _local8);
addScores(_local8);
}
for (var _local16 in _nanos) {
if ((_nanos[_local16] === _local6) || (_nanos[_local16] === _local4)) {
_nanos[_local16]._dead = true;
_nanos.splice(Number(_local16), 1);
}
}
break;
}
if (_local6._nano < _local4._nano) {
_root.snd.char_gun_shoot(8);
_local4._nano = _local4._nano - _local6._nano;
_local4.nano_refresh();
_local6.addLastSplash();
if (_local4.gid == _player_gid) {
if (!isNaN(_local6._nano)) {
_stat_nano_killed = _stat_nano_killed + _local6._nano;
}
var _local8 = _local6._nano * 2;
add_fx_txt(_local6._x, _local6._y, ("+" + _local8) + "!");
addScores(_local8);
}
if (_local6.gid == _player_gid) {
var _local8 = _local6._nano;
add_fx_txt(_local6._x, _local6._y, "+" + _local8);
addScores(_local8);
}
_nanos[_local22]._dead = true;
_nanos.splice(Number(_local22), 1);
break;
}
_root.snd.char_gun_shoot(8);
_local6._nano = _local6._nano - _local4._nano;
_local6.nano_refresh();
_local4.addLastSplash();
if (_local4.gid == _player_gid) {
var _local8 = _local4._nano;
add_fx_txt(_local4._x, _local4._y, "+" + _local8);
addScores(_local8);
}
if (_local6.gid == _player_gid) {
if (!isNaN(_local6._nano)) {
_stat_nano_killed = _stat_nano_killed + _local4._nano;
}
var _local8 = _local4._nano * 2;
add_fx_txt(_local4._x, _local4._y, ("+" + _local8) + "!");
addScores(_local8);
}
_nanos[_local17]._dead = true;
_nanos.splice(Number(_local17), 1);
continue;
}
if (_local6._tar_mc === _local4._tar_mc) {
if (_local6._nano >= _local4._nano) {
if (_local10 < (_local6._col_r + _local4._col_r)) {
_local6._nano = _local6._nano + _local4._nano;
_local6.nano_refresh();
_local4.addLastSplash();
_nanos[_local17]._dead = true;
_nanos.splice(Number(_local17), 1);
continue;
}
_local4._x = _local4._x - (_local13 / _local10);
_local4._y = _local4._y - (_local12 / _local10);
}
}
}
}
}
for (var _local22 in _nanos) {
var _local6 = _nanos[_local22];
var _local5 = _local6._tar_mc;
var _local14 = _local6._ts - _local6._s;
if (Math.abs(_local14) < 0.1) {
_local6._s = _local6._ts;
} else {
_local6._s = _local6._s + (_local14 / (11 - _get_speed_bonus(_local6.gid)));
}
if (_local6._reload > 0) {
_local6._reload--;
if (_local6._reload <= 0) {
_local6.body.gotoAndStop(1);
_local6.refresh_rot();
}
continue;
}
var _local13 = _local5._x - _local6._x;
var _local12 = _local5._y - _local6._y;
var _local10 = gd(_local13, _local12);
var _local11 = _local6._s;
if (_local10 < _local11) {
hive_get_nano(_local5, _local6._nano, _local6.gid);
_local6._dead = true;
_local6.unloadMovie();
_nanos.splice(Number(_local22), 1);
} else {
_local6._x = _local6._x + ((_local13 * _local11) / _local10);
_local6._y = _local6._y + ((_local12 * _local11) / _local10);
}
}
var _local21 = true;
var _local20 = true;
var _local19 = -1;
var _local15 = [0, 0, 0, 0, 0, 0];
var _local18 = [0, 0, 0, 0, 0, 0];
if ((_turns % 48) === 0) {
for (var _local22 in players_prefered_tar) {
if (players_prefered_tar[_local22] != -1) {
if (Math.random() > 0.9) {
players_prefered_tar[_local22] = -1;
}
}
}
}
for (var _local22 in _hives) {
var _local5 = _hives[_local22];
if (isNaN(_local5._nano)) {
_local5._nano = 0;
}
_local18[_local5.gid]++;
if (_local5.gid != 0) {
if (_local5.gid != _player_gid) {
_local21 = false;
} else {
_local20 = false;
}
_local5.nano_fill();
_local15[_local5.gid] = _local15[_local5.gid] + _local5._nano;
if (_local5._type > 1) {
_local5.nano_fill();
if (_local5._type === 3) {
if (_local5._nano >= _local5._nano_max) {
_local19 = _local5.gid;
break;
}
}
continue;
}
if ((_rule_enemy_sleep === false) && (_turns > 80)) {
if (_local5.gid != _player_gid) {
if (_local5._ttr > 0) {
_local5._ttr--;
continue;
}
if ((_local5._nano > (_local5._nano_max / 2)) || (_local5._nano >= 8)) {
var _local7 = players_prefered_tar[_local5.gid];
if ((_local7 === -1) || (_local7.gid === _local5.gid)) {
_local7 = get_nearest_hive(_local5.gid, _local5._x, _local5._y);
if (_local7 === -1) {
} else {
players_prefered_tar[_local5.gid] = _local7;
nano_add(_local5, _local7);
}
} else {
_local7 = players_prefered_tar[_local5.gid];
nano_add(_local5, _local7);
if (_global.options_colision_rings) {
add_lighting_trace([_local5._x, _local5._y], [_local7._x, _local7._y], 20, 20);
}
}
_local5._ttr = (random(6) * 6) + 6;
if (_rule_enemy_slow) {
_local5._ttr = _local5._ttr * 10;
}
}
}
}
}
}
face_mc.hives1.text = _local18[1];
face_mc.hives2.text = _local18[2];
face_mc.hives3.text = _local18[3];
if ((_turns % 24) === 0) {
for (var _local22 in _local15) {
_graf_nano_players[_local22].push(_local15[_local22]);
}
}
if (_local21) {
_CGame_win();
} else if (_local20) {
_CGame_lose("no_hives");
}
if (_local19 != -1) {
if (_local19 === _player_gid) {
_CGame_win();
} else {
_CGame_lose("hold_lost");
}
}
__CEnvObjs_turn();
_turns++;
}
function get_nearest_hive(gid, x, y) {
var _local5 = -1;
var _local4 = -1;
for (var _local8 in _hives) {
var _local2 = _hives[_local8];
if (_local2.gid != gid) {
var _local7 = x - _local2._x;
var _local6 = y - _local2._y;
var _local3 = gd(_local7, _local6);
if (_local3 < _local5) {
_local4 = _local2;
_local5 = _local3;
} else if (_local4 === -1) {
_local4 = _local2;
_local5 = _local3;
}
}
}
return(_local4);
}
function _CGame_map_xml_ini() {
game_bg.gotoAndStop(_map_xml.attributes.bg_id / 1);
rw = game_bg._width;
rh = game_bg._height;
game_bg.dtxt.text = "";
game_bg.dtxt._visible = false;
face_mc.map_name_mc.map_name_dtxt.text = (_map_xml.attributes.name + " by ") + _map_xml.attributes.author;
face_mc.map_name_mc.ttl = 110;
face_mc.map_name_mc.onEnterFrame = function () {
if (this.ttl > 0) {
this.ttl--;
} else {
this._alpha = this._alpha - 1;
this._alpha = this._alpha * 0.95;
if (this._alpha < 0.5) {
this._visible = false;
delete this.onEnterFrame;
}
}
};
_rule_enemy_slow = false;
_rule_enemy_sleep = false;
var _local7 = _map_xml.attributes.rules.split(",");
for (var _local10 in _local7) {
var _local6 = String(_local7[_local10]);
switch (_local6) {
case "enemy_sleep" :
_rule_enemy_sleep = true;
break;
case "enemy_slow" :
_rule_enemy_slow = true;
}
}
var _local8 = _map_xml.firstChild;
var _local9 = _local8.childNodes;
while (_local9.length > 0) {
var _local3 = _local8.firstChild;
var _local5 = String(_local3.nodeName);
var _local4 = _local3.attributes.val.split(",");
switch (_local5) {
case "add_text" :
game_bg.dtxt.text = get_txt(_local3.attributes.val);
game_bg.dtxt._visible = true;
break;
case "add_hive" :
if (_local3.attributes.type == undefined) {
_local3.attributes.type = 1;
}
hive_add(_local4[0] / 1, _local4[1] / 1, _local4[2] / 1, _local3.attributes.gid / 1, _local3.attributes.type / 1);
break;
default :
trace("TODO_CGame_map_xml_ini:" + _local5);
}
_local3.removeNode();
}
if (_global.options_lvleditor) {
game_bg.dtxt.text = get_txt("tutorial_editor_1");
game_bg.dtxt._visible = true;
}
}
function _CGame_editor_get_xml() {
var _local5 = -1;
var _local8 = _map_xml.nodeName;
var _local10 = _root._find_xml("map_list", _root.data_xml);
var _local6 = _local10.childNodes;
for (var _local9 in _local6) {
if (_local6[_local9].nodeName == _local8) {
_local5 = _local6[_local9];
break;
}
}
while (_local5.firstChild.childNodes.length > 0) {
_local5.firstChild.firstChild.removeNode();
}
var _local7 = [];
for (var _local9 in _hives) {
var _local3 = _hives[_local9];
var _local4 = new XML("<add_hive />").firstChild;
_local4.attributes.gid = _local3.gid;
_local4.attributes.val = (((_local3._x + ",") + _local3._y) + ",") + _local3._nano_max;
_local4.attributes.type = _local3._type;
_local7.push(_local4.toString());
_local5.firstChild.appendChild(_local4);
}
_local7.unshift("<map>");
_local7.push("</map>");
_local7.unshift("<map_XX rules=\"\" bg_id=\"2\" name=\"MAP_NAME\" author=\"YOUR_NAME\">");
_local7.push("</map_XX>");
trace(_local7.join("\r"));
System.setClipboard(_local7.join("\r"));
return(_local7.join("\r"));
}
function _CGame_end() {
_game_end = true;
_CGame_pause();
}
function _CGame_lose(reason) {
_CGame_end();
_root.show_end_map(false, reason, getStats(), getScores());
}
function _CGame_win() {
_CGame_end();
_root.show_end_map(true, "next", getStats(), getScores() * 2);
}
function _CGame_pause() {
if (!_game_paused) {
_game_paused = true;
delete game_mc.onEnterFrame;
for (var _local3 in _eobjs) {
var _local2 = _eobjs[_local3];
_local2.body.stop();
}
}
}
function _CGame_unpause() {
if (_global.options_game_speed == 0) {
return(false);
}
if (_game_paused) {
for (var _local4 in _eobjs) {
var _local3 = _eobjs[_local4];
_local3.body.play();
}
_game_paused = false;
game_mc.onEnterFrame = game_mc._onEnterFrame;
}
}
function trace_like_info() {
trace("\r\r");
trace("-----------------------");
trace("__main:" + _root.main.getNextHighestDepth());
trace("___game_bg:" + game_bg.getNextHighestDepth());
trace("___game_mc:" + game_mc.getNextHighestDepth());
trace((("____hives_mc:" + hives_mc.getNextHighestDepth()) + ":") + hives_mc.di);
trace((("____nanos_mc:" + nanos_mc.getNextHighestDepth()) + ":") + nanos_mc.di);
trace("____objs_air_mc:" + objs_air_mc.getNextHighestDepth());
trace((("____gfx_mc:" + gfx_mc.getNextHighestDepth()) + ":") + gfx_mc.di);
trace("___face_mc:" + face_mc.getNextHighestDepth());
trace("-----------------------");
}
function getStats() {
var _local2 = {};
_local2.hives_losted = _stat_hives_losted;
_local2.hives_captured = _stat_hives_captured;
_local2.nano_killed = _stat_nano_killed;
_local2.nano_released = _stat_nano_released;
return(_local2);
}
}
Symbol 1199 MovieClip [__Packages.MD5] Frame 0
class MD5
{
function MD5 () {
}
static function encrypt(data) {
var _local6;
var _local5;
var _local24;
var _local25;
var _local26;
var _local23;
var _local4;
var _local3;
var _local2;
var _local1;
var _local18 = 7;
var _local16 = 12;
var _local13 = 17;
var _local10 = 22;
var _local17 = 5;
var _local14 = 9;
var _local11 = 14;
var _local8 = 20;
var _local15 = 4;
var _local12 = 11;
var _local9 = 16;
var _local7 = 23;
var _local22 = 6;
var _local21 = 10;
var _local20 = 15;
var _local19 = 21;
data = Utf8Encode(data);
_local6 = ConvertToWordArray(data);
_local4 = 1732584193 /* 0x67452301 */;
_local3 = 4023233417;
_local2 = 2562383102;
_local1 = 271733878 /* 0x10325476 */;
_local5 = 0;
while (_local5 < _local6.length) {
_local24 = _local4;
_local25 = _local3;
_local26 = _local2;
_local23 = _local1;
_local4 = FF(_local4, _local3, _local2, _local1, _local6[_local5 + 0], _local18, 3614090360);
_local1 = FF(_local1, _local4, _local3, _local2, _local6[_local5 + 1], _local16, 3905402710);
_local2 = FF(_local2, _local1, _local4, _local3, _local6[_local5 + 2], _local13, 606105819);
_local3 = FF(_local3, _local2, _local1, _local4, _local6[_local5 + 3], _local10, 3250441966);
_local4 = FF(_local4, _local3, _local2, _local1, _local6[_local5 + 4], _local18, 4118548399);
_local1 = FF(_local1, _local4, _local3, _local2, _local6[_local5 + 5], _local16, 1200080426);
_local2 = FF(_local2, _local1, _local4, _local3, _local6[_local5 + 6], _local13, 2821735955);
_local3 = FF(_local3, _local2, _local1, _local4, _local6[_local5 + 7], _local10, 4249261313);
_local4 = FF(_local4, _local3, _local2, _local1, _local6[_local5 + 8], _local18, 1770035416);
_local1 = FF(_local1, _local4, _local3, _local2, _local6[_local5 + 9], _local16, 2336552879);
_local2 = FF(_local2, _local1, _local4, _local3, _local6[_local5 + 10], _local13, 4294925233);
_local3 = FF(_local3, _local2, _local1, _local4, _local6[_local5 + 11], _local10, 2304563134);
_local4 = FF(_local4, _local3, _local2, _local1, _local6[_local5 + 12], _local18, 1804603682);
_local1 = FF(_local1, _local4, _local3, _local2, _local6[_local5 + 13], _local16, 4254626195);
_local2 = FF(_local2, _local1, _local4, _local3, _local6[_local5 + 14], _local13, 2792965006);
_local3 = FF(_local3, _local2, _local1, _local4, _local6[_local5 + 15], _local10, 1236535329);
_local4 = GG(_local4, _local3, _local2, _local1, _local6[_local5 + 1], _local17, 4129170786);
_local1 = GG(_local1, _local4, _local3, _local2, _local6[_local5 + 6], _local14, 3225465664);
_local2 = GG(_local2, _local1, _local4, _local3, _local6[_local5 + 11], _local11, 643717713);
_local3 = GG(_local3, _local2, _local1, _local4, _local6[_local5 + 0], _local8, 3921069994);
_local4 = GG(_local4, _local3, _local2, _local1, _local6[_local5 + 5], _local17, 3593408605);
_local1 = GG(_local1, _local4, _local3, _local2, _local6[_local5 + 10], _local14, 38016083);
_local2 = GG(_local2, _local1, _local4, _local3, _local6[_local5 + 15], _local11, 3634488961);
_local3 = GG(_local3, _local2, _local1, _local4, _local6[_local5 + 4], _local8, 3889429448);
_local4 = GG(_local4, _local3, _local2, _local1, _local6[_local5 + 9], _local17, 568446438);
_local1 = GG(_local1, _local4, _local3, _local2, _local6[_local5 + 14], _local14, 3275163606);
_local2 = GG(_local2, _local1, _local4, _local3, _local6[_local5 + 3], _local11, 4107603335);
_local3 = GG(_local3, _local2, _local1, _local4, _local6[_local5 + 8], _local8, 1163531501);
_local4 = GG(_local4, _local3, _local2, _local1, _local6[_local5 + 13], _local17, 2850285829);
_local1 = GG(_local1, _local4, _local3, _local2, _local6[_local5 + 2], _local14, 4243563512);
_local2 = GG(_local2, _local1, _local4, _local3, _local6[_local5 + 7], _local11, 1735328473);
_local3 = GG(_local3, _local2, _local1, _local4, _local6[_local5 + 12], _local8, 2368359562);
_local4 = HH(_local4, _local3, _local2, _local1, _local6[_local5 + 5], _local15, 4294588738);
_local1 = HH(_local1, _local4, _local3, _local2, _local6[_local5 + 8], _local12, 2272392833);
_local2 = HH(_local2, _local1, _local4, _local3, _local6[_local5 + 11], _local9, 1839030562);
_local3 = HH(_local3, _local2, _local1, _local4, _local6[_local5 + 14], _local7, 4259657740);
_local4 = HH(_local4, _local3, _local2, _local1, _local6[_local5 + 1], _local15, 2763975236);
_local1 = HH(_local1, _local4, _local3, _local2, _local6[_local5 + 4], _local12, 1272893353);
_local2 = HH(_local2, _local1, _local4, _local3, _local6[_local5 + 7], _local9, 4139469664);
_local3 = HH(_local3, _local2, _local1, _local4, _local6[_local5 + 10], _local7, 3200236656);
_local4 = HH(_local4, _local3, _local2, _local1, _local6[_local5 + 13], _local15, 681279174);
_local1 = HH(_local1, _local4, _local3, _local2, _local6[_local5 + 0], _local12, 3936430074);
_local2 = HH(_local2, _local1, _local4, _local3, _local6[_local5 + 3], _local9, 3572445317);
_local3 = HH(_local3, _local2, _local1, _local4, _local6[_local5 + 6], _local7, 76029189);
_local4 = HH(_local4, _local3, _local2, _local1, _local6[_local5 + 9], _local15, 3654602809);
_local1 = HH(_local1, _local4, _local3, _local2, _local6[_local5 + 12], _local12, 3873151461);
_local2 = HH(_local2, _local1, _local4, _local3, _local6[_local5 + 15], _local9, 530742520);
_local3 = HH(_local3, _local2, _local1, _local4, _local6[_local5 + 2], _local7, 3299628645);
_local4 = II(_local4, _local3, _local2, _local1, _local6[_local5 + 0], _local22, 4096336452);
_local1 = II(_local1, _local4, _local3, _local2, _local6[_local5 + 7], _local21, 1126891415);
_local2 = II(_local2, _local1, _local4, _local3, _local6[_local5 + 14], _local20, 2878612391);
_local3 = II(_local3, _local2, _local1, _local4, _local6[_local5 + 5], _local19, 4237533241);
_local4 = II(_local4, _local3, _local2, _local1, _local6[_local5 + 12], _local22, 1700485571);
_local1 = II(_local1, _local4, _local3, _local2, _local6[_local5 + 3], _local21, 2399980690);
_local2 = II(_local2, _local1, _local4, _local3, _local6[_local5 + 10], _local20, 4293915773);
_local3 = II(_local3, _local2, _local1, _local4, _local6[_local5 + 1], _local19, 2240044497);
_local4 = II(_local4, _local3, _local2, _local1, _local6[_local5 + 8], _local22, 1873313359);
_local1 = II(_local1, _local4, _local3, _local2, _local6[_local5 + 15], _local21, 4264355552);
_local2 = II(_local2, _local1, _local4, _local3, _local6[_local5 + 6], _local20, 2734768916);
_local3 = II(_local3, _local2, _local1, _local4, _local6[_local5 + 13], _local19, 1309151649);
_local4 = II(_local4, _local3, _local2, _local1, _local6[_local5 + 4], _local22, 4149444226);
_local1 = II(_local1, _local4, _local3, _local2, _local6[_local5 + 11], _local21, 3174756917);
_local2 = II(_local2, _local1, _local4, _local3, _local6[_local5 + 2], _local20, 718787259);
_local3 = II(_local3, _local2, _local1, _local4, _local6[_local5 + 9], _local19, 3951481745);
_local4 = AddUnsigned(_local4, _local24);
_local3 = AddUnsigned(_local3, _local25);
_local2 = AddUnsigned(_local2, _local26);
_local1 = AddUnsigned(_local1, _local23);
_local5 = _local5 + 16;
}
var _local27 = ((WordToHex(_local4) + WordToHex(_local3)) + WordToHex(_local2)) + WordToHex(_local1);
return(_local27.toLowerCase());
}
static function RotateLeft(lValue, iShiftBits) {
return((lValue << iShiftBits) | (lValue >>> (32 - iShiftBits)));
}
static function AddUnsigned(lX, lY) {
var _local5;
var _local4;
var _local3;
var _local2;
var _local1;
_local3 = lX & 2147483648;
_local2 = lY & 2147483648;
_local5 = lX & 1073741824;
_local4 = lY & 1073741824;
_local1 = (lX & 1073741823) + (lY & 1073741823);
if (_local5 & _local4) {
return(((_local1 ^ 2147483648) ^ _local3) ^ _local2);
}
if (_local5 | _local4) {
if (_local1 & 1073741824) {
return(((_local1 ^ 3221225472) ^ _local3) ^ _local2);
}
return(((_local1 ^ 1073741824) ^ _local3) ^ _local2);
}
return((_local1 ^ _local3) ^ _local2);
}
static function F(x, y, z) {
return((x & y) | ((~x) & z));
}
static function G(x, y, z) {
return((x & z) | (y & (~z)));
}
static function H(x, y, z) {
return((x ^ y) ^ z);
}
static function I(x, y, z) {
return(y ^ (x | (~z)));
}
static function FF(a, b, c, d, x, s, ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac));
return(AddUnsigned(RotateLeft(a, s), b));
}
static function GG(a, b, c, d, x, s, ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac));
return(AddUnsigned(RotateLeft(a, s), b));
}
static function HH(a, b, c, d, x, s, ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac));
return(AddUnsigned(RotateLeft(a, s), b));
}
static function II(a, b, c, d, x, s, ac) {
a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac));
return(AddUnsigned(RotateLeft(a, s), b));
}
static function ConvertToWordArray(string) {
var _local2;
var _local5 = string.length;
var _local8 = _local5 + 8;
var _local9 = (_local8 - (_local8 % 64)) / 64;
var _local7 = (_local9 + 1) * 16;
var _local3 = new Array(_local7 - 1);
var _local4 = 0;
var _local1 = 0;
while (_local1 < _local5) {
_local2 = (_local1 - (_local1 % 4)) / 4;
_local4 = (_local1 % 4) * 8;
_local3[_local2] = _local3[_local2] | (string.charCodeAt(_local1) << _local4);
_local1++;
}
_local2 = (_local1 - (_local1 % 4)) / 4;
_local4 = (_local1 % 4) * 8;
_local3[_local2] = _local3[_local2] | (128 << _local4);
_local3[_local7 - 2] = _local5 << 3;
_local3[_local7 - 1] = _local5 >>> 29;
return(_local3);
}
static function WordToHex(lValue) {
var _local3 = "";
var _local2 = "";
var _local4;
var _local1;
_local1 = 0;
while (_local1 <= 3) {
_local4 = (lValue >>> (_local1 * 8)) & 255;
_local2 = "0" + _local4.toString(16);
_local3 = _local3 + _local2.substr(_local2.length - 2, 2);
_local1++;
}
return(_local3);
}
static function Utf8Encode(string) {
var _local2 = "";
var _local3 = 0;
while (_local3 < string.length) {
var _local1 = string.charCodeAt(_local3);
if (_local1 < 128) {
_local2 = _local2 + String.fromCharCode(_local1);
} else if ((_local1 > 127) && (_local1 < 2048)) {
_local2 = _local2 + String.fromCharCode((_local1 >> 6) | 192);
_local2 = _local2 + String.fromCharCode((_local1 & 63) | 128);
} else {
_local2 = _local2 + String.fromCharCode((_local1 >> 12) | 224);
_local2 = _local2 + String.fromCharCode(((_local1 >> 6) & 63) | 128);
_local2 = _local2 + String.fromCharCode((_local1 & 63) | 128);
}
_local3++;
}
return(_local2);
}
}
Symbol 1200 MovieClip [__Packages.LZW] Frame 0
class LZW
{
function LZW () {
}
static function compress(str) {
var _local3 = new Array();
var _local9 = (xmlsafe ? 5 : 0);
var _local4 = 0;
while (_local4 < 256) {
_local3[String.fromCharCode(_local4)] = _local4;
_local4++;
}
if (xmlsafe) {
_local3["<"] = 256;
_local3[">"] = 257;
_local3["&"] = 258;
_local3["\""] = 259;
_local3["'"] = 260;
}
var _local6 = "";
var _local10 = str;
var _local7 = _local10.split("");
var _local8 = _local7.length;
var _local5 = 256 + _local9;
var _local2 = "";
_local4 = 0;
while (_local4 <= _local8) {
var _local1 = _local7[_local4];
if (!(_local3[_local2 + _local1] === undefined)) {
_local2 = _local2 + _local1;
} else {
_local6 = _local6 + String.fromCharCode(_local3[_local2]);
_local3[_local2 + _local1] = _local5;
_local5++;
_local2 = _local1;
}
_local4++;
}
return(_local6);
}
static function decompress(str) {
var _local4 = new Array();
var _local10 = (xmlsafe ? 5 : 0);
var _local6 = 0;
while (_local6 < 256) {
var _local9 = String.fromCharCode(_local6);
_local4[_local6] = _local9;
_local6++;
}
if (xmlsafe) {
_local4[256] = "<";
_local4[257] = ">";
_local4[258] = "&";
_local4[259] = "\"";
_local4[260] = "'";
}
var _local11 = str;
var _local13 = _local11.split("");
var _local12 = _local13.length;
var _local7 = 256 + _local10;
var _local1 = "";
var _local2 = "";
var _local8 = "";
_local6 = 0;
while (_local6 < _local12) {
var _local5 = _local11.charCodeAt(_local6);
var _local3 = _local4[_local5];
if (_local1 == "") {
_local1 = _local3;
_local8 = _local8 + _local3;
} else if (_local5 <= (255 + _local10)) {
_local8 = _local8 + _local3;
_local2 = _local1 + _local3;
_local4[_local7] = _local2;
_local7++;
_local1 = _local3;
} else {
_local2 = _local4[_local5];
if (_local2 == undefined) {
_local2 = _local1 + _local1.slice(0, 1);
}
_local8 = _local8 + _local2;
_local4[_local7] = _local1 + _local2.slice(0, 1);
_local7++;
_local1 = _local2;
}
_local6++;
}
return(_local8);
}
static function compress_fp6(str) {
var _local3 = new Array();
var _local10 = (xmlsafe ? 5 : 0);
var _local4 = 0;
while (_local4 < 256) {
_local3[String(_local4)] = _local4;
_local4++;
}
if (xmlsafe) {
var _local14 = String(new String("<").charCodeAt(0));
var _local11 = String(new String(">").charCodeAt(0));
var _local13 = String(new String("&").charCodeAt(0));
var _local15 = String(new String("\"").charCodeAt(0));
var _local12 = String(new String("'").charCodeAt(0));
_local3[_local14] = 256;
_local3[_local11] = 257;
_local3[_local13] = 258;
_local3[_local15] = 259;
_local3[_local12] = 260;
}
var _local7 = "";
var _local16 = str;
var _local8 = _local16.split("");
var _local9 = _local8.length;
var _local6 = 256 + _local10;
var _local1 = new Array();
_local4 = 0;
while (_local4 <= _local9) {
var _local2 = _local8[_local4];
if (_local1.length == 0) {
var _local5 = String(_local2.charCodeAt(0));
} else {
var _local5 = (_local1.join("-") + "-") + String(_local2.charCodeAt(0));
}
if (!(_local3[_local5] === undefined)) {
_local1.push(_local2.charCodeAt(0));
} else {
_local7 = _local7 + String.fromCharCode(_local3[_local1.join("-")]);
_local3[_local5] = _local6;
_local6++;
_local1 = new Array();
_local1.push(_local2.charCodeAt(0));
}
_local4++;
}
return(_local7);
}
static var xmlsafe = false;
}
Symbol 312 MovieClip Frame 1
stop();
gotoAndStop(_global.GoTo);
Symbol 315 MovieClip Frame 1
stop();
Logo.onRelease = function () {
_root.open_link(Type);
trace(Type);
};
Instance of Symbol 315 MovieClip in Symbol 316 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
Type = "image";
}
Symbol 319 MovieClip Frame 1
function add_lighting_trace(xy_start, xy_end, size, ttl) {
var _local8 = "e" + gfx_mc.di;
var _local4 = gfx_mc.createEmptyMovieClip(_local8, gfx_mc.di);
gfx_mc.di++;
if (gfx_mc.di > 10) {
gfx_mc.di = 0;
}
_local4.lineStyle(size, 2254557, 60);
_local4.moveTo(xy_start[0], xy_start[1]);
var _local7;
var _local6;
var _local3 = 20;
_local7 = (xy_start[0] + (((xy_end[0] - xy_start[0]) * 1) / 4)) + ((Math.random() - 0.5) * _local3);
_local6 = (xy_start[1] + (((xy_end[1] - xy_start[1]) * 1) / 4)) + ((Math.random() - 0.5) * _local3);
_local4.lineTo(_local7, _local6);
_local7 = (xy_start[0] + (((xy_end[0] - xy_start[0]) * 2) / 4)) + ((Math.random() - 0.5) * _local3);
_local6 = (xy_start[1] + (((xy_end[1] - xy_start[1]) * 2) / 4)) + ((Math.random() - 0.5) * _local3);
_local4.lineTo(_local7, _local6);
_local7 = (xy_start[0] + (((xy_end[0] - xy_start[0]) * 3) / 4)) + ((Math.random() - 0.5) * _local3);
_local6 = (xy_start[1] + (((xy_end[1] - xy_start[1]) * 3) / 4)) + ((Math.random() - 0.5) * _local3);
_local4.lineTo(_local7, _local6);
_local4.lineTo(xy_end[0] + ((Math.random() - 0.5) * _local3), xy_end[1] + ((Math.random() - 0.5) * _local3));
_local4.tts = ttl;
_local4.onEnterFrame = function () {
this.tts--;
this._alpha = this._alpha * 0.9;
if (this.tts < 0) {
this.unloadMovie();
}
};
}
var nd = 100;
var ndd = 0;
var deads = 0;
var e_counter = 0;
this.dtxt.text = deads + "x";
this.tsin = 0;
var gfx_mc = this.createEmptyMovieClip("gfx", 1000);
var l_f1 = (new flash.filters.GlowFilter(2254557, 0.8, 5, 5, 4, 3, false, false));
var l_f2 = (new flash.filters.GlowFilter(2254557, 0.3, 10, 10, 1, 1, false, false));
gfx_mc.filters = [l_f1, l_f2];
gfx_mc.di = 0;
var turns = 0;
this.onEnterFrame = function () {
this.per_mc.dtxt.text = Math.round(this.per * 100) + "%";
this.per_mc._xscale = 100 * Math.sin(this.tsin);
this.tsin = this.tsin + 0.08;
var _local2 = 20;
var _local3 = random(24);
turns++;
if ((turns % 2) === 0) {
add_lighting_trace([_local2, 560 + _local3], [(720 * this.per) - (_local2 * 2), 560 + _local3], 2, 4);
} else {
add_lighting_trace([(720 * this.per) - (_local2 * 2), 560 + _local3], [_local2, 560 + _local3], 2, 4);
}
};
Instance of Symbol 315 MovieClip in Symbol 325 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
Type = "Intro";
}
Instance of Symbol 315 MovieClip in Symbol 325 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
Type = "Intro";
}
Instance of Symbol 315 MovieClip in Symbol 325 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
Type = "Intro";
}
Instance of Symbol 315 MovieClip in Symbol 325 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
Type = "Intro";
}
Instance of Symbol 315 MovieClip in Symbol 325 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
Type = "Intro";
}
Symbol 335 MovieClip Frame 1
this._alpha = 0;
this.onRollOver = function () {
this._parent.addESplash(8917265, false);
};
this.onRelease = function () {
getURL ("http://www.elite-games.net/in.php?id=30", "_blank");
};
Symbol 338 MovieClip Frame 1
if (_global.options_lock_to_eg_net != true) {
this._visible = false;
}
Symbol 362 MovieClip Frame 1
function check_sound() {
this.addHint();
if (_global.options_playsounds) {
this.gotoAndStop(1);
this.addHint(_root.get_txt("sound_on"));
} else {
this.gotoAndStop(2);
this.addHint(_root.get_txt("sound_off"));
}
}
this.onRollOver = function () {
this.add_splash();
};
this.onRelease = function () {
_root.options_switch_sound();
if (_global.options_playsounds) {
_root.play_music("play");
_root.options_sounds_set(100);
_global.options_playsounds = true;
_global.options_playmusic = true;
} else {
_root.play_music("stop");
_root.options_sounds_set(0);
_global.options_playsounds = false;
_global.options_playmusic = false;
}
check_sound();
};
check_sound();
Symbol 367 MovieClip Frame 1
if (_global.options_remove_external_url) {
this._visible = false;
this.unloadMovie();
}
this.onRelease = function () {
if (_global.options_lock_to_eg_net) {
getURL ("http://www.elite-games.net/free-games.html", "_blank");
} else {
getURL ("http://www.play4all.net/index.php?action=downloadgames", "_blank");
}
};
Symbol 370 MovieClip Frame 1
if (_global.options_remove_external_url || (_global.options_lock_to_eg_net)) {
this._visible = false;
return(false);
}
this.onRelease = function () {
_root.urlMoreGames();
};
this.onRollOver = function () {
this.addESplash(0, false);
};
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 427 MovieClip Frame 9
this.gotoAndStop(1);
Symbol 430 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 477 MovieClip Frame 9
this.gotoAndStop(1);
Symbol 478 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 1
this.gotoAndStop(_global.options_game_speed + 1);
Symbol 551 MovieClip Frame 1
this.gotoAndStop(_root.QUALITY_ID + 1);
this.onRelease = function () {
_root.QUALITY_ID++;
if (_root.QUALITY_ID > 2) {
_root.QUALITY_ID = 0;
}
_root._quality = _root.QUALITY_ARR[_root.QUALITY_ID];
this.gotoAndStop(_root.QUALITY_ID + 1);
if (_root.QUALITY_ID > 0) {
_global.game.addEnvObjs();
} else {
_global.game._CEnvObjs_deini();
}
};
Symbol 569 MovieClip Frame 1
this._rotation = random(360);
Instance of Symbol 315 MovieClip in Symbol 570 MovieClip [game_face_scr] Frame 1
//component parameters
onClipEvent (construct) {
Type = "image";
}
Symbol 574 MovieClip [z_exps14] Frame 20
this.unloadMovie();
Symbol 582 MovieClip [z_exps15] Frame 47
this.unloadMovie();
Instance of Symbol 315 MovieClip in Symbol 608 MovieClip [help_menu_scr] Frame 1
//component parameters
onClipEvent (construct) {
Type = "image";
}
Symbol 634 MovieClip Frame 7
this._parent.unloadMovie();
Symbol 647 MovieClip Frame 11
this._parent.unloadMovie();
Symbol 664 MovieClip Frame 8
this._parent.unloadMovie();
Symbol 680 MovieClip Frame 1
stop();
var main_mc = this;
main_mc.pages_dtxt.text = (main_mc._currentframe + "/") + main_mc._totalframes;
main_mc.prev_mc.make_me_but();
main_mc.next_mc.make_me_but();
main_mc.prev_mc.act = function () {
var _local1 = main_mc._currentframe - 1;
if (_local1 == 0) {
_local1 = main_mc._totalframes;
}
main_mc.gotoAndStop(_local1);
main_mc.pages_dtxt.text = (main_mc._currentframe + "/") + main_mc._totalframes;
};
main_mc.next_mc.act = function () {
var _local1 = main_mc._currentframe + 1;
if (_local1 == (main_mc._totalframes + 1)) {
_local1 = 1;
}
main_mc.gotoAndStop(_local1);
main_mc.pages_dtxt.text = (main_mc._currentframe + "/") + main_mc._totalframes;
};
tit_dtxt.text = _root.get_txt("Help");
ts_mc = this.createEmptyMovieClip("ts", 0);
dtxt.text = "";
dtxt.text = dtxt.text + _root.get_txt("tutorial_text_1");
dtxt.text = dtxt.text + "\r";
dtxt.text = dtxt.text + _root.get_txt("tutorial_text_2");
dtxt.text = dtxt.text + "\r";
dtxt.text = dtxt.text + _root.get_txt("tutorial_text_3");
dtxt.text = dtxt.text + "\r";
Symbol 680 MovieClip Frame 2
tit_dtxt.text = _root.get_txt("Credits");
ts_mc = this.createEmptyMovieClip("ts", 0);
Symbol 686 MovieClip Frame 13
stop();
Symbol 690 MovieClip [butAniFont] Frame 2
var dh = -5;
l_mc._x = -((dtxt._width / 2) + dh);
r_mc._x = (dtxt._width / 2) + dh;
l_mc.addESplash(11154227, false);
r_mc.addESplash(11154227, false);
Symbol 752 MovieClip [road_start] Frame 60
this.unloadMovie();
Symbol 755 MovieClip [road_end] Frame 60
this.unloadMovie();
Symbol 771 MovieClip Frame 1
this.onRelease = function () {
_root.urlEFPakistan();
};
this.onRollOver = function () {
this.addESplash(4473924, false);
};
Symbol 775 MovieClip Frame 1
this.onRelease = function () {
_root.urlEFConquest();
};
this.onRollOver = function () {
this.addESplash(4473924, false);
};
Symbol 779 MovieClip Frame 1
this.onRelease = function () {
_root.urlEFCloneWars();
};
this.onRollOver = function () {
this.addESplash(4473924, false);
};
Symbol 783 MovieClip Frame 1
this.onRelease = function () {
_root.urlEFWarfare();
};
this.onRollOver = function () {
this.addESplash(4473924, false);
};
Symbol 791 MovieClip [game_map1_bg] Frame 1
stop();
Instance of Symbol 315 MovieClip in Symbol 805 MovieClip [scirmish_scr] Frame 1
//component parameters
onClipEvent (construct) {
Type = "image";
}
Symbol 868 MovieClip Frame 28
this._parent.unloadMovie();
Instance of Symbol 315 MovieClip in Symbol 876 MovieClip [end_map_scr] Frame 1
//component parameters
onClipEvent (construct) {
Type = "image";
}
Symbol 877 MovieClip Frame 1
stop();
Symbol 886 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._txscale == this._xscale) {
return(false);
}
if (this._txscale == undefined) {
this._txscale = this._xscale;
}
this._xscale = this._xscale + ((this._txscale - this._xscale) / 3);
if (Math.abs(this._txscale - this._xscale) < 1) {
this._xscale = this._txscale;
}
};
Symbol 889 MovieClip Frame 1
this.ht.onRollOver = function () {
this._parent._parent.dtxt.text = this._parent._stip;
};
Symbol 891 MovieClip Frame 1
this.ht.onRollOver = function () {
this._parent._parent.dtxt.text = this._parent._stip;
};
Symbol 959 MovieClip [_sfx.wav] Frame 1
stop();
Symbol 977 MovieClip [_msf] Frame 1
stop();
Symbol 981 MovieClip [ico_save_mc] Frame 1
this._visible = true;
Symbol 981 MovieClip [ico_save_mc] Frame 40
this._visible = false;
stop();
Instance of Symbol 315 MovieClip in Symbol 1023 MovieClip [game_editor_face_scr] Frame 1
//component parameters
onClipEvent (construct) {
Type = "image";
}
Symbol 1025 MovieClip Frame 10
stop();
Symbol 1029 MovieClip Frame 10
stop();
Symbol 1033 MovieClip Frame 1
this.onRelease = function () {
_root.play();
};
Symbol 1034 MovieClip Frame 10
stop();
Symbol 1050 MovieClip Frame 46
stop();
Symbol 1051 MovieClip Frame 1
if (_global.options_show_intro) {
_root.stop();
this.onRelease = function () {
_root.urlMoreGames();
};
} else {
this._visible = false;
this.unloadMovie();
}
Instance of Symbol 1036 MovieClip in Symbol 1051 MovieClip Frame 51
on (release) {
getURL ("http://play4all.net/", "_blank");
}
Instance of Symbol 1036 MovieClip in Symbol 1051 MovieClip Frame 151
on (release) {
getURL ("http://www.play4all.net", "_blank");
}
Symbol 1051 MovieClip Frame 185
_root.play();