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 vzsmzK(n) {
if (n > 9) {
return(String.fromCharCode(n + 55));
}
return(n.toString());
}
function atan2ToDeg(y1, x1) {
var _local1 = Math.atan2(y1, x1);
var _local2 = Math.round((_local1 * 180) / Math.PI);
return(_local2);
}
function qxHtJL(charCode) {
var _local2 = String.fromCharCode(charCode);
if (((((charCode >= 65) && (charCode <= 90)) || ((charCode >= 97) && (charCode <= 122))) || ((charCode >= 48) && (charCode <= 57))) || (" !?,.@#$%^*()[]'\"/\\:;-=_|".indexOf(_local2) != -1)) {
return(true);
}
return(false);
}
function qxHtJL2(char) {
if ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 !?,.@#$%^*()[]'\"/\\:;-=_|".indexOf(char) != -1) {
return(true);
}
return(false);
}
function isLegalChatString(str) {
var _local1 = 0;
while (_local1 < str.length) {
if (!qxHtJL2(str.charAt(_local1))) {
return(false);
}
_local1++;
}
if ((str.length > 0) && (qkPKoq(str))) {
return(true);
}
return(false);
}
function qxajTH(charCode) {
var _local2 = String.fromCharCode(charCode);
if (((((((charCode >= 65) && (charCode <= 90)) || ((charCode >= 97) && (charCode <= 122))) || ((charCode >= 48) && (charCode <= 57))) || (_local2 == ",")) || (_local2 == ".")) || (_local2 == "_")) {
return(true);
}
return(false);
}
function qxajTH2(char) {
if ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,._".indexOf(char) != -1) {
return(true);
}
return(false);
}
function isLegalAccountString(str) {
var _local1 = 0;
while (_local1 < str.length) {
if (!qxajTH2(str.charAt(_local1))) {
return(false);
}
_local1++;
}
return(true);
}
function isLegalRoomChar(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 isLegalRoomChar2(char) {
if ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,.".indexOf(char) != -1) {
return(true);
}
return(false);
}
function isLegalRoomString(str) {
var _local1 = 0;
while (_local1 < str.length) {
if ((!isLegalRoomChar2(str.charAt(_local1))) && (str.charCodeAt(_local1) != 32)) {
return(false);
}
_local1++;
}
return(true);
}
function qkPKoq(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) {
if (str.charAt(0) != "0") {
return(str);
}
if (str == "0") {
return(str);
}
var _local1 = 1;
while (str.charAt(_local1) == "0") {
_local1++;
}
var _local3 = str.substr(_local1, str.length - _local1);
if (_local3 == "") {
return("0");
}
return(_local3);
}
function stripCharacter(str, charStr) {
while (str.indexOf(charStr) != -1) {
var _local2 = str.substr(0, str.indexOf(charStr));
str = _local2.concat(str.substr(str.indexOf(charStr) + 1, str.length - 1));
}
return(str);
}
function jhlvCF(str) {
var _local1 = 0;
while (_local1 < zqTruN.length) {
while (str.toLowerCase().indexOf(zqTruN[_local1]) != -1) {
var _local4 = str.substr(0, str.toLowerCase().indexOf(zqTruN[_local1]));
var _local3 = 0;
while (_local3 < zqTruN[_local1].length) {
_local4 = _local4.concat("*");
_local3++;
}
str = _local4.concat(str.substr(str.toLowerCase().indexOf(zqTruN[_local1]) + zqTruN[_local1].length, str.length - (str.toLowerCase().indexOf(zqTruN[_local1]) + zqTruN[_local1].length)));
}
_local1++;
}
return(str);
}
function containsNoFilteredLanguage(str) {
return(jhlvCF(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 replaceAllCharacters(str, newChar) {
var _local2 = new String();
var _local1 = 0;
while (_local1 < str.length) {
_local2 = _local2.concat(newChar);
_local1++;
}
return(_local2);
}
function getRainbowHtml(str) {
var _local2 = "";
var _local1 = 0;
while (_local1 < 15) {
var _local4 = ((("#" + vzsmzK(15 - _local1)) + "F") + vzsmzK(_local1)) + "FFF";
_local2 = _local2 + colorHtml(str.substr(_local1, 1), _local4);
_local1++;
}
_local1 = 0;
while (_local1 < 15) {
var _local4 = ((("#" + vzsmzK(_local1)) + "F") + vzsmzK(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 = ((((("#" + vzsmzK(15 - _local1)) + vzsmzK(15 - _local1)) + vzsmzK(15 - _local1)) + vzsmzK(15 - _local1)) + vzsmzK(15 - _local1)) + vzsmzK(15 - _local1);
_local3 = _local3 + colorHtml(str.substr(_local2, 1), _local5);
_local2 = _local2 + 1;
_local1 = _local1 + 2;
}
_local1 = 0;
while (_local1 < 10) {
var _local5 = ((((("#" + vzsmzK(_local1 + 3)) + vzsmzK(_local1 + 3)) + vzsmzK(_local1 + 3)) + vzsmzK(_local1 + 3)) + vzsmzK(_local1 + 3)) + vzsmzK(_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 kkBQxl() {
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 tqrRAZ() {
var tempDepthCount = 10;
var x = 0;
while (x < 13) {
var y = 0;
while (y < 10) {
var val = ((x * 100) + y);
fqTEcOL.e.attachMovie("emptyMC", "tile" + val, tempDepthCount);
with (eval ("fqTEcOL.e.tile" + ((x * 100) + y))) {
_x = x * 50;
_y = y * 50;
cacheAsBitmap = optionUseBitmapCaching;
}
fqTEcOL.c.attachMovie("emptyMC", "tile" + val, tempDepthCount++);
with (eval ("fqTEcOL.c.tile" + ((x * 100) + y))) {
_x = x * 50;
_y = y * 50;
cacheAsBitmap = optionUseBitmapCaching;
}
y++;
}
x++;
}
}
function vztMPq() {
fqTEcOL._x = (fqTEcOL._y = (fqTEcOLX = (fqTEcOLY = 0)));
var _local2 = 0;
while (_local2 < 13) {
var _local1 = 0;
while (_local1 < 10) {
reloadTile(_local2, _local1);
_local1++;
}
_local2++;
}
}
function reloadTile(x, y) {
var tNum = (((x % 13) * 100) + (y % 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]);
var eMC = eval ("fqTEcOL.e.tile" + tNum);
eMC.attachMovie("tile" + t[0], "graphic", 1);
eMC._rotation = t[1];
eMC._xscale = t[2];
eMC._yscale = t[3];
eMC.cacheAsBitmap = optionUseBitmapCaching;
var cMC = eval ("fqTEcOL.c.tile" + tNum);
cMC.attachMovie("tile" + t[4], "limit", 1);
cMC._rotation = t[1];
cMC._xscale = t[2];
cMC._yscale = t[3];
cMC.cacheAsBitmap = optionUseBitmapCaching;
}
function tMir(axis, m) {
if (axis == "x") {
if ((m == 1) || (m == 3)) {
return(-100);
}
} else if (axis == "y") {
if ((m == 2) || (m == 3)) {
return(-100);
}
}
return(100);
}
function updateEarth() {
startTime = getTimer();
var _local1 = 0;
var _local2 = 0;
if (fqTEcOL._x < (-50 + (50 * lqarIS))) {
_local1 = -1;
} else if (fqTEcOL._x > (50 * lqarIS)) {
_local1 = 1;
} else if (fqTEcOL._y < (-50 + (50 * lqQmGI))) {
_local2 = -1;
} else if (fqTEcOL._y > (50 * lqQmGI)) {
_local2 = 1;
}
if (_local1 != 0) {
lqarIS = lqarIS + _local1;
oldLeftCol = leftCol;
leftCol = leftCol - _local1;
if (leftCol > 12) {
leftCol = 0;
} else if (leftCol < 0) {
leftCol = 12;
}
updateEarthCol(_local1);
} else if (_local2 != 0) {
lqQmGI = lqQmGI + _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) {
var tNum = ((oldLeftCol * 100) + ((y + oldTopRow) % 10));
var eMC = eval ("fqTEcOL.e.tile" + tNum);
eMC.g.removeMovieClip();
eMC._x = eMC._x + 650;
var cMC = eval ("fqTEcOL.c.tile" + tNum);
cMC.c.removeMovieClip();
cMC._x = cMC._x + 650;
reloadTile((-lqarIS) + 12, (-lqQmGI) + y);
y++;
}
} else if (xAdj > 0) {
rightCol = oldLeftCol - 1;
while (rightCol < 0) {
rightCol = rightCol + 13;
}
var y = 0;
while (y < 10) {
var tNum = ((rightCol * 100) + ((y + oldTopRow) % 10));
var eMC = eval ("fqTEcOL.e.tile" + tNum);
eMC.g.removeMovieClip();
eMC._x = eMC._x - 650;
var cMC = eval ("fqTEcOL.c.tile" + tNum);
cMC.c.removeMovieClip();
cMC._x = cMC._x - 650;
reloadTile(-lqarIS, (-lqQmGI) + y);
y++;
}
}
}
function updateEarthRow(yAdj) {
if (yAdj < 0) {
var x = 0;
while (x < 13) {
var tNum = ((((x + oldLeftCol) % 13) * 100) + oldTopRow);
var eMC = eval ("fqTEcOL.e.tile" + tNum);
eMC.g.removeMovieClip();
eMC._y = eMC._y + 500;
var cMC = eval ("fqTEcOL.c.tile" + tNum);
cMC.c.removeMovieClip();
cMC._y = cMC._y + 500;
reloadTile((-lqarIS) + x, (-lqQmGI) + 9);
x++;
}
} else if (yAdj > 0) {
bottomRow = oldTopRow - 1;
while (bottomRow < 0) {
bottomRow = bottomRow + 10;
}
var x = 0;
while (x < 13) {
var tNum = ((((x + oldLeftCol) % 13) * 100) + bottomRow);
var eMC = eval ("fqTEcOL.e.tile" + tNum);
eMC.g.removeMovieClip();
eMC._y = eMC._y - 500;
var cMC = eval ("fqTEcOL.c.tile" + tNum);
cMC.c.removeMovieClip();
cMC._y = cMC._y - 500;
reloadTile((-lqarIS) + x, -lqQmGI);
x++;
}
}
}
function moveToCoords(x, y) {
fqTEcOL._x = 275 - x;
fqTEcOL._y = 200 - y;
gxyAWm._x = 275;
gxyAWm._y = 200;
var _local2 = 0;
if (fqTEcOL._x > earthMaxX) {
_local2 = fqTEcOL._x - earthMaxX;
} else if (fqTEcOL._x < earthMinX) {
_local2 = fqTEcOL._x - earthMinX;
}
fqTEcOL._x = fqTEcOL._x - _local2;
gxyAWm._x = gxyAWm._x - _local2;
var _local3 = 0;
if (fqTEcOL._y > earthMaxY) {
_local3 = fqTEcOL._y - earthMaxY;
} else if (fqTEcOL._y < earthMinY) {
_local3 = fqTEcOL._y - earthMinY;
}
fqTEcOL._y = fqTEcOL._y - _local3;
gxyAWm._y = gxyAWm._y - _local3;
fqTEcOLX = fqTEcOL._x;
fqTEcOLY = fqTEcOL._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 updateHUD() {
player.updatePositionDisplay();
if (keyIsDownMulti("B") && (gameMode == 0)) {
if (leadMC == null) {
displayLeaderBoard();
}
updateLeaderBoard();
} else if (leadMC != null) {
leadMC.removeMovieClip();
}
updateHUDMsg();
}
function updateHUDDead() {
player.updatePositionDisplay();
if ((keyIsDownMulti("B") && (gameMode == 0)) || ((player.vwnjRK <= 90) && (!userHidLeaderBoard))) {
if (leadMC == null) {
displayLeaderBoard();
}
updateLeaderBoard();
} else if (leadMC != null) {
leadMC.removeMovieClip();
}
updateHUDMsg();
}
function displayWarning(hmsg, msg, displayTime) {
if (windowMC == null) {
_root.attachMovie("warningMsgMC", "windowMC", 200000);
windowMC._x = 90;
windowMC._y = 270;
zqggLX("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;
zqggLX("windowShow", windowMC);
windowMC.msgText0.text = (windowMC.msgText1.text = msg);
}
function closeWindow() {
chatBtnMC._visible = true;
optionsBtnMC._visible = true;
setGameMode(0);
}
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 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 zqggLX(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 validateSWFDimensions(w, h) {
if ((Stage.width != w) || (Stage.height != h)) {
vwfrRk();
}
}
function qkFZRx(allowHDD, validURL) {
var _local4 = false;
var _local6 = _url.substr(0, _url.indexOf(":"));
if (_local6 == "file") {
if (!allowHDD) {
var _local3 = "HDD Check Failed: Cannot run file from HardDrive.";
} else {
var _local3 = ("HDD Check Passed: " + _url) + " Valid.";
_local4 = true;
}
} else if (_local6 == "http") {
var _local5 = _url.indexOf("//");
var _local2 = _url.substr(_local5 + 2, (_url.indexOf("/", _local5 + 2) - _local5) - 2);
_local2 = _local2.toUpperCase();
if (_local2.indexOf("WWW.") != -1) {
_local2 = _local2.substr(_local2.indexOf("WWW.") + 4, _local2.length);
}
i = 0;
while (i < validURL.length) {
if (_local2.indexOf(validURL[i]) != -1) {
var _local3 = ("URL Check Passed: " + _url) + " Valid.";
_local4 = true;
i = validURL.length;
} else {
var _local3 = ("URL Check Failed: " + _url) + " Invalid.";
}
i++;
}
}
if (!_local4) {
vwfrRk();
}
}
function getDomainName(allowHDD, validURL) {
var _local4 = false;
var _local3 = _url.substr(0, _url.indexOf(":"));
if (_local3 == "file") {
return("LOCAL");
}
if (_local3 == "http") {
var _local2 = _url.indexOf("//");
var _local1 = _url.substr(_local2 + 2, (_url.indexOf("/", _local2 + 2) - _local2) - 2);
_local1 = _local1.toUpperCase();
if (_local1.indexOf("WWW.") != -1) {
_local1 = _local1.substr(_local1.indexOf("WWW.") + 4, _local1.length);
}
}
return(_local1);
}
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 validateParentPage(verifyParentPage, parentPageKey) {
if ((!verifyParentPage) || (parentPageKey == "XGS")) {
} else {
vwfrRk();
}
}
function vwfrRk() {
getURL ("http://www.xgenstudios.com/play/stickarena", "_top");
gotoAndStop ("pirateFrame");
}
function attachBorder() {
_root.attachMovie("xqbcnBIqnDg", "xqbcnBIqnDg", 99999999999);
xqbcnBIqnDg._x = -45;
xqbcnBIqnDg._y = -40;
xqbcnBIqnDg.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 uhasfnsdyf(w, h) {
if ((Stage.width != w) || (Stage.height != h)) {
attachLargeBorder(true);
} else {
attachLargeBorder(false);
}
}
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("xqbcnBIqnDg", "xqbcnBIqnDg", 99999999999);
xqbcnBIqnDg._x = -45;
xqbcnBIqnDg._y = -40;
xqbcnBIqnDg.cacheAsBitmap = true;
}
function attachLargeBorder(tf) {
if (tf) {
_root.attachMovie("exeBorderLargeMC", "xqbcnBIqnDg", 99999999999);
xqbcnBIqnDg._x = -45;
xqbcnBIqnDg._y = -40;
xqbcnBIqnDg.cacheAsBitmap = true;
} else {
xqbcnBIqnDg.removeMovieClip();
}
}
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 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 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 (("fqTEcOL.player" + remotePlayers[i]) + "MC").remoteAvgPing;
if (eval (("fqTEcOL.player" + remotePlayers[i]) + "MC").textMC._visible == 1) {
eval (("fqTEcOL.player" + remotePlayers[i]) + "MC").textMC.pingText.text = eval (("fqTEcOL.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 (("fqTEcOL.player" + remotePlayers[0]) + "MC").remoteAvgPing);
if (sysInfoState == 1) {
xqRougqUK.fpsText.text = (xqRougqUK.fpsText2.text = int(frameRate) + " FPS");
xqRougqUK.pingText.text = (xqRougqUK.pingText2.text = eval (("fqTEcOL.player" + remotePlayers[0]) + "MC").remoteAvgPing + " MS LOCAL");
xqRougqUK.pingGameText.text = (xqRougqUK.pingGameText2.text = avgDeltaTime + " MS AVG");
if (serverType[serverNum] == "COMPATIBILITY") {
xqRougqUK.compatText.text = (xqRougqUK.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);
xqRougqUK.graphsMC.createEmptyMovieClip("frameRateGraphMC", 100);
xqRougqUK.graphsMC.createEmptyMovieClip("pingGraphRemoteAvgMC", 101);
xqRougqUK.graphsMC.createEmptyMovieClip("pingGraphMC", 102);
xqRougqUK.graphsMC.frameRateGraphMC._x = -40;
xqRougqUK.graphsMC.frameRateGraphMC._y = -125;
xqRougqUK.graphsMC.pingGraphRemoteAvgMC._x = -40;
xqRougqUK.graphsMC.pingGraphRemoteAvgMC._y = -70;
xqRougqUK.graphsMC.pingGraphMC._x = -40;
xqRougqUK.graphsMC.pingGraphMC._y = -15;
xqRougqUK.graphsMC.frameRateGraphMC.attachBitmap(frameRateGraph, 10);
xqRougqUK.graphsMC.pingGraphRemoteAvgMC.attachBitmap(pingGraphRemoteAvg, 11);
xqRougqUK.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);
pingGraphRemote4 = new flash.display.BitmapData(100, 50, true, 2684354560);
pingGraphRemote5 = new flash.display.BitmapData(100, 50, true, 2684354560);
var i = 0;
while (i < maxNumPlayers) {
xqRougqUK.graphsMC.createEmptyMovieClip(("pingGraphRemote" + i) + "MC", i + 103);
var mc = eval (("xqRougqUK.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 < lqDrVN) && (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();
pingGraphRemote4.dispose();
pingGraphRemote5.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 < maxNumPlayers) {
if (remotePlayers[i] != 0) {
eval (("xqRougqUK.graphsMC.pingGraphRemote" + i) + "MC")._visible = true;
eval (("xqRougqUK.pingRemote" + i) + "Text").htmlText = ((getColoredName(remotePlayers[i]) + " ") + eval (("fqTEcOL.player" + remotePlayers[i]) + "MC").remoteAvgPing) + " MS";
eval (("xqRougqUK.pingRemote" + i) + "Text2").text = ((getName(remotePlayers[i]) + " ") + eval (("fqTEcOL.player" + remotePlayers[i]) + "MC").remoteAvgPing) + " MS";
eval ("pingGraphRemote" + i).scroll(-graphScrollAmount, 0);
var xx = 0;
while (xx < graphScrollAmount) {
var yDifference = (eval (("fqTEcOL.player" + remotePlayers[i]) + "MC").lastRemoteAvgPing - eval (("fqTEcOL.player" + remotePlayers[i]) + "MC").remoteAvgPing);
var yCoord = (eval (("fqTEcOL.player" + remotePlayers[i]) + "MC").lastRemoteAvgPing - ((yDifference / graphScrollAmount) * (xx + 1)));
if (i == 0) {
var hexColorString = 16777215;
} else {
var hexColorString = Number("0x" + eval (("fqTEcOL.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 (("xqRougqUK.graphsMC.pingGraphRemote" + i) + "MC")._visible = false;
eval (("xqRougqUK.pingRemote" + i) + "Text").text = (eval (("xqRougqUK.pingRemote" + i) + "Text2").text = "");
}
i++;
}
}
function playSound(soundObjStr) {
eval (soundObjStr).start();
}
function APIChangePassword(APIUserName, APIPassword, APINewPassword, APIFunctionCallback) {
var replyDataAPI = new LoadVars();
var _local1 = new LoadVars();
var _local2 = (((((apiURL + "method=xgen.users.changePassword&username=") + APIUserName) + "&password=") + APIPassword) + "&new_password=") + APINewPassword;
_local1.sendAndLoad(_local2, replyDataAPI, "POST");
replyDataAPI.onLoad = function (success) {
if (success) {
}
APIFunctionCallback(success);
};
}
function APIGameLogin(APIUserName, APIPassword, APIFunctionCallback) {
if (domainName.indexOf("XGENSTUDIOS.COM") != -1) {
var _local2 = com.meychi.ascrypt.MD5.calculate(APIPassword);
var _local1 = ((("javascript:GameLogin('" + APIUserName) + "','") + _local2) + "');";
getURL (_local1);
APIFunctionCallback(true);
} else {
APIFunctionCallback(false);
}
}
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 vzYGrh(x, y) {
if (fqTEcOL.c.hitTest(x, y, true)) {
consecutiveChecksWithCollision++;
if (consecutiveChecksWithCollision > 5) {
eushdfjesdfe();
}
} else {
consecutiveChecksWithCollision = 0;
}
}
function jhfVpW() {
var _local2 = gxyAWm._x - fqTEcOL._x;
var _local1 = gxyAWm._y - fqTEcOL._y;
if ((((_local2 < -20) || (_local1 < -20)) || (_local2 > ((areaWidth * 50) - 30))) || (_local1 > ((areaHeight * 50) - 30))) {
if (mapLoaded && (qxYEYJ > 10)) {
eushdfjesdfe();
}
}
}
function updateServerStatus() {
if ((player.qxZDXd != (player.qxClCA - syfbsde)) || (player.lqQppy != (player.zqhUQj - kahseyu))) {
fusebfysdfb = true;
eushdfjesdfe();
}
}
function zqicvC(w) {
if (w == 0) {
return(true);
}
var _local1 = 0;
while (_local1 < Number(vzlnjm.kkOAEj)) {
if (w == vzlnjm.vzFNmT[_local1].vzSwjY) {
return(true);
}
_local1++;
}
return(false);
}
function tqgHZJ(aaa, bbb) {
if ((((int(player.lqkSWy) >= aaa) || (int(player.lqkSWy) > bbb)) || (int(player.lqkSWy) > 60)) && (player.mod != "dead")) {
jnsuefbesd();
} else if (tqgHZJIntervalID != null) {
clearInterval(tqgHZJIntervalID);
tqgHZJIntervalID = null;
}
}
function jnsuefbesd() {
socket[serverNum].close();
loggedIn = false;
connectedToSever = false;
clearGameGarbage();
}
function loadMapEditorTileData() {
tilesArray = new Array();
tilesArrayRot = new Array();
tilesArrayMirror = new Array();
tilesArrayCol = new Array();
var _local5 = new LoadVars();
var _local6 = new LoadVars();
var dataString;
_local6.sendAndLoad(localFilePath + "mapEditorTiles.csv", _local5, "POST");
_local5.onLoad = function (success) {
if (success) {
dataString = this.mapEditorTileData;
var _local4 = dataString.split(newline);
var _local3;
var _local2 = 0;
while (_local2 < _local4.length) {
_local3 = _local4[_local2].split(",");
tilesArray[_local2] = _local3[0].substr(1, _local3[0].length - 1);
tilesArrayRot[_local2] = _local3[1];
tilesArrayMirror[_local2] = _local3[2];
tilesArrayCol[_local2] = _local3[3];
_local2++;
}
maxTilePage = Math.floor(tilesArray.length / (tileSetsWidth * tileSetsHeight));
mapEditorTileDataLoaded = true;
}
};
}
function initializeTileSets() {
showHideEditorButtons(false);
_root.attachMovie("tileSetsMC", "tileSetsMC", 200002);
tileSetsMC._y = 40;
tileSetsMC._x = 40;
tileSetsMC.h0Text0.text = (tileSetsMC.h0Text1.text = editorText[13]);
zqggLX("windowShow", tileSetsMC);
var _local4 = 0;
var _local5 = 0;
i = 1;
tempDepthCount = 1000;
while (tilesArray[i] != undefined) {
var _local3 = tileSetsMC.subTilesMC.attachMovie("tile" + tilesArray[i], ("tile" + i) + "MC", tempDepthCount++);
_local3._x = (_local4 * 52) + 25;
_local3._y = (_local5 * 52) + 70;
if ((tilesArrayRot[i] != null) && (tilesArrayRot[i] != undefined)) {
_local3._rotation = tilesArrayRot[i] * 90;
}
_local3._xscale = calculateTileMirror("x", Number(tilesArrayMirror[i]));
_local3._yscale = calculateTileMirror("y", Number(tilesArrayMirror[i]));
if (tilesArray[i] != "0A0") {
_local3.onRollOver = function () {
setCustomObjectColor(this, 55, 55, 55, 100);
};
_local3.onRollOut = (_local3.onReleaseOutside = function () {
setCustomObjectColor(this, 0, 0, 0, 100);
});
_local3.onPress = function () {
selectTile(this._x, this._y);
};
}
_local4++;
if (_local4 == tileSetsWidth) {
_local4 = 0;
_local5++;
}
i++;
}
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);
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 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.qxihXk = rt;
this.walkingSpeed = ws;
this.variations = v;
this.deathRotation = dr;
this.killTextNum = 0;
this.killTextPre = new Array();
this.killTextPost = new Array();
}
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 < deathDistance.length) {
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 < deathDistance.length) {
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 initializeParticles() {
destinationParticleBitmap = new flash.display.BitmapData(Stage.width / 2, Stage.height / 2, true, 0);
_root.createEmptyMovieClip("destinationParticleBitmapMC", 100);
destinationParticleBitmapMC.attachBitmap(destinationParticleBitmap, 1);
destinationParticleBitmapMC._xscale = (destinationParticleBitmapMC._yscale = 400);
}
function cleanUpParticles() {
destinationParticleBitmap.dispose();
destinationParticleBitmapMC.removeMovieClip();
}
function drawTextToParticles(particleType, textString) {
var _local8 = 0;
var _local7 = 0;
var _local6 = 50;
var _local5 = 70;
particleText.text = textString;
sourceParticleBitmap = new flash.display.BitmapData(Stage.width, Stage.height, true, 0);
sourceParticleBitmap.draw(particleText);
particleText.text = "";
particles = new Array();
var _local3 = 0;
while (_local3 < Stage.height) {
var _local2 = 0;
while (_local2 < Stage.width) {
pixel = sourceParticleBitmap.getPixel32((_local2 / 2) + _local8, (_local3 / 2) + _local7);
if (pixel != 0) {
if (particleType == "water") {
var _local4 = random(51) + 4281567436;
}
if (particleType == "stone") {
var _local4 = random(240) + 4278255615;
}
if (particleType == "space") {
var _local4 = ((random(255) + (random(136) * 65536)) + (random(51) * 256)) + 4286028287;
}
if (particleType == "snow") {
var _local4 = random(32768) + 4294967295;
}
if (particleType == "dirt") {
var _local4 = random(0) + 4288217088;
}
if (particleType == "fire") {
var _local4 = random(20480) + 4294967040;
}
if (particleType == "implode") {
var _local4 = random(0) + 4278255360;
}
if (particleType == "disintegrate") {
var _local4 = random(0) + 4278255360;
}
destinationParticleBitmap.setPixel32((_local2 + _local6) / 4, (_local3 + _local5) / 4, _local4);
particles.push(new Array((_local2 + _local6) / 4, (_local3 + _local5) / 4, 0, 0, _local4));
}
_local2 = _local2 + 4;
}
_local3 = _local3 + 4;
}
delete sourceParticleBitmap;
return(particles.length);
}
function explodeParticles(particleType) {
if (particleType == "dirt") {
randomRange = 500;
} else if (particleType == "stone") {
randomRange = 2500;
} else if (particleType == "water") {
randomRange = 4;
} else if (particleType == "snow") {
randomRange = 10;
} else if (particleType == "fire") {
randomRange = 100;
} else if (particleType == "implode") {
randomRange = 10;
} else if (particleType == "disintegrate") {
randomRange = 50;
} else {
randomRange = 2;
}
if (particleType == "space") {
velocityDivisor = 1;
} else if (particleType == "water") {
velocityDivisor = 10;
} else if (particleType == "snow") {
velocityDivisor = 50;
} else if (particleType == "fire") {
velocityDivisor = 2;
} else if (particleType == "disintegrate") {
velocityDivisor = 50;
} else {
velocityDivisor = 1000;
}
var _local1 = 0;
while (_local1 < particles.length) {
if (particles[_local1][_xVelPtcl] == 0) {
particles[_local1][_xVelPtcl] = (random(30) - 15) / velocityDivisor;
particles[_local1][_yVelPtcl] = (random(30) - 15) / velocityDivisor;
if (particleType == "stone") {
particles[_local1 + 1][_xVelPtcl] = particles[_local1][_xVelPtcl];
particles[_local1 + 1][_yVelPtcl] = particles[_local1][_yVelPtcl];
} else if (particleType == "implode") {
particles[_local1][_xVelPtcl] = (-((Stage.width / 8) - particles[_local1][_xPosPtcl])) / 2;
particles[_local1][_yVelPtcl] = (-((Stage.height / 8) - particles[_local1][_yPosPtcl])) / 2;
}
}
_local1 = _local1 + random(randomRange);
}
}
function moveParticles(particleType) {
if (particleType == "water") {
particleGravity = 0.6;
particleFriction = 0.95;
} else if (particleType == "snow") {
particleGravity = 0.05;
particleFriction = 0.97;
} else if (particleType == "fire") {
particleGravity = -0.5;
particleFriction = 0.1;
} else if (particleType == "implode") {
particleFriction = 0.8;
} else if (particleType == "stone") {
particleGravity = 0.7;
} else {
particleGravity = 0.6;
if (particleType != "space") {
particleFriction = 0.98;
} else {
particleFriction = 1;
}
}
if (particleType == "water") {
particleElasticity = -0.9;
} else if (particleType == "stone") {
particleElasticity = -0.2;
} else if (particleType == "disintegrate") {
particleElasticity = -0.2;
} else if (particleType == "space") {
particleElasticity = 1;
} else {
particleElasticity = -0.5;
}
var _local3 = 0;
while (_local3 < particles.length) {
var _local1 = particles[_local3];
if (((((particleType != "snow") && (particleType != "fire")) && (particleType != "space")) && (particleType != "stone")) && (particleType != "disintegrate")) {
_local1[_yVelPtcl] = _local1[_yVelPtcl] + particleGravity;
}
if (_local1[_xVelPtcl] != 0) {
if (((particleType == "snow") || (particleType == "fire")) || (particleType == "stone")) {
_local1[_yVelPtcl] = _local1[_yVelPtcl] + particleGravity;
} else if (particleType == "disintegrate") {
if (_local1[_yVelPtcl] != 0) {
_local1[_yVelPtcl] = _local1[_yVelPtcl] + particleGravity;
}
}
_local1[_xPosPtcl] = _local1[_xPosPtcl] + _local1[_xVelPtcl];
_local1[_xVelPtcl] = _local1[_xVelPtcl] * particleFriction;
if ((_local1[_xPosPtcl] + _local1[_xVelPtcl]) > (Stage.width / 4)) {
_local1[_xVelPtcl] = _local1[_xVelPtcl] * particleElasticity;
} else if ((_local1[_xPosPtcl] + _local1[_xVelPtcl]) < 0) {
_local1[_xVelPtcl] = _local1[_xVelPtcl] * particleElasticity;
}
}
if (_local1[_yVelPtcl] != 0) {
_local1[_yPosPtcl] = _local1[_yPosPtcl] + _local1[_yVelPtcl];
_local1[_yVelPtcl] = _local1[_yVelPtcl] * particleFriction;
if ((_local1[_yPosPtcl] + _local1[_yVelPtcl]) > (Stage.height / 4)) {
_local1[_yVelPtcl] = _local1[_yVelPtcl] * particleElasticity;
}
}
_local3++;
}
}
function eraseParticles() {
destinationParticleBitmap.draw(creditsBG);
}
function drawParticles() {
var _local2 = 0;
while (_local2 < particles.length) {
var _local1 = particles[_local2];
var _local3 = getTimer() - creditStartTime;
destinationParticleBitmap.setPixel32(_local1[_xPosPtcl], _local1[_yPosPtcl], (_local1[_colorPtcl] - (_local3 * 42)) + Math.min(_local3 * 16777216, 4278190080));
_local2++;
}
}
function advanceCredits() {
creditsPage++;
if (creditsPage < creditsText.length) {
creditStartTime = getTimer();
destinationParticleBitmapMC._xscale = (destinationParticleBitmapMC._yscale = 4000);
destinationParticleBitmapMC._x = (destinationParticleBitmapMC._y = 0);
destinationParticleBitmapMC.onEnterFrame = function () {
destinationParticleBitmapMC._xscale = (destinationParticleBitmapMC._yscale = destinationParticleBitmapMC._xscale - ((destinationParticleBitmapMC._xscale - 400) / 2));
eraseParticles();
drawParticles();
creditsBG.subBG._x = creditsBG.subBG._x - creditsBGXScrollSpeed;
creditsBG.subBG._y = creditsBG.subBG._y - creditsBGYScrollSpeed;
};
drawTextToParticles(globalParticleTypes[creditsPage % globalParticleTypes.length], creditsText[creditsPage]);
creditsExplodeIntervalID = setInterval(explodeCredits, creditsExplodeTime);
creditsTransitionIntervalID = setInterval(transitionCredits, creditsTransitionTime);
creditsSFXTimeIntervalID = setInterval(explodeCreditsSFX, creditsSFXTime);
} else {
endCredits();
}
}
function startWinMusic() {
if (creditsPage < (creditsText.length - 1)) {
SFXWin.stop();
SFXWin.start(0.8);
}
}
function explodeCreditsSFX() {
clearInterval(creditsSFXTimeIntervalID);
var rnd = (random(weapons[creditSounds[creditsPage % creditSounds.length]].variations) + 1);
adjustAndPlaySound(eval ((("SFX" + weapons[creditSounds[creditsPage % creditSounds.length]].attackAnim) + (rnd - 1)) + "0")[0], 0, 0);
}
function explodeCredits() {
clearInterval(creditsExplodeIntervalID);
destinationParticleBitmapMC.onEnterFrame = function () {
eraseParticles();
explodeParticles(globalParticleTypes[creditsPage % globalParticleTypes.length]);
moveParticles(globalParticleTypes[creditsPage % globalParticleTypes.length]);
drawParticles();
creditsBG.subBG._x = creditsBG.subBG._x - creditsBGXScrollSpeed;
creditsBG.subBG._y = creditsBG.subBG._y - creditsBGYScrollSpeed;
};
}
function transitionCredits() {
clearInterval(creditsTransitionIntervalID);
destinationParticleBitmapMC.onEnterFrame = function () {
destinationParticleBitmapMC._xscale = (destinationParticleBitmapMC._yscale = destinationParticleBitmapMC._xscale + ((destinationParticleBitmapMC._xscale - 399) / 2));
destinationParticleBitmapMC._x = (destinationParticleBitmapMC._y = 550 - (destinationParticleBitmapMC._width / 2));
eraseParticles();
explodeParticles(globalParticleTypes[creditsPage % globalParticleTypes.length]);
moveParticles(globalParticleTypes[creditsPage % globalParticleTypes.length]);
drawParticles();
creditsBG.subBG._x = creditsBG.subBG._x - creditsBGXScrollSpeed;
creditsBG.subBG._y = creditsBG.subBG._y - creditsBGYScrollSpeed;
};
}
function endCredits() {
clearInterval(creditsMusicLoopIntervalID);
clearInterval(creditsIntervalID);
clearInterval(creditsExplodeIntervalID);
clearInterval(creditsTransitionIntervalID);
clearInterval(creditsSFXTimeIntervalID);
SFXWin.stop();
cleanUpParticles();
returnToTitle();
}
function connectToKongregateAPI() {
_root.kongregateServices.connect();
}
function performKongregateRoundEndStatsSubmission() {
_root.kongregateScores.submit(player.tqITaO);
_root.kongregateStats.submit("kills", player.tqITaO);
_root.kongregateStats.submit("zqhUQj", player.pDeaths);
_root.kongregateStats.submit("wins", player.pWins);
_root.kongregateStats.submit("losses", player.pLosses);
_root.kongregateStats.submit("singleRoundKills", player.getScore());
_root.kongregateStats.submit("singleRoundSledgeKills", player.currentRoundWeaponKills[7]);
_root.kongregateStats.submit("rank", getRank(player.tqITaO) - 1);
if (((player.currentRoundWeaponKills[2] > 0) && (player.currentRoundWeaponKills[3] > 0)) && (player.currentRoundWeaponKills[7] > 0)) {
_root.kongregateStats.submit("meleeMasterAchievement", 1);
}
if (((player.currentRoundWeaponKills[4] > 0) && (player.currentRoundWeaponKills[5] > 0)) && (player.currentRoundWeaponKills[6] > 0)) {
_root.kongregateStats.submit("rangeRoverAchievement", 1);
}
if ((((((player.currentRoundWeaponKills[8] > 0) && (player.currentRoundWeaponKills[9] > 0)) && (player.currentRoundWeaponKills[10] > 0)) && (player.currentRoundWeaponKills[11] > 0)) && (player.currentRoundWeaponKills[12] > 0)) && (player.currentRoundWeaponKills[13] > 0)) {
_root.kongregateStats.submit("spaceLabMassacreAchievement", 1);
}
if ((mapNum == 0) && (getPosition(player.getScore(), player.getDeaths()) == 1)) {
_root.kongregateStats.submit("pwnXGenHQAchievement", 1);
}
if ((mapNum >= numClassicMaps) && (getPosition(player.getScore(), player.getDeaths()) == 1)) {
_root.kongregateStats.submit("vipPleaseAchievement", 1);
}
}
function performKongregateTicketStatsSubmission(credWon) {
_root.kongregateStats.submit("mostCredWon", credWon);
}
function kongregatePressCreateAccount() {
if (kongregateLoggedIn()) {
windowMC.usernameText.text = kongregate_username;
}
}
function kongregateLoggedIn() {
var _local1 = services.isGuest();
if (!_local1) {
return(true);
}
return(false);
}
function kongregatePurchaseItem(itemNum) {
_root.kongregateMtx.purchaseItems([konItems[itemNum]], kongregateOnItemPurchaseResult);
}
function kongregateOnItemPurchaseResult(result) {
if (result.success) {
pressCloseGetAPassWindow();
displayPurchaseMessage(shopText[28]);
APIKongregatePurchaseNotification();
}
}
function kongregatePressLogIn() {
if (kongregateLoggedIn()) {
_root.attachMovie("window200LoginMsgMC", "window2MC", 200001, {_x:175, _y:199});
window2MC.msgText0.text = (window2MC.msgText1.text = logInText[14]);
connectAction = "authenticate";
APIKongregateAuthenticate();
} else {
_global.kongregateChat.showSignInBox();
pressLogInClose();
}
}
function APIKongregateAuthenticate() {
var replyDataAPI = new XML();
var _local7 = new LoadVars();
var _local5 = ((((apiURL + "method=xgen.stickarena.kongregate.authenticate") + "&username=") + services.getUsername()) + "&game_auth_token=") + services.getGameAuthToken();
debugTrace("apiCallString:" + _local5);
_local7.sendAndLoad(_local5, replyDataAPI, "POST");
replyDataAPI.onLoad = function (success) {
debugTrace("reply Data:" + replyDataAPI);
if (connectAction == "disconnect") {
} else if (success) {
var _local6 = this.childNodes[0];
var _local3 = _local6.toString();
if (_local3.indexOf("stat=\"ok\"") != -1) {
uName = _local3.substr(_local3.indexOf("<username>") + 10, (_local3.indexOf("</username>") - _local3.indexOf("<username>")) - 10);
uPass = _local3.substr(_local3.indexOf("<password>") + 10, (_local3.indexOf("</password>") - _local3.indexOf("<password>")) - 10);
if ((!clientBanned) || (banDate != myDate.getDate())) {
if (!kongregateXGenAccountCreated) {
_root.attachMovie("window304XGenAccountCreatedMessageMC", "windowXGenAccountCreatedMC", 200008, {_x:133, _y:85});
windowXGenAccountCreatedMC.titleText0.text = (windowXGenAccountCreatedMC.titleText1.text = accountText[20]);
windowXGenAccountCreatedMC.msgText0.text = (windowXGenAccountCreatedMC.msgText1.text = accountText[21]);
windowXGenAccountCreatedMC.accountText0.text = (windowXGenAccountCreatedMC.accountText1.text = (((((logInText[0] + " ") + uName) + "\r") + logInText[1]) + " ") + uPass);
kongregateXGenAccountCreated = true;
savePreferences();
}
performPreLogIn();
} else {
displayLogInMessage(logInText[10]);
kongregateHandleLoginError();
}
} else {
var _local5 = _local3.substr(_local3.indexOf("err code") + 10, 1);
var _local4 = _local3.substr(_local3.indexOf("msg") + 5, (_local3.indexOf("\" />") - _local3.indexOf("msg")) - 5);
displayLogInMessage(((((logInText[15] + " (Error Message:") + _local4) + ", ") + _local5) + ")");
kongregateHandleLoginError();
connectToKongregateAPI();
}
} else {
displayLogInMessage(logInText[15]);
kongregateHandleLoginError();
connectToKongregateAPI();
}
};
}
function kongregateHandleLoginError() {
tutorialTimer = 0;
window2MC.removeMovieClip();
titleMenuMC._visible = 1;
zqggLX("windowShow", titleMenuMC);
}
function APIKongregatePurchaseNotification() {
var replyDataAPI = new XML();
var _local6 = new LoadVars();
var _local7 = ((((((((((apiURL + "method=xgen.stickarena.kongregate.purchase") + "&username=") + uName) + "&key=") + com.meychi.ascrypt.MD5.calculate(uPass)) + "&api_key=") + konAPIKey) + "&kongregate_username=") + services.getUsername()) + "&game_auth_token=") + services.getGameAuthToken();
_local6.sendAndLoad(_local7, replyDataAPI, "POST");
replyDataAPI.onLoad = function (success) {
if (success) {
var _local4 = this.childNodes[0];
var _local2 = _local4.toString();
if (_local4.toString().indexOf("fail") != -1) {
var _local5 = _local2.substr(_local2.indexOf("err code") + 10, 1);
var _local3 = _local2.substr(_local2.indexOf("msg") + 5, (_local2.indexOf("\" />") - _local2.indexOf("msg")) - 5);
displayPurchaseMessage(((((shopText[29] + " (Error Message:") + _local3) + ", ") + _local5) + ")");
} else {
qkewUQ(shopText[30], "title");
}
} else {
displayPurchaseMessage(shopText[29]);
}
};
}
function kongregatePressGetAPass() {
externalPressGetAPass();
}
function initializeGetAPassWindow() {
pressTabGetAPass();
}
function kongregateSelectPass(passNum) {
if (kongregateLoggedIn()) {
kongregatePurchaseItem(passNum);
} else {
_global.kongregateChat.showSignInBox();
}
}
function externalPressGetAPass() {
if (currentTab == _shop) {
showShopButtons(false);
} else if (currentTab == _lobby) {
}
interstitialMC.removeMovieClip();
_root.attachMovie("window405GetAPass", "getAPassWindowMC", 200005, {_x:0, _y:0});
getAPassWindowMC.cacheAsBitmap = optionUseBitmapCaching;
zqggLX("windowShow", getAPassWindowMC);
}
function externalSelectPass(passNum) {
if (passNum != 3) {
if (domainName.indexOf("KONGREGATE.COM") != -1) {
kongregateSelectPass(passNum);
} else {
launchPaymentMethodWindow(paymentMethodURL, passNum);
}
} else {
launchPaymentMethodWindow(offersURL, null);
}
}
function interstitialPressGetAPass() {
pressGetAPass();
}
function pressCloseGetAPassWindow() {
showShopButtons(true);
getAPassWindowMC.removeMovieClip();
getAPassWindowMC.unloadMovie();
currentUpsellTab = null;
}
function pressTabGetAPass() {
noInputTime = 0;
if (currentUpsellTab != _getapass) {
selectUpsellTab(_getapass);
loadMovie (passGraphicURL[8], "getAPassWindowMC.passesBGMC");
getAPassWindowMC.passesBGMC._y = 217;
getAPassWindowMC.selectPassFreeBTNMC._y = (getAPassWindowMC.selectPassImageFreeMC._y = 347);
getAPassWindowMC.selectPassBTNMC0._y = (getAPassWindowMC.selectPassBTNMC1._y = (getAPassWindowMC.selectPassBTNMC2._y = (getAPassWindowMC.selectPassImageMC0._y = (getAPassWindowMC.selectPassImageMC1._y = (getAPassWindowMC.selectPassImageMC2._y = 37)))));
var i = 0;
while (i < 6) {
eval ("getAPassWindowMC.loadingText" + i).text = editorText[48];
i++;
}
externalGetAPassLoadPassImages();
}
}
function externalGetAPassLoadPassImages() {
var i = 0;
while (i < 3) {
with (eval ("getAPassWindowMC.selectPassImageMC" + i)) {
createEmptyMovieClip("imageMC", 2);
}
with (eval (("getAPassWindowMC.selectPassImageMC" + i) + ".imageMC")) {
if (domainName.indexOf("KONGREGATE.COM") != -1) {
loadMovie(passGraphicURL[i + 1]);
} else {
loadMovie(passGraphicURL[i + 5]);
}
}
i++;
}
if (domainName.indexOf("KONGREGATE.COM") == -1) {
getAPassWindowMC.selectPassImageFreeMC.createEmptyMovieClip("imageMC", 2);
loadMovie (passGraphicURL[9], "getAPassWindowMC.selectPassImageFreeMC.imageMC");
}
}
function pressTabFeatures() {
noInputTime = 0;
if (currentUpsellTab != _features) {
selectUpsellTab(_features);
var i = 0;
while (i < 2) {
eval ("getAPassWindowMC.loadingText" + i).text = editorText[48];
var j = 0;
while (j < 55) {
eval ("getAPassWindowMC.loadingText" + i).text = eval ("getAPassWindowMC.loadingText" + i).text + "\r";
j++;
}
i++;
}
loadMovie (passGraphicURL[4], "getAPassWindowMC.featuresMC");
getAPassWindowMC.featuresMC.onLoad = function () {
var i = 0;
while (i < 2) {
eval ("getAPassWindowMC.loadingText" + i).text = "";
i++;
}
};
loadMovie (passGraphicURL[0], "getAPassWindowMC.passesBGMC");
externalGetAPassLoadPassImages();
}
}
function pressTabFAQ() {
noInputTime = 0;
if (currentUpsellTab != _faq) {
selectUpsellTab(_faq);
getAPassWindowMC.faqText0.text = (getAPassWindowMC.faqText1.text = "\r\r\r\r " + editorText[48]);
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local3.sendAndLoad(faqURL, _local2, "POST");
_local2.onLoad = function (success) {
if (success) {
getAPassWindowMC.faqText0.text = (getAPassWindowMC.faqText1.text = this.faqtext);
}
};
}
}
function selectUpsellTab(tabMode) {
currentUpsellTab = tabMode;
getAPassWindowMC.tabGetAPassMC.gotoAndStop("unselected");
getAPassWindowMC.tabFeaturesMC.gotoAndStop("unselected");
getAPassWindowMC.tabFAQMC.gotoAndStop("unselected");
if (currentUpsellTab == _getapass) {
getAPassWindowMC.tabGetAPassMC.gotoAndStop("selected");
}
if (currentUpsellTab == _features) {
getAPassWindowMC.tabFeaturesMC.gotoAndStop("selected");
}
if (currentUpsellTab == _faq) {
getAPassWindowMC.tabFAQMC.gotoAndStop("selected");
}
getAPassWindowMC.gotoAndStop(currentUpsellTab + 1);
}
function menuHandler() {
if ((gameArea == _areaPlaying) && (gameMode < 2)) {
cursorCrossHair();
}
}
function setGameMode(n) {
if (n == 0) {
gameMode = lastGameMode;
lastGameMode = 0;
} else {
if (gameMode == 0) {
}
lastGameMode = gameMode;
gameMode = n;
}
}
function stick() {
this.kkswbu = false;
this.vwFMff = 0;
this.vwcTCi = 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.jhHtWQ = 0;
this.vwEGyv = 0;
this.currentRoundWeaponAttacks = new Array(numWeapons);
this.currentRoundWeaponKills = new Array(numWeapons);
this.jhGMKF = null;
this.indicator = random(17);
this.lqkSWy = (this.vzBehO = 60);
this.qknWKM = -1;
this.qxClCA = 11;
this.qxZDXd = this.qxClCA - syfbsde;
this.zqhUQj = 13;
this.lqQppy = this.zqhUQj - kahseyu;
this.zqRuLy = (this.id = (this.vzyPcC = 0));
this.userLevel = 0;
this.zqjBYI = 0;
this.walk = false;
this.lqHoCQ = 3;
this.maxVel = 9;
this.jhvzpu = 0.7;
this.rotVel = 1.5;
this.tRotVels = new Array();
this.qxRVNf = 1;
this.tqHfIW = (this.qxCyQC = (this.vwdLxr = (this.qxadck = false)));
this.qxYeHq = (this.jhlJoN = (this.vwjxOy = true));
this.vel = (this.xVel = (this.yVel = (this.jhFrnG = (this.lqKbrj = (this.jhyWtw = (this.kkSwge = (this.zqfUYC = (this.jhVihd = (this.vzSwjY = 0)))))))));
this.facing = (this.tqLmWD = "20");
this.mod = "dead";
this.frame = 1;
this.zqLtRH = (this.vwnjRK = 150);
this.lqRwWU = (this.lqJPfA = 133.3);
this.lqMGgx = true;
this.pRoundsStarted = 0;
this.pWins = 0;
this.pLosses = 0;
this.tqITaO = 0;
this.pDeaths = 0;
this.qkEZXF = 250;
this.vzvBZr = 300;
this.tqiAtV = 175;
this.vwTkem = 225;
this.col = new Object();
}
function spawnPointType(xx, yy, ww, dd, tt, rr) {
this.x = xx;
this.y = yy;
this.vzSwjY = ww;
this.delay = dd;
this.vzPrQm = tt;
this.recievedRemoteTimer = false;
}
function area(f) {
this.fileName = f;
this.jhGMKF = "";
this.roundTime = 0;
this.tileSet = 0;
this.playerSpawnPoints = 0;
this.kkOAEj = 0;
this.spawnPoint = new Array();
this.vzFNmT = new Array();
var _local2 = 0;
while (_local2 < 8) {
this.spawnPoint[_local2] = new spawnPointType(0, 0, 0);
this.vzFNmT[_local2] = new spawnPointType(0, 0, 0, 0, 0);
_local2++;
}
}
function onFrame(frm) {
socketCalls();
mainCount++;
frameCount++;
framesSinceRoundStart++;
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();
if (optionCrosshair == 0) {
xqtEcrGq._rotation = xqtEcrGq._rotation + 4;
xqtEcrGq.xqtEcrGq_._rotation = -(xqtEcrGq._rotation * 3);
} else if (optionCrosshair == 2) {
xqtEcrGq._rotation = xqtEcrGq._rotation + 2;
} else if (optionCrosshair == 5) {
xqtEcrGq._rotation = xqtEcrGq._rotation + 5;
}
}
function onFrameSummary() {
socketCallsSummary();
mainCount++;
if (mainCount >= 4) {
mainCount = 0;
calculateFrameRate();
}
deltaSendTime = getTimer() - lastSendTime;
var _local3 = (tqKHBs + jhvuFH) + lqBNXB;
var _local2 = (tqKHBs + jhvuFH) + int((summaryStartTime - getTimer()) / 1000);
gfTruwFZApKOSG.timerText0.text = (gfTruwFZApKOSG.timerText1.text = (gfTruwFZApKOSG.timerText2.text = (gfTruwFZApKOSG.timerText3.text = (gfTruwFZApKOSG.timerText4.text = (summaryText[1] + _local2) + summaryText[2]))));
if ((_local2 <= jhvuFH) && (!adCalled)) {
adCalled = true;
if (!Boolean(player.kkswbu)) {
if (domainName.indexOf("KONGREGATE.COM") != -1) {
_root.attachMovie("interstitialMC", "interstitialMC", 400000);
} else {
getURL ("javascript:ShowAd();");
}
}
} else if (_local2 <= 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() {
frontCharMC.eyesMC.leftPupilMC._rotation = smoothRot(frontCharMC.eyesMC.leftPupilMC._rotation, atan2ToDeg(_root._ymouse - (frontCharMC._y - 80), _root._xmouse - (frontCharMC._x + 43)), 2);
frontCharMC.eyesMC.rightPupilMC._rotation = smoothRot(frontCharMC.eyesMC.rightPupilMC._rotation, atan2ToDeg(_root._ymouse - (frontCharMC._y - 80), _root._xmouse - (frontCharMC._x + 54)), 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();
xqRougqUK._visible = 1;
xqRougqUK.gotoAndStop(2);
} else if (sysInfoState == 1) {
sysInfoState++;
cleanUpGraphs();
initializeGraphs2();
xqRougqUK.gotoAndStop(3);
} else if (sysInfoState == 2) {
sysInfoState = 0;
cleanUpGraphs2();
xqRougqUK._visible = 0;
xqRougqUK.gotoAndStop(1);
}
}
function checkSystemCommand(str) {
if (str == "SYSINFO") {
toggleSysInfo();
return(true);
}
return(checkDevSystemCommand(str));
}
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) {
qkewUQ("\r" + inactiveText, "title");
} else {
socket[serverNum].close();
connectedToSever = false;
editorDisconnectedFromServer();
}
}
}
function lqaRZO() {
qxYEYJ++;
checkConnection();
updateServerStatus();
checkNoInput();
jhoJpy();
uhasfnsdyf(550, 400);
jhfVpW();
vzYGrh(gxyAWm._x, gxyAWm._y);
}
function updateRoundTimer() {
lqBNXB--;
if (Number(lqBNXB) > 10) {
if ((Number(lastRoundTimerUpdate) - Number(lqBNXB)) > 15) {
sendRoomDetailRequest(currentRoomName, "updateRoundTime");
}
var _local1 = 0;
while (_local1 < timeNotify.length) {
if (lqBNXB == timeNotify[_local1]) {
addHUDMsg((("<FONT COLOR=\"#FFEEEE\">" + formatTime(timeNotify[_local1])) + timeNotifyText) + "</FONT>", formatTime(timeNotify[_local1]) + timeNotifyText, 5000);
_local1 = timeNotify.length;
}
_local1++;
}
} else if (lqBNXB == 10) {
addHUDMsg((("<FONT COLOR=\"#FFEEEE\">" + formatTime(10)) + timeNotifyText) + "</FONT>", formatTime(10) + timeNotifyText, 2000);
} else {
addHUDMsg((("<FONT COLOR=\"#FFEEEE\">" + String(lqBNXB)) + " !") + "</FONT>", String(lqBNXB) + " !", 2000);
if ((lqBNXB <= 0) && (roundActive)) {
endRound();
}
}
}
function checkClicks() {
if (clickCount >= warnClicks) {
displayWarning(rapidClickText, rapidClickText, warnClickDisplayTime);
}
clickCount = 0;
}
function checkConnection() {
if ((getTimer() - lastMessageRecieved) > serverTimeout) {
if (enforceConnection) {
qkewUQ("\r" + disconnectedText, "title");
}
}
}
function checkPerformance() {
if (eval (("fqTEcOL.player" + remotePlayers[0]) + "MC").remoteAvgPing >= maxPing) {
warnPingCount++;
if (warnPingCount < warnPingBoot) {
displayWindow("304", (highPingText0 + maxPing) + highPingText1);
} else if (serverType[serverNum] == "COMPATIBILITY") {
if (loggedIn) {
qkewUQ((("\r" + highPingText0) + maxPing) + highPingText1, "lobby");
} else {
qkewUQ((("\r" + highPingText0) + maxPing) + highPingText1, "title");
}
} else if (loggedIn) {
kkIXgj((("\r" + highPingText0) + maxPing) + highPingText1, "lobby");
} else {
kkIXgj((("\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) {
qkewUQ((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "lobby");
} else {
qkewUQ((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "title");
}
} else if (loggedIn) {
kkIXgj((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "lobby");
} else {
kkIXgj((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "title");
}
}
}
function checkNoInput() {
noInputTime++;
if (noInputTime >= noInputBootGameDelay) {
qkewUQ("\r" + inactiveText, "title");
}
}
function jhoJpy() {
if (kkRCdb) {
if ((voteKickStartTime - lqBNXB) >= (zqhhqY / 1000)) {
kkRCdb = false;
voteKickVoted = false;
voteKickID = null;
voteKickVoteCount = 0;
voteKickStartTime = null;
}
}
}
function qkewUQ(str, destination) {
if (destination != "lobby") {
returnToTitle((str + "\r") + bootToTitleText);
} else {
returnToLobby(str);
}
}
function kkIXgj(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 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();
}
if (settingsLoaded) {
isCurrentVersion = false;
gotoFrame = "deadEnd";
msgText = versionNotCurrentText;
gotoAndStop ("preReturnFrame");
}
}
versionLoaded = true;
}
};
} else {
isCurrentVersion = true;
versionLoaded = true;
}
}
function loadSettings() {
checkForClientUpdate();
var replyDataSettings = new LoadVars();
var sendDataSettings = new LoadVars();
sendDataSettings.sendAndLoad(((localFilePath + "settings") + uonhbfsw) + "b.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));
optionCrosshair = int(this.sOptionCrosshair);
collisionCheckGhost = Boolean(int(this.sCollisionCheckGhost));
maxNumPlayers = int(this.sMaxNumPlayers);
maxNumPlayersNoPass = int(this.sMaxNumPlayersNoPass);
maxNumPlayersLobby = int(this.sMaxNumPlayersLobby);
lqDrVN = int(this.sMaxMsgLen);
vwtdfA = int(this.sMaxMsgLenLobby);
lqKPXL = int(this.sMaxLobbyMsgs);
qkWCSI = 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);
tqKHBs = int(this.sSummaryTime);
jhvuFH = 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);
qkTdUA = int(this.sMinChatSendMS);
warnClicks = int(this.sWarnClicks);
warnClickDisplayTime = int(this.sWarnClickDisplayTime);
zqhhqY = int(this.sVoteKickDisplayTime);
kkKMpm = int(this.sVoteKickDisabledTime);
displayPlayerIDs = Boolean(int(this.sDisplayPlayerID));
scrollSpeedStandard = int(this.sScrollSpeed);
scrollSpeedCompat = int(this.sScrollSpeedCompat);
vzQhhk = int(this.sPlayerAcc);
playerMaxVel = int(this.sPlayerMaxVel);
qxlVVP = 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 iniArrayList = new Array("sErrorText", "sProfileText", "sShopText", "sPetText", "sPetBehavior", "sSpinnerText", "sEditorText", "sSlashText", "sRatingName", "nRatingValue", "sTimeNotify", "sRank", "sVoteKickText", "sLeadText", "sOptText", "sReportText", "sSummaryText", "sLobbyText", "sAccountText", "sLogInText", "sHUDText", "sPosText", "sF", "sL", "sCreditsText");
var codeArrayList = new Array(errorText, profileText, shopText, petText, petBehavior, spinnerText, editorText, slashText, ratingNames, ratingValues, timeNotify, rankKills, voteKickText, leadText, optText, reportText, summaryText, lobbyText, accountText, logInText, HUDText, posText, defaultFirstNames, defaultLastNames, creditsText);
var codeArrayTypeList = new Array("String", "String", "String", "String", "String", "String", "String", "String", "String", "Number", "int", "int", "String", "String", "String", "String", "String", "String", "String", "String", "String", "String", "String", "String", "String");
var s = 0;
while (s < iniArrayList.length) {
var i = 0;
while (eval (("this." + iniArrayList[s]) + i) != undefined) {
if (codeArrayTypeList[s] == "String") {
codeArrayList[s][i] = eval (("this." + iniArrayList[s]) + i);
} else if (codeArrayTypeList[s] == "int") {
codeArrayList[s][i] = int(eval (("this." + iniArrayList[s]) + i));
} else if (codeArrayTypeList[s] == "Number") {
codeArrayList[s][i] = Number(eval (("this." + iniArrayList[s]) + i));
}
i++;
}
s++;
}
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++;
}
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) {
zqTruN[i] = eval ("this.w" + i);
i++;
}
languageLoaded = true;
}
};
var replyDataUpgradeValues = new LoadVars();
var sendDataUpgradeValues = new LoadVars();
sendDataUpgradeValues.sendAndLoad(((localFilePath + "upgradevalues") + uonhbfsw) + ".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;
}
};
loadMapEditorTileData();
}
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();
myObj.objArray[0] = optionQuality;
myObj.objArray[1] = SFXVolume;
myObj.objArray[2] = optionBlood;
myObj.objArray[3] = optionLanguageFilter;
myObj.objArray[4] = optionParticles;
myObj.objArray[5] = lqKPXL;
if (rememberUserName) {
myObj.objArray[6] = uName;
}
myObj.objArray[7] = rememberUserName;
myObj.objArray[8] = lastExpiryDialogueDate;
myObj.objArray[9] = clientBanned;
myObj.objArray[10] = banExpiryDate;
myObj.objArray[11] = kongregateXGenAccountCreated;
myObj.objArray[12] = useKongregateAccount;
myObj.objArray[13] = optionCrosshair;
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];
lqKPXL = 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]);
if (myLSO.data.myObj.objArray[11] != undefined) {
kongregateXGenAccountCreated = myLSO.data.myObj.objArray[11];
}
if (myLSO.data.myObj.objArray[12] != undefined) {
useKongregateAccount = myLSO.data.myObj.objArray[12];
}
if (myLSO.data.myObj.objArray[13] != undefined) {
optionCrosshair = myLSO.data.myObj.objArray[13];
}
}
}
function chatKeyPressed() {
if (gameMode == 0) {
setGameMode(2);
chatMC._visible = true;
chatBtnMC.gotoAndStop(2);
optionsBtnMC._visible = false;
player.tqHfIW = (player.vwdLxr = false);
player.jhlJoN = true;
} else if (gameMode == 2) {
if ((getTimer() - player.vzyPcC) > qkTdUA) {
chatMC._visible = false;
chatBtnMC.gotoAndStop(1);
optionsBtnMC._visible = true;
setGameMode(0);
if (chatMC.chatText0.text.length > 1) {
if ((chatMC.chatText0.text.substr(0, 1) == "/") || (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)))) {
if ((!loggedIn) || (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1).toLowerCase().indexOf(uPass.toLowerCase()) == -1)) {
player.vzyPcC = getTimer();
player.sendChatMsg(chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1));
} else {
addHUDMsg((">> <FONT COLOR=\"#FF0000\">" + accountText[25]) + "</FONT>", ">> " + accountText[25], 15000);
SFXBTNerror.start();
}
}
zqggLX("release", chatBtnMC, chatMC);
SFXBTNchat.start();
}
chatMC.chatText0.text = (chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = "_"))));
} else {
SFXBTNerror.start();
}
}
}
function lobbyChatKeyPressed(privateMessage) {
if ((chatMC.chatText0.text.substr(0, 1) == "/") || (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.vzyPcC) > qkTdUA) {
if (((chatMC.chatText0.text.length > 1) && (qkPKoq(chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1)))) && (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) != lastChatMsg)) {
if (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1).toLowerCase().indexOf(uPass.toLowerCase()) == -1) {
player.vzyPcC = 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);
zqggLX("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 = "_"))));
addLobbyMsg((">> <FONT COLOR=\"#FF0000\">" + accountText[24]) + "</FONT>", ">> " + accountText[24]);
SFXBTNerror.start();
}
} else {
chatMC.chatText0.text = (chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = "_"))));
}
} else {
SFXBTNerror.start();
}
}
function optionsBtnPressed() {
player.tqHfIW = (player.qxCyQC = (player.vwdLxr = false));
player.jhlJoN = true;
setGameMode(3);
cursorNormal();
gotoAndStop ("optionsFrame");
}
function pressVoteKick(a) {
player.sendVoteKick(a);
voteKickID = a;
kkRCdb = true;
voteKickVoted = true;
voteKickVoteCount = 1;
voteKickStartTime = lqBNXB;
voteKickInitiateTime = lqBNXB;
displayWarning(("<br><br>" + voteKickText[0]) + getColoredName(a), ("\r\r" + voteKickText[0]) + getName(a), zqhhqY);
}
function pressReportUser(a) {
setGameMode(4);
reportUserID = a;
player.tqHfIW = (player.qxCyQC = (player.vwdLxr = false));
player.jhlJoN = 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 (("fqTEcOL.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 (("fqTEcOL.player" + a) + "MC").kills = k;
eval (("fqTEcOL.player" + a) + "MC").zqhUQj = de;
eval (("fqTEcOL.player" + a) + "MC").rank = rk;
eval (("fqTEcOL.player" + a) + "MC").recievedGameState = true;
}
function updateRemotePlayers() {
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("fqTEcOL.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 updateWeaponSpawnTimers(wst) {
var _local1 = 0;
while (_local1 < vzlnjm.kkOAEj) {
if (vzlnjm.vzFNmT[_local1].recievedRemoteTimer) {
vzlnjm.vzFNmT[_local1].vzPrQm = int((vzlnjm.vzFNmT[_local1].vzPrQm + wst[_local1]) / 2);
} else {
vzlnjm.vzFNmT[_local1].vzPrQm = wst[_local1];
vzlnjm.vzFNmT[_local1].recievedRemoteTimer = true;
}
_local1++;
}
}
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++;
}
fqTEcOL.attachMovie("characterMC", ("player" + a) + "MC", lId + 3000);
with (eval (("fqTEcOL.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 (("fqTEcOL.player" + a) + "MC").removeMovieClip();
eval (("fqTEcOL.indicator" + a) + "MC").removeMovieClip();
eval (("fqTEcOL.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 (("fqTEcOL.player" + a) + "MC")) {
xqCOVDl._visible = 0;
fqqZCx._visible = 1;
gxyhDYy._visible = 1;
mod = "stand";
if (kills == undefined) {
kills = 0;
}
if (zqhUQj == undefined) {
zqhUQj = 0;
}
if (rank == undefined) {
rank = 1;
}
}
}
function vzMAQs(a, n) {
w = vzlnjm.vzFNmT[n].vzSwjY;
var foundWeapon = zqicvC(w);
if (foundWeapon || (!mapLoaded)) {
if (a != player.id) {
if (n != 9) {
eval (("fqTEcOL.pickup" + n) + "MC").removeMovieClip();
vzlnjm.vzFNmT[n].vzPrQm = vzlnjm.vzFNmT[n].delay;
x = eval (("fqTEcOL.player" + a) + "MC")._x + fqTEcOL._x;
y = eval (("fqTEcOL.player" + a) + "MC")._y + fqTEcOL._y;
adjustAndPlaySound(eval (("SFX" + weapons[w].attackAnim) + "Pickup"), x - gxyAWm._x, y - gxyAWm._y);
}
}
}
}
function tqjQfy(a, x, y, tr, w) {
var foundWeapon = zqicvC(w);
if (foundWeapon) {
with (eval (("fqTEcOL.player" + a) + "MC")) {
var rnd = (random(weapons[w].variations) + 1);
gxyhDYy.gotoAndStop((weapons[w].attackAnim + "Attack") + rnd);
gxyhDYy.xqmYxDWo.gotoAndPlay(1);
gxyhDYy.xqmYxDWo.xqjWpYvuKDu._visible = 0;
gxyhDYy._rotation = tr;
vwjxOy = false;
if (textMC.localIdText.text != 0) {
if (playerIsWithinFiringRange(_x + fqTEcOL._x, _y + fqTEcOL._y)) {
if (optionParticles) {
attachParticles(weapons[w].particleAnim, weapons[w].attackAnim, _x, _y, gxyhDYy._rotation);
} else {
attachParticles(weapons[w].particleAnimLow, weapons[w].attackAnim, _x, _y, gxyhDYy._rotation);
}
kkgTnY(a, w);
}
adjustAndPlaySound(eval ((("SFX" + weapons[w].attackAnim) + (rnd - 1)) + "0")[textMC.localIdText.text], (x + fqTEcOL._x) - gxyAWm._x, (y + fqTEcOL._y) - gxyAWm._y);
}
}
}
}
function kkgTnY(a, w) {
if (player.mod != "dead") {
if (!player.lqMGgx) {
if (collisionCheckGhost) {
var xx = (eval (("fqTEcOL.player" + player.id) + "MC")._x + fqTEcOL._x);
var yy = (eval (("fqTEcOL.player" + player.id) + "MC")._y + fqTEcOL._y);
} else {
var xx = gxyAWm._x;
var yy = gxyAWm._y;
}
with (eval (("fqTEcOL.player" + a) + "MC")) {
var distance = (Math.pow((_x + fqTEcOL._x) - xx, 2) + Math.pow((_y + fqTEcOL._y) - yy, 2));
if (distance < 250000) {
if (weapons[w].range || (distance < 10000)) {
if ((((gxyhDYy.xqmYxDWo.xqjWpYvuKDu.hitTest(xx, yy, true) || (gxyhDYy.xqmYxDWo.xqjWpYvuKDu.hitTest(xx - 6, yy - 6, true))) || (gxyhDYy.xqmYxDWo.xqjWpYvuKDu.hitTest(xx - 6, yy + 6, true))) || (gxyhDYy.xqmYxDWo.xqjWpYvuKDu.hitTest(xx + 6, yy - 6, true))) || (gxyhDYy.xqmYxDWo.xqjWpYvuKDu.hitTest(xx + 6, yy + 6, true))) {
distance = Math.sqrt(distance);
var radAngle = Math.atan2((_y - yy) + fqTEcOL._y, (_x - xx) + fqTEcOL._x);
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 - fqTEcOL._x) / 50) + 0.5);
yTileHit = int(((yHit - fqTEcOL._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, atan2ToDeg((_y - yy) + fqTEcOL._y, (_x - xx) + fqTEcOL._x) + weapons[w].deathRotation);
}
} else {
player.damage(weapons[w].damage, a, w, atan2ToDeg((_y - yy) + fqTEcOL._y, (_x - xx) + fqTEcOL._x) + weapons[w].deathRotation);
}
}
}
}
}
}
}
}
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 (("fqTEcOL.player" + a) + "MC")._x + fqTEcOL._x;
y = eval (("fqTEcOL.player" + a) + "MC")._y + fqTEcOL._y;
with (eval (("fqTEcOL.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 - gxyAWm._x, y - gxyAWm._y);
}
}
}
}
function getRandomName() {
return(defaultFirstNames[random(defaultFirstNames.length)] + defaultLastNames[random(defaultLastNames.length)]);
}
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.tqITaO);
playerNameMC.attachMovie(iconMC, "rankIconMC", 10000);
with (playerNameMC.rankIconMC) {
_x = -26;
_y = 2;
_xscale = (_yscale = 125);
}
}
function getName(a, localName) {
if (localName) {
return(player.jhGMKF);
}
if (eval (("fqTEcOL.player" + a) + "MC").textMC.localIdText.text != 0) {
if (eval (("fqTEcOL.player" + a) + "MC") != null) {
return(eval (("fqTEcOL.player" + a) + "MC").nameMC.nameText.text);
}
}
return(HUDText[3]);
}
function getColoredName(a, localName) {
if (localName) {
return(((("<FONT COLOR=\"" + player.hexColor) + "\">") + player.jhGMKF) + "</FONT>");
}
if (eval (("fqTEcOL.player" + a) + "MC").textMC.localIdText.text != 0) {
if (eval (("fqTEcOL.player" + a) + "MC") != null) {
return(((("<FONT COLOR=\"" + eval (("fqTEcOL.player" + a) + "MC").hexColor) + "\">") + eval (("fqTEcOL.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][_userLevel] >= 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 changePlayerWeapon(a, w) {
with (eval (("fqTEcOL.player" + a) + "MC")) {
vzSwjY = 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 = fqTEcOL.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 = fqTEcOL.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 (("fqTEcOL.player" + a) + "MC").hexColor = RGBToHex(sr0, sg0, sb0, 100);
eval (("fqTEcOL.player" + a) + "MC").spinnerArray = new Array();
eval (("fqTEcOL.player" + a) + "MC").petArray = new Array();
with (eval (("fqTEcOL.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) {
with (eval (("fqTEcOL.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;
tqHfIW = m;
walk = wk;
xVel = xV;
yVel = yV;
tRotVel = trv;
lqMGgx = 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, tqHfIW, xVel, yVel, vzSwjY);
xyVel = lqbFFz(_x + fqTEcOL._x, _y + fqTEcOL._y, xyVel[0], xyVel[1]);
xyVel = ehbdybe(xyVel[0], xyVel[1], mod, tqHfIW);
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 (("fqTEcOL.indicator" + a) + "MC")._x = _x;
eval (("fqTEcOL.indicator" + a) + "MC")._y = _y;
eval (("fqTEcOL.pet" + a) + "MC")._x = _x;
eval (("fqTEcOL.pet" + a) + "MC")._y = _y;
}
gxyhDYy._rotation = smoothRot(gxyhDYy._rotation, absRot, remoteRotSmoothing);
frame = animatePlayer(("fqTEcOL.player" + a) + "MC", mod, walk, vwjxOy, vzSwjY, frame, vel, facing, inv);
}
}
}
}
function playerIsWithinDrawDistance(screenCoordX, screenCoordY) {
if (screenCoordY > -100) {
if (screenCoordY < 500) {
if (screenCoordX > -100) {
if (screenCoordX < 650) {
return(true);
}
}
}
}
return(false);
}
function playerIsWithinFiringRange(screenCoordX, screenCoordY) {
if (screenCoordY > -400) {
if (screenCoordY < 800) {
if (screenCoordX > -400) {
if (screenCoordX < 950) {
return(true);
}
}
}
}
return(false);
}
function remotePlayerPrediction(a) {
if (a != undefined) {
with (eval (("fqTEcOL.player" + a) + "MC")) {
if (mod != "dead") {
if (playerIsWithinDrawDistance(_x + fqTEcOL._x, _y + fqTEcOL._y)) {
showPlayer(a, true);
xyVel = ygsfeyb(facing, walk, tqHfIW, xVel, yVel, vzSwjY);
xyVel = lqbFFz(_x + fqTEcOL._x, _y + fqTEcOL._y, xyVel[0], xyVel[1]);
xyVel = ehbdybe(xyVel[0], xyVel[1], mod, tqHfIW);
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);
gxyhDYy._rotation = smoothRot(gxyhDYy._rotation, absRot, remoteRotSmoothing);
frame = animatePlayer(("fqTEcOL.player" + a) + "MC", mod, walk, vwjxOy, vzSwjY, frame, vel, facing, yfbstversv);
eval (("fqTEcOL.indicator" + a) + "MC")._x = _x;
eval (("fqTEcOL.indicator" + a) + "MC")._y = _y;
eval (("fqTEcOL.pet" + a) + "MC")._x = _x;
eval (("fqTEcOL.pet" + a) + "MC")._y = _y;
} else {
showPlayer(a, false);
}
}
}
}
}
function showPlayer(a, playerVisible) {
eval (("fqTEcOL.indicator" + a) + "MC")._visible = playerVisible;
eval (("fqTEcOL.pet" + a) + "MC")._visible = playerVisible;
eval (("fqTEcOL.player" + a) + "MC")._visible = playerVisible;
}
function updateLocalPlayerSpinnerAndPet() {
var _local2 = player.spinners[player.jhHtWQ];
fqTEcOL.attachMovie("indicatorMC" + padStr(_local2.num, 2), "charIndicatorMC", 1555);
setCustomObject2Colors(fqTEcOL.charIndicatorMC.subIndicatorMC.colorMC0, fqTEcOL.charIndicatorMC.subIndicatorMC.colorMC1, _local2.red0, _local2.green0, _local2.blue0, _local2.red1, _local2.green1, _local2.blue1, 75);
var _local1 = player.pets[player.vwEGyv];
gxyAWm.attachMovie(("petBehavior" + petBehavior[Number(_local1.num)]) + "MC", "charPetMC", 7777);
var _local3 = gxyAWm.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 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 initializeRemotePlayersLobby() {
remotePlayersLobby = new Array();
remotePlayersLobby[0] = new Array();
remotePlayersLobby[0][_serverID] = player.id;
remotePlayersLobby[0][_userName] = player.jhGMKF;
remotePlayersLobby[0][_hexColor] = player.hexColor;
remotePlayersLobby[0][_kills] = player.tqITaO;
remotePlayersLobby[0][_userLevel] = player.userLevel;
remotePlayersLobby[0][_isBallistick] = Boolean(player.kkswbu);
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 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 = vzsmzK(random(numClassicMapsCompat));
} else {
var _local1 = vzsmzK(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 + vzsmzK(_local4);
}
_local4++;
}
} else {
var _local4 = 0;
while (_local4 < mapList.length) {
if (((_local4 < numClassicMaps) && (includeClassicMaps)) || ((_local4 >= numClassicMaps) && (includeBallistickMaps))) {
_local1 = _local1 + vzsmzK(_local4);
}
_local4++;
}
}
if (includeFeatureMaps) {
var _local4 = 0;
while (_local4 < featureMapList.length) {
_local1 = _local1 + vzsmzK(_local4 + 42);
_local4++;
}
}
if (includeCustomMaps) {
var _local4 = 0;
while (_local4 < player.vwcTCi) {
_local1 = _local1 + vzsmzK(_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 + vzsmzK(_local4);
}
_local4++;
}
} else {
var _local4 = 0;
while (_local4 < mapList.length) {
if (((_local4 < numClassicMaps) && (includeClassicMaps)) || ((_local4 >= numClassicMaps) && (includeBallistickMaps))) {
_local1 = _local1 + vzsmzK(_local4);
}
_local4++;
}
}
if (includeFeatureMaps) {
var _local4 = 0;
while (_local4 < featureMapList.length) {
_local1 = _local1 + vzsmzK(_local4 + 42);
_local4++;
}
}
if (includeCustomMaps) {
var _local4 = 0;
while (_local4 < player.vwcTCi) {
_local1 = _local1 + vzsmzK(_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 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) {
qkewUQ("\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 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") {
tqjQfy(_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)));
vzMAQs(_local2, Number(_local1.substr(1, 1)));
} else if (_local4 == "7") {
jhduUc(_local2, _local1.substr(0, IDLEN), charToNum(_local1.substr(IDLEN, 1)), Number(trim(_local1.substr(IDLEN + 1, 3))));
} else if (_local4 == "8") {
vwKPeZ(_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 < vzlnjm.kkOAEj) {
_local5[_local3] = Number(trim(_local1.substr(_local3 * 5, 5)));
_local3++;
}
updateWeaponSpawnTimers(_local5);
} else if (_local4 == "K") {
kkhhvE(_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))), stripCharacter(_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 < vzlnjm.kkOAEj) {
_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))), stripCharacter(_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 remoteChatMsg(a, m) {
if (optionLanguageFilter) {
if (new String(player.id) ne new String(a)) {
m = jhlvCF(m);
}
}
if (getName(a) != undefined) {
if ((m.length <= lqDrVN) && (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) ne new String(a)) {
m = jhlvCF(m);
}
}
if (remotePlayersLobby[_local1][_userName].length > 0) {
if ((((m.length <= vwtdfA) && (isLegalChatString(m))) || (m == ">VIP<")) || (m == ">UNVIP<")) {
if ((((a != lastChatSenderID) || ((getTimer() - lastChatMsgReceived) > (qkTdUA / 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][_userLevel] >= 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][_userLevel] >= 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][_userLevel] >= 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][_userLevel] >= 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 kkhhvE(a, k) {
if (a != k) {
if (!kkRCdb) {
voteKickID = k;
kkRCdb = true;
voteKickVoteCount = 1;
voteKickStartTime = lqBNXB;
if (k != player.id) {
displayWarning(((("\r" + voteKickText[1]) + getColoredName(k)) + "\r") + voteKickText[2], ((("\r" + voteKickText[1]) + getName(k)) + "\r") + voteKickText[2], zqhhqY);
}
} else {
voteKickVoteCount++;
}
}
}
function jhduUc(a, k, w, deg) {
if (a != k) {
x = eval (("fqTEcOL.player" + a) + "MC")._x + fqTEcOL._x;
y = eval (("fqTEcOL.player" + a) + "MC")._y + fqTEcOL._y;
animateDeath(("fqTEcOL.player" + a) + "MC", a, w, deg, eval (("fqTEcOL.player" + a) + "MC").zqRuLy, x, y);
setPetAnimation(("fqTEcOL.pet" + a) + "MC.subPetMC.petMC", "death");
setPetAnimation(("fqTEcOL.pet" + k) + "MC.subPetMC.petMC", "kill");
with (eval (("fqTEcOL.player" + a) + "MC")) {
zqhUQj++;
zqRuLy = 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 (("fqTEcOL.player" + k) + "MC")) {
kills++;
zqRuLy++;
}
if (k == player.id) {
player.addToScore(1);
setPetAnimation("gxyAWm.charPetMC.subPetMC.petMC", "kill");
player.currentRoundWeaponKills[w]++;
}
}
}
function vwKPeZ(a, x, y) {
with (eval (("fqTEcOL.player" + a) + "MC")) {
animateSpawn("vwKPeZ() called animateSpawn()");
_x = (absX = (lastUpdateX = x));
_y = (absY = (lastUpdateY = y));
nameMC._visible = true;
if (textMC.localIdText.text != 0) {
adjustAndPlaySound(SFXspawn[textMC.localIdText.text], (_x + fqTEcOL._x) - gxyAWm._x, (_y + fqTEcOL._y) - gxyAWm._y);
}
attachMovie("remoteSpawnFX", "remoteSpawnFX", 1203);
eval (("fqTEcOL.indicator" + a) + "MC")._x = _x;
eval (("fqTEcOL.indicator" + a) + "MC")._y = _y;
setPetAnimation(("fqTEcOL.pet" + a) + "MC.subPetMC.petMC", "idle");
eval (("fqTEcOL.pet" + a) + "MC")._x = _x;
eval (("fqTEcOL.pet" + a) + "MC")._y = _y;
showPlayer(a, playerIsWithinDrawDistance(_x + fqTEcOL._x, _y + fqTEcOL._y));
}
}
function recieveFindPlayerResponse(displayString) {
var _local2 = displayString.indexOf(":") + 2;
if (_local2 != 1) {
displayString = ((displayString.substr(0, _local2) + "\"") + displayString.substr(_local2, displayString.length - _local2)) + "\"";
}
if (gameArea == _areaLobby) {
addLobbyMsg(">> " + displayString, ">> " + displayString);
} else if (gameArea == _areaPlaying) {
addHUDMsg(">> " + displayString, ">> " + displayString, 8000);
}
}
function recieveGlobalMessage(displayString) {
_root.attachMovie("window304GlobalMessageMC", "windowGlobalMessageMC", 200009, {_x:143, _y:95});
windowGlobalMessageMC.msgText0.text = (windowGlobalMessageMC.msgText1.text = displayString);
}
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 if (roomsLobby[roomCountLobby][2].substr(0, 1) != "!") {
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)) && (roomsLobby[roomCountLobby][2].substr(0, 1) == "!")) {
_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 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 = (lqBNXB = Number((roomDetail.substr(3, roomDetail.length - 3) - tqKHBs) - jhvuFH));
} 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.jhGMKF;
_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();
}
qkewUQ(((((((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.vwcTCi) > 0)) {
mapListCustom = new Array();
var index = 0;
while (index < Number(player.vwcTCi)) {
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.vwcTCi)) {
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.vwcTCi)) {
if ((customMapArray[index] == "") || (customMapArray[index] == undefined)) {
mapListCustom[index] = editorText[49];
} else {
mapListCustom[index] = customMapArray[index];
}
index++;
}
updateMapSlotsShop();
}
}
function recieveOwnedItemList(dataStr) {
player.vwcTCi = 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.vwcTCi = Number(player.vwcTCi) + 1;
} else if (_local6 >= 200) {
if (_local7) {
profileSelectedPet = (player.vwEGyv = 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.jhHtWQ = 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 _local8 = dataStr.substr(0, IDLEN);
var _local4 = dataStr.substr(IDLEN, dataStr.length - IDLEN);
var _local10 = _local4.substr(38, _local4.length - 38);
var _local2 = _local10.split(";");
player.jhGMKF = stripCharacter(_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 = _local8;
player.tqITaO = int(_local2[0]);
player.pDeaths = int(_local2[1]);
player.pWins = int(_local2[2]);
player.pLosses = int(_local2[3]);
player.pRoundsStarted = int(_local2[4]);
player.kkswbu = Boolean(int(_local2[5]));
daysToPassExpiry = int(_local2[6]);
ticketWaiting = Boolean(int(_local2[7]));
player.vwFMff = int(_local2[8]);
player.userLevel = int(_local2[9]);
if (Boolean(player.kkswbu)) {
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 _local9 = getRainbowHtml(adminMsgHtml);
var _local5 = "#EFEFFF";
addLobbyMsg(_local9 + 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.kkswbu) && (daysToPassExpiry <= passExpiryDialogueThreshhold)) {
var _local6 = new Date();
if (_local6.getDate() != lastExpiryDialogueDate) {
lastExpiryDialogueDate = _local6.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]) + daysToPassExpiry) + 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 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") {
qkewUQ("\r" + lobbyText[62], "title");
} else if (gameArea == _areaPlaying) {
if (loggedIn) {
if (errorCode == "2") {
if (Boolean(player.kkswbu)) {
returnToLobby(lobbyText[68]);
} else {
returnToLobby(lobbyText[61]);
}
} else if (errorCode == "4") {
returnToLobby(voteKickText[3]);
} else if (errorCode == "5") {
returnToLobby(lobbyText[71]);
} 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 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 sendFindPlayerRequest(userName) {
socket[serverNum].send("0h" + userName);
}
function sendReportPlayer(userID, reasonCode) {
socket[serverNum].send(("0k" + userName) + reasonCode);
}
function sendModeratorBanNameOnly(banUserName, banPeriod, userMsg) {
socket[serverNum].send((((("0l" + banUserName) + ";") + banPeriod) + ";") + userMsg);
}
function sendModeratorKillRoom(killRoomName) {
socket[serverNum].send("0m" + killRoomName);
}
function sendPrivateMessage(a, m) {
var _local1 = getLocalIDLobby(a);
if (_local1 != -1) {
if (a != player.id) {
player.sendChatMsgPrivate(m, a);
zqggLX("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 sendMapRating(rating) {
socket[serverNum].send("0i" + rating);
}
function getPosition(s, dt) {
var position = 1;
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("fqTEcOL.player" + remotePlayers[i]) + "MC")) {
if ((kills > s) || ((kills == s) && (zqhUQj < dt))) {
position++;
}
}
}
i++;
}
position = Math.min(position, playerCount);
return(position);
}
function animateDeath(mc, a, w, deg, kss, x, y) {
if (deg < 0) {
deg = deg + 360;
}
var radAngle = (Math.PI / (180 * (deg + 270)));
var maxDistance = (int(deathDistance.length) - 1);
var d = 0;
while (d < int(deathDistance.length)) {
var xHit = int(x + (Math.cos(radAngle) * deathDistance[d]));
var yHit = int(y + (Math.sin(radAngle) * deathDistance[d]));
if (fqTEcOL.c.hitTest(xHit, yHit, true)) {
maxDistance = Math.max(0, d - 1);
d = int(deathDistance.length);
}
d++;
}
with (eval (mc)) {
deathMC._visible = 1;
rnd = Math.max(random(2) + maxDistance, 1);
deathMC.gotoAndStop(rnd);
deathMC.dieMC.gotoAndPlay(1);
deathMC._rotation = deg - 90;
if (kss > 0) {
soulHellMC._visible = 1;
soulHellMC.gotoAndPlay(1);
soulHellMC._rotation = deg + 90;
} else {
soulHeavenMC._visible = 1;
soulHeavenMC.gotoAndPlay(1);
soulHeavenMC._rotation = deg + 90;
}
gxyhDYy._visible = 0;
fqqZCx._visible = 0;
adjustAndPlaySound(SFXdeath[rnd - 1][textMC.localIdText.text], x - gxyAWm._x, y - gxyAWm._y);
}
eval (("fqTEcOL.indicator" + a) + "MC")._visible = false;
}
function attachParticles(tf, w, x, y, r) {
if (tf) {
particleCount++;
if (particleCount > maxParticles) {
particleCount = 0;
}
if (optionParticles) {
fqTEcOL.attachMovie(w + "ParticleMC", "particle" + particleCount, 5000 + particleCount);
} else {
fqTEcOL.attachMovie(w + "ParticleLowMC", "particle" + particleCount, 5000 + particleCount);
}
with (eval ("fqTEcOL.particle" + particleCount)) {
_x = x;
_y = y;
_rotation = r;
}
}
}
function playerDoneAttack(a) {
with (eval (("fqTEcOL.player" + a) + "MC")) {
vwjxOy = true;
if ((mod == "walk") && (!walk)) {
gxyhDYy.gotoAndStop(weapons[vzSwjY].runAnim + "Idle");
} else {
gxyhDYy.gotoAndStop(weapons[vzSwjY].idleAnim + "Idle");
}
}
}
function ygsfeyb(dir, walk, movement, xVel, yVel, w) {
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.lqHoCQ * weapons[w].walkingSpeed, 2) * 2) * 0.00376) * frameDeltaTime, player.lqHoCQ * 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.lqHoCQ * weapons[w].walkingSpeed) * frameDeltaTime) / 133, player.lqHoCQ * 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.jhvzpu;
yVel = yVel * player.jhvzpu;
}
}
xVel = xVel * friction;
yVel = yVel * friction;
return(new Array(xVel, yVel));
}
function lqbFFz(x, y, xVel, yVel) {
if (xVel > 0) {
if (fqTEcOL.c.hitTest((x + xVel) + 6, y + 6, true) || (fqTEcOL.c.hitTest((x + xVel) + 6, y - 6, true))) {
xVel = xVel * -0.5;
}
} else if (xVel < 0) {
if (fqTEcOL.c.hitTest((x + xVel) - 6, y + 6, true) || (fqTEcOL.c.hitTest((x + xVel) - 6, y - 6, true))) {
xVel = xVel * -0.5;
}
}
if (yVel > 0) {
if (fqTEcOL.c.hitTest(x + 6, (y + yVel) + 6, true) || (fqTEcOL.c.hitTest(x - 6, (y + yVel) + 6, true))) {
yVel = yVel * -0.5;
}
} else if (yVel < 0) {
if (fqTEcOL.c.hitTest(x + 6, ((y + yVel) - 6) - 1, true) || (fqTEcOL.c.hitTest(x - 6, ((y + yVel) - 6) - 1, true))) {
yVel = yVel * -0.5;
}
}
return(new Array(xVel, yVel));
}
function ehbdybe(xVel, yVel, mod, movement) {
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, vwjxOy, w, f, vel, facing, inv) {
if (mod == "walk") {
if (walk) {
if (vwjxOy) {
with (eval (mc)) {
gxyhDYy.gotoAndStop(weapons[w].idleAnim + "Idle");
}
}
if (vel > 1.5) {
f = f + (vel / 3.5);
if (int(f) > 40) {
f = f - 40;
}
with (eval (mc)) {
fqqZCx.gotoAndStop("walk");
fqqZCx.legs.gotoAndStop(int(f));
}
}
} else {
if (vwjxOy) {
with (eval (mc)) {
gxyhDYy.gotoAndStop(weapons[w].runAnim + "Idle");
}
}
if (vel > player.lqHoCQ) {
f = f + (vel / 9);
if (int(f) > 18) {
f = f - 18;
}
with (eval (mc)) {
fqqZCx.gotoAndStop("run");
fqqZCx.legs.gotoAndStop(int(f));
}
}
}
} else if (mod == "stand") {
if (vwjxOy) {
with (eval (mc)) {
gxyhDYy.gotoAndStop(weapons[w].idleAnim + "Idle");
}
}
with (eval (mc)) {
fqqZCx.gotoAndStop("idle");
}
f = 6;
}
var newRot = smoothRot(eval (mc).fqqZCx._rotation, getTargetRotation(facing), player.rotVel);
with (eval (mc)) {
fqqZCx._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 updateWeaponSpawns() {
var i = 0;
while (i < vzlnjm.kkOAEj) {
if (vzlnjm.vzFNmT[i].vzPrQm > 0) {
vzlnjm.vzFNmT[i].vzPrQm = Math.max(0, int(vzlnjm.vzFNmT[i].vzPrQm - frameDeltaTime));
} else if (eval (("fqTEcOL.pickup" + i) + "MC").hitTest(gxyAWm._x, gxyAWm._y, true) && (player.mod != "dead")) {
w = vzlnjm.vzFNmT[i].vzSwjY;
if (w != player.vzSwjY) {
player.tqlSUW(vzlnjm.vzFNmT[i].vzSwjY, i);
eval (("fqTEcOL.pickup" + i) + "MC").removeMovieClip();
vzlnjm.vzFNmT[i].vzPrQm = vzlnjm.vzFNmT[i].delay;
adjustAndPlaySound(eval (("SFX" + weapons[vzlnjm.vzFNmT[i].vzSwjY].attackAnim) + "Pickup"), 0, 0);
}
} else if ((vzlnjm.vzFNmT[i].vzPrQm <= 0) && (eval (("fqTEcOL.pickup" + i) + "MC") == null)) {
spawnWeapon(i, vzlnjm.vzFNmT[i].vzSwjY, vzlnjm.vzFNmT[i].x, vzlnjm.vzFNmT[i].y);
}
i++;
}
}
function spawnWeapon(n, w, x, y) {
fqTEcOL.attachMovie(("pickup" + weapons[w].attackAnim) + "MC", ("pickup" + n) + "MC", n + 6000);
with (eval (("fqTEcOL.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 < vzlnjm.kkOAEj) {
if (vzlnjm.vzFNmT[n].vzPrQm <= 0) {
if (Math.abs((eval (("fqTEcOL.pickup" + n) + "MC")._x + fqTEcOL._x) - 275) < 325) {
if (Math.abs((eval (("fqTEcOL.pickup" + n) + "MC")._y + fqTEcOL._y) - 200) < 250) {
with (eval (("fqTEcOL.pickup" + n) + "MC")) {
_visible = 1;
weaponMC._rotation = shadowMC._rotation++;
weaponMC._y = y;
shadowMC._xscale = (shadowMC._yscale = scale);
shadowMC._alpha = alpha;
}
} else {
with (eval (("fqTEcOL.pickup" + n) + "MC")) {
_visible = 0;
}
}
} else {
with (eval (("fqTEcOL.pickup" + n) + "MC")) {
_visible = 0;
}
}
}
n++;
}
}
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(vzlnjm.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();
vzlnjm.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;
vzlnjm.fileName = fName;
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local3.sendAndLoad((((localFilePath + "maps/") + mapVersionNum.toString()) + "/") + 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 {
qkewUQ("\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)));
kkBQxl();
vzlnjm.jhGMKF = metaData.substr(6, metaData.length - 6);
vzlnjm.roundTime = Number(roundTimeData.substr(0, 4));
vzlnjm.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++;
}
vzlnjm.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)))) {
vzlnjm.spawnPoint[vzlnjm.playerSpawnPoints].x = int(_local3.substr(0, 4));
vzlnjm.spawnPoint[vzlnjm.playerSpawnPoints].y = int(_local3.substr(5, 4));
vzlnjm.playerSpawnPoints++;
}
_local4++;
}
vzlnjm.kkOAEj = 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)))) {
vzlnjm.vzFNmT[vzlnjm.kkOAEj].x = int(_local3.substr(0, 4));
vzlnjm.vzFNmT[vzlnjm.kkOAEj].y = int(_local3.substr(5, 4));
vzlnjm.vzFNmT[vzlnjm.kkOAEj].vzSwjY = int(_local3.substr(10, 4));
vzlnjm.vzFNmT[vzlnjm.kkOAEj].delay = int(_local3.substr(15, 4)) * 1000;
vzlnjm.vzFNmT[vzlnjm.kkOAEj].vzPrQm = 3000;
vzlnjm.vzFNmT[vzlnjm.kkOAEj].recievedRemoteTimer = false;
vzlnjm.kkOAEj++;
}
_local5++;
}
earthMinX = (-(areaWidth - 11.5)) * 50;
earthMinY = (-(areaHeight - 8.5)) * 50;
lqarIS = (lqQmGI = 0);
fqTEcOLX = (fqTEcOLY = 0);
leftCol = (topRow = (oldLeftCol = (oldTopRow = 0)));
if (initial) {
tqrRAZ();
}
vztMPq();
var _local6 = 0;
while (_local6 < 100) {
updateEarth();
_local6++;
}
initializeRoundVariablePostMapLoad();
player.spawn();
addHUDMsg((((((getColoredName(a) + HUDText[2]) + "'") + getRoomDisplayNameInGame(currentRoomName)) + "' ") + "- ") + vzlnjm.jhGMKF, (((((getName(a) + HUDText[2]) + "'") + getRoomDisplayNameInGame(currentRoomName)) + "' ") + "- ") + vzlnjm.jhGMKF, 10000);
if (playerCount != 0) {
wipeMC.gotoAndPlay(1);
}
}
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 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(lqBNXB)))));
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 (("fqTEcOL.player" + remotePlayers[i]) + "MC")) {
p[n] = getPosition(kills, zqhUQj);
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 ((!kkRCdb) || ((pp[n] == voteKickID) && (!voteKickVoted))) {
if ((voteKickInitiateTime - lqBNXB) >= (kkKMpm / 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 (("fqTEcOL.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 (("fqTEcOL.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 (("fqTEcOL.player" + pp[n]) + "MC")) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
if ((zqhUQj != undefined) && (zqhUQj != null)) {
htm = htm + (zqhUQj + "<br>");
} else {
htm = htm + "-<br>";
}
if (pp[n] == player.id) {
htm = htm + "</FONT>";
}
if ((zqhUQj != undefined) && (zqhUQj != null)) {
str = str + (zqhUQj + "\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 > lqKPXL) {
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.zqjBYI) != getRank(player.tqITaO)) && (!currentRoomIsPrivate)) {
with (eval (("fqTEcOL.player" + player.id) + "MC")) {
rank = getRank(player.tqITaO);
}
_root.attachMovie("rankGainMC", "rankGainMC", 200030);
rankGainMC._x = 300;
rankGainMC._y = 100;
var iconMC = getRankIconName(player.tqITaO);
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.tqITaO)) - 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 (("fqTEcOL.player" + remotePlayers[i]) + "MC")) {
p[n] = getPosition(kills, zqhUQj);
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 (("fqTEcOL.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 (("fqTEcOL.player" + pp[n]) + "MC")) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
if ((zqhUQj != undefined) && (zqhUQj != null)) {
htm = htm + (zqhUQj + "<br>");
} else {
htm = htm + "-<br>";
}
if (pp[n] == player.id) {
htm = htm + "</FONT>";
}
if ((zqhUQj != undefined) && (zqhUQj != null)) {
str = str + (zqhUQj + "\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.jhHtWQ];
_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 (("fqTEcOL.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 (tqgHZJIntervalID != null) {
clearInterval(tqgHZJIntervalID);
tqgHZJIntervalID = null;
}
if (!currentRoomIsPrivate) {
player.tqITaO = player.tqITaO + 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);
zqggLX("windowShow", sumMC);
sumMC._x = 0;
sumMC._y = -17;
_root.attachMovie("gfTruwFZApKOSG", "gfTruwFZApKOSG", 200003);
gfTruwFZApKOSG._x = 405;
gfTruwFZApKOSG._y = 193;
clearGameGarbage();
displaySummaryScoresAnims();
clearInterval(keepAliveIntervalID);
keepAliveIntervalID = setInterval(sendKeepAlive, keepAliveTime);
sumMC.thumbsMC.thumbsUpThumbsDownMC.msgText0.text = (sumMC.thumbsMC.thumbsUpThumbsDownMC.msgText1.text = summaryText[5]);
if (!Boolean(player.kkswbu)) {
summaryStartTime = getTimer() + (Math.max(-tqKHBs, lqBNXB) * 1000);
} else {
summaryStartTime = getTimer() + (Math.max(-(tqKHBs + jhvuFH), lqBNXB) * 1000);
}
adCalled = false;
var _local2 = 0;
while (_local2 < numWeapons) {
_local2++;
}
if (domainName.indexOf("KONGREGATE.COM") != -1) {
performKongregateRoundEndStatsSubmission();
}
gotoAndStop ("roundSummaryFrame");
}
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);
}
lqBNXB = (roundTime + tqKHBs) + jhvuFH;
lastRoundTimerUpdate = 1000;
sendRoomDetailRequest(currentRoomName, "updateRoundTime");
if (mapNum < 31) {
if (serverType[serverNum] == "COMPATIBILITY") {
vzlnjm.fileName = mapListCompat[mapNum];
} else {
vzlnjm.fileName = mapList[mapNum];
}
} else if (mapNum >= 42) {
vzlnjm.fileName = featureMapList[mapNum - 42];
} else {
vzlnjm.fileName = "Custom Map Slot " + (mapNum - 31);
}
initializeRoundVariables();
gameMode = 0;
cursorCrossHair();
gotoAndStop ("preMain");
}
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);
sendMapRating(rating);
}
function cursorCrossHair() {
var _local2 = xqtEcrGq._rotation;
_root.attachMovie(("cursor" + optionCrosshair) + "MC", "xqtEcrGq", 987654321);
if (optionCrosshair == 0) {
xqtEcrGq._rotation = _local2;
xqtEcrGq.xqtEcrGq_._rotation = -(_local2 * 3);
} else if ((optionCrosshair == 2) || (optionCrosshair == 5)) {
xqtEcrGq._rotation = _local2;
}
startDrag ("xqtEcrGq", true);
xqtEcrGq.onMouseMove = function () {
updateAfterEvent();
};
if (serverType[serverNum] != "COMPATIBILITY") {
Mouse.hide();
} else {
xqtEcrGq._alpha = 50;
}
}
function cursorNormal() {
stopDrag();
Mouse.show();
xqtEcrGq.removeMovieClip();
xqtEcrGq.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, "xqtEcrGq", 987654321, {_x:_root._xmouse, _y:_root._ymouse});
startDrag ("xqtEcrGq", true);
xqtEcrGq.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() {
qxYEYJ = 0;
gameMode = 99;
lastGameMode = 0;
lastSendTime = 0;
avgDeltaTime = 100;
sendImmediate = false;
curFrameTime = 0;
frameDeltaTime = 133;
frameRate = 30;
chatting = false;
kkRCdb = false;
voteKickVoted = false;
voteKickID = null;
voteKickVoteCount = 0;
voteKickStartTime = null;
voteKickInitiateTime = 10000;
wipe = true;
sendCount = (clickCount = (frameCount = (warnFPSCount = (warnPingCount = (framesSinceRoundStart = 0)))));
displayControlHelp = true;
noInputTime = 0;
HUDMsg = new Array();
socketStack = new Array();
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("fqTEcOL.player" + remotePlayers[i]) + "MC")) {
facing = "20";
walk = false;
tqHfIW = false;
mod = "spawn";
lqMGgx = false;
xVel = 0;
yVel = 0;
vel = 0;
kills = 0;
zqRuLy = 0;
zqhUQj = 0;
recievedGameState = false;
frame = 1;
vwjxOy = true;
vzSwjY = 0;
newData = false;
newXML = null;
newDataStr = false;
newSocket = "";
syncedFrame = false;
remoteAvgPing = 100;
lastRemoteAvgPing = 100;
resetDeltaTimes();
animateSpawn();
}
}
i++;
}
player.lqkSWy = (player.vzBehO = 60);
player.qknWKM = -1;
player.qxClCA = 11;
player.qxZDXd = player.qxClCA - syfbsde;
player.zqhUQj = 13;
player.lqQppy = player.zqhUQj - kahseyu;
player.zqRuLy = (player.vzyPcC = 0);
player.zqjBYI = getRank(player.tqITaO);
var i = 0;
while (i < numWeapons) {
player.currentRoundWeaponAttacks[i] = 0;
player.currentRoundWeaponKills[i] = 0;
i++;
}
player.walk = false;
player.tqHfIW = (player.qxCyQC = (player.vwdLxr = (player.qxadck = false)));
player.qxYeHq = (player.jhlJoN = (player.vwjxOy = true));
player.vel = (player.xVel = (player.yVel = (player.jhFrnG = (player.lqKbrj = (player.jhyWtw = (player.kkSwge = (player.zqfUYC = (player.jhVihd = (player.vzSwjY = 0)))))))));
player.facing = (player.tqLmWD = "20");
player.mod = "dead";
player.frame = 1;
player.zqLtRH = (player.vwnjRK = 150);
player.lqRwWU = (player.lqJPfA = 133.3);
player.lqMGgx = true;
if (serverType[serverNum] == "COMPATIBILITY") {
optionQuality = 0;
optionBlood = 0;
optionParticles = false;
player.qxRVNf = reloadModifierCompat;
player.lqHoCQ = qxlVVP;
player.maxVel = playerMaxVelCompat;
maxPing = maxPingCompat;
minFPS = minFPSCompat;
serverTimeout = serverTimeoutCompat;
scrollSpeed = scrollSpeedCompat;
} else {
player.qxRVNf = 1;
player.lqHoCQ = vzQhhk;
player.maxVel = playerMaxVel;
maxPing = maxPingStandard;
minFPS = minFPSStandard;
serverTimeout = serverTimeoutStandard;
scrollSpeed = scrollSpeedStandard;
}
checkForClientUpdate();
}
function initializeRoundVariablePostMapLoad() {
lastFrameTime = getTimer();
uhasfnsdyf(550, 400);
clearInterval(keepAliveIntervalID);
oneSecondIntervalID = setInterval(lqaRZO, 1000);
roundTimerIntervalID = setInterval(updateRoundTimer, 1000);
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 (("fqTEcOL.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) {
if (roundActive) {
clearGameGarbage();
} else {
clearSummaryGarbage();
}
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(oneSecondIntervalID);
clearInterval(performanceIntervalID);
clearInterval(enterAreaIntervalID);
clearInterval(noRemotePlayersIntervalID);
Key.removeListener(gameKeyListener);
Key.removeListener(enterAreaListener);
windowMC.removeMovieClip();
leadMC.removeMovieClip();
gxyAWm.damageFX.removeMovieClip();
gxyAWm.shakeFX.removeMovieClip();
gxyAWm.deathFX.removeMovieClip();
gxyAWm.localDamageFX.removeMovieClip();
gxyAWm.attachMovie("spawnFX", "spawnFX", 1203);
_root.attachMovie("resetFX", "resetFX", 200010);
var w = 0;
while (w < 8) {
if (eval (("fqTEcOL.pickup" + w) + "MC") != null) {
eval (("fqTEcOL.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(kkbdAf);
clearInterval(joinPrivateTimeoutIntervalID);
clearInterval(keepAliveIntervalID);
}
function clearProfileGarbage() {
windowMC.removeMovieClip();
window2MC.removeMovieClip();
clearInterval(keepAliveIntervalID);
clearInterval(kkbdAf);
}
function clearShopGarbage() {
windowMC.removeMovieClip();
window2MC.removeMovieClip();
clearInterval(keepAliveIntervalID);
clearInterval(kkbdAf);
}
function clearEditorGarbage() {
delete bgScrollMC.onEnterFrame;
Key.removeListener(editorKeyListener);
windowHelpMC.removeMovieClip();
windowMC.removeMovieClip();
window3MC.removeMovieClip();
tilesMC.removeMovieClip();
tileSetsMC.removeMovieClip();
uhasfnsdyf(550, 400);
cursorNormal();
}
function pressGetAPass() {
noInputTime = 0;
if (domainName.indexOf("KONGREGATE.COM") != -1) {
kongregatePressGetAPass();
} else {
externalPressGetAPass();
}
}
function pressManageAccount() {
noInputTime = 0;
if (domainName.indexOf("KONGREGATE.COM") != -1) {
_root.attachMovie("window304ManageAccountMC", "windowMC", 200000, {_x:133, _y:85});
windowMC.titleText0.text = (windowMC.titleText1.text = accountText[22]);
windowMC.msgText0.text = (windowMC.msgText1.text = accountText[23]);
windowMC.accountText0.text = (windowMC.accountText1.text = (((((logInText[0] + " ") + uName) + "\r") + logInText[1]) + " ") + uPass);
} else {
showShopButtons(false);
_root.attachMovie("window470ChangePasswordMC", "windowMC", 200000, {_x:45, _y:170});
windowMC.cacheAsBitmap = optionUseBitmapCaching;
zqggLX("windowShow", windowMC);
var i = 0;
while (i < 4) {
var n = 0;
while (n < 2) {
str = ("windowMC.h" + i) + "Text";
with (eval (str + n)) {
text = shopText[i + 24];
}
n++;
}
i++;
}
}
}
function pressChangePasswordOK() {
showChangePasswordTextBoxes(false);
var _local1 = windowMC.pass0Text.text;
var _local2 = windowMC.pass1Text.text;
if (isLegalAccountString(_local1)) {
if (_local1.length > 2) {
if (_local1 == _local2) {
if (windowMC.passOldText.text == uPass) {
APIChangePassword(uName, windowMC.passOldText.text, windowMC.pass0Text.text, onChangePasswordAPIResponse);
} else {
displayChangePasswordMessage(accountText[15]);
}
} else {
displayChangePasswordMessage(accountText[18]);
}
} else {
displayChangePasswordMessage(accountText[9]);
}
} else {
displayChangePasswordMessage(accountText[7]);
}
}
function onChangePasswordAPIResponse(success) {
if (success) {
uPass = windowMC.pass0Text.text;
pressCloseChangePasswordWindow();
displayChangePasswordMessage(accountText[16]);
} else {
displayChangePasswordMessage(accountText[17]);
}
}
function pressCloseChangePasswordWindow() {
showShopButtons(true);
windowMC.removeMovieClip();
}
function showChangePasswordTextBoxes(b) {
windowMC.passOldText._visible = (windowMC.pass0Text._visible = (windowMC.pass1Text._visible = (windowMC.btnXMC._visible = (windowMC.btnOKMC._visible = b))));
}
function displayChangePasswordMessage(msg) {
_root.attachMovie("window304ChangePasswordMessageMC", "window2MC", 200001, {_x:123, _y:10});
zqggLX("windowShow", window2MC);
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
}
function closeChangePasswordMessage() {
showChangePasswordTextBoxes(true);
}
function displayPurchaseMessage(msg) {
_root.attachMovie("window304PurchaseMessageMC", "window2MC", 200001, {_x:123, _y:10});
zqggLX("windowShow", window2MC);
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
}
function closePurchaseMessage() {
}
function launchWindowPersistLogin(postURL) {
noInputTime = 0;
if ((postGetURLMC != undefined) && (postGetURLMC != null)) {
postGetURLMC.removeMovieClip();
}
_root.createEmptyMovieClip("postGetURLMC", 300000);
postGetURLMC.username = uName;
postGetURLMC.key = com.meychi.ascrypt.MD5.calculate(uPass);
postGetURLMC.getURL(postURL, "_blank", "GET");
}
function launchPaymentMethodWindow(postURL, passNum) {
noInputTime = 0;
if ((postGetURLMC != undefined) && (postGetURLMC != null)) {
postGetURLMC.removeMovieClip();
}
_root.createEmptyMovieClip("postGetURLMC", 300000);
postGetURLMC.username = uName;
postGetURLMC.key = com.meychi.ascrypt.MD5.calculate(uPass);
postGetURLMC.pass = passNum;
postGetURLMC.getURL(postURL, "_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] + lqKPXL);
}
var _local11 = Number(commandStr.substr(3, commandStr.length - 3));
if ((((_local11 >= 10) && (_local11 <= 200)) && (_local11 != undefined)) && (_local11 != null)) {
lqKPXL = Number(_local11);
savePreferences();
return(slashText[6] + lqKPXL);
}
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 _local2 = 0;
while (_local2 <= playerCountLobby) {
if (remotePlayersLobby[_local2][_isBallistick] == 1) {
_local8++;
}
_local2++;
}
var _local9 = 0;
_local2 = 0;
while (_local2 < roomsLobby.length) {
var _local4 = arenaBox.getItemAt(_local2).data;
if (roomIsBallistick(_local4)) {
_local9++;
}
_local2++;
}
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 _local2 = 0;
while (_local2 < remotePlayersLobby.length) {
if (remotePlayersLobby[_local2][1] == _local4) {
_local5 = true;
var _local6 = remotePlayersLobby[_local2][0];
}
_local2++;
}
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 _local14 = commandStr.substr(2, commandStr.length - 2);
sendPrivateMessage(lastPrivateMessageSenderID, _local14);
return("");
}
SFXBTNerror.start();
return(slashText[9]);
}
if (commandStr.substr(0, 9).toLowerCase() == "killroom ") {
var _local12 = commandStr.substr(9, commandStr.length - 9);
if (_local12.length > 0) {
sendModeratorKillRoom(_local12);
return("");
}
SFXBTNerror.start();
return(slashText[7]);
}
}
if (commandStr.substr(0, 6).toLowerCase() == "global") {
var _local3 = commandStr.split(" ");
if ((_local3[1] != undefined) && (_local3[1].length > 0)) {
lastGlobalMsg = commandStr.substr(7, commandStr.length - 7);
player.sendGlobalMsg(lastGlobalMsg);
return("");
}
if (lastGlobalMsg != "") {
player.sendGlobalMsg(lastGlobalMsg);
return("");
}
return(slashText[7]);
}
if (commandStr.substr(0, 7).toLowerCase() == "koninfo") {
return((((("kongregate_username:" + kongregate_username) + ", kongregate_stamp:") + kongregate_stamp) + ", konAPIKey:") + konAPIKey);
}
if (commandStr.substr(0, 7).toLowerCase() == "konsume") {
APIKongregatePurchaseNotification();
return("Consuming Kongregate pass items - You may need to log out of Stick Arena for changes to take effect.");
}
if (commandStr.substr(0, 6).toLowerCase() == "konbuy") {
var _local3 = commandStr.split(" ");
if ((_local3[1] != undefined) && (_local3[1].length > 0)) {
var _local13 = _local3[1];
kongregatePurchaseItem(_local13);
return(("Purchasing Item:" + konItems[_local13]) + "...");
}
return(slashText[28]);
}
if (commandStr.substr(0, 4).toLowerCase() == "find") {
var _local3 = commandStr.split(" ");
if ((_local3[1] != undefined) && (_local3[1].length > 0)) {
var _local4 = _local3[1];
sendFindPlayerRequest(_local4);
return(((slashText[25] + "\"") + _local4) + "\"...");
}
return(slashText[28]);
}
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() == "faq") {
getURL (faqFormattedURL, "_blank");
return(slashText[29]);
}
if (commandStr.toLowerCase() == "eula") {
getURL (eulaURL, "_blank");
return(slashText[30]);
}
if (commandStr.toLowerCase() == "rules") {
getURL (rulesURL, "_blank");
return(slashText[31]);
}
if (commandStr.toLowerCase() == "lostaccount") {
getURL (lostAccountURL, "_blank");
return(slashText[32]);
}
if (commandStr.toLowerCase() == "mod") {
getURL (becomeAModURL, "_blank");
return(slashText[33]);
}
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 _local2 = 0;
while (_local2 < remotePlayersLobby.length) {
if (remotePlayersLobby[_local2][1] == _local4) {
_local5 = true;
var _local6 = remotePlayersLobby[_local2][0];
_local2 = remotePlayersLobby.length;
}
_local2++;
}
} else {
var _local2 = 0;
while (_local2 < remotePlayers.length) {
if (getName(remotePlayers[_local2]) == _local4) {
_local5 = true;
var _local6 = remotePlayers[_local2];
_local2 = remotePlayers.length;
}
_local2++;
}
}
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 _local2 = 0;
while (_local2 < remotePlayersLobby.length) {
if (remotePlayersLobby[_local2][_userName] == _local4) {
_local5 = true;
var _local6 = remotePlayersLobby[_local2][_serverID];
}
_local2++;
}
} else if (gameArea == _areaPlaying) {
var _local2 = 0;
while (_local2 < remotePlayers.length) {
if (getName(remotePlayers[_local2]) == _local4) {
_local5 = true;
var _local6 = remotePlayers[_local2];
}
_local2++;
}
}
if (_local3[0].toLowerCase() == "warn") {
if (_local5) {
var _local10 = commandStr.substr((_local3[0].length + _local3[1].length) + 2, commandStr.length - ((_local3[0].length + _local3[1].length) + 2));
sendModeratorWarn(_local6, _local10);
return(((("Sent warning to " + _local4) + " - \"") + _local10) + "\"");
}
return(slashText[10]);
}
if (_local3[0].toLowerCase().substr(0, 3) == "ban") {
if (_local3[2] != undefined) {
if (_local3[3] != undefined) {
if ((Number(_local3[2]) > 0) && (Number(_local3[2]) < modBanTimes.length)) {
var _local10 = 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])], _local10);
return(((((("Banned Client ID" + _local3[1].substr(1, _local3[1].length - 1)) + " for ") + formatTime(Number(modBanTimes[Number(_local3[2])]))) + " - \"") + _local10) + "\"");
}
if (_local3[0].toLowerCase() == "banname") {
sendModeratorBanNameOnly(_local4, modBanTimes[Number(_local3[2])], _local10);
return(((((("Banned (Name Only) " + _local4) + " for ") + formatTime(Number(modBanTimes[Number(_local3[2])]))) + " - \"") + _local10) + "\"");
}
sendModeratorBan(_local4, modBanTimes[Number(_local3[2])], _local10);
return(((((("Banned " + _local4) + " for ") + formatTime(Number(modBanTimes[Number(_local3[2])]))) + " - \"") + _local10) + "\"");
}
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 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) {
gxyAWm.gxyhDYy._rotation = gxyAWm.gxyhDYy._rotation + 2;
gxyAWm.fqqZCx._rotation = gxyAWm.fqqZCx._rotation + 2;
} else {
char0MC.gxyhDYy._rotation = (char1MC.gxyhDYy._rotation = char1MC.gxyhDYy._rotation + 2);
char0MC.fqqZCx._rotation = (char1MC.fqqZCx._rotation = char1MC.fqqZCx._rotation + 2);
}
animateCount++;
if (animateCount > 60) {
animateCount = 0;
frameNum++;
if (currentTab == _profile) {
gxyAWm.gxyhDYy.gotoAndStop(frameArray[frameNum]);
} else {
char0MC.gxyhDYy.gotoAndStop(frameArray[frameNum]);
char1MC.gxyhDYy.gotoAndStop(frameArray[frameNum]);
}
if (frameNum >= frameArray.length) {
frameNum = -1;
}
}
}
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);
}
function displayXGenAccountCreatedMessage() {
_root.attachMovie("window304XGenAccountCreatedMessageMC", "windowXGenAccountCreatedMC", 200008, {_x:133, _y:85});
windowXGenAccountCreatedMC.titleText0.text = (windowXGenAccountCreatedMC.titleText1.text = accountText[20]);
windowXGenAccountCreatedMC.msgText0.text = (windowXGenAccountCreatedMC.msgText1.text = accountText[23]);
windowXGenAccountCreatedMC.accountText0.text = (windowXGenAccountCreatedMC.accountText1.text = (((((logInText[0] + " ") + uName) + "\r") + logInText[1]) + " ") + replaceAllCharacters(uPass, "*"));
}
function pressMuteButton() {
if (SFXVolume == 0) {
SFXVolume = 100;
} else {
SFXVolume = 0;
}
muteBTNMC.gotoAndStop(Math.ceil(SFXVolume / 100) + 1);
setSFXVolume(SFXVolume);
}
function pressReadRules() {
getURL (rulesURL, "_blank");
}
function debugTrace(str) {
}
var zqTruN = new Array();
var earth;
var earthWidth;
var earthHeight;
var earthMinX;
var earthMinY;
var earthMaxX = 25;
var earthMaxY = 25;
var lqarIS;
var lqQmGI;
var fqTEcOLX;
var fqTEcOLY;
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 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 connectPort = new Array();
var socket = new Array();
var currentRoomName;
var roomCycleMode;
var roomDetailAction;
var roomVariableAction;
var tileSetsWidth = 9;
var tileSetsHeight = 5;
var tilesArray;
var tilesArrayRot;
var tilesArrayMirror;
var tilesArrayCol;
var dragXDif;
var dragYDif;
var maxTilePage;
var numWeapons;
var weapons = new Array();
var BGMVolume = 70;
var SFXVolume = 100;
var globalVolume = 120;
var particles;
var particleGravity = 0.6;
var particleElasticity;
var particleFriction;
var globalParticleTypes = new Array("dirt", "fire", "disintegrate", "space", "stone", "water", "snow");
var _xPosPtcl = 0;
var _yPosPtcl = 1;
var _xVelPtcl = 2;
var _yVelPtcl = 3;
var _colorPtcl = 4;
var destinationParticleBitmap;
var sourceParticleBitmap;
var creditStartTime;
var creditsIntervalID;
var creditsExplodeIntervalID;
var creditsPage;
var creditsPageTime = 3930;
var creditsSFXTimeIntervalID;
var creditsExplodeTime = 2000;
var creditsSFXTime = 1800;
var creditsTransitionTime = 3000;
var creditsMusicLoopTime = 12105;
var creditsMusicLoopIntervalID = 13200;
var creditsTransitionIntervalID;
var creditsBGXScrollSpeed = 0.1;
var creditsBGYScrollSpeed = 0.1;
var creditSounds = new Array(6, 12, 10, 9, 13, 11, 8);
var konAPIKey = "9c875fd0-37f3-a487-8f55-be47d193025e";
var konItems = new Array();
konItems[0] = "1_month_pass";
konItems[1] = "6_month_pass";
konItems[2] = "12_month_pass";
var services = _global.kongregateServices;
var kongregateXGenAccountCreated = false;
var useKongregateAccount = true;
var passGraphicURL = new Array();
passGraphicURL[0] = "http://www.xgenstudios.com/ballistick/ingame/SelectAPass.swf";
passGraphicURL[1] = "http://www.xgenstudios.com/ballistick/ingame/BuyPassKreds1.swf";
passGraphicURL[2] = "http://www.xgenstudios.com/ballistick/ingame/BuyPassKreds6.swf";
passGraphicURL[3] = "http://www.xgenstudios.com/ballistick/ingame/BuyPassKreds12.swf";
passGraphicURL[4] = "http://www.xgenstudios.com/ballistick/ingame/Features.swf";
passGraphicURL[5] = "http://www.xgenstudios.com/ballistick/ingame/BuyPassUSD1.swf";
passGraphicURL[6] = "http://www.xgenstudios.com/ballistick/ingame/BuyPassUSD6.swf";
passGraphicURL[7] = "http://www.xgenstudios.com/ballistick/ingame/BuyPassUSD12.swf";
passGraphicURL[8] = "http://www.xgenstudios.com/ballistick/ingame/SelectAPassXGen.swf";
passGraphicURL[9] = "http://www.xgenstudios.com/ballistick/ingame/NoCash.swf";
var aeufinef = false;
var uonhbfsw = 588;
var mapVersionNum = 563;
var ijsjfnsdjfu = "Hx09TdCC62Nwln1P";
var weufhsdybf = false;
var verifyVersion = true;
var specialOffer = false;
var specialOfferImageMC = "";
var versionCheckURL = "http://server01.xgenstudios.com/stickarena/version_check.php";
var apiURL = "http://api.xgenstudios.com/?";
var buyPassURL = "https://secure.xgenstudios.com/ballistick";
var manageAccountURL = "https://secure.xgenstudios.com/ballistick/manage.php";
var paymentMethodURL = "https://secure.xgenstudios.com/ballistick/payment.php";
var offersURL = "https://secure.xgenstudios.com/ballistick/offers.php";
var faqURL = "http://www.xgenstudios.com/ballistick/faq.dat";
var faqFormattedURL = "https://secure.xgenstudios.com/ballistick/faq.php";
var eulaURL = "http://www.xgenstudios.com/ballistick/eula.dat";
var rulesURL = "http://forums.xgenstudios.com/showthread.php?t=144948";
var lostAccountURL = "http://forums.xgenstudios.com/showthread.php?t=182263";
var becomeAModURL = "http://forums.xgenstudios.com/showthread.php?t=145467";
loadScreenInfoMC.domainNameText.text = (domainName = getDomainName());
if (aeufinef) {
var phpURL = "http://www.xgenstudios.com/stickarena/stick_arena.php";
var comPath = "../com/";
var localFilePath = "";
} else if (domainName.indexOf("XGENSTUDIOS.COM") != -1) {
var phpURL = "stick_arena.php";
var comPath = "/com/";
var localFilePath = "";
} else {
var phpURL = "http://www.xgenstudios.com/stickarena/stick_arena.php";
var comPath = "http://www.xgenstudios.com/com/";
var localFilePath = "http://www.xgenstudios.com/stickarena/";
if (domainName.indexOf("KONGREGATE.COM") != -1) {
connectToKongregateAPI();
}
pregameMC.onPress = function () {
getURL ("http://www.xgenstudios.com/", "_blank");
};
}
wtebfhsdbf(aeufinef, new Array(ooo("zeglqvwfkmq\famo", "\""), ooo("qvkaicpglc\famo", "\""), ooo("em`cnnkqvkai\famo", "\""), ooo("imlepgecvg\famo", "\"")));
uufbehbfsj(weufhsdybf, parentPageKey);
var syfbsde = random(10000);
var kahseyu = random(10000);
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;
var gameVersion = (("1." + uonhbfsw) + " (FP 8) BLSK");
loadScreenInfoMC.versionText.text = "v " + gameVersion;
initializeWeapons();
var versionLoaded = false;
var settingsLoaded = false;
var mapEditorTileDataLoaded = false;
var upgradeValuesLoaded = false;
var languageLoaded = false;
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 domainName;
var IDLEN = 3;
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 serverNum = 0;
var portNum = 0;
var serverConnectTrys = new Array();
var lastSuccessfulPortNum = 0;
var connectionAvailable = true;
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 lqBNXB;
var lastRoundTimerUpdate;
var roundActive;
var lastMessageRecieved;
var collisionCheckGhost;
var maxNumPlayers;
var maxNumPlayersNoPass;
var maxNumPlayersLobby;
var lqDrVN;
var vwtdfA;
var lqKPXL;
var qkWCSI;
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 tqKHBs;
var summaryStartTime;
var jhvuFH;
var adCalled;
var tutorialDelay = 23000;
var tutorialTimer;
var minSendTime;
var minSendTimeCompat;
var keepAliveTime;
var pingAvgPeriod;
var remoteSmoothing;
var remoteRotSmoothing;
var ghostAlpha = 0;
var qkTdUA;
var warnClicks;
var warnClickDisplayTime;
var zqhhqY;
var kkKMpm;
var displayPlayerIDs;
var timeNotify = new Array();
var rankKills = new Array();
var depthCount = 10000;
var particleCount = 0;
var maxParticles = 12;
var wave = 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 msgText;
var gotoFrame;
var fusebfysdfb = false;
var kkRCdb;
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 vzQhhk;
var playerMaxVel;
var qxlVVP;
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 modBanTimes = new Array(5, 5, 30, 1440, 10080, 2620800);
var lastSelectedObjectName;
var lastDetailRequestedObjectName;
var lastSelectedObjectType;
var _arena = 0;
var _player = 1;
var mapLoaded = false;
var qxYEYJ = 0;
var consecutiveChecksWithCollision = 0;
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 currentUpsellTab;
var _getapass = 0;
var _features = 1;
var _faq = 2;
var selectedShopPet = 0;
var maxShopPets = 7;
var selectedShopSpinner = 0;
var maxShopSpinners = 49;
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 framesSinceRoundStart;
var displayControlHelp;
var warnFPSCount;
var warnPingCount;
var sendIntervalID;
var roundTimerIntervalID;
var performanceIntervalID;
var enterAreaIntervalID;
var oneSecondIntervalID;
var keepAliveIntervalID;
var refreshRoomsIntervalID;
var kkbdAf = null;
var noRemotePlayersIntervalID;
var joinPrivateTimeoutIntervalID;
var pingTimeoutIntervalID;
var pingTestTimeoutIntervalID;
var tqgHZJIntervalID = null;
var setVIPButtonsActiveIntervalID;
var currentRoomIsPrivate = false;
var userHidLeaderBoard;
var optionQuality;
var optionBlood;
var optionLanguageFilter;
var optionParticles;
var optionUseBitmapCaching;
var optionCrosshair;
var deathDistance = new Array(32, 40, 75, 90, 105, 140, 180);
var editorMinTilesWide;
var editorMinTilesHigh;
var editorMaxTilesWide;
var editorMaxTilesHigh;
var editorTileSet;
var editorSelectedTile;
var editorSelectedTileMirror;
var editorSelectedTileRotation;
var editorSelectedTileCollision;
var customMapNames = new Array();
var errorText = 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 creditsText = new Array();
var ballistickOnlyMarker;
var customMarker;
var ratingValues = new Array();
var ratingNames = new Array();
var petScale = 75;
var connectedToSever = false;
var daysToPassExpiry;
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 lastGlobalMsg = "";
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 vzlnjm = new area();
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 (qxHtJL(pressedKey) && (windowMC == null)) {
if (chatMC.chatText0.text.length < vwtdfA) {
chatMC.chatText0.text = (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) + String.fromCharCode(pressedKey)) + "_";
} else {
SFXBTNerror.start();
}
} else if ((qxHtJL(pressedKey) && (windowMC != null)) && (windowMC.arenaNameMC._visible)) {
if (windowMC.arenaNameMC.chatText0.text.length < qkWCSI) {
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 < vwtdfA) && (userBox.selectedIndex != null)) && (userBox.enabled)) {
chatMC.chatText0.text = (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) + userBox.getItemAt(userBox.selectedIndex).label) + "_";
} else if (((chatMC.chatText0.text.length < vwtdfA) && (arenaBox.selectedIndex != null)) && (arenaBox.enabled)) {
chatMC.chatText0.text = (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) + arenaBox.getItemAt(arenaBox.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 (qxHtJL(pressedKey)) {
if (chatMC.chatText0.text.length < lqDrVN) {
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.vwnjRK <= 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 (("fqTEcOL.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, stripCharacter(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 (firstChar == "0") {
var firstTwoChars = new String(dataStr.substr(0, 2));
var twoCharMsgBody = new String(dataStr.substr(2, dataStr.length - 2));
if (firstTwoChars == "01") {
recieveRoomList(twoCharMsgBody);
} else if (firstTwoChars == "04") {
recieveRoomDetail(twoCharMsgBody);
} else if (firstTwoChars == "06") {
recieveRoomVariable(twoCharMsgBody);
} else if (firstTwoChars == "07") {
recieveReportUser(twoCharMsgBody);
} else if (firstTwoChars == "08") {
recieveServerNotFull();
} else if (firstTwoChars == "09") {
recieveError(twoCharMsgBody);
} else if (firstTwoChars == "0a") {
showTicket(Number(twoCharMsgBody));
} else if (firstTwoChars == "0c") {
recieveOwnedItemList(twoCharMsgBody);
} else if ((firstTwoChars == "0e") || (firstTwoChars == "0f")) {
var banArray = twoCharMsgBody.split(";");
recieveModeratorBan(Number(banArray[0]), banArray[1]);
} else if (firstTwoChars == "0g") {
recieveModeratorWarn(twoCharMsgBody);
} else if (firstTwoChars == "0h") {
recieveFindPlayerResponse(twoCharMsgBody);
} else if (firstTwoChars == "0j") {
recieveGlobalMessage(twoCharMsgBody);
}
}
};
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 < vzlnjm.kkOAEj) {
_local2 = _local2 + pad(Math.min(int(vzlnjm.vzFNmT[_local1].vzPrQm), 99999), 5);
_local1++;
}
socket[serverNum].send("2" + _local2);
};
stick.prototype.sendPosition = function () {
var _local5 = Math.round((gxyAWm._x - fqTEcOL._x) * 10);
var _local3 = Math.round((gxyAWm._y - fqTEcOL._y) * 10);
var _local2 = Math.round(gxyAWm.gxyhDYy._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.tqHfIW);
var _local10 = Number(this.walk);
var _local6 = Number(this.lqMGgx);
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(gxyAWm._x - fqTEcOL._x);
var _local3 = Math.round(gxyAWm._y - fqTEcOL._y);
var _local2 = Math.round(gxyAWm.gxyhDYy._rotation);
if (_local2 < 0) {
_local2 = _local2 + 360;
}
var _local5 = vzsmzK(this.vzSwjY);
socket[serverNum].send(((("4" + pad(_local4, 4)) + pad(_local3, 4)) + pad(_local2, 3)) + _local5);
};
stick.prototype.sendWeaponPickup = function (n) {
var _local2 = vzsmzK(Number(this.vzSwjY));
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)) + vzsmzK(w)) + pad(deg, 3));
};
stick.prototype.jhmLQV = function (a, w, deg) {
if (deg < 0) {
deg = deg + 360;
}
socket[serverNum].send((("7" + padStr(a, IDLEN)) + vzsmzK(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.sendTattle = function (a, tattleCode) {
socket[serverNum].send(("T" + padStr(a, IDLEN)) + tattleCode);
};
stick.prototype.sendGlobalMsg = function (m) {
socket[serverNum].send("0j" + m);
};
stick.prototype.updatePositionDisplay = function () {
var _local2 = posText[getPosition(this.getScore(), this.getDeaths())];
if ((_local2 != scoreMC.scoreG1.scoreText.text) && (_local2 != 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 = _local2);
}
};
stick.prototype.addToScore = function (p) {
this.qxClCA = ((this.getScore() + p) * 13) + 11;
this.qxZDXd = this.qxClCA - syfbsde;
this.zqRuLy = this.zqRuLy + p;
SFXKill.start();
};
stick.prototype.getScore = function () {
return((this.qxClCA - 11) / 13);
};
stick.prototype.addToDeaths = function (p) {
this.zqhUQj = ((this.getDeaths() + p) * 11) + 13;
this.lqQppy = this.zqhUQj - kahseyu;
};
stick.prototype.getDeaths = function () {
return((this.zqhUQj - 13) / 11);
};
stick.prototype.updateHPBar = function () {
gxQaPhW.maskMC._x = -298 + ((this.lqkSWy / this.vzBehO) * 198);
heartNum = int((this.lqkSWy / this.vzBehO) * 3);
gxQaPhW.hideHearts();
eval (("gxQaPhW.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.lqkSWy;
var unaufnevh = (this.lqkSWy - d);
if (tqgHZJIntervalID != null) {
clearInterval(tqgHZJIntervalID);
tqgHZJIntervalID = null;
}
tqgHZJIntervalID = setInterval(tqgHZJ, 100, fsakndfeb, unaufnevh);
this.lqkSWy = this.lqkSWy - d;
if (optionQuality > 0) {
gxyAWm.attachMovie("damageFX", "damageFX", 1200);
gxyAWm.damageFX.red = d * 20;
gxyAWm.damageFX.fade = d * 6;
gxyAWm.attachMovie("shakeSAFX", "shakeFX", 1201);
gxyAWm.shakeFX.xyMove = d / 2;
gxyAWm.shakeFX.xyAcc = -Math.max(d / 6, 1);
}
gxQaPhW.attachMovie("shakeParentFX", "shakeFX", 1201);
gxQaPhW.shakeFX.xyMove = d / 2;
gxQaPhW.shakeFX.xyAcc = -Math.max(d / 6, 1);
gxQaPhW.attachMovie("damageHpFX", "damageHpFX", 1200);
gxQaPhW.damageHpFX.red = d * 60;
gxQaPhW.damageHpFX.fade = 24;
b = 0;
while (b < Math.pow(optionBlood, 2)) {
gxyAWm.attachMovie((("blood" + weapons[w].bloodAnim) + random(weapons[w].bloodVariations)) + "MC", "bloodMC" + b, 1206 + b);
with (eval ("gxyAWm.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.lqkSWy <= 0) {
this.zqhceZ(a, w, deg);
}
}
};
stick.prototype.zqhceZ = function (a, w, deg) {
if (tqgHZJIntervalID != null) {
clearInterval(tqgHZJIntervalID);
tqgHZJIntervalID = null;
}
if (this.mod != "dead") {
this.jhmLQV(a, w, deg);
if (gameMode != 4) {
gotoAndStop ("deathFrame");
setQuality();
}
if (gameMode != 2) {
chatMC._visible = 0;
}
this.mod = "dead";
gxyAWm.attachMovie("deathFX", "deathFX", 1200);
gxQaPhW.hideHearts();
gxQaPhW.heart0MC._visible = 1;
gxQaPhW.heart0MC.gotoAndStop(24);
animateDeath("gxyAWm", a, w, deg, this.zqRuLy, gxyAWm._x, gxyAWm._y);
this.addToDeaths(1);
this.zqRuLy = 0;
userHidLeaderBoard = false;
fqTEcOL.charIndicatorMC._visible = false;
setPetAnimation("gxyAWm.charPetMC.subPetMC.petMC", "death");
}
};
stick.prototype.spawn = function () {
if (gameMode == 3) {
gameMode = 0;
}
if (gameMode != 4) {
gotoAndStop ("mainFrame");
cursorCrossHair();
if (int(vzlnjm.tileSet) < 4) {
fqTEcOL.opaqueBackground = 0;
} else {
fqTEcOL.opaqueBackground = null;
parallaxBGMC.imageMC.attachMovie("parallaxBG" + vzlnjm.tileSet, "subImageMC", 1);
parallaxBGMC.onEnterFrame = function () {
this._x = (fqTEcOL._x - 25) / 3;
this._y = (fqTEcOL._y - 25) / 3;
};
}
}
this.mod = "spawn";
this.vwnjRK = this.zqLtRH;
this.lqMGgx = (this.qxYeHq = (this.vwjxOy = true));
this.lqJPfA = this.lqRwWU;
this.qxCyQC = (this.vwdLxr = false);
this.lqkSWy = this.vzBehO;
this.tqlSUW(0, 9);
this.updateHPBar();
var rnd = random(vzlnjm.playerSpawnPoints);
moveToCoords(vzlnjm.spawnPoint[rnd].x, vzlnjm.spawnPoint[rnd].y);
this.sendSpawn(vzlnjm.spawnPoint[rnd].x, vzlnjm.spawnPoint[rnd].y);
updateLocalPlayerSpinnerAndPet();
gxyAWm.attachMovie("spawnFX", "spawnFX", 1203);
gxyAWm.gxyhDYy.gotoAndStop("fistIdle");
gxyAWm.animateSpawn("Local");
adjustAndPlaySound(SFXspawn[0], 0, 0);
};
stick.prototype.spawnDone = function () {
gxyAWm.xqCOVDl._visible = 0;
gxyAWm.fqqZCx._visible = 1;
gxyAWm.gxyhDYy._visible = 1;
this.mod = "walk";
};
stick.prototype.tqlSUW = function (w, n) {
if (w > 0) {
this.lqJPfA = this.lqJPfA - 66.6;
}
this.vzSwjY = 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.lqAdpZ = function () {
if (this.jhVihd == 0) {
if ((this.mod == "walk") || (this.mod == "stand")) {
this.sendAttack();
var rnd = (random(weapons[this.vzSwjY].variations) + 1);
gxyAWm.gxyhDYy.gotoAndStop((weapons[this.vzSwjY].attackAnim + "Attack") + rnd);
gxyAWm.gxyhDYy.xqmYxDWo.gotoAndPlay(1);
gxyAWm.gxyhDYy.xqmYxDWo.xqjWpYvuKDu._visible = 0;
if (optionParticles) {
attachParticles(weapons[this.vzSwjY].particleAnim, weapons[this.vzSwjY].attackAnim, gxyAWm._x - fqTEcOL._x, gxyAWm._y - fqTEcOL._y, gxyAWm.gxyhDYy._rotation);
} else {
attachParticles(weapons[this.vzSwjY].particleAnimLow, weapons[this.vzSwjY].attackAnim, gxyAWm._x - fqTEcOL._x, gxyAWm._y - fqTEcOL._y, gxyAWm.gxyhDYy._rotation);
}
adjustAndPlaySound(eval ((("SFX" + weapons[this.vzSwjY].attackAnim) + (rnd - 1)) + "0")[0], 0, 0);
this.jhVihd = weapons[this.vzSwjY].qxihXk * 33;
this.vwjxOy = (this.qxadck = (this.qxYeHq = false));
this.currentRoundWeaponAttacks[this.vzSwjY]++;
if (Number(this.vzSwjY) > 0) {
this.lqJPfA = 0;
} else if (Number(this.vzSwjY) == 0) {
this.lqJPfA = this.lqJPfA - 33.3;
}
}
}
};
stick.prototype.autoAttack = function () {
if ((((this.qxCyQC && (weapons[this.vzSwjY].automatic)) || (this.qxCyQC && (this.qxYeHq))) || (this.vwdLxr && (weapons[this.vzSwjY].automatic))) || (this.vwdLxr && (this.jhlJoN))) {
if ((_root._xmouse > 65) || (_root._ymouse < 370)) {
this.lqAdpZ();
}
}
};
stick.prototype.doneAttack = function () {
this.vwjxOy = true;
if ((this.mod == "walk") && (!this.walk)) {
gxyAWm.gxyhDYy.gotoAndStop(weapons[this.vzSwjY].runAnim + "Idle");
} else {
gxyAWm.gxyhDYy.gotoAndStop(weapons[this.vzSwjY].idleAnim + "Idle");
}
};
stick.prototype.move = function () {
if ((this.mod == "walk") || (this.mod == "stand")) {
if (gameMode < 2) {
if (keyIsDownMulti("A")) {
this.vwdLxr = true;
} else {
this.vwdLxr = false;
this.jhlJoN = true;
}
if (keyIsDownMulti("W")) {
this.walk = true;
} else {
this.walk = false;
}
this.tqHfIW = true;
this.tqLmWD = 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.tqHfIW = false;
}
if (this.tqLmWD != this.facing) {
sendImmediate = true;
noInputTime = 0;
}
}
xyVel = ygsfeyb(this.facing, this.walk, this.tqHfIW, this.xVel, this.yVel, this.vzSwjY);
xyVel = lqbFFz(gxyAWm._x, gxyAWm._y, xyVel[0], xyVel[1]);
xyVel = ehbdybe(xyVel[0], xyVel[1], this.mod, this.tqHfIW);
this.xVel = xyVel[0];
this.yVel = xyVel[1];
this.vel = xyVel[2];
this.mod = xyVel[3];
this.frame = animatePlayer("gxyAWm", this.mod, this.walk, this.vwjxOy, this.vzSwjY, this.frame, this.vel, this.facing, this.lqMGgx);
lastRot = gxyAWm.gxyhDYy._rotation;
gxyAWm.gxyhDYy._rotation = (cRot = atan2ToDeg(_root._ymouse - gxyAWm._y, _root._xmouse - gxyAWm._x) + 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.zqfUYC = 0;
avgPeriod = 0;
var _local3 = avgPeriod - 1;
while (_local3 > 0) {
this.tRotVels[_local3] = this.tRotVels[_local3 - 1];
this.zqfUYC = this.zqfUYC + this.tRotVels[_local3];
_local3--;
}
this.tRotVels[0] = dif;
this.zqfUYC = this.zqfUYC + dif;
this.zqfUYC = int(this.zqfUYC / avgPeriod);
if (Math.abs(dif) >= 1) {
this.zqfUYC = 0;
}
idle(idl, this.vel);
if (gxyAWm._x > this.vzvBZr) {
val = (gxyAWm._x - this.vzvBZr) / scrollSpeed;
if ((fqTEcOLX - val) < earthMinX) {
val = fqTEcOLX - earthMinX;
}
fqTEcOLX = fqTEcOLX - val;
gxyAWm._x = gxyAWm._x - (val - this.xVel);
} else if (gxyAWm._x < this.qkEZXF) {
val = (gxyAWm._x - this.qkEZXF) / scrollSpeed;
if ((fqTEcOLX - val) > earthMaxX) {
val = fqTEcOLX - earthMaxX;
}
if (val > -0.3) {
val = 0;
}
fqTEcOLX = fqTEcOLX - val;
gxyAWm._x = gxyAWm._x - (val - this.xVel);
} else {
gxyAWm._x = gxyAWm._x + this.xVel;
}
if (gxyAWm._y > this.vwTkem) {
val = (gxyAWm._y - this.vwTkem) / scrollSpeed;
if ((fqTEcOLY - val) < earthMinY) {
val = fqTEcOLY - earthMinY;
}
fqTEcOLY = fqTEcOLY - val;
gxyAWm._y = gxyAWm._y - (val - this.yVel);
} else if (gxyAWm._y < this.tqiAtV) {
val = (gxyAWm._y - this.tqiAtV) / scrollSpeed;
if ((fqTEcOLY - val) > earthMaxY) {
val = fqTEcOLY - earthMaxY;
}
if (val > -0.3) {
val = 0;
}
fqTEcOLY = fqTEcOLY - val;
gxyAWm._y = gxyAWm._y - (val - this.yVel);
} else {
gxyAWm._y = gxyAWm._y + this.yVel;
}
fqTEcOL._x = Math.round(fqTEcOLX);
fqTEcOL._y = Math.round(fqTEcOLY);
fqTEcOL.charIndicatorMC._x = -(fqTEcOL._x - gxyAWm._x);
fqTEcOL.charIndicatorMC._y = -(fqTEcOL._y - gxyAWm._y);
}
if (this.mod == "dead") {
this.vwnjRK = this.vwnjRK - Math.max(1, int((frameDeltaTime / 4) / 33.3));
if (this.vwnjRK <= 0) {
this.spawn();
}
} else if (this.lqMGgx) {
this.lqJPfA = this.lqJPfA - Math.max(1, int((frameDeltaTime / 4) / 33.3));
if (this.lqJPfA <= 0) {
this.lqMGgx = false;
}
}
if (this.jhVihd > 0) {
this.jhVihd = Math.max(0, this.jhVihd - int(frameDeltaTime / 4));
}
updateEarth();
};
Instance of Symbol 393 MovieClip in Frame 1
onClipEvent (enterFrame) {
_parent.controlCharacterSittingAnimation();
}
Instance of Symbol 403 MovieClip "muteBTNMC" in Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(Math.ceil(_parent.SFXVolume / 100) + 1);
}
on (press) {
_parent.zqggLX("press", this, null);
}
on (release) {
_parent.pressMuteButton();
_parent.zqggLX("release", this, null);
}
on (rollOver) {
_parent.zqggLX("over", this, null);
}
on (releaseOutside, rollOut) {
_parent.zqggLX("out", this, null);
}
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) {
zqggLX("windowShow", windowPingMC);
} else {
zqggLX("windowShow", titleMenuMC);
}
}
function doneSAIntro() {
if (autoQuickStart) {
pressQuickStart();
}
SAIntroMC._visible = 0;
titleMenuMC._visible = pingTestComplete;
windowPingMC._visible = !pingTestComplete;
if (!pingTestComplete) {
zqggLX("windowShow", windowPingMC);
} else {
zqggLX("windowShow", titleMenuMC);
}
if (specialOffer) {
specialOfferMC._visible = true;
specialOfferMC.headerText0.text = (specialOfferMC.headerText1.text = logInText[16]);
specialOfferMC.msgText0.text = (specialOfferMC.msgText1.text = logInText[13]);
specialOfferMC.imageMC.attachMovie(specialOfferImageMC, "specialOfferImageMC", 1);
specialOfferMC.imageMC.specialOfferImageMC._xscale = (specialOfferMC.imageMC.specialOfferImageMC._yscale = 450);
} 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.jhGMKF = getRandomName();
player.col = generateColor(300, 600);
player.hexColor = RGBToHex(player.col.rb, player.col.gb, player.col.bb, 100);
player.tqITaO = 0;
player.vwcTCi = 0;
player.spinners = [];
player.pets = [];
profileSelectedSpinner = (player.jhHtWQ = 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 performPreLogIn() {
if ((serverType[serverNum] == "PREMIUM") && (n ne uName)) {
selectRandomServerAndPort();
}
clientBanned = false;
banDate = 0;
savePreferences();
performLogIn();
}
function onGameLoginAPIResponse(success) {
}
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();
replyDataAPI.onLoad = null;
delete replyDataAPI.onLoad;
tutorialTimer = 0;
window2MC.removeMovieClip();
titleMenuMC._visible = 1;
selectRandomServerAndPort();
zqggLX("windowShow", titleMenuMC);
}
function pressTutorial() {
SFXSATheme.stop();
startTutorial();
}
function pressLogIn() {
tutorialTimer = -1;
titleMenuMC._visible = 0;
if ((domainName.indexOf("KONGREGATE.COM") != -1) && (useKongregateAccount)) {
kongregatePressLogIn();
} else {
_root.attachMovie("window470LogInMC", "windowMC", 200000, {_x:40, _y:170});
zqggLX("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);
n = windowMC.usernameText.text.toLowerCase();
p = windowMC.pass0Text.text;
var _local3 = new Date();
if (n.length > 2) {
if (isLegalAccountString(n)) {
if (containsNoFilteredLanguage(n)) {
if (isLegalAccountString(p)) {
if (p.length > 2) {
if ((!clientBanned) || (banDate != _local3.getDate())) {
uName = n;
uPass = p;
rememberUserName = windowMC.checkBoxRemember.selected;
windowMC.removeMovieClip();
window2MC.removeMovieClip();
Key.removeListener(loginKeyListener);
APIGameLogin(uName, uPass, onGameLoginAPIResponse);
performPreLogIn();
} else {
displayLogInMessage(logInText[10]);
}
} else {
displayLogInMessage(accountText[9]);
}
} else {
displayLogInMessage(accountText[7]);
}
} else {
displayLogInMessage(accountText[12]);
}
} else {
displayLogInMessage(accountText[8]);
}
} else {
displayLogInMessage(accountText[11]);
}
}
function pressCreateAccountOK(n, p, p2, e, r, g, b, e2) {
showAccountTextBoxes(false);
n = n.toLowerCase();
e = e.toLowerCase();
e2 = e2.toLowerCase();
if (n.length > 2) {
if (isLegalAccountString(n)) {
if (containsNoFilteredLanguage(n)) {
if (isLegalAccountString(p)) {
if (p.length > 2) {
if (p == p2) {
if (e.length > 5) {
if (e == e2) {
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 _local2 = new LoadVars();
_local2.action = "create";
_local2.username = n;
_local2.userpass = p;
_local2.usercol = _local6;
_local2.email_address = e;
_local2.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
displayXGenAccountCreatedMessage();
performLogIn();
} else if (this.result == "email_duplicate") {
displayCreateAccountMessage(accountText[30]);
} else {
displayCreateAccountMessage(accountText[14]);
}
} else {
displayCreateAccountMessage(accountText[13]);
}
};
} else {
displayCreateAccountMessage(accountText[28]);
}
} else {
displayCreateAccountMessage(accountText[6]);
}
} else {
displayCreateAccountMessage(accountText[10]);
}
} else {
displayCreateAccountMessage(accountText[9]);
}
} else {
displayCreateAccountMessage(accountText[7]);
}
} else {
displayCreateAccountMessage(accountText[12]);
}
} else {
displayCreateAccountMessage(accountText[8]);
}
} else {
displayCreateAccountMessage(accountText[11]);
}
}
function pressVerifyAccountOK(n, p, e, e2) {
showVerifyTextBoxes(false);
n = n.toLowerCase();
e = e.toLowerCase();
e2 = e2.toLowerCase();
if (n.length > 2) {
if (isLegalAccountString(n)) {
if (containsNoFilteredLanguage(n)) {
if (isLegalAccountString(p)) {
if (p.length > 2) {
if (e.length > 5) {
if (e == e2) {
uName = n;
uPass = p;
errorAction = "verifyAccount";
var _local7 = (((((apiURL + "method=xgen.users.addEmail&username=") + n) + "&password=") + p) + "&email=") + e;
var replyDataAPI = new XML();
var _local6 = new LoadVars();
_local6.sendAndLoad(_local7, replyDataAPI, "POST");
replyDataAPI.onLoad = function (success) {
if (success) {
var _local2 = XML2Object.deserialize(this);
if (_local2.rsp.attributes.stat == "ok") {
displayVerificationSentMessage(accountText[32]);
} else if (_local2.rsp.err.attributes.code == 98) {
displayVerifyAccountMessage(logInText[4]);
} else if (_local2.rsp.err.attributes.code == 3) {
displayVerifyAccountMessage(accountText[29]);
} else if (_local2.rsp.err.attributes.code == 4) {
displayVerifyAccountMessage(accountText[30]);
} else if (_local2.rsp.err.attributes.code == 5) {
displayVerifyAccountMessage(accountText[31]);
}
} else {
displayVerifyAccountMessage(accountText[29]);
}
};
} else {
displayVerifyAccountMessage(accountText[28]);
}
} else {
displayVerifyAccountMessage(accountText[6]);
}
} else {
displayVerifyAccountMessage(accountText[9]);
}
} else {
displayVerifyAccountMessage(accountText[7]);
}
} else {
displayVerifyAccountMessage(accountText[12]);
}
} else {
displayVerifyAccountMessage(accountText[8]);
}
} else {
displayVerifyAccountMessage(accountText[11]);
}
}
function pressLogInClose() {
tutorialTimer = 0;
windowMC.removeMovieClip();
Key.removeListener(loginKeyListener);
titleMenuMC._visible = 1;
zqggLX("windowShow", titleMenuMC);
}
function pressCreateAccountClose() {
tutorialTimer = 0;
windowMC.removeMovieClip();
titleMenuMC._visible = 1;
zqggLX("windowShow", titleMenuMC);
}
function pressCreateAccount() {
tutorialTimer = -1;
titleMenuMC._visible = 0;
_root.attachMovie("window470CreateAccountMC", "windowMC", 200000);
windowMC._x = 40;
windowMC._y = 50;
zqggLX("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.emailMessage0.text = (windowMC.emailMessage1.text = accountText[27]);
windowMC.required0.text = (windowMC.required1.text = accountText[26]);
windowMC.email00.text = (windowMC.email01.text = logInText[17]);
windowMC.email10.text = (windowMC.email11.text = logInText[18]);
windowMC.gxyAWm.fqqZCx.gotoAndStop(3);
windowMC.gxyAWm.fqqZCx.legs.play();
windowMC.crossHairMC._x = random(int(windowMC.colorPickerMC._width)) + windowMC.colorPickerMC._x;
windowMC.crossHairMC._y = random(int(windowMC.colorPickerMC._height)) + windowMC.colorPickerMC._y;
if (domainName.indexOf("KONGREGATE.COM") != -1) {
kongregatePressCreateAccount();
}
windowMC.eulaNoticeText0.text = (windowMC.eulaNoticeText1.text = accountText[19]);
var replyDataEULA = new LoadVars();
var sendDataEULA = new LoadVars();
sendDataEULA.sendAndLoad(eulaURL, replyDataEULA, "POST");
replyDataEULA.onLoad = function (success) {
if (success) {
windowMC.eulaText0.text = (windowMC.eulaText1.text = this.eulatext);
}
};
}
function showAccountTextBoxes(b) {
windowMC.usernameText._visible = (windowMC.pass0Text._visible = (windowMC.pass1Text._visible = (windowMC.email0Text._visible = (windowMC.email1Text._visible = (windowMC.colorPickerMC._visible = (windowMC.btnXMC._visible = (windowMC.btnOKMC._visible = b)))))));
}
function showVerifyTextBoxes(b) {
window3MC.usernameText._visible = (window3MC.pass0Text._visible = (window3MC.pass1Text._visible = (window3MC.email0Text._visible = (window3MC.email1Text._visible = (window3MC.btnXMC._visible = (window3MC.btnOKMC._visible = b))))));
}
function showLogInTextBoxes(b) {
windowMC.BTNadvancedMC._visible = (windowMC.BTNloginVerifyMC._visible = (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});
zqggLX("windowShow", window2MC);
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
}
function displayVerifyAccountMessage(msg) {
_root.attachMovie("window304VerifyAccountMessageMC", "window2MC", 200003, {_x:123, _y:10});
zqggLX("windowShow", window2MC);
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
}
function displayVerificationSentMessage(msg) {
_root.attachMovie("window304VerificationSentMessageMC", "window2MC", 200003, {_x:123, _y:10});
zqggLX("windowShow", window2MC);
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
}
function displayLogInMessage(msg) {
_root.attachMovie("window304LogInMessageMC", "window2MC", 200001, {_x:123, _y:10});
zqggLX("windowShow", window2MC);
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
}
function closeCreateAccountMessage() {
showAccountTextBoxes(true);
}
function closeVerifyAccountMessage() {
showVerifyTextBoxes(true);
}
function closeVerificationSentMessage() {
window3MC.windowClose();
Key.addListener(loginKeyListener);
}
function closeLogInMessage() {
showLogInTextBoxes(true);
}
function pressCloseSpecialOffer() {
specialOfferMC._visible = false;
specialOffer = false;
}
function pressCredits() {
if ((windowMC == null) && (window2MC == null)) {
SFXSATheme.stop();
windowMC.removeMovieClip();
window2MC.removeMovieClip();
Key.removeListener(loginKeyListener);
gotoAndStop ("creditsFrame");
}
}
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 (domainName.indexOf("KONGREGATE.COM") != -1) {
titleMenuMC.createAccountBTNMC._visible = false;
var sFontName = tDummy.getTextFormat(0, 1).font;
with (titleMenuMC.checkBoxLoginKongregate) {
fontSize = 8;
color = "0xA1CAFF";
setStyle("embedFonts", true);
setStyle("fontFamily", sFontName);
}
} else {
titleMenuMC.checkBoxLoginKongregate._visible = false;
}
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 992 MovieClip "SAIntroMC" in Frame 2
on (press) {
_parent.bypassSAIntro(true);
}
Instance of Symbol 272 MovieClip in Frame 2
onClipEvent (enterFrame) {
_parent.titleFrame();
}
Instance of Symbol 1391 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(kkbdAf);
kkbdAf = 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.kkswbu))) {
displayLobbyMessage((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 _local10 = "#A8D3FF";
var _local9 = " ";
var _local8 = " ";
var _local3 = " ";
info2Text.htmlText = (("<br>" + _local9) + colorHtml(lobbyText[19], _local10)) + lobbyText[Number(cycleMode) + 11];
info2Text0.text = (("\r" + _local9) + lobbyText[19]) + lobbyText[Number(cycleMode) + 11];
if (((Number(rTime) - tqKHBs) - jhvuFH) <= 0) {
var _local11 = (colorHtml(lobbyText[30], _local10) + rTime) + lobbyText[31];
var _local12 = (lobbyText[30] + rTime) + lobbyText[31];
} else {
var _local11 = colorHtml(lobbyText[29], _local10) + formatTime((Number(rTime) - tqKHBs) - jhvuFH);
var _local12 = lobbyText[29] + formatTime((Number(rTime) - tqKHBs) - jhvuFH);
}
var _local7;
if (Boolean(player.kkswbu)) {
_local7 = maxNumPlayers;
} else {
_local7 = maxNumPlayersNoPass;
}
infoText.htmlText = (((((((((_local8 + getRoomDisplayName(lastSelectedObjectName)) + "<br>") + _local3) + colorHtml(lobbyText[28], _local10)) + numPlayers) + "/") + _local7) + "<br>") + _local3) + _local11;
infoText0.text = (((((((((_local8 + getRoomDisplayName(lastSelectedObjectName)) + "\r") + _local3) + lobbyText[28]) + numPlayers) + "/") + _local7) + "\r") + _local3) + _local12;
if (!isCustom) {
var _local4 = new LoadVars();
var _local5 = new LoadVars();
var _local2 = charToNumCaseSensitive(mapID);
if (_local2 < 31) {
if (serverType[serverNum] == "COMPATIBILITY") {
_local5.sendAndLoad((((localFilePath + "maps/") + mapVersionNum.toString()) + "/") + mapListCompat[_local2], _local4, "POST");
} else {
_local5.sendAndLoad((((localFilePath + "maps/") + mapVersionNum.toString()) + "/") + mapList[_local2], _local4, "POST");
}
} else if (_local2 >= 42) {
_local5.sendAndLoad((((localFilePath + "maps/") + mapVersionNum.toString()) + "/") + 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.kkswbu) && (!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) {
currentRoomIsPrivate = false;
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, {_x:45, _y:45});
windowMC.cacheAsBitmap = optionUseBitmapCaching;
zqggLX("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 (qkPKoq(n)) {
if (isLegalRoomString(n)) {
currentRoomIsPrivate = true;
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;
zqggLX("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.kkswbu)) {
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.kkswbu);
windowMC.checkBoxClassic.selected = !Boolean(player.kkswbu);
windowMC.checkBoxFeature.selected = false;
windowMC.checkBoxCustom.selected = false;
if (((Number(player.vwcTCi) <= 0) || (Number(player.vwcTCi) == NaN)) || (!Boolean(player.kkswbu))) {
windowMC.checkBoxCustom.enabled = false;
}
windowMC.checkBoxBallistick.enabled = (windowMC.checkBoxClassic.enabled = (windowMC.checkBoxFeature.enabled = Boolean(player.kkswbu)));
}
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((((localFilePath + "maps/") + mapVersionNum.toString()) + "/") + mapListCompat[n], replyDataMaps, "POST");
} else {
sendDataMaps.sendAndLoad((((localFilePath + "maps/") + mapVersionNum.toString()) + "/") + 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((((localFilePath + "maps/") + mapVersionNum.toString()) + "/") + 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 = vzsmzK(mapNum);
n = n.toLowerCase();
showGameTextBoxes(false);
var _local1 = null;
if (n.length > 2) {
if (qkPKoq(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.kkswbu)));
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.kkswbu)))));
if ((Number(player.vwcTCi) <= 0) || (Number(player.vwcTCi) == 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();
qkewUQ("\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 253 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 253 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 272 MovieClip in Frame 3
onClipEvent (enterFrame) {
_parent.socketCallsLobby();
}
Instance of Symbol 267 MovieClip [RadioButton] "scapeGoat" in Frame 3
//component parameters
onClipEvent (construct) {
data = "";
groupName = "radioGroup";
label = "scapeGoat";
labelPlacement = "right";
selected = false;
}
Instance of Symbol 1426 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 214 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 263 MovieClip [ComboBox] "serverBox" in Frame 3
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "";
editable = false;
rowCount = 10;
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);
}
Instance of Symbol 403 MovieClip "muteBTNMC" in Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(Math.ceil(_parent.SFXVolume / 100) + 1);
}
on (press) {
_parent.zqggLX("press", this, null);
}
on (release) {
_parent.pressMuteButton();
_parent.zqggLX("release", this, null);
debugTrace();
}
on (rollOver) {
_parent.zqggLX("over", this, null);
}
on (releaseOutside, rollOut) {
_parent.zqggLX("out", this, null);
}
Frame 4
function initializeProfile() {
noInputTime = 0;
tabSystemInactiveMC.gotoAndStop(currentTab + 1);
profileSelectedSpinner = Number(player.jhHtWQ);
profileSelectedPet = Number(player.vwEGyv);
gxyAWm.fqqZCx.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.tqITaO)) - 1)));
credText0.text = (credText1.text = formatNumber(player.vwFMff));
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.tqITaO);
rankMC.attachMovie(iconMC, "rankIconMC", 100);
profileBallistickMarkerMC._visible = Boolean(player.kkswbu);
displayPersistentPlayerStatsProfile();
clearPetsCustomization();
clearSpinnersCustomization();
player.sendGetOwnedItemList();
}
function recieveOwnedItemListProfile() {
spinnerPetLoadingText0.text = (spinnerPetLoadingText1.text = "");
updatePlayerIndicatorsProfile();
updatePlayerPetsProfile();
pressTabSpinners();
tabSystemInactiveMC._visible = false;
}
function updatePlayerIndicatorsProfile() {
var _local1 = player.spinners[player.jhHtWQ];
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.vwEGyv];
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.tqITaO) == 0)) {
var _local8 = 0;
} else if ((int(player.pDeaths) == 0) && (int(player.tqITaO) > 0)) {
var _local8 = int(player.tqITaO);
} else {
var _local8 = int((int(player.tqITaO) / 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.tqITaO) + int(player.pDeaths)) / 200);
var _local5 = _local8 * (2 - _local10);
var _local1 = 0;
while (((ratingValues[_local1 + 1] <= _local5) && (_local1 < (ratingValues.length - 1))) && (int(player.tqITaO) > ((_local1 - 9) * 5000))) {
_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.tqITaO)) - 1) + "\r", hcWhite, statsText0, statsText1);
concat2StrTextAndHTML(profileText[5], _local3, (getKillsUntilNextRank(getRank(player.tqITaO), player.tqITaO) + "\r") + "\r", hcWhite, statsText0, statsText1);
concat2StrTextAndHTML(profileText[6], _local3, player.tqITaO + "\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.tqITaO) / _local4) * 100) / 100) + " (~") + (int((int(player.tqITaO) / _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.tqITaO) / _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.kkswbu)) && (Number(spn.num) >= Number(numFreeSpinners))) && (Number(spn.num) != 86)) {
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.kkswbu)) {
var _local3 = petsMC.subSpinnersMC.attachMovie("lockMC", "lockMC" + _local4, (_local4 * 2) + 2);
_local3._x = _local4 * profilePetSpacing;
}
}
}
setPetAnimation("petsMC.subSpinnersMC.petMC" + player.vwEGyv, "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.kkswbu)) {
player.vwEGyv = profileSelectedPet;
player.sendSetActiveItem(player.pets[player.vwEGyv].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.kkswbu) || (Number(player.spinners[profileSelectedSpinner].num) < Number(numFreeSpinners))) || (Number(player.spinners[profileSelectedSpinner].num) == 86)) {
player.jhHtWQ = profileSelectedSpinner;
player.sendSetActiveItem(player.spinners[player.jhHtWQ].itemID);
updatePlayerIndicatorsProfile();
}
updateCustomizationArrows(profileSelectedSpinner, player.spinners.length);
var spn = player.spinners[player.jhHtWQ];
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.kkswbu)) {
if (Boolean(player.kkswbu)) {
player.vwEGyv = profileSelectedPet;
player.sendSetActiveItem(player.pets[player.vwEGyv].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.kkswbu) || (Number(player.spinners[profileSelectedSpinner].num) < Number(numFreeSpinners))) || (Number(player.spinners[profileSelectedSpinner].num) == 86)) {
player.jhHtWQ = profileSelectedSpinner;
player.sendSetActiveItem(player.spinners[player.jhHtWQ].itemID);
updatePlayerIndicatorsProfile();
}
updateCustomizationArrows(profileSelectedSpinner, player.spinners.length);
var spn = player.spinners[player.jhHtWQ];
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 214 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 272 MovieClip in Frame 4
onClipEvent (enterFrame) {
_parent.socketCallsLobby();
_parent.controlCharacterSittingAnimation();
}
Frame 5
function initializeShop() {
noInputTime = 0;
char0MC.fqqZCx.gotoAndStop("run");
char1MC.fqqZCx.gotoAndStop("run");
credText0.text = (credText1.text = formatNumber(player.vwFMff));
h0Text0.text = (h0Text1.text = profileText[3]);
h1Text0.text = (h1Text1.text = editorText[48]);
if (Boolean(player.kkswbu)) {
labPassMC.gotoAndStop("purchased");
if (daysToPassExpiry <= passExpiryDialogueThreshhold) {
if (daysToPassExpiry == 1) {
labPassMC.passExpiryUrgentText.text = (labPassMC.passExpiryText1.text = daysToPassExpiry + shopText[22]);
} else {
labPassMC.passExpiryUrgentText.text = (labPassMC.passExpiryText1.text = daysToPassExpiry + shopText[23]);
}
} else {
labPassMC.passExpiryText0.text = (labPassMC.passExpiryText1.text = daysToPassExpiry + shopText[23]);
}
} 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.vwcTCi)]);
credMapSlotMC._visible = Number(player.vwcTCi) < maxMapSlots;
buySlotBTNMC._visible = Boolean(player.vwcTCi < maxMapSlots);
ballistickRequiredMapSlotsMC._visible = (Number(player.vwcTCi) >= numFreeMapSlots) && (Number(player.vwcTCi) < maxMapSlots);
var i = 0;
while (i < maxMapSlots) {
eval ("mapsSlotMC" + i)._visible = true;
if (Number(player.vwcTCi) > i) {
if (Boolean(player.kkswbu)) {
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.kkswbu)) {
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.kkswbu)) && (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.kkswbu)) {
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 (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);
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.kkswbu) || (Number(selectedShopSpinner) < Number(numFreeSpinners))) {
if (validatePurchaseClientSide(Number(spinnerCosts[selectedShopSpinner]))) {
purchaseSuccessMessage = (((("\r" + shopText[7]) + "\r") + "\r") + "\r") + shopText[8];
shopPurchaseType = _shopSpinnerType;
}
} else {
displayShopMessage((shopText[4] + shopText[5]) + shopText[6], "window304ShopGetaPassMessageMC", true);
}
} else if (currentCustomizationTab == _pets) {
if (Boolean(player.kkswbu)) {
if (validatePurchaseClientSide(Number(petCosts[selectedShopPet]))) {
purchaseSuccessMessage = (((("\r" + shopText[9]) + "\r") + "\r") + "\r") + shopText[10];
shopPurchaseType = _shopPetType;
}
} else {
displayShopMessage((shopText[4] + shopText[5]) + shopText[6], "window304ShopGetaPassMessageMC", true);
}
}
}
function pressBuyMapSlot() {
noInputTime = 0;
if (Number(player.vwcTCi) < maxMapSlots) {
if (Boolean(player.kkswbu)) {
if (validatePurchaseClientSide(mapSlotCosts[Number(player.vwcTCi)])) {
purchaseSuccessMessage = (((("\r" + shopText[11]) + "\r") + "\r") + "\r") + shopText[12];
shopPurchaseType = _shopMapSlotType;
}
} else {
displayShopMessage((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.vwFMff) >= purchaseCost) {
shopPurchaseCost = purchaseCost;
displayShopMessage((("\r" + shopText[20]) + purchaseCost.toString()) + shopText[21], "window304ShopConfirmMessageMC", true);
return(true);
}
displayShopMessage(shopText[31], "window304ShopNotEnoughCredMessageMC", 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.vwcTCi = Number(player.vwcTCi) + 1;
updateMapSlotsShop();
player.sendBuyItem(240, 0, 0, 0, 0, 0, 0);
}
player.vwFMff = Number(player.vwFMff) - shopPurchaseCost;
credText0.text = (credText1.text = formatNumber(player.vwFMff));
displayShopMessage(purchaseSuccessMessage, "window304ShopMessageMC", true);
}
function displayShopMessage(msg, windowExportName, hideButtons) {
_root.attachMovie(windowExportName, "window2MC", 200001, {_x:123, _y:75});
window2MC.cacheAsBitmap = optionUseBitmapCaching;
zqggLX("windowShow", window2MC);
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.vwcTCi < 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]);
if (domainName.indexOf("KONGREGATE.COM") != -1) {
performKongregateTicketStatsSubmission(cachedPrizeValue);
}
}
function awardTicketValue() {
player.vwFMff = Number(player.vwFMff) + cachedPrizeValue;
if (currentTab == _shop) {
credText0.text = (credText1.text = formatNumber(player.vwFMff));
}
}
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 2579 MovieClip "colorPickerMC1" in Frame 5
on (press) {
if (_parent.shopButtonsEnabled) {
_parent.zqggLX("press", null, _parent.crossHairMC1);
_parent.clickColorPickerShop(false, 1);
}
}
Instance of Symbol 2579 MovieClip "colorPickerMC0" in Frame 5
on (press) {
if (_parent.shopButtonsEnabled) {
_parent.zqggLX("press", null, _parent.crossHairMC0);
_parent.clickColorPickerShop(false, 0);
}
}
Instance of Symbol 2624 MovieClip "labPassMC" in Frame 5
on (press) {
if (_parent.shopButtonsEnabled) {
_parent.zqggLX("press", this, null);
}
}
on (release) {
if (_parent.shopButtonsEnabled) {
_parent.pressGetAPass();
_parent.zqggLX("release", null);
}
}
on (rollOver) {
if (_parent.shopButtonsEnabled) {
_parent.zqggLX("subtleOver", this, null);
}
}
on (releaseOutside, rollOut) {
if (_parent.shopButtonsEnabled) {
_parent.zqggLX("out", this, null);
}
}
Instance of Symbol 272 MovieClip in Frame 5
onClipEvent (enterFrame) {
_parent.socketCallsLobby();
}
Frame 6
function initializeMapEditor() {
_root.attachMovie("window470MapEditorMC", "windowMC", 200000, {_x:175, _y:140});
zqggLX("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;
zqggLX("windowShow", windowMC);
editorHelpMode = _modeNew;
updateEditorHelpText();
if (Number(player.vwcTCi) == 0) {
_root.attachMovie("window304EditorNewMapWarnMessageMC", "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 10;
window2MC.msgText0.text = (window2MC.msgText1.text = editorText[63]);
zqggLX("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;
zqggLX("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]);
zqggLX("windowShow", window2MC);
lastSelectedSaveSlot = mapSlotNum;
} else {
performSaveEditor(mapSlotNum);
}
} else {
showLoadMapTextBoxes(false);
if (mapIsStock) {
loadStockMapIntoEditor((((localFilePath + "maps/") + mapVersionNum.toString()) + "/") + 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.vwcTCi) > 0))) {
var i = 0;
while (i < maxMapSlots) {
if ((mapListCustom.length > i) || ((editMode == _modeSaveMap) && (Number(player.vwcTCi) > 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.kkswbu)) {
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.kkswbu)) {
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((((localFilePath + "maps/") + mapVersionNum.toString()) + "/") + 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);
zqggLX("windowShow", window2MC);
}
function displayLoadMapMessage(msg) {
_root.attachMovie("window304LoadMapMessageMC", "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 10;
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
zqggLX("windowShow", window2MC);
}
function displaySaveMapMessage(msg) {
_root.attachMovie("window304SaveMapMessageMC", "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 10;
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
zqggLX("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";
}
earth[_local1][_local2][1] = "0";
editorSelectedTile = "0F0";
} else if (editorTileSet == 1) {
var _local3 = random(13);
if ((_local3 == 0) || (_local3 == 1)) {
earth[_local1][_local2][0] = "2G0";
} else if ((_local3 == 2) || (_local3 == 3)) {
earth[_local1][_local2][0] = "2G1";
} else if ((_local3 == 4) || (_local3 == 5)) {
earth[_local1][_local2][0] = "2G2";
} else if ((_local3 == 6) || (_local3 == 7)) {
earth[_local1][_local2][0] = "2G3";
} else if ((_local3 == 8) || (_local3 == 9)) {
earth[_local1][_local2][0] = "2G4";
} else if ((_local3 == 10) || (_local3 == 11)) {
earth[_local1][_local2][0] = "2G6";
} else if (_local3 == 12) {
earth[_local1][_local2][0] = "2G5";
}
earth[_local1][_local2][2] = random(1).toString();
editorSelectedTile = "2G0";
} else if (editorTileSet == 2) {
var _local3 = random(3);
if (_local3 == 0) {
earth[_local1][_local2][0] = "1E8";
} else if (_local3 == 1) {
earth[_local1][_local2][0] = "1E9";
} else if (_local3 == 2) {
earth[_local1][_local2][0] = "1F0";
}
earth[_local1][_local2][2] = random(1).toString();
editorSelectedTile = "1E8";
} else if (editorTileSet == 3) {
if (random(2) == 0) {
earth[_local1][_local2][0] = "3D0";
} else {
earth[_local1][_local2][0] = "3D1";
}
earth[_local1][_local2][2] = random(1).toString();
editorSelectedTile = "3D0";
} else if (editorTileSet == 4) {
var _local3 = random(8);
if (_local3 == 0) {
earth[_local1][_local2][0] = "4A0";
} else if (_local3 == 1) {
earth[_local1][_local2][0] = "4A0";
} else if (_local3 == 2) {
earth[_local1][_local2][0] = "4A1";
} else if (_local3 == 3) {
earth[_local1][_local2][0] = "4A1";
} else if (_local3 == 4) {
earth[_local1][_local2][0] = "4A2";
} else if (_local3 == 5) {
earth[_local1][_local2][0] = "4A2";
} else if (_local3 == 6) {
earth[_local1][_local2][0] = "4A3";
} else if (_local3 == 7) {
earth[_local1][_local2][0] = "4A4";
}
earth[_local1][_local2][2] = random(1).toString();
editorSelectedTile = "4A0";
}
earth[_local1][_local2][2] = random(4).toString();
earth[_local1][_local2][3] = "0";
_local1++;
}
_local2++;
}
createTiles();
displayEarth();
vzlnjm.fileName = "";
} else {
_local4 = editorText[12];
}
} else {
_local4 = editorText[70];
}
} 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 = (xqbcnBIqnDg._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;
zqggLX("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]);
zqggLX("windowShow", window2MC);
}
}
function closeEditorGeneralMessageWindow() {
showHideEditorButtons(true);
pressHandEditor();
}
function pressXMapEditor() {
noInputTime = 0;
showHideEditorButtons(false);
changeEditMode(_modeClose);
_root.attachMovie("window304EditorQuitConfirmation", "windowMC", 200000, {_x:123, _y:102});
zqggLX("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 {
qkewUQ("\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.toString(), 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).toString());
return(_local1);
}
function loadStockMapIntoEditor(fName) {
vzlnjm.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();
}
vzlnjm.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, "editorWeaponSpawn" + _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.editorWeaponSpawn" + 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(kkbdAf);
_root.attachMovie("window304NewMapMessageMC", "window3MC", 200004);
window3MC._x = 90;
window3MC._y = 20;
window3MC.msgText0.text = (window3MC.msgText1.text = editorText[57]);
zqggLX("windowShow", window3MC);
}
function closeEditorDisconnectWindow() {
window3MC.removeMovieClip();
}
var mapHeight;
var mapWidth;
var editorMapName;
var currentTilePage = 1;
var themeStartingPages = new Array(1, 6, 4, 10, 13);
var editorStandardWeaponSpawnTimes = new Array(0, 0, 10, 10, 20, 20, 20, 20, 20, 20, 10, 10, 20, 20);
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;
kkBQxl();
var mapScale = 1;
var rootDepthCount = 1000;
var vzlnjm = new area();
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 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) {
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 if (editMode == _modeDelete) {
var foundSpawn = false;
var editorWeaponIndex;
var editorPlayerIndex;
if ((tX != 0) && (tY != 0)) {
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.editorWeaponSpawn" + 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) {
earth[tX][tY][0] = "0A0";
earth[tX][tY][1] = "0";
earth[tX][tY][2] = "0";
earth[tX][tY][3] = "4";
SFXTicketScratch23.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, "editorWeaponSpawn" + 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 2674 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 272 MovieClip in Frame 6
onClipEvent (enterFrame) {
_parent.socketCallsLobby();
}
Frame 7
loadStockOrCustomArea();
functionTimers[40] = getTimer();
Frame 9
stop();
setQuality();
fqTEcOL.c._visible = 0;
if (gameMode != 2) {
chatMC._visible = 0;
}
displayPlayerName();
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 272 MovieClip in Frame 9
onClipEvent (enterFrame) {
_parent.onFrame("main");
}
onClipEvent (mouseDown) {
if (_parent.gameMode < 2) {
_parent.clickCount++;
_parent.player.qxCyQC = true;
}
}
onClipEvent (mouseUp) {
_parent.player.qxYeHq = true;
_parent.player.qxCyQC = false;
}
Instance of Symbol 272 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;
zqggLX("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() {
zqggLX("windowShow", optionsWindowMC0);
zqggLX("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 i = 4;
while (i < 6) {
var n = 0;
while (n < 5) {
str = "optText" + i;
with (eval (str + n)) {
text = optText[i + 9];
}
n++;
}
i++;
}
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;
crosshairSlider.dragger._x = optionCrosshair * (crosshairSlider.line._width / 9);
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 272 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));
reportUserPressClose();
}
initializeReportText();
zqggLX("windowShow", reportWindowMC);
if (kkdogm) {
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();
gfTruwFZApKOSG.removeMovieClip();
if (kkdogm) {
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(vzlnjm.tileSet + 1);
displaySummaryHeaders();
if (kkdogm) {
_root.attachMovie("mBTNqtlMC", "mBTNqtlMC", 1000);
}
Instance of Symbol 272 MovieClip in Frame 13
onClipEvent (enterFrame) {
_parent.onFrameSummary();
}
Frame 14
creditsPage = -1;
startWinMusic();
creditsMusicLoopIntervalID = setInterval(startWinMusic, creditsMusicLoopTime);
initializeParticles();
advanceCredits();
creditsIntervalID = setInterval(advanceCredits, creditsPageTime);
destinationParticleBitmapMC.onRelease = function () {
endCredits();
};
Frame 15
windowMC.msgText0.text = (windowMC.msgText1.text = msgText);
zqggLX("windowShow", windowMC);
Frame 16
gotoAndStop ("tasvfsdfveg");
Frame 17
gotoAndStop ("tasvfsdfveg");
Frame 18
gotoAndStop ("tasvfsdfveg");
Frame 19
if (false) {
}
Frame 20
loadSettings();
var settingsLoading = true;
gotoAndStop ("postExportFrameB");
Frame 21
if (false) {
}
Frame 22
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 26 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowOK();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 34 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowClose();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 36 MovieClip [window304VerificationSentMessageMC] Frame 1
function windowClose() {
_parent.closeVerificationSentMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 39 MovieClip [window304VerifyAccountMessageMC] Frame 1
function windowClose() {
_parent.closeVerifyAccountMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 40 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 40 MovieClip [shakeBlur1FX] Frame 2
_parent._x = _parent._x + int(xyMove);
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 40 MovieClip [shakeBlur1FX] Frame 3
_parent._y = _parent._y + int(xyMove);
bl.blurY = blurAmount * xyMove;
bl.blurX = 0;
_parent.filters = [bl];
Symbol 40 MovieClip [shakeBlur1FX] Frame 4
_parent._x = _parent._x - int(xyMove);
bl.blurX = blurAmount * xyMove;
bl.blurY = 0;
_parent.filters = [bl];
Symbol 40 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 41 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 41 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 41 MovieClip [damageHpFX] Frame 3
gotoAndPlay (2);
Symbol 43 MovieClip [CheckThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 48 MovieClip [window304PreChangeServerMessageMC] Frame 1
function windowClose() {
_parent.closePreChangeServer();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 78 MovieClip [window470VerifyMC] Frame 1
function windowClose() {
_parent.showLogInTextBoxes(true);
_parent.window3MC.removeMovieClip();
}
function windowOK() {
_parent.pressVerifyAccountOK(usernameText.text, pass0Text.text, email0Text.text, email1Text.text);
}
usernameText.tabIndex = 1;
pass0Text.tabIndex = 2;
email0Text.tabIndex = 3;
email1Text.tabIndex = 4;
Symbol 79 MovieClip [shakeSAFX] Frame 1
Symbol 79 MovieClip [shakeSAFX] Frame 2
_parent._parent.fqTEcOL._x = _parent._parent.fqTEcOL._x + int(xyMove);
_parent._parent.gxyAWm._x = _parent._parent.gxyAWm._x + int(xyMove);
Symbol 79 MovieClip [shakeSAFX] Frame 3
_parent._parent.fqTEcOL._y = _parent._parent.fqTEcOL._y + int(xyMove);
_parent._parent.gxyAWm._y = _parent._parent.gxyAWm._y + int(xyMove);
Symbol 79 MovieClip [shakeSAFX] Frame 4
_parent._parent.fqTEcOL._x = _parent._parent.fqTEcOL._x - int(xyMove);
_parent._parent.gxyAWm._x = _parent._parent.gxyAWm._x - int(xyMove);
Symbol 79 MovieClip [shakeSAFX] Frame 5
_parent._parent.fqTEcOL._y = _parent._parent.fqTEcOL._y - int(xyMove);
_parent._parent.gxyAWm._y = _parent._parent.gxyAWm._y - int(xyMove);
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
Symbol 96 MovieClip [CheckBoxAssets] Frame 1
#initclip 83
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 97 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 97 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 97 MovieClip [damageFX] Frame 3
gotoAndPlay (2);
Symbol 98 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 98 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 98 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 99 MovieClip [shakeParentFX] Frame 1
Symbol 99 MovieClip [shakeParentFX] Frame 2
_parent._x = _parent._x + int(xyMove);
Symbol 99 MovieClip [shakeParentFX] Frame 3
_parent._y = _parent._y + int(xyMove);
Symbol 99 MovieClip [shakeParentFX] Frame 4
_parent._x = _parent._x - int(xyMove);
Symbol 99 MovieClip [shakeParentFX] Frame 5
_parent._y = _parent._y - int(xyMove);
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
Symbol 102 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 78
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 110 MovieClip [ComboAssets] Frame 1
#initclip 81
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 123 MovieClip [RadioButtonAssets] Frame 1
#initclip 82
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 127 MovieClip [BtnDownArrow] Frame 1
#initclip 79
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 174 MovieClip [BtnUpArrow] Frame 1
#initclip 80
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 185 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 187 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 190 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 192 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 195 MovieClip [Defaults] Frame 1
#initclip 50
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 196 MovieClip [UIObjectExtensions] Frame 1
#initclip 51
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 197 MovieClip [UIObject] Frame 1
#initclip 52
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 200 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 201 MovieClip Frame 1
#initclip 53
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 202 MovieClip [FocusRect] Frame 1
#initclip 54
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 203 MovieClip [FocusManager] Frame 1
#initclip 55
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 204 MovieClip [UIComponentExtensions] Frame 1
#initclip 56
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 205 MovieClip [UIComponent] Frame 1
#initclip 57
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 206 MovieClip [SimpleButton] Frame 1
#initclip 58
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 207 MovieClip [Border] Frame 1
#initclip 59
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 208 MovieClip [RectBorder] Frame 1
#initclip 60
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 209 MovieClip [ButtonSkin] Frame 1
#initclip 61
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 210 MovieClip [Button] Frame 1
#initclip 62
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 206 MovieClip [SimpleButton] in Symbol 210 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 211 MovieClip [CustomBorder] Frame 1
#initclip 63
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 212 MovieClip [VScrollBar] Frame 1
#initclip 64
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 210 MovieClip [Button] in Symbol 212 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 206 MovieClip [SimpleButton] in Symbol 212 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 213 MovieClip [HScrollBar] Frame 1
#initclip 65
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 210 MovieClip [Button] in Symbol 213 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 206 MovieClip [SimpleButton] in Symbol 213 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 214 MovieClip [UIScrollBar] Frame 1
#initclip 66
Object.registerClass("UIScrollBar", mx.controls.UIScrollBar);
#endinitclip
stop();
Instance of Symbol 212 MovieClip [VScrollBar] in Symbol 214 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 213 MovieClip [HScrollBar] in Symbol 214 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 247 MovieClip [DataProvider] Frame 1
#initclip 67
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 248 MovieClip [DataSelector] Frame 1
#initclip 68
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 249 MovieClip [SelectableRow] Frame 1
#initclip 69
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 250 MovieClip [View] Frame 1
#initclip 70
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 251 MovieClip [ScrollView] Frame 1
#initclip 71
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 213 MovieClip [HScrollBar] in Symbol 251 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 212 MovieClip [VScrollBar] in Symbol 251 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 252 MovieClip [ScrollSelectList] Frame 1
#initclip 72
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 253 MovieClip [List] Frame 1
#initclip 73
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 261 MovieClip [TextInput] Frame 1
#initclip 74
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 262 MovieClip [ComboBase] Frame 1
#initclip 75
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 206 MovieClip [SimpleButton] in Symbol 262 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 261 MovieClip [TextInput] in Symbol 262 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 263 MovieClip [ComboBox] Frame 1
#initclip 76
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 253 MovieClip [List] in Symbol 263 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 267 MovieClip [RadioButton] Frame 1
#initclip 77
Object.registerClass("RadioButton", mx.controls.RadioButton);
#endinitclip
stop();
Instance of Symbol 210 MovieClip [Button] "foo" in Symbol 267 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 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 2
_quality = "HIGH";
if (_parent._parent.skipIntro) {
_parent._parent.doneIntro();
}
Instance of Symbol 272 MovieClip in Symbol 273 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))))));
_parent._parent._parent.loadScreenInfoMC._alpha = _parent._parent._parent.loadScreenInfoMC._alpha - 10;
}
Symbol 273 MovieClip Frame 15
stop();
Symbol 280 MovieClip Frame 29
stop();
Symbol 295 MovieClip Frame 76
stop();
Symbol 297 MovieClip Frame 11
_parent.XGSIntroMC.onEnterFrame = _parent.frameFunction;
Symbol 297 MovieClip Frame 155
stop();
_parent._parent.doneIntro();
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 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 309 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 1
if (_parent.randWeap == undefined) {
_parent.randWeap = random(2);
}
chaingunMC._visible = _parent.randWeap;
railgunMC._visible = !chaingunMC._visible;
shotgunMC._visible = false;
Symbol 392 MovieClip Frame 77
gotoAndPlay (2);
Symbol 393 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.loadBar.gotoAndStop(98);
_parent.loadBar2.gotoAndStop(98);
if (!_parent.languageLoaded) {
_parent.percentLoadedText2.text = (_parent.percentLoadedText.text = " [Dictionary]");
}
if (!_parent.upgradeValuesLoaded) {
_parent.percentLoadedText2.text = (_parent.percentLoadedText.text = " [Items]");
}
if (!_parent.settingsLoaded) {
_parent.percentLoadedText2.text = (_parent.percentLoadedText.text = " [Configuration]");
}
if (!_parent.mapEditorTileDataLoaded) {
_parent.percentLoadedText2.text = (_parent.percentLoadedText.text = " [Map Editor]");
}
if (!_parent.versionLoaded) {
_parent.percentLoadedText2.text = (_parent.percentLoadedText.text = " [Checking for Updates...]");
}
if (((((!_parent.settingsLoaded) && (!_parent.versionLoaded)) && (!_parent.languageLoaded)) && (!_parent.upgradeValuesLoaded)) && (!_parent.mapEditorTileDataLoaded)) {
_parent.percentLoadedText2.text = (_parent.percentLoadedText.text = " [Game Data]");
}
if ((((_parent.settingsLoaded && (_parent.versionLoaded)) && (_parent.languageLoaded)) && (_parent.upgradeValuesLoaded)) && (_parent.mapEditorTileDataLoaded)) {
_parent.percentLoadedText2.text = (_parent.percentLoadedText.text = " [Done!]");
}
}
} 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 227 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 8071 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 8072 MovieClip [__Packages.com.meychi.ascrypt.MD5] Frame 0
class com.meychi.ascrypt.MD5
{
function MD5 () {
}
static function calculate(src) {
return(hex_md5(src));
}
static function hex_md5(src) {
return(binl2hex(core_md5(str2binl(src), src.length * 8)));
}
static function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(new Array(_local4, _local3, _local2, _local1));
}
static function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
static function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
static function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
static function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
static function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
static function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
static function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
static function str2binl(str) {
var _local3 = new Array();
var _local4 = 255;
var _local1 = 0;
while (_local1 < (str.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32));
_local1 = _local1 + 8;
}
return(_local3);
}
static function binl2hex(binarray) {
var _local4 = new String("");
var _local3 = new String("0123456789abcdef");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
}
Symbol 8073 MovieClip [__Packages.XML2Object] Frame 0
class XML2Object
{
static var xml2object;
var _result, _xml;
function XML2Object () {
_result = new Object();
}
static function deserialize(xml) {
xml2object = new XML2Object();
xml2object.__set__xml(xml);
return(xml2object.nodesToProperties());
}
function get xml() {
return(_xml);
}
function set xml(xml) {
_xml = xml;
//return(this.xml);
}
function nodesToProperties(parent, path, name, position) {
var _local7;
var _local2;
((path == undefined) ? (path = _result) : (path = path[name]));
if (parent == undefined) {
parent = XMLNode(_xml);
}
if (parent.hasChildNodes()) {
_local7 = parent.childNodes;
if (position != undefined) {
path = path[position];
}
while (_local7.length > 0) {
_local2 = XMLNode(_local7.shift());
if (_local2.nodeName != undefined) {
var _local4 = new Object();
_local4.attributes = _local2.attributes;
_local4.data = sanitizeLineBreaks(_local2.firstChild.nodeValue);
if (path[_local2.nodeName] != undefined) {
if (path[_local2.nodeName].__proto__ == Array.prototype) {
path[_local2.nodeName].push(_local4);
} else {
var _local6 = path[_local2.nodeName];
delete path[_local2.nodeName];
path[_local2.nodeName] = new Array();
path[_local2.nodeName].push(_local6);
path[_local2.nodeName].push(_local4);
}
position = path[_local2.nodeName].length - 1;
} else {
path[_local2.nodeName] = _local4;
position = undefined;
}
name = _local2.nodeName;
}
if (_local2.hasChildNodes()) {
nodesToProperties(_local2, path, name, position);
}
}
}
return(_result);
}
function sanitizeLineBreaks(raw) {
if (raw.indexOf("\r\n") > -1) {
return(raw.split("\r\n").join(newline));
}
return(raw);
}
}
Symbol 178 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 215 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 216 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 218 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 217 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 179 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 222 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 241 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 257 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 219 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 237 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 264 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 258 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 265 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 230 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 231 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 225 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 242 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 254 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 226 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 243 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 180 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 220 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 221 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 244 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 245 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 246 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 255 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 224 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 266 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 268 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 468 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 181 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 223 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 228 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 229 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 232 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 233 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 234 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 235 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 236 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 238 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 239 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 240 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 256 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 434 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressQuickStart();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 443 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressLogIn();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 452 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressCreateAccount();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 466 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressTutorial();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 469 MovieClip [CheckBox] Frame 1
#initclip 84
Object.registerClass("CheckBox", mx.controls.CheckBox);
#endinitclip
stop();
Instance of Symbol 210 MovieClip [Button] in Symbol 469 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 472 Button
on (press) {
_parent.zqggLX("press", this);
}
on (release) {
_parent.pressCredits();
_parent.zqggLX("release", this);
}
on (rollOver) {
_parent.zqggLX("over", this);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this);
}
Instance of Symbol 469 MovieClip [CheckBox] "checkBoxLoginKongregate" in Symbol 473 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
label = " Use Kongregate Account?";
labelPlacement = "right";
selected = true;
}
on (release) {
_parent._parent.buttonFX("press");
this.invalidate();
}
onClipEvent (load) {
function __f_draw(eventObj) {
_parent._parent.useKongregateAccount = this.selected;
}
this.addEventListener("draw", __f_draw);
}
onClipEvent (load) {
function __f_load(eventObj) {
this.selected = _parent._parent.useKongregateAccount;
}
this.addEventListener("load", __f_load);
}
Symbol 490 MovieClip [window4053DayFreeLabPassMC] Frame 1
function windowClose() {
_parent.pressCloseSpecialOffer();
}
function windowOK() {
windowClose();
}
Symbol 744 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 19
stop();
Symbol 945 MovieClip Frame 38
stop();
Symbol 984 MovieClip Frame 6
stop();
Symbol 988 MovieClip Frame 108
eyes_mc.play();
Symbol 992 MovieClip Frame 178
_parent.bypassSAIntro(false);
Symbol 992 MovieClip Frame 196
if (_parent.userInitiatedBypass) {
stop();
_parent.doneSAIntro();
}
Symbol 992 MovieClip Frame 215
stop();
_parent.doneSAIntro();
Symbol 1007 MovieClip Frame 1
stop();
if (_parent._parent._parent._name == "gxyAWm") {
if (_root.player.spinners[_root.player.jhHtWQ].num == 86) {
gotoAndStop (2);
}
} else if (_parent._parent._parent.spinnerArray[0] == 86) {
gotoAndStop (2);
}
Symbol 1222 MovieClip Frame 40
_parent._parent._parent.player.doneAttack();
Symbol 1307 MovieClip Frame 12
stop();
Symbol 1345 Button
on (press) {
_parent.zqggLX("press", this, _parent.chatMC);
}
on (release) {
_parent.lobbyChatKeyPressed(true);
_parent.zqggLX("release", this, _parent.chatMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.chatMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.chatMC);
}
Symbol 1355 Button
on (press) {
_parent.zqggLX("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.pressJoinGame();
_parent.zqggLX("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1371 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent);
}
on (release) {
_parent._parent.pressJoinPrivateOK(_parent.arenaNameMC.chatText0.text.substr(0, _parent.arenaNameMC.chatText0.text.length - 1));
_parent._parent.zqggLX("release", this, _parent);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent);
}
Symbol 1391 MovieClip Frame 1
stop();
Symbol 1391 MovieClip Frame 55
_parent.titleBG._visible = 0;
Instance of Symbol 267 MovieClip [RadioButton] "radioPublic" in Symbol 1391 MovieClip Frame 3988
//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 267 MovieClip [RadioButton] "radioPrivate" in Symbol 1391 MovieClip Frame 3988
//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 267 MovieClip [RadioButton] "radioCycle" in Symbol 1391 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 267 MovieClip [RadioButton] "radioRandom" in Symbol 1391 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 267 MovieClip [RadioButton] "radioRepeat" in Symbol 1391 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 263 MovieClip [ComboBox] "mapBox" in Symbol 1391 MovieClip Frame 3988
//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 469 MovieClip [CheckBox] "checkBoxBallistick" in Symbol 1391 MovieClip Frame 3988
//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 469 MovieClip [CheckBox] "checkBoxClassic" in Symbol 1391 MovieClip Frame 3988
//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 469 MovieClip [CheckBox] "checkBoxCustom" in Symbol 1391 MovieClip Frame 3988
//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 469 MovieClip [CheckBox] "checkBoxFeature" in Symbol 1391 MovieClip Frame 3988
//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 1391 MovieClip Frame 4849
_parent.titleBG._visible = 1;
Symbol 1391 MovieClip Frame 4859
_parent.tutorialDone();
Symbol 1416 Button
on (press) {
_parent.zqggLX("press", this, _parent.chatMC);
}
on (release) {
_parent.lobbyChatKeyPressed();
_parent.zqggLX("release", this, _parent.chatMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.chatMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.chatMC);
}
Symbol 1417 Button
on (release) {
_parent.chatKeyPressed();
}
Symbol 1418 MovieClip Frame 1
stop();
Symbol 1429 Button
on (press) {
_parent.zqggLX("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.pressJoinPrivate();
_parent.zqggLX("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1433 Button
on (press) {
_parent.zqggLX("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.pressRemoveVIP();
_parent.zqggLX("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1437 MovieClip Frame 1
stop();
Symbol 1440 Button
on (press) {
_parent.zqggLX("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.pressAddVIP();
_parent.zqggLX("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1442 MovieClip Frame 1
stop();
Symbol 1445 Button
on (press) {
_parent.zqggLX("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.pressCreateGame();
_parent.zqggLX("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1453 Button
on (press) {
_parent.zqggLX("press", this, _parent.lobbyButtonBGMC);
}
on (release) {
_parent.lobbyLogout();
_parent.zqggLX("release", this, _parent.lobbyButtonBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.lobbyButtonBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.lobbyButtonBGMC);
}
Symbol 1482 MovieClip Frame 100
if (random(2) == 0) {
gotoAndPlay ("chill");
}
Symbol 1482 MovieClip Frame 120
if (random(2) == 0) {
gotoAndPlay ("blink");
} else if (random(3) == 0) {
gotoAndPlay ("lips");
}
Symbol 1482 MovieClip Frame 156
if (random(2) == 0) {
gotoAndPlay ("blink");
} else if (random(3) == 0) {
gotoAndPlay ("lips");
}
Symbol 1482 MovieClip Frame 254
if (random(2) == 0) {
gotoAndPlay ("blink");
} else {
gotoAndPlay ("lips");
}
Symbol 1499 MovieClip Frame 1
stop();
Symbol 1553 Button
on (press) {
_parent._parent.zqggLX("press", this, tabBGMC);
}
on (release) {
_parent._parent.pressTabLobby();
_parent._parent.zqggLX("release", this, tabBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, tabBGMC);
}
Symbol 1556 MovieClip Frame 1
stop();
Symbol 1593 Button
on (press) {
_parent._parent.zqggLX("press", this, tabBGMC);
}
on (release) {
_parent._parent.pressTabProfile();
_parent._parent.zqggLX("release", this, tabBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, tabBGMC);
}
Symbol 1596 MovieClip Frame 1
stop();
Symbol 1602 MovieClip Frame 1
stop();
Symbol 1621 Button
on (press) {
_parent._parent.zqggLX("press", this, tabBGMC);
}
on (release) {
_parent._parent.pressTabShop();
_parent._parent.zqggLX("release", this, tabBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, tabBGMC);
}
Symbol 1624 MovieClip Frame 1
stop();
Symbol 1660 Button
on (press) {
_parent._parent.zqggLX("press", this, tabBGMC);
}
on (release) {
_parent._parent.pressTabEditor();
_parent._parent.zqggLX("release", this, tabBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, tabBGMC);
}
Symbol 1663 MovieClip Frame 1
stop();
Symbol 1667 MovieClip Frame 1
if (_parent.ticketWaiting) {
tabShopMC.tabShopGlowMC.gotoAndStop("glow");
}
Symbol 1674 MovieClip Frame 1
stop();
Symbol 1753 MovieClip Frame 1
var rnd = Boolean(random(2));
chaingunMC._visible = rnd;
railgunMC._visible = !rnd;
shotgunMC._visible = false;
Symbol 1753 MovieClip Frame 77
gotoAndPlay (2);
Symbol 1760 Button
on (press) {
_parent.zqggLX("press", this, tabBGMC);
}
on (release) {
_parent.pressTabPets();
_parent.zqggLX("release", this, tabBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, tabBGMC);
}
Symbol 1767 MovieClip Frame 1
stop();
Symbol 1774 Button
on (press) {
_parent.zqggLX("press", this, tabBGMC);
}
on (release) {
_parent.pressTabSpinners();
_parent.zqggLX("release", this, tabBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, tabBGMC);
}
Symbol 1781 MovieClip Frame 1
stop();
Symbol 1794 MovieClip Frame 1
stop();
Symbol 1810 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 1814 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 1825 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 1871 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 1920 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 1949 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 1970 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 1974 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 1995 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 2011 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 2099 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 2150 MovieClip Frame 21
gotoAndPlay (5);
Symbol 2175 MovieClip Frame 22
flamesMC.gotoAndPlay("cooldown");
Symbol 2175 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 2254 MovieClip Frame 2
gotoAndPlay (10);
Symbol 2254 MovieClip Frame 23
Symbol 2254 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 2293 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 2360 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 2384 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 2430 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 2512 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 2554 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 2555 MovieClip Frame 1
stop();
Symbol 2556 MovieClip Frame 1
_parent.updateCustomizationTopAnimation();
Symbol 2556 MovieClip Frame 2
_parent.updateCustomizationTopAnimation();
Symbol 2559 Button
on (press) {
_parent.zqggLX("press", this, null);
}
on (release) {
_parent.pressArrowLeftProfile();
_parent.zqggLX("customize", this, null);
}
on (rollOver) {
_parent.zqggLX("over", this, null);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, null);
}
Symbol 2560 MovieClip Frame 1
stop();
Symbol 2560 MovieClip Frame 2
stop();
Symbol 2563 Button
on (press) {
_parent.zqggLX("press", this, null);
}
on (release) {
_parent.pressArrowRightProfile();
_parent.zqggLX("customize", this, null);
}
on (rollOver) {
_parent.zqggLX("over", this, null);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, null);
}
Symbol 2564 MovieClip Frame 1
stop();
Symbol 2567 MovieClip Frame 1
stop();
Symbol 2594 Button
on (press) {
_parent.zqggLX("press", this, tabBGMC);
}
on (release) {
_parent.pressTabPetsShop();
_parent.zqggLX("release", this, tabBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, tabBGMC);
}
Symbol 2597 MovieClip Frame 1
stop();
Symbol 2600 Button
on (press) {
_parent.zqggLX("press", this, tabBGMC);
}
on (release) {
_parent.pressTabSpinnersShop();
_parent.zqggLX("release", this, tabBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, tabBGMC);
}
Symbol 2603 MovieClip Frame 1
stop();
Symbol 2618 MovieClip Frame 1
gotoAndStop(random(238) + 3);
Symbol 2618 MovieClip Frame 242
gotoAndPlay (3);
Symbol 2624 MovieClip Frame 1
Symbol 2635 MovieClip Frame 2
stop();
Symbol 2646 Button
on (press) {
_parent.zqggLX("press", this, _parent.petSpinnersBGMC);
}
on (release) {
_parent.pressBuySpinnerPet();
_parent.zqggLX("release", this, _parent.petSpinnersBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.petSpinnersBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.petSpinnersBGMC);
}
Symbol 2648 Button
on (press) {
_parent.zqggLX("press", this, _parent.mapSlotBGMC);
}
on (release) {
_parent.pressBuyMapSlot();
_parent.zqggLX("release", this, _parent.mapSlotBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.mapSlotBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.mapSlotBGMC);
}
Symbol 2659 Button
on (press) {
_parent.zqggLX("press", this, _parent.petSpinnersSmallBGMC);
}
on (release) {
_parent.pressManageAccount();
_parent.zqggLX("release", this, _parent.petSpinnersSmallBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.petSpinnersSmallBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.petSpinnersSmallBGMC);
}
Symbol 2663 Button
on (press) {
_parent.zqggLX("press", this, null);
}
on (release) {
_parent.pressArrowLeftShop();
_parent.zqggLX("release", this, null);
}
on (rollOver) {
_parent.zqggLX("over", this, null);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, null);
}
Symbol 2664 MovieClip Frame 1
stop();
Symbol 2664 MovieClip Frame 2
stop();
Symbol 2665 Button
on (press) {
_parent.zqggLX("press", this, null);
}
on (release) {
_parent.pressArrowRightShop();
_parent.zqggLX("release", this, null);
}
on (rollOver) {
_parent.zqggLX("over", this, null);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, null);
}
Symbol 2666 MovieClip Frame 1
stop();
Symbol 2673 MovieClip Frame 1
Symbol 2675 Button
on (press) {
_parent.zqggLX("press", this, _parent.bgScrollMC);
}
on (release) {
_parent.pressXMapEditor();
_parent.zqggLX("release", this, _parent.bgScrollMC);
}
on (rollOver) {
_parent.rollOverEditorButton(_parent._modeClose);
_parent.zqggLX("over", this, _parent.bgScrollMC);
}
on (rollOut, releaseOutside) {
_parent.rollOffEditorButton();
_parent.zqggLX("out", this, _parent.bgScrollMC);
}
Symbol 2680 Button
on (press) {
_parent.zqggLX("press", this, _parent.bgScrollMC);
}
on (release) {
_parent.pressHelpMapEditor();
_parent.zqggLX("release", this, _parent.bgScrollMC);
}
on (rollOver) {
_parent.rollOverEditorButton(_parent._modeHelp);
_parent.zqggLX("over", this, _parent.bgScrollMC);
}
on (rollOut, releaseOutside) {
_parent.rollOffEditorButton();
_parent.zqggLX("out", this, _parent.bgScrollMC);
}
Symbol 2696 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressTileSetsEditor();
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeTileSets);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2702 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPaintBrushEditor();
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modePaintBrush);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2708 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressEyeDropperEditor();
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeEyeDropper);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2714 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressRotateEditor();
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeRotate);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2721 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressMirrorXEditor();
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeMirrorX);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2726 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressMirrorYEditor();
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeMirrorY);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2732 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressSaveEditor();
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSaveMap);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2738 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressHandEditor();
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeMoveMap);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2746 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressSpawnsEditor();
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawns);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2753 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressDeleteEditor();
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeDelete);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2759 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressTilesEditor();
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeTiles);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2764 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(0);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnBat);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2767 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(4);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnShotgun);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2770 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(1);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnKatana);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2776 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(3);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnAK47);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2782 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(5);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnSledge);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2788 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(2);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnGlock);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2794 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(10);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnHelmet);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2797 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(9);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnLasersword);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2811 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(8);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnChainsaw);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2814 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(11);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnChaingun);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2820 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(7);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnRailgun);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2826 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(6);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnFlamethrower);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2831 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent._parent.bgEditorMC);
}
on (release) {
_parent._parent.pressPlaceSpawnEditor(12);
_parent._parent.zqggLX("release", this, _parent._parent.bgEditorMC);
}
on (rollOver) {
_parent._parent.rollOverEditorButton(_parent._parent._modeSpawnPlayer);
_parent._parent.zqggLX("over", this, _parent._parent.bgEditorMC);
}
on (rollOut, releaseOutside) {
_parent._parent.rollOffEditorButton();
_parent._parent.zqggLX("out", this, _parent._parent.bgEditorMC);
}
Symbol 2833 MovieClip Frame 1
stop();
Instance of Symbol 2687 MovieClip in Symbol 2833 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 2687 MovieClip in Symbol 2833 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 2687 MovieClip in Symbol 2833 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 2687 MovieClip in Symbol 2833 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 2844 MovieClip Frame 7
stop();
Symbol 2931 MovieClip Frame 1
function hideHearts() {
heart0MC._visible = 0;
heart1MC._visible = 0;
heart2MC._visible = 0;
heart3MC._visible = 0;
}
hideHearts();
heart3MC._visible = 1;
Symbol 2952 MovieClip Frame 1
stop();
Symbol 3001 MovieClip Frame 19
stop();
Symbol 3042 MovieClip Frame 58
stop();
Symbol 3058 MovieClip Frame 21
if (_parent.textMC.idText.text == "") {
_parent._parent.player.spawnDone();
} else {
_parent._parent._parent.playerSpawnDone(_parent.textMC.idText.text);
}
gotoAndStop (1);
Symbol 3102 MovieClip Frame 78
stop();
Symbol 3144 MovieClip Frame 53
stop();
Symbol 3180 MovieClip Frame 64
stop();
Symbol 3209 MovieClip Frame 32
stop();
Symbol 3250 MovieClip Frame 21
stop();
Symbol 3273 MovieClip Frame 17
stop();
Symbol 3274 MovieClip Frame 28
stop();
Symbol 3275 MovieClip Frame 1
stop();
Symbol 3283 MovieClip Frame 52
stop();
Symbol 3294 MovieClip [characterMC] Frame 1
function resetDeltaTimes() {
deltaTimes = new Array();
var _local1 = 0;
while (_local1 < 30) {
deltaTimes[_local1] = 100;
_local1++;
}
}
function animateSpawn(str) {
gxyhDYy._visible = 0;
fqqZCx._visible = 0;
deathMC._visible = 0;
soulHeavenMC._visible = 0;
soulHellMC._visible = 0;
xqCOVDl._visible = 1;
xqCOVDl.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 tqHfIW = false;
var mod = "spawn";
var lqMGgx = false;
var xVel = 0;
var yVel = 0;
var vel = 0;
var kills;
var zqRuLy = 0;
var zqhUQj;
var rank;
var recievedGameState = false;
var frame = 1;
var vwjxOy = true;
var vzSwjY = 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 3296 Button
on (press) {
_parent.zqggLX("press", this, _parent.chatMC);
}
on (release) {
_parent.chatKeyPressed();
_parent.zqggLX("release", this, _parent.chatMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.chatMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.chatMC);
}
Symbol 3297 MovieClip Frame 1
stop();
Symbol 3300 Button
on (press) {
_parent.zqggLX("press", this, _parent.chatMC);
}
on (release) {
_parent.optionsBtnPressed();
_parent.zqggLX("release", this, _parent.chatMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.chatMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.chatMC);
}
Symbol 3331 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 3337 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 3343 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 3349 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 3360 Button
on (press) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("press", this, _parent.optionsWindowMC0);
}
}
on (release) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("release", this, _parent.optionsWindowMC0);
}
_parent.optionsResumeGame();
}
on (rollOver) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("over", this, _parent.optionsWindowMC0);
}
}
on (rollOut, releaseOutside) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("out", this, _parent.optionsWindowMC0);
}
}
Symbol 3367 Button
on (press) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("press", this, _parent.optionsWindowMC0);
}
}
on (release) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("release", this, _parent.optionsWindowMC0);
}
_parent.optionsQuitConfirm("quit");
}
on (rollOver) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("over", this, _parent.optionsWindowMC0);
}
}
on (rollOut, releaseOutside) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("out", this, _parent.optionsWindowMC0);
}
}
Symbol 3369 Button
on (press) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("press", this, _parent.optionsWindowMC0);
}
}
on (release) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("release", this, _parent.optionsWindowMC0);
}
_parent.optionsQuitConfirm("logout");
}
on (rollOver) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("over", this, _parent.optionsWindowMC0);
}
}
on (rollOut, releaseOutside) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.zqggLX("out", this, _parent.optionsWindowMC0);
}
}
Symbol 3379 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.optionsQuitConfirmed();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 3383 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.optionsQuitCancelled();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 3386 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 3397 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.optionCrosshair = Math.floor((Math.min(this._x, line._width) * 9) / line._width);
};
}
};
dragger.onRelease = (dragger.onReleaseOutside = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
this.stopDrag();
delete this.onEnterFrame;
this._x = _parent.optionCrosshair * (line._width / 9);
this.setColor(40);
}
});
dragger.setColor = function (brt) {
crosshairMC.attachMovie(("cursor" + _parent.optionCrosshair) + "MC", "xqtEcrGq", 1);
};
dragger.onRollOver = function () {
if (_parent.quitConfirmationMC._visible == 0) {
this.setColor(40);
}
};
dragger.onRollOut = function () {
this.setColor(0);
};
dragger.setColor(0);
Symbol 3403 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowClose();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 3410 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 3412 MovieClip Frame 1
function windowClose() {
_parent.reportUserPressClose();
}
function windowOK() {
_parent.reportUserPressOK();
}
Symbol 3427 MovieClip Frame 1
stop();
Symbol 3427 MovieClip Frame 4
this.attachMovie("postMatchBG4MC", "postMatchBG4MC", 10);
Symbol 3427 MovieClip Frame 5
this.attachMovie("postMatchBG4MC", "postMatchBG4MC", 10);
Symbol 3436 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 3448 MovieClip Frame 1
badgeSquareMC._visible = 0;
Symbol 3452 MovieClip [rankGainMC] Frame 209
stop();
Symbol 3470 Button
on (release) {
loginPressAdvanced();
}
Symbol 3478 Button
on (release) {
pressVerify();
}
Symbol 3479 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;
}
function pressVerify() {
_parent.tutorialTimer = -1;
_parent.attachMovie("window470VerifyMC", "window3MC", 200002, {_x:40, _y:170});
_parent.zqggLX("windowShow", _parent.window3MC);
_parent.window3MC.usernameText.text = _parent.uName;
_parent.titleMenuMC._visible = 0;
_parent.window3MC.h0Text0.text = (_parent.window3MC.h0Text1.text = _parent.logInText[0]);
_parent.window3MC.h1Text0.text = (_parent.window3MC.h1Text1.text = _parent.logInText[1]);
_parent.window3MC.h2Text0.text = (_parent.window3MC.h2Text1.text = _parent.logInText[20]);
_parent.window3MC.email00.text = (_parent.window3MC.email01.text = _parent.logInText[17]);
_parent.window3MC.email10.text = (_parent.window3MC.email11.text = _parent.logInText[18]);
_parent.window3MC.verifyMessage2.text = (_parent.window3MC.verifyMessage1.text = _parent.logInText[19]);
_parent.showLogInTextBoxes(false);
Key.removeListener(_parent.loginKeyListener);
}
initializeLogInServerBox();
Instance of Symbol 263 MovieClip [ComboBox] "serverBox" in Symbol 3479 MovieClip [window470LogInMC] Frame 1
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "";
editable = false;
rowCount = 9;
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 469 MovieClip [CheckBox] "checkBoxRemember" in Symbol 3479 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 272 MovieClip in Symbol 3479 MovieClip [window470LogInMC] Frame 1
onClipEvent (enterFrame) {
_parent.updateCreateAccountName();
}
Symbol 3482 MovieClip [window304LogInMessageMC] Frame 1
function windowClose() {
_parent.closeLogInMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 3485 MovieClip [window304ChangeServerMessageMC] Frame 1
function windowClose() {
_parent.pressChangeServerClose();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 3486 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 3488 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3489 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3491 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3493 MovieClip [ScrollThumbThemeColorlg] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3495 MovieClip [ScrollThumbMiddleColorTheme] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3497 MovieClip [ScrollThumbColorTheme] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3499 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3501 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3503 MovieClip [RadioThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3505 MovieClip [RadioThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3507 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 3603 MovieClip [summaryCharLose1MC] Frame 120
stop();
Symbol 3798 MovieClip [summaryCharLose0MC] Frame 59
if (random(6) == 0) {
stop();
}
Symbol 3798 MovieClip [summaryCharLose0MC] Frame 65
if (random(6) == 0) {
stop();
}
Symbol 3798 MovieClip [summaryCharLose0MC] Frame 122
if (random(3) == 0) {
stop();
}
Symbol 3798 MovieClip [summaryCharLose0MC] Frame 189
if (random(3) == 0) {
stop();
}
Symbol 3798 MovieClip [summaryCharLose0MC] Frame 239
stop();
Symbol 3947 MovieClip [summaryCharWin0MC] Frame 183
stop();
Symbol 3958 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 394 MovieClip in Symbol 3958 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 4178 MovieClip [tile2K1] Frame 1
gotoAndPlay(random(20) + 1);
Symbol 4178 MovieClip [tile2K1] Frame 20
gotoAndPlay(random(2) + 2);
Symbol 4185 MovieClip [tile2K0] Frame 1
gotoAndPlay(random(20) + 1);
Symbol 4185 MovieClip [tile2K0] Frame 20
gotoAndPlay(random(2) + 2);
Symbol 4395 MovieClip [sledgeParticleMC] Frame 75
this.removeMovieClip();
Symbol 4396 MovieClip [shotgunParticleMC] Frame 22
this.removeMovieClip();
Symbol 4397 MovieClip [glockParticleMC] Frame 21
this.removeMovieClip();
Symbol 4400 MovieClip [ak47ParticleMC] Frame 15
this.removeMovieClip();
Symbol 4413 MovieClip [bloodSword0MC] Frame 12
this.removeMovieClip();
Symbol 4426 MovieClip [bloodShotgun2MC] Frame 12
this.removeMovieClip();
Symbol 4439 MovieClip [bloodShotgun1MC] Frame 12
this.removeMovieClip();
Symbol 4440 MovieClip [bloodShotgun0MC] Frame 12
this.removeMovieClip();
Symbol 4452 MovieClip [bloodKnife0MC] Frame 12
this.removeMovieClip();
Symbol 4453 MovieClip [bloodBullet2MC] Frame 12
this.removeMovieClip();
Symbol 4465 MovieClip [bloodBullet1MC] Frame 12
this.removeMovieClip();
Symbol 4476 MovieClip [bloodBullet0MC] Frame 12
this.removeMovieClip();
Symbol 4489 MovieClip [bloodBat1MC] Frame 12
this.removeMovieClip();
Symbol 4501 MovieClip [bloodBat0MC] Frame 12
this.removeMovieClip();
Symbol 4539 MovieClip [tile1V0] Frame 1
gotoAndPlay(random(9) + 1);
Symbol 4539 MovieClip [tile1V0] Frame 77
gotoAndPlay(random(30) + 80);
Symbol 5074 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 5074 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 5074 MovieClip [fadeInFX] Frame 3
gotoAndPlay (2);
Symbol 5075 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 5075 MovieClip [remoteDeathFX] Frame 2
red = Math.max(red - 5, 0);
myColorTransform2.rb = red * 2.5;
myColor2.setTransform(myColorTransform2);
if (red <= 0) {
this.removeMovieClip();
}
Symbol 5075 MovieClip [remoteDeathFX] Frame 3
gotoAndPlay (2);
Symbol 5076 MovieClip [deathFX] Frame 1
myColor = new Color(_parent._parent.fqTEcOL);
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 5076 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 5076 MovieClip [deathFX] Frame 3
gotoAndPlay (2);
Symbol 5077 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 5078 MovieClip [spawnFX] Frame 1
myColor = new Color(_parent._parent.fqTEcOL);
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 5079 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 5079 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 5079 MovieClip [localDamageFX] Frame 3
gotoAndPlay (2);
Symbol 5133 Button
on (press) {
_parent._parent._parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent._parent._parent.zqggLX("release", this, _parent.windowBGMC);
_parent._parent._parent._parent.pressThumb("1");
}
on (rollOver) {
_parent._parent._parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent._parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 5138 Button
on (press) {
_parent._parent._parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent._parent._parent.zqggLX("release", this, _parent.windowBGMC);
_parent._parent._parent._parent.pressThumb("0");
}
on (rollOver) {
_parent._parent._parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent._parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 5141 MovieClip Frame 1
stop();
Symbol 5141 MovieClip Frame 37
stop();
Symbol 5190 Button
on (release) {
_parent._parent.pressVoteKick(_parent.idArray[int(textBoxMC.textBox.text)]);
}
Symbol 5194 MovieClip Frame 1
textBoxMC._visible = 0;
Symbol 5198 Button
on (release) {
_parent._parent.pressReportUser(_parent.idArray[int(textBoxMC.textBox.text)]);
}
Symbol 5199 MovieClip Frame 1
textBoxMC._visible = 0;
Symbol 5212 MovieClip [warningMsgMC] Frame 1
var count = 0;
textBoxMC._visible = 0;
Instance of Symbol 5211 MovieClip [emptyMC] in Symbol 5212 MovieClip [warningMsgMC] Frame 1
onClipEvent (enterFrame) {
_parent.count++;
if (_parent.count > ((int(_parent.textBoxMC.textBox.text) / _parent._parent.frameDeltaTime) * 4)) {
_parent.removeMovieClip();
}
}
Symbol 5215 MovieClip [window405MC] Frame 1
function windowClose() {
_parent.closeWindow();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 5218 MovieClip [window304JoinPrivateMessageMC] Frame 1
function windowClose() {
_parent.closeJoinPrivateMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 5221 MovieClip [window304CreateGameMessageMC] Frame 1
function windowClose() {
_parent.closeCreateGameMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 5224 MovieClip [window304CreateAccountMessageMC] Frame 1
function windowClose() {
_parent.closeCreateAccountMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 5227 MovieClip [window304MC] Frame 1
function windowClose() {
_parent.closeWindow();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 5252 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressCreateAccountOK(_parent.usernameText.text, _parent.pass0Text.text, _parent.pass1Text.text, _parent.email0Text.text, _parent.cR, _parent.cG, _parent.cB, _parent.email1Text.text);
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 5265 MovieClip Frame 1
stop();
Symbol 5268 MovieClip [window470CreateAccountMC] Frame 1
function windowClose() {
_parent.pressCreateAccountClose();
}
function updateCreateAccountName() {
gxyAWm.nameMC.nameText.text = (gxyAWm.nameMC.nameText2.text = (gxyAWm.nameMC.nameText3.text = (gxyAWm.nameMC.nameText4.text = usernameText.text)));
gxyAWm.nameMC.nameTextC.htmlText = _parent.colorHtml(usernameText.text, _parent.RGBToHex(cR, cG, cB, 100));
gxyAWm.gxyhDYy._rotation = gxyAWm.gxyhDYy._rotation + 2;
gxyAWm.fqqZCx._rotation = gxyAWm.fqqZCx._rotation + 2;
animateCount++;
if (animateCount > 60) {
animateCount = 0;
frameNum++;
gxyAWm.gxyhDYy.gotoAndStop(frameArray[frameNum]);
if (frameNum >= frameArray.length) {
frameNum = -1;
}
}
}
function clickColorPicker(init) {
if (!init) {
crossHairMC._x = _xmouse - 1;
crossHairMC._y = _ymouse;
}
var _local3 = new Color(gxyAWm.colorMC);
cR = image_bitmap.getPixel(crossHairMC._x - colorPickerMC._x, crossHairMC._y - colorPickerMC._y) >> 16;
var _local2 = image_bitmap.getPixel(crossHairMC._x - colorPickerMC._x, crossHairMC._y - colorPickerMC._y) ^ (cR << 16);
cG = _local2 >> 8;
cB = _local2 ^ (cG << 8);
var _local1 = new Object();
_local1 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"75", ab:"0"};
_local1.rb = cR;
_local1.gb = cG;
_local1.bb = cB;
_local3.setTransform(_local1);
}
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 = true;
loadingMC._visible = false;
usernameText.tabEnabled = (pass0Text.tabEnabled = pass1Text.tabEnabled);
usernameText.tabIndex = 1;
pass0Text.tabIndex = 2;
pass1Text.tabIndex = 3;
email0Text.tabIndex = 4;
email1Text.tabIndex = 5;
gxyAWm.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 214 MovieClip [UIScrollBar] in Symbol 5268 MovieClip [window470CreateAccountMC] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "eulaText0";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (enterFrame) {
_parent.eulaText1.scroll = _parent.eulaText0.scroll;
}
onClipEvent (mouseMove) {
_parent.eulaText1.scroll = _parent.eulaText0.scroll;
}
onClipEvent (mouseDown) {
_parent.eulaText1.scroll = _parent.eulaText0.scroll;
}
Instance of Symbol 5264 MovieClip "colorPickerMC" in Symbol 5268 MovieClip [window470CreateAccountMC] Frame 1
on (press) {
_parent._parent.zqggLX("press", null, _parent.crossHairMC);
_parent.clickColorPicker();
}
Instance of Symbol 272 MovieClip in Symbol 5268 MovieClip [window470CreateAccountMC] Frame 1
onClipEvent (enterFrame) {
_parent.updateCreateAccountName();
}
Symbol 5273 MovieClip [window470JoinPrivateMC] Frame 1
function windowClose() {
_parent.pressJoinPrivateClose();
}
Symbol 5276 Button
on (press) {
_parent._parent.zqggLX("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.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 5287 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressClearVIPs();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 5289 MovieClip [window470CreateGameMC] Frame 1
function windowClose() {
_parent.pressCreateGameClose();
}
this.onEnterFrame = function () {
_parent.initializeCreateGame();
_parent.initializeMapList();
delete this.onEnterFrame;
};
Instance of Symbol 267 MovieClip [RadioButton] "radioPublic" in Symbol 5289 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 267 MovieClip [RadioButton] "radioPrivate" in Symbol 5289 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 267 MovieClip [RadioButton] "radioCycle" in Symbol 5289 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 267 MovieClip [RadioButton] "radioRandom" in Symbol 5289 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 267 MovieClip [RadioButton] "radioRepeat" in Symbol 5289 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 263 MovieClip [ComboBox] "mapBox" in Symbol 5289 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 469 MovieClip [CheckBox] "checkBoxBallistick" in Symbol 5289 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 469 MovieClip [CheckBox] "checkBoxClassic" in Symbol 5289 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 469 MovieClip [CheckBox] "checkBoxCustom" in Symbol 5289 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 469 MovieClip [CheckBox] "checkBoxFeature" in Symbol 5289 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 5361 MovieClip Frame 1
stop();
Symbol 5379 MovieClip [rank12MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5397 MovieClip [rank13MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5415 MovieClip [rank14MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5433 MovieClip [rank15MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5451 MovieClip [rank16MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5469 MovieClip [rank11MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5490 MovieClip [rank10MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5511 MovieClip [rank9MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5532 MovieClip [rank8MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5553 MovieClip [rank7MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5574 MovieClip [rank6MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5595 MovieClip [rank5MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5616 MovieClip [rank4MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5637 MovieClip [rank3MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5658 MovieClip [rank2MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5662 MovieClip [rank1MC] Frame 1
badgeSQMC._visible = 0;
Symbol 5681 MovieClip [rankMMC] Frame 1
badgeSQMC._visible = 0;
Symbol 5685 MovieClip Frame 1
stop();
Symbol 5701 MovieClip [railgunParticleMC] Frame 68
this.removeMovieClip();
Symbol 5710 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressNewMapEditor();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 5714 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressLoadMapEditor();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 5716 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressHelpMapEditor();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 5718 MovieClip [window470MapEditorMC] Frame 1
function initailizeEditorWindow() {
h0Text0.text = (h0Text1.text = _parent.editorText[0]);
}
function windowClose() {
_parent.pressXMapEditorWindow();
}
initailizeEditorWindow();
Symbol 5737 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressLoadStockMapEditor();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 5741 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.loadDifferentPlayersMapList();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 5746 MovieClip [window470LoadMapMC] Frame 1
function windowClose() {
_parent.pressLoadMapX();
}
this.onEnterFrame = function () {
_parent.populateStockMapListBox(0);
delete this.onEnterFrame;
};
Instance of Symbol 2635 MovieClip "mapsSlotMC0" in Symbol 5746 MovieClip [window470LoadMapMC] Frame 1
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(0);
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Instance of Symbol 2635 MovieClip "mapsSlotMC1" in Symbol 5746 MovieClip [window470LoadMapMC] Frame 1
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(1);
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Instance of Symbol 2635 MovieClip "mapsSlotMC2" in Symbol 5746 MovieClip [window470LoadMapMC] Frame 1
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(2);
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Instance of Symbol 2635 MovieClip "mapsSlotMC3" in Symbol 5746 MovieClip [window470LoadMapMC] Frame 1
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(3);
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Instance of Symbol 2635 MovieClip "mapsSlotMC4" in Symbol 5746 MovieClip [window470LoadMapMC] Frame 1
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(4);
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Instance of Symbol 263 MovieClip [ComboBox] "stockMapBox" in Symbol 5746 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 5762 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 5763 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 5764 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.addItem(_parent.ballistickOnlyMarker + _parent.editorText[10]);
themeBox.selectedIndex = 4;
}
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 263 MovieClip [ComboBox] "themeBox" in Symbol 5764 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 5803 MovieClip [tile3A6] Frame 1
gotoAndPlay(random(20) + 1);
Symbol 5803 MovieClip [tile3A6] Frame 22
gotoAndPlay (2);
Symbol 6005 MovieClip [tile3J0] Frame 1
gotoAndPlay(random(79) + 1);
Symbol 6005 MovieClip [tile3J0] Frame 81
gotoAndPlay (2);
Symbol 6017 MovieClip [tile3J2] Frame 1
gotoAndPlay(random(120) + 1);
Symbol 6017 MovieClip [tile3J2] Frame 124
gotoAndPlay (2);
Symbol 6032 MovieClip [tile3J5] Frame 1
gotoAndPlay(random(105) + 1);
Symbol 6032 MovieClip [tile3J5] Frame 108
gotoAndPlay (2);
Symbol 6042 MovieClip [tile3J7] Frame 1
gotoAndPlay(random(95) + 1);
Symbol 6042 MovieClip [tile3J7] Frame 93
gotoAndPlay(random(2));
Symbol 6054 MovieClip [tile3J9] Frame 1
gotoAndPlay(random(8) + 1);
Symbol 6054 MovieClip [tile3J9] Frame 10
gotoAndPlay (2);
Symbol 6064 MovieClip [tile3K1] Frame 1
gotoAndPlay(random(75) + 1);
Symbol 6064 MovieClip [tile3K1] Frame 77
gotoAndPlay (2);
Symbol 6077 MovieClip [tile3L0] Frame 1
gotoAndPlay(random(195) + 1);
Symbol 6077 MovieClip [tile3L0] Frame 204
gotoAndPlay (2);
Symbol 6086 MovieClip [tile3M0] Frame 1
gotoAndPlay(random(130) + 1);
Symbol 6086 MovieClip [tile3M0] Frame 134
gotoAndPlay (2);
Symbol 6097 MovieClip [tile3M1] Frame 1
gotoAndPlay(random(120) + 1);
Symbol 6097 MovieClip [tile3M1] Frame 127
gotoAndPlay (2);
Symbol 6115 MovieClip [tile3N0] Frame 1
gotoAndPlay(random(13) + 1);
Symbol 6115 MovieClip [tile3N0] Frame 14
gotoAndPlay (2);
Symbol 6124 MovieClip [tile3N1] Frame 1
gotoAndPlay(random(13) + 1);
Symbol 6124 MovieClip [tile3N1] Frame 14
gotoAndPlay (2);
Symbol 6133 MovieClip [tile3N2] Frame 1
gotoAndPlay(random(13) + 1);
Symbol 6133 MovieClip [tile3N2] Frame 14
gotoAndPlay (2);
Symbol 6154 MovieClip [tile3P0] Frame 1
gotoAndPlay(random(86) + 1);
Symbol 6154 MovieClip [tile3P0] Frame 88
gotoAndPlay (2);
Symbol 6163 MovieClip [tile3P1] Frame 1
gotoAndPlay(random(209) + 1);
Symbol 6163 MovieClip [tile3P1] Frame 209
gotoAndPlay (2);
Symbol 6172 MovieClip [tile3P2] Frame 1
gotoAndPlay(random(200) + 1);
Symbol 6172 MovieClip [tile3P2] Frame 199
gotoAndPlay (2);
Symbol 6183 MovieClip [tile3P3] Frame 1
gotoAndPlay(random(160) + 1);
Symbol 6183 MovieClip [tile3P3] Frame 168
gotoAndPlay (2);
Symbol 6194 MovieClip [tile3P4] Frame 1
gotoAndPlay(random(20) + 1);
Symbol 6194 MovieClip [tile3P4] Frame 22
gotoAndPlay (2);
Symbol 6199 MovieClip [tile3P5] Frame 1
gotoAndPlay(random(100) + 1);
Symbol 6208 MovieClip [tile3P6] Frame 1
gotoAndPlay(random(170) + 1);
Symbol 6208 MovieClip [tile3P6] Frame 180
gotoAndPlay (2);
Symbol 6217 MovieClip [tile3P7] Frame 1
gotoAndPlay(random(210) + 1);
Symbol 6217 MovieClip [tile3P7] Frame 213
gotoAndPlay (2);
Symbol 6228 MovieClip [tile3P8] Frame 1
gotoAndPlay(random(4) + 1);
Symbol 6228 MovieClip [tile3P8] Frame 7
gotoAndPlay (2);
Symbol 6239 MovieClip [tile3P9] Frame 1
gotoAndPlay(random(215) + 1);
Symbol 6239 MovieClip [tile3P9] Frame 219
gotoAndPlay (2);
Symbol 6250 MovieClip [tile3Q0] Frame 1
gotoAndPlay(random(10) + 1);
Symbol 6250 MovieClip [tile3Q0] Frame 12
gotoAndPlay (2);
Symbol 6257 MovieClip [tile3Q1] Frame 1
gotoAndPlay(random(210) + 1);
Symbol 6281 MovieClip [window304NewMapMessageMC] Frame 1
function windowClose() {
_parent.closeNewMapMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6286 Button
on (press) {
_parent._parent.zqggLX("press", this, null);
}
on (release) {
_parent._parent.pressArrowTileSets(1);
_parent._parent.zqggLX("release", this, null);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, null);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, null);
}
Symbol 6287 MovieClip Frame 1
stop();
Symbol 6288 Button
on (press) {
_parent._parent.zqggLX("press", this, null);
}
on (release) {
_parent._parent.pressArrowTileSets(-1);
_parent._parent.zqggLX("release", this, null);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, null);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, null);
}
Symbol 6289 MovieClip Frame 1
stop();
Symbol 6289 MovieClip Frame 2
stop();
Symbol 6292 MovieClip [tileSetsMC] Frame 1
function windowClose() {
_parent.pressXTileSets();
}
Symbol 6301 MovieClip Frame 1
stop();
Symbol 6314 MovieClip Frame 1
stop();
Symbol 6314 MovieClip Frame 21
stop();
Symbol 6323 MovieClip Frame 30
anim = Math.round(Math.random() * 4);
if (anim <= 1) {
gotoAndPlay ("anim1");
} else if (anim == 3) {
gotoAndPlay ("anim2");
} else {
gotoAndPlay (1);
}
Symbol 6323 MovieClip Frame 50
gotoAndPlay (1);
Symbol 6324 MovieClip Frame 68
_parent.gotoAndStop("idle");
Symbol 6325 MovieClip Frame 32
skull_mc.play();
Symbol 6325 MovieClip Frame 38
stop();
Symbol 6326 MovieClip Frame 1
stop();
Symbol 6335 MovieClip Frame 54
stop();
Symbol 6344 MovieClip Frame 18
stop();
Symbol 6345 MovieClip Frame 1
stop();
_parent.cigardetail_mc.gotoAndStop(1);
Symbol 6345 MovieClip Frame 3
_parent.cigardetail_mc.gotoAndPlay(2);
Symbol 6349 MovieClip Frame 1
stop();
Symbol 6349 MovieClip Frame 37
stop();
Symbol 6375 MovieClip Frame 339
gotoAndPlay ("loop");
Symbol 6378 MovieClip Frame 48
stop();
Symbol 6379 MovieClip Frame 1
stop();
Symbol 6381 MovieClip [petBehaviorFloatMC] Frame 1
gotoAndPlay(random(35) + 2);
Symbol 6381 MovieClip [petBehaviorFloatMC] Frame 41
gotoAndPlay (2);
Symbol 6384 MovieClip [window304ShopMessageMC] Frame 1
function windowClose() {
_parent.closeShopMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6387 MovieClip [window304FailChangeServerMessageMC] Frame 1
function windowClose() {
_parent.closeFailChangeServer();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6395 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowGetaPass();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 6403 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowOK();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 6405 MovieClip [window304ShopGetaPassMessageMC] Frame 1
function windowClose() {
_parent.closeShopMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
function windowGetaPass() {
_parent.pressGetAPass();
}
Symbol 6408 MovieClip [window304ShopConfirmMessageMC] Frame 1
function windowOK() {
_parent.performShopPurchase();
this.removeMovieClip();
}
function windowClose() {
_parent.cancelShopPurchase();
this.removeMovieClip();
}
Symbol 6433 MovieClip Frame 100
stop();
Symbol 6438 MovieClip Frame 100
stop();
Symbol 6439 MovieClip [ticketMC] Frame 6
_parent._parent.playSound("SFXTicketScratch28");
Symbol 6439 MovieClip [ticketMC] Frame 13
_parent._parent.playSound("SFXTicketScratch27");
Symbol 6439 MovieClip [ticketMC] Frame 26
_parent._parent.playSound("SFXTicketScratch23");
Symbol 6439 MovieClip [ticketMC] Frame 33
_parent._parent.playSound("SFXTicketScratch27");
Symbol 6439 MovieClip [ticketMC] Frame 40
_parent._parent.playSound("SFXTicketScratch28");
Symbol 6439 MovieClip [ticketMC] Frame 52
_parent._parent.playSound("SFXTicketPrize");
_parent._parent.awardTicketValue();
Symbol 6439 MovieClip [ticketMC] Frame 105
gotoAndPlay ("endLoopStart");
Symbol 6445 Button
on (press) {
_parent._parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent._parent.closeTicket();
_parent._parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 6448 MovieClip [ticketParentMC] Frame 79
stop();
Symbol 6451 MovieClip [railgunParticleLowMC] Frame 7
this.removeMovieClip();
Symbol 6454 MovieClip [rank2MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6455 MovieClip [rank1MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6456 MovieClip [rank3MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6457 MovieClip [rank4MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6458 MovieClip [rank5MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6459 MovieClip [rank6MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6460 MovieClip [rank7MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6461 MovieClip [rank8MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6462 MovieClip [rank9MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6463 MovieClip [rank10MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6464 MovieClip [rank11MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6465 MovieClip [rank12MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6466 MovieClip [rank13MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6467 MovieClip [rank14MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6468 MovieClip [rank15MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6469 MovieClip [rankMMCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 6470 MovieClip [rank1MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6471 MovieClip [rank2MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6472 MovieClip [rank3MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6473 MovieClip [rank4MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6474 MovieClip [rank5MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6475 MovieClip [rank6MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6476 MovieClip [rank7MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6477 MovieClip [rank8MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6478 MovieClip [rank9MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6479 MovieClip [rank10MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6480 MovieClip [rank11MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6481 MovieClip [rank12MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6482 MovieClip [rank13MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6483 MovieClip [rank14MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6484 MovieClip [rank15MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6485 MovieClip [rankMMCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 6493 MovieClip Frame 1
stop();
Symbol 6493 MovieClip Frame 6
gotoAndPlay (2);
Symbol 6495 MovieClip Frame 1
stop();
Symbol 6501 MovieClip Frame 1
stop();
Symbol 6501 MovieClip Frame 6
stop();
Symbol 6529 MovieClip Frame 9
doors_mc.play();
Symbol 6529 MovieClip Frame 24
gotoAndPlay ("loop");
Symbol 6541 MovieClip Frame 1
stop();
Symbol 6541 MovieClip Frame 5
gotoAndPlay (2);
Symbol 6547 MovieClip Frame 1
stop();
Symbol 6547 MovieClip Frame 10
gotoAndPlay (3);
Symbol 6557 MovieClip Frame 32
drill_mc.play();
_parent._parent.colorMC1.tracks_mc.gotoAndPlay(2);
Symbol 6557 MovieClip Frame 41
victim_mc.gotoAndPlay(3);
Symbol 6557 MovieClip Frame 63
drill_mc.gotoAndStop(1);
_parent._parent.colorMC1.tracks_mc.stop();
_parent._parent.kill_mc.gotoAndPlay(2);
Symbol 6557 MovieClip Frame 91
_parent.gotoAndStop("idle");
_parent._parent.colorMC1.gotoAndStop("idle");
Symbol 6564 MovieClip Frame 30
stop();
Symbol 6565 MovieClip Frame 1
stop();
_parent.explosion_mc.gotoAndStop(1);
_parent.shine_mc.gotoAndStop(1);
Symbol 6565 MovieClip Frame 3
_parent.explosion_mc.gotoAndPlay(2);
_parent.shine_mc.gotoAndStop(3);
_parent.kill_mc.gotoAndStop(1);
Symbol 6568 MovieClip Frame 1
stop();
Symbol 6584 MovieClip Frame 1
stop();
Symbol 6584 MovieClip Frame 15
skull_mc.stop();
Symbol 6584 MovieClip Frame 26
skull_mc.play();
Symbol 6584 MovieClip Frame 50
skull_mc.stop();
Symbol 6584 MovieClip Frame 89
stop();
Symbol 6589 MovieClip Frame 1
stop();
Symbol 6589 MovieClip Frame 29
gotoAndStop (1);
Symbol 6604 MovieClip Frame 1
stop();
Symbol 6604 MovieClip Frame 26
stop();
Symbol 6624 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6626 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6627 MovieClip Frame 10
gotoAndPlay (1);
Symbol 6629 MovieClip Frame 19
gotoAndPlay (1);
Symbol 6632 MovieClip Frame 26
stop();
Symbol 6633 MovieClip Frame 1
stop();
Symbol 6653 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6655 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6656 MovieClip Frame 10
gotoAndPlay (1);
Symbol 6658 MovieClip Frame 19
gotoAndPlay (1);
Symbol 6661 MovieClip Frame 26
stop();
Symbol 6662 MovieClip Frame 1
stop();
Symbol 6668 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6669 MovieClip Frame 19
gotoAndPlay (1);
Symbol 6670 MovieClip Frame 26
stop();
Symbol 6671 MovieClip Frame 1
stop();
_parent.body_mc.gotoAndStop(1);
_parent.wings_mc.gotoAndStop(1);
_parent.blood_mc.gotoAndStop(1);
Symbol 6671 MovieClip Frame 2
_parent.body_mc.gotoAndStop(2);
_parent.wings_mc.gotoAndStop(2);
_parent.blood_mc.gotoAndStop(1);
Symbol 6671 MovieClip Frame 3
_parent.body_mc.gotoAndStop(3);
_parent.wings_mc.gotoAndStop(3);
_parent.blood_mc.gotoAndPlay(2);
Symbol 6677 MovieClip Frame 27
gotoAndPlay (1);
Symbol 6680 MovieClip Frame 19
gotoAndPlay (1);
Symbol 6683 MovieClip Frame 26
stop();
Symbol 6684 MovieClip Frame 1
stop();
Symbol 6692 MovieClip [window470HelpMC] Frame 1
function windowClose() {
_parent.pressXHelp();
}
function helpWindowUpdateScroll() {
helpText1.scroll = helpText0.scroll;
}
Instance of Symbol 50 MovieClip "windowBGMC" in Symbol 6692 MovieClip [window470HelpMC] Frame 1
on (press) {
_parent._parent.startHelpMove();
}
on (release, releaseOutside) {
_parent._parent.stopHelpMove();
}
Instance of Symbol 214 MovieClip [UIScrollBar] in Symbol 6692 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 272 MovieClip "subPetMC" in Symbol 6693 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 272 MovieClip "subPetMC" in Symbol 6694 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 272 MovieClip "subPetMC" in Symbol 6695 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 272 MovieClip "subPetMC" in Symbol 6696 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 272 MovieClip "subPetMC" in Symbol 6697 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 272 MovieClip "subPetMC" in Symbol 6698 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 6700 MovieClip [roomBallistickLobbyMC] Frame 1
badgeSQMC._visible = 0;
Symbol 6701 MovieClip [roomNormalLobbyMC] Frame 1
badgeSQMC._visible = 0;
Symbol 6706 Button
on (press) {
_parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowDontSave();
_parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 6711 Button
on (press) {
_parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowSave();
_parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 6713 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 6716 MovieClip [window304LoadMapMessageMC] Frame 1
function windowClose() {
_parent.closeLoadMapMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6729 MovieClip [window470SaveMapMC] Frame 1
function windowClose() {
_parent.pressSaveMapX();
}
Instance of Symbol 2635 MovieClip "mapsSlotMC0" in Symbol 6729 MovieClip [window470SaveMapMC] Frame 1
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(0);
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Instance of Symbol 2635 MovieClip "mapsSlotMC1" in Symbol 6729 MovieClip [window470SaveMapMC] Frame 1
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(1);
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Instance of Symbol 2635 MovieClip "mapsSlotMC2" in Symbol 6729 MovieClip [window470SaveMapMC] Frame 1
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(2);
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Instance of Symbol 2635 MovieClip "mapsSlotMC3" in Symbol 6729 MovieClip [window470SaveMapMC] Frame 1
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(3);
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Instance of Symbol 2635 MovieClip "mapsSlotMC4" in Symbol 6729 MovieClip [window470SaveMapMC] Frame 1
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressMapSlotEditor(4);
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (releaseOutside, rollOut) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 6732 MovieClip [window304SaveMapMessageMC] Frame 1
function windowClose() {
_parent.closeSaveMapMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6735 MovieClip [window304OverwriteConfirmationMC] Frame 1
function windowOK() {
_parent.editorOverwriteConfirm();
this.removeMovieClip();
}
function windowClose() {
_parent.editorOverwriteCancel();
this.removeMovieClip();
}
Symbol 6739 MovieClip Frame 62
_parent.gotoAndStop("idle");
Symbol 6740 MovieClip Frame 29
stop();
Symbol 6741 MovieClip Frame 1
stop();
Symbol 6746 MovieClip Frame 1
stop();
Symbol 6746 MovieClip Frame 47
stop();
Symbol 6749 MovieClip Frame 1
stop();
Symbol 6758 MovieClip Frame 21
gotoAndPlay (1);
Symbol 6761 MovieClip Frame 27
gotoAndPlay ("idle");
Symbol 6784 MovieClip Frame 62
_parent.gotoAndStop("idle");
Symbol 6785 MovieClip Frame 46
stop();
Symbol 6786 MovieClip Frame 1
stop();
_parent.teeth_mc.gotoAndStop(1);
Symbol 6786 MovieClip Frame 2
_parent.teeth_mc.gotoAndPlay(2);
Symbol 6786 MovieClip Frame 3
_parent.fire_mc.gotoAndPlay(2);
_parent.teethdeath_mc.gotoAndPlay(2);
_parent.teeth_mc.gotoAndStop(1);
Symbol 6814 MovieClip Frame 1
stop();
Symbol 6814 MovieClip Frame 43
stop();
Symbol 6818 MovieClip [window200LoginMsgMC] Frame 1
function windowClose() {
_parent.pressCancelLogIn();
}
Symbol 6821 MovieClip [window304EditorGeneralMessageMC] Frame 1
function windowClose() {
_parent.closeEditorGeneralMessageWindow();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6826 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent.windowRenewPass();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 6828 MovieClip [window304AccountExpiryNotificationMC] Frame 1
function windowClose() {
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
function windowRenewPass() {
_parent.pressGetAPass();
windowClose();
}
Symbol 6833 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent.windowBGMC);
}
on (release) {
_parent._parent.pressReadRules();
_parent._parent.zqggLX("release", this, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent.windowBGMC);
}
Symbol 6834 MovieClip Frame 1
stop();
Symbol 6835 MovieClip [window304ModeratorMessageMC] Frame 1
function windowClose() {
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6838 MovieClip [window304EditorNewMapWarnMessageMC] Frame 1
function windowClose() {
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6841 MovieClip [window304ReturnToLobbyMessageMC] Frame 1
function windowClose() {
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 6844 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 7027 MovieClip [window304JoinGameMessageMC] Frame 1
function windowClose() {
_parent.closeJoinGameMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 7433 MovieClip [tile4P0] Frame 1
var animatedTileFrames = 8;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7440 MovieClip [tile4P1] Frame 1
var animatedTileFrames = 8;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7447 MovieClip [tile4P2] Frame 1
var animatedTileFrames = 8;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7454 MovieClip [tile4P3] Frame 1
var animatedTileFrames = 8;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7461 MovieClip [tile4P4] Frame 1
var animatedTileFrames = 8;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7468 MovieClip [tile4P5] Frame 1
var animatedTileFrames = 8;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7475 MovieClip [tile4Q0] Frame 1
var animatedTileFrames = 16;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7482 MovieClip [tile4Q1] Frame 1
var animatedTileFrames = 16;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7489 MovieClip [tile4Q2] Frame 1
var animatedTileFrames = 16;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7496 MovieClip [tile4Q3] Frame 1
var animatedTileFrames = 16;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7503 MovieClip [tile4Q4] Frame 1
var animatedTileFrames = 16;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7510 MovieClip [tile4Q5] Frame 1
var animatedTileFrames = 16;
this.onEnterFrame = function () {
gotoAndStop((_parent._parent._parent._parent.framesSinceRoundStart % animatedTileFrames) + 1);
};
Symbol 7561 MovieClip [tile5B0] Frame 1
gotoAndPlay(random(32) + 1);
Symbol 7561 MovieClip [tile5B0] Frame 33
gotoAndPlay (2);
Symbol 7673 MovieClip [tile5C0] Frame 1
gotoAndPlay(random(42) + 1);
Symbol 7673 MovieClip [tile5C0] Frame 44
gotoAndPlay (2);
Symbol 7686 MovieClip [tile5D0] Frame 1
gotoAndPlay(random(50) + 1);
Symbol 7686 MovieClip [tile5D0] Frame 56
gotoAndPlay (2);
Symbol 7725 MovieClip [rank16MCLobby] Frame 1
badgeSQMC._visible = 0;
Symbol 7726 MovieClip [rank16MCLobbyBallistick] Frame 1
badgeSQMC._visible = 0;
Symbol 7737 Button
on (press) {
_parent._parent.zqggLX("press", _parent.selectPassImageMC0, _parent.windowBGMC);
}
on (release) {
_parent._parent.externalSelectPass(0);
_parent._parent.zqggLX("release", _parent.selectPassImageMC0, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", _parent.selectPassImageMC0, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", _parent.selectPassImageMC0, _parent.windowBGMC);
}
Symbol 7739 Button
on (press) {
_parent._parent.zqggLX("press", _parent.selectPassImageMC1, _parent.windowBGMC);
}
on (release) {
_parent._parent.externalSelectPass(1);
_parent._parent.zqggLX("release", _parent.selectPassImageMC1, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", _parent.selectPassImageMC1, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", _parent.selectPassImageMC1, _parent.windowBGMC);
}
Symbol 7741 Button
on (press) {
_parent._parent.zqggLX("press", _parent.selectPassImageMC2, _parent.windowBGMC);
}
on (release) {
_parent._parent.externalSelectPass(2);
_parent._parent.zqggLX("release", _parent.selectPassImageMC2, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", _parent.selectPassImageMC2, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", _parent.selectPassImageMC2, _parent.windowBGMC);
}
Symbol 7743 Button
on (press) {
_parent._parent.zqggLX("press", _parent.selectPassImageFreeMC, _parent.windowBGMC);
}
on (release) {
_parent._parent.externalSelectPass(3);
_parent._parent.zqggLX("release", _parent.selectPassImageFreeMC, _parent.windowBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", _parent.selectPassImageFreeMC, _parent.windowBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", _parent.selectPassImageFreeMC, _parent.windowBGMC);
}
Symbol 7747 Button
on (press) {
_parent._parent.zqggLX("press", this, tabBGMC);
}
on (release) {
_parent._parent.pressTabGetAPass();
_parent._parent.zqggLX("release", this, tabBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, tabBGMC);
}
Symbol 7751 MovieClip Frame 1
stop();
Symbol 7754 Button
on (press) {
_parent._parent.zqggLX("press", this, tabBGMC);
}
on (release) {
_parent._parent.pressTabFeatures();
_parent._parent.zqggLX("release", this, tabBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, tabBGMC);
}
Symbol 7758 MovieClip Frame 1
stop();
Symbol 7761 Button
on (press) {
_parent._parent.zqggLX("press", this, tabBGMC);
}
on (release) {
_parent._parent.pressTabFAQ();
_parent._parent.zqggLX("release", this, tabBGMC);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, tabBGMC);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, tabBGMC);
}
Symbol 7764 MovieClip Frame 1
stop();
Symbol 7769 MovieClip [window405GetAPass] Frame 1
function windowClose() {
_parent.pressCloseGetAPassWindow();
}
function windowOK() {
windowClose();
}
_parent.initializeGetAPassWindow();
stop();
Instance of Symbol 214 MovieClip [UIScrollBar] in Symbol 7769 MovieClip [window405GetAPass] Frame 2
//component parameters
onClipEvent (construct) {
_targetInstanceName = "loadingText0";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (enterFrame) {
_parent.featuresMC._y = 75 + int(_parent.loadingText0.scroll * -26.5);
_parent.loadingText1.scroll = _parent.loadingText0.scroll;
_parent.selectPassBTNMC0._y = (_parent.selectPassBTNMC1._y = (_parent.selectPassBTNMC2._y = (_parent.selectPassImageMC0._y = (_parent.selectPassImageMC1._y = (_parent.selectPassImageMC2._y = _parent.featuresMC._y + 850)))));
_parent.passesBGMC._y = _parent.selectPassImageMC0._y - 30;
_parent.selectPassFreeBTNMC._y = (_parent.selectPassImageFreeMC._y = _parent.featuresMC._y + 1170);
}
Instance of Symbol 214 MovieClip [UIScrollBar] in Symbol 7769 MovieClip [window405GetAPass] Frame 3
//component parameters
onClipEvent (construct) {
_targetInstanceName = "faqText0";
horizontal = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (enterFrame) {
_parent.faqText1.scroll = _parent.faqText0.scroll;
}
onClipEvent (mouseMove) {
_parent.faqText1.scroll = _parent.faqText0.scroll;
}
onClipEvent (mouseDown) {
_parent.faqText1.scroll = _parent.faqText0.scroll;
}
Symbol 7777 Button
on (release) {
_parent._parent.interstitialPressGetAPass();
}
Symbol 7783 MovieClip Frame 120
stop();
Symbol 7784 MovieClip Frame 1
stop();
Symbol 7784 MovieClip Frame 15
gotoAndPlay (2);
Symbol 7803 MovieClip Frame 46
if (_parent._parent.textMC.idText.text == "") {
_parent._parent._parent.player.doneAttack();
} else {
_parent._parent._parent._parent.playerDoneAttack(_parent._parent.textMC.idText.text);
}
Symbol 7817 MovieClip [interstitialMC] Frame 39
stillfree_mc.play();
Symbol 7817 MovieClip [interstitialMC] Frame 600
this.removeMovieClip();
Symbol 7820 Button
on (press) {
_parent._parent.zqggLX("press", this, _parent);
}
on (release) {
_parent._parent.pressChangePasswordOK();
_parent._parent.zqggLX("release", this, _parent);
}
on (rollOver) {
_parent._parent.zqggLX("over", this, _parent);
}
on (rollOut, releaseOutside) {
_parent._parent.zqggLX("out", this, _parent);
}
Symbol 7831 MovieClip [window470ChangePasswordMC] Frame 1
function windowClose() {
_parent.pressCloseChangePasswordWindow();
}
Symbol 7834 MovieClip [window304ChangePasswordMessageMC] Frame 1
function windowClose() {
_parent.closeChangePasswordMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 7837 MovieClip [window304PurchaseMessageMC] Frame 1
function windowClose() {
_parent.closePurchaseMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 7844 MovieClip [window304XGenAccountCreatedMessageMC] Frame 1
function windowClose() {
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 7851 MovieClip [window304ManageAccountMC] Frame 1
function windowClose() {
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 7856 MovieClip [window304ShopNotEnoughCredMessageMC] Frame 1
function windowClose() {
_parent.closeShopMessage();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
function windowGetaPass() {
_parent.pressGetAPass();
}
Symbol 7890 MovieClip [window304PremiumOnlyChangeServerMessageMC] Frame 1
function windowClose() {
_parent.closeFailChangeServer();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
function windowGetaPass() {
_parent.pressGetAPass();
}
Symbol 7897 MovieClip Frame 50
_parent.gotoAndStop("idle");
Symbol 7903 MovieClip Frame 90
stop();
Symbol 7904 MovieClip Frame 1
stop();
Symbol 7918 MovieClip Frame 50
_parent.gotoAndStop("idle");
Symbol 7919 MovieClip Frame 90
stop();
Symbol 7920 MovieClip Frame 1
stop();
Symbol 7924 MovieClip [window304GlobalMessageMC] Frame 1
function windowClose() {
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 8010 MovieClip Frame 5
var i = 1;
while (i <= 25) {
var Frame = Math.ceil(Math.random() * 3);
eval ("particle" + i).gotoAndPlay(Frame);
i++;
}
stop();
Symbol 8011 MovieClip Frame 1
var i = 1;
while (i <= 25) {
var Frame = Math.ceil(Math.random() * 3);
eval ("particle" + i).gotoAndPlay(Frame);
i++;
}
stop();