//ActionScript 3.0
// package chat_fla
// class MainTimeline
package chat_fla
{
import adobe.utils.*;
import flash.accessibility.*;
import flash.desktop.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.globalization.*;
import flash.media.*;
import flash.net.*;
import flash.net.drm.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.sensors.*;
import flash.system.*;
import flash.text.*;
import flash.text.engine.*;
import flash.text.ime.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends flash.display.MovieClip
{
public function MainTimeline()
{
super();
addFrameScript(0, this.frame1, 2, this.frame3);
return;
}
public function tick(arg1:*):void
{
var loc1:*;
loc1 = this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal * 100;
var loc2:*;
var loc3:*;
loc3 = ((loc2 = this).Hold + 1);
loc2.Hold = loc3;
if (this.Hold > 12)
{
this.DoMask(this.Mask, loc1);
}
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal)
{
removeChild(this.Logo);
this.removeEventListener(flash.events.Event.ENTER_FRAME, this.tick);
this.gotoAndStop(3);
}
return;
}
public function DoMask(arg1:*, arg2:Number):*
{
var a1:*;
var max:*;
var mc:*;
var pc:Number;
var zx:*;
var zy:*;
var loc1:*;
mc = arg1;
pc = arg2;
this.Logo.visible = true;
zx = int(200 * this.S1);
zy = this.Logo.y + int(90 * this.S1);
max = zy * 2;
a1 = 2 * 3.14159 / 100 * pc;
var loc2:*;
with (loc2 = mc)
{
graphics.clear();
graphics.lineStyle(0, 0, 0);
graphics.beginFill(65535, 1);
graphics.moveTo(zx, zy);
graphics.lineTo(zx, zy - max);
graphics.lineTo(zx + max, zy - max);
if (a1 > Math.PI / 2)
{
graphics.lineTo(zx + max, zy + max);
}
if (a1 > Math.PI)
{
graphics.lineTo(zx - max, zy + max);
}
if (a1 > Math.PI * 3 / 2)
{
graphics.lineTo(zx - max, zy - max);
}
graphics.lineTo(zx + max * Math.sin(a1), zy - max * Math.cos(a1));
graphics.moveTo(zx, zy);
graphics.endFill();
}
return;
}
function frame1():*
{
stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
stage.align = flash.display.StageAlign.TOP_LEFT;
stage.showDefaultContextMenu = false;
this.StageWidth = stage.stageWidth;
this.StageHeight = stage.stageHeight;
this.S1 = this.StageWidth / 640;
this.S2 = this.StageHeight / 480;
if (this.S2 < this.S1)
{
this.S1 = this.S2;
}
var loc1:*;
this.Logo.scaleY = loc1 = this.S1 * 8;
this.Logo.scaleX = loc1;
this.Logo.y = (this.StageHeight - this.Logo.height) / 2;
this.Logo.visible = false;
this.Mask = new flash.display.Sprite();
this.Last = 0;
this.Hold = 0;
addChild(this.Mask);
this.Logo.mask = this.Mask;
this.addEventListener(flash.events.Event.ENTER_FRAME, this.tick);
stop();
return;
}
function frame3():*
{
stop();
return;
}
public var Logo:xatsat;
public var StageWidth:*;
public var StageHeight:*;
public var S1:*;
public var S2:*;
public var Mask:*;
public var Last:*;
public var Hold:*;
}
}
// package com
// package adobe
// package serialization
// package json
// class JSON
package com.adobe.serialization.json
{
public class JSON extends Object
{
public function JSON()
{
super();
return;
}
public static function encode(arg1:Object):String
{
var loc1:*;
loc1 = new com.adobe.serialization.json.JSONEncoder(arg1);
return loc1.getString();
}
public static function decode(arg1:String):*
{
var loc1:*;
loc1 = new com.adobe.serialization.json.JSONDecoder(arg1);
return loc1.getValue();
}
}
}
// class JSONDecoder
package com.adobe.serialization.json
{
public class JSONDecoder extends Object
{
public function JSONDecoder(arg1:String)
{
super();
this.tokenizer = new com.adobe.serialization.json.JSONTokenizer(arg1);
this.nextToken();
this.value = this.parseValue();
return;
}
public function getValue():*
{
return this.value;
}
private function nextToken():com.adobe.serialization.json.JSONToken
{
var loc1:*;
this.token = loc1 = this.tokenizer.getNextToken();
return loc1;
}
private function parseArray():Array
{
var loc1:*;
loc1 = new Array();
this.nextToken();
if (this.token.type == com.adobe.serialization.json.JSONTokenType.RIGHT_BRACKET)
{
return loc1;
}
for (;;)
{
loc1.push(this.parseValue());
this.nextToken();
if (this.token.type == com.adobe.serialization.json.JSONTokenType.RIGHT_BRACKET)
{
return loc1;
}
if (this.token.type == com.adobe.serialization.json.JSONTokenType.COMMA)
{
this.nextToken();
continue;
}
this.tokenizer.parseError("Expecting ] or , but found " + this.token.value);
}
return null;
}
private function parseObject():Object
{
var loc2:*;
loc2 = null;
var loc1:*;
loc1 = new Object();
this.nextToken();
if (this.token.type == com.adobe.serialization.json.JSONTokenType.RIGHT_BRACE)
{
return loc1;
}
for (;;)
{
if (this.token.type == com.adobe.serialization.json.JSONTokenType.STRING)
{
loc2 = String(this.token.value);
this.nextToken();
if (this.token.type != com.adobe.serialization.json.JSONTokenType.COLON)
{
this.tokenizer.parseError("Expecting : but found " + this.token.value);
}
else
{
this.nextToken();
loc1[loc2] = this.parseValue();
this.nextToken();
if (this.token.type == com.adobe.serialization.json.JSONTokenType.RIGHT_BRACE)
{
return loc1;
}
if (this.token.type != com.adobe.serialization.json.JSONTokenType.COMMA)
{
this.tokenizer.parseError("Expecting } or , but found " + this.token.value);
}
else
{
this.nextToken();
}
}
continue;
}
this.tokenizer.parseError("Expecting string but found " + this.token.value);
}
return null;
}
private function parseValue():Object
{
if (this.token == null)
{
this.tokenizer.parseError("Unexpected end of input");
}
var loc1:*;
loc1 = this.token.type;
switch (loc1)
{
case com.adobe.serialization.json.JSONTokenType.LEFT_BRACE:
{
return this.parseObject();
}
case com.adobe.serialization.json.JSONTokenType.LEFT_BRACKET:
{
return this.parseArray();
}
case com.adobe.serialization.json.JSONTokenType.STRING:
case com.adobe.serialization.json.JSONTokenType.NUMBER:
case com.adobe.serialization.json.JSONTokenType.TRUE:
case com.adobe.serialization.json.JSONTokenType.FALSE:
case com.adobe.serialization.json.JSONTokenType.NULL:
{
return this.token.value;
}
default:
{
this.tokenizer.parseError("Unexpected " + this.token.value);
}
}
return null;
}
private var value:*;
private var tokenizer:com.adobe.serialization.json.JSONTokenizer;
private var token:com.adobe.serialization.json.JSONToken;
}
}
// class JSONEncoder
package com.adobe.serialization.json
{
import flash.utils.*;
public class JSONEncoder extends Object
{
public function JSONEncoder(arg1:*)
{
super();
this.jsonString = this.convertToString(arg1);
return;
}
public function getString():String
{
return this.jsonString;
}
private function convertToString(arg1:*):String
{
if (arg1 as String)
{
return this.escapeString(arg1 as String);
}
if (arg1 as Number)
{
return isFinite(arg1 as Number) ? arg1.toString() : "null";
}
if (arg1 as Boolean)
{
return arg1 ? "true" : "false";
}
if (arg1 as Array)
{
return this.arrayToString(arg1 as Array);
}
if (arg1 as Object && !(arg1 == null))
{
return this.objectToString(arg1);
}
return "null";
}
private function escapeString(arg1:String):String
{
var loc2:*;
loc2 = null;
var loc5:*;
loc5 = null;
var loc6:*;
loc6 = null;
var loc1:*;
loc1 = "";
var loc3:*;
loc3 = arg1.length;
var loc4:*;
loc4 = 0;
while (loc4 < loc3)
{
loc2 = arg1.charAt(loc4);
var loc7:*;
loc7 = loc2;
switch (loc7)
{
case "\"":
{
loc1 = loc1 + "\\\"";
break;
}
case "\\":
{
loc1 = loc1 + "\\\\";
break;
}
case "":
{
loc1 = loc1 + "\\b";
break;
}
case "":
{
loc1 = loc1 + "\\f";
break;
}
case "\n":
{
loc1 = loc1 + "\\n";
break;
}
case "\r":
{
loc1 = loc1 + "\\r";
break;
}
case "\t":
{
loc1 = loc1 + "\\t";
break;
}
default:
{
if (loc2 < " ")
{
loc6 = (loc5 = loc2.charCodeAt(0).toString(16)).length != 2 ? "000" : "00";
loc1 = loc1 + "\\u" + loc6 + loc5;
}
else
{
loc1 = loc1 + loc2;
}
}
}
++loc4;
}
return "\"" + loc1 + "\"";
}
private function arrayToString(arg1:Array):String
{
var loc1:*;
loc1 = "";
var loc2:*;
loc2 = 0;
while (loc2 < arg1.length)
{
if (loc1.length > 0)
{
loc1 = loc1 + ",";
}
loc1 = loc1 + this.convertToString(arg1[loc2]);
++loc2;
}
return "[" + loc1 + "]";
}
private function objectToString(arg1:Object):String
{
var classInfo:XML;
var key:String;
var o:Object;
var s:String;
var v:XML;
var value:Object;
var loc1:*;
value = null;
key = null;
v = null;
o = arg1;
s = "";
classInfo = flash.utils.describeType(o);
if (classInfo.name.toString() != "Object")
{
loc2 = 0;
var loc5:*;
loc5 = 0;
var loc6:*;
loc6 = classInfo;
var loc4:*;
loc4 = new XMLList("");
while (loc6)
{
var loc7:*;
loc7 = @next_value@(loc6, loc5);
var loc8:*;
with (loc8 = loc7)
{
if (name() == "variable" || name() == "accessor")
{
loc4[loc5] = loc7;
}
}
}
loc3 = loc4;
for each (v in loc3)
{
if (s.length > 0)
{
s = s + ",";
}
s = s + this.escapeString(v.name.toString()) + ":" + this.convertToString(o[v.name]);
}
}
else
{
var loc2:*;
loc2 = 0;
var loc3:*;
loc3 = o;
for (key in loc3)
{
value = o[key];
if (value as Function)
{
continue;
}
if (s.length > 0)
{
s = s + ",";
}
s = s + this.escapeString(key) + ":" + this.convertToString(value);
}
}
return "{" + s + "}";
}
private var jsonString:String;
}
}
// class JSONParseError
package com.adobe.serialization.json
{
public class JSONParseError extends Error
{
public function JSONParseError(arg1:String="", arg2:int=0, arg3:String="")
{
super(arg1);
name = "JSONParseError";
this._location = arg2;
this._text = arg3;
return;
}
public function get location():int
{
return this._location;
}
public function get text():String
{
return this._text;
}
private var _location:int;
private var _text:String;
}
}
// class JSONToken
package com.adobe.serialization.json
{
public class JSONToken extends Object
{
public function JSONToken(arg1:int=-1, arg2:Object=null)
{
super();
this._type = arg1;
this._value = arg2;
return;
}
public function get type():int
{
return this._type;
}
public function set type(arg1:int):void
{
this._type = arg1;
return;
}
public function get value():Object
{
return this._value;
}
public function set value(arg1:Object):void
{
this._value = arg1;
return;
}
private var _type:int;
private var _value:Object;
}
}
// class JSONTokenType
package com.adobe.serialization.json
{
public class JSONTokenType extends Object
{
public function JSONTokenType()
{
super();
return;
}
public static const UNKNOWN:int=-1;
public static const COMMA:int=0;
public static const LEFT_BRACE:int=1;
public static const RIGHT_BRACE:int=2;
public static const LEFT_BRACKET:int=3;
public static const RIGHT_BRACKET:int=4;
public static const COLON:int=6;
public static const TRUE:int=7;
public static const FALSE:int=8;
public static const NULL:int=9;
public static const STRING:int=10;
public static const NUMBER:int=11;
}
}
// class JSONTokenizer
package com.adobe.serialization.json
{
public class JSONTokenizer extends Object
{
public function JSONTokenizer(arg1:String)
{
super();
this.jsonString = arg1;
this.loc = 0;
this.nextChar();
return;
}
public function getNextToken():com.adobe.serialization.json.JSONToken
{
var loc2:*;
loc2 = null;
var loc3:*;
loc3 = null;
var loc4:*;
loc4 = null;
var loc1:*;
loc1 = new com.adobe.serialization.json.JSONToken();
this.skipIgnored();
var loc5:*;
loc5 = this.ch;
switch (loc5)
{
case "{":
{
loc1.type = com.adobe.serialization.json.JSONTokenType.LEFT_BRACE;
loc1.value = "{";
this.nextChar();
break;
}
case "}":
{
loc1.type = com.adobe.serialization.json.JSONTokenType.RIGHT_BRACE;
loc1.value = "}";
this.nextChar();
break;
}
case "[":
{
loc1.type = com.adobe.serialization.json.JSONTokenType.LEFT_BRACKET;
loc1.value = "[";
this.nextChar();
break;
}
case "]":
{
loc1.type = com.adobe.serialization.json.JSONTokenType.RIGHT_BRACKET;
loc1.value = "]";
this.nextChar();
break;
}
case ",":
{
loc1.type = com.adobe.serialization.json.JSONTokenType.COMMA;
loc1.value = ",";
this.nextChar();
break;
}
case ":":
{
loc1.type = com.adobe.serialization.json.JSONTokenType.COLON;
loc1.value = ":";
this.nextChar();
break;
}
case "t":
{
loc2 = "t" + this.nextChar() + this.nextChar() + this.nextChar();
if (loc2 != "true")
{
this.parseError("Expecting \'true\' but found " + loc2);
}
else
{
loc1.type = com.adobe.serialization.json.JSONTokenType.TRUE;
loc1.value = true;
this.nextChar();
}
break;
}
case "f":
{
loc3 = "f" + this.nextChar() + this.nextChar() + this.nextChar() + this.nextChar();
if (loc3 != "false")
{
this.parseError("Expecting \'false\' but found " + loc3);
}
else
{
loc1.type = com.adobe.serialization.json.JSONTokenType.FALSE;
loc1.value = false;
this.nextChar();
}
break;
}
case "n":
{
if ((loc4 = "n" + this.nextChar() + this.nextChar() + this.nextChar()) != "null")
{
this.parseError("Expecting \'null\' but found " + loc4);
}
else
{
loc1.type = com.adobe.serialization.json.JSONTokenType.NULL;
loc1.value = null;
this.nextChar();
}
break;
}
case "\"":
{
loc1 = this.readString();
break;
}
default:
{
if (this.isDigit(this.ch) || this.ch == "-")
{
loc1 = this.readNumber();
}
else
{
if (this.ch == "")
{
return null;
}
this.parseError("Unexpected " + this.ch + " encountered");
}
}
}
return loc1;
}
private function readString():com.adobe.serialization.json.JSONToken
{
var loc3:*;
loc3 = null;
var loc4:*;
loc4 = 0;
var loc1:*;
loc1 = new com.adobe.serialization.json.JSONToken();
loc1.type = com.adobe.serialization.json.JSONTokenType.STRING;
var loc2:*;
loc2 = "";
this.nextChar();
while (!(this.ch == "\"") && !(this.ch == ""))
{
if (this.ch != "\\")
{
loc2 = loc2 + this.ch;
}
else
{
this.nextChar();
var loc5:*;
loc5 = this.ch;
switch (loc5)
{
case "\"":
{
loc2 = loc2 + "\"";
break;
}
case "/":
{
loc2 = loc2 + "/";
break;
}
case "\\":
{
loc2 = loc2 + "\\";
break;
}
case "b":
{
loc2 = loc2 + "";
break;
}
case "f":
{
loc2 = loc2 + "";
break;
}
case "n":
{
loc2 = loc2 + "\n";
break;
}
case "r":
{
loc2 = loc2 + "\r";
break;
}
case "t":
{
loc2 = loc2 + "\t";
break;
}
case "u":
{
loc3 = "";
loc4 = 0;
while (loc4 < 4)
{
if (!this.isHexDigit(this.nextChar()))
{
this.parseError(" Excepted a hex digit, but found: " + this.ch);
}
loc3 = loc3 + this.ch;
++loc4;
}
loc2 = loc2 + String.fromCharCode(parseInt(loc3, 16));
break;
}
default:
{
loc2 = loc2 + "\\" + this.ch;
}
}
}
this.nextChar();
}
if (this.ch == "")
{
this.parseError("Unterminated string literal");
}
this.nextChar();
loc1.value = loc2;
return loc1;
}
private function readNumber():com.adobe.serialization.json.JSONToken
{
var loc1:*;
loc1 = new com.adobe.serialization.json.JSONToken();
loc1.type = com.adobe.serialization.json.JSONTokenType.NUMBER;
var loc2:*;
loc2 = "";
if (this.ch == "-")
{
loc2 = loc2 + "-";
this.nextChar();
}
if (!this.isDigit(this.ch))
{
this.parseError("Expecting a digit");
}
if (this.ch != "0")
{
while (this.isDigit(this.ch))
{
loc2 = loc2 + this.ch;
this.nextChar();
}
}
else
{
loc2 = loc2 + this.ch;
this.nextChar();
if (this.isDigit(this.ch))
{
this.parseError("A digit cannot immediately follow 0");
}
}
if (this.ch == ".")
{
loc2 = loc2 + ".";
this.nextChar();
if (!this.isDigit(this.ch))
{
this.parseError("Expecting a digit");
}
while (this.isDigit(this.ch))
{
loc2 = loc2 + this.ch;
this.nextChar();
}
}
if (this.ch == "e" || this.ch == "E")
{
loc2 = loc2 + "e";
this.nextChar();
if (this.ch == "+" || this.ch == "-")
{
loc2 = loc2 + this.ch;
this.nextChar();
}
if (!this.isDigit(this.ch))
{
this.parseError("Scientific notation number needs exponent value");
}
while (this.isDigit(this.ch))
{
loc2 = loc2 + this.ch;
this.nextChar();
}
}
var loc3:*;
loc3 = Number(loc2);
if (isFinite(loc3) && !isNaN(loc3))
{
loc1.value = loc3;
return loc1;
}
this.parseError("Number " + loc3 + " is not valid!");
return null;
}
private function nextChar():String
{
var loc1:*;
var loc2:*;
loc2 = ((loc1 = this).loc + 1);
loc1.loc = loc2;
this.ch = loc1 = this.jsonString.charAt((loc1 = this).loc);
return loc1;
}
private function skipIgnored():void
{
var loc1:*;
loc1 = 0;
do
{
loc1 = this.loc;
this.skipWhite();
this.skipComments();
}
while (loc1 != this.loc);
return;
}
private function skipComments():void
{
if (this.ch == "/")
{
this.nextChar();
var loc1:*;
loc1 = this.ch;
switch (loc1)
{
case "/":
{
do
{
this.nextChar();
}
while (!(this.ch == "\n") && !(this.ch == ""));
this.nextChar();
break;
}
case "*":
{
this.nextChar();
for (;;)
{
if (this.ch != "*")
{
this.nextChar();
}
else
{
this.nextChar();
if (this.ch == "/")
{
this.nextChar();
break;
}
}
if (this.ch != "")
{
continue;
}
this.parseError("Multi-line comment not closed");
}
break;
}
default:
{
this.parseError("Unexpected " + this.ch + " encountered (expecting \'/\' or \'*\' )");
}
}
}
return;
}
private function skipWhite():void
{
while (this.isWhiteSpace(this.ch))
{
this.nextChar();
}
return;
}
private function isWhiteSpace(arg1:String):Boolean
{
return arg1 == " " || arg1 == "\t" || arg1 == "\n" || arg1 == "\r";
}
private function isDigit(arg1:String):Boolean
{
return arg1 >= "0" && arg1 <= "9";
}
private function isHexDigit(arg1:String):Boolean
{
var loc1:*;
loc1 = arg1.toUpperCase();
return this.isDigit(arg1) || loc1 >= "A" && loc1 <= "F";
}
public function parseError(arg1:String):void
{
throw new com.adobe.serialization.json.JSONParseError(arg1, this.loc, this.jsonString);
}
private var obj:Object;
private var jsonString:String;
private var loc:int;
private var ch:String;
}
}
// class 10128
package
{
import flash.display.*;
public dynamic class 10128 extends flash.display.MovieClip
{
public function 10128()
{
super();
return;
}
public var back:flash.display.MovieClip;
}
}
// class 10129
package
{
import flash.display.*;
public dynamic class 10129 extends flash.display.MovieClip
{
public function 10129()
{
super();
return;
}
public var back:flash.display.MovieClip;
}
}
// class 10200
package
{
import flash.display.*;
public dynamic class 10200 extends flash.display.MovieClip
{
public function 10200()
{
super();
return;
}
}
}
// class All
package
{
import flash.display.*;
public dynamic class All extends flash.display.MovieClip
{
public function All()
{
super();
return;
}
}
}
// class Ball2
package
{
import flash.display.*;
public dynamic class Ball2 extends flash.display.MovieClip
{
public function Ball2()
{
super();
return;
}
}
}
// class DialogActions
package
{
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
public class DialogActions extends flash.display.Sprite
{
public function DialogActions(arg1:*)
{
var Dia:*;
var Me:*;
var Press:*;
var PrivChatOnly:*;
var PrivFlags:*;
var ShowAsBanned:*;
var StatusText:String;
var UserNo:*;
var addSocial:Function;
var bKick:*;
var bMTP:*;
var bMake:*;
var bMake2:*;
var butstate:*;
var dlght:*;
var i:Number;
var mc:flash.display.MovieClip;
var s:*;
var soci:*;
var sxx:*;
var uid:*;
var xx:*;
var yy:*;
var loc1:*;
yy = undefined;
Dia = undefined;
s = undefined;
mc = null;
sxx = undefined;
soci = undefined;
butstate = undefined;
UserNo = arg1;
super();
uid = xatlib.FindUser(UserNo);
PrivChatOnly = xatlib.xInt(todo.Users[uid].Location) >= 128;
ShowAsBanned = todo.Users[uid].banned && !todo.Users[uid].friend || todo.Users[uid].forever;
Me = xatlib.FindUser(todo.w_userno);
xx = 0;
yy = 0;
StatusText = "";
bKick = undefined;
bMake = undefined;
bMake2 = undefined;
bMTP = undefined;
this.bBan = undefined;
i = xatlib.FindUser(todo.w_userno);
if ((todo.w_owner || todo.w_moderator || todo.w_member) && !(main.utabsmc.tabs[0].Main == false && !network.OnFriendList(todo.Users[i].u)))
{
if (todo.Users[i].flag0 & 512)
{
bKick = false;
}
else
{
if (todo.HasPower(i, 28))
{
if (todo.w_mainowner)
{
bKick = false;
if (todo.Users[uid].online && !todo.Users[uid].mainowner)
{
bKick = true;
}
}
else
{
if (todo.w_owner)
{
bKick = false;
if (todo.Users[uid].online && !todo.Users[uid].mainowner && !todo.Users[uid].owner)
{
bKick = true;
}
}
else
{
if (todo.w_moderator)
{
bKick = false;
if (todo.Users[uid].online && !todo.Users[uid].mainowner && !todo.Users[uid].owner && !todo.Users[uid].moderator)
{
bKick = true;
}
}
else
{
if (todo.w_member)
{
if (todo.Users[uid].online && !todo.Users[uid].mainowner && !todo.Users[uid].owner && !todo.Users[uid].moderator && todo.Users[uid].banned)
{
bKick = true;
}
}
}
}
}
}
else
{
if (todo.w_owner || todo.w_moderator)
{
bKick = todo.Users[uid].online && !todo.Users[uid].mainowner && !todo.Users[uid].owner && !todo.Users[uid].moderator ? true : false;
}
}
}
}
if ((todo.w_owner || todo.w_moderator) && !(main.utabsmc.tabs[0].Main == false && !network.OnFriendList(todo.Users[i].u)))
{
this.bBan = false;
if (todo.Users[i].flag0 & 512)
{
this.bBan = false;
}
else
{
if (todo.w_mainowner)
{
if (!todo.Users[uid].mainowner)
{
this.bBan = true;
}
if ((this.bBan || todo.Users[uid].mainowner) && todo.HasPower(i, 158))
{
this.bDunce = true;
}
}
else
{
if (todo.w_owner)
{
if (!todo.Users[uid].mainowner && !todo.Users[uid].owner)
{
this.bBan = true;
}
if ((this.bBan || todo.Users[uid].owner) && todo.HasPower(i, 158))
{
this.bDunce = true;
}
}
else
{
if (todo.w_moderator)
{
if (!todo.Users[uid].mainowner && !todo.Users[uid].owner && !todo.Users[uid].moderator)
{
this.bBan = true;
}
if ((this.bBan || todo.Users[uid].moderator) && todo.HasPower(i, 158))
{
this.bDunce = true;
}
}
}
}
}
}
if ((todo.w_mainowner || todo.w_owner || todo.w_moderator) && !(main.utabsmc.tabs[0].Main == false && !network.OnFriendList(todo.Users[i].u)))
{
bMake = true;
}
if ((todo.w_mainowner || todo.w_owner) && !(main.utabsmc.tabs[0].Main == false && !network.OnFriendList(todo.Users[i].u)))
{
bMake2 = true;
}
if (todo.Users[uid].online)
{
bMTP = true;
}
network.NetworkLocateUser(UserNo);
xx = main.upx - 270 - 15 - 50;
if (xx < 5)
{
xx = 5;
}
yy = xatlib.NY(30);
StatusText = StatusText + xatlib.GetUserStatus(uid);
dlght = 100;
if (PrivChatOnly)
{
dlght = dlght + xatlib.NY(40);
}
else
{
dlght = dlght + xatlib.NY(20);
dlght = dlght + xatlib.NY(40);
dlght = dlght + xatlib.NY(40);
if (!(this.bBan == undefined) || !(this.bDunce == undefined) || !(bKick == undefined))
{
dlght = dlght + xatlib.NY(40);
}
if (bMake != undefined)
{
dlght = dlght + xatlib.NY(40);
}
if (bMake2 != undefined)
{
dlght = dlght + xatlib.NY(40);
}
if (bMTP != undefined)
{
dlght = dlght + xatlib.NY(80);
}
}
this.mcviewprofilebackground = new xDialog(this, xx, yy, 270 + 60, dlght, xatlib.GetNameNumber(UserNo), undefined, 0, this.Delete);
Dia = this.mcviewprofilebackground.Dia;
Dia.UserNo = UserNo;
Press = function ():*
{
chat.mainDlg.GotoProfile(mcviewprofilebackground.UserNo);
return;
}
yy = yy + 35;
if (!ShowAsBanned)
{
Dia.avc = new xAvatar(this.mcviewprofilebackground, todo.Users[uid].a, xconst.ST(140), Press, !(todo.Users[uid].VIP == false), todo.Users[uid].aFlags, todo.Users[uid].Powers);
mc = Dia.avc.Av;
mc.UserNo = UserNo;
mc.x = xx + 5;
mc.y = yy;
}
Dia.txt1 = xatlib.createTextNoWrap(Dia, xx + 5 + 35, yy - 7, 270 + 10, 15 + 20, ShowAsBanned ? xconst.ST(25) : xatlib.StripSmilies(xatlib.GetUsername(UserNo)), 0, 0, 100, 0, 14, "left", 1);
Dia.txt2 = xatlib.createTextNoWrap(Dia, xx + 5 + 35, yy + 9, 270 + 10, 15 + 20, StatusText, 0, 0, 100, 0, 14, "left", 1);
yy = yy + 50;
if (!ShowAsBanned)
{
addSocial = function (arg1:*, arg2:*):*
{
if (!arg2 || arg2.length <= 5)
{
return;
}
Dia.soc[soci] = new flash.display.MovieClip();
Dia.addChild(Dia.soc[soci]);
Dia.soc1[soci] = new library(arg1);
var loc1:*;
Dia.soc1[soci].scaleY = loc1 = xatlib.NY(180) / 200;
Dia.soc1[soci].scaleX = loc1;
Dia.soc[soci].addChild(Dia.soc1[soci]);
Dia.soc[soci].x = sxx;
Dia.soc[soci].y = yy;
sxx = sxx + xatlib.NY(40);
Dia.soc[soci].url = arg2;
Dia.soc[soci].addEventListener(flash.events.MouseEvent.MOUSE_DOWN, Home1_onPress);
Dia.soc[soci].hint = {"Hint":arg2, "mc":Dia.soc[soci]};
Dia.soc[soci].addEventListener(flash.events.MouseEvent.ROLL_OVER, main.hint.EasyHint);
Dia.soc[soci].addEventListener(flash.events.MouseEvent.ROLL_OUT, main.hint.HintOff);
Dia.soc[soci].buttonMode = true;
var loc2:*;
soci++;
return;
}
sxx = mc.x + 8;
soci = 0;
Dia.soc = new Array();
Dia.soc1 = new Array();
if (todo.Users[uid].sn)
{
if (todo.Users[uid].sn["fb"])
{
addSocial("fb", todo.Users[uid].sn["fb"]["link"]);
}
}
addSocial("ho", ShowAsBanned ? undefined : todo.Users[uid].h);
yy = yy + xatlib.NY(36);
}
PrivFlags = undefined;
if (!todo.Users[uid].online && !todo.Users[uid].onsuper)
{
PrivFlags = xBut.b_Grayed + xBut.b_NoPress;
}
else
{
if (todo.HasPower(uid, 10) && !(todo.w_mainowner || todo.w_owner || todo.w_moderator))
{
PrivFlags = xBut.b_Grayed + xBut.b_NoPress;
}
}
Dia.pm = new xBut(Dia, xx + 10, yy, 150, xatlib.NY(30), xconst.ST(69), this.ViewprofileonPrivChat, PrivFlags);
Dia.pm.SetRoll(xconst.ST(70));
Dia.pm.But.UserNo = UserNo;
if (PrivChatOnly)
{
PrivFlags = undefined;
if (!todo.Users[uid].online && !todo.Users[uid].onsuper)
{
PrivFlags = xBut.b_Grayed + xBut.b_NoPress;
}
Dia.im = new xBut(Dia, xx + 170, yy, 150, xatlib.NY(30), "Invite to chat", this.ViewprofileImInv, PrivFlags);
Dia.im.But.UserNo = UserNo;
return;
}
PrivFlags = undefined;
if (!todo.Users[uid].online && !todo.Users[uid].onsuper)
{
PrivFlags = xBut.b_Grayed + xBut.b_NoPress;
}
else
{
if (todo.HasPower(uid, 69) && !(todo.w_mainowner || todo.w_owner || todo.w_moderator))
{
PrivFlags = xBut.b_Grayed + xBut.b_NoPress;
}
}
Dia.im = new xBut(Dia, xx + 170, yy, 150, xatlib.NY(30), xconst.ST(71), this.ViewprofileonPriv, PrivFlags);
Dia.im.SetRoll(xconst.ST(72));
Dia.im.But.UserNo = UserNo;
s = "";
if (network.OnFriendList(UserNo))
{
s = xconst.ST(73);
}
else
{
s = xconst.ST(74);
}
yy = yy + xatlib.NY(40);
Dia.af = new xBut(Dia, xx + 10, yy, 150, xatlib.NY(30), s, this.ViewprofileonFriend, todo.Users[uid].banned ? xBut.b_Grayed + xBut.b_NoPress : 0);
Dia.af.SetRoll(xconst.ST(75));
Dia.af.But.UserNo = UserNo;
s = xconst.ST(76);
if (network.OnIgnoreList(UserNo))
{
s = xconst.ST(77);
}
Dia.ig = new xBut(Dia, xx + 170, yy, 150, xatlib.NY(30), s, this.ViewprofileonIgnore);
Dia.ig.SetRoll(xconst.ST(78));
Dia.ig.But.UserNo = UserNo;
if (!(bKick == undefined) || !(this.bBan == undefined) || !(this.bDunce == undefined))
{
yy = yy + xatlib.NY(40);
}
if (bKick != undefined)
{
s = xconst.ST(79);
Dia.kick = new xBut(Dia, xx + 10, yy, 150, xatlib.NY(30), s, this.ViewprofileonKick, bKick ? 0 : xBut.b_Grayed + xBut.b_NoPress);
Dia.kick.SetRoll(xconst.ST(80));
Dia.kick.But.UserNo = UserNo;
}
if (!(this.bBan == undefined) || !(this.bDunce == undefined))
{
s = xconst.ST(81);
if (uid > -1 && todo.Users[uid].banned)
{
s = xconst.ST(82);
}
Dia.ban = new xBut(Dia, xx + 170, yy, 150, xatlib.NY(30), s, this.ViewprofileonGag, this.bBan || this.bDunce ? 0 : xBut.b_Grayed + xBut.b_NoPress);
Dia.ban.SetRoll(xconst.ST(83));
Dia.ban.But.UserNo = UserNo;
}
if (bMake != undefined)
{
yy = yy + xatlib.NY(40);
s = xconst.ST(135);
butstate = xBut.b_Grayed + xBut.b_NoPress;
if (todo.Users[uid].online && !todo.Users[uid].banned && (todo.Users[uid].member || todo.Users[uid].moderator || todo.Users[uid].owner || todo.Users[uid].gagged) || !todo.Users[uid].online)
{
if (!(todo.Users[i].flag0 & 512))
{
if (todo.w_mainowner)
{
if (!todo.Users[uid].mainowner)
{
butstate = 0;
}
}
else
{
if (todo.w_owner)
{
if (!todo.Users[uid].mainowner && !todo.Users[uid].owner)
{
butstate = 0;
}
}
else
{
if (todo.w_moderator)
{
if (!todo.Users[uid].mainowner && !todo.Users[uid].owner && !todo.Users[uid].moderator)
{
butstate = 0;
}
}
}
}
}
}
Dia.mv = new xBut(Dia, xx + 10, yy, 150, xatlib.NY(30), s, this.ViewprofileonUnMake, butstate);
Dia.mv.But.UserNo = UserNo;
s = xconst.ST(84);
butstate = xBut.b_Grayed + xBut.b_NoPress;
if (todo.Users[uid].online && !todo.Users[uid].banned && !todo.Users[uid].member)
{
if (!(todo.Users[i].flag0 & 512))
{
if (todo.w_mainowner)
{
if (!todo.Users[uid].mainowner)
{
butstate = 0;
}
}
else
{
if (todo.w_owner)
{
if (!todo.Users[uid].mainowner && !todo.Users[uid].owner)
{
butstate = 0;
}
}
else
{
if (todo.w_moderator)
{
if (!todo.Users[uid].mainowner && !todo.Users[uid].owner && !todo.Users[uid].moderator)
{
butstate = 0;
}
}
}
}
}
}
Dia.me = new xBut(Dia, xx + 170, yy, 150, xatlib.NY(30), s, this.ViewprofileonMember, butstate);
Dia.me.But.UserNo = UserNo;
}
if (bMake2 != undefined)
{
yy = yy + xatlib.NY(40);
s = xconst.ST(88);
butstate = xBut.b_Grayed + xBut.b_NoPress;
if (todo.Users[uid].online && !todo.Users[uid].banned && !todo.Users[uid].moderator || todo.Users[uid].moderator && todo.Users[uid].flag0 & 512)
{
if (!(todo.Users[i].flag0 & 512))
{
if (todo.w_mainowner)
{
if (!todo.Users[uid].mainowner)
{
butstate = 0;
}
}
else
{
if (todo.w_owner)
{
if (!todo.Users[uid].mainowner && !todo.Users[uid].owner)
{
butstate = 0;
}
}
}
}
}
Dia.mm = new xBut(Dia, xx + 10, yy, 150, xatlib.NY(30), s, this.ViewprofileonModerate, butstate);
Dia.mm.But.UserNo = UserNo;
s = xconst.ST(136);
butstate = xBut.b_Grayed + xBut.b_NoPress;
if (todo.Users[uid].online && !todo.Users[uid].banned && !todo.Users[uid].owner || todo.Users[uid].owner && todo.Users[uid].flag0 & 512)
{
if (!(todo.Users[i].flag0 & 512))
{
if (todo.w_mainowner)
{
if (!todo.Users[uid].mainowner)
{
butstate = 0;
}
}
}
}
Dia.mo = new xBut(Dia, xx + 170, yy, 150, xatlib.NY(30), s, this.ViewprofileonOwner, butstate);
Dia.mo.But.UserNo = UserNo;
}
if (bMTP)
{
if (!todo.bMobile)
{
yy = yy + xatlib.NY(40);
s = xconst.ST(148);
if (todo.Users[Me].Bride)
{
s = xconst.ST(150);
}
Dia.ma = new xBut(Dia, xx + 10, yy, 150, xatlib.NY(30), s, this.ViewprofileonMarry, 0);
Dia.ma.But.UserNo = UserNo;
Dia.ma.But.Mode = 1;
if (todo.Users[Me].Bride)
{
Dia.ma.But.Mode = 2;
}
Dia.dv = new xBut(Dia, xx + 170, yy, 150, xatlib.NY(30), xconst.ST(149), this.ViewprofileonMarry, 0);
Dia.dv.But.UserNo = UserNo;
Dia.dv.But.Mode = 3;
Dia.dv.SetRoll(xconst.ST(151));
yy = yy + xatlib.NY(40);
Dia.po = new xBut(Dia, xx + 10, yy, 150, xatlib.NY(30), "Powers", this.ViewprofileonPowers, xBut.b_Grayed + xBut.b_NoPress);
xatlib.AttachBut(Dia.po, "pwr");
Dia.po.But.UserNo = UserNo;
Dia.gf = new xBut(Dia, xx + 170, yy, 150, xatlib.NY(30), "Gifts", this.ViewprofileonMarry, 0);
xatlib.AttachBut(Dia.gf, "giftb");
Dia.gf.But.UserNo = UserNo;
Dia.gf.But.Mode = 4;
Dia.gf.SetRoll("Give a friend a gift");
}
}
return;
}
function Delete():*
{
main.hint.HintOff();
main.closeDialog();
return;
}
function Home1_onPress(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = arg1.currentTarget.url;
if (loc1.substr(0, 7).toLowerCase() != "http://")
{
loc1 = "http://" + loc1;
}
loc1 = xatlib.xatlinks(loc1);
if (chat.isKeyDown(flash.ui.Keyboard.SHIFT))
{
loc1 = loc1 + "&f=1";
}
xatlib.UrlPopup(xconst.ST(21), loc1);
return;
}
function ViewprofileonPriv(arg1:*):*
{
main.lockmc.visible = true;
todo.PrivateMessage = this.mcviewprofilebackground.UserNo;
this.Delete();
return;
}
function ViewprofileonPrivChat(arg1:*):*
{
var loc1:*;
loc1 = xatlib.FindUser(this.mcviewprofilebackground.UserNo);
var loc2:*;
loc2 = todo.Users[loc1].Location;
main.utabsmc.SetVisitorsTab();
var loc3:*;
loc3 = 1;
if (loc2)
{
loc3 = loc3 | 8;
}
loc3 = loc3 | 16;
var loc4:*;
loc4 = main.ctabsmc.TabAdd(this.mcviewprofilebackground.UserNo, 16777215, loc3, main.Private_onRelease, main.Private_onDelete);
xmessage.OpenGifts(this.mcviewprofilebackground.UserNo, 2);
main.ctabsmc.tabs[loc4].IMtype = loc2;
main.ctabsmc.UpdateTabs(loc4);
todo.DoBuildUserListScrollUp = true;
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
this.Delete();
return;
}
function ViewprofileonIgnore(arg1:flash.events.MouseEvent):*
{
network.NetworkIgnore(this.mcviewprofilebackground.UserNo, chat.isKeyDown(flash.ui.Keyboard.SHIFT) ? true : undefined);
this.Delete();
return;
}
function ViewprofileonGag(arg1:*):*
{
var loc3:*;
loc3 = undefined;
var loc1:*;
loc1 = this.mcviewprofilebackground.UserNo;
var loc2:*;
loc2 = xatlib.FindUser(loc1);
if (todo.Users[loc2].banned)
{
network.NetworkGagUser("u", loc1, false, 0);
this.Delete();
}
else
{
this.Delete();
(loc3 = new Object()).UserNo = loc1;
loc3.bBan = this.bBan;
loc3.bDunce = this.bDunce;
main.openDialog(11, loc3);
}
return;
}
function ViewprofileonKick(arg1:*):*
{
var loc1:*;
loc1 = this.mcviewprofilebackground.UserNo;
this.Delete();
var loc2:*;
loc2 = new Object();
loc2.UserNo = loc1;
loc2.bBan = false;
main.openDialog(11, loc2);
return;
}
function ViewprofileonFriend(arg1:*):*
{
var loc1:*;
loc1 = this.mcviewprofilebackground.UserNo;
network.NetworkFriendUser(loc1, network.OnFriendList(loc1) ? false : true);
this.Delete();
todo.DoBuildUserListScrollUp = true;
return;
}
function ViewprofileonUnMake(arg1:*):*
{
var loc1:*;
loc1 = this.mcviewprofilebackground.UserNo;
network.NetworkMakeUser(loc1, "r");
this.Delete();
return;
}
function ViewprofileonMember(arg1:*):*
{
var loc1:*;
loc1 = this.mcviewprofilebackground.UserNo;
network.NetworkMakeUser(loc1, "e");
this.Delete();
return;
}
function ViewprofileonModerate(arg1:*):*
{
var loc1:*;
loc1 = this.mcviewprofilebackground.UserNo;
network.NetworkMakeUser(loc1, "m");
this.Delete();
return;
}
function ViewprofileonOwner(arg1:*):*
{
var loc1:*;
loc1 = this.mcviewprofilebackground.UserNo;
network.NetworkMakeUser(loc1, "M");
this.Delete();
return;
}
function ViewprofileonPowers(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = new Object();
loc1.muserid = this.mcviewprofilebackground.UserNo;
loc1.strid = this.un;
main.openDialog(7, loc1);
return;
}
function ViewprofileonMarry(arg1:*):*
{
var loc1:*;
loc1 = new Object();
loc1.Marry = this.mcviewprofilebackground.UserNo;
loc1.Mode = arg1.currentTarget.Mode;
main.openDialog(3, loc1);
if (arg1.currentTarget.Mode == 4)
{
xmessage.OpenGifts(this.mcviewprofilebackground.UserNo);
}
return;
}
function ViewprofileImInv(arg1:*):*
{
chat.IM.ImPostMessage("Join me on " + xatlib.GroupUrl() + " chat group :)", undefined, this.mcviewprofilebackground.UserNo);
this.Delete();
return;
}
function WriteLocation(arg1:String, arg2:*, arg3:String):*
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
if (!this.mcviewprofilebackground)
{
return;
}
var loc1:*;
if ((loc1 = this.mcviewprofilebackground.Dia).UserNo != xatlib.xInt(arg2))
{
return;
}
var loc2:*;
if ((loc2 = xatlib.xInt(arg2).toString()).substr(-6, 6) == "000000")
{
loc2 = loc2.substr(0, loc2.length - 6) + "M";
}
this.un = " " + (arg3 == undefined ? xatlib.xInt(arg2) : arg3 + " (" + loc2 + ")");
loc1.DiaBar.SetText(xatlib.FixLI(this.un));
if (loc1.txt1 != undefined)
{
if (loc1.txt4)
{
loc1.removeChild(loc1.txt4);
}
loc1.txt4 = new xSprite();
loc1.addChild(loc1.txt4);
xatlib.createTextNoWrap(loc1.txt4, 0, 0, 270 + 10, 15, arg1, 0, 0, 100, 0, 14, "left", 1);
loc1.txt4.x = loc1.DiaBack.x + 5 + 17 + 5;
loc1.txt4.y = loc1.DiaBack.y + 37 + 15 + 16;
if (xatlib.CountLinks(arg1) != 0)
{
if (!(todo.w_mainowner || todo.w_owner || todo.w_moderator))
{
loc3 = xatlib.FindUser(loc1.UserNo);
if (todo.Users[loc3].Powers[0] & 1 << 10)
{
loc4 = loc1.pm.But.y;
loc5 = loc1.pm.But.x;
loc1.removeChild(loc1.pm);
loc6 = undefined;
if (!todo.Users[loc3].online && !todo.Users[loc3].onsuper)
{
loc6 = xBut.b_Grayed + xBut.b_NoPress;
}
loc1.pm = new xBut(loc1, loc5, loc4, 150, xatlib.NY(30), xconst.ST(69), this.ViewprofileonPrivChat, loc6);
loc1.pm.SetRoll(xconst.ST(70));
loc1.pm.But.UserNo = loc1.UserNo;
}
if (todo.HasPower(loc3, 69))
{
loc4 = loc1.im.But.y;
loc5 = loc1.im.But.x;
loc1.removeChild(loc1.im);
loc6 = undefined;
if (!todo.Users[loc3].online && !todo.Users[loc3].onsuper)
{
loc6 = xBut.b_Grayed + xBut.b_NoPress;
}
loc1.im = new xBut(loc1, loc5, loc4, 150, xatlib.NY(30), xconst.ST(71), this.ViewprofileonPriv, loc6);
loc1.im.SetRoll(xconst.ST(72));
loc1.im.But.UserNo = loc1.UserNo;
}
}
loc1.txt4.str = arg1;
loc1.txt4.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.GoFriend);
loc1.txt4.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.GoFriendHint);
loc1.txt4.addEventListener(flash.events.MouseEvent.ROLL_OUT, main.hint.HintOff);
loc1.txt4.buttonMode = true;
loc1.txt4.mouseChildren = false;
}
if (loc1.po != undefined)
{
loc3 = xatlib.FindUser(loc1.UserNo);
loc7 = loc1.po.But.y;
loc8 = loc1.po.But.x;
loc1.po = new xBut(loc1, loc8, loc7, 150, xatlib.NY(30), xconst.ST(189), this.ViewprofileonPowers, 0);
xatlib.AttachBut(loc1.po, "pwr");
loc1.po.But.UserNo = loc1.UserNo;
}
}
return;
}
private function GoFriendHint(arg1:flash.events.MouseEvent):*
{
main.hint.Hint(0, 0, xconst.ST(91));
return;
}
private function GoFriend(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = xatlib.CountLinks(arg1.currentTarget.str, 1);
xatlib.UrlPopup(xconst.ST(91), loc1);
return;
}
const TO:int=5;
public var mcviewprofilebackground:*;
var bBan:*;
var bDunce:*;
var tf:*;
var tf2:*;
var SavedUserNo:*;
var un:*="";
}
}
// class DialogEdit
package
{
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.xml.*;
public class DialogEdit extends flash.display.Sprite
{
public function DialogEdit(arg1:*)
{
var loc1:*;
loc1 = undefined;
this.eip_i = new Array();
this.eip_w = new Array();
this.eip_h = new Array();
this.ImagePaneVars = new Object();
super();
this.sMode = arg1;
if (arg1)
{
var loc2:*;
this.mceditbackground = loc2 = new xDialog(this, xatlib.NX(20), xatlib.NY(20), xatlib.NX(600), xatlib.NY(440), " " + xconst.ST(44), undefined, 0, this.mceditbackground_close);
this.Dia = loc2;
this.Dia.mcreturn2 = new xBut(this.Dia, xatlib.NX(220), xatlib.NY(420), xatlib.NX(200), xatlib.NY(30), xconst.ST(45), this.EditClose);
this.Dia.ChangeBack = new xBut(this.Dia, xatlib.NX(30), xatlib.NY(60), xatlib.NX(185), xatlib.NY(30), xconst.ST(46), this.SwitchToBackMode);
this.Dia.ChangeGroups = new xBut(this.Dia, xatlib.NX(227), xatlib.NY(60), xatlib.NX(185), xatlib.NY(30), xconst.ST(47), this.SwitchToGroupMode);
this.Dia.mcadvanced = new xBut(this.Dia, xatlib.NX(424), xatlib.NY(60), xatlib.NX(185), xatlib.NY(30), xconst.ST(49), this.mcadvanced_onRelease);
this.Dia.mcadvanced.hint = {"mc":this.Dia.mcadvanced, "Hint":xconst.ST(48)};
this.Dia.mcadvanced.addEventListener(flash.events.MouseEvent.ROLL_OVER, main.hint.EasyHint);
this.Dia = new flash.display.MovieClip();
this.mceditbackground.addChild(this.Dia);
this.NewLobbySet = undefined;
this.CreateChangeGroup();
this.eip(8);
}
else
{
if (global.xc & 64)
{
loc1 = "http://www.facebook.com/apps/application.php?id=3218220471";
xatlib.UrlPopup(xconst.ST(92), loc1);
}
else
{
this.mcgetbackground = new xDialog(this, xatlib.NX(20), xatlib.NY(20), xatlib.NX(600), xatlib.NY(440), " " + xconst.ST(92), undefined, 0, this.mcgetbackground_close);
this.Dia = this.mcgetbackground.Dia;
this.mcgetbackground.Dia.mcreturn = new xBut(this.Dia, xatlib.NX(240), xatlib.NY(420), xatlib.NX(160), xatlib.NY(30), xconst.ST(45), this.mcreturn_onRelease);
this.mcgetchat = new xBut(this.Dia, xatlib.NX(0 + 22), xatlib.NY(24), xatlib.NX(160), xatlib.NY(24), xconst.ST(5), this.mcgetchat_onRelease);
if (!(global.gn == undefined) && !(global.gn == xconst.ST(0)))
{
this.mcgetgroup = new xBut(this.Dia, xatlib.NX(160 + 42), xatlib.NY(24), xatlib.NX(160), xatlib.NY(24), xconst.ST(212, global.gn), this.mcgetgroup_onRelease);
}
else
{
this.mcgetchat.TextCol = !todo.ButCol;
}
this.mcmakeagroup = new xBut(this.Dia, xatlib.NX(320 + 62), xatlib.NY(24), xatlib.NX(160), xatlib.NY(24), xconst.ST(213), this.mcmakeagroup_onRelease);
this.eip(2);
}
}
return;
}
public function CreateChangeBackground():*
{
this.Dia.mcget = new xBut(this.Dia, xatlib.NX(486), xatlib.NY(60 + 50), xatlib.NX(120), xatlib.NY(30), xconst.ST(39), this.mclget_onRelease);
this.Dia.mcget.SetHint(xconst.ST(38));
this.Dia.bkgtext = this.Dia;
xatlib.createTextNoWrap(this.Dia.bkgtext, xatlib.NX(24), xatlib.NY(60 + 50), xatlib.NX(120), xatlib.NY(30), xconst.ST(40), 2105376, 0, 100, 0, 24, "left", 1);
var loc1:*;
loc1 = xatlib.AddBackground(this.Dia, xatlib.NX(140), xatlib.NY(60 + 50), xatlib.NX(338), xatlib.NY(30));
this.xurltextbox = xatlib.AddTextField(this.Dia, xatlib.NX(140), xatlib.NY(60 + 50), xatlib.NX(338), xatlib.NY(30));
this.xurltextbox.type = flash.text.TextFieldType.INPUT;
this.xurltextbox.defaultTextFormat = main.fmt;
this.xurltextbox.multiline = true;
this.xurltextbox.addEventListener(flash.events.FocusEvent.FOCUS_IN, this.OnFocus);
this.xurltextbox.addEventListener(flash.events.Event.CHANGE, this.OnCR);
this.CreateBackPane();
return;
}
function OnFocus(arg1:*):*
{
if (this.xurltextbox.text == " <" + xconst.ST(38) + ">")
{
this.xurltextbox.text = "";
}
return;
}
function OnCR(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = undefined;
loc1 = 0;
while (loc1 < this.xurltextbox.text.length)
{
if (this.xurltextbox.text.charAt(loc1) == "\r")
{
this.xurltextbox.text = this.xurltextbox.text.substr(0, loc1);
if (loc1 != 0)
{
this.mclget_onRelease(undefined);
}
break;
}
loc1 = (loc1 + 1);
}
return;
}
function CreateChangeGroup():*
{
this.Dia.bkgtext = this.Dia;
xatlib.createTextNoWrap(this.Dia.bkgtext, xatlib.NX(28), xatlib.NY(60 + 50), xatlib.NX(215), xatlib.NY(30), xconst.ST(41), 0, 0, 100, 0, 18, "left", 1);
xatlib.createTextNoWrap(this.Dia.bkgtext, xatlib.NX(28), xatlib.NY(360), xatlib.NX(315), xatlib.NY(60), xconst.ST(42), 0, 0, 100, 0, xatlib.NY(12), "left", 2);
var loc1:*;
loc1 = xatlib.AddBackground(this.Dia, xatlib.NX(250), xatlib.NY(60 + 50), xatlib.NX(270), xatlib.NY(30));
this.xurltextbox = xatlib.AddTextField(this.Dia, xatlib.NX(250), xatlib.NY(60 + 50 + 5), xatlib.NX(270), xatlib.NY(30));
this.xurltextbox.type = flash.text.TextFieldType.INPUT;
this.xurltextbox.defaultTextFormat = main.fmt;
this.Dia.getgroup = new xBut(this.Dia, xatlib.NX(640 - 30 - 80), xatlib.NY(60 + 50), xatlib.NX(80), xatlib.NY(30), xconst.ST(131), this.GetTextGroup);
this.bpw = xatlib.NX(580);
this.bph = xatlib.NY(300 - 50 - 50);
this.bpx = xatlib.NX(30);
this.bpy = xatlib.NY(100 + 50);
var loc2:*;
loc2 = xatlib.AddBackground(this.Dia, this.bpx, this.bpy, this.bpw, this.bph);
this.backgroup = new flash.display.MovieClip();
loc2.addChild(this.backgroup);
this.backgroup.Width = this.bpw;
var loc3:*;
loc3 = xatlib.AddBackground(this.Dia, this.bpx + 1, this.bpy + 1, this.bpw - 2 - xatlib.NX(16), this.bph - 2, 0);
this.backgroup.mask = loc3;
this.bscrollmc = new xScroll(this.Dia, this.bpx + this.bpw - xatlib.NX(16), this.bpy, xatlib.NX(16), this.bph, xatlib.NX(16), xatlib.NX(32), 30, 10 * 100, 0 * 100, this.onBackScrollChange);
this.Dia.makegroup = new xBut(this.Dia, xatlib.NX(640 - 30 - 80) - 100, xatlib.NY(359), xatlib.NX(80) + 100, xatlib.NY(30), xconst.ST(43), this.CreateGrpRel);
return;
}
function onBackScrollChange():*
{
var loc1:*;
loc1 = this.ImagePaneVars.Height - this.bph;
if (loc1 < 0)
{
loc1 = 0;
}
this.bscrollmc.Scr_size = loc1;
var loc2:*;
loc2 = this.bscrollmc.Scr_position;
this.backgroup.y = -loc2;
return;
}
function CreateGrpRel(arg1:*):*
{
var loc1:*;
loc1 = xconst.chatdomain + "creategroup.php";
xatlib.UrlPopup(xconst.ST(43), loc1);
return;
}
function SetGrpChks():*
{
var loc1:*;
loc1 = 0;
while (loc1 < this.gnode.length)
{
if (this.gnode[loc1].chk)
{
this.gnode[loc1].chk.xitem.tick.visible = this.gnode[loc1].sel == true;
}
loc1 = (loc1 + 1);
}
return;
}
function EditClose(arg1:*):*
{
var loc1:*;
loc1 = undefined;
if (this.NewLobbySet != undefined)
{
todo.MainFlagBits = todo.MainFlagBits & !xconst.f_Lobby;
loc1 = 0;
while (loc1 < this.gnode.length)
{
if (this.gnode[loc1].sel)
{
todo.MainFlagBits = todo.MainFlagBits | xconst.f_Lobby;
todo.BackVars[1] = this.gnode[loc1].n;
todo.BackVars[2] = xatlib.xInt(this.gnode[loc1].r);
break;
}
loc1 = (loc1 + 1);
}
this.eip(16);
main.ctabsmc.tabs[1].t = todo.BackVars[1];
main.ctabsmc.tabs[1].h = main.ctabsmc.tabs[1].t + " ";
this.group = todo.BackVars[2];
if (xconst.f_Lobby & todo.MainFlagBits)
{
main.ctabsmc.tabs[0].Skip = undefined;
main.ctabsmc.tabs[1].Skip = undefined;
}
else
{
main.ctabsmc.tabs[0].Skip = true;
main.ctabsmc.tabs[1].Skip = true;
}
main.ctabsmc.UpdateTabs(0);
}
main.closeDialog();
return;
}
function GetTextGroup(arg1:*):*
{
this.eip(32 + 8);
this.CloseStuff();
this.CreateChangeGroup();
return;
}
function SwitchToGroupMode(arg1:*):*
{
this.CloseStuff();
this.CreateChangeGroup();
this.eip(8);
return;
}
function SwitchToBackMode(arg1:*):*
{
this.CloseStuff();
this.CreateChangeBackground();
this.eip(2);
return;
}
function CloseStuff():*
{
if (this.mcbackbackgroundb)
{
this.Dia.removeChild(this.mcbackbackgroundb);
}
this.mcbackbackgroundb = null;
if (this.mcbackbackgroundmask)
{
this.Dia.removeChild(this.mcbackbackgroundmask);
}
this.mcbackbackgroundmask = null;
if (this.bscrollmc)
{
this.bscrollmc.Delete();
}
this.bscrollmc = null;
if (this.Dia)
{
this.mceditbackground.removeChild(this.Dia);
}
this.Dia = new flash.display.MovieClip();
this.mceditbackground.addChild(this.Dia);
return;
}
function mceditbackground_close():*
{
if (this.sMode == 0)
{
this.mcgetbackground_close();
return;
}
this.CloseStuff();
if (this.mceditbackground)
{
this.mceditbackground.Delete();
var loc1:*;
this.mceditbackground = loc1 = null;
this.Dia = loc1;
}
this.ImagePaneData = null;
todo.DoUpdate = true;
main.closeDialog();
return;
}
function mclget_onRelease(arg1:*):*
{
this.eip_back = this.xurltextbox.text;
this.eip(2);
return;
}
function mcadvanced_onRelease(arg1:*):*
{
var loc3:*;
loc3 = null;
var loc1:*;
loc1 = xconst.usedomain + "/web_gear/chat.php";
var loc2:*;
loc2 = loc1;
if (this.eip_id == undefined)
{
loc2 = " xat.com/c ";
loc3 = " " + xconst.ST(51) + " ";
}
else
{
loc1 = loc1 + "?id=" + this.eip_id + "&pw=" + this.eip_pw;
if (global.xb != undefined)
{
loc1 = loc1 + "&xb=" + global.xb;
}
loc2 = loc1;
loc3 = " " + xconst.ST(50) + " ";
}
xatlib.UrlPopup(loc3, loc2);
return;
}
public function eip(arg1:Number):*
{
if (this.EIPrunning)
{
return;
}
this.EIPrunning = true;
this.ClearBackPane();
if (this.eip_back == undefined)
{
this.eip_back = "";
if (todo.pass && todo.w_mainowner)
{
this.eip_back = todo.BackVars[0];
}
}
if (this.eip_pw == undefined && todo.w_mainowner && todo.pass)
{
this.eip_pw = todo.pass;
}
if (this.eip_id == undefined)
{
this.eip_id = 0;
if (todo.pass && todo.w_mainowner)
{
this.eip_id = todo.w_room;
}
}
todo.BackVars[0] = this.eip_back;
var loc1:*;
loc1 = this.JoinBackground();
var loc2:*;
loc2 = xconst.chatdomain + "eip.php?id=" + this.eip_id + "&pw=" + this.eip_pw + "&md=" + arg1 + "&back=" + loc1 + "&fg=" + todo.MainFlagBits + xatlib.TimeStamp();
if (arg1 & 32)
{
loc2 = loc2 + "&s=" + this.xurltextbox.text;
}
loc2 = xatlib.searchreplace("#", "%23", loc2);
var loc3:*;
loc3 = xatlib.LoadVariables(loc2, this.eip_xml_onLoad);
this.ShowBusyMessage();
return;
}
function ShowBusyMessage():*
{
if (!this.mcbackbackgroundb)
{
return;
}
if (this.eip_busy)
{
main.box_layer.removeChild(this.eip_busy);
}
this.eip_busy = new flash.display.MovieClip();
main.box_layer.addChild(this.eip_busy);
xatlib.createTextNoWrap(this.eip_busy, this.mcbackbackgroundb.x + this.mcbackbackgroundb.width * 0.15, this.mcbackbackgroundb.y, this.mcbackbackgroundb.width * 0.7, this.mcbackbackgroundb.height, xconst.ST(52), 2105376, 0, 100, 0, 24, "left", 1);
return;
}
function eip_busy_box(arg1:String):*
{
if (this.eip_busy)
{
main.box_layer.removeChild(this.eip_busy);
}
this.eip_busy = new flash.display.MovieClip();
main.box_layer.addChild(this.eip_busy);
xatlib.createTextNoWrap(this.eip_busy, this.mcbackbackgroundb.x + this.mcbackbackgroundb.width * 0.15, this.mcbackbackgroundb.y, this.mcbackbackgroundb.width * 0.7, this.mcbackbackgroundb.height, arg1, 15728640, 0, 100, 0, 24, "left", 1);
return;
}
function PreviewF(arg1:*):*
{
xatlib.UrlPopup(xconst.ST(53), arg1.currentTarget.u);
return;
}
function eip_xml_onLoad(arg1:flash.events.Event):*
{
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
var loc9:*;
loc9 = undefined;
var loc10:*;
loc10 = undefined;
var loc11:*;
loc11 = undefined;
var loc12:*;
loc12 = undefined;
var loc13:*;
loc13 = undefined;
var loc14:*;
loc14 = undefined;
var loc15:*;
loc15 = undefined;
this.EIPrunning = false;
if (this.eip_busy)
{
main.box_layer.removeChild(this.eip_busy);
}
this.eip_busy = null;
this.eip_xml = new flash.xml.XMLDocument();
this.eip_xml.ignoreWhite = true;
this.eip_xml.parseXML(arg1.currentTarget.data);
if (!this.eip_xml.firstChild)
{
this.eip_busy_box(xconst.ST(54));
return;
}
var loc1:*;
loc1 = new flash.xml.XMLDocument();
var loc2:*;
loc2 = loc1.createElement("r");
loc1.appendChild(loc2);
network.socket.send(loc1);
this.ClearBackPane();
var loc3:*;
loc3 = this.eip_xml.firstChild.childNodes;
this.gnode = undefined;
var loc4:*;
loc4 = 0;
while (loc4 < loc3.length)
{
if (loc3[loc4].nodeName == "sdown")
{
this.eip_busy_box(xconst.ST(55));
return;
}
if (loc3[loc4].nodeName == "group")
{
this.gnode = new Array();
loc6 = loc3[loc4].childNodes.length;
loc7 = 0;
while (loc7 < loc6)
{
this.gnode[loc7] = new Object();
loc8 = loc3[loc4].childNodes[loc7].attributes;
var loc16:*;
loc16 = 0;
var loc17:*;
loc17 = loc8;
for (loc9 in loc17)
{
this.gnode[loc7][loc9] = loc8[loc9];
}
loc7 = (loc7 + 1);
}
}
if (loc3[loc4].nodeName == "oldback")
{
this.eip_oldback = xatlib.xInt(loc3[loc4].attributes.v);
}
if (loc3[loc4].nodeName != "back")
{
if (loc3[loc4].nodeName != "pw")
{
if (loc3[loc4].nodeName != "id")
{
if (loc3[loc4].nodeName.charAt(0) != "i")
{
if (loc3[loc4].nodeName.charAt(0) != "w")
{
if (loc3[loc4].nodeName.charAt(0) == "h")
{
this.eip_h[xatlib.xInt(loc3[loc4].nodeName.substr(1))] = loc3[loc4].attributes.v;
}
}
else
{
this.eip_w[xatlib.xInt(loc3[loc4].nodeName.substr(1))] = loc3[loc4].attributes.v;
}
}
else
{
this.eip_i[xatlib.xInt(loc3[loc4].nodeName.substr(1))] = loc3[loc4].attributes.v;
}
}
else
{
this.eip_id = xatlib.xInt(loc3[loc4].attributes.v);
}
}
else
{
this.eip_pw = xatlib.xInt(loc3[loc4].attributes.v);
}
}
else
{
xatlib.SplitBackground(loc3[loc4].attributes.v);
this.eip_back = todo.BackVars[0];
}
loc4 = (loc4 + 1);
}
if (this.gnode)
{
if (this.gnode[0].nodeName == "g0")
{
this.NewLobbySet = true;
}
else
{
this.gnode.unshift(new Object());
this.gnode[0] = new Object();
this.gnode[0].n = todo.BackVars[1];
this.gnode[0].r = todo.BackVars[2];
this.gnode[0].d = "";
loc7 = 1;
while (loc7 < this.gnode.length)
{
if (xatlib.xInt(this.gnode[loc7].r) == todo.BackVars[2])
{
this.gnode[0].d = this.gnode[loc7].d;
}
loc7 = (loc7 + 1);
}
}
loc10 = 0;
loc7 = 0;
while (loc7 < this.gnode.length)
{
loc11 = xatlib.xInt(this.gnode[loc7].r) == todo.BackVars[2];
if (!(!(loc7 == 0) && loc11 && !this.NewLobbySet))
{
if (!(todo.MainFlagBits & xconst.f_Lobby) || this.NewLobbySet)
{
loc11 = false;
}
if (this.NewLobbySet && loc7 == 0)
{
loc11 = true;
}
loc12 = new flash.display.MovieClip();
this.backgroup.addChild(loc12);
loc12.y = loc10++ * 20;
this.gnode[loc7].chk = loc16 = xatlib.AttachMovie(loc12, "checkbox");
(loc13 = loc16).x = 5;
loc13.y = 3;
this.gnode[loc7].sel = loc16 = loc11;
loc13.xitem.tick.visible = loc16;
loc13.z = loc7;
loc13.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.OnCheck);
this.ImagePaneVars.Height = loc12.y + 20;
loc14 = new flash.display.MovieClip();
loc12.addChild(loc14);
xatlib.createTextNoWrap(loc14, 20, 1, 100, 20, this.gnode[loc7].n, 1052688, 0, 100, 0, 16, "left", 1);
xatlib.createTextNoWrap(loc14, 20 + 101, 1, xatlib.NX((480 - 1)) - 101 - 20, 20, this.gnode[loc7].d, 4210752, 0, 100, 0, 14, "left", 1);
loc14.hint = {"Hint":this.gnode[loc7].n + ": " + this.gnode[loc7].d, "mc":loc14};
loc14.addEventListener(flash.events.MouseEvent.ROLL_OVER, main.hint.EasyHint);
loc14.addEventListener(flash.events.MouseEvent.ROLL_OUT, main.hint.HintOff);
(loc15 = new xBut(loc12, xatlib.NX(480), 2, xatlib.NX(80), 18, xconst.ST(56), this.PreviewF)).But.u = xconst.usedomain + "/" + this.gnode[loc7].n;
}
loc7 = (loc7 + 1);
}
this.SetGrpChks();
return;
}
if (global.xb != undefined)
{
this.eip_i.unshift(global.xb);
this.eip_h.unshift(todo.StageHeight);
this.eip_w.unshift(todo.StageWidth);
}
if (this.xurltextbox)
{
if (this.urltextbox_text == undefined)
{
this.urltextbox_text = 1;
this.xurltextbox.text = " <" + xconst.ST(38) + ">";
}
if (this.xurltextbox.text.indexOf("web_gear/background") >= 0)
{
this.xurltextbox.text = "";
}
}
var loc5:*;
loc5 = "id=" + this.eip_id;
if (this.eip_id != todo.w_useroom)
{
this.SetEmbedCode(this.eip_id);
}
this.CreateImagePane(this.mcbackbackground, this.eip_i, 100, 75);
this.SaveEipInCookie();
return;
}
function OnCheck(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = arg1.currentTarget.z;
var loc2:*;
loc2 = this.gnode[loc1].sel == true;
var loc3:*;
loc3 = 0;
while (loc3 < this.gnode.length)
{
this.gnode[loc3].sel = false;
loc3 = (loc3 + 1);
}
this.gnode[loc1].sel = !loc2;
this.SetGrpChks();
this.NewLobbySet = true;
return;
}
function SaveEipInCookie():*
{
if (this.eip_id == undefined)
{
return;
}
if (this.eip_id < 1)
{
return;
}
if (this.eip_pw == undefined)
{
return;
}
var loc1:*;
loc1 = xatlib.getLocal("chat" + String(this.eip_id), "/");
loc1.objectEncoding = flash.net.ObjectEncoding.AMF0;
if (loc1 != null)
{
loc1.data.pass = this.eip_pw;
loc1.flush();
}
return;
}
function CreateImagePane(arg1:*, arg2:Array, arg3:Number, arg4:Number):*
{
var loc2:*;
loc2 = null;
var loc3:*;
loc3 = null;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
if (!arg1)
{
return;
}
var loc1:*;
loc1 = xconst.usedomain + "/web_gear/background/";
this.ImagePaneVars.gap = 5;
this.ImagePaneVars.pWidth = arg1.Width - 19;
var loc4:*;
loc4 = int(this.ImagePaneVars.pWidth / (arg3 + this.ImagePaneVars.gap) + 0.5);
this.ImagePaneVars.tw = int((this.ImagePaneVars.pWidth - this.ImagePaneVars.gap * (loc4 - 1)) / loc4);
var loc8:*;
arg4 = loc8 = int(this.ImagePaneVars.tw * arg4 / arg3);
this.ImagePaneVars.th = loc8;
arg3 = this.ImagePaneVars.tw;
this.ImagePaneVars.xofst = int((this.ImagePaneVars.pWidth - loc4 * arg3 - (loc4 - 1) * this.ImagePaneVars.gap) / 2);
this.ImagePaneVars.mcPane = arg1;
this.ImagePaneData = new Array();
var loc5:*;
loc5 = 0;
while (loc5 < arg2.length)
{
loc6 = new flash.display.MovieClip();
arg1.addChild(loc6);
if (arg2[loc5].substr(0, 7) != "http://")
{
loc2 = loc1 + "xat_" + arg2[loc5] + ".jpg";
loc3 = loc1 + "jdothumb/xat_" + arg2[loc5] + ".jpg";
}
else
{
loc2 = loc8 = arg2[loc5];
loc3 = loc8;
}
loc6.back = loc2;
if (this.eip_w[loc5] > 0 && this.eip_h[loc5] > 0)
{
loc6.Aspect = this.eip_w[loc5] / this.eip_h[loc5];
}
this.ImagePaneData[loc5] = loc6;
loc7 = new flash.display.MovieClip();
loc6.addChild(loc7);
loc6.pic = loc6;
xatlib.LoadMovie(loc7, loc3);
loc6.visible = false;
loc5 = (loc5 + 1);
}
return;
}
function ImagePaneTick():*
{
var loc1:*;
loc1 = NaN;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = NaN;
var loc6:*;
loc6 = NaN;
var loc7:*;
loc7 = undefined;
if (!this.ImagePaneData)
{
return;
}
var loc2:*;
loc2 = false;
loc1 = 0;
while (loc1 < this.ImagePaneData.length)
{
loc3 = this.ImagePaneData[loc1];
loc4 = loc3.pic;
if (!loc3.Done && loc4.width > 0)
{
loc3.Done = true;
loc2 = true;
loc4.width = this.ImagePaneVars.tw;
loc4.height = this.ImagePaneVars.th;
if (loc3.Aspect != undefined)
{
loc4.width = int(this.ImagePaneVars.th * loc3.Aspect);
if (loc4.width > this.ImagePaneVars.tw * 2)
{
loc4.width = this.ImagePaneVars.tw * 2;
}
}
loc3.visible = true;
loc3.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.PicPress);
loc3.hint = {"mc":loc3, "Hint":xconst.ST(57)};
loc3.addEventListener(flash.events.MouseEvent.ROLL_OVER, main.hint.EasyHint);
loc3.addEventListener(flash.events.MouseEvent.ROLL_OUT, main.hint.HintOff);
}
loc1 = (loc1 + 1);
}
if (loc2)
{
loc5 = this.ImagePaneVars.xofst;
loc6 = 0;
loc1 = 0;
while (loc1 < this.ImagePaneData.length)
{
loc3 = this.ImagePaneData[loc1];
if (loc3.Done)
{
if (loc5 + loc3.pic.width > this.ImagePaneVars.pWidth)
{
loc5 = this.ImagePaneVars.xofst;
loc6 = loc6 + this.ImagePaneVars.th + this.ImagePaneVars.gap;
}
loc3.y = loc6;
loc3.x = loc5;
loc5 = loc5 + loc3.pic.width + this.ImagePaneVars.gap;
}
loc1 = (loc1 + 1);
}
this.ImagePaneVars.Height = loc6;
if ((loc7 = this.ImagePaneVars.Height - this.bph) < 0)
{
loc7 = 0;
}
this.bscrollmc.ssize = loc7;
}
return;
}
function PicPress(arg1:*):*
{
this.eip_back = arg1.currentTarget.back;
chat.mainDlg.UpdateBackground(this.eip_back);
this.eip(4);
this.ClearBackPane();
this.mceditbackground_close();
return;
}
function ClearBackPane(arg1:*):*
{
var loc1:*;
loc1 = undefined;
if (this.eip_busy)
{
main.box_layer.removeChild(this.eip_busy);
}
this.eip_busy = null;
if (this.ImagePaneData)
{
loc1 = 0;
while (loc1 < this.ImagePaneData.length)
{
this.mcbackbackground.removeChild(this.ImagePaneData[loc1]);
loc1 = (loc1 + 1);
}
}
this.ImagePaneData = new Array();
this.eip_w = new Array();
this.eip_h = new Array();
this.eip_i = new Array();
if (!(arg1 == undefined) && this.mcbackbackground && this.mcbackbackgroundb)
{
this.mcbackbackgroundb.removeChild(this.mcbackbackground);
this.mcbackbackground = null;
}
return;
}
function CreateBackPane():*
{
this.ClearBackPane(1);
this.bpw = xatlib.NX(580);
this.bph = xatlib.NY(300 - 50);
this.bpx = xatlib.NX(30);
this.bpy = xatlib.NY(100 + 50);
this.mcbackbackgroundb = xatlib.AddBackground(this.Dia, this.bpx, this.bpy, this.bpw, this.bph);
this.mcbackbackground = new flash.display.MovieClip();
this.mcbackbackgroundb.addChild(this.mcbackbackground);
this.mcbackbackground.Width = this.bpw;
this.mcbackbackgroundmask = xatlib.AddBackground(this.Dia, this.bpx + 1, this.bpy + 1, this.bpw - 2 - xatlib.NX(16), this.bph - 2, 0);
this.mcbackbackground.mask = this.mcbackbackgroundmask;
this.bscrollmc = new xScroll(this.Dia, this.bpx + this.bpw - xatlib.NX(16), this.bpy, xatlib.NX(16), this.bph, xatlib.NX(16), xatlib.NX(32), 30, 10 * 100, 0 * 100, this.onBackScrollChange2);
return;
}
function onBackScrollChange2():*
{
var loc1:*;
loc1 = this.ImagePaneVars.Height - this.bph;
if (loc1 < 0)
{
loc1 = 0;
}
this.bscrollmc.Scr_size = loc1;
var loc2:*;
loc2 = this.bscrollmc.Scr_position;
this.mcbackbackground.y = -loc2;
return;
}
function JoinBackground():String
{
var loc1:*;
loc1 = null;
loc1 = todo.BackVars[0];
var loc2:*;
loc2 = 1;
while (loc2 < 12)
{
if (todo.BackVars[loc2] == undefined)
{
break;
}
loc1 = loc1 + ";=" + todo.BackVars[loc2];
loc2 = (loc2 + 1);
}
return loc1;
}
function mcgetchat_onRelease(arg1:flash.events.MouseEvent):*
{
this.mcgetchat.TextCol = 16711680;
if (this.mcgetgroup)
{
this.mcgetgroup.TextCol = 0;
}
this.eip(2);
return;
}
function mcgetgroup_onRelease(arg1:flash.events.MouseEvent):*
{
this.mcgetchat.TextCol = 0;
this.mcgetgroup.TextCol = 16711680;
this.SetEmbedCode(todo.w_room, global.gn, true);
return;
}
function mcmakeagroup_onRelease(arg1:flash.events.MouseEvent):*
{
this.mcreturn_onRelease(arg1);
var loc1:*;
loc1 = "http://www.xat.com/web_gear/chat/creategroup.php";
xatlib.UrlPopup(xconst.ST(92), loc1);
return;
}
function mcgetbackground_close():*
{
main.hint.HintOff();
this.mcgetbackground.Delete();
return;
}
function mcreturn_onRelease(arg1:flash.events.MouseEvent):*
{
this.eip_i.length = 0;
todo.DoUpdate = true;
this.mcgetbackground_close();
return;
}
function SetEmbedCode(arg1:Number, arg2:String=null, arg3:Boolean=false):*
{
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = null;
var loc7:*;
loc7 = null;
if (arg3 == true)
{
loc5 = "http://xat.com/web_gear/chat/embed.php?id=" + arg1 + "&GroupName=" + arg2;
}
else
{
loc5 = "http://xat.com/web_gear/chat.php?id=" + this.eip_id + "&pw=" + this.eip_pw + "&f=1";
}
var loc1:*;
loc1 = "
Get " + arg2 + " chat group | Goto " + arg2 + " website
";
}
else
{
loc1 = loc1 + "?cb\">Get your own Chat Box! Go Large!
";
}
var loc2:*;
loc2 = false;
if (mcWF == null)
{
mcWF = new flash.display.MovieClip();
this.Dia.addChild(mcWF);
mcWF.name = "mcWF";
mcWF.x = xatlib.NX(28);
mcWF.y = xatlib.NY(54);
loc2 = true;
}
var loc3:*;
loc3 = "PostModule1";
var loc4:*;
(loc4 = {})["width"] = xatlib.NX(584);
loc4["height"] = xatlib.NY(362);
loc4["partner"] = "53151";
loc4["contentIsLayout"] = null;
loc4["UIConfig"] = "";
loc4["defaultContent"] = loc1;
if (loc2)
{
ldr = new flash.display.Loader();
loc6 = "http://cdn.gigya.com/Wildfire/swf/WildfireInAS3.swf?ModuleID=" + loc3 + "&xat=" + mcWF.name;
loc7 = new flash.net.URLRequest(loc6);
mcWF[loc3] = loc4;
ldr.load(loc7);
mcWF.addChild(ldr);
}
else
{
this.Dia.addChild(mcWF);
mcWF[loc3] = loc4;
var loc8:*;
(loc8 = ldr.content)["INIT"]();
}
return;
}
{
mcWF = null;
ldr = null;
}
const ud:*;
var eip_back:*;
var eip_pw:*;
var eip_id:*;
var eip_oldback:*;
var eip_i:Array;
var eip_w:Array;
var eip_h:Array;
var EIPrunning:*;
var eip_xml:*;
var xurltextbox:*;
var eip_busy:*;
var mcbackbackgroundb:*;
var backgroup:*;
var ImagePaneVars:*;
var mcbackbackground:*;
var urltextbox_text:*;
var Dia:*;
var gnode:*;
var bpw:*;
var bph:*;
var bpx:*;
var bpy:*;
var bscrollmc:*;
var NewLobbySet:*;
var group:*;
var mceditbackground:*;
var mcbackbackgroundmask:*;
var ImagePaneData:*=null;
var sMode:*;
var mcgetbackground:*;
var mcgetchat:*;
var mcgetagroup:*;
var mcmakeagroup:*;
var mcgetgroup:*;
static var mcWF:flash.display.MovieClip=null;
static var ldr:flash.display.Loader=null;
}
}
// class DialogHelp
package
{
import com.adobe.serialization.json.*;
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class DialogHelp extends flash.display.Sprite
{
public function DialogHelp(arg1:*=0)
{
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = null;
var loc8:*;
loc8 = null;
super();
this.HelpText = undefined;
if (arg1 != 0)
{
if (arg1 == 1)
{
(loc7 = new flash.net.URLRequest()).url = xconst.usedomain + "/terms.php?z4";
loc7.method = flash.net.URLRequestMethod.GET;
(loc8 = new flash.net.URLLoader()).load(loc7);
loc8.addEventListener(flash.events.Event.COMPLETE, this.Handler);
}
}
else
{
loc6 = xatlib.GetLangDom() + (todo.w_lang == undefined || todo.w_lang == 0 ? "help" : String(todo.w_lang) + ".h") + ".xml?" + todo.w_langv;
xatlib.LoadVariables(loc6, this.onLoaded);
}
this.mchelpbackground = new xDialog(this, xatlib.NX(20), xatlib.NY(20), xatlib.NX(600), xatlib.NY(440), " " + xconst.ST(14), undefined, 0);
var loc1:*;
loc1 = this.mchelpbackground.Dia;
var loc2:*;
loc2 = 36;
var loc3:*;
loc3 = 137;
var loc4:*;
loc4 = new xBut(this.mchelpbackground, xatlib.NX(loc2), xatlib.NY(60), xatlib.NX(135), xatlib.NY(26), "FAQ", this.FAQPress, xatlib.c_bl + xatlib.c_br);
loc2 = loc2 + loc3;
var loc5:*;
loc5 = new xBut(this.mchelpbackground, xatlib.NX(loc2), xatlib.NY(60), xatlib.NX(135), xatlib.NY(26), "Terms", this.TermsPress, xatlib.c_bl + xatlib.c_br);
loc2 = loc2 + loc3;
loc1.mcreturn2 = new xBut(this.mchelpbackground, xatlib.NX(240), xatlib.NY(420), xatlib.NX(160), xatlib.NY(30), xconst.ST(45), this.Delete);
this.bpw = xatlib.NX(580);
this.bph = xatlib.NY(390 - 30) - 40;
this.bpx = xatlib.NX(30);
this.bpy = xatlib.NY(20 + 25) + 40;
this.mchelpbackb = xatlib.AddBackground(this.mchelpbackground, this.bpx, this.bpy, this.bpw, this.bph);
this.mchelpback = new flash.display.MovieClip();
this.mchelpbackb.addChild(this.mchelpback);
this.mchelpback.Width = this.bpw;
this.mchelpbackmask = xatlib.AddBackground(this.mchelpbackground, this.bpx + 1, this.bpy + 1, this.bpw - 2 - xatlib.NX(16), this.bph - 2, xatlib.c_Mask);
this.mchelpback.mask = this.mchelpbackmask;
this.bhelpscrollmc = new xScroll(this.mchelpbackground, this.bpx + this.bpw - xatlib.NX(16), this.bpy, xatlib.NX(16), this.bph, xatlib.NX(16), xatlib.NX(32), 30, 10 * 100, 0 * 100, this.onHelpScrollChange);
return;
}
function Delete(arg1:flash.events.Event):*
{
this.mchelpbackground.Delete();
main.closeDialog();
return;
}
function onLoaded(arg1:flash.events.Event):*
{
var loc5:*;
loc5 = undefined;
var loc1:*;
loc1 = flash.net.URLLoader(arg1.target);
var loc2:*;
loc2 = new flash.net.URLVariables(loc1.data.substr(1));
var loc3:*;
loc3 = loc2.HelpText;
this.helpinc = 0;
this.AddHelpLine("http://xat.com/wiki for detailed help.");
this.AddHelpLine("");
loc3 = loc3.substr(1);
var loc4:*;
loc4 = 0;
while (loc4 < 500)
{
if ((loc5 = loc3.indexOf(";=")) == -1)
{
break;
}
this.AddHelpLine(loc3.substr(0, loc5));
loc3 = loc3.substr(loc5 + 2);
loc4 = (loc4 + 1);
}
this.AddHelpLine("");
this.AddHelpLine(chat.cVersion + (chat.debug ? " debug" : ""));
this.onHelpScrollChange();
return;
}
function Handler(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = undefined;
this.helpinc = 0;
var loc2:*;
loc2 = flash.net.URLLoader(arg1.target);
var loc3:*;
var loc4:*;
if ((loc4 = (loc3 = loc2.data).split("<")).length > 500)
{
loc4.length = 500;
}
var loc5:*;
loc5 = 0;
while (loc5 < loc4.length)
{
loc1 = loc4[loc5].charAt(0);
if (loc1 != "/")
{
if (loc1 != "p")
{
if (loc1 == "b")
{
this.AddHelpLine(loc4[loc5].substr(4));
}
}
else
{
loc1 = loc4[loc5].split(">");
if (loc1[1])
{
this.AddHelpLine(loc1[1]);
}
}
}
else
{
this.AddHelpLine("");
}
loc5 = (loc5 + 1);
}
this.onHelpScrollChange();
return;
}
function AddHelpLine(arg1:String):*
{
var loc1:*;
loc1 = new flash.display.MovieClip();
this.mchelpback.addChild(loc1);
loc1.x = 5;
this.helpinc = this.helpinc + 4 + xmessage.AddMessageToMc(loc1, 4, arg1, 0, this.mchelpback.Width - 30, this.helpinc);
return;
}
function onHelpScrollChange():*
{
var loc1:*;
loc1 = this.helpinc - this.bph + 4;
if (loc1 < 0)
{
loc1 = 0;
}
this.bhelpscrollmc.Scr_size = loc1;
var loc2:*;
loc2 = this.bhelpscrollmc.Scr_position;
this.mchelpback.y = -loc2;
return;
}
function FAQPress(arg1:flash.events.Event):*
{
main.openDialog(5, 0);
return;
}
function TermsPress(arg1:flash.events.Event):*
{
main.openDialog(5, 1);
return;
}
function tick(arg1:flash.events.Event):*
{
return;
}
public var HelpText:*;
public var mchelpbackb:*;
public var mchelpbackground:*;
public var mchelpback:*;
public var mchelpbackmask:*;
public var bhelpscrollmc:*;
public var helpinc:*=0;
public var bpw:*;
public var bph:*;
public var bpx:*;
public var bpy:*;
}
}
// class DialogKiss
package
{
import flash.display.*;
public class DialogKiss extends flash.display.Sprite
{
public function DialogKiss(arg1:*)
{
super();
if (arg1.Mode == null)
{
arg1.Mode = 0;
}
if (arg1.SubMode == null)
{
arg1.SubMode = 0;
}
if (arg1.Front == null)
{
arg1.Front = "";
}
if (arg1.Message == null)
{
arg1.Message = "";
}
xkiss.CreateBuystuff(arg1.Marry, arg1.Mode, arg1.SubMode, arg1.Front, arg1.Message);
return;
}
function Delete():*
{
main.closeDialog();
return;
}
}
}
// class DialogPowers
package
{
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
public class DialogPowers extends flash.display.Sprite
{
public function DialogPowers(arg1:*)
{
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
var loc11:*;
loc11 = undefined;
var loc12:*;
loc12 = undefined;
var loc13:*;
loc13 = undefined;
super();
if (todo.w_Mask == undefined)
{
todo.w_Mask = todo.NO_POWERS.slice();
}
this.sM = todo.w_Mask.slice();
this.powersinc = 0;
this.powersincc = 0;
this.userid = arg1.muserid;
this.boutin = false;
this.mcpowersbackground = new xDialog(this, xatlib.NX(120), xatlib.NY(30), xatlib.NX(400), xatlib.NY(380), " " + arg1.strid + " Powers", undefined, 0, this.Delete);
var loc1:*;
loc1 = this.mcpowersbackground.Dia;
loc1.mcclose = new xBut(loc1, xatlib.NX(240), xatlib.NY(370), xatlib.NX(160), xatlib.NY(30), xconst.ST(45), this.PowersClose);
loc1.mcgetpowers = new xBut(loc1, xatlib.NX(345), xatlib.NY(320), xatlib.NX(160), xatlib.NY(30), "Get Powers", this.GetPowers);
xatlib.AttachBut(loc1.mcgetpowers, "pwr");
var loc2:*;
loc2 = xatlib.NX(380);
this.bph = xatlib.NY(240) - 40;
var loc3:*;
loc3 = xatlib.NX(130);
var loc4:*;
loc4 = xatlib.NY(30) + 40;
this.mcpowersbackb = xatlib.AddBackground(loc1, loc3, loc4, loc2, this.bph);
this.mcpowersback = new flash.display.MovieClip();
this.mcpowersbackb.addChild(this.mcpowersback);
this.mcpowersback.Width = loc2;
this.mcpowersbackmask = xatlib.AddBackground(loc1, loc3 + 1, loc4 + 1, loc2 - 2 - xatlib.NX(16), this.bph - 2, 0);
this.mcpowersback.mask = this.mcpowersbackmask;
this.bpowersscrollmc = new xScroll(loc1, loc3 + loc2 - xatlib.NX(16), loc4, xatlib.NX(16), this.bph, xatlib.NX(16), xatlib.NX(32), 30, 10 * 100, 0 * 100, this.onPowersScrollChange);
if (todo.w_userno != this.userid)
{
loc6 = todo.Users[xatlib.FindUser(this.userid)].UnmaskedPowers;
loc7 = this.PowDecode(todo.Users[xatlib.FindUser(this.userid)].PowerO);
loc8 = todo.Users[xatlib.FindUser(this.userid)].Powers;
}
else
{
loc5 = true;
loc6 = todo.w_Powers;
loc7 = this.PowDecode(todo.w_PowerO);
loc8 = todo.w_Mask[0] == undefined ? undefined : todo.w_Mask;
}
if (loc6)
{
loc11 = 0;
while (loc11 < loc6.length)
{
loc12 = 0;
while (loc12 < 32)
{
if (loc12 == 0 && loc11 == 0 && loc5 && todo.w_ALLP || !(loc12 == 0 && loc11 == 0) && loc6[loc11] >> loc12 & 1 && loc12 < (xconst.pssa.length - 1))
{
this.AddPower(loc11 * 32 + loc12, !loc8[loc11] >> loc12 & 1, loc5, loc7[(loc11 * 32 + loc12)]);
}
loc12 = (loc12 + 1);
}
loc11 = (loc11 + 1);
}
}
var loc9:*;
loc9 = xatlib.FindUser(this.userid);
if (!(todo.Users[loc9].coins == undefined) && !(todo.Users[loc9].days == undefined))
{
loc1.days = xatlib.AttachMovie(loc1, "star", {"x":xatlib.NX(140), "y":xatlib.NY(280), "scaleX":xatlib.SX(), "scaleY":xatlib.SY()});
xatlib.createTextNoWrap(loc1.days, 30, -10, 130, 50, xconst.ST(204, todo.Users[loc9].days), 2105376, 0, 100, 0, 26, "center", 1);
loc1.coins = xatlib.AttachMovie(loc1, "coins", {"x":xatlib.NX(340), "y":xatlib.NY(280), "scaleX":xatlib.SX(), "scaleY":xatlib.SY()});
xatlib.createTextNoWrap(loc1.coins, 30, -10, 130, 50, todo.Users[xatlib.FindUser(this.userid)].coins + " xats", 2105376, 0, 100, 0, 26, "center", 1);
}
var loc10:*;
loc10 = undefined;
if (todo.w_userno == this.userid)
{
if (network.YC)
{
if ((loc13 = xatlib.xInt(todo.w_d1) - network.YC) < 0)
{
loc13 = 0;
}
if ((loc13 = xatlib.xInt(loc13 / (24 * 3600) + 0.3)) == 0)
{
loc10 = "If you had powers they will return when you have days";
}
}
}
if (todo.Users[loc9].debug != undefined)
{
loc10 = todo.Users[loc9].debug;
}
if (loc10 != undefined)
{
loc1.txt1 = new flash.display.MovieClip();
loc1.addChild(loc1.txt1);
xatlib.createTextNoWrap(loc1.txt1, xatlib.NX(120), xatlib.NY(336), xatlib.NX(400), 50, loc10, 2105376, 0, 100, 0, 26, "center", 1);
}
return;
}
function Delete():*
{
main.hint.HintOff();
if (!this.mcpowersbackground)
{
return;
}
this.mcpowersbackground.Delete();
this.mcpowersbackb.removeChild(this.mcpowersback);
this.mcpowersback = null;
this.mcpowersbackground = null;
main.closeDialog();
return;
}
function AddPower(arg1:*, arg2:*, arg3:*, arg4:*):*
{
var loc1:*;
loc1 = undefined;
if (arg3)
{
loc1 = xatlib.AttachMovie(this.mcpowersback, "checkbox");
this.mcpowersback.addChild(loc1);
loc1.x = 10;
loc1.y = this.powersinc + 8;
loc1.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.OnPowerCheck);
loc1.Bit = arg1;
loc1.xitem.tick.visible = arg2;
}
var loc2:*;
loc2 = new flash.display.MovieClip();
this.mcpowersback.addChild(loc2);
loc2.x = 5;
xmessage.SmB = true;
var loc3:*;
loc3 = "";
if (!(arg1 == 0) && !(arg4 == undefined) && !(arg4 == 0))
{
loc3 = " [" + arg4 + "]";
}
var loc4:*;
loc4 = 8 + xmessage.AddMessageToMc(loc2, 1, "(" + xconst.pssa[(arg1 + 1)] + "#) " + xconst.pssa[(arg1 + 1)] + loc3, 30, this.mcpowersback.Width - 30, this.powersinc, this.userid);
xmessage.SmB = undefined;
if (this.powersincc % 2 == 1)
{
loc2.x = loc2.x + xatlib.NX(360) / 2;
if (loc1)
{
loc1.x = loc1.x + xatlib.NX(360) / 2;
}
this.powersinc = this.powersinc + loc4;
}
var loc5:*;
var loc6:*;
loc6 = ((loc5 = this).powersincc + 1);
loc5.powersincc = loc6;
return;
}
function onPowersScrollChange():*
{
var loc1:*;
loc1 = this.powersinc - this.bph + 4 + (this.powersincc % 2 != 1 ? 0 : 30);
if (loc1 < 0)
{
loc1 = 0;
}
this.bpowersscrollmc.Scr_size = loc1;
var loc2:*;
loc2 = this.bpowersscrollmc.Scr_position;
this.mcpowersback.y = -loc2;
return;
}
function OnPowerCheck(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = arg1.currentTarget;
this.boutin = true;
loc1.xitem.tick.visible = !loc1.xitem.tick.visible;
if (todo.w_Mask[0] == undefined)
{
todo.w_Mask = todo.NO_POWERS.slice();
}
var loc2:*;
loc2 = xatlib.xInt(loc1.Bit / 32);
var loc3:*;
loc3 = 1 << loc1.Bit % 32;
if (loc1.xitem.tick.visible)
{
todo.w_Mask[loc2] = todo.w_Mask[loc2] & !loc3;
}
else
{
todo.w_Mask[loc2] = todo.w_Mask[loc2] | loc3;
}
xatlib.MainSolWrite("w_Mask", todo.w_Mask);
return;
}
function PowersClose(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = undefined;
if (this.boutin)
{
loc1 = xatlib.FindUser(todo.w_userno);
if (loc1 != -1)
{
todo.Users[loc1].n = todo.w_name;
todo.Users[loc1].a = todo.w_avatar;
todo.Users[loc1].h = todo.w_homepage;
todo.Users[loc1].s = todo.Macros == undefined ? undefined : todo.Macros["status"];
}
network.UpdateFriendList(todo.w_userno, true);
todo.w_friendlist2[todo.w_userno] = undefined;
xatlib.ReLogin();
}
this.Delete();
if (this.sM[0] != todo.w_Mask[0])
{
todo.w_friendlist2[todo.w_userno] = undefined;
}
return;
}
function GetPowers(arg1:flash.events.MouseEvent):*
{
this.PowersClose();
var loc1:*;
loc1 = xconst.usedomain + "/getpowers";
xatlib.UrlPopup(xconst.ST(8), loc1);
return;
}
function PowDecode(arg1:*):*
{
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc1:*;
loc1 = new Array();
if (arg1 == undefined || arg1.length == 0)
{
return loc1;
}
var loc2:*;
loc2 = arg1.split("|");
var loc3:*;
loc3 = 0;
while (loc3 < loc2.length)
{
loc4 = loc2[loc3].split("=");
if ((loc5 = xatlib.xInt(loc4[1])) == 0)
{
loc5 = 1;
}
loc1[loc4[0]] = loc5 + 1;
loc3 = (loc3 + 1);
}
return loc1;
}
var mcpowersbackground:*;
var mcpowersbackb:*;
var mcpowersback:*;
var mcpowersbackmask:*;
var bpowersscrollmc:*;
var powersinc:*;
var powersincc:*;
var userid:*;
var boutin:*;
var sM:*;
var bph:*;
}
}
// class DialogProfile
package
{
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
public class DialogProfile extends flash.display.Sprite
{
public function DialogProfile(arg1:*=0)
{
var AddCheck:Function;
var Married:*;
var XX:*;
var YY:*;
var e:*=0;
var i:*;
var s:*;
var smc:*;
var strUserNo:*;
var vt:*;
var loc1:*;
YY = undefined;
smc = undefined;
i = undefined;
s = undefined;
vt = undefined;
e = arg1;
super();
AddCheck = function (arg1:*, arg2:*, arg3:*):*
{
xatlib.createTextNoWrap(Dia.txt1, arg1 + xatlib.NX(22), xatlib.NY(YY), xatlib.NX(280), xatlib.NY(32), arg2, 2105376, 0, 100, 0, 20, "left", 1);
var loc1:*;
(loc1 = xatlib.AttachMovie(Dia.txt1, "checkbox")).x = arg1;
loc1.y = xatlib.NY(YY + 8);
loc1.xitem.tick.visible = !((todo.autologin & arg3) == 0);
loc1.Bit = arg3;
loc1.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, OnCheck);
return;
}
this.changed = false;
Married = todo.w_registered && todo.w_d2;
if (todo.w_userrev == undefined)
{
todo.w_userrev = 0;
if (todo.lb == "t")
{
todo.lb = "n";
todo.DoUpdate = true;
network.NetworkClose();
}
if (todo.lb == "n")
{
main.logoutbutonPress();
}
return;
}
YY = 407 + 5;
if (Married)
{
YY = YY + 38;
}
strUserNo = xatlib.xInt(todo.w_userno).toString();
if (strUserNo.substr(-6, 6) == "000000")
{
strUserNo = strUserNo.substr(0, strUserNo.length - 6) + "M";
}
this.mcprofilebackground = new xDialog(this, xatlib.NX(20), xatlib.NY((480 - YY) / 2), xatlib.NX(600), xatlib.NY(YY), todo.w_registered != undefined ? " " + todo.w_registered + " (" + strUserNo + ")" : " " + todo.w_userno, undefined, 0, this.Delete);
YY = (480 - YY) / 2;
YY = YY + 4;
this.Dia = this.mcprofilebackground.Dia;
if (!todo.bMobile)
{
this.Dia.mcuser = new Array();
i = 0;
while (i < 4)
{
this.Dia.mcuser[i] = new xBut(this.Dia, xatlib.NX(510 - i * 85), xatlib.NY(YY), xatlib.NX(80), xatlib.NY(22), todo.w_namelist[i] == undefined ? xconst.ST(59) : todo.w_namelist[i], this.onUser);
this.Dia.mcuser[i].But.Num = i;
if (todo.w_namelist[i] != undefined)
{
};
i = (i + 1);
}
}
this.Dia.txt1 = this.Dia;
YY = YY + 385 - 200 - 24 - 37 + 6 - (130 - 37);
xatlib.createTextNoWrap(this.Dia.txt1, xatlib.NX(12 + 24), xatlib.NY(YY), xatlib.NX(100), xatlib.NY(32), xconst.ST(60), 2105376, 0, 100, 0, 24, "left", 1);
this.tf3b = xatlib.AddBackground(this.Dia, xatlib.NX(120 + 24), xatlib.NY(YY), xatlib.NX(460), xatlib.NY(32));
this.tf3 = xatlib.AddTextField(this.Dia, xatlib.NX(120 + 24), xatlib.NY(YY), xatlib.NX(460), xatlib.NY(32), "", main.fmt);
this.tf3.type = flash.text.TextFieldType.INPUT;
YY = YY + 429 - 385;
this.Dia.txt1.YY = YY + 18 + 24;
xatlib.createTextNoWrap(this.Dia.txt1, xatlib.NX(12 + 24), xatlib.NY(YY), xatlib.NX(100), xatlib.NY(32), xconst.ST(61), 2105376, 0, 100, 0, 24, "left", 1);
this.tf4b = xatlib.AddBackground(this.Dia, xatlib.NX(120 + 24), xatlib.NY(YY), xatlib.NX(460), xatlib.NY(32));
this.tf4 = xatlib.AddTextField(this.Dia, xatlib.NX(120 + 24), xatlib.NY(YY), xatlib.NX(460), xatlib.NY(32), "", main.fmt);
this.tf4.type = flash.text.TextFieldType.INPUT;
YY = YY + 42 + xatlib.NY(30);
if (!todo.config["noeffects"])
{
this.Dia.mcmore = new xBut(this.Dia, xatlib.NX(445), xatlib.NY(YY + 10), xatlib.NX(160), xatlib.NY(30), xconst.ST(64), this.More_onRelease);
this.Dia.mcmore.SetHint(xconst.ST(63));
this.Dia.mceffect = new xBut(this.Dia, xatlib.NX(240), xatlib.NY(YY + 10), xatlib.NX(160), xatlib.NY(30), xconst.ST(190), this.Effect_onRelease);
this.Dia.mceffect.SetHint(xconst.ST(191));
}
YY = YY + xatlib.NY(40);
XX = 40;
if (todo.w_sn)
{
smc = new library("fb");
var loc2:*;
smc.scaleY = loc2 = xatlib.SY(1);
smc.scaleX = loc2;
smc.x = xatlib.NX(XX);
smc.y = xatlib.NY(YY) + 15;
this.Dia.addChild(smc);
XX = XX + 40;
}
smc = new library("ho");
smc.scaleY = loc2 = xatlib.SY(1);
smc.scaleX = loc2;
smc.x = xatlib.NX(XX);
smc.y = xatlib.NY(YY) + 15;
this.Dia.addChild(smc);
XX = XX + 40;
this.tf5b = xatlib.AddBackground(this.Dia, xatlib.NX(XX), xatlib.NY(YY) + 15, xatlib.NX(605 - XX), xatlib.NY(32));
this.tf5 = xatlib.AddTextField(this.Dia, xatlib.NX(XX), xatlib.NY(YY) + 15, xatlib.NX(605 - XX), xatlib.NY(32), "", main.fmt);
this.tf5.type = flash.text.TextFieldType.INPUT;
todo.w_name = loc2 = xatlib.CleanTextNoXat(todo.w_name);
this.tf3.text = loc2;
this.tf4.text = todo.w_avatar;
this.tf5.text = todo.w_homepage;
this.tf3.addEventListener(flash.events.Event.CHANGE, xatlib.RemoveCR);
this.tf4.addEventListener(flash.events.Event.CHANGE, xatlib.RemoveCR);
this.tf5.addEventListener(flash.events.Event.CHANGE, xatlib.RemoveCR);
YY = YY + 58;
if (Married)
{
s = xconst.ST(152);
if (todo.w_d0 & 1)
{
s = xconst.ST(153);
}
s = s + ": ";
if (todo.w_bride)
{
s = s + todo.w_bride + " (" + todo.w_d2 + ")";
}
else
{
s = s + todo.w_d2;
}
xatlib.createTextNoWrap(this.Dia.txt1, xatlib.NX(12 + 24), xatlib.NY(YY), xatlib.NX(460), xatlib.NY(32), s, 2105376, 0, 100, 0, 18, "left", 1);
this.Dia.dv = new xBut(this.Dia, xatlib.NX(445), xatlib.NY(YY), xatlib.NX(160), xatlib.NY(30), xconst.ST(150), this.onDivorce, 0);
this.Dia.dv.But.UserNo = 1;
this.Dia.dv.But.Mode = 2;
YY = YY + 38;
}
if (!todo.bMobile)
{
this.Dia.mcpowers = new xBut(this.Dia, xatlib.NX(240), xatlib.NY(YY), xatlib.NX(160), xatlib.NY(30), xconst.ST(189), this.onPowers);
xatlib.AttachBut(this.Dia.mcpowers, "pwr");
this.Dia.mcgifts = new xBut(this.Dia, xatlib.NX(445), xatlib.NY(YY), xatlib.NX(160), xatlib.NY(30), "Gifts", this.onGifts);
xatlib.AttachBut(this.Dia.mcgifts, "giftb");
YY = YY + 30;
}
AddCheck(xatlib.NX(40), xconst.ST(65), 1);
AddCheck(xatlib.NX(320), xconst.ST(220), 2);
YY = YY + 30;
YY = YY + 5;
if (!todo.bMobile)
{
if (todo.w_userno < 2000000000 - 100000 * 2)
{
this.Dia.mcregister = new xBut(this.Dia, xatlib.NX(35), xatlib.NY(YY), xatlib.NX(160), xatlib.NY(30), xconst.ST(154), xatlib.Register_onRelease);
this.Dia.mcregister.SetRoll(xconst.ST(155));
}
this.Dia.mclang = new xBut(this.Dia, xatlib.NX(445), xatlib.NY(YY), xatlib.NX(160), xatlib.NY(30), "Language...", this.OK_onLang);
if (global.xm == undefined)
{
this.Dia.CoinB = new xBut(this.Dia, xatlib.NX(240), xatlib.NY(YY), xatlib.NX(160), xatlib.NY(30), " " + xconst.ST(206), xkiss.BuyRelease);
xatlib.AttachBut(this.Dia.CoinB, "coins");
}
else
{
this.Dia.UseX = new xBut(this.Dia, xatlib.NX(240), xatlib.NY(YY), xatlib.NX(160), xatlib.NY(30), global.xm, this.UseX_onRelease);
this.Dia.UseX.But.Obj = this.Dia.UseX;
}
}
YY = YY + 50;
this.Dia.coins = xatlib.AttachMovie(this.Dia, "coins", {"x":xatlib.NX(440), "y":xatlib.NY(YY + 4), "scaleX":xatlib.SX(), "scaleY":xatlib.SY()});
xatlib.createTextNoWrap(this.Dia.coins, 30, -10, 130, 50, (isNaN(todo.w_coins) ? 0 : todo.w_coins) + " xats", 2105376, 0, 100, 0, 26, "center", 1);
this.Dia.coins.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, xkiss.CreateBuystuff);
if (network.YC)
{
vt = xatlib.xInt(todo.w_d1) - network.YC;
if (vt < 0)
{
vt = 0;
}
vt = xatlib.xInt(vt / (24 * 3600) + 0.3);
xatlib.createTextNoWrap(this.Dia.txt1, xatlib.NX(12 + 24), xatlib.NY(YY), xatlib.NX(160), xatlib.NY(33), xconst.ST(203) + "\n" + xconst.ST(204, vt), 2105376, 0, 100, 0, 24, "left", 1);
}
this.Dia.mcok = new xBut(this.Dia, xatlib.NX(240), xatlib.NY(YY), xatlib.NX(160), xatlib.NY(30), xconst.ST(45), this.OK_onRelease);
this.ChangeProfileAvs();
return;
}
public function Delete():*
{
main.hint.HintOff();
if (this.mcprofilebackground)
{
this.mcprofilebackground.Delete();
}
main.closeDialog();
return;
}
function OnCheck(arg1:flash.events.MouseEvent):*
{
arg1.currentTarget.xitem.tick.visible = !arg1.currentTarget.xitem.tick.visible;
if (arg1.currentTarget.xitem.tick.visible)
{
todo.autologin = todo.autologin | arg1.currentTarget.Bit;
}
else
{
todo.autologin = todo.autologin & !arg1.currentTarget.Bit;
}
xatlib.MainSolWrite("w_autologin", todo.autologin);
return;
}
function onUser(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = arg1.currentTarget;
var loc2:*;
loc2 = todo.w_userrevlist[loc1.Num] == undefined ? 0 : todo.w_userrevlist[loc1.Num];
var loc3:*;
loc3 = todo.w_namelist[loc1.Num] == undefined ? " " : todo.w_namelist[loc1.Num];
var loc4:*;
loc4 = todo.w_avatarlist[loc1.Num] == undefined ? "" : todo.w_avatarlist[loc1.Num];
var loc5:*;
loc5 = todo.w_homepagelist[loc1.Num] == undefined ? "" : todo.w_homepagelist[loc1.Num];
todo.w_userrevlist[loc1.Num] = todo.w_userrev;
todo.w_namelist[loc1.Num] = xatlib.CleanTextNoXat(todo.w_name);
todo.w_avatarlist[loc1.Num] = todo.w_avatar;
todo.w_homepagelist[loc1.Num] = todo.w_homepage;
todo.w_name = xatlib.CleanTextNoXat(loc3);
todo.w_avatar = loc4;
todo.w_homepage = loc5;
xatlib.MainSolWrite("w_userrevlist", todo.w_userrevlist);
xatlib.MainSolWrite("w_namelist", todo.w_namelist);
xatlib.MainSolWrite("w_avatarlist", todo.w_avatarlist);
xatlib.MainSolWrite("w_homepagelist", todo.w_homepagelist);
this.Delete();
xatlib.ReLogin();
return;
}
function UseX_onRelease(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = arg1.currentTarget;
if (loc1.Done)
{
this.Delete();
return;
}
if (global.xn != undefined)
{
this.tf3.text = xatlib.CleanText(global.xn);
}
if (global.xh != undefined)
{
this.tf5.text = xatlib.CleanText(global.xh);
}
if (global.xp != undefined)
{
this.tf4.text = xatlib.CleanText(global.xp);
this.ChangeProfileAvs();
}
loc1.Obj.SetText(xconst.ST(66));
loc1.Done = true;
return;
}
function DeleteProfileAvs():*
{
var loc1:*;
loc1 = this.mcprofilebackground.Dia;
if (loc1.avc == undefined)
{
return;
}
loc1.removeChild(loc1.avc);
var loc2:*;
loc2 = 0;
while (loc2 < loc1.acnt)
{
loc1.removeChild(loc1.xmc[loc2]);
loc2 = (loc2 + 1);
}
return;
}
function ChangeProfileAvs():*
{
var Press:*;
var YY:*;
var e:*;
var mc:flash.display.MovieClip;
var mc2:flash.display.MovieClip;
var r:*;
var loc1:*;
r = undefined;
mc2 = null;
this.Dia = this.mcprofilebackground.Dia;
YY = xatlib.NY(this.Dia.txt1.YY);
this.DeleteProfileAvs();
Press = function ():*
{
chat.mainDlg.GotoProfile(todo.w_userno);
return;
}
this.Dia.avc = new xAvatar(this.Dia, this.tf4.text, undefined, Press, todo.w_VIP, todo.w_d0, todo.Users[xatlib.FindUser(todo.w_userno)].Powers);
mc = this.Dia.avc.Av;
mc.x = xatlib.NX(144 - 77);
mc.y = YY;
this.Dia.acnt = int(xatlib.NX(470) / 33);
this.Dia.xmc = new Array();
e = 0;
while (e < this.Dia.acnt)
{
r = xatlib.RandAv();
this.Dia.xmc[e] = new xAvatar(this.Dia, r);
mc2 = this.Dia.xmc[e].Av;
mc2.x = xatlib.NX(144) + 33 * e;
mc2.y = YY;
mc2.txt = r;
mc2.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.AvPress);
e = (e + 1);
}
return;
}
function AvPress(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = arg1.currentTarget;
var loc2:*;
loc2 = this.mcprofilebackground.Dia;
this.tf4.text = loc1.txt;
this.ChangeProfileAvs();
return;
}
function OK_onRelease(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = undefined;
if (todo.messageecho == "p" && !(todo.w_avatar == xatlib.CleanAv(this.tf4.text)))
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, 0, "p");
}
if (!(todo.w_name == this.tf3.text) || !(todo.w_avatar == xatlib.CleanAv(this.tf4.text)) || !(todo.w_homepage == this.tf5.text) || this.changed)
{
todo.w_name = xatlib.NameNoXat(xatlib.CleanText(this.tf3.text), 1);
todo.w_avatar = xatlib.CleanAv(this.tf4.text);
this.tf4.text = xatlib.UrlAv(todo.w_avatar);
todo.w_homepage = this.tf5.text;
var loc2:*;
var loc3:*;
loc3 = ((loc2 = todo).w_userrev + 1);
loc2.w_userrev = loc3;
xatlib.PurgeMessageFromUser(todo.w_userno);
loc1 = xatlib.FindUser(todo.w_userno);
if (loc1 != -1)
{
todo.Users[loc1].n = todo.w_name;
todo.Users[loc1].a = todo.w_avatar;
todo.Users[loc1].h = todo.w_homepage;
todo.Users[loc1].s = todo.Macros == undefined ? undefined : todo.Macros["status"];
}
network.UpdateFriendList(todo.w_userno, true);
todo.w_friendlist2[todo.w_userno] = undefined;
xatlib.ReLogin();
}
xatlib.MainSolWrite("w_name", todo.w_name);
xatlib.MainSolWrite("w_avatar", todo.w_avatar);
xatlib.MainSolWrite("w_homepage", todo.w_homepage);
xatlib.MainSolWrite("w_userrev", todo.w_userrev);
todo.DoUpdate = true;
this.Delete();
return;
}
function More_onRelease(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = null;
loc1 = xconst.chatdomain + "avatar.php?id=" + todo.w_userno;
xatlib.UrlPopup(xconst.ST(63), loc1);
return;
}
function Effect_onRelease(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = undefined;
if (global.xc & 2048)
{
main.mcLoad.OpenByN(20032);
}
else
{
loc1 = xatlib.xatlinks(xatlib.PageUrl(20032));
xatlib.UrlPopup(xconst.ST(8), loc1, xconst.ST(17));
}
return;
}
function OK_onLang(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = xconst.chatdomain + "changelanguage.php?id=" + todo.w_useroom;
xatlib.UrlPopup(xconst.ST(8), loc1);
return;
}
function onPowers(arg1:flash.events.MouseEvent):*
{
this.changed = true;
var loc1:*;
loc1 = new Object();
loc1.muserid = todo.w_userno;
loc1.strid = todo.w_registered != undefined ? " " + todo.w_registered + " (" + todo.w_userno + ")" : " " + todo.w_userno;
main.openDialog(7, loc1);
return;
}
function onGifts(arg1:flash.events.MouseEvent):*
{
xmessage.OpenGifts(todo.w_userno);
return;
}
function Login_onRelease():*
{
this.Delete();
return;
}
function Register_Link(arg1:*):*
{
var loc1:*;
loc1 = undefined;
loc1 = xconst.usedomain + "/web_gear/chat/register.php";
if (arg1 != undefined)
{
loc1 = loc1 + "?UserId=" + todo.w_userno + "&k2=" + todo.w_k2 + "&mode=" + arg1;
}
return loc1;
}
function onDivorce(arg1:*):*
{
xkiss.CreateBuystuff(todo.w_d2, 2);
return;
}
public var mcprofilebackground:*;
var tf3:flash.text.TextField;
var tf3b:*;
var tf4:flash.text.TextField;
var tf4b:*;
var tf5:flash.text.TextField;
var tf5b:*;
var Dia:*;
var changed:*=false;
}
}
// class DialogReason
package
{
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
public class DialogReason extends flash.display.Sprite
{
public function DialogReason(arg1:*)
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc10:*;
loc10 = undefined;
var loc11:*;
loc11 = undefined;
var loc12:*;
loc12 = NaN;
super();
this.UserNo = arg1.UserNo;
this.bBan = arg1.bBan;
this.bDunce = arg1.bDunce;
var loc1:*;
loc1 = new Array();
var loc2:*;
loc2 = xatlib.FindUser(todo.w_userno);
if (this.bBan || this.bDunce)
{
if (this.bBan)
{
if (todo.HasPower(loc2, 41))
{
loc1.push(xconst.ST(197), this.ReasonGag);
}
if (todo.HasPower(loc2, 46) && todo.w_owner)
{
loc1.push(xconst.ST(198), this.ReasonMute);
}
}
if (this.bDunce)
{
if (todo.HasPower(loc2, 158))
{
loc10 = xatlib.FindUser(this.UserNo);
if (todo.Users[loc10].flag0 & 32768)
{
loc1.push(xconst.ST(246), this.ReasonDunce);
}
else
{
loc1.push(xconst.ST(245), this.ReasonDunce);
}
}
}
if (this.bBan)
{
var loc13:*;
loc13 = 0;
var loc14:*;
loc14 = xconst.Puzzle;
for (loc3 in loc14)
{
if (!todo.HasPower(loc2, loc3))
{
continue;
}
loc1.push(xconst.Puzzle[loc3] + "Ban;=" + loc3, this.ReasonOK);
}
}
}
else
{
if (todo.HasPower(loc2, 25))
{
loc1.push("Boot", this.ReasonBoot);
}
if (todo.HasPower(loc2, 121))
{
loc1.push("Zap", this.ReasonZap);
}
}
if (this.bBan)
{
loc1.push(xconst.ST(81), this.ReasonKickBan);
}
else
{
if (!this.bDunce)
{
loc1.push(xconst.ST(79), this.ReasonKickBan);
}
}
loc1.push(xconst.ST(66), this.CloseReason);
var loc6:*;
if ((loc6 = main.upx - 270 - 15 - 50) < 5)
{
loc6 = 5;
}
var loc7:*;
loc7 = xatlib.NY(30);
this.mcreasonbackground = new xDialog(this, loc6, loc7, 270 + 60, 160 + 40 * (loc1.length + 2 >> 2), " " + (this.bBan || this.bDunce ? xconst.ST(81) : xconst.ST(79)), undefined, 0);
var loc8:*;
(loc8 = this.mcreasonbackground.Dia).txt1 = xatlib.createTextNoWrap(loc8, loc6 + 10, loc7 + 30, 310, 22, this.bBan || this.bDunce ? xconst.ST(113) : xconst.ST(114), 0, 0, 100, 0, 14, "left", 1);
var loc9:*;
loc9 = xatlib.AddBackground(loc8, loc6 + 10, loc7 + 55, 310, 32);
this.tf = xatlib.AddTextField(loc9, 0, this.TO, 310, 32, "", main.fmt);
this.tf.type = flash.text.TextFieldType.INPUT;
this.tf.addEventListener(flash.events.Event.CHANGE, xatlib.RemoveCR);
if (this.bBan || this.bDunce)
{
loc8.txt2 = xatlib.createTextNoWrap(loc8, loc6 + 10, loc7 + 95, 310, 22, xconst.ST(115), 0, 0, 100, 0, 14, "left", 1);
loc11 = xatlib.AddBackground(loc8, loc6 + 10, loc7 + 120, 155, 32);
this.tf2 = xatlib.AddTextField(loc11, 0, this.TO, 310, 32, "1", main.fmt);
this.tf2.type = flash.text.TextFieldType.INPUT;
loc8.txt3 = xatlib.createTextNoWrap(loc8, loc6 + 165, loc7 + 120, 155, 32, xconst.ST(116) + " " + (todo.w_owner ? xconst.ST(117) : xconst.ST(118)), 0, 0, 100, 0, 14, "left", 1);
}
else
{
loc12 = xatlib.FindUser(todo.w_userno);
if (todo.HasPower(loc12, 25))
{
loc8.txt2 = xatlib.createTextNoWrap(loc8, loc6 + 10, loc7 + 95, 310, 22, "Group To Boot to:", 0, 0, 100, 0, 14, "left", 1);
loc11 = xatlib.AddBackground(loc8, loc6 + 10, loc7 + 120, 310, 32);
this.tf2 = xatlib.AddTextField(loc11, 0, this.TO, 310, 32, "", main.fmt);
this.tf2.type = flash.text.TextFieldType.INPUT;
}
}
loc3 = 0;
while (loc3 < loc1.length)
{
loc5 = loc1[loc3].split(";=");
loc4 = "b" + loc3;
loc8[loc4] = new xBut(loc8, loc6 + (loc3 & 2 ? 170 : 10), loc7 + 160, 150, 30, loc5[0], loc1[(loc3 + 1)]);
loc8[loc4].But.UserNo = this.UserNo;
if (loc5[1])
{
loc8[loc4].But.Power = xatlib.xInt(loc5[1]);
}
if (loc3 & 2)
{
loc7 = loc7 + 40;
}
loc3 = loc3 + 2;
}
return;
}
function Delete():*
{
main.closeDialog();
return;
}
function ReasonBoot(arg1:flash.events.MouseEvent):*
{
if (this.tf.text.indexOf("#") != -1)
{
this.tf.text = this.tf.text.substr(0, this.tf.text.indexOf("#"));
}
if (!this.tf2 || this.tf2.text == "")
{
return;
}
this.ReasonOK(arg1);
return;
}
function ReasonZap(arg1:flash.events.MouseEvent):*
{
if (this.tf.text.indexOf("#") == -1)
{
this.tf.text = this.tf.text + "#raspberry";
}
this.ReasonOK(arg1);
return;
}
function ReasonKickBan(arg1:flash.events.MouseEvent):*
{
if (!this.bBan && !this.bDunce)
{
if (this.tf2)
{
this.tf2.text = "";
}
}
this.ReasonOK(arg1);
return;
}
function ReasonOK(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = undefined;
if (this.bBan || this.bDunce)
{
this.DoBan("g", arg1.currentTarget.Power);
}
else
{
if (this.tf.text.length > 0)
{
if (this.tf2 && this.tf2.text.length > 0)
{
this.tf.text = this.tf.text + "#" + this.tf2.text;
}
else
{
if (this.tf.text.indexOf("#") != -1)
{
loc1 = this.tf.text.split("#");
this.tf.text = loc1[0] + " #" + loc1[1] + "#bump";
}
}
network.NetworkKickUser(this.UserNo, this.tf.text);
}
else
{
todo.helpstr = xconst.ST(124);
todo.HelpUpdate = 0;
}
}
this.CloseReason();
return;
}
function ReasonGag(arg1:flash.events.MouseEvent):*
{
this.DoBan("gg");
this.CloseReason();
return;
}
function ReasonMute(arg1:flash.events.MouseEvent):*
{
this.DoBan("gm");
this.CloseReason();
return;
}
function ReasonDunce(arg1:flash.events.MouseEvent):*
{
this.DoBan("gd");
this.CloseReason();
return;
}
function DoBan(arg1:*, arg2:*):*
{
var loc1:*;
loc1 = 1;
if (!isNaN(this.tf2.text))
{
loc1 = Math.abs(Number(this.tf2.text));
}
if (loc1 > 8760)
{
loc1 = 0;
}
network.NetworkGagUser(arg1, this.UserNo, true, xatlib.xInt(loc1 * 3600), this.tf.text, arg2);
return;
}
function CloseReason(arg1:flash.events.MouseEvent):*
{
this.Delete();
return;
}
const TO:int=5;
public var mcreasonbackground:*;
var tf:*;
var tf2:*;
var UserNo:*;
var bBan:*;
var bDunce:*;
}
}
// class GetStuff
package
{
import flash.display.*;
public dynamic class GetStuff extends flash.display.MovieClip
{
public function GetStuff()
{
super();
return;
}
}
}
// class GetStuff2
package
{
import flash.display.*;
import flash.events.*;
public dynamic class GetStuff2 extends flash.display.MovieClip
{
public function GetStuff2()
{
super();
addFrameScript(0, this.frame1);
return;
}
public function Tick(arg1:*):*
{
var loc1:*;
var loc2:*;
loc2 = ((loc1 = this).tk + 1);
loc1.tk = loc2;
if (this.tk > this.wait)
{
if (this.Z & 1)
{
this.egg.x = this.X + ((this.tk & 1) != 0 ? 1 : -1);
}
else
{
this.egg.y = this.Y + ((this.tk & 1) != 0 ? 1 : -1);
}
if (this.tk > this.wait + 22)
{
this.tk = 0;
loc2 = ((loc1 = this).Z + 1);
loc1.Z = loc2;
}
}
else
{
this.egg.x = this.X;
this.egg.y = this.Y;
}
return;
}
function frame1():*
{
this.wait = 90;
this.tk = 0;
this.Z = 0;
this.X = this.egg.x;
this.Y = this.egg.y;
addEventListener(flash.events.Event.ENTER_FRAME, this.Tick);
return;
}
public var egg:Ball2;
public var wait:*;
public var tk:*;
public var Z:*;
public var X:*;
public var Y:*;
}
}
// class GetX
package
{
import flash.display.*;
public dynamic class GetX extends flash.display.MovieClip
{
public function GetX()
{
super();
return;
}
}
}
// class HelpIcon
package
{
import flash.display.*;
public dynamic class HelpIcon extends flash.display.MovieClip
{
public function HelpIcon()
{
super();
return;
}
public var ques:flash.display.MovieClip;
public var infob:flash.display.MovieClip;
public var xinfo:flash.display.MovieClip;
}
}
// class Home
package
{
import flash.display.*;
public dynamic class Home extends flash.display.MovieClip
{
public function Home()
{
super();
return;
}
}
}
// class Metal
package
{
import flash.display.*;
public dynamic class Metal extends flash.display.MovieClip
{
public function Metal()
{
super();
return;
}
}
}
// class News
package
{
import flash.display.*;
public dynamic class News extends flash.display.MovieClip
{
public function News()
{
super();
return;
}
}
}
// class Radio
package
{
import flash.display.*;
public dynamic class Radio extends flash.display.MovieClip
{
public function Radio()
{
super();
return;
}
public var SoundIsOff:SoundOff;
}
}
// class SoundOff
package
{
import flash.display.*;
public dynamic class SoundOff extends flash.display.MovieClip
{
public function SoundOff()
{
super();
return;
}
}
}
// class Speaker
package
{
import flash.display.*;
public dynamic class Speaker extends flash.display.MovieClip
{
public function Speaker()
{
super();
return;
}
public var SoundIsOff:SoundOff;
}
}
// class beepsnd
package
{
import flash.media.*;
public dynamic class beepsnd extends flash.media.Sound
{
public function beepsnd()
{
super();
return;
}
}
}
// class biggrin
package
{
import flash.display.*;
public dynamic class biggrin extends flash.display.MovieClip
{
public function biggrin()
{
super();
return;
}
}
}
// class bubble
package
{
import flash.display.*;
public dynamic class bubble extends flash.display.MovieClip
{
public function bubble()
{
super();
return;
}
public var back:flash.display.MovieClip;
}
}
// class buttonmetal
package
{
import flash.display.*;
public dynamic class buttonmetal extends flash.display.MovieClip
{
public function buttonmetal()
{
super();
return;
}
}
}
// class cachedSprite
package
{
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class cachedSprite extends flash.display.Sprite
{
public function cachedSprite()
{
super();
return;
}
public static function Tidy():*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = 0;
var loc4:*;
loc4 = dic;
for (loc1 in loc4)
{
loc2 = dic[loc1];
var loc5:*;
var loc6:*;
loc6 = ((loc5 = loc2).Timeout + 1);
loc5.Timeout = loc6;
if (!(loc2.Timeout > TTL))
{
continue;
}
if (loc2.bd)
{
loc2.bd.dispose();
}
delete dic[loc1];
}
return;
}
{
dic = new flash.utils.Dictionary();
}
public static const cs_RollOver:int=1;
private static const TTL:int=1 * 60;
var bd:flash.display.BitmapData;
var Frames:int;
var Pending:Boolean=true;
var Timeout:int=0;
public var Flags:int=0;
public static var dic:flash.utils.Dictionary;
}
}
// class chat
package
{
import com.adobe.serialization.json.*;
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public class chat extends flash.display.Sprite
{
public function chat()
{
super();
addEventListener(flash.events.Event.ADDED_TO_STAGE, this.init);
return;
}
function init(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = undefined;
todo.config["WEB"] = true;
stage.align = flash.display.StageAlign.TOP_LEFT;
stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
todo.StageWidth = stage.stageWidth;
todo.StageHeight = stage.stageHeight;
stage.addEventListener(flash.events.Event.RESIZE, this.onResize);
if (todo.config["WEB"])
{
flash.system.Security.allowDomain("cdn.gigya.com");
flash.system.Security.allowInsecureDomain("cdn.gigya.com");
flash.system.Security.allowDomain("xat.com");
flash.system.Security.allowInsecureDomain("xat.com");
}
if (todo.config["WEB"])
{
if (parent && parent.parent)
{
loc1 = parent.parent.root.loaderInfo.parameters;
}
else
{
loc1 = root.loaderInfo.parameters;
}
if (loc1.id != undefined)
{
todo.w_room = xatlib.xInt(loc1.id);
}
if (loc1.pass != undefined)
{
var loc2:*;
global.pass = loc2 = xatlib.xInt(loc1.pass);
todo.pass = loc2;
}
if (loc1.rf != undefined)
{
global.rf = xatlib.xInt(loc1.rf);
}
if (loc1.gn != undefined)
{
global.gn = loc1.gn;
}
if (loc1.um != undefined)
{
global.um = xatlib.xInt(loc1.um);
}
if (loc1.lg != undefined)
{
global.lg = loc1.lg;
}
if (loc1.rl != undefined)
{
global.rl = loc1.rl;
}
if (!(loc1.pw == undefined) && !(loc1.em == undefined))
{
todo.w_password = xatlib.CleanText(loc1.pw, 1);
}
if (loc1.pw == "##")
{
todo.RefreshLogin = true;
}
if (loc1.em != undefined)
{
todo.w_email = xatlib.CleanText(loc1.em, 0);
}
if (loc1.cn != undefined)
{
global.cn = xatlib.xInt(loc1.cn);
}
global.gb = loc1.gb;
if (loc1.xn != undefined)
{
global.xn = loc1.xn;
}
if (loc1.xp != undefined)
{
global.xp = loc1.xp;
}
if (loc1.xh != undefined)
{
global.xh = loc1.xh;
}
if (loc1.xb != undefined)
{
global.xb = loc1.xb;
}
if (loc1.xl != undefined)
{
global.xl = loc1.xl;
}
if (loc1.xm != undefined)
{
global.xm = loc1.xm;
}
if (loc1.xt != undefined)
{
global.xt = loc1.xt;
}
if (loc1.xo != undefined)
{
global.xo = loc1.xo;
}
if (loc1.xc != undefined)
{
global.xc = xatlib.xInt(loc1.xc);
}
global.sv = sv;
global.lv = lv;
}
if (todo.config["MOBILE"])
{
todo.w_room = 5713805;
}
todo.w_useroom = todo.w_room;
xconst.xconstInit();
beep = new beepsnd();
tab_sound = new beepsnd();
dingdong = new dingdongsnd();
this.SetState(0);
if (xatlib.xInt(flash.system.Capabilities.version.split(" ")[1]) < 10)
{
gctrick = 60;
}
stage.addEventListener(flash.events.KeyboardEvent.KEY_DOWN, this.onkeyDown);
stage.addEventListener(flash.events.KeyboardEvent.KEY_UP, this.onkeyUp);
stage.addEventListener(flash.events.MouseEvent.MOUSE_MOVE, this.onmouseMove);
addEventListener(flash.events.Event.ENTER_FRAME, this.tick);
return;
}
function onResize(arg1:flash.events.Event):*
{
return;
}
function onmouseMove(arg1:flash.events.Event):*
{
if (todo.OnSuper == false && todo.lb == "t")
{
network.NetworkSendMsg(1, "/K2", 0, 0, 1);
todo.OnSuper = true;
}
if (todo.Away)
{
NotAway();
}
return;
}
function SetState(arg1:*, arg2:*):*
{
State = arg1;
Timeout = arg2;
return;
}
function onLang(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = flash.net.URLLoader(arg1.target);
todo.LangText = loc1.data;
return;
}
function tick(arg1:flash.events.Event):*
{
var Request:flash.net.URLRequest;
var event:flash.events.Event;
var flushret:*;
var loader:flash.net.URLLoader;
var str:*;
var t:*;
var temp_comm:*;
var loc1:*;
flushret = undefined;
temp_comm = undefined;
Request = null;
loader = null;
t = undefined;
str = undefined;
event = arg1;
if (State == 0)
{
sot = xatlib.getLocal("chat", "/");
sot.objectEncoding = flash.net.ObjectEncoding.AMF0;
sot.data.w_test = Math.random();
this.SetState(1);
}
if (State == 1)
{
flushret = sot.flush();
if (flushret == flash.net.SharedObjectFlushStatus.FLUSHED)
{
sot = null;
this.SetState(2);
}
}
if (State == 2)
{
this.CookieStuff();
if (todo.w_lang != undefined)
{
if (todo.w_lang != 0)
{
this.SetState(3);
}
else
{
this.SetState(5);
}
}
else
{
if (todo.w_roomlang != undefined)
{
todo.w_lang = todo.w_roomlang;
this.SetState(3);
}
else
{
this.SetState(5);
}
}
}
if (State == 3)
{
todo.LangText = undefined;
temp_comm = xatlib.GetLangDom() + todo.w_lang + ".xml?" + todo.w_langv;
xatlib.LoadVariables(temp_comm, this.onLang);
this.SetState(4, 20);
}
if (State == 4)
{
if (todo.LangText != undefined)
{
xconst.CreateST();
this.SetState(5);
}
xconst.MakeBads();
if (Timeout != undefined)
{
var loc2:*;
var loc3:*;
Timeout--;
}
if (Timeout <= 0)
{
this.SetState(5);
}
}
if (State == 5)
{
mainDlg = new main();
addChild(mainDlg);
mainDlg.StartChat();
network.NetworkInit();
network.NetworkStartChat();
if (!todo.config["nolocalconnection"])
{
this.AppComms();
}
IM.IMComms();
if (todo.w_room == 8)
{
xatlib.AddBackground(this, -10, -10, 240, 160, 128 << 10 | xatlib.c_tl | xatlib.c_tr | xatlib.c_bl | xatlib.c_br);
}
if (global.xc & 1)
{
if (global.xp != undefined)
{
xatlib.GeneralMessage(" ", "Set Picture: " + global.xp);
main.box_layer.GeneralMessageH.Dia.Ok.But.PressFunc = function (arg1:*):*
{
main.box_layer.GeneralMessageH.Delete();
todo.w_avatar = global.xp;
xatlib.MainSolWrite("w_avatar", todo.w_avatar);
xatlib.ReLogin();
return;
}
}
}
Request = new flash.net.URLRequest();
Request.url = xconst.chatdomain + "pow.php";
Request.method = flash.net.URLRequestMethod.GET;
loader = new flash.net.URLLoader();
loader.load(Request);
loader.addEventListener(flash.events.Event.COMPLETE, this.PowHandler);
this.SetState(6);
}
if (State == 6)
{
if (AppTimeout != undefined)
{
AppTimeout--;
if (AppTimeout <= 0)
{
if (todo.messageecho == "m")
{
todo.messageecho = undefined;
}
AppTimeout = undefined;
}
}
network.NetworkTick();
tickcode.DoTick();
if (mainDlg)
{
mainDlg.tick2(null);
}
}
if (!(gctrick == 0) && todo.tick % gctrick == 0)
{
try
{
new flash.net.LocalConnection().connect("foo");
new flash.net.LocalConnection().connect("foo");
}
catch (e:Error)
{
};
}
if ((debug || todo.useport == 10025 && todo.sockdomain == "174.36.242.26") && !todo.bStrip && !todo.bSmilies)
{
framec++;
if (framec >= period)
{
t = flash.utils.getTimer();
fps = Math.round(period * 1000 / (t - framet) * 100) / 100;
fpsa = fpsa + fps;
fpsc++;
afps = Math.round(fpsa / fpsc * 100) / 100;
fpsstr = fpsstr + fps.toString() + ",";
timesc++;
if (timesc >= times)
{
str = "lag=" + fpsstr + flash.system.Capabilities.version + "," + flash.system.System.totalMemory + "," + mainDlg.stage.frameRate + "," + afps + "," + cVersion;
network.NetworkSendMsg(1, "/KD " + str, 0, 0, 1);
fpsstr = "";
timesc = 0;
}
framet = t;
framec = 0;
}
}
if (ctrlTimer != undefined)
{
ctrlTimer--;
if (ctrlTimer <= 0)
{
ctrlTimer = undefined;
keybits[flash.ui.Keyboard.CONTROL] = false;
}
}
return;
}
function PowHandler(arg1:flash.events.Event):*
{
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc1:*;
loc1 = flash.net.URLLoader(arg1.target);
var loc2:*;
loc2 = com.adobe.serialization.json.JSON.decode(loc1.data);
var loc3:*;
loc3 = false;
var loc4:*;
loc4 = 0;
while (loc4 < loc2.length)
{
var loc7:*;
loc7 = 0;
var loc8:*;
loc8 = loc2[loc4][1];
label524: for (loc5 in loc8)
{
var loc9:*;
loc9 = loc2[loc4][0];
switch (loc9)
{
case "backs":
{
loc3 = true;
xconst.backs[loc5] = loc2[loc4][1][loc5];
continue label524;
}
case "topsh":
{
xconst.topsh[loc5] = xatlib.xInt(loc2[loc4][1][loc5]);
xconst.smi = xconst.smi + "," + loc5;
xconst.smia.push(loc5);
xconst.smih[loc5] = true;
continue label524;
}
case "Puzzle":
{
xconst.Puzzle[loc5] = loc2[loc4][1][loc5];
continue label524;
}
case "NotGroup":
{
xconst.NotGroup[loc5] = loc2[loc4][1][loc5];
continue label524;
}
case "pssa":
{
loc6 = xatlib.xInt(loc2[loc4][1][loc5]);
xconst.pssa[(loc6 + 1)] = loc5;
xconst.smi = xconst.smi + "," + loc5;
xconst.smia.push(loc5);
xconst.smih[loc5] = true;
xconst.pssh[loc5] = loc6;
continue label524;
}
case "pawns":
{
xconst.Pawns = loc2[loc4][1];
continue label524;
}
}
}
loc4 = (loc4 + 1);
}
if (loc3)
{
xconst.backsR = xconst.ReverseObj(xconst.backs);
}
return;
}
function CookieStuff():*
{
var loc4:*;
loc4 = null;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
if (todo.w_lang == undefined)
{
todo.w_lang = global.lg;
}
if (todo.w_langv == undefined)
{
todo.w_langv = global.lv;
}
var loc1:*;
loc1 = xatlib.getLocal("chat" + String(todo.w_room), "/");
loc1.objectEncoding = flash.net.ObjectEncoding.AMF0;
if (loc1 != null)
{
if (todo.pass == undefined)
{
todo.pass = loc1.data.pass;
if (todo.pass != undefined)
{
todo.pass = xatlib.xInt(todo.pass);
}
}
else
{
loc1.data.pass = todo.pass;
loc1.flush();
}
}
var loc2:*;
loc2 = xatlib.getLocal("chat", "/");
loc2.objectEncoding = flash.net.ObjectEncoding.AMF0;
var loc3:*;
loc3 = 1;
if (1 && !(loc2 == null))
{
loc5 = (loc4 = new Date()).getTime();
loc6 = 0;
if (loc2.data.w_lastroom != undefined)
{
loc3 = loc2.data.w_lastroom;
}
if (loc2.data.w_lastauto != undefined)
{
loc6 = loc2.data.w_lastauto;
}
loc2.data.w_lastauto = loc5;
if (todo.w_lang == undefined)
{
if (loc2.data.w_lang != undefined)
{
todo.w_lang = loc2.data.w_lang;
}
}
else
{
if (xatlib.xInt(todo.w_lang) < 10000)
{
loc2.data.w_lang = todo.w_lang;
}
}
loc2.flush();
if (loc2.data.w_userno != undefined)
{
if (loc2.data.w_userno != undefined)
{
todo.w_userno = xatlib.xInt(loc2.data.w_userno);
}
if (loc2.data.w_userrev != undefined)
{
todo.w_userrev = xatlib.xInt(loc2.data.w_userrev);
}
if (loc2.data.w_k1b != undefined)
{
todo.w_k1 = xatlib.xInt(loc2.data.w_k1b);
}
if (loc2.data.w_k2 != undefined)
{
todo.w_k2 = xatlib.xInt(loc2.data.w_k2);
}
if (loc2.data.w_name != undefined)
{
todo.w_name = xatlib.CleanTextNoXat(loc2.data.w_name);
}
if (loc2.data.w_avatar != undefined)
{
todo.w_avatar = xatlib.CleanAv(loc2.data.w_avatar);
}
if (loc2.data.w_homepage != undefined)
{
todo.w_homepage = loc2.data.w_homepage;
}
if (loc2.data.w_d0 != undefined)
{
todo.w_d0 = xatlib.xInt(loc2.data.w_d0);
}
if (loc2.data.w_d1 != undefined)
{
todo.w_d1 = xatlib.xInt(loc2.data.w_d1);
}
todo.w_d2 = xatlib.xInt(loc2.data.w_d2);
todo.w_d3 = xatlib.xInt(loc2.data.w_d3);
todo.w_dt = xatlib.xInt(loc2.data.w_dt);
todo.w_Powers = loc2.data.w_Powers;
todo.w_Mask = loc2.data.w_Mask;
todo.w_bride = loc2.data.w_bride;
todo.w_xats = loc2.data.w_xats;
todo.w_PowerO = loc2.data.w_PowerO;
todo.w_sn = loc2.data.w_sn;
if (loc2.data.w_coins != undefined)
{
todo.w_coins = xatlib.xInt(loc2.data.w_coins);
}
if (loc2.data.w_k3 != undefined)
{
todo.w_k3 = xatlib.xInt(loc2.data.w_k3);
}
if (loc2.data.w_registered != undefined)
{
todo.w_registered = loc2.data.w_registered;
}
todo.w_autologin = loc2.data.w_autologin;
todo.w_news = xatlib.xInt(loc2.data.w_news);
todo.w_Vol[1] = loc2.data.w_Vol1;
todo.w_Vol[2] = loc2.data.w_Vol2;
if (todo.w_autologin == undefined || todo.w_autologin == true)
{
todo.w_autologin = 65535;
}
if (todo.w_autologin == false)
{
todo.w_autologin = 65534;
}
todo.autologin = todo.w_autologin;
if (!(global.xc & 32))
{
if (loc5 - loc6 < (todo.w_room != loc3 ? 2000 : 10000))
{
todo.w_autologin = todo.w_autologin & !1;
}
}
if (todo.w_useroom > 100 && (todo.StageWidth < 220 || todo.StageHeight < 140))
{
todo.w_autologin = todo.w_autologin & !1;
}
else
{
if (global.xc & 512)
{
todo.w_autologin = todo.w_autologin & !1;
}
else
{
if (todo.w_useroom > 100 && !(global.pw == undefined))
{
todo.w_autologin = todo.w_autologin | 1;
}
}
}
if (loc2.data.w_banlist != undefined)
{
todo.w_banlist = loc2.data.w_banlist;
}
if (loc2.data.w_friendlist != undefined)
{
todo.w_friendlist = loc2.data.w_friendlist;
}
if (loc2.data.w_friendlist2 != undefined)
{
todo.w_friendlist2 = loc2.data.w_friendlist2;
}
if (loc2.data.w_ignorelist2 != undefined)
{
todo.w_ignorelist2 = loc2.data.w_ignorelist2;
}
if (loc2.data.w_userrevlist != undefined)
{
todo.w_userrevlist = loc2.data.w_userrevlist;
}
if (loc2.data.w_namelist != undefined)
{
todo.w_namelist = loc2.data.w_namelist;
}
if (loc2.data.w_avatarlist != undefined)
{
todo.w_avatarlist = loc2.data.w_avatarlist;
}
if (loc2.data.w_homepagelist != undefined)
{
todo.w_homepagelist = loc2.data.w_homepagelist;
}
todo.w_Options = loc2.data.w_Options;
todo.Macros = loc2.data.Macros;
if (!todo.Macros)
{
todo.Macros = {};
}
}
}
if (todo.w_Vol[1] == undefined)
{
todo.w_Vol[1] = 35;
}
if (todo.w_Vol[2] == undefined)
{
todo.w_Vol[2] = 35;
}
if (!(loc2 == null) && !(loc2.data.w_sound == undefined))
{
todo.w_sound = loc2.data.w_sound;
}
network.TrimIgnoreList();
if (global.xn != undefined)
{
if (todo.w_name == "" || xatlib.IsDefaultName(todo.w_name))
{
todo.w_name = global.xn;
}
}
if (global.xp != undefined)
{
if (todo.w_avatar == "")
{
todo.w_avatar = global.xp;
}
}
if (global.xh != undefined)
{
if (todo.w_homepage == "")
{
todo.w_homepage = global.xh;
}
}
if (global.xl != undefined)
{
todo.MainFlagBits = todo.MainFlagBits | xconst.f_Lobby;
}
if (network.OnFriendList(3))
{
network.UpdateFriendList(3, false);
}
todo.w_roomlang = global.rl;
if (force_lang != undefined)
{
todo.w_lang = force_lang;
}
return;
}
function onkeyDown(arg1:flash.events.KeyboardEvent):void
{
if (arg1.keyCode == flash.ui.Keyboard.CONTROL)
{
ctrlTimer = 12;
}
keybits[arg1.keyCode] = true;
return;
}
function onkeyUp(arg1:flash.events.KeyboardEvent):void
{
if (arg1.keyCode == flash.ui.Keyboard.CONTROL)
{
ctrlTimer = undefined;
}
keybits[arg1.keyCode] = false;
return;
}
function sending_lc_Status(arg1:flash.events.Event):*
{
return;
}
function AppComms():*
{
var loc1:*;
onMsg2 = this.onMsg;
if (force_xc != undefined)
{
global.xc = force_xc;
}
if (global.cn != undefined)
{
toxat = toxat + global.cn;
fromxat = fromxat + global.cn;
}
if (global.xc & 2048)
{
sending_lc = new flash.net.LocalConnection();
sending_lc.addEventListener(flash.events.StatusEvent.STATUS, this.sending_lc_Status);
receiving_lc = new flash.net.LocalConnection();
receiving_lc.client = this;
try
{
receiving_lc.connect(toxat);
}
catch (error:ArgumentError)
{
};
}
return;
}
public function onMsg(arg1:*, arg2:*, arg3:*):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
var loc9:*;
loc9 = undefined;
var loc10:*;
loc10 = undefined;
var loc11:*;
loc11 = undefined;
var loc12:*;
loc12 = undefined;
if (arg1 != 1)
{
if (arg1 != 2)
{
if (arg1 != 3)
{
if (arg1 != 4)
{
if (arg1 >= 10000 || arg1 == 0)
{
if (arg1 >= 40000 && arg1 <= 50000)
{
if (arg3 != "j")
{
network.NetworkSendxmlExtMessage(arg3);
}
else
{
network.NetworkSendExtMessage(arg3);
}
}
else
{
network.NetworkSendExtMessage(arg1, arg2, arg3);
if (arg1 == 10001 && arg3.substr(0, 1) == "b")
{
xatlib.UpdateDJ(todo.w_userno);
}
}
}
else
{
if (arg1 != 5)
{
if (arg1 != 6)
{
if (arg1 != 7)
{
if (arg1 != 8)
{
if (arg1 != 9)
{
if (arg1 != 10)
{
if (arg1 == 12)
{
if (todo.systemMessages.indexOf(arg3) == -1)
{
todo.systemMessages = todo.systemMessages + arg3;
}
if (arg3 == "v")
{
sending_lc.send(fromxat, "onMsg", arg1, arg3, todo.w_sound & 1 ? todo.w_Vol[1] : 0);
}
}
}
else
{
loc10 = todo.Message.length;
loc11 = 0;
while (loc11 < loc10)
{
if (todo.Message[loc11].i == xatlib.xInt(arg2))
{
if (arg3 != "")
{
if (todo.Message[loc11].t.indexOf(" [") == -1)
{
todo.Message[loc11].t = todo.Message[loc11].t + " [" + arg3 + "]";
}
else
{
todo.Message[loc11].t = todo.Message[loc11].t.substr(0, todo.Message[loc11].t.indexOf(" [")) + " [" + arg3 + "]";
}
}
xmessage.DeleteOneMessageMc(loc11);
todo.DoUpdateMessages = true;
if (xatlib.xInt(arg2) & 1)
{
loc12 = todo.Message[loc11].t;
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
todo.LastScrollTime = undefined;
if (todo.MessageCount > 0)
{
todo.MessageCount = 25;
}
if (loc12 == todo.LastMessageToSend)
{
todo.MessageCount = 25;
}
else
{
if (todo.MessageToSend.length == 0)
{
todo.MessageToSend = loc12;
}
todo.MessageToSend = todo.MessageToSend.substr(0, 256);
}
}
break;
}
loc11 = (loc11 + 1);
}
}
}
else
{
loc9 = "not set";
var loc13:*;
loc13 = arg3;
switch (loc13)
{
case "sv":
{
loc9 = global.sv;
break;
}
case "smi":
{
loc9 = xconst.smi;
break;
}
case "w_xats":
{
loc9 = todo.w_xats;
break;
}
case "YC":
{
loc9 = network.YC;
break;
}
case "w_d1":
{
loc9 = todo.w_d1;
break;
}
case "w_Powers":
{
loc9 = todo.w_Powers;
break;
}
case "w_Mask":
{
loc9 = todo.w_Mask == undefined || todo.w_Mask == 0 ? "0,0,0" : todo.w_Mask;
break;
}
case "w_langv":
{
loc9 = todo.w_langv;
break;
}
case "pssa":
{
loc9 = xconst.pssa;
break;
}
case "w_PowerO":
{
loc9 = todo.w_PowerO;
break;
}
case "w_lang":
{
loc9 = todo.w_lang;
break;
}
case "config":
{
loc9 = todo.config;
break;
}
case "gUserNo":
{
loc9 = global.gUserNo;
break;
}
case "w_useroom":
{
loc9 = todo.w_useroom;
break;
}
case "gconfig":
{
loc9 = todo.gconfig;
break;
}
default:
{
if (!1)
{
};
break;
}
}
sending_lc.send(fromxat, "onMsg", arg1, arg3, loc9);
}
}
else
{
todo.w_avatar = arg3;
(loc8 = xatlib.getLocal("chat", "/")).objectEncoding = flash.net.ObjectEncoding.AMF0;
if (1 && !(loc8 == null))
{
loc8.data.w_avatar = todo.w_avatar;
loc8.flush();
}
todo.lb = "n";
todo.DoUpdate = true;
network.NetworkClose();
main.logoutbutonPress();
}
}
else
{
if (arg3 != "x")
{
if (arg3 != "p")
{
if (arg3 != "b")
{
if ((loc7 = arg3.split(","))[0] == "ban")
{
network.NetworkGagUser("g", arg2, true, xatlib.xInt(loc7[1]), loc7[2]);
}
}
else
{
xatlib.Register_onRelease(1);
}
}
else
{
main.openDialog(2, arg2);
}
}
else
{
chat.mainDlg.GotoProfile(arg2);
}
}
}
else
{
if (arg3 == 0)
{
arg3 = todo.w_userno;
}
if ((loc6 = xatlib.FindUser(arg3)) != -1)
{
sending_lc.send(fromxat, "onMsg", arg1, todo.Users[loc6].u, todo.Users[loc6]);
}
}
}
else
{
stage.focus = main.textfield2;
main.textfield2.appendText(arg3);
main.textfield2.setSelection(main.textfield2.text.length, main.textfield2.text.length);
}
}
}
else
{
if (arg3 != "m")
{
todo.messageecho = arg3;
if (todo.messageecho == "a")
{
sending_lc.send(fromxat, "onMsg", 4, 0, "d");
loc4 = todo.Users.length;
loc5 = 0;
while (loc5 < loc4)
{
if (todo.Users[loc5].online == true)
{
sending_lc.send(fromxat, "onMsg", 4, todo.Users[loc5].u, "u" + todo.Users[loc5].a);
}
loc5 = (loc5 + 1);
}
}
}
else
{
if (network.YC)
{
if ((loc3 = xatlib.xInt(todo.w_d1) - network.YC) < 0)
{
loc3 = 0;
}
if ((loc3 = xatlib.xInt(loc3 / (24 * 3600) + 0.3)) > 0)
{
todo.messageecho = arg3;
}
else
{
todo.helpstr = "You need to be a subscriber to use translator";
todo.helpupdate = 0;
}
}
}
}
}
else
{
if (arg3 == 0)
{
arg3 = todo.w_userno;
}
if ((loc2 = xatlib.FindUser(arg3)) != -1)
{
sending_lc.send(fromxat, "onMsg", arg1, arg3 != todo.w_userno ? todo.Users[loc2].u : 0, todo.Users[loc2].n);
}
}
}
else
{
loc1 = main.ctabsmc.TabUser();
sending_lc.send(fromxat, "onMsg", 2, loc1 != undefined ? loc1 : 0, "");
}
}
else
{
connectchannel = arg1;
connectuser = arg2;
connectmessage = arg3;
if (todo.lb != "n")
{
sending_lc.send(fromxat, "onMsg", arg1, arg2, arg3);
}
AppTimeout = 120;
}
return;
}
static function NotAway():*
{
var loc1:*;
loc1 = xatlib.FindUser(todo.w_userno);
if (todo.Users[loc1].flag0 & 16384)
{
network.NetworkSendMsg(todo.w_userno, "/back");
}
todo.Away = 1;
return;
}
static function isKeyDown(arg1:int):Boolean
{
return true == Boolean(keybits[arg1]);
}
{
debug = false;
force_xc = undefined;
force_lang = undefined;
gctrick = 0;
framet = 0;
framec = 0;
timesc = 0;
fpsstr = "";
fps = 12;
afps = 12;
fpsa = 0;
fpsc = 0;
timer = new Object();
State = 0;
Timeout = undefined;
sot = null;
keybits = new Array(256);
IM = new im();
toxat = "toxat";
fromxat = "fromxat";
AppTimeout = undefined;
connectchannel = undefined;
connectuser = undefined;
connectmessage = undefined;
connectmsg = undefined;
}
public static const cVersion:String="31082012";
public static const sv:int=31;
public static const lv:int=2;
static const period:int=120;
static const times:int=36;
public static var debug:*=false;
static var force_xc:*;
static var force_lang:*;
static var gctrick:*=0;
static var framet:*=0;
static var framec:*=0;
static var timesc:*=0;
static var fpsstr:*="";
static var fps:*=12;
static var afps:*=12;
static var fpsa:*=0;
static var fpsc:*=0;
static var timer:*;
static var State:*=0;
static var Timeout:*;
static var sot:*=null;
static var keybits:Array;
static var ctrlTimer:*;
public static var mainDlg:main;
public static var IM:*;
public static var beep:flash.media.Sound;
public static var dingdong:flash.media.Sound;
public static var tab_sound:flash.media.Sound;
public static var sending_lc:flash.net.LocalConnection;
public static var receiving_lc:flash.net.LocalConnection;
public static var toxat:*="toxat";
public static var fromxat:*="fromxat";
public static var AppTimeout:*;
public static var connectchannel:*;
public static var connectuser:*;
public static var connectmessage:*;
public static var connectmsg:*;
public static var onMsg2:*;
}
}
// class chatmain
package
{
import flash.display.*;
public dynamic class chatmain extends flash.display.MovieClip
{
public function chatmain()
{
super();
addFrameScript(0, this.frame1);
return;
}
function frame1():*
{
this.c = new chat();
parent.addChild(this.c);
stop();
return;
}
public var c:*;
}
}
// class chatter2
package
{
import flash.display.*;
public dynamic class chatter2 extends flash.display.MovieClip
{
public function chatter2()
{
super();
return;
}
public function Go():*
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc1:*;
loc1 = new Array();
if (this.Options & Mob)
{
loc1.push("p1mob");
this.Simple = false;
}
else
{
if (this.Pawn)
{
loc1.push(this.Pawn);
if (this.Options & flash)
{
loc1.push("w1");
}
this.Simple = false;
}
else
{
loc1.push("p1pwn");
}
}
loc1.push(this.d2h(this.ColP1));
if (!(this.ColP2 == undefined) && !(this.ColP1 == this.ColP2))
{
loc1.push(this.d2h(this.ColP2));
this.Simple = false;
}
if (this.flag2 & 1)
{
loc1.push("mirror");
loc1.push("shift1");
loc1.push("w-11");
this.Simple = false;
}
if (this.Options & Fronts)
{
loc1.push("frnt1");
loc1.push("w" + (this.Options & Fronts));
if (this.ColF)
{
loc1.push(this.d2h(this.ColF));
}
this.Simple = false;
}
if (this.Options & Behinds)
{
loc1.push("bff1");
loc1.push("w" + (this.Options & Behinds));
this.Simple = false;
}
if (this.Hat && !(this.flag0 & 32768))
{
loc1.push("hat1");
loc1.push("w" + this.Hat);
this.Simple = false;
}
if (this.flag0 & 16384)
{
loc1.push("away");
this.Simple = false;
}
if (this.flag0 & 32768)
{
loc1.push("dunce1");
this.Simple = false;
}
if (this.flag0 & 65536)
{
loc1.push("typing");
this.Simple = false;
}
if (this.Effect)
{
loc1.push(this.Effect);
this.Simple = false;
}
var loc2:*;
loc2 = "(" + loc1.join("#") + ")";
if (loc2 == this.SA)
{
return;
}
this.SA = loc2;
if (this.mc)
{
removeChild(this.mc);
this.mc.cleanUp();
this.mc = null;
}
if (!todo.bThin)
{
if (!this.Simple)
{
loc3 = cachedSprite.dic[this.SA];
if (loc3)
{
loc3 = !loc3.Pending;
}
}
if (!loc3 && !this.Pawn)
{
loc4 = new library("p1pwn");
this.addChild(loc4);
if (this.ColP1)
{
xatlib.McSetRGB(loc4.xitem.col0, this.ColP1);
}
if (this.Size != 20)
{
var loc5:*;
loc4.scaleY = loc5 = this.Size / 20;
loc4.scaleX = loc5;
}
if (this.flag2 & 1)
{
loc4.x = 10;
}
}
if (this.Simple)
{
return;
}
}
this.SF = 2;
xmessage.PowSm(this, loc1, 19, todo.ALL_POWERS);
this.mc = new smiley(this, loc1[0], this.Size);
return;
}
private function d2h(arg1:int):String
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = "";
var loc3:*;
loc3 = 0;
while (loc3 < 6)
{
loc1 = arg1 & 15;
loc1 = String.fromCharCode(loc1 > 9 ? loc1 + 87 : loc1 + 48);
arg1 = arg1 >> 4;
loc2 = loc1 + loc2;
loc3 = (loc3 + 1);
}
return loc2;
}
static const hat:int=1;
static const tmp:int=2;
static const Married:int=4;
static const BFF:int=8;
static const Married2:int=16;
static const BFF2:int=32;
static const Star:int=64;
static const Gag:int=128;
static const sinbin:int=256;
static const Behinds:*=Married | BFF;
static const Fronts:*=Married2 | BFF2 | Star | Gag | sinbin | Single;
static const Mob:int=512;
static const MBack:int=1024;
static const Glow:int=2048;
static const Single:int=4096;
static const flash:int=8192;
var Options:int=0;
var flag0:int=0;
var flag2:int=0;
var Glowing:Boolean;
var ColP1:int=49152;
var ColP2:*;
var ColF:int;
var ColB:int;
var Size:int=20;
var Simple:*=true;
var Pawn:*;
var Effect:*;
var mc:*;
}
}
// class checkbox
package
{
import flash.display.*;
public dynamic class checkbox extends flash.display.MovieClip
{
public function checkbox()
{
super();
return;
}
public var tick:flash.display.MovieClip;
}
}
// class close
package
{
import flash.display.*;
public dynamic class close extends flash.display.MovieClip
{
public function close()
{
super();
return;
}
}
}
// class coins
package
{
import flash.display.*;
public dynamic class coins extends flash.display.MovieClip
{
public function coins()
{
super();
return;
}
}
}
// class coins2
package
{
import flash.display.*;
public dynamic class coins2 extends flash.display.MovieClip
{
public function coins2()
{
super();
return;
}
}
}
// class confused
package
{
import flash.display.*;
public dynamic class confused extends flash.display.MovieClip
{
public function confused()
{
super();
return;
}
}
}
// class cool
package
{
import flash.display.*;
public dynamic class cool extends flash.display.MovieClip
{
public function cool()
{
super();
return;
}
}
}
// class crying
package
{
import flash.display.*;
public dynamic class crying extends flash.display.MovieClip
{
public function crying()
{
super();
return;
}
}
}
// class ctabs
package
{
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
public class ctabs extends flash.display.Sprite
{
public function ctabs()
{
this.tabs = new Array();
super();
return;
}
public function CreateTabs():*
{
this.tabs[0] = new Object();
var loc1:*;
this.tabs[0].h = loc1 = global.gn == null ? xconst.ST(0) : global.gn;
this.tabs[0].t = loc1;
this.tabs[0].Col = 16777215;
this.tabs[0].Flags = 0;
this.tabs[0].pFunc = main(parent).Home_onRelease;
this.tabs[0].Skip = true;
this.tabs[1] = new Object();
this.tabs[1].t = !(global.xl == undefined) && !(global.xt == undefined) ? global.xt : "Error!";
this.tabs[1].h = this.tabs[1].t + " ";
this.tabs[1].Col = 16777215;
this.tabs[1].Flags = 0;
this.tabs[1].pFunc = main(parent).Lobby_onRelease;
this.tabs[1].dFunc = main(parent).GoGroup;
this.tabs[1].Skip = true;
this.UpdateTabs(0);
return;
}
public function UpdateTabs(arg1:Number=NaN):*
{
var loc3:*;
loc3 = undefined;
if (arg1 >= this.MaxT)
{
arg1 = NaN;
}
if (!isNaN(arg1))
{
loc3 = 0;
while (loc3 < this.tabs.length)
{
this.tabs[loc3].Main = false;
if (loc3 != arg1)
{
this.tabs[loc3].Sound = undefined;
}
loc3 = (loc3 + 1);
}
this.tabs[arg1].Main = true;
xmessage.DeleteOneUserMc(xatlib.FindUser(this.LastPC));
this.LastPC = this.tabs[arg1].User;
xmessage.DeleteOneUserMc(xatlib.FindUser(this.LastPC));
}
if (this.tabs.length > 2)
{
this.tabs[0].Skip = undefined;
}
else
{
if (this.tabs[1].Skip == true)
{
this.tabs[0].Skip = true;
}
}
this.AddTabs(todo.tpx, todo.tpy, todo.tpw, todo.tph);
var loc1:*;
loc1 = 0;
while (loc1 < this.tabs.length)
{
this.ColorTab(loc1, this.tabs[loc1].Col);
loc1 = (loc1 + 1);
}
var loc2:*;
loc2 = this.TabUser();
if (loc2 != todo.LastTabUser)
{
if (chat.sending_lc != undefined)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 2, loc2 == undefined || isNaN(loc2) ? 0 : loc2, "");
}
}
todo.LastTabUser = loc2;
return;
}
public function ColorTab(arg1:Number, arg2:Number):*
{
if (this.tabs[arg1].Flags & 32 && this.tabs[arg1].Main)
{
arg2 = 16777215;
}
this.tabs[arg1].Col = arg2;
if (this.tabs[arg1].mc == undefined)
{
return;
}
var loc1:*;
loc1 = this.tabs[arg1].mc.bub.xitem.back;
if (!loc1)
{
return;
}
var loc2:*;
(loc2 = loc1.transform.colorTransform).color = arg2;
loc1.transform.colorTransform = loc2;
if (arg2 == 16777215 && this.tabs[arg1].Flags & 1)
{
loc1.alpha = 0;
}
else
{
loc1.alpha = 1;
}
return;
}
public function GlowTab(arg1:Number):*
{
if (this.tabs[arg1].mc == undefined)
{
return;
}
if (this.tabs[arg1].Sound == undefined)
{
todo.DoMessageSnd = false;
todo.DoTabSnd = true;
this.tabs[arg1].Sound = true;
}
this.tabs[arg1].glowc = 6;
todo.TabGlowFlag = true;
this.tabs[arg1].mc.bub.filters = [todo.TextGlow];
return;
}
public function AddTabText(arg1:Number, arg2:Number, arg3:Number):*
{
var Tab:*;
var Tx:Number;
var XX:*;
var YY:*;
var mc:*;
var mcFmt:flash.text.TextFormat;
var mcTxt:*;
var n:Number;
var s2:*;
var sh:Number;
var sw:Number;
var swt:*;
var sym:*;
var t:*;
var z:*;
var loc1:*;
XX = undefined;
YY = undefined;
swt = undefined;
n = arg1;
sw = arg2;
sh = arg3;
mc = this.tabs[n].mc;
Tab = this.tabs[n];
sym = "bubble";
if (Tab.Flags & 1)
{
sym = "lock";
}
if (Tab.Flags & 8)
{
sym = 10000 + Tab.Location;
}
if (Tab.Flags & 32)
{
sym = "notif";
}
Tx = 4;
if (!(Tab.Flags & 4))
{
mc.bub = new library(sym);
mc.addChild(mc.bub);
XX = mc.bub.width;
YY = mc.bub.height;
var loc2:*;
with (loc2 = mc.bub)
{
var loc3:*;
scaleY = loc3 = 1 / YY * (sh - 6);
scaleX = loc3;
y = 3;
swt = sw;
if (swt > 100)
{
swt = 100;
}
x = sw * 10 / xatlib.NX(120);
Tx = int(x + scaleX * XX + sw * 4 / 120);
}
}
mcFmt = new flash.text.TextFormat();
mcFmt.align = "left";
mcFmt.bold = true;
mcFmt.font = "_sans";
s2 = xatlib.Blend(sh, 18, 28, 10, 16);
mcFmt.size = int(s2);
mcFmt.color = 1052688;
mcTxt = new flash.text.TextField();
mcTxt.x = Tx;
mcTxt.y = 0;
mcTxt.width = sw - Tx;
mcTxt.height = sh;
mcTxt.autoSize = flash.text.TextFieldAutoSize.NONE;
mcTxt.selectable = false;
mcTxt.defaultTextFormat = mcFmt;
mcTxt.text = Tab.t;
t = mc.addChild(mcTxt);
z = xatlib.Blend(sh - mcTxt.textHeight, 5, 10, 0, 3);
mcTxt.y = mcTxt.y + z;
mcTxt.y = mcTxt.y + z;
return;
}
public function AddTabs(arg1:*, arg2:*, arg3:*, arg4:*):*
{
var HasTickle:*;
var Main:*;
var MainW:*;
var MainX:*;
var Mask:*;
var Olap:*;
var RightM:*;
var TabH:*;
var TickWidth:*;
var Wid2:*;
var Wid3:*;
var f:*;
var m:*;
var mc:*;
var mctextbackgroundb:*;
var mcx:xSprite;
var n:*;
var tph:*;
var tpw:*;
var tpx:*;
var tpy:*;
var v:*;
var vv:*;
var xx:*;
var loc1:*;
Main = undefined;
MainX = undefined;
mcx = null;
Wid3 = undefined;
mc = undefined;
Mask = undefined;
tpx = arg1;
tpy = arg2;
tpw = arg3;
tph = arg4;
n = this.tabs.length;
v = 0;
m = 0;
while (m < n)
{
if (this.tabs[m].Skip != true)
{
v = (v + 1);
}
m = (m + 1);
}
RightM = 12;
HasTickle = v > 2 && this.tabs[2].Flags & 32;
TickWidth = xatlib.xInt(20);
if (HasTickle)
{
RightM = 6;
}
RightM = xatlib.NX(RightM);
f = xatlib.c_solid | xatlib.c_NoCol;
if (v > 0)
{
f = xatlib.c_bl | xatlib.c_nolb | xatlib.c_NoCol;
}
if (this.tabsmc != null)
{
removeChild(this.tabsmc);
}
this.tabsmc = new flash.display.MovieClip();
addChild(this.tabsmc);
this.tabsmc.x = tpx;
this.tabsmc.y = tpy + tph;
mctextbackgroundb = xatlib.AddBackground(this.tabsmc, 0, -tph, tpw, tph, f);
if (v == 0)
{
return;
}
MainW = xatlib.NX(120);
if (MainW > tpw / 2)
{
MainW = xatlib.xInt(tpw / 2);
}
Olap = 3;
if (v > this.MaxT)
{
v = this.MaxT;
}
Wid2 = xatlib.xInt((tpw - RightM - MainW + Olap * 2) / (v - 1));
if (HasTickle)
{
MainW = xatlib.NX(68);
Wid2 = xatlib.NX(64);
if (this.tabs[2].Main)
{
MainW = Wid2;
}
if (this.tabs[0].Main)
{
MainW = MainW - 3;
}
}
xx = 0;
TabH = xatlib.NY(24);
if (Wid2 > MainW)
{
Wid2 = MainW;
}
vv = 0;
m = 0;
while (m < n)
{
if (this.tabs[m].Skip != true)
{
vv = (vv + 1);
if (vv > this.MaxT)
{
break;
}
if (this.tabs[m].Main != true)
{
if (this.tabsmc.sec == undefined)
{
this.tabsmc.sec = new flash.display.MovieClip();
this.tabsmc.addChild(this.tabsmc.sec);
}
Wid3 = Wid2;
if (HasTickle && vv == 3)
{
Wid3 = TickWidth;
}
mcx = xatlib.ButtonCurve2(8, Wid3 + 1, TabH, xatlib.c_tl + xatlib.c_tr + xatlib.c_nolt, 0, 13421772, 0, 16777215, 0.4);
this.tabsmc.sec.addChild(mcx);
this.tabs[m].mc = mcx;
this.AddTabText(m, Wid3, TabH);
mcx.x = mcx.x + xx;
xx = xx + Wid3;
}
else
{
if (this.tabs[m].Flags & 32)
{
MainW = TickWidth;
}
Main = m;
MainX = xx - Olap;
xx = xx + MainW - 2 * Olap;
if (m == 0)
{
MainX = MainX + Olap;
xx = xx + Olap;
}
}
}
m = (m + 1);
}
mcx = xatlib.ButtonCurve2(8, MainW, TabH, xatlib.c_tl + xatlib.c_tr + xatlib.c_nolt, 1, 13421772, 1, 16777215, 0.4);
mcx.x = MainX;
this.tabsmc.addChild(mcx);
this.tabs[Main].mc = mcx;
this.AddTabText(Main, MainW, TabH);
vv = this.MaxT;
m = 0;
while (m < n)
{
vv = (vv - 1);
if (vv < 0)
{
break;
}
if (this.tabs[m].Skip != true)
{
mc = this.tabs[m].mc;
mc.dFunc = this.tabs[m].dFunc;
mc.t = this.tabs[m].t;
mc.h = this.tabs[m].h;
mc.n = m;
mc.buttonMode = true;
mc.mouseChildren = false;
mc.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.TabRollover);
mc.addEventListener(flash.events.MouseEvent.ROLL_OUT, main.hint.HintOff);
mc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.TabMouseDown);
}
m = (m + 1);
}
if (this.tabsmc.sec != undefined)
{
Mask = xatlib.ButtonCurve2(8, MainW, TabH, xatlib.c_tl + xatlib.c_tr + xatlib.c_nolt + xatlib.c_inv, 0, 0, 0);
Mask.x = MainX;
this.tabsmc.sec.addChild(Mask);
this.tabsmc.sec.mask = Mask;
}
var loc2:*;
with (loc2 = this.tabsmc)
{
graphics.lineStyle(1, 13421772, 100);
graphics.moveTo(0, 0);
graphics.lineTo(MainX, 0);
graphics.moveTo(MainX + MainW, 0);
graphics.lineTo(int(tpw) - 8, 0);
}
this.tabsmc.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.TabMouseOut);
return;
}
function TabMouseDown(arg1:flash.events.MouseEvent):*
{
if (this.tabs[arg1.currentTarget.n].pFunc)
{
this.tabs[arg1.currentTarget.n].pFunc(arg1.currentTarget.n);
}
return;
}
function TabMouseOut(arg1:flash.events.MouseEvent):*
{
if (this.tabsmc.del != undefined)
{
this.tabsmc.removeChild(this.tabsmc.del);
this.tabsmc.del = undefined;
}
return;
}
function TabRollover(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = 0;
var loc2:*;
loc2 = undefined;
if (arg1.currentTarget.h != undefined)
{
loc1 = 0;
if (this.tabs[arg1.currentTarget.n].Flags & 32)
{
loc1 = 3;
}
main.hint.Hint(8, 0, arg1.currentTarget.h, true, loc1, undefined, 200, arg1.currentTarget);
}
if (this.tabsmc.del != undefined)
{
this.tabsmc.removeChild(this.tabsmc.del);
this.tabsmc.del = undefined;
}
if (arg1.currentTarget.dFunc != undefined)
{
if (arg1.currentTarget.dFunc != main(parent).GoGroup)
{
loc2 = new library("xdelete");
}
else
{
loc2 = new library("Home");
}
this.tabsmc.addChild(loc2);
this.tabsmc.del = loc2;
loc2.dFunc = arg1.currentTarget.dFunc;
loc2.x = arg1.currentTarget.x + arg1.currentTarget.width - 9 - 6;
loc2.y = int((arg1.currentTarget.height - 9) / 2);
loc2.n = arg1.currentTarget.n;
loc2.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.DoFunc);
loc2.buttonMode = true;
}
return;
}
function DoFunc(arg1:flash.events.MouseEvent):*
{
arg1.currentTarget.dFunc(arg1.currentTarget.n);
return;
}
public function TabSelected():Number
{
var loc1:*;
loc1 = this.tabs.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (this.tabs[loc2].Main == true)
{
return loc2;
}
loc2 = (loc2 + 1);
}
return 0;
}
public function TabIsPrivate():Boolean
{
var loc1:*;
loc1 = this.TabSelected();
return this.tabs[loc1].Flags & 1 ? true : false;
}
public function TabUser():Number
{
var loc1:*;
loc1 = this.TabSelected();
return this.tabs[loc1].User;
}
public function TabAdd(arg1:*, arg2:*, arg3:*, arg4:*, arg5:*):Number
{
var loc1:*;
loc1 = -1;
var loc2:*;
loc2 = 0;
while (loc2 < this.tabs.length)
{
if (this.tabs[loc2].User == arg1)
{
loc1 = loc2;
break;
}
loc2 = (loc2 + 1);
}
if (loc1 == -1)
{
loc1 = this.tabs.length;
this.tabs[loc1] = new Object();
}
this.tabs[loc1].User = arg1;
this.tabs[loc1].h = xatlib.GetUsername(arg1);
this.tabs[loc1].t = xatlib.StripSmilies(this.tabs[loc1].h);
var loc3:*;
loc3 = xatlib.FindUser(arg1);
if (this.tabs[loc1].t == "")
{
todo.Users[loc3].tUpd = loc1;
}
this.tabs[loc1].Col = arg2;
this.tabs[loc1].Flags = arg3;
this.tabs[loc1].pFunc = arg4;
this.tabs[loc1].dFunc = arg5;
this.tabs[loc1].Location = todo.Users[loc3].Location;
return loc1;
}
public function SetVisitorsTab(arg1:int=0):*
{
var loc1:*;
loc1 = 0;
if (arg1 == 2)
{
this.Notif = false;
}
var loc2:*;
loc2 = 0;
while (loc2 < this.tabs.length)
{
if (this.tabs[loc2].Main)
{
loc1 = arg1;
}
this.tabs[loc2].Main = loc2 == arg1;
++loc2;
}
if (!(loc1 == arg1) && (arg1 == 2 || loc1 == 2))
{
xmessage.DeleteUserList(1);
}
this.AddTabs(main.upx, main.upy, main.upw, main.uph);
if (this.Notif)
{
this.ColorTab(2, 39168);
}
return;
}
public function CreateVisitorsTabs():*
{
this.tabs[0] = new Object();
var loc1:*;
this.tabs[0].h = loc1 = xconst.ST(2);
this.tabs[0].t = loc1;
this.tabs[0].Col = 16777215;
this.tabs[0].Flags = 4;
this.tabs[0].pFunc = main(parent).OnUsers;
this.tabs[1] = new Object();
this.tabs[1].t = xconst.ST(3);
this.tabs[1].h = this.tabs[1].t + " ";
this.tabs[1].Col = 16777215;
this.tabs[1].Flags = 4;
this.tabs[1].pFunc = main(parent).OnFriends;
if (!todo.bMobile && todo.HasPowerA(todo.w_Powers, 81, todo.w_Mask))
{
this.tabs[2] = new Object();
this.tabs[2].t = "";
this.tabs[2].h = "Notifications ";
this.tabs[2].Col = 16777215;
this.tabs[2].Flags = 32;
this.tabs[2].pFunc = main(parent).OnTickle;
}
this.SetVisitorsTab(0);
return;
}
public var tabs:Array;
public var MaxT:Number=10;
var LastPC:*;
var tabsmc:*;
public var Notif:Boolean;
}
}
// class dingdongsnd
package
{
import flash.media.*;
public dynamic class dingdongsnd extends flash.media.Sound
{
public function dingdongsnd()
{
super();
return;
}
}
}
// class eek
package
{
import flash.display.*;
public dynamic class eek extends flash.display.MovieClip
{
public function eek()
{
super();
return;
}
}
}
// class fb
package
{
import flash.display.*;
public dynamic class fb extends flash.display.MovieClip
{
public function fb()
{
super();
addFrameScript(0, this.frame1);
return;
}
function frame1():*
{
new xBut(this.hold, 0, 0, 32, 32, "", undefined, xBut.b_NoPress, 8, 3889560);
return;
}
public var hold:flash.display.MovieClip;
}
}
// class frown
package
{
import flash.display.*;
public dynamic class frown extends flash.display.MovieClip
{
public function frown()
{
super();
return;
}
}
}
// class giftb
package
{
import flash.display.*;
public dynamic class giftb extends flash.display.MovieClip
{
public function giftb()
{
super();
return;
}
public var Back:flash.display.MovieClip;
}
}
// class glint
package
{
import flash.display.*;
public dynamic class glint extends flash.display.MovieClip
{
public function glint()
{
super();
return;
}
}
}
// class global
package
{
public class global extends Object
{
public function global()
{
super();
return;
}
{
gUserNo = 0;
}
public static var Sock:Array;
public static var Sock2:Array;
public static var fwd:String;
public static var rf:Number;
public static var gn:String;
public static var pw:*;
public static var mk:*;
public static var mt:*;
public static var mp:*;
public static var ms:*;
public static var mg:*;
public static var sv:*;
public static var xc:*;
public static var xm:*;
public static var cn:*;
public static var gb:*;
public static var lg:*;
public static var lv:*;
public static var rl:*;
public static var xn:*;
public static var xh:*;
public static var xp:*;
public static var xb:*;
public static var xl:*;
public static var xt:*;
public static var xo:*;
public static var pass:*;
public static var um:*;
public static var gUserNo:int=0;
}
}
// class hints
package
{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
public class hints extends flash.display.Sprite
{
public function hints()
{
super();
if (todo.config["nohints"])
{
return;
}
addEventListener(flash.events.Event.ENTER_FRAME, this.tick);
return;
}
public function EasyHint(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = arg1.currentTarget;
this.Hint(xatlib.xInt(loc1.hint["Boxx"]), xatlib.xInt(loc1.hint["Boxy"]), loc1.hint["Hint"], true, xatlib.xInt(loc1.hint["Pos"]), xatlib.xInt(loc1.hint["size"]), xatlib.xInt(loc1.hint["MaxWidth"]), loc1.hint["mc"]);
return;
}
public function AddEasyHint(arg1:*, arg2:*, arg3:*):*
{
if (!arg3)
{
arg3 = {};
}
arg3.Hint = arg2;
arg3.mc = arg1;
arg1.hint = arg3;
arg1.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.EasyHint);
arg1.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.HintOff);
arg1.buttonMode = true;
return;
}
public function Hint(arg1:Number, arg2:Number, arg3:String, arg4:Boolean=true, arg5:Number=0, arg6:Number=0, arg7:Number=0, arg8:*):*
{
if (this.HintDisplayed != true)
{
this.HintUpdate = 1000;
}
else
{
if (arg4 != true)
{
this.HintUpdate = 500;
}
else
{
this.HintUpdate = 0;
}
}
this.HintBoxx = arg1;
this.HintBoxy = arg2;
this.Hinttxt = arg3;
this.Hintvis = arg4;
this.HintPos = arg5;
this.Hintsize = arg6;
this.HintMaxWidth = arg7;
this.HintMc = arg8;
return;
}
public function HintOff(arg1:*=0):*
{
this.Hint(0, 0, "", false);
return;
}
public function DoHint(arg1:Number, arg2:Number, arg3:String, arg4:Boolean, arg5:Number, arg6:Number, arg7:Number, arg8:*):*
{
var loc2:*;
loc2 = null;
var loc8:*;
loc8 = null;
var loc1:*;
loc1 = arg7 > 0;
if (arg7 < 2 || arg7 == undefined)
{
arg7 = 200;
}
if (this.HintHldMc != undefined)
{
this.HintHldMc.parent.removeChild(this.HintHldMc);
this.HintHldMc = undefined;
}
(loc2 = new flash.text.TextFormat()).align = "left";
loc2.color = todo.ButColW;
loc2.font = "_sans";
loc2.size = arg6;
if (loc2.size == undefined || loc2.size <= 1)
{
loc2.size = 12;
}
var loc3:*;
(loc3 = new flash.text.TextField()).text = arg3;
if (loc1)
{
loc3.autoSize = "left";
loc3.multiline = true;
loc3.wordWrap = true;
}
loc3.setTextFormat(loc2);
var loc4:*;
loc4 = loc3.textWidth + 4;
loc3.width = loc4;
var loc5:*;
loc5 = loc3.textHeight + 2;
if (loc1)
{
loc5 = loc3.height;
}
loc3.height = loc5;
if (!loc1)
{
loc3.height = loc3.height + 2;
}
if (arg8 != undefined)
{
loc8 = new flash.geom.Point();
loc8 = arg8.localToGlobal(loc8);
arg1 = arg1 + loc8.x;
arg2 = arg2 + loc8.y;
}
this.HintHldMc = new flash.display.MovieClip();
this.HintHldMc.x = arg1;
this.HintHldMc.y = arg2 - loc5 - 6;
if (arg5 == 1)
{
this.HintHldMc.y = arg2;
this.HintHldMc.x = arg1 - loc4 - 4;
}
if (arg5 == 2)
{
this.HintHldMc.y = arg2;
this.HintHldMc.x = arg1;
}
if (arg5 == 3)
{
this.HintHldMc.x = arg1 - loc4 - 4;
}
var loc6:*;
loc6 = 0;
var loc7:*;
loc7 = 2;
this.HintHldMc.graphics.beginFill(todo.ButCol, 90);
this.HintHldMc.graphics.lineStyle(1, todo.ButColW, 100);
this.HintHldMc.graphics.drawRect(loc6, loc7, loc4, loc5);
this.HintHldMc.graphics.endFill();
this.HintHldMc.addChild(loc3);
addChild(this.HintHldMc);
return;
}
public function tick(arg1:flash.events.Event):*
{
if (this.HintUpdate >= 0)
{
if (this.HintUpdate > this.heartbeatduration)
{
this.HintUpdate = this.HintUpdate - this.heartbeatduration;
}
else
{
this.HintUpdate = 0;
}
if (this.HintUpdate == 0)
{
this.HintDisplayed = this.Hintvis;
if (todo.w_hints)
{
this.DoHint(this.HintBoxx, this.HintBoxy, this.Hinttxt, this.Hintvis, this.HintPos, this.Hintsize, this.HintMaxWidth, this.HintMc);
this.HintUpdate = -1;
}
}
}
return;
}
var HintHldMc:flash.display.MovieClip;
var HintDisplayed:Boolean=false;
var HintBoxx:Number;
var HintBoxy:Number;
var Hinttxt:String;
var Hintvis:Boolean=false;
var HintPos:Number;
var Hintsize:Number;
var HintMaxWidth:Number;
var HintUpdate:Number=-1;
var HintMc:*;
var heartbeatduration:Number=83;
}
}
// class ho
package
{
import flash.display.*;
public dynamic class ho extends flash.display.MovieClip
{
public function ho()
{
super();
addFrameScript(0, this.frame1);
return;
}
function frame1():*
{
new xBut(this.hold, 0, 0, 32, 32, "", undefined, xBut.b_NoPress, 8, 122623);
return;
}
public var hold:flash.display.MovieClip;
}
}
// class im
package
{
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
public class im extends flash.display.Sprite
{
public function im()
{
super();
return;
}
public function IMComms():*
{
var loc1:*;
this.sending_lc3 = new flash.net.LocalConnection();
this.sending_lc3.addEventListener(flash.events.StatusEvent.STATUS, this.sending_lc3_Status);
this.receiving_lc3 = new flash.net.LocalConnection();
if (global.xc & 2048)
{
this.receiving_lc3.client = this;
try
{
this.receiving_lc3.connect("a" + chat.toxat);
}
catch (error:ArgumentError)
{
};
}
return;
}
function sending_lc3_Status(arg1:flash.events.Event):*
{
return;
}
public function onMsg(arg1:*):*
{
this.doxatMsg(arg1);
return;
}
public function IMtoId(arg1:String, arg2:Number):*
{
arg1 = String(arg2) + "$" + arg1;
if (this.ImCount == undefined)
{
this.ImCount = 2000000000 - 100000 * 2;
this.ImHash = new Object();
}
if (xatlib.xInt(this.ImHash[arg1]) > 0)
{
return this.ImHash[arg1];
}
this.ImHash[arg1] = this.ImCount;
var loc1:*;
var loc2:*;
loc2 = ((loc1 = this).ImCount + 1);
loc1.ImCount = loc2;
return (loc1 = this).ImCount;
}
public function StripTags(arg1:*):*
{
var loc3:*;
loc3 = undefined;
if (arg1 == undefined)
{
return undefined;
}
var loc1:*;
loc1 = arg1.split("<");
var loc2:*;
loc2 = 1;
while (loc2 < loc1.length)
{
if ((loc3 = loc1[loc2].split(">"))[1] != undefined)
{
loc1[loc2] = loc3[1];
}
else
{
loc1[loc2] = "";
}
loc2 = (loc2 + 1);
}
return xatlib.searchreplace(" ", " ", loc1.join(""));
}
public function ImInviteAll():*
{
var loc4:*;
loc4 = undefined;
this.ImInit = true;
if (!this.ImInit)
{
loc4 = xatlib.PageUrl(6);
xatlib.UrlPopup(xconst.ST(144), loc4, xconst.ST(145));
return;
}
if (this.ImInfo[128] == undefined && this.ImInfo[129] == undefined)
{
xatlib.GeneralMessage("", xconst.ST(146));
return;
}
var loc1:*;
loc1 = 0;
var loc2:*;
loc2 = todo.Users.length;
var loc3:*;
loc3 = 0;
while (loc3 < loc2)
{
if (todo.Users[loc3].onsuper && todo.Users[loc3].Location)
{
loc1 = (loc1 + 1);
chat.IM.ImPostMessage("Join me on " + xatlib.GroupUrl() + " chat group :)", undefined, todo.Users[loc3].u);
}
loc3 = (loc3 + 1);
}
xatlib.GeneralMessage("", xconst.ST(147, loc1));
return;
}
public function doxatMsg(arg1:*):*
{
var CSV:*;
var Email:*;
var Head:*;
var IMtype:*;
var Name:*;
var TabNumber:Number;
var Text:*;
var av:*;
var d:*;
var id:*;
var tImCount:*;
var uid:*;
var w:*;
var loc1:*;
id = undefined;
uid = undefined;
Name = undefined;
IMtype = undefined;
Email = undefined;
Head = undefined;
CSV = undefined;
w = undefined;
av = undefined;
Text = arg1;
tImCount = this.ImCount;
CSV = Text.split(",");
Head = CSV[0];
IMtype = xatlib.xInt(CSV[1]);
Email = CSV[2];
Name = this.StripTags(CSV[3]);
if (IMtype < 128)
{
return;
}
if (Head == "s")
{
if (IMtype == 129)
{
try
{
main.mcLoad.ImAimDoAd();
}
catch (e:Error)
{
};
}
}
if (Head == "r")
{
this.ImInfo[IMtype] = undefined;
}
if (Head == "i")
{
this.ImInit = true;
return;
}
if (Head == "r" || Head == "s")
{
w = 0;
while (w < todo.Users.length)
{
if (todo.Users[w].Location == IMtype)
{
xmessage.DeleteOneUserMc(w);
if (Head != "r")
{
todo.Users.splice(w, 1);
}
else
{
todo.Users[w].onsuper = false;
w = (w + 1);
}
continue;
}
w = (w + 1);
}
return;
}
if (!(Head == "c") && !(Head == "m") && !(Head == "u") && !(Head == "o"))
{
return;
}
if (Name == "" || Name == undefined)
{
Name = Email;
}
if (Email == "" || Email == undefined)
{
return;
}
if (!(this.ImInfo == undefined) && this.ImInfo[IMtype].Email == Email)
{
id = todo.w_userno;
}
else
{
if (Head != "u")
{
id = this.IMtoId(Email, IMtype);
}
}
if (id != undefined)
{
uid = xatlib.FindUser(id);
if (uid < 0 && !(Head == "u"))
{
uid = -1 + todo.Users.push({"u":id, "n":xatlib.NameNoXat(Name), "registered":Email, "Location":IMtype});
}
}
if (id == todo.w_userno && !(Head == "u"))
{
return;
}
var loc2:*;
loc2 = Head;
switch (loc2)
{
case "c":
{
todo.Users[uid].n = Name;
av = CSV[4];
if (av == "null")
{
av = xatlib.SmilieUrl("AimAv", "sm2");
av = xatlib.Replace(av, "swf", "png");
}
todo.Users[uid].a = av;
todo.Users[uid].onsuper = CSV[5].toLowerCase().indexOf("offline") == -1;
xmessage.DeleteOneUserMc(uid);
todo.Users[uid].MSNcid = xatlib.xInt(CSV[6]);
return;
}
case "m":
{
CSV.splice(0, 4);
Text = this.StripTags(CSV.join(","));
break;
}
case "u":
{
if (this.ImInfo == undefined)
{
this.ImInfo = new Object();
}
if (!(this.ImInfo[IMtype] == undefined) && this.ImInfo[IMtype].Email == undefined)
{
network.NetworkSendMsg(3, "/I," + IMtype + "," + Email, 0, 0, 3);
}
this.ImInfo[IMtype] = {"Email":Email};
return;
}
case "o":
};
d = id;
if (id == todo.w_userno)
{
d = main.ctabsmc.TabUser();
}
TabNumber = main.ctabsmc.TabAdd(d, 16777215, 8 + 1, main.Private_onRelease, main.Private_onDelete);
main.ctabsmc.tabs[TabNumber].IMtype = IMtype;
if (Head == "o")
{
if (main.ctabsmc.tabs[TabNumber].ImIndex == undefined)
{
main.ctabsmc.UpdateTabs(TabNumber);
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
}
main.ctabsmc.tabs[TabNumber].ImIndex = CSV[6];
return;
}
if (main.ctabsmc.TabSelected() != TabNumber)
{
main.ctabsmc.ColorTab(TabNumber, 39168);
}
main.ctabsmc.UpdateTabs();
if (main.ctabsmc.TabSelected() != TabNumber)
{
main.ctabsmc.GlowTab(TabNumber);
}
todo.Message.push({"n":0, "t":Text, "u":id, "s":2, "d":d});
todo.DoMessageSnd = true;
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
return;
}
public function ImPostMessage(arg1:*, arg2:*, arg3:*):*
{
var IMtype:*;
var Text:*;
var d:*;
var uid:*;
var loc1:*;
Text = arg1;
IMtype = arg2;
d = arg3;
if (!d)
{
d = main.ctabsmc.TabUser();
}
uid = xatlib.FindUser(d);
todo.Message.push({"n":0, "t":Text, "u":todo.w_userno, "s":2, "d":d});
if (IMtype == undefined)
{
IMtype = todo.Users[uid].Location;
}
if (IMtype != 128)
{
this.sending_lc3.send("a" + chat.fromxat, "onMsg", Text, todo.Users[uid].registered);
}
else
{
try
{
main.mcLoad.IMxatsendMsg(Text, todo.Users[uid].registered);
}
catch (e:Error)
{
};
}
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
return;
}
var sending_lc3:flash.net.LocalConnection;
var receiving_lc3:flash.net.LocalConnection;
var ImCount:*;
var ImHash:*;
var ImInfo:*;
public var ImInit:*=false;
}
}
// class kiss
package
{
import flash.display.*;
public dynamic class kiss extends flash.display.MovieClip
{
public function kiss()
{
super();
return;
}
}
}
// class library
package
{
import flash.display.*;
import flash.utils.*;
public dynamic class library extends flash.display.Sprite
{
public function library(arg1:String)
{
var loc1:*;
loc1 = null;
super();
this.type = arg1;
if (this.ww != 0)
{
this.xitem = this;
}
else
{
loc1 = flash.utils.getDefinitionByName(arg1) as Class;
this.xitem = new loc1();
this.ww = this.xitem.width;
this.hh = this.xitem.height;
addChild(this.xitem);
}
return;
}
public var type:String=null;
public var ww:*=0;
public var hh:*=0;
public var xitem:*;
}
}
// class loadbitmap
package
{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
import flash.utils.*;
public class loadbitmap extends flash.display.MovieClip
{
public function loadbitmap(arg1:*, arg2:*, arg3:*=80, arg4:*=80, arg5:*=null)
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = null;
super();
if (arg1)
{
arg1.addChild(this);
}
this.Url = arg2;
if (arg2.indexOf("GetStrip5") > 0)
{
loc1 = (loc1 = 0 + 1);
}
this.SetDom();
if (!this.dom1 || this.Url.toLowerCase().indexOf(".swf") >= 0)
{
this.DoHandler();
return;
}
this.m_width = arg3;
this.m_height = arg4;
var loc3:*;
var loc4:*;
ccnt++;
this.m_Handler = arg5;
if (cdic[this.Url])
{
loc2 = new flash.display.Bitmap(cdic[this.Url].bmp.bitmapData.clone());
cdic[this.Url].cnt = ccnt;
cdic[this.Url].bmp = loc2;
addChild(loc2);
this.DoHandler();
return;
}
this.LoadIt();
return;
}
private function LoadIt():*
{
var loc1:*;
loc1 = null;
if (todo.bMobile || doms_cd[this.dom1] === this.dom2)
{
this.m_data = new flash.utils.ByteArray();
this.m_read = 0;
loc1 = new flash.net.URLRequest(this.Url);
this.m_urlStream = new flash.net.URLStream();
this.m_urlStream.addEventListener(flash.events.Event.COMPLETE, this.streamComplete, false, 0, true);
this.m_urlStream.addEventListener(flash.events.ProgressEvent.PROGRESS, this.streamProgress, false, 0, true);
this.m_urlStream.addEventListener(flash.events.IOErrorEvent.IO_ERROR, this.binevent, false, 0, true);
this.m_urlStream.addEventListener(flash.events.SecurityErrorEvent.SECURITY_ERROR, this.secErr, false, 0, true);
this.m_urlStream.addEventListener(flash.events.HTTPStatusEvent.HTTP_STATUS, this.httpStatusHandler, false, 0, true);
this.m_urlStream.load(loc1);
}
else
{
this.secErr();
}
return;
}
private function DoHandler(arg1:*=null):*
{
if (TickDict[this])
{
delete TickDict[this];
}
if (this.m_Handler)
{
this.m_Handler();
}
this.m_Handler = null;
return;
}
private function streamProgress(arg1:flash.events.ProgressEvent):void
{
var loc1:*;
loc1 = undefined;
var loc2:*;
var loc3:*;
loc3 = ((loc2 = this).pass + 1);
loc2.pass = loc3;
if (this.m_urlStream.bytesAvailable >= 2)
{
loc1 = this.m_urlStream.bytesAvailable;
this.m_urlStream.readBytes(this.m_data, this.m_read, loc1);
this.m_read = this.m_read + loc1;
if (!(!(this.pass == 1) || this.m_data[0] == 255 && this.m_data[1] == 216 || this.m_data[0] == 71 && this.m_data[1] == 73 || this.m_data[0] == 137 && this.m_data[1] == 80))
{
this.m_urlStream.close();
this.m_urlStream = null;
this.DoHandler();
}
}
return;
}
private function streamComplete(arg1:flash.events.Event):void
{
this.m_urlStream.readBytes(this.m_data, this.m_read, this.m_urlStream.bytesAvailable);
this.m_urlStream.close();
this.m_urlStream = null;
this.m_Loader = new flash.display.Loader();
this.m_Loader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, this.loaderComplete, false, 0, true);
this.m_Loader.addEventListener(flash.events.IOErrorEvent.IO_ERROR, this.passevent, false, 0, true);
this.m_Loader.addEventListener(flash.events.SecurityErrorEvent.SECURITY_ERROR, this.passevent, false, 0, true);
this.m_Loader.loadBytes(this.m_data);
return;
}
private function loaderComplete(arg1:flash.events.Event):void
{
var bmp:flash.display.Bitmap;
var e:flash.events.Event;
var key:*;
var matrix:*;
var old:*;
var outputBitmapData:flash.display.BitmapData;
var smoothing:*;
var src:*;
var srcBitmapData:flash.display.BitmapData;
var srcRect:flash.geom.Rectangle;
var tt:*;
var zheight:*;
var zwidth:*;
var loc1:*;
outputBitmapData = null;
old = undefined;
key = undefined;
e = arg1;
tt = this;
src = this.m_Loader.contentLoaderInfo.content;
srcRect = flash.display.DisplayObject(src).getBounds(flash.display.DisplayObject(src));
if (srcRect.width == 1 && srcRect.height == 1)
{
this.httpStatusHandler({"status":503});
return;
}
srcBitmapData = new flash.display.BitmapData(srcRect.width, srcRect.height, true, 0);
srcBitmapData.draw(src);
this.m_Loader.unloadAndStop(true);
this.m_Loader = null;
if (this.m_height == 0)
{
this.bitmap = srcBitmapData;
this.DoHandler();
return;
}
zwidth = srcRect.width;
zheight = srcRect.height;
if (this.m_height == 80 && srcBitmapData.width / srcBitmapData.height >= 2)
{
if (zheight > 80)
{
zheight = 80;
}
zwidth = int(zheight * srcBitmapData.width / srcBitmapData.height);
}
else
{
if (zheight > this.m_height)
{
zheight = this.m_height;
}
if (zwidth > this.m_width)
{
zwidth = this.m_width;
}
}
matrix = new flash.geom.Matrix();
matrix.scale(zwidth / srcBitmapData.width, zheight / srcBitmapData.height);
try
{
outputBitmapData = new flash.display.BitmapData(zwidth, zheight, true, 0);
}
catch (e:Error)
{
DoHandler();
return;
}
smoothing = true;
if (zheight == srcRect.width && zwidth == srcRect.height)
{
matrix = null;
smoothing = false;
}
outputBitmapData.draw(srcBitmapData, matrix, null, null, null, smoothing);
if (src as flash.display.DisplayObject)
{
srcBitmapData.dispose();
}
bmp = new flash.display.Bitmap(outputBitmapData);
bmp.smoothing = true;
addChild(bmp);
if (this.m_height == 80 || this.m_height == 30 || this.m_height == 0)
{
cdic[this.Url] = new Object();
cdic[this.Url].cnt = ccnt;
cdic[this.Url].bmp = bmp;
old = ccnt - 50;
var loc2:*;
loc2 = 0;
var loc3:*;
loc3 = cdic;
for (key in loc3)
{
if (!(cdic[key].cnt < old))
{
continue;
}
delete cdic[key];
}
}
this.DoHandler();
return;
}
private function httpStatusHandler(arg1:*):void
{
if (arg1.status == 503)
{
TickDict[this] = 1;
if (this.Retry < 4)
{
var loc1:*;
var loc2:*;
loc2 = ((loc1 = this).Retry + 1);
loc1.Retry = loc2;
this.RetryCnt = this.Retry * 12;
return;
}
this.DoHandler();
}
return;
}
private function tick():*
{
var loc1:*;
var loc2:*;
loc2 = ((loc1 = this).RetryCnt - 1);
loc1.RetryCnt = loc2;
if (this.RetryCnt == 0)
{
this.LoadIt();
return;
}
return;
}
private function passevent(arg1:flash.events.Event):void
{
dispatchEvent(arg1);
return;
}
private function binevent(arg1:flash.events.Event):void
{
return;
}
private function SetDom():void
{
var loc1:*;
loc1 = this.Url.split("//");
if (!loc1[1])
{
return;
}
loc1 = loc1[1].split("/");
loc1 = loc1[0].toLowerCase();
loc1 = loc1.split(".");
var loc2:*;
loc2 = loc1.length;
this.dom1 = loc1[(loc2 - 2)];
this.dom2 = loc1[(loc2 - 1)];
return;
}
private function secErr(arg1:*=0):void
{
var loc1:*;
loc1 = undefined;
if (this.m_urlStream)
{
this.m_urlStream.close();
this.m_urlStream = null;
}
this.m_Loader = new flash.display.Loader();
if (doms[this.dom1] !== this.dom2)
{
loc1 = xatlib.iMux("GetImage5.php?W=" + this.m_width + "&H=" + this.m_height + "&U=" + this.Url);
}
else
{
loc1 = this.Url;
}
var loc2:*;
loc2 = new flash.net.URLRequest(loc1);
this.m_Loader.load(loc2);
addChild(this.m_Loader);
this.m_Loader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, this.DoHandler);
this.m_Loader.addEventListener(flash.events.IOErrorEvent.IO_ERROR, this.passevent);
return;
}
public static function MasterTick():*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = 0;
var loc3:*;
loc3 = TickDict;
for (loc1 in loc3)
{
loc1.tick();
}
return;
}
{
ccnt = 0;
cdic = new flash.utils.Dictionary();
TickDict = new flash.utils.Dictionary(true);
}
private static const doms:*={"imageshack":"us", "hizliresim":"com", "tinypic":"com", "imagehost":"org", "yollayap":"com"};
private static const doms_cd:*={"xat":"com", "xatech":"com", "photobucket":"com"};
private var m_urlStream:*;
private var m_Loader:*;
private var m_data:flash.utils.ByteArray;
private var m_read:*;
private var m_width:*;
private var m_height:*;
public var Url:*;
private var pass:*=0;
private var m_Handler:*;
private var dom1:String;
private var dom2:String;
public var bitmap:*;
private var Retry:int=0;
private var RetryCnt:int=0;
private static var ccnt:*=0;
private static var cdic:*;
public static var TickDict:*;
}
}
// class lock
package
{
import flash.display.*;
public dynamic class lock extends flash.display.MovieClip
{
public function lock()
{
super();
return;
}
public var back:flash.display.MovieClip;
}
}
// class mad
package
{
import flash.display.*;
public dynamic class mad extends flash.display.MovieClip
{
public function mad()
{
super();
return;
}
}
}
// class main
package
{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
public class main extends flash.display.Sprite
{
public function main()
{
this.IM = chat.IM;
this.OkPic = {"xat":1, "xatech":1, "photobucket":1, "tinypic":1};
this.emotes = new flash.display.Sprite();
super();
return;
}
function onLoadLoaded(arg1:flash.events.Event):*
{
mcLoad = flash.display.MovieClip(mcxLoad.contentLoaderInfo.content);
mcLoad.ping();
return;
}
function StartChat():*
{
var ic3:*;
var logo:*;
var mRequest:flash.net.URLRequest;
var t:*;
var t2:*;
var loc1:*;
t = undefined;
t2 = undefined;
mRequest = null;
fmts.color = 0;
fmts.align = "left";
fmts.font = "_sans";
fmts.size = 10;
fmts.bold = true;
back_layer = new xSprite();
addChild(back_layer);
flix_layer = new xSprite();
addChild(flix_layer);
wink_layer = new xSprite();
addChild(wink_layer);
hint = new hints();
addChild(equ);
todo.tpw = xatlib.NX(460);
todo.tph = xatlib.NY(320);
todo.tpx = xatlib.NX(10);
todo.tpy = xatlib.NY(10);
textPaneWidth = todo.tpw - 15 - 45;
if (todo.config["WEB"])
{
if (!todo.bThin)
{
flash.system.Security.allowDomain("xat.com");
flash.system.Security.allowDomain("www.xatech.com");
mcxLoad = new flash.display.Loader();
mRequest = new flash.net.URLRequest("http://xat.com/web_gear/flash/load2.swf?a3");
mcxLoad.load(mRequest);
mcxLoad.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, this.onLoadLoaded);
mcxLoad.visible = false;
addChild(mcxLoad);
}
}
this.cmessmc = new xmessage();
addChild(this.cmessmc);
ctabsmc = new ctabs();
addChild(ctabsmc);
if (!todo.bMobile)
{
mctextbackgroundmask = xatlib.AddBackground(this, todo.tpx + 1, todo.tpy + 1, todo.tpw - 2 - xatlib.NX(16), todo.tph - 2, xatlib.c_bl | xatlib.c_Mask | xatlib.c_Clip);
mctextbackground = new flash.display.Sprite();
mctextbackground.x = todo.tpx;
mctextbackground.y = todo.tpy;
mctextbackground.mask = mctextbackgroundmask;
addChild(mctextbackground);
}
utabsmc = new ctabs();
addChild(utabsmc);
upw = xatlib.NX(150);
uph = xatlib.NY(320);
upx = xatlib.NX(480);
upy = xatlib.NY(10);
if (!todo.bMobile)
{
mcuserbackgroundmask = xatlib.AddBackground(this, main.upx + 1, main.upy + 1, main.upw - 2 - xatlib.NX(16), main.uph - 2, xatlib.c_Mask | xatlib.c_Clip);
mcuserbackground = new flash.display.Sprite();
mcuserbackground.x = main.upx;
mcuserbackground.y = main.upy;
mcuserbackground.mask = mcuserbackgroundmask;
addChild(mcuserbackground);
mscrollmc = new xScroll(this, todo.tpx + todo.tpw - xatlib.NX(16), todo.tpy, xatlib.NX(16), todo.tph, xatlib.NX(16), xatlib.NX(32), 100, 10 * 100, 10 * 100, this.onMessageScrollChange);
uscrollmc = new xScroll(this, upx + upw - xatlib.NX(16), upy, xatlib.NX(16), uph, xatlib.NX(16), xatlib.NX(32), 20, 10 * 100, 0 * 100, onUserScrollChange);
}
lockmc = new lock();
addChild(lockmc);
lockmc.x = xatlib.NX(17);
lockmc.y = xatlib.NY(407);
lockmc.visible = false;
lockmc.alpha = 0.75;
lockmc.width = int(lockmc.width * xatlib.NY(60) / lockmc.height);
lockmc.height = xatlib.NY(60);
t = xatlib.NX(425);
this.textfield2background = xatlib.AddBackground(this, xatlib.NX(10), xatlib.NY(400), t, xatlib.NY(70));
fmt = new flash.text.TextFormat();
fmt.align = "left";
fmt.bold = true;
fmt.color = 0;
fmt.font = "_sans";
fmt.size = 14;
textfield2 = new flash.text.TextField();
textfield2.name = "textfield2";
textfield2.x = xatlib.NX(10 + 4);
textfield2.y = xatlib.NY(400);
textfield2.width = xatlib.NX(425 - 4);
textfield2.height = xatlib.NY(70);
textfield2.type = "input";
textfield2.multiline = false != "IPHONE" ? true : false;
textfield2.wordWrap = true;
textfield2.defaultTextFormat = fmt;
textfield2.addEventListener(flash.events.Event.CHANGE, this.textfield2onChanged);
addChild(textfield2);
mcscroller = new xSprite();
mcscrollertext = new flash.text.TextField();
mcscrollertext.x = xatlib.NX(435);
mcscrollertext.y = xatlib.NY(456);
mcscrollertext.width = 10000;
mcscrollertext.height = 20;
SetScroller("");
mcscroller.addChild(mcscrollertext);
mcscrollermask = xatlib.AddBackground(mcscroller, xatlib.NX(10), xatlib.NY(400), t, xatlib.NY(80), xatlib.c_bl);
mcscroller.mask = mcscrollermask;
addChild(mcscroller);
t = xatlib.NX(24);
t2 = xatlib.NX(446);
retmc = new xBut(this, t2, xatlib.NY(400), t, xatlib.NY(70), "");
retmcBut = new library("returnicon");
retmcBut.x = (t - 16) / 2;
retmcBut.y = (xatlib.NY(70) - 16) / 2;
if (todo.bThin)
{
retmcBut.Col = todo.ButColW;
}
else
{
xatlib.McSetRGB(retmcBut.xitem.back, todo.ButColW);
}
retmc.SetRoll(xconst.ST(4));
retmc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.retmc_onPress);
retmc.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.RollOutHintOff);
retmc.addChild(retmcBut);
mcgetachat = new xBut(this, xatlib.NX(480), xatlib.NY(400), xatlib.NX(150), xatlib.NY(30), todo.config["uselogindialog"] ? "Login" : xconst.ST(5), this.GetAChatBox_onRelease);
mcgetachat.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.GetAChatBox_onRollOver);
mcgetachat.SetRoll(this.GetAChatBox_onRollOver);
ButtonLoginMc = new xBut(this, xatlib.NX(480), xatlib.NY(440), xatlib.NX(150), xatlib.NY(30), xconst.ST(19));
ButtonLoginMc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.ButtonLoginMc_onRelease);
ButtonLoginMc.SetRoll(this.ButtonLoginMc_onRollOver);
debugtext.x = xatlib.NX(10);
debugtext.y = xatlib.NY(456) - 16;
debugtext.height = 20;
debugtext.width = xatlib.NX(425);
debugtext.defaultTextFormat = fmts;
debugtext.setTextFormat(fmts);
debugtext.text = "";
debugtext.visible = false;
addChild(debugtext);
chat_layer = new flash.display.MovieClip();
addChild(chat_layer);
this.MkGpBut();
ic3 = new library("HelpIcon");
ic3.xitem.xinfo.visible = false;
ic3.x = xatlib.NX(524 - 4);
ic3.y = xatlib.NY(395 - 32 + 4);
var loc2:*;
ic3.scaleY = loc2 = GrpIcscale * 1.1;
ic3.scaleX = loc2;
ic3.buttonMode = true;
ic3.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, function ():*
{
openDialog(5, 0);
return;
})
addChild(ic3);
main.hint.AddEasyHint(ic3, xconst.ST(7));
main.logo = loc2 = new library("xatsat");
logo = loc2;
logo.scaleY = loc2 = GrpIcscale;
logo.scaleX = loc2;
logo.x = xatlib.NX(640 - 10) - logo.width;
logo.y = xatlib.NY(395 - 32 + 4);
logo.buttonMode = true;
logo.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.onxatLogo);
logo.visible = false;
addChild(logo);
main.hint.AddEasyHint(logo, "http://xat.com", {"Pos":0});
addChild(this.emotes);
ctabsmc.CreateTabs();
utabsmc.CreateVisitorsTabs();
dialog_layer = new flash.display.MovieClip();
addChild(dialog_layer);
dialogs = new flash.display.MovieClip();
addChild(dialogs);
box_layer = new flash.display.MovieClip();
addChild(box_layer);
addChild(hint);
puzzle_layer = new flash.display.MovieClip();
addChild(puzzle_layer);
kiss_layer = new flash.display.MovieClip();
addChild(kiss_layer);
return;
}
public function MkGpBut():*
{
var loc5:*;
loc5 = undefined;
var loc1:*;
loc1 = new Array(5, 0, 49152, 0, 2, 5592575, 10, 2, 16711680, 5, 4, 16750848);
if (todo.FlagBits & xconst.f_Live)
{
loc1 = new 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);
}
if (GrpIc)
{
chat_layer.removeChild(GrpIc);
}
GrpIc = new flash.display.MovieClip();
var loc2:*;
loc2 = xatlib.NX(24) < xatlib.NY(24) ? xatlib.NX(24) : xatlib.NY(24);
var loc3:*;
loc3 = 0;
while (loc3 < loc1.length)
{
(loc5 = new chatter2()).x = loc1[loc3];
loc5.y = loc1[(loc3 + 1)];
loc5.ColP1 = loc1[(loc3 + 2)];
loc5.Size = loc2;
loc5.Go();
GrpIc.addChild(loc5);
loc3 = loc3 + 3;
}
GrpIcscale = loc2 / 20;
GrpIc.x = xatlib.NX(484);
GrpIc.y = xatlib.NY(395 - 32 + 4);
GrpIc.buttonMode = true;
GrpIc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.onGrpIcMouseDown);
chat_layer.addChild(GrpIc);
var loc4:*;
loc4 = xconst.ST(6);
if ((todo.w_owner || todo.w_mainowner) && todo.FlagBits & xconst.f_Live)
{
loc4 = xconst.ST(216);
}
main.hint.AddEasyHint(GrpIc, loc4);
return;
}
function RollOutHintOff(arg1:flash.events.MouseEvent):*
{
hint.HintOff();
return;
}
public function retmc_onPress(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = 0;
while (loc1 < textfield2.length)
{
if (textfield2.text.charAt(loc1) == ">")
{
textfield2.text = textfield2.text.substr(0, loc1) + "˃" + textfield2.text.substr(loc1 + 1);
}
loc1 = (loc1 + 1);
}
this.PostMessage(textfield2.text);
textfield2.text = "";
return;
}
function onSmilieMouseDown(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = undefined;
if (arg1.currentTarget.cs == undefined)
{
stage.focus = textfield2;
textfield2.appendText(xconst.smArray[arg1.currentTarget.s]);
textfield2.setSelection(textfield2.text.length, textfield2.text.length);
}
else
{
var loc2:*;
loc2 = arg1.currentTarget.cs;
switch (loc2)
{
case "GetX":
{
xatlib.Register_onRelease(1);
break;
}
case "News":
{
todo.w_news = todo.News;
xatlib.MainSolWrite("w_news", todo.News);
xatlib.GotoWeb(xconst.usedomain + "/news");
break;
}
case "GetStuff":
{
main.hint.HintOff();
todo.SmilieUpdate = 0;
loc1 = new Object();
loc1.Marry = 0;
openDialog(3, loc1);
break;
}
case "more":
{
mcLoad = flash.display.MovieClip(mcxLoad.contentLoaderInfo.content);
mcLoad.OpenSmilies();
main.hint.HintOff();
todo.SmilieUpdate = 0;
if (global.xc & 2048)
{
mcLoad.OpenSmilies();
}
else
{
xatlib.GotoXat("5");
}
break;
}
default:
{
stage.focus = textfield2;
textfield2.appendText(arg1.currentTarget.cs);
textfield2.setSelection(textfield2.text.length, textfield2.text.length);
break;
}
}
}
return;
}
function onSmilieMouseRollOut(arg1:flash.events.MouseEvent):*
{
hint.HintOff();
todo.SmilieUpdate = 1000;
return;
}
function onSmilieMouseRollOver(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = undefined;
if (arg1.currentTarget.cs == undefined)
{
hint.Hint(arg1.currentTarget.x, arg1.currentTarget.y, xconst.smArray[arg1.currentTarget.t] + " " + xconst.smArray[arg1.currentTarget.s], true);
hint.Hint(em[arg1.currentTarget.n].x, em[arg1.currentTarget.n].y, xconst.smArray[arg1.currentTarget.t] + " " + xconst.smArray[arg1.currentTarget.s], true);
todo.SmilieUpdate = -1;
}
else
{
var loc2:*;
loc2 = arg1.currentTarget.cs;
switch (loc2)
{
case "GetStuff":
{
hint.Hint(em[arg1.currentTarget.n].x, em[arg1.currentTarget.n].y, xconst.ST(139), true);
todo.SmilieUpdate = -1;
break;
}
case "more":
{
hint.Hint(em[arg1.currentTarget.n].x, em[arg1.currentTarget.n].y, xconst.ST(9), true);
todo.SmilieUpdate = -1;
break;
}
case "GetX":
{
hint.Hint(em[arg1.currentTarget.n].x, em[arg1.currentTarget.n].y, xconst.ST(207), true);
todo.SmilieUpdate = -1;
break;
}
default:
{
hint.Hint(em[arg1.currentTarget.n].x, em[arg1.currentTarget.n].y, arg1.currentTarget.cs, true);
todo.SmilieUpdate = -1;
break;
}
}
}
if (xconst.f_NoSmilies & todo.FlagBits)
{
loc1 = 1;
while (loc1 < todo.emmax)
{
if (main.em[loc1] != null)
{
main.em[loc1].visible = true;
}
loc1 = (loc1 + 1);
}
}
return;
}
function textfield2onChanged(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = undefined;
if (textfield2.text != "\r")
{
if (textfield2.text.indexOf("\r") == -1)
{
if (todo.Typing > 0 && todo.Away <= 1)
{
if (todo.Typing == 1)
{
todo.TypingID = ctabsmc.TabIsPrivate() ? ctabsmc.TabUser() : 0;
if (!todo.TypingID)
{
todo.TypingID = todo.PrivateMessage;
}
network.NetworkSendMsg(todo.w_userno, "/RTypeOn", 0, todo.TypingID);
SetTyping(todo.w_userno, true);
}
todo.Typing = 10;
}
}
else
{
loc1 = 0;
while (loc1 < textfield2.length)
{
if (textfield2.text.charAt(loc1) == ">")
{
textfield2.text = textfield2.text.substr(0, loc1) + "˃" + textfield2.text.substr(loc1 + 1);
}
loc1 = (loc1 + 1);
}
this.PostMessage(textfield2.text);
textfield2.text = "";
}
}
else
{
textfield2.text = "";
todo.PrivateMessage = 0;
lockmc.visible = false;
}
if (todo.Away)
{
chat.NotAway();
}
return;
}
function onGrpIcMouseDown(arg1:flash.events.MouseEvent):*
{
if ((todo.w_owner || todo.w_mainowner) && todo.FlagBits & xconst.f_Live)
{
if (global.xc & 2048)
{
mcLoad.OpenByN(40000);
}
else
{
xatlib.GotoXat("40000");
}
return;
}
var loc1:*;
loc1 = xconst.usedomain + "/groups";
xatlib.UrlPopup(xconst.ST(8), loc1);
return;
}
public function onxatLogo(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = "http://xat.com";
xatlib.UrlPopup(xconst.ST(8), loc1);
return;
}
public function PostMessage(arg1:String):*
{
var loc3:*;
loc3 = undefined;
if (ctabsmc.TabIsPrivate())
{
todo.PrivateChat = ctabsmc.TabUser();
loc3 = xatlib.FindUser(todo.w_userno);
if (todo.HasPower(loc3, 75))
{
if (arg1.indexOf("(bump") != -1)
{
var loc4:*;
todo.BumpSound = loc4 = "laserfire3";
todo.CustomSound = loc4;
todo.DoAudieSnd = true;
}
}
}
else
{
todo.PrivateChat = 0;
}
if (todo.PrivateMessage != 0)
{
lockmc.visible = false;
}
if (arg1.length == 0)
{
return;
}
arg1 = xatlib.CleanMessage(arg1);
var loc1:*;
loc1 = ctabsmc.TabSelected();
var loc2:*;
loc2 = xatlib.xInt(ctabsmc.tabs[loc1].IMtype);
if (loc2 >= 128)
{
chat.IM.ImPostMessage(arg1, loc2);
return;
}
arg1 = arg1.substr(0, 256);
if (todo.w_userrev == undefined)
{
todo.w_userrev = 0;
if (todo.lb == "t")
{
todo.lb = "n";
todo.DoUpdate = true;
network.NetworkClose();
}
}
if (todo.lb == "n")
{
logoutbutonPress();
}
todo.ResetSmilies = true;
todo.MessageToProcess = arg1;
if (todo.Typing > 1)
{
todo.Typing = 2;
}
return;
}
function onMusicPlayerLoaded(arg1:flash.events.Event):*
{
mcMusicPlayer = flash.display.MovieClip(mcxMusicPlayer.contentLoaderInfo.content);
if (todo.w_sound & 1)
{
if (musiccode != null)
{
mcMusicPlayer.playmusic(musiccode, todo.w_Vol[1]);
}
}
return;
}
function ButtonLoginMc_onRelease(arg1:flash.events.MouseEvent):*
{
todo.LoginPressed = true;
logoutbutonPress();
return;
}
function ButtonLoginMc_onRollOver(arg1:flash.events.MouseEvent):*
{
if (todo.lb != "n")
{
hint.Hint(ButtonLoginMc.But.x, ButtonLoginMc.But.y, xconst.ST(27), true, 0, un, 0);
}
else
{
hint.Hint(ButtonLoginMc.But.x, ButtonLoginMc.But.y, xconst.ST(26), true, 0, un, 0);
}
return;
}
function GetAChatBox_onRollOver(arg1:flash.events.MouseEvent):*
{
if (todo.w_mainowner)
{
hint.Hint(mcgetachat.But.x, mcgetachat.But.y, xconst.ST(28), true, 0, un, 100);
}
else
{
if (!mcgetachat.fb)
{
hint.Hint(mcgetachat.But.x, mcgetachat.But.y, xconst.ST(29), true, 0, un, 100);
}
}
return;
}
function GetAChatBox_onRelease(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = undefined;
main.hint.HintOff();
if (main.mcgetachat.fb)
{
xatlib.UrlPopup("Login", xconst.chatdomain + "register.php?fb");
return;
}
if (todo.w_useroom != todo.w_room)
{
this.Home_onRelease();
}
if (!todo.w_mainowner || global.xb || xatlib.xInt(todo.pass) == 0 && xatlib.xInt(todo.w_dt) == 0)
{
openDialog(4, 0);
}
else
{
if (xatlib.xInt(todo.pass) != 0)
{
openDialog(4, 1);
}
else
{
loc1 = xconst.chatdomain + "../chat.php?id=" + todo.w_room + "&u=" + todo.w_userno + "&k2=" + todo.w_k2 + "&dt=" + todo.w_dt;
xatlib.UrlPopup(xconst.ST(50), loc1);
}
}
return;
}
private function GotBackground(arg1:*=null):*
{
if (arg1 == null)
{
arg1 = back_no;
}
if (backs[arg1])
{
back_layer.removeChild(backs[arg1]);
}
backs[arg1] = null;
arg1 = arg1 ^ 1;
if (backs[arg1])
{
backs[arg1].width = todo.StageWidth;
backs[arg1].height = todo.StageHeight;
}
return;
}
public function SafeBack(arg1:String):*
{
var loc1:*;
loc1 = arg1.toLowerCase().split("/");
if (!loc1[2])
{
return false;
}
loc1 = loc1[2].split(".");
var loc2:*;
loc2 = loc1.length;
if (loc1[(loc2 - 1)] !== "com")
{
return false;
}
return this.OkPic[loc1[(loc2 - 2)]];
}
private function ChkVotes(arg1:*, arg2:*):*
{
arg1 = xatlib.xInt(arg1);
arg2 = xatlib.xInt(arg2);
if (arg1 <= 1)
{
return "_1";
}
var loc1:*;
loc1 = 0;
while (arg2 > 0)
{
++loc1;
arg2 = arg2 >> 1;
}
if (arg1 <= loc1)
{
loc1 = arg1;
}
return "_" + loc1;
}
public function UpdateBackground(arg1:*):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
if (flix_mc)
{
flix_layer.removeChild(flix_mc);
flix_mc = null;
}
if (!todo.bMobile)
{
var loc4:*;
loc4 = 0;
var loc5:*;
loc5 = flixs;
for (loc1 in loc5)
{
loc2 = "g" + flixs[loc1];
if (!todo.gconfig[loc2])
{
continue;
}
flix_opts = todo.gconfig[loc2];
if (flix_opts.bk != 0)
{
arg1 = todo.imagedomain + "flix/" + loc2 + this.ChkVotes(flix_opts.bk, 32) + ".jpg";
}
if (!(todo.Macros["flix"] == "off") && !(flix_opts.ef == 0))
{
flix_mc = new xSprite();
flix_layer.addChild(flix_mc);
if (flix_opts.col)
{
flix_opts.Cols = flix_opts.col.split("#");
loc3 = 0;
while (loc3 < flix_opts.Cols.length)
{
flix_opts.Cols[loc3] = xatlib.DecodeColor(flix_opts.Cols[loc3]);
loc3 = (loc3 + 1);
}
}
loc3 = new xSprite();
flix_mc.addChild(loc3);
flix_opts.WW = todo.StageWidth;
flix_opts.HH = todo.StageHeight;
xatlib.LoadMovie(flix_mc, xatlib.SmilieUrl(loc2 + this.ChkVotes(flix_opts.ef, flix_opts.v), "flix"), flix_Loaded);
}
break;
}
}
if (todo.w_useroom == todo.w_room && global.xc & 1024)
{
arg1 = "";
}
if (network.Bootp && !this.SafeBack(arg1))
{
arg1 = todo.imagedomain + "boot.jpg";
}
if (arg1 == undefined || arg1 == "")
{
return;
}
if (xatlib.xInt(arg1) > 0)
{
arg1 = todo.chatdomain + "../background/xat" + xatlib.xInt(arg1) + ".jpg";
}
if (arg1.substr(0, 7) != "http://")
{
arg1 = "";
}
if (arg1 == "")
{
this.GotBackground(0);
this.GotBackground(1);
return;
}
backs[back_no] = new loadbitmap(back_layer, arg1, todo.StageWidth, todo.StageHeight, this.GotBackground);
back_no = back_no ^ 1;
return;
}
public function Home_onRelease(arg1:*):*
{
var loc1:*;
loc1 = todo.w_room;
if (!(todo.w_useroom == loc1) || todo.lb == "n")
{
utabsmc.SetVisitorsTab();
todo.w_useroom = todo.w_room;
xmessage.ClearLists(true);
todo.lb = "n";
todo.DoUpdate = true;
network.NetworkClose();
logoutbutonPress();
todo.ScrollDown = true;
todo.LastScrollTime = undefined;
hint.HintOff();
}
else
{
todo.DoBuildUserListScrollUp = true;
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
todo.LastScrollTime = undefined;
}
if (ctabsmc.tabs[0].Main)
{
this.GoGroup();
}
ctabsmc.UpdateTabs(0);
ctabsmc.ColorTab(0, 16777215);
xmessage.OpenGifts(todo.w_userno, 2);
return;
}
public function Lobby_onRelease(arg1:*):*
{
var loc1:*;
loc1 = NaN;
loc1 = todo.group;
if (!(todo.w_useroom == loc1) || todo.lb == "n")
{
utabsmc.SetVisitorsTab();
todo.w_useroom = loc1;
var loc2:*;
network.w_redirectdom = loc2 = undefined;
network.w_redirectport = loc2;
xmessage.ClearLists(true);
xatlib.ReLogin();
todo.ScrollDown = true;
todo.LastScrollTime = undefined;
hint.HintOff();
}
else
{
if (ctabsmc.tabs[1].Main)
{
todo.DoBuildUserListScrollUp = true;
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
todo.LastScrollTime = undefined;
this.GoGroup();
}
else
{
todo.DoBuildUserListScrollUp = true;
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
todo.LastScrollTime = undefined;
}
}
ctabsmc.UpdateTabs(1);
ctabsmc.ColorTab(1, 16777215);
return;
}
public function GoGroup():*
{
if (global.xc & 2048 && todo.w_useroom == todo.w_room)
{
return;
}
var loc1:*;
loc1 = xatlib.GroupUrl();
xatlib.UrlPopup(xconst.ST(13, loc1), loc1);
return;
}
public function OnUsers(arg1:*):*
{
utabsmc.SetVisitorsTab();
todo.DoBuildUserListScrollUp = true;
var loc1:*;
loc1 = todo.Users.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (todo.Users[loc2].friend)
{
xmessage.DeleteOneUserMc(loc2);
}
loc2 = (loc2 + 1);
}
return;
}
public function OnFriends(arg1:*):*
{
network.GetFriendStatus();
utabsmc.SetVisitorsTab(1);
todo.DoBuildUserListScrollUp = true;
return;
}
public function OnTickle(arg1:*):*
{
network.GetFriendStatus();
utabsmc.SetVisitorsTab(2);
todo.DoBuildUserListScrollUp = true;
return;
}
function onMessageScrollChange():*
{
todo.DoUpdateMessages = true;
return;
}
public function tick2(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
if (main.dialog_layer.numChildren > 0)
{
touchtimeout = 6;
}
else
{
if (touchtimeout > 0)
{
var loc6:*;
var loc7:*;
touchtimeout--;
}
}
if (!(todo.Macros == undefined) && todo.Macros["rapid"] && todo.HasPowerA(todo.w_Powers, 91, todo.w_Mask))
{
if (moveable == undefined)
{
moveable = new xSprite();
moveable.mouseEnabled = false;
moveable.ta = new flash.text.TextField();
moveable.ta.mouseEnabled = false;
moveable.ta.selectable = false;
moveable.ta.cacheAsBitmap = true;
moveable.addChild(moveable.ta);
addChild(moveable);
}
if (chat.isKeyDown(flash.ui.Keyboard.CONTROL))
{
if (moveable.visible != true)
{
moveable.visible = true;
}
if (moveable.x != mouseX + 4)
{
moveable.x = mouseX + 4;
}
if (moveable.y != mouseY + 18)
{
moveable.y = mouseY + 18;
}
if (moveable.ta.text != todo.Macros["rapid"])
{
moveable.ta.text = todo.Macros["rapid"];
fmts.color = 0;
moveable.ta.setTextFormat(fmts);
}
}
else
{
moveable.visible = false;
}
}
if (nudge > 0)
{
loc1 = nudge;
loc2 = Math.round(Math.random() * loc1 - loc1 / 2);
loc3 = Math.round(Math.random() * loc1 - loc1 / 2);
x = loc2;
y = loc3;
back_layer.x = -loc2;
back_layer.y = -loc3;
nudge--;
if (nudge == 0)
{
back_layer.y = loc6 = 0;
back_layer.x = loc6 = loc6;
y = loc6 = loc6;
x = loc6;
}
}
if (todo.tick % 12 == 0)
{
xAvatar.oatc = xAvatar.atc;
}
if (todo.tick % 10 == 0)
{
loc4 = 0;
while (loc4 < main.dialog_layer.numChildren)
{
if ((loc5 = main.dialog_layer.getChildAt(loc4)) as DialogEdit)
{
loc5.ImagePaneTick();
}
loc4 = (loc4 + 1);
}
}
return;
}
public function CreateSoundIcon(arg1:*, arg2:*):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
if (RadioSound[arg2])
{
chat_layer.removeChild(RadioSound[arg2]);
}
RadioSound[arg2] = null;
if (arg2 == 2 && todo.useRadio == undefined)
{
return;
}
var loc7:*;
RadioSound[arg2] = loc7 = xatlib.AttachMovie(chat_layer, arg1);
loc2 = loc7 = loc7;
loc1 = loc7;
if (arg2 == 1)
{
SndIcnX = 0;
mcsnd = loc1;
loc1.xitem.SoundIsOff.visible = (todo.w_sound & arg2) == 0;
if (!todo.bThin)
{
loc1.xitem.gotoAndStop(1);
}
}
loc2.x = xatlib.NX(446) + SndIcnX;
loc2.y = xatlib.NY(395 - 32 + 4);
var loc3:*;
loc3 = xatlib.NX(24) < xatlib.NY(24) ? xatlib.SX() : xatlib.SY();
loc1.scaleX = loc7 = loc3;
loc1.scaleY = loc7;
SndIcnX = SndIcnX - int(loc1.scaleX * 32);
loc1.bit = arg2;
if (arg2 == 2 && em[(todo.emmax - 1)])
{
this.emotes.removeChild(em[(todo.emmax - 1)]);
em[(todo.emmax - 1)] = null;
loc1.xitem.SoundIsOff.visible = (todo.w_sound & arg2) == 0;
}
if (!todo.bMobile)
{
loc1.vol = loc7 = new flash.display.MovieClip();
loc4 = loc7;
loc2.addChild(loc4);
loc4.bit = arg2;
loc4.y = -118;
loc4.x = 8;
loc4.Bk = new xBut(loc4, -8, -4, 22, 118, "", undefined, xBut.b_Panel | xBut.b_Border | xBut.b_NoPress, 5);
loc4.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.VolRollOver);
loc4.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.VolRollOut);
loc5 = new flash.display.MovieClip();
loc4.addChild(loc5);
loc5.y = 5;
loc5.addChild(xatlib.ButtonCurve2(2, 4, 100, 0, 1, todo.ButCol, 1, todo.ButColW));
loc4.Vol = new xBut(loc4, -5, 100 - todo.w_Vol[arg2], 15, 10, "", undefined, xBut.b_NoPress, 5);
loc4.visible = false;
(loc6 = loc4.Vol.But).addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.VolPress);
loc6.addEventListener(flash.events.MouseEvent.MOUSE_UP, this.VolRelease);
}
loc1.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.ButPress);
loc1.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.ButRollOver);
loc1.addEventListener(flash.events.MouseEvent.ROLL_OUT, main.hint.HintOff);
return;
}
function VolRollOver(arg1:flash.events.MouseEvent):*
{
arg1.currentTarget.parent.Count = 1200000000;
return;
}
function VolRollOut(arg1:flash.events.MouseEvent):*
{
arg1.currentTarget.parent.Count = 12;
return;
}
function VolPress(arg1:flash.events.MouseEvent):*
{
arg1.currentTarget.startDrag(true, new flash.geom.Rectangle(-5, 2, 0, 100));
stage.addEventListener(flash.events.MouseEvent.MOUSE_UP, this.VolRelease);
stage.addEventListener(flash.events.MouseEvent.MOUSE_MOVE, this.VolDrag);
Dragee = arg1.currentTarget;
return;
}
function VolDrag(arg1:flash.events.MouseEvent):*
{
var loc2:*;
todo.w_Vol[Dragee.parent.bit] = loc2 = 102 - Dragee.y;
var loc1:*;
loc1 = loc2;
Dragee.parent.Count = 12;
loc1 = loc1 > 2;
if (!((todo.w_sound & Dragee.parent.bit) == 0) != loc1)
{
this.ButPress(null, Dragee);
}
if (Dragee.parent.bit != 1)
{
tickcode.DoRadio(true);
}
return;
}
function VolRelease(arg1:flash.events.MouseEvent):*
{
Dragee.stopDrag();
stage.removeEventListener(flash.events.MouseEvent.MOUSE_UP, this.VolRelease);
stage.removeEventListener(flash.events.MouseEvent.MOUSE_MOVE, this.VolDrag);
Dragee.parent.visible = false;
xatlib.MainSolWrite("w_Vol" + Dragee.parent.bit, todo.w_Vol[Dragee.parent.bit]);
if (Dragee.parent.bit == 1)
{
if (todo.systemMessages.indexOf("v") != -1)
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 12, "v", todo.w_sound & 1 ? todo.w_Vol[1] : 0);
}
}
}
return;
}
function ButRollOver(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = undefined;
if (arg1.currentTarget.bit == 1)
{
if (todo.w_sound & arg1.currentTarget.bit)
{
loc1 = xconst.ST(11);
}
else
{
loc1 = xconst.ST(10);
}
}
if (arg1.currentTarget.bit == 2)
{
if (todo.w_sound & arg1.currentTarget.bit)
{
loc1 = xconst.ST(179);
}
else
{
loc1 = xconst.ST(180);
}
}
arg1.currentTarget.vol.visible = true;
arg1.currentTarget.Count = 12;
arg1.currentTarget.addEventListener(flash.events.Event.ENTER_FRAME, this.ButRollTick);
main.hint.Hint(xatlib.NX(0), -xatlib.NY(24), loc1, true, 1, un, 0, arg1.currentTarget);
return;
}
function ButRollTick(arg1:flash.events.Event):*
{
var loc1:*;
var loc2:*;
loc2 = ((loc1 = arg1.currentTarget).Count - 1);
loc1.Count = loc2;
if (arg1.currentTarget.Count < 0)
{
arg1.currentTarget.vol.visible = false;
arg1.currentTarget.removeEventListener(flash.events.Event.ENTER_FRAME, this.ButRollTick);
}
return;
}
function ButPress(arg1:*, arg2:*=null):*
{
var loc1:*;
loc1 = undefined;
if (arg1)
{
loc1 = arg1.currentTarget;
}
else
{
loc1 = arg2.parent.parent;
}
if (arg1 && arg1.stageY < loc1.y)
{
return;
}
if (loc1.bit & 3)
{
if (todo.w_sound & loc1.bit)
{
todo.w_sound = todo.w_sound & !loc1.bit;
loc1.xitem.SoundIsOff.visible = true;
}
else
{
todo.w_sound = todo.w_sound | loc1.bit;
loc1.xitem.SoundIsOff.visible = false;
}
tickcode.SetRadio();
xatlib.MainSolWrite("w_sound", todo.w_sound);
if (loc1.bit == 1)
{
if (todo.systemMessages.indexOf("v") != -1)
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 12, "v", todo.w_sound & 1 ? todo.w_Vol[1] : 0);
}
}
}
}
return;
}
public function onMsg():*
{
var uid:*;
var loc1:*;
uid = undefined;
if (ProfileUserNo != 0)
{
uid = xatlib.FindUser(ProfileUserNo);
if (uid >= 0)
{
sending_profile.send("sprofile", "onMsg", todo.Users[uid], xatlib.GetUserStatus(uid));
}
}
try
{
if (receiving_profile != null)
{
receiving_profile.close();
}
if (sending_profile != null)
{
sending_profile.close();
}
}
catch (error:Error)
{
};
ProfileUserNo = 0;
receiving_profile = null;
sending_profile = null;
return;
}
public function GotoProfile(arg1:*):*
{
var Userno:*;
var uid:*;
var url:*;
var loc1:*;
url = undefined;
uid = undefined;
Userno = arg1;
if (todo.config["WEB"])
{
try
{
if (receiving_profile != null)
{
receiving_profile.close();
}
if (sending_profile != null)
{
sending_profile.close();
}
}
catch (error:Error)
{
};
ProfileUserNo = Userno;
receiving_profile = new flash.net.LocalConnection();
sending_profile = new flash.net.LocalConnection();
receiving_profile.client = this;
try
{
receiving_profile.connect("profile");
}
catch (error:ArgumentError)
{
};
url = "http://xatspace.com/";
uid = xatlib.FindUser(Userno);
if (todo.Users[uid].registered == undefined)
{
url = url + "unregistered";
}
else
{
url = url + todo.Users[uid].registered;
}
xatlib.getURL(url, "_blank");
}
return;
}
public function UpdateEmotes():*
{
var loc7:*;
loc7 = undefined;
var loc11:*;
loc11 = undefined;
var loc12:*;
loc12 = false;
var loc13:*;
loc13 = false;
var loc14:*;
loc14 = undefined;
var loc15:*;
loc15 = undefined;
while (this.emotes.numChildren)
{
this.emotes.removeChildAt(0);
}
em.length = 0;
var loc1:*;
loc1 = xatlib.NY(30) & 1048574;
var loc2:*;
loc2 = xatlib.NX(30) & 1048574;
if (loc2 < loc1)
{
loc1 = loc2;
}
var loc3:*;
loc3 = xatlib.NX(10);
var loc4:*;
loc4 = xatlib.NY(395) - loc1;
var loc5:*;
loc5 = xatlib.NX(440);
var loc6:*;
loc6 = loc1 + 3;
todo.emmax = Math.floor((loc5 + 3) / loc6);
if (todo.emmax > 16)
{
todo.emmax = 16;
}
var loc8:*;
loc8 = 0;
var loc9:*;
loc9 = todo.gconfig["g74"] == null ? new Array() : todo.gconfig["g74"].split(",");
var loc10:*;
loc10 = new Array();
if (!todo.config["nomore"])
{
loc10.push("more");
}
if (!todo.config["nokiss"])
{
loc10.push("GetStuff");
}
if (!todo.config["nobuy"])
{
loc10.push("GetX");
}
loc7 = 0;
while (loc7 < todo.emmax)
{
while (!(xconst.smArray[loc8] < 0))
{
loc8 = (loc8 + 1);
}
loc11 = xconst.smArray[(loc8 - 1)];
if (loc7 == todo.emmax - loc10.length)
{
loc11 = loc10.pop();
}
loc13 = (loc12 = loc11 == "GetX" || loc11 == "News" || loc11 == "GetStuff" || loc11 == "more") || loc7 >= loc9.length;
loc14 = loc9[loc7];
if (!loc13)
{
loc13 = !xatlib.SmOk(loc14);
}
if (loc13)
{
em[loc7] = new library(loc11);
this.emotes.addChild(em[loc7]);
var loc16:*;
em[loc7].scaleY = loc16 = loc1 / 20;
em[loc7].scaleX = loc16;
em[loc7].visible = false;
}
else
{
em[loc7] = new flash.display.MovieClip();
em[loc7].SF = 2;
em[loc7].SA = "(" + loc14 + ")";
em[loc7].mc = new smiley(em[loc7], loc14, loc1);
em[loc7].cs = em[loc7].SA;
this.emotes.addChild(em[loc7]);
em[loc7].visible = false;
}
em[loc7].startx = loc16 = loc3 + loc7 * loc6;
em[loc7].x = loc16;
em[loc7].starty = loc16 = loc4;
em[loc7].y = loc16;
em[loc7].starts = em[loc7].scaleX;
em[loc7].buttonMode = true;
em[loc7].n = loc7;
if (loc12)
{
em[loc7].cs = loc11;
}
else
{
em[loc7].s = loc8 - 2;
em[loc7].t = (loc8 - 1);
}
em[loc7].addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.onSmilieMouseDown);
em[loc7].addEventListener(flash.events.MouseEvent.ROLL_OVER, this.onSmilieMouseRollOver);
em[loc7].addEventListener(flash.events.MouseEvent.ROLL_OUT, this.onSmilieMouseRollOut);
loc8 = (loc8 + 1);
loc7 = (loc7 + 1);
}
this.CreateSoundIcon("Speaker", 1);
if (!todo.bThin)
{
this.CreateSoundIcon("Radio", 2);
}
if (xconst.f_NoSmilies & todo.FlagBits)
{
em[0].visible = true;
}
else
{
loc15 = 0;
while (loc15 < todo.emmax)
{
if (em[loc15])
{
em[loc15].visible = true;
}
loc15 = (loc15 + 1);
}
}
return;
}
static function SetTyping(arg1:int, arg2:Boolean):*
{
if (!arg1)
{
return;
}
var loc1:*;
loc1 = xatlib.FindUser(arg1);
if (loc1 < 0)
{
return;
}
if (!todo.HasPower(loc1, 172))
{
return;
}
if (arg2)
{
todo.Users[loc1].flag0 = todo.Users[loc1].flag0 | 65536;
}
else
{
todo.Users[loc1].flag0 = todo.Users[loc1].flag0 & !65536;
}
xmessage.DeleteOneUserMc(loc1);
return;
}
public static function ProcessMessage():*
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
var loc1:*;
loc1 = xatlib.FindUser(todo.w_userno);
var loc2:*;
loc2 = todo.MessageToProcess;
todo.MessageToProcess = "";
if (loc2.charAt(0) == "$" && !(loc2.indexOf("=") == -1))
{
if (loc2 == "$=")
{
if (todo.Macros != undefined)
{
todo.helpstr = "";
var loc9:*;
loc9 = 0;
var loc10:*;
loc10 = todo.Macros;
for (loc4 in loc10)
{
todo.helpstr = todo.helpstr + "$" + loc4 + "=" + todo.Macros[loc4] + " ";
}
todo.helpupdate = 0;
}
return;
}
loc3 = loc2.substr(1).split("=");
if (loc3[0].indexOf(" ") == -1)
{
if (todo.Macros == undefined)
{
todo.Macros = new Object();
}
if (loc3[1] == undefined || loc3[1].length == 0)
{
delete todo.Macros[loc3[0]];
}
else
{
todo.Macros[loc3[0]] = loc3[1];
}
if (loc3[0] == "status")
{
xatlib.ReLogin();
}
todo.helpstr = "$" + loc3[0] + "=" + (loc3[1] != undefined ? loc3[1] : "");
todo.helpupdate = 0;
xatlib.MainSolWrite("Macros", todo.Macros);
return;
}
}
if (!(todo.PrivateChat == 0 && (!(loc1 == -1) && todo.Users[loc1].banned && !(todo.Users[loc1].flag0 & 131072) || !(loc1 == -1) && todo.Users[loc1].gagged)))
{
if (loc2.charAt(0) != "/")
{
if (loc2.indexOf("k2=") == -1)
{
if (todo.Macros != undefined)
{
loc9 = 0;
loc10 = todo.Macros;
for (loc4 in loc10)
{
loc2 = xatlib.Replace(loc2, "$" + loc4, todo.Macros[loc4]);
}
}
ProcessHelp(loc2);
ProcessSounds(loc2, !(todo.w_Powers == undefined) && !(todo.w_Mask == undefined) ? !(todo.w_Powers[0] & 1 << 8 & !todo.w_Mask[0]) : 1, loc1);
loc2 = xatlib.PreProcSmilie(loc2, undefined, todo.w_Options);
loc7 = loc2;
if (todo.PrivateMessage != 0)
{
loc7 = " " + loc2;
}
loc10 = ((loc9 = todo).mi + 1);
loc9.mi = loc10;
if (!(xconst.f_Live & todo.FlagBits && !todo.w_mainowner && !todo.w_owner && !todo.w_moderator && !todo.w_member && !ctabsmc.TabIsPrivate()))
{
todo.Message.push({"i":todo.mi * 2 + 1, "n":0, "t":loc7, "u":todo.w_userno, "s":ctabsmc.TabIsPrivate() ? 2 : 0, "d":ctabsmc.TabUser()});
}
if (todo.messageecho != "m")
{
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
todo.LastScrollTime = undefined;
if (todo.MessageCount > 0)
{
todo.MessageCount = 25;
}
if (loc2 == todo.LastMessageToSend)
{
todo.MessageCount = 25;
}
else
{
if (todo.MessageToSend.length != 0)
{
todo.MessageToSend = todo.MessageToSend + " ";
todo.MessageToSend = todo.MessageToSend + loc2;
}
else
{
todo.MessageToSend = loc2;
}
todo.MessageToSend = todo.MessageToSend.substr(0, 256);
}
if (todo.MessageToSend == "!bot" && !(todo.w_lang == undefined))
{
todo.MessageToSend = todo.MessageToSend + " " + todo.w_lang;
}
}
else
{
if (network.YC)
{
if ((loc8 = xatlib.xInt(todo.w_d1) - network.YC) < 0)
{
loc8 = 0;
}
if ((loc8 = xatlib.xInt(loc8 / (24 * 3600) + 0.3)) > 0)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, todo.mi * 2 + 1, loc7);
}
}
}
}
else
{
todo.helpstr = xconst.ST(214);
todo.helpupdate = 0;
}
}
else
{
if ((loc5 = loc2.substr(1, 1)) != "s")
{
if (loc5 == "p" || loc5 == "i")
{
network.NetworkSendMsg(todo.w_userno, "/" + loc5);
}
}
else
{
SetScroller(loc2.substr(2, 510));
network.NetworkSendMsg(todo.w_userno, loc2.substr(0, 512));
}
if (loc2.substr(0, 6) != "/debug")
{
if (loc5 != "a")
{
if (loc5 == "h" || loc5 == "g")
{
network.NetworkSendMsg(todo.w_userno, loc2);
}
else
{
if (loc5 == "x" || loc5 == "m" || loc5 == "n")
{
network.NetworkSendMsg(todo.w_userno, loc2, ctabsmc.TabUser());
}
else
{
if (loc5 != "o")
{
if (loc5 != "f")
{
if (loc5 == "t")
{
if (ctabsmc.TabUser())
{
network.NetworkSendMsg(todo.w_userno, loc2, 0, ctabsmc.TabUser(), 0);
network.NetworkIgnore(ctabsmc.TabUser());
}
else
{
xkiss.Kiss({"t":loc2.substr(2), "u":todo.w_userno, "k":"Ttth"});
}
}
}
else
{
loc6 = loc2.substr(2, 64).split(" ");
if (xatlib.xInt(loc6[0]) > 128)
{
network.UpdateFriendList(xatlib.xInt(loc6[0]), true, loc6[1] ? loc6[1] : loc6[0]);
}
}
}
else
{
todo.w_Options = loc2.substr(2, 256);
if (todo.w_Options.length == 0)
{
todo.w_Options = undefined;
}
xatlib.MainSolWrite("w_Options", todo.w_Options);
}
}
}
}
else
{
network.NetworkSendMsg(todo.w_userno, loc2);
}
}
}
}
return;
}
public static function ProcessHelp(arg1:String):*
{
arg1.toLowerCase();
if (arg1.indexOf("change") != -1)
{
if (!(arg1.indexOf("name") == -1) || !(arg1.indexOf("picture") == -1) || !(arg1.indexOf("pic") == -1) || !(arg1.indexOf("avatar") == -1))
{
todo.helpstr = xconst.ST(30, " " + todo.w_name);
todo.HelpUpdate = 300 + todo.helpstr.length * 8;
}
}
return;
}
public static function PlayMusic(arg1:*):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = null;
if (todo.config["WEB"])
{
if (todo.w_sound & 1)
{
loc1 = arg1.split("piano#");
musiccode = loc1[1];
if (mcxMusicPlayer != null)
{
if (musiccode != null)
{
mcMusicPlayer.playmusic(musiccode, todo.w_Vol[1]);
}
}
else
{
flash.system.Security.allowDomain("xat.com");
flash.system.Security.allowDomain("www.xatech.com");
mcxMusicPlayer = new flash.display.Loader();
loc2 = new flash.net.URLRequest("http://xat.com/web_gear/flash/musicplayer.swf?a7");
mcxMusicPlayer.load(loc2);
mcxMusicPlayer.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, chat.mainDlg.onMusicPlayerLoaded);
mcxMusicPlayer.visible = false;
chat.mainDlg.addChild(mcxMusicPlayer);
}
}
}
return;
}
public static function ProcessSounds(arg1:String, arg2:Boolean, arg3:*=-1):*
{
var loc1:*;
loc1 = NaN;
var loc2:*;
loc2 = false;
var loc3:*;
loc3 = null;
var loc4:*;
loc4 = null;
var loc5:*;
loc5 = undefined;
if (todo.w_sound & 1)
{
arg1.toLowerCase();
if (!(arg3 == -1) && todo.HasPower(arg3, 117))
{
if ((loc1 = arg1.indexOf("piano#")) != -1)
{
PlayMusic(arg1);
return;
}
}
loc2 = false;
if (!((loc1 = arg1.indexOf("#")) == -1) && arg2)
{
if (!(loc1 > 0 && !(arg1.charAt((loc1 - 1)) == " ")))
{
loc3 = arg1.substr(loc1 + 1);
loc3 = xatlib.CleanText(loc3);
loc4 = new Array();
if ((loc5 = (loc4 = loc3.split("_"))[0]).length > 0)
{
if (loc5 != "laserfire3")
{
todo.CustomSound = loc5;
todo.DoAudieSnd = true;
loc2 = true;
}
}
}
}
if (!loc2)
{
todo.DoMessageSnd = true;
}
}
return;
}
public static function logoutbutonPress():*
{
var loc1:*;
loc1 = undefined;
main.closeDialog();
xmessage.mspos = undefined;
while (todo.Pools.length > 0)
{
todo.Pools.splice(0);
}
todo.PrivateMessage = 0;
lockmc.visible = false;
if (todo.lb != "n")
{
todo.lb = "n";
todo.DoUpdate = true;
network.NetworkClose();
}
else
{
loc1 = xatlib.getLocal("chat" + String(todo.w_useroom), "/");
loc1.objectEncoding = flash.net.ObjectEncoding.AMF0;
todo.pass = loc1.data.pass;
if (todo.pass != undefined)
{
todo.pass = xatlib.xInt(todo.pass);
}
network.NetworkStartChat();
}
return;
}
private static function flix_Loaded(arg1:*):*
{
var loc1:*;
loc1 = arg1.currentTarget.loader.contentLoaderInfo.content;
loc1.Go(flix_opts);
return;
}
public static function Private_onRelease(arg1:Number):*
{
main.hint.HintOff();
main.utabsmc.SetVisitorsTab();
todo.DoUpdateMessages = true;
todo.DoBuildUserListScrollUp = true;
todo.ScrollDown = true;
todo.LastScrollTime = undefined;
main.ctabsmc.UpdateTabs(arg1);
main.ctabsmc.ColorTab(arg1, 16777215);
xmessage.OpenGifts(main.ctabsmc.tabs[arg1].User, 2);
return;
}
public static function Private_onDelete(arg1:Number):*
{
main.hint.HintOff();
main.utabsmc.SetVisitorsTab();
var loc1:*;
loc1 = main.ctabsmc.tabs[arg1].ImIndex;
main.ctabsmc.tabs.splice(arg1, 1);
if (todo.w_useroom != todo.w_room)
{
main.ctabsmc.UpdateTabs(1);
main.ctabsmc.ColorTab(1, 16777215);
}
else
{
main.ctabsmc.UpdateTabs(0);
main.ctabsmc.ColorTab(0, 16777215);
}
todo.DoUpdateMessages = true;
todo.DoBuildUserList = true;
todo.ScrollDown = true;
return;
}
public static function onUserScrollChange():*
{
var loc1:*;
loc1 = xmessage.useryc3 - uph + 4;
var loc2:*;
loc2 = 0;
if (loc1 > 0)
{
uscrollmc.Scr_size = loc1;
loc2 = uscrollmc.Scr_position;
}
else
{
uscrollmc.Scr_position = 0;
}
mcuserbackground.y = -loc2;
tickcode.UserScroll = true;
return;
}
public static function LookupPool(arg1:*):*
{
var loc1:*;
loc1 = todo.Pools.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (arg1 == todo.Pools[loc2])
{
return loc2;
}
loc2 = (loc2 + 1);
}
return 0;
}
public static function SetScroller(arg1:*):*
{
fmts.color = 0;
var loc1:*;
loc1 = arg1.indexOf("#");
if (loc1 != -1)
{
fmts.color = parseInt(arg1.substr(loc1 + 1, 6), 16);
arg1 = arg1.substr(0, loc1);
}
mcscrollertext.text = arg1;
mcscrollertext.x = xatlib.NX(435);
mcscrollertext.y = xatlib.NY(469) - 12;
mcscrollertext.setTextFormat(fmts);
mcscrollertext.selectable = false;
mcscrollertext.cacheAsBitmap = true;
return;
}
public static function openDialog(arg1:*, arg2:*):*
{
closeDialog();
var loc1:*;
loc1 = null;
var loc2:*;
loc2 = arg1;
switch (loc2)
{
case 1:
{
loc1 = new DialogProfile(arg2);
break;
}
case 2:
{
loc1 = new DialogActions(arg2);
break;
}
case 3:
{
loc1 = new DialogKiss(arg2);
break;
}
case 4:
{
loc1 = new DialogEdit(arg2);
break;
}
case 5:
{
loc1 = new DialogHelp(arg2);
break;
}
case 7:
{
loc1 = new DialogPowers(arg2);
break;
}
case 11:
{
loc1 = new DialogReason(arg2);
break;
}
}
if (loc1 != null)
{
dialog_layer.addChild(loc1);
}
return;
}
public static function closeDialog():*
{
while (dialog_layer.numChildren)
{
dialog_layer.removeChildAt(0);
}
while (dialogs.numChildren)
{
dialogs.removeChildAt(0);
}
return;
}
{
em = new Array();
uMessLst = new Array();
mcLoad = null;
mcxMusicPlayer = null;
musiccode = null;
mcMusicPlayer = null;
fmts = new flash.text.TextFormat();
backs = new Array();
back_no = 0;
touchtimeout = 0;
RadioSound = new Array();
SndIcnX = 0;
equ = new flash.display.Sprite();
debugtext = new flash.text.TextField();
dbgstr = "";
receiving_profile = null;
sending_profile = null;
ProfileUserNo = 0;
}
const OkPic:*;
static const un:*=undefined;
public static const flixs:*=[92, 96, 98, 102, 108, 148, 156];
var textfield2background:*;
var cmessmc:*;
var IM:*;
var emotes:*;
public static var GrpIc:flash.display.MovieClip;
private static var GrpIcscale:*;
public static var em:Array;
public static var textfield2:flash.text.TextField;
public static var mcgetachat:*;
public static var ButtonLoginMc:*;
public static var lockmc:*;
public static var retmc:*;
public static var retmcBut:*;
public static var nudge:*;
public static var upw:*;
public static var uph:*;
public static var upx:*;
public static var upy:*;
public static var fmt:*;
public static var hint:hints;
public static var ctabsmc:*;
public static var mctextbackgroundmask:*;
public static var mctextbackground:*;
public static var mcuserbackground:*;
public static var mcuserbackgroundmask:*;
public static var utabsmc:*;
public static var mscrollmc:*;
public static var uscrollmc:*;
public static var textPaneWidth:*;
public static var uMessLst:Array;
static var mcxLoad:*;
public static var mcLoad:flash.display.MovieClip=null;
static var mcxMusicPlayer:*=null;
static var musiccode:*=null;
public static var mcMusicPlayer:flash.display.MovieClip=null;
public static var mcscroller:*;
public static var mcscrollertext:*;
public static var mcscrollermask:*;
public static var fmts:*;
public static var back_layer:*;
public static var backs:*;
public static var back_no:*=0;
public static var flix_layer:*;
public static var wink_layer:*;
public static var chat_layer:*;
public static var dialog_layer:*;
public static var touchtimeout:*=0;
public static var dialogs:*;
public static var box_layer:*;
public static var eip_layer:*;
public static var puzzle_layer:*;
public static var kiss_layer:*;
public static var moveable:*;
static var RadioSound:*;
static var SndIcnX:*=0;
static var Dragee:*;
public static var mcsnd:*;
public static var equ:flash.display.Sprite;
public static var debugtext:flash.text.TextField;
public static var dbgstr:*="";
private static var receiving_profile:flash.net.LocalConnection=null;
private static var sending_profile:flash.net.LocalConnection=null;
private static var ProfileUserNo:*=0;
private static var flix_opts:Object;
private static var flix_mc:*;
public static var mbs:*;
public static var ubs:*;
public static var logo:*;
}
}
// class more
package
{
import flash.display.*;
public dynamic class more extends flash.display.MovieClip
{
public function more()
{
super();
return;
}
}
}
// class network
package
{
import flash.display.*;
import flash.events.*;
import flash.external.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.utils.*;
import flash.xml.*;
public class network extends Object
{
public function network()
{
super();
return;
}
public static function ipAlive(arg1:*):*
{
var loc1:*;
loc1 = 0;
while (loc1 < xips * xservers)
{
if (!(SockStatus[loc1] == 0) && xSock[loc1] == arg1)
{
return true;
}
loc1 = (loc1 + 1);
}
return false;
}
public static function numAlive(arg1:*):*
{
var loc1:*;
loc1 = 0;
var loc2:*;
loc2 = 0;
while (loc2 < xips)
{
if (SockStatus[(arg1 * xips + loc2)] != 0)
{
loc1 = (loc1 + 1);
}
loc2 = (loc2 + 1);
}
return loc1;
}
public static function setIps():*
{
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc1:*;
loc1 = 0;
while (loc1 < xservers)
{
loc2 = new Array();
loc3 = 0;
while (loc3 < xips)
{
if (SockStatus[(loc1 * xips + loc3)] != 0)
{
loc2.push(xSock[(loc1 * xips + loc3)]);
}
loc3 = (loc3 + 1);
}
if (loc2.length > 0)
{
global.Sock[loc1] = loc2[Math.floor(Math.random() * loc2.length)];
}
loc1 = (loc1 + 1);
}
return;
}
public static function GetDom(arg1:*):Number
{
if (xatlib.xInt(arg1) == 8)
{
return 0;
}
return xatlib.xInt(arg1) < 8 ? 3 : (xatlib.xInt(arg1) & 96) >> 5;
}
public static function GetPort(arg1:*):Number
{
if (xatlib.xInt(arg1) == 8)
{
return 10000;
}
return xatlib.xInt(arg1) < 8 ? (10000 - 1) + xatlib.xInt(arg1) : 10000 + 7 + xatlib.xInt(arg1) % 32;
}
public static function NetworkInit():*
{
setIps();
var loc1:*;
loc1 = 0;
while (loc1 < xservers)
{
global.Sock2[loc1] = xSock2[(4 * loc1 + Math.floor(Math.random() * 4))];
loc1 = (loc1 + 1);
}
NetworkState = 0;
NetworkTimeout = -1;
MessageCount = 0;
LurkerLimit = 12 * 60 * 5;
LurkerTimeout = -1;
return;
}
public static function NetworkStartChat():*
{
var loader:flash.net.URLLoader;
var request:flash.net.URLRequest;
var loc1:*;
request = null;
loader = null;
xmessage.ClearLists(true);
UngagTimeout = undefined;
if (!(todo.w_userrev == undefined) && (todo.w_k1 == 0 || todo.w_k2 == 0))
{
UserId = undefined;
request = new flash.net.URLRequest();
request.url = todo.chatdomain + "auser3.php?" + "u=" + xatlib.xInt(todo.w_userno) + "&k2=" + todo.w_k2 + "&t=" + Math.random();
request.method = flash.net.URLRequestMethod.GET;
loader = new flash.net.URLLoader();
loader.load(request);
loader.addEventListener(flash.events.Event.COMPLETE, ausercompleteHandler);
}
else
{
if (todo.w_userrev != undefined)
{
UserId = todo.w_userno;
k1 = todo.w_k1;
k2 = todo.w_k2;
}
else
{
UserId = 2;
}
}
SetNetworkState(1, 120);
todo.DoBuildUserListScrollUp = true;
try
{
main.mcLoad.IMdisplayContacts();
}
catch (e:Error)
{
};
return;
}
private static function ausercompleteHandler(arg1:flash.events.Event):void
{
var loc1:*;
loc1 = flash.net.URLLoader(arg1.target);
var loc2:*;
loc2 = new flash.net.URLVariables(loc1.data.substr(1));
UserId = loc2.UserId;
k1 = loc2.k1;
k2 = loc2.k2;
return;
}
public static function NetworkSendMsg(arg1:*, arg2:*, arg3:*, arg4:*, arg5:*, arg6:*, arg7:*):*
{
var loc2:*;
loc2 = undefined;
if (todo.lb == "n")
{
return;
}
if (arg3 == undefined)
{
arg3 = 0;
}
if (arg4 == undefined)
{
arg4 = 0;
}
if (arg5 == undefined)
{
arg5 = 0;
}
var loc1:*;
loc1 = new flash.xml.XMLDocument();
var loc3:*;
loc3 = true;
var loc4:*;
loc4 = "";
if (arg5 == 0)
{
if (arg4 == 0)
{
if (arg3 == 0)
{
(loc2 = loc1.createElement("m")).attributes.u = todo.w_userrev <= 0 ? arg1 : arg1 + "_" + todo.w_userrev;
loc2.attributes.t = arg2;
if (xatlib.CountLinks(arg2) > 0)
{
loc2.attributes.l = 1;
}
loc1.appendChild(loc2);
loc4 = xatlib.XMLOrder(loc1, new Array("t", "u", "l"));
socket.send(loc4);
}
else
{
if (OnUserList(arg3))
{
(loc2 = loc1.createElement("p")).attributes.d = todo.w_userno;
loc2.attributes.s = 2;
loc2.attributes.t = arg2;
loc2.attributes.u = arg3;
loc1.appendChild(loc2);
loc4 = xatlib.XMLOrder(loc1, new Array("u", "t", "s", "d"));
socket.send(loc4);
}
else
{
(loc2 = loc1.createElement("z")).attributes.s = 2;
loc2.attributes.t = arg2;
loc2.attributes.u = todo.w_userno + "_" + todo.w_userrev;
loc2.attributes.d = arg3;
loc3 = false;
loc1.appendChild(loc2);
loc4 = xatlib.XMLOrder(loc1, new Array("d", "u", "t", "s"));
socket.send(loc4);
}
}
}
else
{
if (OnUserList(arg4) && !(arg2.substr(0, 2) == "/a") && !(arg2.substr(0, 2) == "/l") && !(arg2.substr(0, 2) == "/t"))
{
loc2 = loc1.createElement("p");
if (arg3 != 0)
{
loc2.attributes.d = todo.w_userno;
loc2.attributes.s = 2;
}
loc2.attributes.t = arg2;
loc2.attributes.u = arg4;
loc1.appendChild(loc2);
loc4 = xatlib.XMLOrder(loc1, new Array("u", "t", "s", "d"));
socket.send(loc4);
}
else
{
loc2 = loc1.createElement("z");
if (arg3 != 0)
{
loc2.attributes.s = 2;
}
loc2.attributes.t = arg2;
loc2.attributes.u = todo.w_userno + "_" + todo.w_userrev;
loc2.attributes.d = arg4;
loc3 = false;
loc1.appendChild(loc2);
loc4 = xatlib.XMLOrder(loc1, new Array("d", "u", "t", "s"));
socket.send(loc4);
}
}
}
else
{
loc2 = loc1.createElement("c");
if (arg3 != 0)
{
loc2.attributes.d = todo.w_userno;
loc2.attributes.s = 2;
}
loc2.attributes.t = arg2;
loc2.attributes.u = arg5;
if (arg6 != undefined)
{
loc2.attributes.p = arg6;
}
if (arg7 != undefined)
{
loc2.attributes.w = arg7;
}
loc1.appendChild(loc2);
loc4 = xatlib.XMLOrder(loc1, new Array("w", "p", "u", "t", "s", "d"));
socket.send(loc4);
}
if (arg2.substr(0, 1) != "/")
{
GlowUser(todo.w_userno);
}
if (arg2.substr(0, 3) == "/KD")
{
loc3 = false;
}
if (loc3)
{
LurkerTimeout = LurkerLimit;
}
return;
}
public static function NetworkDeleteMessage(arg1:*):*
{
NetworkSendMsg(todo.w_userno, "/d" + arg1);
return;
}
public static function NetworkGagUser(arg1:*, arg2:*, arg3:*, arg4:*, arg5:*, arg6:*):*
{
NetworkSendMsg(todo.w_userno, arg3 ? "/" + arg1 + arg4 : "/u", 0, 0, arg2, arg5, arg6);
return;
}
public static function NetworkKickUser(arg1:*, arg2:*):*
{
NetworkSendMsg(todo.w_userno, "/k", 0, 0, arg1, arg2);
return;
}
public static function NetworkMakeUser(arg1:*, arg2:*):*
{
NetworkSendMsg(todo.w_userno, "/" + arg2, 0, 0, arg1);
return;
}
public static function SysMsg(arg1:*, arg2:*, arg3:*, arg4:*, arg5:*, arg6:int=0):String
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc1:*;
loc1 = "";
var loc2:*;
loc2 = todo.Users[arg3].n.substr(0, 128);
if (arg4 == undefined)
{
arg4 = "";
}
if (xatlib.CountLinks(loc2) > 0)
{
if (!(loc2 = todo.Users[arg3].registered))
{
loc2 = todo.Users[arg3].u;
}
}
if (arg1 != 0)
{
if (arg1 != 1)
{
if (arg1 != 2)
{
if (arg1 != 3)
{
if (arg1 != 4)
{
if (arg1 == 5 || arg1 == 6)
{
if (arg4.length != 0)
{
loc1 = loc1 + xconst.ST(200, arg1 != 5 ? xconst.ST(201) : xconst.ST(188), loc2, String(arg5 / 3600), arg4);
}
else
{
loc1 = loc1 + xconst.ST(199, arg1 != 5 ? xconst.ST(201) : xconst.ST(188), loc2, String(arg5 / 3600));
}
}
else
{
return "";
}
}
else
{
if (arg2.charAt(0) == "n")
{
loc1 = loc1 + xconst.ST(196, loc2);
if ((loc3 = xatlib.xInt(arg2.substr(1) / 36) / 100) > 0)
{
loc1 = loc1 + "(" + loc3 + " " + xconst.ST(116) + ")";
}
}
}
}
else
{
if (arg4.indexOf(",") >= 0)
{
loc5 = arg4.split(",");
loc1 = "I have finished a " + loc5[2] + " hour " + xconst.Puzzle[loc5[0]] + "ban in " + loc5[1] + " seconds";
}
else
{
loc1 = loc1 + xconst.ST(90) + " " + loc2 + ".";
}
}
}
else
{
if (arg4.length != 0)
{
if (arg5 != 0)
{
loc1 = loc1 + xconst.ST(122, loc2, String(arg5 / 3600), arg4);
}
else
{
loc1 = loc1 + xconst.ST(121, loc2, arg4);
}
}
else
{
if (arg5 != 0)
{
loc1 = loc1 + xconst.ST(120, loc2, String(arg5 / 3600));
}
else
{
loc1 = loc1 + xconst.ST(119, loc2);
}
}
if (arg6 != 158)
{
if (arg6)
{
loc1 = xatlib.Replace(loc1, "banned", xconst.Puzzle[arg6] + "banned");
}
}
else
{
loc1 = xatlib.Replace(loc1, "banned", "dunced");
}
}
}
else
{
if ((loc4 = arg4.split("#")).length != 2)
{
if (loc4.length != 3)
{
loc1 = loc1 + xconst.ST(123, loc2, loc4[0]);
}
else
{
loc1 = loc1 + "I have zapped " + loc2 + " Reason: " + loc4[0];
}
}
else
{
loc1 = loc1 + xconst.ST(194, loc2, loc4[1], loc4[0]);
}
}
}
else
{
if (arg2 != "M")
{
if (arg2.charAt(0) != "m")
{
if (arg2.charAt(0) != "e")
{
if (arg2.charAt(0) != "o")
{
if (arg2 == "r")
{
loc1 = loc1 + xconst.ST(138, loc2);
}
}
else
{
loc1 = loc1 + xconst.ST(137, loc2);
}
}
else
{
loc1 = loc1 + xconst.ST(132, loc2);
}
}
else
{
loc1 = loc1 + xconst.ST(128, loc2);
}
}
else
{
loc1 = loc1 + xconst.ST(137, loc2);
}
if ((loc3 = xatlib.xInt(arg2.substr(1) / 36) / 100) > 0)
{
loc1 = loc1 + "(" + loc3 + " " + xconst.ST(116) + ")";
}
}
return " " + loc1;
}
public static function NetworkFriendUser(arg1:*, arg2:*):*
{
var loc2:*;
loc2 = undefined;
var loc1:*;
loc1 = xatlib.FindUser(arg1);
todo.Users[loc1].friend = arg2;
xmessage.DeleteOneUserMc(loc1);
UpdateFriendList(arg1, arg2);
if (todo.w_registered == undefined)
{
return;
}
var loc3:*;
loc3 = "/b " + arg1 + "," + (arg2 ? "1" : "2");
if (arg2)
{
if ((loc2 = todo.Users[loc1].registered) == undefined)
{
loc2 = "";
}
loc3 = loc3 + "," + loc2 + "," + todo.Users[loc1].n.substr(0, 20);
}
NetworkSendMsg(todo.w_userno, loc3, 0, 0, 2);
return;
}
public static function NetworkSetPool(arg1:*):*
{
var loc1:*;
loc1 = new flash.xml.XMLDocument();
var loc2:*;
loc2 = loc1.createElement("w" + xatlib.xInt(arg1));
loc1.appendChild(loc2);
socket.send(loc1);
return;
}
public static function NetworkLocateUser(arg1:*):*
{
if (arg1 >= 2000000000 - 100000 * 2)
{
return;
}
NetworkSendMsg(todo.w_userno, "/l", 0, arg1, 0);
return;
}
public static function NetworkClose():*
{
SetNetworkState(0, -1);
if (socket.connected)
{
socket.close();
}
if (todo.messageecho == "s")
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, 0, "o");
}
}
return;
}
public static function UpdateChannel(arg1:*, arg2:*):*
{
var loc1:*;
loc1 = xatlib.FindUser(arg2);
if (loc1 < 0)
{
return;
}
if (todo.Users[loc1].banned && todo.Users[loc1].w && !(todo.Users[loc1].flag0 & 131072))
{
arg1 = 50000 + todo.Users[loc1].w;
}
if (arg1 < 10000)
{
arg1 = 0;
}
if (todo.Users[loc1].xNum != arg1)
{
todo.Users[loc1].xNum = arg1;
xmessage.DeleteOneUserMc(loc1);
}
return;
}
public static function NetworkSendExtMessage(arg1:*, arg2:*, arg3:*):*
{
var loc2:*;
loc2 = undefined;
LurkerTimeout = LurkerLimit;
var loc1:*;
(loc2 = (loc1 = new flash.xml.XMLDocument()).createElement("x")).attributes.t = arg3 != undefined ? arg3 : "undefined";
if (arg2 != 0)
{
loc2.attributes.d = arg2 != undefined ? arg2 : "undefined";
}
loc2.attributes.u = todo.w_userno;
loc2.attributes.i = arg1;
UpdateChannel(arg1, todo.w_userno);
loc1.appendChild(loc2);
var loc3:*;
loc3 = xatlib.XMLOrder(loc1, new Array("i", "u", "d", "t"));
socket.send(loc3);
return;
}
public static function NetworkSendxmlExtMessage(arg1:*):*
{
LurkerTimeout = LurkerLimit;
var loc1:*;
loc1 = new flash.xml.XMLDocument(arg1);
UpdateChannel(loc1.firstChild.attributes.i, todo.w_userno);
var loc2:*;
loc2 = "";
if (!(loc1.toString().indexOf("t=\"/m") == -1) || !(loc1.toString().indexOf("t=\"/g") == -1))
{
loc2 = xatlib.XMLOrder(loc1, new Array("j", "i", "u", "t", "p"));
}
else
{
loc2 = xatlib.XMLOrder(loc1, new Array("H", "j", "i", "t", "u", "d0", "d2", "q", "N", "n", "a", "h", "v"));
}
socket.send(loc2);
return;
}
public static function NetworkLogin(arg1:*, arg2:*):*
{
var loc1:*;
loc1 = new flash.xml.XMLDocument();
var loc2:*;
(loc2 = loc1.createElement("v")).attributes.n = arg1;
loc2.attributes.p = arg2;
loc1.appendChild(loc2);
socket.send(loc1);
return;
}
public static function SetNetworkState(arg1:*, arg2:*):*
{
var loc1:*;
loc1 = null;
NetworkState = arg1;
NetworkTimeout = arg2;
if (main.ButtonLoginMc != undefined)
{
if (NetworkState != 0)
{
if (NetworkState != 4)
{
loc1 = xconst.ST(32);
}
else
{
loc1 = xconst.ST(31);
}
}
else
{
loc1 = xconst.ST(19);
}
main.ButtonLoginMc.SetText(loc1);
}
return;
}
public static function NetworkTick():*
{
var loc2:*;
loc2 = null;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = false;
var loc5:*;
loc5 = NaN;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
var loc9:*;
loc9 = undefined;
var loc10:*;
loc10 = 0;
if (NetworkTimeout != -1)
{
NetworkTimeout = (NetworkTimeout - 1);
if (NetworkTimeout < 0)
{
NetworkTimeout = 0;
}
}
if (NetworkState != 1)
{
if (NetworkState != 3)
{
if (NetworkState != 4)
{
if (NetworkState != 5)
{
if (NetworkState != 6)
{
if (NetworkState != 7)
{
if (NetworkState != 8)
{
if (NetworkState != 9)
{
if (NetworkState != 11)
{
if (NetworkState != 12)
{
if (NetworkState == 13)
{
loc4 = w_redirectport == undefined;
SetNetworkState(0, -1);
w_redirectport = 80;
w_redirectdom = global.fwd;
todo.lb = "n";
todo.DoUpdate = true;
NetworkClose();
if (loc4)
{
main.logoutbutonPress();
}
}
}
else
{
if (NetworkTimeout != -1)
{
if (NetworkTimeout == 0)
{
loc5 = 0;
while (loc5 < SockStatus.length)
{
SockStatus[loc5] = 0;
loc5 = (loc5 + 1);
}
FailoverMode = true;
w_redirectdom = global.Sock2[GetDom(todo.w_useroom)];
SetNetworkState(8, -1);
}
}
}
}
else
{
if (Fire != true)
{
loc5 = 0;
while (loc5 < SockStatus.length)
{
SockStatus[loc5] = 0;
loc5 = (loc5 + 1);
}
FailoverMode = true;
w_redirectdom = global.Sock2[GetDom(todo.w_useroom)];
SetNetworkState(8, -1);
}
else
{
loc2 = new Date();
loc3 = "http://www.xat.com/web_gear/chat/fail2.htm?firewall" + xatlib.xInt(loc2.getTime() / 300000) + "_" + global.Sock[GetDom(todo.w_useroom)];
xatlib.LoadVariables(loc3, test_xml_onLoad);
SetNetworkState(12, 8 * 12);
}
}
}
else
{
FailoverMode = false;
SetNetworkState(0, -1);
w_redirectport = undefined;
w_redirectdom = undefined;
todo.lb = "n";
todo.DoUpdate = true;
NetworkClose();
main.logoutbutonPress();
}
}
else
{
loc4 = w_redirectport == undefined;
SetNetworkState(0, -1);
w_redirectport = todo.useport;
todo.lb = "n";
todo.DoUpdate = true;
NetworkClose();
if (loc4)
{
main.logoutbutonPress();
}
}
}
else
{
if (WV == false)
{
myOnJoin();
}
}
}
else
{
if (YI != undefined)
{
if (todo.w_password != undefined)
{
NetworkLogin(todo.w_email, todo.w_password);
WV = true;
}
SetNetworkState(7, 120);
}
if (NetworkTimeout == 0)
{
SetNetworkState(0, -1);
xatlib.xLog("Y");
xatlib.GeneralMessage(xconst.ST(100), xconst.ST(98) + " (Y)");
}
}
}
else
{
if (NetworkTimeout == -1)
{
main.logoutbutonPress();
}
else
{
if (NetworkTimeout == 0)
{
main.logoutbutonPress();
}
}
}
}
else
{
if (w_redirectport != 80)
{
Fire = false;
}
if (LurkerTimeout != -1)
{
if (todo.w_userno <= 2000000000 - 100000)
{
if (LurkerTimeout <= 0)
{
NetworkSendMsg(todo.w_userno, "/KEEPALIVE", 0, 0, 1);
}
else
{
LurkerTimeout = (LurkerTimeout - 1);
}
}
}
if (FailoverMode && todo.lb == "t" && todo.tick % (12 * 60) == 0)
{
loc2 = new Date();
loc3 = "http://xat.com/web_gear/chat/fail2.htm?failover" + xatlib.xInt(loc2.getTime() / 150000) + "_" + global.Sock[GetDom(todo.w_useroom)];
xatlib.LoadVariables(loc3, test_xml_onLoad);
}
}
}
else
{
if (NetworkTimeout == 0)
{
if (w_redirectport == undefined && !(todo.w_room == 29749227))
{
SetNetworkState(11, -1);
}
else
{
SetNetworkState(0, -1);
xatlib.xLog("CT");
xatlib.GeneralMessage(xconst.ST(100), xconst.ST(98) + " (CT)");
}
}
}
}
else
{
auserLoaded();
if (NetworkTimeout == 0)
{
SetNetworkState(0, -1);
xatlib.xLog("AT");
xatlib.GeneralMessage(xconst.ST(100), xconst.ST(98) + " (AT)");
}
}
MessageCount = (MessageCount - 1);
if (MessageCount < 0)
{
MessageCount = 0;
}
if (!(todo.MessageToProcess == "") && !(todo.lb == "n") && GotDone)
{
main.ProcessMessage();
}
if (!(todo.MessageToSend == "") && MessageCount <= 0 && !(todo.lb == "n") && GotDone)
{
if (todo.w_k1 && !(todo.MessageToSend.indexOf(todo.w_k1.toString()) == -1))
{
todo.MessageToSend = xatlib.Replace(todo.MessageToSend, todo.w_k1.toString(), Math.floor(Math.random() * 2147483648).toString());
}
if (todo.w_k3 && !(todo.MessageToSend.indexOf(todo.w_k3.toString()) == -1))
{
todo.MessageToSend = xatlib.Replace(todo.MessageToSend, todo.w_k3.toString(), Math.floor(Math.random() * 2147483648).toString());
}
if ((loc6 = xatlib.CountLinks(todo.MessageToSend)) <= 2)
{
NetworkSendMsg(todo.w_userno, todo.MessageToSend, todo.PrivateChat, todo.PrivateMessage, 0);
var loc11:*;
todo.PrivateMessage = loc11 = 0;
todo.PrivateChat = loc11;
main.lockmc._visible = false;
if (todo.messageecho == "l" && loc6 > 0)
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, todo.w_userno, todo.MessageToSend);
}
}
}
MessageCount = 25;
todo.LastMessageToSend = todo.MessageToSend;
todo.MessageToSend = "";
}
if (!(todo.w_registered == undefined) && FI && todo.tick % 12 == 6 && todo.lb == "t" && GotDone && (w_redirectport == undefined || w_redirectport == 80))
{
loc7 = todo.w_friendlist.length;
if (fs > 0)
{
xatlib.MainSolWrite("w_friendlist2", todo.w_friendlist2);
}
fs = 0;
loc5 = 0;
while (loc5 < loc7)
{
if ((loc8 = todo.w_friendlist[loc5].u) > 6 && todo.w_friendlist2[loc8] == undefined)
{
loc9 = "";
if (todo.w_friendlist[loc5].u == todo.w_userno)
{
if (todo.w_Mask == undefined)
{
todo.w_Mask = todo.NO_POWERS.slice();
}
loc9 = "/b " + todo.w_friendlist[loc5].u + "," + "1" + "," + "" + "," + todo.w_friendlist[loc5].n.substr(0, 128) + "," + todo.w_friendlist[loc5].a.toString().substr(0, 128) + "," + todo.w_friendlist[loc5].h.substr(0, 128) + "," + todo.w_friendlist[loc5].v.toString();
loc10 = 0;
while (loc10 < todo.MAX_PWR_INDEX)
{
loc9 = loc9 + "," + xatlib.xInt(todo.w_Mask[loc10]);
++loc10;
}
}
else
{
loc9 = "/b " + todo.w_friendlist[loc5].u + "," + "1" + "," + "" + "," + todo.w_friendlist[loc5].n.substr(0, 20);
}
NetworkSendMsg(todo.w_userno, loc9, 0, 0, 2);
todo.w_friendlist2[loc8] = {"flags":1};
var loc12:*;
if (++fs >= 5)
{
break;
}
}
loc5 = (loc5 + 1);
}
if (fs == 0)
{
FI = false;
}
}
var loc1:*;
loc1 = flash.utils.getTimer();
if (todo.lb == "t" && loc1 > UngagTimeout)
{
loc5 = xatlib.FindUser(todo.w_userno);
todo.Users[loc5].gagged = false;
todo.DoBuildUserList = true;
UngagTimeout = undefined;
}
return;
}
public static function test_xml_onLoad(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = flash.net.URLLoader(arg1.target);
var loc2:*;
loc2 = new XML(loc1.data);
var loc3:*;
loc3 = false;
var loc4:*;
if (loc4 = loc2.attribute("d"))
{
loc3 = true;
SockStatus = loc4.split(",");
}
if (FailoverMode)
{
if (loc3 && numAlive(GetDom(todo.w_useroom)) > 0)
{
setIps();
SetNetworkState(9, -1);
}
}
else
{
if (loc3 && ipAlive(global.Sock[GetDom(todo.w_useroom)]))
{
SetNetworkState(13, -1);
}
else
{
if (numAlive(GetDom(todo.w_useroom)) != 0)
{
setIps();
w_redirectdom = global.Sock[GetDom(todo.w_useroom)];
SetNetworkState(8, -1);
}
else
{
FailoverMode = true;
w_redirectdom = global.Sock2[GetDom(todo.w_useroom)];
SetNetworkState(8, -1);
}
}
}
test_xml = undefined;
return;
}
public static function auserLoaded():*
{
var IsBanned:Boolean;
var Port:*;
var catchIOError:Function;
var catchSecurityError:Function;
var rn:*;
var so4:*;
var vx:*;
var loc1:*;
Port = undefined;
IsBanned = false;
vx = undefined;
so4 = undefined;
rn = undefined;
if (UserId != undefined)
{
if (UserId != 0)
{
catchIOError = function (arg1:flash.events.IOErrorEvent):*
{
if (NetworkState == 3)
{
NetworkTimeout = 0;
}
return;
}
catchSecurityError = function (arg1:flash.events.SecurityErrorEvent):void
{
return;
}
if (UserId == 2)
{
rn = xatlib.xInt(Math.random() * 1000000);
if (todo.w_name == "")
{
todo.w_name = xatlib.GetDefaultName(rn);
}
if (todo.w_avatar == "")
{
todo.w_avatar = xatlib.GetDefaultAvatar(rn);
}
if (todo.w_homepage == "")
{
todo.w_homepage = "";
}
}
else
{
todo.w_userno = xatlib.xInt(UserId);
todo.w_k1 = xatlib.xInt(k1);
todo.w_k2 = xatlib.xInt(k2);
so4 = xatlib.getLocal("chat", "/");
so4.objectEncoding = flash.net.ObjectEncoding.AMF0;
if (1 && !(so4 == null))
{
so4.data.w_userno = xatlib.xInt(todo.w_userno);
so4.data.w_userrev = todo.w_userrev;
so4.data.w_k1b = todo.w_k1;
so4.data.w_k2 = todo.w_k2;
so4.flush();
}
if (todo.w_name == "")
{
todo.w_name = xatlib.GetDefaultName(todo.w_userno);
}
if (todo.w_avatar == "")
{
todo.w_avatar = xatlib.GetDefaultAvatar(todo.w_userno);
}
if (todo.w_homepage == "")
{
todo.w_homepage = "";
}
}
IsBanned = OnGagList(todo.w_useroom);
vx = todo.Macros;
xmessage.ClearLists(true);
todo.Users.push({"n":xatlib.NameNoXat(todo.w_name), "s":todo.Macros == undefined ? undefined : todo.Macros["status"], "u":todo.w_userno, "v":todo.w_userrev, "a":todo.w_avatar, "h":todo.w_homepage, "online":true, "banned":IsBanned, "owner":false, "OnXat":!((xatlib.xInt(global.xc) & 32) == 0), "registered":todo.w_registered, "VIP":todo.w_VIP, "Bride":todo.w_d2, "aFlags":todo.w_d0, "Powers":todo.w_Powers});
AddGiftPower(0);
todo.DoBuildUserList = true;
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
todo.LastScrollTime = undefined;
if (w_redirectport == undefined)
{
todo.sockdomain = global.Sock[GetDom(todo.w_useroom)];
Port = GetPort(todo.w_useroom);
}
else
{
Port = w_redirectport;
todo.sockdomain = w_redirectdom;
}
socket = new flash.net.XMLSocket();
socket.addEventListener(flash.events.Event.CONNECT, myOnConnect);
socket.addEventListener(flash.events.DataEvent.DATA, myOnXML);
socket.addEventListener(flash.events.Event.CLOSE, socketClose);
socket.addEventListener(flash.events.IOErrorEvent.IO_ERROR, catchIOError);
socket.addEventListener(flash.events.SecurityErrorEvent.SECURITY_ERROR, catchSecurityError);
todo.useport = Port;
sjt = flash.utils.getTimer();
flash.system.Security.loadPolicyFile("xmlsocket://" + todo.sockdomain + ":10090");
socket.connect(todo.sockdomain, todo.useport);
SetNetworkState(3, w_redirectport != undefined ? 180 : 120);
}
else
{
SetNetworkState(0, -1);
xatlib.xLog("A");
xatlib.GeneralMessage(xconst.ST(100), xconst.ST(98) + " (A)");
todo.lb = "n";
todo.DoUpdate = true;
}
}
return;
}
public static function socketClose(arg1:flash.events.Event):*
{
if (w_redirectport == undefined)
{
SetNetworkState(5, Math.floor(Math.random() * 12 * 4));
todo.lb = "n";
todo.DoUpdate = true;
}
return;
}
public static function myOnConnect(arg1:flash.events.Event):*
{
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = null;
var loc1:*;
loc1 = true;
if (NetworkState == 3)
{
if (loc1)
{
YI = undefined;
loc2 = new flash.xml.XMLDocument();
loc3 = loc2.createElement("y");
if (todo.useport == 80)
{
loc3.attributes.p = GetPort(todo.w_useroom);
loc3.attributes.s = GetDom(todo.w_useroom);
}
if (todo.pass == undefined)
{
loc3.attributes.r = todo.w_useroom;
}
else
{
loc3.attributes.m = 1;
}
loc2.appendChild(loc3);
loc4 = xatlib.XMLOrder(loc2, new Array("w", "r", "m", "s", "p"));
socket.send(loc4);
SetNetworkState(6, 120);
}
else
{
if (w_redirectport != undefined)
{
SetNetworkState(0, -1);
todo.lb = "n";
todo.DoUpdate = true;
xatlib.GeneralMessage(xconst.ST(100), xconst.ST(98) + " (F)");
}
else
{
SetNetworkState(11, -1);
}
}
}
return;
}
public static function myOnJoin():*
{
var loc8:*;
loc8 = 0;
SetNetworkState(4, -1);
todo.DoUserSnd = true;
var loc1:*;
loc1 = xatlib.CleanTextNoXat(todo.w_name);
var loc2:*;
loc2 = xatlib.CleanText(todo.w_avatar);
var loc3:*;
loc3 = xatlib.CleanText(todo.w_homepage);
if (loc1 == null)
{
loc1 = "";
}
if (loc2 == null)
{
loc2 = "";
}
if (loc3 == null)
{
loc3 = "";
}
GotDone = false;
var loc4:*;
var loc5:*;
(loc5 = (loc4 = new flash.xml.XMLDocument()).createElement("j2")).attributes.v = todo.w_userrev != undefined ? todo.w_userrev : 0;
loc5.attributes.h = loc3.substr(0, 128);
loc5.attributes.a = loc2.substr(0, 128);
loc5.attributes.n = loc1.substr(0, 256);
if (todo.Macros != undefined)
{
if (todo.Macros["status"] != undefined)
{
loc5.attributes.n = loc5.attributes.n + "##" + todo.Macros["status"].substr(0, 128);
}
}
if (todo.w_registered != undefined)
{
loc5.attributes.N = todo.w_registered;
}
if (todo.w_dt)
{
loc5.attributes.dt = todo.w_dt;
}
if (todo.w_xats)
{
loc5.attributes.dx = todo.w_xats;
}
if (todo.w_sn)
{
loc5.attributes.sn = todo.w_sn;
}
if (todo.w_PowerO != undefined)
{
loc5.attributes.dO = todo.w_PowerO;
}
if (todo.w_Powers != null)
{
loc8 = 0;
while (loc8 < todo.MAX_PWR_INDEX)
{
if (todo.w_Powers[loc8])
{
loc5.attributes[("d" + loc8 + 4)] = todo.w_Powers[loc8];
}
++loc8;
}
}
if (todo.w_d3)
{
loc5.attributes.d3 = todo.w_d3;
}
if (todo.w_d2)
{
loc5.attributes.d2 = todo.w_d2;
}
if (todo.w_d0 != undefined)
{
loc5.attributes.d0 = todo.w_d0;
}
if (todo.w_Mask != null)
{
loc8 = 0;
while (loc8 < todo.MAX_PWR_INDEX)
{
if (todo.w_Mask[loc8])
{
loc5.attributes[("m" + loc8)] = todo.w_Mask[loc8];
}
++loc8;
}
}
loc5.attributes.u = todo.w_userrev != undefined ? todo.w_userno : 2;
if (global.rf)
{
loc5.attributes.e = "1";
}
loc5.attributes.f = (global.um == undefined ? todo.w_autologin & 1 ? 0 : 1 : 0) | (todo.LoginPressed ? 2 : 0) | (global.pass == undefined ? 0 : 4);
todo.w_autologin = todo.w_autologin | 1;
if (todo.pass || !(global.pass == undefined))
{
loc5.attributes.r = global.pass == undefined ? todo.pass : global.pass;
}
if (OnGagList(todo.w_useroom))
{
loc5.attributes.b = GetGagTime(todo.w_useroom);
}
loc5.attributes.c = todo.w_useroom;
if (todo.w_pool != undefined)
{
loc5.attributes.p = todo.w_pool;
}
if (w_redirectport == undefined && todo.forceport == undefined)
{
loc5.attributes.z = 12;
}
if (todo.w_d1)
{
loc5.attributes.d1 = todo.w_d1;
}
loc5.attributes.k3 = xatlib.xInt(todo.w_k3);
loc5.attributes.k = todo.w_k1;
loc5.attributes.y = YI;
if (global.xc & 32)
{
loc5.attributes.q = 1;
}
loc5.attributes.l2 = jt1;
loc5.attributes.l3 = jt2;
loc5.attributes.l4 = flash.utils.getTimer() - sjt;
var loc6:*;
(loc6 = new flash.display.BitmapData(p_w, p_h, false, 13421772)).perlinNoise(p_w, p_h, p_octaves, p_seed, false, true, flash.display.BitmapDataChannel.ALPHA | flash.display.BitmapDataChannel.RED | flash.display.BitmapDataChannel.GREEN | flash.display.BitmapDataChannel.BLUE, false, null);
loc5.attributes.l5 = loc6.getPixel32(p_x, p_y);
loc6.dispose();
loc4.appendChild(loc5);
if (!J2_Order)
{
J2_Order = "l5,l4,l3,l2,q,y,k,k3,d1,z,p,c,b,r,f,e,u,m0,m1,m2,m3,d0";
loc8 = 2;
while (loc8 < todo.MAX_PWR_INDEX + 4)
{
J2_Order = J2_Order + ",d" + loc8;
++loc8;
}
J2_Order = J2_Order + ",dO,sn,dx,dt,N,n,a,h,v";
J2_Order = J2_Order.split(",");
}
var loc7:*;
loc7 = xatlib.XMLOrder(loc4, J2_Order);
socket.send(loc7);
todo.lb = "t";
todo.OnSuper = true;
todo.DoUpdate = true;
todo.ResetSmilies = true;
LurkerTimeout = LurkerLimit;
if (todo.messageecho == "s")
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, 0, "i");
}
}
if (todo.messageecho == "a")
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, 0, "d");
}
}
xatlib.MainSolWrite("w_lastroom", todo.w_useroom);
return;
}
public static function myOnXML(arg1:flash.events.DataEvent):*
{
var AllowPC:*;
var BanTime:*;
var FirstTwo:*;
var HaveTab:*;
var IsAtUser:*;
var IsBanned:Boolean;
var IsControlMessage:*;
var IsDeleteMessage:*;
var IsForever:Boolean;
var IsGagUser:*;
var IsGagged:Boolean;
var IsIgnored:Boolean;
var IsKickUser:*;
var IsLocateUser:*;
var IsMainOwner:Boolean;
var IsMakeUser:*;
var IsMember:Boolean;
var IsModerator:Boolean;
var IsNew:Boolean;
var IsOnline:Boolean;
var IsOwner:Boolean;
var IsPrivateChat:Boolean;
var IsPrivateMessage:Boolean;
var IsScroller:*;
var IsSlash:*;
var IsStealth:Boolean;
var IsUnGagUser:*;
var IsUnMakeUser:*;
var IsUnknown:*;
var IsVIP:Boolean;
var Links:*;
var NoBanMessage:*;
var OnXat:Boolean;
var Payload:*;
var Powers:*;
var RemoveMessage:*;
var Rnd2:*;
var RndOr:*;
var Superior:Function;
var TabNumber:Number;
var TabsLength:*;
var Text:*;
var TypeOff:*;
var TypeOn:*;
var UnfairReport:String;
var UnfairTitle:String;
var UserIndex:*;
var a:*;
var arg:*;
var bootr:*;
var c:*;
var cc:*;
var d:*;
var doautoredirect:Boolean;
var doc:*;
var e:*;
var ee:*;
var event:flash.events.DataEvent;
var farray:Array;
var friobj:Object;
var g:*;
var gpa:*;
var hh:*;
var i:Number;
var id:*;
var ii:*;
var j:*;
var lc:*;
var left:Number;
var len:*;
var ll:*;
var loctext:*;
var maxm:*;
var maxpc:*;
var msgno:*;
var my_date:Date;
var n:*;
var nom:*;
var nopc:*;
var p:*;
var pci:*;
var pp:*;
var pstr:*;
var ptime:*;
var q:*;
var reason:*;
var s:*;
var sarray:Array;
var self:Number;
var selfid:Number;
var so47:*;
var so93:*;
var str:String;
var strText:String;
var stra:*;
var t:int;
var tbanned:*;
var tfriend:*;
var tgagged:*;
var tmodplus:*;
var tt:*;
var type:*;
var u:*;
var uid:int;
var uuid:*;
var v:*;
var vt:*;
var vx:*;
var loc1:*;
u = undefined;
UserIndex = undefined;
n = undefined;
stra = undefined;
t = 0;
uid = 0;
s = undefined;
vx = undefined;
str = null;
pstr = undefined;
gpa = undefined;
ll = undefined;
j = undefined;
c = undefined;
IsPrivateMessage = false;
IsPrivateChat = false;
IsNew = false;
IsDeleteMessage = undefined;
IsGagUser = undefined;
IsUnGagUser = undefined;
IsMakeUser = undefined;
IsUnMakeUser = undefined;
IsKickUser = undefined;
IsUnknown = undefined;
IsControlMessage = undefined;
IsLocateUser = undefined;
IsAtUser = undefined;
IsScroller = undefined;
FirstTwo = undefined;
IsSlash = undefined;
tgagged = undefined;
tbanned = undefined;
tfriend = undefined;
tmodplus = undefined;
IsIgnored = false;
strText = null;
lc = undefined;
Links = undefined;
Payload = undefined;
TypeOn = undefined;
TypeOff = undefined;
farray = null;
id = undefined;
so93 = undefined;
friobj = null;
pci = undefined;
ptime = undefined;
i = NaN;
len = undefined;
tt = undefined;
TabsLength = undefined;
uuid = undefined;
arg = undefined;
selfid = NaN;
loctext = undefined;
pp = undefined;
ii = undefined;
d = undefined;
g = undefined;
msgno = undefined;
v = undefined;
NoBanMessage = undefined;
BanTime = undefined;
my_date = null;
UnfairTitle = null;
UnfairReport = null;
hh = undefined;
so47 = undefined;
vt = undefined;
nopc = undefined;
nom = undefined;
maxpc = undefined;
maxm = undefined;
RemoveMessage = undefined;
HaveTab = undefined;
AllowPC = undefined;
TabNumber = NaN;
self = NaN;
IsMainOwner = false;
IsOwner = false;
IsModerator = false;
IsMember = false;
IsOnline = false;
IsBanned = false;
IsForever = false;
IsGagged = false;
OnXat = false;
IsVIP = false;
Powers = undefined;
IsStealth = false;
cc = undefined;
a = undefined;
ee = undefined;
type = undefined;
Text = undefined;
left = NaN;
RndOr = undefined;
Rnd2 = undefined;
q = undefined;
sarray = null;
p = undefined;
doautoredirect = false;
reason = undefined;
bootr = undefined;
event = arg1;
doc = new flash.xml.XMLDocument(event.data);
e = doc.firstChild;
if (e.attributes.n != undefined)
{
e.attributes.n.replace(xatlib.r1, "");
e.attributes.n.replace(xatlib.r2, "");
}
if (e.attributes.t != undefined)
{
e.attributes.t.replace(xatlib.r1, "");
e.attributes.t.replace(xatlib.r2, "");
}
if (e != null)
{
u = xatlib.xInt(e.attributes.u);
UserIndex = xatlib.FindUser(u);
if (e.attributes.t && e.attributes.u > 0)
{
n = 0;
while (n < e.attributes.t.length)
{
if (e.attributes.t.charCodeAt(n) < 32)
{
return;
}
n = (n + 1);
}
}
if (e.nodeName != "y")
{
if (e.nodeName != "x")
{
if (e.nodeName != "a")
{
if (e.nodeName != "bl")
{
if (e.nodeName != "v")
{
if (e.nodeName != "ap")
{
if (e.nodeName != "gp")
{
if (e.nodeName == "m" || e.nodeName == "p" || e.nodeName == "c" || e.nodeName == "z")
{
if (!GotDone && global.xc & 32768)
{
return;
}
IsPrivateMessage = false;
IsPrivateChat = false;
IsNew = true;
IsDeleteMessage = false;
IsGagUser = false;
IsUnGagUser = false;
IsMakeUser = false;
IsUnMakeUser = false;
IsKickUser = false;
IsUnknown = false;
IsControlMessage = false;
IsLocateUser = false;
IsAtUser = false;
IsScroller = false;
if (!e.attributes.t)
{
e.attributes.t = "";
}
FirstTwo = e.attributes.t.substr(0, 2);
IsSlash = FirstTwo.substr(0, 1) == "/";
if (e.attributes.u == 0)
{
IsScroller = false;
}
if (e.nodeName == "p" || e.nodeName == "z")
{
IsPrivateMessage = true;
}
if (e.nodeName == "c")
{
IsControlMessage = true;
}
if (e.attributes.s & 1)
{
IsNew = false;
}
if (IsPrivateMessage && e.attributes.s & 2)
{
IsPrivateChat = true;
}
if (!IsSlash && e.nodeName == "m" && e.attributes.u == undefined)
{
return;
}
if (e.attributes.t.indexOf("") != -1)
{
IsSlash = true;
}
e.attributes.t = xatlib.Replace(e.attributes.t, ">", " ");
if (IsPrivateMessage && !IsPrivateChat && !IsSlash)
{
e.attributes.t = " " + e.attributes.t;
}
if (IsSlash)
{
if (FirstTwo == "/d")
{
IsDeleteMessage = true;
}
if (FirstTwo == "/s")
{
IsScroller = true;
}
if (e.nodeName == "c" && FirstTwo == "/g")
{
IsGagUser = true;
}
if (e.nodeName == "c" && FirstTwo == "/u")
{
IsUnGagUser = true;
}
if (e.nodeName == "c" || e.nodeName == "p")
{
if (FirstTwo == "/m")
{
IsMakeUser = true;
}
if (FirstTwo == "/r")
{
IsUnMakeUser = true;
}
if (FirstTwo == "/k")
{
IsKickUser = true;
}
}
if (e.nodeName == "z")
{
if (FirstTwo == "/l")
{
IsLocateUser = true;
}
if (FirstTwo == "/a")
{
IsAtUser = true;
}
}
if (FirstTwo == "/R")
{
Payload = e.attributes.t.substr(2);
TypeOn = Payload == "TypeOn";
TypeOff = Payload == "TypeOff";
if (TypeOn || TypeOff)
{
if (TypeOff || IsPrivateMessage || !main.ctabsmc.TabIsPrivate())
{
main.SetTyping(u, TypeOn);
}
}
return;
}
if (FirstTwo == "/b")
{
if (e.attributes.t != "/bd")
{
if (e.attributes.t != "/bf")
{
farray = e.attributes.t.substr(3).split(",");
id = xatlib.xInt(farray[0]);
if (id != todo.w_userno)
{
if (todo.w_friendlist2[id] == undefined)
{
friobj = new Object();
friobj.u = id;
friobj.v = 0;
friobj.n = xatlib.CleanTextNoXat(farray[3]);
friobj.a = "";
friobj.h = "";
todo.w_friendlist.push(friobj);
if (todo.w_friendlist2[id] == undefined)
{
todo.w_friendlist2[id] = new Object();
}
todo.w_friendlist2[id].flags = xatlib.xInt(todo.w_friendlist2[id].flags) | 1;
}
}
else
{
so93 = xatlib.getLocal("chat", "/");
so93.objectEncoding = flash.net.ObjectEncoding.AMF0;
if (1 && !(so93 == null))
{
so93.data.w_name = loc2 = xatlib.CleanTextNoXat(farray[3]);
todo.w_name = loc2;
so93.data.w_avatar = loc2 = farray[4] == undefined ? "" : xatlib.CleanAv(farray[4]);
todo.w_avatar = loc2;
so93.data.w_homepage = loc2 = farray[5] == undefined ? "" : xatlib.UrlAv(farray[5]);
todo.w_homepage = loc2;
so93.data.w_userrev = loc2 = farray[6] == undefined ? 0 : farray[6];
todo.w_userrev = loc2;
if (farray[7].indexOf("|") != -1)
{
so93.data.w_Mask = loc2 = farray[7].split("|");
todo.w_Mask = loc2;
}
uid = xatlib.FindUser(todo.w_userno);
if (uid != -1)
{
todo.Users[uid].n = todo.w_name;
todo.DoBuildUserList = true;
xmessage.DeleteOneUserMc(uid);
}
so93.flush();
}
}
}
else
{
xatlib.MainSolWrite("w_friendlist", todo.w_friendlist);
xatlib.MainSolWrite("w_friendlist2", todo.w_friendlist2);
}
}
else
{
todo.w_friendlist.length = 0;
todo.w_friendlist2 = new Object();
}
}
if (FirstTwo == "/p")
{
pci = xatlib.xInt(e.attributes.t.indexOf(","));
if (pci != -1)
{
i = xatlib.FindUser(todo.w_userno);
todo.Users[i].gagged = true;
todo.DoBuildUserList = true;
UngagTimeout = flash.utils.getTimer() + xatlib.xInt(e.attributes.t.substr(pci + 1)) * 1000;
}
ptime = 0;
if (pci != -1)
{
ptime = xatlib.xInt(e.attributes.t.substr(2, (pci - 1)));
}
else
{
ptime = xatlib.xInt(e.attributes.t.substr(2));
}
id = " (" + e.attributes.d + ")";
if (ptime != 0)
{
if (ptime != -1)
{
todo.helpstr = xconst.ST(193, Math.ceil(ptime / 60).toString(), "3") + id;
todo.HelpUpdate = 0;
}
else
{
len = todo.Users.length;
tt = 0;
while (tt < len)
{
todo.Users[tt].gagged = undefined;
tt = (tt + 1);
}
todo.DoBuildUserList = true;
todo.helpstr = xconst.ST(192) + id;
todo.HelpUpdate = 0;
}
}
}
if (FirstTwo == "/t")
{
TabsLength = main.ctabsmc.tabs.length;
tt = 0;
while (tt < TabsLength)
{
if (main.ctabsmc.tabs[tt].User == u && main.ctabsmc.tabs[tt].Flags & 16)
{
xkiss.Kiss({"t":e.attributes.t.substr(2), "u":e.attributes.u, "k":"Ttth"});
main.Private_onDelete(tt);
}
tt = (tt + 1);
}
}
if (e.nodeName == "m")
{
if (FirstTwo == "/g" || FirstTwo == "/u" || FirstTwo == "/m" || FirstTwo == "/r" || FirstTwo == "/k" || FirstTwo == "/n")
{
if (e.attributes.p != undefined)
{
e.attributes.p = xatlib.Replace(e.attributes.p, ">", " ");
}
uid = xatlib.FindUser(e.attributes.d);
if (uid != -1)
{
if (FirstTwo != "/g")
{
if (FirstTwo != "/u")
{
if (FirstTwo != "/m")
{
if (FirstTwo != "/r")
{
if (FirstTwo != "/k")
{
if (FirstTwo == "/n")
{
e.attributes.t = SysMsg(4, e.attributes.p, uid);
}
}
else
{
uuid = xatlib.FindUser(e.attributes.u);
arg = e.attributes.p.split("#");
if (arg.length == 2 && !todo.HasPower(uuid, 25))
{
e.attributes.p = arg[0];
}
if (arg.length == 3 && !todo.HasPower(uuid, 121))
{
e.attributes.p = arg[0];
}
e.attributes.t = SysMsg(1, undefined, uid, e.attributes.p);
}
}
else
{
e.attributes.t = SysMsg(0, "r", uid);
}
}
else
{
e.attributes.t = SysMsg(0, e.attributes.p, uid);
}
}
else
{
e.attributes.t = SysMsg(3, undefined, uid, e.attributes.p, xatlib.xInt(e.attributes.t.substr(2)));
}
}
else
{
if (e.attributes.t.substr(0, 3) != "/gg")
{
if (e.attributes.t.substr(0, 3) != "/gm")
{
e.attributes.t = SysMsg(2, undefined, uid, e.attributes.p, xatlib.xInt(e.attributes.t.substr(2)), e.attributes.w);
}
else
{
e.attributes.t = SysMsg(6, undefined, uid, e.attributes.p, xatlib.xInt(e.attributes.t.substr(3)));
}
}
else
{
e.attributes.t = SysMsg(5, undefined, uid, e.attributes.p, xatlib.xInt(e.attributes.t.substr(3)));
}
}
IsSlash = false;
}
}
}
}
if (!IsSlash)
{
if (!(UserIndex >= 0))
{
};
if (UserIndex >= 0 && todo.Users[UserIndex].w == 176)
{
e.attributes.t = xatlib.ReversePower(e.attributes.t);
}
e.attributes.t = xatlib.PreProcSmilie(e.attributes.t, !(u == todo.w_userno));
}
if (todo.w_mainowner)
{
IsGagUser = false;
}
MessageCount = 0;
if (UserIndex == -1 && !IsSlash)
{
if (u != 0)
{
if (todo.FlagBits & xconst.f_Live && e.nodeName == "m")
{
todo.Users.push({"n":"", "u":u, "v":0, "a":"", "h":"", "online":e.nodeName != "z" ? false : undefined, "onsuper":e.nodeName != "z" ? undefined : true, "owner":false, "friend":OnFriendList(u)});
UserIndex = xatlib.FindUser(u);
todo.Users[UserIndex].n = xatlib.StripSmilies(xatlib.NameNoXat(e.attributes.n));
todo.Users[UserIndex].a = e.attributes.a;
todo.Users[UserIndex].h = e.attributes.h;
todo.Users[UserIndex].sn = xatlib.xJSONdecode(e.attributes.sn);
todo.Users[UserIndex].v = e.attributes.v;
if (todo.Users[UserIndex].n == "")
{
todo.Users[UserIndex].n = xatlib.GetDefaultName(todo.Users[UserIndex].u);
}
if (todo.Users[UserIndex].a == "")
{
todo.Users[UserIndex].a = xatlib.GetDefaultAvatar(todo.Users[UserIndex].u);
}
if (todo.Users[UserIndex].h == "")
{
todo.Users[UserIndex].h = "";
}
todo.Users[UserIndex].registered = e.attributes.N;
todo.Users[UserIndex].q = e.attributes.q;
todo.Users[UserIndex].Bride = xatlib.xInt(e.attributes.d2);
todo.Users[UserIndex].aFlags = xatlib.xInt(e.attributes.d0);
}
else
{
todo.Users.push({"n":"", "u":u, "v":0, "a":"", "h":"", "online":e.nodeName != "z" ? false : undefined, "onsuper":e.nodeName != "z" ? undefined : true, "owner":false, "friend":OnFriendList(u)});
UserIndex = xatlib.FindUser(u);
}
}
}
tgagged = UserIndex == -1 ? false : todo.Users[UserIndex].gagged;
tbanned = UserIndex == -1 ? false : todo.Users[UserIndex].banned && !(todo.Users[UserIndex].flag0 & 131072);
tfriend = UserIndex == -1 ? false : todo.Users[UserIndex].friend;
if (IsPrivateMessage && (tgagged || tbanned || e.attributes.b == 1) && !tfriend && !IsAtUser && !IsLocateUser)
{
return;
}
tmodplus = UserIndex == -1 ? false : todo.Users[UserIndex].u < 1000 || todo.Users[UserIndex].mainowner || todo.Users[UserIndex].owner || todo.Users[UserIndex].moderator;
if (IsPrivateMessage && !IsPrivateChat && todo.HasPowerA(todo.w_Powers, 69, todo.w_Mask) && !tfriend && !tmodplus && !IsAtUser && !IsLocateUser)
{
return;
}
if (IsControlMessage && tbanned)
{
return;
}
if (e.attributes.q & 2)
{
todo.Users[UserIndex].VIP = true;
}
if (e.nodeName != "z")
{
if (e.nodeName == "m" && GotDone)
{
if (!(UserIndex == -1) && todo.Users[UserIndex].gagged)
{
todo.Users[UserIndex].gagged = false;
todo.DoBuildUserList = true;
}
if (!(UserIndex == -1) && !(todo.Users[UserIndex].online == true))
{
xmessage.DeleteOneUserMc(UserIndex);
}
if (UserIndex != -1)
{
todo.Users[UserIndex].online = true;
}
}
}
else
{
if (UserIndex != -1)
{
if (todo.Users[UserIndex].onsuper != true)
{
xmessage.DeleteOneUserMc(UserIndex);
}
todo.Users[UserIndex].onsuper = true;
}
}
if (!(UserIndex == -1) && todo.Users[UserIndex].online == false)
{
if (e.attributes.n != undefined)
{
if (UserIndex != -1)
{
if (e.attributes.n.substr(0, 1) == "$")
{
e.attributes.n = e.attributes.n.substr(1);
}
todo.Users[UserIndex].n = xatlib.NameNoXat(e.attributes.n);
todo.Users[UserIndex].a = e.attributes.a;
todo.Users[UserIndex].h = e.attributes.h;
todo.Users[UserIndex].v = e.attributes.v;
if (todo.Users[UserIndex].n == "")
{
todo.Users[UserIndex].n = xatlib.GetDefaultName(todo.Users[UserIndex].u);
}
if (todo.Users[UserIndex].a == "")
{
todo.Users[UserIndex].a = xatlib.GetDefaultAvatar(todo.Users[UserIndex].u);
}
if (todo.Users[UserIndex].h == "")
{
todo.Users[UserIndex].h = "";
}
todo.Users[UserIndex].registered = e.attributes.N;
xmessage.DeleteOneUserMc(UserIndex);
todo.DoUpdateMessages = true;
}
}
}
if (!(UserIndex == -1) && GotDone && (todo.Users[UserIndex].n == "" || GetRev(e.attributes.u) > todo.Users[UserIndex].v) && !IsSlash)
{
NetworkLocateUser(u);
}
if (!(UserIndex == -1) && OnFriendList(todo.Users[UserIndex].u))
{
len = todo.w_friendlist.length;
g = 0;
while (g < len)
{
if (todo.w_friendlist[g].u == todo.Users[UserIndex].u)
{
if (!(xatlib.StripSpace_(todo.Users[UserIndex].n) == xatlib.StripSpace_(todo.w_friendlist[g].n)) || !(todo.Users[UserIndex].a == todo.w_friendlist[g].a) || !(todo.Users[UserIndex].h == todo.w_friendlist[g].h))
{
UpdateFriendList(todo.Users[UserIndex].u, true);
}
}
g = (g + 1);
}
}
IsIgnored = OnIgnoreList(u);
if ((todo.w_mainowner || todo.w_owner || todo.w_moderator || IgnoreTime(u) < 0) && !IsPrivateMessage && !IsPrivateChat)
{
IsIgnored = false;
}
if (todo.FlagBits & xconst.f_Live && IsPrivateMessage && !IsPrivateChat && !IsSlash && !(todo.Users[UserIndex].member || todo.Users[UserIndex].moderator || todo.Users[UserIndex].owner || todo.Users[UserIndex].mainowner))
{
return;
}
strText = e.attributes.t;
strText = xatlib.CleanText(strText, 1).toLowerCase();
lc = strText.toLowerCase();
if (!(strText.indexOf("chat.php?") == -1) || !(lc.indexOf("freexat") == -1) || !(lc.indexOf("freesub") == -1) || !(lc.indexOf("listchats") == -1) || !(lc.indexOf("llstchats") == -1))
{
if (FirstTwo.substr(0, 1) != "/")
{
IsSlash = true;
}
}
Links = xatlib.CountLinks(e.attributes.t);
if (!(UserIndex == -1) && e.nodeName == "m" && todo.Users[UserIndex].u > 101 && !todo.Users[UserIndex].member && !todo.Users[UserIndex].moderator && !todo.Users[UserIndex].owner && !todo.Users[UserIndex].mainowner)
{
if (Links > 0)
{
IsSlash = true;
}
}
if (e.nodeName == "m" && todo.messageecho == "l" && Links > 0)
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, e.attributes.u, e.attributes.t);
}
}
if (IsLocateUser)
{
selfid = xatlib.FindUser(todo.w_userno);
uid = xatlib.FindUser(u);
if (u > 101 && main.utabsmc.tabs[2])
{
if (uid < 0)
{
loc3 = ((loc2 = todo).Tickled + 1);
loc2.Tickled = loc3;
todo.Users.push({"n":"", "u":u, "v":0, "a":"", "h":"", "TickCnt":(loc2 = todo).Tickled});
}
else
{
loc3 = ((loc2 = todo).Tickled + 1);
loc2.Tickled = loc3;
todo.Users[uid].TickCnt = (loc2 = todo).Tickled;
if (!todo.Users[uid].ignored)
{
main.utabsmc.ColorTab(2, 39168);
main.utabsmc.GlowTab(2);
main.utabsmc.Notif = true;
}
}
}
if (!(todo.Users[selfid].flag0 & 1024 && u > 101))
{
if (!(todo.HasPower(selfid, 5) && u > 101 && (UserIndex == -1 || !(todo.Users[UserIndex].online == true))))
{
if (!OnIgnoreList(u) || u <= 101)
{
if (OnFriendList(u) || u <= 101)
{
str = xatlib.GroupUrl();
}
else
{
str = "_" + xconst.ST(126);
}
if (flash.utils.getTimer() - LastLocate > 1150)
{
if (!(todo.w_userno <= 101 && todo.w_name.substr(0, 2) == "$$"))
{
NetworkSendMsg(todo.w_userno, "/a" + str, 0, u, 0);
LastLocate = flash.utils.getTimer();
}
}
}
}
}
}
else
{
if (IsAtUser)
{
loctext = "";
if (e.attributes.t.substr(0, 3) != "/a_")
{
if (e.attributes.t.substr(2, xconst.usedomain.length) != xconst.usedomain)
{
loctext = e.attributes.t.substr(2);
}
else
{
loctext = xconst.ST(129, e.attributes.t.substr(2));
}
}
else
{
loctext = xconst.ST(126);
}
UserIndex = xatlib.FindUser(xatlib.xInt(e.attributes.u));
if (todo.Users[UserIndex].UnmaskedPowers == undefined)
{
todo.Users[UserIndex].UnmaskedPowers = new Array();
}
if (todo.Users[UserIndex].Powers == undefined)
{
todo.Users[UserIndex].Powers = new Array();
}
pp = 0;
while (pp < todo.MAX_PWR_INDEX)
{
ii = "p" + pp;
if (e.attributes[ii] != undefined)
{
todo.Users[UserIndex].UnmaskedPowers[pp] = e.attributes[ii];
if (todo.Users[UserIndex].Powers[pp] == undefined)
{
todo.Users[UserIndex].Powers[pp] = e.attributes[ii];
}
}
pp = (pp + 1);
}
if (e.attributes.po != undefined)
{
todo.Users[UserIndex].PowerO = e.attributes.po;
}
todo.Users[UserIndex].n = xatlib.NameNoXat(e.attributes.n);
todo.Users[UserIndex].s = xatlib.GetStatus(e.attributes.n);
todo.Users[UserIndex].coins = e.attributes.x;
todo.Users[UserIndex].days = e.attributes.y;
todo.Users[UserIndex].debug = e.attributes.g;
i = 0;
while (i < main.dialog_layer.numChildren)
{
d = main.dialog_layer.getChildAt(i);
if (d as DialogActions)
{
d.WriteLocation(loctext, e.attributes.u, e.attributes.N);
}
i = (i + 1);
}
if (e.attributes.n != undefined)
{
UserIndex = xatlib.FindUser(xatlib.xInt(e.attributes.u));
if (UserIndex != -1)
{
if (e.attributes.n.substr(0, 1) == "$")
{
e.attributes.n = e.attributes.n.substr(1);
}
todo.Users[UserIndex].v = e.attributes.v;
todo.Users[UserIndex].n = xatlib.NameNoXat(e.attributes.n);
todo.Users[UserIndex].u = xatlib.xInt(e.attributes.u);
todo.Users[UserIndex].a = e.attributes.a;
todo.Users[UserIndex].h = e.attributes.h;
todo.Users[UserIndex].sn = xatlib.xJSONdecode(e.attributes.sn);
todo.Users[UserIndex].registered = e.attributes.N;
if (todo.Users[UserIndex].n == "")
{
todo.Users[UserIndex].n = xatlib.GetDefaultName(todo.Users[UserIndex].u);
}
if (todo.Users[UserIndex].a == "")
{
todo.Users[UserIndex].a = xatlib.GetDefaultAvatar(todo.Users[UserIndex].u);
}
if (todo.Users[UserIndex].h == "")
{
todo.Users[UserIndex].h = "";
}
xmessage.DeleteOneUserMc(UserIndex);
xatlib.PurgeMessageFromUser(todo.Users[UserIndex].u);
todo.DoUpdateMessages = true;
todo.DoBuildUserList = true;
if (todo.Users[UserIndex].tUpd != undefined)
{
main.ctabsmc.tabs[todo.Users[UserIndex].tUpd].h = loc2 = todo.Users[UserIndex].n;
main.ctabsmc.tabs[todo.Users[UserIndex].tUpd].t = loc2;
main.ctabsmc.UpdateTabs();
todo.Users[UserIndex].tUpd = undefined;
}
if (OnFriendList(todo.Users[UserIndex].u))
{
len = todo.w_friendlist.length;
g = 0;
while (g < len)
{
if (todo.w_friendlist[g].u == todo.Users[UserIndex].u)
{
if (!(xatlib.StripSpace_(todo.Users[UserIndex].n) == xatlib.StripSpace_(todo.w_friendlist[g].n)) || !(todo.Users[UserIndex].a == todo.w_friendlist[g].a) || !(todo.Users[UserIndex].h == todo.w_friendlist[g].h))
{
UpdateFriendList(todo.Users[UserIndex].u, true);
}
}
g = (g + 1);
}
}
}
}
}
else
{
if (IsKickUser)
{
uuid = xatlib.FindUser(e.attributes.u);
arg = e.attributes.p.split("#");
if (arg.length == 3 && todo.HasPower(uuid, 121))
{
todo.CustomSound = loc2 = arg[1];
todo.BumpSound = loc2;
todo.DoAudieSnd = true;
}
NetworkClose();
SetNetworkState(0, -1);
todo.lb = "n";
todo.DoUpdate = true;
}
else
{
if (IsDeleteMessage)
{
msgno = xatlib.xInt(e.attributes.t.substr(2));
if (msgno != 0)
{
len = todo.Message.length;
v = 0;
while (v < len)
{
if (todo.Message[v].n == msgno)
{
todo.Message[v].ignored = true;
}
v = (v + 1);
}
todo.DoUpdateMessages = true;
}
}
else
{
if (IsGagUser || IsUnGagUser)
{
UpdateGagList(todo.w_useroom, xatlib.xInt(e.attributes.t.substr(2)), IsGagUser);
i = xatlib.FindUser(todo.w_userno);
if (i > -1)
{
todo.Users[i].banned = IsGagUser ? true : false;
xmessage.DeleteOneUserMc(i);
xkiss.ClosePuzzle();
}
if (GotDone && IsGagUser)
{
UnfairGroupName = todo.w_room != todo.w_useroom ? todo.BackVars[1] == undefined ? xconst.ST(0) : xatlib.CleanCommas(todo.BackVars[1]) : global.gn == undefined ? xconst.ST(0) : xatlib.CleanCommas(global.gn);
if (i >= 0 && todo.Users[i].w)
{
BanTime = GetGagTime(todo.w_useroom);
if (BanTime)
{
BanTime = BanTime - xatlib.SockTime();
if (BanTime <= 10 * 3600)
{
NoBanMessage = true;
}
}
}
if (!NoBanMessage && !(UnfairGroupName == xconst.ST(0)))
{
my_date = new Date();
t = Number(my_date.getTime());
UnfairFile = String(xatlib.xInt(Math.random() * 999999)) + t;
UnfairMessage = todo.w_useroom + "," + UnfairGroupName + "," + todo.w_userno + "," + xatlib.CleanTextNoXat(todo.w_name).substr(0, 128) + "," + u + "," + xatlib.CleanCommas(xatlib.GetUsername(u)) + ",,";
UnfairTitle = xconst.ST(125);
UnfairReport = UnfairTitle;
len = todo.Message.length;
hh = 0;
while (hh < len)
{
if (!(todo.Message[hh].s & 2) && (todo.Message[hh].n != 0 ? todo.Message[hh].d == 0 : true))
{
UnfairMessage = UnfairMessage + todo.Message[hh].u + "," + xatlib.CleanCommas(xatlib.GetUsername(todo.Message[hh].u)) + "," + xatlib.CleanCommas(todo.Message[hh].t) + ",,";
}
if (todo.Message[hh].u == u)
{
if (todo.Message[hh].t.substr(0, 20) == " " + xconst.ST(119))
{
UnfairTitle = xatlib.GetUsername(todo.Message[hh].u) + " " + xconst.ST(127);
UnfairReport = todo.Message[hh].t.substr(7);
}
}
hh = (hh + 1);
}
xatlib.UnfairPopup(UnfairTitle, UnfairReport);
}
}
}
else
{
if (IsMakeUser || IsUnMakeUser)
{
if (IsMakeUser && todo.FlagBits & xconst.f_Live)
{
w_redirectport = undefined;
}
so47 = xatlib.getLocal("chat" + String(todo.w_useroom), "/");
so47.objectEncoding = flash.net.ObjectEncoding.AMF0;
if (IsMakeUser)
{
todo.w_userrev = xatlib.xInt(todo.w_userrev);
so47.data.pass = xatlib.xInt(e.attributes.t.substr(2));
}
else
{
delete so47.data.pass;
}
so47.flush();
i = xatlib.FindUser(todo.w_userno);
if (i > -1)
{
if (todo.Users[i].gagged == true)
{
todo.Users[i].gagged = false;
todo.DoBuildUserList = true;
}
}
}
else
{
if (IsScroller)
{
main.SetScroller(e.attributes.t.substr(2, 510));
}
else
{
if (!IsUnknown && !IsSlash)
{
loc3 = ((loc2 = todo).mi + 1);
loc2.mi = loc3;
todo.Message.push({"i":todo.mi * 2, "n":e.attributes.i, "t":e.attributes.t, "u":u, "ignored":IsIgnored, "s":e.attributes.s, "d":IsPrivateChat ? u : 0, "p":IsPrivateMessage, "pb":e.attributes.pb});
if (todo.messageecho == "m")
{
if (network.YC)
{
vt = xatlib.xInt(todo.w_d1) - network.YC;
if (vt < 0)
{
vt = 0;
}
vt = xatlib.xInt(vt / (24 * 3600) + 0.3);
if (vt > 0)
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, todo.mi * 2, e.attributes.t);
}
}
}
}
if (!todo.bMobile && !(main.mscrollmc.Scrolling == true) || todo.bMobile && !(main.mbs.Scrolling == true))
{
nopc = 0;
nom = 0;
len = todo.Message.length;
tt = 0;
while (tt < len)
{
if (todo.Message[tt].s != 2)
{
nom = (nom + 1);
}
else
{
nopc = (nopc + 1);
}
tt = (tt + 1);
}
maxpc = 100;
maxm = 150;
while (nopc > maxpc || nom > maxm)
{
len = todo.Message.length;
RemoveMessage = undefined;
tt = 0;
while (tt < len)
{
if (nopc > maxpc)
{
if (todo.Message[tt].s == 2)
{
xmessage.DeleteOneMessageMc(tt);
RemoveMessage = todo.Message.splice(tt, 1);
nopc = (nopc - 1);
break;
}
}
else
{
if (nom > maxm)
{
if (todo.Message[tt].s != 2)
{
xmessage.DeleteOneMessageMc(tt);
RemoveMessage = todo.Message.splice(tt, 1);
nom = (nom - 1);
break;
}
}
}
tt = (tt + 1);
}
if (UserGotMessage(RemoveMessage[0].u))
{
continue;
}
len = todo.Users.length;
tt = 0;
while (tt < len)
{
if (todo.Users[tt].u == RemoveMessage[0].u)
{
if (todo.Users[tt].online)
{
continue;
}
else
{
if (todo.Users[tt].u != todo.w_userno)
{
if (todo.Users[tt].friend)
{
if (todo.Users[tt].online != undefined)
{
xmessage.DeleteOneUserMc(tt);
}
todo.Users[tt].online = undefined;
}
else
{
xmessage.DeleteOneUserMc(tt);
todo.Users.splice(tt, 1);
}
todo.DoBuildUserList = true;
}
continue;
}
}
tt = (tt + 1);
}
}
}
if (!IsUnknown && IsNew && !IsIgnored)
{
if (!(main.ctabsmc.TabIsPrivate() && !(main.ctabsmc.TabUser() == u)))
{
selfid = xatlib.FindUser(todo.w_userno);
main.ProcessSounds(e.attributes.t, selfid == -1 ? 0 : !todo.HasPower(selfid, 8), selfid);
}
}
if (!IsUnknown && IsNew && !IsPrivateChat)
{
GlowUser(u);
if (main.ctabsmc.TabIsPrivate())
{
if (todo.w_useroom != todo.w_room)
{
if (todo.w_useroom == todo.group)
{
main.ctabsmc.ColorTab(1, 39168);
main.ctabsmc.GlowTab(1);
}
}
else
{
main.ctabsmc.ColorTab(0, 39168);
main.ctabsmc.GlowTab(0);
}
}
}
if (!IsUnknown && IsPrivateChat && !IsIgnored)
{
selfid = xatlib.FindUser(todo.w_userno);
HaveTab = -1;
AllowPC = true;
if (e.attributes.u != undefined)
{
if (!todo.Users[UserIndex].mainowner && !todo.Users[UserIndex].owner && !todo.Users[UserIndex].moderator)
{
if (todo.HasPowerA(todo.w_Powers, 10, todo.w_Mask) || todo.FlagBits & xconst.f_Live && !todo.HasPowerA(todo.w_Powers, 10))
{
if (!OnFriendList(todo.Users[UserIndex].u))
{
if (todo.Users[UserIndex].u > 101)
{
AllowPC = false;
tt = 0;
while (tt < main.ctabsmc.tabs.length)
{
if (main.ctabsmc.tabs[tt].User == todo.Users[UserIndex].u)
{
AllowPC = true;
HaveTab = tt;
}
tt = (tt + 1);
}
}
}
}
}
if (AllowPC)
{
TabNumber = HaveTab == -1 ? main.ctabsmc.TabAdd(u, 16777215, 1, main.Private_onRelease, main.Private_onDelete) : HaveTab;
main.ctabsmc.UpdateTabs();
if (main.ctabsmc.TabSelected() != TabNumber)
{
main.ctabsmc.GlowTab(TabNumber);
main.ctabsmc.ColorTab(TabNumber, 39168);
}
todo.DoBuildUserList = true;
}
if (AllowPC)
{
if (todo.HasPower(UserIndex, 75))
{
if (e.attributes.t.indexOf("(bump") != -1)
{
Superior = function (arg1:*, arg2:*):*
{
if (todo.Users[arg1].mainowner)
{
return false;
}
if (todo.Users[arg1].owner)
{
return todo.Users[arg2].mainowner ? true : false;
}
if (todo.Users[arg1].moderator)
{
return todo.Users[arg2].mainowner || todo.Users[arg2].owner ? true : false;
}
if (todo.Users[arg2].mainowner || todo.Users[arg2].owner || todo.Users[arg2].moderator)
{
return true;
}
return false;
}
self = xatlib.FindUser(todo.w_userno);
if (OnFriendList(todo.Users[UserIndex].u) || todo.Users[UserIndex].u < 101 || Superior(self, UserIndex))
{
main.ctabsmc.ColorTab(TabNumber, 16711680);
t = flash.utils.getTimer();
if (todo.LastBump == -1 || t - todo.LastBump > 20000)
{
todo.BumpSound = loc2 = "laserfire3";
todo.CustomSound = loc2;
todo.DoAudieSnd = true;
todo.LastBump = t;
}
}
}
}
}
}
}
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
}
}
}
}
}
}
}
}
}
else
{
if (e.nodeName != "g")
{
if (e.nodeName == "u" || e.nodeName == "o")
{
if (e.attributes.n == null || e.attributes.n == undefined)
{
e.attributes.n = "";
}
if (e.attributes.a == null || e.attributes.a == undefined)
{
e.attributes.a = "";
}
if (e.attributes.h == null || e.attributes.h == undefined)
{
e.attributes.h = "";
}
IsMainOwner = false;
IsOwner = false;
IsModerator = false;
IsMember = false;
IsOnline = false;
IsBanned = false;
IsForever = false;
IsGagged = false;
IsNew = e.nodeName == "u";
OnXat = !((xatlib.xInt(e.attributes.q) & 1) == 0);
IsVIP = !((xatlib.xInt(e.attributes.f) & 32) == 0) || !((xatlib.xInt(e.attributes.q) & 2) == 0);
Powers = [];
if (IsVIP)
{
t = 0;
while (t < todo.MAX_PWR_INDEX)
{
Powers.push(xatlib.xInt(e.attributes[("p" + t)]));
t = (t + 1);
}
}
if ((e.attributes.f & 7) == 1)
{
IsMainOwner = true;
}
if ((e.attributes.f & 7) == 2)
{
IsModerator = true;
}
if ((e.attributes.f & 7) == 3)
{
IsMember = true;
}
if ((e.attributes.f & 7) == 4)
{
IsOwner = true;
}
if (e.nodeName == "u")
{
IsOnline = true;
}
if (e.attributes.s & 1 || e.attributes.f & 8)
{
IsNew = false;
}
if (e.attributes.f & 16)
{
IsBanned = true;
}
if (e.attributes.f & 64)
{
IsForever = true;
}
if (e.attributes.f & 256)
{
IsGagged = true;
}
if (IsNew && todo.w_sound & 1 && !IsBanned && u <= 2000000000 - 100000)
{
if (!(main.ctabsmc.TabIsPrivate() && !(main.ctabsmc.TabUser() == u)))
{
todo.DoUserSnd = true;
}
}
if (u != todo.w_userno)
{
UserIndex = xatlib.FindUser(u);
IsStealth = false;
if (!(e.attributes.n == undefined) && e.attributes.n.substr(0, 1) == "$")
{
IsStealth = IsOwner || IsMainOwner;
e.attributes.n = e.attributes.n.substr(1);
}
if (UserIndex != -1)
{
xmessage.DeleteOneUserMc(UserIndex);
}
else
{
if (e.attributes.n == "")
{
e.attributes.n = xatlib.GetDefaultName(u);
}
if (e.attributes.a == "")
{
e.attributes.a = xatlib.GetDefaultAvatar(u);
}
if (e.attributes.h == "")
{
e.attributes.h = "";
}
UserIndex = (todo.Users.push({}) - 1);
}
todo.Users[UserIndex].n = xatlib.NameNoXat(e.attributes.n);
todo.Users[UserIndex].s = xatlib.GetStatus(e.attributes.n);
todo.Users[UserIndex].v = xatlib.xInt(e.attributes.v);
todo.Users[UserIndex].u = u;
todo.Users[UserIndex].a = e.attributes.a;
todo.Users[UserIndex].h = e.attributes.h;
todo.Users[UserIndex].online = IsOnline;
todo.Users[UserIndex].mainowner = IsMainOwner;
todo.Users[UserIndex].owner = IsOwner;
todo.Users[UserIndex].moderator = IsModerator;
todo.Users[UserIndex].member = IsMember;
todo.Users[UserIndex].onsuper = undefined;
todo.Users[UserIndex].OnXat = OnXat;
todo.Users[UserIndex].Stealth = IsStealth;
todo.Users[UserIndex].friend = OnFriendList(u);
todo.Users[UserIndex].registered = e.attributes.N;
todo.Users[UserIndex].sn = xatlib.xJSONdecode(e.attributes.sn);
todo.Users[UserIndex].VIP = IsVIP;
todo.Users[UserIndex].Powers = Powers;
todo.Users[UserIndex].Bride = xatlib.xInt(e.attributes.d2);
todo.Users[UserIndex].aFlags = xatlib.xInt(e.attributes.d0);
todo.Users[UserIndex].flag0 = xatlib.xInt(e.attributes.f);
todo.Users[UserIndex].w = xatlib.xInt(e.attributes.w);
AddGiftPower(UserIndex);
todo.Users[UserIndex].xNum = e.attributes.x;
if (todo.Users[UserIndex].u == 4294967295)
{
todo.Users[UserIndex].n = todo.Users[UserIndex].n + " Spectators";
}
if (IsNew && main.ctabsmc.TabIsPrivate())
{
if (todo.w_useroom != todo.w_room)
{
if (todo.w_useroom == todo.group)
{
main.ctabsmc.ColorTab(1, 39168);
}
}
else
{
main.ctabsmc.ColorTab(0, 39168);
}
}
todo.DoBuildUserList = true;
if (UserIndex > -1)
{
todo.Users[UserIndex].banned = IsBanned;
todo.Users[UserIndex].forever = IsForever;
todo.Users[UserIndex].gagged = IsGagged;
len = todo.Message.length;
cc = 0;
while (cc < len)
{
if (xatlib.xInt(todo.Message[cc].u) == xatlib.xInt(todo.Users[UserIndex].u))
{
if (IsBanned)
{
todo.Message[cc].ignored = true;
}
}
cc = (cc + 1);
}
todo.DoBuildUserList = true;
todo.DoUpdateMessages = true;
}
if (todo.Users[UserIndex].friend)
{
len = todo.w_friendlist.length;
g = 0;
while (g < len)
{
if (todo.w_friendlist[g].u == u)
{
if (!(xatlib.StripSpace_(todo.Users[UserIndex].n) == xatlib.StripSpace_(todo.w_friendlist[g].n)) || !(todo.Users[UserIndex].a == todo.w_friendlist[g].a) || !(todo.Users[UserIndex].h == todo.w_friendlist[g].h))
{
UpdateFriendList(u, true);
}
}
g = (g + 1);
}
}
if (todo.messageecho == "a")
{
if (todo.Users[UserIndex].banned == true || OnIgnoreList(u))
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, u, "l");
}
}
else
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, u, "u" + e.attributes.a);
}
}
}
}
}
else
{
if (e.nodeName != "l")
{
if (e.nodeName != "i")
{
if (e.nodeName != "w")
{
if (e.nodeName != "f")
{
if (e.nodeName != "k")
{
if (e.nodeName != "dup")
{
if (e.nodeName != "q")
{
if (e.nodeName != "logout")
{
if (e.nodeName != "idle")
{
if (e.nodeName != "abort")
{
if (e.nodeName != "BB")
{
if (e.nodeName == "done")
{
chat.mainDlg.UpdateBackground(todo.usebackground);
chat.mainDlg.UpdateEmotes();
xmessage.OpenGifts(todo.w_userno, 0);
if (global.um != undefined)
{
xatlib.GeneralMessage("", xconst.ST(135) + ":\n\n" + global.um);
main.box_layer.GeneralMessageH.Dia.Ok.But.PressFunc = function (arg1:*):*
{
NetworkMakeUser(global.um, "r");
SetNetworkState(0, -1);
todo.lb = "n";
todo.DoUpdate = true;
NetworkClose();
main.box_layer.GeneralMessageH.Delete();
global.um = undefined;
return;
}
}
RemoveMessagesWithNoUser();
RemoveUsersWithNoMessages();
if (xatlib.IsDefaultName(todo.w_name) && todo.helpstr == "")
{
todo.helpstr = xconst.ST(12, " " + todo.w_name);
todo.HelpUpdate = 0;
}
todo.FV = xatlib.xInt(flash.system.Capabilities.version.split(" ")[1]);
if (todo.FV < 10)
{
todo.helpstr = "Please update your Flash player for best performance, click here: http://www.adobe.com/go/getflashplayer";
todo.helpupdate = 0;
}
if (Bootp != undefined)
{
todo.helpstr = Bootp;
todo.HelpUpdate = 0;
Bootp = undefined;
}
xmessage.UpdateMessages(true, false);
if (!chat.IM.ImInit && global.xc & 2048)
{
try
{
main.mcLoad.ImSendInit();
}
catch (e:Error)
{
};
}
todo.DoBuildUserList = true;
GotDone = true;
FI = true;
if (todo.connectchannel != undefined)
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", chat.connectchannel, chat.connectuser, chat.connectmsg);
}
todo.connectchannel = undefined;
}
if (todo.RefreshLogin)
{
NetworkLogin(todo.w_userno, 0);
todo.WV2 = true;
todo.RefreshLogin = false;
}
if (todo.gconfig["g112"])
{
todo.Message.push({"n":0, "t":" " + todo.gconfig["g112"], "u":0, "s":0, "d":0});
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
delete todo.gconfig["g112"];
}
uid = xatlib.FindUser(todo.w_userno);
todo.Away = todo.HasPower(uid, 144) ? 1 : 0;
todo.Typing = todo.HasPower(uid, 172) ? 1 : 0;
}
}
else
{
if (YI != xatlib.xInt(e.attributes.y))
{
return;
}
tickcode.BB = e.attributes.t.split(",");
}
}
else
{
todo.lb = "n";
todo.DoUpdate = true;
NetworkClose();
SetNetworkState(5, 12 * 6);
}
}
else
{
todo.helpstr = xconst.ST(33);
todo.HelpUpdate = 0;
SetNetworkState(0, -1);
todo.lb = "n";
todo.DoUpdate = true;
NetworkClose();
RemoveMessagesWithNoUser();
}
}
else
{
todo.helpstr = xconst.ST(35);
todo.HelpUpdate = 0;
SetNetworkState(0, -1);
todo.lb = "n";
todo.DoUpdate = true;
NetworkClose();
uid = xatlib.FindUser(todo.w_userno);
todo.Users[uid].online = false;
xmessage.DeleteOneUserMc(uid);
RemoveMessagesWithNoUser();
}
}
else
{
if (e.attributes.k == undefined)
{
doautoredirect = w_redirectport == undefined;
SetNetworkState(0, -1);
if (e.attributes.r == undefined)
{
w_redirectport = xatlib.xInt(e.attributes.p);
w_redirectdom = e.attributes.d;
if (w_redirectdom.substr(0, 1) == "e")
{
w_redirectdom = w_redirectdom + ".xatech.com";
}
}
else
{
todo.w_useroom = loc2 = xatlib.xInt(e.attributes.r);
todo.w_room = loc2;
main.ctabsmc.UpdateTabs(0);
}
if (!(e.attributes.p2 == undefined) && !(e.attributes.d2 == undefined))
{
uid = xatlib.FindUser(e.attributes.d2);
if (!(e.attributes.p2.indexOf("#") == -1) && !(uid == -1))
{
reason = e.attributes.p2.substr(0, e.attributes.p2.indexOf("#"));
bootr = e.attributes.p2.substr(e.attributes.p2.indexOf("#") + 1);
Bootp = todo.Users[uid].n + " (" + todo.Users[uid].u + ") booted you to " + bootr + (reason == "" ? "." : ". Reason:" + reason);
}
}
todo.lb = "n";
todo.DoUpdate = true;
NetworkClose();
if (doautoredirect)
{
main.logoutbutonPress();
}
}
else
{
SetNetworkState(0, -1);
todo.lb = "n";
todo.DoUpdate = true;
NetworkClose();
if (QK != true)
{
QK = true;
todo.w_userno = 0;
todo.w_userrev = 0;
todo.w_k1 = 0;
todo.w_k2 = 0;
main.logoutbutonPress();
}
}
}
}
else
{
todo.helpstr = xconst.ST(36);
todo.HelpUpdate = 0;
SetNetworkState(0, -1);
todo.lb = "n";
todo.DoUpdate = true;
NetworkClose();
}
}
else
{
todo.OnSuper = false;
}
}
else
{
str = e.attributes.v;
sarray = str.split(",");
len = sarray.length;
p = 0;
while (p < len)
{
UserIndex = xatlib.FindUser(sarray[p]);
if (UserIndex != -1)
{
todo.Users[UserIndex].onsuper = true;
xmessage.DeleteOneUserMc(UserIndex);
}
p = (p + 1);
}
todo.DoBuildUserListScrollUp = true;
}
}
else
{
while (todo.Pools.length)
{
todo.Pools.shift();
}
Text = e.attributes.v;
left = 0;
RndOr = todo.w_userno ^ 2863311530;
Rnd2 = RndOr;
len = Text.length;
q = 0;
while (q < len)
{
if (Text.substr(q, 1) == " " || q == (Text.length - 1))
{
todo.pool = xatlib.xInt(Text.substr(left, q != (Text.length - 1) ? q - left : q - left + 1));
if (left != 0)
{
if (Rnd2 & 1)
{
todo.Pools.push(todo.pool);
}
else
{
todo.Pools.unshift(todo.pool);
}
Rnd2 = Rnd2 >>> 1;
if (Rnd2 == 0)
{
Rnd2 = RndOr;
}
}
else
{
todo.newpool = todo.pool;
}
left = q + 1;
}
q = (q + 1);
}
if (todo.newpool == todo.w_pool)
{
todo.DoBuildUserListScrollUp = true;
}
else
{
main.ctabsmc.UpdateTabs();
todo.w_pool = todo.newpool;
xmessage.ClearLists(false);
todo.DoBuildUserListScrollUp = true;
todo.DoUpdateMessages = true;
}
if (todo.messageecho == "a")
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, 0, "d");
}
}
}
}
else
{
todo.gconfig = new Object();
xconst.MakeBads();
if (todo.w_useroom != todo.w_room)
{
a = e.attributes.b.split(";=");
}
else
{
xatlib.SplitBackground(e.attributes.b);
a = todo.BackVars;
}
todo.usebackground = a[0];
todo.useRadio = a[4];
if (!(todo.useRadio == undefined) && (global.xc & 4096 || todo.useRadio.length < 10))
{
todo.useRadio = undefined;
}
if (todo.config["noradio"])
{
todo.useRadio = undefined;
}
todo.ButCol = a[5];
if (todo.ButCol == undefined || todo.ButCol.length == 0)
{
todo.ButCol = 13158600;
}
else
{
if (todo.ButCol.charAt(0) == "#")
{
todo.ButCol = parseInt(todo.ButCol.substr(1), 16);
}
}
todo.ButCol = xatlib.xInt(todo.ButCol) & 16777215;
todo.ButColW2 = (todo.ButCol & 255) + (todo.ButCol >> 8 & 255) + (todo.ButCol >> 16 & 255);
if (todo.ButColW2 > 384)
{
todo.ButColW = 0;
}
else
{
todo.ButColW = 16777215;
}
main.mcgetachat.RefreshColor();
main.ButtonLoginMc.RefreshColor();
main.retmc.RefreshColor();
if (todo.bThin)
{
main.retmcBut.Col = todo.ButColW;
}
else
{
xatlib.McSetRGB(main.retmcBut.xitem.back, todo.ButColW);
}
if (!todo.bMobile)
{
main.mscrollmc.RefreshColor();
main.uscrollmc.RefreshColor();
}
todo.FlagBits = xatlib.xInt(e.attributes.f);
if (todo.FlagBits & xconst.f_Deleted)
{
chat.mainDlg.visible = false;
xatlib.getURL("http://alltop.com", "_self");
if (todo.lb != "n")
{
main.logoutbutonPress();
}
return;
}
main.logo.visible = true;
chat.mainDlg.MkGpBut();
if (todo.MainFlagBits == undefined)
{
todo.MainFlagBits = todo.FlagBits;
}
if (todo.w_sound == undefined)
{
if (todo.FlagBits & xconst.f_DefNoSound)
{
todo.w_sound = 4;
}
else
{
todo.w_sound = 253;
}
}
if ((todo.w_sound & 4) == 0)
{
todo.w_sound = todo.w_sound | 254;
}
if (global.xc & 8192)
{
todo.w_sound = todo.w_sound & !2;
}
if (global.xt == undefined)
{
main.ctabsmc.tabs[1].t = todo.BackVars[1];
main.ctabsmc.tabs[1].h = main.ctabsmc.tabs[1].t + " ";
}
if (global.xl == undefined)
{
todo.group = todo.BackVars[2];
}
if (xconst.f_Lobby & todo.MainFlagBits)
{
main.ctabsmc.tabs[0].Skip = undefined;
main.ctabsmc.tabs[1].Skip = undefined;
}
else
{
main.ctabsmc.tabs[0].Skip = true;
main.ctabsmc.tabs[1].Skip = true;
}
main.ctabsmc.UpdateTabs();
if (!(e.attributes.v & 1))
{
todo.w_registered = undefined;
}
todo.w_VIP = (e.attributes.v & 3) == 3;
todo.w_ALLP = e.attributes.v & 4;
todo.w_mainowner = false;
todo.w_owner = false;
todo.w_moderator = false;
todo.w_member = false;
if (xatlib.xInt(e.attributes.r) != 1)
{
if (xatlib.xInt(e.attributes.r) != 2)
{
if (xatlib.xInt(e.attributes.r) != 3)
{
if (xatlib.xInt(e.attributes.r) != 4)
{
todo.pass = undefined;
}
else
{
todo.w_owner = true;
}
}
else
{
todo.w_member = true;
}
}
else
{
todo.w_moderator = true;
}
}
else
{
todo.w_mainowner = true;
todo.w_owner = true;
}
if (todo.w_mainowner)
{
if (OnGagList(todo.w_useroom))
{
UpdateGagList(todo.w_useroom, 0, false);
}
i = xatlib.FindUser(todo.w_userno);
if (i > -1)
{
todo.Users[i].banned = false;
xmessage.DeleteOneUserMc(i);
}
}
len = todo.Users.length;
ee = 0;
while (ee < len)
{
if (todo.Users[ee].u == todo.w_userno)
{
todo.Users[ee].member = loc2 = false;
todo.Users[ee].moderator = loc2 = loc2;
todo.Users[ee].owner = loc2 = loc2;
todo.Users[ee].mainowner = loc2;
IsBanned = OnGagList(todo.w_useroom);
todo.Users[ee].banned = IsBanned;
if (todo.w_mainowner)
{
todo.Users[ee].mainowner = true;
}
if (todo.w_owner)
{
todo.Users[ee].owner = true;
}
if ((todo.w_owner || todo.w_mainowner) && todo.w_name.substr(0, 1) == "$")
{
todo.Users[ee].Stealth = true;
}
if (todo.w_moderator)
{
todo.Users[ee].moderator = true;
}
if (todo.w_member)
{
todo.Users[ee].member = true;
}
todo.Users[ee].VIP = todo.w_VIP;
if (!todo.w_VIP)
{
todo.w_Powers = undefined;
}
todo.Users[ee].Powers = todo.w_Powers == undefined ? todo.NO_POWERS.slice() : todo.w_Powers.slice();
if (todo.w_ALLP)
{
todo.Users[ee].Powers[0] = todo.Users[ee].Powers[0] | 1;
}
AddGiftPower(ee);
t = 0;
while (t < todo.MAX_PWR_INDEX)
{
todo.Users[ee].Powers[t] = todo.Users[ee].Powers[t] & !xatlib.xInt(todo.w_Mask == undefined ? 0 : todo.w_Mask[t]);
t = (t + 1);
}
todo.Users[ee].Bride = todo.w_d2;
todo.Users[ee].aFlags = todo.w_d0;
todo.Users[ee].flag0 = xatlib.xInt(e.attributes.f2);
todo.Users[ee].w = xatlib.xInt(e.attributes.w);
todo.Users[ee].sn = xatlib.xJSONdecode(todo.w_sn);
xmessage.DeleteOneUserMc(ee);
todo.DoBuildUserList = true;
break;
}
ee = (ee + 1);
}
main.mcgetachat.SetText(todo.config["uselogindialog"] ? "Login" : todo.w_mainowner && !global.xb ? xconst.ST(34) : xconst.ST(5));
if (main.mcgetachat.fb)
{
main.mcgetachat.removeChild(main.mcgetachat.fb);
main.mcgetachat.fb = undefined;
}
if (global.xc & 16384 && !todo.w_registered)
{
main.mcgetachat.SetText("Login");
main.mcgetachat.fb = xatlib.AttachBut(main.mcgetachat, "fb", 0.65);
}
if ((xconst.f_MembersOnly | xconst.f_MembersOnly2) & todo.FlagBits && !(todo.w_owner || todo.w_moderator || todo.w_member))
{
type = undefined;
loc2 = (xconst.f_MembersOnly | xconst.f_MembersOnly2) & todo.FlagBits;
switch (loc2)
{
case xconst.f_MembersOnly | xconst.f_MembersOnly2:
{
if (!todo.w_VIP)
{
type = xconst.ST(176);
}
break;
}
case xconst.f_MembersOnly2:
{
if (todo.w_registered == undefined)
{
type = xconst.ST(177);
}
break;
}
default:
{
type = xconst.ST(178);
}
}
if (type != undefined)
{
todo.helpstr = xconst.ST(37, type);
todo.HelpUpdate = 0;
}
}
if (todo.messageecho == "a")
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, 0, "d");
}
}
main.SetScroller(todo.FlagBits & xconst.f_Live ? xconst.ST(217) : "");
UserIndex = xatlib.FindUser(todo.w_userno);
if (UserIndex >= 0 && todo.Users[UserIndex].banned && todo.Users[UserIndex].w)
{
xkiss.LoadPuzzle(todo.Users[UserIndex].w);
}
else
{
xkiss.ClosePuzzle();
}
}
}
else
{
UserIndex = xatlib.FindUser(u);
xmessage.DeleteOneUserMc(UserIndex);
if (!(UserIndex == -1) && !(u == todo.w_userno))
{
if (!(todo.Users[UserIndex].online == false) || !(todo.Users[UserIndex].onsuper == false))
{
xmessage.DeleteOneUserMc(UserIndex);
}
todo.Users[UserIndex].online = loc2 = false;
todo.Users[UserIndex].onsuper = loc2;
todo.Users[UserIndex].xNum = undefined;
todo.Users[UserIndex].DJ = undefined;
}
if (!(UserIndex == -1) && !UserGotMessage(todo.Users[UserIndex].u))
{
len = todo.Users.length;
tt = 0;
while (tt < len)
{
if (todo.Users[tt].u == todo.Users[UserIndex].u && !(todo.Users[tt].u == todo.w_userno))
{
todo.Users.splice(tt, 1);
todo.DoBuildUserList = true;
}
tt = (tt + 1);
}
}
todo.DoBuildUserList = true;
if (todo.messageecho == "a")
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, u, "l");
}
}
}
}
}
else
{
if (UserIndex >= 0)
{
todo.Users[UserIndex].xNum = e.attributes.x;
xmessage.DeleteOneUserMc(UserIndex);
}
}
}
}
else
{
gpa = e.attributes.p.split("|");
ll = 0;
while (ll < gpa.length)
{
todo.w_GroupPowers[ll] = xatlib.xInt(gpa[ll]);
ll = (ll + 1);
}
loc2 = 0;
var loc3:*;
loc3 = e.attributes;
for (ll in loc3)
{
if (ll.charAt(0) != "g")
{
continue;
}
if (!todo.HasPowerA(todo.w_GroupPowers, xatlib.xInt(ll.substr(1))))
{
continue;
}
todo.gconfig[ll] = e.attributes[ll];
if (todo.gconfig[ll].charAt(0) != "{")
{
continue;
}
todo.gconfig[ll] = xatlib.xJSONdecode(todo.gconfig[ll]);
}
if (todo.gconfig["g100"])
{
ll = todo.gconfig["g100"].split(",");
todo.gconfig["g100"] = {};
j = 0;
while (j < ll.length)
{
todo.gconfig["g100"][ll[j]] = ll[(j + 1)];
j = j + 2;
}
}
if (todo.HasPowerA(todo.w_GroupPowers, 90))
{
xconst.MakeBads(e.attributes.g90);
}
if (todo.HasPowerA(todo.w_GroupPowers, 106) && todo.gconfig["g106"])
{
c = todo.gconfig["g106"].split("#");
if (todo.HasPowerA(todo.w_GroupPowers, 130))
{
todo.gconfig["g130"] = c.pop();
if (todo.Macros["gback"] === "off")
{
delete todo.gconfig["g130"];
}
}
t = 0;
while (t < c.length)
{
c[t] = xatlib.DecodeColor(c[t]);
t = (t + 1);
}
todo.gconfig["g106"] = c.join("#");
if (!todo.gconfig["g74"])
{
todo.gconfig["g74"] = "smile,biggrin,wink,eek,tongue,cool,mad,confused,redface,frown,crying,sleepy,rolleyes,star,kiss,vampire,pirate";
todo.w_GroupPowers[2] = todo.w_GroupPowers[2] | 65535;
}
}
}
}
else
{
str = " ";
pstr = xconst.pssa[(xatlib.xInt(e.attributes.p) + 1)];
loc2 = xatlib.xInt(e.attributes.r);
switch (loc2)
{
case 0:
{
str = xconst.ST(239, pstr);
break;
}
case 1:
{
str = xconst.ST(240, pstr);
break;
}
case 2:
{
str = xconst.ST(241, pstr);
break;
}
case 3:
{
str = xconst.ST(242, pstr);
break;
}
case 4:
{
str = pstr + " already assigned";
break;
}
case 9:
{
str = pstr + " system error (db down)";
break;
}
default:
{
str = pstr + " unknown errorcode";
break;
}
}
xatlib.GeneralMessage(xconst.ST(237), str);
}
}
else
{
if (e.attributes.e == undefined)
{
todo.w_userno = e.attributes.i;
todo.w_userrev = 0;
todo.w_k1 = e.attributes.k1;
todo.w_d0 = e.attributes.d0;
todo.w_d1 = e.attributes.d1;
todo.w_d2 = xatlib.xInt(e.attributes.d2);
todo.w_d3 = xatlib.xInt(e.attributes.d3);
todo.w_dt = xatlib.xInt(e.attributes.dt);
todo.w_Powers = [];
t = 0;
while (t < todo.MAX_PWR_INDEX)
{
todo.w_Powers.push(xatlib.xInt(e.attributes[("d" + t + 4)]));
t = (t + 1);
}
todo.w_PowerO = e.attributes.dO;
t = xatlib.FindUser(todo.w_d2);
if (t >= 0)
{
todo.w_bride = todo.Users[t].registered;
}
todo.w_coins = xatlib.xInt(e.attributes.c);
todo.w_xats = e.attributes.dx;
todo.w_sn = e.attributes.sn;
if (todo.w_xats)
{
todo.w_coins = xatlib.xInt(todo.w_xats);
}
todo.w_registered = e.attributes.n;
todo.w_k2 = e.attributes.k2;
todo.w_k3 = e.attributes.k3;
SaveRegData();
if (todo.WV2 || e.attributes.RL)
{
todo.lb = "n";
todo.DoUpdate = true;
NetworkClose();
main.logoutbutonPress();
todo.WV2 = false;
}
vx = todo.Macros;
xmessage.ClearLists(true);
todo.Users.push({"n":xatlib.NameNoXat(todo.w_name), "s":todo.Macros == undefined ? undefined : todo.Macros["status"], "u":todo.w_userno, "v":todo.w_userrev, "a":todo.w_avatar, "h":todo.w_homepage, "online":true, "banned":IsBanned, "owner":false, "OnXat":!((xatlib.xInt(global.xc) & 32) == 0), "registered":todo.w_registered, "VIP":todo.w_VIP, "Bride":todo.w_d2, "aFlags":todo.w_d0, "Powers":todo.w_Powers});
AddGiftPower(0);
todo.DoBuildUserList = true;
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
todo.LastScrollTime = undefined;
try
{
main.mcLoad.LoggedIn(1);
}
catch (e:Error)
{
};
if (todo.messageecho == "s")
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, 0, "l");
}
}
}
else
{
t = xatlib.xInt(e.attributes.t);
var loc2:*;
n = loc2 = xatlib.xInt(e.attributes.e);
loc2 = loc2;
switch (loc2)
{
case 6:
{
s = xconst.ST(164);
break;
}
case 8:
{
s = xconst.ST(165);
break;
}
case 10:
{
s = xconst.ST(166);
break;
}
case 11:
{
s = xconst.ST(167);
break;
}
case 13:
{
s = xconst.ST(25);
break;
}
case 14:
{
s = xconst.ST(168);
break;
}
case 15:
{
s = xconst.ST(169);
break;
}
case 16:
{
s = xconst.ST(170);
break;
}
case 17:
{
s = xconst.ST(171);
break;
}
case 18:
{
s = xconst.ST(172);
break;
}
case 22:
{
s = xconst.ST(173);
break;
}
case 24:
{
s = xconst.ST(187, t.toString());
break;
}
case 36:
{
s = xconst.ST(215);
break;
}
case 38:
{
s = xconst.ST(234);
if (t)
{
s = s + " " + xconst.ST(235, t.toString());
}
break;
}
case 50:
{
s = "Single power prevents this";
break;
}
default:
{
s = xconst.ST(174) + " " + n;
}
}
if (n != 39)
{
xatlib.GeneralMessage(xconst.ST(175), s);
}
if (e.attributes.m == undefined)
{
todo.w_Powers = loc2 = undefined;
todo.w_VIP = loc2 = loc2;
todo.w_registered = loc2 = loc2;
todo.w_bride = loc2 = loc2;
todo.w_d0 = loc2;
todo.w_k3 = 0;
todo.w_PowerO = 0;
todo.w_sn = 0;
todo.w_xats = 0;
todo.w_coins = loc2 = 0;
todo.w_dt = loc2 = loc2;
todo.w_d3 = loc2 = loc2;
todo.w_d2 = loc2;
if (todo.w_email == 0 && todo.w_password == "$0")
{
SaveRegData();
try
{
main.mcLoad.LoggedIn(1);
}
catch (e:Error)
{
};
}
else
{
try
{
main.mcLoad.LoggedIn(0);
}
catch (e:Error)
{
};
}
}
}
todo.w_password = undefined;
WV = false;
}
}
else
{
xkiss.LoadWink(e);
}
}
else
{
uid = xatlib.FindUser(e.attributes.u);
if (e.attributes.u == todo.w_userno || uid < 0 || !(todo.Users[uid].ignored == true))
{
xkiss.Kiss({"t":e.attributes.t, "u":e.attributes.u, "k":e.attributes.k, "b":e.attributes.b, "f":e.attributes.f, "x":e.attributes.x, "s":e.attributes.s});
}
if (e.attributes.c != undefined)
{
todo.w_coins = xatlib.xInt(e.attributes.c);
xatlib.MainSolWrite("w_coins", todo.w_coins);
}
}
}
else
{
UpdateChannel(e.attributes.i, e.attributes.u);
if (!(e.attributes.i == 10001) || !(e.attributes.t.substr(0, 1) == "b") || todo.Users[UserIndex].mainowner || todo.Users[UserIndex].owner || todo.Users[UserIndex].moderator)
{
if (e.attributes.i >= 40000 && e.attributes.i < 50000)
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", e.attributes.i, e.attributes.u, e.toString());
}
}
else
{
if (!(e.attributes.i == 10000 && e.attributes.t.substr(0, 1) == "B" && todo.HasPower(selfid, 44) == false))
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", e.attributes.i, e.attributes.u, e.attributes.t);
}
if (e.attributes.i == 10001 && e.attributes.t.substr(0, 1) == "b")
{
xatlib.UpdateDJ(e.attributes.u);
}
}
}
}
}
}
else
{
YI = xatlib.xInt(e.attributes.i);
jt2 = flash.utils.getTimer() - sjt;
YC = xatlib.xInt(e.attributes.c);
YC2 = flash.utils.getTimer();
if (e.attributes.p)
{
stra = e.attributes.p.split("_");
p_w = xatlib.xInt(stra[0]);
p_h = xatlib.xInt(stra[1]);
p_octaves = xatlib.xInt(stra[2]);
p_seed = xatlib.xInt(stra[3]);
t = YI % (p_w * p_h);
p_x = t % p_w;
p_y = Math.floor(t / p_w);
}
}
}
return;
}
public static function RemoveMessagesWithNoUser():*
{
var loc3:*;
loc3 = undefined;
var loc1:*;
loc1 = todo.Message.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
loc3 = xatlib.FindUser(todo.Message[loc2].u);
if (loc3 != -1)
{
if (todo.Users[loc3].n == "")
{
todo.Message[loc2].ignored = true;
}
}
loc2 = (loc2 + 1);
}
todo.DoUpdateMessages = true;
return;
}
public static function RemoveUsersWithNoMessages():*
{
var loc1:*;
loc1 = todo.Users.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (todo.Users[loc2] != undefined)
{
if (todo.Users[loc2].u != todo.w_userno)
{
if (!UserGotUnignoredMessage(todo.Users[loc2].u))
{
if (todo.Users[loc2].online == false)
{
if (todo.Users[loc2].friend)
{
if (todo.Users[loc2].online != undefined)
{
xmessage.DeleteOneUserMc(loc2);
}
todo.Users[loc2].online = undefined;
}
else
{
xmessage.DeleteOneUserMc(loc2);
todo.Users.splice(loc2, 1);
loc2 = (loc2 - 1);
}
todo.DoBuildUserList = true;
}
}
}
}
loc2 = (loc2 + 1);
}
return;
}
public static function GlowUser(arg1:Number):*
{
var loc1:*;
loc1 = xatlib.FindUser(arg1);
if (loc1 == -1)
{
return;
}
var loc2:*;
loc2 = todo.Users[loc1];
if (loc2.mc)
{
tickcode.GlowFlag = true;
loc2.glowc = 6;
loc2 = loc2.mc.av1;
loc2.filters = [todo.TextGlow];
}
return;
}
public static function UserGotMessage(arg1:Number):Boolean
{
var loc1:*;
loc1 = todo.Message.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (todo.Message[loc2].u == arg1)
{
return true;
}
loc2 = (loc2 + 1);
}
return false;
}
public static function UserGotUnignoredMessage(arg1:Number):Boolean
{
var loc1:*;
loc1 = todo.Message.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (todo.Message[loc2].u == arg1 && !(todo.Message[loc2].ignored == true))
{
return true;
}
loc2 = (loc2 + 1);
}
return false;
}
public static function OnGagList(arg1:Number):Boolean
{
var loc1:*;
loc1 = todo.w_banlist.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (todo.w_banlist[loc2].r == arg1)
{
return true;
}
loc2 = (loc2 + 1);
}
return false;
}
public static function GetGagTime(arg1:Number):*
{
var loc1:*;
loc1 = todo.w_banlist.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (todo.w_banlist[loc2].r == arg1)
{
return todo.w_banlist[loc2].t;
}
loc2 = (loc2 + 1);
}
return 0;
}
public static function UpdateGagList(arg1:Number, arg2:Number, arg3:Boolean):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = null;
if (arg3 != true)
{
loc1 = todo.w_banlist.length;
loc2 = 0;
while (loc2 < loc1)
{
if (todo.w_banlist[loc2].r == arg1)
{
todo.w_banlist.splice(loc2);
}
loc2 = (loc2 + 1);
}
}
else
{
if (OnGagList(arg1))
{
loc1 = todo.w_banlist.length;
loc2 = 0;
while (loc2 < loc1)
{
if (todo.w_banlist[loc2].r == arg1)
{
todo.w_banlist[loc2].t = arg2;
break;
}
loc2 = (loc2 + 1);
}
}
else
{
(loc3 = new Object()).r = arg1;
loc3.t = arg2;
todo.w_banlist.push(loc3);
}
}
xatlib.MainSolWrite("w_banlist", todo.w_banlist);
return;
}
public static function OnUserList(arg1:Number, arg2:Boolean=false):Boolean
{
var loc1:*;
loc1 = xatlib.FindUser(arg1);
if (loc1 == -1)
{
return false;
}
if (arg2 == true || todo.Users[loc1].online)
{
return true;
}
return false;
}
public static function OnFriendList(arg1:Number):Boolean
{
var loc1:*;
loc1 = todo.w_friendlist.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (todo.w_friendlist[loc2].u == arg1)
{
return true;
}
loc2 = (loc2 + 1);
}
return false;
}
public static function UpdateFriendList(arg1:Number, arg2:Boolean, arg3:String):*
{
var loc2:*;
loc2 = null;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc1:*;
loc1 = xatlib.FindUser(arg1);
if (arg2 != true)
{
loc3 = todo.w_friendlist.length;
loc4 = 0;
while (loc4 < loc3)
{
if (todo.w_friendlist[loc4].u == arg1)
{
todo.w_friendlist.splice(loc4, 1);
if (todo.w_friendlist2 != undefined)
{
if (todo.w_friendlist[loc4] != undefined)
{
if (todo.w_friendlist2[todo.w_friendlist[loc4].u] != undefined)
{
todo.w_friendlist2[todo.w_friendlist[loc4].u] = undefined;
}
}
}
}
loc4 = (loc4 + 1);
}
}
else
{
if (OnFriendList(arg1))
{
loc3 = todo.w_friendlist.length;
loc4 = 0;
while (loc4 < loc3)
{
if (todo.w_friendlist[loc4].u == arg1)
{
todo.w_friendlist[loc4].v = todo.Users[loc1].v;
todo.w_friendlist[loc4].n = xatlib.CleanTextNoXat(todo.Users[loc1].n);
todo.w_friendlist[loc4].a = todo.Users[loc1].a;
todo.w_friendlist[loc4].h = todo.Users[loc1].h;
}
loc4 = (loc4 + 1);
}
}
else
{
(loc2 = new Object()).u = arg1;
if (loc1 == -1)
{
loc2.v = 0;
loc2.n = arg3;
}
else
{
loc2.v = todo.Users[loc1].v;
loc2.n = xatlib.CleanTextNoXat(todo.Users[loc1].n);
loc2.a = todo.Users[loc1].a;
loc2.h = todo.Users[loc1].h;
}
todo.w_friendlist.push(loc2);
FI = true;
}
}
xatlib.MainSolWrite("w_friendlist", todo.w_friendlist);
xatlib.MainSolWrite("w_friendlist2", todo.w_friendlist2);
return;
}
public static function NetworkIgnore(arg1:*, arg2:*):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
loc1 = OnIgnoreList(arg1);
UpdateIgnoreList(arg1, !loc1, arg2);
if (arg2 == undefined)
{
loc2 = todo.Message.length;
loc3 = 0;
while (loc3 < loc2)
{
if (xatlib.xInt(todo.Message[loc3].u) == arg1)
{
todo.Message[loc3].ignored = !loc1;
}
loc3 = (loc3 + 1);
}
}
if (!loc1)
{
loc4 = main.ctabsmc.tabs.length;
loc5 = 0;
while (loc5 < loc4)
{
if (main.ctabsmc.tabs[loc5].User == arg1)
{
main.Private_onDelete(loc5);
}
loc5 = (loc5 + 1);
}
}
todo.DoBuildUserList = true;
todo.DoUpdateMessages = true;
return;
}
public static function TrimIgnoreList():*
{
var loc1:*;
loc1 = null;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
loc1 = new Date();
loc2 = xatlib.xInt(Number(loc1.getTime()) / 1000) - 7 * 24 * 3600;
var loc5:*;
loc5 = 0;
var loc6:*;
loc6 = todo.w_ignorelist2;
for (loc3 in loc6)
{
if ((loc4 = todo.w_ignorelist2[loc3]) < 0)
{
loc4 = loc4 * -1;
}
if (!(loc4 < loc2))
{
continue;
}
delete todo.w_ignorelist2[loc3];
}
return;
}
public static function OnIgnoreList(arg1:Number):Boolean
{
return !(todo.w_ignorelist2[arg1] == undefined);
}
public static function IgnoreTime(arg1:Number):*
{
return todo.w_ignorelist2[arg1];
}
public static function UpdateIgnoreList(arg1:Number, arg2:Boolean, arg3:*):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = null;
var loc4:*;
loc4 = undefined;
loc1 = xatlib.FindUser(arg1);
loc2 = xatlib.FindUser(todo.w_userno);
if (todo.Users[loc2].xNum == 30004)
{
if (arg2 != true)
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, arg1, "u" + todo.Users[loc1].a);
}
}
else
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 4, arg1, "l");
}
}
}
xmessage.DeleteOneUserMc(loc1);
if (arg2 != true)
{
delete todo.w_ignorelist2[arg1];
}
else
{
loc3 = new Date();
loc4 = xatlib.xInt(Number(loc3.getTime()) / 1000);
todo.w_ignorelist2[arg1] = arg3 != undefined ? -loc4 : loc4;
}
xatlib.MainSolWrite("w_ignorelist2", todo.w_ignorelist2);
todo.DoBuildUserList = true;
return;
}
public static function GetFriendStatus():*
{
var loc1:*;
loc1 = undefined;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = null;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
var loc9:*;
loc9 = undefined;
loc1 = todo.w_friendlist.length;
var loc2:*;
loc2 = flash.utils.getTimer();
loc3 = 0;
while (loc3 < loc1)
{
if ((loc6 = xatlib.FindUser(todo.w_friendlist[loc3].u)) != -1)
{
if (!(todo.Users[loc6].friend == true) || !(todo.Users[loc6].onsuper == false))
{
xmessage.DeleteOneUserMc(loc6);
}
todo.Users[loc6].friend = true;
todo.Users[loc6].onsuper = false;
}
else
{
if (todo.w_friendlist[loc3].n != undefined)
{
todo.Users.push({"n":xatlib.NameNoXat(todo.w_friendlist[loc3].n), "u":todo.w_friendlist[loc3].u, "v":todo.w_friendlist[loc3].v, "a":todo.w_friendlist[loc3].a, "h":todo.w_friendlist[loc3].h, "online":undefined, "banned":false, "owner":false, "friend":true, "onsuper":false});
}
}
loc3 = (loc3 + 1);
}
if (todo.lb == "n")
{
return;
}
loc4 = "";
loc5 = 0;
loc4 = "f";
if (todo.w_friendlist.length > 0)
{
if (todo.w_friendlist[0].u != undefined)
{
loc1 = todo.w_friendlist.length;
loc7 = 0;
while (loc7 < loc1)
{
loc5 = (loc5 + 1);
loc4 = loc4 + " " + todo.w_friendlist[loc7].u;
if (loc5 == 80 || loc7 >= (loc1 - 1))
{
loc9 = (loc8 = new flash.xml.XMLDocument()).createElement(loc4);
loc8.appendChild(loc9);
socket.send(loc8);
loc5 = 0;
loc4 = "f";
}
loc7 = (loc7 + 1);
}
}
}
return;
}
public static function GetRev(arg1:*):Number
{
return arg1.indexOf("_") == -1 ? 0 : xatlib.xInt(arg1.substr(arg1.indexOf("_") + 1));
}
public static function SaveRegData():*
{
var loc1:*;
loc1 = undefined;
loc1 = xatlib.getLocal("chat", "/");
loc1.objectEncoding = flash.net.ObjectEncoding.AMF0;
if (1 && !(loc1 == null))
{
loc1.data.w_userno = xatlib.xInt(todo.w_userno);
loc1.data.w_userrev = xatlib.xInt(todo.w_userrev);
loc1.data.w_k1b = todo.w_k1;
loc1.data.w_d0 = todo.w_d0;
loc1.data.w_d1 = todo.w_d1;
loc1.data.w_d2 = todo.w_d2;
loc1.data.w_d3 = todo.w_d3;
loc1.data.w_dt = todo.w_dt;
loc1.data.w_Powers = todo.w_Powers;
loc1.data.w_PowerO = todo.w_PowerO;
loc1.data.w_bride = todo.w_bride;
loc1.data.w_coins = todo.w_coins;
loc1.data.w_xats = todo.w_xats;
loc1.data.w_sn = todo.w_sn;
loc1.data.w_registered = todo.w_registered;
loc1.data.w_k2 = todo.w_k2;
loc1.data.w_k3 = todo.w_k3;
loc1.flush();
}
return;
}
public static function AddGiftPower(arg1:*):*
{
var loc1:*;
loc1 = undefined;
if (arg1 < 0)
{
return;
}
loc1 = todo.Users[arg1];
if (!(loc1.aFlags & 1 << 24))
{
return;
}
if (!loc1.Powers)
{
loc1.Powers = [0];
}
if (!loc1.Powers[-1])
{
loc1.Powers[-1] = 0;
}
loc1.Powers[-1] = loc1.Powers[-1] | 4;
return;
}
{
xips = 4;
xservers = 4;
xSock = new Array("174.36.242.24", "174.36.242.25", "174.36.242.26", "174.36.242.27", "174.36.242.32", "174.36.242.33", "174.36.242.34", "174.36.242.35", "174.36.242.40", "174.36.242.41", "174.36.242.42", "174.36.242.43", "69.4.231.248", "69.4.231.249", "69.4.231.250", "69.4.231.251");
xSock2 = new Array("208.43.218.80", "208.43.218.81", "208.43.218.82", "208.43.218.83", "174.36.56.200", "174.36.56.201", "174.36.56.202", "174.36.56.203", "174.36.4.144", "174.36.4.145", "174.36.4.146", "174.36.4.147", "174.36.56.184", "174.36.56.185", "174.36.56.186", "174.36.56.187");
SockStatus = new Array(400, 401, 402, 403, 410, 411, 412, 413, 420, 421, 422, 423, 430, 431, 432, 433);
UnfairFile = "";
UnfairMessage = "";
UnfairGroupName = "";
GotDone = false;
GotFirstDone = false;
w_redirectdom = undefined;
w_redirectport = undefined;
QK = false;
YI = undefined;
YC = undefined;
YC2 = undefined;
WV = false;
FI = undefined;
LastLocate = 0;
FailoverMode = false;
fs = 0;
sjt = 0;
jt1 = 0;
jt2 = 0;
UngagTimeout = undefined;
Fire = true;
Bootp = undefined;
p_w = 100;
p_h = 100;
p_octaves = 6;
p_seed = 12345;
p_x = 50;
p_y = 50;
global.Sock = new Array("0", "0", "0", "0");
global.Sock2 = new Array("0", "0", "0", "0");
if (!global.fwd)
{
global.fwd = "174.36.56.188";
}
}
static var xips:*=4;
static var xservers:*=4;
static var xSock:*;
static var xSock2:*;
public static var SockStatus:*;
public static var NetworkState:*;
public static var NetworkTimeout:*;
public static var MessageCount:*;
public static var LurkerLimit:*;
public static var LurkerTimeout:*;
public static var socket:*;
public static var UnfairFile:String="";
public static var UnfairMessage:String="";
public static var UnfairGroupName:String="";
public static var GotDone:Boolean=false;
public static var GotFirstDone:Boolean=false;
public static var w_redirectdom:*;
public static var w_redirectport:*;
public static var QK:*=false;
public static var YI:*;
public static var YC:int;
public static var YC2:int;
public static var WV:*=false;
public static var FI:*;
public static var LastLocate:*=0;
public static var FailoverMode:*=false;
public static var test_xml:*;
public static var fs:*=0;
public static var sjt:*=0;
public static var jt1:*=0;
public static var jt2:*=0;
public static var UngagTimeout:*;
public static var Fire:*=true;
public static var Bootp:*;
public static var UserId:*;
public static var k1:*;
public static var k2:*;
public static var J2_Order:*;
static var p_w:*=100;
static var p_h:*=100;
static var p_octaves:*=6;
static var p_seed:*=12345;
static var p_x:*=50;
static var p_y:*=50;
}
}
// class notif
package
{
import flash.display.*;
public dynamic class notif extends flash.display.MovieClip
{
public function notif()
{
super();
return;
}
public var back:flash.display.MovieClip;
}
}
// class p1pwn
package
{
import flash.display.*;
public dynamic class p1pwn extends flash.display.MovieClip
{
public function p1pwn()
{
super();
addFrameScript(0, this.frame1);
return;
}
function frame1():*
{
return;
}
public var col0:flash.display.MovieClip;
}
}
// class panelmetal
package
{
import flash.display.*;
public dynamic class panelmetal extends flash.display.MovieClip
{
public function panelmetal()
{
super();
return;
}
}
}
// class plus
package
{
import flash.display.*;
public dynamic class plus extends flash.display.MovieClip
{
public function plus()
{
super();
return;
}
public var plus2:flash.display.MovieClip;
public var plus3:flash.display.MovieClip;
}
}
// class pwr
package
{
import flash.display.*;
public dynamic class pwr extends flash.display.MovieClip
{
public function pwr()
{
super();
return;
}
}
}
// class recycle
package
{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
import flash.system.*;
import flash.utils.*;
public class recycle extends flash.display.MovieClip
{
public function recycle()
{
this.bin = new flash.utils.Dictionary(true);
this.subd = new flash.utils.Dictionary();
super();
addEventListener(flash.events.Event.ENTER_FRAME, this.tick);
return;
}
public function put(arg1:*, arg2:*):*
{
var loc1:*;
var loc2:*;
loc2 = ((loc1 = this).cput + 1);
loc1.cput = loc2;
if (this.bin[arg1] as flash.utils.Dictionary)
{
this.bin[arg1][arg2] = true;
}
else
{
if (this.subd[arg1])
{
delete this.subd[arg1];
}
this.subd[arg1] = new flash.utils.Dictionary(true);
this.subd[arg1][arg2] = true;
this.bin[arg1] = this.subd[arg1];
}
return;
}
function grab(arg1:*):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
var loc4:*;
loc4 = ((loc3 = this).cget + 1);
loc3.cget = loc4;
if (!this.bin[arg1])
{
return null;
}
if (this.bin[arg1] as flash.utils.Dictionary)
{
loc1 = null;
loc3 = 0;
loc4 = this.bin[arg1];
for (loc2 in loc4)
{
if (loc1)
{
return loc1;
}
loc1 = loc2;
delete this.bin[arg1][loc2];
}
delete this.subd[arg1];
delete this.bin[arg1];
return loc1;
}
return null;
}
function dump(arg1:*):*
{
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc1:*;
loc1 = "";
this.total = 0;
if (arg1 == undefined)
{
arg1 = this.bin;
}
var loc5:*;
loc5 = 0;
var loc6:*;
loc6 = arg1;
for (loc2 in loc6)
{
if (arg1[loc2] as flash.utils.Dictionary)
{
loc3 = 0;
var loc7:*;
loc7 = 0;
var loc8:*;
loc8 = arg1[loc2];
for (loc4 in loc8)
{
loc3 = (loc3 + 1);
}
loc1 = loc1 + "(" + loc3 + ") " + loc2 + ", ";
this.total = this.total + loc3;
continue;
}
loc1 = loc1 + "(1) " + loc2 + ", ";
loc8 = ((loc7 = this).total + 1);
loc7.total = loc8;
}
loc3 = 0;
loc5 = 0;
loc6 = this.subd;
for (loc2 in loc6)
{
loc3 = (loc3 + 1);
}
loc1 = loc1 + " (subd=" + loc3 + ")";
loc1 = loc1 + " Recycle Size: " + this.total + " cput=" + this.cput + " cget=" + this.cget;
this.cput = loc5 = 0;
this.cget = loc5;
if (this.total == 0)
{
loc1 = "";
}
return loc1;
}
function tick(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc4:*;
var loc5:*;
loc5 = ((loc4 = this).tc + 1);
loc4.tc = loc5;
if (this.tc % 12 == 0)
{
loc4 = 0;
loc5 = this.subd;
for (loc1 in loc5)
{
loc2 = 0;
var loc6:*;
loc6 = 0;
var loc7:*;
loc7 = this.subd[loc1];
for (loc3 in loc7)
{
loc2 = 1;
break;
}
if (loc2 != 0)
{
continue;
}
delete this.subd[loc1];
delete this.bin[loc1];
}
}
return;
}
var tc:*=0;
var bin:*;
var subd:*;
var cput:*=0;
var cget:*=0;
public var total:*;
}
}
// class redface
package
{
import flash.display.*;
public dynamic class redface extends flash.display.MovieClip
{
public function redface()
{
super();
return;
}
}
}
// class returnicon
package
{
import flash.display.*;
public dynamic class returnicon extends flash.display.MovieClip
{
public function returnicon()
{
super();
return;
}
public var back:flash.display.MovieClip;
}
}
// class rolleyes
package
{
import flash.display.*;
public dynamic class rolleyes extends flash.display.MovieClip
{
public function rolleyes()
{
super();
return;
}
}
}
// class sc_dn
package
{
import flash.display.*;
public dynamic class sc_dn extends flash.display.MovieClip
{
public function sc_dn()
{
super();
return;
}
public var back:flash.display.MovieClip;
}
}
// class sc_dr
package
{
import flash.display.*;
public dynamic class sc_dr extends flash.display.MovieClip
{
public function sc_dr()
{
super();
return;
}
}
}
// class sc_up
package
{
import flash.display.*;
public dynamic class sc_up extends flash.display.MovieClip
{
public function sc_up()
{
super();
return;
}
public var back:flash.display.MovieClip;
}
}
// class sleepy
package
{
import flash.display.*;
public dynamic class sleepy extends flash.display.MovieClip
{
public function sleepy()
{
super();
return;
}
}
}
// class smile
package
{
import flash.display.*;
public dynamic class smile extends flash.display.MovieClip
{
public function smile()
{
super();
return;
}
}
}
// class smiley
package
{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
public dynamic class smiley extends flash.display.Sprite
{
public function smiley(arg1:*, arg2:*, arg3:*=20)
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
super();
if (todo.config["nosmilies"])
{
return;
}
if (arg2 == "none")
{
return;
}
arg1.addChild(this);
if (!arg1.SA)
{
arg1.SA = "(" + arg2 + "#)";
arg1.SF = 2;
}
this.sc = arg3 / 20;
if (!todo.turbo)
{
arg1.SF = arg1.SF | f_NoCache;
}
this.Clicker = this;
if (arg1.SF & f_Strip || todo.Macros["seffect"] === "off")
{
arg1.SF = arg1.SF & !f_NoCache;
}
if (!(arg1.SF & f_NoCache))
{
TickDict[this] = 1;
this.Index = arg1.SA.toLowerCase();
if (arg3 != 20)
{
this.Index = this.Index + "_" + arg3;
}
if (arg1.u)
{
this.Index = this.Index + "_" + arg1.u;
}
if (arg1.SF & f_OneFrame)
{
this.Index = this.Index + "_S";
}
this.Parent = arg1;
addEventListener(flash.events.Event.REMOVED_FROM_STAGE, this.cleanUp, false, 0, true);
this.mBaseSmiley = arg2;
mouseEnabled = false;
this.mcFrame = new flash.display.Sprite();
this.mcFrame.mouseChildren = false;
this.mcFrame.mouseEnabled = false;
addChild(this.mcFrame);
this.Clicker = new xSprite();
this.Clicker.buttonMode = true;
addChild(this.Clicker);
this.Clicker.graphics.beginFill(16711680, 0);
this.Clicker.graphics.drawRect(-1, -1, 22, 22);
this.Clicker.graphics.endFill();
if (loc1 = cachedSprite.dic[this.Index])
{
loc1.Timeout = 0;
if (loc1.Pending)
{
return;
}
this.FrameStore = loc1.bd;
this.bs = this.FrameStore.height;
this.bf = this.FrameStore.width / this.bs;
if (loc1.Flags & cachedSprite.cs_RollOver)
{
this.Clicker.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.RolloverHandler, false, 0, true);
}
this.tick();
return;
}
cachedSprite.dic[this.Index] = new cachedSprite();
this.Master = true;
}
if (arg1.SF & f_Strip)
{
loc2 = arg1.SA;
loc2 = xatlib.searchreplace("#", "%23", loc2);
loc2 = xatlib.searchreplace("+", "%2B", loc2);
this.sm = new loadbitmap(arg1, xatlib.iMux("GetStrip5.php?c=s_" + loc2 + "_" + arg3), 0, 0, this.GotStrip);
return;
}
this.sm = new swfsmiley(arg1, arg2);
if (arg1.SF & f_NoCache)
{
var loc3:*;
this.sm.scaleY = loc3 = this.sc;
this.sm.scaleX = loc3;
addChild(this.sm);
}
return;
}
function GotStrip():*
{
var loc1:*;
loc1 = undefined;
if (this.sm.bitmap == 503 || this.sm.bitmap && this.sm.bitmap.height == 1)
{
var loc2:*;
var loc3:*;
loc3 = ((loc2 = this).StripTries + 1);
loc2.StripTries = loc3;
if (this.StripTries < 4)
{
this.Reload = this.StripTries * 37;
}
}
else
{
if (this.sm.bitmap)
{
loc1 = cachedSprite.dic[this.Index];
loc1.bd = this.sm.bitmap;
this.sm.bitmap = null;
this.sm = null;
loc1.Pending = false;
this.Master = false;
}
}
return;
}
function cleanUp(arg1:*=0, arg2:Boolean=true):*
{
var RemoveClicker:Boolean=true;
var e:*=0;
var loc1:*;
e = arg1;
RemoveClicker = arg2;
try
{
if (this.sm)
{
this.sm.cleanUp();
this.sm = undefined;
}
delete TickDict[this];
if (RemoveClicker)
{
try
{
this.Clicker.removeEventListener(flash.events.MouseEvent.ROLL_OVER, this.RolloverHandler);
}
catch (e:*)
{
};
}
if (!this.Parent)
{
return;
}
if (this.Frame && this.mcFrame)
{
this.Frame.bitmapData.dispose();
}
removeEventListener(flash.events.Event.REMOVED_FROM_STAGE, this.cleanUp);
this.Parent = undefined;
if (this.Master && this.tik < this.bf)
{
delete cachedSprite.dic[this.Index];
}
}
catch (e:*)
{
};
return;
}
private function tick():*
{
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc1:*;
loc1 = cachedSprite.dic[this.Index];
if (this.Parent.SF & f_Strip)
{
if (this.Reload)
{
var loc7:*;
var loc8:*;
loc8 = ((loc7 = this).Reload - 1);
loc7.Reload = loc8;
if (this.Reload == 0)
{
this.sm = new loadbitmap(this.Parent, this.sm.Url, 0, 0, this.GotStrip);
}
return;
}
if (!loc1)
{
return;
}
if (loc1.Pending)
{
return;
}
}
if (!loc1)
{
cachedSprite.dic[this.Index] = new cachedSprite();
this.Master = true;
this.sm = new swfsmiley(this.Parent, this.mBaseSmiley);
this.tik = 0;
return;
}
var loc2:*;
loc2 = (this.bs - 20 * this.sc) / 2;
loc8 = ((loc7 = this).tik + 1);
loc7.tik = loc8;
loc1.Timeout = 0;
if (this.Master)
{
if (this.sm && !(this.sm.tc == undefined))
{
if (this.sm.tc <= 2)
{
this.tik = this.sm.tc - 2;
}
if (this.sm.Loading & 1)
{
this.tik = -1;
}
}
if (this.tik < 0)
{
return;
}
if (this.tik == 0)
{
if (todo.Macros["seffect"] === "off")
{
this.Parent.SF = this.Parent.SF & !f_NoCache;
}
if (this.Parent.SF & f_NoCache)
{
delete cachedSprite.dic[this.Index];
delete TickDict[this];
addChild(this.sm);
return;
}
this.bs = this.sm.MaxW * this.sc & 1048574;
this.bf = this.sm.Frames;
if (todo.FV < 10)
{
if (this.bs * this.bf > 2880 && this.bf == 72)
{
this.bf = 36;
}
while (this.bs * this.bf > 2880)
{
this.bs = this.bs - 6;
}
}
loc2 = (this.bs - 20 * this.sc) / 2;
this.FrameStore = new flash.display.BitmapData(this.bs * this.bf, this.bs, true, 16777215);
loc1.bd = this.FrameStore;
loc1.Pending = false;
if (this.sm.NeedRoll)
{
this.Clicker.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.RolloverHandler, false, 0, true);
loc1.Flags = loc1.Flags | cachedSprite.cs_RollOver;
}
}
if (this.tik < this.bf)
{
loc4 = new flash.geom.Matrix();
if (!(this.sm.scaleX == 1) || !(this.sm.scaleY == 1) || !(this.sc == 1))
{
loc4.scale(this.sm.scaleX * this.sc, this.sm.scaleY * this.sc);
}
if (this.sm.rotation)
{
loc4.rotate(this.sm.rotation * Math.PI / 180);
}
loc4.translate(loc2 + this.sm.x, loc2 + this.sm.y);
(loc5 = new flash.display.BitmapData(this.bs, this.bs, true, 16777215)).draw(this.sm, loc4);
loc6 = null;
if (this.sm.alpha != 1)
{
loc6 = new flash.display.BitmapData(this.bs, this.bs, true, 16777215 | int(this.sm.alpha * 255) << 24);
}
this.FrameStore.copyPixels(loc5, new flash.geom.Rectangle(0, 0, this.bs, this.bs), new flash.geom.Point(this.tik * this.bs, 0), loc6, new flash.geom.Point(0, 0), true);
if (loc6)
{
loc6.dispose;
}
loc5.dispose();
if (this.tik == (this.bf - 1))
{
this.sm.cleanUp();
this.sm = undefined;
this.Master = false;
}
}
}
else
{
if (loc1.Pending)
{
return;
}
if (!this.FrameStore)
{
this.tik = 0;
this.FrameStore = loc1.bd;
this.bs = this.FrameStore.height;
this.bf = this.FrameStore.width / this.bs;
loc2 = (this.bs - 20 * this.sc) / 2;
}
}
if (!this.Frame)
{
this.Frame = new flash.display.Bitmap(new flash.display.BitmapData(this.bs, this.bs, true, 16777215));
this.mcFrame.addChild(this.Frame);
this.mcFrame.y = loc7 = -loc2;
this.mcFrame.x = loc7;
this.mcFrame.mouseEnabled = false;
this.mcFrame.mouseChildren = false;
}
if (this.Parent.SP & smiley.f_FlashRank && this.tik == 36)
{
if (todo.tick % 36 != 0)
{
this.tik = 35;
}
}
var loc3:*;
loc3 = this.tik % this.bf;
this.Frame.bitmapData.fillRect(new flash.geom.Rectangle(0, 0, this.bs, this.bs), 16777215);
this.Frame.bitmapData.copyPixels(this.FrameStore, new flash.geom.Rectangle(loc3 * this.bs, 0, this.bs, this.bs), new flash.geom.Point(0, 0), null, null, true);
if (this.bf == 1)
{
delete TickDict[this];
}
return;
}
function RolloverHandler(arg1:flash.events.MouseEvent):*
{
if (this.sm && this.tik < this.bf)
{
return;
}
if (this.sm)
{
this.sm.NeedRoll = 2;
return;
}
var loc1:*;
loc1 = this.Parent;
this.cleanUp(0, false);
loc1.SF = loc1.SF | f_NoCache;
this.sm = new swfsmiley(loc1, this.mBaseSmiley);
this.sm.mouseEnabled = false;
this.sm.mouseChildren = false;
this.sm.NeedRoll = 2;
var loc2:*;
this.mcFrame.y = loc2 = 0;
this.mcFrame.x = loc2;
this.mcFrame.addChild(this.sm);
return;
}
public static function MasterTick():*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = 0;
var loc3:*;
loc3 = TickDict;
for (loc1 in loc3)
{
loc1.tick();
}
return;
}
{
TickDict = new flash.utils.Dictionary(true);
}
public static const b_fade:int=4;
public static const b_glow:int=16;
public static const b_internal:int=32;
public static const f_Reg:int=1;
public static const f_Sub:int=2;
public static const f_Hat:int=8;
public static const f_AllPowers:int=16;
public static const f_TopDog:int=32;
public static const f_NoCache:int=64;
public static const f_Simple:int=128;
public static const f_FlashRank:int=256;
public static const f_OneFrame:int=512;
public static const f_Strip:int=1024;
private var sm:*;
private var tik:*=0;
private var Master:Boolean=false;
public var FrameStore:*;
private var bs:int=20;
private var bf:int=12;
private var sc:*;
private var Frame:*;
private var mcFrame:*;
private var Index:*;
private var Parent:*;
private var mBaseSmiley:*;
public var Clicker:*;
private var StripTries:int=0;
private var Reload:int=0;
public static var TickDict:*;
}
}
// class star
package
{
import flash.display.*;
public dynamic class star extends flash.display.MovieClip
{
public function star()
{
super();
return;
}
}
}
// class swfsmiley
package
{
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.utils.*;
public class swfsmiley extends flash.display.Sprite
{
public function swfsmiley(arg1:*, arg2:String)
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
this.ar = int(Math.random() * al);
this.rs = int(Math.random() * yt);
super();
var loc3:*;
loc3 = (arg1.SF & 2) == 0;
if (!fInfo)
{
loc6 = (loc5 = sInfo.split(",")).length;
fInfo = new Object();
wInfo = new Object();
loc2 = 0;
while (loc2 < loc6)
{
fInfo[loc5[loc2]] = int(loc5[(loc2 + 1)]);
wInfo[loc5[loc2]] = int(loc5[(loc2 + 2)]);
loc2 = loc2 + 3;
}
}
this.Parent = arg1;
if (arg1.SC)
{
arg1.SC = String(arg1.SC);
}
var loc4:*;
loc4 = "";
if (arg1.SE)
{
loc4 = arg1.SE.split(",");
}
if (arg2 == "fade")
{
arg1.SP = arg1.SP | smiley.b_fade;
}
if (arg1.SA.indexOf("#") < 0)
{
var loc9:*;
this.g130 = loc9 = todo.gconfig["g130"];
if (loc9)
{
arg1.ST = this.g130;
}
else
{
arg1.SF = arg1.SF | smiley.f_Simple;
}
}
if (!xconst.pssh[arg2] || !(arg1.SF & smiley.f_Simple))
{
arg1.SP = arg1.SP & !smiley.b_glow;
}
this.OurMc = new Array();
this.OurMc.push({"Name":arg2, "Type":0, "SC":arg1.SC, "SP":arg1.SP});
if (arg1.ST)
{
this.OurMc.push({"Name":arg1.ST, "Type":1, "SC":arg1.SC, "SP":arg1.SP});
}
if (loc4.length > 0)
{
loc3 = false;
loc1 = 0;
while (loc1 < loc4.length)
{
this.OurMc.push({"Name":loc4[loc1], "Type":2, "SC":loc4[(loc1 + 1)], "SP":loc4[(loc1 + 2)]});
loc1 = loc1 + 3;
}
}
if (arg2.charAt(0) == "p" && arg2.charAt(1) == "1")
{
if (arg2 == "p1pwn")
{
this.OurMc[0].SP = this.OurMc[0].SP | smiley.b_internal;
}
if (this.OurMc[(this.OurMc.length - 1)].Name != "glow1")
{
if ((loc5 = arg1.SC.indexOf("#")) > 0 && loc5 < arg1.SC.length - 2)
{
arg1.SP = arg1.SP | smiley.f_FlashRank;
this.Frames = 36;
}
}
else
{
loc5 = this.OurMc.pop();
this.OurMc[0].SP = this.OurMc[0].SP | smiley.b_glow;
arg1.SP = arg1.SP | smiley.b_glow;
this.GlowCol = 65280;
}
}
if (!(arg1.SF & smiley.f_Simple))
{
loc7 = (loc5 = this.Parent.SA.substr(1, this.Parent.SA.length - 2).toLowerCase().split("#")).length;
loc8 = 0;
while (loc8 < loc7)
{
if (AFrames[loc5[loc8]])
{
this.Frames = this.framesrequired(new Array(this.Frames, AFrames[loc5[loc8]]));
}
loc8 = (loc8 + 1);
}
}
this.NoOfSmilies = this.OurMc.length;
this.NumToLoad = 0;
loc2 = 0;
while (loc2 < this.NoOfSmilies)
{
if (this.OurMc[loc2].Name === "topspin")
{
this.mDelAll = false;
}
if (this.OurMc[loc2].SP & smiley.b_internal)
{
this.OurMc[loc2].mc = xatlib.AttachMovie(null, this.OurMc[loc2].Name);
}
else
{
this.OurMc[loc2].mc = xatlib.LoadMovie(undefined, xatlib.SmilieUrl(this.OurMc[loc2].Name, "sm2", loc3), this.SmileyLoaded);
var loc10:*;
loc10 = ((loc9 = this).NumToLoad + 1);
loc9.NumToLoad = loc10;
}
loc2 = (loc2 + 1);
}
this.Parent.addEventListener(flash.events.Event.REMOVED_FROM_STAGE, this.cleanUp, false, 0, true);
if (this.NumToLoad == 0)
{
this.SmileyLoaded();
}
return;
}
public function cleanUp(arg1:*=0):*
{
if (!this.Parent)
{
return;
}
try
{
this.Parent.removeEventListener(flash.events.Event.REMOVED_FROM_STAGE, this.cleanUp);
}
catch (e:*)
{
};
try
{
this.removeEventListener(flash.events.MouseEvent.ROLL_OVER, this.RolloverHandler);
}
catch (e:*)
{
};
var loc1:*;
loc1 = 0;
while (loc1 < this.NoOfSmilies)
{
if (this.OurMc[loc1].mc.parent)
{
this.removeChild(this.OurMc[loc1].mc);
}
if (!(this.OurMc[loc1].SP & smiley.b_internal))
{
this.OurMc[loc1].mc.contentLoaderInfo.removeEventListener(flash.events.Event.COMPLETE, this.SmileyLoaded);
this.OurMc[loc1].mc.unloadAndStop(true);
}
this.OurMc[loc1].mc = null;
loc1 = (loc1 + 1);
}
delete TickDict[this];
this.Parent = undefined;
return;
}
function SmileyLoaded(arg1:flash.events.Event=null):*
{
var Del:*;
var GotTop:*;
var OurMc_n:*;
var OurMc_n_Layers_k:*;
var Simple:Boolean;
var Wiggle:int;
var c:Class;
var e:flash.events.Event=null;
var i:*;
var j:*;
var k:*;
var mc:*;
var n:*;
var loc1:*;
k = undefined;
n = undefined;
i = undefined;
Simple = false;
OurMc_n = undefined;
Del = undefined;
mc = undefined;
j = undefined;
c = null;
OurMc_n_Layers_k = undefined;
e = arg1;
var loc2:*;
var loc3:*;
loc3 = ((loc2 = this).NumToLoad - 1);
loc2.NumToLoad = loc3;
if (this.NumToLoad > 0)
{
return;
}
GotTop = false;
Wiggle = 0;
n = 0;
while (n < this.NoOfSmilies)
{
OurMc_n = this.OurMc[n];
if (OurMc_n.mc)
{
loc3 = ((loc2 = OurMc_n).Uses + 1);
loc2.Uses = loc3;
OurMc_n.Layers = {};
this.addChild(OurMc_n.mc);
if (OurMc_n.SP & smiley.b_fade || OurMc_n.SC == "y")
{
this.Frames = this.framesrequired(new Array(this.Frames, 36));
}
i = 0;
while (i < NumLayers)
{
k = LayerNames[i];
Del = true;
while (1)
{
if (k != "Base")
{
if (OurMc_n.SP & smiley.b_internal)
{
break;
}
if (!OurMc_n.mc.contentLoaderInfo.applicationDomain.hasDefinition(k))
{
break;
}
c = OurMc_n.mc.contentLoaderInfo.applicationDomain.getDefinition(k) as Class;
if (!c)
{
break;
}
mc = new c() as flash.display.MovieClip;
OurMc_n.Layers[k] = mc;
}
else
{
try
{
if (OurMc_n.SP & smiley.b_internal)
{
OurMc_n.Layers[k] = loc2 = OurMc_n.mc;
mc = loc2;
}
else
{
OurMc_n.Layers[k] = loc2 = flash.display.MovieClip(OurMc_n.mc.contentLoaderInfo.content);
mc = loc2;
}
if (!mc.Frames && !mc.MaxW && wInfo[OurMc_n.Name])
{
mc.Frames = fInfo[OurMc_n.Name];
if (mc.Frames == 0)
{
mc.Frames = 36;
}
j = 0;
while (j < NiceFramesL)
{
if (mc.Frames == NiceFrames[j])
{
break;
}
if (!(mc.Frames > NiceFrames[j]))
{
mc.Frames = NiceFrames[j];
break;
}
j = (j + 1);
}
mc.MaxW = wInfo[OurMc_n.Name];
if (mc.MaxW == 40)
{
mc.MaxW = 50;
}
}
if (mc.MaxW && mc.MaxW > this.MaxW)
{
this.MaxW = mc.MaxW;
}
if (mc.Frames)
{
this.Frames = this.framesrequired(new Array(this.Frames, mc.Frames));
}
if (mc.NoCache)
{
this.Parent.SF = this.Parent.SF | smiley.f_NoCache;
}
if (mc.Wiggle && mc.Wiggle > Wiggle)
{
Wiggle = mc.Wiggle;
}
if (mc.Simple)
{
Simple = true;
}
if (mc.Flags)
{
this.Flags = mc.Flags;
}
}
catch (e:Error)
{
};
}
if (!mc)
{
break;
}
if (!mc.width)
{
break;
}
if (OurMc_n.Type == 1 && !(k == "Bkg"))
{
break;
}
if (n > 0 && LayerTypes[i] == 0 && !(OurMc_n.Type == 1))
{
break;
}
if (!(n == 0) && LayerTypes[i] && this.OurMc[0].Layers[k] && this.OurMc[0].Layers[k])
{
delete this.OurMc[0].Layers[k];
}
if (this.g130 && n == 1 && (this.Flags & 2 || !this.OurMc[0].Layers.Bkg) && this.OurMc[n].Layers.Bkg)
{
this.OurMc[n].Layers.Bkg.visible = false;
}
else
{
if (OurMc_n.Type == 1 && this.OurMc[0].Layers.Bkg)
{
delete this.OurMc[0].Layers.Bkg;
}
}
Del = false;
if (n > 0 && !(OurMc_n.Type == 1))
{
GotTop = true;
}
break;
}
if (Del)
{
delete OurMc_n.Layers[k];
}
i = (i + 1);
}
if (GotTop)
{
i = 0;
while (i < NumLayers)
{
if (LayerTypes[i])
{
delete this.OurMc[0].Layers[LayerNames[i]];
}
i = (i + 1);
}
}
}
n = (n + 1);
}
if (this.Parent.SP & smiley.b_glow)
{
Wiggle = Wiggle + 4;
}
if (this.MaxW == 0)
{
this.MaxW = 22;
}
this.MaxW = this.MaxW + Wiggle;
if (this.MaxW > 50)
{
this.MaxW = 50;
}
if (this.Frames > 72)
{
this.Frames = 72;
}
if (Simple && this.Parent.SF & smiley.f_Simple)
{
this.Parent.SF = this.Parent.SF | smiley.f_NoCache;
}
if (todo.FV < 10 && this.Frames > 36 && this.MaxW >= 40)
{
this.Frames = 36;
}
if (this.Parent.SF & smiley.f_OneFrame)
{
this.Frames = 1;
}
if (todo.Macros["sanimate"] === "off")
{
this.Frames = 1;
}
i = 0;
while (i < NumLayers)
{
k = LayerNames[i];
n = 0;
while (n < this.NoOfSmilies)
{
OurMc_n = this.OurMc[n];
if (OurMc_n.Layers)
{
OurMc_n_Layers_k = OurMc_n.Layers[k];
if (OurMc_n_Layers_k)
{
this.addChild(OurMc_n_Layers_k);
if (OurMc_n_Layers_k.RollOver && !this.NeedRoll)
{
this.NeedRoll = 1;
}
}
}
n = (n + 1);
}
i = (i + 1);
}
if (todo.gconfig["g106"])
{
OurMc_n = this.OurMc[(this.g130 ? 1 : 0)];
if (OurMc_n.Layers["Bkg"] && !OurMc_n.SC && !(this.Flags & 1))
{
OurMc_n.SC = todo.gconfig["g106"];
}
}
TickDict[this] = 1;
if (this.NeedRoll)
{
addEventListener(flash.events.MouseEvent.ROLL_OVER, this.RolloverHandler, false, 0, true);
}
return;
}
function tick():*
{
var Del:*;
var Del0:*;
var Del2:*;
var DelAll:*;
var OurMc_n:*;
var OurMc_n_Layers_k:*;
var b:*;
var g:*;
var i:*;
var k:*;
var n:*;
var r:*;
var tickret:*;
var zOurMc_n:*;
var loc1:*;
n = undefined;
k = undefined;
i = undefined;
DelAll = undefined;
Del0 = undefined;
r = undefined;
g = undefined;
b = undefined;
OurMc_n = undefined;
Del = undefined;
OurMc_n_Layers_k = undefined;
Del2 = undefined;
tickret = undefined;
zOurMc_n = undefined;
try
{
var loc2:*;
var loc3:*;
loc3 = ((loc2 = this).tc + 1);
loc2.tc = loc3;
DelAll = this.mDelAll && this.tc > 1;
Del0 = DelAll;
this.Loading = 0;
r = lut36[((this.tc + this.rs) % yt)];
g = lut36[((this.tc + this.rs + 24) % yt)];
b = lut36[((this.tc + this.rs + 12) % yt)];
this.cc = (r << 16) + (g << 8) + b;
n = 0;
while (n < this.NoOfSmilies)
{
OurMc_n = this.OurMc[n];
if (OurMc_n.mc)
{
if (OurMc_n.Layers)
{
Del = Del0;
loc2 = 0;
loc3 = OurMc_n.Layers;
for (k in loc3)
{
OurMc_n_Layers_k = OurMc_n.Layers[k];
Del2 = Del0;
tickret = undefined;
if (!OurMc_n_Layers_k)
{
continue;
}
if (OurMc_n_Layers_k.RollOver && this.RollOverLayer(OurMc_n_Layers_k))
{
Del2 = false;
}
if (this.tc == 2 && OurMc_n_Layers_k.Go && OurMc_n_Layers_k.Go([this.Parent.SA, OurMc_n.SC, this.Parent.SF | (n ? 0 : 32)]))
{
Del2 = false;
}
if (n == 0 && this.OurMc[0].SP & smiley.b_glow && (k == "Bkg" || k == "Base") && this.GlowLayer(OurMc_n.mc))
{
Del2 = false;
}
if (k == "Hands" && this.HandsLayer(OurMc_n_Layers_k, OurMc_n))
{
Del2 = false;
}
if (!(OurMc_n.SC == undefined) && (!(n == 0) || k == "Bkg" || k == "Base") && this.ColorLayer(OurMc_n_Layers_k, OurMc_n.SC, k))
{
Del2 = false;
}
if (OurMc_n.SP & smiley.b_fade && this.FadeLayer(OurMc_n_Layers_k))
{
Del2 = false;
}
if (this.tc > 1 && OurMc_n_Layers_k.Tick)
{
this.tc > 1 && OurMc_n_Layers_k.Tick;
var loc4:*;
tickret = loc4 = OurMc_n_Layers_k.Tick(this.tc);
}
if (this.tc > 1 && OurMc_n_Layers_k.Tick)
{
Del2 = false;
}
if (OurMc_n_Layers_k.Loading)
{
this.Loading = this.Loading | OurMc_n_Layers_k.Loading();
}
if (Del2)
{
delete OurMc_n.Layers[k];
}
else
{
Del = loc4 = false;
DelAll = loc4;
}
if (tickret as Array)
{
if (this.x)
{
this.x = 0;
}
if (this.y)
{
this.y = 0;
}
if (this.rotation)
{
this.rotation = 0;
}
if (this.scaleX != 1)
{
this.scaleX = 1;
}
if (this.scaleY != 1)
{
this.scaleY = 1;
}
if (tickret[0])
{
this.x = this.x + tickret[0];
}
if (tickret[1])
{
this.y = this.y + tickret[1];
}
if (tickret[2])
{
this.rotation = this.rotation + tickret[2];
}
if (tickret[3])
{
this.scaleY = loc4 = tickret[3];
this.scaleX = loc4;
}
if (tickret[4] != undefined)
{
this.alpha = tickret[4];
}
continue;
}
if (!(tickret as flash.geom.Matrix))
{
continue;
}
if (OurMc_n.Name === "topspin")
{
zOurMc_n = this.OurMc[(n - 1)];
if (zOurMc_n && zOurMc_n.Layers)
{
i = 0;
while (i < NumLayers)
{
if (LayerTypes[i])
{
if (zOurMc_n.Layers[LayerNames[i]])
{
zOurMc_n.Layers[LayerNames[i]].transform.matrix = tickret;
}
}
i = (i + 1);
}
}
continue;
}
this.transform.matrix = tickret;
}
if (Del)
{
delete OurMc_n.Layers;
}
}
}
n = (n + 1);
}
if (this.tc > 2 && this.NeedRoll)
{
this.NeedRoll = 1;
}
if (DelAll && this.Parent.SF & smiley.f_NoCache)
{
delete TickDict[this];
return;
}
}
catch (e:Error)
{
};
return;
}
function RollOverLayer(arg1:*):*
{
if (this.tc <= 2)
{
return true;
}
if (this.NeedRoll == 2)
{
return arg1.RollOver(1);
}
return true;
}
function RolloverHandler(arg1:flash.events.MouseEvent):*
{
if (this.tc > 2)
{
this.NeedRoll = 2;
}
return;
}
function GlowLayer(arg1:*):*
{
var loc2:*;
loc2 = undefined;
var loc1:*;
loc1 = flash.display.MovieClip(arg1.contentLoaderInfo.content);
if (loc1.GlowCol == 1)
{
return false;
}
if (loc1.GlowFil == undefined)
{
loc2 = loc1.GlowCol;
if (loc2 == undefined)
{
loc2 = this.GlowCol;
}
if (loc2 != undefined)
{
loc1.GlowFil = xatlib.MakeGlow(loc2, 1, 3);
}
else
{
loc1.GlowFil = SmileyGlow;
}
}
if (this.tc % 18 >= 4)
{
this.filters = null;
}
else
{
this.filters = loc1.GlowFil;
}
return true;
}
function ColorLayer(arg1:*, arg2:*, arg3:*):*
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
if (arg3 == "Face")
{
return false;
}
this.DidColor = arg1.Coloring;
var loc1:*;
loc1 = this.tc < 2 || arg1.Coloring;
if (!arg1.Cols)
{
loc4 = String(arg2).split("#");
arg1.Cols = new Array();
loc5 = 0;
loc6 = 0;
while (loc5 < 4)
{
if ((loc3 = loc4[loc6]) == undefined && loc5 == 0)
{
return false;
}
if (loc3 == undefined)
{
loc6 = 0;
loc3 = loc4[0];
}
if (loc3 != "y")
{
loc3 = xatlib.xInt(loc3);
}
if (loc3 !== 0)
{
var loc8:*;
arg1.Cols[(loc8 = loc5++)] = loc3;
}
loc6 = (loc6 + 1);
}
if (this.Parent.SP & smiley.f_FlashRank)
{
arg1.Cols.unshift(arg1.Cols[0]);
}
}
if (arg1.Cols[0] === 0 || arg1.Cols[0] === undefined)
{
return false;
}
if (this.Parent.SP & smiley.f_FlashRank && arg3 == "Base")
{
this.DidColor = true;
if ((loc7 = this.tc % 36) < 14)
{
arg1.Cols[0] = arg1.Cols[1];
}
else
{
if (loc7 >= 22 && loc7 < 30)
{
arg1.Cols[0] = arg1.Cols[2];
}
else
{
if (loc7 >= 30)
{
loc7 = (loc7 - 30) / 6;
}
else
{
loc7 = 1 - (loc7 - 14) / 8;
}
arg1.Cols[0] = int((arg1.Cols[1] & 16711680) * loc7) & 16711680 | int((arg1.Cols[1] & 65280) * loc7) & 65280 | int((arg1.Cols[1] & 255) * loc7) & 255;
loc7 = 1 - loc7;
arg1.Cols[0] = arg1.Cols[0] + (int((arg1.Cols[2] & 16711680) * loc7) & 16711680 | int((arg1.Cols[2] & 65280) * loc7) & 65280 | int((arg1.Cols[2] & 255) * loc7) & 255);
}
}
}
var loc2:*;
loc2 = arg1.Coloring || this.ColorList(arg1, flash.display.DisplayObjectContainer(arg1));
if (this.DidColor || this.tc < 2)
{
return loc2 || this.DidColor;
}
if (!(loc2 = arg1.Cols[0]) || loc2 == "")
{
return false;
}
loc3 = loc2;
if (loc2 == "y")
{
loc3 = this.cc;
}
xatlib.McSetRGB(arg1, loc3);
if (loc2 == "y")
{
return true;
}
return false;
}
private function ColorList(arg1:*, arg2:flash.display.DisplayObjectContainer, arg3:String=""):Boolean
{
var loc1:*;
loc1 = null;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc2:*;
loc2 = false;
var loc3:*;
loc3 = 0;
while (loc3 < arg2.numChildren)
{
if ((loc1 = arg2.getChildAt(loc3)) != null)
{
if ((loc4 = hcolor[loc1.name]) == undefined)
{
if (arg2.getChildAt(loc3) as flash.display.DisplayObjectContainer)
{
loc6 = this.ColorList(arg1, flash.display.DisplayObjectContainer(loc1), arg3 + " ");
loc2 = loc2 || loc6;
}
}
else
{
if ((loc4 = arg1.Cols[loc4]) == "y")
{
loc4 = this.cc;
loc2 = true;
}
if (loc4 == 0)
{
loc4 = 1;
}
(loc5 = new flash.geom.ColorTransform()).color = loc4;
loc1.transform.colorTransform = loc5;
this.DidColor = true;
}
}
loc3 = (loc3 + 1);
}
return loc2;
}
function FadeLayer(arg1:*):*
{
arg1.alpha = a[((this.tc + this.ar) % al)];
return true;
}
function HandsLayer(arg1:*, arg2:*):*
{
var Args:*;
var Parent:*;
var c:Class;
var i:*;
var mc:*;
var n:*;
var o:*;
var loc1:*;
Args = undefined;
n = undefined;
c = null;
i = undefined;
o = undefined;
mc = arg1;
Parent = arg2;
if (this.tc < 2)
{
return true;
}
if (mc.action == undefined)
{
return false;
}
if (mc.mc == undefined)
{
mc.mc = new Array();
if (mc.bleft == undefined)
{
mc.bleft = false;
}
if (mc.bright == undefined)
{
mc.bright = false;
}
if (mc.bsame == undefined)
{
mc.bsame = false;
}
if (mc.action == undefined)
{
mc.action = 0;
}
if (Parent.SC)
{
Args = Parent.SC.split("#");
}
else
{
Args = [];
}
var loc2:*;
loc2 = 0;
var loc3:*;
loc3 = Args;
label711: for (n in loc3)
{
var loc4:*;
loc4 = Args[n];
switch (loc4)
{
case "right":
{
mc.bright = true;
mc.bleft = false;
continue label711;
}
case "left":
{
mc.bleft = true;
mc.bright = false;
continue label711;
}
case "both":
{
mc.bleft = loc4 = false;
mc.bright = loc4;
continue label711;
}
case "same":
{
mc.bsame = true;
continue label711;
}
case "diff":
{
mc.bsame = false;
continue label711;
}
case "still":
{
mc.action = 0;
continue label711;
}
case "inout":
{
mc.action = 1;
continue label711;
}
case "forehead":
{
mc.action = 2;
continue label711;
}
case "wrist":
{
mc.action = 3;
continue label711;
}
case "updown":
{
mc.action = 4;
continue label711;
}
case "together":
{
mc.action = 5;
continue label711;
}
case "bat":
{
mc.action = 6;
continue label711;
}
}
}
c = Parent.mc.contentLoaderInfo.applicationDomain.getDefinition("hand") as Class;
if (!c)
{
return false;
}
if (!mc.bleft)
{
try
{
mc.mc[0] = new c() as flash.display.MovieClip;
mc.addChild(mc.mc[0]);
mc.mc[0].x = 0;
mc.mc[0].y = 10;
}
catch (e:Error)
{
return false;
}
}
if (!mc.bright)
{
try
{
mc.mc[1] = new c() as flash.display.MovieClip;
mc.addChild(mc.mc[1]);
mc.mc[1].x = 19;
mc.mc[1].y = 10;
}
catch (e:Error)
{
return false;
}
}
try
{
loc2 = mc.action;
switch (loc2)
{
case 0:
{
break;
}
case 1:
{
mc.az = new Array(100, 103, 107, 111, 116, 121, 126, 132, 137, 137, 130, 125, 120, 114, 110, 106, 102, 100);
mc.d = mc.az.length;
break;
}
case 2:
{
mc.ax = new Array(0, 0, 1, 2, 3, 4, 5, 6, 6, 6, 6, 6, 5, 4, 3, 2, 1, 0, 0, 0, -1, -2, -3, -4, -5, -5, -5, -5, -5, -5, -5, -4, -3, -2, -1, -1);
mc.ay = new Array(0, 0, -1, -2, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -3, -2, -1, 0, 0, 0, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 1, 1);
mc.az = new Array();
i = 0;
while (i < mc.ay.length)
{
mc.az.push(112 - mc.ay[i] * 4);
i = (i + 1);
}
mc.d = mc.ax.length;
break;
}
case 3:
{
mc.ar = new Array(0, 9, 18, 27, 36, 36, 27, 18, 9, 0, -9, -18, -27, -36, -36, -27, -18, -9);
mc.d = mc.ar.length;
break;
}
case 4:
{
mc.ay = new Array(0, 0, 1, 2, 3, 3, 3, 2, 1, 0, 0, -1, -2, -3, -3, -3, -2, -1);
mc.az = new Array();
i = 0;
while (i < mc.ay.length)
{
mc.az.push(112 - mc.ay[i] * 4);
i = (i + 1);
}
mc.d = mc.ay.length;
break;
}
case 5:
{
mc.ax = new Array(10, 10);
mc.ay = new Array(5, 5);
mc.az = new Array();
i = 0;
while (i < mc.ay.length)
{
mc.az.push(112 - mc.ay[i] * 4);
i = (i + 1);
}
mc.d = mc.ay.length;
break;
}
case 6:
{
mc.ay = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
mc.ar = new Array(0, -10, -20, -30, -30, -30, -30, -30, -30, 20, 40, 60, 60, 50, 40, 30, 20, 10, 0);
mc.az = new Array();
i = 0;
while (i < mc.ay.length)
{
mc.az.push(112 - mc.ay[i] * 4);
i = (i + 1);
}
mc.d = mc.ay.length;
break;
}
case 7:
{
mc.ax = new Array(-3, -3, -2, -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 0, 0, 0, 0, -1, -2, -3, -3, -3, -3);
mc.ay = new Array(6, 6, 6, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 3, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 6);
mc.ar = new Array(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 90, 90, 85, 90, 85, 90, 85, 90, 85, 90, 85, 90, 90, 90, 90, 70, 50, 30, 10, 0, 0, 0, 0, 0, 0);
mc.az = new Array();
i = 0;
while (i < mc.ay.length)
{
mc.az.push(100 + mc.ay[i] * 4);
i = (i + 1);
}
mc.d = mc.ax.length;
break;
}
}
}
catch (e:Error)
{
return false;
}
}
if (!mc.bleft)
{
try
{
mc.mc[0].x = mc.ax != undefined ? 0 + mc.ax[(this.tc % mc.d)] : 0;
mc.mc[0].y = mc.ay != undefined ? 10 + mc.ay[(this.tc % mc.d)] : 10;
mc.mc[0].scaleY = loc2 = mc.az != undefined ? mc.az[(this.tc % mc.d)] / 100 : 1;
mc.mc[0].scaleX = loc2;
mc.mc[0].rotation = mc.ar != undefined ? mc.ar[(this.tc % mc.d)] : 0;
}
catch (e:Error)
{
return false;
}
}
if (!mc.bright)
{
try
{
o = mc.bsame ? 0 : mc.d >> 1;
mc.mc[1].x = mc.ax != undefined ? 19 - mc.ax[((this.tc + o) % mc.d)] : 19;
mc.mc[1].y = mc.ay != undefined ? 10 + mc.ay[((this.tc + o) % mc.d)] : 10;
mc.mc[1].scaleY = loc2 = mc.az != undefined ? mc.az[((this.tc + o) % mc.d)] / 100 : 1;
mc.mc[1].scaleX = loc2;
mc.mc[1].scaleX = mc.mc[1].scaleX * -1;
if (mc.ar != undefined)
{
mc.mc[1].rotation = mc.ar[((this.tc + o) % mc.d)];
}
}
catch (e:Error)
{
return false;
}
}
return true;
}
private function framesrequired(arg1:Array):int
{
var loc4:*;
loc4 = 0;
var loc5:*;
loc5 = 0;
var loc6:*;
loc6 = 0;
var loc7:*;
loc7 = 0;
arg1.sort(Array.NUMERIC | Array.DESCENDING);
var loc1:*;
loc1 = 0;
while (loc1 < (arg1.length - 1))
{
if (arg1[loc1] == arg1[(loc1 + 1)])
{
arg1.splice(loc1, 1);
loc1 = 0;
}
++loc1;
}
var loc2:*;
loc2 = arg1.length;
var loc3:*;
loc3 = 1;
while (loc3 < loc2)
{
loc4 = arg1[0];
loc5 = arg1[loc3];
while (loc5 != 0)
{
loc6 = loc4 % loc5;
loc4 = loc5;
loc5 = loc6;
}
if ((loc7 = arg1[0] / loc4 * arg1[loc3]) > arg1[0])
{
arg1.unshift(loc7);
if (loc7 >= 72)
{
break;
}
loc2 = arg1.length;
loc3 = 1;
}
++loc3;
}
return arg1[0];
}
static function MasterTick():*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = 0;
var loc3:*;
loc3 = TickDict;
for (loc1 in loc3)
{
loc1.tick();
}
return;
}
{
SmileyGlow = xatlib.MakeGlow(255, 1, 3);
TickDict = new flash.utils.Dictionary(true);
}
static const LayerNames:*=new Array("Base", "Behind", "Bkg", "Face", "Hair", "Hands");
static const LayerTypes:*=new Array(0, 1, 0, 0, 1, 1);
static const NumLayers:*=LayerNames.length;
static const a:*=new Array(1, 1, 1, 1, 1, 1, 1, 0.878611111111, 0.734444444444, 0.605, 0.490555555556, 0.353611111111, 0.223333333333, 0.1275, 0.0577777777778, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0611111111111, 0.189444444444, 0.356666666667, 0.485555555556, 0.645555555556, 0.7775, 0.902222222222, 1);
static const al:*=a.length;
static const hcolor:*={"col0":0, "col1":1, "col2":2, "col3":3, "Back":0, "Col":0};
static const yt:int=36;
static const lut36:*=new Array(128, 150, 171, 192, 210, 225, 238, 247, 253, 255, 253, 247, 238, 225, 210, 192, 171, 150, 128, 106, 85, 64, 46, 31, 18, 9, 3, 1, 3, 9, 18, 31, 46, 65, 85, 106);
private static const AFrames:*={"forehead":36, "twist":18, "updown":18, "inout":18};
private static const sInfo:String="tomb,0,40,balloon,40,24,egg,0,28,magic8ball,0,22,paint,0,50,fireworks,16,42,bomb,16,40,shark,0,46,bugs,0,44,globe,0,22,dood,0,50,lb,0,24,shiver,0,24,pie,0,24,ttth,0,22,bye,36,36,sball,140,28,grin,0,22,anime,0,32,purple,0,38,costumes,0,46,pty,0,50,party,0,50,blood,0,20,confetti,0,42,hearts,57,50,champagne,40,50,snows,0,26,stickman2,37,50,stickman3,82,50,stickymca,66,50,stickairguitar,82,50,stickangry,42,50,stickkungfu,31,50,hush,0,24,count,1,22,stick,12,50,sman,1,20,eatleg,36,38,crazy,24,32,pole,72,48,lhand,72,44,mangekyou,72,20,sleep,36,36,pilgrimm,36,42,awe,72,20,toast,72,50,bio,18,24,confused,72,20,redface,72,20,smile,72,20,biggrin,72,20,cool,36,22,eek,72,20,frown,72,20,wink,72,20,tongue,72,20,mad,72,20,crying,6,22,rolleyes,72,20,star,1,20,kiss,36,20,a,1,30,vampire,72,20,sry,1,20,crs,1,20,sleepy,36,20,pirate,1,20,d,36,20,un,1,20,nod,24,20,scn,1,20,love,72,20,gagged,8,20,nme,24,20,roll,24,20,chkl,24,20,swt,18,20,blk,72,20,eyes,1,20,ill,1,20,smirk,36,20,dead,12,20,xp,1,20,hello,12,20,think,24,20,mischief,1,20,yum,24,20,goo,72,20,zip,1,22,yawn,36,20,smirk2,72,20,swear,1,20,cry2,72,22,omg,36,20,puke,24,20,what,72,28,o_o,12,20,shock,36,20,beye,1,20,cyc,6,20,wary,72,20,wt,36,20,xd,1,20,contempt,72,20,fedup,72,20,chew,12,20,horror,72,20,ashamed,72,20,tipsy,36,20,look,72,20,shifty,24,20,twitch,36,20,spin,12,20,frk,1,20,wh,1,22,mmy,36,38,hypno,36,42,grim,72,44,6,1,22,dizzy,18,20,cdn,18,28,fs,72,28,bat,72,50,rage,4,20,ghost,72,26,headband,2,40,fan,9,28,tear,36,26,comeon,9,28,apple,1,28,lemon,1,22,grump,72,20,doh,72,20,pouty,72,20,pear,1,30,maniac,3,20,3d,72,24,plum,1,28,ahhh,72,20,haira1,72,26,orange,1,20,squint,72,20,shirt,1,26,quiver,36,20,banana,8,38,haira2,72,32,soccer,1,20,haira5,72,34,haira3,72,34,haira4,72,38,pkn,1,24,astro,1,24,football,1,26,pilgrimf,36,36,stock,36,32,indian2,36,40,indian,36,46,bulb,1,42,tree,6,42,chef,36,32,dining,8,30,indian3,36,44,feast,1,26,bell,72,42,beard,36,30,ches,18,50,noface,1,20,cane,9,34,elf,36,36,loser,36,40,give,72,40,rockon,18,38,sack,1,40,thumbsup,18,32,palms,18,32,scarf,72,32,sdeer,1,28,clap,8,22,shh,36,30,thumbsdown,18,32,sfeet,36,28,flip,18,32,hug,72,44,sledge,12,30,slist,12,34,hmm,24,22,smound,36,34,backoff,72,24,hairm2,72,24,hehe,4,24,spull,9,32,wreath,1,34,ono,1,20,xb4,1,32,xb1,1,50,sgift,72,50,skiss,24,28,beat,4,18,hairm3,72,22,bheart,72,34,nrd,1,22,punk,1,20,emo,1,20,cupid,1,44,card,72,50,hairf2,72,26,hug2,36,26,hairf3,72,26,ilu,36,36,hug3,18,28,hairf4,72,26,ring,36,36,rose,1,16,goth,36,30,rose2,24,30,g1,1,20,ninja,1,20,cd,3,28,cb,1,26,police,72,24,pce,36,38,clink,18,32,bride,1,30,jester,72,30,phat,1,38,nurse,72,22,cake,72,44,dhat,36,28,sphinx,72,28,dance2,18,30,dance,18,36,dance3,18,38,groom,1,26,crown,72,28,facemask,72,20,partyhat,72,26,photo,72,30,sherlock,18,36,popper,72,48,straw,36,22,clover2,36,40,prop,4,30,halo,72,32,grad,36,30,dunce,9,38,drink,6,34,pot,72,42,ribbon,1,24,igirl,36,36,iman,1,20,pray,72,24,rainbow,36,38,cloud,72,28,shirts,1,26,trophy,72,40,tap,72,34,shi,36,40,bb,72,30,ball,1,20,helmet,1,20,x,1,38,chest,72,20,foam,18,40,weight,72,36,gst,1,20,eye,1,22,8ball,36,16,pm,1,24,kirb,24,24,tox,1,20,alien,1,20,bby,36,26,bot,4,22,pmg,1,20,inv,18,20,inv3,18,18,sonic,36,22,shadow,36,22,luigi,36,22,mario,36,22,inv2,18,20,mushroom,36,24,yoshi,1,24,countb,1,34,smashball,1,24,ness,36,28,tri,1,30,mephiles,36,30,lucario,36,30,xj9,72,28,mewtwo,36,28,link,36,26,arbiter,1,22,nights,36,26,kermit,1,20,lolwut,1,24,hk,36,20,beaker,1,28,dv,1,22,beast,1,22,homer,1,28,3tomoe,72,20,pikachu,36,30,sm,1,24,pball,1,20,wwe,1,26,a1,1,20,x3,1,24,dog,1,20,pig,1,20,nko,1,28,mk,1,24,cat,1,18,panda,1,20,penguin,1,20,cc,1,22,b,1,20,ccc,1,20,cotton,1,24,bear,36,22,c,1,20,o,1,20,t,1,18,i,36,20,mo,1,26,so,1,22,oo,1,20,sb,1,20,ph,1,22,yt,1,18,dmd,72,22,p,1,22,ush,1,20,ipod,1,18,ip,1,20,bin,36,30,sun,36,20,r,1,20,li,1,20,rain,6,22,l,1,22,f,36,22,n,24,24,pgm,1,50,rad,1,20,u,1,20,mgp,1,50,y,1,18,boy,1,22,grl,1,22,scb,1,20,star,1,20,yy,36,22,moon,1,26,note,1,20,ao,1,16,hex,1,22,rubik,1,22,cir,18,26,cdy,1,22,deer,6,28,snta,1,24,xday,18,30,xtre,6,34,g,1,22,xstk,1,22,mtoe,1,24,hly,1,26,ghat,1,24,stickman,18,50,turkey,1,18,clover,1,24,danny,72,30,qbone,36,24,ss,2,36,mc,1,24,mario8,4,20,sad,36,20,no,72,20,okp,1,24,nop,1,20,rolling,12,20,mate,1,32,jolly,8,20,amy,1,32,argue,6,20,cry,3,22,hippo,1,30,lips,1,24,airplane,4,22,dynamite,18,20,surprise,1,24,parachute,1,26,pull,1,20,grumpy,1,24,allpowers,24,40,topman,18,22,powers,18,22,snow,1,24,subhide,18,24,mirror,18,22,mod8,18,22,nofollow,18,22,invert,18,22,reghide,18,28,zoom,18,22,nopc,18,22,tempmod,18,22,noaudies,18,24,hat,18,32,red,72,22,green,72,22,light,72,22,heart,18,28,blue,72,22,shuffle,18,28,square,18,22,animate,18,26,cycle,72,22,nameglow,18,22,show,18,26,clear,18,16,pink,18,22,boot,18,24,superkick,36,42,hexagon,18,26,invisible,36,22,octogram,18,28,guestself,72,40,diamond,18,28,sinbin,72,40,hands,18,34,fade,72,22,gag,18,22,hairm,72,32,hairf,72,30,six,72,50,angel,72,48,mute,18,24,radio,36,42,fruit,18,36,sport,18,24,num,18,22,halloween,72,48,status,18,24,snowy,18,26,christmas,18,32,thanksgiving,9,34,dx,72,50,tempmem,18,22,valentine,18,34,flashrank,36,22,blueman,18,22,irish,72,34,";
private static const NiceFrames:*=new Array(1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36, 72);
private static const NiceFramesL:*=NiceFrames.length;
var Data:*;
var OurMc:*;
var Base:*;
var NoOfSmilies:*;
var NumToLoad:*;
public var Parent:*;
var cc:*=0;
var tc:*=0;
var NeedRoll:*=0;
var Frames:*=1;
var MaxW:*=0;
private var DidColor:Boolean;
var ar:*;
var rs:*;
private var GlowCol:*;
public var Loading:*=0;
private var g130:*;
private var Flags:int=0;
private var mDelAll:Boolean=true;
static var SmileyGlow:*;
private static var TickDict:*;
private static var fInfo:*;
private static var wInfo:*;
}
}
// class textWrapperClip
package
{
import flash.display.*;
public dynamic class textWrapperClip extends flash.display.MovieClip
{
public function textWrapperClip()
{
super();
return;
}
}
}
// class textWrapperClip2
package
{
import flash.display.*;
public dynamic class textWrapperClip2 extends flash.display.MovieClip
{
public function textWrapperClip2()
{
super();
return;
}
}
}
// class textWrapperClip3
package
{
import flash.display.*;
public dynamic class textWrapperClip3 extends flash.display.MovieClip
{
public function textWrapperClip3()
{
super();
return;
}
}
}
// class tickcode
package
{
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.utils.*;
public class tickcode extends flash.display.Sprite
{
public function tickcode()
{
super();
return;
}
public static function DoTick():*
{
var A:Number;
var Amplitude:Number;
var OneSec:Boolean;
var PlaySound:*;
var UsersLength:*;
var Wave:Array;
var channel:*;
var doverrunt:*;
var emi:*;
var m:*;
var n:*;
var ou:*;
var r:*;
var rr:*;
var scr:*;
var sfx_sound:*;
var sfx_sound_complete:Function;
var sfx_sound_complete_nudge:Function;
var sfx_sound_loaded:Function;
var sfx_sound_loaded_nudge:Function;
var t:*;
var w:*;
var ww:*;
var loc1:*;
t = undefined;
scr = undefined;
UsersLength = undefined;
ww = undefined;
w = undefined;
m = undefined;
ou = undefined;
r = undefined;
emi = undefined;
rr = undefined;
Wave = null;
Amplitude = NaN;
A = NaN;
sfx_sound = undefined;
channel = undefined;
sfx_sound_complete_nudge = null;
PlaySound = undefined;
sfx_sound_complete = null;
n = undefined;
OneSec = todo.tick % 12 == 0;
t = flash.utils.getTimer();
doverrunt = t - overrunt;
Lag = doverrunt > 92;
overrunt = t;
boverrun = false;
if (doverrunt > 130)
{
if (boverrun)
{
boverrun = false;
}
else
{
boverrun = true;
}
}
var loc2:*;
var loc3:*;
loc3 = ((loc2 = todo).tick + 1);
loc2.tick = loc3;
if (!todo.bMobile)
{
if (!boverrun)
{
if (todo.DoUpdateMessages || todo.ScrollDown)
{
if (main.mscrollmc.Scrolling == true || main.mscrollmc.ScrollPressed == true)
{
todo.LastScrollTime = flash.utils.getTimer();
main.mscrollmc.ScrollPressed = false;
xmessage.UpdateMessages(true, true);
}
else
{
if (main.mscrollmc.Scr_position == main.mscrollmc.Scr_size)
{
todo.LastScrollTime = undefined;
}
scr = false;
if (todo.LastScrollTime != undefined)
{
if (flash.utils.getTimer() - todo.LastScrollTime < 10000)
{
scr = true;
}
else
{
todo.LastScrollTime = undefined;
}
}
if (todo.LastScrollTime == undefined)
{
xmessage.UpdateMessages(true, scr);
}
}
}
}
}
if (!boverrun)
{
if (todo.DoBuildUserList == true || todo.DoBuildUserListScrollUp == true)
{
xmessage.BuildUserList();
todo.DoBuildUserList = false;
todo.DoBuildUserListScrollUp = false;
}
else
{
if (UserScroll)
{
xmessage.useryc = xmessage.useryc2;
UsersLength = todo.Users.length;
ww = 0;
while (ww < UsersLength)
{
if (todo.Users[xmessage.poin[ww].index].Vis)
{
xmessage.AddUserToList(xmessage.poin[ww].index);
}
ww = (ww + 1);
}
}
}
}
UserScroll = false;
if (GlowFlag)
{
GlowFlag = false;
UsersLength = todo.Users.length;
w = 0;
while (w < UsersLength)
{
t = todo.Users[w];
if (!(t.mc == null) && t.glowc as Number && t.glowc >= 0)
{
if (t.glowc > 0)
{
loc3 = ((loc2 = t).glowc - 1);
loc2.glowc = loc3;
GlowFlag = true;
}
else
{
t = t.mc.av1;
t.filters = null;
}
}
w = (w + 1);
}
}
if (todo.TabGlowFlag)
{
todo.TabGlowFlag = false;
w = -1;
while (w < main.ctabsmc.tabs.length)
{
t = main.ctabsmc.tabs[w];
if (w == -1)
{
t = main.utabsmc.tabs[2];
}
if (t && t.mc && t.mc.bub)
{
if (t.glowc > 0)
{
loc3 = ((loc2 = t).glowc - 1);
loc2.glowc = loc3;
todo.TabGlowFlag = true;
}
else
{
t.mc.bub.filters = null;
}
}
w = (w + 1);
}
}
todo.HelpUpdate = todo.HelpUpdate - todo.heartbeatduration;
if (todo.HelpUpdate < 0)
{
todo.HelpUpdate = 0;
}
if (!(todo.helpstr == "") && todo.HelpUpdate <= 0)
{
if (todo.w_help)
{
todo.DoMessageSnd = true;
todo.Message.push({"n":0, "t":todo.helpstr, "u":0});
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
}
todo.helpstr = "";
}
swfsmiley.MasterTick();
smiley.MasterTick();
loadbitmap.MasterTick();
if (OneSec)
{
if (todo.Away)
{
loc3 = ((loc2 = todo).Away + 1);
loc2.Away = loc3;
t = xatlib.xInt(todo.Macros["away"]);
if (t < 60)
{
t = 300;
}
if (todo.Away > t)
{
todo.Away = 1;
network.NetworkSendMsg(todo.w_userno, "/away");
}
}
if (todo.Typing > 1)
{
loc3 = ((loc2 = todo).Typing - 1);
loc2.Typing = loc3;
if (todo.Typing == 1)
{
network.NetworkSendMsg(todo.w_userno, "/RTypeOff", 0, todo.TypingID);
main.SetTyping(todo.w_userno, false);
}
}
cachedSprite.Tidy();
if (xkiss.Wink)
{
loc3 = ((loc2 = xkiss).WinkTO - 1);
loc2.WinkTO = loc3;
if (xkiss.WinkTO < 0)
{
xkiss.WinkDone();
}
}
}
t = false;
var loc4:*;
loc4 = ((loc2 = xmessage.Social)[(loc3 = "tc")] - 1);
loc2[loc3] = loc4;
if (xmessage.Social["new"] && !(xmessage.Social["new"] === xmessage.Social["old"]))
{
xmessage.Social["tc"] = 16 * 2;
xmessage.Social["old"] = xmessage.Social["new"];
t = true;
}
if (xmessage.Social["tc"] <= 0 && xmessage.Social["new"] && !xmessage.Social["mc"])
{
xmessage.Social["mc"] = loc2 = new library("fb");
m = loc2;
xatlib.AttachMovie(m, "plus", {"x":-2, "y":14, "scaleX":xatlib.SY(2), "scaleY":xatlib.SY(2)});
m.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, xmessage.OnSocial);
m.y = 11;
m.x = main.textPaneWidth - 26;
m.scaleY = loc2 = 0.65;
m.scaleX = loc2;
xmessage.Social["new"].addChild(xmessage.Social["mc"]);
xmessage.Social["tc"] = 16 * 3;
xmessage.Social["new"] = undefined;
}
if (xmessage.Social["mc"] && (xmessage.Social["tc"] == 0 || t))
{
xmessage.Social["mc"].parent.removeChild(xmessage.Social["mc"]);
xmessage.Social["mc"] = undefined;
xmessage.Social["tc"] = 16 * 2;
}
if (todo.tick % 16 == 0 && !todo.bStrip)
{
ou = 0;
UsersLength = todo.Users.length;
r = 0;
while (r < UsersLength)
{
if (todo.Users[r].online)
{
ou = (ou + 1);
}
if (ou >= 2)
{
break;
}
r = (r + 1);
}
if (ou == 1)
{
main.GrpIc.filters = [todo.TextGlow];
main.GrpIc.glowc = 6;
}
}
if (!todo.bHeadless && main && main.GrpIc)
{
if (main.GrpIc.glowc > 1)
{
loc3 = ((loc2 = main.GrpIc).glowc - 1);
loc2.glowc = loc3;
}
else
{
main.GrpIc.filters = null;
}
}
if (xconst.f_NoSmilies & todo.FlagBits && todo.SmilieUpdate >= 0)
{
if (todo.SmilieUpdate > todo.heartbeatduration)
{
todo.SmilieUpdate = todo.SmilieUpdate - todo.heartbeatduration;
}
else
{
todo.SmilieUpdate = 0;
}
if (todo.SmilieUpdate == 0)
{
emi = 1;
while (emi < todo.emmax)
{
if (main.em[emi] != null)
{
main.em[emi].visible = false;
}
emi = (emi + 1);
}
todo.SmilieUpdate = -1;
}
}
if (todo.lb == "n" && todo.tick % 64 == 63 || todo.ResetSmilies)
{
rr = 0;
while (rr < main.em.length)
{
if (main.em[rr] != null)
{
main.em[rr].scaleY = loc2 = main.em[rr].starts;
main.em[rr].scaleX = loc2;
main.em[rr].x = main.em[rr].startx;
main.em[rr].y = main.em[rr].starty;
}
rr = (rr + 1);
}
todo.ResetSmilies = false;
}
else
{
if (todo.w_attract && todo.lb == "n" && todo.tick % 64 > 47)
{
Wave = new Array(1, 2, 1);
Amplitude = todo.StageHeight * 12 / 480;
rr = 0;
while (rr < main.em.length)
{
A = -rr - Wave.length + todo.tick % 16;
if (A < 0 || A >= Wave.length)
{
A = 0;
}
else
{
A = Wave[A];
}
if (main.em[rr] != null)
{
main.em[rr].scaleY = loc2 = main.em[rr].starts * (1 + A / 19);
main.em[rr].scaleX = loc2;
main.em[rr].x = main.em[rr].startx;
main.em[rr].y = main.em[rr].starty - A * Amplitude;
}
rr = (rr + 1);
}
}
}
if (!todo.bHeadless)
{
if (todo.DoAudieSnd && todo.CustomSound == todo.BumpSound)
{
sfx_sound_loaded_nudge = function (arg1:flash.events.Event):void
{
main.nudge = 20;
channel = sfx_sound.play(0, 0, new flash.media.SoundTransform(todo.w_Vol[1] / 100));
channel.addEventListener(flash.events.Event.SOUND_COMPLETE, sfx_sound_complete_nudge);
return;
}
sfx_sound_complete_nudge = function (arg1:flash.events.Event):void
{
return;
}
todo.BumpSound = "";
todo.DoAudieSnd = false;
sfx_sound = new flash.media.Sound();
channel = new flash.media.SoundChannel();
sfx_sound.load(new flash.net.URLRequest(todo.chatdomain + "snd/" + todo.CustomSound + ".mp3"));
sfx_sound.addEventListener(flash.events.Event.COMPLETE, sfx_sound_loaded_nudge);
}
if (todo.w_sound & 1)
{
PlaySound = null;
if (todo.DoMessageSnd)
{
todo.DoMessageSnd = false;
if (!(global.xc & 8192) && todo.gconfig && todo.gconfig["g180"] && todo.gconfig["g180"]["m"])
{
PlaySound = todo.gconfig["g180"]["m"];
}
else
{
chat.beep.play(0, 0, new flash.media.SoundTransform(todo.w_Vol[1] / 100));
}
}
else
{
if (todo.DoUserSnd)
{
todo.DoUserSnd = false;
if (!(global.xc & 8192) && todo.gconfig && todo.gconfig["g180"] && todo.gconfig["g180"]["d"])
{
PlaySound = todo.gconfig["g180"]["d"];
}
else
{
chat.dingdong.play(0, 0, new flash.media.SoundTransform(todo.w_Vol[1] / 100));
}
}
else
{
if (todo.DoTabSnd)
{
todo.DoTabSnd = false;
if (!(global.xc & 8192) && todo.gconfig && todo.gconfig["g180"] && todo.gconfig["g180"]["t"])
{
PlaySound = todo.gconfig["g180"]["t"];
}
else
{
chat.tab_sound.play(0, 0, new flash.media.SoundTransform(todo.w_Vol[1] / 100));
}
}
}
}
if (todo.DoAudieSnd)
{
todo.DoAudieSnd = false;
PlaySound = todo.CustomSound;
}
if (PlaySound)
{
sfx_sound_loaded = function (arg1:flash.events.Event):void
{
channel = sfx_sound.play(0, 0, new flash.media.SoundTransform(todo.w_Vol[1] / 100));
channel.addEventListener(flash.events.Event.SOUND_COMPLETE, sfx_sound_complete);
return;
}
sfx_sound_complete = function (arg1:flash.events.Event):void
{
return;
}
sfx_sound = new flash.media.Sound();
channel = new flash.media.SoundChannel();
sfx_sound.load(new flash.net.URLRequest(todo.chatdomain + "snd/" + PlaySound + ".mp3"));
sfx_sound.addEventListener(flash.events.Event.COMPLETE, sfx_sound_loaded);
}
}
}
DoRadio();
if (main && main.mcscrollertext && !(main.mcscrollertext.text == ""))
{
if (main.mcscrollertext.textWidth > xatlib.NX(430))
{
main.mcscrollertext.x = (main.mcscrollertext.x - 1);
if (main.mcscrollertext.x < xatlib.NX(10) - main.mcscrollertext.textWidth)
{
main.mcscrollertext.x = xatlib.NX(430);
}
}
else
{
if (main.mcscrollertext.x > (xatlib.NX(430) - main.mcscrollertext.textWidth) / 2)
{
main.mcscrollertext.x = (main.mcscrollertext.x - 1);
}
}
}
if (BB != undefined)
{
n = 1;
while (n < 5)
{
BB[n] = Number(BB[n]);
if (isNaN(BB[n]))
{
BB = undefined;
}
n = (n + 1);
}
if (BB2 == undefined)
{
BB2 = new Array();
}
BB[1] = BB[1] - 1 / 12;
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;
}
BB2[n] = xatlib.LoadVariables("http://" + xatlib.CleanText(BB[BB[4]], 1) + "/?" + Math.random());
loc4 = ((loc2 = BB)[(loc3 = 4)] + 1);
loc2[loc3] = loc4;
}
}
}
return;
}
public static function SetRadio():*
{
var loc1:*;
loc1 = todo.w_sound & 2;
if (loc1 == 0)
{
fade = 6;
if (channel[0] != undefined)
{
channel[0].stop();
}
if (radio[0] != undefined)
{
radio[0].close();
}
radio[0] = undefined;
channel[0] = undefined;
if (channel[1] != undefined)
{
channel[1].stop();
}
if (radio[1] != undefined)
{
radio[1].close();
}
radio[1] = undefined;
channel[1] = undefined;
radio_state = -1;
}
else
{
if (radio_state == -1)
{
radio_load = undefined;
radio_state = 0;
}
}
return;
}
static function DoRadio(arg1:*=false):*
{
var loc3:*;
loc3 = undefined;
var loc1:*;
loc1 = false;
if (media != undefined)
{
if (media != todo.useRadio)
{
media = todo.useRadio;
loc1 = true;
}
}
else
{
media = todo.useRadio;
}
if (radio_state == undefined)
{
if (todo.w_sound & 2)
{
radio_state = 0;
}
else
{
radio_state = -1;
}
}
if (!(todo.w_sound & 2))
{
return;
}
if (todo.useRadio == undefined)
{
return;
}
if (radio_state == -1)
{
return;
}
if (todo.w_sound == undefined)
{
return;
}
var loc2:*;
loc2 = "/;";
if (todo.useRadio.substr(todo.useRadio.length - 4, 4) == ".mp3")
{
loc2 = "";
}
var loc4:*;
loc4 = radio_state;
switch (loc4)
{
case 0:
{
ff = !ff;
radio[(ff ? 0 : 1)] = new flash.media.Sound();
channel[(ff ? 0 : 1)] = new flash.media.SoundChannel();
radio[(ff ? 0 : 1)].load(new flash.net.URLRequest(todo.useRadio + loc2), new flash.media.SoundLoaderContext(3000));
radio_state = 1;
break;
}
case 1:
{
if (!radio[(ff ? 0 : 1)].isBuffering)
{
radio_load = flash.utils.getTimer();
channel[(ff ? 0 : 1)] = radio[(ff ? 0 : 1)].play(0, 0, new flash.media.SoundTransform(0));
radio_state = 2;
}
break;
}
case 2:
{
loc3 = todo.w_Vol[2] / 100;
if (channel[(ff ? 0 : 1)] != undefined)
{
channel[(ff ? 0 : 1)].soundTransform = new flash.media.SoundTransform(loc3 / fade);
}
if (channel[(ff ? 1 : 0)] != undefined)
{
channel[(ff ? 1 : 0)].soundTransform = new flash.media.SoundTransform(loc3 - loc3 / fade);
}
var loc5:*;
fade--;
if (fade == 0)
{
fade = 6;
if (channel[(ff ? 1 : 0)] != undefined)
{
channel[(ff ? 1 : 0)].stop();
}
if (radio[(ff ? 1 : 0)] != undefined)
{
radio[(ff ? 1 : 0)].close();
}
radio[(ff ? 1 : 0)] = undefined;
channel[(ff ? 1 : 0)] = undefined;
radio_state = 3;
}
break;
}
case 3:
{
if (flash.utils.getTimer() - radio_load > 60 * 1000)
{
radio_state = 0;
}
if (arg1)
{
loc3 = todo.w_Vol[2] / 100;
if (channel[(ff ? 0 : 1)] != undefined)
{
channel[(ff ? 0 : 1)].soundTransform = new flash.media.SoundTransform(todo.w_Vol[2] / 100);
}
}
break;
}
}
if (loc1)
{
radio_state = 0;
loc1 = false;
}
return;
}
{
UserScroll = false;
s2 = 0;
overrunt = 0;
boverrun = false;
Lag = false;
radio = new Array(undefined, undefined);
channel = new Array(undefined, undefined);
radio_load = undefined;
radio_state = undefined;
ff = true;
fade = 6;
media = undefined;
}
public static var UserScroll:Boolean=false;
public static var GlowFlag:Boolean;
public static var s1:*;
public static var s2:*=0;
public static var s3:*;
public static var BB:*;
public static var BB2:*;
public static var overrunt:*=0;
public static var boverrun:*=false;
public static var Lag:*=false;
static var radio:*;
static var channel:*;
static var radio_load:*;
static var radio_state:*;
static var ff:*=true;
static var fade:*=6;
static var media:*;
}
}
// class todo
package
{
import flash.display.*;
import flash.filters.*;
import flash.geom.*;
import flash.text.*;
import flash.utils.*;
public class todo extends Object
{
public function todo()
{
super();
return;
}
public static function ImInviteAll():*
{
return;
}
public static function HasPowerA(arg1:*, arg2:*, arg3:*):*
{
var loc4:*;
loc4 = undefined;
if (arg2 == 136)
{
loc4 = (loc4 = 0 + 1);
}
if (!arg1)
{
return false;
}
var loc1:*;
loc1 = arg2 >> 5;
if (arg2 < 0)
{
loc1 = -1;
}
if (!arg1[loc1])
{
return false;
}
var loc2:*;
loc2 = arg2 % 32;
if (arg2 < 0)
{
loc2 = ((-arg2) % 32 - 1);
}
var loc3:*;
loc3 = arg1[loc1];
if (arg3 && arg3[loc1])
{
loc3 = loc3 & !arg3[loc1];
}
return !((loc3 & 1 << loc2) == 0);
}
public static function HasPower(arg1:*, arg2:*):*
{
if (!Users[arg1])
{
return false;
}
return HasPowerA(Users[arg1].Powers, arg2);
}
public static function Debug():*
{
var loc1:*;
loc1 = 0;
loc1 = (loc1 + 1);
return;
}
{
config = new Object();
gconfig = new Object();
bMobile = false;
bThin = false;
bHeadless = false;
bStrip = false;
bSmilies = false;
debug = false;
turbo = 1;
avs = 7;
FV = 9;
mi = 0;
News = 17;
LastBump = -1;
systemMessages = "";
w_userno = 0;
w_k1 = 0;
w_k2 = 0;
w_userrev = undefined;
w_d0 = 0;
w_d1 = 0;
w_registered = undefined;
w_Powers = todo.NO_POWERS.slice();
w_GroupPowers = todo.NO_POWERS.slice();
w_PowerO = undefined;
w_room = 1;
w_useroom = w_room;
w_friendlist = new Array();
w_friendlist2 = new Object();
w_name = "";
w_avatar = "";
w_homepage = "";
w_Vol = new Array();
w_Mask = todo.NO_POWERS.slice();
w_autologin = 65535;
w_pool = 0;
w_banlist = new Array();
w_ignorelist2 = new Object();
w_userrevlist = new Array();
w_namelist = new Array();
w_avatarlist = new Array();
w_homepagelist = new Array();
w_hints = true;
MessageToSend = "";
Users = new Array();
Tickled = 1;
MessageToProcess = "";
tick = 0;
PrivateChat = 0;
PrivateMessage = 0;
helpstr = "";
HelpUpdate = 0;
tabs = new Array();
lb = "n";
Message = new Array();
ButCol = 13158600;
ButColW = 0;
ButColW2 = 0;
BackVars = new Array(undefined, undefined, undefined, undefined, new Array(), " ", undefined);
Pools = new Array();
heartbeatduration = 83;
w_help = true;
SmilieUpdate = -1;
w_attract = true;
DoAudieSnd = false;
CustomSound = "";
BumpSound = "";
Away = 0;
Typing = 0;
TypingID = 0;
TextGlow = new flash.filters.GlowFilter(65280, 0.7, 4, 4, 6, 3, false, false);
myDropFilter = new flash.filters.DropShadowFilter(6, 45, 0, 0.6, 5, 5, 1, 1, false, false, false);
DropFilter = new Array();
StageWidth = 640;
StageHeight = 480;
Macros = {};
LangText = undefined;
DropFilter.push(myDropFilter);
}
public static const PWR_MAX_TRADE:int=62 + 32 + 32 + 32 * 2 + 32 * 3;
public static const MAX_PWR_INDEX:int=int(PWR_MAX_TRADE / 32) + 1;
public static const NO_POWERS:*=[0, 0, 0, 0, 0, 0, 0, 0, 0];
public static const ALL_POWERS:*=[4294967295, 4294967295, 4294967295, 4294967295, 4294967295, 4294967295, 4294967295, 4294967295, 4294967295];
public static const chatdomain:String="http://xat.com/web_gear/chat/";
public static const imagedomain:String="http://www.xatech.com/images/";
public static var config:*;
public static var gconfig:*;
public static var bMobile:*=false;
public static var bThin:*=false;
public static var bHeadless:*=false;
public static var bStrip:*=false;
public static var bSmilies:*=false;
public static var debug:*=false;
public static var turbo:int=1;
public static var avs:int=7;
public static var FV:int=9;
public static var helpupdate:*;
public static var mi:*=0;
public static var MessageCount:*;
public static var News:*=17;
public static var LastBump:*=-1;
public static var systemMessages:*="";
public static var w_userno:Number=0;
public static var w_k1:Number=0;
public static var w_k2:Number=0;
public static var w_ALLP:Number;
public static var w_userrev:*;
public static var w_d0:Number=0;
public static var w_d1:Number=0;
public static var w_d2:Number;
public static var w_d3:Number;
public static var w_dt:Number;
public static var w_coins:Number;
public static var w_email:*;
public static var w_password:*;
public static var w_bride:Number;
public static var w_registered:*;
public static var w_VIP:*;
public static var w_Powers:Array;
public static var w_GroupPowers:Array;
public static var w_xats:Number;
public static var w_sn:*;
public static var w_PowerO:*;
public static var w_k3:Number;
public static var w_room:Number=1;
public static var w_useroom:Number;
public static var w_friendlist:Array;
public static var w_friendlist2:Object;
public static var w_name:String="";
public static var w_avatar:String="";
public static var w_homepage:String="";
public static var w_Vol:Array;
public static var w_sound:*;
public static var w_Mask:*;
public static var w_autologin:*=65535;
public static var w_pool:Number=0;
public static var w_member:Boolean;
public static var w_moderator:Boolean;
public static var w_owner:Boolean;
public static var w_mainowner:Boolean;
public static var w_lang:*;
public static var w_langv:*;
public static var w_roomlang:*;
public static var w_banlist:Array;
public static var w_ignorelist2:Object;
public static var w_userrevlist:Array;
public static var w_namelist:Array;
public static var w_avatarlist:Array;
public static var w_homepagelist:Array;
public static var w_Options:*;
public static var w_news:*;
public static var w_hints:*=true;
public static var DoBuildUserListScrollUp:Boolean;
public static var messageecho:String;
public static var MessageToSend:String="";
public static var Users:Array;
public static var Tickled:int=1;
public static var forceport:*;
public static var forcedom:String;
public static var sockdomain:String;
public static var DoBuildUserList:Boolean;
public static var DoUpdate:Boolean;
public static var DoUpdateMessages:Boolean;
public static var MessageToProcess:String="";
public static var tick:Number=0;
public static var PrivateChat:*=0;
public static var PrivateMessage:*=0;
public static var helpstr:*="";
public static var HelpUpdate:*=0;
public static var ScrollDown:Boolean;
public static var LastScrollTime:*;
public static var DoUserSnd:Boolean;
public static var ResetSmilies:Boolean;
public static var LoginPressed:Boolean;
public static var WV2:Boolean;
public static var tabs:Array;
public static var OnSuper:Boolean;
public static var lb:String="n";
public static var LastMessageToSend:String;
public static var Message:Array;
public static var ButCol:*=13158600;
public static var ButColW:*=0;
public static var ButColW2:*=0;
public static var BackVars:*;
public static var MainFlagBits:*;
public static var FlagBits:Number;
public static var mcgetachat:*;
public static var Pools:Array;
public static var Private_onRelease:Number;
public static var pass:*;
public static var useport:Number;
public static var usebackground:*;
public static var useRadio:*;
public static var pool:*;
public static var newpool:*;
public static var emmax:*;
public static var connectchannel:*;
public static var mscrollmc:*;
public static var heartbeatduration:Number=83;
public static var w_help:*=true;
public static var SmilieUpdate:*=-1;
public static var w_attract:*=true;
public static var TabGlowFlag:Boolean;
public static var DoMessageSnd:Boolean;
public static var DoTabSnd:Boolean;
public static var DoAudieSnd:Boolean=false;
public static var CustomSound:*="";
public static var BumpSound:*="";
public static var LastTabUser:Number;
public static var Away:int=0;
public static var Typing:int=0;
public static var TypingID:int=0;
public static var TextGlow:flash.filters.GlowFilter;
public static var myDropFilter:flash.filters.DropShadowFilter;
public static var DropFilter:Array;
public static var Meezer:*;
public static var StageWidth:*=640;
public static var StageHeight:*=480;
public static var Macros:*;
public static var autologin:*;
public static var tpw:*;
public static var tph:*;
public static var tpx:*;
public static var tpy:*;
public static var RefreshLogin:*;
public static var group:*;
public static var UserNo:*;
public static var LastPC:*;
public static var LangText:*;
}
}
// class tongue
package
{
import flash.display.*;
public dynamic class tongue extends flash.display.MovieClip
{
public function tongue()
{
super();
return;
}
}
}
// class vampire
package
{
import flash.display.*;
public dynamic class vampire extends flash.display.MovieClip
{
public function vampire()
{
super();
return;
}
}
}
// class wink
package
{
import flash.display.*;
public dynamic class wink extends flash.display.MovieClip
{
public function wink()
{
super();
return;
}
}
}
// class xAvatar
package
{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.net.*;
public dynamic class xAvatar extends flash.display.MovieClip
{
public function xAvatar(arg1:flash.display.MovieClip, arg2:String, arg3:String="", arg4:*, arg5:*=0, arg6:*=0, arg7:*)
{
var loc1:*;
loc1 = NaN;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
var loc9:*;
loc9 = undefined;
var loc10:*;
loc10 = undefined;
var loc11:*;
loc11 = undefined;
var loc13:*;
loc13 = undefined;
var loc14:*;
loc14 = undefined;
super();
this.Parent = arg1;
this.Av = this;
if (!arg2)
{
return;
}
var loc2:*;
loc2 = false;
var loc3:*;
loc3 = 0;
var loc4:*;
loc4 = xatlib.xInt(arg2);
var loc5:*;
loc5 = arg2;
arg1.addChild(this);
if (todo.config["noavatars"])
{
return;
}
if (todo.Macros["avatars"] === "off")
{
return;
}
if ((arg6 & 32) != 0)
{
this.Av.filters = todo.DropFilter;
}
if (arg4 != undefined)
{
this.Av.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, arg4);
this.Av.buttonMode = true;
}
if (loc4 > 0)
{
arg2 = xatlib.UrlAv(loc4);
}
this.Av.b = new flash.display.MovieClip();
this.Av.addChild(this.Av.b);
loc11 = arg2.split(")");
loc7 = 0;
if (loc11[1] != undefined)
{
loc7 = (loc7 + 1);
}
loc9 = loc11[loc7].split("#");
arg2 = (loc11 = loc11[0].split("#"))[0];
if (loc9[1])
{
if (arg5 && !todo.bMobile && !(todo.Macros["gitter"] == "off"))
{
loc6 = loc9[1].toLowerCase();
loc10 = xconst.Glitters[loc6];
if (loc6 == "snowy" && !todo.HasPowerA(arg7, 56))
{
loc10 = false;
}
if (loc10)
{
this.Av.Glitter = loc9[1];
if (!(loc10 == 2) || xatlib.SmOk(loc9[2], arg7))
{
this.Av.Glitter2 = loc9.slice(2).join("#");
}
}
}
}
var loc12:*;
loc12 = 0;
if (arg7 != undefined)
{
loc12 = xatlib.xInt(arg7[0] >> 18 & 3);
}
if (todo.Macros["animate"] === "off")
{
loc12 = 0;
}
if (loc12 == 0)
{
if (arg2.indexOf("photobucket.com/") > 1 && arg2.indexOf("th_") < 0)
{
this.Av.U2 = arg2;
loc7 = arg2.lastIndexOf("/") + 1;
arg2 = arg2.substr(0, loc7) + "th_" + arg2.substr(loc7);
}
if (arg2.indexOf("tinypic.com/") > 1 && arg2.indexOf("_th") < 0)
{
this.Av.U2 = arg2;
loc7 = arg2.lastIndexOf(".");
arg2 = arg2.substr(0, loc7) + "_th" + arg2.substr(loc7);
}
}
if (arg5 && arg2.substr(0, 1) == "(")
{
loc13 = arg2.substr(1);
if (!xatlib.SmOk(loc13, arg7))
{
loc13 = "smile";
}
this.Av.b.SF = 2 | smiley.f_NoCache;
this.Av.b.SA = loc5;
loc11[0] = loc11[0].substr(1);
xmessage.PowSm(this.Av.b, loc11, 30, arg7);
this.Av.b.x = this.Av.b.x + xatlib.xInt(this.Av.b.xx);
arg2 = xatlib.SmilieUrl(loc13, "sm") + "&r=2";
loc8 = loc13;
}
else
{
if (loc4 < 0)
{
if (arg2.toLowerCase().indexOf(".jpg") == -1 && arg2.toLowerCase().indexOf(".jpeg") == -1 && arg2.toLowerCase().indexOf(".png") == -1)
{
arg2 = "";
}
if (arg2.toLowerCase().indexOf("xat") != -1)
{
arg2 = "";
}
}
}
if (loc4 != -1)
{
if (arg2.substr(0, 7) == "http://")
{
this.Av.b.c = this.Av.b;
this.Av.b.c.visible = false;
this.Av.U1 = arg2;
this.Av.St = 1;
this.Av.An = -loc12;
}
loc3 = 1;
}
else
{
loc14 = new library("HelpIcon");
this.Av.addChild(loc14);
var loc15:*;
loc14.height = loc15 = 30;
loc14.width = loc15;
loc14.xitem.xinfo.visible = false;
loc14 = new library("glint");
this.Av.addChild(loc14);
loc14.height = loc15 = 25;
loc14.width = loc15;
loc14.x = 3;
loc14.y = -5;
}
this.Av.sm = loc8;
this.Count = 18;
if (loc3 > 0)
{
this.Av.Gray = xatlib.ButtonCurve2(0, 30, 30, 0, 0, 0, 0, 8421504);
this.Av.addChild(this.Av.Gray);
this.Av.Gray.visible = loc3 > 18;
this.Av.Gray.alpha = 0.5;
}
addEventListener(flash.events.Event.ENTER_FRAME, this.Tick);
this.Parent.addEventListener(flash.events.Event.REMOVED_FROM_STAGE, this.cleanUp);
return;
}
function cleanUp(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = undefined;
if (this.Av.Gt)
{
if (this.Av.g)
{
this.Av.removeChild(this.Av.g);
this.Av.g.unloadAndStop(true);
this.Av.g = null;
}
}
if (!this.Av.sm)
{
loc1 = this.Av.b.c;
if (loc1 && loc1.ns)
{
loc1.removeChild(loc1.ns);
Bin.put(this.Av.U1, loc1.ns);
loc1.ns = null;
loc1 = null;
this.Av = null;
}
}
try
{
this.Parent.removeEventListener(flash.events.Event.REMOVED_FROM_STAGE, this.cleanUp);
this.removeEventListener(flash.events.Event.ENTER_FRAME, this.Tick);
}
catch (e:*)
{
};
this.Parent = undefined;
return;
}
function Delete():*
{
return;
}
function Tick(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = null;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
var loc8:*;
var loc9:*;
atc++;
if (!this.Av)
{
return;
}
var loc4:*;
loc4 = new Array();
loc3 = loc8 = this.Av.b.c;
if (loc8 != undefined)
{
if (this.Count <= 0)
{
this.Av.Gray.visible = true;
}
loc9 = ((loc8 = this).Count - 1);
loc8.Count = loc9;
if (this.Av.St == 1)
{
if ((loc6 = MovieHash[this.Av.U1]) == 1 && this.Count > -12 * 10)
{
return;
}
if (loc6 == 3 || loc6 == 1)
{
removeEventListener(flash.events.Event.ENTER_FRAME, this.Tick);
this.Av.Gray.visible = true;
return;
}
if (loc6 == undefined)
{
MovieHash[this.Av.U1] = 1;
}
if (this.Av.sm)
{
loc3.SP = loc3.SP | smiley.b_glow;
loc3.ns = new smiley(loc3, this.Av.sm);
}
else
{
loc3.ns = loc8 = Bin.grab(this.Av.U1);
if (loc8)
{
loc3.addChild(loc3.ns);
}
else
{
loc3.ns = new loadbitmap(loc3, this.Av.U1);
}
}
this.Av.St = 2;
}
loc5 = false;
if (loc3.width > 0)
{
MovieHash[this.Av.U1] = 2;
if (this.Av.An > 0)
{
this.Av.Ac = (this.Av.Ac + 1) % this.Av.Rat;
this.Av.scrollRect = new flash.geom.Rectangle(loc3.height * this.Av.Ac, 0, loc3.height, loc3.height);
}
else
{
if (loc3.width * loc3.height > 1024 * 768 || !this.Av.sm && loc3.swfVersion >= 0)
{
MovieHash[this.Av.U1] = 3;
loc3.parent.removeChild(loc3);
this.Count = 0;
}
else
{
if (this.Av.sm)
{
loc3.scaleX = loc3.scaleX * 1.58;
loc3.scaleY = loc3.scaleY * 1.58;
}
else
{
this.Av.Rat = xatlib.xInt(loc3.width / loc3.height);
if (this.Av.Rat >= 3)
{
if (this.Av.U2 != undefined)
{
loc3.parent.removeChild(loc3);
this.Av.U1 = this.Av.U2;
this.Av.U2 = undefined;
this.Av.St = 1;
return;
}
this.Av.Ac = 0;
this.Av.An = -this.Av.An;
loc3.scaleY = loc8 = 30 / loc3.height;
loc3.scaleX = loc8;
if (this.Av.An & 2)
{
loc5 = true;
}
else
{
if (this.Av.An & 1)
{
this.Av.Ac = xatlib.xInt(Math.random() * this.Av.Rat);
}
}
this.Av.scrollRect = new flash.geom.Rectangle(loc3.height * this.Av.Ac, 0, loc3.height, loc3.height);
}
else
{
loc3.scaleX = 30 / loc3.width;
loc3.scaleY = 30 / loc3.height;
}
}
loc3.visible = true;
this.Av.removeChild(this.Av.Gray);
if (this.Av.Glitter != undefined)
{
loc7 = xatlib.SmilieUrl(this.Av.Glitter, "gt2");
if (this.Av.Glitter2)
{
loc7 = loc7 + "&s=" + this.Av.Glitter2;
}
this.Av.Gt = loc7;
this.Av.g = loc8 = Bin.grab(loc7);
if (loc8)
{
this.Av.addChild(this.Av.g);
}
else
{
this.Av.g = xatlib.LoadMovie(this.Av, loc7);
}
}
}
if (loc5 == false)
{
removeEventListener(flash.events.Event.ENTER_FRAME, this.Tick);
}
}
}
}
return;
}
{
MovieHash = new Object();
Bin = new recycle();
atc = 0;
oatc = 0;
}
var mLoader:flash.display.Loader;
public var Av:*;
var Count:*;
var Parent:*;
static var MovieHash:*;
static var Bin:*;
public static var atc:*=0;
public static var oatc:*=0;
}
}
// class xBut
package
{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.system.*;
import flash.text.*;
public dynamic class xBut extends flash.display.Sprite
{
public function xBut(arg1:*, arg2:Number, arg3:Number, arg4:Number, arg5:Number, arg6:String, arg7:*, arg8:Number=0, arg9:Number=8, arg10:*)
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
this.But = this;
super();
this.ww = arg4;
this.hh = arg5;
var loc5:*;
this.sx = loc5 = arg2;
this.x = loc5;
this.sy = loc5 = arg3;
this.y = loc5;
this.sw = int(arg4);
this.sh = int(arg5);
mouseChildren = arg8 & xatlib.b_mouseChild;
this.PressFunc = arg7;
if (arg1 != undefined)
{
arg1.addChild(this);
}
this.TextColor = todo.ButColW;
this.ButColor = arg10 === undefined ? todo.ButCol : arg10;
if (arg8 & (b_Panel | b_Gray))
{
this.TextColor = 0;
}
if (arg8 & b_Panel)
{
loc3 = 0;
while (loc3 < 2)
{
if ((this.ButColor & 8421504) == 0)
{
this.ButColor = this.ButColor << 1;
}
loc3 = (loc3 + 1);
}
}
if (arg8 & b_Gray)
{
this.ButColor = 13158600;
}
if (arg8 & b_Grayed)
{
this.alpha = 0.4;
this.TextColor = 8421504;
}
this.mcFmt = new flash.text.TextFormat();
this.mcFmt.align = "center";
if (arg8 & b_LeftText)
{
this.mcFmt.align = "left";
}
this.mcFmt.bold = true;
this.mcFmt.color = this.TextColor;
this.mcFmt.font = "_sans";
var loc1:*;
loc1 = xatlib.Blend(this.sw, 70, 150, 8, 20);
var loc2:*;
loc2 = xatlib.Blend(this.sh, 15, 40, 10, 20);
this.mcFmt.size = loc1;
if (loc2 < loc1)
{
this.mcFmt.size = loc2;
}
if (arg8 > 16777215)
{
this.mcFmt.size = this.mcFmt.size + (arg8 >> 24);
}
if (!todo.bHeadless)
{
this.but_holder = new flash.display.Sprite();
addChild(this.but_holder);
this.but_back = new Metal();
this.but_back.width = this.sw;
this.but_back.height = this.sh;
this.but_holder.addChild(this.but_back);
xatlib.McSetRGB(this.but_back, this.ButColor);
}
if (!todo.bHeadless)
{
if (arg8 & b_Panel)
{
this.but_metal = new panelmetal();
}
else
{
this.but_metal = new buttonmetal();
}
this.but_metal.width = this.sw;
this.but_metal.height = this.sh;
this.but_holder.addChild(this.but_metal);
}
if (!todo.bHeadless)
{
loc4 = xatlib.ButtonCurve2(arg9, this.sw + 1, this.sh + 1, arg8, 0, 0, 0);
this.but_holder.addChild(loc4);
this.but_holder.mask = loc4;
this.but_holder.addChild(xatlib.ButtonCurve2(arg9, this.sw, this.sh, arg8, 1, 0, 0.2, 0, 0));
}
this.mcTxt = new flash.text.TextField();
this.mcTxt.x = 0;
this.mcTxt.y = 0;
this.mcTxt.width = this.sw;
this.mcTxt.height = this.sh;
this.mcTxt.autoSize = flash.text.TextFieldAutoSize.NONE;
this.mcTxt.defaultTextFormat = this.mcFmt;
this.mcTxt.text = arg6;
this.mcTxt.y = xatlib.Blend(this.sh - this.mcTxt.textHeight, 5, 25, 0, 10);
this.mcTxt.selectable = true;
addChild(this.mcTxt);
if (arg8 & b_NoPress)
{
if (arg6.length > 0)
{
addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.TextToClip);
}
}
else
{
addEventListener(flash.events.MouseEvent.ROLL_OVER, this.rollOverHandler, false, 0, true);
addEventListener(flash.events.MouseEvent.ROLL_OUT, this.rollOutHandler, false, 0, true);
addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.mouseDownHandler, false, 0, true);
buttonMode = true;
}
addEventListener(flash.events.Event.REMOVED_FROM_STAGE, this.cleanUp, false, 0, true);
return;
}
private function cleanUp(arg1:flash.events.Event):*
{
stage.removeEventListener(flash.events.MouseEvent.MOUSE_UP, this.mouseUpHandler);
removeEventListener(flash.events.MouseEvent.ROLL_OVER, this.rollOverHandler);
removeEventListener(flash.events.MouseEvent.ROLL_OUT, this.rollOutHandler);
removeEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
return;
}
private function TextToClip(arg1:*):*
{
flash.system.System.setClipboard(this.mcTxt.text);
return;
}
public function RefreshColor():*
{
this.TextColor = todo.ButColW;
this.ButColor = todo.ButCol;
if (!todo.bHeadless)
{
xatlib.McSetRGB(this.but_back, this.ButColor);
}
this.mcFmt.color = this.TextColor;
this.mcTxt.setTextFormat(this.mcFmt);
return;
}
public function rollOverHandler(arg1:flash.events.MouseEvent):void
{
if (this.RollOver)
{
if (this.RollOver as String)
{
main.hint.Hint(0, 0, this.RollOver, true, 0, undefined, 0, arg1.currentTarget);
}
else
{
this.RollOver(arg1);
}
}
this.mcFmt.color = !this.TextColor;
if (todo.ButColW2 < 192 || todo.ButColW2 > 576)
{
this.mcFmt.color = 8421504;
}
this.mcTxt.setTextFormat(this.mcFmt);
return;
}
public function rollOutHandler(arg1:flash.events.MouseEvent):void
{
if (this.RollOut)
{
this.RollOut();
}
if (main && main.hint)
{
main.hint.HintOff();
}
this.mcFmt.color = this.TextColor;
this.mcTxt.setTextFormat(this.mcFmt);
return;
}
public function mouseDownHandler(arg1:flash.events.MouseEvent):void
{
stage.addEventListener(flash.events.MouseEvent.MOUSE_UP, this.mouseUpHandler);
if (this.PressFunc)
{
this.PressFunc(arg1);
}
var loc1:*;
var loc2:*;
loc2 = ((loc1 = this).x + 1);
loc1.x = loc2;
loc2 = ((loc1 = this).y + 1);
loc1.y = loc2;
this.mcFmt.color = this.TextColor;
this.mcTxt.setTextFormat(this.mcFmt);
return;
}
public function mouseUpHandler(arg1:*):void
{
stage.removeEventListener(flash.events.MouseEvent.MOUSE_UP, this.mouseUpHandler);
this.x = this.sx;
this.y = this.sy;
this.mcFmt.color = this.TextColor;
this.mcTxt.setTextFormat(this.mcFmt);
return;
}
public function set TextCol(arg1:Number):*
{
return;
}
public function SetTextCol(arg1:Number):*
{
this.TextColor = arg1;
this.mcFmt.color = arg1;
this.mcTxt.setTextFormat(this.mcFmt);
return;
}
public function set Col(arg1:Number):*
{
return;
}
public function SetColor(arg1:Number):*
{
return;
}
public function Text(arg1:String):*
{
return;
}
public function SetText(arg1:String):*
{
this.mcTxt.text = arg1;
this.mcFmt.color = this.TextColor;
this.mcTxt.setTextFormat(this.mcFmt);
return;
}
public function SetRoll(arg1:*, arg2:*):*
{
this.RollOver = arg1;
this.RollOut = arg2;
return;
}
public function SetHint(arg1:*):*
{
main.hint.AddEasyHint(this, arg1, {"MaxWidth":xatlib.NX(300)});
return;
}
public static const b_LeftText:Number=2;
public static const b_Panel:Number=8;
public static const b_Border:Number=16;
public static const b_NoPress:Number=32;
public static const b_Grayed:Number=64;
public static const b_Gray:Number=128;
var mcFmt:flash.text.TextFormat;
var mcTxt:flash.text.TextField;
var but_back:*;
var but_metal:*;
private var but_holder:*;
var sx:Number;
var sy:Number;
var sw:Number;
var sh:Number;
var TextColor:*;
public var ButColor:*;
var But:*;
var PressFunc:*;
var RollOver:*;
var RollOut:*;
public var ww:int;
public var hh:int;
}
}
// class xDialog
package
{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import flash.ui.*;
public dynamic class xDialog extends flash.display.MovieClip
{
public function xDialog(arg1:*, arg2:Number, arg3:Number, arg4:Number, arg5:Number, arg6:String, arg7:String, arg8:Number=0, arg9:*)
{
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
this.Dia = this;
super();
if (chat.mainDlg)
{
main.hint.HintOff();
}
this.sParent = arg1;
var loc1:*;
loc1 = 0;
this.Background = xatlib.ButtonCurve2(0, todo.StageWidth, todo.StageHeight, 0, 0, 0, 0, 0);
this.Background.alpha = 0.3;
this.Background.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.DoDelete);
this.Background.buttonMode = true;
arg1.addChild(this.Background);
arg1.addChild(this);
if (isNaN(arg2))
{
if ((arg4 = 300) > todo.StageWidth - 10)
{
arg4 = todo.StageWidth - 10;
}
if ((arg5 = 170) > todo.StageHeight - 10)
{
arg5 = todo.StageHeight - 10;
}
arg2 = todo.StageWidth / 2 - arg4 / 2;
arg3 = todo.StageHeight / 2 - arg5 / 2;
}
this.DiaBack = new xBut(this, arg2, arg3, arg4, arg5, "", undefined, xBut.b_Panel | xBut.b_Border | xBut.b_NoPress);
if (arg6 && arg6.length > 0)
{
if ((loc1 = xatlib.NY(30)) < 23)
{
loc1 = 23;
}
if (loc1 > 30)
{
loc1 = 30;
}
this.DiaBar = new xBut(this, arg2, arg3, arg4, loc1, " " + arg6, undefined, xatlib.c_bl | xatlib.c_br | xBut.b_LeftText | xBut.b_Border | xBut.b_NoPress | xatlib.b_mouseChild);
loc2 = new library("close");
addChild(loc2);
loc3 = int((loc1 - loc2.height) / 2);
loc2.y = arg3 + loc3;
loc2.x = arg2 + arg4 - loc2.width - loc3;
loc2.buttonMode = true;
loc2.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.DoDelete);
}
if (arg7 && arg7.length > 0)
{
xatlib.createTextNoWrap(this.DiaBack.But, 5, loc1, arg4 - 10, arg5 - loc1 - 30, arg7, 0, 16777185, 100, 0, 18, "left", 2);
}
if (arg8 & 1)
{
this.Dia.Ok = new xBut(this, arg2 + int((arg4 - 100) / 2), arg3 + arg5 - 30, 100, 25, xconst.ST(45), this.Delete);
}
return;
}
public function DoDelete(arg1:flash.events.MouseEvent):*
{
if (this.sParent && !(this.sParent.Delete == null))
{
this.sParent.Delete();
}
else
{
this.Delete();
}
return;
}
public function Delete(arg1:flash.events.MouseEvent):*
{
if (!this.sParent)
{
return;
}
this.sParent.removeChild(this.Background);
this.sParent.removeChild(this);
this.sParent = null;
return;
}
var Dia:*;
public var sParent:*;
var Background:*;
var DiaBack:*;
var DiaBar:*;
}
}
// class xScroll
package
{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
internal class xScroll extends flash.display.Sprite
{
public function xScroll(arg1:*, arg2:Number, arg3:Number, arg4:Number, arg5:Number, arg6:Number, arg7:Number, arg8:Number, arg9:Number, arg10:Number, arg11:*)
{
super();
if (arg1 != undefined)
{
arg1.addChild(this);
}
this.Scr_x = arg2;
this.Scr_y = arg3;
this.Scr_width = arg4;
this.Scr_height = arg5;
this.Scr_buttonheight = arg6;
this.Scr_thumbheight = arg7;
this.Scr_step = arg8;
this.Scr_size = arg9;
this.Scr_position = arg10;
this.ChangeFunc = arg11;
this.Scrolling = false;
this.ScrollPressed = false;
var loc1:*;
(loc1 = xatlib.AddBackground(this, (this.Scr_x - 1), this.Scr_y, this.Scr_width + 1, this.Scr_height, true)).alpha = 0.4;
this.mcScrollUp = new xBut(this, this.Scr_x, this.Scr_y, this.Scr_width, this.Scr_buttonheight, "", this.onScrollUp, 0, 6);
this.mcScrollUp.gfx = new library("sc_up");
this.mcScrollUp.gfx.x = int((this.Scr_width - 6) / 2);
this.mcScrollUp.gfx.y = int((this.Scr_buttonheight - 3) / 2);
this.mcScrollUp.addChild(this.mcScrollUp.gfx);
this.mcScrollDown = new xBut(this, this.Scr_x, this.Scr_y + this.Scr_height - this.Scr_buttonheight, this.Scr_width, this.Scr_buttonheight, "", this.onScrollDown, 0, 6);
this.mcScrollDown.gfx = new library("sc_dn");
this.mcScrollDown.gfx.x = int((this.Scr_width - 6) / 2);
this.mcScrollDown.gfx.y = int((this.Scr_buttonheight - 3) / 2);
this.mcScrollDown.addChild(this.mcScrollDown.gfx);
this.mcThumb = new xBut(this, this.Scr_x, this.Scr_y + this.Scr_height - this.Scr_buttonheight - this.Scr_thumbheight, this.Scr_width, this.Scr_thumbheight, "", null, xBut.b_NoPress, 6);
this.mcThumb.gfx = new library("sc_dr");
this.mcThumb.buttonMode = true;
this.mcThumb.gfx.x = int((this.Scr_width - 6) / 2);
this.mcThumb.gfx.y = int((this.Scr_thumbheight - 7) / 2);
this.mcThumb.addChild(this.mcThumb.gfx);
this.mcThumb.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.onThumb);
this.mcThumb.addEventListener(flash.events.MouseEvent.MOUSE_UP, this.onThumbRelease);
this.Update();
this.RefreshColor();
return;
}
function onScrollUp(arg1:*):*
{
this.ScrollPressed = true;
this.Scr_position = this.Scr_position - this.Scr_step;
if (this.Scr_position < 0)
{
this.Scr_position = 0;
}
this.ChangeFunc();
this.Update();
return;
}
function onScrollDown(arg1:*):*
{
this.ScrollPressed = true;
this.Scr_position = this.Scr_position + this.Scr_step;
if (this.Scr_position > this.Scr_size)
{
this.Scr_position = this.Scr_size;
}
this.ChangeFunc();
this.Update();
return;
}
public function RefreshColor():*
{
this.mcScrollUp.RefreshColor();
this.mcScrollDown.RefreshColor();
this.mcThumb.RefreshColor();
xatlib.McSetRGB(this.mcScrollUp.gfx.xitem.back, todo.ButColW);
xatlib.McSetRGB(this.mcScrollDown.gfx.xitem.back, todo.ButColW);
return;
}
function onThumb(arg1:flash.events.Event):*
{
this.Scrolling = true;
this.mcThumb.startDrag(false, new flash.geom.Rectangle(this.Scr_x, this.Scr_y + this.Scr_buttonheight, 0, this.Scr_height - this.Scr_thumbheight - this.Scr_buttonheight * 2));
stage.addEventListener(flash.events.MouseEvent.MOUSE_UP, this.onThumbRelease);
stage.addEventListener(flash.events.MouseEvent.MOUSE_MOVE, this.onThumbMouseMove);
return;
}
function onThumbRelease(arg1:flash.events.Event):*
{
this.Scrolling = false;
stage.removeEventListener(flash.events.MouseEvent.MOUSE_UP, this.onThumbRelease);
stage.removeEventListener(flash.events.MouseEvent.MOUSE_MOVE, this.onThumbMouseMove);
this.mcThumb.stopDrag();
return;
}
function onThumbMouseMove(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = this.mcThumb.y - this.Scr_y - this.Scr_buttonheight;
var loc2:*;
loc2 = this.Scr_height - this.Scr_buttonheight - this.Scr_buttonheight - this.Scr_thumbheight;
this.Scr_position = this.Scr_size * loc1 / loc2;
this.ChangeFunc();
return;
}
function set position(arg1:Number):*
{
this.Scr_position = arg1;
this.Update();
return;
}
function set ssize(arg1:Number):*
{
this.Scr_size = arg1;
this.Update();
return;
}
function Update():*
{
if (this.Scr_position < 0)
{
this.Scr_position = 0;
}
this.mcThumb.y = this.Scr_y + this.Scr_buttonheight + (this.Scr_height - this.Scr_buttonheight - this.Scr_buttonheight - this.Scr_thumbheight) * this.Scr_position / this.Scr_size;
return;
}
function Delete():*
{
return;
}
var Scr_x:Number;
var Scr_y:Number;
var Scr_width:Number;
var Scr_height:Number;
var Scr_buttonheight:Number;
var Scr_thumbheight:Number;
var Scr_step:Number;
public var Scr_size:*;
var Scr_position:*;
var scrollbackground:flash.display.MovieClip;
var mcScrollUp:xBut;
var mcScrollDown:xBut;
var mcThumb:xBut;
var ChangeFunc:*;
var Scrolling:*;
var ScrollPressed:*;
}
}
// class xSprite
package
{
import flash.display.*;
public dynamic class xSprite extends flash.display.Sprite
{
public function xSprite()
{
super();
return;
}
}
}
// class xatlib
package
{
import com.adobe.serialization.json.*;
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.net.*;
import flash.system.*;
import flash.text.*;
import flash.utils.*;
import flash.xml.*;
public class xatlib extends Object
{
public function xatlib()
{
super();
return;
}
public static function getURL(arg1:*, arg2:*):*
{
var loc1:*;
loc1 = new flash.net.URLRequest(arg1);
try
{
flash.net.navigateToURL(loc1);
}
catch (e:Error)
{
};
return;
}
public static function XMLOrder(arg1:flash.xml.XMLDocument, arg2:Array):String
{
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc1:*;
loc1 = "<" + arg1.firstChild.nodeName.toString() + " ";
var loc4:*;
loc4 = 0;
var loc5:*;
loc5 = arg2;
for (loc2 in loc5)
{
if (arg1.firstChild.attributes[arg2[loc2]] == undefined)
{
continue;
}
loc3 = arg1.firstChild.attributes[arg2[loc2]].toString();
if (arg2[loc2] != "sn")
{
loc3 = searchreplace("&", "&", loc3);
loc3 = searchreplace("\'", "'", loc3);
loc3 = searchreplace("<", "<", loc3);
loc3 = searchreplace(">", ">", loc3);
}
loc3 = searchreplace("\"", """, loc3);
loc1 = loc1 + arg2[loc2] + "=\"" + loc3 + "\" ";
}
loc1 = loc1 + "/>";
return loc1;
}
public static function GeneralMessage(arg1:String="", arg2:String="", arg3:*=1):*
{
var loc1:*;
loc1 = undefined;
if (main.box_layer.GeneralMessageH)
{
main.box_layer.GeneralMessageH.Delete();
}
main.box_layer.GeneralMessageH = undefined;
if (!(arg1.length == 0) || !(arg2.length == 0))
{
loc1 = undefined;
main.box_layer.GeneralMessageH = new xDialog(main.box_layer, loc1, loc1, loc1, loc1, arg1, arg2, arg3);
}
return;
}
public static function UnfairPopup(arg1:*, arg2:*):*
{
UnfairPopupClose();
var loc12:*;
main.box_layer.mcPopup = loc12 = new xDialog(main.box_layer, int(20 * todo.StageWidth / 640), int((140 - 14) * todo.StageHeight / 480), int(600 * todo.StageWidth / 640), int((192 + 32 + 24 + 14) * todo.StageHeight / 480), arg1, arg2, 0, UnfairPopupClose);
var loc1:*;
loc1 = loc12;
var loc2:*;
loc2 = loc1.DiaBack.width;
var loc3:*;
loc3 = loc1.DiaBack.height;
var loc4:*;
loc4 = loc1.DiaBack.x;
var loc5:*;
loc5 = loc1.DiaBack.y;
var loc6:*;
loc6 = xatlib.NY(32);
var loc7:*;
loc7 = loc5 + loc3 - loc6 - 22;
var loc8:*;
loc8 = loc2 / 3 - 16;
var loc9:*;
loc9 = new xBut(loc1, loc4 + 8, loc7, loc8, loc6, xconst.ST(101), xatlib.mccopyurl_onRelease2);
var loc10:*;
loc10 = new xBut(loc1, loc4 + loc2 / 2 - loc2 / 6 + 8, loc7, loc8, loc6, xconst.ST(102), UnfairPopupClose);
var loc11:*;
loc11 = new xBut(loc1, loc4 + loc2 - loc2 / 3 + 8, loc7, loc8, loc6, xconst.ST(103), UnfairFindAnotherGroup);
return;
}
public static function UnfairFindAnotherGroup(arg1:flash.events.MouseEvent):*
{
UnfairPopupClose();
var loc1:*;
loc1 = xconst.usedomain + "/groups";
xatlib.UrlPopup(xconst.ST(8), loc1);
return;
}
public static function UnfairPopupClose(arg1:flash.events.MouseEvent):*
{
if (!main.box_layer.mcPopup || !main.box_layer.mcPopup.sParent)
{
return;
}
main.box_layer.mcPopup.Delete();
delete main.box_layer.mcPopup;
main.box_layer.mcPopup = null;
return;
}
public static function mccopyurl_onRelease2(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = new flash.net.URLVariables();
loc1.d = network.UnfairMessage;
loc1.i = network.UnfairFile;
xatlib.LoadVariables("http://web.xat.com/report/data.php", undefined, loc1, 1);
UnfairPopupClose();
var loc2:*;
loc2 = "http://web.xat.com/report/report.php?i=" + network.UnfairFile + "&g=" + network.UnfairGroupName;
getURL(loc2, "_blank");
UrlPopup(xconst.ST(8), loc2);
return;
}
public static function UrlPopup(arg1:String, arg2:String, arg3:String):*
{
var loc13:*;
loc13 = undefined;
if (!todo.config["useconfirmweblink"])
{
xatlib.getURL(arg2, "_blank");
}
UnfairPopupClose();
var loc1:*;
loc1 = undefined;
if (arg3)
{
arg3 = arg3 + "\n";
}
else
{
arg3 = "";
}
var loc14:*;
main.box_layer.mcPopup = loc14 = new xDialog(main.box_layer, loc1, loc1, loc1, loc1, arg1, arg3 + arg2, 0, UnfairPopupClose);
var loc2:*;
var loc3:*;
loc3 = (loc2 = loc14).DiaBack.width;
var loc4:*;
loc4 = loc2.DiaBack.height;
var loc5:*;
loc5 = loc2.DiaBack.x;
var loc6:*;
loc6 = loc2.DiaBack.y;
var loc7:*;
loc7 = 8;
var loc8:*;
loc8 = int(loc3 / (loc7 * 2 + 3));
var loc9:*;
var loc10:*;
loc10 = loc9 = int(loc3 * loc7 / (loc7 * 2 + 3));
var loc11:*;
loc11 = 22;
var loc12:*;
loc12 = new xBut(loc2, loc5 + loc3 - loc8 - loc9, loc6 + loc4 - loc11 - 20, loc9, loc11, xconst.ST(102), UnfairPopupClose);
if (arg2.length > 0)
{
(loc13 = new xBut(loc2, loc5 + loc8, loc6 + loc4 - loc11 - 20, loc10, loc11, todo.config["useconfirmweblink"] ? "Goto Link" : xconst.ST(104), mccopyurl_onRelease3)).HomePage = arg2;
}
return;
}
public static function mccopyurl_onRelease3(arg1:flash.events.MouseEvent):*
{
UnfairPopupClose();
if (todo.config["useconfirmweblink"])
{
xatlib.getURL(arg1.currentTarget.HomePage, "_blank");
}
else
{
flash.system.System.setClipboard(arg1.currentTarget.HomePage);
GeneralMessage(xconst.ST(105), xconst.ST(106));
}
return;
}
public static function ButtonCurve2(arg1:Number, arg2:Number, arg3:Number, arg4:Number=0, arg5:Number=1, arg6:Number=16777215, arg7:Number=1, arg8:Number=16777215, arg9:Number=1):xSprite
{
var loc1:*;
loc1 = new xSprite();
var loc2:*;
loc2 = arg1;
if (arg2 < loc2 * 2)
{
loc2 = int(arg2 / 2);
}
if (arg3 < loc2 * 2)
{
loc2 = int(arg3 / 2);
}
var loc3:*;
loc3 = loc2;
var loc4:*;
loc4 = loc2;
var loc5:*;
loc5 = loc2;
var loc6:*;
loc6 = loc2;
if (arg4 & c_tl)
{
loc6 = 0;
}
if (arg4 & c_tr)
{
loc3 = 0;
}
if (arg4 & c_bl)
{
loc5 = 0;
}
if (arg4 & c_br)
{
loc4 = 0;
}
var loc7:*;
loc7 = 100;
loc1.graphics.beginFill(arg8, arg9);
loc1.graphics.lineStyle(arg5, arg6, arg7, true, "none", "none", "round", 1);
if (arg4 & c_inv)
{
loc1.graphics.moveTo(todo.tpw, 0);
}
else
{
loc1.graphics.moveTo(loc6 + 0, 0);
}
if (arg4 & c_nolt)
{
loc1.graphics.lineStyle(0, 0, 0);
}
else
{
loc1.graphics.lineStyle(arg5, arg6, arg7, true, "none", "none", "round", 1);
}
loc1.graphics.lineTo(arg2 - loc3, 0);
if (loc3 > 0)
{
loc1.graphics.curveTo(arg2, 0, arg2, loc3);
}
loc1.graphics.lineStyle(arg5, arg6, arg7, true, "none", "none", "round", 1);
loc1.graphics.lineTo(arg2, arg3 - loc4 - 2);
if (arg4 & c_nolb)
{
loc1.graphics.lineStyle(0, 0, 0);
}
else
{
loc1.graphics.lineStyle(arg5, arg6, arg7, true, "none", "none", "round", 1);
}
if (loc4 > 0)
{
loc1.graphics.curveTo(arg2, arg3, arg2 - loc4 - 2, arg3);
}
loc1.graphics.lineTo(loc5, arg3);
loc1.graphics.lineStyle(arg5, arg6, arg7, true, "none", "none", "round", 1);
loc1.graphics.curveTo(0, arg3, 0, arg3 - loc5);
loc1.graphics.lineStyle(arg5, arg6, arg7, true, "none", "none", "round", 1);
loc1.graphics.lineTo(0, loc6);
loc1.graphics.curveTo(0, 0, loc6, 0);
if (arg4 & c_inv)
{
loc1.graphics.lineTo(-todo.tpw, 0);
loc1.graphics.lineTo(-todo.tpw, 50);
loc1.graphics.lineTo(todo.tpw, 50);
loc1.graphics.lineTo(todo.tpw, 0);
}
loc1.graphics.endFill();
return loc1;
}
public static function Blend(arg1:*, arg2:*, arg3:*, arg4:*, arg5:*):*
{
if (arg1 <= arg2)
{
return arg4;
}
if (arg1 >= arg3)
{
return arg5;
}
var loc1:*;
return loc1 = int((arg1 - arg2) / (arg3 - arg2) * (arg5 - arg4) + arg4);
}
public static function AddBackground(arg1:*, arg2:Number, arg3:Number, arg4:Number, arg5:Number, arg6:*=0):xSprite
{
var loc1:*;
loc1 = todo.ButCol;
var loc2:*;
loc2 = 0.4;
if (arg6 & c_NoCol)
{
loc1 = 16777215;
}
if (arg6 & c_solid)
{
loc1 = 13421772;
loc2 = 1;
}
var loc3:*;
loc3 = 16777215;
var loc4:*;
loc4 = 0.4;
var loc5:*;
loc5 = 1;
if (arg6 & 128 << 10)
{
loc3 = 8421504;
loc4 = 1;
loc5 = undefined;
}
var loc6:*;
(loc6 = ButtonCurve2(8, arg4, arg5, arg6, loc5, loc1, loc2, loc3, loc4)).x = arg2;
loc6.y = arg3;
arg1.addChild(loc6);
return loc6;
}
public static function createTextNoWrap(arg1:*, arg2:Number, arg3:Number, arg4:Number, arg5:Number, arg6:String, arg7:Number, arg8:Number, arg9:Number, arg10:Number, arg11:Number, arg12:String, arg13:Number):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc4:*;
loc4 = NaN;
var loc5:*;
loc5 = NaN;
var loc6:*;
loc6 = undefined;
arg2 = int(arg2);
arg3 = int(arg3);
arg4 = int(arg4);
arg5 = int(arg5);
(loc2 = new flash.text.TextFormat()).align = arg12;
loc2.bold = true;
loc2.color = arg7;
loc2.font = "_sans";
loc2.size = arg11;
var loc3:*;
(loc3 = new flash.text.TextField()).x = arg2 + 1;
loc3.y = 1 + arg3;
loc3.width = arg4 - 1 * 2;
loc3.height = arg5 - 1 * 2;
loc3.autoSize = arg12;
loc3.selectable = true;
loc3.defaultTextFormat = loc2;
loc3.text = arg6;
arg1.addChild(loc3);
if (arg13 & 2)
{
loc3.multiline = true;
loc3.wordWrap = true;
}
if (loc3.width > arg4 - 1 * 2)
{
loc4 = loc2.size * (arg4 - 1 * 2) / loc3.width - 0.5;
loc5 = 4;
if ((loc6 = (loc2.size - loc4) / loc5) < 1)
{
loc6 = 1;
}
while (loc3.width > arg4 - 1 * 2 && loc2.size > 1)
{
loc2.size = loc2.size - loc6;
loc3.defaultTextFormat = loc2;
loc3.text = arg6;
}
}
loc3.y = (arg3 + int((arg5 - loc3.height) / 2) - 1);
return loc3;
}
public static function CleanText(arg1:*, arg2:*):String
{
var loc2:*;
loc2 = NaN;
var loc3:*;
loc3 = NaN;
var loc4:*;
loc4 = null;
arg1 = String(arg1);
var loc1:*;
loc1 = "";
loc2 = 0;
while (loc2 < arg1.length)
{
loc3 = arg1.charCodeAt(loc2);
loc4 = arg1.charAt(loc2);
if (!(loc3 < 32))
{
if (loc4 != "<")
{
if (loc4 != ">")
{
if (loc4 != "\"")
{
if (loc4 != "\'")
{
if (loc4 != ",")
{
if (loc4 != " ")
{
loc1 = loc1 + loc4;
}
else
{
if (arg2 != 1)
{
loc1 = loc1 + "_";
}
}
}
}
}
}
}
}
loc2 = (loc2 + 1);
}
return loc1;
}
public static function GetStatus(arg1:*):*
{
if (!arg1)
{
return undefined;
}
arg1 = arg1.split("##")[1];
if (!arg1)
{
return undefined;
}
if (arg1.substr(0, 1) == " ")
{
return undefined;
}
arg1 = searchreplace("_", " ", arg1);
return arg1;
}
public static function NameNoXat(arg1:*, arg2:*):*
{
var loc2:*;
loc2 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = null;
var loc8:*;
loc8 = null;
var loc9:*;
loc9 = undefined;
var loc10:*;
loc10 = undefined;
var loc11:*;
loc11 = undefined;
var loc12:*;
loc12 = undefined;
if (arg1 == null)
{
return null;
}
arg1 = arg1.split("##")[0];
var loc1:*;
loc1 = arg1.split("");
var loc3:*;
loc3 = loc1.length;
arg1 = "";
loc9 = 0;
while (loc9 < loc3)
{
if ((loc6 = (loc5 = loc1[loc9]).charCodeAt()) >= 28 && loc6 <= 31)
{
loc5 = "_";
}
else
{
if (loc5 != "(")
{
if (loc5 != ")")
{
if (loc6 >= 127 && loc6 <= 159)
{
loc5 = "_";
}
else
{
if (loc5 == " " || !loc2 && loc5 == "#")
{
loc5 = "_";
}
}
}
else
{
loc2 = false;
}
}
else
{
loc2 = true;
}
}
if (loc6 > 255)
{
if (loc5 == "Χ" || loc5 == "Х")
{
loc5 = "X";
}
else
{
if (loc5 == "Α" || loc5 == "А")
{
loc5 = "A";
}
else
{
if (loc5 == "Τ" || loc5 == "Т")
{
loc5 = "T";
}
else
{
if (loc5 != "х")
{
if (loc5 != "а")
{
if (loc5 != "α")
{
if (loc5 == "Μ" || loc5 == "М")
{
loc5 = "M";
}
else
{
if (loc5 != "і")
{
if (loc5 != "Ν")
{
if (loc5 != "ԁ")
{
if (loc5 != "m")
{
if (loc5 != "і")
{
if (loc5 == "Η" || loc5 == "Н")
{
loc5 = "H";
}
else
{
if (loc5 == "Ε" || loc5 == "Е")
{
loc5 == "E";
}
else
{
if (loc5 != "һ")
{
if (loc5 != "е")
{
if (loc5 == "Ɩ" || loc5 == "Ι" || loc5 == "І" || loc5 == "Ӏ" || loc5 == "ӏ" || loc5 == "l")
{
loc5 = "I";
}
else
{
if (loc5 != "р")
{
if (loc5 == " " || loc5 == "卐")
{
loc5 = "_";
}
}
else
{
loc5 = "p";
}
}
}
else
{
loc5 = "e";
}
}
else
{
loc5 = "h";
}
}
}
}
else
{
loc5 = "i";
}
}
else
{
loc5 = "m";
}
}
else
{
loc5 = "d";
}
}
else
{
loc5 = "N";
}
}
else
{
loc5 = "i";
}
}
}
else
{
loc5 = "a";
}
}
else
{
loc5 = "a";
}
}
else
{
loc5 = "x";
}
}
}
}
}
loc1[loc9] = loc5;
if ((loc5 = loc5.toLowerCase()) == "a" || loc5 == "h")
{
loc4 = true;
}
loc9 = (loc9 + 1);
}
if (loc4)
{
loc7 = new Array();
loc8 = "";
loc9 = 0;
while (loc9 < loc3)
{
loc8 = loc8 + loc1[loc9];
if (loc1[loc9].charCodeAt() < 256)
{
loc7.push(loc8);
loc8 = "";
}
loc9 = (loc9 + 1);
}
loc7.push(loc8);
loc9 = 0;
while (loc9 < loc7.length)
{
loc10 = new Array(5);
loc11 = 0;
while (loc11 < 5)
{
if (loc9 + loc11 < loc7.length)
{
loc10[loc11] = loc7[(loc9 + loc11)].charAt((loc7[(loc9 + loc11)].length - 1));
}
loc11 = (loc11 + 1);
}
if (loc9 < loc7.length - 2)
{
if ((loc10[0] == "x" || loc10[0] == "X") && (loc10[1] == "a" || loc10[1] == "A") && (loc10[2] == "t" || loc10[2] == "T"))
{
loc12 = 0;
while (loc12 < 3)
{
arg1 = arg1 + loc7[(loc9 + loc12)].substr(0, (loc7[(loc9 + loc12)].length - 1)) + "Q";
loc12 = (loc12 + 1);
}
loc9 = loc9 + 2;
}
else
{
if (loc9 < loc7.length - 3)
{
if ((loc10[0] == "h" || loc10[0] == "H") && (loc10[1] == "e" || loc10[1] == "E") && (loc10[2] == "l" || loc10[2] == "L" || loc10[2] == "I") && (loc10[3] == "p" || loc10[3] == "P"))
{
loc12 = 0;
while (loc12 < 4)
{
arg1 = arg1 + loc7[(loc9 + loc12)].substr(0, (loc7[(loc9 + loc12)].length - 1)) + "Q";
loc12 = (loc12 + 1);
}
loc9 = loc9 + 3;
}
else
{
if (loc9 < loc7.length - 4)
{
if ((loc10[0] == "a" || loc10[0] == "A") && (loc10[1] == "d" || loc10[1] == "D") && (loc10[2] == "m" || loc10[2] == "M") && (loc10[3] == "i" || loc10[3] == "I" || loc10[3] == "l") && (loc10[4] == "n" || loc10[4] == "N"))
{
loc12 = 0;
while (loc12 < 5)
{
arg1 = arg1 + loc7[(loc9 + loc12)].substr(0, (loc7[(loc9 + loc12)].length - 1)) + "Q";
loc12 = (loc12 + 1);
}
loc9 = loc9 + 4;
}
else
{
arg1 = arg1 + loc7[loc9];
}
}
else
{
arg1 = arg1 + loc7[loc9];
}
}
}
else
{
if (loc9 < loc7.length - 4)
{
if ((loc10[0] == "a" || loc10[0] == "A") && (loc10[1] == "d" || loc10[1] == "D") && (loc10[2] == "m" || loc10[2] == "M") && (loc10[3] == "i" || loc10[3] == "I" || loc10[3] == "l") && (loc10[4] == "n" || loc10[4] == "N"))
{
loc12 = 0;
while (loc12 < 5)
{
arg1 = arg1 + loc7[(loc9 + loc12)].substr(0, (loc7[(loc9 + loc12)].length - 1)) + "Q";
loc12 = (loc12 + 1);
}
loc9 = loc9 + 4;
}
else
{
arg1 = arg1 + loc7[loc9];
}
}
else
{
arg1 = arg1 + loc7[loc9];
}
}
}
}
else
{
if (loc9 < loc7.length - 3)
{
if ((loc10[0] == "h" || loc10[0] == "H") && (loc10[1] == "e" || loc10[1] == "E") && (loc10[2] == "l" || loc10[2] == "L" || loc10[2] == "I") && (loc10[3] == "p" || loc10[3] == "P"))
{
loc12 = 0;
while (loc12 < 4)
{
arg1 = arg1 + loc7[(loc9 + loc12)].substr(0, (loc7[(loc9 + loc12)].length - 1)) + "Q";
loc12 = (loc12 + 1);
}
loc9 = loc9 + 3;
}
else
{
if (loc9 < loc7.length - 4)
{
if ((loc10[0] == "a" || loc10[0] == "A") && (loc10[1] == "d" || loc10[1] == "D") && (loc10[2] == "m" || loc10[2] == "M") && (loc10[3] == "i" || loc10[3] == "I" || loc10[3] == "l") && (loc10[4] == "n" || loc10[4] == "N"))
{
loc12 = 0;
while (loc12 < 5)
{
arg1 = arg1 + loc7[(loc9 + loc12)].substr(0, (loc7[(loc9 + loc12)].length - 1)) + "Q";
loc12 = (loc12 + 1);
}
loc9 = loc9 + 4;
}
else
{
arg1 = arg1 + loc7[loc9];
}
}
else
{
arg1 = arg1 + loc7[loc9];
}
}
}
else
{
if (loc9 < loc7.length - 4)
{
if ((loc10[0] == "a" || loc10[0] == "A") && (loc10[1] == "d" || loc10[1] == "D") && (loc10[2] == "m" || loc10[2] == "M") && (loc10[3] == "i" || loc10[3] == "I" || loc10[3] == "l") && (loc10[4] == "n" || loc10[4] == "N"))
{
loc12 = 0;
while (loc12 < 5)
{
arg1 = arg1 + loc7[(loc9 + loc12)].substr(0, (loc7[(loc9 + loc12)].length - 1)) + "Q";
loc12 = (loc12 + 1);
}
loc9 = loc9 + 4;
}
else
{
arg1 = arg1 + loc7[loc9];
}
}
else
{
arg1 = arg1 + loc7[loc9];
}
}
}
loc9 = (loc9 + 1);
}
}
else
{
arg1 = loc1.join("");
}
while (arg1.substr(0, 1) == "_")
{
arg1 = arg1.substr(1);
}
if (arg2 == undefined)
{
if (arg1.charAt(0) == "(")
{
arg1 = " " + arg1;
}
arg1 = PreProcSmilie(arg1);
}
return arg1;
}
public static function CleanTextNoXat(arg1:*):String
{
return CleanText(NameNoXat(arg1, 1));
}
public static function CleanMessage(arg1:String):String
{
var loc2:*;
loc2 = NaN;
var loc3:*;
loc3 = NaN;
var loc4:*;
loc4 = null;
var loc1:*;
loc1 = "";
loc2 = 0;
while (loc2 < arg1.length)
{
loc3 = arg1.charCodeAt(loc2);
if ((loc4 = arg1.charAt(loc2)) != "\t")
{
if (!(loc3 < 32))
{
loc1 = loc1 + loc4;
}
}
else
{
loc1 = loc1 + " ";
}
loc2 = (loc2 + 1);
}
return loc1;
}
public static function CleanCommas(arg1:String):String
{
var loc2:*;
loc2 = NaN;
var loc3:*;
loc3 = NaN;
var loc4:*;
loc4 = null;
var loc1:*;
loc1 = "";
loc2 = 0;
while (loc2 < arg1.length)
{
loc3 = arg1.charCodeAt(loc2);
if ((loc4 = arg1.charAt(loc2)) != ",")
{
if (!(loc3 < 32))
{
loc1 = loc1 + loc4;
}
}
else
{
loc1 = loc1 + " ";
}
loc2 = (loc2 + 1);
}
return loc1;
}
public static function TimeStamp():String
{
var loc1:*;
loc1 = new Date();
var loc2:*;
loc2 = Number(loc1.getTime());
return "&t=" + loc2;
}
public static function NX(arg1:Number):Number
{
return int(arg1 * todo.StageWidth / 640);
}
public static function NY(arg1:Number):Number
{
return int(arg1 * todo.StageHeight / 480);
}
public static function SX(arg1:*=1):Number
{
var loc1:*;
loc1 = todo.StageWidth / 640;
if (arg1)
{
loc1 = loc1 * arg1;
}
return loc1;
}
public static function SY(arg1:*=1):Number
{
var loc1:*;
loc1 = todo.StageHeight / 480;
if (arg1)
{
loc1 = loc1 * arg1;
}
return loc1;
}
public static function UrlAv(arg1:*):String
{
var loc1:*;
loc1 = xInt(arg1);
if (loc1 > 0 && loc1 <= 1758)
{
return "http://www.xatech.com/web_gear/chat/av/" + arg1 + ".png";
}
return String(arg1);
}
public static function RandAv(arg1:*):*
{
var loc1:*;
loc1 = 1 + Math.floor(Math.random() * 1758);
if (arg1 == undefined)
{
return loc1;
}
return UrlAv(loc1);
}
public static function ParseAv(arg1:*):String
{
if (arg1.substr(0, 7) == "http://")
{
return arg1;
}
var loc1:*;
loc1 = xInt(arg1);
if (loc1 > 0 && loc1 <= 1758)
{
return UrlAv(loc1);
}
return "_";
}
public static function CleanAv(arg1:*):*
{
var loc5:*;
loc5 = NaN;
if (arg1 == undefined)
{
return;
}
var loc1:*;
loc1 = xInt(arg1);
if (loc1 > 0 && loc1 <= 1758)
{
return loc1;
}
if (loc1 < 0)
{
return "";
}
var loc2:*;
loc2 = arg1.toLowerCase();
var loc3:*;
loc3 = "/web_gear/chat/av/";
if (loc2.indexOf(".swf") != -1)
{
return "";
}
var loc4:*;
if ((loc4 = loc2.indexOf(loc3)) >= 0)
{
if ((loc5 = parseInt(loc2.substr(loc4 + loc3.length))) > 0)
{
return loc5;
}
}
return arg1;
}
public static function IsDefaultAvatar(arg1:*):*
{
return CleanAv(arg1) > 0;
}
public static function xInt(arg1:*):Number
{
var loc1:*;
loc1 = parseInt(String(arg1));
if (isNaN(loc1))
{
return 0;
}
return loc1;
}
public static function FindUser(arg1:Number):Number
{
var loc1:*;
loc1 = FastFind1[arg1];
if (!(loc1 == undefined) && !(todo.Users[loc1] == undefined) && todo.Users[loc1].u == arg1)
{
return loc1;
}
var loc2:*;
loc2 = todo.Users.length;
loc1 = 0;
while (loc1 < loc2)
{
if (todo.Users[loc1].u == arg1)
{
FastFind1[arg1] = loc1;
return loc1;
}
loc1 = (loc1 + 1);
}
return -1;
}
public static function GetUserStatus(arg1:Number):String
{
var loc2:*;
loc2 = undefined;
if (arg1 == -1)
{
return "";
}
var loc1:*;
loc1 = "";
var loc3:*;
loc2 = (loc3 = todo.Users[arg1]).online == true;
if (!loc2 && (!(main.utabsmc.tabs[0].Main == true) || main.ctabsmc.TabIsPrivate()))
{
loc2 = loc3.onsuper == true;
}
if (loc3.u == todo.w_userno)
{
loc1 = xconst.ST(107) + " ";
}
if (loc2)
{
if (loc3.Location != 128)
{
if (loc3.Location != 129)
{
if (loc3.OnXat)
{
loc1 = loc1 + xconst.ST(108);
}
else
{
loc1 = loc1 + xconst.ST(109);
}
}
else
{
loc1 = loc1 + xconst.ST(157);
}
}
else
{
loc1 = loc1 + xconst.ST(156);
}
}
else
{
loc1 = loc1 + xconst.ST(110);
}
if (main.utabsmc.tabs[0].Main == true)
{
if (!loc3.Stealth)
{
if (loc3.mainowner != true)
{
if (loc3.owner != true)
{
if (loc3.moderator != true)
{
if (loc3.member == true)
{
loc1 = loc1 + " " + xconst.ST(22);
}
}
else
{
loc1 = loc1 + " " + xconst.ST(23);
}
}
else
{
loc1 = loc1 + " " + xconst.ST(24);
}
}
else
{
loc1 = loc1 + " " + xconst.ST(134);
}
}
}
if (loc3.aFlags & 1 << 21)
{
loc1 = loc1 + " celebrity";
}
if (loc3.flag0 & 512)
{
loc1 = loc1 + " " + xconst.ST(195);
}
if (loc3.friend)
{
loc1 = loc1 + " " + xconst.ST(111);
}
if (loc3.banned == true && main.utabsmc.tabs[0].Main == true)
{
if (loc3.w)
{
loc1 = loc1 + " " + xconst.Puzzle[loc3.w];
}
if (loc3.flag0 & 4096)
{
loc1 = loc1 + " " + xconst.ST(236);
}
else
{
loc1 = loc1 + " " + xconst.ST(25);
}
}
else
{
if (loc3.ignored != true)
{
if (loc3.gagged == true)
{
loc1 = loc1 + " " + xconst.ST(188);
}
}
else
{
loc1 = loc1 + " " + xconst.ST(112);
}
}
if (loc3.VIP && !todo.HasPower(arg1, 2))
{
loc1 = loc1 + " " + xconst.ST(158);
}
else
{
if (loc3.registered && !todo.HasPower(arg1, 9))
{
loc1 = loc1 + " " + xconst.ST(159);
}
}
if (loc3.Bride)
{
if (loc3.aFlags & 1)
{
loc1 = loc1 + " " + xconst.ST(160);
}
else
{
loc1 = loc1 + " " + xconst.ST(161);
}
}
return loc1;
}
public static function GetNameNumber(arg1:Number):*
{
var loc1:*;
loc1 = arg1.toString();
var loc2:*;
loc2 = FindUser(arg1);
if (loc2 < 0)
{
return "NotFound";
}
if (loc1.substr(-6, 6) == "000000")
{
loc1 = loc1.substr(0, loc1.length - 6) + "M";
}
loc1 = todo.Users[loc2].registered == undefined ? arg1.toString() : todo.Users[loc2].registered + " (" + loc1 + ")";
if (arg1 >= 2000000000 - 100000 * 2)
{
loc1 = todo.Users[loc2].registered;
}
if (arg1 >= 2000000000 - 100000)
{
loc1 = " ";
}
return FixLI(loc1);
}
public static function GetUsername(arg1:Number, arg2:*, arg3:*, arg4:*):String
{
var loc1:*;
loc1 = "";
var loc2:*;
if ((loc2 = FindUser(arg1)) != -1)
{
if (arg2)
{
if (todo.Users[loc2].registered)
{
loc1 = todo.Users[loc2].registered;
}
}
else
{
loc1 = todo.Users[loc2].n;
}
}
if (arg3)
{
if (!(loc2 == -1) && !(todo.Users[loc2].s == undefined))
{
loc1 = loc1 + "\n" + todo.Users[loc2].s;
}
if (arg1 > 101)
{
loc1 = loc1 + "\n(NOT xat staff!)";
}
else
{
loc1 = loc1 + "\n(xat staff)";
}
if (arg4 != undefined)
{
loc1 = loc1 + " [";
loc2 = FindUser(arg4);
if (todo.Users[loc2].registered)
{
loc1 = loc1 + todo.Users[loc2].registered;
}
else
{
loc1 = loc1 + arg4;
}
loc1 = loc1 + "]";
}
}
return loc1;
}
public static function StripSmilies(arg1:*):*
{
var loc2:*;
loc2 = undefined;
var loc4:*;
loc4 = undefined;
if (arg1 == null)
{
return;
}
var loc1:*;
loc1 = "";
var loc3:*;
loc3 = false;
loc2 = 0;
while (loc2 < arg1.length)
{
loc4 = arg1.charAt(loc2);
if (!loc3 && !(loc4 == "("))
{
loc1 = loc1 + loc4;
}
else
{
if (loc4 != "(")
{
if (loc4 == ")")
{
loc3 = false;
}
}
else
{
loc3 = true;
}
}
loc2 = (loc2 + 1);
}
if (loc1.length == 0)
{
return arg1;
}
return loc1;
}
public static function IsDefaultName(arg1:String):*
{
var loc4:*;
loc4 = undefined;
var loc1:*;
loc1 = false;
var loc2:*;
loc2 = false;
var loc3:*;
loc3 = 0;
while (loc3 < xconst.name1.length)
{
if (arg1.indexOf(xconst.name1[loc3]) != -1)
{
loc1 = true;
break;
}
loc3 = (loc3 + 1);
}
if (loc1)
{
loc4 = 0;
while (loc4 < xconst.name2.length)
{
if (arg1.indexOf(xconst.name2[loc4]) != -1)
{
loc2 = true;
}
loc4 = (loc4 + 1);
}
}
if (loc1 && loc2)
{
return true;
}
return false;
}
public static function GetDefaultName(arg1:Number):*
{
var loc1:*;
loc1 = (arg1 ^ 21845) % (42 * 24);
var loc2:*;
loc2 = loc1 % 42;
loc1 = int(loc1 / 42);
return xconst.name1[loc2] + xconst.name2[loc1];
}
public static function GetDefaultAvatar(arg1:Number):*
{
return (arg1 ^ 21845) % 1758 + 1;
}
public static function PurgeMessageFromUser(arg1:Number):*
{
var loc1:*;
loc1 = todo.Message.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (todo.Message[loc2].u == arg1)
{
xmessage.DeleteOneMessageMc(loc2);
}
loc2 = (loc2 + 1);
}
return;
}
public static function CountLinks(arg1:String, arg2:Number=0):*
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
if (arg1 == null)
{
return null;
}
var loc1:*;
loc1 = new Array();
var loc2:*;
loc2 = 0;
loc1 = arg1.split(" ");
loc3 = 0;
while (loc3 < loc1.length)
{
if (loc4 = WordIsLink(loc1[loc3]))
{
loc2 = (loc2 + 1);
if (arg2)
{
return loc4;
}
}
loc3 = (loc3 + 1);
}
return loc2;
}
public static function WordIsLink(arg1:String):String
{
var loc5:*;
loc5 = 0;
if (arg1.indexOf(".") < 0)
{
return undefined;
}
var loc1:*;
loc1 = arg1.toLowerCase();
if (loc1.indexOf("http://") >= 0)
{
return arg1;
}
var loc2:*;
loc2 = false;
var loc3:*;
loc3 = 2;
if (loc1.indexOf("www.") >= 0)
{
loc2 = true;
}
var loc4:*;
if ((loc4 = loc1.indexOf("/")) == -1)
{
loc4 = loc1.length;
}
var loc6:*;
loc6 = 0;
while (loc6 < loc4)
{
if (((loc5 = loc1.charCodeAt(loc6)) < 48 || loc5 > 57) && !(loc5 == 46))
{
loc3 = 0;
break;
}
loc6 = (loc6 + 1);
}
if (loc1.charAt((loc4 - 1)) == ".")
{
loc3 = 2;
}
if (loc1.charAt(loc4 - 2) == ".")
{
loc3 = 2;
}
if (loc1.charAt(loc4 - 3) == ".")
{
loc3 = (loc3 + 1);
}
if (loc1.charAt(loc4 - 4) == ".")
{
loc3 = (loc3 + 1);
}
if (loc1.charAt(loc4 - 5) == ".")
{
loc3 = (loc3 + 1);
}
if (loc3 == 1)
{
loc2 = true;
}
if (loc2)
{
return "http://" + CleanText(arg1);
}
return undefined;
}
public static function StripSpace_(arg1:*):*
{
arg1 = searchreplace(" ", "", arg1);
arg1 = searchreplace("_", "", arg1);
return arg1;
}
public static function searchreplace(arg1:*, arg2:*, arg3:*, arg4:*):*
{
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc1:*;
loc1 = 0;
while (loc1 < arg3.length)
{
loc2 = arg3;
if (arg4 != 1)
{
loc2 = arg3.toLowerCase();
}
if ((loc3 = loc2.indexOf(arg1, loc1)) == -1)
{
break;
}
loc4 = arg3.substr(0, loc3);
loc5 = arg3.substr(loc3 + arg1.length, arg3.length);
arg3 = loc4 + arg2 + loc5;
loc1 = loc4.length + arg2.length;
}
return arg3;
}
public static function Replace(arg1:*, arg2:*, arg3:*):*
{
var loc1:*;
return (loc1 = arg1.split(arg2)).join(arg3);
}
public static function urlencode(arg1:*):*
{
arg1 = searchreplace(" ", "%20", arg1);
return searchreplace("?", "%3F", arg1);
}
public static function GotoXat(arg1:*):*
{
var loc1:*;
loc1 = xconst.usedomain + "/chat/room/" + todo.w_useroom + "/?p=0&ss=" + arg1;
getURL(loc1, "_blank");
UrlPopup(xconst.ST(8), loc1);
return;
}
public static function UpdateDJ(arg1:*):*
{
var loc3:*;
loc3 = undefined;
arg1 = xInt(arg1);
var loc1:*;
loc1 = todo.Users.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
loc3 = undefined;
if (arg1 == xInt(todo.Users[loc2].u))
{
loc3 = true;
}
if (loc3 && !todo.Users[loc2].DJ || !loc3 && todo.Users[loc2].DJ)
{
todo.Users[loc2].DJ = loc3;
xmessage.DeleteOneUserMc(loc2);
}
loc2 = (loc2 + 1);
}
return;
}
public static function SmilieUrl(arg1:*, arg2:*, arg3:*=false):*
{
var loc1:*;
if ((loc1 = xInt(arg1)) >= 20000)
{
arg1 = loc1 & !1;
}
else
{
if (loc1 >= 10000)
{
arg1 = loc1;
}
else
{
if (arg2 != "ks")
{
arg1 = arg1.toLowerCase();
}
}
}
return "http://www.xatech.com/images/" + arg2 + "/" + arg1 + ".swf?v=" + global.sv;
}
public static function IdToRegName(arg1:*):*
{
var loc2:*;
loc2 = undefined;
var loc1:*;
loc1 = FindUser(arg1);
if (loc1 >= 0)
{
loc2 = todo.Users[loc1].registered;
}
if (loc2 != undefined)
{
return loc2 + " (" + arg1 + ") ";
}
return arg1 + " ";
}
public static function FixLI(arg1:*):*
{
arg1 = searchreplace("I", "i", arg1, 1);
arg1 = searchreplace("l", "L", arg1, 1);
return arg1;
}
public static function GroupUrl():*
{
var loc1:*;
loc1 = xconst.usedomain + "/";
if (todo.w_useroom == todo.w_room && !(global.gn == null))
{
loc1 = loc1 + global.gn;
}
else
{
if (!(todo.w_useroom == todo.w_room) && !(todo.BackVars[1] == undefined))
{
loc1 = loc1 + todo.BackVars[1];
}
else
{
loc1 = loc1 + "chat/room/" + todo.w_useroom + "/";
}
}
return loc1;
}
public static function PageUrl(arg1:*):*
{
return GroupUrl() + "?p=0&ss=" + arg1;
}
public static function McSetRGB(arg1:*, arg2:*):*
{
if (!arg1)
{
return;
}
var loc1:*;
loc1 = arg1.transform.colorTransform;
loc1.color = arg2;
arg1.transform.colorTransform = loc1;
return;
}
public static function getLocal(arg1:String, arg2:String=null, arg3:Boolean=false):*
{
var loc1:*;
(loc1 = flash.net.SharedObject.getLocal(arg1, arg2, arg3)).objectEncoding = flash.net.ObjectEncoding.AMF0;
return loc1;
}
public static function MainSolWrite(arg1:*, arg2:*, arg3:*):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
if (arg1 == "w_friendlist")
{
(loc1 = xatlib.getLocal("chat", "/")).objectEncoding = flash.net.ObjectEncoding.AMF0;
if (loc1 != null)
{
delete loc1.data.w_friendlist;
loc1.data.w_friendlist = new Array();
loc2 = todo.w_friendlist.length;
loc3 = 0;
while (loc3 < loc2)
{
loc1.data.w_friendlist[loc3] = todo.w_friendlist[loc3];
if (loc3 % 128 == 0)
{
loc4 = loc1.flush();
}
loc3 = (loc3 + 1);
}
loc4 = loc1.flush();
loc1.flush();
return 1;
}
return 0;
}
(loc1 = xatlib.getLocal("chat", "/")).objectEncoding = flash.net.ObjectEncoding.AMF0;
if (loc1 != null)
{
loc1.data[arg1] = arg2;
if (arg3 == undefined)
{
loc1.flush();
}
return 1;
}
return 0;
}
public static function GotoWeb(arg1:*):*
{
try
{
flash.net.navigateToURL(arg1, "_blank");
}
catch (e:Error)
{
};
UrlPopup(xconst.ST(8), arg1);
return;
}
public static function xatlinks(arg1:*):String
{
var loc1:*;
loc1 = new Array(64);
var loc2:*;
loc2 = 0;
while (loc2 < 26)
{
loc1[loc2] = String.fromCharCode(loc2 + 65);
loc2 = (loc2 + 1);
}
loc2 = 26;
while (loc2 < 52)
{
loc1[loc2] = String.fromCharCode(loc2 + 71);
loc2 = (loc2 + 1);
}
loc2 = 52;
while (loc2 < 62)
{
loc1[loc2] = String.fromCharCode(loc2 - 4);
loc2 = (loc2 + 1);
}
loc1[62] = "+";
loc1[63] = "/";
var loc3:*;
loc3 = new Array();
var loc4:*;
loc4 = new Array();
loc2 = 0;
while (loc2 < arg1.length)
{
loc3[loc2] = arg1.charCodeAt(loc2);
loc2 = (loc2 + 1);
}
loc2 = 0;
while (loc2 < loc3.length)
{
var loc6:*;
loc6 = loc2 % 3;
switch (loc6)
{
case 0:
{
loc4.push(loc1[((loc3[loc2] & 252) >> 2)]);
break;
}
case 1:
{
loc4.push(loc1[((loc3[(loc2 - 1)] & 3) << 4 | (loc3[loc2] & 240) >> 4)]);
break;
}
case 2:
{
loc4.push(loc1[((loc3[(loc2 - 1)] & 15) << 2 | (loc3[loc2] & 192) >> 6)]);
loc4.push(loc1[(loc3[loc2] & 63)]);
break;
}
}
loc2 = (loc2 + 1);
}
if (loc2 % 3 != 1)
{
if (loc2 % 3 == 2)
{
loc4.push(loc1[((loc3[(loc2 - 1)] & 15) << 2)]);
}
}
else
{
loc4.push(loc1[((loc3[(loc2 - 1)] & 3) << 4)]);
}
loc2 = loc4.length;
while (loc2 % 4 != 0)
{
loc4.push("=");
loc2 = (loc2 + 1);
}
var loc5:*;
loc5 = new String("http://linkvalidator.net/warn.php?p=");
loc2 = 0;
while (loc2 < loc4.length)
{
loc5 = loc5 + loc4[loc2];
loc2 = (loc2 + 1);
}
return loc5;
}
public static function SmOk(arg1:*, arg2:*, arg3:Boolean=false):*
{
if (arg1 == undefined)
{
return false;
}
arg1 = arg1.toLowerCase();
if (arg1 == "constructor")
{
return false;
}
if (!xconst.smih[arg1])
{
return false;
}
var loc1:*;
if ((loc1 = xconst.pssh[arg1]) == -2 && arg2 && arg2[0])
{
return true;
}
if (loc1 == -1 && arg2 && arg2[0] & 1)
{
return true;
}
if (loc1 != undefined)
{
return todo.HasPowerA(arg2, loc1);
}
if (!(loc1 = xconst.topsh[arg1]))
{
return true;
}
if (arg3 == false && loc1 < 48)
{
return true;
}
if ((loc1 == 78 || loc1 == 82) && todo.HasPowerA(arg2, loc1))
{
return true;
}
if (loc1 < 70 || loc1 & 1 || loc1 == 90 || loc1 == 92 || loc1 == 96 || loc1 == 98 || loc1 == 102 || loc1 == 108 || loc1 == 116 || xconst.NotGroup[loc1] || loc1 == 134 || loc1 == 136 || loc1 == 148 || loc1 == 156 || loc1 >= 180)
{
return todo.HasPowerA(arg2, loc1);
}
return todo.HasPowerA(todo.w_GroupPowers, loc1);
}
public static function ReversePower(arg1:*):String
{
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc1:*;
loc1 = new Array();
loc1 = arg1.split(" ");
loc1.reverse();
var loc4:*;
loc4 = 0;
var loc5:*;
loc5 = loc1;
for (loc2 in loc5)
{
if (!((loc3 = loc1[loc2]).length > 0 && !(loc3.charAt((loc3.length - 1)) == ">")))
{
continue;
}
if (loc3.length > 2 && loc3.charAt(0) == "(" && loc3.charAt((loc3.length - 1)) == ")" && xconst.smih[loc3.substr(1, loc3.length - 2)])
{
continue;
}
loc1[loc2] = loc3.split("").reverse().join("");
}
arg1 = loc1.join(" ");
return arg1;
}
public static function PreProcSmilie(arg1:String, arg2:*, arg3:*):String
{
var loc3:*;
loc3 = NaN;
var loc4:*;
loc4 = NaN;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = NaN;
var loc7:*;
loc7 = null;
var loc8:*;
loc8 = NaN;
var loc9:*;
loc9 = undefined;
var loc10:*;
loc10 = undefined;
var loc11:*;
loc11 = undefined;
var loc12:*;
loc12 = undefined;
var loc13:*;
loc13 = undefined;
var loc14:*;
loc14 = undefined;
var loc15:*;
loc15 = undefined;
var loc1:*;
loc1 = "";
var loc2:*;
loc2 = arg1.toLowerCase();
loc3 = 0;
while (loc3 < arg1.length)
{
loc6 = arg1.charCodeAt(loc3);
if ((loc7 = arg1.charAt(loc3)) != "(")
{
if (loc7 != ")")
{
if (loc7 == "|" || loc7 == ":" || loc7 == ";" || loc7 == "8" || loc7.toLowerCase() == "p")
{
loc8 = 0;
loc4 = 0;
while (loc4 < xconst.smArray.length)
{
if (xconst.smArray[loc4] < 0)
{
loc8 = loc4 + 1;
}
else
{
if (!(xconst.smArray[(loc4 + 1)] < 0))
{
if (loc7 == xconst.smArray[loc4].charAt(0))
{
if (xconst.smArray[loc4] == loc2.substr(loc3, xconst.smArray[loc4].length))
{
loc1 = loc1 + " " + xconst.smArray[loc8] + " ";
loc3 = loc3 + (xconst.smArray[loc4].length - 1);
loc8 = -1;
break;
}
}
}
}
loc4 = (loc4 + 1);
}
if (!(loc8 < 0))
{
loc1 = loc1 + loc7;
}
}
else
{
loc1 = loc1 + loc7;
}
}
else
{
if (arg3 != undefined)
{
if (xconst.smih[arg1.substr(loc5 + 1, (loc3 - loc5 - 1)).toLowerCase()])
{
loc1 = loc1 + "#" + arg3;
}
}
loc1 = loc1 + ") ";
}
}
else
{
loc1 = loc1 + " (";
loc5 = loc3;
}
loc3 = (loc3 + 1);
}
if (arg2 && todo.autologin & 2)
{
loc9 = loc1.split(" ");
loc12 = "";
loc13 = xconst.badwords.length;
loc14 = loc9.length;
loc4 = 0;
while (loc4 < loc14)
{
if (!(loc9[loc4].length < 4))
{
loc11 = loc9[loc4].toLowerCase();
loc3 = 0;
while (loc3 < loc13)
{
if (loc11.indexOf(xconst.badwords[loc3]) != -1)
{
loc15 = "1";
if (todo.gconfig["g90"] && todo.gconfig["g90"][xconst.badwords[loc3]])
{
loc15 = "2";
}
loc9[loc4] = "" + loc9[loc4];
loc10 = 1;
}
loc3 = (loc3 + 1);
}
}
loc4 = (loc4 + 1);
}
if (loc10)
{
return loc9.join(" ");
}
}
return loc1;
}
public static function DecodeColor(arg1:*, arg2:*=true, arg3:*=true, arg4:*=true, arg5:*=true):*
{
var B:*;
var Bn:*;
var G:*;
var Gn:*;
var H:*;
var Hue:Function;
var L:*;
var R:*;
var Rn:*;
var S:*;
var a:*;
var b:*;
var bc:*;
var bp:*=true;
var c:*;
var ch:*;
var d:*;
var dB:*;
var dG:*;
var dR:*;
var dc:*;
var gc:*;
var gp:*=true;
var hcol:*;
var lc:*;
var lp:*=true;
var max:*;
var min:*;
var rc:*;
var rp:*=true;
var sL:*;
var str:*;
var loc1:*;
R = undefined;
G = undefined;
B = undefined;
H = undefined;
S = undefined;
L = undefined;
c = undefined;
a = undefined;
ch = undefined;
hcol = undefined;
dR = undefined;
dG = undefined;
dB = undefined;
b = undefined;
str = arg1;
rp = arg2;
gp = arg3;
bp = arg4;
lp = arg5;
Hue = function (arg1:*, arg2:*, arg3:*):*
{
if (arg3 < 0)
{
arg3 = arg3 + 1;
}
if (arg3 > 1)
{
arg3 = (arg3 - 1);
}
if (6 * arg3 < 1)
{
return arg1 + (arg2 - arg1) * 6 * arg3;
}
if (2 * arg3 < 1)
{
return arg2;
}
if (3 * arg3 < 2)
{
return arg1 + (arg2 - arg1) * (2 / 3 - arg3) * 6;
}
return arg1;
}
if (str == undefined)
{
return undefined;
}
if (rp == false && gp == false && bp == false && lp == false)
{
return undefined;
}
str = str.toLowerCase();
rc = (str.split("r").length - 1);
gc = (str.split("g").length - 1);
bc = (str.split("b").length - 1);
lc = (str.split("+").length - 1);
dc = (str.split("-").length - 1);
sL = 0.5;
if (rc == 0 && gc == 0 && lc == 0 && dc == 0)
{
c = 0;
a = 0;
while (a < str.length)
{
ch = str.charAt(a);
c = ch >= "0" && ch <= "9" || ch >= "a" && ch <= "f" ? c + 1 : 0;
if (c == 6)
{
hcol = parseInt(str.substr(a - c + 1, 6), 16);
if (!(rp == false) && !(gp == false) && !(bp == false) && !(lp == false))
{
return hcol;
}
bc = hcol & 255;
gc = hcol >> 8 & 255;
rc = hcol >> 16 & 255;
var loc2:*;
dc = loc2 = 0;
lc = loc2;
if (lp != false)
{
sL = (Math.min(rc, Math.min(gc, bc)) + Math.max(rc, Math.max(gc, bc))) / 512;
}
}
a = (a + 1);
}
}
if (rc == 0 && gc == 0 && bc == 0 && lc == 0 && dc == 0)
{
return undefined;
}
if (rp == false)
{
rc = 0;
}
if (gp == false)
{
gc = 0;
}
if (bp == false)
{
bc = 0;
}
if (lp == false)
{
dc = loc2 = 0;
lc = loc2;
}
if (rc == 0 && gc == 0 && bc == 0)
{
bc = loc2 = 1;
gc = loc2 = loc2;
rc = loc2;
}
Rn = rc / (rc + gc + bc);
Gn = gc / (rc + gc + bc);
Bn = bc / (rc + gc + bc);
min = Math.min(Rn, Math.min(Gn, Bn));
max = Math.max(Rn, Math.max(Gn, Bn));
d = max - min;
L = (max + min) / 2;
if (d != 0)
{
S = L < 0.5 ? d / (max + min) : d / (2 - max - min);
dR = ((max - Rn) / 6 + d / 2) / d;
dG = ((max - Gn) / 6 + d / 2) / d;
dB = ((max - Bn) / 6 + d / 2) / d;
if (Rn != max)
{
if (Gn != max)
{
if (Bn == max)
{
H = 2 / 3 + dG - dR;
}
}
else
{
H = 1 / 3 + dR - dB;
}
}
else
{
H = dB - dG;
}
if (H < 0)
{
H = H + 1;
}
if (H > 1)
{
H = (H - 1);
}
}
else
{
S = loc2 = 0;
H = loc2;
}
L = sL + 0.0625 * lc - 0.0625 * dc;
if (L < 0)
{
L = 0;
}
if (L > 1)
{
L = 1;
}
if (S != 0)
{
a = L < 0.5 ? L * (1 + S) : L + S - S * L;
b = 2 * L - a;
R = Hue(b, a, H + 1 / 3);
G = Hue(b, a, H);
B = Hue(b, a, H - 1 / 3);
}
else
{
B = loc2 = L;
G = loc2 = loc2;
R = loc2;
}
R = Math.round(255 * R);
G = Math.round(255 * G);
B = Math.round(255 * B);
return (R << 16) + (G << 8) + B;
}
public static function Register_Link(arg1:*):*
{
var loc1:*;
loc1 = undefined;
loc1 = xconst.usedomain + "/web_gear/chat/register.php";
if (arg1 != undefined)
{
loc1 = loc1 + "?UserId=" + todo.w_userno + "&k2=" + todo.w_k2 + "&mode=" + arg1;
}
return loc1;
}
public static function Register_onRelease(arg1:*):*
{
main.closeDialog();
var loc1:*;
loc1 = "";
if (arg1 > 0)
{
loc1 = "&b=1";
}
var loc2:*;
loc2 = Register_Link(1) + loc1;
UrlPopup(xconst.ST(8), loc2, undefined);
return;
}
public static function dump(arg1:*, arg2:*=0):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
if (arg2 != 0)
{
};
var loc4:*;
loc4 = 0;
var loc5:*;
loc5 = arg1;
for (loc1 in loc5)
{
loc2 = "";
loc3 = 0;
while (loc3 < arg2)
{
loc2 = loc2 + " ";
loc3 = (loc3 + 1);
}
loc2 = loc2 + loc1 + ":" + typeof arg1[loc1] + "=" + arg1[loc1];
if (typeof arg1[loc1] != "object")
{
continue;
}
dump(arg1[loc1], arg2 + 1);
}
return;
}
public static function catchIOError(arg1:flash.events.IOErrorEvent):*
{
return;
}
public static function LoadMovie(arg1:*, arg2:*, arg3:*):*
{
var loc1:*;
loc1 = new flash.display.Loader();
var loc2:*;
loc2 = new flash.net.URLRequest(arg2);
loc1.load(loc2);
if (arg1)
{
arg1.addChild(loc1);
}
if (arg3)
{
loc1.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, arg3);
}
loc1.addEventListener(flash.events.IOErrorEvent.IO_ERROR, catchIOError);
return loc1;
}
public static function xLog(arg1:String):*
{
var loc1:*;
loc1 = new flash.net.URLRequest();
loc1.url = "http://xat.com/images/t.gif?" + arg1;
loc1.method = flash.net.URLRequestMethod.GET;
var loc2:*;
loc2 = new flash.net.URLLoader();
loc2.load(loc1);
loc2.addEventListener(flash.events.Event.COMPLETE, xLogComplete);
return;
}
public static function xLogComplete(arg1:flash.events.Event):*
{
return;
}
public static function SplitBackground(arg1:String):*
{
todo.BackVars = arg1.split(";=");
var loc1:*;
loc1 = todo.BackVars[0].split("#");
todo.BackVars[0] = loc1[0];
if (todo.BackVars[1] == undefined)
{
todo.BackVars[1] = "Lobby";
}
if (xInt(todo.BackVars[2]) < 1)
{
todo.BackVars[2] = 1;
}
return;
}
public static function LoadVariables(arg1:*, arg2:*, arg3:*, arg4:*):*
{
var loc1:*;
(loc1 = new flash.net.URLRequest()).url = arg1;
if (arg4)
{
loc1.method = flash.net.URLRequestMethod.POST;
}
else
{
loc1.method = flash.net.URLRequestMethod.GET;
}
if (arg3)
{
loc1.data = arg3;
}
var loc2:*;
(loc2 = new flash.net.URLLoader()).load(loc1);
if (arg2)
{
loc2.addEventListener(flash.events.Event.COMPLETE, arg2);
}
return loc2;
}
public static function AttachBut(arg1:*, arg2:*, arg3:*=0.8):*
{
arg1.c = new library(arg2);
arg1.addChild(arg1.c);
arg1.c.scaleX = SX(arg3);
arg1.c.scaleY = SY(arg3);
arg1.c.x = NX(10);
arg1.c.y = NY(5);
return arg1.c;
}
public static function AddTextField(arg1:*, arg2:*, arg3:*, arg4:*, arg5:*, arg6:*="", arg7:*):*
{
var loc1:*;
loc1 = new flash.text.TextField();
if (arg7 == undefined)
{
arg7 = main.fmt;
}
loc1.x = arg2;
loc1.y = arg3;
loc1.width = arg4;
loc1.height = arg5;
loc1.autoSize = flash.text.TextFieldAutoSize.NONE;
loc1.selectable = true;
loc1.defaultTextFormat = arg7;
loc1.text = arg6;
arg1.addChild(loc1);
return loc1;
}
public static function RemoveCR(arg1:flash.events.Event):*
{
var loc3:*;
loc3 = undefined;
var loc1:*;
loc1 = arg1.currentTarget;
var loc2:*;
loc2 = 0;
while (loc2 < loc1.text.length)
{
if ((loc3 = loc1.text.charAt(loc2)) == "\r" || loc3 == ">")
{
loc1.text = loc1.text.substr(0, loc2) + loc1.text.substr(loc2 + 1);
}
loc2 = (loc2 + 1);
}
return;
}
public static function AttachMovie(arg1:*, arg2:*, arg3:*):*
{
var loc1:*;
loc1 = new library(arg2);
if (arg3)
{
if (arg3["x"])
{
loc1.x = arg3["x"];
}
if (arg3["y"])
{
loc1.y = arg3["y"];
}
if (arg3["scaleX"])
{
loc1.scaleX = arg3["scaleX"];
}
if (arg3["scaleY"])
{
loc1.scaleY = arg3["scaleY"];
}
if (arg3["width"])
{
loc1.width = arg3["width"];
}
if (arg3["height"])
{
loc1.height = arg3["height"];
}
}
if (arg1)
{
arg1.addChild(loc1);
}
return loc1;
}
public static function ReLogin():*
{
todo.lb = "n";
todo.DoUpdate = true;
network.NetworkClose();
main.logoutbutonPress();
return;
}
public static function MakeGlow(arg1:*, arg2:*=3, arg3:*=2):*
{
var loc1:*;
return [loc1 = new flash.filters.GlowFilter(arg1, 0.7, arg3, arg3, 6, arg2, false, false)];
}
public static function NoToRank(arg1:*):*
{
if (arg1 >= 14)
{
return "o";
}
if (arg1 >= 10)
{
return "M";
}
if (arg1 >= 7)
{
return "m";
}
if (arg1 >= 3)
{
return "e";
}
return "g";
}
public static function RankColor(arg1:*, arg2:Boolean=false, arg3:Boolean=false):*
{
var loc2:*;
loc2 = undefined;
var loc1:*;
loc1 = "00C000";
while (1)
{
if (arg1 as String)
{
var loc3:*;
loc3 = arg1.charAt(0);
switch (loc3)
{
case "o":
case "M":
{
loc1 = "FF9900";
break;
}
case "e":
{
loc1 = "6565FF";
break;
}
case "m":
{
loc1 = "FFFFFF";
break;
}
}
}
else
{
if (arg1 >= 0)
{
if (loc2 = todo.Users[arg1])
{
if (!loc2.online)
{
loc1 = "FF0000";
if (arg3 && loc2.onsuper)
{
loc1 = "00C000";
}
break;
}
if (loc2.banned)
{
loc1 = "964B00";
break;
}
if (loc2.member)
{
loc1 = "6565FF";
}
if (loc2.moderator)
{
loc1 = "FFFFFF";
}
if (loc2.owner || loc2.mainowner)
{
loc1 = "FF9900";
}
if (todo.Users[arg1].VIP)
{
if (todo.HasPower(arg1, 30))
{
loc1 = "FF69B4";
}
if (todo.HasPower(arg1, 64))
{
loc1 = "000080";
}
if (todo.HasPower(arg1, 35))
{
loc1 = "800080";
}
if (todo.HasPower(arg1, 153))
{
loc1 = "F4C75F";
}
if (todo.Users[arg1].u == 42)
{
loc1 = "000001";
}
if (todo.Users[arg1].aFlags & 1 << 21)
{
loc1 = "13E7E5";
}
}
}
}
}
break;
}
if (arg2)
{
return loc1;
}
return parseInt(loc1, 16);
}
public static function xJSONdecode(arg1:*):*
{
if (!arg1)
{
return undefined;
}
return com.adobe.serialization.json.JSON.decode(searchreplace("\'", "\"", arg1));
}
public static function iMux(arg1:*):*
{
var loc3:*;
loc3 = 0;
var loc1:*;
loc1 = 0;
var loc2:*;
loc2 = arg1.length;
loc3 = 0;
while (loc3 < 10)
{
loc1 = loc1 + arg1.charAt(--loc2);
++loc3;
}
loc1 = 0;
return "http://i" + (loc1 & 1) + ".xat.com/web_gear/chat/" + arg1;
}
public static function OnCheck(arg1:flash.events.MouseEvent):*
{
arg1.currentTarget.xitem.tick.visible = !arg1.currentTarget.xitem.tick.visible;
return;
}
public static function SockTime():*
{
return int(network.YC + (flash.utils.getTimer() - network.YC2) / 1000);
}
public static function GetLangDom():*
{
var loc1:*;
loc1 = "http://";
if (xatlib.xInt(todo.w_lang) > 10000)
{
loc1 = loc1 + "util.";
}
loc1 = loc1 + "xat.com/web_gear/ever/lang/";
return loc1;
}
{
FastFind1 = new Object();
r1 = new RegExp("[\\x00-\\x08\\x10\\x0B\\x0C\\x0E-\\x19\\x7F]|(?<=^|[\\x00-\\x7F])[\\x80-\\xBF]+|([\\xC0\\xC1]|[\\xF0-\\xFF])[\\x80-\\xBF]*|[\\xC2-\\xDF]((?![\\x80-\\xBF])|[\\x80-\\xBF]{2,})|[\\xE0-\\xEF](([\\x80-\\xBF](?![\\x80-\\xBF]))|(?![\\x80-\\xBF]{2})|[\\x80-\\xBF]{3,})");
r2 = new RegExp("\\xE0[\\x80-\\x9F][\\x80-\\xBF]|\\xED[\\xA0-\\xBF][\\x80-\\xBF]");
}
public static const c_tl:Number=1 << 8;
public static const c_tr:Number=2 << 8;
public static const c_bl:Number=4 << 8;
public static const c_br:Number=8 << 8;
public static const c_nolt:Number=16 << 8;
public static const c_nolb:Number=32 << 8;
public static const c_inv:Number=64 << 8;
public static const c_solid:Number=128 << 8;
public static const c_NoCol:Number=128 << 9;
public static const c_Mask:Number=128 << 10;
public static const c_Clip:Number=128 << 11;
public static const b_mouseChild:*=128 << 12;
public static var FastFind1:*;
public static var r1:RegExp;
public static var r2:RegExp;
}
}
// class xatsat
package
{
import flash.display.*;
public dynamic class xatsat extends flash.display.MovieClip
{
public function xatsat()
{
super();
return;
}
}
}
// class xconst
package
{
public class xconst extends Object
{
public function xconst()
{
super();
return;
}
public static function xconstInit():*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
StringTable = stab.split("£");
name1 = n1.split(",");
name2 = n2.split(",");
pool1 = p1.split(",");
pool2 = p2.split(",");
if (global.mk != undefined)
{
kss = kss + global.mk;
}
kssa = kss.split(",");
loc1 = 0;
while (loc1 < kssa.length)
{
kssh[kssa[loc1]] = true;
loc1 = (loc1 + 1);
}
backsR = ReverseObj(backs);
effectsR = ReverseObj(effects);
colorc["-"] = 1;
colorc["+"] = 1;
topsh["6"] = 43;
topsh["3d"] = 42;
var loc5:*;
loc5 = 0;
var loc6:*;
loc6 = global.mt;
for (loc2 in loc6)
{
topsh[loc2] = global.mt[loc2];
}
pssa = pss.split(",");
loc1 = 0;
while (loc1 < pssa.length)
{
pssh[pssa[loc1]] = loc1 > 1 ? (loc1 - 1) : loc1 - 2;
loc1 = (loc1 + 1);
}
smi = "a,sry,crs,un,d,scn,nod,gagged,nme,swt,roll,rofl,chkl,inlove,blk,xp,eyes,tired,smirk,ill,dead,hello,yum,think,mischief,zip2,puke,yawn,swear,cry2,what,omg,o_o,goo,smirk2,beye,wary,shock,xd,cyc,wt,chew,contempt,fedup,aghast,look,spin2,tipsy,twitch,shifty,ashamed,pty,sad,rolling,no,jolly,annoyed,astonished,evil,sinister,smug,sour,um,dream,memory,babythrow,candyeat,cute,flowerthrow,gloomy,hey,hula,loving,meloneat,shadesoff,stressing,waiting,ugc";
loc5 = 0;
loc6 = topsh;
for (loc3 in loc6)
{
smi = smi + "," + loc3;
}
if (global.ms != undefined)
{
smi = smi + global.ms;
}
smi = smi + ",x,chest,gst,alien,bby,bot1,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,xday,xtre,xstk,mtoe,hly,egg,ghat,clover,stickman,stickman2,stickman3,stickairguitar,stickkungfu,stickangry,stickymca,danny,turkey,ss,qbone,mc,lb,mario8,nop,okp,mate,amy,mouser";
smi = smi + "," + kss.toLowerCase() + "," + pss;
smArray = sa.split(",");
loc1 = 0;
while (loc1 < smArray.length)
{
if (smArray[loc1] == "M")
{
smArray[loc1] = -1;
}
if (smArray[loc1] == "T")
{
smArray[loc1] = -2;
}
if (smArray[loc1] < 0)
{
tsmi = tsmi + smArray[(loc1 - 1)] + ",";
}
loc1 = (loc1 + 1);
}
smi = tsmi + smi;
smia = smi.split(",");
loc1 = 0;
while (loc1 < smia.length)
{
smih[smia[loc1]] = true;
loc1 = (loc1 + 1);
}
if (global.mg != undefined)
{
loc5 = 0;
loc6 = global.mg;
for (loc4 in loc6)
{
Glitters[loc4] = global.mg[loc4];
}
}
return;
}
public static function ST(arg1:Number, arg2:String, arg3:String, arg4:String, arg5:String):String
{
var loc1:*;
loc1 = StringTable[arg1];
if (arg2 != undefined)
{
loc1 = loc1.slice(0, loc1.indexOf("$1")) + arg2 + loc1.slice(loc1.indexOf("$1") + 2);
}
if (arg3 != undefined)
{
loc1 = loc1.slice(0, loc1.indexOf("$2")) + arg3 + loc1.slice(loc1.indexOf("$2") + 2);
}
if (arg4 != undefined)
{
loc1 = loc1.slice(0, loc1.indexOf("$3")) + arg4 + loc1.slice(loc1.indexOf("$3") + 2);
}
if (arg5 != undefined)
{
loc1 = loc1.slice(0, loc1.indexOf("$4")) + arg5 + loc1.slice(loc1.indexOf("$4") + 2);
}
return loc1;
}
public static function CreateST():*
{
var loc1:*;
loc1 = undefined;
todo.LangText = todo.LangText.substr(1);
var loc2:*;
loc2 = todo.LangText.indexOf(";=");
todo.LangText = todo.LangText.substr(loc2 + 2);
loc1 = 0;
while (loc1 < StringTable.length)
{
StringTable[loc1] = xatlib.Replace(StringTable[loc1], ">", "");
loc2 = todo.LangText.indexOf(";=");
if (loc2 == -1)
{
break;
}
if (todo.LangText.substr(0, loc2) != "")
{
StringTable[loc1] = todo.LangText.substr(0, loc2);
}
todo.LangText = todo.LangText.substr(loc2 + 2);
StringTable[loc1] = StringTable[loc1].split("\\n").join("\n");
loc1 = (loc1 + 1);
}
if (StringTable[244] == "Cancel")
{
StringTable[244] == "Close";
}
return;
}
public static function MakeBads(arg1:*=null):*
{
var loc1:*;
loc1 = undefined;
var loc3:*;
loc3 = undefined;
badwords = bw.split(",");
var loc2:*;
loc2 = StringTable[163].split(",");
loc1 = 0;
while (loc1 < loc2.length)
{
if (loc2[loc1].length > 2)
{
badwords.push(loc2[loc1]);
}
loc1 = (loc1 + 1);
}
if (arg1)
{
loc3 = {};
arg1 = arg1.split(",");
loc1 = 0;
while (loc1 < arg1.length)
{
if (arg1[loc1].length > 3)
{
badwords.push(arg1[loc1]);
loc3[arg1[loc1]] = true;
}
loc1 = (loc1 + 1);
}
todo.gconfig["g90"] = loc3;
}
return;
}
public static function ReverseObj(arg1:*):*
{
var loc2:*;
loc2 = undefined;
var loc1:*;
loc1 = new Object();
var loc3:*;
loc3 = 0;
var loc4:*;
loc4 = arg1;
for (loc2 in loc4)
{
loc1[arg1[loc2]] = loc2;
}
return loc1;
}
{
stab = "Main£" + "Delete message£" + "Visitors£" + "Friends£" + "Send message£" + "Get a Chat Box£" + "Chat Groups£" + "View help£" + "Web Link£" + "More smilies£" + "Turn sound on£" + "Turn sound off£" + "Click on $1 to change your name£" + "Go to $1 Group£" + "Help£" + "Change your picture£" + "Interact with $1£" + "If not auto linked copy this to your browser:£" + "Change your name, picture and home page£" + "Sign In£" + "Private message£" + "Go to home page:£" + "Member£" + "Moderator£" + "Owner£" + "Banned£" + "Click to start chat£" + "Click to stop chat£" + "Change background, Add or change group. Add extra features.£" + "Put a Chat Box on your website£" + "To change your name or picture click on this: $1£" + "Sign Out£" + "Connecting...£" + "You haven\'t said anything for a while. Press Sign In to rejoin the chat.£" + "Edit Your Chat£" + "Press Sign In to start chatting. To be signed in automatically go to the profile page and select [Sign me in automatically].£" + "You have started the chat in another window. Press Sign In to restart in this window again.£" + "This is a $1 only chat, you can private chat an owner or moderator and ask to join.£" + "Enter a link, web page or search term£" + "Get Images£" + "Background:£" + "Enter Group name here -\nor select below:£" + "Chat 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£" + "Create New Group£" + "Edit xat.com Chat Box£" + "OK£" + "Change Background£" + "Change Group£" + "Set any width and height. Promote your chat box. Get a Poll, Quiz and Slide Show£" + "Extra Features...£" + "Edit Your Chat Box£" + "Get Your Own Chat Box£" + "Loading images, please wait£" + "Preview Group£" + "Failed to find any images,\nplease try again.£" + "Sorry, chat edit is closed for maintenance.\nPlease try later£" + "Preview£" + "Click to use this image£" + "Profile£" + "New User...£" + "Name£" + "Picture£" + "Home Page£" + "Choose from 100s of Pictures on the web£" + "Use Your Own£" + "Sign me in automatically£" + "Cancel£" + "Go to home page:£" + "No home page£" + "Private Chat£" + "Start a private chat£" + "Private Message£" + "Send a private message£" + "Un-Friend£" + "Add as Friend£" + "Add/Remove as Friend£" + "Ignore£" + "Un-Ignore£" + "Ignore/Un-Ignore this user£" + "Kick£" + "Kick this user off as a warning.£" + "Ban£" + "Un-Ban£" + "Prevent this user from posting messages£" + "Make Member£" + "£" + "£" + "£" + "Make Moderator£" + "£" + "I have un-banned£" + "Go to friend\'s location:£" + "Get a Chat Box£" + "£" + "£" + "£" + "£" + "£" + "Connection Problem. You could try to start the chat again, Sorry.£" + "Please do not share your password with anyone. xat will never ask for your password.£" + "Network Problem!£" + "Report Unfair Ban£" + "Return to Chat Box£" + "Find Another Group£" + "Copy Link£" + "Link Copied to Clipboard£" + "Please go to your browser and press Ctrl-V in the address box.£" + "You are£" + "On xat£" + "Online£" + "Offline£" + "Friend£" + "Ignored£" + "Reason for Ban:£" + "Reason for Kick:£" + "Duration:£" + "Hours£" + "(0 = forever)£" + "(maximum 6)£" + "I have banned $1 forever for no reason£" + "I have banned $1 for $2 hours for no reason£" + "I have banned $1 forever. Reason: $2£" + "I have banned $1 for $2 hours. Reason: $3£" + "I have kicked $1 Reason: $2£" + "You can\'t kick someone without a reason.£" + "You have been Banned£" + "not added you as a friend£" + "$1 has Banned you£" + "I have made $1 a moderator£" + "on $1£" + "I have un-moderated $1£" + "Get£" + "I have made $1 a member£" + "I have un-membered $1£" + "Main Owner£" + "Make Guest£" + "Make Owner£" + "I have made $1 an owner£" + "I have made $1 a guest£" + "Get Stuff£" + "View xatspace£" + "Invite all your IM friends to this chat!£" + "Add IM friends. Start IM version of the chat.£" + "On App£" + "Start IM£" + "Start IM version of the chat£" + "Please sign into IM first£" + "$1 friends invited to chat£" + "Marry/Best Friend£" + "Transfer£" + "Divorce£" + "Give away xats and days£" + "Married to£" + "Best friends with£" + "Register...£" + "Register, Login, Logout etc.£" + "On MSN£" + "On AIM£" + "subscriber£" + "registered£" + "BFF£" + "married£" + "Transfer of $1 xats and $2 days\nfrom $3 to $4 complete\n£" + "£" + "User not found£" + "Bad password£" + "User not confirmed registration email£" + "Not enough xats£" + "You have to have a partner to get divorced!£" + "You are already have a partner!£" + "Partner not registered£" + "Partner already has a partner!£" + "Not enough days!£" + "Sorry: Can\'t transfer to free xats user£" + "System problem. Please try later.£" + "Error£" + "subscribers£" + "registered users£" + "members£" + "Turn radio off£" + "Turn radio on£" + "Enter message, your password and enter the amount to transfer.£" + "Enter message, your password and click your choice.£" + "Message£" + "Password£" + "Kiss£" + "Marry/BFF£" + "xats phishing protection: Transfer held for $1 days£" + "Gagged£" + "Powers£" + "Add Effects£" + "Add Special Effects to your Avatar (days required)£" + "Protect Deactivated!£" + "Protect Activated! - for the next $1 minutes new guests wont be able to talk for $2 minutes.£" + "I have booted $1 to $2. Reason: $3£" + "sinbin£" + "I have sinbinned $1£" + "Gag£" + "Mute£" + "I have $1 $2 for $3 hours for no reason£" + "I have $1 $2 for $3 hours. Reason: $4£" + "Muted£" + "Transfer to: $1£" + "Subscriber for:£" + "$1 days£" + "xats£" + "Get xats£" + "Click to buy£" + "days£" + "Marry:£" + "Best Friends Forever:£" + "Please wait...£" + "Get $1£" + "Make a Group£" + "WARNING! Do not share this link!£" + "You have been automatically logged out. Please login again at xat.com/login£" + "Open Live Panel£" + "Live Mode: Send questions and comments by typing here£" + "Invite all MSN/AIM friends£" + "Add MSN/AIM friends£" + "Hide inappropriate words£" + "Get Married£" + "Get Divorced£" + "Give to $1£" + "Send a kiss£" + "Updated£" + "Safe Trade£" + "Offer£" + "Done£" + "Accept trade£" + "Trade complete£" + "Failed£" + "Confirm trade£" + "WARNING: Trade may be unfair! Continue?£" + "xats reserve limit exceeded.£" + "(Reduce trade value by $1 xats)£" + "Banished£" + "Group Power£" + "Assign or Unassign $1 to this chat group.£" + "$1 unassigned ok£" + "$1 assigned ok£" + "$1 unassigned fail (you hadnt assigned one)£" + "$1 assigned fail (you dont have any free ones)£" + "Groups Powers that are assigned to groups cannot be traded£" + "Close£" + "Dunce£" + "Undunce";
usedomain = "http://xat.com";
chatdomain = xconst.usedomain + "/web_gear/chat/";
n1 = "Baby,Booble,Bunker,Cuddle,Cutie,Doodle,Foofie,Gooble,Honey,Kissie,Lover,Lovey,Moofie,Mooglie,Moopie,Moopsie,Nookum,Poochie,Pookie,Schmoopie,Schnoogle,Schnookie,Schnookum,Smooch,Smoochie,Smoosh,Snoogle,Snoogy,Snookie,Snookum,Snuggy,Sweetie,Woogle,Woogy,Wookie,Wookum,Wuddle,Wuggy,Wunny,Bumble,Bump,Dip";
n2 = "Boo,Bunch,Bunny,Cake,Cakes,Cute,Darling,Dumpling,Dumplings,Face,Foof,Goo,Head,Kin,Kins,Lips,Love,Mush,Pie,Pook,Pums,Bumble,Bump,Dip";
p1 = "funky,boogie,cool,groove,divine,glory,swell,nifty,crazy,freak,wacky,quirky,weird,wild,strange,style,radical,urban,wicked";
p2 = "town,zone,club,city,time,community,center,place,central,nation,state,district,jungle,land,realm,tribe,monkeys,junction,show,point";
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";
kss = "Confetti,Hearts,Champagne,Argue,Cry,Hippo,Hearts,Paint,Surprise,Magic8ball,Airplane,Parachute,Dynamite,Lips,Bomb,Fireworks,Pull,Shark,Blood,Globe,Bugs,Grumpy,Snow,Ttth";
kssh = new Object();
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", "b14":"tree", "b15":"stock", "b16":"bulb", "b17":"balloon", "b18":"eggb", "b19":"camo", "b20":"blob", "b21":"alienb", "b22":"gkaoani", "b23":"gkaliens", "b24":"independence", "b25":"usface", "b26":"fish", "b27":"crab", "b28":"octopus", "b29":"jellyfish", "b30":"starfish", "b31":"shrimp", "b32":"sea", "b33":"electrocute", "b34":"flame", "b35":"timebomb", "b36":"ornament", "b37":"ogre", "b38":"frog", "b39":"flower2", "b40":"gkbear", "b41":"gkkitty", "b42":"gkpanda", "b43":"sheriff", "b44":"cdycorn", "b45":"cdyback", "b46":"zodiac", "b47":"flower", "b48":"snakeban", "b49":"moonb", "b50":"brain", "b51":"kpeng", "b52":"sbell", "b53":"tabsc", "b54":"peace", "b55":"punch", "b56":"noface", "b57":"carve", "b58":"bot4", "b59":"kdog", "b60":"goldb", "b61":"mazeban", "b62":"goldstar", "b63":"snowman", "b64":"santa", "b65":"reindeer", "b66":"reback", "b67":"champagneback", "b68":"can", "b69":"kduckback", "b70":"heartfx", "b71":"heartfx2", "b72":"heartfx3", "b73":"monster", "b74":"katback", "b75":"ksheepback", "b76":"pulsefxback", "b77":"bbback", "b78":"fzback", "b79":"kbeeback", "b80":"drip", "b81":"doodlerace"};
effects = {"i":"invert", "m":"mirror", "y":"cycle", "f":"fade"};
colorc = {"r":1, "g":1, "b":1};
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, "shrug":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, "sherlock":42, "prop":42, "grad":42, "dunce2":42, "straw":42, "ribbon":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, "helmet":49, "cupw":49, "pknlaugh":52, "tort":52, "pkn":52, "wh":52, "frk":52, "mmy":52, "cdn":52, "grim":52, "tomb":52, "bat":52, "ghost":52, "dig":52, "die":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, "astro":53, "haira6":53, "haira7":53, "haira8":53, "haira9":53, "haira10":53, "pilgrimm":55, "pilgrimf":55, "indian":55, "indian2":55, "indian3":55, "chef":55, "dining":55, "feast2":55, "eatleg":55, "snows":56, "beard":57, "bell":57, "cane":57, "ches":57, "elf":57, "give":57, "pole":57, "sack":57, "sball":57, "scarf":57, "sdeer":57, "sfeet":57, "shiver":57, "sledge":57, "slist":57, "smound":57, "spull":57, "stock":57, "tree":57, "wreath":57, "xb1":57, "xb4":57, "skiss":57, "bulb":57, "sgift":57, "beat":62, "bheart":62, "cupid":62, "card":62, "hug2":62, "hug3":62, "ilu":62, "lhand":62, "ring":62, "rose":62, "rose2":62, "pce":31, "cd":31, "sleep":31, "fs":31, "shift1":63, "pawn1":63, "bff1":63, "frnt1":63, "hat1":63, "glow1":63, "snows1":63, "wb1":63, "dunce1":63, "fwp1":63, "balloon":65, "bride":65, "cake":65, "phat":65, "clink":65, "pdance":65, "pdance2":65, "pdance3":65, "groom":65, "photo":65, "popper":65, "toast":65, "clover2":66, "drink":66, "igirl":66, "iman":66, "pot":66, "rainbow":66, "shi":66, "tap":66, "drum":66, "bagpipes":66, "basket":68, "bunny":68, "bunny2":68, "chick":68, "egg2":68, "eggb":68, "paintegg":68, "kbiggrin":72, "kclap":72, "kconfused":72, "kcool":72, "kcrying":72, "kdizzy":72, "keek":72, "keyerub":72, "kfit":72, "kfrown":72, "kglare":72, "khehe":72, "khello":72, "khug":72, "kkiss":72, "klove":72, "kmad":72, "kmischief":72, "knod":72, "krant":72, "kredface":72, "ksad":72, "ksleepy":72, "ksmile":72, "ksmirk":72, "kstraight":72, "kstruggle":72, "ktongue":72, "kun":72, "kwink":72, "acrobat":71, "balloonart":71, "cannon":71, "clown":71, "eleride":71, "fireblow":71, "firewand":71, "highwire":71, "uniwire":71, "juggler":71, "lion":71, "splat":71, "tamer":71, "uni":71, "unirope":71, "wheel":71, "camo":73, "coastguard":73, "drillserg":73, "gasmask":73, "m1h":73, "marine":73, "pilot":73, "sailor":73, "sailor2":73, "salute":73, "smoke":73, "kachat":76, "kacrazy":76, "kafang":76, "kafill":76, "kagab":76, "kagrin":76, "kagsp":76, "kalook":76, "kao":76, "kaoo":76, "kapunch":76, "kaswt":76, "katalk":76, "katear":76, "katears":76, "kaum":76, "kaupset":76, "kawink":76, "alien2":77, "alienb":77, "beam":77, "blob":77, "borg":77, "cylon":77, "jetpack":77, "laser":77, "vial":77, "vr":77, "ufo":77, "cheerleader":78, "horn":78, "pennant":78, "corndog":78, "vuvu":78, "fish":82, "fish2":82, "fish3":82, "bubbles":82, "crab":82, "diver":82, "dolphin":82, "jellyfish":82, "octopus":82, "shrimp":82, "starfish":82, "turtle":82, "weed":82, "bonk":83, "burp":83, "crazy2":83, "dopey":83, "impact":83, "irked":83, "itchy":83, "mischief2":83, "nose":83, "raspberry":83, "rolleye":83, "spit":83, "string":83, "abe":87, "bbq":87, "flagwave":87, "fwlaunch":87, "glowstick":87, "liberty":87, "sparkler":87, "starbounce":87, "starburst":87, "starring":87, "tiphat":87, "usface":87, "usss":87, "beachbbq":89, "cooler":89, "efan":89, "fishing":89, "frisbee":89, "goggles":89, "kayak":89, "laytowl":89, "pina":89, "sanddig":89, "sandplay":89, "bands":89, "towl":89, "waterbottle":89, "waterskii":89, "biker":90, "slingshot":90, "thief":90, "fbomb":90, "liar":90, "mist":92, "franken":92, "goblin":92, "knife":92, "pkncut":92, "spider":92, "triclops":92, "vamp":92, "warewolf":92, "hit":93, "dodge":93, "lob":93, "mobounce":93, "moring":93, "campfire":97, "canopy":97, "compass":97, "firstaid":97, "hangglider":97, "hunting":97, "lantern":97, "map":97, "marshmallow":97, "iceaxe":97, "swing":97, "waterskiing":97, "zipline":97, "smokes":97, "asif":99, "one":99, "heartburst":99, "heartbounce":99, "noway":99, "duck":101, "electrocute":101, "eyepop":101, "flamed":101, "lookaround":101, "scream":101, "wow":101, "dazed":101, "hazey":101, "drool":101, "footmouth":101, "mindblow":101, "misspeak":101, "relieved":101, "uvula":101, "arc":101, "butterfly":102, "fcrown":102, "fhair":102, "fhat":102, "flower2":102, "frog":102, "fwings":102, "heartwand":102, "mushrooms":102, "shards":102, "kbawe":104, "kbcold":104, "kbcry":104, "kbdance":104, "kbpunch":104, "kbsad":104, "kbscream":104, "kbweep":104, "kbwink":104, "kbyawn":104, "explode":105, "facepalm":105, "bite":105, "hissyfit":105, "mutter":105, "potstir":105, "pullhair":105, "raging":105, "ticked":105, "yell":105, "flame":105, "grumpy2":105, "headache":105, "timebomb":105, "uangel":107, "udemon":107, "uevil":107, "uhappy":107, "ulook":107, "uthink":107, "usad":107, "uscratch":107, "usmile":107, "utongue":107, "uwink":107, "carolers":96, "decortree":96, "giftdrop":96, "giftrattle":96, "gingerbread":96, "pullsled":96, "antler":96, "shovel":96, "accident":96, "snowboard":96, "snowfight":96, "snowm":96, "xface":96, "snowmobile":96, "ornament":96, "earmuffs":96, "snowglobe":96, "cold":96, "freezing":96, "snowover":96, "snowangel":96, "windy":96, "icecube":96, "bowleat":98, "burger":98, "burgerlook":98, "candycorn":98, "carrot":98, "cherry":98, "chicken":98, "chili":98, "chipeat":98, "coffeesplash":98, "donut":98, "eatspagetti":98, "eattakeout":98, "eggcook":98, "eggplant":98, "fortunecookie":98, "fries":98, "icecream":98, "icecreameat":98, "peanut":98, "popcorn":98, "pretzel":98, "soupeat":98, "spam":98, "stirpan":98, "takeout":98, "thinkfood":98, "toast2":98, "pizza":98, "kkbiggrin":110, "kkconfused":110, "kkcool":110, "kkcrying":110, "kkd":110, "kkdance":110, "kkdead":110, "kkeek":110, "kkfrown":110, "kkhide":110, "kkhug":110, "kkmad":110, "kknme":110, "kkpaws1":110, "kkpaws2":110, "kkpaws3":110, "kkredface":110, "kkscn":110, "kkshock":110, "kksleepy":110, "kksmile":110, "kkstraightface":110, "kkstruggle":110, "kktongue":110, "kkun":110, "kkwary":110, "kkwink":110, "kkx3":110, "kkxd":110, "kkyawn":110, "axe":111, "darkeyes":111, "dragon":111, "flail":111, "hole":111, "helmet2":111, "medusa":111, "orcm":111, "elf2":111, "ogre":111, "orcf":111, "invis":111, "scroll":111, "slash":111, "smskull":111, "sword":111, "wizard":111, "daggers":113, "electro":113, "epi":113, "fireball":113, "flying":113, "genie":113, "iceman":113, "invisi":113, "jekyl":113, "maddr":113, "telekin":113, "amazon":113, "upaway":113, "ripshirt":113, "doggy":116, "giraffe":116, "goat":116, "lion2":116, "monkey":116, "mouse":116, "panda2":116, "raccoon":116, "sheep":116, "unicorn":116, "disco":117, "dj":117, "drums":117, "flute":117, "guitar":117, "harp":117, "piano":117, "trumpet":117, "violin":117, "zippo":117, "kpfit":118, "kpembarassed":118, "kppaws":118, "kpd":118, "kpannoyed":118, "kppaws2":118, "kplove":118, "kpjoy":118, "kpcrying":118, "kphurt":118, "blownose":119, "chill":119, "cough":119, "icepack":119, "sickface":119, "sneeze":119, "soup":119, "thermometer":119, "crutches":119, "feint":119, "cough2":119, "headknock":119, "crutches":119, "sweats":119, "coy":108, "flirt":108, "freehugs":108, "heartbeat":108, "heartblow":108, "ihu":108, "lovedraw":108, "ucute":108, "uhot":108, "cringe":121, "shake":121, "shocking":121, "envy":122, "gluttony":122, "greed":122, "lust":122, "pride":122, "sloth":122, "wrath":122, "whip":123, "turban":123, "tophat":123, "tinfoil":123, "sombrero":123, "paperbag":123, "paperbag2":123, "grandpa":123, "grandma":123, "glassesslip":123, "disguise":123, "curlers":123, "braces":123, "blindfold":123, "beret":123, "undertaker":124, "sheriff":124, "ropeg":124, "ropeb":124, "push":124, "prospector":124, "outlaw":124, "native":124, "bullride":124, "bartender":124, "officeworker":125, "driver":125, "doctor":125, "chef2":125, "burgerflipper":125, "blacksmith":125, "astronaut":125, "teacher":125, "stewardess":125, "shepherd":125, "scientist":125, "plumber":125, "paperboy":125, "miner":125, "mechanic":125, "judge":125, "journalist":125, "gardener":125, "fortuneteller":125, "fireman":125, "icman":128, "lifeguard":128, "lotion":128, "metaldetect":128, "sandbury":128, "sandfun":128, "shkhat":128, "sunburn":128, "surf":128, "tanning":128, "candy":129, "cdycorn":129, "cdyback":129, "donuteat":129, "eatchoco":129, "floss":129, "gum":129, "lolipop":129, "mm":129, "aries":131, "taurus":131, "gemini":131, "cancer":131, "leo":131, "virgo":131, "libra":131, "scorpio":131, "sagittarius":131, "capricorn":131, "aquarius":131, "pisces":131, "fangry":132, "fcry":132, "fcool":132, "feek":132, "fconfused":132, "ftongue":132, "fredface":132, "fsleepy":132, "fbiggrin":132, "fsad":132, "fwink":132, "eclipse":133, "meteorite":133, "nasa":133, "radiotele":133, "rocket":133, "satellite":133, "saucer":133, "shuttle":133, "space":133, "telescope":133, "sncool":134, "sneek":134, "snredface":134, "snconfused":134, "snfrown":134, "snbiggrin":134, "snangry":134, "snsleepy":134, "sncry":134, "snsmile":134, "snwink":134, "caveman":135, "dino":135, "cavewoman":135, "cavework":135, "cavebeard":135, "caveclothes":135, "torch":135, "spear":135, "rocksmash":135, "cavehair":135, "boneswing":135, "wallart":135, "stickfire":135, "cavebeard2":135, "moonb":136, "dance1":137, "dance2":137, "dance3":137, "dance4":137, "dance5":137, "dance6":137, "dance7":137, "dance8":137, "dance9":137, "dance10":137, "dance11":137, "kpesneeze":138, "kpeshy":138, "kpeshame":138, "kpejoy":138, "kpeglare":138, "kpefit":138, "kpedots":138, "kpedizzy":138, "kpeclap":138, "kpeangry":138, "kpedance":138, "kpepop":138, "aplus":139, "bowtie":139, "brain":139, "coder":139, "gates":139, "nglasses":139, "nsci":139, "phone":139, "read":139, "calc":139, "backpack":141, "daycare":141, "gts":141, "punished":141, "rubber":141, "schoolgirl":141, "sbell":141, "studying":141, "tabsc":141, "teacher2":141, "writing":141, "pconfused":143, "pcrying":143, "pcute":143, "pdead":143, "pfury":143, "pgiggle":143, "pglare":143, "pjump":143, "pmanic":143, "punched":143, "pshades":143, "pshy":143, "psleepy":143, "pthink":143, "dove":145, "dove2":145, "dove3":145, "hglass":145, "phair1":145, "phair2":145, "phair3":145, "rbe":145, "reggae":145, "kccrying":146, "kcdizzy":146, "kceek":146, "kcglare":146, "kclook":146, "kcsad":146, "kcsmug":146, "kctongue":146, "kcwink":146, "carveduh":147, "carvegrin":147, "carvescream":147, "carvesly":147, "carvesmile":147, "dracula":147, "grim2":147, "pknhide":147, "vampire":147, "sixeyes":148, "bat2":148, "blackcat":148, "blackwidow":148, "ghost2":148, "hockeymask":148, "plant":148, "bloodyknife":148, "scarecrow":148, "kdcheer":149, "kdcrazy":149, "kddead":149, "kdfit":149, "kdglare":149, "kdsad":149, "kdshocked":149, "kdsleepy":149, "kdsmile":149, "kdtired":149, "kdwoo":149, "bot2":150, "bot3":150, "bot4":150, "bot5":150, "bot6":150, "bot7":150, "bot8":150, "bot9":150, "manga1":151, "manga2":151, "manga3":151, "manga4":151, "manga5":151, "manga6":151, "manga7":151, "manga8":151, "manga9":151, "manga10":151, "manga11":151, "manga12":151, "manga13":151, "manga14":151, "manga15":151, "manga16":151, "manga17":151, "goldb":153, "bars":153, "bar":153, "goldstar":153, "smcry":154, "smgrin":154, "smlaugh":154, "smredface":154, "smsad":154, "smshocked":154, "smsleepy":154, "smtongue":154, "smmad":154, "smcool":154, "resurprised":155, "resmirk":155, "resleepy":155, "resad":155, "reredface":155, "relaugh":155, "reglare":155, "recry":155, "recool":155, "reangry":155, "renose":155, "reback":155, "sabiggrin":156, "saconfused":156, "sacry":156, "saglare":156, "saredface":156, "sasad":156, "sastraightface":156, "sasurprised":156, "satongue":156, "sawink":156, "spartayell":157, "getready":157, "helmet3":157, "soldier":157, "spants":157, "spartafight":157, "spartan":157, "spartan2":157, "truewar":157, "xerxes":157, "duh":158, "doh2":158, "calendar":160, "celebration":160, "champagne2":160, "champagneback":160, "clink2":160, "firework1":160, "firework2":160, "nyball":160, "nyhat":160, "nykiss":160, "nyparty":160, "sparkler2":160, "canangel":161, "canbounce":161, "cancontempt":161, "canfury":161, "canoo":161, "canshifty":161, "canthink":161, "cantwitch":161, "canum":161, "canun":161, "crosshair":164, "folder":164, "footprints":164, "headset":164, "keyhole":164, "keypad":164, "peeking":164, "radar":164, "spydrink":164, "spyeye":164, "spying":164, "spypaper":164, "spyrope":164, "kduckback":165, "kduck1":165, "kduck2":165, "kduck3":165, "kduck4":165, "kduck5":165, "kduck6":165, "kduck7":165, "kduck8":165, "kduck9":165, "kduck10":165, "kduck11":165, "kduck12":165, "heartfx":166, "heartfx2":166, "heartfx3":166, "anonmask":167, "beads":167, "brazilboom":167, "carniphant":167, "cjester":167, "cmask":167, "flowersquirt":167, "headdress":167, "kreu":167, "shakeit":167, "wannasamba":167, "yeayea":167, "cjester2":167, "cbird":167, "cangel":167, "action":169, "admission":169, "booth":169, "cameraman":169, "director":169, "drink2":169, "film":169, "filmroll":169, "popcorn":169, "pose":169, "tickets":169, "mangel":170, "mbat":170, "mbear":170, "mchick":170, "mdrip":170, "mfish":170, "mglare":170, "kat1":171, "kat2":171, "kat3":171, "kat4":171, "kat5":171, "kat6":171, "kat7":171, "kat8":171, "kat9":171, "kat10":171, "katback":171, "typing1":172, "ksheep1":173, "ksheep2":173, "ksheep3":173, "ksheep4":173, "ksheep5":173, "ksheep6":173, "ksheep7":173, "ksheep8":173, "ksheep9":173, "ksheep10":173, "ksheepback":173, "pulsefxback":174, "bbclap":175, "bbconfused":175, "bbcry":175, "bbfit":175, "bbglare":175, "bbhug":175, "bblaugh":175, "bboops":175, "bbpout":175, "bbwink":175, "bbback":175, "fzangel":177, "fzback":177, "fzbiggrin":177, "fzcool":177, "fzcrazy":177, "fzd":177, "fzdance":177, "fzsad":177, "fzstretch":177, "fztongue":177, "fztwirl":177, "spiralfx2":178, "crazyn":179, "nblood":179, "nbroken":179, "ndoc":179, "nlist":179, "nmask":179, "nne":179, "noxy":179, "nsurg":179, "megap":180, "volume":180, "tooloud":180, "canthear":180, "playbtn":180, "kbeeback":181, "kbeeclap":181, "kbeecry":181, "kbeed":181, "kbeedance":181, "kbeefedup":181, "kbeejoy":181, "kbeemad":181, "kbeepunch":181, "kbeexx":181, "kbeeyay":181, "vortexfx2":182, "ballchain":183, "bobby":183, "copstop":183, "cracker":183, "cuffs":183, "gavel":183, "handsair":183, "jailnumber":183, "mugshot":183, "prisoner":183, "dripclap":185, "dripdance":185, "dripeek":185, "dripfit":185, "dripglare":185, "driphehe":185, "driphello":185, "driphug":185, "driplaugh":185, "dripsad":185, "dripshocked":185, "driptired":185, "dripxd":185, "dripyell":185, "moustache1":186, "moustache2":186, "moustache3":186, "moustache4":186, "moustache5":186, "moustache6":186, "moustache7":186, "moustache8":186, "moustache9":186, "gifts":-3};
pss = "powers" + ",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" + ",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,christmas,count,stick,dx,tempmem,valentine,63" + ",blueman,party,irish,flashrank,easter,nopm,banish,circus,gkaoani,military,gline,bump,gkaliens,scifi,supporter,tempown,gcontrol,tickle,sea,silly,blastpro,flag,blastban,independence,blastde,summer,bad,rapid,horror,mint,blastkick,95" + ",winter,adventure,feast,single,link,shocker,fairy,namecolor,gkbear,angry,gscol,ugly,love,barge,gkkitty,fantasy,announce,hero,rankpool,spin,animal,music,gkpanda,unwell,events,zap,sins,outfit,wildwest,work,banpool,127" + ",beach,candy,gback,zodiac,flower,space,snakeban,stoneage,spaceban,dance,kpeng,nerd,matchban,school,silentm,punch,away,peace,kchick,carve,spooky,kdog,bot,manga,mazeban,gold,snowman,reindeer,santa,sparta,dunce,159," + "newyear,can,codeban,magicfx,spy,kduck,heartfx,carnival,topspin,movie,monster,kat,typing,ksheep,pulsefx,blobby,reverse,fuzzy,spiralfx,nursing,gsound,kbee,vortexfx,jail,zip,drip,moustache,whirlfx,doodlerace,189,190,191,192,193,194,195,196,197,198,199,200";
pssh = new Object();
tsmi = "";
smih = new Object();
Glitters = {"test1":1, "test2":2, "bounce":2, "led":1, "beams":1, "blood":1, "equ":1, "glitter":2, "lips":2, "up":2, "down":2, "walk":2, "snow":2, "xmas":1, "snowy":1};
f_Lobby = 2;
f_Group = 64;
f_MembersOnly = 128;
f_MembersOnly2 = 1048576;
f_Live = 2097152;
f_NoList = 512;
f_NoSmilies = 2048;
f_DefNoSound = 131072;
}
public static const sa:String=":),:-),smile,M,:d,biggrin,M,;),;-),wink,M,:o,:-o,eek,M,:p,tongue,M,(cool),8-),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";
public static const Puzzle:*={134:"snake", 136:"space", 140:"match", 152:"maze", 162:"code", 176:"reverse", 184:"zip"};
public static const Game:*={188:"doodlerace", 192:"matchrace", 194:"snakerace"};
public static const NotGroup:*={122:true, 124:true, 128:true, 132:true, 138:true, 142:true, 144:true, 146:true, 154:true, 158:true, 160:true, 164:true, 166:true, 168:true, 170:true, 172:true, 174:true, 178:true, 182:true, 186:true, 190:true, 196:true, 198:true, 200:true};
public static const f_Deleted:int=33554432;
public static var stab:String;
public static var StringTable:Array;
public static var usedomain:*="http://xat.com";
public static var chatdomain:*;
public static var n1:*="Baby,Booble,Bunker,Cuddle,Cutie,Doodle,Foofie,Gooble,Honey,Kissie,Lover,Lovey,Moofie,Mooglie,Moopie,Moopsie,Nookum,Poochie,Pookie,Schmoopie,Schnoogle,Schnookie,Schnookum,Smooch,Smoochie,Smoosh,Snoogle,Snoogy,Snookie,Snookum,Snuggy,Sweetie,Woogle,Woogy,Wookie,Wookum,Wuddle,Wuggy,Wunny,Bumble,Bump,Dip";
public static var name1:*;
public static var n2:*="Boo,Bunch,Bunny,Cake,Cakes,Cute,Darling,Dumpling,Dumplings,Face,Foof,Goo,Head,Kin,Kins,Lips,Love,Mush,Pie,Pook,Pums,Bumble,Bump,Dip";
public static var name2:*;
public static var p1:*="funky,boogie,cool,groove,divine,glory,swell,nifty,crazy,freak,wacky,quirky,weird,wild,strange,style,radical,urban,wicked";
public static var pool1:*;
public static var p2:*="town,zone,club,city,time,community,center,place,central,nation,state,district,jungle,land,realm,tribe,monkeys,junction,show,point";
public static var pool2:*;
public static 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";
public static var badwords:*;
public static 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,Ttth";
public static var kssh:*;
public static var kssa:Array;
public static var backs:*;
public static var backsR:*;
public static var effects:*;
public static var effectsR:*;
public static var colorc:*;
public static var topsh:*;
public static var pss:*;
public static var Pawns:*;
public static var pssh:*;
public static var pssa:Array;
public static var smi:*;
public static var smArray:Array;
public static var tsmi:*="";
public static var smih:*;
public static var smia:Array;
public static var Glitters:*;
public static var f_Lobby:Number=2;
public static var f_Group:Number=64;
public static var f_MembersOnly:*=128;
public static var f_MembersOnly2:*=1048576;
public static var f_Live:*=2097152;
public static var f_NoList:*=512;
public static var f_NoSmilies:Number=2048;
public static var f_DefNoSound:*=131072;
}
}
// class xdelete
package
{
import flash.display.*;
public dynamic class xdelete extends flash.display.MovieClip
{
public function xdelete()
{
super();
return;
}
}
}
// class xkiss
package
{
import com.adobe.serialization.json.*;
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.text.*;
import flash.utils.*;
import flash.xml.*;
public class xkiss extends flash.display.Sprite
{
public function xkiss()
{
super();
return;
}
static function CreateBuystuff(arg1:*, arg2:*=0, arg3:*=0, arg4:*="", arg5:*=""):*
{
var loc1:*;
loc1 = null;
var loc2:*;
loc2 = null;
nMarry = arg1;
nMode = arg2;
nSubMode = arg3;
nFront = arg4;
nMessage = arg5;
if (!(arg2 == 4) && !(arg2 == 0) || !(ob[nMode] == null) && ob[nMode][0] as Object)
{
CreateBuystuff2(nMarry, nMode, nSubMode);
}
else
{
(loc1 = new flash.net.URLRequest()).url = xconst.chatdomain + (arg2 != 4 ? "kiss.php" : "gift2.php");
loc1.method = flash.net.URLRequestMethod.GET;
(loc2 = new flash.net.URLLoader()).load(loc1);
loc2.addEventListener(flash.events.Event.COMPLETE, Handler);
}
return;
}
static function Handler(arg1:flash.events.Event):*
{
var loc1:*;
loc1 = flash.net.URLLoader(arg1.target);
ob[nMode] = com.adobe.serialization.json.JSON.decode(loc1.data);
if (ob[nMode][0] as Object)
{
CreateBuystuff2(nMarry, nMode, nSubMode);
}
return;
}
static function CreateBuystuff2(arg1:*, arg2:*=0, arg3:*=0):*
{
var loc3:*;
loc3 = undefined;
var loc6:*;
loc6 = undefined;
var loc10:*;
loc10 = undefined;
var loc11:*;
loc11 = undefined;
var loc12:*;
loc12 = undefined;
var loc13:*;
loc13 = undefined;
var loc14:*;
loc14 = undefined;
arg2 = xatlib.xInt(arg2);
var loc1:*;
loc1 = arg2 == 4 || arg2 == 0;
var loc2:*;
loc2 = new Date();
var loc4:*;
loc4 = undefined;
var loc5:*;
if ((loc5 = xatlib.FindUser(arg1)) >= 0)
{
loc4 = todo.Users[loc5].registered;
}
var loc15:*;
loc15 = arg2;
switch (loc15)
{
case 1:
{
loc6 = xconst.ST(221);
break;
}
case 2:
{
loc6 = xconst.ST(222);
break;
}
case 3:
{
loc6 = xconst.ST(223, loc4);
break;
}
case 4:
{
loc6 = "Gift to " + loc4;
break;
}
default:
{
loc6 = xconst.ST(224);
break;
}
}
var loc7:*;
loc7 = new Array(405, 365, 285, 305, 440);
var loc8:*;
loc8 = (480 - loc7[arg2]) / 2;
mcBuystuffbackground = new xDialog(main.dialogs, xatlib.NX(20), xatlib.NY(loc8), xatlib.NX(600), xatlib.NY(loc7[arg2]), loc6, undefined, 0, mcBuystuffbackground_close);
loc8 = loc8 + 30;
var loc9:*;
loc9 = mcBuystuffbackground.Dia;
if (arg2 != 3)
{
loc6 = xconst.ST(182);
}
else
{
loc6 = xconst.ST(181);
}
loc9.txt1 = new flash.display.MovieClip();
loc9.addChild(loc9.txt1);
xatlib.createTextNoWrap(loc9.txt1, xatlib.NX(12 + 24), xatlib.NY(loc8), xatlib.NX(560), xatlib.NY(32), loc6, 2105376, 0, 100, 0, 18, "left", 1);
if (arg2 == 4)
{
loc8 = loc8 + 35;
xatlib.createTextNoWrap(loc9.txt1, xatlib.NX(12 + 24), xatlib.NY(loc8), xatlib.NX(100), xatlib.NY(32), "Front", 2105376, 0, 100, 0, xatlib.NX(20), "left", 1);
Frontfldbackground = xatlib.AddBackground(loc9, xatlib.NX(120 + 24), xatlib.NY(loc8), xatlib.NX(290), xatlib.NY(32));
Frontfld = xatlib.AddTextField(Frontfldbackground, 0, xatlib.NY(6), xatlib.NX(290), xatlib.NY(32));
Frontfld.type = flash.text.TextFieldType.INPUT;
Frontfld.maxChars = 40;
Frontfld.addEventListener(flash.events.Event.CHANGE, xatlib.RemoveCR);
Frontfld.text = nFront;
Private = xatlib.AttachMovie(loc9.txt1, "checkbox");
Private.x = xatlib.NX(300 + 120 + 24);
Private.y = xatlib.NY(loc8 + 9);
Private.xitem.tick.visible = false;
Private.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, xatlib.OnCheck);
xatlib.createTextNoWrap(loc9.txt1, xatlib.NX(300 + 133 + 24), xatlib.NY(loc8 + 10), xatlib.NX(200), xatlib.NY(10), "Private message", 2105376, 0, 100, 0, 18, "left", 1);
}
loc8 = loc8 + 35;
xatlib.createTextNoWrap(loc9.txt1, xatlib.NX(12 + 24), xatlib.NY(loc8), xatlib.NX(100), xatlib.NY(32), xconst.ST(183), 2105376, 0, 100, 0, xatlib.NX(20), "left", 1);
Messfldbackground = xatlib.AddBackground(loc9, xatlib.NX(120 + 24), xatlib.NY(loc8), xatlib.NX(460), xatlib.NY(32));
Messfld = xatlib.AddTextField(Messfldbackground, 0, xatlib.NY(6), xatlib.NX(460), xatlib.NY(32));
Messfld.type = flash.text.TextFieldType.INPUT;
Messfld.maxChars = 140;
Messfld.text = nMessage;
Messfld.addEventListener(flash.events.Event.CHANGE, xatlib.RemoveCR);
loc8 = loc8 + 35;
xatlib.createTextNoWrap(loc9.txt1, xatlib.NX(12 + 24), xatlib.NY(loc8), xatlib.NX(100), xatlib.NY(32), xconst.ST(184), 2105376, 0, 100, 0, xatlib.NX(20), "left", 1);
PassFieldbackground = xatlib.AddBackground(loc9, xatlib.NX(120 + 24), xatlib.NY(loc8), xatlib.NX(460), xatlib.NY(32));
PassField = xatlib.AddTextField(PassFieldbackground, 0, xatlib.NY(6), xatlib.NX(460), xatlib.NY(32));
PassField.type = flash.text.TextFieldType.INPUT;
PassField.displayAsPassword = true;
PassField.addEventListener(flash.events.Event.CHANGE, xatlib.RemoveCR);
if (loc1)
{
loc8 = loc8 + 45;
loc10 = 42;
loc11 = xatlib.c_bl + xatlib.c_br;
loc3 = 0;
while (loc3 < ob[nMode].length)
{
if (ob[nMode][loc3][0].charAt(0) == "@" || arg2 == 0)
{
if (loc9.cat == null)
{
loc9.cat = new Object();
}
loc9.cat[loc3] = new xBut(loc9, xatlib.NX(loc10), xatlib.NY(loc8), xatlib.NX(135), xatlib.NY(30), arg2 != 0 ? ob[nMode][loc3][0].substr(1) : ob[nMode][loc3][0], catPress, loc11);
loc9.cat[loc3].nSubMode = loc3;
loc10 = loc10 + 137;
}
loc3 = (loc3 + 1);
}
loc8 = loc8 - 10;
}
loc8 = loc8 + 50;
loc9.Kiss = new Array();
if (loc1)
{
loc8 = loc8 - 10;
loc12 = xatlib.AddBackground(loc9, xatlib.NX(34), xatlib.NY(loc8), xatlib.NX(570), xatlib.NY(180));
loc8 = loc8 + 10;
}
loc15 = arg2;
switch (loc15)
{
case 0:
case 4:
{
loc3 = 0;
while (loc3 < 2)
{
if (!ob[nMode][nSubMode][(loc3 + 1)])
{
break;
}
gssa = ob[nMode][nSubMode][(loc3 + 1)].split(",");
loc8 = loc8 + AddKisses(ob, 2, 7, loc8, loc9, gssa[0], gssa[1], arg2 != 4 ? 0 : 5, arg1);
loc3 = (loc3 + 1);
}
break;
}
case 1:
{
loc8 = (loc8 = loc8 + AddKisses(null, 0, 2, loc8, loc9, "Marry", 200, new Array(3, 3), arg1)) + AddKisses(null, 2, 1, loc8, loc9, "Best Friend", 200, new Array(4, 0), arg1);
break;
}
case 2:
{
loc8 = loc8 + AddKisses(null, 3, 2, loc8, loc9, xconst.ST(150), 0, 2);
break;
}
case 3:
{
loc8 = loc8 + 10;
xatlib.createTextNoWrap(loc9.txt1, xatlib.NX(12 + 24), xatlib.NY(loc8), xatlib.NX(210), xatlib.NY(32), xconst.ST(202, loc4), 2105376, 0, 100, 0, xatlib.NX(16), "left", 1);
xatlib.createTextNoWrap(loc9.txt1, xatlib.NX(12 + 24 + 230), xatlib.NY(loc8), xatlib.NX(60), xatlib.NY(32), xconst.ST(205) + ":", 2105376, 0, 100, 0, xatlib.NX(16), "left", 1);
tXatsbackground = xatlib.AddBackground(loc9, xatlib.NX(12 + 24 + 290), xatlib.NY(loc8), xatlib.NX(50), xatlib.NY(32));
tXats = xatlib.AddTextField(tXatsbackground, 0, xatlib.NY(6), xatlib.NX(50), xatlib.NY(32));
tXats.type = flash.text.TextFieldType.INPUT;
tXats.defaultTextFormat = main.fmt;
tXats.addEventListener(flash.events.Event.CHANGE, xatlib.RemoveCR);
xatlib.createTextNoWrap(loc9.txt1, xatlib.NX(12 + 24 + 230 + 120), xatlib.NY(loc8), xatlib.NX(60), xatlib.NY(32), xconst.ST(208) + ":", 2105376, 0, 100, 0, xatlib.NX(16), "left", 1);
tTimebackground = xatlib.AddBackground(loc9, xatlib.NX(12 + 24 + 290 + 120), xatlib.NY(loc8), xatlib.NX(50), xatlib.NY(32));
tTime = xatlib.AddTextField(tTimebackground, 0, xatlib.NY(6), xatlib.NX(50), xatlib.NY(32));
tTime.type = flash.text.TextFieldType.INPUT;
tTime.defaultTextFormat = main.fmt;
tTime.addEventListener(flash.events.Event.CHANGE, xatlib.RemoveCR);
loc9.mcgo = new xBut(loc9, xatlib.NX(504), xatlib.NY(loc8), xatlib.NX(100), xatlib.NY(32), xconst.ST(149), Transfer_onRelease);
loc9.mcgo.But.b = arg1;
loc8 = loc8 + 50;
loc9.mctrade = new xBut(loc9, xatlib.NX(40), xatlib.NY(loc8), xatlib.NX(100), xatlib.NY(32), "Trade", Trade_onRelease);
xatlib.createTextNoWrap(loc9.txt1, xatlib.NX(152), xatlib.NY(loc8), xatlib.NX(448), xatlib.NY(32), "Open the trading engine for easier and safer trading.", 2105376, 0, 100, 0, 24, "left", 1);
loc8 = loc8 + 50;
break;
}
}
loc8 = loc8 + 9;
if (todo.w_VIP && network.YC)
{
if ((loc13 = xatlib.xInt(todo.w_d1) - network.YC) < 0)
{
loc13 = 0;
}
loc13 = xatlib.xInt(loc13 / (24 * 3600) + 0.3);
loc9.days = xatlib.AttachMovie(loc9, "star", {"x":xatlib.NX(12 + 24), "y":xatlib.NY(loc8), "scaleX":xatlib.SX(), "scaleY":xatlib.SY()});
xatlib.createTextNoWrap(loc9.days, 30, -10, 130, 50, xconst.ST(204, loc13), 2105376, 0, 100, 0, 26, "center", 1);
}
loc9.mcok = new xBut(loc9, xatlib.NX(240), xatlib.NY(loc8), xatlib.NX(160), xatlib.NY(30), xconst.ST(244), K_Can_onRelease);
if (todo.w_coins)
{
loc9.coins = xatlib.AttachMovie(loc9, "coins", {"x":xatlib.NX(440), "y":xatlib.NY(loc8), "scaleX":xatlib.SX(), "scaleY":xatlib.SY()});
xatlib.createTextNoWrap(loc9.coins, 30, -10, 130, 50, todo.w_coins + " " + xconst.ST(205), 2105376, 0, 100, 0, 26, "center", 1);
loc9.coins.onRelease = BuyRelease;
}
else
{
CoinB = new xBut(loc9, xatlib.NX(440), xatlib.NY(loc8), xatlib.NX(160), xatlib.NY(30), " " + xconst.ST(206), BuyRelease);
(loc14 = xatlib.AttachMovie(CoinB, "coins")).scaleX = xatlib.SX(0.8);
loc14.scaleY = xatlib.SY(0.8);
loc14.x = xatlib.NX(10);
loc14.y = xatlib.NY(5);
}
return;
}
static function Transfer_onRelease(arg1:flash.events.MouseEvent):*
{
BlowKiss({"b":arg1.currentTarget.b, "n":"T", "Type":3});
return;
}
static function Trade_onRelease(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = undefined;
if (global.xc & 2048)
{
main.mcLoad.OpenByN(30008);
}
else
{
loc1 = xatlib.xatlinks(xatlib.PageUrl(30008));
xatlib.UrlPopup(xconst.ST(8), loc1, xconst.ST(17));
}
return;
}
static function BuyRelease(arg1:flash.events.MouseEvent):*
{
xatlib.Register_onRelease(1);
return;
}
static function AddKisses(arg1:*, arg2:*, arg3:*, arg4:*, arg5:*, arg6:*, arg7:*, arg8:*=0, arg9:*, arg10:*=0):*
{
var loc2:*;
loc2 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
var loc9:*;
loc9 = undefined;
var loc1:*;
loc1 = "ks";
if (arg7 != 0)
{
arg5.coins = xatlib.AttachMovie(arg5, "coins", {"x":xatlib.NX(86), "y":xatlib.NY(arg4 + 30), "scaleX":xatlib.SY(0.8), "scaleY":xatlib.SY(0.8)});
}
xatlib.createTextNoWrap(arg5, xatlib.NX(36), xatlib.NY(arg4 + 3), xatlib.NX(90), xatlib.NY(52), arg6 + "\n" + (arg7 == 0 ? "" : arg7), 2105376, 0, 100, 0, 18, "left", 1);
var loc3:*;
loc3 = arg2;
while (loc3 < xconst.kssa.length)
{
if (arg3-- == 0)
{
break;
}
loc4 = new flash.display.MovieClip();
arg5.Kiss.push(loc4);
arg5.addChild(loc4);
if (arg8 == 5 || arg8 == 0)
{
loc4.n = gssa[loc3];
loc4.gt = arg6;
if (!loc4.n)
{
break;
}
if (arg8 == 5)
{
loc1 = "gift";
}
}
else
{
loc4.n = xconst.kssa[loc3];
}
if (!loc4.n)
{
break;
}
loc4.c = arg7;
loc4.b = arg9;
loc4.u = todo.w_userno;
if (arg8 as Array)
{
loc4.Type = arg8[(loc3 - arg2)];
}
else
{
loc4.Type = arg8;
}
loc4.scaleX = xatlib.SX();
loc4.scaleY = xatlib.SY();
loc5 = undefined;
loc2 = "t" + loc4.n;
if (arg8 == 5)
{
loc5 = GiftLoaded;
loc2 = loc4.n;
loc4.visible = false;
}
if (loc4.n.charAt(0) != "@")
{
xatlib.LoadMovie(loc4, xatlib.SmilieUrl(loc2, loc1), loc5);
}
else
{
(loc7 = new xBut(loc4, 0, 0, 60, 75, "", KissPress)).n = loc4.n;
xatlib.createTextNoWrap(loc4, -10, 60, 80, 20, loc4.n.substr(1), 16777215, 0, 100, 0, 10, "center", 1);
loc8 = 0;
while (loc8 < arg1[nMode].length)
{
if (arg1[nMode][loc8][0] == loc4.n.substr(1))
{
loc2 = (loc9 = arg1[nMode][loc8][1].split(","))[2];
xatlib.LoadMovie(loc4, xatlib.SmilieUrl(loc2, loc1), GiftLoaded2);
}
loc8 = (loc8 + 1);
}
}
loc2 = xatlib.NX(95);
if (arg8 == 5)
{
loc2 = xatlib.NX(66);
}
loc4.x = xatlib.NX(137) + loc2 * (loc3 - arg2);
loc4.y = xatlib.NY(arg4);
loc4.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, KissPress);
if (arg8 == 5 && !(loc4.n.charAt(0) == "@"))
{
loc4.addEventListener(flash.events.MouseEvent.ROLL_OVER, KissOver);
loc4.addEventListener(flash.events.MouseEvent.ROLL_OUT, KissOut);
}
loc6 = loc4.n.charAt(0) == "@" ? "" : xconst.ST(207) + " ";
var loc10:*;
loc10 = arg8;
switch (loc10)
{
case 2:
{
loc6 = loc6 + xconst.ST(150) + ":";
break;
}
case 3:
{
loc6 = loc6 + xconst.ST(209);
break;
}
case 4:
{
loc6 = loc6 + xconst.ST(210);
break;
}
case 5:
{
loc6 = loc6 + arg6 + " ";
break;
}
}
loc6 = loc6 + loc4.n;
loc4.hint = {"Hint":loc6, "mc":loc4};
loc4.addEventListener(flash.events.MouseEvent.ROLL_OVER, main.hint.EasyHint);
loc4.addEventListener(flash.events.MouseEvent.ROLL_OUT, main.hint.HintOff);
loc3 = (loc3 + 1);
}
return 85;
}
static function KissOver(arg1:*):*
{
t = new Object();
t["g"] = arg1.currentTarget.n;
t["s"] = Frontfld.text;
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 9, "preview", t);
}
return;
}
static function KissOut(arg1:*):*
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 9, "preview", null);
}
return;
}
static function GiftLoaded(arg1:*):*
{
var loc1:*;
loc1 = arg1.currentTarget.content;
if (!loc1)
{
return;
}
if (loc1.width > loc1.height)
{
var loc2:*;
loc1.scaleY = loc2 = 60 / loc1.width;
loc1.scaleX = loc2;
loc1.y = (60 - loc1.height) / 2;
}
else
{
loc1.scaleY = loc2 = 60 / loc1.height;
loc1.scaleX = loc2;
loc1.x = (60 - loc1.width) / 2;
}
loc1.parent.parent.visible = true;
return;
}
static function GiftLoaded2(arg1:*):*
{
var loc1:*;
loc1 = arg1.currentTarget.content;
if (!loc1)
{
return;
}
loc1.y = 5;
if (loc1.width > loc1.height)
{
var loc2:*;
loc1.scaleY = loc2 = 50 / loc1.width;
loc1.scaleX = loc2;
loc1.y = loc1.y + (50 - loc1.height) / 2;
}
else
{
loc1.scaleY = loc2 = 50 / loc1.height;
loc1.scaleX = loc2;
loc1.x = 5 + (50 - loc1.width) / 2;
}
loc1.parent.parent.visible = true;
return;
}
static function KissPress(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = undefined;
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
main.hint.HintOff();
if (todo.w_coins < arg1.currentTarget.c)
{
xatlib.Register_onRelease(1);
}
else
{
if (arg1.currentTarget.n.charAt(0) != "@")
{
BlowKiss(arg1.currentTarget);
}
else
{
loc1 = 0;
loc2 = 0;
while (loc2 < ob[nMode].length)
{
if (ob[nMode][loc2][0] == arg1.currentTarget.n.substr(1))
{
(loc3 = new Object()).Marry = nMarry;
loc3.Mode = nMode;
loc3.SubMode = loc2;
loc3.Front = Frontfld.text;
loc3.Message = Messfld.text;
main.openDialog(3, loc3);
break;
}
loc2 = (loc2 + 1);
}
}
}
return;
}
static function mcBuystuffbackground_close():*
{
main.hint.HintOff();
mcBuystuffbackground.Delete();
main.closeDialog();
return;
}
static function catPress(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = undefined;
if (nSubMode != arg1.target.nSubMode)
{
loc1 = new Object();
loc1.Marry = nMarry;
loc1.Mode = nMode;
loc1.SubMode = arg1.target.nSubMode;
loc1.Front = Frontfld ? Frontfld.text : "";
loc1.Message = Messfld ? Messfld.text : "";
main.openDialog(3, loc1);
}
return;
}
static function K_Can_onRelease(arg1:flash.events.MouseEvent):*
{
mcBuystuffbackground_close();
return;
}
static function BlowKiss(arg1:*):*
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = null;
var loc1:*;
loc1 = BadKiss(arg1.n, arg1.u);
if (loc1)
{
loc4 = "Sorry. You don\'t have the power";
if (loc1 == 2)
{
loc4 = "Sorry. Group power is not assigned";
}
xatlib.GeneralMessage("", loc4);
return;
}
if (arg1.Type == 0 && PassField.text.length == 0)
{
Kiss({"t":Messfld.text, "u":todo.w_userno, "k":arg1.n}, true);
return;
}
var loc2:*;
loc2 = new flash.xml.XMLDocument();
(loc3 = loc2.createElement("a")).attributes.p = PassField.text;
loc3.attributes.m = Messfld.text;
loc3.attributes.k = arg1.n;
if (arg1.n == "T")
{
loc3.attributes.x = xatlib.xInt(tXats.text);
loc3.attributes.s = xatlib.xInt(tTime.text);
if (loc3.attributes.x < 0)
{
return;
}
if (loc3.attributes.s < 0)
{
return;
}
if (loc3.attributes.s == 0 && loc3.attributes.x < 10)
{
return;
}
if (loc3.attributes.s == 0 && loc3.attributes.x == 0)
{
return;
}
}
if (arg1.Type != 2)
{
if (arg1.Type != 3)
{
if (arg1.Type == 4)
{
loc3.attributes.f = arg1.b;
}
}
else
{
loc3.attributes.b = arg1.b;
}
}
else
{
loc3.attributes.b = 1;
}
if (arg1.Type != 5)
{
loc2.appendChild(loc3);
network.socket.send(xatlib.XMLOrder(loc2, new Array("f", "b", "s", "x", "k", "m", "p")));
}
else
{
(loc5 = new flash.net.URLVariables()).g = arg1.n;
loc5.c = arg1.c;
loc5.b = arg1.b;
loc5.m = Messfld.text;
loc5.s = Frontfld.text;
loc5.u = todo.w_userno;
loc5.r = todo.w_useroom;
loc5.w = xatlib.GetNameNumber(todo.w_userno) + " has bought " + xatlib.GetNameNumber(arg1.b) + " a " + arg1.gt;
Bride = arg1.b;
loc5.t = todo.w_dt;
loc5.p = PassField.text;
loc5.f = 1;
if (Private.xitem.tick.visible)
{
loc5.f = loc5.f & !1;
}
xatlib.LoadVariables(xconst.chatdomain + "buygifts.php", GiftCallback, loc5, 1);
}
xatlib.GeneralMessage("", xconst.ST(211));
return;
}
private static function GiftCallback(arg1:*):*
{
if (arg1.currentTarget.data == "OK")
{
xatlib.GeneralMessage();
xmessage.OpenGifts(Bride);
}
else
{
xatlib.GeneralMessage("", arg1.currentTarget.data);
}
return;
}
private static function BadKiss(arg1:*, arg2:*):*
{
var loc1:*;
loc1 = PowerKiss[arg1];
if (loc1 > 0)
{
return todo.HasPower(xatlib.FindUser(arg2), loc1) ? 0 : 1;
}
if (loc1 < 0)
{
return todo.HasPowerA(todo.w_GroupPowers, -loc1) ? 0 : 2;
}
return 0;
}
public static function Kiss(arg1:*, arg2:*=false):*
{
var loc1:*;
loc1 = undefined;
if (!arg2)
{
main.closeDialog();
xatlib.GeneralMessage();
CloseKiss();
}
KissMc = new flash.display.MovieClip();
main.kiss_layer.addChild(KissMc);
if (BadKiss(arg1.k, arg1.u))
{
return;
}
if (arg1.k == "T")
{
loc1 = arg1.b;
if (loc1 && (todo.w_userno == loc1 || todo.w_userno == arg1.u))
{
xatlib.GeneralMessage("", xconst.ST(162, arg1.x, arg1.s, xatlib.IdToRegName(arg1.u), xatlib.IdToRegName(loc1)) + arg1.t);
network.NetworkLogin(todo.w_userno, 0);
todo.WV2 = true;
}
return;
}
mc3o = arg1;
LoadKiss();
AddName(todo.Users[xatlib.FindUser(xatlib.xInt(mc3o.u))].n);
loc1 = mc3o.f;
if (!loc1)
{
loc1 = mc3o.b;
}
if (!arg2 && (todo.w_userno == mc3o.u || loc1 && todo.w_userno == loc1))
{
network.NetworkLogin(todo.w_userno, 0);
todo.WV2 = true;
}
KissTime = -1;
KissMc.addEventListener(flash.events.Event.ENTER_FRAME, KissTick);
return;
}
static function KissTick(arg1:*):*
{
var loc1:*;
var loc2:*;
KissTime--;
if (KissTime == -2 * 12)
{
AddMessage();
}
if (KissTime == -10 * 12)
{
KissMc.removeChild(Name);
Name = undefined;
}
if (KissTime < -30 * 12)
{
CloseKiss();
}
return;
}
static function AddMessage():*
{
var loc1:*;
loc1 = undefined;
if (mc3o != undefined)
{
loc1 = mc3o.t.split("#");
todo.Message.push({"n":0, "t":" " + mc3o.k + ": (" + mc3o.k + ") " + loc1[0], "u":mc3o.u, "s":0, "d":0});
todo.DoUpdateMessages = true;
todo.ScrollDown = true;
mc3o = undefined;
}
return;
}
private static function CloseKiss(arg1:*=0):*
{
if (mc3o != undefined)
{
AddMessage();
}
if (KissMc)
{
try
{
main.kiss_layer.removeChild(KissMc);
if (Name)
{
KissMc.removeChild(Name);
}
KissMc.removeEventListener(flash.events.Event.ENTER_FRAME, KissTick);
}
catch (e:*)
{
};
}
if (mLoader2)
{
mLoader2.unloadAndStop(true);
}
var loc1:*;
mLoader2 = loc1 = undefined;
KissMc = loc1 = loc1;
mc3o = loc1 = loc1;
Name = loc1;
return;
}
static function AddName(arg1:*):*
{
if (arg1 == undefined || arg1.length == 0)
{
return;
}
Name = new flash.display.Sprite();
KissMc.addChild(Name);
var loc1:*;
loc1 = xatlib.ButtonCurve2(0, todo.StageWidth, 25, 0, 1, 16777215, 1, 16777215, 0.5);
Name.addChild(loc1);
loc1.y = todo.StageHeight - 28;
var loc2:*;
loc2 = new flash.display.MovieClip();
Name.addChild(loc2);
xmessage.AddMessageToMc(loc2, 0, arg1, 0, 999, todo.StageHeight - 28, 0);
var loc3:*;
if ((loc3 = xatlib.xInt((todo.StageWidth - xmessage.xPos) / 2)) < 0)
{
loc3 = 0;
}
loc2.x = loc3;
var loc4:*;
loc4 = new close();
loc1.addChild(loc4);
loc4.x = todo.StageWidth - 20;
loc4.y = 5;
loc4.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, CloseKiss);
return;
}
static function LoadAs2Kiss():*
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = null;
mc3o.SV = global.sv;
mc3o.SF = 2 + 4;
var loc1:*;
loc1 = mc3o.t.split("#");
loc1.shift();
xmessage.PowSm(mc3o, loc1, 0, todo.ALL_POWERS);
if (todo.w_sound & 1)
{
mc3o.Vol = todo.w_Vol[1];
}
mc3o.WW = todo.StageWidth;
mc3o.HH = todo.StageHeight;
mLoader2 = new flash.display.Loader();
KissMc.addChild(mLoader2);
var loc2:*;
loc2 = new flash.net.URLVariables();
var loc5:*;
loc5 = 0;
var loc6:*;
loc6 = mc3o;
for (loc3 in loc6)
{
loc2[loc3] = mc3o[loc3];
}
(loc4 = new flash.net.URLRequest()).url = "http://xat.com/images/ks/kshim.swf";
loc4.method = flash.net.URLRequestMethod.GET;
loc4.data = loc2;
mLoader2.load(loc4);
mLoader2.contentLoaderInfo.addEventListener(flash.events.IOErrorEvent.IO_ERROR, xatlib.catchIOError);
return;
}
static function LoadWink(arg1:*):*
{
if (todo.Macros["blast"] == "off")
{
return;
}
if (Wink)
{
return;
}
WinkOpts = {};
WinkTO = 20;
var loc1:*;
loc1 = xatlib.xInt(arg1.attributes.d);
var loc2:*;
loc2 = arg1.attributes.t;
var loc3:*;
loc3 = xatlib.xInt(arg1.attributes.v);
var loc4:*;
loc4 = 1;
while (loc3 > 1)
{
loc3 = loc3 / 2;
++loc4;
}
loc3 = xatlib.xInt(arg1.attributes.r) % loc4;
if (todo.Macros[loc2])
{
loc3 = (xatlib.xInt(todo.Macros[loc2]) - 1);
}
if (loc3 >= loc4)
{
loc3 = (loc4 - 1);
}
if (loc3 > 3)
{
loc3 = 3;
}
loc2 = loc2 + String(loc3 + 1);
var loc5:*;
loc5 = arg1.attributes.o;
var loc6:*;
if ((loc6 = xatlib.FindUser(loc1)) < 0)
{
return;
}
WinkOpts.WW = todo.StageWidth;
WinkOpts.HH = todo.StageHeight;
WinkOpts.Done = WinkDone;
WinkOpts.Cols = [xatlib.RankColor(loc6), xatlib.RankColor(loc5)];
WinkOpts.Text = [xatlib.StripSmilies(todo.Users[loc6].n)];
Wink = xatlib.LoadMovie(main.wink_layer, xatlib.SmilieUrl(loc2, "blast"), WinkLoaded);
return;
}
private static function WinkLoaded(arg1:*):*
{
var loc1:*;
loc1 = arg1.currentTarget.loader.contentLoaderInfo.content;
loc1.Go(WinkOpts);
return;
}
static function WinkDone():*
{
if (!Wink)
{
return;
}
main.wink_layer.removeChild(Wink);
Wink = undefined;
return;
}
static function LoadKiss():*
{
KissOpts = {};
KissOpts.WW = todo.StageWidth;
KissOpts.HH = todo.StageHeight;
KissOpts.Done = CloseKiss;
KissOpts.Message = mc3o.t;
KissOpts.SmInfo = new Object();
KissOpts.SmInfo.SV = global.sv;
KissOpts.SmInfo.SF = 2 + 4;
KissOpts.UserNo = mc3o.u;
var loc1:*;
loc1 = mc3o.t.split("#");
loc1.shift();
xmessage.PowSm(KissOpts.SmInfo, loc1, 0, todo.ALL_POWERS);
if (todo.w_sound & 1)
{
KissOpts.Vol = todo.w_Vol[1];
}
KissOpts.Cols = [xatlib.RankColor(xatlib.FindUser(mc3o.u)), xatlib.RankColor(xatlib.FindUser(mc3o.b))];
mLoader2 = xatlib.LoadMovie(KissMc, xatlib.SmilieUrl(mc3o.k, "ks"), KissLoaded);
return;
}
private static function KissLoaded(arg1:*):*
{
var loc1:*;
loc1 = arg1.currentTarget.loader.contentLoaderInfo.content;
loc1.Go(KissOpts);
return;
}
static function LoadPuzzle(arg1:int):*
{
ClosePuzzle(0);
PuzzleOpts = {};
PuzzleOpts.u = todo.w_userno;
PuzzleOpts.r = todo.w_useroom;
PuzzleOpts.p = arg1;
PuzzleOpts.t = network.GetGagTime(todo.w_useroom);
PuzzleOpts.HH = todo.StageHeight;
PuzzleOpts.WW = todo.StageWidth;
PuzzleOpts.YC = xatlib.SockTime();
PuzzleOpts.Done = ClosePuzzle;
PuzzleOpts.Send = chat.onMsg2;
if (todo.w_sound & 1)
{
PuzzleOpts.Vol = todo.w_Vol[1];
}
PuzzleLoader = xatlib.LoadMovie(main.puzzle_layer, "http://www.xatech.com/web_gear/flash/" + 50000 + PuzzleOpts.p + ".swf?" + global.gb, PuzzleLoaded);
main.puzzle_layer.mouseEnabled = false;
PuzzleLoader.mouseEnabled = false;
network.UpdateChannel(0, todo.w_userno);
return;
}
private static function PuzzleLoaded(arg1:*):*
{
var loc1:*;
loc1 = arg1.currentTarget.loader.contentLoaderInfo.content;
loc1.Go(PuzzleOpts);
return;
}
static function ClosePuzzle(arg1:*=0):*
{
if (PuzzleLoader)
{
network.UpdateChannel(0, todo.w_userno);
main.puzzle_layer.removeChild(PuzzleLoader);
PuzzleLoader.unloadAndStop(true);
}
PuzzleLoader = undefined;
return;
}
{
ob = new Array();
nFront = "";
nMessage = "";
}
private static const PowerKiss:*={"Snow":56, "Animal":-116, "WildHorses":124, "SteamTrain":124, "Rocket":133, "Stoneage":135};
static var mcBuystuffbackground:*;
static var Frontfldbackground:*;
static var Messfldbackground:*;
static var PassField:*;
static var PassFieldbackground:*;
static var Frontfld:*;
static var Messfld:*;
static var tXatsbackground:*;
static var tXats:*;
static var tTime:*;
static var tTimebackground:*;
static var CoinB:*;
static var mc3o:*;
static var KissTime:*;
static var Name:*;
static var KissMc:*;
static var mLoader2:*;
static var KissOpts:*;
private static var PuzzleOpts:*;
private static var PuzzleLoader:*;
static var Wink:*;
static var WinkOpts:*;
static var WinkTO:int;
static var Bride:int;
static var Private:*;
static var nMarry:*;
static var nMode:*;
static var nSubMode:*;
static var ob:*;
static var gssa:*;
static var t:*;
static var nFront:*="";
static var nMessage:*="";
}
}
// class xmessage
package
{
import flash.display.*;
import flash.events.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public class xmessage extends flash.display.Sprite
{
public function xmessage()
{
super();
return;
}
public static function UpdateMessages(arg1:Boolean, arg2:Boolean):*
{
var All:Boolean;
var Avatar:*;
var Bot:*;
var Bot2:*;
var BotMargF:*;
var Cnt:*;
var DeleteOk:Number;
var HitTop:*;
var M:*;
var MaxInView:*;
var MessageLength:*;
var Scrolling:Boolean;
var TabIsPrivate:*;
var TabUser:*;
var UserName:String;
var V:*;
var n:*;
var s:*;
var t:*;
var userid:*;
var v:*;
var v2:*;
var yc3:*;
var yinc:*;
var loc1:*;
Avatar = undefined;
UserName = null;
DeleteOk = NaN;
MessageLength = undefined;
TabIsPrivate = undefined;
TabUser = undefined;
MaxInView = undefined;
t = undefined;
Bot = undefined;
BotMargF = undefined;
Bot2 = undefined;
v = undefined;
Cnt = undefined;
HitTop = undefined;
n = undefined;
M = undefined;
V = undefined;
v2 = undefined;
userid = undefined;
yinc = undefined;
s = undefined;
yc3 = undefined;
All = arg1;
Scrolling = arg2;
try
{
if (Scrolling == undefined)
{
Scrolling = false;
}
MessageLength = todo.Message.length;
TabIsPrivate = main.ctabsmc.TabIsPrivate();
TabUser = main.ctabsmc.TabUser();
if (!Scrolling || !p)
{
p = new Array();
NoOfM = 0;
v = 0;
while (v < MessageLength)
{
M = todo.Message[v];
if (Scrolling == false)
{
M.New = false;
}
if (M.New == false && !(M.ignored == true))
{
if (TabIsPrivate)
{
if ((TabUser == M.u || todo.w_userno == M.u) && M.d == TabUser)
{
var loc2:*;
var loc3:*;
NoOfM++;
p.push(v);
}
}
else
{
if ((M.s & 2) == 0)
{
NoOfM++;
p.push(v);
}
}
}
if (M.mc)
{
M.mc.visible = false;
}
v = (v + 1);
}
}
else
{
t = p.length;
v = 0;
while (v < t)
{
if (todo.Message[p[v]].mc)
{
todo.Message[p[v]].mc.visible = false;
}
v = (v + 1);
}
}
MaxInView = Math.round(todo.tph / 35) - 2;
if (MaxInView < 0)
{
MaxInView = 0;
}
t = (NoOfM - MaxInView) * 100;
if (t <= 0)
{
t = 100;
}
main.mscrollmc.Scr_size = t;
if (todo.ScrollDown && Scrolling == false)
{
main.mscrollmc.position = main.mscrollmc.Scr_size;
todo.ScrollDown = false;
}
if (mspos == undefined || !Scrolling)
{
mspos = main.mscrollmc.Scr_position;
todo.DoUpdateMessages = false;
}
else
{
mspos = (mspos + main.mscrollmc.Scr_position) / 2;
V = Math.abs(mspos - main.mscrollmc.Scr_position);
if (V < 10)
{
mspos = main.mscrollmc.Scr_position;
todo.DoUpdateMessages = false;
}
SkipSmilies = Scrolling;
}
Bot = MaxInView - 0.001 + (NoOfM - MaxInView) * mspos / main.mscrollmc.Scr_size;
if (Bot < 0)
{
Bot = 0;
}
if (Bot >= NoOfM - 0.001)
{
Bot = NoOfM - 0.001;
}
BotMargF = Bot - int(Bot);
Bot2 = int(Bot);
v = Bot2;
yc2 = 0;
Cnt = NoOfM;
HitTop = 99;
while (Cnt > 0)
{
Cnt = (Cnt - 1);
v2 = v;
v = (v - 1);
if (v2 < 0)
{
v2 = int(Bot) - v2;
}
if (p[v2] == undefined)
{
continue;
}
M = todo.Message[p[v2]];
if (!M)
{
continue;
}
userid = xatlib.FindUser(M.u);
if (userid == -1 && !(M.u == 0))
{
DeleteOneMessageMc(p[v2]);
p[v2] = undefined;
continue;
}
DeleteNumber = xatlib.xInt(M.n);
if (v < -1)
{
Bot2 = (Bot2 + 1);
}
if (M.mc == undefined)
{
if (M.u != 0)
{
Avatar = xatlib.CleanAv(todo.Users[userid].a);
UserName = todo.Users[userid].n;
if (UserName.substr(0, 1) == "$")
{
UserName = UserName.substr(1);
}
s = "";
if (todo.Users[userid].u != 0)
{
s = "";
}
UserName = s + " " + s + UserName;
if (todo.Users[userid].sn && todo.Users[userid].sn["fb"])
{
UserName = UserName + " ";
}
if (todo.Users[userid].h && todo.Users[userid].h.length > 6)
{
UserName = UserName + " ";
}
if ((todo.w_owner || todo.w_moderator) && !(M.n == 0) && !(M.n == 1) && !M.p)
{
UserName = UserName + " ";
}
DeleteOk = 0;
}
else
{
Avatar = -1;
UserName = xconst.ST(14);
DeleteOk = 0;
}
AddMessageToList(Avatar, UserName, DeleteOk, p[v2], userid);
M.mc.visible = false;
}
else
{
yinc = M.mc.mch;
yc2 = yc2 + yinc;
}
if (!(todo.Message[p[Bot2]].mc && yc2 - todo.Message[p[Bot2]].mc.mch * (1 - BotMargF) > todo.tph))
{
continue;
}
HitTop = 0;
break;
}
if (yc2 >= todo.tph)
{
yc3 = todo.tph - (BotMargF - 1) * todo.Message[p[int(Bot)]].mc.mch;
yc3 = yc3 - 4;
n = int(Bot);
while (n >= 0)
{
if (p[n] != undefined)
{
M = todo.Message[p[n]];
if (M.mc)
{
if (M.mc.mch != undefined)
{
yc3 = yc3 - M.mc.mch;
}
if (M.mc.mch == undefined || yc3 < -M.mc.mch)
{
break;
}
M.mc.y = yc3;
M.mc.visible = true;
}
}
n = (n - 1);
}
}
else
{
yc3 = 0;
n = 0;
while (n < NoOfM)
{
if (p[n] != undefined)
{
M = todo.Message[p[n]].mc;
if (!(yc3 > todo.tph || yc3 == undefined || !M))
{
};
M.y = yc3;
M.visible = true;
yc3 = yc3 + M.mch;
}
n = (n + 1);
}
}
n = 0;
while (n < MessageLength)
{
if (!(todo.Message[n].mc == undefined) && todo.Message[n].mc.visible == false)
{
DeleteOneMessageMc(n);
}
n = (n + 1);
}
SkipSmilies = false;
}
catch (e:Error)
{
};
return;
}
public static function DeleteOneMessageMc(arg1:*):*
{
var loc1:*;
loc1 = todo.Message[arg1].mc;
if (!loc1)
{
return;
}
var loc2:*;
var loc3:*;
McCnt--;
if (loc1.avc && loc1.avc.parent)
{
loc1.avc.parent.removeChild(loc1.avc);
loc1.avc = undefined;
}
if (loc1.parent)
{
loc1.parent.removeChild(loc1);
}
todo.Message[arg1].mc = undefined;
return;
}
public static function NameCol(arg1:int):*
{
var loc4:*;
loc4 = 0;
if (arg1 == -1)
{
return [undefined, undefined];
}
var loc1:*;
loc1 = todo.Users[arg1].n.split("(glow");
var loc2:*;
loc2 = undefined;
var loc3:*;
loc3 = undefined;
if (loc1[1])
{
loc4 = todo.Users[arg1].Powers ? todo.Users[arg1].Powers[0] : 0;
loc1 = loc1[1].split(")");
loc1 = loc1[0].split("#");
if (loc1[1] !== "0")
{
if (loc1[1])
{
loc3 = xatlib.DecodeColor(loc1[1], loc4 & 1 << 13 ? true : false, loc4 & 1 << 14 ? true : false, loc4 & 1 << 15 ? true : false, loc4 & 1 << 16 ? true : false);
}
else
{
loc3 = 65280;
}
}
if (todo.HasPower(arg1, 103))
{
if (loc1[2])
{
loc2 = xatlib.DecodeColor(loc1[2], loc4 & 1 << 13 ? true : false, loc4 & 1 << 14 ? true : false, loc4 & 1 << 15 ? true : false, loc4 & 1 << 16 ? true : false);
}
else
{
loc2 = 128;
}
}
}
return [loc2, loc3];
}
public static function AddMessageToList(arg1:*, arg2:String, arg3:Number, arg4:Number, arg5:Number):*
{
var Avatar:*;
var Avw:*;
var DeleteOk:Number;
var M:*;
var Press:*;
var UserName:String;
var a:*;
var h:String;
var myuid:*;
var namec:*;
var u:*;
var uid:*;
var userid:Number;
var v:Number;
var yinc:*;
var loc1:*;
u = undefined;
h = null;
Press = undefined;
Avatar = arg1;
UserName = arg2;
DeleteOk = arg3;
v = arg4;
userid = arg5;
M = todo.Message[v].t;
u = todo.Message[v].u;
yinc = 0;
Avw = new flash.display.MovieClip();
main.mctextbackground.addChild(Avw);
Avw.x = 5;
if (todo.w_userno != u)
{
if (u != 0)
{
h = xconst.ST(140);
Press = function ():*
{
if (chat.isKeyDown(flash.ui.Keyboard.SHIFT))
{
PressUserName(u);
}
else
{
chat.mainDlg.GotoProfile(u);
}
return;
}
}
else
{
h = xconst.ST(14);
Press = function ():*
{
main.hint.HintOff();
main.openDialog(5, 0);
return;
}
}
}
else
{
h = xconst.ST(140);
Press = function ():*
{
main.hint.HintOff();
chat.mainDlg.GotoProfile(todo.w_userno);
return;
}
}
uid = xatlib.FindUser(u);
myuid = xatlib.FindUser(todo.w_userno);
a = Avw;
a.x = 40;
namec = [];
if (todo.HasPower(uid, 21))
{
namec = NameCol(uid);
}
if (todo.w_userno == u && todo.Users[uid].w == 176)
{
M = xatlib.ReversePower(M);
}
a.addEventListener(flash.events.MouseEvent.ROLL_OVER, DoSocialOver);
a.addEventListener(flash.events.MouseEvent.ROLL_OUT, main.hint.HintOff);
a.buttonMode = true;
a.useHandCursor = true;
yinc = AddMessageToMc(a, 0, UserName, 0, main.textPaneWidth, 0, u, userid, namec[0], namec[1], todo.Message[v].pb);
yinc = yinc + AddMessageToMc(a, 1, M, 0, main.textPaneWidth, yinc, u);
if (yinc < 35)
{
yinc = 35;
}
if (uid >= 0)
{
Avw.avc = new xAvatar(Avw, Avatar, h, Press, todo.Users[uid].VIP, todo.Users[uid].aFlags, todo.Users[uid].Powers);
}
else
{
Avw.avc = new xAvatar(Avw, Avatar, h, Press);
}
Avw.avc.Av.x = -35;
Avw.avc.Av.y = 5;
Avw.avc.Av.h = h;
Avw.avc.Av.Zm = (todo.HasPower(uid, 4) || todo.HasPowerA(todo.w_Powers, 4)) && !todo.bThin;
Avw.avc.Av.addEventListener(flash.events.MouseEvent.ROLL_OVER, Av_onRollOver);
Avw.avc.Av.addEventListener(flash.events.MouseEvent.ROLL_OUT, Av_onRollOut);
Avw.avc.Av.addEventListener(flash.events.MouseEvent.MOUSE_UP, Av_onRollOut);
todo.Message[v].mc = Avw;
todo.Message[v].mc.mch = yinc + 4;
yc2 = yc2 + yinc + 4;
return;
}
static function Av_onRollOver(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = arg1.currentTarget;
main.hint.Hint(0, 0, loc1.h, true, 0, undefined, 0, loc1);
if (!loc1.Zm)
{
return;
}
loc1.scaleX = 2.67;
loc1.scaleY = 2.67;
loc1.y = -20;
loc1.parent.parent.setChildIndex(loc1.parent, (loc1.parent.parent.numChildren - 1));
if (loc1.g)
{
loc1.g.visible = false;
}
loc1.addEventListener(flash.events.MouseEvent.MOUSE_MOVE, Av_tick);
return;
}
static function Av_onRollOut(arg1:*):*
{
var loc1:*;
loc1 = arg1.currentTarget;
loc1.scaleX = 1;
loc1.scaleY = 1;
loc1.y = 5;
if (loc1.g)
{
loc1.g.visible = true;
}
main.hint.HintOff();
loc1.removeEventListener(flash.events.MouseEvent.MOUSE_MOVE, Av_tick);
return;
}
static function Av_tick(arg1:*):*
{
if (arg1.stageX > 99 || arg1.stageX < 6)
{
Av_onRollOut(arg1);
}
return;
}
public static function AddMessageToMc(arg1:*, arg2:Number, arg3:String, arg4:Number, arg5:Number, arg6:Number, arg7:Number=NaN, arg8:*, arg9:*, arg10:*, arg11:*):Number
{
var Chatter:flash.display.MovieClip;
var HomeX:int;
var HotLink:*;
var HotLink2:*;
var HotLink3:*;
var Left:Number;
var LineH:Number;
var LinkNextWord:*;
var LocData:*;
var LocFunc:*;
var NameHint:*;
var Right:Number;
var SCnt:*;
var Sm:*;
var SmilieBan:*;
var Space:Number;
var SwearWord:*;
var UserNo:Number=NaN;
var Width:Number;
var WordWidth:*;
var Words:Array;
var c0:String;
var c3:*;
var color:*;
var f:Number;
var glowc:*;
var id:Number;
var key:*;
var m2:*;
var mc:*;
var mc2:*;
var mcFmt:flash.text.TextFormat;
var mcFmtSize:*;
var mcTxt:*;
var mcTxt2:*;
var mcin:*;
var n:*;
var n2:*;
var s:String;
var sLinkNextWord:*;
var schrs:*;
var str:String;
var t:*;
var ts:*;
var uid:*;
var userid:*;
var yOfst:Number;
var yPos:Number;
var loc1:*;
SwearWord = undefined;
mcFmt = null;
SmilieBan = undefined;
mc = undefined;
Chatter = null;
LocData = undefined;
LocFunc = undefined;
HotLink = undefined;
HotLink2 = undefined;
HotLink3 = undefined;
s = null;
c0 = null;
Sm = undefined;
ts = undefined;
key = undefined;
mcTxt = undefined;
t = undefined;
WordWidth = undefined;
c3 = undefined;
f = NaN;
mc2 = undefined;
mcTxt2 = undefined;
schrs = undefined;
n2 = undefined;
m2 = undefined;
mcin = arg1;
id = arg2;
str = arg3;
Left = arg4;
Right = arg5;
yOfst = arg6;
UserNo = arg7;
userid = arg8;
color = arg9;
glowc = arg10;
NameHint = arg11;
if (color == undefined)
{
color = 0;
}
Width = Right - Left;
xPos = Left;
yPos = 0;
LineH = 16;
LinkNextWord = false;
sLinkNextWord = false;
mcFmt = new flash.text.TextFormat();
mcFmt.align = "left";
mcFmt.bold = !((id & 1) == 0);
if (id == 4)
{
id = 1;
}
if (id == 1 && UserNo == 0)
{
mcFmt.italic = true;
}
uid = xatlib.FindUser(UserNo);
if (id == 1 && uid >= 0 && todo.Users[uid].w == 184)
{
SmilieBan = true;
}
mcFmt.font = "_sans";
mcFmtSize = 14;
mcFmt.size = mcFmtSize;
Space = int(mcFmtSize * 0.4);
SCnt = 0;
HomeX = 0;
Words = new Array();
Words = str.split(" ");
if (xconst.ST(85) == "RTL")
{
Words.reverse();
}
mcin.mouseEnabled = false;
mcin.t = "";
mcin.u = UserNo;
if (glowc != undefined)
{
if (todo.bThin)
{
mcin.Glow = glowc;
}
else
{
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;
while (n < Words.length)
{
if (Right == 1999 && xPos > main.upw - 20)
{
break;
}
LocData = undefined;
LocFunc = undefined;
HotLink = undefined;
HotLink2 = undefined;
HotLink3 = undefined;
mcFmt.color = color;
s = Words[n].toLowerCase();
c0 = s.charAt(0);
mc = mcin;
mcFmt.url = "";
if (!(id & 2))
{
mcFmt.underline = false;
}
SwearWord = 0;
if (c0 != "<")
{
LinkNextWord = sLinkNextWord;
if (!SmilieBan)
{
};
if (xPos < Right || !(c0 == "("))
{
Sm = Smilie(mc, s, UserNo, userid, id, Words[n]);
}
if (!SmilieBan)
{
};
if (c0 == "_")
{
Words[n] = Words[n].substr(1);
}
if (Sm)
{
SCnt = (SCnt + 1);
Chatter = undefined;
if (!(Sm.Flags == 1) && SCnt > 10 && UserNo > 101)
{
mc.removeChild(Sm);
}
else
{
Sm.x = xPos + xatlib.xInt(Sm.x);
Sm.y = Sm.y + yPos + yOfst + 3;
xPos = xPos + 20;
if (Sm.Flags == 1)
{
xPos = xPos - 5;
if (xPos > Right - 10)
{
if (HomeX)
{
HomeX = HomeX - 14;
Sm.x = HomeX;
}
else
{
Sm.x = Sm.x - (xPos - Right);
Sm.x = Sm.x - 14;
HomeX = Sm.x;
}
}
else
{
if (HomeX == 0)
{
HomeX = xPos;
}
}
}
if (Sm.Flags == 2)
{
Chatter = Sm;
xPos = xPos - 8;
}
if (Sm.Flags == 4)
{
xPos = xPos - 10;
Sm.y = Sm.y + 3;
}
}
}
else
{
if (!(c0 == "<" && s == ""))
{
if (!SmilieBan)
{
mcin.t = mcin.t + " " + Words[n];
ts = undefined;
if (Words[n].indexOf(".") >= 0)
{
ts = xatlib.WordIsLink(Words[n]);
}
if (ts)
{
if (s.indexOf("youtube.com") >= 0 || s.indexOf("photobucket.com") >= 0 || s.indexOf("veoh.com") >= 0 || s.indexOf("vids.myspace.com") >= 0 || s.indexOf("mogulus.com") >= 0 || s.indexOf("video.google.") >= 0 || s.indexOf("live.yahoo.com") >= 0)
{
LocData = xatlib.urlencode(ts.substr(7));
HotLink = xatlib.PageUrl(4) + "&m=" + LocData;
LocFunc = function (arg1:*):*
{
return main.mcLoad.OpenMedia(arg1.currentTarget.LocData);
}
HotLink2 = ts;
}
else
{
s = ts;
HotLink = 1;
}
}
key = keywords[s];
if (key)
{
loc2 = key;
switch (loc2)
{
case 1:
{
HotLink = xatlib.PageUrl(2);
LocFunc = function (arg1:*):*
{
return main.mcLoad.OpenDoodle();
}
break;
}
case 2:
{
HotLink = xatlib.PageUrl(30008);
LocFunc = function (arg1:*):*
{
return main.mcLoad.OpenByN(30008);
}
break;
}
case 3:
{
HotLink = xatlib.PageUrl(5);
LocFunc = function (arg1:*):*
{
return main.mcLoad.OpenSmilies();
}
break;
}
case 4:
{
if (!ImInit)
{
HotLink = xatlib.PageUrl(6);
}
break;
}
case 5:
{
HotLink = xatlib.Register_Link(1);
LocFunc = 2;
break;
}
case 6:
{
HotLink = xatlib.Register_Link(0);
LocFunc = 2;
break;
}
case 7:
{
HotLink = xatlib.Register_Link(0) + "&b=1";
break;
}
case 8:
{
HotLink = xatlib.PageUrl(20044);
LocFunc = function (arg1:*):*
{
return main.mcLoad.OpenByN(20044);
}
break;
}
default:
{
HotLink = "http://xat.com/" + key;
}
}
}
if (LocFunc == 2)
{
LocFunc = function (arg1:*):*
{
return main.mcLoad.StartMedia("L" + this.Url);
}
}
if (!HotLink)
{
key = todo.gconfig["g100"];
if (key)
{
key = loc2 = key[s];
if (loc2)
{
HotLink3 = loc2 = "http://bit.ly/" + key;
HotLink = loc2;
}
}
}
if (HotLink && id & 1)
{
if (HotLink == 1)
{
HotLink = s;
}
mcFmt.underline = true;
if (HotLink3)
{
mcFmt.color = 80;
}
mc = new xSprite();
mcin.addChild(mc);
mc.Url = HotLink;
mc.Url2 = HotLink2;
mc.LocFunc = LocFunc;
mc.LocData = LocData;
mc.useHandCursor = true;
mc.buttonMode = true;
mc.mouseChildren = false;
mc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, DoHotLink);
}
if (LinkNextWord)
{
mc = new xSprite();
mcin.addChild(mc);
mc.UserNo = xatlib.xInt(UserNo);
if (UserNo == 0)
{
mc.UserNo = todo.w_userno;
}
mc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, PressUserNameEvent);
mc.nh = NameHint;
mc.id = id;
mc.addEventListener(flash.events.MouseEvent.ROLL_OVER, HintUserName);
mc.addEventListener(flash.events.MouseEvent.ROLL_OUT, main.hint.HintOff);
mc.buttonMode = true;
mc.mouseChildren = false;
if (id != 0)
{
LinkNextWord = false;
}
}
mcTxt = new flash.text.TextField();
mcTxt.x = xPos;
mcTxt.y = yPos + yOfst + 3;
mcTxt.width = Width;
mcTxt.height = LineH * 1.3;
mcTxt.selectable = true;
mcTxt.defaultTextFormat = mcFmt;
mcTxt.text = Words[n];
t = mc.addChild(mcTxt);
if (glowc != undefined)
{
if (todo.bThin)
{
mc.Glow = glowc;
}
else
{
mc.filters = mcin.glowa;
}
}
WordWidth = mcTxt.textWidth;
mcTxt.width = WordWidth + 5;
if (xPos > 0 && WordWidth > Width - xPos && userid == undefined && !((id & 2) == 2))
{
f = 0;
if (Chatter != undefined)
{
Chatter.x = Left;
Chatter.y = Chatter.y + LineH;
f = 12;
}
mcTxt.x = Left + f;
mcTxt.y = mcTxt.y + LineH;
yPos = yPos + LineH;
xPos = Left + Space + WordWidth + f;
}
else
{
Chatter = undefined;
xPos = xPos + Space + WordWidth;
}
if (SwearWord)
{
mc2 = new xSprite();
mcin.addChild(mc2);
mcTxt2 = new flash.text.TextField();
mcTxt2.x = mcTxt.x;
mcTxt2.y = mcTxt.y;
mcTxt2.width = Width;
mcTxt2.height = LineH * 1.3;
t = mc2.addChild(mcTxt2);
schrs = "!#%£!@?*";
m2 = 0;
mcTxt2.defaultTextFormat = mcFmt;
mcTxt2.text = "";
n2 = 0;
while (n2 < s.length)
{
m2 = (m2 + 1);
mcTxt2.text = mcTxt2.text + schrs.charAt(m2);
if (m2 >= schrs.length)
{
m2 = 0;
}
n2 = (n2 + 1);
}
mcTxt2.width = WordWidth + 5;
mcTxt2.backgroundColor = 9474192;
if (SwearWord == "2")
{
mcTxt2.backgroundColor = 9474303;
}
mcTxt2.background = true;
mc2.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, RemoveMe);
}
}
}
}
}
else
{
c3 = s.charAt(1);
if (c3 == "l")
{
sLinkNextWord = true;
Words[n] = Words[n].substr(3);
s = Words[n].toLowerCase();
c0 = s.charAt(0);
}
if (c3 == "s")
{
SwearWord = s.charAt(2);
Words[n] = Words[n].substr(4);
s = Words[n].toLowerCase();
c0 = s.charAt(0);
}
if (s == "" || s == "")
{
mcFmt.bold = true;
}
else
{
LinkNextWord = sLinkNextWord;
if (!SmilieBan)
{
};
if (xPos < Right || !(c0 == "("))
{
Sm = Smilie(mc, s, UserNo, userid, id, Words[n]);
}
if (!SmilieBan)
{
};
if (c0 == "_")
{
Words[n] = Words[n].substr(1);
}
if (Sm)
{
SCnt = (SCnt + 1);
Chatter = undefined;
if (!(Sm.Flags == 1) && SCnt > 10 && UserNo > 101)
{
mc.removeChild(Sm);
}
else
{
Sm.x = xPos + xatlib.xInt(Sm.x);
Sm.y = Sm.y + yPos + yOfst + 3;
xPos = xPos + 20;
if (Sm.Flags == 1)
{
xPos = xPos - 5;
if (xPos > Right - 10)
{
if (HomeX)
{
HomeX = HomeX - 14;
Sm.x = HomeX;
}
else
{
Sm.x = Sm.x - (xPos - Right);
Sm.x = Sm.x - 14;
HomeX = Sm.x;
}
}
else
{
if (HomeX == 0)
{
HomeX = xPos;
}
}
}
if (Sm.Flags == 2)
{
Chatter = Sm;
xPos = xPos - 8;
}
if (Sm.Flags == 4)
{
xPos = xPos - 10;
Sm.y = Sm.y + 3;
}
}
}
else
{
if (!(c0 == "<" && s == ""))
{
if (!SmilieBan)
{
mcin.t = mcin.t + " " + Words[n];
ts = undefined;
if (Words[n].indexOf(".") >= 0)
{
ts = xatlib.WordIsLink(Words[n]);
}
if (ts)
{
if (s.indexOf("youtube.com") >= 0 || s.indexOf("photobucket.com") >= 0 || s.indexOf("veoh.com") >= 0 || s.indexOf("vids.myspace.com") >= 0 || s.indexOf("mogulus.com") >= 0 || s.indexOf("video.google.") >= 0 || s.indexOf("live.yahoo.com") >= 0)
{
LocData = xatlib.urlencode(ts.substr(7));
HotLink = xatlib.PageUrl(4) + "&m=" + LocData;
LocFunc = function (arg1:*):*
{
return main.mcLoad.OpenMedia(arg1.currentTarget.LocData);
}
HotLink2 = ts;
}
else
{
s = ts;
HotLink = 1;
}
}
key = keywords[s];
if (key)
{
var loc2:*;
loc2 = key;
switch (loc2)
{
case 1:
{
HotLink = xatlib.PageUrl(2);
LocFunc = function (arg1:*):*
{
return main.mcLoad.OpenDoodle();
}
break;
}
case 2:
{
HotLink = xatlib.PageUrl(30008);
LocFunc = function (arg1:*):*
{
return main.mcLoad.OpenByN(30008);
}
break;
}
case 3:
{
HotLink = xatlib.PageUrl(5);
LocFunc = function (arg1:*):*
{
return main.mcLoad.OpenSmilies();
}
break;
}
case 4:
{
if (!ImInit)
{
HotLink = xatlib.PageUrl(6);
}
break;
}
case 5:
{
HotLink = xatlib.Register_Link(1);
LocFunc = 2;
break;
}
case 6:
{
HotLink = xatlib.Register_Link(0);
LocFunc = 2;
break;
}
case 7:
{
HotLink = xatlib.Register_Link(0) + "&b=1";
break;
}
case 8:
{
HotLink = xatlib.PageUrl(20044);
LocFunc = function (arg1:*):*
{
return main.mcLoad.OpenByN(20044);
}
break;
}
default:
{
HotLink = "http://xat.com/" + key;
}
}
}
if (LocFunc == 2)
{
LocFunc = function (arg1:*):*
{
return main.mcLoad.StartMedia("L" + this.Url);
}
}
if (!HotLink)
{
key = todo.gconfig["g100"];
if (key)
{
key = loc2 = key[s];
if (loc2)
{
HotLink3 = loc2 = "http://bit.ly/" + key;
HotLink = loc2;
}
}
}
if (HotLink && id & 1)
{
if (HotLink == 1)
{
HotLink = s;
}
mcFmt.underline = true;
if (HotLink3)
{
mcFmt.color = 80;
}
mc = new xSprite();
mcin.addChild(mc);
mc.Url = HotLink;
mc.Url2 = HotLink2;
mc.LocFunc = LocFunc;
mc.LocData = LocData;
mc.useHandCursor = true;
mc.buttonMode = true;
mc.mouseChildren = false;
mc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, DoHotLink);
}
if (LinkNextWord)
{
mc = new xSprite();
mcin.addChild(mc);
mc.UserNo = xatlib.xInt(UserNo);
if (UserNo == 0)
{
mc.UserNo = todo.w_userno;
}
mc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, PressUserNameEvent);
mc.nh = NameHint;
mc.id = id;
mc.addEventListener(flash.events.MouseEvent.ROLL_OVER, HintUserName);
mc.addEventListener(flash.events.MouseEvent.ROLL_OUT, main.hint.HintOff);
mc.buttonMode = true;
mc.mouseChildren = false;
if (id != 0)
{
LinkNextWord = false;
}
}
mcTxt = new flash.text.TextField();
mcTxt.x = xPos;
mcTxt.y = yPos + yOfst + 3;
mcTxt.width = Width;
mcTxt.height = LineH * 1.3;
mcTxt.selectable = true;
mcTxt.defaultTextFormat = mcFmt;
mcTxt.text = Words[n];
t = mc.addChild(mcTxt);
if (glowc != undefined)
{
if (todo.bThin)
{
mc.Glow = glowc;
}
else
{
mc.filters = mcin.glowa;
}
}
WordWidth = mcTxt.textWidth;
mcTxt.width = WordWidth + 5;
if (xPos > 0 && WordWidth > Width - xPos && userid == undefined && !((id & 2) == 2))
{
f = 0;
if (Chatter != undefined)
{
Chatter.x = Left;
Chatter.y = Chatter.y + LineH;
f = 12;
}
mcTxt.x = Left + f;
mcTxt.y = mcTxt.y + LineH;
yPos = yPos + LineH;
xPos = Left + Space + WordWidth + f;
}
else
{
Chatter = undefined;
xPos = xPos + Space + WordWidth;
}
if (SwearWord)
{
mc2 = new xSprite();
mcin.addChild(mc2);
mcTxt2 = new flash.text.TextField();
mcTxt2.x = mcTxt.x;
mcTxt2.y = mcTxt.y;
mcTxt2.width = Width;
mcTxt2.height = LineH * 1.3;
t = mc2.addChild(mcTxt2);
schrs = "!#%£!@?*";
m2 = 0;
mcTxt2.defaultTextFormat = mcFmt;
mcTxt2.text = "";
n2 = 0;
while (n2 < s.length)
{
m2 = (m2 + 1);
mcTxt2.text = mcTxt2.text + schrs.charAt(m2);
if (m2 >= schrs.length)
{
m2 = 0;
}
n2 = (n2 + 1);
}
mcTxt2.width = WordWidth + 5;
mcTxt2.backgroundColor = 9474192;
if (SwearWord == "2")
{
mcTxt2.backgroundColor = 9474303;
}
mcTxt2.background = true;
mc2.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, RemoveMe);
}
}
}
}
}
}
n = (n + 1);
}
return yPos + LineH;
}
public static function RemoveMe(arg1:flash.events.MouseEvent):*
{
arg1.currentTarget.parent.removeChild(arg1.currentTarget);
return;
}
public static function DoHotLink(arg1:flash.events.MouseEvent):*
{
var loc2:*;
loc2 = undefined;
var loc1:*;
loc1 = chat.isKeyDown(flash.ui.Keyboard.SHIFT) || !((todo.FlagBits & xconst.f_NoList) == 0) && !(global.xc & 2048);
if (!loc1 && arg1.currentTarget.LocFunc)
{
arg1.currentTarget.LocFunc(arg1);
}
if (loc1 || !arg1.currentTarget.LocFunc || !(global.xc & 2048))
{
loc2 = arg1.currentTarget.Url;
if (loc1 && arg1.currentTarget.Url2)
{
loc2 = arg1.currentTarget.Url2;
}
loc2 = xatlib.xatlinks(loc2);
if (chat.isKeyDown(flash.ui.Keyboard.SHIFT))
{
loc2 = loc2 + "&f=1";
}
xatlib.UrlPopup(xconst.ST(8), loc2, xconst.ST(17));
}
return;
}
public static function PressUserNameEvent(arg1:flash.events.MouseEvent):*
{
PressUserName(arg1.currentTarget.UserNo, arg1.ctrlKey);
return;
}
public static function PressUserName(arg1:*, arg2:*=false):*
{
if (arg1 == undefined)
{
return;
}
main.hint.HintOff();
if (arg1 == 3)
{
chat.IM.ImInviteAll();
return;
}
if (arg1 != todo.w_userno)
{
if (arg1 != 4294967295)
{
if (arg2 && todo.Macros && todo.Macros["rapid"] && todo.HasPowerA(todo.w_Powers, 91, todo.w_Mask))
{
DoRapid(arg1);
}
else
{
main.openDialog(2, arg1);
}
}
}
else
{
main.openDialog(1);
}
return;
}
public static function DoSocialOver(arg1:flash.events.MouseEvent):*
{
Social["new"] = arg1.currentTarget;
return;
}
public static function OnSocial(arg1:flash.events.MouseEvent):*
{
xatlib.UrlPopup("Post", xconst.usedomain + "/link.php?s=fb&r=" + todo.w_useroom + "&f=" + xatlib.GetNameNumber(arg1.currentTarget.parent.u) + " :: " + arg1.currentTarget.parent.t);
return;
}
public static function HintUserName(arg1:flash.events.MouseEvent):*
{
var loc3:*;
loc3 = undefined;
var loc1:*;
loc1 = 0;
var loc2:*;
loc2 = 8;
if (arg1.currentTarget.id == 2)
{
loc1 = 1;
loc2 = 3;
}
if (todo.w_userno != arg1.currentTarget.UserNo)
{
if (arg1.currentTarget.UserNo != 3)
{
loc3 = xconst.ST(16, xatlib.FixLI(xatlib.GetUsername(arg1.currentTarget.UserNo, 1, 1, arg1.currentTarget.nh)));
}
else
{
if (ImInit)
{
loc3 = xconst.ST(141);
}
else
{
loc3 = xconst.ST(142);
}
}
}
else
{
loc3 = xconst.ST(18);
}
if (loc3)
{
main.hint.Hint(0, loc2, loc3, true, loc1, 0, 0, arg1.currentTarget);
}
return;
}
public static function GotPower(arg1:*, arg2:*):*
{
return xatlib.SmOk(arg1, arg2, true);
}
public static function PowSm(arg1:*, arg2:*, arg3:*, arg4:*):*
{
var loc3:*;
loc3 = undefined;
var loc5:*;
loc5 = undefined;
var loc7:*;
loc7 = undefined;
var loc9:*;
loc9 = undefined;
var loc11:*;
loc11 = undefined;
var loc14:*;
loc14 = undefined;
var loc15:*;
loc15 = undefined;
var loc16:*;
loc16 = undefined;
var loc17:*;
loc17 = undefined;
var loc18:*;
loc18 = undefined;
if (arg2[1] == undefined)
{
return true;
}
if (!(arg1.SF & 2))
{
return false;
}
if (arg4 && arg4[0] & 1)
{
arg1.SF = arg1.SF | smiley.f_AllPowers;
}
var loc1:*;
loc1 = arg2.length;
var loc2:*;
loc2 = true;
var loc4:*;
loc4 = new Object();
var loc6:*;
loc6 = "";
var loc8:*;
loc8 = "";
var loc10:*;
loc10 = 0;
var loc12:*;
loc12 = true;
var loc13:*;
loc13 = false;
loc11 = 1;
while (loc11 <= loc1)
{
loc14 = undefined;
if (arg2[loc11] != undefined)
{
loc14 = arg2[loc11].toLowerCase();
}
if (arg2[(loc11 - 1)] === "piano")
{
arg1.SF = arg1.SF | 128;
}
if ((loc3 = xconst.effectsR[loc14]) == undefined)
{
if ((loc3 = xconst.effects[loc14]) == undefined)
{
if ((loc3 = xconst.backsR[loc14]) == undefined)
{
if (!(loc14 == undefined) && loc14.length == 1)
{
loc3 = xconst.backs[loc14];
}
if (loc3 == undefined)
{
if (xconst.smih[loc14] && !(loc14.length == 1) || loc14 == undefined || loc14 == "6")
{
if (loc13)
{
break;
}
if (loc14 == "hole")
{
loc13 = true;
}
loc19 = 0;
loc20 = loc4;
for (loc16 in loc20)
{
loc3 = xconst.effects[loc16];
if (GotPower(loc3, arg4))
{
continue;
}
loc4[loc16] = false;
loc12 = false;
}
if (loc2)
{
loc9 = loc4;
if (GotPower(xconst.backs[loc5], arg4))
{
arg1.ST = xconst.backs[loc5];
}
else
{
loc12 = false;
}
arg1.SC = loc8;
if (loc9["f"])
{
arg1.SP = 4;
}
if (loc9["y"])
{
arg1.SC = "y";
}
}
else
{
loc6 = loc6 + ",";
loc3 = 1;
if (loc4["f"])
{
loc3 = loc3 | 4;
}
loc6 = loc6 + loc3;
}
if (loc14 == "6" && arg1.SC == undefined)
{
arg1.SC = 15728640;
}
loc8 = undefined;
loc4 = new Object();
loc7 = false;
if (++loc10 >= 6)
{
break;
}
if (!todo.HasPowerA(arg4, 0) || !(loc14 == "allpowers"))
{
if (!xatlib.SmOk(loc14, arg4, true))
{
if (loc14)
{
arg2[loc11] = "none";
loc12 = false;
}
break;
}
}
if (!loc2)
{
loc6 = loc6 + ",";
}
loc6 = loc6 + loc14 + ",";
loc2 = false;
}
else
{
loc15 = false;
if (loc14.length != 6)
{
loc3 = "";
}
else
{
loc3 = (loc3 = parseInt(loc14, 16)).toString(16);
loc3 = (loc3 = "000000" + loc3).substr(-6, 6);
}
if (loc14 == "y")
{
if (!todo.HasPowerA(arg4, 22))
{
loc14 = loc19 = "";
loc3 = loc19;
}
loc15 = true;
}
if (loc3 != loc14)
{
loc17 = loc14.length;
loc18 = 0;
while (loc18 < loc17)
{
loc3 = loc14.charAt(loc18);
if (xconst.effects[loc3] == undefined && !xconst.colorc[loc3])
{
loc15 = true;
break;
}
loc18 = (loc18 + 1);
}
if (!loc15)
{
loc18 = 0;
while (loc18 < loc17)
{
loc3 = loc14.charAt(loc18);
loc4[loc3] = true;
loc18 = (loc18 + 1);
}
}
}
if (!loc15)
{
if ((loc3 = xatlib.DecodeColor(loc14, todo.HasPowerA(arg4, 13), todo.HasPowerA(arg4, 14), todo.HasPowerA(arg4, 15), todo.HasPowerA(arg4, 16))) != undefined)
{
if (loc2)
{
loc8 = loc8 + loc3 + "#";
}
else
{
if (loc7)
{
loc6 = loc6 + "#";
}
loc7 = true;
loc6 = loc6 + loc3;
}
}
}
if (loc15 && !loc2)
{
if (loc7)
{
loc6 = loc6 + "#";
}
loc7 = true;
loc6 = loc6 + loc14;
}
}
}
else
{
loc5 = loc14;
}
}
else
{
loc5 = loc3;
}
}
else
{
loc4[loc14] = true;
if (!(loc2 || !(loc14 == "y")))
{
if ((loc3 = xconst.backsR[loc14]) == undefined)
{
if (!(loc14 == undefined) && loc14.length == 1)
{
loc3 = xconst.backs[loc14];
}
if (loc3 == undefined)
{
if (xconst.smih[loc14] && !(loc14.length == 1) || loc14 == undefined || loc14 == "6")
{
if (loc13)
{
break;
}
if (loc14 == "hole")
{
loc13 = true;
}
var loc19:*;
loc19 = 0;
var loc20:*;
loc20 = loc4;
for (loc16 in loc20)
{
loc3 = xconst.effects[loc16];
if (GotPower(loc3, arg4))
{
continue;
}
loc4[loc16] = false;
loc12 = false;
}
if (loc2)
{
loc9 = loc4;
if (GotPower(xconst.backs[loc5], arg4))
{
arg1.ST = xconst.backs[loc5];
}
else
{
loc12 = false;
}
arg1.SC = loc8;
if (loc9["f"])
{
arg1.SP = 4;
}
if (loc9["y"])
{
arg1.SC = "y";
}
}
else
{
loc6 = loc6 + ",";
loc3 = 1;
if (loc4["f"])
{
loc3 = loc3 | 4;
}
loc6 = loc6 + loc3;
}
if (loc14 == "6" && arg1.SC == undefined)
{
arg1.SC = 15728640;
}
loc8 = undefined;
loc4 = new Object();
loc7 = false;
if (++loc10 >= 6)
{
break;
}
if (!todo.HasPowerA(arg4, 0) || !(loc14 == "allpowers"))
{
if (!xatlib.SmOk(loc14, arg4, true))
{
if (loc14)
{
arg2[loc11] = "none";
loc12 = false;
}
break;
}
}
if (!loc2)
{
loc6 = loc6 + ",";
}
loc6 = loc6 + loc14 + ",";
loc2 = false;
}
else
{
loc15 = false;
if (loc14.length != 6)
{
loc3 = "";
}
else
{
loc3 = (loc3 = parseInt(loc14, 16)).toString(16);
loc3 = (loc3 = "000000" + loc3).substr(-6, 6);
}
if (loc14 == "y")
{
if (!todo.HasPowerA(arg4, 22))
{
loc14 = loc19 = "";
loc3 = loc19;
}
loc15 = true;
}
if (loc3 != loc14)
{
loc17 = loc14.length;
loc18 = 0;
while (loc18 < loc17)
{
loc3 = loc14.charAt(loc18);
if (xconst.effects[loc3] == undefined && !xconst.colorc[loc3])
{
loc15 = true;
break;
}
loc18 = (loc18 + 1);
}
if (!loc15)
{
loc18 = 0;
while (loc18 < loc17)
{
loc3 = loc14.charAt(loc18);
loc4[loc3] = true;
loc18 = (loc18 + 1);
}
}
}
if (!loc15)
{
if ((loc3 = xatlib.DecodeColor(loc14, todo.HasPowerA(arg4, 13), todo.HasPowerA(arg4, 14), todo.HasPowerA(arg4, 15), todo.HasPowerA(arg4, 16))) != undefined)
{
if (loc2)
{
loc8 = loc8 + loc3 + "#";
}
else
{
if (loc7)
{
loc6 = loc6 + "#";
}
loc7 = true;
loc6 = loc6 + loc3;
}
}
}
if (loc15 && !loc2)
{
if (loc7)
{
loc6 = loc6 + "#";
}
loc7 = true;
loc6 = loc6 + loc14;
}
}
}
else
{
loc5 = loc14;
}
}
else
{
loc5 = loc3;
}
}
}
}
else
{
loc4[loc3] = true;
}
loc11 = (loc11 + 1);
}
if (loc6 != "")
{
arg1.SE = loc6;
}
if (loc9["i"] && arg4[0] & 1 << 6)
{
arg1.scaleY = -1;
arg1.y = arg1.y + arg3;
}
if (loc9["m"] && arg4[0] & 1 << 7)
{
arg1.scaleX = -1;
arg1.xx = arg3;
}
arg1.SA = "(" + arg2.join("#") + ")";
return loc12;
}
public static function Smilie(arg1:*, arg2:String, arg3:Number, arg4:Number, arg5:*, arg6:String):*
{
var Args:*;
var Clicker:*;
var Code:String;
var Col:*;
var G:*;
var HTxt:*;
var Pos:*;
var c0:*;
var classRef:Class;
var e:*;
var gps:*;
var i:*;
var key:*;
var len:*;
var m:*;
var mc:*;
var s:String;
var s2:*;
var smc:*;
var smc2:*;
var t:*;
var t2:*;
var u:Number;
var uid:*;
var userid:Number;
var loc1:*;
smc = undefined;
HTxt = undefined;
t = undefined;
key = undefined;
smc2 = undefined;
m = undefined;
classRef = null;
Args = undefined;
G = undefined;
e = undefined;
t2 = undefined;
Col = undefined;
len = undefined;
i = undefined;
s2 = undefined;
gps = undefined;
mc = arg1;
s = arg2;
u = arg3;
userid = arg4;
Pos = arg5;
Code = arg6;
if (!userid)
{
userid = xatlib.FindUser(u);
}
if (userid == -1)
{
userid = 0;
}
uid = userid;
c0 = s.charAt(0).toLowerCase();
if (!FirstC)
{
t = ":,;,<,#,8,(";
t = t.split(",");
FirstC = {};
var loc2:*;
loc2 = 0;
var loc3:*;
loc3 = t;
for (key in loc3)
{
FirstC[t[key]] = true;
}
}
if (FirstC[c0])
{
if (c0 == "#")
{
smc = loc2 = new library("Speaker");
smc2 = loc2;
smc2.scaleY = loc2 = 19 / 23;
smc2.scaleX = loc2;
if (!todo.bThin)
{
smc2.xitem.gotoAndStop(1);
}
smc2.xitem.SoundIsOff.visible = false;
HTxt = s;
if (!todo.bMobile)
{
smc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, DoSound);
}
smc.Snd = s;
}
if (c0 == ":" || c0 == ";" || c0 == "8")
{
m = 0;
while (m < xconst.smArray.length)
{
if (xconst.smArray[m] == s)
{
while (!(xconst.smArray[m] < 0))
{
m = (m + 1);
if (!(m >= xconst.smArray.length))
{
continue;
}
break;
}
HTxt = s.toUpperCase();
if (todo.bThin || xconst.smArray[m] < -1)
{
s = loc2 = "(" + xconst.smArray[(m - 1)] + ")";
Code = loc2;
}
classRef = flash.utils.getDefinitionByName(xconst.smArray[(m - 1)]) as Class;
smc = new classRef();
smc.UserNo = u;
}
while (!(xconst.smArray[m] < 0))
{
m = (m + 1);
if (!(m >= xconst.smArray.length))
{
continue;
}
break;
}
m = (m + 1);
}
}
if (smc == undefined && c0 == "(" && s.charAt((s.length - 1)) == ")")
{
Args = new Array();
t = s.substr(1, s.length - 2);
G = t.charAt(0) == ">";
if (G)
{
t = xatlib.xInt(t.substr(1));
}
else
{
if (xatlib.xInt(t) >= 10000)
{
t = "";
}
Args = t.split("#");
t = Args[0];
if (SmB == undefined && !xatlib.SmOk(t, todo.Users[uid].Powers))
{
t = -1;
}
}
if (Args[0] == "hat" && !(Args[1] == undefined) || Args[0] == "glow")
{
t = loc2 = "none";
Args[0] = loc2;
}
if (!(t == -1) || G)
{
if (todo.bMobile)
{
smc = {};
}
else
{
smc = new flash.display.MovieClip();
}
e = "";
if (todo.Users[uid].registered != undefined)
{
smc.SF = 1;
}
if (todo.Users[uid].VIP)
{
e = "&r=2";
smc.SF = 2;
}
smc.UserNo = u;
if (xconst.topsh[t] == -3)
{
smc.Gifts = u;
}
if (t >= 10128 && t < 20000)
{
classRef = flash.utils.getDefinitionByName(t) as Class;
t2 = new classRef();
smc.addChild(t2);
}
else
{
if (t > 50000)
{
if (todo.bMobile)
{
return false;
}
Args = new Array();
if (t >= 60000)
{
t2 = t - 60000 & !1;
if (!xconst.Game[t2])
{
return;
}
Args.push(xconst.Game[t2]);
}
else
{
Args.push(xconst.Puzzle[(t - 50000)] + "ban");
}
Args.push("wb1");
if (todo.Users[userid].w)
{
Args.push("964B00");
}
smc.SF = 2;
PowSm(smc, Args, 19, todo.ALL_POWERS);
smc.ns = new smiley(smc, Args[0]);
}
else
{
if (!PowSm(smc, Args, 19, todo.Users[uid].Powers))
{
smc.u = u;
if (todo.bMobile)
{
return false;
}
}
smc.SA = Code;
if (!SmB)
{
smc.SP = smc.SP | smiley.b_glow;
}
if (!todo.bMobile)
{
smc.ns = new smiley(smc, t);
}
if (todo.bMobile)
{
smc = Code;
}
}
if (!(smc as String))
{
smc.x = smc.x + xatlib.xInt(smc.xx);
}
}
if (!HTxt)
{
HTxt = s.toUpperCase();
}
if (G)
{
HTxt = 0;
if (t != 10200)
{
HTxt = xconst.ST(143);
if (t > 50000 && t < 60000 && !todo.HasPowerA(todo.w_GroupPowers, t % 50000))
{
t = undefined;
}
smc.xNum = t;
}
else
{
HTxt = " ";
}
}
if (!todo.bMobile && smc.SF & 128)
{
smc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, DoSound);
}
}
}
if (c0 == "<")
{
if (s == "")
{
smc = new library("xdelete");
smc.y = 6;
smc.DeleteNumber = DeleteNumber;
if (!todo.bMobile)
{
smc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, DeleteMess);
}
smc.Flags = 1;
HTxt = xconst.ST(1);
}
if (s == "")
{
smc = new chatter2();
smc.Go();
if (!todo.bMobile)
{
smc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, function ():*
{
main.openDialog(1);
return;
})
}
smc.Flags = 2;
}
if (s == "")
{
smc = new lock();
smc.hint = {"Hint":xconst.ST(20), "mc":smc};
if (!todo.bMobile)
{
smc.addEventListener(flash.events.MouseEvent.ROLL_OVER, main.hint.EasyHint);
}
smc.Flags = 4;
}
if (s == "")
{
smc = new library("HelpIcon");
smc.xitem.ques.visible = false;
}
if (s == "")
{
smc = new library("HelpIcon");
smc.xitem.ques.visible = false;
xatlib.McSetRGB(smc.xitem.infob, 39168);
}
if (s == "")
{
if (todo.Users[uid].h.length > 0)
{
smc = new library("ho");
smc.scaleY = loc2 = 0.4;
smc.scaleX = loc2;
smc.y = 5;
smc.HomePage = loc2 = todo.Users[uid].h;
HTxt = loc2;
if (!todo.bMobile)
{
smc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, OnHomePage);
}
smc.Flags = 1;
}
}
if (s == "")
{
smc = new library("fb");
smc.scaleY = loc2 = 0.4;
smc.scaleX = loc2;
smc.y = 5;
smc.HomePage = loc2 = todo.Users[uid].sn["fb"]["link"];
HTxt = loc2;
if (!todo.bMobile)
{
smc.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, OnHomePage);
}
smc.Flags = 1;
}
if (s == "")
{
Col = -1;
if (todo.Users[userid].member)
{
Col = 6645247;
HTxt = xconst.ST(22);
if (todo.HasPower(userid, 30))
{
Col = 16716947;
}
if (todo.HasPower(userid, 64))
{
Col = 128;
}
}
if (todo.Users[userid].moderator)
{
Col = 16777215;
HTxt = xconst.ST(23);
}
if (todo.Users[userid].owner)
{
Col = 16750848;
HTxt = xconst.ST(24);
}
if (todo.Users[userid].mainowner)
{
Col = 16750848;
HTxt = xconst.ST(134);
}
if (todo.Users[userid].Stealth)
{
Col = -1;
}
else
{
if (todo.Users[userid].aFlags & 1 << 21)
{
Col = 1304549;
HTxt = "celebrity";
}
else
{
if (todo.Users[userid].u != 42)
{
if (todo.HasPower(userid, 153))
{
Col = 16041823;
}
else
{
if (todo.HasPower(userid, 35))
{
Col = 8388736;
}
}
}
else
{
Col = 1;
HTxt = "xat staff";
}
}
}
if (Col >= 0)
{
smc = new chatter2();
smc.ColP1 = Col;
smc.Size = 16;
if (Col == 16041823)
{
smc.Pawn = "p1gold";
}
smc.Go();
smc.y = 4;
smc.Flags = 2;
}
}
}
}
if (mc && smc)
{
mc.addChild(smc);
}
Clicker = smc;
if (!todo.bMobile && HTxt && smc)
{
smc.Hint = HTxt;
if (smc.ns && smc.ns.Clicker)
{
smc.mouseEnabled = false;
Clicker = smc.ns.Clicker;
Clicker.Par = smc;
}
Clicker.addEventListener(flash.events.MouseEvent.ROLL_OVER, smc_onRollOver);
Clicker.addEventListener(flash.events.MouseEvent.ROLL_OUT, smc_onRollOut);
if (!todo.bThin && HTxt.substr(0, 14) == "(RADIO#HTTP://")
{
s2 = HTxt.split("#");
s2 = s2[1].split(")");
smc.Radio = s2[0];
if (!Ronce && Pos == 2 && u == todo.w_userno)
{
Ronce = 1;
if (todo.useRadio == undefined)
{
todo.useRadio = smc.Radio;
chat.mainDlg.CreateSoundIcon("Radio", 2);
}
todo.useRadio = smc.Radio;
}
}
len = xconst.pssa.length;
i = 70;
while (i < len)
{
if (!xconst.NotGroup[i])
{
gps = xconst.pssa[(i + 1)].toUpperCase();
if (HTxt.substr(0, gps.length + 1) == "(" + gps)
{
smc.Power = i;
}
}
i = i + 2;
}
Clicker.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, smc_onPress);
}
if (Pos & 1 && !(smc == undefined))
{
smc.UserNo = undefined;
}
if (!todo.bMobile && Clicker)
{
Clicker.buttonMode = true;
}
return smc;
}
static function smc_onRollOver(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = arg1.currentTarget;
if (loc1.Par)
{
loc1 = loc1.Par;
}
main.hint.Hint(0, 0, loc1.Hint, true, 0, undefined, 0, loc1);
return;
}
static function smc_onRollOut(arg1:flash.events.MouseEvent):*
{
main.hint.HintOff();
return;
}
public static function OnHomePage(arg1:flash.events.MouseEvent):*
{
var loc1:*;
loc1 = arg1.currentTarget.HomePage;
if (!loc1)
{
return;
}
if (loc1.substr(0, 7).toLowerCase() != "http://")
{
loc1 = "http://" + loc1;
}
loc1 = xatlib.xatlinks(loc1);
if (chat.isKeyDown(flash.ui.Keyboard.SHIFT))
{
loc1 = loc1 + "&f=1";
}
xatlib.UrlPopup(xconst.ST(21), loc1);
return;
}
public static function DeleteMess(arg1:flash.events.MouseEvent):*
{
main.hint.HintOff();
var loc1:*;
loc1 = todo.Message.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (todo.Message[loc2].n == arg1.currentTarget.DeleteNumber)
{
todo.Message[loc2].ignored = true;
}
loc2 = (loc2 + 1);
}
network.RemoveUsersWithNoMessages();
network.NetworkDeleteMessage(arg1.currentTarget.DeleteNumber);
todo.DoUpdateMessages = true;
todo.DoBuildUserList = true;
return;
}
public static function smc_onPress(arg1:flash.events.MouseEvent):*
{
var Dia:*;
var buth:*;
var d:*;
var e:flash.events.MouseEvent;
var f:*;
var h:*;
var self:*;
var t:*;
var w:*;
var w1:*;
var w2:*;
var x:*;
var y:*;
var loc1:*;
t = undefined;
self = undefined;
Dia = undefined;
w = undefined;
h = undefined;
x = undefined;
y = undefined;
f = undefined;
d = undefined;
w1 = undefined;
w2 = undefined;
buth = undefined;
e = arg1;
t = e.currentTarget;
if (t.Par)
{
t = t.Par;
}
main.hint.HintOff();
if (t.t)
{
t.t.Press();
}
if (t.Radio != undefined)
{
if (todo.useRadio == undefined)
{
todo.useRadio = t.Radio;
chat.mainDlg.CreateSoundIcon("Radio", 2);
}
todo.useRadio = t.Radio;
return;
}
if (t.Gifts)
{
OpenGifts(t.Gifts);
}
else
{
if (t.xNum)
{
if (global.xc & 2048)
{
global.gUserNo = t.UserNo;
main.mcLoad.OpenByN(t.xNum);
}
else
{
xatlib.GotoXat(t.xNum);
}
}
else
{
if (t.UserNo)
{
PressUserName(t.UserNo, e.ctrlKey);
}
else
{
if (t.Power != undefined)
{
self = xatlib.FindUser(todo.w_userno);
if (todo.HasPower(self, t.Power))
{
xatlib.GeneralMessage(xconst.ST(237), xconst.ST(238, xconst.pssa[(t.Power + 1)]), 0);
Dia = main.box_layer.GeneralMessageH.Dia;
w = Dia.DiaBack.width;
h = Dia.DiaBack.height;
x = Dia.DiaBack.x;
y = Dia.DiaBack.y;
f = 8;
d = int(w / (f * 2 + 3));
w1 = int(w * f / (f * 2 + 3));
w2 = w1;
buth = 22;
new xBut(Dia, x + w - d - w1, y + h - buth - 20, w1, buth, "UnAssign", function (arg1:*):*
{
AssignRel(0, t);
return;
})
new xBut(Dia, x + d, y + h - buth - 20, w2, buth, "Assign", function (arg1:*):*
{
AssignRel(1, t);
return;
})
}
}
}
}
}
return;
}
public static function OpenGifts(arg1:*, arg2:int=1):*
{
var loc1:*;
loc1 = xatlib.FindUser(arg1);
if (loc1 < 0)
{
return;
}
todo.config["giftid"] = arg1 + "," + (todo.Users[loc1].registered ? todo.Users[loc1].registered : "") + (arg1 != todo.w_userno ? "" : "," + todo.w_d3 + "," + todo.w_dt);
if (arg2 == 0)
{
return;
}
if (arg2 == 2)
{
if (chat.sending_lc)
{
chat.sending_lc.send(chat.fromxat, "onMsg", 9, "config", todo.config);
}
return;
}
if (global.xc & 2048)
{
main.mcLoad.OpenByN(20044);
}
else
{
if (0)
{
if (todo.w_useroom != 5)
{
xatlib.GotoXat("20044");
}
}
}
return;
}
private static function AssignRel(arg1:*, arg2:*):*
{
main.box_layer.GeneralMessageH.Delete();
var loc1:*;
loc1 = new flash.xml.XMLDocument();
var loc2:*;
(loc2 = loc1.createElement("ap")).attributes.p = xatlib.xInt(arg2.Power).toString();
loc2.attributes.a = arg1;
loc1.appendChild(loc2);
var loc3:*;
loc3 = xatlib.XMLOrder(loc1, new Array("p", "a"));
network.socket.send(loc3);
return;
}
public static function SmilieLoad(arg1:flash.events.Event):*
{
var loc1:*;
var loc2:*;
loc2 = ((loc1 = arg1.currentTarget).del - 1);
loc1.del = loc2;
if (arg1.currentTarget.del < 0)
{
arg1.currentTarget.ns = new smiley(arg1.currentTarget, arg1.currentTarget.t);
arg1.currentTarget.removeEventListener(flash.events.Event.ENTER_FRAME, SmilieLoad);
}
return;
}
public static function DoSound(arg1:flash.events.MouseEvent):*
{
if (arg1.currentTarget.SF)
{
main.PlayMusic(arg1.currentTarget.SA);
return;
}
main.ProcessSounds(arg1.currentTarget.Snd, true);
return;
}
public static function AddImLink():*
{
if (todo.config["nomsnaim"])
{
return;
}
if (!main.utabsmc.tabs[1].Main)
{
return;
}
var loc1:*;
loc1 = new flash.display.MovieClip();
main.mcuserbackground.addChild(loc1);
main.uMessLst.push(loc1);
loc1.y = useryc;
var loc2:*;
loc2 = "(>10200) ";
if (ImInit)
{
loc2 = loc2 + xconst.ST(218);
}
else
{
loc2 = loc2 + xconst.ST(219);
}
useryc = useryc + 4 + AddMessageToMc(loc1, 0, loc2, 0, 1999, 0, 3);
return;
}
public static function BuildUserList():*
{
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
var loc12:*;
loc12 = undefined;
var loc13:*;
loc13 = undefined;
var loc14:*;
loc14 = undefined;
var loc15:*;
loc15 = undefined;
var loc16:*;
loc16 = undefined;
var loc17:*;
loc17 = undefined;
var loc18:*;
loc18 = false;
var loc19:*;
loc19 = undefined;
var loc20:*;
loc20 = undefined;
var loc21:*;
loc21 = undefined;
var loc1:*;
loc1 = flash.utils.getTimer();
var loc2:*;
loc2 = -1;
var loc3:*;
loc3 = !main.ctabsmc.TabIsPrivate() && todo.Pools.length > 1 && main.utabsmc.tabs[0].Main;
DeleteUserList();
var loc4:*;
loc4 = flash.utils.getTimer();
var loc5:*;
loc5 = new Object();
var loc6:*;
loc6 = todo.Users.length;
poin = new Array();
if (main.utabsmc.tabs[0].Main || main.utabsmc.tabs[1].Main)
{
loc7 = 0;
while (loc7 < loc6)
{
loc12 = 0;
if (todo.Users[loc7].u == todo.w_userno)
{
loc12 = 40000;
}
if (todo.Users[loc7].online != true)
{
if (main.utabsmc.tabs[1].Main == true && todo.Users[loc7].onsuper == true)
{
loc12 = loc12 + 20000;
}
}
else
{
loc12 = loc12 + 20000;
}
if (!(todo.Users[loc7].banned && !(todo.Users[loc7].flag0 & 131072)))
{
loc12 = loc12 + 10000;
}
if (!todo.Users[loc7].Stealth)
{
if (todo.Users[loc7].mainowner)
{
loc12 = loc12 + 4800;
}
if (todo.Users[loc7].owner)
{
loc12 = loc12 + 3600;
}
if (todo.Users[loc7].moderator)
{
loc12 = loc12 + 2400;
}
if (todo.Users[loc7].member)
{
loc12 = loc12 + 1200;
}
}
if (todo.Users[loc7].friend)
{
loc12 = loc12 + 600;
}
if (todo.HasPower(loc7, 35))
{
loc12 = loc12 + 400;
}
else
{
if (todo.HasPower(loc7, 1))
{
loc12 = loc12 + 300;
}
}
if (todo.Users[loc7].registered != undefined)
{
if ((loc14 = todo.Users[loc7].registered.length) <= 9)
{
loc12 = loc12 + 150 - loc14;
}
}
if (todo.Users[loc7].OnXat)
{
loc12 = loc12 + 75;
}
if (!(loc13 = todo.HasPower(loc7, 9)))
{
if (todo.Users[loc7].registered)
{
loc12 = loc12 + 38;
}
}
loc12 = (loc12 = (loc12 = (loc12 = loc12 + 16) * 50000000000) - todo.Users[loc7].u * 2) * 2;
poin.push({"points":loc12, "index":loc7});
if (todo.Users[loc7].Bride)
{
loc5[todo.Users[loc7].u] = {"b":todo.Users[loc7].Bride, "index":(poin.length - 1)};
}
loc7 = (loc7 + 1);
}
var loc22:*;
loc22 = 0;
var loc23:*;
loc23 = loc5;
for (loc7 in loc23)
{
loc8 = loc5[loc7].b;
if (!(loc5[loc8] && loc7 == loc5[loc8].b))
{
continue;
}
loc15 = poin[loc5[loc7].index].points;
loc16 = poin[loc5[loc8].index].points;
if (loc15 > loc16)
{
poin[loc5[loc8].index].points = (loc15 - 1);
continue;
}
poin[loc5[loc7].index].points = (loc16 - 1);
}
}
else
{
loc7 = 0;
while (loc7 < loc6)
{
poin.push({"points":todo.Users[loc7].TickCnt, "index":loc7});
loc7 = (loc7 + 1);
}
}
poin.sortOn("points", Array.DESCENDING | Array.NUMERIC);
if (todo.DoBuildUserListScrollUp)
{
if (!todo.bMobile && !(main.uscrollmc.Scrolling == true))
{
main.uscrollmc.position = 0;
main.onUserScrollChange();
}
}
var loc9:*;
loc9 = 0;
if (loc3)
{
loc9 = main.LookupPool(todo.w_pool);
AddPoolToList(loc9);
}
AddImLink();
useryc2 = useryc;
var loc10:*;
loc10 = todo.Users.length;
var loc11:*;
loc11 = 0;
while (loc11 < loc10)
{
loc17 = poin[loc11].index;
todo.Users[loc17].Vis = false;
todo.Users[loc17].ignored = network.OnIgnoreList(todo.Users[loc17].u);
if (todo.Users[loc17].u != -1)
{
loc18 = false;
if (main.utabsmc.tabs[1].Main)
{
loc18 = todo.Users[loc17].friend || xatlib.xInt(todo.Users[loc17].Location) >= 128;
if (todo.Users[loc17].u == todo.w_userno)
{
loc18 = false;
}
}
else
{
if (main.utabsmc.tabs[0].Main)
{
if (main.ctabsmc.TabIsPrivate())
{
if (main.ctabsmc.TabUser() == todo.Users[loc17].u)
{
loc18 = true;
}
}
else
{
loc18 = !(todo.Users[loc17].online == undefined);
loc19 = todo.Message.length;
if (todo.Users[loc17].online == false && loc19 < 40)
{
loc18 = false;
loc20 = 0;
while (loc20 < loc19)
{
if (todo.Message[loc20].u == todo.Users[loc17].u)
{
loc18 = true;
}
loc20 = (loc20 + 1);
}
}
}
if (todo.w_userno == todo.Users[loc17].u)
{
loc18 = true;
}
}
else
{
loc18 = todo.Users[loc17].TickCnt;
}
}
if (loc18)
{
todo.Users[loc17].Vis = true;
DoBride(loc17);
if (loc2 >= 0 && todo.Users[loc17].Bride == todo.Users[loc2].u && todo.Users[loc2].Bride == todo.Users[loc17].u)
{
DoBride(loc17, 1);
DoBride(loc2, 1);
if (todo.Users[loc17].aFlags & 1)
{
todo.Users[loc2].M_St = todo.Users[loc2].M_St | 16;
}
else
{
todo.Users[loc2].M_St = todo.Users[loc2].M_St | 32;
}
}
AddUserToList(loc2);
loc2 = loc17;
}
}
loc11 = (loc11 + 1);
}
AddUserToList(loc2);
if (loc3)
{
loc21 = 0;
while (loc21 < todo.Pools.length)
{
if (loc21 != loc9)
{
AddPoolToList(loc21);
}
loc21 = (loc21 + 1);
}
}
useryc3 = useryc;
return;
}
public static function DoBride(arg1:*, arg2:*=0):*
{
todo.Users[arg1].M_St = 0;
if (todo.Users[arg1].registered == undefined)
{
return;
}
if (todo.HasPower(arg1, 9))
{
return;
}
if (todo.Users[arg1].Bride && !arg2)
{
if (todo.Users[arg1].aFlags & 1)
{
todo.Users[arg1].M_St = 4;
}
else
{
todo.Users[arg1].M_St = 2;
}
}
else
{
todo.Users[arg1].M_St = 1;
}
if (!todo.Users[arg1].VIP || todo.HasPower(arg1, 2))
{
todo.Users[arg1].M_St = todo.Users[arg1].M_St | 8;
}
todo.Users[arg1].M_St = todo.Users[arg1].M_St | 128;
return;
}
public static function ClearLists(arg1:Boolean):*
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc1:*;
loc1 = 0;
var loc2:*;
loc2 = todo.Message.length;
p = null;
loc4 = 0;
while (loc4 < loc2)
{
if (todo.Message[loc1].s & 2)
{
loc1 = (loc1 + 1);
}
else
{
xmessage.DeleteOneMessageMc(loc1);
todo.Message.splice(loc1, 1);
}
loc4 = (loc4 + 1);
}
DeleteUserList(1);
loc3 = 0;
while (loc3 < todo.Users.length)
{
if ((arg1 || !(todo.Users[loc3].u == todo.w_userno)) && xatlib.xInt(todo.Users[loc3].Location) < 128)
{
todo.Users.splice(loc3, 1);
continue;
}
loc3 = (loc3 + 1);
}
return;
}
public static function DeleteOneUserMc(arg1:Number):*
{
if (arg1 < 0)
{
return;
}
var loc1:*;
loc1 = todo.Users[arg1];
if (!loc1)
{
return;
}
if (!loc1.mc)
{
return;
}
if (loc1.mc.av1 && loc1.mc.parent)
{
loc1.mc.parent.removeChild(loc1.mc.av1);
}
loc1.mc.av1 = undefined;
if (loc1.mc.parent)
{
loc1.mc.parent.removeChild(loc1.mc);
}
loc1.mc = undefined;
todo.DoBuildUserList = true;
return;
}
public static function DeleteUserList(arg1:*=false):*
{
var loc3:*;
loc3 = undefined;
useryc = 9;
while (1)
{
if (!(loc3 = main.uMessLst.pop()))
{
break;
}
if (loc3.av1 != undefined)
{
loc3.removeChild(loc3.av1);
}
if (!loc3.parent)
{
continue;
}
loc3.parent.removeChild(loc3);
}
var loc1:*;
loc1 = todo.Users.length;
var loc2:*;
loc2 = 0;
while (loc2 < loc1)
{
if (arg1)
{
DeleteOneUserMc(loc2);
}
else
{
if (todo.Users[loc2] != undefined)
{
if (todo.Users[loc2].mc != undefined)
{
todo.Users[loc2].mc.visible = false;
if (todo.Users[loc2].mc.av1 != undefined)
{
todo.Users[loc2].mc.av1.visible = false;
if (todo.Users[loc2].mc.av1.Gag)
{
todo.Users[loc2].mc.av1.HatsOff();
}
}
}
}
}
loc2 = (loc2 + 1);
}
return;
}
public static function AddPoolToList(arg1:Number):*
{
var loc5:*;
loc5 = undefined;
var loc6:*;
loc6 = undefined;
var loc7:*;
loc7 = undefined;
if (main.utabsmc.tabs[0].Main == false)
{
return;
}
var loc1:*;
loc1 = xatlib.xInt(todo.Pools[arg1]);
var loc2:*;
loc2 = xatlib.xInt((xatlib.xInt(todo.w_useroom) + loc1) % xconst.pool1.length);
var loc3:*;
if ((loc3 = xatlib.xInt(xatlib.xInt(todo.w_useroom) - loc1)) < 0)
{
loc3 = 2147483647 - loc3;
}
loc3 = loc3 % xconst.pool2.length;
var loc4:*;
loc4 = xconst.pool1[loc2] + " " + xconst.pool2[loc3];
if (loc1 < 3)
{
loc1 < 3;
var loc9:*;
loc5 = loc9 = todo.gconfig["g114"];
}
if (loc1 < 3)
{
loc9 = loc1;
switch (loc9)
{
case 0:
{
loc6 = loc5["m"];
break;
}
case 1:
{
loc6 = loc5["t"];
break;
}
case 2:
{
if (todo.HasPowerA(todo.w_GroupPowers, 126))
{
loc6 = loc5["b"];
}
break;
}
}
if (loc6 && loc6.length > 2)
{
loc4 = loc6;
if (loc1 >= 1)
{
loc7 = loc1 != 1 ? 9849600 : xatlib.RankColor(xatlib.NoToRank(loc5["rnk"]));
}
}
}
var loc8:*;
loc8 = new xBut(main.mcuserbackground, 4, useryc + 3, main.upw - xatlib.NX(24), 20, loc4, PoolPressed, 0, 5);
if (loc7)
{
xatlib.McSetRGB(loc8.but_back, loc7);
loc8.SetTextCol(0);
}
loc8.But.w = arg1;
main.uMessLst.push(loc8);
useryc = useryc + 23;
return;
}
public static function PoolPressed(arg1:flash.events.MouseEvent):*
{
if (todo.Pools[arg1.currentTarget.w] != todo.w_pool)
{
network.NetworkSetPool(todo.Pools[arg1.currentTarget.w]);
}
return;
}
public static function AddUserToList(arg1:Number):*
{
var loc7:*;
loc7 = undefined;
var loc8:*;
loc8 = undefined;
var loc9:*;
loc9 = undefined;
var loc10:*;
loc10 = undefined;
var loc11:*;
loc11 = undefined;
var loc12:*;
loc12 = undefined;
var loc13:*;
loc13 = undefined;
var loc14:*;
loc14 = undefined;
var loc15:*;
loc15 = undefined;
var loc16:*;
loc16 = undefined;
var loc17:*;
loc17 = undefined;
var loc18:*;
loc18 = undefined;
var loc19:*;
loc19 = undefined;
var loc20:*;
loc20 = undefined;
var loc21:*;
loc21 = undefined;
if (arg1 < 0)
{
return;
}
var loc1:*;
loc1 = todo.Users[arg1].u;
var loc2:*;
loc2 = todo.Users[arg1].n;
var loc3:*;
loc3 = 0;
var loc4:*;
if (!(loc4 = todo.Users[arg1].s && todo.HasPower(arg1, 54) && (todo.Macros == undefined || todo.Macros["SetStatus"] == undefined) && !todo.Users[arg1].banned))
{
delete todo.Users[arg1].s;
}
var loc5:*;
loc5 = undefined;
if (main.utabsmc.tabs[2] && main.utabsmc.tabs[2].Main)
{
loc5 = "tickle";
}
if (main.utabsmc.tabs[0].Main && xconst.f_Live & todo.FlagBits && !todo.Users[arg1].mainowner && !todo.Users[arg1].owner && !todo.Users[arg1].moderator && !todo.Users[arg1].member && !(todo.Users[arg1].u == 4294967295) && !(todo.Users[arg1].u == todo.w_userno) && !(todo.Users[arg1].u == 0))
{
return;
}
loc2 = "" + loc2;
var loc6:*;
if (!(loc6 = useryc < main.uph + main.uscrollmc.Scr_position + 16 && useryc > main.uscrollmc.Scr_position - 16) && !(todo.Users[arg1].mc == undefined))
{
DeleteOneUserMc(arg1);
}
if (todo.Users[arg1].mc == undefined && loc6)
{
if (loc5)
{
loc7 = new xSprite();
new smiley(loc7, loc5);
}
else
{
(loc7 = new chatter2()).Options = 2147483648;
if (loc1 == todo.w_userno && todo.Users[arg1].flag0 & 1024)
{
loc7.alpha = 0.2;
}
loc11 = undefined;
loc12 = 49152;
if (todo.Users[arg1].flag0 & 2048)
{
loc7.Options = loc7.Options | chatter2.Mob;
}
loc13 = true;
if (main.utabsmc.tabs[0].Main != true)
{
if (todo.Users[arg1].ignored)
{
loc12 = 6316128;
}
if (todo.Users[arg1].onsuper != true)
{
loc12 = 16711680;
}
}
else
{
if (todo.Users[arg1].online)
{
if (todo.HasPower(arg1, 30))
{
loc11 = 16738740;
}
if (todo.HasPower(arg1, 64))
{
loc11 = 128;
}
if (todo.Users[arg1].member)
{
loc12 = 6645247;
}
if (todo.Users[arg1].moderator)
{
loc13 = false;
loc12 = 16777215;
}
if (!todo.Users[arg1].Stealth)
{
if (todo.Users[arg1].owner || todo.Users[arg1].mainowner)
{
loc13 = false;
loc12 = 16750848;
}
}
if (todo.HasPower(arg1, 35))
{
loc13 = true;
loc11 = 8388736;
}
if (todo.HasPower(arg1, 153))
{
loc13 = true;
loc11 = 16041823;
}
if (todo.Users[arg1].u == 42)
{
loc13 = true;
loc11 = 1;
}
if (todo.Users[arg1].aFlags & 1 << 21)
{
loc13 = true;
loc11 = 1304549;
}
if (!todo.HasPower(arg1, 67) || todo.bThin)
{
if (!loc13 || loc11 == undefined)
{
loc11 = loc12;
}
loc12 = undefined;
}
}
else
{
if (!main.ctabsmc.TabIsPrivate() || !(todo.Users[arg1].onsuper == true))
{
loc12 = 16711680;
}
}
if (loc12 != 16711680)
{
if (todo.Users[arg1].ignored)
{
loc12 = 6316128;
loc11 = undefined;
}
if (todo.Users[arg1].banned && !(todo.Users[arg1].flag0 & 131072))
{
loc12 = 9849600;
loc11 = undefined;
}
}
}
if (loc11 == undefined)
{
loc11 = loc12;
loc12 = undefined;
}
loc7.ColP1 = loc11;
loc7.ColP2 = loc12;
}
loc7.UserNo = loc1;
main.mcuserbackground.addChild(loc7);
loc7.x = 5;
loc7.addEventListener(flash.events.MouseEvent.ROLL_OVER, ChatterRollover);
loc7.addEventListener(flash.events.MouseEvent.ROLL_OUT, main.hint.HintOff);
loc7.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, ChatterOnPress);
loc7.buttonMode = true;
if (loc11 == 16041823)
{
loc7.Pawn = "p1gold";
if (todo.HasPower(arg1, 35) && todo.Users[arg1].Powers[0] & 1)
{
loc7.Options = loc7.Options | chatter2.flash;
}
}
if (todo.HasPower(arg1, 12))
{
while (1)
{
loc14 = todo.Users[arg1];
if ((loc15 = todo.Users[arg1].n.split("(hat"))[1] != undefined)
{
if ((loc16 = (loc15 = loc15[1].split(")"))[0].split("#"))[1])
{
};
loc17 = loc16[1].charAt(0);
if (xconst.Pawns && network.YC < xconst.Pawns["time"])
{
loc19 = loc16[1].charAt(1);
if (xconst.Pawns[loc19] && todo.HasPower(arg1, xconst.Pawns[loc19][0]))
{
loc7.Pawn = xconst.Pawns[loc19][1];
}
if (loc17 != "h")
{
};
loc16[1] = loc17;
}
loc18 = todo.Users[arg1].Powers[0] & 1;
if (loc17 == "g" && todo.HasPower(arg1, -3))
{
loc18 = loc18 | 2;
}
if (!(loc16[1] == "z") || !todo.HasPower(arg1, 99) || todo.Users[arg1].Bride)
{
loc7.Hat = loc18 + ";" + xatlib.DecodeColor(loc16[2]) + ";" + loc16[1];
}
else
{
loc7.Options = loc7.Options | chatter2.Single;
}
}
}
}
if (todo.Users[arg1].flag0 & 8192)
{
loc7.Pawn = "p1bot";
}
if (todo.Users[arg1].w == 184)
{
loc7.Pawn = "p1zip";
}
if (todo.Users[arg1].w == 176)
{
loc7.flag2 = 1;
}
loc8 = new flash.display.MovieClip();
main.mcuserbackground.addChild(loc8);
loc8.x = loc7.x;
todo.Users[arg1].mc = loc8;
todo.Users[arg1].mc.av1 = loc7;
loc9 = [];
if (todo.HasPower(arg1, 21))
{
loc9 = NameCol(arg1);
}
if (loc1 == todo.w_userno || todo.Users[arg1].friend)
{
loc2 = " " + loc2 + " ";
}
if (todo.Users[arg1].banned && !todo.Users[arg1].friend && !todo.Users[arg1].w || todo.Users[arg1].forever)
{
if (todo.Users[arg1].flag0 & 4096)
{
loc2 = "" + xconst.ST(236);
}
else
{
loc2 = "" + xconst.ST(25);
}
}
loc10 = xatlib.xInt(todo.Users[arg1].xNum);
if (xatlib.xInt(todo.Users[arg1].Location) >= 128)
{
loc10 = 10000 + todo.Users[arg1].Location;
}
if (loc10)
{
loc2 = (loc9[1] != undefined ? "" : " ") + "(>" + loc10 + (loc10 == 10001 && todo.Users[arg1].DJ ? "dj" : "") + ") " + loc2;
}
loc3 = AddMessageToMc(loc8, 2, loc2, 0 + 17 - 5, 1999, loc4 ? -10 : -5, loc1, undefined, loc9[0], loc9[1]);
if (loc4)
{
(loc20 = new flash.text.TextField()).x = 4 + 12;
loc20.y = 16 - 10;
loc20.width = 200;
loc20.height = 20;
loc8.addChild(loc20);
main.fmts.color = 2105376;
loc20.defaultTextFormat = main.fmts;
loc20.text = todo.Users[arg1].s;
}
}
if (!(todo.Users[arg1].mc == undefined) && !(todo.Users[arg1].mc.av1 == undefined))
{
loc7 = todo.Users[arg1].mc.av1;
loc7.Options = loc7.Options & (chatter2.Mob | chatter2.Single | chatter2.flash);
if (todo.Users[arg1].gagged)
{
loc7.Options = loc7.Options | chatter2.Gag;
}
if (todo.Users[arg1].flag0 & 512)
{
loc7.Options = loc7.Options | chatter2.sinbin;
}
todo.Users[arg1].mc.visible = true;
todo.Users[arg1].mc.av1.visible = true;
loc7.flag0 = todo.Users[arg1].flag0;
loc21 = useryc + 5;
if (loc4)
{
loc21 = loc21 + 6;
}
loc7.y = loc21;
todo.Users[arg1].mc.y = loc21 + 1;
todo.Users[arg1].M_St = todo.Users[arg1].M_St & !128;
if (todo.Users[arg1].M_St & 4)
{
loc7.Options = loc7.Options | chatter2.BFF2;
}
else
{
if (todo.Users[arg1].M_St & 2)
{
loc7.Options = loc7.Options | chatter2.Married2;
}
else
{
if (todo.Users[arg1].M_St & 1)
{
loc7.Options = loc7.Options | chatter2.Star;
}
}
}
if (todo.Users[arg1].M_St & 8)
{
loc7.ColF = 65793;
}
if (todo.Users[arg1].M_St & 16)
{
loc7.Options = loc7.Options | chatter2.BFF;
}
if (todo.Users[arg1].M_St & 32)
{
loc7.Options = loc7.Options | chatter2.Married;
}
if (loc7 as chatter2)
{
loc7.Go();
}
}
if (loc3 < 16)
{
loc3 = 16;
}
if (loc4)
{
loc3 = 22;
}
useryc = useryc + loc3 + 4;
return;
}
static function HatLoaded(arg1:*):*
{
var loc1:*;
loc1 = arg1.currentTarget.loader.contentLoaderInfo.content;
loc1.Go(loc1.parent.parent.HAT);
return;
}
static function HatUnLoaded(arg1:*):*
{
arg1.currentTarget.unloadAndStop(true);
return;
}
public static function ChatterRollover(arg1:flash.events.MouseEvent):*
{
main.hint.Hint(0, 0, xatlib.GetUserStatus(xatlib.FindUser(arg1.currentTarget.UserNo)), true, 1, undefined, 0, arg1.currentTarget);
return;
}
public static function ChatterOnPress(arg1:flash.events.MouseEvent):*
{
main.hint.HintOff();
if (arg1.currentTarget.UserNo == 0 || arg1.currentTarget.UserNo == todo.w_userno)
{
main.openDialog(1);
}
else
{
if (arg1.currentTarget.UserNo != 4294967295)
{
if (arg1.ctrlKey && todo.Macros && todo.Macros["rapid"] && todo.HasPowerA(todo.w_Powers, 91, todo.w_Mask))
{
DoRapid(arg1.currentTarget.UserNo);
}
else
{
main.openDialog(2, arg1.currentTarget.UserNo);
}
}
}
return;
}
static function DoRapid(arg1:*):*
{
var loc3:*;
loc3 = undefined;
var loc4:*;
loc4 = undefined;
var loc5:*;
loc5 = undefined;
var loc1:*;
loc1 = xatlib.FindUser(arg1);
if (loc1 == -1)
{
return;
}
var loc2:*;
loc2 = todo.Macros["rapid"].split(",");
var loc6:*;
loc6 = 0;
loc2[1] = Number(loc2[1]);
if (isNaN(loc2[1]))
{
loc2[1] = 1;
}
var loc7:*;
loc7 = loc2[0];
switch (loc7)
{
case "ignore":
{
network.NetworkIgnore(arg1);
break;
}
case "unban":
{
if (todo.Users[loc1].banned)
{
loc3 = "u";
}
break;
}
case "ban":
{
if (!todo.Users[loc1].banned)
{
loc3 = "g";
}
break;
}
case "gag":
{
if (!todo.Users[loc1].gagged)
{
loc3 = "gg";
}
break;
}
case "mute":
{
if (!todo.Users[loc1].banned)
{
loc3 = "gm";
}
break;
}
case "member":
{
if (!todo.Users[loc1].member)
{
loc4 = "e";
}
break;
}
case "guest":
{
if (todo.Users[loc1].member || todo.Users[loc1].moderator || todo.Users[loc1].owner)
{
loc4 = "r";
}
break;
}
default:
{
if (!todo.Users[loc1].banned)
{
loc7 = 0;
var loc8:*;
loc8 = xconst.Puzzle;
for (loc5 in loc8)
{
if (loc2[0].substr(0, xconst.Puzzle[loc5].length) != xconst.Puzzle[loc5])
{
continue;
}
loc3 = "g";
loc6 = loc5;
break;
}
}
}
}
if (loc3)
{
network.NetworkGagUser(loc3, arg1, !(loc3 == "u"), xatlib.xInt(loc2[1] * 3600), "rapid", loc6);
}
if (loc4)
{
network.NetworkMakeUser(arg1, loc4);
}
return;
}
{
mspos = undefined;
useryc = 0;
useryc2 = 0;
useryc3 = 0;
poin = new Array();
McCnt = 0;
McTot = 0;
Social = {"tc":0};
}
private static const keywords:*={"wiki":"wiki", "twitter":"twitter", "search":"search", "power":"power", "powers":"power", "myspace":"mys", "doodle":1, "trade":2, "smilie":3, "smilies":3, "smiley":3, "msn":4, "aim":4, "messenger":4, "register":5, "login":6, "buy":7, "coin":7, "coins":7, "xats":7, "subscriber":7, "gift":8};
static var mspos:*;
static var SkipSmilies:*;
static var yc2:*;
public static var xPos:*;
public static var ImInit:*;
public static var SmB:*;
static var Ronce:*;
static var useryc:Number=0;
static var DeleteNumber:Number;
public static var useryc2:*=0;
public static var useryc3:*=0;
public static var poin:*;
public static var McCnt:*=0;
public static var McTot:*=0;
public static var p:*;
public static var NoOfM:int;
private static var LastUserTab:int;
public static var Social:*;
private static var FirstC:*;
}
}