Combined Code
movieClip 4 vid_320x240 {
}
movieClip 6 vid_640x480 {
}
movieClip 20480 __Packages.GizmoKnob2 {
#initclip
if (!GizmoKnob2) {
_global.GizmoKnob2 = function (_up) {
this.up = _up;
this.setup();
};
var v1 = _global.GizmoKnob2.prototype;
v1.setup_base = function () {
this.mc = gfx2.create_clip(this.up.mc, null);
this.mc.style = this.up.mc.style;
this.gizmos = new Array();
this.active = true;
this.focus = null;
this.focus_data = null;
this.top = this.up.top;
if (this.top == null) {
this.top = this;
}
};
v1.clean_base = function () {
var v2 = 0;
goto 714;
for (;;) {
++v2;
label 714:
if (v2 >= this.gizmos.length) break;
if (this.gizmos[v2].active) {
this.gizmos[v2].clean();
}
}
this.mc.removeMovieClip();
this.mc = null;
};
v1.update_base = function () {
this.mc._x = this.x;
this.mc._y = this.y;
var v2 = 0;
goto 909;
for (;;) {
++v2;
label 909:
if (v2 >= this.gizmos.length) break;
if (this.gizmos[v2].active) {
this.gizmos[v2].mc._visible = true;
this.gizmos[v2].update();
} else {
this.gizmos[v2].mc._visible = false;
}
}
};
_global.GizmoKnob2.dupe_snapshot = function (snapshot) {
var v3 = {};
v3.key = snapshot.key;
v3.key_on = snapshot.key_on;
v3.key_off = snapshot.key_off;
v3.x = snapshot.x;
v3.y = snapshot.y;
v3.frame = snapshot.frame;
return v3;
};
v1.input_base = function (snapshot) {
var v5 = GizmoKnob2.dupe_snapshot(snapshot);
this.mc.localToGlobal(v5);
var v3 = 0;
goto 1281;
for (;;) {
++v3;
label 1281:
if (v3 >= this.gizmos.length) break;
if (this.gizmos[v3].active) {
this.gizmos[v3].mc.globalToLocal(v5);
this.gizmos[v3].input(v5);
this.gizmos[v3].mc.localToGlobal(v5);
}
}
return this.top.focus;
};
v1.child = function (g) {
var v3 = this.gizmos.length;
this.gizmos[v3] = g;
return g;
};
v1.set_area = function (_x, _y, _w, _h) {
this.x = _x;
this.y = _y;
this.w = _w;
this.h = _h;
};
v1.draw_mask = function (px, py) {
gfx2.setscroll(this.mc, px, py, this.w, this.h);
};
v1.set_knob = function (xx, yy) {
if (xx != null) {
this.x_knob = xx;
if (this.x_knob < 0) {
this.x_knob = 0;
}
if (this.x_knob > 1) {
this.x_knob = 1;
}
}
if (yy != null) {
this.y_knob = yy;
if (this.y_knob < 0) {
this.y_knob = 0;
}
if (this.y_knob > 1) {
this.y_knob = 1;
}
}
if (this.up.w > this.w) {
this.x = this.x_knob * (this.up.w - this.w);
} else {
this.x_knob = 0;
this.x = 0;
}
if (this.up.h > this.h) {
this.y = this.y_knob * (this.up.h - this.h);
} else {
this.y_knob = 0;
this.y = 0;
}
};
v1.setup = function () {
this.setup_base();
};
v1.clean = function () {
this.clean_base();
};
v1.update = function () {
if (this.up.w > this.w) {
this.x_knob = this.x / (this.up.w - this.w);
} else {
this.x_knob = 0;
}
if (this.up.h > this.h) {
this.y_knob = this.y / (this.up.h - this.h);
} else {
this.y_knob = 0;
}
this.update_base();
};
v1.input = function (snapshot) {
if (this.top.focus == this) {
var v3 = GizmoKnob2.dupe_snapshot(snapshot);
this.mc.localToGlobal(v3);
this.up.mc.globalToLocal(v3);
this.mc_base._visible = false;
this.mc_over._visible = false;
this.mc_down._visible = true;
this.x = this.top.focus_data.orig_x + v3.x - this.top.focus_data.x;
this.y = this.top.focus_data.orig_y + v3.y - this.top.focus_data.y;
if (this.x + this.w > this.up.w) {
this.x = this.up.w - this.w;
}
if (this.y + this.h > this.up.h) {
this.y = this.up.h - this.h;
}
if (this.x < 0) {
this.x = 0;
}
if (this.y < 0) {
this.y = 0;
}
if (snapshot.key_off & 1) {
this.onClick(this.top.focus);
this.top.focus = null;
return this.top.focus;
}
this.top.focus = this.input_base(snapshot);
return this.top.focus;
}
if (this.top.focus == null && (snapshot.x > 0 && (snapshot.y > 0 && (snapshot.x < this.w && snapshot.y < this.h)))) {
if (snapshot.key_on & 1) {
this.top.focus = this;
this.top.focus_data = GizmoKnob2.dupe_snapshot(snapshot);
this.mc.localToGlobal(this.top.focus_data);
this.up.mc.globalToLocal(this.top.focus_data);
this.top.focus_data.orig_x = this.x;
this.top.focus_data.orig_y = this.y;
this.mc_base._visible = false;
this.mc_over._visible = false;
this.mc_down._visible = true;
return this.top.focus;
} else {
this.mc_base._visible = false;
this.mc_over._visible = true;
this.mc_down._visible = false;
}
this.top.focus = this.input_base(snapshot);
return this.top.focus;
}
this.mc_base._visible = true;
this.mc_over._visible = false;
this.mc_down._visible = false;
this.top.focus = this.input_base(snapshot);
return this.top.focus;
};
ASSetPropFlags(v1, null, 1);
}
#endinitclip
}
movieClip 20481 __Packages.GizmoButt2 {
#initclip
if (!GizmoButt2) {
_global.GizmoButt2 = function (_up) {
this.up = _up;
this.setup();
};
var v1 = _global.GizmoButt2.prototype;
v1.setup_base = function () {
this.mc = gfx2.create_clip(this.up.mc, null);
this.mc.style = this.up.mc.style;
this.gizmos = new Array();
this.active = true;
this.focus = null;
this.focus_data = null;
this.top = this.up.top;
if (this.top == null) {
this.top = this;
}
};
v1.clean_base = function () {
var v2 = 0;
goto 691;
for (;;) {
++v2;
label 691:
if (v2 >= this.gizmos.length) break;
if (this.gizmos[v2].active) {
this.gizmos[v2].clean();
}
}
this.mc.removeMovieClip();
this.mc = null;
};
v1.update_base = function () {
this.mc._x = this.x;
this.mc._y = this.y;
var v2 = 0;
goto 886;
for (;;) {
++v2;
label 886:
if (v2 >= this.gizmos.length) break;
if (this.gizmos[v2].active) {
this.gizmos[v2].mc._visible = true;
this.gizmos[v2].update();
} else {
this.gizmos[v2].mc._visible = false;
}
}
};
_global.GizmoButt2.dupe_snapshot = function (snapshot) {
var v3 = {};
v3.key = snapshot.key;
v3.key_on = snapshot.key_on;
v3.key_off = snapshot.key_off;
v3.x = snapshot.x;
v3.y = snapshot.y;
v3.frame = snapshot.frame;
return v3;
};
v1.input_base = function (snapshot) {
var v5 = GizmoButt2.dupe_snapshot(snapshot);
this.mc.localToGlobal(v5);
var v3 = 0;
goto 1258;
for (;;) {
++v3;
label 1258:
if (v3 >= this.gizmos.length) break;
if (this.gizmos[v3].active) {
this.gizmos[v3].mc.globalToLocal(v5);
this.gizmos[v3].input(v5);
this.gizmos[v3].mc.localToGlobal(v5);
}
}
return this.top.focus;
};
v1.child = function (g) {
var v3 = this.gizmos.length;
this.gizmos[v3] = g;
return g;
};
v1.set_area = function (_x, _y, _w, _h) {
this.x = _x;
this.y = _y;
this.w = _w;
this.h = _h;
};
v1.draw_mask = function (px, py) {
gfx2.setscroll(this.mc, px, py, this.w, this.h);
};
v1.setup = function () {
this.setup_base();
this.mc.cacheAsBitmap = true;
};
v1.clean = function () {
this.clean_base();
};
v1.update = function () {
this.update_base();
};
v1.input = function (snapshot) {
if (this.top.focus == this) {
var v3 = GizmoButt2.dupe_snapshot(snapshot);
this.mc.localToGlobal(v3);
this.up.mc.globalToLocal(v3);
if (snapshot.x > 0 && (snapshot.y > 0 && (snapshot.x < this.w && snapshot.y < this.h))) {
if (snapshot.key_off & 1) {
this.top.focus = null;
this.mc_base._visible = true;
this.mc_over._visible = false;
this.mc_down._visible = false;
this.onClick(this);
return this.top.focus;
}
this.mc_base._visible = false;
this.mc_over._visible = false;
this.mc_down._visible = true;
} else {
this.mc_base._visible = true;
this.mc_over._visible = false;
this.mc_down._visible = false;
if (snapshot.key_off & 1) {
this.top.focus = null;
return this.top.focus;
}
}
this.update();
this.input_base(snapshot);
return this.top.focus;
}
if (this.top.focus == null && (snapshot.x > 0 && (snapshot.y > 0 && (snapshot.x < this.w && snapshot.y < this.h)))) {
if (snapshot.key_on & 1) {
this.top.focus = this;
this.mc_base._visible = false;
this.mc_over._visible = false;
this.mc_down._visible = true;
return this.top.focus;
} else {
this.mc_base._visible = false;
this.mc_over._visible = true;
this.mc_down._visible = false;
}
this.input_base(snapshot);
return this.top.focus;
}
this.mc_base._visible = true;
this.mc_over._visible = false;
this.mc_down._visible = false;
this.input_base(snapshot);
return this.top.focus;
};
ASSetPropFlags(v1, null, 1);
}
#endinitclip
}
movieClip 20482 __Packages.Gizmo2 {
#initclip
if (!Gizmo2) {
_global.Gizmo2 = function (_up) {
this.up = _up;
this.setup();
};
var v1 = _global.Gizmo2.prototype;
v1.setup_base = function () {
this.mc = gfx2.create_clip(this.up.mc, null);
this.mc.style = this.up.mc.style;
this.gizmos = new Array();
this.active = true;
this.focus = null;
this.focus_data = null;
this.top = this.up.top;
if (this.top == null) {
this.top = this;
}
};
v1.clean_base = function () {
var v2 = 0;
goto 641;
for (;;) {
++v2;
label 641:
if (v2 >= this.gizmos.length) break;
if (this.gizmos[v2].active) {
this.gizmos[v2].clean();
}
}
this.mc.removeMovieClip();
this.mc = null;
};
v1.update_base = function () {
this.mc._x = this.x;
this.mc._y = this.y;
var v2 = 0;
goto 836;
for (;;) {
++v2;
label 836:
if (v2 >= this.gizmos.length) break;
if (this.gizmos[v2].active) {
this.gizmos[v2].mc._visible = true;
this.gizmos[v2].update();
} else {
this.gizmos[v2].mc._visible = false;
}
}
};
_global.Gizmo2.dupe_snapshot = function (snapshot) {
var v3 = {};
v3.key = snapshot.key;
v3.key_on = snapshot.key_on;
v3.key_off = snapshot.key_off;
v3.x = snapshot.x;
v3.y = snapshot.y;
v3.frame = snapshot.frame;
return v3;
};
v1.input_base = function (snapshot) {
var v5 = Gizmo2.dupe_snapshot(snapshot);
this.mc.localToGlobal(v5);
var v3 = 0;
goto 1208;
for (;;) {
++v3;
label 1208:
if (v3 >= this.gizmos.length) break;
if (this.gizmos[v3].active) {
this.gizmos[v3].mc.globalToLocal(v5);
this.gizmos[v3].input(v5);
this.gizmos[v3].mc.localToGlobal(v5);
}
}
return this.top.focus;
};
v1.child = function (g) {
var v3 = this.gizmos.length;
this.gizmos[v3] = g;
return g;
};
v1.set_area = function (_x, _y, _w, _h) {
this.x = _x;
this.y = _y;
this.w = _w;
this.h = _h;
};
v1.draw_mask = function (px, py) {
gfx2.setscroll(this.mc, px, py, this.w, this.h);
};
v1.setup = function () {
this.setup_base();
};
v1.clean = function () {
this.clean_base();
};
v1.update = function () {
this.update_base();
};
v1.input = function (snapshot) {
this.focus = this.input_base(snapshot);
return this.focus;
};
ASSetPropFlags(v1, null, 1);
}
#endinitclip
}
movieClip 20483 __Packages.WetVPlay2 {
#initclip
if (!WetVPlay2) {
_global.WetVPlay2 = function (_up) {
this.up = _up;
this.version = 'X192342X_WETV_VERSION_STRING_X192342X=2010.12.28.23.59.59=X192342X_WETV_VERSION_STRING_X192342X';
};
var v1 = _global.WetVPlay2.prototype;
v1.delegate = function (f, d, i) {
return com.dynamicflash.utils.Delegate.create(this, f, d, i);
};
v1.rnd_seed = function (n) {
this.rnd_num = n & 65535;
};
v1.rnd = function () {
this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537;
return this.rnd_num;
};
v1.setup = function (_nojoin, _screensize) {
this.info = [];
this.info.vid = '';
this.info.title = '';
this.info.len = 0;
this.info.lock = 0;
this.info.pos = 0;
this.screensize_x = 640;
this.screensize_y = 480;
if (_screensize) {
var v6 = _screensize.split('x');
this.screensize_x = Math.floor(v6[0]);
this.screensize_y = Math.floor(v6[1]);
}
this.nojoin = _nojoin;
this.mc = gfx2.create_clip(this.up.mc, null);
this.mc.vid = gfx2.create_clip(this.mc, null);
this.vid = gfx2.create_clip(this.mc.vid, null);
this.over = gfx2.create_clip(this.mc, null);
this.vid2 = gfx2.create_clip(this.mc, null);
this.over.onRelease = this.delegate(this.onRelease);
this.over.hitArea = gfx2.create_clip(this.mc, null);
gfx2.clear(this.over.hitArea);
gfx2.draw_box(this.over.hitArea, 0, 0, 0, this.screensize_x, this.screensize_y);
this.over.hitArea._visible = false;
this.loader = {};
this.loader.mcloader = new MovieClipLoader();
this.show_youtube();
this.oldState = 0;
};
v1.clean = function () {
this.hide_youtube();
this.mc.removeMovieClip();
this.mc = null;
};
v1.hide_youtube = function () {
this.vid.mute();
this.vid.stopVideo();
this.vid.clearVideo();
this.vid.loadVideoById('00000000000', 0, 'small');
this.vid.mute();
this.vid.stopVideo();
this.vid.clearVideo();
this.vid.destroy();
this.loader.mcloader.unLoadClip(this.vid);
};
v1.show_youtube = function () {
if (_root.spew_opts.vids_hq) {
this.loader.mcloader.loadClip('http://www.youtube.com/apiplayer?disablekb=1', this.vid);
} else {
this.loader.mcloader.loadClip('http://www.youtube.com/apiplayer?disablekb=1&hd=0', this.vid);
}
this.vid_ready = false;
this.spew_ready = false;
};
v1.onRelease = function () {
if (this.vid.getPlayerState() == 1) {
getURL(this.vid.getVideoUrl() + '#t=' + Math.floor(this.vid.getCurrentTime()), '_blank');
this.vid.pauseVideo();
} else {
this.vid.playVideo();
}
};
v1.onReady = function () {
this.vid.addEventListener('onStateChange', this.delegate(this.onStateChange));
this.vid.addEventListener('onError', this.delegate(this.onError));
this.vid.setVolume(100);
this.vid.setSize(this.screensize_x, this.screensize_y);
_root.sock.gmsg(null, this.delegate(this.gmsgback, null));
_root.sock.gmsg(null, this.delegate(this.gmsgback, null));
this.gmsgsend({'gcmd': 'wetv', 'wetv': 'ready'});
this.sent_info = true;
this.vid_id = null;
};
v1.onStateChange = function (newState) {
if (newState == 0 && this.oldState == 1) {
this.gmsgsend({'gcmd': 'wetv', 'wetv': 'info', 'video': this.vid_id, 'length': 0});
if (this.vid_id_queue) {
this.play_vid(this.vid_id_queue, this.vid_pos_queue);
}
this.oldState = 0;
}
if (newState == 1) {
this.oldState = 1;
}
};
v1.onError = function (errorCode) {
this.gmsgsend({'gcmd': 'wetv', 'wetv': 'info', 'video': this.vid_id, 'length': 0});
this.sent_info = true;
};
v1.play_vid = function (id, pos) {
var v4 = this.swishnames[this.rnd() % (this.swishnames.length - 1)];
this.vid_id_queue = null;
this.vid_id = id;
this.oldState = 0;
this.vid.stopVideo();
this.vid.clearVideo();
if (_root.spew_opts.vids_hq) {
this.vid.loadVideoById(id, pos, 'hd720');
} else {
this.vid.loadVideoById(id, pos, 'small');
}
this.oldState = 0;
this.sent_info = false;
this.info.id = id;
this.info.pos = pos;
this.info.len = 0;
};
v1.queue_vid = function (id, pos) {
this.vid_id_queue = id;
this.vid_pos_queue = pos;
};
v1.update = function () {
if (!this.vid_ready) {
if (this.vid.isPlayerLoaded()) {
this.vid_ready = true;
} else {
return undefined;
}
}
if (!this.spew_ready) {
if (_root.sock.connected) {
this.spew_ready = true;
this.onReady();
} else {
return undefined;
}
}
var v3 = this.vid.getDuration();
var v4 = this.vid.getCurrentTime();
if (!this.sent_info) {
if (v3 > 0) {
this.gmsgsend({'gcmd': 'wetv', 'wetv': 'info', 'video': this.vid_id, 'length': v3});
this.sent_info = true;
}
}
if (v4 > 0) {
this.info.pos = v4;
}
if (v3 > 0) {
this.info.len = v3;
}
};
v1.do_str = function (str) {
this.up.do_str(str);
str;
};
v1.got_play_msg = function (msg) {
var v3 = msg.play.split(',');
if (v3[0] && v3[1]) {
var v4 = v3[0];
var v5 = Math.floor(v3[1]);
var v6 = this.vid.getDuration();
if (this.oldState == 1 && (v6 > 0 && v6 < 10)) {
this.queue_vid(v4, v5);
} else {
this.play_vid(v4, v5);
}
}
};
v1.got_title_msg = function (msg) {
this.info.title = msg.title;
};
v1.got_lock_msg = function (msg) {
this.info.lock = msg.lock;
};
v1.gmsgsend = function (msg) {
if (_root.sock) {
_root.sock.gmsg(msg, this.delegate(this.gmsgback, msg));
}
};
v1.gmsgback = function (msg, sentmsg) {
if (!sentmsg) {
if (msg.gcmd !== 'wetv') {
} else {
switch (msg.wetv) {
case 'play':
this.got_play_msg(msg);
break;
case 'title':
this.got_title_msg(msg);
break;
case 'lock':
this.got_lock_msg(msg);
}
}
} else {
if (sentmsg.gcmd !== 'wetv') {
} else {}
}
};
ASSetPropFlags(v1, null, 1);
v1.rnd_num = 0;
v1.nojoin = false;
v1.swishnames = ['sqr_shrink', 'sqr_rollup', 'sqr_plode'];
}
#endinitclip
}
movieClip 20484 __Packages.WetSpewTalk {
#initclip
if (!WetSpewTalk) {
_global.WetSpewTalk = function (_up) {
this.opts = {};
this.opts.pics = true;
this.opts.avatars = true;
_root.spew_opts = this.opts;
this.up = _up;
this.rgbarr.XIX = '00ff00';
this.rgbarr.shi = '00ff00';
this.rgbarr.me = 'cccccc';
this.rgbarr.lieza = 'ff88ff';
this.rgbarr.cthulhu = '00ff00';
this.rgbarr.reg = 'ff00ff';
this.rgbarr.noir = '0000ff';
this.rgbarr.jeeves = 'ffffff';
this.rgbarr.moon = 'ffff00';
this.rgbarr.ygor = 'ff0000';
this.rgbarr.meatwad = '00ff00';
this.game_infos = [];
this.game_numof = 0;
var v3 = {};
v3.nam1 = 'Games';
v3.lnk1 = '';
v3.lnk2 = '';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/games.png';
v3.lnksml = 'http://games.wetgenes.com/';
v3.lnkid = 0;
this.game_infos[this.game_numof++] = v3;
this.game_infos.Games = v3;
this.game_infos['Games'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'Like';
v3.lnk1 = '';
v3.lnk2 = '';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/like.png';
v3.lnksml = 'http://like.wetgenes.com/';
v3.lnkid = 0;
this.game_infos[this.game_numof++] = v3;
this.game_infos.Like = v3;
this.game_infos['Like'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'EsTension';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/EsTension.php/-=-//index.php/Main/EsTension';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/EsTension.php\',\'/index.php/Main/EsTension\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/estension.png';
v3.lnksml = 'http://estension.wetgenes.com/';
v3.lnkid = 5375;
this.game_infos[this.game_numof++] = v3;
this.game_infos.EsTension = v3;
this.game_infos['EsTension'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'Bulbaceous';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/Bulbaceous.php/-=-//index.php/Main/BulbaceousBalls';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/Bulbaceous.php\',\'/index.php/Main/BulbaceousBalls\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/bulbaceous.png';
v3.lnksml = 'http://www.bulbaceous.com/';
v3.lnkid = 0;
this.game_infos[this.game_numof++] = v3;
this.game_infos.Bulbaceous = v3;
this.game_infos['Bulbaceous'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'ASUE1';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/ASUE1.php/-=-//index.php/Main/ASUE1';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/ASUE1.php\',\'/index.php/Main/ASUE1\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/asue1.png';
v3.lnksml = 'http://asue1.wetgenes.com/';
v3.lnkid = 5383;
this.game_infos[this.game_numof++] = v3;
this.game_infos.ASUE1 = v3;
this.game_infos['ASUE1'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'BallClock';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/BallClock.php/-=-//index.php/Main/BallClock';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/BallClock.php\',\'/index.php/Main/BallClock\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/ballclock.png';
v3.lnksml = 'http://ballclock.wetgenes.com/';
v3.lnkid = 0;
this.game_infos[this.game_numof++] = v3;
this.game_infos.BallClock = v3;
this.game_infos['BallClock'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = '4lfa.comics';
v3.lnk1 = 'http://4lfa.com';
v3.lnk2 = 'http://4lfa.com';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/4lfa.png';
v3.lnksml = 'http://4lfa.com/';
v3.lnkid = 0;
this.game_infos[this.game_numof++] = v3;
this.game_infos.4lfa.comics = v3;
this.game_infos['4lfa.comics'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'on facebook';
v3.lnk1 = 'http://apps.facebook.com/wetgenes';
v3.lnk2 = 'http://apps.facebook.com/wetgenes';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/facebook.png';
v3.lnksml = 'http://apps.facebook.com/wetgenes';
v3.lnkid = 0;
this.game_infos[this.game_numof++] = v3;
this.game_infos.on facebook = v3;
this.game_infos['on facebook'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'RomZom';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/RomZom.php/-=-//index.php/Main/RomZom';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/RomZom.php\',\'/index.php/Main/RomZom\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/romzom.png';
v3.lnksml = 'http://romzom.wetgenes.com/';
v3.lnkid = 5399;
this.game_infos[this.game_numof++] = v3;
this.game_infos.RomZom = v3;
this.game_infos['RomZom'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'Diamonds';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/WetDiamonds.php/-=-//index.php/Main/WetDiamonds';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/WetDiamonds.php\',\'/index.php/Main/WetDiamonds\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/diamonds.png';
v3.lnksml = 'http://diamonds.wetgenes.com/';
v3.lnkid = 27250;
this.game_infos[this.game_numof++] = v3;
this.game_infos.Diamonds = v3;
this.game_infos['Diamonds'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'WetDike';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/WetDike.php/-=-//index.php/Main/WetDike';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/WetDike.php\',\'/index.php/Main/WetDike\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/wetdike.png';
v3.lnksml = 'http://wetdike.wetgenes.com/';
v3.lnkid = 5482;
this.game_infos[this.game_numof++] = v3;
this.game_infos.WetDike = v3;
this.game_infos['WetDike'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'GojiRama';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/GojiRama.php/-=-//index.php/Main/GojiRama';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/GojiRama.php\',\'/index.php/Main/GojiRama\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/gojirama.png';
v3.lnksml = 'http://gojirama.wetgenes.com/';
v3.lnkid = 6515;
this.game_infos[this.game_numof++] = v3;
this.game_infos.GojiRama = v3;
this.game_infos['GojiRama'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'AdventIsland';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/AdventIsland.php/-=-//index.php/Main/AdventIsland';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/AdventIsland.php\',\'/index.php/Main/AdventIsland\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/adventisland.png';
v3.lnksml = 'http://adventisland.wetgenes.com/';
v3.lnkid = 6059;
this.game_infos[this.game_numof++] = v3;
this.game_infos.AdventIsland = v3;
this.game_infos['AdventIsland'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'Minions';
v3.lnk1 = 'http://games.wetgenes.local/games/Minions.php';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/MiniOns.php\',\'/index.php/Main/MiniOns\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/minions.png';
v3.lnksml = 'http://minions.wetgenes.com/';
v3.lnkid = 49939;
this.game_infos[this.game_numof++] = v3;
this.game_infos.Minions = v3;
this.game_infos['Minions'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'WetTest';
v3.lnk1 = 'http://games.wetgenes.local/games/WetTest.php';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/WetTest.php\',\'/index.php/Main/MiniOns\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/wettest.png';
v3.lnksml = 'http://wettest.wetgenes.com/';
v3.lnkid = 54623;
this.game_infos[this.game_numof++] = v3;
this.game_infos.WetTest = v3;
this.game_infos['WetTest'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'BatWsBall';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/BatWsBall.php/-=-//index.php/Main/BatWsBall';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/BatWsBall.php\',\'/index.php/Main/BatWsBall\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/batwsball.png';
v3.lnksml = 'http://batwsball.wetgenes.com/';
v3.lnkid = 6714;
this.game_infos[this.game_numof++] = v3;
this.game_infos.BatWsBall = v3;
this.game_infos['BatWsBall'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'BowWow';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/BowWow.php/-=-//index.php/Main/BowWow';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/BowWow.php\',\'/index.php/Main/BowWow\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/bowwow.png';
v3.lnksml = 'http://bowwow.wetgenes.com/';
v3.lnkid = 5345;
this.game_infos[this.game_numof++] = v3;
this.game_infos.BowWow = v3;
this.game_infos['BowWow'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'WetBasement';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/WetBasement.php/-=-//index.php/Main/WetBasement';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/WetBasement.php\',\'/index.php/Main/WetBasement\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/basement.png';
v3.lnksml = 'http://basement.wetgenes.com/';
v3.lnkid = 5227;
this.game_infos[this.game_numof++] = v3;
this.game_infos.WetBasement = v3;
this.game_infos['WetBasement'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'Mute';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/Mute.php/-=-//index.php/Main/Mute';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/Mute.php\',\'/index.php/Main/Mute\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/mute.png';
v3.lnksml = 'http://mute.wetgenes.com/';
v3.lnkid = 5183;
this.game_infos[this.game_numof++] = v3;
this.game_infos.Mute = v3;
this.game_infos['Mute'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'ASUE2';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/ASUE2.php/-=-//index.php/Main/ASUE2';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/ASUE2.php\',\'/index.php/Main/ASUE2\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/asue2.png';
v3.lnksml = 'http://asue2.wetgenes.com/';
v3.lnkid = 4826;
this.game_infos[this.game_numof++] = v3;
this.game_infos.ASUE2 = v3;
this.game_infos['ASUE2'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'Take1';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/Take1.php/-=-//index.php/Main/Take1';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/Take1.php\',\'/index.php/Main/Take1\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/take1.png';
v3.lnksml = 'http://take1.wetgenes.com/';
v3.lnkid = 6645;
this.game_infos[this.game_numof++] = v3;
this.game_infos.Take1 = v3;
this.game_infos['Take1'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'PixlCoop';
v3.lnk1 = 'http://pixlcoop.wetgenes.com/';
v3.lnk2 = 'http://pixlcoop.wetgenes.com/';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/pixlcoop.png';
v3.lnksml = 'http://pixlcoop.wetgenes.com/';
v3.lnkid = 10463;
this.game_infos[this.game_numof++] = v3;
this.game_infos.PixlCoop = v3;
this.game_infos['PixlCoop'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'ItsaCoop';
v3.lnk1 = 'http://itsacoop.wetgenes.com/';
v3.lnk2 = 'http://itsacoop.wetgenes.com/';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/itsacoop.png';
v3.lnksml = 'http://itsacoop.wetgenes.com/';
v3.lnkid = 13069;
this.game_infos[this.game_numof++] = v3;
this.game_infos.ItsaCoop = v3;
this.game_infos['ItsaCoop'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'WetV';
v3.lnk1 = 'http://tv.wetgenes.com/';
v3.lnk2 = 'http://tv.wetgenes.com/';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/wetv.png';
v3.lnksml = 'http://tv.wetgenes.com/';
v3.lnkid = 15284;
this.game_infos[this.game_numof++] = v3;
this.game_infos.WetV = v3;
this.game_infos['WetV'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'WetVille';
v3.lnk1 = 'http://ville.wetgenes.com/';
v3.lnk2 = 'http://ville.wetgenes.com/';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/wetville.png';
v3.lnksml = 'http://ville.wetgenes.com/';
v3.lnkid = 19419;
this.game_infos[this.game_numof++] = v3;
this.game_infos.WetVille = v3;
this.game_infos['WetVille'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'rgbTD0';
v3.lnk1 = 'http://rgbtd0.wetgenes.com/';
v3.lnk2 = 'http://rgbtd0.wetgenes.com/';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/rgbtd0.png';
v3.lnksml = 'http://rgbtd0.wetgenes.com/';
v3.lnkid = 23216;
this.game_infos[this.game_numof++] = v3;
this.game_infos.rgbTD0 = v3;
this.game_infos['rgbTD0'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'pief';
v3.lnk1 = 'http://pief.wetgenes.com/';
v3.lnk2 = 'http://pief.wetgenes.com/';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/pief.png';
v3.lnksml = 'http://pief.wetgenes.com/';
v3.lnkid = 26758;
this.game_infos[this.game_numof++] = v3;
this.game_infos.pief = v3;
this.game_infos['pief'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'ZeeGrind';
v3.lnk1 = 'http://zeegrind.wetgenes.com/';
v3.lnk2 = 'http://zeegrind.wetgenes.com/';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/zeegrind.png';
v3.lnksml = 'http://zeegrind.wetgenes.com/';
v3.lnkid = 28107;
this.game_infos[this.game_numof++] = v3;
this.game_infos.ZeeGrind = v3;
this.game_infos['ZeeGrind'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'WetPokr';
v3.lnk1 = 'http://pokr.wetgenes.com/';
v3.lnk2 = 'http://pokr.wetgenes.com/';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/wetpokr.png';
v3.lnksml = 'http://pokr.wetgenes.com/';
v3.lnkid = 28861;
this.game_infos[this.game_numof++] = v3;
this.game_infos.WetPokr = v3;
this.game_infos['WetPokr'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'WetCell';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/WetDike.php/-=-//index.php/Main/WetDike';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/WetDike.php\',\'/index.php/Main/WetDike\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/wetcell.png';
v3.lnksml = 'http://wetcell.wetgenes.com/';
v3.lnkid = 47815;
this.game_infos[this.game_numof++] = v3;
this.game_infos.WetCell = v3;
this.game_infos['WetCell'.toLowerCase()] = v3;
v3 = {};
v3.nam1 = 'Only1';
v3.lnk1 = 'http://www.wetgenes.com/frame.php#/top/WetDike.php/-=-//index.php/Main/WetDike';
v3.lnk2 = 'javascript:set_frame_urls(\'/top/WetDike.php\',\'/index.php/Main/WetDike\');';
v3.img3 = 'http://swf.wetgenes.com/swf/wetlinks/only1.png';
v3.lnksml = 'http://only1.wetgenes.com/';
v3.lnkid = 49941;
this.game_infos[this.game_numof++] = v3;
this.game_infos.Only1 = v3;
this.game_infos['Only1'.toLowerCase()] = v3;
};
var v1 = _global.WetSpewTalk.prototype;
v1.delegate = function (f, d) {
return com.dynamicflash.utils.Delegate.create(this, f, d);
};
v1.rnd_seed = function (n) {
this.rnd_num = n & 65535;
};
v1.rnd = function () {
this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537;
return this.rnd_num;
};
v1.setup = function () {
this.fakepop = false;
this.frame = 0;
this.num = 0;
this.mc_scalar = gfx2.create_clip(this.up.mc, null);
this.mc = gfx2.create_clip(this.mc_scalar, null);
this.mc._x = 800;
this.mc.cacheAsBitmap = true;
gfx2.clear(this.mc);
if (!_root.transparent_chat) {
this.mc.style.fill = -16777216 + this.background;
gfx2.draw_box(this.mc, 0, 0, 0, 400, 600);
}
this.setup_gizmos();
this.vmc = null;
this.mc_stream = gfx2.create_clip(this.gizmo_Tlist.mc, null, 0, 0);
this.mc_over = gfx2.create_clip(this.mc, null);
gfx2.clear(this.mc_over);
this.mc_over.style.fill = -872415232;
gfx2.draw_box(this.mc_over, 0, 0, 0, 400, 120);
this.mc_over._visible = false;
this.mc_over.cacheAsBitmap = true;
this.mc_over.avatar = gfx2.create_clip(this.mc_over, null, 10, 10);
gfx2.clear(this.mc_over.avatar);
this.mc_over.avatar.style.fill = 1140850824;
gfx2.draw_box(this.mc_over.avatar, 0, 0, 0, 100, 100);
this.mc_over.tf = gfx2.create_text_html(this.mc_over, null, 120, 10, 280, 130);
this.state = 'chat';
var v2 = '<font size="18" color="#ffffff">';
v2 += 'Connecting...';
v2 += '</font>';
this.txts = [];
this.lsts = [];
this.tfs = [];
this.txts.help = v2;
this.txts.chat = v2;
this.txts.users = v2;
this.txts.games = v2;
this.txts.rooms = v2;
this.txts.line = v2;
this.txts.opts = v2;
v2 = '<font size="18" color="#ffffff">';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/games.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://games.wetgenes.com/" target="_top"><b>Games</b></a></p>';
} else {
v2 += '<a href="http://games.wetgenes.com/" target="_blank"><b>Games</b></a></p>';
}
v2 += '<p><font size="14">A games arcade, featuring our games and MMOs.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/like.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://like.wetgenes.com/" target="_top"><b>Like</b></a></p>';
} else {
v2 += '<a href="http://like.wetgenes.com/" target="_blank"><b>Like</b></a></p>';
}
v2 += '<p><font size="14">Tag games you like then play more games like that.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/estension.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://estension.wetgenes.com/" target="_top"><b>EsTension</b></a></p>';
} else {
v2 += '<a href="http://estension.wetgenes.com/" target="_blank"><b>EsTension</b></a></p>';
}
v2 += '<p><font size="14">The uncharted land between Joust and Gravitar.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/bulbaceous.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://www.bulbaceous.com/" target="_top"><b>Bulbaceous</b></a></p>';
} else {
v2 += '<a href="http://www.bulbaceous.com/" target="_blank"><b>Bulbaceous</b></a></p>';
}
v2 += '<p><font size="14">balls</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/asue1.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://asue1.wetgenes.com/" target="_top"><b>ASUE1</b></a></p>';
} else {
v2 += '<a href="http://asue1.wetgenes.com/" target="_blank"><b>ASUE1</b></a></p>';
}
v2 += '<p><font size="14">Episode 1 : The horse</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/ballclock.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://ballclock.wetgenes.com/" target="_top"><b>BallClock</b></a></p>';
} else {
v2 += '<a href="http://ballclock.wetgenes.com/" target="_blank"><b>BallClock</b></a></p>';
}
v2 += '<p><font size="14">A ball operated mechanical timepiece.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/4lfa.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://4lfa.com/" target="_top"><b>4lfa.comics</b></a></p>';
} else {
v2 += '<a href="http://4lfa.com/" target="_blank"><b>4lfa.comics</b></a></p>';
}
v2 += '<p><font size="14">4lfa comics, updated sometimes, read at other times.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/facebook.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://apps.facebook.com/wetgenes" target="_top"><b>on facebook</b></a></p>';
} else {
v2 += '<a href="http://apps.facebook.com/wetgenes" target="_blank"><b>on facebook</b></a></p>';
}
v2 += '<p><font size="14">A list of Games and widgets now available inside face book.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/romzom.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://romzom.wetgenes.com/" target="_top"><b>RomZom</b></a></p>';
} else {
v2 += '<a href="http://romzom.wetgenes.com/" target="_blank"><b>RomZom</b></a></p>';
}
v2 += '<p><font size="14">Where there is no enape.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/diamonds.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://diamonds.wetgenes.com/" target="_top"><b>Diamonds</b></a></p>';
} else {
v2 += '<a href="http://diamonds.wetgenes.com/" target="_blank"><b>Diamonds</b></a></p>';
}
v2 += '<p><font size="14">Take two diamonds into the shower? Not me. I just match three and bling.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/wetdike.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://wetdike.wetgenes.com/" target="_top"><b>WetDike</b></a></p>';
} else {
v2 += '<a href="http://wetdike.wetgenes.com/" target="_blank"><b>WetDike</b></a></p>';
}
v2 += '<p><font size="14">OMFG these cards are out of order!</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/gojirama.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://gojirama.wetgenes.com/" target="_top"><b>GojiRama</b></a></p>';
} else {
v2 += '<a href="http://gojirama.wetgenes.com/" target="_blank"><b>GojiRama</b></a></p>';
}
v2 += '<p><font size="14">The typing of the rizard.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/adventisland.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://adventisland.wetgenes.com/" target="_top"><b>AdventIsland</b></a></p>';
} else {
v2 += '<a href="http://adventisland.wetgenes.com/" target="_blank"><b>AdventIsland</b></a></p>';
}
v2 += '<p><font size="14">advent.exe</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/minions.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://minions.wetgenes.com/" target="_top"><b>Minions</b></a></p>';
} else {
v2 += '<a href="http://minions.wetgenes.com/" target="_blank"><b>Minions</b></a></p>';
}
v2 += '<p><font size="14">Create your avatar minion.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/wettest.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://wettest.wetgenes.com/" target="_top"><b>WetTest</b></a></p>';
} else {
v2 += '<a href="http://wettest.wetgenes.com/" target="_blank"><b>WetTest</b></a></p>';
}
v2 += '<p><font size="14">Run beta codes in your browser.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/batwsball.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://batwsball.wetgenes.com/" target="_top"><b>BatWsBall</b></a></p>';
} else {
v2 += '<a href="http://batwsball.wetgenes.com/" target="_blank"><b>BatWsBall</b></a></p>';
}
v2 += '<p><font size="14">Keep the ball on screen for as long as you can.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/bowwow.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://bowwow.wetgenes.com/" target="_top"><b>BowWow</b></a></p>';
} else {
v2 += '<a href="http://bowwow.wetgenes.com/" target="_blank"><b>BowWow</b></a></p>';
}
v2 += '<p><font size="14">Harvest the sky potatoes by the power of your bow. Wow!</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/basement.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://basement.wetgenes.com/" target="_top"><b>WetBasement</b></a></p>';
} else {
v2 += '<a href="http://basement.wetgenes.com/" target="_blank"><b>WetBasement</b></a></p>';
}
v2 += '<p><font size="14">A water filled platform game extravaganza!</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/mute.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://mute.wetgenes.com/" target="_top"><b>Mute</b></a></p>';
} else {
v2 += '<a href="http://mute.wetgenes.com/" target="_blank"><b>Mute</b></a></p>';
}
v2 += '<p><font size="14">A 48 hour game project, turning negativity into game.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/asue2.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://asue2.wetgenes.com/" target="_top"><b>ASUE2</b></a></p>';
} else {
v2 += '<a href="http://asue2.wetgenes.com/" target="_blank"><b>ASUE2</b></a></p>';
}
v2 += '<p><font size="14">Episode 2 : The Gum Machine.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/take1.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://take1.wetgenes.com/" target="_top"><b>Take1</b></a></p>';
} else {
v2 += '<a href="http://take1.wetgenes.com/" target="_blank"><b>Take1</b></a></p>';
}
v2 += '<p><font size="14">When Harry met Sally.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/pixlcoop.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://pixlcoop.wetgenes.com/" target="_top"><b>PixlCoop</b></a></p>';
} else {
v2 += '<a href="http://pixlcoop.wetgenes.com/" target="_blank"><b>PixlCoop</b></a></p>';
}
v2 += '<p><font size="14">OMFG these pixls are out of order!</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/itsacoop.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://itsacoop.wetgenes.com/" target="_top"><b>ItsaCoop</b></a></p>';
} else {
v2 += '<a href="http://itsacoop.wetgenes.com/" target="_blank"><b>ItsaCoop</b></a></p>';
}
v2 += '<p><font size="14">Itsa bird itsa plane no, itsa coop!</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/wetv.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://tv.wetgenes.com/" target="_top"><b>WetV</b></a></p>';
} else {
v2 += '<a href="http://tv.wetgenes.com/" target="_blank"><b>WetV</b></a></p>';
}
v2 += '<p><font size="14">Watch videos online with other people.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/wetville.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://ville.wetgenes.com/" target="_top"><b>WetVille</b></a></p>';
} else {
v2 += '<a href="http://ville.wetgenes.com/" target="_blank"><b>WetVille</b></a></p>';
}
v2 += '<p><font size="14">Our online vurtual world.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/rgbtd0.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://rgbtd0.wetgenes.com/" target="_top"><b>rgbTD0</b></a></p>';
} else {
v2 += '<a href="http://rgbtd0.wetgenes.com/" target="_blank"><b>rgbTD0</b></a></p>';
}
v2 += '<p><font size="14">A tower defence inspired puzzle game.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/pief.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://pief.wetgenes.com/" target="_top"><b>pief</b></a></p>';
} else {
v2 += '<a href="http://pief.wetgenes.com/" target="_blank"><b>pief</b></a></p>';
}
v2 += '<p><font size="14">Get dressed in the correct order to experience this love story and its ending.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/zeegrind.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://zeegrind.wetgenes.com/" target="_top"><b>ZeeGrind</b></a></p>';
} else {
v2 += '<a href="http://zeegrind.wetgenes.com/" target="_blank"><b>ZeeGrind</b></a></p>';
}
v2 += '<p><font size="14">The CoOp zombie bonking game for all the family.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/wetpokr.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://pokr.wetgenes.com/" target="_top"><b>WetPokr</b></a></p>';
} else {
v2 += '<a href="http://pokr.wetgenes.com/" target="_blank"><b>WetPokr</b></a></p>';
}
v2 += '<p><font size="14">A realtime multiplayer poker simulator featuring large cookie balloons.</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/wetcell.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://wetcell.wetgenes.com/" target="_top"><b>WetCell</b></a></p>';
} else {
v2 += '<a href="http://wetcell.wetgenes.com/" target="_blank"><b>WetCell</b></a></p>';
}
v2 += '<p><font size="14">OMFG these cards are out of order!</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '<p><img width="100" height="100" src="http://swf.wetgenes.com/swf/wetlinks/only1.png">';
if (_root.home == 'wetgenes') {
v2 += '<a href="http://only1.wetgenes.com/" target="_top"><b>Only1</b></a></p>';
} else {
v2 += '<a href="http://only1.wetgenes.com/" target="_blank"><b>Only1</b></a></p>';
}
v2 += '<p><font size="14">Enjoy a little hop skip and scrump adventure!</font></p>';
v2 += '<p></p>';
v2 += '<p></p>';
v2 += '</font>';
this.txts.games = v2;
v2 = '<font size="18" color="#ffffff">';
v2 += '<p></p>';
v2 += '<p>Type /join roomname to join a room.</p>';
v2 += '<p></p>';
v2 += '<p>Type /find username to find out which room someone is in.</p>';
v2 += '<p></p>';
v2 += '<p>You may /ban /gag /dis people from your personal room. The easy way is to simply click on what they said and then make your choice.</p>';
v2 += '<p></p>';
v2 += '<p>Type /login name_you_want_to_have if you want to change your guest name.</p>';
v2 += '<p></p>';
v2 += '<p>Type /me does something. if you want to perform an act rather than a chat.</p>';
v2 += '<p></p>';
v2 += '<p>There is a list of other games you can play that also have this same chat built in, just click on the <b>GAMES</b> tab above and make your choice.</p>';
v2 += '<p></p>';
v2 += '<p>If this thing has popped up over half your screen then you can hide it again by just moving the mouse off of it.</p>';
v2 += '<p></p>';
v2 += '<p>If you find the public chat rooms to be full of loud and annoying people, then I recommend you change to your home room. Just click on the <b>ROOMS</b> tab above and then join your <b>personal home room</b> where you have admin rights.</p>';
v2 += '<p></p>';
v2 += '<p>There is only one enforced rule in public and I advise you to learn it\'s meaning before bothering the gods. The rule is <b>Fuck \'em if they can\'t take a joke.</b> .</p>';
v2 += '<p></p>';
v2 += '<p><a href="http://help.wetgenes.com/" target="_BLANK"><b>Click here to visit the full online help.</b></a></p>';
v2 += '<p></p>';
if (_root.home == 'wetgenes') {
}
v2 += '</font>';
this.txts.help = v2;
Key.addListener(this);
};
v1.clean = function () {
Key.removeListener(this);
this.mc.removeMovieClip();
};
v1.set_back = function (url) {};
v1.update = function (snapshot) {
if (this.wetv) {
this.wetv.update();
}
if (_root.popup == this) {
_root.popup = null;
}
this.mc_over.avatar.mc.forceSmoothing = true;
++this.frame;
switch (this.state) {
case 'users':
if (this.last_users_stamp != this.up.sock.users_stamp) {
this.update_users();
this.last_users_stamp = this.up.sock.users_stamp;
}
break;
case 'rooms':
if (this.last_rooms_stamp != this.up.sock.rooms_stamp) {
this.update_rooms();
this.last_rooms_stamp = this.up.sock.rooms_stamp;
}
break;
case 'opts':
this.update_opts();
}
var v5 = 0;
if (this.lsts[this.state]) {
this.gizmo_Tlist.str = '';
var v6 = 8 + this.gizmo_Tlist.text_height - this.gizmo_Tlist.h;
v5 = Math.floor(v6 * this.gizmo_Tlist.vgizmo.y_knob);
if (v5 < 0) {
v5 = 0;
}
this.mc_stream._visible = true;
} else {
if (this.gizmo_Tlist.str != this.txts[this.state]) {
this.gizmo_Tlist.str = this.txts[this.state];
this.mc_stream._visible = false;
}
}
if (v5 != this.gizmo_Tlist.mc.scrollRect.y) {
gfx2.setscroll(this.gizmo_Tlist.mc, 0, v5, this.gizmo_Tlist.w, this.gizmo_Tlist.h);
}
if (this.mc._ymouse < 300) {
this.mc_over.dy = this.mc._ymouse + 150 + 30;
} else {
this.mc_over.dy = this.mc._ymouse - 300;
}
if (this.mc_over._visible) {
var v7 = this.mc_over.dy - this.mc_over._y;
if (v7 < 0) {
v7 = -v7;
}
if (v7 > 1) {
this.mc_over._y += Math.floor((this.mc_over.dy - this.mc_over._y) / 4);
}
this.display_info_check();
}
this.gizmo.mc.globalToLocal(snapshot);
this.gizmo.focus = this.gizmo.input(snapshot);
this.gizmo.update();
var v8 = false;
if (!_root.scalar.bx) {
_root.scalar.bx = 800;
}
if (!_root.scalar.by) {
_root.scalar.by = 600;
}
this.mc._xscale = 100 * _root.scalar.bx / 800;
this.mc._yscale = 100 * _root.scalar.by / 600;
if (_root.scalar.ox == _root.scalar.bx * 1.5 && !_root.scalar.need_chat_pop) {
this.mc._x = _root.scalar.bx;
} else {
if (_root.scalar.ox == _root.scalar.bx || _root.scalar.need_chat_pop) {
if (_root.popup == null) {
if (this.mc._x == _root.scalar.bx / 2 || this.fakepop) {
if (this.mc._xmouse >= -20) {
if (!this.fakepop) {
v8 = true;
}
} else {
this.fakepop = false;
this.mc._x = _root.scalar.bx;
}
} else {
if (this.mc._xmouse > -20 && (this.mc._ymouse > _root.scalar.by * 1 / 8 && this.mc._ymouse < _root.scalar.by * 7 / 8)) {
if (_root.poker.poke_now) {
this.fakepop = true;
} else {
v8 = true;
}
} else {
this.mc._x = _root.scalar.bx;
}
}
}
} else {
this.mc._x = 0;
this.resize_chat();
}
}
if (v8) {
--this.popdelay;
if (this.popdelay <= 0) {
if (_root.popup == null) {
_root.popup = this;
this.mc._x = _root.scalar.bx / 2;
}
}
} else {
this.popdelay = 10;
}
};
v1.resize_chat_force = function () {
this.extra_lines = -9999;
this.resize_chat();
this.chat();
this.update();
};
v1.resize_chat = function () {
var v2 = 0;
if (v2 < 0) {
v2 = 0;
}
if (this.extra_lines == v2) {
return undefined;
}
this.extra_lines = v2;
var v6 = [28, 4, 8];
var v3 = 400;
var v4 = 600;
var v5 = 20;
var v7 = -this.extra_lines;
v6[0] = 28 + this.extra_lines * 2;
if (this.opts.vids) {
v6[0] -= 15;
v7 += 15;
if (!this.wetv) {
this.wetv = new WetVPlay2(this);
this.wetv.setup(true, '400x300');
}
} else {
if (this.wetv) {
this.wetv.clean();
this.wetv = null;
}
}
this.gizmo_Tscroll.h = (v6[0] - 1) * v5;
this.gizmo_Tlist.set_area(0, v5, 380, (v6[0] - 1) * v5);
this.gizmo_Tscroll.mc.clear();
this.gizmo_Tscroll.mc.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_boxen(this.gizmo_Tscroll.mc, 0, 0, this.gizmo_Tscroll.w, this.gizmo_Tscroll.h);
this.gizmoT.set_area(0, v7 * v5, v3, v6[0] * v5);
v7 += v6[0];
this.gizmoM.set_area(0, v7 * v5, v3, v6[1] * v5);
v7 += v6[1];
this.gizmoB.set_area(0, v7 * v5, v3, v6[2] * v5);
v7 += v6[2];
this.gizmo_Tlist.clear_tf();
this.typehere_box.set_area(0, 0, v3 - v5 * 1, v5 * 2);
this.gizmo_send.set_area(v3 - v5 * 1, 0, v5 * 1, v5 * 2);
this.gizmo_Tscroll_knob.set_knob(null, null);
};
v1.setup_gizmos = function () {
var v9 = [28, 4, 8];
var v3 = 400;
var v4 = 600;
var v5 = 20;
this.gizmo = new GizmoMaster2(this);
this.gizmo.top = this.gizmo;
var v6 = this.gizmo;
v6.set_area(0, 0, v3, v4);
var v10 = 0;
var v8 = this.gizmo;
v6 = v8.child(new Gizmo2(v8));
v6.set_area(0, v10 * v5, v3, v9[0] * v5);
this.gizmoT = v6;
v10 += v9[0];
v6 = v8.child(new Gizmo2(v8));
v6.set_area(0, v10 * v5, v3, v9[1] * v5);
this.gizmoM = v6;
v10 += v9[1];
v6 = v8.child(new Gizmo2(v8));
v6.set_area(0, v10 * v5, v3, v9[2] * v5);
this.gizmoB = v6;
v8 = this.gizmoT;
v6 = v8.child(new Gizmo2(v8));
v6.set_area(v3 - v5 * 1, v5, v5, (v9[0] - 1) * v5);
v6.mc.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_boxen(v6.mc, 0, 0, v6.w, v6.h);
this.gizmo_Tscroll = v6;
v8 = v6;
v6 = v8.child(new GizmoKnob2(v8));
v6.set_area(0, v8.h - v5 * 4, v5, v5 * 4);
var v7 = gfx2.create_clip(v6.mc, null, 0, 0, 100, 100);
v7.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_puck(v7, 0, 0, v5, v5 * 4);
v6.mc_base = v7;
v7 = gfx2.create_clip(v6.mc, null, 0, 0, 100, 100);
v7.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_puck(v7, 0, 0, v5, v5 * 4);
v6.mc_over = v7;
v7 = gfx2.create_clip(v6.mc, null, 0, 0, 100, 100);
v7.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_puck(v7, 0, 0, v5, v5 * 4);
v6.mc_down = v7;
this.gizmo_Tscroll_knob = v6;
v8 = this.gizmoT;
v6 = v8.child(new GizmoText2(v8));
v6.set_area(0, v5, v3 - v5 * 1, (v9[0] - 1) * v5);
v6.str = '';
v6.tf_fmt.size = v5 - 2;
v6.tf_fmt.color = -16777216 + this.foreground;
v6.vgizmo = this.gizmo_Tscroll_knob;
this.gizmo_Tlist = v6;
this.gizmo_Bitems = [];
this.gizmo_Titems = [];
this.gizmo_Blist.items = this.gizmo_Bitems;
this.gizmo_Blist.onClick = this.delegate(this.Bclick);
v8 = this.gizmoM;
v6 = v8.child(new Gizmo2(v8));
v6.set_area(0, 0, v8.w - v5 * 1, v5 * 2);
v6.mc.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_boxen(v6.mc, 0, 0, v6.w, v6.h);
this.typehere_box = v6;
this.typehere = gfx2.create_text_edit(this.gizmoM.mc, null, v5 * 0.25, v5 * 0.25, v3 - v5 * 1.5, v5 * 1.5);
this.typehere.setNewTextFormat(gfx2.create_text_format(v5 + 2, -16777216 + this.foreground));
this.typehere.text = '';
this.typehere.onEnterKeyHasBeenPressed = this.delegate(this.onEnter);
v8 = this.gizmoM;
v6 = v8.child(new GizmoButt2(v8));
v6.set_area(v8.w - v5 * 1, 0, v5 * 1, v5 * 2);
v7 = gfx2.create_clip(v6.mc, null, 0, 0, 100, 100);
v7.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_box(v7, 0, 0, v5, v5 * 2);
v6.mc_base = v7;
v7 = gfx2.create_clip(v6.mc, null, 0, 0, 100, 100);
v7.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_box(v7, 0, 0, v5, v5 * 2);
v6.mc_over = v7;
v7 = gfx2.create_clip(v6.mc, null, 0, 0, 100, 100);
v7.style = {'fill': -872415232 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_box(v7, 0, 0, v5, v5 * 2);
v6.mc_down = v7;
this.gizmo_send = v6;
this.gizmo_send.mc.tf = gfx2.create_text(this.gizmo_send.mc, 100, v5 - 1, 0, v5 * 2, v5);
this.gizmo_send.mc.tf.setNewTextFormat(gfx2.create_text_format(v5 - 9, -16777216 + this.background, 'bold'));
this.gizmo_send.mc.tf.text = 'SEND';
this.gizmo_send.mc.tf._rotation = 90;
this.gizmo_send.mc.tf.selectable = false;
this.gizmo_send.onClick = this.delegate(this.onEnter);
var v11 = [38, 40, 47, 50, 38, 52];
var v12 = 2;
this.create_gizmo_butt(this.gizmoT, v12, 0, v11[0], v5, 'HELP');
v12 += v11[0];
this.create_gizmo_butt(this.gizmoT, v12, 0, v11[1], v5, 'CHAT');
v12 += v11[1];
this.create_gizmo_butt(this.gizmoT, v12, 0, v11[2], v5, 'USERS');
v12 += v11[2];
this.create_gizmo_butt(this.gizmoT, v12, 0, v11[3], v5, 'GAMES');
v12 += v11[3];
this.create_gizmo_butt(this.gizmoT, v12, 0, v11[5], v5, 'ROOMS');
v12 += v11[5];
this.create_gizmo_butt(this.gizmoT, v12, 0, v11[4], v5, 'OPTS');
v12 += v11[4];
this.gizmo.update();
};
v1.create_gizmo_butt = function (gp, x, y, w, h, txt) {
var v8 = 20;
var v9 = gp.child(new GizmoButt2(gp));
v9.set_area(x, y, w, h);
v9.mc.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
var v10 = gfx2.create_clip(v9.mc, null);
v10.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_box(v10, 0, 0, w, h);
v9.mc_base = v10;
v10.tf = gfx2.create_text(v10, null, 1, 2, w, h);
v10.tf.setNewTextFormat(gfx2.create_text_format(v8 - 9, -16777216 + this.background, 'bold'));
v10.tf.text = txt;
v10.tf.selectable = false;
v10 = gfx2.create_clip(v9.mc, null);
v10.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_box(v10, 0, 0, w, h);
v9.mc_over = v10;
v10.tf = gfx2.create_text(v10, null, 1, 2, w, h);
v10.tf.setNewTextFormat(gfx2.create_text_format(v8 - 9, -16777216 + this.background, 'bold'));
v10.tf.text = txt;
v10.tf.selectable = false;
v10 = gfx2.create_clip(v9.mc, null);
v10.style = {'fill': -872415232 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground};
this.draw_box(v10, 0, 0, w, h);
v9.mc_down = v10;
v10.tf = gfx2.create_text(v10, null, 1, 2, w, h);
v10.tf.setNewTextFormat(gfx2.create_text_format(v8 - 9, -16777216 + this.background, 'bold'));
v10.tf.text = txt;
v10.tf.selectable = false;
v9.onClick = this.delegate(this.onClick, txt);
return v9;
};
v1.onClick = function (g, s) {
switch (s) {
case 'USERS':
this.gizmo_Tlist.clear_tf();
this.txts.users = '<font size="18" color="#ffffff">Fetching...</font>';
this.up.sock.chat('/users');
this.state = 'users';
break;
case 'ROOMS':
this.gizmo_Tlist.clear_tf();
this.txts.rooms = '<font size="18" color="#ffffff">Fetching...</font>';
this.up.sock.chat('/rooms');
this.state = 'rooms';
break;
case 'HELP':
this.gizmo_Tlist.clear_tf();
this.state = 'help';
break;
case 'CHAT':
this.gizmo_Tlist.clear_tf();
this.state = 'chat';
break;
case 'GAMES':
this.gizmo_Tlist.clear_tf();
this.state = 'games';
break;
case 'OPTS':
this.gizmo_Tlist.clear_tf();
this.state = 'opts';
}
};
v1.set_user_sort = function (nam) {
if (nam == 'rank') {
this.sortuser = 'rank';
} else {
this.sortuser = 'name';
}
this.last_users_stamp = 0;
};
v1.user_compare_name = function (a, b) {
var v4 = a.user_name.toLowerCase();
var v5 = b.user_name.toLowerCase();
if (v4 < v5) {
return -1;
} else {
if (v4 > v5) {
return 1;
} else {
return 0;
}
}
};
v1.user_compare_rank = function (a, b) {
var v4 = Math.floor(a.formrank.substr(1));
var v5 = Math.floor(b.formrank.substr(1));
if (v4 < v5) {
return -1;
} else {
if (v4 > v5) {
return 1;
} else {
return 0;
}
}
};
v1.update_users = function () {
var v5 = '';
var v2 = this.up.sock.users;
v5 += '<font size="18" color="#ffffff">';
v5 += '<p>Listing users in room <b>' + this.up.sock.room + '</b></p>';
v5 += '<p></p>';
var v6 = false;
if (this.sortuser == 'rank') {
v2.sort(this.user_compare_rank);
} else {
v2.sort(this.user_compare_name);
}
var v3 = 0;
goto 41724;
for (;;) {
++v3;
label 41724:
if (v3 >= v2.length) break;
var v4 = v2[v3];
v5 += '<p>';
var v7 = '';
if (v4.formrank) {
v7 = '(' + v4.formrank + ')';
}
if (v4.color) {
v5 += '<font color="#' + v4.color + '">';
}
v5 += '<a href="asfunction:_root.talk.lineclick,user/' + v3 + '">';
v5 += '<b>' + v4.user_name + '</b> ' + v7 + ' is playing <b>' + v4.game_name + '</b>';
v5 += '</a>';
if (v4.color) {
v5 += '</font>';
}
v5 += '</p>';
v6 = true;
}
if (!v6) {
v5 += '<p>';
v5 += 'There are no named users in this room.';
v5 += '</p>';
} else {
v5 += '<p></p>';
v5 += '<p>';
v5 += '<a href="asfunction:_root.talk.lineclick,sortuser/rank">';
v5 += 'Sort list by user rank.';
v5 += '</a>';
v5 += '</p>';
v5 += '<p>';
v5 += '<a href="asfunction:_root.talk.lineclick,sortuser/name">';
v5 += 'Sort list by user names.';
v5 += '</a>';
v5 += '</p>';
}
v5 += '</font>';
this.txts.users = v5;
};
v1.set_room_sort = function (nam) {
if (nam == 'members') {
this.sortroom = 'members';
} else {
this.sortroom = 'name';
}
this.last_rooms_stamp = 0;
};
v1.room_compare_name = function (a, b) {
var v4 = a.room_name.toLowerCase();
var v5 = b.room_name.toLowerCase();
if (v4 < v5) {
return -1;
} else {
if (v4 > v5) {
return 1;
} else {
return 0;
}
}
};
v1.room_compare_members = function (a, b) {
var v4 = Math.floor(a.room_members);
var v5 = Math.floor(b.room_members);
if (v4 < v5) {
return -1;
} else {
if (v4 > v5) {
return 1;
} else {
return 0;
}
}
};
v1.update_rooms = function () {
var v5 = '';
var v2 = this.up.sock.rooms;
v5 += '<font size="18" color="#ffffff">';
v5 += '<p>';
v5 += '<a href="asfunction:_root.talk.lineclick,room/home">';
v5 += '<b>Click here to join your personal home room.</b> <font size="12">This will be less noisy than the public rooms and you can ban people from it.</font>';
v5 += '</a>';
v5 += '</p>';
v5 += '<p></p>';
v5 += '<p>Listing available active rooms.</p>';
v5 += '<p></p>';
if (this.sortroom == 'members') {
v2.sort(this.room_compare_members);
} else {
v2.sort(this.room_compare_name);
}
var v3 = 0;
goto 42920;
for (;;) {
++v3;
label 42920:
if (v3 >= v2.length) break;
var v4 = v2[v3];
v5 += '<p>';
v5 += '<a href="asfunction:_root.talk.lineclick,room/' + v3 + '">';
v5 += '<b>' + v4.room_name + '</b> has <b>' + v4.room_members + '</b> members';
v5 += '</a>';
v5 += '</p>';
}
v5 += '<p></p>';
v5 += '<p>';
v5 += '<a href="asfunction:_root.talk.lineclick,sortroom/members">';
v5 += 'Sort list by number of users.';
v5 += '</a>';
v5 += '</p>';
v5 += '<p>';
v5 += '<a href="asfunction:_root.talk.lineclick,sortroom/name">';
v5 += 'Sort list by room names.';
v5 += '</a>';
v5 += '</p>';
v5 += '</font>';
this.txts.rooms = v5;
};
v1.linedisplay = function (line_item) {
if (line_item.lnk) {
getURL(line_item.lnk, '_blank');
return undefined;
}
this.state = 'line';
var v3 = '';
v3 += '<p><font size="18" color="#ffffff">';
v3 += 'Click chat above to return to the chat.';
v3 += '<br>';
v3 += '</font></p>';
if (line_item.txt) {
if (line_item.frm != '*') {
v3 += '<p><font size="24" color="#ffffff">';
v3 += '<b>';
v3 += line_item.frm;
v3 += '</b> says <br>';
v3 += '</font></p>';
}
var v7 = line_item.txt;
var v8 = v7.split('http://');
if (v8[1]) {
var v9 = v8[1].split(' ');
if (v9[0]) {
var v10 = '<a href="http://' + v9[0] + '" target="_blank">http://' + v9[0] + '</a>';
v9[0] = '';
v8[1] = v10 + v9.join(' ');
v7 = v8.join(' ');
}
}
v3 += '<p><font size="24" color="#ffffff">';
v3 += v7;
v3 += '<br>';
v3 += '</font></p>';
}
var v5 = null;
if (line_item.gamename) {
v5 = null;
if (line_item.gamename) {
var v6 = (line_item.gamename.split('.'))[0];
v5 = this.game_infos[v6];
}
}
var v11 = line_item.frm;
if (v11 == '*') {
if (line_item.usr) {
v11 = line_item.usr;
}
}
var v12 = this.up.sock.map_user_to_gameid[v11];
var v13 = this.up.sock.map_gameid_to_gamename[v12];
var v14 = 'http://like.wetgenes.com/-/game/' + v12 + '/' + v13;
if (!v5) {
v5 = this.game_infos[v13];
}
if (v5) {
v3 += '<p><font size="24" color="#ff0000">';
if (_root.home == 'wetgenes') {
v3 += '<a href="' + v5.lnksml + '" target="_top">';
} else {
v3 += '<a href="' + v5.lnksml + '" target="_blank">';
}
v3 += '<img width="100" height="100" src="' + v5.img3 + '">';
v3 += 'Click here to play <b>' + v5.nam1 + '</b> with ' + v11;
v3 += '</a>';
v3 += '<br>';
v3 += '</font></p>';
} else {
if (v12 > 0) {
v3 += '<p><font size="24" color="#ff0000">';
if (_root.home == 'wetgenes') {
v3 += '<a href="' + v14 + '" target="_top">';
} else {
v3 += '<a href="' + v14 + '" target="_blank">';
}
v3 += 'Click here to play <b>' + v13 + '</b> with ' + v11;
v3 += '</a>';
v3 += '<br>';
v3 += '</font></p>';
}
}
if (line_item.frm && line_item.frm != '*') {
v3 += '<p><font size="24" color="#00ff00">';
v3 += '<a href="http://like.wetgenes.com/-/profile/' + line_item.frm + '" target="_blank">';
v3 += 'Click here to view <b>' + line_item.frm + '</b>s user profile page.';
v3 += '</a>';
v3 += '<br>';
v3 += '<p><font size="14" color="#ffffff">';
v3 += '<br>';
v3 += 'These admin links will fill in the admin command, you still need to press return to activate it. This will also only have any effect in rooms you own.<br>';
v3 += '<br>';
v3 += '<a href="asfunction:_root.talk.set_kick,' + line_item.frm + '">';
v3 += 'Kick <b>' + line_item.frm + '</b> into public.</a><br>';
v3 += '<a href="asfunction:_root.talk.set_dis,' + line_item.frm + '">';
v3 += 'Disemvowel <b>' + line_item.frm + '</b> when in your room.</a><br>';
v3 += '<a href="asfunction:_root.talk.set_gag,' + line_item.frm + '">';
v3 += 'Gag <b>' + line_item.frm + '</b> when in your room.</a><br>';
v3 += '<a href="asfunction:_root.talk.set_ban,' + line_item.frm + '">';
v3 += 'Ban <b>' + line_item.frm + '</b> when in your room.</a><br>';
v3 += '<a href="asfunction:_root.talk.cthulhu_dis,' + line_item.frm + '">Call cthulhu to dis ' + line_item.frm + ' (5c)</a><br>';
v3 += '<a href="asfunction:_root.talk.cthulhu_gag,' + line_item.frm + '">Call cthulhu to gag ' + line_item.frm + ' (10c)</a><br>';
v3 += '<a href="asfunction:_root.talk.cthulhu_ban,' + line_item.frm + '">Call cthulhu to ban ' + line_item.frm + ' (15c)</a><br>';
v3 += '<a href="asfunction:_root.talk.cookie_give,' + line_item.frm + '">Give a cookie to ' + line_item.frm + ' (1c)</a><br>';
v3 += '<a href="asfunction:_root.talk.do_bites,' + line_item.frm + '">Bite ' + line_item.frm + ' </a><br>';
v3 += '<a href="asfunction:_root.talk.do_insertname,' + line_item.frm + '">insert ' + line_item.frm + ' into editbox</a><br>';
v3 += '</font></p>';
}
this.txts.line = v3;
};
v1.do_insertname = function (nam) {
this.typehere.text += ' ' + nam;
};
v1.do_bites = function (nam) {
this.typehere.text = '/me bites ' + nam + ' ';
};
v1.set_kick = function (nam) {
this.typehere.text = '/kick ' + nam + ' ';
};
v1.set_kick_bonobos = function (nam) {
this.typehere.text = '/kick ' + nam + ' bonobos';
};
v1.set_dis = function (nam) {
this.typehere.text = '/dis ' + nam + ' 15';
};
v1.set_gag = function (nam) {
this.typehere.text = '/gag ' + nam + ' 15';
};
v1.set_ban = function (nam) {
this.typehere.text = '/ban ' + nam + ' 15';
};
v1.cookie_give = function (nam) {
this.typehere.text = '/me gives ' + nam + ' 1 cookie';
};
v1.cthulhu_dis = function (nam) {
this.typehere.text = '/me calls cthulhu to disemvowel ' + nam;
};
v1.cthulhu_gag = function (nam) {
this.typehere.text = '/me calls cthulhu to gag ' + nam;
};
v1.cthulhu_ban = function (nam) {
this.typehere.text = '/me calls cthulhu to ban ' + nam;
};
v1.update_opts = function () {
var v5 = '';
var v2 = this.up.sock.rooms;
v5 += '<font size="18" color="#ffffff">';
v5 += '<p>';
v5 += '</p>';
v5 += '<p>';
v5 += '<a href="asfunction:_root.talk.lineclick,opt/vids">';
if (this.opts.vids) {
v5 += '<b>Display videos in this chat : ON</b>';
} else {
v5 += 'Display videos in this chat : off';
}
v5 += '</a>';
v5 += '</p>';
v5 += '<p>';
v5 += '</p>';
v5 += '<p>';
v5 += '<a href="asfunction:_root.talk.lineclick,opt/pics">';
if (this.opts.pics) {
v5 += '<b>Display pictures in this chat : ON</b>';
} else {
v5 += 'Display pictures in this chat : off';
}
v5 += '</a>';
v5 += '</p>';
v5 += '<p>';
v5 += '</p>';
v5 += '<p>';
v5 += '<a href="asfunction:_root.talk.lineclick,opt/avatars">';
if (this.opts.avatars) {
v5 += '<b>Display avatars in this chat : ON</b>';
} else {
v5 += 'Display avatars in this chat : off';
}
v5 += '</a>';
v5 += '</p>';
v5 += '<p>';
v5 += '</p>';
v5 += '<p>';
v5 += '<a href="asfunction:_root.talk.lineclick,opt/vids_hq">';
if (this.opts.vids_hq) {
v5 += '<b>HQ videos are : ON</b>';
} else {
v5 += 'HQ videos are : off';
}
v5 += '</a>';
v5 += '</p>';
v5 += '<p>';
v5 += '</p>';
v5 += '</font>';
this.txts.opts = v5;
};
v1.lineclick = function (str_in) {
var v6 = str_in.split('/');
var v7 = v6[0];
var v8 = v6[1];
if (v7 == 'opt') {
if (v8 == 'vids') {
this.opts.vids = !this.opts.vids;
} else {
if (v8 == 'pics') {
this.opts.pics = !this.opts.pics;
} else {
if (v8 == 'avatars') {
this.opts.avatars = !this.opts.avatars;
} else {
if (v8 == 'vids_hq') {
this.opts.vids_hq = !this.opts.vids_hq;
}
}
}
}
this.update_opts();
var v10 = 0;
goto 46752;
for (;;) {
++v10;
label 46752:
if (v10 >= this.gizmo_Titems.length) break;
var v11 = this.gizmo_Titems[v10];
v11.rebuild = true;
}
this.resize_chat_force();
} else {
if (v7 == 'room') {
if (v8 == 'home') {
this.state = 'chat';
this.up.sock.chat('/join ' + _root.Login_Name);
} else {
v8 = Math.floor(v8);
var v9 = this.up.sock.rooms[v8];
if (v9.room_name) {
this.state = 'chat';
this.up.sock.chat('/join ' + v9.room_name);
}
}
} else {
if (v7 == 'sortroom') {
this.set_room_sort(v6[1]);
} else {
if (v7 == 'sortuser') {
this.set_user_sort(v6[1]);
} else {
if (v7 == 'user') {
v8 = Math.floor(v8);
var v9 = this.up.sock.users[v8];
this.linedisplay({'frm': v9.user_name, 'txt': '', 'gamename': v9.game_name});
} else {
if (v7 == 'chat') {
v8 = Math.floor(v8);
this.linedisplay(this.gizmo_Titems[v8]);
}
}
}
}
}
}
};
v1.get_new_tfid = function () {
if (!this.tfs[0]) {
this.tfs[0] = {};
}
var v2 = 1;
goto 47438;
for (;;) {
++v2;
label 47438:
if (v2 >= this.tfs.length) break;
var v3 = this.tfs[v2];
if (!v3.used) {
v3.used = true;
return v3.tfid;
}
}
v3 = {};
v3.mc = gfx2.create_clip(this.mc_stream, null, 0, 0);
v3.mc.cacheAsBitmap = true;
v3.tf = gfx2.create_text_html(v3.mc, null, 0, 0, 380, 100);
v3.tf.setNewTextFormat(gfx2.create_text_format(v3.fntsiz, -1));
v3.tfid = this.tfs.length;
v3.used = true;
v3.mc.mc = gfx2.create_clip(v3.mc, null, 0, 0);
this.tfs[v3.tfid] = v3;
return v3.tfid;
};
v1.display_info_check = function () {
var v2 = this.get_user_info(this.mc_over.info.name);
if (v2.avatar != this.mc_over.info.avatar) {
this.mc_over.info.avatar = v2.avatar;
this.display_info_avatar();
}
if (v2.stat != this.mc_over.info.stat || v2.joined != this.mc_over.info.joined) {
this.mc_over.info.stat = v2.stat;
this.mc_over.info.joined = v2.joined;
this.display_info_text();
}
};
v1.display_info_avatar = function () {
var v2 = this.mc_over.info;
if (v2.avatar) {
if (this.mc_over.avatar.mc && this.mc_over.avatar.url == v2.avatar) {
this.mc_over.avatar.mc._visible = true;
} else {
this.mc_over.avatar.mc = gfx2.create_clip(this.mc_over.avatar, 1, 0, 0);
this.mc_over.avatar.mc.forceSmoothing = true;
this.mc_over.avatar.mc.loadMovie(v2.avatar);
this.mc_over.avatar.url = v2.avatar;
}
} else {
this.mc_over.avatar.mc._visible = false;
}
};
v1.display_info_text = function () {
var v2 = this.mc_over.info;
var v3 = v2.name;
var v4 = this.up.sock.map_user_to_gameid[v3];
var v5 = this.up.sock.map_gameid_to_gamename[v4];
var v7 = '<b>' + v3.toLowerCase() + '</b>';
var v6 = this.mc_over.info.stat;
if (v6 && v6 != '-') {
v7 += ' ' + v6;
if (v5 && (v5 != '*' && v5 != 'chat')) {
v7 += ' is playing ' + v5;
}
} else {
if (v6 == '-') {
v7 += ' is not logged in';
}
}
if (v2.joined > 0) {
var v8 = new Date(v2.joined * 1000);
var v9 = v8.getUTCMonth() + 1;
var v10 = v8.getUTCDate();
if (v9 < 10) {
v9 = '0' + v9;
}
if (v10 < 10) {
v10 = '0' + v10;
}
v7 += '<br>Wet since ' + v8.getUTCFullYear() + '/' + v9 + '/' + v10;
}
gfx2.set_text_html(this.mc_over.tf, 16, 16777215, v7);
};
v1.get_user_info = function (name) {
if (this.up.sock.map_user_to_info[name]) {
return this.up.sock.map_user_to_info[name];
}
this.up.sock.map_user_to_info[name] = {};
this.up.sock.chat('/info user ' + name);
return this.up.sock.map_user_to_info[name];
};
v1.hover_on = function (it) {
if (it.frm == '*' || it.frm == '*mux') {
this.mc_over._visible = false;
return undefined;
}
var v5 = it.frm;
var v4 = this.mc_over.info.name;
this.mc_over.info = {};
this.mc_over.info.info = 'user';
this.mc_over.info.name = v5;
this.mc_over._visible = true;
if (v4 != v5) {
if (this.up.sock.map_user_to_info[v5]) {
var v6 = new Date();
if (v6.getTime() > this.up.sock.map_user_to_info[v5].t + 60) {
this.up.sock.map_user_to_info[v5] = null;
}
}
}
this.display_info_check();
this.display_info_avatar();
this.display_info_text();
};
v1.hover_off = function (it) {
this.mc_over._visible = false;
};
v1.click = function (it) {
this.mc_over._visible = false;
this.linedisplay(it);
};
v1.build_tf_from_it = function (it) {
it.rebuild = false;
var v3 = this.tfs[it.tfid];
v3.tf._height = 600;
it.w = 380;
it.h = 20;
v3.mc.onRelease = this.delegate(this.click, it);
v3.mc.onRollOver = this.delegate(this.hover_on, it);
v3.mc.onRollOut = this.delegate(this.hover_off, it);
v3.mc.onReleaseOutside = this.delegate(this.hover_off, it);
v3.tf.htmlText = it.display_html;
if (it.link_only_text) {
var v8 = it.txt.split('http://');
v8 = v8[1];
if (v8) {
var v4 = 0;
goto 50104;
for (;;) {
++v4;
label 50104:
if (v4 >= this.image_exts.length) break;
if (v8.indexOf(this.image_exts[v4]) >= 0) {
var v9 = v8.split(this.image_exts[v4]);
v9[1] = this.image_exts[v4];
} else {}
}
}
if (storedv9[0]) {
var v5 = 'http://wet.appspot.com/thumbcache/375/150/' + storedv9[0] + storedv9[1];
var v6 = 'http://' + storedv9[0] + storedv9[1];
v3.tf.htmlText = it.link_only_text;
}
}
if (!this.opts.pics) {
v3.tf.htmlText = it.display_html;
v5 = null;
}
var v7 = v3.tf.htmlText;
v3.tf.htmlText = '';
v3.tf.htmlText = v7;
it.h = v3.tf.textHeight;
v3.tf._height = it.h + 8;
if (it.cmd == 'say' && !v5) {
if (it.avatar) {
if (v3.tf._height < 50) {
v3.tf._height = 50;
}
if (it.h < 50) {
it.h = 50;
}
}
}
v3.tf.htmlText = v7;
if (v3.mc.mc) {
v3.mc.mc.removeMovieClip();
v3.mc.mc = null;
}
if (v5) {
v3.mc.mc = gfx2.create_clip(v3.mc, null, 0, 0);
v3.mc.mc.loadMovie(v5);
v3.mc.mc._y = it.h;
it.h += 150;
v3.mc.mc._alpha = 100;
v3.mc.mc._visible = true;
if (!it.lnk) {
it.lnk = v6;
}
}
};
v1.chat_status = function (t) {
return this.chat({'frm': '*', 'txt': t});
};
v1.chat_mux = function (t) {
return this.chat({'frm': '*mux', 'txt': t});
};
v1.chat = function (t) {
if (t) {
if (this.up.sock.watch_chat) {
this.up.sock.watch_chat(t);
}
this.gizmo_Titems[this.gizmo_Titems.length] = t;
t.avatar = undefined;
if (t.frm) {
if (this.up.sock.map_user_to_color[t.frm]) {
t.rgb = this.up.sock.map_user_to_color[t.frm];
} else {
if (this.rgbarr[t.frm]) {
t.rgb = this.rgbarr[t.frm];
} else {
t.rgb = this.rgbpos[this.rgbidx % this.rgbpos.length];
this.rgbarr[t.frm] = t.rgb;
++this.rgbidx;
}
}
} else {
t.rgb = this.rgbpos[0];
}
}
while (this.gizmo_Titems.length > 64) {
var v6 = this.gizmo_Titems[0];
if (v6.tfid) {
this.tfs[v6.tfid].used = false;
v6.tfid = null;
}
this.gizmo_Titems.splice(0, 1);
}
var v5 = '';
var v11 = 0;
var v3 = 0;
goto 51632;
for (;;) {
++v3;
label 51632:
if (v3 >= this.gizmo_Titems.length) break;
v6 = this.gizmo_Titems[v3];
if (v6.frm.substr(0, 1) != '*') {
if (this.opts.avatars) {
var v13 = this.get_user_info(v6.frm);
if (v13) {
if (v13.avatar) {
if (v13.avatar.substring(0, 41) != 'http://swf.wetgenes.com/wavys/random.php/') {
if (v6.avatar != v13.avatar) {
v6.avatar = v13.avatar;
v6.rebuild = true;
}
}
}
}
} else {
if (v6.avatar) {
v6.avatar = null;
v6.rebuild = true;
}
}
}
var v4 = '<font size="18" color="#ffffff">';
v6.fntsiz = 18;
var v7 = this.gizmo_Titems[v3].rgb;
var v12 = null;
if (this.gizmo_Titems[v3].frm == '*mux' && this.gizmo_Titems[v3].txt) {
v4 += this.gizmo_Titems[v3].txt;
} else {
if (this.gizmo_Titems[v3].frm == '*' && this.gizmo_Titems[v3].txt) {
v4 += '<p><a href="asfunction:_root.talk.lineclick,chat/' + v3 + '"><font size="14" color="#bbbbbb">' + this.gizmo_Titems[v3].txt + '</font></a></p>';
v6.fntsiz = 14;
} else {
if (this.gizmo_Titems[v3].cmd == 'act') {
v4 += '<p><a href="asfunction:_root.talk.lineclick,chat/' + v3 + '"><font size="18" color="#' + v7 + '">**' + this.gizmo_Titems[v3].frm + ' ' + this.gizmo_Titems[v3].txt + '**</font></a></p>';
v6.fntsiz = 18;
} else {
var v9 = '<a href="asfunction:_root.talk.lineclick,chat/' + v3 + '">';
if (this.gizmo_Titems[v3].avatar) {
var v8 = '<img width="50" height="50" hspace="0" vspace="0" align="left" src="' + this.gizmo_Titems[v3].avatar + '">';
} else {
var v8 = '';
}
if (this.gizmo_Titems[v3].lnk && this.gizmo_Titems[v3].lnk != '') {
v9 = '<a target="_blank" href="' + this.gizmo_Titems[v3].lnk + '">';
}
if (this.gizmo_Titems[v3].img && this.gizmo_Titems[v3].img != '') {
v8 = v9 + '<img width="375" height="100" hspace="0" vspace="0" align="left" src="' + this.gizmo_Titems[v3].img + '"></a><br><br><br><br><br>';
}
v4 += v8 + '<p>' + v9 + '<font size="18" color="#' + v7 + '"><b>' + this.gizmo_Titems[v3].frm + ': </b>' + this.gizmo_Titems[v3].txt + '</font></a></p>';
v12 = '<p><font size="18" color="#' + v7 + '"><b>' + this.gizmo_Titems[v3].frm + ': </b></font></p>';
v6.fntsiz = 18;
}
}
}
v4 += '</font>';
v6.display_html = v4;
v6.link_only_text = v12;
v5 += v4;
if (!v6.tfid) {
v6.tfid = this.get_new_tfid();
this.build_tf_from_it(v6);
}
if (v6.rebuild) {
this.build_tf_from_it(v6);
}
var v10 = this.tfs[v6.tfid];
v10.mc._y = v11;
v11 += v6.h;
}
this.gizmo_Tlist.text_height = v11;
this.txts.chat = '';
this.lsts.chat = this.gizmo_Titems;
return t;
};
v1.onKeyDown = function () {
if (Key.isDown(Key.ENTER)) {
this.focus = eval(Selection.getFocus());
this.enter_down = true;
} else {
this.focus = false;
this.enter_down = false;
}
};
v1.onKeyUp = function () {
if (this.enter_down) {
this.focus.onEnterKeyHasBeenPressed();
this.focus = false;
this.enter_down = false;
}
};
v1.onEnter = function () {
var v2 = this.typehere.text;
if (v2 != '') {
this.up.sock.chat(v2);
}
this.typehere.text = '';
};
v1.Tclick = function () {};
v1.Bclick = function () {};
v1.draw_boxen = function (mc, x, y, w, h) {
var v7 = w / 16;
var v8 = h / 16;
var v9 = v7;
if (v9 > v8) {
v9 = v8;
}
mc.lineStyle(undefined);
mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255);
mc.moveTo(x + v9, y + v9);
mc.lineTo(x + w - v9, y + v9);
mc.lineTo(x + w - v9, y + h - v9);
mc.lineTo(x + v9, y + h - v9);
mc.lineTo(x + v9, y + v9);
mc.moveTo(x + v9 * 2, y + v9 * 2);
mc.lineTo(x + w - v9 * 2, y + v9 * 2);
mc.lineTo(x + w - v9 * 2, y + h - v9 * 2);
mc.lineTo(x + v9 * 2, y + h - v9 * 2);
mc.lineTo(x + v9 * 2, y + v9 * 2);
mc.endFill();
};
v1.draw_puck = function (mc, x, y, w, h) {
var v7 = w / 16;
var v8 = h / 16;
var v9 = v7;
if (v9 > v8) {
v9 = v8;
}
mc.lineStyle(undefined);
mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255);
mc.moveTo(x + v9 * 3, y + v9 * 3);
mc.lineTo(x + w - v9 * 3, y + v9 * 3);
mc.lineTo(x + w - v9 * 3, y + h - v9 * 3);
mc.lineTo(x + v9 * 3, y + h - v9 * 3);
mc.lineTo(x + v9 * 3, y + v9 * 3);
mc.endFill();
};
v1.draw_box = function (mc, x, y, w, h) {
var v7 = w / 16;
var v8 = h / 16;
var v9 = v7;
if (v9 > v8) {
v9 = v8;
}
mc.lineStyle(undefined);
mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255);
mc.moveTo(x + v9 * 1, y + v9 * 1);
mc.lineTo(x + w - v9 * 1, y + v9 * 1);
mc.lineTo(x + w - v9 * 1, y + h - v9 * 1);
mc.lineTo(x + v9 * 1, y + h - v9 * 1);
mc.lineTo(x + v9 * 1, y + v9 * 1);
mc.endFill();
};
ASSetPropFlags(v1, null, 1);
v1.foreground = 65280;
v1.background = 0;
v1.rgbpos = ['bbffff', 'ffbbff', 'ffffbb', 'ddddff', 'ddffdd', 'ffdddd', 'aaddff', 'aaffdd', 'ffaadd', 'ddaaff', 'ddffaa', 'ffddaa'];
v1.rgbarr = [];
v1.rgbidx = 0;
v1.rnd_num = 0;
v1.last_users_stamp = 0;
v1.last_rooms_stamp = 0;
v1.extra_lines = -1;
v1.sortuser = 'rank';
v1.sortroom = 'members';
v1.image_exts = ['.png', '.PNG', '.jpg', '.JPG', '.jpeg', '.JPEG', '.gif', '.GIF'];
}
#endinitclip
}
movieClip 20485 __Packages.gfx2 {
#initclip
if (!gfx2) {
_global.gfx2 = function () {};
var v1 = _global.gfx2.prototype;
_global.gfx2.create_text_edit = function (mc, depth, x, y, w, h) {
if (mc.newdepth == undefined) {
mc.newdepth = 0;
}
if (depth == null) {
depth = ++mc.newdepth;
}
mc.createTextField('tf' + depth, depth, x, y, w, h);
var v8 = mc['tf' + depth];
v8.embedFonts = true;
v8.html = false;
v8.multiline = false;
v8.wordWrap = false;
v8.type = 'input';
v8.selectable = true;
v8.onSetFocus = function () {
var v2 = int;
Selection.getCaretIndex();
if (v2 < 0) {
v2 = 0;
}
Selection.setFocus(this);
Selection.setSelection(0, 0);
Selection.setSelection(v2, v2);
};
v8.setNewTextFormat(gfx2.create_text_format(16, -1));
return v8;
};
_global.gfx2.create_text = function (mc, depth, x, y, w, h) {
if (mc.newdepth == undefined) {
mc.newdepth = 0;
}
if (depth == null) {
depth = ++mc.newdepth;
}
mc.createTextField('tf' + depth, depth, x, y, w, h);
var v8 = mc['tf' + depth];
v8.type = 'dynamic';
v8.embedFonts = true;
v8.html = false;
v8.multiline = true;
v8.selectable = true;
v8.wordWrap = false;
v8.setNewTextFormat(gfx2.create_text_format(16, -1));
return v8;
};
_global.gfx2.create_text_format = function (fntsiz, fntcol, boldit) {
var v5 = new TextFormat();
v5.font = 'Bitstream Vera Sans';
v5.color = fntcol & 16777215;
v5.size = fntsiz;
if (!boldit) {
v5.bold = false;
return v5;
}
v5.bold = true;
return v5;
};
_global.gfx2.create_text_html = function (mc, depth, x, y, w, h) {
if (mc.newdepth == undefined) {
mc.newdepth = 0;
}
if (depth == null) {
depth = ++mc.newdepth;
}
mc.createTextField('tf' + depth, depth, x, y, w, h);
var v8 = mc['tf' + depth];
v8.type = 'dynamic';
v8.embedFonts = true;
v8.html = true;
v8.multiline = true;
v8.selectable = false;
v8.wordWrap = true;
v8.setNewTextFormat(gfx2.create_text_format(16, -1));
return v8;
};
_global.gfx2.set_text_html = function (tf, fntsiz, fntcol, str) {
var v6 = '<font face="Bitstream Vera Sans" size="' + fntsiz + '" color="#' + (fntcol & 16777215).toString(16) + '">';
v6 += str;
v6 += '</font>';
tf.htmlText = v6;
return v6;
};
_global.gfx2.create_clip = function (mc, depth, px, py, sx, sy, rot) {
if (mc.newdepth == undefined) {
mc.newdepth = 0;
}
if (depth == null) {
depth = ++mc.newdepth;
}
var v9 = mc.createEmptyMovieClip('mc' + depth, depth);
v9.newdepth = 0;
if (px != null) {
v9._x = px;
}
if (py != null) {
v9._y = py;
}
if (sx != null) {
v9._xscale = sx;
}
if (sy != null) {
v9._yscale = sy;
}
if (rot != null) {
v9._rotation = rot;
}
return v9;
};
_global.gfx2.add_clip = function (mc, str, depth, px, py, sx, sy, rot) {
if (mc.newdepth == undefined) {
mc.newdepth = 0;
}
if (depth == null) {
depth = ++mc.newdepth;
}
var v10 = mc.attachMovie(str, 'mc' + depth, depth);
v10.newdepth = 0;
if (px != null) {
v10._x = px;
}
if (py != null) {
v10._y = py;
}
if (sx != null) {
v10._xscale = sx;
}
if (sy != null) {
v10._yscale = sy;
}
if (rot != null) {
v10._rotation = rot;
}
return v10;
};
_global.gfx2.clear = function (mc) {
mc.style = [];
mc.style.out = -1;
mc.style.fill = -1;
mc.clear();
};
_global.gfx2.create_rounded_text_button = function (mc, depth, x, y, w, h, b, c, l) {
if (b == null) {
b = 3;
}
if (c == null) {
c = 8;
}
if (l == null) {
l = 2;
}
gfx2.draw_rounded_rectangle(mc, b, c, l, x, y, w, h);
var v11 = gfx2.create_text_html(mc, depth, x, y, w, h);
return v11;
};
_global.gfx2.draw_rounded_rectangle = function (mc, b, c, l, x, y, w, h) {
if (l != 0) {
mc.lineStyle(l, mc.style.out & 16777215, (mc.style.out >> 24 & 255) * 100 / 255);
} else {
mc.lineStyle(undefined, undefined);
}
mc.moveTo(x + b + c, y + b);
mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255);
mc.lineTo(x + w - b - c, y + b);
mc.curveTo(x + w - b, y + b, x + w - b, y + b + c);
mc.lineTo(x + w - b, y + h - b - c);
mc.curveTo(x + w - b, y + h - b, x + w - b - c, y + h - b);
mc.lineTo(x + b + c, y + h - b);
mc.curveTo(x + b, y + h - b, x + b, y + h - b - c);
mc.lineTo(x + b, y + b + c);
mc.curveTo(x + b, y + b, x + b + c, y + b);
mc.endFill();
};
_global.gfx2.draw_box = function (mc, l, x, y, w, h) {
if (l != 0) {
mc.lineStyle(l, mc.style.out & 16777215, (mc.style.out >> 24 & 255) * 100 / 255);
} else {
mc.lineStyle(undefined, undefined);
}
mc.moveTo(x, y);
mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255);
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
mc.endFill();
};
_global.gfx2.draw_box_xgrad = function (mc, l, x, y, w, h, c1, c2) {
if (l != 0) {
mc.lineStyle(l, mc.style.out & 16777215, (mc.style.out >> 24 & 255) * 100 / 255);
} else {
mc.lineStyle(undefined, undefined);
}
mc.moveTo(x, y);
mc.beginGradientFill('linear', [c1 & 16777215, c2 & 16777215], [(c1 >> 24 & 255) * 100 / 255, (c2 >> 24 & 255) * 100 / 255], [0, 255], {'matrixType': 'box', 'x': x, 'y': y, 'w': w, 'h': h, 'r': (0 / 180) * Math.PI});
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
mc.endFill();
};
_global.gfx2.draw_box_ygrad = function (mc, l, x, y, w, h, c1, c2) {
if (l != 0) {
mc.lineStyle(l, mc.style.out & 16777215, (mc.style.out >> 24 & 255) * 100 / 255);
} else {
mc.lineStyle(undefined, undefined);
}
mc.moveTo(x, y);
mc.beginGradientFill('linear', [c1 & 16777215, c2 & 16777215], [(c1 >> 24 & 255) * 100 / 255, (c2 >> 24 & 255) * 100 / 255], [0, 255], {'matrixType': 'box', 'x': x, 'y': y, 'w': w, 'h': h, 'r': (90 / 180) * Math.PI});
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
mc.endFill();
};
_global.gfx2.draw_fcirc4 = function (mc, l, x1, y1, x2, y2, x3, y3, x4, y4) {
if (l != 0) {
mc.lineStyle(l, mc.style.out & 16777215, (mc.style.out >> 24 & 255) * 100 / 255);
} else {
mc.lineStyle(undefined, undefined);
}
mc.moveTo((x1 + x2) / 2, (y1 + y2) / 2);
mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255);
mc.curveTo(x2, y2, (x2 + x3) / 2, (y2 + y3) / 2);
mc.curveTo(x3, y3, (x3 + x4) / 2, (y3 + y4) / 2);
mc.curveTo(x4, y4, (x4 + x1) / 2, (y4 + y1) / 2);
mc.curveTo(x1, y1, (x1 + x2) / 2, (y1 + y2) / 2);
mc.endFill();
};
_global.gfx2.adjust_allmovieclips = function (base, funk) {
for (var nam in base) {
var v4 = base[nam];
if (typeof v4 == 'movieclip') {
gfx2.adjust_allmovieclips(v4, funk);
}
}
funk(base);
};
_global.gfx2.setscroll = function (mc, minx, miny, sizx, sizy) {
mc.scrollRect = new flash.geom.Rectangle(minx, miny, sizx, sizy);
};
_global.gfx2.dropshadow = function (mc, a, b, c, d, e, f, g, h) {
mc.filters = [new flash.filters.DropShadowFilter(a, b, c, d, e, f, g, h)];
};
_global.gfx2.glow = function (mc, a, b, c, d, e, f, g, h) {
mc.filters = [new flash.filters.GlowFilter(a, b, c, d, e, f, g, h)];
};
_global.gfx2.blur = function (mc, a, b, c) {
mc.filters = [new flash.filters.BlurFilter(a, b, c)];
};
_global.gfx2.blurglow = function (mc, aa, bb, cc, a, b, c, d, e, f, g, h) {
mc.filters = [new flash.filters.BlurFilter(aa, bb, cc), new flash.filters.GlowFilter(a, b, c, d, e, f, g, h)];
};
_global.gfx2.clear_filters = function (mc) {
mc.filters = null;
};
ASSetPropFlags(v1, null, 1);
}
#endinitclip
}
movieClip 20486 __Packages.GizmoMaster2 {
#initclip
if (!GizmoMaster2) {
_global.GizmoMaster2 = function (_up) {
this.up = _up;
this.setup();
};
var v1 = _global.GizmoMaster2.prototype;
v1.setup_base = function () {
this.mc = gfx2.create_clip(this.up.mc, null);
this.mc.style = this.up.mc.style;
this.gizmos = new Array();
this.active = true;
this.focus = null;
this.focus_data = null;
this.top = this.up.top;
if (this.top == null) {
this.top = this;
}
};
v1.clean_base = function () {
var v2 = 0;
goto 666;
for (;;) {
++v2;
label 666:
if (v2 >= this.gizmos.length) break;
if (this.gizmos[v2].active) {
this.gizmos[v2].clean();
}
}
this.mc.removeMovieClip();
this.mc = null;
};
v1.update_base = function () {
this.mc._x = this.x;
this.mc._y = this.y;
var v2 = 0;
goto 861;
for (;;) {
++v2;
label 861:
if (v2 >= this.gizmos.length) break;
if (this.gizmos[v2].active) {
this.gizmos[v2].mc._visible = true;
this.gizmos[v2].update();
} else {
this.gizmos[v2].mc._visible = false;
}
}
};
_global.GizmoMaster2.dupe_snapshot = function (snapshot) {
var v3 = {};
v3.key = snapshot.key;
v3.key_on = snapshot.key_on;
v3.key_off = snapshot.key_off;
v3.x = snapshot.x;
v3.y = snapshot.y;
v3.frame = snapshot.frame;
return v3;
};
v1.input_base = function (snapshot) {
var v5 = GizmoMaster2.dupe_snapshot(snapshot);
this.mc.localToGlobal(v5);
var v3 = 0;
goto 1233;
for (;;) {
++v3;
label 1233:
if (v3 >= this.gizmos.length) break;
if (this.gizmos[v3].active) {
this.gizmos[v3].mc.globalToLocal(v5);
this.gizmos[v3].input(v5);
this.gizmos[v3].mc.localToGlobal(v5);
}
}
return this.top.focus;
};
v1.child = function (g) {
var v3 = this.gizmos.length;
this.gizmos[v3] = g;
return g;
};
v1.set_area = function (_x, _y, _w, _h) {
this.x = _x;
this.y = _y;
this.w = _w;
this.h = _h;
};
v1.draw_mask = function (px, py) {
gfx2.setscroll(this.mc, px, py, this.w, this.h);
};
v1.setup = function () {
this.setup_base();
};
v1.clean = function () {
this.clean_base();
};
v1.update = function () {
var v2 = (new Date()).getTime();
v2 = ((v2 & 16383) - 8192) / 8192;
if (v2 < 0) {
v2 = -v2;
}
var v3 = v2 * v2;
this.spine = v3 + v3 * 2 - v3 * v2 * 2;
this.update_base();
};
v1.input = function (snapshot) {
this.focus = this.input_base(snapshot);
return this.focus;
};
ASSetPropFlags(v1, null, 1);
}
#endinitclip
}
movieClip 20487 __Packages.com.dynamicflash.utils.Delegate {
#initclip
if (!com.dynamicflash.utils.Delegate) {
if (!com) {
_global.com = new Object();
}
if (!com.dynamicflash) {
_global.com.dynamicflash = new Object();
}
if (!com.dynamicflash.utils) {
_global.com.dynamicflash.utils = new Object();
}
_global.com.dynamicflash.utils.Delegate = function () {};
var v1 = _global.com.dynamicflash.utils.Delegate.prototype;
_global.com.dynamicflash.utils.Delegate.create = function (target, handler) {
var v4 = arguments.slice(2);
var v5 = function () {
super = arguments.callee;
var v3 = arguments.concat(super.extraArgs, [super]);
return super.handler.apply(super.target, v3);
};
v5.extraArgs = v4;
v5.handler = handler;
v5.target = super;
return v5;
};
ASSetPropFlags(v1, null, 1);
}
#endinitclip
}
movieClip 20488 __Packages.Scalar2 {
#initclip
if (!Scalar2) {
_global.Scalar2 = function (_ox, _oy, _fake, _chatshrink) {
this.fake = _fake;
this.chatshrink = _chatshrink;
this.ox = _ox;
this.oy = _oy;
this.mc = gfx2.create_clip(_root, null);
this.mc.onEnterFrame = this.delegate(this.update);
this.tf_stats = gfx2.create_text_html(this.mc, null, 0, 0, this.ox, 32);
this.scale = 1;
if (this.scale > _root.maxs) {
this.scale = _root.maxs;
}
this.update();
Key.addListener(this);
this.t_old = getTimer();
this.t_new = this.t_old;
this.t_ms = 0;
this.t_samples = 0;
if (this.fake) {
this.dx = 0;
this.dy = 0;
this.sx = this.ox;
this.sy = this.oy;
this.rot = 0;
this.ox = this.bx;
this.oy = this.by;
return undefined;
}
};
var v1 = _global.Scalar2.prototype;
v1.delegate = function (f, d) {
return com.dynamicflash.utils.Delegate.create(this, f, d);
};
v1.update = function () {
if (this.fake) {
return undefined;
}
Stage.scaleMode = 'noScale';
Stage.align = 'TL';
this.rot = 0;
if (_root.scale == 'fixed') {
var v2 = 1;
} else {
var v2 = Stage.width / this.ox;
if (_root.maxw) {
if (v2 * this.ox > _root.maxw) {
v2 = _root.maxw / this.ox;
}
}
if (_root.maxh) {
if (v2 * this.oy > _root.maxh) {
v2 = _root.maxh / this.oy;
}
}
if (v2 * this.oy > Stage.height) {
v2 = Stage.height / this.oy;
}
}
v2 *= this.scale;
this.dx = Math.floor((Stage.width - v2 * this.ox) / 2);
this.dy = Math.floor((Stage.height - v2 * this.oy) / 2);
this.need_chat_pop = false;
if (this.dx < 0) {
this.dx = 0;
this.need_chat_pop = true;
}
if (this.dy < 0) {
this.dy = 0;
}
this.vx = Math.floor(this.ox * v2);
this.vy = Math.floor(this.oy * v2);
this.sx = v2 * 100;
this.sy = v2 * 100;
++this.t_samples;
if (this.t_samples >= 20) {
this.t_old = this.t_new;
this.t_new = getTimer();
this.t_ms = (this.t_new - this.t_old) / this.t_samples;
this.t_fps = Math.floor(1000 / this.t_ms);
if (this.dx >= 16 || this.dy >= 16) {
var v3 = ' ' + Math.floor(this.t_ms) + 'ms : ' + Math.floor(1000 / this.t_ms) + 'fps' + ' : ' + Math.floor(_root.code_time / this.t_samples) + 'ms';
gfx2.set_text_html(this.tf_stats, 13, 16777215, v3);
}
this.t_samples = 0;
_root.code_time = 0;
}
if (this.dx >= 16 || this.dy >= 16) {
this.tf_stats._visible = true;
} else {
this.tf_stats._visible = false;
}
};
v1.apply = function (tomc, half) {
if (_root.scale == 'no') {
tomc._rotation = this.rot;
tomc._x = 0;
tomc._y = 0;
tomc._xscale = 100;
tomc._yscale = 100;
return undefined;
}
if (half) {
tomc._rotation = this.rot;
tomc._x = Math.floor(this.dx / 2);
tomc._y = Math.floor(this.dy / 2 + Stage.height / 4);
tomc._xscale = Math.floor(this.sx / 2);
tomc._yscale = Math.floor(this.sy / 2);
} else {
tomc._rotation = this.rot;
tomc._x = this.dx;
tomc._y = this.dy;
tomc._xscale = this.sx;
tomc._yscale = this.sy;
}
};
v1.onKeyDown = function () {};
v1.onKeyUp = function () {
var v3 = Key.getCode();
var v2 = String.fromCharCode(Key.getAscii());
if (Selection.getCaretIndex() == -1) {
if (v2 == '+' || v2 == '=') {
this.scale *= 1.1;
if (this.scale > 1) {
this.scale = 1;
}
} else {
if (v2 == '_' || v2 == '-') {
this.scale /= 1.1;
if (this.scale < 0.1) {
this.scale = 0.1;
}
}
}
}
if (this.scale > _root.maxs) {
this.scale = _root.maxs;
}
};
ASSetPropFlags(v1, null, 1);
}
#endinitclip
}
movieClip 20489 __Packages.JSON {
#initclip
if (!JSON) {
_global.JSON = function () {};
var v1 = _global.JSON.prototype;
v1.stringify = function (arg) {
var v6 = '';
switch (typeof arg) {
return 'null';
case 'object':
if (arg) {
if (arg instanceof Array) {
var v4 = 0;
goto 652;
for (;;) {
++v4;
label 652:
if (v4 >= arg.length) break;
var v7 = this.stringify(arg[v4]);
if (v6) {
v6 += ',';
}
v6 += v7;
}
return '[' + v6 + ']';
} else {
if (typeof arg.toString != 'undefined') {
for (var v4 in arg) {
var v7 = arg[v4];
if (typeof v7 != 'undefined' && typeof v7 != 'function') {
v7 = this.stringify(v7);
if (v6) {
v6 += ',';
}
v6 += this.stringify(v4) + ':' + v7;
}
}
return '{' + v6 + '}';
}
}
}
return 'null';
case 'number':
return _global.isFinite(arg) ? String(arg) : 'null';
case 'string':
var v5 = arg.length;
v6 = '"';
var v4 = 0;
goto 1065;
for (;;) {
v4 += 1;
label 1065:
if (v4 >= v5) break;
var v3 = arg.charAt(v4);
if (v3 >= ' ') {
if (v3 == '\\' || v3 == '"') {
v6 += '\\';
}
v6 += v3;
} else {
switch (v3) {
case '\b':
v6 += '\\b';
break;
case '\f':
v6 += '\\f';
break;
case '\n':
v6 += '\\n';
break;
case '\r':
v6 += '\\r';
break;
case '\t':
v6 += '\\t';
break;
default:
v3 = v3.charCodeAt();
v6 += '\\u00' + (Math.floor(v3 / 16)).toString(16) + (v3 % 16).toString(16);
}
}
}
return v6 + '"';
case 'boolean':
return String(arg);
}
return 'null';
};
v1.white = function () {
while (this.ch) {
if (this.ch <= ' ') {
this.next();
} else {
if (this.ch == '/') {
switch (this.next()) {
case '/':
for (;;) {
if (!(this.next() && (this.ch != '\n' && this.ch != '\r'))) break;
}
break;
case '*':
this.next();
for (;;) {
if (this.ch) {
if (this.ch == '*') {
if (this.next() == '/') {
this.next();
break;
}
} else {
this.next();
}
continue;
}
this.error('Unterminated comment');
}
break;
default:
this.error('Syntax error');
}
} else {
break;
}
}
}
};
v1.error = function (m) {
throw {'name': 'JSONError', 'message': m, 'at': this.at - 1, 'text': this.text};
};
v1.next = function () {
this.ch = this.text.charAt(this.at);
this.at += 1;
return this.ch;
};
v1.str = function () {
var v3 = '';
var v6 = false;
if (this.ch == '"') {
while (this.next()) {
if (this.ch == '"') {
this.next();
return v3;
} else {
if (this.ch == '\\') {
switch (this.next()) {
case 'b':
v3 += '\b';
break;
case 'f':
v3 += '\f';
break;
case 'n':
v3 += '\n';
break;
case 'r':
v3 += '\r';
break;
case 't':
v3 += '\t';
break;
case 'u':
var v5 = 0;
var v2 = 0;
goto 2390;
for (;;) {
v2 += 1;
label 2390:
if (v2 >= 4) break;
var v4 = _global.parseInt(this.next(), 16);
if (!_global.isFinite(v4)) {
v6 = true;
break;
}
v5 = v5 * 16 + v4;
}
if (v6) {
v6 = false;
} else {
v3 += String.fromCharCode(v5);
break;
default:
v3 += this.ch;
}
}
} else {
v3 += this.ch;
}
}
}
}
this.error('Bad string');
};
v1.arr = function () {
var v2 = [];
if (this.ch == '[') {
this.next();
this.white();
if (this.ch == ']') {
this.next();
return v2;
}
while (this.ch) {
v2.push(this.value());
this.white();
if (this.ch == ']') {
this.next();
return v2;
} else {
if (this.ch != ',') {
break;
}
}
this.next();
this.white();
}
}
this.error('Bad array');
};
v1.obj = function () {
var v3 = {};
if (this.ch == '{') {
this.next();
this.white();
if (this.ch == '}') {
this.next();
return v3;
}
while (this.ch) {
var v2 = this.str();
this.white();
if (this.ch != ':') {
break;
}
this.next();
v3[v2] = this.value();
this.white();
if (this.ch == '}') {
this.next();
return v3;
} else {
if (this.ch != ',') {
break;
}
}
this.next();
this.white();
}
}
this.error('Bad object');
};
v1.num = function () {
var v2 = '';
if (this.ch == '-') {
v2 = '-';
this.next();
}
for (;;) {
if (!(this.ch >= '0' && this.ch <= '9')) break;
v2 += this.ch;
this.next();
}
if (this.ch == '.') {
v2 += '.';
this.next();
for (;;) {
if (!(this.ch >= '0' && this.ch <= '9')) break;
v2 += this.ch;
this.next();
}
}
if (this.ch == 'e' || this.ch == 'E') {
v2 += this.ch;
this.next();
if (this.ch == '-' || this.ch == '+') {
v2 += this.ch;
this.next();
}
for (;;) {
if (!(this.ch >= '0' && this.ch <= '9')) break;
v2 += this.ch;
this.next();
}
}
var v3 = Number(v2);
if (!_global.isFinite(v3)) {
this.error('Bad number');
}
return v3;
};
v1.word = function () {
switch (this.ch) {
case 't':
if (this.next() == 'r' && (this.next() == 'u' && this.next() == 'e')) {
this.next();
return true;
}
break;
case 'f':
if (this.next() == 'a' && (this.next() == 'l' && (this.next() == 's' && this.next() == 'e'))) {
this.next();
return false;
}
break;
case 'n':
if (this.next() == 'u' && this.next() == 'l') {
this.next();
return null;
}
}
this.error('Syntax error');
};
v1.value = function () {
this.white();
switch (this.ch) {
case '{':
return this.obj();
case '[':
return this.arr();
case '"':
return this.str();
case '-':
return this.num();
}
return (this.ch >= '0' && this.ch <= '9') ? this.num() : this.word();
};
v1.parse = function (_text) {
this.text = _text;
this.at = 0;
this.ch = ' ';
return this.value();
};
ASSetPropFlags(v1, null, 1);
v1.ch = '';
v1.at = 0;
}
#endinitclip
}
movieClip 20490 __Packages.Clown {
#initclip
if (!Clown) {
_global.Clown = function () {};
var v1 = _global.Clown.prototype;
_global.Clown.tostr = function (num, len) {
var v6 = num;
var v7 = '';
var v4 = 0;
goto 382;
for (;;) {
++v4;
label 382:
if (v4 >= len) break;
var v5 = v6 & 63;
v7 += Clown.chars.charAt(v5);
v6 >>= 6;
}
return v7;
};
_global.Clown.tonum = function (str, base, len) {
var v8 = 1;
var v7 = 0;
var v6 = base;
goto 559;
for (;;) {
++v6;
label 559:
if (v6 >= base + len) break;
var v5 = str.charCodeAt(v6);
v7 += Clown.nums[v5] * v8;
v8 *= 64;
}
return v7;
};
_global.Clown.bits_to_str = function (arr, bits) {
if (bits % 6 != 0) {
return null;
}
var v4 = '';
var v5 = 0;
goto 756;
for (;;) {
++v5;
label 756:
if (v5 >= arr.length) break;
v4 += Clown.tostr(arr[v5], bits / 6);
}
return v4;
};
_global.Clown.str_to_bits = function (str, off, bits) {
if (bits % 6 != 0) {
return null;
}
var v7 = bits / 6;
var v6 = [];
var v8 = str.length;
var v5 = off;
goto 966;
for (;;) {
v5 += v7;
label 966:
if (v5 >= v8) break;
v6[v6.length] = Clown.tonum(str, v5, v7);
}
return v6;
};
_global.Clown.bytes_to_pak = function (aa) {
var v4 = aa.length;
var v8 = [];
var v5 = 0;
goto 1109;
for (;;) {
v5 += 3;
label 1109:
if (v5 >= v4) break;
if (v5 + 3 <= v4) {
var v7 = aa[v5 + 0] * 65536;
v7 += aa[v5 + 1] * 256;
v7 += aa[v5 + 2];
} else {
var v7 = aa[v5 + 0] * 65536;
if (v5 + 1 < v4) {
v7 += aa[v5 + 1] * 256;
}
if (v5 + 2 < v4) {
v7 += aa[v5 + 2];
}
}
var v9 = v7 >> 6 + 6 + 6 & 63;
var v10 = Clown.chars.charAt(v9);
v9 = v7 >> 6 + 6 & 63;
v10 += Clown.chars.charAt(v9);
v9 = v7 >> 6 & 63;
v10 += Clown.chars.charAt(v9);
v9 = v7 & 63;
v10 += Clown.chars.charAt(v9);
v8[v8.length] = v10;
}
return v8.join('');
};
_global.Clown.str_to_pak = function (str) {
var v4 = str.length;
var v3 = Clown.tostr(v4, 4);
var v5 = 0;
goto 1738;
for (;;) {
v5 += 3;
label 1738:
if (v5 >= v4) break;
if (v5 + 3 <= v4) {
var v7 = str.charCodeAt(v5 + 0);
v7 += str.charCodeAt(v5 + 1) * 256;
v7 += str.charCodeAt(v5 + 2) * 65536;
v3 += Clown.tostr(v7, 4);
} else {
var v7 = str.charCodeAt(v5 + 0);
if (v5 + 1 < v4) {
v7 += str.charCodeAt(v5 + 1) * 256;
}
if (v5 + 2 < v4) {
v7 += str.charCodeAt(v5 + 2) * 65536;
}
v3 += Clown.tostr(v7, 4);
}
}
return v3;
};
_global.Clown.pak_to_str = function (pak) {
var v3 = '';
var v4 = Clown.tonum(pak, 0, 4);
var v6 = 4;
var v5 = 0;
goto 2239;
for (;;) {
v5 += 3;
label 2239:
if (v5 >= v4) break;
if (v6 > pak.length) {
return v3;
}
if (v5 + 3 <= v4) {
var v8 = Clown.tonum(pak, v6, 4);
v6 += 4;
v3 += String.fromCharCode(v8 & 255, v8 >> 8 & 255, v8 >> 16 & 255);
} else {
var v8 = Clown.tonum(pak, v6, 4);
v6 += 4;
v3 += String.fromCharCode(v8 & 255);
if (v5 + 1 < v4) {
v3 += String.fromCharCode(v8 >> 8 & 255);
}
if (v5 + 2 < v4) {
v3 += String.fromCharCode(v8 >> 16 & 255);
}
}
}
return v3;
};
_global.Clown.clean_str = function (s) {
var v5 = '';
var v3 = 0;
goto 2718;
for (;;) {
++v3;
label 2718:
if (v3 >= s.length) break;
var v4 = s.charCodeAt(v3);
if (Clown.nums[v4] > 0 || v4 == 65) {
v5 += String.fromCharCode(v4);
}
}
return v5;
};
ASSetPropFlags(v1, null, 1);
_global.Clown.chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
_global.Clown.nums = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 0, 63, 0, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 62, 0, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
#endinitclip
}
movieClip 20491 __Packages.GizmoText2 {
#initclip
if (!GizmoText2) {
_global.GizmoText2 = function (_up) {
this.up = _up;
this.setup();
};
var v1 = _global.GizmoText2.prototype;
v1.setup_base = function () {
this.mc = gfx2.create_clip(this.up.mc, null);
this.mc.style = this.up.mc.style;
this.gizmos = new Array();
this.active = true;
this.focus = null;
this.focus_data = null;
this.top = this.up.top;
if (this.top == null) {
this.top = this;
}
};
v1.clean_base = function () {
var v2 = 0;
goto 831;
for (;;) {
++v2;
label 831:
if (v2 >= this.gizmos.length) break;
if (this.gizmos[v2].active) {
this.gizmos[v2].clean();
}
}
this.mc.removeMovieClip();
this.mc = null;
};
v1.update_base = function () {
this.mc._x = this.x;
this.mc._y = this.y;
var v2 = 0;
goto 1026;
for (;;) {
++v2;
label 1026:
if (v2 >= this.gizmos.length) break;
if (this.gizmos[v2].active) {
this.gizmos[v2].mc._visible = true;
this.gizmos[v2].update();
} else {
this.gizmos[v2].mc._visible = false;
}
}
};
_global.GizmoText2.dupe_snapshot = function (snapshot) {
var v3 = {};
v3.key = snapshot.key;
v3.key_on = snapshot.key_on;
v3.key_off = snapshot.key_off;
v3.x = snapshot.x;
v3.y = snapshot.y;
v3.frame = snapshot.frame;
return v3;
};
v1.input_base = function (snapshot) {
var v5 = GizmoText2.dupe_snapshot(snapshot);
this.mc.localToGlobal(v5);
var v3 = 0;
goto 1398;
for (;;) {
++v3;
label 1398:
if (v3 >= this.gizmos.length) break;
if (this.gizmos[v3].active) {
this.gizmos[v3].mc.globalToLocal(v5);
this.gizmos[v3].input(v5);
this.gizmos[v3].mc.localToGlobal(v5);
}
}
return this.top.focus;
};
v1.child = function (g) {
var v3 = this.gizmos.length;
this.gizmos[v3] = g;
return g;
};
v1.set_area = function (_x, _y, _w, _h) {
this.x = _x;
this.y = _y;
this.w = _w;
this.h = _h;
};
v1.draw_mask = function (px, py) {
gfx2.setscroll(this.mc, px, py, this.w, this.h);
};
v1.setup = function () {
this.setup_base();
this.mc.cacheAsBitmap = true;
this.fntsiz = 16;
this.fntcol = 16777215;
this.tf_fmt = gfx2.create_text_format(this.fntsiz, this.fntcol);
this.tf = null;
};
v1.clean = function () {
this.clean_base();
};
v1.clear_tf = function () {
this.tf.removeTextField();
this.tf = null;
this.tf.cachestr = '';
};
v1.update = function () {
if (this.tf == null) {
this.tf = gfx2.create_text_html(this.mc, null, 0, 0, this.w, this.h);
this.tf.setNewTextFormat(this.tf_fmt);
}
if (this.tf.cachestr != this.str) {
this.tf.cachestr = this.str;
gfx2.set_text_html(this.tf, this.fntsiz, this.fntcol, this.str);
}
if (this.vgizmo) {
var v2 = Math.floor(this.tf.maxscroll * this.vgizmo.y_knob);
if (v2 < 1) {
v2 = 1;
}
if (v2 != this.tf.scroll) {
this.tf.scroll = v2;
}
}
this.update_base();
};
v1.input = function (snapshot) {
this.input_base(snapshot);
return this.top.focus;
};
ASSetPropFlags(v1, null, 1);
}
#endinitclip
}
movieClip 20492 __Packages.PlayJPEG {
#initclip
if (!PlayJPEG) {
_global.PlayJPEG = function (_up) {
this.up = _up;
};
var v1 = _global.PlayJPEG.prototype;
v1.delegate = function (f, d) {
return com.dynamicflash.utils.Delegate.create(this, f, d);
};
v1.setup = function () {
this.pause = false;
if (_root.popup_jpeg) {
return undefined;
}
this.build_jpeg_start();
_root.popup_jpeg = this;
this.mcs = new Array();
this.mcbs = gfx2.create_clip(this.up.mc, 16384 + 1024);
this.mcb = gfx2.create_clip(this.mcbs);
if ((_root.scalar.ox == 640 || _root.scalar.ox == 960) && _root.scalar.oy == 480) {
this.mc = this.mcb;
} else {
if (_root.scalar.ox <= 400) {
this.mcb._xscale = Math.floor(100 * (_root.scalar.ox / 640));
this.mcb._yscale = Math.floor(100 * (_root.scalar.ox / 640));
} else {
this.mcb._xscale = Math.floor(100 * (_root.scalar.oy / 480));
this.mcb._yscale = Math.floor(100 * (_root.scalar.oy / 480));
}
this.mc = gfx2.create_clip(this.mcb, null);
}
this.mcb.cacheAsBitmap = true;
gfx2.dropshadow(this.mcb, 5, 45, 0, 1, 20, 20, 2, 3);
this.mc._y = 0;
this.mc.dx = 0;
this.mc._x = -800;
this.mc.onEnterFrame = this.delegate(this.update, null);
this.done = false;
this.steady = false;
gfx2.clear(this.mc);
this.mcs[0] = gfx2.create_clip(this.mc, null);
this.mcs[1] = gfx2.create_clip(this.mc, null);
this.add_bmp_mc();
this.mcs[3] = gfx2.create_clip(this.mcs[1], null);
gfx2.clear(this.mcs[3]);
this.mcs[3].style.out = -1;
this.mcs[3].style.fill = -1;
gfx2.draw_box(this.mcs[3], 0, (640 - 400) / 2, 20, 400, 20);
this.new_butt('cam', '<p align=\'center\'>WebCam</p>', 120, 450, 100, 20);
this.new_butt('pause', '<p align=\'center\'>Pause</p>', 270, 450, 100, 20);
this.new_butt('close', '<p align=\'center\'>Close</p>', 420, 450, 100, 20);
Mouse.addListener(this);
_root.scalar.apply(this.mcbs);
};
v1.add_bmp_mc = function () {
this.mcs[2] = gfx2.create_clip(this.mcs[1], null);
this.mcs[2].attachBitmap(this.bmp, 0, 'auto', true);
this.mcs[2]._x = (640 - 400) / 2;
this.mcs[2]._y = (480 - 400) / 2;
var v2 = this.bmp.width;
if (this.bmp.height > this.bmp.width) {
v2 = this.bmp.height;
}
this.mcs[2]._xscale = Math.floor(100 * (400 / v2));
this.mcs[2]._yscale = Math.floor(100 * (400 / v2));
v2 = this.mcs[2]._xscale * this.bmp.width / 100;
this.mcs[2]._x = (640 - v2) / 2;
};
v1.clean = function () {
if (_root.popup_jpeg != this) {
return undefined;
}
_root.main.fast_update = false;
_root.popup_jpeg = null;
this.mc.removeMovieClip();
this.mcb.removeMovieClip();
Mouse.removeListener(this);
};
v1.onRelease = function () {
if (this.steady) {
this.done = true;
this.mc.dx = _root.scalar.ox;
}
};
v1.finish = function () {
this.done = true;
this.mc.dx = _root.scalar.ox;
};
v1.update = function () {
_root.scalar.apply(this.mcbs);
this.mc._x += (this.mc.dx - this.mc._x) / 4;
if ((this.mc._x - this.mc.dx) * (this.mc._x - this.mc.dx) < 16 * 16) {
this.steady = true;
if (this.encoding == 0) {
this.clean();
}
} else {
this.steady = false;
}
if (this.steady) {
if (!this.pause) {
this.build_jpeg_update();
}
}
};
v1.build_jpeg_start = function () {
this.encode_count = 0;
this.encode_total = 0;
this.encode_percent = 0;
var v2 = new flash.geom.Matrix();
v2.translate(-_root.scalar.dx, -_root.scalar.dy);
var v3 = Stage.width - _root.scalar.dx * 2;
var v4 = Stage.height - _root.scalar.dy * 2;
if (this.mc.vid) {
this.bmp = new flash.display.BitmapData(640, 480, false, 0);
this.bmp.draw(this.mc.vid.video);
} else {
this.bmp = new flash.display.BitmapData(v3, v4, false, 0);
this.bmp.draw(_root, v2);
var v5 = new flash.display.BitmapData(v3 / 8, v4 / 8, false, 0);
var v6 = new flash.geom.Matrix();
v6.scale(1 / 8, 1 / 8);
v5.draw(this.bmp, v6);
var v7 = true;
var v9 = 0;
goto 4242;
for (;;) {
++v9;
label 4242:
if (v9 >= v5.height) break;
var v8 = 0;
goto 4288;
for (;;) {
++v8;
label 4288:
if (v8 >= v5.width) break;
if ((this.bmp.getPixel32(v8, v9) & 16777215) != 0) {
v7 = false;
} else {}
}
if (v7 == false) {
} else {}
}
if (v7) {
var v10 = _root.talk.mc;
if (v10) {
var v11 = false;
if (_root.talk.wetv) {
v11 = _root.talk.opts.vids;
_root.talk.opts.vids = false;
_root.talk.resize_chat_force();
}
this.bmp = new flash.display.BitmapData(400, 600, false, 0);
this.bmp.draw(v10);
if (v11) {
_root.talk.opts.vids = v11;
_root.talk.resize_chat_force();
}
}
}
}
this.encode_total = Math.floor((this.bmp.width / 8) * (this.bmp.height / 8));
if (!this.jpeg) {
this.jpeg = new JPEG();
}
this.jpeg.encode_start(this.bmp, 75);
this.encoding = 1;
};
v1.build_jpeg_update = function () {
if (this.encoding == 0) {
_root.main.fast_update = false;
return undefined;
}
_root.main.fast_update = true;
var v2 = this.jpeg.encode_update_count(40);
if (!v2) {
this.encode_count += 40;
this.encode_percent = Math.floor(100 * this.encode_count / this.encode_total);
gfx2.clear(this.mcs[3]);
this.mcs[3].style.out = -1;
this.mcs[3].style.fill = 1090519039;
gfx2.draw_box(this.mcs[3], 0, (640 - 400) / 2, 20, 400, 20);
this.mcs[3].style.out = -1;
this.mcs[3].style.fill = -1;
gfx2.draw_box(this.mcs[3], 0, (640 - 400) / 2, 20, 4 * this.encode_percent, 20);
} else {
this.encoding = 0;
var v3 = new LoadVars();
v3.jpeg = Clown.bytes_to_pak(v2);
v3.onLoad = this.delegate(this.jpeg_post, v3);
v3.sendAndLoad('http://' + _root.host + '/swf/jpeg.php', v3, 'POST');
}
};
v1.jpeg_post = function (succ, lv) {
if (lv.hosted) {
_root.sock.chat(lv.hosted);
}
};
v1.butt_over = function (b) {
b._alpha = 100;
};
v1.butt_out = function (b) {
b._alpha = 75;
};
v1.butt_up = function (b) {};
v1.butt_press = function (b) {
switch (b.id) {
case 'cam':
this.pause = true;
if (this.mc.vid) {
this.build_jpeg_start();
this.add_bmp_mc();
gfx2.set_text_html(b.tf, 16, 16777215, '<p align=\'center\'>WebCam</p>');
this.mc.vid.removeMovieClip();
this.mc.vid = undefined;
this.pause = false;
} else {
gfx2.create_clip(this.mcs[2], 0);
this.mc.vid = gfx2.add_clip(this.mc, 'vid_640x480', undefined, 80, 70, 75, 75);
this.mc.cam = Camera.get();
this.mc.cam.setMode(640, 480, 15, true);
this.mc.vid.video.attachVideo(this.mc.cam);
gfx2.set_text_html(b.tf, 16, 16777215, '<p align=\'center\'>Capture</p>');
}
break;
case 'pause':
this.pause = !this.pause;
if (this.mc.vid) {
this.pause = true;
}
if (this.pause) {
gfx2.set_text_html(b.tf, 16, 16777215, '<p align=\'center\'>Continue</p>');
} else {
gfx2.set_text_html(b.tf, 16, 16777215, '<p align=\'center\'>Pause</p>');
}
break;
case 'close':
this.clean();
}
};
v1.new_butt = function (id, s, x, y, w, h) {
var v8 = gfx2.create_clip(this.mc);
v8.id = id;
v8.onRollOver = this.delegate(this.butt_over, v8);
v8.onRollOut = this.delegate(this.butt_out, v8);
v8.onReleaseOutside = this.delegate(this.butt_out, v8);
v8.onRelease = this.delegate(this.butt_press, v8);
v8._x = x;
v8._y = y;
v8.tf = gfx2.create_text_html(v8, null, 0, 0, w, h + 4);
gfx2.clear(v8);
v8.style.fill = -2147483648;
v8.style.out = -2130706433;
gfx2.draw_box(v8, 3, -4, -4, w + 8, h + 8);
gfx2.set_text_html(v8.tf, 16, 16777215, s);
v8._alpha = 75;
v8.cacheAsBitmap = true;
return v8;
};
ASSetPropFlags(v1, null, 1);
v1.encoding = 0;
}
#endinitclip
}
movieClip 20493 __Packages.WTF_import {
#initclip
if (!WTF_import) {
_global.WTF_import = function () {
this.setup();
};
var v1 = _global.WTF_import.prototype;
v1.delegate = function (f, d) {
return com.dynamicflash.utils.Delegate.create(this, f, d);
};
_global.WTF_import.main = function () {
System.security.allowDomain(_root._url);
System.security.allowDomain((_root._url.split('/'))[2]);
System.security.allowDomain('s3.wetgenes.com');
System.security.allowDomain('www.wetgenes.com');
System.security.allowDomain('swf.wetgenes.com');
System.security.allowDomain('data.wetgenes.com');
System.security.allowDomain('www.wetgenes.local');
System.security.allowDomain('swf.wetgenes.local');
System.security.allowDomain('data.wetgenes.local');
System.security.allowDomain('*');
System.security.loadPolicyFile('http://swf.wetgenes.com/crossdomain.xml');
System.security.loadPolicyFile('http://data.wetgenes.com/crossdomain.xml');
System.security.loadPolicyFile('http://wet.appspot.com/crossdomain.xml');
if (!_root.mc) {
_root.mc = _root;
}
if (!_root.wtf_import) {
_root.wtf_import = new WTF_import();
}
};
v1.send_spesh = function (nam, num) {
if (_root.sock) {
var v4 = {'gcmd': 'signal', 'stype': 'score', 'sgame': this.game, 'sseed': this.seed, 'snam': nam, 'snum': num};
_root.sock.gmsg(v4, undefined);
}
};
v1.send_score = function () {
var v2 = new Date();
this.score_last = this.score;
this.sent_stamp = v2.getTime();
this.send_spesh(this.score_name, this.score);
};
v1.send_score_check = function () {
if (this.score > this.score_last) {
this.send_score();
}
};
v1.send_score_wait_and_check = function () {
var v2 = new Date();
if (v2.getTime() - this.sent_stamp > 1000 * 15) {
this.send_score_check();
}
};
v1.con_score = function (nam, dat) {
var v4 = new Date();
if (this.game == 'unknown') {
this.score = 0;
this.game = _root.gamename;
this.score_name = 'score';
this.send_score();
this.sent_stamp = 0;
}
switch (nam) {
case 'update':
this.score = Math.floor(dat);
this.game = _root.gamename;
this.score_name = 'score';
if (this.score == 0) {
this.send_score();
this.sent_stamp = 0;
} else {
this.send_score_wait_and_check();
}
break;
case 'final':
this.score = Math.floor(dat);
this.game = _root.gamename;
this.score_name = 'final';
this.send_score();
}
};
v1.setup = function () {
if (_root.wetcon) {
this.con = new LocalConnection();
this.con.allowDomain = function () {
return true;
};
this.con.score = this.delegate(this.con_score, 0);
this.con.connect('_' + _root.wetcon);
}
this.standalone = false;
if (!_root.scalar) {
if (_root.dozxmode) {
_root.scalar = new Scalar2(100 * 320 / 800, 100 * 240 / 600, true);
} else {
this.standalone = true;
_root.scalar = new Scalar2(400, 600);
}
}
this.up = null;
if (_root.signals.up) {
this.up = _root.signals.up;
}
if (_root.wtf.mc_import) {
this.mc = gfx2.create_clip(_root.wtf.mc_import, null);
} else {
if (_root.wetdike.mc_import) {
this.mc = gfx2.create_clip(_root.wetdike.mc_import, null);
} else {
this.mc = gfx2.create_clip(_root, 16384 + 32 - 3);
}
}
this.mc_scalar = gfx2.create_clip(this.mc, 16384);
this.mc.style = {'fill': -1, 'out': -1, 'text': -1};
this.mc.onEnterFrame = this.delegate(this.update, 0);
this.poker2 = new Poker2(false);
if (!_root.poker) {
_root.poker = this.poker2;
}
if (!_root.wtf && !_root.dozxmode) {
Stage.scaleMode = 'noScale';
Stage.align = 'TL';
}
this.sock = new WetSpewSock(this, this.standalone);
_root.sock = this.sock;
this.talk = new WetSpewTalk(this);
_root.talk = this.talk;
_root.talk.setup();
_root.talk.mc._x = 800;
this.playj = new PlayJPEG(this);
};
v1.update = function () {
if (Key.isDown(123)) {
this.playj.setup();
}
if (this.game != 'unknown') {
this.send_score_wait_and_check();
}
_root.scalar.apply(_root.talk.mc_scalar);
_root.scalar.apply(this.mc_scalar);
this.poker2.update();
_root.sock.update();
_root.talk.update(this.poker2.snapshot());
};
v1.clean = function () {};
ASSetPropFlags(v1, null, 1);
v1.score = 0;
v1.seed = 0;
v1.game = 'unknown';
v1.score_last = 0;
v1.sent_stamp = 0;
v1.score_name = 'spew';
}
#endinitclip
}
movieClip 20494 __Packages.JPEG {
#initclip
if (!JPEG) {
_global.JPEG = function () {
this.initHuffmanTbl();
this.initCategoryNumber();
this.initRGBYUVTable();
this.setQuality(this.quality);
};
var v1 = _global.JPEG.prototype;
v1.initQuantTables = function (sf) {
var v3 = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99];
var v4 = 0;
goto 1278;
for (;;) {
++v4;
label 1278:
if (v4 >= 64) break;
var v5 = this.ffloor((v3[v4] * sf + 50) / 100);
if (v5 < 1) {
v5 = 1;
} else {
if (v5 > 255) {
v5 = 255;
}
}
this.YTable[this.ZigZag[v4]] = v5;
}
var v6 = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99];
var v7 = 0;
goto 1806;
for (;;) {
++v7;
label 1806:
if (v7 >= 64) break;
var v8 = this.ffloor((v6[v7] * sf + 50) / 100);
if (v8 < 1) {
v8 = 1;
} else {
if (v8 > 255) {
v8 = 255;
}
}
this.UVTable[this.ZigZag[v7]] = v8;
}
var v9 = [1.0, 1.387039845, 1.306562965, 1.175875602, 1.0, 0.785694958, 0.5411961, 0.275899379];
var v10 = 0;
var v11 = 0;
goto 2099;
for (;;) {
++v11;
label 2099:
if (v11 >= 8) break;
var v12 = 0;
goto 2145;
for (;;) {
++v12;
label 2145:
if (v12 >= 8) break;
this.fdtbl_Y[v10] = 1.0 / this.YTable[this.ZigZag[v10]] * v9[v11] * v9[v12] * 8.0;
this.fdtbl_UV[v10] = 1.0 / this.UVTable[this.ZigZag[v10]] * v9[v11] * v9[v12] * 8.0;
++v10;
}
}
};
v1.computeHuffmanTbl = function (nrcodes, std_table) {
var v4 = 0;
var v5 = 0;
var v6 = new Array();
var v7 = 1;
goto 2443;
for (;;) {
++v7;
label 2443:
if (v7 > 16) break;
var v8 = 1;
goto 2490;
for (;;) {
++v8;
label 2490:
if (v8 > nrcodes[v7]) break;
v6[std_table[v5]] = [];
v6[std_table[v5]][0] = v4;
v6[std_table[v5]][1] = v7;
++v5;
++v4;
}
v4 *= 2;
}
return v6;
};
v1.initHuffmanTbl = function () {
this.YDC_HT = this.computeHuffmanTbl(this.std_dc_luminance_nrcodes, this.std_dc_luminance_values);
this.UVDC_HT = this.computeHuffmanTbl(this.std_dc_chrominance_nrcodes, this.std_dc_chrominance_values);
this.YAC_HT = this.computeHuffmanTbl(this.std_ac_luminance_nrcodes, this.std_ac_luminance_values);
this.UVAC_HT = this.computeHuffmanTbl(this.std_ac_chrominance_nrcodes, this.std_ac_chrominance_values);
};
v1.initCategoryNumber = function () {
var v2 = 1;
var v3 = 2;
var v4 = 1;
goto 2855;
for (;;) {
++v4;
label 2855:
if (v4 > 15) break;
var v5 = v2;
goto 2899;
for (;;) {
++v5;
label 2899:
if (v5 >= v3) break;
this.category[32767 + v5] = v4;
this.bitcode[32767 + v5] = [];
this.bitcode[32767 + v5][1] = v4;
this.bitcode[32767 + v5][0] = v5;
}
var v6 = -(v3 - 1);
goto 3072;
for (;;) {
++v6;
label 3072:
if (v6 > -v2) break;
this.category[32767 + v6] = v4;
this.bitcode[32767 + v6] = [];
this.bitcode[32767 + v6][1] = v4;
this.bitcode[32767 + v6][0] = v3 - 1 + v6;
}
v2 <<= 1;
v3 <<= 1;
}
};
v1.initRGBYUVTable = function () {
var v2 = 0;
goto 3311;
for (;;) {
++v2;
label 3311:
if (v2 >= 256) break;
this.RGB_YUV_TABLE[v2] = 19595 * v2;
this.RGB_YUV_TABLE[v2 + 256 >> 0] = 38470 * v2;
this.RGB_YUV_TABLE[v2 + 512 >> 0] = 7471 * v2 + 32768;
this.RGB_YUV_TABLE[v2 + 768 >> 0] = -11059 * v2;
this.RGB_YUV_TABLE[v2 + 1024 >> 0] = -21709 * v2;
this.RGB_YUV_TABLE[v2 + 1280 >> 0] = 32768 * v2 + 8421375;
this.RGB_YUV_TABLE[v2 + 1536 >> 0] = -27439 * v2;
this.RGB_YUV_TABLE[v2 + 1792 >> 0] = -5329 * v2;
}
};
v1.writeBits = function (bs) {
var v3 = bs[0];
var v4 = bs[1] - 1;
while (v4 >= 0) {
if (v3 & 1 << v4) {
this.bytenew |= 1 << this.bytepos;
}
--v4;
--this.bytepos;
if (this.bytepos < 0) {
if (this.bytenew == 255) {
this.writeByte(255);
this.writeByte(0);
} else {
this.writeByte(this.bytenew);
}
this.bytepos = 7;
this.bytenew = 0;
}
}
};
v1.writeByte = function (value) {
this.byteout.push(value);
};
v1.writeWord = function (value) {
this.writeByte(value >> 8 & 255);
this.writeByte(value & 255);
};
v1.fDCTQuant = function (data, fdtbl) {
var v12 = 0;
var v14 = 8;
var v15 = 64;
var v13 = 0;
goto 4183;
for (;;) {
++v13;
label 4183:
if (v13 >= v14) break;
var v4 = data[v12];
var v5 = data[v12 + 1];
var v6 = data[v12 + 2];
var v7 = data[v12 + 3];
var v8 = data[v12 + 4];
var v9 = data[v12 + 5];
var v10 = data[v12 + 6];
var v11 = data[v12 + 7];
var v16 = v4 + v11;
var v17 = v4 - v11;
var v18 = v5 + v10;
var v19 = v5 - v10;
var v20 = v6 + v9;
var v21 = v6 - v9;
var v22 = v7 + v8;
var v23 = v7 - v8;
var v24 = v16 + v22;
var v25 = v16 - v22;
var v26 = v18 + v20;
var v27 = v18 - v20;
data[v12] = v24 + v26;
data[v12 + 4] = v24 - v26;
var v28 = (v27 + v25) * 0.707106781;
data[v12 + 2] = v25 + v28;
data[v12 + 6] = v25 - v28;
v24 = v23 + v21;
v26 = v21 + v19;
v27 = v19 + v17;
var v29 = (v24 - v27) * 0.382683433;
var v30 = 0.5411961 * v24 + v29;
var v31 = 1.306562965 * v27 + v29;
var v32 = v26 * 0.707106781;
var v33 = v17 + v32;
var v34 = v17 - v32;
data[v12 + 5] = v34 + v30;
data[v12 + 3] = v34 - v30;
data[v12 + 1] = v33 + v31;
data[v12 + 7] = v33 - v31;
v12 += 8;
}
v12 = 0;
v13 = 0;
goto 4918;
for (;;) {
++v13;
label 4918:
if (v13 >= v14) break;
v4 = data[v12];
v5 = data[v12 + 8];
v6 = data[v12 + 16];
v7 = data[v12 + 24];
v8 = data[v12 + 32];
v9 = data[v12 + 40];
v10 = data[v12 + 48];
v11 = data[v12 + 56];
var v35 = v4 + v11;
var v36 = v4 - v11;
var v37 = v5 + v10;
var v38 = v5 - v10;
var v39 = v6 + v9;
var v40 = v6 - v9;
var v41 = v7 + v8;
var v42 = v7 - v8;
var v43 = v35 + v41;
var v44 = v35 - v41;
var v45 = v37 + v39;
var v46 = v37 - v39;
data[v12] = v43 + v45;
data[v12 + 32] = v43 - v45;
var v47 = (v46 + v44) * 0.707106781;
data[v12 + 16] = v44 + v47;
data[v12 + 48] = v44 - v47;
v43 = v42 + v40;
v45 = v40 + v38;
v46 = v38 + v36;
var v48 = (v43 - v46) * 0.382683433;
var v49 = 0.5411961 * v43 + v48;
var v50 = 1.306562965 * v46 + v48;
var v51 = v45 * 0.707106781;
var v52 = v36 + v51;
var v53 = v36 - v51;
data[v12 + 40] = v53 + v49;
data[v12 + 24] = v53 - v49;
data[v12 + 8] = v52 + v50;
data[v12 + 56] = v52 - v50;
++v12;
}
v13 = 0;
goto 5635;
for (;;) {
++v13;
label 5635:
if (v13 >= v15) break;
var v54 = data[v13] * fdtbl[v13];
this.outputfDCTQuant[v13] = v54 > 0 ? (v54 + 0.5 | 0) : (v54 - 0.5 | 0);
}
return this.outputfDCTQuant;
};
v1.writeAPP0 = function () {
this.writeWord(65504);
this.writeWord(16);
this.writeByte(74);
this.writeByte(70);
this.writeByte(73);
this.writeByte(70);
this.writeByte(0);
this.writeByte(1);
this.writeByte(1);
this.writeByte(0);
this.writeWord(1);
this.writeWord(1);
this.writeByte(0);
this.writeByte(0);
};
v1.writeSOF0 = function (width, height) {
this.writeWord(65472);
this.writeWord(17);
this.writeByte(8);
this.writeWord(height);
this.writeWord(width);
this.writeByte(3);
this.writeByte(1);
this.writeByte(17);
this.writeByte(0);
this.writeByte(2);
this.writeByte(17);
this.writeByte(1);
this.writeByte(3);
this.writeByte(17);
this.writeByte(1);
};
v1.writeDQT = function () {
this.writeWord(65499);
this.writeWord(132);
this.writeByte(0);
var v2 = 0;
goto 6472;
for (;;) {
++v2;
label 6472:
if (v2 >= 64) break;
this.writeByte(this.YTable[v2]);
}
this.writeByte(1);
var v3 = 0;
goto 6570;
for (;;) {
++v3;
label 6570:
if (v3 >= 64) break;
this.writeByte(this.UVTable[v3]);
}
};
v1.writeDHT = function () {
this.writeWord(65476);
this.writeWord(418);
this.writeByte(0);
var v2 = 0;
goto 6725;
for (;;) {
++v2;
label 6725:
if (v2 >= 16) break;
this.writeByte(this.std_dc_luminance_nrcodes[v2 + 1]);
}
var v3 = 0;
goto 6810;
for (;;) {
++v3;
label 6810:
if (v3 > 11) break;
this.writeByte(this.std_dc_luminance_values[v3]);
}
this.writeByte(16);
var v4 = 0;
goto 6909;
for (;;) {
++v4;
label 6909:
if (v4 >= 16) break;
this.writeByte(this.std_ac_luminance_nrcodes[v4 + 1]);
}
var v5 = 0;
goto 6994;
for (;;) {
++v5;
label 6994:
if (v5 > 161) break;
this.writeByte(this.std_ac_luminance_values[v5]);
}
this.writeByte(1);
var v6 = 0;
goto 7093;
for (;;) {
++v6;
label 7093:
if (v6 >= 16) break;
this.writeByte(this.std_dc_chrominance_nrcodes[v6 + 1]);
}
var v7 = 0;
goto 7178;
for (;;) {
++v7;
label 7178:
if (v7 > 11) break;
this.writeByte(this.std_dc_chrominance_values[v7]);
}
this.writeByte(17);
var v8 = 0;
goto 7277;
for (;;) {
++v8;
label 7277:
if (v8 >= 16) break;
this.writeByte(this.std_ac_chrominance_nrcodes[v8 + 1]);
}
var v9 = 0;
goto 7362;
for (;;) {
++v9;
label 7362:
if (v9 > 161) break;
this.writeByte(this.std_ac_chrominance_values[v9]);
}
};
v1.writeSOS = function () {
this.writeWord(65498);
this.writeWord(12);
this.writeByte(3);
this.writeByte(1);
this.writeByte(0);
this.writeByte(2);
this.writeByte(17);
this.writeByte(3);
this.writeByte(17);
this.writeByte(0);
this.writeByte(63);
this.writeByte(0);
};
v1.processDU = function (CDU, fdtbl, DC, HTDC, HTAC) {
var v7 = HTAC[0];
var v8 = HTAC[240];
var v10 = 16;
var v11 = 63;
var v12 = 64;
var v13 = this.fDCTQuant(CDU, fdtbl);
var v14 = 0;
goto 7829;
for (;;) {
++v14;
label 7829:
if (v14 >= v12) break;
this.DU[this.ZigZag[v14]] = v13[v14];
}
var v15 = this.DU[0] - DC;
DC = this.DU[0];
if (v15 == 0) {
this.writeBits(HTDC[0]);
} else {
var v9 = 32767 + v15;
this.writeBits(HTDC[this.category[v9]]);
this.writeBits(this.bitcode[v9]);
}
var v16 = 63;
goto 8080;
for (;;) {
--v16;
label 8080:
if (!(v16 > 0 && this.DU[v16] == 0)) break;
}
if (v16 == 0) {
this.writeBits(v7);
return DC;
}
var v17 = 1;
while (v17 <= v16) {
var v19 = v17;
goto 8226;
for (;;) {
++v17;
label 8226:
if (!(this.DU[v17] == 0 && v17 <= v16)) break;
}
var v20 = v17 - v19;
if (v20 >= v10) {
var v18 = v20 >> 4;
var v21 = 1;
goto 8350;
for (;;) {
++v21;
label 8350:
if (v21 > v18) break;
this.writeBits(v8);
}
v20 &= 15;
}
v9 = 32767 + this.DU[v17];
this.writeBits(HTAC[(v20 << 4) + this.category[v9]]);
this.writeBits(this.bitcode[v9]);
++v17;
}
if (v16 != v11) {
this.writeBits(v7);
}
return DC;
};
v1.setQuality = function (quality) {
if (quality <= 0) {
quality = 1;
}
if (quality > 100) {
quality = 100;
}
if (this.currentQuality == quality) {
return undefined;
}
var v3 = 0;
if (quality < 50) {
v3 = Math.floor(5000 / quality);
} else {
v3 = Math.floor(200 - quality * 2);
}
this.initQuantTables(v3);
this.currentQuality = quality;
};
v1.encode_start = function (_bmp, quality) {
this.bmp = _bmp;
this.encode_x = 0;
this.encode_y = 0;
if (quality) {
this.setQuality(quality);
}
this.byteout = new Array();
this.bytenew = 0;
this.bytepos = 7;
this.writeWord(65496);
this.writeAPP0();
this.writeDQT();
this.writeSOF0(this.bmp.width, this.bmp.height);
this.writeDHT();
this.writeSOS();
this.DCY = 0;
this.DCU = 0;
this.DCV = 0;
this.bytenew = 0;
this.bytepos = 7;
};
v1.encode_update = function () {
var v2 = 0;
goto 9167;
for (;;) {
++v2;
label 9167:
if (v2 >= 64) break;
var v3 = this.bmp.getPixel32(this.encode_x + (v2 & 7), this.encode_y + (v2 >> 3));
var v4 = 255 & v3 >> 16;
var v5 = 255 & v3 >> 8;
var v6 = 255 & v3;
this.YDU[v2] = (this.RGB_YUV_TABLE[v4] + this.RGB_YUV_TABLE[v5 + 256 >> 0] + this.RGB_YUV_TABLE[v6 + 512 >> 0] >> 16) - 128;
this.UDU[v2] = (this.RGB_YUV_TABLE[v4 + 768 >> 0] + this.RGB_YUV_TABLE[v5 + 1024 >> 0] + this.RGB_YUV_TABLE[v6 + 1280 >> 0] >> 16) - 128;
this.VDU[v2] = (this.RGB_YUV_TABLE[v4 + 1280 >> 0] + this.RGB_YUV_TABLE[v5 + 1536 >> 0] + this.RGB_YUV_TABLE[v6 + 1792 >> 0] >> 16) - 128;
}
this.DCY = this.processDU(this.YDU, this.fdtbl_Y, this.DCY, this.YDC_HT, this.YAC_HT);
this.DCU = this.processDU(this.UDU, this.fdtbl_UV, this.DCU, this.UVDC_HT, this.UVAC_HT);
this.DCV = this.processDU(this.VDU, this.fdtbl_UV, this.DCV, this.UVDC_HT, this.UVAC_HT);
this.encode_x += 8;
if (this.encode_x >= this.bmp.width) {
this.encode_y += 8;
this.encode_x = 0;
}
if (this.encode_y < this.bmp.height) {
return null;
}
if (this.bytepos >= 0) {
var v7 = [];
v7[1] = this.bytepos + 1;
v7[0] = (1 << this.bytepos + 1) - 1;
this.writeBits(v7);
}
this.writeWord(65497);
return this.byteout;
};
v1.encode_update_count = function (num) {
for (;;) {
if (!(!storedv3 && num > 0)) break;
var v3 = this.encode_update();
--num;
}
return v3;
};
v1.encode = function (_bmp, quality) {
this.encode_start(_bmp, quality);
while (!storedv4) {
var v4 = this.encode_update();
}
return v4;
};
ASSetPropFlags(v1, null, 1);
v1.quality = 75;
v1.self = v1;
v1.fround = Math.round;
v1.ffloor = Math.floor;
v1.YTable = new Array(64);
v1.UVTable = new Array(64);
v1.fdtbl_Y = new Array(64);
v1.fdtbl_UV = new Array(64);
v1.bitcode = new Array(65535);
v1.category = new Array(65535);
v1.outputfDCTQuant = new Array(64);
v1.DU = new Array(64);
v1.byteout = [];
v1.bytenew = 0;
v1.bytepos = 7;
v1.YDU = new Array(64);
v1.UDU = new Array(64);
v1.VDU = new Array(64);
v1.RGB_YUV_TABLE = new Array(2048);
v1.ZigZag = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63];
v1.std_dc_luminance_nrcodes = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0];
v1.std_dc_luminance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
v1.std_ac_luminance_nrcodes = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125];
v1.std_ac_luminance_values = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250];
v1.std_dc_chrominance_nrcodes = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0];
v1.std_dc_chrominance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
v1.std_ac_chrominance_nrcodes = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119];
v1.std_ac_chrominance_values = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
v1.DCY = 0;
v1.DCU = 0;
v1.DCV = 0;
}
#endinitclip
}
movieClip 20495 __Packages.Poker2 {
#initclip
if (!Poker2) {
_global.Poker2 = function (_hand) {
this.hand = _hand;
if ((System.capabilities.version.split(' '))[0] == 'WII') {
this.hand = false;
}
this.hand = false;
this.mc = gfx2.create_clip(_root, 16384 + 32 + 2);
this.float = false;
if (this.float) {
this.mc_floater = gfx2.create_clip(_root, 16384 + 32 + 1);
gfx2.clear(this.mc_floater);
this.mc_floater.w = 200;
this.mc_floater.h = 80;
this.mc_floaterz = gfx2.create_clip(this.mc_floater, null);
this.mc_floaterz._x = 100;
this.mc_floaterz._y = 40;
this.tf_floater = gfx2.create_text_html(this.mc_floaterz, null, -100, 0, 200, 200);
this.float_str = '';
this.float_time = -100;
}
if (this.hand) {
this.mcb0 = gfx2.create_clip(this.mc, null);
this.mcb1 = gfx2.create_clip(this.mcb0, null);
this.mcg = gfx2.create_clip(this.mcb1, null);
this.mcg0 = gfx2.add_clip(this.mcg, 'poke0', null);
this.mcg1 = gfx2.add_clip(this.mcg, 'poke1', null);
this.mcg0._x = -19;
this.mcg0._y = -19;
this.mcg1._x = -(19 + 8);
this.mcg1._y = -(19 + 8);
this.mcg._xscale = 75;
this.mcg._yscale = 75;
}
this.onMouseUp();
Mouse.addListener(this);
Key.addListener(this);
this.lx = 0;
this.ly = 0;
this.size = 1;
this.scale = 1;
this.poke_last = false;
this.poke_down = false;
this.poke_up = false;
this.poke_now = false;
this.clear_clicks();
};
var v1 = _global.Poker2.prototype;
v1.delegate = function (f, d) {
return com.dynamicflash.utils.Delegate.create(this, f, d);
};
v1.clean = function () {};
v1.ShowFloat = function (str, tim) {
if (str != null && this.float_str != str) {
this.float_str = str;
gfx2.clear(this.mc_floaterz);
this.mc_floaterz.style.out = -1;
this.mc_floaterz.style.fill = -3355444;
gfx2.set_text_html(this.tf_floater, 16, 0, '<p align="center">' + str + '</p>');
this.mc_floater.h = this.tf_floater.textHeight + 6;
gfx2.draw_box(this.mc_floaterz, 4, -100, -this.mc_floater.h / 2, 200, this.mc_floater.h);
this.tf_floater._y = -this.mc_floater.h / 2;
this.mc_floaterz._y = this.mc_floater.h / 2;
}
if (tim == 0) {
if (this.float_time > tim) {
this.float_time = tim;
}
} else {
this.float_time = tim;
}
};
v1.onKeyDown = function () {
this.do_anykey = true;
};
v1.onMouseMove = function () {};
v1.onMouseDown = function () {
if (this.hand) {
Mouse.hide();
this.mcg0._visible = false;
this.mcg1._visible = true;
}
this.poke_now_now = true;
this.poke_down_now = true;
if (this.clicks.length < 16) {
this.clicks[this.clicks.length] = {'click': 1, 'x': _root._xmouse, 'y': _root._ymouse};
}
};
v1.onMouseUp = function () {
this.do_anykey = true;
if (this.hand) {
Mouse.hide();
this.mcg0._visible = true;
this.mcg1._visible = false;
}
this.poke_now_now = false;
this.poke_up_now = true;
if (this.clicks.length < 16) {
this.clicks[this.clicks.length] = {'click': -1, 'x': _root._xmouse, 'y': _root._ymouse};
}
};
v1.clear_clicks = function () {
this.do_anykey = false;
this.anykey = false;
this.poke_last = false;
this.poke_down = false;
this.poke_up = false;
this.poke_now = false;
this.clicks = [];
};
v1.update = function () {
if (this.do_anykey) {
this.anykey = true;
} else {
this.anykey = false;
}
this.do_anykey = false;
this.x = _root._xmouse;
this.y = _root._ymouse;
this.poke_last = this.poke_now;
this.poke_down = this.poke_down_now;
this.poke_up = this.poke_up_now;
this.poke_now = this.poke_now_now;
this.poke_down_now = false;
this.poke_up_now = false;
this.dx = this.x - this.lx;
this.dy = this.y - this.ly;
this.lx = this.x;
this.ly = this.y;
if (this.hand) {
this.mc._x = this.x;
this.mc._y = this.y;
this.scale = _root.scalar.sx * this.size / 100;
this.mc._xscale = 100 * this.scale;
this.mc._yscale = this.mc._xscale;
gfx2.dropshadow(this.mc, 2, 45, 0, 1, 4 * this.scale, 4 * this.scale, 2, 3);
if (this.dx == 0 && this.dy == 0) {
this.mcb0._rotation = 0;
this.mcb0._xscale = 100;
this.mcb0._yscale = 100;
this.mcb1._rotation = 0;
} else {
var v3 = 180 * Math.atan2(this.dy, -this.dx) / Math.PI;
var v4 = Math.sqrt(this.dy * this.dy + this.dx * this.dx);
v4 /= 1.5;
if (v4 > 400) {
v4 = 400;
}
this.mcb0._rotation = -v3;
this.mcb0._xscale = 100 + v4;
this.mcb0._yscale = 100 - v4 / 5;
this.mcb1._rotation = v3;
}
if (this.dx > 32) {
this.dx = 32;
}
if (this.dx < -32) {
this.dx = -32;
}
var v2 = this.dx;
this.mcg._rotation += (v2 - this.mcg._rotation) / 4;
}
if (this.float && this.float_time >= -10) {
if (this.float_time > 0) {
--this.float_time;
this.mc_floater._visible = true;
this.mc_floaterz._xscale = 100;
this.mc_floaterz._yscale = 100;
} else {
--this.float_time;
this.mc_floaterz._xscale = 100 + this.float_time * 10;
this.mc_floaterz._yscale = this.mc_floaterz._xscale;
if (this.float_time == -10) {
this.mc_floater._visible = false;
}
}
var v5 = this.mc_floater.w;
var v6 = this.mc_floater.h;
var v13 = Stage.width;
var v14 = Stage.height;
var v9 = this.x - v13 / 2;
var v10 = this.y - v14 / 2;
var v17 = v9 * v9;
var v21 = v9 < 0 ? -v9 : v9;
var v18 = v10 * v10;
var v22 = v10 < 0 ? -v10 : v10;
var v16 = v17 + v18;
var v15 = Math.sqrt(v16);
if (v15 == 0) {
v15 = 1;
v9 = 0;
v10 = 1;
}
var v11 = v9 / v15;
var v12 = v10 / v15;
var v19 = -v11 * v5 * 1.75;
var v20 = -v12 * v6 * 1.75;
if (v21 / 2 > v22) {
if (v9 < 0) {
var v7 = this.x;
var v8 = this.y + v20 - v6 / 2;
v7 += 50;
} else {
var v7 = this.x - v5;
var v8 = this.y + v20 - v6 / 2;
v7 -= 50;
}
} else {
if (v21 < v22 / 2) {
if (v10 < 0) {
var v7 = this.x + v19 - v5 / 2;
var v8 = this.y;
v8 += 50;
} else {
var v7 = this.x + v19 - v5 / 2;
var v8 = this.y - v6;
v8 -= 50;
}
} else {
if (v9 < 0) {
if (v10 < 0) {
var v7 = this.x;
var v8 = this.y;
v7 += 50;
v8 += 50;
} else {
var v7 = this.x;
var v8 = this.y - v6;
v7 += 50;
v8 -= 50;
}
} else {
if (v10 < 0) {
var v7 = this.x - v5;
var v8 = this.y;
v7 -= 50;
v8 += 50;
} else {
var v7 = this.x - v5;
var v8 = this.y - v6;
v7 -= 50;
v8 -= 50;
}
}
}
}
this.mc_floater._x = this.mc_floater._x * 0.75 + v7 * 0.25;
this.mc_floater._y = this.mc_floater._y * 0.75 + v8 * 0.25;
this.mc_floater._visible = true;
} else {
this.mc_floater._visible = false;
}
};
v1.snapshot = function () {
var v2 = {};
v2.key = this.poke_now ? 1 : 0;
v2.key_on = this.poke_down ? 1 : 0;
if (!this.poke_up) {
v2.key_off = 0;
v2.x = this.x;
v2.y = this.y;
v2.frame = 0;
return v2;
}
v2.key_off = 1;
v2.x = this.x;
v2.y = this.y;
v2.frame = 0;
return v2;
};
ASSetPropFlags(v1, null, 1);
}
#endinitclip
}
movieClip 20496 __Packages.WetSpewSock {
#initclip
if (!WetSpewSock) {
_global.WetSpewSock = function (_up, _standalone) {
this.up = _up;
this.standalone = _standalone;
this.setup();
};
var v1 = _global.WetSpewSock.prototype;
v1.delegate = function (f, d) {
return com.dynamicflash.utils.Delegate.create(this, f, d);
};
v1.rnd_seed = function (n) {
this.rnd_num = n & 65535;
};
v1.rnd = function () {
this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537;
return this.rnd_num;
};
v1.setup = function () {
this.so_load();
this.mc = gfx2.create_clip(this.up.mc, null);
this.state = null;
this.substate = null;
if (!_root.Login_Name) {
_root.Login_Name = 'me';
}
this.sock = new XMLSocket();
this.connected = false;
this.authenticated = false;
this.game_callbacks = new Array();
this.ville_callbacks = new Array();
this.ewarz_callbacks = new Array();
this.sock.onConnect = this.delegate(this.sock_onconnect);
this.sock.onClose = this.delegate(this.sock_onclose);
this.sock.onData = this.delegate(this.sock_ondata);
this.sock.connect('spew.wetgenes.com', 5223);
};
v1.sock_onconnect = function (success) {
this.msg = new Object();
this.usr = new Object();
this.up.talk.chat_status('Booting WetSpew chat client V1.45 (c) Shi+Kriss Daniels 20110424 please remain calm, everything will be alright.');
if (success) {
this.up.talk.chat_status('Connected to ' + _root.host);
this.connected = true;
var v4 = '&arg2=' + _global.escape(_root._url);
this.hash = _root.hash;
if (!this.hash) {
var v5 = _root._url.split('/');
var v6 = v5[v5.length - 1];
v5 = v6.split('.');
v5.pop();
this.hash = v5.join('.');
}
if (_root.signals.up.v.name) {
var v3 = '';
v3 += '&cmd=note';
v3 += '¬e=playing';
v3 += '&arg1=' + _root.signals.up.v.name;
v3 += v4;
v3 += '&hash=' + _global.escape(this.hash);
v3 += '&\n';
this.sock.send(v3);
} else {
if (_root.wetdike) {
var v3 = '';
v3 += '&cmd=note';
v3 += '¬e=playing';
v3 += '&arg1=' + 'WetDike';
v3 += v4;
v3 += '&hash=' + _global.escape(this.hash);
v3 += '&\n';
this.sock.send(v3);
} else {
if (_root.gamename) {
var v3 = '';
v3 += '&cmd=note';
v3 += '¬e=playing';
v3 += '&arg1=' + _global.escape(_root.gamename);
v3 += v4;
v3 += '&arg3=' + _global.escape(_root.gameid);
v3 += '&hash=' + _global.escape(this.hash);
v3 += '&\n';
this.sock.send(v3);
} else {
var v3 = '';
v3 += '&cmd=note';
v3 += '¬e=playing';
v3 += '&arg1=' + 'chat';
v3 += v4;
v3 += '&arg3=0';
v3 += '&hash=' + _global.escape(this.hash);
v3 += '&\n';
this.sock.send(v3);
}
}
}
} else {
this.up.talk.chat_status('Failed to connect to ' + _root.host);
this.connected = false;
}
};
v1.sock_onclose = function () {
this.msg = new Object();
this.up.talk.chat_status('Lost connection to ' + _root.host);
this.up.talk.chat_status('try /connect to reconnect...');
this.connected = false;
};
v1.check_show_joins = function (usr) {
if (this.joins[usr]) {
var v3 = this.up.talk.chat_status(this.joins[usr]);
this.joins[usr] = undefined;
v3.usr = usr;
}
this.parts[usr] = true;
};
v1.setrgb = function (usr, rgb) {
if (usr && rgb) {
this.up.talk.rgbarr[usr] = rgb;
}
};
v1.sock_ondata = function (s) {
if (s == '') {
return undefined;
}
var v5 = new Object();
var v3 = s.split('&');
var v6 = 0;
goto 4745;
for (;;) {
++v6;
label 4745:
if (v6 >= v3.length) break;
var v4 = v3[v6].split('=');
if (v4[0] && v4[1]) {
v5[v4[0]] = _global.unescape((v4[1].split('+')).join('%2B'));
} else {
if (v4[0]) {
v5[v4[0]] = '';
}
}
}
for (var v7 in v5) {
this.msg[v7] = v5[v7];
}
if (this.msg.swf_class && (this.msg.swf_version && (this.msg.swf_url && (this.msg.swf_urlbase && this.msg.cmd == 'swf_update')))) {
var v9 = new JSON();
var v10 = _root[this.msg.swf_class];
_root.server_data = {};
_root.server_data.swf_class = this.msg.swf_class;
_root.server_data.swf_version = this.msg.swf_version;
_root.server_data.swf_url = this.msg.swf_url;
_root.server_data.swf_urlbase = this.msg.swf_urlbase;
_root.server_data.swf_dat = this.msg.swf_dat;
_root.server_data.swf_json = this.msg.swf_json;
if (v10) {
if (v10.v.number * 1 < this.msg.swf_version * 1) {
var v11 = gfx2.create_clip(this.mc, 99999);
v11.tf = gfx2.create_text_html(v11, null, 0, 0, 400, 200);
gfx2.set_text_html(v11.tf, 32, 16777215, '<p align="center">This version is now obsolete, please visit www.WetGenes.com for a new version.</p>');
}
}
_root.server_json = v9.parse(this.msg.swf_json);
} else {
if (this.msg.txt && (this.msg.frm && (this.msg.lnk && this.msg.cmd == 'lnk'))) {
var v12 = {};
this.check_show_joins(this.msg.frm);
v12.frm = this.msg.frm;
v12.cmd = 'say';
v12.txt = this.msg.txt;
v12.lnk = this.msg.lnk;
v12.img = this.msg.img;
this.up.talk.chat(v12);
} else {
if (this.msg.txt && this.msg.cmd == 'mux') {
var v13 = this.msg.txt;
this.up.talk.chat_mux(v13 + '<br>');
} else {
if (this.msg.txt && (this.msg.frm && this.msg.cmd == 'say')) {
var v14 = {};
this.check_show_joins(this.msg.frm);
v14.frm = this.msg.frm;
v14.cmd = 'say';
v14.txt = (((((this.msg.txt.split('&')).join('&')).split('<')).join('<')).split('>')).join('>');
this.up.talk.chat(v14);
} else {
if (this.msg.txt && (this.msg.frm && this.msg.cmd == 'act')) {
var v15 = {};
this.check_show_joins(this.msg.frm);
v15.frm = this.msg.frm;
v15.cmd = 'act';
v15.txt = (((((this.msg.txt.split('&')).join('&')).split('<')).join('<')).split('>')).join('>');
this.up.talk.chat(v15);
} else {
if (this.msg.cmd == 'note') {
switch (this.msg.note) {
case 'feat':
_root.signals.submit_award(this.msg.arg1, this.msg.arg2);
if (this.msg.arg2 != '1' && _root.fb_sig) {
var v16 = new LoadVars();
for (var v17 in _root) {
if (v17.substring(0, 6) == 'fb_sig') {
v16[v17] = _root[v17];
}
}
v16.sendAndLoad('http://swf.wetgenes.com/swf/facebook/wetgenes.php/feedpost', v16, 'POST');
}
break;
case 'rank':
_root.signals.submit_rank(this.msg.arg1, this.msg.arg2);
break;
case 'info':
if (this.msg.info == 'user') {
if (this.msg.name) {
if (!this.map_user_to_info[this.msg.name]) {
this.map_user_to_info[this.msg.name] = {};
}
var v8 = this.map_user_to_info[this.msg.name];
v8.avatar = this.msg.avatar;
v8.stat = this.msg.stat;
if (this.msg.joined) {
v8.joined = this.msg.joined;
}
var v18 = new Date();
v8.t = v18.getTime();
if (this.msg.gameid && (this.msg.gamename && (this.msg.gameid != '-' && this.msg.gamename != '-'))) {
this.map_user_to_gameid[this.msg.name] = this.msg.gameid;
this.map_gameid_to_gamename[this.msg.gameid] = this.msg.gamename;
}
}
}
break;
case 'act':
if (this.msg.arg1) {
this.up.talk.chat_status('<font color="#00ff00">' + this.msg.arg1 + '</font>');
}
break;
case 'error':
if (this.msg.arg1) {
this.up.talk.chat_status('ERROR: ' + this.msg.arg1);
}
break;
case 'warning':
if (this.msg.arg1) {
this.up.talk.chat_status('WARNING: ' + this.msg.arg1);
}
break;
case 'notice':
if (this.msg.arg1) {
this.up.talk.chat_status('NOTICE: ' + this.msg.arg1);
}
break;
case 'welcome':
if (this.msg.arg1) {
this.up.talk.chat_status('<b>' + this.msg.arg1 + '</b>');
this.joins = [];
this.parts = [];
this.up.talk.set_back(this.msg.back);
}
break;
case 'ranking':
if (this.msg.arg1 && (this.msg.arg2 && (this.msg.arg3 && this.msg.arg4))) {
var v19 = {};
v19.frm = '*';
v19.cmd = 'say';
v19.txt = this.msg.arg1 + ':' + this.msg.arg2 + ' ' + this.msg.arg3 + ' is now #' + this.msg.arg4;
v19.gamename = this.msg.arg1;
v19.gameseed = this.msg.arg2;
v19.username = this.msg.arg3;
v19.userrank = this.msg.arg4;
this.up.talk.chat(v19);
}
break;
case 'rename':
if (this.msg.arg1 && (this.msg.arg2 && this.msg.arg3)) {
this.check_show_joins(this.msg.arg2);
if (this.msg.arg3 == 'guest') {
this.up.talk.chat_status(this.msg.arg1 + ' is now known as ' + this.msg.arg2 + ' the guest');
this.authenticated = 'guest';
} else {
this.up.talk.chat_status(this.msg.arg1 + ' is now known as ' + this.msg.arg2);
this.authenticated = 'user';
}
}
break;
case 'join':
if (this.msg.arg1 && (this.msg.arg2 && this.msg.arg3)) {
if (this.msg.arg2 != '*') {
this.joins[this.msg.arg1] = this.msg.arg1 + ' has joined room ' + this.msg.arg2 + ' playing ' + this.msg.arg3 + ' click here to play it with them!!!';
}
var v20 = this.msg.arg1;
var v21 = this.msg.arg3;
var v22 = this.msg.arg4;
var v23 = this.msg.arg5;
v22 = Math.floor(v22);
if (v22 < 0) {
v22 = 0;
}
var v24 = (v21.split('.'))[0];
var v25 = this.up.talk.game_infos[v24];
if (v25) {
if (v25.lnkid > 0) {
if (v22 == 0) {
v22 = v25.lnkid;
}
}
}
this.map_user_to_gameid[v20] = v22;
this.map_gameid_to_gamename[v22] = v21;
if (v23 && (v23 != '' && v23 != '0')) {
this.map_user_to_color[v20] = v23;
} else {
this.map_user_to_color[v20] = undefined;
}
}
break;
case 'part':
if (this.msg.arg1 && this.msg.arg2) {
if (this.parts[this.msg.arg1]) {
this.up.talk.chat_status(this.msg.arg1 + ' has left room ' + this.msg.arg2);
this.parts[this.msg.arg1] = undefined;
}
}
break;
case 'ban':
if (this.msg.arg1 && (this.msg.arg2 && this.msg.arg3)) {
if (Math.floor(this.msg.arg3) > 0) {
this.up.talk.chat_status(this.msg.arg2 + ' has been banned by ' + this.msg.arg1);
} else {
this.up.talk.chat_status(this.msg.arg2 + ' has been unbanned by ' + this.msg.arg1);
}
}
break;
case 'gag':
if (this.msg.arg1 && (this.msg.arg2 && this.msg.arg3)) {
if (Math.floor(this.msg.arg3) > 0) {
this.up.talk.chat_status(this.msg.arg2 + ' has been gagged by ' + this.msg.arg1);
} else {
this.up.talk.chat_status(this.msg.arg2 + ' has been ungagged by ' + this.msg.arg1);
}
}
break;
case 'dis':
if (this.msg.arg1 && (this.msg.arg2 && this.msg.arg3)) {
if (Math.floor(this.msg.arg3) > 0) {
this.up.talk.chat_status(this.msg.arg2 + ' has been disemvowled by ' + this.msg.arg1);
} else {
this.up.talk.chat_status(this.msg.arg2 + ' has been revowled by ' + this.msg.arg1);
}
}
break;
case 'users':
if (this.msg.list && this.msg.room) {
var v26 = (this.msg.list.split(',')).sort();
this.room = this.msg.room;
this.users = [];
this.user_lookup = [];
v6 = 0;
goto 10049;
for (;;) {
++v6;
label 10049:
if (v6 >= v26.length) break;
var v27 = v26[v6].split(':');
var v28 = {};
v28.user_name = v27[0];
v28.game_name = v27[1];
v28.game_id = Math.floor(v27[2]);
v28.formrank = v27[3];
v28.color = v27[4];
this.users[v6] = v28;
this.user_lookup[v28.user_name] = v28;
var v29 = (v28.game_name.split('.'))[0];
var v30 = this.up.talk.game_infos[v29];
if (v30) {
if (v30.lnkid > 0) {
if (v28.game_id == 0) {
v28.game_id = v30.lnkid;
}
}
}
this.map_user_to_gameid[v28.user_name] = v28.game_id;
this.map_gameid_to_gamename[v28.game_id] = v28.game_name;
if (v28.color && v28.color != '') {
this.map_user_to_color[v28.user_name] = v28.color;
} else {
if (this.up.talk.rgbarr[v28.user_name]) {
v28.color = this.up.talk.rgbarr[v28.user_name];
}
}
}
++this.users_stamp;
} else {
if (this.msg.room) {
this.room = this.msg.room;
this.users = [];
++this.users_stamp;
}
}
break;
case 'rooms':
if (this.msg.list) {
var v31 = (this.msg.list.split(',')).sort();
this.rooms = [];
this.room_lookup = [];
v6 = 0;
goto 10779;
for (;;) {
++v6;
label 10779:
if (v6 >= v31.length) break;
var v32 = v31[v6].split(':');
var v33 = {};
v33.room_name = v32[0];
v33.room_members = Math.floor(v32[1]);
this.rooms.push(v33);
this.room_lookup[v33.room_name] = v33;
}
++this.rooms_stamp;
}
}
} else {
if (this.msg.cmd == 'game') {
var v34 = new Array();
for (v7 in this.msg) {
v34[v7] = this.msg[v7];
}
v34.gid = Math.floor(v34.gid);
if (this.game_callbacks[v34.gid]) {
this.game_callbacks[v34.gid](v34);
if (v34.gid != 0) {
this.game_callbacks[v34.gid] = null;
}
} else {
if (this.game_callbacks[0]) {
this.game_callbacks[0](v34);
}
}
} else {
if (this.msg.cmd == 'ville') {
var v35 = new Array();
for (v7 in this.msg) {
v35[v7] = this.msg[v7];
}
v35.vid = Math.floor(v35.vid);
if (this.ville_callbacks[v35.vid]) {
this.ville_callbacks[v35.vid](v35);
if (v35.vid != 0) {
this.ville_callbacks[v35.vid] = null;
}
} else {
if (this.ville_callbacks[0]) {
this.ville_callbacks[0](v35);
}
}
} else {
if (this.msg.cmd == 'ewarz') {
var v36 = new Array();
for (v7 in this.msg) {
v36[v7] = this.msg[v7];
}
v36.eid = Math.floor(v36.eid);
if (this.ewarz_callbacks[v36.eid]) {
this.ewarz_callbacks[v36.eid](v36);
if (v36.eid != 0) {
this.ewarz_callbacks[v36.eid] = null;
}
} else {
if (this.ewarz_callbacks[0]) {
this.ewarz_callbacks[0](v36);
}
}
}
}
}
}
}
}
}
}
}
};
v1.gmsg = function (msg, callback) {
if (this.connected) {
if (msg == null) {
this.game_callbacks[0] = callback;
return true;
}
++this.game_msgid;
this.game_callbacks[this.game_msgid] = callback;
var v4 = '';
v4 += '&cmd=' + 'game';
v4 += '&gid=' + this.game_msgid;
for (var v5 in msg) {
v4 += '&' + v5 + '=' + msg[v5];
}
v4 += '&\n';
return this.sock.send(v4);
}
return false;
};
v1.vmsg = function (msg, callback) {
if (this.connected) {
if (msg == null) {
this.ville_callbacks[0] = callback;
return true;
}
++this.ville_msgid;
this.ville_callbacks[this.ville_msgid] = callback;
var v4 = '';
v4 += '&cmd=' + 'ville';
v4 += '&vid=' + this.ville_msgid;
for (var v5 in msg) {
v4 += '&' + v5 + '=' + msg[v5];
}
v4 += '&\n';
return this.sock.send(v4);
}
return false;
};
v1.emsg = function (msg, callback) {
if (this.connected) {
if (msg == null) {
this.ewarz_callbacks[0] = callback;
return true;
}
++this.ewarz_msgid;
this.ewarz_callbacks[this.ewarz_msgid] = callback;
var v4 = '';
v4 += '&cmd=' + 'ewarz';
v4 += '&eid=' + this.ewarz_msgid;
for (var v5 in msg) {
v4 += '&' + v5 + '=' + _global.escape(msg[v5]);
}
v4 += '&\n';
return this.sock.send(v4);
}
return false;
};
v1.trim_str_space = function (s) {
var v3 = 0;
var v4 = 0;
var v5 = s.length - 1;
v3 = 0;
goto 12731;
for (;;) {
++v3;
label 12731:
if (v3 >= s.length) break;
if (s.charCodeAt(v3) > 32) {
v4 = v3;
} else {}
}
v3 = s.length - 1;
goto 12836;
for (;;) {
--v3;
label 12836:
if (v3 < 0) break;
if (s.charCodeAt(v3) > 32) {
v5 = v3;
return s.substr(v4, v5 + 1 - v4);
}
}
return s.substr(v4, v5 + 1 - v4);
};
v1.trim_str_star = function (s) {
var v3 = 0;
var v4 = 0;
var v5 = s.length - 1;
v3 = 0;
goto 13036;
for (;;) {
++v3;
label 13036:
if (v3 >= s.length) break;
if (s.charCodeAt(v3) != 42) {
v4 = v3;
} else {}
}
v3 = s.length - 1;
goto 13142;
for (;;) {
--v3;
label 13142:
if (v3 < 0) break;
if (s.charCodeAt(v3) != 42) {
v5 = v3;
return s.substr(v4, v5 + 1 - v4);
}
}
return s.substr(v4, v5 + 1 - v4);
};
v1.chat = function (s) {
if (s.substring(0, 1) == '*') {
if (this.connected) {
var v6 = this.trim_str_space(this.trim_str_star(s));
if (v6 && v6 != '') {
var v4 = '';
v4 += '&cmd=' + 'act';
v4 += '&txt=' + _global.escape(v6);
v4 += '&\n';
var v3 = this.sock.send(v4);
}
}
} else {
if (s.substring(0, 1) == '/') {
var v5 = s.split(' ');
if (this.connected) {
switch (v5[0].toLowerCase()) {
case '/me':
var v4 = '';
v4 += '&cmd=' + 'act';
v4 += '&txt=' + _global.escape(s.substring(4));
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
case '/info':
var v4 = '';
v4 += '&cmd=' + 'note';
v4 += '¬e=info';
v4 += '&info=' + _global.escape(v5[1] ? v5[1] : 'user');
v4 += '&name=' + _global.escape(v5[2] ? v5[2] : 'me');
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
case '/login':
case '/nick':
this.so.data.login = v5[1] ? v5[1] : 'me';
this.so_save();
var v4 = '';
v4 += '&cmd=' + 'login';
v4 += '&name=' + _global.escape(this.so.data.login);
v4 += '&pass=' + _global.escape(v5[2] ? v5[2] : '');
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
case '/session':
this.so.data.session = v5[1] ? v5[1] : '';
this.so_save();
var v4 = '';
v4 += '&cmd=' + 'session';
v4 += '&sess=' + _global.escape(this.so.data.session);
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
case '/join':
var v4 = '';
v4 += '&cmd=' + 'join';
v4 += '&room=' + _global.escape(v5[1] ? v5[1] : '');
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
case '/users':
var v4 = '';
v4 += '&cmd=' + 'users';
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
case '/rooms':
var v4 = '';
v4 += '&cmd=' + 'rooms';
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
case '/find':
var v4 = '';
v4 += '&cmd=' + 'find';
v4 += '&user=' + _global.escape(v5[1] ? v5[1] : 'me');
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
case '/connect':
this.sock.close();
this.sock.connect(v5[1] ? v5[1] : _root.host, v5[2] ? v5[2] : 5223);
break;
case '/kick':
var v4 = '';
v4 += '&cmd=' + 'kick';
v4 += '&user=' + _global.escape(v5[1] ? v5[1] : 'me');
v4 += '&room=' + _global.escape(v5[2] ? v5[2] : 'limbo');
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
case '/ban':
var v4 = '';
v4 += '&cmd=' + 'ban';
v4 += '&user=' + _global.escape(v5[1] ? v5[1] : 'me');
v4 += '&time=' + _global.escape(v5[2] ? v5[2] : '15');
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
case '/gag':
var v4 = '';
v4 += '&cmd=' + 'gag';
v4 += '&user=' + _global.escape(v5[1] ? v5[1] : 'me');
v4 += '&time=' + _global.escape(v5[2] ? v5[2] : '15');
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
case '/dis':
var v4 = '';
v4 += '&cmd=' + 'dis';
v4 += '&user=' + _global.escape(v5[1] ? v5[1] : 'me');
v4 += '&time=' + _global.escape(v5[2] ? v5[2] : '15');
v4 += '&\n';
var v3 = this.sock.send(v4);
break;
default:
this.up.talk.chat_status('unknown /command');
}
} else {
if (v5[0].toLowerCase() !== '/connect') {
} else {
this.sock.close();
this.sock.connect(v5[1] ? v5[1] : _root.host, v5[2] ? v5[2] : 5223);
}
}
} else {
if (this.connected) {
var v4 = '';
v4 += '&cmd=' + 'say';
v4 += '&txt=' + _global.escape(s);
v4 += '&\n';
var v3 = this.sock.send(v4);
}
}
}
};
v1.clean = function () {
this.sock.close();
this.mc.removeMovieClip();
};
v1.update = function () {
if (this.connected) {
if (this.standalone) {
if (!this.so_login_done) {
this.so_login();
this.so_login_done = true;
}
} else {
if (_root.Login_Done) {
if (this.usr.Login_Name != _root.Login_Name) {
if (_root.Login_Session != 0) {
this.chat('/session ' + _root.Login_Session);
} else {
this.chat('/login ' + _root.Login_Name);
}
this.usr.Login_Name = _root.Login_Name;
}
}
}
}
};
v1.so_load = function () {
this.so = SharedObject.getLocal('spew');
};
v1.so_save = function () {
this.so.flush();
};
v1.so_login = function () {
if (_root.S) {
this.chat('/session ' + _root.S);
return undefined;
}
this.so_load();
if (this.so.data.session && this.so.data.session != '') {
this.chat('/session ' + this.so.data.session);
} else {
if (this.so.data.login && this.so.data.login != '') {
this.chat('/login ' + this.so.data.login);
} else {
if (_root.name && _root.name != '') {
this.chat('/login ' + _root.name);
}
}
}
};
ASSetPropFlags(v1, null, 1);
v1.user_lookup = [];
v1.users = [];
v1.users_stamp = 0;
v1.room = 'limbo';
v1.room_lookup = [];
v1.rooms = [];
v1.rooms_stamp = 0;
v1.game_msgid = 1;
v1.ville_msgid = 1;
v1.ewarz_msgid = 1;
v1.joins = [];
v1.parts = [];
v1.map_user_to_color = [];
v1.map_user_to_gameid = [];
v1.map_gameid_to_gamename = [];
v1.map_user_to_info = [];
v1.rnd_num = 0;
}
#endinitclip
}
frame 1 {
WTF_import.main(this);
}