[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (2.34 KiB) ●
function DoMask(mc, pc) {
if (pc == 0) {
return(undefined);
}
var zx = int(mc.c1._width / 2);
var zy = zx;
var max = (zy * 2);
var a1 = (0.0628318 * pc);
with (mc.mask) {
clear();
lineStyle(0, 0, 0);
beginFill(16777215, 100);
moveTo(zx, zy);
lineTo(zx, zy - max);
lineTo(zx + max, zy - max);
if (a1 > 1.570796) {
lineTo(zx + max, zy + max);
}
if (a1 > 3.141593) {
lineTo(zx - max, zy + max);
}
if (a1 > 4.712389) {
lineTo(zx - max, zy - max);
}
lineTo(zx + (max * Math.sin(a1)), zy - (max * Math.cos(a1)));
moveTo(zx, zy);
endFill();
}
}
Stage.scaleMode = "noScale";
Stage.align = "TL";
_root.depth = 1;
var PreloadTimer = 0;
stop();
var Stalled = 0;
var Last = 0;
var StageWidth = 0;
var StageHeight = 0;
onEnterFrame = function () {
if ((Stage.width < 1) || (Stage.width == undefined)) {
return(undefined);
}
StageWidth = Stage.width;
StageHeight = Stage.height;
var _local8 = new Date();
t = Number(_local8.getTime());
var _local5 = int(StageHeight / 14);
if (PreloadTimer == 0) {
PL_mc = createEmptyMovieClip("PL", _root.depth++);
PL_mc.attachMovie("cool", "c1", _root.depth++);
PL_mc.c1.gotoAndStop(10);
PL_mc.c1._width = _local5 * 4;
PL_mc.c1._height = _local5 * 4;
PL_mc.c1._alpha = 33;
PL_mc.c1._visible = false;
PL_mc._x = int((StageWidth - (_local5 * 4)) / 2);
PL_mc._y = _local5 * 5;
PL_mc.attachMovie("cool", "c2", _root.depth++);
PL_mc.c2.gotoAndStop(10);
PL_mc.c2._width = PL_mc.c1._width;
PL_mc.c2._height = PL_mc.c1._height;
PL_mc.createEmptyMovieClip("mask", _root.depth++);
PL_mc.c2.setMask(PL_mc.mask);
DoMask(PL_mc, 0);
PreloadTimer = t;
return(undefined);
}
if ((t - PreloadTimer) < 500) {
return(undefined);
}
PL_mc.c1._visible = true;
var _local6 = 100;
var _local4 = (_root.getBytesLoaded() / _root.getBytesTotal()) * _local6;
DoMask(PL_mc, _local4);
if (_local4 >= (_local6 - 0.001)) {
all_loaded = 1;
delete onEnterFrame;
removeMovieClip(PL_mc);
gotoAndPlay ("vars");
}
if (_local4 > Last) {
Last = _local4;
Stalled = 0;
} else {
Stalled++;
}
if ((Stalled > 33) && (_global.url)) {
var _local7 = _global.url + "?a";
_global.url = false;
delete onEnterFrame;
removeMovieClip(PL_mc);
loadMovie (_local7, this);
}
};
Frame 3 (297.58 KiB) ● ● ● ●
function ST(i, s1, s2, s3, s4) {
var _local1 = StringTable[i];
if (s1 != undefined) {
_local1 = (_local1.slice(0, _local1.indexOf("$1")) + s1) + _local1.slice(_local1.indexOf("$1") + 2);
}
if (s2 != undefined) {
_local1 = (_local1.slice(0, _local1.indexOf("$2")) + s2) + _local1.slice(_local1.indexOf("$2") + 2);
}
if (s3 != undefined) {
_local1 = (_local1.slice(0, _local1.indexOf("$3")) + s3) + _local1.slice(_local1.indexOf("$3") + 2);
}
if (s4 != undefined) {
_local1 = (_local1.slice(0, _local1.indexOf("$4")) + s4) + _local1.slice(_local1.indexOf("$4") + 2);
}
return(_local1);
}
function CreateST() {
var _local1;
trace("Creating String Table...");
LangText = LangText.substr(1);
index = LangText.indexOf(";=");
LangText = LangText.substr(index + 2);
_local1 = 0;
while (_local1 < StringTable.length) {
StringTable[_local1] = Replace(StringTable[_local1], ">", "");
index = LangText.indexOf(";=");
if (index == -1) {
trace("i+" + _local1);
break;
}
trace("ORIGINAL : " + StringTable[_local1]);
if (LangText.substr(0, index) != "") {
StringTable[_local1] = LangText.substr(0, index);
}
trace("TRANSLATED: " + StringTable[_local1]);
trace("");
LangText = LangText.substr(index + 2);
StringTable[_local1] = StringTable[_local1].split("\\n").join(newline);
_local1++;
}
var _local2 = StringTable[163].split(",");
_local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].length > 2) {
badwords.push(_local2[_local1]);
}
_local1++;
}
}
function ReverseObj(Obj) {
var _local2 = new Object();
for (var _local3 in Obj) {
_local2[Obj[_local3]] = _local3;
}
return(_local2);
}
function CreateTabs() {
tabs[0] = new Object();
tabs[0].t = (tabs[0].h = ((_global.gn != undefined) ? (_global.gn) : (ST(0))));
tabs[0].Col = 16777215 /* 0xFFFFFF */;
tabs[0].Flags = 0;
tabs[0].pFunc = Home_onRelease;
tabs[0].dFunc = undefined;
tabs[0].Skip = true;
tabs[1] = new Object();
tabs[1].t = (((xl != undefined) && (xt != undefined)) ? (xt) : "Error!");
tabs[1].h = tabs[1].t + " ";
tabs[1].Col = 16777215 /* 0xFFFFFF */;
tabs[1].Flags = 0;
tabs[1].pFunc = Lobby_onRelease;
tabs[1].dFunc = GoGroup;
tabs[1].Skip = true;
UpdateTabs(0);
}
function UpdateTabs(Active) {
if (Active >= MaxT) {
Active = undefined;
}
if (Active != undefined) {
var _local1 = 0;
while (_local1 < tabs.length) {
tabs[_local1].Main = false;
if (_local1 != Active) {
tabs[_local1].Sound = undefined;
}
_local1++;
}
tabs[Active].Main = true;
DeleteOneUserMc(FindUser(LastPC));
LastPC = tabs[Active].User;
DeleteOneUserMc(FindUser(LastPC));
}
if (tabs.length > 2) {
tabs[0].Skip = undefined;
} else if (tabs[1].Skip == true) {
tabs[0].Skip = true;
}
AddTabs(tabs, tpx, tpy, tpw, tph, TabDepth);
var _local2 = 0;
while (_local2 < tabs.length) {
ColorTab(_local2, tabs[_local2].Col);
_local2++;
}
tu = TabUser();
if (tu != LastTabUser) {
sending_lc.send(fromxat, "onMsg", 2, ((tu == undefined) ? 0 : (tu)), "");
}
LastTabUser = tu;
}
function ColorTab(n, Col) {
var _local1 = tabs[n].mc.bub.back;
var _local3 = new Color(_local1);
_local3.setRGB(Col);
tabs[n].Col = Col;
if ((Col == 16777215) && (tabs[n].Flags & 1)) {
_local1._alpha = 0;
} else {
_local1._alpha = 100;
}
}
function GlowTab(n) {
trace("GlowTab=" + n);
if (tabs[n].Sound == undefined) {
DoMessageSnd = false;
DoTabSnd = true;
tabs[n].Sound = true;
}
tabs[n].mc.bub.filters = TextGlow;
tabs[n].glowc = 6;
TabGlowFlag = true;
}
function AddTabText(tabs, n, sw, sh) {
var mc = tabs[n].mc;
var Tab = tabs[n];
var XX;
var YY;
var sym = "bubble";
if (Tab.Flags & 1) {
sym = "lock";
}
if (Tab.Flags & 8) {
sym = 10000 + Tab.Location;
}
var Tx = 4;
if (!(Tab.Flags & 4)) {
mc.attachMovie(sym, "bub", _root.depth++);
XX = mc.bub._width;
YY = mc.bub._height;
with (mc.bub) {
_xscale = (_yscale = int((100 / YY) * (sh - 6)));
_y = 3;
var swt = sw;
if (swt > 100) {
swt = 100;
_xscale = int((_xscale * swt) / 100);
}
_x = sw * (10 / NX(120));
Tx = int((_x + ((_xscale * XX) / 100)) + (sw * 0.03333333));
}
}
var mcFmt = ((But.mcFmt = new TextFormat()));
mcFmt.align = "left";
mcFmt.bold = true;
mcFmt.color = 14671839 /* 0xDFDFDF */;
mcFmt.font = "_sans";
var s2 = Blend(sh, 18, 28, 10, 16);
mcFmt.size = int(s2);
mc.createTextField("mcTxt2", _root.depth++, Tx, 0, sw - Tx, sh);
mc.mcTxt2.text = Tab.t;
mcFmt.color = 1052688 /* 0x101010 */;
mc.mcTxt2.setTextFormat(mcFmt);
var z = _level0.Blend(sh - mc.mcTxt2.textHeight, 5, 10, 0, 3);
mc.mcTxt._y = mc.mcTxt._y + z;
mc.mcTxt2._y = mc.mcTxt2._y + z;
}
function AddTabs(tabs, tpx, tpy, tpw, tph, TabDepth) {
var savd = _root.depth;
_root.depth = TabDepth;
var n = tabs.length;
var v = 0;
var m = 0;
while (m < n) {
if (tabs[m].Skip != true) {
v++;
}
m++;
}
var f = (c_solid | c_NoCol);
if (v > 0) {
f = (c_bl | c_nolb) | c_NoCol;
}
mctextbackgroundb = AddBackground(tpx, tpy, tpw, tph, f);
var mc = ((tabsmc = createEmptyMovieClip("m" + _root.depth, _root.depth++)));
if (v == 0) {
_root.depth = savd;
return(undefined);
}
var MainW = NX(120);
if (MainW > (tpw / 2)) {
MainW = xInt(tpw / 2);
}
var Olap = 3;
if (v > MaxT) {
v = MaxT;
}
var Wid2 = xInt((((tpw - NX(12)) - MainW) + (Olap * 2)) / (v - 1));
var Main;
var MainX;
var xx = 0;
var TabH = NY(24);
if (Wid2 > MainW) {
Wid2 = MainW;
}
mc._x = tpx;
mc._y = tpy + tph;
var vv = 0;
var m = 0;
while (m < n) {
if (tabs[m].Skip == true) {
} else {
vv++;
if (vv > MaxT) {
break;
}
if (tabs[m].Main == true) {
Main = m;
MainX = xx - Olap;
xx = xx + (MainW - (2 * Olap));
if (m == 0) {
MainX = MainX + Olap;
xx = xx + Olap;
}
} else {
if (tabsmc.sec == undefined) {
tabsmc.sec = tabsmc.createEmptyMovieClip("sec", _root.depth++);
}
mc = (tabs[m].mc = tabsmc.sec.createEmptyMovieClip("m" + _root.depth, _root.depth++));
var Wid3 = Wid2;
mc.beginFill(14606046, 40);
ButtonCurve2(mc, 8, Wid3 + 1, TabH, (c_tl + c_tr) + c_nolt, 1, 13421772, 0);
AddTabText(tabs, m, Wid3, TabH);
mc._x = xx;
xx = xx + Wid2;
}
}
m++;
}
mc = (tabs[Main].mc = tabsmc.createEmptyMovieClip("m" + _root.depth, _root.depth++));
mc._x = MainX;
mc.beginFill(16777215, 40);
ButtonCurve2(mc, 8, MainW, TabH, (c_tl + c_tr) + c_nolt, 1, 13421772, 100);
AddTabText(tabs, Main, MainW, TabH);
vv = MaxT;
var m = 0;
while (m < n) {
vv--;
if (vv < 0) {
break;
}
if (tabs[m].Skip == true) {
} else {
mc = tabs[m].mc;
mc.dFunc = tabs[m].dFunc;
mc.t = tabs[m].t;
mc.h = tabs[m].h;
mc.n = m;
mc.onRollOver = function () {
if (this.h != undefined) {
Hint(8, 0, this.h, true, 0, nd, 200, this);
}
removeMovieClip(tabsmc.del);
if (this.dFunc != undefined) {
var _local4 = "delete";
if (this.dFunc == GoGroup) {
_local4 = "home";
}
var _local3 = (this.del = tabsmc.attachMovie(_local4, "del", _root.depth++));
_local3.dFunc = this.dFunc;
_local3._x = ((this._x + this._width) - 9) - 6;
_local3._y = int((this._height - 9) / 2);
_local3.n = this.n;
_local3.onPress = function () {
this.dFunc(this.n);
};
if (this.dFunc == GoGroup) {
_local3.onRollOver = function () {
Hint(8, 0, ST(13, tabs[this.n].t), true, 0, nd, 200, this);
};
}
}
};
mc.onMouseMove = function () {
if ((tabsmc.del != undefined) && ((_ymouse < tabsmc._y) || (_ymouse > (tabsmc._y + this._height)))) {
removeMovieClip(tabsmc.del);
}
};
mc.onRollOut = function () {
HintOff();
};
mc.pFunc = tabs[m].pFunc;
mc.onPress = function () {
HintOff();
this.pFunc(this.n);
};
}
m++;
}
if (tabsmc.sec != undefined) {
tabsmc.mask1 = tabsmc.createEmptyMovieClip("m1", _root.depth++);
tabsmc.mask1.beginFill(65535, 100);
tabsmc.mask1._x = MainX;
ButtonCurve2(tabsmc.mask1, 8, MainW, TabH, ((c_tl + c_tr) + c_nolt) + c_inv, 0, 0, 0);
tabsmc.sec.setMask(tabsmc.mask1);
}
with (tabsmc) {
lineStyle(1, 13421772, 100);
moveTo(0, 0);
lineTo(MainX, 0);
moveTo(MainX + MainW, 0);
lineTo(xInt(tpw) - 8, 0);
}
_root.depth = savd;
}
function TabSelected() {
var _local2 = tabs.length;
var _local1 = 0;
while (_local1 < _local2) {
if (tabs[_local1].Main == true) {
return(_local1);
}
_local1++;
}
return(0);
}
function TabIsPrivate() {
var _local1 = TabSelected();
return(((tabs[_local1].Flags & 1) ? true : false));
}
function TabUser() {
var _local1 = TabSelected();
return(tabs[_local1].User);
}
function TabAdd(UserNo, Col, Flags, Release, Delete) {
var _local2 = -1;
var _local1 = 0;
while (_local1 < tabs.length) {
if (tabs[_local1].User == UserNo) {
_local2 = _local1;
break;
}
_local1++;
}
if (_local2 == -1) {
_local2 = tabs.length;
tabs[_local2] = new Object();
}
tabs[_local2].User = UserNo;
tabs[_local2].h = GetUsername(UserNo);
tabs[_local2].t = StripSmilies(tabs[_local2].h);
var _local4 = FindUser(UserNo);
if (tabs[_local2].t == "") {
Users[_local4].tUpd = _local2;
}
tabs[_local2].Col = Col;
tabs[_local2].Flags = Flags;
tabs[_local2].pFunc = Release;
tabs[_local2].dFunc = Delete;
tabs[_local2].Location = Users[_local4].Location;
return(_local2);
}
function GetDom(room) {
return(((xInt(room) < 8) ? 3 : ((xInt(room) & 96) >> 5)));
}
function GetPort(room) {
return(((xInt(room) < 8) ? (9999 + xInt(room)) : (10007 + (xInt(room) % 32))));
}
function NetworkInit() {
NetworkState = 0;
NetworkTimeout = -1;
MessageCount = 0;
LurkerLimit = 3600;
LurkerTimeout = -1;
}
function NetworkStartChat() {
ClearLists(true);
UngagTimeout = undefined;
if ((w_userrev != undefined) && ((w_k1 == 0) || (w_k2 == 0))) {
UserId = undefined;
k1 = undefined;
k2 = undefined;
temp_comm = (((((chatdomain + "auser3.php?u=") + xInt(w_userno)) + "&k2=") + w_k2) + "&t=") + Math.random();
trace("AUSER:" + temp_comm);
loadVariables (temp_comm, _root);
} else if (w_userrev == undefined) {
UserId = 2;
} else {
trace("not adding user");
UserId = w_userno;
k1 = w_k1;
k2 = w_k2;
}
SetNetworkState(1, 120);
DoBuildUserListScrollUp = true;
mcLoad.IMdisplayContacts();
}
function NetworkSendMsg(UserNo, Text, pc, pm, cm, Param) {
trace((((pc + " ") + pm) + " ") + cm);
if (pc == undefined) {
pc = 0;
}
if (pm == undefined) {
pm = 0;
}
if (cm == undefined) {
cm = 0;
}
var _local3 = new XML();
var _local1;
var _local7 = true;
if (cm != 0) {
_local1 = _local3.createElement("c");
if (pc != 0) {
_local1.attributes.d = w_userno;
_local1.attributes.s = 2;
}
_local1.attributes.t = Text;
_local1.attributes.u = cm;
if (Param != undefined) {
_local1.attributes.p = Param;
}
} else if (pm != 0) {
if (((OnUserList(pm) && (Text.substr(0, 2) != "/a")) && (Text.substr(0, 2) != "/l")) && (Text.substr(0, 2) != "/t")) {
_local1 = _local3.createElement("p");
if (pc != 0) {
_local1.attributes.d = w_userno;
_local1.attributes.s = 2;
}
_local1.attributes.t = Text;
_local1.attributes.u = pm;
} else {
_local1 = _local3.createElement("z");
if (pc != 0) {
_local1.attributes.s = 2;
}
_local1.attributes.t = Text;
_local1.attributes.u = (w_userno + "_") + w_userrev;
_local1.attributes.d = pm;
_local7 = false;
}
} else if (pc != 0) {
if (OnUserList(pc)) {
_local1 = _local3.createElement("p");
_local1.attributes.d = w_userno;
_local1.attributes.s = 2;
_local1.attributes.t = Text;
_local1.attributes.u = pc;
} else {
_local1 = _local3.createElement("z");
_local1.attributes.s = 2;
_local1.attributes.t = Text;
_local1.attributes.u = (w_userno + "_") + w_userrev;
_local1.attributes.d = pc;
_local7 = false;
}
} else {
_local1 = _local3.createElement("m");
_local1.attributes.u = ((w_userrev <= 0) ? (UserNo) : ((UserNo + "_") + w_userrev));
_local1.attributes.t = Text;
if (CountLinks(Text) > 0) {
_local1.attributes.l = 1;
}
}
_local3.appendChild(_local1);
socket.send(_local3);
if (Text.substr(0, 1) != "/") {
GlowUser(w_userno);
}
if (_local7) {
LurkerTimeout = LurkerLimit;
}
trace("TX:" + _local1);
}
function NetworkDeleteMessage(MessageNumber) {
NetworkSendMsg(w_userno, "/d" + MessageNumber);
}
function NetworkGagUser(Type, UserNo, bGag, iDuration, Reason) {
trace("ng=" + UserNo);
NetworkSendMsg(w_userno, (bGag ? (("/" + Type) + iDuration) : "/u"), 0, 0, UserNo, Reason);
}
function NetworkKickUser(UserNo, Reason) {
NetworkSendMsg(w_userno, "/k", 0, 0, UserNo, Reason);
}
function NetworkMakeUser(UserNo, Make) {
NetworkSendMsg(w_userno, "/" + Make, 0, 0, UserNo);
}
function SysMsg(Type, Param, NameUid, Reason, Duration) {
var _local1 = "";
var _local2 = Users[NameUid].n.substr(0, 128);
if (CountLinks(_local2) > 0) {
_local2 = Users[NameUid].registered;
if (!_local2) {
_local2 = Users[NameUid].u;
}
}
if (Type == 0) {
if (Param == "M") {
_local1 = _local1 + ST(137, _local2);
} else if (Param.charAt(0) == "m") {
_local1 = _local1 + ST(128, _local2);
var _local5 = xInt(Param.substr(1) / 36) / 100;
if (_local5 > 0) {
_local1 = _local1 + (((("(" + _local5) + " ") + ST(116)) + ")");
}
} else if (Param == "e") {
_local1 = _local1 + ST(132, _local2);
} else if (Param == "r") {
_local1 = _local1 + ST(138, _local2);
}
} else if (Type == 1) {
if (Reason.indexOf("#") != -1) {
var _local8 = Reason.substr(0, Reason.indexOf("#"));
var _local9 = Reason.substr(Reason.indexOf("#") + 1);
_local1 = _local1 + ST(194, _local2, _local9, _local8);
} else {
_local1 = _local1 + ST(123, _local2, Reason);
}
} else if (Type == 2) {
if (Reason.length == 0) {
if (Duration == 0) {
_local1 = _local1 + ST(119, _local2);
} else {
_local1 = _local1 + ST(120, _local2, String(Duration / 3600));
}
} else if (Duration == 0) {
_local1 = _local1 + ST(121, _local2, Reason);
} else {
_local1 = _local1 + ST(122, _local2, String(Duration / 3600), Reason);
}
} else if (Type == 3) {
_local1 = _local1 + (((ST(90) + " ") + _local2) + ".");
} else if (Type == 4) {
if (Param.charAt(0) == "n") {
_local1 = _local1 + ST(196, _local2);
var _local5 = xInt(Param.substr(1) / 36) / 100;
if (_local5 > 0) {
_local1 = _local1 + (((("(" + _local5) + " ") + ST(116)) + ")");
}
}
} else if ((Type == 5) || (Type == 6)) {
if (Reason.length == 0) {
_local1 = _local1 + ST(199, ((Type == 5) ? (ST(188)) : (ST(201))), _local2, String(Duration / 3600));
} else {
_local1 = _local1 + ST(200, ((Type == 5) ? (ST(188)) : (ST(201))), _local2, String(Duration / 3600), Reason);
}
} else {
return("");
}
return("<i> " + _local1);
}
function NetworkFriendUser(UserNo, bFriend) {
var _local1 = FindUser(UserNo);
Users[_local1].friend = bFriend;
DeleteOneUserMc(_local1);
var _local3;
UpdateFriendList(UserNo, bFriend);
if (w_registered == undefined) {
return(undefined);
}
var _local2 = (("/b " + UserNo) + ",") + (bFriend ? "1" : "2");
if (bFriend) {
_local3 = Users[_local1].registered;
if (_local3 == undefined) {
_local3 = "";
}
_local2 = _local2 + ((("," + _local3) + ",") + Users[_local1].n.substr(0, 20));
}
NetworkSendMsg(w_userno, _local2, 0, 0, 2);
}
function NetworkSetPool(pool) {
var _local1 = new XML();
var _local2 = _local1.createElement("w" + xInt(pool));
_local1.appendChild(_local2);
socket.send(_local1);
}
function NetworkLocateUser(UserNo) {
if (UserNo >= 1999800000) {
return(undefined);
}
NetworkSendMsg(w_userno, "/l", 0, UserNo, 0);
}
function NetworkClose() {
SetNetworkState(0, -1);
socket.close();
if (messageecho == "s") {
sending_lc.send(fromxat, "onMsg", 4, 0, "o");
}
}
function UpdateChannel(Channel, UserNo) {
var _local1 = FindUser(UserNo);
if (Channel < 10000) {
Channel = 0;
}
if ((_local1 >= 0) && (Users[_local1].xNum != Channel)) {
Users[_local1].xNum = Channel;
DeleteOneUserMc(_local1);
}
}
function NetworkSendExtMessage(Channel, User, Message) {
LurkerTimeout = LurkerLimit;
var _local2 = new XML();
var _local1;
_local1 = _local2.createElement("x");
_local1.attributes.t = Message;
if (User != 0) {
_local1.attributes.d = User;
}
_local1.attributes.u = w_userno;
_local1.attributes.i = Channel;
UpdateChannel(Channel, w_userno);
_local2.appendChild(_local1);
socket.send(_local2);
trace(_local1);
}
function NetworkSendxmlExtMessage(xmlstr) {
LurkerTimeout = LurkerLimit;
var _local1 = new XML(xmlstr);
trace("sendxmlChannel=" + _local1.firstChild.attributes.i);
UpdateChannel(_local1.firstChild.attributes.i, w_userno);
socket.send(_local1);
trace(_local1.toString());
}
function NetworkLogin(Name, Password) {
var _local2 = new XML();
var _local1 = _local2.createElement("v");
_local1.attributes.n = Name;
_local1.attributes.p = Password;
_local2.appendChild(_local1);
socket.send(_local2);
trace(_local1);
}
function SetNetworkState(nNetworkState, nTimeOut) {
trace((("SetNetworkState=" + nNetworkState) + " Timeout=") + nTimeOut);
NetworkState = nNetworkState;
NetworkTimeout = nTimeOut;
if (ButtonLoginMc != undefined) {
if (NetworkState == 0) {
s = ST(19);
} else if (NetworkState == 4) {
s = ST(31);
} else {
s = ST(32);
}
ButtonLoginMc.SetText(s);
}
}
function NetworkTick() {
if (NetworkTimeout != -1) {
NetworkTimeout = NetworkTimeout - 1;
if (NetworkTimeout < 0) {
NetworkTimeout = 0;
}
}
if (NetworkState == 1) {
auserLoaded();
if (NetworkTimeout == 0) {
SetNetworkState(0, -1);
GeneralMessage(ST(100), ST(98) + " (AT)");
}
} else if (NetworkState == 3) {
if (NetworkTimeout == 0) {
socket.onConnect = myOnConnectFoo;
if ((w_redirectport == undefined) && (w_room != 29749227)) {
SetNetworkState(11, -1);
} else {
SetNetworkState(0, -1);
GeneralMessage(ST(100), ST(98) + " (CT)");
}
}
} else if (NetworkState == 4) {
if (w_redirectport != 80) {
Fire = false;
}
if (LurkerTimeout != -1) {
if (w_userno <= 1999900000) {
if (LurkerTimeout <= 0) {
NetworkSendMsg(w_userno, "/KEEPALIVE", 0, 0, 1);
} else {
LurkerTimeout = LurkerTimeout - 1;
}
}
}
if ((FailoverMode && (lb == "t")) && ((tick % 720) == 0)) {
if (test_xml != undefined) {
delete test_xml;
}
test_xml = undefined;
test_xml = new XML();
test_xml.ignoreWhite = true;
test_xml.onLoad = test_xml_onLoad;
var _local8 = new Date();
var _local7 = (("http://util.xat.com/web_gear/chat/fail.php?failover" + xInt(_local8.getTime() / 150000)) + "_") + GetDom(w_useroom);
trace("XMLTest=" + _local7);
test_xml.load(_local7);
}
} else if (NetworkState == 5) {
trace("NetState5");
if (NetworkTimeout != -1) {
if (NetworkTimeout == 0) {
trace("Delayed Reconnect");
logoutbutonPress();
}
} else {
trace("Reconnect");
logoutbutonPress();
}
} else if (NetworkState == 6) {
if (YI != undefined) {
if (w_password != undefined) {
NetworkLogin(w_email, w_password);
WV = true;
}
SetNetworkState(7, 120);
}
if (NetworkTimeout == 0) {
SetNetworkState(0, -1);
GeneralMessage(ST(100), ST(98) + " (Y)");
}
} else if (NetworkState == 7) {
if (WV == false) {
myOnJoin();
}
} else if (NetworkState == 8) {
FailoverMode = true;
var _local9 = w_redirectport == undefined;
SetNetworkState(0, -1);
w_redirectport = useport;
var _local10 = GetDom(w_useroom);
if (SockStatus[_local10] != 0) {
w_redirectdom = _global.Sock[_local10];
} else {
w_redirectdom = _global.Sock2[_local10];
}
lb = "n";
DoUpdate = true;
NetworkClose();
if (_local9) {
logoutbutonPress();
}
} else if (NetworkState == 9) {
FailoverMode = false;
SetNetworkState(0, -1);
w_redirectport = undefined;
w_redirectdom = undefined;
lb = "n";
DoUpdate = true;
NetworkClose();
logoutbutonPress();
} else if (NetworkState == 11) {
if (test_xml != undefined) {
delete test_xml;
}
test_xml = undefined;
if (Fire == true) {
trace("Firewaller Test!");
test_xml = new XML();
test_xml.ignoreWhite = true;
test_xml.onLoad = test_xml_onLoad;
var _local8 = new Date();
var _local7 = (("http://util.xat.com/web_gear/chat/fail.php?firewall" + xInt(_local8.getTime() / 300000)) + "_") + GetDom(w_useroom);
trace("XMLTest=" + _local7);
test_xml.load(_local7);
SetNetworkState(12, 96);
} else {
trace("Firewaller Test Redundant!");
SockStatus[0] = (SockStatus[1] = (SockStatus[2] = (SockStatus[3] = "0")));
SetNetworkState(8, -1);
}
} else if (NetworkState == 12) {
trace("NetState12");
if (NetworkTimeout != -1) {
if (NetworkTimeout == 0) {
SockStatus[0] = (SockStatus[1] = (SockStatus[2] = (SockStatus[3] = "0")));
SetNetworkState(8, -1);
}
}
} else if (NetworkState == 13) {
var _local9 = w_redirectport == undefined;
SetNetworkState(0, -1);
w_redirectport = 80;
w_redirectdom = _global.fwd;
lb = "n";
DoUpdate = true;
NetworkClose();
if (_local9) {
logoutbutonPress();
}
}
MessageCount = MessageCount - 1;
if (MessageCount < 0) {
MessageCount = 0;
}
if (((MessageToProcess != "") && (lb != "n")) && (GotDone)) {
ProcessMessage();
}
if ((((MessageToSend != "") && (MessageCount <= 0)) && (lb != "n")) && (GotDone)) {
if (w_k1 && (MessageToSend.indexOf(w_k1.toString()) != -1)) {
MessageToSend = Replace(MessageToSend, w_k1.toString(), Math.floor(Math.random() * 2147484000).toString());
}
if (w_k2 && (MessageToSend.indexOf(w_k2.toString()) != -1)) {
MessageToSend = Replace(MessageToSend, w_k2.toString(), Math.floor(Math.random() * 2147484000).toString());
}
if (w_k3 && (MessageToSend.indexOf(w_k3.toString()) != -1)) {
MessageToSend = Replace(MessageToSend, w_k3.toString(), Math.floor(Math.random() * 2147484000).toString());
}
var _local11 = CountLinks(MessageToSend);
if (_local11 <= 2) {
NetworkSendMsg(w_userno, MessageToSend, PrivateChat, PrivateMessage, 0);
PrivateChat = (PrivateMessage = 0);
lockmc._visible = false;
if ((messageecho == "l") && (_local11 > 0)) {
sending_lc.send(fromxat, "onMsg", 4, w_userno, MessageToSend);
}
}
MessageCount = 25;
LastMessageToSend = MessageToSend;
MessageToSend = "";
}
if ((((((w_registered != undefined) && (FI)) && ((tick % 12) == 6)) && (lb == "t")) && (GotDone)) && ((w_redirectport == undefined) || (w_redirectport == 80))) {
var _local6 = w_friendlist.length;
if (fs > 0) {
MainSolWrite("w_friendlist2", w_friendlist2);
}
fs = 0;
var _local2 = 0;
while (_local2 < _local6) {
var _local4 = w_friendlist[_local2].u;
if ((_local4 > 6) && (w_friendlist2[_local4] == undefined)) {
var _local3 = "";
if (w_friendlist[_local2].u != w_userno) {
_local3 = (((((("/b " + w_friendlist[_local2].u) + ",") + "1") + ",") + "") + ",") + w_friendlist[_local2].n.substr(0, 20);
} else {
_local3 = (((((((((((((((("/b " + w_friendlist[_local2].u) + ",") + "1") + ",") + "") + ",") + w_friendlist[_local2].n.substr(0, 128)) + ",") + w_friendlist[_local2].a.toString().substr(0, 128)) + ",") + w_friendlist[_local2].h.substr(0, 128)) + ",") + w_friendlist[_local2].v.toString()) + ",") + xInt(w_Mask[0])) + ",") + xInt(w_Mask[1]);
}
trace("FRIEND: " + _local3);
NetworkSendMsg(w_userno, _local3, 0, 0, 2);
w_friendlist2[_local4] = {flags:1};
if ((++fs) >= 5) {
break;
}
}
_local2++;
}
if (fs == 0) {
FI = false;
}
trace("========================");
}
var _local12 = getTimer();
if ((lb == "t") && (_local12 > UngagTimeout)) {
var _local2 = FindUser(w_userno);
Users[_local2].gagged = false;
DoBuildUserList = true;
UngagTimeout = undefined;
}
}
function test_xml_onLoad(success) {
var _local1 = test_xml.firstChild;
trace(_local1.attributes.d);
SockStatus = _local1.attributes.d.split(",");
trace("fail.php=" + success);
if (FailoverMode) {
if (success && (SockStatus[GetDom(w_useroom)] != 0)) {
SetNetworkState(9, -1);
}
} else if (success && (SockStatus[GetDom(w_useroom)] != 0)) {
SetNetworkState(13, -1);
} else {
SetNetworkState(8, -1);
}
delete test_xml;
test_xml = undefined;
}
function auserLoaded() {
if (UserId == undefined) {
trace("auser: not yet.");
} else if (UserId == 0) {
SetNetworkState(0, -1);
GeneralMessage(ST(100), ST(98) + " (A)");
lb = "n";
DoUpdate = true;
} else {
if (UserId != 2) {
w_userno = xInt(UserId);
w_k1 = xInt(k1);
w_k2 = xInt(k2);
var _local2 = SharedObject.getLocal("chat", "/");
if (_local2 != null) {
_local2.data.w_userno = xInt(w_userno);
_local2.data.w_userrev = w_userrev;
_local2.data.w_k1b = w_k1;
_local2.data.w_k2 = w_k2;
_local2.flush();
}
if (w_name == "") {
w_name = GetDefaultName(w_userno);
}
if (w_avatar == "") {
w_avatar = GetDefaultAvatar(w_userno);
}
if (w_homepage == "") {
w_homepage = "";
}
} else {
var _local3 = xInt(Math.random() * 1000000);
if (w_name == "") {
w_name = GetDefaultName(_local3);
}
if (w_avatar == "") {
w_avatar = GetDefaultAvatar(_local3);
}
if (w_homepage == "") {
w_homepage = "";
}
}
var _local4 = OnGagList(w_useroom);
Users.push({n:NameNoXat(w_name), s:Macros.status, u:w_userno, v:w_userrev, a:w_avatar, h:w_homepage, online:true, banned:_local4, owner:false, OnXat:(xInt(xc) & 32) != 0, registered:w_registered, VIP:w_VIP, Bride:w_d2, aFlags:w_d0, Powers:w_Powers});
DoBuildUserList = true;
DoUpdateMessages = true;
ScrollDown = true;
LastScrollTime = undefined;
if (w_redirectport != undefined) {
Port = w_redirectport;
sockdomain = w_redirectdom;
trace((("redirect=" + Port) + " ") + sockdomain);
} else {
sockdomain = _global.Sock[GetDom(w_useroom)];
Port = GetPort(w_useroom);
}
if (forceport != undefined) {
Port = forceport;
}
if (forcedom != undefined) {
sockdomain = forcedom;
}
socket = new XMLSocket();
socket.onConnect = myOnConnect;
socket.onXML = myOnXML;
useport = Port;
trace((("Port=" + useport) + " ") + sockdomain);
sjt = getTimer();
if (!socket.connect(sockdomain, useport)) {
if (w_redirectport == undefined) {
SetNetworkState(11, -1);
} else {
SetNetworkState(0, -1);
lb = "n";
DoUpdate = true;
GeneralMessage(ST(100), ST(98) + " (C)");
}
} else {
SetNetworkState(3, ((w_redirectport == undefined) ? 120 : 180));
}
socket.onClose = function () {
SetNetworkState(5, Math.floor((Math.random() * 12) * 4));
lb = "n";
DoUpdate = true;
};
}
}
function myOnConnect(success) {
jt1 = getTimer() - sjt;
if (NetworkState == 3) {
if (success) {
YI = undefined;
var _local2 = new XML();
var _local1 = _local2.createElement("y");
if (useport == 80) {
_local1.attributes.p = GetPort(w_useroom);
_local1.attributes.s = GetDom(w_useroom);
}
if (pass != undefined) {
_local1.attributes.m = 1;
} else {
_local1.attributes.r = w_useroom;
}
_local2.appendChild(_local1);
trace(_local2);
socket.send(_local2);
SetNetworkState(6, 120);
} else if (w_redirectport == undefined) {
SetNetworkState(11, -1);
} else {
SetNetworkState(0, -1);
lb = "n";
DoUpdate = true;
GeneralMessage(ST(100), ST(98) + " (F)");
}
} else {
trace("Extra Fail");
}
}
function myOnConnectFoo(success) {
trace("Extra Foo Fail");
}
function myOnJoin() {
SetNetworkState(4, -1);
DoUserSnd = true;
w_name_send = CleanTextNoXat(w_name);
w_avatar_send = CleanText(w_avatar);
w_homepage_send = CleanText(w_homepage);
GotDone = false;
var _local3 = new XML();
var _local2 = _local3.createElement("j2");
_local2.attributes.v = ((w_userrev == undefined) ? 0 : (w_userrev));
_local2.attributes.h = w_homepage_send.substr(0, 128);
_local2.attributes.a = w_avatar_send.substr(0, 128);
_local2.attributes.n = w_name_send.substr(0, 256);
if (Macros.status != undefined) {
_local2.attributes.n = _local2.attributes.n + ("##" + Macros.status.substr(0, 128));
}
if (w_registered != undefined) {
_local2.attributes.N = w_registered;
}
if (w_dt) {
_local2.attributes.dt = w_dt;
}
if (w_xats) {
_local2.attributes.dx = w_xats;
}
if (w_PowerO != undefined) {
_local2.attributes.dO = w_PowerO;
}
if (w_Powers[1]) {
_local2.attributes.d5 = w_Powers[1];
}
if (w_Powers[0]) {
_local2.attributes.d4 = w_Powers[0];
}
if (w_d3) {
_local2.attributes.d3 = w_d3;
}
if (w_d2) {
_local2.attributes.d2 = w_d2;
}
if (w_d0 != undefined) {
_local2.attributes.d0 = w_d0;
}
if (w_Mask[1]) {
_local2.attributes.m1 = w_Mask[1];
}
if (w_Mask[0]) {
_local2.attributes.m0 = w_Mask[0];
}
_local2.attributes.u = ((w_userrev == undefined) ? 2 : (w_userno));
if (_global.rf) {
_local2.attributes.e = "1";
}
_local2.attributes.f = ((um != undefined) ? 0 : (((w_autologin & 1) ? 0 : 1))) | (LoginPressed ? 2 : 0);
w_autologin = w_autologin | 1;
if (pass) {
_local2.attributes.r = pass;
}
if (OnGagList(w_useroom)) {
_local2.attributes.b = GetGagTime(w_useroom);
}
_local2.attributes.c = w_useroom;
if (w_pool != undefined) {
_local2.attributes.p = w_pool;
}
if ((w_redirectport == undefined) && (forceport == undefined)) {
_local2.attributes.z = 11;
}
if (w_d1 != undefined) {
_local2.attributes.d1 = w_d1;
}
_local2.attributes.k3 = xInt(w_k3);
_local2.attributes.k = w_k1;
_local2.attributes.y = YI;
if (xc & 32) {
_local2.attributes.q = 1;
}
_local2.attributes.l2 = jt1;
_local2.attributes.l3 = jt2;
_local2.attributes.l4 = getTimer() - sjt;
_local3.appendChild(_local2);
trace(_local3);
socket.send(_local3);
lb = "t";
OnSuper = true;
DoUpdate = true;
ResetSmilies = true;
LurkerTimeout = LurkerLimit;
if (messageecho == "s") {
sending_lc.send(fromxat, "onMsg", 4, 0, "i");
}
}
function myOnXML(doc) {
var _local3 = doc.firstChild;
trace(_local3);
if (_local3 != null) {
var _local8 = xInt(_local3.attributes.u);
var _local4 = FindUser(_local8);
if (_local3.nodeName == "y") {
YI = xInt(_local3.attributes.i);
jt2 = getTimer() - sjt;
YC = xInt(_local3.attributes.c);
} else if (_local3.nodeName == "x") {
UpdateChannel(_local3.attributes.i, _local3.attributes.u);
if (((((_local3.attributes.i != 10001) || (_local3.attributes.t.substr(0, 1) != "b")) || (Users[_local4].mainowner)) || (Users[_local4].owner)) || (Users[_local4].moderator)) {
if ((_local3.attributes.i >= 40000) && (_local3.attributes.i < 50000)) {
trace(_local3.toString());
sending_lc.send(fromxat, "onMsg", _local3.attributes.i, _local3.attributes.u, _local3.toString());
} else if (((_local3.attributes.i == 10000) && (_local3.attributes.t.substr(0, 1) == "B")) && ((Users[_local4].Powers[1] & 4096) == 0)) {
trace("doodle reject");
} else {
sending_lc.send(fromxat, "onMsg", _local3.attributes.i, _local3.attributes.u, _local3.attributes.t);
if ((_local3.attributes.i == 10001) && (_local3.attributes.t.substr(0, 1) == "b")) {
UpdateDJ(_local3.attributes.u);
}
}
}
} else if (_local3.nodeName == "a") {
if ((_local3.attributes.u == w_userno) || (Users[FindUser(_local3.attributes.u)].ignored != true)) {
if (kssh[_local3.attributes.k] || (_local3.attributes.k == "T")) {
Kiss({t:_local3.attributes.t, u:_local3.attributes.u, k:_local3.attributes.k, b:_local3.attributes.b, f:_local3.attributes.f, x:_local3.attributes.x, s:_local3.attributes.s});
}
}
if (_local3.attributes.c != undefined) {
w_coins = xInt(_local3.attributes.c);
var _local57 = SharedObject.getLocal("chat", "/");
if (_local3.attributes.c && (_local57 != null)) {
_local57.data.w_coins = w_coins;
_local57.flush();
}
}
} else if (_local3.nodeName == "v") {
if (_local3.attributes.e != undefined) {
var _local23;
var _local71;
trace("v error=" + _local3.attributes.e);
var _local44 = xInt(_local3.attributes.t);
_local71 = xInt(_local3.attributes.e);
switch (xInt(_local3.attributes.e)) {
case 6 :
_local23 = ST(164);
break;
case 8 :
_local23 = ST(165);
break;
case 10 :
_local23 = ST(166);
break;
case 11 :
_local23 = ST(167);
break;
case 13 :
_local23 = ST(25);
break;
case 14 :
_local23 = ST(168);
break;
case 15 :
_local23 = ST(169);
break;
case 16 :
_local23 = ST(170);
break;
case 17 :
_local23 = ST(171);
break;
case 18 :
_local23 = ST(172);
break;
case 22 :
_local23 = ST(173);
break;
case 24 :
_local23 = ST(187, _local44);
break;
case 36 :
_local23 = ST(215);
break;
case 38 :
_local23 = ST(234);
if (_local44) {
_local23 = _local23 + (" " + ST(235, _local44));
}
break;
default :
_local23 = (ST(174) + " ") + _local71;
}
if (_local71 != 39) {
GeneralMessage(ST(175), _local23);
}
if (_local3.attributes.m == undefined) {
w_d0 = (w_bride = (w_registered = (w_VIP = (w_Powers = (w_xats = (w_PowerO = (w_k3 = undefined)))))));
w_d2 = (w_d3 = (w_dt = (w_coins = 0)));
if ((w_email == 0) && (w_password == "$0")) {
SaveRegData();
mcLoad.LoggedIn(1);
} else {
mcLoad.LoggedIn(0);
}
}
} else {
w_userno = _local3.attributes.i;
w_userrev = 0;
w_k1 = _local3.attributes.k1;
w_d0 = _local3.attributes.d0;
w_d1 = _local3.attributes.d1;
w_d2 = xInt(_local3.attributes.d2);
w_d3 = xInt(_local3.attributes.d3);
w_dt = xInt(_local3.attributes.dt);
w_Powers = new Array(xInt(_local3.attributes.d4), xInt(_local3.attributes.d5));
w_PowerO = _local3.attributes.dO;
w_bride = Users[FindUser(w_d2)].registered;
w_coins = xInt(_local3.attributes.c);
w_xats = _local3.attributes.dx;
if (w_xats) {
w_coins = xInt(w_xats);
}
w_registered = _local3.attributes.n;
w_k2 = _local3.attributes.k2;
w_k3 = _local3.attributes.k3;
SaveRegData();
if (WV2 || (_local3.attributes.RL)) {
lb = "n";
DoUpdate = true;
NetworkClose();
logoutbutonPress();
WV2 = false;
}
mcLoad.LoggedIn(1);
if (messageecho == "s") {
sending_lc.send(fromxat, "onMsg", 4, 0, "l");
}
}
w_password = undefined;
WV = false;
} else if ((((_local3.nodeName == "m") || (_local3.nodeName == "p")) || (_local3.nodeName == "c")) || (_local3.nodeName == "z")) {
var _local35 = false;
var _local31 = false;
var _local36 = true;
var _local77 = false;
var _local42 = false;
var _local76 = false;
var _local47 = false;
var _local74 = false;
var _local64 = false;
var _local46 = false;
var _local65 = false;
var _local61 = false;
var _local59 = false;
var _local66 = false;
var _local18 = _local3.attributes.t.substr(0, 2);
var _local25 = _local18.substr(0, 1) == "/";
if ((_local3.nodeName == "p") || (_local3.nodeName == "z")) {
_local35 = true;
}
if (_local3.nodeName == "c") {
_local65 = true;
}
if (_local3.attributes.s & 1) {
_local36 = false;
}
if (_local35 && (_local3.attributes.s & 2)) {
_local31 = true;
}
if (((!_local25) && (_local3.nodeName == "m")) && (_local3.attributes.u == undefined)) {
trace((((("yayaya" + _local25) + " ") + _local3.nodeName) + " ") + _local3.attributes.u);
return(undefined);
}
if (_local3.attributes.t.indexOf("<inf7>") != -1) {
_local25 = true;
}
_local3.attributes.t = Replace(_local3.attributes.t, ">", " ");
if ((_local35 && (!_local31)) && (!_local25)) {
_local3.attributes.t = "<priv> " + _local3.attributes.t;
}
if (_local25) {
if (_local18 == "/d") {
_local77 = true;
}
if (_local18 == "/s") {
_local66 = true;
}
if ((_local3.nodeName == "c") && (_local18 == "/g")) {
_local42 = true;
}
if ((_local3.nodeName == "c") && (_local18 == "/u")) {
_local76 = true;
}
if ((_local3.nodeName == "c") || (_local3.nodeName == "p")) {
if (_local18 == "/m") {
_local47 = true;
}
if (_local18 == "/r") {
_local74 = true;
}
if (_local18 == "/k") {
_local64 = true;
trace("Is Kick User");
}
}
if (_local3.nodeName == "z") {
if (_local18 == "/l") {
_local61 = true;
}
if (_local18 == "/a") {
_local59 = true;
}
trace("FirstTwo" + _local18);
}
if (_local18 == "/b") {
if (_local3.attributes.t == "/bd") {
w_friendlist.length = 0;
w_friendlist2.length = 0;
} else if (_local3.attributes.t == "/bf") {
MainSolWrite("w_friendlist", w_friendlist);
MainSolWrite("w_friendlist2", w_friendlist2);
} else {
var _local26 = _local3.attributes.t.substr(3).split(",");
var _local34 = xInt(_local26[0]);
if (_local34 == w_userno) {
var _local27 = SharedObject.getLocal("chat", "/");
if (_local27 != null) {
_local27.data.w_name = CleanTextNoXat(_local26[3]);
_local27.data.w_avatar = ((_local26[4] != undefined) ? CleanAv(_local26[4]) : "");
_local27.data.w_homepage = ((_local26[5] != undefined) ? UrlAv(_local26[5]) : "");
_local27.data.w_userrev = ((_local26[6] != undefined) ? _local26[6] : 0);
_local27.data.w_Mask = _local26[7].split("|");
trace((((("qqq" + _local27.data.w_name) + " ") + _local27.data.w_avatar) + " ") + _local27.data.w_homepage);
_local27.flush();
}
} else if (w_friendlist2[_local34] == undefined) {
}
var _local41 = new Object();
_local41.u = _local34;
_local41.v = 0;
_local41.n = CleanTextNoXat(_local26[3]);
_local41.a = "";
_local41.h = "";
w_friendlist.push(_local41);
if (w_friendlist2[_local34] == undefined) {
w_friendlist2[_local34] = new Object();
}
w_friendlist2[_local34].flags = xInt(w_friendlist2[_local34].flags) | 1;
}
}
if (_local18 == "/p") {
var _local51 = _local3.attributes.t.indexOf(",");
if (_local51 != -1) {
var _local20 = FindUser(w_userno);
Users[_local20].gagged = true;
DoBuildUserList = true;
UngagTimeout = getTimer() + (xInt(_local3.attributes.t.substr(_local51 + 1)) * 1000);
}
var _local56 = xInt(_local3.attributes.t.substr(2, ((_local51 == -1) ? undefined : (_local51 - 2))));
if (_local56 == 0) {
} else if (_local56 == -1) {
var _local6 = Users.length;
var _local10 = 0;
while (_local10 < _local6) {
Users[_local20].gagged = undefined;
_local10++;
}
DoBuildUserList = true;
helpstr = ST(192);
HelpUpdate = 0;
} else {
helpstr = ST(193, Math.ceil(_local56 / 60).toString(), "3");
HelpUpdate = 0;
}
}
if (_local18 == "/t") {
var _local40 = tabs.length;
var _local10 = 0;
while (_local10 < _local40) {
if ((tabs[_local10].User == _local8) && (tabs[_local10].Flags & 16)) {
trace("TALK TO THE HAND");
Kiss({t:_local3.attributes.t.substr(2), u:_local3.attributes.u, k:"Ttth"});
Private_onDelete(_local10);
break;
}
_local10++;
}
}
if (_local3.nodeName == "m") {
if ((((((_local18 == "/g") || (_local18 == "/u")) || (_local18 == "/m")) || (_local18 == "/r")) || (_local18 == "/k")) || (_local18 == "/n")) {
_local3.attributes.p = Replace(_local3.attributes.p, ">", " ");
var _local24 = FindUser(_local3.attributes.d);
if (_local24 != -1) {
trace("FirstTwo" + _local18);
if (_local18 == "/g") {
if (_local3.attributes.t.substr(0, 3) == "/gg") {
_local3.attributes.t = SysMsg(5, undefined, _local24, _local3.attributes.p, xInt(_local3.attributes.t.substr(3)));
} else if (_local3.attributes.t.substr(0, 3) == "/gm") {
_local3.attributes.t = SysMsg(6, undefined, _local24, _local3.attributes.p, xInt(_local3.attributes.t.substr(3)));
} else {
_local3.attributes.t = SysMsg(2, undefined, _local24, _local3.attributes.p, xInt(_local3.attributes.t.substr(2)));
}
} else if (_local18 == "/u") {
_local3.attributes.t = SysMsg(3, undefined, _local24, _local3.attributes.p, xInt(_local3.attributes.t.substr(2)));
} else if (_local18 == "/m") {
_local3.attributes.t = SysMsg(0, _local3.attributes.p, _local24);
} else if (_local18 == "/r") {
_local3.attributes.t = SysMsg(0, "r", _local24);
} else if (_local18 == "/k") {
var _local52 = FindUser(_local3.attributes.u);
trace((((_local52 + "J") + Users[_local52].Powers[0]) + "L") + (Users[_local52].Powers[0] & 33554432));
if ((Users[_local52].Powers[0] & 33554432) == 0) {
if (_local3.attributes.p.indexOf("#") != -1) {
_local3.attributes.p = _local3.attributes.p.substr(0, _local3.attributes.p.indexOf("#"));
}
}
_local3.attributes.t = SysMsg(1, undefined, _local24, _local3.attributes.p);
} else if (_local18 == "/n") {
trace("woot");
_local3.attributes.t = SysMsg(4, _local3.attributes.p, _local24);
}
_local25 = false;
}
}
}
}
if (!Slash) {
_local3.attributes.t = PreProcSmilie(_local3.attributes.t, _local8 != w_userno);
}
if (w_mainowner) {
_local42 = false;
}
MessageCount = 0;
if ((_local4 == -1) && (!_local25)) {
trace("putting blank user on list");
if (_local8 != 0) {
if ((FlagBits & f_Live) && (_local3.nodeName == "m")) {
Users.push({n:"", u:_local8, v:0, a:"", h:"", online:((_local3.nodeName == "z") ? undefined : false), onsuper:((_local3.nodeName == "z") ? true : undefined), owner:false, friend:OnFriendList(_local8)});
_local4 = FindUser(_local8);
Users[_local4].n = StripSmilies(NameNoXat(_local3.attributes.n));
Users[_local4].a = _local3.attributes.a;
Users[_local4].h = _local3.attributes.h;
Users[_local4].v = _local3.attributes.v;
if (Users[_local4].n == "") {
Users[_local4].n = GetDefaultName(Users[_local4].u);
}
if (Users[_local4].a == "") {
Users[_local4].a = GetDefaultAvatar(Users[_local4].u);
}
if (Users[_local4].h == "") {
Users[_local4].h = "";
}
Users[_local4].registered = _local3.attributes.N;
Users[_local4].q = _local3.attributes.q;
Users[_local4].Bride = xInt(_local3.attributes.d2);
Users[_local4].aFlags = xInt(_local3.attributes.d0);
} else {
Users.push({n:"", u:_local8, v:0, a:"", h:"", online:((_local3.nodeName == "z") ? undefined : false), onsuper:((_local3.nodeName == "z") ? true : undefined), owner:false, friend:OnFriendList(_local8)});
_local4 = FindUser(_local8);
}
}
}
if (((_local35 && ((Users[_local4].gagged || (Users[_local4].banned)) || (_local3.attributes.b == 1))) && (!Users[_local4].friend)) && (!_local59)) {
return(undefined);
}
if (_local65 && (Users[_local4].banned)) {
return(undefined);
}
if (_local3.attributes.q & 2) {
Users[_local4].VIP = true;
}
if (_local3.nodeName == "z") {
if (Users[_local4].onsuper != true) {
DeleteOneUserMc(_local4);
}
Users[_local4].onsuper = true;
} else if ((_local3.nodeName == "m") && (GotDone)) {
if (Users[_local4].gagged) {
Users[_local4].gagged = false;
DoBuildUserList = true;
}
if (Users[_local4].online != true) {
DeleteOneUserMc(_local4);
}
Users[_local4].online = true;
}
if (Users[_local4].online == false) {
if (_local3.attributes.n != undefined) {
if (_local4 != -1) {
if (_local3.attributes.n.substr(0, 1) == "$") {
_local3.attributes.n = _local3.attributes.n.substr(1);
}
Users[_local4].n = NameNoXat(_local3.attributes.n);
Users[_local4].a = _local3.attributes.a;
Users[_local4].h = _local3.attributes.h;
Users[_local4].v = _local3.attributes.v;
if (Users[_local4].n == "") {
Users[_local4].n = GetDefaultName(Users[_local4].u);
}
if (Users[_local4].a == "") {
Users[_local4].a = GetDefaultAvatar(Users[_local4].u);
}
if (Users[_local4].h == "") {
Users[_local4].h = "";
}
Users[_local4].registered = _local3.attributes.N;
DeleteOneUserMc(_local4);
DoUpdateMessages = true;
}
}
}
if ((GotDone && ((Users[_local4].n == "") || (GetRev(_local3.attributes.u) > Users[_local4].v))) && (!_local25)) {
NetworkLocateUser(_local8);
}
if (OnFriendList(Users[_local4].u)) {
var _local6 = w_friendlist.length;
g = 0;
while (g < _local6) {
if (w_friendlist[g].u == Users[_local4].u) {
if (xInt(Users[_local4].v) > xInt(w_friendlist[g].v)) {
trace("Updating Friend List");
UpdateFriendList(Users[_local4].u, true);
}
break;
}
g++;
}
}
var _local49 = OnIgnoreList(_local8);
if (((((w_mainowner || (w_owner)) || (w_moderator)) || (IgnoreTime(_local8) < 0)) && (!_local35)) && (!_local31)) {
_local49 = false;
}
if (((((FlagBits & f_Live) && (_local35)) && (!_local31)) && (!_local25)) && (!(((Users[_local4].member || (Users[_local4].moderator)) || (Users[_local4].owner)) || (Users[_local4].mainowner)))) {
return(undefined);
}
var _local48 = _local3.attributes.t;
_local48 = CleanText(_local48, 1).toLowerCase();
var _local53 = _local48.toLowerCase();
if (((((_local48.indexOf("chat.php?") != -1) || (_local53.indexOf("freexat") != -1)) || (_local53.indexOf("freesub") != -1)) || (_local53.indexOf("listchats") != -1)) || (_local53.indexOf("llstchats") != -1)) {
_local25 = true;
}
var _local72 = CountLinks(_local3.attributes.t);
if ((_local3.nodeName == "m") && (((((Users[_local4].u > 101) && (!Users[_local4].member)) && (!Users[_local4].moderator)) && (!Users[_local4].owner)) && (!Users[_local4].mainowner))) {
if (_local72 > 0) {
_local25 = true;
}
}
if (((_local3.nodeName == "m") && (messageecho == "l")) && (_local72 > 0)) {
sending_lc.send(fromxat, "onMsg", 4, _local3.attributes.u, _local3.attributes.t);
}
if (_local61) {
var _local43 = FindUser(w_userno);
if ((Users[_local43].flag0 & 1024) && (_local8 > 101)) {
} else if (((Users[_local43].Powers[0] & 32) && (_local8 > 101)) && ((_local4 == -1) || (Users[_local4].online != true))) {
} else if ((!OnIgnoreList(_local8)) || (_local8 <= 101)) {
if (OnFriendList(_local8) || (_local8 <= 101)) {
str = GroupUrl();
} else {
str = "_" + ST(126);
}
if ((getTimer() - LastLocate) > 1150) {
if ((w_userno <= 101) && (w_name.substr(0, 2) == "$$")) {
} else {
NetworkSendMsg(w_userno, "/a" + str, 0, _local8, 0);
LastLocate = getTimer();
}
}
}
} else if (_local59) {
trace("IsAtUser=" + _local3.attributes.t.substr(2));
var _local45 = "";
if (_local3.attributes.t.substr(0, 3) == "/a_") {
_local45 = ST(126);
} else if (_local3.attributes.t.substr(2, usedomain.length) == usedomain) {
_local45 = ST(129, _local3.attributes.t.substr(2));
} else {
_local45 = _local3.attributes.t.substr(2);
}
_local4 = FindUser(xInt(_local3.attributes.u));
if (_local3.attributes.p0 != undefined) {
if (Users[_local4].UnmaskedPowers == undefined) {
Users[_local4].UnmaskedPowers = new Array();
}
if (Users[_local4].Powers == undefined) {
Users[_local4].Powers = new Array();
}
if (_local3.attributes.p0 != undefined) {
Users[_local4].UnmaskedPowers[0] = _local3.attributes.p0;
if (Users[_local4].Powers[0] == undefined) {
Users[_local4].Powers[0] = _local3.attributes.p0;
}
}
if (_local3.attributes.p1 != undefined) {
Users[_local4].UnmaskedPowers[1] = _local3.attributes.p1;
if (Users[_local4].Powers[1] == undefined) {
Users[_local4].Powers[1] = _local3.attributes.p1;
}
}
}
Users[_local4].n = NameNoXat(_local3.attributes.n);
Users[_local4].s = GetStatus(_local3.attributes.n);
if (_local3.attributes.po != undefined) {
Users[_local4].PowerO = _local3.attributes.po;
}
Users[_local4].coins = _local3.attributes.x;
Users[_local4].days = _local3.attributes.y;
Users[_local4].debug = _local3.attributes.g;
WriteLocation(_local45, _local3.attributes.u, _local3.attributes.N);
if (_local3.attributes.n != undefined) {
_local4 = FindUser(xInt(_local3.attributes.u));
if (_local4 != -1) {
if (_local3.attributes.n.substr(0, 1) == "$") {
_local3.attributes.n = _local3.attributes.n.substr(1);
}
Users[_local4].v = _local3.attributes.v;
Users[_local4].n = NameNoXat(_local3.attributes.n);
Users[_local4].u = xInt(_local3.attributes.u);
Users[_local4].a = _local3.attributes.a;
Users[_local4].h = _local3.attributes.h;
Users[_local4].registered = _local3.attributes.N;
if (Users[_local4].n == "") {
Users[_local4].n = GetDefaultName(Users[_local4].u);
}
if (Users[_local4].a == "") {
Users[_local4].a = GetDefaultAvatar(Users[_local4].u);
}
if (Users[_local4].h == "") {
Users[_local4].h = "";
}
DeleteOneUserMc(_local4);
PurgeMessageFromUser(Users[_local4].u);
DoUpdateMessages = true;
if (Users[_local4].tUpd != undefined) {
tabs[Users[_local4].tUpd].t = (tabs[Users[_local4].tUpd].h = Users[_local4].n);
UpdateTabs();
Users[_local4].tUpd = undefined;
}
if (OnFriendList(Users[_local4].u)) {
var _local6 = w_friendlist.length;
g = 0;
while (g < _local6) {
if (w_friendlist[g].u == Users[_local4].u) {
trace((("Ui=" + Users[_local4].v) + " Fi") + w_friendlist[g].v);
if (Users[_local4].v > w_friendlist[g].v) {
trace("Updating Friend List");
UpdateFriendList(Users[_local4].u, true);
}
break;
}
g++;
}
}
}
}
} else if (_local64) {
trace("Kicked!!!!!!!!!!!!!!!!!!");
NetworkClose();
SetNetworkState(0, -1);
lb = "n";
DoUpdate = true;
} else if (_local77) {
var _local39 = xInt(_local3.attributes.t.substr(2));
if (_local39 != 0) {
var _local6 = Message.length;
var _local14 = 0;
while (_local14 < _local6) {
if (Message[_local14].n == _local39) {
Message[_local14].ignored = true;
}
_local14++;
}
DoUpdateMessages = true;
}
} else if (_local42 || _local76) {
UpdateGagList(w_useroom, xInt(_local3.attributes.t.substr(2)), _local42);
var _local20 = FindUser(w_userno);
if (_local20 > -1) {
Users[_local20].banned = (_local42 ? true : false);
DeleteOneUserMc(_local20);
}
trace("GotDone=" + GotDone);
if (GotDone && _local42) {
UnfairGroupName = ((w_room == w_useroom) ? ((_global.gn != undefined) ? CleanCommas(_global.gn) : ST(37)) : ((BackVars[1] != undefined) ? CleanCommas(BackVars[1]) : ST(37)));
trace("UnfairGroupName=" + UnfairGroupName);
trace("w_room=" + w_room);
trace("w_useroom=" + w_useroom);
trace("xl=" + xl);
trace("xt=" + xt);
if (UnfairGroupName != ST(37)) {
var _local79 = new Date();
var _local44 = Number(_local79.getTime());
UnfairFile = String(xInt(Math.random() * 999999)) + _local44;
UnfairMessage = ((((((((((w_useroom + ",") + UnfairGroupName) + ",") + w_userno) + ",") + CleanTextNoXat(w_name).substr(0, 128)) + ",") + _local8) + ",") + CleanCommas(GetUsername(_local8))) + ",,";
var _local30 = ST(125);
var _local37 = _local30;
var _local6 = Message.length;
var _local7 = 0;
while (_local7 < _local6) {
if ((!(Message[_local7].s & 2)) && ((Message[_local7].n == 0) ? true : (Message[_local7].d == 0))) {
UnfairMessage = UnfairMessage + (((((Message[_local7].u + ",") + CleanCommas(GetUsername(Message[_local7].u))) + ",") + CleanCommas(Message[_local7].t)) + ",,");
}
if (Message[_local7].u == _local8) {
if (Message[_local7].t.substr(0, 20) == ("<i> " + ST(119))) {
_local30 = (GetUsername(Message[_local7].u) + " ") + ST(127);
_local37 = Message[_local7].t.substr(7);
}
}
_local7++;
}
trace((_local30 + "> ") + UnfairMessage);
UnfairPopup(_local30, _local37);
}
}
} else if (_local47 || _local74) {
if (_local47 && (FlagBits & f_Live)) {
w_redirectport = undefined;
}
var _local60 = SharedObject.getLocal("chat" + String(w_useroom), "/");
if (_local47 || IsMemberUser) {
w_userrev = xInt(w_userrev);
_local60.data.pass = xInt(_local3.attributes.t.substr(2));
} else {
delete _local60.data.pass;
}
_local60.flush();
var _local20 = FindUser(w_userno);
if (_local20 > -1) {
if (Users[_local20].gagged == true) {
Users[_local20].gagged = false;
DoBuildUserList = true;
}
}
} else if (_local66) {
SetScroller(_local3.attributes.t.substr(2, 510));
} else if ((!_local46) && (!_local25)) {
mi++;
Message.push({i:mi * 2, n:_local3.attributes.i, t:_local3.attributes.t, u:_local8, ignored:_local49, s:_local3.attributes.s, d:(_local31 ? _local8 : 0), p:_local35, pb:_local3.attributes.pb});
if (messageecho == "m") {
sending_lc.send(fromxat, "onMsg", 4, mi * 2, _local3.attributes.t);
}
if (mscrollmc.Scrolling != true) {
var _local11 = 0;
var _local12 = 0;
var _local6 = Message.length;
var _local10 = 0;
while (_local10 < _local6) {
if (Message[_local10].s == 2) {
_local11++;
} else {
_local12++;
}
_local10++;
}
var _local22 = 100;
var _local21 = 150;
while ((_local11 > _local22) || (_local12 > _local21)) {
_local6 = Message.length;
var _local9;
_local10 = 0;
while (_local10 < _local6) {
if (_local11 > _local22) {
if (Message[_local10].s == 2) {
_local9 = Message.splice(_local10, 1);
_local11--;
break;
}
} else if (_local12 > _local21) {
if (Message[_local10].s != 2) {
_local9 = Message.splice(_local10, 1);
_local12--;
break;
}
}
_local10++;
}
removeMovieClip(_local9[0].mc);
if (!UserGotMessage(_local9[0].u)) {
_local6 = Users.length;
_local10 = 0;
while (_local10 < _local6) {
if (Users[_local10].u == _local9[0].u) {
if (Users[_local10].online) {
break;
}
if (Users[_local10].u != w_userno) {
if (Users[_local10].friend) {
if (Users[_local10].online != undefined) {
DeleteOneUserMc(_local10);
}
Users[_local10].online = undefined;
} else {
DeleteOneUserMc(_local10);
Users.splice(_local10, 1);
}
DoBuildUserList = true;
}
break;
}
_local10++;
}
}
}
}
if (((!_local46) && _local36) && (!_local49)) {
if (TabIsPrivate() && (TabUser() != _local8)) {
} else {
var _local43 = FindUser(w_userno);
ProcessSounds(_local3.attributes.t, !(Users[_local43].Powers[0] & 256));
}
}
if (((!_local46) && _local36) && (!_local31)) {
GlowUser(_local8);
if (TabIsPrivate()) {
if (w_useroom == w_room) {
ColorTab(0, 39168);
GlowTab(0);
} else if (w_useroom == group) {
ColorTab(1, 39168);
GlowTab(1);
}
}
}
if (((!_local46) && _local31) && (!_local49)) {
trace("Private Chat Message!!!!" + _local31);
trace("Powers[0]=" + Users[_local43].Powers[0]);
var _local29 = -1;
var _local32 = true;
if (_local3.attributes.u != undefined) {
trace("mod=" + Users[_local4].moderator);
if (((!Users[_local4].mainowner) && (!Users[_local4].owner)) && (!Users[_local4].moderator)) {
if (((w_Powers[0] & 1024) & (w_Mask[0] ^ 4294967000)) || ((FlagBits & f_Live) && (!(w_Powers[0] & 1024)))) {
if (!OnFriendList(Users[_local4].u)) {
if (Users[_local4].u > 101) {
trace("not allowed");
_local32 = false;
var _local10 = 0;
while (_local10 < tabs.length) {
trace((("=" + tabs[_local10].User) + " ") + UserNo);
if (tabs[_local10].User == Users[_local4].u) {
trace("allowed");
_local32 = true;
_local29 = _local10;
break;
}
_local10++;
}
}
}
}
}
trace((_local29 + " ") + TabNumber);
if (_local32) {
var TabNumber = ((_local29 != -1) ? _local29 : TabAdd(_local8, 16777215, 1, Private_onRelease, Private_onDelete));
if (TabSelected() != TabNumber) {
ColorTab(TabNumber, 39168);
}
UpdateTabs();
if (TabSelected() != TabNumber) {
GlowTab(TabNumber);
}
DoBuildUserList = true;
}
}
}
DoUpdateMessages = true;
ScrollDown = true;
}
} else if (((_local3.nodeName == "u") || (_local3.nodeName == "g")) || (_local3.nodeName == "o")) {
var _local58 = false;
var _local55 = false;
var _local73 = false;
var _local62 = false;
var _local69 = false;
var _local19 = false;
var _local78 = false;
var _local70 = false;
var _local36 = _local3.nodeName == "u";
var _local82 = (xInt(_local3.attributes.q) & 1) != 0;
var _local68 = ((xInt(_local3.attributes.f) & 32) != 0) || ((xInt(_local3.attributes.q) & 2) != 0);
if (_local68) {
var _local81 = new Array(xInt(_local3.attributes.p0), xInt(_local3.attributes.p1));
}
if ((_local3.attributes.f & 7) == 1) {
_local58 = true;
}
if ((_local3.attributes.f & 7) == 2) {
_local73 = true;
}
if ((_local3.attributes.f & 7) == 3) {
_local62 = true;
}
if ((_local3.attributes.f & 7) == 4) {
_local55 = true;
}
if (_local3.nodeName == "u") {
_local69 = true;
}
if ((_local3.attributes.s & 1) || (_local3.attributes.f & 8)) {
_local36 = false;
}
if (_local3.attributes.f & 16) {
_local19 = true;
}
if (_local3.attributes.f & 64) {
_local78 = true;
}
if (_local3.attributes.f & 256) {
_local70 = true;
}
if (((_local36 && (w_sound & 1)) && (!_local19)) && (_local8 <= 1999900000)) {
if (TabIsPrivate() && (TabUser() != _local8)) {
} else {
DoUserSnd = true;
}
}
if (_local8 != w_userno) {
_local4 = FindUser(_local8);
var _local67 = false;
if (_local3.attributes.n.substr(0, 1) == "$") {
_local67 = _local55 || _local58;
_local3.attributes.n = _local3.attributes.n.substr(1);
}
if (_local4 == -1) {
if (_local3.attributes.n == "") {
_local3.attributes.n = GetDefaultName(_local8);
}
if (_local3.attributes.a == "") {
_local3.attributes.a = GetDefaultAvatar(_local8);
}
if (_local3.attributes.h == "") {
_local3.attributes.h = "";
}
_local4 = Users.push({}) - 1;
} else {
DeleteOneUserMc(_local4);
}
if (_local3.nodeName != "g") {
Users[_local4].n = NameNoXat(_local3.attributes.n);
Users[_local4].s = GetStatus(_local3.attributes.n);
Users[_local4].v = xInt(_local3.attributes.v);
Users[_local4].u = _local8;
Users[_local4].a = _local3.attributes.a;
Users[_local4].h = _local3.attributes.h;
Users[_local4].online = _local69;
Users[_local4].mainowner = _local58;
Users[_local4].owner = _local55;
Users[_local4].moderator = _local73;
Users[_local4].member = _local62;
Users[_local4].onsuper = undefined;
Users[_local4].OnXat = _local82;
Users[_local4].Stealth = _local67;
Users[_local4].friend = OnFriendList(_local8);
Users[_local4].registered = _local3.attributes.N;
Users[_local4].VIP = _local68;
Users[_local4].Powers = _local81;
Users[_local4].Bride = xInt(_local3.attributes.d2);
Users[_local4].aFlags = xInt(_local3.attributes.d0);
Users[_local4].flag0 = xInt(_local3.attributes.f);
}
Users[_local4].xNum = _local3.attributes.x;
if (Users[_local4].u == 4294967000) {
Users[_local4].n = Users[_local4].n + " Spectators";
}
if (_local36 && TabIsPrivate()) {
if (w_useroom == w_room) {
ColorTab(0, 39168);
} else if (w_useroom == group) {
ColorTab(1, 39168);
}
}
DoBuildUserList = true;
if (_local4 > -1) {
Users[_local4].banned = _local19;
Users[_local4].forever = _local78;
Users[_local4].gagged = _local70;
var _local6 = Message.length;
var _local13 = 0;
while (_local13 < _local6) {
if (xInt(Message[_local13].u) == xInt(Users[_local4].u)) {
if (_local19) {
Message[_local13].ignored = true;
}
}
_local13++;
}
DoBuildUserList = true;
DoUpdateMessages = true;
}
if (Users[_local4].friend) {
var _local6 = w_friendlist.length;
g = 0;
while (g < _local6) {
if (w_friendlist[g].u == _local8) {
if (Users[_local4].v > w_friendlist[g].v) {
trace(("Updating Friend List" + Users[_local4].v) + w_friendlist[g].v);
UpdateFriendList(_local8, true);
}
break;
}
g++;
}
}
if (messageecho == "a") {
if ((Users[_local4].banned == true) || OnIgnoreList(_local8)) {
trace("lban:" + _local8);
sending_lc.send(fromxat, "onMsg", 4, _local8, "l");
} else {
trace("a:" + _local3.attributes.a);
sending_lc.send(fromxat, "onMsg", 4, _local8, "u" + _local3.attributes.a);
}
}
}
} else if (_local3.nodeName == "l") {
_local4 = FindUser(_local8);
DeleteOneUserMc(_local4);
if ((_local4 != -1) && (_local8 != w_userno)) {
if ((Users[_local4].online != false) || (Users[_local4].onsuper != false)) {
DeleteOneUserMc(_local4);
}
Users[_local4].onsuper = (Users[_local4].online = false);
Users[_local4].xNum = undefined;
Users[_local4].DJ = undefined;
}
if (!UserGotMessage(Users[_local4].u)) {
var _local6 = Users.length;
var _local10 = 0;
while (_local10 < _local6) {
if ((Users[_local10].u == Users[_local4].u) && (Users[_local10].u != w_userno)) {
Users.splice(_local10, 1);
DoBuildUserList = true;
break;
}
_local10++;
}
}
DoBuildUserList = true;
if (messageecho == "a") {
sending_lc.send(fromxat, "onMsg", 4, _local8, "l");
trace("l:" + _local3.attributes.a);
}
} else if (_local3.nodeName == "i") {
var _local50;
if (w_useroom == w_room) {
SplitBackground(_local3.attributes.b);
_local50 = BackVars;
} else {
_local50 = _local3.attributes.b.split(";=");
}
usebackground = _local50[0];
useRadio = _local50[4];
if ((xc & 4096) || (useRadio.length < 10)) {
useRadio = undefined;
}
ButCol = _local50[5];
if ((ButCol == undefined) || (ButCol.length == 0)) {
ButCol = 13158600 /* 0xC8C8C8 */;
}
if (ButCol.charAt(0) == "#") {
ButCol = parseInt(ButCol.substr(1), 16);
}
ButCol = xInt(ButCol) & 16777215;
ButColW2 = ((ButCol & 255) + ((ButCol >> 8) & 255)) + ((ButCol >> 16) & 255);
if (ButColW2 > 384) {
ButColW = 0;
} else {
ButColW = 16777215 /* 0xFFFFFF */;
}
var ColBut = function (Butt) {
McSetRGB(Butt.But.but.but_back, ButCol);
Butt.But._alpha = 100;
Butt.SetTextCol(ButColW);
McSetRGB(Butt.But.g, ButColW);
McSetRGB(Butt.But.ret, ButColW);
};
var _local75 = function (Scroll) {
ColBut(Scroll.mcScrollUp);
ColBut(Scroll.mcScrollDown);
ColBut(Scroll.mcThumb);
};
ColBut(mcgetachat);
ColBut(ButtonLoginMc);
ColBut(retmc);
_local75(mscrollmc);
_local75(uscrollmc);
UpdateBackground(usebackground);
FlagBits = xInt(_local3.attributes.f);
MkGpBut();
if (MainFlagBits == undefined) {
MainFlagBits = FlagBits;
}
if (w_sound == undefined) {
if (FlagBits & f_DefNoSound) {
w_sound = 4;
} else {
w_sound = 255;
}
}
if ((w_sound & 4) == 0) {
w_sound = w_sound | 254;
}
CreateSoundIcon("Speaker", 1);
CreateSoundIcon("Radio", 2);
if (!(f_NoSmilies & FlagBits)) {
rr = 0;
while (rr < emmax) {
em[rr]._visible = true;
rr++;
}
} else {
em[0]._visible = true;
}
if (xt == undefined) {
tabs[1].t = BackVars[1];
tabs[1].h = tabs[1].t + " ";
}
if (xl == undefined) {
group = BackVars[2];
}
if (f_Lobby & MainFlagBits) {
tabs[0].Skip = undefined;
tabs[1].Skip = undefined;
} else {
tabs[0].Skip = true;
tabs[1].Skip = true;
}
UpdateTabs();
if (xc & 512) {
flash.external.ExternalInterface.call("jsWho", (((((((((_local3.attributes.r + ",") + w_userno) + ",") + pass) + ",") + w_k1) + ",") + w_name_send) + ",") + w_avatar_send);
}
if (_local3.attributes.v & 1) {
} else {
w_registered = undefined;
}
w_VIP = (_local3.attributes.v & 3) == 3;
w_ALLP = _local3.attributes.v & 4;
w_mainowner = false;
w_owner = false;
w_moderator = false;
w_member = false;
if (xInt(_local3.attributes.r) == 1) {
trace("GOOD MAIN OWNER PASSWORD");
w_mainowner = true;
w_owner = true;
} else if (xInt(_local3.attributes.r) == 2) {
trace("GOOD MODERATOR PASSWORD");
w_moderator = true;
} else if (xInt(_local3.attributes.r) == 3) {
trace("GOOD MEMBER PASSWORD");
w_member = true;
} else if (xInt(_local3.attributes.r) == 4) {
trace("GOOD OWNER PASSWORD");
w_owner = true;
} else {
if (pass != undefined) {
SetNetworkState(0, -1);
lb = "n";
DoUpdate = true;
NetworkClose();
}
trace("NO PASSWORD");
pass = undefined;
}
if (w_mainowner) {
if (OnGagList(w_useroom)) {
UpdateGagList(w_useroom, 0, false);
}
var _local20 = FindUser(w_userno);
if (_local20 > -1) {
Users[_local20].banned = false;
DeleteOneUserMc(_local20);
}
}
var _local6 = Users.length;
var _local5 = 0;
while (_local5 < _local6) {
if (Users[_local5].u == w_userno) {
Users[_local5].mainowner = (Users[_local5].owner = (Users[_local5].moderator = (Users[_local5].member = false)));
var _local19 = OnGagList(w_useroom);
Users[_local5].banned = _local19;
if (w_mainowner) {
Users[_local5].mainowner = true;
}
if (w_owner) {
Users[_local5].owner = true;
}
if ((w_owner || w_mainowner) && (w_name.substr(0, 1) == "$")) {
Users[_local5].Stealth = true;
}
if (w_moderator) {
Users[_local5].moderator = true;
}
if (w_member) {
Users[_local5].member = true;
}
Users[_local5].VIP = w_VIP;
if (!w_VIP) {
w_Powers = undefined;
}
Users[_local5].Powers = w_Powers.slice();
if (w_ALLP) {
Users[_local5].Powers[0] = Users[_local5].Powers[0] | 1;
}
Users[_local5].Powers[1] = Users[_local5].Powers[1] & (xInt(w_Mask[1]) ^ 4294967000);
Users[_local5].Powers[0] = Users[_local5].Powers[0] & (xInt(w_Mask[0]) ^ 4294967000);
Users[_local5].Bride = w_d2;
Users[_local5].aFlags = w_d0;
Users[_local5].flag0 = xInt(_local3.attributes.f2);
DeleteOneUserMc(_local5);
DoBuildUserList = true;
break;
}
_local5++;
}
if (w_mainowner && (!xb)) {
mcgetachat.SetText(ST(34));
} else {
mcgetachat.SetText(ST(5));
}
if (((f_MembersOnly | f_MembersOnly2) & FlagBits) && (!((w_owner || w_moderator) || w_member))) {
var _local54;
switch ((f_MembersOnly | f_MembersOnly2) & FlagBits) {
case f_MembersOnly | f_MembersOnly2 :
if (!w_VIP) {
_local54 = ST(176);
}
break;
case f_MembersOnly2 :
if (w_registered == undefined) {
_local54 = ST(177);
}
break;
default :
_local54 = ST(178);
}
if (_local54 != undefined) {
helpstr = ST(37, _local54);
HelpUpdate = 0;
}
}
if (messageecho == "a") {
sending_lc.send(fromxat, "onMsg", 4, 0, "d");
}
fmts.color = 0;
SetScroller(((FlagBits & f_Live) ? ST(217) : ""));
} else if (_local3.nodeName == "w") {
while (Pools.length) {
Pools.shift();
}
Text = _local3.attributes.v;
var _local15 = 0;
var _local38 = w_userno ^ 2863312000;
var _local16 = _local38;
var _local6 = Text.length;
q = 0;
while (q < _local6) {
if ((Text.substr(q, 1) == " ") || (q == (Text.length - 1))) {
pool = xInt(Text.substr(_local15, ((q == (Text.length - 1)) ? ((q - _local15) + 1) : (q - _local15))));
if (_local15 == 0) {
newpool = pool;
} else {
if (_local16 & 1) {
Pools.push(pool);
} else {
Pools.unshift(pool);
}
_local16 = _local16 >>> 1;
if (_local16 == 0) {
_local16 = _local38;
}
}
_local15 = q + 1;
}
q++;
}
if (newpool != w_pool) {
TabClosePrivate();
UpdateTabs();
w_pool = newpool;
ClearLists(false);
DoBuildUserListScrollUp = true;
DoUpdateMessages = true;
} else {
DoBuildUserListScrollUp = true;
}
if (messageecho == "a") {
sending_lc.send(fromxat, "onMsg", 4, 0, "d");
}
} else if (_local3.nodeName == "f") {
var str = _local3.attributes.v;
var _local33 = str.split(",");
var _local6 = _local33.length;
var _local17 = 0;
while (_local17 < _local6) {
_local4 = FindUser(_local33[_local17]);
if (_local4 != -1) {
Users[_local4].onsuper = true;
DeleteOneUserMc(_local4);
}
_local17++;
}
DoBuildUserListScrollUp = true;
} else if (_local3.nodeName == "k") {
trace("kicked off the supersock");
OnSuper = false;
} else if (_local3.nodeName == "dup") {
helpstr = ST(36);
HelpUpdate = 0;
SetNetworkState(0, -1);
lb = "n";
DoUpdate = true;
NetworkClose();
} else if (_local3.nodeName == "q") {
if (_local3.attributes.k != undefined) {
SetNetworkState(0, -1);
lb = "n";
DoUpdate = true;
NetworkClose();
if (QK != true) {
QK = true;
w_userno = 0;
w_userrev = 0;
w_k1 = 0;
w_k2 = 0;
logoutbutonPress();
}
} else {
var _local80 = w_redirectport == undefined;
SetNetworkState(0, -1);
if (_local3.attributes.r != undefined) {
w_room = (w_useroom = xInt(_local3.attributes.r));
} else {
w_redirectport = xInt(_local3.attributes.p);
w_redirectdom = _local3.attributes.d;
if (w_redirectdom.substr(0, 1) == "e") {
w_redirectdom = w_redirectdom + ".xatech.com";
}
}
if ((_local3.attributes.p2 != undefined) && (_local3.attributes.d2 != undefined)) {
var _local24 = FindUser(_local3.attributes.d2);
if (_local3.attributes.p2.indexOf("#") != -1) {
var _local63 = _local3.attributes.p2.substr(0, _local3.attributes.p2.indexOf("#"));
var _local83 = _local3.attributes.p2.substr(_local3.attributes.p2.indexOf("#") + 1);
Bootp = ((((Users[_local24].n + " (") + Users[_local24].u) + ") booted you to ") + _local83) + ((_local63 != "") ? (". Reason:" + _local63) : ".");
trace("boot=" + Bootp);
}
}
lb = "n";
DoUpdate = true;
NetworkClose();
if (_local80) {
logoutbutonPress();
}
}
} else if (_local3.nodeName == "logout") {
helpstr = ST(35);
HelpUpdate = 0;
SetNetworkState(0, -1);
lb = "n";
DoUpdate = true;
NetworkClose();
var _local24 = FindUser(w_userno);
Users[_local24].online = false;
DeleteOneUserMc(_local24);
RemoveMessagesWithNoUser();
} else if (_local3.nodeName == "idle") {
helpstr = ST(33);
HelpUpdate = 0;
SetNetworkState(0, -1);
lb = "n";
DoUpdate = true;
NetworkClose();
RemoveMessagesWithNoUser();
} else if (_local3.nodeName == "abort") {
trace("ABORT");
lb = "n";
DoUpdate = true;
NetworkClose();
SetNetworkState(5, 72);
} else if (_local3.nodeName == "BB") {
trace("BB");
if (YI != xInt(_local3.attributes.y)) {
return(undefined);
}
BB = _local3.attributes.t.split(",");
} else if (_local3.nodeName == "done") {
if (um != undefined) {
GeneralMessage("", (ST(135) + ":\n\n") + um);
GeneralMessageH.Dia.Ok.But.PressFunc = function () {
trace("Sending unmod:" + um);
NetworkMakeUser(um, "r");
SetNetworkState(0, -1);
lb = "n";
DoUpdate = true;
NetworkClose();
this.Parent.Delete(this.Parent);
um = undefined;
};
}
RemoveMessagesWithNoUser();
RemoveUsersWithNoMessages();
if (IsDefaultName(w_name) && (helpstr == "")) {
helpstr = ST(12, " <o> <l>" + w_name);
HelpUpdate = 0;
}
if (Bootp != undefined) {
helpstr = Bootp;
HelpUpdate = 0;
Bootp = undefined;
}
if ((!ImInit) && (xc & 2048)) {
mcLoad.ImSendInit();
}
DoBuildUserList = true;
GotDone = true;
FI = true;
if (connectchannel != undefined) {
sending_lc.send(fromxat, "onMsg", connectchannel, connectuser, connectmsg);
connectchannel = undefined;
}
if (RefreshLogin) {
NetworkLogin(w_userno, 0);
WV2 = true;
RefreshLogin = false;
}
}
}
}
function RemoveMessagesWithNoUser() {
var _local3 = Message.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = FindUser(Message[_local1].u);
if (Users[_local2].n == "") {
Message[_local1].ignored = true;
}
_local1++;
}
DoUpdateMessages = true;
}
function RemoveUsersWithNoMessages() {
var _local1 = Users.length;
i = 0;
while (i < _local1) {
if (Users[i].u != w_userno) {
if (!UserGotUnignoredMessage(Users[i].u)) {
if (Users[i].online == false) {
if (Users[i].friend) {
if (Users[i].online != undefined) {
DeleteOneUserMc(i);
}
Users[i].online = undefined;
} else {
DeleteOneUserMc(i);
Users.splice(i, 1);
i--;
}
DoBuildUserList = true;
}
}
}
i++;
}
}
function GlowUser(UserToGlow) {
var _local2 = Users.length;
var _local1 = 0;
while (_local1 < _local2) {
if (UserToGlow == xInt(Users[_local1].u)) {
Users[_local1].mc.av1.filters = TextGlow;
Users[_local1].glowc = 6;
GlowFlag = true;
break;
}
_local1++;
}
}
function UserGotMessage(UserNumber) {
var _local2 = Message.length;
var _local1 = 0;
while (_local1 < _local2) {
if (Message[_local1].u == UserNumber) {
return(true);
}
_local1++;
}
return(false);
}
function UserGotUnignoredMessage(UserNumber) {
var _local2 = Message.length;
var _local1 = 0;
while (_local1 < _local2) {
if ((Message[_local1].u == UserNumber) && (Message[_local1].ignored != true)) {
return(true);
}
_local1++;
}
return(false);
}
function OnGagList(room) {
var _local2 = w_banlist.length;
var _local1 = 0;
while (_local1 < _local2) {
if (w_banlist[_local1].r == room) {
return(true);
}
_local1++;
}
return(false);
}
function GetGagTime(room) {
var _local2 = w_banlist.length;
var _local1 = 0;
while (_local1 < _local2) {
if (w_banlist[_local1].r == room) {
return(w_banlist[_local1].t);
}
_local1++;
}
return(false);
}
function UpdateGagList(room, time, Add) {
trace((("UGL:" + room) + time) + Add);
if (Add == true) {
if (OnGagList(room)) {
var _local3 = w_banlist.length;
var _local1 = 0;
while (_local1 < _local3) {
if (w_banlist[_local1].r == room) {
w_banlist[_local1].t = time;
break;
}
_local1++;
}
} else {
var _local6 = new Object();
_local6.r = room;
_local6.t = time;
w_banlist.push(_local6);
}
} else {
var _local3 = w_banlist.length;
var _local1 = 0;
while (_local1 < _local3) {
if (w_banlist[_local1].r == room) {
w_banlist.splice(_local1);
break;
}
_local1++;
}
}
var _local5 = SharedObject.getLocal("chat", "/");
if (1 & (_local5 != null)) {
if (_local5.data.w_userno != undefined) {
_local5.data.w_banlist = w_banlist;
_local5.flush();
}
}
trace("AFTER:" + w_banlist);
}
function OnUserList(user, bOfflineToo) {
var _local1 = FindUser(user);
if (_local1 == -1) {
return(false);
}
if ((bOfflineToo == true) || (Users[_local1].online)) {
return(true);
}
return(false);
}
function OnFriendList(friend) {
var _local2 = w_friendlist.length;
var _local1 = 0;
while (_local1 < _local2) {
if (w_friendlist[_local1].u == friend) {
return(true);
}
_local1++;
}
return(false);
}
function UpdateFriendList(friend, Add, fName) {
trace((("updatefriendslist= " + friend) + " ") + Add);
var _local2 = FindUser(friend);
if (Add == true) {
if (!OnFriendList(friend)) {
var _local5 = new Object();
_local5.u = friend;
if (_local2 != -1) {
_local5.v = Users[_local2].v;
_local5.n = CleanTextNoXat(Users[_local2].n);
_local5.a = Users[_local2].a;
_local5.h = Users[_local2].h;
} else {
_local5.v = 0;
_local5.n = fName;
}
w_friendlist.push(_local5);
FI = true;
} else {
var _local4 = w_friendlist.length;
var _local1 = 0;
while (_local1 < _local4) {
if (w_friendlist[_local1].u == friend) {
w_friendlist[_local1].v = Users[_local2].v;
w_friendlist[_local1].n = CleanTextNoXat(Users[_local2].n);
w_friendlist[_local1].a = Users[_local2].a;
w_friendlist[_local1].h = Users[_local2].h;
break;
}
_local1++;
}
}
} else {
var _local4 = w_friendlist.length;
var _local1 = 0;
while (_local1 < _local4) {
if (w_friendlist[_local1].u == friend) {
w_friendlist.splice(_local1, 1);
w_friendlist2[w_friendlist[_local1].u] = undefined;
break;
}
_local1++;
}
}
MainSolWrite("w_friendlist", w_friendlist);
MainSolWrite("w_friendlist2", w_friendlist2);
}
function NetworkIgnore(UserNo, ShowMain) {
var _local4 = OnIgnoreList(UserNo);
UpdateIgnoreList(UserNo, !_local4, ShowMain);
if (ShowMain == undefined) {
var _local5 = Message.length;
var _local1 = 0;
while (_local1 < _local5) {
if (xInt(Message[_local1].u) == UserNo) {
Message[_local1].ignored = !_local4;
}
_local1++;
}
}
if (!_local4) {
var _local6 = tabs.length;
var _local2 = 0;
while (_local2 < _local6) {
if (tabs[_local2].User == UserNo) {
Private_onDelete(_local2);
break;
}
_local2++;
}
}
DoBuildUserList = true;
DoUpdateMessages = true;
}
function TrimIgnoreList() {
var _local4 = new Date();
var _local2 = xInt(Number(_local4.getTime()) / 1000) - 43200;
for (var _local3 in w_ignorelist2) {
var _local1 = w_ignorelist2[_local3];
if (_local1 < 0) {
_local1 = _local1 * -1;
}
if (_local1 < _local2) {
delete w_ignorelist2[_local3];
}
}
}
function OnIgnoreList(user) {
return(w_ignorelist2[user] != undefined);
}
function IgnoreTime(user) {
return(w_ignorelist2[user]);
}
function UpdateIgnoreList(user, Add, ShowMain) {
var _local2 = FindUser(user);
var _local5 = FindUser(w_userno);
if (Users[_local5].xNum == 30004) {
if (Add == true) {
trace("lig:" + user);
sending_lc.send(fromxat, "onMsg", 4, user, "l");
} else {
sending_lc.send(fromxat, "onMsg", 4, user, "u" + Users[_local2].a);
}
}
trace((("UpdateIgnoreList= " + user) + " ") + Add);
trace("IGNOREBEFORE:" + w_ignorelist2);
DeleteOneUserMc(_local2);
if (Add == true) {
var _local4 = new Date();
var _local3 = xInt(Number(_local4.getTime()) / 1000);
w_ignorelist2[user] = ((ShowMain == undefined) ? (_local3) : (-_local3));
} else {
delete w_ignorelist2[user];
}
MainSolWrite("w_ignorelist2", w_ignorelist2);
trace("IGNOREAFTER:" + w_ignorelist2);
DoBuildUserList = true;
}
function GetFriendStatus() {
var _local5 = w_friendlist.length;
var _local17 = getTimer();
g = 0;
while (g < _local5) {
var _local1 = FindUser(w_friendlist[g].u);
if (_local1 == -1) {
if (w_friendlist[g].n != undefined) {
Users.push({n:NameNoXat(w_friendlist[g].n), u:w_friendlist[g].u, v:w_friendlist[g].v, a:w_friendlist[g].a, h:w_friendlist[g].h, online:undefined, banned:false, owner:false, friend:true, onsuper:false});
}
} else {
if ((Users[_local1].friend != true) || (Users[_local1].onsuper != false)) {
DeleteOneUserMc(_local1);
}
Users[_local1].friend = true;
Users[_local1].onsuper = false;
}
g++;
}
trace("GetFriendStatus1=" + (getTimer() - _local17));
var _local3 = "";
var _local6 = 0;
_local3 = "f";
if (w_friendlist[0].u != undefined) {
_local5 = w_friendlist.length;
t = 0;
while (t < _local5) {
_local6++;
_local3 = _local3 + (" " + w_friendlist[t].u);
if ((_local6 == 80) || (t >= (_local5 - 1))) {
var _local2 = new XML();
var _local4 = _local2.createElement(_local3);
_local2.appendChild(_local4);
socket.send(_local2);
trace("GetFriendStatus=" + _local4);
_local6 = 0;
_local3 = "f";
}
t++;
}
}
}
function GetRev(s) {
return(((s.indexOf("_") != -1) ? (xInt(s.substr(s.indexOf("_") + 1))) : 0));
}
function CreateSoundIcon(type, bit) {
var mc;
var _local4;
removeMovieClip("snd_" + bit);
_local4 = createEmptyMovieClip("snd_" + bit, _root.depth++);
mc = _local4.createEmptyMovieClip("mc", _root.depth++);
if (bit == 1) {
SndIcnX = 0;
mcsnd = mc;
}
_local4._x = NX(446) + SndIcnX;
_local4._y = NY(367);
if ((bit == 2) && (useRadio == undefined)) {
return(undefined);
}
mc.attachMovie(type, "nosnd", _root.depth++);
mc.nosnd.SoundOff._visible = (w_sound & bit) == 0;
mc.nosnd.gotoAndStop(1);
var _local8 = ((NX(24) < NY(24)) ? (SX()) : (SY()));
mc.nosnd._yscale = (mc.nosnd._xscale = _local8);
SndIcnX = SndIcnX - int(mc.nosnd._xscale * 0.32);
mc.nosnd._height = mc.nosnd._width;
mc.bit = bit;
if (bit == 2) {
removeMovieClip(em[emmax - 1]);
}
var _local3 = _local4.createEmptyMovieClip("vol", _root.depth++);
_local3.bit = bit;
_local3._y = -118;
_local3._x = 8;
_local3.Bk = new xBut(-8, -4, 22, 118, "", undefined, (b_Panel | b_Border) | b_NoPress, 5, _local3);
_local3.Bk.But.onRollOver = function () {
this._parent._parent.mc.Count = 1200000000 /* 0x47868C00 */;
};
_local3.Bk.But.onRollOut = function () {
this._parent._parent.mc.Count = 12;
};
var _local7 = _local3.createEmptyMovieClip("m2", _root.depth++);
_local7._y = 5;
_local7.beginFill(ButColW, 100);
ButtonCurve2(_local7, 2, 4, 100, 0, 1, ButCol, 100);
_local3.Vol = new xBut(-5, 100 - w_Vol[bit], 15, 10, "", undefined, b_NoPress, 5, _local3);
_local3._visible = false;
var _local6 = _local3.Vol.But;
_local6.onPress = function () {
this.startDrag(true, -5, 100, -5, 0);
this.onEnterFrame = function () {
var _local2 = (w_Vol[this._parent.bit] = 100 - this._y);
this._parent._parent.mc.Count = 12;
trace((("Vol " + w_Vol[this._parent.bit]) + " ") + this._parent.bit);
_local2 = _local2 > 2;
if (((w_sound & this._parent.bit) != 0) != _local2) {
this._parent._parent.mc.onPress();
}
if (this._parent.bit == 1) {
tab_sound.setVolume(w_Vol[1]);
beep.setVolume(w_Vol[1]);
dingdong.setVolume(w_Vol[1]);
}
};
};
_local6.onRelease = (_local6.onReleaseOutside = function () {
stopDrag();
this._parent._visible = false;
this.onEnterFrame = null;
MainSolWrite("w_Vol" + this._parent.bit, w_Vol[this._parent.bit]);
});
mc.onRollOver = function () {
var _local2;
if (this.bit == 1) {
if (w_sound & this.bit) {
_local2 = ST(11);
} else {
_local2 = ST(10);
}
}
if (this.bit == 2) {
if (w_sound & this.bit) {
_local2 = ST(179);
} else {
_local2 = ST(180);
}
}
this._parent.vol._visible = true;
this.Count = 12;
this.onEnterFrame = function () {
this.Count--;
if (this.Count < 0) {
this._parent.vol._visible = false;
this.onEnterFrame = null;
}
};
Hint(NX(0), -NY(24), _local2, true, 1, nd, 0, mc);
};
mc.onRollOut = function () {
HintOff();
};
mc.onPress = function () {
if (this.bit & 3) {
if (w_sound & this.bit) {
w_sound = w_sound & (this.bit ^ 4294967000);
mc.nosnd.SoundOff._visible = true;
} else {
w_sound = w_sound | this.bit;
mc.nosnd.SoundOff._visible = false;
}
MainSolWrite("w_sound", w_sound);
}
};
}
function SaveRegData() {
var _local1 = SharedObject.getLocal("chat", "/");
if (_local1 != null) {
trace("Saving loged in user in cookies:" + w_registered);
_local1.data.w_userno = xInt(w_userno);
_local1.data.w_k1b = w_k1;
_local1.data.w_d0 = w_d0;
_local1.data.w_d1 = w_d1;
_local1.data.w_d2 = w_d2;
_local1.data.w_d3 = w_d3;
_local1.data.w_dt = w_dt;
_local1.data.w_Powers = w_Powers;
_local1.data.w_PowerO = w_PowerO;
_local1.data.w_bride = w_bride;
_local1.data.w_coins = w_coins;
_local1.data.w_xats = w_xats;
_local1.data.w_registered = w_registered;
_local1.data.w_k2 = w_k2;
_local1.data.w_k3 = w_k3;
_local1.flush();
}
}
function GeneralMessage(Txt1, Txt2) {
GeneralMessageH.Dia.Delete();
if (Txt1.length != undefined) {
_root.depth = _root.depth + _level0.l_Box;
GeneralMessageH = new xDialog(ud, ud, ud, ud, Txt1, Txt2, 1);
_root.depth = _root.depth - _level0.l_Box;
}
}
function UnfairPopup(Title, Txt) {
function UnfairFindAnotherGroup() {
UnfairPopupClose();
var _local1 = usedomain + "/groups";
getURL (_local1, "_blank");
UrlPopup(ST(8), _local1);
}
function UnfairPopupClose() {
PopupState = 0;
Popreturn.But.Delete();
Popcopyurl.But.Delete();
Popgroups.But.Delete();
mcPopup.Dia.Delete();
}
function mccopyurl_onRelease2() {
var _local1 = new LoadVars();
_local1.d = UnfairMessage;
_local1.i = UnfairFile;
_local1.sendAndLoad("http://web.xat.com/report/data.php", _local1, "POST");
UnfairPopupClose();
var _local2 = (("http://web.xat.com/report/report.php?i=" + UnfairFile) + "&g=") + UnfairGroupName;
getURL (_local2, "_blank");
UrlPopup(ST(8), _local2);
}
UnfairPopupClose();
_root.depth = _root.depth + l_Box;
mcPopup = new xDialog(int((20 * StageWidth) / 640), int((126 * StageHeight) / 480), int((600 * StageWidth) / 640), int((262 * StageHeight) / 480), Title, Txt, 0, UnfairPopupClose);
var _local2 = mcPopup.Dia.w;
var _local7 = mcPopup.Dia.h;
var _local5 = mcPopup.Dia.x;
var _local6 = mcPopup.Dia.y;
var _local3 = NY(32);
Popcopyurl = new xBut(_local5 + 8, ((_local6 + _local7) - _local3) - 10, (_local2 / 3) - 16, _local3, ST(101), mccopyurl_onRelease2);
Popreturn = new xBut(((_local5 + (_local2 / 2)) - (_local2 / 6)) + 8, ((_local6 + _local7) - _local3) - 10, (_local2 / 3) - 16, _local3, ST(102), UnfairPopupClose);
Popgroups = new xBut(((_local5 + _local2) - (_local2 / 3)) + 8, ((_local6 + _local7) - _local3) - 10, (_local2 / 3) - 16, _local3, ST(103), UnfairFindAnotherGroup);
_root.depth = _root.depth - l_Box;
}
function UrlPopup(Txt, Url, Info) {
function UrlPopupClose() {
PopupState = 0;
Popreturn.But.Delete();
Popcopyurl.But.Delete();
mcPopup.Dia.Delete();
}
function mccopyurl_onRelease2() {
System.setClipboard(Popcopyurl.HomePage);
UrlPopupClose();
_root.depth = _root.depth + l_Box;
new xDialog(ud, ud, ud, ud, ST(105), ST(106), 1);
_root.depth = _root.depth - l_Box;
}
_root.depth = _root.depth + l_Box;
if (Info == undefined) {
Info = "";
} else {
Info = Info + newline;
}
mcPopup = new xDialog(ud, ud, ud, ud, Txt, Info + Url, 0, UrlPopupClose);
var _local5 = mcPopup.Dia.w;
var _local9 = mcPopup.Dia.h;
var _local7 = mcPopup.Dia.x;
var _local8 = mcPopup.Dia.y;
var _local4 = 8;
var _local10 = int(_local5 / ((_local4 * 2) + 3));
var _local6 = int((_local5 * _local4) / ((_local4 * 2) + 3));
var _local11 = _local6;
var _local2 = 22;
Popreturn = new xBut(((_local7 + _local5) - _local10) - _local6, ((_local8 + _local9) - _local2) - 10, _local6, _local2, ST(102), UrlPopupClose);
if (Url.length > 0) {
Popcopyurl = new xBut(_local7 + _local10, ((_local8 + _local9) - _local2) - 10, _local11, _local2, ST(104), mccopyurl_onRelease2);
Popcopyurl.HomePage = Url;
}
_root.depth = _root.depth - l_Box;
}
function ButtonCurve2(mc, radius, boxWidth, boxHeight, Flags, lineWidth, borderColor, Alpha) {
function SetlineStyle() {
mc.lineStyle(lineWidth, borderColor, Alpha, true, "none", "none", "round", 1);
}
function SetnolineStyle() {
mc.lineStyle(0, 0, 0);
}
var r = radius;
if (boxWidth < (r * 2)) {
r = int(boxWidth / 2);
}
if (boxHeight < (r * 2)) {
r = int(boxHeight / 2);
}
var tr = r;
var br = r;
var bl = r;
var tl = r;
if (Flags == undefined) {
Flags = 0;
}
if (Flags & c_tl) {
tl = 0;
}
if (Flags & c_tr) {
tr = 0;
}
if (Flags & c_bl) {
bl = 0;
}
if (Flags & c_br) {
br = 0;
}
SetlineStyle();
with (mc) {
if (Flags & c_inv) {
moveTo(tpw, 0);
} else {
moveTo(tl + 0, 0);
}
if (Flags & c_nolt) {
SetnolineStyle();
} else {
SetlineStyle();
}
lineTo(boxWidth - tr, 0);
if (tr > 0) {
curveTo(boxWidth, 0, boxWidth, tr);
}
SetlineStyle();
lineTo(boxWidth, boxHeight - br);
if (Flags & c_nolb) {
SetnolineStyle();
} else {
SetlineStyle();
}
if (br > 0) {
curveTo(boxWidth, boxHeight, boxWidth - br, boxHeight);
}
lineTo(bl, boxHeight);
SetlineStyle();
curveTo(0, boxHeight, 0, boxHeight - bl);
SetlineStyle();
lineTo(0, tl);
curveTo(0, 0, tl, 0);
if (Flags & c_inv) {
lineTo(-tpw, 0);
lineTo(-tpw, 50);
lineTo(tpw, 50);
lineTo(tpw, 0);
}
endFill();
}
}
function Blend(val, in1, in2, out1, out2) {
if (val <= in1) {
return(out1);
}
if (val >= in2) {
return(out2);
}
var _local4 = int((((val - in1) / (in2 - in1)) * (out2 - out1)) + out1);
return(_local4);
}
function AddBackground(x, y, w, h, Flags) {
if (Flags == undefined) {
Flags == 0;
}
var Background = createEmptyMovieClip("mc" + _root.depth, _root.depth++);
with (Background) {
beginFill(16777215, 40);
if (Flags & 131072) {
beginFill(8421504, 100);
}
var lineWidth = 1;
if (NoLine != undefined) {
lineWidth = 0;
}
var borderColor = ButCol;
var Alpha = 40;
if (Flags & c_NoCol) {
borderColor = 16777215 /* 0xFFFFFF */;
}
if (Flags & c_solid) {
borderColor = 13421772 /* 0xCCCCCC */;
Alpha = 100;
}
ButtonCurve2(Background, 8, w, h, Flags, lineWidth, borderColor, Alpha);
_x = x;
_y = y;
}
return(Background);
}
function createTextNoWrap(mc, boxX, boxY, boxWidth, boxHeight, boxText, fillColor, shadColor, fillAlpha, rot, size, align, Flags) {
var _local2;
boxX = int(boxX);
boxY = int(boxY);
boxWidth = int(boxWidth);
boxHeight = int(boxHeight);
var _local3;
_local3 = new TextFormat();
_local3.align = align;
_local3.bold = true;
_local3.color = fillColor;
_local3.font = "_sans";
_local3.size = size;
_root.depth++;
var _local12 = _root.depth + 10;
var _local4 = mc.createTextField("mcTxt" + _root.depth, _local12, boxX + 1, 1 + boxY, boxWidth - 2, boxHeight - 2);
_local4.text = boxText;
_local4.autoSize = align;
if (Flags & 2) {
_local4.multiline = true;
_local4.wordWrap = true;
}
_local4.setTextFormat(_local3);
if (_local4._width > (boxWidth - 2)) {
var _local14 = (_local3.size * ((boxWidth - 2) / _local4._width)) - 0.5;
var _local15 = 4;
var _local11 = (_local3.size - _local14) / _local15;
if (_local11 < 1) {
_local11 = 1;
}
while ((_local4._width > (boxWidth - 2)) && (_local3.size > 1)) {
_local3.size = _local3.size - _local11;
_local4.setTextFormat(_local3);
}
}
_local4._y = (boxY + int((boxHeight - _local4._height) / 2)) - 1;
_local4._rotation = rot;
if (Flags == undefined) {
_local3.color = shadColor;
y = 0;
while (y < 3) {
x = 0;
while (x < 3) {
if ((x == 1) && (y == 1)) {
} else {
_root.depth++;
mc.createTextField("mcTxt" + _root.depth, _root.depth, ((boxX + 1) + (x * 1)) - 1, (_local4._y + (y * 1)) - 1, boxWidth - 2, boxHeight - 2);
_local2 = mc["mcTxt" + _root.depth];
_local2.text = boxText;
_local2.autoSize = align;
_local2.setTextFormat(_local3);
}
x++;
}
y++;
}
}
_root.depth = _local12 + 1;
return(mc);
}
function Hint(Boxx, Boxy, txt, vis, Pos, size, MaxWidth, mc) {
if (HintDisplayed == true) {
if (vis == true) {
HintUpdate = 0;
} else {
HintUpdate = 500;
}
} else {
HintUpdate = 1000;
}
HintBoxx = Boxx;
HintBoxy = Boxy;
Hinttxt = txt;
Hintvis = vis;
HintPos = Pos;
Hintsize = size;
HintMaxWidth = MaxWidth;
HintMc = mc;
}
function HintOff() {
Hint(0, 0, "", false);
}
function DoHint(Boxx, Boxy, txt, vis, Pos, size, MaxWidth, HintMc) {
_root.depth = _root.depth + l_Hint;
var Wrap = (MaxWidth > 0);
if ((MaxWidth < 2) || (MaxWidth == undefined)) {
MaxWidth = 200;
}
var mc;
if (mc == undefined) {
mc = this;
}
removeMovieClip(HintHldMc);
HintHldMc = mc.createEmptyMovieClip("mc" + _root.depth, _root.depth++);
var mcFmt;
mcFmt = new TextFormat();
mcFmt.align = "left";
mcFmt.color = ButColW;
mcFmt.font = "_sans";
mcFmt.size = size;
if ((mcFmt.size == undefined) || (mcFmt.size <= 1)) {
mcFmt.size = 12;
}
_root.depth++;
var d = (_root.depth + 10);
HintHldMc.createTextField("mcTxt", d, 0, 0, MaxWidth, 200);
HintHldMc.mcTxt.text = txt;
if (Wrap) {
HintHldMc.mcTxt.autoSize = "left";
HintHldMc.mcTxt.multiline = true;
HintHldMc.mcTxt.wordWrap = true;
}
HintHldMc.mcTxt.setTextFormat(mcFmt);
var w = (HintHldMc.mcTxt.textWidth + 4);
HintHldMc.mcTxt._width = w;
var h = (HintHldMc.mcTxt.textHeight + 2);
if (Wrap) {
h = HintHldMc.mcTxt._height;
}
HintHldMc.mcTxt._height = h;
if (!Wrap) {
HintHldMc.mcTxt._height = HintHldMc.mcTxt._height + 2;
}
if (HintHldMc != undefined) {
with (HintHldMc) {
_x = Boxx;
_y = (Boxy - h) - 6;
if (Pos == 1) {
_y = Boxy;
_x = (Boxx - w) - 4;
}
if (Pos == 2) {
_y = Boxy;
_x = Boxx;
}
var xx = 0;
var yy = 2;
beginFill(ButCol, 90);
lineStyle(1, ButColW, 100);
Rectangle(HintHldMc, xx, yy, w, h);
}
HintHldMc._visible = vis;
}
var mc2 = HintMc;
while (mc2 != undefined) {
HintHldMc._x = HintHldMc._x + mc2._x;
HintHldMc._y = HintHldMc._y + mc2._y;
mc2 = mc2._parent;
}
_root.depth = _root.depth - l_Hint;
}
function Rectangle(mc, xx, yy, w, h) {
with (mc) {
moveTo(xx, yy);
lineTo(xx, h + yy);
lineTo(w + xx, h + yy);
lineTo(w + xx, yy);
lineTo(xx, yy);
}
}
function CleanText(s, NoSpace) {
s = String(s);
var _local3 = "";
var _local2;
_local2 = 0;
while (_local2 < s.length) {
var _local5 = s.charCodeAt(_local2);
var _local1 = s.charAt(_local2);
if (_local5 < 32) {
} else if (_local1 == "<") {
} else if (_local1 == ">") {
} else if (_local1 == "\"") {
} else if (_local1 == "'") {
} else if (_local1 == ",") {
} else if (_local1 == " ") {
if (NoSpace != 1) {
_local3 = _local3 + "_";
}
} else {
_local3 = _local3 + _local1;
}
_local2++;
}
return(_local3);
}
function GetStatus(s) {
s = s.split("##")[1];
s = NameNoXat(s, 1).substr(0, 128);
if (s.substr(0, 1) == " ") {
return(undefined);
}
s = searchreplace("_", " ", s);
return(s);
}
function NameNoXat(s, NoSmilie) {
s = s.split("##")[0];
var _local7 = s.split("");
var _local9;
var _local10 = _local7.length;
var _local11;
s = "";
i = 0;
while (i < _local10) {
var _local1 = _local7[i];
var _local5 = _local1.charCodeAt();
if ((_local5 >= 28) && (_local5 <= 31)) {
_local1 = "_";
} else if (_local1 == "(") {
_local9 = true;
} else if (_local1 == ")") {
_local9 = false;
} else if ((_local5 >= 127) && (_local5 <= 159)) {
_local1 = "_";
} else if ((_local1 == " ") || ((!_local9) && (_local1 == "#"))) {
_local1 = "_";
}
if (_local5 > 255) {
if ((_local1 == "?") || (_local1 == "?")) {
_local1 = "X";
} else if ((_local1 == "?") || (_local1 == "?")) {
_local1 = "A";
} else if ((_local1 == "?") || (_local1 == "?")) {
_local1 = "T";
} else if (_local1 == "?") {
_local1 = "x";
} else if (_local1 == "?") {
_local1 = "a";
} else if (_local1 == "a") {
_local1 = "a";
} else if ((_local1 == "?") || (_local1 == "?")) {
_local1 = "M";
} else if (_local1 == "?") {
_local1 = "i";
} else if (_local1 == "?") {
_local1 = "N";
} else if (_local1 == "?") {
_local1 = "d";
} else if (_local1 == "m") {
_local1 = "m";
} else if (_local1 == "?") {
_local1 = "i";
} else if ((_local1 == "?") || (_local1 == "?")) {
_local1 = "H";
} else if ((_local1 == "?") || (_local1 == "?")) {
_local1 == "E";
} else if (_local1 == "h") {
_local1 = "h";
} else if (_local1 == "?") {
_local1 = "e";
} else if ((((((_local1 == "?") || (_local1 == "?")) || (_local1 == "?")) || (_local1 == "?")) || (_local1 == "?")) || (_local1 == "l")) {
_local1 = "I";
} else if (_local1 == "?") {
_local1 = "p";
} else if ((_local1 == "\u00A0 ") || (_local1 == "?")) {
_local1 = "_";
}
}
_local7[i] = _local1;
_local1 = _local1.toLowerCase();
if ((_local1 == "a") || (_local1 == "h")) {
_local11 = true;
}
i++;
}
if (_local11) {
var _local3 = new Array();
var _local8 = "";
var i = 0;
while (i < _local10) {
_local8 = _local8 + _local7[i];
if (_local7[i].charCodeAt() < 256) {
_local3.push(_local8);
_local8 = "";
}
i++;
}
_local3.push(_local8);
var i = 0;
while (i < _local3.length) {
var _local2 = new Array(5);
var _local4 = 0;
while (_local4 < 5) {
_local2[_local4] = _local3[i + _local4].charAt(_local3[i + _local4].length - 1);
_local4++;
}
if (i < (_local3.length - 2)) {
if ((((_local2[0] == "x") || (_local2[0] == "X")) && ((_local2[1] == "a") || (_local2[1] == "A"))) && ((_local2[2] == "t") || (_local2[2] == "T"))) {
j = 0;
while (j < 3) {
s = s + (_local3[i + j].substr(0, _local3[i + j].length - 1) + "Q");
j++;
}
i = i + 2;
}
}
if (i < (_local3.length - 3)) {
if (((((_local2[0] == "h") || (_local2[0] == "H")) && ((_local2[1] == "e") || (_local2[1] == "E"))) && (((_local2[2] == "l") || (_local2[2] == "L")) || (_local2[2] == "I"))) && ((_local2[3] == "p") || (_local2[3] == "P"))) {
j = 0;
while (j < 4) {
s = s + (_local3[i + j].substr(0, _local3[i + j].length - 1) + "Q");
j++;
}
i = i + 3;
}
}
if (i < (_local3.length - 4)) {
if ((((((_local2[0] == "a") || (_local2[0] == "A")) && ((_local2[1] == "d") || (_local2[1] == "D"))) && ((_local2[2] == "m") || (_local2[2] == "M"))) && (((_local2[3] == "i") || (_local2[3] == "I")) || (_local2[3] == "l"))) && ((_local2[4] == "n") || (_local2[4] == "N"))) {
j = 0;
while (j < 5) {
s = s + (_local3[i + j].substr(0, _local3[i + j].length - 1) + "Q");
j++;
}
i = i + 4;
}
}
s = s + _local3[i];
i++;
}
}
s = _local7.join("");
while (s.substr(0, 1) == "_") {
s = s.substr(1);
}
if (NoSmilie == undefined) {
s = PreProcSmilie(s);
}
return(s);
}
function CleanTextNoXat(s) {
return(CleanText(NameNoXat(s, 1)));
}
function CleanMessage(s) {
var _local2 = "";
var _local1;
_local1 = 0;
while (_local1 < s.length) {
var _local5 = s.charCodeAt(_local1);
var _local3 = s.charAt(_local1);
if (_local3 == "\t") {
_local2 = _local2 + " ";
} else if (_local5 < 32) {
} else {
_local2 = _local2 + _local3;
}
_local1++;
}
return(_local2);
}
function CleanCommas(s) {
var _local2 = "";
var _local1;
_local1 = 0;
while (_local1 < s.length) {
var _local5 = s.charCodeAt(_local1);
var _local3 = s.charAt(_local1);
if (_local3 == ",") {
_local2 = _local2 + " ";
} else if (_local5 < 32) {
} else {
_local2 = _local2 + _local3;
}
_local1++;
}
return(_local2);
}
function TimeStamp() {
var _local2 = new Date();
var _local1 = Number(_local2.getTime());
return("&t=" + _local1);
}
function NX(n) {
return(int((n * StageWidth) / 640));
}
function NY(n) {
return(int((n * StageHeight) / 480));
}
function SX(n) {
var _local1 = (StageWidth / 640) * 100;
if (n) {
_local1 = _local1 * n;
}
return(int(_local1));
}
function SY(n) {
var _local1 = (StageHeight / 480) * 100;
if (n) {
_local1 = _local1 * n;
}
return(int(_local1));
}
function UrlAv(n) {
var _local1 = xInt(n);
if ((_local1 > 0) && (_local1 <= 1758)) {
return(("http://www.xatech.com/web_gear/chat/av/" + n) + ".png");
}
return(String(n));
}
function RandAv(n) {
var _local1 = 1 + Math.floor(Math.random() * 1758);
if (n == undefined) {
return(_local1);
}
return(UrlAv(_local1));
}
function ParseAv(arg) {
if (arg.substr(0, 7) == "http://") {
return(arg);
}
var _local1 = xInt(arg);
if ((_local1 > 0) && (_local1 <= 1758)) {
return(UrlAv(_local1));
}
return("_");
}
function CleanAv(arg) {
var _local1 = xInt(arg);
if ((_local1 > 0) && (_local1 <= 1758)) {
return(_local1);
}
if (_local1 < 0) {
return("");
}
var _local2 = arg.toLowerCase();
var _local5 = "/web_gear/chat/av/";
if (_local2.indexOf(".swf") != -1) {
return("");
}
var _local3 = _local2.indexOf(_local5);
if (_local3 >= 0) {
var _local4 = parseInt(_local2.substr(_local3 + _local5.length));
if (_local4 > 0) {
return(_local4);
}
}
return(arg);
}
function IsDefaultAvatar(w_avatar) {
return(CleanAv(w_avatar) > 0);
}
function xInt(arg) {
var _local1 = parseInt(String(arg));
if (isNaN(_local1)) {
return(0);
}
return(_local1);
}
function FindUser(UserNo) {
var _local1 = FastFind1[UserNo];
if (Users[_local1].u == UserNo) {
return(_local1);
}
if (FastFind1 == undefined) {
FastFind1 = new Object();
}
var _local3 = Users.length;
_local1 = 0;
while (_local1 < _local3) {
if (Users[_local1].u == UserNo) {
FastFind1[UserNo] = _local1;
return(_local1);
}
_local1++;
}
return(-1);
}
function GetUserStatus(uid) {
var _local1 = "";
var _local3;
_local3 = Users[uid].online == true;
if ((!_local3) && ((utabs[0].Main != true) || (TabIsPrivate()))) {
_local3 = Users[uid].onsuper == true;
}
if (Users[uid].u == w_userno) {
_local1 = ST(107) + " ";
}
if (_local3) {
if (Users[uid].Location == 128) {
_local1 = _local1 + ST(156);
} else if (Users[uid].Location == 129) {
_local1 = _local1 + ST(157);
} else if (Users[uid].OnXat) {
_local1 = _local1 + ST(108);
} else {
_local1 = _local1 + ST(109);
}
} else {
_local1 = _local1 + ST(110);
}
if (utabs[0].Main == true) {
if (!Users[uid].Stealth) {
if (Users[uid].mainowner == true) {
_local1 = _local1 + " Main Owner";
} else if (Users[uid].owner == true) {
_local1 = _local1 + (" " + ST(24));
} else if (Users[uid].moderator == true) {
_local1 = _local1 + (" " + ST(23));
} else if (Users[uid].member == true) {
_local1 = _local1 + (" " + ST(22));
}
}
}
if (Users[uid].flag0 & 512) {
_local1 = _local1 + (" " + ST(195));
}
if (Users[uid].friend) {
_local1 = _local1 + (" " + ST(111));
}
if ((Users[uid].banned == true) && (utabs[0].Main == true)) {
_local1 = _local1 + (" " + ST(25));
} else if (Users[uid].ignored == true) {
_local1 = _local1 + (" " + ST(112));
} else if (Users[uid].gagged == true) {
_local1 = _local1 + (" " + ST(188));
}
if (Users[uid].VIP && (!(Users[uid].Powers[0] & 4))) {
_local1 = _local1 + (" " + ST(158));
} else if (Users[uid].registered && (!(Users[uid].Powers[0] & 512))) {
_local1 = _local1 + (" " + ST(159));
}
if (Users[uid].Bride) {
if (Users[uid].aFlags & 1) {
_local1 = _local1 + (" " + ST(160));
} else {
_local1 = _local1 + (" " + ST(161));
}
}
return(_local1);
}
function GetUsername(UserNo, Reg, staff, NameHint) {
var _local1 = "";
var _local2 = FindUser(UserNo);
if (_local2 != -1) {
if (Reg) {
if (Users[_local2].registered) {
_local1 = Users[_local2].registered;
}
} else {
_local1 = Users[_local2].n;
}
}
if (staff) {
if (Users[_local2].s != undefined) {
_local1 = _local1 + (newline + Users[_local2].s);
}
if (UserNo > 101) {
_local1 = _local1 + "\n(NOT xat staff!)";
} else {
_local1 = _local1 + "\n(xat staff)";
}
if (NameHint != undefined) {
_local1 = _local1 + " [";
_local2 = FindUser(NameHint);
if (Users[_local2].registered) {
_local1 = _local1 + Users[_local2].registered;
} else {
_local1 = _local1 + NameHint;
}
_local1 = _local1 + "]";
}
}
return(_local1);
}
function StripSmilies(s) {
var _local4 = "";
var _local2;
var _local3 = false;
var _local1;
_local2 = 0;
while (_local2 < s.length) {
_local1 = s.charAt(_local2);
if ((!_local3) && (_local1 != "(")) {
_local4 = _local4 + _local1;
} else if (_local1 == "(") {
_local3 = true;
} else if (_local1 == ")") {
_local3 = false;
}
_local2++;
}
if (_local4.length == 0) {
return(s);
}
return(_local4);
}
function IsDefaultName(NameStr) {
var _local2 = false;
var _local3 = false;
aa = 0;
while (aa < name1.length) {
if (NameStr.indexOf(name1[aa]) != -1) {
_local2 = true;
break;
}
aa++;
}
if (_local2) {
bb = 0;
while (bb < name2.length) {
if (NameStr.indexOf(name2[bb]) != -1) {
_local3 = true;
break;
}
bb++;
}
}
if (_local2 && (_local3)) {
return(true);
}
return(false);
}
function GetDefaultName(userno) {
var _local1 = (userno ^ 21845) % 1008;
var _local2 = _local1 % 42;
_local1 = int(_local1 / 42);
return(name1[_local2] + name2[_local1]);
}
function GetDefaultAvatar(userno) {
return(((userno ^ 21845) % 1758) + 1);
}
function PurgeMessageFromUser(userno) {
var _local2 = Message.length;
var _local1 = 0;
while (_local1 < _local2) {
if (Message[_local1].u == userno) {
removeMovieClip(Message[_local1].mc);
Message[_local1].mc = undefined;
}
_local1++;
}
}
function CountLinks(Line, Mode) {
var _local2 = new Array();
var _local4 = 0;
var _local1;
_local2 = Line.split(" ");
_local1 = 0;
while (_local1 < _local2.length) {
var _local3;
_local3 = WordIsLink(_local2[_local1]);
if (WordIsLink(_local2[_local1])) {
_local4++;
if (Mode) {
return(_local3);
}
}
_local1++;
}
return(_local4);
}
function WordIsLink(Word) {
var _local1 = Word.toLowerCase();
if (_local1.indexOf("http://") >= 0) {
return(Word);
}
var _local4 = false;
var _local3 = 0;
if (_local1.indexOf("www.") >= 0) {
_local4 = true;
}
var _local2 = _local1.indexOf("/");
if (_local2 == -1) {
_local2 = _local1.length;
}
if (_local1.charAt(_local2 - 1) == ".") {
_local3 = 2;
}
if (_local1.charAt(_local2 - 2) == ".") {
_local3 = 2;
}
if (_local1.charAt(_local2 - 3) == ".") {
_local3++;
}
if (_local1.charAt(_local2 - 4) == ".") {
_local3++;
}
if (_local1.charAt(_local2 - 5) == ".") {
_local3++;
}
if (_local3 == 1) {
_local4 = true;
}
if (_local4) {
return("http://" + CleanText(Word));
}
return(undefined);
}
function searchreplace(search, replace, string, Case) {
var _local2 = 0;
while (_local2 < string.length) {
var _local4 = string;
if (Case != 1) {
_local4 = string.toLowerCase();
}
var _local3 = _local4.indexOf(search, _local2);
if (_local3 == -1) {
break;
}
var _loc4 = string.substr(0, _local3);
var _local5 = string.substr(_local3 + search.length, string.length);
string = (_loc4 + replace) + _local5;
_local2 = _loc4.length + replace.length;
}
return(string);
}
function Replace(str, s, r) {
var _local1 = str.split(s);
return(_local1.join(r));
}
function urlencode(s) {
s = searchreplace(" ", "%20", s);
return(searchreplace("?", "%3F", s));
}
function GotoXat(s) {
var _local1 = (((usedomain + "/chat/room/") + w_useroom) + "/?p=0&ss=") + s;
getURL (_local1, "_blank");
UrlPopup(ST(8), _local1);
}
function GotoProfile(Userno) {
ProfileUserNo = Userno;
receiving_profile = new LocalConnection();
sending_profile = new LocalConnection();
receiving_profile.connect("profile");
receiving_profile.onMsg = function () {
trace("RX_profile:");
var _local1 = FindUser(ProfileUserNo);
if (_local1 >= 0) {
sending_profile.send("sprofile", "onMsg", Users[_local1], GetUserStatus(_local1));
}
receiving_profile.close();
sending_profile.close();
};
var _local1 = "http://xatspace.com/";
var _local2 = FindUser(Userno);
if (Users[_local2].registered != undefined) {
_local1 = _local1 + Users[_local2].registered;
} else {
_local1 = _local1 + "unregistered";
}
getURL (_local1, "_blank");
}
function UpdateDJ(u) {
u = xInt(u);
var _local4 = Users.length;
var _local1 = 0;
while (_local1 < _local4) {
var _local2;
if (u == xInt(Users[_local1].u)) {
_local2 = true;
}
if ((_local2 && (!Users[_local1].DJ)) || ((!_local2) && (Users[_local1].DJ))) {
Users[_local1].DJ = _local2;
DeleteOneUserMc(_local1);
}
_local1++;
}
}
function SmilieUrl(t, dir, pb) {
var _local3 = xInt(t);
if (_local3 >= 20000) {
t = _local3 & -2;
} else if (_local3 >= 10000) {
t = _local3;
} else if (dir != "ks") {
t = t.toLowerCase();
}
if ((pb == undefined) || (dir == "ks")) {
return((((("http://xat.com/images/" + dir) + "/") + t) + ".swf?v=") + _global.sv);
}
return((((("http://i79.photobucket.com/albums/j131/chrisrixon/" + dir) + "/") + t) + ".swf?v=") + _global.sv);
}
function IdToRegName(id) {
var _local1 = Users[FindUser(id)].registered;
if (_local1 != undefined) {
return(((_local1 + " (") + id) + ") ");
}
return(id + " ");
}
function Kiss(Info) {
mcBuystuffbackground_close();
GeneralMessage();
CloseKiss();
if ((Info.k == "Snow") && (!(Users[FindUser(Info.u)].Powers[1] & 16777216))) {
return(undefined);
}
if (Info.k == "T") {
var _local6 = Info.b;
if (_local6 && ((w_userno == _local6) || (w_userno == Info.u))) {
GeneralMessage("", ST(162, Info.x, Info.s, IdToRegName(Info.u), IdToRegName(_local6)) + Info.t);
NetworkLogin(w_userno, 0);
WV2 = true;
}
return(undefined);
}
KissMc = this.createEmptyMovieClip("mc_wink", l_Kiss + (_root.depth++));
KissMc._visible = false;
KissMc._lockroot = true;
KissMc.loadMovie(SmilieUrl(Info.k, "ks"));
mc3o = Info;
AddName(Users[FindUser(xInt(mc3o.u))].n);
trace((("XXXXXXXXXXXXX " + mc3o.u) + " ") + Users[FindUser(mc3o.u)].n);
var mc3id = setInterval(function () {
if (KissMc._width > 0) {
if (KissMc.del == undefined) {
KissMc.del = 1;
return(undefined);
}
clearInterval(mc3id);
KissMc.Message = mc3o.t;
KissMc.SmInfo = new Object();
KissMc.SmInfo.SV = _global.sv;
KissMc.SmInfo.SF = 6;
var _local3 = mc3o.t.split("#");
_local3.shift();
PowSm(KissMc.SmInfo, _local3, 0, Array(4294967000, 4294967000));
if (w_sound & 1) {
KissMc.Vol = w_Vol[1];
}
KissMc._visible = true;
var _local2 = KissMc.Go();
trace((((((("VVVVV:" + _local2) + " ") + _local2.yo) + " ") + _local2.fr) + " ") + Users[FindUser(mc3o.u)].n);
if (!_local2.sc) {
KissMc._width = StageWidth;
KissMc._height = StageHeight;
}
if (_local2.yo) {
KissMc._y = NY(_local2.yo);
}
if (_local2.xo) {
KissMc._x = NX(_local2.xo);
}
var _local4 = 11000;
if (_local2.fr > 0) {
_local4 = _local2.fr;
}
mc3done = setInterval(function () {
CloseKiss();
}, _local4);
} else {
KissMc.er = xInt(KissMc.er) + 1;
trace("mc3id not yet.");
if (KissMc.er > 75) {
CloseKiss();
}
}
}, 200);
}
function CloseKiss() {
clearInterval(mc3done);
clearInterval(mc3id);
if (mc3o != undefined) {
var _local2 = mc3o.t.split("#");
Message.push({n:0, t:(((("<inf8> " + mc3o.k) + ": (") + mc3o.k) + ") ") + _local2[0], u:mc3o.u, s:0, d:0});
DoUpdateMessages = true;
ScrollDown = true;
var _local1 = mc3o.f;
if (!_local1) {
_local1 = mc3o.b;
}
if ((w_userno == mc3o.u) || (_local1 && (w_userno == _local1))) {
NetworkLogin(w_userno, 0);
WV2 = true;
}
}
KissMc.removeMovieClip();
mc3o = (KissMc = undefined);
removeMovieClip(Name);
removeMovieClip(Name2);
}
function AddName(UserName) {
if ((UserName == undefined) || (UserName.length == 0)) {
return(undefined);
}
Name = createEmptyMovieClip("mc_name", depth++);
Name2 = createEmptyMovieClip("mc_name2", depth++);
with (Name) {
beginFill(16777215, 50);
lineStyle(0, 0, 0);
Rectangle(Name, 0, StageHeight - 28, StageWidth, 25);
endFill();
}
AddMessageToMc(Name2, 0, UserName, 0, 999, StageHeight - 28, 0);
xPos = xInt((StageWidth - xPos) / 2);
if (xPos < 0) {
xPos = 0;
}
Name2._x = xPos;
var d = Name.createEmptyMovieClip("d", _root.depth++);
d.attachMovie("close", "cl", _root.depth++);
d.cl._x = StageWidth - 20;
d.cl._y = (StageHeight - 28) + 5;
d.cl.onPress = CloseKiss;
}
function HatsOff(mc) {
mc.hat._visible = false;
mc.beer._visible = false;
mc.Married._visible = false;
mc.BFF._visible = false;
mc.Married2._visible = false;
mc.BFF2._visible = false;
mc.Star._visible = false;
mc.Gag._visible = false;
mc.sinbin._visible = false;
if (!mc.IsMob) {
mc.Mob._visible = false;
mc.MBack._visible = false;
}
}
function FixLI(s) {
s = searchreplace("I", "i", s, 1);
s = searchreplace("l", "L", s, 1);
return(s);
}
function GroupUrl() {
var _local2 = usedomain + "/";
if ((w_useroom == w_room) && (_global.gn != undefined)) {
_local2 = _local2 + _global.gn;
} else if ((w_useroom != w_room) && (BackVars[1] != undefined)) {
_local2 = _local2 + BackVars[1];
} else {
_local2 = _local2 + (("chat/room/" + w_useroom) + "/");
}
return(_local2);
}
function PageUrl(Page) {
return((GroupUrl() + "?p=0&ss=") + Page);
}
function McSetRGB(mc, Col) {
var _local1 = new Color(mc);
_local1.setRGB(Col);
}
function MainSolWrite(Var, Val, NoFlush) {
if (Var == "w_friendlist") {
var _local2 = SharedObject.getLocal("chat", "/");
if (_local2 != null) {
delete _local2.data.w_friendlist;
_local2.data.w_friendlist = new Array();
var _local4 = w_friendlist.length;
var _local1 = 0;
while (_local1 < _local4) {
_local2.data.w_friendlist[_local1] = w_friendlist[_local1];
if ((_local1 % 128) == 0) {
var _local3 = _local2.flush();
trace((_local1 + "flush=") + _local3);
}
_local1++;
}
var _local3 = _local2.flush();
trace("finalflush=" + _local3);
_local2.flush();
return(1);
}
return(0);
}
trace((((("MainSolWrite: Var=" + Var) + " Val=") + Val) + " NoFlush=") + NoFlush);
var _local2 = SharedObject.getLocal("chat", "/");
if (_local2 != null) {
_local2.data[Var] = Val;
if (NoFlush == undefined) {
_local2.flush();
}
return(1);
}
return(0);
}
function GotoWeb(Url) {
getURL (Url, "_blank");
UrlPopup(ST(8), Url);
}
function xatlinks(Url) {
var _local3 = new Array(64);
i = 0;
while (i < 26) {
_local3[i] = chr(i + 65);
i++;
}
i = 26;
while (i < 52) {
_local3[i] = chr(i + 71);
i++;
}
i = 52;
while (i < 62) {
_local3[i] = chr(i - 4);
i++;
}
_local3[62] = "+";
_local3[63] = "/";
var _local1 = new Array();
var _local2 = new Array();
i = 0;
while (i < Url.length) {
_local1[i] = Url.charCodeAt(i);
i++;
}
i = 0;
while (i < _local1.length) {
switch (i % 3) {
case 0 :
_local2.push(_local3[(_local1[i] & 252) >> 2]);
break;
case 1 :
_local2.push(_local3[((_local1[i - 1] & 3) << 4) | ((_local1[i] & 240) >> 4)]);
break;
case 2 :
_local2.push(_local3[((_local1[i - 1] & 15) << 2) | ((_local1[i] & 192) >> 6)]);
_local2.push(_local3[_local1[i] & 63]);
}
i++;
}
if ((i % 3) == 1) {
_local2.push(_local3[(_local1[i - 1] & 3) << 4]);
} else if ((i % 3) == 2) {
_local2.push(_local3[(_local1[i - 1] & 15) << 2]);
}
i = _local2.length;
while ((i % 4) != 0) {
_local2.push("=");
i++;
}
var _local4 = new String("http://linkvalidator.net/warn.php?p=");
i = 0;
while (i < _local2.length) {
_local4 = _local4 + _local2[i];
i++;
}
return(_local4);
}
function AttachBut(But, mc) {
But.But.attachMovie(mc, "c", _root.depth++);
But.But.c._xscale = SX(0.8);
But.But.c._yscale = SY(0.8);
But.But.c._x = NX(10);
But.But.c._y = NY(5);
}
function SmOk(Smilie, Powers) {
Smilie = Smilie.toLowerCase();
if (!smih[Smilie]) {
return(false);
}
var _local1 = topsh[Smilie];
if ((((_local1 != 48) && (_local1 != 49)) && (_local1 != 53)) && (_local1 != 55)) {
_local1 = pssh[Smilie];
}
if (!_local1) {
return(true);
}
if ((_local1 == -2) && (Powers[0])) {
return(true);
}
if ((_local1 == -1) && (Powers[0] & 1)) {
return(true);
}
if (Powers[int(_local1 / 32)] & (1 << (_local1 % 32))) {
return(true);
}
return(false);
}
function PreProcSmilie(str, ChkSwear, Options) {
var _local1 = "";
var _local12 = str.toLowerCase();
var _local3;
var _local4;
var _local8;
_local3 = 0;
for ( ; _local3 < str.length ; _local3++) {
var _local13 = str.charCodeAt(_local3);
var _local2 = str.charAt(_local3);
if (_local2 == "(") {
_local1 = _local1 + " (";
_local8 = _local3;
} else if (_local2 == ")") {
if (Options != undefined) {
if (smih[str.substr(_local8 + 1, (_local3 - _local8) - 1).toLowerCase()]) {
_local1 = _local1 + ("#" + Options);
}
}
_local1 = _local1 + ") ";
} else if (((((_local2 == "|") || (_local2 == ":")) || (_local2 == ";")) || (_local2 == "8")) || (_local2.toLowerCase() == "p")) {
var _local5 = 0;
_local4 = 0;
while (_local4 < smArray.length) {
if (smArray[_local4] < 0) {
_local5 = _local4 + 1;
} else if (smArray[_local4 + 1] < 0) {
} else if (_local2 != smArray[_local4].charAt(0)) {
} else if (smArray[_local4] == _local12.substr(_local3, smArray[_local4].length)) {
_local1 = _local1 + ((" " + smArray[_local5]) + " ");
_local3 = _local3 + (smArray[_local4].length - 1);
_local5 = -1;
break;
}
_local4++;
}
if (_local5 < 0) {
continue;
}
} else {
_local1 = _local1 + _local2;
}
}
if (ChkSwear && (autologin & 2)) {
var _local6 = _local1.split(" ");
var _local10;
var _local9;
var _local16 = "";
var _local11 = badwords.length;
var _local15 = _local6.length;
_local4 = 0;
while (_local4 < _local15) {
if (_local6[_local4].length < 4) {
} else {
_local9 = _local6[_local4].toLowerCase();
_local3 = 0;
while (_local3 < _local11) {
if (_local9.indexOf(badwords[_local3]) != -1) {
_local6[_local4] = "<s>" + _local6[_local4];
_local10 = 1;
break;
}
_local3++;
}
}
_local4++;
}
if (_local10) {
return(_local6.join(" "));
}
}
return(_local1);
}
function DecodeColor(str, rp, gp, bp, lp) {
function Hue(v1, v2, vH) {
if (vH < 0) {
vH = vH + 1;
}
if (vH > 1) {
vH = vH - 1;
}
if ((6 * vH) < 1) {
return(v1 + (((v2 - v1) * 6) * vH));
}
if ((2 * vH) < 1) {
return(v2);
}
if ((3 * vH) < 2) {
return(v1 + (((v2 - v1) * (0.6666667 - vH)) * 6));
}
return(v1);
}
if (str == undefined) {
return(undefined);
}
if ((((rp == false) && (gp == false)) && (bp == false)) && (lp == false)) {
return(undefined);
}
str = str.toLowerCase(str);
var _local4 = str.split("r").length - 1;
var _local5 = str.split("g").length - 1;
var _local6 = str.split("b").length - 1;
var _local14 = str.split("+").length - 1;
var _local13 = str.split("-").length - 1;
var _local16 = 0.5;
if ((((_local4 == 0) && (_local5 == 0)) && (_local14 == 0)) && (_local13 == 0)) {
var _local8 = 0;
var _local1 = 0;
while (_local1 < str.length) {
var _local3 = str.charAt(_local1);
_local8 = ((((_local3 >= "0") && (_local3 <= "9")) || ((_local3 >= "a") && (_local3 <= "f"))) ? (_local8 + 1) : 0);
if (_local8 == 6) {
var _local2 = parseInt(str.substr((_local1 - _local8) + 1, 6), 16);
if ((((rp != false) && (gp != false)) && (bp != false)) && (lp != false)) {
return(_local2);
}
_local6 = _local2 & 255;
_local5 = (_local2 >> 8) & 255;
_local4 = (_local2 >> 16) & 255;
_local13 = 0;
_local14 = 0;
if (lp != false) {
_local16 = (Math.min(_local4, Math.min(_local5, _local6)) + Math.max(_local4, Math.max(_local5, _local6))) / 512;
}
break;
}
_local1++;
}
}
if (((((_local4 == 0) && (_local5 == 0)) && (_local6 == 0)) && (_local14 == 0)) && (_local13 == 0)) {
return(undefined);
}
if (rp == false) {
_local4 = 0;
}
if (gp == false) {
_local5 = 0;
}
if (bp == false) {
_local6 = 0;
}
if (lp == false) {
_local13 = 0;
_local14 = 0;
}
if (((_local4 == 0) && (_local5 == 0)) && (_local6 == 0)) {
_local6 = 1;
_local5 = 1;
_local4 = 1;
}
var _local24 = _local4 / ((_local4 + _local5) + _local6);
var _local25 = _local5 / ((_local4 + _local5) + _local6);
var _local22 = _local6 / ((_local4 + _local5) + _local6);
var _local27 = Math.min(_local24, Math.min(_local25, _local22));
var _local12 = Math.max(_local24, Math.max(_local25, _local22));
var _local15 = _local12 - _local27;
var _local21;
var _local26;
var _local23;
var _local10;
var _local20;
var _local9;
_local9 = (_local12 + _local27) / 2;
if (_local15 == 0) {
_local20 = 0;
_local10 = 0;
} else {
_local20 = ((_local9 < 0.5) ? (_local15 / (_local12 + _local27)) : (_local15 / ((2 - _local12) - _local27)));
dR = (((_local12 - _local24) / 6) + (_local15 / 2)) / _local15;
dG = (((_local12 - _local25) / 6) + (_local15 / 2)) / _local15;
dB = (((_local12 - _local22) / 6) + (_local15 / 2)) / _local15;
if (_local24 == _local12) {
_local10 = dB - dG;
} else if (_local25 == _local12) {
_local10 = (0.3333333 + dR) - dB;
} else if (_local22 == _local12) {
_local10 = (0.6666667 + dG) - dR;
}
if (_local10 < 0) {
_local10 = _local10 + 1;
}
if (_local10 > 1) {
_local10 = _local10 - 1;
}
}
_local9 = (_local16 + (0.0625 * _local14)) - (0.0625 * _local13);
if (_local9 < 0) {
_local9 = 0;
}
if (_local9 > 1) {
_local9 = 1;
}
if (_local20 == 0) {
_local23 = _local9;
_local26 = _local9;
_local21 = _local9;
} else {
var _local1 = ((_local9 < 0.5) ? (_local9 * (1 + _local20)) : ((_local9 + _local20) - (_local20 * _local9)));
var _local28 = (2 * _local9) - _local1;
_local21 = Hue(_local28, _local1, _local10 + 0.3333333);
_local26 = Hue(_local28, _local1, _local10);
_local23 = Hue(_local28, _local1, _local10 - 0.3333333);
}
_local21 = Math.round(255 * _local21);
_local26 = Math.round(255 * _local26);
_local23 = Math.round(255 * _local23);
return(((_local21 << 16) + (_local26 << 8)) + _local23);
}
function CreateReasonDialog(UserNo, bBan) {
function ReasonOK() {
if (bBan) {
DoBan("g");
} else if (tf.text.length > 0) {
trace("reason:" + tf.text);
NetworkKickUser(UserNo, tf.text + ((tf2.text.length > 0) ? ("#" + tf2.text) : ""));
} else {
helpstr = ST(124);
HelpUpdate = 0;
}
CloseReason();
}
function ReasonGag() {
DoBan("gg");
CloseReason();
}
function ReasonMute() {
DoBan("gm");
CloseReason();
}
function DoBan(Type) {
var _local1 = 1;
if (!isNaN(tf2.text)) {
_local1 = Math.abs(Number(tf2.text));
}
if (_local1 > 8760) {
_local1 = 0;
}
NetworkGagUser(Type, UserNo, true, xInt(_local1 * 3600), tf.text);
}
function CloseReason() {
HintOff();
var _local1 = mcreasonbackground.Dia;
removeMovieClip(tf);
removeMovieClip(tfb);
removeMovieClip(tf2);
removeMovieClip(tfb2);
removeMovieClip(_local1.txt1);
removeMovieClip(_local1.txt2);
removeMovieClip(_local1.txt3);
_local1.ok.But.Delete();
_local1.can.But.Delete();
_local1.gag.But.Delete();
_local1.mute.But.Delete();
_local1.Delete();
}
trace("CR" + UserNo);
var _local3 = ((mcuserbackground._x - 270) - 15) - 50;
if (_local3 < 5) {
_local3 = 5;
}
var _local2 = NY(30);
var _local6 = false;
if (bBan && (((w_Powers[1] & 512) & (w_Mask[1] ^ 4294967000)) || (((w_Powers[1] & 16384) & (w_Mask[1] ^ 4294967000)) && (w_owner)))) {
_local6 = true;
}
mcreasonbackground = new xDialog(_local3, _local2, 330, (_local6 ? 240 : 200), " " + (bBan ? (ST(81)) : (ST(79))), nd, 0, CloseReason);
var _local4 = mcreasonbackground.Dia;
_root.depth = _root.depth + l_Box;
_local4.txt1 = createEmptyMovieClip("txt1", _root.depth++);
createTextNoWrap(_local4.txt1, _local3 + 10, _local2 + 30, 310, 22, (bBan ? (ST(113)) : (ST(114))), 0, 0, 100, 0, 14, "left", 1);
tfb = AddBackground(_local3 + 10, _local2 + 55, 310, 32);
tf = createTextField("_tf", _root.depth++, _local3 + 10, _local2 + 55, 310, 32);
tf.type = "input";
tf.setNewTextFormat(fmt);
tf.onChanged = RemoveCR;
if (bBan) {
_local4.txt2 = createEmptyMovieClip("txt2", _root.depth++);
createTextNoWrap(_local4.txt2, _local3 + 10, _local2 + 95, 310, 22, ST(115), 0, 0, 100, 0, 14, "left", 1);
tfb2 = AddBackground(_local3 + 10, _local2 + 120, 155, 32);
tf2 = createTextField("_tf2", _root.depth++, _local3 + 10, _local2 + 120, 310, 32);
tf2.type = "input";
tf2.setNewTextFormat(fmt);
tf2.text = 1;
_local4.txt3 = createEmptyMovieClip("txt2", _root.depth++);
createTextNoWrap(_local4.txt3, _local3 + 165, _local2 + 120, 155, 32, (ST(116) + " ") + (w_owner ? (ST(117)) : (ST(118))), 0, 0, 100, 0, 14, "left", 1);
} else {
var _local7 = FindUser(w_userno);
trace((_local7 + ";") + Users[_local7].Powers[0]);
if (Users[_local7].Powers[0] & 33554432) {
_local4.txt2 = createEmptyMovieClip("txt2", _root.depth++);
createTextNoWrap(_local4.txt2, _local3 + 10, _local2 + 95, 310, 22, "Group To Boot to:", 0, 0, 100, 0, 14, "left", 1);
tfb2 = AddBackground(_local3 + 10, _local2 + 120, 310, 32);
tf2 = createTextField("_tf2", _root.depth++, _local3 + 10, _local2 + 120, 310, 32);
tf2.type = "input";
tf2.setNewTextFormat(fmt);
tf2.text = "";
}
}
if (_local6) {
if ((w_Powers[1] & 512) & (w_Mask[1] ^ 4294967000)) {
_local4.gag = new xBut(_local3 + 10, _local2 + 160, 150, 30, ST(197), ReasonGag);
_local4.gag.But.UserNo = UserNo;
}
if (((w_Powers[1] & 16384) & (w_Mask[1] ^ 4294967000)) && (w_owner)) {
_local4.mute = new xBut(_local3 + 170, _local2 + 160, 150, 30, ST(198), ReasonMute);
_local4.mute.But.UserNo = UserNo;
}
_local2 = _local2 + 40;
}
_local4.ok = new xBut(_local3 + 10, _local2 + 160, 150, 30, (bBan ? (ST(81)) : (ST(79))), ReasonOK);
_local4.ok.But.UserNo = UserNo;
_local4.can = new xBut(_local3 + 170, _local2 + 160, 150, 30, ST(66), CloseReason);
_local4.can.But.UserNo = UserNo;
_root.depth = _root.depth - l_Box;
}
function CreateViewProfileDialog(UserNo) {
DialogClose();
DialogOpen = 2;
var _local3 = FindUser(UserNo);
var _local19 = xInt(Users[_local3].Location) >= 128;
var _local17 = (Users[_local3].banned && (!Users[_local3].friend)) || (Users[_local3].forever);
var _local20 = FindUser(w_userno);
var _local7 = 0;
var _local5 = 0;
var _local18 = "";
var _local10;
var _local12;
var _local21;
var _local23;
var _local22;
var _local13 = FindUser(w_userno);
if (((w_owner || (w_moderator)) || (w_member)) && (!((utabs[0].Main == false) && (!OnFriendList(Users[w].u))))) {
if (Users[_local13].flag0 & 512) {
_local10 = false;
} else if (Users[_local13].Powers[0] & 268435456) {
if (w_mainowner) {
_local10 = false;
if (Users[_local3].online && (!Users[_local3].mainowner)) {
_local10 = true;
}
} else if (w_owner) {
_local10 = false;
if ((Users[_local3].online && (!Users[_local3].mainowner)) && (!Users[_local3].owner)) {
_local10 = true;
}
} else if (w_moderator) {
_local10 = false;
if (((Users[_local3].online && (!Users[_local3].mainowner)) && (!Users[_local3].owner)) && (!Users[_local3].moderator)) {
_local10 = true;
}
} else if (w_member) {
if ((((Users[_local3].online && (!Users[_local3].mainowner)) && (!Users[_local3].owner)) && (!Users[_local3].moderator)) && (Users[_local3].banned)) {
_local10 = true;
}
}
} else if (w_owner || (w_moderator)) {
_local10 = ((((Users[_local3].online && (!Users[_local3].mainowner)) && (!Users[_local3].owner)) && (!Users[_local3].moderator)) ? true : false);
}
}
if ((w_owner || (w_moderator)) && (!((utabs[0].Main == false) && (!OnFriendList(Users[w].u))))) {
_local12 = false;
if (Users[_local13].flag0 & 512) {
_local12 = false;
} else if (w_mainowner) {
if (!Users[_local3].mainowner) {
_local12 = true;
}
} else if (w_owner) {
if ((!Users[_local3].mainowner) && (!Users[_local3].owner)) {
_local12 = true;
}
} else if (w_moderator) {
if (((!Users[_local3].mainowner) && (!Users[_local3].owner)) && (!Users[_local3].moderator)) {
_local12 = true;
}
}
}
if (((w_mainowner || (w_owner)) || (w_moderator)) && (!((utabs[0].Main == false) && (!OnFriendList(Users[w].u))))) {
_local21 = true;
}
if ((w_mainowner || (w_owner)) && (!((utabs[0].Main == false) && (!OnFriendList(Users[w].u))))) {
_local23 = true;
}
if (Users[_local3].online) {
_local22 = true;
}
UserIsAt = "";
NetworkLocateUser(UserNo);
_local7 = ((mcuserbackground._x - 270) - 15) - 50;
if (_local7 < 5) {
_local7 = 5;
}
_local5 = NY(30);
_local18 = _local18 + GetUserStatus(_local3);
var _local9 = 100;
if (_local19) {
_local9 = _local9 + NY(40);
} else {
_local9 = _local9 + NY(40);
_local9 = _local9 + NY(40);
if ((_local12 != undefined) || (_local10 != undefined)) {
_local9 = _local9 + NY(40);
}
if (_local21 != undefined) {
_local9 = _local9 + NY(40);
}
if (_local23 != undefined) {
_local9 = _local9 + NY(40);
}
if (_local22 != undefined) {
_local9 = _local9 + NY(80);
}
}
trace((_local3 + " ") + Users[_local3].registered);
var _local16 = UserNo.toString();
if (_local16.substr(-6, 6) == "000000") {
_local16 = _local16.substr(0, _local16.length - 6) + "M";
}
un = ((Users[_local3].registered != undefined) ? (((Users[_local3].registered + " (") + _local16) + ")") : (UserNo.toString()));
if (UserNo >= 1999800000) {
un = Users[_local3].registered;
}
if (UserNo >= 1999900000) {
un = " ";
}
mcviewprofilebackground = new xDialog(_local7, _local5, 330, _local9, FixLI(un), nd, 0, CloseViewprofile);
var _local4 = mcviewprofilebackground.Dia;
_local4.UserNo = UserNo;
_root.depth = _root.depth + l_Box;
var _local24 = function () {
GotoProfile(this.UserNo);
};
if (!_local17) {
_local4.avc = new xAvatar(this, Users[_local3].a, ST(140), _local24, Users[_local3].VIP != false, Users[_local3].aFlags, Users[_local3].Powers);
}
var _local14 = _local4.avc.Av;
_local14.UserNo = UserNo;
_local14._x = _local7 + 5;
_local5 = _local5 + 35;
_local14._y = _local5;
_local4.txt1 = createEmptyMovieClip("txt1", _root.depth++);
createTextNoWrap(_local4.txt1, (_local7 + 5) + 35, _local5, 280, 15, (_local17 ? (ST(25)) : (StripSmilies(GetUsername(UserNo)))), 0, 0, 100, 0, 14, "left", 1);
_local4.txt2 = createEmptyMovieClip("txt2", _root.depth++);
createTextNoWrap(_local4.txt2, (_local7 + 5) + 35, _local5 + 15, 280, 15, _local18, 0, 0, 100, 0, 14, "left", 1);
if (!_local17) {
_local4.Home1 = createEmptyMovieClip("home1", _root.depth++);
_local4.Home = _local4.Home1.attachMovie("Home", "home", _root.depth++);
_local4.Home1._x = _local14._x + 5;
_local4.Home1._y = (_local14._y + 15) + 34;
var url = Users[_local3].h;
if (_local17) {
url = "";
}
if (url.length > 5) {
_local4.Home1.onPress = function () {
var _local1 = url;
if (_local1.substr(0, 7).toLowerCase() != "http://") {
_local1 = "http://" + _local1;
}
_local1 = xatlinks(_local1);
if (Key.isDown(16)) {
_local1 = _local1 + "&f=1";
}
UrlPopup(ST(21), _local1);
getURL (_local1, "_blank");
};
} else {
url = ST(68);
}
_local4.txt3 = createEmptyMovieClip("txt3", _root.depth++);
createTextNoWrap(_local4.txt3, _local14._x + 17, (_local5 + 37) + 10, 280, 15, url, 0, 0, 100, 0, 14, "left", 1);
_local4.txt3.onPress = _local4.Home1.onPress;
_local4.Home1.onRollOver = function () {
Hint(0, 0, url, true, 0, nd, 0, this._parent.home1);
};
_local4.Home1.onRollOut = function () {
HintOff();
};
_local4.txt3.onRollOver = _local4.Home1.onRollOver;
_local4.txt3.onRollOut = _local4.Home1.onRollOut;
}
_local5 = _local5 + 65;
var _local15;
if ((!Users[_local3].online) && (!Users[_local3].onsuper)) {
_local15 = b_Grayed + b_NoPress;
} else if ((Users[_local3].Powers[0] & 1024) && (!((w_mainowner || (w_owner)) || (w_moderator)))) {
_local15 = b_Grayed + b_NoPress;
}
_local4.pm = new xBut(_local7 + 10, _local5, 150, NY(30), ST(69), ViewprofileonPrivChat, _local15);
_local4.pm.SetRoll(ST(70));
_local4.pm.But.UserNo = UserNo;
_local15 = undefined;
if ((!Users[_local3].online) && (!Users[_local3].onsuper)) {
_local15 = b_Grayed + b_NoPress;
}
if (_local19) {
_local4.im = new xBut(_local7 + 170, _local5, 150, NY(30), "Invite to chat", ViewprofileImInv, _local15);
_local4.im.But.UserNo = UserNo;
_root.depth = _root.depth - l_Box;
return(undefined);
}
_local4.im = new xBut(_local7 + 170, _local5, 150, NY(30), ST(71), ViewprofileonPriv, _local15);
_local4.im.SetRoll(ST(72));
_local4.im.But.UserNo = UserNo;
var _local6 = "";
if (OnFriendList(UserNo)) {
_local6 = ST(73);
} else {
_local6 = ST(74);
}
_local5 = _local5 + NY(40);
_local4.af = new xBut(_local7 + 10, _local5, 150, NY(30), _local6, ViewprofileonFriend, (Users[_local3].banned ? (b_Grayed + b_NoPress) : 0));
_local4.af.SetRoll(ST(75));
_local4.af.But.UserNo = UserNo;
_local6 = ST(76);
if (OnIgnoreList(UserNo)) {
_local6 = ST(77);
}
_local4.ig = new xBut(_local7 + 170, _local5, 150, NY(30), _local6, ViewprofileonIgnore);
_local4.ig.SetRoll(ST(78));
_local4.ig.But.UserNo = UserNo;
if ((_local10 != undefined) || (_local12 != undefined)) {
_local5 = _local5 + NY(40);
}
if (_local10 != undefined) {
_local6 = ST(79);
_local4.kick = new xBut(_local7 + 10, _local5, 150, NY(30), _local6, ViewprofileonKick, (_local10 ? 0 : (b_Grayed + b_NoPress)));
_local4.kick.SetRoll(ST(80));
_local4.kick.But.UserNo = UserNo;
}
if (_local12 != undefined) {
_local6 = ST(81);
if ((_local3 > -1) && (Users[_local3].banned)) {
_local6 = ST(82);
}
_local4.ban = new xBut(_local7 + 170, _local5, 150, NY(30), _local6, ViewprofileonGag, (_local12 ? 0 : (b_Grayed + b_NoPress)));
_local4.ban.SetRoll(ST(83));
_local4.ban.But.UserNo = UserNo;
}
if (_local21 != undefined) {
_local5 = _local5 + NY(40);
_local6 = ST(135);
var _local8 = b_Grayed + b_NoPress;
if (((Users[_local3].online && (!Users[_local3].banned)) && (((Users[_local3].member || (Users[_local3].moderator)) || (Users[_local3].owner)) || (Users[_local3].gagged))) || (!Users[_local3].online)) {
if (Users[_local13].flag0 & 512) {
} else if (w_mainowner) {
if (!Users[_local3].mainowner) {
_local8 = 0;
}
} else if (w_owner) {
if ((!Users[_local3].mainowner) && (!Users[_local3].owner)) {
_local8 = 0;
}
} else if (w_moderator) {
if (((!Users[_local3].mainowner) && (!Users[_local3].owner)) && (!Users[_local3].moderator)) {
_local8 = 0;
}
}
}
_local4.mv = new xBut(_local7 + 10, _local5, 150, NY(30), _local6, ViewprofileonUnMake, _local8);
_local4.mv.But.UserNo = UserNo;
_local6 = ST(84);
_local8 = b_Grayed + b_NoPress;
if ((Users[_local3].online && (!Users[_local3].banned)) && (!Users[_local3].member)) {
trace("w_moderator=" + w_moderator);
if (Users[_local13].flag0 & 512) {
} else if (w_mainowner) {
if (!Users[_local3].mainowner) {
_local8 = 0;
}
} else if (w_owner) {
if ((!Users[_local3].mainowner) && (!Users[_local3].owner)) {
_local8 = 0;
}
} else if (w_moderator) {
if (((!Users[_local3].mainowner) && (!Users[_local3].owner)) && (!Users[_local3].moderator)) {
_local8 = 0;
}
}
}
_local4.me = new xBut(_local7 + 170, _local5, 150, NY(30), _local6, ViewprofileonMember, _local8);
_local4.me.But.UserNo = UserNo;
}
if (_local23 != undefined) {
_local5 = _local5 + NY(40);
_local6 = ST(88);
var _local8 = b_Grayed + b_NoPress;
if (((Users[_local3].online && (!Users[_local3].banned)) && (!Users[_local3].moderator)) || (Users[_local3].moderator && (Users[_local3].flag0 & 512))) {
if (Users[_local13].flag0 & 512) {
} else if (w_mainowner) {
if (!Users[_local3].mainowner) {
_local8 = 0;
}
} else if (w_owner) {
if ((!Users[_local3].mainowner) && (!Users[_local3].owner)) {
_local8 = 0;
}
}
}
_local4.mm = new xBut(_local7 + 10, _local5, 150, NY(30), _local6, ViewprofileonModerate, _local8);
_local4.mm.But.UserNo = UserNo;
_local6 = ST(136);
_local8 = b_Grayed + b_NoPress;
if (((Users[_local3].online && (!Users[_local3].banned)) && (!Users[_local3].owner)) || (Users[_local3].owner && (Users[_local3].flag0 & 512))) {
if (Users[_local13].flag0 & 512) {
} else if (w_mainowner) {
if (!Users[_local3].mainowner) {
_local8 = 0;
}
}
}
_local4.mo = new xBut(_local7 + 170, _local5, 150, NY(30), _local6, ViewprofileonOwner, _local8);
_local4.mo.But.UserNo = UserNo;
}
if (_local22) {
_local5 = _local5 + NY(40);
_local6 = ST(148);
if (Users[_local20].Bride) {
_local6 = ST(150);
}
_local4.ma = new xBut(_local7 + 10, _local5, 150, NY(30), _local6, ViewprofileonMarry, 0);
_local4.ma.But.UserNo = UserNo;
_local4.ma.But.Mode = 1;
if (Users[_local20].Bride) {
_local4.ma.But.Mode = 2;
}
_local4.dv = new xBut(_local7 + 170, _local5, 150, NY(30), ST(149), ViewprofileonMarry, 0);
_local4.dv.But.UserNo = UserNo;
_local4.dv.But.Mode = 3;
_local4.dv.SetRoll(ST(151));
_local5 = _local5 + NY(40);
_local4.po = new xBut(_local7 + 10, _local5, 150, NY(30), "Powers", ViewprofileonPowers, b_Grayed + b_NoPress);
AttachBut(_local4.po, "pwr");
_local4.po.But.UserNo = UserNo;
}
_root.depth = _root.depth - l_Box;
}
function ViewprofileonPriv() {
lockmc._visible = true;
PrivateMessage = this.UserNo;
CloseViewprofile();
}
function ViewprofileonPrivChat() {
var _local5 = FindUser(this.UserNo);
var _local4 = Users[_local5].Location;
SetVisitorsTab();
var _local2 = 1;
if (_local4) {
_local2 = _local2 | 8;
}
_local2 = _local2 | 16;
var _local3 = TabAdd(this.UserNo, 16777215, _local2, IM_onRelease, IM_onDelete);
tabs[_local3].IMtype = _local4;
UpdateTabs(_local3);
DoBuildUserListScrollUp = true;
DoUpdateMessages = true;
ScrollDown = true;
CloseViewprofile();
}
function ViewprofileonIgnore() {
NetworkIgnore(this.UserNo, (Key.isDown(16) ? true : undefined));
CloseViewprofile();
}
function ViewprofileonGag() {
var _local2 = this.UserNo;
trace("kkk" + this.UserNo);
var _local3 = FindUser(_local2);
if (Users[_local3].banned) {
NetworkGagUser("u", _local2, false, 0);
CloseViewprofile();
} else {
CloseViewprofile();
CreateReasonDialog(_local2, true);
}
}
function ViewprofileonKick() {
var _local2 = this.UserNo;
CloseViewprofile();
CreateReasonDialog(_local2, false);
}
function ViewprofileonFriend() {
var _local2 = this.UserNo;
NetworkFriendUser(_local2, (OnFriendList(_local2) ? false : true));
CloseViewprofile();
DoBuildUserListScrollUp = true;
}
function ViewprofileonUnMake() {
var _local2 = this.UserNo;
NetworkMakeUser(_local2, "r");
CloseViewprofile();
}
function ViewprofileonMember() {
var _local2 = this.UserNo;
NetworkMakeUser(_local2, "e");
CloseViewprofile();
}
function ViewprofileonModerate() {
var _local2 = this.UserNo;
NetworkMakeUser(_local2, "m");
CloseViewprofile();
}
function ViewprofileonOwner() {
var _local2 = this.UserNo;
NetworkMakeUser(_local2, "M");
CloseViewprofile();
}
function CloseViewprofile() {
HintOff();
var _local1 = mcviewprofilebackground.Dia;
removeMovieClip(_local1.Home1);
removeMovieClip(_local1.txt1);
removeMovieClip(_local1.txt2);
removeMovieClip(_local1.txt3);
removeMovieClip(_local1.txt4);
_local1.im.But.Delete();
_local1.pm.But.Delete();
_local1.ig.But.Delete();
_local1.mv.But.Delete();
_local1.mm.But.Delete();
_local1.me.But.Delete();
_local1.mo.But.Delete();
_local1.ma.But.Delete();
_local1.dv.But.Delete();
_local1.po.But.Delete();
_local1.af.But.Delete();
_local1.ban.But.Delete();
_local1.kick.But.Delete();
_local1.avc.Delete();
_local1.Delete();
DialogOpen = 0;
}
function ViewprofileonPowers() {
PowersDialog(this.UserNo, un);
mcprofilebackground_close();
CloseViewprofile();
}
function ViewprofileonMarry() {
CreateBuystuff(this.UserNo, this.Mode);
mcprofilebackground_close();
CloseViewprofile();
}
function ViewprofileImInv(UserNo) {
ImPostMessage(("Join me on " + GroupUrl()) + " chat group :)", undefined, this.UserNo);
CloseViewprofile();
}
function WriteLocation(str, u, N) {
var _local3 = mcviewprofilebackground.Dia;
if (_local3.UserNo != xInt(u)) {
return(undefined);
}
var _local4 = xInt(u).toString();
if (_local4.substr(-6, 6) == "000000") {
_local4 = _local4.substr(0, _local4.length - 6) + "M";
}
var _local9 = " " + ((N != undefined) ? (((N + " (") + _local4) + ")") : (xInt(u)));
_local3.Bar.SetText(FixLI(_local9));
if (_local3.txt1 != undefined) {
_root.depth = _root.depth + l_Box;
removeMovieClip(_local3.txt4);
_local3.txt4 = createEmptyMovieClip("txt3", _root.depth++);
_local3.txt4._x = (_local3.x + 5) + 17;
_local3.txt4._y = ((_local3.y + 37) + 15) + 15;
createTextNoWrap(_local3.txt4, 0, 0, 280, 15, str, 0, 0, 100, 0, 14, "left", 1);
if (CountLinks(str) != 0) {
if (!((w_mainowner || (w_owner)) || (w_moderator))) {
var _local5 = FindUser(_local3.UserNo);
if (Users[_local5].Powers[0] & 1024) {
var _local10 = _local3.pm.But._y;
var _local11 = _local3.pm.But._x;
_local3.pm.But.Delete();
var _local13;
if ((!Users[_local5].online) && (!Users[_local5].onsuper)) {
_local13 = b_Grayed + b_NoPress;
}
_local3.pm = new xBut(_local11, _local10, 150, NY(30), ST(69), ViewprofileonPrivChat, _local13);
_local3.pm.SetRoll(ST(70));
_local3.pm.But.UserNo = _local3.UserNo;
}
}
_local3.txt4.onPress = function () {
var _local1 = CountLinks(str, 1);
UrlPopup(ST(91), _local1);
getURL (_local1, "_blank");
};
_local3.txt4.onRollOver = function () {
Hint(0, 0, ST(91), true, 0, nd, 0, this);
};
_local3.txt4.onRollOut = HintOff;
}
if (_local3.po != undefined) {
var _local5 = FindUser(_local3.UserNo);
var _local8 = _local3.po.But._y;
var _local12 = _local3.po.But._x;
_local3.po.But.Delete();
_local3.po = new xBut(_local12, _local8, 150, NY(30), ST(189), ViewprofileonPowers, 0);
AttachBut(_local3.po, "pwr");
_local3.po.But.UserNo = _local3.UserNo;
}
_root.depth = _root.depth - l_Box;
}
}
function CreateChangeBackground() {
_root.depth = _root.depth + l_Diag;
var Dia = mceditbackground.Dia;
mcget_onRollOver = function () {
Hint(Dia.mcget.But._x, Dia.mcget.But._y, ST(38), true, 1, un, 200);
};
Dia.mcget = new xBut(NX(486), NY(110), NX(120), NY(30), ST(39), mclget_onRelease);
Dia.mcget.SetRoll(mcget_onRollOver);
Dia.mcget.But._alpha = 90;
Dia.bkgtext = createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
createTextNoWrap(Dia.bkgtext, NX(24), NY(110), NX(120), NY(30), ST(40), 2105376, 0, 100, 0, 24, "left", 1);
xurltextboxbackground = AddBackground(NX(140), NY(110), NX(338), NY(30));
xurltextbox = createTextField("_xurltextbox", _root.depth++, NX(140), NY(110), NX(338), NY(30));
xurltextbox.type = "input";
xurltextbox.setNewTextFormat(fmt);
xurltextbox.multiline = true;
xurltextbox.onSetFocus = function (oldFocus) {
if (xurltextbox.text == ((" <" + ST(38)) + ">")) {
xurltextbox.text = "";
}
};
xurltextbox.onChanged = function (_xurltextbox) {
var _local1;
_local1 = 0;
while (_local1 < xurltextbox.text.length) {
if (xurltextbox.text.charAt(_local1) == "\r") {
xurltextbox.text = xurltextbox.text.substr(0, _local1);
if (_local1 != 0) {
mclget_onRelease();
}
break;
}
_local1++;
}
};
_root.depth = _root.depth - l_Diag;
CreateBackPane();
}
function CreateChangeGroup() {
function onBackScrollChange() {
var _local1 = ImagePaneVars.Height - bph;
if (_local1 < 0) {
_local1 = 0;
}
bscrollmc.Scr_size = _local1;
var _local2 = bscrollmc.Scr_position;
backgroup._y = -_local2;
}
function CreateGrpRel() {
var _local1 = chatdomain + "creategroup.php";
getURL (_local1, "_blank");
UrlPopup(ST(43), _local1);
}
_root.depth = _root.depth + l_Diag;
var _local2 = mceditbackground.Dia;
_local2.bkgtext = createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
createTextNoWrap(_local2.bkgtext, NX(28), NY(110), NX(215), NY(30), ST(41), 0, 0, 100, 0, 18, "left", 1);
createTextNoWrap(_local2.bkgtext, NX(28), NY(360), NX(315), NY(60), ST(42), 0, 0, 100, 0, NY(12), "left", 2);
xurltextboxbackground = AddBackground(NX(250), NY(110), NX(270), NY(30));
xurltextbox = createTextField("_xurltextbox", _root.depth++, NX(250), NY(115), NX(270), NY(30));
xurltextbox.type = "input";
xurltextbox.setNewTextFormat(fmt);
_local2.getgroup = new xBut(NX(530), NY(110), NX(80), NY(30), ST(131), GetTextGroup);
bpw = NX(580);
bph = NY(200);
bpx = NX(30);
bpy = NY(150);
backgroupb = AddBackground(bpx, bpy, bpw, bph);
backgroup = backgroupb.createEmptyMovieClip("mc" + _root.depth, _root.depth++);
backgroup.Width = bpw;
backgroupmask = AddBackground(bpx + 1, bpy + 1, (bpw - 2) - NX(16), bph - 2, 0);
backgroup.setMask(backgroupmask);
bscrollmc = new xScroll((bpx + bpw) - NX(16), bpy, NX(16), bph, NX(16), NX(32), 30, 1000, 0, onBackScrollChange);
_local2.makegroup = new xBut(NX(530) - 100, NY(359), NX(80) + 100, NY(30), ST(43), CreateGrpRel);
_root.depth = _root.depth - l_Diag;
}
function SetGrpChks() {
var _local1 = 0;
while (_local1 < gnode.length) {
gnode[_local1].chk.tick._visible = gnode[_local1].sel == true;
_local1++;
}
}
function CreateEditYourChatBox() {
DialogClose();
DialogOpen = 4;
_root.depth = _root.depth + l_Diag;
mceditbackground = new xDialog(NX(20), NY(20), NX(600), NY(440), " " + ST(44), nd, 0, mceditbackground_close);
var Dia = mceditbackground.Dia;
EditClose = function () {
if (NewLobbySet != undefined) {
MainFlagBits = MainFlagBits & (f_Lobby ^ 4294967000);
var _local1 = 0;
while (_local1 < gnode.length) {
if (gnode[_local1].sel) {
MainFlagBits = MainFlagBits | f_Lobby;
BackVars[1] = gnode[_local1].attributes.n;
BackVars[2] = xInt(gnode[_local1].attributes.r);
break;
}
_local1++;
}
eip(16);
tabs[1].t = BackVars[1];
tabs[1].h = tabs[1].t + " ";
group = BackVars[2];
if (f_Lobby & MainFlagBits) {
tabs[0].Skip = undefined;
tabs[1].Skip = undefined;
} else {
tabs[0].Skip = true;
tabs[1].Skip = true;
}
UpdateTabs(0);
}
mceditbackground.Dia.Delete();
};
Dia.mcreturn2 = new xBut(NX(220), NY(420), NX(200), NY(30), ST(45), EditClose);
Dia.ChangeBack = new xBut(NX(30), NY(60), NX(185), NY(30), ST(46), SwitchToBackMode);
Dia.ChangeGroups = new xBut(NX(227), NY(60), NX(185), NY(30), ST(47), SwitchToGroupMode);
mcadvanced_onRollOver = function () {
Hint(Dia.mcadvanced.But._x, Dia.mcadvanced.But._y, ST(48), true, 1, un, NX(200));
};
Dia.mcadvanced = new xBut(NX(424), NY(60), NX(185), NY(30), ST(49), mcadvanced_onRelease);
Dia.mcadvanced.SetRoll(mcadvanced_onRollOver);
_root.depth = _root.depth - l_Diag;
NewLobbySet = undefined;
CreateChangeGroup();
eip(8);
}
function GetTextGroup() {
eip(40);
CloseStuff();
CreateChangeGroup();
}
function SwitchToGroupMode() {
CloseStuff();
CreateChangeGroup();
eip(8);
}
function SwitchToBackMode() {
CloseStuff();
CreateChangeBackground();
eip(2);
}
function CloseStuff() {
removeMovieClip(mcbackbackgroundb);
removeMovieClip(mcbackbackgroundmask);
bscrollmc.Delete();
var _local1 = mceditbackground.Dia;
_local1.mcget.But.Delete();
removeMovieClip(_local1.bkgtext);
delete urllistenerObject;
removeMovieClip(xurltextbox);
removeMovieClip(xurltextboxbackground);
removeMovieClip(backgroupb);
removeMovieClip(backgroupmask);
_local1.makegroup.But.Delete();
_local1.getgroup.But.Delete();
}
function mceditbackground_close() {
CloseStuff();
var _local1 = mceditbackground.Dia;
_local1.mcadvanced.But.Delete();
_local1.mcreturn2.But.Delete();
_local1.ChangeBack.But.Delete();
_local1.ChangeGroups.But.Delete();
_local1.Delete();
State = 0;
DoUpdate = true;
DialogOpen = 0;
}
function mclget_onRelease() {
eip_back = xurltextbox.text;
eip(2);
}
function mcadvanced_onRelease() {
var _local1 = usedomain + "/web_gear/chat.php";
var _local2 = _local1;
var _local3;
if (eip_id != undefined) {
_local1 = _local1 + ((("?id=" + eip_id) + "&pw=") + eip_pw);
if (xb != undefined) {
_local1 = _local1 + ("&xb=" + xb);
}
_local2 = _local1;
_local3 = (" " + ST(50)) + " ";
} else {
_local2 = " xat.com/c ";
_local3 = (" " + ST(51)) + " ";
}
getURL (_local1, "_blank");
UrlPopup(_local3, _local2);
}
function eip(mode) {
if (EIPrunning) {
return(undefined);
}
EIPrunning = true;
ClearBackPane();
if (eip_back == undefined) {
eip_back = "";
if (pass && (w_mainowner)) {
eip_back = BackVars[0];
}
}
if (((eip_pw == undefined) && (w_mainowner)) && (pass)) {
eip_pw = pass;
}
if (eip_id == undefined) {
eip_id = 0;
if (pass && (w_mainowner)) {
eip_id = w_room;
}
}
BackVars[0] = eip_back;
var _local2 = JoinBackground();
eip_xml = new XML();
eip_xml.ignoreWhite = true;
eip_xml.onLoad = eip_xml_onLoad;
var _local1 = ((((((((((chatdomain + "eip.php?id=") + eip_id) + "&pw=") + eip_pw) + "&md=") + mode) + "&back=") + _local2) + "&fg=") + MainFlagBits) + TimeStamp();
if (mode & 32) {
_local1 = _local1 + ("&s=" + xurltextbox.text);
}
trace("eip=" + _local1);
eip_xml.load(searchreplace("#", "%23", _local1));
ShowBusyMessage();
}
function ShowBusyMessage() {
eip_busy = createEmptyMovieClip("eip_busy", l_Eip + (_root.depth++));
createTextNoWrap(eip_busy, mcbackbackgroundb._x + (mcbackbackgroundb._width * 0.15), mcbackbackgroundb._y, mcbackbackgroundb._width * 0.7, mcbackbackgroundb._height, ST(52), 2105376, 0, 100, 0, 24, "left", 1);
}
function eip_busy_box(m) {
eip_busy = createEmptyMovieClip("eip_busy", l_Eip + (_root.depth++));
createTextNoWrap(eip_busy, mcbackbackgroundb._x + (mcbackbackgroundb._width * 0.15), mcbackbackgroundb._y, mcbackbackgroundb._width * 0.7, mcbackbackgroundb._height, m, 15728640, 0, 100, 0, 24, "left", 1);
}
function PreviewF() {
getURL (this.u, "_blank");
UrlPopup(ST(53), this.u);
}
function eip_xml_onLoad(sucess) {
EIPrunning = false;
removeMovieClip(eip_busy);
if (!sucess) {
eip_busy_box(ST(54));
return(undefined);
}
var _local12 = new XML();
var _local13 = _local12.createElement("r");
_local12.appendChild(_local13);
socket.send(_local12);
ClearBackPane();
node = eip_xml.firstChild.childNodes;
gnode = undefined;
trace(eip_xml);
var _local8 = 0;
while (_local8 < node.length) {
if (node[_local8].nodeName == "sdown") {
eip_busy_box(ST(55));
return(undefined);
}
if (node[_local8].nodeName == "group") {
gnode = node[_local8].childNodes;
}
if (node[_local8].nodeName == "oldback") {
eip_oldback = xInt(node[_local8].attributes.v);
}
if (node[_local8].nodeName == "back") {
SplitBackground(node[_local8].attributes.v);
eip_back = BackVars[0];
} else if (node[_local8].nodeName == "pw") {
eip_pw = xInt(node[_local8].attributes.v);
} else if (node[_local8].nodeName == "id") {
eip_id = xInt(node[_local8].attributes.v);
} else if (node[_local8].nodeName.charAt(0) == "i") {
eip_i[xInt(node[_local8].nodeName.substr(1))] = node[_local8].attributes.v;
} else if (node[_local8].nodeName.charAt(0) == "w") {
eip_w[xInt(node[_local8].nodeName.substr(1))] = node[_local8].attributes.v;
} else if (node[_local8].nodeName.charAt(0) == "h") {
eip_h[xInt(node[_local8].nodeName.substr(1))] = node[_local8].attributes.v;
}
_local8++;
}
if (gnode) {
_root.depth = _root.depth + l_Diag;
if (gnode[0].nodeName != "g0") {
gnode.unshift(new Object());
gnode[0].attributes = new Object();
gnode[0].attributes.n = BackVars[1];
gnode[0].attributes.r = BackVars[2];
gnode[0].attributes.d = "";
var a = 1;
while (a < gnode.length) {
if (xInt(gnode[a].attributes.r) == BackVars[2]) {
gnode[0].attributes.d = gnode[a].attributes.d;
}
a++;
}
} else {
NewLobbySet = true;
}
var _local11 = 0;
var a = 0;
while (a < gnode.length) {
var _local7 = xInt(gnode[a].attributes.r) == BackVars[2];
if (((a != 0) && (_local7)) && (!NewLobbySet)) {
} else {
if ((!(MainFlagBits & f_Lobby)) || (NewLobbySet)) {
_local7 = false;
}
if (NewLobbySet && (a == 0)) {
_local7 = true;
}
var _local5 = backgroup.attachMovie("textWrapperClip2", "hld_" + _root.depth, _root.depth++);
_local5._y = (_local11++) * 20;
var _local4 = (gnode[a].chk = _local5.attachMovie("checkbox", "mc" + _root.depth, _root.depth++));
_local4._x = 5;
_local4._y = 3;
_local4.tick._visible = (gnode[a].sel = _local7);
_local4.z = a;
_local4.onPress = function () {
var _local3 = this.z;
var _local4 = gnode[_local3].sel == true;
var _local2 = 0;
while (_local2 < gnode.length) {
gnode[_local2].sel = false;
_local2++;
}
gnode[_local3].sel = !_local4;
SetGrpChks();
NewLobbySet = true;
};
ImagePaneVars.Height = _local5._y + 20;
var _local6 = _local5.attachMovie("textWrapperClip", "t" + _root.depth, _root.depth++);
_local6.a = a;
createTextNoWrap(_local6, 20, 1, 100, 20, gnode[a].attributes.n, 1052688, 0, 100, 0, 16, "left", 1);
createTextNoWrap(_local6, 121, 1, (NX(479) - 101) - 20, 20, gnode[a].attributes.d, 4210752, 0, 100, 0, 14, "left", 1);
_local6.onRollOver = function () {
Hint(40, _ymouse - 10, (gnode[this.a].attributes.n + ": ") + gnode[this.a].attributes.d, true, 0, ud, NX(480) - 50);
};
_local6.onRollOut = function () {
HintOff();
};
var _local9 = new xBut(NX(480), 2, NX(80), 18, ST(56), PreviewF, ud, ud, _local5);
_local9.But.u = (usedomain + "/") + gnode[a].attributes.n;
}
a++;
}
SetGrpChks();
_root.depth = _root.depth - l_Diag;
return(undefined);
}
if (xb != undefined) {
eip_i.unshift(xb);
eip_h.unshift(StageHeight);
eip_w.unshift(StageWidth);
}
if (urltextbox_text == undefined) {
urltextbox_text = 1;
xurltextbox.text = (" <" + ST(38)) + ">";
}
if (xurltextbox.text.indexOf("web_gear/background") >= 0) {
xurltextbox.text = "";
}
var _local14 = "id=" + eip_id;
if (eip_id != w_useroom) {
SetEmbedCode(eip_id);
}
CreateImagePane(mcbackbackground, eip_i, 100, 75);
SaveEipInCookie();
}
function SaveEipInCookie() {
if (eip_id == undefined) {
return(undefined);
}
if (eip_id < 1) {
return(undefined);
}
if (eip_pw == undefined) {
return(undefined);
}
var _local1 = SharedObject.getLocal("chat" + String(eip_id), "/");
if (_local1 != null) {
_local1.data.pass = eip_pw;
_local1.flush();
}
}
function CreateImagePane(mcpane, uList, tw, th) {
var _local8 = usedomain + "/web_gear/background/";
var _local6;
var _local5;
ImagePaneVars.gap = 5;
ImagePaneVars.pWidth = mcpane.Width - 19;
var _local10 = int((ImagePaneVars.pWidth / (tw + ImagePaneVars.gap)) + 0.5);
ImagePaneVars.tw = int((ImagePaneVars.pWidth - (ImagePaneVars.gap * (_local10 - 1))) / _local10);
th = int((ImagePaneVars.tw * th) / tw);
ImagePaneVars.th = int((ImagePaneVars.tw * th) / tw);
tw = ImagePaneVars.tw;
ImagePaneVars.xofst = int(((ImagePaneVars.pWidth - (_local10 * tw)) - ((_local10 - 1) * ImagePaneVars.gap)) / 2);
ImagePaneVars.mcPane = mcpane;
ImagePaneData = new Array();
var _local2 = 0;
while (_local2 < uList.length) {
var _local3 = mcpane.attachMovie("textWrapperClip2", "hld_" + _root.depth, _root.depth);
if (uList[_local2].substr(0, 7) == "http://") {
_local6 = uList[_local2];
_local5 = uList[_local2];
} else {
_local6 = ((_local8 + "xat_") + uList[_local2]) + ".jpg";
_local5 = ((_local8 + "jdothumb/xat_") + uList[_local2]) + ".jpg";
}
_local3.back = _local6;
if ((eip_w[_local2] > 0) && (eip_h[_local2] > 0)) {
_local3.Aspect = eip_w[_local2] / eip_h[_local2];
}
ImagePaneData[_local2] = _local3;
_root.depth++;
var _local7 = _local3.createEmptyMovieClip("pic", depth++);
_local7.loadMovie(_local5);
_local3._visible = false;
_local2++;
}
}
function ImagePaneTick() {
if ((tick % 10) != 0) {
return(undefined);
}
if (ImagePaneData.length == 0) {
return(undefined);
}
var _local5;
var _local7 = false;
_local5 = 0;
while (_local5 < ImagePaneData.length) {
var _local2 = ImagePaneData[_local5];
var _local3 = _local2.pic;
if ((!_local2.Done) && (_local3._width > 0)) {
_local2.Done = true;
_local7 = true;
_local3._width = ImagePaneVars.tw;
_local3._height = ImagePaneVars.th;
if (_local2.Aspect != undefined) {
_local3._width = int(ImagePaneVars.th * _local2.Aspect);
if (_local3._width > (ImagePaneVars.tw * 2)) {
_local3._width = ImagePaneVars.tw * 2;
}
}
_local2._visible = true;
_local2.onRelease = function () {
eip_back = this.back;
UpdateBackground(eip_back);
eip(4);
ClearBackPane();
mceditbackground_close();
State = 0;
Update();
};
_local2.onRollOver = function () {
trace("hi");
Hint(_xmouse, _ymouse, ST(57), true);
};
_local2.onRollOut = function () {
HintOff();
};
}
_local5++;
}
if (_local7) {
var _local4 = ImagePaneVars.xofst;
var _local6 = 0;
_local5 = 0;
while (_local5 < ImagePaneData.length) {
var _local2 = ImagePaneData[_local5];
if (_local2.Done) {
if ((_local4 + _local2.pic._width) > ImagePaneVars.pWidth) {
_local4 = ImagePaneVars.xofst;
_local6 = _local6 + (ImagePaneVars.th + ImagePaneVars.gap);
}
_local2._y = _local6;
_local2._x = _local4;
_local4 = _local4 + (_local2.pic._width + ImagePaneVars.gap);
}
_local5++;
}
ImagePaneVars.Height = _local6;
var _local8 = ImagePaneVars.Height - bph;
if (_local8 < 0) {
_local8 = 0;
}
bscrollmc.__set__ssize(_local8);
}
}
function ClearBackPane(Delete) {
removeMovieClip(eip_busy);
n = 0;
while (n < ImagePaneData.length) {
removeMovieClip(ImagePaneData[n]);
n++;
}
ImagePaneData = new Array();
eip_w = new Array();
eip_h = new Array();
eip_i = new Array();
if (Delete != undefined) {
removeMovieClip(mcbackbackground);
}
}
function CreateBackPane() {
function onBackScrollChange() {
var _local1 = ImagePaneVars.Height - bph;
if (_local1 < 0) {
_local1 = 0;
}
bscrollmc.Scr_size = _local1;
var _local2 = bscrollmc.Scr_position;
mcbackbackground._y = -_local2;
}
ClearBackPane(1);
bpw = NX(580);
bph = NY(250);
bpx = NX(30);
bpy = NY(150);
_root.depth = _root.depth + l_Diag;
mcbackbackgroundb = AddBackground(bpx, bpy, bpw, bph);
mcbackbackground = mcbackbackgroundb.createEmptyMovieClip("mc" + _root.depth, _root.depth++);
mcbackbackground.Width = bpw;
mcbackbackgroundmask = AddBackground(bpx + 1, bpy + 1, (bpw - 2) - NX(16), bph - 2, 0);
mcbackbackground.setMask(mcbackbackgroundmask);
bscrollmc = new xScroll((bpx + bpw) - NX(16), bpy, NX(16), bph, NX(16), NX(32), 30, 1000, 0, onBackScrollChange);
_root.depth = _root.depth - l_Diag;
}
function SplitBackground(back) {
BackVars = back.split(";=");
var _local1 = BackVars[0].split("#");
BackVars[0] = _local1[0];
if (BackVars[1] == undefined) {
BackVars[1] = "Lobby";
}
if (xInt(BackVars[2]) < 1) {
BackVars[2] = 1;
}
if (Meezer && (xc & 2048)) {
BackVars[1] = "Meez";
BackVars[2] = 3602375 /* 0x36F7C7 */;
}
}
function JoinBackground() {
var _local2;
_local2 = BackVars[0];
var _local1 = 1;
while (_local1 < 12) {
if (BackVars[_local1] == undefined) {
break;
}
_local2 = _local2 + (";=" + BackVars[_local1]);
_local1++;
}
return(_local2);
}
function GetLangDom() {
var _local1 = "http://www";
if (xInt(w_lang) > 10000) {
_local1 = _local1 + "1.xatech";
} else {
_local1 = _local1 + ".xat";
}
_local1 = _local1 + ".com/web_gear/ever/lang/";
return(_local1);
}
function HelpDialog() {
function onHelpScrollChange() {
var _local1 = (helpinc - bph) + 4;
if (_local1 < 0) {
_local1 = 0;
}
bhelpscrollmc.Scr_size = _local1;
var _local2 = bhelpscrollmc.Scr_position;
mchelpback._y = -_local2;
}
DialogClose();
DialogOpen = 5;
HelpText = undefined;
trace("w_lang=" + w_lang);
var _local7 = ((GetLangDom() + (((w_lang == undefined) || (w_lang == 0)) ? "help" : (String(w_lang) + ".h"))) + ".xml?") + w_langv;
loadVariables (_local7, _root);
_root.depth = _root.depth + l_Diag;
mchelpbackground = new xDialog(NX(20), NY(20), NX(600), NY(440), " " + ST(14), nd, 0, mchelpbackground_close);
var _local6 = mchelpbackground.Dia;
_local6.mcreturn2 = new xBut(NX(240), NY(420), NX(160), NY(30), ST(45), HelpClose);
_local6.mcreturn2.But._alpha = 90;
var _local2 = NX(580);
var bph = (NY(390) - 40);
var _local3 = NX(30);
var _local4 = NY(20) + 40;
mchelpbackb = AddBackground(_local3, _local4, _local2, bph);
mchelpback = mchelpbackb.createEmptyMovieClip("mc" + _root.depth, _root.depth++);
mchelpback.Width = _local2;
mchelpbackmask = AddBackground(_local3 + 1, _local4 + 1, (_local2 - 2) - NX(16), bph - 2, 0);
mchelpback.setMask(mchelpbackmask);
bhelpscrollmc = new xScroll((_local3 + _local2) - NX(16), _local4, NX(16), bph, NX(16), NX(32), 30, 1000, 0, onHelpScrollChange);
_root.depth = _root.depth - l_Diag;
}
function AddHelpLine(h) {
var _local2 = mchelpback.attachMovie("textWrapperClip2", "m" + _root.depth, _root.depth);
_local2._x = 5;
helpinc = helpinc + (4 + AddMessageToMc(_local2, 0, h, 0, mchelpback.Width - 30, helpinc));
}
function HelpClose() {
mchelpbackground.Dia.Delete();
DialogOpen = 0;
}
function HelpTick() {
if (HelpText != undefined) {
helpinc = 0;
AddHelpLine("http://xat.com/wiki for detailed help.");
AddHelpLine("");
trace(HelpText);
HelpText = HelpText.substr(1);
var _local1 = 0;
while (_local1 < 500) {
index = HelpText.indexOf(";=");
if (index == -1) {
trace("i+" + _local1);
break;
}
AddHelpLine(HelpText.substr(0, index));
HelpText = HelpText.substr(index + 2);
_local1++;
}
AddHelpLine("");
AddHelpLine(cVersion);
HelpText = undefined;
}
}
function mchelpbackground_close() {
var _local1 = mchelpbackground.Dia;
_local1.mcreturn2.But.Delete();
bhelpscrollmc.Delete();
removeMovieClip(mchelpbackb);
removeMovieClip(mchelpbackmask);
_local1.Delete();
DialogOpen = 0;
}
function CreateGetAChatBox() {
DialogClose();
DialogOpen = 6;
if (xc & 64) {
var _local2 = "http://www.facebook.com/apps/application.php?id=3218220471";
getURL (_local2, "_blank");
UrlPopup(ST(92), _local2);
} else {
_root.depth = _root.depth + l_Diag;
mcgetbackground = new xDialog(NX(20), NY(20), NX(600), NY(440), " " + ST(92), nd, 0, mcgetbackground_close);
mcgetbackground.Dia.mcreturn = new xBut(NX(240), NY(420), NX(160), NY(30), ST(45), mcreturn_onRelease);
mcgetchat = new xBut(NX(22), NY(24), NX(160), NY(24), ST(5), mcgetchat_onRelease);
if ((gn != undefined) && (gn != ST(0))) {
mcgetgroup = new xBut(NX(202), NY(24), NX(160), NY(24), ST(212, gn), mcgetgroup_onRelease);
} else {
mcgetchat.TextCol = ButCol ^ 4294967000;
}
mcmakeagroup = new xBut(NX(382), NY(24), NX(160), NY(24), ST(213), mcmakeagroup_onRelease);
_root.depth = _root.depth - l_Diag;
eip(2);
}
}
function mcgetbackground_close() {
mcgetchat.But.Delete();
mcgetgroup.But.Delete();
mcmakeagroup.But.Delete();
mcgetbackground.Dia.mcreturn.But.Delete();
removeMovieClip(mcWF);
mcgetbackground.Dia.Delete();
DialogOpen = 0;
}
function mcreturn_onRelease() {
eip_i.length = 0;
State = 0;
DoUpdate = true;
mcgetbackground_close();
}
function SetEmbedCode(id, Name, IsGroup) {
if (IsGroup != true) {
var _local4 = ((("http://xat.com/web_gear/chat.php?id=" + eip_id) + "&pw=") + eip_pw) + "&f=1";
getURL (_local4, "_blank");
} else {
var _local4 = (("http://xat.com/web_gear/chat/embed.php?id=" + id) + "&GroupName=") + Name;
getURL (_local4, "_blank");
}
var embedcode = ((("<embed src=\"http://www.xatech.com/web_gear/chat/chat.swf\" quality=\"high\" bgcolor=\"#000000\" width=\"540\" height=\"405\" name=\"chat\" FlashVars=\"id=" + id) + ((IsGroup == true) ? ("&gn=" + Name) : "")) + "\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://xat.com/update_flash.shtml\" /><br><small><a target=\"_BLANK\" href=\"http://xat.com/web_gear/");
if (IsGroup) {
embedcode = embedcode + (((((((((("chat/embed.php?id=" + id) + "&GroupName=") + Name) + "\">Get ") + Name) + " chat group</a> | <a target=\"_BLANK\" href=\"http://xat.com/") + Name) + "\"> Goto ") + Name) + " website</a></small><br>");
} else {
embedcode = embedcode + (("?cb\">Get your own Chat Box!</a> <a target=\"_BLANK\" href=\"http://xat.com/web_gear/chat/go_large.php?id=" + id) + "\">Go Large!</a></small><br>");
}
_root.depth = _root.depth + l_Diag;
mcWF = _root.createEmptyMovieClip("Wildfire", _root.getNextHighestDepth());
mcWF._lockroot = true;
mcWF._x = NX(28);
mcWF._y = NY(54);
mcWF.ModuleID = "PostModule1";
var _local2 = (_root[mcWF.ModuleID] = {});
_local2.width = NX(584);
_local2.height = NY(362);
_local2.contentIsLayout = null;
_local2.UIConfig = "<config><body background-color=\"Transparent\" size=\"14\"><background frame-color=\"Transparent\" background-color=\"Transparent\" /><controls background-color=\"#E5E5E5\" corner-roundness=\"8\"><textboxes frame-color=\"#ECECEC\"><codeboxes color=\"#000000\" /></textboxes><buttons frame-color=\"#CACACA\" gradient-color-begin=\"#F4F4F4\" gradient-color-end=\"#959595\" frame-thickness=\"0\" bold=\"true\"><post-buttons gradient-color-begin=\"#F4F4F4\" gradient-color-end=\"#959595\" /></buttons><snbuttons frame-color=\"#CACACA\" corner-roundness=\"3\" gradient-color-begin=\"#F4F4F4\" gradient-color-end=\"#959595\" size=\"11\" /></controls><texts bold=\"true\" /></body></config>";
_local2.defaultContent = function () {
return(embedcode);
};
_local2.onPostProfile = function (eventObj) {
trace((((("event fired eventObj.type=" + eventObj.type) + " eventObj.network=") + eventObj.network) + " eventObj.partnerData=") + eventObj.partnerData);
};
_local2.onLoad = function (eventObj) {
trace((((("event fired eventObj.type=" + eventObj.type) + " eventObj.network=") + eventObj.network) + " eventObj.partnerData=") + eventObj.partnerData);
};
mcWF.loadMovie("http://cdn.gigya.com/WildFire/swf/wildfire.swf", "get");
mcWF._visible = false;
_root.depth = _root.depth - l_Diag;
}
function CreateProfile() {
function AddCheck(s, Bit) {
createTextNoWrap(Dia.txt1, NX(62), NY(YY), NX(280), NY(32), s, 2105376, 0, 100, 0, 20, "left", 1);
var _local2 = Dia.txt1.createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
_local2 = _local2.attachMovie("checkbox", "mc" + _root.depth, _root.depth++);
_local2._x = NX(40);
_local2._y = NY(YY + 8);
_local2.tick._visible = (autologin & Bit) != 0;
_local2.Bit = Bit;
_local2.onPress = OnCheck;
YY = YY + 30;
}
function OnCheck() {
this.tick._visible = !this.tick._visible;
if (this.tick._visible) {
autologin = autologin | this.Bit;
} else {
autologin = autologin & (this.Bit ^ 4294967000);
}
var _local2 = SharedObject.getLocal("chat", "/");
if (1 & (_local2 != null)) {
_local2.data.w_autologin = autologin;
_local2.flush();
}
}
function ProfileonMarry() {
CreateBuystuff(2, this.UserNo);
mcprofilebackground_close();
}
DialogClose();
DialogOpen = 1;
var YY;
var _local6 = w_registered && (w_d2);
if (w_userrev == undefined) {
w_userrev = 0;
if (lb == "t") {
lb = "n";
DoUpdate = true;
NetworkClose();
}
if (lb == "n") {
logoutbutonPress();
}
}
_root.depth = _root.depth + l_Diag;
YY = 412;
if (_local6) {
YY = YY + 38;
}
var _local4 = xInt(w_userno).toString();
if (_local4.substr(-6, 6) == "000000") {
_local4 = _local4.substr(0, _local4.length - 6) + "M";
}
mcprofilebackground = new xDialog(NX(20), NY((480 - YY) / 2), NX(600), NY(YY), ((w_registered == undefined) ? (" " + w_userno) : ((((" " + w_registered) + " (") + _local4) + ")")), nd, 0, mcprofilebackground_close);
YY = (480 - YY) / 2;
YY = YY + 4;
var Dia = mcprofilebackground.Dia;
Dia.mcuser = new Array();
i = 0;
while (i < 4) {
Dia.mcuser[i] = new xBut(NX(510 - (i * 85)), NY(YY), NX(80), NY(22), ((w_namelist[i] != undefined) ? (w_namelist[i]) : (ST(59))), onUser);
Dia.mcuser[i].But.Num = i;
if (w_namelist[i] == undefined) {
break;
}
i++;
}
Dia.txt1 = createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
YY = YY + 37;
createTextNoWrap(Dia.txt1, NX(36), NY(YY), NX(100), NY(32), ST(60), 2105376, 0, 100, 0, 24, "left", 1);
tf3b = AddBackground(NX(144), NY(YY), NX(460), NY(32));
tf3 = createTextField("_tf3", _root.depth++, NX(144), NY(YY), NX(460), NY(32));
tf3.type = "input";
tf3.setNewTextFormat(fmt);
YY = YY + 44;
Dia.txt1.YY = (YY + 18) + 24;
createTextNoWrap(Dia.txt1, NX(36), NY(YY), NX(100), NY(32), ST(61), 2105376, 0, 100, 0, 24, "left", 1);
tf4b = AddBackground(NX(144), NY(YY), NX(460), NY(32));
tf4 = createTextField("_tf4", _root.depth++, NX(144), NY(YY), NX(460), NY(32));
tf4.type = "input";
tf4.setNewTextFormat(fmt);
YY = YY + (42 + NY(30));
Dia.mcmore = new xBut(NX(445), NY(YY + 10), NX(160), NY(30), ST(64), More_onRelease);
mcmore_onRollOver = function () {
Hint(0, 0, ST(63), true, 0, nd, NX(120), this);
};
Dia.mcmore.SetRoll(mcmore_onRollOver);
Dia.mceffect = new xBut(NX(240), NY(YY + 10), NX(160), NY(30), ST(190), Effect_onRelease);
mceffect_onRollOver = function () {
Hint(0, 0, ST(191), true, 0, nd, NX(120), this);
};
Dia.mceffect.SetRoll(mceffect_onRollOver);
YY = YY + NY(40);
createTextNoWrap(Dia.txt1, NX(36), NY(YY) + 15, NX(100), NY(32), ST(62), 2105376, 0, 100, 0, 24, "left", 1);
tf5b = AddBackground(NX(144), NY(YY) + 15, NX(460), NY(32));
tf5 = createTextField("_tf5", _root.depth++, NX(144), NY(YY) + 15, NX(460), NY(32));
tf5.type = "input";
tf5.setNewTextFormat(fmt);
tf3.text = (w_name = CleanTextNoXat(w_name));
tf4.text = w_avatar;
tf5.text = w_homepage;
tf3.onChanged = (tf4.onChanged = (tf5.onChanged = RemoveCR));
YY = YY + 58;
if (_local6) {
var _local3 = ST(152);
if (w_d0 & 1) {
_local3 = ST(153);
}
_local3 = _local3 + ": ";
if (w_bride) {
_local3 = _local3 + (((w_bride + " (") + w_d2) + ")");
} else {
_local3 = _local3 + w_d2;
}
createTextNoWrap(Dia.txt1, NX(36), NY(YY), NX(460), NY(32), _local3, 2105376, 0, 100, 0, 18, "left", 1);
Dia.dv = new xBut(NX(445), NY(YY), NX(160), NY(30), ST(150), ViewprofileonMarry, 0);
Dia.dv.But.UserNo = 1;
Dia.dv.But.Mode = 2;
YY = YY + 38;
}
Dia.mcpowers = new xBut(NX(445), NY(YY), NX(160), NY(30), ST(189), onPowers);
AttachBut(Dia.mcpowers, "pwr");
AddCheck(ST(65), 1);
AddCheck(ST(220), 2);
YY = YY + 5;
if (w_userno < 1999800000) {
Dia.mcregister = new xBut(NX(35), NY(YY), NX(160), NY(30), ST(154), Register_onRelease);
Dia.mcregister.SetRoll(ST(155));
}
Dia.mclang = new xBut(NX(445), NY(YY), NX(160), NY(30), "Language...", OK_onLang);
if (xm != undefined) {
Dia.UseX = new xBut(NX(240), NY(YY), NX(160), NY(30), xm, UseX_onRelease);
Dia.UseX.But.Obj = Dia.UseX;
} else {
Dia.CoinB = new xBut(NX(240), NY(YY), NX(160), NY(30), " " + ST(206), BuyRelease);
AttachBut(Dia.CoinB, "coins");
}
YY = YY + 50;
Dia.coins = this.attachMovie("coins", "coins", _root.depth++, {_x:NX(440), _y:NY(YY + 4), _xscale:SX(), _yscale:SY()});
createTextNoWrap(Dia.coins, 30, -10, 130, 50, w_coins + " xats", 2105376, 0, 100, 0, 26, "center", 1);
Dia.coins.onRelease = CreateBuystuff;
if (YC) {
vt = xInt(w_d1) - YC;
if (vt < 0) {
vt = 0;
}
vt = xInt((vt / 86400) + 0.3);
createTextNoWrap(Dia.txt1, NX(36), NY(YY), NX(160), NY(33), (ST(203) + newline) + ST(204, vt), 2105376, 0, 100, 0, 24, "left", 1);
}
Dia.mcok = new xBut(NX(240), NY(YY), NX(160), NY(30), ST(45), OK_onRelease);
_root.depth = _root.depth - l_Diag;
ChangeProfileAvs();
}
function onUser() {
trace("onUser=" + this.Num);
t_userrev = ((w_userrevlist[this.Num] != undefined) ? (w_userrevlist[this.Num]) : 0);
t_namelist = ((w_namelist[this.Num] != undefined) ? (w_namelist[this.Num]) : " ");
t_avatar = ((w_avatarlist[this.Num] != undefined) ? (w_avatarlist[this.Num]) : "");
t_homepage = ((w_homepagelist[this.Num] != undefined) ? (w_homepagelist[this.Num]) : "");
w_userrevlist[this.Num] = w_userrev;
w_namelist[this.Num] = CleanTextNoXat(w_name);
w_avatarlist[this.Num] = w_avatar;
w_homepagelist[this.Num] = w_homepage;
w_user = t_userrev;
w_name = CleanTextNoXat(t_namelist);
w_avatar = t_avatar;
w_homepage = t_homepage;
var _local2 = SharedObject.getLocal("chat", "/");
if (1 & (_local2 != null)) {
if (_local2.data.w_userno != undefined) {
_local2.data.w_userrevlist = w_userrevlist;
_local2.data.w_namelist = w_namelist;
_local2.data.w_avatarlist = w_avatarlist;
_local2.data.w_homepagelist = w_homepagelist;
_local2.flush();
}
}
mcprofilebackground_close();
lb = "n";
DoUpdate = true;
NetworkClose();
logoutbutonPress();
}
function UseX_onRelease() {
if (this.Done) {
mcprofilebackground_close();
return(undefined);
}
if (xn != undefined) {
tf3.text = CleanText(xn);
}
if (xh != undefined) {
tf5.text = CleanText(xh);
}
if (xp != undefined) {
tf4.text = CleanText(xp);
ChangeProfileAvs();
}
this.Obj.SetText(ST(66));
this.Done = true;
}
function DeleteProfileAvs() {
var _local2 = mcprofilebackground.Dia;
_local2.avc.Delete();
var _local1 = 0;
while (_local1 < _local2.acnt) {
_local2.xmc[_local1].Delete();
_local1++;
}
}
function ChangeProfileAvs() {
_root.depth = _root.depth + l_Diag;
var _local4 = mcprofilebackground.Dia;
var _local8 = NY(_local4.txt1.YY);
DeleteProfileAvs();
var _local10 = function () {
GotoProfile(w_userno);
};
_local4.avc = new xAvatar(this, tf4.text, ud, _local10, w_VIP, w_d0, Users[FindUser(w_userno)].Powers);
var _local9 = _local4.avc.Av;
_local9._x = NX(67);
_local9._y = _local8;
_local4.acnt = int(NX(470) / 33);
_local4.xmc = new Array();
var _local7 = 0;
while (_local7 < _local4.acnt) {
var _local5 = RandAv();
_local4.xmc[_local7] = new xAvatar(this, _local5);
var _local3 = _local4.xmc[_local7].Av;
_local3._x = NX(144) + (33 * _local7);
_local3._y = _local8;
_local3.txt = _local5;
_local3.onPress = function () {
var _local2 = this;
var _local3 = mcprofilebackground.Dia;
tf4.text = _local2.txt;
ChangeProfileAvs();
};
_local7++;
}
_root.depth = _root.depth - l_Diag;
}
function mcprofilebackground_close() {
var _local1 = mcprofilebackground.Dia;
_local1.avc.Delete();
removeMovieClip(_local1.mcmore);
removeMovieClip(_local1.mceffect);
DeleteProfileAvs();
removeMovieClip(tf3);
removeMovieClip(tf3b);
removeMovieClip(tf4);
removeMovieClip(tf4b);
removeMovieClip(tf5);
removeMovieClip(tf5b);
removeMovieClip(_local1.txt1);
removeMovieClip(_local1.txt2);
removeMovieClip(_local1.txt3);
removeMovieClip(_local1.coins);
i = 0;
while (i < 4) {
_local1.mcuser[i].But.Delete();
i++;
}
_local1.mcregister.But.Delete();
_local1.mcuser[i].But.Delete();
_local1.mcuser[i].But.Delete();
_local1.UseX.But.Delete();
_local1.mcmore.But.Delete();
_local1.mceffect.But.Delete();
_local1.dv.But.Delete();
_local1.mcok.But.Delete();
_local1.CoinB.But.Delete();
_local1.mclang.But.Delete();
_local1.mcpowers.But.Delete();
_local1.Delete();
DialogOpen = 0;
}
function OK_onRelease() {
if ((messageecho == "p") && (w_avatar != CleanAv(tf4.text))) {
sending_lc.send(fromxat, "onMsg", 4, 0, "p");
}
trace("HH1");
if (((w_name != tf3.text) || (w_avatar != CleanAv(tf4.text))) || (w_homepage != tf5.text)) {
w_name = NameNoXat(CleanText(tf3.text), 1);
w_avatar = CleanAv(tf4.text);
tf4.text = UrlAv(w_avatar);
w_homepage = tf5.text;
w_userrev++;
PurgeMessageFromUser(w_userno);
var _local1 = FindUser(w_userno);
if (_local1 != -1) {
trace((((("iii" + Users[_local1].n) + " ") + Users[_local1].a) + " ") + Users[_local1].h);
Users[_local1].n = w_name;
Users[_local1].a = w_avatar;
Users[_local1].h = w_homepage;
Users[_local1].s = Macros.status;
}
UpdateFriendList(w_userno, true);
w_friendlist2[w_userno] = undefined;
w_auserstale = true;
lb = "n";
DoUpdate = true;
NetworkClose();
logoutbutonPress();
}
var _local2 = SharedObject.getLocal("chat", "/");
if (_local2 != null) {
_local2.data.w_name = w_name;
_local2.data.w_avatar = w_avatar;
_local2.data.w_homepage = w_homepage;
_local2.data.w_userrev = w_userrev;
_local2.flush();
}
State = 0;
DoUpdate = true;
mcprofilebackground_close();
}
function More_onRelease() {
var _local1;
_local1 = (chatdomain + "avatar.php?id=") + w_userno;
getURL (_local1, "_blank");
UrlPopup(ST(63), _local1);
}
function Effect_onRelease() {
if (xc & 2048) {
mcLoad.OpenByN(20032);
} else {
var _local1 = xatlinks(PageUrl(20032));
UrlPopup(ST(8), _local1, ST(17));
getURL (_local1, "_blank");
}
}
function OK_onLang() {
var _local1 = (chatdomain + "changelanguage.php?id=") + w_useroom;
getURL (_local1, "_blank");
UrlPopup(ST(8), usedomain + "/language");
}
function onPowers() {
PowersDialog(w_userno, ((w_registered == undefined) ? (" " + w_userno) : ((((" " + w_registered) + " (") + w_userno) + ")")));
}
function Login_onRelease() {
mcprofilebackground_close();
CreateLogin();
}
function Register_Link(t) {
var _local1;
_local1 = usedomain + "/web_gear/chat/register.php";
if (t != undefined) {
_local1 = _local1 + ((((("?UserId=" + w_userno) + "&k2=") + w_k2) + "&mode=") + t);
}
trace(_local1);
return(_local1);
}
function Register_onRelease(buy) {
var _local1 = "";
if (buy) {
_local1 = "&b=1";
}
mcprofilebackground_close();
var _local2 = Register_Link(1) + _local1;
getURL (_local2, "_blank");
UrlPopup(ST(8), _local2);
}
function CreateBuystuff(Marry, Mode) {
DialogClose();
DialogOpen = 3;
Mode = xInt(Mode);
var _local15 = new Date();
var _local3;
var _local10 = FindUser(Marry);
var _local7 = Users[_local10].registered;
_root.depth = _root.depth + l_Diag;
var _local9 = new Array(440, 365, 285, 305);
var _local5;
switch (Mode) {
case 1 :
_local5 = ST(221);
break;
case 2 :
_local5 = ST(222);
break;
case 3 :
_local5 = ST(223, _local7);
break;
default :
_local5 = ST(224);
}
var _local2 = (480 - _local9[Mode]) / 2;
mcBuystuffbackground = new xDialog(NX(20), NY(_local2), NX(600), NY(_local9[Mode]), _local5, nd, 0, mcBuystuffbackground_close);
_local2 = _local2 + 30;
var _local4 = mcBuystuffbackground.Dia;
if (Mode == 3) {
_local5 = ST(181);
} else {
_local5 = ST(182);
}
_local4.txt1 = createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
createTextNoWrap(_local4.txt1, NX(36), NY(_local2), NX(560), NY(32), _local5, 2105376, 0, 100, 0, 18, "left", 1);
_local2 = _local2 + 35;
createTextNoWrap(_local4.txt1, NX(36), NY(_local2), NX(100), NY(32), ST(183), 2105376, 0, 100, 0, 24, "left", 1);
Messfldbackground = AddBackground(NX(144), NY(_local2), NX(460), NY(32));
Messfld = Messfldbackground.createTextField("_Messfld", _root.depth++, 0, NY(6), NX(460), NY(32));
Messfld.type = "input";
Messfld.setNewTextFormat(fmt);
Messfld.onChanged = RemoveCR;
_local2 = _local2 + 35;
createTextNoWrap(_local4.txt1, NX(36), NY(_local2), NX(100), NY(32), ST(184), 2105376, 0, 100, 0, 24, "left", 1);
PassFieldbackground = AddBackground(NX(144), NY(_local2), NX(460), NY(32));
PassField = PassFieldbackground.createTextField("_PassField", _root.depth++, 0, NY(6), NX(460), NY(32));
PassField.type = "input";
PassField.password = true;
PassField.setNewTextFormat(fmt);
PassField.onChanged = RemoveCR;
_local2 = _local2 + 50;
_local4.Kiss = new Array();
switch (Mode) {
case 0 :
_local3 = 0;
while (_local3 < 3) {
_local2 = _local2 + AddKisses(5 + (_local3 * 5), 99, _local2, _local4, ST(185), 25);
_local3++;
}
break;
case 1 :
_local2 = _local2 + AddKisses(0, 2, _local2, _local4, "Marry", 200, Array(3, 3), Marry);
_local2 = _local2 + AddKisses(2, 1, _local2, _local4, "Best Friend", 200, Array(4, 0), Marry);
break;
case 2 :
_local2 = _local2 + AddKisses(3, 2, _local2, _local4, ST(150), 0, 2);
break;
case 3 :
_local2 = _local2 + 10;
createTextNoWrap(_local4.txt1, NX(36), NY(_local2), NX(210), NY(32), ST(202, _local7), 2105376, 0, 100, 0, 24, "left", 1);
createTextNoWrap(_local4.txt1, NX(266), NY(_local2), NX(60), NY(32), ST(205) + ":", 2105376, 0, 100, 0, 20, "left", 1);
tXatsbackground = AddBackground(NX(326), NY(_local2), NX(50), NY(32));
tXats = tXatsbackground.createTextField("_tXats", _root.depth++, 0, NY(6), NX(50), NY(32));
tXats.type = "input";
tXats.setNewTextFormat(fmt);
tXats.onChanged = RemoveCR;
createTextNoWrap(_local4.txt1, NX(386), NY(_local2), NX(60), NY(32), ST(208) + ":", 2105376, 0, 100, 0, 20, "left", 1);
tTimebackground = AddBackground(NX(446), NY(_local2), NX(50), NY(32));
tTime = tTimebackground.createTextField("_tTime", _root.depth++, 0, NY(6), NX(50), NY(32));
tTime.type = "input";
tTime.setNewTextFormat(fmt);
tTime.onChanged = RemoveCR;
_local4.mcgo = new xBut(NX(504), NY(_local2), NX(100), NY(32), ST(149), Transfer_onRelease);
_local4.mcgo.But.b = Marry;
_local2 = _local2 + 50;
_local4.mctrade = new xBut(NX(40), NY(_local2), NX(100), NY(32), "Trade", Trade_onRelease);
createTextNoWrap(_local4.txt1, NX(152), NY(_local2), NX(448), NY(32), "Open the trading engine for easier and safer trading.", 2105376, 0, 100, 0, 24, "left", 1);
_local2 = _local2 + 50;
}
if (w_VIP && (YC)) {
vt = xInt(w_d1) - YC;
if (vt < 0) {
vt = 0;
}
vt = xInt((vt / 86400) + 0.3);
createTextNoWrap(_local4.txt1, NX(36), NY(_local2), NX(160), NY(33), (ST(203) + newline) + ST(204, vt), 2105376, 0, 100, 0, 24, "left", 1);
}
_local4.mcok = new xBut(NX(240), NY(_local2), NX(160), NY(30), ST(66), K_Can_onRelease);
if (w_coins) {
_local4.coins = attachMovie("coins", "coins", _root.depth++, {_x:NX(440), _y:NY(_local2), _xscale:SX(), _yscale:SY()});
createTextNoWrap(_local4.coins, 30, -10, 130, 50, (w_coins + " ") + ST(205), 2105376, 0, 100, 0, 26, "center", 1);
_local4.coins.onRelease = BuyRelease;
} else {
CoinB = new xBut(NX(440), NY(_local2), NX(160), NY(30), " " + ST(206), BuyRelease);
CoinB.But.attachMovie("coins", "c", _root.depth++);
CoinB.But.c._xscale = SX(0.8);
CoinB.But.c._yscale = SY(0.8);
CoinB.But.c._x = NX(10);
CoinB.But.c._y = NY(5);
}
if (Key.isDown(16) || ((w_coins == 0) && (xInt(w_d1) < YC))) {
AddAd();
}
_root.depth = _root.depth - l_Diag;
}
function AddAd() {
var _local3 = 100;
XatAd = createEmptyMovieClip("mc" + _root.depth, _root.depth++);
var _local5 = XatAd.createEmptyMovieClip("c", _root.depth++);
_local5.beginFill(0, 50);
ButtonCurve2(_local5, 0, StageWidth, StageHeight, 0, 0, 0, 0);
_local5.onPress = CloseAd;
var _local2 = XatAd.createEmptyMovieClip("a", _root.depth++);
var _local6 = _local2.createEmptyMovieClip("b", _root.depth++);
if ((StageWidth < 400) || (StageHeight < 400)) {
var _local7 = StageWidth;
if (StageHeight < StageWidth) {
_local7 = StageHeight;
}
_local3 = int(_local7 / 4);
}
_local2._xscale = (_local2._yscale = _local3);
_local2._x = (StageWidth - (4 * _local3)) / 2;
_local2._y = (StageHeight - (4 * _local3)) / 2;
_local6.loadMovie("http://www.xatech.com/web_gear/flash/xatad.swf?a24");
_local6._lockroot = true;
var _local4 = XatAd.createEmptyMovieClip("d", _root.depth++);
_local4.attachMovie("close", "cl", _root.depth++);
_local4.cl._x = (_local2._x + (4 * _local3)) - 20;
_local4.cl._y = _local2._y + 5;
_local4.cl.onPress = CloseAd;
XatAd.int = setInterval(function () {
if (XatAd.a.b.Pressed) {
Register_onRelease(1);
CloseAd();
}
}, 100);
}
function CloseAd() {
clearInterval(XatAd.int);
removeMovieClip(XatAd);
}
function Transfer_onRelease() {
BlowKiss({b:this.b, n:"T", Type:3});
}
function Trade_onRelease() {
if (xc & 2048) {
mcLoad.OpenByN(30008);
} else {
var _local1 = xatlinks(PageUrl(30008));
UrlPopup(ST(8), _local1, ST(17));
getURL (_local1, "_blank");
}
}
function BuyRelease() {
Register_onRelease(1);
}
function AddKisses(Start, Num, YY, Dia, Name, Cost, Type, UserNo, Ofset) {
Dia.coins = Dia.txt1.attachMovie("coins", "coins" + _root.depth, _root.depth++, {_x:NX(86), _y:NY(YY + 30), _xscale:SY(0.8), _yscale:SY(0.8)});
createTextNoWrap(Dia.txt1, NX(36), NY(YY + 3), NX(90), NY(52), (Name + newline) + Cost, 2105376, 0, 100, 0, 18, "left", 1);
if (Num > 5) {
Num = 5;
}
var _local5 = Start;
while (_local5 < kssa.length) {
if ((Num--) == 0) {
break;
}
var _local3 = createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
Dia.Kiss.push(_local3);
_local3.createEmptyMovieClip("k", _root.depth++);
_local3.n = kssa[_local5];
if (((_local5 == 19) && (Macros.SetKiss != undefined)) && (Macros.SetKiss != "Snow")) {
_local3.n = Macros.SetKiss;
}
if ((_local5 == 18) && ((w_Powers[1] & 16777216) & (w_Mask[1] ^ 4294967000))) {
_local3.n = "Snow";
}
_local3.c = Cost;
_local3.b = UserNo;
_local3.Type = Type[_local5 - Start];
if (!_local3.Type) {
_local3.Type = Type;
}
_local3.k._xscale = NX(100);
_local3.k._yscale = NY(100);
_local3.k.loadMovie(SmilieUrl("t" + _local3.n, "ks"));
_local3.k._lockroot = true;
_local3._x = NX(143) + (NX(95) * (_local5 - Start));
_local3._y = NY(YY);
_local3.onRelease = function () {
HintOff();
if (w_coins < this.c) {
Register_onRelease(1);
} else {
BlowKiss(this);
}
};
_local3.onRollOver = function () {
trace("KKK=" + this.Type);
var _local2 = ST(207) + " ";
if (this.Type == 2) {
_local2 = _local2 + (ST(150) + ":");
}
if (this.Type == 3) {
_local2 = _local2 + ST(209);
}
if (this.Type == 4) {
_local2 = _local2 + ST(210);
}
_local2 = _local2 + this.n;
Hint(0, 0, _local2, true, 0, nd, NX(200), this);
};
_local3.onRollOut = function () {
HintOff();
};
_local5++;
}
return(80);
}
function mcBuystuffbackground_close() {
CloseAd();
var _local1 = mcBuystuffbackground.Dia;
_local1.avc.Delete();
removeMovieClip(_local1.mcmore);
DeleteBuystuffAvs();
removeMovieClip(PassFieldbackground);
removeMovieClip(Messfldbackground);
removeMovieClip(tXatsbackground);
removeMovieClip(tTimebackground);
removeMovieClip(_local1.txt1);
removeMovieClip(_local1.coins);
i = 0;
while (i < _local1.Kiss.length) {
removeMovieClip(_local1.Kiss[i]);
i++;
}
_local1.mcok.But.Delete();
_local1.mcgo.But.Delete();
_local1.mctrade.But.Delete();
CoinB.But.Delete();
_local1.Delete();
DialogOpen = 0;
}
function K_Can_onRelease() {
mcBuystuffbackground_close();
}
function RemoveCR() {
var _local2 = this;
i = 0;
while (i < _local2.text.length) {
var _local3 = _local2.text.charAt(i);
if ((_local3 == "\r") || (_local3 == ">")) {
_local2.text = _local2.text.substr(0, i) + _local2.text.substr(i + 1);
}
if ((this.AT == "@") && (_local3 == "\"")) {
_local2.text = (_local2.text.substr(0, i) + "@") + _local2.text.substr(i + 1);
}
i++;
}
}
function BlowKiss(Info) {
var _local3 = new XML();
var _local1;
_local1 = _local3.createElement("a");
_local1.attributes.p = PassField.text;
_local1.attributes.m = Messfld.text;
_local1.attributes.k = Info.n;
_local1.attributes.x = xInt(tXats.text);
_local1.attributes.s = xInt(tTime.text);
if (Info.n == "T") {
if (_local1.attributes.x < 0) {
return(undefined);
}
if (_local1.attributes.s < 0) {
return(undefined);
}
if ((_local1.attributes.s == 0) && (_local1.attributes.x < 10)) {
return(undefined);
}
if ((_local1.attributes.s == 0) && (_local1.attributes.x == 0)) {
return(undefined);
}
}
if (Info.Type == 2) {
_local1.attributes.b = 1;
} else if (Info.Type == 3) {
_local1.attributes.b = Info.b;
} else if (Info.Type == 4) {
_local1.attributes.f = Info.b;
}
_local3.appendChild(_local1);
socket.send(_local3);
trace("BlowKiss:" + _local3);
GeneralMessage("", ST(211));
}
function IMtoId(Name, Im) {
Name = (String(Im) + "$") + Name;
if (ImCount == undefined) {
ImCount = 1999800000 /* 0x773286C0 */;
ImHash = new Object();
}
if (xInt(ImHash[Name]) > 0) {
return(ImHash[Name]);
}
ImHash[Name] = ImCount;
return(ImCount++);
}
function StripTags(s) {
var _local2 = s.split("<");
var _local1 = 1;
while (_local1 < _local2.length) {
var _local3 = _local2[_local1].split(">");
if (_local3[1] == undefined) {
_local2[_local1] = "";
} else {
_local2[_local1] = _local3[1];
}
_local1++;
}
return(searchreplace(" ", " ", _local2.join("")));
}
function ImInviteAll() {
if (!ImInit) {
var _local4 = PageUrl(6);
getURL (_local4, "_blank");
UrlPopup(ST(144), _local4, ST(145));
return(undefined);
}
if ((ImInfo[128] == undefined) && (ImInfo[129] == undefined)) {
GeneralMessage("", ST(146));
return(undefined);
}
var _local2 = 0;
var _local3 = Users.length;
var _local1 = 0;
while (_local1 < _local3) {
if (Users[_local1].onsuper && (Users[_local1].Location)) {
_local2++;
ViewprofileImInv(Users[_local1].u);
}
_local1++;
}
GeneralMessage("", ST(147, _local2));
}
function doxatMsg(Text) {
var _local5;
var _local8;
var _local21 = ImCount;
var _local10;
var _local3;
var _local7;
var _local2;
var _local4 = Text.split(",");
_local2 = _local4[0];
_local3 = xInt(_local4[1]);
_local7 = _local4[2];
_local10 = StripTags(_local4[3]);
if (_local3 < 128) {
return(undefined);
}
if (_local2 == "s") {
if (_local3 == 129) {
mcLoad.ImAimDoAd();
}
}
if (_local2 == "r") {
ImInfo[_local3] = undefined;
}
if (_local2 == "i") {
ImInit = true;
return(undefined);
}
if ((_local2 == "r") || (_local2 == "s")) {
var _local1 = 0;
while (_local1 < Users.length) {
if (Users[_local1].Location == _local3) {
DeleteOneUserMc(_local1);
if (_local2 == "r") {
Users[_local1].onsuper = false;
_local1++;
} else {
Users.splice(_local1, 1);
}
}
_local1++;
}
return(undefined);
}
if ((((_local2 != "c") && (_local2 != "m")) && (_local2 != "u")) && (_local2 != "o")) {
return(undefined);
}
if ((_local10 == "") || (_local10 == undefined)) {
_local10 = _local7;
}
if ((_local7 == "") || (_local7 == undefined)) {
return(undefined);
}
if (ImInfo[_local3].Email == _local7) {
_local5 = w_userno;
} else if (_local2 != "u") {
_local5 = IMtoId(_local7, _local3);
}
if (_local5 != undefined) {
_local8 = FindUser(_local5);
if ((_local8 < 0) && (_local2 != "u")) {
_local8 = -1 + Users.push({u:_local5, n:NameNoXat(_local10), registered:_local7, Location:_local3});
}
}
if ((_local5 == w_userno) && (_local2 != "u")) {
return(undefined);
}
switch (_local2) {
case "c" :
Users[_local8].n = _local10;
var _local9 = _local4[4];
if (_local9 == "null") {
_local9 = SmilieUrl("AimAv", "sm");
_local9 = Replace(_local9, "swf", "png");
}
Users[_local8].a = _local9;
Users[_local8].onsuper = _local4[5].toLowerCase().indexOf("offline") == -1;
DeleteOneUserMc(_local8);
Users[_local8].MSNcid = xInt(_local4[6]);
return(undefined);
case "m" :
_local4.splice(0, 4);
Text = StripTags(_local4.join(","));
break;
case "u" :
if (ImInfo == undefined) {
ImInfo = new Object();
}
if (ImInfo[_local3].Email == undefined) {
NetworkSendMsg(3, (("/I," + _local3) + ",") + _local7, 0, 0, 3);
}
ImInfo[_local3] = {Email:_local7};
return(undefined);
case "o" :
}
var _local11 = _local5;
if (_local5 == w_userno) {
_local11 = TabUser();
}
var _local6 = TabAdd(_local11, 16777215, 9, IM_onRelease, IM_onDelete);
tabs[_local6].IMtype = _local3;
if (_local2 == "o") {
if (tabs[_local6].ImIndex == undefined) {
UpdateTabs(_local6);
DoUpdateMessages = true;
ScrollDown = true;
}
tabs[_local6].ImIndex = _local4[6];
return(undefined);
}
if (TabSelected() != _local6) {
ColorTab(_local6, 39168);
}
UpdateTabs();
if (TabSelected() != _local6) {
GlowTab(_local6);
}
Message.push({n:0, t:Text, u:_local5, s:2, d:_local11});
DoMessageSnd = true;
DoUpdateMessages = true;
ScrollDown = true;
}
function ImPostMessage(Text, IMtype, d) {
if (!d) {
d = TabUser();
}
var _local1 = FindUser(d);
Message.push({n:0, t:Text, u:w_userno, s:2, d:d});
if (IMtype == undefined) {
IMtype = Users[_local1].Location;
}
if (IMtype == 128) {
mcLoad.IMxatsendMsg(Text, Users[_local1].registered);
} else {
sending_lc3.send("a" + fromxat, "onMsg", Text, Users[_local1].registered);
}
DoUpdateMessages = true;
ScrollDown = true;
}
function IM_onRelease(TabNumber) {
HintOff();
SetVisitorsTab();
DoUpdateMessages = true;
DoBuildUserListScrollUp = true;
ScrollDown = true;
UpdateTabs(TabNumber);
ColorTab(TabNumber, 16777215);
}
function IM_onDelete(TabNumber) {
HintOff();
SetVisitorsTab();
var _local2 = tabs[TabNumber].ImIndex;
tabs.splice(TabNumber, 1);
if (w_useroom == w_room) {
UpdateTabs(0);
ColorTab(0, 16777215);
} else {
UpdateTabs(1);
ColorTab(1, 16777215);
}
DoUpdateMessages = true;
DoBuildUserList = true;
ScrollDown = true;
}
function PowersDialog(muserid, strid) {
function onPowersScrollChange() {
var _local1 = ((powersinc - bph) + 4) + (((powersincc % 2) == 1) ? 30 : 0);
if (_local1 < 0) {
_local1 = 0;
}
bpowersscrollmc.Scr_size = _local1;
var _local2 = bpowersscrollmc.Scr_position;
mcpowersback._y = -_local2;
}
DialogClose();
DialogOpen = 7;
sM = w_Mask.slice();
powersinc = 0;
powersincc = 0;
userid = muserid;
boutin = false;
_root.depth = _root.depth + l_Diag;
mcpowersbackground = new xDialog(NX(120), NY(30), NX(400), NY(380), (" " + strid) + " Powers", nd, 0, mcpowersbackground_close);
var _local8 = mcpowersbackground.Dia;
_local8.mcclose = new xBut(NX(240), NY(370), NX(160), NY(30), ST(45), PowersClose);
_local8.mcgetpowers = new xBut(NX(345), NY(320), NX(160), NY(30), "Get Powers", GetPowers);
AttachBut(_local8.mcgetpowers, "pwr");
var _local10 = NX(380);
var bph = (NY(240) - 40);
var _local11 = NX(130);
var _local12 = NY(30) + 40;
mcpowersbackb = AddBackground(_local11, _local12, _local10, bph);
mcpowersback = mcpowersbackb.createEmptyMovieClip("mc" + _root.depth, _root.depth++);
mcpowersback.Width = _local10;
mcpowersbackmask = AddBackground(_local11 + 1, _local12 + 1, (_local10 - 2) - NX(16), bph - 2, 0);
mcpowersback.setMask(mcpowersbackmask);
bpowersscrollmc = new xScroll((_local11 + _local10) - NX(16), _local12, NX(16), bph, NX(16), NX(32), 30, 1000, 0, onPowersScrollChange);
var _local4;
var _local5;
var _local6;
var _local7;
if (w_userno == userid) {
_local4 = true;
_local5 = w_Powers;
_local6 = PowDecode(w_PowerO);
_local7 = ((w_Mask[0] != undefined) ? (w_Mask) : undefined);
} else {
_local5 = Users[FindUser(userid)].UnmaskedPowers;
_local6 = PowDecode(Users[FindUser(userid)].PowerO);
_local7 = Users[FindUser(userid)].Powers;
}
j = 0;
while (j < _local5.length) {
var _local3 = 0;
while (_local3 < 32) {
if (((((_local3 == 0) && (j == 0)) && (_local4)) && (w_ALLP)) || (((!((_local3 == 0) && (j == 0))) && ((_local5[j] >> _local3) & 1)) && (_local3 < (pssa.length - 1)))) {
AddPower((j * 32) + _local3, ((_local7[j] ^ 4294967000) >> _local3) & 1, _local4, _local6[(j * 32) + _local3]);
}
_local3++;
}
j++;
}
var _local9 = FindUser(userid);
if ((Users[_local9].coins != undefined) && (Users[_local9].days != undefined)) {
_local8.days = this.attachMovie("star", "star", _root.depth++, {_x:NX(140), _y:NY(280), _xscale:SX(), _yscale:SY()});
createTextNoWrap(_local8.days, 30, -10, 130, 50, ST(204, Users[_local9].days), 2105376, 0, 100, 0, 26, "center", 1);
_local8.coins = this.attachMovie("coins", "coins", _root.depth++, {_x:NX(340), _y:NY(280), _xscale:SX(), _yscale:SY()});
createTextNoWrap(_local8.coins, 30, -10, 130, 50, Users[FindUser(userid)].coins + " xats", 2105376, 0, 100, 0, 26, "center", 1);
}
var _local13;
if (w_userno == userid) {
if (YC) {
vt = xInt(w_d1) - YC;
if (vt < 0) {
vt = 0;
}
vt = xInt((vt / 86400) + 0.3);
if (vt == 0) {
_local13 = "If you had powers they will return when you have days";
}
}
}
if (Users[_local9].debug != undefined) {
_local13 = Users[_local9].debug;
}
if (_local13 != undefined) {
_local8.txt1 = createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
createTextNoWrap(_local8.txt1, NX(120), NY(336), NX(400), 50, _local13, 2105376, 0, 100, 0, 26, "center", 1);
}
_root.depth = _root.depth - l_Diag;
}
function AddPower(powi, powon, self, qty) {
var _local2;
if (self) {
_local2 = mcpowersback.createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
_local2 = _local2.attachMovie("checkbox", "mc" + _root.depth, _root.depth++);
_local2._x = 10;
_local2._y = powersinc + 8;
_local2.onPress = OnPowerCheck;
_local2.Bit = powi;
_local2.tick._visible = powon;
}
var _local3 = mcpowersback.attachMovie("textWrapperClip2", "m" + _root.depth, _root.depth);
_local3._x = 5;
SmB = true;
var _local4 = "";
if (((powi != 0) && (qty != undefined)) && (qty != 0)) {
_local4 = (" [" + qty) + "]";
}
var _local6 = 8 + AddMessageToMc(_local3, 1, ((("(" + pssa[powi + 1]) + ") <b> ") + pssa[powi + 1]) + _local4, 30, mcpowersback.Width - 30, powersinc, userid);
SmB = undefined;
if ((powersincc % 2) == 1) {
_local3._x = _local3._x + (NX(360) / 2);
_local2._x = _local2._x + (NX(360) / 2);
powersinc = powersinc + _local6;
}
powersincc++;
}
function OnPowerCheck() {
boutin = true;
this.tick._visible = !this.tick._visible;
trace((this.Bit + "=") + this.tick._visible);
if (w_Mask[0] == undefined) {
w_Mask = new Array(0, 0);
}
var _local2 = xInt(this.Bit / 32);
var Bit = (1 << (this.Bit % 32));
if (this.tick._visible) {
w_Mask[_local2] = w_Mask[_local2] & (Bit ^ 4294967000);
} else {
w_Mask[_local2] = w_Mask[_local2] | Bit;
}
MainSolWrite("w_Mask", w_Mask);
}
function PowersClose() {
if (boutin) {
lb = "n";
DoUpdate = true;
NetworkClose();
logoutbutonPress();
}
mcpowersbackground_close();
DialogOpen = 0;
if (sM[0] != w_Mask[0]) {
w_friendlist2[w_userno] = undefined;
}
}
function GetPowers() {
PowersClose();
var _local1 = usedomain + "/getpowers";
getURL (_local1, "_blank");
UrlPopup(ST(8), _local1);
}
function mcpowersbackground_close() {
var _local1 = mcpowersbackground.Dia;
_local1.mcclose.But.Delete();
_local1.mcgetpowers.But.Delete();
bpowersscrollmc.Delete();
removeMovieClip(mcpowersbackb);
removeMovieClip(mcpowersbackmask);
removeMovieClip(_local1.coins);
removeMovieClip(_local1.days);
removeMovieClip(_local1.txt1);
_local1.Delete();
DialogOpen = 0;
}
function PowDecode(str) {
if ((str == undefined) || (str.length == 0)) {
return(undefined);
}
var _local5 = new Array();
var _local4 = str.split("|");
var _local1 = 0;
while (_local1 < _local4.length) {
var _local3 = _local4[_local1].split("=");
var _local2 = xInt(_local3[1]);
if (_local2 == 0) {
_local2 = 1;
}
_local5[_local3[0]] = _local2 + 1;
_local1++;
}
return(_local5);
}
function UpdateMessages(All, Scrolling) {
if (Scrolling == undefined) {
Scrolling = false;
}
var _local13;
var _local4;
var _local14;
var _local10 = 0;
var _local2 = new Array();
var _local12 = Message.length;
var _local5 = 0;
while (_local5 < _local12) {
var _local1 = Message[_local5];
if (Scrolling == false) {
_local1.New = false;
}
if (((_local1.New == false) && (_local1.ignored != true)) && (_local1.t.length > 0)) {
if (TabIsPrivate()) {
if ((((TabUser() == _local1.u) || (w_userno == _local1.u)) && (_local1.d == TabUser())) || (_local1.u == 0)) {
_local10++;
_local2.push(_local5);
}
} else if ((_local1.s & 2) == 0) {
_local10++;
_local2.push(_local5);
}
}
_local1.mc._visible = false;
_local5++;
}
var _local21 = Math.round(tph / 35) - 2;
if (_local21 < 0) {
_local21 = 0;
}
var _local22 = (_local10 - _local21) * 100;
if (_local22 < 0) {
_local22 = 0;
}
mscrollmc.Scr_size = _local22;
if (ScrollDown && (Scrolling == false)) {
mscrollmc.__set__position(mscrollmc.Scr_size);
ScrollDown = false;
}
if ((mspos == undefined) || (!Scrolling)) {
mspos = mscrollmc.Scr_position;
DoUpdateMessages = false;
} else {
mspos = (mspos + mscrollmc.Scr_position) / 2;
var _local23 = Math.abs(mspos - mscrollmc.Scr_position);
if (_local23 < 10) {
mspos = mscrollmc.Scr_position;
DoUpdateMessages = false;
}
SkipSmilies = Scrolling;
}
var _local11 = (_local21 - 0.001) + ((_local10 - _local21) * (mspos / mscrollmc.Scr_size));
if (_local11 < 0) {
_local11 = 0;
}
if (_local11 >= (_local10 - 0.001)) {
_local11 = _local10 - 0.001;
}
var _local19 = _local11 - int(_local11);
var _local16 = int(_local11);
_local5 = _local16;
yc2 = 0;
var _local17 = _local10;
var _local20 = 99;
while (_local17 > 0) {
_local17--;
var _local3 = _local5;
_local5--;
if (_local3 < 0) {
_local3 = int(_local11) - _local3;
}
DeleteNumber = xInt(Message[_local2[_local3]].n);
var _local7 = FindUser(Message[_local2[_local3]].u);
if (_local7 == -1) {
_local7 = 0;
}
if (Message[_local2[_local3]].u == 0) {
_local13 = -1;
_local4 = ST(14);
_local14 = 0;
} else {
_local13 = CleanAv(Users[_local7].a);
_local4 = Users[_local7].n;
if (_local4.substr(0, 1) == "$") {
_local4 = _local4.substr(1);
}
var _local9 = "";
if (Users[_local7].u != 0) {
_local9 = "<l>";
}
_local4 = ((_local9 + "<c> ") + _local9) + _local4;
if (Users[_local7].h.length > 6) {
_local4 = _local4 + " <home>";
}
if ((((w_owner || (w_moderator)) && (Message[_local2[_local3]].n != 0)) && (Message[_local2[_local3]].n != 1)) && (!Message[_local2[_local3]].p)) {
_local4 = _local4 + " <del>";
}
_local14 = 0;
}
if (_local5 < -1) {
_local16++;
}
if (Message[_local2[_local3]].mc != undefined) {
var _local15 = Message[_local2[_local3]].mc.mch;
yc2 = yc2 + _local15;
} else {
AddMessageToList(_local13, _local4, _local14, _local2[_local3], _local7);
Message[_local2[_local3]].mc._visible = false;
}
if ((yc2 - (Message[_local2[_local16]].mc.mch * (1 - _local19))) > tph) {
_local20 = 0;
break;
}
}
if (yc2 >= tph) {
var _local6 = tph - ((_local19 - 1) * Message[_local2[int(_local11)]].mc.mch);
_local6 = _local6 - 4;
var _local8 = int(_local11);
while (_local8 >= 0) {
var _local1 = Message[_local2[_local8]];
_local6 = _local6 - _local1.mc.mch;
if ((_local1.mc.mch == undefined) || (_local6 < (-_local1.mc.mch))) {
if (_local2[_local8] < (_local12 - 30)) {
removeMovieClip(_local1.mc);
_local1.mc = undefined;
}
break;
}
_local1.mc._y = _local6;
_local1.mc._visible = true;
_local8--;
}
} else {
var _local6 = 0;
var _local8 = 0;
while (_local8 < _local10) {
if ((_local6 > tph) || (_local6 == undefined)) {
break;
}
Message[_local2[_local8]].mc._y = _local6;
Message[_local2[_local8]].mc._visible = true;
_local6 = _local6 + Message[_local2[_local8]].mc.mch;
_local8++;
}
}
var _local8 = 0;
while (_local8 < _local12) {
if (Message[_local8].mc._visible == false) {
removeMovieClip(Message[_local8].mc);
Message[_local8].mc = undefined;
}
_local8++;
}
SkipSmilies = false;
}
function AddMessageToList(Avatar, UserName, DeleteOk, v, userid) {
color = 16777215 /* 0xFFFFFF */;
var _local11 = Message[v].t;
var u = Message[v].u;
var _local4 = 0;
var h;
var _local8;
var _local3 = mctextbackground.attachMovie("textWrapperClip2", "mc_" + _root.depth, _root.depth++);
_local3._x = (av1._x = 5);
if (w_userno == u) {
h = ST(140);
_local8 = function () {
HintOff();
GotoProfile(w_userno);
};
} else if (u == 0) {
h = ST(14);
_local8 = function () {
HintOff();
HelpDialog();
};
} else {
h = ST(140);
_local8 = function () {
if (Key.isDown(16)) {
PressUserName(u);
} else {
GotoProfile(u);
}
};
}
var _local5 = FindUser(u);
a = _local3;
a._x = 40;
var _local9;
if (Users[_local5].Powers[0] & 2097152) {
var _local6 = UserName.split("(glow");
if (_local6[1] != undefined) {
_local9 = 65280;
_local6 = _local6[1].split(")");
var _local10 = _local6[0].split("#");
if (_local6[0] != "") {
_local9 = DecodeColor(_local10[_local10.length - 1], ((Users[_local5].Powers[0] & 8192) ? true : false), ((Users[_local5].Powers[0] & 16384) ? true : false), ((Users[_local5].Powers[0] & 32768) ? true : false), ((Users[_local5].Powers[0] & 65536) ? true : false));
}
}
}
_local4 = AddMessageToMc(a, 0, UserName, 0, textPaneWidth, 0, u, userid, undefined, _local9, Message[v].pb);
_local4 = _local4 + AddMessageToMc(a, 1, _local11, 0, textPaneWidth, _local4, u);
if (_local4 < 35) {
_local4 = 35;
}
yc = yc + (_local4 + 4);
_local3.avc = new xAvatar(_local3, Avatar, h, _local8, Users[_local5].VIP, Users[_local5].aFlags, Users[_local5].Powers);
_local3.avc.Av._x = -35;
_local3.avc.Av._y = 5;
_local3.avc.Av.h = h;
if (Avatar.substr(0, 1) != "(") {
_local3.avc.Av.Zm = (Users[_local5].Powers[0] & 16) || (w_Powers[0] & 16);
}
_local3.avc.Av.onRollOver = function () {
Hint(0, 0, this.h, true, 0, ud, 0, this);
this.b.c.RollOver();
if (!this.Zm) {
return(undefined);
}
this._xscale = 267;
this._yscale = 267;
this._y = -10;
this._parent.swapDepths(_root.depth++);
this.g._visible = false;
};
if (_local3.avc.Av.Zm) {
_local3.avc.Av.onRelease = (_local3.avc.Av.onReleaseOutside = (_local3.avc.Av.onRollOut = function () {
this._xscale = 100;
this._yscale = 100;
this._y = 0;
this.g._visible = true;
HintOff();
}));
}
Message[v].mc = _local3;
Message[v].mc.mch = _local4 + 4;
yc2 = yc2 + (_local4 + 4);
}
function AddMessageToMc(mcin, id, str, Left, Right, yOfst, UserNo, userid, color, glowc, NameHint) {
if (color == undefined) {
color = 0;
}
var _local25 = Right - Left;
xPos = Left;
var _local23 = 0;
var _local21 = 16;
var _local26 = false;
var _local33 = false;
var _local28;
var _local10;
_local10 = new TextFormat();
_local10.align = "left";
_local10.bold = (id & 1) != 0;
if ((id == 1) && (UserNo == 0)) {
_local10.italic = true;
}
_local10.font = "_sans";
_local10.size = 14;
var _local32 = int(_local10.size * 0.4);
var _local3;
var _local12;
var _local34 = 0;
var _local8 = new Array();
_local8 = str.split(" ");
if (ST(85) == "RTL") {
_local8.reverse();
}
if (glowc != undefined) {
mcin.glowa = new Array();
mcin.glowf = new flash.filters.GlowFilter(glowc, 0.7, 3, 3, 3, 3, false, false);
mcin.glowa.push(mcin.glowf);
}
n = 0;
for ( ; n < _local8.length ; n++) {
var LocData;
var LocFunc;
var _local5;
var _local31;
_local10.color = color;
_local3 = mcin;
_local10.url = "";
if (!(id & 2)) {
_local10.underline = false;
}
if (_local8[n].substr(0, 3) == "<l>") {
_local33 = true;
_local8[n] = _local8[n].substr(3);
}
_local26 = _local33;
_local28 = false;
if (_local8[n].substr(0, 3) == "<s>") {
_local28 = true;
_local8[n] = _local8[n].substr(3);
}
var _local15 = _local8[n].toLowerCase();
if ((_local15 == "<b>") || (_local15 == "</b>")) {
_local10.bold = true;
} else {
var _local4 = Smilie(_local3, _local15, UserNo, userid, id);
if (_local15.charAt(0) == "_") {
_local8[n] = _local8[n].substr(1);
}
if (_local4 != undefined) {
var _local30;
_local34++;
_local12 = undefined;
_local30 = String(_local4).indexOf("home") >= 0;
var _local24 = (String(_local4).indexOf("home") >= 0) || (String(_local4).indexOf("delete") >= 0);
if ((!_local24) && (_local34 > 10)) {
removeMovieClip(_local4);
continue;
}
_local4._x = xPos + xInt(_local4.x);
_local4._y = _local4._y + ((_local23 + yOfst) + 3);
xPos = xPos + 20;
if (_local24) {
xPos = xPos - 5;
if (xPos > (Right - 10)) {
_local4._x = _local4._x - (xPos - Right);
if (_local30) {
_local4._x = _local4._x - 14;
}
}
}
if (String(_local4).indexOf("chatter") >= 0) {
_local12 = _local4;
xPos = xPos - 8;
}
if (String(_local4).indexOf("lock") >= 0) {
xPos = xPos - 10;
_local4._y = _local4._y + 3;
}
if (String(_local4).indexOf("man") >= 0) {
xPos = xPos - 12;
}
} else if (_local15 == "<c>") {
} else {
var _local19 = WordIsLink(_local8[n]);
if (_local19) {
if (((((((_local15.indexOf("youtube.com") >= 0) || (_local15.indexOf("photobucket.com") >= 0)) || (_local15.indexOf("veoh.com") >= 0)) || (_local15.indexOf("vids.myspace.com") >= 0)) || (_local15.indexOf("mogulus.com") >= 0)) || (_local15.indexOf("video.google.") >= 0)) || (_local15.indexOf("live.yahoo.com") >= 0)) {
LocData = urlencode(_local19.substr(7));
_local5 = (PageUrl(4) + "&m=") + LocData;
LocFunc = function () {
return(mcLoad.OpenMedia(this.LocData));
};
_local31 = _local19;
} else {
_local15 = _local19;
_local5 = 1;
}
}
if (_local15 == "doodle") {
_local5 = PageUrl(2);
LocFunc = function () {
return(mcLoad.OpenDoodle());
};
}
if (_local15 == "trade") {
_local5 = PageUrl(30008);
LocFunc = function () {
return(mcLoad.OpenByN(30008));
};
}
if (_local15.substr(0, 4) == "wiki") {
_local5 = "http://xat.com/wiki";
}
if (_local15.substr(0, 7) == "twitter") {
_local5 = "http://xat.com/twitter";
}
if (_local15.substr(0, 6) == "search") {
_local5 = "http://xat.com/search";
}
if (_local15.substr(0, 5) == "power") {
_local5 = "http://xat.com/GetPowers";
}
if (_local15 == "myspace") {
_local5 = "http://myspace.com/xatcom";
}
if (_local15.substr(0, 4) == "smil") {
_local5 = PageUrl(5);
LocFunc = function () {
return(mcLoad.OpenSmilies());
};
}
if ((!ImInit) && (((_local15 == "msn") || (_local15 == "aim")) || (_local15 == "messenger"))) {
_local5 = PageUrl(6);
}
if (_local15.substr(0, 8) == "register") {
_local5 = Register_Link(1);
LocFunc = 2;
}
if (_local15 == "login") {
_local5 = Register_Link(0);
LocFunc = 2;
}
if ((((_local15 == "buy") || (_local15.substr(0, 4) == "coin")) || (_local15 == "xats")) || (_local15.substr(0, 5) == "subsc")) {
_local5 = Register_Link(0) + "&b=1";
}
if (LocFunc == 2) {
LocFunc = function () {
return(mcLoad.StartMedia("L" + this.Url));
};
}
if (_local5 && (id & 1)) {
if (_local5 == 1) {
_local5 = _local15;
}
_local10.url = _local5;
_local10.underline = true;
_local3 = mcin.createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
_local3.Url = _local5;
_local3.Url2 = _local31;
_local3.LocFunc = LocFunc;
_local3.LocData = LocData;
_local3.onPress = function () {
var _local3 = Key.isDown(16) || (((FlagBits & f_NoList) != 0) && (!(xc & 2048)));
if (!_local3) {
this.LocFunc();
}
if ((_local3 || (this.LocFunc == undefined)) || (!(xc & 2048))) {
var _local2 = this.Url;
if (_local3 && (this.Url2)) {
_local2 = this.Url2;
}
_local2 = xatlinks(_local2);
if (Key.isDown(16)) {
_local2 = _local2 + "&f=1";
}
UrlPopup(ST(8), _local2, ST(17));
getURL (_local2, "_blank");
}
};
}
if (_local26) {
_local3 = mcin.createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
_local3.UserNo = UserNo;
if (UserNo == 0) {
_local3.UserNo = w_userno;
}
_local3.onPress = PressUserName;
_local3.nh = NameHint;
_local3.onRollOver = HintUserName;
_local3.onRollOut = HintOff;
if (id != 0) {
_local26 = false;
}
}
var _local7 = (("mcTxt" + id) + "_") + n;
_local3.createTextField(_local7, _root.depth++, xPos, (_local23 + yOfst) + 3, _local25, _local21 * 1.3);
if (glowc != undefined) {
_local3.filters = mcin.glowa;
}
_local3[_local7].text = _local8[n];
_local3[_local7].setTextFormat(_local10);
var _local16 = _local3[_local7].textWidth;
_local3[_local7]._width = _local16 + 5;
if (_local12 != undefined) {
Wordwidth = Wordwidth + 20;
}
if ((((xPos > 0) && (_local16 > (_local25 - xPos))) && (userid == undefined)) && ((id & 2) != 2)) {
var _local22 = 0;
if (_local12 != undefined) {
_local12._x = Left;
_local12._y = _local12._y + _local21;
_local22 = 12;
}
_local3[_local7]._x = Left + _local22;
_local3[_local7]._y = _local3[_local7]._y + _local21;
_local23 = _local23 + _local21;
xPos = ((Left + _local32) + _local16) + _local22;
} else {
_local12 = undefined;
xPos = xPos + (_local32 + _local16);
}
if (_local28) {
var _local9 = _local7 + "z";
var _local6 = mcin.createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
_local6.createTextField(_local9, _root.depth++, _local3[_local7]._x, _local3[_local7]._y, _local25, _local21 * 1.3);
var _local18 = "!#%\u00A3!@?*";
var _local14;
var _local13 = 0;
_local6[_local9].text = "";
_local14 = 0;
while (_local14 < _local15.length) {
_local6[_local9].text = _local6[_local9].text + _local18.charAt(_local13++);
if (_local13 >= _local18.length) {
_local13 = 0;
}
_local14++;
}
_local6[_local9]._width = _local16 + 5;
_local6[_local9].backgroundColor = 9474192 /* 0x909090 */;
_local6[_local9].background = true;
_local6[_local9].setTextFormat(_local10);
_local6.onPress = function () {
removeMovieClip(this);
};
}
}
}
}
return(_local23 + _local21);
}
function PressUserName(UserNo) {
if (UserNo == undefined) {
UserNo = this.UserNo;
}
HintOff();
if (UserNo == 3) {
ImInviteAll();
return(undefined);
}
if (UserNo == w_userno) {
CreateProfile();
} else if (this.UserNo == 4294967000) {
} else {
CreateViewProfileDialog(UserNo);
}
}
function HintUserName() {
var _local4 = 0;
var _local3 = 8;
var _local2;
if (String(this).indexOf("userb") > 0) {
_local4 = 1;
_local3 = 3;
}
if (w_userno == UserNo) {
_local2 = ST(18);
} else if (this.UserNo == 3) {
if (ImInit) {
_local2 = ST(141);
} else {
_local2 = ST(142);
}
} else {
_local2 = ST(16, FixLI(GetUsername(this.UserNo, 1, 1, this.nh)));
}
if (_local2) {
Hint(0, _local3, _local2, true, _local4, nd, 0, this);
}
}
function GotPower(Pwr, Powers) {
if (Pwr == undefined) {
return(false);
}
var _local1 = pssh[Pwr];
if (_local1 == undefined) {
_local1 = topsh[Pwr];
}
if (_local1 == undefined) {
return(true);
}
return((Powers[xInt(_local1 / 32)] & (1 << (_local1 % 32))) != 0);
}
function PowSm(mc, Args, ofst, Powers) {
if (Args[1] == undefined) {
return(undefined);
}
if (!(mc.SF & 2)) {
return(undefined);
}
var _local19 = Args.length;
var _local11 = true;
var _local1;
var _local4 = new Object();
var _local9;
var _local3 = "";
var _local12;
var _local14;
var _local15;
var _local16 = 0;
var _local13 = 1;
while (_local13 <= _local19) {
var _local2 = Args[_local13].toLowerCase();
_local1 = effectsR[_local2];
if (_local1 != undefined) {
_local4[_local1] = true;
} else {
_local1 = effects[_local2];
if (_local1 != undefined) {
_local4[_local2] = true;
} else {
_local1 = backsR[_local2];
if (_local1 != undefined) {
_local9 = _local1;
} else {
if (_local2.length == 1) {
_local1 = backs[_local2];
}
if (_local1 != undefined) {
_local9 = _local2;
} else if (((smih[_local2] && (_local2.length != 1)) || (_local2 == "6")) || (_local2 == undefined)) {
for (var _local17 in _local4) {
_local1 = effects[_local17];
if (!GotPower(_local1, Powers)) {
_local4[_local17] = "";
}
}
if (_local11) {
_local15 = _local4;
if (GotPower(backs[_local9], Powers)) {
if (_local9.length == 1) {
mc.ST = "2bkg" + _local9;
} else {
mc.ST = backs[_local9];
}
}
mc.SC = _local14;
if (_local15.f) {
mc.SP = 4;
}
if (_local15.y) {
mc.SC = "y";
}
} else {
_local3 = _local3 + ",";
_local1 = 1;
if (_local4.f) {
_local1 = _local1 | 4;
}
if (_local4.y) {
_local1 = _local1 | 2;
}
_local3 = _local3 + _local1;
}
if ((_local2 == "6") && (mc.SC == undefined)) {
mc.SC = 15728640 /* 0xF00000 */;
}
_local14 = undefined;
_local4 = new Object();
_local12 = false;
_local16++;
if (_local16 >= 6) {
break;
}
if ((!(Powers[0] & 1)) || (_local2 != "allpowers")) {
_local1 = xInt(pssh[_local2]);
if ((_local1 < 36) && (!topsh[_local2])) {
break;
}
if (!GotPower(_local2, Powers)) {
break;
}
}
if (!_local11) {
_local3 = _local3 + ",";
}
_local3 = _local3 + (_local2 + ",");
_local11 = false;
} else {
var _local8 = false;
if (_local2.length == 6) {
_local1 = parseInt(_local2, 16);
_local1 = _local1.toString(16);
_local1 = "000000" + _local1;
_local1 = _local1.substr(-6, 6);
} else {
_local1 = "";
}
if (_local1 != _local2) {
var _local10 = _local2.length;
var _local5 = 0;
while (_local5 < _local10) {
_local1 = _local2.charAt(_local5);
if ((effects[_local1] == undefined) && (!colorc[_local1])) {
_local8 = true;
break;
}
_local5++;
}
if (!_local8) {
_local5 = 0;
while (_local5 < _local10) {
_local1 = _local2.charAt(_local5);
_local4[_local1] = true;
_local5++;
}
}
}
if (!_local8) {
_local1 = DecodeColor(_local2, ((Powers[0] & 8192) ? true : false), ((Powers[0] & 16384) ? true : false), ((Powers[0] & 32768) ? true : false), ((Powers[0] & 65536) ? true : false));
if (_local1 != undefined) {
_local14 = _local1;
if (!_local11) {
if (_local12) {
_local3 = _local3 + "#";
}
_local12 = true;
_local3 = _local3 + _local14;
}
}
}
if (_local8 && (!_local11)) {
if (_local12) {
_local3 = _local3 + "#";
}
_local12 = true;
_local3 = _local3 + _local2;
}
}
}
}
}
_local13++;
}
if (_local3 != "") {
mc.SE = _local3;
}
if (_local15.i && (Powers[0] & 64)) {
mc._yscale = -100;
mc._y = mc._y + ofst;
}
if (_local15.m && (Powers[0] & 128)) {
mc._xscale = -100;
mc.x = ofst;
}
mc.SA = Args;
}
function Smilie(mc, s, u, userid, Pos) {
var smc;
var _local3;
var _local5 = FindUser(u);
if (_local5 == -1) {
_local5 = 0;
}
if (s.charAt(0) == "#") {
smc = mc.createEmptyMovieClip("mc" + _root.depth, _root.depth++);
var _local11 = smc.attachMovie("Speaker", "Speaker" + _root.depth, _root.depth++);
_local11._width = (_local11._height = 19);
_local11.gotoAndStop(1);
_local11.SoundOff._visible = false;
_local3 = s;
smc.onPress = function () {
ProcessSounds(s, true);
};
}
m = 0;
while (m < smArray.length) {
if (smArray[m] == s) {
do {
if (smArray[m] < 0) {
break;
}
m++;
} while (m < smArray.length);
_local3 = s.toUpperCase();
if (smArray[m] < -1) {
s = ("(" + smArray[m - 1]) + ")";
break;
}
smc = mc.attachMovie(smArray[m - 1], "sm" + _root.depth, _root.depth++);
smc.UserNo = u;
break;
}
do {
if (smArray[m] < 0) {
break;
}
m++;
} while (m < smArray.length);
m++;
}
if (((smc == undefined) && (s.substr(0, 1) == "(")) && (s.substr(s.length - 1, 1) == ")")) {
var _local8;
var t = s.substr(1, s.length - 2);
var _local13 = t.charAt(0) == ">";
if (_local13) {
t = xInt(t.substr(1));
} else {
if (xInt(t) >= 10000) {
t = "";
}
_local8 = t.split("#");
t = _local8[0];
if ((SmB == undefined) && (!SmOk(t, Users[_local5].Powers))) {
t = -1;
}
}
if (((_local8[0] == "hat") && (_local8[1] != undefined)) || (_local8[0] == "glow")) {
t = "none";
}
if ((t != -1) || (_local13)) {
smc = mc.createEmptyMovieClip("m" + _root.depth, _root.depth++);
var _local12 = "";
if (Users[_local5].registered != undefined) {
smc.SF = 1;
}
if (Users[_local5].VIP) {
_local12 = "&r=2";
smc.SF = 2;
}
if (SmB) {
_local12 = "&f=1";
smc.SF = xInt(smc.SR) | 4;
}
smc.UserNo = u;
smc.createEmptyMovieClip("t", _root.depth++);
if ((xInt(t) >= 10128) && (xInt(t) < 20000)) {
smc.t.attachMovie(t, "t", _root.depth++);
} else {
PowSm(smc, _local8, 19, Users[_local5].Powers);
var _local15;
if (_local8.length > 1) {
_local15 = SmilieUrl(t, "sm") + _local12;
} else {
_local15 = SmilieUrl(t, "sm", true) + _local12;
}
if (SkipSmilies != true) {
smc.t.loadMovie(_local15);
} else {
smc.t.u = _local15;
smc.t.d = 12;
smc.t.onEnterFrame = function () {
this.d--;
if (this.d < 0) {
this.onEnterFrame = null;
this.loadMovie(this.u);
}
};
}
}
if (!_local3) {
_local3 = s.toUpperCase();
}
if (_local13) {
_local3 = 0;
if (t == 10200) {
_local3 = " ";
} else {
_local3 = ST(143);
smc.xNum = t;
}
}
}
}
if (s == "<del>") {
smc = mc.attachMovie("delete", "delete" + _root.depth, _root.depth++);
smc._y = 6;
smc.DeleteNumber = DeleteNumber;
smc.onPress = function () {
HintOff();
var _local3 = Message.length;
var _local2 = 0;
while (_local2 < _local3) {
if (Message[_local2].n == this.DeleteNumber) {
Message[_local2].ignored = true;
}
_local2++;
}
RemoveUsersWithNoMessages();
NetworkDeleteMessage(this.DeleteNumber);
DoUpdateMessages = true;
DoBuildUserList = true;
};
_local3 = ST(1);
}
if (s == "<o>") {
smc = mc.attachMovie("chatter", "chatter", _root.depth++);
HatsOff(smc);
smc.onPress = function () {
CreateProfile();
};
}
if (s == "<priv>") {
smc = mc.attachMovie("lock", "lock", _root.depth++);
smc.onRollOver = function () {
Hint(0, 0, ST(20), true, 0, nd, 0, smc);
};
}
if (s == "<i>") {
smc = mc.attachMovie("HelpIcon", "hic", _root.depth++);
smc.ques._visible = false;
}
if (s == "<inf8>") {
smc = mc.attachMovie("HelpIcon", "hic", _root.depth++);
smc.ques._visible = false;
var _local14 = new Color(smc.infob);
_local14.setRGB(39168);
}
if (s == "<home>") {
if (Users[_local5].h.length > 0) {
smc = mc.attachMovie("Home", "home", _root.depth++);
smc._y = 6;
_local3 = (smc.HomePage = Users[_local5].h);
smc.onPress = function () {
var _local2 = this.HomePage;
if (_local2.substr(0, 7).toLowerCase() != "http://") {
_local2 = "http://" + _local2;
}
_local2 = xatlinks(_local2);
if (Key.isDown(16)) {
_local2 = _local2 + "&f=1";
}
UrlPopup(ST(21), _local2);
getURL (_local2, "_blank");
};
}
}
if (s == "<c>") {
var _local6 = -1;
if (Users[userid].member) {
_local6 = ((Users[_local5].Powers[0] & 1073741824) ? 16716947 : 5592575);
_local3 = ST(22);
}
if (Users[userid].moderator) {
_local6 = 16777215 /* 0xFFFFFF */;
_local3 = ST(23);
}
if (Users[userid].owner) {
_local6 = 16750848 /* 0xFF9900 */;
_local3 = ST(24);
}
if (Users[userid].mainowner) {
_local6 = 16750848 /* 0xFF9900 */;
_local3 = ST(134);
}
if (Users[userid].Stealth) {
_local6 = -1;
} else if (Users[userid].u == 70237858) {
_local6 = 0;
_local3 = "xat staff";
} else if (Users[userid].Powers[1] & 8) {
_local6 = 8388736 /* 0x800080 */;
}
if (_local6 >= 0) {
smc = mc.attachMovie("chatter", "man", _root.depth++);
HatsOff(smc);
var _local14 = new Color(smc.Back);
smc._xscale = (smc._yscale = 75);
smc._y = 4;
_local14.setRGB(_local6);
}
}
if (_local3) {
smc.Hint = _local3;
smc.onRollOver = function () {
this.t.RollOver();
Hint(0, 0, this.Hint, true, 0, nd, 0, smc);
};
smc.onRollOut = function () {
this.t.RollOut();
HintOff();
};
if (_local3.substr(0, 14) == "(RADIO#HTTP://") {
var s = _local3.split("#");
s = s[1].split(")");
smc.Radio = s[0];
if (((!Ronce) && (Pos == 2)) && (u == w_userno)) {
Ronce = 1;
if (useRadio == undefined) {
useRadio = smc.Radio;
CreateSoundIcon("Radio", 2);
}
useRadio = smc.Radio;
}
}
if (!smc.onPress) {
smc.onPress = function () {
HintOff();
this.t.Press();
if (this.Radio != undefined) {
if (useRadio == undefined) {
useRadio = this.Radio;
CreateSoundIcon("Radio", 2);
}
useRadio = this.Radio;
if ((w_sound & 2) == 0) {
_level0.snd_2.mc.onPress();
}
return(undefined);
}
if (this.xNum) {
if (xc & 2048) {
mcLoad.OpenByN(this.xNum);
} else {
GotoXat(this.xNum);
}
} else if (this.UserNo) {
PressUserName(this.UserNo);
}
};
}
}
if (Pos & 1) {
smc.UserNo = undefined;
}
return(smc);
}
function AddImLink() {
if (utabs[0].Main) {
return(undefined);
}
var _local3 = mcuserbackground.createEmptyMovieClip("iml", _root.depth++);
uMessLst.push(_local3);
_local3._y = useryc;
var _local2 = "<l>(>10200) ";
if (ImInit) {
_local2 = _local2 + ST(218);
} else {
_local2 = _local2 + ST(219);
}
useryc = useryc + (4 + AddMessageToMc(_local3, 0, _local2, 0, 999, 0, 3));
}
function BuildUserList() {
var _local21 = getTimer();
var _local5 = -1;
var _local20 = ((!TabIsPrivate()) && (Pools.length > 1)) && (utabs[0].Main);
DeleteUserList();
var _local22 = getTimer();
poin = new Array();
var _local6 = new Object();
var _local18 = Users.length;
var _local19;
var _local8;
_local19 = 0;
while (_local19 < _local18) {
var _local1 = 0;
if (Users[_local19].u == w_userno) {
_local1 = 40000;
}
if (Users[_local19].online == true) {
_local1 = _local1 + 20000;
} else if ((utabs[1].Main == true) && (Users[_local19].onsuper == true)) {
_local1 = _local1 + 20000;
}
if (!Users[_local19].banned) {
_local1 = _local1 + 10000;
}
if (!Users[_local19].Stealth) {
if (Users[_local19].mainowner) {
_local1 = _local1 + 4800;
}
if (Users[_local19].owner) {
_local1 = _local1 + 3600;
}
if (Users[_local19].moderator) {
_local1 = _local1 + 2400;
}
if (Users[_local19].member) {
_local1 = _local1 + 1200;
}
}
if (Users[_local19].friend) {
_local1 = _local1 + 600;
}
if (Users[_local19].Powers[1] & 8) {
_local1 = _local1 + 400;
} else if (Users[_local19].Powers[0] & 2) {
_local1 = _local1 + 300;
}
if (Users[_local19].registered != undefined) {
var _local11 = Users[_local19].registered.length;
if (_local11 <= 9) {
_local1 = _local1 + (150 - _local11);
}
}
if (Users[_local19].OnXat) {
_local1 = _local1 + 75;
}
var _local12 = Users[_local19].Powers[0] & 512;
if (!_local12) {
if (Users[_local19].registered) {
_local1 = _local1 + 38;
}
}
_local1 = _local1 + 16;
_local1 = _local1 * 50000000000;
_local1 = _local1 - (Users[_local19].u * 2);
_local1 = _local1 * 2;
poin.push({points:_local1, index:_local19});
if (Users[_local19].Bride) {
_local6[Users[_local19].u] = {b:Users[_local19].Bride, index:poin.length - 1};
}
_local19++;
}
for (_local19 in _local6) {
_local8 = _local6[_local19].b;
if (_local19 == _local6[_local8].b) {
var _local9 = poin[_local6[_local19].index].points;
var _local10 = poin[_local6[_local8].index].points;
if (_local9 > _local10) {
poin[_local6[_local8].index].points = _local9 - 1;
continue;
}
poin[_local6[_local19].index].points = _local10 - 1;
}
}
poin.sortOn("points", Array.DESCENDING | Array.NUMERIC);
if (DoBuildUserListScrollUp) {
if (uscrollmc.Scrolling != true) {
uscrollmc.__set__position(0);
onUserScrollChange();
}
}
var _local16 = 0;
if (_local20) {
_local16 = LookupPool(w_pool);
AddPoolToList(_local16);
}
AddImLink();
useryc2 = useryc;
var _local17 = Users.length;
var _local7 = 0;
while (_local7 < _local17) {
var _local2 = poin[_local7].index;
Users[_local2].Vis = false;
Users[_local2].ignored = OnIgnoreList(Users[_local2].u);
if (Users[_local2].u != -1) {
var _local3 = false;
if (utabs[1].Main) {
_local3 = Users[_local2].friend || (xInt(Users[_local2].Location) >= 128);
if (Users[_local2].u == w_userno) {
_local3 = false;
}
} else {
if (TabIsPrivate()) {
if (TabUser() == Users[_local2].u) {
_local3 = true;
}
} else {
_local3 = Users[_local2].online != undefined;
if ((Users[_local2].online == false) && (MessageLength < 40)) {
_local3 = false;
var _local4 = 0;
while (_local4 < MessageLength) {
if (Message[_local4].u == Users[_local2].u) {
_local3 = true;
break;
}
_local4++;
}
}
}
if (w_userno == Users[_local2].u) {
_local3 = true;
}
}
if (_local3) {
Users[_local2].Vis = true;
DoBride(_local2);
if ((Users[_local2].Bride == Users[_local5].u) && (Users[_local5].Bride == Users[_local2].u)) {
DoBride(_local2, 1);
DoBride(_local5, 1);
if (Users[_local2].aFlags & 1) {
Users[_local5].M_St = Users[_local5].M_St | 16;
} else {
Users[_local5].M_St = Users[_local5].M_St | 32;
}
}
AddUserToList(_local5);
_local5 = _local2;
}
}
_local7++;
}
AddUserToList(_local5);
if (_local20) {
q = 0;
while (q < Pools.length) {
if (q != _local16) {
AddPoolToList(q);
}
q++;
}
}
useryc3 = useryc;
}
function DoBride(w, star) {
if (Users[w].registered == undefined) {
return(undefined);
}
if (Users[w].Powers[0] & 512) {
return(undefined);
}
if (Users[w].Bride && (!star)) {
if (Users[w].aFlags & 1) {
Users[w].M_St = 4;
} else {
Users[w].M_St = 2;
}
} else {
Users[w].M_St = 1;
}
if ((!Users[w].VIP) || (Users[w].Powers[0] & 4)) {
Users[w].M_St = Users[w].M_St | 8;
}
Users[w].M_St = Users[w].M_St | 128;
}
function ClearLists(ClearAll) {
var _local2 = 0;
var _local4 = Message.length;
var _local1;
var _local3;
_local3 = 0;
while (_local3 < _local4) {
if (Message[_local2].s & 2) {
_local2++;
} else {
removeMovieClip(Message[_local2].mc);
Message.splice(_local2, 1);
}
_local3++;
}
DeleteUserList(1);
_local1 = 0;
while (_local1 < Users.length) {
if ((ClearAll || (Users[_local1].u != w_userno)) && (xInt(Users[_local1].Location) < 128)) {
Users.splice(_local1, 1);
}
_local1++;
}
}
function DeleteOneUserMc(w) {
removeMovieClip(Users[w].mc.av1);
removeMovieClip(Users[w].mc);
Users[w].mc = undefined;
DoBuildUserList = true;
}
function DeleteUserList(All) {
useryc = 9;
while (uMessLst.length) {
var _local2 = uMessLst.pop();
_local2.But.Delete();
removeMovieClip(_local2.av1);
removeMovieClip(_local2);
}
var _local3 = Users.length;
var _local1 = 0;
while (_local1 < _local3) {
if (All) {
DeleteOneUserMc(_local1);
} else {
Users[_local1].mc.av1._visible = false;
Users[_local1].mc._visible = false;
HatsOff(Users[_local1].mc.av1);
}
_local1++;
}
}
function AddPoolToList(w) {
function PoolPressed() {
if (Pools[this.w] != w_pool) {
NetworkSetPool(Pools[this.w]);
}
}
if (utabs[0].Main == false) {
return(undefined);
}
var _local4 = xInt((xInt(w_useroom) + xInt(Pools[w])) % pool1.length);
var _local2 = xInt(xInt(w_useroom) - xInt(Pools[w]));
if (_local2 < 0) {
_local2 = 2147483647 - _local2;
}
_local2 = _local2 % pool2.length;
var _local3 = new xBut(4, useryc + 3, upw - NX(24), 20, (pool1[_local4] + " ") + pool2[_local2], PoolPressed, 0, 5, mcuserbackground);
_local3.But.w = w;
uMessLst.push(_local3);
useryc = useryc + 23;
}
function AddUserToList(w) {
if (w < 0) {
return(undefined);
}
var UserNo = Users[w].u;
var _local8 = Users[w].n;
var _local9 = 0;
var _local16 = (Users[w].s != undefined) && (((Users[w].Powers[1] & 4194304) && (Macros.SetStatus == undefined)) && (!Users[w].banned));
if (!_local16) {
delete Users[w].s;
}
if ((((((((utabs[0].Main && (f_Live & FlagBits)) && (!Users[w].mainowner)) && (!Users[w].owner)) && (!Users[w].moderator)) && (!Users[w].member)) && (Users[w].u != 4294967000)) && (Users[w].u != w_userno)) && (Users[w].u != 0)) {
return(undefined);
}
_local8 = "<l>" + _local8;
var _local17 = (useryc < ((uph + uscrollmc.Scr_position) + 16)) && (useryc > (uscrollmc.Scr_position - 16));
if ((!_local17) && (Users[w].mc != undefined)) {
removeMovieClip(Users[w].mc.av1);
removeMovieClip(Users[w].mc);
Users[w].mc = undefined;
}
if ((Users[w].mc == undefined) && (_local17)) {
var _local19 = "chatter";
var _local5 = mcuserbackground.attachMovie(_local19, "avatar_" + _root.depth, _root.depth++);
HatsOff(_local5);
if ((UserNo == w_userno) && (Users[w].flag0 & 1024)) {
_local5._alpha = 20;
}
var _local18;
var _local6;
if (Users[w].flag0 & 2048) {
_local5.Shine._visible = false;
_local5.Back._visible = false;
_local5.MBack._visible = true;
_local5.Mob._visible = true;
_local5.IsMob = true;
_local18 = new Color(_local5.MBack);
} else {
_local18 = new Color(_local5.Back);
}
_local6 = ((Users[w].Powers[0] & 1073741824) ? 16738740 : 49152);
if (utabs[0].Main == true) {
if (Users[w].online) {
if (!Users[w].Stealth) {
if (Users[w].member) {
_local6 = ((Users[w].Powers[0] & 1073741824) ? 16716947 : 5592575);
}
if (Users[w].moderator) {
_local6 = 16777215 /* 0xFFFFFF */;
}
if (Users[w].owner || (Users[w].mainowner)) {
_local6 = 16750848 /* 0xFF9900 */;
}
if (Users[w].Powers[1] & 8) {
_local6 = 8388736 /* 0x800080 */;
}
if (Users[w].u == 0) {
_local6 = 0;
}
}
} else if ((!TabIsPrivate()) || (Users[w].onsuper != true)) {
_local6 = 16711680 /* 0xFF0000 */;
}
if (_local6 != 16711680) {
if (Users[w].ignored) {
_local6 = 6316128 /* 0x606060 */;
}
if (Users[w].banned) {
_local6 = 9849600 /* 0x964B00 */;
}
}
} else {
if (Users[w].ignored) {
_local6 = 6316128 /* 0x606060 */;
}
if (Users[w].onsuper != true) {
_local6 = 16711680 /* 0xFF0000 */;
}
}
_local18.setRGB(_local6);
_local5.UserNo = UserNo;
_local5._x = 5;
_local5.onRollOver = function () {
Hint(0, 0, GetUserStatus(FindUser(this.UserNo)), true, 1, nd, 0, this);
};
_local5.onRollOut = function () {
HintOff();
};
_local5.onPress = function () {
HintOff();
if ((this.UserNo == 0) || (this.UserNo == w_userno)) {
CreateProfile();
} else if (this.UserNo == 4294967000) {
} else {
CreateViewProfileDialog(this.UserNo);
}
};
var _local10 = mcuserbackground.attachMovie("textWrapperClip3", "messages_" + _root.depth, _root.depth++);
_local10.av1 = _local5;
Users[w].mc = _local10;
_local10._x = 17;
var _local15;
if (Users[w].Powers[0] & 2097152) {
var _local7 = Users[w].n.split("(glow");
if (_local7[1] != undefined) {
_local15 = 65280;
_local7 = _local7[1].split(")");
var _local11 = _local7[0].split("#");
if (_local7[0] != "") {
_local15 = DecodeColor(_local11[_local11.length - 1], ((Users[w].Powers[0] & 8192) ? true : false), ((Users[w].Powers[0] & 16384) ? true : false), ((Users[w].Powers[0] & 32768) ? true : false), ((Users[w].Powers[0] & 65536) ? true : false));
}
}
}
if ((UserNo == w_userno) || (Users[w].friend)) {
_local8 = ("<b> " + _local8) + " <b>";
}
var _local13 = xInt(Users[w].xNum);
if (xInt(Users[w].Location) >= 128) {
_local13 = 10000 + Users[w].Location;
}
if (_local13) {
_local8 = ((((((_local15 == undefined) ? " " : "") + "(>") + _local13) + (((_local13 == 10001) && (Users[w].DJ)) ? "dj" : "")) + ") ") + _local8;
}
if ((Users[w].banned && (!Users[w].friend)) || (Users[w].forever)) {
_local8 = "<l>" + ST(25);
}
_local9 = AddMessageToMc(_local10, 2, _local8, 0, 999, 0, UserNo, undefined, undefined, _local15);
if (Users[w].Powers[0] & 4096) {
var _local7 = Users[w].n.split("(hat");
if (_local7[1] != undefined) {
_local7 = _local7[1].split(")");
var _local11 = _local7[0].split("#");
var _local12 = Users[w].mc.av1;
var _local4 = _local12.createEmptyMovieClip("h", _root.depth++);
_local12.SF = 10 | ((Users[w].Powers[0] & 1) * 16);
_local12.SC = DecodeColor(_local11[2]);
_local12.ST = _local11[1];
_local4.loadMovie(SmilieUrl("hat", "sm"));
_local4._xscale = (_local4._yscale = 40);
_local4._x = 2;
}
}
if (_local16) {
var _local14 = _local10.createTextField("status", _root.depth++, 4, 16, 200, 20);
fmts.color = 2105376 /* 0x202020 */;
_local14.text = Users[w].s;
_local14.setTextFormat(fmts);
_local14.selectable = false;
_local14.cacheAsBitmap = true;
}
}
if (Users[w].mc != undefined) {
Users[w].mc.av1.Gag._visible = Users[w].gagged == true;
Users[w].mc.av1.sinbin._visible = ((Users[w].flag0 & 512) ? true : false);
Users[w].mc._visible = true;
Users[w].mc.av1._visible = true;
Users[w].mc.av1._y = useryc + 5;
Users[w].mc._y = useryc;
if (Users[w].M_St & 128) {
Users[w].M_St = Users[w].M_St & -129;
var _local4 = Users[w].mc.av1;
_local4.BFF2._visible = false;
_local4.Married2._visible = false;
if (Users[w].M_St & 4) {
_local4 = _local4.BFF2;
} else if (Users[w].M_St & 2) {
_local4 = _local4.Married2;
} else if (Users[w].M_St & 1) {
_local4 = _local4.Star;
}
_local4._visible = true;
if (Users[w].M_St & 8) {
McSetRGB(_local4, 0);
}
if (Users[w].M_St & 16) {
Users[w].mc.av1.BFF._visible = true;
McSetRGB(Users[w].mc.av1.BFF.plus3, 8388608);
McSetRGB(Users[w].mc.av1.BFF.plus2, 16711680);
}
if (Users[w].M_St & 32) {
Users[w].mc.av1.Married._visible = true;
}
}
}
if (_local9 < 16) {
_local9 = 16;
}
if (_local16) {
_local9 = 22;
Users[w].mc.av1._y = Users[w].mc.av1._y + 5;
}
useryc = useryc + (_local9 + 4);
}
function CookieStuff() {
var _local4 = SharedObject.getLocal("chat" + String(w_room), "/");
if (_local4 != null) {
if (pass != undefined) {
_local4.data.pass = pass;
_local4.flush();
} else {
pass = _local4.data.pass;
if (pass != undefined) {
pass = xInt(pass);
}
}
}
var _local3 = SharedObject.getLocal("chat", "/");
if (1 & (_local3 != null)) {
var _local9 = new Date();
var _local7 = _local9.getTime();
var _local8 = 0;
var _local6 = 0;
if (_local3.data.w_lastroom != undefined) {
_local6 = _local3.data.w_lastroom;
}
if (_local3.data.w_lastauto != undefined) {
_local8 = _local3.data.w_lastauto;
}
_local3.data.w_lastroom = w_room;
_local3.data.w_lastauto = _local7;
if (w_lang != undefined) {
if (xInt(w_lang) < 10000) {
_local3.data.w_lang = w_lang;
}
} else if (_local3.data.w_lang != undefined) {
w_lang = _local3.data.w_lang;
}
_local3.flush();
if (_local3.data.w_userno != undefined) {
if (_local3.data.w_userno != undefined) {
w_userno = xInt(_local3.data.w_userno);
}
if (_local3.data.w_userrev != undefined) {
w_userrev = xInt(_local3.data.w_userrev);
}
if (_local3.data.w_k1b != undefined) {
w_k1 = xInt(_local3.data.w_k1b);
}
if (_local3.data.w_k2 != undefined) {
w_k2 = xInt(_local3.data.w_k2);
}
if (_local3.data.w_name != undefined) {
w_name = CleanTextNoXat(_local3.data.w_name);
}
if (_local3.data.w_avatar != undefined) {
w_avatar = CleanAv(_local3.data.w_avatar);
}
if (_local3.data.w_homepage != undefined) {
w_homepage = _local3.data.w_homepage;
}
if ((String(w_avatar).indexOf("meez") != -1) || (String(w_homepage).indexOf("meez") != -1)) {
if (xc & 8192) {
w_useroom = (w_room = 3602375);
_global.gn = "Meez";
}
Meezer = true;
}
if (_local3.data.w_d0 != undefined) {
w_d0 = xInt(_local3.data.w_d0);
}
if (_local3.data.w_d1 != undefined) {
w_d1 = xInt(_local3.data.w_d1);
}
w_d2 = xInt(_local3.data.w_d2);
w_d3 = xInt(_local3.data.w_d3);
w_dt = xInt(_local3.data.w_dt);
w_Powers = _local3.data.w_Powers;
w_Mask = _local3.data.w_Mask;
w_bride = _local3.data.w_bride;
w_xats = _local3.data.w_xats;
w_PowerO = _local3.data.w_PowerO;
if (_local3.data.w_coins != undefined) {
w_coins = xInt(_local3.data.w_coins);
}
if (_local3.data.w_k3 != undefined) {
w_k3 = xInt(_local3.data.w_k3);
}
if (_local3.data.w_registered != undefined) {
w_registered = _local3.data.w_registered;
}
w_autologin = _local3.data.w_autologin;
w_news = xInt(_local3.data.w_news);
w_Vol[1] = _local3.data.w_Vol1;
w_Vol[2] = _local3.data.w_Vol2;
if ((w_autologin == undefined) || (w_autologin == true)) {
w_autologin = 65535;
}
if (w_autologin == false) {
w_autologin = 65534;
}
autologin = w_autologin;
if (!(xc & 32)) {
if ((_local7 - _local8) < ((w_room == _local6) ? 10000 : 2000)) {
w_autologin = w_autologin & -2;
}
}
if ((w_useroom > 100) && ((StageWidth < 220) || (StageHeight < 140))) {
w_autologin = w_autologin & -2;
} else if (xc & 512) {
w_autologin = w_autologin & -2;
} else if ((w_useroom > 100) && (_global.pw != undefined)) {
w_autologin = w_autologin | 1;
}
if (_local3.data.w_banlist != undefined) {
w_banlist = _local3.data.w_banlist;
}
if (_local3.data.w_friendlist != undefined) {
w_friendlist = _local3.data.w_friendlist;
}
if (_local3.data.w_friendlist2 != undefined) {
w_friendlist2 = _local3.data.w_friendlist2;
}
if (_local3.data.w_ignorelist2 != undefined) {
w_ignorelist2 = _local3.data.w_ignorelist2;
}
if (_local3.data.w_ignorelist != undefined) {
delete _local3.data.w_ignorelist;
}
if (_local3.data.w_userrevlist != undefined) {
w_userrevlist = _local3.data.w_userrevlist;
}
if (_local3.data.w_namelist != undefined) {
w_namelist = _local3.data.w_namelist;
}
if (_local3.data.w_avatarlist != undefined) {
w_avatarlist = _local3.data.w_avatarlist;
}
if (_local3.data.w_homepagelist != undefined) {
w_homepagelist = _local3.data.w_homepagelist;
}
w_Options = _local3.data.w_Options;
Macros = _local3.data.Macros;
}
}
if (w_Vol[1] == undefined) {
w_Vol[1] = 35;
}
if (w_Vol[2] == undefined) {
w_Vol[2] = 35;
}
if ((_local3 != null) && (_local3.data.w_sound != undefined)) {
w_sound = _local3.data.w_sound;
}
if (_local3 != null) {
}
TrimIgnoreList();
if (xc & 1) {
if (xp != undefined) {
GeneralMessage(" ", "Set Picture: " + xp);
GeneralMessageH.Dia.Ok.But.PressFunc = function () {
this.Parent.Delete(this.Parent);
w_avatar = xp;
var _local2 = SharedObject.getLocal("chat", "/");
if (_local2 != null) {
_local2.data.w_avatar = w_avatar;
_local2.flush();
}
lb = "n";
DoUpdate = true;
NetworkClose();
logoutbutonPress();
};
}
}
if (xn != undefined) {
if ((w_name == "") || (IsDefaultName(w_name))) {
w_name = xn;
}
}
if (xp != undefined) {
if (w_avatar == "") {
w_avatar = xp;
}
}
if (xh != undefined) {
if (w_homepage == "") {
w_homepage = xh;
}
}
if (xl != undefined) {
MainFlagBits = MainFlagBits | f_Lobby;
}
if (OnFriendList(3)) {
UpdateFriendList(3, false);
}
}
function StartChat() {
function onMessageScrollChange() {
DoUpdateMessages = true;
}
function OnUsers() {
SetVisitorsTab();
DoBuildUserListScrollUp = true;
var _local2 = Users.length;
var _local1 = 0;
while (_local1 < _local2) {
if (Users[_local1].friend) {
DeleteOneUserMc(_local1);
}
_local1++;
}
}
function OnFriends() {
GetFriendStatus();
utabs[0].Main = false;
utabs[1].Main = true;
AddTabs(utabs, upx, upy, upw, uph, UserTabDepth);
DoBuildUserListScrollUp = true;
}
function retmc_onPress() {
uu = 0;
while (uu < textfield2.length) {
if (textfield2.text.charAt(uu) == ">") {
textfield2.text = (textfield2.text.substr(0, uu) + "?") + textfield2.text.substr(uu + 1);
}
uu++;
}
PostMessage(textfield2.text);
textfield2.text = "";
}
mc1 = this.createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
mc2 = this.createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
mc3 = mc2.createEmptyMovieClip("pic", _root.depth++);
mc4 = this.createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
mc5 = mc4.createEmptyMovieClip("pic", _root.depth++);
mc2._visible = false;
sndmc = this.createEmptyMovieClip("snd" + _root.depth, _root.depth++);
beep = new Sound(sndmc);
beep.attachSound("beepsnd");
tab_sound = new Sound(sndmc);
tab_sound.attachSound("beepsnd");
dingdong = new Sound(sndmc);
dingdong.attachSound("dingdongsnd");
tab_sound.setVolume(w_Vol[1]);
beep.setVolume(w_Vol[1]);
dingdong.setVolume(w_Vol[1]);
tpw = NX(460);
tph = NY(320);
tpx = NX(10);
tpy = NY(10);
textPaneWidth = (tpw - 15) - 45;
TabDepth = _root.depth;
_root.depth = _root.depth + 1000;
mctextbackground = createEmptyMovieClip("mc" + _root.depth, _root.depth++);
mctextbackground._x = tpx;
mctextbackground._y = tpy;
mctextbackgroundmask = AddBackground(tpx + 1, tpy + 1, (tpw - 2) - NX(16), tph - 2, c_bl);
mctextbackground.setMask(mctextbackgroundmask);
mscrollmc = new xScroll((tpx + tpw) - NX(16), tpy, NX(16), tph, NX(16), NX(32), 100, 1000, 1000, onMessageScrollChange);
upw = NX(150);
uph = NY(320);
upx = NX(480);
upy = NY(10);
UserTabDepth = _root.depth;
_root.depth = _root.depth + 100;
mcuserbackground = createEmptyMovieClip("userb" + _root.depth, _root.depth++);
mcuserbackground._x = upx;
mcuserbackground._y = upy;
mcuserbackgroundmask = AddBackground(upx + 1, upy + 1, (upw - 2) - NX(16), uph - 2, 0);
mcuserbackground.setMask(mcuserbackgroundmask);
uscrollmc = new xScroll((upx + upw) - NX(16), upy, NX(16), uph, NX(16), NX(32), 20, 1000, 0, onUserScrollChange);
userPaneWidth = ((upw - 15) - 15) + 100;
utabs = new Array();
utabs[0] = new Object();
utabs[0].Main = true;
utabs[0].t = (utabs[0].h = ST(2));
utabs[0].Col = 16777215 /* 0xFFFFFF */;
utabs[0].Flags = 4;
utabs[0].pFunc = OnUsers;
utabs[1] = new Object();
utabs[1].t = ST(3);
utabs[1].h = utabs[1].t + " ";
utabs[1].Col = 16777215 /* 0xFFFFFF */;
utabs[1].Flags = 4;
utabs[1].pFunc = OnFriends;
AddTabs(utabs, upx, upy, upw, uph, UserTabDepth);
lockmc = createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
lockmc._x = NX(17);
lockmc._y = NY(407);
lockmc.attachMovie("lock", "lock", _root.depth++);
lockmc._visible = false;
lockmc._alpha = 75;
lockmc.lock._width = int((lockmc.lock._width * NY(60)) / lockmc.lock._height);
lockmc.lock._height = NY(60);
textfield2background = AddBackground(NX(10), NY(400), NX(425), NY(70));
fmt = new TextFormat();
fmt.align = "left";
fmt.bold = true;
fmt.color = 0;
fmt.font = "_sans";
fmt.size = 14;
textfield2 = createTextField("_textfield2", _root.depth++, NX(14), NY(400), NX(421), NY(70));
textfield2.type = "input";
textfield2.multiline = true;
textfield2.wordWrap = true;
textfield2.setNewTextFormat(fmt);
textfield2.onChanged = function (_textfield2) {
if (textfield2.text == "\r") {
textfield2.text = "";
PrivateMessage = 0;
lockmc._visible = false;
} else if (textfield2.text.indexOf("\r") != -1) {
uu = 0;
while (uu < textfield2.length) {
if (textfield2.text.charAt(uu) == ">") {
textfield2.text = (textfield2.text.substr(0, uu) + "?") + textfield2.text.substr(uu + 1);
}
uu++;
}
PostMessage(textfield2.text);
textfield2.text = "";
}
};
fmts.color = 0;
fmts.align = "left";
fmts.font = "_sans";
fmts.size = 10;
fmts.bold = true;
mcscroller = this.createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
mcscrollertext = mcscroller.createTextField("_mscrollertext", _root.depth++, NX(435), NY(456), 10000, 20);
SetScroller("");
mcscrollermask = AddBackground(NX(10), NY(400), NX(425), NY(80), c_bl);
mcscroller.setMask(mcscrollermask);
retmc = new xBut(NX(446), NY(400), NX(24), NY(70), "", retmc_onPress);
retmc.But.attachMovie("returnicon", "ret", _root.depth++);
retmc.But.ret._x = (NX(24) - 16) / 2;
retmc.But.ret._y = (NY(70) - 16) / 2;
McSetRGB(retmc.But.ret._y, ButColW);
retmc.SetRoll(ST(4));
mcgetachat = new xBut(NX(480), NY(400), NX(150), NY(30), ST(5), GetAChatBox_onRelease);
mcgetachat.SetRoll(GetAChatBox_onRollOver);
ButtonLoginMc = new xBut(NX(480), NY(440), NX(150), NY(30), ST(19), ButtonLoginMc_onRelease);
ButtonLoginMc.SetRoll(ButtonLoginMc_onRollOver);
MkGpBut();
var ic3 = attachMovie("HelpIcon", "hic", _root.depth++);
ic3.info._visible = false;
ic3.onRollOver = function () {
Hint(NX(24), -NY(24), ST(7), true, 1, nd, 0, ic3);
};
ic3.onRollOut = HintOff;
ic3._xscale = (ic3._yscale = int(GrpIc._xscale * 1.1));
ic3._x = NX(520);
ic3._y = NY(367);
ic3.onPress = HelpDialog;
var ic4 = attachMovie("xatsat", "xatsat", _root.depth++);
ic4.onRollOver = function () {
var _local1 = "http://xat.com";
Hint(NX(24), -NY(24), _local1, true, 1, nd, 0, ic4);
};
ic4.onRollOut = HintOff;
ic4._xscale = (ic4._yscale = int(GrpIc._xscale / 11));
ic4._x = NX(630) - ic4._width;
ic4._y = NY(367);
ic4.onPress = function () {
var _local1 = "http://xat.com";
getURL (_local1, "_blank");
UrlPopup(ST(8), _local1);
};
var _local4 = NY(30);
var _local9 = NX(30);
if (_local9 < _local4) {
_local4 = _local9;
}
var _local6 = NX(10);
var _local7 = NY(395) - _local4;
var _local11 = NX(440);
var _local5 = _local4 + 3;
emmax = Math.floor((_local11 + 3) / _local5);
if (emmax > 16) {
emmax = 16;
}
var emi;
var _local3 = 0;
emi = 0;
while (emi < emmax) {
em[emi] = createEmptyMovieClip("mc_" + _root.depth, _root.depth++);
em[emi]._visible = false;
em[emi].s = _local3;
while (smArray[_local3] >= 0) {
_local3++;
}
em[emi].t = _local3 - 1;
var s = smArray[_local3 - 1];
if (emi == (emmax - 3)) {
if ((w_news < News) && (Math.random() > 0.5)) {
s = "News";
} else {
s = "GetX";
}
}
if (emi == (emmax - 2)) {
s = "GetStuff";
}
if (emi == (emmax - 1)) {
s = "more";
}
em[emi].attachMovie(s, "s", _root.depth++);
_local3++;
em[emi]._x = (em[emi].startx = _local6 + (emi * _local5));
em[emi]._y = (em[emi].starty = _local7);
em[emi]._width = em[emi]._width * (_local4 / 19);
em[emi]._height = em[emi]._height * (_local4 / 19);
em[emi].startw = em[emi]._width;
em[emi].starth = em[emi]._height;
em[emi].onRollOut = function () {
HintOff();
SmilieUpdate = 1000;
};
em[emi].n = emi;
if (s == "GetX") {
em[emi].onPress = function () {
Register_onRelease(1);
};
} else if (s == "News") {
em[emi].onPress = function () {
w_news = News;
MainSolWrite("w_news", News);
GotoWeb(usedomain + "/news");
};
} else if (emi == (emmax - 2)) {
em[emi].onPress = function () {
HintOff();
SmilieUpdate = 0;
CreateBuystuff();
};
em[emi].onRollOver = function () {
Hint(em[this.n]._x, em[this.n]._y, ST(139), true);
SmilieUpdate = 1000;
};
} else if (emi == (emmax - 1)) {
em[emi].onPress = function () {
HintOff();
SmilieUpdate = 0;
if (xc & 2048) {
mcLoad.OpenSmilies();
} else {
GotoXat("5");
}
};
em[emi].onRollOver = function () {
Hint(em[this.n]._x, em[this.n]._y, ST(9), true);
SmilieUpdate = 1000;
};
} else {
em[emi].onPress = function () {
Selection.setFocus(null);
textfield2.text = textfield2.text + smArray[this.s];
CursorRight = true;
HintOff();
SmilieUpdate = 0;
};
if (emi == 0) {
em[emi].onRollOver = function () {
emi = 1;
while (emi < emmax) {
em[emi]._visible = true;
emi++;
}
Hint(em[this.n]._x, em[this.n]._y, (smArray[this.t] + " ") + smArray[this.s], true);
SmilieUpdate = -1;
};
} else {
em[emi].onRollOver = function () {
Hint(em[this.n]._x, em[this.n]._y, (smArray[this.t] + " ") + smArray[this.s], true);
SmilieUpdate = -1;
};
}
}
emi++;
}
CreateTabs();
logoutbutonPress();
Update();
CursorRight = true;
}
function MkGpBut() {
removeMovieClip(GrpIc);
var _local3 = Array(5, 0, 49152, 0, 2, 5592575, 10, 2, 16711680, 5, 4, 16750848);
if (FlagBits & f_Live) {
_local3 = Array(5, 0, 49152, 3, 1, 49152, 7, 1, 49152, 0, 2, 49152, 5, 2, 49152, 10, 2, 49152, 3, 3, 49152, 7, 3, 49152, 5, 4, 8388736);
}
var ic = createEmptyMovieClip("m" + _root.depth, _root.depth++);
GrpIc = ic;
var _local2 = 0;
while (_local2 < _local3.length) {
var _local4 = ic.attachMovie("chatter", "c" + _local2, _root.depth++, {_x:_local3[_local2], _y:_local3[_local2 + 1]});
HatsOff(_local4);
var _local5 = new Color(_local4.Back);
_local5.setRGB(_local3[_local2 + 2]);
_local2 = _local2 + 3;
}
ic.onRollOver = function () {
var _local1 = ST(6);
if ((w_owner || (w_mainowner)) && (FlagBits & f_Live)) {
_local1 = ST(216);
}
Hint(NX(24), -NY(24), _local1, true, 1, nd, 0, ic);
};
ic.onRollOut = HintOff;
ic._xscale = (ic._yscale = ((NX(24) < NY(24)) ? (NX(120)) : (NY(120))));
ic._x = NX(484);
ic._y = NY(367);
ic.onPress = function () {
if ((w_owner || (w_mainowner)) && (FlagBits & f_Live)) {
if (xc & 2048) {
mcLoad.OpenByN(40000);
} else {
GotoXat("40000");
}
return(undefined);
}
var _local1 = usedomain + "/groups";
getURL (_local1, "_blank");
UrlPopup(ST(8), _local1);
};
}
function PostMessage(Text) {
if (TabIsPrivate()) {
PrivateChat = TabUser();
} else {
PrivateChat = 0;
}
if (PrivateMessage != 0) {
lockmc._visible = false;
}
if (Text.length == 0) {
return(undefined);
}
Text = CleanMessage(Text);
var _local3 = TabSelected();
var _local2 = xInt(tabs[_local3].IMtype);
if (_local2 >= 128) {
ImPostMessage(Text, _local2);
return(undefined);
}
Text = Text.substr(0, 256);
if (w_userrev == undefined) {
w_userrev = 0;
if (lb == "t") {
lb = "n";
DoUpdate = true;
NetworkClose();
}
}
if (lb == "n") {
logoutbutonPress();
}
ResetSmilies = true;
MessageToProcess = Text;
}
function ProcessMessage() {
var _local7 = FindUser(w_userno);
var _local1 = MessageToProcess;
MessageToProcess = "";
if ((_local1.charAt(0) == "$") && (_local1.indexOf("=") != -1)) {
if (_local1 == "$=") {
if (Macros != undefined) {
helpstr = "";
for (var _local5 in Macros) {
helpstr = helpstr + (((("$" + _local5) + "=") + Macros[_local5]) + " ");
}
helpupdate = 0;
}
return(undefined);
}
var _local3 = _local1.substr(1).split("=");
if (_local3[0].indexOf(" ") == -1) {
if (Macros == undefined) {
Macros = new Object();
}
if ((_local3[1] == undefined) || (_local3[1].length == 0)) {
delete Macros[_local3[0]];
} else {
Macros[_local3[0]] = _local3[1];
}
if (_local3[0] == "status") {
lb = "n";
DoUpdate = true;
NetworkClose();
logoutbutonPress();
}
helpstr = (("$" + _local3[0]) + "=") + ((_local3[1] == undefined) ? "" : (_local3[1]));
helpupdate = 0;
MainSolWrite("Macros", Macros);
return(undefined);
}
}
if ((PrivateChat == 0) && (Users[_local7].banned || (Users[_local7].gagged))) {
} else if (_local1.charAt(0) == "/") {
var _local2 = _local1.substr(1, 1);
if (w_mainowner || (w_owner)) {
if (_local2 == "s") {
SetScroller(_local1.substr(2, 510));
NetworkSendMsg(w_userno, _local1.substr(0, 512));
} else if ((_local2 == "p") || (_local2 == "i")) {
NetworkSendMsg(w_userno, "/" + _local2);
}
}
if (_local1 == "/debug") {
debug = true;
} else if ((_local2 == "g") && (_local1.length == 2)) {
NetworkSendMsg(w_userno, "/g");
} else if ((((_local2 == "x") || (_local2 == "h")) || (_local2 == "m")) || (_local2 == "n")) {
NetworkSendMsg(w_userno, _local1, TabUser());
} else if (_local2 == "o") {
w_Options = _local1.substr(2, 256);
if (w_Options.length == 0) {
w_Options = undefined;
}
MainSolWrite("w_Options", w_Options);
} else if (_local2 == "f") {
var _local4 = _local1.substr(2, 64).split(" ");
if (xInt(_local4[0]) > 128) {
UpdateFriendList(xInt(_local4[0]), true, ((_local4[1] != undefined) ? _local4[1] : _local4[0].toString));
}
} else if (_local2 == "t") {
if ((TabUser() != undefined) && (TabUser() != 0)) {
NetworkSendMsg(w_userno, _local1, 0, TabUser(), 0);
NetworkIgnore(TabUser());
} else {
Kiss({t:_local1.substr(2), u:w_userno, k:"Ttth"});
}
}
} else if (_local1.indexOf("k2=") != -1) {
helpstr = ST(214);
helpupdate = 0;
} else {
if (Macros != undefined) {
for (var _local5 in Macros) {
_local1 = Replace(_local1, "$" + _local5, Macros[_local5]);
}
}
ProcessHelp(_local1);
ProcessSounds(_local1, !((w_Powers[0] & 256) & (w_Mask[0] ^ 4294967000)));
_local1 = PreProcSmilie(_local1, undefined, w_Options);
var _local6 = _local1;
if (PrivateMessage != 0) {
_local6 = "<priv> " + _local1;
}
mi++;
if ((((((f_Live & FlagBits) && (!w_mainowner)) && (!w_owner)) && (!w_moderator)) && (!w_member)) && (!TabIsPrivate())) {
} else {
Message.push({i:(mi * 2) + 1, n:0, t:_local6, u:w_userno, s:(TabIsPrivate() ? 2 : 0), d:TabUser()});
}
if (messageecho == "m") {
sending_lc.send(fromxat, "onMsg", 4, (mi * 2) + 1, _local6);
} else {
DoUpdateMessages = true;
ScrollDown = true;
LastScrollTime = undefined;
if (MessageCount > 0) {
MessageCount = 25;
}
if (_local1 != LastMessageToSend) {
if (MessageToSend.length == 0) {
MessageToSend = _local1;
} else {
MessageToSend = MessageToSend + " ";
MessageToSend = MessageToSend + _local1;
}
MessageToSend = MessageToSend.substr(0, 256);
} else {
MessageCount = 25;
}
}
}
}
function ProcessHelp(Text) {
Text.toLowerCase();
if (Text.indexOf("change") != -1) {
if ((((Text.indexOf("name") != -1) || (Text.indexOf("picture") != -1)) || (Text.indexOf("pic") != -1)) || (Text.indexOf("avatar") != -1)) {
helpstr = ST(30, " <o> <l>" + w_name);
HelpUpdate = 300 + (helpstr.length * 8);
}
}
}
function ProcessSounds(Text, bPlayAudies) {
if (w_sound & 1) {
Text.toLowerCase();
var _local6 = false;
var _local1 = Text.indexOf("#");
if ((_local1 != -1) && (bPlayAudies)) {
if (!((_local1 > 0) && (Text.charAt(_local1 - 1) != " "))) {
var _local2 = Text.substr(_local1 + 1);
_local2 = CleanText(_local2);
var _local5 = new Array();
_local5 = _local2.split("_");
var _local4 = _local5[0];
if (_local4.length > 0) {
CustomSound = _local4;
DoAudieSnd = true;
_local6 = true;
}
}
}
if (!_local6) {
DoMessageSnd = true;
}
}
}
function ChangeNameHelpMessage() {
if (IsDefaultName(w_name)) {
helpstr = ST(12, " <o> <l>" + w_name);
HelpUpdate = 0;
}
}
function ButtonLoginMc_onRelease() {
LoginPressed = true;
logoutbutonPress();
}
function logoutbutonPress() {
DialogClose();
mspos = undefined;
while (Pools.length > 0) {
Pools.splice(0);
}
PrivateMessage = 0;
lockmc._visible = false;
if (lb == "n") {
var _local1 = SharedObject.getLocal("chat" + String(w_useroom), "/");
pass = _local1.data.pass;
if (pass != undefined) {
pass = xInt(pass);
}
NetworkStartChat();
} else {
lb = "n";
DoUpdate = true;
NetworkClose();
}
}
function ButtonLoginMc_onRollOver() {
if (lb == "n") {
Hint(ButtonLoginMc.But._x, ButtonLoginMc.But._y, ST(26), true, 0, un, 0);
} else {
Hint(ButtonLoginMc.But._x, ButtonLoginMc.But._y, ST(27), true, 0, un, 0);
}
}
function GetAChatBox_onRollOver() {
if (w_mainowner) {
Hint(mcgetachat.But._x, mcgetachat.But._y, ST(28), true, 0, un, 100);
} else {
Hint(mcgetachat.But._x, mcgetachat.But._y, ST(29), true, 0, un, 100);
}
}
function GetAChatBox_onRelease() {
HintOff();
if (w_useroom != w_room) {
Home_onRelease();
}
if ((!w_mainowner) || (xb)) {
CreateGetAChatBox();
} else {
CreateEditYourChatBox();
}
}
function UpdateBackground(back) {
if (xInt(back) > 0) {
back = ((chatdomain + "../background/xat") + xInt(back)) + ".jpg";
}
if ((w_useroom >= 8) && (xb != undefined)) {
back = xb;
}
if ((back.length < 8) && (xb != undefined)) {
back = xb;
}
if ((w_useroom == w_room) && (xc & 1024)) {
back = "";
}
if (back.substr(0, 7) != "http://") {
unloadMovie (mc2.pic);
unloadMovie (mc4.pic);
return(undefined);
}
if (CurrentEipBack == undefined) {
CurrentEipBack = 0;
}
CurrentEipBack = (CurrentEipBack + 1) % 2;
var _local2;
if (CurrentEipBack == 0) {
_local2 = mc2;
} else {
_local2 = mc4;
}
pic = _local2.pic;
pic.clear();
unloadMovie (pic);
pic.loadMovie(back);
pic._lockroot = true;
_local2._visible = false;
_local2.Done = 0;
removeMovieClip(mc1);
}
function Home_onRelease() {
var _local1 = w_room;
if ((w_useroom != _local1) || (lb == "n")) {
SetVisitorsTab();
w_useroom = w_room;
ClearLists(true);
lb = "n";
DoUpdate = true;
NetworkClose();
logoutbutonPress();
ScrollDown = true;
LastScrollTime = undefined;
HintOff();
} else {
DoBuildUserListScrollUp = true;
DoUpdateMessages = true;
ScrollDown = true;
LastScrollTime = undefined;
}
if (tabs[0].Main) {
GoGroup();
}
UpdateTabs(0);
ColorTab(0, 16777215);
}
function Lobby_onRelease() {
var _local1;
_local1 = group;
if ((w_useroom != _local1) || (lb == "n")) {
SetVisitorsTab();
w_useroom = _local1;
w_redirectport = (w_redirectdom = undefined);
ClearLists(true);
lb = "n";
DoUpdate = true;
NetworkClose();
logoutbutonPress();
ScrollDown = true;
LastScrollTime = undefined;
HintOff();
} else if (tabs[1].Main) {
DoBuildUserListScrollUp = true;
DoUpdateMessages = true;
ScrollDown = true;
LastScrollTime = undefined;
GoGroup();
} else {
DoBuildUserListScrollUp = true;
DoUpdateMessages = true;
ScrollDown = true;
LastScrollTime = undefined;
}
UpdateTabs(1);
ColorTab(1, 16777215);
}
function GoGroup() {
if ((xc & 2048) && (w_useroom == w_room)) {
return(undefined);
}
var _local1 = GroupUrl();
getURL (_local1, "_blank");
UrlPopup(ST(8), _local1);
}
function Private_onRelease(TabNumber) {
HintOff();
SetVisitorsTab();
DoUpdateMessages = true;
DoBuildUserListScrollUp = true;
ScrollDown = true;
LastScrollTime = undefined;
UpdateTabs(TabNumber);
ColorTab(TabNumber, 16777215);
}
function SetVisitorsTab() {
utabs[0].Main = true;
utabs[1].Main = false;
AddTabs(utabs, upx, upy, upw, uph, UserTabDepth);
}
function Private_onDelete(TabNumber) {
HintOff();
SetVisitorsTab();
tabs.splice(TabNumber, 1);
if (w_useroom == w_room) {
UpdateTabs(0);
ColorTab(0, 16777215);
} else {
UpdateTabs(1);
ColorTab(1, 16777215);
}
DoUpdateMessages = true;
DoBuildUserList = true;
ScrollDown = true;
LastScrollTime = undefined;
}
function onUserScrollChange() {
var _local1 = (useryc3 - uph) + 4;
if (_local1 < 0) {
_local1 = 0;
}
uscrollmc.Scr_size = _local1;
var _local2 = uscrollmc.Scr_position;
mcuserbackground._y = -_local2;
UserScroll = true;
}
function LookupPool(pool) {
q = 0;
while (q < Pools.length) {
if (pool == Pools[q]) {
return(q);
}
q++;
}
return(0);
}
function SetScroller(Text) {
fmts.color = 0;
var _local2 = Text.indexOf("#");
if (_local2 != -1) {
fmts.color = parseInt(Text.substr(_local2 + 1, 6), 16);
Text = Text.substr(0, _local2);
}
mcscrollertext.text = Text;
mcscrollertext._x = NX(435);
mcscrollertext._y = NY(469) - 12;
mcscrollertext.setTextFormat(fmts);
mcscrollertext.selectable = false;
mcscrollertext.cacheAsBitmap = true;
}
function DialogClose() {
switch (DialogOpen) {
case 1 :
mcprofilebackground_close();
break;
case 2 :
CloseViewprofile();
break;
case 3 :
mcBuystuffbackground_close();
break;
case 4 :
mceditbackground_close();
break;
case 5 :
HelpClose();
break;
case 6 :
mcgetbackground_close();
break;
case 7 :
mcpowersbackground_close();
}
DialogOpen = 0;
}
System.security.allowDomain("cdn.gigya.com");
System.security.allowInsecureDomain("cdn.gigya.com");
System.security.allowDomain("xat.com");
System.security.allowInsecureDomain("xat.com");
cVersion = "901172";
var News = 17;
var menu = new ContextMenu();
menu.hideBuiltInItems();
_root.menu = menu;
var stab = "Main\u00A3Delete message\u00A3Visitors\u00A3Friends\u00A3Send message\u00A3Get a Chat Box\u00A3Chat Groups\u00A3View help\u00A3Web Link\u00A3More smilies\u00A3Turn sound on\u00A3Turn sound off\u00A3Click on $1 to change your name\u00A3Go to $1 Group\u00A3Help\u00A3Change your picture\u00A3Interact with $1\u00A3If not auto linked copy this to your browser:\u00A3Change your name, picture and home page\u00A3Sign In\u00A3Private message\u00A3Go to home page:\u00A3Member\u00A3Moderator\u00A3Owner\u00A3Banned\u00A3Click to start chat\u00A3Click to stop chat\u00A3Change background, Add or change group. Add extra features.\u00A3Put a Chat Box on your website\u00A3To change your name or picture click on this: $1\u00A3Sign Out\u00A3Connecting...\u00A3You haven't said anything for a while. Press Sign In to rejoin the chat.\u00A3Edit Your Chat\u00A3Press Sign In to start chatting. To be signed in automatically go to the profile page and select [Sign me in automatically].\u00A3You have started the chat in another window. Press Sign In to restart in this window again.\u00A3This is a $1 only chat, you can private chat an owner or moderator and ask to join.\u00A3Enter a link, web page or search term\u00A3Get Images\u00A3Background:\u00A3Enter Group name here -\nor select below:\u00A3Chat Groups are shared chat rooms, like the lobby, but for a specific purpose. You can put them as a group tab on your chat box\u00A3Create New Group\u00A3Edit xat.com Chat Box\u00A3OK\u00A3Change Background\u00A3Change Group\u00A3Set any width and height. Promote your chat box. Get a Poll, Quiz and Slide Show\u00A3Extra Features...\u00A3Edit Your Chat Box\u00A3Get Your Own Chat Box\u00A3Loading images, please wait\u00A3Preview Group\u00A3Failed to find any images,\nplease try again.\u00A3Sorry, chat edit is closed for maintenance.\nPlease try later\u00A3Preview\u00A3Click to use this image\u00A3Profile\u00A3New User...\u00A3Name\u00A3Picture\u00A3Home Page\u00A3Choose from 100s of Pictures on the web\u00A3Use Your Own\u00A3Sign me in automatically\u00A3Cancel\u00A3Go to home page:\u00A3No home page\u00A3Private Chat\u00A3Start a private chat\u00A3Private Message\u00A3Send a private message\u00A3Un-Friend\u00A3Add as Friend\u00A3Add/Remove as Friend\u00A3Ignore\u00A3Un-Ignore\u00A3Ignore/Un-Ignore this user\u00A3Kick\u00A3Kick this user off as a warning.\u00A3Ban\u00A3Un-Ban\u00A3Prevent this user from posting messages\u00A3Make Member\u00A3\u00A3\u00A3\u00A3Make Moderator\u00A3\u00A3I have un-banned\u00A3Go to friend's location:\u00A3Get a Chat Box\u00A3\u00A3\u00A3\u00A3\u00A3\u00A3Connection Problem. You could try to start the chat again, Sorry.\u00A3Please do not share your password with anyone. xat will never ask for your password.\u00A3Network Problem!\u00A3Report Unfair Ban\u00A3Return to Chat Box\u00A3Find Another Group\u00A3Copy Link\u00A3Link Copied to Clipboard\u00A3Please go to your browser and press Ctrl-V in the address box.\u00A3You are\u00A3On xat\u00A3Online\u00A3Offline\u00A3Friend\u00A3Ignored\u00A3Reason for Ban:\u00A3Reason for Kick:\u00A3Duration:\u00A3Hours\u00A3(0 = forever)\u00A3(maximum 6)\u00A3I have banned $1 forever for no reason\u00A3I have banned $1 for $2 hours for no reason\u00A3I have banned $1 forever. Reason: $2\u00A3I have banned $1 for $2 hours. Reason: $3\u00A3I have kicked $1 Reason: $2\u00A3You can't kick someone without a reason.\u00A3You have been Banned\u00A3not added you as a friend\u00A3$1 has Banned you\u00A3I have made $1 a moderator\u00A3on $1\u00A3I have un-moderated $1\u00A3Get\u00A3I have made $1 a member\u00A3I have un-membered $1\u00A3Main Owner\u00A3Make Guest\u00A3Make Owner\u00A3I have made $1 an owner\u00A3I have made $1 a guest\u00A3Get Stuff\u00A3View xatspace\u00A3Invite all your IM friends to this chat!\u00A3Add IM friends. Start IM version of the chat.\u00A3On App\u00A3Start IM\u00A3Start IM version of the chat\u00A3Please sign into IM first\u00A3$1 friends invited to chat\u00A3Marry/Best Friend\u00A3Transfer\u00A3Divorce\u00A3Give away xats and days\u00A3Married to\u00A3Best friends with\u00A3Register...\u00A3Register, Login, Logout etc.\u00A3On MSN\u00A3On AIM\u00A3subscriber\u00A3registered\u00A3BFF\u00A3married\u00A3Transfer of $1 xats and $2 days\nfrom $3 to $4 complete\n\u00A3\u00A3User not found\u00A3Bad password\u00A3User not confirmed registration email\u00A3Not enough xats\u00A3You have to have a partner to get divorced!\u00A3You are already have a partner!\u00A3Partner not registered\u00A3Partner already has a partner!\u00A3Not enough days!\u00A3Sorry: Can't transfer to free xats user\u00A3System problem. Please try later.\u00A3Error\u00A3subscribers\u00A3registered users\u00A3members\u00A3Turn radio off\u00A3Turn radio on\u00A3Enter message, your password and enter the amount to transfer.\u00A3Enter message, your password and click your choice.\u00A3Message\u00A3Password\u00A3Kiss\u00A3Marry/BFF\u00A3xats phishing protection: Transfer held for $1 days\u00A3Gagged\u00A3Powers\u00A3Add Effects\u00A3Add Special Effects to your Avatar (days required)\u00A3Protect Deactivated!\u00A3Protect Activated! - for the next $1 minutes new guests wont be able to talk for $2 minutes.\u00A3I have booted $1 to $2. Reason: $3\u00A3sinbin\u00A3I have sinbinned $1\u00A3Gag\u00A3Mute\u00A3I have $1 $2 for $3 hours for no reason\u00A3I have $1 $2 for $3 hours. Reason: $4\u00A3Muted\u00A3Transfer to: $1\u00A3Subscriber for:\u00A3$1 days\u00A3xats\u00A3Get xats\u00A3Click to buy\u00A3days\u00A3Marry:\u00A3Best Friends Forever:\u00A3Please wait...\u00A3Get $1\u00A3Make a Group\u00A3WARNING! Do not share this link!\u00A3You have been automatically logged out. Please login again at xat.com/login\u00A3Open Live Panel\u00A3Live Mode: Send questions and comments by typing here\u00A3Invite all MSN/AIM friends\u00A3Add MSN/AIM friends\u00A3Hide inappropriate words\u00A3Get Married\u00A3Get Divorced\u00A3Give to $1\u00A3Send a kiss\u00A3Updated\u00A3Safe Trade\u00A3Offer\u00A3Done\u00A3Accept trade\u00A3Trade complete\u00A3Failed\u00A3Confirm trade\u00A3WARNING: Trade may be unfair! Continue?\u00A3xats reserve limit exceeded.\u00A3(Reduce trade value by $1 xats)\u00A3 ";
var StringTable = stab.split("\u00A3 ");
var usedomain = "http://xat.com";
var chatdomain = (usedomain + "/web_gear/chat/");
var n1 = "Shit,Fuck,Dick,Prick,Cock,Turd,Cunt,Ass,Anal,Pussy,Bitch,Whore,Nigger,Negro";
var name1 = n1.split(",");
var n2 = "Face,Bike,YourMom";
var name2 = n2.split(",");
var p1 = "funky,boogie,cool,groove,divine,glory,swell,nifty,crazy,freak,wacky,quirky,weird,wild,strange,style,radical,urban,wicked";
var pool1 = p1.split(",");
var p2 = "town,zone,club,city,time,community,center,place,central,nation,state,district,jungle,land,realm,tribe,monkeys,junction,show,point";
var pool2 = p2.split(",");
var bw = "cunt,fuck,wanker,nigger,bastard,prick,bollocks,asshole,paki,cyber,blowjob,blow job,clit,cock,wank,twat,vagina,pussy,whore,porn,penis,sperm,spunk,ejaculat,bitch";
var badwords = bw.split(",");
var kss = "Confetti,Hearts,Champagne,Argue,Cry,Hippo,Hearts,Paint,Surprise,Magic8ball,Airplane,Parachute,Dynamite,Lips,Bomb,Fireworks,Pull,Shark,Blood,Globe,Bugs,Grumpy,Snow";
if (_global.mk != undefined) {
kss = kss + _global.mk;
}
var kssh = new Object();
var kssa = kss.split(",");
var i = 0;
while (i < kssa.length) {
kssh[kssa[i]] = true;
i++;
}
var backs = {h:"heart", s:"square", x:"hexagon", c:"clear", o:"octogram", d:"diamond", b1:"apple", b2:"lemon", b3:"pear", b4:"fruit", b5:"orange", b6:"plum", b7:"banana", b8:"shirt", b9:"soccer", b10:"football", b11:"pkn", b12:"tomb", b13:"snowy"};
var backsR = ReverseObj(backs);
var effects = {i:"invert", m:"mirror", y:"cycle", f:"fade"};
var effectsR = ReverseObj(effects);
var colorc = {r:1, g:1, b:1};
colorc["-"] = 1;
colorc["+"] = 1;
var topsh = {noface:40, loser:37, rockon:37, palms:37, thumbsup:37, thumbsdown:37, flip:37, shh:37, bye:37, hug:37, clap:37, backoff:37, hehe:37, hmm:37, crazy:37, ono:37, hairm2:38, hairm3:38, emo:38, nrd:38, punk:38, hairf2:39, hairf3:39, hairf4:39, g1:39, goth:39, ninja:42, cb:42, police:42, nurse:42, jester:42, sphinx:42, dhat:42, crown:42, partyhat:42, facemask:42, halo:45, cloud:45, pray:45, apple:48, lemon:48, pear:48, orange:48, plum:48, banana:48, shirt:49, soccer:49, football:49, shirts:49, ball:49, bb:49, foam:49, weight:49, trophy:49, pkn:52, wh:52, frk:52, mmy:52, cdn:52, grim:52, tomb:52, bat:52, ghost:52, hypno:53, dizzy:53, rage:53, headband:53, fan:53, comeon:53, grin:53, grump:53, tear:53, awe:53, doh:53, pouty:53, maniac:53, squint:53, ahhh:53, quiver:53, haira1:53, haira2:53, haira3:53, haira4:53, haira5:53, pilgrimm:55, pilgrimf:55, indian:55, indian2:55, indian3:55, chef:55, dining:55, feast:55, eatleg:55, pce:61, cd:61, sleep:61, fs:61};
topsh["6"] = 43;
for (var k in _global.mt) {
topsh[k] = _global.mt[k];
}
var pss = "powers";
pss = pss + ",allpowers,topman,subhide,mod8,zoom,nofollow,invert,mirror,noaudies,reghide,nopc,tempmod,hat,red,green,blue,light,heart,shuffle,animate,square,nameglow,cycle,hexagon,clear,boot,octogram,show,superkick,invisible,pink,31";
pss = pss + ",guestself,sinbin,diamond,purple,ttth,hands,hairm,hairf,fade,gag,costumes,six,dood,angel,mute,radio,fruit,sport,num,hush,halloween,anime,status,thanksgiving,snowy,57,58,59,60,61,62,63";
var pssh = new Object();
var pssa = pss.split(",");
for (var k in _global.mp) {
pssa[xInt(k) + 1] = _global.mp[k];
}
var i = 0;
while (i < pssa.length) {
pssh[pssa[i]] = ((i > 1) ? (i - 1) : (i - 2));
i++;
}
var smi = "a,sry,crs,un,d,scn,nod,gagged,nme,swt,roll,kiss,chkl,rofl,love,blk,xp,eyes,smirk,ill,dead,hello,yum,think,mischief,zip,puke,yawn,swear,cry2,what,omg,o_o,goo,smirk2,beye,wary,shock,xd,cyc,wt,chew";
for (var key in topsh) {
smi = smi + ("," + key);
}
if (_global.ms != undefined) {
smi = smi + _global.ms;
}
smi = smi + ",x,chest,gst,alien,bby,bot,tox,8ball,eye,kirb,pm,pmg,inv,inv2,inv3,sonic,shadow,mario,luigi,mushroom,yoshi,countb,ness,smashball,mephiles,tri,lucario,nights,arbiter,link,mewtwo,xj9,hk,lolwut,kermit,beaker,beast,dv,homer,3tomoe,mangekyou,pikachu,pball,wwe,sm,a1,nko,x3,dog,cat,pig,mk,penguin,panda,bear,cc,ccc,cotton,pie,c,b,o,i,t,mo,so,sb,oo,p,ph,yt,dmd,bin,ush,ipod,ip,sun,rain,r,f,li,l,u,y,n,grl,boy,scb,bio,rad,pgm,mgp,ao,star,note,hex,yy,moon,rubik,cir,cdy,deer,snta,g,sman,xtre,xstk,mtoe,hly,egg,ghat,clover,stickman,stickman2,stickman3,stickairguitar,stickkungfu,stickangry,stickymca,danny,turkey,ss,qbone,mc,lb,mario8,nop,okp,sad,rolling,no,jolly,party";
smi = smi + ((("," + kss.toLowerCase()) + ",") + pss);
var sa = ":),:-),smile,M,:d,biggrin,M,;),;-),wink,M,:o,:-o,eek,M,:p,tongue,M,(h),cool,M,:@,mad,M,:s,confused,M,:$,redface,M,:(,:-(,frown,M,:'(,crying,M,|-),sleepy,M,8-),:|,:-|,rolleyes,M,(*),star,M,:-*,kiss,M,:[,:-[,vampire,M,p-),pirate,T";
var smArray = sa.split(",");
var tsmi = "";
var i = 0;
while (i < smArray.length) {
if (smArray[i] == "M") {
smArray[i] = -1;
}
if (smArray[i] == "T") {
smArray[i] = -2;
}
if (smArray[i] < 0) {
tsmi = tsmi + (smArray[i - 1] + ",");
}
i++;
}
smi = tsmi + smi;
var smih = new Object();
var smia = smi.split(",");
var i = 0;
while (i < smia.length) {
smih[smia[i]] = true;
i++;
}
var Glitters = {test1:1, test2:2, bounce:2, led:1, beams:1, blood:1, clover:1, equ:1, glitter:2, hearts:1, lips:2, up:2, down:2, walk:2, snow:2, xmas:1};
if (_global.mg != undefined) {
for (I in _global.mg) {
Glitters[I] = _global.mg[I];
}
}
var b_LeftText = 2;
var b_Panel = 8;
var b_Border = 16;
var b_NoPress = 32;
var b_Grayed = 64;
var b_Gray = 128;
var c_tl = 256;
var c_tr = 512;
var c_bl = 1024;
var c_br = 2048;
var c_nolt = 4096;
var c_nolb = 8192;
var c_inv = 16384;
var c_solid = 32768;
var c_NoCol = 65536;
var f_Lobby = 2;
var f_Group = 64;
var f_MembersOnly = 128;
var f_MembersOnly2 = 1048576;
var f_Live = 2097152;
var f_NoList = 512;
var f_NoSmilies = 2048;
var f_DefNoSound = 131072;
var l_Kiss = 900000;
var l_Hint = 800000;
var l_Diag = 500000;
var l_Box = 700000;
var l_Eip = 600000;
var MaxT = 10;
MovieClip.prototype.setcolor = function (theColor) {
new Color(this).setRGB(theColor);
};
var SockStatus = new Array(40, 41, 42, 43);
var NetworkState;
var NetworkTimeout;
var MessageCount;
var LurkerLimit;
var LurkerTimeout;
var socket;
var UnfairFile = "";
var UnfairMessage = "";
var UnfairGroupName = "";
var GotDone = false;
var GotFirstDone = false;
var w_redirectdom = undefined;
var w_redirectport = undefined;
var QK = false;
var YI = undefined;
var WV = false;
var LastLocate = 0;
var FailoverMode = false;
var test_xml;
var fs = 0;
var sjt = 0;
var jt1 = 0;
var jt2 = 0;
var UngagTimeout = undefined;
var Fire = true;
var Bootp = undefined;
PopupState = 0;
var HintHldMc;
var HintDisplayed = false;
var HintBoxx;
var HintBoxy;
var Hinttxt;
var Hintvis = false;
var HintPos;
var Hintsize;
var HintMaxWidth;
var HintUpdate = 0;
var un = "";
var eip_back;
var eip_pw;
var eip_id;
var eip_oldback;
var eip_i = new Array();
var eip_w = new Array();
var eip_h = new Array();
var HelpText = undefined;
var mcWF;
var mcgetchat;
var mcgetagroup;
var mcmakeagroup;
mcgetchat_onRelease = function () {
mcgetchat.TextCol = 16711680 /* 0xFF0000 */;
mcgetgroup.TextCol = 0;
removeMovieClip(mcWF);
eip(2);
};
mcgetgroup_onRelease = function () {
mcgetchat.TextCol = 0;
mcgetgroup.TextCol = 16711680 /* 0xFF0000 */;
removeMovieClip(mcWF);
SetEmbedCode(w_room, gn, true);
};
mcmakeagroup_onRelease = function () {
mcreturn_onRelease();
var _local1 = "http://www.xat.com/web_gear/chat/creategroup.php";
getURL (_local1, "_blank");
UrlPopup(ST(92), _local1);
};
var tf3;
var tf3b;
var tf4;
var tf4b;
var tf5;
var tf5b;
var PassField;
var PassFieldbackground;
var powersinc = 0;
var powersincc = 0;
var userid = 0;
var boutin = false;
var stime = 0;
var fpstf = undefined;
var fps = 0;
var debug = false;
var AppTimeout = undefined;
var mi = 0;
var sending_lc;
var receiving_lc;
var messageecho = undefined;
var connectchannel = undefined;
var connectuser = undefined;
var connectmessage = undefined;
xn = _global.xn;
xp = _global.xp;
xh = _global.xh;
xb = _global.xb;
xl = _global.xl;
xm = _global.xm;
xt = _global.xt;
xo = _global.xo;
xc = _global.xc;
if (_global.um) {
um = xInt(_global.um);
}
if (w_lang == undefined) {
w_lang = _global.lg;
}
if (w_langv == undefined) {
w_langv = _global.lv;
}
w_roomlang = _global.rl;
toxat = "toxat";
fromxat = "fromxat";
if (cn == undefined) {
cn = _global.cn;
}
if (cn != undefined) {
toxat = toxat + cn;
fromxat = fromxat + cn;
}
sending_lc = new LocalConnection();
receiving_lc = new LocalConnection();
sending_lc3 = new LocalConnection();
receiving_lc3 = new LocalConnection();
if (xc & 2048) {
receiving_lc.connect(toxat);
receiving_lc3.connect("a" + toxat);
}
receiving_lc3.onMsg = function (msg) {
doxatMsg(msg);
};
receiving_lc.onMsg = function (channel, user, msg) {
trace((((("RX:" + channel) + " ") + user) + " ") + msg);
if (channel == 1) {
connectchannel = channel;
connectuser = user;
connectmessage = msg;
if (lb != "n") {
sending_lc.send(fromxat, "onMsg", channel, user, msg);
}
AppTimeout = 120;
} else if (channel == 2) {
var _local12 = TabUser();
sending_lc.send(fromxat, "onMsg", 2, ((_local12 == undefined) ? 0 : (_local12)), "");
} else if (channel == 3) {
if (msg == 0) {
msg = w_userno;
}
var _local7 = FindUser(msg);
if (_local7 != -1) {
sending_lc.send(fromxat, "onMsg", channel, ((msg == w_userno) ? 0 : (Users[_local7].u)), Users[_local7].n);
}
} else if (channel == 4) {
messageecho = msg;
if (messageecho == "a") {
sending_lc.send(fromxat, "onMsg", 4, 0, "d");
var _local8 = Users.length;
var _local2 = 0;
while (_local2 < _local8) {
if (Users[_local2].online == true) {
sending_lc.send(fromxat, "onMsg", 4, Users[_local2].u, "u" + Users[_local2].a);
trace("a:" + Users[_local2].a);
}
_local2++;
}
}
} else if ((channel >= 10000) || (channel == 0)) {
if ((channel >= 40000) && (channel <= 50000)) {
if (msg == "j") {
NetworkSendExtMessage(msg);
} else {
NetworkSendxmlExtMessage(msg);
}
} else {
NetworkSendExtMessage(channel, user, msg);
if ((channel == 10001) && (msg.substr(0, 1) == "b")) {
UpdateDJ(w_userno);
}
}
} else if (channel == 5) {
Selection.setFocus(null);
textfield2.text = textfield2.text + msg;
CursorRight = true;
} else if (channel == 6) {
if (msg == 0) {
msg = w_userno;
}
var _local7 = FindUser(msg);
if (_local7 != -1) {
sending_lc.send(fromxat, "onMsg", channel, Users[_local7].u, Users[_local7]);
}
} else if (channel == 7) {
if (msg == "x") {
GotoProfile(user);
} else if (msg == "p") {
CreateViewProfileDialog(user);
} else if (msg == "b") {
Register_onRelease(1);
}
} else if (channel == 8) {
w_avatar = msg;
var _local10 = SharedObject.getLocal("chat", "/");
if (_local10 != null) {
_local10.data.w_avatar = w_avatar;
_local10.flush();
}
lb = "n";
DoUpdate = true;
NetworkClose();
logoutbutonPress();
} else if (channel == 9) {
var _local11 = "not set";
switch (msg) {
case "sv" :
_local11 = _global.sv;
break;
default :
_local11 = _level0[msg];
}
sending_lc.send(fromxat, "onMsg", channel, msg, _local11);
} else if (channel == 10) {
var _local9 = Message.length;
i = 0;
while (i < _local9) {
trace((Message[i].i + " ") + xInt(user));
if (Message[i].i == xInt(user)) {
if (msg != "") {
if (Message[i].t.indexOf(" [") != -1) {
Message[i].t = ((Message[i].t.substr(0, Message[i].t.indexOf(" [")) + " [") + msg) + "]";
} else {
Message[i].t = ((Message[i].t + " [") + msg) + "]";
}
}
removeMovieClip(Message[i].mc);
Message[i].mc = undefined;
DoUpdateMessages = true;
if (xInt(user) & 1) {
var _local5 = Message[i].t;
DoUpdateMessages = true;
ScrollDown = true;
LastScrollTime = undefined;
if (MessageCount > 0) {
MessageCount = 25;
}
if (_local5 != LastMessageToSend) {
if (MessageToSend.length == 0) {
MessageToSend = _local5;
}
MessageToSend = MessageToSend.substr(0, 256);
} else {
MessageCount = 25;
}
}
break;
}
i++;
}
}
};
mcLoad = _root.createEmptyMovieClip("Load" + _root.depth, _root.depth++);
mcLoad._visible = false;
mcLoad.loadMovie("http://xat.com/web_gear/flash/load.swf?b5");
if ((_global.pw != undefined) && (_global.em != undefined)) {
w_password = CleanText(_global.pw, 1);
}
w_email = CleanText(_global.em, 0);
if (_global.pw == "##") {
RefreshLogin = true;
}
var mctab;
var mctextbackground;
var mscrollmc;
var mcuserbackground;
var uscrollmc;
var ImagePaneData;
var ImagePaneVars;
if (ImagePaneVars == undefined) {
ImagePaneVars = new Object();
}
var bscrollmc;
var textfield2background;
var textfield2;
var txt1;
var txt2;
var mcok;
var retmc;
var mc1;
var mc2;
var mc3;
var em;
if (em == undefined) {
em = new Array();
}
var mcgetachat;
var mcsnd;
var ButtonLoginMc;
var xcodetextbox;
var mcget;
var lockmc;
var fmt;
var lb;
if (lb == undefined) {
lb = "n";
}
var lastMessage;
if (lastMessage == undefined) {
lastMessage = 1;
}
var Message;
if (Message == undefined) {
Message = new Array();
}
var Users;
if (Users == undefined) {
Users = new Array();
}
var yc;
if (yc == undefined) {
yc = 0;
}
var useryc;
if (useryc == undefined) {
useryc = 0;
}
var DeleteNumber;
var uMessLst;
var Avatars;
if (Avatars == undefined) {
Avatars = new Array();
}
var AvsLoad;
if (AvsLoad == undefined) {
AvsLoad = new Array();
}
var DoneStartupTab;
if (DoneStartUpTab == undefiend) {
DoneStartupTab = false;
}
if (w_Vol == undefined) {
var w_Vol = new Array();
}
var MovieHash = new Object();
ButCol = 13158600 /* 0xC8C8C8 */;
ButColW = 0;
if (!id) {
id = _global.id;
}
pass = _global.pass;
if (pass <= 0) {
pass = undefined;
}
var group;
if (group == undefined) {
group = ((xl != undefined) ? (xl) : 1);
}
var w_room;
if (w_room == undefined) {
w_room = xInt(String(id));
}
var w_pool;
if (w_pool == undefined) {
w_pool = 0;
}
var Pools;
if (Pools == undefined) {
Pools = new Array();
}
if (w_room <= 0) {
w_room = 1;
}
if (w_room == 8) {
var savd = _root.depth;
_root.depth = 10000000 /* 0x989680 */;
AddBackground(-10, -10, 240, 160, 131072);
_root.depth = savd;
}
if (w_userno == undefined) {
w_userno = 0;
}
if (w_k1b == undefined) {
w_k1b = 0;
}
if (w_k2 == undefined) {
w_k2 = 0;
}
if (w_d0 == undefined) {
w_d0 = 0;
}
if (w_coins == undefined) {
w_coins = 0;
}
if (w_k3 == undefined) {
w_k3 = 0;
}
if (w_name == undefined) {
w_name = "";
}
if (w_avatar == undefined) {
w_avatar = "";
}
if (w_homepage == undefined) {
w_homepage = "";
}
if (w_sound == undefined) {
w_sound = undefined;
}
if (w_help == undefined) {
w_help = true;
}
if (w_hints == undefined) {
w_hints = true;
}
if (w_attract == undefined) {
w_attract = true;
}
if (w_banlist == undefined) {
w_banlist = new Array();
}
if (w_friendlist == undefined) {
w_friendlist = new Array();
}
if (w_friendlist2 == undefined) {
w_friendlist2 = new Object();
}
if (w_ignorelist2 == undefined) {
w_ignorelist2 = new Object();
}
if (w_mainowner == undefined) {
w_mainowner = false;
}
if (w_owner == undefined) {
w_owner = false;
}
if (w_moderator == undefined) {
w_moderator = false;
}
if (w_member == undefined) {
w_member = false;
}
if (w_autologin == undefined) {
w_autologin = 65535;
}
autologin = w_autologin;
if (w_userrevlist == undefined) {
w_userrevlist = new Array();
}
if (w_namelist == undefined) {
w_namelist = new Array();
}
if (w_avatarlist == undefined) {
w_avatarlist = new Array();
}
if (w_homepagelist == undefined) {
w_homepagelist = new Array();
}
if (uMessLst == undefined) {
uMessLst = new Array();
}
var usebackground;
if (usebackground == undefined) {
usebackground = "#000000";
}
var useport;
if (useport == undefined) {
useport = 0;
}
var w_useroom;
if (w_useroom == undefined) {
w_useroom = w_room;
}
var PrivateChat;
if (PrivateChat == undefined) {
PrivateChat = 0;
}
var PrivateMessage;
if (PrivateMessage == undefined) {
PrivateMessage = 0;
}
var LastMessageToSend;
if ((LastMessageToSend = undefined)) {
LastMessageToSend = "";
}
w_pass = undefined;
var mspos = undefined;
var pic;
var timer = 0;
var MessageToProcess = "";
var MessageToSend = "";
var oldvPosition = 0;
var ScrollDown = false;
var CursorRight = false;
var ResetSmilies = false;
var SoundPlaying = false;
var CustomSound = "";
var sndmc;
var beep;
var dingdong;
var tab_sound;
var sfx_sound;
var HelpUpdate = 0;
var helpstr = "";
var DoUpdate = false;
var DoSelect = false;
var heartbeatduration = 83;
var tick = 0;
var heartbeatid;
var StartUpTimeOut;
if (StartUpTimeOut == undefined) {
StartUpTimeOut = 0;
}
var LastScrollTime = undefined;
var mcscroller;
var mcscrollertext;
var fmts = new TextFormat();
var RadioLastLoad = undefined;
var DialogOpen = 0;
var myDropFilter = (new flash.filters.DropShadowFilter(6, 45, 0, 0.6, 5, 5, 1, 1, false, false, false));
var DropFilter = new Array();
DropFilter.push(myDropFilter);
TextGlow = new Array();
var tg = (new flash.filters.GlowFilter(65280, 0.7, 4, 4, 6, 3, false, false));
TextGlow.push(tg);
if (tabs == undefined) {
tabs = new Array();
}
var LoginPressed = false;
var vs = System.capabilities.version;
var sot;
if (xInt(vs.substr(vs.indexOf(" ") + 1)) < 9) {
var url = "http://www.adobe.com/go/getflashplayer";
getURL (url, "_blank");
UrlPopup("Flash Update", url, "New version of Flash required. Download here:");
}
if ((StartUpState == undefined) || (StartUpState == 0)) {
sot = SharedObject.getLocal("chat", "/");
sot.data.w_test = Math.random();
StartUpState = 1;
}
if (StartUpState == 1) {
flushret = sot.flush();
if (flushret == true) {
if (sot != null) {
delete sot;
}
StartUpState = 2;
}
}
if (StartUpState == 2) {
CookieStuff();
if (w_lang == undefined) {
if (w_roomlang == undefined) {
StartUpState = 5;
} else {
w_lang = w_roomlang;
StartUpState = 3;
}
} else if (w_lang == 0) {
StartUpState = 5;
} else {
StartUpState = 3;
}
}
if (StartUpState == 3) {
LangText = undefined;
var temp_comm = (((GetLangDom() + w_lang) + ".xml?") + w_langv);
loadVariables (temp_comm, _root);
StartUpState = 4;
}
if (StartUpState == 4) {
if (LangText != undefined) {
CreateST();
StartUpState = 5;
}
}
if (StartUpState == 5) {
NetworkInit();
StartChat();
StartUpState = 6;
}
if (StartUpState != 6) {
StartUpTimeOut++;
if (StartUpTimeOut >= 20) {
StartUpState = 5;
}
gotoAndPlay (1);
}
gotoAndPlay ("Main");
var OnSuper = undefined;
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
if ((OnSuper == false) && (lb == "t")) {
NetworkSendMsg(1, "/K2", 0, 0, 1);
OnSuper = true;
}
};
Mouse.addListener(mouseListener);
Frame 7 (15 B)
trace("tick");
Frame 8 (22 B)
gotoAndPlay ("Main");
Frame 9 (15.74 KiB) ● ● ●
function DoRadio() {
if (RadioLastLoad != undefined) {
if ((tick % 12) == 0) {
trace(timer - RadioLastLoad);
}
if ((timer - RadioLastLoad) > 3600000) {
trace("Resync");
RadioLastLoad = undefined;
useRadio2 = undefined;
}
}
if ((McRadio == undefined) && (useRadio == undefined)) {
return(undefined);
}
if (((w_sound & 2) == 0) || (useRadio2 != useRadio)) {
delete McRadio.RadioStream;
removeMovieClip(McRadio);
McRadio = undefined;
useRadio2 = useRadio;
RadioLastLoad = undefined;
return(undefined);
}
var _local2 = 120;
if (!McRadio) {
McRadio = _root.createEmptyMovieClip("McRadio", _root.depth++);
LoadRadio();
SoundTimeout = _local2;
}
SoundTimeout--;
McRadio.RadioStream.setVolume(w_Vol[2]);
if (McRadio.RadioStream.position == 0) {
if (SoundTimeout < 0) {
LoadRadio();
SoundTimeout = _local2;
}
} else {
SoundTimeout = _local2;
}
}
function LoadRadio() {
delete McRadio.RadioStream;
McRadio.RadioStream = new Sound(McRadio);
McRadio.RadioStream.onLoad = function (success) {
};
var _local1 = "/;";
if (useRadio.substr(useRadio.length - 4, 4) == ".mp3") {
_local1 = "";
}
McRadio.RadioStream.loadSound(useRadio + _local1, true);
RadioLastLoad = timer;
}
tick++;
timer = getTimer();
if (debug && ((tick % 12) == 0)) {
fps = Math.round(1200000 / (timer - stime)) / 100;
stime = timer;
if (fpstf == undefined) {
fpstf = createTextField("_fpstf", _root.depth++, NX(410), NY(310), NX(200), NY(20));
fpstf.selectable = false;
fpstf.setNewTextFormat(fmt);
}
fpstf.text = fps;
}
if (DoSelect) {
Selection.setFocus("xcodetextbox");
Selection.setSelection(xcodetextbox.length, 0);
DoSelect = false;
}
if (DoUpdate == true) {
DoUpdate = false;
Update();
}
if (DoUpdateMessages || (ScrollDown)) {
if ((mscrollmc.Scrolling == true) || (mscrollmc.ScrollPressed == true)) {
LastScrollTime = getTimer();
mscrollmc.ScrollPressed = false;
UpdateMessages(true, true);
} else {
if (mscrollmc.Scr_position == mscrollmc.Scr_size) {
LastScrollTime = undefined;
}
var scr = false;
if (LastScrollTime != undefined) {
if ((getTimer() - LastScrollTime) < 10000) {
scr = true;
} else {
LastScrollTime = undefined;
}
}
if (LastScrollTime == undefined) {
UpdateMessages(true, scr);
}
}
}
if ((DoBuildUserList == true) || (DoBuildUserListScrollUp == true)) {
BuildUserList();
DoBuildUserList = false;
DoBuildUserListScrollUp = false;
} else if (UserScroll) {
var st = getTimer();
useryc = useryc2;
var UsersLength = Users.length;
var ww = 0;
while (ww < UsersLength) {
if (Users[poin[ww].index].Vis) {
AddUserToList(poin[ww].index);
}
ww++;
}
trace("**BuildUserList=" + (getTimer() - st));
}
UserScroll = false;
if (AvsLoad.length > 0) {
var n;
var m;
var mc;
var Dels = new Array();
var Already = new Array();
var ThisTick = 0;
n = 0;
for ( ; n < AvsLoad.length ; n++) {
var Av = AvsLoad[n].mc;
if (((mc = Av.b.c)) != undefined) {
if (AvsLoad[n].Count > 0) {
AvsLoad[n].Count--;
} else {
Av.Gray._visible = true;
}
if (Av.St == 1) {
if (ThisTick) {
continue;
}
var Hash = MovieHash[Av.U1];
if (Hash == 1) {
} else if (Hash == 3) {
} else {
if (Hash == undefined) {
MovieHash[Av.U1] = 1;
}
ThisTick++;
Av.b.c.loadMovie(Av.U1);
Av.St = 2;
var AnimOK = false;
if (mc._width > 0) {
MovieHash[Av.U1] = 2;
if (Av.An > 0) {
Av.Ac = (Av.Ac + 1) % Av.Rat;
mc._x = (-mc._height) * Av.Ac;
} else {
if (((mc._width * mc._height) > 786432) || ((!Av.sm) && (mc.getSWFVersion() >= 0))) {
MovieHash[Av.U1] = 3;
removeMovieClip(mc);
AvsLoad[n].Count = 0;
} else {
if (Av.sm) {
mc._xscale = (mc._yscale = 158);
} else {
Av.Rat = xInt(mc._width / mc._height);
if (Av.Rat >= 3) {
if (Av.U2 != undefined) {
unloadMovie (mc);
Av.U1 = Av.U2;
Av.U2 = undefined;
Av.St = 1;
continue;
}
var canvasmask = Av.createEmptyMovieClip("mask", _root.depth++);
canvasmask.beginFill(0, 100);
canvasmask.lineStyle(0, 0, 0);
Rectangle(canvasmask, 0, 0, 30, 30);
Av.b.setMask(canvasmask);
Av.Ac = 0;
Av.An = -Av.An;
mc._xscale = (mc._yscale = xInt(3000 / mc._height));
if (Av.An & 2) {
AnimOK = true;
} else if (Av.An & 1) {
mc._x = (-mc._height) * xInt(Math.random() * Av.Rat);
}
} else {
mc._xscale = xInt(3000 / mc._width);
mc._yscale = xInt(3000 / mc._height);
}
}
mc._visible = true;
removeMovieClip(Av.Gray);
if (Av.Glitter != undefined) {
Av.createEmptyMovieClip("g", Av.dp);
var u = SmilieUrl(Av.Glitter, "gt");
if (Av.Glitter2) {
u = u + ("&s=" + Av.Glitter2);
}
Av.g._lockroot = true;
Av.g.loadMovie(u);
}
}
if (AnimOK == false) {
Dels.push(n);
}
}
}
continue;
m = AvsLoad[n].idx;
mc = Avatars[m].mc;
if (Already[m] == undefined) {
Already[m] = 1;
_level0.Avatars[m].Count++;
}
if (mc._width > 0) {
mc.a._width = 30;
mc.a._height = 30;
Avatars[m].Bits = new flash.display.BitmapData(30, 30, true, 16777215);
Avatars[m].Bits.draw(mc);
Avatars[m].Loading = false;
unloadMovie (mc.a);
removeMovieClip(mc.a);
removeMovieClip(mc);
} else if (_level0.Avatars[m].Count > 1440) {
unloadMovie (mc.a);
removeMovieClip(mc.a);
removeMovieClip(mc);
}
if (Avatars[m].Bits != undefined) {
AvsLoad[n].mc.attachBitmap(Avatars[m].Bits, _root.depth++);
removeMovieClip(AvsLoad[n].mc.Gray);
Dels.push(n);
} else if (_level0.Avatars[m].Count > 18) {
AvsLoad[n].mc.Gray._visible = true;
}
}
}
var AnimOK = false;
if (mc._width > 0) {
MovieHash[Av.U1] = 2;
if (Av.An > 0) {
Av.Ac = (Av.Ac + 1) % Av.Rat;
mc._x = (-mc._height) * Av.Ac;
} else {
if (((mc._width * mc._height) > 786432) || ((!Av.sm) && (mc.getSWFVersion() >= 0))) {
MovieHash[Av.U1] = 3;
removeMovieClip(mc);
AvsLoad[n].Count = 0;
} else {
if (Av.sm) {
mc._xscale = (mc._yscale = 158);
} else {
Av.Rat = xInt(mc._width / mc._height);
if (Av.Rat >= 3) {
if (Av.U2 != undefined) {
unloadMovie (mc);
Av.U1 = Av.U2;
Av.U2 = undefined;
Av.St = 1;
continue;
}
var canvasmask = Av.createEmptyMovieClip("mask", _root.depth++);
canvasmask.beginFill(0, 100);
canvasmask.lineStyle(0, 0, 0);
Rectangle(canvasmask, 0, 0, 30, 30);
Av.b.setMask(canvasmask);
Av.Ac = 0;
Av.An = -Av.An;
mc._xscale = (mc._yscale = xInt(3000 / mc._height));
if (Av.An & 2) {
AnimOK = true;
} else if (Av.An & 1) {
mc._x = (-mc._height) * xInt(Math.random() * Av.Rat);
}
} else {
mc._xscale = xInt(3000 / mc._width);
mc._yscale = xInt(3000 / mc._height);
}
}
mc._visible = true;
removeMovieClip(Av.Gray);
if (Av.Glitter != undefined) {
Av.createEmptyMovieClip("g", Av.dp);
var u = SmilieUrl(Av.Glitter, "gt");
if (Av.Glitter2) {
u = u + ("&s=" + Av.Glitter2);
}
Av.g._lockroot = true;
Av.g.loadMovie(u);
}
}
if (AnimOK == false) {
Dels.push(n);
}
}
}
} else {
m = AvsLoad[n].idx;
mc = Avatars[m].mc;
if (Already[m] == undefined) {
Already[m] = 1;
_level0.Avatars[m].Count++;
}
if (mc._width > 0) {
mc.a._width = 30;
mc.a._height = 30;
Avatars[m].Bits = new flash.display.BitmapData(30, 30, true, 16777215);
Avatars[m].Bits.draw(mc);
Avatars[m].Loading = false;
unloadMovie (mc.a);
removeMovieClip(mc.a);
removeMovieClip(mc);
} else if (_level0.Avatars[m].Count > 1440) {
unloadMovie (mc.a);
removeMovieClip(mc.a);
removeMovieClip(mc);
}
if (Avatars[m].Bits != undefined) {
AvsLoad[n].mc.attachBitmap(Avatars[m].Bits, _root.depth++);
removeMovieClip(AvsLoad[n].mc.Gray);
Dels.push(n);
} else if (_level0.Avatars[m].Count > 18) {
AvsLoad[n].mc.Gray._visible = true;
}
}
}
n = 0;
while (n < Dels.length) {
AvsLoad.splice(Dels[n] - n, 1);
n++;
}
}
if ((tick % 16) == 0) {
ou = 0;
var UsersLength = Users.length;
r = 0;
while (r < UsersLength) {
if (Users[r].online) {
ou++;
}
if (ou >= 2) {
break;
}
r++;
}
if (ou == 1) {
GrpIc.filters = TextGlow;
GrpIc.glowc = 6;
}
}
if (GrpIc.glowc > 1) {
GrpIc.glowc--;
} else {
GrpIc.filters = null;
}
if (GlowFlag) {
GlowFlag = false;
var UsersLength = Users.length;
var w = 0;
while (w < UsersLength) {
if (Users[w].mc.av1.filters != null) {
if (Users[w].glowc > 0) {
Users[w].glowc--;
GlowFlag = true;
} else {
Users[w].mc.av1.filters = null;
}
}
w++;
}
}
if (TabGlowFlag) {
TabGlowFlag = false;
var w = 0;
while (w < tabs.length) {
if (tabs[w].glowc > 0) {
tabs[w].glowc--;
TabGlowFlag = true;
} else {
tabs[w].mc.bub.filters = null;
}
w++;
}
}
var Dia = mcprofilebackground.Dia;
if (Dia.av == undefined) {
Dia = mcviewprofilebackground.Dia;
}
if ((Dia.av != undefined) && (Dia.loading == true)) {
if ((Dia.av.av._width != undefined) && (Dia.av.av._width > 0)) {
Dia.loading = false;
Dia.av._visible = true;
Dia.av.av._width = 30;
Dia.av.av._height = 30;
}
}
if (CurrentEipBack != undefined) {
var oldb;
var newb;
if (CurrentEipBack == 0) {
newb = mc2;
oldb = mc4;
} else {
newb = mc4;
oldb = mc2;
}
var newpic = newb.pic;
var oldpic = oldb.pic;
if (((newb.Done == 0) && (newpic._width > 0)) || (newb.Done == 2)) {
if (vvv == undefined) {
vvv = 1;
}
newpic._width = StageWidth * vvv;
newpic._height = StageHeight * vvv;
newb._visible = true;
oldpic.clear();
unloadMovie (oldpic);
oldb._visible = false;
newb.Done = 1;
}
}
ImagePaneTick();
NetworkTick();
if (CursorRight == true) {
if (Selection.getCaretIndex() == textfield2.length) {
CursorRight = false;
} else {
Selection.setFocus("textfield2");
Selection.setSelection(textfield2.length, textfield2.length + 1);
}
}
if ((f_NoSmilies & FlagBits) && (SmilieUpdate >= 0)) {
if (SmilieUpdate > heartbeatduration) {
SmilieUpdate = SmilieUpdate - heartbeatduration;
} else {
SmilieUpdate = 0;
}
if (SmilieUpdate == 0) {
emi = 1;
while (emi < emmax) {
em[emi]._visible = false;
emi++;
}
SmilieUpdate = -1;
}
}
if (((lb == "n") && ((tick % 64) == 63)) || (ResetSmilies)) {
rr = 0;
while (rr < emmax) {
em[rr]._width = em[rr].startw;
em[rr]._height = em[rr].starth;
em[rr]._x = em[rr].startx;
em[rr]._y = em[rr].starty;
rr++;
}
ResetSmilies = false;
} else if ((w_attract && (lb == "n")) && ((tick % 64) > 47)) {
if ((tick % 128) > 63) {
var Wave = Array(1, 2, 1);
var Amplitude = ((StageHeight * 12) / 480);
rr = 0;
while (rr < emmax) {
var A = (((-rr) - Wave.length) + (tick % 16));
if ((A < 0) || (A >= Wave.length)) {
A = 0;
} else {
A = Wave[A];
}
em[rr]._width = em[rr].startw + (A * 3);
em[rr]._height = em[rr]._width;
em[rr]._x = em[rr].startx;
em[rr]._y = em[rr].starty - (A * Amplitude);
rr++;
}
} else {
var Amplitude = 0;
if ((tick % 16) > 8) {
Amplitude = (StageHeight / 240) * (16 - (tick % 16));
} else {
Amplitude = (StageHeight / 240) * (tick % 16);
}
rr = 0;
while (rr < emmax) {
em[rr]._width = em[rr].startw + ((Math.sin(tick + rr) + 1) * (Amplitude / 3));
em[rr]._height = em[rr].starth + ((Math.sin(tick + rr) + 1) * (Amplitude / 3));
em[rr]._x = em[rr].startx - ((em[rr]._width - em[rr].startw) / 2);
em[rr]._y = em[rr].starty + (Math.sin(tick + rr) * Amplitude);
rr++;
}
}
}
if (w_sound & 1) {
if (DoMessageSnd) {
DoMessageSnd = false;
beep.onSoundComplete = function () {
mcsnd.nosnd.gotoAndStop(1);
};
beep.start();
mcsnd.nosnd.play();
}
if (DoUserSnd) {
DoUserSnd = false;
dingdong.onSoundComplete = function () {
mcsnd.nosnd.gotoAndStop(1);
};
dingdong.start();
mcsnd.nosnd.play();
}
if (DoTabSnd) {
DoTabSnd = false;
tab_sound.onSoundComplete = function () {
mcsnd.nosnd.gotoAndStop(1);
};
tab_sound.start();
mcsnd.nosnd.play();
}
if (DoAudieSnd) {
DoAudieSnd = false;
sfx_sound = new Sound(sndmc);
sfx_sound.onLoad = function (success) {
if (success) {
trace("soundloaded!");
sfx_sound.setVolume(w_Vol[1]);
sfx_sound.start();
mcsnd.nosnd.play();
} else {
trace("failed to load sound");
}
};
sfx_sound.onSoundComplete = function () {
trace("sounddone!");
mcsnd.nosnd.gotoAndStop(1);
sfx_sound = undefined;
};
sfx_sound.loadSound(((chatdomain + "snd/") + CustomSound) + ".mp3", false);
}
} else {
DoMessageSnd = false;
DoUserSnd = false;
DoTabSnd = false;
DoAudieSnd = false;
}
DoRadio();
if (HintUpdate >= 0) {
if (HintUpdate > heartbeatduration) {
HintUpdate = HintUpdate - heartbeatduration;
} else {
HintUpdate = 0;
}
if (HintUpdate == 0) {
HintDisplayed = Hintvis;
if (w_hints) {
DoHint(HintBoxx, HintBoxy, Hinttxt, Hintvis, HintPos, Hintsize, HintMaxWidth, HintMc);
HintUpdate = -1;
}
}
}
HelpUpdate = HelpUpdate - heartbeatduration;
if (HelpUpdate < 0) {
HelpUpdate = 0;
}
if ((helpstr != "") && (HelpUpdate <= 0)) {
if (w_help) {
DoMessageSnd = true;
Message.push({n:0, t:helpstr, u:0});
DoUpdateMessages = true;
ScrollDown = true;
}
helpstr = "";
}
HelpTick();
if (mcscrollertext.text != "") {
if (mcscrollertext.textWidth > NX(430)) {
mcscrollertext._x = mcscrollertext._x - 1;
if (mcscrollertext._x < (NX(10) - mcscrollertext.textWidth)) {
mcscrollertext._x = NX(430);
}
} else if (mcscrollertext._x > ((NX(430) - mcscrollertext.textWidth) / 2)) {
mcscrollertext._x = mcscrollertext._x - 1;
}
}
if (BB != undefined) {
var n;
n = 1;
while (n < 5) {
BB[n] = Number(BB[n]);
if (isNaN(BB[n])) {
BB = undefined;
}
n++;
}
if (BB2 == undefined) {
BB2 = new Array();
}
BB[1] = BB[1] - 0.08333333;
if ((((BB == undefined) || (BB[1] > 3600)) || (BB[1] <= 0)) || (BB[2] > 50)) {
BB = undefined;
} else {
BB[3] = BB[3] + (BB[2] / 12);
if ((BB[3] > 1) && (BB[3] > (BB[2] / 12))) {
BB[3] = BB[2] / 12;
}
n = 0;
while (BB[3] >= 1) {
BB[3] = BB[3] - 1;
if (BB[BB[4]] == undefined) {
BB[4] = 5;
}
delete BB2[n];
BB2[n] = new XML();
BB2[n].load((("http://" + CleanText(BB[BB[4]], 1)) + "/?") + Math.random());
BB[4]++;
}
}
}
running = true;
gotoAndPlay ("Main");
if ((pic._width > 0) && (pic.getSWFVersion() >= 0)) {
removeMovieClip(pic);
}
if (AppTimeout != undefined) {
AppTimeout--;
if (AppTimeout <= 0) {
if (messageecho == "m") {
messageecho = undefined;
}
AppTimeout = undefined;
}
}
Symbol 151 MovieClip [__Packages.xDialog] Frame 0 (2.31 KiB) ●
class xDialog
{
var Dia;
function xDialog (x, y, w, h, Title, Body, Flags, CloseFunc) {
_level0.HintOff();
Dia = _level0.createEmptyMovieClip("mc" + _root.depth, _root.depth++);
Dia.CloseFunc = CloseFunc;
var _local7 = 0;
Dia.beginFill(0, 30);
_level0.ButtonCurve2(Dia, 0, _level0.StageWidth, _level0.StageHeight, 0, 0, 0, 0);
if (x == undefined) {
w = 300;
if (w > (_level0.StageWidth - 10)) {
w = _level0.StageWidth - 10;
}
h = 170;
if (h > (_level0.StageHeight - 10)) {
h = _level0.StageHeight - 10;
}
x = (_level0.StageWidth / 2) - (w / 2);
y = (_level0.StageHeight / 2) - (h / 2);
}
Dia.Back = new xBut(x, y, w, h, "", _level0.nd, (_level0.b_Panel | _level0.b_Border) | _level0.b_NoPress);
Dia.y = y;
Dia.h = h;
Dia.x = x;
Dia.w = w;
if (Title.length > 0) {
_local7 = _level0.NY(30);
if (_local7 < 23) {
_local7 = 23;
}
if (_local7 > 30) {
_local7 = 30;
}
Dia.Bar = new xBut(x, y, w, _local7, " " + Title, _level0.nd, (((_level0.c_bl | _level0.c_br) | _level0.b_LeftText) | _level0.b_Border) | _level0.b_NoPress);
Dia.Bar.But.attachMovie("close", "cl", _root.depth++);
Dia.Bar.But.cl._y = int((_local7 - Dia.Bar.But.cl._height) / 2);
Dia.Bar.But.cl._x = (w - Dia.Bar.But.cl._width) - Dia.Bar.But.cl._y;
Dia.Bar.But.cl.Parent = Dia;
Dia.Bar.But.cl.onPress = function () {
this.Parent.Delete(this.Parent);
};
}
if (Body.length > 0) {
Dia.Body = Dia.Back.But.createEmptyMovieClip("mc" + _root.depth, _root.depth++);
_level0.createTextNoWrap(Dia.Body, 5, _local7, w - 10, (h - _local7) - 30, Body, 0, 16777185, 100, 0, 18, "left", 2);
}
Dia.Delete = function (arg) {
if (arg == undefined) {
arg = this;
}
var _local3 = arg.CloseFunc;
if (_local3 != undefined) {
arg.CloseFunc = undefined;
_local3();
}
arg.Ok.But.Delete();
removeMovieClip(arg.Body);
arg.Bar.But.Delete();
arg.Back.But.Delete();
removeMovieClip(arg);
};
Dia.OkPress = function () {
this.Parent.Delete(this.Parent);
};
if (Flags & 1) {
Dia.Ok = new xBut(x + int((w - 100) / 2), (y + h) - 30, 100, 25, _level0.ST(45), Dia.OkPress);
Dia.Ok.But.Parent = Dia;
}
Dia.onPress = function () {
this.Delete(this);
};
}
}
Symbol 152 MovieClip [__Packages.xBut] Frame 0 (5.12 KiB) ● ●
class xBut extends MovieClip
{
var But, __get__PressFunc, __get__TextCol, __get__Col;
function xBut (X, Y, W, H, Text, PressFunc, Flags, Radius, Mc) {
super();
if (Mc == undefined) {
Mc = _level0;
}
But = Mc.createEmptyMovieClip("But" + _root.depth, _root.depth++);
var mcFmt = ((But.mcFmt = new TextFormat()));
if (Flags == undefined) {
Flags = 0;
}
if (Radius == undefined) {
Radius = 10;
}
But.TextCol = _level0.ButColW;
But.ButCol = _level0.ButCol;
if (Flags & (_level0.b_Panel | _level0.b_Gray)) {
But.TextCol = 0;
}
if (Flags & _level0.b_Panel) {
var _local4 = 0;
while (_local4 < 2) {
if ((But.ButCol & 8421504) == 0) {
But.ButCol = But.ButCol << 1;
}
_local4++;
}
}
if (Flags & _level0.b_Gray) {
But.ButCol = 13158600 /* 0xC8C8C8 */;
}
But.PressFunc = PressFunc;
if (Flags & _level0.b_Grayed) {
But._alpha = 40;
}
var _local17;
var _local18;
But.sx = (But._x = int(X));
But.sy = (But._y = int(Y));
var _local7 = (But.sw = int(W));
var _local6 = (But.sh = int(H));
mcFmt.align = "center";
if (Flags & _level0.b_LeftText) {
mcFmt.align = "left";
}
mcFmt.bold = true;
mcFmt.color = But.TextCol;
mcFmt.font = "_sans";
var _local9 = _level0.Blend(_local7, 70, 150, 8, 20);
var _local10 = _level0.Blend(_local6, 15, 40, 10, 20);
mcFmt.size = _local9;
if (_local10 < _local9) {
mcFmt.size = _local10;
}
if (Flags > 16777215) {
mcFmt.size = mcFmt.size + (Flags >> 24);
}
But.createEmptyMovieClip("but", _root.depth++);
var _local8 = But.but.createEmptyMovieClip("but_back", _root.depth++);
_local8.attachMovie("Metal", "m" + _root.depth, _root.depth++, {_width:_local7, _height:_local6});
_level0.McSetRGB(_local8, But.ButCol);
_local8 = But.but.createEmptyMovieClip("shine", _root.depth++);
if (Flags & _level0.b_Panel) {
But.Metal = But.but.shine.attachMovie("panelmetal", "m", _root.depth++);
} else {
But.Metal = But.but.shine.attachMovie("buttonmetal", "m", _root.depth++);
}
But.Metal._height = _local6;
But.Metal._width = _local7;
But.createEmptyMovieClip("but_mask", _root.depth++);
But.but_mask.beginFill(16777215, 100);
_level0.ButtonCurve2(But.but_mask, Radius, _local7, _local6, Flags, 0, 0, 0);
But.setMask(But.but_mask);
var _local13 = But.createEmptyMovieClip("bord", _root.depth++);
_level0.ButtonCurve2(But.bord, Radius, _local7, _local6, Flags, 2, 0, 100);
_local13._alpha = 30;
But.createTextField("mcTxt2", _root.depth++, 0, 0, _local7, _local6);
But.mcTxt2.text = Text;
if (Flags & _level0.b_Grayed) {
mcFmt.color = 8421504 /* 0x808080 */;
}
But.mcTxt2.setTextFormat(mcFmt);
var _local12 = _level0.Blend(_local6 - But.mcTxt2.textHeight, 5, 25, 0, 10);
But.mcTxt2._y = But.mcTxt2._y + _local12;
if (!(Flags & _level0.b_NoPress)) {
But.onRollOver = function () {
mcFmt.color = this.TextCol ^ 4294967000;
if ((_level0.ButColW2 < 192) || (_level0.ButColW2 > 576)) {
mcFmt.color = 8421504 /* 0x808080 */;
}
this.mcTxt2.setTextFormat(mcFmt);
this.RollOver();
};
But.onRollOut = function () {
mcFmt.color = this.TextCol;
this.mcTxt2.setTextFormat(mcFmt);
this.RollOut();
};
But.onPress = function () {
this.sx = this._x;
this.sy = this._y;
this._x = this._x + 1;
this._y = this._y + 1;
mcFmt.color = 15494922 /* 0xEC6F0A */;
this.mcTxt2.setTextFormat(mcFmt);
this.PressFunc();
};
But.onRelease = function () {
this._x = this.sx;
this._y = this.sy;
mcFmt.color = this.TextCol;
this.mcTxt2.setTextFormat(mcFmt);
};
But.onReleaseOutside = function () {
this._x = this.sx;
this._y = this.sy;
mcFmt.color = this.TextCol;
this.mcTxt2.setTextFormat(mcFmt);
};
}
But.Delete = function () {
this.removeMovieClip();
this.removeMovieClip();
this.removeMovieClip();
this.removeMovieClip();
this.removeMovieClip();
this.removeMovieClip();
};
}
function set PressFunc(f) {
But.PressFunc = f;
//return(__get__PressFunc());
}
function set TextCol(c) {
SetTextCol(c);
//return(__get__TextCol());
}
function SetTextCol(c) {
But.mcFmt.color = c;
But.TextCol = c;
But.mcTxt2.setTextFormat(But.mcFmt);
}
function set Col(Col) {
SetColor(Col);
//return(__get__Col());
}
function SetColor(c) {
if (c == 0) {
But.Metal.Col._visible = false;
return(undefined);
}
But.Metal.Col._visible = true;
var _local2 = new Color(But.Metal.Col);
_local2.setRGB(c);
}
function Text(Text) {
SetText(Text);
}
function SetText(Text) {
with (But) {
mcTxt2.text = Text;
mcFmt.color = TextCol;
mcTxt2.setTextFormat(mcFmt);
}
}
function SetRoll(Over, Out) {
if (Over.charAt(0) == undefined) {
But.RollOver = Over;
} else {
But.RollOver = function () {
_level0.Hint(this.sx, this.sy, Over, true);
};
}
if (Out == undefined) {
But.RollOut = _level0.HintOff;
} else {
But.RollOut = Out;
}
}
}
Symbol 153 MovieClip [__Packages.xAvatar] Frame 0 (4.46 KiB) ●
class xAvatar
{
var Av;
function xAvatar (mc, Url, HintTxt, PressFunc, VIP, aFlags, Powers) {
var n;
var fnd = false;
var m = _level0.Avatars.length;
var p = _level0.AvsLoad.length;
var Gray = 0;
var nUrl = _level0.xInt(Url);
if (mc == undefined) {
mc = _level0;
}
Av = mc.createEmptyMovieClip("mc" + _root.depth, _root.depth++);
if (aFlags & 32) {
Av.filters = _level0.DropFilter;
}
if (HintTxt.length > 0) {
Av.onRollOver = function () {
_level0.Hint(0, 0, HintTxt, true, 0, _level0.ud, 0, this);
};
Av.onRollOut = function () {
_level0.HintOff();
};
}
if (PressFunc != undefined) {
Av.onPress = PressFunc;
}
if (nUrl <= 0) {
var i;
var sm;
var sp;
var Glit;
var Args;
Av.createEmptyMovieClip("b", _root.depth++);
Av.dp = _root.depth++;
Args = Url.split(")");
i = 0;
if (Args[1] != undefined) {
i++;
}
sp = Args[i].split("#");
Args = Args[0].split("#");
Url = Args[0];
if (sp[1]) {
if (VIP) {
if ((Glit = _level0.Glitters[sp[1].toLowerCase()])) {
Av.Glitter = sp[1];
if ((Glit != 2) || (_level0.SmOk(sp[2], Powers))) {
Av.Glitter2 = sp.slice(2).join("#");
}
}
}
}
var AnimPower = _level0.xInt((Powers[0] >> 18) & 3);
if (!AnimPower) {
if (Url.indexOf("photobucket.com/") > 1) {
Av.U2 = Url;
i = Url.lastIndexOf("/") + 1;
Url = (Url.substr(0, i) + "th_") + Url.substr(i);
}
if (Url.indexOf("tinypic.com/") > 1) {
Av.U2 = Url;
i = Url.lastIndexOf(".");
Url = (Url.substr(0, i) + "_th") + Url.substr(i);
}
}
if (VIP && (Url.substr(0, 1) == "(")) {
var s = Url.substr(1);
if (!_level0.SmOk(s, Powers)) {
s = "smile";
}
Av.b.SF = 2;
_level0.PowSm(Av.b, Args, 30, Powers);
Av.b._x = Av.b._x + _level0.xInt(Av.b.x);
var Url;
if (Args.length > 1) {
Url = _level0.SmilieUrl(s, "sm") + "&r=2";
} else {
Url = _level0.SmilieUrl(s, "sm", true) + "&r=2";
}
sm = true;
} else {
if (((Url.toLowerCase().indexOf(".jpg") == -1) && (Url.toLowerCase().indexOf(".jpeg") == -1)) && (Url.toLowerCase().indexOf(".png") == -1)) {
Url = "";
}
if (Url.toLowerCase().indexOf("xat") != -1) {
Url = "";
}
}
if (nUrl == -1) {
var smc = Av.attachMovie("HelpIcon", "h", _root.depth++);
smc._width = (smc._height = 30);
smc.info._visible = false;
smc = Av.attachMovie("glint", "g", _root.depth++);
smc._width = (smc._height = 25);
smc._x = 3;
smc._y = -5;
} else {
if (Url.substr(0, 7) == "http://") {
Av.b.createEmptyMovieClip("c", _root.depth++);
Av.U1 = Url;
Av.St = 1;
Av.An = -AnimPower;
}
Gray = 1;
}
Av.b.c._visible = false;
Av.sm = sm;
_level0.AvsLoad[p] = new Object();
_level0.AvsLoad[p].mc = Av;
_level0.AvsLoad[p].Count = 18;
} else {
n = 0;
while (n < m) {
if (Url == _level0.Avatars[n].Url) {
if (_level0.Avatars[n].Loading) {
if (_level0.Avatars[n].Count < 1440) {
_level0.AvsLoad[p] = new Object();
_level0.AvsLoad[p].mc = Av;
_level0.AvsLoad[p].idx = n;
}
Gray = _level0.Avatars[n].Count + 1;
} else {
Av.attachBitmap(_level0.Avatars[n].Bits, _root.depth++);
}
_level0.Avatars[n].InUse++;
fnd = true;
break;
}
n++;
}
if (!fnd) {
_level0.Avatars[m] = new Object();
_level0.Avatars[m].InUse = 1;
_level0.Avatars[m].Url = Url;
_level0.Avatars[m].Loading = true;
_level0.Avatars[m].Count = 0;
_level0.Avatars[m].mc = mc.createEmptyMovieClip("mc" + _root.depth, _root.depth++);
_level0.Avatars[m].mc.createEmptyMovieClip("a", _root.depth++);
System.security.allowDomain(_level0.ParseAv(Url));
_level0.Avatars[m].mc.a.loadMovie(_level0.ParseAv(Url));
trace("LOADAV:" + Url);
_level0.Avatars[m].mc._visible = false;
_level0.AvsLoad[p] = new Object();
_level0.AvsLoad[p].mc = Av;
_level0.AvsLoad[p].idx = m;
Gray = 1;
}
}
if (Gray > 0) {
var m = Av.createEmptyMovieClip("Gray", _root.depth++);
with (m) {
beginFill(0, 50);
_level0.ButtonCurve2(m, 0, 30, 30, 0, 0, 0, 0);
_visible = Gray > 18;
}
}
}
function Delete() {
unloadMovie (Av.b.c);
removeMovieClip(Av);
}
}
Symbol 154 MovieClip [__Packages.xScroll] Frame 0 (3.74 KiB) ●
class xScroll extends MovieClip
{
var Scr_x, Scr_y, Scr_width, Scr_height, Scr_buttonheight, Scr_thumbheight, Scr_step, Scr_size, Scr_position, ChangeFunc, Scrolling, ScrollPressed, scrollbackground, mcScrollUp, mcScrollDown, mcThumb, __get__position, __get__ssize, removeMovieClip;
function xScroll (X, Y, W, H, bh, th, step, size, pos, UserChangeFunc) {
function onScrollUp() {
with (this.Obj) {
ScrollPressed = true;
Scr_position = Scr_position - Scr_step;
if (Scr_position < 0) {
Scr_position = 0;
}
trace("Scr_position =" + Scr_position);
ChangeFunc();
}
this.Obj.Update();
}
function onScrollDown() {
with (this.Obj) {
ScrollPressed = true;
Scr_position = Scr_position + Scr_step;
if (Scr_position > Scr_size) {
Scr_position = Scr_size;
}
trace("Scr_position =" + Scr_position);
ChangeFunc();
}
this.Obj.Update();
}
function onThumb() {
var o = this.Obj;
this.startDrag(false, o.Scr_x, o.Scr_y + o.Scr_buttonheight, o.Scr_x, ((o.Scr_y + o.Scr_height) - o.Scr_thumbheight) - o.Scr_buttonheight);
o.Scrolling = true;
this.onMouseMove = function () {
with (this.Obj) {
var sPos = ((mcThumb.But._y - Scr_y) - Scr_buttonheight);
var sMax = (((Scr_height - Scr_buttonheight) - Scr_buttonheight) - Scr_thumbheight);
Scr_position = (Scr_size * sPos) / sMax;
ChangeFunc();
}
};
}
super();
Scr_x = X;
Scr_y = Y;
Scr_width = W;
Scr_height = H;
Scr_buttonheight = bh;
Scr_thumbheight = th;
Scr_step = step;
Scr_size = size;
Scr_position = pos;
ChangeFunc = UserChangeFunc;
Scrolling = false;
ScrollPressed = false;
scrollbackground = _level0.AddBackground(Scr_x - 1, Scr_y, Scr_width + 1, Scr_height, true, 0);
mcScrollUp = new xBut(Scr_x, Scr_y, Scr_width, Scr_buttonheight, "", onScrollUp, _level0.b_Gray, 6);
mcScrollUp.But.attachMovie("sc_up", "g", _root.depth++);
mcScrollUp.But.g._x = int((Scr_width - 6) / 2);
mcScrollUp.But.g._y = int((Scr_buttonheight - 3) / 2);
mcScrollUp.But._alpha = 35;
mcScrollUp.But.Obj = this;
mcScrollDown = new xBut(Scr_x, (Scr_y + Scr_height) - Scr_buttonheight, Scr_width, Scr_buttonheight, "", onScrollDown, _level0.b_Gray, 6);
mcScrollDown.But.attachMovie("sc_dn", "g", _root.depth++);
mcScrollDown.But.g._x = int((Scr_width - 6) / 2);
mcScrollDown.But.g._y = int((Scr_buttonheight - 3) / 2);
mcScrollDown.But._alpha = 35;
mcScrollDown.But.Obj = this;
mcThumb = new xBut(Scr_x, ((Scr_y + Scr_height) - Scr_buttonheight) - Scr_thumbheight, Scr_width, Scr_thumbheight, "", onThumb, _level0.b_NoPress | _level0.b_Gray, 6);
mcThumb.But.attachMovie("sc_dr", "t", _root.depth++);
mcThumb.But.t._x = int((Scr_width - 6) / 2);
mcThumb.But.t._y = int((Scr_thumbheight - 7) / 2);
mcThumb.But.onPress = onThumb;
mcThumb.But._alpha = 35;
mcThumb.But.Obj = this;
Update();
mcThumb.But._y = (Scr_y + Scr_buttonheight) + (((((Scr_height - Scr_buttonheight) - Scr_buttonheight) - Scr_thumbheight) * Scr_position) / Scr_size);
mcThumb.But.onReleaseOutside = (mcThumb.But.onRelease = function () {
this.Obj.Scrolling = false;
this.stopDrag();
delete this.onMouseMove;
});
}
function set position(c) {
Scr_position = c;
Update();
//return(__get__position());
}
function set ssize(c) {
Scr_size = c;
Update();
//return(__get__ssize());
}
function Update() {
mcThumb.But._y = (Scr_y + Scr_buttonheight) + (((((Scr_height - Scr_buttonheight) - Scr_buttonheight) - Scr_thumbheight) * Scr_position) / Scr_size);
}
function Delete() {
scrollbackground._visible = false;
removeMovieClip();
mcScrollUp.But.Delete();
mcScrollDown.But.Delete();
mcThumb.But.Delete();
}
}
Symbol 123 MovieClip [GetStuff2] Frame 1 (511 B)
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var wait = 90;
var tk = 0;
var Z = 0;
X = egg._x;
Y = egg._y;
onEnterFrame = function () {
tk++;
if (tk > wait) {
if (Z & 1) {
egg._x = X + (((tk & 1) == 0) ? -1 : 1);
} else {
egg._y = Y + (((tk & 1) == 0) ? -1 : 1);
}
if (tk > (wait + 22)) {
tk = 0;
Z++;
}
} else {
egg._x = X;
egg._y = Y;
egg._rotation = 0;
}
};