Frame 1
function charToNum(str) {
str = str.toUpperCase();
var _local1 = str.charCodeAt(0);
if (_local1 > 57) {
return(_local1 - 55);
}
return(_local1 - 48);
}
function charToNumCaseSensitive(str) {
var _local1 = str.charCodeAt(0);
if (_local1 > 57) {
return(_local1 - 55);
}
return(_local1 - 48);
}
function qxojNK(n) {
if (n > 9) {
return(String.fromCharCode(n + 55));
}
return(n.toString());
}
function tqevnh(charCode) {
var _local1 = String.fromCharCode(charCode);
if ((((((((((((((((((((((((((((charCode >= 65) && (charCode <= 90)) || ((charCode >= 97) && (charCode <= 122))) || ((charCode >= 48) && (charCode <= 57))) || (charCode == 32)) || (_local1 == "!")) || (_local1 == "?")) || (_local1 == ",")) || (_local1 == ".")) || (_local1 == "@")) || (_local1 == "#")) || (_local1 == "$")) || (_local1 == "%")) || (_local1 == "^")) || (_local1 == "*")) || (_local1 == "(")) || (_local1 == ")")) || (_local1 == "[")) || (_local1 == "]")) || (_local1 == "'")) || (_local1 == "\"")) || (_local1 == "/")) || (_local1 == ":")) || (_local1 == ";")) || (_local1 == "-")) || (_local1 == "=")) || (_local1 == "_")) || (_local1 == "|")) {
return(true);
}
return(false);
}
function isLegalChatString(str) {
var _local1 = 0;
while (_local1 < str.length) {
if (!tqevnh(str.charCodeAt(_local1))) {
return(false);
}
_local1++;
}
if ((str.length > 0) && (zqXJmt(str))) {
return(true);
}
return(false);
}
function jhHdLt(charCode) {
var _local2 = String.fromCharCode(charCode);
if ((((((charCode >= 65) && (charCode <= 90)) || ((charCode >= 97) && (charCode <= 122))) || ((charCode >= 48) && (charCode <= 57))) || (_local2 == ",")) || (_local2 == ".")) {
return(true);
}
return(false);
}
function isLegalAccountString(str) {
var _local1 = 0;
while (_local1 < str.length) {
if (!jhHdLt(str.charCodeAt(_local1))) {
return(false);
}
_local1++;
}
return(true);
}
function isLegalRoomString(str) {
var _local1 = 0;
while (_local1 < str.length) {
if ((!jhHdLt(str.charCodeAt(_local1))) && (str.charCodeAt(_local1) != 32)) {
return(false);
}
_local1++;
}
return(true);
}
function zqXJmt(str) {
var _local1 = 0;
while (_local1 < str.length) {
if (str.charAt(_local1) != " ") {
return(true);
}
_local1++;
}
return(false);
}
function convertToASCII(str) {
var _local4 = "";
var _local1 = 0;
while (_local1 < str.length) {
var _local3 = str.charCodeAt(_local1);
if (_local3 < 10) {
_local4 = _local4 + "00".concat(str.charCodeAt(_local1));
} else if (_local3 < 100) {
_local4 = _local4 + "0".concat(str.charCodeAt(_local1));
} else {
_local4 = _local4 + str.charCodeAt(_local1);
}
_local1++;
}
return(_local4);
}
function CSVtoArray(str) {
var _local4 = 0;
var _local2 = -1;
var _local5 = new Array();
var _local1 = 0;
while (_local1 < str.length) {
if (str.substr(_local1, 1) == ",") {
_local5[_local4++] = str.substr(_local2 + 1, (_local1 - _local2) - 1);
_local2 = _local1;
}
_local1++;
}
_local5[_local4++] = str.substr(_local2 + 1, str.length - _local2);
}
function convertToChars(str) {
var _local3 = "";
var _local1 = 0;
while (_local1 < str.length) {
_local3 = _local3 + String.fromCharCode(int(trim(str.substr(_local1, 3))));
_local1 = _local1 + 3;
}
return(_local3);
}
function formatTime(t) {
var _local3 = String(int(t / 60)) + ":";
var _local1 = String(t - (int(t / 60) * 60));
if (_local1.length < 2) {
_local1 = "0".concat(_local1);
}
return(_local3.concat(_local1));
}
function formatNumber(n) {
var _local1 = n.toString();
var _local2 = "";
while (_local1.length > 3) {
_local2 = new String(",").concat(_local1.substr(_local1.length - 3, 3).concat(_local2));
_local1 = _local1.substr(0, _local1.length - 3);
}
_local1 = _local1.concat(_local2);
return(_local1);
}
function pad(num, len) {
str = num.toString();
if (num < 0) {
str = str.substr(1, str.length - 1);
len = len - 1;
}
var _local1 = str.length;
while (_local1 < len) {
str = "0".concat(str);
_local1++;
}
if (num < 0) {
str = "-".concat(str);
}
return(str);
}
function padWithChar(num, len, char) {
str = num.toString();
if (char == null) {
char = "0";
}
if (num < 0) {
str = str.substr(1, str.length - 1);
len = len - 1;
}
var _local1 = str.length;
while (_local1 < len) {
str = char.concat(str);
_local1++;
}
if (num < 0) {
str = "-".concat(str);
}
return(str);
}
function padStr(str, len) {
str = str.toString();
var _local1 = str.length;
while (_local1 < len) {
str = "0".concat(str);
_local1++;
}
return(str);
}
function trim(str) {
while ((str.charAt(0) == "0") && (str.length > 1)) {
str = str.substr(1, str.length - 1);
}
return(str);
}
function trimPoundSign(str) {
while ((str.charAt(0) == "#") && (str.length > 1)) {
str = str.substr(1, str.length - 1);
}
return(str);
}
function zqfZXY(str) {
var _local1 = 0;
while (_local1 < qxhDHu.length) {
while (str.toLowerCase().indexOf(qxhDHu[_local1]) != -1) {
var _local4 = str.substr(0, str.toLowerCase().indexOf(qxhDHu[_local1]));
var _local3 = 0;
while (_local3 < qxhDHu[_local1].length) {
_local4 = _local4.concat("*");
_local3++;
}
str = _local4.concat(str.substr(str.toLowerCase().indexOf(qxhDHu[_local1]) + qxhDHu[_local1].length, str.length - (str.toLowerCase().indexOf(qxhDHu[_local1]) + qxhDHu[_local1].length)));
}
_local1++;
}
return(str);
}
function containsNoFilteredLanguage(str) {
return(zqfZXY(str) == str);
}
function swapCharacters(str, oldChar, newChar) {
while (((str.indexOf(oldChar) != -1) && (str != undefined)) && (str.length > 0)) {
var _local3 = str.substr(0, str.indexOf(oldChar));
_local3 = _local3.concat(newChar);
str = _local3.concat(str.substr(str.indexOf(oldChar) + 1, str.length - (str.indexOf(oldChar) + 1)));
}
return(str);
}
function swapStrings(str, oldString, newString) {
while (((str.indexOf(oldString) != -1) && (str != undefined)) && (str.length > 0)) {
var _local3 = str.substr(0, str.indexOf(oldString));
_local3 = _local3.concat(newString);
str = _local3.concat(str.substr(str.indexOf(oldString) + oldString.length, str.length - (str.indexOf(oldString) + oldString.length)));
}
return(str);
}
function getRainbowHtml(str) {
var _local2 = "";
var _local1 = 0;
while (_local1 < 15) {
var _local4 = ((("#" + qxojNK(15 - _local1)) + "F") + qxojNK(_local1)) + "FFF";
_local2 = _local2 + colorHtml(str.substr(_local1, 1), _local4);
_local1++;
}
_local1 = 0;
while (_local1 < 15) {
var _local4 = ((("#" + qxojNK(_local1)) + "F") + qxojNK(15 - _local1)) + "FFF";
_local2 = _local2 + colorHtml(str.substr(_local1 + 15, 1), _local4);
_local1++;
}
var _local4 = "#FF0FFF";
_local2 = _local2 + colorHtml(str.substr(32, 1), _local4);
return(_local2);
}
function getRainbowWhiteHtml(str) {
var _local2 = 0;
var _local3 = "";
var _local1 = 2;
while (_local1 < 11) {
var _local5 = ((((("#" + qxojNK(15 - _local1)) + qxojNK(15 - _local1)) + qxojNK(15 - _local1)) + qxojNK(15 - _local1)) + qxojNK(15 - _local1)) + qxojNK(15 - _local1);
_local3 = _local3 + colorHtml(str.substr(_local2, 1), _local5);
_local2 = _local2 + 1;
_local1 = _local1 + 2;
}
_local1 = 0;
while (_local1 < 10) {
var _local5 = ((((("#" + qxojNK(_local1 + 3)) + qxojNK(_local1 + 3)) + qxojNK(_local1 + 3)) + qxojNK(_local1 + 3)) + qxojNK(_local1 + 3)) + qxojNK(_local1 + 3);
_local3 = _local3 + colorHtml(str.substr(_local2, 1), _local5);
_local2 = _local2 + 1;
_local1 = _local1 + 2;
}
var _local5 = "#FF0FFF";
_local3 = _local3 + colorHtml(str.substr(32, 1), _local5);
return(_local3);
}
function colorHtml(s, hc) {
return(((("<FONT COLOR=\"" + hc) + "\">") + s) + "</FONT>");
}
function concatTextAndHTML(str, hc, htmlTextField, plainTextField) {
htmlTextField.htmlText = htmlTextField.htmlText + colorHtml(str, hc);
plainTextField.text = plainTextField.text + str;
}
function concat2StrTextAndHTML(str, hc, str2, hc2, htmlTextField, plainTextField) {
htmlTextField.htmlText = htmlTextField.htmlText + (colorHtml(str, hc) + colorHtml(str2, hc2));
plainTextField.text = plainTextField.text + str.concat(str2);
}
function vwfPvp() {
earth = new Array();
var _local2 = 0;
while (_local2 < earthWidth) {
earth[_local2] = new Array();
var _local1 = 0;
while (_local1 < earthHeight) {
earth[_local2][_local1] = new Array(0, 0, 0, 0);
_local1++;
}
_local2++;
}
}
function lqBohN() {
var tempDepthCount = 10;
var x = 0;
while (x < 13) {
var y = 0;
while (y < 10) {
var val = ((x * 100) + y);
xqzCWxv.e.attachMovie("emptyMC", "tile" + val, tempDepthCount);
with (eval ("xqzCWxv.e.tile" + ((x * 100) + y))) {
_x = x * 50;
_y = y * 50;
cacheAsBitmap = optionUseBitmapCaching;
}
xqzCWxv.c.attachMovie("emptyMC", "tile" + val, tempDepthCount++);
with (eval ("xqzCWxv.c.tile" + ((x * 100) + y))) {
_x = x * 50;
_y = y * 50;
cacheAsBitmap = optionUseBitmapCaching;
}
y++;
}
x++;
}
}
function vwDGiD() {
xqzCWxv._x = (xqzCWxv._y = (xqzCWxvX = (xqzCWxvY = 0)));
var _local2 = 0;
while (_local2 < 13) {
var _local1 = 0;
while (_local1 < 10) {
reloadTile(_local2, _local1);
_local1++;
}
_local2++;
}
}
function reloadTile(x, y) {
var tX = x;
while (tX > 12) {
tX = tX - 13;
}
var tY = y;
while (tY > 9) {
tY = tY - 10;
}
var t = new Array(earth[x][y][0], earth[x][y][1] * 90, tMir("x", earth[x][y][2]), tMir("y", earth[x][y][2]), "Col" + earth[x][y][3]);
with (eval ("xqzCWxv.e.tile" + ((tX * 100) + tY))) {
attachMovie("tile" + t[0], "graphic", 1);
_rotation = t[1];
_xscale = t[2];
_yscale = t[3];
cacheAsBitmap = optionUseBitmapCaching;
}
with (eval ("xqzCWxv.c.tile" + ((tX * 100) + tY))) {
attachMovie("tile" + t[4], "limit", 1);
_rotation = t[1];
_xscale = t[2];
_yscale = t[3];
cacheAsBitmap = optionUseBitmapCaching;
}
}
function tMir(axis, m) {
if ((m == 1) || (m == 3)) {
if (axis == "x") {
return(-100);
}
}
if ((m == 2) || (m == 3)) {
if (axis == "y") {
return(-100);
}
}
return(100);
}
function updateEarth() {
startTime = getTimer();
var _local1 = 0;
var _local2 = 0;
if (xqzCWxv._x < (-50 + (50 * qxdIYx))) {
_local1 = -1;
} else if (xqzCWxv._x > (50 * qxdIYx)) {
_local1 = 1;
} else if (xqzCWxv._y < (-50 + (50 * kkZxIY))) {
_local2 = -1;
} else if (xqzCWxv._y > (50 * kkZxIY)) {
_local2 = 1;
}
if (_local1 != 0) {
qxdIYx = qxdIYx + _local1;
oldLeftCol = leftCol;
leftCol = leftCol - _local1;
if (leftCol > 12) {
leftCol = 0;
} else if (leftCol < 0) {
leftCol = 12;
}
updateEarthCol(_local1);
} else if (_local2 != 0) {
kkZxIY = kkZxIY + _local2;
oldTopRow = topRow;
topRow = topRow - _local2;
if (topRow > 9) {
topRow = 0;
} else if (topRow < 0) {
topRow = 9;
}
updateEarthRow(_local2);
}
functionTimers[10] = functionTimers[10] + (getTimer() - startTime);
}
function updateEarthCol(xAdj) {
if (xAdj < 0) {
var y = 0;
while (y < 10) {
tileY = y + oldTopRow;
while (tileY > 9) {
tileY = tileY - 10;
}
with (eval ("xqzCWxv.e.tile" + ((oldLeftCol * 100) + tileY))) {
_x = _x + 650;
actualX = (-qxdIYx) + 12;
actualY = (-kkZxIY) + y;
if (actualY >= 0) {
reloadTile(actualX, actualY);
}
}
with (eval ("xqzCWxv.c.tile" + ((oldLeftCol * 100) + tileY))) {
_x = _x + 650;
}
y++;
}
} else {
rightCol = oldLeftCol - 1;
while (rightCol < 0) {
rightCol = rightCol + 13;
}
var y = 0;
while (y < 10) {
tileY = y + oldTopRow;
if (tileY > 9) {
tileY = tileY - 10;
}
with (eval ("xqzCWxv.e.tile" + ((rightCol * 100) + tileY))) {
_x = _x - 650;
actualX = -qxdIYx;
actualY = (-kkZxIY) + y;
if (actualY >= 0) {
reloadTile(actualX, actualY);
}
}
with (eval ("xqzCWxv.c.tile" + ((rightCol * 100) + tileY))) {
_x = _x - 650;
}
y++;
}
}
}
function updateEarthRow(yAdj) {
if (yAdj < 0) {
var x = 0;
while (x < 13) {
tileX = x + oldLeftCol;
while (tileX > 12) {
tileX = tileX - 13;
}
with (eval ("xqzCWxv.e.tile" + ((tileX * 100) + oldTopRow))) {
_y = _y + 500;
reloadTile((-qxdIYx) + x, (-kkZxIY) + 9);
}
with (eval ("xqzCWxv.c.tile" + ((tileX * 100) + oldTopRow))) {
_y = _y + 500;
}
x++;
}
} else {
bottomRow = oldTopRow - 1;
while (bottomRow < 0) {
bottomRow = bottomRow + 10;
}
var x = 0;
while (x < 13) {
tileX = x + oldLeftCol;
if (tileX > 12) {
tileX = tileX - 13;
}
with (eval ("xqzCWxv.e.tile" + ((tileX * 100) + bottomRow))) {
_y = _y - 500;
reloadTile((-qxdIYx) + x, -kkZxIY);
}
with (eval ("xqzCWxv.c.tile" + ((tileX * 100) + bottomRow))) {
_y = _y - 500;
}
x++;
}
}
}
function moveToCoords(x, y) {
xqzCWxv._x = 275 - x;
xqzCWxv._y = 200 - y;
xqOfED._x = 275;
xqOfED._y = 200;
var _local2 = 0;
if (xqzCWxv._x > earthMaxX) {
_local2 = xqzCWxv._x - earthMaxX;
} else if (xqzCWxv._x < earthMinX) {
_local2 = xqzCWxv._x - earthMinX;
}
xqzCWxv._x = xqzCWxv._x - _local2;
xqOfED._x = xqOfED._x - _local2;
var _local3 = 0;
if (xqzCWxv._y > earthMaxY) {
_local3 = xqzCWxv._y - earthMaxY;
} else if (xqzCWxv._y < earthMinY) {
_local3 = xqzCWxv._y - earthMinY;
}
xqzCWxv._y = xqzCWxv._y - _local3;
xqOfED._y = xqOfED._y - _local3;
xqzCWxvX = xqzCWxv._x;
xqzCWxvY = xqzCWxv._y;
var _local1 = 1;
while (_local1 < 100) {
updateEarth();
_local1++;
}
}
function keyIsDownMulti(k) {
if (Key.isDown(eval ("k" + k)[0])) {
return(true);
}
if (Key.isDown(eval ("k" + k)[1])) {
return(true);
}
if (Key.isDown(eval ("k" + k)[2])) {
return(true);
}
return(false);
}
function addHUDMsg(h, s, t) {
HUDMsg.push(new Array(h, s, t));
if (HUDMsg.length > maxHUDMsgs) {
deleteHUDMsg(0);
}
updateHUDMsgDisplay();
}
function updateHUDMsg() {
var _local1 = 0;
while (HUDMsg[_local1] != null) {
HUDMsg[_local1][2] = HUDMsg[_local1][2] - int(frameDeltaTime);
if (HUDMsg[_local1][2] <= 0) {
deleteHUDMsg(_local1);
}
_local1++;
}
}
function updateHUDMsgDisplay() {
var _local2 = "";
var _local3 = "";
var _local1 = 0;
while (HUDMsg[_local1] != null) {
_local2 = _local2 + (HUDMsg[_local1][0] + "<br>");
_local3 = _local3 + (HUDMsg[_local1][1] + "\r");
_local1++;
}
msgMC.HUDMsgText0.htmlText = _local2;
msgMC.HUDMsgText1.text = (msgMC.HUDMsgText2.text = (msgMC.HUDMsgText3.text = (msgMC.HUDMsgText4.text = _local3)));
}
function deleteHUDMsg(n) {
while (HUDMsg[n + 1] != null) {
HUDMsg[n][0] = HUDMsg[n + 1][0];
HUDMsg[n][1] = HUDMsg[n + 1][1];
HUDMsg[n][2] = HUDMsg[n + 1][2];
n++;
}
HUDMsg.pop();
updateHUDMsgDisplay();
}
function RGBToHex(r, g, b, brightness) {
r = Math.min(r + brightness, 255);
g = Math.min(g + brightness, 255);
b = Math.min(b + brightness, 255);
var _local1 = ((r << 16) ^ (g << 8)) ^ b;
_local1 = _local1.toString(16);
if (r == 0) {
_local1 = "00" + _local1;
}
return("#" + _local1);
}
function RGBToNumber(r, g, b, brightness) {
r = Math.min(r + brightness, 255);
g = Math.min(g + brightness, 255);
b = Math.min(b + brightness, 255);
var _local1 = ((r << 16) ^ (g << 8)) ^ b;
return(_local1);
}
function generateColor(min, max) {
col = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"75", ab:"0"};
while ((((col.rb + col.gb) + col.bb) < min) || (((col.rb + col.gb) + col.bb) > max)) {
col.rb = random(255);
col.gb = random(255);
col.bb = random(255);
}
return(col);
}
function qkRqyP(effectName, mc1, mc2) {
switch (effectName) {
case "press" :
animateBlur(mc1, 1, 5, 3);
animateBlur(mc2, 1, 5, 1);
buttonFX(null, mc1, 25, 5);
buttonFX(null, mc2, 15, 1);
break;
case "release" :
animateBlur(mc1, 1, 7, 2);
buttonFX("press");
animateBlur(mc2, 1, 10, 1);
buttonFX(null, mc1, 160, 30);
buttonFX(null, mc2, 50, 5);
break;
case "release_silent" :
animateBlur(mc1, 1, 7, 2);
animateBlur(mc2, 1, 10, 1);
buttonFX(null, mc1, 160, 30);
buttonFX(null, mc2, 50, 5);
break;
case "over" :
animateBlur(mc1, 2, 3, 3);
buttonFX("over", mc1, 255, 510);
break;
case "out" :
animateBlur(mc1, 5, 1, 3);
buttonFX("out", mc1, 75, 25);
break;
case "windowShow" :
animateFade(mc1, 20, 100, 2);
animateBlur(mc1, 50, 10, 4);
buttonFX(null, mc1, 80, 20);
break;
case "windowHide" :
animateFade(mc1, 100, 0, -15);
animateBlur(mc1, 50, 20, 5);
break;
case "subtleOver" :
animateBlur(mc1, 5, 1, 3);
buttonFX("over", mc1, 75, 25);
break;
case "customize" :
animateBlur(mc1, 1, 7, 2);
buttonFX("customize");
animateBlur(mc2, 1, 10, 1);
buttonFX(null, mc1, 160, 30);
buttonFX(null, mc2, 50, 5);
}
}
function animateShake(mc, d) {
with (eval (mc)) {
attachMovie("shakeFX", "shakeFX", 1201);
shakeFX.xyMove = d / 2;
shakeFX.xyAcc = -Math.max(d / 6, 1);
}
}
function animateShakeBlur(mc, d, b, variation) {
with (eval (mc)) {
attachMovie(("shakeBlur" + variation.toString()) + "FX", "shakeBlurFX", 1202);
shakeBlurFX.xyMove = d / 2;
shakeBlurFX.xyAcc = -Math.max(d / 6, 1);
shakeBlurFX.blurAmount = b;
}
}
function animateBlur(mc, d, b, variation) {
with (eval (mc)) {
attachMovie(("blur" + variation.toString()) + "FX", "blurFX", 1203);
blurFX.xyMove = d / 2;
blurFX.xyAcc = -Math.max(d / 6, 1);
blurFX.blurAmount = b;
}
}
function animateFade(mc, ai, af, ainc) {
with (eval (mc)) {
attachMovie("fadeFX", "fadeFX", 1204);
fadeFX.initialAlpha = ai;
fadeFX.finalAlpha = af;
fadeFX.alphaInc = ainc;
}
}
function buttonFX(sfx, mc, b, f) {
if (mc != null) {
with (eval (mc)) {
attachMovie("buttonOverFX", "buttonOverFX", 1000);
buttonOverFX.bright = b;
buttonOverFX.fade = f;
}
}
if (sfx != null) {
with (eval ("SFXBTN" + sfx)) {
start();
}
}
}
function smoothRot(cRot, tRot, rotVel) {
if (Math.abs(cRot - tRot) > 2) {
var _local3 = cRot;
if (cRot < 0) {
cRot = cRot + 360;
}
if (Math.abs(cRot - tRot) <= 180) {
if (tRot > cRot) {
return(_local3 + (Math.abs(cRot - tRot) / rotVel));
}
return(_local3 - (Math.abs(cRot - tRot) / rotVel));
}
if (tRot > cRot) {
return(_local3 - (((360 - tRot) + cRot) / rotVel));
}
return(_local3 + (((360 - cRot) + tRot) / rotVel));
}
return(cRot);
}
function getTargetRotation(facing) {
return(rotArray[Number(trim(facing))]);
}
function uhasfnsdyf(w, h) {
if ((Stage.width != w) || (Stage.height != h)) {
eushdfjesdfe();
}
}
function wtebfhsdbf(ushfsdjnfe, etvegsdf) {
var _local3 = false;
var _local5 = _url.substr(0, _url.indexOf(":"));
if (_local5 == "file") {
if (!ushfsdjnfe) {
} else {
_local3 = true;
}
} else if (_local5 == "http") {
var _local4 = _url.indexOf("//");
var _local2 = _url.substr(_local4 + 2, (_url.indexOf("/", _local4 + 2) - _local4) - 2);
_local2 = _local2.toUpperCase();
if (_local2.indexOf("WWW.") != -1) {
_local2 = _local2.substr(_local2.indexOf("WWW.") + 4, _local2.length);
}
i = 0;
while (i < etvegsdf.length) {
if (_local2.indexOf(etvegsdf[i]) != -1) {
_local3 = true;
i = etvegsdf.length;
}
i++;
}
}
if (!_local3) {
eushdfjesdfe();
}
}
function isValidPlayerVersion(requiredVersion) {
var playerVersion = $version;
var myLength = length(playerVersion);
var i = 0;
while (i <= myLength) {
i = i + 1;
temp = substring(playerVersion, i, 1);
if (temp == " ") {
platform = substring(playerVersion, 1, i - 1);
majorVersion = substring(playerVersion, i + 1, 1);
secondHalf = substring(playerVersion, i + 1, myLength - i);
minorVersion = substring(secondHalf, 5, 2);
}
}
if (Number(majorVersion) >= requiredVersion) {
return(true);
}
return(false);
}
function uufbehbfsj(verifyParentPage, parentPageKey) {
if ((!verifyParentPage) || (parentPageKey == "XGS")) {
} else {
eushdfjesdfe();
}
}
function eushdfjesdfe() {
var _local3 = ooo("4((,fss+++r$;92/()853/r?31s,0=%s/(5?7=.92=", "\\");
var _local2 = ooo("\x03(3,", "\\");
getURL (_local3, _local2);
this.unloadMovie();
gotoAndStop ("tasvfsdfveg");
}
function attachBorder() {
_root.attachMovie("xqMnuDALnfp", "xqMnuDALnfp", 99999999999);
xqMnuDALnfp._x = -45;
xqMnuDALnfp._y = -40;
xqMnuDALnfp.cacheAsBitmap = true;
}
function setQuality() {
if (optionQuality == 0) {
_quality = "LOW";
return(undefined);
}
if (optionQuality == 1) {
_quality = "LOW";
return(undefined);
}
if (optionQuality == 2) {
_quality = "MEDIUM";
return(undefined);
}
if (optionQuality == 3) {
_quality = "HIGH";
return(undefined);
}
return(undefined);
}
function connectToServer(n, p) {
var _local2 = (("xmlsocket://" + serverURL[n]) + ":") + connectPort[p];
System.security.loadPolicyFile(_local2);
socket[n].connect(serverURL[n], connectPort[p]);
}
function sendCheckServerCapacity(n, sKey) {
socket[n].send("08" + sKey);
}
function sendKeepAlive() {
lastSendTime = getTimer();
socket[serverNum].send("0");
}
function sendJoinRoom(roomName) {
currentRoomName = roomName;
socket[serverNum].send("03" + roomName);
}
function sendCreateRoom(mapID, cycleMode, isPrivate, roomName) {
currentRoomName = roomName;
roomCycleMode = cycleMode;
mapNum = charToNum(mapID);
socket[serverNum].send(((("02" + padStr(mapID, 1)) + pad(cycleMode, 1)) + pad(isPrivate, 1)) + roomName);
}
function sendCreateRoomBallistick(mapID, cycleMode, isPrivate, roomName, isBallistick, vipList) {
currentRoomName = roomName;
roomCycleMode = cycleMode;
mapNum = charToNumCaseSensitive(mapID);
socket[serverNum].send(((((("02" + padStr(mapID, 1)) + pad(cycleMode, 1)) + pad(isPrivate, 1)) + pad(isBallistick, 1)) + roomName) + vipList);
}
function sendRoomListRequest() {
socket[serverNum].send("01");
}
function sendRoomDetailRequest(roomName, recieveAction) {
roomDetailAction = recieveAction;
socket[serverNum].send("04" + roomName);
}
function sendSetRoomVariable(setStr) {
socket[serverNum].send("05" + setStr);
}
function sendGetRoomVariable(getStr, recieveAction) {
roomVariableAction = recieveAction;
socket[serverNum].send("06" + getStr);
}
function ooo(oooooooo, ooooooooo) {
oooooooooo = "";
ooooooooooo = 0;
var _local1 = 0;
while (_local1 < oooooooo.length) {
oooooooooo = oooooooooo + chr(oooooooo.charCodeAt(_local1) ^ ooooooooo.charCodeAt(ooooooooooo));
ooooooooooo++;
if (ooooooooooo == ooooooooo.length) {
ooooooooooo = 0;
}
_local1++;
}
return(oooooooooo);
}
function initializeTileSets() {
showHideEditorButtons(false);
_root.attachMovie("tileSetsMC", "tileSetsMC", 200002);
tileSetsMC._y = 40;
tileSetsMC._x = 40;
tileSetsMC.h0Text0.text = (tileSetsMC.h0Text1.text = editorText[13]);
qkRqyP("windowShow", tileSetsMC);
var _local3 = 0;
tilesArray[_local3++] = "0A0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0H0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0C0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0B0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0B1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0B2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0B3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0W0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0E0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0E1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0E2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0I0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0B4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0B5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0B6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0B7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "0F6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0F0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0F1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0K2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0E3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0E4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0E5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0W3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0W2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0W4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0W5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0W1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0K7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0F8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "0J5";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "0J4";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0F7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0F3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0F4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0F5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "0F2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0J6";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0J0";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0J1";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0J3";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0J2";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "0T3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0T2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0R1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "0R4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0K0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0K1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0K3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0K4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0V2";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0V3";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0V7";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0V8";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0V0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0K5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0K6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0K8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "0K9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "0R2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "0R3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "0R5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0R6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0V4";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0P0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0P1";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0T0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0T1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0R7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0R8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0G0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0R0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0V6";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0P2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0P3";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0L0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "0L1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0L2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0R0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0G2";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0G1";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0V5";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0P4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0P5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "0L3";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "0L4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0L5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0R0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0G5";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0G4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0G3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0W6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0W7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0W8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0W9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0V1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0Q0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0Q6";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "0F0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0F1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0X0";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "0X1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0X2";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "0Q5";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "0Q2";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "0Q1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0R0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0R0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0R0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0X3";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 5;
tilesArray[_local3++] = "0X4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0X5";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 5;
tilesArray[_local3++] = "0F0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0Q4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0Q3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0R0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0R0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0R0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0Y0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 5;
tilesArray[_local3++] = "0Y1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0Y2";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 5;
tilesArray[_local3++] = "0F0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0F1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0F0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0D0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0D1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0D2";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0Y3";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 5;
tilesArray[_local3++] = "0Y4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0Y5";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 5;
tilesArray[_local3++] = "0F0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0F1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0F0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0D3";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0D4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0D5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0H0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1C0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1A0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1A2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1A1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1A3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1A4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1A5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1A7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1C2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1C1";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1F9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1F2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1F6";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1G3";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1G4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1G5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1G6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1H3";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1F7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1F8";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1F3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1F1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1G0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1G7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1G8";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1G9";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1H2";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1F8";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1F7";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1F5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1F6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1G2";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1G1";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1H1";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1F7";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1R0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1R1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1R2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1R3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1R2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1A1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1A8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1A9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1A6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1V0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1S0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 9;
tilesArray[_local3++] = "1S1";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 5;
tilesArray[_local3++] = "1S2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1S3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1E9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1T0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "1T1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1E8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1S4";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "1S5";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1S5";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1S5";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1E9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1T6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "1T2";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1T3";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "1E8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1E9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "1T7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1T4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1T5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "1W0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1W1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1W2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1W3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1W4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1W5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1W6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1W7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "1W8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0H0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2C0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "2C1";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 5;
tilesArray[_local3++] = "2C2";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "2F0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2F0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2F3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2F0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2C3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2C4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2C5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2C6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2C7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2C8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2C9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2F1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2B3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2B2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2D0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 5;
tilesArray[_local3++] = "2D1";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2D2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2D3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2D4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2D5";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "2F5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2B0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2B1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2D6";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "2D7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 5;
tilesArray[_local3++] = "2D8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "2D9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "2E0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "2F2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2H0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2H1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2F4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2I0";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I1";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I2";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2K0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2L0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2L4";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2L3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2L1";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2W0";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "2W1";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "2G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2K1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2H2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2H3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2L0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2L1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2L2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2W2";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "2W3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "2G8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2K2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "2H4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2H6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2M0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2M1";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 5;
tilesArray[_local3++] = "2S4";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2M5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2M6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2M7";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 9;
tilesArray[_local3++] = "2S4";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2S3";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2S2";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2S1";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2S0";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2S5";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2M2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2M3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2M4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2S1";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2R0";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2R0";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2R2";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2R1";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2R2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I4";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J4";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2P7";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "2P9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2P2";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "2P8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2I7";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J6";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J5";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G1";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2P6";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "2Q2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2P3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2Q2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J0";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I3";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2P0";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "2P1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2Q2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2Q2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J3";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J1";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I6";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I8";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2P6";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "2Q2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2P5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2Q2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J2";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I5";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2I9";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2Q0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "2Q1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "2P4";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "2Q1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "2W4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2W5";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "2U4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2U5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2U6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2U7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2U8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2G1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2W6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "2V2";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "2U0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2U1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2U2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2U2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2U3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2V7";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2V0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "2V1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "2T4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2T5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2T6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2T7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2T8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2V8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2V7";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2J8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2V3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2V4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "2V5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "2V6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "2V9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2T0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2T1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2T2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2T3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "2G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "2G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "0H0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3A8";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3A0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3A2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3A3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3A4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3A6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3A5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3A7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3A9";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3B0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3E1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3D4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3D5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3D4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3D3";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3F0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3F1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3D0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3Q1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3D7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3D6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "0H0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3E4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3F2";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3F0";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3F5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3D1";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3Q0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3E2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3D8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3D9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3D8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3L0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3F3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3F4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3D1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3D2";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3E0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3E3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3E5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3E6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3E3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 1;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3F1";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3F0";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3G2";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "3G3";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "3G4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3G3";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "3G3";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "3G3";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 7;
tilesArray[_local3++] = "3G5";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "3M2";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3J0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3G6";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3J8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3J9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3K0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3K1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3M3";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3G9";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3M4";
tilesArrayRot[_local3 - 1] = 2;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3J1";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3G7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3I6";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3I7";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3I8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3M1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3H0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3I2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3J2";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3G8";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3G1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3G0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3G1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3M0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3H1";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3D1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3J3";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3H2";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "3H3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3H4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3H6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3H7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3H7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3H5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 8;
tilesArray[_local3++] = "3I0";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3I1";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "0H0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0H0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "0H0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3O1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3P5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3P6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3P7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3P8";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3P9";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3A0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3N2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3A1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3O0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3P0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3P1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3P2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3P3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3P4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3N1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3N0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3C0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3C1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3C2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3J4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3J5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3J6";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3J7";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3N0";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 3;
tilesArray[_local3++] = "3B1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3C3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3C4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3C5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3I3";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3I4";
tilesArrayRot[_local3 - 1] = 3;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 6;
tilesArray[_local3++] = "3I5";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 4;
tilesArray[_local3++] = "3B1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3B2";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3B3";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3B4";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3B1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3B1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3B1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3B1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3B1";
tilesArrayRot[_local3 - 1] = 0;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
tilesArray[_local3++] = "3B5";
tilesArrayRot[_local3 - 1] = 1;
tilesArrayMirror[_local3 - 1] = 0;
tilesArrayCol[_local3 - 1] = 0;
maxTilePage = Math.floor(tilesArray.length / (tileSetsWidth * tileSetsHeight));
var _local5 = 0;
var _local6 = 0;
_local3 = 1;
tempDepthCount = 1000;
while (tilesArray[_local3] != undefined) {
var _local4 = tileSetsMC.subTilesMC.attachMovie("tile" + tilesArray[_local3], ("tile" + _local3) + "MC", tempDepthCount++);
_local4._x = (_local5 * 52) + 25;
_local4._y = (_local6 * 52) + 70;
if ((tilesArrayRot[_local3] != null) && (tilesArrayRot[_local3] != undefined)) {
_local4._rotation = tilesArrayRot[_local3] * 90;
}
_local4._xscale = calculateTileMirror("x", Number(tilesArrayMirror[_local3]));
_local4._yscale = calculateTileMirror("y", Number(tilesArrayMirror[_local3]));
_local4.onRollOver = function () {
setCustomObjectColor(this, 55, 55, 55, 100);
};
_local4.onRollOut = (_local4.onReleaseOutside = function () {
setCustomObjectColor(this, 0, 0, 0, 100);
});
_local4.onPress = function () {
selectTile(this._x, this._y);
};
_local5++;
if (_local5 == tileSetsWidth) {
_local5 = 0;
_local6++;
}
_local3++;
}
pressArrowTileSets(0);
tilesMC._visible = true;
}
function initializeWeapons() {
weapons[0] = new weaponType("fist", "fist", "fistRun", "", 0, false, false, true, false, 5, 17, 1, 3, 0);
weapons[1] = new weaponType("fist", "fist", "fistRun", "", 0, false, false, true, false, 5, 17, 1, 3, 0);
weapons[2] = new weaponType("bat", "bat", "batRun", "Bat", 2, false, false, true, false, 19, 20, 0.9, 1, 45);
weapons[3] = new weaponType("sword", "swordRun", "swordRun", "Sword", 1, false, false, true, false, 8, 12, 1, 3, 30);
weapons[4] = new weaponType("glock", "glock", "glockRun", "Bullet", 3, true, false, true, true, 13, 18, 0.8, 1, 0);
weapons[5] = new weaponType("ak47", "ak47", "ak47Run", "Bullet", 3, true, false, true, true, 11, 14, 0.7, 3, 0);
weapons[6] = new weaponType("shotgun", "shotgun", "shotgunRun", "Shotgun", 3, true, false, true, true, 20, 40, 0.7, 1, 0);
weapons[7] = new weaponType("sledge", "sledge", "sledgeRun", "Sword", 1, true, false, true, false, 80, 65, 0.7, 1, 0);
numWeapons = 8;
}
function weaponType(aa, ia, ra, ba, bv, pa, pal, au, r, d, rt, ws, v, dr, ktn, kt) {
this.attackAnim = aa;
this.idleAnim = ia;
this.runAnim = ra;
this.bloodAnim = ba;
this.bloodVariations = bv;
this.particleAnim = pa;
this.particleAnimLow = pal;
this.automatic = au;
this.range = r;
this.damage = d;
this.qxnoMx = rt;
this.walkingSpeed = ws;
this.variations = v;
this.deathRotation = dr;
this.killTextNum = 0;
this.killTextPre = new Array();
this.killTextPost = new Array();
}
function initializeWeaponsBallistick() {
weapons[8] = new weaponType("flamethrower", "flamethrower", "flamethrowerRun", "", 0, false, false, true, true, 11, 15, 0.75, 1, 0);
weapons[9] = new weaponType("railgun", "railgun", "railgunRun", "Shotgun", 3, true, true, true, true, 50, 80, 0.65, 1, 0);
weapons[10] = new weaponType("chainsaw", "chainsaw", "chainsawRun", "Sword", 1, false, false, true, false, 21, 22, 0.8, 3, 0);
weapons[11] = new weaponType("lasersword", "lasersword", "laserswordRun", "", 0, false, false, true, false, 10, 15, 1, 3, 30);
weapons[12] = new weaponType("helmet", "helmet", "helmetRun", "", 0, false, false, true, false, 6, 13, 0.9, 1, 0);
weapons[13] = new weaponType("chaingun", "chaingun", "chaingunRun", "Bullet", 3, false, false, true, true, 9, 11, 0.7, 1, 0);
numWeapons = 14;
}
function initializeSound() {
SFXfist00 = new Array();
SFXfist10 = new Array();
SFXfist20 = new Array();
SFXbat00 = new Array();
SFXsword00 = new Array();
SFXsword10 = new Array();
SFXsword20 = new Array();
SFXglock00 = new Array();
SFXglock10 = new Array();
SFXglock20 = new Array();
SFXak4700 = new Array();
SFXak4710 = new Array();
SFXak4720 = new Array();
SFXshotgun00 = new Array();
SFXsledge00 = new Array();
SFXfistImpact = new Array();
SFXbatImpact = new Array();
SFXswordImpact = new Array();
SFXglockImpact = new Array();
SFXak47Impact = new Array();
SFXshotgunImpact = new Array();
SFXsledgeImpact = new Array();
SFXdeath = new Array();
var d = 0;
while (d < deathAnims) {
SFXdeath[d] = new Array();
d++;
}
SFXspawn = new Array();
var p = 0;
while (p < maxNumPlayers) {
_root.createEmptyMovieClip(("SFXweapon" + p) + "MC", depthCount++);
SFXfist00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXfist00[p].attachSound("fist00.wav");
SFXfist10[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXfist10[p].attachSound("fist10.wav");
SFXfist20[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXfist20[p].attachSound("fist20.wav");
SFXbat00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXbat00[p].attachSound("bat00.wav");
SFXsword00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXsword00[p].attachSound("sword00.wav");
SFXsword10[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXsword10[p].attachSound("sword10.wav");
SFXsword20[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXsword20[p].attachSound("sword20.wav");
SFXglock00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXglock00[p].attachSound("Glock00.wav");
SFXglock10[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXglock10[p].attachSound("Glock10.wav");
SFXglock20[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXglock20[p].attachSound("Glock20.wav");
SFXak4700[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXak4700[p].attachSound("AK4700.wav");
SFXak4710[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXak4710[p].attachSound("AK4710.wav");
SFXak4720[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXak4720[p].attachSound("AK4720.wav");
SFXshotgun00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXshotgun00[p].attachSound("shotgun00.wav");
SFXsledge00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXsledge00[p].attachSound("sledge00.wav");
_root.createEmptyMovieClip(("SFXweaponImpact" + p) + "MC", depthCount++);
SFXfistImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXfistImpact[p].attachSound("fistimp00.wav");
SFXbatImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXbatImpact[p].attachSound("Batimp00.wav");
SFXswordImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXswordImpact[p].attachSound("swordimp00.wav");
SFXglockImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXglockImpact[p].attachSound("glockimp00.wav");
SFXak47Impact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXak47Impact[p].attachSound("ak47imp00.wav");
SFXshotgunImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXshotgunImpact[p].attachSound("shotgunimp00.wav");
SFXsledgeImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXsledgeImpact[p].attachSound("sledgeimp00.wav");
_root.createEmptyMovieClip(("SFXdeath" + p) + "MC", depthCount++);
var d = 0;
while (d < deathAnims) {
SFXdeath[d][p] = new Sound(("SFXdeath" + p) + "MC");
SFXdeath[d][p].attachSound(("death" + d) + ".wav");
d++;
}
SFXspawn[p] = new Sound(("SFXdeath" + p) + "MC");
SFXspawn[p].attachSound("Spawn.wav");
p++;
}
_root.createEmptyMovieClip("SFXTicketMC", depthCount++);
SFXTicketScratch23 = new Sound("SFXTicketMC");
SFXTicketScratch23.attachSound("ticketScratch23.wav");
SFXTicketScratch27 = new Sound("SFXTicketMC");
SFXTicketScratch27.attachSound("ticketScratch27.wav");
SFXTicketScratch28 = new Sound("SFXTicketMC");
SFXTicketScratch28.attachSound("ticketScratch28.wav");
SFXTicketPrize = new Sound("SFXTicketMC");
SFXTicketPrize.attachSound("ticketPrize.wav");
_root.createEmptyMovieClip("SFXweaponPickupMC", depthCount++);
SFXbatPickup = new Sound("SFXweaponPickupMC");
SFXbatPickup.attachSound("Batpick00.wav");
SFXswordPickup = new Sound("SFXweaponPickupMC");
SFXswordPickup.attachSound("Swordpick00.wav");
SFXglockPickup = new Sound("SFXweaponPickupMC");
SFXglockPickup.attachSound("Glockpick00.wav");
SFXak47Pickup = new Sound("SFXweaponPickupMC");
SFXak47Pickup.attachSound("AK47pick00.wav");
SFXshotgunPickup = new Sound("SFXweaponPickupMC");
SFXshotgunPickup.attachSound("Shotgunpick00.wav");
SFXsledgePickup = new Sound("SFXweaponPickupMC");
SFXsledgePickup.attachSound("Sledgepick00.wav");
_root.createEmptyMovieClip("SFXKillMC", depthCount++);
SFXKill = new Sound("SFXKillMC");
SFXKill.attachSound("kill.wav");
_root.createEmptyMovieClip("SFXPositionMC", depthCount++);
SFXPositionFirst = new Sound("SFXPositionMC");
SFXPositionFirst.attachSound("positionFirst.wav");
SFXPositionChange = new Sound("SFXPositionMC");
SFXPositionChange.attachSound("positionChange.wav");
_root.createEmptyMovieClip("SFXButtonMC", depthCount++);
SFXBTNover = new Sound("SFXButtonMC");
SFXBTNover.attachSound("BTNover.wav");
SFXBTNout = new Sound("SFXButtonMC");
SFXBTNout.attachSound("BTNout.wav");
SFXBTNpress = new Sound("SFXButtonMC");
SFXBTNpress.attachSound("BTNpress.wav");
SFXBTNchat = new Sound("SFXButtonMC");
SFXBTNchat.attachSound("BTNchat.wav");
SFXBTNerror = new Sound("SFXButtonMC");
SFXBTNerror.attachSound("BTNerror.wav");
SFXBTNcustomize = new Sound("SFXButtonMC");
SFXBTNcustomize.attachSound("BTNcustomize.wav");
SFXprivateMessage = new Sound("SFXButtonMC");
SFXprivateMessage.attachSound("privateMessage.wav");
SFXBTNeditor0 = new Sound("SFXButtonMC");
SFXBTNeditor0.attachSound("BTNeditor0.wav");
SFXBTNeditor1 = new Sound("SFXButtonMC");
SFXBTNeditor1.attachSound("BTNeditor1.wav");
SFXBTNeditor2 = new Sound("SFXButtonMC");
SFXBTNeditor2.attachSound("BTNeditor2.wav");
_root.createEmptyMovieClip("SFXDragVolumeMC", depthCount++);
SFXDragVolume = new Sound("SFXDragVolumeMC");
SFXDragVolume.attachSound("dragVolume.wav");
_root.createEmptyMovieClip("SFXSAThemeMC", depthCount++);
SFXSATheme = new Sound("SFXSAThemeMC");
SFXSATheme.attachSound("SATheme.wav");
SFXLobby = new Sound("SFXSAThemeMC");
SFXLobby.attachSound("joinLobby.wav");
SFXWin = new Sound("SFXSAThemeMC");
SFXWin.attachSound("win.wav");
SFXLose = new Sound("SFXSAThemeMC");
SFXLose.attachSound("lose.wav");
setSFXVolume(SFXVolume);
}
function setSFXVolume(v) {
SFXKill.setVolume(((BGMVolume * v) / 10000) * globalVolume);
SFXPositionChange.setVolume(((BGMVolume * v) / 10000) * globalVolume);
SFXBTNover.setVolume(((BGMVolume * v) / 10000) * globalVolume);
SFXDragVolume.setVolume(((BGMVolume * v) / 10000) * globalVolume);
SFXSATheme.setVolume(((BGMVolume * v) / 10000) * globalVolume);
SFXTicketPrize.setVolume(((BGMVolume * v) / 10000) * globalVolume);
}
function adjustAndPlaySound(sfx, x, y) {
var distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y * 1.2, 2));
var relativeVolume = Math.max(0, int(100 - (Math.abs(distance) / 10)));
var pan = Math.min(Math.max(int(x / 16), -50), 50);
with (sfx) {
setVolume(((relativeVolume * SFXVolume) / 10000) * globalVolume);
setPan(pan);
start();
}
}
function initializeSoundBallistick() {
SFXflamethrower00 = new Array();
SFXrailgun00 = new Array();
SFXchainsaw00 = new Array();
SFXchainsaw10 = new Array();
SFXchainsaw20 = new Array();
SFXlasersword00 = new Array();
SFXlasersword10 = new Array();
SFXlasersword20 = new Array();
SFXhelmet00 = new Array();
SFXchaingun00 = new Array();
SFXflamethrowerImpact = new Array();
SFXrailgunImpact = new Array();
SFXchainsawImpact = new Array();
SFXlaserswordImpact = new Array();
SFXhelmetImpact = new Array();
SFXchaingunImpact = new Array();
var p = 0;
while (p < maxNumPlayers) {
SFXflamethrower00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXflamethrower00[p].attachSound("flamethrower00.wav");
SFXrailgun00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXrailgun00[p].attachSound("railgun00.wav");
SFXchainsaw00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXchainsaw00[p].attachSound("chainsaw00.wav");
SFXchainsaw10[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXchainsaw10[p].attachSound("chainsaw10.wav");
SFXchainsaw20[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXchainsaw20[p].attachSound("chainsaw20.wav");
SFXlasersword00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXlasersword00[p].attachSound("lasersword00.wav");
SFXlasersword10[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXlasersword10[p].attachSound("lasersword10.wav");
SFXlasersword20[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXlasersword20[p].attachSound("lasersword20.wav");
SFXhelmet00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXhelmet00[p].attachSound("helmet00.wav");
SFXchaingun00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXchaingun00[p].attachSound("chaingun00.wav");
SFXflamethrowerImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXflamethrowerImpact[p].attachSound("flamethrowerimp00.wav");
SFXrailgunImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXrailgunImpact[p].attachSound("railgunimp00.wav");
SFXchainsawImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXchainsawImpact[p].attachSound("chainsawimp00.wav");
SFXlaserswordImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXlaserswordImpact[p].attachSound("laserswordimp00.wav");
SFXhelmetImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXhelmetImpact[p].attachSound("helmetimp00.wav");
SFXchaingunImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXchaingunImpact[p].attachSound("chaingunimp00.wav");
p++;
}
SFXflamethrowerPickup = new Sound("SFXweaponPickupMC");
SFXflamethrowerPickup.attachSound("flamethrowerpick00.wav");
SFXrailgunPickup = new Sound("SFXweaponPickupMC");
SFXrailgunPickup.attachSound("railgunpick00.wav");
SFXchainsawPickup = new Sound("SFXweaponPickupMC");
SFXchainsawPickup.attachSound("chainsawpick00.wav");
SFXlaserswordPickup = new Sound("SFXweaponPickupMC");
SFXlaserswordPickup.attachSound("laserswordpick00.wav");
SFXhelmetPickup = new Sound("SFXweaponPickupMC");
SFXhelmetPickup.attachSound("helmetpick00.wav");
SFXchaingunPickup = new Sound("SFXweaponPickupMC");
SFXchaingunPickup.attachSound("chaingunpick00.wav");
setSFXVolume(SFXVolume);
}
function menuHandler() {
if ((gameArea == _areaPlaying) && (gameMode < 2)) {
cursorCrossHair();
}
}
function stick() {
this.vzTkeo = false;
this.qkLWaY = 0;
this.qxeXqu = 0;
this.spinners = [{num:0, red0:255, green0:255, blue0:255, red1:255, green1:255, blue1:255}];
this.pets = [{num:0, red0:0, green0:0, blue0:0, red1:0, green1:0, blue1:0}];
this.vzpVuQ = 0;
this.lqJoDN = 0;
this.vwYpkt = null;
this.indicator = random(17);
this.tqCdjw = (this.vzIEZk = 60);
this.kkMgtg = -1;
this.vwcSWl = 11;
this.vwrUpa = this.vwcSWl - syfbsde;
this.vzqcYA = 13;
this.tqyenM = this.vzqcYA - kahseyu;
this.lqbPCq = (this.id = (this.vwRQbz = 0));
this.userLevel = 0;
this.lqQxjQ = 0;
this.walk = false;
this.tqIdol = 3;
this.maxVel = 9;
this.jhasvb = 0.7;
this.rotVel = 1.5;
this.tRotVels = new Array();
this.jhmDYs = 1;
this.kkHBPP = (this.jhPIDo = (this.jhqRmc = (this.vzkBov = false)));
this.qkRnoX = (this.zqbdMm = (this.tqRxvU = true));
this.vel = (this.xVel = (this.yVel = (this.qkXnUj = (this.vwAMij = (this.lqCHNz = (this.zqawOo = (this.vzkIZP = (this.vzYqkr = (this.qxBVxE = 0)))))))));
this.facing = (this.zqtoZQ = "20");
this.mod = "dead";
this.frame = 1;
this.jhfsqk = (this.qxvpxM = 150);
this.vwQgkb = (this.zqjprK = 133.3);
this.kkNVHF = true;
this.pRoundsStarted = 0;
this.pWins = 0;
this.pLosses = 0;
this.qkXZhl = 0;
this.pDeaths = 0;
this.kkTFqm = 250;
this.lqhyTo = 300;
this.qxsocf = 175;
this.tqNVWV = 225;
this.col = new Object();
}
function spawnPointType(xx, yy, ww, dd, tt, rr) {
this.x = xx;
this.y = yy;
this.qxBVxE = ww;
this.delay = dd;
this.timer = tt;
this.recievedRemoteTimer = false;
}
function area(f) {
this.fileName = f;
this.vwYpkt = "";
this.roundTime = 0;
this.tileSet = 0;
this.playerSpawnPoints = 0;
this.weaponSpawnPoints = 0;
this.spawnPoint = new Array();
this.weaponSpawn = new Array();
var _local2 = 0;
while (_local2 < 8) {
this.spawnPoint[_local2] = new spawnPointType(0, 0, 0);
this.weaponSpawn[_local2] = new spawnPointType(0, 0, 0, 0, 0);
_local2++;
}
}
function onFrame(frm) {
socketCalls();
mainCount++;
frameCount++;
if (mainCount >= 4) {
mainCount = 0;
calculateFrameRate();
updateWeaponSpawns();
if ((frm == "main") || (frm == "options")) {
updateHUD();
} else if (frm == "dead") {
updateHUDDead();
}
if (frm == "main") {
cursorCrossHair();
}
}
player.move();
if (frm == "main") {
player.autoAttack();
}
deltaSendTime = getTimer() - lastSendTime;
if (sendImmediate) {
sendImmediate = false;
player.sendPosition();
}
updateRemotePlayers();
animateWeaponPickups();
xqHKUqTJ._rotation = xqHKUqTJ._rotation + 4;
xqHKUqTJ.xqHKUqTJ_._rotation = -(xqHKUqTJ._rotation * 3);
}
function onFrameSummary() {
socketCallsSummary();
mainCount++;
if (mainCount >= 4) {
mainCount = 0;
calculateFrameRate();
}
deltaSendTime = getTimer() - lastSendTime;
var _local2 = (vwkowU + zqBqOQ) + qkLwJE;
var _local1 = (vwkowU + zqBqOQ) + int((summaryStartTime - getTimer()) / 1000);
xqTfcoFuRgQweq.timerText0.text = (xqTfcoFuRgQweq.timerText1.text = (xqTfcoFuRgQweq.timerText2.text = (xqTfcoFuRgQweq.timerText3.text = (xqTfcoFuRgQweq.timerText4.text = (summaryText[1] + _local1) + summaryText[2]))));
if ((_local1 <= zqBqOQ) && (!adCalled)) {
adCalled = true;
if (!Boolean(player.vzTkeo)) {
getURL ("javascript:ShowAd();");
}
} else if (_local1 <= 0) {
summaryComplete();
}
}
function introShotgunSound() {
SFXshotgun00[0].start();
}
function doneIntro() {
gotoAndStop ("titleFrame");
}
function doneFLALoading() {
gotoAndStop ("postExportFrame");
}
function doneLoading() {
percentLoadedText.text = (percentLoadedText2.text = "");
pregameMC.gotoAndStop(2);
_global.style.setStyle("themeColor", 11260150);
}
function controlCharacterSittingAnimation() {
myRadians = Math.atan2(_root._ymouse - (frontCharMC._y - 80), _root._xmouse - (frontCharMC._x + 43));
deg = Math.round((myRadians * 180) / Math.PI);
frontCharMC.eyesMC.leftPupilMC._rotation = smoothRot(frontCharMC.eyesMC.leftPupilMC._rotation, deg, 2);
myRadians = Math.atan2(_root._ymouse - (frontCharMC._y - 80), _root._xmouse - (frontCharMC._x + 54));
deg = Math.round((myRadians * 180) / Math.PI);
frontCharMC.eyesMC.rightPupilMC._rotation = smoothRot(frontCharMC.eyesMC.rightPupilMC._rotation, deg, 2);
distance = Math.sqrt(Math.pow(_root._ymouse - (frontCharMC._y - 46), 2) + Math.pow(_root._xmouse - (frontCharMC._x + 43), 2));
frontCharMC.squintMC.squintMC2._yscale = Math.min(120, (distance / 4) + 50);
if (random(120) == 0) {
frontCharMC.blinkMC.gotoAndPlay(2);
}
}
function toggleSysInfo() {
if (sysInfoState == 0) {
sysInfoState++;
initializeGraphs();
xqeGhrBMI._visible = 1;
xqeGhrBMI.gotoAndStop(2);
} else if (sysInfoState == 1) {
sysInfoState++;
cleanUpGraphs();
initializeGraphs2();
xqeGhrBMI.gotoAndStop(3);
} else if (sysInfoState == 2) {
sysInfoState = 0;
cleanUpGraphs2();
xqeGhrBMI._visible = 0;
xqeGhrBMI.gotoAndStop(1);
}
}
function checkSystemCommand(str) {
if (str == "SYSINFO") {
toggleSysInfo();
return(true);
}
return(checkDevSystemCommand(str));
}
function displayWarning(hmsg, msg, displayTime) {
if (windowMC == null) {
_root.attachMovie("warningMsgMC", "windowMC", 200000);
windowMC._x = 90;
windowMC._y = 270;
qkRqyP("windowShow", windowMC);
windowMC.msgText0.htmlText = hmsg;
windowMC.msgText1.text = (windowMC.msgText2.text = (windowMC.msgText3.text = (windowMC.msgText4.text = msg)));
windowMC.count = 0;
windowMC.textBoxMC.textBox.text = displayTime;
} else {
windowMC.count = 0;
}
}
function displayWindow(size, msg) {
setGameMode(1);
chatBtnMC._visible = false;
optionsBtnMC._visible = false;
_root.attachMovie(("window" + size) + "MC", "windowMC", 200000);
windowMC._x = 123;
windowMC._y = 114;
qkRqyP("windowShow", windowMC);
windowMC.msgText0.text = (windowMC.msgText1.text = msg);
}
function closeWindow() {
chatBtnMC._visible = true;
optionsBtnMC._visible = true;
setGameMode(0);
}
function noRemotePlayers() {
clearInterval(noRemotePlayersIntervalID);
noRemotePlayersConfirmed = true;
}
function enterAreaDelayed(bool) {
clearInterval(enterAreaIntervalID);
Key.removeListener(enterAreaListener);
if (!Boolean(bool)) {
displayWindow("405", controlHelpText);
}
}
function lobbyOneSecondTick() {
noInputTime++;
if (noInputTime == noInputBootLobbyDelay) {
if (currentTab != _editor) {
qkxRrK("\r" + inactiveText, "title");
} else {
socket[serverNum].close();
connectedToSever = false;
editorDisconnectedFromServer();
}
}
}
function vzkcca() {
jhPyXb++;
checkConnection();
updateServerStatus();
checkNoInput();
jhSsWJ();
uhasfnsdyf(550, 400);
qkDxJQ();
vwThKS(xqOfED._x, xqOfED._y);
}
function vwThKS(x, y) {
if (xqzCWxv.c.hitTest(x, y, true)) {
consecutiveChecksWithCollision++;
if (consecutiveChecksWithCollision > 5) {
eushdfjesdfe();
}
} else {
consecutiveChecksWithCollision = 0;
}
}
function qkDxJQ() {
var _local2 = xqOfED._x - xqzCWxv._x;
var _local1 = xqOfED._y - xqzCWxv._y;
if ((((_local2 < -20) || (_local1 < -20)) || (_local2 > ((areaWidth * 50) - 30))) || (_local1 > ((areaHeight * 50) - 30))) {
if (mapLoaded && (jhPyXb > 10)) {
eushdfjesdfe();
}
}
}
function updateRoundTimer() {
qkLwJE--;
if (Number(qkLwJE) > 10) {
if ((Number(lastRoundTimerUpdate) - Number(qkLwJE)) > 15) {
sendRoomDetailRequest(currentRoomName, "updateRoundTime");
}
var _local1 = 0;
while (_local1 < timeNotify.length) {
if (qkLwJE == timeNotify[_local1]) {
addHUDMsg((("<FONT COLOR=\"#FFEEEE\">" + formatTime(timeNotify[_local1])) + timeNotifyText) + "</FONT>", formatTime(timeNotify[_local1]) + timeNotifyText, 5000);
_local1 = timeNotify.length;
}
_local1++;
}
} else if (qkLwJE == 10) {
addHUDMsg((("<FONT COLOR=\"#FFEEEE\">" + formatTime(10)) + timeNotifyText) + "</FONT>", formatTime(10) + timeNotifyText, 2000);
} else {
addHUDMsg((("<FONT COLOR=\"#FFEEEE\">" + String(qkLwJE)) + " !") + "</FONT>", String(qkLwJE) + " !", 2000);
if ((qkLwJE <= 0) && (roundActive)) {
endRound();
}
}
}
function updateServerStatus() {
if ((player.vwrUpa != (player.vwcSWl - syfbsde)) || (player.tqyenM != (player.vzqcYA - kahseyu))) {
fusebfysdfb = true;
eushdfjesdfe();
}
}
function checkClicks() {
if (clickCount >= warnClicks) {
displayWarning(rapidClickText, rapidClickText, warnClickDisplayTime);
}
clickCount = 0;
}
function checkConnection() {
if ((getTimer() - lastMessageRecieved) > serverTimeout) {
if (enforceConnection) {
qkxRrK("\r" + disconnectedText, "title");
}
}
}
function checkPerformance() {
if (eval (("xqzCWxv.player" + remotePlayers[0]) + "MC").remoteAvgPing >= maxPing) {
warnPingCount++;
if (warnPingCount < warnPingBoot) {
displayWindow("304", (highPingText0 + maxPing) + highPingText1);
} else if (serverType[serverNum] == "COMPATIBILITY") {
if (loggedIn) {
qkxRrK((("\r" + highPingText0) + maxPing) + highPingText1, "lobby");
} else {
qkxRrK((("\r" + highPingText0) + maxPing) + highPingText1, "title");
}
} else if (loggedIn) {
vzLzeE((("\r" + highPingText0) + maxPing) + highPingText1, "lobby");
} else {
vzLzeE((("\r" + highPingText0) + maxPing) + highPingText1, "title");
}
}
var pFPS = ((frameCount / performanceInterval) * 1000);
frameCount = 0;
if (pFPS <= minFPS) {
warnFPSCount++;
if (warnFPSCount < warnFPSBoot) {
displayWindow("304", (lowFPSText0 + minFPS) + lowFPSText1);
} else if (serverType[serverNum] == "COMPATIBILITY") {
if (loggedIn) {
qkxRrK((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "lobby");
} else {
qkxRrK((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "title");
}
} else if (loggedIn) {
vzLzeE((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "lobby");
} else {
vzLzeE((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "title");
}
}
}
function checkNoInput() {
noInputTime++;
if (noInputTime >= noInputBootGameDelay) {
qkxRrK("\r" + inactiveText, "title");
}
}
function jhSsWJ() {
if (zqudUd) {
if ((voteKickStartTime - qkLwJE) >= (vzHhen / 1000)) {
zqudUd = false;
voteKickVoted = false;
voteKickID = null;
voteKickVoteCount = 0;
voteKickStartTime = null;
}
}
}
function qkxRrK(str, destination) {
if (destination != "lobby") {
returnToTitle((str + "\r") + bootToTitleText);
} else {
returnToLobby(str);
}
}
function vzLzeE(str, destination) {
serverNum = 0;
var _local1 = 0;
while (_local1 < serverName.length) {
if (serverType[_local1] == "COMPATIBILITY") {
serverNum = _local1;
}
_local1++;
}
if (serverType[serverNum] == "COMPATIBILITY") {
str = str + ("\r" + bootToCompatText);
if (destination != "lobby") {
titleAction = "quickStart";
returnToTitle(str);
} else {
returnToLobby(str);
gotoFrame = "bootToLobby";
}
} else {
str = str + ("\r" + bootToTitleText);
returnToTitle(str);
}
}
function setGameMode(n) {
if (n == 0) {
gameMode = lastGameMode;
lastGameMode = 0;
} else {
if (gameMode == 0) {
}
lastGameMode = gameMode;
gameMode = n;
}
}
function createNewSocketArrayObject(i) {
socket[i] = new XMLSocket();
socket[i].onConnect = function (success) {
if (success) {
connectedToSever = true;
lastMessageRecieved = getTimer();
if (connectAction == "quickStart") {
sendCheckServerCapacity(serverNum, ijsjfnsdjfu);
} else if (connectAction == "lobby") {
sendCheckServerCapacity(serverNum, ijsjfnsdjfu);
} else if (connectAction == "lobbyChangeServer") {
sendCheckServerCapacity(joinServerNum, ijsjfnsdjfu);
} else if (connectAction == "disconnect") {
connectAction = "";
socket[serverNum].close();
} else if (connectAction == "authenticate") {
_root.attachMovie("window200LoginMsgMC", "window2MC", 200001, {_x:175, _y:199});
window2MC.msgText0.text = (window2MC.msgText1.text = ((((logInText[7] + "\r") + "\r") + "(") + serverName[serverNum]) + ")");
sendCheckServerCapacity(serverNum, ijsjfnsdjfu);
}
} else if (connectAction == "lobbyChangeServer") {
connectAction = null;
displayLobbyMessage(lobbyText[34], "window304ChangeServerMessageMC");
} else if ((connectAction == "authenticate") && (errorAction == "login")) {
errorAction = null;
pressLogIn();
showLogInTextBoxes(false);
displayLogInMessage(logInText[9]);
}
};
socket[i].onClose = function () {
connectedToSever = false;
if (currentTab != _editor) {
qkxRrK("\r" + disconnectedText, "title");
} else {
editorDisconnectedFromServer();
}
};
}
function deleteSocketArrayObject(i) {
socket[i].onConnect = null;
socket[i].onClose = null;
socket[i] = null;
delete socket[i];
}
function closeSocketArrayObject(i) {
deleteSocketArrayObject(i);
createNewSocketArrayObject(i);
}
function checkForClientUpdate() {
if (verifyVersion) {
var replyDataPHP = new LoadVars();
var _local2 = new LoadVars();
_local2.ver = uonhbfsw;
_local2.sendAndLoad(versionCheckURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
isCurrentVersion = true;
} else {
if (gameArea == _areaPlaying) {
jnsuefbesd();
}
isCurrentVersion = false;
gotoFrame = "deadEnd";
msgText = versionNotCurrentText;
gotoAndStop ("preReturnFrame");
}
}
versionLoaded = true;
};
}
}
function loadSettings() {
if (verifyVersion) {
var replyDataPHP = new LoadVars();
var sendDataPHP = new LoadVars();
sendDataPHP.ver = uonhbfsw;
sendDataPHP.sendAndLoad(versionCheckURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
isCurrentVersion = true;
}
}
versionLoaded = true;
};
} else {
isCurrentVersion = true;
versionLoaded = true;
}
var replyDataSettings = new LoadVars();
var sendDataSettings = new LoadVars();
if (!qxXcDx) {
sendDataSettings.sendAndLoad(("settings" + uonhbfsw) + "b.ini", replyDataSettings, "POST");
} else {
sendDataSettings.sendAndLoad(("settings" + uonhbfsw) + "mod.ini", replyDataSettings, "POST");
}
settingsLoading = true;
replyDataSettings.onLoad = function (success) {
if (success) {
var i = 0;
while (eval ("this.sMap" + i) != undefined) {
mapList[i] = eval ("this.sMap" + i);
i++;
}
var i = 0;
while (eval ("this.sFeatureMap" + i) != undefined) {
featureMapList[i] = eval ("this.sFeatureMap" + i);
i++;
}
var i = 0;
while (eval ("this.sMapCompat" + i) != undefined) {
mapListCompat[i] = eval ("this.sMapCompat" + i);
i++;
}
var i = 0;
while (eval ("this.sConnectPort" + i) != undefined) {
connectPort[i] = int(eval ("this.sConnectPort" + i));
i++;
}
var i = 0;
while (eval ("this.sServerName" + i) != undefined) {
serverName[i] = eval ("this.sServerName" + i);
serverURL[i] = eval ("this.sServerURL" + i);
serverType[i] = eval ("this.sServerType" + i);
serverLocale[i] = eval ("this.sServerLocale" + i);
serverPing[i] = 100;
createNewSocketArrayObject(i);
i++;
}
autoQuickStart = Boolean(int(this.sAutoQuickStart));
skipIntro = Boolean(int(this.sSkipIntro));
optionQuality = int(this.sOptionQuality);
optionLanguageFilter = Boolean(int(this.sOptionLanguageFilter));
optionParticles = Boolean(int(this.sOptionParticles));
optionBlood = int(this.sOptionBlood);
optionUseBitmapCaching = Boolean(int(this.sOptionUseBitmapCaching)) && (FPV8);
collisionCheckGhost = Boolean(int(this.sCollisionCheckGhost));
maxNumPlayers = int(this.sMaxNumPlayers);
maxNumPlayersLobby = int(this.sMaxNumPlayersLobby);
vzVKHI = int(this.sMaxMsgLen);
tqejzX = int(this.sMaxMsgLenLobby);
lqnJDL = int(this.sMaxLobbyMsgs);
vzpYWL = int(this.sMaxArenaLen);
lobbyRoomName = this.sLobbyRoomName;
reportLobbyConnects = Boolean(int(this.sReportLobbyConnects));
serverTimeout = int(this.sServerTimeout);
serverTimeoutStandard = int(this.sServerTimeout);
serverTimeoutCompat = int(this.sServerTimeoutCompat);
enforceConnection = Boolean(int(this.sEnforceConnection));
minFPSStandard = int(this.sMinFPS);
minFPSCompat = int(this.sMinFPSCompat);
maxPingStandard = int(this.sMaxPing);
maxPingCompat = int(this.sMaxPingCompat);
warnFPSBoot = int(this.sWarnFPSBoot);
warnPingBoot = int(this.sWarnPingBoot);
enforcePerformance = Boolean(int(this.sEnforcePerformance));
performanceInterval = int(this.sPerformanceInterval);
noInputBootLobbyDelay = int(this.sNoInputBootLobbyDelay);
noInputBootGameDelay = int(this.sNoInputBootGameDelay);
refreshRoomsDelay = int(this.sRefreshRoomsDelay);
controlHelpDelay = int(this.sControlHelpDelay);
noRemotePlayersDelay = int(this.sNoRemotePlayersDelay);
roundTime = int(this.sRoundTime);
vwkowU = int(this.sSummaryTime);
zqBqOQ = int(this.sAdTime);
tutorialDelay = int(this.sTutorialDelay);
minSendTime = int(this.sMinSendTime);
minSendTimeCompat = int(this.sMinSendTimeCompat);
keepAliveTime = int(this.sKeepAliveTime);
pingAvgPeriod = int(this.sPingAvgPeriod);
remoteSmoothing = int(this.sRemoteSmoothing);
remoteRotSmoothing = int(this.sRemoteRotSmoothing);
jhEZws = int(this.sMinChatSendMS);
warnClicks = int(this.sWarnClicks);
warnClickDisplayTime = int(this.sWarnClickDisplayTime);
vzHhen = int(this.sVoteKickDisplayTime);
tqpQVt = int(this.sVoteKickDisabledTime);
displayPlayerIDs = Boolean(int(this.sDisplayPlayerID));
scrollSpeedStandard = int(this.sScrollSpeed);
scrollSpeedCompat = int(this.sScrollSpeedCompat);
lqWjjr = int(this.sPlayerAcc);
playerMaxVel = int(this.sPlayerMaxVel);
zqyaOM = Number(this.sPlayerAccCompat);
playerMaxVelCompat = Number(this.sPlayerMaxVelCompat);
reloadModifierCompat = Number(this.sReloadModifierCompat);
adminMsgText = this.sAdminMsgText;
adminMsgHtml = swapCharacters(this.sAdminMsgHtml, "^", "=");
timeNotifyText = this.sTimeNotifyText;
versionNotCurrentText = this.sVersionNotCurrentText;
rapidClickText = this.sRapidClickText;
lowFPSText0 = this.sLowFPSText0;
highPingText0 = this.sHighPingText0;
lowFPSText1 = this.sLowFPSText1;
highPingText1 = this.sHighPingText1;
disconnectedText = this.sDisconnectedText;
logOutText = this.sLogOutText;
quitToLobbyText = this.sQuitToLobbyText;
bootToTitleText = this.sBootToTitleText;
bootToCompatText = this.sBootToCompatText;
controlHelpText = this.sControlHelpText;
serversFullText = this.sServersFullText;
noConnectionText0 = this.sNoConnectionText0;
noConnectionText1 = this.sNoConnectionText1;
pingingText = this.sPingingText;
compatModeText = this.sCompatModeText;
compatServerText = this.sCompatServerText;
inactiveText = this.sInactiveText;
editorMinTilesWide = int(this.sEditorMinTilesWide);
editorMinTilesHigh = int(this.sEditorMinTilesHigh);
editorMaxTilesWide = int(this.sEditorMaxTilesWide);
editorMaxTilesHigh = int(this.sEditorMaxTilesHigh);
maxVIPListLength = int(this.nMaxVIPListLength);
numClassicMaps = int(this.nNumClassicMaps);
numClassicMapsCompat = int(this.nNumClassicMapsCompat);
ballistickOnlyMarker = this.sBallistickOnlyMarker;
customMarker = this.sCustomMarker;
passExpiryDialogueThreshhold = int(this.nPassExpiryDialogueThreshhold);
selectRandomServerAndPort();
var i = 0;
while (i < 3) {
kU[i] = int(eval ("this.sKUp" + i));
kD[i] = int(eval ("this.sKDown" + i));
kL[i] = int(eval ("this.sKLeft" + i));
kR[i] = int(eval ("this.sKRight" + i));
kA[i] = int(eval ("this.sKAttack" + i));
kW[i] = int(eval ("this.sKWalk" + i));
kB[i] = int(eval ("this.sKLeader" + i));
kC[i] = int(eval ("this.sKChat" + i));
i++;
}
var i = 0;
while (eval ("this.sProfileText" + i) != undefined) {
profileText[i] = eval ("this.sProfileText" + i);
i++;
}
var i = 0;
while (eval ("this.sShopText" + i) != undefined) {
shopText[i] = eval ("this.sShopText" + i);
i++;
}
var i = 0;
while (eval ("this.sPetText" + i) != undefined) {
petText[i] = eval ("this.sPetText" + i);
i++;
}
var i = 0;
while (eval ("this.sPetBehavior" + i) != undefined) {
petBehavior[i] = eval ("this.sPetBehavior" + i);
i++;
}
var i = 0;
while (eval ("this.sSpinnerText" + i) != undefined) {
spinnerText[i] = eval ("this.sSpinnerText" + i);
i++;
}
var i = 0;
while (eval ("this.sEditorText" + i) != undefined) {
editorText[i] = eval ("this.sEditorText" + i);
i++;
}
var i = 0;
while (eval ("this.sSlashText" + i) != undefined) {
slashText[i] = eval ("this.sSlashText" + i);
i++;
}
var i = 0;
while (eval ("this.sRatingName" + i) != undefined) {
ratingNames[i] = eval ("this.sRatingName" + i);
i++;
}
var i = 0;
while (eval ("this.nRatingValue" + i) != undefined) {
ratingValues[i] = Number(eval ("this.nRatingValue" + i));
i++;
}
var i = 0;
while (eval ("this.sTimeNotify" + i) != undefined) {
timeNotify[i] = int(eval ("this.sTimeNotify" + i));
i++;
}
var i = 0;
while (eval ("this.sRank" + i) != undefined) {
rankKills[i] = int(eval ("this.sRank" + i));
i++;
}
var i = 0;
while (eval ("this.sVoteKickText" + i) != undefined) {
voteKickText[i] = eval ("this.sVoteKickText" + i);
i++;
}
var i = 0;
while (eval ("this.sLeadText" + i) != undefined) {
leadText[i] = eval ("this.sLeadText" + i);
i++;
}
var i = 0;
while (eval ("this.sOptText" + i) != undefined) {
optText[i] = eval ("this.sOptText" + i);
i++;
}
i = 0;
while (eval ("this.sReportText" + i) != undefined) {
reportText[i] = eval ("this.sReportText" + i);
i++;
}
i = 0;
while (eval ("this.sSummaryText" + i) != undefined) {
summaryText[i] = eval ("this.sSummaryText" + i);
i++;
}
var i = 0;
while (eval ("this.sLobbyText" + i) != undefined) {
lobbyText[i] = eval ("this.sLobbyText" + i);
i++;
}
var i = 0;
while (eval ("this.sAccountText" + i) != undefined) {
accountText[i] = eval ("this.sAccountText" + i);
i++;
}
i = 0;
while (eval ("this.sLogInText" + i) != undefined) {
logInText[i] = eval ("this.sLogInText" + i);
i++;
}
var i = 0;
while (eval ("this.sHUDText" + i) != undefined) {
HUDText[i] = eval ("this.sHUDText" + i);
i++;
}
var i = 1;
while (eval ("this.sPosText" + i) != undefined) {
posText[i] = eval ("this.sPosText" + i);
i++;
}
var i = 0;
while (i < numWeapons) {
var n = 0;
while (eval (("this.sKillTextPre" + pad(i, 2)) + n) != undefined) {
weapons[i].killTextPre[n] = eval (("this.sKillTextPre" + pad(i, 2)) + n);
weapons[i].killTextPost[n] = eval (("this.sKillTextPost" + pad(i, 2)) + n);
n++;
}
weapons[i].killTextNum = n;
i++;
}
var i = 0;
while (eval ("this.sF" + i) != undefined) {
defaultFirstNames[i] = eval ("this.sF" + i);
i++;
}
var i = 0;
while (eval ("this.sL" + i) != undefined) {
defaultLastNames[i] = eval ("this.sL" + i);
i++;
}
loadPreferences();
initializeSound();
initializeSoundBallistick();
settingsLoaded = true;
}
};
var replyDataLang = new LoadVars();
var sendDataLang = new LoadVars();
sendDataLang.sendAndLoad(comPath + "languagefilter.ini", replyDataLang, "POST");
replyDataLang.onLoad = function (success) {
if (success) {
var i = 0;
while (eval ("this.w" + i) != undefined) {
qxhDHu[i] = eval ("this.w" + i);
i++;
}
languageLoaded = true;
}
};
var replyDataUpgradeValues = new LoadVars();
var sendDataUpgradeValues = new LoadVars();
sendDataUpgradeValues.sendAndLoad("upgradevalues.ini", replyDataUpgradeValues, "POST");
replyDataUpgradeValues.onLoad = function (success) {
if (success) {
i = 0;
while (eval ("this.sSpinnerCost" + i) != undefined) {
spinnerCosts[i] = eval ("this.sSpinnerCost" + i);
i++;
}
i = 0;
while (eval ("this.sPetCost" + i) != undefined) {
petCosts[i] = eval ("this.sPetCost" + i);
i++;
}
i = 0;
while (eval ("this.sMapSlotCost" + i) != undefined) {
mapSlotCosts[i] = eval ("this.sMapSlotCost" + i);
i++;
}
i = 0;
while (eval ("this.nPrize" + i) != undefined) {
prizes[i] = eval ("this.nPrize" + i);
i++;
}
numFreeSpinners = int(this.nNumFreeSpinners);
numFreeMapSlots = int(this.nNumFreeMapSlots);
upgradeValuesLoaded = true;
}
};
}
function selectRandomServerAndPort() {
var _local2 = 0;
var _local1 = 0;
while (_local1 < serverName.length) {
if ((serverType[_local1] == "STANDARD") && (serverLocale[_local1] == "US")) {
_local2++;
} else {
_local1 = serverName.length;
}
_local1++;
}
serverNum = random(_local2);
}
function savePreferences() {
myLSO = SharedObject.getLocal("xgenstickarenab");
if (myLSO.data.myObj == undefined) {
}
myObj = {};
myObj.objArray = new Array(5);
myObj.objArray[0] = optionQuality;
myObj.objArray[1] = SFXVolume;
myObj.objArray[2] = optionBlood;
myObj.objArray[3] = optionLanguageFilter;
myObj.objArray[4] = optionParticles;
myObj.objArray[5] = lqnJDL;
if (rememberUserName) {
myObj.objArray[6] = uName;
}
myObj.objArray[7] = rememberUserName;
myObj.objArray[8] = lastExpiryDialogueDate;
myObj.objArray[9] = clientBanned;
myObj.objArray[10] = banExpiryDate;
myLSO.data.myObj = myObj;
}
function loadPreferences() {
myLSO = SharedObject.getLocal("xgenstickarenab");
if (myLSO.data.myObj == undefined) {
} else {
optionQuality = myLSO.data.myObj.objArray[0];
SFXVolume = myLSO.data.myObj.objArray[1];
optionBlood = myLSO.data.myObj.objArray[2];
optionLanguageFilter = myLSO.data.myObj.objArray[3];
optionParticles = myLSO.data.myObj.objArray[4];
lqnJDL = myLSO.data.myObj.objArray[5];
if ((myLSO.data.myObj.objArray[6] != null) & (myLSO.data.myObj.objArray[6] != undefined)) {
uName = myLSO.data.myObj.objArray[6];
}
rememberUserName = myLSO.data.myObj.objArray[7];
lastExpiryDialogueDate = Number(myLSO.data.myObj.objArray[8]);
clientBanned = myLSO.data.myObj.objArray[9];
banExpiryDate = Number(myLSO.data.myObj.objArray[10]);
}
}
function displayPlayerName() {
playerNameMC.playerNameText0.htmlText = getColoredName(null, true);
playerNameMC.playerNameText1.text = (playerNameMC.playerNameText2.text = (playerNameMC.playerNameText3.text = (playerNameMC.playerNameText4.text = getName(null, true))));
var iconMC = getRankIconName(player.qkXZhl);
playerNameMC.attachMovie(iconMC, "rankIconMC", 10000);
with (playerNameMC.rankIconMC) {
_x = -26;
_y = 2;
_xscale = (_yscale = 125);
}
}
function chatKeyPressed() {
if (gameMode == 0) {
setGameMode(2);
chatMC._visible = true;
chatBtnMC.gotoAndStop(2);
optionsBtnMC._visible = false;
player.kkHBPP = (player.jhqRmc = false);
player.zqbdMm = true;
} else if (gameMode == 2) {
if ((getTimer() - player.vwRQbz) > jhEZws) {
chatMC._visible = false;
chatBtnMC.gotoAndStop(1);
optionsBtnMC._visible = true;
setGameMode(0);
if (chatMC.chatText0.text.length > 1) {
if (chatMC.chatText0.text.substr(0, 1) == "/") {
var _local1 = processSlashSyntaxCommand(chatMC.chatText0.text);
if (_local1 != "") {
addHUDMsg(">> " + _local1, ">> " + _local1, 8000);
}
} else if ((!checkSystemCommand(chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1))) && (isLegalChatString(chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1)))) {
player.vwRQbz = getTimer();
player.sendChatMsg(chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1));
}
qkRqyP("release", chatBtnMC, chatMC);
SFXBTNchat.start();
}
chatMC.chatText0.text = (chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = "_"))));
} else {
SFXBTNerror.start();
}
}
}
function optionsBtnPressed() {
player.kkHBPP = (player.jhPIDo = (player.jhqRmc = false));
player.zqbdMm = true;
setGameMode(3);
cursorNormal();
gotoAndStop ("optionsFrame");
}
function pressVoteKick(a) {
player.sendVoteKick(a);
voteKickID = a;
zqudUd = true;
voteKickVoted = true;
voteKickVoteCount = 1;
voteKickStartTime = qkLwJE;
voteKickInitiateTime = qkLwJE;
displayWarning(("<br><br>" + voteKickText[0]) + getColoredName(a), ("\r\r" + voteKickText[0]) + getName(a), vzHhen);
}
function pressReportUser(a) {
setGameMode(4);
reportUserID = a;
player.kkHBPP = (player.jhPIDo = (player.jhqRmc = false));
player.zqbdMm = true;
cursorNormal();
leadMC.removeMovieClip();
gotoAndStop ("reportFrame");
}
function updateGameState(a, w, k, de, n, ind, rs0, gs0, bs0, rs1, gs1, bs1, pet, rp0, gp0, bp0, rp1, gp1, bp1, rk) {
if (((((ind == undefined) || (ind == null)) || (ind == "")) || (ind < 0)) || (ind > 99)) {
ind = 0;
}
if (((((pet == undefined) || (pet == null)) || (pet == "")) || (pet < 0)) || (pet > 99)) {
pet = 0;
}
with (eval (("xqzCWxv.player" + a) + "MC")) {
if (nameMC.nameText.length == 0) {
nameMC.nameText.text = (nameMC.nameText2.text = (nameMC.nameText3.text = (nameMC.nameText4.text = n)));
changePlayerColor(a, rs0, gs0, bs0, ind, rs1, gs1, bs1, pet, rp0, gp0, bp0, rp1, gp1, bp1);
changePlayerWeapon(a, w);
if (textMC.localIdText.text != 0) {
addHUDMsg(getColoredName(a) + HUDText[0], getName(a) + HUDText[0], 5000);
}
}
}
eval (("xqzCWxv.player" + a) + "MC").kills = k;
eval (("xqzCWxv.player" + a) + "MC").vzqcYA = de;
eval (("xqzCWxv.player" + a) + "MC").rank = rk;
eval (("xqzCWxv.player" + a) + "MC").recievedGameState = true;
}
function updateWeaponSpawnTimers(wst) {
var _local1 = 0;
while (_local1 < currentArea.weaponSpawnPoints) {
if (currentArea.weaponSpawn[_local1].recievedRemoteTimer) {
currentArea.weaponSpawn[_local1].timer = int((currentArea.weaponSpawn[_local1].timer + wst[_local1]) / 2);
} else {
currentArea.weaponSpawn[_local1].timer = wst[_local1];
currentArea.weaponSpawn[_local1].recievedRemoteTimer = true;
}
_local1++;
}
}
function getRandomName() {
return(defaultFirstNames[random(defaultFirstNames.length)] + defaultLastNames[random(defaultLastNames.length)]);
}
function addPlayer(a) {
if (((!loggedIn) || (playerCount > 0)) || (new String(player.id) eq new String(a))) {
var lId = 0;
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] == 0) {
remotePlayers[i] = a;
lId = i;
i = maxNumPlayers;
}
i++;
}
xqzCWxv.attachMovie("characterMC", ("player" + a) + "MC", lId + 3000);
with (eval (("xqzCWxv.player" + a) + "MC")) {
textMC.idText.text = a;
textMC.localIdText.text = lId;
textMC._visible = displayPlayerIDs;
nameMC.nameText.text = (nameMC.nameText2.text = (nameMC.nameText3.text = (nameMC.nameText4.text = "")));
if (lId == 0) {
_alpha = 0;
_visible = false;
player.id = a;
}
}
if (lId != 0) {
player.sendGameState();
} else {
recieveJoinRoom();
}
playerCount++;
}
}
function removePlayer(a) {
if (playerCount > 0) {
addHUDMsg(getColoredName(a) + HUDText[1], getName(a) + HUDText[1], 5000);
var i = 0;
while (i < maxNumPlayers) {
if (new String(remotePlayers[i]) eq new String(a)) {
remotePlayers[i] = 0;
}
i++;
}
eval (("xqzCWxv.player" + a) + "MC").removeMovieClip();
eval (("xqzCWxv.indicator" + a) + "MC").removeMovieClip();
eval (("xqzCWxv.pet" + a) + "MC").removeMovieClip();
playerCount--;
}
}
function getLocalIDLobby(a) {
var _local1 = 0;
while (_local1 < maxNumPlayersLobby) {
if (new String(remotePlayersLobby[_local1][_serverID]) eq new String(a)) {
return(_local1);
}
_local1++;
}
return(-1);
}
function getLocalID(a) {
var _local1 = 0;
while (_local1 < maxNumPlayers) {
if (new String(remotePlayers[_local1]) eq new String(a)) {
return(_local1);
}
_local1++;
}
return(-1);
}
function getIDLobby(n) {
var _local1 = 0;
while ((remotePlayersLobby[_local1][1] != n) && (_local1 < maxNumPlayersLobby)) {
_local1++;
}
if (_local1 == maxNumPlayersLobby) {
return(null);
}
return(remotePlayersLobby[_local1][0]);
}
function addPlayerLobby(a) {
if (playerCountLobby > 0) {
var _local1 = 0;
while (remotePlayersLobby[_local1][0] != null) {
_local1++;
}
remotePlayersLobby[_local1] = new Array();
remotePlayersLobby[_local1][_serverID] = a;
remotePlayersLobby[_local1][_userName] = "";
remotePlayersLobby[_local1][_hexColor] = "#FFFFFF";
remotePlayersLobby[_local1][_kills] = 0;
remotePlayersLobby[_local1][_userLevel] = 0;
remotePlayersLobby[_local1][_isBallistick] = 0;
remotePlayersLobby[_local1][_deaths] = 0;
remotePlayersLobby[_local1][_wins] = 0;
remotePlayersLobby[_local1][_losses] = 0;
remotePlayersLobby[_local1][_roundsStarted] = 0;
}
playerCountLobby++;
}
function updatePlayerLobby(a, n, r, g, b, pk, pDeaths, pWins, pLosses, pRoundsStarted, isBallistick, uLevel) {
var _local1 = getLocalIDLobby(a);
if (lID == -1) {
}
remotePlayersLobby[_local1][_userName] = n;
remotePlayersLobby[_local1][_kills] = pk;
remotePlayersLobby[_local1][_isBallistick] = isBallistick;
remotePlayersLobby[_local1][_deaths] = pDeaths;
remotePlayersLobby[_local1][_wins] = pWins;
remotePlayersLobby[_local1][_losses] = pLosses;
remotePlayersLobby[_local1][_roundsStarted] = pRoundsStarted;
remotePlayersLobby[_local1][_userLevel] = uLevel;
if ((remotePlayersLobby[_local1][_userLevel] == 1) || ((RGBToNumber(r, g, b, 100) >= minPlayerColorValue) && (RGBToNumber(r, g, b, 100) <= maxPlayerColorValue))) {
remotePlayersLobby[_local1][_hexColor] = RGBToHex(r, g, b, 100);
} else {
remotePlayersLobby[_local1][_hexColor] = RGBToHex(222, 2, 2, 100);
}
if (currentTab == _lobby) {
populateUserBox();
if (reportLobbyConnects) {
addLobbyMsg((("[ " + getColoredNameLobby(_local1, false, false, true)) + lobbyText[0]) + " ]", (("[ " + remotePlayersLobby[_local1][_userName]) + lobbyText[0]) + " ]");
}
}
}
function removePlayerLobby(a) {
var _local2 = getLocalIDLobby(a);
if (currentTab == _lobby) {
if (reportLobbyConnects) {
addLobbyMsg((("[ " + getColoredNameLobby(_local2, false, false, true)) + lobbyText[1]) + " ]", (("[ " + remotePlayersLobby[_local2][1]) + lobbyText[1]) + " ]");
}
var _local1 = 0;
while ((userBox.getItemAt(_local1).label != remotePlayersLobby[_local2][1]) && (_local1 < userBox.length)) {
_local1++;
}
if (userBox.selectedIndex == _local1) {
infoText.htmlText = (infoText0.text = (info2Text.htmlText = (info2Text0.text = "")));
}
userBox.removeItemAt(_local1);
}
remotePlayersLobby[_local2] = null;
playerCountLobby--;
populateUserBox();
}
function playerSpawnDone(a) {
with (eval (("xqzCWxv.player" + a) + "MC")) {
xqPXnad._visible = 0;
xqlPkD._visible = 1;
xqQMWOK._visible = 1;
mod = "stand";
if (kills == undefined) {
kills = 0;
}
if (vzqcYA == undefined) {
vzqcYA = 0;
}
if (rank == undefined) {
rank = 1;
}
}
}
function qxoYNe(w) {
var _local1 = 0;
while (_local1 < Number(currentArea.weaponSpawnPoints)) {
if ((w == currentArea.weaponSpawn[_local1].qxBVxE) || (w == 0)) {
return(true);
}
_local1++;
}
return(false);
}
function tqmUsF(a, n) {
w = currentArea.weaponSpawn[n].qxBVxE;
var foundWeapon = qxoYNe(w);
if (foundWeapon || (!mapLoaded)) {
if (a != player.id) {
if (n != 9) {
eval (("xqzCWxv.pickup" + n) + "MC").removeMovieClip();
currentArea.weaponSpawn[n].timer = currentArea.weaponSpawn[n].delay;
x = eval (("xqzCWxv.player" + a) + "MC")._x + xqzCWxv._x;
y = eval (("xqzCWxv.player" + a) + "MC")._y + xqzCWxv._y;
adjustAndPlaySound(eval (("SFX" + weapons[w].attackAnim) + "Pickup"), x - xqOfED._x, y - xqOfED._y);
}
}
}
}
function qkJHCp(a, x, y, tr, w) {
var foundWeapon = qxoYNe(w);
if (foundWeapon) {
with (eval (("xqzCWxv.player" + a) + "MC")) {
var rnd = (random(weapons[w].variations) + 1);
xqQMWOK.gotoAndStop((weapons[w].attackAnim + "Attack") + rnd);
xqQMWOK.xqXsIpBu.gotoAndPlay(1);
xqQMWOK.xqXsIpBu.xqvbrGeIhaB._visible = 0;
xqQMWOK._rotation = tr;
tqRxvU = false;
if (textMC.localIdText.text != 0) {
if (optionParticles) {
attachParticles(weapons[w].particleAnim, weapons[w].attackAnim, _x, _y, xqQMWOK._rotation);
} else {
attachParticles(weapons[w].particleAnimLow, weapons[w].attackAnim, _x, _y, xqQMWOK._rotation);
}
adjustAndPlaySound(eval ((("SFX" + weapons[w].attackAnim) + (rnd - 1)) + "0")[textMC.localIdText.text], (x + xqzCWxv._x) - xqOfED._x, (y + xqzCWxv._y) - xqOfED._y);
vwVbMp(a, w);
}
}
}
}
function vwVbMp(a, w) {
startTime = getTimer();
if (player.mod != "dead") {
if (!player.kkNVHF) {
if (collisionCheckGhost) {
var xx = (eval (("xqzCWxv.player" + player.id) + "MC")._x + xqzCWxv._x);
var yy = (eval (("xqzCWxv.player" + player.id) + "MC")._y + xqzCWxv._y);
} else {
var xx = xqOfED._x;
var yy = xqOfED._y;
}
with (eval (("xqzCWxv.player" + a) + "MC")) {
var distance = (Math.pow((_x + xqzCWxv._x) - xx, 2) + Math.pow((_y + xqzCWxv._y) - yy, 2));
if (distance < 250000) {
if (weapons[w].range || (distance < 10000)) {
if ((((xqQMWOK.xqXsIpBu.xqvbrGeIhaB.hitTest(xx, yy, true) || (xqQMWOK.xqXsIpBu.xqvbrGeIhaB.hitTest(xx - 6, yy - 6, true))) || (xqQMWOK.xqXsIpBu.xqvbrGeIhaB.hitTest(xx - 6, yy + 6, true))) || (xqQMWOK.xqXsIpBu.xqvbrGeIhaB.hitTest(xx + 6, yy - 6, true))) || (xqQMWOK.xqXsIpBu.xqvbrGeIhaB.hitTest(xx + 6, yy + 6, true))) {
distance = Math.sqrt(distance);
var radAngle = Math.atan2((_y - yy) + xqzCWxv._y, (_x - xx) + xqzCWxv._x);
var deg = (Math.round((radAngle * 180) / Math.PI) - 90);
if (weapons[w].range) {
var collision = false;
var hitDistance = ((resolution = 10));
var gunLength = 30;
while (hitDistance < (distance - gunLength)) {
xHit = int(xx + (Math.cos(radAngle) * hitDistance));
yHit = int(yy + (Math.sin(radAngle) * hitDistance));
xTileHit = int(((xHit - xqzCWxv._x) / 50) + 0.5);
yTileHit = int(((yHit - xqzCWxv._y) / 50) + 0.5);
if (earth[xTileHit][yTileHit][3] == 3) {
collision = true;
hitDistance = distance;
}
hitDistance = hitDistance + resolution;
}
if (!collision) {
player.damage(weapons[w].damage, a, w, deg + weapons[w].deathRotation);
}
} else {
player.damage(weapons[w].damage, a, w, deg + weapons[w].deathRotation);
}
}
}
}
}
}
}
}
function playerDoneAttack(a) {
with (eval (("xqzCWxv.player" + a) + "MC")) {
tqRxvU = true;
if ((mod == "walk") && (!walk)) {
xqQMWOK.gotoAndStop(weapons[qxBVxE].runAnim + "Idle");
} else {
xqQMWOK.gotoAndStop(weapons[qxBVxE].idleAnim + "Idle");
}
}
}
function getName(a, localName) {
if (localName) {
return(player.vwYpkt);
}
if (eval (("xqzCWxv.player" + a) + "MC").textMC.localIdText.text != 0) {
if (eval (("xqzCWxv.player" + a) + "MC") != null) {
return(eval (("xqzCWxv.player" + a) + "MC").nameMC.nameText.text);
}
}
return(HUDText[3]);
}
function getColoredName(a, localName) {
if (localName) {
return(((("<FONT COLOR=\"" + player.hexColor) + "\">") + player.vwYpkt) + "</FONT>");
}
if (eval (("xqzCWxv.player" + a) + "MC").textMC.localIdText.text != 0) {
if (eval (("xqzCWxv.player" + a) + "MC") != null) {
return(((("<FONT COLOR=\"" + eval (("xqzCWxv.player" + a) + "MC").hexColor) + "\">") + eval (("xqzCWxv.player" + a) + "MC").nameMC.nameText.text) + "</FONT>");
}
}
return(((("<FONT COLOR=\"" + player.hexColor) + "\">") + HUDText[3]) + "</FONT>");
}
function getColoredNameLobby(lId, localName, bracketed, linkToFunction) {
var _local1;
if (!bracketed) {
if (localName) {
_local1 = ((("<FONT COLOR=\"" + remotePlayersLobby[0][_hexColor]) + "\">") + HUDText[3]) + "</FONT>";
} else {
_local1 = ((("<FONT COLOR=\"" + remotePlayersLobby[lId][_hexColor]) + "\">") + remotePlayersLobby[lId][1]) + "</FONT>";
}
} else if (localName) {
_local1 = ((("<FONT COLOR=\"" + remotePlayersLobby[0][_hexColor]) + "\"><") + HUDText[3]) + "></FONT>";
} else if (remotePlayersLobby[lId][4] == 1) {
_local1 = ((((("<<<FONT COLOR=\"" + remotePlayersLobby[lId][_hexColor]) + "\">") + remotePlayersLobby[lId][1]) + "<FONT COLOR=\"#FFFFFF\">") + ">") + ">";
} else {
_local1 = ((("<FONT COLOR=\"" + remotePlayersLobby[lId][_hexColor]) + "\"><") + remotePlayersLobby[lId][1]) + "></FONT>";
}
if (linkToFunction) {
_local1 = getLinkedNameLobby(lId, _local1);
}
return(_local1);
}
function getLinkedNameLobby(lId, str) {
return(((("<A HREF='asfunction:lobbyClickNameInChat," + remotePlayersLobby[lId][1]) + "'>") + str) + "</A>");
}
function getRankIconName(n) {
var _local1 = ("rank" + getRank(n)) + "MC";
return(_local1);
}
function getRank(n) {
var _local1 = 0;
while ((int(rankKills[_local1 + 1]) <= int(n)) && (_local1 < rankKills.length)) {
_local1++;
}
return(_local1);
}
function getKillsUntilNextRank(r, n) {
if (rankKills[r + 1] != undefined) {
return(new Number(rankKills[r + 1] - n).toString());
}
return(profileText[21]);
}
function remoteChatMsg(a, m) {
if (optionLanguageFilter) {
if (new String(player.id) eq new String(a)) {
} else {
m = zqfZXY(m);
}
}
if (getName(a) != undefined) {
if (isLegalChatString(m)) {
addHUDMsg(((getColoredName(a) + ": '") + m) + "'", ((getName(a) + ": '") + m) + "'", 8000);
}
}
}
function remoteChatMsgLobby(a, m, privateMessage) {
var _local1 = getLocalIDLobby(a);
var _local2 = 0;
while (_local2 < ignoreList.length) {
if (new String(ignoreList[_local2]) eq new String(remotePlayersLobby[_local1][1])) {
return(undefined);
}
_local2++;
}
if (optionLanguageFilter) {
if (new String(player.id) eq new String(a)) {
} else {
m = zqfZXY(m);
}
}
if (remotePlayersLobby[_local1][_userName].length > 0) {
if ((((m.length <= tqejzX) && (isLegalChatString(m))) || (m == ">VIP<")) || (m == ">UNVIP<")) {
if ((((a != lastChatSenderID) || ((getTimer() - lastChatMsgReceived) > (jhEZws / 2))) || (m == ">VIP<")) || (m == ">UNVIP<")) {
lastChatSenderID = a;
lastChatMsgReceived = getTimer();
if (privateMessage) {
SFXprivateMessage.start();
var _local4 = "#FFFF00";
if (m == ">VIP<") {
if (remotePlayersLobby[_local1][_isBallistick] == 1) {
if (remotePlayersLobby[_local1][4] == 1) {
addLobbyMsg(((lobbyText[50] + getColoredNameLobby(_local1, false, true, true)) + "' ") + colorHtml(lobbyText[51], _local4), ((((lobbyText[50] + "<<") + remotePlayersLobby[_local1][1]) + ">>") + "' ") + lobbyText[51]);
} else {
addLobbyMsg(((lobbyText[50] + getColoredNameLobby(_local1, false, true, true)) + "' ") + colorHtml(lobbyText[51], _local4), ((((lobbyText[50] + "<") + remotePlayersLobby[_local1][1]) + ">") + "' ") + lobbyText[51]);
}
}
} else if (m == ">UNVIP<") {
if (remotePlayersLobby[_local1][_isBallistick] == 1) {
if (remotePlayersLobby[_local1][4] == 1) {
addLobbyMsg(((lobbyText[50] + getColoredNameLobby(_local1, false, true, true)) + "' ") + colorHtml(lobbyText[52], _local4), ((((lobbyText[50] + "<<") + remotePlayersLobby[_local1][1]) + ">>") + "' ") + lobbyText[52]);
} else {
addLobbyMsg(((lobbyText[50] + getColoredNameLobby(_local1, false, true, true)) + "' ") + colorHtml(lobbyText[52], _local4), ((((lobbyText[50] + "<") + remotePlayersLobby[_local1][1]) + ">") + "' ") + lobbyText[52]);
}
}
} else {
lastPrivateMessageSenderID = a;
if (remotePlayersLobby[_local1][4] == 1) {
addLobbyMsg(((lobbyText[14] + getColoredNameLobby(_local1, false, true, true)) + " ") + m, (((lobbyText[14] + "<<") + remotePlayersLobby[_local1][1]) + ">> ") + m);
} else {
addLobbyMsg(((lobbyText[14] + getColoredNameLobby(_local1, false, true, true)) + " ") + m, (((lobbyText[14] + "<") + remotePlayersLobby[_local1][1]) + "> ") + m);
}
}
} else if (remotePlayersLobby[_local1][4] == 1) {
addLobbyMsg((getColoredNameLobby(_local1, false, true, true) + " ") + m, (("<<" + remotePlayersLobby[_local1][1]) + ">> ") + m);
} else {
addLobbyMsg((getColoredNameLobby(_local1, false, true, true) + " ") + m, (("<" + remotePlayersLobby[_local1][1]) + "> ") + m);
}
}
}
}
}
function qkZNAH(a, k) {
if (a != k) {
if (!zqudUd) {
voteKickID = k;
zqudUd = true;
voteKickVoteCount = 1;
voteKickStartTime = qkLwJE;
if (k != player.id) {
displayWarning(((("\r" + voteKickText[1]) + getColoredName(k)) + "\r") + voteKickText[2], ((("\r" + voteKickText[1]) + getName(k)) + "\r") + voteKickText[2], vzHhen);
}
} else {
voteKickVoteCount++;
if (voteKickVoteCount > (playerCount - voteKickVoteCount)) {
if (player.id == voteKickID) {
if (!qxXcDx) {
if (loggedIn) {
returnToLobby(voteKickText[3]);
} else {
qkxRrK("\r" + voteKickText[3], "title");
}
}
}
}
}
}
}
function vzGAhm(a, k, w, deg) {
if (a != k) {
x = eval (("xqzCWxv.player" + a) + "MC")._x + xqzCWxv._x;
y = eval (("xqzCWxv.player" + a) + "MC")._y + xqzCWxv._y;
animateDeath(("xqzCWxv.player" + a) + "MC", a, w, deg, eval (("xqzCWxv.player" + a) + "MC").lqbPCq, x, y);
setPetAnimation(("xqzCWxv.pet" + a) + "MC.subPetMC.petMC", "death");
setPetAnimation(("xqzCWxv.pet" + k) + "MC.subPetMC.petMC", "kill");
with (eval (("xqzCWxv.player" + a) + "MC")) {
vzqcYA++;
lqbPCq = 0;
nameMC._visible = 0;
mod = "dead";
rnd = random(weapons[w].killTextNum);
addHUDMsg(((getColoredName(k) + weapons[w].killTextPre[rnd]) + getColoredName(a)) + weapons[w].killTextPost[rnd], ((getName(k) + weapons[w].killTextPre[rnd]) + getName(a)) + weapons[w].killTextPost[rnd], 5000);
attachMovie("remoteDeathFX", "remoteDeathFX", 1202);
}
with (eval (("xqzCWxv.player" + k) + "MC")) {
kills++;
lqbPCq++;
}
if (k == player.id) {
player.addToScore(1);
setPetAnimation("xqOfED.charPetMC.subPetMC.petMC", "kill");
}
}
}
function zqiJTd(a, x, y) {
with (eval (("xqzCWxv.player" + a) + "MC")) {
animateSpawn("zqiJTd() called animateSpawn()");
_x = (absX = (lastUpdateX = x));
_y = (absY = (lastUpdateY = y));
nameMC._visible = 1;
if (textMC.localIdText.text != 0) {
adjustAndPlaySound(SFXspawn[textMC.localIdText.text], (_x + xqzCWxv._x) - xqOfED._x, (_y + xqzCWxv._y) - xqOfED._y);
}
attachMovie("remoteSpawnFX", "remoteSpawnFX", 1203);
eval (("xqzCWxv.indicator" + a) + "MC")._visible = true;
eval (("xqzCWxv.indicator" + a) + "MC")._x = _x;
eval (("xqzCWxv.indicator" + a) + "MC")._y = _y;
setPetAnimation(("xqzCWxv.pet" + a) + "MC.subPetMC.petMC", "idle");
eval (("xqzCWxv.pet" + a) + "MC")._visible = true;
eval (("xqzCWxv.pet" + a) + "MC")._x = _x;
eval (("xqzCWxv.pet" + a) + "MC")._y = _y;
}
}
function updateRemotePlayers() {
startTime = getTimer();
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("xqzCWxv.player" + remotePlayers[i]) + "MC")) {
if (newDataStr) {
newDataStr = false;
var senderID = newSocket.substr(0, IDLEN);
var msgBody = newSocket.substr(IDLEN, newSocket.length - IDLEN);
updatePlayer(senderID, Number(trim(msgBody.substr(0, 5))) / 10, Number(trim(msgBody.substr(5, 5))) / 10, msgBody.substr(10, 2), Boolean(Number(msgBody.substr(12, 1))), Boolean(Number(msgBody.substr(13, 1))), Number(trim(msgBody.substr(14, 5))) / 1000, Number(trim(msgBody.substr(19, 5))) / 1000, Number(trim(msgBody.substr(24, 3))), 0, Boolean(Number(msgBody.substr(27, 1))));
} else if (((textMC.localIdText.text != 0) || (collisionCheckGhost)) || (ghostAlpha != 0)) {
remotePlayerPrediction(remotePlayers[i]);
}
}
}
i++;
}
}
function changePlayerWeapon(a, w) {
with (eval (("xqzCWxv.player" + a) + "MC")) {
qxBVxE = w;
}
}
function changePlayerColor(a, sr0, sg0, sb0, spinnerNum, sr1, sg1, sb1, petNum, pr0, pg0, pb0, pr1, pg1, pb1) {
if (new String(player.id) eq new String(a)) {
} else {
var indMC = xqzCWxv.attachMovie("indicatorMC" + padStr(spinnerNum.toString(), 2), ("indicator" + a) + "MC", getLocalID(a) + 1500);
setCustomObject2Colors(indMC.subIndicatorMC.colorMC0, indMC.subIndicatorMC.colorMC1, sr0, sg0, sb0, sr1, sg1, sb1, 75);
var petBehaviorMC = xqzCWxv.attachMovie(("petBehavior" + petBehavior[petNum]) + "MC", ("pet" + a) + "MC", getLocalID(a) + 7000);
var petGraphicMC = petBehaviorMC.subPetMC.attachMovie("petMC" + padStr(petNum.toString(), 2), "petMC", 1, {_x:70, _y:-80});
petGraphicMC._xscale = (petGraphicMC._yscale = petScale);
setCustomObject2Colors(petGraphicMC.colorMC0, petGraphicMC.colorMC1, pr0, pg0, pb0, pr1, pg1, pb1, 100, true);
}
eval (("xqzCWxv.player" + a) + "MC").hexColor = RGBToHex(sr0, sg0, sb0, 100);
eval (("xqzCWxv.player" + a) + "MC").spinnerArray = new Array();
eval (("xqzCWxv.player" + a) + "MC").petArray = new Array();
with (eval (("xqzCWxv.player" + a) + "MC")) {
nameMC.nameTextC.htmlText = getColoredName(a);
spinnerArray[_num] = spinnerNum;
spinnerArray[_red0] = sr0;
spinnerArray[_green0] = sg0;
spinnerArray[_blue0] = sb0;
spinnerArray[_red1] = sr1;
spinnerArray[_green1] = sg1;
spinnerArray[_blue1] = sb1;
petArray[_num] = petNum;
petArray[_red0] = pr0;
petArray[_green0] = pg0;
petArray[_blue0] = pb0;
petArray[_red1] = pr1;
petArray[_green1] = pg1;
petArray[_blue1] = pb1;
}
}
function updatePlayer(a, x, y, f, m, wk, xV, yV, tr, trv, inv) {
startTime = getTimer();
with (eval (("xqzCWxv.player" + a) + "MC")) {
curTime = getTimer();
deltaTime = curTime - lastUpdate;
lastUpdate = curTime;
if (deltaTime > 20) {
lastRemoteAvgPing = remoteAvgPing;
remoteAvgPing = 0;
var i = (pingAvgPeriod - 1);
while (i > 0) {
deltaTimes[i] = deltaTimes[i - 1];
remoteAvgPing = remoteAvgPing + deltaTimes[i];
i--;
}
deltaTimes[0] = deltaTime;
remoteAvgPing = remoteAvgPing + deltaTime;
remoteAvgPing = int(remoteAvgPing / pingAvgPeriod);
if (((textMC.localIdText.text != 0) || (collisionCheckGhost)) || (ghostAlpha != 0)) {
absX = (lastUpdateX = x);
absY = (lastUpdateY = y);
facing = f;
kkHBPP = m;
walk = wk;
xVel = xV;
yVel = yV;
tRotVel = trv;
kkNVHF = inv;
absRot = tr;
if (serverType[serverNum] == "COMPATIBILITY") {
approximateFrameDelay = Math.round(((remoteAvgPing / frameDeltaTime) / 4) + 5);
} else {
approximateFrameDelay = Math.round((remoteAvgPing / 33) + 3);
}
if (mod != "dead") {
var i = 0;
while (i < approximateFrameDelay) {
xyVel = ygsfeyb(facing, walk, kkHBPP, xVel, yVel, qxBVxE);
xyVel = vnrysg(_x + xqzCWxv._x, _y + xqzCWxv._y, xyVel[0], xyVel[1]);
xyVel = ehbdybe(xyVel[0], xyVel[1], mod, kkHBPP);
xVel = xyVel[0];
yVel = xyVel[1];
vel = xyVel[2];
if (mod != "dead") {
mod = xyVel[3];
}
absX = absX + xVel;
absY = absY + yVel;
absRot = absRot + tRotVel;
_x = _x + ((absX - _x) / remoteSmoothing);
_y = _y + ((absY - _y) / remoteSmoothing);
i++;
}
eval (("xqzCWxv.indicator" + a) + "MC")._x = _x;
eval (("xqzCWxv.indicator" + a) + "MC")._y = _y;
eval (("xqzCWxv.pet" + a) + "MC")._x = _x;
eval (("xqzCWxv.pet" + a) + "MC")._y = _y;
}
xqQMWOK._rotation = smoothRot(xqQMWOK._rotation, absRot, remoteRotSmoothing);
frame = animatePlayer(("xqzCWxv.player" + a) + "MC", mod, walk, tqRxvU, qxBVxE, frame, vel, facing, inv);
}
}
}
}
function remotePlayerPrediction(a) {
startTime = getTimer();
if (a != undefined) {
with (eval (("xqzCWxv.player" + a) + "MC")) {
if (mod != "dead") {
var displayX = (_x + xqzCWxv._x);
var displayY = (_y + xqzCWxv._y);
if (displayX > -100) {
if (displayX < 650) {
if (displayY > -100) {
if (displayY < 500) {
_visible = 1;
xyVel = ygsfeyb(facing, walk, kkHBPP, xVel, yVel, qxBVxE);
xyVel = vnrysg(_x + xqzCWxv._x, _y + xqzCWxv._y, xyVel[0], xyVel[1]);
xyVel = ehbdybe(xyVel[0], xyVel[1], mod, kkHBPP);
xVel = xyVel[0];
yVel = xyVel[1];
vel = xyVel[2];
mod = xyVel[3];
absX = absX + xVel;
absY = absY + yVel;
absRot = absRot + tRotVel;
_x = _x + ((absX - _x) / remoteSmoothing);
_y = _y + ((absY - _y) / remoteSmoothing);
xqQMWOK._rotation = smoothRot(xqQMWOK._rotation, absRot, remoteRotSmoothing);
frame = animatePlayer(("xqzCWxv.player" + a) + "MC", mod, walk, tqRxvU, qxBVxE, frame, vel, facing, yfbstversv);
eval (("xqzCWxv.indicator" + a) + "MC")._visible = true;
eval (("xqzCWxv.indicator" + a) + "MC")._x = _x;
eval (("xqzCWxv.indicator" + a) + "MC")._y = _y;
eval (("xqzCWxv.pet" + a) + "MC")._visible = true;
eval (("xqzCWxv.pet" + a) + "MC")._x = _x;
eval (("xqzCWxv.pet" + a) + "MC")._y = _y;
} else {
eval (("xqzCWxv.indicator" + a) + "MC")._visible = false;
eval (("xqzCWxv.pet" + a) + "MC")._visible = false;
_visible = 0;
}
} else {
eval (("xqzCWxv.indicator" + a) + "MC")._visible = false;
eval (("xqzCWxv.pet" + a) + "MC")._visible = false;
_visible = 0;
}
} else {
eval (("xqzCWxv.indicator" + a) + "MC")._visible = false;
eval (("xqzCWxv.pet" + a) + "MC")._visible = false;
_visible = 0;
}
} else {
eval (("xqzCWxv.indicator" + a) + "MC")._visible = false;
eval (("xqzCWxv.pet" + a) + "MC")._visible = false;
_visible = 0;
}
}
}
}
}
function sendFunction() {
player.sendPosition();
}
function sendReportUser(userID) {
socket[serverNum].send("07" + userID);
}
function sendModeratorWarn(userID, userMsg) {
socket[serverNum].send(("0g" + userID) + userMsg);
}
function sendModeratorBan(banUserName, banPeriod, userMsg) {
socket[serverNum].send((((("0f" + banUserName) + ";") + banPeriod) + ";") + userMsg);
}
function sendModeratorIDBan(banServerID, banPeriod, userMsg) {
socket[serverNum].send((((("0e" + banServerID) + ";") + banPeriod) + ";") + userMsg);
}
function recieveRoomList(roomList) {
var _local5 = arenaBox.getItemAt(arenaBox.selectedIndex).data;
var _local4 = false;
var _local3 = false;
roomCountLobby = 0;
roomsLobby = new Array();
arenaBox.removeAll();
while (roomList.length > 1) {
var _local1 = 0;
while ((roomList.charAt(_local1) != ";") && (_local1 < roomList.length)) {
_local1++;
}
roomStr = roomList.substr(0, _local1);
roomList = roomList.substr(_local1 + 1, (roomList.length - _local1) - 1);
roomsLobby[roomCountLobby] = new Array();
roomsLobby[roomCountLobby][2] = roomStr;
if (gameArea == _areaLobby) {
if (getRoomDisplayName(roomsLobby[roomCountLobby][2]) == lobbyRoomName) {
_local4 = true;
} else {
addRoomToArenaBox(getRoomDisplayName(roomsLobby[roomCountLobby][2]), roomsLobby[roomCountLobby][2], roomIsBallistick(roomsLobby[roomCountLobby][2]));
}
if (roomsLobby[roomCountLobby][2] == _local5) {
arenaBox.selectedIndex = arenaBox.length - 1;
}
} else if ((gameArea == _areaTitleScreen) && (getRoomDisplayName(roomsLobby[roomCountLobby][2]) != lobbyRoomName)) {
_local3 = true;
roomList = null;
joinRoomName = roomsLobby[roomCountLobby][2].substr(0, roomsLobby[roomCountLobby][2].length - 1);
sendRoomDetailRequest(roomsLobby[roomCountLobby][2].substr(0, roomsLobby[roomCountLobby][2].length - 1), "joinRoomQuickStart");
}
roomCountLobby++;
}
if (gameArea == _areaLobby) {
lobbySelectArena();
if (currentRoomName != lobbyRoomName) {
if (_local4) {
sendJoinRoom(lobbyRoomName);
} else {
sendCreateRoomBallistick("Z", 9, 0, lobbyRoomName.substr(0, 1), 0, "");
}
}
} else if ((gameArea == _areaTitleScreen) && (!_local3)) {
createQuickStartRoom();
}
}
function addRoomToArenaBox(n, d, isBallistick) {
if (isBallistick) {
var _local1 = "roomBallistickLobbyMC";
var _local2 = "ffffff";
} else {
var _local1 = "roomNormalLobbyMC";
var _local2 = "000000";
}
arenaBox.addItem({label:n, data:d, icon:_local1});
styleObj = new Object();
styleObj.backgroundColor = Number("0x" + _local2);
arenaBox.setPropertiesAt(arenaBox.length - 1, styleObj);
}
function recieveRoomDetail(roomDetail) {
if (roomDetailAction == "joinRoomQuickStart") {
joinRoomDetail = roomDetail;
sendGetRoomVariable(joinRoomName + ";mp", roomDetailAction);
} else if (roomDetailAction == "lobbyDisplayRoomDetail") {
joinRoomDetail = roomDetail;
sendGetRoomVariable(joinRoomName + ";mp", roomDetailAction);
} else if (roomDetailAction == "updateRoundTime") {
lastRoundTimerUpdate = (qkLwJE = Number((roomDetail.substr(3, roomDetail.length - 3) - vwkowU) - zqBqOQ));
} else if ((roomDetailAction == "lobbyJoinGame") || "lobbyJoinGamePrivate") {
joinRoomDetail = roomDetail;
sendGetRoomVariable(joinRoomName + ";mp", roomDetailAction);
}
}
function recieveRoomVariable(vStr) {
var _local2 = vStr.substr(0, 2);
if (_local2 == "mp") {
if (roomVariableAction == "joinRoomQuickStart") {
roomVariableAction = null;
mapCycleList = vStr.substr(3, vStr.length - 3);
joinRoomQuickStart(vStr.substr(3, 1), Number(joinRoomDetail.substr(1, 1)), joinRoomName);
} else if (roomVariableAction == "lobbyDisplayRoomDetail") {
roomVariableAction = null;
mapCycleList = vStr.substr(3, vStr.length - 3);
lobbyDisplayRoomDetail(vStr.substr(3, 1), joinRoomDetail.substr(1, 1), joinRoomDetail.substr(2, 1), joinRoomDetail.substr(3, joinRoomDetail.length - 3), !containsOnlyClassicMaps(mapCycleList), containsCustomMaps(mapCycleList));
if (containsCustomMaps(mapCycleList)) {
sendGetRoomVariable(joinRoomName + ";rc", roomDetailAction);
}
} else if ((roomVariableAction == "lobbyJoinGame") || (roomVariableAction == "lobbyJoinGamePrivate")) {
var _local3 = Number(joinRoomDetail.substr(2, 1));
if (_local3 < maxNumPlayers) {
mapCycleList = vStr.substr(3, vStr.length - 3);
mapNum = charToNumCaseSensitive(vStr.substr(3, 1));
roomCycleMode = Number(joinRoomDetail.substr(1, 1));
if (!containsOnlyClassicMaps(mapCycleList)) {
sendGetRoomVariable(joinRoomName + ";rc", roomDetailAction);
} else {
lobbyJoinGame();
}
} else {
displayLobbyMessage(lobbyText[70], "window304JoinGameMessageMC");
}
}
} else if (_local2 == "rc") {
if ((roomVariableAction == "lobbyJoinGame") || (roomVariableAction == "lobbyJoinGamePrivate")) {
roomVariableAction = null;
roomCreatorUserName = vStr.substr(3, vStr.length - 3);
lobbyJoinGame();
} else if (roomVariableAction == "lobbyDisplayRoomDetail") {
displayCustomRoomNameOnArrival = true;
APISendMapListRequest(vStr.substr(3, vStr.length - 3));
}
}
}
function recieveReportUser(userIP) {
if (gameArea == _areaPlaying) {
if (reportAction == "displayIP") {
reportAction = null;
reportInputText.text = "IP Address:" + userIP;
} else if (reportAction == "printIP") {
reportAction = null;
addHUDMsg(((".::SYSTEM: " + getColoredName(reportUserID)) + ": ") + userIP, ((".::SYSTEM: " + getName(reportUserID)) + ": ") + userIP, 30000);
} else {
var replyDataPHP = new LoadVars();
var _local1 = new LoadVars();
_local1.action = "report_player";
_local1.reporter_username = player.vwYpkt;
_local1.reported_username = getName(reportUserID);
_local1.reported_ip = userIP;
_local1.msg = reportInputText.text;
_local1.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
reportUserPressClose();
}
};
reportInputText.text = ((("Reporting " + getName(reportUserID)) + " (") + userIP) + ")...";
}
} else if (gameArea == _areaLobby) {
if (reportAction == "printIP") {
reportAction = null;
var _local3 = getLocalIDLobby(reportUserID);
addLobbyMsg(((".::SYSTEM: " + getColoredNameLobby(_local3, false, false, true)) + ": ") + userIP, ((".::SYSTEM: " + remotePlayersLobby[_local3][1]) + ": ") + userIP);
} else if (reportAction == "banIP") {
reportAction = null;
}
}
}
function recieveModeratorWarn(m) {
_root.attachMovie("window304ModeratorMessageMC", "windowModeratorMessageMC", 200009);
windowModeratorMessageMC._x = 143;
windowModeratorMessageMC._y = 95;
windowModeratorMessageMC.msgText0.text = (windowModeratorMessageMC.msgText1.text = (((lobbyText[58] + "\r") + "\"") + m) + "\"");
}
function recieveModeratorBan(banPeriod, m) {
if (banPeriod >= modBanTimes[3]) {
var _local1 = new Date();
banDate = _local1.getDate();
clientBanned = true;
savePreferences();
}
qkxRrK(((((((lobbyText[59] + formatTime(banPeriod)) + lobbyText[57]) + "\r") + lobbyText[60]) + "\"") + m) + "\"", "title");
}
function recieveServerNotFull() {
if (connectAction == "quickStart") {
connectAction = null;
sendRoomListRequest();
} else if (connectAction == "lobby") {
player.sendAuthentication();
connectAction = null;
} else if (connectAction == "lobbyChangeServer") {
socket[serverNum].close();
connectAction = null;
serverNum = joinServerNum;
player.sendAuthentication();
} else if (connectAction == "authenticate") {
_root.attachMovie("window200LoginMsgMC", "window2MC", 200001, {_x:175, _y:199});
window2MC.msgText0.text = (window2MC.msgText1.text = ((((logInText[8] + "\r") + "\r") + "(") + serverName[serverNum]) + ")");
player.sendAuthentication();
}
}
function recieveCustomMapList(dataStr) {
if (dataStr.length > 0) {
var customMapArray = dataStr.split(";");
} else {
var customMapArray = new Array();
}
if (currentTab == _lobby) {
currentEditorMapListUserName = lastRequestedMapListUserName;
mapListCustom = new Array();
var index = 0;
while (index < customMapArray.length) {
if (customMapArray[index] != "") {
mapListCustom[index] = customMapArray[index];
}
index++;
}
if (lastRequestedMapListUserName == uName) {
customMapListCurrent = true;
} else {
customMapListCurrent = false;
}
if (displayCustomMapsOnArrival) {
displayCustomMapsOnArrival = false;
addCustomMapsToMapListBox();
} else if (displayCustomRoomNameOnArrival) {
displayCustomRoomNameOnArrival = false;
if ((lastDetailRequestedObjectName == lastSelectedObjectName) && (lastSelectedObjectType == _arena)) {
var veryShortWhiteSpace = " ";
var hc = "#FFA8FD";
info2Text.htmlText = info2Text.htmlText.concat((veryShortWhiteSpace + colorHtml(lobbyText[67], hc)) + colorHtml(customMapArray[charToNumCaseSensitive(roomDetailDisplayMapID) - 31], hc));
info2Text0.text = info2Text0.text.concat((("\r" + veryShortWhiteSpace) + lobbyText[67]) + customMapArray[charToNumCaseSensitive(roomDetailDisplayMapID) - 31]);
}
}
} else if (currentTab == _editor) {
if ((editMode == _modeSaveMap) && (Number(player.qxeXqu) > 0)) {
mapListCustom = new Array();
var index = 0;
while (index < Number(player.qxeXqu)) {
if ((customMapArray[index] == "") || (customMapArray[index] == undefined)) {
mapListCustom[index] = editorText[49];
} else {
mapListCustom[index] = customMapArray[index];
}
index++;
}
showSaveMapTextBoxes(true);
updateMapSlotsEditor();
} else if (dataStr.length > 0) {
currentEditorMapListUserName = lastRequestedMapListUserName;
mapListCustom = new Array();
if (lastRequestedMapListUserName == uName) {
var index = 0;
while (index < Number(player.qxeXqu)) {
if ((customMapArray[index] == "") || (customMapArray[index] == undefined)) {
mapListCustom[index] = editorText[49];
} else {
mapListCustom[index] = customMapArray[index];
}
index++;
}
} else {
var index = 0;
while (index < customMapArray.length) {
if (customMapArray[index] == "") {
mapListCustom[index] = editorText[49];
} else {
mapListCustom[index] = customMapArray[index];
}
index++;
}
}
showLoadMapTextBoxes(true);
updateMapSlotsEditor();
} else {
var i = 0;
while (i < maxMapSlots) {
if (mapListCustom.length > i) {
var n = 0;
while (n < 2) {
with (eval (("windowMC.mapName" + i.toString()) + n.toString())) {
text = mapListCustom[i];
}
n++;
}
}
i++;
}
if (lastRequestedMapListUserName != uName) {
displayLoadMapMessage(editorText[69]);
} else {
displayLoadMapMessage(editorText[51]);
}
}
} else if (currentTab == _shop) {
var index = 0;
while (index < Number(player.qxeXqu)) {
if ((customMapArray[index] == "") || (customMapArray[index] == undefined)) {
mapListCustom[index] = editorText[49];
} else {
mapListCustom[index] = customMapArray[index];
}
index++;
}
updateMapSlotsShop();
}
}
function recieveOwnedItemList(dataStr) {
player.qxeXqu = 0;
player.spinners = [];
player.pets = [];
if (dataStr.length > 0) {
var _local2 = dataStr.split(";");
} else {
var _local2 = new Array();
}
var _local1 = 0;
while (_local1 < _local2.length) {
var _local4 = new Array();
var _local3 = new Array();
var _local5 = new Array();
var _local6 = Number(trim(_local2[_local1].substr(0, 3)));
var _local7 = Boolean(Number(_local2[_local1].substr(3, 1)));
_local4[0] = Number(trim(_local2[_local1].substr(4, 3)));
_local3[0] = Number(trim(_local2[_local1].substr(7, 3)));
_local5[0] = Number(trim(_local2[_local1].substr(10, 3)));
_local4[1] = Number(trim(_local2[_local1].substr(13, 3)));
_local3[1] = Number(trim(_local2[_local1].substr(16, 3)));
_local5[1] = Number(trim(_local2[_local1].substr(19, 3)));
var _local8 = _local2[_local1].substr(22, _local2[_local1].length - 22);
if (_local6 >= 240) {
player.qxeXqu = Number(player.qxeXqu) + 1;
} else if (_local6 >= 200) {
if (_local7) {
profileSelectedPet = (player.lqJoDN = player.pets.length);
}
player.pets[player.pets.length] = {num:_local6 - 200, red0:_local4[0], green0:_local3[0], blue0:_local5[0], red1:_local4[1], green1:_local3[1], blue1:_local5[1], itemID:_local8};
} else if (_local6 >= 100) {
if (_local7) {
profileSelectedSpinner = (player.vzpVuQ = player.spinners.length);
}
player.spinners[player.spinners.length] = {num:_local6 - 100, red0:_local4[0], green0:_local3[0], blue0:_local5[0], red1:_local4[1], green1:_local3[1], blue1:_local5[1], itemID:_local8};
}
_local1++;
}
if (gameArea == _areaPlaying) {
updateLocalPlayerSpinnerAndPet();
} else if (currentTab == _profile) {
recieveOwnedItemListProfile();
} else if (currentTab == _shop) {
recieveOwnedItemListShop();
}
}
function receiveAuthentication(dataStr) {
var _local9 = dataStr.substr(0, IDLEN);
var _local4 = dataStr.substr(IDLEN, dataStr.length - IDLEN);
var _local11 = _local4.substr(38, _local4.length - 38);
var _local2 = _local11.split(";");
player.vwYpkt = trimPoundSign(_local4.substr(0, 20));
var _local3 = new Object();
_local3 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"75", ab:"0"};
_local3.rb = Number(trim(_local4.substr(20, 3)));
_local3.gb = Number(trim(_local4.substr(23, 3)));
_local3.bb = Number(trim(_local4.substr(26, 3)));
player.col = _local3;
player.hexColor = RGBToHex(_local3.rb, _local3.gb, _local3.bb, 100);
player.id = _local9;
player.qkXZhl = int(_local2[0]);
player.pDeaths = int(_local2[1]);
player.pWins = int(_local2[2]);
player.pLosses = int(_local2[3]);
player.pRoundsStarted = int(_local2[4]);
player.vzTkeo = Boolean(int(_local2[5]));
var _local6 = int(_local2[6]);
ticketWaiting = Boolean(int(_local2[7]));
player.qkLWaY = int(_local2[8]);
player.userLevel = int(_local2[9]);
if (Boolean(player.vzTkeo)) {
getURL ("javascript:hideTower();");
}
adminMsgHtml = swapStrings(adminMsgHtml, "_username", (("username=" + uName) + "&RID=") + random(100000).toString());
if (ticketWaiting) {
tabSystemMC.tabShopMC.tabShopGlowMC.gotoAndStop("glow");
}
if (authenticateAction == "lobby") {
windowMC.removeMovieClip();
window2MC.removeMovieClip();
initializeRemotePlayersLobby();
SFXSATheme.stop();
SFXLobby.start();
var _local10 = getRainbowHtml(adminMsgHtml);
var _local5 = "#EFEFFF";
addLobbyMsg(_local10 + colorHtml(adminMsgHtml.substr(33, adminMsgHtml.length - 10), _local5), adminMsgText);
_local5 = "#A8D3FF";
addLobbyMsg(((((colorHtml(lobbyText[2], _local5) + colorHtml(lobbyText[3], _local5)) + colorHtml(serverName[serverNum], _local5)) + colorHtml(lobbyText[4], _local5)) + getColoredNameLobby(0, false, false, true)) + colorHtml(lobbyText[5], _local5), ((((lobbyText[2] + lobbyText[3]) + serverName[serverNum]) + lobbyText[4]) + remotePlayersLobby[0][1]) + lobbyText[5]);
if (Boolean(player.vzTkeo) && (_local6 <= passExpiryDialogueThreshhold)) {
var _local7 = new Date();
if (_local7.getDate() != lastExpiryDialogueDate) {
lastExpiryDialogueDate = _local7.getDate();
savePreferences();
_root.attachMovie("window304AccountExpiryNotificationMC", "windowAccountExpiryMC", 200005);
windowAccountExpiryMC._x = 123;
windowAccountExpiryMC._y = 75;
windowAccountExpiryMC.msgText0.text = (windowAccountExpiryMC.msgText1.text = (((((lobbyText[56] + uName) + lobbyText[57]) + "\r") + lobbyText[54]) + _local6) + lobbyText[55]);
}
}
enterLobby();
} else if (authenticateAction == "lobbyChangeServer") {
pressChangeServerClose();
lobbyChangeServer();
initializeRemotePlayersLobby();
SFXLobby.start();
var _local5 = "#A8D3FF";
addLobbyMsg(((((colorHtml(lobbyText[2], _local5) + colorHtml(lobbyText[3], _local5)) + colorHtml(serverName[serverNum], _local5)) + colorHtml(lobbyText[4], _local5)) + getColoredNameLobby(0, false, false, true)) + colorHtml(lobbyText[5], _local5), ((((lobbyText[2] + lobbyText[3]) + serverName[serverNum]) + lobbyText[4]) + remotePlayersLobby[0][1]) + lobbyText[5]);
populateUserBox();
}
authenticateAction = null;
}
function initializeRemotePlayersLobby() {
remotePlayersLobby = new Array();
remotePlayersLobby[0] = new Array();
remotePlayersLobby[0][_serverID] = player.id;
remotePlayersLobby[0][_userName] = player.vwYpkt;
remotePlayersLobby[0][_hexColor] = player.hexColor;
remotePlayersLobby[0][_kills] = player.qkXZhl;
remotePlayersLobby[0][_userLevel] = player.userLevel;
remotePlayersLobby[0][_isBallistick] = Boolean(player.vzTkeo);
remotePlayersLobby[0][_deaths] = player.pDeaths;
remotePlayersLobby[0][_wins] = player.pWins;
remotePlayersLobby[0][_losses] = player.pLosses;
remotePlayersLobby[0][_roundsStarted] = player.pRoundsStarted;
playerCountLobby = 0;
}
function addPlayerToUserBox(n, hexColor, userLevel, pk, isBallistick, selectUser) {
if (isBallistick) {
var _local1 = getRankIconName(pk).concat("LobbyBallistick");
} else {
var _local1 = getRankIconName(pk).concat("Lobby");
}
if (userLevel == 1) {
var _local1 = "rankMMCLobby";
}
userBox.addItem({label:n, icon:_local1});
styleObj = new Object();
styleObj.backgroundColor = Number("0x" + hexColor.substr(1, hexColor.length - 1));
userBox.setPropertiesAt(userBox.length - 1, styleObj);
if (selectUser) {
userBox.selectedIndex = userBox.length - 1;
}
}
function recieveJoinRoom() {
if (joinRoomAction == "sendMapCycleList") {
joinRoomAction = null;
sendSetRoomVariable("mp=" + mapCycleList);
}
}
function recieveError(errorCode) {
if (errorCode == "0") {
if ((connectAction == "quickStart") || (connectAction == "lobby")) {
socket[serverNum].close();
serverConnectTrys[serverNum]++;
var _local3 = serverNum;
var _local1 = 0;
while (_local1 < serverName.length) {
if ((int(serverPing[_local1] + (serverConnectTrys[_local1] * 100)) < int(serverPing[serverNum] + (serverConnectTrys[serverNum] * 100))) && (int(serverPing[_local1]) != 0)) {
serverNum = _local1;
}
_local1++;
}
if (_local3 != serverNum) {
connectToServer(serverNum, serverNum);
} else {
connectAction = null;
gotoFrame = "titleFrame";
msgText = serversFullText;
gotoAndStop ("preReturnFrame");
}
} else if (connectAction == "lobbyChangeServer") {
socket[joinServerNum].close();
connectAction = null;
displayLobbyMessage(lobbyText[34], "window304ChangeServerMessageMC");
}
} else if (errorCode == "3") {
qkxRrK("\r" + lobbyText[62], "title");
} else if (gameArea == _areaPlaying) {
if (loggedIn) {
if (errorCode == "2") {
if (Boolean(player.vzTkeo)) {
returnToLobby(lobbyText[68]);
} else {
returnToLobby(lobbyText[61]);
}
} else if (errorAction == null) {
returnToLobby(lobbyText[32]);
lobbySelectServerPerform();
} else if (errorAction == "createGameFail") {
returnToLobby(lobbyText[63]);
lobbySelectServerPerform();
}
} else {
titleAction = "quickStart";
returnToTitle();
}
} else if (gameArea == _areaTitleScreen) {
socket[serverNum].close();
if (errorAction == "login") {
errorAction = null;
pressLogIn();
showLogInTextBoxes(false);
if (errorCode == "1") {
displayLogInMessage(logInText[10]);
} else {
displayLogInMessage(logInText[3]);
}
} else if (errorAction == "createAccount") {
errorAction = null;
pressCreateAccount();
showAccountTextBoxes(false);
displayCreateAccountMessage(logInText[13]);
}
}
}
function getRoomDisplayName(n) {
if (n.substr(0, 1) == "!") {
n = "Quick Start " + n.substr(1, n.length - 1);
}
return(n.substr(0, n.length - 1));
}
function getRoomDisplayNameInGame(n) {
if (n.substr(0, 1) == "!") {
n = "Quick Start " + n.substr(1, n.length - 1);
}
return(n);
}
function joinRoomQuickStart(mapID, cycleMode, roomName) {
roomCycleMode = cycleMode;
mapNum = charToNumCaseSensitive(mapID);
sendJoinRoom(roomName);
startNextRound(true);
}
function createQuickStartRoom() {
if (serverType[serverNum] == "COMPATIBILITY") {
var _local1 = qxojNK(random(numClassicMapsCompat));
} else {
var _local1 = qxojNK(random(numClassicMaps));
}
mapCycleList = getMapCycleList(_local1, 1, true, false, false, false);
joinRoomAction = "sendMapCycleList";
sendCreateRoomBallistick(_local1, 1, 0, "!" + random(100000).toString(), 0, "");
startNextRound(true);
}
function getMapCycleList(map, cycleMode, includeClassicMaps, includeBallistickMaps, includeCustomMaps, includeFeatureMaps) {
var _local5 = "";
if (cycleMode == 0) {
var _local1 = "";
if (serverType[serverNum] == "COMPATIBILITY") {
var _local4 = 0;
while (_local4 < mapListCompat.length) {
if (((_local4 < numClassicMapsCompat) && (includeClassicMaps)) || ((_local4 >= numClassicMapsCompat) && (includeBallistickMaps))) {
_local1 = _local1 + qxojNK(_local4);
}
_local4++;
}
} else {
var _local4 = 0;
while (_local4 < mapList.length) {
if (((_local4 < numClassicMaps) && (includeClassicMaps)) || ((_local4 >= numClassicMaps) && (includeBallistickMaps))) {
_local1 = _local1 + qxojNK(_local4);
}
_local4++;
}
}
if (includeFeatureMaps) {
var _local4 = 0;
while (_local4 < featureMapList.length) {
_local1 = _local1 + qxojNK(_local4 + 42);
_local4++;
}
}
if (includeCustomMaps) {
var _local4 = 0;
while (_local4 < player.qxeXqu) {
_local1 = _local1 + qxojNK(_local4 + 31);
_local4++;
}
}
sIndex = _local1.indexOf(map);
_local5 = _local1.substr(sIndex, _local1.length - sIndex) + _local1.substr(0, sIndex);
} else if (cycleMode == 1) {
var _local1 = "";
if (serverType[serverNum] == "COMPATIBILITY") {
var _local4 = 0;
while (_local4 < mapListCompat.length) {
if (((_local4 < numClassicMapsCompat) && (includeClassicMaps)) || ((_local4 >= numClassicMapsCompat) && (includeBallistickMaps))) {
_local1 = _local1 + qxojNK(_local4);
}
_local4++;
}
} else {
var _local4 = 0;
while (_local4 < mapList.length) {
if (((_local4 < numClassicMaps) && (includeClassicMaps)) || ((_local4 >= numClassicMaps) && (includeBallistickMaps))) {
_local1 = _local1 + qxojNK(_local4);
}
_local4++;
}
}
if (includeFeatureMaps) {
var _local4 = 0;
while (_local4 < featureMapList.length) {
_local1 = _local1 + qxojNK(_local4 + 42);
_local4++;
}
}
if (includeCustomMaps) {
var _local4 = 0;
while (_local4 < player.qxeXqu) {
_local1 = _local1 + qxojNK(_local4 + 31);
_local4++;
}
}
var _local6 = _local1.length;
var _local4 = 0;
while (_local4 < _local6) {
rand = random(_local1.length);
_local5 = _local5 + _local1.substr(rand, 1);
_local1 = _local1.substr(0, rand) + _local1.substr(rand + 1, (_local1.length - rand) - 1);
_local4++;
}
sIndex = _local5.indexOf(map);
_local5 = _local5.substr(sIndex, _local5.length - sIndex) + _local5.substr(0, sIndex);
} else if (cycleMode == 2) {
_local5 = map.concat(map);
}
return(_local5);
}
function containsOnlyClassicMaps(mList) {
var _local1 = 0;
while (_local1 < mList.length) {
if (((charToNumCaseSensitive(mList.substr(_local1, 1)) >= numClassicMapsCompat) && (serverType[serverNum] == "COMPATIBILITY")) || ((charToNumCaseSensitive(mList.substr(_local1, 1)) >= numClassicMaps) && (serverType[serverNum] != "COMPATIBILITY"))) {
return(false);
}
_local1++;
}
return(true);
}
function containsCustomMaps(mList) {
var _local1 = 0;
while (_local1 < mList.length) {
if ((charToNumCaseSensitive(mList.substr(_local1, 1)) >= 31) && (charToNumCaseSensitive(mList.substr(_local1, 1)) < 42)) {
return(true);
}
_local1++;
}
return(false);
}
function roomIsBallistick(rName) {
return(Boolean(Number(rName.substr(rName.length - 1, 1))));
}
function socketCalls() {
while (socketStack[0] != null) {
dataStr = socketStack.pop();
var _local2 = dataStr.substr(0, IDLEN);
var _local4 = dataStr.substr(IDLEN, 1);
var _local1 = dataStr.substr(IDLEN + 1, dataStr.length - (IDLEN + 1));
if (_local4 == "4") {
qkJHCp(_local2, Number(trim(_local1.substr(0, 4))), Number(trim(_local1.substr(4, 4))), Number(trim(_local1.substr(8, 3))), charToNum(_local1.substr(11, 1)));
changePlayerWeapon(_local2, charToNum(_local1.substr(11, 1)));
} else if (_local4 == "6") {
remotePlayerDamage(_local2, Number(trim(_local1.substr(0, 2))), charToNum(_local1.substr(2, 1)), Number(trim(_local1.substr(3, 3))));
} else if (_local4 == "5") {
changePlayerWeapon(_local2, charToNum(_local1.substr(0, 1)));
tqmUsF(_local2, Number(_local1.substr(1, 1)));
} else if (_local4 == "7") {
vzGAhm(_local2, _local1.substr(0, IDLEN), charToNum(_local1.substr(IDLEN, 1)), Number(trim(_local1.substr(IDLEN + 1, 3))));
} else if (_local4 == "8") {
zqiJTd(_local2, Number(trim(_local1.substr(0, 4))), Number(trim(_local1.substr(4, 4))));
} else if (_local4 == "9") {
remoteChatMsg(_local2, _local1);
} else if (_local4 == "2") {
var _local5 = new Array();
var _local3 = 0;
while (_local3 < currentArea.weaponSpawnPoints) {
_local5[_local3] = Number(trim(_local1.substr(_local3 * 5, 5)));
_local3++;
}
updateWeaponSpawnTimers(_local5);
} else if (_local4 == "K") {
qkZNAH(_local2, _local1.substr(0, IDLEN));
} else if (_local4 == "U") {
updateGameState(_local2, charToNum(_local1.substr(0, 1)), Number(trim(_local1.substr(1, 2))), Number(trim(_local1.substr(3, 2))), trimPoundSign(_local1.substr(5, 20)), Number(trim(_local1.substr(25, 2))), Number(trim(_local1.substr(27, 3))), Number(trim(_local1.substr(30, 3))), Number(trim(_local1.substr(33, 3))), Number(trim(_local1.substr(36, 3))), Number(trim(_local1.substr(39, 3))), Number(trim(_local1.substr(42, 3))), Number(trim(_local1.substr(45, 2))), Number(trim(_local1.substr(47, 3))), Number(trim(_local1.substr(50, 3))), Number(trim(_local1.substr(53, 3))), Number(trim(_local1.substr(56, 3))), Number(trim(_local1.substr(59, 3))), Number(trim(_local1.substr(62, 3))), getRank(Number(trim(_local1.substr(65, _local1.length - 65)))));
}
}
}
function socketCallsSummary() {
while (socketStack[0] != null) {
dataStr = socketStack.pop();
var _local5 = dataStr.substr(0, IDLEN);
var _local4 = dataStr.substr(IDLEN, 1);
var _local1 = dataStr.substr(IDLEN + 1, dataStr.length - (IDLEN + 1));
if (_local4 == "2") {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < currentArea.weaponSpawnPoints) {
_local3[_local2] = Number(trim(_local1.substr(35 + (_local2 * 5), 5)));
_local2++;
}
updateWeaponSpawnTimers(_local3);
} else if (_local4 == "U") {
updateGameState(_local5, charToNum(_local1.substr(0, 1)), Number(trim(_local1.substr(1, 2))), Number(trim(_local1.substr(3, 2))), trimPoundSign(_local1.substr(5, 20)), Number(trim(_local1.substr(25, 2))), Number(trim(_local1.substr(27, 3))), Number(trim(_local1.substr(30, 3))), Number(trim(_local1.substr(33, 3))), Number(trim(_local1.substr(36, 3))), Number(trim(_local1.substr(39, 3))), Number(trim(_local1.substr(42, 3))), Number(trim(_local1.substr(45, 2))), Number(trim(_local1.substr(47, 3))), Number(trim(_local1.substr(50, 3))), Number(trim(_local1.substr(53, 3))), Number(trim(_local1.substr(56, 3))), Number(trim(_local1.substr(59, 3))), Number(trim(_local1.substr(62, 3))), getRank(Number(trim(_local1.substr(65, _local1.length - 65)))));
}
}
}
function socketCallsLobby() {
while (socketStack[0] != null) {
dataStr = socketStack.pop();
var _local3 = dataStr.substr(0, IDLEN);
var _local2 = dataStr.substr(IDLEN, 1);
var _local1 = dataStr.substr(IDLEN + 1, dataStr.length - (IDLEN + 1));
if (_local2 == "9") {
remoteChatMsgLobby(_local3, _local1);
} else if (_local2 == "P") {
remoteChatMsgLobby(_local3, _local1, true);
}
}
}
function getPosition(s, dt) {
var position = 1;
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("xqzCWxv.player" + remotePlayers[i]) + "MC")) {
if ((kills > s) || ((kills == s) && (vzqcYA < dt))) {
position++;
}
}
}
i++;
}
position = Math.min(position, playerCount);
return(position);
}
function tqfAjI(aaa, bbb) {
if ((((int(player.tqCdjw) >= aaa) || (int(player.tqCdjw) > bbb)) || (int(player.tqCdjw) > 60)) && (player.mod != "dead")) {
jnsuefbesd();
} else if (tqfAjIIntervalID != null) {
clearInterval(tqfAjIIntervalID);
tqfAjIIntervalID = null;
}
}
function jnsuefbesd() {
socket[serverNum].close();
loggedIn = false;
connectedToSever = false;
clearGameGarbage();
}
function animateDeath(mc, a, w, deg, kss, x, y) {
radAngle = 0.0174532925199433 /* Math.PI/180 */ * (deg - 90);
maxDistance = deathAnims - 1;
var d = 0;
while (d < deathAnims) {
var xHit = int(x + (Math.cos(radAngle) * deathDistance[d]));
var yHit = int(y + (Math.sin(radAngle) * deathDistance[d]));
if (xqzCWxv.c.hitTest(xHit, yHit, true)) {
maxDistance = Math.max(0, d - 1);
d = deathAnims;
}
d++;
}
with (eval (mc)) {
deathMC._visible = 1;
rnd = Math.max(random(2) + maxDistance, 1);
deathMC.gotoAndStop(rnd);
deathMC.dieMC.gotoAndPlay(1);
deathMC._rotation = deg;
if (kss > 0) {
soulHellMC._visible = 1;
soulHellMC.gotoAndPlay(1);
soulHellMC._rotation = deg + 180;
} else {
soulHeavenMC._visible = 1;
soulHeavenMC.gotoAndPlay(1);
soulHeavenMC._rotation = deg + 180;
}
xqQMWOK._visible = 0;
xqlPkD._visible = 0;
adjustAndPlaySound(SFXdeath[rnd - 1][textMC.localIdText.text], x - xqOfED._x, y - xqOfED._y);
}
eval (("xqzCWxv.indicator" + a) + "MC")._visible = false;
}
function attachParticles(tf, w, x, y, r) {
if (tf) {
particleCount++;
if (particleCount > maxParticles) {
particleCount = 0;
}
if (optionParticles) {
xqzCWxv.attachMovie(w + "ParticleMC", "particle" + particleCount, 5000 + particleCount);
} else {
xqzCWxv.attachMovie(w + "ParticleLowMC", "particle" + particleCount, 5000 + particleCount);
}
with (eval ("xqzCWxv.particle" + particleCount)) {
_x = x;
_y = y;
_rotation = r;
}
}
}
function updateLocalPlayerSpinnerAndPet() {
var _local2 = player.spinners[player.vzpVuQ];
xqzCWxv.attachMovie("indicatorMC" + padStr(_local2.num, 2), "charIndicatorMC", 1555);
setCustomObject2Colors(xqzCWxv.charIndicatorMC.subIndicatorMC.colorMC0, xqzCWxv.charIndicatorMC.subIndicatorMC.colorMC1, _local2.red0, _local2.green0, _local2.blue0, _local2.red1, _local2.green1, _local2.blue1, 75);
var _local1 = player.pets[player.lqJoDN];
xqOfED.attachMovie(("petBehavior" + petBehavior[Number(_local1.num)]) + "MC", "charPetMC", 7777);
var _local3 = xqOfED.charPetMC.subPetMC.attachMovie("petMC" + padStr(_local1.num, 2), "petMC", 1, {_x:70, _y:-80});
_local3._xscale = (_local3._yscale = petScale);
setCustomObject2Colors(_local3.colorMC0, _local3.colorMC1, _local1.red0, _local1.green0, _local1.blue0, _local1.red1, _local1.green1, _local1.blue1, 100, true);
}
function ygsfeyb(dir, walk, movement, xVel, yVel, w) {
startTime = getTimer();
if (movement) {
var _local5 = dir.substr(0, 1);
var _local6 = dir.substr(1, 1);
if ((_local5 != "0") && (_local6 != "0")) {
var _local3 = Math.min((Math.sqrt(Math.pow(player.tqIdol * weapons[w].walkingSpeed, 2) * 2) * 0.00376) * frameDeltaTime, player.tqIdol * 3);
var _local4 = Math.min((Math.sqrt(Math.pow(player.maxVel * weapons[w].walkingSpeed, 2) * 2) * 0.00376) * frameDeltaTime, player.maxVel * 3);
} else {
var _local3 = Math.min(((player.tqIdol * weapons[w].walkingSpeed) * frameDeltaTime) / 133, player.tqIdol * 3);
var _local4 = Math.min(((player.maxVel * weapons[w].walkingSpeed) * frameDeltaTime) / 133, player.maxVel * 3);
}
if (_local6 == "2") {
if (xVel < _local4) {
xVel = xVel + _local3;
}
} else if (_local6 == "1") {
if (xVel > (-_local4)) {
xVel = xVel - _local3;
}
}
if (_local5 == "2") {
if (yVel < _local4) {
yVel = yVel + _local3;
}
} else if (_local5 == "1") {
if (yVel > (-_local4)) {
yVel = yVel - _local3;
}
}
if (walk) {
xVel = xVel * player.jhasvb;
yVel = yVel * player.jhasvb;
}
}
xVel = xVel * friction;
yVel = yVel * friction;
return(new Array(xVel, yVel));
}
function vnrysg(x, y, xVel, yVel) {
startTime = getTimer();
if (xVel > 0) {
if (xqzCWxv.c.hitTest((x + xVel) + 6, y + 6, true) || (xqzCWxv.c.hitTest((x + xVel) + 6, y - 6, true))) {
xVel = xVel * -0.5;
}
} else if (xVel < 0) {
if (xqzCWxv.c.hitTest((x + xVel) - 6, y + 6, true) || (xqzCWxv.c.hitTest((x + xVel) - 6, y - 6, true))) {
xVel = xVel * -0.5;
}
}
if (yVel > 0) {
if (xqzCWxv.c.hitTest(x + 6, (y + yVel) + 6, true) || (xqzCWxv.c.hitTest(x - 6, (y + yVel) + 6, true))) {
yVel = yVel * -0.5;
}
} else if (yVel < 0) {
if (xqzCWxv.c.hitTest(x + 6, ((y + yVel) - 6) - 1, true) || (xqzCWxv.c.hitTest(x - 6, ((y + yVel) - 6) - 1, true))) {
yVel = yVel * -0.5;
}
}
return(new Array(xVel, yVel));
}
function ehbdybe(xVel, yVel, mod, movement) {
startTime = getTimer();
if (Math.abs(xVel) < 0.2) {
xVel = 0;
}
if (Math.abs(yVel) < 0.2) {
yVel = 0;
}
vel = Math.sqrt(Math.pow(xVel, 2) + Math.pow(yVel, 2));
if (vel < 0.8) {
mod = "stand";
} else if (movement) {
mod = "walk";
}
return(new Array(xVel, yVel, vel, mod));
}
function animatePlayer(mc, mod, walk, tqRxvU, w, f, vel, facing, inv) {
startTime = getTimer();
if (mod == "walk") {
if (walk) {
if (tqRxvU) {
with (eval (mc)) {
xqQMWOK.gotoAndStop(weapons[w].idleAnim + "Idle");
}
}
if (vel > 1.5) {
f = f + (vel / 3.5);
if (int(f) > 40) {
f = f - 40;
}
with (eval (mc)) {
xqlPkD.gotoAndStop("walk");
xqlPkD.legs.gotoAndStop(int(f));
}
}
} else {
if (tqRxvU) {
with (eval (mc)) {
xqQMWOK.gotoAndStop(weapons[w].runAnim + "Idle");
}
}
if (vel > player.tqIdol) {
f = f + (vel / 9);
if (int(f) > 18) {
f = f - 18;
}
with (eval (mc)) {
xqlPkD.gotoAndStop("run");
xqlPkD.legs.gotoAndStop(int(f));
}
}
}
} else if (mod == "stand") {
if (tqRxvU) {
with (eval (mc)) {
xqQMWOK.gotoAndStop(weapons[w].idleAnim + "Idle");
}
}
with (eval (mc)) {
xqlPkD.gotoAndStop("idle");
}
f = 6;
}
var newRot = smoothRot(eval (mc).xqlPkD._rotation, getTargetRotation(facing), player.rotVel);
with (eval (mc)) {
xqlPkD._rotation = newRot;
}
if (inv) {
with (eval (mc)) {
if (textMC.localIdText.text != 0) {
_alpha = _alpha + 25;
if (_alpha >= 100) {
_alpha = 0;
}
} else {
_alpha = ghostAlpha;
if (_alpha == 0) {
_visible = false;
}
}
}
} else {
with (eval (mc)) {
if (textMC.localIdText.text == 0) {
_alpha = ghostAlpha;
if (_alpha == 0) {
_visible = false;
} else {
_visible = true;
}
} else {
_alpha = 100;
}
}
}
return(f);
}
function remotePlayerDamage(a, d, w, deg) {
var lId = null;
var i = 0;
while (i < maxNumPlayers) {
if (new String(remotePlayers[i]) eq new String(a)) {
lId = i;
i = maxNumPlayers;
}
i++;
}
if (a != 0) {
if (a != player.id) {
x = eval (("xqzCWxv.player" + a) + "MC")._x + xqzCWxv._x;
y = eval (("xqzCWxv.player" + a) + "MC")._y + xqzCWxv._y;
with (eval (("xqzCWxv.player" + a) + "MC")) {
attachMovie("localDamageFX", "damageFX", 1200);
damageFX.red = d * 20;
damageFX.fade = d * 3;
b = 0;
while (b < Math.pow(optionBlood, 2)) {
attachMovie((("blood" + weapons[w].bloodAnim) + random(weapons[w].bloodVariations)) + "MC", "bloodMC" + b, 1206 + b);
with (eval ("bloodMC" + b)) {
_rotation = (deg + random(Math.pow(optionBlood, 2) * 15)) - (Math.pow(optionBlood, 2) * 7.5);
_xscale = random(Math.pow(optionBlood, 2) * 10) + 100;
_yscale = random(Math.pow(optionBlood, 2) * 10) + 100;
}
b++;
}
adjustAndPlaySound(eval (("SFX" + weapons[w].attackAnim) + "Impact")[lId], x - xqOfED._x, y - xqOfED._y);
}
}
}
}
function calculateFrameRate() {
curFrameTime = getTimer();
frameDeltaTime = curFrameTime - lastFrameTime;
lastFrameTime = curFrameTime;
frameRate = (Math.round(10000 / frameDeltaTime) / 10) * 4;
frameRateHistory = frameRateHistory.slice(1, frameRateHistory.length);
frameRateHistory.push(frameRate);
avgDeltaTime = 0;
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
avgDeltaTime = avgDeltaTime + eval (("xqzCWxv.player" + remotePlayers[i]) + "MC").remoteAvgPing;
if (eval (("xqzCWxv.player" + remotePlayers[i]) + "MC").textMC._visible == 1) {
eval (("xqzCWxv.player" + remotePlayers[i]) + "MC").textMC.pingText.text = eval (("xqzCWxv.player" + remotePlayers[i]) + "MC").remoteAvgPing;
}
}
i++;
}
avgDeltaTime = Math.round(avgDeltaTime / playerCount);
frameRemoteAvgPingHistory = frameRemoteAvgPingHistory.slice(1, frameRemoteAvgPingHistory.length);
frameRemoteAvgPingHistory.push(avgDeltaTime);
frameLocalPingHistory = frameLocalPingHistory.slice(1, frameLocalPingHistory.length);
frameLocalPingHistory.push(eval (("xqzCWxv.player" + remotePlayers[0]) + "MC").remoteAvgPing);
if (sysInfoState == 1) {
xqeGhrBMI.fpsText.text = (xqeGhrBMI.fpsText2.text = int(frameRate) + " FPS");
xqeGhrBMI.pingText.text = (xqeGhrBMI.pingText2.text = eval (("xqzCWxv.player" + remotePlayers[0]) + "MC").remoteAvgPing + " MS LOCAL");
xqeGhrBMI.pingGameText.text = (xqeGhrBMI.pingGameText2.text = avgDeltaTime + " MS AVG");
if (serverType[serverNum] == "COMPATIBILITY") {
xqeGhrBMI.compatText.text = (xqeGhrBMI.compatText2.text = compatModeText);
}
drawFrameRateGraph();
drawPingGraphs();
} else if (sysInfoState == 2) {
drawPingGraphsRemote();
}
}
function initializeGraphs() {
frameRateGraph = new flash.display.BitmapData(100, 50, true, 2684354560);
pingGraphRemoteAvg = new flash.display.BitmapData(100, 50, true, 2684354560);
pingGraph = new flash.display.BitmapData(100, 50, true, 2684354560);
xqeGhrBMI.graphsMC.createEmptyMovieClip("frameRateGraphMC", 100);
xqeGhrBMI.graphsMC.createEmptyMovieClip("pingGraphRemoteAvgMC", 101);
xqeGhrBMI.graphsMC.createEmptyMovieClip("pingGraphMC", 102);
xqeGhrBMI.graphsMC.frameRateGraphMC._x = -40;
xqeGhrBMI.graphsMC.frameRateGraphMC._y = -125;
xqeGhrBMI.graphsMC.pingGraphRemoteAvgMC._x = -40;
xqeGhrBMI.graphsMC.pingGraphRemoteAvgMC._y = -70;
xqeGhrBMI.graphsMC.pingGraphMC._x = -40;
xqeGhrBMI.graphsMC.pingGraphMC._y = -15;
xqeGhrBMI.graphsMC.frameRateGraphMC.attachBitmap(frameRateGraph, 10);
xqeGhrBMI.graphsMC.pingGraphRemoteAvgMC.attachBitmap(pingGraphRemoteAvg, 11);
xqeGhrBMI.graphsMC.pingGraphMC.attachBitmap(pingGraph, 12);
}
function initializeGraphs2() {
pingGraphRemote0 = new flash.display.BitmapData(100, 50, true, 2684354560);
pingGraphRemote1 = new flash.display.BitmapData(100, 50, true, 2684354560);
pingGraphRemote2 = new flash.display.BitmapData(100, 50, true, 2684354560);
pingGraphRemote3 = new flash.display.BitmapData(100, 50, true, 2684354560);
var i = 0;
while (i < maxNumPlayers) {
xqeGhrBMI.graphsMC.createEmptyMovieClip(("pingGraphRemote" + i) + "MC", i + 103);
var mc = eval (("xqeGhrBMI.graphsMC.pingGraphRemote" + i) + "MC");
with (mc) {
_visible = false;
_x = -40;
_y = -15 - (i * 55);
attachBitmap(eval ("pingGraphRemote" + i), i + 13);
}
mc.myIndex = i;
mc.onPress = function () {
if ((chatMC.chatText0.text.length < vzVKHI) && (gameMode == 2)) {
if (getName(remotePlayers[this.myIndex]).indexOf(" ") != -1) {
chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = (chatMC.chatText0.text = ((chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) + "&") + remotePlayers[this.myIndex]) + "_"))));
} else {
chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = (chatMC.chatText0.text = (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) + getName(remotePlayers[this.myIndex])) + "_"))));
}
}
};
i++;
}
}
function cleanUpGraphs() {
frameRateGraph.dispose();
pingGraphRemoteAvg.dispose();
pingGraph.dispose();
}
function cleanUpGraphs2() {
pingGraphRemote0.dispose();
pingGraphRemote1.dispose();
pingGraphRemote2.dispose();
pingGraphRemote3.dispose();
}
function drawFrameRateGraph() {
frameRateGraph.scroll(-graphScrollAmount, 0);
var _local1 = 0;
while (_local1 < graphScrollAmount) {
var _local3 = frameRateHistory[frameRateHistory.length - 1] - frameRateHistory[frameRateHistory.length - 2];
var _local2 = frameRateHistory[frameRateHistory.length - 1] - ((_local3 / graphScrollAmount) * (_local1 + 1));
frameRateGraph.setPixel32((98 - graphScrollAmount) - _local1, 50 - _local2, 4278242559);
frameRateGraph.setPixel32((98 - graphScrollAmount) - _local1, (50 - _local2) - 1, 4278242559);
_local1++;
}
}
function drawPingGraphs() {
pingGraphRemoteAvg.scroll(-graphScrollAmount, 0);
var _local1 = 0;
while (_local1 < graphScrollAmount) {
var _local3 = frameRemoteAvgPingHistory[frameRemoteAvgPingHistory.length - 1] - frameRemoteAvgPingHistory[frameRemoteAvgPingHistory.length - 2];
var _local2 = frameRemoteAvgPingHistory[frameRemoteAvgPingHistory.length - 1] - ((_local3 / graphScrollAmount) * (_local1 + 1));
pingGraphRemoteAvg.setPixel32((98 - graphScrollAmount) - _local1, 50 - (_local2 / 6), 4294967295);
pingGraphRemoteAvg.setPixel32((98 - graphScrollAmount) - _local1, (50 - (_local2 / 6)) - 1, 4294967295);
_local1++;
}
pingGraph.scroll(-graphScrollAmount, 0);
_local1 = 0;
while (_local1 < graphScrollAmount) {
var _local3 = frameLocalPingHistory[frameLocalPingHistory.length - 1] - frameLocalPingHistory[frameLocalPingHistory.length - 2];
var _local2 = frameLocalPingHistory[frameLocalPingHistory.length - 1] - ((_local3 / graphScrollAmount) * (_local1 + 1));
pingGraph.setPixel32((98 - graphScrollAmount) - _local1, 50 - (_local2 / 6), 4287168392);
pingGraph.setPixel32((98 - graphScrollAmount) - _local1, (50 - (_local2 / 6)) - 1, 4287168392);
_local1++;
}
}
function drawPingGraphsRemote() {
var i = 0;
while (i < 4) {
if (remotePlayers[i] != 0) {
eval (("xqeGhrBMI.graphsMC.pingGraphRemote" + i) + "MC")._visible = true;
eval (("xqeGhrBMI.pingRemote" + i) + "Text").htmlText = ((getColoredName(remotePlayers[i]) + " ") + eval (("xqzCWxv.player" + remotePlayers[i]) + "MC").remoteAvgPing) + " MS";
eval (("xqeGhrBMI.pingRemote" + i) + "Text2").text = ((getName(remotePlayers[i]) + " ") + eval (("xqzCWxv.player" + remotePlayers[i]) + "MC").remoteAvgPing) + " MS";
eval ("pingGraphRemote" + i).scroll(-graphScrollAmount, 0);
var xx = 0;
while (xx < graphScrollAmount) {
var yDifference = (eval (("xqzCWxv.player" + remotePlayers[i]) + "MC").lastRemoteAvgPing - eval (("xqzCWxv.player" + remotePlayers[i]) + "MC").remoteAvgPing);
var yCoord = (eval (("xqzCWxv.player" + remotePlayers[i]) + "MC").lastRemoteAvgPing - ((yDifference / graphScrollAmount) * (xx + 1)));
if (i == 0) {
var hexColorString = 16777215;
} else {
var hexColorString = Number("0x" + eval (("xqzCWxv.player" + remotePlayers[i]) + "MC").hexColor.substr(1, 6));
}
eval ("pingGraphRemote" + i).setPixel32((98 - graphScrollAmount) - xx, 50 - (yCoord / 6), 4278190080 + hexColorString);
eval ("pingGraphRemote" + i).setPixel32((98 - graphScrollAmount) - xx, (50 - (yCoord / 6)) - 1, 4278190080 + hexColorString);
xx++;
}
} else {
eval (("xqeGhrBMI.graphsMC.pingGraphRemote" + i) + "MC")._visible = false;
eval (("xqeGhrBMI.pingRemote" + i) + "Text").text = (eval (("xqeGhrBMI.pingRemote" + i) + "Text2").text = "");
}
i++;
}
}
function updateWeaponSpawns() {
startTime = getTimer();
var i = 0;
while (i < currentArea.weaponSpawnPoints) {
if (currentArea.weaponSpawn[i].timer > 0) {
currentArea.weaponSpawn[i].timer = Math.max(0, int(currentArea.weaponSpawn[i].timer - frameDeltaTime));
} else if (eval (("xqzCWxv.pickup" + i) + "MC").hitTest(xqOfED._x, xqOfED._y, true) && (player.mod != "dead")) {
w = currentArea.weaponSpawn[i].qxBVxE;
if (w != player.qxBVxE) {
player.pickUpWeapon(currentArea.weaponSpawn[i].qxBVxE, i);
eval (("xqzCWxv.pickup" + i) + "MC").removeMovieClip();
currentArea.weaponSpawn[i].timer = currentArea.weaponSpawn[i].delay;
adjustAndPlaySound(eval (("SFX" + weapons[currentArea.weaponSpawn[i].qxBVxE].attackAnim) + "Pickup"), 0, 0);
}
} else if ((currentArea.weaponSpawn[i].timer <= 0) && (eval (("xqzCWxv.pickup" + i) + "MC") == null)) {
spawnWeapon(i, currentArea.weaponSpawn[i].qxBVxE, currentArea.weaponSpawn[i].x, currentArea.weaponSpawn[i].y);
}
i++;
}
}
function spawnWeapon(n, w, x, y) {
xqzCWxv.attachMovie(("pickup" + weapons[w].attackAnim) + "MC", ("pickup" + n) + "MC", n + 6000);
with (eval (("xqzCWxv.pickup" + n) + "MC")) {
_x = x;
_y = y;
weaponMC.filters = [_parent._parent.gl];
}
}
function animateWeaponPickups() {
wave = wave + 0.1;
if (wave > (Math.PI*2)) {
wave = 0;
}
var y = ((Math.sin(wave) * 4) - 12);
var scale = (110 + (Math.sin(wave + Math.PI) * 3.5));
var alpha = (23 + (Math.sin(wave) * 6));
var n = 0;
while (n < currentArea.weaponSpawnPoints) {
if (currentArea.weaponSpawn[n].timer <= 0) {
if (Math.abs((eval (("xqzCWxv.pickup" + n) + "MC")._x + xqzCWxv._x) - 275) < 325) {
if (Math.abs((eval (("xqzCWxv.pickup" + n) + "MC")._y + xqzCWxv._y) - 200) < 250) {
with (eval (("xqzCWxv.pickup" + n) + "MC")) {
_visible = 1;
weaponMC._rotation = shadowMC._rotation++;
weaponMC._y = y;
shadowMC._xscale = (shadowMC._yscale = scale);
shadowMC._alpha = alpha;
}
} else {
with (eval (("xqzCWxv.pickup" + n) + "MC")) {
_visible = 0;
}
}
} else {
with (eval (("xqzCWxv.pickup" + n) + "MC")) {
_visible = 0;
}
}
}
n++;
}
}
function unloadArea() {
var _local2 = 0;
while (_local2 < areaHeight) {
var _local1 = 0;
while (_local1 < areaWidth) {
earth[_local1][_local2][0] = (earth[_local1][_local2][1] = (earth[_local1][_local2][2] = (earth[_local1][_local2][3] = null)));
_local1++;
}
_local2++;
}
areaHeight = 0;
areaWidth = 0;
}
function APISendMapListRequest(customMapUserName) {
lastRequestedMapListUserName = customMapUserName;
var replyDataAPI = new XML();
var _local8 = new LoadVars();
var _local9 = (apiURL + "method=xgen.stickarena.maps.list&username=") + customMapUserName;
_local8.sendAndLoad(_local9, replyDataAPI, "POST");
replyDataAPI.onLoad = function (success) {
if (success) {
var _local7 = this.childNodes[0];
var _local6 = "";
var _local2 = 0;
while (_local2 < 5) {
var _local5 = _local7.childNodes[1].childNodes[(_local2 * 2) + 1].childNodes[1].firstChild.toString();
var _local3 = Number(_local7.childNodes[1].childNodes[(_local2 * 2) + 1].toString().substr(14, 1));
if (((_local3 != NaN) && (_local3 != undefined)) && (_local3 > _local2)) {
var _local4 = _local2;
while (_local4 < _local3) {
_local6 = _local6 + ";";
_local4++;
}
}
if (_local5 != undefined) {
_local6 = _local6 + (_local5 + ";");
}
_local2++;
}
if (_local6 != "") {
_local6 = _local6.substr(0, _local6.length - 1);
}
recieveCustomMapList(_local6);
} else {
windowMC.mapName20.text = (windowMC.mapName21.text = editorText[59]);
windowMC.cancelBTNMC._visible = (windowMC.btnXMC._visible = true);
}
};
}
function loadStockOrCustomArea() {
if ((mapNum < 31) || (mapNum >= 42)) {
loadStockArea(currentArea.fileName);
} else {
loadCustomArea(mapNum - 31, roomCreatorUserName);
}
}
function loadCustomArea(mapSlotNum, customMapUserName) {
mapLoaded = false;
var _local4 = (((apiURL + "method=xgen.stickarena.maps.get&username=") + customMapUserName) + "&slot_id=") + mapSlotNum.toString();
currentArea.fileName = _local4;
replyData = new XML();
sendData = new LoadVars();
sendData.sendAndLoad(_local4, replyData, "POST");
replyData.onLoad = function (success) {
if (success) {
mapLoaded = true;
if (gameArea == _areaPlaying) {
var _local3 = this.childNodes[0];
var _local4 = _local3.childNodes[1].childNodes[1].childNodes[1].firstChild.toString();
var _local2 = _local3.childNodes[1].childNodes[1].childNodes[3].firstChild.toString();
var _local7 = _local2.substr(_local2.indexOf("inf=") + 4, (_local2.indexOf("&", _local2.indexOf("inf=")) - _local2.indexOf("inf=")) - 4);
var _local5 = " " + _local2.substr(_local2.indexOf("tiles=") + 6, (_local2.indexOf("&", _local2.indexOf("tiles=")) - _local2.indexOf("tiles=")) - 6);
var _local9 = _local2.substr(_local2.indexOf("sp=") + 3, (_local2.indexOf("&", _local2.indexOf("sp=")) - _local2.indexOf("sp=")) - 3);
var _local8 = _local2.substr(_local2.indexOf("ws=") + 3, (_local2.indexOf("&", _local2.indexOf("ws=")) - _local2.indexOf("ws=")) - 3);
var _local10 = _local2.substr(_local2.indexOf("rt=") + 3, (_local2.indexOf("&", _local2.indexOf("rt=")) - _local2.indexOf("rt=")) - 3);
var _local6 = _local2.substr(_local2.indexOf("ts=") + 3, (_local2.indexOf("&", _local2.indexOf("ts=")) - _local2.indexOf("ts=")) - 3);
loadArea(_local7, _local5, _local9, _local8, _local10, _local6, true);
}
} else {
returnToLobby(lobbyText[65]);
lobbySelectServerPerform();
}
};
}
function loadStockArea(fName) {
mapLoaded = false;
currentArea.fileName = fName;
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local3.sendAndLoad("maps/" + fName, _local2, "POST");
_local2.onLoad = function (success) {
if (success) {
mapLoaded = true;
if (gameArea == _areaPlaying) {
loadArea(this.inf, this.tiles, this.sp, this.ws, this.rt, this.ts, true);
}
} else if (loggedIn) {
returnToLobby(lobbyText[64]);
lobbySelectServerPerform();
} else {
qkxRrK("\r" + lobbyText[37], "title");
}
};
}
function loadArea(metaData, tileData, spawnData, weaponSpawnData, roundTimeData, tileSetData, initial) {
unloadArea();
earthWidth = (areaWidth = int(metaData.substr(0, 2)));
earthHeight = (areaHeight = int(metaData.substr(3, 2)));
vwfPvp();
currentArea.vwYpkt = metaData.substr(6, metaData.length - 6);
currentArea.roundTime = Number(roundTimeData.substr(0, 4));
currentArea.tileSet = Number(tileSetData.substr(0, 1));
var _local2 = 0;
while (_local2 < areaHeight) {
var _local1 = 0;
while (_local1 < areaWidth) {
var _local3 = tileData.substr(((_local1 * 7) + ((_local2 * areaWidth) * 7)) + 2, 6);
earth[_local1][_local2][0] = _local3.substr(0, 3);
earth[_local1][_local2][1] = _local3.substr(3, 1);
earth[_local1][_local2][2] = _local3.substr(4, 1);
earth[_local1][_local2][3] = _local3.substr(5, 1);
if ((((_local2 == 0) || (_local1 == 0)) || (_local1 == (areaWidth - 1))) || (_local2 == (areaHeight - 1))) {
earth[_local1][_local2][3] = 4;
}
_local1++;
}
_local2++;
}
currentArea.playerSpawnPoints = 0;
var _local4 = 0;
while (_local4 < 8) {
var _local3 = spawnData.substr(_local4 * 10, 9);
if ((int(_local3.substr(0, 4)) != 0) || (int(_local3.substr(5, 4)))) {
currentArea.spawnPoint[currentArea.playerSpawnPoints].x = int(_local3.substr(0, 4));
currentArea.spawnPoint[currentArea.playerSpawnPoints].y = int(_local3.substr(5, 4));
currentArea.playerSpawnPoints++;
}
_local4++;
}
currentArea.weaponSpawnPoints = 0;
var _local5 = 0;
while (_local5 < 8) {
var _local3 = weaponSpawnData.substr(_local5 * 20, 19);
if ((int(_local3.substr(0, 4)) != 0) || (int(_local3.substr(5, 4)))) {
currentArea.weaponSpawn[currentArea.weaponSpawnPoints].x = int(_local3.substr(0, 4));
currentArea.weaponSpawn[currentArea.weaponSpawnPoints].y = int(_local3.substr(5, 4));
currentArea.weaponSpawn[currentArea.weaponSpawnPoints].qxBVxE = int(_local3.substr(10, 4));
currentArea.weaponSpawn[currentArea.weaponSpawnPoints].delay = int(_local3.substr(15, 4)) * 1000;
currentArea.weaponSpawn[currentArea.weaponSpawnPoints].timer = 3000;
currentArea.weaponSpawn[currentArea.weaponSpawnPoints].recievedRemoteTimer = false;
currentArea.weaponSpawnPoints++;
}
_local5++;
}
earthMinX = (-(areaWidth - 11.5)) * 50;
earthMinY = (-(areaHeight - 8.5)) * 50;
qxdIYx = (kkZxIY = 0);
xqzCWxvX = (xqzCWxvY = 0);
leftCol = (topRow = (oldLeftCol = (oldTopRow = 0)));
if (initial) {
lqBohN();
}
vwDGiD();
var _local6 = 0;
while (_local6 < 100) {
updateEarth();
_local6++;
}
initializeRoundVariablePostMapLoad();
player.spawn();
addHUDMsg((((((getColoredName(a) + HUDText[2]) + "'") + getRoomDisplayNameInGame(currentRoomName)) + "' ") + "- ") + currentArea.vwYpkt, (((((getName(a) + HUDText[2]) + "'") + getRoomDisplayNameInGame(currentRoomName)) + "' ") + "- ") + currentArea.vwYpkt, 10000);
if (playerCount != 0) {
wipeMC.gotoAndPlay(1);
}
}
function updateHUD() {
player.rackUpScore();
if (keyIsDownMulti("B") && (gameMode == 0)) {
if (leadMC == null) {
displayLeaderBoard();
}
updateLeaderBoard();
} else if (leadMC != null) {
leadMC.removeMovieClip();
}
updateHUDMsg();
}
function updateHUDDead() {
player.rackUpScore();
if ((keyIsDownMulti("B") && (gameMode == 0)) || ((player.qxvpxM <= 90) && (!userHidLeaderBoard))) {
if (leadMC == null) {
displayLeaderBoard();
}
updateLeaderBoard();
} else if (leadMC != null) {
leadMC.removeMovieClip();
}
updateHUDMsg();
}
function displayLeaderBoard() {
_root.attachMovie("leaderBoardMC", "leadMC", 200001);
leadMC.cacheAsBitmap = optionUseBitmapCaching;
var i = 0;
while (i < 5) {
var n = 0;
while (n < 5) {
str = ("leadMC.h" + i) + "Text";
with (eval (str + n)) {
text = leadText[i];
}
n++;
}
i++;
}
}
function updateLeaderBoard() {
leadMC.timerText0.text = (leadMC.timerText1.text = (leadMC.timerText2.text = (leadMC.timerText3.text = (leadMC.timerText4.text = formatTime(qkLwJE)))));
var p = new Array();
var pp = new Array();
var n = 0;
var i = 1;
while (i < 9) {
with (eval (("leadMC.BTNvoteKick" + i) + "MC")) {
_visible = 0;
}
with (eval (("leadMC.BTNreportUser" + i) + "MC")) {
_visible = 0;
}
if (eval (("leadMC.rankIcon" + i) + "MC") != null) {
eval (("leadMC.rankIcon" + i) + "MC").removeMovieClip();
}
i++;
}
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("xqzCWxv.player" + remotePlayers[i]) + "MC")) {
p[n] = getPosition(kills, vzqcYA);
pp[n] = remotePlayers[i];
}
n++;
}
i++;
}
var changed = true;
while (changed) {
changed = false;
var n = 0;
while (n < (p.length - 1)) {
if (p[n] > p[n + 1]) {
temp = p[n + 1];
p[n + 1] = p[n];
p[n] = temp;
temp = pp[n + 1];
pp[n + 1] = pp[n];
pp[n] = temp;
changed = true;
}
n++;
}
}
var htm = "";
var str = "";
var n = 0;
while (n < p.length) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
htm = htm + (posText[p[n]] + "<br>");
if (pp[n] == player.id) {
htm = htm + "</FONT>";
} else {
if ((!zqudUd) || ((pp[n] == voteKickID) && (!voteKickVoted))) {
if ((voteKickInitiateTime - qkLwJE) >= (tqpQVt / 1000)) {
with (eval (("leadMC.BTNvoteKick" + (n + 1)) + "MC")) {
_visible = 1;
textBoxMC.textBox.text = n;
}
}
}
with (eval (("leadMC.BTNreportUser" + (n + 1)) + "MC")) {
_visible = 1;
textBoxMC.textBox.text = n;
}
}
var iconMC = (("rank" + eval (("xqzCWxv.player" + pp[n]) + "MC").rank) + "GMC");
leadMC.attachMovie(iconMC, ("rankIcon" + (n + 1)) + "MC", 10000 + n);
with (eval (("leadMC.rankIcon" + (n + 1)) + "MC")) {
_x = eval (("leadMC.BTNreportUser" + (n + 1)) + "MC")._x + 42;
_y = eval (("leadMC.BTNreportUser" + (n + 1)) + "MC")._y - 5;
}
str = str + (posText[p[n]] + "\r");
n++;
}
leadMC.rankText0.htmlText = htm;
leadMC.rankText1.text = (leadMC.rankText2.text = (leadMC.rankText3.text = (leadMC.rankText4.text = str)));
htm = "";
str = "";
var n = 0;
while (n < p.length) {
htm = htm + (getColoredName(pp[n]) + "<br>");
str = str + (getName(pp[n]) + "\r");
n++;
}
leadMC.leadText0.htmlText = htm;
leadMC.leadText1.text = (leadMC.leadText2.text = (leadMC.leadText3.text = (leadMC.leadText4.text = str)));
htm = "";
str = "";
var n = 0;
while (n < p.length) {
with (eval (("xqzCWxv.player" + pp[n]) + "MC")) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
if ((kills != undefined) && (kills != null)) {
htm = htm + (kills + "<br>");
} else {
htm = htm + "-<br>";
}
if (pp[n] == player.id) {
htm = htm + "</FONT>";
}
if ((kills != undefined) && (kills != null)) {
str = str + (kills + "\r");
} else {
str = str + "-\r";
}
}
n++;
}
leadMC.killText0.htmlText = htm;
leadMC.killText1.text = (leadMC.killText2.text = (leadMC.killText3.text = (leadMC.killText4.text = str)));
htm = "";
str = "";
var n = 0;
while (n < p.length) {
with (eval (("xqzCWxv.player" + pp[n]) + "MC")) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
if ((vzqcYA != undefined) && (vzqcYA != null)) {
htm = htm + (vzqcYA + "<br>");
} else {
htm = htm + "-<br>";
}
if (pp[n] == player.id) {
htm = htm + "</FONT>";
}
if ((vzqcYA != undefined) && (vzqcYA != null)) {
str = str + (vzqcYA + "\r");
} else {
str = str + "-\r";
}
}
n++;
}
leadMC.deathText0.htmlText = htm;
leadMC.deathText1.text = (leadMC.deathText2.text = (leadMC.deathText3.text = (leadMC.deathText4.text = str)));
leadMC.idArray = pp;
}
function addLobbyMsg(h, t) {
h = h + "<br>";
t = t + "\r";
LobbyMsg.push(new Array(h, t));
if (LobbyMsg.length > lqnJDL) {
var _local1 = 0;
while (_local1 < LobbyMsg.length) {
LobbyMsg[_local1] = LobbyMsg[_local1 + 1];
_local1++;
}
LobbyMsg.pop();
}
if ((gameArea == _areaLobby) && (currentTab == _lobby)) {
displayLobbyMsgs();
}
}
function displayLobbyMsgs() {
if (lobbyMsgs.scroll == lobbyMsgs.maxscroll) {
var _local3 = true;
} else {
var _local3 = false;
var _local2 = lobbyMsgs.maxscroll;
}
lobbyMsgs.htmlText = "";
lobbyMsgs0.text = "";
var _local1 = 0;
while (_local1 < LobbyMsg.length) {
lobbyMsgs.htmlText = lobbyMsgs.htmlText + LobbyMsg[_local1][0];
lobbyMsgs0.text = lobbyMsgs0.text + LobbyMsg[_local1][1];
_local1++;
}
if (_local3) {
lobbyMsgs.scroll = (lobbyMsgs0.scroll = lobbyMsgs.maxscroll);
} else {
lobbyMsgs.scroll = (lobbyMsgs0.scroll = (lobbyMsgs.scroll - 1) + (lobbyMsgs.maxscroll - _local2));
}
}
function displaySummaryScoresAnims() {
if (Number(player.lqQxjQ) != getRank(player.qkXZhl)) {
with (eval (("xqzCWxv.player" + player.id) + "MC")) {
rank = getRank(player.qkXZhl);
}
_root.attachMovie("rankGainMC", "rankGainMC", 200030);
rankGainMC._x = 300;
rankGainMC._y = 100;
var iconMC = getRankIconName(player.qkXZhl);
rankGainMC.rankGainMC_.attachMovie(iconMC, "rankIconMC", 1000);
rankGainMC.rankGainTextMC.rankText.text = (rankGainMC.rankGainTextMC.rankText1.text = (rankGainMC.rankGainTextMC.rankText2.text = (rankGainMC.rankGainTextMC.rankText3.text = (rankGainMC.rankGainTextMC.rankText4.text = (summaryText[3] + int(int(getRank(player.qkXZhl)) - 1)) + summaryText[4]))));
}
var p = new Array();
var pp = new Array();
var n = 0;
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("xqzCWxv.player" + remotePlayers[i]) + "MC")) {
p[n] = getPosition(kills, vzqcYA);
pp[n] = remotePlayers[i];
}
n++;
}
i++;
}
var changed = true;
while (changed) {
changed = false;
var n = 0;
while (n < (p.length - 1)) {
if (p[n] > p[n + 1]) {
temp = p[n + 1];
p[n + 1] = p[n];
p[n] = temp;
temp = pp[n + 1];
pp[n + 1] = pp[n];
pp[n] = temp;
changed = true;
}
n++;
}
}
var htm = "";
var str = "";
var n = 0;
while (n < p.length) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
htm = htm + (posText[p[n]] + "<br>");
if (pp[n] == player.id) {
htm = htm + "</FONT>";
}
str = str + (posText[p[n]] + "\r");
n++;
}
sumMC.rankText0.htmlText = htm;
sumMC.rankText1.text = (sumMC.rankText2.text = (sumMC.rankText3.text = (sumMC.rankText4.text = str)));
htm = "";
str = "";
var n = 0;
while (n < p.length) {
htm = htm + (getColoredName(pp[n]) + "<br>");
str = str + (getName(pp[n]) + "\r");
n++;
}
sumMC.leadText0.htmlText = htm;
sumMC.leadText1.text = (sumMC.leadText2.text = (sumMC.leadText3.text = (sumMC.leadText4.text = str)));
htm = "";
str = "";
var n = 0;
while (n < p.length) {
with (eval (("xqzCWxv.player" + pp[n]) + "MC")) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
if ((kills != undefined) && (kills != null)) {
htm = htm + (kills + "<br>");
} else {
htm = htm + "-<br>";
}
if (pp[n] == player.id) {
htm = htm + "</FONT>";
}
if ((kills != undefined) && (kills != null)) {
str = str + (kills + "\r");
} else {
str = str + "-\r";
}
}
n++;
}
sumMC.killText0.htmlText = htm;
sumMC.killText1.text = (sumMC.killText2.text = (sumMC.killText3.text = (sumMC.killText4.text = str)));
htm = "";
str = "";
var n = 0;
while (n < p.length) {
with (eval (("xqzCWxv.player" + pp[n]) + "MC")) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
if ((vzqcYA != undefined) && (vzqcYA != null)) {
htm = htm + (vzqcYA + "<br>");
} else {
htm = htm + "-<br>";
}
if (pp[n] == player.id) {
htm = htm + "</FONT>";
}
if ((vzqcYA != undefined) && (vzqcYA != null)) {
str = str + (vzqcYA + "\r");
} else {
str = str + "-\r";
}
}
n++;
}
sumMC.deathText0.htmlText = htm;
sumMC.deathText1.text = (sumMC.deathText2.text = (sumMC.deathText3.text = (sumMC.deathText4.text = str)));
var xAnims = new Array(310, 430, 180, 60, 500, 230);
var yAnims = new Array(290, 280, 278, 260, 250, 240);
var xSAnims = new Array(66, 58, -55, -51, 51, -48);
var ySAnims = new Array(66, 58, 55, 51, 51, 48);
var n = 0;
while (n < p.length) {
if (pp[n] == player.id) {
if ((p[n] == p.length) && (p.length > 1)) {
SFXLose.start();
} else {
SFXWin.start();
}
}
if (p[n] == 1) {
_root.attachMovie("summaryCharWin0MC", "charAnim" + n, 110000 - (n * 3));
with (eval ("charAnim" + n)) {
gotoAndPlay(31 - ((n / p.length) * 30));
_x = xAnims[n];
_y = yAnims[n];
_xscale = xSAnims[n];
_yscale = ySAnims[n];
}
_root.attachMovie("playerNameLargeMC", "playerNameMC" + n, 110001 - (n * 3));
with (eval ("playerNameMC" + n)) {
playerNameText0.htmlText = getColoredName(pp[n], pp[n] == player.id);
playerNameText1.text = (playerNameText2.text = (playerNameText3.text = (playerNameText4.text = getName(pp[n], pp[n] == player.id))));
_x = xAnims[n] - 80;
_y = yAnims[n] + 90;
if (n != 0) {
_y = _y - (10 * n);
}
}
var xIndicatorAdj = 0;
var yIndicatorAdj = 0;
} else {
if (p[n] == p.length) {
_root.attachMovie("summaryCharLose1MC", "charAnim" + n, 110000 - (n * 3));
} else {
_root.attachMovie("summaryCharLose0MC", "charAnim" + n, 110000 - (n * 3));
}
with (eval ("charAnim" + n)) {
gotoAndPlay(31 - ((n / p.length) * 30));
_x = xAnims[n];
_y = yAnims[n];
_xscale = xSAnims[n];
_yscale = ySAnims[n];
}
_root.attachMovie("playerNameMC", "playerNameMC" + n, 110001 - (n * 3));
with (eval ("playerNameMC" + n)) {
playerNameText0.htmlText = getColoredName(pp[n], pp[n] == player.id);
playerNameText1.text = (playerNameText2.text = (playerNameText3.text = (playerNameText4.text = getName(pp[n], pp[n] == player.id))));
_x = xAnims[n] - 40;
_y = yAnims[n] + 60;
}
var xIndicatorAdj = 10;
var yIndicatorAdj = -15;
}
if (pp[n] == player.id) {
var spn = player.spinners[player.vzpVuQ];
_root.attachMovie("indicatorMC" + padStr(spn.num, 2), "indicatorMC" + n, 109999 - (n * 3));
setCustomObject2Colors(eval (("indicatorMC" + n) + ".subIndicatorMC.colorMC0"), eval (("indicatorMC" + n) + ".subIndicatorMC.colorMC1"), spn.red0, spn.green0, spn.blue0, spn.red1, spn.green1, spn.blue1, 75);
} else {
var spnArray = eval (("xqzCWxv.player" + pp[n]) + "MC").spinnerArray;
_root.attachMovie("indicatorMC" + padStr(spnArray[_num], 2), "indicatorMC" + n, 109999 - (n * 3));
setCustomObject2Colors(eval (("indicatorMC" + n) + ".subIndicatorMC.colorMC0"), eval (("indicatorMC" + n) + ".subIndicatorMC.colorMC1"), spnArray[_red0], spnArray[_green0], spnArray[_blue0], spnArray[_red1], spnArray[_green1], spnArray[_blue1], 75);
}
with (eval ("indicatorMC" + n)) {
gotoAndPlay(random(15) + 1);
_x = (xAnims[n] - 8) + xIndicatorAdj;
_y = (yAnims[n] + 100) + yIndicatorAdj;
_xscale = (Math.abs(xSAnims[n]) * 2.5) * 1.5;
_yscale = (ySAnims[n] * 0.9) * 1.5;
}
n++;
}
}
function endRound() {
if (tqfAjIIntervalID != null) {
clearInterval(tqfAjIIntervalID);
tqfAjIIntervalID = null;
}
player.qkXZhl = player.qkXZhl + player.getScore();
player.pDeaths = player.pDeaths + player.getDeaths();
if (getPosition(player.getScore(), player.getDeaths()) == 1) {
player.pWins++;
} else {
player.pLosses++;
}
_root.attachMovie("summaryBoardMC", "sumMC", 200002);
qkRqyP("windowShow", sumMC);
sumMC._x = 0;
sumMC._y = -17;
_root.attachMovie("xqTfcoFuRgQweq", "xqTfcoFuRgQweq", 200003);
xqTfcoFuRgQweq._x = 405;
xqTfcoFuRgQweq._y = 193;
clearGameGarbage();
displaySummaryScoresAnims();
keepAliveIntervalID = setInterval(sendKeepAlive, keepAliveTime);
sumMC.thumbsMC.thumbsUpThumbsDownMC.msgText0.text = (sumMC.thumbsMC.thumbsUpThumbsDownMC.msgText1.text = summaryText[5]);
sumMC.thumbsMC._visible = false;
if (!Boolean(player.vzTkeo)) {
summaryStartTime = getTimer() + (Math.max(-vwkowU, qkLwJE) * 1000);
} else {
summaryStartTime = getTimer() + (Math.max(-(vwkowU + zqBqOQ), qkLwJE) * 1000);
}
adCalled = false;
gotoAndStop ("roundSummaryFrame");
}
function pressThumb(rating) {
sumMC.thumbsMC.thumbsUpThumbsDownMC.msgText0.text = (sumMC.thumbsMC.thumbsUpThumbsDownMC.msgText1.text = summaryText[6]);
sumMC.thumbsMC.thumbsUpThumbsDownMC.BTNMCThumbsUp._visible = (sumMC.thumbsMC.thumbsUpThumbsDownMC.BTNMCThumbsDown._visible = false);
sumMC.thumbsMC.gotoAndPlay(2);
}
function startNextRound(firstRound) {
gameArea = _areaPlaying;
roundActive = true;
wipeMC.gotoAndStop(1);
stopAllSounds();
Key.addListener(gameKeyListener);
if (!firstRound) {
var _local1 = mapCycleList;
mapCycleList = _local1.substr(1, _local1.length - 1).concat(_local1.substr(0, 1));
mapNum = charToNumCaseSensitive(mapCycleList.substr(0, 1));
sendSetRoomVariable("mp=" + mapCycleList);
}
qkLwJE = (roundTime + vwkowU) + zqBqOQ;
lastRoundTimerUpdate = 1000;
sendRoomDetailRequest(currentRoomName, "updateRoundTime");
if (mapNum < 31) {
if (serverType[serverNum] == "COMPATIBILITY") {
currentArea.fileName = mapListCompat[mapNum];
} else {
currentArea.fileName = mapList[mapNum];
}
} else if (mapNum >= 42) {
currentArea.fileName = featureMapList[mapNum - 42];
} else {
currentArea.fileName = "Custom Map Slot " + (mapNum - 31);
}
initializeRoundVariables();
gameMode = 0;
cursorCrossHair();
gotoAndStop ("preMain");
}
function cursorCrossHair() {
var _local2 = xqHKUqTJ._rotation;
_root.attachMovie("xqHKUqTJ", "xqHKUqTJ", 987654321);
xqHKUqTJ._rotation = _local2;
xqHKUqTJ.xqHKUqTJ_._rotation = -(_local2 * 3);
startDrag ("xqHKUqTJ", true);
xqHKUqTJ.onMouseMove = function () {
updateAfterEvent();
};
if (serverType[serverNum] != "COMPATIBILITY") {
Mouse.hide();
} else {
xqHKUqTJ._alpha = 50;
}
}
function cursorNormal() {
stopDrag();
Mouse.show();
xqHKUqTJ.removeMovieClip();
xqHKUqTJ.unloadMovie();
}
function changeCursor(modeNum) {
var _local2 = "";
switch (modeNum) {
case _modeMoveMap :
_local2 = "cursorHandMC";
break;
case _modeMoveMapClosed :
_local2 = "cursorHandClosedMC";
break;
case _modeEyeDropper :
_local2 = "cursorEyeDropperMC";
break;
case _modePaintBrush :
_local2 = "cursorPaintBrushMC";
break;
case _modeMirrorX :
_local2 = "cursorMirrorXMC";
break;
case _modeMirrorY :
_local2 = "cursorMirrorYMC";
break;
case _modeRotate :
_local2 = "cursorRotateMC";
break;
case _modeDelete :
_local2 = "editorEraserMC";
break;
case _modeSpawnPlayer :
_local2 = "editorSpawnMC";
}
if ((modeNum >= 15) && (modeNum <= 26)) {
_local2 = ("pickup" + weapons[modeNum - 13].attackAnim) + "MC";
}
if (_local2 != "") {
_root.attachMovie(_local2, "xqHKUqTJ", 987654321, {_x:_root._xmouse, _y:_root._ymouse});
startDrag ("xqHKUqTJ", true);
xqHKUqTJ.onMouseMove = function () {
updateAfterEvent();
};
Mouse.hide();
} else {
cursorNormal();
}
}
function initializeArenaVariables() {
noRemotePlayersConfirmed = false;
noRemotePlayersIntervalID = setInterval(noRemotePlayers, noRemotePlayersDelay);
mainCount = 0;
playerCount = 0;
remotePlayers = new Array();
var _local1 = 0;
while (_local1 < maxNumPlayers) {
remotePlayers[_local1] = 0;
_local1++;
}
}
function initializeRoundVariables() {
jhPyXb = 0;
gameMode = 99;
lastGameMode = 0;
lastSendTime = 0;
avgDeltaTime = 100;
sendImmediate = false;
curFrameTime = 0;
frameDeltaTime = 133;
frameRate = 30;
chatting = false;
zqudUd = false;
voteKickVoted = false;
voteKickID = null;
voteKickVoteCount = 0;
voteKickStartTime = null;
voteKickInitiateTime = 10000;
wipe = true;
sendCount = (clickCount = (frameCount = (warnFPSCount = (warnPingCount = 0))));
displayControlHelp = true;
noInputTime = 0;
HUDMsg = new Array();
socketStack = new Array();
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("xqzCWxv.player" + remotePlayers[i]) + "MC")) {
facing = "20";
walk = false;
kkHBPP = false;
mod = "spawn";
kkNVHF = false;
xVel = 0;
yVel = 0;
vel = 0;
kills = 0;
lqbPCq = 0;
vzqcYA = 0;
recievedGameState = false;
frame = 1;
tqRxvU = true;
qxBVxE = 0;
newData = false;
newXML = null;
newDataStr = false;
newSocket = "";
syncedFrame = false;
remoteAvgPing = 100;
lastRemoteAvgPing = 100;
resetDeltaTimes();
animateSpawn();
}
}
i++;
}
player.tqCdjw = (player.vzIEZk = 60);
player.kkMgtg = -1;
player.vwcSWl = 11;
player.vwrUpa = player.vwcSWl - syfbsde;
player.vzqcYA = 13;
player.tqyenM = player.vzqcYA - kahseyu;
player.lqbPCq = (player.vwRQbz = 0);
player.lqQxjQ = getRank(player.qkXZhl);
player.walk = false;
player.kkHBPP = (player.jhPIDo = (player.jhqRmc = (player.vzkBov = false)));
player.qkRnoX = (player.zqbdMm = (player.tqRxvU = true));
player.vel = (player.xVel = (player.yVel = (player.qkXnUj = (player.vwAMij = (player.lqCHNz = (player.zqawOo = (player.vzkIZP = (player.vzYqkr = (player.qxBVxE = 0)))))))));
player.facing = (player.zqtoZQ = "20");
player.mod = "dead";
player.frame = 1;
player.jhfsqk = (player.qxvpxM = 150);
player.vwQgkb = (player.zqjprK = 133.3);
player.kkNVHF = true;
if (serverType[serverNum] == "COMPATIBILITY") {
optionQuality = 0;
optionBlood = 0;
optionParticles = false;
player.jhmDYs = reloadModifierCompat;
player.tqIdol = zqyaOM;
player.maxVel = playerMaxVelCompat;
maxPing = maxPingCompat;
minFPS = minFPSCompat;
serverTimeout = serverTimeoutCompat;
scrollSpeed = scrollSpeedCompat;
} else {
player.jhmDYs = 1;
player.tqIdol = lqWjjr;
player.maxVel = playerMaxVel;
maxPing = maxPingStandard;
minFPS = minFPSStandard;
serverTimeout = serverTimeoutStandard;
scrollSpeed = scrollSpeedStandard;
}
checkForClientUpdate();
}
function initializeRoundVariablePostMapLoad() {
lastFrameTime = getTimer();
clearInterval(keepAliveIntervalID);
oneSecondIntervalID = setInterval(vzkcca, 1000);
roundTimerIntervalID = setInterval(updateRoundTimer, 1000);
clickIntervalID = setInterval(checkClicks, 1111);
enterAreaIntervalID = setInterval(enterAreaDelayed, controlHelpDelay, false);
Key.addListener(enterAreaListener);
if (enforcePerformance) {
performanceIntervalID = setInterval(checkPerformance, performanceInterval);
}
lastMessageRecieved = getTimer();
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("xqzCWxv.player" + remotePlayers[i]) + "MC")) {
lastUpdate = getTimer();
}
}
i++;
}
if (serverType[serverNum] == "COMPATIBILITY") {
sendIntervalID = setInterval(sendFunction, minSendTimeCompat);
} else {
sendIntervalID = setInterval(sendFunction, minSendTime);
}
}
function returnToTitle(str) {
socket[serverNum].close();
loggedIn = false;
connectedToSever = false;
if (gameArea == _areaLobby) {
if (currentTab == _lobby) {
clearLobbyGarbage();
} else if (currentTab == _profile) {
clearProfileGarbage();
} else if (currentTab == _shop) {
clearShopGarbage();
} else if (currentTab == _editor) {
clearEditorGarbage();
}
} else if (gameArea == _areaPlaying) {
if (roundActive) {
clearGameGarbage();
} else {
clearSummaryGarbage();
}
clearInterval(roundTimerIntervalID);
} else if (gameArea == _areaTitleScreen) {
window2MC.removeMovieClip();
}
if (str == null) {
gotoAndStop ("titleFrame");
} else {
gotoFrame = "titleFrame";
msgText = str;
gotoAndStop ("preReturnFrame");
}
}
function returnToLobby(str, gtFrame) {
clearGameGarbage();
clearInterval(roundTimerIntervalID);
if (str == null) {
initializeRemotePlayersLobby();
enterLobby();
} else if (gtFrame == null) {
initializeRemotePlayersLobby();
enterLobby();
_root.attachMovie("window304ReturnToLobbyMessageMC", "windowReturnToLobbyMessageMC", 200009);
windowReturnToLobbyMessageMC._x = 133;
windowReturnToLobbyMessageMC._y = 85;
windowReturnToLobbyMessageMC.msgText0.text = (windowReturnToLobbyMessageMC.msgText1.text = str);
} else {
gotoFrame = gtFrame;
msgText = str;
gotoAndStop ("preReturnFrame");
}
}
function clearGameGarbage() {
setGameMode(99);
roundActive = false;
stopAllSounds();
unloadArea();
clearInterval(sendIntervalID);
clearInterval(clickIntervalID);
clearInterval(oneSecondIntervalID);
clearInterval(performanceIntervalID);
clearInterval(enterAreaIntervalID);
clearInterval(noRemotePlayersIntervalID);
Key.removeListener(gameKeyListener);
Key.removeListener(enterAreaListener);
windowMC.removeMovieClip();
leadMC.removeMovieClip();
xqOfED.damageFX.removeMovieClip();
xqOfED.shakeFX.removeMovieClip();
xqOfED.deathFX.removeMovieClip();
xqOfED.localDamageFX.removeMovieClip();
xqOfED.attachMovie("spawnFX", "spawnFX", 1203);
_root.attachMovie("resetFX", "resetFX", 200010);
var w = 0;
while (w < 8) {
if (eval (("xqzCWxv.pickup" + w) + "MC") != null) {
eval (("xqzCWxv.pickup" + w) + "MC").removeMovieClip();
}
w++;
}
cursorNormal();
}
function enterLobby() {
gameArea = _areaLobby;
loggedIn = true;
Key.addListener(lobbyKeyListener);
clearInterval(keepAliveIntervalID);
keepAliveIntervalID = setInterval(sendKeepAlive, keepAliveTime);
player.sendGetOwnedItemList();
gotoAndStop ("lobbyFrame");
lobbyChangeServer();
}
function lobbyChangeServer() {
currentRoomName = null;
noInputTime = 0;
socketStack = new Array();
chatPrivateBtnLobbyMC._visible = 0;
BTNJoinGameMC._visible = 0;
sendRoomListRequest();
}
function lobbyLogout() {
returnToTitle();
}
function clearLobbyGarbage() {
windowMC.removeMovieClip();
window2MC.removeMovieClip();
Key.removeListener(lobbyKeyListener);
clearInterval(refreshRoomsIntervalID);
clearInterval(kkxCkh);
clearInterval(joinPrivateTimeoutIntervalID);
clearInterval(keepAliveIntervalID);
}
function clearProfileGarbage() {
windowMC.removeMovieClip();
window2MC.removeMovieClip();
clearInterval(keepAliveIntervalID);
clearInterval(kkxCkh);
}
function clearShopGarbage() {
windowMC.removeMovieClip();
window2MC.removeMovieClip();
clearInterval(keepAliveIntervalID);
clearInterval(kkxCkh);
}
function clearEditorGarbage() {
delete bgScrollMC.onEnterFrame;
Key.removeListener(editorKeyListener);
windowHelpMC.removeMovieClip();
windowMC.removeMovieClip();
window3MC.removeMovieClip();
tilesMC.removeMovieClip();
tileSetsMC.removeMovieClip();
attachBorder();
cursorNormal();
}
function lobbyChatKeyPressed(privateMessage) {
if (chatMC.chatText0.text.substr(0, 1) == "/") {
var _local1 = processSlashSyntaxCommand(chatMC.chatText0.text);
if (_local1 != "") {
addLobbyMsg(">> " + _local1, ">> " + _local1);
}
chatMC.chatText0.text = (chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = "_"))));
} else if ((getTimer() - player.vwRQbz) > jhEZws) {
if (((chatMC.chatText0.text.length > 1) && (zqXJmt(chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1)))) && (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) != lastChatMsg)) {
player.vwRQbz = getTimer();
lastChatMsg = chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1);
if (privateMessage) {
var _local2 = getIDLobby(userBox.getItemAt(userBox.selectedIndex).label);
sendPrivateMessage(_local2, lastChatMsg);
} else {
player.sendChatMsg(lastChatMsg);
qkRqyP("release_silent", chatBtnLobbyMC, chatMC);
}
chatMC.chatText0.text = (chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = "_"))));
SFXBTNchat.start();
} else {
chatMC.chatText0.text = (chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = "_"))));
}
} else {
SFXBTNerror.start();
}
}
function sendPrivateMessage(a, m) {
var _local1 = getLocalIDLobby(a);
if (_local1 != -1) {
if (a != player.id) {
player.sendChatMsgPrivate(m, a);
qkRqyP("release", chatPrivateBtnLobbyMC, chatMC);
addLobbyMsg((((lobbyText[20] + getColoredNameLobby(_local1, false, false, true)) + lobbyText[21]) + ": ") + m, (((lobbyText[20] + remotePlayersLobby[_local1][1]) + lobbyText[21]) + ": ") + m);
SFXBTNchat.start();
} else {
addLobbyMsg(">> " + lobbyText[41], ">> " + lobbyText[41]);
SFXBTNerror.start();
}
} else {
addLobbyMsg(">> " + slashText[10], ">> " + slashText[10]);
SFXBTNerror.start();
}
}
function pressGetAPass() {
noInputTime = 0;
if ((postGetURLMC != undefined) && (postGetURLMC != null)) {
postGetURLMC.removeMovieClip();
}
_root.createEmptyMovieClip("postGetURLMC", 300000);
postGetURLMC.username = uName;
postGetURLMC.RID = random(100000);
postGetURLMC.getURL(buyPassURL, "_blank", "GET");
}
function processSlashSyntaxCommand(commandStr) {
commandStr = commandStr.substr(1, commandStr.length - 2);
if (gameArea == _areaLobby) {
if ((commandStr.toLowerCase() == "help") || (commandStr == "?")) {
return(slashText[1]);
}
if (commandStr.substr(0, 3).toLowerCase() == "log") {
if (commandStr.toLowerCase() == "log") {
return(slashText[8] + lqnJDL);
}
var _local10 = Number(commandStr.substr(3, commandStr.length - 3));
if ((((_local10 >= 10) && (_local10 <= 200)) && (_local10 != undefined)) && (_local10 != null)) {
lqnJDL = Number(_local10);
savePreferences();
return(slashText[6] + lqnJDL);
}
SFXBTNerror.start();
return(slashText[7]);
}
if (commandStr.substr(0, 6).toLowerCase() == "ignore") {
var _local3 = commandStr.split(" ");
if ((_local3[1] != undefined) && (_local3[1].length > 0)) {
return(ignoreUser(_local3[1]));
}
if (ignoreList.length == 0) {
return(slashText[15]);
}
return(slashText[14] + ignoreList.toString());
}
if (commandStr.substr(0, 5).toLowerCase() == "stats") {
var _local8 = 0;
var _local1 = 0;
while (_local1 <= playerCountLobby) {
if (remotePlayersLobby[_local1][_isBallistick] == 1) {
_local8++;
}
_local1++;
}
var _local9 = 0;
_local1 = 0;
while (_local1 < roomsLobby.length) {
var _local4 = arenaBox.getItemAt(_local1).data;
if (roomIsBallistick(_local4)) {
_local9++;
}
_local1++;
}
return((((((((((((". : Server Statistics for " + serverName[serverNum]) + " : .") + "\r") + playerCountLobby) + " Players in Lobby, ") + _local8) + " with Lab Pass") + "\r") + Math.max(0, roomsLobby.length - 1)) + " Visible Games, ") + _local9) + " Require Lab Pass");
}
if (commandStr.substr(0, 7).toLowerCase() == "connect") {
var _local3 = commandStr.split(" ");
if (((((int(player.userLevel) >= 1) && (_local3[1] != undefined)) && (_local3[1].length > 0)) && (_local3[2] != undefined)) && (_local3[2].length > 0)) {
var _local7 = serverName.length;
serverURL[_local7] = _local3[1];
serverName[_local7] = (_local3[1] + ":") + _local3[2];
connectPort[_local7] = int(_local3[2]);
serverType[_local7] = "PREMIUM";
serverPing[_local7] = 100;
serverBox.addItem((_local3[1] + ":") + _local3[2]);
serverBox.selectedIndex = _local7;
createNewSocketArrayObject(_local7);
lobbySelectServer();
return(((slashText[22] + _local3[1]) + slashText[23]) + _local3[2]);
}
return(slashText[7]);
}
if ((commandStr.substr(0, 2).toLowerCase() == "w ") || (commandStr.substr(0, 2).toLowerCase() == "t ")) {
var _local3 = commandStr.split(" ");
if ((_local3[1] != undefined) && (_local3[2] != undefined)) {
var _local5 = false;
var _local4 = _local3[1];
var _local1 = 0;
while (_local1 < remotePlayersLobby.length) {
if (remotePlayersLobby[_local1][1] == _local4) {
_local5 = true;
var _local6 = remotePlayersLobby[_local1][0];
}
_local1++;
}
if (_local5) {
sendPrivateMessage(_local6, commandStr.substr(_local3[1].length + 3, (commandStr.length - _local3[1].length) + 3));
return("");
}
return(slashText[10]);
}
SFXBTNerror.start();
return(slashText[7]);
}
if (commandStr.substr(0, 2).toLowerCase() == "r ") {
if (lastPrivateMessageSenderID != undefined) {
var _local12 = commandStr.substr(2, commandStr.length - 2);
sendPrivateMessage(lastPrivateMessageSenderID, _local12);
return("");
}
SFXBTNerror.start();
return(slashText[9]);
}
}
if (commandStr.toLowerCase() == "filter") {
if (optionLanguageFilter) {
return(slashText[4]);
}
return(slashText[5]);
}
if (commandStr.toLowerCase() == "filter on") {
optionLanguageFilter = true;
savePreferences();
return(slashText[2]);
}
if (commandStr.toLowerCase() == "filter off") {
optionLanguageFilter = false;
savePreferences();
return(slashText[3]);
}
if (commandStr.toLowerCase() == "mod?") {
if (gameArea == _areaLobby) {
return(slashText[16]);
}
return(slashText[17]);
}
if (commandStr.substr(0, 2).toLowerCase() == "ip") {
var _local3 = commandStr.split(" ");
var _local5 = false;
var _local4 = _local3[1];
if (gameArea == _areaLobby) {
var _local1 = 0;
while (_local1 < remotePlayersLobby.length) {
if (remotePlayersLobby[_local1][1] == _local4) {
_local5 = true;
var _local6 = remotePlayersLobby[_local1][0];
_local1 = remotePlayersLobby.length;
}
_local1++;
}
} else {
var _local1 = 0;
while (_local1 < remotePlayers.length) {
if (getName(remotePlayers[_local1]) == _local4) {
_local5 = true;
var _local6 = remotePlayers[_local1];
_local1 = remotePlayers.length;
}
_local1++;
}
}
if (_local5) {
reportAction = "printIP";
reportUserID = _local6;
sendReportUser(_local6);
if (gameArea == _areaLobby) {
return(slashText[21] + _local4);
}
return(slashText[21] + getName(_local6));
}
return(slashText[10]);
}
if (((commandStr.substr(0, 4).toLowerCase() == "warn") || (commandStr.substr(0, 4).toLowerCase() == "kick")) || (commandStr.substr(0, 3).toLowerCase() == "ban")) {
var _local3 = commandStr.split(" ");
if ((_local3[2] != undefined) && (_local3[2].length > 0)) {
var _local5 = false;
var _local4 = _local3[1];
if (gameArea == _areaLobby) {
var _local1 = 0;
while (_local1 < remotePlayersLobby.length) {
if (remotePlayersLobby[_local1][_userName] == _local4) {
_local5 = true;
var _local6 = remotePlayersLobby[_local1][_serverID];
}
_local1++;
}
} else if (gameArea == _areaPlaying) {
var _local1 = 0;
while (_local1 < remotePlayers.length) {
if (getName(remotePlayers[_local1]) == _local4) {
_local5 = true;
var _local6 = remotePlayers[_local1];
}
_local1++;
}
}
if (_local3[0] == "warn") {
if (_local5) {
var _local11 = commandStr.substr((_local3[0].length + _local3[1].length) + 2, commandStr.length - ((_local3[0].length + _local3[1].length) + 2));
sendModeratorWarn(_local6, _local11);
return(((("Sent warning to " + _local4) + " - \"") + _local11) + "\"");
}
return(slashText[10]);
}
if (_local3[0] == "ban") {
if (_local3[2] != undefined) {
if (_local3[3] != undefined) {
if ((Number(_local3[2]) > 0) && (Number(_local3[2]) < modBanTimes.length)) {
var _local11 = commandStr.substr(((_local3[0].length + _local3[1].length) + _local3[2].length) + 3, commandStr.length - (((_local3[0].length + _local3[1].length) + _local3[2].length) + 3));
if (_local4.indexOf("&") == 0) {
sendModeratorIDBan(_local3[1].substr(1, _local3[1].length - 1), modBanTimes[Number(_local3[2])], _local11);
return(((((("Banned Client ID" + _local3[1].substr(1, _local3[1].length - 1)) + " for ") + formatTime(Number(modBanTimes[Number(_local3[2])]))) + " - \"") + _local11) + "\"");
}
sendModeratorBan(_local4, modBanTimes[Number(_local3[2])], _local11);
return(((((("Banned " + _local4) + " for ") + formatTime(Number(modBanTimes[Number(_local3[2])]))) + " - \"") + _local11) + "\"");
}
return(slashText[19]);
}
return(slashText[24]);
}
return(slashText[20]);
}
} else {
SFXBTNerror.start();
return(slashText[7]);
}
}
SFXBTNerror.start();
if (gameArea == _areaLobby) {
return(slashText[0]);
}
return(slashText[18]);
}
function ignoreUser(n) {
var _local5 = false;
var _local1 = 0;
while (_local1 < remotePlayersLobby.length) {
if (new String(remotePlayersLobby[_local1][1]) eq new String(n)) {
_local5 = true;
var _local4 = remotePlayersLobby[_local1][0];
}
_local1++;
}
if (_local5) {
var _local6 = false;
_local1 = 0;
while (_local1 < ignoreList.length) {
if (new String(ignoreList[_local1]) eq new String(n)) {
_local6 = true;
var _local3 = _local1;
}
_local1++;
}
if (_local6) {
var _local7 = ignoreList.slice(0, Math.max(0, _local3));
var _local8 = ignoreList.slice(_local3 + 1, ignoreList.length);
ignoreList = _local7.concat(_local8);
return((slashText[11] + n) + slashText[13]);
}
ignoreList[ignoreList.length] = n;
return((slashText[11] + n) + slashText[12]);
}
return(slashText[10]);
}
function setCustomObjectColor(mc0, r0, g0, b0, alpha, subtractiveMode) {
if (subtractiveMode) {
var _local2 = 255;
} else {
var _local2 = 0;
}
var _local1 = new Object();
_local1 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local1.rb = -(_local2 - r0);
_local1.gb = -(_local2 - g0);
_local1.bb = -(_local2 - b0);
_local1.aa = alpha;
var _local3 = new Color(mc0);
_local3.setTransform(_local1);
}
function setCustomObject2Colors(mc0, mc1, r0, g0, b0, r1, g1, b1, alpha, subtractiveMode) {
if (subtractiveMode) {
var _local1 = 255;
} else {
var _local1 = 0;
}
var _local3 = new Object();
_local3 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.rb = -(_local1 - r0);
_local3.gb = -(_local1 - g0);
_local3.bb = -(_local1 - b0);
_local3.aa = alpha;
var _local2 = new Object();
_local2 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local2.rb = -(_local1 - r1);
_local2.gb = -(_local1 - g1);
_local2.bb = -(_local1 - b1);
_local2.aa = alpha;
var _local4 = new Color(mc0);
var _local5 = new Color(mc1);
_local4.setTransform(_local3);
_local5.setTransform(_local2);
}
function setPetAnimation(mcName, stateName) {
eval (mcName + ".colorMC0").gotoAndStop(stateName);
eval (mcName + ".colorMC1").gotoAndStop(stateName);
}
function updateCustomizationArrows(currentSelection, maxSelection) {
if (currentSelection == 0) {
arrowLeftMC.gotoAndStop("inactive");
} else {
arrowLeftMC.gotoAndStop("active");
}
if (currentSelection == (maxSelection - 1)) {
arrowRightMC.gotoAndStop("inactive");
} else {
arrowRightMC.gotoAndStop("active");
}
}
function selectCustomizationTab(tabMode) {
currentCustomizationTab = tabMode;
tabPetsMC.gotoAndStop("unselected");
tabSpinnersMC.gotoAndStop("unselected");
if (currentCustomizationTab == _pets) {
tabPetsMC.gotoAndStop("selected");
}
if (currentCustomizationTab == _spinners) {
tabSpinnersMC.gotoAndStop("selected");
}
}
function clearSpinnersCustomization() {
var i = 0;
while (eval ("spinnersMC.subSpinnersMC.indicatorMC" + i) != undefined) {
eval ("spinnersMC.subSpinnersMC.indicatorMC" + i).removeMovieClip();
if (eval ("spinnersMC.subSpinnersMC.lockMC" + i) != undefined) {
eval ("spinnersMC.subSpinnersMC.lockMC" + i).removeMovieClip();
}
i++;
}
}
function clearPetsCustomization() {
var i = 0;
while (eval ("petsMC.subSpinnersMC.petMC" + i) != undefined) {
eval ("petsMC.subSpinnersMC.petMC" + i).removeMovieClip();
if (eval ("petsMC.subSpinnersMC.lockMC" + i) != undefined) {
eval ("petsMC.subSpinnersMC.lockMC" + i).removeMovieClip();
}
i++;
}
}
function updateCustomizationTopAnimation() {
if (currentTab == _profile) {
xqOfED.xqQMWOK._rotation = xqOfED.xqQMWOK._rotation + 2;
xqOfED.xqlPkD._rotation = xqOfED.xqlPkD._rotation + 2;
} else {
char0MC.xqQMWOK._rotation = (char1MC.xqQMWOK._rotation = char1MC.xqQMWOK._rotation + 2);
char0MC.xqlPkD._rotation = (char1MC.xqlPkD._rotation = char1MC.xqlPkD._rotation + 2);
}
animateCount++;
if (animateCount > 60) {
animateCount = 0;
frameNum++;
if (currentTab == _profile) {
xqOfED.xqQMWOK.gotoAndStop(frameArray[frameNum]);
} else {
char0MC.xqQMWOK.gotoAndStop(frameArray[frameNum]);
char1MC.xqQMWOK.gotoAndStop(frameArray[frameNum]);
}
if (frameNum >= frameArray.length) {
frameNum = -1;
}
}
}
function playSound(soundObjStr) {
eval (soundObjStr).start();
}
function sortUsers(arrA, arrB) {
var _local2 = Number(arrA[_userLevel]);
var _local4 = Number(arrB[_userLevel]);
var _local6 = Number(Boolean(arrA[_isBallistick]));
var _local5 = Number(Boolean(arrB[_isBallistick]));
var _local3 = Number(arrA[_kills]);
var _local1 = Number(arrB[_kills]);
if (_local2 < _local4) {
return(1);
}
if (_local2 > _local4) {
return(-1);
}
if (_local6 < _local5) {
return(1);
}
if (_local6 > _local5) {
return(-1);
}
if (_local3 < _local1) {
return(1);
}
if (_local3 > _local1) {
return(-1);
}
return(0);
}
var bClient = true;
var qxhDHu = new Array();
var earth;
var earthWidth;
var earthHeight;
var earthMinX;
var earthMinY;
var earthMaxX = 25;
var earthMaxY = 25;
var qxdIYx;
var kkZxIY;
var xqzCWxvX;
var xqzCWxvY;
var leftCol;
var topRow;
var oldLeftCol;
var oldTopRow;
var kU = new Array();
var kD = new Array();
var kL = new Array();
var kR = new Array();
var kA = new Array();
var kW = new Array();
var kB = new Array();
var kC = new Array();
var HUDMsg;
var maxHUDMsgs = 5;
var rotArray = new Array(23);
rotArray[10] = 0;
rotArray[12] = 45;
rotArray[2] = 90;
rotArray[22] = 125;
rotArray[20] = 180;
rotArray[21] = 225;
rotArray[1] = 270;
rotArray[11] = 315;
var connectPort = new Array();
var socket = new Array();
var currentRoomName;
var roomCycleMode;
var roomDetailAction;
var roomVariableAction;
var tilesArray = new Array();
var tilesArrayRot = new Array();
var tilesArrayMirror = new Array();
var tilesArrayCol = new Array();
var dragXDif;
var dragYDif;
var numWeapons;
var weapons = new Array();
var BGMVolume = 70;
var SFXVolume = 100;
var globalVolume = 120;
var aeufinef = false;
var ijsjfnsdjfu = "";
var uonhbfsw = 511;
var weufhsdybf = false;
var verifyVersion = true;
var versionCheckURL = "http://server01.xgenstudios.com/stickarena/version_check.php";
var FPV8 = true;
var qxXcDx = false;
var specialOffer = false;
wtebfhsdbf(aeufinef, new Array(ooo("zeglqvwfkmq\famo", "\""), ooo("qvkaicpglc\famo", "\""), ooo("em`cnnkqvkai\famo", "\"")));
uufbehbfsj(weufhsdybf, parentPageKey);
if (aeufinef) {
var phpURL = "http://www.xgenstudios.com/stickarena/stick_arena.php";
var comPath = "../com/";
} else {
var phpURL = "stick_arena.php";
var comPath = "/com/";
}
var apiURL = "http://api.xgenstudios.com/?";
if (FPV8) {
var gameVersion = (("1." + uonhbfsw) + " (FP 8)");
} else {
var gameVersion = (("1." + uonhbfsw) + " (FP 7)");
}
gameVersion = gameVersion + " BLSK";
var buyPassURL = "http://www.xgenstudios.com/ballistick/account";
var manageAccountURL = "http://www.xgenstudios.com/ballistick/account/manage.php";
var syfbsde = random(10000);
var kahseyu = random(10000);
var versionLoaded = false;
var settingsLoaded = false;
var upgradeValuesLoaded = false;
var languageLoaded = false;
stop();
_quality = "BEST";
_focusrect = false;
fscommand ("allowscale", "false");
Stage.scaleMode = "noScale";
fscommand ("showmenu", "false");
var noMenu = new ContextMenu();
noMenu.hideBuiltInItems();
noMenu.onSelect = menuHandler;
_root.menu = noMenu;
attachBorder();
var skipIntro = false;
var autoQuickStart = false;
var uName = "";
var uPass = "";
var rememberUserName = false;
var loggedIn = false;
var loadedGame = false;
var loadGameArray = new Array();
var showLoad = false;
var isCurrentVersion = false;
var IDLEN = 3;
var serverNum = 0;
var serverName = new Array();
var serverURL = new Array();
var serverPort = new Array();
var serverType = new Array();
var serverLocale = new Array();
var serverPing = new Array();
var serverConnectTrys = new Array();
var lastSuccessfulPortNum = 0;
var connectionAvailable = true;
var portNum = 0;
var pingServerNum;
var pingTestComplete = true;
var serverConnectAttempt = new Array();
var joinServerNum = 0;
var numClients = Number;
var joinRoomName;
var joinRoomDetail;
var mapList = new Array();
var featureMapList = new Array();
var mapListCompat = new Array();
var mapListCustom = new Array();
var customMapListCurrent;
var displayCustomMapsOnArrival;
var displayCustomRoomNameOnArrival;
var mapNum = -1;
var mapCycleList;
var createGameMapRandomize;
var qkLwJE;
var lastRoundTimerUpdate;
var roundActive;
var lastMessageRecieved;
var collisionCheckGhost;
var maxNumPlayers;
var maxNumPlayersLobby;
var vzVKHI;
var tqejzX;
var lqnJDL;
var vzpYWL;
var serverTimeout;
var serverTimeoutStandard;
var serverTimeoutCompat;
var pingTestTimeout;
var lobbyRoomName;
var reportLobbyConnects;
var enforceConnection;
var minFPS;
var minFPSStandard;
var minFPSCompat;
var maxPing;
var maxPingStandard;
var maxPingCompat;
var warnFPSBoot;
var warnPingBoot;
var enforcePerformance;
var performanceInterval;
var noInputTime;
var noInputBootLobbyDelay;
var noInputBootGameDelay;
var refreshRoomsDelay;
var controlHelpDelay;
var noRemotePlayersDelay;
var noRemotePlayersConfirmed;
var RoundTime;
var vwkowU;
var summaryStartTime;
var zqBqOQ;
var adCalled;
var tutorialDelay;
var tutorialTimer;
var minSendTime;
var minSendTimeCompat;
var keepAliveTime;
var pingAvgPeriod;
var remoteSmoothing;
var remoteRotSmoothing;
var ghostAlpha = 0;
var jhEZws;
var warnClicks;
var warnClickDisplayTime;
var vzHhen;
var tqpQVt;
var displayPlayerIDs;
var timeNotify = new Array();
var rankKills = new Array();
var depthCount = 10000;
var particleCount = 0;
var maxParticles = 12;
var wave = 0;
var msgText;
var gotoFrame;
var fusebfysdfb = false;
var zqudUd;
var voteKickVoted;
var voteKickID;
var voteKickVoteCount;
var voteKickStartTime;
var voteKickInitiateTime;
var reportUserID;
var banUserName;
var mVerify;
var areaWidth = 0;
var areaHeight = 0;
var scrollSpeed;
var scrollSpeedStandard;
var scrollSpeedCompat;
var lqWjjr;
var playerMaxVel;
var zqyaOM;
var playerMaxVelCompat;
var friction = 0.65;
var gameArea;
var gameMode;
var lastGameMode;
var _areaTitleScreen = 0;
var _areaLobby = 1;
var _areaPlaying = 2;
var currentTab;
var lastTab;
var _lobby = 0;
var _profile = 1;
var _shop = 2;
var _editor = 3;
var _serverID = 0;
var _userName = 1;
var _hexColor = 2;
var _kills = 3;
var _userLevel = 4;
var _isBallistick = 5;
var _deaths = 6;
var _wins = 7;
var _losses = 8;
var _roundsStarted = 9;
var _num = 0;
var _red0 = 1;
var _green0 = 2;
var _blue0 = 3;
var _red1 = 4;
var _green1 = 5;
var _blue1 = 6;
var roomCreatorUserName;
var roomDetailDisplayMapID;
var passExpiryDialogueThreshhold;
var lastExpiryDialogueDate;
var clientBanned = false;
var banExpiryDate = 0;
var frameRateHistory = new Array(30, 30);
var frameLocalPingHistory = new Array(100, 100);
var frameRemoteAvgPingHistory = new Array(100, 100);
var graphScrollAmount = 1;
var frameRateGraph;
var pingGraphRemoteAvg;
var pingGraph;
var sysInfoState = 0;
var modBanTimes = new Array(5, 5, 30, 1440);
var lastSelectedObjectName;
var lastDetailRequestedObjectName;
var lastSelectedObjectType;
var _arena = 0;
var _player = 1;
var mapLoaded = false;
var jhPyXb = 0;
var consecutiveChecksWithCollision = 0;
var gl = (new flash.filters.GlowFilter());
gl.quality = 1;
gl.strength = 5;
gl.blurX = (gl.blurY = 3);
gl.color = 16777215 /* 0xFFFFFF */;
gl.alpha = 0.5;
var frameArray = new Array("fistIdle", "sledgeRunIdle", "glockRunIdle", "ak47RunIdle", "shotgunRunIdle", "flamethrowerRunIdle", "railgunRunIdle", "chainsawRunIdle", "laserswordRunIdle", "helmetRunIdle", "chaingunRunIdle");
var frameNum;
var currentCustomizationTab;
var _pets = 0;
var _spinners = 1;
var selectedShopPet = 0;
var maxShopPets = 6;
var selectedShopSpinner = 0;
var maxShopSpinners = 32;
var shopColor0X = 0;
var shopColor0Y = 0;
var shopColor1X = 0;
var shopColor1Y = 0;
var ticketWaiting = false;
var profileSelectedSpinner;
var profileSelectedPet;
var titleAction;
var connectAction;
var authenticateAction;
var joinRoomAction;
var errorAction;
var reportAction;
var lastSendTime;
var avgDeltaTime;
var sendImmediate;
var lastFrameTime;
var curFrameTime;
var frameDeltaTime;
var frameRate;
var socketStack;
var playerCount = 0;
var playerCountLobby = 0;
var roomCountLobby = 0;
var remotePlayers;
var remotePlayersLobby;
var roomsLobby;
var vipListLobby = new Array();
var wipe;
var chatting;
var lastChatMsg;
var lastChatSenderID;
var lastPrivateMessageSenderID;
var lastChatMsgReceived = 0;
var mainCount;
var sendCount;
var clickCount;
var frameCount;
var displayControlHelp;
var warnFPSCount;
var warnPingCount;
var sendIntervalID;
var roundTimerIntervalID;
var clickIntervalID;
var performanceIntervalID;
var enterAreaIntervalID;
var oneSecondIntervalID;
var keepAliveIntervalID;
var refreshRoomsIntervalID;
var kkxCkh = null;
var noRemotePlayersIntervalID;
var joinPrivateTimeoutIntervalID;
var pingTimeoutIntervalID;
var pingTestTimeoutIntervalID;
var tqfAjIIntervalID = null;
var setVIPButtonsActiveIntervalID;
var userHidLeaderBoard;
var optionQuality;
var optionBlood;
var optionLanguageFilter;
var optionParticles;
var optionUseBitmapCaching;
var deathDistance = new Array(32, 40, 75, 90, 105, 140, 180);
var deathAnims = 7;
var editorMinTilesWide;
var editorMinTilesHigh;
var editorMaxTilesWide;
var editorMaxTilesHigh;
var editorTileSet;
var editorSelectedTile;
var editorSelectedTileMirror;
var editorSelectedTileRotation;
var editorSelectedTileCollision;
var customMapNames = new Array();
var editorText = new Array();
var profileText = new Array();
var shopText = new Array();
var petText = new Array();
var petBehavior = new Array();
var spinnerText = new Array();
var slashText = new Array();
var ballistickOnlyMarker;
var customMarker;
var ratingValues = new Array();
var ratingNames = new Array();
var petScale = 75;
var connectedToSever = false;
var spinnerCosts = new Array();
var petCosts = new Array();
var mapSlotCosts = new Array();
var maxMapSlots = 5;
var numFreeSpinners;
var numFreeMapSlots;
var prizes = new Array();
var ignoreList = new Array();
var maxVIPListLength;
var numClassicMaps;
var numClassicMapsCompat;
var LobbyMsg = new Array();
var replyDataMaps;
var sendDataMaps;
var crossHairMC0X = -1;
var crossHairMC0Y = -1;
var crossHairMC1X = -1;
var crossHairMC1Y = -1;
var minPlayerColorValue = 6582527;
var maxPlayerColorValue = 16777158;
var adminMsgText;
var adminMsgHtml;
var timeNotifyText;
var versionNotCurrentText;
var rapidClickText;
var lowFPSText0;
var lowFPSText1;
var highPingText0;
var highPingText1;
var disconnectedText;
var logOutText;
var quitToLobbyText;
var bootToTitleText;
var bootToCompatText;
var controlHelpText;
var serversFullText;
var noConnectionText0;
var noConnectionText1;
var pingingText;
var compatModeText;
var compatServerText;
var inactiveText;
var voteKickText = new Array();
var leadText = new Array();
var optText = new Array();
var reportText = new Array();
var summaryText = new Array();
var HUDText = new Array();
var lobbyText = new Array();
var accountText = new Array();
var logInText = new Array();
var posText = new Array();
var defaultFirstNames = new Array();
var defaultLastNames = new Array();
var player = new stick();
var currentArea = new area();
initializeWeapons();
initializeWeaponsBallistick();
lobbyKeyListener = new Object();
lobbyKeyListener.onKeyDown = function () {
scapeGoat.setFocus();
noInputTime = 0;
pressedKey = Key.getAscii();
if ((pressedKey == 8) || (pressedKey == 37)) {
if (windowMC == null) {
chatMC.chatText0.text = chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 2) + "_";
} else if (windowMC.arenaNameMC._visible) {
windowMC.arenaNameMC.chatText0.text = windowMC.arenaNameMC.chatText0.text.substr(0, windowMC.arenaNameMC.chatText0.text.length - 2) + "_";
}
} else if (tqevnh(pressedKey) && (windowMC == null)) {
if (chatMC.chatText0.text.length < tqejzX) {
chatMC.chatText0.text = (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) + String.fromCharCode(pressedKey)) + "_";
} else {
SFXBTNerror.start();
}
} else if ((tqevnh(pressedKey) && (windowMC != null)) && (windowMC.arenaNameMC._visible)) {
if (windowMC.arenaNameMC.chatText0.text.length < vzpYWL) {
windowMC.arenaNameMC.chatText0.text = (windowMC.arenaNameMC.chatText0.text.substr(0, windowMC.arenaNameMC.chatText0.text.length - 1) + String.fromCharCode(pressedKey)) + "_";
} else {
SFXBTNerror.start();
}
} else if ((pressedKey == 38) && (windowMC == null)) {
if (((chatMC.chatText0.text.length < tqejzX) && (userBox.selectedIndex != null)) && (userBox.enabled)) {
chatMC.chatText0.text = (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) + userBox.getItemAt(userBox.selectedIndex).label) + "_";
} else {
SFXBTNerror.start();
}
}
if (windowMC == null) {
chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = chatMC.chatText0.text)));
} else if (windowMC.arenaNameMC._visible) {
windowMC.arenaNameMC.chatText1.text = (windowMC.arenaNameMC.chatText2.text = (windowMC.arenaNameMC.chatText3.text = (windowMC.arenaNameMC.chatText4.text = windowMC.arenaNameMC.chatText0.text)));
}
if ((pressedKey == kC[0]) && (windowMC == null)) {
lobbyChatKeyPressed();
}
};
enterAreaListener = new Object();
enterAreaListener.onKeyDown = function () {
enterAreaDelayed(true);
};
gameKeyListener = new Object();
gameKeyListener.onKeyDown = function () {
pressedKey = Key.getAscii();
if (gameMode == 2) {
if ((pressedKey == 8) || (pressedKey == 37)) {
chatMC.chatText0.text = chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 2) + "_";
} else if (tqevnh(pressedKey)) {
if (chatMC.chatText0.text.length < vzVKHI) {
chatMC.chatText0.text = (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) + String.fromCharCode(pressedKey)) + "_";
} else {
SFXBTNerror.start();
}
}
chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = chatMC.chatText0.text)));
}
if ((pressedKey == kC[0]) || (((pressedKey == kC[1]) || (pressedKey == kC[2])) && (gameMode != 2))) {
chatKeyPressed();
} else if (((player.mod == "dead") && (player.qxvpxM <= 90)) && (!userHidLeaderBoard)) {
userHidLeaderBoard = true;
}
if ((pressedKey == 96) || (pressedKey == 126)) {
toggleSysInfo();
}
};
XMLSocket.prototype.onData = function (src) {
lastMessageRecieved = getTimer();
var dataStr = new String(src);
var firstChar = new String(dataStr.substr(0, 1));
var senderID = new String(dataStr.substr(1, IDLEN));
var msgBody = new String(dataStr.substr(IDLEN + 1, dataStr.length - (IDLEN + 1)));
if (firstChar == "M") {
if (msgBody.substr(0, 1) == "1") {
with (eval (("xqzCWxv.player" + senderID) + "MC")) {
newDataStr = true;
newSocket = senderID.concat(msgBody.substr(1, msgBody.length - 1));
}
} else {
socketStack.push(dataStr.substr(1, dataStr.length - 1));
}
} else if (firstChar == "C") {
errorAction = null;
if (gameArea == _areaPlaying) {
addPlayer(senderID);
} else if (gameArea == _areaLobby) {
addPlayerLobby(senderID);
}
} else if (firstChar == "D") {
if (gameArea == _areaPlaying) {
removePlayer(senderID);
} else if (gameArea == _areaLobby) {
removePlayerLobby(senderID);
}
} else if (firstChar == "A") {
receiveAuthentication(dataStr.substr(1, dataStr.length - 1));
} else if (firstChar == "U") {
if (gameArea == _areaPlaying) {
socketStack.push(senderID.concat(firstChar.concat(msgBody)));
} else if (gameArea == _areaLobby) {
var playerStatsString = msgBody.substr(29, msgBody.length - 29);
var playerStatsArray = playerStatsString.split(";");
updatePlayerLobby(senderID, trimPoundSign(msgBody.substr(0, 20)), Number(trim(msgBody.substr(20, 3))), Number(trim(msgBody.substr(23, 3))), Number(trim(msgBody.substr(26, 3))), int(playerStatsArray[0]), int(playerStatsArray[1]), int(playerStatsArray[2]), int(playerStatsArray[3]), int(playerStatsArray[4]), Boolean(int(playerStatsArray[5])), int(playerStatsArray[6]));
}
} else if (dataStr.substr(0, 2) == "01") {
recieveRoomList(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "04") {
recieveRoomDetail(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "05") {
recieveRoomDetail(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "06") {
recieveRoomVariable(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "07") {
recieveReportUser(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "08") {
recieveServerNotFull();
} else if (dataStr.substr(0, 2) == "09") {
recieveError(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "0a") {
showTicket(Number(dataStr.substr(2, dataStr.length - 2)));
} else if (dataStr.substr(0, 2) == "0c") {
recieveOwnedItemList(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "0g") {
recieveModeratorWarn(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "0f") {
var banArray = dataStr.substr(2, dataStr.length - 2).split(";");
recieveModeratorBan(Number(banArray[0]), banArray[1]);
}
};
stick.prototype.sendCredWinRequest = function () {
socket[serverNum].send("0a");
};
stick.prototype.sendGetOwnedItemList = function () {
socket[serverNum].send("0c");
};
stick.prototype.sendSetActiveItem = function (itemID) {
socket[serverNum].send("0d" + itemID);
};
stick.prototype.sendBuyItem = function (itemCode, r0, g0, b0, r1, g1, b1) {
socket[serverNum].send((((((("0b" + pad(itemCode, 3)) + pad(r0, 3)) + pad(g0, 3)) + pad(b0, 3)) + pad(r1, 3)) + pad(g1, 3)) + pad(b1, 3));
};
stick.prototype.sendAuthentication = function () {
var _local1 = uName;
var _local2 = uPass;
socket[serverNum].send((("09" + _local1) + ";") + _local2);
};
stick.prototype.sendGameState = function () {
var _local2 = "";
var _local1 = 0;
while (_local1 < currentArea.weaponSpawnPoints) {
_local2 = _local2 + pad(Math.min(int(currentArea.weaponSpawn[_local1].timer), 99999), 5);
_local1++;
}
socket[serverNum].send("2" + _local2);
};
stick.prototype.sendPosition = function () {
startTime = getTimer();
var _local5 = Math.round((xqOfED._x - xqzCWxv._x) * 10);
var _local3 = Math.round((xqOfED._y - xqzCWxv._y) * 10);
var _local2 = Math.round(xqOfED.xqQMWOK._rotation);
if (_local2 < 0) {
_local2 = _local2 + 360;
}
var _local7 = Math.max(-9999, Math.round(this.yVel * 1000));
var _local8 = Math.max(-9999, Math.round(this.xVel * 1000));
var _local9 = this.facing;
var _local4 = Number(this.kkHBPP);
var _local10 = Number(this.walk);
var _local6 = Number(this.kkNVHF);
var _local11 = this.mod;
lastSendTime = getTimer();
socket[serverNum].send((((((((("1" + pad(_local5, 5)) + pad(_local3, 5)) + _local9) + pad(_local4, 1)) + pad(_local10, 1)) + pad(_local8, 5)) + pad(_local7, 5)) + pad(_local2, 3)) + pad(_local6, 1));
};
stick.prototype.sendAttack = function () {
var _local4 = Math.round(xqOfED._x - xqzCWxv._x);
var _local3 = Math.round(xqOfED._y - xqzCWxv._y);
var _local2 = Math.round(xqOfED.xqQMWOK._rotation);
if (_local2 < 0) {
_local2 = _local2 + 360;
}
var _local5 = qxojNK(this.qxBVxE);
socket[serverNum].send(((("4" + pad(_local4, 4)) + pad(_local3, 4)) + pad(_local2, 3)) + _local5);
};
stick.prototype.sendWeaponPickup = function (n) {
var _local2 = qxojNK(Number(this.qxBVxE));
socket[serverNum].send(("5" + _local2) + pad(n, 1));
};
stick.prototype.sendDamage = function (d, w, deg) {
if (deg < 0) {
deg = deg + 360;
}
socket[serverNum].send((("6" + pad(d, 2)) + qxojNK(w)) + pad(deg, 3));
};
stick.prototype.vwlVGv = function (a, w, deg) {
if (deg < 0) {
deg = deg + 360;
}
socket[serverNum].send((("7" + padStr(a, IDLEN)) + qxojNK(w)) + pad(deg, 3));
};
stick.prototype.sendSpawn = function (x, y) {
socket[serverNum].send(("8" + pad(x, 4)) + pad(y, 4));
};
stick.prototype.sendChatMsg = function (m) {
socket[serverNum].send("9" + m);
};
stick.prototype.sendChatMsgPrivate = function (m, a) {
socket[serverNum].send((("00" + padStr(a, IDLEN)) + "P") + m);
};
stick.prototype.sendVoteKick = function (a) {
socket[serverNum].send("K" + a);
};
stick.prototype.rackUpScore = function (p) {
p = posText[getPosition(this.getScore(), this.getDeaths())];
if ((p != scoreMC.scoreG1.scoreText.text) && (p != undefined)) {
var _local3 = Number(substring(scoreMC.scoreG1.scoreText.text, 0, 1));
SFXPositionChange.start();
if (getPosition(this.getScore(), this.getDeaths()) == 1) {
SFXPositionFirst.start();
}
scoreMC.gotoAndPlay(1);
scoreMC.scoreG1.scoreText.text = (scoreMC.scoreG2.scoreText.text = p);
}
};
stick.prototype.addToScore = function (p) {
this.vwcSWl = ((this.getScore() + p) * 13) + 11;
this.vwrUpa = this.vwcSWl - syfbsde;
this.lqbPCq = this.lqbPCq + p;
SFXKill.start();
};
stick.prototype.getScore = function () {
return((this.vwcSWl - 11) / 13);
};
stick.prototype.addToDeaths = function (p) {
this.vzqcYA = ((this.getDeaths() + p) * 11) + 13;
this.tqyenM = this.vzqcYA - kahseyu;
};
stick.prototype.getDeaths = function () {
return((this.vzqcYA - 13) / 11);
};
stick.prototype.updateHPBar = function () {
xqlIDPd.maskMC._x = -298 + ((this.tqCdjw / this.vzIEZk) * 198);
heartNum = int((this.tqCdjw / this.vzIEZk) * 3);
xqlIDPd.hideHearts();
eval (("xqlIDPd.heart" + heartNum) + "MC")._visible = 1;
};
stick.prototype.damage = function (d, a, w, deg) {
if (this.mod != "dead") {
d = int(d);
if (d != 0) {
var fsakndfeb = this.tqCdjw;
var unaufnevh = (this.tqCdjw - d);
if (tqfAjIIntervalID != null) {
clearInterval(tqfAjIIntervalID);
tqfAjIIntervalID = null;
}
tqfAjIIntervalID = setInterval(tqfAjI, 100, fsakndfeb, unaufnevh);
this.tqCdjw = this.tqCdjw - d;
if (optionQuality > 0) {
xqOfED.attachMovie("damageFX", "damageFX", 1200);
xqOfED.damageFX.red = d * 20;
xqOfED.damageFX.fade = d * 6;
xqOfED.attachMovie("shakeSAFX", "shakeFX", 1201);
xqOfED.shakeFX.xyMove = d / 2;
xqOfED.shakeFX.xyAcc = -Math.max(d / 6, 1);
}
xqlIDPd.attachMovie("shakeParentFX", "shakeFX", 1201);
xqlIDPd.shakeFX.xyMove = d / 2;
xqlIDPd.shakeFX.xyAcc = -Math.max(d / 6, 1);
xqlIDPd.attachMovie("damageHpFX", "damageHpFX", 1200);
xqlIDPd.damageHpFX.red = d * 60;
xqlIDPd.damageHpFX.fade = 24;
b = 0;
while (b < Math.pow(optionBlood, 2)) {
xqOfED.attachMovie((("blood" + weapons[w].bloodAnim) + random(weapons[w].bloodVariations)) + "MC", "bloodMC" + b, 1206 + b);
with (eval ("xqOfED.bloodMC" + b)) {
_rotation = (deg + random(Math.pow(optionBlood, 2) * 15)) - (Math.pow(optionBlood, 2) * 7.5);
_xscale = random(Math.pow(optionBlood, 2) * 10) + 100;
_yscale = random(Math.pow(optionBlood, 2) * 10) + 100;
}
b++;
}
adjustAndPlaySound(eval (("SFX" + weapons[w].attackAnim) + "Impact")[0], 0, 0);
}
this.updateHPBar();
this.sendDamage(d, w, deg);
if (this.tqCdjw <= 0) {
this.vzBiqW(a, w, deg);
}
}
};
stick.prototype.vzBiqW = function (a, w, deg) {
if (tqfAjIIntervalID != null) {
clearInterval(tqfAjIIntervalID);
tqfAjIIntervalID = null;
}
if (this.mod != "dead") {
this.vwlVGv(a, w, deg);
if (gameMode != 4) {
gotoAndStop ("deathFrame");
setQuality();
}
if (gameMode != 2) {
chatMC._visible = 0;
}
this.mod = "dead";
xqOfED.attachMovie("deathFX", "deathFX", 1200);
xqlIDPd.hideHearts();
xqlIDPd.heart0MC._visible = 1;
xqlIDPd.heart0MC.gotoAndStop(24);
animateDeath("xqOfED", a, w, deg, this.lqbPCq, xqOfED._x, xqOfED._y);
this.addToDeaths(1);
this.lqbPCq = 0;
userHidLeaderBoard = false;
xqzCWxv.charIndicatorMC._visible = false;
setPetAnimation("xqOfED.charPetMC.subPetMC.petMC", "death");
}
};
stick.prototype.spawn = function () {
if (gameMode == 3) {
gameMode = 0;
}
if (gameMode != 4) {
gotoAndStop ("mainFrame");
cursorCrossHair();
}
this.mod = "spawn";
this.qxvpxM = this.jhfsqk;
this.kkNVHF = (this.qkRnoX = (this.tqRxvU = true));
this.zqjprK = this.vwQgkb;
this.jhPIDo = (this.jhqRmc = false);
this.tqCdjw = this.vzIEZk;
this.pickUpWeapon(0, 9);
this.updateHPBar();
var rnd = random(currentArea.playerSpawnPoints);
moveToCoords(currentArea.spawnPoint[rnd].x, currentArea.spawnPoint[rnd].y);
this.sendSpawn(currentArea.spawnPoint[rnd].x, currentArea.spawnPoint[rnd].y);
updateLocalPlayerSpinnerAndPet();
xqOfED.attachMovie("spawnFX", "spawnFX", 1203);
xqOfED.xqQMWOK.gotoAndStop("fistIdle");
xqOfED.animateSpawn("Local");
adjustAndPlaySound(SFXspawn[0], 0, 0);
};
stick.prototype.spawnDone = function () {
xqOfED.xqPXnad._visible = 0;
xqOfED.xqlPkD._visible = 1;
xqOfED.xqQMWOK._visible = 1;
this.mod = "walk";
};
stick.prototype.pickUpWeapon = function (w, n) {
if (w > 0) {
this.zqjprK = this.zqjprK - 66.6;
}
this.qxBVxE = w;
this.sendWeaponPickup(n);
var i = 1;
while (i < numWeapons) {
with (eval (("currentWeaponMC.weapon" + i) + "MC")) {
_visible = 0;
}
i++;
}
with (eval (("currentWeaponMC.weapon" + w) + "MC")) {
_visible = 1;
}
};
stick.prototype.qkkHBe = function () {
if (this.vzYqkr == 0) {
if ((this.mod == "walk") || (this.mod == "stand")) {
this.sendAttack();
var rnd = (random(weapons[this.qxBVxE].variations) + 1);
xqOfED.xqQMWOK.gotoAndStop((weapons[this.qxBVxE].attackAnim + "Attack") + rnd);
xqOfED.xqQMWOK.xqXsIpBu.gotoAndPlay(1);
xqOfED.xqQMWOK.xqXsIpBu.xqvbrGeIhaB._visible = 0;
if (optionParticles) {
attachParticles(weapons[this.qxBVxE].particleAnim, weapons[this.qxBVxE].attackAnim, xqOfED._x - xqzCWxv._x, xqOfED._y - xqzCWxv._y, xqOfED.xqQMWOK._rotation);
} else {
attachParticles(weapons[this.qxBVxE].particleAnimLow, weapons[this.qxBVxE].attackAnim, xqOfED._x - xqzCWxv._x, xqOfED._y - xqzCWxv._y, xqOfED.xqQMWOK._rotation);
}
adjustAndPlaySound(eval ((("SFX" + weapons[this.qxBVxE].attackAnim) + (rnd - 1)) + "0")[0], 0, 0);
this.vzYqkr = weapons[this.qxBVxE].qxnoMx * 33;
this.tqRxvU = (this.vzkBov = (this.qkRnoX = false));
if (Number(this.qxBVxE) > 0) {
this.zqjprK = 0;
} else if (Number(this.qxBVxE) == 0) {
this.zqjprK = this.zqjprK - 33.3;
}
}
}
};
stick.prototype.autoAttack = function () {
if ((((this.jhPIDo && (weapons[this.qxBVxE].automatic)) || (this.jhPIDo && (this.qkRnoX))) || (this.jhqRmc && (weapons[this.qxBVxE].automatic))) || (this.jhqRmc && (this.zqbdMm))) {
if ((_root._xmouse > 65) || (_root._ymouse < 370)) {
this.qkkHBe();
}
}
};
stick.prototype.doneAttack = function () {
this.tqRxvU = true;
if ((this.mod == "walk") && (!this.walk)) {
xqOfED.xqQMWOK.gotoAndStop(weapons[this.qxBVxE].runAnim + "Idle");
} else {
xqOfED.xqQMWOK.gotoAndStop(weapons[this.qxBVxE].idleAnim + "Idle");
}
};
stick.prototype.move = function () {
startTime = getTimer();
if ((this.mod == "walk") || (this.mod == "stand")) {
if (gameMode < 2) {
if (keyIsDownMulti("A")) {
this.jhqRmc = true;
} else {
this.jhqRmc = false;
this.zqbdMm = true;
}
if (keyIsDownMulti("W")) {
this.walk = true;
} else {
this.walk = false;
}
this.kkHBPP = true;
this.zqtoZQ = this.facing;
if (keyIsDownMulti("R")) {
if (keyIsDownMulti("D")) {
this.facing = "22";
} else if (keyIsDownMulti("U")) {
this.facing = "12";
} else {
this.facing = "02";
}
} else if (keyIsDownMulti("L")) {
if (keyIsDownMulti("D")) {
this.facing = "21";
} else if (keyIsDownMulti("U")) {
this.facing = "11";
} else {
this.facing = "01";
}
} else if (keyIsDownMulti("D")) {
this.facing = "20";
} else if (keyIsDownMulti("U")) {
this.facing = "10";
} else {
this.kkHBPP = false;
}
if (this.zqtoZQ != this.facing) {
sendImmediate = true;
noInputTime = 0;
}
}
xyVel = ygsfeyb(this.facing, this.walk, this.kkHBPP, this.xVel, this.yVel, this.qxBVxE);
xyVel = vnrysg(xqOfED._x, xqOfED._y, xyVel[0], xyVel[1]);
xyVel = ehbdybe(xyVel[0], xyVel[1], this.mod, this.kkHBPP);
this.xVel = xyVel[0];
this.yVel = xyVel[1];
this.vel = xyVel[2];
this.mod = xyVel[3];
this.frame = animatePlayer("xqOfED", this.mod, this.walk, this.tqRxvU, this.qxBVxE, this.frame, this.vel, this.facing, this.kkNVHF);
startTime = getTimer();
lastRot = xqOfED.xqQMWOK._rotation;
var _local4 = Math.atan2(_root._ymouse - xqOfED._y, _root._xmouse - xqOfED._x);
var _local5 = Math.round((_local4 * 180) / Math.PI);
xqOfED.xqQMWOK._rotation = (cRot = _local5 + 90);
if (cRot < 0) {
cRot = cRot + 360;
}
dif = 0;
if (Math.abs(cRot - lastRot) > 1) {
if (Math.abs(cRot - lastRot) <= 180) {
dif = Math.abs(cRot - lastRot);
if (lastRot <= cRot) {
dif = -dif;
}
} else if (lastRot > cRot) {
dif = -((360 - lastRot) + cRot);
} else {
dif = (360 - cRot) + lastRot;
}
}
dif = -dif;
this.vzkIZP = 0;
avgPeriod = 0;
var _local3 = avgPeriod - 1;
while (_local3 > 0) {
this.tRotVels[_local3] = this.tRotVels[_local3 - 1];
this.vzkIZP = this.vzkIZP + this.tRotVels[_local3];
_local3--;
}
this.tRotVels[0] = dif;
this.vzkIZP = this.vzkIZP + dif;
this.vzkIZP = int(this.vzkIZP / avgPeriod);
if (Math.abs(dif) >= 1) {
this.vzkIZP = 0;
}
idle(idl, this.vel);
startTime = getTimer();
if (xqOfED._x > this.lqhyTo) {
val = (xqOfED._x - this.lqhyTo) / scrollSpeed;
if ((xqzCWxvX - val) < earthMinX) {
val = xqzCWxvX - earthMinX;
}
xqzCWxvX = xqzCWxvX - val;
xqOfED._x = xqOfED._x - (val - this.xVel);
} else if (xqOfED._x < this.kkTFqm) {
val = (xqOfED._x - this.kkTFqm) / scrollSpeed;
if ((xqzCWxvX - val) > earthMaxX) {
val = xqzCWxvX - earthMaxX;
}
if (val > -0.3) {
val = 0;
}
xqzCWxvX = xqzCWxvX - val;
xqOfED._x = xqOfED._x - (val - this.xVel);
} else {
xqOfED._x = xqOfED._x + this.xVel;
}
if (xqOfED._y > this.tqNVWV) {
val = (xqOfED._y - this.tqNVWV) / scrollSpeed;
if ((xqzCWxvY - val) < earthMinY) {
val = xqzCWxvY - earthMinY;
}
xqzCWxvY = xqzCWxvY - val;
xqOfED._y = xqOfED._y - (val - this.yVel);
} else if (xqOfED._y < this.qxsocf) {
val = (xqOfED._y - this.qxsocf) / scrollSpeed;
if ((xqzCWxvY - val) > earthMaxY) {
val = xqzCWxvY - earthMaxY;
}
if (val > -0.3) {
val = 0;
}
xqzCWxvY = xqzCWxvY - val;
xqOfED._y = xqOfED._y - (val - this.yVel);
} else {
xqOfED._y = xqOfED._y + this.yVel;
}
xqzCWxv._x = Math.round(xqzCWxvX);
xqzCWxv._y = Math.round(xqzCWxvY);
xqzCWxv.charIndicatorMC._x = -(xqzCWxv._x - xqOfED._x);
xqzCWxv.charIndicatorMC._y = -(xqzCWxv._y - xqOfED._y);
}
if (this.mod == "dead") {
this.qxvpxM = this.qxvpxM - Math.max(1, int((frameDeltaTime / 4) / 33.3));
if (this.qxvpxM <= 0) {
this.spawn();
}
} else if (this.kkNVHF) {
this.zqjprK = this.zqjprK - Math.max(1, int((frameDeltaTime / 4) / 33.3));
if (this.zqjprK <= 0) {
this.kkNVHF = false;
}
}
if (this.vzYqkr > 0) {
this.vzYqkr = Math.max(0, this.vzYqkr - int(frameDeltaTime / 4));
}
updateEarth();
};
Instance of Symbol 356 MovieClip in Frame 1
onClipEvent (enterFrame) {
_parent.controlCharacterSittingAnimation();
}
Frame 2
function titleFrame() {
if (tutorialTimer != -1) {
tutorialTimer = tutorialTimer + 33.33;
}
if (tutorialTimer > tutorialDelay) {
startTutorial();
}
if (!pingTestComplete) {
windowPingMC.msgText0.text = (windowPingMC.msgText1.text = getPingingText());
}
}
function startTutorial() {
tutorialTimer = -1;
tutorialMC.gotoAndPlay(2);
titleMenuMC._visible = (titleVersionMC._visible = (title00MC._visible = 0));
}
function tutorialDone() {
SFXSATheme.stop();
SFXSATheme.start(5.65);
tutorialTimer = 0;
tutorialMC.gotoAndStop(1);
titleBG._visible = (titleVersionMC._visible = (title00MC._visible = 1));
titleMenuMC._visible = pingTestComplete;
windowPingMC._visible = !pingTestComplete;
if (!pingTestComplete) {
qkRqyP("windowShow", windowPingMC);
} else {
qkRqyP("windowShow", titleMenuMC);
}
}
function doneSAIntro() {
if (autoQuickStart) {
pressQuickStart();
}
SAIntroMC._visible = 0;
titleMenuMC._visible = pingTestComplete;
windowPingMC._visible = !pingTestComplete;
if (!pingTestComplete) {
qkRqyP("windowShow", windowPingMC);
} else {
qkRqyP("windowShow", titleMenuMC);
}
if (specialOffer) {
specialOfferMC._visible = true;
specialOfferMC.msgText0.text = (specialOfferMC.msgText1.text = logInText[13]);
} else {
specialOfferMC._visible = false;
}
}
function bypassSAIntro(userInitiated) {
if (!introBypassed) {
introBypassed = true;
if (userInitiated) {
userInitiatedBypass = true;
SFXSATheme.stop();
SFXSATheme.start(5.65);
SAIntroMC.gotoAndPlay(171);
}
titleBG._visible = (titleVersionMC._visible = (title00MC._visible = 1));
tutorialTimer = 0;
}
}
function pressQuickStart() {
tutorialTimer = -1;
titleMenuMC._visible = 0;
player.vwYpkt = getRandomName();
player.col = generateColor(300, 600);
player.hexColor = RGBToHex(player.col.rb, player.col.gb, player.col.bb, 100);
player.qkXZhl = 0;
player.qxeXqu = 0;
player.spinners = [];
player.pets = [];
profileSelectedSpinner = (player.vzpVuQ = player.spinners.length);
player.spinners[player.spinners.length] = {num:0, red0:player.col.rb, green0:player.col.gb, blue0:player.col.bb, red1:player.col.rb, green1:player.col.gb, blue1:player.col.bb, itemID:0};
initializeArenaVariables();
var _local1 = 0;
while (_local1 < serverName.length) {
serverConnectTrys[_local1] = 0;
_local1++;
}
connectAction = "quickStart";
connectToServer(serverNum, serverNum);
}
function performLogIn() {
tutorialTimer = -1;
titleMenuMC._visible = 0;
var _local2 = 0;
while (_local2 < serverName.length) {
serverConnectTrys[_local2] = 0;
_local2++;
}
errorAction = "login";
connectAction = "authenticate";
authenticateAction = "lobby";
_root.attachMovie("window200LoginMsgMC", "window2MC", 200001, {_x:175, _y:199});
window2MC.msgText0.text = (window2MC.msgText1.text = ((((logInText[6] + "\r") + "\r") + "(") + serverName[serverNum]) + ")");
connectToServer(serverNum, serverNum);
}
function pressCancelLogIn() {
connectAction = "disconnect";
socket[serverNum].close();
tutorialTimer = 0;
window2MC.removeMovieClip();
titleMenuMC._visible = 1;
selectRandomServerAndPort();
qkRqyP("windowShow", titleMenuMC);
}
function pressTutorial() {
SFXSATheme.stop();
startTutorial();
}
function pressLogIn() {
tutorialTimer = -1;
titleMenuMC._visible = 0;
_root.attachMovie("window470LogInMC", "windowMC", 200000, {_x:40, _y:170});
qkRqyP("windowShow", windowMC);
windowMC.usernameText.text = uName;
var i = 0;
while (i < 3) {
var n = 0;
while (n < 2) {
str = "windowMC.h" + i;
with (eval ((str + "Text") + n)) {
text = logInText[i];
}
n++;
}
i++;
}
windowMC.h3Text0.text = (windowMC.h3Text1.text = logInText[11]);
windowMC.BTNadvancedMC.textBox0.text = (windowMC.BTNadvancedMC.textBox1.text = logInText[13]);
var sFontName = windowMC.tDummy.getTextFormat(0, 1).font;
with (windowMC.checkBoxRemember) {
fontSize = 8;
color = "0xA1CAFF";
setStyle("embedFonts", true);
setStyle("fontFamily", sFontName);
}
Key.addListener(loginKeyListener);
}
function pressLogInOK(n, p) {
showLogInTextBoxes(false);
var _local1 = null;
n = windowMC.usernameText.text.toLowerCase();
p = windowMC.pass0Text.text;
var _local4 = new Date();
if (n.length > 2) {
if (isLegalAccountString(n)) {
if (containsNoFilteredLanguage(n)) {
if (isLegalAccountString(p)) {
if (p.length > 2) {
if ((!clientBanned) || (banDate != _local4.getDate())) {
if ((serverType[serverNum] == "PREMIUM") && (n ne uName)) {
selectRandomServerAndPort();
}
clientBanned = false;
banDate = 0;
uName = n;
uPass = p;
rememberUserName = windowMC.checkBoxRemember.selected;
savePreferences();
windowMC.removeMovieClip();
window2MC.removeMovieClip();
Key.removeListener(loginKeyListener);
performLogIn();
} else {
_local1 = logInText[10];
}
} else {
_local1 = accountText[9];
}
} else {
_local1 = accountText[7];
}
} else {
_local1 = accountText[12];
}
} else {
_local1 = accountText[8];
}
} else {
_local1 = accountText[11];
}
if (_local1 != null) {
displayLogInMessage(_local1);
}
}
function pressLogInClose() {
tutorialTimer = 0;
windowMC.removeMovieClip();
Key.removeListener(loginKeyListener);
titleMenuMC._visible = 1;
qkRqyP("windowShow", titleMenuMC);
}
function pressCreateAccount() {
tutorialTimer = -1;
titleMenuMC._visible = 0;
_root.attachMovie("window470CreateAccountMC", "windowMC", 200000);
windowMC._x = 40;
windowMC._y = 170;
qkRqyP("windowShow", windowMC);
var i = 0;
while (i < 6) {
var n = 0;
while (n < 2) {
str = "windowMC.h" + i;
with (eval ((str + "Text") + n)) {
text = accountText[i];
}
n++;
}
i++;
}
windowMC.xqOfED.xqlPkD.gotoAndStop(3);
windowMC.xqOfED.xqlPkD.legs.play();
windowMC.crossHairMC._x = random(int(windowMC.colorPickerMC._width)) + windowMC.colorPickerMC._x;
windowMC.crossHairMC._y = random(int(windowMC.colorPickerMC._height)) + windowMC.colorPickerMC._y;
}
function pressCreateAccountClose() {
tutorialTimer = 0;
windowMC.removeMovieClip();
titleMenuMC._visible = 1;
qkRqyP("windowShow", titleMenuMC);
}
function pressCreateAccountOK(n, p, p2, e, r, g, b) {
showAccountTextBoxes(false);
var _local2 = null;
n = n.toLowerCase();
e = e.toLowerCase();
if (n.length > 2) {
if (isLegalAccountString(n)) {
if (containsNoFilteredLanguage(n)) {
if (isLegalAccountString(p)) {
if (p.length > 2) {
if (p == p2) {
uName = n;
uPass = p;
errorAction = "createAccount";
var _local6 = (pad(r, 3).toString() + pad(g, 3).toString()) + pad(b, 3).toString();
var replyDataPHP = new LoadVars();
var _local3 = new LoadVars();
_local3.action = "create";
_local3.username = n;
_local3.userpass = p;
_local3.usercol = _local6;
_local3.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
performLogIn();
} else {
displayCreateAccountMessage(accountText[14]);
}
} else {
displayCreateAccountMessage(accountText[13]);
}
};
} else {
_local2 = accountText[10];
}
} else {
_local2 = accountText[9];
}
} else {
_local2 = accountText[7];
}
} else {
_local2 = accountText[12];
}
} else {
_local2 = accountText[8];
}
} else {
_local2 = accountText[11];
}
if (_local2 != null) {
displayCreateAccountMessage(_local2);
}
}
function showAccountTextBoxes(b) {
windowMC.usernameText._visible = (windowMC.pass0Text._visible = (windowMC.pass1Text._visible = (windowMC.emailText._visible = (windowMC.colorPickerMC._visible = (windowMC.btnXMC._visible = (windowMC.btnOKMC._visible = b))))));
}
function showLogInTextBoxes(b) {
windowMC.usernameText._visible = (windowMC.pass0Text._visible = (windowMC.btnXMC._visible = (windowMC.btnOKMC._visible = b)));
}
function displayCreateAccountMessage(msg) {
_root.attachMovie("window304CreateAccountMessageMC", "window2MC", 200001, {_x:123, _y:10});
qkRqyP("windowShow", window2MC);
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
}
function displayLogInMessage(msg) {
_root.attachMovie("window304LogInMessageMC", "window2MC", 200001, {_x:123, _y:10});
qkRqyP("windowShow", window2MC);
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
}
function closeCreateAccountMessage() {
showAccountTextBoxes(true);
}
function closeLogInMessage() {
showLogInTextBoxes(true);
}
function pressCloseSpecialOffer() {
specialOfferMC._visible = false;
specialOffer = false;
}
stop();
_quality = "BEST";
stopAllSounds();
if (!isCurrentVersion) {
gotoFrame = "deadEnd";
msgText = versionNotCurrentText;
gotoAndStop ("preReturnFrame");
} else {
checkForClientUpdate();
}
titleVersionMC.versionText.text = (titleVersionMC.versionText0.text = (titleVersionMC.versionText1.text = (titleVersionMC.versionText2.text = (titleVersionMC.versionText3.text = (titleVersionMC.reflectionMC.versionText.text = (titleVersionMC.reflectionMC.versionText0.text = (titleVersionMC.reflectionMC.versionText1.text = (titleVersionMC.reflectionMC.versionText2.text = (titleVersionMC.reflectionMC.versionText3.text = "v " + gameVersion)))))))));
titleBG._visible = (titleMenuMC._visible = (windowPingMC._visible = (titleVersionMC._visible = (title00MC._visible = (instructionsMC._visible = (loadGameMC._visible = 0))))));
if (!specialOffer) {
specialOfferMC._visible = false;
}
var introBypassed = false;
var userInitiatedBypass = false;
gameArea = 0;
if (skipIntro) {
bypassSAIntro(true);
} else {
SFXSATheme.stop();
SFXSATheme.start();
}
if (titleAction == "quickStart") {
titleAction = null;
pressQuickStart();
SAIntroMC._visible = 0;
SFXSATheme.stop();
}
loginKeyListener = new Object();
loginKeyListener.onKeyDown = function () {
pressedKey = Key.getAscii();
if (pressedKey == 13) {
pressLogInOK();
}
};
Instance of Symbol 941 MovieClip "SAIntroMC" in Frame 2
on (press) {
_parent.bypassSAIntro(true);
}
Instance of Symbol 234 MovieClip in Frame 2
onClipEvent (enterFrame) {
_parent.titleFrame();
}
Instance of Symbol 1345 MovieClip "tutorialMC" in Frame 2
on (press) {
_parent.tutorialDone();
}
Frame 3
function lobbyInitializeComponents() {
sFontName = tDummy.getTextFormat(0, 1).font;
tDummy._visible = 0;
_global.styles.TextArea.setStyle("fontFamily", "FFF Astro");
_global.style.setStyle("themeColor", 11260150);
var objectList = new Array("serverBox", "userBox", "arenaBox");
var i = 0;
while (i < objectList.length) {
with (eval (objectList[i])) {
fontSize = 8;
color = "0xA1CAFF";
setStyle("embedFonts", true);
setStyle("fontFamily", sFontName);
}
i++;
}
serverBox.backgroundColor = "0x4E657B";
userBox.backgroundColor = "0x000000";
arenaBox.backgroundColor = "0x000000";
serverBox.openDuration = 150;
arenaBox.defaultIcon = "rank2MCLobby";
arenaBox.iconField = "icon";
userBox.color = "0x224581";
userBox.setStyle("themeColor", 16777215);
userBox.defaultIcon = "rank1MCLobby";
userBox.iconField = "icon";
var i = 0;
while (i < serverName.length) {
serverBox.addItem(serverName[i]);
i++;
}
serverBox.selectedIndex = serverNum;
chatMC.cacheAsBitmap = (lobbyMsgs.cacheAsBitmap = (lobbyMsgs0.cacheAsBitmap = (lobbyMsgsBorderMC.cacheAsBitmap = (chatBtnLobbyMC.cacheAsBitmap = (chatPrivateBtnLobbyMC.cacheAsBitmap = (BTNJoinGameMC.cacheAsBitmap = (BTNMapEditorMC.cacheAsBitmap = (BTNJoinPrivateMC.cacheAsBitmap = (BTNCreateGameMC.cacheAsBitmap = (BTNLogOutMC.cacheAsBitmap = (BTNAddVIPMC.cacheAsBitmap = (BTNRemoveVIPMC.cacheAsBitmap = optionUseBitmapCaching))))))))))));
chatPrivateBtnLobbyMC._visible = 0;
BTNJoinGameMC._visible = 0;
BTNAddVIPMC._visible = 0;
BTNRemoveVIPMC._visible = 0;
refreshRoomsIntervalID = setInterval(sendRoomListRequest, refreshRoomsDelay);
clearInterval(kkxCkh);
kkxCkh = setInterval(lobbyOneSecondTick, 1000);
selectTab(_lobby);
tabSystemInactiveMC._visible = false;
selectedObjectBallistickMC._visible = false;
charHeadMC._visible = false;
arenaIconMC._visible = false;
customMapListCurrent = false;
displayLobbyMsgs();
}
function populateUserBox() {
var _local5 = userBox.getItemAt(userBox.selectedIndex).label;
var _local8 = userBox.vPosition;
var _local6 = remotePlayersLobby[_local8][_userName];
var _local2;
userBox.removeAll();
if (remotePlayersLobby[0][_userName] == _local5) {
_local2 = true;
} else {
_local2 = false;
}
addPlayerToUserBox(remotePlayersLobby[0][_userName], remotePlayersLobby[0][_hexColor], remotePlayersLobby[0][_userLevel], remotePlayersLobby[0][_kills], remotePlayersLobby[0][_isBallistick], _local2);
var _local7 = remotePlayersLobby.slice(1, remotePlayersLobby.length);
_local7.sort(sortUsers);
remotePlayersLobby = remotePlayersLobby.slice(0, 1).concat(_local7);
var _local1 = 1;
var _local4 = 1;
while ((_local4 < playerCountLobby) && (_local1 < maxNumPlayersLobby)) {
if (remotePlayersLobby[_local1][0] != null) {
if (remotePlayersLobby[_local1][_userName] == _local5) {
_local2 = true;
} else {
_local2 = false;
}
addPlayerToUserBox(remotePlayersLobby[_local1][_userName], remotePlayersLobby[_local1][_hexColor], remotePlayersLobby[_local1][_userLevel], remotePlayersLobby[_local1][_kills], remotePlayersLobby[_local1][_isBallistick], _local2);
_local4++;
}
_local1++;
}
var _local3 = 0;
while ((remotePlayersLobby[_local3][_userName] != _local6) && (_local3 < userBox.length)) {
_local3++;
}
lobbySelectUser();
userBox.vPosition = _local3;
userBox.redraw();
}
function lobbyUpdateChatScroll() {
lobbyMsgs0.scroll = lobbyMsgs.scroll;
}
function lobbySelectServer() {
if (((serverBox.selectedIndex != null) && (serverBox.enabled)) && (serverBox.selectedIndex != serverNum)) {
showLobbyButtons(false);
joinServerNum = serverBox.selectedIndex;
if (serverType[joinServerNum] == "COMPATIBILITY") {
displayLobbyMessage(compatServerText, "window304PreChangeServerMessageMC");
} else if ((serverType[joinServerNum] == "PREMIUM") && (!Boolean(player.vzTkeo))) {
displayLobbyMessage((((((lobbyText[40] + serverName[joinServerNum]) + "\r") + "\r") + shopText[4]) + shopText[5]) + shopText[6], "window304PremiumOnlyChangeServerMessageMC");
} else {
lobbySelectServerPerform();
}
}
}
function lobbySelectServerPerform() {
var _local1 = (lobbyText[33] + serverName[joinServerNum]) + lobbyText[31];
displayLobbyMessage(_local1, "window304ChangeServerProgressMC");
connectAction = "lobbyChangeServer";
authenticateAction = "lobbyChangeServer";
connectToServer(joinServerNum, joinServerNum);
}
function lobbySelectArena() {
var _local5 = false;
if ((arenaBox.selectedIndex != null) && (arenaBox.enabled)) {
userBox.selectedIndex = null;
BTNRemoveVIPMC._visible = 0;
BTNAddVIPMC._visible = 0;
charHeadMC._visible = false;
var _local1 = arenaBox.getItemAt(arenaBox.selectedIndex).data;
var _local2 = 0;
while (_local2 < roomsLobby.length) {
if (roomsLobby[_local2][2] == _local1) {
_local5 = true;
BTNJoinGameMC._visible = 1;
if ((lastSelectedObjectName != _local1) || (lastSelectedObjectType != _arena)) {
var _local3 = " ";
infoText.htmlText = (infoText0.text = _local3 + getRoomDisplayName(_local1));
var _local4 = "#A8D3FF";
info2Text.htmlText = "<br>" + colorHtml(_local3 + editorText[48], _local4);
info2Text0.text = ("\r" + _local3) + editorText[48];
arenaIconMC._visible = false;
}
joinRoomName = _local1.substr(0, _local1.length - 1);
lastDetailRequestedObjectName = lastSelectedObjectName;
sendRoomDetailRequest(joinRoomName, "lobbyDisplayRoomDetail");
selectedObjectBallistickMC._visible = roomIsBallistick(_local1);
arenaIconMC._visible = true;
if (roomIsBallistick(_local1)) {
arenaIconMC.gotoAndStop("labpass");
} else {
arenaIconMC.gotoAndStop("classic");
}
lastSelectedObjectName = _local1;
lastSelectedObjectType = _arena;
_local2 = roomsLobby.length;
}
_local2++;
}
}
if (!_local5) {
BTNJoinGameMC._visible = 0;
if (userBox.selectedIndex == null) {
infoText.htmlText = (infoText0.text = (info2Text.htmlText = (info2Text0.text = "")));
arenaIconMC._visible = false;
selectedObjectBallistickMC._visible = false;
}
}
}
function lobbyDisplayRoomDetail(mapID, cycleMode, numPlayers, rTime, isBallistick, isCustom) {
var _local9 = "#A8D3FF";
var _local8 = " ";
var _local7 = " ";
var _local3 = " ";
info2Text.htmlText = (("<br>" + _local8) + colorHtml(lobbyText[19], _local9)) + lobbyText[Number(cycleMode) + 11];
info2Text0.text = (("\r" + _local8) + lobbyText[19]) + lobbyText[Number(cycleMode) + 11];
if (((Number(rTime) - vwkowU) - zqBqOQ) <= 0) {
var _local10 = (colorHtml(lobbyText[30], _local9) + rTime) + lobbyText[31];
var _local11 = (lobbyText[30] + rTime) + lobbyText[31];
} else {
var _local10 = colorHtml(lobbyText[29], _local9) + formatTime((Number(rTime) - vwkowU) - zqBqOQ);
var _local11 = lobbyText[29] + formatTime((Number(rTime) - vwkowU) - zqBqOQ);
}
infoText.htmlText = (((((((((_local7 + getRoomDisplayName(lastSelectedObjectName)) + "<br>") + _local3) + colorHtml(lobbyText[28], _local9)) + numPlayers) + "/") + maxNumPlayers) + "<br>") + _local3) + _local10;
infoText0.text = (((((((((_local7 + getRoomDisplayName(lastSelectedObjectName)) + "\r") + _local3) + lobbyText[28]) + numPlayers) + "/") + maxNumPlayers) + "\r") + _local3) + _local11;
if (!isCustom) {
var _local4 = new LoadVars();
var _local5 = new LoadVars();
var _local2 = charToNumCaseSensitive(mapID);
if (_local2 < 31) {
if (serverType[serverNum] == "COMPATIBILITY") {
_local5.sendAndLoad("maps/" + mapListCompat[_local2], _local4, "POST");
} else {
_local5.sendAndLoad("maps/" + mapList[_local2], _local4, "POST");
}
} else if (_local2 >= 42) {
_local5.sendAndLoad("maps/" + featureMapList[_local2 - 42], _local4, "POST");
}
_local4.onLoad = function (success) {
if ((arenaBox.selectedIndex != null) && (arenaBox.enabled)) {
if ((lastDetailRequestedObjectName == lastSelectedObjectName) && (lastSelectedObjectType == _arena)) {
var _local2 = " ";
var _local3 = "#A8D3FF";
info2Text.htmlText = info2Text.htmlText.concat((_local2 + colorHtml(lobbyText[18], _local3)) + this.inf.substring(6, this.inf.length));
info2Text0.text = info2Text0.text.concat((("\r" + _local2) + lobbyText[18]) + this.inf.substring(6, this.inf.length));
}
}
};
} else {
roomDetailDisplayMapID = mapID;
}
}
function lobbySelectUser() {
if ((userBox.selectedIndex != null) && (userBox.enabled)) {
arenaBox.selectedIndex = null;
BTNJoinGameMC._visible = 0;
BTNRemoveVIPMC._visible = 0;
BTNAddVIPMC._visible = 0;
var _local9 = false;
var _local10 = null;
var _local6 = userBox.getItemAt(userBox.selectedIndex).label;
_local10 = getVIPIndex(_local6);
if (userBox.selectedIndex != 0) {
chatPrivateBtnLobbyMC._visible = 1;
var _local11 = getLocalIDLobby(getIDLobby(_local6));
if (Boolean(player.vzTkeo) && (!remotePlayersLobby[_local11][_isBallistick])) {
if (_local10 == null) {
BTNAddVIPMC._visible = 1;
} else {
BTNRemoveVIPMC._visible = 1;
}
}
} else {
chatPrivateBtnLobbyMC._visible = 0;
}
var _local1 = 0;
while (_local1 < remotePlayersLobby.length) {
if (remotePlayersLobby[_local1][_userName] == _local6) {
_local9 = true;
selectedObjectBallistickMC._visible = Boolean(remotePlayersLobby[_local1][_isBallistick]);
charHeadMC._visible = true;
arenaIconMC._visible = false;
if ((int(remotePlayersLobby[_local1][_losses]) == 0) && (int(remotePlayersLobby[_local1][_wins]) == 0)) {
var _local7 = 0;
} else if ((int(remotePlayersLobby[_local1][_losses]) == 0) && (int(remotePlayersLobby[_local1][_wins]) > 0)) {
var _local7 = int(remotePlayersLobby[_local1][_wins]);
} else {
var _local7 = int((int(remotePlayersLobby[_local1][_wins]) / int(remotePlayersLobby[_local1][_losses])) * 100) / 100;
}
if ((int(remotePlayersLobby[_local1][_deaths]) == 0) && (int(remotePlayersLobby[_local1][_kills]) == 0)) {
var _local5 = 0;
} else if ((int(remotePlayersLobby[_local1][_deaths]) == 0) && (int(remotePlayersLobby[_local1][_kills]) > 0)) {
var _local5 = int(remotePlayersLobby[_local1][_kills]);
} else {
var _local5 = int((int(remotePlayersLobby[_local1][_kills]) / int(remotePlayersLobby[_local1][_deaths])) * 100) / 100;
}
if (int(remotePlayersLobby[_local1][_roundsStarted]) == 0) {
var _local8 = "0";
} else {
var _local8 = (((int(remotePlayersLobby[_local1][_wins]) + int(remotePlayersLobby[_local1][_losses])) + " [") + int(((int(remotePlayersLobby[_local1][_wins]) + int(remotePlayersLobby[_local1][_losses])) / int(remotePlayersLobby[_local1][_roundsStarted])) * 100)) + "%]";
}
var _local3 = "#A8D3FF";
var _local4 = " ";
var _local2 = " ";
infoText.htmlText = ((((((((_local4 + getColoredNameLobby(_local1, false, true, false)) + "<br>") + _local2) + colorHtml(lobbyText[24], _local3)) + remotePlayersLobby[_local1][_kills]) + "<br>") + _local2) + colorHtml(lobbyText[25], _local3)) + _local5.toString();
if (remotePlayersLobby[_local1][_userLevel] == 1) {
infoText0.text = ((((((((((_local4 + "<<") + _local6) + ">>") + "\r") + _local2) + lobbyText[24]) + remotePlayersLobby[_local1][_kills]) + "\r") + _local2) + lobbyText[25]) + _local5.toString();
} else {
infoText0.text = ((((((((((_local4 + "<") + _local6) + ">") + "\r") + _local2) + lobbyText[24]) + remotePlayersLobby[_local1][_kills]) + "\r") + _local2) + lobbyText[25]) + _local5.toString();
}
info2Text.htmlText = (((((("<br>" + _local2) + colorHtml(lobbyText[26], _local3)) + _local8) + "<br>") + _local2) + colorHtml(lobbyText[27], _local3)) + _local7.toString();
info2Text0.text = (((((("\r" + _local2) + lobbyText[26]) + _local8) + "\r") + _local2) + lobbyText[27]) + _local7.toString();
lastSelectedObjectName = _local6;
lastSelectedObjectType = _player;
}
_local1++;
}
} else {
chatPrivateBtnLobbyMC._visible = 0;
charHeadMC._visible = false;
if ((arenaBox.selectedIndex == null) || (!arenaBox.enabled)) {
selectedObjectBallistickMC._visible = false;
}
}
}
function getVIPIndex(selectedUserName) {
var _local1 = 0;
while (_local1 < vipListLobby.length) {
if (selectedUserName eq vipListLobby[_local1]) {
return(_local1);
}
_local1++;
}
return(null);
}
function pressAddVIP() {
if ((userBox.selectedIndex != null) && (userBox.enabled)) {
var _local1 = userBox.getItemAt(userBox.selectedIndex).label;
var _local2 = getVIPIndex(_local1);
if (_local2 == null) {
vipListLobby.push(_local1);
addLobbyMsg(((">> " + lobbyText[45]) + _local1) + lobbyText[46], ((">> " + lobbyText[45]) + _local1) + lobbyText[46]);
var _local3 = getIDLobby(userBox.getItemAt(userBox.selectedIndex).label);
player.sendChatMsgPrivate(">VIP<", _local3);
if (vipListLobby.length > maxVIPListLength) {
addLobbyMsg((((">> " + lobbyText[47]) + lobbyText[48]) + vipListLobby[0]) + lobbyText[49], (((">> " + lobbyText[47]) + lobbyText[48]) + vipListLobby[0]) + lobbyText[49]);
_local3 = getIDLobby(vipListLobby[0]);
player.sendChatMsgPrivate(">UNVIP<", _local3);
vipListLobby = vipListLobby.slice(1, vipListLobby.length);
}
BTNAddVIPMC._visible = 0;
BTNRemoveVIPMC._visible = 1;
setVIPButtonsInactive();
}
}
}
function pressRemoveVIP() {
if ((userBox.selectedIndex != null) && (userBox.enabled)) {
var _local2 = userBox.getItemAt(userBox.selectedIndex).label;
var _local1 = getVIPIndex(_local2);
if (_local1 != null) {
vipListLobby[_local1] = "";
BTNAddVIPMC._visible = 1;
BTNRemoveVIPMC._visible = 0;
addLobbyMsg(((">> " + lobbyText[48]) + _local2) + lobbyText[49], ((">> " + lobbyText[48]) + _local2) + lobbyText[49]);
var _local4 = getIDLobby(userBox.getItemAt(userBox.selectedIndex).label);
player.sendChatMsgPrivate(">UNVIP<", _local4);
var _local3 = vipListLobby.slice(0, Math.max(0, _local1));
var _local5 = vipListLobby.slice(_local1 + 1, vipListLobby.length);
vipListLobby = _local3.concat(_local5);
setVIPButtonsInactive();
}
}
}
function pressJoinGame() {
noInputTime = 0;
if ((arenaBox.selectedIndex != null) && (arenaBox.enabled)) {
var _local2 = arenaBox.getItemAt(arenaBox.selectedIndex).data;
var _local1 = 0;
while (_local1 < roomsLobby.length) {
if (roomsLobby[_local1][2] == _local2) {
joinRoomName = _local2.substr(0, _local2.length - 1);
sendRoomDetailRequest(joinRoomName, "lobbyJoinGame");
_local1 = roomsLobby.length;
}
_local1++;
}
}
}
function lobbyJoinGame() {
sendJoinRoom(joinRoomName);
initializeArenaVariables();
clearLobbyGarbage();
startNextRound(true);
}
function pressJoinPrivate() {
noInputTime = 0;
showLobbyButtons(false);
_root.attachMovie("window470JoinPrivateMC", "windowMC", 200000);
windowMC._x = 45;
windowMC._y = 45;
windowMC.cacheAsBitmap = optionUseBitmapCaching;
qkRqyP("windowShow", windowMC);
var i = 6;
while (i < 23) {
var n = 0;
while (n < 2) {
str = "windowMC.h" + i;
with (eval ((str + "Text") + n)) {
text = lobbyText[i];
}
n++;
}
i = i + 16;
}
}
function pressJoinPrivateOK(n) {
n = n.toLowerCase();
showPrivateTextBoxes(false);
var _local1 = null;
if (n.length > 2) {
if (zqXJmt(n)) {
if (isLegalRoomString(n)) {
joinRoomName = n;
sendRoomDetailRequest(n, "lobbyJoinGamePrivate");
joinPrivateTimeoutIntervalID = setInterval(joinPrivateTimeout, serverTimeout);
} else {
_local1 = lobbyText[16];
}
} else {
_local1 = lobbyText[36];
}
} else {
_local1 = lobbyText[15];
}
if (_local1 != null) {
displayLobbyMessage(_local1, "window304JoinPrivateMessageMC");
}
}
function joinPrivateTimeout() {
clearInterval(joinPrivateTimeoutIntervalID);
displayLobbyMessage(lobbyText[23], "window304JoinPrivateMessageMC");
}
function pressCreateGame() {
noInputTime = 0;
showLobbyButtons(false);
_root.attachMovie("window470CreateGameMC", "windowMC", 200000);
windowMC._x = 2;
windowMC._y = 28;
windowMC.cacheAsBitmap = optionUseBitmapCaching;
qkRqyP("windowShow", windowMC);
createGameMapRandomize = true;
var sFontName = tDummy.getTextFormat(0, 1).font;
var objectList = new Array("mapBox", "radioPublic", "radioPrivate", "radioCycle", "radioRandom", "radioRepeat", "checkBoxBallistick", "checkBoxClassic", "checkBoxCustom", "checkBoxFeature");
var i = 0;
while (i < objectList.length) {
with (eval ("windowMC." + objectList[i])) {
fontSize = 8;
color = "0xA1CAFF";
setStyle("embedFonts", true);
setStyle("fontFamily", sFontName);
}
i++;
}
windowMC.mapBox.backgroundColor = "0x4E657B";
windowMC.mapBox.openDuration = 150;
var i = 0;
while (i < 3) {
var n = 0;
while (n < 2) {
str = "windowMC.h" + i;
with (eval ((str + "Text") + n)) {
text = lobbyText[i + 6];
}
n++;
}
i++;
}
if (Boolean(player.vzTkeo)) {
windowMC.h3Text0.text = (windowMC.h3Text1.text = lobbyText[39]);
windowMC.vipListText0.text = (windowMC.vipListText1.text = vipListLobby.join(", "));
}
if (vipListLobby.length < 1) {
windowMC.btnClearVIPMC._visible = 0;
}
}
function initializeCreateGame() {
windowMC.checkBoxBallistick.selected = Boolean(player.vzTkeo);
windowMC.checkBoxClassic.selected = !Boolean(player.vzTkeo);
windowMC.checkBoxFeature.selected = false;
windowMC.checkBoxCustom.selected = false;
if (((Number(player.qxeXqu) <= 0) || (Number(player.qxeXqu) == NaN)) || (!Boolean(player.vzTkeo))) {
windowMC.checkBoxCustom.enabled = false;
}
windowMC.checkBoxBallistick.enabled = (windowMC.checkBoxClassic.enabled = (windowMC.checkBoxFeature.enabled = Boolean(player.vzTkeo)));
}
function initializeMapList() {
changeMapListOptions();
}
function cleanUpPopulateMapListBox() {
replyDataMaps.onLoad = null;
delete replyDataMaps.onLoad;
delete replyDataMaps;
delete sendDataMaps;
displayCustomMapsOnArrival = false;
}
function populateMapListBox(n) {
cleanUpPopulateMapListBox();
replyDataMaps = new LoadVars();
sendDataMaps = new LoadVars();
if (serverType[serverNum] == "COMPATIBILITY") {
sendDataMaps.sendAndLoad("maps/" + mapListCompat[n], replyDataMaps, "POST");
} else {
sendDataMaps.sendAndLoad("maps/" + mapList[n], replyDataMaps, "POST");
}
replyDataMaps.onLoad = function (success) {
if (serverType[serverNum] == "COMPATIBILITY") {
if (n >= numClassicMapsCompat) {
if (windowMC.checkBoxBallistick.selected) {
windowMC.mapBox.addItem({label:ballistickOnlyMarker + this.inf.substring(6, this.inf.length), data:n});
}
} else if (windowMC.checkBoxClassic.selected) {
windowMC.mapBox.addItem({label:this.inf.substring(6, this.inf.length), data:n});
}
if (n < (mapListCompat.length - 1)) {
if (createGameMapRandomize) {
windowMC.mapBox.selectedIndex = random(windowMC.mapBox.length);
}
populateMapListBox(n + 1);
} else {
populateMapListBoxCustom();
}
} else {
if (n >= numClassicMaps) {
if (windowMC.checkBoxBallistick.selected) {
windowMC.mapBox.addItem({label:ballistickOnlyMarker + this.inf.substring(6, this.inf.length), data:n});
}
} else if (windowMC.checkBoxClassic.selected) {
windowMC.mapBox.addItem({label:this.inf.substring(6, this.inf.length), data:n});
}
if (n < (mapList.length - 1)) {
if (createGameMapRandomize) {
windowMC.mapBox.selectedIndex = random(windowMC.mapBox.length);
}
populateMapListBox(n + 1);
} else {
populateMapListBoxCustom();
}
}
};
}
function populateMapListBoxCustom() {
if (windowMC.checkBoxCustom.selected) {
cleanUpPopulateMapListBox();
if (!customMapListCurrent) {
displayCustomMapsOnArrival = true;
APISendMapListRequest(uName);
} else {
addCustomMapsToMapListBox();
}
} else if (windowMC.checkBoxFeature.selected) {
populateMapListBoxFeature(0);
}
}
function addCustomMapsToMapListBox() {
var _local1 = 0;
while (_local1 < mapListCustom.length) {
if (((mapListCustom[_local1] != undefined) && (mapListCustom[_local1] != "")) && (mapListCustom[_local1] != editorText[49])) {
windowMC.mapBox.addItem({label:customMarker + mapListCustom[_local1], data:_local1 + 31});
}
_local1++;
}
if (createGameMapRandomize) {
windowMC.mapBox.selectedIndex = random(windowMC.mapBox.length);
}
if (windowMC.checkBoxFeature.selected) {
populateMapListBoxFeature(0);
}
}
function populateMapListBoxFeature(n) {
cleanUpPopulateMapListBox();
replyDataMaps = new LoadVars();
sendDataMaps = new LoadVars();
sendDataMaps.sendAndLoad("maps/" + featureMapList[n], replyDataMaps, "POST");
replyDataMaps.onLoad = function (success) {
if (windowMC.checkBoxFeature.selected) {
windowMC.mapBox.addItem({label:this.inf.substring(6, this.inf.length), data:n + 42});
}
if (n < (featureMapList.length - 1)) {
if (createGameMapRandomize) {
windowMC.mapBox.selectedIndex = random(windowMC.mapBox.length);
}
populateMapListBoxFeature(n + 1);
}
};
}
function pressCreateGameOK(n, isPrivate, mapNum, cycleMode) {
var _local3 = qxojNK(mapNum);
n = n.toLowerCase();
showGameTextBoxes(false);
var _local1 = null;
if (n.length > 2) {
if (zqXJmt(n)) {
if (isLegalRoomString(n)) {
if (containsNoFilteredLanguage(n)) {
if (((windowMC.checkBoxClassic.selected || (windowMC.checkBoxBallistick.selected)) || (windowMC.checkBoxCustom.selected)) || (windowMC.checkBoxFeature.selected)) {
if (windowMC.mapBox.length > 0) {
errorAction = "createGameFail";
windowMC.removeMovieClip();
window2MC.removeMovieClip();
mapCycleList = getMapCycleList(_local3, cycleMode, windowMC.checkBoxClassic.selected, windowMC.checkBoxBallistick.selected, windowMC.checkBoxCustom.selected, windowMC.checkBoxFeature.selected);
roomCreatorUserName = uName;
joinRoomAction = "sendMapCycleList";
sendCreateRoomBallistick(_local3, cycleMode, Number(isPrivate), n, Number(!containsOnlyClassicMaps(mapCycleList)), ";" + vipListLobby.join(";"));
initializeArenaVariables();
clearLobbyGarbage();
startNextRound(true);
} else {
_local1 = lobbyText[69];
}
} else {
_local1 = lobbyText[53];
}
} else {
_local1 = lobbyText[17];
}
} else {
_local1 = lobbyText[16];
}
} else {
_local1 = lobbyText[36];
}
} else {
_local1 = lobbyText[15];
}
if (_local1 != null) {
displayLobbyMessage(_local1, "window304CreateGameMessageMC");
}
}
function showLobbyButtons(b) {
serverBox.enabled = (userBox.enabled = (arenaBox.enabled = (userBox._visible = (arenaBox._visible = (BTNJoinGameMC._visible = (BTNJoinPrivateMC._visible = (BTNCreateGameMC._visible = (BTNLogOutMC._visible = (BTNMapEditorMC._visible = (tabSystemMC._visible = (chatBtnLobbyMC._visible = (chatPrivateBtnLobbyMC._visible = (labelGamesMC._visible = (labelPlayersMC._visible = b))))))))))))));
tabSystemInactiveMC._visible = !b;
tabSystemInactiveMC.gotoAndStop(currentTab + 1);
BTNAddVIPMC._visible = (BTNRemoveVIPMC._visible = b && (Boolean(player.vzTkeo)));
lobbySelectUser();
lobbySelectArena();
}
function showGameTextBoxes(b) {
windowMC.arenaNameMC._visible = (windowMC.mapBox.enabled = (windowMC.radioPublic.enabled = (windowMC.radioPrivate.enabled = (windowMC.radioRepeat.enabled = (windowMC.radioRandom.enabled = (windowMC.radioCycle.enabled = (windowMC.btnXMC._visible = (windowMC.btnOKMC._visible = b))))))));
windowMC.checkBoxBallistick.enabled = (windowMC.checkBoxCustom.enabled = (windowMC.checkBoxClassic.enabled = (windowMC.checkBoxFeature.enabled = b && (Boolean(player.vzTkeo)))));
if ((Number(player.qxeXqu) <= 0) || (Number(player.qxeXqu) == NaN)) {
windowMC.checkBoxCustom.enabled = false;
}
}
function showPrivateTextBoxes(b) {
windowMC.arenaNameMC._visible = (windowMC.btnXMC._visible = (windowMC.btnOKMC._visible = b));
}
function displayLobbyMessage(msg, windowExportName, hideButtons) {
_root.attachMovie(windowExportName, "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 25;
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
if (hideButtons) {
window2MC.btnXMC._visible = (window2MC.btnOKMC._visible = 0);
}
}
function closeCreateGameMessage() {
showGameTextBoxes(true);
}
function closeJoinPrivateMessage() {
showPrivateTextBoxes(true);
}
function closeJoinGameMessage() {
}
function pressCreateGameClose() {
windowMC.removeMovieClip();
showLobbyButtons(true);
sendRoomListRequest();
}
function closePreChangeServer() {
lobbySelectServerPerform();
}
function closeFailChangeServer() {
showLobbyButtons(true);
sendRoomListRequest();
serverBox.selectedIndex = serverNum;
}
function pressJoinPrivateClose() {
windowMC.removeMovieClip();
showLobbyButtons(true);
sendRoomListRequest();
}
function pressChangeServerClose() {
window2MC.removeMovieClip();
showLobbyButtons(true);
serverBox.selectedIndex = serverNum;
}
function pressChangeServerCancel() {
window2MC.removeMovieClip();
connectAction = "";
socket[serverNum].close();
selectRandomServerAndPort();
qkxRrK("\r" + lobbyText[66], "title");
}
function pressClearVIPs() {
var _local1 = 0;
while (_local1 < vipListLobby.length) {
var _local2 = getIDLobby(vipListLobby[_local1]);
player.sendChatMsgPrivate(">UNVIP<", _local2);
_local1++;
}
vipListLobby = new Array();
windowMC.vipListText0.text = (windowMC.vipListText1.text = vipListLobby.toString());
windowMC.btnClearVIPMC._visible = 0;
}
function changeMapListOptions(pressedCheckbox) {
windowMC.mapBox.removeAll();
if (((windowMC.checkBoxBallistick.selected || (windowMC.checkBoxClassic.selected)) || (windowMC.checkBoxFeature.selected)) && (pressedCheckbox != "custom")) {
windowMC.checkBoxCustom.selected = false;
}
if (windowMC.checkBoxCustom.selected) {
windowMC.checkBoxBallistick.selected = (windowMC.checkBoxClassic.selected = (windowMC.checkBoxFeature.selected = false));
}
if (windowMC.checkBoxClassic.selected) {
populateMapListBox(0);
} else if (windowMC.checkBoxBallistick.selected) {
if (serverType[serverNum] == "COMPATIBILITY") {
populateMapListBox(numClassicMapsCompat);
} else {
populateMapListBox(numClassicMaps);
}
} else if (windowMC.checkBoxCustom.selected) {
populateMapListBoxCustom();
} else if (windowMC.checkBoxFeature.selected) {
populateMapListBoxFeature(0);
}
}
function showMapListCheckBoxes(b) {
windowMC.checkBoxBallistick._visible = (windowMC.checkBoxClassic._visible = (windowMC.checkBoxCustom._visible = (windowMC.checkBoxFeature._visible = b)));
}
function pressTabLobby() {
if (currentTab != _lobby) {
enterLobby();
}
}
function pressTabProfile() {
if (currentTab != _profile) {
if (currentTab == _lobby) {
leaveLobbyTab();
}
gotoAndStop ("profileFrame");
selectTab(_profile);
}
}
function pressTabShop() {
if (currentTab != _shop) {
if (currentTab == _lobby) {
leaveLobbyTab();
}
gotoAndStop ("shopFrame");
selectTab(_shop);
}
}
function pressTabEditor() {
if (currentTab != _editor) {
if (currentTab == _lobby) {
leaveLobbyTab();
}
gotoAndStop ("mapEditorFrame");
selectTab(_editor);
}
}
function pressTab(pressedTab) {
if (pressedTab == _lobby) {
pressTabLobby();
}
if (pressedTab == _profile) {
pressTabProfile();
}
if (pressedTab == _shop) {
pressTabShop();
}
if (pressedTab == _editor) {
pressTabEditor();
}
}
function leaveLobbyTab() {
Key.removeListener(lobbyKeyListener);
clearInterval(refreshRoomsIntervalID);
clearInterval(joinPrivateTimeoutIntervalID);
}
function selectTab(tabMode) {
lastTab = currentTab;
currentTab = tabMode;
tabSystemMC.tabLobbyMC.gotoAndStop("unselected");
tabSystemMC.tabProfileMC.gotoAndStop("unselected");
tabSystemMC.tabShopMC.gotoAndStop("unselected");
tabSystemMC.tabEditorMC.gotoAndStop("unselected");
if (currentTab == _lobby) {
tabSystemMC.tabLobbyMC.gotoAndStop("selected");
}
if (currentTab == _profile) {
tabSystemMC.tabProfileMC.gotoAndStop("selected");
}
if (currentTab == _shop) {
tabSystemMC.tabShopMC.gotoAndStop("selected");
}
if (currentTab == _editor) {
tabSystemMC.tabEditorMC.gotoAndStop("selected");
}
}
function setVIPButtonsActive() {
clearInterval(setVIPButtonsActiveIntervalID);
BTNAddVIPMC.gotoAndStop(1);
BTNRemoveVIPMC.gotoAndStop(1);
}
function setVIPButtonsInactive() {
setVIPButtonsActiveIntervalID = setInterval(setVIPButtonsActive, 3000);
BTNAddVIPMC.gotoAndStop(2);
BTNRemoveVIPMC.gotoAndStop(2);
}
function lobbyClickNameInChat(user_name) {
if (userBox.enabled) {
var _local3 = false;
var _local2;
var _local1 = 0;
while (_local1 < userBox.length) {
if (user_name == userBox.getItemAt(_local1).label) {
_local3 = true;
_local2 = _local1;
_local1 = userBox.length;
}
_local1++;
}
if (_local3) {
userBox.vPosition = _local2;
userBox.selectedIndex = _local2;
lobbySelectUser();
buttonFX("press");
} else {
addLobbyMsg(">> " + slashText[10], ">> " + slashText[10]);
SFXBTNerror.start();
}
}
}
_quality = "HIGH";
var sFontName;
lobbyInitializeComponents();
Instance of Symbol 215 MovieClip [List] "arenaBox" in Frame 3
//component parameters
onClipEvent (construct) {
multipleSelection = false;
rowHeight = 19;
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent.buttonFX("press");
_parent.lobbySelectArena();
}
this.addEventListener("change", __f_change);
}
onClipEvent (load) {
function __f_itemRollOver(eventObj) {
_parent.buttonFX("over");
}
this.addEventListener("itemRollOver", __f_itemRollOver);
}
onClipEvent (load) {
function __f_itemRollOut(eventObj) {
_parent.buttonFX("out");
}
this.addEventListener("itemRollOut", __f_itemRollOut);
}
Instance of Symbol 215 MovieClip [List] "userBox" in Frame 3
//component parameters
onClipEvent (construct) {
multipleSelection = false;
rowHeight = 19;
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent.buttonFX("press");
_parent.lobbySelectUser();
}
this.addEventListener("change", __f_change);
}
onClipEvent (load) {
function __f_itemRollOver(eventObj) {
_parent.buttonFX("over");
}
this.addEventListener("itemRollOver", __f_itemRollOver);
}
onClipEvent (load) {
function __f_itemRollOut(eventObj) {
_parent.buttonFX("out");
}
this.addEventListener("itemRollOut", __f_itemRollOut);
}
onClipEvent (load) {
function __f_load(eventObj) {
_parent.populateUserBox();
}
this.addEventListener("load", __f_load);
}
Instance of Symbol 234 MovieClip in Frame 3
onClipEvent (enterFrame) {
_parent.socketCallsLobby();
}
Instance of Symbol 229 MovieClip [RadioButton] "scapeGoat" in Frame 3
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "scapeGoat";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 1379 MovieClip "lobbyDragListsMC" in Frame 3
on (press) {
this.onMouseMove = function () {
updateAfterEvent();
var _local4 = 40;
this._y = Math.min(Math.max(_parent.arenaBox._y + _local4, _root._ymouse), 294 - _local4);
_parent.arenaBox.setSize(_parent.arenaBox._width, Math.max(this._y - _parent.arenaBox._y, _local4), false);
_parent.bgGamesMC._height = Math.max(this._y - _parent.arenaBox._y, _local4);
_parent.userBox._y = this._y;
_parent.userBox.setSize(_parent.userBox._width, 118 - (this._y - 175.5), true);
_parent.bgPlayersMC._y = this._y - 1;
_parent.bgPlayersMC._height = 118 - (this._y - 175.5);
_parent.labelGamesMC._y = int(Math.max(65, 76 + ((this._y - 173) / 2)));
_parent.labelPlayersMC.labelPlayersMaskedMC._y = int(Math.max(this._y - 230, -47 + ((this._y - 173) / 2)));
};
}
on (release, releaseOutside) {
onMouseMove();
delete this.onMouseMove;
this.onMouseMove = null;
}
Instance of Symbol 176 MovieClip [UIScrollBar] in Frame 3
//component parameters
onClipEvent (construct) {
_targetInstanceName = "lobbyMsgs";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (enterFrame) {
_parent.lobbyUpdateChatScroll();
}
onClipEvent (mouseMove) {
_parent.noInputTime = 0;
_parent.lobbyUpdateChatScroll();
}
onClipEvent (mouseUp) {
_parent.noInputTime = 0;
_parent.lobbyUpdateChatScroll();
}
Instance of Symbol 225 MovieClip [ComboBox] "serverBox" in Frame 3
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "";
editable = false;
rowCount = 8;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent.buttonFX("press");
_parent.lobbySelectServer();
}
this.addEventListener("change", __f_change);
}
onClipEvent (load) {
function __f_open(eventObj) {
_parent.buttonFX("press");
}
this.addEventListener("open", __f_open);
}
onClipEvent (load) {
function __f_itemRollOver(eventObj) {
_parent.buttonFX("over");
}
this.addEventListener("itemRollOver", __f_itemRollOver);
}
onClipEvent (load) {
function __f_itemRollOut(eventObj) {
_parent.buttonFX("out");
}
this.addEventListener("itemRollOut", __f_itemRollOut);
}
Frame 4
function initializeProfile() {
noInputTime = 0;
tabSystemInactiveMC.gotoAndStop(currentTab + 1);
profileSelectedSpinner = Number(player.vzpVuQ);
profileSelectedPet = Number(player.lqJoDN);
xqOfED.xqlPkD.gotoAndStop("run");
indicatorTopMC._visible = true;
petTopMC._visible = true;
nameText0.htmlText = getColoredName(null, true);
nameText1.text = getName(null, true);
rankText0.text = (rankText1.text = profileText[4].concat(String(int(getRank(player.qkXZhl)) - 1)));
credText0.text = (credText1.text = formatNumber(player.qkLWaY));
spinnerPetLoadingText0.text = (spinnerPetLoadingText1.text = editorText[48]);
var i = 0;
while (i < 2) {
eval (("h" + i) + "Text0").text = (eval (("h" + i) + "Text1").text = profileText[i + 2]);
i++;
}
var iconMC = getRankIconName(player.qkXZhl);
rankMC.attachMovie(iconMC, "rankIconMC", 100);
displayPersistentPlayerStatsProfile();
clearPetsCustomization();
clearSpinnersCustomization();
player.sendGetOwnedItemList();
}
function recieveOwnedItemListProfile() {
spinnerPetLoadingText0.text = (spinnerPetLoadingText1.text = "");
updatePlayerIndicatorsProfile();
updatePlayerPetsProfile();
pressTabSpinners();
tabSystemInactiveMC._visible = false;
}
function updatePlayerIndicatorsProfile() {
var _local1 = player.spinners[player.vzpVuQ];
var _local2 = indicatorTopMC.attachMovie("indicatorMC" + padStr(_local1.num, 2), "indicatorMC", 1);
var _local3 = indicatorFrontMC.attachMovie("indicatorMC" + padStr(_local1.num, 2), "indicatorMC", 1);
setCustomObject2Colors(indicatorTopMC.indicatorMC.subIndicatorMC.colorMC0, indicatorTopMC.indicatorMC.subIndicatorMC.colorMC1, _local1.red0, _local1.green0, _local1.blue0, _local1.red1, _local1.green1, _local1.blue1, 75);
setCustomObject2Colors(indicatorFrontMC.indicatorMC.subIndicatorMC.colorMC0, indicatorFrontMC.indicatorMC.subIndicatorMC.colorMC1, _local1.red0, _local1.green0, _local1.blue0, _local1.red1, _local1.green1, _local1.blue1, 75);
remotePlayersLobby[0][_hexColor] = RGBToHex(_local1.red0, _local1.green0, _local1.blue0, 100);
}
function updatePlayerPetsProfile() {
var _local1 = player.pets[player.lqJoDN];
petTopMC.attachMovie(("petBehavior" + petBehavior[Number(_local1.num)]) + "MC", "bMC", 1);
var _local2 = petTopMC.bMC.subPetMC.attachMovie("petMC" + padStr(_local1.num, 2), "petMC", 1);
setCustomObject2Colors(_local2.colorMC0, _local2.colorMC1, _local1.red0, _local1.green0, _local1.blue0, _local1.red1, _local1.green1, _local1.blue1, 100, true);
petTopMC._xscale = (petTopMC._yscale = 133.333333333333);
_local2._xscale = (_local2._yscale = petScale);
}
function displayPersistentPlayerStatsProfile() {
statsText0.htmlText = "";
statsText1.text = "";
concatTextAndHTML(profileText[24], hcWhite, statsText0, statsText1);
var _local3 = "#A8D3FF";
var hcWhite = "#FFFFFF";
var _local7 = "#FFBFBF";
var _local6 = "#B3FFB3";
if ((int(player.pLosses) == 0) && (int(player.pWins) == 0)) {
var _local9 = 0;
} else if ((int(player.pLosses) == 0) && (int(player.pWins) > 0)) {
var _local9 = int(player.pWins);
} else {
var _local9 = int((int(player.pWins) / int(player.pLosses)) * 100) / 100;
}
if ((int(player.pDeaths) == 0) && (int(player.qkXZhl) == 0)) {
var _local8 = 0;
} else if ((int(player.pDeaths) == 0) && (int(player.qkXZhl) > 0)) {
var _local8 = int(player.qkXZhl);
} else {
var _local8 = int((int(player.qkXZhl) / int(player.pDeaths)) * 100) / 100;
}
if (int(player.rounds) == 0) {
var _local11 = "0";
} else {
var _local11 = (((int(player.pWins) + int(player.pLosses)) + " [") + int(((int(player.pWins) + int(player.pLosses)) / int(player.pRoundsStarted)) * 100)) + "%]";
}
var _local4 = int(player.pWins) + int(player.pLosses);
var _local10 = Math.min(1, (int(player.qkXZhl) + int(player.pDeaths)) / 200);
var _local5 = _local8 * (2 - _local10);
var _local1 = 0;
while ((ratingValues[_local1 + 1] <= _local5) && (_local1 < (ratingValues.length - 1))) {
_local1++;
}
while (ratingNames[_local1].indexOf("*") != -1) {
var _local2 = ratingNames[_local1].substr(0, ratingNames[_local1].indexOf("*"));
_local2 = _local2.concat("+");
ratingNames[_local1] = _local2.concat(ratingNames[_local1].substr(ratingNames[_local1].indexOf("*") + 1, ratingNames[_local1].length - (ratingNames[_local1].indexOf("*") + 1)));
}
statsText0.htmlText = "";
statsText1.text = "";
concatTextAndHTML((profileText[20] + "\r") + "\r", hcWhite, statsText0, statsText1);
concat2StrTextAndHTML(profileText[4], _local3, String(int(getRank(player.qkXZhl)) - 1) + "\r", hcWhite, statsText0, statsText1);
concat2StrTextAndHTML(profileText[5], _local3, (getKillsUntilNextRank(getRank(player.qkXZhl), player.qkXZhl) + "\r") + "\r", hcWhite, statsText0, statsText1);
concat2StrTextAndHTML(profileText[6], _local3, player.qkXZhl + "\r", _local6, statsText0, statsText1);
concat2StrTextAndHTML(profileText[7], _local3, player.pDeaths + "\r", _local7, statsText0, statsText1);
concat2StrTextAndHTML(profileText[8], _local3, (_local8 + "\r") + "\r", hcWhite, statsText0, statsText1);
concat2StrTextAndHTML(profileText[9], _local3, player.pRoundsStarted + "\r", hcWhite, statsText0, statsText1);
concat2StrTextAndHTML(profileText[10], _local3, (((player.pWins + " (") + int((player.pWins / _local4) * 100)) + "%)") + "\r", _local6, statsText0, statsText1);
concat2StrTextAndHTML(profileText[11], _local3, (((player.pLosses + " (") + int((player.pLosses / _local4) * 100)) + "%)") + "\r", _local7, statsText0, statsText1);
concat2StrTextAndHTML(profileText[12], _local3, (((_local4 + " (") + int((_local4 / player.pRoundsStarted) * 100)) + "%)") + "\r", _local6, statsText0, statsText1);
concat2StrTextAndHTML(profileText[13], _local3, (((((int(player.pRoundsStarted) - _local4) + " (") + int(((player.pRoundsStarted - _local4) / player.pRoundsStarted) * 100)) + "%)") + "\r") + "\r", _local7, statsText0, statsText1);
concat2StrTextAndHTML(profileText[14], _local3, (((((int((int(player.qkXZhl) / _local4) * 100) / 100) + " (~") + (int((int(player.qkXZhl) / _local4) * 20) / 100)) + profileText[22]) + ")") + "\r", _local6, statsText0, statsText1);
concat2StrTextAndHTML(profileText[15], _local3, ((((((int((int(player.pDeaths) / _local4) * 100) / 100) + " (~") + (int((int(player.pDeaths) / _local4) * 20) / 100)) + profileText[23]) + ")") + "\r") + "\r", _local7, statsText0, statsText1);
concat2StrTextAndHTML(profileText[16], _local3, (int((((int(player.qkXZhl) / _local4) * 80) * 1000) / 300) / 1000) + "\r", _local6, statsText0, statsText1);
concat2StrTextAndHTML(profileText[17], _local3, ((int((((int(player.pDeaths) / _local4) * 80) * 1000) / 300) / 1000) + "\r") + "\r", _local7, statsText0, statsText1);
concat2StrTextAndHTML(profileText[18], _local3, (_local9 + "\r") + "\r", hcWhite, statsText0, statsText1);
concat2StrTextAndHTML(profileText[19], _local3, ratingNames[_local1], hcWhite, statsText0, statsText1);
statsText0.htmlText = statsText0.htmlText + (("<br><br><a href=\"http://www.xgenstudios.com/stickarena/highscore.php\" target=\"_blank\">" + profileText[25]) + " >> </a>");
statsText1.text = statsText1.text + (("\r\r\r" + profileText[25]) + " >> ");
}
function profileUpdateStatsScroll() {
statsText1.scroll = statsText0.scroll;
}
function initializeSpinners() {
spinnersMC.gotoAndStop("profile");
for (var i in player.spinners) {
var spn = player.spinners[i];
var spnMC = spinnersMC.subSpinnersMC.attachMovie("indicatorMC" + padStr(spn.num, 2), "indicatorMC" + i, (i * 2) + 1);
spnMC.gotoAndStop(random(15) + 1);
spnMC._xscale = (spnMC._yscale = 125);
spnMC._x = i * 100;
setCustomObject2Colors(spnMC.subIndicatorMC.colorMC0, spnMC.subIndicatorMC.colorMC1, spn.red0, spn.green0, spn.blue0, spn.red1, spn.green1, spn.blue1, 75);
if ((!Boolean(player.vzTkeo)) && (Number(spn.num) >= Number(numFreeSpinners))) {
var lockMC = spinnersMC.subSpinnersMC.attachMovie("lockMC", "lockMC" + i, (i * 2) + 2);
lockMC._x = i * 100;
}
}
eval ("spinnersMC.subSpinnersMC.indicatorMC" + profileSelectedSpinner).play();
spinnersMC.subSpinnersMC._x = (-profileSelectedSpinner) * 100;
updateCustomizationArrows(profileSelectedSpinner, player.spinners.length);
}
function initializePets() {
petsMC.gotoAndStop("profile");
for (var _local4 in player.pets) {
var _local1 = player.pets[_local4];
if (Number(_local1.num) == 0) {
var _local2 = petsMC.subSpinnersMC.attachMovie("petMC00Selection", "petMC" + _local4, (_local4 * 2) + 1);
} else {
var _local2 = petsMC.subSpinnersMC.attachMovie("petMC" + padStr(_local1.num, 2), "petMC" + _local4, (_local4 * 2) + 1);
}
_local2.gotoAndStop(random(15) + 1);
_local2._xscale = (_local2._yscale = 50);
_local2._x = _local4 * profilePetSpacing;
setCustomObject2Colors(_local2.colorMC0, _local2.colorMC1, _local1.red0, _local1.green0, _local1.blue0, _local1.red1, _local1.green1, _local1.blue1, 100, true);
if (Number(_local1.num) != 0) {
if (!Boolean(player.vzTkeo)) {
var _local3 = petsMC.subSpinnersMC.attachMovie("lockMC", "lockMC" + _local4, (_local4 * 2) + 2);
_local3._x = _local4 * profilePetSpacing;
}
}
}
setPetAnimation("petsMC.subSpinnersMC.petMC" + player.lqJoDN, "kill");
petsMC.subSpinnersMC._x = (-profileSelectedPet) * profilePetSpacing;
updateCustomizationArrows(profileSelectedPet, player.pets.length);
}
function pressTabPets() {
noInputTime = 0;
if (currentCustomizationTab != _pets) {
selectCustomizationTab(_pets);
clearSpinnersCustomization();
initializePets();
}
}
function pressTabSpinners() {
noInputTime = 0;
if (currentCustomizationTab != _spinners) {
selectCustomizationTab(_spinners);
clearPetsCustomization();
initializeSpinners();
}
}
function pressArrowLeftProfile() {
noInputTime = 0;
if (currentCustomizationTab == _pets) {
if (profileSelectedPet > 0) {
setPetAnimation("petsMC.subSpinnersMC.petMC" + profileSelectedPet, "idle");
profileSelectedPet = profileSelectedPet - 1;
setPetAnimation("petsMC.subSpinnersMC.petMC" + profileSelectedPet, "kill");
if (Boolean(player.vzTkeo)) {
player.lqJoDN = profileSelectedPet;
player.sendSetActiveItem(player.pets[player.lqJoDN].itemID);
updatePlayerPetsProfile();
}
updateCustomizationArrows(profileSelectedPet, player.pets.length);
petsMC.subSpinnersMC.onEnterFrame = function () {
targetX = (-Number(profileSelectedPet)) * profilePetSpacing;
if (Math.abs(targetX - this._x) < 0.1) {
this._x = targetX;
this.onEnterFrame = null;
} else {
this._x = this._x + ((targetX - this._x) / slideSpeed);
}
};
}
} else if (profileSelectedSpinner > 0) {
eval ("spinnersMC.subSpinnersMC.indicatorMC" + profileSelectedSpinner).stop();
profileSelectedSpinner = profileSelectedSpinner - 1;
eval ("spinnersMC.subSpinnersMC.indicatorMC" + profileSelectedSpinner).play();
if (Boolean(player.vzTkeo) || (Number(player.spinners[profileSelectedSpinner].num) < Number(numFreeSpinners))) {
player.vzpVuQ = profileSelectedSpinner;
player.sendSetActiveItem(player.spinners[player.vzpVuQ].itemID);
updatePlayerIndicatorsProfile();
}
updateCustomizationArrows(profileSelectedSpinner, player.spinners.length);
var spn = player.spinners[player.vzpVuQ];
player.hexColor = RGBToHex(spn.red0, spn.green0, spn.blue0, 100);
nameText0.htmlText = getColoredName(null, true);
spinnersMC.subSpinnersMC.onEnterFrame = function () {
targetX = (-Number(profileSelectedSpinner)) * 100;
if (Math.abs(targetX - this._x) < 0.1) {
this._x = targetX;
this.onEnterFrame = null;
} else {
this._x = this._x + ((targetX - this._x) / slideSpeed);
}
};
}
}
function pressArrowRightProfile() {
noInputTime = 0;
if (currentCustomizationTab == _pets) {
if (profileSelectedPet < (player.pets.length - 1)) {
setPetAnimation("petsMC.subSpinnersMC.petMC" + profileSelectedPet, "idle");
profileSelectedPet = profileSelectedPet + 1;
setPetAnimation("petsMC.subSpinnersMC.petMC" + profileSelectedPet, "kill");
if (Boolean(player.vzTkeo)) {
if (Boolean(player.vzTkeo)) {
player.lqJoDN = profileSelectedPet;
player.sendSetActiveItem(player.pets[player.lqJoDN].itemID);
updatePlayerPetsProfile();
}
}
updateCustomizationArrows(profileSelectedPet, player.pets.length);
petsMC.subSpinnersMC.onEnterFrame = function () {
targetX = (-Number(profileSelectedPet)) * profilePetSpacing;
if (Math.abs(targetX - this._x) < 0.1) {
this._x = targetX;
this.onEnterFrame = null;
} else {
this._x = this._x - ((this._x - targetX) / slideSpeed);
}
};
}
} else if (profileSelectedSpinner < (player.spinners.length - 1)) {
eval ("spinnersMC.subSpinnersMC.indicatorMC" + profileSelectedSpinner).stop();
profileSelectedSpinner = profileSelectedSpinner + 1;
eval ("spinnersMC.subSpinnersMC.indicatorMC" + profileSelectedSpinner).play();
if (Boolean(player.vzTkeo) || (Number(player.spinners[profileSelectedSpinner].num) < Number(numFreeSpinners))) {
player.vzpVuQ = profileSelectedSpinner;
player.sendSetActiveItem(player.spinners[player.vzpVuQ].itemID);
updatePlayerIndicatorsProfile();
}
updateCustomizationArrows(profileSelectedSpinner, player.spinners.length);
var spn = player.spinners[player.vzpVuQ];
player.hexColor = RGBToHex(spn.red0, spn.green0, spn.blue0, 100);
nameText0.htmlText = getColoredName(null, true);
spinnersMC.subSpinnersMC.onEnterFrame = function () {
targetX = (-Number(profileSelectedSpinner)) * 100;
if (Math.abs(targetX - this._x) < 0.1) {
this._x = targetX;
this.onEnterFrame = null;
} else {
this._x = this._x - ((this._x - targetX) / slideSpeed);
}
};
}
}
currentCustomizationTab = -1;
frameNum = random(frameArray.length);
var animateCount = 60;
var profilePetSpacing = 115;
var slideSpeed = 3.5;
initializeProfile();
Instance of Symbol 176 MovieClip [UIScrollBar] in Frame 4
//component parameters
onClipEvent (construct) {
_targetInstanceName = "statsText0";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (enterFrame) {
_parent.profileUpdateStatsScroll();
}
onClipEvent (mouseMove) {
_parent.profileUpdateStatsScroll();
_parent.noInputTime = 0;
}
onClipEvent (mouseUp) {
_parent.profileUpdateStatsScroll();
_parent.noInputTime = 0;
}
Instance of Symbol 234 MovieClip in Frame 4
onClipEvent (enterFrame) {
_parent.socketCallsLobby();
_parent.controlCharacterSittingAnimation();
}
Frame 5
function initializeShop() {
noInputTime = 0;
char0MC.xqlPkD.gotoAndStop("run");
char1MC.xqlPkD.gotoAndStop("run");
credText0.text = (credText1.text = formatNumber(player.qkLWaY));
h0Text0.text = (h0Text1.text = profileText[3]);
h1Text0.text = (h1Text1.text = editorText[48]);
if (Boolean(player.vzTkeo)) {
labPassMC.gotoAndStop("purchased");
} else {
labPassMC.gotoAndStop("notPurchased");
}
initializeColorPickerCrossHairs();
updatePlayerIndicatorsShop();
updatePlayerPetsShop();
pressTabPetsShop();
tabSystemInactiveMC._visible = false;
player.sendGetOwnedItemList();
getCredWin();
buySlotBTNMC._visible = false;
credMapSlotMC._visible = false;
ballistickRequiredMapSlotsMC._visible = false;
mapCredText0.text = (mapCredText1.text = "");
var i = 0;
while (i < maxMapSlots) {
eval ("mapsSlotMC" + i)._visible = false;
i++;
}
APISendMapListRequest(uName);
}
function recieveOwnedItemListShop() {
}
function updateMapSlotsShop() {
h1Text0.text = (h1Text1.text = shopText[0]);
mapCredText0.text = (mapCredText1.text = mapSlotCosts[Number(player.qxeXqu)]);
credMapSlotMC._visible = Number(player.qxeXqu) < maxMapSlots;
buySlotBTNMC._visible = Boolean(player.qxeXqu < maxMapSlots);
ballistickRequiredMapSlotsMC._visible = (Number(player.qxeXqu) >= numFreeMapSlots) && (Number(player.qxeXqu) < maxMapSlots);
var i = 0;
while (i < maxMapSlots) {
eval ("mapsSlotMC" + i)._visible = true;
if (Number(player.qxeXqu) > i) {
if (Boolean(player.vzTkeo)) {
if (mapListCustom[i] == editorText[49]) {
eval ("mapsSlotMC" + i).gotoAndStop("empty");
} else {
eval ("mapsSlotMC" + i).gotoAndStop("open");
}
} else if (mapListCustom[i] == editorText[49]) {
eval ("mapsSlotMC" + i).gotoAndStop("lockedEmpty");
} else {
eval ("mapsSlotMC" + i).gotoAndStop("lockedOpen");
}
} else if (Boolean(player.vzTkeo)) {
eval ("mapsSlotMC" + i).gotoAndStop("closed");
} else {
eval ("mapsSlotMC" + i).gotoAndStop("lockedClosed");
}
i++;
}
}
function initializeColorPickerCrossHairs() {
if (crossHairMC0X == -1) {
crossHairMC0._x = random(colorPickerMC0._width - 2) + colorPickerMC0._x;
} else {
crossHairMC0._x = crossHairMC0X;
}
if (crossHairMC0Y == -1) {
crossHairMC0._y = random(colorPickerMC0._height - 2) + colorPickerMC0._y;
} else {
crossHairMC0._y = crossHairMC0Y;
}
if (crossHairMC1X == -1) {
crossHairMC1._x = random(colorPickerMC1._width - 2) + colorPickerMC1._x;
} else {
crossHairMC1._x = crossHairMC1X;
}
if (crossHairMC1Y == -1) {
crossHairMC1._y = random(colorPickerMC1._height - 2) + colorPickerMC1._y;
} else {
crossHairMC1._y = crossHairMC1Y;
}
}
function updatePlayerIndicatorsShop() {
var _local1 = indicatorTopShopMC.attachMovie("indicatorMC" + padStr(selectedShopSpinner, 2), "indicatorMC", 1);
_local1._xscale = (_local1._yscale = 167.8);
setCustomObject2Colors(indicatorTopShopMC.indicatorMC.subIndicatorMC.colorMC0, indicatorTopShopMC.indicatorMC.subIndicatorMC.colorMC1, cR[0], cG[0], cB[0], cR[1], cG[1], cB[1], 75);
petTitle0.text = (petTitle1.text = spinnerText[selectedShopSpinner]);
petText0.text = (petText1.text = "");
spinnerPetCredText0.text = (spinnerPetCredText1.text = spinnerCosts[selectedShopSpinner]);
ballistickRequiredMC._visible = Number(selectedShopSpinner) >= Number(numFreeSpinners);
}
function updatePlayerPetsShop() {
petTopShopMC.attachMovie(("petBehavior" + petBehavior[Number(selectedShopPet) + 1]) + "MC", "bMC", 1);
var _local1 = petTopShopMC.bMC.subPetMC.attachMovie("petMC" + padStr(selectedShopPet + 1, 2), "petMC", 1);
setCustomObject2Colors(_local1.colorMC0, _local1.colorMC1, cR[0], cG[0], cB[0], cR[1], cG[1], cB[1], 100, true);
_local1._xscale = (_local1._yscale = petScale);
petTitle0.text = (petTitle1.text = petText[selectedShopPet * 2]);
petText0.text = (petText1.text = petText[(selectedShopPet * 2) + 1]);
spinnerPetCredText0.text = (spinnerPetCredText1.text = petCosts[selectedShopPet]);
ballistickRequiredMC._visible = true;
}
function initializeSpinnersShop() {
spinnersMC.gotoAndStop("shop");
var i = 0;
while (i < maxShopSpinners) {
var spnMC = spinnersMC.subSpinnersMC.attachMovie("indicatorMC" + padStr(i, 2), "indicatorMC" + i, (i * 2) + 1);
if (i != selectedShopSpinner) {
spnMC.gotoAndStop(1);
}
spnMC._xscale = (spnMC._yscale = 62.5);
spnMC._x = i * 50;
spnMC._alpha = deselectedSliderElementAlpha;
setCustomObject2Colors(spnMC.subIndicatorMC.colorMC0, spnMC.subIndicatorMC.colorMC1, cR[0], cG[0], cB[0], cR[1], cG[1], cB[1], 75);
if ((!Boolean(player.vzTkeo)) && (i >= Number(numFreeSpinners))) {
var lockMC = spinnersMC.subSpinnersMC.attachMovie("lockMC", "lockMC" + i, (i * 2) + 2);
lockMC._xscale = (lockMC._yscale = 66);
lockMC._x = (i * 50) + 20;
lockMC._y = 10;
lockMC._alpha = deselectedSliderElementAlpha;
}
i++;
}
eval ("spinnersMC.subSpinnersMC.indicatorMC" + selectedShopSpinner).play();
eval ("spinnersMC.subSpinnersMC.indicatorMC" + selectedShopSpinner)._alpha = 100;
eval ("spinnersMC.subSpinnersMC.lockMC" + selectedShopSpinner)._alpha = 100;
spinnersMC.subSpinnersMC._x = (-selectedShopSpinner) * 50;
updateCustomizationArrows(selectedShopSpinner, maxShopSpinners);
spinnerPetCredText0.text = (spinnerPetCredText1.text = spinnerCosts[selectedShopSpinner]);
ballistickRequiredMC._visible = Number(selectedShopSpinner) >= Number(numFreeSpinners);
}
function initializePetsShop() {
petsMC.gotoAndStop("shop");
var i = 0;
while (i < (maxShopPets - 1)) {
var petMC = petsMC.subSpinnersMC.attachMovie("petMC" + padStr(i + 1, 2), "petMC" + i, (i * 2) + 1);
if (i != selectedShopPet) {
petMC.gotoAndStop(1);
}
petMC._xscale = (petMC._yscale = 37.5);
petMC._x = i * shopPetSpacing;
petMC._alpha = deselectedSliderElementAlpha;
setCustomObject2Colors(petMC.colorMC0, petMC.colorMC1, cR[0], cG[0], cB[0], cR[1], cG[1], cB[1], 100, true);
if (!Boolean(player.vzTkeo)) {
var lockMC = petsMC.subSpinnersMC.attachMovie("lockMC", "lockMC" + i, (i * 2) + 2);
lockMC._xscale = (lockMC._yscale = 66);
lockMC._x = (i * shopPetSpacing) + 20;
lockMC._y = 10;
lockMC._alpha = deselectedSliderElementAlpha;
}
i++;
}
setPetAnimation("petsMC.subSpinnersMC.petMC" + selectedShopPet, "kill");
eval ("petsMC.subSpinnersMC.petMC" + selectedShopPet)._alpha = 100;
eval ("petsMC.subSpinnersMC.lockMC" + selectedShopPet)._alpha = 100;
petsMC.subSpinnersMC._x = (-selectedShopPet) * shopPetSpacing;
updateCustomizationArrows(selectedShopPet, maxShopPets - 1);
spinnerPetCredText0.text = (spinnerPetCredText1.text = petCosts[selectedShopPet]);
ballistickRequiredMC._visible = true;
}
function pressTabPetsShop() {
noInputTime = 0;
if ((currentCustomizationTab != _pets) && (shopButtonsEnabled)) {
petTopShopMC._visible = true;
indicatorTopShopMC._visible = false;
char1MC._visible = false;
char0MC._visible = true;
selectCustomizationTab(_pets);
clearSpinnersCustomization();
initializePetsShop();
updatePlayerPetsShop();
}
}
function pressTabSpinnersShop() {
noInputTime = 0;
if ((currentCustomizationTab != _spinners) && (shopButtonsEnabled)) {
petTopShopMC._visible = false;
indicatorTopShopMC._visible = true;
char0MC._visible = false;
char1MC._visible = true;
selectCustomizationTab(_spinners);
clearPetsCustomization();
initializeSpinnersShop();
updatePlayerIndicatorsShop();
}
}
function pressArrowLeftShop() {
noInputTime = 0;
if (currentCustomizationTab == _pets) {
if (selectedShopPet > 0) {
setPetAnimation("petsMC.subSpinnersMC.petMC" + selectedShopPet, "idle");
eval ("petsMC.subSpinnersMC.petMC" + selectedShopPet)._alpha = deselectedSliderElementAlpha;
eval ("petsMC.subSpinnersMC.lockMC" + selectedShopPet)._alpha = deselectedSliderElementAlpha;
selectedShopPet = selectedShopPet - 1;
setPetAnimation("petsMC.subSpinnersMC.petMC" + selectedShopPet, "kill");
eval ("petsMC.subSpinnersMC.petMC" + selectedShopPet)._alpha = 100;
eval ("petsMC.subSpinnersMC.lockMC" + selectedShopPet)._alpha = 100;
updatePlayerPetsShop();
updateCustomizationArrows(selectedShopPet, maxShopPets - 1);
petsMC.subSpinnersMC.onEnterFrame = function () {
targetX = (-selectedShopPet) * shopPetSpacing;
if (Math.abs(targetX - this._x) < 0.1) {
this._x = targetX;
this.onEnterFrame = null;
} else {
this._x = this._x + ((targetX - this._x) / 4);
}
};
}
} else if (selectedShopSpinner > 0) {
eval ("spinnersMC.subSpinnersMC.indicatorMC" + selectedShopSpinner).stop();
eval ("spinnersMC.subSpinnersMC.indicatorMC" + selectedShopSpinner)._alpha = deselectedSliderElementAlpha;
eval ("spinnersMC.subSpinnersMC.lockMC" + selectedShopSpinner)._alpha = deselectedSliderElementAlpha;
selectedShopSpinner = selectedShopSpinner - 1;
eval ("spinnersMC.subSpinnersMC.indicatorMC" + selectedShopSpinner).play();
eval ("spinnersMC.subSpinnersMC.indicatorMC" + selectedShopSpinner)._alpha = 100;
eval ("spinnersMC.subSpinnersMC.lockMC" + selectedShopSpinner)._alpha = 100;
updatePlayerIndicatorsShop();
updateCustomizationArrows(selectedShopSpinner, maxShopSpinners);
spinnersMC.subSpinnersMC.onEnterFrame = function () {
targetX = (-selectedShopSpinner) * 50;
if (Math.abs(targetX - this._x) < 0.1) {
this._x = targetX;
this.onEnterFrame = null;
} else {
this._x = this._x + ((targetX - this._x) / 4);
}
};
}
}
function pressArrowRightShop() {
noInputTime = 0;
if (currentCustomizationTab == _pets) {
if (selectedShopPet < (maxShopPets - 2)) {
setPetAnimation("petsMC.subSpinnersMC.petMC" + selectedShopPet, "idle");
eval ("petsMC.subSpinnersMC.petMC" + selectedShopPet)._alpha = deselectedSliderElementAlpha;
eval ("petsMC.subSpinnersMC.lockMC" + selectedShopPet)._alpha = deselectedSliderElementAlpha;
selectedShopPet = selectedShopPet + 1;
setPetAnimation("petsMC.subSpinnersMC.petMC" + selectedShopPet, "kill");
eval ("petsMC.subSpinnersMC.petMC" + selectedShopPet)._alpha = 100;
eval ("petsMC.subSpinnersMC.lockMC" + selectedShopPet)._alpha = 100;
updatePlayerPetsShop();
updateCustomizationArrows(selectedShopPet, maxShopPets - 1);
petsMC.subSpinnersMC.onEnterFrame = function () {
targetX = (-selectedShopPet) * shopPetSpacing;
if (Math.abs(targetX - this._x) < 0.1) {
this._x = targetX;
this.onEnterFrame = null;
} else {
this._x = this._x - ((this._x - targetX) / 4);
}
};
}
} else if (selectedShopSpinner < (maxShopSpinners - 1)) {
eval ("spinnersMC.subSpinnersMC.indicatorMC" + selectedShopSpinner).stop();
eval ("spinnersMC.subSpinnersMC.indicatorMC" + selectedShopSpinner)._alpha = deselectedSliderElementAlpha;
eval ("spinnersMC.subSpinnersMC.lockMC" + selectedShopSpinner)._alpha = deselectedSliderElementAlpha;
selectedShopSpinner = selectedShopSpinner + 1;
eval ("spinnersMC.subSpinnersMC.indicatorMC" + selectedShopSpinner).play();
eval ("spinnersMC.subSpinnersMC.indicatorMC" + selectedShopSpinner)._alpha = 100;
eval ("spinnersMC.subSpinnersMC.lockMC" + selectedShopSpinner)._alpha = 100;
updatePlayerIndicatorsShop();
updateCustomizationArrows(selectedShopSpinner, maxShopSpinners);
spinnersMC.subSpinnersMC.onEnterFrame = function () {
targetX = (-selectedShopSpinner) * 50;
if (Math.abs(targetX - this._x) < 0.1) {
this._x = targetX;
this.onEnterFrame = null;
} else {
this._x = this._x - ((this._x - targetX) / 4);
}
};
}
}
function clickColorPickerShop(init, num) {
noInputTime = 0;
var crossHairMCPointer = eval ("crossHairMC" + num);
var colorPickerMCPointer = eval ("colorPickerMC" + num);
if (!init) {
crossHairMCPointer._x = _xmouse - 1;
crossHairMCPointer._y = _ymouse;
crossHairMC0X = crossHairMC0._x;
crossHairMC0Y = crossHairMC0._y;
crossHairMC1X = crossHairMC1._x;
crossHairMC1Y = crossHairMC1._y;
}
if (FPV8) {
if (num == 0) {
cR[num] = image_bitmap0.getPixel(crossHairMCPointer._x - colorPickerMCPointer._x, crossHairMCPointer._y - colorPickerMCPointer._y) >> 16;
var temp = (image_bitmap0.getPixel(crossHairMCPointer._x - colorPickerMCPointer._x, crossHairMCPointer._y - colorPickerMCPointer._y) ^ (cR[num] << 16));
} else if (num == 1) {
cR[num] = image_bitmap1.getPixel(crossHairMCPointer._x - colorPickerMCPointer._x, crossHairMCPointer._y - colorPickerMCPointer._y) >> 16;
var temp = (image_bitmap1.getPixel(crossHairMCPointer._x - colorPickerMCPointer._x, crossHairMCPointer._y - colorPickerMCPointer._y) ^ (cR[num] << 16));
}
cG[num] = temp >> 8;
cB[num] = temp ^ (cG[num] << 8);
} else {
var replyDataSettings = new LoadVars();
var sendDataSettings = new LoadVars();
sendDataSettings.sendAndLoad("colorpicker.dat", replyDataSettings, "POST");
settingsLoading = true;
replyDataSettings.onLoad = function (success) {
var colorStr = eval ((("this.x" + int((crossHairMCPointer._x - colorPickerMCPointer._x) * 2)) + "y") + int((crossHairMCPointer._y - colorPickerMCPointer._y) * 2));
cR[num] = Number(trim(colorStr.substr(0, 3)));
cG[num] = Number(trim(colorStr.substr(3, 3)));
cB[num] = Number(trim(colorStr.substr(6, 3)));
};
}
setCustomObjectColor(eval ("indicatorTopShopMC.indicatorMC.subIndicatorMC.colorMC" + num), cR[num], cG[num], cB[num], 75);
setCustomObjectColor(eval ("petTopShopMC.bMC.subPetMC.petMC.colorMC" + num), cR[num], cG[num], cB[num], 100, true);
if (currentCustomizationTab == _spinners) {
initializeSpinnersShop();
} else if (currentCustomizationTab == _pets) {
initializePetsShop();
}
}
function pressBuySpinnerPet() {
noInputTime = 0;
if (currentCustomizationTab == _spinners) {
if (Boolean(player.vzTkeo) || (Number(selectedShopSpinner) < Number(numFreeSpinners))) {
if (validatePurchaseClientSide(Number(spinnerCosts[selectedShopSpinner]))) {
purchaseSuccessMessage = (((("\r" + shopText[7]) + "\r") + "\r") + "\r") + shopText[8];
shopPurchaseType = _shopSpinnerType;
}
} else {
displayShopMessage(((((("\r" + shopText[19]) + "\r") + "\r") + shopText[4]) + shopText[5]) + shopText[6], "window304ShopGetaPassMessageMC", true);
}
} else if (currentCustomizationTab == _pets) {
if (Boolean(player.vzTkeo)) {
if (validatePurchaseClientSide(Number(petCosts[selectedShopPet]))) {
purchaseSuccessMessage = (((("\r" + shopText[9]) + "\r") + "\r") + "\r") + shopText[10];
shopPurchaseType = _shopPetType;
}
} else {
displayShopMessage(((((("\r" + shopText[19]) + "\r") + "\r") + shopText[4]) + shopText[5]) + shopText[6], "window304ShopGetaPassMessageMC", true);
}
}
}
function pressBuyMapSlot() {
noInputTime = 0;
if (Number(player.qxeXqu) < maxMapSlots) {
if (Boolean(player.vzTkeo)) {
if (validatePurchaseClientSide(mapSlotCosts[Number(player.qxeXqu)])) {
purchaseSuccessMessage = (((("\r" + shopText[11]) + "\r") + "\r") + "\r") + shopText[12];
shopPurchaseType = _shopMapSlotType;
}
} else {
displayShopMessage(((((("\r" + shopText[19]) + "\r") + "\r") + shopText[4]) + shopText[5]) + shopText[6], "window304ShopGetaPassMessageMC", true);
}
} else {
displayShopMessage((((((("\r" + shopText[1]) + "\r") + "\r") + "\r") + shopText[13]) + maxMapSlots) + shopText[2], "window304ShopMessageMC", true);
}
}
function validatePurchaseClientSide(purchaseCost) {
if (Number(player.qkLWaY) >= purchaseCost) {
shopPurchaseCost = purchaseCost;
displayShopMessage((("\r" + shopText[20]) + purchaseCost.toString()) + shopText[21], "window304ShopConfirmMessageMC", true);
return(true);
}
displayShopMessage(((("\r" + shopText[3]) + "\r") + "\r") + shopText[18], "window304ShopMessageMC", true);
return(false);
}
function performShopPurchase() {
if (shopPurchaseType == _shopSpinnerType) {
player.spinners[player.spinners.length] = {num:selectedShopSpinner, red0:cR[0], green0:cG[0], blue0:cB[0], red1:cR[1], green1:cG[1], blue1:cB[1]};
player.sendBuyItem(100 + selectedShopSpinner, cR[0], cG[0], cB[0], cR[1], cG[1], cB[1]);
} else if (shopPurchaseType == _shopPetType) {
player.pets[player.pets.length] = {num:selectedShopPet + 1, red0:cR[0], green0:cG[0], blue0:cB[0], red1:cR[1], green1:cG[1], blue1:cB[1]};
player.sendBuyItem((200 + selectedShopPet) + 1, cR[0], cG[0], cB[0], cR[1], cG[1], cB[1]);
} else if (shopPurchaseType == _shopMapSlotType) {
player.qxeXqu = Number(player.qxeXqu) + 1;
updateMapSlotsShop();
player.sendBuyItem(240, 0, 0, 0, 0, 0, 0);
}
player.qkLWaY = Number(player.qkLWaY) - shopPurchaseCost;
credText0.text = (credText1.text = formatNumber(player.qkLWaY));
displayShopMessage(purchaseSuccessMessage, "window304ShopMessageMC", true);
}
function pressManageAccount() {
noInputTime = 0;
if ((postGetURLMC != undefined) && (postGetURLMC != null)) {
postGetURLMC.removeMovieClip();
}
_root.createEmptyMovieClip("postGetURLMC", 300000);
postGetURLMC.username = uName;
postGetURLMC.RID = random(100000);
postGetURLMC.getURL(manageAccountURL, "_blank", "GET");
}
function displayShopMessage(msg, windowExportName, hideButtons) {
_root.attachMovie(windowExportName, "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 25;
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
if (hideButtons) {
showShopButtons(false);
}
}
function closeShopMessage() {
showShopButtons(true);
}
function confirmShopPurchase() {
performShopPurchase();
showShopButtons(true);
}
function cancelShopPurchase() {
showShopButtons(true);
}
function showShopButtons(b) {
shopButtonsEnabled = b;
manageAccountBTNMC._visible = (buyBTNMC._visible = (arrowRightMC._visible = (arrowLeftMC._visible = (tabSystemMC._visible = (tabRightMC._visible = (tabLeftMC._visible = b))))));
tabSystemInactiveMC._visible = !b;
tabSystemInactiveMC.gotoAndStop(currentTab + 1);
buySlotBTNMC._visible = b && (player.qxeXqu < maxMapSlots);
}
function getCredWin() {
if (ticketWaiting) {
ticketWaiting = false;
tabSystemMC.tabShopMC.tabShopGlowMC.gotoAndStop("noGlow");
player.sendCredWinRequest();
}
}
function showTicket(prizeNumber) {
petsMC._visible = (spinnersMC._visible = (char0MC._visible = (char1MC._visible = (petTopShopMC._visible = false))));
showShopButtons(false);
attachMovie("ticketParentMC", "ticketMC", 100000);
ticketMC._x = 281;
ticketMC._y = 202;
cachedPrizeValue = Number(prizes[prizeNumber]);
ticketMC.windowMC.msgText0.text = (ticketMC.windowMC.msgText1.text = (shopText[14] + formatNumber(cachedPrizeValue)) + shopText[15]);
ticketMC.windowMC.msg2Text0.text = (ticketMC.windowMC.msg2Text1.text = shopText[18]);
ticketMC.ticketMC.prizeMC.gotoAndStop(prizeNumber + 1);
ticketMC.ticketMC.prizeTextMC.prizeText.text = cachedPrizeValue.toString().concat(shopText[17]);
}
function awardTicketValue() {
player.qkLWaY = Number(player.qkLWaY) + cachedPrizeValue;
if (currentTab == _shop) {
credText0.text = (credText1.text = formatNumber(player.qkLWaY));
}
}
function closeTicket() {
cleanUpTicket();
ticketMC.removeMovieClip();
ticketMC.unloadMovie();
showShopButtons(true);
}
function cleanUpTicket() {
petsMC._visible = (spinnersMC._visible = (char0MC._visible = (petTopShopMC._visible = true)));
labPassMC.ballistickAdMC.play();
}
currentCustomizationTab = -1;
frameNum = random(frameArray.length);
var animateCount = 60;
var shopButtonsEnabled = true;
var deselectedSliderElementAlpha = 25;
var shopPetSpacing = 65;
var purchaseSuccessMessage;
var shopPurchaseCost;
var shopPurchaseType;
var cachedPrizeValue;
var _shopSpinnerType = 0;
var _shopPetType = 1;
var _shopMapSlotType = 2;
initializeShop();
var cR = new Array(150, 150);
var cG = new Array(150, 150);
var cB = new Array(150, 150);
var image_bitmap0 = (new flash.display.BitmapData(colorPickerMC0._width, colorPickerMC0._height));
var image_bitmap1 = (new flash.display.BitmapData(colorPickerMC1._width, colorPickerMC1._height));
image_bitmap0.draw(colorPickerMC0);
image_bitmap1.draw(colorPickerMC1);
clickColorPickerShop(true, 0);
clickColorPickerShop(true, 1);
Instance of Symbol 2529 MovieClip "colorPickerMC1" in Frame 5
on (press) {
if (_parent.shopButtonsEnabled) {
_parent.qkRqyP("press", null, _parent.crossHairMC1);
_parent.clickColorPickerShop(false, 1);
}
}
Instance of Symbol 2529 MovieClip "colorPickerMC0" in Frame 5
on (press) {
if (_parent.shopButtonsEnabled) {
_parent.qkRqyP("press", null, _parent.crossHairMC0);
_parent.clickColorPickerShop(false, 0);
}
}
Instance of Symbol 2571 MovieClip "labPassMC" in Frame 5
on (press) {
if (_parent.shopButtonsEnabled) {
_parent.qkRqyP("press", this, null);
}
}
on (release) {
if (_parent.shopButtonsEnabled) {
_parent.pressGetAPass();
_parent.qkRqyP("release", null);
}
}
on (rollOver) {
if (_parent.shopButtonsEnabled) {
_parent.qkRqyP("subtleOver", this, null);
}
}
on (releaseOutside, rollOut) {
if (_parent.shopButtonsEnabled) {
_parent.qkRqyP("out", this, null);
}
}
Instance of Symbol 234 MovieClip in Frame 5
onClipEvent (enterFrame) {
_parent.socketCallsLobby();
}
Frame 6
function initializeMapEditor() {
_root.attachMovie("window470MapEditorMC", "windowMC", 200000, {_x:175, _y:140});
qkRqyP("windowShow", windowMC);
showHideEditorButtons(false);
editorHelpMode = _modeNewOrLoad;
updateEditorHelpText();
}
function showHideEditorButtons(b) {
btnXMC._visible = (btnHelpMC._visible = (bgEditorMC._visible = (tilesMC._visible = b)));
}
function pressNewMapEditor() {
noInputTime = 0;
windowMC.removeMovieClip();
_root.attachMovie("window470NewMapMC", "windowMC", 200000);
windowMC._x = 40;
windowMC._y = 78;
qkRqyP("windowShow", windowMC);
editorHelpMode = _modeNew;
updateEditorHelpText();
if (Number(player.qxeXqu) == 0) {
_root.attachMovie("window304EditorNewMapWarnMessageMC", "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 10;
window2MC.msgText0.text = (window2MC.msgText1.text = editorText[63]);
qkRqyP("windowShow", window2MC);
}
}
function loadDifferentPlayersMapList() {
if (windowMC.userNameText._visible == true) {
var i = 0;
while (i < maxMapSlots) {
eval ("windowMC.mapsSlotMC" + i)._visible = false;
var n = 0;
while (n < 2) {
with (eval (("windowMC.mapName" + i.toString()) + n.toString())) {
text = "";
}
n++;
}
i++;
}
showLoadMapTextBoxes(false);
windowMC.mapName20._visible = (windowMC.mapName21._visible = true);
windowMC.mapName20.text = (windowMC.mapName21.text = editorText[48]);
windowMC.h0Text0.text = (windowMC.h0Text1.text = editorText[2]);
APISendMapListRequest(windowMC.userNameText.text);
}
}
function pressLoadMapEditor() {
noInputTime = 0;
windowMC.removeMovieClip();
_root.attachMovie("window470LoadMapMC", "windowMC", 200000);
windowMC._x = 40;
windowMC._y = 28;
qkRqyP("windowShow", windowMC);
var i = 0;
while (i < maxMapSlots) {
eval ("windowMC.mapsSlotMC" + i)._visible = false;
var n = 0;
while (n < 2) {
with (eval (("windowMC.mapName" + i.toString()) + n.toString())) {
text = "";
}
n++;
}
i++;
}
showLoadMapTextBoxes(false);
windowMC.mapName20._visible = (windowMC.mapName21._visible = true);
windowMC.mapName20.text = (windowMC.mapName21.text = editorText[48]);
windowMC.h0Text0.text = (windowMC.h0Text1.text = editorText[2]);
windowMC.userName0.text = (windowMC.userName1.text = currentEditorMapListUserName + editorText[65]);
windowMC.playerNameHeader0.text = (windowMC.playerNameHeader1.text = editorText[67]);
windowMC.stockMapHeader0.text = (windowMC.stockMapHeader1.text = editorText[68]);
windowMC.userNameText.text = editorText[66];
editorHelpMode = _modeLoad;
updateEditorHelpText();
APISendMapListRequest(uName);
var sFontName = tDummy.getTextFormat(0, 1).font;
tDummy._visible = 0;
_global.styles.TextArea.setStyle("fontFamily", "FFF Astro");
_global.style.setStyle("themeColor", 11260150);
var objectList = new Array("stockMapBox");
var i = 0;
while (i < objectList.length) {
with (eval ("windowMC." + objectList[i])) {
fontSize = 8;
color = "0xA1CAFF";
setStyle("embedFonts", true);
setStyle("fontFamily", sFontName);
}
i++;
}
windowMC.stockMapBox.backgroundColor = "0x4E657B";
windowMC.stockMapBox.openDuration = 150;
}
function pressMapSlotEditor(mapSlotNum, mapIsStock) {
noInputTime = 0;
if ((mapListCustom.length > mapSlotNum) || (mapIsStock)) {
if (editMode == _modeSaveMap) {
if (mapListCustom[mapSlotNum] != editorText[49]) {
showLoadMapTextBoxes(false);
_root.attachMovie("window304OverwriteConfirmationMC", "window2MC", 200001);
window2MC._x = 80;
window2MC._y = 10;
window2MC.msgText0.text = (window2MC.msgText1.text = editorText[56]);
qkRqyP("windowShow", window2MC);
lastSelectedSaveSlot = mapSlotNum;
} else {
performSaveEditor(mapSlotNum);
}
} else {
showLoadMapTextBoxes(false);
if (mapIsStock) {
loadStockMapIntoEditor("maps/" + mapList[mapSlotNum]);
} else if (mapListCustom[mapSlotNum] != editorText[49]) {
var i = 0;
while (i < maxMapSlots) {
var n = 0;
while (n < 2) {
with (eval (("windowMC.mapName" + i.toString()) + n.toString())) {
text = "";
}
n++;
}
i++;
}
windowMC.mapName20.text = (windowMC.mapName21.text = editorText[48]);
loadCustomMapIntoEditor(mapSlotNum, currentEditorMapListUserName);
} else {
displayLoadMapMessage(editorText[50]);
}
}
}
}
function pressLoadStockMapEditor() {
var _local1 = windowMC.stockMapBox.getItemAt(windowMC.stockMapBox.selectedIndex).data;
pressMapSlotEditor(_local1, true);
}
function editorOverwriteConfirm(mapSlotNum) {
windowMC.mapName20.text = (windowMC.mapName21.text = editorText[55]);
performSaveEditor(lastSelectedSaveSlot);
}
function editorOverwriteCancel(mapSlotNum) {
showSaveMapTextBoxes(true);
}
function performSaveEditor(mapSlotNum) {
showSaveMapTextBoxes(false);
var i = 0;
while (i < maxMapSlots) {
var n = 0;
while (n < 2) {
with (eval (("windowMC.mapName" + i.toString()) + n.toString())) {
text = "";
}
n++;
}
i++;
}
windowMC.mapName20.text = (windowMC.mapName21.text = editorText[55]);
var replyDataAPI = new XML();
var sendDataAPI = new LoadVars();
sendDataAPI.data = generateMapString();
var apiCallString = ((((((((apiURL + "method=xgen.stickarena.maps.save&username=") + uName) + "&password=") + uPass) + "&slot_id=") + mapSlotNum.toString()) + "&name=") + editorMapName);
sendDataAPI.sendAndLoad(apiCallString, replyDataAPI, "POST");
replyDataAPI.onLoad = function (success) {
if (success) {
if (quitOnSuccessfulSave) {
exitMapEditor();
} else {
pressSaveMapX();
}
} else {
displaySaveMapMessage(editorText[61]);
}
};
}
function generateMapString() {
str = "inf=";
str = str + (padWithChar(mapWidth, 2, " ") + " ");
str = str + (padWithChar(mapHeight, 2, " ") + " ");
str = str + (editorMapName + " ");
str = str + "&tiles=\r";
var _local2 = 0;
while (_local2 < mapHeight) {
var _local1 = 0;
while (_local1 < mapWidth) {
str = str + earth[_local1][_local2][0];
str = str + earth[_local1][_local2][1];
str = str + earth[_local1][_local2][2];
str = str + (earth[_local1][_local2][3] + " ");
_local1++;
}
_local2++;
}
str = str + "\r&sp=";
var _local4 = 0;
while (_local4 < 8) {
str = str + (padWithChar(editorPlayerSpawnsArray[_local4][0] * 50, 4, " ") + " ");
str = str + (padWithChar(editorPlayerSpawnsArray[_local4][1] * 50, 4, " ") + " ");
_local4++;
}
str = str + "\r&ws=";
var _local3 = 0;
while (_local3 < 8) {
str = str + (padWithChar(editorWeaponSpawnsArray[_local3][0] * 50, 4, " ") + " ");
str = str + (padWithChar(editorWeaponSpawnsArray[_local3][1] * 50, 4, " ") + " ");
str = str + (padWithChar(editorWeaponSpawnsArray[_local3][2], 4, " ") + " ");
str = str + (padWithChar(editorWeaponSpawnsArray[_local3][3], 4, " ") + " ");
_local3++;
}
str = str + "\r&rt=";
str = str + (padWithChar(300, 4, " ") + " ");
str = str + "\r&ts=";
str = str + (padWithChar(editorTileSet, 1, " ") + " ");
return(str);
}
function updateMapSlotsEditor() {
windowMC.userName0.text = (windowMC.userName1.text = currentEditorMapListUserName + editorText[65]);
windowMC.mapName20.text = (windowMC.mapName21.text = "");
if ((mapListCustom.length > 0) || ((editMode == _modeSaveMap) && (Number(player.qxeXqu) > 0))) {
var i = 0;
while (i < maxMapSlots) {
if ((mapListCustom.length > i) || ((editMode == _modeSaveMap) && (Number(player.qxeXqu) > i))) {
eval ("windowMC.mapsSlotMC" + i)._visible = true;
var n = 0;
while (n < 2) {
with (eval (("windowMC.mapName" + i.toString()) + n.toString())) {
text = mapListCustom[i];
}
n++;
}
if (Boolean(player.vzTkeo)) {
if (mapListCustom[i] == editorText[49]) {
eval ("windowMC.mapsSlotMC" + i).gotoAndStop("empty");
} else {
eval ("windowMC.mapsSlotMC" + i).gotoAndStop("open");
}
} else if (mapListCustom[i] == editorText[49]) {
eval ("windowMC.mapsSlotMC" + i).gotoAndStop("lockedEmpty");
} else {
eval ("windowMC.mapsSlotMC" + i).gotoAndStop("lockedOpen");
}
} else if (Boolean(player.vzTkeo)) {
eval ("windowMC.mapsSlotMC" + i).gotoAndStop("closed");
} else {
eval ("windowMC.mapsSlotMC" + i).gotoAndStop("lockedClosed");
}
i++;
}
} else if (editMode == _modeSaveMap) {
windowMC.mapName20.text = (windowMC.mapName21.text = "");
showSaveMapTextBoxes(false);
displaySaveMapMessage(editorText[54]);
} else {
windowMC.mapName20.text = (windowMC.mapName21.text = "");
showLoadMapTextBoxes(false);
displayLoadMapMessage(editorText[51]);
}
}
function populateStockMapListBox(nn) {
cleanUpPopulateMapListBox();
replyDataMaps = new LoadVars();
sendDataMaps = new LoadVars();
sendDataMaps.sendAndLoad("maps/" + mapList[nn], replyDataMaps, "POST");
replyDataMaps.onLoad = function (success) {
if (nn >= numClassicMaps) {
windowMC.stockMapBox.addItem({label:ballistickOnlyMarker + this.inf.substring(6, this.inf.length), data:nn});
} else {
windowMC.stockMapBox.addItem({label:this.inf.substring(6, this.inf.length), data:nn});
}
if (nn < (mapList.length - 1)) {
populateStockMapListBox(nn + 1);
}
};
}
function displayNewMapMessage(msg) {
_root.attachMovie("window304NewMapMessageMC", "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 10;
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
qkRqyP("windowShow", window2MC);
}
function displayLoadMapMessage(msg) {
_root.attachMovie("window304LoadMapMessageMC", "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 10;
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
qkRqyP("windowShow", window2MC);
}
function displaySaveMapMessage(msg) {
_root.attachMovie("window304SaveMapMessageMC", "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 10;
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
qkRqyP("windowShow", window2MC);
}
function closeNewMapMessage() {
showNewMapTextBoxes(true);
}
function closeLoadMapMessage() {
if (mapListCustom.length > 0) {
showLoadMapTextBoxes(true);
} else {
pressLoadMapX();
}
}
function closeSaveMapMessage() {
showSaveMapTextBoxes(true);
}
function showNewMapTextBoxes(b) {
windowMC.mapnameText._visible = (windowMC.heightSlider._visible = (windowMC.widthSlider._visible = (windowMC.themeBox._visible = (windowMC.btnXMC._visible = (windowMC.btnHelpMC._visible = (windowMC.btnOKMC._visible = b))))));
}
function showLoadMapTextBoxes(b) {
windowMC.cancelBTNMC._visible = (windowMC.mapsSlotMC0._visible = (windowMC.mapsSlotMC1._visible = (windowMC.mapsSlotMC2._visible = (windowMC.mapsSlotMC3._visible = (windowMC.mapsSlotMC4._visible = (windowMC.btnXMC._visible = (windowMC.btnHelpMC._visible = (windowMC.loadMapListBTNMC._visible = (windowMC.loadStockMapBTNMC._visible = (windowMC.userNameText._visible = (windowMC.userNameBoxMC._visible = (windowMC.playerNameHeader0._visible = (windowMC.playerNameHeader1._visible = (windowMC.stockMapHeader0._visible = (windowMC.stockMapHeader1._visible = (windowMC.userName0._visible = (windowMC.userName1._visible = b)))))))))))))))));
windowMC.stockMapBox._x = 254 + (1000 * Number(!b));
}
function showSaveMapTextBoxes(b) {
windowMC.cancelBTNMC._visible = (windowMC.mapsSlotMC0._visible = (windowMC.mapsSlotMC1._visible = (windowMC.mapsSlotMC2._visible = (windowMC.mapsSlotMC3._visible = (windowMC.mapsSlotMC4._visible = (windowMC.btnXMC._visible = (windowMC.btnHelpMC._visible = (windowMC.cancelBTNMC._visible = b))))))));
}
function pressLoadMapX() {
windowMC.removeMovieClip();
initializeMapEditor();
}
function pressSaveMapX() {
noInputTime = 0;
windowMC.removeMovieClip();
editorHelpMode = _modeEditing;
updateEditorHelpText();
showHideEditorButtons(true);
changeEditMode(_modeMoveMap);
quitOnSuccessfulSave = false;
}
function pressNewMapClose() {
windowMC.removeMovieClip();
initializeMapEditor();
}
function pressNewMapOK(mapName, mapH, mapW, theme) {
noInputTime = 0;
editorHelpMode = _modeEditing;
updateEditorHelpText();
showNewMapTextBoxes(false);
var _local4 = null;
editorMapName = mapName.toLowerCase();
editorTileSet = theme;
currentTilePage = themeStartingPages[editorTileSet];
if (editorMapName.length > 2) {
if (isLegalAccountString(editorMapName)) {
if (containsNoFilteredLanguage(editorMapName)) {
windowMC.removeMovieClip();
mapHeight = mapH;
mapWidth = mapW;
Key.addListener(editorKeyListener);
showHideEditorButtons(true);
pressHandEditor();
earth = new Array();
var _local1 = 0;
while (_local1 < mapWidth) {
earth[_local1] = new Array();
var _local2 = 0;
while (_local2 < mapHeight) {
earth[_local1][_local2] = new Array(0, 0, 0, 0);
_local2++;
}
_local1++;
}
editorSelectedTileCollision = 0;
editorSelectedTileRotation = 0;
editorSelectedTileMirror = 0;
var _local2 = 0;
while (_local2 < mapHeight) {
_local1 = 0;
while (_local1 < mapWidth) {
if (editorTileSet == 0) {
if (random(2) == 0) {
earth[_local1][_local2][0] = "0F0";
} else {
earth[_local1][_local2][0] = "0F1";
}
editorSelectedTile = "0F0";
} else if (editorTileSet == 1) {
var _local3 = random(7);
if (_local3 == 0) {
earth[_local1][_local2][0] = "2G0";
} else if (_local3 == 1) {
earth[_local1][_local2][0] = "2G1";
} else if (_local3 == 2) {
earth[_local1][_local2][0] = "2G2";
} else if (_local3 == 3) {
earth[_local1][_local2][0] = "2G3";
} else if (_local3 == 4) {
earth[_local1][_local2][0] = "2G4";
} else if (_local3 == 5) {
earth[_local1][_local2][0] = "2G5";
} else if (_local3 == 6) {
earth[_local1][_local2][0] = "2G6";
}
editorSelectedTile = "2G0";
} else if (editorTileSet == 2) {
if (random(2) == 0) {
earth[_local1][_local2][0] = "1E9";
} else {
earth[_local1][_local2][0] = "1F0";
}
editorSelectedTile = "1E9";
} else if (editorTileSet == 3) {
if (random(2) == 0) {
earth[_local1][_local2][0] = "3D0";
} else {
earth[_local1][_local2][0] = "3D1";
}
editorSelectedTile = "3D0";
}
earth[_local1][_local2][1] = "0";
earth[_local1][_local2][2] = "0";
earth[_local1][_local2][3] = "0";
_local1++;
}
_local2++;
}
createTiles();
displayEarth();
currentArea.fileName = "";
} else {
_local4 = editorText[12];
}
} else {
_local4 = editorText[10];
}
} else {
_local4 = editorText[11];
}
if (_local4 != null) {
displayNewMapMessage(_local4);
}
}
function pressLoadMapOK() {
noInputTime = 0;
editorLoadMapComplete();
}
function editorLoadMapComplete() {
windowMC.removeMovieClip();
Key.addListener(editorKeyListener);
showHideEditorButtons(true);
}
function pressHelpMapEditor() {
noInputTime = 0;
_root.attachMovie("window470HelpMC", "windowHelpMC", 200003);
windowHelpMC._y = 40;
windowHelpMC._x = 40;
windowHelpMC.h0Text0.text = (windowHelpMC.h0Text1.text = editorText[42]);
updateEditorHelpText();
}
function updateEditorHelpText() {
switch (editorHelpMode) {
case _modeNewOrLoad :
windowHelpMC.helpText0.text = (windowHelpMC.helpText1.text = editorText[43]);
return;
case _modeNew :
windowHelpMC.helpText0.text = (windowHelpMC.helpText1.text = editorText[44]);
return;
case _modeLoad :
windowHelpMC.helpText0.text = (windowHelpMC.helpText1.text = editorText[45]);
return;
case _modeEditing :
windowHelpMC.helpText0.text = (windowHelpMC.helpText1.text = editorText[46]);
return;
case _modeSave :
windowHelpMC.helpText0.text = (windowHelpMC.helpText1.text = editorText[53]);
}
}
function startMapMove() {
changeEditMode(_modeMoveMapClosed);
dragXDif = _root._xmouse - tilesMC._x;
dragYDif = _root._ymouse - tilesMC._y;
tilesMC.onEnterFrame = function () {
this._x = Math.max(-((mapWidth * 50) - 575), Math.min(25, _root._xmouse - dragXDif));
this._y = Math.max(-((mapHeight * 50) - 425), Math.min(25, _root._ymouse - dragYDif));
};
}
function stopMapMove() {
changeEditMode(_modeMoveMap);
delete tilesMC.onEnterFrame;
}
function startToolMove() {
noInputTime = 0;
changeEditMode(_modeMoveMapClosed);
dragXDif = _root._xmouse - bgEditorMC._x;
dragYDif = _root._ymouse - bgEditorMC._y;
bgEditorMC.onEnterFrame = function () {
if ((((_root._xmouse > 0) && (_root._xmouse < Stage.width)) && (_root._ymouse > 0)) && (_root._ymouse < Stage.height)) {
this._x = Math.min(Math.max(_root._xmouse - dragXDif, 0), Stage.width - 64);
if (toolBarExpanded) {
this._y = Math.min(Math.max(_root._ymouse - dragYDif, 0), Stage.height - 343);
} else {
this._y = Math.min(Math.max(_root._ymouse - dragYDif, 0), Stage.height - 10);
}
}
};
}
function stopToolMove() {
changeEditMode(_modeMoveMap);
delete bgEditorMC.onEnterFrame;
}
function doubleClickToolBar(gotoFrame, showGUI) {
bgEditorMC.gotoAndStop(gotoFrame);
btnXMC._visible = (btnHelpMC._visible = (editorModeTextMC._visible = (xqMnuDALnfp._visible = (toolBarExpanded = showGUI))));
if (toolBarExpanded) {
bgEditorMC._y = Math.min(bgEditorMC._y, Stage.height - 343);
}
}
function startHelpMove() {
noInputTime = 0;
changeCursor(_modeMoveMapClosed);
dragXDif = _root._xmouse - windowHelpMC._x;
dragYDif = _root._ymouse - windowHelpMC._y;
windowHelpMC.onEnterFrame = function () {
if ((((_root._xmouse > 0) && (_root._xmouse < Stage.width)) && (_root._ymouse > 0)) && (_root._ymouse < Stage.height)) {
this._x = int(Math.min(Math.max(_root._xmouse - dragXDif, (-this._width) + 50), Stage.width - 50));
this._y = int(Math.min(Math.max(_root._ymouse - dragYDif, (-this._height) + 50), Stage.height - 50));
}
};
}
function stopHelpMove() {
changeCursor(editMode);
delete windowHelpMC.onEnterFrame;
}
function pressTileSetsEditor() {
changeEditMode(_modeTileSets);
}
function pressPrefabsEditor() {
changeEditMode(_modeObjectPlacement);
}
function pressHandEditor() {
changeEditMode(_modeMoveMap);
}
function pressPaintBrushEditor() {
changeEditMode(_modePaintBrush);
}
function pressEyeDropperEditor() {
changeEditMode(_modeEyeDropper);
}
function pressRotateEditor() {
changeEditMode(_modeRotate);
}
function pressMirrorXEditor() {
changeEditMode(_modeMirrorX);
}
function pressMirrorYEditor() {
changeEditMode(_modeMirrorY);
}
function pressSpawnsEditor() {
editorToolBarMode = _toolBarModeSpawns;
changeEditMode(_modeSpawns);
}
function pressTilesEditor() {
editorToolBarMode = _toolBarModeTiles;
changeEditMode(_modeTiles);
}
function pressDeleteEditor() {
changeEditMode(_modeDelete);
}
function pressPlaceSpawnEditor(weaponNum) {
changeEditMode(weaponNum + 15);
}
function customMapIsValid() {
var _local2 = false;
var _local1 = 0;
while (_local1 < editorPlayerSpawnsArray.length) {
if (editorPlayerSpawnsArray[_local1][0] != 0) {
_local2 = true;
}
_local1++;
}
return(_local2);
}
function pressSaveEditor() {
noInputTime = 0;
if (customMapIsValid()) {
showHideEditorButtons(false);
changeEditMode(_modeSaveMap);
editorHelpMode = _modeSave;
updateEditorHelpText();
_root.attachMovie("window470SaveMapMC", "windowMC", 200000);
windowMC._x = 40;
windowMC._y = 78;
qkRqyP("windowShow", windowMC);
var i = 0;
while (i < maxMapSlots) {
eval ("windowMC.mapsSlotMC" + i)._visible = false;
var n = 0;
while (n < 2) {
with (eval (("windowMC.mapName" + i.toString()) + n.toString())) {
text = "";
}
n++;
}
i++;
}
showSaveMapTextBoxes(false);
windowMC.mapName20._visible = (windowMC.mapName21._visible = true);
windowMC.mapName20.text = (windowMC.mapName21.text = editorText[48]);
windowMC.h0Text0.text = (windowMC.h0Text1.text = editorText[52]);
tilesMC._visible = true;
APISendMapListRequest(uName);
} else {
quitOnSuccessfulSave = false;
_root.attachMovie("window304EditorGeneralMessageMC", "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 10;
window2MC.msgText0.text = (window2MC.msgText1.text = editorText[62]);
qkRqyP("windowShow", window2MC);
}
}
function closeEditorGeneralMessageWindow() {
showHideEditorButtons(true);
pressHandEditor();
}
function pressXMapEditor() {
noInputTime = 0;
showHideEditorButtons(false);
changeEditMode(_modeClose);
_root.attachMovie("window304EditorQuitConfirmation", "windowMC", 200000, {_x:123, _y:102});
qkRqyP("windowShow", windowMC);
windowMC.msgText0.text = (windowMC.msgText1.text = editorText[47]);
tilesMC._visible = true;
}
function pressXMapEditorQuitConfirmation() {
showHideEditorButtons(true);
pressHandEditor();
}
function exitMapEditor() {
clearEditorGarbage();
if (connectedToSever) {
pressTab(lastTab);
} else {
qkxRrK("\r" + editorText[58], "title");
}
}
function pressXMapEditorWindow() {
exitMapEditor();
}
function pressOKMapEditor() {
pressXMapEditor();
}
function pressXTileSets() {
tileSetsMC.removeMovieClip();
showHideEditorButtons(true);
pressHandEditor();
}
function pressXHelp() {
windowHelpMC.removeMovieClip();
}
function changeEditMode(modeNum) {
noInputTime = 0;
if (autoBrushIntervalID != null) {
clearInterval(autoBrushIntervalID);
autoBrushIntervalID = null;
}
editMode = modeNum;
editorModeTextMC.h0Text0.text = (editorModeTextMC.h0Text1.text = editorText[14 + modeNum]);
if (editMode == _modeTileSets) {
cursorNormal();
initializeTileSets();
} else if (editMode == _modeSpawns) {
initializeSpawnsMode();
} else if (editMode == _modeTiles) {
initializeTilesMode();
} else {
changeCursor(modeNum);
}
}
function initializeSpawnsMode() {
bgEditorMC.gotoAndStop("spawnsFrame");
btnXMC._visible = (btnHelpMC._visible = (editorModeTextMC._visible = (toolBarExpanded = true)));
pressHandEditor();
}
function initializeTilesMode() {
bgEditorMC.gotoAndStop("tilesFrame");
btnXMC._visible = (btnHelpMC._visible = (editorModeTextMC._visible = (toolBarExpanded = true)));
pressHandEditor();
}
function rollOverEditorButton(modeNum) {
noInputTime = 0;
editorModeTextMC.h0Text0.text = (editorModeTextMC.h0Text1.text = editorText[14 + modeNum]);
}
function rollOffEditorButton() {
editorModeTextMC.h0Text0.text = (editorModeTextMC.h0Text1.text = editorText[14 + editMode]);
}
function pressArrowTileSets(dir) {
noInputTime = 0;
currentTilePage = Math.min(Math.max(currentTilePage + dir, 1), maxTilePage);
tileSetsMC.h1Text0.text = (tileSetsMC.h1Text1.text = (currentTilePage + "/") + maxTilePage);
tileSetsMC.subTilesMC._y = ((-(currentTilePage - 1)) * tileSetsHeight) * 52;
}
function selectTile(xx, yy) {
xx = xx - 25;
yy = yy - 70;
xx = int(xx / 52);
yy = int(yy / 52);
var _local1 = (xx + (yy * tileSetsWidth)) + 1;
editorSelectedTile = tilesArray[_local1];
editorSelectedTileRotation = tilesArrayRot[_local1];
editorSelectedTileMirror = tilesArrayMirror[_local1];
editorSelectedTileCollision = tilesArrayCol[_local1];
tileSetsMC.removeMovieClip();
showHideEditorButtons(true);
changeEditMode(_modePaintBrush);
}
function createTiles() {
_root.createEmptyMovieClip("tilesMC", rootDepthCount++);
tempDepthCount = 1000;
var _local3 = 0;
while (_local3 < mapWidth) {
var _local2 = 0;
while (_local2 < mapHeight) {
val = (_local3 * 100) + _local2;
var _local4 = tilesMC.createEmptyMovieClip("tile" + val, tempDepthCount++);
_local2++;
}
_local3++;
}
}
function calculateTileMirror(axis, mirrorCode) {
if ((axis == "x") && ((mirrorCode == 1) || (mirrorCode == 3))) {
return(-100);
}
if ((axis == "y") && ((mirrorCode == 2) || (mirrorCode == 3))) {
return(-100);
}
return(100);
}
function positionAndScaleTile(x, y) {
with (eval ("tilesMC" + getTileName(x, y))) {
_x = x * 50;
_y = y * 50;
_xscale = (_yscale = 100);
}
}
function loadTile(x, y) {
with (eval ("tilesMC" + getTileName(x, y))) {
g = getTileGraphicName(x, y);
attachMovie("tile" + g[0], "graphic", 1000);
_rotation = g[1] * 90;
_xscale = calculateTileMirror("x", g[2]);
_yscale = calculateTileMirror("y", g[2]);
}
}
function removeTile(x, y) {
with (eval ("tilesMC" + getTileName(x, y))) {
graphic.removeMovieClip();
}
}
function reloadTileEditor(x, y) {
removeTile(x, y);
loadTile(x, y);
}
function displayEarth() {
var _local2 = 0;
while (_local2 < mapWidth) {
var _local1 = 0;
while (_local1 < mapHeight) {
positionAndScaleTile(_local2, _local1);
loadTile(_local2, _local1);
_local1++;
}
_local2++;
}
}
function getTileGraphicName(x, y) {
return(new Array(earth[x][y][0], earth[x][y][1], earth[x][y][2]));
}
function getTileName(x, y) {
var _local1 = ".tile".concat((x * 100) + y);
return(_local1);
}
function loadStockMapIntoEditor(fName) {
currentArea.fileName = fName;
replyData = new LoadVars();
sendData = new LoadVars();
sendData.sendAndLoad(fName, replyData, "POST");
replyData.onLoad = function (success) {
if (success) {
loadMapIntoEditor(this.inf, this.tiles, this.sp, this.ws, this.rt, this.ts);
} else {
windowMC.mapName20.text = (windowMC.mapName21.text = editorText[60]);
windowMC.cancelBTNMC._visible = (windowMC.btnXMC._visible = true);
}
};
}
function loadCustomMapIntoEditor(mapSlotNum, differentPlayerName) {
if ((differentPlayerName != null) && (differentPlayerName != undefined)) {
var _local4 = (((apiURL + "method=xgen.stickarena.maps.get&username=") + differentPlayerName) + "&slot_id=") + mapSlotNum.toString();
} else {
var _local4 = (((apiURL + "method=xgen.stickarena.maps.get&username=") + uName) + "&slot_id=") + mapSlotNum.toString();
}
currentArea.fileName = _local4;
replyData = new XML();
sendData = new LoadVars();
sendData.sendAndLoad(_local4, replyData, "POST");
replyData.onLoad = function (success) {
if (success) {
var _local3 = this.childNodes[0];
var _local4 = _local3.childNodes[1].childNodes[1].childNodes[1].firstChild.toString();
var _local2 = _local3.childNodes[1].childNodes[1].childNodes[3].firstChild.toString();
var _local7 = _local2.substr(_local2.indexOf("inf=") + 4, (_local2.indexOf("&", _local2.indexOf("inf=")) - _local2.indexOf("inf=")) - 4);
var _local5 = " " + _local2.substr(_local2.indexOf("tiles=") + 6, (_local2.indexOf("&", _local2.indexOf("tiles=")) - _local2.indexOf("tiles=")) - 6);
var _local9 = _local2.substr(_local2.indexOf("sp=") + 3, (_local2.indexOf("&", _local2.indexOf("sp=")) - _local2.indexOf("sp=")) - 3);
var _local8 = _local2.substr(_local2.indexOf("ws=") + 3, (_local2.indexOf("&", _local2.indexOf("ws=")) - _local2.indexOf("ws=")) - 3);
var _local10 = _local2.substr(_local2.indexOf("rt=") + 3, (_local2.indexOf("&", _local2.indexOf("rt=")) - _local2.indexOf("rt=")) - 3);
var _local6 = _local2.substr(_local2.indexOf("ts=") + 3, (_local2.indexOf("&", _local2.indexOf("ts=")) - _local2.indexOf("ts=")) - 3);
loadMapIntoEditor(_local7, _local5, _local9, _local8, _local10, _local6);
} else {
windowMC.mapName20.text = (windowMC.mapName21.text = editorText[60]);
windowMC.cancelBTNMC._visible = (windowMC.btnXMC._visible = true);
}
};
}
function loadMapIntoEditor(metaData, tileData, spawnData, weaponSpawnData, roundTimeData, tileSetData) {
windowMC.removeMovieClip();
editorHelpMode = _modeEditing;
updateEditorHelpText();
Key.addListener(editorKeyListener);
showHideEditorButtons(true);
pressHandEditor();
editorMapName = metaData.substr(6, metaData.length - 7);
mapWidth = int(metaData.substr(0, 2));
mapHeight = int(metaData.substr(3, 2));
editorTileSet = tileSetData.substr(0, 1);
currentTilePage = themeStartingPages[editorTileSet];
if (editorTileSet == 0) {
editorSelectedTile = "0F0";
} else if (editorTileSet == 1) {
editorSelectedTile = "2G0";
} else if (editorTileSet == 2) {
editorSelectedTile = "1E9";
} else if (editorTileSet == 3) {
editorSelectedTile = "3D0";
}
editorSelectedTileCollision = 0;
editorSelectedTileRotation = 0;
editorSelectedTileMirror = 0;
earth = new Array();
var _local1 = 0;
while (_local1 < mapWidth) {
earth[_local1] = new Array();
var _local2 = 0;
while (_local2 < mapHeight) {
earth[_local1][_local2] = new Array(0, 0, 0, 0);
_local2++;
}
_local1++;
}
var _local2 = 0;
while (_local2 < mapHeight) {
_local1 = 0;
while (_local1 < mapWidth) {
chunk = tileData.substr(((_local1 * 7) + ((_local2 * mapWidth) * 7)) + 2, 6);
earth[_local1][_local2][0] = chunk.substr(0, 3);
earth[_local1][_local2][1] = chunk.substr(3, 1);
earth[_local1][_local2][2] = chunk.substr(4, 1);
earth[_local1][_local2][3] = chunk.substr(5, 1);
_local1++;
}
_local2++;
}
createTiles();
displayEarth();
var _local8 = 100000 /* 0x0186A0 */;
var _local4 = 0;
while (_local4 < 8) {
chunk = spawnData.substr(_local4 * 10, 9);
editorPlayerSpawnsArray[_local4][0] = Math.round(int(chunk.substr(0, 4)) / 50);
if (editorPlayerSpawnsArray[_local4][0] != 0) {
editorPlayerSpawnsArray[_local4][1] = Math.round(int(chunk.substr(5, 4)) / 50);
var _local5 = tilesMC.attachMovie("editorSpawnMC", "playerSpawn" + _local4, _local8 + _local4);
_local5._x = editorPlayerSpawnsArray[_local4][0] * 50;
_local5._y = editorPlayerSpawnsArray[_local4][1] * 50;
}
_local4++;
}
_local8 = 200000 /* 0x030D40 */;
var _local3 = 0;
while (_local3 < 8) {
chunk = weaponSpawnData.substr(_local3 * 20, 19);
editorWeaponSpawnsArray[_local3] = new Array(0, 0, 0, 0);
editorWeaponSpawnsArray[_local3][0] = Math.round(int(chunk.substr(0, 4)) / 50);
if (editorWeaponSpawnsArray[_local3][0] != 0) {
editorWeaponSpawnsArray[_local3][1] = Math.round(int(chunk.substr(5, 4)) / 50);
editorWeaponSpawnsArray[_local3][2] = int(chunk.substr(10, 4));
editorWeaponSpawnsArray[_local3][3] = int(chunk.substr(15, 4));
var _local6 = ("pickup" + weapons[editorWeaponSpawnsArray[_local3][2]].attackAnim) + "MC";
var _local5 = tilesMC.attachMovie(_local6, "weaponSpawn" + _local3, _local8 + _local3);
_local5._x = editorWeaponSpawnsArray[_local3][0] * 50;
_local5._y = editorWeaponSpawnsArray[_local3][1] * 50;
}
_local3++;
}
}
function rollTile(x, y, dir) {
var tilePointerMC = eval ("tilesMC" + getTileName(x, y));
if (dir == "over") {
if ((((((editMode != _modeTileSets) && (editMode != _modeClose)) && (editMode != _modeMoveMap)) && (editMode != _modeSaveMap)) && (editMode != _modeMoveMapClosed)) && (editMode != _modeHelp)) {
setCustomObjectColor(tilePointerMC, 55, 55, 55, 100);
}
} else {
setCustomObjectColor(tilePointerMC, 0, 0, 0, 100);
}
}
function frameFunction() {
tX = int(((_xmouse - tilesMC._x) + 25) / 50);
tY = int(((_ymouse - tilesMC._y) + 25) / 50);
if ((((tX >= 0) && (tY >= 0)) && (tX < mapWidth)) && (tY < mapHeight)) {
rollTile(lastTX, lastTY);
lastTX = tX;
lastTY = tY;
rollTile(tX, tY, "over");
}
if (Key.isDown(kU[0])) {
moveMapYVel = Math.min(moveMapYVel + moveMapAcc, moveMapMaxVel);
} else if (Key.isDown(kD[0])) {
moveMapYVel = Math.max(moveMapYVel - moveMapAcc, -moveMapMaxVel);
}
if (Key.isDown(kL[0])) {
moveMapXVel = Math.min(moveMapXVel + moveMapAcc, moveMapMaxVel);
} else if (Key.isDown(kR[0])) {
moveMapXVel = Math.max(moveMapXVel - moveMapAcc, -moveMapMaxVel);
}
tilesMC._x = int(tilesMC._x + moveMapXVel);
tilesMC._y = int(tilesMC._y + moveMapYVel);
if (tilesMC._x > 25) {
moveMapXVel = moveMapXVel - ((tilesMC._x - 25) * moveMapElasticity);
moveMapXVel = moveMapXVel * moveMapElasticFriction;
} else if (tilesMC._x < (-((mapWidth * 50) - 575))) {
moveMapXVel = moveMapXVel - ((tilesMC._x + ((mapWidth * 50) - 575)) * moveMapElasticity);
moveMapXVel = moveMapXVel * moveMapElasticFriction;
}
if (tilesMC._y > 25) {
moveMapYVel = moveMapYVel - ((tilesMC._y - 25) * moveMapElasticity);
moveMapYVel = moveMapYVel * moveMapElasticFriction;
} else if (tilesMC._y < (-((mapHeight * 50) - 425))) {
moveMapYVel = moveMapYVel - ((tilesMC._y + ((mapHeight * 50) - 425)) * moveMapElasticity);
moveMapYVel = moveMapYVel * moveMapElasticFriction;
}
moveMapXVel = moveMapXVel * moveMapFriction;
moveMapYVel = moveMapYVel * moveMapFriction;
if (Math.abs(moveMapXVel) < 0.5) {
moveMapXVel = 0;
}
if (Math.abs(moveMapYVel) < 0.5) {
moveMapYVel = 0;
}
}
function autoBrush() {
tX = int(((_xmouse - tilesMC._x) + 25) / 50);
tY = int(((_ymouse - tilesMC._y) + 25) / 50);
earth[tX][tY][0] = editorSelectedTile;
earth[tX][tY][1] = editorSelectedTileRotation;
earth[tX][tY][2] = editorSelectedTileMirror;
earth[tX][tY][3] = editorSelectedTileCollision;
if (Number(editorSelectedTileCollision) != 0) {
clearSpawnsForTile(tX, tY);
}
reloadTileEditor(tX, tY);
if ((tX != lastTX) || (tY != lastTY)) {
SFXBTNeditor1.start();
}
}
function clearSpawnsForTile(xx, yy) {
var i = 0;
while (i < editorWeaponSpawnsArray.length) {
if ((editorWeaponSpawnsArray[i][0] == xx) && (editorWeaponSpawnsArray[i][1] == yy)) {
editorWeaponSpawnsArray[i] = new Array(0, 0, 0, 0);
with (eval ("tilesMC.weaponSpawn" + i)) {
removeMovieClip();
}
i = editorWeaponSpawnsArray.length;
}
i++;
}
var i = 0;
while (i < editorPlayerSpawnsArray.length) {
if ((editorPlayerSpawnsArray[i][0] == xx) && (editorPlayerSpawnsArray[i][1] == yy)) {
editorPlayerSpawnsArray[i] = new Array(0, 0);
with (eval ("tilesMC.playerSpawn" + i)) {
removeMovieClip();
}
i = editorPlayerSpawnsArray.length;
}
i++;
}
}
function editorDisconnectedFromServer() {
clearInterval(kkxCkh);
_root.attachMovie("window304NewMapMessageMC", "window3MC", 200004);
window3MC._x = 90;
window3MC._y = 20;
window3MC.msgText0.text = (window3MC.msgText1.text = editorText[57]);
qkRqyP("windowShow", window3MC);
}
function closeEditorDisconnectWindow() {
window3MC.removeMovieClip();
}
var mapHeight;
var mapWidth;
var editorMapName;
var currentTilePage = 1;
var maxTilePage = 1;
var tileSetsWidth = 9;
var tileSetsHeight = 5;
var themeStartingPages = new Array(1, 6, 4, 10);
var editorStandardWeaponSpawnTimes = new Array(0, 0, 15, 15, 30, 30, 30, 30, 30, 30, 15, 15, 30, 30);
var _modeTileSets = 0;
var _modeObjectPlacement = 1;
var _modeMoveMap = 2;
var _modePaintBrush = 3;
var _modeEyeDropper = 4;
var _modeRotate = 5;
var _modeMirrorX = 6;
var _modeMirrorY = 7;
var _modeSaveMap = 8;
var _modeMoveMapClosed = 9;
var _modeClose = 10;
var _modeHelp = 11;
var _modeSpawns = 12;
var _modeTiles = 13;
var _modeDelete = 14;
var _modeSpawnBat = 15;
var _modeSpawnKatana = 16;
var _modeSpawnGlock = 17;
var _modeSpawnAK47 = 18;
var _modeSpawnShotgun = 19;
var _modeSpawnSledge = 20;
var _modeSpawnFlamethrower = 21;
var _modeSpawnRailgun = 22;
var _modeSpawnChainsaw = 23;
var _modeSpawnLasersword = 24;
var _modeSpawnHelmet = 25;
var _modeSpawnChaingun = 26;
var _modeSpawnPlayer = 27;
var editMode = _modeMoveMap;
var _toolBarModeTiles = 0;
var _toolBarModeSpawns = 1;
var editorToolBarMode = _toolBarModeTiles;
var _modeNewOrLoad = 0;
var _modeNew = 1;
var _modeLoad = 2;
var _modeEditing = 3;
var _modeSave = 4;
var editorHelpMode;
vwfPvp();
var mapScale = 1;
var rootDepthCount = 1000;
var currentArea = new area();
var tilesArray = new Array();
var editorWeaponSpawnsArray = new Array(8);
var editorPlayerSpawnsArray = new Array(8);
var i = 0;
while (i < 8) {
editorWeaponSpawnsArray[i] = new Array(0, 0, 0, 0);
editorPlayerSpawnsArray[i] = new Array(0, 0);
i++;
}
var lastTX = 0;
var lastTY = 0;
var collisionMode = false;
var autoBrushIntervalID = null;
var lastSelectedSaveSlot;
var quitOnSuccessfulSave = false;
var currentEditorMapListUserName = uName;
var lastRequestedMapListUserName = uName;
var moveMapXVel = 0;
var moveMapYVel = 0;
var moveMapAcc = 4;
var moveMapMaxVel = 50;
var moveMapFriction = 0.9;
var moveMapElasticity = 0.35;
var moveMapElasticFriction = 0.6;
var toolBarExpanded = false;
editorKeyListener = new Object();
editorKeyListener.onKeyDown = function () {
noInputTime = 0;
pressedKey = Key.getAscii();
if (editorHelpMode == _modeLoad) {
if ((pressedKey == 96) || (pressedKey == 126)) {
toggleLoadMapUsernameBox();
}
}
if ((((editMode != _modeTileSets) && (editMode != _modeClose)) && (editMode != _modeSaveMap)) && (editMode != _modeMoveMapClosed)) {
if (editorToolBarMode == _toolBarModeTiles) {
if (pressedKey == 32) {
changeEditMode(_modeMoveMap);
}
if ((pressedKey == 80) || (pressedKey == 112)) {
changeEditMode(_modePaintBrush);
}
if ((pressedKey == 69) || (pressedKey == 101)) {
changeEditMode(_modeEyeDropper);
}
if ((((pressedKey == 88) || (pressedKey == 120)) || (pressedKey == 72)) || (pressedKey == 104)) {
changeEditMode(_modeMirrorX);
}
if ((((pressedKey == 89) || (pressedKey == 121)) || (pressedKey == 86)) || (pressedKey == 118)) {
changeEditMode(_modeMirrorY);
}
if ((pressedKey == 82) || (pressedKey == 114)) {
changeEditMode(_modeRotate);
}
if ((pressedKey == 84) || (pressedKey == 116)) {
changeEditMode(_modeTileSets);
}
if ((pressedKey == 83) || (pressedKey == 115)) {
pressSaveEditor();
}
if ((pressedKey == 87) || (pressedKey == 119)) {
pressSpawnsEditor();
}
} else if (editorToolBarMode == _toolBarModeSpawns) {
if (pressedKey == 32) {
changeEditMode(_modeMoveMap);
}
if ((pressedKey == 77) || (pressedKey == 109)) {
pressTilesEditor();
}
if ((pressedKey == 88) || (pressedKey == 120)) {
pressDeleteEditor();
}
}
}
};
initializeMapEditor();
bgScrollMC.onEnterFrame = frameFunction;
tilesMC.onPress = function () {
noInputTime = 0;
if ((tileSetsMC == null) || (tileSetsMC == undefined)) {
tX = int(((_xmouse - this._x) + 25) / 50);
tY = int(((_ymouse - this._y) + 25) / 50);
if (editMode == _modeRotate) {
earth[tX][tY][1]++;
if (earth[tX][tY][1] > 3) {
earth[tX][tY][1] = 0;
}
SFXBTNeditor0.start();
} else if ((editMode == _modeMirrorX) || (editMode == _modeMirrorY)) {
if ((earth[tX][tY][1] == 1) || (earth[tX][tY][1] == 3)) {
if (editMode == _modeMirrorX) {
var rotationModifiedFlipMode = _modeMirrorY;
}
if (editMode == _modeMirrorY) {
var rotationModifiedFlipMode = _modeMirrorX;
}
} else {
var rotationModifiedFlipMode = editMode;
}
if (rotationModifiedFlipMode == _modeMirrorX) {
if (earth[tX][tY][2] == 0) {
earth[tX][tY][2] = 1;
} else if (earth[tX][tY][2] == 1) {
earth[tX][tY][2] = 0;
} else if (earth[tX][tY][2] == 2) {
earth[tX][tY][2] = 3;
} else if (earth[tX][tY][2] == 3) {
earth[tX][tY][2] = 2;
}
} else if (rotationModifiedFlipMode == _modeMirrorY) {
if (earth[tX][tY][2] == 0) {
earth[tX][tY][2] = 2;
} else if (earth[tX][tY][2] == 2) {
earth[tX][tY][2] = 0;
} else if (earth[tX][tY][2] == 1) {
earth[tX][tY][2] = 3;
} else if (earth[tX][tY][2] == 3) {
earth[tX][tY][2] = 1;
}
}
SFXBTNeditor0.start();
} else if (editMode == _modeEyeDropper) {
editorSelectedTile = earth[tX][tY][0];
editorSelectedTileRotation = earth[tX][tY][1];
editorSelectedTileMirror = earth[tX][tY][2];
editorSelectedTileCollision = earth[tX][tY][3];
SFXBTNeditor2.start();
changeEditMode(_modePaintBrush);
} else if (editMode == _modePaintBrush) {
if (!collisionMode) {
earth[tX][tY][0] = editorSelectedTile;
earth[tX][tY][1] = editorSelectedTileRotation;
earth[tX][tY][2] = editorSelectedTileMirror;
earth[tX][tY][3] = editorSelectedTileCollision;
if (editorSelectedTileCollision != 0) {
clearSpawnsForTile(tX, tY);
}
autoBrushIntervalID = setInterval(autoBrush, 10);
SFXBTNeditor1.start();
} else {
autoBrushIntervalID = setInterval(autoColBrush, 10);
}
} else if (editMode == _modeDelete) {
if ((((tX > 0) && (tY > 0)) && (tX < (mapWidth - 1))) && (tY < (mapHeight - 1))) {
var foundSpawn = false;
var editorWeaponIndex;
var editorPlayerIndex;
var i = 0;
while (i < editorWeaponSpawnsArray.length) {
if ((editorWeaponSpawnsArray[i][0] == tX) && (editorWeaponSpawnsArray[i][1] == tY)) {
foundSpawn = true;
editorWeaponIndex = i;
editorWeaponSpawnsArray[editorWeaponIndex] = new Array(0, 0, 0, 0);
with (eval ("tilesMC.weaponSpawn" + editorWeaponIndex)) {
removeMovieClip();
}
SFXTicketScratch23.start();
i = editorWeaponSpawnsArray.length;
}
i++;
}
if (!foundSpawn) {
var i = 0;
while (i < editorPlayerSpawnsArray.length) {
if ((editorPlayerSpawnsArray[i][0] == tX) && (editorPlayerSpawnsArray[i][1] == tY)) {
foundSpawn = true;
editorPlayerIndex = i;
editorPlayerSpawnsArray[editorPlayerIndex] = new Array(0, 0);
with (eval ("tilesMC.playerSpawn" + editorPlayerIndex)) {
removeMovieClip();
}
SFXTicketScratch23.start();
i = editorPlayerSpawnsArray.length;
}
i++;
}
}
if (!foundSpawn) {
SFXBTNerror.start();
}
} else {
SFXBTNerror.start();
}
} else if (editMode == _modeSpawnPlayer) {
if (((((tX > 0) && (tY > 0)) && (tX < (mapWidth - 1))) && (tY < (mapHeight - 1))) && (earth[tX][tY][3] == 0)) {
var firstFreeArrayIndex;
var foundFreeSpawnIndex = false;
var foundSpawnCollision = false;
var i = 0;
while (i < editorPlayerSpawnsArray.length) {
if (editorPlayerSpawnsArray[i][0] == 0) {
if (!foundFreeSpawnIndex) {
foundFreeSpawnIndex = true;
firstFreeArrayIndex = i;
}
}
if ((editorPlayerSpawnsArray[i][0] == tX) && (editorPlayerSpawnsArray[i][1] == tY)) {
foundSpawnCollision = true;
}
i++;
}
if (foundFreeSpawnIndex && (!foundSpawnCollision)) {
var tempBaseDepth = 100000;
var spawnPointerMC = tilesMC.attachMovie("editorSpawnMC", "playerSpawn" + firstFreeArrayIndex, tempBaseDepth + firstFreeArrayIndex);
spawnPointerMC._x = tX * 50;
spawnPointerMC._y = tY * 50;
adjustAndPlaySound(SFXspawn[0], (_root._xmouse * 2) - 550, 0);
editorPlayerSpawnsArray[firstFreeArrayIndex] = new Array(tX, tY);
} else {
SFXBTNerror.start();
}
} else {
SFXBTNerror.start();
}
} else if ((editMode >= 15) && (editMode <= 26)) {
if (((((tX > 0) && (tY > 0)) && (tX < (mapWidth - 1))) && (tY < (mapHeight - 1))) && (earth[tX][tY][3] == 0)) {
var weaponType = (editMode - 13);
var firstFreeArrayIndex;
var foundFreeSpawnIndex = false;
var foundSpawnCollision = false;
var i = 0;
while (i < editorWeaponSpawnsArray.length) {
if (editorWeaponSpawnsArray[i][0] == 0) {
if (!foundFreeSpawnIndex) {
foundFreeSpawnIndex = true;
firstFreeArrayIndex = i;
}
}
if ((editorWeaponSpawnsArray[i][0] == tX) && (editorWeaponSpawnsArray[i][1] == tY)) {
foundSpawnCollision = true;
}
i++;
}
if (foundFreeSpawnIndex && (!foundSpawnCollision)) {
var tempBaseDepth = 200000;
var mcName = (("pickup" + weapons[weaponType].attackAnim) + "MC");
var spawnPointerMC = tilesMC.attachMovie(mcName, "weaponSpawn" + firstFreeArrayIndex, tempBaseDepth + firstFreeArrayIndex);
spawnPointerMC._x = tX * 50;
spawnPointerMC._y = tY * 50;
adjustAndPlaySound(eval (("SFX" + weapons[weaponType].attackAnim) + "Pickup"), (_root._xmouse * 2) - 550, 0);
editorWeaponSpawnsArray[firstFreeArrayIndex] = new Array(tX, tY, weaponType, editorStandardWeaponSpawnTimes[weaponType]);
} else {
SFXBTNerror.start();
}
} else {
SFXBTNerror.start();
}
}
reloadTileEditor(tX, tY);
}
};
tilesMC.onRelease = (tilesMC.onReleaseOutside = function () {
clearInterval(autoBrushIntervalID);
autoBrushIntervalID = null;
});
Instance of Symbol 2621 MovieClip "tilesMC" in Frame 6
on (press) {
if ((_parent.editMode == _parent._modeMoveMap) || (_parent.editMode == _parent._modeMoveMapClosed)) {
_parent.startMapMove();
}
}
on (release, releaseOutside) {
if ((_parent.editMode == _parent._modeMoveMap) || (_parent.editMode == _parent._modeMoveMapClosed)) {
_parent.stopMapMove();
}
}
Instance of Symbol 234 MovieClip in Frame 6
onClipEvent (enterFrame) {
_parent.socketCallsLobby();
}
Frame 7
loadStockOrCustomArea();
functionTimers[40] = getTimer();
Frame 8
Frame 9
stop();
setQuality();
xqzCWxv.c._visible = 0;
if (gameMode != 2) {
chatMC._visible = 0;
}
displayPlayerName();
xqzCWxv.opaqueBackground = 0;
currentWeaponMC.cacheAsBitmap = (playerNameMC.cacheAsBitmap = (msgMC.cacheAsBitmap = (chatBtnMC.cacheAsBitmap = (chatMC.cacheAsBitmap = (optionsBtnMC.cacheAsBitmap = (scoreMC.cacheAsBitmap = optionUseBitmapCaching))))));
if (!wipe) {
wipeMC.gotoAndStop(19);
wipe = true;
}
Instance of Symbol 3237 MovieClip "parallaxBGMC" in Frame 9
/* no clip actions */
Instance of Symbol 234 MovieClip in Frame 9
onClipEvent (enterFrame) {
_parent.onFrame("main");
}
onClipEvent (mouseDown) {
if (_parent.gameMode < 2) {
_parent.clickCount++;
_parent.player.jhPIDo = true;
}
}
onClipEvent (mouseUp) {
_parent.player.qkRnoX = true;
_parent.player.jhPIDo = false;
}
Instance of Symbol 234 MovieClip in Frame 10
onClipEvent (enterFrame) {
_parent.onFrame("dead");
}
onClipEvent (mouseDown) {
_parent.userHidLeaderBoard = true;
}
Frame 10
if (false) {
}
Frame 11
function optionsResumeGame() {
if (quitConfirmationMC._visible == 0) {
if (serverType[serverNum] == "COMPATIBILITY") {
optionQuality = 0;
optionBlood = 0;
}
savePreferences();
wipe = false;
cursorCrossHair();
gotoAndStop ("mainFrame");
setGameMode(0);
}
}
function optionsQuitConfirm(str) {
if (quitConfirmationMC._visible == 0) {
quitConfirmationMC._visible = 1;
qkRqyP("windowShow", quitConfirmationMC);
quitMode = str;
if (str == "quit") {
quitConfirmationMC.msgText0.text = (quitConfirmationMC.msgText1.text = quitToLobbyText);
} else if (str == "logout") {
quitConfirmationMC.msgText0.text = (quitConfirmationMC.msgText1.text = logOutText);
}
}
}
function optionsQuitConfirmed() {
if (quitMode == "quit") {
returnToLobby();
} else if (quitMode == "logout") {
returnToTitle();
}
}
function optionsQuitCancelled() {
quitConfirmationMC._visible = 0;
}
function initializeOptions() {
qkRqyP("windowShow", optionsWindowMC0);
qkRqyP("windowShow", optionsWindowMC1);
var i = 0;
while (i < 4) {
var n = 0;
while (n < 5) {
str = "optText" + i;
with (eval (str + n)) {
text = optText[i];
}
n++;
}
i++;
}
var n = 0;
while (n < 5) {
str = "optText4";
with (eval (str + n)) {
text = optText[13];
}
n++;
}
qualitySlider.dragger._x = optionQuality * 34;
soundSlider.dragger._x = SFXVolume;
bloodSlider.dragger._x = optionBlood * (bloodSlider.line._width / 2);
languageSlider.dragger._x = optionLanguageFilter * languageSlider.line._width;
particleSlider.dragger._x = optionParticles * particleSlider.line._width;
if (!loggedIn) {
btnQuitToLobbyMC._visible = 0;
btnResumeGameMC._y = btnResumeGameMC._y + 10;
btnLogOutMC._y = btnLogOutMC._y - 10;
}
}
_quality = "MEDIUM";
quitConfirmationMC._visible = 0;
var quitMode = null;
initializeOptions();
Instance of Symbol 234 MovieClip in Frame 11
onClipEvent (enterFrame) {
_parent.onFrame("options");
}
Frame 12
function initializeReportText() {
var n = 0;
while (n < 5) {
str = "reportText0";
with (eval (str + n)) {
text = reportText[0];
}
n++;
}
var hc = "#FF8888";
msgText0.htmlText = (((((reportText[1] + getColoredName(reportUserID)) + reportText[2]) + "<BR><BR>") + colorHtml(reportText[3], hc)) + "<BR><BR>") + reportText[4];
msgText1.text = (((((((reportText[1] + getName(reportUserID)) + reportText[2]) + "\r") + "\r") + reportText[3]) + "\r") + "\r") + reportText[4];
}
function reportUserPressClose() {
wipe = false;
cursorCrossHair();
gotoAndStop ("mainFrame");
setGameMode(0);
}
function reportUserPressOK() {
reportWindowMC.btnXMC._visible = (reportWindowMC.btnSubmitMC._visible = (reportWindowMC.btnCancelMC._visible = 0));
sendReportUser(reportUserID);
}
initializeReportText();
qkRqyP("windowShow", reportWindowMC);
if (qxXcDx) {
reportWindowMC.attachMovie("mBTNgipMC", "mBTNgipMC", 1000);
}
Frame 13
function displaySummaryHeaders() {
var i = 0;
while (i < 4) {
var n = 0;
while (n < 5) {
str = ("sumMC.h" + i) + "Text";
with (eval (str + n)) {
text = leadText[i];
}
n++;
}
i++;
}
var n = 0;
while (n < 5) {
str = "sumMC.titleText";
with (eval (str + n)) {
text = summaryText[0];
}
n++;
}
}
function summaryComplete() {
clearSummaryGarbage();
startNextRound();
}
function clearSummaryGarbage() {
sumMC.removeMovieClip();
xqTfcoFuRgQweq.removeMovieClip();
if (qxXcDx) {
mBTNqtlMC.removeMovieClip();
}
var n = 0;
while (eval ("charAnim" + n) != null) {
with (eval ("charAnim" + n)) {
removeMovieClip();
}
with (eval ("playerNameMC" + n)) {
removeMovieClip();
}
with (eval ("indicatorMC" + n)) {
removeMovieClip();
}
n++;
}
with (rankGainMC) {
removeMovieClip();
}
clearInterval(roundTimerIntervalID);
}
_quality = "HIGH";
summaryBG.gotoAndStop(currentArea.tileSet + 1);
displaySummaryHeaders();
if (qxXcDx) {
_root.attachMovie("mBTNqtlMC", "mBTNqtlMC", 1000);
}
Instance of Symbol 234 MovieClip in Frame 13
onClipEvent (enterFrame) {
_parent.onFrameSummary();
}
Frame 14
windowMC.msgText0.text = (windowMC.msgText1.text = msgText);
qkRqyP("windowShow", windowMC);
Frame 15
gotoAndStop ("tasvfsdfveg");
Frame 16
gotoAndStop ("tasvfsdfveg");
Frame 17
gotoAndStop ("tasvfsdfveg");
Frame 18
if (false) {
}
Frame 19
loadSettings();
var settingsLoading = true;
if (!bClient) {
gotoAndStop (1);
} else {
gotoAndStop ("postExportFrameB");
}
Frame 20
if (false) {
}
Frame 21
gotoAndStop (1);
Symbol 3 MovieClip [shakeBlur3FX] Frame 1
var bl = (new flash.filters.BlurFilter());
bl.quality = 1;
_parent._y = _parent._y + int(xyMove);
bl.blurX = blurAmount * xyMove;
bl.blurY = blurAmount * xyMove;
_parent.filters = [bl];
Symbol 3 MovieClip [shakeBlur3FX] Frame 2
_parent._x = _parent._x + int(xyMove);
bl.blurY = blurAmount * xyMove;
bl.blurX = blurAmount * xyMove;
_parent.filters = [bl];
Symbol 3 MovieClip [shakeBlur3FX] Frame 3
_parent._y = _parent._y + int(xyMove);
bl.blurX = blurAmount * xyMove;
bl.blurY = blurAmount * xyMove;
_parent.filters = [bl];
Symbol 3 MovieClip [shakeBlur3FX] Frame 4
_parent._x = _parent._x - int(xyMove);
bl.blurY = blurAmount * xyMove;
bl.blurX = blurAmount * xyMove;
_parent.filters = [bl];
Symbol 3 MovieClip [shakeBlur3FX] Frame 5
_parent._y = _parent._y - int(xyMove);
bl.blurX = blurAmount * xyMove;
bl.blurY = blurAmount * xyMove;
_parent.filters = [bl];
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
Symbol 4 MovieClip [shakeBlur2FX] Frame 1
var bl = (new flash.filters.BlurFilter());
bl.quality = 1;
_parent._y = _parent._y + int(xyMove);
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 4 MovieClip [shakeBlur2FX] Frame 2
_parent._x = _parent._x + int(xyMove);
bl.blurY = blurAmount * xyMove;
bl.blurX = 0;
_parent.filters = [bl];
Symbol 4 MovieClip [shakeBlur2FX] Frame 3
_parent._y = _parent._y + int(xyMove);
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 4 MovieClip [shakeBlur2FX] Frame 4
_parent._x = _parent._x - int(xyMove);
bl.blurY = blurAmount * xyMove;
bl.blurX = 0;
_parent.filters = [bl];
Symbol 4 MovieClip [shakeBlur2FX] Frame 5
_parent._y = _parent._y - int(xyMove);
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
Symbol 5 MovieClip [fadeFX] Frame 1
_parent._alpha = initialAlpha;
_parent._alpha = _parent._alpha + int(alphaInc);
Symbol 5 MovieClip [fadeFX] Frame 2
_parent._alpha = _parent._alpha + int(alphaInc);
Symbol 5 MovieClip [fadeFX] Frame 3
if ((_parent._alpha <= finalAlpha) && (alphaInc < 0)) {
_parent._alpha = finalAlpha;
this.removeMovieClip();
} else if ((_parent._alpha >= finalAlpha) && (alphaInc > 0)) {
_parent._alpha = finalAlpha;
this.removeMovieClip();
} else {
_parent._alpha = _parent._alpha + int(alphaInc);
gotoAndPlay (2);
}
Symbol 6 MovieClip [blur5FX] Frame 1
var bl = (new flash.filters.BlurFilter());
bl.quality = 1;
bl.blurX = (blurAmount * xyMove) / 10;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 6 MovieClip [blur5FX] Frame 2
if (xyMove >= 200) {
this.removeMovieClip();
} else {
xyMove = xyMove - xyAcc;
gotoAndPlay (2);
}
bl.blurX = (blurAmount * xyMove) / 10;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 6 MovieClip [blur5FX] Frame 3
if (xyMove >= 200) {
this.removeMovieClip();
} else {
xyMove = xyMove - xyAcc;
gotoAndPlay (2);
}
bl.blurX = (blurAmount * xyMove) / 10;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 7 MovieClip [blur4FX] Frame 1
var bl = (new flash.filters.BlurFilter());
bl.quality = 1;
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 7 MovieClip [blur4FX] Frame 2
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 7 MovieClip [blur4FX] Frame 3
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 8 MovieClip [blur3FX] Frame 1
var bl = (new flash.filters.BlurFilter());
bl.quality = 1;
bl.blurX = blurAmount * xyMove;
bl.blurY = blurAmount * xyMove;
_parent.filters = [bl];
Symbol 8 MovieClip [blur3FX] Frame 2
bl.blurY = blurAmount * xyMove;
bl.blurX = blurAmount * xyMove;
_parent.filters = [bl];
Symbol 8 MovieClip [blur3FX] Frame 3
bl.blurX = blurAmount * xyMove;
bl.blurY = blurAmount * xyMove;
_parent.filters = [bl];
Symbol 8 MovieClip [blur3FX] Frame 4
bl.blurY = blurAmount * xyMove;
bl.blurX = blurAmount * xyMove;
_parent.filters = [bl];
Symbol 8 MovieClip [blur3FX] Frame 5
bl.blurX = blurAmount * xyMove;
bl.blurY = blurAmount * xyMove;
_parent.filters = [bl];
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
Symbol 9 MovieClip [blur2FX] Frame 1
var bl = (new flash.filters.BlurFilter());
bl.quality = 1;
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 9 MovieClip [blur2FX] Frame 2
bl.blurY = blurAmount * xyMove;
bl.blurX = 0;
_parent.filters = [bl];
Symbol 9 MovieClip [blur2FX] Frame 3
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 9 MovieClip [blur2FX] Frame 4
bl.blurY = blurAmount * xyMove;
bl.blurX = 0;
_parent.filters = [bl];
Symbol 9 MovieClip [blur2FX] Frame 5
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
Symbol 10 MovieClip [blur1FX] Frame 1
var bl = (new flash.filters.BlurFilter());
bl.quality = 1;
bl.blurY = blurAmount * xyMove;
bl.blurX = 0;
_parent.filters = [bl];
Symbol 10 MovieClip [blur1FX] Frame 2
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 10 MovieClip [blur1FX] Frame 3
bl.blurY = blurAmount * xyMove;
bl.blurX = 0;
_parent.filters = [bl];
Symbol 10 MovieClip [blur1FX] Frame 4
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 10 MovieClip [blur1FX] Frame 5
bl.blurY = blurAmount * xyMove;
bl.blurX = 0;
_parent.filters = [bl];
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
Symbol 11 MovieClip [shakeBlur1FX] Frame 1
var bl = (new flash.filters.BlurFilter());
bl.quality = 1;
_parent._y = _parent._y + int(xyMove);
bl.blurY = blurAmount * xyMove;
bl.blurX = 0;
_parent.filters = [bl];
Symbol 11 MovieClip [shakeBlur1FX] Frame 2
_parent._x = _parent._x + int(xyMove);
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 11 MovieClip [shakeBlur1FX] Frame 3
_parent._y = _parent._y + int(xyMove);
bl.blurY = blurAmount * xyMove;
bl.blurX = 0;
_parent.filters = [bl];
Symbol 11 MovieClip [shakeBlur1FX] Frame 4
_parent._x = _parent._x - int(xyMove);
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 11 MovieClip [shakeBlur1FX] Frame 5
_parent._y = _parent._y - int(xyMove);
bl.blurY = blurAmount * xyMove;
bl.blurX = 0;
_parent.filters = [bl];
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
Symbol 12 MovieClip [damageHpFX] Frame 1
red = 150;
myColor2 = new Color(_parent);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:"255", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
Symbol 12 MovieClip [damageHpFX] Frame 2
red = Math.max(red - fade, 0);
myColorTransform2.rb = red * 3;
myColorTransform2.gb = red;
myColorTransform2.bb = red;
myColor2.setTransform(myColorTransform2);
if (red <= 0) {
this.removeMovieClip();
}
Symbol 12 MovieClip [damageHpFX] Frame 3
gotoAndPlay (2);
Symbol 14 MovieClip [CheckThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 30 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowOK();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 38 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowClose();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 40 MovieClip [window304PreChangeServerMessageMC] Frame 1
function windowClose() {
_parent.closePreChangeServer();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 41 MovieClip [shakeSAFX] Frame 1
Symbol 41 MovieClip [shakeSAFX] Frame 2
_parent._parent.xqzCWxv._x = _parent._parent.xqzCWxv._x + int(xyMove);
_parent._parent.xqOfED._x = _parent._parent.xqOfED._x + int(xyMove);
Symbol 41 MovieClip [shakeSAFX] Frame 3
_parent._parent.xqzCWxv._y = _parent._parent.xqzCWxv._y + int(xyMove);
_parent._parent.xqOfED._y = _parent._parent.xqOfED._y + int(xyMove);
Symbol 41 MovieClip [shakeSAFX] Frame 4
_parent._parent.xqzCWxv._x = _parent._parent.xqzCWxv._x - int(xyMove);
_parent._parent.xqOfED._x = _parent._parent.xqOfED._x - int(xyMove);
Symbol 41 MovieClip [shakeSAFX] Frame 5
_parent._parent.xqzCWxv._y = _parent._parent.xqzCWxv._y - int(xyMove);
_parent._parent.xqOfED._y = _parent._parent.xqOfED._y - int(xyMove);
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
Symbol 58 MovieClip [CheckBoxAssets] Frame 1
#initclip 80
mx.controls.CheckBox.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local8 = _local2._width + 4;
var _local5 = _local2._height + 4;
_local4.setSize(_local8, _local5, 0, 100, _local3);
var _local7 = _local2._x;
var _local6 = _local2._y;
_local4.move((this.x - 2) + _local7, (this.y + _local6) - 2);
};
#endinitclip
Symbol 59 MovieClip [damageFX] Frame 1
myColor = new Color(_parent._parent);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"255", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor2 = new Color(_parent);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:"255", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
Symbol 59 MovieClip [damageFX] Frame 2
red = Math.max(red - fade, 0);
myColorTransform.rb = red;
myColor.setTransform(myColorTransform);
myColorTransform2.rb = red * 2;
myColorTransform2.gb = red;
myColorTransform2.bb = red;
myColor2.setTransform(myColorTransform2);
if (red <= 0) {
this.removeMovieClip();
}
Symbol 59 MovieClip [damageFX] Frame 3
gotoAndPlay (2);
Symbol 60 MovieClip [buttonOverFX] Frame 1
bright = bright + fade;
myColor = new Color(_parent);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
bright = Math.max(bright - (fade / 2), 0);
myColorTransform.rb = bright;
myColorTransform.gb = bright;
myColorTransform.bb = bright;
myColor.setTransform(myColorTransform);
if (bright <= 0) {
this.removeMovieClip();
}
Symbol 60 MovieClip [buttonOverFX] Frame 2
bright = Math.max(bright - (fade / 2), 0);
myColorTransform.rb = bright;
myColorTransform.gb = bright;
myColorTransform.bb = bright;
myColor.setTransform(myColorTransform);
if (bright <= 0) {
this.removeMovieClip();
}
Symbol 60 MovieClip [buttonOverFX] Frame 3
bright = Math.max(bright - (fade / 2), 0);
myColorTransform.rb = bright;
myColorTransform.gb = bright;
myColorTransform.bb = bright;
myColor.setTransform(myColorTransform);
if (bright <= 0) {
this.removeMovieClip();
} else {
gotoAndPlay (2);
}
Symbol 61 MovieClip [shakeParentFX] Frame 1
Symbol 61 MovieClip [shakeParentFX] Frame 2
_parent._x = _parent._x + int(xyMove);
Symbol 61 MovieClip [shakeParentFX] Frame 3
_parent._y = _parent._y + int(xyMove);
Symbol 61 MovieClip [shakeParentFX] Frame 4
_parent._x = _parent._x - int(xyMove);
Symbol 61 MovieClip [shakeParentFX] Frame 5
_parent._y = _parent._y - int(xyMove);
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
Symbol 64 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 75
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 72 MovieClip [ComboAssets] Frame 1
#initclip 78
mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp";
mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown";
mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver";
mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled";
mx.controls.ComboBox.prototype.wrapDownArrowButton = false;
mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid";
mx.controls.ComboBox.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, {bl:0, tl:0, tr:5, br:5}, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
#endinitclip
Symbol 85 MovieClip [RadioButtonAssets] Frame 1
#initclip 79
mx.controls.RadioButton.prototype.adjustFocusRect = function () {
var _local4 = this._parent.focus_mc;
var _local2 = this.iconName;
var _local3 = this.getStyle("themeColor");
if (_local3 == undefined) {
_local3 = 8453965 /* 0x80FF4D */;
}
var _local5 = _local2._width + 4;
var _local6 = _local2._height + 4;
_local4.setSize(_local5, _local6, 8, 100, _local3);
var _local8 = _local2._x;
var _local7 = _local2._y;
_local4.move((this.x - 2) + _local8, (this.y + _local7) - 2);
};
#endinitclip
Symbol 89 MovieClip [BtnDownArrow] Frame 1
#initclip 76
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 136 MovieClip [BtnUpArrow] Frame 1
#initclip 77
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 147 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 149 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 152 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 154 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 157 MovieClip [Defaults] Frame 1
#initclip 47
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 158 MovieClip [UIObjectExtensions] Frame 1
#initclip 48
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 159 MovieClip [UIObject] Frame 1
#initclip 49
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 162 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 163 MovieClip Frame 1
#initclip 50
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 164 MovieClip [FocusRect] Frame 1
#initclip 51
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 165 MovieClip [FocusManager] Frame 1
#initclip 52
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 166 MovieClip [UIComponentExtensions] Frame 1
#initclip 53
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 167 MovieClip [UIComponent] Frame 1
#initclip 54
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 168 MovieClip [SimpleButton] Frame 1
#initclip 55
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 169 MovieClip [Border] Frame 1
#initclip 56
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 170 MovieClip [RectBorder] Frame 1
#initclip 57
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 171 MovieClip [ButtonSkin] Frame 1
#initclip 58
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 172 MovieClip [Button] Frame 1
#initclip 59
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 168 MovieClip [SimpleButton] in Symbol 172 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 173 MovieClip [CustomBorder] Frame 1
#initclip 60
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 174 MovieClip [VScrollBar] Frame 1
#initclip 61
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 172 MovieClip [Button] in Symbol 174 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 168 MovieClip [SimpleButton] in Symbol 174 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 175 MovieClip [HScrollBar] Frame 1
#initclip 62
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 172 MovieClip [Button] in Symbol 175 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 168 MovieClip [SimpleButton] in Symbol 175 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 176 MovieClip [UIScrollBar] Frame 1
#initclip 63
Object.registerClass("UIScrollBar", mx.controls.UIScrollBar);
#endinitclip
stop();
Instance of Symbol 174 MovieClip [VScrollBar] in Symbol 176 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 175 MovieClip [HScrollBar] in Symbol 176 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 209 MovieClip [DataProvider] Frame 1
#initclip 64
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 210 MovieClip [DataSelector] Frame 1
#initclip 65
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 211 MovieClip [SelectableRow] Frame 1
#initclip 66
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 212 MovieClip [View] Frame 1
#initclip 67
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 213 MovieClip [ScrollView] Frame 1
#initclip 68
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 175 MovieClip [HScrollBar] in Symbol 213 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 174 MovieClip [VScrollBar] in Symbol 213 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 214 MovieClip [ScrollSelectList] Frame 1
#initclip 69
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 215 MovieClip [List] Frame 1
#initclip 70
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 223 MovieClip [TextInput] Frame 1
#initclip 71
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 224 MovieClip [ComboBase] Frame 1
#initclip 72
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 168 MovieClip [SimpleButton] in Symbol 224 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 223 MovieClip [TextInput] in Symbol 224 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 225 MovieClip [ComboBox] Frame 1
#initclip 73
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 215 MovieClip [List] in Symbol 225 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 229 MovieClip [RadioButton] Frame 1
#initclip 74
Object.registerClass("RadioButton", mx.controls.RadioButton);
#endinitclip
stop();
Instance of Symbol 172 MovieClip [Button] "foo" in Symbol 229 MovieClip [RadioButton] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
_quality = "HIGH";
if (_parent._parent.skipIntro) {
_parent._parent.doneIntro();
}
Instance of Symbol 234 MovieClip in Symbol 235 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._parent._parent.load1._alpha = (_parent._parent._parent.load2._alpha = (_parent._parent._parent.load3._alpha = (_parent._parent._parent.load4._alpha = (_parent._parent._parent.loadBar._alpha = (_parent._parent._parent.loadBar2._alpha = (_parent._parent._parent.loadingMC._alpha = _parent._parent._parent.loadingMC._alpha - 10))))));
}
Symbol 235 MovieClip Frame 15
stop();
Symbol 242 MovieClip Frame 29
stop();
Symbol 257 MovieClip Frame 76
stop();
Symbol 259 MovieClip Frame 11
_parent.XGSIntroMC.onEnterFrame = _parent.frameFunction;
Symbol 259 MovieClip Frame 155
stop();
_parent._parent.doneIntro();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
function frameFunction() {
blurAmount = blurAmount + blurVel;
if (blurAmount <= blurReverse) {
blurVel = blurVel2;
}
if ((blurAmount > 0) && (blurVel > 0)) {
blurVel = blurVel * 1.8;
XGSIntroMC._xscale = (XGSIntroMC._yscale = Math.max(1, XGSIntroMC._yscale - (blurVel * 1.3)));
XGSIntroMC.XGenStudiosComMC._alpha = XGSIntroMC.XGenStudiosComMC._alpha - 25;
_parent.frontCharMC._alpha = _parent.frontCharMC._alpha - 25;
} else {
XGSIntroMC._xscale = (XGSIntroMC._yscale = Math.min(100, XGSIntroMC._yscale * 1.7));
}
bl.blurX = blurAmount;
bl.blurY = blurAmount;
this.filters = [bl];
}
BG.gotoAndPlay(2);
stop();
XGSIntroMC.cacheAsBitmap = true;
var bl = (new flash.filters.BlurFilter());
bl.quality = 1;
var blurAmount = 180;
var blurVel = -10;
var blurVel2 = 1;
var blurReverse = -100;
XGSIntroMC._xscale = (XGSIntroMC._yscale = 0.01);
Symbol 271 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 1
if (_parent.randWeap == undefined) {
_parent.randWeap = random(2);
}
chaingunMC._visible = _parent.randWeap;
railgunMC._visible = !chaingunMC._visible;
shotgunMC._visible = false;
Symbol 354 MovieClip Frame 77
gotoAndPlay (2);
Symbol 355 MovieClip Frame 2
var bytesTotal = _parent.getBytesTotal();
var bytesLoaded = _parent.getBytesLoaded();
var percentLoaded = int((bytesLoaded / bytesTotal) * 100);
if (((_parent.settingsLoaded && (_parent.languageLoaded)) && (_parent.versionLoaded)) && (_parent.upgradeValuesLoaded)) {
_parent.doneLoading();
stop();
} else if (bytesTotal == bytesLoaded) {
if (!_parent.settingsLoading) {
_parent.doneFLALoading();
stop();
} else {
_parent.percentLoadedText2.text = (_parent.percentLoadedText.text = " [Game Data]");
_parent.loadBar.gotoAndStop(98);
_parent.loadBar2.gotoAndStop(98);
}
} else {
_parent.percentLoadedText2.text = (_parent.percentLoadedText.text = ("(" + percentLoaded) + "%)");
_parent.loadBar.gotoAndStop(Math.max(percentLoaded - 5, 1));
_parent.loadBar2.gotoAndStop(Math.max(percentLoaded - 5, 1));
}
_parent.loadBar._alpha = _parent.loadBar._alpha - 10;
if (_parent.loadBar._alpha < 89) {
_parent.loadBar._alpha = 100;
}
Symbol 189 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(Void) {
setColor(getStyle(_color));
onEnterFrame = undefined;
}
function invalidateStyle(Void) {
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 140 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.127";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 177 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 178 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 180 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 179 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 141 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 184 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.127";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 203 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0
class mx.controls.listclasses.DataSelector extends Object
{
var __vPosition, setVPosition, __dataProvider, enabled, lastSelID, lastSelected, selected, invUpdateControl, invalidate, multipleSelection, updateControl, __rowCount, rows;
function DataSelector () {
super();
}
static function Initialize(obj) {
var _local3 = mixinProps;
var _local4 = _local3.length;
obj = obj.prototype;
var _local1 = 0;
while (_local1 < _local4) {
obj[_local3[_local1]] = mixins[_local3[_local1]];
_local1++;
}
mixins.createProp(obj, "dataProvider", true);
mixins.createProp(obj, "length", false);
mixins.createProp(obj, "value", false);
mixins.createProp(obj, "selectedIndex", true);
mixins.createProp(obj, "selectedIndices", true);
mixins.createProp(obj, "selectedItems", false);
mixins.createProp(obj, "selectedItem", true);
return(true);
}
function createProp(obj, propName, setter) {
var p = (propName.charAt(0).toUpperCase() + propName.substr(1));
var _local2 = null;
var _local3 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local2 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(propName, _local3, _local2);
}
function setDataProvider(dP) {
if (__vPosition != 0) {
setVPosition(0);
}
clearSelected();
__dataProvider.removeEventListener(this);
__dataProvider = dP;
dP.addEventListener("modelChanged", this);
dP.addView(this);
modelChanged({eventName:"updateAll"});
}
function getDataProvider(Void) {
return(__dataProvider);
}
function addItemAt(index, label, data) {
if ((index < 0) || (!enabled)) {
return(undefined);
}
var _local2 = __dataProvider;
if (_local2 == undefined) {
_local2 = (__dataProvider = new Array());
_local2.addEventListener("modelChanged", this);
index = 0;
}
if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) {
_local2.addItemAt(index, label);
} else {
_local2.addItemAt(index, {label:label, data:data});
}
}
function addItem(label, data) {
addItemAt(__dataProvider.length, label, data);
}
function removeItemAt(index) {
return(__dataProvider.removeItemAt(index));
}
function removeAll(Void) {
__dataProvider.removeAll();
}
function replaceItemAt(index, newLabel, newData) {
if (typeof(newLabel) == "object") {
__dataProvider.replaceItemAt(index, newLabel);
} else {
__dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
}
}
function sortItemsBy(fieldName, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItemsBy(fieldName, order);
}
function sortItems(compareFunc, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItems(compareFunc, order);
}
function getLength(Void) {
return(__dataProvider.length);
}
function getItemAt(index) {
return(__dataProvider.getItemAt(index));
}
function modelChanged(eventObj) {
var _local3 = eventObj.firstItem;
var _local6 = eventObj.lastItem;
var _local7 = eventObj.eventName;
if (_local7 == undefined) {
_local7 = eventObj.event;
_local3 = eventObj.firstRow;
_local6 = eventObj.lastRow;
if (_local7 == "addRows") {
_local7 = (eventObj.eventName = "addItems");
} else if (_local7 == "deleteRows") {
_local7 = (eventObj.eventName = "removeItems");
} else if (_local7 == "updateRows") {
_local7 = (eventObj.eventName = "updateItems");
}
}
if (_local7 == "addItems") {
for (var _local2 in selected) {
var _local5 = selected[_local2];
if ((_local5 != undefined) && (_local5 >= _local3)) {
selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1);
}
}
} else if (_local7 == "removeItems") {
if (__dataProvider.length == 0) {
delete selected;
} else {
var _local9 = eventObj.removedIDs;
var _local10 = _local9.length;
var _local2 = 0;
while (_local2 < _local10) {
var _local4 = _local9[_local2];
if (selected[_local4] != undefined) {
delete selected[_local4];
}
_local2++;
}
for (_local2 in selected) {
if (selected[_local2] >= _local3) {
selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1);
}
}
}
} else if (_local7 == "sort") {
if (typeof(__dataProvider.getItemAt(0)) != "object") {
delete selected;
} else {
var _local10 = __dataProvider.length;
var _local2 = 0;
while (_local2 < _local10) {
if (isSelected(_local2)) {
var _local4 = __dataProvider.getItemID(_local2);
if (_local4 == lastSelID) {
lastSelected = _local2;
}
selected[_local4] = _local2;
}
_local2++;
}
}
} else if (_local7 == "filterModel") {
setVPosition(0);
}
invUpdateControl = true;
invalidate();
}
function getValue(Void) {
var _local2 = getSelectedItem();
if (typeof(_local2) != "object") {
return(_local2);
}
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
}
function getSelectedIndex(Void) {
for (var _local3 in selected) {
var _local2 = selected[_local3];
if (_local2 != undefined) {
return(_local2);
}
}
}
function setSelectedIndex(index) {
if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) {
delete selected;
selectItem(index, true);
lastSelected = index;
invUpdateControl = true;
invalidate();
} else if (index == undefined) {
clearSelected();
}
}
function getSelectedIndices(Void) {
var _local2 = new Array();
for (var _local3 in selected) {
_local2.push(selected[_local3]);
}
_local2.reverse();
return(((_local2.length > 0) ? (_local2) : undefined));
}
function setSelectedIndices(indexArray) {
if (multipleSelection != true) {
return(undefined);
}
delete selected;
var _local3 = 0;
while (_local3 < indexArray.length) {
var _local2 = indexArray[_local3];
if ((_local2 >= 0) && (_local2 < __dataProvider.length)) {
selectItem(_local2, true);
}
_local3++;
}
invUpdateControl = true;
updateControl();
}
function getSelectedItems(Void) {
var _local3 = getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
}
function getSelectedItem(Void) {
return(__dataProvider.getItemAt(getSelectedIndex()));
}
function selectItem(index, selectedFlag) {
if (selected == undefined) {
selected = new Object();
}
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (selectedFlag && (!isSelected(index))) {
selected[_local2] = index;
} else if (!selectedFlag) {
delete selected[_local2];
}
}
function isSelected(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(false);
}
return(selected[_local2] != undefined);
}
function clearSelected(transition) {
var _local3 = 0;
for (var _local4 in selected) {
var _local2 = selected[_local4];
if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0));
}
_local3++;
}
delete selected;
}
static var mixins = new mx.controls.listclasses.DataSelector();
static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"];
}
Symbol 219 MovieClip [__Packages.mx.controls.ComboBase] Frame 0
class mx.controls.ComboBase extends mx.core.UIComponent
{
var getValue, tabEnabled, tabChildren, boundingBox_mc, downArrow_mc, createClassObject, onDownArrow, border_mc, __border, text_mc, focusTextField, __width, __height, getFocusManager, __get__height, height, _parent;
function ComboBase () {
super();
getValue = _getValue;
}
function init() {
super.init();
tabEnabled = !_editable;
tabChildren = _editable;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren() {
var _local3 = new Object();
_local3.styleName = this;
if (downArrow_mc == undefined) {
_local3.falseUpSkin = downArrowUpName;
_local3.falseOverSkin = downArrowOverName;
_local3.falseDownSkin = downArrowDownName;
_local3.falseDisabledSkin = downArrowDisabledName;
_local3.validateNow = true;
_local3.tabEnabled = false;
createClassObject(mx.controls.SimpleButton, "downArrow_mc", 19, _local3);
downArrow_mc.buttonDownHandler = onDownArrow;
downArrow_mc.useHandCursor = false;
downArrow_mc.onPressWas = downArrow_mc.onPress;
downArrow_mc.onPress = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = true;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onPressWas();
};
downArrow_mc.onDragOutWas = downArrow_mc.onDragOut;
downArrow_mc.onDragOut = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = false;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOutWas();
};
downArrow_mc.onDragOverWas = downArrow_mc.onDragOver;
downArrow_mc.onDragOver = function () {
this.trackAsMenu = this.trackAsMenuWas;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOverWas();
};
}
if (border_mc == undefined) {
_local3.tabEnabled = false;
createClassObject(_global.styles.rectBorderClass, "border_mc", 17, _local3);
border_mc.move(0, 0);
__border = border_mc;
}
_local3.borderStyle = "none";
_local3.readOnly = !_editable;
_local3.tabEnabled = _editable;
if (text_mc == undefined) {
createClassObject(mx.controls.TextInput, "text_mc", 18, _local3);
text_mc.move(0, 0);
text_mc.addEnterEvents();
text_mc.enterHandler = _enterHandler;
text_mc.changeHandler = _changeHandler;
text_mc.oldOnSetFocus = text_mc.onSetFocus;
text_mc.onSetFocus = function () {
this.oldOnSetFocus();
this._parent.onSetFocus();
};
text_mc.__set__restrict("^\x1B");
text_mc.oldOnKillFocus = text_mc.onKillFocus;
text_mc.onKillFocus = function (n) {
this.oldOnKillFocus(n);
this._parent.onKillFocus(n);
};
text_mc.drawFocus = function (b) {
this._parent.drawFocus(b);
};
delete text_mc.borderStyle;
}
focusTextField = text_mc;
text_mc.owner = this;
layoutChildren(__width, __height);
}
function onKillFocus() {
super.onKillFocus();
Key.removeListener(text_mc);
getFocusManager().defaultPushButtonEnabled = true;
}
function onSetFocus() {
super.onSetFocus();
getFocusManager().defaultPushButtonEnabled = false;
Key.addListener(text_mc);
}
function setFocus() {
if (_editable) {
Selection.setFocus(text_mc);
} else {
Selection.setFocus(this);
}
}
function setSize(w, h, noEvent) {
super.setSize(w, ((h == undefined) ? (__get__height()) : (h)), noEvent);
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
downArrow_mc.enabled = enabledFlag;
text_mc.enabled = enabledFlag;
}
function setEditable(e) {
_editable = e;
if (wrapDownArrowButton == false) {
if (e) {
border_mc.borderStyle = "inset";
text_mc.borderStyle = "inset";
symbolName = "ComboBox";
invalidateStyle();
} else {
border_mc.borderStyle = "comboNonEdit";
text_mc.borderStyle = "dropDown";
symbolName = "DropDown";
invalidateStyle();
}
}
tabEnabled = !e;
tabChildren = e;
text_mc.tabEnabled = e;
if (e) {
delete text_mc.onPress;
delete text_mc.onRelease;
delete text_mc.onReleaseOutside;
delete text_mc.onDragOut;
delete text_mc.onDragOver;
delete text_mc.onRollOver;
delete text_mc.onRollOut;
} else {
text_mc.onPress = function () {
this._parent.downArrow_mc.onPress();
};
text_mc.onRelease = function () {
this._parent.downArrow_mc.onRelease();
};
text_mc.onReleaseOutside = function () {
this._parent.downArrow_mc.onReleaseOutside();
};
text_mc.onDragOut = function () {
this._parent.downArrow_mc.onDragOut();
};
text_mc.onDragOver = function () {
this._parent.downArrow_mc.onDragOver();
};
text_mc.onRollOver = function () {
this._parent.downArrow_mc.onRollOver();
};
text_mc.onRollOut = function () {
this._parent.downArrow_mc.onRollOut();
};
text_mc.useHandCursor = false;
}
}
function get editable() {
return(_editable);
}
function set editable(e) {
setEditable(e);
//return(editable);
}
function _getValue() {
return((_editable ? (text_mc.getText()) : (DSgetValue())));
}
function draw() {
downArrow_mc.draw();
border_mc.draw();
}
function size() {
layoutChildren(__width, __height);
}
function setTheme(t) {
downArrowUpName = (t + "downArrow") + "Up_mc";
downArrowDownName = (t + "downArrow") + "Down_mc";
downArrowDisabledName = (t + "downArrow") + "Disabled_mc";
}
function get text() {
return(text_mc.getText());
}
function set text(t) {
setText(t);
//return(text);
}
function setText(t) {
text_mc.setText(t);
}
function get textField() {
return(text_mc);
}
function get restrict() {
return(text_mc.__get__restrict());
}
function set restrict(w) {
text_mc.__set__restrict(w);
//return(restrict);
}
function invalidateStyle() {
downArrow_mc.invalidateStyle();
text_mc.invalidateStyle();
border_mc.invalidateStyle();
}
function layoutChildren(w, h) {
if (downArrow_mc == undefined) {
return(undefined);
}
if (wrapDownArrowButton) {
var _local2 = border_mc.__get__borderMetrics();
downArrow_mc._width = (downArrow_mc._height = (h - _local2.top) - _local2.bottom);
downArrow_mc.move((w - downArrow_mc._width) - _local2.right, _local2.top);
border_mc.setSize(w, h);
text_mc.setSize(w - downArrow_mc._width, h);
} else {
downArrow_mc.move(w - downArrow_mc._width, 0);
border_mc.setSize(w - downArrow_mc.width, h);
text_mc.setSize(w - downArrow_mc._width, h);
downArrow_mc._height = height;
}
}
function _changeHandler(obj) {
}
function _enterHandler(obj) {
var _local2 = _parent;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function get tabIndex() {
return(text_mc.__get__tabIndex());
}
function set tabIndex(w) {
text_mc.__set__tabIndex(w);
//return(tabIndex);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase);
static var symbolName = "ComboBase";
static var symbolOwner = mx.controls.ComboBase;
static var version = "2.0.2.127";
var _editable = false;
var downArrowUpName = "ScrollDownArrowUp";
var downArrowDownName = "ScrollDownArrowDown";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDisabledName = "ScrollDownArrowDisabled";
var wrapDownArrowButton = true;
var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue;
var multipleSelection = false;
}
Symbol 181 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject
{
function Border () {
super();
}
function init(Void) {
super.init();
}
static var symbolName = "Border";
static var symbolOwner = mx.skins.Border;
var className = "Border";
var tagBorder = 0;
var idNames = new Array("border_mc");
}
Symbol 199 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.127";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 226 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(Void) {
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(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
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(Void) {
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(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = 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.2.127";
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 220 MovieClip [__Packages.mx.controls.ComboBox] Frame 0
class mx.controls.ComboBox extends mx.controls.ComboBase
{
var __set__editable, editable, __labels, data, __dropdownWidth, __width, _editable, selectedIndex, __dropdown, dataProvider, __labelFunction, createObject, border_mc, mask, text_mc, dispatchValueChangedEvent, getValue, length, selectedItem, _y, isPressed, owner, __set__visible, height, localToGlobal, __selectedIndexOnDropdown, __initialSelectedIndexOnDropdown, __get__height, getStyle, _parent, width, __dataProvider, selected, dispatchEvent;
function ComboBox () {
super();
}
function init() {
super.init();
}
function createChildren() {
super.createChildren();
__set__editable(editable);
if (__labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
dropdownWidth = (((typeof(__dropdownWidth) == "number") ? (__dropdownWidth) : (__width)));
if (!_editable) {
selectedIndex = 0;
}
initializing = false;
}
function onKillFocus(n) {
if (_showingDropdown && (n != null)) {
displayDropdown(false);
}
super.onKillFocus();
}
function getDropdown() {
if (initializing) {
return(undefined);
}
if (!hasDropdown()) {
var _local3 = new Object();
_local3.styleName = this;
if (dropdownBorderStyle != undefined) {
_local3.borderStyle = dropdownBorderStyle;
}
_local3._visible = false;
__dropdown = mx.managers.PopUpManager.createPopUp(this, mx.controls.List, false, _local3, true);
__dropdown.scroller.mask.removeMovieClip();
if (dataProvider == undefined) {
dataProvider = new Array();
}
__dropdown.setDataProvider(dataProvider);
__dropdown.selectMultiple = false;
__dropdown.rowCount = __rowCount;
__dropdown.selectedIndex = selectedIndex;
__dropdown.vScrollPolicy = "auto";
__dropdown.labelField = __labelField;
__dropdown.labelFunction = __labelFunction;
__dropdown.owner = this;
__dropdown.changeHandler = _changeHandler;
__dropdown.scrollHandler = _scrollHandler;
__dropdown.itemRollOverHandler = _itemRollOverHandler;
__dropdown.itemRollOutHandler = _itemRollOutHandler;
__dropdown.resizeHandler = _resizeHandler;
__dropdown.mouseDownOutsideHandler = function (eventObj) {
var _local3 = this.owner;
var _local4 = new Object();
_local4.x = _local3._root._xmouse;
_local4.y = _local3._root._ymouse;
_local3._root.localToGlobal(_local4);
if (_local3.hitTest(_local4.x, _local4.y, false)) {
} else if ((!this.wrapDownArrowButton) && (this.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false))) {
} else {
_local3.displayDropdown(false);
}
};
__dropdown.onTweenUpdate = function (v) {
this._y = v;
};
__dropdown.setSize(__dropdownWidth, __dropdown.height);
createObject("BoundingBox", "mask", 20);
mask._y = border_mc.height;
mask._width = __dropdownWidth;
mask._height = __dropdown.height;
mask._visible = false;
__dropdown.setMask(mask);
}
return(__dropdown);
}
function setSize(w, h, noEvent) {
super.setSize(w, h, noEvent);
__dropdownWidth = w;
__dropdown.rowHeight = h;
__dropdown.setSize(__dropdownWidth, __dropdown.height);
}
function setEditable(e) {
super.setEditable(e);
if (e) {
text_mc.setText("");
} else {
text_mc.setText(selectedLabel);
}
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function getLabelField() {
return(__labelField);
}
function get labelField() {
return(getLabelField());
}
function setLabelField(s) {
__dropdown.labelField = (__labelField = s);
text_mc.setText(selectedLabel);
}
function set labelField(s) {
setLabelField(s);
//return(labelField);
}
function getLabelFunction() {
return(__labelFunction);
}
function get labelFunction() {
return(getLabelFunction());
}
function set labelFunction(f) {
__dropdown.labelFunction = (__labelFunction = f);
text_mc.setText(selectedLabel);
//return(labelFunction);
}
function setSelectedItem(v) {
super.setSelectedItem(v);
__dropdown.selectedItem = v;
text_mc.setText(selectedLabel);
}
function setSelectedIndex(v) {
super.setSelectedIndex(v);
__dropdown.selectedIndex = v;
if (v != undefined) {
text_mc.setText(selectedLabel);
}
dispatchValueChangedEvent(getValue());
}
function setRowCount(count) {
if (isNaN(count)) {
return(undefined);
}
__rowCount = count;
__dropdown.setRowCount(count);
}
function get rowCount() {
return(Math.max(1, Math.min(length, __rowCount)));
}
function set rowCount(v) {
setRowCount(v);
//return(rowCount);
}
function setDropdownWidth(w) {
__dropdownWidth = w;
__dropdown.setSize(w, __dropdown.height);
}
function get dropdownWidth() {
return(__dropdownWidth);
}
function set dropdownWidth(v) {
setDropdownWidth(v);
//return(dropdownWidth);
}
function get dropdown() {
return(getDropdown());
}
function setDataProvider(dp) {
super.setDataProvider(dp);
__dropdown.setDataProvider(dp);
if (!_editable) {
selectedIndex = 0;
}
}
function open() {
displayDropdown(true);
}
function close() {
displayDropdown(false);
}
function get selectedLabel() {
var _local2 = selectedItem;
if (_local2 == undefined) {
return("");
}
if (labelFunction != undefined) {
return(labelFunction(_local2));
}
if (typeof(_local2) != "object") {
return(_local2);
}
if (_local2[labelField] != undefined) {
return(_local2[labelField]);
}
if (_local2.label != undefined) {
return(_local2.label);
}
var _local3 = " ";
for (var _local4 in _local2) {
if (_local4 != "__ID__") {
_local3 = (_local2[_local4] + ", ") + _local3;
}
}
_local3 = _local3.substring(0, _local3.length - 3);
return(_local3);
}
function hasDropdown() {
return((__dropdown != undefined) && (__dropdown.valueOf() != undefined));
}
function tweenEndShow(value) {
_y = value;
isPressed = true;
owner.dispatchEvent({type:"open", target:owner});
}
function tweenEndHide(value) {
_y = value;
__set__visible(false);
owner.dispatchEvent({type:"close", target:owner});
}
function displayDropdown(show) {
if (show == _showingDropdown) {
return(undefined);
}
var _local3 = new Object();
_local3.x = 0;
_local3.y = height;
localToGlobal(_local3);
if (show) {
__selectedIndexOnDropdown = selectedIndex;
__initialSelectedIndexOnDropdown = selectedIndex;
getDropdown();
var _local2 = __dropdown;
_local2.isPressed = true;
_local2.rowCount = rowCount;
_local2.visible = show;
_local2._parent.globalToLocal(_local3);
_local2.onTweenEnd = tweenEndShow;
var _local5;
var _local8;
if ((_local3.y + _local2.height) > Stage.height) {
_local5 = _local3.y - __get__height();
_local8 = _local5 - _local2.height;
mask._y = -_local2.height;
} else {
_local5 = _local3.y - _local2.height;
_local8 = _local3.y;
mask._y = border_mc.height;
}
var _local6 = _local2.selectedIndex;
if (_local6 == undefined) {
_local6 = 0;
}
var _local4 = _local2.vPosition;
_local4 = _local6 - 1;
_local4 = Math.min(Math.max(_local4, 0), _local2.length - _local2.rowCount);
_local2.vPosition = _local4;
_local2.move(_local3.x, _local5);
_local2.tween = new mx.effects.Tween(__dropdown, _local5, _local8, getStyle("openDuration"));
} else {
__dropdown._parent.globalToLocal(_local3);
delete __dropdown.dragScrolling;
__dropdown.onTweenEnd = tweenEndHide;
__dropdown.tween = new mx.effects.Tween(__dropdown, __dropdown._y, _local3.y - __dropdown.height, getStyle("openDuration"));
if (__initialSelectedIndexOnDropdown != selectedIndex) {
dispatchChangeEvent(undefined, __initialSelectedIndexOnDropdown, selectedIndex);
}
}
var _local9 = getStyle("openEasing");
if (_local9 != undefined) {
__dropdown.tween.easingEquation = _local9;
}
_showingDropdown = show;
}
function onDownArrow() {
_parent.displayDropdown(!_parent._showingDropdown);
}
function keyDown(e) {
if (e.ctrlKey && (e.code == 40)) {
displayDropdown(true);
} else if (e.ctrlKey && (e.code == 38)) {
displayDropdown(false);
dispatchChangeEvent(undefined, __selectedIndexOnDropdown, selectedIndex);
} else if (e.code == 27) {
displayDropdown(false);
} else if (e.code == 13) {
if (_showingDropdown) {
selectedIndex = __dropdown.selectedIndex;
displayDropdown(false);
}
} else if (((((!_editable) || (e.code == 38)) || (e.code == 40)) || (e.code == 33)) || (e.code == 34)) {
selectedIndex = 0 + selectedIndex;
bInKeyDown = true;
var _local3 = dropdown;
_local3.keyDown(e);
bInKeyDown = false;
selectedIndex = __dropdown.selectedIndex;
}
}
function invalidateStyle(styleProp) {
__dropdown.invalidateStyle(styleProp);
super.invalidateStyle(styleProp);
}
function changeTextStyleInChildren(styleProp) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeTextStyleInChildren(styleProp);
super.changeTextStyleInChildren(styleProp);
}
function changeColorStyleInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeColorStyleInChildren(sheetName, styleProp, newValue);
super.changeColorStyleInChildren(sheetName, styleProp, newValue);
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
super.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
}
function onUnload() {
__dropdown.removeMovieClip();
}
function _resizeHandler() {
var _local2 = owner;
_local2.mask._width = width;
_local2.mask._height = height;
}
function _changeHandler(obj) {
var _local2 = owner;
var _local3 = _local2.selectedIndex;
obj.target = _local2;
if (this == owner.text_mc) {
_local2.selectedIndex = undefined;
_local2.dispatchChangeEvent(obj, -1, -2);
} else {
_local2.selectedIndex = selectedIndex;
if (!_local2._showingDropdown) {
_local2.dispatchChangeEvent(obj, _local3, _local2.selectedIndex);
} else if (!_local2.bInKeyDown) {
_local2.displayDropdown(false);
}
}
}
function _scrollHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOverHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOutHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
if (0 == __dataProvider.length) {
text_mc.setText("");
delete selected;
} else if ((__dataProvider.length == ((eventObj.lastItem - eventObj.firstItem) + 1)) && (eventObj.eventName == "addItems")) {
selectedIndex = 0;
}
}
function dispatchChangeEvent(obj, prevValue, newValue) {
var _local2;
if (prevValue != newValue) {
if ((obj != undefined) && (obj.type == "change")) {
_local2 = obj;
} else {
_local2 = {type:"change"};
}
dispatchEvent(_local2);
}
}
static var symbolName = "ComboBox";
static var symbolOwner = mx.controls.ComboBox;
static var version = "2.0.2.127";
var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters);
var className = "ComboBox";
var _showingDropdown = false;
var __rowCount = 5;
var dropdownBorderStyle = undefined;
var initializing = true;
var __labelField = "label";
var bInKeyDown = false;
}
Symbol 227 MovieClip [__Packages.mx.managers.PopUpManager] Frame 0
class mx.managers.PopUpManager
{
var popUp, setSize, move, modalWindow, _parent, _name, _visible, owner;
function PopUpManager () {
}
static function createModalWindow(parent, o, broadcastOutsideEvents) {
var _local2 = parent.createChildAtDepth("Modal", mx.managers.DepthManager.kTopmost);
_local2.setDepthBelow(o);
o.modalID = _local2._name;
_local2._alpha = _global.style.modalTransparency;
_local2.tabEnabled = false;
if (broadcastOutsideEvents) {
_local2.onPress = mixins.onPress;
} else {
_local2.onPress = mixins.nullFunction;
}
_local2.onRelease = mixins.nullFunction;
_local2.resize = mixins.resize;
mx.managers.SystemManager.init();
mx.managers.SystemManager.addEventListener("resize", _local2);
_local2.resize();
_local2.useHandCursor = false;
_local2.popUp = o;
o.modalWindow = _local2;
o.deletePopUp = mixins.deletePopUp;
o.setVisible = mixins.setVisible;
o.getVisible = mixins.getVisible;
o.addProperty("visible", o.getVisible, o.setVisible);
}
static function createPopUp(parent, className, modal, initobj, broadcastOutsideEvents) {
if (mixins == undefined) {
mixins = new mx.managers.PopUpManager();
}
if (broadcastOutsideEvents == undefined) {
broadcastOutsideEvents = false;
}
var _local5 = parent._root;
if (_local5 == undefined) {
_local5 = _root;
}
while (parent != _local5) {
parent = parent._parent;
}
initobj.popUp = true;
var _local4 = parent.createClassChildAtDepth(className, ((broadcastOutsideEvents || (modal)) ? (mx.managers.DepthManager.kTopmost) : (mx.managers.DepthManager.kTop)), initobj);
var _local2 = _root;
var _local6 = _local2.focusManager != undefined;
while (_local2._parent != undefined) {
_local2 = _local2._parent._root;
if (_local2.focusManager != undefined) {
_local6 = true;
break;
}
}
if (_local6) {
_local4.createObject("FocusManager", "focusManager", -1);
if (_local4._visible == false) {
mx.managers.SystemManager.deactivate(_local4);
}
}
if (modal) {
createModalWindow(parent, _local4, broadcastOutsideEvents);
} else {
if (broadcastOutsideEvents) {
_local4.mouseListener = new Object();
_local4.mouseListener.owner = _local4;
_local4.mouseListener.onMouseDown = mixins.onMouseDown;
Mouse.addListener(_local4.mouseListener);
}
_local4.deletePopUp = mixins.deletePopUp;
}
return(_local4);
}
function onPress(Void) {
var _local3 = popUp._root;
if (_local3 == undefined) {
_local3 = _root;
}
if (popUp.hitTest(_local3._xmouse, _local3._ymouse, false)) {
return(undefined);
}
popUp.dispatchEvent({type:"mouseDownOutside"});
}
function nullFunction(Void) {
}
function resize(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
setSize(_local2.width, _local2.height);
move(_local2.x, _local2.y);
}
function deletePopUp(Void) {
if (modalWindow != undefined) {
_parent.destroyObject(modalWindow._name);
}
_parent.destroyObject(_name);
}
function setVisible(v, noEvent) {
super.setVisible(v, noEvent);
modalWindow._visible = v;
}
function getVisible(Void) {
return(_visible);
}
function onMouseDown(Void) {
var _local3 = owner._root;
if (_local3 == undefined) {
_local3 = _root;
}
var _local4 = new Object();
_local4.x = _local3._xmouse;
_local4.y = _local3._ymouse;
_local3.localToGlobal(_local4);
if (owner.hitTest(_local4.x, _local4.y, false)) {
} else {
owner.mouseDownOutsideHandler(owner);
}
}
static var version = "2.0.2.127";
static var mixins = undefined;
}
Symbol 192 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
_global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1);
_global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1);
_global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1);
_global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1);
_global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1);
_global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1);
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(MovieClip(this), _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local1 = targetDepth;
var _local2 = targetDepth;
if (direction == "down") {
while (depthTable[_local2] != undefined) {
_local2--;
}
return(_local2);
}
while (depthTable[_local1] != undefined) {
_local1++;
}
return(_local1);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 193 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(Void) {
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(Void) {
var _local1 = form;
_local1.focusManager._onMouseDown();
}
static function onResize(Void) {
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 187 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 204 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function set tabIndex(n) {
__tabIndex = n;
//return(tabIndex);
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.127";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 216 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local8 = false;
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
_local8 = true;
}
if (_local8) {
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 188 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher
{
var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener;
function UIEventDispatcher () {
super();
}
static function addKeyEvents(obj) {
if (obj.keyHandler == undefined) {
var _local1 = (obj.keyHandler = new Object());
_local1.owner = obj;
_local1.onKeyDown = _fEventDispatcher.onKeyDown;
_local1.onKeyUp = _fEventDispatcher.onKeyUp;
}
Key.addListener(obj.keyHandler);
}
static function removeKeyEvents(obj) {
Key.removeListener(obj.keyHandler);
}
static function addLoadEvents(obj) {
if (obj.onLoad == undefined) {
obj.onLoad = _fEventDispatcher.onLoad;
obj.onUnload = _fEventDispatcher.onUnload;
if (obj.getBytesTotal() == obj.getBytesLoaded()) {
obj.doLater(obj, "onLoad");
}
}
}
static function removeLoadEvents(obj) {
delete obj.onLoad;
delete obj.onUnload;
}
static function initialize(obj) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.UIEventDispatcher();
}
obj.addEventListener = _fEventDispatcher.__addEventListener;
obj.__origAddEventListener = _fEventDispatcher.addEventListener;
obj.removeEventListener = _fEventDispatcher.removeEventListener;
obj.dispatchEvent = _fEventDispatcher.dispatchEvent;
obj.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(mx.events.EventDispatcher, eventObj);
dispatchQueue(this, eventObj);
}
function onKeyDown(Void) {
owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onKeyUp(Void) {
owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)});
}
function onLoad(Void) {
if (__sentLoadEvent != true) {
dispatchEvent({type:"load"});
}
__sentLoadEvent = true;
}
function onUnload(Void) {
dispatchEvent({type:"unload"});
}
function __addEventListener(event, handler) {
__origAddEventListener(event, handler);
var _local3 = lowLevelEvents;
for (var _local5 in _local3) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local2 = _local3[_local5][0];
mx.events.UIEventDispatcher[_local2](this);
}
}
}
function removeEventListener(event, handler) {
var _local6 = "__q_" + event;
mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler);
if (this[_local6].length == 0) {
var _local2 = lowLevelEvents;
for (var _local5 in _local2) {
if (mx.events.UIEventDispatcher[_local5][event] != undefined) {
var _local3 = _local2[_local5][1];
mx.events.UIEventDispatcher[_local2[_local5][1]](this);
}
}
}
}
static var keyEvents = {keyDown:1, keyUp:1};
static var loadEvents = {load:1, unload:1};
static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]};
static var _fEventDispatcher = undefined;
}
Symbol 205 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local4 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local4 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = mx.controls.scrollClasses.ScrollBar(createObject("HScrollBar", "hSB", 1001));
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local4)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local4, 0, colCount - _local4);
viewableColumns = _local4;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local5 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local5 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = mx.controls.scrollClasses.ScrollBar(createObject("VScrollBar", "vSB", 1002));
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local5 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local5, 0, (rwCount - _local5) + _local8);
viewableRows = _local5;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = mx.controls.scrollClasses.ScrollBar(createObject("FHScrollBar", "hSB", 1001));
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.127";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 142 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent
{
var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse;
function ScrollBar () {
super();
}
function get scrollPosition() {
return(_scrollPosition);
}
function set scrollPosition(pos) {
_scrollPosition = pos;
if (isScrolling != true) {
pos = Math.min(pos, maxPos);
pos = Math.max(pos, minPos);
var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top;
scrollThumb_mc.move(0, _local3);
}
//return(scrollPosition);
}
function get pageScrollSize() {
return(largeScroll);
}
function set pageScrollSize(lScroll) {
largeScroll = lScroll;
//return(pageScrollSize);
}
function set lineScrollSize(sScroll) {
smallScroll = sScroll;
//return(lineScrollSize);
}
function get lineScrollSize() {
return(smallScroll);
}
function get virtualHeight() {
return(__height);
}
function init(Void) {
super.init();
_scrollPosition = 0;
tabEnabled = false;
focusEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren(Void) {
if (scrollTrack_mc == undefined) {
setSkin(skinIDTrack, scrollTrackName);
}
scrollTrack_mc.visible = false;
var _local3 = new Object();
_local3.enabled = false;
_local3.preset = mx.controls.SimpleButton.falseDisabled;
_local3.initProperties = 0;
_local3.autoRepeat = true;
_local3.tabEnabled = false;
var _local2;
if (upArrow_mc == undefined) {
_local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3);
}
_local2.buttonDownHandler = onUpArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _local2.height;
_minWidth = _local2.width;
if (downArrow_mc == undefined) {
_local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3);
}
_local2.buttonDownHandler = onDownArrow;
_local2.clickHandler = onScrollChanged;
_minHeight = _minHeight + _local2.height;
}
function createButton(linkageName, id, skinID, o) {
if (skinID == skinIDUpArrow) {
o.falseUpSkin = upArrowUpName;
o.falseDownSkin = upArrowDownName;
o.falseOverSkin = upArrowOverName;
} else {
o.falseUpSkin = downArrowUpName;
o.falseDownSkin = downArrowDownName;
o.falseOverSkin = downArrowOverName;
}
var _local3 = createObject(linkageName, id, skinID, o);
this[id].visible = false;
this[id].useHandCursor = false;
return(_local3);
}
function createThumb(Void) {
var _local2 = new Object();
_local2.validateNow = true;
_local2.tabEnabled = false;
_local2.leftSkin = thumbTopName;
_local2.middleSkin = thumbMiddleName;
_local2.rightSkin = thumbBottomName;
_local2.gripSkin = thumbGripName;
createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2);
}
function setScrollProperties(pSize, mnPos, mxPos, ls) {
var _local4;
var _local2 = scrollTrack_mc;
pageSize = pSize;
largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize));
minPos = Math.max(mnPos, 0);
maxPos = Math.max(mxPos, 0);
_scrollPosition = Math.max(minPos, _scrollPosition);
_scrollPosition = Math.min(maxPos, _scrollPosition);
if (((maxPos - minPos) > 0) && (enabled)) {
var _local5 = _scrollPosition;
if (!initializing) {
upArrow_mc.enabled = true;
downArrow_mc.enabled = true;
}
_local2.onPress = (_local2.onDragOver = startTrackScroller);
_local2.onRelease = releaseScrolling;
_local2.onDragOut = (_local2.stopScrolling = stopScrolling);
_local2.onReleaseOutside = releaseScrolling;
_local2.useHandCursor = false;
if (scrollThumb_mc == undefined) {
createThumb();
}
var _local3 = scrollThumb_mc;
if (scrollTrackOverName.length > 0) {
_local2.onRollOver = trackOver;
_local2.onRollOut = trackOut;
}
_local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height;
if (_local4 < _local3.minHeight) {
if (_local2.height < _local3.minHeight) {
_local3.__set__visible(false);
} else {
_local4 = _local3.minHeight;
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local3.minHeight + 0);
}
} else {
_local3.__set__visible(true);
_local3.setSize(_minWidth, _local4);
}
_local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos);
_local5 = Math.min(_local5, maxPos);
scrollPosition = (Math.max(_local5, minPos));
} else {
scrollThumb_mc.__set__visible(false);
if (!initializing) {
upArrow_mc.enabled = false;
downArrow_mc.enabled = false;
}
delete _local2.onPress;
delete _local2.onDragOver;
delete _local2.onRelease;
delete _local2.onDragOut;
delete _local2.onRollOver;
delete _local2.onRollOut;
delete _local2.onReleaseOutside;
}
if (initializing) {
scrollThumb_mc.__set__visible(false);
}
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function draw(Void) {
if (initializing) {
initializing = false;
scrollTrack_mc.visible = true;
upArrow_mc.__set__visible(true);
downArrow_mc.__set__visible(true);
}
size();
}
function size(Void) {
if (_height == 1) {
return(undefined);
}
if (upArrow_mc == undefined) {
return(undefined);
}
var _local3 = upArrow_mc.__get__height();
var _local2 = downArrow_mc.__get__height();
upArrow_mc.move(0, 0);
var _local4 = scrollTrack_mc;
_local4._y = _local3;
_local4._height = (virtualHeight - _local3) - _local2;
downArrow_mc.move(0, virtualHeight - _local2);
setScrollProperties(pageSize, minPos, maxPos, largeScroll);
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll", detail:detail});
}
function isScrollBarKey(k) {
if (k == 36) {
if (scrollPosition != 0) {
scrollPosition = (0);
dispatchScrollEvent(minMode);
}
return(true);
}
if (k == 35) {
if (scrollPosition < maxPos) {
scrollPosition = (maxPos);
dispatchScrollEvent(maxMode);
}
return(true);
}
return(false);
}
function scrollIt(inc, mode) {
var _local3 = smallScroll;
if (inc != "Line") {
_local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll));
}
var _local2 = _scrollPosition + (mode * _local3);
if (_local2 > maxPos) {
_local2 = maxPos;
} else if (_local2 < minPos) {
_local2 = minPos;
}
if (scrollPosition != _local2) {
scrollPosition = (_local2);
var _local4 = ((mode < 0) ? (minusMode) : (plusMode));
dispatchScrollEvent(inc + _local4);
}
}
function startTrackScroller(Void) {
_parent.pressFocus();
if (_parent.scrollTrackDownName.length > 0) {
if (_parent.scrollTrackDown_mc == undefined) {
_parent.setSkin(skinIDTrackDown, scrollTrackDownName);
} else {
_parent.scrollTrackDown_mc.visible = true;
}
}
_parent.trackScroller();
_parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1);
}
function scrollInterval(inc, mode) {
clearInterval(scrolling);
if (inc == "Page") {
trackScroller();
} else {
scrollIt(inc, mode);
}
scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode);
}
function trackScroller(Void) {
if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) {
scrollIt("Page", 1);
} else if (scrollThumb_mc._y > _ymouse) {
scrollIt("Page", -1);
}
}
function dispatchScrollChangedEvent(Void) {
dispatchEvent({type:"scrollChanged"});
}
function stopScrolling(Void) {
clearInterval(_parent.scrolling);
_parent.scrollTrackDown_mc.visible = false;
}
function releaseScrolling(Void) {
_parent.releaseFocus();
stopScrolling();
_parent.dispatchScrollChangedEvent();
}
function trackOver(Void) {
if (_parent.scrollTrackOverName.length > 0) {
if (_parent.scrollTrackOver_mc == undefined) {
_parent.setSkin(skinIDTrackOver, scrollTrackOverName);
} else {
_parent.scrollTrackOver_mc.visible = true;
}
}
}
function trackOut(Void) {
_parent.scrollTrackOver_mc.visible = false;
}
function onUpArrow(Void) {
_parent.scrollIt("Line", -1);
}
function onDownArrow(Void) {
_parent.scrollIt("Line", 1);
}
function onScrollChanged(Void) {
_parent.dispatchScrollChangedEvent();
}
static var symbolOwner = mx.core.UIComponent;
var className = "ScrollBar";
var minPos = 0;
var maxPos = 0;
var pageSize = 0;
var largeScroll = 0;
var smallScroll = 1;
var _scrollPosition = 0;
var scrollTrackName = "ScrollTrack";
var scrollTrackOverName = "";
var scrollTrackDownName = "";
var upArrowName = "BtnUpArrow";
var upArrowUpName = "ScrollUpArrowUp";
var upArrowOverName = "ScrollUpArrowOver";
var upArrowDownName = "ScrollUpArrowDown";
var downArrowName = "BtnDownArrow";
var downArrowUpName = "ScrollDownArrowUp";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDownName = "ScrollDownArrowDown";
var thumbTopName = "ScrollThumbTopUp";
var thumbMiddleName = "ScrollThumbMiddleUp";
var thumbBottomName = "ScrollThumbBottomUp";
var thumbGripName = "ScrollThumbGripUp";
static var skinIDTrack = 0;
static var skinIDTrackOver = 1;
static var skinIDTrackDown = 2;
static var skinIDUpArrow = 3;
static var skinIDDownArrow = 4;
static var skinIDThumb = 5;
var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc");
var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var initializing = true;
}
Symbol 182 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.2.127";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 183 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder
{
var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height;
function ScrollThumb () {
super();
}
function createChildren(Void) {
super.createChildren();
useHandCursor = false;
}
function setRange(_ymin, _ymax, _datamin, _datamax) {
ymin = _ymin;
ymax = _ymax;
datamin = _datamin;
datamax = _datamax;
}
function dragThumb(Void) {
scrollMove = _ymouse - lastY;
scrollMove = scrollMove + _y;
if (scrollMove < ymin) {
scrollMove = ymin;
} else if (scrollMove > ymax) {
scrollMove = ymax;
}
_parent.isScrolling = true;
_y = scrollMove;
var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin;
_parent.scrollPosition = _local2;
_parent.dispatchScrollEvent("ThumbTrack");
updateAfterEvent();
}
function stopDragThumb(Void) {
_parent.isScrolling = false;
_parent.dispatchScrollEvent("ThumbPosition");
_parent.dispatchScrollChangedEvent();
delete onMouseMove;
}
function onPress(Void) {
_parent.pressFocus();
lastY = _ymouse;
onMouseMove = dragThumb;
super.onPress();
}
function onRelease(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onRelease();
}
function onReleaseOutside(Void) {
_parent.releaseFocus();
stopDragThumb();
super.onReleaseOutside();
}
function draw() {
super.draw();
if (grip_mc == undefined) {
setSkin(3, gripSkin);
}
}
function size() {
super.size();
grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2);
}
static var symbolOwner = mx.skins.CustomBorder.symbolOwner;
var className = "ScrollThumb";
var btnOffset = 0;
var horizontal = false;
var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc");
}
Symbol 206 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0
class mx.controls.listclasses.DataProvider extends Object
{
var length, splice, dispatchEvent, sortOn, reverse, sort;
function DataProvider (obj) {
super();
}
static function Initialize(obj) {
var _local4 = mixinProps;
var _local6 = _local4.length;
obj = obj.prototype;
var _local3 = 0;
while (_local3 < _local6) {
obj[_local4[_local3]] = mixins[_local4[_local3]];
_global.ASSetPropFlags(obj, _local4[_local3], 1);
_local3++;
}
mx.events.EventDispatcher.initialize(obj);
_global.ASSetPropFlags(obj, "addEventListener", 1);
_global.ASSetPropFlags(obj, "removeEventListener", 1);
_global.ASSetPropFlags(obj, "dispatchEvent", 1);
_global.ASSetPropFlags(obj, "dispatchQueue", 1);
Object.prototype.LargestID = 0;
Object.prototype.getID = function () {
if (this.__ID__ == undefined) {
this.__ID__ = Object.prototype.LargestID++;
_global.ASSetPropFlags(this, "__ID__", 1);
}
return(this.__ID__);
};
_global.ASSetPropFlags(Object.prototype, "LargestID", 1);
_global.ASSetPropFlags(Object.prototype, "getID", 1);
return(true);
}
function addItemAt(index, value) {
if (index < length) {
splice(index, 0, value);
} else if (index > length) {
return(undefined);
}
this[index] = value;
updateViews("addItems", index, index);
}
function addItem(value) {
addItemAt(length, value);
}
function addItemsAt(index, newItems) {
index = Math.min(length, index);
newItems.unshift(index, 0);
splice.apply(this, newItems);
newItems.splice(0, 2);
updateViews("addItems", index, (index + newItems.length) - 1);
}
function removeItemsAt(index, len) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < len) {
_local3.push(getItemID(index + _local2));
_local2++;
}
var _local6 = splice(index, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3});
}
function removeItemAt(index) {
var _local2 = this[index];
removeItemsAt(index, 1);
return(_local2);
}
function removeAll(Void) {
splice(0);
updateViews("removeItems", 0, length - 1);
}
function replaceItemAt(index, itemObj) {
if ((index < 0) || (index >= length)) {
return(undefined);
}
var _local3 = getItemID(index);
this[index] = itemObj;
this[index].__ID__ = _local3;
updateViews("updateItems", index, index);
}
function getItemAt(index) {
return(this[index]);
}
function getItemID(index) {
var _local2 = this[index];
if ((typeof(_local2) != "object") && (_local2 != undefined)) {
return(index);
}
return(_local2.getID());
}
function sortItemsBy(fieldName, order) {
if (typeof(order) == "string") {
sortOn(fieldName);
if (order.toUpperCase() == "DESC") {
reverse();
}
} else {
sortOn(fieldName, order);
}
updateViews("sort");
}
function sortItems(compareFunc, optionFlags) {
sort(compareFunc, optionFlags);
updateViews("sort");
}
function editField(index, fieldName, newData) {
this[index][fieldName] = newData;
dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:index, lastItem:index, fieldName:fieldName});
}
function getEditingData(index, fieldName) {
return(this[index][fieldName]);
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"];
static var evtDipatcher = mx.events.EventDispatcher;
static var mixins = new mx.controls.listclasses.DataProvider();
}
Symbol 207 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0
class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView
{
var invLayoutContent, rows, topRowZ, listContent, __dataProvider, __vPosition, tW, layoutX, layoutY, tH, invRowHeight, invalidate, __height, invUpdateControl, __cellRenderer, __labelFunction, __iconField, __iconFunction, getLength, baseRowZ, lastPosition, propertyTable, isSelected, wasKeySelected, changeFlag, clearSelected, selectItem, lastSelected, dispatchEvent, dragScrolling, _ymouse, scrollInterval, isPressed, onMouseUp, getSelectedIndex, enabled, tabEnabled, tabChildren, createEmptyMovieClip, border_mc;
function ScrollSelectList () {
super();
}
function layoutContent(x, y, w, h) {
delete invLayoutContent;
var _local4 = Math.ceil(h / __rowHeight);
roundUp = (h % __rowHeight) != 0;
var _local12 = _local4 - __rowCount;
if (_local12 < 0) {
var _local3 = _local4;
while (_local3 < __rowCount) {
rows[_local3].removeMovieClip();
delete rows[_local3];
_local3++;
}
topRowZ = topRowZ + _local12;
} else if (_local12 > 0) {
if (rows == undefined) {
rows = new Array();
}
var _local3 = __rowCount;
while (_local3 < _local4) {
var _local2 = (rows[_local3] = listContent.createObject(__rowRenderer, "listRow" + (topRowZ++), topRowZ, {owner:this, styleName:this, rowIndex:_local3}));
_local2._x = x;
_local2._y = Math.round((_local3 * __rowHeight) + y);
_local2.setSize(w, __rowHeight);
_local2.drawRow(__dataProvider.getItemAt(__vPosition + _local3), getStateAt(__vPosition + _local3));
_local2.lastY = _local2._y;
_local3++;
}
}
if (w != tW) {
var _local11 = ((_local12 > 0) ? (__rowCount) : (_local4));
var _local3 = 0;
while (_local3 < _local11) {
rows[_local3].setSize(w, __rowHeight);
_local3++;
}
}
if ((layoutX != x) || (layoutY != y)) {
var _local3 = 0;
while (_local3 < _local4) {
rows[_local3]._x = x;
rows[_local3]._y = Math.round((_local3 * __rowHeight) + y);
_local3++;
}
}
__rowCount = _local4;
layoutX = x;
layoutY = y;
tW = w;
tH = h;
}
function getRowHeight(Void) {
return(__rowHeight);
}
function setRowHeight(v) {
__rowHeight = v;
invRowHeight = true;
invalidate();
}
function get rowHeight() {
return(getRowHeight());
}
function set rowHeight(w) {
setRowHeight(w);
//return(rowHeight);
}
function setRowCount(v) {
__rowCount = v;
}
function getRowCount(Void) {
var _local2 = ((__rowCount == 0) ? (Math.ceil(__height / __rowHeight)) : (__rowCount));
return(_local2);
}
function get rowCount() {
return(getRowCount());
}
function set rowCount(w) {
setRowCount(w);
//return(rowCount);
}
function setEnabled(v) {
super.setEnabled(v);
invUpdateControl = true;
invalidate();
}
function setCellRenderer(cR) {
__cellRenderer = cR;
var _local2 = 0;
while (_local2 < rows.length) {
rows[_local2].setCellRenderer(true);
_local2++;
}
invUpdateControl = true;
invalidate();
}
function set cellRenderer(cR) {
setCellRenderer(cR);
//return(cellRenderer);
}
function get cellRenderer() {
return(__cellRenderer);
}
function set labelField(field) {
setLabelField(field);
//return(labelField);
}
function setLabelField(field) {
__labelField = field;
invUpdateControl = true;
invalidate();
}
function get labelField() {
return(__labelField);
}
function set labelFunction(func) {
setLabelFunction(func);
//return(labelFunction);
}
function setLabelFunction(func) {
__labelFunction = func;
invUpdateControl = true;
invalidate();
}
function get labelFunction() {
return(__labelFunction);
}
function set iconField(field) {
setIconField(field);
//return(iconField);
}
function setIconField(field) {
__iconField = field;
invUpdateControl = true;
invalidate();
}
function get iconField() {
return(__iconField);
}
function set iconFunction(func) {
setIconFunction(func);
//return(iconFunction);
}
function setIconFunction(func) {
__iconFunction = func;
invUpdateControl = true;
invalidate();
}
function get iconFunction() {
return(__iconFunction);
}
function setVPosition(pos) {
if (pos < 0) {
return(undefined);
}
if ((pos > 0) && (pos > ((getLength() - __rowCount) + roundUp))) {
return(undefined);
}
var _local8 = pos - __vPosition;
if (_local8 == 0) {
return(undefined);
}
__vPosition = pos;
var _local10 = _local8 > 0;
_local8 = Math.abs(_local8);
if (_local8 >= __rowCount) {
updateControl();
} else {
var _local4 = new Array();
var _local9 = __rowCount - _local8;
var _local12 = _local8 * __rowHeight;
var _local11 = _local9 * __rowHeight;
var _local6 = (_local10 ? 1 : -1);
var _local3 = 0;
while (_local3 < __rowCount) {
if (((_local3 < _local8) && (_local10)) || ((_local3 >= _local9) && (!_local10))) {
rows[_local3]._y = rows[_local3]._y + Math.round(_local6 * _local11);
var _local5 = _local3 + (_local6 * _local9);
var _local7 = __vPosition + _local5;
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
_local4[_local5].drawRow(__dataProvider.getItemAt(_local7), getStateAt(_local7), false);
} else {
rows[_local3]._y = rows[_local3]._y - Math.round(_local6 * _local12);
var _local5 = _local3 - (_local6 * _local8);
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
}
_local3++;
}
rows = _local4;
_local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].swapDepths(baseRowZ + _local3);
_local3++;
}
}
lastPosition = pos;
super.setVPosition(pos);
}
function setPropertiesAt(index, obj) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (propertyTable == undefined) {
propertyTable = new Object();
}
propertyTable[_local2] = obj;
rows[index - __vPosition].drawRow(__dataProvider.getItemAt(index), getStateAt(index));
}
function getPropertiesAt(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getPropertiesOf(obj) {
var _local2 = obj.getID();
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getStyle(styleProp) {
var _local2 = super.getStyle(styleProp);
var _local3 = mx.styles.StyleManager.colorNames[_local2];
if (_local3 != undefined) {
_local2 = _local3;
}
return(_local2);
}
function updateControl(Void) {
var _local2 = 0;
while (_local2 < __rowCount) {
rows[_local2].drawRow(__dataProvider.getItemAt(_local2 + __vPosition), getStateAt(_local2 + __vPosition));
_local2++;
}
delete invUpdateControl;
}
function getStateAt(index) {
return((isSelected(index) ? "selected" : "normal"));
}
function selectRow(rowIndex, transition, allowChangeEvent) {
if (!selectable) {
return(undefined);
}
var _local3 = __vPosition + rowIndex;
var _local8 = __dataProvider.getItemAt(_local3);
var _local5 = rows[rowIndex];
if (_local8 == undefined) {
return(undefined);
}
if (transition == undefined) {
transition = true;
}
if (allowChangeEvent == undefined) {
allowChangeEvent = wasKeySelected;
}
changeFlag = true;
if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
clearSelected(transition);
selectItem(_local3, true);
lastSelected = _local3;
_local5.drawRow(_local5.item, getStateAt(_local3), transition);
} else if (Key.isDown(16) && (multipleSelection)) {
if (lastSelected == undefined) {
lastSelected = _local3;
}
var _local4 = ((lastSelected < _local3) ? 1 : -1);
clearSelected(false);
var _local2 = lastSelected;
while (_local2 != _local3) {
selectItem(_local2, true);
if ((_local2 >= __vPosition) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "selected", false);
}
_local2 = _local2 + _local4;
}
selectItem(_local3, true);
_local5.drawRow(_local5.item, "selected", transition);
} else if (Key.isDown(17)) {
var _local7 = isSelected(_local3);
if ((!multipleSelection) || (wasKeySelected)) {
clearSelected(transition);
}
if (!((!multipleSelection) && (_local7))) {
selectItem(_local3, !_local7);
var _local9 = ((!_local7) ? "selected" : "normal");
_local5.drawRow(_local5.item, _local9, transition);
}
lastSelected = _local3;
}
if (allowChangeEvent) {
dispatchEvent({type:"change"});
}
delete wasKeySelected;
}
function dragScroll(Void) {
clearInterval(dragScrolling);
if (_ymouse < 0) {
setVPosition(__vPosition - 1);
selectRow(0, false);
var _local2 = Math.min((-_ymouse) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else if (_ymouse > __height) {
var _local3 = __vPosition;
setVPosition(__vPosition + 1);
if (_local3 != __vPosition) {
selectRow((__rowCount - 1) - roundUp, false);
}
var _local2 = Math.min((_ymouse - __height) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else {
dragScrolling = setInterval(this, "dragScroll", 15);
}
updateAfterEvent();
}
function __onMouseUp(Void) {
clearInterval(dragScrolling);
delete dragScrolling;
delete dragScrolling;
delete isPressed;
delete onMouseUp;
if (!selectable) {
return(undefined);
}
if (changeFlag) {
dispatchEvent({type:"change"});
}
delete changeFlag;
}
function moveSelBy(incr) {
if (!selectable) {
setVPosition(__vPosition + incr);
return(undefined);
}
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = -1;
}
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < __vPosition) || (_local3 >= (__vPosition + __rowCount))) {
setVPosition(_local3);
}
if ((_local2 >= ((__vPosition + __rowCount) - roundUp)) || (_local2 < __vPosition)) {
setVPosition(__vPosition + incr);
}
wasKeySelected = true;
selectRow(_local2 - __vPosition, false);
}
function keyDown(e) {
if (selectable) {
if (findInputText()) {
return(undefined);
}
}
if (e.code == 40) {
moveSelBy(1);
} else if (e.code == 38) {
moveSelBy(-1);
} else if (e.code == 34) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((__rowCount - 1) - roundUp);
} else if (e.code == 33) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((1 - __rowCount) + roundUp);
} else if (e.code == 36) {
moveSelBy(-__dataProvider.length);
} else if (e.code == 35) {
moveSelBy(__dataProvider.length);
}
}
function findInputText(Void) {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
findString(String.fromCharCode(_local2));
return(true);
}
}
function findString(str) {
if (__dataProvider.length == 0) {
return(undefined);
}
var _local4 = getSelectedIndex();
if (_local4 == undefined) {
_local4 = 0;
}
var _local6 = 0;
var _local3 = _local4 + 1;
while (_local3 != _local4) {
var _local2 = __dataProvider.getItemAt(_local3);
if (_local2 instanceof XMLNode) {
_local2 = _local2.attributes[__labelField];
} else if (typeof(_local2) != "string") {
_local2 = String(_local2[__labelField]);
}
_local2 = _local2.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
_local6 = _local3 - _local4;
break;
}
if (_local3 >= (getLength() - 1)) {
_local3 = -1;
}
_local3++;
}
if (_local6 != 0) {
moveSelBy(_local6);
}
}
function onRowPress(rowIndex) {
if (!enabled) {
return(undefined);
}
isPressed = true;
dragScrolling = setInterval(this, "dragScroll", 15);
onMouseUp = __onMouseUp;
if (!selectable) {
return(undefined);
}
selectRow(rowIndex);
}
function onRowRelease(rowIndex) {
}
function onRowRollOver(rowIndex) {
if (!enabled) {
return(undefined);
}
var _local2 = rows[rowIndex].item;
if (getStyle("useRollOver") && (_local2 != undefined)) {
rows[rowIndex].drawRow(_local2, "highlighted", false);
}
dispatchEvent({type:"itemRollOver", index:rowIndex + __vPosition});
}
function onRowRollOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (getStyle("useRollOver")) {
rows[rowIndex].drawRow(rows[rowIndex].item, getStateAt(rowIndex + __vPosition), false);
}
dispatchEvent({type:"itemRollOut", index:rowIndex + __vPosition});
}
function onRowDragOver(rowIndex) {
if (((!enabled) || (isPressed != true)) || (!selectable)) {
return(undefined);
}
if (dropEnabled) {
} else if (dragScrolling) {
selectRow(rowIndex, false);
} else {
onMouseUp = __onMouseUp;
onRowPress(rowIndex);
}
}
function onRowDragOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (dragEnabled) {
} else {
onRowRollOut(rowIndex);
}
}
function init(Void) {
super.init();
tabEnabled = true;
tabChildren = false;
if (__dataProvider == undefined) {
__dataProvider = new Array();
__dataProvider.addEventListener("modelChanged", this);
}
baseRowZ = (topRowZ = 10);
}
function createChildren(Void) {
super.createChildren();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
invLayoutContent = true;
invalidate();
}
function draw(Void) {
if (invRowHeight) {
delete invRowHeight;
__rowCount = 0;
listContent.removeMovieClip();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
}
if (invUpdateControl) {
updateControl();
}
border_mc.draw();
}
function invalidateStyle(propName) {
if (isRowStyle[propName]) {
invUpdateControl = true;
invalidate();
} else {
var _local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].invalidateStyle(propName);
_local3++;
}
}
super.invalidateStyle(propName);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList);
static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array);
var CONTENTDEPTH = 100;
var __hPosition = 0;
var __rowRenderer = "SelectableRow";
var __rowHeight = 22;
var __rowCount = 0;
var __labelField = "label";
var minScrollInterval = 30;
var dropEnabled = false;
var dragEnabled = false;
var className = "ScrollSelectList";
var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true};
var roundUp = 0;
var selectable = true;
var multipleSelection = false;
}
Symbol 208 MovieClip [__Packages.mx.controls.List] Frame 0
class mx.controls.List extends mx.controls.listclasses.ScrollSelectList
{
var border_mc, __labels, setDataProvider, roundUp, __get__rowCount, __dataProvider, __maxHPosition, invScrollProps, invalidate, __vPosition, getViewMetrics, setSize, __width, __rowHeight, totalWidth, totalHeight, displayWidth, __hScrollPolicy, vScroller, __hPosition, listContent, data, mask_mc, __height, __rowCount, invRowHeight, invLayoutContent, setScrollProperties, oldVWidth;
function List () {
super();
}
function setEnabled(v) {
super.setEnabled(v);
border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor");
border_mc.invalidate();
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function setVPosition(pos) {
pos = Math.min((__dataProvider.length - __get__rowCount()) + roundUp, pos);
pos = Math.max(0, pos);
super.setVPosition(pos);
}
function setHPosition(pos) {
pos = Math.max(Math.min(__maxHPosition, pos), 0);
super.setHPosition(pos);
hScroll(pos);
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
invScrollProps = true;
invalidate();
}
function setHScrollPolicy(policy) {
if ((policy.toLowerCase() == "auto") && (!autoHScrollAble)) {
return(undefined);
}
super.setHScrollPolicy(policy);
if (policy == "off") {
setHPosition(0);
setVPosition(Math.min((__dataProvider.length - __get__rowCount()) + roundUp, __vPosition));
}
}
function setRowCount(rC) {
if (isNaN(rC)) {
return(undefined);
}
var _local2 = getViewMetrics();
setSize(__width, ((__rowHeight * rC) + _local2.top) + _local2.bottom);
}
function layoutContent(x, y, tW, tH, dW, dH) {
totalWidth = tW;
totalHeight = tH;
displayWidth = dW;
var _local4 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (Math.max(tW, dW)) : (dW));
super.layoutContent(x, y, _local4, dH);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
var _local3 = eventObj.eventName;
if ((((_local3 == "addItems") || (_local3 == "removeItems")) || (_local3 == "updateAll")) || (_local3 == "filterModel")) {
invScrollProps = true;
invalidate("invScrollProps");
}
}
function onScroll(eventObj) {
var _local3 = eventObj.target;
if (_local3 == vScroller) {
setVPosition(_local3.scrollPosition);
} else {
hScroll(_local3.scrollPosition);
}
super.onScroll(eventObj);
}
function hScroll(pos) {
__hPosition = pos;
listContent._x = -pos;
}
function init(Void) {
super.init();
if (labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
__maxHPosition = 0;
}
function createChildren(Void) {
super.createChildren();
listContent.setMask(MovieClip(mask_mc));
border_mc.move(0, 0);
border_mc.setSize(__width, __height);
}
function getRowCount(Void) {
var _local2 = getViewMetrics();
return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount)));
}
function size(Void) {
super.size();
configureScrolling();
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
function draw(Void) {
if (invRowHeight) {
invScrollProps = true;
super.draw();
listContent.setMask(MovieClip(mask_mc));
invLayoutContent = true;
}
if (invScrollProps) {
configureScrolling();
delete invScrollProps;
}
if (invLayoutContent) {
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
super.draw();
}
function configureScrolling(Void) {
var _local2 = __dataProvider.length;
if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) {
setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition)));
}
var _local3 = getViewMetrics();
var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right));
if (_local2 == undefined) {
_local2 = 0;
}
setScrollProperties(_local4, 1, _local2, __rowHeight);
if (oldVWidth != _local4) {
invLayoutContent = true;
}
oldVWidth = _local4;
}
static var symbolOwner = mx.controls.List;
static var symbolName = "List";
var className = "List";
static var version = "2.0.2.127";
var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1};
var scrollDepth = 1;
var __vScrollPolicy = "on";
var autoHScrollAble = false;
}
Symbol 217 MovieClip [__Packages.mx.effects.Tween] Frame 0
class mx.effects.Tween extends Object
{
static var IntervalToken;
var arrayMode, listener, initVal, endVal, startTime, updateFunc, endFunc, ID;
function Tween (listenerObj, init, end, dur) {
super();
if (listenerObj == undefined) {
return;
}
if (typeof(init) != "number") {
arrayMode = true;
}
listener = listenerObj;
initVal = init;
endVal = end;
if (dur != undefined) {
duration = dur;
}
startTime = getTimer();
if (duration == 0) {
endTween();
} else {
AddTween(this);
}
}
static function AddTween(tween) {
tween.ID = ActiveTweens.length;
ActiveTweens.push(tween);
if (IntervalToken == undefined) {
Dispatcher.DispatchTweens = DispatchTweens;
IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval);
}
}
static function RemoveTweenAt(index) {
var _local2 = ActiveTweens;
if (((index >= _local2.length) || (index < 0)) || (index == undefined)) {
return(undefined);
}
_local2.splice(index, 1);
var _local4 = _local2.length;
var _local1 = index;
while (_local1 < _local4) {
_local2[_local1].ID--;
_local1++;
}
if (_local4 == 0) {
clearInterval(IntervalToken);
delete IntervalToken;
}
}
static function DispatchTweens(Void) {
var _local2 = ActiveTweens;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
updateAfterEvent();
}
function doInterval() {
var _local2 = getTimer() - startTime;
var _local3 = getCurVal(_local2);
if (_local2 >= duration) {
endTween();
} else if (updateFunc != undefined) {
listener[updateFunc](_local3);
} else {
listener.onTweenUpdate(_local3);
}
}
function getCurVal(curTime) {
if (arrayMode) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < initVal.length) {
_local3[_local2] = easingEquation(curTime, initVal[_local2], endVal[_local2] - initVal[_local2], duration);
_local2++;
}
return(_local3);
}
return(easingEquation(curTime, initVal, endVal - initVal, duration));
}
function endTween() {
if (endFunc != undefined) {
listener[endFunc](endVal);
} else {
listener.onTweenEnd(endVal);
}
RemoveTweenAt(ID);
}
function setTweenHandlers(update, end) {
updateFunc = update;
endFunc = end;
}
function easingEquation(t, b, c, d) {
return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b);
}
static var ActiveTweens = new Array();
static var Interval = 10;
static var Dispatcher = new Object();
var duration = 3000;
}
Symbol 186 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton
{
var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject;
function Button () {
super();
}
function init(Void) {
super.init();
}
function draw() {
if (initializing) {
labelPath.visible = true;
}
super.draw();
if (initIcon != undefined) {
_setIcon(initIcon);
}
delete initIcon;
}
function onRelease(Void) {
super.onRelease();
}
function createChildren(Void) {
super.createChildren();
}
function setSkin(tag, linkageName, initobj) {
return(super.setSkin(tag, linkageName, initobj));
}
function viewSkin(varName) {
var _local3 = (getState() ? "true" : "false");
_local3 = _local3 + (enabled ? (phase) : "disabled");
super.viewSkin(varName, {styleName:this, borderStyle:_local3});
}
function invalidateStyle(c) {
labelPath.invalidateStyle(c);
super.invalidateStyle(c);
}
function setColor(c) {
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]].redraw(true);
_local2++;
}
}
function setEnabled(enable) {
labelPath.enabled = enable;
super.setEnabled(enable);
}
function calcSize(tag, ref) {
if ((__width == undefined) || (__height == undefined)) {
return(undefined);
}
if (tag < 7) {
ref.setSize(__width, __height, true);
}
}
function size(Void) {
setState(getState());
setHitArea(__width, __height);
var _local3 = 0;
while (_local3 < 8) {
var _local4 = idNames[_local3];
if (typeof(this[_local4]) == "movieclip") {
this[_local4].setSize(__width, __height, true);
}
_local3++;
}
super.size();
}
function set labelPlacement(val) {
__labelPlacement = val;
invalidate();
//return(labelPlacement);
}
function get labelPlacement() {
return(__labelPlacement);
}
function getLabelPlacement(Void) {
return(__labelPlacement);
}
function setLabelPlacement(val) {
__labelPlacement = val;
invalidate();
}
function getBtnOffset(Void) {
if (getState()) {
var _local2 = btnOffset;
} else if (phase == "down") {
var _local2 = btnOffset;
} else {
var _local2 = 0;
}
return(_local2);
}
function setView(offset) {
var _local16 = (offset ? (btnOffset) : 0);
var _local12 = getLabelPlacement();
var _local7 = 0;
var _local6 = 0;
var _local11 = 0;
var _local8 = 0;
var _local5 = 0;
var _local4 = 0;
var _local3 = labelPath;
var _local2 = iconName;
var _local15 = _local3.textWidth;
var _local14 = _local3.textHeight;
var _local9 = (__width - borderW) - borderW;
var _local10 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local11 = Math.min(_local9 - _local7, _local15 + 5);
_local3._width = _local11;
_local8 = Math.min(_local10, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local9 - _local11) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local9 - _local11) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local11;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local10 - _local6) / 2;
_local4 = (_local10 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local11 = Math.min(_local9, _local15 + 5);
_local3._width = _local11;
_local8 = Math.min(_local10 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local9 - _local11) / 2;
_local2._x = (_local9 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local10 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local10 - _local8) - _local6) / 2);
}
_local2._y = _local4 - _local6;
}
}
var _local13 = borderW + _local16;
_local3._x = _local5 + _local13;
_local3._y = _local4 + _local13;
_local2._x = _local2._x + _local13;
_local2._y = _local2._y + _local13;
}
function set label(lbl) {
setLabel(lbl);
//return(label);
}
function setLabel(label) {
if (label == "") {
labelPath.removeTextField();
refresh();
return(undefined);
}
if (labelPath == undefined) {
var _local2 = createLabel("labelPath", 200, label);
_local2._width = _local2.textWidth + 5;
_local2._height = _local2.textHeight + 5;
if (initializing) {
_local2.visible = false;
}
} else {
delete labelPath.__text;
labelPath.text = label;
refresh();
}
}
function getLabel(Void) {
return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text)));
}
function get label() {
return(getLabel());
}
function _getIcon(Void) {
return(_iconLinkageName);
}
function get icon() {
if (initializing) {
return(initIcon);
}
return(_iconLinkageName);
}
function _setIcon(linkage) {
if (initializing) {
if (linkage == "") {
return(undefined);
}
initIcon = linkage;
} else {
if (linkage == "") {
removeIcons();
return(undefined);
}
super.changeIcon(0, linkage);
super.changeIcon(1, linkage);
super.changeIcon(3, linkage);
super.changeIcon(4, linkage);
super.changeIcon(5, linkage);
_iconLinkageName = linkage;
refresh();
}
}
function set icon(linkage) {
_setIcon(linkage);
//return(icon);
}
function setHitArea(w, h) {
if (hitArea_mc == undefined) {
createEmptyObject("hitArea_mc", 100);
}
var _local2 = hitArea_mc;
_local2.clear();
_local2.beginFill(16711680);
_local2.drawRect(0, 0, w, h);
_local2.endFill();
_local2.setVisible(false);
}
static var symbolName = "Button";
static var symbolOwner = mx.controls.Button;
var className = "Button";
static var version = "2.0.2.127";
var btnOffset = 0;
var _color = "buttonColor";
var __label = "default value";
var __labelPlacement = "right";
var falseUpSkin = "ButtonSkin";
var falseDownSkin = "ButtonSkin";
var falseOverSkin = "ButtonSkin";
var falseDisabledSkin = "ButtonSkin";
var trueUpSkin = "ButtonSkin";
var trueDownSkin = "ButtonSkin";
var trueOverSkin = "ButtonSkin";
var trueDisabledSkin = "ButtonSkin";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters);
var centerContent = true;
var borderW = 1;
}
Symbol 228 MovieClip [__Packages.mx.controls.RadioButton] Frame 0
class mx.controls.RadioButton extends mx.controls.Button
{
var setToggle, __value, selected, releaseFocus, phase, dispatchEvent, _parent, __data, setState, __state, getFocusManager;
function RadioButton () {
super();
}
function init(Void) {
setToggle(__toggle);
__value = this;
super.init();
}
function size(Void) {
super.size();
}
function onRelease() {
if (selected) {
return(undefined);
}
releaseFocus();
phase = "up";
setSelected(true);
dispatchEvent({type:"click"});
_parent[__groupName].dispatchEvent({type:"click"});
}
function setData(val) {
__data = val;
}
function set data(val) {
__data = val;
//return(data);
}
function getData(val) {
return(__data);
}
function get data() {
return(__data);
}
function onUnload() {
if (_parent[__groupName].selectedRadio == this) {
_parent[__groupName].selectedRadio = undefined;
}
_parent[__groupName].radioList[indexNumber] = null;
delete _parent[__groupName].radioList[indexNumber];
}
function setSelected(val) {
var _local2 = _parent[__groupName];
var _local5 = _local2.selectedRadio.__width;
var _local4 = _local2.selectedRadio.__height;
if (val) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
} else if (_local2.selectedRadio == this) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = undefined;
}
setState(val);
}
function deleteGroupObj(groupName) {
delete _parent[groupName];
}
function getGroupName() {
return(__groupName);
}
function get groupName() {
return(__groupName);
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
delete _parent[__groupName].radioList[__data];
addToGroup(groupName);
__groupName = groupName;
}
function set groupName(groupName) {
setGroupName(groupName);
//return(this.groupName);
}
function addToGroup(groupName) {
if ((groupName == "") || (groupName == undefined)) {
return(undefined);
}
var _local2 = _parent[groupName];
if (_local2 == undefined) {
_local2 = (_parent[groupName] = new mx.controls.RadioButtonGroup());
_local2.__groupName = groupName;
}
_local2.addInstance(this);
if (__state) {
_local2.selectedRadio.setState(false);
_local2.selectedRadio = this;
}
}
function get emphasized() {
return(undefined);
}
function keyDown(e) {
switch (e.code) {
case 40 :
setNext();
break;
case 38 :
setPrev();
break;
case 37 :
setPrev();
break;
case 39 :
setNext();
}
}
function setNext() {
var _local2 = _parent[groupName];
if ((_local2.selectedRadio.indexNumber + 1) == _local2.radioList.length) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : -1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 + _local3] != undefined) && (_local2.radioList[_local4 + _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 + _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function setPrev() {
var _local2 = _parent[groupName];
if (_local2.selectedRadio.indexNumber == 0) {
return(undefined);
}
var _local4 = (_local2.selectedRadio ? (_local2.selectedRadio.indexNumber) : 1);
var _local3 = 1;
while (_local3 < _local2.radioList.length) {
if ((_local2.radioList[_local4 - _local3] != undefined) && (_local2.radioList[_local4 - _local3].enabled)) {
var _local5 = getFocusManager();
_local2.radioList[_local4 - _local3].selected = true;
_local5.setFocus(_local2.radioList[_local2.selectedRadio.indexNumber]);
_local2.dispatchEvent({type:"click"});
break;
}
_local3++;
}
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "RadioButton";
static var symbolOwner = mx.controls.RadioButton;
static var version = "2.0.2.127";
var className = "RadioButton";
var btnOffset = 0;
var __toggle = true;
var __label = "Radio Button";
var __labelPlacement = "right";
var ignoreClassStyleDeclaration = {Button:1};
var __groupName = "radioGroup";
var indexNumber = 0;
var offset = false;
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "RadioFalseUp";
var falseDownIcon = "RadioFalseDown";
var falseOverIcon = "RadioFalseOver";
var falseDisabledIcon = "RadioFalseDisabled";
var trueUpIcon = "RadioTrueUp";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "RadioTrueDisabled";
var centerContent = false;
var borderW = 0;
var clipParameters = {labelPlacement:1, data:1, label:1, groupName:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.RadioButton.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
}
Symbol 230 MovieClip [__Packages.mx.controls.RadioButtonGroup] Frame 0
class mx.controls.RadioButtonGroup
{
var radioList, __groupName, selectedRadio;
function RadioButtonGroup () {
init();
mx.events.UIEventDispatcher.initialize(this);
}
function init(Void) {
radioList = new Array();
}
function setGroupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return(undefined);
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
}
function getGroupName() {
return(__groupName);
}
function addInstance(instance) {
instance.indexNumber = indexNumber++;
radioList.push(instance);
}
function getValue() {
if (selectedRadio.data == "") {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function getLabelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function setLabelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
}
function setEnabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
}
function setSize(val, val1) {
for (var _local3 in radioList) {
radioList[_local3].setSize(val, val1);
}
}
function getEnabled() {
for (var _local4 in radioList) {
var _local2 = radioList[_local4].enabled;
var _local3 = t + (_local2 + 0);
}
if (_local3 == radioList.length) {
return(true);
}
if (_local3 == 0) {
return(false);
}
}
function setStyle(name, val) {
for (var _local4 in radioList) {
radioList[_local4].setStyle(name, val);
}
}
function setInstance(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
}
function getInstance() {
return(selectedRadio);
}
function setValue(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio.hitArea_mc._height = selectedRadio.__height;
selectedRadio.hitArea_mc._width = selectedRadio.__width;
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
selectedRadio.hitArea_mc._height = (selectedRadio.hitArea_mc._width = 0);
}
}
function set groupName(groupName) {
if ((groupName == undefined) || (groupName == "")) {
return;
}
var _local6 = __groupName;
_parent[groupName] = this;
for (var _local5 in radioList) {
radioList[_local5].groupName = groupName;
var _local3 = radioList[_local5];
}
_local3.deleteGroupObj(_local6);
//return(this.groupName);
}
function get groupName() {
return(__groupName);
}
function set selectedData(val) {
for (var _local4 in radioList) {
if ((radioList[_local4].__data == val) || (radioList[_local4].label == val)) {
var _local2 = _local4;
break;
}
}
if (_local2 != undefined) {
selectedRadio.setState(false);
selectedRadio = radioList[_local2];
selectedRadio.setState(true);
}
//return(selectedData);
}
function get selectedData() {
if ((selectedRadio.data == "") || (selectedRadio.data == undefined)) {
return(selectedRadio.label);
}
return(selectedRadio.__data);
}
function get selection() {
return(selectedRadio);
}
function set selection(val) {
for (var _local3 in radioList) {
if (radioList[_local3] == val) {
radioList[_local3].selected = true;
}
}
//return(selection);
}
function set labelPlacement(pos) {
for (var _local3 in radioList) {
radioList[_local3].setLabelPlacement(pos);
}
//return(labelPlacement);
}
function get labelPlacement() {
for (var _local3 in radioList) {
var _local2 = radioList[_local3].getLabelPlacement();
}
return(_local2);
}
function set enabled(val) {
for (var _local3 in radioList) {
radioList[_local3].enabled = val;
}
//return(enabled);
}
function get enabled() {
var _local2 = 0;
for (var _local3 in radioList) {
_local2 = _local2 + radioList[_local3].enabled;
}
if (_local2 == 0) {
return(false);
}
if (_local2 == radioList.length) {
return(true);
}
}
static var symbolName = "RadioButtonGroup";
static var symbolOwner = mx.controls.RadioButtonGroup;
static var version = "2.0.2.127";
var className = "RadioButtonGroup";
var indexNumber = 0;
}
Symbol 3395 MovieClip [__Packages.mx.controls.CheckBox] Frame 0
class mx.controls.CheckBox extends mx.controls.Button
{
var _getTextFormat, labelPath, iconName;
function CheckBox () {
super();
}
function onRelease() {
super.onRelease();
}
function init() {
super.init();
}
function size() {
super.size();
}
function get emphasized() {
return(undefined);
}
function calcPreferredHeight() {
var _local5 = _getTextFormat();
var _local3 = _local5.getTextExtent2(labelPath.text).height;
var _local4 = iconName._height;
var _local2 = 0;
if ((__labelPlacement == "left") || (__labelPlacement == "right")) {
_local2 = Math.max(_local3, _local4);
} else {
_local2 = _local3 + _local4;
}
return(Math.max(14, _local2));
}
function set toggle(v) {
//return(toggle);
}
function get toggle() {
}
function set icon(v) {
//return(icon);
}
function get icon() {
}
static var symbolName = "CheckBox";
static var symbolOwner = mx.controls.CheckBox;
static var version = "2.0.2.127";
var className = "CheckBox";
var ignoreClassStyleDeclaration = {Button:1};
var btnOffset = 0;
var __toggle = true;
var __selected = false;
var __labelPlacement = "right";
var __label = "CheckBox";
var falseUpSkin = "";
var falseDownSkin = "";
var falseOverSkin = "";
var falseDisabledSkin = "";
var trueUpSkin = "";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "";
var falseUpIcon = "CheckFalseUp";
var falseDownIcon = "CheckFalseDown";
var falseOverIcon = "CheckFalseOver";
var falseDisabledIcon = "CheckFalseDisabled";
var trueUpIcon = "CheckTrueUp";
var trueDownIcon = "CheckTrueDown";
var trueOverIcon = "CheckTrueOver";
var trueDisabledIcon = "CheckTrueDisabled";
var clipParameters = {label:1, labelPlacement:1, selected:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters);
var centerContent = false;
var borderW = 0;
}
Symbol 143 MovieClip [__Packages.mx.controls.UIScrollBar] Frame 0
class mx.controls.UIScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var textField, wasHorizontal, __width, __height, _parent, synchScroll, setScrollProperties, __set__scrollPosition, initializing, _rotation, _xscale, hScroller, vScroller, onChanged, onScroller, scrollPosition, dispatchEvent;
function UIScrollBar () {
super();
}
function init(Void) {
super.init();
textField.owner = this;
horizontal = (wasHorizontal);
if (horizontal) {
((textField != undefined) ? (super.setSize(textField._width, 16)) : (super.setSize(__width, __height)));
} else {
((textField != undefined) ? (super.setSize(16, textField._height)) : (super.setSize(__width, __height)));
}
if (horizontal) {
var _local3 = __width;
__height = __width;
width = _local3;
__width = 16;
}
textField.onScroller = function () {
this.hPosition = this.hscroll;
this.vPosition = this.scroll - 1;
};
if (_targetInstanceName != undefined) {
setScrollTarget(_targetInstanceName);
_targetInstanceName.addListener(this);
}
}
function get _targetInstanceName() {
return(textField);
}
function get height() {
if (wasHorizontal) {
return(__width);
}
return(__height);
}
function get width() {
if (wasHorizontal) {
return(__height);
}
return(__width);
}
function size(Void) {
super.size();
onTextChanged();
}
function draw() {
super.draw();
}
function set _targetInstanceName(t) {
if (t == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
var _local3 = _parent[t];
textField = _parent[t];
onTextChanged();
//return(_targetInstanceName);
}
function setSize(w, h) {
if (horizontal) {
super.setSize(h, w);
} else {
super.setSize(w, h);
}
}
function onTextChanged(Void) {
if (textField == undefined) {
return(undefined);
}
clearInterval(synchScroll);
if (horizontal) {
var _local2 = textField.hscroll;
setScrollProperties(textField._width, 0, textField.maxhscroll);
__set__scrollPosition(Math.min(_local2, textField.maxhscroll));
} else {
var _local2 = textField.scroll;
var _local3 = textField.bottomScroll - textField.scroll;
setScrollProperties(_local3, 1, textField.maxscroll);
__set__scrollPosition(Math.min(_local2, textField.maxscroll));
}
}
function get horizontal() {
return(wasHorizontal);
}
function set horizontal(v) {
wasHorizontal = v;
if (v and initializing) {
if (_rotation == 90) {
return;
}
_xscale = -100;
_rotation = -90;
}
if (!initializing) {
if (v) {
if (_rotation == 0) {
_rotation = -90;
_xscale = -100;
}
} else if (_rotation == -90) {
_rotation = 0;
_xscale = 100;
}
}
//return(horizontal);
}
function callback(prop, oldval, newval) {
clearInterval(hScroller.synchScroll);
clearInterval(vScroller.synchScroll);
hScroller.synchScroll = setInterval(hScroller, "onTextChanged", 50);
vScroller.synchScroll = setInterval(vScroller, "onTextChanged", 50);
return(newval);
}
function setScrollTarget(tF) {
if (tF == undefined) {
textField.removeListener(this);
delete textField[(horizontal ? "hScroller" : "vScroller")];
if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) {
textField.unwatch("text");
textField.unwatch("htmltext");
}
}
textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
textField = tF;
if (horizontal) {
textField.hScroller = this;
textField.hScroller.lineScrollSize = 5;
} else {
textField.vScroller = this;
textField.vScroller.lineScrollSize = 1;
}
onTextChanged();
onChanged = function (Void) {
this.onTextChanged();
};
onScroller = function (Void) {
if (!this.isScrolling) {
if (!this.horizontal) {
this.scrollPosition = this.textField.scroll;
} else {
this.scrollPosition = this.textField.hscroll;
}
}
};
textField.addListener(this);
textField.watch("text", callback);
textField.watch("htmlText", callback);
}
function scrollHandler(Void) {
if (horizontal) {
var _local2 = textField.background;
textField.hscroll = scrollPosition;
textField.background = _local2;
} else {
textField.scroll = scrollPosition;
}
}
function setEnabled(enable) {
super.setEnabled(enable);
if (enable) {
textField.addListener(this);
} else {
textField.removeListener();
}
}
function dispatchScrollEvent(detail) {
dispatchEvent({type:"scroll"});
}
static var symbolName = "UIScrollBar";
static var symbolOwner = mx.controls.UIScrollBar;
var className = "UIScrollBar";
var clipParameters = {_targetInstanceName:1, horizontal:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.UIScrollBar.prototype.clipParameters);
static var version = "2.0.2.127";
}
Symbol 185 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var scrollIt;
function VScrollBar () {
super();
}
function init(Void) {
super.init();
}
function isScrollBarKey(k) {
if (k == 38) {
scrollIt("Line", -1);
return(true);
}
if (k == 40) {
scrollIt("Line", 1);
return(true);
}
if (k == 33) {
scrollIt("Page", -1);
return(true);
}
if (k == 34) {
scrollIt("Page", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "VScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 190 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 191 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 194 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(Void) {
return(getMaxTabIndex(form) + 1);
}
function get nextTabIndex() {
return(getNextTabIndex());
}
function relocate(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
move(_local2.x - 1, _local2.y - 1);
}
function init(Void) {
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(Void) {
Key.addListener(this);
activated = (_visible = true);
if (lastFocus != undefined) {
bNeedFocus = true;
if (!mx.managers.SystemManager.isMouseDown) {
doLater(this, "restoreFocus");
}
}
}
function deactivate(Void) {
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(Void) {
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(Void) {
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(Void) {
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(Void) {
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(Void) {
mx.managers.SystemManager.idleFrames = 0;
if (defaultPushButtonEnabled) {
if (Key.getCode() == 13) {
if (defaultPushButton != undefined) {
doLater(this, "sendDefaultPushButtonEvent");
}
}
}
}
function sendDefaultPushButtonEvent(Void) {
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(Void) {
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(Void) {
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(Void) {
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.2.127";
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 195 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 196 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows
{
function OverlappedWindows () {
}
static function checkIdle(Void) {
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(Void) {
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(Void) {
mx.managers.SystemManager.idleFrames = 0;
}
static function onMouseUp(Void) {
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 197 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 198 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 200 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(Void) {
borderWidths.default = 3;
super.init();
}
function getBorderMetrics(Void) {
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(Void) {
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.2.127";
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 201 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder
{
var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y;
function ButtonSkin () {
super();
}
function init() {
super.init();
}
function size() {
drawHaloRect(__get__width(), __get__height());
}
function drawHaloRect(w, h) {
var _local6 = getStyle("borderStyle");
var _local4 = getStyle("themeColor");
var _local5 = _parent.emphasized;
clear();
switch (_local6) {
case "falseup" :
if (_local5) {
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
} else {
drawRoundRect(0, 0, w, h, 5, 9542041, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial");
drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial");
drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100);
}
break;
case "falsedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "falserollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "falsedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
break;
case "trueup" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100);
break;
case "truedown" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20);
break;
case "truerollover" :
drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100);
drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50);
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial");
drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40);
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial");
drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40);
drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100);
drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100);
break;
case "truedisabled" :
drawRoundRect(0, 0, w, h, 5, 13159628, 100);
drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100);
drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100);
drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100);
}
}
static function classConstruct() {
mx.core.ext.UIObjectExtensions.Extensions();
_global.skinRegistry.ButtonSkin = true;
return(true);
}
static var symbolName = "ButtonSkin";
static var symbolOwner = mx.skins.halo.ButtonSkin;
var className = "ButtonSkin";
var backgroundColorName = "buttonColor";
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 202 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt;
function HScrollBar () {
super();
}
function getMinWidth(Void) {
return(_minHeight);
}
function getMinHeight(Void) {
return(_minWidth);
}
function init(Void) {
super.init();
_xscale = -100;
_rotation = -90;
}
function get virtualHeight() {
return(__width);
}
function isScrollBarKey(k) {
if (k == 37) {
scrollIt("Line", -1);
return(true);
}
if (k == 39) {
scrollIt("Line", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "HScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 218 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0
class mx.controls.listclasses.SelectableRow extends mx.core.UIComponent
{
var __height, cell, owner, rowIndex, icon_mc, createObject, __width, backGround, highlight, highlightColor, createLabel, createClassObject, listOwner, tabEnabled, item, createEmptyMovieClip, drawRect, isChangedToSelected, bGTween, grandOwner;
function SelectableRow () {
super();
}
function setValue(itmObj, state) {
var _local7 = __height;
var _local2 = cell;
var _local5 = owner;
var _local8 = itemToString(itmObj);
if (_local2.getValue() != _local8) {
_local2.setValue(_local8, itmObj, state);
}
var _local4 = _local5.getPropertiesAt(rowIndex + _local5.__vPosition).icon;
if (_local4 == undefined) {
_local4 = _local5.__iconFunction(itmObj);
if (_local4 == undefined) {
_local4 = itmObj[_local5.__iconField];
if (_local4 == undefined) {
_local4 = _local5.getStyle("defaultIcon");
}
}
}
var _local3 = icon_mc;
if ((_local4 != undefined) && (itmObj != undefined)) {
_local3 = createObject(_local4, "icon_mc", 20);
_local3._x = 2;
_local3._y = (_local7 - _local3._height) / 2;
_local2._x = 4 + _local3._width;
} else {
_local3.removeMovieClip();
_local2._x = 2;
}
var _local9 = ((_local3 == undefined) ? 0 : (_local3._width));
_local2.setSize(__width - _local9, Math.min(_local7, _local2.getPreferredHeight()));
_local2._y = (_local7 - _local2._height) / 2;
}
function size(Void) {
var _local3 = backGround;
var _local2 = cell;
var _local4 = __height;
var _local5 = __width;
var _local6 = ((icon_mc == undefined) ? 0 : (icon_mc._width));
_local2.setSize(_local5 - _local6, Math.min(_local4, _local2.getPreferredHeight()));
_local2._y = (_local4 - _local2._height) / 2;
icon_mc._y = (_local4 - icon_mc._height) / 2;
_local3._x = 0;
_local3._width = _local5;
_local3._height = _local4;
drawRowFill(_local3, normalColor);
drawRowFill(highlight, highlightColor);
}
function setCellRenderer(forceSizing) {
var _local3 = owner.__cellRenderer;
var _local4;
if (cell != undefined) {
_local4 = cell._x;
cell.removeMovieClip();
cell.removeTextField();
}
var _local2;
if (_local3 == undefined) {
_local2 = (cell = createLabel("cll", 0, {styleName:this}));
_local2.styleName = owner;
_local2.selectable = false;
_local2.tabEnabled = false;
_local2.background = false;
_local2.border = false;
} else if (typeof(_local3) == "string") {
_local2 = (cell = createObject(_local3, "cll", 0, {styleName:this}));
} else {
_local2 = (cell = createClassObject(_local3, "cll", 0, {styleName:this}));
}
_local2.owner = this;
_local2.listOwner = owner;
_local2.getCellIndex = getCellIndex;
_local2.getDataLabel = getDataLabel;
if (_local4 != undefined) {
_local2._x = _local4;
}
if (forceSizing) {
size();
}
}
function getCellIndex(Void) {
return({columnIndex:0, itemIndex:owner.rowIndex + listOwner.__vPosition});
}
function getDataLabel() {
return(listOwner.labelField);
}
function init(Void) {
super.init();
tabEnabled = false;
}
function createChildren(Void) {
setCellRenderer(false);
setupBG();
setState(state, false);
}
function drawRow(itmObj, state, transition) {
item = itmObj;
setState(state, transition);
setValue(itmObj, state, transition);
}
function itemToString(itmObj) {
if (itmObj == undefined) {
return(" ");
}
var _local2 = owner.__labelFunction(itmObj);
if (_local2 == undefined) {
_local2 = ((itmObj instanceof XMLNode) ? (itmObj.attributes[owner.__labelField]) : (itmObj[owner.__labelField]));
if (_local2 == undefined) {
_local2 = " ";
if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
}
}
return(_local2);
}
function setupBG(Void) {
var _local2 = (backGround = createEmptyMovieClip("bG_mc", LOWEST_DEPTH));
drawRowFill(_local2, normalColor);
highlight = createEmptyMovieClip("tran_mc", LOWEST_DEPTH + 10);
_local2.owner = this;
_local2.grandOwner = owner;
_local2.onPress = bGOnPress;
_local2.onRelease = bGOnRelease;
_local2.onRollOver = bGOnRollOver;
_local2.onRollOut = bGOnRollOut;
_local2.onDragOver = bGOnDragOver;
_local2.onDragOut = bGOnDragOut;
_local2.useHandCursor = false;
_local2.trackAsMenu = true;
_local2.drawRect = drawRect;
highlight.drawRect = drawRect;
}
function drawRowFill(mc, newClr) {
mc.clear();
mc.beginFill(newClr);
mc.drawRect(1, 0, __width, __height);
mc.endFill();
mc._width = __width;
mc._height = __height;
}
function setState(newState, transition) {
var _local2 = highlight;
var _local8 = backGround;
var _local4 = __height;
var _local3 = owner;
if (!_local3.enabled) {
if ((newState == "selected") || (state == "selected")) {
highlightColor = _local3.getStyle("selectionDisabledColor");
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local2._y = 0;
_local2._height = _local4;
} else {
_local2._visible = false;
normalColor = _local3.getStyle("backgroundDisabledColor");
drawRowFill(_local8, normalColor);
}
cell.__enabled = false;
cell.setColor(_local3.getStyle("disabledColor"));
} else {
cell.__enabled = true;
if (transition && ((newState == state) || ((newState == "highlighted") && (state == "selected")))) {
isChangedToSelected = true;
return(undefined);
}
var _local6 = _local3.getStyle("selectionDuration");
var _local7 = 0;
if (isChangedToSelected && (newState == "selected")) {
transition = false;
}
var _local10 = transition && (_local6 != 0);
if (newState == "normal") {
_local7 = _local3.getStyle("color");
normalColor = getNormalColor();
drawRowFill(_local8, normalColor);
if (_local10) {
_local6 = _local6 / 2;
_local2._height = _local4;
_local2._width = __width;
_local2._y = 0;
bGTween = new mx.effects.Tween(this, _local4 + 2, _local4 * 0.2, _local6, 5);
} else {
_local2._visible = false;
}
delete isChangedToSelected;
} else {
highlightColor = _local3.getStyle(((newState == "highlighted") ? "rollOverColor" : "selectionColor"));
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local7 = _local3.getStyle(((newState == "highlighted") ? "textRollOverColor" : "textSelectedColor"));
if (_local10) {
_local2._height = _local4 * 0.5;
_local2._y = (_local4 - _local2._height) / 2;
bGTween = new mx.effects.Tween(this, _local2._height, _local4 + 2, _local6, 5);
var _local9 = _local3.getStyle("selectionEasing");
if (_local9 != undefined) {
bGTween.easingEquation = _local9;
}
} else {
_local2._y = 0;
_local2._height = _local4;
}
}
cell.setColor(_local7);
}
state = newState;
}
function onTweenUpdate(val) {
highlight._height = val;
highlight._y = (__height - val) / 2;
}
function onTweenEnd(val) {
onTweenUpdate(val);
highlight._visible = state != "normal";
}
function getNormalColor(Void) {
var _local3;
var _local2 = owner;
if (!owner.enabled) {
_local3 = _local2.getStyle("backgroundDisabledColor");
} else {
var _local5 = rowIndex + _local2.__vPosition;
if (rowIndex == undefined) {
_local3 = _local2.getPropertiesOf(item).backgroundColor;
} else {
_local3 = _local2.getPropertiesAt(_local5).backgroundColor;
}
if (_local3 == undefined) {
var _local4 = _local2.getStyle("alternatingRowColors");
if (_local4 == undefined) {
_local3 = _local2.getStyle("backgroundColor");
} else {
_local3 = _local4[_local5 % _local4.length];
}
}
}
return(_local3);
}
function invalidateStyle(propName) {
cell.invalidateStyle(propName);
super.invalidateStyle(propName);
}
function bGOnPress(Void) {
grandOwner.pressFocus();
grandOwner.onRowPress(owner.rowIndex);
}
function bGOnRelease(Void) {
grandOwner.releaseFocus();
grandOwner.onRowRelease(owner.rowIndex);
}
function bGOnRollOver(Void) {
grandOwner.onRowRollOver(owner.rowIndex);
}
function bGOnRollOut(Void) {
grandOwner.onRowRollOut(owner.rowIndex);
}
function bGOnDragOver(Void) {
grandOwner.onRowDragOver(owner.rowIndex);
}
function bGOnDragOut(Void) {
grandOwner.onRowDragOut(owner.rowIndex);
}
static var LOWEST_DEPTH = -16384;
var state = "normal";
var disabledColor = 15263976;
var normalColor = 16777215;
}
Symbol 387 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressQuickStart();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 396 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressLogIn();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 405 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressCreateAccount();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 419 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressTutorial();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 439 MovieClip [window4053DayFreeLabPassMC] Frame 1
function windowClose() {
_parent.pressCloseSpecialOffer();
}
function windowOK() {
windowClose();
}
Symbol 693 MovieClip Frame 1
stop();
Symbol 693 MovieClip Frame 19
stop();
Symbol 894 MovieClip Frame 38
stop();
Symbol 933 MovieClip Frame 6
stop();
Symbol 937 MovieClip Frame 108
eyes_mc.play();
Symbol 941 MovieClip Frame 178
_parent.bypassSAIntro(false);
Symbol 941 MovieClip Frame 196
if (_parent.userInitiatedBypass) {
stop();
_parent.doneSAIntro();
}
Symbol 941 MovieClip Frame 215
stop();
_parent.doneSAIntro();
Symbol 1172 MovieClip Frame 40
_parent._parent._parent.player.doneAttack();
Symbol 1258 MovieClip Frame 12
stop();
Symbol 1302 Button
on (press) {
_parent.qkRqyP("press", this, _parent.chatMC);
}
on (release) {
_parent.lobbyChatKeyPressed(true);
_parent.qkRqyP("release", this, _parent.chatMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.chatMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.chatMC);
}
Symbol 1312 Button
on (press) {
_parent.qkRqyP("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.pressJoinGame();
_parent.qkRqyP("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1332 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent);
}
on (release) {
_parent._parent.pressJoinPrivateOK(_parent.arenaNameMC.chatText0.text.substr(0, _parent.arenaNameMC.chatText0.text.length - 1));
_parent._parent.qkRqyP("release", this, _parent);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent);
}
Symbol 1337 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
if (_parent.radioCycle.selected) {
var cycleMode = 0;
}
if (_parent.radioRandom.selected) {
var cycleMode = 1;
}
if (_parent.radioRepeat.selected) {
var cycleMode = 2;
}
var mapNumData = _parent.mapBox.getItemAt(_parent.mapBox.selectedIndex).data;
_parent._parent.pressCreateGameOK(_parent.arenaNameMC.chatText0.text.substr(0, _parent.arenaNameMC.chatText0.text.length - 1), _parent.radioPrivate.selected, mapNumData, cycleMode);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 1345 MovieClip Frame 1
stop();
Symbol 1345 MovieClip Frame 55
_parent.titleBG._visible = 0;
Instance of Symbol 229 MovieClip [RadioButton] "radioPublic" in Symbol 1345 MovieClip Frame 3988
//component parameters
onClipEvent (construct) {
data = "";
groupName = "publicPrivateGroup";
label = " PUBLIC";
labelPlacement = "right";
selected = true;
}
on (release) {
_parent._parent.buttonFX("press");
}
Instance of Symbol 229 MovieClip [RadioButton] "radioPrivate" in Symbol 1345 MovieClip Frame 3988
//component parameters
onClipEvent (construct) {
data = "";
groupName = "publicPrivateGroup";
label = " PRIVATE";
labelPlacement = "right";
selected = false;
}
on (release) {
_parent._parent.buttonFX("press");
}
Instance of Symbol 229 MovieClip [RadioButton] "radioCycle" in Symbol 1345 MovieClip Frame 3988
//component parameters
onClipEvent (construct) {
data = "";
groupName = "mapListGroup";
label = " CYCLE";
labelPlacement = "right";
selected = false;
}
on (release) {
_parent._parent.buttonFX("press");
}
Instance of Symbol 229 MovieClip [RadioButton] "radioRandom" in Symbol 1345 MovieClip Frame 3988
//component parameters
onClipEvent (construct) {
data = "";
groupName = "mapListGroup";
label = " RANDOM";
labelPlacement = "right";
selected = false;
}
on (release) {
_parent._parent.buttonFX("press");
}
Instance of Symbol 229 MovieClip [RadioButton] "radioRepeat" in Symbol 1345 MovieClip Frame 3988
//component parameters
onClipEvent (construct) {
data = "";
groupName = "mapListGroup";
label = " REPEAT";
labelPlacement = "right";
selected = true;
}
on (release) {
_parent._parent.buttonFX("press");
}
Instance of Symbol 225 MovieClip [ComboBox] "mapBox" in Symbol 1345 MovieClip Frame 3988
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "";
editable = false;
rowCount = 6;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_load(eventObj) {
_parent._parent.populateMapListBox(0);
}
this.addEventListener("load", __f_load);
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent._parent.buttonFX("press");
}
this.addEventListener("change", __f_change);
}
onClipEvent (load) {
function __f_open(eventObj) {
_parent._parent.buttonFX("press");
}
this.addEventListener("open", __f_open);
}
onClipEvent (load) {
function __f_itemRollOver(eventObj) {
_parent._parent.buttonFX("over");
}
this.addEventListener("itemRollOver", __f_itemRollOver);
}
onClipEvent (load) {
function __f_itemRollOut(eventObj) {
_parent._parent.buttonFX("out");
}
this.addEventListener("itemRollOut", __f_itemRollOut);
}
Symbol 1345 MovieClip Frame 4849
_parent.titleBG._visible = 1;
Symbol 1345 MovieClip Frame 4859
_parent.tutorialDone();
Symbol 1369 Button
on (press) {
_parent.qkRqyP("press", this, _parent.chatMC);
}
on (release) {
_parent.lobbyChatKeyPressed();
_parent.qkRqyP("release", this, _parent.chatMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.chatMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.chatMC);
}
Symbol 1370 Button
on (release) {
_parent.chatKeyPressed();
}
Symbol 1371 MovieClip Frame 1
stop();
Symbol 1382 Button
on (press) {
_parent.qkRqyP("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.pressJoinPrivate();
_parent.qkRqyP("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1386 Button
on (press) {
_parent.qkRqyP("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.pressRemoveVIP();
_parent.qkRqyP("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1390 MovieClip Frame 1
stop();
Symbol 1393 Button
on (press) {
_parent.qkRqyP("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.pressAddVIP();
_parent.qkRqyP("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1395 MovieClip Frame 1
stop();
Symbol 1398 Button
on (press) {
_parent.qkRqyP("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.pressCreateGame();
_parent.qkRqyP("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1401 Button
on (press) {
_parent.qkRqyP("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.lobbyLogout();
_parent.qkRqyP("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1430 MovieClip Frame 100
if (random(2) == 0) {
gotoAndPlay ("chill");
}
Symbol 1430 MovieClip Frame 120
if (random(2) == 0) {
gotoAndPlay ("blink");
} else if (random(3) == 0) {
gotoAndPlay ("lips");
}
Symbol 1430 MovieClip Frame 156
if (random(2) == 0) {
gotoAndPlay ("blink");
} else if (random(3) == 0) {
gotoAndPlay ("lips");
}
Symbol 1430 MovieClip Frame 254
if (random(2) == 0) {
gotoAndPlay ("blink");
} else {
gotoAndPlay ("lips");
}
Symbol 1447 MovieClip Frame 1
stop();
Symbol 1501 Button
on (press) {
_parent._parent.qkRqyP("press", this, tabBGMC);
}
on (release) {
_parent._parent.pressTabLobby();
_parent._parent.qkRqyP("release", this, tabBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, tabBGMC);
}
Symbol 1504 MovieClip Frame 1
stop();
Symbol 1541 Button
on (press) {
_parent._parent.qkRqyP("press", this, tabBGMC);
}
on (release) {
_parent._parent.pressTabProfile();
_parent._parent.qkRqyP("release", this, tabBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, tabBGMC);
}
Symbol 1544 MovieClip Frame 1
stop();
Symbol 1550 MovieClip Frame 1
stop();
Symbol 1569 Button
on (press) {
_parent._parent.qkRqyP("press", this, tabBGMC);
}
on (release) {
_parent._parent.pressTabShop();
_parent._parent.qkRqyP("release", this, tabBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, tabBGMC);
}
Symbol 1572 MovieClip Frame 1
stop();
Symbol 1608 Button
on (press) {
_parent._parent.qkRqyP("press", this, tabBGMC);
}
on (release) {
_parent._parent.pressTabEditor();
_parent._parent.qkRqyP("release", this, tabBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, tabBGMC);
}
Symbol 1611 MovieClip Frame 1
stop();
Symbol 1615 MovieClip Frame 1
if (_parent.ticketWaiting) {
tabShopMC.tabShopGlowMC.gotoAndStop("glow");
}
Symbol 1622 MovieClip Frame 1
stop();
Symbol 1701 MovieClip Frame 1
var rnd = Boolean(random(2));
chaingunMC._visible = rnd;
railgunMC._visible = !rnd;
shotgunMC._visible = false;
Symbol 1701 MovieClip Frame 77
gotoAndPlay (2);
Symbol 1708 Button
on (press) {
_parent.qkRqyP("press", this, tabBGMC);
}
on (release) {
_parent.pressTabPets();
_parent.qkRqyP("release", this, tabBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, tabBGMC);
}
Symbol 1715 MovieClip Frame 1
stop();
Symbol 1722 Button
on (press) {
_parent.qkRqyP("press", this, tabBGMC);
}
on (release) {
_parent.pressTabSpinners();
_parent.qkRqyP("release", this, tabBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, tabBGMC);
}
Symbol 1729 MovieClip Frame 1
stop();
Symbol 1742 MovieClip Frame 1
stop();
Symbol 1758 MovieClip Frame 13
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 1762 MovieClip Frame 12
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 1773 MovieClip Frame 14
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 1819 MovieClip Frame 26
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 1868 MovieClip Frame 48
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 1897 MovieClip Frame 36
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 1918 MovieClip Frame 36
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 1922 MovieClip Frame 20
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 1943 MovieClip Frame 24
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 1959 MovieClip Frame 29
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 2048 MovieClip Frame 75
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 2100 MovieClip Frame 21
gotoAndPlay (5);
Symbol 2125 MovieClip Frame 22
flamesMC.gotoAndPlay("cooldown");
Symbol 2125 MovieClip Frame 75
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 2204 MovieClip Frame 2
gotoAndPlay (10);
Symbol 2204 MovieClip Frame 23
Symbol 2204 MovieClip Frame 45
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 2243 MovieClip Frame 38
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 2310 MovieClip Frame 24
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 2334 MovieClip Frame 32
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 2380 MovieClip Frame 30
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 2462 MovieClip Frame 26
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 2504 MovieClip Frame 68
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 2505 MovieClip Frame 1
stop();
Symbol 2506 MovieClip Frame 1
_parent.updateCustomizationTopAnimation();
Symbol 2506 MovieClip Frame 2
_parent.updateCustomizationTopAnimation();
Symbol 2509 Button
on (press) {
_parent.qkRqyP("press", this, null);
}
on (release) {
_parent.pressArrowLeftProfile();
_parent.qkRqyP("customize", this, null);
}
on (rollOver) {
_parent.qkRqyP("over", this, null);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, null);
}
Symbol 2510 MovieClip Frame 1
stop();
Symbol 2510 MovieClip Frame 2
stop();
Symbol 2513 Button
on (press) {
_parent.qkRqyP("press", this, null);
}
on (release) {
_parent.pressArrowRightProfile();
_parent.qkRqyP("customize", this, null);
}
on (rollOver) {
_parent.qkRqyP("over", this, null);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, null);
}
Symbol 2514 MovieClip Frame 1
stop();
Symbol 2517 MovieClip Frame 1
stop();
Symbol 2544 Button
on (press) {
_parent.qkRqyP("press", this, tabBGMC);
}
on (release) {
_parent.pressTabPetsShop();
_parent.qkRqyP("release", this, tabBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, tabBGMC);
}
Symbol 2547 MovieClip Frame 1
stop();
Symbol 2550 Button
on (press) {
_parent.qkRqyP("press", this, tabBGMC);
}
on (release) {
_parent.pressTabSpinnersShop();
_parent.qkRqyP("release", this, tabBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, tabBGMC);
}
Symbol 2553 MovieClip Frame 1
stop();
Symbol 2568 MovieClip Frame 1
gotoAndStop(random(238) + 3);
Symbol 2568 MovieClip Frame 242
gotoAndPlay (3);
Symbol 2571 MovieClip Frame 1
Symbol 2582 MovieClip Frame 2
stop();
Symbol 2593 Button
on (press) {
_parent.qkRqyP("press", this, _parent.petSpinnersBGMC);
}
on (release) {
_parent.pressBuySpinnerPet();
_parent.qkRqyP("release", this, _parent.petSpinnersBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.petSpinnersBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.petSpinnersBGMC);
}
Symbol 2595 Button
on (press) {
_parent.qkRqyP("press", this, _parent.mapSlotBGMC);
}
on (release) {
_parent.pressBuyMapSlot();
_parent.qkRqyP("release", this, _parent.mapSlotBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.mapSlotBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.mapSlotBGMC);
}
Symbol 2606 Button
on (press) {
_parent.qkRqyP("press", this, _parent.petSpinnersSmallBGMC);
}
on (release) {
_parent.pressManageAccount();
_parent.qkRqyP("release", this, _parent.petSpinnersSmallBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.petSpinnersSmallBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.petSpinnersSmallBGMC);
}
Symbol 2610 Button
on (press) {
_parent.qkRqyP("press", this, null);
}
on (release) {
_parent.pressArrowLeftShop();
_parent.qkRqyP("release", this, null);
}
on (rollOver) {
_parent.qkRqyP("over", this, null);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, null);
}
Symbol 2611 MovieClip Frame 1
stop();
Symbol 2611 MovieClip Frame 2
stop();
Symbol 2612 Button
on (press) {
_parent.qkRqyP("press", this, null);
}
on (release) {
_parent.pressArrowRightShop();
_parent.qkRqyP("release", this, null);
}
on (rollOver) {
_parent.qkRqyP("over", this, null);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, null);
}
Symbol 2613 MovieClip Frame 1
stop();
Symbol 2620 MovieClip Frame 1
Symbol 2622 Button
on (press) {
_parent.qkRqyP("press", this, _parent.bgScrollMC);
}
on (release) {
_parent.pressXMapEditor();
_parent.qkRqyP("release", this, _parent.bgScrollMC);
}
on (rollOver) {
_parent.rollOverEditorButton(_parent._modeClose);
_parent.qkRqyP("over", this, _parent.bgScrollMC);
}
on (rollOut, releaseOutside) {
_parent.rollOffEditorButton();
_parent.qkRqyP("out", this, _parent.bgScrollMC);
}
Symbol 2627 Button
on (press) {
_parent.qkRqyP("press", this, _parent.bgScrollMC);
}
on (release) {
_parent.pressHelpMapEditor();
_parent.qkRqyP("release", this, _parent.bgScrollMC);
}
on (rollOver) {
_parent.rollOverEditorButton(_parent._modeHelp);
_parent.qkRqyP("over", this, _parent.bgScrollMC);
}
on (rollOut, releaseOutside) {
_parent.rollOffEditorButton();
_parent.qkRqyP("out", this, _parent.bgScrollMC);
}
Symbol 2643 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressTileSetsEditor();
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeTileSets);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2649 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPaintBrushEditor();
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modePaintBrush);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2655 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressEyeDropperEditor();
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeEyeDropper);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2661 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressRotateEditor();
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeRotate);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2668 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressMirrorXEditor();
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeMirrorX);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2673 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressMirrorYEditor();
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeMirrorY);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2679 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressSaveEditor();
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSaveMap);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2685 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressHandEditor();
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeMoveMap);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2693 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressSpawnsEditor();
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawns);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2699 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressTilesEditor();
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeTiles);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2706 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressDeleteEditor();
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeDelete);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2711 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(0);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnBat);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2714 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(4);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnShotgun);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2717 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(1);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnKatana);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2723 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(3);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnAK47);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2729 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(5);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnSledge);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2735 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(2);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnGlock);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2741 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(10);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnHelmet);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2744 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(9);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnLasersword);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2758 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(8);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnChainsaw);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2761 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(11);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnChaingun);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2767 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(7);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnRailgun);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2773 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(6);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnFlamethrower);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2778 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(12);
_parent._parent.qkRqyP("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnPlayer);
_parent._parent.qkRqyP("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.qkRqyP("out", this, _parent._parent.bgEditorMC);
}
Symbol 2780 MovieClip Frame 1
stop();
Instance of Symbol 2634 MovieClip in Symbol 2780 MovieClip Frame 1
on (press) {
_parent._parent.startToolMove();
}
on (release, releaseOutside) {
_parent._parent.stopToolMove();
if (((lastclick - ((lastclick = getTimer()))) + 500) > 0) {
_parent._parent.doubleClickToolBar(3, false);
}
}
Instance of Symbol 2634 MovieClip in Symbol 2780 MovieClip Frame 2
on (press) {
_parent._parent.startToolMove();
}
on (release, releaseOutside) {
_parent._parent.stopToolMove();
if (((lastclick - ((lastclick = getTimer()))) + 500) > 0) {
_parent._parent.doubleClickToolBar(4, false);
}
}
Instance of Symbol 2634 MovieClip in Symbol 2780 MovieClip Frame 3
on (press) {
_parent._parent.startToolMove();
}
on (release, releaseOutside) {
_parent._parent.stopToolMove();
if (((lastclick - ((lastclick = getTimer()))) + 500) > 0) {
_parent._parent.doubleClickToolBar(1, true);
}
}
Instance of Symbol 2634 MovieClip in Symbol 2780 MovieClip Frame 4
on (press) {
_parent._parent.startToolMove();
}
on (release, releaseOutside) {
_parent._parent.stopToolMove();
if (((lastclick - ((lastclick = getTimer()))) + 500) > 0) {
_parent._parent.doubleClickToolBar(2, true);
}
}
Symbol 2791 MovieClip Frame 7
stop();
Symbol 2878 MovieClip Frame 1
function hideHearts() {
heart0MC._visible = 0;
heart1MC._visible = 0;
heart2MC._visible = 0;
heart3MC._visible = 0;
}
hideHearts();
heart3MC._visible = 1;
Symbol 2895 MovieClip Frame 1
stop();
Symbol 2944 MovieClip Frame 19
stop();
Symbol 2985 MovieClip Frame 58
stop();
Symbol 3000 MovieClip Frame 21
if (_parent.textMC.idText.text == "") {
_parent._parent.player.spawnDone();
} else {
_parent._parent._parent.playerSpawnDone(_parent.textMC.idText.text);
}
gotoAndStop (1);
Symbol 3044 MovieClip Frame 78
stop();
Symbol 3086 MovieClip Frame 53
stop();
Symbol 3122 MovieClip Frame 64
stop();
Symbol 3151 MovieClip Frame 32
stop();
Symbol 3192 MovieClip Frame 21
stop();
Symbol 3215 MovieClip Frame 17
stop();
Symbol 3216 MovieClip Frame 28
stop();
Symbol 3217 MovieClip Frame 1
stop();
Symbol 3225 MovieClip Frame 52
stop();
Symbol 3236 MovieClip [characterMC] Frame 1
function resetDeltaTimes() {
deltaTimes = new Array();
var _local1 = 0;
while (_local1 < 30) {
deltaTimes[_local1] = 100;
_local1++;
}
}
function animateSpawn(str) {
xqQMWOK._visible = 0;
xqlPkD._visible = 0;
deathMC._visible = 0;
soulHeavenMC._visible = 0;
soulHellMC._visible = 0;
xqPXnad._visible = 1;
xqPXnad.gotoAndPlay(2);
}
stop();
animateSpawn("Internal");
var mcnum = 0;
var lastUpdateX = 0;
var lastUpdateY = 0;
var absX = 0;
var absY = 0;
var absRot = 0;
var facing = "20";
var walk = false;
var kkHBPP = false;
var mod = "spawn";
var kkNVHF = false;
var xVel = 0;
var yVel = 0;
var vel = 0;
var kills;
var lqbPCq = 0;
var vzqcYA;
var rank;
var recievedGameState = false;
var frame = 1;
var tqRxvU = true;
var qxBVxE = 0;
var tRotVel = 0;
var hexColor;
var newData = false;
var newXML = null;
var newDataStr = false;
var newSocket = "";
var syncedFrame = false;
var lastUpdate = getTimer();
var deltaTime = 0;
var deltaTimes = new Array();
var remoteAvgPing = 100;
var lastRemoteAvgPing = 100;
resetDeltaTimes();
var spinnerArray;
var petArray;
Symbol 3238 Button
on (press) {
_parent.qkRqyP("press", this, _parent.chatMC);
}
on (release) {
_parent.chatKeyPressed();
_parent.qkRqyP("release", this, _parent.chatMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.chatMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.chatMC);
}
Symbol 3239 MovieClip Frame 1
stop();
Symbol 3242 Button
on (press) {
_parent.qkRqyP("press", this, _parent.chatMC);
}
on (release) {
_parent.optionsBtnPressed();
_parent.qkRqyP("release", this, _parent.chatMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.chatMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.chatMC);
}
Symbol 3273 MovieClip Frame 1
this.ratio = 0;
dragger.onPress = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("press");
this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function () {
this.setColor(80);
_parent.SFXVolume = Math.round((this._x * 100) / line._width);
_parent.setSFXVolume(_parent.SFXVolume);
};
}
};
dragger.onRelease = (dragger.onReleaseOutside = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
_parent.SFXDragVolume.stop();
this.stopDrag();
delete this.onEnterFrame;
this.setColor(40);
}
});
dragger.setColor = function (brt) {
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColorTransform.bb = ((this._x / line._width) * 150) - 100;
myColorTransform.rb = 50 - ((this._x / line._width) * 255);
myColorTransform.gb = ((this._x / line._width) * 50) - 50;
myColor = new Color(line);
myColor.setTransform(myColorTransform);
myColorTransform.bb = myColorTransform.bb + brt;
myColorTransform.rb = myColorTransform.rb + brt;
myColorTransform.gb = myColorTransform.gb + brt;
myColor = new Color(this);
myColor.setTransform(myColorTransform);
myColor = new Color(ratioTextMC);
myColor.setTransform(myColorTransform);
ratioTextMC.ratioText.text = (ratioTextMC.ratioText1.text = (ratioTextMC.ratioText2.text = (ratioTextMC.ratioText3.text = (ratioTextMC.ratioText4.text = _parent.SFXVolume + "%"))));
};
dragger.onRollOver = function () {
if (_parent.quitConfirmationMC._visible == 0) {
this.setColor(40);
}
};
dragger.onRollOut = function () {
this.setColor(0);
};
dragger.setColor(0);
Symbol 3279 MovieClip Frame 1
this.ratio = 0;
dragger.onPress = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("press");
this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function () {
this.setColor(80);
_parent.optionBlood = Math.floor((Math.min(this._x + (line._width / 4), line._width) * 2) / line._width);
};
}
};
dragger.onRelease = (dragger.onReleaseOutside = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
this.stopDrag();
delete this.onEnterFrame;
this._x = _parent.optionBlood * (line._width / 2);
this.setColor(40);
}
});
dragger.setColor = function (brt) {
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColorTransform.bb = 90 - ((this._x / line._width) * 255);
myColorTransform.gb = 50 - ((this._x / line._width) * 100);
myColorTransform.rb = ((this._x / line._width) * 255) - 100;
myColor = new Color(line);
myColor.setTransform(myColorTransform);
myColorTransform.bb = myColorTransform.bb + brt;
myColorTransform.rb = myColorTransform.rb + brt;
myColorTransform.gb = myColorTransform.gb + brt;
myColor = new Color(this);
myColor.setTransform(myColorTransform);
myColor = new Color(ratioTextMC);
myColor.setTransform(myColorTransform);
ratioTextMC.ratioText.text = (ratioTextMC.ratioText1.text = (ratioTextMC.ratioText2.text = (ratioTextMC.ratioText3.text = (ratioTextMC.ratioText4.text = _parent.optText[_parent.optionBlood + 8]))));
};
dragger.onRollOver = function () {
if (_parent.quitConfirmationMC._visible == 0) {
this.setColor(40);
}
};
dragger.onRollOut = function () {
this.setColor(0);
};
dragger.setColor(0);
Symbol 3285 MovieClip Frame 1
this.ratio = 0;
dragger.onPress = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("press");
this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function () {
this.setColor(80);
_parent.optionQuality = Math.floor((Math.min(this._x + 17, line._width) * 3) / line._width);
if (_parent.optionQuality == 0) {
_parent.optionParticles = false;
_parent.particleSlider.dragger._x = _parent.optionParticles * _parent.particleSlider.line._width;
_parent.particleSlider.dragger.setColor(0);
_parent.optionBlood = 0;
_parent.bloodSlider.dragger._x = _parent.optionBlood * (_parent.bloodSlider.line._width / 2);
_parent.bloodSlider.dragger.setColor(0);
} else if (Number(_parent.optionQuality) >= 2) {
_parent.optionParticles = true;
_parent.particleSlider.dragger._x = _parent.optionParticles * _parent.particleSlider.line._width;
_parent.particleSlider.dragger.setColor(0);
if (Number(_parent.optionBlood) < 1) {
_parent.optionBlood = 1;
_parent.bloodSlider.dragger._x = _parent.optionBlood * (_parent.bloodSlider.line._width / 2);
_parent.bloodSlider.dragger.setColor(0);
}
}
};
}
};
dragger.onRelease = (dragger.onReleaseOutside = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
this.stopDrag();
delete this.onEnterFrame;
this._x = _parent.optionQuality * 34;
this.setColor(40);
}
});
dragger.setColor = function (brt) {
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColorTransform.bb = ((this._x / line._width) * 150) - 100;
myColorTransform.rb = 50 - ((this._x / line._width) * 255);
myColorTransform.gb = ((this._x / line._width) * 50) - 50;
myColor = new Color(line);
myColor.setTransform(myColorTransform);
myColorTransform.bb = myColorTransform.bb + brt;
myColorTransform.rb = myColorTransform.rb + brt;
myColorTransform.gb = myColorTransform.gb + brt;
myColor = new Color(this);
myColor.setTransform(myColorTransform);
myColor = new Color(ratioTextMC);
myColor.setTransform(myColorTransform);
ratioTextMC.ratioText.text = (ratioTextMC.ratioText1.text = (ratioTextMC.ratioText2.text = (ratioTextMC.ratioText3.text = (ratioTextMC.ratioText4.text = _parent.optText[_parent.optionQuality + 4]))));
};
dragger.onRollOver = function () {
if (_parent.quitConfirmationMC._visible == 0) {
this.setColor(40);
}
};
dragger.onRollOut = function () {
this.setColor(0);
};
dragger.setColor(0);
Symbol 3291 MovieClip Frame 1
this.ratio = 0;
dragger.onPress = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("press");
this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function () {
this.setColor(80);
_parent.optionLanguageFilter = Math.floor((Math.min(this._x + (line._width / 2), line._width) * 1) / line._width);
};
}
};
dragger.onRelease = (dragger.onReleaseOutside = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
this.stopDrag();
delete this.onEnterFrame;
this._x = _parent.optionLanguageFilter * line._width;
this.setColor(40);
}
});
dragger.setColor = function (brt) {
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColorTransform.bb = ((this._x / line._width) * 150) - 100;
myColorTransform.rb = 50 - ((this._x / line._width) * 255);
myColorTransform.gb = ((this._x / line._width) * 50) - 50;
myColor = new Color(line);
myColor.setTransform(myColorTransform);
myColorTransform.bb = myColorTransform.bb + brt;
myColorTransform.rb = myColorTransform.rb + brt;
myColorTransform.gb = myColorTransform.gb + brt;
myColor = new Color(this);
myColor.setTransform(myColorTransform);
myColor = new Color(ratioTextMC);
myColor.setTransform(myColorTransform);
ratioTextMC.ratioText.text = (ratioTextMC.ratioText1.text = (ratioTextMC.ratioText2.text = (ratioTextMC.ratioText3.text = (ratioTextMC.ratioText4.text = _parent.optText[_parent.optionLanguageFilter + 11]))));
};
dragger.onRollOver = function () {
if (_parent.quitConfirmationMC._visible == 0) {
this.setColor(40);
}
};
dragger.onRollOut = function () {
this.setColor(0);
};
dragger.setColor(0);
Symbol 3302 Button
on (press) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("press", this, _parent.optionsWindowMC0);
}
}
on (release) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("release", this, _parent.optionsWindowMC0);
}
_parent.optionsResumeGame();
}
on (rollOver) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("over", this, _parent.optionsWindowMC0);
}
}
on (rollOut, releaseOutside) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("out", this, _parent.optionsWindowMC0);
}
}
Symbol 3309 Button
on (press) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("press", this, _parent.optionsWindowMC0);
}
}
on (release) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("release", this, _parent.optionsWindowMC0);
}
_parent.optionsQuitConfirm("quit");
}
on (rollOver) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("over", this, _parent.optionsWindowMC0);
}
}
on (rollOut, releaseOutside) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("out", this, _parent.optionsWindowMC0);
}
}
Symbol 3311 Button
on (press) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("press", this, _parent.optionsWindowMC0);
}
}
on (release) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("release", this, _parent.optionsWindowMC0);
}
_parent.optionsQuitConfirm("logout");
}
on (rollOver) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("over", this, _parent.optionsWindowMC0);
}
}
on (rollOut, releaseOutside) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.qkRqyP("out", this, _parent.optionsWindowMC0);
}
}
Symbol 3321 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.optionsQuitConfirmed();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 3325 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.optionsQuitCancelled();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 3328 MovieClip Frame 1
this.ratio = 0;
dragger.onPress = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("press");
this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function () {
this.setColor(80);
_parent.optionParticles = Math.floor((Math.min(this._x + (line._width / 2), line._width) * 1) / line._width);
};
}
};
dragger.onRelease = (dragger.onReleaseOutside = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
this.stopDrag();
delete this.onEnterFrame;
this._x = _parent.optionParticles * line._width;
this.setColor(40);
}
});
dragger.setColor = function (brt) {
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColorTransform.bb = ((this._x / line._width) * 150) - 100;
myColorTransform.rb = 50 - ((this._x / line._width) * 255);
myColorTransform.gb = ((this._x / line._width) * 50) - 50;
myColor = new Color(line);
myColor.setTransform(myColorTransform);
myColorTransform.bb = myColorTransform.bb + brt;
myColorTransform.rb = myColorTransform.rb + brt;
myColorTransform.gb = myColorTransform.gb + brt;
myColor = new Color(this);
myColor.setTransform(myColorTransform);
myColor = new Color(ratioTextMC);
myColor.setTransform(myColorTransform);
ratioTextMC.ratioText.text = (ratioTextMC.ratioText1.text = (ratioTextMC.ratioText2.text = (ratioTextMC.ratioText3.text = (ratioTextMC.ratioText4.text = _parent.optText[_parent.optionParticles + 11]))));
};
dragger.onRollOver = function () {
if (_parent.quitConfirmationMC._visible == 0) {
this.setColor(40);
}
};
dragger.onRollOut = function () {
this.setColor(0);
};
dragger.setColor(0);
Symbol 3339 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowClose();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 3346 Button
on (release) {
_parent.windowOK();
_parent._parent.buttonFX("press");
}
on (rollOver) {
_parent._parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent._parent.buttonFX("out", this, 75, 25);
}
Symbol 3348 MovieClip Frame 1
function windowClose() {
_parent.reportUserPressClose();
}
function windowOK() {
_parent.reportUserPressOK();
}
Symbol 3363 MovieClip Frame 1
stop();
Symbol 3363 MovieClip Frame 4
this.attachMovie("postMatchBG4MC", "postMatchBG4MC", 10);
Symbol 3367 MovieClip Frame 1
function windowClose() {
if (_parent.gotoFrame == "createGameFail") {
_parent.returnToTitle();
} else if (_parent.gotoFrame == "noConnection") {
_parent.startPing();
_parent.gotoAndStop("titleFrame");
} else if (_parent.gotoFrame == "bootToLobby") {
_parent.socket[_parent.serverNum].close();
_parent.connectAction = "lobby";
_parent.connectToServer(_parent.serverNum, _parent.portNum);
btnOKMC._visible = (btnXMC._visible = 0);
msgText0.text = (msgText1.text = (_parent.lobbyText[33] + _parent.serverName[_parent.serverNum]) + _parent.lobbyText[31]);
} else {
_parent.gotoAndStop(_parent.gotoFrame);
}
}
function windowOK() {
windowClose();
}
if (_parent.gotoFrame == "deadEnd") {
btnOKMC._visible = (btnXMC._visible = 0);
}
Symbol 3379 MovieClip Frame 1
badgeSquareMC._visible = 0;
Symbol 3383 MovieClip [rankGainMC] Frame 209
stop();
Symbol 3396 MovieClip [CheckBox] Frame 1
#initclip 81
Object.registerClass("CheckBox", mx.controls.CheckBox);
#endinitclip
stop();
Instance of Symbol 172 MovieClip [Button] in Symbol 3396 MovieClip [CheckBox] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 3405 Button
on (release) {
loginPressAdvanced();
}
Symbol 3408 MovieClip [window470LogInMC] Frame 1
function windowClose() {
_parent.pressLogInClose();
}
function windowOK() {
_parent.pressLogInOK();
}
function initializeLogInServerBox() {
usernameText.tabEnabled = (pass0Text.tabEnabled = (checkBoxRemember.tabEnabled = true));
usernameText.tabIndex = 1;
pass0Text.tabIndex = 2;
checkBoxRemember.tabIndex = 3;
serverBox._visible = false;
}
function loginPressAdvanced() {
BTNadvancedMC._visible = false;
serverBox._visible = true;
h4Text0.text = (h4Text1.text = _parent.logInText[12]);
_parent.selectRandomServerAndPort();
serverBox.tabIndex = 4;
serverBox.tabEnabled = true;
var _local4 = tDummy.getTextFormat(0, 1).font;
_global.styles.TextArea.setStyle("fontFamily", "FFF Astro");
serverBox.fontSize = 8;
serverBox.color = "0xA1CAFF";
serverBox.setStyle("embedFonts", true);
serverBox.setStyle("fontFamily", _local4);
serverBox.backgroundColor = "0x4E657B";
serverBox.openDuration = 150;
var _local3 = 0;
while (_local3 < _parent.serverName.length) {
if (_parent.serverType[_local3] != "PREMIUM") {
serverBox.addItem(_parent.serverName[_local3]);
}
_local3++;
}
serverBox.selectedIndex = _parent.serverNum;
}
initializeLogInServerBox();
Instance of Symbol 225 MovieClip [ComboBox] "serverBox" in Symbol 3408 MovieClip [window470LogInMC] Frame 1
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "";
editable = false;
rowCount = 7;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent._parent.buttonFX("press");
_parent._parent.serverNum = this.selectedIndex;
}
this.addEventListener("change", __f_change);
}
onClipEvent (load) {
function __f_open(eventObj) {
_parent._parent.buttonFX("press");
}
this.addEventListener("open", __f_open);
}
onClipEvent (load) {
function __f_itemRollOver(eventObj) {
_parent._parent.buttonFX("over");
}
this.addEventListener("itemRollOver", __f_itemRollOver);
}
onClipEvent (load) {
function __f_itemRollOut(eventObj) {
_parent._parent.buttonFX("out");
}
this.addEventListener("itemRollOut", __f_itemRollOut);
}
Instance of Symbol 3396 MovieClip [CheckBox] "checkBoxRemember" in Symbol 3408 MovieClip [window470LogInMC] Frame 1
//component parameters
onClipEvent (construct) {
label = " Remember Username?";
labelPlacement = "right";
selected = false;
}
on (release) {
_parent._parent.buttonFX("press");
this.invalidate();
}
onClipEvent (load) {
function __f_draw(eventObj) {
_parent._parent.changeMapListOptions();
}
this.addEventListener("draw", __f_draw);
}
onClipEvent (load) {
function __f_load(eventObj) {
this.selected = _parent._parent.rememberUserName;
}
this.addEventListener("load", __f_load);
}
Instance of Symbol 234 MovieClip in Symbol 3408 MovieClip [window470LogInMC] Frame 1
onClipEvent (enterFrame) {
_parent.updateCreateAccountName();
}
Symbol 3411 MovieClip [window304LogInMessageMC] Frame 1
function windowClose() {
_parent.closeLogInMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 3414 MovieClip [window304ChangeServerMessageMC] Frame 1
function windowClose() {
_parent.pressChangeServerClose();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 3415 MovieClip [resetFX] Frame 5
myColor2 = new Color(_parent._parent);
myColor3 = new Color(_parent);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor2.setTransform(myColorTransform);
myColor3.setTransform(myColorTransform);
_parent.filters = [];
_parent._parent.filters = [];
this.removeMovieClip();
Symbol 3417 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3418 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3420 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3422 MovieClip [ScrollThumbThemeColorlg] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3424 MovieClip [ScrollThumbMiddleColorTheme] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3426 MovieClip [ScrollThumbColorTheme] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3428 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3430 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3432 MovieClip [RadioThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3434 MovieClip [RadioThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3436 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3532 MovieClip [summaryCharLose1MC] Frame 120
stop();
Symbol 3727 MovieClip [summaryCharLose0MC] Frame 59
if (random(6) == 0) {
stop();
}
Symbol 3727 MovieClip [summaryCharLose0MC] Frame 65
if (random(6) == 0) {
stop();
}
Symbol 3727 MovieClip [summaryCharLose0MC] Frame 122
if (random(3) == 0) {
stop();
}
Symbol 3727 MovieClip [summaryCharLose0MC] Frame 189
if (random(3) == 0) {
stop();
}
Symbol 3727 MovieClip [summaryCharLose0MC] Frame 239
stop();
Symbol 3876 MovieClip [summaryCharWin0MC] Frame 183
stop();
Symbol 3883 MovieClip [BGScrollParticle] Frame 1
function createParticle() {
scale = (random(15) / 10) + 2;
this.yVel = scale / 15;
this._x = 600;
this._y = random(350) + 50;
this._xscale = (this._yscale = scale * 100);
this._rotation = 0;
this.swapDepths(int((scale * 1000) + random(100)));
}
var scale;
var xVel = 0;
textBox.text = "Stick arena";
createParticle();
_x = random(550);
stop();
Instance of Symbol 356 MovieClip in Symbol 3883 MovieClip [BGScrollParticle] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x - (_parent.yVel * 5);
_parent._y = _parent._y + _parent.yVel;
_parent._rotation = _parent._rotation - (_parent.yVel / 5);
if (((_parent._x < (-30 * _parent.scale)) || (_parent._y < (-30 * _parent.scale))) || (_parent._y > (400 + (30 * _parent.scale)))) {
_parent.createParticle();
}
}
Symbol 4103 MovieClip [tile2K1] Frame 1
gotoAndPlay(random(20) + 1);
Symbol 4103 MovieClip [tile2K1] Frame 20
gotoAndPlay(random(2) + 2);
Symbol 4110 MovieClip [tile2K0] Frame 1
gotoAndPlay(random(20) + 1);
Symbol 4110 MovieClip [tile2K0] Frame 20
gotoAndPlay(random(2) + 2);
Symbol 4320 MovieClip [sledgeParticleMC] Frame 75
this.removeMovieClip();
Symbol 4321 MovieClip [shotgunParticleMC] Frame 22
this.removeMovieClip();
Symbol 4322 MovieClip [glockParticleMC] Frame 21
this.removeMovieClip();
Symbol 4325 MovieClip [ak47ParticleMC] Frame 15
this.removeMovieClip();
Symbol 4338 MovieClip [bloodSword0MC] Frame 12
this.removeMovieClip();
Symbol 4351 MovieClip [bloodShotgun2MC] Frame 12
this.removeMovieClip();
Symbol 4364 MovieClip [bloodShotgun1MC] Frame 12
this.removeMovieClip();
Symbol 4365 MovieClip [bloodShotgun0MC] Frame 12
this.removeMovieClip();
Symbol 4377 MovieClip [bloodKnife0MC] Frame 12
this.removeMovieClip();
Symbol 4378 MovieClip [bloodBullet2MC] Frame 12
this.removeMovieClip();
Symbol 4390 MovieClip [bloodBullet1MC] Frame 12
this.removeMovieClip();
Symbol 4401 MovieClip [bloodBullet0MC] Frame 12
this.removeMovieClip();
Symbol 4414 MovieClip [bloodBat1MC] Frame 12
this.removeMovieClip();
Symbol 4426 MovieClip [bloodBat0MC] Frame 12
this.removeMovieClip();
Symbol 4464 MovieClip [tile1V0] Frame 1
gotoAndPlay(random(9) + 1);
Symbol 4464 MovieClip [tile1V0] Frame 77
gotoAndPlay(random(30) + 80);
Symbol 4999 MovieClip [fadeInFX] Frame 1
myColor = new Color(_parent);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"-255", ga:"100", gb:"-255", ba:"100", bb:"-255", aa:"100", ab:"0"};
myColor.setTransform(myColorTransform);
rgb = -255;
Symbol 4999 MovieClip [fadeInFX] Frame 2
rgb = rgb + 10;
myColorTransform.rb = rgb;
myColorTransform.gb = rgb;
myColorTransform.bb = rgb;
myColor.setTransform(myColorTransform);
if (rgb >= 0) {
myColorTransform.rb = 0;
myColorTransform.gb = 0;
myColorTransform.bb = 0;
myColor.setTransform(myColorTransform);
this.unloadMovie();
}
Symbol 4999 MovieClip [fadeInFX] Frame 3
gotoAndPlay (2);
Symbol 5000 MovieClip [remoteDeathFX] Frame 1
myColor2 = new Color(_parent);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:"255", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
red = 100;
Symbol 5000 MovieClip [remoteDeathFX] Frame 2
red = Math.max(red - 5, 0);
myColorTransform2.rb = red * 2.5;
myColor2.setTransform(myColorTransform2);
if (red <= 0) {
this.removeMovieClip();
}
Symbol 5000 MovieClip [remoteDeathFX] Frame 3
gotoAndPlay (2);
Symbol 5001 MovieClip [deathFX] Frame 1
myColor = new Color(_parent._parent.xqzCWxv);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"255", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
red = 100;
myColor2 = new Color(_parent);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:"255", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
Symbol 5001 MovieClip [deathFX] Frame 2
red = Math.max(red - 5, 0);
myColorTransform.rb = red + 150;
myColorTransform.gb = red;
myColorTransform.bb = red;
myColor.setTransform(myColorTransform);
myColorTransform2.rb = red * 2.5;
myColorTransform2.gb = 50;
myColorTransform2.bb = 25;
myColor2.setTransform(myColorTransform2);
if (red <= 0) {
this.removeMovieClip();
}
Symbol 5001 MovieClip [deathFX] Frame 3
gotoAndPlay (2);
Symbol 5002 MovieClip [remoteSpawnFX] Frame 1
myColor2 = new Color(_parent);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor2.setTransform(myColorTransform2);
this.removeMovieClip();
Symbol 5003 MovieClip [spawnFX] Frame 1
myColor = new Color(_parent._parent.xqzCWxv);
myColor2 = new Color(_parent._parent);
myColor3 = new Color(_parent);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myColorTransform);
myColor2.setTransform(myColorTransform);
myColor3.setTransform(myColorTransform);
this.removeMovieClip();
Symbol 5004 MovieClip [localDamageFX] Frame 1
myColor2 = new Color(_parent);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:"255", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
Symbol 5004 MovieClip [localDamageFX] Frame 2
red = Math.max(red - fade, 0);
myColorTransform2.rb = red * 2;
myColorTransform2.gb = red / 2;
myColorTransform2.bb = red / 2;
myColor2.setTransform(myColorTransform2);
if (red <= 0) {
this.removeMovieClip();
}
Symbol 5004 MovieClip [localDamageFX] Frame 3
gotoAndPlay (2);
Symbol 5058 Button
on (press) {
_parent._parent._parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent._parent._parent.qkRqyP("release", this, _parent.windowBGMC);
_parent._parent._parent._parent.pressThumb(1);
}
on (rollOver) {
_parent._parent._parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent._parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 5063 Button
on (press) {
_parent._parent._parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent._parent._parent.qkRqyP("release", this, _parent.windowBGMC);
_parent._parent._parent._parent.pressThumb(-1);
}
on (rollOver) {
_parent._parent._parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent._parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 5066 MovieClip Frame 1
stop();
Symbol 5066 MovieClip Frame 36
stop();
Symbol 5115 Button
on (release) {
_parent._parent.pressVoteKick(_parent.idArray[int(textBoxMC.textBox.text)]);
}
Symbol 5119 MovieClip Frame 1
textBoxMC._visible = 0;
Symbol 5123 Button
on (release) {
_parent._parent.pressReportUser(_parent.idArray[int(textBoxMC.textBox.text)]);
}
Symbol 5124 MovieClip Frame 1
textBoxMC._visible = 0;
Symbol 5137 MovieClip [warningMsgMC] Frame 1
var count = 0;
textBoxMC._visible = 0;
Instance of Symbol 5136 MovieClip [emptyMC] in Symbol 5137 MovieClip [warningMsgMC] Frame 1
onClipEvent (enterFrame) {
_parent.count++;
if (_parent.count > ((int(_parent.textBoxMC.textBox.text) / _parent._parent.frameDeltaTime) * 4)) {
_parent.removeMovieClip();
}
}
Symbol 5140 MovieClip [window405MC] Frame 1
function windowClose() {
_parent.closeWindow();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 5143 MovieClip [window304JoinPrivateMessageMC] Frame 1
function windowClose() {
_parent.closeJoinPrivateMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 5146 MovieClip [window304CreateGameMessageMC] Frame 1
function windowClose() {
_parent.closeCreateGameMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 5149 MovieClip [window304CreateAccountMessageMC] Frame 1
function windowClose() {
_parent.closeCreateAccountMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 5152 MovieClip [window304MC] Frame 1
function windowClose() {
_parent.closeWindow();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 5164 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressCreateAccountOK(_parent.usernameText.text, _parent.pass0Text.text, _parent.pass1Text.text, _parent.emailText.text, _parent.cR, _parent.cG, _parent.cB);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 5177 MovieClip Frame 1
stop();
Symbol 5178 MovieClip [window470CreateAccountMC] Frame 1
function windowClose() {
_parent.pressCreateAccountClose();
}
function updateCreateAccountName() {
xqOfED.nameMC.nameText.text = (xqOfED.nameMC.nameText2.text = (xqOfED.nameMC.nameText3.text = (xqOfED.nameMC.nameText4.text = usernameText.text)));
xqOfED.nameMC.nameTextC.htmlText = _parent.colorHtml(usernameText.text, _parent.RGBToHex(cR, cG, cB, 100));
xqOfED.xqQMWOK._rotation = xqOfED.xqQMWOK._rotation + 2;
xqOfED.xqlPkD._rotation = xqOfED.xqlPkD._rotation + 2;
animateCount++;
if (animateCount > 60) {
animateCount = 0;
frameNum++;
xqOfED.xqQMWOK.gotoAndStop(frameArray[frameNum]);
if (frameNum >= frameArray.length) {
frameNum = -1;
}
}
}
function clickColorPicker(init) {
if (!init) {
crossHairMC._x = _xmouse - 1;
crossHairMC._y = _ymouse;
}
if (_parent.FPV8) {
var playerColor = new Color(xqOfED.colorMC);
cR = image_bitmap.getPixel(crossHairMC._x - colorPickerMC._x, crossHairMC._y - colorPickerMC._y) >> 16;
var temp = (image_bitmap.getPixel(crossHairMC._x - colorPickerMC._x, crossHairMC._y - colorPickerMC._y) ^ (cR << 16));
cG = temp >> 8;
cB = temp ^ (cG << 8);
var ct = new Object();
ct = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"75", ab:"0"};
ct.rb = cR;
ct.gb = cG;
ct.bb = cB;
playerColor.setTransform(ct);
} else {
var replyDataSettings = new LoadVars();
var sendDataSettings = new LoadVars();
sendDataSettings.sendAndLoad("colorpicker.dat", replyDataSettings, "POST");
settingsLoading = true;
replyDataSettings.onLoad = function (success) {
var colorStr = eval ((("this.x" + int(crossHairMC._x - colorPickerMC._x)) + "y") + int(crossHairMC._y - colorPickerMC._y));
cR = Number(_parent.trim(colorStr.substr(0, 3)));
cG = Number(_parent.trim(colorStr.substr(3, 3)));
cB = Number(_parent.trim(colorStr.substr(6, 3)));
var playerColor = new Color(xqOfED.colorMC);
var ct = new Object();
ct = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"75", ab:"0"};
ct.rb = cR;
ct.gb = cG;
ct.bb = cB;
playerColor.setTransform(ct);
btnOKMC._visible = 1;
loadingMC._visible = 0;
};
}
}
var animateCount = 0;
var frameArray = new Array("fistIdle", "sledgeRunIdle", "glockRunIdle", "ak47RunIdle", "shotgunRunIdle");
var frameNum = 0;
var cR = 150;
var cG = 150;
var cB = 150;
btnOKMC._visible = _parent.FPV8;
loadingMC._visible = !_parent.FPV8;
usernameText.tabEnabled = (pass0Text.tabEnabled = pass1Text.tabEnabled);
usernameText.tabIndex = 1;
pass0Text.tabIndex = 2;
pass1Text.tabIndex = 3;
xqOfED.colorMC.attachMovie("indicatorMC00", "indicatorMC", 1);
var image_bitmap = (new flash.display.BitmapData(colorPickerMC._width, colorPickerMC._height));
image_bitmap.draw(colorPickerMC);
clickColorPicker(true);
Instance of Symbol 5176 MovieClip "colorPickerMC" in Symbol 5178 MovieClip [window470CreateAccountMC] Frame 1
on (press) {
_parent._parent.qkRqyP("press", null, _parent.crossHairMC);
_parent.clickColorPicker();
}
Instance of Symbol 234 MovieClip in Symbol 5178 MovieClip [window470CreateAccountMC] Frame 1
onClipEvent (enterFrame) {
_parent.updateCreateAccountName();
}
Symbol 5183 MovieClip [window470JoinPrivateMC] Frame 1
function windowClose() {
_parent.pressJoinPrivateClose();
}
Symbol 5197 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressClearVIPs();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 5199 MovieClip [window470CreateGameMC] Frame 1
function windowClose() {
_parent.pressCreateGameClose();
}
this.onEnterFrame = function () {
_parent.initializeCreateGame();
_parent.initializeMapList();
delete this.onEnterFrame;
};
Instance of Symbol 229 MovieClip [RadioButton] "radioPublic" in Symbol 5199 MovieClip [window470CreateGameMC] Frame 1
//component parameters
onClipEvent (construct) {
data = "";
groupName = "publicPrivateGroup";
label = " PUBLIC";
labelPlacement = "right";
selected = true;
}
on (release) {
_parent._parent.buttonFX("press");
this.invalidate();
}
onClipEvent (load) {
function __f_draw(eventObj) {
}
this.addEventListener("draw", __f_draw);
}
Instance of Symbol 229 MovieClip [RadioButton] "radioPrivate" in Symbol 5199 MovieClip [window470CreateGameMC] Frame 1
//component parameters
onClipEvent (construct) {
data = "";
groupName = "publicPrivateGroup";
label = " PRIVATE";
labelPlacement = "right";
selected = false;
}
on (release) {
_parent._parent.buttonFX("press");
this.invalidate();
}
onClipEvent (load) {
function __f_draw(eventObj) {
}
this.addEventListener("draw", __f_draw);
}
Instance of Symbol 229 MovieClip [RadioButton] "radioCycle" in Symbol 5199 MovieClip [window470CreateGameMC] Frame 1
//component parameters
onClipEvent (construct) {
data = "";
groupName = "mapListGroup";
label = " CYCLE";
labelPlacement = "right";
selected = false;
}
on (release) {
_parent._parent.buttonFX("press");
}
Instance of Symbol 229 MovieClip [RadioButton] "radioRandom" in Symbol 5199 MovieClip [window470CreateGameMC] Frame 1
//component parameters
onClipEvent (construct) {
data = "";
groupName = "mapListGroup";
label = " RANDOM";
labelPlacement = "right";
selected = false;
}
on (release) {
_parent._parent.buttonFX("press");
}
Instance of Symbol 229 MovieClip [RadioButton] "radioRepeat" in Symbol 5199 MovieClip [window470CreateGameMC] Frame 1
//component parameters
onClipEvent (construct) {
data = "";
groupName = "mapListGroup";
label = " REPEAT";
labelPlacement = "right";
selected = true;
}
on (release) {
_parent._parent.buttonFX("press");
}
Instance of Symbol 225 MovieClip [ComboBox] "mapBox" in Symbol 5199 MovieClip [window470CreateGameMC] Frame 1
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "";
editable = false;
rowCount = 10;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_load(eventObj) {
}
this.addEventListener("load", __f_load);
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent._parent.buttonFX("press");
}
this.addEventListener("change", __f_change);
}
onClipEvent (load) {
function __f_open(eventObj) {
_parent._parent.createGameMapRandomize = false;
_parent._parent.buttonFX("press");
}
this.addEventListener("open", __f_open);
}
onClipEvent (load) {
function __f_itemRollOver(eventObj) {
_parent._parent.buttonFX("over");
}
this.addEventListener("itemRollOver", __f_itemRollOver);
}
onClipEvent (load) {
function __f_itemRollOut(eventObj) {
_parent._parent.buttonFX("out");
}
this.addEventListener("itemRollOut", __f_itemRollOut);
}
Instance of Symbol 3396 MovieClip [CheckBox] "checkBoxBallistick" in Symbol 5199 MovieClip [window470CreateGameMC] Frame 1
//component parameters
onClipEvent (construct) {
label = " BALLISTICK MAPS";
labelPlacement = "right";
selected = false;
}
on (release) {
_parent._parent.buttonFX("press");
this.invalidate();
}
onClipEvent (load) {
function __f_draw(eventObj) {
_parent._parent.changeMapListOptions("ballistick");
}
this.addEventListener("draw", __f_draw);
}
Instance of Symbol 3396 MovieClip [CheckBox] "checkBoxClassic" in Symbol 5199 MovieClip [window470CreateGameMC] Frame 1
//component parameters
onClipEvent (construct) {
label = " CLASSIC MAPS";
labelPlacement = "right";
selected = false;
}
on (release) {
_parent._parent.buttonFX("press");
this.invalidate();
}
onClipEvent (load) {
function __f_draw(eventObj) {
_parent._parent.changeMapListOptions("classic");
}
this.addEventListener("draw", __f_draw);
}
Instance of Symbol 3396 MovieClip [CheckBox] "checkBoxCustom" in Symbol 5199 MovieClip [window470CreateGameMC] Frame 1
//component parameters
onClipEvent (construct) {
label = " CUSTOM MAPS";
labelPlacement = "right";
selected = false;
}
on (release) {
_parent._parent.buttonFX("press");
this.invalidate();
}
onClipEvent (load) {
function __f_draw(eventObj) {
_parent._parent.changeMapListOptions("custom");
}
this.addEventListener("draw", __f_draw);
}
Instance of Symbol 3396 MovieClip [CheckBox] "checkBoxFeature" in Symbol 5199 MovieClip [window470CreateGameMC] Frame 1
//component parameters
onClipEvent (construct) {
label = " FEATURED MAPS";
labelPlacement = "right";
selected = false;
}
on (release) {
_parent._parent.buttonFX("press");
this.invalidate();
}
onClipEvent (load) {
function __f_draw(eventObj) {
_parent._parent.changeMapListOptions("feature");
}
this.addEventListener("draw", __f_draw);
}
Symbol 5271 MovieClip Frame 1
stop();
Symbol 5289 MovieClip [rank12MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5307 MovieClip [rank13MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5325 MovieClip [rank14MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5343 MovieClip [rank15MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5360 MovieClip [rank16MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5378 MovieClip [rank11MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5399 MovieClip [rank10MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5420 MovieClip [rank9MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5441 MovieClip [rank8MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5462 MovieClip [rank7MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5483 MovieClip [rank6MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5504 MovieClip [rank5MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5525 MovieClip [rank4MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5546 MovieClip [rank3MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5567 MovieClip [rank2MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5571 MovieClip [rank1MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5590 MovieClip [rankMMC] Frame 1
badgeSQMC._visible = 0;
Symbol 5594 MovieClip Frame 1
stop();
Symbol 5610 MovieClip [railgunParticleMC] Frame 68
this.removeMovieClip();
Symbol 5619 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressNewMapEditor();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 5623 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressLoadMapEditor();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 5625 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressHelpMapEditor();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 5627 MovieClip [window470MapEditorMC] Frame 1
function initailizeEditorWindow() {
h0Text0.text = (h0Text1.text = _parent.editorText[0]);
}
function windowClose() {
_parent.pressXMapEditorWindow();
}
initailizeEditorWindow();
Symbol 5646 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressLoadStockMapEditor();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 5650 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.loadDifferentPlayersMapList();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 5655 MovieClip [window470LoadMapMC] Frame 1
function windowClose() {
_parent.pressLoadMapX();
}
this.onEnterFrame = function () {
_parent.populateStockMapListBox(0);
delete this.onEnterFrame;
};
Instance of Symbol 2582 MovieClip "mapsSlotMC0" in Symbol 5655 MovieClip [window470LoadMapMC] Frame 1
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(0);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Instance of Symbol 2582 MovieClip "mapsSlotMC1" in Symbol 5655 MovieClip [window470LoadMapMC] Frame 1
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(1);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Instance of Symbol 2582 MovieClip "mapsSlotMC2" in Symbol 5655 MovieClip [window470LoadMapMC] Frame 1
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(2);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Instance of Symbol 2582 MovieClip "mapsSlotMC3" in Symbol 5655 MovieClip [window470LoadMapMC] Frame 1
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(3);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Instance of Symbol 2582 MovieClip "mapsSlotMC4" in Symbol 5655 MovieClip [window470LoadMapMC] Frame 1
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(4);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Instance of Symbol 225 MovieClip [ComboBox] "stockMapBox" in Symbol 5655 MovieClip [window470LoadMapMC] Frame 1
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "";
editable = false;
rowCount = 6;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_load(eventObj) {
}
this.addEventListener("load", __f_load);
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent._parent.buttonFX("press");
}
this.addEventListener("change", __f_change);
}
onClipEvent (load) {
function __f_open(eventObj) {
_parent._parent.createGameMapRandomize = false;
_parent._parent.buttonFX("press");
}
this.addEventListener("open", __f_open);
}
onClipEvent (load) {
function __f_itemRollOver(eventObj) {
_parent._parent.buttonFX("over");
}
this.addEventListener("itemRollOver", __f_itemRollOver);
}
onClipEvent (load) {
function __f_itemRollOut(eventObj) {
_parent._parent.buttonFX("out");
}
this.addEventListener("itemRollOut", __f_itemRollOut);
}
Symbol 5671 MovieClip Frame 1
this.ratio = 0;
dragger.onPress = function () {
_parent._parent.buttonFX("press");
_parent._parent.cursorNormal();
this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function () {
this.setColor(80);
var _local4 = this._x / line._width;
var _local3 = _parent._parent.editorMaxTilesWide - _parent._parent.editorMinTilesWide;
var _local5 = int(_parent._parent.editorMinTilesWide) + int(_local4 * _local3);
_parent.changeNewMapMapSize(_parent.newMapHeight, _local5);
};
};
dragger.onRelease = (dragger.onReleaseOutside = function () {
_parent._parent.buttonFX("out");
_parent._parent.SFXDragVolume.stop();
this.stopDrag();
delete this.onEnterFrame;
this.setColor(40);
_parent._parent.changeCursor(_parent._parent.editMode);
});
dragger.setColor = function (brt) {
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor = new Color(line);
myColor.setTransform(myColorTransform);
myColorTransform.bb = myColorTransform.bb + brt;
myColorTransform.rb = myColorTransform.rb + brt;
myColorTransform.gb = myColorTransform.gb + brt;
myColor = new Color(this);
myColor.setTransform(myColorTransform);
};
dragger.onRollOver = function () {
this.setColor(40);
};
dragger.onRollOut = function () {
this.setColor(0);
};
dragger.setColor(0);
Symbol 5672 MovieClip Frame 1
this.ratio = 0;
dragger.onPress = function () {
_parent._parent.buttonFX("press");
_parent._parent.cursorNormal();
this.startDrag(true, 0, 0, 0, line._height);
this.onEnterFrame = function () {
this.setColor(80);
var _local4 = this._y / line._height;
var _local3 = _parent._parent.editorMaxTilesHigh - _parent._parent.editorMinTilesHigh;
var _local5 = int(_parent._parent.editorMinTilesHigh) + int(_local4 * _local3);
_parent.changeNewMapMapSize(_local5, _parent.newMapWidth);
};
};
dragger.onRelease = (dragger.onReleaseOutside = function () {
_parent._parent.buttonFX("out");
_parent._parent.SFXDragVolume.stop();
this.stopDrag();
delete this.onEnterFrame;
this.setColor(40);
_parent._parent.changeCursor(_parent._parent.editMode);
});
dragger.setColor = function (brt) {
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor = new Color(line);
myColor.setTransform(myColorTransform);
myColorTransform.bb = myColorTransform.bb + brt;
myColorTransform.rb = myColorTransform.rb + brt;
myColorTransform.gb = myColorTransform.gb + brt;
myColor = new Color(this);
myColor.setTransform(myColorTransform);
};
dragger.onRollOver = function () {
this.setColor(40);
};
dragger.onRollOut = function () {
this.setColor(0);
};
dragger.setColor(0);
Symbol 5673 MovieClip [window470NewMapMC] Frame 1
function initializeNewMapWindow() {
h0Text0.text = (h0Text1.text = _parent.editorText[1]);
var i = 1;
while (i < 4) {
eval (("h" + i) + "Text0").text = (eval (("h" + i) + "Text1").text = _parent.editorText[i + 2]);
i++;
}
initializeThemeBox();
}
function initializeThemeBox() {
var strFontName = _parent.tDummy.getTextFormat(0, 1).font;
_parent.tDummy._visible = 0;
_global.styles.TextArea.setStyle("fontFamily", "FFF Astro");
_global.style.setStyle("themeColor", 11260150);
var objectList = new Array("themeBox");
var i = 0;
while (i < objectList.length) {
with (eval (objectList[i])) {
fontSize = 8;
color = "0xA1CAFF";
setStyle("embedFonts", true);
setStyle("fontFamily", strFontName);
}
i++;
}
themeBox.backgroundColor = "0x4E657B";
themeBox.openDuration = 150;
var i = 0;
while (i < 3) {
themeBox.addItem(_parent.editorText[i + 6]);
i++;
}
themeBox.addItem(_parent.ballistickOnlyMarker + _parent.editorText[9]);
themeBox.selectedIndex = 3;
}
function changeNewMapMapSize(h, w) {
h4Text0.text = (h4Text1.text = (w.toString() + " x ") + h.toString());
newMapHeight = h;
newMapWidth = w;
newMapSizeMC._xscale = (w / _parent.editorMaxTilesWide) * 100;
newMapSizeMC._yscale = (h / _parent.editorMaxTilesHigh) * 100;
}
function windowClose() {
_parent.pressNewMapClose();
}
function windowOK() {
_parent.pressNewMapOK(mapnameText.text, newMapHeight, newMapWidth, themeBox.selectedIndex);
}
var newMapHeight = _parent.editorMinTilesHigh;
var newMapWidth = _parent.editorMinTilesWide;
changeNewMapMapSize(newMapHeight, newMapWidth);
initializeNewMapWindow();
Instance of Symbol 225 MovieClip [ComboBox] "themeBox" in Symbol 5673 MovieClip [window470NewMapMC] Frame 1
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "";
editable = false;
rowCount = 6;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent._parent.buttonFX("press");
}
this.addEventListener("change", __f_change);
}
onClipEvent (load) {
function __f_open(eventObj) {
_parent._parent.buttonFX("press");
}
this.addEventListener("open", __f_open);
}
onClipEvent (load) {
function __f_itemRollOver(eventObj) {
_parent._parent.buttonFX("over");
}
this.addEventListener("itemRollOver", __f_itemRollOver);
}
onClipEvent (load) {
function __f_itemRollOut(eventObj) {
_parent._parent.buttonFX("out");
}
this.addEventListener("itemRollOut", __f_itemRollOut);
}
Symbol 5712 MovieClip [tile3A6] Frame 1
gotoAndPlay(random(20) + 1);
Symbol 5712 MovieClip [tile3A6] Frame 22
gotoAndPlay (2);
Symbol 5914 MovieClip [tile3J0] Frame 1
gotoAndPlay(random(79) + 1);
Symbol 5914 MovieClip [tile3J0] Frame 81
gotoAndPlay (2);
Symbol 5926 MovieClip [tile3J2] Frame 1
gotoAndPlay(random(120) + 1);
Symbol 5926 MovieClip [tile3J2] Frame 124
gotoAndPlay (2);
Symbol 5941 MovieClip [tile3J5] Frame 1
gotoAndPlay(random(105) + 1);
Symbol 5941 MovieClip [tile3J5] Frame 108
gotoAndPlay (2);
Symbol 5951 MovieClip [tile3J7] Frame 1
gotoAndPlay(random(95) + 1);
Symbol 5951 MovieClip [tile3J7] Frame 93
gotoAndPlay(random(2));
Symbol 5963 MovieClip [tile3J9] Frame 1
gotoAndPlay(random(8) + 1);
Symbol 5963 MovieClip [tile3J9] Frame 10
gotoAndPlay (2);
Symbol 5973 MovieClip [tile3K1] Frame 1
gotoAndPlay(random(75) + 1);
Symbol 5973 MovieClip [tile3K1] Frame 77
gotoAndPlay (2);
Symbol 5986 MovieClip [tile3L0] Frame 1
gotoAndPlay(random(195) + 1);
Symbol 5986 MovieClip [tile3L0] Frame 204
gotoAndPlay (2);
Symbol 5995 MovieClip [tile3M0] Frame 1
gotoAndPlay(random(130) + 1);
Symbol 5995 MovieClip [tile3M0] Frame 134
gotoAndPlay (2);
Symbol 6006 MovieClip [tile3M1] Frame 1
gotoAndPlay(random(120) + 1);
Symbol 6006 MovieClip [tile3M1] Frame 127
gotoAndPlay (2);
Symbol 6024 MovieClip [tile3N0] Frame 1
gotoAndPlay(random(13) + 1);
Symbol 6024 MovieClip [tile3N0] Frame 14
gotoAndPlay (2);
Symbol 6033 MovieClip [tile3N1] Frame 1
gotoAndPlay(random(13) + 1);
Symbol 6033 MovieClip [tile3N1] Frame 14
gotoAndPlay (2);
Symbol 6042 MovieClip [tile3N2] Frame 1
gotoAndPlay(random(13) + 1);
Symbol 6042 MovieClip [tile3N2] Frame 14
gotoAndPlay (2);
Symbol 6063 MovieClip [tile3P0] Frame 1
gotoAndPlay(random(86) + 1);
Symbol 6063 MovieClip [tile3P0] Frame 88
gotoAndPlay (2);
Symbol 6072 MovieClip [tile3P1] Frame 1
gotoAndPlay(random(209) + 1);
Symbol 6072 MovieClip [tile3P1] Frame 209
gotoAndPlay (2);
Symbol 6081 MovieClip [tile3P2] Frame 1
gotoAndPlay(random(200) + 1);
Symbol 6081 MovieClip [tile3P2] Frame 199
gotoAndPlay (2);
Symbol 6092 MovieClip [tile3P3] Frame 1
gotoAndPlay(random(160) + 1);
Symbol 6092 MovieClip [tile3P3] Frame 168
gotoAndPlay (2);
Symbol 6103 MovieClip [tile3P4] Frame 1
gotoAndPlay(random(20) + 1);
Symbol 6103 MovieClip [tile3P4] Frame 22
gotoAndPlay (2);
Symbol 6108 MovieClip [tile3P5] Frame 1
gotoAndPlay(random(100) + 1);
Symbol 6117 MovieClip [tile3P6] Frame 1
gotoAndPlay(random(170) + 1);
Symbol 6117 MovieClip [tile3P6] Frame 180
gotoAndPlay (2);
Symbol 6126 MovieClip [tile3P7] Frame 1
gotoAndPlay(random(210) + 1);
Symbol 6126 MovieClip [tile3P7] Frame 213
gotoAndPlay (2);
Symbol 6137 MovieClip [tile3P8] Frame 1
gotoAndPlay(random(4) + 1);
Symbol 6137 MovieClip [tile3P8] Frame 7
gotoAndPlay (2);
Symbol 6148 MovieClip [tile3P9] Frame 1
gotoAndPlay(random(215) + 1);
Symbol 6148 MovieClip [tile3P9] Frame 219
gotoAndPlay (2);
Symbol 6159 MovieClip [tile3Q0] Frame 1
gotoAndPlay(random(10) + 1);
Symbol 6159 MovieClip [tile3Q0] Frame 12
gotoAndPlay (2);
Symbol 6166 MovieClip [tile3Q1] Frame 1
gotoAndPlay(random(210) + 1);
Symbol 6190 MovieClip [window304NewMapMessageMC] Frame 1
function windowClose() {
_parent.closeNewMapMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6195 Button
on (press) {
_parent._parent.qkRqyP("press", this, null);
}
on (release) {
_parent._parent.pressArrowTileSets(1);
_parent._parent.qkRqyP("release", this, null);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, null);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, null);
}
Symbol 6196 MovieClip Frame 1
stop();
Symbol 6197 Button
on (press) {
_parent._parent.qkRqyP("press", this, null);
}
on (release) {
_parent._parent.pressArrowTileSets(-1);
_parent._parent.qkRqyP("release", this, null);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, null);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, null);
}
Symbol 6198 MovieClip Frame 1
stop();
Symbol 6198 MovieClip Frame 2
stop();
Symbol 6201 MovieClip [tileSetsMC] Frame 1
function windowClose() {
_parent.pressXTileSets();
}
Symbol 6210 MovieClip Frame 1
stop();
Symbol 6223 MovieClip Frame 1
stop();
Symbol 6223 MovieClip Frame 21
stop();
Symbol 6232 MovieClip Frame 30
anim = Math.round(Math.random() * 4);
if (anim <= 1) {
gotoAndPlay ("anim1");
} else if (anim == 3) {
gotoAndPlay ("anim2");
} else {
gotoAndPlay (1);
}
Symbol 6232 MovieClip Frame 50
gotoAndPlay (1);
Symbol 6233 MovieClip Frame 68
_parent.gotoAndStop("idle");
Symbol 6234 MovieClip Frame 32
skull_mc.play();
Symbol 6234 MovieClip Frame 38
stop();
Symbol 6235 MovieClip Frame 1
stop();
Symbol 6244 MovieClip Frame 54
stop();
Symbol 6253 MovieClip Frame 18
stop();
Symbol 6254 MovieClip Frame 1
stop();
_parent.cigardetail_mc.gotoAndStop(1);
Symbol 6254 MovieClip Frame 3
_parent.cigardetail_mc.gotoAndPlay(2);
Symbol 6258 MovieClip Frame 1
stop();
Symbol 6258 MovieClip Frame 37
stop();
Symbol 6284 MovieClip Frame 339
gotoAndPlay ("loop");
Symbol 6287 MovieClip Frame 48
stop();
Symbol 6288 MovieClip Frame 1
stop();
Symbol 6290 MovieClip [petBehaviorFloatMC] Frame 1
gotoAndPlay(random(35) + 2);
Symbol 6290 MovieClip [petBehaviorFloatMC] Frame 41
gotoAndPlay (2);
Symbol 6293 MovieClip [window304ShopMessageMC] Frame 1
function windowClose() {
_parent.closeShopMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6296 MovieClip [window304FailChangeServerMessageMC] Frame 1
function windowClose() {
_parent.closeFailChangeServer();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6301 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowGetaPass();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 6303 MovieClip [window304ShopGetaPassMessageMC] Frame 1
function windowClose() {
_parent.closeShopMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
function windowGetaPass() {
_parent.pressGetAPass();
}
Symbol 6306 MovieClip [window304ShopConfirmMessageMC] Frame 1
function windowOK() {
_parent.performShopPurchase();
this.removeMovieClip();
}
function windowClose() {
_parent.cancelShopPurchase();
this.removeMovieClip();
}
Symbol 6331 MovieClip Frame 100
stop();
Symbol 6336 MovieClip Frame 100
stop();
Symbol 6337 MovieClip [ticketMC] Frame 6
_parent._parent.playSound("SFXTicketScratch28");
Symbol 6337 MovieClip [ticketMC] Frame 13
_parent._parent.playSound("SFXTicketScratch27");
Symbol 6337 MovieClip [ticketMC] Frame 26
_parent._parent.playSound("SFXTicketScratch23");
Symbol 6337 MovieClip [ticketMC] Frame 33
_parent._parent.playSound("SFXTicketScratch27");
Symbol 6337 MovieClip [ticketMC] Frame 40
_parent._parent.playSound("SFXTicketScratch28");
Symbol 6337 MovieClip [ticketMC] Frame 52
_parent._parent.playSound("SFXTicketPrize");
_parent._parent.awardTicketValue();
Symbol 6337 MovieClip [ticketMC] Frame 105
gotoAndPlay ("endLoopStart");
Symbol 6343 Button
on (press) {
_parent._parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent._parent.closeTicket();
_parent._parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 6346 MovieClip [ticketParentMC] Frame 79
stop();
Symbol 6349 MovieClip [railgunParticleLowMC] Frame 7
this.removeMovieClip();
Symbol 6352 MovieClip [rank2MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6353 MovieClip [rank1MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6354 MovieClip [rank3MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6355 MovieClip [rank4MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6356 MovieClip [rank5MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6357 MovieClip [rank6MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6358 MovieClip [rank7MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6359 MovieClip [rank8MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6360 MovieClip [rank9MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6361 MovieClip [rank10MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6362 MovieClip [rank11MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6363 MovieClip [rank12MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6364 MovieClip [rank13MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6365 MovieClip [rank14MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6366 MovieClip [rank15MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6367 MovieClip [rankMMCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6368 MovieClip [rank1MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6369 MovieClip [rank2MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6370 MovieClip [rank3MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6371 MovieClip [rank4MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6372 MovieClip [rank5MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6373 MovieClip [rank6MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6374 MovieClip [rank7MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6375 MovieClip [rank8MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6376 MovieClip [rank9MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6377 MovieClip [rank10MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6378 MovieClip [rank11MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6379 MovieClip [rank12MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6380 MovieClip [rank13MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6381 MovieClip [rank14MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6382 MovieClip [rank15MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6383 MovieClip [rankMMCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6391 MovieClip Frame 1
stop();
Symbol 6391 MovieClip Frame 6
gotoAndPlay (2);
Symbol 6393 MovieClip Frame 1
stop();
Symbol 6399 MovieClip Frame 1
stop();
Symbol 6399 MovieClip Frame 6
stop();
Symbol 6427 MovieClip Frame 9
doors_mc.play();
Symbol 6427 MovieClip Frame 24
gotoAndPlay ("loop");
Symbol 6438 MovieClip Frame 1
stop();
Symbol 6438 MovieClip Frame 5
gotoAndPlay (2);
Symbol 6444 MovieClip Frame 1
stop();
Symbol 6444 MovieClip Frame 10
gotoAndPlay (3);
Symbol 6454 MovieClip Frame 32
drill_mc.play();
_parent._parent.colorMC1.tracks_mc.gotoAndPlay(2);
Symbol 6454 MovieClip Frame 41
victim_mc.gotoAndPlay(3);
Symbol 6454 MovieClip Frame 63
drill_mc.gotoAndStop(1);
_parent._parent.colorMC1.tracks_mc.stop();
_parent._parent.kill_mc.gotoAndPlay(2);
Symbol 6454 MovieClip Frame 91
_parent.gotoAndStop("idle");
_parent._parent.colorMC1.gotoAndStop("idle");
Symbol 6461 MovieClip Frame 30
stop();
Symbol 6462 MovieClip Frame 1
stop();
_parent.explosion_mc.gotoAndStop(1);
_parent.shine_mc.gotoAndStop(1);
Symbol 6462 MovieClip Frame 3
_parent.explosion_mc.gotoAndPlay(2);
_parent.shine_mc.gotoAndStop(3);
_parent.kill_mc.gotoAndStop(1);
Symbol 6465 MovieClip Frame 1
stop();
Symbol 6481 MovieClip Frame 1
stop();
Symbol 6481 MovieClip Frame 15
skull_mc.stop();
Symbol 6481 MovieClip Frame 26
skull_mc.play();
Symbol 6481 MovieClip Frame 50
skull_mc.stop();
Symbol 6481 MovieClip Frame 89
stop();
Symbol 6486 MovieClip Frame 1
stop();
Symbol 6486 MovieClip Frame 29
gotoAndStop (1);
Symbol 6501 MovieClip Frame 1
stop();
Symbol 6501 MovieClip Frame 26
stop();
Symbol 6521 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6523 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6524 MovieClip Frame 10
gotoAndPlay (1);
Symbol 6526 MovieClip Frame 19
gotoAndPlay (1);
Symbol 6529 MovieClip Frame 26
stop();
Symbol 6530 MovieClip Frame 1
stop();
Symbol 6550 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6552 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6553 MovieClip Frame 10
gotoAndPlay (1);
Symbol 6555 MovieClip Frame 19
gotoAndPlay (1);
Symbol 6558 MovieClip Frame 26
stop();
Symbol 6559 MovieClip Frame 1
stop();
Symbol 6565 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6566 MovieClip Frame 19
gotoAndPlay (1);
Symbol 6567 MovieClip Frame 26
stop();
Symbol 6568 MovieClip Frame 1
stop();
_parent.body_mc.gotoAndStop(1);
_parent.wings_mc.gotoAndStop(1);
_parent.blood_mc.gotoAndStop(1);
Symbol 6568 MovieClip Frame 2
_parent.body_mc.gotoAndStop(2);
_parent.wings_mc.gotoAndStop(2);
_parent.blood_mc.gotoAndStop(1);
Symbol 6568 MovieClip Frame 3
_parent.body_mc.gotoAndStop(3);
_parent.wings_mc.gotoAndStop(3);
_parent.blood_mc.gotoAndPlay(2);
Symbol 6574 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6577 MovieClip Frame 19
gotoAndPlay (1);
Symbol 6580 MovieClip Frame 26
stop();
Symbol 6581 MovieClip Frame 1
stop();
Symbol 6589 MovieClip [window470HelpMC] Frame 1
function windowClose() {
_parent.pressXHelp();
}
function helpWindowUpdateScroll() {
helpText1.scroll = helpText0.scroll;
}
Instance of Symbol 3384 MovieClip "windowBGMC" in Symbol 6589 MovieClip [window470HelpMC] Frame 1
on (press) {
_parent._parent.startHelpMove();
}
on (release, releaseOutside) {
_parent._parent.stopHelpMove();
}
Instance of Symbol 176 MovieClip [UIScrollBar] in Symbol 6589 MovieClip [window470HelpMC] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "helpText0";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (enterFrame) {
_parent.helpWindowUpdateScroll();
}
onClipEvent (mouseMove) {
_parent.helpWindowUpdateScroll();
}
onClipEvent (mouseUp) {
_parent.helpWindowUpdateScroll();
}
Instance of Symbol 234 MovieClip "subPetMC" in Symbol 6590 MovieClip [petBehaviorCircleFastMC] Frame 1
onClipEvent (load) {
var radius = 40;
var speed = (7 + (random(10) / 20));
var xcenter = -30;
var ycenter = 30;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter - (Math.cos(radian) * radius);
this._y = ycenter + (Math.sin(radian) * radius);
}
Instance of Symbol 234 MovieClip "subPetMC" in Symbol 6591 MovieClip [petBehaviorCircleSlowMC] Frame 1
onClipEvent (load) {
var radius = 40;
var speed = (5 + (random(10) / 20));
var xcenter = -30;
var ycenter = 30;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter - (Math.cos(radian) * radius);
this._y = ycenter + (Math.sin(radian) * radius);
}
Instance of Symbol 234 MovieClip "subPetMC" in Symbol 6592 MovieClip [petBehaviorCircleSmallMC] Frame 1
onClipEvent (load) {
var radius = 15;
var speed = (10 + (random(10) / 20));
var xcenter = 0;
var ycenter = 0;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 234 MovieClip "subPetMC" in Symbol 6593 MovieClip [petBehaviorCounterCircleFastMC] Frame 1
onClipEvent (load) {
var radius = 40;
var speed = (7 + (random(10) / 20));
var xcenter = -30;
var ycenter = 30;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 234 MovieClip "subPetMC" in Symbol 6594 MovieClip [petBehaviorCounterCircleSlowMC] Frame 1
onClipEvent (load) {
var radius = 40;
var speed = (5 + (random(10) / 20));
var xcenter = -30;
var ycenter = 30;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Instance of Symbol 234 MovieClip "subPetMC" in Symbol 6595 MovieClip [petBehaviorCounterCircleSmallMC] Frame 1
onClipEvent (load) {
var radius = 15;
var speed = (10 + (random(10) / 20));
var xcenter = 0;
var ycenter = 0;
var degree = 0;
var radian;
}
onClipEvent (enterFrame) {
degree = degree + speed;
radian = (degree / 180) * Math.PI;
this._x = xcenter + (Math.cos(radian) * radius);
this._y = ycenter - (Math.sin(radian) * radius);
}
Symbol 6597 MovieClip [roomBallistickLobbyMC] Frame 1
badgeSQMC._visible = 0;
Symbol 6598 MovieClip [roomNormalLobbyMC] Frame 1
badgeSQMC._visible = 0;
Symbol 6603 Button
on (press) {
_parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowDontSave();
_parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 6608 Button
on (press) {
_parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowSave();
_parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 6610 MovieClip [window304EditorQuitConfirmation] Frame 1
function windowSave() {
_parent.quitOnSuccessfulSave = true;
_parent.pressSaveEditor();
this.removeMovieClip();
}
function windowDontSave() {
_parent.exitMapEditor();
this.removeMovieClip();
}
function windowClose() {
_parent.pressXMapEditorQuitConfirmation();
this.removeMovieClip();
}
Symbol 6613 MovieClip [window304LoadMapMessageMC] Frame 1
function windowClose() {
_parent.closeLoadMapMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6626 MovieClip [window470SaveMapMC] Frame 1
function windowClose() {
_parent.pressSaveMapX();
}
Instance of Symbol 2582 MovieClip "mapsSlotMC0" in Symbol 6626 MovieClip [window470SaveMapMC] Frame 1
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(0);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Instance of Symbol 2582 MovieClip "mapsSlotMC1" in Symbol 6626 MovieClip [window470SaveMapMC] Frame 1
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(1);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Instance of Symbol 2582 MovieClip "mapsSlotMC2" in Symbol 6626 MovieClip [window470SaveMapMC] Frame 1
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(2);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Instance of Symbol 2582 MovieClip "mapsSlotMC3" in Symbol 6626 MovieClip [window470SaveMapMC] Frame 1
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(3);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Instance of Symbol 2582 MovieClip "mapsSlotMC4" in Symbol 6626 MovieClip [window470SaveMapMC] Frame 1
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(4);
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 6629 MovieClip [window304SaveMapMessageMC] Frame 1
function windowClose() {
_parent.closeSaveMapMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6632 MovieClip [window304OverwriteConfirmationMC] Frame 1
function windowOK() {
_parent.editorOverwriteConfirm();
this.removeMovieClip();
}
function windowClose() {
_parent.editorOverwriteCancel();
this.removeMovieClip();
}
Symbol 6636 MovieClip Frame 62
_parent.gotoAndStop("idle");
Symbol 6637 MovieClip Frame 29
stop();
Symbol 6638 MovieClip Frame 1
stop();
Symbol 6643 MovieClip Frame 1
stop();
Symbol 6643 MovieClip Frame 47
stop();
Symbol 6646 MovieClip Frame 1
stop();
Symbol 6655 MovieClip Frame 21
gotoAndPlay (1);
Symbol 6658 MovieClip Frame 27
gotoAndPlay ("idle");
Symbol 6681 MovieClip Frame 62
_parent.gotoAndStop("idle");
Symbol 6682 MovieClip Frame 46
stop();
Symbol 6683 MovieClip Frame 1
stop();
_parent.teeth_mc.gotoAndStop(1);
Symbol 6683 MovieClip Frame 2
_parent.teeth_mc.gotoAndPlay(2);
Symbol 6683 MovieClip Frame 3
_parent.fire_mc.gotoAndPlay(2);
_parent.teethdeath_mc.gotoAndPlay(2);
_parent.teeth_mc.gotoAndStop(1);
Symbol 6711 MovieClip Frame 1
stop();
Symbol 6711 MovieClip Frame 43
stop();
Symbol 6715 MovieClip [window200LoginMsgMC] Frame 1
function windowClose() {
_parent.pressCancelLogIn();
}
Symbol 6718 MovieClip [window304EditorGeneralMessageMC] Frame 1
function windowClose() {
_parent.closeEditorGeneralMessageWindow();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6723 Button
on (press) {
_parent._parent.qkRqyP("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowRenewPass();
_parent._parent.qkRqyP("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.qkRqyP("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.qkRqyP("out", this, _parent.windowBGMC);
}
Symbol 6725 MovieClip [window304AccountExpiryNotificationMC] Frame 1
function windowClose() {
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
function windowRenewPass() {
_parent.pressGetAPass();
windowClose();
}
Symbol 6728 MovieClip [window304ModeratorMessageMC] Frame 1
function windowClose() {
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6731 MovieClip [window304EditorNewMapWarnMessageMC] Frame 1
function windowClose() {
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6734 MovieClip [window304ReturnToLobbyMessageMC] Frame 1
function windowClose() {
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6737 MovieClip [window304ChangeServerProgressMC] Frame 1
function windowClose() {
_parent.pressChangeServerCancel();
this.removeMovieClip();
}
btnCancelMC._visible = false;
var windowInitializeTime = getTimer();
this.onEnterFrame = function () {
if ((getTimer() - windowInitializeTime) > _parent.serverTimeout) {
btnCancelMC._visible = true;
}
};
Symbol 6740 MovieClip [window304PremiumOnlyChangeServerMessageMC] Frame 1
function windowClose() {
_parent.closeFailChangeServer();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
function windowGetaPass() {
_parent.pressGetAPass();
}
Symbol 6923 MovieClip [window304JoinGameMessageMC] Frame 1
function windowClose() {
_parent.closeJoinGameMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}