Frame 1
stop();
Instance of Symbol 421 MovieClip [TextInput] in Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("69a22380", this, 10301, true);
conteneurSound.loadMovie("sound_momentum.swf", 1000);
_global.frameActu = "login";
function get_up_and_run(envoyeur) {
_root["aso#68174"][envoyeur].getupAndRun();
}
function aso#82515(mobile, DeltaT) {
var _local1 = mobile;
t = _local1.t;
if (_local1.tdepart == 0) {
_local1.tdepart = t;
}
_local1["aso#87533"] = _local1["aso#56196"] + (_root.C2 * _local1.Et);
_local1.tnext = t + (DeltaT * 1000);
_local1["aso#06892"] = 0;
_local1.Enext = 0;
_local1.Eold = _local1.Et;
_local1.told = t;
_local1.DeltaT = DeltaT;
_local1["aso#38229"] = _local1["aso#56196"];
_local1["aso#20262"] = _local1["aso#69566"];
reck_params = new Array();
reck_params = aso#02295(_local1["aso#38229"], _local1["aso#87533"], _local1["aso#20262"], _local1["aso#06892"], _local1.DeltaT);
_local1.Aacc = reck_params[0];
_local1.Bacc = reck_params[1];
_local1.Cacc = reck_params[2];
_local1.Dacc = reck_params[3];
}
function aso#51178(mobile, DeltaT) {
var _local1 = mobile;
var _local2 = DeltaT;
t = _local1.t;
_local1["aso#50207"] = _local1["aso#18870"] + ((0.5 * (_local1["aso#81544"] + _root["aso#47002"])) * _local2);
_local1["aso#75555"] = _root["aso#47002"];
_local1.told = t;
_local1.t = t;
_local1.DeltaT = _local2;
_local1.tnext = _local1.told + (_local2 * 1000);
_local1["aso#32240"] = _local1["aso#18870"];
_local1["aso#88925"] = _local1["aso#81544"];
reck_params = new Array();
reck_params = aso#02295(_local1["aso#32240"], _local1["aso#50207"], _local1["aso#88925"], _local1["aso#75555"], _local1.DeltaT);
_local1.Afond = reck_params[0];
_local1.Bfond = reck_params[1];
_local1.Cfond = reck_params[2];
_local1.Dfond = reck_params[3];
if (_local1._name == "le_mobile") {
}
}
function aso#25830(mobile) {
var _local1 = mobile;
DeltaTarr = (_local1.DeltaT * (_root["aso#12881"] - _local1["aso#30848"])) / (_local1["aso#99511"] - _local1["aso#30848"]);
ratio = DeltaTarr / _local1.DeltaT;
_local1.DeltaT = DeltaTarr;
_local1.tnext = _local1.t + (_local1.DeltaT * 1000);
_local1.told = _local1.t;
_local1["aso#87533"] = ((_local1["aso#87533"] - _local1["aso#38229"]) * ratio) + _local1["aso#38229"];
_local1["aso#38229"] = _local1["aso#56196"];
_local1["aso#06892"] = ((2 * (_local1["aso#87533"] - _local1["aso#38229"])) / _local1.DeltaT) - _local1["aso#69566"];
_local1["aso#20262"] = _local1["aso#69566"];
_local1["aso#50207"] = ((_local1["aso#50207"] - _local1["aso#32240"]) * ratio) + _local1["aso#32240"];
_local1["aso#32240"] = _local1["aso#18870"];
_local1["aso#88925"] = _local1["aso#81544"];
_local1["aso#75555"] = ((2 * (_local1["aso#50207"] - _local1["aso#18870"])) / _local1.DeltaT) - _local1["aso#81544"];
_local1["aso#99511"] = aso#12881;
_local1["aso#30848"] = _local1["aso#56196"] + _local1["aso#18870"];
_local1["aso#00903"] = _local1["aso#69566"] + _local1["aso#81544"];
_local1["aso#24859"] = _local1["aso#06892"] + _local1["aso#75555"];
_local1["aso#51599"] = _local1["aso#38229"] + _local1["aso#32240"];
_local1["aso#14273"] = _local1["aso#20262"] + _local1["aso#88925"];
_local1.tarrival = _local1.tnext;
reck_params = new Array();
reck_params = aso#02295(_local1["aso#38229"], _local1["aso#87533"], _local1["aso#20262"], _local1["aso#06892"], _local1.DeltaT);
_local1.Aacc = reck_params[0];
_local1.Bacc = reck_params[1];
_local1.Cacc = reck_params[2];
_local1.Dacc = reck_params[3];
reck_params = new Array();
reck_params = aso#02295(_local1["aso#32240"], _local1["aso#50207"], _local1["aso#88925"], _local1["aso#75555"], _local1.DeltaT);
_local1.Afond = reck_params[0];
_local1.Bfond = reck_params[1];
_local1.Cfond = reck_params[2];
_local1.Dfond = reck_params[3];
}
function aso#35024(mobile, DeltaT) {
var _local1 = mobile;
aso#82515(_local1, DeltaT);
aso#51178(_local1, DeltaT);
_local1["aso#99511"] = _local1["aso#87533"] + _local1["aso#50207"];
_local1["aso#51599"] = _local1["aso#38229"] + _local1["aso#32240"];
_local1["aso#30848"] = _local1["aso#56196"] + _local1["aso#18870"];
_local1["aso#24859"] = _local1["aso#06892"] + _local1["aso#75555"];
_local1["aso#14273"] = _local1["aso#20262"] + _local1["aso#88925"];
_local1["aso#00903"] = _local1["aso#69566"] + _local1["aso#81544"];
if (_local1["aso#99511"] >= (_root["aso#12881"] - _root.Dmin)) {
aso#25830(_local1);
}
}
function aso#78339(mobile) {
var _local2 = _root;
var _local3 = mobile;
if ((_local3["aso#99511"] >= (_local2["aso#12881"] * 0.999)) and (_local3["aso#99511"] <= (_local2["aso#12881"] * 1.001))) {
if (_local3.tarrival > 0) {
temps_total = _local3.tarrival - _local3.tdepart;
} else {
temps_total = _local3.tnext - _local3.tdepart;
}
} else if ((_local3["aso#99511"] >= (_local2["aso#12881"] * 1.001)) and (_local3["aso#30848"] >= _local2["aso#12881"])) {
if (_local3.tarrival > 0) {
temps_total = _local3.tarrival - _local3.tdepart;
} else {
temps_total = _local3.t - _local3.tdepart;
}
} else if (_local3.tarrival > 0) {
temps_total = _local3.tarrival - _local3.tdepart;
} else {
temps_total = _local3.tnext - _local3.tdepart;
}
this.isInCLassement = false;
_local2.classement = _local2.classement + ((((("\n[" + _local2.username) + "] ") + _local3._name) + " : ") + temps_total);
var _local1 = 0;
while (_local1 < _local2["aso#93522"].length) {
if (_local2["aso#93522"][_local1].nom == _local3._name) {
this.isInCLassement = true;
}
_local1++;
}
if (this.isInCLassement != true) {
_local2["aso#93522"].push({nom:_local3._name, temps:temps_total});
this.isInCLassement = false;
}
if ((_local2.clipPopupPodium0 == null) or (_local2.clipPopupPodium0._visible != true)) {
_local2.attachMovie("clipPopupPodium", "clipPopupPodium0", 15);
_local2.clipPopupPodium0._x = 492;
_local2.clipPopupPodium0._y = 190;
_local2.clipPopupPodium0._visible = false;
}
_local2.clipPopupPodium0.classement = ":::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::";
_local2["aso#93522"] = sortC(_local2["aso#93522"]);
_local1 = 0;
while (_local1 < _local2["aso#93522"].length) {
this.chrono = _local2.calcul_chrono(Number(_local2["aso#93522"][_local1].temps / 1000));
var terminaison = _global.TXT_termination;
if (_local1 == 0) {
var terminaison = _global.TXT_termination_single;
_local2["aso#68174"][_local2["aso#93522"][_local1].nom].endPosition = "first";
} else if (_local1 == 1) {
_local2["aso#68174"][_local2["aso#93522"][_local1].nom].endPosition = "second";
} else if (_local1 == 2) {
_local2["aso#68174"][_local2["aso#93522"][_local1].nom].endPosition = "third";
} else {
_local2["aso#68174"][_local2["aso#93522"][_local1].nom].endPosition = "loser";
}
_local2.clipPopupPodium0.classement = _local2.clipPopupPodium0.classement + (((((((newline + Number(_local1 + 1)) + terminaison) + " : ") + _local2["aso#93522"][_local1].nom) + "\n \u00A4 ") + this.chrono) + newline);
_local1++;
}
}
function aso#54383() {
t_ini = new Date().getTime();
acceleration_factor = 0.3;
params = new Array();
_root.race_started = "aso#36837";
var master_name = _root.username;
if (_root.sound_enabled == "aso#36837") {
_root.sonMus.attachSound("run_music");
_root.sonMus.start(0, 1500);
}
_root["aso#93522"] = new Array();
_root.aso#21654(_root["aso#42826"]["aso#74163"][master_name], t_ini);
_root["aso#42826"]["aso#74163"][master_name].is_coureur_maitre = "aso#36837";
var i = 0;
while (i < _root["aso#82936"].length) {
mobilToStart = _root["aso#82936"][i];
if (mobilToStart != master_name) {
_root.aso#21654(_root["aso#42826"]["aso#74163"][mobilToStart], t_ini);
}
mobilToStart = _root["aso#82936"][i];
delete eval (("_root.aso#68174." + mobilToStart) + ".onEnterFrame");
_root["aso#68174"][mobilToStart].gotoAndStop("runVitesse1");
i++;
}
}
function aso#02295(aso#51599, aso#99511, aso#14273, aso#24859, DeltaT) {
x0 = aso#51599;
x1 = aso#51599 + ((aso#14273 * DeltaT) / 3);
x2 = aso#99511 - ((aso#24859 * DeltaT) / 3);
x3 = aso#99511;
A = ((x3 - (3 * x2)) + (3 * x1)) - x0;
B = ((3 * x2) - (6 * x1)) + (3 * x0);
C = (3 * x1) - (3 * x0);
D = x0;
result = new Array(A, B, C, D);
return(result);
}
function aso#09676(mobile, Tpenalite, phase) {
var _local1 = mobile;
var _local2 = _root;
var _local3 = phase;
var record_time = getTimer();
var record_action = new Array();
if (_local3 == "chute") {
} else if (_local3 == "arrivee") {
_local2.sonMus.stop("run_music");
}
t = _local1.t;
_local1["aso#32240"] = _local1["aso#18870"];
_local1["aso#88925"] = _local1["aso#81544"];
_local1["aso#50207"] = _local1["aso#18870"] + ((0.5 * _local1["aso#81544"]) * Tpenalite);
_local1["aso#75555"] = 0;
_local1.told = t;
_local1.DeltaT = Tpenalite;
_local1.tnext = _local1.told + (_local1.DeltaT * 1000);
reck_params = new Array();
reck_params = aso#02295(_local1["aso#32240"], _local1["aso#50207"], _local1["aso#88925"], _local1["aso#75555"], _local1.DeltaT);
_local1.Afond = reck_params[0];
_local1.Bfond = reck_params[1];
_local1.Cfond = reck_params[2];
_local1.Dfond = reck_params[3];
_local1["aso#38229"] = _local1["aso#56196"];
_local1["aso#20262"] = _local1["aso#69566"];
_local1.Eold = _local1.Et;
_local1["aso#87533"] = _local1["aso#56196"] + ((0.5 * _local1["aso#69566"]) * Tpenalite);
_local1["aso#06892"] = 0;
_local1["aso#99511"] = _local1["aso#87533"] + _local1["aso#50207"];
_local1["aso#30848"] = _local1["aso#56196"] + _local1["aso#18870"];
_local1["aso#24859"] = _local1["aso#06892"] + _local1["aso#75555"];
_local1["aso#00903"] = _local1["aso#69566"] + _local1["aso#81544"];
_local1.Enext = Math.max(_local1.Et - ((1 / _local2.C2) * (_local1["aso#87533"] - _local1["aso#56196"])), 0);
reck_params = new Array();
reck_params = aso#02295(_local1["aso#38229"], _local1["aso#87533"], _local1["aso#20262"], _local1["aso#06892"], _local1.DeltaT);
_local1.Aacc = reck_params[0];
_local1.Bacc = reck_params[1];
_local1.Cacc = reck_params[2];
_local1.Dacc = reck_params[3];
if (_local3 == "arrivee") {
_local2["aso#68174"][_local1._name].gotoAndStop("stop");
_local2.clipPopupPodium0._visible = true;
if (_local1.is_coureur_maitre == "aso#36837") {
rank = 1;
i = 0;
while (i < _local2["aso#93522"].length) {
if (_local2["aso#93522"][i].nom == _local1._name) {
rank = i + 1;
}
i++;
}
aso#07863(rank);
menuResults(aso#33211(rank));
_local2.aso#70537();
}
_local2.raceResultsSent = "aso#36837";
}
}
function aso#97698(mobile, t) {
aso#94493(mobile, t);
}
function aso#94493(mobile, t) {
var _local1 = mobile;
var _local2 = _root;
var _local3 = t;
DeltaTcheckpt = (_local3 - _local1.told) / 1000;
if ((_local3 < _local1.tnext) && (_local3 >= _local1.told)) {
DeltaTspline = DeltaTcheckpt / _local1.DeltaT;
Set("aso#65940", _local1["aso#56196"]);
_local1["aso#56196"] = (((_local1.Aacc * Math.pow(DeltaTspline, 3)) + ((_local1.Bacc * DeltaTspline) * DeltaTspline)) + (_local1.Cacc * DeltaTspline)) + _local1.Dacc;
_local1["aso#69566"] = (1 / _local1.DeltaT) * (((((3 * _local1.Aacc) * DeltaTspline) * DeltaTspline) + ((2 * _local1.Bacc) * DeltaTspline)) + _local1.Cacc);
_local1["aso#18870"] = (((_local1.Afond * Math.pow(DeltaTspline, 3)) + ((_local1.Bfond * DeltaTspline) * DeltaTspline)) + (_local1.Cfond * DeltaTspline)) + _local1.Dfond;
_local1["aso#81544"] = (1 / _local1.DeltaT) * (((((3 * _local1.Afond) * DeltaTspline) * DeltaTspline) + ((2 * _local1.Bfond) * DeltaTspline)) + _local1.Cfond);
_local1.t = _local3;
_local1["aso#30848"] = _local1["aso#56196"] + _local1["aso#18870"];
_local1["aso#00903"] = _local1["aso#69566"] + _local1["aso#81544"];
if (_local1.charge_energy == "aso#36837") {
DeltaX = Math.max(_local1["aso#56196"] - aso#65940, 0);
_local2.facture_energy(_local1, DeltaX);
}
if (_local1["aso#30848"] >= (_local2["aso#12881"] - _local2.Dmin)) {
if (_local1.passed_virtual_line != "aso#36837") {
_local1.passed_virtual_line = "aso#36837";
if (_local1._name == _local2.username) {
_local2.aso#72350("noQuiz");
}
}
if (((_local1.in_classement != "aso#36837") and (_local1["aso#30848"] >= (_local2["aso#12881"] - (_local2.Dmin / 4)))) and (_local1["aso#99511"] >= (_local2["aso#12881"] * 0.9999))) {
_local2.aso#78339(_local1);
_local1.in_classement = "aso#36837";
}
}
} else {
DeltaT = (_local3 - _local1.t) / 1000;
_local1["aso#81544"] = _local1["aso#75555"];
_local1["aso#69566"] = _local1["aso#06892"];
_local1["aso#18870"] = _local1["aso#18870"] + (_local1["aso#75555"] * DeltaT);
_local1["aso#56196"] = _local1["aso#56196"] + (_local1["aso#06892"] * DeltaT);
_local1.t = _local3;
_local1["aso#30848"] = _local1["aso#56196"] + _local1["aso#18870"];
_local1["aso#00903"] = _local1["aso#69566"] + _local1["aso#81544"];
if (_local1["aso#30848"] < (_local2["aso#12881"] * 0.9999)) {
if (_local1["aso#00903"] >= (_local2["aso#47002"] / 3)) {
_local2.aso#35024(_local1, _local2.ideal_TA / 1000);
} else {
_local2.aso#35024(_local1, (0.15 * _local2.ideal_TA) / 1000);
}
} else {
if ((_local1["aso#69566"] + _local1["aso#81544"]) > 0) {
_local2.aso#09676(_local1, 2, "arrivee");
}
if (_local1.in_classement != "aso#36837") {
if (_local1["aso#99511"] < (_local2["aso#12881"] * 0.999)) {
_local2.show(_global.TXT_race_syn_evt_early_pb);
} else if (_local1["aso#99511"] > (_local2["aso#12881"] * 1.001)) {
_local2.aso#78339(_local1);
_local1.in_classement = "aso#36837";
_local2.show(_global.TXT_race_syn_evt_late_pb);
} else {
aso#78339(_local1);
}
_local1.in_classement = "aso#36837";
}
}
}
}
function aso#04658(mobile, t) {
var _local1 = mobile;
var _local2 = t;
var _local3 = _root;
DeltaTcheckpt = (_local2 - _local1.told) / 1000;
if ((_local2 < _local1.tnext) && (_local2 >= _local1.told)) {
DeltaTspline = DeltaTcheckpt / _local1.DeltaT;
_local1["aso#30848"] = (((_local1.A * Math.pow(DeltaTspline, 3)) + ((_local1.B * DeltaTspline) * DeltaTspline)) + (_local1.C * DeltaTspline)) + _local1.D;
_local1["aso#00903"] = (((((3 * (1 / _local1.DeltaT)) * _local1.A) * DeltaTspline) * DeltaTspline) + (((2 * (1 / _local1.DeltaT)) * _local1.B) * DeltaTspline)) + ((1 / _local1.DeltaT) * _local1.C);
_local1.t = _local2;
if (_local1["aso#30848"] >= (_local3["aso#12881"] - _local3.Dmin)) {
if (_local1.passed_virtual_line != "aso#36837") {
_local1.passed_virtual_line = "aso#36837";
}
if (((_local1.in_classement != "aso#36837") and (_local1["aso#30848"] >= (_local3["aso#12881"] - (_local3.Dmin / 4)))) and (_local1["aso#99511"] >= (_local3["aso#12881"] * 0.9999))) {
_local3.aso#78339(_local1);
_local1.in_classement = "aso#36837";
}
}
} else {
DeltaT = (_local2 - _local1.t) / 1000;
_local1["aso#00903"] = _local1["aso#24859"];
_local1["aso#30848"] = _local1["aso#30848"] + (_local1["aso#24859"] * DeltaT);
_local1.t = _local2;
}
}
function aso#75134(mobile, aso#17057) {
var _local1 = mobile;
var record_time = getTimer();
var record_action = new Array();
_local1.Et = _local1.Et + aso#17057;
aso#35024(_local1, _root.ideal_TA / 1000);
}
function facture_energy(mobile, DeltaX) {
mobile.Et = mobile.Et - (DeltaX / _root.C2);
}
function aso#73742(mobile, params) {
var _local1 = mobile;
var _local2 = params;
return(0);
}
function aso#21654(mobile, tini) {
var _local1 = mobile;
var _local2 = tini;
_local1.t0 = _local2;
_local1.X0 = 0;
_local1["aso#33632"] = 0;
_local1.E0 = 0;
_local1.told = _local2;
_local1.tlast = _local2;
_local1.tnext = _local2;
_local1.t = _local2;
_local1.tdepart = _local2;
_local1.tarrival = 0;
_local1["aso#51599"] = _local1.X0;
_local1["aso#99511"] = _local1.X0;
_local1["aso#30848"] = _local1.X0;
_local1["aso#14273"] = _local1["aso#33632"];
_local1["aso#24859"] = _local1["aso#33632"];
_local1["aso#00903"] = _local1["aso#33632"];
_local1["aso#32240"] = 0;
_local1["aso#50207"] = 0;
_local1["aso#18870"] = 0;
_local1["aso#88925"] = 0;
_local1["aso#75555"] = 0;
_local1["aso#81544"] = 0;
_local1["aso#38229"] = 0;
_local1["aso#87533"] = 0;
_local1["aso#56196"] = 0;
_local1["aso#20262"] = 0;
_local1["aso#06892"] = 0;
_local1["aso#69566"] = 0;
_local1["aso#51599"] = 0;
_local1["aso#99511"] = 0;
_local1["aso#30848"] = 0;
_local1["aso#14273"] = 0;
_local1["aso#24859"] = 0;
_local1["aso#00903"] = 0;
_local1.Et = _local1.E0;
_local1.Eold = _local1.E0;
_local1.charge_energy = "aso#36837";
_local1.is_coureur_maitre = "N";
_local1.passed_virtual_line = "N";
_local1.in_classement = "N";
}
function aso#73321(mobile, phase) {
var _local1 = mobile;
parametres = new Array();
parametres.push(_local1._name);
Set("aso#99511", _local1["aso#87533"] + _local1["aso#50207"]);
Set("aso#24859", _local1["aso#06892"] + _local1["aso#75555"]);
parametres.push(aso#99511);
parametres.push(aso#24859);
parametres.push(_local1.tnext - _local1.t);
parametres.push(_local1.tnext - _local1.tdepart);
parametres.push(phase);
return(parametres);
}
function aso#97277() {
firstXmlLoaded = false;
_root.aso#03266();
}
function aso#15244(quizString) {
var _local2 = _global;
_root.curQuizNumber++;
Set("aso#94914", new XML(quizString));
firstXmlLoaded = false;
stripWhitespaceDoublePass(aso#94914);
var progNode = aso#94914.firstChild.childNodes;
_local2["aso#45610"] = new Array();
_local2["aso#22625"] = new Array();
_local2["aso#84328"] = new Array();
_local2["aso#66361"] = new Array();
_local2["aso#29035"] = new Array();
_local2["aso#52991"] = new Array();
_local2["aso#77918"] = new Array();
_local2["aso#96306"] = new Array();
_local2["aso#16636"] = aso#94914.firstChild.attributes["aso#25409"];
_local2.JOUEUR_ID = aso#94914.firstChild.attributes.JID;
_local2.totalSousRubrique = progNode.length;
var _local1 = 0;
while (_local1 < progNode.length) {
_local2["aso#45610"].push(aso#94914.firstChild.childNodes[_local1].attributes.TEXT);
_local2["aso#22625"].push(aso#94914.firstChild.childNodes[_local1].attributes["aso#56746"]);
_local2["aso#84328"].push(aso#94914.firstChild.childNodes[_local1].attributes.TIME);
_local2["aso#66361"].push(aso#94914.firstChild.childNodes[_local1].attributes.ANSWER);
_local2["aso#29035"].push(aso#94914.firstChild.childNodes[_local1].attributes.DIFFICULTY);
_local2["aso#52991"].push(aso#94914.firstChild.childNodes[_local1].attributes.VALUE);
_local2["aso#77918"].push(aso#94914.firstChild.childNodes[_local1].attributes.COMMENT);
var progNodeUnder = aso#94914.firstChild.childNodes[_local1].childNodes;
_local2["aso#48394"] = new Array();
var _local3 = 0;
while (_local3 < progNodeUnder.length) {
_local2["aso#48394"].push(aso#94914.firstChild.childNodes[_local1].childNodes[_local3].firstChild.nodeValue);
_local3++;
}
_local2["aso#96306"].push(aso#48394);
_local1++;
}
}
function aso#62735(URL_XML) {
var _local1 = _root;
heure = new Date();
hr = heure.getHours();
min = heure.getMinutes();
sec = heure.getSeconds();
Set("aso#94914", new XML());
_local1.xml_quiz = new LoadVars();
transmit = new LoadVars();
xml_quiz.onLoad = function () {
if (xml_quiz.answer != "ok") {
exitPlayerFromRace("");
}
_root.aso#97277();
};
URL = URL_XML;
unique = new Date().getTime();
URL = (_global["aso#15665"] + "php_traitement/momentum/genere_xml_momentum_new.php?unique=") + unique;
transmit.course_id = _local1.course_id;
transmit.pseudo = _local1.username;
transmit["aso#06471"] = _local1.roomData[_local1.roomNumberSelected]["aso#44218"];
transmit.room_category = _local1.roomData[_local1.roomNumberSelected].roomscategory;
transmit.room_options = _local1.roomData[_local1.roomNumberSelected]["aso#63577"];
_global["aso#45610"] = new Array();
transmit.sendAndLoad(URL, xml_quiz, "POST");
idProduit = null;
}
function stripWhitespaceDoublePass(aso#47973) {
var _local3 = aso#47973;
var _local2 = 0;
while (_local2 < _local3.childNodes.length) {
if (_local3.childNodes[_local2].nodeType == 3) {
var _local1 = 0;
var emptyNode = true;
_local1 = 0;
while (_local1 < _local3.childNodes[_local2].nodeValue.length) {
if (_local3.childNodes[_local2].nodeValue.charCodeAt(_local1) > 32) {
emptyNode = false;
break;
}
_local1++;
}
if (emptyNode) {
_local3.childNodes[_local2].removeNode();
}
}
_local2++;
}
var k = 0;
while (k < _local3.childNodes.length) {
stripWhitespaceDoublePass(_local3.childNodes[k]);
k++;
}
}
function aso#59951(src) {
var _local3 = src;
var base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var _local2 = 0;
var _local1 = "";
var chr1;
var chr2;
var chr3;
var enc1;
var enc2;
var enc3;
var enc4;
while (_local2 < _local3.length) {
enc1 = base64chars.indexOf(_local3.charAt(_local2++));
enc2 = base64chars.indexOf(_local3.charAt(_local2++));
enc3 = base64chars.indexOf(_local3.charAt(_local2++));
enc4 = base64chars.indexOf(_local3.charAt(_local2++));
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;
_local1 = _local1 + String.fromCharCode(chr1);
if (enc3 != 64) {
_local1 = _local1 + String.fromCharCode(chr2);
}
if (enc4 != 64) {
_local1 = _local1 + String.fromCharCode(chr3);
}
}
return(_local1);
}
function aso#19841(mobile, DeltaT) {
var _local1 = mobile;
var _local2 = DeltaT;
t = _local1.t;
if (_local1.tdepart == 0) {
_local1.tdepart = t;
}
_local1["aso#87533"] = _local1["aso#56196"] + (_root.C2 * _local1.Et);
_local1.tnext = t + (_local2 * 1000);
_local1["aso#06892"] = 0;
_local1.Enext = 0;
_local1.Eold = _local1.Et;
_local1.told = t;
_local1.DeltaT = _local2;
_local1["aso#38229"] = _local1["aso#56196"];
_local1["aso#20262"] = _local1["aso#69566"];
reck_params = new Array();
reck_params = aso#70958(_local1["aso#38229"], _local1["aso#87533"], _local1["aso#20262"], _local1["aso#06892"], _local1.DeltaT);
_local1.Aacc = reck_params[0];
_local1.Bacc = reck_params[1];
_local1.Cacc = reck_params[2];
_local1.Dacc = reck_params[3];
if (_local1._name == "le_mobile") {
}
}
function aso#88504(mobile, DeltaT) {
var _local1 = mobile;
var _local2 = DeltaT;
t = _local1.t;
if (_local1.tdepart == 0) {
_local1.tdepart = t;
}
_local1["aso#50207"] = _local1["aso#18870"] + ((0.5 * (_local1["aso#81544"] + _root["aso#47002"])) * _local2);
_local1["aso#75555"] = _root["aso#47002"];
_local1.told = t;
_local1.t = t;
_local1.DeltaT = _local2;
_local1.tnext = _local1.told + (_local2 * 1000);
_local1["aso#32240"] = _local1["aso#18870"];
_local1["aso#88925"] = _local1["aso#81544"];
reck_params = new Array();
reck_params = aso#70958(_local1["aso#32240"], _local1["aso#50207"], _local1["aso#88925"], _local1["aso#75555"], _local1.DeltaT);
_local1.Afond = reck_params[0];
_local1.Bfond = reck_params[1];
_local1.Cfond = reck_params[2];
_local1.Dfond = reck_params[3];
if (_local1._name == "le_mobile") {
}
}
function aso#41984(mobile) {
var _local1 = mobile;
DeltaTarr = (_local1.DeltaT * (_root["aso#12881"] - _local1["aso#30848"])) / (_local1["aso#99511"] - _local1["aso#30848"]);
ratio = DeltaTarr / _local1.DeltaT;
_local1.DeltaT = DeltaTarr;
_local1.tnext = _local1.t + (_local1.DeltaT * 1000);
_local1.told = _local1.t;
_local1["aso#87533"] = ((_local1["aso#87533"] - _local1["aso#38229"]) * ratio) + _local1["aso#38229"];
_local1["aso#38229"] = _local1["aso#56196"];
_local1["aso#06892"] = ((2 * (_local1["aso#87533"] - _local1["aso#38229"])) / _local1.DeltaT) - _local1["aso#69566"];
_local1["aso#20262"] = _local1["aso#69566"];
_local1["aso#50207"] = ((_local1["aso#50207"] - _local1["aso#32240"]) * ratio) + _local1["aso#32240"];
_local1["aso#32240"] = _local1["aso#18870"];
_local1["aso#88925"] = _local1["aso#81544"];
_local1["aso#75555"] = ((2 * (_local1["aso#50207"] - _local1["aso#18870"])) / _local1.DeltaT) - _local1["aso#81544"];
_local1["aso#99511"] = _local1["aso#87533"] + _local1["aso#50207"];
_local1["aso#30848"] = _local1["aso#56196"] + _local1["aso#18870"];
_local1["aso#00903"] = _local1["aso#69566"] + _local1["aso#81544"];
reck_params = new Array();
reck_params = aso#70958(_local1["aso#38229"], _local1["aso#87533"], _local1["aso#20262"], _local1["aso#06892"], _local1.DeltaT);
_local1.Aacc = reck_params[0];
_local1.Bacc = reck_params[1];
_local1.Cacc = reck_params[2];
_local1.Dacc = reck_params[3];
reck_params = new Array();
reck_params = aso#70958(_local1["aso#32240"], _local1["aso#50207"], _local1["aso#88925"], _local1["aso#75555"], _local1.DeltaT);
_local1.Afond = reck_params[0];
_local1.Bfond = reck_params[1];
_local1.Cfond = reck_params[2];
_local1.Dfond = reck_params[3];
}
function aso#13852(mobile, DeltaT) {
var _local1 = mobile;
var _local2 = _root;
aso#19841(_local1, DeltaT);
aso#88504(_local1, DeltaT);
_local1["aso#99511"] = _local1["aso#87533"] + _local1["aso#50207"];
_local1["aso#30848"] = _local1["aso#56196"] + _local1["aso#18870"];
_local1["aso#24859"] = _local1["aso#06892"] + _local1["aso#75555"];
_local1["aso#00903"] = _local1["aso#69566"] + _local1["aso#81544"];
if ((_local1["aso#99511"] >= (_local2["aso#12881"] - _local2.Dmin)) && (_local1["aso#30848"] < (_local2["aso#12881"] * 0.999))) {
}
_local2.sync_checkpoint_R(aso#79731(_local1));
}
function aso#05079() {
var _local1 = _root;
i = 0;
while (i < _local1["aso#93522"].length) {
if (i == 0) {
_local1["aso#68174"]["R" + _local1["aso#93522"][i].nom].endPosition = "first";
} else if (i == 1) {
_local1["aso#68174"]["R" + _local1["aso#93522"][i].nom].endPosition = "second";
} else if (i == 2) {
_local1["aso#68174"]["R" + _local1["aso#93522"][i].nom].endPosition = "third";
} else {
_local1["aso#68174"]["R" + _local1["aso#93522"][i].nom].endPosition = "loser";
}
i++;
}
}
function aso#09255() {
var _local2 = _root;
t = new Date().getTime();
var ar = _local2.replay_paramAvatar;
var _local3 = 0;
while (_local3 < ar.length) {
var _local1 = "R" + _local2.replay_paramAvatar[_local3].nom;
_local2["aso#42826"]["aso#74163"][_local1].tdepart = t;
_local2["aso#42826"]["aso#74163"][_local1].t = t;
_local2.aso#91709(aso#91709);
if (_local2["aso#42826"]["aso#74163"][_local1].is_coureur_maitre == "aso#36837") {
}
aso#03687(_local1);
_local2["aso#68174"][_local1].gotoAndStop("runVitesse1");
_local3++;
}
}
function aso#70958(aso#51599, aso#99511, aso#14273, aso#24859, DeltaT) {
x0 = aso#51599;
x1 = aso#51599 + ((aso#14273 * DeltaT) / 3);
x2 = aso#99511 - ((aso#24859 * DeltaT) / 3);
x3 = aso#99511;
A = ((x3 - (3 * x2)) + (3 * x1)) - x0;
B = ((3 * x2) - (6 * x1)) + (3 * x0);
C = (3 * x1) - (3 * x0);
D = x0;
result = new Array(A, B, C, D);
return(result);
}
function aso#98669(mobile, Tpenalite, phase) {
var _local1 = mobile;
var _local2 = _root;
var _local3 = Tpenalite;
t = _local1.t;
_local1["aso#32240"] = _local1["aso#18870"];
_local1["aso#88925"] = _local1["aso#81544"];
_local1["aso#50207"] = _local1["aso#18870"] + ((0.5 * _local1["aso#81544"]) * _local3);
_local1["aso#75555"] = 0;
_local1.told = t;
_local1.DeltaT = _local3;
_local1.tnext = _local1.told + (_local1.DeltaT * 1000);
reck_params = new Array();
reck_params = aso#70958(_local1["aso#32240"], _local1["aso#50207"], _local1["aso#88925"], _local1["aso#75555"], _local1.DeltaT);
_local1.Afond = reck_params[0];
_local1.Bfond = reck_params[1];
_local1.Cfond = reck_params[2];
_local1.Dfond = reck_params[3];
_local1["aso#38229"] = _local1["aso#56196"];
_local1["aso#20262"] = _local1["aso#69566"];
_local1.Eold = _local1.Et;
_local1["aso#87533"] = _local1["aso#56196"] + ((0.5 * _local1["aso#69566"]) * _local3);
_local1["aso#06892"] = 0;
_local1.Enext = Math.max(_local1.Et - ((1 / _local2.C2) * (_local1["aso#87533"] - _local1["aso#56196"])), 0);
reck_params = new Array();
reck_params = aso#70958(_local1["aso#38229"], _local1["aso#87533"], _local1["aso#20262"], _local1["aso#06892"], _local1.DeltaT);
_local1.Aacc = reck_params[0];
_local1.Bacc = reck_params[1];
_local1.Cacc = reck_params[2];
_local1.Dacc = reck_params[3];
_local2.sync_checkpoint_R(aso#79731(_local1));
if (phase == "arrivee") {
_local2["aso#68174"][_local1._name].gotoAndStop("stop");
_local2.chat.sync_finalPosition(_local1._name);
}
}
function aso#39200(mobile) {
var _local1 = mobile;
if (_local1.is_coureur_maitre == "aso#36837") {
aso#63156(_local1);
} else {
aso#03687(_local1);
}
}
function aso#63156(mobile) {
aso#03687(mobile);
}
function aso#03687(mobile) {
var _local1 = mobile;
var _local2 = _root;
t = new Date().getTime();
DeltaTcheckpt = (t - _local1.told) / 1000;
if ((t < _local1.tnext) && (t > _local1.told)) {
DeltaTspline = DeltaTcheckpt / _local1.DeltaT;
_local1["aso#30848"] = (((_local1.A * Math.pow(DeltaTspline, 3)) + ((_local1.B * DeltaTspline) * DeltaTspline)) + (_local1.C * DeltaTspline)) + _local1.D;
_local1["aso#00903"] = (((((3 * (1 / _local1.DeltaT)) * _local1.A) * DeltaTspline) * DeltaTspline) + (((2 * (1 / _local1.DeltaT)) * _local1.B) * DeltaTspline)) + ((1 / _local1.DeltaT) * _local1.C);
_local1.t = t;
} else {
var numRangActu = _local1.sequenceReplayRang;
if ((_local1.playerSequenceReplay[numRangActu].replay_tpsDepart <= _global.tpsDifReplay) or (_global.tpsDifReplay != 0)) {
parametres = new Array();
parametres.push(_local1.playerSequenceReplay[numRangActu].nom);
parametres.push(_local1.playerSequenceReplay[numRangActu].replay_Xnext);
parametres.push(_local1.playerSequenceReplay[numRangActu].replay_Vnext);
parametres.push(_local1.playerSequenceReplay[numRangActu].replay_DeltaT);
parametres.push(_local1.playerSequenceReplay[numRangActu].replay_tpsDepart);
aso#11068(_local1, parametres);
if (_local1.playerSequenceReplay[numRangActu].action == "chute") {
_local2["aso#68174"][_local1._name].gotoAndStop("chute");
_local2["aso#68174"][_local1._name].setInterval_ID = setInterval(_local2["aso#68174"][_local1._name].getupAndRun, _global.timePenalty);
}
if (_local1.playerSequenceReplay[numRangActu].action == "arrivee") {
i = 0;
while (i < _local2["aso#93522"].length) {
if (_local1._name == ("R" + _local2["aso#93522"][i].nom)) {
if (i == 0) {
var _local3 = " er";
_local2["aso#68174"][_local1._name].endPosition = "first";
} else if (i == 1) {
_local2["aso#68174"][_local1._name].endPosition = "second";
} else if (i == 2) {
_local2["aso#68174"][_local1._name].endPosition = "third";
} else {
_local2["aso#68174"][_local1._name].endPosition = "loser";
}
_local2["aso#68174"][_local1._name].gotoAndStop("stop");
}
i++;
}
}
_local1.sequenceReplayRang++;
}
DeltaT = (t - _local1.t) / 1000;
_local1["aso#00903"] = _local1["aso#24859"];
_local1["aso#30848"] = _local1["aso#30848"] + (_local1["aso#24859"] * DeltaT);
_local1.t = t;
}
}
function aso#12039(mobile, aso#17057) {
var _local1 = mobile;
_local1.Et = _local1.Et + aso#17057;
aso#13852(_local1, _root.ideal_TA / 1000);
}
function facture_energy_R(mobile, DeltaX) {
mobile.Et = mobile.Et - (DeltaX / _root.C2);
}
function aso#11068(mobile, params) {
var _local1 = mobile;
var _local2 = params;
var _local3 = _root;
t = new Date().getTime();
if (_local1.tdepart == 0) {
_local1.tdepart = t;
}
Set("aso#99511", _local2[1]);
Set("aso#24859", _local2[2]);
DeltaTms = _local2[3];
ttotms = _local2[4];
_local1["aso#99511"] = aso#99511;
_local1["aso#24859"] = aso#24859;
_local1["aso#51599"] = _local1["aso#30848"];
_local1["aso#14273"] = _local1["aso#00903"];
_local1.tnext = _local1.tdepart + ttotms;
_local1.told = t;
_local1.DeltaT = (_local1.tnext - _local1.told) / 1000;
reck_params = new Array();
reck_params = _local3.aso#70958(_local1["aso#30848"], _local1["aso#99511"], _local1["aso#00903"], _local1["aso#24859"], _local1.DeltaT);
_local1.A = reck_params[0];
_local1.B = reck_params[1];
_local1.C = reck_params[2];
_local1.D = reck_params[3];
if (_local1["aso#99511"] == _local3["aso#12881"]) {
_local3.aso#05079(_local1);
}
}
function aso#91709(mobile) {
var _local1 = _root;
var _local3 = mobile;
_local3.isViewed = "N";
checkpointNum = 0;
_local3.onRollOver = function () {
var _local2 = _root;
var _local3 = this;
var _local1 = 0;
while (_local1 < _local2.replay_paramAvatar.length) {
if (_local3._name == ("R" + _local2.replay_paramAvatar[_local1].nom)) {
_local2["aso#68174"]["R" + _local2.replay_paramAvatar[_local1].nom].perso.brassard.targetRange._visible = true;
_local2["aso#68174"]["R" + _local2.replay_paramAvatar[_local1].nom].perso.brassard.targetRange.gotoAndPlay("cligno");
}
_local1++;
}
};
_local3.onRollOut = function () {
var _local2 = _root;
var _local1 = 0;
while (_local1 < _local2.replay_paramAvatar.length) {
_local2["aso#68174"]["R" + _local2.replay_paramAvatar[_local1].nom].perso.brassard.targetRange._visible = false;
_local2["aso#68174"]["R" + _local2.replay_paramAvatar[_local1].nom].perso.brassard.targetRange.gotoAndStop(1);
_local1++;
}
};
_local3.onPress = function () {
var _local1 = _root;
var _local3 = this;
var _local2 = 0;
while (_local2 < _local1.replay_paramAvatar.length) {
if (_local3._name != ("R" + _local1.replay_paramAvatar[_local2].nom)) {
_local1["aso#42826"]["aso#74163"]["R" + _local1.replay_paramAvatar[_local2].nom].is_coureur_maitre = "N";
} else {
_local1["aso#42826"]["aso#74163"]["R" + _local1.replay_paramAvatar[_local2].nom].is_coureur_maitre = "aso#36837";
_local1["aso#68174"]["R" + _local1.replay_paramAvatar[_local2].nom]._x = -Number(_local1.replay_paramAvatar[_local2].coridor * 7);
}
_local2++;
}
};
_local3.t0 = new Date().getTime();
_local3.X0 = 0;
_local3["aso#33632"] = 0;
_local3.E0 = 0;
_local3.told = _local3.t0;
_local3.tlast = _local3.t0;
_local3.tnext = _local3.t0;
_local3.t = _local3.t0;
_local3.tdepart = t0;
_local3["aso#51599"] = _local3.X0;
_local3["aso#99511"] = _local3.X0;
_local3["aso#30848"] = _local3.X0;
_local3["aso#14273"] = _local3["aso#33632"];
_local3["aso#24859"] = _local3["aso#33632"];
_local3["aso#00903"] = _local3["aso#33632"];
_local3["aso#32240"] = 0;
_local3["aso#50207"] = 0;
_local3["aso#18870"] = 0;
_local3["aso#88925"] = 0;
_local3["aso#75555"] = 0;
_local3["aso#81544"] = 0;
_local3["aso#38229"] = 0;
_local3["aso#87533"] = 0;
_local3["aso#56196"] = 0;
_local3["aso#20262"] = 0;
_local3["aso#06892"] = 0;
_local3["aso#69566"] = 0;
_local3["aso#51599"] = 0;
_local3["aso#99511"] = 0;
_local3["aso#30848"] = 0;
_local3["aso#14273"] = 0;
_local3["aso#24859"] = 0;
_local3["aso#00903"] = 0;
_local3.Et = _local3.E0;
_local3.Eold = _local3.E0;
_local3.charge_energy = "aso#36837";
_local3.is_coureur_maitre = "N";
}
function aso#79731(mobile) {
var _local1 = mobile;
parametres = new Array();
parametres.push(_local1._name);
Set("aso#99511", _local1["aso#87533"] + _local1["aso#50207"]);
Set("aso#24859", _local1["aso#06892"] + _local1["aso#75555"]);
parametres.push(aso#99511);
parametres.push(aso#24859);
parametres.push(_local1.tnext - _local1.t);
parametres.push(_local1.tnext - _local1.tdepart);
return(parametres);
}
function arrondi(n) {
return(Math.round(n * 10000) / 10000);
}
function updateRoomsStatus(freeRacesArray) {
var i = 1;
while (i < _root.roomData.length) {
evalName = "_root.ecranPartieSelection.conteneurPartie." + _root.roomData[i].roomsConfigName;
if (freeRacesArray[i] != "") {
statusCode = freeRacesArray[i];
if (statusCode == 0) {
eval (evalName).statut = _global.TXT_e1_info7;
} else if (statusCode == 1) {
eval (evalName).statut = (_root["aso#00482"] + " ") + _global.TXT_e1_info8;
} else if (statusCode == 2) {
eval (evalName).statut = _global.TXT_e1_info13;
} else if (statusCode == 9) {
eval (evalName).statut = _global.TXT_e1_info12;
} else {
eval (evalName).statut = _global.TXT_e1_info11;
}
}
i++;
}
}
function clearRoomsStatus() {
var i = 1;
while (i < _root.roomData.length) {
evalName = "_root.ecranPartieSelection.conteneurPartie." + _root.roomData[i].roomsConfigName;
eval (evalName).statut = _global.TXT_room_statut_waiting_data;
i++;
}
}
function toolTip(tagTarget, myMessage) {
tagTarget.onRollOver = function () {
_root.delInterval = setInterval(printTooltip, 1000, myMessage);
};
tagTarget.onRollOut = function () {
clearInterval(_root.delInterval);
removeMovieClip(h);
};
}
function printTooltip(myMessage) {
var _local1 = _root;
_local1.h = _local1.createEmptyMovieClip("h", 10);
_local1.h._y = _local1._ymouse + 10;
_local1.h._x = _local1._xmouse;
h.attachMovie("toolTip_MC", "toolTip_MC", 1000);
h.toolTip_MC.message.autoSize = true;
h.toolTip_MC.message.border = true;
h.toolTip_MC.message.html = true;
h.toolTip_MC.message.backgroundColor = 16777161 /* 0xFFFFC9 */;
h.toolTip_MC.message.htmlText = myMessage;
clearInterval(_local1.delInterval);
_local1.delInterval = setInterval(function () {
removeMovieClip(h);
clearInterval(_root.delInterval);
}, 6500);
h.onMouseMove = function () {
h._y = _root._ymouse + 10;
h._x = _root._xmouse;
};
}
function aso#21233() {
var nb = 0;
var allClosed = "aso#36837";
var minNbRoomsBlocked = 6;
if (_root.roomData[_root.containerTopRaceNb].state == "open") {
return(0);
}
nb++;
var i = 1;
while (i < _root.roomData.length) {
if ((_root.roomData[i]["aso#44218"] == 1) and (i != _root.containerTopRaceNb)) {
if (_root.roomData[i].state == "open") {
allClosed = "N";
return(0);
}
nb++;
}
if (nb >= minNbRoomsBlocked) {
break;
}
i++;
}
if (allClosed == "aso#36837") {
var theroom_id = -1;
var maxNbUsers = 0;
var nbUsers = 0;
var i = 1;
while (i < _root.roomData.length) {
if (((_root.roomData[i]["aso#44218"] == 1) and (_root.roomData[i]["aso#63577"] == 0)) and (_root.roomData[i].state == "open")) {
nbUsers = eval ("_root.ecranPartieSelection.conteneurPartie." + _root.roomData[i].roomsConfigName).nb_players;
if ((Number(nbUsers) > maxNbUsers) or (theroom_id < 0)) {
theroom_id = i;
maxNbUsers = nbUsers;
}
}
i++;
}
}
if (theroom_id > 0) {
emphasizeRace(theroom_id);
}
}
function emphasizeRace(race_id) {
var pos = 0;
evalName = "_root.ecranPartieSelection.conteneurPartie." + _root.roomData[race_id].roomsConfigName;
eval (evalName)._y = Math.round(19 * pos);
pos++;
var i = 1;
while (i < _root.roomData.length) {
if (i != race_id) {
evalName = "_root.ecranPartieSelection.conteneurPartie." + _root.roomData[i].roomsConfigName;
eval (evalName)._y = Math.round(19 * pos);
pos++;
}
i++;
}
_root.ecranPartieSelection.pane.refreshPane();
if (race_id > 0) {
_root.containerTopRaceNb = race_id;
}
}
_global.MinimumPlayer = 6;
_global.timeConfStartRace = 12000;
_global.timeConfPlayerEject = 15000;
_global.timecountdown = 5000;
_global.timePenalty = 2000;
_global.timeInterQ = 3000;
_global["aso#15665"] = "http://www.caesarsquiz.com/";
_global.url_momentum = _global["aso#15665"] + "momentum_intro_en.php";
_global.SpriteAnimateMode = "fast";
var C2 = 2;
var E_min = 1;
var RTT = 100;
var aso#47002 = 125;
var ideal_TA = 7000;
var Dmin = 400;
var aso#12881 = 11700;
var manual_energy = 50;
var aso#64969 = [{pseudo:"Quintus", strength:1}, {pseudo:"Caius", strength:1}, {pseudo:"Maximus", strength:1}, {pseudo:"Brutus", strength:1}, {pseudo:"Whataboutus", strength:1}];
var aso#34603 = "79e944f639cbcf9da67665c2";
_root.partner_aff_id = 10001;
_global["aso#85299"] = "";
_global["aso#06050"] = "default";
_root.chatPermission = "aso#36837";
_global.restrict_chat_to_lang = "aso#36837";
_global.chat_lang = "FR";
org.omus.session.init("example", _global["aso#85299"], 8000);
LoginObj = function () {
var _local1 = this;
_local1.newUser = false;
_local1.chosenAv = "";
_local1.raceColor = "";
_local1.raceCoridor = "";
_local1["aso#37387"] = "";
org.omus.session.addListener(_local1);
};
LoginObj.prototype.connect = function () {
if (this.newUser) {
org.omus.session.register(username, password, "");
} else {
org.omus.session.login(username, password);
}
};
LoginObj.prototype.onLogin = function (extraData) {
this.init();
};
LoginObj.prototype.onRegister = function (extraData) {
this.init();
var _local1 = org.omus.user.getProperties();
_local1.setValue("avatar", this.chosenAv);
};
LoginObj.prototype.init = function () {
var _local1 = _root;
org.omus.group.addListener(_local1.room);
org.omus.info.addListener(_local1.room);
org.omus.messenger.addListener(_local1.chat);
org.omus.info.loadGroupList();
popup.hide();
_local1.ecranEntree.ecranEntree1.boutEntrer._visible = true;
_local1.ecranEntree.ecranEntree1.connectionWaitMessage._visible = false;
};
LoginObj.prototype.onLogout = function (error) {
var _local3 = _root;
var _local2 = error.getCode();
var _local1 = "";
switch (_local2) {
case "lgt-001" :
_local1 = "You were logged out.";
break;
case "lgt-007" :
_local1 = "Connection broken.";
_local3.gotoAndPlay("login");
break;
default :
_local1 = "You were logged out. Error code: " + _local2;
}
popup.setAction(function () {
_root.gotoAndStop(1);
});
_local3.show(_local1);
};
LoginObj.prototype.onError = function (error) {
var _local2 = error.getMethodName();
if ((_local2 == "login") || (_local2 == "register")) {
var _local3 = error.getCode();
var _local1 = "";
switch (_local3) {
case "ses-012" :
_local1 = "No connection to the server.\nMake sure that the server is running and check ";
_local1 = _local1 + "if you edited config.xml and the first line in login.as the way it is explained ";
_local1 = _local1 + "in the Example Application chapter in the User Manual.";
break;
case "ses-011" :
_local1 = "Username or password invalid.";
break;
case "ses-007" :
_local1 = "User with given nickname already exists.";
break;
case "ses-006" :
_local1 = "User already logged in.";
break;
default :
_local1 = "Cannot login. Error code: " + _local3;
}
popup.setAction(function () {
_root.gotoAndStop(1);
});
_root.show(_local1);
}
};
notifServerPlayerQuit = function (reason) {
var _local1 = _root;
return(0);
};
getRoomOfAllUser = function (thatUser, hisGroup) {
var _local2 = _root;
var _local3 = thatUser;
this.founded = false;
var _local1 = 0;
while (_local1 < _local2.arrayAllPlayeurRoom.length) {
if (_local2.arrayAllPlayeurRoom[_local1].nom == _local3) {
this.founded = true;
}
_local1++;
}
if (_local2.arrayAllPlayeurRoom == "") {
_local2.arrayAllPlayeurRoom.push({nom:_local3, room:hisGroup});
}
if (this.founded == false) {
_local2.arrayAllPlayeurRoom.push({nom:_local3, room:hisGroup});
_local2.refreshRoomOfAllUser();
}
};
afficheListe = function () {
var _local3 = _root;
_local3.clipPopupList0.userList = "";
var _local2 = org.omus.group.getAllUserProperties();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.clipPopupList0.userList = _local3.clipPopupList0.userList + ((" :: " + _local2[_local1].owner) + newline);
_local1++;
}
_local3.clipPopupList0.scroller.setScrollTarget(_local3.clipPopupList0.theuserlist);
};
findFreeCoridor = function () {
var ar = org.omus.group.getAllUserProperties();
coridorsNotFree = new Array();
var _local1 = 0;
while (_local1 < ar.length) {
var _local3 = ar[_local1];
valueOfThisCoridor = _local3.getValue("raceCoridor");
coridorsNotFree[valueOfThisCoridor] = "aso#36837";
_local1++;
}
_local1 = 1;
while (_local1 <= 6) {
if (coridorsNotFree[_local1] != "aso#36837") {
var _local2 = org.omus.user.getLocks();
_local2.addListener(_root.lis_lock);
nb = Number(_local1) - 1;
_local2.acquire("corridor" + nb);
return(Number(_local1) - 1);
}
_local1++;
}
return(undefined);
};
lis_lock = new Object();
lis_lock.onAcquire = function (lockName, success) {
var _local3 = _global;
if (success) {
if (lockName.substr(0, 8) == "corridor") {
var _local1 = lockName.substr(8);
var _local2 = org.omus.user.getProperties();
_local1 = Number(_local1);
_local2.setValue("raceColor", _local3.startSlotColor[_local1]);
_local2.setValue("raceCoor", _local3.startSlotCoor[_local1]);
_local2.setValue("avatarType", _root.AvatarTypes[_root.avatarID]);
_local2.setValue("raceCoridor", _local3.startSlotCouloir[_local1]);
_local2.synchronize();
_root.mc_clock.aso#58980(_local3.timeConfStartRace);
} else if (lockName == "aso#81123") {
_local3.isAdmin = "aso#36837";
}
} else if (lockName.substr(0, 8) == "corridor") {
_root.findFreeCoridor();
} else if (lockName == "aso#81123") {
_local3.isAdmin = "N";
}
};
RoomObj = function () {
var _local1 = this;
_local1.xRange = 334;
_local1.yRange = 160;
_local1.depth = 1;
_local1.users = new Object();
};
RoomObj.prototype.onClick = function (instName) {
var _local2 = instName;
var _local1 = "";
_local1 = org.omus.group.getName();
if (_local2 == "main") {
if (_local1 == "login") {
return;
}
if (_local1 == "general") {
} else {
return;
if (_local2 == _local1) {
} else {
if (_local1 != "general") {
}
org.omus.group.change(_local2, null, true);
}
}
} else if (_local2 == _local1) {
} else {
if (_local1 != "general") {
}
org.omus.group.change(_local2, null, true);
}
};
RoomObj.prototype.onChange = function (extraData) {
var _local2 = this;
var thegroupname = "";
thegroupname = org.omus.group.getName();
var theusername = "";
theusername = org.omus.user.getName();
_global.currentPlayerName = theusername;
_global.currentRoomName = thegroupname;
for (each in _local2.users) {
_local2.users[each].remove();
}
_root.AvatarInstances = Array();
if (thegroupname != "general") {
_local2.users = new Object();
var ar = org.omus.group.getAllUserProperties();
var _local3 = 0;
while (_local3 < ar.length) {
var _local1 = ar[_local3];
if (_local1.getOwner() == theusername) {
_local2.users[_local1.getOwner()] = new _root.AvatarObj(_local1, _local2.depth++, "mustBeSync");
} else {
_local2.users[_local1.getOwner()] = new _root.AvatarObj(_local1, _local2.depth++, "isSync");
}
_local3++;
}
} else {
_root.afficheListe();
}
org.omus.info.loadGroupList();
if (thegroupname != "general") {
removeMovieClip(_root.clipPopupWait0);
_root.gotoAndPlay("race");
}
};
RoomObj.prototype.onUserJoined = function (propSet) {
var _local2 = propSet;
var _local3 = _global;
var theplayer = _local2.owner;
var _local1 = org.omus.group.getName();
if (_local1 != "login") {
if (_local1 != "general") {
this.users[_local2.getOwner()] = new _root.AvatarObj(_local2, this.depth++, "isSync");
_root.mc_clock.aso#58980(_local3.timeConfStartRace);
}
}
org.omus.info.loadGroupList();
if (_local1 == "general") {
messToSend = _local3.TXT_room_1 + " \n";
_root.afficheListe();
} else {
messToSend = _local3.TXT_room_1_bis + " \n";
}
chatClip.chatText = chatClip.chatText + (((("<FONT color=\"#FFFFFF\">" + _local2.owner) + " ") + messToSend) + "</FONT>");
};
RoomObj.prototype.onUserLeft = function (propSet) {
var _local1 = _global;
var _local2 = propSet;
var theplayer = _local2.owner;
var theroom = _local1.currentRoomName;
if (_local1.isAdmin == "aso#36837") {
}
this.users[_local2.getOwner()].remove();
delete this.users[_local2.getOwner()];
org.omus.info.loadGroupList();
chatClip.chatText = chatClip.chatText + (((("<FONT color=\"#FFFFFF\">" + _local2.owner) + " ") + _local1.TXT_room_2) + "\n</FONT>");
if (_local1.currentRoomName == "general") {
_root.afficheListe();
}
};
RoomObj.prototype.onClose = function () {
var _local1 = _root;
_local1.attachMovie("MC_compteurDepart", "MC_compteurDepart0", 1001);
_local1.checked = true;
_local1.MC_compteurDepart0._x = 300;
_local1.MC_compteurDepart0._y = 140;
};
RoomObj.prototype.onError = function (error) {
var _local1 = _global;
var _local2 = _root;
var _local3 = error;
var ecode = _local3.getCode();
var msg = "";
switch (ecode) {
case "cgr-004" :
msg = _local1.TXT_room_6;
_local2.show(msg);
break;
case "cgr-003" :
msg = _local1.TXT_room_7;
_local2.show(msg);
break;
default :
if (_local3.getMethodName() != "change") {
break;
}
var ecode = _local3.getCode();
var msg = ((msg = (((((_local1.TXT_room_3 + "\n//////////////////////////////\n") + _local1.TXT_room_4) + newline) + _local1.TXT_room_5) + "\n\nError code: ") + ecode));
_local2.show(msg);
}
_local2.activateBoutonValide();
};
RoomObj.prototype.onLoadGroupList = function (groups) {
var l = groups.size();
var groupActu = org.omus.group.getName();
_global.currentRoomName = groupActu;
var i = 0;
while (i < l) {
var row = groups.getRow(i);
if (row.name == "general") {
map["num_" + row.name] = row.userCount;
}
if ((row.name != "login") and (row.name != "general")) {
row.userLimit = 6;
if ((row.userCount == row.userLimit) or (row.closed == true)) {
_root.closeRace(row.name);
} else {
var z = 0;
while (z < _root.roomData.length) {
if ((_root.roomData[z].roomsConfigName == row.name) && (_root.roomData[z].state == "open")) {
_root.openRace(row.name);
}
z++;
}
}
if (row.userCount == 0) {
_root.openRace(row.name);
}
eval ("_root.ecranPartieSelection.conteneurPartie." + row.name).joueur = (row.userCount + "/") + row.userLimit;
eval ("_root.ecranPartieSelection.conteneurPartie." + row.name).nb_players = row.userCount;
if (groupActu == row.name) {
_root.numUserInRoom = row.userCount;
}
}
i++;
}
_root.aso#21233();
};
closeRace = function (id) {
var i = 1;
while (i < _root.roomData.length) {
if (_root.roomData[i].roomsConfigName == id) {
_root.roomData[i].state = "close";
}
i++;
}
this.mcRoom = eval ("_root.ecranPartieSelection.conteneurPartie." + id);
eval (this.mcRoom).coche1.coche2._visible = false;
eval (this.mcRoom).coche1._visible = false;
laCouleur = new Color(eval (this.mcRoom).pastille);
laCouleur.setRGB("0xFF0000");
};
openRace = function (id) {
var i = 0;
while (i < _root.roomData.length) {
if (_root.roomData[i].roomsConfigName == id) {
_root.roomData[i].state = "open";
}
i++;
}
this.mcRoom = eval ("_root.ecranPartieSelection.conteneurPartie." + id);
eval (this.mcRoom).coche1._visible = true;
laCouleur = new Color(eval (this.mcRoom).pastille);
laCouleur.setRGB("0x00FF00");
};
testIsCloseRace = function (thisRoom) {
var _local2 = _root;
var _local3 = thisRoom;
var _local1 = 0;
while (_local1 < _local2.roomData.length) {
if ((_local2.roomData[_local1].roomsConfigName == _local3) && (_local2.roomData[_local1].state == "close")) {
return(true);
}
_local1++;
}
return(undefined);
};
AvatarObj = function (propSet, dp, syncStatut) {
var _local1 = this;
var _local3 = _root;
_local1.propSet = propSet;
_local1.propSet.addListener(_local1);
var _local2 = propSet.getOwner();
if (syncStatut == "mustBeSync") {
_local3["aso#68174"].attachMovie("aso#41013", _local2, Number(dp + 1000))._visible = false;
_local1.mc = _local3["aso#68174"][_local2];
_local1.mc._y = -600;
_local1.mc._visible = false;
_local1.mc.pseudo = _local2;
_local3["aso#42826"]["aso#74163"].attachMovie("pion", _local2, Number(dp + 1000))._visible = false;
_local1.mc2 = _local3["aso#42826"]["aso#74163"][_local2];
_local1.mc2._visible = false;
_local1.mc2.pseudo = _local2;
_local1.getNewProperties();
} else if (syncStatut == "isSync") {
var saCouleur = propSet.getValue("raceColor");
var sesCoor = propSet.getValue("raceCoor");
var sonCouloir = propSet.getValue("raceCoridor");
_local3["aso#68174"].attachMovie("aso#41013", _local2, sonCouloir)._visible = false;
_local1.mc = _local3["aso#68174"][_local2];
_local1.mc._y = -600;
_local1.mc.pseudo = _local2;
_local1.mc.playerColor = saCouleur;
laCouleur = new Color(_local1.mc.perso.brassard);
laCouleur.setRGB(saCouleur);
_local1.mc.level = sonCouloir;
_local1.mc._y = sesCoor;
var pointArret = (-(sonCouloir * 7));
_local1.mc.sonCouloir = sonCouloir;
_local1.mc._x = pointArret;
_local1.mc._visible = true;
_local1.mc.gotoAndStop("stand");
_local3["aso#42826"]["aso#74163"].attachMovie("pion", _local2, sonCouloir)._visible = false;
_local1.mc2 = _local3["aso#42826"]["aso#74163"][_local2];
_local1.mc2.playerColor = saCouleur;
laCouleur = new Color(_local1.mc2);
laCouleur.setRGB(saCouleur);
_local1.mc2._y = sonCouloir * 6;
_local1.mc2._visible = true;
tini = new Date().getTime();
_local3.aso#21654(_local3["aso#42826"]["aso#74163"][_local2], tini);
_local1.mc2.aso#23046();
var ps1 = org.omus.user.getProperties();
var sonPseudo = ps1.getOwner();
if (_local1.mc._name == sonPseudo) {
laCouleur = new Color(_local3.playerColor);
laCouleur.setRGB(saCouleur);
}
}
};
AvatarObjDemo = function (username, corridorNum, syncStatut) {
var _local1 = this;
var _local3 = _root;
if (syncStatut == "isRobot") {
var saCouleur = _global.startSlotColor[corridorNum];
var sesCoor = _global.startSlotCoor[corridorNum];
var _local2 = _global.startSlotCouloir[corridorNum];
_local3["aso#68174"].attachMovie("aso#41013", username, _local2)._visible = false;
_local1.mc = _local3["aso#68174"][username];
_local1.mc._y = -600;
_local1.mc.pseudo = username;
_local1.mc.playerColor = saCouleur;
laCouleur = new Color(_local1.mc.perso.brassard);
laCouleur.setRGB(saCouleur);
_local1.mc.level = _local2;
_local1.mc._y = sesCoor;
var pointArret = (-(_local2 * 7));
_local1.mc.sonCouloir = _local2;
_local1.mc._x = pointArret;
_local1.mc._visible = true;
_local1.mc.gotoAndStop("stand");
_local3["aso#42826"]["aso#74163"].attachMovie("pion", username, _local2)._visible = false;
_local1.mc2 = _local3["aso#42826"]["aso#74163"][username];
_local1.mc2.playerColor = saCouleur;
laCouleur = new Color(_local1.mc2);
laCouleur.setRGB(saCouleur);
_local1.mc2._y = _local2 * 6;
_local1.mc2._visible = true;
tini = new Date().getTime();
_local3.aso#21654(_local3["aso#42826"]["aso#74163"][username], tini);
_local1.mc2.aso#23046();
if (_local1.mc._name == _local3.username) {
laCouleur = new Color(_local3.playerColor);
laCouleur.setRGB(saCouleur);
}
}
};
AvatarObj.prototype.getNewProperties = function () {
var coridorNumFree = findFreeCoridor();
};
AvatarObj.prototype["aso#36416"] = function () {
var _local1 = this;
var _local3 = _local1.propSet.getValue("raceColor");
var sesCoor = _local1.propSet.getValue("raceCoor");
var _local2 = _local1.propSet.getValue("raceCoridor");
_local1.mc.playerColor = _local3;
laCouleur = new Color(_local1.mc.perso.brassard);
laCouleur.setRGB(_local3);
_local1.mc._y = sesCoor;
_local1.mc.level = _local2;
_local1.mc.sonCouloir = _local2;
_local1.mc.swapDepths(Number(_local2));
_local1.mc._x = -350;
_local1.mc._visible = true;
_local1.mc2.playerColor = _local3;
laCouleur = new Color(_local1.mc2);
laCouleur.setRGB(_local3);
_local1.mc2.swapDepths(Number(_local2));
_local1.mc2._y = _local2 * 6;
_local1.mc2._visible = true;
tini = new Date().getTime();
_root.aso#21654(_root["aso#42826"]["aso#74163"][username], tini);
_local1.mc2.aso#23046();
var ps1 = org.omus.user.getProperties();
var sonPseudo = ps1.getOwner();
if (_local1.mc._name == sonPseudo) {
laCouleur = new Color(_root.playerColor);
laCouleur.setRGB(_local3);
}
_local1.mc.aso#95885(_local2);
if ((_root.numUserInRoom <= 1) and (org.omus.group.getName() != "general")) {
_root.declareAdmin(username);
}
};
AvatarObj.prototype.changePos = function () {
var _local2 = this;
var _local1 = _local2.propSet.getValue("position");
_local2.mc._x = _local1.x;
_local2.mc._y = _local1.y;
};
AvatarObj.prototype.onSynchronize = function (propSet) {
if (propSet.contains("raceCoridor") and (_global.currentRoomName != "general")) {
this.aso#36416();
}
};
AvatarObj.prototype.remove = function () {
var _local1 = this;
result = _local1.propSet.removeListener(_local1);
clearInterval(_local1.MC.setInterval_ID);
_local1.mc.removeMovieClip();
_local1.mc2.removeMovieClip();
};
checkChatPermission = function () {
var _local1 = _root;
if ((_local1.chatPermission != "aso#36837") and (_local1.chatPermission != "")) {
_local1.attachMovie("clipPopupMessage", "clipPopupMessage0", 1);
_local1.clipPopupMessage0._x = 430;
_local1.clipPopupMessage0._y = 50;
_local1.clipPopupMessage0.champTitre = _global.TXT_titreInfo;
_local1.clipPopupMessage0.champMessage = _global.TXT_noPermissionToChat + _local1.chatPermission;
return("N");
}
return("aso#36837");
};
ChatObj = function () {
this.txt = new Array();
};
ChatObj.prototype.sendMsg = function () {
var _local2 = _root;
if ((Key.getCode() == 13) and (_local2.chatClip.input != "")) {
var _local3 = _local2.chatClip.input;
allowed = checkChatPermission();
if (allowed != "aso#36837") {
return(0);
}
var _local1 = new org.omus.Message("chat text");
chat_msg = new Array();
chat_msg.push(_global.chat_lang);
chat_msg.push(_local3);
_local1.getAttachment().chat_msg = chat_msg;
org.omus.messenger.sendToGroup(_local1);
_local2.chatClip.input = "";
return(1);
}
return(undefined);
};
ChatObj.prototype.sync_checkpoint = function (donnees) {
var _local1 = new org.omus.Message("sync_checkpoint");
_local1.getAttachment().params = donnees;
org.omus.messenger.sendToGroup(_local1);
};
ChatObj.prototype.sync_startRace = function (donnees) {
var _local1 = new org.omus.Message("start race");
_local1.getAttachment().params = donnees;
org.omus.messenger.sendToGroup(_local1);
};
ChatObj.prototype.sendMsgRaceEvent = function (donnees) {
var _local1 = new org.omus.Message("chat race");
_local1.getAttachment().params = donnees;
org.omus.messenger.sendToGroup(_local1);
};
ChatObj.prototype.sendMsgRaceEventAnnule = function (donnees) {
var _local1 = new org.omus.Message("chat race annule");
_local1.getAttachment().params = donnees;
org.omus.messenger.sendToGroup(_local1);
};
ChatObj.prototype.record_replay = function (donnees) {
var _local1 = new org.omus.Message("record action replay");
_local1.getAttachment().params = donnees;
org.omus.messenger.sendToGroup(_local1);
};
ChatObj.prototype.sync_chute = function (donnees) {
var _local1 = new org.omus.Message("chute");
org.omus.messenger.sendToGroup(_local1);
};
ChatObj.prototype.sync_finalPosition = function (donnees) {
var _local1 = new org.omus.Message("position finale");
_local1.getAttachment().params = donnees;
org.omus.messenger.sendToGroup(_local1);
};
ChatObj.prototype.sync_cptArebourg = function (donnees) {
var _local1 = new org.omus.Message("compteArebourg");
_local1.getAttachment().params = donnees;
org.omus.messenger.sendToGroup(_local1);
};
ChatObj.prototype.sendMsgPos = function (donnees) {
var _local1 = new org.omus.Message("avance");
_local1.getAttachment().params = donnees;
org.omus.messenger.sendToGroup(_local1);
};
ChatObj.prototype.onMessage = function (msg) {
if (msg.getSubject() == "chat text") {
if ((_global.restrict_chat_to_lang != "aso#36837") || ((_global.restrict_chat_to_lang == "aso#36837") and (msg.getAttachment().chat_msg[0] == _global.chat_lang))) {
if (this.txt.length >= 20) {
this.txt.shift();
}
this.txt.push((msg.getSender() + " : ") + msg.getAttachment().chat_msg[1]);
var str = "";
var i = 0;
while (i < this.txt.length) {
str = str + (this.txt[i] + "<br>");
i++;
}
_root.chatClip.chatText = str;
_root.chatClip.chatText.scroll = _root.chatClip.chatText.maxscroll;
_root.chatClip.scroller.setScrollTarget(_root.chatClip.theChatText);
}
}
if (msg.getSubject() == "chat race") {
if (this.txt.length >= 20) {
this.txt.shift();
}
convertedColor = "#" + msg.getAttachment().params[0].slice(2, 40);
if (msg.getAttachment().params[5] == "add") {
this.puceVisuelle = "0";
} else if (msg.getAttachment().params[5] == "chute") {
this.puceVisuelle = "X";
} else {
this.puceVisuelle = "0";
}
this.txt.push(((((((((((("<FONT color=\"" + convertedColor) + "\">[") + this.puceVisuelle) + "] : </FONT><FONT color=\"#FFFFFF\">") + msg.getAttachment().params[1]) + " ") + eval (msg.getAttachment().params[3])) + " ") + msg.getAttachment().params[2]) + " ") + eval (msg.getAttachment().params[4])) + "</FONT><br>");
var str = "";
var i = 0;
while (i < this.txt.length) {
str = str + (this.txt[i] + "<br>");
i++;
}
_root.chatClip.chatText = str;
_root.chatClip.chatText.scroll = _root.chatClip.chatText.maxscroll;
_root.chatClip.scroller.setScrollTarget(_root.chatClip.theChatText);
}
if (msg.getSubject() == "chat race annule") {
reInitRace();
_root.AnnuleMessageSent = null;
if (this.txt.length >= 20) {
this.txt.shift();
}
this.txt.push(("<FONT color=\"#FFFFFF\">" + _global.TXT_annule_race_1) + "</FONT>");
var str = "";
var i = 0;
while (i < this.txt.length) {
str = str + (this.txt[i] + "<br>");
i++;
}
_root.chatClip.chatText = str;
_root.chatClip.chatText.scroll = _root.chatClip.chatText.maxscroll;
_root.chatClip.scroller.setScrollTarget(_root.chatClip.theChatText);
}
if (msg.getSubject() == "start race") {
params = msg.getAttachment().params;
_root.MC_compteurDepart0.removeMovieClip();
_root.startMessageReceived = "aso#36837";
_root.aso#54383();
_root.aso#61764();
_root.initReplayAvatar();
}
if (msg.getSubject() == "syncProps") {
envoyeur = msg.getSender();
var propSet = org.omus.group.getUserProperties(envoyeur);
params = msg.getAttachment().params;
}
if (msg.getSubject() == "avance") {
params = msg.getAttachment().params;
envoyeur = msg.getSender();
_root.avance(envoyeur, params);
}
if (msg.getSubject() == "sync_checkpoint") {
envoyeur = msg.getSender();
params = msg.getAttachment().params;
mobile_updated = params[0];
lenom = params[0];
if (_root.replay_action_last_index[lenom] >= 0) {
prev_Xnext = _root["aso#42826"]["aso#74163"][lenom]["aso#30848"];
prev_Vnext = _root["aso#42826"]["aso#74163"][lenom]["aso#00903"];
prev_tpsDepart = _root["aso#42826"]["aso#74163"][lenom].t - _root["aso#42826"]["aso#74163"][lenom].tdepart;
prev_DeltaT = _root["aso#42826"]["aso#74163"][lenom].t - _root["aso#42826"]["aso#74163"][lenom].told;
_root.replay_action[replay_action_last_index[lenom]].replay_Xnext = prev_Xnext;
_root.replay_action[replay_action_last_index[lenom]].replay_Vnext = prev_Vnext;
_root.replay_action[replay_action_last_index[lenom]].replay_DeltaT = prev_DeltaT;
_root.replay_action[replay_action_last_index[lenom]].replay_tpsDepart = prev_tpsDepart;
}
_root.replay_action.push({nom:"R" + lenom, action:params[5], replay_Xnext:params[1], replay_Vnext:params[2], replay_DeltaT:params[3], replay_tpsDepart:params[4]});
replay_last_element = _root.replay_action.length - 1;
_root.replay_action_last_index[lenom] = replay_last_element;
if (_root["aso#42826"]["aso#74163"][mobile_updated].is_coureur_maitre != "aso#36837") {
aso#73742(_root["aso#42826"]["aso#74163"][mobile_updated], params);
}
if ((org.omus.user.getName() == params[0]) && (params[5] == "arrivee")) {
_root.ejectPlayerToReplay();
}
}
if (msg.getSubject() == "chute") {
params = msg.getAttachment().params;
envoyeur = msg.getSender();
if (envoyeur == _root.username) {
_root.aso#09676(_root["aso#42826"]["aso#74163"][envoyeur], 2, "chute");
}
_root["aso#68174"][envoyeur].gotoAndStop("chute");
_root["aso#68174"][envoyeur].setInterval_ID = setInterval(_root.get_up_and_run, _global.timePenalty - 300, envoyeur);
}
if (msg.getSubject() == "compteArebourg") {
params = msg.getAttachment().params;
envoyeur = msg.getSender();
_root.mc_clock.aso#58980(params);
}
if (msg.getSubject() == "close room") {
params = msg.getAttachment().params;
_root.closeRace(params);
if ((_global.currentRoomName != "general") and (_global.currentRoomName == params)) {
_root["aso#82936"] = new Array();
var ar = org.omus.group.getAllUserProperties();
var i = 0;
while (i < ar.length) {
var propSet = ar[i];
_root["aso#82936"].push(propSet.getOwner());
if (_root.room.users[propSet.getOwner()].mc.pseudo != propSet.getOwner()) {
_root.room.users[propSet.getOwner()] = new _root.AvatarObj(propSet, _root.room.depth++, "isSync");
_root.room.users[propSet.getOwner()].aso#36416();
}
i++;
}
}
}
if (msg.getSubject() == "open room") {
params = msg.getAttachment().params;
_root.openRace(params);
}
if (msg.getSubject() == "record action replay") {
params = msg.getAttachment().params;
}
if (msg.getSubject() == "position finale") {
params = msg.getAttachment().params;
_root["aso#68174"][params].gotoAndStop("stop");
}
};
InfGeneObj = function () {
this.txt = new Array();
};
InfGeneObj.prototype.closeGroupeRace = function (donnees) {
var _local1 = new org.omus.Message("close room");
_local1.getAttachment().params = donnees;
org.omus.messenger.sendToAll(_local1);
};
InfGeneObj.prototype.openGroupeRace = function (donnees) {
var _local1 = new org.omus.Message("open room");
_local1.getAttachment().params = donnees;
org.omus.messenger.sendToAll(_local1);
};
login = new LoginObj();
room = new RoomObj();
chat = new ChatObj();
infoGenerale = new InfGeneObj();
_global.LINK_parrainage_url = "sponsoring2.php?mode=momentum";
_global.TXT_entrer1 = "Enter";
_global.TXT_ecran1_texte = "Challenge the gods of the stadium, and engrave your name at the pantheon of the greatest athletes !";
_global.TXT_titre1 = "Races available";
_global.TXT_titre2 = "Choose a race and validate to start";
_global.TXT_pb_player_check = "Problem at the race registration, please try again";
_global.TXT_pb_player_check_title = "Race registration";
_global.TXT_colone1 = "RACE NAME";
_global.TXT_colone2 = "RACE TYPE";
_global.TXT_colone3 = "ENTRANCE";
_global.TXT_colone4 = "PLAYERS";
_global.TXT_colone5 = "CHOICE";
_global.TXT_valider = "Validate";
_global.TXT_close = "Close";
_global.TXT_titreChat = "Chat";
_global.TXT_please_wait = "Please wait...";
_global.TXT_connection = "Connecting";
_global.TXT_titreInfo = "Informations";
_global.TXT_e1_info1 = "Number of players";
_global.TXT_e1_info2 = "Number of races";
_global.TXT_e1_info3 = "<u>Rules</u>";
_global.TXT_e1_info4 = "Connected members";
_global.TXT_e1_info5 = "Available credits : ";
_global.TXT_e1_info6 = "next race cost : ";
_global.TXT_e1_info7 = "<font color=\"#33FF00\">Free</font>";
_global.TXT_e1_info8 = "credits";
_global.TXT_e1_info9 = "Volume";
_global.TXT_e1_info10 = "INVITE A FRIEND";
_global.TXT_e1_info11 = "Unknown";
_global.TXT_e1_info12 = "Closed";
_global.TXT_e1_info13 = "Please qualify";
_global.TXT_piedPage = "Choose a race and validate to join your competitors. You're about to challenge other players in real time !";
_global.TXT_noPermissionToChat = "You can't use the chat yet.<br>";
_global.TXT_player_color = "Your color : ";
_global.TXT_player_time_response = "Response time";
_global.TXT_player_time_response_1 = "Min";
_global.TXT_player_time_response_2 = "Max";
_global.TXT_player_speed = "Speed : ";
_global.TXT_player_number = "Players engaged";
_global.TXT_player_energ_max = "MAX ENERGY";
_global.TXT_player_energ_min = "MIN ENERGY";
_global.TXT_player_position = "Positions";
_global.TXT_button_skip = "Skip";
_global.TXT_button_confirm = "Validate";
_global.TXT_button_next = "Next";
_global.TXT_button_prev = "Previous";
_global.TXT_link_see_players = "<u>See</u>";
_global.TXT_room_statut_open = "Waiting players";
_global.TXT_room_statut_full = "Race pending";
_global.TXT_room_statut_waiting_data = "Loading...";
_global.TXT_room_for_all = "For all";
_global.TXT_room_intermediary = "Intermediary";
_global.TXT_room_champion = "Champions";
_global.TXT_room_top_hour = "(from 20:30 to 21:30)";
_global.TXT_room = "Race";
_global.TXT_room_daily_final = "Daily finals";
_global.TXT_registration = "Registration";
_global.raceCatPureFoot = "Pure foot";
_global.raceCatPureSport = "Pure sport";
_global.raceCatGeneralCulture = "General culture";
_global.TXT_annule_race_1 = ("[Start delayed] : less than " + _global.MinimumPlayer) + " players";
_global.TXT_annule_race_2 = "[EVENEMENT] : starting countdown over";
_global.TXT_chat_welcome = "Welcome !<br>";
_global.TXT_event_race_1 = "Answers false and bites the dust";
_global.TXT_event_race_2 = "crosses the arrival line !!!";
_global.TXT_event_race_3 = "answers correctly and makes";
_global.TXT_event_race_4 = "points of energy";
_global.TXT_quiz_1 = "ALLOCATED TIME OVER";
_global.TXT_quiz_2 = "You move to next question";
_global.TXT_quiz_3 = "CORRECT ANSWER";
_global.TXT_quiz_4 = "You make an energy upgrade of";
_global.TXT_quiz_5 = "points";
_global.TXT_quiz_6 = "BAD ANSWER";
_global.TXT_quiz_7 = "You bite the dust !";
_global.TXT_quiz_8 = "END OF YOUR QUIZ";
_global.TXT_quiz_9 = "PLEASE WAIT FOR THE END OF THE RACE";
_global.TXT_quiz_10 = "End of your Quiz, you can't gain additionnal energy. Please wait for the end of the race to know the winner";
_global.TXT_quiz_11 = "Race replay";
_global.TXT_quiz_12 = "Possible answers will be displayed here";
_global.TXT_quiz_13 = "When the race starts, questions will appear here.\nGLORY TO THE WINNER";
_global.TXT_quiz_14 = "You prefer to skip this question. Your opponents may gain precious centimers";
_global.TXT_quiz_error_load = "Problem during Quiz loading, you can't enter this race";
_global.TXT_start_sync_pb = "Problem when starting the race, please try again";
_global.TXT_race_close_pb = "Problem when closing this race. Please try again";
_global.TXT_race_syn_evt_early_pb = "Problem of synchronisation with your player. We recommend you use the low resolutiuon game mode to overcome this problem.";
_global.TXT_race_syn_evt_late_pb = "Problem of synchronisation with your player at arrival. We recommend you use the low resolutiuon game mode to overcome this problem.";
_global.TXT_race_mess_depart = "START !";
_global.TXT_load_connected = "Loading list of players registerd to the race";
_global.TXT_no_user_connected = "no participant present";
_global.TXT_popup_classement_1 = "REPLAY ACTION \u00A4 RACE STANDINGS \u00A4";
_global.TXT_popup_classement_2 = "";
_global.TXT_popup_classement_3 = "";
_global.TXT_camera_on = "Camera on";
_global.TXT_room_1 = "has joined the room";
_global.TXT_room_1_bis = "has joined the race";
_global.TXT_room_2 = "has left the room";
_global.TXT_room_3 = "Impossible to join this race";
_global.TXT_room_4 = "This race does not exist, please try again";
_global.TXT_room_5 = "Please try another race or come back later";
_global.TXT_room_6 = "This race is now full, please try joining another one";
_global.TXT_room_7 = "This race is closed, please try joining another one";
_global.warning_credits = "Your credits";
_global.TXT_overview_arrive = "Arrival";
_global.TXT_overview_depart = "Departure";
_global.TXT_termination = "";
_global.TXT_termination_single = "";
_global.TXT_paging_link = "<u>Standings</u>";
_global.TXT_helptitle = "Rules";
_global.TXT_help1 = "Use your mouse to select an answer and validate to give more energy to your Runner. CAUTION Always prefer the \"SKIP\" option when you don't know if you don't want your knees to hurt!";
_global.TXT_help2 = "If you answer incorrectly to a question, your runner falls a wastes a precious time. <u>Always prefers the option \"Skip\"</u> as it doesn't cause any time penalty, rather than answering false.";
_global.TXT_help3 = "The race starts when 6 players will have joined. The first 2 runners at the arrival can play again !\n The speed of your connection has no influence on the race results; To be a winner, you thus just need to have a big a head and strong legs !";
_global.TXT_helpclose = "Click to close the window";
_global.TXT_low_resolution_help = "High resolution recommended for pentium 4 / 1 Ghz or equivalent";
_global.TXT_high_resolution = "High resolution";
_global.TXT_low_resolution = "Low resolution";
_global.TXT_CR_key = ">ENTER key";
_global.TXT_back_to_main_room = "Back to lobby";
_global.TXT_launching_race_in = "Race starting in :";
_global.TXT_get_prepared_next_quest = "Get prepared for next question...";
_global.TXT_record_time = "RECORD TIME :";
_global.TXT_cam_selector = "Camera selector";
_global.TXT_podium = "< PODIUM >";
_global.TXT_alert_title = "[X] Alerte [X]";
_global.TXT_warning_title = "< WARNING >";
_global.ttip_norm_GK = "Race counting for the hourly tournaments. Get in the top players to be qualified for the Nighlty races";
_global.ttip_noct_GK = "<b>Great Nightly Race :</b> counts for the monthly Momentum ranking. Get in the leaderboard of an Hourly tournament to participate";
_global.ttip_kam_GK = "<b>Special Kamikaze !</b> You just can't skip a question, so you better know the answer or guess right ! (reserved for level 5 players and above, or Gold players)";
_global.race_kamikaze = "Special Kamikaze!";
_global.txt_boom = "Splash!";
_global.skipButtonLabel = _global.TXT_button_skip;
_global.txt_enter_name = "ENTER A NICKNAME";
_global.txt_REPLAY = "PLAY AGAIN!";
_global.txt_NEXT_LEVEL = "TRY NEXT LEVEL!";
_global.txt_enter_level_code = "Resume game (enter code)";
_global.TXT_badLevelCode = "Wrong Code !<br><br>The Level code is provided at the end of each race.";
_global.TXT_congrats_levelX = "Congratulations, you have reached level";
_global.TXT_sorry_you_lost = "Sorry, you have not been selected for next level, try again!";
_global.TXT_congrats_level_code = "your level code:";
_global.TXT_default_pseudo = "Your_Nick";
_global.TXT_pseudo_used = "This nickname is already used, please choose another one.";
_global.TXT_pseudo_not_empty = "Nickname can not be empty, please choose one.";
_global.TXT_LEVEL = "LEVEL";
_global.TXT_SITENAME = "CAESARSQUIZ.COM";
_global.TXT_nomoreQuizRedirect = ((("<br><br>No more Quizzes available is this Demo. Play more Quizzes for Free and win Prizes at <a target='_blank' href='" + _global["aso#15665"]) + "?aff_id=9996'><u>") + _global.TXT_SITENAME) + "</u></a>!";
_global.race_stadium1 = "Race 1";
_global.race_stadium2 = "Race 2";
_global.race_stadium3 = "Race 3";
_global.race_stadium4 = "Race 4";
_global.race_stadium5 = "Race 5";
_global.race_stadium6 = "Race 6";
_global.race_stadium7 = "Race 7";
_global.race_stadium8 = "Race 8";
_global.race_stadium9 = "Race 9";
_global.race_stadium10 = "Race 10";
_global.race_stadium11 = "Race 11";
var roomsStatut = ["", _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open, _global.TXT_room_statut_open];
var roomData = [{roomsConfigName:"general", roomscategory:0, aso#44218:0, roomsName:_global.TXT_registration, roomsType:"", roomBackGroundTypes:0, aso#57588:"", aso#63577:1, roomsMaxUser:200, state:"open"}, {roomsConfigName:"race1", roomscategory:0, aso#44218:1, roomsName:_global.TXT_room + " 1", roomsType:_global.TXT_room_for_all, roomBackGroundTypes:3, aso#57588:_global.ttip_norm_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race2", roomscategory:0, aso#44218:1, roomsName:_global.TXT_room + " 2", roomsType:_global.TXT_room_for_all, roomBackGroundTypes:3, aso#57588:_global.ttip_norm_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race3", roomscategory:0, aso#44218:1, roomsName:_global.TXT_room + " 3", roomsType:_global.TXT_room_for_all, roomBackGroundTypes:3, aso#57588:_global.ttip_norm_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race4", roomscategory:0, aso#44218:1, roomsName:_global.TXT_room + " 4", roomsType:_global.TXT_room_for_all, roomBackGroundTypes:3, aso#57588:_global.ttip_norm_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race5", roomscategory:0, aso#44218:1, roomsName:_global.TXT_room + " 5", roomsType:_global.TXT_room_for_all, roomBackGroundTypes:3, aso#57588:_global.ttip_norm_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race6", roomscategory:0, aso#44218:1, roomsName:_global.TXT_room + " 6", roomsType:_global.TXT_room_for_all, roomBackGroundTypes:3, aso#57588:_global.ttip_norm_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race7", roomscategory:0, aso#44218:2, roomsName:(_global.TXT_room_daily_final + " ") + _global.TXT_room_top_hour, roomsType:_global.TXT_room_champion, roomBackGroundTypes:3, aso#57588:_global.ttip_noct_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race8", roomscategory:0, aso#44218:2, roomsName:(_global.TXT_room_daily_final + " ") + _global.TXT_room_top_hour, roomsType:_global.TXT_room_champion, roomBackGroundTypes:3, aso#57588:_global.ttip_noct_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race9", roomscategory:0, aso#44218:2, roomsName:(_global.TXT_room_daily_final + " ") + _global.TXT_room_top_hour, roomsType:_global.TXT_room_champion, roomBackGroundTypes:3, aso#57588:_global.ttip_noct_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race18", roomscategory:0, aso#44218:2, roomsName:(_global.TXT_room_daily_final + " ") + _global.TXT_room_top_hour, roomsType:_global.TXT_room_champion, roomBackGroundTypes:3, aso#57588:_global.ttip_noct_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race10", roomscategory:0, aso#44218:1, roomsName:_global.TXT_room + " 10", roomsType:_global.TXT_room_for_all, roomBackGroundTypes:3, aso#57588:_global.ttip_norm_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race11", roomscategory:0, aso#44218:1, roomsName:_global.TXT_room + " 11", roomsType:_global.TXT_room_for_all, roomBackGroundTypes:3, aso#57588:_global.ttip_norm_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race12", roomscategory:0, aso#44218:1, roomsName:_global.TXT_room + " 12", roomsType:_global.TXT_room_for_all, roomBackGroundTypes:3, aso#57588:_global.ttip_norm_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race13", roomscategory:0, aso#44218:1, roomsName:_global.TXT_room + " 13", roomsType:_global.TXT_room_for_all, roomBackGroundTypes:3, aso#57588:_global.ttip_norm_GK, aso#63577:0, roomsMaxUser:6, state:"open"}, {roomsConfigName:"race14", roomscategory:0, aso#44218:1, roomsName:_global.race_kamikaze, roomsType:_global.race_lvl_6, roomBackGroundTypes:3, aso#57588:_global.ttip_kam_GK, aso#63577:1, roomsMaxUser:6, state:"open"}];
var backgroundTypes = ["aso#35995", "aso#30006", "aso#55354", "aso#87112", "aso#92680"];
var AvatarTypes = ["aso#67332", "aso#80702", "aso#18028", "aso#61343"];
var AvatarInstances = Array();
var containerTopRaceNb = 1;
var roomsTypeBanners = Array();
roomsTypeBanners[1] = "";
roomsTypeBanners[2] = "lauriers";
roomsTypeBanners[3] = "";
var roomsStatut_openClose = [{nom:"general", room:"open"}, {nom:"race1", room:"open"}, {nom:"race2", room:"open"}, {nom:"race3", room:"open"}, {nom:"race4", room:"open"}, {nom:"race5", room:"open"}, {nom:"race6", room:"open"}, {nom:"race7", room:"open"}, {nom:"race8", room:"open"}, {nom:"race9", room:"open"}, {nom:"race18", room:"open"}, {nom:"race10", room:"open"}, {nom:"race11", room:"open"}, {nom:"race12", room:"open"}, {nom:"race13", room:"open"}, {nom:"race14", room:"open"}];
_global["aso#00061"] = ["freeSlot", "freeSlot", "freeSlot", "freeSlot", "freeSlot", "freeSlot"];
_global.startSlotColor = ["0x00FF00", "0xFF0000", "0x0000FF", "0xFFFF00", "0xFF00FF", "0x0099FF"];
_global.startSlotCoor = ["0", "20", "40", "60", "80", "100"];
_global.startSlotCouloir = ["1", "2", "3", "4", "5", "6"];
MovieClip.prototype["aso#95885"] = function (numCouloir) {
var _local1 = this;
var pointArret = (-(numCouloir * 7));
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1._x < (pointArret - 10)) {
_local1.gotoAndStop("runVitesse1");
_local1._x = _local1._x + 5;
} else if (_local1._x < pointArret) {
_local1.gotoAndStop("stand");
_local1._x = _local1._x + 1;
} else {
_local1._x = pointArret;
_local1.gotoAndStop("stand");
delete _local1.onEnterFrame;
}
};
};
Set("aso#68724", function () {
_root.aso#54383();
});
Set("aso#53962", function () {
var _local1 = _root;
_local1.arrierePlan.attachMovie("aso#87112", "aso#93101", 1);
exit();
if (_global.gameResolution == "haute") {
var theBackgroundType = _local1.roomData[_local1.roomNumberSelected].roomBackGroundTypes;
var theBackgroundClip = _local1.backgroundTypes[theBackgroundType];
_local1.arrierePlan.attachMovie(theBackgroundClip, "aso#93101", 1);
} else {
_local1.arrierePlan.attachMovie("aso#49365", "aso#86691", 1);
}
var _local2 = _local1.roomsTypeBanners[_local1.roomData[_local1.roomNumberSelected]["aso#44218"]];
if (_local2 != "") {
var _local3 = 50;
var nbBanner = 2;
var xSpan = 700;
var xini = 350;
_local1.arrierePlan.attachMovie(_local2, "bannerMovie0", 2);
_local1.arrierePlan.bannerMovie0._xscale = _local3;
_local1.arrierePlan.bannerMovie0._yscale = _local3;
_local1.arrierePlan.bannerMovie0._x = 350;
_local1.arrierePlan.bannerMovie0._y = 45;
_local1.arrierePlan.attachMovie(_local2, "bannerMovie1", 3);
_local1.arrierePlan.bannerMovie1._xscale = _local3;
_local1.arrierePlan.bannerMovie1._yscale = _local3;
_local1.arrierePlan.bannerMovie1._x = 1050;
_local1.arrierePlan.bannerMovie1._y = 45;
}
});
dataSender = new LoadVars();
dataReceiver = new LoadVars();
sender = function (URL, varName, varParams) {
var _local2 = this;
var _local3 = _root;
var _local1 = 0;
while (_local1 < varName.length) {
dataSender[varName[_local1]] = varParams[_local1];
_local1++;
}
dataReceiver.onLoad = function () {
var _local1 = this;
var _local2 = _root;
var _local3 = _global;
_local2.activateBoutonValide();
if (_local1.answer == "ok") {
if (_local1.controle == "quizAutorisation") {
_local2.roomNumberSelected = _local1.room_id;
_local2.room.onClick(_local2.roomData[_local2.roomNumberSelected].roomsConfigName);
if (_local1.course_id != null) {
_local2.course_id = _local1.course_id;
}
if (_local1.race_length != null) {
_local2.xarr = _local1.race_length;
}
} else if (_local1.phpMessage != "") {
_local2.attachMovie("clipPopupMessage", "clipPopupMessage0", 1);
_local1.mcPop = _local2.clipPopupMessage0;
_local1.mcPop._x = 430;
_local1.mcPop._y = 50;
_local1.mcPop.champTitre = _local3.TXT_titreInfo;
_local1.mcPop.champMessage = _local1.phpMessage;
}
} else if (_local1.controle == "quizAutorisation") {
removeMovieClip(_local2.clipPopupWait0);
_local2.attachMovie("clipPopupMessage", "clipPopupMessage0", 1);
_local1.mcPop = _local2.clipPopupMessage0;
_local1.mcPop._x = 250;
_local1.mcPop._y = 110;
_local1.mcPop.champTitre = _local3.TXT_pb_player_check_title;
if (_local1.phpMessage != "") {
_local1.mcPop.champMessage = _local1.phpMessage;
} else {
_local1.mcPop.champMessage = _local3.TXT_pb_player_check;
}
}
};
titre = "V\u00E9rification...";
dataSender.sendAndLoad(URL, dataReceiver, "POST");
};
postThisPlayerData = function () {
};
Array.prototype.sortOn = function (p) {
var _local1 = function (a, b) {
return(a[p] > b[p]);
};
this.sort(_local1);
};
Array.prototype.sortOn2 = function (p, q) {
var _local1 = function (a, b) {
var _local1 = b;
var _local2 = a;
if (_local2[p] != _local1[p]) {
return(_local2[p] > _local1[p]);
}
return(_local2[q] > _local1[q]);
};
this.sort(_local1);
};
sortC = function (arr) {
arr.sortOn2("temps", "nom");
return(arr);
};
calcul_chrono = function (temps) {
var _local1 = temps;
hours = Math.floor(_local1 / 3600);
min = Math.floor((_local1 - (hours * 3600)) / 60);
if (min < 10) {
min = "0" + min;
}
sec = (_local1 - (hours * 3600)) - (min * 60);
sec_arr = math.round(sec * 10000) / 10000;
sec = sec_arr;
if (sec < 10) {
sec = "0" + sec;
}
return(((((hours + "h : ") + min) + "m : ") + sec) + "s");
};
MovieClip.prototype.testRaceEnded = function () {
this.onEnterFrame = function () {
if (_root.numUserInRoom >= 3) {
}
};
};
sync_checkpoint = function (params) {
var _local1 = _root;
var _local2 = params;
return(0);
};
MovieClip.prototype["aso#23046"] = function () {
var _local1 = _root;
this.onEnterFrame = function () {
var _local1 = _root;
if (_local1.race_started != "aso#36837") {
return(0);
}
t = new Date().getTime();
var _local3 = _local1.username;
if (t >= (this.t + 20)) {
_local1.aso#97698(_local1["aso#42826"]["aso#74163"][_local3], t);
_local1.positionMasterRunner = _local1["aso#68174"][_local3]._x;
X = _local1["aso#42826"]["aso#74163"][_local3]["aso#18870"] + _local1["aso#42826"]["aso#74163"][_local3]["aso#56196"];
_local1.ref_maitre_X = X;
_local1["aso#42826"]["aso#74163"][_local3].sonCouloir = _local1["aso#68174"][_local3].getDepth();
_local1.ref_maitre_coridor = _local1["aso#42826"]["aso#74163"][_local3].sonCouloir;
_local1.distanceParcouru = X;
_local1["aso#68174"][_local3].distanceParcouru = X;
if (X > Number(_global.longueurCourse - 1000)) {
_local1.finishLine._x = Number(_global.longueurCourse - X) + 300;
}
_local1["aso#42826"]["aso#74163"][_local3]._x = Number((X * 200) / _global.longueurCourse);
if (X > -1050) {
X = X % 700;
}
_local1.arrierePlan._x = -X;
_local1.barreEnergie._height = _local1["aso#42826"]["aso#74163"][_local3].Et;
var _local2 = 0;
while (_local2 < _local1["aso#82936"].length) {
mobile = _local1["aso#82936"][_local2];
if (_local1["aso#42826"]["aso#74163"][mobile].is_coureur_maitre != "aso#36837") {
_local1.aso#97698(_local1["aso#42826"]["aso#74163"][mobile], t);
X = _local1["aso#42826"]["aso#74163"][mobile]["aso#30848"];
_local1["aso#42826"]["aso#74163"][mobile]._x = Number((X * 200) / _global.longueurCourse);
if (X != 0) {
_local1["aso#68174"][_local1["aso#42826"]["aso#74163"][mobile]._name].distanceParcouru = X;
_local1["aso#42826"]["aso#74163"][mobile].ecartRelatif = Number(_local1.ref_maitre_X - X);
_local1["aso#42826"]["aso#74163"][mobile].sonCouloir = _local1["aso#68174"][_local1["aso#42826"]["aso#74163"][mobile]._name].getDepth();
coridorMaitre = _local1["aso#68174"][_local1.username].getDepth();
_local1["aso#42826"]["aso#74163"][mobile].difCoridorPix = Math.abs(_local1["aso#42826"]["aso#74163"][mobile].sonCouloir - coridorMaitre);
if (_local1["aso#42826"]["aso#74163"][mobile].sonCouloir > coridorMaitre) {
_local1["aso#42826"]["aso#74163"][mobile].thisRunnerPosition = (_local1["aso#68174"][_local1.username]._x - _local1["aso#42826"]["aso#74163"][mobile].ecartRelatif) - (_local1["aso#42826"]["aso#74163"][mobile].difCoridorPix * 7);
_local1["aso#68174"][_local1["aso#42826"]["aso#74163"][mobile]._name]._x = _local1["aso#42826"]["aso#74163"][mobile].thisRunnerPosition;
} else {
_local1["aso#42826"]["aso#74163"][mobile].thisRunnerPosition = (_local1["aso#68174"][_local1.username]._x - _local1["aso#42826"]["aso#74163"][mobile].ecartRelatif) + (_local1["aso#42826"]["aso#74163"][mobile].difCoridorPix * 7);
_local1["aso#68174"][_local1["aso#42826"]["aso#74163"][mobile]._name]._x = _local1["aso#42826"]["aso#74163"][mobile].thisRunnerPosition;
}
}
}
_local2++;
}
} else {
return(0);
}
return(undefined);
};
};
refund = function () {
};
Set("aso#31398", function () {
src = new String("");
src = _root.xml_quiz.xml_string;
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMabcdefghijklmnopqrstuvwxyzabcdefghijklm";
var _local3 = new String("");
k = 0;
m = 0;
var _local1 = 0;
while (_local1 < src.length) {
k = _local1 % 200;
if (k == 0) {
src2 = src.substr(m * 200, 200);
m++;
}
kold = k + 1;
character = src2.charAt(k);
var _local2 = chars.indexOf(character);
if (_local2 > -1) {
character = chars.charAt(_local2 + 13);
}
_local3 = _local3 + character;
_local1++;
}
_root["aso#94914"] = new XML(_local3);
_root.aso#40592();
});
Set("aso#03266", function () {
var _local2 = _root;
src = new String("");
src = _local2.xml_quiz.xml_string;
var _local1 = new String("");
_local1 = aso#59951(src);
_local2["aso#94914"] = new XML(_local1);
_local2.aso#40592();
});
Set("aso#61764", function () {
_root.ecranPartieJeu.champQuestion = "";
_root.aso#27643();
});
Set("aso#46581", function (num) {
if (num <= _global["aso#45610"][num].length) {
var racine = _root.ecranPartieJeu;
_root.ecranPartieJeu.champQuestion = _global["aso#45610"][num];
var i = 0;
while (i < _global["aso#96306"][num].length) {
eval ("_root.ecranPartieJeu.boutRep" + i)._visible = true;
_root.ecranPartieJeu.boutV._visible = true;
_root.ecranPartieJeu.boutP._visible = true;
eval ("_root.ecranPartieJeu.boutRep" + i).reponse = _global["aso#96306"][num][i];
eval ("_root.ecranPartieJeu.boutRep" + i).reponseNumber = i;
i++;
}
_root.ecranPartieJeu.confirmationReponse.champMessage = "";
_root.ecranPartieJeu.confirmationReponse._visible = false;
_root.ecranPartieJeu.barreTempsRep.tempsDeReponse(_global["aso#84328"][num]);
} else {
_root.aso#72350("noQuiz");
}
});
deleteQuestionClips = function () {
var _local1 = _root;
_local1.ecranPartieJeu.boutV._visible = false;
_local1.ecranPartieJeu.boutP._visible = false;
_local1.ecranPartieJeu.boutRep0._visible = false;
_local1.ecranPartieJeu.boutRep1._visible = false;
_local1.ecranPartieJeu.boutRep2._visible = false;
_local1.ecranPartieJeu.boutRep3._visible = false;
_local1.ecranPartieJeu.boutRep0.greenmask._visible = false;
_local1.ecranPartieJeu.boutRep1.greenmask._visible = false;
_local1.ecranPartieJeu.boutRep2.greenmask._visible = false;
_local1.ecranPartieJeu.boutRep3.greenmask._visible = false;
_local1.ecranPartieJeu.boutRep0.redmask._visible = false;
_local1.ecranPartieJeu.boutRep1.redmask._visible = false;
_local1.ecranPartieJeu.boutRep2.redmask._visible = false;
_local1.ecranPartieJeu.boutRep3.redmask._visible = false;
_local1.ecranPartieJeu.confirmationReponse._visible = true;
};
HighlightAnswer = function (reponseJoueur) {
_root.ecranPartieJeu.boutV._visible = false;
_root.ecranPartieJeu.boutP._visible = false;
var skip = "N";
if (reponseJoueur == -1) {
skip = "aso#36837";
}
reponseJoueur--;
correctAnswer = Number(_global["aso#66361"][_root.nextQuestionNum]) - 1;
if (reponseJoueur == correctAnswer) {
eval ("_root.ecranPartieJeu.boutRep" + correctAnswer).greenmask._visible = true;
} else {
eval ("_root.ecranPartieJeu.boutRep" + reponseJoueur).redmask._visible = true;
if (_global.frameActu == "replay") {
eval ("_root.ecranPartieJeu.boutRep" + correctAnswer).greenmask._visible = true;
}
}
_root.ecranPartieJeu.confirmationReponse._visible = true;
};
validateQuestion = function (reponseJoueur) {
var _local1 = _root;
var _local2 = _global;
_local1.HighlightAnswer(reponseJoueur);
_local1.ecranPartieJeu.champQuestion = "";
if (reponseJoueur == _local2["aso#66361"][_local1.nextQuestionNum]) {
_local1.aso#39621(reponseJoueur);
_local1.aso#39621(_local1.ecranPartieJeu.barreTempsRep.tpDif);
var addEner1 = _local2["aso#52991"][_local1.nextQuestionNum];
var addEner2 = (_local2["aso#52991"][_local1.nextQuestionNum] * (1 - (_local1.ecranPartieJeu.barreTempsRep.tpDif / _local2["aso#84328"][_local1.nextQuestionNum])));
var _local3 = Number(addEner2);
_local1.aso#75134(_local1["aso#42826"]["aso#74163"][_local1.username], Number(_local3));
_local1["aso#42826"]["aso#74163"][_local1.username].is_coureur_maitre = "aso#36837";
_local1.ecranPartieJeu.confirmationReponse.champMessage2 = (((((_local2.TXT_quiz_3 + newline) + _local2.TXT_quiz_4) + " : ") + (Math.round(100 * _local3) / 100)) + " ") + _local2.TXT_quiz_5;
_local1.aso#27643();
} else if (reponseJoueur == "NSP") {
_local1.aso#39621("x");
_local1.aso#39621("NSP");
_local1.HighlightAnswer(-1);
_local1.ecranPartieJeu.champQuestion = "";
_local1.ecranPartieJeu.confirmationReponse.champMessage2 = _local2.TXT_quiz_14;
_local1.aso#27643();
} else {
_local1.aso#39621("x");
_local1.aso#39621("MQ");
_local1.ecranPartieJeu.confirmationReponse.champMessage2 = (_local2.TXT_quiz_6 + newline) + _local2.TXT_quiz_7;
_local1.aso#09676(_local1["aso#42826"]["aso#74163"][_local1.username], 2, "chute");
_local1["aso#68174"][_local1.username].gotoAndStop("chute");
_local1["aso#68174"][_local1.username].setInterval_ID = setInterval(_local1.get_up_and_run, _local2.timePenalty - 300, _local1.username);
_local1.aso#27643();
}
_local1.nextQuestionNum = _local1.nextQuestionNum + 1;
};
Set("aso#72350", function (raison) {
var _local1 = _root;
var _local2 = _global;
_local1.ecranPartieJeu.boutV._visible = false;
_local1.ecranPartieJeu.boutP._visible = false;
_local1.ecranPartieJeu.boutRep0._visible = false;
_local1.ecranPartieJeu.boutRep1._visible = false;
_local1.ecranPartieJeu.boutRep2._visible = false;
_local1.ecranPartieJeu.boutRep3._visible = false;
delete _local1.ecranPartieJeu.mc_waitInterQ.cache.onEnterFrame;
delete _local1.ecranPartieJeu.barreTempsRep.onEnterFrame;
_local1.ecranPartieJeu.confirmationReponse._visible = true;
_local1.ecranPartieJeu.mc_waitInterQ._visible = false;
_local1.quizAutorized = "N";
if ((raison == "noQuiz") and (_local2.frameActu != "replay")) {
_local1.ecranPartieJeu.confirmationReponse.champMessage = (_local2.TXT_quiz_8 + newline) + _local2.TXT_quiz_9;
_local1.ecranPartieJeu.champQuestion = _local2.TXT_quiz_10;
_local1.ecranPartieJeu.confirmationReponse.champMessage2 = "";
} else if (raison == "replay") {
_local1.ecranPartieJeu.champQuestion = _local2.TXT_quiz_11;
_local1.ecranPartieJeu.confirmationReponse.champMessage = "";
_local1.ecranPartieJeu.confirmationReponse.champMessage2 = "";
}
});
MovieClip.prototype.tempsDeReponse = function (temps) {
var _local1 = this;
var _local2 = _root;
_local1.tpDebut = getTimer();
_local1.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1.tpEnCours = getTimer();
_local1.tpDif = _local1.tpEnCours - _local1.tpDebut;
_local1.barreTailleInit = 95;
if (_local1.tpDif <= temps) {
_local1._width = (_local1.barreTailleInit * (temps - _local1.tpDif)) / temps;
} else {
if (_local2.skipEnabled == "N") {
_local2.chat.sync_chute();
}
_local2.aso#39621("x");
_local2.aso#39621("TIMEOUT");
_local2.deleteQuestionClips();
_local2.ecranPartieJeu.confirmationReponse.champMessage = (_global.TXT_quiz_1 + newline) + _global.TXT_quiz_2;
_local2.ecranPartieJeu.champQuestion = "";
_local2.nextQuestionNum = _local2.nextQuestionNum + 1;
_local2.aso#27643();
delete _local1.onEnterFrame;
}
};
};
MovieClip.prototype["aso#52570"] = function () {
var _local1 = _root;
var _local2 = this;
var temps = _global.timeInterQ;
var tpDebut = getTimer();
_local2.onEnterFrame = function () {
var _local1 = _root;
var tpEnCours = getTimer();
var _local3 = tpEnCours - tpDebut;
var _local2 = 46;
if (_local1.quizAutorized == "N") {
_local1.ecranPartieJeu.mc_waitInterQ._visible = false;
delete this.onEnterFrame;
}
if (_local3 <= temps) {
this._width = _local2 - ((_local2 * _local3) / temps);
} else {
_local1.ecranPartieJeu.mc_waitInterQ._visible = false;
_local1.deleteQuestionClips();
_local1.aso#46581(_local1.nextQuestionNum);
delete this.onEnterFrame;
}
};
};
MovieClip.prototype["aso#58980"] = function (initTime) {
var _local1 = _root;
var _local2 = this;
var _local3 = _global;
_local2.timeToSet = null;
delete _local2.onEnterFrame;
_local2.tpDebut = getTimer();
_local2.timeToSet = Number(initTime);
_local1.quiz_demanded = "N";
_local1.startMessageReceived = null;
_local1.checkedAdminCountdown = null;
_local1.checkedAdminStart = null;
_local1.StartMessageSent = null;
_local1.AnnuleMessageSent = null;
_local1.checked = null;
_local1.CloseRoomMessageSent = null;
_local1.raceResultsSent = null;
_local1.checkAdminPlayerLock();
_local2.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
var _local3 = _global;
_local1.tpEnCours = getTimer();
_local1.tpDif1 = _local1.tpEnCours - _local1.tpDebut;
_local1.actualTime = _local1.timeToSet - _local1.tpDif1;
_local1.time = Math.round(_local1.actualTime / 1000);
_local2.MC_compteurDepart0.countdown.count = _local1.time;
if ((_local1.actualTime <= 100) and ((_local3["aso#45610"][0] == "") or (_local3["aso#45610"][0] == null))) {
}
if ((_local1.actualTime <= (_local3.timecountdown - 200)) and (_local2.quiz_demanded != "aso#36837")) {
tracealert("Quiz demanded !!!");
quizString = _local2.quiz_array[_local2.curQuizNumber];
aso#15244(quizString);
_local2.quiz_demanded = "aso#36837";
}
if (_local1.actualTime <= 0) {
_local1.time = _local3.TXT_race_mess_depart;
delete _local1.onEnterFrame;
_local2["aso#67753"].removeMovieClip();
_local2.MC_compteurDepart0.removeMovieClip();
_local2.aso#54383();
_local2.aso#27222();
_local2.aso#61764();
_local2.initReplayAvatar();
}
if ((_local1.actualTime <= -3000) and (_local2.startMessageReceived != "aso#36837")) {
}
};
};
initReplayAvatar = function () {
_root.replay_paramAvatar = new Array();
var ar = org.omus.group.getAllUserProperties();
var _local2 = 0;
while (_local2 < ar.length) {
var _local1 = ar[_local2];
var replay_sonNom = _local1.getOwner();
var _local3 = _local1.getValue("raceColor");
var replay_sesCoor = _local1.getValue("raceCoor");
var replay_sonCouloir = _local1.getValue("raceCoridor");
_root.replay_paramAvatar.push({nom:replay_sonNom, coor:replay_sesCoor, coridor:replay_sonCouloir, color:_local3});
_local2++;
}
_root.replayTimeStartRace = getTimer();
};
Set("aso#27643", function () {
_root.ecranPartieJeu.mc_waitInterQ._visible = true;
_root.ecranPartieJeu.mc_waitInterQ.cache.aso#52570();
});
checkAdminPlayerLock = function () {
var _local1 = org.omus.user.getLocks();
_local1.addListener(_root.lis_lock);
_local1.acquire("aso#81123");
};
reInitRace = function () {
var _local1 = _root;
_local1.mc_clock.aso#58980(_global.timeConfStartRace);
_local1.MC_compteurDepart0.removeMovieClip();
_local1.checkedAdminCountdown = null;
_local1.checkedAdminStarted = null;
_local1.checked = null;
};
exitPlayerFromRace = function (reason) {
var _local1 = _root;
_local1["aso#67753"].removeMovieClip();
_local1.MC_compteurDepart0.removeMovieClip();
_local1.notifServerPlayerQuit(reason);
_local1.room.onClick("general");
_local1.gotoAndStop("general");
};
hide = function () {
this._visible = false;
};
show = function (msg) {
var _local1 = _root;
_local1.clipPopupWait0.removeMovieClip();
_local1.attachMovie("clipPopupError", "clipPopupError0", 100);
_local1.clipPopupError0._x = 250;
_local1.clipPopupError0._y = 110;
_local1.clipPopupError0.msg = msg;
};
wait = function (msg) {
var _local1 = this;
_local1.msg = msg;
_local1._visible = true;
_local1.okButton._visible = false;
};
setAction = function (func) {
this.action = func;
};
onClickOK = function () {
var _local1 = this;
if (typeof(_local1.action) == "function") {
_local1.action();
}
_local1.action = null;
_local1.hide();
};
sync_checkpoint_R = function (donnees) {
var _local1 = _root;
params = donnees;
mobile_updated = params[0];
if (_local1["aso#42826"]["aso#74163"][mobile_updated].is_coureur_maitre != "aso#36837") {
aso#11068(_local1["aso#42826"]["aso#74163"][mobile_updated], params);
}
};
MovieClip.prototype["aso#58559"] = function () {
var _local1 = _root;
var _local2 = _global;
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = _global;
if (_local2.frameActu != "replay") {
return(0);
}
_local1.aso#39200(this);
master_mobile = org.omus.user.getName();
_local1.aso#97698(_local1["aso#42826"]["aso#74163"][master_mobile]);
if (this.is_coureur_maitre == "aso#36837") {
var _local3 = 0;
while (_local3 < _local1["aso#82936"].length) {
mobile = "R" + _local1["aso#82936"][_local3];
if (_local1["aso#42826"]["aso#74163"][mobile].is_coureur_maitre == "aso#36837") {
_local1.masterRunner = _local1["aso#42826"]["aso#74163"][mobile]._name;
X = _local1["aso#42826"]["aso#74163"][mobile]["aso#30848"];
_local1.ref_maitre_X = X;
_local1.distanceParcouru = X;
_local1["aso#68174"][_local1["aso#42826"]["aso#74163"][mobile]._name].distanceParcouru = X;
if (X > Number(_local2.longueurCourse - 2000)) {
_local1.finishLine._x = Number(_local2.longueurCourse - X) + 300;
}
_local1["aso#42826"]["aso#74163"][mobile]._x = Number((X * 200) / _local2.longueurCourse);
if (X > -1050) {
X = X % 700;
}
_local1.arrierePlan._x = -X;
_local1.barreEnergie._height = _local1["aso#42826"]["aso#74163"][mobile].Et;
_local1["aso#68174"][_local1["aso#42826"]["aso#74163"][mobile]._name].perso.brassard.targetRange._visible = true;
_local1.cameraView = (_local2.TXT_camera_on + " ") + _local1["aso#42826"]["aso#74163"][mobile]._name.slice(1);
} else {
X = _local1["aso#42826"]["aso#74163"][mobile]["aso#30848"];
_local1["aso#42826"]["aso#74163"][mobile]._x = Number((X * 200) / _local2.longueurCourse);
if (X != 0) {
_local1["aso#68174"][_local1["aso#42826"]["aso#74163"][mobile]._name].distanceParcouru = X;
_local1["aso#42826"]["aso#74163"][mobile].ecartRelatif = Number(_local1.ref_maitre_X - X);
_local1["aso#42826"]["aso#74163"][mobile].sonCouloir = _local1["aso#68174"][_local1["aso#42826"]["aso#74163"][mobile]._name].getDepth();
coridorMaitre = _local1["aso#68174"][_local1.masterRunner].getDepth();
_local1["aso#42826"]["aso#74163"][mobile].difCoridorPix = Math.abs(_local1["aso#42826"]["aso#74163"][mobile].sonCouloir - coridorMaitre);
if (_local1["aso#42826"]["aso#74163"][mobile].sonCouloir > coridorMaitre) {
_local1["aso#42826"]["aso#74163"][mobile].thisRunnerPosition = (_local1["aso#68174"][_local1.masterRunner]._x - _local1["aso#42826"]["aso#74163"][mobile].ecartRelatif) - (_local1["aso#42826"]["aso#74163"][mobile].difCoridorPix * 7);
if (_local1["aso#42826"]["aso#74163"][mobile]._name == "Crazy Mouse") {
}
_local1["aso#68174"][_local1["aso#42826"]["aso#74163"][mobile]._name]._x = _local1["aso#42826"]["aso#74163"][mobile].thisRunnerPosition;
} else {
_local1["aso#42826"]["aso#74163"][mobile].thisRunnerPosition = (_local1["aso#68174"][_local1.masterRunner]._x - _local1["aso#42826"]["aso#74163"][mobile].ecartRelatif) + (_local1["aso#42826"]["aso#74163"][mobile].difCoridorPix * 7);
_local1["aso#68174"][_local1["aso#42826"]["aso#74163"][mobile]._name]._x = _local1["aso#42826"]["aso#74163"][mobile].thisRunnerPosition;
}
}
}
_local3++;
}
}
return(undefined);
};
};
calcul_chrono_R = function (temps) {
var _local1 = temps;
hours = Math.floor(_local1 / 3600);
min = Math.floor((_local1 - (hours * 3600)) / 60);
if (min < 10) {
min = "0" + min;
}
sec = (_local1 - (hours * 3600)) - (min * 60);
if (sec < 10) {
sec = "0" + sec;
}
return((((hours + ":") + min) + ":") + arrondi(sec));
};
createReplayAllPlayer = function () {
var _local1 = _root;
var i = 0;
while (i < _local1.replay_paramAvatar.length) {
this.replayParamsToSet = new Array();
var _local2 = 0;
while (_local2 < _local1.replay_action.length) {
if (_local1.replay_action[_local2].nom == ("R" + _local1.replay_paramAvatar[i].nom)) {
this.replayParamsToSet.push({nom:_local1.replay_action[_local2].nom, action:_local1.replay_action[_local2].action, replay_Xnext:_local1.replay_action[_local2].replay_Xnext, replay_Vnext:_local1.replay_action[_local2].replay_Vnext, replay_DeltaT:_local1.replay_action[_local2].replay_DeltaT, replay_tpsDepart:_local1.replay_action[_local2].replay_tpsDepart});
}
_local2++;
}
_local1.createReplayPion(i, this.replayParamsToSet);
i++;
}
var _local3 = 0;
while (_local3 < 6) {
if (_local1.replay_paramAvatar[_local3].nom != _local1.username) {
_local1["aso#42826"]["aso#74163"]["R" + _local1.replay_paramAvatar[_local3].nom].is_coureur_maitre = "N";
} else {
_local1["aso#42826"]["aso#74163"]["R" + _local1.replay_paramAvatar[_local3].nom].is_coureur_maitre = "aso#36837";
_local1["aso#68174"]["R" + _local1.replay_paramAvatar[_local3].nom]._x = -Number(_local1.replay_paramAvatar[_local3].coridor * 7);
}
_local3++;
}
};
createReplayPion = function (id, replayParams) {
var _local2 = replayParams;
var _local3 = this;
var saCouleur = _root.replay_paramAvatar[id].color;
var sesCoor = _root.replay_paramAvatar[id].coor;
var sonCouloir = _root.replay_paramAvatar[id].coridor;
var sonAvatarType = "aso#41013";
_root["aso#68174"].attachMovie(sonAvatarType, "R" + _root.replay_paramAvatar[id].nom, sonCouloir)._visible = true;
_local3.mc = _root["aso#68174"]["R" + _root.replay_paramAvatar[id].nom];
_local3.mc.pseudo = _root.replay_paramAvatar[id].nom;
_local3.mc.playerColor = saCouleur;
laCouleur = new Color(_local3.mc.perso.brassard);
laCouleur.setRGB(saCouleur);
laCouleur2 = new Color(_local3.mc.mc_point1);
laCouleur2.setRGB(saCouleur);
_local3.mc.level = sonCouloir;
_local3.mc._y = sesCoor;
var pointArret = (-(sonCouloir * 7));
_local3.mc.sonCouloir = sonCouloir;
_local3.mc._x = pointArret;
_local3.mc._visible = true;
_local3.mc.gotoAndStop("stand");
_root["aso#42826"]["aso#74163"].attachMovie("pion", "R" + _root.replay_paramAvatar[id].nom, sonCouloir)._visible = true;
_local3.mc2 = _root["aso#42826"]["aso#74163"]["R" + _root.replay_paramAvatar[id].nom];
_root.aso#91709(_root["aso#42826"]["aso#74163"]["R" + _root.replay_paramAvatar[id].nom]);
_local3.mc2.playerSequenceReplay = _local2;
var _local1 = 0;
while (_local1 < _local2.length) {
_local1++;
}
_local3.mc2.sequenceReplayRang = 0;
_local3.mc2.aso#58559();
_local3.mc2.playerColor = saCouleur;
laCouleur = new Color(_local3.mc2);
laCouleur.setRGB(saCouleur);
_local3.mc2._y = sonCouloir * 6;
_local3.mc2._visible = true;
_local3.mc2.is_coureur_maitre = "N";
var ps1 = org.omus.user.getProperties();
var sonPseudo = ps1.getOwner();
if (_local3.mc._name == sonPseudo) {
laCouleur = new Color(_root.playerColor);
laCouleur.setRGB(saCouleur);
}
};
deleteReplay = function () {
var _local2 = _root;
var _local1 = 0;
while (_local1 < _local2.replay_paramAvatar.length) {
_local2["aso#68174"]["R" + _local2.replay_paramAvatar[_local1].nom].removeMovieClip();
_local2["aso#42826"]["aso#74163"]["R" + _local2.replay_paramAvatar[_local1].nom].removeMovieClip();
_local1++;
}
};
MovieClip.prototype["aso#45189"] = function (initTime) {
var _local1 = this;
var _local2 = _root;
_local1.tpDebut = getTimer();
_local1.timeToSet = initTime;
_local2.attachMovie("MC_compteurDepart", "MC_compteurDepart0", 1001);
_local2.MC_compteurDepart0._x = 300;
_local2.MC_compteurDepart0._y = 140;
_local1.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1.tpEnCours = getTimer();
_local1.tpDif1 = _local1.tpEnCours - _local1.tpDebut;
_local1.actualTime = _local1.timeToSet - _local1.tpDif1;
_local1.time = Math.round(_local1.actualTime / 1000);
_local2.MC_compteurDepart0.countdown.count = _local1.time;
if (_local1.actualTime <= 0) {
_local2.MC_compteurDepart0.removeMovieClip();
_local2.aso#05079();
_local2.aso#09255();
_local1.aso#57167();
}
};
};
MovieClip.prototype["aso#57167"] = function () {
var _local1 = this;
var _local2 = _global;
var _local3 = _root;
_local1.tpDebutReplay = getTimer();
_local1.lastTimeRang = _local3.replay_action.length;
_local1.lastTime = _local3.replay_action[_local1.lastTimeRang - 1].replay_tpsDepart;
_local1.onEnterFrame = function () {
var _local1 = _global;
var _local2 = this;
_local2.tpNowReplay = getTimer();
_local1.tpsDifReplay = _local2.tpNowReplay - _local2.tpDebutReplay;
if (_local1.tpsDifReplay <= _local2.lastTime) {
_root.replay_panel.raceTimeReplay = _root.calcul_chrono_R(_local1.tpsDifReplay / 1000);
}
};
};
inputClassement = function () {
var _local1 = _root;
var _local3 = _global;
_local1.replay_panel["aso#99090"] = _local3.TXT_popup_classement_1 + newline;
i = 0;
while (i < _local1["aso#93522"].length) {
this.chrono = _local1.calcul_chrono(Number(_local1["aso#93522"][i].temps / 1000));
if (i == 0) {
var _local2 = " " + _local3.TXT_popup_classement_2;
} else {
var _local2 = " " + _local3.TXT_popup_classement_3;
}
_local1.replay_panel["aso#99090"] = _local1.replay_panel["aso#99090"] + ((((((Number(i + 1) + _local2) + "/ ") + _local1["aso#93522"][i].nom) + " >\t ") + this.chrono) + newline);
i++;
}
};
sortN = function (arr) {
var _local3 = arr;
var _local1 = new Array();
_local1[0].time = _local3[0].time;
var i = 0;
while (i < _local3.length) {
param1 = _local3[i].nom;
param2 = _local3[i].action;
param4 = _local3[i].param;
num = Number(_local3[i].time);
numRang = _local3[i];
var done = false;
var _local2 = 0;
while (_local2 < _local1.length) {
if (((num > _local1[_local2].time) && (num < _local1[_local2 + 1].time)) || (num == _local1[_local2].time)) {
_local1.splice(_local2 + 1, 0, numRang);
done = true;
break;
}
_local2++;
}
if ((!done) && (num < _local1[0].time)) {
_local1.unshift({nom:param1, action:param2, time:num, param:param4});
} else if ((!done) && (num > _local1[_local1.length - 1].time)) {
_local1.push({nom:param1, action:param2, time:num, param:param4});
}
i++;
}
var reportArraySorted = "";
var i = 0;
while (i < _local1.length) {
i++;
}
return(_local1);
};
ejectPlayerToReplay = function () {
var _local1 = _root;
_local1.createEmptyMovieClip("ejectPlayerClip", 10541);
_local1.ejectPlayerClip.temps = _global.timeConfPlayerEject;
_local1.ejectPlayerClip.tpDebut = getTimer();
_local1.ejectPlayerClip.onEnterFrame = function () {
var _local1 = _root;
_local1.ejectPlayerClip.tpEnCours = getTimer();
_local1.ejectPlayerClip.tpDif = _local1.ejectPlayerClip.tpEnCours - _local1.ejectPlayerClip.tpDebut;
if (_local1.ejectPlayerClip.tpDif <= _local1.ejectPlayerClip.temps) {
} else {
if (_global.frameActu != "replay") {
_local1.gotoAndStop(4);
}
delete _local1.ejectPlayerClip.onEnterFrame;
}
};
};
Set("aso#60372", function (aso#12460) {
var _local1 = _root;
_local1.replay_panel._visible = false;
_local1.nextQuestionNum = aso#12460;
_local1.deleteQuestionClips();
_local1.ecranPartieJeu.champQuestion = "";
_local1.ecranPartieJeu.confirmationReponse.champMessage2 = "";
_local1.correctionDisplayQuestion(aso#12460);
_local1.HighlightAnswer(-1);
delete _parent.barreTempsRep.onEnterFrame;
_local1.ecranPartieJeu.boutV.champNom = _global.TXT_button_next;
_local1.ecranPartieJeu.boutV.boutonFonction = "next";
_local1.ecranPartieJeu.boutP.champNom = _global.TXT_button_prev;
_local1.ecranPartieJeu.boutP.boutonFonction = "previous";
_local1.ecranPartieJeu.boutV._visible = true;
_local1.ecranPartieJeu.boutP._visible = true;
_local1.ecranPartieJeu.boutRep0._visible = true;
_local1.ecranPartieJeu.boutRep1._visible = true;
_local1.ecranPartieJeu.boutRep2._visible = true;
_local1.ecranPartieJeu.boutRep3._visible = true;
_local1.ecranPartieJeu.confirmationReponse._visible = false;
_local1.ecranPartieJeu.mc_waitInterQ._visible = false;
_local1.quizAutorized = "aso#36837";
});
correctionDisplayQuestion = function (num) {
if (num <= _global["aso#45610"][num].length) {
var racine = _root.ecranPartieJeu;
_root.ecranPartieJeu.champQuestion = _global["aso#45610"][num];
var i = 0;
while (i < _global["aso#96306"][num].length) {
eval ("_root.ecranPartieJeu.boutRep" + i)._visible = true;
_root.ecranPartieJeu.boutV._visible = true;
_root.ecranPartieJeu.boutP._visible = true;
eval ("_root.ecranPartieJeu.boutRep" + i).reponse = _global["aso#96306"][num][i];
eval ("_root.ecranPartieJeu.boutRep" + i).reponseNumber = i;
i++;
}
_root.ecranPartieJeu.confirmationReponse.champMessage = "";
_root.ecranPartieJeu.confirmationReponse._visible = false;
} else {
num = 0;
}
};
Set("aso#43376", function () {
var _local1 = _root;
_local1.aso#72350("replay");
_global.tpsDifReplay = 0;
_local1.arrierePlan._x = 0;
_local1.finishLine._x = 760;
_local1.createReplayAllPlayer();
_local1.mc_compteurReplay.aso#45189(3000);
_local1.inputClassement();
});
traceReplayEachPlayer = function () {
};
_root.postUA = new Array();
Set("aso#39621", function (postchoice) {
_root.postUA.push(postchoice);
});
postAnswerServer = function () {
var _local2 = _root;
unique = new Date().getTime();
URL = "php_traitement/momentum/analyse_momentum.php?unique=" + unique;
podium_pseudo_tab = new Array();
podium_times_tab = new Array();
var _local1 = 0;
while (_local1 < _local2["aso#93522"].length) {
podium_pseudo_tab.push(_local2["aso#93522"][_local1].nom);
podium_times_tab.push(_local2["aso#93522"][_local1].temps);
_local1++;
}
postUA_string = _local2.postUA.join(",");
podium_pseudo = podium_pseudo_tab.join("*|*");
podium_times = podium_times_tab.join(",");
var dataName = new Array();
var _local3 = new Array();
dataName.push("course_id", "quiz_id", "joueur_id", "pseudo", "aso#06471", "room_category", "postUA_string", "podium_pseudo", "podium_times");
_local3.push(_local2.course_id, _global["aso#16636"], _global.JOUEUR_ID, _local2.username, _local2.roomData[_local2.roomNumberSelected].roomsLevel, _local2.roomData[_local2.roomNumberSelected].roomscategory, postUA_string, podium_pseudo, podium_times);
_local2.sender(URL, dataName, _local3);
};
replayToPost = function () {
var _local1 = _root;
var replay_paramAvatar_ToPost = "";
var _local2 = 0;
while (_local2 < _local1.replay_paramAvatar.length) {
replay_paramAvatar_ToPost = replay_paramAvatar_ToPost + (((((_local1.replay_paramAvatar[_local2].nom + "*|*") + _local1.replay_paramAvatar[_local2].coridor) + ",") + _local1.replay_paramAvatar[_local2].color) + "|");
_local2++;
}
var _local3 = "";
_local2 = 0;
while (_local2 < _local1.replay_action.length) {
_local3 = _local3 + (((((((((((_local1.replay_action[_local2].nom + "*|*") + _local1.replay_action[_local2].action) + ",") + _local1.replay_action[_local2].replay_Xnext) + ",") + _local1.replay_action[_local2].replay_Vnext) + ",") + _local1.replay_action[_local2].replay_DeltaT) + ",") + _local1.replay_action[_local2].replay_tpsDepart) + "|");
_local2++;
}
var dataName = new Array();
var dataParams = new Array();
dataName.push("playerProp", "actionReplay", "course_id");
dataParams.push(replay_paramAvatar_ToPost, _local3, _local1.course_id);
URL = "php_traitement/momentum/recup_race_info.php";
_local1.sender(URL, dataName, dataParams);
};
Set("aso#74713", function () {
var _local1 = _root;
_local1["aso#37808"] = new LoadVars();
_local1.quiz_cat_id = new Array();
_local1.token_per_cat = new Array();
_local1.clearRoomsStatus();
unique = new Date().getTime();
URL_name = "php_traitement/credits.php?menu=momentum&unique=" + unique;
msg_warning = "";
aso#37808.onLoad = function () {
var _local1 = _root;
if (answer == "ko") {
return(0);
}
_local1.room_ids = Array();
_local1.token_per_race = Array();
_local1.room_ids = this.room_id_list.split(",");
_local1.token_per_race = this.token_per_race_list.split(",");
_local1.chatPermission = this.etat_chat;
_local1["aso#91288"] = Number(this.credit);
msg_warning = msg_warning + this.msg;
_local1["aso#00482"] = Number(this.price_m);
_local1.nbToken = Number(this.nb_token);
if ((_local1["aso#00482"] > _local1["aso#91288"]) and (_local1.nbToken == 0)) {
_global.hasnocredits = "aso#36837";
} else {
_global.hasnocredits = "N";
}
if (msg_warning != "") {
_local1.attachMovie("clipPopupMessage", "clipPopupMessage1", 1000);
_local1.clipPopupMessage1.champTitre = _global.warning_credits;
_local1.clipPopupMessage1.champMessage = msg_warning;
_local1.clipPopupMessage1._x = 250;
_local1.clipPopupMessage1._y = 110;
}
var freeRacesArray = Array();
var _local2 = 1;
while (_local2 < _local1.roomData.length) {
quizCatId = _local1.roomData[_local2].roomscategory;
if (quizCatId == 0) {
quizCatId = -1;
}
thelevel = _local1.roomData[_local2]["aso#44218"];
if (thelevel == 1) {
freeRacesArray[_local2] = 1;
} else {
freeRacesArray[_local2] = 2;
}
var _local3 = 0;
while (_local3 < _local1.room_ids.length) {
if (_local1.room_ids[_local3] == ((_local1.roomData[_local2]["aso#44218"] * 10000) + _local1.roomData[_local2].roomscategory)) {
freeRacesArray[_local2] = 0;
}
_local3++;
}
_local2++;
}
_local1.updateRoomsStatus(freeRacesArray);
return(undefined);
};
aso#37808.load(URL_name);
});
Set("aso#18449", function () {
_root.skipEnabled = "aso#36837";
_global.skipButtonLabel = _global.TXT_button_skip;
});
setGameModes = function () {
var _local1 = _root;
var _local2 = _local1.roomData[_local1.roomNumberSelected]["aso#63577"];
if (_local2 == 1) {
_local1.skipEnabled = "N";
_global.skipButtonLabel = _global.txt_boom;
}
};
createRobot = function (username, strengthID, corridorNb) {
var _local1 = username;
var _local2 = _root;
_local2.users[_local1] = new _local2.AvatarObjDemo(_local1, corridorNb, "isRobot");
_local2["aso#82936"].push(_local1);
_local2.users[_local1].strengthID = strengthID;
_local2.users[_local1].curQuestNb = 0;
};
createMasterPlayer = function (username, corridorNb) {
var _local1 = username;
var _local2 = _root;
_local2.users[_local1] = new _local2.AvatarObjDemo(_local1, corridorNb, "isRobot");
_local2["aso#82936"].push(_local1);
_local2.username = _local1;
};
diffProbaAr = Array();
diffProbaAr[1] = 80;
diffProbaAr[2] = 55;
diffProbaAr[3] = 30;
diffProbaAr[4] = 13;
_global.minPositionNextLevel = 1;
AvatarObjDemo.prototype.waitUntilNextQuestion = function () {
this.waitID = setInterval(this, "waitBeforeAnswer", _global.timeInterQ);
};
AvatarObjDemo.prototype.waitBeforeAnswer = function () {
var _local1 = this;
clearInterval(_local1.waitID);
var questDiff = _global["aso#29035"][_local1.curQuestNb];
var questTime = _global["aso#84328"][_local1.curQuestNb];
var minWaitTime = 3000;
var minWaitFactor = 0.0666666666666667;
var _local2 = 1 - (((_local1.strengthID - 1) * (1 - minWaitFactor)) / 15);
_local2 = Math.max(minWaitFactor, _local2);
var timeRand = ((Math.random() * (questTime - minWaitTime)) * _local2);
var _local3 = minWaitTime + (Math.random() * timeRand);
_local1.waitBeforeAnswerID = setInterval(_local1, "aso#01874", _local3, _local3);
};
AvatarObjDemo.prototype["aso#01874"] = function (waitTime) {
var _local1 = this;
var _local2 = _root;
var _local3 = _global;
clearInterval(_local1.waitBeforeAnswerID);
if (_local2["aso#42826"]["aso#74163"][_local1.mc.pseudo].passed_virtual_line == "aso#36837") {
return(0);
}
var questDiff = _local3["aso#29035"][_local1.curQuestNb];
var probaAnswerRight = _local2.diffProbaAr[questDiff];
var strengthAccelerator = ((_local1.strengthID - 1) / 15);
var potentialncreaseProba = ((((100 - probaAnswerRight) * 0.45) * strengthAccelerator) * Math.random());
var knowsAnswerRand = (Math.random() * 100);
if (knowsAnswerRand <= (probaAnswerRight + potentialncreaseProba)) {
Set("aso#43797", "aso#36837");
} else {
Set("aso#43797", "N");
}
var mistakeProba = (40 / _local1.strengthID);
var mistakeRand = (Math.random() * 100);
if (mistakeRand <= mistakeProba) {
mistake = "aso#36837";
} else {
mistake = "N";
}
if (mistake == "aso#36837") {
_local2.aso#09676(_local2["aso#42826"]["aso#74163"][_local1.mc.pseudo], 2, "chute");
_local2["aso#68174"][_local1.mc.pseudo].gotoAndStop("chute");
_local2["aso#68174"][_local1.mc.pseudo].setInterval_ID = setInterval(_local2.get_up_and_run, _local3.timePenalty - 300, _local1.mc.pseudo);
} else if (aso#43797 == "N") {
} else {
var addEner1 = _local3["aso#52991"][_local1.curQuestNb];
var addEner2 = (_local3["aso#52991"][_local1.curQuestNb] * (1 - (waitTime / _local3["aso#84328"][_local1.curQuestNb])));
var addEnergie = Number(addEner2);
_local2.aso#75134(_local2["aso#42826"]["aso#74163"][_local1.mc.pseudo], addEnergie);
}
if (_local1.curQuestNb <= _local3["aso#45610"].length) {
_local1.curQuestNb++;
_local1.waitUntilNextQuestion();
}
return(undefined);
};
Set("aso#07863", function (masterPlayerPos) {
if (masterPlayerPos <= _global.minPositionNextLevel) {
_root["aso#76947"]++;
}
});
Set("aso#70537", function () {
_global.frameActu = "replay";
_root.aso#72350("replay");
_global.tpsDifReplay = 0;
_root.aso#60372(0);
});
Set("aso#33211", function (position) {
if (position <= 1) {
return("aso#36837");
}
return("N");
});
menuResults = function (winflg) {
var _local1 = _root;
var _local2 = _global;
var title = "";
if (winflg == "aso#36837") {
var _local3 = ((_local2.TXT_congrats_levelX + " ") + _local1["aso#76947"]) + " !";
_local3 = _local3 + ((("<br>" + _local2.TXT_congrats_level_code) + " ") + aso#30427(_local1["aso#76947"], _local1.curQuizNumber));
} else {
var _local3 = _local2.TXT_sorry_you_lost;
_local3 = _local3 + ((("<br>" + _local2.TXT_congrats_level_code) + " ") + aso#30427(_local1["aso#76947"], _local1.curQuizNumber));
}
_local1.attachMovie("clipPopupMenus", "clipPopupMenus0", 100);
_local1.clipPopupMenus0._x = 33;
_local1.clipPopupMenus0._y = 190;
_local1.clipPopupMenus0.champMessage = _local3;
_local1.clipPopupMenus0.champTitre = title;
if (winflg == "aso#36837") {
_local1.clipPopupMenus0.buttonGoToFrame = "race";
_local1.clipPopupMenus0.butonVal = _local2.txt_NEXT_LEVEL;
} else {
_local1.clipPopupMenus0.buttonGoToFrame = "general";
_local1.clipPopupMenus0.butonVal = _local2.txt_REPLAY;
}
};
Set("aso#49786", function () {
aso#55775();
_root.nextQuestionNum = 0;
_global.frameActu = "race";
_global.gameResolution = "haute";
_root.aso#53962();
if (_root.sound_enabled == "aso#36837") {
_root.sonMus = new Sound(_root);
_root.sonMus.attachSound("wait_start");
_root.sonMus.start(0, 1500);
}
_root["aso#82936"] = Array();
_root.users = Array();
_root.race_started = "N";
var i = 0;
while (i < _root["aso#64969"].length) {
_root.createRobot(_root["aso#64969"][i].pseudo, _root["aso#76947"], i);
i++;
}
_root.createMasterPlayer(_root.username, 5);
_root.aso#18449();
if (_root.aso#76526() != "aso#36837") {
_root.show(_global.TXT_nomoreQuizRedirect);
return(false);
}
aso#64548();
var aso#79310 = Math.ceil(getBytesTotal() / 10);
var aso#10647 = aso#79310.toString();
var aso#71929 = com.meychi.ascrypt["aso#26251"].aso#85720(_root["aso#34603"], aso#10647);
eval ("_root." + aso#71929)();
});
Set("aso#27222", function () {
var _local2 = _root;
var _local1 = 0;
while (_local1 < _local2["aso#64969"].length) {
_local2.users[_local2["aso#64969"][_local1].pseudo].waitUntilNextQuestion();
_local1++;
}
});
Set("aso#76526", function () {
var _local1 = _root;
if ((_local1.quiz_array[_local1.curQuizNumber] != "") and (_local1.quiz_array[_local1.curQuizNumber] != undefined)) {
return("aso#36837");
}
return("N");
});
playerSkins = function () {
var _local1 = _root;
_local1.attachMovie("MC_compteurDepart", "MC_compteurDepart0", 1001);
_local1.checked = true;
_local1.MC_compteurDepart0._x = 300;
_local1.MC_compteurDepart0._y = 140;
_local1.MC_compteurDepart0._alpha = 80;
_local1.mc_clock.aso#58980(7000);
};
Set("aso#64548", function () {
var _local1 = _root;
var _local2 = _global;
_local1.deleteQuestionClips();
_local1.ecranPartieJeu.boutV.champNom = _local2.TXT_valider;
_local1.ecranPartieJeu.boutV.boutonFonction = "valider";
_local1.ecranPartieJeu.boutP.champNom = _local2.TXT_button_skip;
_local1.ecranPartieJeu.boutP.boutonFonction = "passer";
_local1.ecranPartieJeu.confirmationReponse.champMessage = _local2.TXT_quiz_12;
_local1.ecranPartieJeu.confirmationReponse.champMessage2 = "";
_local1.ecranPartieJeu.champQuestion = _local2.TXT_quiz_13;
});
Set("aso#55775", function () {
var _local1 = _root;
removeMovieClip("_root.clipPopupMenus0");
removeMovieClip("_root.clipPopupPodium0");
_local1["aso#67753"].removeMovieClip();
_local1.MC_compteurDepart0.removeMovieClip();
_local1.ejectPlayerClip.removeMovieClip();
_local1.arrierePlan["aso#93101"].removeMovieClip();
_local1.sonMus.stop();
_local1.finishLine._x = 760;
_local1.arrierePlan._x = 0;
});
Set("aso#89896", function (levelCode) {
var _local1 = levelCode;
var _local2 = _root;
var rc4_key = "cle";
var _local3 = _local1.substring(0, _local1.length - 2);
var md5_hash = _local1.substring(_local1.length - 2);
var aso#28614 = com.meychi.ascrypt.MD5.calculate(_local3);
if (aso#28614.substring(0, 2) != md5_hash) {
_local2.show(_global.TXT_badLevelCode);
return(0);
}
_local1 = com.meychi.ascrypt["aso#62185"].aso#85720(_local3, rc4_key);
var aso#31819 = _local1.indexOf("Q");
var level = Number(_local1.substring(0, aso#31819));
var questNb = Number(_local1.substring(aso#31819 + 1));
_local2["aso#76947"] = level;
_local2.curQuizNumber = Math.max(questNb + 1, _local2.curQuizNumber);
_local2.gotoAndPlay("race");
return(undefined);
});
Set("aso#30427", function (level, quizNb) {
var checksum = (level + quizNb);
thestring = (level.toString() + "Q") + quizNb.toString();
var rc4_text = thestring;
var _local3 = "cle";
var _local1 = com.meychi.ascrypt["aso#62185"].encrypt(rc4_text, _local3);
var md5_hash = com.meychi.ascrypt.MD5.calculate(_local1);
var _local2 = _local1 + md5_hash.substring(0, 2);
return(_local2);
});
assignPseudo = function (pseudo) {
var _local2 = _root;
var _local3 = _global;
var pseudoFound = "N";
if (pseudo == "") {
_local2.username = _local3.TXT_default_pseudo;
_local2.show(_local3.TXT_pseudo_not_empty);
return("N");
}
var _local1 = 0;
while (_local1 < _local2["aso#64969"].length) {
if (_local2["aso#64969"][_local1].pseudo == pseudo) {
_local2.username = _local3.TXT_default_pseudo;
_local2.show(_local3.TXT_pseudo_used);
return("N");
}
_local1++;
}
_local2.username = pseudo;
return("aso#36837");
};
_global.setTimeout = function (a, b, c, args) {
if (typeof(a) == "function") {
args = arguments.slice(2);
var ID;
var _local1 = function () {
a.apply(null, args);
clearInterval(ID);
};
ID = setInterval(_local1, b, args);
} else {
args = arguments.slice(3);
var ID;
var _local1 = function () {
a[b].apply(a, args);
clearInterval(ID);
};
ID = setInterval(_local1, c, args);
}
return(ID);
};
_global.clearTimeout = clearInterval;
quiz_array = Array("<?xml version=\"1.0\" encoding=\"UTF-8\"?><QUIZ QZID=\"666666\" JID=\"2\" QZLENGTH=\"12\" GAMETYPE=\"MOMENTUM\"><QUESTION TEXT=\"Which composer does not belong to the romantic period?\" QID=\"3479\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"2\" VALUE=\"62.4\" COMMENT=\"\"><CHOICE>F. Schubert</CHOICE><CHOICE>J. S. Bach</CHOICE><CHOICE>R. Wagner</CHOICE><CHOICE>R. Schuman</CHOICE></QUESTION><QUESTION TEXT=\"Which of these American states is the largest?\" QID=\"3485\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"39\" COMMENT=\"\"><CHOICE>Rhode Island</CHOICE><CHOICE>Alaska</CHOICE><CHOICE>Tennessee</CHOICE><CHOICE>Hawa\u00EF</CHOICE></QUESTION><QUESTION TEXT=\"The Spanish Civil War was fought in which century?\" QID=\"3524\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"1\" VALUE=\"39\" COMMENT=\"\"><CHOICE>Twentieth</CHOICE><CHOICE>Eighteenth</CHOICE><CHOICE>Nineteenth</CHOICE><CHOICE>Seventeenth</CHOICE></QUESTION><QUESTION TEXT=\"Stonehenge is found in which English county?\" QID=\"3527\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"62.4\" COMMENT=\"\"><CHOICE>Cornwall</CHOICE><CHOICE>Norfolk</CHOICE><CHOICE>Wiltshire</CHOICE><CHOICE>Yorkshire</CHOICE></QUESTION><QUESTION TEXT=\"Who was the Lord Protector of the Commonwealth in England from 1649 to 1658?\" QID=\"3549\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"62.4\" COMMENT=\"\"><CHOICE>Oliver Cromwell</CHOICE><CHOICE>Richard Cromwell</CHOICE><CHOICE>Monk</CHOICE><CHOICE>Charles the first</CHOICE></QUESTION><QUESTION TEXT=\"Where is located the highest volcano in our solar system ?\" QID=\"3560\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"62.4\" COMMENT=\"\"><CHOICE>On Mars</CHOICE><CHOICE>On Earth</CHOICE><CHOICE>On Venus</CHOICE><CHOICE>On Mercury</CHOICE></QUESTION><QUESTION TEXT=\"From what is beer made?\" QID=\"3565\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"1\" VALUE=\"39\" COMMENT=\"\"><CHOICE>Wheat & molasses</CHOICE><CHOICE>Grain & grapes</CHOICE><CHOICE>Barley & hops</CHOICE><CHOICE>Maize & agave</CHOICE></QUESTION><QUESTION TEXT=\"Which period of music is considered to span the majority of the 19th century?\" QID=\"3575\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"2\" VALUE=\"62.4\" COMMENT=\"\"><CHOICE>Baroque</CHOICE><CHOICE>Romantic</CHOICE><CHOICE>Classical</CHOICE><CHOICE>Renaissance</CHOICE></QUESTION><QUESTION TEXT=\"According to the saying, some people make mountains out of ...\" QID=\"3618\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"62.4\" COMMENT=\"\"><CHOICE>anthills</CHOICE><CHOICE>elephanthills</CHOICE><CHOICE>molehills</CHOICE><CHOICE>mousehills</CHOICE></QUESTION><QUESTION TEXT=\"At the inaugral olympic games in 1896 which athlete won the gold medal in the Mens Marathon ?\" QID=\"3643\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"62.4\" COMMENT=\"\"><CHOICE>Spiridon Louis</CHOICE><CHOICE>Michel Th\u00E9ato</CHOICE><CHOICE>Gyula Kellner</CHOICE><CHOICE>Emile Champion</CHOICE></QUESTION><QUESTION TEXT=\"Which of these is not a George Orwell book?\" QID=\"3650\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"2\" VALUE=\"62.4\" COMMENT=\"\"><CHOICE>1984</CHOICE><CHOICE>Burmese Caper</CHOICE><CHOICE>Down and out in Paris and London</CHOICE><CHOICE>Animal Farm</CHOICE></QUESTION><QUESTION TEXT=\"Name the popular scientist best-known for presenting the 1980 television series Cosmos: A Personal Voyage\" QID=\"3755\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"62.4\" COMMENT=\"\"><CHOICE>Carl Sagan</CHOICE><CHOICE>Fred Hoyle</CHOICE><CHOICE>Johannes Kepler</CHOICE><CHOICE>Robert Oppenheim</CHOICE></QUESTION></QUIZ>", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><QUIZ QZID=\"666666\" JID=\"2\" QZLENGTH=\"12\" GAMETYPE=\"MOMENTUM\"><QUESTION TEXT=\"What is the nationality of 'Segolene Royal' ?\" QID=\"3471\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"71.1\" COMMENT=\"\"><CHOICE>Belgian</CHOICE><CHOICE>Swiss</CHOICE><CHOICE>Canadian</CHOICE><CHOICE>French</CHOICE></QUESTION><QUESTION TEXT=\"Which of these rivers is not located in Africa ?\" QID=\"3495\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"44.4\" COMMENT=\"\"><CHOICE>Nile</CHOICE><CHOICE>Brahmaputra</CHOICE><CHOICE>Zambeze</CHOICE><CHOICE>Niger</CHOICE></QUESTION><QUESTION TEXT=\"Which of these revolutionaries had the middle name 'Davidovich'?\" QID=\"3519\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"71.1\" COMMENT=\"\"><CHOICE>Trotsky</CHOICE><CHOICE>Stalin</CHOICE><CHOICE>Lenin</CHOICE><CHOICE>Engels</CHOICE></QUESTION><QUESTION TEXT=\"Considered the 'father of computing', which 19th Century mathematician designed the Analytical Engine?\" QID=\"3531\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"71.1\" COMMENT=\"\"><CHOICE>Alan Turing</CHOICE><CHOICE>Isaac Newton</CHOICE><CHOICE>Charles Babbage</CHOICE><CHOICE>Bertrand Russell</CHOICE></QUESTION><QUESTION TEXT=\"What does 'USB' stand for?\" QID=\"3535\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"1\" VALUE=\"44.4\" COMMENT=\"\"><CHOICE>Unique Savage Booze</CHOICE><CHOICE>Unbelivably Sexy Bastard</CHOICE><CHOICE>Universal Silicon Board</CHOICE><CHOICE>Universal Serial Bus</CHOICE></QUESTION><QUESTION TEXT=\"What does LAN mean in Computer Science ?\" QID=\"3542\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"1\" VALUE=\"44.4\" COMMENT=\"\"><CHOICE>Little Art Nodule</CHOICE><CHOICE>Lithium And Natrium</CHOICE><CHOICE>Local Area Network</CHOICE><CHOICE>Liam And Noel</CHOICE></QUESTION><QUESTION TEXT=\"Of which color was Barbara Cartland, the author of novels, very found?\" QID=\"3550\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"44.4\" COMMENT=\"\"><CHOICE>blue</CHOICE><CHOICE>pink</CHOICE><CHOICE>red</CHOICE><CHOICE>green</CHOICE></QUESTION><QUESTION TEXT=\"1st Baron William Thomas Kelvin has a scale that measures what named after him?\" QID=\"3586\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"1\" VALUE=\"44.4\" COMMENT=\"\"><CHOICE>Temperature</CHOICE><CHOICE>Voltage</CHOICE><CHOICE>Speed</CHOICE><CHOICE>Toxicity</CHOICE></QUESTION><QUESTION TEXT=\"What is the capital of Slovakia?\" QID=\"3605\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"1\" VALUE=\"44.4\" COMMENT=\"\"><CHOICE>Vienna</CHOICE><CHOICE>Sarajevo</CHOICE><CHOICE>Bratislava</CHOICE><CHOICE>Prague</CHOICE></QUESTION><QUESTION TEXT=\"Stratus is a type of...\" QID=\"3610\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"1\" VALUE=\"44.4\" COMMENT=\"\"><CHOICE>atmospheric layer</CHOICE><CHOICE>wind</CHOICE><CHOICE>rainbow</CHOICE><CHOICE>cloud</CHOICE></QUESTION><QUESTION TEXT=\"The presence of acid turns blue litmus to which colour?\" QID=\"3611\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"71.1\" COMMENT=\"\"><CHOICE>Green</CHOICE><CHOICE>Yellow</CHOICE><CHOICE>Red</CHOICE><CHOICE>Black</CHOICE></QUESTION><QUESTION TEXT=\"How many dice do you use in the game YAHTZEE?\" QID=\"3651\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"44.4\" COMMENT=\"\"><CHOICE>0</CHOICE><CHOICE>5</CHOICE><CHOICE>20</CHOICE><CHOICE>10</CHOICE></QUESTION></QUIZ>", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><QUIZ QZID=\"666666\" JID=\"2\" QZLENGTH=\"12\" GAMETYPE=\"MOMENTUM\"><QUESTION TEXT=\"Which Roman general conquered Britain?\" QID=\"3477\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"40\" COMMENT=\"\"><CHOICE>Asterix</CHOICE><CHOICE>Agricola</CHOICE><CHOICE>Ocatarinabellatchitchix</CHOICE><CHOICE>Tremendelirius</CHOICE></QUESTION><QUESTION TEXT=\"Who wrote 'The Protestant Ethic and the Spirit of Capitalism'?\" QID=\"3511\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>Emile Durkheim</CHOICE><CHOICE>Nobert Elias</CHOICE><CHOICE>Max Weber</CHOICE><CHOICE>Erving Goffman</CHOICE></QUESTION><QUESTION TEXT=\"In which present day African country is the historic city of Timbuktu?\" QID=\"3523\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>Mali</CHOICE><CHOICE>Nigeria</CHOICE><CHOICE>Ethiopia</CHOICE><CHOICE>Zaire</CHOICE></QUESTION><QUESTION TEXT=\"Which city is not the capital of its state?\" QID=\"3529\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"40\" COMMENT=\"\"><CHOICE>London</CHOICE><CHOICE>Geneva</CHOICE><CHOICE>Paris</CHOICE><CHOICE>Riga</CHOICE></QUESTION><QUESTION TEXT=\"What bird has the fastest top flying speed?\" QID=\"3568\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>Golden Eagle</CHOICE><CHOICE>Seahawk</CHOICE><CHOICE>Peregrine Falcon</CHOICE><CHOICE>Osprey</CHOICE></QUESTION><QUESTION TEXT=\"Which of these answers doesn't relate to the winner of the battle of Hastings?\" QID=\"3578\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>William the Bastard</CHOICE><CHOICE>William the Conqueror</CHOICE><CHOICE>William of Ockham</CHOICE><CHOICE>William of Normandy</CHOICE></QUESTION><QUESTION TEXT=\"Which 'fourth rock from the sun' has two moons whose names translate as 'fear' and 'dread'?\" QID=\"3588\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>Earth</CHOICE><CHOICE>Jupiter</CHOICE><CHOICE>Mars</CHOICE><CHOICE>Saturn</CHOICE></QUESTION><QUESTION TEXT=\"Which of these words for leader is not derived from the emperor Caesar?\" QID=\"3606\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"1\" VALUE=\"40\" COMMENT=\"\"><CHOICE>Kaiser</CHOICE><CHOICE>Czar</CHOICE><CHOICE>President</CHOICE><CHOICE>Tsar</CHOICE></QUESTION><QUESTION TEXT=\"How many legs does a butterfly have ?\" QID=\"3637\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>Eight</CHOICE><CHOICE>Four</CHOICE><CHOICE>Twelve</CHOICE><CHOICE>Six</CHOICE></QUESTION><QUESTION TEXT=\"Jean Nicot (1530-1606) was a French diplomat and scholar. What alkaloid did he give his name to?\" QID=\"3665\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"1\" VALUE=\"40\" COMMENT=\"\"><CHOICE>Nicoline</CHOICE><CHOICE>Nikotine</CHOICE><CHOICE>Nick O'Teen</CHOICE><CHOICE>Nicotine</CHOICE></QUESTION><QUESTION TEXT=\"In which country is the city of Gerona?\" QID=\"3683\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>France</CHOICE><CHOICE>Malta</CHOICE><CHOICE>Spain</CHOICE><CHOICE>Italy</CHOICE></QUESTION><QUESTION TEXT=\"Who followed FW De Klerk as the President of South Africa\" QID=\"3695\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>PW Botha</CHOICE><CHOICE>Nelson Mandela</CHOICE><CHOICE>Thabo Mbeki</CHOICE><CHOICE>Oliver Tambo</CHOICE></QUESTION></QUIZ>", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><QUIZ QZID=\"666666\" JID=\"2\" QZLENGTH=\"12\" GAMETYPE=\"MOMENTUM\"><QUESTION TEXT=\"What was the name of the wide belgian colony in Africa?\" QID=\"3480\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"41\" COMMENT=\"\"><CHOICE>Katanga</CHOICE><CHOICE>Congo</CHOICE><CHOICE>Mobuthan</CHOICE><CHOICE>Za\u00EFre</CHOICE></QUESTION><QUESTION TEXT=\"Which of the organs in the human body is inflamed in the condition known as hepatitis?\" QID=\"3580\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"1\" VALUE=\"41\" COMMENT=\"\"><CHOICE>Liver</CHOICE><CHOICE>Heart</CHOICE><CHOICE>Kidney</CHOICE><CHOICE>Brain</CHOICE></QUESTION><QUESTION TEXT=\"By what name was Theodor Geisel better known?\" QID=\"3622\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"65.6\" COMMENT=\"\"><CHOICE>Dr. Spock</CHOICE><CHOICE>Dr. Dre</CHOICE><CHOICE>Dr. Mabuse</CHOICE><CHOICE>Dr. Seuss</CHOICE></QUESTION><QUESTION TEXT=\"In which country is a 'gamelan orchestra' most commonly found?\" QID=\"3640\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"2\" VALUE=\"65.6\" COMMENT=\"\"><CHOICE>Mauritania</CHOICE><CHOICE>Indonesia</CHOICE><CHOICE>Venezuela</CHOICE><CHOICE>Kazakhstan</CHOICE></QUESTION><QUESTION TEXT=\"Who is the author of 'The grapes of wrath', published in 1939?\" QID=\"3654\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"1\" VALUE=\"41\" COMMENT=\"\"><CHOICE>Woody Allen</CHOICE><CHOICE>Bill Gates</CHOICE><CHOICE>John Steinbeck</CHOICE><CHOICE>Barbara Cartland</CHOICE></QUESTION><QUESTION TEXT=\"Who wrote the famous 'De Architectura' ?\" QID=\"3681\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"2\" VALUE=\"65.6\" COMMENT=\"\"><CHOICE>Fausto Coppi</CHOICE><CHOICE>Vitruve</CHOICE><CHOICE>Juan Manuel Fangio</CHOICE><CHOICE>Julius Caesar</CHOICE></QUESTION><QUESTION TEXT=\"Which of these is a surface 'lawn tennis' is normally played on?\" QID=\"3699\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"65.6\" COMMENT=\"\"><CHOICE>Basalt</CHOICE><CHOICE>Rubber</CHOICE><CHOICE>Brick</CHOICE><CHOICE>Clay</CHOICE></QUESTION><QUESTION TEXT=\"Moka is a variety of...\" QID=\"3708\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"65.6\" COMMENT=\"\"><CHOICE>tea</CHOICE><CHOICE>chocolate</CHOICE><CHOICE>coffee pot</CHOICE><CHOICE>cat</CHOICE></QUESTION><QUESTION TEXT=\"Who is the manager of the England football team (soccer, in November 2006)?\" QID=\"3709\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"2\" VALUE=\"65.6\" COMMENT=\"\"><CHOICE>Sven Goran Eriksson</CHOICE><CHOICE>Steve McClaren</CHOICE><CHOICE>Claudio Ranieri</CHOICE><CHOICE>Sir Alex Ferguson</CHOICE></QUESTION><QUESTION TEXT=\"What novel by Ray Bradbury was named for the temperature at which book paper catches fire and burns?\" QID=\"3721\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"41\" COMMENT=\"\"><CHOICE>Fahrenheit 951</CHOICE><CHOICE>Fahrenheit 451</CHOICE><CHOICE>Fahrenheit 9/11</CHOICE><CHOICE>Fahrenheit 751</CHOICE></QUESTION><QUESTION TEXT=\"What City was the Capital of Russia before Moscow in 1917\" QID=\"3751\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"1\" VALUE=\"41\" COMMENT=\"\"><CHOICE>Kiev</CHOICE><CHOICE>Istanbul</CHOICE><CHOICE>St Petersburg</CHOICE><CHOICE>Vladivostok</CHOICE></QUESTION><QUESTION TEXT=\"Who was the most ancient of those composers?\" QID=\"3776\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"65.6\" COMMENT=\"\"><CHOICE>Haydn</CHOICE><CHOICE>Berlioz</CHOICE><CHOICE>Vivaldi</CHOICE><CHOICE>Vladigerov</CHOICE></QUESTION></QUIZ>", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><QUIZ QZID=\"666666\" JID=\"2\" QZLENGTH=\"12\" GAMETYPE=\"MOMENTUM\"><QUESTION TEXT=\"Who is Garfield's 'father'?\" QID=\"3474\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"2\" VALUE=\"69.2\" COMMENT=\"\"><CHOICE>Jim Henson</CHOICE><CHOICE>Jim Davis</CHOICE><CHOICE>Bill Watterson</CHOICE><CHOICE>Bill Gates</CHOICE></QUESTION><QUESTION TEXT=\"Who is known for his 3 laws describing the motion of a planet around a celestial body?\" QID=\"3501\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Isaac Newton</CHOICE><CHOICE>Johannes Kepler</CHOICE><CHOICE>Sylvester Stalone</CHOICE><CHOICE>Arnold Schwarzenegger</CHOICE></QUESTION><QUESTION TEXT=\"Who, among these romain emperors, built the first defencing wall in Britain?\" QID=\"3506\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Galba</CHOICE><CHOICE>Caligula</CHOICE><CHOICE>Nerva</CHOICE><CHOICE>Hadrianus</CHOICE></QUESTION><QUESTION TEXT=\"Who was the child of Elizabeth's the first, queen of England?\" QID=\"3521\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"69.2\" COMMENT=\"\"><CHOICE>She had none</CHOICE><CHOICE>Mary of York</CHOICE><CHOICE>James Stuart</CHOICE><CHOICE>Richard of Gloucester</CHOICE></QUESTION><QUESTION TEXT=\"Who is not a member of the Monty Python's team?\" QID=\"3530\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Graham Chapman</CHOICE><CHOICE>Terry Gilliam</CHOICE><CHOICE>Fred Vargas</CHOICE><CHOICE>John Cleese</CHOICE></QUESTION><QUESTION TEXT=\"Where is the highest waterfall in the world?\" QID=\"3564\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"2\" VALUE=\"69.2\" COMMENT=\"\"><CHOICE>United States of America</CHOICE><CHOICE>Venezuela</CHOICE><CHOICE>Peru</CHOICE><CHOICE>The Netherlands</CHOICE></QUESTION><QUESTION TEXT=\"Everest is the highest mountain in the world, what is the second highest?\" QID=\"3566\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Kanchenjunga</CHOICE><CHOICE>Mount Kilimanjaro</CHOICE><CHOICE>Montblanc</CHOICE><CHOICE>K2</CHOICE></QUESTION><QUESTION TEXT=\"If your zodiac sign is represented by a ram, you are....\" QID=\"3646\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"69.2\" COMMENT=\"\"><CHOICE>a Capricorn</CHOICE><CHOICE>a Taurus</CHOICE><CHOICE>a Libra</CHOICE><CHOICE>an Aries</CHOICE></QUESTION><QUESTION TEXT=\"For over 90 years, till 2006, which English football team played their home games at Highbury?\" QID=\"3686\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Liverpool</CHOICE><CHOICE>Chelsea</CHOICE><CHOICE>Manchester United</CHOICE><CHOICE>Arsenal</CHOICE></QUESTION><QUESTION TEXT=\"Which of these is a famous South American lake?\" QID=\"3715\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Lake Tatihobo</CHOICE><CHOICE>Lake Alphococo</CHOICE><CHOICE>Lake Quetzalcoa</CHOICE><CHOICE>Lake Titicaca</CHOICE></QUESTION><QUESTION TEXT=\"Which biblical figure, whose twelve sons founded the twelve tribes of Israel, was renamed 'Israel' by God?\" QID=\"3757\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"69.2\" COMMENT=\"\"><CHOICE>Jacob</CHOICE><CHOICE>Abraham</CHOICE><CHOICE>Moses</CHOICE><CHOICE>Elijah</CHOICE></QUESTION><QUESTION TEXT=\"Osteology is the study of what?\" QID=\"3769\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>The East</CHOICE><CHOICE>Eggs</CHOICE><CHOICE>Very Large People</CHOICE><CHOICE>Bones</CHOICE></QUESTION></QUIZ>", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><QUIZ QZID=\"666666\" JID=\"2\" QZLENGTH=\"12\" GAMETYPE=\"MOMENTUM\"><QUESTION TEXT=\"Which french writer is the author of 'Planet of the Apes'?\" QID=\"3476\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>Pierre Boulle</CHOICE><CHOICE>Jean Racine</CHOICE><CHOICE>Pierre Corneille</CHOICE><CHOICE>Victor Hugo</CHOICE></QUESTION><QUESTION TEXT=\"Which of these towns is located in Africa?\" QID=\"3493\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"1\" VALUE=\"40\" COMMENT=\"\"><CHOICE>Montevideo</CHOICE><CHOICE>Las Vegas</CHOICE><CHOICE>Maputo</CHOICE><CHOICE>Djakarta</CHOICE></QUESTION><QUESTION TEXT=\"Who was the husband of Elisabeth the first, Queen of England?\" QID=\"3540\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>The spanish king Philip the second</CHOICE><CHOICE>One of the french king's brother</CHOICE><CHOICE>Leicester</CHOICE><CHOICE>She didn't marry</CHOICE></QUESTION><QUESTION TEXT=\"What Japanese animated series is believed to have inspired Disney's 'The Lion King' ?\" QID=\"3543\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>Astro-Boy</CHOICE><CHOICE>UFO Robot Grendizer</CHOICE><CHOICE>Judo Boy</CHOICE><CHOICE>Kimba the White Lion</CHOICE></QUESTION><QUESTION TEXT=\"Which of the following was a sculptor of the Ancient Greece?\" QID=\"3601\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"1\" VALUE=\"40\" COMMENT=\"\"><CHOICE>Anton Blairos</CHOICE><CHOICE>Pamela Anderson</CHOICE><CHOICE>Phidias</CHOICE><CHOICE>Jupiter</CHOICE></QUESTION><QUESTION TEXT=\"Which country does not have direct access to sea?\" QID=\"3602\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>Tanzania</CHOICE><CHOICE>Cameroon</CHOICE><CHOICE>Guinea</CHOICE><CHOICE>Burkina Faso</CHOICE></QUESTION><QUESTION TEXT=\"Which member of the 'Dirty Dozen' was also one of the 'Magnificent Seven'?\" QID=\"3612\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>James Coburn</CHOICE><CHOICE>Charles Bronson</CHOICE><CHOICE>Lee Marvin</CHOICE><CHOICE>Mickey Mouse</CHOICE></QUESTION><QUESTION TEXT=\"My friend, who's a professional guitar player, mentioned 'DADGAD' in conversation. What was he referring to?\" QID=\"3613\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>An old priceless collector's guitar</CHOICE><CHOICE>The nickname of an old bluesman</CHOICE><CHOICE>A famous brand of strings</CHOICE><CHOICE>A way of tuning the guitar</CHOICE></QUESTION><QUESTION TEXT=\"Which city is the capital of Scotland?\" QID=\"3619\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"40\" COMMENT=\"\"><CHOICE>Glasgow</CHOICE><CHOICE>Edinburgh</CHOICE><CHOICE>Aberdeen</CHOICE><CHOICE>Dundee</CHOICE></QUESTION><QUESTION TEXT=\"What animals is the Senegal national football team associated with?\" QID=\"3642\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>Tigers</CHOICE><CHOICE>Zebras</CHOICE><CHOICE>Lions</CHOICE><CHOICE>Elephants</CHOICE></QUESTION><QUESTION TEXT=\"Who lit the Olympic flame at the 2000 Sydney Olympic Games opening ceremony?\" QID=\"3706\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"64\" COMMENT=\"\"><CHOICE>Mohammed Ali</CHOICE><CHOICE>Mickey Mouse</CHOICE><CHOICE>Carl Lewis</CHOICE><CHOICE>Kathy Freeman</CHOICE></QUESTION><QUESTION TEXT=\"Ichthyology is the study of what?\" QID=\"3760\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"40\" COMMENT=\"\"><CHOICE>Snakes</CHOICE><CHOICE>Fish</CHOICE><CHOICE>Smoking</CHOICE><CHOICE>Owls</CHOICE></QUESTION></QUIZ>", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><QUIZ QZID=\"666666\" JID=\"2\" QZLENGTH=\"12\" GAMETYPE=\"MOMENTUM\"><QUESTION TEXT=\"Which of the following units is not meant to measure temperatures?\" QID=\"3508\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Kelvin</CHOICE><CHOICE>Coulomb</CHOICE><CHOICE>Celsius degree</CHOICE><CHOICE>Fahrenheit</CHOICE></QUESTION><QUESTION TEXT=\"What is the capital of Ethiopia?\" QID=\"3536\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Addis Abbaba</CHOICE><CHOICE>Djibouti City</CHOICE><CHOICE>Asmara</CHOICE><CHOICE>London</CHOICE></QUESTION><QUESTION TEXT=\"Which brand in Latin means 'I put together' and in Danish means 'Play with'\" QID=\"3552\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Lego</CHOICE><CHOICE>Volvo</CHOICE><CHOICE>Nokia</CHOICE><CHOICE>Intel</CHOICE></QUESTION><QUESTION TEXT=\"In which Austrian state is Innsbruck located?\" QID=\"3567\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"69.2\" COMMENT=\"\"><CHOICE>Tyrol</CHOICE><CHOICE>Carinthia</CHOICE><CHOICE>Innsbruck</CHOICE><CHOICE>Niedersachsen</CHOICE></QUESTION><QUESTION TEXT=\"The members of which religion are obliged to perform the Hajj if physically able?\" QID=\"3590\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Judaism</CHOICE><CHOICE>Sikhism</CHOICE><CHOICE>Buddhism</CHOICE><CHOICE>Islam</CHOICE></QUESTION><QUESTION TEXT=\"Which great architect designed the Royal Observatory and St. Paul's Cathedral?\" QID=\"3594\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"69.2\" COMMENT=\"\"><CHOICE>Christopher Eagle</CHOICE><CHOICE>Christopher Fowl</CHOICE><CHOICE>Christopher Swan</CHOICE><CHOICE>Christopher Wren</CHOICE></QUESTION><QUESTION TEXT=\"What is the chemical symbol for the element Antimony?\" QID=\"3626\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"69.2\" COMMENT=\"\"><CHOICE>An</CHOICE><CHOICE>Ab</CHOICE><CHOICE>Sb</CHOICE><CHOICE>Sn</CHOICE></QUESTION><QUESTION TEXT=\"Zinedine Zidane was sent off in the 2006 World Cup Final for headbutting which opposing footballer?\" QID=\"3636\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Fabio Cannavaro</CHOICE><CHOICE>Gennaro Gattuso</CHOICE><CHOICE>Marco Materazzi</CHOICE><CHOICE>Alessandro del Piero</CHOICE></QUESTION><QUESTION TEXT=\"Which country's highest mountain is Kosciuszko?\" QID=\"3684\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"2\" VALUE=\"69.2\" COMMENT=\"\"><CHOICE>Ukraine</CHOICE><CHOICE>Australia</CHOICE><CHOICE>Poland</CHOICE><CHOICE>Czech Republic</CHOICE></QUESTION><QUESTION TEXT=\"On which river is New York located?\" QID=\"3745\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>Potomac</CHOICE><CHOICE>Danube</CHOICE><CHOICE>Hudson</CHOICE><CHOICE>Nile</CHOICE></QUESTION><QUESTION TEXT=\"What is the chemical symbol for Potassium?\" QID=\"3758\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"1\" VALUE=\"43.2\" COMMENT=\"\"><CHOICE>K</CHOICE><CHOICE>Po</CHOICE><CHOICE>Pa</CHOICE><CHOICE>Na</CHOICE></QUESTION><QUESTION TEXT=\"Which Beat Generation author wrote the novels 'Big Sur' and 'On the Road'?\" QID=\"3772\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"69.2\" COMMENT=\"\"><CHOICE>Jack Kerouac</CHOICE><CHOICE>Allen Ginsberg</CHOICE><CHOICE>William Burroughs</CHOICE><CHOICE>Gregory Corso</CHOICE></QUESTION></QUIZ>", "<?xml version=\"1.0\" encoding=\"UTF-8\"?><QUIZ QZID=\"666666\" JID=\"2\" QZLENGTH=\"12\" GAMETYPE=\"MOMENTUM\"><QUESTION TEXT=\"In which state is located the coastal town of Mobile?\" QID=\"3481\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"67.4\" COMMENT=\"\"><CHOICE>Alabama</CHOICE><CHOICE>Louisiana</CHOICE><CHOICE>Alaska</CHOICE><CHOICE>California</CHOICE></QUESTION><QUESTION TEXT=\"In what Italian city are you if you are standing in the Piazza San Marco?\" QID=\"3525\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"42.1\" COMMENT=\"\"><CHOICE>Florence</CHOICE><CHOICE>Venice</CHOICE><CHOICE>Rome</CHOICE><CHOICE>Vienna</CHOICE></QUESTION><QUESTION TEXT=\"In which of theses countris were first invented fries according to some sources ?\" QID=\"3559\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"2\" VALUE=\"67.4\" COMMENT=\"\"><CHOICE>Lesotho</CHOICE><CHOICE>Swaziland</CHOICE><CHOICE>Iceland</CHOICE><CHOICE>Belgium</CHOICE></QUESTION><QUESTION TEXT=\"Which king of France has Henry VIII met during the Field of the Cloth of Gold in 1520?\" QID=\"3591\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"67.4\" COMMENT=\"\"><CHOICE>Francis I</CHOICE><CHOICE>Clovis I</CHOICE><CHOICE>Charlemagne</CHOICE><CHOICE>Louis XVIII</CHOICE></QUESTION><QUESTION TEXT=\"Where in the human body would you find the tympanic membrane?\" QID=\"3597\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"1\" VALUE=\"42.1\" COMMENT=\"\"><CHOICE>Ear</CHOICE><CHOICE>Eye</CHOICE><CHOICE>Nose</CHOICE><CHOICE>Mouth</CHOICE></QUESTION><QUESTION TEXT=\"Which is the largest stringed instrument in a classical orchestra?\" QID=\"3639\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"67.4\" COMMENT=\"\"><CHOICE>Double bass</CHOICE><CHOICE>Violins</CHOICE><CHOICE>Violas</CHOICE><CHOICE>Cellos</CHOICE></QUESTION><QUESTION TEXT=\"What colour is the circle in the middle of the Japanese flag?\" QID=\"3652\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"1\" VALUE=\"42.1\" COMMENT=\"\"><CHOICE>Green</CHOICE><CHOICE>Blue</CHOICE><CHOICE>Yellow</CHOICE><CHOICE>Red</CHOICE></QUESTION><QUESTION TEXT=\"In 2006, how many stars can you see on the USA flag?\" QID=\"3661\" TIME=\"15000\" ANSWER=\"4\" DIFFICULTY=\"1\" VALUE=\"42.1\" COMMENT=\"\"><CHOICE>51</CHOICE><CHOICE>60</CHOICE><CHOICE>49</CHOICE><CHOICE>50</CHOICE></QUESTION><QUESTION TEXT=\"What would be the best thing to do to answer this question correctly?\" QID=\"3663\" TIME=\"15000\" ANSWER=\"2\" DIFFICULTY=\"1\" VALUE=\"42.1\" COMMENT=\"\"><CHOICE>Click</CHOICE><CHOICE>Click here and validate</CHOICE><CHOICE>Wait and see</CHOICE><CHOICE>Call a friend</CHOICE></QUESTION><QUESTION TEXT=\"The deficieny of which vitamin, commonly found in oranges and lemons, leads to a condition known as scurvy?\" QID=\"3687\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"1\" VALUE=\"42.1\" COMMENT=\"\"><CHOICE>Vitamin C</CHOICE><CHOICE>Vitamin A</CHOICE><CHOICE>Vitamin D</CHOICE><CHOICE>Vitamin E</CHOICE></QUESTION><QUESTION TEXT=\"Which Roman leader unsuccessfully invaded Britain in 55 B.C.?\" QID=\"3764\" TIME=\"15000\" ANSWER=\"3\" DIFFICULTY=\"2\" VALUE=\"67.4\" COMMENT=\"\"><CHOICE>Claudius</CHOICE><CHOICE>Caligula</CHOICE><CHOICE>Julius Caesar</CHOICE><CHOICE>Augustus</CHOICE></QUESTION><QUESTION TEXT=\"Which actress starred as Holly Golightly in the 1961 Academy Award winning film 'Breakfast at Tiffany's'?\" QID=\"3773\" TIME=\"15000\" ANSWER=\"1\" DIFFICULTY=\"2\" VALUE=\"67.4\" COMMENT=\"\"><CHOICE>Audrey Hepburn</CHOICE><CHOICE>Elizabeth Taylor</CHOICE><CHOICE>Julie Andrews</CHOICE><CHOICE>Julie Christie</CHOICE></QUESTION></QUIZ>");
if ((_root["aso#76947"] == undefined) or (_root["aso#76947"] == "")) {
_root["aso#76947"] = 1;
}
if ((_root.curQuizNumber == undefined) or (_root.curQuizNumber == "")) {
_root.curQuizNumber = 0;
}
aso#55775();
stop();
if ((_root.partner_aff_id == "") or (_root.partner_aff_id == undefined)) {
_root.partner_aff_id = "9997";
}
popGameWait = function () {
var _local1 = _root;
_local1.attachMovie("clipPopupWait", "clipPopupWait0", 2);
_local1.clipPopupWait0._x = 250;
_local1.clipPopupWait0._y = 110;
};
activateBoutonValide = function () {
ecranPartieSelection.boutValide._alpha = 100;
_root.validate_room_active = "aso#36837";
};
deactivateBoutonValide = function () {
ecranPartieSelection.boutValide._alpha = 75;
_root.validate_room_active = "N";
};
popCheater = function () {
var _local1 = _root;
_local1.attachMovie("clipPopupCheater", "clipPopupCheater0", 2);
_local1.clipPopupCheater0._x = 250;
_local1.clipPopupCheater0._y = 110;
_local1.clipPopupCheater0.champMessage = message;
};
popShowAllRoomUser = function (room) {
_root.attachMovie("popupListUserAllGroup", "popLUAG" + room, 20);
eval ("_root.popLUAG" + room)._x = 250;
eval ("_root.popLUAG" + room)._y = 110;
};
theClipGround.gotoAndPlay(1);
Frame 4
Frame 5
_global.frameActu = "jeu";
_global.roomActu = "jeu";
_global.longueurCourse = _root["aso#12881"];
var aso#93522 = new Array();
removeMovieClip(_root.clipPopupPodium0);
var postUA = new Array();
var replay_action = new Array();
var replay_action_last_index = new Object();
var replayTimeStartRace = 0;
var quizAutorized = "aso#36837";
sound_enabled = "aso#36837";
aso#18449();
setGameModes();
aso#49786();
stop();
aso#68174._visible = true;
aso#42826._visible = true;
parrainage_clip._visible = false;
_root.clipPopupList0._x = 450;
_root.clipPopupList0._y = 160;
Instance of Symbol 492 MovieClip "barreEnergie" in Frame 5
/* no clip actions */
Instance of Symbol 540 MovieClip "ecranPartieJeu" in Frame 5
/* no clip actions */
Instance of Symbol 547 MovieClip "mc_clock" in Frame 5
/* no clip actions */
Symbol 11 MovieClip [ResizeCursor] Frame 1
stop();
Symbol 11 MovieClip [ResizeCursor] Frame 2
stop();
Symbol 11 MovieClip [ResizeCursor] Frame 3
stop();
Symbol 15 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(titleArea_mc, "titleBackground");
Symbol 27 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(symbol_mc, "widgetSymbol");
component.registerSkinElement(face_mc, "widgetFace");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 36 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(symbol_mc, "widgetSymbol");
component.registerSkinElement(face_mc, "widgetFace");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 43 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(symbol_mc, "widgetSymbol");
component.registerSkinElement(face_mc, "widgetFace");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 51 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(symbol_mc, "widgetSymbol");
component.registerSkinElement(face_mc, "widgetFace");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 58 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(symbol_mc, "widgetSymbol");
component.registerSkinElement(face_mc, "widgetFace");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 59 MovieClip [Shader] Frame 1
stop();
Symbol 59 MovieClip [Shader] Frame 2
stop();
Symbol 59 MovieClip [Shader] Frame 3
stop();
Symbol 59 MovieClip [Shader] Frame 4
stop();
Symbol 59 MovieClip [Shader] Frame 5
stop();
Symbol 62 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement("separator_mc", "highlight");
Symbol 73 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(symbol_mc, "widgetSymbol");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 82 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(symbol_mc, "widgetSymbol");
component.registerSkinElement(face_mc, "widgetFace");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 90 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(symbol_mc, "widgetSymbol");
component.registerSkinElement(face_mc, "widgetFace");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 97 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(symbol_mc, "widgetSymbol");
component.registerSkinElement(face_mc, "widgetFace");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 98 MovieClip [CloseBox] Frame 1
stop();
Symbol 98 MovieClip [CloseBox] Frame 2
stop();
Symbol 98 MovieClip [CloseBox] Frame 3
stop();
Symbol 101 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 16777215 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 102 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 108 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 109 MovieClip Frame 8
stop();
Symbol 111 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 112 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 113 MovieClip [UpArrow] Frame 1
stop();
Symbol 113 MovieClip [UpArrow] Frame 2
stop();
Symbol 113 MovieClip [UpArrow] Frame 3
stop();
Symbol 117 MovieClip Frame 8
stop();
Symbol 118 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 121 MovieClip Frame 19
stop();
Symbol 122 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 124 MovieClip Frame 8
stop();
Symbol 125 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 126 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 128 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 129 MovieClip Frame 8
stop();
Symbol 131 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 132 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 133 MovieClip [DownArrow] Frame 1
stop();
Symbol 133 MovieClip [DownArrow] Frame 2
stop();
Symbol 133 MovieClip [DownArrow] Frame 3
stop();
Symbol 168 MovieClip Frame 20
stop();
Symbol 170 MovieClip Frame 1
loaded = Math.round(_root.getBytesLoaded() / 1024);
total = Math.round(_root.getBytesTotal() / 1024);
percent = Math.round((loaded / total) * 100);
bytesTotalOutput = total;
percentOutput = percent + "%";
setProperty(barre, _width , (taille * percent) / 100);
taille = 90;
Symbol 170 MovieClip Frame 2
if (percent > 99) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Symbol 170 MovieClip Frame 3
_root.gotoAndStop("general");
stop();
Symbol 180 MovieClip Frame 9
stop();
Instance of Symbol 180 MovieClip "brassard" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
laCouleur = new Color(this);
laCouleur.setRGB(this._parent._parent.playerColor);
}
Symbol 189 MovieClip Frame 9
stop();
Symbol 192 MovieClip Frame 1
mc_point._visible = false;
stop();
Symbol 192 MovieClip Frame 2
mc_point._visible = true;
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 5
gotoAndPlay (2);
Symbol 196 MovieClip Frame 1
targetRange._visible = false;
Symbol 196 MovieClip Frame 3
Symbol 196 MovieClip Frame 5
Symbol 196 MovieClip Frame 7
Symbol 196 MovieClip Frame 9
Symbol 196 MovieClip Frame 11
Symbol 196 MovieClip Frame 13
Symbol 196 MovieClip Frame 15
Symbol 196 MovieClip Frame 17
Symbol 196 MovieClip Frame 19
Symbol 196 MovieClip Frame 21
Symbol 196 MovieClip Frame 23
Symbol 196 MovieClip Frame 25
Symbol 196 MovieClip Frame 27
Symbol 196 MovieClip Frame 29
Symbol 249 MovieClip Frame 1
Instance of Symbol 196 MovieClip "brassard" in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
laCouleur = new Color(this);
laCouleur.setRGB(this._parent._parent.playerColor);
}
Symbol 249 MovieClip Frame 2
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 3
Symbol 249 MovieClip Frame 4
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 5
Symbol 249 MovieClip Frame 6
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 7
Symbol 249 MovieClip Frame 8
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 9
Symbol 249 MovieClip Frame 10
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 11
Symbol 249 MovieClip Frame 12
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 13
Symbol 249 MovieClip Frame 14
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 15
Symbol 249 MovieClip Frame 16
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 17
Symbol 249 MovieClip Frame 18
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 19
Symbol 249 MovieClip Frame 20
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 21
Symbol 249 MovieClip Frame 22
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 23
Symbol 249 MovieClip Frame 24
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 25
Symbol 249 MovieClip Frame 26
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 27
Symbol 249 MovieClip Frame 28
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
brassard.gotoAndPlay(_currentframe + 1);
}
Symbol 249 MovieClip Frame 29
Symbol 249 MovieClip Frame 30
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay (1);
brassard.gotoAndStop(1);
}
Symbol 252 MovieClip Frame 2
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 4
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 6
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 8
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 10
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 12
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 14
stop();
Symbol 252 MovieClip Frame 16
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 18
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 20
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 22
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 24
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 26
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 28
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 30
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 32
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 34
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 36
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 38
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 40
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 42
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 44
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 46
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 48
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 50
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 52
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 54
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 56
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 58
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 60
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 62
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 64
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 66
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 68
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 70
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Symbol 252 MovieClip Frame 72
if (_global.gameResolution != "haute") {
gotoAndPlay(_currentframe + 1);
}
Instance of Symbol 252 MovieClip "brassard" in Symbol 303 MovieClip Frame 1
onClipEvent (load) {
laCouleur = new Color(this);
laCouleur.setRGB(this._parent._parent.playerColor);
}
Symbol 303 MovieClip Frame 2
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 4
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 6
if (_root.sound_enabled == "aso#36837") {
_parent.boo.start(0, 1);
_parent.boo.setVolume(_root.global_volume);
}
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 8
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 10
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 12
Symbol 303 MovieClip Frame 14
stop();
Symbol 303 MovieClip Frame 16
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 18
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 20
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 22
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 24
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 26
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 28
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 30
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 32
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 34
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 36
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 38
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 40
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 42
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 44
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 46
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 48
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 50
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 52
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 54
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 56
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 58
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 60
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 62
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 64
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 66
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 68
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 70
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 72
if ((_global.gameResolution != "haute") or (_global.SpriteAnimateMode == "fast")) {
gotoAndPlay(_currentframe + 1);
}
brassard.gotoAndStop(_currentframe);
Symbol 303 MovieClip Frame 74
if (_global.frameActu == "jeu") {
}
_parent.gotoAndStop("runVitesse1");
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 19
stop();
Symbol 306 MovieClip Frame 22
stop();
Symbol 306 MovieClip Frame 25
stop();
Symbol 306 MovieClip Frame 28
stop();
Instance of Symbol 306 MovieClip "brassard" in Symbol 315 MovieClip Frame 1
onClipEvent (load) {
laCouleur = new Color(this);
laCouleur.setRGB(this._parent._parent.playerColor);
}
Symbol 315 MovieClip Frame 19
brassard.gotoAndStop("loser");
if (_parent.endPosition == "loser") {
stop();
}
Symbol 315 MovieClip Frame 22
brassard.gotoAndStop("third");
if (_parent.endPosition == "third") {
stop();
}
Symbol 315 MovieClip Frame 25
brassard.gotoAndStop("second");
if (_parent.endPosition == "second") {
stop();
}
Symbol 315 MovieClip Frame 28
brassard.gotoAndStop("first");
_root.crowd_cheer = new Sound(_root);
_root.crowd_cheer.attachSound("cheer");
_root.crowd_cheer.start(0, 1);
_root.crowd_cheer.setVolume(_root.global_volume);
_root.sonMus.stop("run_music");
stop();
Symbol 315 MovieClip Frame 30
stop();
Symbol 316 MovieClip [aso#41013] Frame 1
stop();
function getupAndRun() {
perso.gotoAndPlay("getup");
perso.brassard.gotoAndPlay("getup");
clearInterval(setInterval_ID);
}
if (_root.sound_enabled == "aso#36837") {
this.boo = new Sound(this);
this.boo.attachSound("boo");
}
Symbol 316 MovieClip [aso#41013] Frame 2
stop();
Instance of Symbol 249 MovieClip "perso" in Symbol 316 MovieClip [aso#41013] Frame 2
onClipEvent (load) {
frameToSet = random(30);
this.gotoAndPlay(frameToSet + 1);
this.brassard.gotoAndPlay(frameToSet + 1);
}
Symbol 316 MovieClip [aso#41013] Frame 3
stop();
Symbol 316 MovieClip [aso#41013] Frame 4
stop();
Symbol 322 Button
on (rollOver) {
supportTotal.useHandCursor = false;
this.createEmptyMovieClip("clipMouseConteneur", 100);
this.clipMouseConteneur.attachMovie("clipMouse", "clipMouse0", 101);
Mouse.hide();
this.clipMouseConteneur.clipMouse0.gotoAndPlay(2);
startDrag (this.clipMouseConteneur.clipMouse0, true);
this.clipMouseConteneur.clipMouse0._visible = true;
}
on (rollOut) {
Mouse.show();
this.clipMouseConteneur.clipMouse0.stopDrag();
this.clipMouseConteneur.clipMouse0._visible = false;
}
on (releaseOutside) {
Mouse.show();
this.clipMouseConteneur.clipMouse0.stopDrag();
this.clipMouseConteneur.clipMouse0._visible = false;
}
on (press) {
startDrag (_parent);
}
on (release) {
stopDrag();
startDrag (this.clipMouseConteneur.clipMouse0, true);
}
Symbol 323 MovieClip Frame 1
bout.useHandCursor = false;
Symbol 331 Button
on (release) {
removeMovieClip(this);
}
Symbol 335 Button
on (release) {
removeMovieClip(this);
_root.chat.sync_startRace();
}
Symbol 343 Button
on (release) {
removeMovieClip(this);
}
Symbol 354 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 355 MovieClip [FScrollBarSymbol] Frame 1
#initclip 40
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1["aso#90317"]);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1["aso#90317"]);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1["aso#90317"];
_local1.scrollTrack_mc.onDragOut = _local1["aso#90317"];
_local1.scrollTrack_mc.onRollOut = _local1["aso#90317"];
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype["aso#90317"] = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 359 MovieClip [clipPopupList] Frame 1
_root.afficheListe();
down.onPress = function () {
userList.scroll = userList.scroll + 1;
};
up.onPress = function () {
userList.scroll = userList.scroll - 1;
};
Instance of Symbol 355 MovieClip [FScrollBarSymbol] "scroller" in Symbol 359 MovieClip [clipPopupList] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "theuserlist";
horizontal = false;
}
Symbol 363 MovieClip [popupListUserAllGroup] Frame 1
org.omus.info.loadUserList();
Symbol 368 Button
on (release) {
gotoAndStop (1);
}
Symbol 385 MovieClip Frame 1
stop();
Symbol 385 MovieClip Frame 2
stop();
Symbol 386 Button
on (release) {
if (buttonGoToFrame == "race") {
_root.aso#49786();
} else {
_root.gotoAndStop(buttonGoToFrame);
}
removeMovieClip(this);
}
Symbol 399 MovieClip [MC_compteurDepart] Frame 1
level.level = (_global.TXT_Level + " ") + _root["aso#76947"];
Symbol 399 MovieClip [MC_compteurDepart] Frame 51
stop();
Symbol 406 MovieClip [Defaults] Frame 1
#initclip 29
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 407 MovieClip [UIObjectExtensions] Frame 1
#initclip 30
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 408 MovieClip [UIObject] Frame 1
#initclip 31
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 409 MovieClip [Border] Frame 1
#initclip 32
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 410 MovieClip [RectBorder] Frame 1
#initclip 33
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 413 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 414 MovieClip Frame 1
#initclip 34
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 417 MovieClip [FocusRect] Frame 1
#initclip 35
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 418 MovieClip [FocusManager] Frame 1
#initclip 36
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 419 MovieClip [UIComponentExtensions] Frame 1
#initclip 37
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 420 MovieClip [UIComponent] Frame 1
#initclip 38
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 421 MovieClip [TextInput] Frame 1
#initclip 39
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 449 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 2
play();
Symbol 449 MovieClip Frame 5
stop();
Symbol 450 MovieClip [clipMouse] Frame 10
arrowDeploy.gotoAndPlay("in");
stop();
Symbol 455 MovieClip Frame 1
stop();
Symbol 565 MovieClip [__Packages.com.meychi.ascrypt.MD5] Frame 0
class com.meychi.ascrypt.MD5
{
function MD5 () {
}
static function calculate(src) {
return(hex_md5(src));
}
static function hex_md5(src) {
return(binl2hex(core_md5(str2binl(src), src.length * 8)));
}
static function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var a = 1732584193;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var i = 0;
while (i < x.length) {
var olda = a;
var oldb = _local3;
var oldc = _local2;
var oldd = _local1;
a = md5_ff(a, _local3, _local2, _local1, x[i + 0], 7, -680876936);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 3], 22, -1044525330);
a = md5_ff(a, _local3, _local2, _local1, x[i + 4], 7, -176418897);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 7], 22, -45705983);
a = md5_ff(a, _local3, _local2, _local1, x[i + 8], 7, 1770035416);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 11], 22, -1990404162);
a = md5_ff(a, _local3, _local2, _local1, x[i + 12], 7, 1804603682);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 15], 22, 1236535329);
a = md5_gg(a, _local3, _local2, _local1, x[i + 1], 5, -165796510);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 0], 20, -373897302);
a = md5_gg(a, _local3, _local2, _local1, x[i + 5], 5, -701558691);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 4], 20, -405537848);
a = md5_gg(a, _local3, _local2, _local1, x[i + 9], 5, 568446438);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 8], 20, 1163531501);
a = md5_gg(a, _local3, _local2, _local1, x[i + 13], 5, -1444681467);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 12], 20, -1926607734);
a = md5_hh(a, _local3, _local2, _local1, x[i + 5], 4, -378558);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 14], 23, -35309556);
a = md5_hh(a, _local3, _local2, _local1, x[i + 1], 4, -1530992060);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 10], 23, -1094730640);
a = md5_hh(a, _local3, _local2, _local1, x[i + 13], 4, 681279174);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 6], 23, 76029189);
a = md5_hh(a, _local3, _local2, _local1, x[i + 9], 4, -640364487);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 2], 23, -995338651);
a = md5_ii(a, _local3, _local2, _local1, x[i + 0], 6, -198630844);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 5], 21, -57434055);
a = md5_ii(a, _local3, _local2, _local1, x[i + 12], 6, 1700485571);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 1], 21, -2054922799);
a = md5_ii(a, _local3, _local2, _local1, x[i + 8], 6, 1873313359);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 13], 21, 1309151649);
a = md5_ii(a, _local3, _local2, _local1, x[i + 4], 6, -145523070);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 9], 21, -343485551);
a = safe_add(a, olda);
_local3 = safe_add(_local3, oldb);
_local2 = safe_add(_local2, oldc);
_local1 = safe_add(_local1, oldd);
i = i + 16;
}
return(new Array(a, _local3, _local2, _local1));
}
static function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
static function md5_ff(a, b, c, d, x, s, t) {
var _local1 = b;
return(md5_cmn((_local1 & c) | ((~_local1) & d), a, _local1, x, s, t));
}
static function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
static function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
static function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
static function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
static function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
static function str2binl(str) {
var _local2 = str;
var _local3 = new Array();
var mask = 255;
var _local1 = 0;
while (_local1 < (_local2.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((_local2.charCodeAt(_local1 / 8) & mask) << (_local1 % 32));
_local1 = _local1 + 8;
}
return(_local3);
}
static function binl2hex(binarray) {
var _local2 = binarray;
var str = new String("");
var _local3 = new String("0123456789abcdef");
var _local1 = 0;
while (_local1 < (_local2.length * 4)) {
str = str + (_local3.charAt((_local2[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((_local2[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(str);
}
}
Symbol 566 MovieClip [__Packages.com.meychi.ascrypt.aso#26251] Frame 0
class com.meychi.ascrypt.aso#26251
{
function aso#26251 () {
}
static function encrypt(src, key) {
var v = charsToLongs(strToChars(src));
var k = charsToLongs(strToChars(key));
var n = v.length;
if (n == 0) {
return("");
}
if (n == 1) {
v[n++] = 0;
}
var _local2 = v[n - 1];
var _local3 = v[0];
var delta = 2654435769;
var mx;
var e;
var q = Math.floor(6 + (52 / n));
var sum = 0;
while ((q--) > 0) {
sum = sum + delta;
e = (sum >>> 2) & 3;
var _local1 = 0;
while (_local1 < (n - 1)) {
_local3 = v[_local1 + 1];
mx = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((sum ^ _local3) + (k[(_local1 & 3) ^ e] ^ _local2));
_local2 = (v[_local1] = v[_local1] + mx);
_local1++;
}
_local3 = v[0];
mx = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((sum ^ _local3) + (k[(_local1 & 3) ^ e] ^ _local2));
_local2 = (v[n - 1] = v[n - 1] + mx);
}
return(charsToHex(longsToChars(v)));
}
static function aso#85720(src, key) {
var v = charsToLongs(hexToChars(src));
var k = charsToLongs(strToChars(key));
var n = v.length;
if (n == 0) {
return("");
}
var _local2 = v[n - 1];
var _local3 = v[0];
var delta = 2654435769;
var mx;
var e;
var q = Math.floor(6 + (52 / n));
var sum = (q * delta);
while (sum != 0) {
e = (sum >>> 2) & 3;
var _local1 = n - 1;
while (_local1 > 0) {
_local2 = v[_local1 - 1];
mx = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((sum ^ _local3) + (k[(_local1 & 3) ^ e] ^ _local2));
_local3 = (v[_local1] = v[_local1] - mx);
_local1--;
}
_local2 = v[n - 1];
mx = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((sum ^ _local3) + (k[(_local1 & 3) ^ e] ^ _local2));
_local3 = (v[0] = v[0] - mx);
sum = sum - delta;
}
return(charsToStr(longsToChars(v)));
}
static function charsToLongs(chars) {
var _local2 = chars;
var _local3 = new Array(Math.ceil(_local2.length / 4));
var _local1 = 0;
while (_local1 < _local3.length) {
_local3[_local1] = ((_local2[_local1 * 4] + (_local2[(_local1 * 4) + 1] << 8)) + (_local2[(_local1 * 4) + 2] << 16)) + (_local2[(_local1 * 4) + 3] << 24);
_local1++;
}
return(_local3);
}
static function longsToChars(longs) {
var _local2 = longs;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1] & 255, (_local2[_local1] >>> 8) & 255, (_local2[_local1] >>> 16) & 255, (_local2[_local1] >>> 24) & 255);
_local1++;
}
return(_local3);
}
static function charsToHex(chars) {
var _local2 = chars;
var result = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < _local2.length) {
result = result + (_local3[_local2[_local1] >> 4] + _local3[_local2[_local1] & 15]);
_local1++;
}
return(result);
}
static function hexToChars(hex) {
var _local2 = hex;
var _local3 = new Array();
var _local1 = ((_local2.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < _local2.length) {
_local3.push(parseInt(_local2.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
static function charsToStr(chars) {
var _local2 = chars;
var _local3 = new String("");
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + String.fromCharCode(_local2[_local1]);
_local1++;
}
return(_local3);
}
static function strToChars(str) {
var _local2 = str;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
}
Symbol 567 MovieClip [__Packages.com.meychi.ascrypt.aso#62185] Frame 0
class com.meychi.ascrypt.aso#62185
{
function aso#62185 () {
}
static function encrypt(src, key) {
var _local3 = strToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToHex(_local2));
}
static function aso#85720(src, key) {
var _local3 = hexToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToStr(_local2));
}
static function initialize(pwd) {
var _local2 = 0;
var _local3;
var intLength = pwd.length;
var _local1 = 0;
while (_local1 <= 255) {
mykey[_local1] = pwd[_local1 % intLength];
sbox[_local1] = _local1;
_local1++;
}
_local1 = 0;
while (_local1 <= 255) {
_local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256;
_local3 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local3;
_local1++;
}
}
static function calculate(plaintxt, psw) {
initialize(psw);
var _local1 = 0;
var _local2 = 0;
var cipher = new Array();
var k;
var temp;
var cipherby;
var _local3 = 0;
while (_local3 < plaintxt.length) {
_local1 = (_local1 + 1) % 256;
_local2 = (_local2 + sbox[_local1]) % 256;
temp = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = temp;
var idx = ((sbox[_local1] + sbox[_local2]) % 256);
k = sbox[idx];
cipherby = plaintxt[_local3] ^ k;
cipher.push(cipherby);
_local3++;
}
return(cipher);
}
static function charsToHex(chars) {
var _local2 = chars;
var result = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < _local2.length) {
result = result + (_local3[_local2[_local1] >> 4] + _local3[_local2[_local1] & 15]);
_local1++;
}
return(result);
}
static function hexToChars(hex) {
var _local2 = hex;
var _local3 = new Array();
var _local1 = ((_local2.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < _local2.length) {
_local3.push(parseInt(_local2.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
static function charsToStr(chars) {
var _local2 = chars;
var _local3 = new String("");
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + String.fromCharCode(_local2[_local1]);
_local1++;
}
return(_local3);
}
static function strToChars(str) {
var _local2 = str;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
static var sbox = new Array(255);
static var mykey = new Array(255);
}
Symbol 401 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, aso#83907, 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(_param1) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(_param1) {
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(_param1) {
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(_param1) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(_param1) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(_param1) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(aso#05500) {
}
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 _local2 = __width;
var _local3 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local2, oldHeight:_local3});
}
}
function size(_param1) {
_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 = 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(aso#05500) {
}
function _createChildren(_param1) {
createChildren();
childrenCreated = true;
}
function constructObject(_param1) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(_param1) {
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(_param1) {
__width = _width;
__height = _height;
if (aso#83907 == undefined) {
initFromClipParameters();
} else {
aso#83907();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(_param1) {
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(_param1) {
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(_param1) {
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.1.78";
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 402 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.1.78";
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 403 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(_param1) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(_param1) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(_param1) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(_param1) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(_param1) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.1.78";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 422 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 423 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 424 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 425 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 426 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(_param1) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 427 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(_param1) {
super.init();
}
function draw(_param1) {
size();
}
function getBorderMetrics(_param1) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(aso#05500) {
}
function size(_param1) {
drawBorder();
}
function setColor(_param1) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.1.78";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 428 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};
}
Symbol 429 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(_param1) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(_param1) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(_param1) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(_param1) {
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 430 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement
{
var getStyle, _color, onEnterFrame;
function ColoredSkinElement () {
}
function setColor(c) {
if (c != undefined) {
var _local2 = new Color(this);
_local2.setRGB(c);
}
}
function draw(_param1) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(_param1) {
onEnterFrame = draw;
}
static function setColorStyle(p, colorStyle) {
if (p._color == undefined) {
p._color = colorStyle;
}
p.setColor = mixins.setColor;
p.invalidateStyle = mixins.invalidateStyle;
p.draw = mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
static var mixins = new mx.skins.ColoredSkinElement();
}
Symbol 431 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions
{
function UIObjectExtensions () {
}
static function addGeometry(tf, ui) {
tf.addProperty("width", ui.__get__width, null);
tf.addProperty("height", ui.__get__height, null);
tf.addProperty("left", ui.__get__left, null);
tf.addProperty("x", ui.__get__x, null);
tf.addProperty("top", ui.__get__top, null);
tf.addProperty("y", ui.__get__y, null);
tf.addProperty("right", ui.__get__right, null);
tf.addProperty("bottom", ui.__get__bottom, null);
tf.addProperty("visible", ui.__get__visible, ui.__set__visible);
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
var _local6 = mx.core.UIObject.prototype;
var _local9 = mx.skins.SkinElement.prototype;
addGeometry(_local9, _local6);
mx.events.UIEventDispatcher.initialize(_local6);
var _local13 = mx.skins.ColoredSkinElement;
mx.styles.CSSTextStyles.addTextStyles(_local6);
var _local5 = MovieClip.prototype;
_local5.getTopLevel = _local6.getTopLevel;
_local5.createLabel = _local6.createLabel;
_local5.createObject = _local6.createObject;
_local5.createClassObject = _local6.createClassObject;
_local5.createEmptyObject = _local6.createEmptyObject;
_local5.destroyObject = _local6.destroyObject;
_global.ASSetPropFlags(_local5, "getTopLevel", 1);
_global.ASSetPropFlags(_local5, "createLabel", 1);
_global.ASSetPropFlags(_local5, "createObject", 1);
_global.ASSetPropFlags(_local5, "createClassObject", 1);
_global.ASSetPropFlags(_local5, "createEmptyObject", 1);
_global.ASSetPropFlags(_local5, "destroyObject", 1);
_local5.__getTextFormat = _local6.__getTextFormat;
_local5._getTextFormat = _local6._getTextFormat;
_local5.getStyleName = _local6.getStyleName;
_local5.getStyle = _local6.getStyle;
_global.ASSetPropFlags(_local5, "__getTextFormat", 1);
_global.ASSetPropFlags(_local5, "_getTextFormat", 1);
_global.ASSetPropFlags(_local5, "getStyleName", 1);
_global.ASSetPropFlags(_local5, "getStyle", 1);
var _local7 = TextField.prototype;
addGeometry(_local7, _local6);
_local7.addProperty("enabled", function () {
return(this.__enabled);
}, function (x) {
this.__enabled = x;
this.invalidateStyle();
});
_local7.move = _local9.move;
_local7.setSize = _local9.setSize;
_local7.invalidateStyle = function () {
this.invalidateFlag = true;
};
_local7.draw = function () {
if (this.invalidateFlag) {
this.invalidateFlag = false;
var _local2 = this._getTextFormat();
this.setTextFormat(_local2);
this.setNewTextFormat(_local2);
this.embedFonts = _local2.embedFonts == true;
if (this.__text != undefined) {
if (this.text == "") {
this.text = this.__text;
}
delete this.__text;
}
this._visible = true;
}
};
_local7.setColor = function (color) {
this.textColor = color;
};
_local7.getStyle = _local5.getStyle;
_local7.__getTextFormat = _local6.__getTextFormat;
_local7.setValue = function (v) {
this.text = v;
};
_local7.getValue = function () {
return(this.text);
};
_local7.addProperty("value", function () {
return(this.getValue());
}, function (v) {
this.setValue(v);
});
_local7._getTextFormat = function () {
var _local2 = this.stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
this.__getTextFormat(_local2);
this.stylecache.tf = _local2;
if (this.__enabled == false) {
if (this.enabledColor == undefined) {
var _local4 = this.getTextFormat();
this.enabledColor = _local4.color;
}
var _local3 = this.getStyle("disabledColor");
_local2.color = _local3;
} else if (this.enabledColor != undefined) {
if (_local2.color == undefined) {
_local2.color = this.enabledColor;
}
}
return(_local2);
};
_local7.getPreferredWidth = function () {
this.draw();
return(this.textWidth + 4);
};
_local7.getPreferredHeight = function () {
this.draw();
return(this.textHeight + 4);
};
TextFormat.prototype.getTextExtent2 = function (s) {
var _local3 = _root._getTextExtent;
if (_local3 == undefined) {
_root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100);
_local3 = _root._getTextExtent;
_local3._visible = false;
}
_root._getTextExtent.text = s;
var _local4 = this.align;
this.align = "left";
_root._getTextExtent.setTextFormat(this);
this.align = _local4;
return({width:_local3.textWidth, height:_local3.textHeight});
};
if (_global.style == undefined) {
_global.style = new mx.styles.CSSStyleDeclaration();
_global.cascadingStyles = true;
_global.styles = new Object();
_global.skinRegistry = new Object();
if (_global._origWidth == undefined) {
_global.origWidth = Stage.width;
_global.origHeight = Stage.height;
}
}
var _local4 = _root;
while (_local4._parent != undefined) {
_local4 = _local4._parent;
}
_local4.addProperty("width", function () {
return(Stage.width);
}, null);
_local4.addProperty("height", function () {
return(Stage.height);
}, null);
_global.ASSetPropFlags(_local4, "width", 1);
_global.ASSetPropFlags(_local4, "height", 1);
return(true);
}
static var bExtended = false;
static var UIObjectExtended = Extensions();
static var UIObjectDependency = mx.core.UIObject;
static var SkinElementDependency = mx.skins.SkinElement;
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 432 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder
{
var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill;
function RectBorder () {
super();
}
function init(_param1) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(_param1) {
if (offset == undefined) {
var _local3 = getStyle(borderStyleName);
offset = borderWidths[_local3];
}
if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) {
__borderMetrics = {left:3, top:1, right:3, bottom:3};
return(__borderMetrics);
}
return(super.getBorderMetrics());
}
function drawBorder(_param1) {
var _local6 = _global.styles[className];
if (_local6 == undefined) {
_local6 = _global.styles.RectBorder;
}
var _local5 = getStyle(borderStyleName);
var _local7 = getStyle(borderColorName);
if (_local7 == undefined) {
_local7 = _local6[borderColorName];
}
var _local8 = getStyle(backgroundColorName);
if (_local8 == undefined) {
_local8 = _local6[backgroundColorName];
}
var _local16 = getStyle("backgroundImage");
if (_local5 != "none") {
var _local14 = getStyle(shadowColorName);
if (_local14 == undefined) {
_local14 = _local6[shadowColorName];
}
var _local13 = getStyle(highlightColorName);
if (_local13 == undefined) {
_local13 = _local6[highlightColorName];
}
var _local12 = getStyle(buttonColorName);
if (_local12 == undefined) {
_local12 = _local6[buttonColorName];
}
var _local11 = getStyle(borderCapColorName);
if (_local11 == undefined) {
_local11 = _local6[borderCapColorName];
}
var _local10 = getStyle(shadowCapColorName);
if (_local10 == undefined) {
_local10 = _local6[shadowCapColorName];
}
}
offset = borderWidths[_local5];
var _local9 = offset;
var _local3 = __get__width();
var _local4 = __get__height();
clear();
_color = undefined;
if (_local5 == "none") {
} else if (_local5 == "inset") {
_color = colorList;
draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10);
} else if (_local5 == "outset") {
_color = colorList;
draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10);
} else if (_local5 == "alert") {
var _local15 = getStyle("themeColor");
drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50);
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100);
} else if (_local5 == "default") {
drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10);
drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial");
drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100);
} else if (_local5 == "dropDown") {
drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear");
drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100);
} else if (_local5 == "menuBorder") {
var _local15 = getStyle("themeColor");
drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial");
drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10);
drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear");
drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50);
drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100);
} else if (_local5 == "comboNonEdit") {
} else {
beginFill(_local7);
drawRect(0, 0, _local3, _local4);
drawRect(1, 1, _local3 - 1, _local4 - 1);
endFill();
_color = borderColorName;
}
if (_local8 != undefined) {
beginFill(_local8);
drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9);
endFill();
}
}
function draw3dBorder(c1, c2, c3, c4, c5, c6) {
var _local3 = __get__width();
var _local2 = __get__height();
beginFill(c1);
drawRect(0, 0, _local3, _local2);
drawRect(1, 0, _local3 - 1, _local2);
endFill();
beginFill(c2);
drawRect(1, 0, _local3 - 1, 1);
endFill();
beginFill(c3);
drawRect(1, _local2 - 1, _local3 - 1, _local2);
endFill();
beginFill(c4);
drawRect(1, 1, _local3 - 1, 2);
endFill();
beginFill(c5);
drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1);
endFill();
beginFill(c6);
drawRect(1, 2, _local3 - 1, _local2 - 2);
drawRect(2, 2, _local3 - 2, _local2 - 2);
endFill();
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.styles.rectBorderClass = mx.skins.halo.RectBorder;
_global.skinRegistry.RectBorder = true;
return(true);
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.halo.RectBorder;
static var version = "2.0.1.78";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 433 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults
{
var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill;
function Defaults () {
}
static function setThemeDefaults() {
var _local2 = _global.style;
_local2.themeColor = 8453965 /* 0x80FF4D */;
_local2.disabledColor = 8684164 /* 0x848284 */;
_local2.modalTransparency = 0;
_local2.filled = true;
_local2.stroked = true;
_local2.strokeWidth = 1;
_local2.strokeColor = 0;
_local2.fillColor = 16777215 /* 0xFFFFFF */;
_local2.repeatInterval = 35;
_local2.repeatDelay = 500;
_local2.fontFamily = "_sans";
_local2.fontSize = 12;
_local2.selectionColor = 13500353 /* 0xCDFFC1 */;
_local2.rollOverColor = 14942166 /* 0xE3FFD6 */;
_local2.useRollOver = true;
_local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */;
_local2.selectionDuration = 200;
_local2.openDuration = 250;
_local2.borderStyle = "inset";
_local2.color = 734012 /* 0x0B333C */;
_local2.textSelectedColor = 24371;
_local2.textRollOverColor = 2831164 /* 0x2B333C */;
_local2.textDisabledColor = 16777215 /* 0xFFFFFF */;
_local2.vGridLines = true;
_local2.hGridLines = false;
_local2.vGridLineColor = 6710886 /* 0x666666 */;
_local2.hGridLineColor = 6710886 /* 0x666666 */;
_local2.headerColor = 15395562 /* 0xEAEAEA */;
_local2.indentation = 17;
_local2.folderOpenIcon = "TreeFolderOpen";
_local2.folderClosedIcon = "TreeFolderClosed";
_local2.defaultLeafIcon = "TreeNodeIcon";
_local2.disclosureOpenIcon = "TreeDisclosureOpen";
_local2.disclosureClosedIcon = "TreeDisclosureClosed";
_local2.popupDuration = 150;
_local2.todayColor = 6710886 /* 0x666666 */;
_local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration());
_local2.backgroundColor = 16777215 /* 0xFFFFFF */;
_local2.borderColor = 13290186 /* 0xCACACA */;
_local2.borderStyle = "inset";
_local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration());
_local2.borderStyle = "inset";
_local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration());
_local2.textAlign = "center";
_local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration());
_local2.borderColor = 14015965 /* 0xD5DDDD */;
_local2.buttonColor = 7305079 /* 0x6F7777 */;
_local2.shadowColor = 15658734 /* 0xEEEEEE */;
_local2.highlightColor = 12897484 /* 0xC4CCCC */;
_local2.shadowCapColor = 14015965 /* 0xD5DDDD */;
_local2.borderCapColor = 9542041 /* 0x919999 */;
var _local4 = new Object();
_local4.borderColor = 16711680 /* 0xFF0000 */;
_local4.buttonColor = 16711680 /* 0xFF0000 */;
_local4.shadowColor = 16711680 /* 0xFF0000 */;
_local4.highlightColor = 16711680 /* 0xFF0000 */;
_local4.shadowCapColor = 16711680 /* 0xFF0000 */;
_local4.borderCapColor = 16711680 /* 0xFF0000 */;
mx.core.UIComponent.prototype.origBorderStyles = _local4;
var _local3;
_local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration());
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderStyle = "inset";
_global.styles.TextArea = _global.styles.TextInput;
_local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "default";
_local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "alert";
_local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "inset";
_local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "none";
_local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration());
_local3.color = 11187123 /* 0xAAB3B3 */;
_local3.fontWeight = "bold";
_local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = "11";
_local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration());
_local3.borderStyle = "solid";
_local3.backgroundColor = 16777215 /* 0xFFFFFF */;
_local3.borderColor = 9081738 /* 0x8A938A */;
_local3.headerHeight = 22;
_local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1)));
_local3.verticalGap = -1;
_local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration());
_local3.borderColor = 9542041 /* 0x919999 */;
_local3.headerColor = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 10;
_local3.textAlign = "right";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration());
_local3.fontWeight = "bold";
_local3.fontSize = 11;
_local3.textAlign = "center";
_local3.color = 2831164 /* 0x2B333C */;
_local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration());
_local3.color = 16777215 /* 0xFFFFFF */;
_local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration());
_local3.fontSize = 12;
_local3.fontWeight = "bold";
_local3.textAlign = "center";
}
function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) {
if (typeof(r) == "object") {
var _local18 = r.br;
var _local16 = r.bl;
var _local15 = r.tl;
var _local10 = r.tr;
} else {
var _local10 = r;
var _local15 = _local10;
var _local16 = _local15;
var _local18 = _local16;
}
if (typeof(c) == "object") {
if (typeof(alpha) != "object") {
var _local9 = [alpha, alpha];
} else {
var _local9 = alpha;
}
if (ratios == undefined) {
ratios = [0, 255];
}
var _local14 = h * 0.7;
if (typeof(rot) != "object") {
var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */};
} else {
var _local11 = rot;
}
if (gradient == "radial") {
beginGradientFill("radial", c, _local9, ratios, _local11);
} else {
beginGradientFill("linear", c, _local9, ratios, _local11);
}
} else if (c != undefined) {
beginFill(c, alpha);
}
r = _local18;
var _local13 = r - (r * 0.707106781186547);
var _local12 = r - (r * 0.414213562373095);
moveTo(x + w, (y + h) - r);
lineTo(x + w, (y + h) - r);
curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13);
curveTo((x + w) - _local12, y + h, (x + w) - r, y + h);
r = _local16;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x + r, y + h);
curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13);
curveTo(x, (y + h) - _local12, x, (y + h) - r);
r = _local15;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo(x, y + r);
curveTo(x, y + _local12, x + _local13, y + _local13);
curveTo(x + _local12, y, x + r, y);
r = _local10;
_local13 = r - (r * 0.707106781186547);
_local12 = r - (r * 0.414213562373095);
lineTo((x + w) - r, y);
curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13);
curveTo(x + w, y + _local12, x + w, y + r);
lineTo(x + w, (y + h) - r);
if (c != undefined) {
endFill();
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
setThemeDefaults();
mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
static var UIObjectDependency = mx.core.UIObject;
}
Symbol 434 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager
{
static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent;
function SystemManager () {
}
static function init(aso#05500) {
if (_initialized == false) {
_initialized = true;
mx.events.EventDispatcher.initialize(mx.managers.SystemManager);
Mouse.addListener(mx.managers.SystemManager);
Stage.addListener(mx.managers.SystemManager);
_xAddEventListener = addEventListener;
addEventListener = __addEventListener;
_xRemoveEventListener = removeEventListener;
removeEventListener = __removeEventListener;
}
}
static function addFocusManager(f) {
form = f;
f.focusManager.activate();
}
static function removeFocusManager(f) {
}
static function onMouseDown(_param1) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(_param1) {
var _local7 = Stage.width;
var _local6 = Stage.height;
var _local9 = _global.origWidth;
var _local8 = _global.origHeight;
var _local3 = Stage.align;
var _local5 = (_local9 - _local7) / 2;
var _local4 = (_local8 - _local6) / 2;
if (_local3 == "T") {
_local4 = 0;
} else if (_local3 == "B") {
_local4 = _local8 - _local6;
} else if (_local3 == "L") {
_local5 = 0;
} else if (_local3 == "R") {
_local5 = _local9 - _local7;
} else if (_local3 == "LT") {
_local4 = 0;
_local5 = 0;
} else if (_local3 == "TR") {
_local4 = 0;
_local5 = _local9 - _local7;
} else if (_local3 == "LB") {
_local4 = _local8 - _local6;
_local5 = 0;
} else if (_local3 == "RB") {
_local4 = _local8 - _local6;
_local5 = _local9 - _local7;
}
if (__screen == undefined) {
__screen = new Object();
}
__screen.x = _local5;
__screen.y = _local4;
__screen.width = _local7;
__screen.height = _local6;
_root.focusManager.relocate();
dispatchEvent({type:"resize"});
}
static function get screen() {
init();
if (__screen == undefined) {
onResize();
}
return(__screen);
}
static var _initialized = false;
static var idleFrames = 0;
static var isMouseDown = false;
static var forms = new Array();
}
Symbol 435 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(_param1) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(_param1) {
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(_param1) {
__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(_param1) {
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(_param1) {
refresh();
}
function draw(_param1) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(_param1) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(_param1) {
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(_param1) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(_param1) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(_param1) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(_param1) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(_param1) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(_param1) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(_param1) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(_param1) {
phase = "rollover";
refresh();
}
function onRollOut(_param1) {
phase = "up";
refresh();
}
function getLabel(_param1) {
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.1.78";
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 436 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local6 = "down";
if (depthFlag == kBottom) {
_local6 = "up";
}
var _local5;
if (_local3[_local2] != undefined) {
_local5 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local6);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local5 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local5, _local3, _local6);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(this, _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local2 = targetDepth;
var _local1 = targetDepth;
if (direction == "down") {
while (depthTable[_local1] != undefined) {
_local1--;
}
return(_local1);
}
while (depthTable[_local2] != undefined) {
_local2++;
}
return(_local2);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(_param1) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 437 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent
{
var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject;
function FocusManager () {
super();
}
function get defaultPushButton() {
return(__defaultPushButton);
}
function set defaultPushButton(x) {
if (x != __defaultPushButton) {
__defaultPushButton.__set__emphasized(false);
__defaultPushButton = x;
defPushButton = x;
x.__set__emphasized(true);
}
//return(defaultPushButton);
}
function getMaxTabIndex(o) {
var _local3 = 0;
var _local6;
for (_local6 in o) {
var _local2 = o[_local6];
if (_local2._parent == o) {
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex > _local3) {
_local3 = _local2.tabIndex;
}
}
if (_local2.tabChildren == true) {
var _local4 = getMaxTabIndex(_local2);
if (_local4 > _local3) {
_local3 = _local4;
}
}
}
}
return(_local3);
}
function getNextTabIndex(_param1) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(_param1) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(_param1) {
super.init();
tabEnabled = false;
_width = (_height = 1);
_x = (_y = -1);
_alpha = 0;
_parent.focusManager = this;
_parent.tabChildren = true;
_parent.tabEnabled = false;
form = _parent;
_parent.addEventListener("hide", this);
_parent.addEventListener("reveal", this);
mx.managers.SystemManager.init();
mx.managers.SystemManager.addFocusManager(form);
tabCapture.tabIndex = 0;
watch("enabled", enabledChanged);
Selection.addListener(this);
lastMouse = new Object();
_global.ASSetPropFlags(_parent, "focusManager", 1);
_global.ASSetPropFlags(_parent, "tabChildren", 1);
_global.ASSetPropFlags(_parent, "tabEnabled", 1);
}
function enabledChanged(id, oldValue, newValue) {
_visible = newValue;
return(newValue);
}
function activate(_param1) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(_param1) {
Key.removeListener(this);
activated = (_visible = false);
var _local2 = getSelectionFocus();
var _local3 = getActualFocus(_local2);
if (isOurFocus(_local3)) {
lastSelFocus = _local2;
lastFocus = _local3;
}
cancelAllDoLaters();
}
function isOurFocus(o) {
if (o.focusManager == this) {
return(true);
}
while (o != undefined) {
if (o.focusManager != undefined) {
return(false);
}
if (o._parent == _parent) {
return(true);
}
o = o._parent;
}
return(false);
}
function onSetFocus(o, n) {
if (n == null) {
if (activated) {
bNeedFocus = true;
}
} else {
var _local2 = getFocus();
if (isOurFocus(_local2)) {
bNeedFocus = false;
lastFocus = _local2;
lastSelFocus = n;
}
}
}
function restoreFocus(_param1) {
var _local2 = lastSelFocus.hscroll;
if (_local2 != undefined) {
var _local5 = lastSelFocus.scroll;
var _local4 = lastSelFocus.background;
}
lastFocus.setFocus();
var _local3 = Selection;
Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex);
if (_local2 != undefined) {
lastSelFocus.scroll = _local5;
lastSelFocus.hscroll = _local2;
lastSelFocus.background = _local4;
}
}
function onUnload(_param1) {
mx.managers.SystemManager.removeFocusManager(form);
}
function setFocus(o) {
if (o == null) {
Selection.setFocus(null);
} else if (o.setFocus == undefined) {
Selection.setFocus(o);
} else {
o.setFocus();
}
}
function getActualFocus(o) {
var _local1 = o._parent;
while (_local1 != undefined) {
if (_local1.focusTextField != undefined) {
while (_local1.focusTextField != undefined) {
o = _local1;
_local1 = _local1._parent;
if (_local1 == undefined) {
return(undefined);
}
if (_local1.focusTextField == undefined) {
return(o);
}
}
}
if (_local1.tabEnabled != true) {
return(o);
}
o = _local1;
_local1 = o._parent;
}
return(undefined);
}
function getSelectionFocus() {
var m = Selection.getFocus();
var o = eval (m);
return(o);
}
function getFocus(_param1) {
var _local2 = getSelectionFocus();
return(getActualFocus(_local2));
}
function walkTree(p, index, groupName, dir, lookup, firstChild) {
var _local5 = true;
var _local11;
for (_local11 in p) {
var _local2 = p[_local11];
if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_local2 != _lastTarget) {
if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) {
continue;
}
if ((_local2 instanceof TextField) && (_local2.selectable == false)) {
continue;
}
if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) {
if (firstChild) {
_firstNode = _local2;
firstChild = false;
}
}
if (_nextIsNext == true) {
if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) {
_nextNode = _local2;
}
}
if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) {
if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) {
} else {
_lastx = _local2;
}
}
} else {
_prevNode = _lastx;
_needPrev = false;
_nextIsNext = true;
}
if (_local2.tabIndex != undefined) {
if (_local2.tabIndex == index) {
if (_foundList[_local2._name] == undefined) {
if (_needPrev) {
_prevObj = _local2;
_needPrev = false;
}
_nextObj = _local2;
}
}
if (dir && (_local2.tabIndex > index)) {
if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) {
_nextObj = _local2;
}
} else if ((!dir) && (_local2.tabIndex < index)) {
if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) {
_prevObj = _local2;
}
}
if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) {
_firstObj = _local2;
}
if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) {
_lastObj = _local2;
}
}
if (_local2.tabChildren) {
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
} else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) {
if (_local2 == _lastTarget) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
if (_prevNode == undefined) {
var _local3 = _lastx;
var _local7 = false;
while (_local3 != undefined) {
if (_local3 == _local2) {
_local7 = true;
break;
}
_local3 = _local3._parent;
}
if (_local7 == false) {
_prevNode = _lastx;
}
}
_needPrev = false;
if (_nextNode == undefined) {
_nextIsNext = true;
}
} else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) {
if (_local2._searchKey == _searchKey) {
continue;
}
_local2._searchKey = _searchKey;
getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild));
}
_local5 = false;
}
}
_lastNode = _lastx;
if (lookup) {
if (p._parent != undefined) {
if (p != _parent) {
if ((_prevNode == undefined) && (dir)) {
_needPrev = true;
} else if ((_nextNode == undefined) && (!dir)) {
_nextIsNext = false;
}
_lastTarget = _lastTarget._parent;
getTabCandidate(p._parent, index, groupName, dir, true);
}
}
}
}
function getTabCandidate(o, index, groupName, dir, firstChild) {
var _local2;
var _local3 = true;
if (o == _parent) {
_local2 = o;
_local3 = false;
} else {
_local2 = o._parent;
if (_local2 == undefined) {
_local2 = o;
_local3 = false;
}
}
walkTree(_local2, index, groupName, dir, _local3, firstChild);
}
function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) {
walkTree(o, index, groupName, dir, false, firstChild);
}
function getFocusManagerFromObject(o) {
while (o != undefined) {
if (o.focusManager != undefined) {
return(o.focusManager);
}
o = o._parent;
}
return(undefined);
}
function tabHandler(_param1) {
bDrawFocus = true;
var _local5 = getSelectionFocus();
var _local4 = getActualFocus(_local5);
if (_local4 != _local5) {
_local5 = _local4;
}
if (getFocusManagerFromObject(_local5) != this) {
_local5 == undefined;
}
if (_local5 == undefined) {
_local5 = form;
} else if (_local5.tabIndex != undefined) {
if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) {
_foundList = new Object();
_foundList.tabIndex = _local5.tabIndex;
}
_foundList[_local5._name] = _local5;
}
var _local3 = Key.isDown(16) != true;
_searchKey = getTimer();
_needPrev = true;
_nextIsNext = false;
_lastx = undefined;
_firstNode = undefined;
_lastNode = undefined;
_nextNode = undefined;
_prevNode = undefined;
_firstObj = undefined;
_lastObj = undefined;
_nextObj = undefined;
_prevObj = undefined;
_lastTarget = _local5;
var _local6 = _local5;
getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true);
var _local2;
if (_local3) {
if (_nextObj != undefined) {
_local2 = _nextObj;
} else {
_local2 = _firstObj;
}
} else if (_prevObj != undefined) {
_local2 = _prevObj;
} else {
_local2 = _lastObj;
}
if (_local2.tabIndex != _local5.tabIndex) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
_foundList[_local2._name] = _local2;
} else {
if (_foundList == undefined) {
_foundList = new Object();
_foundList.tabIndex = _local2.tabIndex;
}
_foundList[_local2._name] = _local2;
}
if (_local2 == undefined) {
if (_local3 == false) {
if (_nextNode != undefined) {
_local2 = _nextNode;
} else {
_local2 = _firstNode;
}
} else if ((_prevNode == undefined) || (_local5 == form)) {
_local2 = _lastNode;
} else {
_local2 = _prevNode;
}
}
if (_local2 == undefined) {
return(undefined);
}
lastTabFocus = _local2;
setFocus(_local2);
if (_local2.emphasized != undefined) {
if (defPushButton != undefined) {
_local5 = defPushButton;
defPushButton = _local2;
_local5.emphasized = false;
_local2.emphasized = true;
}
} else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) {
_local5 = defPushButton;
defPushButton = __defaultPushButton;
_local5.emphasized = false;
__defaultPushButton.__set__emphasized(true);
}
}
function onKeyDown(_param1) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(_param1) {
defPushButton.dispatchEvent({type:"click"});
}
function getMousedComponentFromChildren(x, y, o) {
for (var _local7 in o) {
var _local2 = o[_local7];
if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) {
_local2._searchKey = _searchKey;
if (_local2.hitTest(x, y, true)) {
if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) {
return(_local2);
}
var _local3 = getMousedComponentFromChildren(x, y, _local2);
if (_local3 != undefined) {
return(_local3);
}
return(_local2);
}
}
}
return(undefined);
}
function mouseActivate(_param1) {
if (!bNeedFocus) {
return(undefined);
}
_searchKey = getTimer();
var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form);
if (_local2 instanceof mx.core.UIComponent) {
return(undefined);
}
_local2 = findFocusFromObject(_local2);
if (_local2 == lastFocus) {
return(undefined);
}
if (_local2 == undefined) {
doLater(this, "restoreFocus");
return(undefined);
}
var _local3 = _local2.hscroll;
if (_local3 != undefined) {
var _local6 = _local2.scroll;
var _local5 = _local2.background;
}
setFocus(_local2);
var _local4 = Selection;
Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex);
if (_local3 != undefined) {
_local2.scroll = _local6;
_local2.hscroll = _local3;
_local2.background = _local5;
}
}
function _onMouseDown(_param1) {
bDrawFocus = false;
if (lastFocus != undefined) {
lastFocus.drawFocus(false);
}
mx.managers.SystemManager.idleFrames = 0;
var _local3 = Selection;
_local3.lastBeginIndex = Selection.getBeginIndex();
_local3.lastEndIndex = Selection.getEndIndex();
lastMouse.x = _root._xmouse;
lastMouse.y = _root._ymouse;
_root.localToGlobal(lastMouse);
}
function onMouseUp(_param1) {
if (_visible) {
doLater(this, "mouseActivate");
}
}
function handleEvent(e) {
if (e.type == "reveal") {
mx.managers.SystemManager.activate(form);
} else {
mx.managers.SystemManager.deactivate(form);
}
}
static function enableFocusManagement() {
if (!initialized) {
initialized = true;
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
}
}
static var symbolName = "FocusManager";
static var symbolOwner = mx.managers.FocusManager;
static var version = "2.0.1.78";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 438 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement
{
var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible;
function FocusRect () {
super();
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function draw(o) {
o.adjustFocusRect();
}
function setSize(w, h, r, a, rectCol) {
_xscale = (_yscale = 100);
clear();
if (typeof(r) == "object") {
r.br = ((r.br > 2) ? (r.br - 2) : 0);
r.bl = ((r.bl > 2) ? (r.bl - 2) : 0);
r.tr = ((r.tr > 2) ? (r.tr - 2) : 0);
r.tl = ((r.tl > 2) ? (r.tl - 2) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
r.br = ((r.br > 1) ? (r.br + 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl + 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr + 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl + 1) : 0);
beginFill(rectCol, a * 0.3);
drawRoundRect(1, 1, w - 2, h - 2, r);
r.br = ((r.br > 1) ? (r.br - 1) : 0);
r.bl = ((r.bl > 1) ? (r.bl - 1) : 0);
r.tr = ((r.tr > 1) ? (r.tr - 1) : 0);
r.tl = ((r.tl > 1) ? (r.tl - 1) : 0);
drawRoundRect(2, 2, w - 4, h - 4, r);
endFill();
} else {
var _local5;
if (r != 0) {
_local5 = r - 2;
} else {
_local5 = 0;
}
beginFill(rectCol, a * 0.3);
drawRoundRect(0, 0, w, h, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
beginFill(rectCol, a * 0.3);
if (r != 0) {
_local5 = r - 2;
r = r - 1;
} else {
_local5 = 0;
r = 0;
}
drawRoundRect(1, 1, w - 2, h - 2, r);
drawRoundRect(2, 2, w - 4, h - 4, _local5);
endFill();
}
}
function handleEvent(e) {
if (e.type == "unload") {
_visible = true;
} else if (e.type == "resize") {
e.target.adjustFocusRect();
} else if (e.type == "move") {
e.target.adjustFocusRect();
}
}
static function classConstruct() {
mx.core.UIComponent.prototype.drawFocus = function (focused) {
var _local2 = this._parent.focus_mc;
if (!focused) {
_local2._visible = false;
this.removeEventListener("unload", _local2);
this.removeEventListener("move", _local2);
this.removeEventListener("resize", _local2);
} else {
if (_local2 == undefined) {
_local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop);
_local2.tabEnabled = false;
this._parent.focus_mc = _local2;
} else {
_local2._visible = true;
}
_local2.draw(this);
if (_local2.getDepth() < this.getDepth()) {
_local2.setDepthAbove(this);
}
this.addEventListener("unload", _local2);
this.addEventListener("move", _local2);
this.addEventListener("resize", _local2);
}
};
mx.core.UIComponent.prototype.adjustFocusRect = function () {
var _local2 = this.getStyle("themeColor");
if (_local2 == undefined) {
_local2 = 8453965 /* 0x80FF4D */;
}
var _local3 = this._parent.focus_mc;
_local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect;
mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect;
return(true);
}
static var classConstructed = classConstruct();
static var DefaultsDependency = mx.skins.halo.Defaults;
static var UIComponentDependency = mx.core.UIComponent;
}
Symbol 439 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(_param1) {
if (mx.managers.SystemManager.idleFrames > 10) {
mx.managers.SystemManager.dispatchEvent({type:"idle"});
} else {
mx.managers.SystemManager.idleFrames++;
}
}
static function __addEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager.interval == undefined) {
mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100);
}
}
mx.managers.SystemManager._xAddEventListener(e, o, l);
}
static function __removeEventListener(e, o, l) {
if (e == "idle") {
if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) {
clearInterval(mx.managers.SystemManager.interval);
}
} else {
mx.managers.SystemManager._xRemoveEventListener(e, o, l);
}
}
static function onMouseDown(_param1) {
mx.managers.SystemManager.idleFrames = 0;
mx.managers.SystemManager.isMouseDown = true;
var _local5 = _root;
var _local3;
var _local8 = _root._xmouse;
var _local7 = _root._ymouse;
if (mx.managers.SystemManager.form.modalWindow == undefined) {
if (mx.managers.SystemManager.forms.length > 1) {
var _local6 = mx.managers.SystemManager.forms.length;
var _local4;
_local4 = 0;
while (_local4 < _local6) {
var _local2 = mx.managers.SystemManager.forms[_local4];
if (_local2._visible) {
if (_local2.hitTest(_local8, _local7)) {
if (_local3 == undefined) {
_local3 = _local2.getDepth();
_local5 = _local2;
} else if (_local3 < _local2.getDepth()) {
_local3 = _local2.getDepth();
_local5 = _local2;
}
}
}
_local4++;
}
if (_local5 != mx.managers.SystemManager.form) {
mx.managers.SystemManager.activate(_local5);
}
}
}
var _local9 = mx.managers.SystemManager.form;
_local9.focusManager._onMouseDown();
}
static function onMouseMove(aso#05500) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(aso#05500) {
mx.managers.SystemManager.isMouseDown = false;
mx.managers.SystemManager.idleFrames = 0;
}
static function activate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local1 = mx.managers.SystemManager.form;
_local1.focusManager.deactivate();
}
}
mx.managers.SystemManager.form = f;
f.focusManager.activate();
}
static function deactivate(f) {
if (mx.managers.SystemManager.form != undefined) {
if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) {
var _local5 = mx.managers.SystemManager.form;
_local5.focusManager.deactivate();
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
var _local2;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
_local1 = _local1 + 1;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
mx.managers.SystemManager.form = _local2;
break;
}
if (mx.managers.SystemManager.forms[_local1]._visible == true) {
_local2 = mx.managers.SystemManager.forms[_local1];
}
_local1++;
}
_local5 = mx.managers.SystemManager.form;
_local5.focusManager.activate();
}
}
}
static function addFocusManager(f) {
mx.managers.SystemManager.forms.push(f);
mx.managers.SystemManager.activate(f);
}
static function removeFocusManager(f) {
var _local3 = mx.managers.SystemManager.forms.length;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
if (mx.managers.SystemManager.forms[_local1] == f) {
if (mx.managers.SystemManager.form == f) {
mx.managers.SystemManager.deactivate(f);
}
mx.managers.SystemManager.forms.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
static function enableOverlappedWindows() {
if (!initialized) {
initialized = true;
mx.managers.SystemManager.checkIdle = checkIdle;
mx.managers.SystemManager.__addEventListener = __addEventListener;
mx.managers.SystemManager.__removeEventListener = __removeEventListener;
mx.managers.SystemManager.onMouseDown = onMouseDown;
mx.managers.SystemManager.onMouseMove = onMouseMove;
mx.managers.SystemManager.onMouseUp = onMouseUp;
mx.managers.SystemManager.activate = activate;
mx.managers.SystemManager.deactivate = deactivate;
mx.managers.SystemManager.addFocusManager = addFocusManager;
mx.managers.SystemManager.removeFocusManager = removeFocusManager;
}
}
static var initialized = false;
static var SystemManagerDependency = mx.managers.SystemManager;
}
Symbol 440 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle
{
var styleName, stylecache, _color, setColor, invalidateStyle;
function CSSSetStyle () {
}
function _setStyle(styleProp, newValue) {
this[styleProp] = newValue;
if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) {
if (styleProp == "color") {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
}
_level0.changeTextStyleInChildren(styleProp);
return(undefined);
}
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local7 = mx.styles.StyleManager.colorNames.haloBlue;
var _local6 = mx.styles.StyleManager.colorNames.haloGreen;
var _local8 = mx.styles.StyleManager.colorNames.haloOrange;
var _local4 = {};
_local4[_local7] = 12188666 /* 0xB9FBFA */;
_local4[_local6] = 13500353 /* 0xCDFFC1 */;
_local4[_local8] = 16766319 /* 0xFFD56F */;
var _local5 = {};
_local5[_local7] = 13958653 /* 0xD4FDFD */;
_local5[_local6] = 14942166 /* 0xE3FFD6 */;
_local5[_local8] = 16772787 /* 0xFFEEB3 */;
var _local9 = _local4[newValue];
var _local10 = _local5[newValue];
if (_local9 == undefined) {
_local9 = newValue;
}
if (_local10 == undefined) {
_local10 = newValue;
}
setStyle("selectionColor", _local9);
setStyle("rollOverColor", _local10);
}
_level0.changeColorStyleInChildren(styleName, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
_level0.notifyStyleChangeInChildren(styleName, styleProp, newValue);
}
}
function changeTextStyleInChildren(styleProp) {
var _local4 = getTimer();
var _local5;
for (_local5 in this) {
var _local2 = this[_local5];
if (_local2._parent == this) {
if (_local2.searchKey != _local4) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache.tf;
delete _local2.stylecache[styleProp];
}
_local2.invalidateStyle(styleProp);
_local2.changeTextStyleInChildren(styleProp);
_local2.searchKey = _local4;
}
}
}
}
function changeColorStyleInChildren(sheetName, colorStyle, newValue) {
var _local6 = getTimer();
var _local7;
for (_local7 in this) {
var _local2 = this[_local7];
if (_local2._parent == this) {
if (_local2.searchKey != _local6) {
if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[colorStyle];
}
if (typeof(_local2._color) == "string") {
if (_local2._color == colorStyle) {
var _local4 = _local2.getStyle(colorStyle);
if (colorStyle == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = _local4;
}
}
_local2.setColor(_local4);
}
} else if (_local2._color[colorStyle] != undefined) {
if (typeof(_local2) != "movieclip") {
_local2._parent.invalidateStyle();
} else {
_local2.invalidateStyle(colorStyle);
}
}
}
_local2.changeColorStyleInChildren(sheetName, colorStyle, newValue);
_local2.searchKey = _local6;
}
}
}
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
var _local5 = getTimer();
var _local6;
for (_local6 in this) {
var _local2 = this[_local6];
if (_local2._parent == this) {
if (_local2.searchKey != _local5) {
if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) {
if (_local2.stylecache != undefined) {
delete _local2.stylecache[styleProp];
delete _local2.stylecache.tf;
}
delete _local2.enabledColor;
_local2.invalidateStyle(styleProp);
}
_local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
_local2.searchKey = _local5;
}
}
}
}
function setStyle(styleProp, newValue) {
if (stylecache != undefined) {
delete stylecache[styleProp];
delete stylecache.tf;
}
this[styleProp] = newValue;
if (mx.styles.StyleManager.isColorStyle(styleProp)) {
if (isNaN(newValue)) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
if (styleProp == "themeColor") {
var _local10 = mx.styles.StyleManager.colorNames.haloBlue;
var _local9 = mx.styles.StyleManager.colorNames.haloGreen;
var _local11 = mx.styles.StyleManager.colorNames.haloOrange;
var _local6 = {};
_local6[_local10] = 12188666 /* 0xB9FBFA */;
_local6[_local9] = 13500353 /* 0xCDFFC1 */;
_local6[_local11] = 16766319 /* 0xFFD56F */;
var _local7 = {};
_local7[_local10] = 13958653 /* 0xD4FDFD */;
_local7[_local9] = 14942166 /* 0xE3FFD6 */;
_local7[_local11] = 16772787 /* 0xFFEEB3 */;
var _local12 = _local6[newValue];
var _local13 = _local7[newValue];
if (_local12 == undefined) {
_local12 = newValue;
}
if (_local13 == undefined) {
_local13 = newValue;
}
setStyle("selectionColor", _local12);
setStyle("rollOverColor", _local13);
}
if (typeof(_color) == "string") {
if (_color == styleProp) {
if (styleProp == "color") {
if (stylecache.tf.color != undefined) {
stylecache.tf.color = newValue;
}
}
setColor(newValue);
}
} else if (_color[styleProp] != undefined) {
invalidateStyle(styleProp);
}
changeColorStyleInChildren(undefined, styleProp, newValue);
} else {
if ((styleProp == "backgroundColor") && (isNaN(newValue))) {
newValue = mx.styles.StyleManager.getColorName(newValue);
this[styleProp] = newValue;
if (newValue == undefined) {
return(undefined);
}
}
invalidateStyle(styleProp);
}
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) {
var _local8;
var _local5 = newValue;
if (styleProp == "styleName") {
_local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5));
_local5 = _local8.themeColor;
if (_local5 != undefined) {
_local8.rollOverColor = (_local8.selectionColor = _local5);
}
}
notifyStyleChangeInChildren(undefined, styleProp, newValue);
}
}
static function enableRunTimeCSS() {
}
static function classConstruct() {
var _local2 = MovieClip.prototype;
var _local3 = mx.styles.CSSSetStyle.prototype;
mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle;
_local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
_local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren;
_local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren;
_local2.setStyle = _local3.setStyle;
_global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1);
_global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1);
_global.ASSetPropFlags(_local2, "setStyle", 1);
var _local4 = TextField.prototype;
_local4.setStyle = _local2.setStyle;
_local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren;
return(true);
}
static var classConstructed = classConstruct();
static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration;
}
Symbol 441 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions
{
function UIComponentExtensions () {
}
static function Extensions() {
if (bExtended == true) {
return(true);
}
bExtended = true;
TextField.prototype.setFocus = function () {
Selection.setFocus(this);
};
TextField.prototype.onSetFocus = function (oldFocus) {
if (this.tabEnabled != false) {
if (this.getFocusManager().bDrawFocus) {
this.drawFocus(true);
}
}
};
TextField.prototype.onKillFocus = function (oldFocus) {
if (this.tabEnabled != false) {
this.drawFocus(false);
}
};
TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
mx.managers.OverlappedWindows.enableOverlappedWindows();
mx.styles.CSSSetStyle.enableRunTimeCSS();
mx.managers.FocusManager.enableFocusManagement();
}
static var bExtended = false;
static var UIComponentExtended = Extensions();
static var UIComponentDependency = mx.core.UIComponent;
static var FocusManagerDependency = mx.managers.FocusManager;
static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
}
Symbol 458 MovieClip Frame 23
_parent.ecranEntree.play();
Symbol 458 MovieClip Frame 30
stop();
Symbol 469 Button
on (release) {
_root.help.gotoAndPlay(2);
}
Symbol 472 Button
on (release) {
getURL ((_global.url_momentum + "?aff_id=") + _root.partner_aff_id, "_blank");
}
Symbol 475 Button
on (release) {
getURL (_global["aso#15665"] + "?aff_id=9998", "_blank");
}
Symbol 477 Button
on (release) {
getURL (_global["aso#15665"] + "?aff_id=9999", "_blank");
}
Symbol 480 Button
on (release) {
var pseudoOkflg = _root.assignPseudo(aso#08284.text);
if (pseudoOkflg == "aso#36837") {
_root.gotoAndPlay("race");
}
}
Symbol 481 MovieClip Frame 1
textListener = new Object();
textListener.handleEvent = function (evt) {
if (evt.type == "enter") {
if (_root.assignPseudo(aso#08284.text) == "aso#36837") {
_root.aso#89896(aso#24438.text);
}
}
};
aso#24438.addEventListener("enter", textListener);
PseudoListener = new Object();
PseudoListener.handleEvent = function (evt) {
if (evt.type == "enter") {
if (_root.assignPseudo(aso#08284.text) == "aso#36837") {
_root.gotoAndPlay("race");
} else {
aso#08284.text = _global.TXT_default_pseudo;
}
}
};
aso#08284.addEventListener("enter", PseudoListener);
_global.styles.TextArea.setStyle("disabledColor", 0);
_global.styles.TextArea.setStyle("backgroundColor", 0);
_global.styles.TextArea.setStyle("fontFamily", "_sans");
_global.styles.TextArea.setStyle("fontSize", 10);
_global.styles.TextArea.setStyle("color", 13408563);
_global.styles.TextArea.setStyle("borderStyle", "solid");
_global.styles.TextArea.setStyle("borderColor", 13408563);
Instance of Symbol 421 MovieClip [TextInput] "aso#24438" in Symbol 481 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 421 MovieClip [TextInput] "aso#08284" in Symbol 481 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 482 MovieClip Frame 1
stop();
ecranEntree1["aso#08284"].enabled = false;
Symbol 482 MovieClip Frame 15
stop();
ecranEntree1["aso#08284"].enabled = true;
if ((_root.username == undefined) or (_root.username == "")) {
_root.username = _global.TXT_default_pseudo;
}
ecranEntree1["aso#08284"].text = _root.username;
Symbol 485 Button
on (release) {
_root.gotoAndStop("general");
}
Symbol 491 MovieClip Frame 1
champ1 = _global.TXT_overview_depart;
champ2 = _global.TXT_overview_arrive;
Symbol 523 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 6
stop();
Instance of Symbol 527 MovieClip "coche2" in Symbol 528 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 530 Button
on (rollOver) {
flash.gotoAndPlay(2);
}
on (rollOut) {
if (coche1.coche2._visible != true) {
flash.gotoAndPlay(7);
}
}
on (release) {
var i = 0;
while (i < 4) {
eval (("_parent.boutRep" + i) + ".coche1.coche2")._visible = false;
eval (("_parent.boutRep" + i) + ".flash").gotoAndStop(1);
i++;
}
coche1.coche2._visible = true;
flash.gotoAndStop(2);
_parent.selectedResponse = reponseNumber + 1;
_root.conteneurSound.cocheBout.start(0, 1);
_root.conteneurSound.cocheBout.setVolume(50);
}
Symbol 531 MovieClip Frame 1
stop();
greenmask._visible = false;
redmask._visible = false;
Instance of Symbol 528 MovieClip "coche1" in Symbol 531 MovieClip Frame 1
onClipEvent (load) {
coche1.coche2._visible = false;
}
Symbol 534 Button
on (rollOver) {
flash.gotoAndPlay(2);
_root.conteneurSound.validateBout.start(0, 1);
_root.conteneurSound.validateBout.setVolume(50);
}
on (rollOut) {
flash.gotoAndPlay(7);
}
on (release) {
var i = 0;
while (i < 4) {
eval (("_parent.boutRep" + i) + ".coche1.coche2")._visible = false;
i++;
}
coche1.coche2._visible = true;
if (boutonFonction == "valider") {
if (_parent.selectedResponse != null) {
_root.validateQuestion(_parent.selectedResponse);
_parent.selectedResponse = null;
delete _parent.barreTempsRep.onEnterFrame;
var i = 0;
while (i < 4) {
eval (("_parent.boutRep" + i) + ".coche1.coche2")._visible = false;
eval (("_parent.boutRep" + i) + ".flash").gotoAndStop(1);
i++;
}
}
} else if (boutonFonction == "passer") {
if (_root.skipEnabled == "N") {
_root.validateQuestion(-1);
_parent.selectedResponse = null;
} else {
_root.validateQuestion("NSP");
_parent.selectedResponse = null;
}
delete _parent.barreTempsRep.onEnterFrame;
} else if (boutonFonction == "next") {
if (_root.nextQuestionNum <= (_global["aso#45610"].length - 2)) {
_root.nextQuestionNum++;
_root.aso#60372(_root.nextQuestionNum);
}
var i = 0;
while (i < 4) {
eval (("_parent.boutRep" + i) + ".coche1.coche2")._visible = false;
eval (("_parent.boutRep" + i) + ".flash").gotoAndStop(1);
i++;
}
} else if (boutonFonction == "previous") {
if (_root.nextQuestionNum >= 1) {
_root.nextQuestionNum--;
_root.aso#60372(_root.nextQuestionNum);
}
var i = 0;
while (i < 4) {
eval (("_parent.boutRep" + i) + ".coche1.coche2")._visible = false;
eval (("_parent.boutRep" + i) + ".flash").gotoAndStop(1);
i++;
}
}
}
Symbol 539 MovieClip Frame 1
champMessage = _global.TXT_quiz_12;
champMessage2 = "";
Symbol 540 MovieClip Frame 1
champ20 = _root.username;
champ21 = _global.TXT_player_color;
champ22 = _global.TXT_player_time_response;
champ23 = _global.TXT_player_time_response_1;
champ24 = _global.TXT_player_time_response_2;
champ25 = _global.TXT_player_speed;
champ26 = _global.TXT_player_number;
champ27 = _global.TXT_player_energ_max;
champ28 = _global.TXT_player_energ_min;
champ29 = _global.TXT_player_position;
champQuestion = _global.TXT_quiz_13;
Instance of Symbol 501 MovieClip "mc_waitInterQ" in Symbol 540 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 531 MovieClip "boutRep0" in Symbol 540 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 531 MovieClip "boutRep1" in Symbol 540 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 531 MovieClip "boutRep2" in Symbol 540 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 531 MovieClip "boutRep3" in Symbol 540 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 536 MovieClip "boutV" in Symbol 540 MovieClip Frame 1
onClipEvent (load) {
champNom = _global.TXT_button_confirm;
boutonFonction = "valider";
this._visible = false;
}
Instance of Symbol 536 MovieClip "boutP" in Symbol 540 MovieClip Frame 1
onClipEvent (load) {
champNom = _global.skipButtonLabel;
boutonFonction = "passer";
this._visible = false;
}
Symbol 541 Button
on (release) {
_root.attachMovie("clipPopupList", "clipPopupList0", 2);
_root.clipPopupList0._x = 450;
_root.clipPopupList0._y = 160;
}
Symbol 552 MovieClip Frame 1
stop();
Symbol 555 Button
on (press) {
startdrag = 1;
barreVolume.play();
startDrag (clipSetVolume, true, 0, -5, 55, 5);
}
on (release, releaseOutside) {
startdrag = 0;
stopDrag();
}
Symbol 557 MovieClip Frame 1
setProperty(barreVolume, _width , 27.5);
_root.global_volume = 30;
_root.sonMus.setVolume(_root.global_volume);
Instance of Symbol 556 MovieClip "clipSetVolume" in Symbol 557 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.startdrag == 1) {
Set("aso#69145", this._x);
setProperty(_parent.barreVolume, _width , aso#69145);
_root.global_volume = (aso#69145 * 100) / 55;
_root.sonMus.setVolume(_root.global_volume);
}
}
Symbol 558 MovieClip Frame 1
function cheat_penalty(cheaterUserName) {
this.message = cheaterUserName + " votre horloge a un comportement anormal ou votre machine est trop lente. Vous devez arr\u00EAter tout logiciel susceptible de ralentir votre machine.";
_root.gotoAndStop(2);
_root.popCheater(this.message);
}
time_increment = 2000;
min_increment = 500;
Set("aso#42405", function () {
updateAfterEvent();
temp_getTimer = getTimer();
delta_getTimer = temp_getTimer - g;
temp_getTime = new Date().getTime();
delta_getTime = temp_getTime - d;
if (delta_getTime == 0) {
ratio = 1;
} else {
ratio = delta_getTimer / delta_getTime;
}
if ((ratio <= 0.5) && ((delta_getTimer > min_increment) || (delta_getTime > min_increment))) {
message = "tricheur !!!";
cheat_penalty(_root.username);
}
d = temp_getTime;
g = temp_getTimer;
});
setInterval(aso#42405, time_increment);
i = 0;
d = new Date().getTime();
g = getTimer();
aso#42405();
Symbol 563 Button
on (release) {
getURL (_global.LINK_parrainage_url, "_blank");
}
Symbol 564 MovieClip Frame 1