Frame 1
function charToNum(str) {
str = str.toUpperCase();
var _local1 = str.charCodeAt(0);
if (_local1 > 57) {
return(_local1 - 55);
}
return(_local1 - 48);
}
function numToChar(n) {
if (n > 9) {
return(String.fromCharCode(n + 55));
}
return(n.toString());
}
function isLegalChar(charCode) {
var _local1 = String.fromCharCode(charCode);
if ((((((((((((((((((((((((((((((((charCode >= 65) && (charCode <= 90)) || ((charCode >= 97) && (charCode <= 122))) || ((charCode >= 48) && (charCode <= 57))) || (charCode == 32)) || (_local1 == "!")) || (_local1 == "?")) || (_local1 == ",")) || (_local1 == ".")) || (_local1 == "@")) || (_local1 == "#")) || (_local1 == "$")) || (_local1 == "%")) || (_local1 == ")")) || (_local1 == "(")) || (_local1 == ":")) || (_local1 == ";")) || (_local1 == "]")) || (_local1 == "[")) || (_local1 == "^")) || (_local1 == "*")) || (_local1 == "'")) || (_local1 == "\"")) || (_local1 == "/")) || (_local1 == "\\")) || (_local1 == ":")) || (_local1 == ";")) || (_local1 == "-")) || (_local1 == "=")) || (_local1 == "_")) || (_local1 == "|")) || (_local1 == "_")) {
return(true);
}
return(false);
}
function isLegalChatString(str) {
var _local1 = 0;
while (_local1 < str.length) {
if (!isLegalChar(str.charCodeAt(_local1))) {
return(false);
}
_local1++;
}
if ((str.length > 0) && (containsNonSpaceChar(str))) {
return(true);
}
return(false);
}
function isLegalAccountChar(charCode) {
var _local2 = String.fromCharCode(charCode);
if ((((((charCode >= 65) && (charCode <= 90)) || ((charCode >= 97) && (charCode <= 122))) || ((charCode >= 48) && (charCode <= 57))) || (_local2 == ",")) || (_local2 == ".")) {
return(true);
}
return(false);
}
function isLegalAccountString(str) {
var _local1 = 0;
while (_local1 < str.length) {
if (!isLegalAccountChar(str.charCodeAt(_local1))) {
return(false);
}
_local1++;
}
return(true);
}
function isLegalRoomString(str) {
var _local1 = 0;
while (_local1 < str.length) {
if ((!isLegalAccountChar(str.charCodeAt(_local1))) && (str.charCodeAt(_local1) != 32)) {
return(false);
}
_local1++;
}
return(true);
}
function containsNonSpaceChar(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 colorHtml(s, hc) {
return(((("<FONT COLOR=\"" + hc) + "\">") + s) + "</FONT>");
}
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 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 padStr(str, len) {
str = str.toString();
var _local1 = str.length;
while (_local1 < len) {
str = "0".concat(str);
_local1++;
}
return(str);
}
function trim(str) {
while ((str.charAt(0) == "0") && (str.length > 1)) {
str = str.substr(1, str.length - 1);
}
return(str);
}
function filterLanguage(str) {
var _local1 = 0;
while (_local1 < languageFilterDictionary.length) {
while (str.toLowerCase().indexOf(languageFilterDictionary[_local1]) != -1) {
var _local4 = str.substr(0, str.toLowerCase().indexOf(languageFilterDictionary[_local1]));
var _local3 = 0;
while (_local3 < languageFilterDictionary[_local1].length) {
_local4 = _local4.concat("*");
_local3++;
}
str = _local4.concat(str.substr(str.toLowerCase().indexOf(languageFilterDictionary[_local1]) + languageFilterDictionary[_local1].length, str.length - (str.toLowerCase().indexOf(languageFilterDictionary[_local1]) + languageFilterDictionary[_local1].length)));
}
_local1++;
}
return(str);
}
function containsNoFilteredLanguage(str) {
return(filterLanguage(str) == str);
}
function getRainbowHtml(str) {
var _local2 = "";
var _local1 = 0;
while (_local1 < 15) {
var _local4 = ((("#" + numToChar(15 - _local1)) + "F") + numToChar(_local1)) + "FFF";
_local2 = _local2 + colorHtml(str.substr(_local1, 1), _local4);
_local1++;
}
_local1 = 0;
while (_local1 < 15) {
var _local4 = ((("#" + numToChar(_local1)) + "F") + numToChar(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 = ((((("#" + numToChar(15 - _local1)) + numToChar(15 - _local1)) + numToChar(15 - _local1)) + numToChar(15 - _local1)) + numToChar(15 - _local1)) + numToChar(15 - _local1);
_local3 = _local3 + colorHtml(str.substr(_local2, 1), _local5);
_local2 = _local2 + 1;
_local1 = _local1 + 2;
}
_local1 = 0;
while (_local1 < 10) {
var _local5 = ((((("#" + numToChar(_local1 + 3)) + numToChar(_local1 + 3)) + numToChar(_local1 + 3)) + numToChar(_local1 + 3)) + numToChar(_local1 + 3)) + numToChar(_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 generateEarth() {
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 createEarth() {
var tempDepthCount = 10;
var x = 0;
while (x < 13) {
var y = 0;
while (y < 10) {
var val = ((x * 100) + y);
earthMC.e.attachMovie("emptyMC", "tile" + val, tempDepthCount);
with (eval ("earthMC.e.tile" + ((x * 100) + y))) {
_x = x * 50;
_y = y * 50;
cacheAsBitmap = optionUseBitmapCaching;
}
earthMC.c.attachMovie("emptyMC", "tile" + val, tempDepthCount++);
with (eval ("earthMC.c.tile" + ((x * 100) + y))) {
_x = x * 50;
_y = y * 50;
cacheAsBitmap = optionUseBitmapCaching;
}
y++;
}
x++;
}
}
function reloadEarth() {
earthMC._x = (earthMC._y = (earthMCX = (earthMCY = 0)));
var _local2 = 0;
while (_local2 < 13) {
var _local1 = 0;
while (_local1 < 10) {
reloadTile(_local2, _local1);
_local1++;
}
_local2++;
}
}
function reloadTile(x, y) {
var tX = x;
while (tX > 12) {
tX = tX - 13;
}
var tY = y;
while (tY > 9) {
tY = tY - 10;
}
var t = new Array(earth[x][y][0], earth[x][y][1] * 90, tMir("x", earth[x][y][2]), tMir("y", earth[x][y][2]), "Col" + earth[x][y][3]);
with (eval ("earthMC.e.tile" + ((tX * 100) + tY))) {
attachMovie("tile" + t[0], "graphic", 1);
_rotation = t[1];
_xscale = t[2];
_yscale = t[3];
cacheAsBitmap = optionUseBitmapCaching;
}
with (eval ("earthMC.c.tile" + ((tX * 100) + tY))) {
attachMovie("tile" + t[4], "limit", 1);
_rotation = t[1];
_xscale = t[2];
_yscale = t[3];
cacheAsBitmap = optionUseBitmapCaching;
}
}
function tMir(axis, m) {
if ((m == 1) || (m == 3)) {
if (axis == "x") {
return(-100);
}
}
if ((m == 2) || (m == 3)) {
if (axis == "y") {
return(-100);
}
}
return(100);
}
function updateEarth() {
startTime = getTimer();
var _local1 = 0;
var _local2 = 0;
if (earthMC._x < (-50 + (50 * eX))) {
_local1 = -1;
} else if (earthMC._x > (50 * eX)) {
_local1 = 1;
} else if (earthMC._y < (-50 + (50 * eY))) {
_local2 = -1;
} else if (earthMC._y > (50 * eY)) {
_local2 = 1;
}
if (_local1 != 0) {
eX = eX + _local1;
oldLeftCol = leftCol;
leftCol = leftCol - _local1;
if (leftCol > 12) {
leftCol = 0;
} else if (leftCol < 0) {
leftCol = 12;
}
updateEarthCol(_local1);
} else if (_local2 != 0) {
eY = eY + _local2;
oldTopRow = topRow;
topRow = topRow - _local2;
if (topRow > 9) {
topRow = 0;
} else if (topRow < 0) {
topRow = 9;
}
updateEarthRow(_local2);
}
functionTimers[10] = functionTimers[10] + (getTimer() - startTime);
}
function updateEarthCol(xAdj) {
if (xAdj < 0) {
var y = 0;
while (y < 10) {
tileY = y + oldTopRow;
while (tileY > 9) {
tileY = tileY - 10;
}
with (eval ("earthMC.e.tile" + ((oldLeftCol * 100) + tileY))) {
_x = _x + 650;
actualX = (-eX) + 12;
actualY = (-eY) + y;
if (actualY >= 0) {
reloadTile(actualX, actualY);
}
}
with (eval ("earthMC.c.tile" + ((oldLeftCol * 100) + tileY))) {
_x = _x + 650;
}
y++;
}
} else {
rightCol = oldLeftCol - 1;
while (rightCol < 0) {
rightCol = rightCol + 13;
}
var y = 0;
while (y < 10) {
tileY = y + oldTopRow;
if (tileY > 9) {
tileY = tileY - 10;
}
with (eval ("earthMC.e.tile" + ((rightCol * 100) + tileY))) {
_x = _x - 650;
actualX = -eX;
actualY = (-eY) + y;
if (actualY >= 0) {
reloadTile(actualX, actualY);
}
}
with (eval ("earthMC.c.tile" + ((rightCol * 100) + tileY))) {
_x = _x - 650;
}
y++;
}
}
}
function updateEarthRow(yAdj) {
if (yAdj < 0) {
var x = 0;
while (x < 13) {
tileX = x + oldLeftCol;
while (tileX > 12) {
tileX = tileX - 13;
}
with (eval ("earthMC.e.tile" + ((tileX * 100) + oldTopRow))) {
_y = _y + 500;
reloadTile((-eX) + x, (-eY) + 9);
}
with (eval ("earthMC.c.tile" + ((tileX * 100) + oldTopRow))) {
_y = _y + 500;
}
x++;
}
} else {
bottomRow = oldTopRow - 1;
while (bottomRow < 0) {
bottomRow = bottomRow + 10;
}
var x = 0;
while (x < 13) {
tileX = x + oldLeftCol;
if (tileX > 12) {
tileX = tileX - 13;
}
with (eval ("earthMC.e.tile" + ((tileX * 100) + bottomRow))) {
_y = _y - 500;
reloadTile((-eX) + x, -eY);
}
with (eval ("earthMC.c.tile" + ((tileX * 100) + bottomRow))) {
_y = _y - 500;
}
x++;
}
}
}
function moveToCoords(x, y) {
earthMC._x = 275 - x;
earthMC._y = 200 - y;
charMC._x = 275;
charMC._y = 200;
var _local2 = 0;
if (earthMC._x > earthMaxX) {
_local2 = earthMC._x - earthMaxX;
} else if (earthMC._x < earthMinX) {
_local2 = earthMC._x - earthMinX;
}
earthMC._x = earthMC._x - _local2;
charMC._x = charMC._x - _local2;
var _local3 = 0;
if (earthMC._y > earthMaxY) {
_local3 = earthMC._y - earthMaxY;
} else if (earthMC._y < earthMinY) {
_local3 = earthMC._y - earthMinY;
}
earthMC._y = earthMC._y - _local3;
charMC._y = charMC._y - _local3;
earthMCX = earthMC._x;
earthMCY = earthMC._y;
var _local1 = 1;
while (_local1 < 100) {
updateEarth();
_local1++;
}
}
function addHUDMsg(h, s, t) {
HUDMsg.push(new Array(h, s, t));
if (HUDMsg.length > maxHUDMsgs) {
deleteHUDMsg(0);
}
updateHUDMsgDisplay();
}
function updateHUDMsg() {
var _local1 = 0;
while (HUDMsg[_local1] != null) {
HUDMsg[_local1][2] = HUDMsg[_local1][2] - int(frameDeltaTime);
if (HUDMsg[_local1][2] <= 0) {
deleteHUDMsg(_local1);
}
_local1++;
}
}
function updateHUDMsgDisplay() {
var _local2 = "";
var _local3 = "";
var _local1 = 0;
while (HUDMsg[_local1] != null) {
_local2 = _local2 + (HUDMsg[_local1][0] + "<br>");
_local3 = _local3 + (HUDMsg[_local1][1] + "\r");
_local1++;
}
msgMC.HUDMsgText0.htmlText = _local2;
msgMC.HUDMsgText1.text = (msgMC.HUDMsgText2.text = (msgMC.HUDMsgText3.text = (msgMC.HUDMsgText4.text = _local3)));
}
function deleteHUDMsg(n) {
while (HUDMsg[n + 1] != null) {
HUDMsg[n][0] = HUDMsg[n + 1][0];
HUDMsg[n][1] = HUDMsg[n + 1][1];
HUDMsg[n][2] = HUDMsg[n + 1][2];
n++;
}
HUDMsg.pop();
updateHUDMsgDisplay();
}
function RGBToHex(r, g, b, brightness) {
r = Math.min(r + brightness, 255);
g = Math.min(g + brightness, 255);
b = Math.min(b + brightness, 255);
var _local1 = ((r << 16) ^ (g << 8)) ^ b;
_local1 = _local1.toString(16);
if (r == 0) {
_local1 = "00" + _local1;
}
return("#" + _local1);
}
function 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 buttonFX(sfx, mc, b, f) {
if (mc != null) {
with (eval (mc)) {
attachMovie("buttonOverFX", "buttonOverFX", 1000);
buttonOverFX.bright = b;
buttonOverFX.fade = f;
}
}
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 validateURL(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) {
piracyAction();
}
}
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 {
piracyAction();
}
}
function piracyAction() {
getURL ("http://www.xgenstudios.com/play/stickarena", "_top");
gotoAndStop ("pirateFrame");
}
function attachBorder() {
_root.attachMovie("exeBorderMC", "exeBorderMC", 99999999999);
exeBorderMC._x = -45;
exeBorderMC._y = -40;
exeBorderMC.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 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 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 initializeWeapons() {
weapons[0] = new weaponType("fist", "fist", "fistRun", "", 0, false, true, false, 5, 17, 1, 3, 0);
weapons[1] = new weaponType("fist", "fist", "fistRun", "", 0, false, true, false, 5, 17, 1, 3, 0);
weapons[2] = new weaponType("bat", "bat", "batRun", "Bat", 2, false, true, false, 19, 20, 0.9, 1, 45);
weapons[3] = new weaponType("sword", "swordRun", "swordRun", "Sword", 1, false, true, false, 8, 12, 1, 3, 30);
weapons[4] = new weaponType("glock", "glock", "glockRun", "Bullet", 3, true, true, true, 13, 18, 0.8, 1, 0);
weapons[5] = new weaponType("ak47", "ak47", "ak47Run", "Bullet", 3, true, true, true, 11, 14, 0.7, 3, 0);
weapons[6] = new weaponType("shotgun", "shotgun", "shotgunRun", "Shotgun", 3, true, true, true, 20, 40, 0.7, 1, 0);
weapons[7] = new weaponType("sledge", "sledge", "sledgeRun", "Sword", 1, true, true, false, 80, 65, 0.7, 1, 0);
numWeapons = 8;
}
function weaponType(aa, ia, ra, ba, bv, pa, 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.automatic = au;
this.range = r;
this.damage = d;
this.reloadTime = 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();
SFXknife00 = 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();
SFXknifeImpact = new Array();
SFXbatImpact = new Array();
SFXswordImpact = new Array();
SFXglockImpact = new Array();
SFXak47Impact = new Array();
SFXshotgunImpact = new Array();
SFXsledgeImpact = new Array();
SFXdeath = new Array();
var d = 0;
while (d < deathAnims) {
SFXdeath[d] = new Array();
d++;
}
SFXspawn = new Array();
var p = 0;
while (p < maxNumPlayers) {
_root.createEmptyMovieClip(("SFXweapon" + p) + "MC", depthCount++);
SFXfist00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXfist00[p].attachSound("fist00.wav");
SFXfist10[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXfist10[p].attachSound("fist10.wav");
SFXfist20[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXfist20[p].attachSound("fist20.wav");
SFXknife00[p] = new Sound(eval (("SFXweapon" + p) + "MC"));
SFXknife00[p].attachSound("knife00.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");
SFXknifeImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXknifeImpact[p].attachSound("knifeimp00.wav");
SFXbatImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXbatImpact[p].attachSound("Batimp00.wav");
SFXswordImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXswordImpact[p].attachSound("swordimp00.wav");
SFXglockImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXglockImpact[p].attachSound("glockimp00.wav");
SFXak47Impact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXak47Impact[p].attachSound("ak47imp00.wav");
SFXshotgunImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXshotgunImpact[p].attachSound("shotgunimp00.wav");
SFXsledgeImpact[p] = new Sound(eval (("SFXweaponImpact" + p) + "MC"));
SFXsledgeImpact[p].attachSound("sledgeimp00.wav");
_root.createEmptyMovieClip(("SFXdeath" + p) + "MC", depthCount++);
var d = 0;
while (d < deathAnims) {
SFXdeath[d][p] = new Sound(("SFXdeath" + p) + "MC");
SFXdeath[d][p].attachSound(("death" + d) + ".wav");
d++;
}
SFXspawn[p] = new Sound(("SFXdeath" + p) + "MC");
SFXspawn[p].attachSound("Spawn.wav");
p++;
}
_root.createEmptyMovieClip("SFXweaponPickupMC", depthCount++);
SFXknifePickup = new Sound("SFXweaponPickupMC");
SFXknifePickup.attachSound("Knifepick00.wav");
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");
_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);
}
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 menuHandler() {
if ((gameArea == 2) && (gameMode < 2)) {
cursorCrossHair();
}
}
function clickThrough(urlStr, linkNum) {
logMileStone("clicked" + linkNameArray[linkNum], urlStr);
}
function logMileStone(n, urlStr) {
postLogURL = urlStr;
var _local2 = new LoadVars();
var _local1 = new LoadVars();
_local1.mileStone = n;
_local1.embedURL = _url;
_local1.sendAndLoad("http://70.86.68.18/tracker.php", _local2, "POST");
pingTimeoutIntervalID = setInterval(executePostLogGetURL, 2000);
_local2.onLoad = function (success) {
executePostLogGetURL();
};
}
function executePostLogGetURL() {
if (postLogURL != null) {
getURL (postLogURL, "_new");
postLogURL = null;
gotoFrame = "deadEnd";
msgText = "\r\r\rYou are being directed to www.StickArena.com - A new window will open with the full, still free, version of Stick Arena shortly.\r\r\r\r\r(Click HERE if you are not redirected within a few seconds...)";
gotoAndStop ("preReturnFrame");
clearSummaryGarbage();
clearGameGarbage();
}
}
function stick() {
this.nom = null;
this.hp = (this.maxHp = 60);
this.displayedScore = -1;
this.score = 11;
this.score2 = this.score - 88;
this.deaths = 17;
this.deaths2 = this.deaths - 77;
this.killsSinceSpawn = (this.id = (this.lastChatSend = 0));
this.userLevel = 0;
this.walk = false;
this.acc = 3;
this.maxVel = 9;
this.walkMultiplier = 0.7;
this.rotVel = 1.5;
this.tRotVels = new Array();
this.reloadModifier = 1;
this.movementKeysDown = (this.attackButtonDown = (this.attackKeyDown = (this.hitSinceAttack = false)));
this.attackButtonReleased = (this.attackKeyReleased = (this.attackAnimationDone = true));
this.elasticity = 0.5;
this.vel = (this.xVel = (this.yVel = (this.xAcc = (this.yAcc = (this.accTmp = (this.maxVelTmp = (this.avgRotVel = (this.attackTimer = (this.weapon = 0)))))))));
this.facing = (this.lastFacing = "20");
this.mod = "dead";
this.frame = 1;
this.spawnTime = (this.spawnTimer = 150);
this.invulnerableTime = (this.invulnerableTimer = 100);
this.invulnerable = true;
this.pRoundsStarted = 0;
this.pWins = 0;
this.pLosses = 0;
this.pKills = 0;
this.pDeaths = 0;
this.leftLimit = 250;
this.rightLimit = 300;
this.topLimit = 175;
this.bottomLimit = 225;
this.col = new Object();
}
function spawnPointType(xx, yy, ww, dd, tt, rr) {
this.x = xx;
this.y = yy;
this.weapon = ww;
this.delay = dd;
this.timer = tt;
this.recievedRemoteTimer = false;
}
function area(f) {
this.fileName = f;
this.nom = "";
this.roundTime = 0;
this.tileSet = 0;
this.playerSpawnPoints = 0;
this.weaponSpawnPoints = 0;
this.spawnPoint = new Array();
this.weaponSpawn = new Array();
var _local2 = 0;
while (_local2 < 8) {
this.spawnPoint[_local2] = new spawnPointType(0, 0, 0);
this.weaponSpawn[_local2] = new spawnPointType(0, 0, 0, 0, 0);
_local2++;
}
}
function onFrame(frm) {
socketCalls();
mainCount++;
frameCount++;
if (mainCount >= 4) {
mainCount = 0;
calculateFrameRate();
updateWeaponSpawns();
if ((frm == "main") || (frm == "options")) {
updateHUD();
} else if (frm == "dead") {
updateHUDDead();
}
}
player.move();
if (frm == "main") {
player.autoAttack();
}
deltaSendTime = getTimer() - lastSendTime;
if (sendImmediate) {
sendImmediate = false;
player.sendPosition();
}
updateRemotePlayers();
animateWeaponPickups();
}
function onFrameSummary() {
socketCallsSummary();
mainCount++;
if (mainCount >= 4) {
mainCount = 0;
calculateFrameRate();
}
deltaSendTime = getTimer() - lastSendTime;
var _local3 = (summaryTime + adTime) + roundTimer;
var _local2 = (summaryTime + adTime) + int((summaryStartTime - getTimer()) / 1000);
summaryTimerMC.timerText0.text = (summaryTimerMC.timerText1.text = (summaryTimerMC.timerText2.text = (summaryTimerMC.timerText3.text = (summaryTimerMC.timerText4.text = (summaryText[1] + _local2) + summaryText[2]))));
if ((_local2 <= adTime) && (!adCalled)) {
logMileStone("displayedInterstitial_" + (clientRoundsStarted - 1));
adCalled = true;
_root.attachMovie("summaryAdMC", "summaryAdMC", 200003);
summaryTimerMC._y = 0;
} else if (_local2 <= 0) {
submitRoundStats();
summaryComplete();
}
}
function onFrameLobby() {
socketCallsLobby();
}
function doneIntro() {
gotoAndStop ("titleFrame");
}
function doneFLALoading() {
gotoAndStop ("postExportFrame");
}
function doneLoading() {
logMileStone("completedLoadingSWF");
preloadCharMC.stop();
percentLoadedText.text = (percentLoadedText2.text = "");
pregameMC.gotoAndStop(2);
}
function controlPreLoadAnimation() {
myRadians = Math.atan2(_root._ymouse - 275, _root._xmouse - 305);
deg = Math.round((myRadians * 180) / Math.PI);
preloadCharMC.eyesMC.leftPupilMC._rotation = smoothRot(preloadCharMC.eyesMC.leftPupilMC._rotation, deg, 2);
myRadians = Math.atan2(_root._ymouse - 275, _root._xmouse - 322);
deg = Math.round((myRadians * 180) / Math.PI);
preloadCharMC.eyesMC.rightPupilMC._rotation = smoothRot(preloadCharMC.eyesMC.rightPupilMC._rotation, deg, 2);
distance = Math.sqrt(Math.pow(_root._ymouse - 310, 2) + Math.pow(_root._xmouse - 311, 2));
preloadCharMC.squintMC.squintMC2._yscale = Math.min(120, (distance / 4) + 50);
if (random(120) == 0) {
preloadCharMC.blinkMC.gotoAndPlay(2);
}
}
function toggleSysInfo() {
if (sysInfoMC._visible != 0) {
sysInfoMC._visible = 0;
} else {
sysInfoMC._visible = 1;
}
}
function checkSystemCommand(str) {
if (str == "SYSINFO") {
toggleSysInfo();
return(true);
}
return(checkDevSystemCommand(str));
}
function displayWarning(hmsg, msg, displayTime) {
if (windowMC == null) {
_root.attachMovie("warningMsgMC", "windowMC", 200000);
windowMC._x = 90;
windowMC._y = 270;
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;
windowMC.msgText0.text = (windowMC.msgText1.text = msg);
}
function closeWindow() {
chatBtnMC._visible = true;
optionsBtnMC._visible = true;
setGameMode(0);
}
function noRemotePlayers() {
clearInterval(noRemotePlayersIntervalID);
noRemotePlayersConfirmed = true;
}
function enterAreaDelayed(b) {
clearInterval(enterAreaIntervalID);
Key.removeListener(enterAreaListener);
if (!b) {
displayWindow("405", controlHelpText);
}
}
function lobbyOneSecondTick() {
noInputTime++;
if (noInputTime >= noInputBootLobbyDelay) {
bootPlayer((("\r" + inactiveText) + "\r") + bootToTitleText, "title");
}
}
function oneSecondTick() {
checkConnection();
cheatPrevention();
checkNoInput();
checkVoteKick();
}
function updateRoundTimer() {
roundTimer--;
if (Number(roundTimer) > 10) {
if ((Number(lastRoundTimerUpdate) - Number(roundTimer)) > 15) {
sendRoomDetailRequest(currentRoomName, "updateRoundTime");
}
var _local1 = 0;
while (_local1 < timeNotify.length) {
if (roundTimer == timeNotify[_local1]) {
addHUDMsg((("<FONT COLOR=\"#FFEEEE\">" + formatTime(timeNotify[_local1])) + timeNotifyText) + "</FONT>", formatTime(timeNotify[_local1]) + timeNotifyText, 5000);
_local1 = timeNotify.length;
}
_local1++;
}
} else if (roundTimer == 10) {
addHUDMsg((("<FONT COLOR=\"#FFEEEE\">" + formatTime(10)) + timeNotifyText) + "</FONT>", formatTime(10) + timeNotifyText, 2000);
} else {
addHUDMsg((("<FONT COLOR=\"#FFEEEE\">" + String(roundTimer)) + " !") + "</FONT>", String(roundTimer) + " !", 2000);
if ((roundTimer <= 0) && (roundActive)) {
endRound();
}
}
}
function cheatPrevention() {
if ((player.score2 != (player.score - 88)) || (player.deaths2 != (player.deaths - 77))) {
cheating = true;
getURL ("http://www.xgenstudios.com", "_top");
gotoAndStop ("pirateFrame");
}
}
function checkClicks() {
if (clickCount >= warnClicks) {
displayWarning(rapidClickText, rapidClickText, warnClickDisplayTime);
}
clickCount = 0;
}
function checkConnection() {
if ((getTimer() - lastMessageRecieved) > serverTimeout) {
if (enforceConnection) {
bootPlayer("\r" + disconnectedText, "title");
}
}
}
function checkPerformance() {
if (eval (("earthMC.player" + remotePlayers[0]) + "MC").remoteAvgPing >= maxPing) {
warnPingCount++;
if (warnPingCount < warnPingBoot) {
displayWindow("304", (highPingText0 + maxPing) + highPingText1);
} else if (serverType[serverNum] == "COMPATIBILITY") {
if (loggedIn) {
bootPlayer((("\r" + highPingText0) + maxPing) + highPingText1, "lobby");
} else {
bootPlayer((("\r" + highPingText0) + maxPing) + highPingText1, "title");
}
} else if (loggedIn) {
bootPlayerToCompat((("\r" + highPingText0) + maxPing) + highPingText1, "lobby");
} else {
bootPlayerToCompat((("\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) {
bootPlayer((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "lobby");
} else {
bootPlayer((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "title");
}
} else if (loggedIn) {
bootPlayerToCompat((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "lobby");
} else {
bootPlayerToCompat((("\r" + lowFPSText0) + minFPS) + lowFPSText1, "title");
}
}
}
function checkNoInput() {
noInputTime++;
if (noInputTime >= noInputBootGameDelay) {
if (loggedIn) {
bootPlayer("\r" + inactiveText, "lobby");
} else {
bootPlayer("\r" + inactiveText, "title");
}
}
}
function checkVoteKick() {
if (voteKickActive) {
if ((voteKickStartTime - roundTimer) >= (voteKickDisplayTime / 1000)) {
voteKickActive = false;
voteKickVoted = false;
voteKickID = null;
voteKickVoteCount = 0;
voteKickStartTime = null;
}
}
}
function bootPlayer(str, destination) {
logMileStone("playerBooted");
if (destination != "lobby") {
returnToTitle((str + "\r") + bootToTitleText);
} else {
returnToLobby(str);
gotoFrame = "bootToLobby";
}
}
function bootPlayerToCompat(str, destination) {
serverNum = 0;
var _local1 = 0;
while (_local1 < serverName.length) {
if (serverType[_local1] == "COMPATIBILITY") {
serverNum = _local1;
}
_local1++;
}
_local1 = 0;
while (_local1 < serverName.length) {
if (((int(serverPing[_local1]) < int(serverPing[serverNum])) && (int(serverPing[_local1]) != 0)) || ((int(serverPing[_local1]) != 0) && (int(serverPing[serverNum]) == 0))) {
if (serverType[_local1] == "COMPATIBILITY") {
serverNum = _local1;
}
}
_local1++;
}
if ((serverPing[serverNum] != 0) && (serverType[serverNum] == "COMPATIBILITY")) {
str = str + ("\r" + bootToCompatText);
if (destination != "lobby") {
titleAction = "quickStart";
returnToTitle(str);
} else {
returnToLobby(str);
gotoFrame = "bootToLobby";
}
} else {
str = str + ("\r" + bootToTitleText);
returnToTitle(str);
}
}
function setGameMode(n) {
if (n == 0) {
gameMode = lastGameMode;
lastGameMode = 0;
} else {
if (gameMode == 0) {
}
lastGameMode = gameMode;
gameMode = n;
}
}
function loadSettings() {
var _local1 = new LoadVars();
var _local2 = new LoadVars();
autoQuickStart = false;
skipIntro = false;
optionQuality = 0;
optionLanguageFilter = true;
optionBlood = 1;
optionUseBitmapCaching = FPV8;
collisionCheckGhost = true;
maxNumPlayers = 4;
maxNumPlayersLobby = 1024;
maxMsgLength = 45;
maxMsgLengthLobby = 135;
maxLobbyMsgs = 40;
maxArenaName = 20;
lobbyRoomName = "_";
reportLobbyConnects = Boolean(0);
serverTimeoutStandard = 2000;
serverTimeoutCompat = 5000;
pingTestTimeout = 10000;
enforceConnection = true;
minFPSStandard = 12;
minFPSCompat = 12;
maxPingStandard = 275;
maxPingCompat = 800;
warnFPSBoot = 3;
warnPingBoot = 3;
enforcePerformance = true;
performanceInterval = 5000;
noInputBootLobbyDelay = 300;
noInputBootGameDelay = 120;
refreshRoomsDelay = 5000;
controlHelpDelay = 5000;
noRemotePlayersDelay = 4000;
roundTime = 300;
summaryTime = 11;
adTime = 30;
tutorialDelay = 19750;
minSendTime = 65;
minSendTimeCompat = 130;
keepAliveTime = 100;
pingAvgPeriod = 10;
remoteSmoothing = 8;
remoteRotSmoothing = 4;
minChatSendTime = 3000;
warnClicks = 4;
warnClickDisplayTime = 3000;
voteKickDisplayTime = 10000;
voteKickDisabledTime = 20000;
displayPlayerIDs = false;
scrollSpeedStandard = 6;
scrollSpeedCompat = 1;
playerAcc = 3;
playerMaxVel = 9;
playerAccCompat = 2;
playerMaxVelCompat = 6;
reloadModifierCompat = 1.5;
loadPreferences();
adminMsgText = ". . : : : Admin Message : : : . .\r\rAdult Language, Hate Speech, Flooding, 'Cybering' and other abusive activities are not permitted in Stick Arena. Thanks for keeping the game enjoyable for everyone!\r\rIf you are experiencing slow or choppy gameplay, try the new 'enhanced compatibility server'. Select [Compatibility Server] from the server list, located in the top right corner.\r\rA silver 'M' will appear next to authentic moderators.";
timeNotifyText = " left in this round !";
versionNotCurrentText = "Stick Arena has been updated! You are running an old version and will need to CLEAR your browser CACHE, CLOSE your browser WINDOW, and RELOAD the game.\r\r-Internet Explorer: To clear your cache in IE, click 'Tools > Internet Options'. Select the 'General' tab and press 'Delete Files... > OK'.\r\r-Fire Fox: To clear your cache in FF, click 'Tools > Options...' . Select the 'Privacy' icon at left, then press the 'Clear' button to the right of the 'Cache' category.";
rapidClickText = "WARNING!!! Repeatedly clicking the mouse button will negatively impact game play and performance.\r( Press and HOLD the mouse button to attack rapidly )";
lowFPSText0 = "Stick Arena is running slowly on your system (Below ";
highPingText0 = "Stick Arena is having difficulty communicating with the server. (Above ";
lowFPSText1 = " frames per second). Please close all other browser windows and applications before continuing. Stick Arena plays best in Windows using the latest Flash Player Plug-In and Internet Explorer (Firefox, Netscape, ISP and other browsers may cause performance issues).";
highPingText1 = "ms Ping time). We recommend closing all other browser windows, halting downloads, and exiting any file sharing and/or P2P applications you may be running.";
disconnectedText = "\rYou have been disconnected from the Server - Please check your internet connection.";
logOutText = "Do you want to quit your game and log out of Stick Arena?";
quitToLobbyText = "Do you want to leave the current game and return to the Lobby?";
bootToTitleText = "\rYou will now be returned to the Main Menu.";
bootToCompatText = "\rYou will now be transferred to an 'Enhanced Compatibility' Server designed for players with 'Low FPS' and/or 'High Ping' difficulties.";
controlHelpText = "\rHaving difficulty playing?\rMOVE: Arrow Keys, WASD\rATTACK: Left Mouse Button, Space Bar, Numpad 0\rWALK: V, \\ (Backslash)\rStick Arena plays best in Windows using the latest Flash Player Plug-In and Internet Explorer.";
serversFullText = "Unable to connect to Server!\rStick Arena is experiencing extremely high traffic volumes - Please try again!";
noConnectionText = "Unable to connect to Server!\rStick Arena was unable to communicate with any server. Check your internet connection and try disabling active firewalls and/or opening blocked ports.\r\rWe also recommend using Internet Explorer; There are known issues with Firefox and other browsers.\r\r(Stick Arena will attempt to use ports 1138, 443, 110 and 80).";
pingingText = "Pinging Servers...";
compatModeText = "[C.MODE]";
compatServerText = "[COMPATIBILITY SERVER] !!!\r\rYou have selected an 'Enhanced Compatibility' Server designed for players with 'Low FPS' and/or 'High Ping' difficulties. If you have a fast computer with a good internet connection, we recommend you choose a different Server to enjoy the Stick Arena experience fully.";
inactiveText = "You have been disconnected due to a period of inactivity.";
initializeSound();
settingsLoaded = true;
bypassPing();
}
function pingTimeout() {
socket[pingServerNum].close();
}
function bypassPing() {
pingTestComplete = true;
portNum = 0;
lastSuccessfulPortNum = portNum;
serverNum = 0;
titleMenuMC._visible = true;
windowPingMC._visible = false;
serverPing[serverNum] = 100;
connectionAvailable = true;
}
function startPing() {
pingServerNum = 0;
portNum = 0;
pingTestComplete = false;
pingTimeoutIntervalID = setInterval(pingTimeout, serverTimeout);
pingTestTimeoutIntervalID = setInterval(pingTestFail, pingTestTimeout);
connectAction = "ping";
serverConnectAttempt[0] = getTimer();
connectToServer(pingServerNum, portNum);
}
function pingRecieved(success) {
clearInterval(pingTimeoutIntervalID);
if (!pingTestComplete) {
if (success) {
serverPing[pingServerNum] = int(getTimer() - serverConnectAttempt[pingServerNum]);
} else {
serverPing[pingServerNum] = 0;
}
socket[pingServerNum].close();
if (success) {
lastSuccessfulPortNum = portNum;
pingServerNum++;
} else if (pingServerNum < serverName.length) {
portNum++;
if (portNum == connectPort.length) {
portNum = 0;
pingServerNum++;
}
}
if (pingServerNum < serverName.length) {
pingTimeoutIntervalID = setInterval(pingTimeout, serverTimeout);
serverConnectAttempt[pingServerNum] = getTimer();
connectToServer(pingServerNum, portNum);
} else {
clearInterval(pingTestTimeoutIntervalID);
pingTestComplete = true;
selectFastestServer();
titleMenuMC._visible = true;
windowPingMC._visible = false;
if (serverPing[serverNum] != 0) {
connectionAvailable = true;
} else {
connectionAvailable = false;
connectAction = null;
gotoFrame = "noConnection";
msgText = noConnectionText;
gotoAndStop ("preReturnFrame");
}
}
}
}
function pingTestFail() {
pingTestComplete = true;
selectFastestServer();
if (serverPing[serverNum] != 0) {
connectionAvailable = true;
} else {
serverNum = random(serverName.length - 1) + 1;
connectionAvailable = true;
}
}
function getPingingText() {
var _local2 = pingingText + "\r";
var _local1 = 0;
while (_local1 < serverName.length) {
_local2 = _local2 + ((("\r" + serverName[_local1]) + ":") + serverPing[_local1]);
_local1++;
}
_local2 = _local2 + ("\rPort Num: " + lastSuccessfulPortNum);
return(_local2);
}
function selectFastestServer() {
portNum = lastSuccessfulPortNum;
serverNum = 0;
var _local1 = 0;
while (_local1 < serverName.length) {
if (((int(serverPing[_local1]) < int(serverPing[serverNum])) && (int(serverPing[_local1]) != 0)) || ((int(serverPing[_local1]) != 0) && (int(serverPing[serverNum]) == 0))) {
if ((serverType[_local1] != "COMPATIBILITY") || (serverPing[serverNum] == 0)) {
serverNum = _local1;
}
}
_local1++;
}
}
function savePreferences() {
myLSO = SharedObject.getLocal("xgsalite6");
if (myLSO.data.myObj == undefined) {
}
myObj = {};
myObj.objArray = new Array(5);
myObj.objArray[0] = optionQuality;
myObj.objArray[1] = SFXVolume;
myObj.objArray[2] = optionBlood;
myObj.objArray[3] = optionLanguageFilter;
myObj.objArray[4] = clientRoundsStarted;
myLSO.data.myObj = myObj;
}
function loadPreferences() {
myLSO = SharedObject.getLocal("xgsalite6");
if (myLSO.data.myObj == undefined) {
clientRoundsStarted = 0;
} 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];
clientRoundsStarted = Number(myLSO.data.myObj.objArray[4]);
}
}
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.pKills);
playerNameMC.attachMovie(iconMC, "rankIconMC", 10000);
with (playerNameMC.rankIconMC) {
_x = -26;
_y = 2;
_xscale = (_yscale = 125);
}
}
function chatKeyPressed() {
if (gameMode == 0) {
setGameMode(2);
chatMC._visible = true;
chatBtnMC.gotoAndStop(2);
optionsBtnMC._visible = false;
player.movementKeysDown = (player.attackKeyDown = false);
player.attackKeyReleased = true;
} else if (gameMode == 2) {
if ((getTimer() - player.lastChatSend) > minChatSendTime) {
chatMC._visible = false;
chatBtnMC.gotoAndStop(1);
optionsBtnMC._visible = true;
setGameMode(0);
if (chatMC.chatText0.text.length > 1) {
if (!checkSystemCommand(chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1))) {
player.lastChatSend = getTimer();
player.sendChatMsg(chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1));
}
SFXBTNchat.start();
}
chatMC.chatText0.text = (chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = "_"))));
} else {
SFXBTNerror.start();
}
}
}
function optionsBtnPressed() {
logMileStone("playerOpenedPrefs");
player.movementKeysDown = (player.attackButtonDown = (player.attackKeyDown = false));
player.attackKeyReleased = true;
setGameMode(3);
cursorNormal();
gotoAndStop ("optionsFrame");
}
function pressVoteKick(a) {
player.sendVoteKick(a);
voteKickID = a;
voteKickActive = true;
voteKickVoted = true;
voteKickVoteCount = 1;
voteKickStartTime = roundTimer;
voteKickInitiateTime = roundTimer;
displayWarning(("<br><br>" + voteKickText[0]) + getColoredName(a), ("\r\r" + voteKickText[0]) + getName(a), voteKickDisplayTime);
}
function pressReportUser(a) {
setGameMode(4);
reportUserID = a;
player.movementKeysDown = (player.attackButtonDown = (player.attackKeyDown = false));
player.attackKeyReleased = true;
cursorNormal();
leadMC.removeMovieClip();
gotoAndStop ("reportFrame");
}
function updateGameState(a, w, k, de, n, wst, r, g, b, rk) {
with (eval (("earthMC.player" + a) + "MC")) {
if (nameMC.nameText.length == 0) {
nameMC.nameText.text = (nameMC.nameText2.text = (nameMC.nameText3.text = (nameMC.nameText4.text = n)));
changePlayerColor(a, r, g, b);
changePlayerWeapon(a, w);
kills = k;
deaths = de;
rank = rk;
recievedGameState = true;
if (textMC.localIdText.text != 0) {
addHUDMsg(getColoredName(a) + HUDText[0], getName(a) + HUDText[0], 5000);
}
}
}
var i = 0;
while (i < currentArea.weaponSpawnPoints) {
if (currentArea.weaponSpawn[i].recievedRemoteTimer) {
currentArea.weaponSpawn[i].timer = int((currentArea.weaponSpawn[i].timer + wst[i]) / 2);
} else {
currentArea.weaponSpawn[i].timer = wst[i];
currentArea.weaponSpawn[i].recievedRemoteTimer = true;
}
i++;
}
}
function getRandomName() {
return(defaultFirstNames[random(defaultFirstNames.length)] + defaultLastNames[random(defaultLastNames.length)]);
}
function addPlayer(a) {
if (((!loggedIn) || (playerCount > 0)) || (new String(player.id) eq new String(a))) {
var lId = 0;
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] == 0) {
remotePlayers[i] = a;
lId = i;
i = maxNumPlayers;
}
i++;
}
earthMC.attachMovie("characterMC", ("player" + a) + "MC", lId + 3000);
with (eval (("earthMC.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 {
if (a.length != 3) {
bootPlayer("All your Non-3-Digit IDs are belong to us.", "title");
}
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 (("earthMC.player" + a) + "MC").removeMovieClip();
playerCount--;
}
}
function getLocalIDLobby(a) {
var _local1 = 0;
while (_local1 < maxNumPlayersLobby) {
if (new String(remotePlayersLobby[_local1][0]) 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) {
var _local1 = 0;
while (remotePlayersLobby[_local1][0] != null) {
_local1++;
}
remotePlayersLobby[_local1] = new Array();
remotePlayersLobby[_local1][0] = a;
remotePlayersLobby[_local1][1] = "";
remotePlayersLobby[_local1][2] = "#FFFFFF";
remotePlayersLobby[_local1][3] = 0;
remotePlayersLobby[_local1][4] = 0;
if (_local1 != 0) {
player.sendGameStateLobby(a);
} else {
player.id = a;
remotePlayersLobby[0][1] = player.nom;
remotePlayersLobby[0][2] = player.hexColor;
remotePlayersLobby[0][3] = player.pKills;
if (a.length != 3) {
bootPlayer("All your Non-3-Digit IDs are belong to us.", "title");
}
var _local2 = "#A8D3FF";
addLobbyMsg(((((colorHtml(lobbyText[2], _local2) + colorHtml(lobbyText[3], _local2)) + colorHtml(serverName[serverNum], _local2)) + colorHtml(lobbyText[4], _local2)) + getColoredNameLobby(0)) + colorHtml(lobbyText[5], _local2), ((((lobbyText[2] + lobbyText[3]) + serverName[serverNum]) + lobbyText[4]) + remotePlayersLobby[0][1]) + lobbyText[5]);
var _local4 = getRankIconName(player.pKills);
if (player.userLevel == 1) {
_local4 = "rankMMC";
}
userBox.addItem({label:remotePlayersLobby[0][1], icon:_local4});
styleObj = new Object();
styleObj.backgroundColor = Number("0x" + remotePlayersLobby[0][2].substr(1, 6));
userBox.setPropertiesAt(userBox.length - 1, styleObj);
}
playerCountLobby++;
}
function updatePlayerLobby(a, n, r, g, b, pk) {
var _local11 = getLocalIDLobby(a);
if ((remotePlayersLobby[_local11][1] == "") || (new String(player.id) eq new String(a))) {
remotePlayersLobby[_local11][1] = n;
if (remotePlayersLobby[_local11][1].length < 3) {
remotePlayersLobby[_local11][1] = "invalid.name";
mcpLobbyMC.mcpNotify(3, a);
}
if ((!isLegalAccountString(remotePlayersLobby[_local11][1])) || (!containsNoFilteredLanguage(remotePlayersLobby[_local11][1]))) {
remotePlayersLobby[_local11][1] = "invalid.name";
mcpLobbyMC.mcpNotify(4, a);
}
if (RGBToHex(r, g, b, 100) != "#0") {
remotePlayersLobby[_local11][2] = RGBToHex(r, g, b, 100);
} else {
remotePlayersLobby[_local11][2] = RGBToHex(222, 2, 2, 100);
mcpLobbyMC.mcpNotify(0, n);
}
remotePlayersLobby[_local11][3] = pk;
if (_local11 != 0) {
if (reportLobbyConnects) {
addLobbyMsg((("[ " + getColoredNameLobby(_local11)) + lobbyText[0]) + " ]", (("[ " + remotePlayersLobby[_local11][1]) + lobbyText[0]) + " ]");
}
userBox.addItem({label:remotePlayersLobby[_local11][1], icon:getRankIconName(pk)});
styleObj = new Object();
styleObj.backgroundColor = Number("0x" + remotePlayersLobby[_local11][2].substr(1, 6));
userBox.setPropertiesAt(userBox.length - 1, styleObj);
}
if (((r == 0) && (g == 0)) && (b == 0)) {
mVerify = n;
var replyDataPHP = new LoadVars();
var _local5 = new LoadVars();
_local5.action = "player_stats";
_local5.username = n;
_local5.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
if (this.user_level == "1") {
var _local4 = false;
var _local3 = 0;
var _local2 = 0;
while (_local2 < userBox.length) {
if (userBox.getItemAt(_local2).label == mVerify) {
_local3 = _local2;
_local4 = true;
}
_local2++;
}
if (_local4) {
var _local5 = new Object();
_local5 = userBox.getItemAt(_local3);
_local5.icon = "rankMMC";
userBox.replaceItemAt(_local3, _local5);
var _local7 = getIDLobby(mVerify);
var _local6 = getLocalIDLobby(_local7);
if ((_local7 != null) && (_local6 != -1)) {
remotePlayersLobby[_local6][4] = 1;
}
}
}
}
}
};
}
}
}
function removePlayerLobby(a) {
var _local2 = getLocalIDLobby(a);
if (reportLobbyConnects) {
addLobbyMsg((("[ " + getColoredNameLobby(_local2)) + 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--;
}
function playerSpawnDone(a) {
with (eval (("earthMC.player" + a) + "MC")) {
spawnMC._visible = 0;
legsMC._visible = 1;
torsoMC._visible = 1;
mod = "stand";
}
}
function remoteWeaponPickup(a, n) {
w = currentArea.weaponSpawn[n].weapon;
if ((a != player.id) && (n != 9)) {
eval (("earthMC.pickup" + n) + "MC").removeMovieClip();
currentArea.weaponSpawn[n].timer = currentArea.weaponSpawn[n].delay;
x = eval (("earthMC.player" + a) + "MC")._x + earthMC._x;
y = eval (("earthMC.player" + a) + "MC")._y + earthMC._y;
adjustAndPlaySound(eval (("SFX" + weapons[w].attackAnim) + "Pickup"), x - charMC._x, y - charMC._y);
}
}
function remotePlayerAttack(a, x, y, tr, w) {
with (eval (("earthMC.player" + a) + "MC")) {
var rnd = (random(weapons[w].variations) + 1);
torsoMC.gotoAndStop((weapons[w].attackAnim + "Attack") + rnd);
torsoMC.attackMC.gotoAndPlay(1);
torsoMC.attackMC.collisionMC._visible = 0;
torsoMC._rotation = tr;
attackAnimationDone = false;
if (textMC.localIdText.text != 0) {
attachParticles(weapons[w].particleAnim, weapons[w].attackAnim, _x, _y, torsoMC._rotation);
adjustAndPlaySound(eval ((("SFX" + weapons[w].attackAnim) + (rnd - 1)) + "0")[textMC.localIdText.text], (x + earthMC._x) - charMC._x, (y + earthMC._y) - charMC._y);
remoteAttackHitTest(a, w);
}
}
}
function remoteAttackHitTest(a, w) {
startTime = getTimer();
if ((!player.invulnerable) && (player.mod != "dead")) {
if (collisionCheckGhost) {
var xx = (eval (("earthMC.player" + player.id) + "MC")._x + earthMC._x);
var yy = (eval (("earthMC.player" + player.id) + "MC")._y + earthMC._y);
} else {
var xx = charMC._x;
var yy = charMC._y;
}
with (eval (("earthMC.player" + a) + "MC")) {
var distance = (Math.pow((_x + earthMC._x) - xx, 2) + Math.pow((_y + earthMC._y) - yy, 2));
if (distance < 250000) {
if (weapons[w].range || (distance < 10000)) {
if ((((torsoMC.attackMC.collisionMC.hitTest(xx, yy, true) || (torsoMC.attackMC.collisionMC.hitTest(xx - 6, yy - 6, true))) || (torsoMC.attackMC.collisionMC.hitTest(xx - 6, yy + 6, true))) || (torsoMC.attackMC.collisionMC.hitTest(xx + 6, yy - 6, true))) || (torsoMC.attackMC.collisionMC.hitTest(xx + 6, yy + 6, true))) {
distance = Math.sqrt(distance);
var radAngle = Math.atan2((_y - yy) + earthMC._y, (_x - xx) + earthMC._x);
var deg = (Math.round((radAngle * 180) / Math.PI) - 90);
if (weapons[w].range) {
var collision = false;
var hitDistance = ((resolution = 10));
var gunLength = 30;
while (hitDistance < (distance - gunLength)) {
xHit = int(xx + (Math.cos(radAngle) * hitDistance));
yHit = int(yy + (Math.sin(radAngle) * hitDistance));
xTileHit = int(((xHit - earthMC._x) / 50) + 0.5);
yTileHit = int(((yHit - earthMC._y) / 50) + 0.5);
if (earth[xTileHit][yTileHit][3] == 3) {
collision = true;
hitDistance = distance;
}
hitDistance = hitDistance + resolution;
}
if (!collision) {
player.damage(weapons[w].damage, a, w, deg + weapons[w].deathRotation);
}
} else {
player.damage(weapons[w].damage, a, w, deg + weapons[w].deathRotation);
}
}
}
}
}
}
functionTimers[12] = functionTimers[12] + (getTimer() - startTime);
}
function playerDoneAttack(a) {
with (eval (("earthMC.player" + a) + "MC")) {
attackAnimationDone = true;
if ((mod == "walk") && (!walk)) {
torsoMC.gotoAndStop(weapons[weapon].runAnim + "Idle");
} else {
torsoMC.gotoAndStop(weapons[weapon].idleAnim + "Idle");
}
}
}
function getName(a, localName) {
if (localName) {
return(player.nom);
}
if ((eval (("earthMC.player" + a) + "MC").textMC.localIdText.text != 0) && (eval (("earthMC.player" + a) + "MC") != null)) {
return(eval (("earthMC.player" + a) + "MC").nameMC.nameText.text);
}
return(HUDText[3]);
}
function getColoredName(a, localName) {
if (localName) {
return(((("<FONT COLOR=\"" + player.hexColor) + "\">") + player.nom) + "</FONT>");
}
if ((eval (("earthMC.player" + a) + "MC").textMC.localIdText.text != 0) && (eval (("earthMC.player" + a) + "MC") != null)) {
return(((("<FONT COLOR=\"" + eval (("earthMC.player" + a) + "MC").hexColor) + "\">") + eval (("earthMC.player" + a) + "MC").nameMC.nameText.text) + "</FONT>");
}
return(((("<FONT COLOR=\"" + player.hexColor) + "\">") + HUDText[3]) + "</FONT>");
}
function getColoredNameLobby(lId, localName, bracketed) {
if (!bracketed) {
if (localName) {
return(((("<FONT COLOR=\"" + remotePlayersLobby[0][2]) + "\">") + HUDText[3]) + "</FONT>");
}
return(((("<FONT COLOR=\"" + remotePlayersLobby[lId][2]) + "\">") + remotePlayersLobby[lId][1]) + "</FONT>");
}
if (localName) {
return(((("<FONT COLOR=\"" + remotePlayersLobby[0][2]) + "\"><") + HUDText[3]) + "></FONT>");
}
if (remotePlayersLobby[lId][4] == 1) {
return(((((("<<<FONT COLOR=\"" + remotePlayersLobby[lId][2]) + "\">") + remotePlayersLobby[lId][1]) + "<FONT COLOR=\"#FFFFFF\">") + ">") + ">");
}
return(((("<FONT COLOR=\"" + remotePlayersLobby[lId][2]) + "\"><") + remotePlayersLobby[lId][1]) + "></FONT>");
}
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 remoteChatMsg(a, m) {
if (optionLanguageFilter) {
m = filterLanguage(m);
}
if (getName(a) != undefined) {
addHUDMsg(((getColoredName(a) + ": '") + m) + "'", ((getName(a) + ": '") + m) + "'", 8000);
}
}
function remoteChatMsgLobby(a, m, privateMessage) {
if (optionLanguageFilter) {
m = filterLanguage(m);
}
var _local2 = getLocalIDLobby(a);
if (((m.length <= maxMsgLengthLobby) && (remotePlayersLobby[_local2][1].length > 0)) && (isLegalChatString(m))) {
if ((a != lastChatSenderID) || ((getTimer() - lastChatMsgReceived) > (minChatSendTime / 2))) {
lastChatSenderID = a;
lastChatMsgReceived = getTimer();
if (privateMessage) {
if (m == "><") {
var replyDataPHP = new LoadVars();
var _local4 = new LoadVars();
_local4.action = "player_stats";
_local4.username = remotePlayersLobby[_local2][1];
_local4.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
if (this.user_level == "1") {
bootPlayer("\r" + lobbyText[38], "title");
}
}
}
};
} else if (remotePlayersLobby[_local2][4] == 1) {
addLobbyMsg(((lobbyText[14] + getColoredNameLobby(_local2, false, true)) + " ") + m, (((lobbyText[14] + "<<") + remotePlayersLobby[_local2][1]) + ">> ") + m);
} else {
addLobbyMsg(((lobbyText[14] + getColoredNameLobby(_local2, false, true)) + " ") + m, (((lobbyText[14] + "<") + remotePlayersLobby[_local2][1]) + "> ") + m);
}
} else if (remotePlayersLobby[_local2][4] == 1) {
addLobbyMsg((getColoredNameLobby(_local2, false, true) + " ") + m, (("<<" + remotePlayersLobby[_local2][1]) + ">> ") + m);
} else {
addLobbyMsg((getColoredNameLobby(_local2, false, true) + " ") + m, (("<" + remotePlayersLobby[_local2][1]) + "> ") + m);
}
}
}
}
function remoteVoteKick(a, k) {
if (a != k) {
if (!voteKickActive) {
voteKickID = k;
voteKickActive = true;
voteKickVoteCount = 1;
voteKickStartTime = roundTimer;
if (k != player.id) {
displayWarning(((("\r" + voteKickText[1]) + getColoredName(k)) + "\r") + voteKickText[2], ((("\r" + voteKickText[1]) + getName(k)) + "\r") + voteKickText[2], voteKickDisplayTime);
}
} else {
voteKickVoteCount++;
if (voteKickVoteCount > (playerCount - voteKickVoteCount)) {
if (player.id == voteKickID) {
if (loggedIn) {
bootPlayer("\r" + voteKickText[3], "lobby");
} else {
bootPlayer("\r" + voteKickText[3], "title");
}
}
}
}
}
}
function remotePlayerDeath(a, k, w, deg) {
if (a != k) {
x = eval (("earthMC.player" + a) + "MC")._x + earthMC._x;
y = eval (("earthMC.player" + a) + "MC")._y + earthMC._y;
animateDeath(("earthMC.player" + a) + "MC", a, w, deg, eval (("earthMC.player" + a) + "MC").killsSinceSpawn, x, y);
with (eval (("earthMC.player" + a) + "MC")) {
deaths++;
killsSinceSpawn = 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 (("earthMC.player" + k) + "MC")) {
kills++;
killsSinceSpawn++;
}
if (k == player.id) {
logMileStone("playerKill");
player.addToScore(1);
}
}
}
function remotePlayerSpawn(a, x, y) {
with (eval (("earthMC.player" + a) + "MC")) {
animateSpawn("Remote 2");
_x = (absX = (lastUpdateX = x));
_y = (absY = (lastUpdateY = y));
nameMC._visible = 1;
if (textMC.localIdText.text != 0) {
adjustAndPlaySound(SFXspawn[textMC.localIdText.text], (_x + earthMC._x) - charMC._x, (_y + earthMC._y) - charMC._y);
}
attachMovie("remoteSpawnFX", "remoteSpawnFX", 1203);
}
}
function updateRemotePlayers() {
startTime = getTimer();
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("earthMC.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++;
}
functionTimers[13] = functionTimers[13] + (getTimer() - startTime);
}
function changePlayerWeapon(a, w) {
with (eval (("earthMC.player" + a) + "MC")) {
weapon = w;
}
}
function changePlayerColor(a, r, g, b) {
var playerColor = new Color(eval (("earthMC.player" + a) + "MC").colorMC);
var ct = new Object();
ct = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"75", ab:"0"};
ct.rb = r;
ct.gb = g;
ct.bb = b;
playerColor.setTransform(ct);
with (eval (("earthMC.player" + a) + "MC")) {
hexColor = RGBToHex(r, g, b, 100);
nameMC.nameTextC.htmlText = getColoredName(a);
}
}
function updatePlayer(a, x, y, f, m, wk, xV, yV, tr, trv, inv) {
startTime = getTimer();
with (eval (("earthMC.player" + a) + "MC")) {
curTime = getTimer();
deltaTime = curTime - lastUpdate;
lastUpdate = curTime;
if (deltaTime > 20) {
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;
movementKeysDown = m;
walk = wk;
xVel = xV;
yVel = yV;
tRotVel = trv;
invulnerable = inv;
absRot = tr;
if (serverType[serverNum] == "COMPATIBILITY") {
approximateFrameDelay = Math.floor(((remoteAvgPing / frameDeltaTime) / 4) + 5);
} else {
approximateFrameDelay = Math.floor((remoteAvgPing / 33) + 3);
}
if (mod != "dead") {
var i = 0;
while (i < approximateFrameDelay) {
xyVel = calcMove(facing, walk, movementKeysDown, xVel, yVel, weapon);
xyVel = calcCol(_x + earthMC._x, _y + earthMC._y, xyVel[0], xyVel[1]);
xyVel = calcMove2(xyVel[0], xyVel[1], mod, movementKeysDown);
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++;
}
}
torsoMC._rotation = smoothRot(torsoMC._rotation, absRot, remoteRotSmoothing);
frame = animatePlayer(("earthMC.player" + a) + "MC", mod, walk, attackAnimationDone, weapon, frame, vel, facing, inv);
}
}
}
functionTimers[14] = functionTimers[14] + (getTimer() - startTime);
}
function remotePlayerPrediction(a) {
startTime = getTimer();
if (a != undefined) {
with (eval (("earthMC.player" + a) + "MC")) {
if (mod != "dead") {
var displayX = (_x + earthMC._x);
var displayY = (_y + earthMC._y);
if ((((displayX > -100) && (displayX < 650)) && (displayY > -100)) && (displayY < 500)) {
_visible = 1;
xyVel = calcMove(facing, walk, movementKeysDown, xVel, yVel, weapon);
xyVel = calcCol(_x + earthMC._x, _y + earthMC._y, xyVel[0], xyVel[1]);
xyVel = calcMove2(xyVel[0], xyVel[1], mod, movementKeysDown);
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);
torsoMC._rotation = smoothRot(torsoMC._rotation, absRot, remoteRotSmoothing);
frame = animatePlayer(("earthMC.player" + a) + "MC", mod, walk, attackAnimationDone, weapon, frame, vel, facing, invulnerable);
} else {
_visible = 0;
}
}
}
}
functionTimers[15] = functionTimers[15] + (getTimer() - startTime);
}
function sendFunction() {
player.sendPosition();
}
function sendReportUser(userID) {
socket[serverNum].send("07" + userID);
}
function recieveRoomList(roomList) {
var _local7 = arenaBox.getItemAt(arenaBox.selectedIndex).data;
var _local6 = false;
var _local5 = 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 == 1) {
if (roomsLobby[roomCountLobby][2] == lobbyRoomName) {
_local6 = true;
} else {
arenaBox.addItem({label:getRoomDisplayName(roomsLobby[roomCountLobby][2]), data:roomsLobby[roomCountLobby][2]});
}
if (roomsLobby[roomCountLobby][2] == _local7) {
arenaBox.selectedIndex = arenaBox.length - 1;
}
} else if ((gameArea == 0) && (roomsLobby[roomCountLobby][2] != lobbyRoomName)) {
_local5 = true;
roomList = null;
joinRoomName = roomsLobby[roomCountLobby][2];
sendRoomDetailRequest(roomsLobby[roomCountLobby][2], "joinRoomQuickStart");
}
roomCountLobby++;
}
if (gameArea == 1) {
lobbySelectArena();
if (currentRoomName != lobbyRoomName) {
if (_local6) {
sendJoinRoom(lobbyRoomName);
} else {
sendCreateRoom("Z", 9, 0, lobbyRoomName);
}
}
} else if ((gameArea == 0) && (!_local5)) {
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 = (roundTimer = Number((roomDetail.substr(3, roomDetail.length - 3) - summaryTime) - adTime));
} else if (roomDetailAction == "lobbyJoinGame") {
joinRoomDetail = roomDetail;
sendGetRoomVariable(joinRoomName + ";mp", roomDetailAction);
} else if (roomDetailAction == "lobbyJoinGamePrivate") {
joinRoomDetail = roomDetail;
sendGetRoomVariable(joinRoomName + ";mp", roomDetailAction);
}
}
function recieveRoomVariable(vStr) {
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));
} else if (roomVariableAction == "lobbyJoinGame") {
roomVariableAction = null;
mapCycleList = vStr.substr(3, vStr.length - 3);
lobbyJoinGame(vStr.substr(3, 1), Number(joinRoomDetail.substr(1, 1)));
} else if (roomVariableAction == "lobbyJoinGamePrivate") {
roomVariableAction = null;
mapCycleList = vStr.substr(3, vStr.length - 3);
lobbyJoinGame(vStr.substr(3, 1), Number(joinRoomDetail.substr(1, 1)));
}
}
function recieveReportUser(userIP) {
if (gameArea == 2) {
if (reportAction == "displayIP") {
reportAction = null;
reportInputText.text = "IP Address:" + userIP;
} else {
var replyDataPHP = new LoadVars();
var _local1 = new LoadVars();
_local1.action = "report_player";
_local1.reporter_username = player.nom;
_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 == 1) {
if (reportAction == "displayIP") {
reportAction = null;
var _local3 = getLocalIDLobby(reportUserID);
addLobbyMsg(((".::SYSTEM: " + getColoredNameLobby(_local3)) + ": ") + userIP, ((".::SYSTEM: " + remotePlayersLobby[_local3][1]) + ": ") + userIP);
} else if (reportAction == "banIP") {
reportAction = null;
mcpLobbyMC.mcpBanIP(userIP);
}
}
}
function recieveServerNotFull(mgp) {
maxGamesPlayable = mgp;
if (connectAction == "quickStart") {
connectAction = null;
sendRoomListRequest();
} else if (connectAction == "lobby") {
connectAction = null;
enterLobby();
} else if (connectAction == "lobbyChangeServer") {
connectAction = null;
socket[serverNum].close();
serverNum = joinServerNum;
pressChangeServerClose();
lobbyChangeServer();
}
}
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 _local2 = 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 (_local2 != serverNum) {
connectToServer(serverNum, portNum);
} else {
connectAction = null;
gotoFrame = "titleFrame";
msgText = serversFullText;
gotoAndStop ("preReturnFrame");
}
} else if (connectAction == "lobbyChangeServer") {
socket[joinServerNum].close();
connectAction = null;
displayLobbyMessage(lobbyText[34], "window304ChangeServerMessageMC");
}
} else if (gameArea == 2) {
if (loggedIn) {
if (errorAction == null) {
returnToLobby(lobbyText[32]);
socket[serverNum].close();
connectAction = "lobby";
connectToServer(serverNum, portNum);
} else if (errorAction == "createGameFail") {
errorAction = null;
returnToLobby(lobbyText[32], "createGameFail");
socket[serverNum].close();
connectAction = "lobby";
connectToServer(serverNum, portNum);
}
} else {
titleAction = "quickStart";
returnToTitle();
}
}
}
function getRoomDisplayName(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 = charToNum(mapID);
sendJoinRoom(roomName);
startNextRound(true);
}
function createQuickStartRoom() {
if (serverType[serverNum] == "COMPATIBILITY") {
var _local1 = numToChar(random(mapListCompat.length));
} else {
var _local1 = numToChar(random(mapList.length));
}
mapCycleList = getMapCycleList(_local1, 1);
joinRoomAction = "sendMapCycleList";
sendCreateRoom(_local1, 2, 0, "!" + random(100000).toString());
startNextRound(true);
}
function getMapCycleList(map, cycleMode) {
var _local2 = "";
if (cycleMode == 0) {
var _local1 = "";
if (serverType[serverNum] == "COMPATIBILITY") {
var _local3 = 0;
while (_local3 < mapListCompat.length) {
_local1 = _local1 + numToChar(_local3);
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < mapList.length) {
_local1 = _local1 + numToChar(_local3);
_local3++;
}
}
sIndex = _local1.indexOf(map);
_local2 = _local1.substr(sIndex, _local1.length - sIndex) + _local1.substr(0, sIndex);
} else if (cycleMode == 1) {
var _local1 = "";
if (serverType[serverNum] == "COMPATIBILITY") {
var _local3 = 0;
while (_local3 < mapListCompat.length) {
_local1 = _local1 + numToChar(_local3);
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < mapList.length) {
_local1 = _local1 + numToChar(_local3);
_local3++;
}
}
if (serverType[serverNum] == "COMPATIBILITY") {
var _local3 = 0;
while (_local3 < mapListCompat.length) {
rand = random(_local1.length);
_local2 = _local2 + _local1.substr(rand, 1);
_local1 = _local1.substr(0, rand) + _local1.substr(rand + 1, (_local1.length - rand) - 1);
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < mapList.length) {
rand = random(_local1.length);
_local2 = _local2 + _local1.substr(rand, 1);
_local1 = _local1.substr(0, rand) + _local1.substr(rand + 1, (_local1.length - rand) - 1);
_local3++;
}
}
sIndex = _local2.indexOf(map);
_local2 = _local2.substr(sIndex, _local2.length - sIndex) + _local2.substr(0, sIndex);
} else if (cycleMode == 2) {
_local2 = map.concat(map);
}
return(_local2);
}
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") {
remotePlayerAttack(_local2, Number(trim(_local1.substr(0, 4))), Number(trim(_local1.substr(4, 4))), Number(trim(_local1.substr(8, 3))), Number(_local1.substr(11, 1)));
changePlayerWeapon(_local2, Number(_local1.substr(11, 1)));
} else if (_local4 == "6") {
remotePlayerDamage(_local2, Number(trim(_local1.substr(0, 2))), Number(_local1.substr(2, 1)), Number(trim(_local1.substr(3, 3))));
} else if (_local4 == "5") {
changePlayerWeapon(_local2, Number(_local1.substr(0, 1)));
remoteWeaponPickup(_local2, Number(_local1.substr(1, 1)));
} else if (_local4 == "7") {
remotePlayerDeath(_local2, _local1.substr(0, IDLEN), Number(_local1.substr(IDLEN, 1)), Number(trim(_local1.substr(IDLEN + 1, 3))));
} else if (_local4 == "8") {
remotePlayerSpawn(_local2, Number(trim(_local1.substr(0, 4))), Number(trim(_local1.substr(4, 4))));
} else if (_local4 == "9") {
remoteChatMsg(_local2, _local1);
} else if (_local4 == "2") {
var _local5 = new Array();
var _local3 = 0;
while (_local3 < currentArea.weaponSpawnPoints) {
_local5[_local3] = Number(trim(_local1.substr(35 + (_local3 * 5), 5)));
_local3++;
}
updateGameState(_local2, Number(_local1.substr(0, 1)), Number(trim(_local1.substr(1, 2))), Number(trim(_local1.substr(3, 2))), trim(_local1.substr(5, 20)), _local5, Number(trim(_local1.substr(25, 3))), Number(trim(_local1.substr(28, 3))), Number(trim(_local1.substr(31, 3))), charToNum(trim(_local1.substr(34, 1))));
} else if (_local4 == "K") {
remoteVoteKick(_local2, _local1.substr(0, IDLEN));
}
}
}
function socketCallsSummary() {
while (socketStack[0] != null) {
dataStr = socketStack.pop();
var _local5 = dataStr.substr(0, IDLEN);
var _local4 = dataStr.substr(IDLEN, 1);
var _local1 = dataStr.substr(IDLEN + 1, dataStr.length - (IDLEN + 1));
if (_local4 == "2") {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < currentArea.weaponSpawnPoints) {
_local3[_local2] = Number(trim(_local1.substr(35 + (_local2 * 5), 5)));
_local2++;
}
updateGameState(_local5, Number(_local1.substr(0, 1)), Number(trim(_local1.substr(1, 2))), Number(trim(_local1.substr(3, 2))), trim(_local1.substr(5, 20)), _local3, Number(trim(_local1.substr(25, 3))), Number(trim(_local1.substr(28, 3))), Number(trim(_local1.substr(31, 3))), charToNum(trim(_local1.substr(34, 1))));
}
}
}
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 == "2") {
if (_local1.length < 40) {
updatePlayerLobby(_local3, trim(_local1.substr(0, 20)), Number(trim(_local1.substr(20, 3))), Number(trim(_local1.substr(23, 3))), Number(trim(_local1.substr(26, 3))), Number(trim(_local1.substr(29, _local1.length - 29))));
}
} else if (_local2 == "P") {
remoteChatMsgLobby(_local3, _local1, true);
}
}
}
function getPosition(s, dt) {
var position = 1;
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("earthMC.player" + remotePlayers[i]) + "MC")) {
if ((kills > s) || ((kills == s) && (deaths < dt))) {
position++;
}
}
}
i++;
}
position = Math.min(position, playerCount);
return(position);
}
function animateDeath(mc, a, w, deg, kss, x, y) {
radAngle = (Math.PI/180) * (deg - 90);
maxDistance = deathAnims - 1;
var d = 0;
while (d < deathAnims) {
var xHit = int(x + (Math.cos(radAngle) * deathDistance[d]));
var yHit = int(y + (Math.sin(radAngle) * deathDistance[d]));
if (earthMC.c.hitTest(xHit, yHit, true)) {
maxDistance = Math.max(0, d - 1);
d = deathAnims;
}
d++;
}
with (eval (mc)) {
deathMC._visible = 1;
rnd = Math.max(random(2) + maxDistance, 1);
deathMC.gotoAndStop(rnd);
deathMC.dieMC.gotoAndPlay(1);
deathMC._rotation = deg;
if (kss > 0) {
soulHellMC._visible = 1;
soulHellMC.gotoAndPlay(1);
soulHellMC._rotation = deg + 180;
} else {
soulHeavenMC._visible = 1;
soulHeavenMC.gotoAndPlay(1);
soulHeavenMC._rotation = deg + 180;
}
torsoMC._visible = 0;
legsMC._visible = 0;
colorMC._visible = 0;
adjustAndPlaySound(SFXdeath[rnd - 1][textMC.localIdText.text], x - charMC._x, y - charMC._y);
}
}
function attachParticles(tf, w, x, y, r) {
if (tf) {
particleCount++;
if (particleCount > maxParticles) {
particleCount = 0;
}
earthMC.attachMovie(w + "ParticleMC", "particle" + particleCount, 10000 + particleCount);
with (eval ("earthMC.particle" + particleCount)) {
_x = x;
_y = y;
_rotation = r;
}
}
}
function calcMove(dir, walk, movement, xVel, yVel, w) {
startTime = getTimer();
if (movement) {
var _local5 = dir.substr(0, 1);
var _local6 = dir.substr(1, 1);
if ((_local5 != "0") && (_local6 != "0")) {
var _local3 = Math.min((Math.sqrt(Math.pow(player.acc * weapons[w].walkingSpeed, 2) * 2) * 0.00376) * frameDeltaTime, player.acc * 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.acc * weapons[w].walkingSpeed) * frameDeltaTime) / 133, player.acc * 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.walkMultiplier;
yVel = yVel * player.walkMultiplier;
}
}
xVel = xVel * friction;
yVel = yVel * friction;
functionTimers[0] = functionTimers[0] + (getTimer() - startTime);
return(new Array(xVel, yVel));
}
function calcCol(x, y, xVel, yVel) {
startTime = getTimer();
if (xVel > 0) {
if (earthMC.c.hitTest((x + xVel) + 6, y + 6, true) || (earthMC.c.hitTest((x + xVel) + 6, y - 6, true))) {
xVel = xVel * (-player.elasticity);
}
} else if (xVel < 0) {
if (earthMC.c.hitTest((x + xVel) - 6, y + 6, true) || (earthMC.c.hitTest((x + xVel) - 6, y - 6, true))) {
xVel = xVel * (-player.elasticity);
}
}
if (yVel > 0) {
if (earthMC.c.hitTest(x + 6, (y + yVel) + 6, true) || (earthMC.c.hitTest(x - 6, (y + yVel) + 6, true))) {
yVel = yVel * (-player.elasticity);
}
} else if (yVel < 0) {
if (earthMC.c.hitTest(x + 6, ((y + yVel) - 6) - 1, true) || (earthMC.c.hitTest(x - 6, ((y + yVel) - 6) - 1, true))) {
yVel = yVel * (-player.elasticity);
}
}
functionTimers[1] = functionTimers[1] + (getTimer() - startTime);
return(new Array(xVel, yVel));
}
function calcMove2(xVel, yVel, mod, movement) {
startTime = getTimer();
if (Math.abs(xVel) < 0.2) {
xVel = 0;
}
if (Math.abs(yVel) < 0.2) {
yVel = 0;
}
vel = Math.sqrt(Math.pow(xVel, 2) + Math.pow(yVel, 2));
if (vel < 0.8) {
mod = "stand";
} else if (movement) {
mod = "walk";
}
functionTimers[2] = functionTimers[2] + (getTimer() - startTime);
return(new Array(xVel, yVel, vel, mod));
}
function animatePlayer(mc, mod, walk, attackAnimationDone, w, f, vel, facing, inv) {
startTime = getTimer();
if (mod == "walk") {
if (walk) {
if (attackAnimationDone) {
with (eval (mc)) {
torsoMC.gotoAndStop(weapons[w].idleAnim + "Idle");
}
}
if (vel > 1.5) {
f = f + (vel / 3.5);
if (int(f) > 40) {
f = f - 40;
}
with (eval (mc)) {
legsMC.gotoAndStop("walk");
legsMC.legs.gotoAndStop(int(f));
}
}
} else {
if (attackAnimationDone) {
with (eval (mc)) {
torsoMC.gotoAndStop(weapons[w].runAnim + "Idle");
}
}
if (vel > player.acc) {
f = f + (vel / 9);
if (int(f) > 18) {
f = f - 18;
}
with (eval (mc)) {
legsMC.gotoAndStop("run");
legsMC.legs.gotoAndStop(int(f));
}
}
}
} else if (mod == "stand") {
if (attackAnimationDone) {
with (eval (mc)) {
torsoMC.gotoAndStop(weapons[w].idleAnim + "Idle");
}
}
with (eval (mc)) {
legsMC.gotoAndStop("idle");
}
f = 6;
}
var newRot = smoothRot(eval (mc).legsMC._rotation, getTargetRotation(facing), player.rotVel);
with (eval (mc)) {
legsMC._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;
}
}
}
functionTimers[3] = functionTimers[3] + (getTimer() - startTime);
return(f);
}
function remotePlayerDamage(a, d, w, deg) {
var lId = null;
var i = 0;
while (i < maxNumPlayers) {
if (new String(remotePlayers[i]) eq new String(a)) {
lId = i;
i = maxNumPlayers;
}
i++;
}
if ((a != 0) && (a != player.id)) {
x = eval (("earthMC.player" + a) + "MC")._x + earthMC._x;
y = eval (("earthMC.player" + a) + "MC")._y + earthMC._y;
with (eval (("earthMC.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 - charMC._x, y - charMC._y);
}
}
}
function calculateFrameRate() {
curFrameTime = getTimer();
frameDeltaTime = curFrameTime - lastFrameTime;
lastFrameTime = curFrameTime;
frameRate = (int(10000 / frameDeltaTime) / 10) * 4;
avgDeltaTime = 0;
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
avgDeltaTime = avgDeltaTime + eval (("earthMC.player" + remotePlayers[i]) + "MC").remoteAvgPing;
if (eval (("earthMC.player" + remotePlayers[i]) + "MC").textMC._visible == 1) {
eval (("earthMC.player" + remotePlayers[i]) + "MC").textMC.pingText.text = eval (("earthMC.player" + remotePlayers[i]) + "MC").remoteAvgPing;
}
}
i++;
}
avgDeltaTime = int(avgDeltaTime / playerCount);
if (sysInfoMC._visible) {
sysInfoMC.fpsText.text = int(frameRate) + " FPS";
sysInfoMC.pingText.text = "Ping: " + eval (("earthMC.player" + remotePlayers[0]) + "MC").remoteAvgPing;
sysInfoMC.pingGameText.text = "/ " + avgDeltaTime;
if (serverType[serverNum] == "COMPATIBILITY") {
sysInfoMC.compatText.text = compatModeText;
}
}
}
function updateWeaponSpawns() {
startTime = getTimer();
var i = 0;
while (i < currentArea.weaponSpawnPoints) {
if (currentArea.weaponSpawn[i].timer > 0) {
currentArea.weaponSpawn[i].timer = Math.max(0, int(currentArea.weaponSpawn[i].timer - frameDeltaTime));
} else if (eval (("earthMC.pickup" + i) + "MC").hitTest(charMC._x, charMC._y, true) && (player.mod != "dead")) {
w = currentArea.weaponSpawn[i].weapon;
if (w != player.weapon) {
player.pickUpWeapon(currentArea.weaponSpawn[i].weapon, i);
eval (("earthMC.pickup" + i) + "MC").removeMovieClip();
currentArea.weaponSpawn[i].timer = currentArea.weaponSpawn[i].delay;
adjustAndPlaySound(eval (("SFX" + weapons[currentArea.weaponSpawn[i].weapon].attackAnim) + "Pickup"), 0, 0);
}
} else if ((currentArea.weaponSpawn[i].timer <= 0) && (eval (("earthMC.pickup" + i) + "MC") == null)) {
spawnWeapon(i, currentArea.weaponSpawn[i].weapon, currentArea.weaponSpawn[i].x, currentArea.weaponSpawn[i].y);
}
i++;
}
functionTimers[11] = functionTimers[11] + (getTimer() - startTime);
}
function spawnWeapon(n, w, x, y) {
earthMC.attachMovie(("pickup" + weapons[w].attackAnim) + "MC", ("pickup" + n) + "MC", n + 2000);
with (eval (("earthMC.pickup" + n) + "MC")) {
_x = x;
_y = y;
}
}
function animateWeaponPickups() {
wave = wave + 0.1;
if (wave > (Math.PI*2)) {
wave = 0;
}
var y = ((Math.sin(wave) * 4) - 12);
var scale = (110 + (Math.sin(wave + Math.PI) * 3.5));
var alpha = (23 + (Math.sin(wave) * 6));
var n = 0;
while (n < currentArea.weaponSpawnPoints) {
if (currentArea.weaponSpawn[n].timer <= 0) {
if (eval (("earthMC.pickup" + n) + "MC") == null) {
}
if ((Math.abs((eval (("earthMC.pickup" + n) + "MC")._x + earthMC._x) - 275) < 325) && (Math.abs((eval (("earthMC.pickup" + n) + "MC")._y + earthMC._y) - 200) < 250)) {
with (eval (("earthMC.pickup" + n) + "MC")) {
_visible = 1;
weaponMC._rotation = shadowMC._rotation++;
weaponMC._y = y;
shadowMC._xscale = (shadowMC._yscale = scale);
shadowMC._alpha = alpha;
}
} else {
with (eval (("earthMC.pickup" + n) + "MC")) {
_visible = 0;
}
}
}
n++;
}
}
function unloadArea() {
var _local2 = 0;
while (_local2 < areaHeight) {
var _local1 = 0;
while (_local1 < areaWidth) {
earth[_local1][_local2][0] = (earth[_local1][_local2][1] = (earth[_local1][_local2][2] = (earth[_local1][_local2][3] = null)));
_local1++;
}
_local2++;
}
}
function loadArea(fName, initial) {
unloadArea();
currentArea.fileName = fName;
earthWidth = (areaWidth = 35);
earthHeight = (areaHeight = 24);
generateEarth();
currentArea.nom = "XGen HQ ";
currentArea.roundTime = undefined;
currentArea.tileSet = 0;
var _local2 = 0;
while (_local2 < areaHeight) {
var _local1 = 0;
while (_local1 < areaWidth) {
earth[_local1][_local2][0] = mapXGenHQ[_local1][_local2][0];
earth[_local1][_local2][1] = mapXGenHQ[_local1][_local2][1];
earth[_local1][_local2][2] = mapXGenHQ[_local1][_local2][2];
earth[_local1][_local2][3] = mapXGenHQ[_local1][_local2][3];
_local1++;
}
_local2++;
}
currentArea.playerSpawnPoints = 8;
var _local4 = 0;
while (_local4 < 8) {
mapXGenHQPlayerSpawns[0][0];
currentArea.spawnPoint[_local4].x = mapXGenHQPlayerSpawns[_local4][0];
currentArea.spawnPoint[_local4].y = mapXGenHQPlayerSpawns[_local4][1];
currentArea.playerSpawnPoints = 6;
_local4++;
}
currentArea.weaponSpawnPoints = 8;
var _local3 = 0;
while (_local3 < 8) {
currentArea.weaponSpawn[_local3].x = mapXGenHQWeaponSpawns[_local3][0];
currentArea.weaponSpawn[_local3].y = mapXGenHQWeaponSpawns[_local3][1];
currentArea.weaponSpawn[_local3].weapon = mapXGenHQWeaponSpawns[_local3][2];
currentArea.weaponSpawn[_local3].delay = mapXGenHQWeaponSpawns[_local3][3] * 1000;
currentArea.weaponSpawn[_local3].timer = 3000;
currentArea.weaponSpawn[_local3].recievedRemoteTimer = false;
_local3++;
}
earthMinX = (-(areaWidth - 11.5)) * 50;
earthMinY = (-(areaHeight - 8.5)) * 50;
eX = (eY = 0);
earthMCX = (earthMCY = 0);
leftCol = (topRow = (oldLeftCol = (oldTopRow = 0)));
if (initial) {
createEarth();
}
reloadEarth();
var _local5 = 0;
while (_local5 < 100) {
updateEarth();
_local5++;
}
player.spawn();
addHUDMsg((((((getColoredName(a) + HUDText[2]) + "'") + getRoomDisplayName(currentRoomName)) + "' ") + "- ") + currentArea.nom, (((((getName(a) + HUDText[2]) + "'") + getRoomDisplayName(currentRoomName)) + "' ") + "- ") + currentArea.nom, 10000);
if (playerCount != 0) {
wipeMC.gotoAndPlay(1);
}
}
function updateHUD() {
player.rackUpScore();
if (keyIsDownMulti("B") && (gameMode == 0)) {
if (leadMC == null) {
displayLeaderBoard();
}
updateLeaderBoard();
} else if (leadMC != null) {
leadMC.removeMovieClip();
}
updateHUDMsg();
}
function updateHUDDead() {
player.rackUpScore();
if ((keyIsDownMulti("B") && (gameMode == 0)) || ((player.spawnTimer <= (player.spawnTime - 60)) && (!userHidLeaderBoard))) {
if (leadMC == null) {
displayLeaderBoard();
displayBannerAd();
}
updateLeaderBoard();
} else if (leadMC != null) {
leadMC.removeMovieClip();
}
updateHUDMsg();
}
function displayBannerAd() {
if (bannerAdMC == null) {
_root.attachMovie("bannerAdMC", "bannerAdMC", 234567);
bannerAdMC._x = 60;
bannerAdMC._y = 200;
}
}
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(roundTimer)))));
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 (("earthMC.player" + remotePlayers[i]) + "MC")) {
p[n] = getPosition(kills, deaths);
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 ((!voteKickActive) || ((pp[n] == voteKickID) && (!voteKickVoted))) {
if ((voteKickInitiateTime - roundTimer) >= (voteKickDisabledTime / 1000)) {
with (eval (("leadMC.BTNvoteKick" + (n + 1)) + "MC")) {
_visible = 1;
textBoxMC.textBox.text = n;
}
}
}
var iconMC = (("rank" + eval (("earthMC.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;
gotoAndStop(3);
}
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 (("earthMC.player" + pp[n]) + "MC")) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
htm = htm + (kills + "<br>");
if (pp[n] == player.id) {
htm = htm + "</FONT>";
}
str = str + (kills + "\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 (("earthMC.player" + pp[n]) + "MC")) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
htm = htm + (deaths + "<br>");
if (pp[n] == player.id) {
htm = htm + "</FONT>";
}
str = str + (deaths + "\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";
HUDMsg.push(new Array(h, t));
if (HUDMsg.length > maxLobbyMsgs) {
var _local1 = 0;
while (_local1 < HUDMsg.length) {
HUDMsg[_local1] = HUDMsg[_local1 + 1];
_local1++;
}
HUDMsg.pop();
}
lobbyMsgs.htmlText = "";
lobbyMsgs0.text = "";
var _local1 = 0;
while (_local1 < HUDMsg.length) {
lobbyMsgs.htmlText = lobbyMsgs.htmlText + HUDMsg[_local1][0];
lobbyMsgs0.text = lobbyMsgs0.text + HUDMsg[_local1][1];
_local1++;
}
lobbyMsgs.scroll = (lobbyMsgs0.scroll = lobbyMsgs.maxscroll);
}
function displaySummaryScoresAnims() {
if ((Number(eval (("earthMC.player" + player.id) + "MC").rank) != getRank(player.pKills)) && (eval (("earthMC.player" + player.id) + "MC").recievedGameState)) {
with (eval (("earthMC.player" + player.id) + "MC")) {
rank = getRank(player.pKills);
}
_root.attachMovie("rankGainMC", "rankGainMC", 200030);
rankGainMC._x = 300;
rankGainMC._y = 100;
var iconMC = getRankIconName(player.pKills);
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.pKills)) - 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 (("earthMC.player" + remotePlayers[i]) + "MC")) {
p[n] = getPosition(kills, deaths);
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 (("earthMC.player" + pp[n]) + "MC")) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
htm = htm + (kills + "<br>");
if (pp[n] == player.id) {
htm = htm + "</FONT>";
}
str = str + (kills + "\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 (("earthMC.player" + pp[n]) + "MC")) {
if (pp[n] == player.id) {
htm = htm + "<FONT COLOR=\"#FFFF00\">";
}
htm = htm + (deaths + "<br>");
if (pp[n] == player.id) {
htm = htm + "</FONT>";
}
str = str + (deaths + "\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 * 2));
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 * 2));
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);
}
}
} else {
if (p[n] == p.length) {
_root.attachMovie("summaryCharLose1MC", "charAnim" + n, 110000 - (n * 2));
} else {
_root.attachMovie("summaryCharLose0MC", "charAnim" + n, 110000 - (n * 2));
}
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 * 2));
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;
}
}
n++;
}
}
function endRound() {
logMileStone("completedRound_" + (clientRoundsStarted - 1));
submitData = new Array();
submitData[0] = player.getScore();
submitData[1] = player.getDeaths();
submitData[2] = player.pRoundsStarted;
if (getPosition(player.getScore(), player.getDeaths()) == 1) {
submitData[3] = "1";
} else {
submitData[3] = "";
}
player.pKills = player.pKills + player.getScore();
_root.attachMovie("summaryBoardMC", "sumMC", 200002);
sumMC._x = 0;
sumMC._y = -17;
_root.attachMovie("summaryTimerMC", "summaryTimerMC", 200004);
summaryTimerMC._x = 405;
summaryTimerMC._y = 193;
clearGameGarbage();
displaySummaryScoresAnims();
keepAliveIntervalID = setInterval(sendKeepAlive, keepAliveTime);
summaryStartTime = getTimer();
adCalled = false;
gotoAndStop ("roundSummaryFrame");
}
function submitRoundStats() {
if (loggedIn) {
var replyDataPHP = new LoadVars();
var _local2 = new LoadVars();
_local2.action = "round_stats";
_local2.username = uName;
_local2.userpass = uPass;
var _local4 = (((((("KILLS=" + submitData[0]) + "&DEATHS=") + submitData[1]) + "&ROUNDSPLAYED=") + submitData[2]) + "&WINNER=") + submitData[3];
var _local5 = "8fJ3Ki8Fy6rX1l0J";
var _local3 = com.meychi.ascrypt.RC4.encrypt(_local4, _local5);
_local2.stats = _local3;
_local2.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
}
}
};
}
}
function startNextRound(firstRound) {
logMileStone("startedRound_" + clientRoundsStarted);
clientRoundsStarted++;
savePreferences();
gameArea = 2;
roundActive = true;
wipeMC.gotoAndStop(1);
stopAllSounds();
Key.addListener(gameKeyListener);
Key.addListener(enterAreaListener);
if (!firstRound) {
var _local1 = mapCycleList;
mapCycleList = _local1.substr(1, _local1.length - 1).concat(_local1.substr(0, 1));
mapNum = charToNum(mapCycleList.substr(0, 1));
sendSetRoomVariable("mp=" + mapCycleList);
}
roundTimer = (roundTime + summaryTime) + adTime;
lastRoundTimerUpdate = 1000;
sendRoomDetailRequest(currentRoomName, "updateRoundTime");
if (serverType[serverNum] == "COMPATIBILITY") {
currentArea.fileName = mapListCompat[mapNum];
} else {
currentArea.fileName = mapList[mapNum];
}
initializeRoundVariables();
gameMode = 0;
cursorCrossHair();
gotoAndStop ("preMain");
}
function cursorCrossHair() {
_root.attachMovie("cursorMC", "cursorMC", 987654321);
startDrag ("cursorMC", true);
cursorMC.onMouseMove = function () {
updateAfterEvent();
};
if (serverType[serverNum] != "COMPATIBILITY") {
Mouse.hide();
} else {
cursorMC._alpha = 50;
}
}
function cursorNormal() {
stopDrag();
Mouse.show();
cursorMC.removeMovieClip();
cursorMC.unloadMovie();
}
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() {
gameMode = 99;
lastGameMode = 0;
lastSendTime = 0;
avgDeltaTime = 100;
sendImmediate = false;
lastFrameTime = getTimer();
curFrameTime = 0;
frameDeltaTime = 133;
frameRate = 30;
chatting = false;
voteKickActive = false;
voteKickVoted = false;
voteKickID = null;
voteKickVoteCount = 0;
voteKickStartTime = null;
voteKickInitiateTime = 10000;
wipe = true;
sendCount = (clickCount = (frameCount = (warnFPSCount = (warnPingCount = 0))));
displayControlHelp = true;
noInputTime = 0;
HUDMsg = new Array();
socketStack = new Array();
clearInterval(keepAliveIntervalID);
oneSecondIntervalID = setInterval(oneSecondTick, 1000);
roundTimerIntervalID = setInterval(updateRoundTimer, 1000);
clickIntervalID = setInterval(checkClicks, 1111);
enterAreaIntervalID = setInterval(enterAreaDelayed, controlHelpDelay);
if (enforcePerformance) {
performanceIntervalID = setInterval(checkPerformance, performanceInterval);
}
lastMessageRecieved = getTimer();
var i = 0;
while (i < maxNumPlayers) {
if (remotePlayers[i] != 0) {
with (eval (("earthMC.player" + remotePlayers[i]) + "MC")) {
lastUpdate = getTimer();
facing = "20";
walk = false;
movementKeysDown = false;
mod = "spawn";
invulnerable = false;
xVel = 0;
yVel = 0;
vel = 0;
kills = 0;
killsSinceSpawn = 0;
deaths = 0;
recievedGameState = false;
frame = 1;
attackAnimationDone = true;
weapon = 0;
newData = false;
newXML = null;
newDataStr = false;
newSocket = "";
syncedFrame = false;
remoteAvgPing = 100;
resetDeltaTimes();
animateSpawn();
}
}
i++;
}
player.hp = (player.maxHp = 60);
player.displayedScore = -1;
player.score = 11;
player.score2 = player.score - 88;
player.deaths = 17;
player.deaths2 = player.deaths - 77;
player.killsSinceSpawn = (player.lastChatSend = 0);
player.walk = false;
player.movementKeysDown = (player.attackButtonDown = (player.attackKeyDown = (player.hitSinceAttack = false)));
player.attackButtonReleased = (player.attackKeyReleased = (player.attackAnimationDone = true));
player.vel = (player.xVel = (player.yVel = (player.xAcc = (player.yAcc = (player.accTmp = (player.maxVelTmp = (player.avgRotVel = (player.attackTimer = (player.weapon = 0)))))))));
player.facing = (player.lastFacing = "20");
player.mod = "dead";
player.frame = 1;
player.spawnTime = (player.spawnTimer = 225);
player.invulnerableTime = (player.invulnerableTimer = 100);
player.invulnerable = true;
if (serverType[serverNum] == "COMPATIBILITY") {
optionQuality = 0;
optionBlood = 0;
player.reloadModifier = reloadModifierCompat;
player.acc = playerAccCompat;
player.maxVel = playerMaxVelCompat;
maxPing = maxPingCompat;
minFPS = minFPSCompat;
serverTimeout = serverTimeoutCompat;
scrollSpeed = scrollSpeedCompat;
sendIntervalID = setInterval(sendFunction, minSendTimeCompat);
} else {
player.reloadModifier = 1;
player.acc = playerAcc;
player.maxVel = playerMaxVel;
maxPing = maxPingStandard;
minFPS = minFPSStandard;
serverTimeout = serverTimeoutStandard;
scrollSpeed = scrollSpeedStandard;
sendIntervalID = setInterval(sendFunction, minSendTime);
}
}
function returnToTitle(str) {
socket[serverNum].close();
loggedIn = false;
if (gameArea == 1) {
clearLobbyGarbage();
} else if (gameArea == 2) {
clearGameGarbage();
clearInterval(roundTimerIntervalID);
}
if (str == null) {
gotoAndStop ("titleFrame");
} else {
gotoFrame = "titleFrame";
msgText = str;
gotoAndStop ("preReturnFrame");
}
}
function returnToLobby(str, gtFrame) {
clearGameGarbage();
clearInterval(roundTimerIntervalID);
if (str == null) {
enterLobby();
} else if (gtFrame == null) {
gotoFrame = "lobbyFrame";
msgText = str;
gotoAndStop ("preReturnFrame");
} else {
gotoFrame = gtFrame;
msgText = str;
gotoAndStop ("preReturnFrame");
}
}
function clearGameGarbage() {
setGameMode(99);
roundActive = false;
stopAllSounds();
unloadArea();
clearInterval(sendIntervalID);
clearInterval(clickIntervalID);
clearInterval(oneSecondIntervalID);
clearInterval(performanceIntervalID);
clearInterval(enterAreaIntervalID);
clearInterval(noRemotePlayersIntervalID);
Key.removeListener(gameKeyListener);
Key.removeListener(enterAreaListener);
windowMC.removeMovieClip();
leadMC.removeMovieClip();
charMC.damageFX.removeMovieClip();
charMC.shakeFX.removeMovieClip();
charMC.deathFX.removeMovieClip();
charMC.localDamageFX.removeMovieClip();
charMC.attachMovie("spawnFX", "spawnFX", 1203);
_root.attachMovie("resetFX", "resetFX", 200010);
var w = 0;
while (w < 8) {
if (eval (("earthMC.pickup" + w) + "MC") != null) {
eval (("earthMC.pickup" + w) + "MC").removeMovieClip();
}
w++;
}
cursorNormal();
}
function enterLobby() {
gameArea = 1;
SFXSATheme.stop();
loggedIn = true;
HUDMsg = new Array();
var _local2 = getRainbowHtml(adminMsgText);
var _local1 = "#EFEFFF";
addLobbyMsg(_local2 + colorHtml(adminMsgText.substr(33, adminMsgText.length - 10), _local1), adminMsgText);
Key.addListener(lobbyKeyListener);
keepAliveIntervalID = setInterval(sendKeepAlive, keepAliveTime);
gotoAndStop ("lobbyFrame");
lobbyChangeServer();
}
function lobbyChangeServer() {
currentRoomName = null;
noInputTime = 0;
remotePlayersLobby = new Array();
socketStack = new Array();
arenaBox.removeAll();
userBox.removeAll();
chatPrivateBtnLobbyMC._visible = 0;
BTNJoinGameMC._visible = 0;
sendRoomListRequest();
SFXLobby.start();
}
function lobbyLogout() {
returnToTitle();
}
function clearLobbyGarbage() {
Key.removeListener(lobbyKeyListener);
clearInterval(refreshRoomsIntervalID);
clearInterval(lobbyOneSecondIntervalID);
clearInterval(joinPrivateTimeoutIntervalID);
clearInterval(keepAliveIntervalID);
}
function lobbyChatKeyPressed(privateMessage) {
if ((getTimer() - player.lastChatSend) > minChatSendTime) {
if (((chatMC.chatText0.text.length > 1) && (containsNonSpaceChar(chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1)))) && (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) != lastChatMsg)) {
player.lastChatSend = getTimer();
lastChatMsg = chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1);
logMileStone("playerSentChat");
if (privateMessage) {
var _local2 = getIDLobby(userBox.getItemAt(userBox.selectedIndex).label);
if (_local2 != player.id) {
player.sendChatMsgPrivate(lastChatMsg, _local2);
}
var _local1 = lastChatMsg;
if (optionLanguageFilter) {
_local1 = filterLanguage(_local1);
}
var _local3 = getLocalIDLobby(_local2);
addLobbyMsg((((lobbyText[20] + getColoredNameLobby(_local3)) + lobbyText[21]) + ": ") + _local1, (((lobbyText[20] + remotePlayersLobby[_local3][1]) + lobbyText[21]) + ": ") + _local1);
} else {
player.sendChatMsg(lastChatMsg);
}
chatMC.chatText0.text = (chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = "_"))));
SFXBTNchat.start();
} else {
chatMC.chatText0.text = (chatMC.chatText1.text = (chatMC.chatText2.text = (chatMC.chatText3.text = (chatMC.chatText4.text = "_"))));
}
} else {
SFXBTNerror.start();
}
}
function keyIsDownMulti(k) {
if ((Key.isDown(eval ("k" + k)[0]) || (Key.isDown(eval ("k" + k)[1]))) || (Key.isDown(eval ("k" + k)[2]))) {
return(true);
}
return(false);
}
function connectToServer(n, p) {
var _local3 = (("xmlsocket://" + serverURL[n]) + ":") + connectPort[p];
System.security.loadPolicyFile("xmlsocket://salite.xgenstudios.com:1138");
socket[n].connect(serverURL[n], connectPort[p]);
}
function sendCheckServerCapacity(n) {
socket[n].send("08");
}
function sendKeepAlive() {
lastSendTime = getTimer();
socket[serverNum].send("0");
}
var languageFilterDictionary = new Array();
var earth;
var earthWidth;
var earthHeight;
var earthMinX;
var earthMinY;
var earthMaxX = 25;
var earthMaxY = 25;
var eX;
var eY;
var earthMCX;
var earthMCY;
var leftCol;
var topRow;
var oldLeftCol;
var oldTopRow;
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 currentRoomName;
var roomCycleMode;
var roomDetailAction;
var roomVariableAction;
var numWeapons;
var weapons = new Array();
var BGMVolume = 70;
var SFXVolume = 100;
var globalVolume = 120;
var FPV8 = true;
var runLocal = true;
var mClient = false;
var gameVersionNum = 330;
var verifyVersion = false;
if (runLocal) {
var phpURL = "http://www.xgenstudios.com/stickarena/stick_arena.php";
} else {
var phpURL = "stick_arena.php";
}
if (FPV8) {
var gameVersion = (("1." + gameVersionNum) + " LT (FP 8)");
} else {
var gameVersion = (("1." + gameVersionNum) + " LT (FP 7)");
}
var versionLoaded = true;
var settingsLoaded = true;
var languageLoaded = true;
stop();
_quality = "BEST";
_focusrect = false;
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Stage.scaleMode = "noScale";
var noMenu = new ContextMenu();
noMenu.hideBuiltInItems();
noMenu.onSelect = menuHandler;
_root.menu = noMenu;
attachBorder();
var maxGamesPlayable = 0;
var clientRoundsStarted;
var skipIntro = false;
var autoQuickStart = false;
var uName = "";
var uPass = "";
var loggedIn = false;
var loadedGame = false;
var loadGameArray = new Array();
var showLoad = false;
var isCurrentVersion = true;
var linkNameArray = new Array("Interstitial", "LoadScreen", "LowerRight", "ServerFull", "TitleScreenNag", "RespawnTower", "TitleCopyright", "RedirectMsg");
var postLogURL;
logMileStone("startedLoadingSWF_" + gameVersionNum);
var IDLEN = 3;
var serverNum = 0;
var serverName = new Array();
var serverPort = new Array();
var serverType = new Array();
var serverPing = new Array();
var serverConnectTrys = new Array();
var lastSuccessfulPortNum = 0;
var connectionAvailable = false;
var portNum = 0;
var pingServerNum;
var pingTestComplete = true;
var serverConnectAttempt = new Array();
var joinServerNum = 0;
var numClients = Number;
var joinRoomName;
var joinRoomDetail;
var mapList = new Array();
var mapListCompat = new Array();
var mapNum = -1;
var mapCycleList;
var createGameMapRandomize;
var roundTimer;
var lastRoundTimerUpdate;
var roundActive;
var lastMessageRecieved;
var collisionCheckGhost;
var maxNumPlayers;
var maxNumPlayersLobby;
var maxMsgLength;
var maxMsgLengthLobby;
var maxLobbyMsgs;
var maxArenaName;
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 summaryTime;
var summaryStartTime;
var adTime;
var adCalled;
var tutorialDelay;
var tutorialTimer;
var minSendTime;
var minSendTimeCompat;
var keepAliveTime;
var pingAvgPeriod;
var remoteSmoothing;
var remoteRotSmoothing;
var ghostAlpha = 0;
var minChatSendTime;
var warnClicks;
var warnClickDisplayTime;
var voteKickDisplayTime;
var voteKickDisabledTime;
var displayPlayerIDs;
var timeNotify = new Array();
var rankKills = new Array();
var submitData = new Array();
var depthCount = 10000;
var particleCount = 0;
var maxParticles = 12;
var wave = 0;
var msgText;
var gotoFrame;
var cheating = false;
var voteKickActive;
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 playerAcc;
var playerMaxVel;
var playerAccCompat;
var playerMaxVelCompat;
var friction = 0.65;
var gameArea;
var gameMode;
var lastGameMode;
var titleAction;
var connectAction;
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 wipe;
var chatting;
var lastChatMsg;
var lastChatSenderID;
var lastChatMsgReceived = 0;
var mainCount;
var sendCount;
var clickCount;
var frameCount;
var displayControlHelp;
var warnFPSCount;
var warnPingCount;
var sendIntervalID;
var roundTimerIntervalID;
var clickIntervalID;
var performanceIntervalID;
var enterAreaIntervalID;
var oneSecondIntervalID;
var keepAliveIntervalID;
var refreshRoomsIntervalID;
var lobbyOneSecondIntervalID;
var noRemotePlayersIntervalID;
var joinPrivateTimeoutIntervalID;
var pingTimeoutIntervalID;
var pingTestTimeoutIntervalID;
var userHidLeaderBoard;
var optionQuality;
var optionBlood;
var optionLanguageFilter;
var optionUseBitmapCaching;
var deathDistance = new Array(32, 40, 75, 90, 105, 140, 180);
var deathAnims = 7;
var adminMsgText;
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 noConnectionText;
var pingingText;
var compatModeText;
var compatServerText;
var inactiveText;
var voteKickText = new Array();
var leadText = new Array();
var optText = new Array();
var reportText = new Array();
var summaryText = new Array();
var HUDText = new Array();
var lobbyText = new Array();
var accountText = new Array();
var logInText = new Array();
var posText = new Array();
var defaultFirstNames = new Array();
var defaultLastNames = new Array();
var player = new stick();
var currentArea = new area();
initializeWeapons();
initializeWeaponsBallistick();
var functionTimers = new Array(50);
var i = 0;
while (i < 50) {
functionTimers[i] = 0;
i++;
}
SFXBTNerror.start();
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 (isLegalChar(pressedKey) && (windowMC == null)) {
if (chatMC.chatText0.text.length < maxMsgLengthLobby) {
chatMC.chatText0.text = (chatMC.chatText0.text.substr(0, chatMC.chatText0.text.length - 1) + String.fromCharCode(pressedKey)) + "_";
} else {
SFXBTNerror.start();
}
} else if ((isLegalChar(pressedKey) && (windowMC != null)) && (windowMC.arenaNameMC._visible)) {
if (windowMC.arenaNameMC.chatText0.text.length < maxArenaName) {
windowMC.arenaNameMC.chatText0.text = (windowMC.arenaNameMC.chatText0.text.substr(0, windowMC.arenaNameMC.chatText0.text.length - 1) + String.fromCharCode(pressedKey)) + "_";
} 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();
}
};
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 (isLegalChar(pressedKey)) {
if (chatMC.chatText0.text.length < maxMsgLength) {
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.spawnTimer <= 90)) && (!userHidLeaderBoard)) {
userHidLeaderBoard = true;
}
};
enterAreaListener = new Object();
enterAreaListener.onKeyDown = function () {
logMileStone("playerMoved");
enterAreaDelayed(true);
};
XMLSocket.prototype.onData = function (src) {
lastMessageRecieved = getTimer();
var dataStr = new String(src);
var firstChar = new String(dataStr.substr(0, 1));
var idStr = new String(dataStr.substr(1, IDLEN));
var msgStr = new String(dataStr.substr(IDLEN + 1, dataStr.length - (IDLEN + 1)));
if (firstChar == "M") {
if (msgStr.substr(0, 1) == "1") {
with (eval (("earthMC.player" + idStr) + "MC")) {
newDataStr = true;
newSocket = idStr.concat(msgStr.substr(1, msgStr.length - 1));
}
} else {
socketStack.push(dataStr.substr(1, dataStr.length - 1));
}
} else if (firstChar == "C") {
errorAction = null;
if (gameArea == 2) {
addPlayer(idStr);
} else if (gameArea == 1) {
addPlayerLobby(idStr);
}
} else if (firstChar == "D") {
if (gameArea == 2) {
removePlayer(idStr);
} else if (gameArea == 1) {
removePlayerLobby(idStr);
}
} else if (dataStr.substr(0, 2) == "01") {
recieveRoomList(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "04") {
recieveRoomDetail(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "05") {
recieveRoomDetail(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "06") {
recieveRoomVariable(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "07") {
recieveReportUser(dataStr.substr(2, dataStr.length - 2));
} else if (dataStr.substr(0, 2) == "08") {
recieveServerNotFull(int(dataStr.substr(2, 1)));
} else if (dataStr.substr(0, 2) == "09") {
recieveError(dataStr.substr(2, dataStr.length - 2));
}
};
stick.prototype.sendGameState = function () {
var _local11 = this.weapon;
var _local9 = Math.min(this.getScore(), 99);
var _local4 = Math.min(this.getDeaths(), 99);
var _local8 = this.nom;
var _local7 = this.col.rb;
var _local10 = this.col.gb;
var _local6 = this.col.bb;
var _local5 = numToChar(getRank(this.pKills));
var _local3 = "";
var _local2 = 0;
while (_local2 < currentArea.weaponSpawnPoints) {
_local3 = _local3 + pad(Math.min(int(currentArea.weaponSpawn[_local2].timer), 99999), 5);
_local2++;
}
socket[serverNum].send((((((((("2" + pad(_local11, 1)) + pad(_local9, 2)) + pad(_local4, 2)) + padStr(_local8, 20)) + pad(_local7, 3)) + pad(_local10, 3)) + pad(_local6, 3)) + padStr(_local5, 1)) + _local3);
};
stick.prototype.sendGameStateLobby = function (remoteID) {
var _local5 = this.nom;
var _local3 = this.col.rb;
var _local6 = this.col.gb;
var _local2 = this.col.bb;
var _local4 = this.pKills.toString();
socket[serverNum].send((((((("00" + padStr(remoteID, IDLEN)) + "2") + padStr(_local5, 20)) + pad(_local3, 3)) + pad(_local6, 3)) + pad(_local2, 3)) + _local4);
};
stick.prototype.sendPosition = function () {
startTime = getTimer();
var _local5 = int((charMC._x - earthMC._x) * 10);
var _local3 = int((charMC._y - earthMC._y) * 10);
var _local2 = int(charMC.torsoMC._rotation);
if (_local2 < 0) {
_local2 = _local2 + 360;
}
var _local7 = Math.max(-9999, int(this.yVel * 1000));
var _local8 = Math.max(-9999, int(this.xVel * 1000));
var _local9 = this.facing;
var _local4 = Number(this.movementKeysDown);
var _local10 = Number(this.walk);
var _local6 = Number(this.invulnerable);
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));
functionTimers[17] = functionTimers[17] + (getTimer() - startTime);
};
stick.prototype.sendAttack = function () {
var _local4 = int(charMC._x - earthMC._x);
var _local3 = int(charMC._y - earthMC._y);
var _local2 = int(charMC.torsoMC._rotation);
if (_local2 < 0) {
_local2 = _local2 + 360;
}
var _local5 = this.weapon;
socket[serverNum].send(((("4" + pad(_local4, 4)) + pad(_local3, 4)) + pad(_local2, 3)) + pad(_local5, 1));
};
stick.prototype.sendWeaponPickup = function (n) {
var _local2 = this.weapon;
socket[serverNum].send(("5" + pad(_local2, 1)) + pad(n, 1));
};
stick.prototype.sendDamage = function (d, w, deg) {
if (deg < 0) {
deg = deg + 360;
}
socket[serverNum].send((("6" + pad(d, 2)) + pad(w, 1)) + pad(deg, 3));
};
stick.prototype.sendDeath = function (a, w, deg) {
socket[serverNum].send((("7" + padStr(a, IDLEN)) + pad(w, 1)) + 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.addToScore = function (p) {
this.score = ((this.getScore() + p) * 13) + 11;
this.score2 = this.score - 88;
this.killsSinceSpawn = this.killsSinceSpawn + p;
SFXKill.start();
};
stick.prototype.rackUpScore = function (p) {
p = posText[getPosition(this.getScore(), this.getDeaths())];
if (p != scoreMC.scoreG1.scoreText.text) {
var _local3 = Number(substring(scoreMC.scoreG1.scoreText.text, 0, 1));
SFXPositionChange.start();
if (getPosition(this.getScore(), this.getDeaths()) == 1) {
SFXPositionFirst.start();
}
scoreMC.gotoAndPlay(1);
scoreMC.scoreG1.scoreText.text = (scoreMC.scoreG2.scoreText.text = p);
}
};
stick.prototype.getScore = function () {
return((this.score - 11) / 13);
};
stick.prototype.addToDeaths = function (p) {
this.deaths = ((this.getDeaths() + p) * 9) + 17;
this.deaths2 = this.deaths - 77;
};
stick.prototype.getDeaths = function () {
return((this.deaths - 17) / 9);
};
stick.prototype.updateHPBar = function () {
hpBarMC.maskMC._x = -298 + ((this.hp / this.maxHp) * 198);
heartNum = int((this.hp / this.maxHp) * 3);
hpBarMC.hideHearts();
eval (("hpBarMC.heart" + heartNum) + "MC")._visible = 1;
};
stick.prototype.damage = function (d, a, w, deg) {
if (this.mod != "dead") {
d = int(d);
if (d != 0) {
this.hp = this.hp - d;
if (optionQuality > 0) {
charMC.attachMovie("damageFX", "damageFX", 1200);
charMC.damageFX.red = d * 20;
charMC.damageFX.fade = d * 6;
}
hpBarMC.attachMovie("damageHpFX", "damageHpFX", 1200);
hpBarMC.damageHpFX.red = d * 60;
hpBarMC.damageHpFX.fade = 24;
charMC.attachMovie("shakeFX", "shakeFX", 1201);
charMC.shakeFX.xyMove = d / 2;
charMC.shakeFX.xyAcc = -Math.max(d / 6, 1);
b = 0;
while (b < Math.pow(optionBlood, 2)) {
charMC.attachMovie((("blood" + weapons[w].bloodAnim) + random(weapons[w].bloodVariations)) + "MC", "bloodMC" + b, 1206 + b);
with (eval ("charMC.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.hp <= 0) {
this.die(a, w, deg);
}
}
};
stick.prototype.die = function (a, w, deg) {
if (this.mod != "dead") {
logMileStone("playerDied");
this.sendDeath(a, w, deg);
if (gameMode != 4) {
gotoAndStop ("deathFrame");
setQuality();
}
if (gameMode != 2) {
chatMC._visible = 0;
}
this.mod = "dead";
charMC.attachMovie("deathFX", "deathFX", 1200);
hpBarMC.hideHearts();
hpBarMC.heart0MC._visible = 1;
hpBarMC.heart0MC.gotoAndStop(24);
animateDeath("charMC", a, w, deg, this.killsSinceSpawn, charMC._x, charMC._y);
this.addToDeaths(1);
this.killsSinceSpawn = 0;
userHidLeaderBoard = false;
}
};
stick.prototype.spawn = function () {
bannerAdMC.removeMovieClip();
if (gameMode == 3) {
gameMode = 0;
}
if (gameMode != 4) {
gotoAndStop ("mainFrame");
cursorCrossHair();
}
this.mod = "spawn";
this.spawnTimer = this.spawnTime;
this.invulnerable = (this.attackButtonReleased = (this.attackAnimationDone = true));
this.invulnerableTimer = this.invulnerableTime;
this.attackButtonDown = (this.attackKeyDown = false);
this.hp = this.maxHp;
this.pickUpWeapon(0, 9);
this.updateHPBar();
var rnd = random(currentArea.playerSpawnPoints);
moveToCoords(currentArea.spawnPoint[rnd].x, currentArea.spawnPoint[rnd].y);
this.sendSpawn(currentArea.spawnPoint[rnd].x, currentArea.spawnPoint[rnd].y);
var playerColor = new Color(charMC.colorMC);
playerColor.setTransform(this.col);
charMC.attachMovie("spawnFX", "spawnFX", 1203);
charMC.torsoMC.gotoAndStop("fistIdle");
charMC.animateSpawn("Local");
adjustAndPlaySound(SFXspawn[0], 0, 0);
};
stick.prototype.spawnDone = function () {
charMC.spawnMC._visible = 0;
charMC.legsMC._visible = 1;
charMC.torsoMC._visible = 1;
this.mod = "walk";
};
stick.prototype.pickUpWeapon = function (w, n) {
if (w != 0) {
logMileStone("playerGotWeapon" + w);
}
this.weapon = 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.attack = function () {
if ((this.attackTimer == 0) && ((this.mod == "walk") || (this.mod == "stand"))) {
this.sendAttack();
var rnd = (random(weapons[this.weapon].variations) + 1);
charMC.torsoMC.gotoAndStop((weapons[this.weapon].attackAnim + "Attack") + rnd);
charMC.torsoMC.attackMC.gotoAndPlay(1);
charMC.torsoMC.attackMC.collisionMC._visible = 0;
attachParticles(weapons[this.weapon].particleAnim, weapons[this.weapon].attackAnim, charMC._x - earthMC._x, charMC._y - earthMC._y, charMC.torsoMC._rotation);
adjustAndPlaySound(eval ((("SFX" + weapons[this.weapon].attackAnim) + (rnd - 1)) + "0")[0], 0, 0);
this.attackTimer = (weapons[this.weapon].reloadTime * 33) * this.reloadModifier;
this.attackAnimationDone = (this.hitSinceAttack = (this.attackButtonReleased = false));
}
};
stick.prototype.autoAttack = function () {
if ((((this.attackButtonDown && (weapons[this.weapon].automatic)) || (this.attackButtonDown && (this.attackButtonReleased))) || (this.attackKeyDown && (weapons[this.weapon].automatic))) || (this.attackKeyDown && (this.attackKeyReleased))) {
this.attack();
}
};
stick.prototype.doneAttack = function () {
this.attackAnimationDone = true;
if ((this.mod == "walk") && (!this.walk)) {
charMC.torsoMC.gotoAndStop(weapons[this.weapon].runAnim + "Idle");
} else {
charMC.torsoMC.gotoAndStop(weapons[this.weapon].idleAnim + "Idle");
}
};
stick.prototype.move = function () {
startTime = getTimer();
if ((this.mod == "walk") || (this.mod == "stand")) {
if (gameMode < 2) {
if (keyIsDownMulti("A")) {
this.attackKeyDown = true;
} else {
this.attackKeyDown = false;
this.attackKeyReleased = true;
}
if (keyIsDownMulti("W")) {
this.walk = true;
} else {
this.walk = false;
}
this.movementKeysDown = true;
this.lastFacing = 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.movementKeysDown = false;
}
if (this.lastFacing != this.facing) {
sendImmediate = true;
noInputTime = 0;
}
functionTimers[5] = functionTimers[5] + (getTimer() - startTime);
}
xyVel = calcMove(this.facing, this.walk, this.movementKeysDown, this.xVel, this.yVel, this.weapon);
xyVel = calcCol(charMC._x, charMC._y, xyVel[0], xyVel[1]);
xyVel = calcMove2(xyVel[0], xyVel[1], this.mod, this.movementKeysDown);
this.xVel = xyVel[0];
this.yVel = xyVel[1];
this.vel = xyVel[2];
this.mod = xyVel[3];
this.frame = animatePlayer("charMC", this.mod, this.walk, this.attackAnimationDone, this.weapon, this.frame, this.vel, this.facing, this.invulnerable);
startTime = getTimer();
lastRot = charMC.torsoMC._rotation;
var _local4 = Math.atan2(_root._ymouse - charMC._y, _root._xmouse - charMC._x);
var _local5 = Math.round((_local4 * 180) / Math.PI);
charMC.torsoMC._rotation = (cRot = _local5 + 90);
if (cRot < 0) {
cRot = cRot + 360;
}
dif = 0;
if (Math.abs(cRot - lastRot) > 1) {
if (Math.abs(cRot - lastRot) <= 180) {
dif = Math.abs(cRot - lastRot);
if (lastRot <= cRot) {
dif = -dif;
}
} else if (lastRot > cRot) {
dif = -((360 - lastRot) + cRot);
} else {
dif = (360 - cRot) + lastRot;
}
}
dif = -dif;
this.avgRotVel = 0;
avgPeriod = 0;
var _local3 = avgPeriod - 1;
while (_local3 > 0) {
this.tRotVels[_local3] = this.tRotVels[_local3 - 1];
this.avgRotVel = this.avgRotVel + this.tRotVels[_local3];
_local3--;
}
this.tRotVels[0] = dif;
this.avgRotVel = this.avgRotVel + dif;
this.avgRotVel = int(this.avgRotVel / avgPeriod);
if (Math.abs(dif) >= 1) {
this.avgRotVel = 0;
}
idle(idl, this.vel);
functionTimers[6] = functionTimers[6] + (getTimer() - startTime);
startTime = getTimer();
if (charMC._x > this.rightLimit) {
val = (charMC._x - this.rightLimit) / scrollSpeed;
if ((earthMCX - val) < earthMinX) {
val = earthMCX - earthMinX;
}
earthMCX = earthMCX - val;
charMC._x = charMC._x - (val - this.xVel);
} else if (charMC._x < this.leftLimit) {
val = (charMC._x - this.leftLimit) / scrollSpeed;
if ((earthMCX - val) > earthMaxX) {
val = earthMCX - earthMaxX;
}
if (val > -0.1) {
val = 0;
}
earthMCX = earthMCX - val;
charMC._x = charMC._x - (val - this.xVel);
} else {
charMC._x = charMC._x + this.xVel;
}
if (charMC._y > this.bottomLimit) {
val = (charMC._y - this.bottomLimit) / scrollSpeed;
if ((earthMCY - val) < earthMinY) {
val = earthMCY - earthMinY;
}
earthMCY = earthMCY - val;
charMC._y = charMC._y - (val - this.yVel);
} else if (charMC._y < this.topLimit) {
val = (charMC._y - this.topLimit) / scrollSpeed;
if ((earthMCY - val) > earthMaxY) {
val = earthMCY - earthMaxY;
}
if (val > -0.1) {
val = 0;
}
earthMCY = earthMCY - val;
charMC._y = charMC._y - (val - this.yVel);
} else {
charMC._y = charMC._y + this.yVel;
}
earthMC._x = int(earthMCX);
earthMC._y = int(earthMCY);
}
if (this.mod == "dead") {
this.spawnTimer = this.spawnTimer - Math.max(1, int((frameDeltaTime / 4) / 33.3));
if (this.spawnTimer <= 0) {
this.spawn();
}
} else if (this.invulnerable) {
this.invulnerableTimer = this.invulnerableTimer - Math.max(1, int((frameDeltaTime / 4) / 33.3));
if (this.invulnerableTimer <= 0) {
this.invulnerable = false;
}
}
if (this.attackTimer > 0) {
this.attackTimer = Math.max(0, this.attackTimer - int(frameDeltaTime / 4));
}
functionTimers[7] = functionTimers[7] + (getTimer() - startTime);
updateEarth();
};
timeNotify[0] = 180;
timeNotify[1] = 60;
timeNotify[2] = 30;
rankKills = new Array(-1, 0, 5, 25, 100, 300, 750, 2000, 5000, 10000, 20000, 40000, 60000, 80000, 100000, 125000, 150000, 1000000);
voteKickText[0] = "You have initiated a Vote Kick against ";
voteKickText[1] = "A Vote Kick has been initiated against ";
voteKickText[2] = "(Vote FOR kicking this user by clicking the red X on your Leaderboard).";
voteKickText[3] = "You have been Vote Kicked.\r(By democratic vote, the majority of players in the Arena chose to kick you out of the game).";
leadText[0] = "RANK";
leadText[1] = "PLAYER";
leadText[2] = "KILLS";
leadText[3] = "DEATHS";
leadText[4] = "LEADERBOARD";
optText[0] = " DETAIL";
optText[1] = " SOUND VOLUME";
optText[2] = " BLOOD";
optText[3] = "LANGUAGE FILTER";
optText[4] = "LOW";
optText[5] = "MED";
optText[6] = "HIGH";
optText[7] = "FULL";
optText[8] = "OFF";
optText[9] = "NORMAL";
optText[10] = "SAVAGE";
optText[11] = "OFF";
optText[12] = "ON";
reportText[0] = "REPORT USER";
reportText[1] = "Are you sure you want to report \"";
reportText[2] = "\"?";
reportText[3] = "(This form is for reporting players who are CHEATING, HACKING, or ABUSING the game. Submitting false reports or abusing this system will result in having your Account and/or IP BANNED.)";
reportText[4] = "What happened? Be clear and provide as much detail as possible:";
summaryText[0] = "FINAL SCORE";
summaryText[1] = "GAME WILL CONTINUE IN ";
summaryText[2] = " ...";
summaryText[3] = "YOU ACHIEVED RANK ";
summaryText[4] = " !";
lobbyText[0] = " has entered the lobby";
lobbyText[1] = " has left the lobby";
lobbyText[2] = ". : : ";
lobbyText[3] = " logged into ";
lobbyText[4] = " as ";
lobbyText[5] = " : : .";
lobbyText[6] = "ARENA NAME:";
lobbyText[7] = "MAP:";
lobbyText[8] = "CREATE GAME";
lobbyText[9] = " PUBLIC";
lobbyText[10] = " PRIVATE";
lobbyText[11] = " CYCLE";
lobbyText[12] = " RANDOM";
lobbyText[13] = " REPEAT";
lobbyText[14] = "(Private) ";
lobbyText[15] = "ARENA NAME must be at least 3 characters.";
lobbyText[16] = "You may only use a-z, A-Z, 0-9, Periods, Commas, and Spaces in ARENA NAME.";
lobbyText[17] = "ARENA NAME contains foul or disallowed language.";
lobbyText[18] = "Map: ";
lobbyText[19] = "Mode:";
lobbyText[20] = "(Private to ";
lobbyText[21] = ") ";
lobbyText[22] = "JOIN PRIVATE GAME";
lobbyText[23] = "Game not found! Verify that the arena name entered is correct and try again.";
lobbyText[24] = "Kills: ";
lobbyText[25] = "Kill/Death Ratio: ";
lobbyText[26] = "Round Completions: ";
lobbyText[27] = "Win/Loss Ratio: ";
lobbyText[28] = "Players: ";
lobbyText[29] = "Round Time: ";
lobbyText[30] = "Next Round in ";
lobbyText[31] = "...";
lobbyText[32] = "There was a problem joining the requested Game - Please select a different Arena or try again.";
lobbyText[33] = "Connecting to ";
lobbyText[34] = "There was a problem connecting to the requested Server - Please select a different Server or try again.";
lobbyText[35] = "The requested Server is currently full - Please select a different Server or try again.";
lobbyText[36] = "ARENA NAME cannot consist only of Spaces.";
lobbyText[37] = "There was a problem joining the QuickStart Game - Please try again.";
lobbyText[38] = "You have been Kicked by a Moderator for abuse, misuse, foul language, flooding, cheating, hacking and/or otherwise violating the terms of use.";
accountText[0] = "Username: (Max 20 characters)";
accountText[1] = "Password: (3-20 characters)";
accountText[2] = "CREATE ACCOUNT";
accountText[3] = "Verify Password: (Same as above)";
accountText[4] = "E-Mail Address:";
accountText[5] = "";
accountText[6] = "The E-MAIL ADDRESS entered is invalid.";
accountText[7] = "You may only use a-z, A-Z, 0-9, Periods, and Commas in your PASSWORD.";
accountText[8] = "You may only use a-z, A-Z, 0-9, Periods, and Commas in your USERNAME.";
accountText[9] = "Your PASSWORD must be at least 3 characters.";
accountText[10] = "PASSWORDS do not match.";
accountText[11] = "Your USERNAME must be at least 3 characters.";
accountText[12] = "Your USERNAME contains foul or disallowed language.";
accountText[13] = "There was an error when attempting to create your Account - Please try again.";
accountText[14] = "Your USERNAME is already taken. Please choose a different name and try again.";
logInText[0] = "Username:";
logInText[1] = "Password:";
logInText[2] = "LOG IN";
logInText[3] = "There was an error while attempting to authenticate your Log In - Please try again.";
logInText[4] = "Username or Password incorrect.";
logInText[5] = "Your account has been banned for abuse, misuse, cheating, hacking and/or otherwise violating the terms of use.";
HUDText[0] = " has entered the area";
HUDText[1] = " has left the area";
HUDText[2] = " have entered ";
HUDText[3] = "You";
posText[0] = "0th";
posText[1] = "1st";
posText[2] = "2nd";
posText[3] = "3rd";
posText[4] = "4th";
posText[5] = "5th";
posText[6] = "6th";
posText[7] = "7th";
posText[8] = "8th";
weapons[0].killTextPre[0] = " pwn3d ";
weapons[0].killTextPost[0] = "";
weapons[0].killTextPre[1] = " slapped ";
weapons[0].killTextPost[1] = " silly";
weapons[0].killTextPre[2] = " fisticuffed ";
weapons[0].killTextPost[2] = "";
weapons[0].killTextPre[3] = " handled ";
weapons[0].killTextPost[3] = " heavy-handedly";
weapons[0].killTextPre[4] = " layed ";
weapons[0].killTextPost[4] = " out with a cheap shot";
weapons[0].killTextNum = "5";
weapons[1].killTextPre[0] = " pwn3d ";
weapons[1].killTextPost[0] = "";
weapons[1].killTextPre[1] = " slapped ";
weapons[1].killTextPost[1] = " silly";
weapons[1].killTextPre[2] = " fisticuffed ";
weapons[1].killTextPost[2] = "";
weapons[1].killTextPre[3] = " handled ";
weapons[1].killTextPost[3] = " heavy-handedly";
weapons[1].killTextPre[4] = " layed ";
weapons[1].killTextPost[4] = " out with a cheap shot";
weapons[1].killTextNum = "5";
weapons[2].killTextPre[0] = " knocked ";
weapons[2].killTextPost[0] = " out of the park";
weapons[2].killTextPre[1] = " slugged ";
weapons[2].killTextPost[1] = "";
weapons[2].killTextPre[2] = " combined bat and ";
weapons[2].killTextPost[2] = " to make corpse";
weapons[2].killTextPre[3] = " played t-ball with ";
weapons[2].killTextPost[3] = "";
weapons[2].killTextPre[4] = " made an impression on ";
weapons[2].killTextPost[4] = "";
weapons[2].killTextNum = "5";
weapons[3].killTextPre[0] = " sworded ";
weapons[3].killTextPost[0] = "";
weapons[3].killTextPre[1] = " h4x0r3d ";
weapons[3].killTextPost[1] = "";
weapons[3].killTextPre[2] = " turned ";
weapons[3].killTextPost[2] = " into a blood fountain";
weapons[3].killTextPre[3] = " sliced open ";
weapons[3].killTextPost[3] = "";
weapons[3].killTextPre[4] = " diced ";
weapons[3].killTextPost[4] = " julienne style";
weapons[3].killTextPre[5] = " iron chef'd ";
weapons[3].killTextPost[5] = "";
weapons[3].killTextNum = "6";
weapons[4].killTextPre[0] = " rocked ";
weapons[4].killTextPost[0] = " with a glock";
weapons[4].killTextPre[1] = " busted a cap in ";
weapons[4].killTextPost[1] = "";
weapons[4].killTextNum = "2";
weapons[5].killTextPre[0] = " caponed ";
weapons[5].killTextPost[0] = "";
weapons[5].killTextPre[1] = " swiss cheesed ";
weapons[5].killTextPost[1] = "";
weapons[5].killTextPre[2] = " emptied a clip into ";
weapons[5].killTextPost[2] = "";
weapons[5].killTextPre[3] = " gave ";
weapons[5].killTextPost[3] = " a lead enema";
weapons[5].killTextNum = "4";
weapons[6].killTextPre[0] = " boom sticked ";
weapons[6].killTextPost[0] = "";
weapons[6].killTextPre[1] = " duck hunted ";
weapons[6].killTextPost[1] = "";
weapons[6].killTextPre[2] = " gave ";
weapons[6].killTextPost[2] = " a faceful of buckshot";
weapons[6].killTextPre[3] = " double-barrelled ";
weapons[6].killTextPost[3] = "";
weapons[6].killTextPre[4] = " told ";
weapons[6].killTextPost[4] = " off with a sawed-off";
weapons[6].killTextNum = "5";
weapons[7].killTextPre[0] = " sledged ";
weapons[7].killTextPost[0] = "";
weapons[7].killTextPre[1] = " ganked ";
weapons[7].killTextPost[1] = " with a sledge";
weapons[7].killTextPre[2] = " pulverized ";
weapons[7].killTextPost[2] = "";
weapons[7].killTextPre[3] = " taught ";
weapons[7].killTextPost[3] = " about hammer time";
weapons[7].killTextNum = "4";
defaultFirstNames[0] = "Sticky";
defaultFirstNames[1] = "One-Eye";
defaultFirstNames[2] = "Twitch";
defaultFirstNames[3] = "The";
defaultFirstNames[4] = "Trix";
defaultFirstNames[5] = "Joker";
defaultFirstNames[6] = "Ace";
defaultFirstNames[7] = "Lt.";
defaultFirstNames[8] = "Deputy";
defaultFirstNames[9] = "Smokin'";
defaultFirstNames[10] = "Prof.";
defaultFirstNames[11] = "Dr.";
defaultFirstNames[12] = "Little";
defaultFirstNames[13] = "Big";
defaultFirstNames[14] = "Stanky";
defaultFirstNames[15] = "Papa";
defaultFirstNames[16] = "Brother";
defaultFirstNames[17] = "Saint";
defaultFirstNames[18] = "Mr.";
defaultFirstNames[19] = "Sir";
defaultFirstNames[20] = "Vladamir";
defaultFirstNames[21] = "Randy";
defaultFirstNames[22] = "Master";
defaultFirstNames[23] = "Greasy";
defaultFirstNames[24] = "Jeeves";
defaultFirstNames[25] = "Ugly";
defaultFirstNames[26] = "Spooky";
defaultFirstNames[27] = "Donald";
defaultFirstNames[28] = "Uncle";
defaultFirstNames[29] = "President";
defaultFirstNames[30] = "General";
defaultFirstNames[31] = "Ensign";
defaultFirstNames[32] = "Admiral";
defaultFirstNames[33] = "Perfect";
defaultFirstNames[34] = "The Only";
defaultFirstNames[35] = "Bad";
defaultFirstNames[36] = "Good";
defaultFirstNames[37] = "Baron";
defaultFirstNames[38] = "Fishy";
defaultLastNames[0] = " Peterson";
defaultLastNames[1] = " McStick";
defaultLastNames[2] = " Kovax";
defaultLastNames[3] = " McSlave";
defaultLastNames[4] = " Junior";
defaultLastNames[5] = " Senior";
defaultLastNames[6] = ", Esquire";
defaultLastNames[7] = ", M.D.";
defaultLastNames[8] = ", PHD.";
defaultLastNames[9] = " Clodhopper";
defaultLastNames[10] = " Two Toes";
defaultLastNames[11] = " Glock";
defaultLastNames[12] = " Sleuth";
defaultLastNames[13] = " Capone";
defaultLastNames[14] = " Slasher";
defaultLastNames[15] = " McGraw";
defaultLastNames[16] = " McGee";
defaultLastNames[17] = "'s Wrath";
defaultLastNames[18] = " Joe";
defaultLastNames[19] = "'s Minion";
defaultLastNames[20] = " Smasher";
defaultLastNames[21] = " Slayer";
defaultLastNames[22] = " Shooter";
defaultLastNames[23] = " Natas";
var kU = new Array(38, 119, 87);
var kD = new Array(40, 115, 83);
var kL = new Array(37, 97, 65);
var kR = new Array(39, 100, 68);
var kA = new Array(32, 48, 48);
var kW = new Array(118, 86, 220);
var kB = new Array(16, 66, 97);
var kC = new Array(13, 84, 116);
languageFilterDictionary[0] = "shit";
languageFilterDictionary[1] = "piss";
languageFilterDictionary[2] = "motherfuck";
languageFilterDictionary[3] = "cunt";
languageFilterDictionary[4] = "cock";
languageFilterDictionary[5] = "tits";
languageFilterDictionary[6] = "asshole";
languageFilterDictionary[7] = "bitch";
languageFilterDictionary[8] = "bastard";
languageFilterDictionary[9] = "whore";
languageFilterDictionary[10] = "scrotum";
languageFilterDictionary[11] = "bastard";
languageFilterDictionary[12] = "slut";
languageFilterDictionary[13] = "masturbat";
languageFilterDictionary[14] = "penis";
languageFilterDictionary[15] = "vagina";
languageFilterDictionary[16] = "nigger";
languageFilterDictionary[17] = "coon";
languageFilterDictionary[18] = "paki";
languageFilterDictionary[19] = "prick";
languageFilterDictionary[20] = "arse";
languageFilterDictionary[21] = "ballsack";
languageFilterDictionary[22] = "twat";
languageFilterDictionary[23] = "wank";
languageFilterDictionary[24] = "skank";
languageFilterDictionary[25] = "retard";
languageFilterDictionary[26] = "anal";
languageFilterDictionary[27] = "damn";
languageFilterDictionary[28] = "bollock";
languageFilterDictionary[29] = "smeg";
languageFilterDictionary[30] = "kike";
languageFilterDictionary[31] = "faggot";
languageFilterDictionary[32] = "ass hole";
languageFilterDictionary[33] = "homo";
languageFilterDictionary[34] = "gayass";
languageFilterDictionary[35] = "dumbass";
languageFilterDictionary[36] = "pecker";
languageFilterDictionary[37] = "fag";
languageFilterDictionary[38] = "uck ass";
languageFilterDictionary[39] = "uck it";
languageFilterDictionary[40] = "dick";
languageFilterDictionary[41] = "-ass";
languageFilterDictionary[42] = " ass ";
languageFilterDictionary[43] = "dumass";
languageFilterDictionary[44] = "cum";
languageFilterDictionary[45] = "bitc";
languageFilterDictionary[46] = "fuck";
languageFilterDictionary[47] = "dickhead";
languageFilterDictionary[48] = "d!ck";
languageFilterDictionary[49] = "prick";
languageFilterDictionary[50] = "sh!t";
languageFilterDictionary[51] = "fuk";
languageFilterDictionary[52] = "fux";
languageFilterDictionary[53] = "porn";
languageFilterDictionary[54] = ".ass";
languageFilterDictionary[55] = "chode";
languageFilterDictionary[56] = "assmuncher";
languageFilterDictionary[57] = "f u ";
languageFilterDictionary[58] = "f.u";
languageFilterDictionary[59] = "s h ";
languageFilterDictionary[60] = "s.h";
languageFilterDictionary[61] = "queer";
languageFilterDictionary[62] = "sh1t";
languageFilterDictionary[63] = "dick";
languageFilterDictionary[64] = "nigg";
languageFilterDictionary[65] = "choda";
languageFilterDictionary[66] = "fuc";
languageFilterDictionary[67] = "anus";
languageFilterDictionary[68] = "douche";
languageFilterDictionary[69] = "n1gg";
languageFilterDictionary[70] = "n!gg";
languageFilterDictionary[71] = "qweer";
languageFilterDictionary[72] = "gaylord";
languageFilterDictionary[73] = "gay";
languageFilterDictionary[74] = "dumb ass";
languageFilterDictionary[75] = "my ass";
languageFilterDictionary[76] = "your ass";
languageFilterDictionary[77] = "asswi";
languageFilterDictionary[78] = "s..h";
languageFilterDictionary[79] = "f..u";
languageFilterDictionary[80] = "f u";
languageFilterDictionary[81] = "s h";
languageFilterDictionary[82] = "pussy";
languageFilterDictionary[83] = "asses";
languageFilterDictionary[84] = "b i ";
languageFilterDictionary[85] = "b.i";
languageFilterDictionary[86] = "p0rn";
languageFilterDictionary[87] = "p o ";
languageFilterDictionary[88] = "p 0 ";
languageFilterDictionary[89] = "h o ";
languageFilterDictionary[90] = "a s ";
languageFilterDictionary[91] = "lesbian";
languageFilterDictionary[92] = "dyke";
languageFilterDictionary[93] = "f_u";
languageFilterDictionary[94] = "s_h";
languageFilterDictionary[95] = "b_i";
languageFilterDictionary[96] = "fvc";
languageFilterDictionary[97] = "fvk";
languageFilterDictionary[98] = "g a y";
languageFilterDictionary[99] = "g.a.";
languageFilterDictionary[100] = "p.u.";
languageFilterDictionary[101] = "f-u";
languageFilterDictionary[102] = "b-i";
languageFilterDictionary[103] = "s-h";
languageFilterDictionary[104] = "n-i";
languageFilterDictionary[105] = "d-i";
languageFilterDictionary[106] = "ucks ass";
languageFilterDictionary[107] = "f-a";
languageFilterDictionary[108] = "f uc";
languageFilterDictionary[109] = "s hi";
languageFilterDictionary[110] = "b it";
languageFilterDictionary[111] = "g ay";
languageFilterDictionary[112] = "p us";
languageFilterDictionary[113] = " d ic";
languageFilterDictionary[114] = "asscr";
languageFilterDictionary[115] = "fu.c";
languageLoaded = true;
mapList[0] = "_xgenhq.dat";
mapListCompat[0] = "_xgenhq.dat";
var connectPort = new Array();
var socket = new Array();
connectPort[0] = 1138;
connectPort[1] = 443;
connectPort[2] = 110;
connectPort[3] = 80;
serverURL = new Array();
serverName[0] = "Stick Arena Lite (1)";
serverURL[0] = "salite.xgenstudios.com";
serverType[0] = "STANDARD";
serverPing[0] = 0;
serverName[1] = "Stick Arena Lite (2)";
serverURL[1] = "salite.xgenstudios.com";
serverType[1] = "STANDARD";
serverPing[1] = 0;
var i = 0;
while (i <= serverName.length) {
socket[i] = new XMLSocket();
socket[i].onConnect = function (success) {
if (success) {
lastMessageRecieved = getTimer();
if (connectAction == "quickStart") {
sendCheckServerCapacity(serverNum);
} else if (connectAction == "lobby") {
sendCheckServerCapacity(serverNum);
} else if (connectAction == "lobbyChangeServer") {
sendCheckServerCapacity(joinServerNum);
} else if (connectAction == "ping") {
pingRecieved(true);
}
} else if (connectAction == "lobbyChangeServer") {
connectAction = null;
displayLobbyMessage(lobbyText[34], "window304ChangeServerMessageMC");
} else if (connectAction == "ping") {
pingRecieved(false);
}
};
socket[i].onClose = function () {
bootPlayer("\r" + disconnectedText, "title");
};
i++;
}
mapXGenHQ = new Array();
var x = 0;
while (x < 35) {
mapXGenHQ[x] = new Array();
x++;
}
mapXGenHQ[0][0] = new Array("0C0", "0", "0", "3");
mapXGenHQ[1][0] = new Array("0W1", "0", "0", "3");
mapXGenHQ[2][0] = new Array("0W0", "0", "0", "3");
mapXGenHQ[3][0] = new Array("0W2", "0", "0", "3");
mapXGenHQ[4][0] = new Array("0W3", "0", "0", "3");
mapXGenHQ[5][0] = new Array("0W4", "0", "0", "3");
mapXGenHQ[6][0] = new Array("0W0", "0", "0", "3");
mapXGenHQ[7][0] = new Array("0W5", "0", "0", "3");
mapXGenHQ[8][0] = new Array("0C0", "1", "0", "3");
mapXGenHQ[9][0] = new Array("0C0", "0", "0", "3");
mapXGenHQ[10][0] = new Array("0W1", "0", "0", "3");
mapXGenHQ[11][0] = new Array("0W2", "0", "0", "3");
mapXGenHQ[12][0] = new Array("0C0", "1", "0", "3");
mapXGenHQ[13][0] = new Array("0C0", "0", "0", "3");
mapXGenHQ[14][0] = new Array("0K3", "0", "0", "3");
mapXGenHQ[15][0] = new Array("0K4", "0", "0", "3");
mapXGenHQ[16][0] = new Array("0W4", "0", "1", "3");
mapXGenHQ[17][0] = new Array("0W8", "0", "0", "3");
mapXGenHQ[18][0] = new Array("0W7", "0", "0", "3");
mapXGenHQ[19][0] = new Array("0K2", "0", "0", "3");
mapXGenHQ[20][0] = new Array("0W2", "0", "0", "3");
mapXGenHQ[21][0] = new Array("0K1", "0", "1", "3");
mapXGenHQ[22][0] = new Array("0K0", "0", "1", "3");
mapXGenHQ[23][0] = new Array("0C0", "1", "0", "3");
mapXGenHQ[24][0] = new Array("0C0", "0", "0", "3");
mapXGenHQ[25][0] = new Array("0W4", "0", "0", "3");
mapXGenHQ[26][0] = new Array("0W1", "0", "1", "3");
mapXGenHQ[27][0] = new Array("0C0", "1", "0", "3");
mapXGenHQ[28][0] = new Array("0C0", "0", "0", "3");
mapXGenHQ[29][0] = new Array("0B0", "0", "0", "3");
mapXGenHQ[30][0] = new Array("0B1", "0", "0", "3");
mapXGenHQ[31][0] = new Array("0W0", "0", "0", "3");
mapXGenHQ[32][0] = new Array("0B2", "0", "0", "3");
mapXGenHQ[33][0] = new Array("0B3", "0", "1", "3");
mapXGenHQ[34][0] = new Array("0C0", "1", "0", "3");
mapXGenHQ[0][1] = new Array("0W0", "3", "0", "3");
mapXGenHQ[1][1] = new Array("0F2", "0", "0", "6");
mapXGenHQ[2][1] = new Array("0F0", "0", "0", "0");
mapXGenHQ[3][1] = new Array("0F3", "0", "0", "0");
mapXGenHQ[4][1] = new Array("0F0", "2", "1", "0");
mapXGenHQ[5][1] = new Array("0F4", "0", "0", "0");
mapXGenHQ[6][1] = new Array("0F0", "2", "0", "0");
mapXGenHQ[7][1] = new Array("0F5", "0", "0", "6");
mapXGenHQ[8][1] = new Array("0W0", "1", "0", "3");
mapXGenHQ[9][1] = new Array("0W0", "3", "0", "3");
mapXGenHQ[10][1] = new Array("0F2", "0", "0", "6");
mapXGenHQ[11][1] = new Array("0F3", "0", "0", "0");
mapXGenHQ[12][1] = new Array("0W0", "3", "2", "3");
mapXGenHQ[13][1] = new Array("0W0", "3", "0", "3");
mapXGenHQ[14][1] = new Array("0K8", "0", "0", "6");
mapXGenHQ[15][1] = new Array("0K9", "0", "0", "6");
mapXGenHQ[16][1] = new Array("0T2", "0", "0", "0");
mapXGenHQ[17][1] = new Array("0T0", "0", "1", "0");
mapXGenHQ[18][1] = new Array("0T0", "2", "0", "0");
mapXGenHQ[19][1] = new Array("0K7", "0", "0", "6");
mapXGenHQ[20][1] = new Array("0T3", "0", "0", "0");
mapXGenHQ[21][1] = new Array("0K6", "0", "1", "6");
mapXGenHQ[22][1] = new Array("0K5", "0", "1", "6");
mapXGenHQ[23][1] = new Array("0W0", "1", "1", "3");
mapXGenHQ[24][1] = new Array("0W0", "3", "0", "3");
mapXGenHQ[25][1] = new Array("0F4", "0", "0", "0");
mapXGenHQ[26][1] = new Array("0F2", "0", "1", "6");
mapXGenHQ[27][1] = new Array("0E1", "1", "0", "3");
mapXGenHQ[28][1] = new Array("0E2", "3", "1", "3");
mapXGenHQ[29][1] = new Array("0B4", "0", "0", "6");
mapXGenHQ[30][1] = new Array("0B5", "0", "0", "6");
mapXGenHQ[31][1] = new Array("0T0", "2", "0", "0");
mapXGenHQ[32][1] = new Array("0B6", "0", "0", "0");
mapXGenHQ[33][1] = new Array("0B7", "0", "1", "8");
mapXGenHQ[34][1] = new Array("0W0", "1", "0", "3");
mapXGenHQ[0][2] = new Array("0W2", "3", "0", "3");
mapXGenHQ[1][2] = new Array("0F0", "0", "0", "0");
mapXGenHQ[2][2] = new Array("0F1", "0", "3", "0");
mapXGenHQ[3][2] = new Array("0F1", "2", "2", "0");
mapXGenHQ[4][2] = new Array("0F0", "0", "0", "0");
mapXGenHQ[5][2] = new Array("0F0", "0", "0", "0");
mapXGenHQ[6][2] = new Array("0F1", "0", "3", "0");
mapXGenHQ[7][2] = new Array("0F0", "0", "0", "0");
mapXGenHQ[8][2] = new Array("0E1", "1", "0", "3");
mapXGenHQ[9][2] = new Array("0E1", "3", "1", "3");
mapXGenHQ[10][2] = new Array("0F1", "0", "1", "0");
mapXGenHQ[11][2] = new Array("0F0", "2", "0", "0");
mapXGenHQ[12][2] = new Array("0W0", "1", "0", "3");
mapXGenHQ[13][2] = new Array("0V1", "3", "0", "3");
mapXGenHQ[14][2] = new Array("0T0", "2", "3", "0");
mapXGenHQ[15][2] = new Array("0L0", "1", "0", "7");
mapXGenHQ[16][2] = new Array("0L1", "0", "0", "4");
mapXGenHQ[17][2] = new Array("0L2", "0", "0", "4");
mapXGenHQ[18][2] = new Array("0T0", "0", "1", "0");
mapXGenHQ[19][2] = new Array("0T0", "2", "2", "0");
mapXGenHQ[20][2] = new Array("0P0", "0", "0", "4");
mapXGenHQ[21][2] = new Array("0P1", "3", "0", "6");
mapXGenHQ[22][2] = new Array("0T0", "2", "3", "0");
mapXGenHQ[23][2] = new Array("0W0", "1", "0", "3");
mapXGenHQ[24][2] = new Array("0W0", "3", "0", "3");
mapXGenHQ[25][2] = new Array("0F0", "2", "0", "0");
mapXGenHQ[26][2] = new Array("0F1", "0", "0", "0");
mapXGenHQ[27][2] = new Array("0F6", "0", "0", "0");
mapXGenHQ[28][2] = new Array("0T0", "2", "0", "0");
mapXGenHQ[29][2] = new Array("0T0", "0", "1", "0");
mapXGenHQ[30][2] = new Array("0T0", "0", "2", "0");
mapXGenHQ[31][2] = new Array("0T0", "2", "0", "0");
mapXGenHQ[32][2] = new Array("0T0", "0", "1", "0");
mapXGenHQ[33][2] = new Array("0T0", "2", "0", "0");
mapXGenHQ[34][2] = new Array("0W0", "1", "0", "3");
mapXGenHQ[0][3] = new Array("0W0", "3", "0", "3");
mapXGenHQ[1][3] = new Array("0F0", "2", "1", "0");
mapXGenHQ[2][3] = new Array("0F0", "2", "1", "0");
mapXGenHQ[3][3] = new Array("0X0", "2", "0", "8");
mapXGenHQ[4][3] = new Array("0X1", "0", "0", "4");
mapXGenHQ[5][3] = new Array("0X2", "3", "0", "8");
mapXGenHQ[6][3] = new Array("0F1", "0", "3", "0");
mapXGenHQ[7][3] = new Array("0F1", "0", "2", "0");
mapXGenHQ[8][3] = new Array("0F0", "0", "0", "0");
mapXGenHQ[9][3] = new Array("0F0", "2", "0", "0");
mapXGenHQ[10][3] = new Array("0F0", "2", "0", "0");
mapXGenHQ[11][3] = new Array("0F0", "0", "2", "0");
mapXGenHQ[12][3] = new Array("0W9", "1", "0", "3");
mapXGenHQ[13][3] = new Array("0W0", "3", "0", "3");
mapXGenHQ[14][3] = new Array("0T0", "2", "1", "0");
mapXGenHQ[15][3] = new Array("0L3", "1", "0", "7");
mapXGenHQ[16][3] = new Array("0L4", "0", "0", "4");
mapXGenHQ[17][3] = new Array("0L5", "0", "0", "4");
mapXGenHQ[18][3] = new Array("0T0", "0", "2", "0");
mapXGenHQ[19][3] = new Array("0T0", "0", "0", "0");
mapXGenHQ[20][3] = new Array("0P2", "0", "0", "4");
mapXGenHQ[21][3] = new Array("0P3", "3", "0", "6");
mapXGenHQ[22][3] = new Array("0T0", "2", "2", "0");
mapXGenHQ[23][3] = new Array("0W8", "1", "0", "3");
mapXGenHQ[24][3] = new Array("0W0", "3", "1", "3");
mapXGenHQ[25][3] = new Array("0F1", "0", "0", "0");
mapXGenHQ[26][3] = new Array("0F0", "2", "3", "0");
mapXGenHQ[27][3] = new Array("0E1", "1", "1", "3");
mapXGenHQ[28][3] = new Array("0E0", "3", "0", "3");
mapXGenHQ[29][3] = new Array("0T0", "2", "2", "0");
mapXGenHQ[30][3] = new Array("0T0", "0", "0", "0");
mapXGenHQ[31][3] = new Array("0T0", "0", "3", "0");
mapXGenHQ[32][3] = new Array("0T0", "2", "0", "0");
mapXGenHQ[33][3] = new Array("0T0", "0", "1", "0");
mapXGenHQ[34][3] = new Array("0W3", "1", "0", "3");
mapXGenHQ[0][4] = new Array("0W8", "1", "2", "3");
mapXGenHQ[1][4] = new Array("0F1", "2", "2", "0");
mapXGenHQ[2][4] = new Array("0F0", "2", "0", "0");
mapXGenHQ[3][4] = new Array("0X3", "1", "0", "5");
mapXGenHQ[4][4] = new Array("0X4", "0", "0", "4");
mapXGenHQ[5][4] = new Array("0X5", "3", "0", "5");
mapXGenHQ[6][4] = new Array("0F0", "2", "0", "0");
mapXGenHQ[7][4] = new Array("0F0", "0", "1", "0");
mapXGenHQ[8][4] = new Array("0E0", "3", "2", "3");
mapXGenHQ[9][4] = new Array("0E1", "3", "0", "3");
mapXGenHQ[10][4] = new Array("0F0", "0", "1", "0");
mapXGenHQ[11][4] = new Array("0F1", "0", "1", "0");
mapXGenHQ[12][4] = new Array("0W0", "1", "0", "3");
mapXGenHQ[13][4] = new Array("0W6", "3", "0", "3");
mapXGenHQ[14][4] = new Array("0T0", "0", "0", "0");
mapXGenHQ[15][4] = new Array("0T0", "0", "0", "0");
mapXGenHQ[16][4] = new Array("0T0", "0", "0", "0");
mapXGenHQ[17][4] = new Array("0T0", "0", "0", "0");
mapXGenHQ[18][4] = new Array("0T0", "0", "0", "0");
mapXGenHQ[19][4] = new Array("0T0", "0", "0", "0");
mapXGenHQ[20][4] = new Array("0P4", "0", "0", "6");
mapXGenHQ[21][4] = new Array("0P5", "0", "0", "8");
mapXGenHQ[22][4] = new Array("0T0", "0", "1", "0");
mapXGenHQ[23][4] = new Array("0W8", "1", "1", "3");
mapXGenHQ[24][4] = new Array("0W9", "3", "0", "3");
mapXGenHQ[25][4] = new Array("0F0", "2", "1", "0");
mapXGenHQ[26][4] = new Array("0F0", "0", "2", "0");
mapXGenHQ[27][4] = new Array("0W0", "1", "0", "3");
mapXGenHQ[28][4] = new Array("0C0", "3", "0", "3");
mapXGenHQ[29][4] = new Array("0W0", "2", "0", "3");
mapXGenHQ[30][4] = new Array("0W0", "2", "0", "3");
mapXGenHQ[31][4] = new Array("0W0", "2", "0", "3");
mapXGenHQ[32][4] = new Array("0W0", "2", "0", "3");
mapXGenHQ[33][4] = new Array("0W0", "2", "0", "3");
mapXGenHQ[34][4] = new Array("0C0", "2", "0", "3");
mapXGenHQ[0][5] = new Array("0W8", "3", "0", "3");
mapXGenHQ[1][5] = new Array("0F0", "0", "1", "0");
mapXGenHQ[2][5] = new Array("0F1", "0", "1", "0");
mapXGenHQ[3][5] = new Array("0Y0", "1", "0", "5");
mapXGenHQ[4][5] = new Array("0Y1", "0", "0", "4");
mapXGenHQ[5][5] = new Array("0Y2", "3", "0", "5");
mapXGenHQ[6][5] = new Array("0F0", "2", "0", "0");
mapXGenHQ[7][5] = new Array("0F1", "0", "0", "0");
mapXGenHQ[8][5] = new Array("0V1", "1", "0", "3");
mapXGenHQ[9][5] = new Array("0W6", "3", "0", "3");
mapXGenHQ[10][5] = new Array("0F1", "0", "0", "0");
mapXGenHQ[11][5] = new Array("0F0", "0", "2", "0");
mapXGenHQ[12][5] = new Array("0W0", "1", "0", "3");
mapXGenHQ[13][5] = new Array("0W0", "3", "0", "3");
mapXGenHQ[14][5] = new Array("0T0", "0", "1", "0");
mapXGenHQ[15][5] = new Array("0T0", "0", "0", "0");
mapXGenHQ[16][5] = new Array("0T0", "2", "2", "0");
mapXGenHQ[17][5] = new Array("0T0", "0", "1", "0");
mapXGenHQ[18][5] = new Array("0T0", "2", "0", "0");
mapXGenHQ[19][5] = new Array("0T0", "0", "0", "0");
mapXGenHQ[20][5] = new Array("0T0", "2", "2", "0");
mapXGenHQ[21][5] = new Array("0T0", "0", "0", "0");
mapXGenHQ[22][5] = new Array("0T0", "2", "2", "0");
mapXGenHQ[23][5] = new Array("0W0", "1", "0", "3");
mapXGenHQ[24][5] = new Array("0W0", "3", "1", "3");
mapXGenHQ[25][5] = new Array("0F0", "0", "2", "0");
mapXGenHQ[26][5] = new Array("0F1", "0", "1", "0");
mapXGenHQ[27][5] = new Array("0W6", "1", "0", "3");
mapXGenHQ[28][5] = new Array("0C0", "0", "0", "3");
mapXGenHQ[29][5] = new Array("0W3", "0", "0", "3");
mapXGenHQ[30][5] = new Array("0W1", "0", "0", "3");
mapXGenHQ[31][5] = new Array("0V0", "0", "0", "3");
mapXGenHQ[32][5] = new Array("0V0", "0", "1", "3");
mapXGenHQ[33][5] = new Array("0W1", "0", "0", "3");
mapXGenHQ[34][5] = new Array("0C0", "1", "0", "3");
mapXGenHQ[0][6] = new Array("0W0", "3", "0", "3");
mapXGenHQ[1][6] = new Array("0F0", "2", "1", "0");
mapXGenHQ[2][6] = new Array("0F0", "2", "0", "0");
mapXGenHQ[3][6] = new Array("0Y3", "1", "0", "5");
mapXGenHQ[4][6] = new Array("0Y4", "0", "0", "4");
mapXGenHQ[5][6] = new Array("0Y5", "3", "0", "5");
mapXGenHQ[6][6] = new Array("0F0", "0", "0", "0");
mapXGenHQ[7][6] = new Array("0F0", "2", "0", "0");
mapXGenHQ[8][6] = new Array("0E1", "1", "0", "3");
mapXGenHQ[9][6] = new Array("0E1", "3", "1", "3");
mapXGenHQ[10][6] = new Array("0F0", "0", "3", "0");
mapXGenHQ[11][6] = new Array("0F1", "2", "0", "0");
mapXGenHQ[12][6] = new Array("0W0", "1", "0", "3");
mapXGenHQ[13][6] = new Array("0C0", "3", "0", "3");
mapXGenHQ[14][6] = new Array("0E1", "2", "1", "3");
mapXGenHQ[15][6] = new Array("0T0", "2", "0", "0");
mapXGenHQ[16][6] = new Array("0E0", "2", "0", "3");
mapXGenHQ[17][6] = new Array("0W0", "2", "0", "3");
mapXGenHQ[18][6] = new Array("0V1", "2", "0", "3");
mapXGenHQ[19][6] = new Array("0W0", "2", "0", "3");
mapXGenHQ[20][6] = new Array("0E0", "2", "1", "3");
mapXGenHQ[21][6] = new Array("0T0", "0", "0", "0");
mapXGenHQ[22][6] = new Array("0E1", "2", "0", "3");
mapXGenHQ[23][6] = new Array("0C0", "2", "0", "3");
mapXGenHQ[24][6] = new Array("0W0", "3", "0", "3");
mapXGenHQ[25][6] = new Array("0F1", "0", "3", "0");
mapXGenHQ[26][6] = new Array("0F0", "2", "2", "0");
mapXGenHQ[27][6] = new Array("0W0", "1", "0", "3");
mapXGenHQ[28][6] = new Array("0W0", "3", "0", "3");
mapXGenHQ[29][6] = new Array("0R0", "2", "1", "0");
mapXGenHQ[30][6] = new Array("0R4", "0", "0", "6");
mapXGenHQ[31][6] = new Array("0R0", "1", "3", "0");
mapXGenHQ[32][6] = new Array("0R0", "1", "2", "0");
mapXGenHQ[33][6] = new Array("0R4", "0", "0", "6");
mapXGenHQ[34][6] = new Array("0W0", "1", "0", "3");
mapXGenHQ[0][7] = new Array("0W2", "3", "0", "3");
mapXGenHQ[1][7] = new Array("0F0", "2", "0", "0");
mapXGenHQ[2][7] = new Array("0F1", "0", "2", "0");
mapXGenHQ[3][7] = new Array("0F0", "0", "2", "0");
mapXGenHQ[4][7] = new Array("0F0", "2", "0", "0");
mapXGenHQ[5][7] = new Array("0F0", "0", "1", "0");
mapXGenHQ[6][7] = new Array("0F1", "2", "3", "0");
mapXGenHQ[7][7] = new Array("0F0", "2", "1", "0");
mapXGenHQ[8][7] = new Array("0F0", "0", "0", "0");
mapXGenHQ[9][7] = new Array("0F0", "0", "0", "0");
mapXGenHQ[10][7] = new Array("0F1", "2", "0", "0");
mapXGenHQ[11][7] = new Array("0F0", "0", "3", "0");
mapXGenHQ[12][7] = new Array("0I0", "2", "0", "3");
mapXGenHQ[13][7] = new Array("0W0", "0", "0", "3");
mapXGenHQ[14][7] = new Array("0E1", "0", "0", "3");
mapXGenHQ[15][7] = new Array("0F7", "0", "0", "0");
mapXGenHQ[16][7] = new Array("0E1", "0", "1", "3");
mapXGenHQ[17][7] = new Array("0W0", "0", "0", "3");
mapXGenHQ[18][7] = new Array("0W0", "0", "0", "3");
mapXGenHQ[19][7] = new Array("0W9", "0", "0", "3");
mapXGenHQ[20][7] = new Array("0E1", "0", "0", "3");
mapXGenHQ[21][7] = new Array("0F7", "0", "0", "0");
mapXGenHQ[22][7] = new Array("0E3", "0", "1", "3");
mapXGenHQ[23][7] = new Array("0W1", "0", "0", "3");
mapXGenHQ[24][7] = new Array("0I0", "1", "0", "3");
mapXGenHQ[25][7] = new Array("0F0", "0", "0", "0");
mapXGenHQ[26][7] = new Array("0F0", "0", "0", "0");
mapXGenHQ[27][7] = new Array("0V1", "1", "0", "3");
mapXGenHQ[28][7] = new Array("0W9", "3", "0", "3");
mapXGenHQ[29][7] = new Array("0R0", "1", "3", "0");
mapXGenHQ[30][7] = new Array("0R0", "2", "0", "0");
mapXGenHQ[31][7] = new Array("0R0", "1", "0", "0");
mapXGenHQ[32][7] = new Array("0R0", "1", "3", "0");
mapXGenHQ[33][7] = new Array("0R0", "2", "2", "0");
mapXGenHQ[34][7] = new Array("0W0", "1", "0", "3");
mapXGenHQ[0][8] = new Array("0W0", "3", "0", "3");
mapXGenHQ[1][8] = new Array("0F0", "0", "1", "0");
mapXGenHQ[2][8] = new Array("0F0", "0", "1", "0");
mapXGenHQ[3][8] = new Array("0F1", "0", "0", "0");
mapXGenHQ[4][8] = new Array("0F0", "0", "1", "0");
mapXGenHQ[5][8] = new Array("0F0", "0", "0", "0");
mapXGenHQ[6][8] = new Array("0F0", "2", "2", "0");
mapXGenHQ[7][8] = new Array("0F0", "0", "0", "0");
mapXGenHQ[8][8] = new Array("0E1", "1", "1", "3");
mapXGenHQ[9][8] = new Array("0E1", "3", "0", "3");
mapXGenHQ[10][8] = new Array("0F0", "0", "0", "0");
mapXGenHQ[11][8] = new Array("0F0", "2", "1", "0");
mapXGenHQ[12][8] = new Array("0F1", "0", "0", "0");
mapXGenHQ[13][8] = new Array("0F0", "2", "0", "0");
mapXGenHQ[14][8] = new Array("0F0", "0", "0", "0");
mapXGenHQ[15][8] = new Array("0F1", "2", "1", "0");
mapXGenHQ[16][8] = new Array("0F0", "0", "0", "0");
mapXGenHQ[17][8] = new Array("0F1", "2", "3", "0");
mapXGenHQ[18][8] = new Array("0F0", "0", "0", "0");
mapXGenHQ[19][8] = new Array("0F0", "0", "0", "0");
mapXGenHQ[20][8] = new Array("0F1", "2", "3", "0");
mapXGenHQ[21][8] = new Array("0F0", "0", "0", "0");
mapXGenHQ[22][8] = new Array("0F8", "0", "1", "7");
mapXGenHQ[23][8] = new Array("0F2", "0", "0", "6");
mapXGenHQ[24][8] = new Array("0F0", "0", "0", "0");
mapXGenHQ[25][8] = new Array("0F1", "2", "1", "0");
mapXGenHQ[26][8] = new Array("0F0", "0", "0", "0");
mapXGenHQ[27][8] = new Array("0E1", "1", "0", "3");
mapXGenHQ[28][8] = new Array("0E4", "3", "1", "3");
mapXGenHQ[29][8] = new Array("0R0", "1", "1", "0");
mapXGenHQ[30][8] = new Array("0R0", "2", "0", "0");
mapXGenHQ[31][8] = new Array("0R0", "2", "0", "0");
mapXGenHQ[32][8] = new Array("0R0", "1", "2", "0");
mapXGenHQ[33][8] = new Array("0R8", "1", "1", "0");
mapXGenHQ[34][8] = new Array("0W2", "1", "1", "3");
mapXGenHQ[0][9] = new Array("0C0", "3", "0", "3");
mapXGenHQ[1][9] = new Array("0W0", "2", "0", "3");
mapXGenHQ[2][9] = new Array("0W6", "2", "0", "3");
mapXGenHQ[3][9] = new Array("0E1", "2", "1", "3");
mapXGenHQ[4][9] = new Array("0F0", "0", "0", "0");
mapXGenHQ[5][9] = new Array("0E5", "2", "0", "3");
mapXGenHQ[6][9] = new Array("0W0", "2", "0", "3");
mapXGenHQ[7][9] = new Array("0W0", "2", "0", "3");
mapXGenHQ[8][9] = new Array("0C0", "2", "0", "3");
mapXGenHQ[9][9] = new Array("0C0", "3", "0", "3");
mapXGenHQ[10][9] = new Array("0W0", "2", "0", "3");
mapXGenHQ[11][9] = new Array("0V1", "2", "0", "3");
mapXGenHQ[12][9] = new Array("0E5", "2", "1", "3");
mapXGenHQ[13][9] = new Array("0F0", "0", "0", "0");
mapXGenHQ[14][9] = new Array("0E1", "2", "0", "3");
mapXGenHQ[15][9] = new Array("0W6", "2", "0", "3");
mapXGenHQ[16][9] = new Array("0W0", "2", "0", "3");
mapXGenHQ[17][9] = new Array("0W0", "2", "0", "3");
mapXGenHQ[18][9] = new Array("0I0", "0", "0", "3");
mapXGenHQ[19][9] = new Array("0F0", "2", "3", "0");
mapXGenHQ[20][9] = new Array("0F1", "2", "0", "0");
mapXGenHQ[21][9] = new Array("0F0", "0", "0", "0");
mapXGenHQ[22][9] = new Array("0F1", "2", "0", "0");
mapXGenHQ[23][9] = new Array("0F0", "0", "0", "0");
mapXGenHQ[24][9] = new Array("0F1", "2", "0", "0");
mapXGenHQ[25][9] = new Array("0F1", "0", "1", "0");
mapXGenHQ[26][9] = new Array("0F0", "0", "0", "0");
mapXGenHQ[27][9] = new Array("0F6", "0", "0", "0");
mapXGenHQ[28][9] = new Array("0R0", "2", "3", "0");
mapXGenHQ[29][9] = new Array("0R0", "0", "0", "0");
mapXGenHQ[30][9] = new Array("0R0", "1", "3", "0");
mapXGenHQ[31][9] = new Array("0R0", "2", "1", "0");
mapXGenHQ[32][9] = new Array("0R0", "3", "1", "0");
mapXGenHQ[33][9] = new Array("0R0", "3", "3", "0");
mapXGenHQ[34][9] = new Array("0W0", "1", "0", "3");
mapXGenHQ[0][10] = new Array("0C0", "0", "0", "3");
mapXGenHQ[1][10] = new Array("0W5", "0", "0", "3");
mapXGenHQ[2][10] = new Array("0W0", "0", "0", "3");
mapXGenHQ[3][10] = new Array("0E3", "0", "0", "3");
mapXGenHQ[4][10] = new Array("0F1", "0", "0", "0");
mapXGenHQ[5][10] = new Array("0E4", "0", "1", "3");
mapXGenHQ[6][10] = new Array("0W3", "0", "0", "3");
mapXGenHQ[7][10] = new Array("0W0", "0", "0", "3");
mapXGenHQ[8][10] = new Array("0J0", "0", "1", "3");
mapXGenHQ[9][10] = new Array("0Q0", "0", "0", "3");
mapXGenHQ[10][10] = new Array("0W0", "0", "0", "3");
mapXGenHQ[11][10] = new Array("0W9", "0", "0", "3");
mapXGenHQ[12][10] = new Array("0E1", "0", "0", "3");
mapXGenHQ[13][10] = new Array("0F0", "0", "0", "0");
mapXGenHQ[14][10] = new Array("0E3", "0", "1", "3");
mapXGenHQ[15][10] = new Array("0W3", "0", "0", "3");
mapXGenHQ[16][10] = new Array("0W1", "0", "0", "3");
mapXGenHQ[17][10] = new Array("0C0", "1", "0", "3");
mapXGenHQ[18][10] = new Array("0W0", "3", "0", "3");
mapXGenHQ[19][10] = new Array("0F1", "2", "1", "0");
mapXGenHQ[20][10] = new Array("0F1", "0", "0", "0");
mapXGenHQ[21][10] = new Array("0F0", "0", "1", "0");
mapXGenHQ[22][10] = new Array("0F1", "2", "2", "0");
mapXGenHQ[23][10] = new Array("0F0", "0", "2", "0");
mapXGenHQ[24][10] = new Array("0F1", "2", "2", "0");
mapXGenHQ[25][10] = new Array("0F1", "0", "1", "0");
mapXGenHQ[26][10] = new Array("0F0", "0", "2", "0");
mapXGenHQ[27][10] = new Array("0F6", "0", "0", "0");
mapXGenHQ[28][10] = new Array("0R0", "2", "3", "0");
mapXGenHQ[29][10] = new Array("0R0", "0", "0", "0");
mapXGenHQ[30][10] = new Array("0R0", "1", "3", "0");
mapXGenHQ[31][10] = new Array("0R0", "2", "1", "0");
mapXGenHQ[32][10] = new Array("0R0", "3", "3", "0");
mapXGenHQ[33][10] = new Array("0R0", "2", "1", "0");
mapXGenHQ[34][10] = new Array("0V4", "1", "0", "3");
mapXGenHQ[0][11] = new Array("0W0", "3", "0", "3");
mapXGenHQ[1][11] = new Array("0F5", "0", "0", "6");
mapXGenHQ[2][11] = new Array("0F1", "2", "3", "0");
mapXGenHQ[3][11] = new Array("0F8", "0", "0", "7");
mapXGenHQ[4][11] = new Array("0F0", "2", "0", "0");
mapXGenHQ[5][11] = new Array("0F0", "0", "0", "0");
mapXGenHQ[6][11] = new Array("0F0", "0", "0", "0");
mapXGenHQ[7][11] = new Array("0J2", "1", "1", "6");
mapXGenHQ[8][11] = new Array("0J1", "2", "2", "3");
mapXGenHQ[9][11] = new Array("0Q1", "0", "0", "3");
mapXGenHQ[10][11] = new Array("0Q2", "3", "0", "8");
mapXGenHQ[11][11] = new Array("0F1", "0", "0", "0");
mapXGenHQ[12][11] = new Array("0F0", "0", "1", "0");
mapXGenHQ[13][11] = new Array("0F0", "0", "0", "0");
mapXGenHQ[14][11] = new Array("0F8", "0", "1", "7");
mapXGenHQ[15][11] = new Array("0F0", "0", "2", "0");
mapXGenHQ[16][11] = new Array("0F2", "0", "0", "6");
mapXGenHQ[17][11] = new Array("0W0", "1", "0", "3");
mapXGenHQ[18][11] = new Array("0W3", "3", "0", "3");
mapXGenHQ[19][11] = new Array("0F1", "0", "2", "0");
mapXGenHQ[20][11] = new Array("0F1", "2", "3", "0");
mapXGenHQ[21][11] = new Array("0F1", "0", "1", "0");
mapXGenHQ[22][11] = new Array("0F0", "0", "2", "0");
mapXGenHQ[23][11] = new Array("0F1", "0", "0", "0");
mapXGenHQ[24][11] = new Array("0F1", "2", "2", "0");
mapXGenHQ[25][11] = new Array("0F0", "0", "0", "0");
mapXGenHQ[26][11] = new Array("0F1", "0", "0", "0");
mapXGenHQ[27][11] = new Array("0E1", "1", "1", "3");
mapXGenHQ[28][11] = new Array("0E0", "3", "0", "3");
mapXGenHQ[29][11] = new Array("0R0", "0", "2", "0");
mapXGenHQ[30][11] = new Array("0R0", "2", "2", "0");
mapXGenHQ[31][11] = new Array("0R0", "1", "3", "0");
mapXGenHQ[32][11] = new Array("0R0", "2", "2", "0");
mapXGenHQ[33][11] = new Array("0R4", "1", "1", "6");
mapXGenHQ[34][11] = new Array("0W1", "1", "1", "3");
mapXGenHQ[0][12] = new Array("0W9", "3", "0", "3");
mapXGenHQ[1][12] = new Array("0F0", "0", "1", "0");
mapXGenHQ[2][12] = new Array("0F1", "0", "0", "0");
mapXGenHQ[3][12] = new Array("0F0", "0", "1", "0");
mapXGenHQ[4][12] = new Array("0F0", "0", "0", "0");
mapXGenHQ[5][12] = new Array("0F0", "0", "1", "0");
mapXGenHQ[6][12] = new Array("0F0", "0", "0", "0");
mapXGenHQ[7][12] = new Array("0J4", "0", "1", "3");
mapXGenHQ[8][12] = new Array("0J3", "0", "1", "3");
mapXGenHQ[9][12] = new Array("0Q3", "0", "0", "3");
mapXGenHQ[10][12] = new Array("0Q4", "0", "0", "3");
mapXGenHQ[11][12] = new Array("0F1", "0", "0", "0");
mapXGenHQ[12][12] = new Array("0F0", "0", "1", "0");
mapXGenHQ[13][12] = new Array("0F1", "2", "3", "0");
mapXGenHQ[14][12] = new Array("0F0", "0", "2", "0");
mapXGenHQ[15][12] = new Array("0F0", "2", "2", "0");
mapXGenHQ[16][12] = new Array("0F0", "0", "3", "0");
mapXGenHQ[17][12] = new Array("0W0", "1", "0", "3");
mapXGenHQ[18][12] = new Array("0W0", "3", "0", "3");
mapXGenHQ[19][12] = new Array("0F1", "0", "0", "0");
mapXGenHQ[20][12] = new Array("0F1", "2", "0", "0");
mapXGenHQ[21][12] = new Array("0F0", "0", "0", "0");
mapXGenHQ[22][12] = new Array("0F0", "0", "1", "0");
mapXGenHQ[23][12] = new Array("0F0", "2", "2", "0");
mapXGenHQ[24][12] = new Array("0F0", "0", "0", "0");
mapXGenHQ[25][12] = new Array("0F1", "2", "1", "0");
mapXGenHQ[26][12] = new Array("0F5", "2", "0", "6");
mapXGenHQ[27][12] = new Array("0W0", "1", "0", "3");
mapXGenHQ[28][12] = new Array("0W0", "3", "0", "3");
mapXGenHQ[29][12] = new Array("0R0", "2", "1", "0");
mapXGenHQ[30][12] = new Array("0R0", "0", "3", "0");
mapXGenHQ[31][12] = new Array("0R0", "2", "3", "0");
mapXGenHQ[32][12] = new Array("0R0", "1", "1", "0");
mapXGenHQ[33][12] = new Array("0R5", "3", "3", "6");
mapXGenHQ[34][12] = new Array("0V7", "0", "0", "3");
mapXGenHQ[0][13] = new Array("0W2", "3", "0", "3");
mapXGenHQ[1][13] = new Array("0F0", "2", "1", "0");
mapXGenHQ[2][13] = new Array("0F0", "0", "1", "0");
mapXGenHQ[3][13] = new Array("0F0", "2", "0", "0");
mapXGenHQ[4][13] = new Array("0F1", "2", "0", "0");
mapXGenHQ[5][13] = new Array("0F0", "2", "0", "0");
mapXGenHQ[6][13] = new Array("0F0", "0", "0", "0");
mapXGenHQ[7][13] = new Array("0F0", "2", "0", "0");
mapXGenHQ[8][13] = new Array("0F0", "2", "2", "0");
mapXGenHQ[9][13] = new Array("0F0", "2", "0", "0");
mapXGenHQ[10][13] = new Array("0F0", "2", "0", "0");
mapXGenHQ[11][13] = new Array("0F0", "0", "1", "0");
mapXGenHQ[12][13] = new Array("0F0", "0", "1", "0");
mapXGenHQ[13][13] = new Array("0F1", "2", "1", "0");
mapXGenHQ[14][13] = new Array("0F0", "0", "0", "0");
mapXGenHQ[15][13] = new Array("0F0", "0", "2", "0");
mapXGenHQ[16][13] = new Array("0F0", "0", "1", "0");
mapXGenHQ[17][13] = new Array("0W0", "1", "0", "3");
mapXGenHQ[18][13] = new Array("0C0", "3", "0", "3");
mapXGenHQ[19][13] = new Array("0W0", "2", "0", "3");
mapXGenHQ[20][13] = new Array("0V1", "2", "0", "3");
mapXGenHQ[21][13] = new Array("0E1", "2", "1", "3");
mapXGenHQ[22][13] = new Array("0F7", "2", "0", "0");
mapXGenHQ[23][13] = new Array("0E1", "2", "0", "3");
mapXGenHQ[24][13] = new Array("0W6", "2", "0", "3");
mapXGenHQ[25][13] = new Array("0W0", "2", "0", "3");
mapXGenHQ[26][13] = new Array("0W5", "2", "0", "3");
mapXGenHQ[27][13] = new Array("0C0", "2", "0", "3");
mapXGenHQ[28][13] = new Array("0W7", "3", "0", "3");
mapXGenHQ[29][13] = new Array("0R0", "2", "0", "0");
mapXGenHQ[30][13] = new Array("0R0", "2", "0", "0");
mapXGenHQ[31][13] = new Array("0R0", "1", "2", "0");
mapXGenHQ[32][13] = new Array("0R0", "0", "0", "0");
mapXGenHQ[33][13] = new Array("0R5", "3", "2", "6");
mapXGenHQ[34][13] = new Array("0V7", "0", "2", "3");
mapXGenHQ[0][14] = new Array("0W0", "3", "0", "3");
mapXGenHQ[1][14] = new Array("0Q5", "2", "0", "8");
mapXGenHQ[2][14] = new Array("0Q4", "3", "0", "3");
mapXGenHQ[3][14] = new Array("0F0", "0", "0", "0");
mapXGenHQ[4][14] = new Array("0F0", "0", "0", "0");
mapXGenHQ[5][14] = new Array("0F1", "2", "2", "0");
mapXGenHQ[6][14] = new Array("0F0", "0", "2", "0");
mapXGenHQ[7][14] = new Array("0J6", "2", "1", "7");
mapXGenHQ[8][14] = new Array("0F1", "2", "1", "0");
mapXGenHQ[9][14] = new Array("0F0", "0", "3", "0");
mapXGenHQ[10][14] = new Array("0Q6", "2", "0", "7");
mapXGenHQ[11][14] = new Array("0F1", "2", "0", "0");
mapXGenHQ[12][14] = new Array("0F1", "2", "2", "0");
mapXGenHQ[13][14] = new Array("0F0", "2", "2", "0");
mapXGenHQ[14][14] = new Array("0F0", "0", "0", "0");
mapXGenHQ[15][14] = new Array("0J4", "1", "1", "3");
mapXGenHQ[16][14] = new Array("0J5", "2", "0", "6");
mapXGenHQ[17][14] = new Array("0W6", "1", "0", "3");
mapXGenHQ[18][14] = new Array("0C0", "0", "0", "3");
mapXGenHQ[19][14] = new Array("0W1", "0", "0", "3");
mapXGenHQ[20][14] = new Array("0W5", "0", "0", "3");
mapXGenHQ[21][14] = new Array("0E1", "0", "0", "3");
mapXGenHQ[22][14] = new Array("0R0", "1", "1", "0");
mapXGenHQ[23][14] = new Array("0E0", "0", "1", "3");
mapXGenHQ[24][14] = new Array("0W8", "0", "0", "3");
mapXGenHQ[25][14] = new Array("0W7", "0", "0", "3");
mapXGenHQ[26][14] = new Array("0W1", "0", "1", "3");
mapXGenHQ[27][14] = new Array("0C0", "1", "0", "3");
mapXGenHQ[28][14] = new Array("0W8", "3", "0", "3");
mapXGenHQ[29][14] = new Array("0R0", "2", "0", "0");
mapXGenHQ[30][14] = new Array("0G0", "3", "0", "5");
mapXGenHQ[31][14] = new Array("0R0", "2", "0", "0");
mapXGenHQ[32][14] = new Array("0R0", "1", "0", "0");
mapXGenHQ[33][14] = new Array("0R7", "1", "1", "0");
mapXGenHQ[34][14] = new Array("0W4", "1", "1", "3");
mapXGenHQ[0][15] = new Array("0Q0", "3", "0", "3");
mapXGenHQ[1][15] = new Array("0Q1", "3", "0", "3");
mapXGenHQ[2][15] = new Array("0Q3", "3", "0", "3");
mapXGenHQ[3][15] = new Array("0F0", "2", "0", "0");
mapXGenHQ[4][15] = new Array("0F0", "2", "1", "0");
mapXGenHQ[5][15] = new Array("0F0", "0", "0", "0");
mapXGenHQ[6][15] = new Array("0J2", "1", "1", "8");
mapXGenHQ[7][15] = new Array("0J1", "0", "1", "3");
mapXGenHQ[8][15] = new Array("0F0", "0", "2", "0");
mapXGenHQ[9][15] = new Array("0F1", "2", "0", "0");
mapXGenHQ[10][15] = new Array("0Q1", "2", "3", "3");
mapXGenHQ[11][15] = new Array("0Q2", "3", "0", "8");
mapXGenHQ[12][15] = new Array("0F1", "0", "2", "0");
mapXGenHQ[13][15] = new Array("0F1", "0", "3", "0");
mapXGenHQ[14][15] = new Array("0F0", "0", "0", "0");
mapXGenHQ[15][15] = new Array("0J3", "1", "1", "3");
mapXGenHQ[16][15] = new Array("0J1", "1", "1", "3");
mapXGenHQ[17][15] = new Array("0J0", "1", "1", "3");
mapXGenHQ[18][15] = new Array("0W0", "3", "0", "3");
mapXGenHQ[19][15] = new Array("0R4", "0", "0", "6");
mapXGenHQ[20][15] = new Array("0R1", "0", "0", "6");
mapXGenHQ[21][15] = new Array("0R0", "0", "0", "0");
mapXGenHQ[22][15] = new Array("0R0", "1", "3", "0");
mapXGenHQ[23][15] = new Array("0R0", "1", "0", "0");
mapXGenHQ[24][15] = new Array("0R0", "0", "0", "0");
mapXGenHQ[25][15] = new Array("0R0", "1", "1", "0");
mapXGenHQ[26][15] = new Array("0R4", "0", "1", "6");
mapXGenHQ[27][15] = new Array("0W0", "1", "0", "3");
mapXGenHQ[28][15] = new Array("0W0", "3", "0", "3");
mapXGenHQ[29][15] = new Array("0G1", "1", "0", "5");
mapXGenHQ[30][15] = new Array("0G2", "3", "0", "5");
mapXGenHQ[31][15] = new Array("0R0", "0", "0", "0");
mapXGenHQ[32][15] = new Array("0R0", "2", "1", "0");
mapXGenHQ[33][15] = new Array("0R5", "1", "0", "6");
mapXGenHQ[34][15] = new Array("0V7", "0", "0", "3");
mapXGenHQ[0][16] = new Array("0J0", "3", "1", "3");
mapXGenHQ[1][16] = new Array("0J1", "3", "1", "3");
mapXGenHQ[2][16] = new Array("0J3", "3", "1", "3");
mapXGenHQ[3][16] = new Array("0F0", "0", "0", "0");
mapXGenHQ[4][16] = new Array("0F0", "0", "0", "0");
mapXGenHQ[5][16] = new Array("0F1", "2", "2", "0");
mapXGenHQ[6][16] = new Array("0J4", "0", "1", "3");
mapXGenHQ[7][16] = new Array("0J3", "0", "1", "3");
mapXGenHQ[8][16] = new Array("0F0", "0", "0", "0");
mapXGenHQ[9][16] = new Array("0F1", "0", "2", "0");
mapXGenHQ[10][16] = new Array("0Q3", "0", "0", "3");
mapXGenHQ[11][16] = new Array("0Q4", "0", "0", "3");
mapXGenHQ[12][16] = new Array("0F1", "0", "0", "0");
mapXGenHQ[13][16] = new Array("0F0", "0", "0", "0");
mapXGenHQ[14][16] = new Array("0F0", "0", "0", "0");
mapXGenHQ[15][16] = new Array("0Q3", "1", "0", "3");
mapXGenHQ[16][16] = new Array("0Q1", "1", "0", "3");
mapXGenHQ[17][16] = new Array("0Q0", "1", "0", "3");
mapXGenHQ[18][16] = new Array("0V2", "2", "2", "3");
mapXGenHQ[19][16] = new Array("0R3", "3", "0", "6");
mapXGenHQ[20][16] = new Array("0R0", "2", "0", "0");
mapXGenHQ[21][16] = new Array("0R0", "1", "2", "0");
mapXGenHQ[22][16] = new Array("0R0", "3", "1", "0");
mapXGenHQ[23][16] = new Array("0R0", "2", "1", "0");
mapXGenHQ[24][16] = new Array("0R0", "3", "0", "0");
mapXGenHQ[25][16] = new Array("0R0", "0", "0", "0");
mapXGenHQ[26][16] = new Array("0R2", "1", "0", "6");
mapXGenHQ[27][16] = new Array("0V2", "0", "0", "3");
mapXGenHQ[28][16] = new Array("0G3", "0", "0", "3");
mapXGenHQ[29][16] = new Array("0G4", "0", "0", "4");
mapXGenHQ[30][16] = new Array("0G5", "3", "0", "5");
mapXGenHQ[31][16] = new Array("0R0", "1", "1", "0");
mapXGenHQ[32][16] = new Array("0R0", "3", "2", "0");
mapXGenHQ[33][16] = new Array("0R6", "1", "1", "6");
mapXGenHQ[34][16] = new Array("0V8", "0", "0", "3");
mapXGenHQ[0][17] = new Array("0W6", "3", "0", "3");
mapXGenHQ[1][17] = new Array("0J5", "0", "0", "6");
mapXGenHQ[2][17] = new Array("0J4", "3", "1", "3");
mapXGenHQ[3][17] = new Array("0F0", "2", "0", "0");
mapXGenHQ[4][17] = new Array("0F1", "0", "1", "0");
mapXGenHQ[5][17] = new Array("0F0", "0", "0", "0");
mapXGenHQ[6][17] = new Array("0Q4", "2", "0", "3");
mapXGenHQ[7][17] = new Array("0Q3", "2", "0", "3");
mapXGenHQ[8][17] = new Array("0F0", "2", "3", "0");
mapXGenHQ[9][17] = new Array("0F0", "0", "2", "0");
mapXGenHQ[10][17] = new Array("0J3", "2", "1", "3");
mapXGenHQ[11][17] = new Array("0J4", "2", "1", "3");
mapXGenHQ[12][17] = new Array("0F1", "0", "2", "0");
mapXGenHQ[13][17] = new Array("0F0", "2", "0", "0");
mapXGenHQ[14][17] = new Array("0F0", "2", "1", "0");
mapXGenHQ[15][17] = new Array("0Q4", "1", "0", "3");
mapXGenHQ[16][17] = new Array("0Q2", "1", "0", "8");
mapXGenHQ[17][17] = new Array("0W0", "1", "0", "3");
mapXGenHQ[18][17] = new Array("0V3", "2", "2", "3");
mapXGenHQ[19][17] = new Array("0R2", "3", "0", "6");
mapXGenHQ[20][17] = new Array("0R0", "2", "3", "0");
mapXGenHQ[21][17] = new Array("0R0", "3", "0", "0");
mapXGenHQ[22][17] = new Array("0R0", "2", "1", "0");
mapXGenHQ[23][17] = new Array("0R0", "3", "3", "0");
mapXGenHQ[24][17] = new Array("0R0", "3", "3", "0");
mapXGenHQ[25][17] = new Array("0R0", "2", "0", "0");
mapXGenHQ[26][17] = new Array("0R2", "1", "1", "6");
mapXGenHQ[27][17] = new Array("0V2", "0", "2", "3");
mapXGenHQ[28][17] = new Array("0W1", "3", "1", "3");
mapXGenHQ[29][17] = new Array("0R4", "3", "1", "6");
mapXGenHQ[30][17] = new Array("0R0", "1", "0", "0");
mapXGenHQ[31][17] = new Array("0R0", "1", "1", "0");
mapXGenHQ[32][17] = new Array("0R0", "1", "2", "0");
mapXGenHQ[33][17] = new Array("0R6", "1", "0", "6");
mapXGenHQ[34][17] = new Array("0V8", "0", "2", "3");
mapXGenHQ[0][18] = new Array("0W0", "3", "0", "3");
mapXGenHQ[1][18] = new Array("0F0", "0", "3", "0");
mapXGenHQ[2][18] = new Array("0F0", "2", "0", "0");
mapXGenHQ[3][18] = new Array("0F0", "0", "0", "0");
mapXGenHQ[4][18] = new Array("0F0", "0", "2", "0");
mapXGenHQ[5][18] = new Array("0F0", "0", "0", "0");
mapXGenHQ[6][18] = new Array("0Q2", "1", "0", "8");
mapXGenHQ[7][18] = new Array("0Q1", "0", "3", "3");
mapXGenHQ[8][18] = new Array("0F0", "0", "2", "0");
mapXGenHQ[9][18] = new Array("0F0", "2", "0", "0");
mapXGenHQ[10][18] = new Array("0J1", "2", "1", "3");
mapXGenHQ[11][18] = new Array("0J2", "3", "1", "6");
mapXGenHQ[12][18] = new Array("0F0", "2", "0", "0");
mapXGenHQ[13][18] = new Array("0F0", "0", "0", "0");
mapXGenHQ[14][18] = new Array("0F1", "0", "0", "0");
mapXGenHQ[15][18] = new Array("0F0", "0", "0", "0");
mapXGenHQ[16][18] = new Array("0F1", "2", "1", "0");
mapXGenHQ[17][18] = new Array("0E1", "1", "0", "3");
mapXGenHQ[18][18] = new Array("0E5", "3", "1", "3");
mapXGenHQ[19][18] = new Array("0R0", "3", "1", "0");
mapXGenHQ[20][18] = new Array("0R0", "3", "0", "0");
mapXGenHQ[21][18] = new Array("0R0", "2", "0", "0");
mapXGenHQ[22][18] = new Array("0R0", "3", "0", "0");
mapXGenHQ[23][18] = new Array("0R0", "3", "0", "0");
mapXGenHQ[24][18] = new Array("0R0", "1", "2", "0");
mapXGenHQ[25][18] = new Array("0R0", "1", "1", "0");
mapXGenHQ[26][18] = new Array("0R0", "2", "1", "0");
mapXGenHQ[27][18] = new Array("0V0", "1", "0", "3");
mapXGenHQ[28][18] = new Array("0V7", "2", "2", "3");
mapXGenHQ[29][18] = new Array("0R5", "3", "1", "6");
mapXGenHQ[30][18] = new Array("0R0", "1", "2", "0");
mapXGenHQ[31][18] = new Array("0R0", "1", "2", "0");
mapXGenHQ[32][18] = new Array("0R0", "2", "2", "0");
mapXGenHQ[33][18] = new Array("0R5", "3", "2", "6");
mapXGenHQ[34][18] = new Array("0V7", "0", "2", "3");
mapXGenHQ[0][19] = new Array("0W4", "3", "0", "3");
mapXGenHQ[1][19] = new Array("0F0", "2", "1", "0");
mapXGenHQ[2][19] = new Array("0F1", "0", "1", "0");
mapXGenHQ[3][19] = new Array("0F0", "0", "0", "0");
mapXGenHQ[4][19] = new Array("0F1", "0", "0", "0");
mapXGenHQ[5][19] = new Array("0F0", "0", "3", "0");
mapXGenHQ[6][19] = new Array("0F1", "0", "0", "0");
mapXGenHQ[7][19] = new Array("0Q6", "0", "0", "7");
mapXGenHQ[8][19] = new Array("0F1", "0", "0", "0");
mapXGenHQ[9][19] = new Array("0F0", "0", "1", "0");
mapXGenHQ[10][19] = new Array("0J6", "0", "1", "7");
mapXGenHQ[11][19] = new Array("0F1", "2", "2", "0");
mapXGenHQ[12][19] = new Array("0F1", "2", "2", "0");
mapXGenHQ[13][19] = new Array("0F1", "0", "1", "0");
mapXGenHQ[14][19] = new Array("0F1", "2", "0", "0");
mapXGenHQ[15][19] = new Array("0F1", "2", "0", "0");
mapXGenHQ[16][19] = new Array("0F0", "0", "1", "0");
mapXGenHQ[17][19] = new Array("0F6", "0", "0", "0");
mapXGenHQ[18][19] = new Array("0R0", "1", "0", "0");
mapXGenHQ[19][19] = new Array("0R0", "3", "2", "0");
mapXGenHQ[20][19] = new Array("0R0", "2", "3", "0");
mapXGenHQ[21][19] = new Array("0R0", "1", "1", "0");
mapXGenHQ[22][19] = new Array("0R0", "3", "1", "0");
mapXGenHQ[23][19] = new Array("0R0", "3", "1", "0");
mapXGenHQ[24][19] = new Array("0R0", "2", "3", "0");
mapXGenHQ[25][19] = new Array("0R0", "2", "0", "0");
mapXGenHQ[26][19] = new Array("0R0", "1", "2", "0");
mapXGenHQ[27][19] = new Array("0V0", "3", "2", "3");
mapXGenHQ[28][19] = new Array("0V8", "2", "0", "3");
mapXGenHQ[29][19] = new Array("0R6", "3", "1", "6");
mapXGenHQ[30][19] = new Array("0R0", "3", "0", "0");
mapXGenHQ[31][19] = new Array("0R0", "2", "0", "0");
mapXGenHQ[32][19] = new Array("0R0", "1", "0", "0");
mapXGenHQ[33][19] = new Array("0R8", "1", "1", "0");
mapXGenHQ[34][19] = new Array("0W2", "1", "1", "3");
mapXGenHQ[0][20] = new Array("0W0", "3", "0", "3");
mapXGenHQ[1][20] = new Array("0F0", "0", "0", "0");
mapXGenHQ[2][20] = new Array("0F0", "0", "1", "0");
mapXGenHQ[3][20] = new Array("0F0", "0", "0", "0");
mapXGenHQ[4][20] = new Array("0F1", "2", "0", "0");
mapXGenHQ[5][20] = new Array("0F0", "2", "0", "0");
mapXGenHQ[6][20] = new Array("0F0", "0", "0", "0");
mapXGenHQ[7][20] = new Array("0F1", "0", "0", "0");
mapXGenHQ[8][20] = new Array("0F0", "0", "1", "0");
mapXGenHQ[9][20] = new Array("0F0", "2", "0", "0");
mapXGenHQ[10][20] = new Array("0F1", "2", "3", "0");
mapXGenHQ[11][20] = new Array("0F1", "0", "1", "0");
mapXGenHQ[12][20] = new Array("0F1", "0", "1", "0");
mapXGenHQ[13][20] = new Array("0F1", "0", "1", "0");
mapXGenHQ[14][20] = new Array("0F0", "0", "3", "0");
mapXGenHQ[15][20] = new Array("0F0", "2", "1", "0");
mapXGenHQ[16][20] = new Array("0F0", "0", "0", "0");
mapXGenHQ[17][20] = new Array("0F6", "0", "0", "0");
mapXGenHQ[18][20] = new Array("0R0", "1", "0", "0");
mapXGenHQ[19][20] = new Array("0R0", "1", "3", "0");
mapXGenHQ[20][20] = new Array("0R0", "0", "1", "0");
mapXGenHQ[21][20] = new Array("0R0", "3", "1", "0");
mapXGenHQ[22][20] = new Array("0D0", "1", "0", "6");
mapXGenHQ[23][20] = new Array("0D1", "0", "0", "4");
mapXGenHQ[24][20] = new Array("0D2", "3", "0", "6");
mapXGenHQ[25][20] = new Array("0R0", "1", "3", "0");
mapXGenHQ[26][20] = new Array("0R2", "1", "0", "6");
mapXGenHQ[27][20] = new Array("0V2", "0", "0", "3");
mapXGenHQ[28][20] = new Array("0V7", "2", "0", "3");
mapXGenHQ[29][20] = new Array("0R5", "3", "0", "6");
mapXGenHQ[30][20] = new Array("0R0", "1", "0", "0");
mapXGenHQ[31][20] = new Array("0R0", "1", "3", "0");
mapXGenHQ[32][20] = new Array("0R0", "0", "1", "0");
mapXGenHQ[33][20] = new Array("0R0", "0", "1", "0");
mapXGenHQ[34][20] = new Array("0W7", "1", "1", "3");
mapXGenHQ[0][21] = new Array("0W0", "3", "0", "3");
mapXGenHQ[1][21] = new Array("0J3", "2", "1", "3");
mapXGenHQ[2][21] = new Array("0J4", "2", "1", "3");
mapXGenHQ[3][21] = new Array("0F0", "0", "1", "0");
mapXGenHQ[4][21] = new Array("0F1", "2", "0", "0");
mapXGenHQ[5][21] = new Array("0F1", "0", "2", "0");
mapXGenHQ[6][21] = new Array("0F0", "0", "0", "0");
mapXGenHQ[7][21] = new Array("0Q4", "2", "0", "3");
mapXGenHQ[8][21] = new Array("0Q3", "2", "0", "3");
mapXGenHQ[9][21] = new Array("0J3", "2", "1", "3");
mapXGenHQ[10][21] = new Array("0J4", "2", "1", "3");
mapXGenHQ[11][21] = new Array("0F0", "0", "0", "0");
mapXGenHQ[12][21] = new Array("0F1", "0", "2", "0");
mapXGenHQ[13][21] = new Array("0F1", "0", "1", "0");
mapXGenHQ[14][21] = new Array("0F0", "0", "0", "0");
mapXGenHQ[15][21] = new Array("0J4", "2", "0", "3");
mapXGenHQ[16][21] = new Array("0J3", "2", "0", "3");
mapXGenHQ[17][21] = new Array("0E1", "1", "1", "3");
mapXGenHQ[18][21] = new Array("0E5", "3", "0", "3");
mapXGenHQ[19][21] = new Array("0R0", "2", "0", "0");
mapXGenHQ[20][21] = new Array("0R0", "3", "2", "0");
mapXGenHQ[21][21] = new Array("0R0", "1", "2", "0");
mapXGenHQ[22][21] = new Array("0D3", "1", "0", "8");
mapXGenHQ[23][21] = new Array("0D4", "0", "0", "5");
mapXGenHQ[24][21] = new Array("0D5", "0", "0", "8");
mapXGenHQ[25][21] = new Array("0R0", "1", "3", "0");
mapXGenHQ[26][21] = new Array("0R3", "1", "0", "6");
mapXGenHQ[27][21] = new Array("0V3", "0", "0", "3");
mapXGenHQ[28][21] = new Array("0V1", "3", "0", "3");
mapXGenHQ[29][21] = new Array("0R0", "1", "0", "0");
mapXGenHQ[30][21] = new Array("0R0", "2", "2", "0");
mapXGenHQ[31][21] = new Array("0R0", "0", "1", "0");
mapXGenHQ[32][21] = new Array("0R0", "3", "0", "0");
mapXGenHQ[33][21] = new Array("0R0", "2", "2", "0");
mapXGenHQ[34][21] = new Array("0W7", "1", "0", "3");
mapXGenHQ[0][22] = new Array("0W0", "3", "0", "3");
mapXGenHQ[1][22] = new Array("0J1", "2", "1", "3");
mapXGenHQ[2][22] = new Array("0J2", "3", "1", "6");
mapXGenHQ[3][22] = new Array("0F0", "0", "0", "0");
mapXGenHQ[4][22] = new Array("0F1", "0", "1", "0");
mapXGenHQ[5][22] = new Array("0F0", "2", "3", "0");
mapXGenHQ[6][22] = new Array("0F0", "0", "0", "0");
mapXGenHQ[7][22] = new Array("0Q2", "1", "0", "8");
mapXGenHQ[8][22] = new Array("0Q1", "2", "0", "3");
mapXGenHQ[9][22] = new Array("0J1", "0", "2", "3");
mapXGenHQ[10][22] = new Array("0J2", "3", "1", "6");
mapXGenHQ[11][22] = new Array("0F0", "0", "0", "0");
mapXGenHQ[12][22] = new Array("0F1", "0", "3", "0");
mapXGenHQ[13][22] = new Array("0F1", "2", "1", "0");
mapXGenHQ[14][22] = new Array("0F0", "0", "0", "0");
mapXGenHQ[15][22] = new Array("0J2", "1", "0", "6");
mapXGenHQ[16][22] = new Array("0J1", "0", "3", "3");
mapXGenHQ[17][22] = new Array("0W0", "1", "0", "3");
mapXGenHQ[18][22] = new Array("0W0", "3", "0", "3");
mapXGenHQ[19][22] = new Array("0R0", "2", "0", "0");
mapXGenHQ[20][22] = new Array("0R0", "1", "1", "0");
mapXGenHQ[21][22] = new Array("0R0", "2", "2", "0");
mapXGenHQ[22][22] = new Array("0R0", "1", "1", "0");
mapXGenHQ[23][22] = new Array("0R0", "2", "3", "0");
mapXGenHQ[24][22] = new Array("0R0", "2", "2", "0");
mapXGenHQ[25][22] = new Array("0R0", "2", "3", "0");
mapXGenHQ[26][22] = new Array("0R0", "0", "0", "0");
mapXGenHQ[27][22] = new Array("0W0", "1", "0", "3");
mapXGenHQ[28][22] = new Array("0W0", "3", "0", "3");
mapXGenHQ[29][22] = new Array("0R0", "1", "0", "0");
mapXGenHQ[30][22] = new Array("0R0", "0", "3", "0");
mapXGenHQ[31][22] = new Array("0R0", "1", "0", "0");
mapXGenHQ[32][22] = new Array("0R0", "0", "3", "0");
mapXGenHQ[33][22] = new Array("0R0", "0", "3", "0");
mapXGenHQ[34][22] = new Array("0W0", "1", "0", "3");
mapXGenHQ[0][23] = new Array("0C0", "3", "0", "3");
mapXGenHQ[1][23] = new Array("0J0", "2", "1", "3");
mapXGenHQ[2][23] = new Array("0W2", "2", "0", "3");
mapXGenHQ[3][23] = new Array("0W0", "2", "0", "3");
mapXGenHQ[4][23] = new Array("0V4", "2", "0", "3");
mapXGenHQ[5][23] = new Array("0W0", "2", "0", "3");
mapXGenHQ[6][23] = new Array("0W2", "2", "0", "3");
mapXGenHQ[7][23] = new Array("0W0", "2", "0", "3");
mapXGenHQ[8][23] = new Array("0Q0", "2", "0", "3");
mapXGenHQ[9][23] = new Array("0J0", "2", "1", "3");
mapXGenHQ[10][23] = new Array("0W4", "2", "0", "3");
mapXGenHQ[11][23] = new Array("0W0", "2", "0", "3");
mapXGenHQ[12][23] = new Array("0W7", "2", "0", "3");
mapXGenHQ[13][23] = new Array("0W8", "2", "0", "3");
mapXGenHQ[14][23] = new Array("0W4", "2", "0", "3");
mapXGenHQ[15][23] = new Array("0W9", "2", "0", "3");
mapXGenHQ[16][23] = new Array("0J0", "2", "0", "3");
mapXGenHQ[17][23] = new Array("0C0", "2", "0", "3");
mapXGenHQ[18][23] = new Array("0C0", "3", "0", "3");
mapXGenHQ[19][23] = new Array("0V4", "2", "0", "3");
mapXGenHQ[20][23] = new Array("0W0", "2", "0", "3");
mapXGenHQ[21][23] = new Array("0W2", "2", "0", "3");
mapXGenHQ[22][23] = new Array("0V1", "2", "0", "3");
mapXGenHQ[23][23] = new Array("0W0", "2", "0", "3");
mapXGenHQ[24][23] = new Array("0V1", "2", "0", "3");
mapXGenHQ[25][23] = new Array("0W4", "2", "0", "3");
mapXGenHQ[26][23] = new Array("0W0", "2", "0", "3");
mapXGenHQ[27][23] = new Array("0C0", "2", "0", "3");
mapXGenHQ[28][23] = new Array("0C0", "3", "0", "3");
mapXGenHQ[29][23] = new Array("0V5", "2", "0", "3");
mapXGenHQ[30][23] = new Array("0V6", "2", "0", "3");
mapXGenHQ[31][23] = new Array("0V6", "2", "1", "3");
mapXGenHQ[32][23] = new Array("0V5", "2", "1", "3");
mapXGenHQ[33][23] = new Array("0V1", "2", "0", "3");
mapXGenHQ[34][23] = new Array("0C0", "2", "0", "3");
mapXGenHQPlayerSpawns = new Array();
var x = 0;
while (x < 8) {
mapXGenHQPlayerSpawns[x] = new Array();
x++;
}
mapXGenHQPlayerSpawns[0][0] = 200;
mapXGenHQPlayerSpawns[0][1] = 925;
mapXGenHQPlayerSpawns[1][0] = 325;
mapXGenHQPlayerSpawns[1][1] = 350;
mapXGenHQPlayerSpawns[2][0] = 700;
mapXGenHQPlayerSpawns[2][1] = 950;
mapXGenHQPlayerSpawns[3][0] = 1275;
mapXGenHQPlayerSpawns[3][1] = 275;
mapXGenHQPlayerSpawns[4][0] = 1600;
mapXGenHQPlayerSpawns[4][1] = 700;
mapXGenHQPlayerSpawns[5][0] = 1080;
mapXGenHQPlayerSpawns[5][1] = 150;
mapXGenHQPlayerSpawns[6][0] = 0;
mapXGenHQPlayerSpawns[6][1] = 0;
mapXGenHQPlayerSpawns[7][0] = 0;
mapXGenHQPlayerSpawns[7][1] = 0;
mapXGenHQWeaponSpawns = new Array();
var x = 0;
while (x < 8) {
mapXGenHQWeaponSpawns[x] = new Array();
x++;
}
mapXGenHQWeaponSpawns[0][0] = 100;
mapXGenHQWeaponSpawns[0][1] = 100;
mapXGenHQWeaponSpawns[0][2] = 6;
mapXGenHQWeaponSpawns[0][3] = 30;
mapXGenHQWeaponSpawns[1][0] = 100;
mapXGenHQWeaponSpawns[1][1] = 600;
mapXGenHQWeaponSpawns[1][2] = 3;
mapXGenHQWeaponSpawns[1][3] = 15;
mapXGenHQWeaponSpawns[2][0] = 725;
mapXGenHQWeaponSpawns[2][1] = 600;
mapXGenHQWeaponSpawns[2][2] = 3;
mapXGenHQWeaponSpawns[2][3] = 15;
mapXGenHQWeaponSpawns[3][0] = 425;
mapXGenHQWeaponSpawns[3][1] = 825;
mapXGenHQWeaponSpawns[3][2] = 6;
mapXGenHQWeaponSpawns[3][3] = 30;
mapXGenHQWeaponSpawns[4][0] = 1225;
mapXGenHQWeaponSpawns[4][1] = 850;
mapXGenHQWeaponSpawns[4][2] = 3;
mapXGenHQWeaponSpawns[4][3] = 15;
mapXGenHQWeaponSpawns[5][0] = 1550;
mapXGenHQWeaponSpawns[5][1] = 400;
mapXGenHQWeaponSpawns[5][2] = 3;
mapXGenHQWeaponSpawns[5][3] = 15;
mapXGenHQWeaponSpawns[6][0] = 1575;
mapXGenHQWeaponSpawns[6][1] = 100;
mapXGenHQWeaponSpawns[6][2] = 6;
mapXGenHQWeaponSpawns[6][3] = 30;
mapXGenHQWeaponSpawns[7][0] = 725;
mapXGenHQWeaponSpawns[7][1] = 150;
mapXGenHQWeaponSpawns[7][2] = 6;
mapXGenHQWeaponSpawns[7][3] = 30;
Frame 2
function titleFrame() {
socketCallsTitle();
if (tutorialTimer != -1) {
tutorialTimer = tutorialTimer + 33.33;
}
if (tutorialTimer > tutorialDelay) {
logMileStone("autoStartedTutorial");
startTutorial();
}
if (!pingTestComplete) {
windowPingMC.msgText0.text = (windowPingMC.msgText1.text = getPingingText());
}
}
function startTutorial() {
tutorialTimer = -1;
tutorialMC.gotoAndPlay(2);
titleMenuMC._visible = (titleVersionMC._visible = (title00MC._visible = (title01MC._visible = 0)));
}
function tutorialDone() {
SFXSATheme.start(5.65);
tutorialTimer = 0;
tutorialMC.gotoAndStop(1);
titleBG._visible = (titleVersionMC._visible = (title00MC._visible = (title01MC._visible = 1)));
titleMenuMC._visible = pingTestComplete;
windowPingMC._visible = !pingTestComplete;
}
function doneSAIntro() {
if (autoQuickStart) {
pressQuickStart();
}
SAIntroMC._visible = 0;
}
function bypassSAIntro(userInitiatedBypass) {
if (!introBypassed) {
introBypassed = true;
if (userInitiatedBypass) {
logMileStone("userBypassedIntro");
SFXSATheme.stop();
SFXSATheme.start(5.65);
SAIntroMC.gotoAndPlay(171);
}
titleBG._visible = (titleVersionMC._visible = (title00MC._visible = (title01MC._visible = 1)));
titleMenuMC._visible = pingTestComplete;
windowPingMC._visible = !pingTestComplete;
title00MC.gotoAndPlay(2);
title01MC.gotoAndPlay(2);
tutorialTimer = 0;
}
}
function pressQuickStart() {
logMileStone("pressQuickStart");
tutorialTimer = -1;
titleMenuMC._visible = 0;
player.nom = getRandomName();
player.col = generateColor(300, 600);
player.hexColor = RGBToHex(player.col.rb, player.col.gb, player.col.bb, 100);
player.pKills = 0;
initializeArenaVariables();
var _local1 = 0;
while (_local1 < serverName.length) {
serverConnectTrys[_local1] = 0;
_local1++;
}
connectAction = "quickStart";
connectToServer(serverNum, portNum);
}
function performLogIn() {
tutorialTimer = -1;
titleMenuMC._visible = 0;
var _local1 = 0;
while (_local1 < serverName.length) {
serverConnectTrys[_local1] = 0;
_local1++;
}
connectAction = "lobby";
connectToServer(serverNum, portNum);
}
function pressTutorial() {
logMileStone("userStartedTutorial");
SFXSATheme.stop();
startTutorial();
}
function pressLogIn() {
tutorialTimer = -1;
titleMenuMC._visible = 0;
_root.attachMovie("window470LogInMC", "windowMC", 200000);
windowMC._x = 40;
windowMC._y = 170;
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++;
}
}
function pressLogInOK(n, p) {
showLogInTextBoxes(false);
var _local2 = null;
n = n.toLowerCase();
p = p.toLowerCase();
if (n.length > 2) {
if (isLegalAccountString(n)) {
if (containsNoFilteredLanguage(n)) {
if (isLegalAccountString(p)) {
if (p.length > 2) {
uName = n;
uPass = p;
var replyDataPHP = new LoadVars();
var _local5 = new LoadVars();
_local5.action = "authenticate";
_local5.username = n;
_local5.userpass = p;
_local5.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
var _local2 = this.usercol;
var _local5 = Number(trim(_local2.substr(0, 3)));
var _local6 = Number(trim(_local2.substr(3, 3)));
var _local4 = Number(trim(_local2.substr(6, 3)));
color = new Object();
color = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"75", ab:"0"};
color.rb = _local5;
color.gb = _local6;
color.bb = _local4;
player.col = color;
player.hexColor = RGBToHex(_local5, _local6, _local4, 100);
player.nom = n;
var replyDataPHP = new LoadVars();
var _local3 = new LoadVars();
_local3.action = "player_stats";
_local3.username = n;
_local3.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
player.pRoundsStarted = int(this.rounds);
player.pKills = int(this.kills);
player.userLevel = int(this.user_level);
windowMC.removeMovieClip();
window2MC.removeMovieClip();
performLogIn();
} else {
displayLogInMessage(logInText[3]);
}
} else {
displayLogInMessage(logInText[3]);
}
};
} else if (this.result == "banned") {
displayLogInMessage(logInText[5]);
} else {
displayLogInMessage(logInText[4]);
}
} else {
displayLogInMessage(logInText[3]);
}
};
} else {
_local2 = accountText[9];
}
} else {
_local2 = accountText[7];
}
} else {
_local2 = accountText[12];
}
} else {
_local2 = accountText[8];
}
} else {
_local2 = accountText[11];
}
if (_local2 != null) {
displayLogInMessage(_local2);
}
}
function pressLogInClose() {
tutorialTimer = 0;
windowMC.removeMovieClip();
titleMenuMC._visible = 1;
}
function pressCreateAccount() {
tutorialTimer = -1;
titleMenuMC._visible = 0;
_root.attachMovie("window470CreateAccountMC", "windowMC", 200000);
windowMC._x = 40;
windowMC._y = 170;
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.charMC.legsMC.gotoAndStop(3);
windowMC.charMC.legsMC.legs.play();
windowMC.crossHairMC._x = random(int(windowMC.colorPickerMC._width)) + windowMC.colorPickerMC._x;
windowMC.crossHairMC._y = random(int(windowMC.colorPickerMC._height)) + windowMC.colorPickerMC._y;
}
function pressCreateAccountClose() {
tutorialTimer = 0;
windowMC.removeMovieClip();
titleMenuMC._visible = 1;
}
function pressCreateAccountOK(n, p, p2, e, r, g, b) {
showAccountTextBoxes(false);
var _local2 = null;
n = n.toLowerCase();
p = p.toLowerCase();
p2 = p2.toLowerCase();
e = e.toLowerCase();
if (n.length > 2) {
if (isLegalAccountString(n)) {
if (containsNoFilteredLanguage(n)) {
if (isLegalAccountString(p)) {
if (p.length > 2) {
if (p == p2) {
uName = n;
uPass = p;
var _local5 = (pad(r, 3).toString() + pad(g, 3).toString()) + pad(b, 3).toString();
var replyDataPHP = new LoadVars();
var _local4 = new LoadVars();
_local4.action = "create";
_local4.username = n;
_local4.userpass = p;
_local4.usercol = _local5;
_local4.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
color = new Object();
color = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"75", ab:"0"};
color.rb = r;
color.gb = g;
color.bb = b;
player.col = color;
player.hexColor = RGBToHex(r, g, b, 100);
player.nom = n;
var replyDataPHP = new LoadVars();
var _local2 = new LoadVars();
_local2.action = "player_stats";
_local2.username = n;
_local2.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
player.pRoundsStarted = int(this.rounds);
player.pKills = int(this.kills);
windowMC.removeMovieClip();
window2MC.removeMovieClip();
performLogIn();
} else {
displayCreateAccountMessage(accountText[13]);
}
} else {
displayCreateAccountMessage(accountText[13]);
}
};
} else {
displayCreateAccountMessage(accountText[14]);
}
} else {
displayCreateAccountMessage(accountText[13]);
}
};
} else {
_local2 = accountText[10];
}
} else {
_local2 = accountText[9];
}
} else {
_local2 = accountText[7];
}
} else {
_local2 = accountText[12];
}
} else {
_local2 = accountText[8];
}
} else {
_local2 = accountText[11];
}
if (_local2 != null) {
displayCreateAccountMessage(_local2);
}
}
function showAccountTextBoxes(b) {
windowMC.usernameText._visible = (windowMC.pass0Text._visible = (windowMC.pass1Text._visible = (windowMC.emailText._visible = (windowMC.colorPickerMC._visible = (windowMC.btnXMC._visible = (windowMC.btnOKMC._visible = b))))));
}
function showLogInTextBoxes(b) {
windowMC.usernameText._visible = (windowMC.pass0Text._visible = (windowMC.btnXMC._visible = (windowMC.btnOKMC._visible = b)));
}
function displayCreateAccountMessage(msg) {
_root.attachMovie("window304CreateAccountMessageMC", "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 10;
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
}
function displayLogInMessage(msg) {
_root.attachMovie("window304LogInMessageMC", "window2MC", 200001);
window2MC._x = 123;
window2MC._y = 10;
window2MC.msgText0.text = (window2MC.msgText1.text = msg);
}
function closeCreateAccountMessage() {
showAccountTextBoxes(true);
}
function closeLogInMessage() {
showLogInTextBoxes(true);
}
stop();
_quality = "BEST";
stopAllSounds();
bypassPing();
if (!isCurrentVersion) {
gotoFrame = "deadEnd";
msgText = versionNotCurrentText;
gotoAndStop ("preReturnFrame");
}
titleVersionMC.versionText.text = (titleVersionMC.versionText0.text = (titleVersionMC.versionText1.text = (titleVersionMC.versionText2.text = (titleVersionMC.versionText3.text = "v " + gameVersion))));
titleBG._visible = (titleMenuMC._visible = (titleVersionMC._visible = (title00MC._visible = (title01MC._visible = (instructionsMC._visible = (loadGameMC._visible = 0))))));
var introBypassed = false;
gameArea = 0;
if (skipIntro) {
bypassSAIntro(true);
} else {
SFXSATheme.start();
}
if (titleAction == "quickStart") {
titleAction = null;
pressQuickStart();
SAIntroMC._visible = 0;
SFXSATheme.stop();
}
Instance of Symbol 461 MovieClip "titleVersionMC" in Frame 2
on (release) {
_parent.buttonFX("press");
_parent.clickThrough("http://www.XGenStudios.com/", 6);
}
on (rollOver) {
_parent.buttonFX("over", this, 255, 510);
}
on (releaseOutside, rollOut) {
_parent.buttonFX("out", this, 75, 25);
}
Instance of Symbol 599 MovieClip "SAIntroMC" in Frame 2
on (press) {
_parent.bypassSAIntro(true);
}
Instance of Symbol 334 MovieClip [emptyMC] in Frame 2
onClipEvent (enterFrame) {
_parent.titleFrame();
}
Instance of Symbol 935 MovieClip "tutorialMC" in Frame 2
on (press) {
_parent.tutorialDone();
}
Frame 3
function lobbyInitializeComponents() {
var sFontName = tDummy.getTextFormat(0, 1).font;
tDummy._visible = 0;
_global.styles.TextArea.setStyle("fontFamily", "FFF Astro");
_global.style.setStyle("themeColor", "haloBlue");
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 = (userBox.backgroundColor = (arenaBox.backgroundColor = "0x4E657B"));
serverBox.openDuration = 150;
userBox.color = "0x224581";
userBox.defaultIcon = "rank1MC";
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 = (BTNJoinPrivateMC.cacheAsBitmap = (BTNCreateGameMC.cacheAsBitmap = (BTNLogOutMC.cacheAsBitmap = optionUseBitmapCaching)))))))));
chatPrivateBtnLobbyMC._visible = 0;
BTNJoinGameMC._visible = 0;
refreshRoomsIntervalID = setInterval(sendRoomListRequest, refreshRoomsDelay);
lobbyOneSecondIntervalID = setInterval(lobbyOneSecondTick, 1000);
}
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 {
lobbySelectServerPerform();
}
}
}
function lobbySelectServerPerform() {
var _local1 = (lobbyText[33] + serverName[joinServerNum]) + lobbyText[31];
displayLobbyMessage(_local1, "window304ChangeServerMessageMC", true);
connectAction = "lobbyChangeServer";
connectToServer(joinServerNum, portNum);
}
function lobbySelectArena() {
var _local3 = false;
if ((arenaBox.selectedIndex != null) && (arenaBox.enabled)) {
userBox.selectedIndex = null;
var _local2 = arenaBox.getItemAt(arenaBox.selectedIndex).data;
var _local1 = 0;
while (_local1 < roomsLobby.length) {
if (roomsLobby[_local1][2] == _local2) {
_local3 = true;
BTNJoinGameMC._visible = 1;
info2Text.htmlText = (info2Text0.text = "");
joinRoomName = _local2;
sendRoomDetailRequest(_local2, "lobbyDisplayRoomDetail");
_local1 = roomsLobby.length;
}
_local1++;
}
}
if ((!_local3) && (userBox.selectedIndex == null)) {
BTNJoinGameMC._visible = 0;
infoText.htmlText = (infoText0.text = (info2Text.htmlText = (info2Text0.text = "")));
}
}
function lobbyDisplayRoomDetail(mapID, cycleMode, numPlayers, rTime) {
var _local5 = "#A8D3FF";
_local5 = "#A8D3FF";
info2Text.htmlText = (colorHtml(lobbyText[19], _local5) + lobbyText[Number(cycleMode) + 11]) + "<br>";
info2Text0.text = (lobbyText[19] + lobbyText[Number(cycleMode) + 11]) + "\r";
if (((Number(rTime) - summaryTime) - adTime) <= 0) {
var _local6 = (colorHtml(lobbyText[30], _local5) + rTime) + lobbyText[31];
var _local7 = (lobbyText[30] + rTime) + lobbyText[31];
} else {
var _local6 = colorHtml(lobbyText[29], _local5) + formatTime((Number(rTime) - summaryTime) - adTime);
var _local7 = lobbyText[29] + formatTime((Number(rTime) - summaryTime) - adTime);
}
infoText.htmlText = ((((colorHtml(lobbyText[28], _local5) + numPlayers) + "/") + maxNumPlayers) + "<br>") + _local6;
infoText0.text = ((((lobbyText[28] + numPlayers) + "/") + maxNumPlayers) + "\r") + _local7;
var _local2 = new LoadVars();
var _local4 = new LoadVars();
if (serverType[serverNum] == "COMPATIBILITY") {
_local4.sendAndLoad("maps/" + mapListCompat[charToNum(mapID)], _local2, "POST");
} else {
_local4.sendAndLoad("maps/" + mapList[charToNum(mapID)], _local2, "POST");
}
_local2.onLoad = function (success) {
var _local2 = "#A8D3FF";
info2Text.htmlText = info2Text.htmlText + (colorHtml(lobbyText[18], _local2) + this.inf.substring(6, this.inf.length));
info2Text0.text = info2Text0.text + (lobbyText[18] + this.inf.substring(6, this.inf.length));
};
}
function lobbySelectUser() {
if ((userBox.selectedIndex != null) && (userBox.enabled)) {
arenaBox.selectedIndex = null;
if (userBox.selectedIndex != 0) {
chatPrivateBtnLobbyMC._visible = 1;
} else {
chatPrivateBtnLobbyMC._visible = 0;
}
var _local9 = false;
var _local8 = userBox.getItemAt(userBox.selectedIndex).label;
var _local2 = 0;
while (_local2 < remotePlayersLobby.length) {
if (remotePlayersLobby[_local2][1] == _local8) {
_local9 = true;
var _local3 = "#A8D3FF";
infoText.htmlText = (((colorHtml(lobbyText[24], _local3) + remotePlayersLobby[_local2][3]) + "<br>") + colorHtml(lobbyText[25], _local3)) + "-";
infoText0.text = (((lobbyText[24] + remotePlayersLobby[_local2][3]) + "\r") + lobbyText[25]) + "-";
info2Text.htmlText = (((colorHtml(lobbyText[26], _local3) + "-/-") + "<br>") + colorHtml(lobbyText[27], _local3)) + "-";
info2Text0.text = (((lobbyText[26] + "-/-") + "\r") + lobbyText[27]) + "-";
var replyDataPHP = new LoadVars();
var _local4 = new LoadVars();
_local4.action = "player_stats";
_local4.username = _local8;
_local4.sendAndLoad(phpURL, replyDataPHP, "POST");
replyDataPHP.onLoad = function (success) {
if (success) {
if (this.result == "success") {
var _local2 = "#A8D3FF";
if ((int(this.losses) == 0) && (int(this.wins) == 0)) {
var _local3 = 0;
} else if ((int(this.losses) == 0) && (int(this.wins) > 0)) {
var _local3 = int(this.wins);
} else {
var _local3 = int((int(this.wins) / int(this.losses)) * 100) / 100;
}
if ((int(this.deaths) == 0) && (int(this.kills) == 0)) {
var _local5 = 0;
} else if ((int(this.deaths) == 0) && (int(this.kills) > 0)) {
var _local3 = int(this.kills);
} else {
var _local5 = int((int(this.kills) / int(this.deaths)) * 100) / 100;
}
if (int(this.rounds) == 0) {
var _local4 = "0";
} else {
var _local4 = (((int(this.wins) + int(this.losses)) + " [") + int(((int(this.wins) + int(this.losses)) / int(this.rounds)) * 100)) + "%]";
}
infoText.htmlText = (((colorHtml(lobbyText[24], _local2) + this.kills) + "<br>") + colorHtml(lobbyText[25], _local2)) + _local5;
infoText0.text = (((lobbyText[24] + this.kills) + "\r") + lobbyText[25]) + _local5;
info2Text.htmlText = (((colorHtml(lobbyText[26], _local2) + _local4) + "<br>") + colorHtml(lobbyText[27], _local2)) + _local3;
info2Text0.text = (((lobbyText[26] + _local4) + "\r") + lobbyText[27]) + _local3;
}
}
};
}
_local2++;
}
} else {
chatPrivateBtnLobbyMC._visible = 0;
}
}
function pressJoinGame() {
noInputTime = 0;
if ((arenaBox.selectedIndex != null) && (arenaBox.enabled)) {
var _local2 = arenaBox.getItemAt(arenaBox.selectedIndex).data;
var _local1 = 0;
while (_local1 < roomsLobby.length) {
if (roomsLobby[_local1][2] == _local2) {
joinRoomName = _local2;
sendRoomDetailRequest(_local2, "lobbyJoinGame");
_local1 = roomsLobby.length;
}
_local1++;
}
}
}
function lobbyJoinGame(mapID, cycleMode) {
windowMC.removeMovieClip();
window2MC.removeMovieClip();
mapNum = charToNum(mapID);
roomCycleMode = cycleMode;
sendJoinRoom(joinRoomName);
initializeArenaVariables();
clearLobbyGarbage();
startNextRound(true);
}
function pressJoinPrivate() {
noInputTime = 0;
showLobbyButtons(false);
_root.attachMovie("window470JoinPrivateMC", "windowMC", 200000);
windowMC._x = 45;
windowMC._y = 45;
windowMC.cacheAsBitmap = optionUseBitmapCaching;
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 (containsNonSpaceChar(n)) {
if (isLegalRoomString(n)) {
joinRoomName = n;
sendRoomDetailRequest(n, "lobbyJoinGamePrivate");
joinPrivateTimeoutIntervalID = setInterval(joinPrivateTimeout, serverTimeout);
} else {
_local1 = lobbyText[16];
}
} else {
_local1 = lobbyText[36];
}
} else {
_local1 = lobbyText[15];
}
if (_local1 != null) {
displayLobbyMessage(_local1, "window304JoinPrivateMessageMC");
}
}
function joinPrivateTimeout() {
clearInterval(joinPrivateTimeoutIntervalID);
displayLobbyMessage(lobbyText[23], "window304JoinPrivateMessageMC");
}
function pressCreateGame() {
noInputTime = 0;
showLobbyButtons(false);
_root.attachMovie("window470CreateGameMC", "windowMC", 200000);
windowMC._x = 45;
windowMC._y = 45;
windowMC.cacheAsBitmap = optionUseBitmapCaching;
createGameMapRandomize = true;
var sFontName = tDummy.getTextFormat(0, 1).font;
var objectList = new Array("mapBox", "radioPublic", "radioPrivate", "radioCycle", "radioRandom", "radioRepeat");
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++;
}
}
function populateMapListBox(n) {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
if (serverType[serverNum] == "COMPATIBILITY") {
_local3.sendAndLoad("maps/" + mapListCompat[n], _local2, "POST");
} else {
_local3.sendAndLoad("maps/" + mapList[n], _local2, "POST");
}
_local2.onLoad = function (success) {
windowMC.mapBox.addItem(this.inf.substring(6, this.inf.length));
if (serverType[serverNum] == "COMPATIBILITY") {
if (windowMC.mapBox.length < mapListCompat.length) {
if (createGameMapRandomize) {
windowMC.mapBox.selectedIndex = random(windowMC.mapBox.length);
}
populateMapListBox(windowMC.mapBox.length);
}
} else if (windowMC.mapBox.length < mapList.length) {
if (createGameMapRandomize) {
windowMC.mapBox.selectedIndex = random(windowMC.mapBox.length);
}
populateMapListBox(windowMC.mapBox.length);
}
};
}
function pressCreateGameOK(n, isPrivate, map, cycleMode) {
n = n.toLowerCase();
showGameTextBoxes(false);
var _local1 = null;
if (n.length > 2) {
if (containsNonSpaceChar(n)) {
if (isLegalRoomString(n)) {
if (containsNoFilteredLanguage(n)) {
errorAction = "createGameFail";
windowMC.removeMovieClip();
window2MC.removeMovieClip();
mapCycleList = getMapCycleList(map, cycleMode);
joinRoomAction = "sendMapCycleList";
sendCreateRoom(map, cycleMode, Number(isPrivate), n);
initializeArenaVariables();
clearLobbyGarbage();
startNextRound(true);
} 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 = (chatBtnLobbyMC._visible = (chatPrivateBtnLobbyMC._visible = b))))))))));
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))))))));
}
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 pressCreateGameClose() {
windowMC.removeMovieClip();
showLobbyButtons(true);
}
function closePreChangeServer() {
lobbySelectServerPerform();
}
function pressJoinPrivateClose() {
windowMC.removeMovieClip();
showLobbyButtons(true);
}
function pressChangeServerClose() {
window2MC.removeMovieClip();
showLobbyButtons(true);
serverBox.selectedIndex = serverNum;
}
_quality = "HIGH";
lobbyInitializeComponents();
Frame 4
loadArea(currentArea.fileName, true);
functionTimers[40] = getTimer();
Frame 5
Frame 6
stop();
setQuality();
earthMC.c._visible = 0;
if (gameMode != 2) {
chatMC._visible = 0;
}
displayPlayerName();
earthMC.opaqueBackground = 0;
currentWeaponMC.cacheAsBitmap = (playerNameMC.cacheAsBitmap = (msgMC.cacheAsBitmap = (chatBtnMC.cacheAsBitmap = (chatMC.cacheAsBitmap = (optionsBtnMC.cacheAsBitmap = (scoreMC.cacheAsBitmap = optionUseBitmapCaching))))));
if (!wipe) {
wipeMC.gotoAndStop(19);
wipe = true;
}
if ((maxGamesPlayable != 0) && (clientRoundsStarted > maxGamesPlayable)) {
logMileStone("displayedServerBusyMsg");
clearGameGarbage();
clearInterval(roundTimerIntervalID);
gotoFrame = "titleFrame";
msgText = "Server Limit Exceeded...\r\rDue to extremely high demand, server capacity has been exceeded for this site.\r\rBut...\r\rClick here to goto StickArena.com and you can keep playing; It's STILL FREE, and you'll have access to more weapons, more maps, and a ton of other rad features. (Honest.)\r\r - The XGenStudios.com Team";
gotoAndStop ("preReturnFrame");
}
Instance of Symbol 334 MovieClip [emptyMC] in Frame 6
onClipEvent (enterFrame) {
_parent.onFrame("main");
}
onClipEvent (mouseDown) {
if (_parent.gameMode < 2) {
_parent.clickCount++;
_parent.player.attackButtonDown = true;
}
}
onClipEvent (mouseUp) {
_parent.player.attackButtonReleased = true;
_parent.player.attackButtonDown = false;
}
Instance of Symbol 334 MovieClip [emptyMC] in Frame 7
onClipEvent (enterFrame) {
_parent.onFrame("dead");
}
onClipEvent (mouseDown) {
_parent.userHidLeaderBoard = true;
}
Frame 8
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;
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() {
logMileStone("playerQuitToTitle");
if (quitMode == "quit") {
returnToLobby();
} else if (quitMode == "logout") {
returnToTitle();
}
}
function optionsQuitCancelled() {
quitConfirmationMC._visible = 0;
}
function initializeOptions() {
var i = 0;
while (i < 4) {
var n = 0;
while (n < 5) {
str = "optText" + i;
with (eval (str + n)) {
text = optText[i];
}
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;
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 334 MovieClip [emptyMC] in Frame 8
onClipEvent (enterFrame) {
_parent.onFrame("options");
}
Frame 9
function initializeReportText() {
var n = 0;
while (n < 5) {
str = "reportText0";
with (eval (str + n)) {
text = reportText[0];
}
n++;
}
var hc = "#FF8888";
msgText0.htmlText = (((((reportText[1] + getColoredName(reportUserID)) + reportText[2]) + "<BR><BR>") + colorHtml(reportText[3], hc)) + "<BR><BR>") + reportText[4];
msgText1.text = (((((((reportText[1] + getName(reportUserID)) + reportText[2]) + "\r") + "\r") + reportText[3]) + "\r") + "\r") + reportText[4];
}
function reportUserPressClose() {
wipe = false;
cursorCrossHair();
gotoAndStop ("mainFrame");
setGameMode(0);
}
function reportUserPressOK() {
reportWindowMC.btnXMC._visible = (reportWindowMC.btnSubmitMC._visible = (reportWindowMC.btnCancelMC._visible = 0));
sendReportUser(reportUserID);
}
initializeReportText();
if (mClient) {
reportWindowMC.attachMovie("mBTNgipMC", "mBTNgipMC", 1000);
}
Frame 10
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() {
logMileStone("completedSummary_" + (clientRoundsStarted - 1));
clearSummaryGarbage();
startNextRound();
}
function clearSummaryGarbage() {
sumMC.removeMovieClip();
summaryTimerMC.removeMovieClip();
summaryAdMC.removeMovieClip();
if (mClient) {
mBTNqtlMC.removeMovieClip();
}
var n = 0;
while (eval ("charAnim" + n) != null) {
with (eval ("charAnim" + n)) {
removeMovieClip();
}
with (eval ("playerNameMC" + n)) {
removeMovieClip();
}
n++;
}
with (rankGainMC) {
removeMovieClip();
}
clearInterval(roundTimerIntervalID);
}
_quality = "HIGH";
summaryBG.gotoAndStop(currentArea.tileSet + 1);
displaySummaryHeaders();
if (mClient) {
_root.attachMovie("mBTNqtlMC", "mBTNqtlMC", 1000);
}
Instance of Symbol 334 MovieClip [emptyMC] in Frame 10
onClipEvent (enterFrame) {
_parent.onFrameSummary();
}
Frame 11
windowMC.msgText0.text = (windowMC.msgText1.text = msgText);
if (((maxGamesPlayable != 0) && (clientRoundsStarted > maxGamesPlayable)) || (gotoFrame == "deadEnd")) {
bigStickArenaButtonMC.gotoAndStop(2);
}
Frame 12
gotoAndStop ("pirateFrame");
Frame 13
gotoAndStop ("pirateFrame");
Frame 14
gotoAndStop ("pirateFrame");
Frame 16
loadSettings();
var settingsLoading = true;
gotoAndStop (1);
Symbol 3 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 3 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 3 MovieClip [damageHpFX] Frame 3
gotoAndPlay (2);
Symbol 24 Button
on (press) {
_parent.clickThrough("http://www.StickArena.com/", 5);
}
on (rollOver) {
_parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent.buttonFX("out", this, 75, 25);
}
Symbol 52 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 93 MovieClip Frame 21
stop();
Symbol 135 MovieClip Frame 53
stop();
Symbol 150 MovieClip [bannerAdMC] Frame 1
onEnterFrame = function () {
stick1_mc.collisionMC._visible = 0;
stick2_mc.collisionMC._visible = 0;
};
Symbol 150 MovieClip [bannerAdMC] Frame 104
stop();
Symbol 165 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 173 Button
on (release) {
_parent.windowClose();
_parent._parent.buttonFX("press");
}
on (rollOver) {
_parent._parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent._parent.buttonFX("out", this, 75, 25);
}
Symbol 175 MovieClip [window304PreChangeServerMessageMC] Frame 1
function windowClose() {
_parent.closePreChangeServer();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 176 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 176 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 176 MovieClip [damageFX] Frame 3
gotoAndPlay (2);
Symbol 177 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"};
Symbol 177 MovieClip [buttonOverFX] Frame 2
bright = Math.max(bright - fade, 0);
myColorTransform.rb = bright;
myColorTransform.gb = bright;
myColorTransform.bb = bright;
myColor.setTransform(myColorTransform);
if (bright <= 0) {
this.removeMovieClip();
}
Symbol 177 MovieClip [buttonOverFX] Frame 3
gotoAndPlay (2);
Symbol 180 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 74
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 188 MovieClip [ComboAssets] Frame 1
#initclip 75
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 192 MovieClip [BtnDownArrow] Frame 1
#initclip 72
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 239 MovieClip [BtnUpArrow] Frame 1
#initclip 73
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 250 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 252 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 255 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 257 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 260 MovieClip [Defaults] Frame 1
#initclip 45
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 261 MovieClip [UIObjectExtensions] Frame 1
#initclip 46
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 262 MovieClip [UIObject] Frame 1
#initclip 47
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 265 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 266 MovieClip Frame 1
#initclip 48
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 267 MovieClip [FocusRect] Frame 1
#initclip 49
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 268 MovieClip [FocusManager] Frame 1
#initclip 50
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 269 MovieClip [UIComponentExtensions] Frame 1
#initclip 51
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 270 MovieClip [UIComponent] Frame 1
#initclip 52
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 271 MovieClip [SimpleButton] Frame 1
#initclip 53
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 272 MovieClip [Border] Frame 1
#initclip 54
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 273 MovieClip [RectBorder] Frame 1
#initclip 55
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 274 MovieClip [ButtonSkin] Frame 1
#initclip 56
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 275 MovieClip [Button] Frame 1
#initclip 57
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 271 MovieClip [SimpleButton] in Symbol 275 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 276 MovieClip [CustomBorder] Frame 1
#initclip 58
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 277 MovieClip [VScrollBar] Frame 1
#initclip 59
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 275 MovieClip [Button] in Symbol 277 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 271 MovieClip [SimpleButton] in Symbol 277 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 278 MovieClip [HScrollBar] Frame 1
#initclip 60
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 275 MovieClip [Button] in Symbol 278 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 271 MovieClip [SimpleButton] in Symbol 278 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 279 MovieClip [UIScrollBar] Frame 1
#initclip 61
Object.registerClass("UIScrollBar", mx.controls.UIScrollBar);
#endinitclip
stop();
Instance of Symbol 277 MovieClip [VScrollBar] in Symbol 279 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 278 MovieClip [HScrollBar] in Symbol 279 MovieClip [UIScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 312 MovieClip [DataProvider] Frame 1
#initclip 62
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 313 MovieClip [DataSelector] Frame 1
#initclip 63
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 314 MovieClip [SelectableRow] Frame 1
#initclip 64
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 315 MovieClip [View] Frame 1
#initclip 65
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 316 MovieClip [ScrollView] Frame 1
#initclip 66
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 278 MovieClip [HScrollBar] in Symbol 316 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 277 MovieClip [VScrollBar] in Symbol 316 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 317 MovieClip [ScrollSelectList] Frame 1
#initclip 67
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 318 MovieClip [List] Frame 1
#initclip 68
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 326 MovieClip [TextInput] Frame 1
#initclip 69
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 327 MovieClip [ComboBase] Frame 1
#initclip 70
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 271 MovieClip [SimpleButton] in Symbol 327 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 326 MovieClip [TextInput] in Symbol 327 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 328 MovieClip [ComboBox] Frame 1
#initclip 71
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 318 MovieClip [List] in Symbol 328 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 2
_quality = "HIGH";
if (_parent._parent.skipIntro) {
_parent._parent.doneIntro();
}
Instance of Symbol 334 MovieClip [emptyMC] in Symbol 335 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._parent._parent.preloadCharMC._alpha = (_parent._parent._parent.load1._alpha = (_parent._parent._parent.load2._alpha = (_parent._parent._parent.load3._alpha = (_parent._parent._parent.load4._alpha = (_parent._parent._parent.loadBar._alpha = (_parent._parent._parent.loadBar2._alpha = (_parent._parent._parent.loadingMC._alpha = _parent._parent._parent.loadingMC._alpha - 10)))))));
}
Symbol 335 MovieClip Frame 15
stop();
Symbol 342 MovieClip Frame 29
stop();
Symbol 357 MovieClip Frame 76
stop();
Symbol 359 MovieClip Frame 11
_parent.XGSIntroMC.onEnterFrame = _parent.frameFunction;
Symbol 359 MovieClip Frame 155
stop();
_parent._parent.doneIntro();
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 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;
} 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 371 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 1
_parent.controlPreLoadAnimation();
Symbol 445 MovieClip Frame 2
_parent.controlPreLoadAnimation();
var bytesTotal = _parent.getBytesTotal();
var bytesLoaded = _parent.getBytesLoaded();
var percentLoaded = int((bytesLoaded / bytesTotal) * 100);
if (_parent.settingsLoading) {
_parent.doneLoading();
stop();
} else if (bytesTotal == bytesLoaded) {
_parent.doneFLALoading();
stop();
} 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 446 Button
on (press) {
clickThrough("http://www.XGenStudios.com/", 1);
}
Symbol 3394 MovieClip [__Packages.com.meychi.ascrypt.RC4] Frame 0
class com.meychi.ascrypt.RC4
{
function RC4 () {
}
static function encrypt(src, key) {
var _local3 = strToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToHex(_local2));
}
static function decrypt(src, key) {
var _local3 = hexToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToStr(_local2));
}
static function initialize(pwd) {
var _local2 = 0;
var _local3;
var _local4 = pwd.length;
var _local1 = 0;
while (_local1 <= 255) {
mykey[_local1] = pwd[_local1 % _local4];
sbox[_local1] = _local1;
_local1++;
}
_local1 = 0;
while (_local1 <= 255) {
_local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256;
_local3 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local3;
_local1++;
}
}
static function calculate(plaintxt, psw) {
initialize(psw);
var _local1 = 0;
var _local2 = 0;
var _local9 = new Array();
var _local7;
var _local5;
var _local6;
var _local3 = 0;
while (_local3 < plaintxt.length) {
_local1 = (_local1 + 1) % 256;
_local2 = (_local2 + sbox[_local1]) % 256;
_local5 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local5;
var _local4 = (sbox[_local1] + sbox[_local2]) % 256;
_local7 = sbox[_local4];
_local6 = plaintxt[_local3] ^ _local7;
_local9.push(_local6);
_local3++;
}
return(_local9);
}
static function charsToHex(chars) {
var _local4 = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < chars.length) {
_local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]);
_local1++;
}
return(_local4);
}
static function hexToChars(hex) {
var _local3 = new Array();
var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < hex.length) {
_local3.push(parseInt(hex.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
static function charsToStr(chars) {
var _local3 = new String("");
var _local1 = 0;
while (_local1 < chars.length) {
_local3 = _local3 + String.fromCharCode(chars[_local1]);
_local1++;
}
return(_local3);
}
static function strToChars(str) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < str.length) {
_local3.push(str.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
static var sbox = new Array(255);
static var mykey = new Array(255);
}
Symbol 243 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.2.126";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 280 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 281 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 283 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 282 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 244 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var selFocus = Selection.getFocus();
return(((selFocus === null) ? null : (eval (selFocus))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local3 = findFocusFromObject(this);
var _local2 = getFocus();
if (_local3 != _local2) {
_local2.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local3.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.126";
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 284 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent
{
static var emphasizedStyleDeclaration;
var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle;
function SimpleButton () {
super();
}
function init(Void) {
super.init();
if (preset == undefined) {
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
useHandCursor = false;
}
function createChildren(Void) {
if (preset != undefined) {
var _local2 = this[idNames[preset]];
this[refNames[preset]] = _local2;
skinName = _local2;
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
initializing = false;
} else if (__state == true) {
setStateVar(true);
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
}
}
}
function setIcon(tag, linkageName) {
return(setSkin(tag + 8, linkageName));
}
function changeIcon(tag, linkageName) {
linkLength = linkageName.length;
var _local2 = stateNames[tag] + "Icon";
this[_local2] = linkageName;
this[idNames[tag + 8]] = _local2;
setStateVar(getState());
}
function changeSkin(tag, linkageName) {
var _local2 = stateNames[tag] + "Skin";
this[_local2] = linkageName;
this[idNames[tag]] = _local2;
setStateVar(getState());
}
function viewIcon(varName) {
var _local4 = varName + "Icon";
var _local3 = this[_local4];
if (typeof(_local3) == "string") {
var _local5 = _local3;
if (__emphasized) {
if (this[_local3 + "Emphasized"].length > 0) {
_local3 = _local3 + "Emphasized";
}
}
if (this[_local3].length == 0) {
return(undefined);
}
_local3 = setIcon(tagMap[_local5], this[_local3]);
if ((_local3 == undefined) && (_global.isLivePreview)) {
_local3 = setIcon(0, "ButtonIcon");
}
this[_local4] = _local3;
}
iconName._visible = false;
iconName = _local3;
iconName._visible = true;
}
function removeIcons() {
var _local3 = 0;
while (_local3 < 2) {
var _local2 = 8;
while (_local2 < 16) {
destroyObject(idNames[_local2]);
this[stateNames[_local2 - 8] + "Icon"] = "";
_local2++;
}
_local3++;
}
refresh();
}
function setSkin(tag, linkageName, initobj) {
var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this})));
calcSize(tag, _local3);
return(_local3);
}
function calcSize(Void) {
__width = _width;
__height = _height;
}
function viewSkin(varName, initObj) {
var _local3 = varName + "Skin";
var _local2 = this[_local3];
if (typeof(_local2) == "string") {
var _local4 = _local2;
if (__emphasized) {
if (this[_local2 + "Emphasized"].length > 0) {
_local2 = _local2 + "Emphasized";
}
}
if (this[_local2].length == 0) {
return(undefined);
}
_local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this})));
this[_local3] = _local2;
}
skinName._visible = false;
skinName = _local2;
skinName._visible = true;
}
function showEmphasized(e) {
if (e && (!__emphatic)) {
if (emphasizedStyleDeclaration != undefined) {
__emphaticStyleName = styleName;
styleName = emphasizedStyleDeclaration;
}
__emphatic = true;
} else {
if (__emphatic) {
styleName = __emphaticStyleName;
}
__emphatic = false;
}
}
function refresh(Void) {
var _local2 = getState();
if (enabled == false) {
viewIcon("disabled");
viewSkin("disabled");
} else {
viewSkin(phase);
viewIcon(phase);
}
setView(phase == "down");
iconName.enabled = enabled;
}
function setView(offset) {
if (iconName == undefined) {
return(undefined);
}
var _local2 = (offset ? (btnOffset) : 0);
iconName._x = ((__width - iconName._width) / 2) + _local2;
iconName._y = ((__height - iconName._height) / 2) + _local2;
}
function setStateVar(state) {
if (state) {
if (trueOverSkin.length == 0) {
rolloverSkin = tus;
} else {
rolloverSkin = trs;
}
if (trueOverIcon.length == 0) {
rolloverIcon = tui;
} else {
rolloverIcon = tri;
}
upSkin = tus;
downSkin = tds;
disabledSkin = dts;
upIcon = tui;
downIcon = tdi;
disabledIcon = dti;
} else {
if (falseOverSkin.length == 0) {
rolloverSkin = fus;
} else {
rolloverSkin = frs;
}
if (falseOverIcon.length == 0) {
rolloverIcon = fui;
} else {
rolloverIcon = fri;
}
upSkin = fus;
downSkin = fds;
disabledSkin = dfs;
upIcon = fui;
downIcon = fdi;
disabledIcon = dfi;
}
__state = state;
}
function setState(state) {
if (state != __state) {
setStateVar(state);
invalidate();
}
}
function size(Void) {
refresh();
}
function draw(Void) {
if (initializing) {
initializing = false;
skinName.visible = true;
iconName.visible = true;
}
size();
}
function getState(Void) {
return(__state);
}
function setToggle(val) {
__toggle = val;
if (__toggle == false) {
setState(false);
}
}
function getToggle(Void) {
return(__toggle);
}
function set toggle(val) {
setToggle(val);
//return(toggle);
}
function get toggle() {
return(getToggle());
}
function set value(val) {
setSelected(val);
//return(value);
}
function get value() {
return(getSelected());
}
function set selected(val) {
setSelected(val);
//return(selected);
}
function get selected() {
return(getSelected());
}
function setSelected(val) {
if (__toggle) {
setState(val);
} else {
setState((initializing ? (val) : (__state)));
}
}
function getSelected() {
return(__state);
}
function setEnabled(val) {
if (enabled != val) {
super.setEnabled(val);
invalidate();
}
}
function onPress(Void) {
pressFocus();
phase = "down";
refresh();
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
interval = setInterval(this, "onPressDelay", getStyle("repeatDelay"));
}
}
function onPressDelay(Void) {
dispatchEvent({type:"buttonDown"});
if (autoRepeat) {
clearInterval(interval);
interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval"));
}
}
function onPressRepeat(Void) {
dispatchEvent({type:"buttonDown"});
updateAfterEvent();
}
function onRelease(Void) {
releaseFocus();
phase = "rollover";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
if (getToggle()) {
setState(!getState());
} else {
refresh();
}
dispatchEvent({type:"click"});
}
function onDragOut(Void) {
phase = "up";
refresh();
dispatchEvent({type:"buttonDragOut"});
}
function onDragOver(Void) {
if (phase != "up") {
onPress();
return(undefined);
}
phase = "down";
refresh();
}
function onReleaseOutside(Void) {
releaseFocus();
phase = "up";
if (interval != undefined) {
clearInterval(interval);
delete interval;
}
}
function onRollOver(Void) {
phase = "rollover";
refresh();
}
function onRollOut(Void) {
phase = "up";
refresh();
}
function getLabel(Void) {
return(fui.text);
}
function setLabel(val) {
if (typeof(fui) == "string") {
createLabel("fui", 8, val);
fui.styleName = this;
} else {
fui.text = val;
}
var _local4 = fui._getTextFormat();
var _local2 = _local4.getTextExtent2(val);
fui._width = _local2.width + 5;
fui._height = _local2.height + 5;
iconName = fui;
setView(__state);
}
function get emphasized() {
return(__emphasized);
}
function set emphasized(val) {
__emphasized = val;
var _local2 = 0;
while (_local2 < 8) {
this[idNames[_local2]] = stateNames[_local2] + "Skin";
if (typeof(this[idNames[_local2 + 8]]) == "movieclip") {
this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon";
}
_local2++;
}
showEmphasized(__emphasized);
setStateVar(__state);
invalidateStyle();
//return(emphasized);
}
function keyDown(e) {
if (e.code == 32) {
onPress();
}
}
function keyUp(e) {
if (e.code == 32) {
onRelease();
}
}
function onKillFocus(newFocus) {
super.onKillFocus();
if (phase != "up") {
phase = "up";
refresh();
}
}
static var symbolName = "SimpleButton";
static var symbolOwner = mx.controls.SimpleButton;
static var version = "2.0.2.126";
var className = "SimpleButton";
var style3dInset = 4;
var btnOffset = 1;
var __toggle = false;
var __state = false;
var __emphasized = false;
var __emphatic = false;
static var falseUp = 0;
static var falseDown = 1;
static var falseOver = 2;
static var falseDisabled = 3;
static var trueUp = 4;
static var trueDown = 5;
static var trueOver = 6;
static var trueDisabled = 7;
var falseUpSkin = "SimpleButtonUp";
var falseDownSkin = "SimpleButtonIn";
var falseOverSkin = "";
var falseDisabledSkin = "SimpleButtonUp";
var trueUpSkin = "SimpleButtonIn";
var trueDownSkin = "";
var trueOverSkin = "";
var trueDisabledSkin = "SimpleButtonIn";
var falseUpIcon = "";
var falseDownIcon = "";
var falseOverIcon = "";
var falseDisabledIcon = "";
var trueUpIcon = "";
var trueDownIcon = "";
var trueOverIcon = "";
var trueDisabledIcon = "";
var phase = "up";
var fui = "falseUpIcon";
var fus = "falseUpSkin";
var fdi = "falseDownIcon";
var fds = "falseDownSkin";
var frs = "falseOverSkin";
var fri = "falseOverIcon";
var dfi = "falseDisabledIcon";
var dfs = "falseDisabledSkin";
var tui = "trueUpIcon";
var tus = "trueUpSkin";
var tdi = "trueDownIcon";
var tds = "trueDownSkin";
var trs = "trueOverSkin";
var tri = "trueOverIcon";
var dts = "trueDisabledSkin";
var dti = "trueDisabledIcon";
var rolloverSkin = mx.controls.SimpleButton.prototype.frs;
var rolloverIcon = mx.controls.SimpleButton.prototype.fri;
var upSkin = mx.controls.SimpleButton.prototype.fus;
var downSkin = mx.controls.SimpleButton.prototype.fds;
var disabledSkin = mx.controls.SimpleButton.prototype.dfs;
var upIcon = mx.controls.SimpleButton.prototype.fui;
var downIcon = mx.controls.SimpleButton.prototype.fdi;
var disabledIcon = mx.controls.SimpleButton.prototype.dfi;
var initializing = true;
var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"];
var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"];
var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"];
var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7};
}
Symbol 306 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 322 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.126";
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 285 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 302 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border
{
var __width, __height, offset, __borderMetrics;
function RectBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function draw(Void) {
size();
}
function getBorderMetrics(Void) {
var _local2 = offset;
if (__borderMetrics == undefined) {
__borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2};
} else {
__borderMetrics.left = _local2;
__borderMetrics.top = _local2;
__borderMetrics.right = _local2;
__borderMetrics.bottom = _local2;
}
return(__borderMetrics);
}
function get borderMetrics() {
return(getBorderMetrics());
}
function drawBorder(Void) {
}
function size(Void) {
drawBorder();
}
function setColor(Void) {
drawBorder();
}
static var symbolName = "RectBorder";
static var symbolOwner = mx.skins.RectBorder;
static var version = "2.0.2.126";
var className = "RectBorder";
var borderStyleName = "borderStyle";
var borderColorName = "borderColor";
var shadowColorName = "shadowColor";
var highlightColorName = "highlightColor";
var buttonColorName = "buttonColor";
var backgroundColorName = "backgroundColor";
}
Symbol 329 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.126";
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 323 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.126";
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 330 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.126";
static var mixins = undefined;
}
Symbol 295 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 296 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 290 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 307 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.126";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 319 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 291 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 308 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local4 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local4 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = mx.controls.scrollClasses.ScrollBar(createObject("HScrollBar", "hSB", 1001));
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local4)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local4, 0, colCount - _local4);
viewableColumns = _local4;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local5 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local5 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = mx.controls.scrollClasses.ScrollBar(createObject("VScrollBar", "vSB", 1002));
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local5 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local5, 0, (rwCount - _local5) + _local8);
viewableRows = _local5;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = mx.controls.scrollClasses.ScrollBar(createObject("FHScrollBar", "hSB", 1001));
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.126";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 245 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 286 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border
{
var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc;
function CustomBorder () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function init(Void) {
super.init();
}
function createChildren(Void) {
}
function draw(Void) {
if (l_mc == undefined) {
var _local2 = setSkin(tagL, leftSkin);
if (horizontal) {
minHeight = l_mc._height;
minWidth = l_mc._width;
} else {
minHeight = l_mc._height;
minWidth = l_mc._width;
}
}
if (m_mc == undefined) {
setSkin(tagM, middleSkin);
if (horizontal) {
minHeight = m_mc._height;
minWidth = minWidth + m_mc._width;
} else {
minHeight = minHeight + m_mc._height;
minWidth = m_mc._width;
}
}
if (r_mc == undefined) {
setSkin(tagR, rightSkin);
if (horizontal) {
minHeight = r_mc._height;
minWidth = minWidth + r_mc._width;
} else {
minHeight = minHeight + r_mc._height;
minWidth = r_mc._width;
}
}
size();
}
function size(Void) {
l_mc.move(0, 0);
if (horizontal) {
r_mc.move(width - r_mc.width, 0);
m_mc.move(l_mc.width, 0);
m_mc.setSize(r_mc.x - m_mc.x, m_mc.height);
} else {
r_mc.move(0, height - r_mc.height, 0);
m_mc.move(0, l_mc.height);
m_mc.setSize(m_mc.width, r_mc.y - m_mc.y);
}
}
static var symbolName = "CustomBorder";
static var symbolOwner = mx.skins.CustomBorder;
static var version = "2.0.2.126";
var className = "CustomBorder";
static var tagL = 0;
static var tagM = 1;
static var tagR = 2;
var idNames = new Array("l_mc", "m_mc", "r_mc");
var leftSkin = "F3PieceLeft";
var middleSkin = "F3PieceMiddle";
var rightSkin = "F3PieceRight";
var horizontal = true;
}
Symbol 287 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 309 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 310 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 311 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.126";
var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1};
var scrollDepth = 1;
var __vScrollPolicy = "on";
var autoHScrollAble = false;
}
Symbol 320 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 292 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 246 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.1.78";
}
Symbol 288 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.1.78";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 289 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 _local9 = 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 _local10 = (__width - borderW) - borderW;
var _local11 = (__height - borderW) - borderW;
if (_local2 != undefined) {
_local7 = _local2._width;
_local6 = _local2._height;
}
if ((_local12 == "left") || (_local12 == "right")) {
if (_local3 != undefined) {
_local9 = Math.min(_local10 - _local7, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11, _local14 + 5);
_local3._height = _local8;
}
if (_local12 == "right") {
_local5 = _local7;
if (centerContent) {
_local5 = _local5 + (((_local10 - _local9) - _local7) / 2);
}
_local2._x = _local5 - _local7;
} else {
_local5 = (_local10 - _local9) - _local7;
if (centerContent) {
_local5 = _local5 / 2;
}
_local2._x = _local5 + _local9;
}
_local4 = 0;
_local2._y = _local4;
if (centerContent) {
_local2._y = (_local11 - _local6) / 2;
_local4 = (_local11 - _local8) / 2;
}
if (!centerContent) {
_local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2);
}
} else {
if (_local3 != undefined) {
_local9 = Math.min(_local10, _local15 + 5);
_local3._width = _local9;
_local8 = Math.min(_local11 - _local6, _local14 + 5);
_local3._height = _local8;
}
_local5 = (_local10 - _local9) / 2;
_local2._x = (_local10 - _local7) / 2;
if (_local12 == "top") {
_local4 = (_local11 - _local8) - _local6;
if (centerContent) {
_local4 = _local4 / 2;
}
_local2._y = _local4 + _local8;
} else {
_local4 = _local6;
if (centerContent) {
_local4 = _local4 + (((_local11 - _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.1.78";
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 293 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 294 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 297 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.1.78";
var className = "FocusManager";
var bNeedFocus = false;
var bDrawFocus = false;
var defaultPushButtonEnabled = true;
var activated = true;
static var initialized = false;
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 298 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 299 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 300 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 301 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 303 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.1.78";
var borderCapColorName = "borderCapColor";
var shadowCapColorName = "shadowCapColor";
var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0};
var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2};
static var classConstructed = classConstruct();
static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions;
}
Symbol 304 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 305 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.1.78";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 321 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 475 Button
on (release) {
_parent._parent.pressQuickStart();
_parent._parent.buttonFX("press");
}
on (rollOver) {
_parent._parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent._parent.buttonFX("out", this, 75, 25);
}
Symbol 488 Button
on (release) {
_parent._parent.pressTutorial();
_parent._parent.buttonFX("press");
}
on (rollOver) {
_parent._parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent._parent.buttonFX("out", this, 75, 25);
}
Symbol 510 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 13
if (random(5) != 0) {
gotoAndPlay(random(11) + 2);
}
_x = (random(5) + 270);
_y = (random(5) + 80);
_xscale = (random(5) + 62);
_yscale = (random(5) + 62);
Symbol 510 MovieClip Frame 22
gotoAndPlay (2);
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 13
if (random(5) != 0) {
gotoAndPlay(random(11) + 2);
}
_x = (random(5) + 270);
_y = (random(5) + 80);
_xscale = (random(5) + 62);
_yscale = (random(5) + 62);
Symbol 515 MovieClip Frame 22
gotoAndPlay (2);
Symbol 525 Button
on (press) {
_parent.clickThrough("http://www.StickArena.com/", 4);
}
Symbol 599 MovieClip Frame 171
_parent.bypassSAIntro(false);
Symbol 599 MovieClip Frame 191
stop();
_parent.doneSAIntro();
Symbol 790 MovieClip Frame 40
_parent._parent._parent.player.doneAttack();
Symbol 874 MovieClip Frame 12
stop();
Symbol 935 MovieClip Frame 1
stop();
Symbol 935 MovieClip Frame 55
_parent.titleBG._visible = 0;
Instance of Symbol 328 MovieClip [ComboBox] "mapBox" in Symbol 935 MovieClip Frame 3739
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "";
editable = false;
rowCount = 6;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_load(eventObj) {
_parent._parent.populateMapListBox(0);
}
this.addEventListener("load", __f_load);
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent._parent.buttonFX("press");
}
this.addEventListener("change", __f_change);
}
onClipEvent (load) {
function __f_open(eventObj) {
_parent._parent.buttonFX("press");
}
this.addEventListener("open", __f_open);
}
onClipEvent (load) {
function __f_itemRollOver(eventObj) {
_parent._parent.buttonFX("over");
}
this.addEventListener("itemRollOver", __f_itemRollOver);
}
onClipEvent (load) {
function __f_itemRollOut(eventObj) {
_parent._parent.buttonFX("out");
}
this.addEventListener("itemRollOut", __f_itemRollOut);
}
Symbol 935 MovieClip Frame 4600
_parent.titleBG._visible = 1;
Symbol 935 MovieClip Frame 4610
_parent.tutorialDone();
Symbol 942 MovieClip Frame 45
gotoAndPlay (35);
Symbol 943 MovieClip Frame 19
gotoAndPlay (5);
Symbol 944 Button
on (release) {
_parent.buttonFX("press");
_parent.clickThrough("http://www.StickArena.com/", 2);
}
on (rollOver) {
_parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent.buttonFX("out", this, 75, 25);
}
Symbol 947 MovieClip Frame 19
stop();
Symbol 988 MovieClip Frame 58
stop();
Symbol 1008 MovieClip Frame 21
if (_parent.textMC.idText.text == "") {
_parent._parent.player.spawnDone();
} else {
_parent._parent._parent.playerSpawnDone(_parent.textMC.idText.text);
}
gotoAndStop (1);
Symbol 1052 MovieClip Frame 78
stop();
Symbol 1088 MovieClip Frame 64
stop();
Symbol 1117 MovieClip Frame 32
stop();
Symbol 1140 MovieClip Frame 17
stop();
Symbol 1141 MovieClip Frame 28
stop();
Symbol 1142 MovieClip Frame 1
stop();
Symbol 1154 MovieClip Frame 1
stop();
Symbol 1170 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 1174 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 1185 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 1233 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 1265 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 1313 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 1342 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 1363 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 1367 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 1387 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 1484 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 1485 MovieClip Frame 1
stop();
Symbol 1493 MovieClip Frame 52
stop();
Symbol 1504 MovieClip [characterMC] Frame 1
function resetDeltaTimes() {
var _local1 = 0;
while (_local1 < 30) {
deltaTimes[_local1] = 100;
_local1++;
}
}
function animateSpawn(str) {
torsoMC._visible = 0;
legsMC._visible = 0;
deathMC._visible = 0;
soulHeavenMC._visible = 0;
soulHellMC._visible = 0;
colorMC._visible = 1;
spawnMC._visible = 1;
spawnMC.gotoAndPlay(2);
}
stop();
animateSpawn();
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 movementKeysDown = false;
var mod = "spawn";
var invulnerable = false;
var xVel = 0;
var yVel = 0;
var vel = 0;
var kills = 0;
var killsSinceSpawn = 0;
var deaths = 0;
var rank = 1;
var recievedGameState = false;
var frame = 1;
var attackAnimationDone = true;
var weapon = 0;
var tRotVel = 0;
var hexColor = "#FFFFFF";
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;
resetDeltaTimes();
Symbol 1510 MovieClip Frame 7
stop();
Symbol 1604 MovieClip Frame 1
function hideHearts() {
heart0MC._visible = 0;
heart1MC._visible = 0;
heart2MC._visible = 0;
heart3MC._visible = 0;
}
hideHearts();
heart3MC._visible = 1;
Symbol 1618 Button
on (press) {
_parent.chatKeyPressed();
_parent.buttonFX("press");
}
on (rollOver) {
_parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent.buttonFX("out", this, 75, 25);
}
Symbol 1619 Button
on (release) {
_parent.chatKeyPressed();
}
Symbol 1620 MovieClip Frame 1
stop();
Symbol 1623 Button
on (press) {
_parent.optionsBtnPressed();
_parent.buttonFX("press");
}
on (rollOver) {
_parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent.buttonFX("out", this, 75, 25);
}
Symbol 1654 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 = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
_parent.SFXDragVolume.stop();
this.stopDrag();
delete this.onEnterFrame;
this.setColor(40);
}
};
dragger.onReleaseOutside = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
_parent.SFXDragVolume.stop();
this.stopDrag();
delete this.onEnterFrame;
this.setColor(0);
}
};
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 1660 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 = 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.onReleaseOutside = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
this.stopDrag();
delete this.onEnterFrame;
this._x = _parent.optionBlood * (line._width / 2);
this.setColor(0);
}
};
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 1666 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);
};
}
};
dragger.onRelease = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
this.stopDrag();
delete this.onEnterFrame;
this._x = _parent.optionQuality * 34;
this.setColor(40);
}
};
dragger.onReleaseOutside = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
this.stopDrag();
delete this.onEnterFrame;
this._x = _parent.optionQuality * 34;
this.setColor(0);
}
};
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 1672 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 = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
this.stopDrag();
delete this.onEnterFrame;
this._x = _parent.optionLanguageFilter * line._width;
this.setColor(40);
}
};
dragger.onReleaseOutside = function () {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out");
this.stopDrag();
delete this.onEnterFrame;
this._x = _parent.optionLanguageFilter * line._width;
this.setColor(0);
}
};
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 1683 Button
on (release) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("press");
}
_parent.optionsResumeGame();
}
on (rollOver) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("over", this, 255, 510);
}
}
on (rollOut, releaseOutside) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out", this, 75, 25);
}
}
Symbol 1686 Button
on (release) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("press");
}
_parent.optionsQuitConfirm("logout");
}
on (rollOver) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("over", this, 255, 510);
}
}
on (rollOut, releaseOutside) {
if (_parent.quitConfirmationMC._visible == 0) {
_parent.buttonFX("out", this, 75, 25);
}
}
Symbol 1697 Button
on (release) {
_parent._parent.optionsQuitConfirmed();
_parent._parent.buttonFX("press");
}
on (rollOver) {
_parent._parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent._parent.buttonFX("out", this, 75, 25);
}
Symbol 1704 Button
on (release) {
_parent._parent.optionsQuitCancelled();
_parent._parent.buttonFX("press");
}
on (rollOver) {
_parent._parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent._parent.buttonFX("out", this, 75, 25);
}
Symbol 1712 Button
on (release) {
_parent.windowClose();
_parent._parent.buttonFX("press");
}
on (rollOver) {
_parent._parent.buttonFX("over", this, 255, 510);
}
on (rollOut, releaseOutside) {
_parent._parent.buttonFX("out", this, 75, 25);
}
Symbol 1719 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 1721 MovieClip Frame 1
function windowClose() {
_parent.reportUserPressClose();
}
function windowOK() {
_parent.reportUserPressOK();
}
Symbol 1732 MovieClip Frame 1
stop();
Symbol 1735 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 1736 Button
on (press) {
if (_parent.gotoFrame == "deadEnd") {
_parent.clickThrough("http://www.StickArena.com/", 7);
} else {
_parent.clickThrough("http://www.StickArena.com/", 3);
}
}
Symbol 1737 MovieClip Frame 1
stop();
Symbol 1749 MovieClip Frame 1
badgeSquareMC._visible = 0;
Symbol 1753 MovieClip [rankGainMC] Frame 209
stop();
Symbol 1756 MovieClip [window304ChangeServerMessageMC] Frame 1
function windowClose() {
_parent.pressChangeServerClose();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 1757 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);
this.removeMovieClip();
Symbol 1759 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1761 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1763 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1765 MovieClip [ScrollThumbThemeColorlg] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1767 MovieClip [ScrollThumbMiddleColorTheme] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1769 MovieClip [ScrollThumbColorTheme] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1771 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1773 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1775 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 1877 MovieClip [summaryCharLose1MC] Frame 120
stop();
Symbol 2079 MovieClip [summaryCharLose0MC] Frame 59
if (random(6) == 0) {
stop();
}
Symbol 2079 MovieClip [summaryCharLose0MC] Frame 65
if (random(6) == 0) {
stop();
}
Symbol 2079 MovieClip [summaryCharLose0MC] Frame 122
if (random(3) == 0) {
stop();
}
Symbol 2079 MovieClip [summaryCharLose0MC] Frame 189
if (random(3) == 0) {
stop();
}
Symbol 2079 MovieClip [summaryCharLose0MC] Frame 239
stop();
Symbol 2243 MovieClip [summaryCharWin0MC] Frame 183
stop();
Symbol 2273 MovieClip [sledgeParticleMC] Frame 75
this.removeMovieClip();
Symbol 2274 MovieClip [shotgunParticleMC] Frame 22
this.removeMovieClip();
Symbol 2275 MovieClip [glockParticleMC] Frame 21
this.removeMovieClip();
Symbol 2278 MovieClip [ak47ParticleMC] Frame 15
this.removeMovieClip();
Symbol 2291 MovieClip [bloodSword0MC] Frame 12
this.removeMovieClip();
Symbol 2304 MovieClip [bloodShotgun2MC] Frame 12
this.removeMovieClip();
Symbol 2317 MovieClip [bloodShotgun1MC] Frame 12
this.removeMovieClip();
Symbol 2318 MovieClip [bloodShotgun0MC] Frame 12
this.removeMovieClip();
Symbol 2330 MovieClip [bloodKnife0MC] Frame 12
this.removeMovieClip();
Symbol 2331 MovieClip [bloodBullet2MC] Frame 12
this.removeMovieClip();
Symbol 2343 MovieClip [bloodBullet1MC] Frame 12
this.removeMovieClip();
Symbol 2354 MovieClip [bloodBullet0MC] Frame 12
this.removeMovieClip();
Symbol 2367 MovieClip [bloodBat1MC] Frame 12
this.removeMovieClip();
Symbol 2379 MovieClip [bloodBat0MC] Frame 12
this.removeMovieClip();
Symbol 2747 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 2747 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 2747 MovieClip [fadeInFX] Frame 3
gotoAndPlay (2);
Symbol 2748 MovieClip [shakeFX] Frame 1
Symbol 2748 MovieClip [shakeFX] Frame 2
_parent._parent.earthMC._x = _parent._parent.earthMC._x + int(xyMove);
Symbol 2748 MovieClip [shakeFX] Frame 3
_parent._parent.earthMC._y = _parent._parent.earthMC._y + int(xyMove);
Symbol 2748 MovieClip [shakeFX] Frame 4
_parent._parent.earthMC._x = _parent._parent.earthMC._x - int(xyMove);
Symbol 2748 MovieClip [shakeFX] Frame 5
_parent._parent.earthMC._y = _parent._parent.earthMC._y - int(xyMove);
if (xyMove <= 0) {
this.removeMovieClip();
} else {
xyMove = xyMove + xyAcc;
gotoAndPlay (2);
}
Symbol 2749 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 2749 MovieClip [remoteDeathFX] Frame 2
red = Math.max(red - 5, 0);
myColorTransform2.rb = red * 2.5;
myColor2.setTransform(myColorTransform2);
if (red <= 0) {
this.removeMovieClip();
}
Symbol 2749 MovieClip [remoteDeathFX] Frame 3
gotoAndPlay (2);
Symbol 2750 MovieClip [deathFX] Frame 1
myColor = new Color(_parent._parent.earthMC);
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 2750 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 2750 MovieClip [deathFX] Frame 3
gotoAndPlay (2);
Symbol 2751 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 2752 MovieClip [spawnFX] Frame 1
myColor = new Color(_parent._parent.earthMC);
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 2753 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 2753 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 2753 MovieClip [localDamageFX] Frame 3
gotoAndPlay (2);
Symbol 2849 Button
on (release) {
_parent._parent.pressVoteKick(_parent.idArray[int(textBoxMC.textBox.text)]);
}
Symbol 2853 MovieClip Frame 1
textBoxMC._visible = 0;
Symbol 2857 Button
on (release) {
_parent._parent.pressReportUser(_parent.idArray[int(textBoxMC.textBox.text)]);
}
Symbol 2858 MovieClip Frame 1
textBoxMC._visible = 0;
Symbol 2870 MovieClip [warningMsgMC] Frame 1
var count = 0;
textBoxMC._visible = 0;
Instance of Symbol 334 MovieClip [emptyMC] in Symbol 2870 MovieClip [warningMsgMC] Frame 1
onClipEvent (enterFrame) {
_parent.count++;
if (_parent.count > ((int(_parent.textBoxMC.textBox.text) / _parent._parent.frameDeltaTime) * 4)) {
_parent.removeMovieClip();
}
}
Symbol 2873 MovieClip [window405MC] Frame 1
function windowClose() {
_parent.closeWindow();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 2876 MovieClip [window304MC] Frame 1
function windowClose() {
_parent.closeWindow();
this.removeMovieClip();
}
function windowOK() {
windowClose();
}
Symbol 2924 MovieClip Frame 1
stop();
Symbol 3102 MovieClip [tile2K1] Frame 1
gotoAndPlay(random(20) + 1);
Symbol 3102 MovieClip [tile2K1] Frame 20
gotoAndPlay(random(2) + 2);
Symbol 3112 MovieClip [tile2K0] Frame 1
gotoAndPlay(random(20) + 1);
Symbol 3112 MovieClip [tile2K0] Frame 20
gotoAndPlay(random(2) + 2);
Symbol 3124 MovieClip Frame 1
stop();
Symbol 3124 MovieClip Frame 15
gotoAndPlay (2);
Symbol 3171 MovieClip [rank2MC] Frame 1
badgeSQMC._visible = 0;
Symbol 3188 MovieClip [rank3MC] Frame 1
badgeSQMC._visible = 0;
Symbol 3205 MovieClip [rank4MC] Frame 1
badgeSQMC._visible = 0;
Symbol 3222 MovieClip [rank5MC] Frame 1
badgeSQMC._visible = 0;
Symbol 3239 MovieClip [rank6MC] Frame 1
badgeSQMC._visible = 0;
Symbol 3256 MovieClip [rank7MC] Frame 1
badgeSQMC._visible = 0;
Symbol 3273 MovieClip [rank8MC] Frame 1
badgeSQMC._visible = 0;
Symbol 3290 MovieClip [rank9MC] Frame 1
badgeSQMC._visible = 0;
Symbol 3307 MovieClip [rank10MC] Frame 1
badgeSQMC._visible = 0;
Symbol 3308 MovieClip Frame 37
stop();
Symbol 3372 MovieClip Frame 39
stillfree_mc.play();
Symbol 3373 Button
on (press) {
_parent.clickThrough("http://www.StickArena.com/", 0);
}
Symbol 3390 MovieClip [rank1MC] Frame 1
badgeSQMC._visible = 0;
Symbol 3393 MovieClip Frame 1
stop();