Frame 1
WetVille.main(this);
Symbol 3 MovieClip [register] Frame 49
stop();
Symbol 20480 MovieClip [__Packages.bmcache_item] Frame 0
class bmcache_item
{
var up, idstr, callback, cb_data, bmp, bmp_mc;
function bmcache_item (_up, _idstr, _callback, _cb_data) {
up = _up;
idstr = _idstr;
callback = _callback;
cb_data = _cb_data;
}
function delegate(f, i) {
return(com.dynamicflash.utils.Delegate.create(this, f, i));
}
function loaded_mc() {
if (!bmp) {
var _local2 = (cb_data.bmpw ? (cb_data.bmpw) : 100);
var _local3 = (cb_data.bmph ? (cb_data.bmph) : 100);
var _local4 = (cb_data.bmpt ? (cb_data.bmpt) : true);
bmp = new flash.display.BitmapData(_local2, _local3, _local4, 0);
bmp.draw(bmp_mc.loadhere);
bmp_mc.removeMovieClip();
bmp_mc = null;
}
if (cb_data.onload) {
cb_data.onload(this);
}
}
function chop(from, px, py, sx, sy) {
cb_data = from.cb_data;
var _local7 = (cb_data.bmpt ? (cb_data.bmpt) : true);
bmp = new flash.display.BitmapData(sx, sy, _local7, 0);
bmp.copyPixels(from.bmp, new flash.geom.Rectangle(px, py, sx, sy), new flash.geom.Point(0, 0));
}
function create(mc, idstr, depth) {
if (bmp) {
var _local6 = (cb_data.hx ? (cb_data.hx) : 0);
var _local7 = (cb_data.hy ? (cb_data.hy) : 0);
var _local8 = (cb_data.px ? (cb_data.px) : 0);
var _local9 = (cb_data.py ? (cb_data.py) : 0);
var _local10 = (cb_data.sx ? (cb_data.sx) : 100);
var _local11 = (cb_data.sy ? (cb_data.sy) : 100);
var _local12 = (cb_data.rot ? (cb_data.rot) : 0);
var _local5 = up.create(mc, null, depth);
_local5.createEmptyMovieClip("loadhere", 0);
_local5.loadhere.attachBitmap(bmp, 0, "auto", true);
_local5.loadhere._x = _local6;
_local5.loadhere._y = _local7;
_local5._x = _local8;
_local5._y = _local9;
_local5._xscale = _local10;
_local5._yscale = _local11;
_local5._rotation = _local12;
} else {
var _local5 = callback(mc, idstr, depth, cb_data, this);
}
return(_local5);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20481 MovieClip [__Packages.Minion] Frame 0
class Minion
{
var up, mc, xml, nam, page1, pagex, pagey, frame, anim, frame_fixed;
function Minion (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(_nam, hx, hy) {
mc = gfx.create_clip(up.mc, null);
mc._x = -hx;
mc._y = -hy;
mc.hx = -hx;
mc.hy = -hy;
if (_nam) {
setsoul(_nam);
}
display("idle", 0);
}
function load_xml(url) {
xml = new XML();
xml.url = url;
xml.onLoad = delegate(loaded_xml, xml);
xmlcache.load(xml);
}
function loaded_xml(suc) {
var _local4 = suc;
if (_local4 != "swf") {
_local4 = (_local4 ? "url" : "failed");
}
if (suc) {
parse_xml(xml, 0);
}
}
function parse_xml(e, d) {
var _local5 = false;
if (e.nodeType == 1) {
switch (e.nodeName) {
case "img" :
setsoul(e.attributes.src);
break;
default :
_local5 = true;
}
if (_local5) {
var _local4 = e.firstChild;
for ( ; _local4 ; _local4 = _local4.nextSibling) {
parse_xml(_local4, d + 1);
}
}
}
}
function loaded_img(it, nam) {
var _local5 = 0;
for ( ; _local5 < 6 ; _local5++) {
var _local4 = 0;
for ( ; _local4 < 8 ; _local4++) {
_root.bmc.bmp_chop("minion_" + nam, (((("minion_" + nam) + "_") + _local5) + "_") + _local4, _local4 * 100, _local5 * 100, 100, 100);
}
}
_root.bmc.forget("minion_" + nam);
}
function setsoul(_nam) {
nam = _nam;
if (_root.urlmap.map[nam] || (nam.substring(0, 5) != "http:")) {
if (_root.urlmap.map[nam]) {
nam = _root.urlmap.map[nam];
}
if (_root.bmc.available) {
if (!_root.bmc.checkloading("minion_" + nam)) {
_root.bmc.remember("minion_" + nam, bmcache.create_img, {url:nam, bmpw:800, bmph:600, bmpt:true, hx:0, hy:0, onload:delegate(loaded_img, nam)});
}
} else {
page1 = gfx.add_clip(mc, nam, 1);
page1.cacheAsBitmap = true;
page1._visible = true;
}
} else if (_root.bmc.available) {
if (!_root.bmc.checkloading("minion_" + nam)) {
_root.bmc.remember("minion_" + nam, bmcache.create_url, {url:nam, bmpw:800, bmph:600, bmpt:true, hx:0, hy:0, onload:delegate(loaded_img, nam)});
}
} else {
page1 = gfx.create_clip(mc, 1);
page1.mc = gfx.create_clip(page1, 1);
page1.mc.loadMovie(nam);
page1.cacheAsBitmap = true;
page1._visible = true;
}
}
function clean() {
mc.removeMovieClip();
mc = null;
}
function pick(page, x, y) {
pagex = x;
pagey = y;
if (_root.bmc.available) {
var _local5 = (((("minion_" + nam) + "_") + y) + "_") + x;
if (!_root.bmc.getbmp(_local5)) {
_local5 = (((("minion_" + "data_test_vtard_me_png") + "_") + y) + "_") + x;
}
_root.bmc.create(mc, _local5, 1);
} else {
page1._visible = false;
page._visible = true;
page.scrollRect = new flash.geom.Rectangle(x * 100, y * 100, 100, 100);
}
}
function breath(_frame) {
var _local3 = ((frame % 8) - 4) / 4;
if (_local3 < 0) {
_local3 = -_local3;
}
mc._xscale = 100 + (4 * _local3);
mc._yscale = 104 - (4 * _local3);
mc._x = (mc.hx * mc._xscale) / 100;
mc._y = (mc.hy * mc._yscale) / 100;
}
function display(_anim, _frame) {
anim = _anim;
frame = _frame;
frame_fixed = Math.floor(frame);
switch (anim) {
case "idle" :
default :
frame_fixed = frame_fixed % 6;
if (frame_fixed > 3) {
frame_fixed = 6 - frame_fixed;
}
pick(page1, frame_fixed, 3);
break;
case "left" :
frame_fixed = frame_fixed % 8;
pick(page1, frame_fixed, 1);
break;
case "right" :
frame_fixed = frame_fixed % 8;
pick(page1, frame_fixed, 0);
break;
case "out" :
frame_fixed = frame_fixed % 4;
pick(page1, frame_fixed, 2);
break;
case "in" :
frame_fixed = 4 + (frame_fixed % 4);
pick(page1, frame_fixed, 2);
break;
case "splat" :
pick(page1, 4, 3);
break;
case "idle_right" :
pick(page1, 5, 3);
breath(_frame);
break;
case "idle_back" :
pick(page1, 6, 3);
breath(_frame);
break;
case "idle_left" :
pick(page1, 7, 3);
breath(_frame);
break;
case "teapot" :
pick(page1, 0, 4);
breath(_frame);
break;
case "angry" :
pick(page1, 1, 4);
breath(_frame);
break;
case "confused" :
pick(page1, 2, 4);
breath(_frame);
break;
case "determind" :
pick(page1, 3, 4);
breath(_frame);
break;
case "devious" :
pick(page1, 4, 4);
breath(_frame);
break;
case "embarrassed" :
pick(page1, 5, 4);
breath(_frame);
break;
case "energetic" :
pick(page1, 6, 4);
breath(_frame);
break;
case "excited" :
pick(page1, 7, 4);
breath(_frame);
break;
case "happy" :
pick(page1, 0, 5);
breath(_frame);
break;
case "indescribable" :
pick(page1, 1, 5);
breath(_frame);
break;
case "nerdy" :
pick(page1, 2, 5);
breath(_frame);
break;
case "sad" :
pick(page1, 3, 5);
breath(_frame);
break;
case "scared" :
pick(page1, 4, 5);
breath(_frame);
break;
case "sleepy" :
pick(page1, 5, 5);
breath(_frame);
break;
case "thoughtful" :
pick(page1, 6, 5);
breath(_frame);
break;
case "working" :
pick(page1, 7, 5);
breath(_frame);
break;
case "dance" :
frame_fixed = frame_fixed % 6;
pick(page1, dance_frames[(frame_fixed * 2) + 0], dance_frames[(frame_fixed * 2) + 1]);
breath(_frame);
}
}
function update() {
}
//ASSetPropFlags(_local1, null, 1);
var dance_frames = [0, 4, 1, 4, 1, 5, 4, 5, 6, 4, 3, 5];
}
Symbol 20482 MovieClip [__Packages.MainStatic] Frame 0
class MainStatic
{
function MainStatic () {
}
static function choose_and_apply_scalar(me, flags) {
var _local4 = false;
var _local5 = false;
if (flags == "wide") {
_local4 = true;
} else if (flags) {
_local5 = true;
}
if (_local4 || ((Stage.width / Stage.height) > (((800 / 600) + (1200 / 600)) / 2))) {
if (_root.scalar.ox != 1200) {
gfx.setscroll(me.mc, 0, 0, 1200, 600);
_root.scalar.ox = 1200;
_root.scalar.oy = 600;
}
} else if (_root.scalar.ox != 800) {
gfx.setscroll(me.mc, 0, 0, 800, 600);
_root.scalar.ox = 800;
_root.scalar.oy = 600;
}
_root.scalar.apply(me.mc, _local5);
_root.scalar.apply(_root.mc_popup, _local5);
_root.scalar.apply(_root.mc_swish, _local5);
_root.scalar.apply(_root.__mochiservicesMC);
_root.__mochiservicesMC._xscale = _root.__mochiservicesMC._xscale * 1.5;
_root.__mochiservicesMC._yscale = _root.__mochiservicesMC._yscale * 1.5;
_root.__mochiservicesMC.swapDepths(16385);
}
static function get_base_context_menu(me, ncm) {
if (ncm) {
var _local4 = ncm;
} else {
var _local4 = new ContextMenu();
_local4.hideBuiltInItems();
}
var _local6 = function () {
if (Stage.displayState == "normal") {
Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 800, 600);
Stage.displayState = "fullScreen";
} else {
Stage.displayState = "normal";
}
};
var _local5 = new ContextMenuItem("Toggle fullscreen mode.", _local6);
_local4.customItems.push(_local5);
_local6 = function () {
if (Stage.displayState == "normal") {
Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 400, 300);
Stage.displayState = "fullScreen";
} else {
Stage.displayState = "normal";
}
};
_local5 = new ContextMenuItem("Toggle lowscreen mode.", _local6);
_local4.customItems.push(_local5);
_local6 = function () {
this.state_next = "menu";
};
_local5 = new ContextMenuItem("Quit to Main Menu.", com.dynamicflash.utils.Delegate.create(me, _local6));
_local4.customItems.push(_local5);
_local6 = function () {
this.state_next = "login";
};
_local5 = new ContextMenuItem("Logout.", com.dynamicflash.utils.Delegate.create(me, _local6));
_local4.customItems.push(_local5);
return(_local4);
}
static function update_setup() {
return(new Array());
}
static function update_add(tab, func) {
tab[tab.length] = func;
}
static function update_remove(tab, func) {
var _local4 = 0;
for ( ; _local4 < tab.length ; _local4++) {
if (tab[_local4] == func) {
tab.splice(_local4, 1);
return(undefined);
}
}
}
static function update_do(tab) {
var _local3 = 0;
for ( ; _local3 < tab.length ; _local3++) {
tab[_local3]();
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20483 MovieClip [__Packages.BetaComms] Frame 0
class BetaComms
{
var up, php, sending_scores, get_high_after_sending, datas, sent_score, sent_stamp, lv_score, get_high_after_sending_cmd, get_high_after_sending_filter, get_high_after_sending_callback, lv_high, lv_pbem;
function BetaComms (_up) {
up = _up;
php = ("http://" + _root.host) + "/swf/beta.php";
sending_scores = false;
get_high_after_sending = false;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function delegate2(f, d1, d2) {
return(com.dynamicflash.utils.Delegate.create(this, f, d1, d2));
}
function send_score_check() {
if (sent_score < datas.score) {
send_score();
}
}
function send_score_wait_and_check() {
var _local2 = new Date();
if ((_local2.getTime() - sent_stamp) > (1000 * 60)) {
send_score_check();
}
}
function reset_sent_stamp() {
var _local2 = new Date();
sent_stamp = _local2.getTime();
sent_score = datas.score;
return(sent_stamp);
}
function send_score() {
if (_root.skip_wetscore) {
return(undefined);
}
lv_score = new LoadVars();
lv_score.S = _root.Login_Session;
lv_score.name = _root.Login_Name;
lv_score.game = datas.game;
lv_score.host = datas.host;
lv_score.seed = datas.seed;
lv_score.state = datas.state;
lv_score.score = datas.score;
lv_score.moves = datas.moves;
lv_score.time = datas.time;
lv_score.start_time = datas.start_time;
lv_score.replay_str = datas.replay_str;
lv_score.timestamp = reset_sent_stamp();
fbsig.copy_fb_sigs(_root, lv_score);
lv_score.onLoad = delegate(send_score_post, lv_score);
lv_score.sendAndLoad(php + "?cmd=submit", lv_score, "POST");
sending_scores = true;
}
function send_score_post(success, lv) {
sending_scores = false;
if (success) {
if (lv.score != 0) {
_root.talk.chat_status("Sent Score: " + lv.score);
}
}
if (get_high_after_sending) {
get_high(get_high_after_sending_cmd, get_high_after_sending_filter, get_high_after_sending_callback);
get_high_after_sending = false;
}
}
function get_high(cmd, filter, callback) {
if (_root.skip_wetscore) {
return(undefined);
}
if (sending_scores) {
get_high_after_sending_cmd = cmd;
get_high_after_sending_filter = filter;
get_high_after_sending_callback = callback;
get_high_after_sending = true;
return(undefined);
}
lv_high = new LoadVars();
lv_high.S = _root.Login_Session;
lv_high.name = _root.Login_Name;
lv_high.game = datas.game;
lv_high.host = datas.host;
lv_high.seed = datas.seed;
lv_high.state = datas.state;
lv_high.filter = filter;
lv_high.min = 1;
lv_high.max = 10;
fbsig.copy_fb_sigs(_root, lv_high);
lv_high.onLoad = delegate2(get_high_post, lv_high, callback);
lv_high.sendAndLoad((php + "?cmd=") + cmd, lv_high, "POST");
}
function get_high_post(success, lv, callback) {
var _local6 = new Array();
var _local7 = false;
var _local5 = 1;
for ( ; _local5 <= 10 ; _local5++) {
if (lv["name" + _local5] != undefined) {
_local6[_local5 - 1] = (((lv["score" + _local5] + ";") + lv["name" + _local5]) + ";") + lv["seed" + _local5];
_local7 = true;
} else {
_local6[_local5 - 1] = "0;...";
}
}
if (_local7) {
callback(_local6);
}
}
function send_audit(a_scoreid, a_score) {
}
function send_audit_post(success, lv) {
}
function send_pbemstart(game, em1, em2) {
if (_root.skip_wetscore) {
return(undefined);
}
lv_pbem = new LoadVars();
lv_pbem.S = _root.Login_Session;
lv_pbem.name = _root.Login_Name;
lv_pbem.game = game;
lv_pbem.em1 = em1;
lv_pbem.em2 = em2;
lv_pbem.onLoad = delegate(send_pbemstart_post, lv_pbem);
lv_pbem.sendAndLoad(php + "?cmd=pbemstart", lv_pbem, "POST");
}
function send_pbemstart_post(success, lv) {
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20484 MovieClip [__Packages.bmcache] Frame 0
class bmcache
{
var aa, aa_check, aa_loading, mc, available;
function bmcache () {
aa = new Array();
aa_check = new Array();
aa_loading = new Array();
mc = create(_root, null, null);
mc._visible = false;
available = (flash.display.BitmapData ? true : false);
}
function delegate(f, i) {
return(com.dynamicflash.utils.Delegate.create(this, f, i));
}
function clear_loading() {
check_loading();
aa_loading = new Array();
}
function check_loading() {
var _local6 = 0;
var _local7 = 0;
var _local2 = 0;
for ( ; _local2 < aa_loading.length ; _local2++) {
var _local3 = aa_loading[_local2];
if (_local3.bmp_mc) {
var _local4 = _local3.bmp_mc.loadhere.getBytesTotal();
if (Math.floor(_local4) == 0) {
_local4 = 1024 * 16;
}
var _local5 = _local3.bmp_mc.loadhere.getBytesLoaded();
if ((_local5 >= _local4) && (_local3.bmp_mc.loadhere._width > 0)) {
_local3.loaded_mc();
} else {
_local6 = _local6 + _local4;
_local7 = _local7 + _local5;
}
}
}
if (_local6) {
return(_local7 / _local6);
}
return(1);
}
function isloading(idstr) {
if (aa[idstr]) {
return(true);
}
return(false);
}
function checkloading(idstr) {
if (aa[idstr]) {
return(true);
}
if (aa_check[idstr]) {
return(true);
}
return(false);
}
function isloaded(idstr) {
var _local5 = aa[idstr];
if (!_local5) {
return(0);
}
if (_local5.bmp_mc) {
var _local4 = _local5.bmp_mc.loadhere.getBytesLoaded();
var _local3 = _local5.bmp_mc.loadhere.getBytesTotal();
if (Math.floor(_local3) == 0) {
_local3 = 1024 * 16;
}
if ((_local4 >= _local3) && (_local5.bmp_mc.loadhere._width > 0)) {
_local5.loaded_mc();
}
}
return((_local5.bmp ? 1 : 0));
}
function remember(idstr, callback, cb_data) {
if (aa[idstr] == null) {
aa[idstr] = new bmcache_item(this, idstr, callback, cb_data);
aa[idstr].bmp_mc = callback(mc, idstr, null, cb_data, aa[idstr]);
if (!aa[idstr].bmp) {
aa_loading[aa_loading.length] = aa[idstr];
}
} else if (cb_data.onload) {
cb_data.onload(aa[idstr]);
}
}
function forget(idstr) {
aa[idstr] = null;
aa_check[idstr] = true;
}
function getbmp(idstr) {
return(aa[idstr].bmp);
}
function create(_mc, idstr, depth, px, py, sx, sy, rot) {
if (_mc.newdepth == undefined) {
_mc.newdepth = 0;
}
if (depth == null) {
depth = ++_mc.newdepth;
}
if ((idstr == null) || (aa[idstr] == null)) {
var _local10 = _mc.createEmptyMovieClip("mc" + depth, depth);
_local10.newdepth = 0;
} else {
var _local10 = aa[idstr].create(_mc, idstr, depth);
}
_local10.newdepth = 0;
if (px != null) {
_local10._x = px;
}
if (py != null) {
_local10._y = py;
}
if (sx != null) {
_local10._xscale = sx;
}
if (sy != null) {
_local10._yscale = sy;
}
if (rot != null) {
_local10._rotation = rot;
}
return(_local10);
}
static function create_generic(mc, idstr, depth, cb_data, item) {
_local7.idstr = idstr;
var _local13 = (cb_data.hx ? (cb_data.hx) : 0);
var _local14 = (cb_data.hy ? (cb_data.hy) : 0);
var _local8 = (cb_data.px ? (cb_data.px) : 0);
var _local9 = (cb_data.py ? (cb_data.py) : 0);
var _local10 = (cb_data.sx ? (cb_data.sx) : 100);
var _local11 = (cb_data.sy ? (cb_data.sy) : 100);
var _local12 = (cb_data.rot ? (cb_data.rot) : 0);
var _local7 = item.up.create(mc, null, null, _local8, _local9, _local10, _local11, _local12);
_local7.createEmptyMovieClip("loadhere", 0);
_local7.loadhere._x = _local13;
_local7.loadhere._y = _local14;
return(_local7);
}
static function create_null(mc, idstr, depth, cb_data, item) {
var _local7 = create_generic(mc, idstr, depth, cb_data, item);
item.bmp_mc = _local7;
item.call_loaded_mc = true;
item.loaded_mc();
return(null);
}
static function create_img(mc, idstr, depth, cb_data, item) {
var _local7 = create_generic(mc, idstr, depth, cb_data, item);
var _local8 = gfx.add_clip(_local7.loadhere, cb_data.url, null);
item.bmp_mc = _local7;
item.call_loaded_mc = true;
item.loaded_mc();
return(null);
}
static function create_url(mc, idstr, depth, cb_data, item) {
var _local7 = create_generic(mc, idstr, depth, cb_data, item);
_local7.loadhere.loadMovie(cb_data.url);
return(_local7);
}
function bmp_chop(from, to, px, py, sx, sy) {
if (aa[to] == null) {
if (aa[from]) {
aa[to] = new bmcache_item(this, to, null, null);
aa[to].chop(aa[from], px, py, sx, sy);
}
}
}
function bmp_blit(from, to, fx, fy, sx, sy, tx, ty) {
if (aa[to].bmp && (aa[from].bmp)) {
aa[to].bmp.copyPixels(aa[from].bmp, new flash.geom.Rectangle(fx, fy, sx, sy), new flash.geom.Point(tx, ty));
}
}
function bmp_fill(to, fx, fy, sx, sy, argb) {
if (aa[to].bmp) {
aa[to].bmp.fillRect(new flash.geom.Rectangle(fx, fy, sx, sy), argb);
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20485 MovieClip [__Packages.fbsig] Frame 0
class fbsig
{
function fbsig () {
}
static function copy_fb_sigs(f, t) {
t.fb_sig_time = f.fb_sig_time;
t.fb_sig_added = f.fb_sig_added;
t.fb_sig_user = f.fb_sig_user;
t.fb_sig_profile_update_time = f.fb_sig_profile_update_time;
t.fb_sig_session_key = f.fb_sig_session_key;
t.fb_sig_expires = f.fb_sig_expires;
t.fb_sig_api_key = f.fb_sig_api_key;
t.fb_sig = f.fb_sig;
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20486 MovieClip [__Packages.Login] Frame 0
class Login
{
var up, user_php, viewYdest, viewY, frame, file_name, file_lines, dat, mc, zmc, omc, mcs, parallax, mcs_max, topmc, over, timeout_lv, timeout_time, timeout_func;
function Login (_up, _str) {
up = _up;
_root.login = this;
if (_str == "join") {
joinonly = true;
autologin = false;
}
}
function delegate(f, d, i) {
return(com.dynamicflash.utils.Delegate.create(this, f, d, i));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup() {
if (_root.skip_wetlogin) {
so_load();
_root.Login_Name = "me";
_root.Login_Done = true;
_root.Login_Session = 0;
up.state_next = "menu";
return(undefined);
}
user_php = ("http://" + _root.host) + "/swf/users.php";
viewYdest = 0;
viewY = 0;
frame = 0;
file_name = "register";
file_lines = register_lines;
dat.saves_reset_temps();
mc.removeMovieClip();
mc = gfx.create_clip(up.mc, null);
zmc = gfx.create_clip(mc, null);
omc = gfx.create_clip(mc, null, 400, 300);
mcs = new Array();
parallax = new Array();
var _local8 = 0;
var _local9 = null;
mcs_max = file_lines.length - 1;
var _local2 = 0;
for ( ; _local2 < mcs_max ; _local2++) {
var _local3 = file_lines[_local2];
var _local4 = _local3.split(",");
if (_local4[0] == "") {
_local4[0] = null;
}
if (_local4[1] == "") {
_local4[1] = null;
}
if (_local4[2] == "") {
_local4[2] = null;
}
_local9 = parallax[_local4[1]];
if (_local9 == null) {
_local9 = gfx.create_clip(zmc, null, 400, 300);
_local9.zoom = 1;
parallax[_local4[1]] = _local9;
_local9.cacheAsBitmap = true;
switch (_local4[1]) {
case "login" :
_local9._y = _local9._y - 600;
break;
case "signup" :
_local9._y = _local9._y + 600;
}
}
if (_local4[0] == "circ") {
mcs[_local2] = gfx.create_clip(_local9, null);
mcs[_local2].mc = gfx.add_clip(mcs[_local2], file_name, null);
mcs[_local2].mc.gotoAndStop(_local2 + 1);
mcs[_local2].cacheAsBitmap = true;
var _local5 = mcs[_local2].mc.getBounds(mcs[_local2]);
_local5.fx = (_local5.xMax + _local5.xMin) / 2;
_local5.fy = (_local5.yMax + _local5.yMin) / 2;
mcs[_local2]._x = mcs[_local2]._x + (_local5.fx - 400);
mcs[_local2].mc._x = mcs[_local2].mc._x - _local5.fx;
mcs[_local2]._y = mcs[_local2]._y + (_local5.fy - 300);
mcs[_local2].mc._y = mcs[_local2].mc._y - _local5.fy;
} else {
mcs[_local2] = gfx.add_clip(_local9, file_name, null);
var _local6 = mcs[_local2];
_local6._x = -400;
_local6._y = -300;
_local6.gotoAndStop(_local2 + 1);
_local6.cacheAsBitmap = true;
}
_local6.active = true;
_local6.onPress = delegate(press, _local6);
_local6.onRelease = delegate(click, _local6);
_local6.onRollOver = delegate(hover_on, _local6);
_local6.onRollOut = delegate(hover_off, _local6);
_local6.onReleaseOutside = delegate(hover_off, _local6);
_local6.tabEnabled = false;
_local6.useHandCursor = false;
var _local6 = mcs[_local2];
_local6.idx = _local2;
_local6.nam = _local4[0];
_local6.group = _local4[1];
_local6.nams = _local6.nam.split("_");
_local6._visible = true;
switch (_local6.nams[0]) {
case "but" :
_local6._alpha = 25;
if (_local6.nams[1] == "flag") {
_local6._visible = false;
}
_local6.useHandCursor = true;
break;
case "text" :
var _local5 = _local6.getBounds(_local9);
_local5.w = _local5.xMax - _local5.xMin;
_local5.h = _local5.yMax - _local5.yMin;
_local6.tf = gfx.create_text_html(_local9, null, _local5.xMin, _local5.yMin, _local5.w, _local5.h);
gfx.set_text_html(_local6.tf, 16, 0, _local6.nam);
break;
case "edit" :
_local5 = _local6.getBounds(_local9);
_local5.w = _local5.xMax - _local5.xMin;
_local5.h = _local5.yMax - _local5.yMin;
_local6.tf = gfx.create_text_edit(_local9, null, _local5.xMin, _local5.yMin, _local5.w, _local5.h);
_local6.tf.setNewTextFormat(gfx.create_text_format(40, -16777216));
_local6.tf.text = "me";
_local6.tf.onKillFocus = delegate(lostfocus, _local6);
}
mcs[_local6.nam] = _local6;
topmc = _local9;
}
mcs.but_skiplogin._visible = false;
mcs.edit_pass2.tf.password = true;
mcs.edit_pass3.tf.password = true;
mcs.edit_pass2.tf.text = "";
mcs.edit_pass3.tf.text = "";
thunk();
update();
if (_root.name != undefined) {
name_set(_root.name);
} else if (_root.ng_username != undefined) {
name_set(_root.ng_username);
} else if ((_root.kongregate_username != undefined) && (_root.kongregate_username.toLowerCase() != "guest")) {
name_set(_root.kongregate_username);
} else {
reroll();
}
info_show("");
info_unlock("");
so_load();
thunk();
}
function logindone() {
_root.wtf.logindone();
_root.wetplay.logindone();
}
function clean() {
if (_root.skip_wetlogin) {
logindone();
return(undefined);
}
if (!_root.swish) {
_root.swish.clean();
_root.swish = new Swish({style:"slide_left", mc:mc}).setup();
}
zmc._x = 0;
zmc._y = 0;
mc.removeMovieClip();
mc = null;
_root.Login_Name = name_text;
_root.Login_Done = true;
_root.Login_Session = session;
so_save();
autologin = false;
logindone();
}
function so_load() {
so = SharedObject.getLocal("wetlogin");
var _local2 = so.data;
if (_local2.version == VERSION) {
if (_local2.name) {
name_set(_local2.name);
}
if (_local2.session) {
session = _local2.session;
}
if (_local2.opt_chat) {
opt_chat = ((_local2.opt_chat == 1) ? true : false);
}
if (_local2.opt_sound) {
opt_sound = ((_local2.opt_sound == 1) ? true : false);
}
}
if (_root.S) {
session = _root.S;
}
if ((session != null) && ((session != 0) && (autologin))) {
do_session();
}
}
function so_save() {
var _local2 = so.data;
_local2.version = VERSION;
_local2.name = name_text;
_local2.session = session;
_local2.opt_chat = (opt_chat ? 1 : 2);
_local2.opt_sound = (opt_sound ? 1 : 2);
so.flush();
}
function hover_off(me) {
if (_root.popup | locked) {
return(undefined);
}
if (over == me) {
do_this(me, "off");
over = null;
}
}
function hover_on(me) {
if (_root.popup | locked) {
return(undefined);
}
if (over != me) {
do_this(me, "on");
over = me;
}
}
function press(me) {
if (_root.popup | locked) {
return(undefined);
}
do_this(me, "press");
}
function click(me) {
if (_root.popup | locked) {
return(undefined);
}
do_this(me, "click");
}
function lostfocus(nmc, me) {
if (_root.popup | locked) {
return(undefined);
}
switch (me.nam) {
case "edit_name1" :
case "edit_name2" :
case "edit_name3" :
name_set(me.tf.text);
}
}
function thunk() {
if (joinonly) {
if (viewYdest == 0) {
mcs.but_back1._visible = false;
mcs.but_back2._visible = false;
}
}
if (opt_chat) {
mcs.but_chat_on._alpha = 100;
mcs.but_chat_off._alpha = 25;
} else {
mcs.but_chat_on._alpha = 25;
mcs.but_chat_off._alpha = 100;
}
if (opt_sound) {
mcs.but_sound_on._alpha = 100;
mcs.but_sound_off._alpha = 25;
} else {
mcs.but_sound_on._alpha = 25;
mcs.but_sound_off._alpha = 100;
}
}
function update() {
if (_root.skip_wetlogin) {
return(undefined);
}
if (timeout_lv) {
timeout_time--;
if (timeout_time <= 0) {
timeout_lv.err = "Network TimeOut! Try again or click on the SKIP LOGIN button below.";
timeout_func(false, timeout_lv);
timeout_lv = null;
timeout_time = null;
timeout_func = null;
mcs.but_skiplogin._visible = true;
}
}
if (joinonly) {
if (viewYdest == 0) {
viewYdest = 600;
}
}
if (_root.popup) {
return(undefined);
}
frame++;
if (viewYdest != viewY) {
viewY = viewY + (((viewYdest - viewY) * 1) / 8);
if (((viewY - viewYdest) * (viewY - viewYdest)) < 0.5) {
viewY = viewYdest;
}
parallax.guest._y = viewY + 300;
parallax.login._y = (viewY + 300) + 600;
parallax.signup._y = (viewY + 300) - 600;
mcs.circ._rotation = (viewY * 360) / 600;
}
var _local2 = Math.floor(frame / 8) % 4;
if (_local2 == 3) {
_local2 = 1;
}
switch (_local2) {
case 0 :
mcs.anim1a._visible = true;
mcs.anim1b._visible = true;
mcs.anim2a._visible = false;
mcs.anim2b._visible = false;
mcs.anim3a._visible = false;
mcs.anim3b._visible = false;
break;
case 1 :
mcs.anim1a._visible = false;
mcs.anim1b._visible = false;
mcs.anim2a._visible = true;
mcs.anim2b._visible = true;
mcs.anim3a._visible = false;
mcs.anim3b._visible = false;
break;
case 2 :
mcs.anim1a._visible = false;
mcs.anim1b._visible = false;
mcs.anim2a._visible = false;
mcs.anim2b._visible = false;
mcs.anim3a._visible = true;
mcs.anim3b._visible = true;
}
}
function do_this(me, act) {
if (me.nams[0] == "but") {
if (act == "on") {
me._alpha = 100;
switch (me.nams[1]) {
case "login" :
info_pop("Goto login page.");
break;
case "signup" :
info_pop("Goto signup page.");
break;
case "back1" :
case "back2" :
info_pop("Back to guest login page.");
break;
case "no" :
info_pop("Get a new random name.");
break;
case "yes" :
info_pop("Shall we play a game?");
break;
case "chat" :
info_pop("In game chat?");
break;
case "sound" :
info_pop("In game sound?");
}
} else if (act == "off") {
me._alpha = 25;
thunk();
info_pop();
} else if (act == "press") {
me._alpha = 75;
} else if (act == "click") {
me._alpha = 100;
switch (me.nams[1]) {
case "login" :
viewYdest = -600;
break;
case "signup" :
viewYdest = 600;
break;
case "back1" :
case "back2" :
viewYdest = 0;
break;
case "no" :
reroll();
break;
case "chat" :
if (me.nams[2] == "on") {
opt_chat = true;
} else {
opt_chat = false;
}
thunk();
break;
case "sound" :
if (me.nams[2] == "on") {
opt_sound = true;
_root.wp_vol = 50;
} else {
opt_sound = false;
_root.wp_vol = 0;
}
thunk();
break;
case "yes" :
do_guest();
break;
case "dosignup" :
do_signup();
break;
case "dologin" :
do_login();
break;
case "skiplogin" :
session = 0;
name_set("me");
up.state_next = "menu";
}
}
}
}
function reroll() {
var _local2 = new Date();
_local2 = Math.floor(_local2.getTime() / 1);
rnd_seed(_local2);
var _local3 = _local2 % (txt_adjectives.length - 1);
var _local4 = rnd() % (txt_nouns.length - 1);
name_set((txt_adjectives[_local3] + "_") + txt_nouns[_local4]);
}
function name_set(nam) {
mcs.edit_name1.tf.text = nam;
mcs.edit_name2.tf.text = nam;
mcs.edit_name3.tf.text = nam;
name_text = nam;
}
function info_lock() {
locked = true;
}
function info_unlock() {
locked = false;
}
function info_show(s) {
info_text = s;
info_pop(s);
}
function info_pop(s) {
if (!s) {
s = info_text;
}
gfx.set_text_html(mcs.text_tip.tf, 16, 0, s);
if (s == "") {
mcs.back_tooltip._visible = false;
} else {
mcs.back_tooltip._visible = true;
}
}
function do_guest() {
if (timeout_lv) {
return(undefined);
}
var _local2 = new LoadVars();
_local2.name = name_text;
fbsig.copy_fb_sigs(_root, _local2);
_local2.sendAndLoad(user_php + "?cmd=guest", _local2, "POST");
_local2.onLoad = delegate(do_guest_post, _local2);
info_lock();
info_show((("Trying " + _local2.name) + " guest account on ") + _root.host);
timeout_lv = _local2;
timeout_time = 25 * 10;
timeout_func = delegate(do_guest_post, null);
}
function do_guest_post(success, lv) {
if (timeout_lv != lv) {
return(undefined);
}
timeout_lv = null;
name_set(lv.name);
session = 0;
if (lv.err == "OK") {
_root.Login_Img = lv.img;
up.state_next = "menu";
} else {
mcs.but_skiplogin._visible = true;
session = null;
info_show((lv.err ? (lv.err) : "ERROR"));
info_unlock();
if (!joinonly) {
session = 0;
name_set("me");
up.state_next = "menu";
}
}
}
function do_signup() {
if (timeout_lv) {
return(undefined);
}
var _local2 = new LoadVars();
_local2.name = name_text;
_local2.pass = mcs.edit_pass3.tf.text;
_local2.email = mcs.edit_email3.tf.text;
_local2.refer = _root.refer;
fbsig.copy_fb_sigs(_root, _local2);
_local2.sendAndLoad(user_php + "?cmd=create", _local2, "POST");
_local2.onLoad = delegate(do_signup_post, _local2);
info_lock();
info_show("Creating new account on " + _root.host);
timeout_lv = _local2;
timeout_time = 25 * 10;
timeout_func = delegate(do_signup_post, null);
}
function do_signup_post(success, lv) {
if (timeout_lv != lv) {
return(undefined);
}
timeout_lv = null;
name_set(lv.name);
session = lv.S;
if (lv.err == "OK") {
_root.Login_Img = lv.img;
up.state_next = "menu";
} else {
mcs.but_skiplogin._visible = true;
session = null;
info_show((lv.err ? (lv.err) : "ERROR"));
info_unlock();
}
}
function do_login() {
if (timeout_lv) {
return(undefined);
}
var _local2 = new LoadVars();
_local2.name = name_text;
_local2.pass = mcs.edit_pass2.tf.text;
fbsig.copy_fb_sigs(_root, _local2);
_local2.sendAndLoad(user_php + "?cmd=login", _local2, "POST");
_local2.onLoad = delegate(do_login_post, _local2);
info_lock();
info_show((("Logging on as " + _local2.name) + " at ") + _root.host);
timeout_lv = _local2;
timeout_time = 25 * 10;
timeout_func = delegate(do_login_post, null);
}
function do_login_post(success, lv) {
if (timeout_lv != lv) {
return(undefined);
}
timeout_lv = null;
name_set(lv.name);
session = lv.S;
if (lv.err == "OK") {
_root.Login_Img = lv.img;
up.state_next = "menu";
} else {
mcs.but_skiplogin._visible = true;
session = null;
info_show((lv.err ? (lv.err) : "ERROR"));
info_unlock();
}
}
function do_session() {
if (timeout_lv) {
return(undefined);
}
var _local2 = new LoadVars();
_local2.session = session;
fbsig.copy_fb_sigs(_root, _local2);
_local2.sendAndLoad(user_php + "?cmd=session", _local2, "POST");
_local2.onLoad = delegate(do_session_post, _local2);
info_lock();
info_show("attempting to auto log in to " + _root.host);
timeout_lv = _local2;
timeout_time = 25 * 10;
timeout_func = delegate(do_session_post, null);
}
function do_session_post(success, lv) {
if (timeout_lv != lv) {
return(undefined);
}
timeout_lv = null;
name_set(lv.name);
session = lv.S;
if (lv.err == "OK") {
_root.Login_Img = lv.img;
up.state_next = "menu";
} else {
mcs.but_skiplogin._visible = true;
session = null;
info_show((lv.err ? (lv.err) : "ERROR"));
info_unlock();
}
}
//ASSetPropFlags(_local1, null, 1);
var name_text = "me";
var session = 0;
var locked = false;
var saves = null;
var opt_chat = true;
var opt_sound = true;
var rnd_num = 0;
var autologin = true;
var joinonly = false;
var so = null;
var VERSION = 17;
var info_text = "";
static var register_lines = ["back,base", "back,guest", "back,guest", "edit_name1,guest", "but_yes,guest", "but_no,guest", "back,login", "anim1a,login", "anim2a,login", "anim3a,login", "back,login", "edit_name2,login", "back,login", "edit_pass2,login", "but_forgot,login", "but_dologin,login", "but_back1,login", "back,signup", "anim1b,signup", "anim2b,signup", "anim3b,signup", "back,signup", "edit_name3,signup", "back,signup", "edit_pass3,signup", "back,signup", "edit_email3,signup", "but_dosignup,signup", "but_back2,signup", "but_login,fore", "but_signup,fore", "but_chat_on,fore", "but_chat_off,fore", "but_sound_on,fore", "but_sound_off,fore", "but_flag_uk,fore", "but_flag_us,fore", "but_flag_es,fore", "but_flag_de,fore", "but_flag_nl,fore", "but_flag_fr,fore", "but_flag_gr,fore", "but_flag_it,fore", "but_flag_pt,fore", "but_flag_ru,fore", "circ,fore", "back_tooltip,fore", "text_tip,fore", "but_skiplogin,fore", ""];
static var txt_adjectives = ["ravishing", "mimic", "famous", "cheerful", "livid", "obstinate", "exhausted", "graceful", "outrageous", "radical", "childish", "snobbish", "miserly", "amiable", "disgusting", "awful", "humorous", "fanciful", "pathetic", "windy", "dusty", "bashful", "freaky", "chilly", "stormy", "humid", "bountiful", "jubilant", "irritated", "patient", "dizzy", "skeptical", "puzzled", "perplexed", "jovial", "hyper", "squirrely", "jittery", "elegant", "gleeful", "dreary", "impish", "sneaky", "horrid", "monsterous", "able", "abnormal", "absent", "absolute", "accurate", "acidic", "acoustic", "active", "adequate", "airborne", "airy", "all", "alone", "american", "amphibious", "angry", "annual", "another", "any", "apparent", "artificial", "atomic", "audible", "automatic", "auxiliary", "available", "bad", "ballistic", "bare", "basic", "beautiful", "beneficial", "best", "better", "big", "biggest", "binary", "bipolar", "bitter", "black", "blind", "blue", "both", "brief", "bright", "broad", "brown", "busy", "capable", "careful", "careless", "carnal", "cautious", "celestial", "celsius", "central", "ceramic", "certain", "cheap", "cheaper", "civil", "clean", "clear", "closer", "coarse", "cold", "common", "compact", "complete", "complex", "compound", "compulsory", "concrete", "conscious", "constant", "continuous", "convenient", "cool", "correct", "corrosive", "critical", "cruel", "cubic", "culpable", "current", "daily", "dangerous", "dark", "darker", "darkest", "dead", "deaf", "dear", "dearer", "dearest", "decimal", "deep", "deeper", "deepest", "defective", "definite", "delicate", "dental", "dependent", "destructive", "diagonal", "different", "difficult", "digital", "dim", "diseased", "distinct", "ditty", "dormant", "double", "drafty", "drier", "driest", "drowsy", "dry", "dual", "due", "dull", "dumb", "dynamic", "each", "easy", "eighth", "either", "elastic", "electric", "eligible", "else", "empty", "enough", "entire", "equal", "erect", "erratic", "essential", "eventual", "every", "everyday", "evident", "exact", "excellent", "excessive", "exclusive", "explosive", "extensive", "external", "extra", "extreme", "extrinsic", "faint", "fair", "false", "familiar", "fast", "fat", "fatal", "fattest", "faulty", "feasible", "federal", "feeble", "fertile", "few", "fifth", "final", "fine", "firm", "first", "fiscal", "fit", "flammable", "flat", "flexible", "foggy", "foolish", "foreign", "formal", "former", "fourth", "free", "frequent", "fresh", "full", "gamma", "general", "gentle", "good", "gradual", "grand", "graphic", "grave", "gray", "great", "green", "grievous", "grocery", "happy", "hard", "harmful", "hazardous", "healthy", "heavy", "helpful", "high", "hilly", "hind", "hollow", "hot", "huge", "icy", "identical", "idle", "ill", "imminent", "important", "improper", "inboard", "inner", "instant", "intense", "internal", "intrinsic", "iterative", "jet", "julian", "junior", "keen", "kelvin", "kind", "knobbed", "large", "last", "late", "lawful", "lazy", "leaky", "lean", "least", "legal", "less", "lethal", "level", "likely", "linear", "liquid", "literal", "little", "lively", "local", "lone", "long", "loose", "loud", "low", "magnetic", "main", "many", "maple", "marine", "martial", "mean", "medical", "mental", "mere", "metallic", "middle", "minor", "minus", "misty", "mnemonic", "mobile", "modern", "modular", "molten", "moral", "more", "most", "movable", "muddy", "multiple", "mutual", "naked", "narcotic", "narrow", "national", "natural", "nautical", "naval", "neat", "necessary", "negative", "nervous", "neutral", "new", "next", "nice", "noisy", "nominal", "normal", "nuclear", "numeric", "numerical", "numerous", "obsolete", "obvious", "odd", "offline", "okay", "old", "online", "open", "optimum", "optional", "oral", "ordinary", "original", "other", "outboard", "outer", "outside", "outward", "overhead", "oversize", "own", "pale", "paler", "palest", "parallel", "partial", "passive", "past", "peculiar", "periodic", "permanent", "personal", "petty", "phonetic", "physical", "plain", "planar", "plenty", "poisonous", "polite", "political", "poor", "portable", "positive", "possible", "potential", "powerful", "practical", "precise", "pretty", "previous", "primary", "prior", "private", "probable", "prompt", "proper", "protective", "proximate", "punitive", "pure", "purple", "quick", "quiet", "random", "rapid", "raw", "ready", "real", "red", "regional", "regular", "relative", "reliable", "remote", "removable", "responsible", "retail", "reusable", "rich", "richer", "richest", "right", "rigid", "ripe", "rough", "sad", "sadder", "saddest", "safe", "safer", "safest", "same", "secondary", "secure", "senior", "sensitive", "separate", "serious", "seventh", "several", "severe", "shady", "shallow", "sharp", "shy", "shiny", "short", "sick", "silent", "similar", "simple", "single", "sixth", "slack", "slight", "slippery", "slower", "slowest", "small", "smart", "smooth", "snug", "social", "soft", "solar", "solid", "some", "sour", "special", "specific", "stable", "static", "steady", "steep", "sterile", "sticky", "stiff", "still", "straight", "strange", "strict", "strong", "such", "sudden", "suitable", "sunny", "superior", "sure", "sweet", "swift", "swollen", "symbolic", "synthetic", "tactical", "tall", "taut", "technical", "temporary", "tentative", "terminal", "thermal", "thick", "thin", "third", "thirsty", "tight", "tiny", "toxic", "tropical", "true", "turbulent", "typical", "unique", "upper", "urgent", "useable", "useful", "usual", "valid", "valuable", "various", "vertical", "viable", "violent", "virtual", "visible", "visual", "vital", "void", "volatile", "wanton", "warm", "weak", "weary", "wet", "white", "whole", "wide", "wise", "wooden", "woolen", "worse", "worst", "wrong", "yellow", "young", "harmless", "inactive", "incorrect", "indirect", "invalid", "unable", "unknown", "unmated", "unsafe", "unsigned", "unused", "unusual", "unwanted", "useless", "aged", "etched", "finished", "given", "left", "lost", "mistaken", "proven", ""];
static var txt_nouns = ["abrasive", "abuser", "accident", "acid", "acre", "acronym", "act", "address", "admiral", "adverb", "adviser", "affair", "agent", "aid", "aim", "air", "airplane", "airport", "airship", "alarm", "alcoholic", "algebra", "alias", "alibi", "alley", "alloy", "analog", "analyst", "anchor", "angle", "animal", "anthem", "apple", "april", "apron", "arc", "arch", "area", "arm", "army", "array", "arrest", "arrow", "atom", "attack", "ax", "axis", "baby", "back", "bag", "ball", "balloon", "band", "bang", "bar", "barge", "barrel", "base", "basin", "basket", "bat", "batch", "bath", "bather", "battery", "bay", "beach", "beacon", "bead", "beam", "bean", "bear", "beat", "bed", "being", "bend", "berry", "bigamy", "blade", "blank", "blanket", "blast", "blasts", "block", "blood", "blot", "blow", "blower", "boat", "body", "boil", "bolt", "bone", "book", "boot", "bore", "bottle", "bottom", "box", "boy", "brain", "bread", "breast", "brick", "broom", "bubble", "bucket", "builder", "bullet", "bump", "bus", "bush", "butt", "butter", "button", "byte", "cab", "cake", "camp", "cannon", "cap", "captain", "carpet", "cause", "cave", "cell", "cellar", "chair", "chalk", "cheat", "cheek", "cheese", "chief", "child", "chimney", "church", "circle", "citizen", "civilian", "clamp", "claw", "clerk", "clock", "cloud", "club", "clump", "coal", "coat", "coder", "colon", "comb", "comma", "computer", "cone", "console", "control", "copy", "cord", "core", "cork", "corner", "cough", "count", "crack", "cradle", "craft", "cramp", "crash", "crawl", "crust", "cube", "cup", "cure", "curl", "dam", "data", "date", "dealer", "death", "debris", "debt", "decay", "december", "deck", "decoder", "default", "defect", "delight", "dent", "desert", "desire", "desk", "device", "diode", "dirt", "disease", "disgust", "dish", "disk", "ditch", "ditches", "diver", "divider", "dolly", "dope", "dose", "drag", "dress", "drug", "dump", "ear", "edge", "egg", "elbow", "electron", "eleven", "end", "enemy", "error", "exit", "expert", "face", "factory", "fake", "fall", "family", "fan", "farm", "father", "fear", "feather", "feeder", "feet", "field", "fighter", "file", "filter", "finger", "fish", "fist", "flake", "flap", "flash", "flood", "floor", "flush", "foam", "fog", "fold", "food", "foot", "force", "forest", "fork", "form", "fort", "friction", "friday", "friend", "front", "frost", "fruit", "fur", "game", "gang", "gap", "garage", "garden", "gas", "gate", "gear", "gene", "giant", "girl", "gland", "glass", "glaze", "gleam", "glide", "glove", "glow", "glue", "goal", "grade", "graph", "grass", "grease", "grid", "grip", "groan", "gross", "growth", "guard", "guest", "guide", "gum", "gun", "guy", "habit", "hail", "hair", "half", "hall", "hammer", "hand", "handle", "hangar", "harbor", "hardware", "harm", "harpoon", "haste", "hat", "hatch", "hate", "hazard", "head", "heap", "heart", "heat", "heater", "heel", "heels", "height", "hello", "helm", "helmet", "help", "hem", "here", "hertz", "hill", "hint", "hip", "hiss", "hold", "hole", "home", "honk", "hood", "hoof", "hook", "hoop", "horn", "hose", "hotel", "hour", "house", "howl", "hub", "hug", "hull", "hum", "human", "humor", "hump", "hundred", "hunk", "hunt", "hush", "hut", "ice", "icing", "idea", "ideal", "image", "impact", "impulse", "inch", "injury", "ink", "inlet", "inlets", "input", "inquiry", "insanity", "insignia", "intake", "intakes", "integer", "integrity", "intent", "intents", "intercom", "interest", "interface", "interior", "interval", "interview", "invention", "invoice", "iron", "island", "issue", "item", "ivory", "jack", "jail", "jam", "jar", "jaw", "jelly", "jewel", "jig", "job", "joint", "judge", "jug", "july", "jump", "june", "junk", "jury", "justice", "keel", "kettle", "key", "keyboard", "keyword", "kick", "kill", "kiss", "kit", "kite", "knee", "knife", "knob", "knock", "knot", "label", "labor", "lace", "lack", "ladder", "lake", "lamp", "land", "lane", "lantern", "lap", "lapse", "lard", "laser", "lash", "latch", "laugh", "launch", "laundry", "law", "layer", "lead", "leader", "leaf", "leak", "leakage", "leap", "leaper", "leather", "leave", "leg", "legend", "length", "lesson", "letter", "liberty", "library", "lick", "lid", "life", "lift", "light", "limb", "lime", "limit", "limp", "line", "linen", "link", "lint", "lip", "liquor", "list", "liter", "litre", "liver", "load", "loaf", "loan", "lock", "locker", "log", "logic", "look", "loop", "loss", "lot", "love", "lumber", "lump", "lung", "machine", "magnet", "mail", "major", "make", "male", "man", "map", "marble", "march", "margin", "mark", "market", "mask", "mass", "mast", "master", "mat", "match", "mate", "material", "math", "meal", "meat", "medal", "medium", "meet", "member", "memory", "men", "mention", "mentions", "menu", "menus", "mess", "metal", "meter", "method", "mile", "milk", "mill", "mind", "mine", "mint", "mirror", "misfit", "miss", "mission", "mist", "mitt", "mitten", "mix", "mode", "model", "modem", "module", "moment", "monday", "money", "monitor", "moon", "moonlight", "mop", "moss", "motel", "mother", "motion", "motor", "mount", "mouth", "move", "mover", "much", "mud", "mug", "mule", "muscle", "music", "mustard", "nail", "name", "nation", "nature", "nausea", "navy", "neck", "need", "needle", "neglect", "nerve", "nest", "net", "neutron", "nickel", "night", "nod", "noise", "noon", "north", "nose", "notation", "note", "notice", "noun", "nozzle", "null", "number", "numeral", "nurse", "nut", "nylon", "oak", "oar", "object", "ocean", "odor", "odors", "offer", "officer", "ohm", "oil", "operand", "opinion", "option", "orange", "order", "ore", "organ", "orifice", "origin", "ornament", "ounce", "ounces", "outfit", "outing", "outlet", "outline", "output", "oven", "owner", "oxide", "oxygen", "pace", "pack", "pad", "page", "pail", "pain", "paint", "pair", "pan", "pane", "panel", "paper", "parcel", "parity", "park", "part", "partner", "party", "pascal", "pass", "passage", "paste", "pat", "patch", "path", "patient", "patrol", "paw", "paws", "pay", "pea", "peace", "peak", "pear", "peck", "pedal", "peg", "pen", "pencil", "people", "percent", "perfect", "period", "permit", "person", "phase", "photo", "pick", "picture", "piece", "pier", "pile", "pilot", "pin", "pink", "pipe", "pistol", "piston", "pit", "place", "plan", "plane", "plant", "plastic", "plate", "play", "plead", "pleasure", "plot", "plow", "plug", "pocket", "point", "poison", "poke", "pole", "police", "polish", "poll", "pond", "pool", "pop", "port", "portion", "post", "pot", "potato", "pound", "powder", "power", "prefix", "presence", "present", "president", "press", "price", "prime", "print", "prism", "prison", "probe", "problem", "produce", "product", "profile", "profit", "program", "progress", "project", "pronoun", "proof", "prop", "protest", "public", "puddle", "puff", "pull", "pulse", "pump", "punch", "pupil", "purchase", "purge", "purpose", "push", "pyramid", "quart", "quarter", "question", "quiet", "quota", "race", "rack", "radar", "radian", "radio", "rag", "rail", "rain", "rainbow", "raincoat", "raise", "rake", "ram", "ramp", "range", "rank", "rap", "rate", "ratio", "ratios", "rattle", "ray", "reach", "reader", "ream", "rear", "reason", "rebound", "receipt", "recess", "record", "recovery", "recruit", "reel", "refund", "refuse", "region", "regret", "relay", "release", "relief", "remedy", "removal", "repair", "report", "request", "rescue", "reserve", "resident", "residue", "resource", "respect", "rest", "result", "return", "reverse", "review", "reward", "rheostat", "rhythm", "rib", "ribbon", "rice", "riddle", "ride", "rifle", "rig", "rim", "rinse", "river", "road", "roar", "rock", "rocket", "rod", "roll", "roof", "room", "root", "rope", "rose", "round", "route", "rower", "rubber", "rudder", "rug", "rule", "rumble", "run", "runner", "rush", "rust", "sack", "saddle", "safety", "sail", "sailor", "sale", "salt", "salute", "sample", "sand", "sap", "sash", "scab", "scale", "scene", "school", "science", "scope", "score", "scrap", "scratch", "scream", "screen", "screw", "sea", "seal", "seam", "search", "season", "seat", "second", "secret", "sector", "seed", "self", "sense", "sentry", "serial", "series", "servant", "session", "setup", "sewage", "sewer", "sex", "shade", "shadow", "shaft", "shame", "shape", "share", "shave", "sheet", "shelf", "shell", "shelter", "shield", "shift", "ship", "shirt", "shock", "shoe", "shop", "shore", "shoulder", "shout", "shovel", "show", "shower", "side", "sight", "sign", "silence", "silk", "sill", "silver", "sink", "sip", "sir", "siren", "sister", "site", "size", "skew", "skill", "skin", "skip", "skirt", "sky", "slap", "slash", "slate", "slave", "sled", "sleep", "sleeve", "slice", "slide", "slope", "slot", "smash", "smell", "smile", "smoke", "snap", "sneeze", "snow", "soap", "society", "sock", "socket", "sod", "software", "soil", "soldier", "sole", "son", "sonar", "song", "sort", "sound", "soup", "source", "south", "space", "spacer", "spade", "span", "spar", "spare", "spark", "speaker", "spear", "speech", "speed", "speeder", "spike", "spill", "spiral", "splash", "splice", "splint", "spoke", "sponge", "sponsor", "sponsors", "spool", "spoon", "sport", "spot", "spray", "spring", "square", "squeak", "stack", "staff", "stage", "stair", "stake", "stall", "stamp", "stand", "staple", "star", "stare", "start", "state", "status", "steam", "steamer", "steel", "stem", "step", "stern", "stick", "sting", "stitch", "stock", "stomach", "stone", "stool", "stop", "store", "storm", "story", "stove", "strain", "strand", "strap", "straw", "streak", "stream", "street", "stress", "strike", "string", "strip", "stripe", "strobe", "stroke", "strut", "stub", "student", "study", "stuff", "stump", "submarine", "success", "sugar", "suit", "sum", "sun", "sunday", "sunlight", "sunrise", "sunset", "sunshine", "surface", "surge", "surprise", "swab", "swallow", "swamp", "swap", "sweep", "swell", "swim", "swimmer", "swing", "switch", "swivel", "sword", "symbol", "system", "tab", "table", "tablet", "tack", "tactic", "tag", "tail", "tailor", "talk", "tan", "tank", "tap", "tape", "tar", "target", "task", "taste", "tax", "taxi", "team", "tear", "teeth", "teller", "temper", "tender", "tens", "tension", "tent", "tenth", "term", "terrain", "test", "tests", "text", "theory", "thin", "thing", "thirty", "thread", "threat", "throat", "thumb", "thunder", "tick", "tide", "tie", "till", "time", "timer", "timers", "times", "tin", "tip", "tips", "tire", "tissue", "title", "today", "toe", "ton", "tongue", "tool", "tools", "tooth", "top", "topic", "toss", "total", "touch", "tour", "towel", "tower", "town", "trace", "track", "tracker", "tractor", "trade", "traffic", "trail", "trailer", "train", "transfer", "transit", "trap", "trash", "tray", "tree", "trial", "trick", "trigger", "trim", "trip", "troop", "trouble", "truck", "trunk", "truth", "try", "tub", "tug", "tune", "tunnel", "turn", "twig", "twin", "twine", "twirl", "twist", "type", "typist", "umbrella", "uniform", "unit", "update", "upside", "usage", "use", "user", "vacuum", "value", "valve", "vapor", "vector", "vehicle", "vendor", "vent", "verb", "version", "vessel", "veteran", "vice", "victim", "video", "view", "village", "vine", "violet", "visit", "voice", "volt", "vomit", "wafer", "wage", "wagon", "waist", "wait", "wake", "walk", "wall", "want", "war", "wash", "waste", "watch", "water", "watt", "wave", "wax", "way", "web", "weed", "week", "weight", "weld", "west", "wheel", "whip", "whirl", "width", "wiggle", "win", "winch", "wind", "wine", "wing", "winter", "wire", "wish", "woman", "wonder", "wood", "wool", "word", "work", "world", "worm", "worry", "worth", "wrap", "wreck", "wrench", "wrist", "writer", "yard", "yarn", "year", "yell", "yield", "yolk", "zero", "zip", "zone", "can", "may", "coupling", "damping", "ending", "rigging", "ring", "sizing", "sling", "nothing", "cast", "cost", "cut", "drunk", "felt", "ground", "hit", "lent", "offset", "set", "shed", "shot", "slit", "thought", "wound", ""];
}
Symbol 20487 MovieClip [__Packages.GizmoList] Frame 0
class GizmoList
{
var up, mc, gizmos, active, focus, focus_data, top, x, y, w, h, tf_fmt, lp, lh, xp, yp, base_alpha, selected, items, lines, lc, vgizmo;
function GizmoList (_up) {
up = _up;
setup();
}
function setup_base() {
mc = gfx.create_clip(up.mc, null);
mc.style = up.mc.style;
gizmos = new Array();
active = true;
focus = null;
focus_data = null;
top = up.top;
if (top == null) {
top = this;
}
}
function clean_base() {
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].clean();
}
}
mc.removeMovieClip();
mc = null;
}
function update_base() {
mc._x = x;
mc._y = y;
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].mc._visible = true;
gizmos[_local2].update();
} else {
gizmos[_local2].mc._visible = false;
}
}
}
static function dupe_snapshot(snapshot) {
var _local3 = {};
_local3.key = snapshot.key;
_local3.key_on = snapshot.key_on;
_local3.key_off = snapshot.key_off;
_local3.x = snapshot.x;
_local3.y = snapshot.y;
_local3.frame = snapshot.frame;
return(_local3);
}
function input_base(snapshot) {
var _local5 = dupe_snapshot(snapshot);
mc.localToGlobal(_local5);
var _local3 = 0;
for ( ; _local3 < gizmos.length ; _local3++) {
if (gizmos[_local3].active) {
gizmos[_local3].mc.globalToLocal(_local5);
gizmos[_local3].input(_local5);
gizmos[_local3].mc.localToGlobal(_local5);
}
}
return(top.focus);
}
function child(g) {
var _local3 = gizmos.length;
gizmos[_local3] = g;
return(g);
}
function set_area(_x, _y, _w, _h) {
x = _x;
y = _y;
w = _w;
h = _h;
}
function draw_mask(px, py) {
gfx.setscroll(mc, px, py, w, h);
}
function setup() {
setup_base();
tf_fmt = gfx.create_text_format(16, 16777215);
lp = 0;
lh = 20;
xp = 0;
yp = 0;
base_alpha = 50;
selected = -1;
items = new Array();
lines = new Array();
}
function clean() {
clean_base();
}
function update() {
lc = Math.floor(((h + lh) - 1) / lh) + 1;
if (lc != lines.length) {
var _local2 = 0;
for ( ; _local2 < lc ; _local2++) {
var _local3 = child(new GizmoLine(this));
_local3.base_alpha = base_alpha;
_local3.set_area(0, _local2 * lh, w, lh);
_local3.str = "";
_local3.tf_fmt.size = tf_fmt.size;
_local3.tf_fmt.color = tf_fmt.color;
lines[_local2] = _local3;
}
draw_mask(0, 0);
}
var _local6 = (items.length * lh) - h;
if (vgizmo) {
if (_local6 > 0) {
yp = Math.floor(vgizmo.y_knob * _local6);
} else {
yp = 0;
}
}
lp = Math.floor(yp / lh);
var _local2 = lp;
for ( ; _local2 < (lp + lc) ; _local2++) {
var _local4 = lines[_local2 - lp];
if ((_local2 < 0) || (_local2 >= items.length)) {
_local4.str = "";
_local4.item = -1;
_local4.state = "";
} else {
var _local5 = items[_local2];
_local4.str = _local5.str;
_local4.item = _local2;
_local4.state = "";
if (_local2 == selected) {
_local4.state = "selected";
}
}
_local4.set_area(0, (_local2 * lh) - yp, w, lh);
}
update_base();
}
function input(snapshot) {
input_base(snapshot);
return(top.focus);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20488 MovieClip [__Packages.BetaSignals] Frame 0
class BetaSignals
{
var up, score, replay_str, moves, seed, game, score_last, sent_stamp, score_name, base, state, ranksys, start_time, time, total;
function BetaSignals (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup() {
}
function clean() {
}
function set_score_check(new_score, new_replay, new_moves) {
if (new_score > score) {
score = new_score;
if (new_replay) {
replay_str = new_replay;
}
if (new_moves) {
moves = new_moves;
}
}
}
function mochi_score_sent() {
}
function send_start() {
if (_root.sock) {
var _local2 = {gcmd:"signal", stype:"start", sgame:game, sseed:seed};
_root.sock.gmsg(_local2, undefined);
}
if ((_root._url.toLowerCase().indexOf("gamegarage") >= 0) && (_root.game_id && (_root.user_id))) {
var _local3 = new LoadVars();
_local3.game_id = _root.game_id;
_local3.user_id = _root.user_id;
_local3.sendAndLoad("http://www.gamegarage.co.uk/scripts/tracking.php", _local3, "POST");
}
}
function send_final(nam, num) {
if (_root.sock) {
var _local4 = {gcmd:"signal", stype:"final", sgame:game, sseed:seed, snam:nam, snum:num};
_root.sock.gmsg(_local4, undefined);
}
if ((_root._url.toLowerCase().indexOf("gamegarage") >= 0) && (_root.game_id && (_root.user_id))) {
var _local5 = new LoadVars();
_local5.game_id = _root.game_id;
_local5.user_id = _root.user_id;
_local5.score = num;
_local5.alg = ((_root.game_id + _root.user_id) + num) + "a83l9xj";
_local5.sendAndLoad("http://www.gamegarage.co.uk/scripts/score.php", _local5, "POST");
}
if (_root.com_mindjolt_api) {
var _local6 = new LocalConnection();
_local6.send(_root.com_mindjolt_api, "submitScore", num);
}
if (_root.kongregateServices != undefined) {
if (game != "wetdike") {
_root.kongregateScores.setMode(nam);
}
_root.kongregateScores.submit(num);
}
}
function send_spesh(nam, num) {
if (_root.sock) {
var _local4 = {gcmd:"signal", stype:"score", sgame:game, sseed:seed, snam:nam, snum:num};
_root.sock.gmsg(_local4, undefined);
}
if (_root.kongregateServices != undefined) {
if (game != "wetdike") {
_root.kongregateScores.setMode(nam);
}
_root.kongregateScores.submit(num);
}
if (_root.HPScoreService != undefined) {
_root.HPScoreService.postScore(num, nam);
}
if (_root.pepere != undefined) {
var _local6 = new Date();
var _local5 = new LoadVars();
_local5.params = _root.pepere;
_local5.score = score;
_local5.sendAndLoad("record.php", _local5, "POST");
}
}
function send_score() {
var _local2 = new Date();
score_last = score;
sent_stamp = _local2.getTime();
send_spesh(score_name, score);
}
function send_score_check() {
if (score > score_last) {
send_score();
}
}
function send_score_wait_and_check() {
var _local2 = new Date();
if ((_local2.getTime() - sent_stamp) > (1000 * 60)) {
send_score_check();
}
}
function signal(_base, event, t, num) {
base = _base;
switch (base) {
case "diamonds" :
if (up.play.gamecomms) {
break;
}
switch (event) {
case "start" :
state = "start";
var _local6 = new Date();
seed = up.game_seed;
game = "diamonds.puz.3";
score_name = "Puzzle";
ranksys = "add";
if (up.play.gamemode == "endurance") {
game = "diamonds.end.3";
score_name = "Endurance";
ranksys = "max";
}
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.hud.points);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "high";
set_score_check(up.play.hud.points);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "won" :
state = "won";
set_score_check(up.play.hud.points);
moves = 0;
_root.comms.send_score();
send_score();
break;
case "end" :
if (state == "won") {
state = "end";
set_score_check(up.play.hud.points);
moves = 0;
send_final("high", score);
} else {
state = "end";
set_score_check(up.play.hud.points);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
}
break;
case "adventisland" :
switch (event) {
case "start" :
state = "start";
_local6 = new Date();
seed = up.game_seed;
game = "adventisland";
score_name = "Advent";
ranksys = "max";
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.isplay.advent.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "high";
set_score_check(up.isplay.advent.score);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "won" :
state = "won";
set_score_check(up.isplay.advent.score);
moves = 0;
_root.comms.send_score();
send_score();
break;
case "end" :
if (state == "won") {
state = "end";
set_score_check(up.isplay.advent.score);
moves = 0;
send_final("high", score);
} else {
state = "end";
set_score_check(up.isplay.advent.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
}
break;
case "batwsball" :
switch (event) {
case "start" :
state = "start";
_local6 = new Date();
seed = up.game_seed;
game = "batwsball";
score_name = "Endurance";
ranksys = "max";
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
score = Math.floor((up.play.tims + (up.play.timf / 25)) * 100);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "end" :
state = "end";
score = Math.floor((up.play.tims + (up.play.timf / 25)) * 100);
moves = 0;
_root.comms.send_score();
send_score();
if (score <= 400) {
break;
}
send_final("high", score);
}
break;
case "gojirama" :
switch (event) {
case "set" :
game = "gojirama";
score_name = "Endurance";
ranksys = "max";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
_local6 = new Date();
seed = up.game_seed;
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "high";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "romzom" :
switch (event) {
case "start" :
state = "start";
_local6 = new Date();
seed = up.game_seed;
game = "romzom";
score_name = "RomZom";
ranksys = "max";
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "ASUE1" :
switch (event) {
case "set" :
game = "ASUE1";
score_name = "ASUE1";
ranksys = "max";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
seed = up.game_seed;
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "EsTension" :
case "estension" :
switch (event) {
case "set" :
game = "estension";
score_name = "EsTension";
ranksys = "max";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
seed = up.game_seed;
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "update";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "BowWow" :
case "bowwow" :
switch (event) {
case "set" :
game = "bowwow";
score_name = "BowWow";
ranksys = "add";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
seed = up.game_seed;
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
time++;
state = "update";
set_score_check(up.play.score, up.play.get_replay_str(), up.play.get_replay_moves());
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "update";
set_score_check(up.play.score, up.play.get_replay_str(), up.play.get_replay_moves());
_root.comms.send_score_check();
send_score_check();
break;
case "won" :
state = "won";
set_score_check(up.play.score, up.play.get_replay_str(), up.play.get_replay_moves());
_root.comms.send_score();
send_score();
send_final("high", score);
break;
case "end" :
if (state == "won") {
break;
}
state = "end";
set_score_check(up.play.score, up.play.get_replay_str(), up.play.get_replay_moves());
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "WetBasement" :
case "WetBaseMent" :
switch (event) {
case "set" :
if (up.play.gameskill == "hard") {
game = "basement.4";
} else {
game = "basement.2";
}
score_name = "Race";
ranksys = "add";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "high";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "won" :
state = "won";
set_score_check(up.play.score);
moves = 0;
total = up.play.get_rank_score(score);
_root.comms.send_score();
send_score();
if (up.play.gameskill == "hard") {
send_final("TotalHard", total);
} else {
send_final("Total", total);
}
break;
case "end" :
if (state == "won") {
break;
}
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
if (up.play.gameskill == "hard") {
send_final("TotalHard", total);
} else {
send_final("Total", total);
}
}
break;
case "Mute" :
case "mute" :
switch (event) {
case "set" :
game = "mute";
score_name = "Smash";
ranksys = "max";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "high";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "won" :
state = "won";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
break;
case "end" :
if (state != "won") {
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
} else {
send_final("high", score);
}
}
break;
case "WetDike" :
case "wetdike" :
switch (event) {
case "set" :
game = "wetdike";
score_name = "Puzzle";
ranksys = "add";
seed = up.dikeplay.seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time = Math.floor(up.dikeplay.game_time / 1000);
set_score_check(up.dikeplay.table.score, up.dikeplay.table.create_playback_str());
moves = up.dikeplay.table.moves;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "high";
set_score_check(up.dikeplay.table.score, up.dikeplay.table.create_playback_str());
moves = up.dikeplay.table.moves;
_root.comms.send_score_check();
send_score_check();
break;
case "won" :
state = "won";
set_score_check(up.dikeplay.table.score, up.dikeplay.table.create_playback_str());
moves = up.dikeplay.table.moves;
_root.comms.send_score();
send_score();
break;
case "end" :
if (state != "won") {
state = "end";
set_score_check(up.dikeplay.table.score, up.dikeplay.table.create_playback_str());
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
} else {
send_final("high", score);
}
}
break;
case "ASUE2" :
case "asue2" :
switch (event) {
case "set" :
game = "ASUE2";
score_name = "ASUE2";
ranksys = "max";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
seed = up.game_seed;
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "Take1" :
case "take1" :
switch (event) {
case "set" :
game = "take1";
score_name = "take1";
ranksys = "max";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
seed = up.game_seed;
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "PixlCoop" :
case "pixlcoop" :
switch (event) {
case "set" :
game = "pixlcoop";
score_name = "pixlcoop";
ranksys = "max";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
seed = up.game_seed;
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
break;
case "update" :
state = "update";
time++;
break;
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20489 MovieClip [__Packages.OverPixls] Frame 0
class OverPixls
{
var up, mc, maxx, maxy, mcs, bms, bmp_goal;
function OverPixls (_up) {
up = _up;
}
function delegate(f, a, b, c) {
return(com.dynamicflash.utils.Delegate.create(this, f, a, b, c));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup() {
rnd_seed(0);
mc = gfx.create_clip(up.mc, null);
maxx = 80;
maxy = 60;
mcs = [];
bms = [];
var _local2 = 0;
for ( ; _local2 < 2 ; _local2++) {
bms[_local2] = new flash.display.BitmapData(maxx, maxy, true, 0);
}
mcs[0] = gfx.create_clip(mc, null);
mcs[0]._xscale = 1000;
mcs[0]._yscale = 1000;
mcs[1] = gfx.create_clip(mc, null);
mcs[1]._visible = false;
_root.bmc.remember("pixl_txt_goal", bmcache.create_img, {url:"pixl_txt_goal", bmpw:64, bmph:16, bmpt:true, hx:0, hy:0, onload:null});
bmp_goal = _root.bmc.getbmp("pixl_txt_goal");
}
function clean() {
mc.removeMovieClip();
mc = null;
}
function update() {
var _local2 = new flash.geom.Point(0, 0);
var _local3 = new flash.geom.Rectangle(0, 0, maxx, maxy);
var _local4 = new flash.filters.BlurFilter(2, 0, 1);
var _local5 = new flash.filters.GlowFilter(16711680, 0.5, 2, 0, 1, 3, false, false);
var _local6 = (bmidx + 1) % 2;
mc.clear();
bms[_local6].applyFilter(bms[bmidx], _local3, _local2, _local4);
bms[_local6].colorTransform(_local3, new flash.geom.ColorTransform(1.1, 1.1, 1.1, 1.1, 0, 0, 0, 0));
bms[bmidx].merge(bms[_local6], new flash.geom.Rectangle(0, 1, maxx, maxy - 1), new flash.geom.Point(0, 0), 128, 128, 128, 128);
bms[bmidx].merge(bms[bmidx], new flash.geom.Rectangle(0, 1, maxx, maxy - 1), new flash.geom.Point(0, 0), 128, 128, 128, 128);
bms[bmidx].merge(bms[bmidx], new flash.geom.Rectangle(0, 1, maxx, maxy - 1), new flash.geom.Point(0, 0), 128, 128, 128, 128);
bms[bmidx].fillRect(new flash.geom.Rectangle(0, maxy - 1, maxx, 1), 0);
bms[_local6].fillRect(new flash.geom.Rectangle(0, maxy - 1, maxx, 1), 0);
mcs[0].attachBitmap(bms[bmidx], 0, "always", false);
}
function add_dot(c, x, y) {
var _local5 = Math.floor(x / 10);
var _local6 = Math.floor(y / 10);
bms[bmidx].setPixel32(_local5, _local6, c);
}
function add_blip(c, x, y) {
txt_scroll_pos = 0;
var _local5 = Math.floor(x / 10);
var _local6 = Math.floor(y / 10);
bms[bmidx].setPixel32(_local5, _local6, c);
bms[bmidx].setPixel32(_local5 + 1, _local6, c);
bms[bmidx].setPixel32(_local5 - 1, _local6, c);
bms[bmidx].setPixel32(_local5, _local6 + 1, c);
bms[bmidx].setPixel32(_local5, _local6 - 1, c);
}
function add_cross(c, x, y) {
txt_scroll_pos = 0;
var _local5 = Math.floor(x / 10);
var _local6 = Math.floor(y / 10);
bms[bmidx].setPixel32(_local5, _local6, c);
bms[bmidx].setPixel32(_local5 + 1, _local6 + 1, c);
bms[bmidx].setPixel32(_local5 - 1, _local6 - 1, c);
bms[bmidx].setPixel32(_local5 - 1, _local6 + 1, c);
bms[bmidx].setPixel32(_local5 + 1, _local6 - 1, c);
}
function add_line(c, w, x1, y1, x2, y2) {
mcs[1].clear();
mcs[1].lineStyle(w / 10, c & 16777215, (((c >> 24) & 255) * 100) / 255);
mcs[1].moveTo(x1 / 10, y1 / 10);
mcs[1].lineTo(x2 / 10, y2 / 10);
bms[bmidx].draw(mcs[1]);
}
function show_line(c, w, x1, y1, x2, y2) {
mc.lineStyle(w, c & 16777215, (((c >> 24) & 255) * 100) / 255);
mc.moveTo(x1, y1);
mc.lineTo(x2, y2);
}
function add_goal() {
var _local2 = new flash.geom.Point((maxx - 64) / 2, maxy - 18);
var _local3 = new flash.geom.Rectangle(0, 0, 64, 16);
bms[bmidx].copyPixels(bmp_goal, _local3, _local2, null, null, true);
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
var txt_scroll_pos = 0;
var bmidx = 0;
}
Symbol 20490 MovieClip [__Packages.alt.Sprintf] Frame 0
class alt.Sprintf
{
function Sprintf () {
}
static function trace() {
trace(format.apply(null, arguments));
}
static function format(format) {
if (format == null) {
return("");
}
var _local3 = "";
var _local4 = 0;
var _local5 = 0;
while (_local5 < format.length) {
var _local6 = format.indexOf("%", _local5);
if (_local6 == -1) {
_local3 = _local3 + format.substr(_local5);
_local5 = format.length;
} else {
_local3 = _local3 + format.substring(_local5, _local6);
var _local14 = ("** sprintf: invalid format at " + _local4) + " **";
var _local13 = false;
var _local12 = 0;
var _local11 = _local12;
var _local9 = _local11;
var _local10 = -1;
_local5 = _local6 + 1;
_local4++;
var _local8 = arguments[_local4];
while ((_local13 != true) && (_local5 < format.length)) {
var _local7 = format.charAt(_local5++);
switch (_local7) {
case "#" :
if (_local12 == 0) {
_local11 = _local11 | kALT_FORM;
} else {
_local14 = "** sprintf: \"#\" came too late **";
}
break;
case "-" :
if (_local12 == 0) {
_local11 = _local11 | kLEFT_ALIGN;
} else {
_local14 = "** sprintf: \"-\" came too late **";
}
break;
case "+" :
if (_local12 == 0) {
_local11 = _local11 | kSHOW_SIGN;
} else {
_local14 = "** sprintf: \"+\" came too late **";
}
break;
case " " :
if (_local12 == 0) {
_local11 = _local11 | kPAD_POS;
} else {
_local14 = "** sprintf: \" \" came too late **";
}
break;
case "." :
if (_local12 < 2) {
_local12 = 2;
_local10 = 0;
} else {
_local14 = "** sprintf: \".\" came too late **";
}
break;
case "0" :
if (_local12 == 0) {
_local11 = _local11 | kPAD_ZEROES;
break;
}
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
if (_local12 == 3) {
_local14 = "** sprintf: shouldn't have a digit after h,l,L **";
} else if (_local12 < 2) {
_local12 = 1;
_local9 = (_local9 * 10) + Number(_local7);
} else {
_local10 = (_local10 * 10) + Number(_local7);
}
break;
case "d" :
case "i" :
_local13 = true;
_local3 = _local3 + formatD(Number(_local8), _local11, _local9, _local10);
break;
case "o" :
_local13 = true;
_local3 = _local3 + formatO(Number(_local8), _local11, _local9, _local10);
break;
case "x" :
case "X" :
_local13 = true;
_local3 = _local3 + formatX(Number(_local8), _local11, _local9, _local10, _local7 == "X");
break;
case "e" :
case "E" :
_local13 = true;
_local3 = _local3 + formatE(Number(_local8), _local11, _local9, _local10, _local7 == "E");
break;
case "f" :
_local13 = true;
_local3 = _local3 + formatF(Number(_local8), _local11, _local9, _local10);
break;
case "g" :
case "G" :
_local13 = true;
_local3 = _local3 + formatG(Number(_local8), _local11, _local9, _local10, _local7 == "G");
break;
case "c" :
case "C" :
_local10 = 1;
case "s" :
case "S" :
_local13 = true;
_local3 = _local3 + formatS(String(_local8), _local11, _local9, _local10);
break;
case "%" :
_local13 = true;
_local3 = _local3 + "%";
_local4--;
break;
default :
_local14 = ("** sprintf: " + _local7) + " not supported **";
}
}
if (_local13 != true) {
if (DEBUG) {
_local3 = _local3 + _local14;
}
if (TRACE) {
trace(_local14);
}
}
}
}
return(_local3);
}
static function finish(output, value, properties, length, precision, prefix) {
if (prefix == null) {
prefix = "";
}
if (value < 0) {
prefix = "-" + prefix;
} else if (properties & kSHOW_SIGN) {
prefix = "+" + prefix;
} else if (properties & kPAD_POS) {
prefix = " " + prefix;
}
if ((length == 0) && (precision > -1)) {
length = precision;
properties = properties | kPAD_ZEROES;
}
while ((output.length + prefix.length) < length) {
if (properties & kLEFT_ALIGN) {
output = output + " ";
} else if (properties & kPAD_ZEROES) {
output = "0" + output;
} else {
prefix = " " + prefix;
}
}
return(prefix + output);
}
static function formatD(value, properties, length, precision) {
var _local6 = "";
if ((precision != 0) || (value != 0)) {
_local6 = String(Math.floor(Math.abs(value)));
}
while (_local6.length < precision) {
_local6 = "0" + _local6;
}
return(finish(_local6, value, properties, length, precision));
}
static function formatO(value, properties, length, precision) {
var _local6 = "";
var _local7 = "";
if ((precision != 0) && (value != 0)) {
_local6 = value.toString(8);
}
if (properties & kALT_FORM) {
_local7 = "0";
}
while (_local6.length < precision) {
_local6 = "0" + _local6;
}
return(finish(_local6, value, properties, length, precision, _local7));
}
static function formatX(value, properties, length, precision, upper) {
var _local7 = "";
var _local8 = "";
if ((precision != 0) && (value != 0)) {
_local7 = value.toString(16);
}
if (properties & kALT_FORM) {
_local8 = "0x";
}
while (_local7.length < precision) {
_local7 = "0" + _local7;
}
if (upper) {
_local8 = _local8.toUpperCase();
_local7 = _local7.toUpperCase();
} else {
_local7 = _local7.toLowerCase();
}
return(finish(_local7, value, properties, length, precision, _local8));
}
static function formatE(value, properties, length, precision, upper) {
var _local7 = "";
var _local8 = 0;
if (Math.abs(value) > 1) {
while (Math.abs(value) > 10) {
value = value / 10;
_local8++;
}
} else {
while (Math.abs(value) < 1) {
value = value * 10;
_local8--;
}
}
var _local9 = format("%c%+.2d", (upper ? "E" : "e"), _local8);
if (properties & kLEFT_ALIGN) {
_local7 = formatF(value, properties, 1, precision) + _local9;
while (_local7.length < length) {
_local7 = _local7 + " ";
}
} else {
_local7 = formatF(value, properties, Math.max(length - _local9.length, 0), precision) + _local9;
}
return(_local7);
}
static function formatF(value, properties, length, precision) {
var _local6 = "";
var _local7 = "";
var _local8 = "";
if (precision == -1) {
precision = 6;
}
var _local9 = new String(value.toString());
if (_local9.indexOf(".") == -1) {
_local7 = Math.abs(Number(_local9)).toString();
_local8 = "0";
} else {
_local7 = Math.abs(Number(_local9.substring(0, _local9.indexOf(".")))).toString();
_local8 = _local9.substr(_local9.indexOf(".") + 1);
}
if (Number(_local8) == 0) {
_local8 = new String();
while (_local8.length < precision) {
_local8 = _local8 + "0";
}
} else {
if (_local8.length > precision) {
var _local10 = Math.round(Math.pow(10, precision) * Number("0." + _local8));
if ((String(_local10).length > precision) && (_local10 != 0)) {
_local8 = "0";
_local7 = ((Math.abs(Number(_local7)) + 1) * ((Number(_local7) >= 0) ? 1 : -1)).toString();
} else {
_local8 = new String(_local10.toString());
}
}
if (_local8.length < precision) {
_local8 = new String(_local8);
while (_local8.length < precision) {
_local8 = _local8 + "0";
}
}
}
if (precision == 0) {
_local6 = _local7;
if (properties & kALT_FORM) {
_local6 = _local6 + ".";
}
} else {
_local6 = (_local7 + ".") + _local8;
}
return(finish(_local6, value, properties, length, precision, ""));
}
static function formatG(value, properties, length, precision, upper) {
var _local7 = formatE(value, properties, 1, precision, upper);
var _local8 = formatF(value, properties, 1, precision);
if (_local7.length < _local8.length) {
return(formatE(value, properties, length, precision, upper));
}
return(formatF(value, properties, length, precision));
}
static function formatS(value, properties, length, precision) {
var _local6 = new String(value);
if ((precision > 0) && (precision < _local6.length)) {
_local6 = _local6.substring(0, precision);
}
properties = properties & ((((kPAD_ZEROES | kSHOW_SIGN) | kPAD_POS) | kALT_FORM) ^ -1);
return(finish(_local6, value, properties, length, precision, ""));
}
static var kPAD_ZEROES = 1;
static var kLEFT_ALIGN = 2;
static var kSHOW_SIGN = 4;
static var kPAD_POS = 8;
static var kALT_FORM = 16;
static var kLONG_VALUE = 32;
static var kUSE_SEPARATOR = 64;
static var DEBUG = false;
static var TRACE = false;
}
Symbol 20491 MovieClip [__Packages.Vbounds] Frame 0
class Vbounds
{
var up, mc, x2, y2, x2_min, y2_min, x2_max, y2_max, scale, x3, y3, z3, x3_min, y3_min, z3_min, x3_max, y3_max, z3_max, mcs, over, back, xml, focus;
function Vbounds (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup() {
mc = gfx.create_clip(up.mc, null);
x2 = 10;
y2 = 190;
x2_min = 0;
y2_min = -300;
x2_max = 920;
y2_max = 200;
scale = 100;
x3 = 0;
y3 = 0;
z3 = 0;
x3_min = 0;
y3_min = -40 * 10;
z3_min = 0;
x3_max = 40 * 10;
y3_max = 0;
z3_max = 40 * 10;
mc._x = 0;
mc._y = 0;
mcs = [];
over = null;
back = null;
}
function clean() {
mc.removeMovieClip();
}
function mirror_bounce(vobj) {
if (vobj.px < x3_min) {
vobj.px = x3_min - (vobj.px - x3_min);
if (vobj.tx < x3_min) {
vobj.tx = x3_min - (vobj.tx - x3_min);
}
}
if (vobj.px > x3_max) {
vobj.px = x3_max - (vobj.px - x3_max);
if (vobj.tx > x3_max) {
vobj.tx = x3_max - (vobj.tx - x3_max);
}
}
if (vobj.pz < z3_min) {
vobj.pz = z3_min - (vobj.pz - z3_min);
if (vobj.tz < z3_min) {
vobj.tz = z3_min - (vobj.tz - z3_min);
}
}
if (vobj.pz > z3_max) {
vobj.pz = z3_max - (vobj.pz - z3_max);
if (vobj.tz > z3_max) {
vobj.tz = z3_max - (vobj.tz - z3_max);
}
}
}
function insert_mc(m, clickable) {
if (clickable) {
m.onRollOver = delegate(mcs_over, m);
m.onRollOut = delegate(mcs_out, m);
m.onReleaseOutside = delegate(mcs_out, m);
m.onRelease = delegate(mcs_press, m);
}
mcs.push(m);
}
function remove_mc(m) {
var _local3 = 0;
for ( ; _local3 < mcs.length ; _local3++) {
if (m == mcs[_local3]) {
mcs.splice(_local3, 1);
return(undefined);
}
}
}
function mcs_over(m) {
over = m;
}
function mcs_out(m) {
over = null;
}
function mcs_press(m) {
}
function loadback(url) {
xml = new XML();
xml.url = url;
xml.onLoad = delegate(loaded_xml, xml);
xmlcache.load(xml);
}
function loadbackimg(url) {
if (back) {
remove_mc(back);
back.removeMovieClip();
back = null;
}
var _local4 = _root.urlmap.map[url];
if (_local4) {
var _local3 = gfx.add_clip(mc, _local4, null);
} else {
var _local3 = gfx.create_clip(mc, null);
_local3.mc = gfx.create_clip(_local3, null);
_local3.mc.loadMovie(url);
}
_local3.cacheAsBitmap = true;
_local3.cc = {dx:0, dy:0, dz:65535, sx:0, sy:0, sz:0};
insert_mc(_local3, false);
back = _local3;
}
function loaded_xml(suc) {
var _local3 = suc;
if (_local3 != "swf") {
_local3 = (_local3 ? "url" : "failed");
}
if (suc) {
parse_xml(xml, 0);
}
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
switch (e.nodeName) {
case "xy" :
x2 = Math.floor(e.attributes.x_org);
y2 = Math.floor(e.attributes.y_org);
x2_min = Math.floor(e.attributes.x_min);
y2_min = Math.floor(e.attributes.y_min);
x2_max = Math.floor(e.attributes.x_max);
y2_max = Math.floor(e.attributes.y_max);
if (e.attributes.scale) {
scale = Math.floor(e.attributes.scale);
}
break;
case "entrance" :
_local6 = true;
flavour = "entrance";
break;
case "xyz" :
if (flavour == "entrance") {
} else {
x3 = Math.floor(e.attributes.x_org);
y3 = Math.floor(e.attributes.y_org);
z3 = Math.floor(e.attributes.z_org);
x3_min = Math.floor(e.attributes.x_min);
y3_min = Math.floor(e.attributes.y_min);
z3_min = Math.floor(e.attributes.z_min);
x3_max = Math.floor(e.attributes.x_max);
y3_max = Math.floor(e.attributes.y_max);
z3_max = Math.floor(e.attributes.z_max);
}
break;
case "img" :
loadbackimg(e.attributes.src);
break;
default :
_local6 = true;
}
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
}
}
}
function sort_full() {
var _local2 = 0;
for ( ; mcs[_local2] ; _local2++) {
sort_inc();
sort_dec();
}
}
function sort_inc() {
var _local2 = 1;
for ( ; mcs[_local2] ; _local2++) {
var _local4 = mcs[_local2 - 1].cc;
var _local5 = mcs[_local2].cc;
for ( ; !_local4 ; _local2++) {
mcs.splice(_local2 - 1, 1);
_local2 = _local2 - 1;
}
for ( ; !_local5 ; _local2++) {
mcs.splice(_local2, 1);
_local2 = _local2 - 1;
}
if (((_local5.dz + _local5.sz) + _local5.dy) < (_local4.dz + _local4.dy)) {
var _local3 = mcs[_local2 - 1];
mcs[_local2 - 1] = mcs[_local2];
mcs[_local2] = _local3;
} else if (((_local4.dz + _local4.sz) + _local4.dy) < (_local5.dz + _local5.dy)) {
} else if ((_local5.dx + _local5.sx) > (_local4.dx + _local4.sx)) {
var _local3 = mcs[_local2 - 1];
mcs[_local2 - 1] = mcs[_local2];
mcs[_local2] = _local3;
}
if (mcs[_local2].getDepth() > mcs[_local2 - 1].getDepth()) {
mcs[_local2].swapDepths(mcs[_local2 - 1]);
}
}
}
function sort_dec() {
var _local2 = mcs.length;
for ( ; _local2 > 0 ; _local2--) {
var _local4 = mcs[_local2 - 1].cc;
var _local5 = mcs[_local2].cc;
for ( ; !_local4 ; _local2--) {
mcs.splice(_local2 - 1, 1);
}
for ( ; !_local5 ; _local2--) {
mcs.splice(_local2, 1);
}
if (((_local5.dz + _local5.sz) + _local5.dy) < (_local4.dz + _local4.dy)) {
var _local3 = mcs[_local2 - 1];
mcs[_local2 - 1] = mcs[_local2];
mcs[_local2] = _local3;
} else if (((_local4.dz + _local4.sz) + _local4.dy) < (_local5.dz + _local5.dy)) {
} else if ((_local5.dx + _local5.sx) > (_local4.dx + _local4.sx)) {
var _local3 = mcs[_local2 - 1];
mcs[_local2 - 1] = mcs[_local2];
mcs[_local2] = _local3;
}
if (mcs[_local2].getDepth() > mcs[_local2 - 1].getDepth()) {
mcs[_local2].swapDepths(mcs[_local2 - 1]);
}
}
}
function update() {
tog = (tog + 1) & 1;
if (tog == 0) {
sort_inc();
} else {
sort_dec();
}
if (focus) {
var _local4 = scale / 100;
var _local2 = ((-focus._x) * _local4) + 400;
var _local3 = ((-focus._y) * _local4) + 300;
if (_local2 > ((-x2_min) * _local4)) {
_local2 = (-x2_min) * _local4;
}
if (_local3 > ((-y2_min) * _local4)) {
_local3 = (-y2_min) * _local4;
}
if (_local2 < (((-x2_max) * _local4) + 800)) {
_local2 = ((-x2_max) * _local4) + 800;
}
if (_local3 < (((-y2_max) * _local4) + 600)) {
_local3 = ((-y2_max) * _local4) + 600;
}
mc._x = mc._x + ((_local2 - mc._x) * 0.125);
mc._y = mc._y + ((_local3 - mc._y) * 0.125);
mc._xscale = scale;
mc._yscale = scale;
if (((x2_max * _local4) - (x2_min * _local4)) < 800) {
mc._x = ((-x2_min) * _local4) + ((800 - ((x2_max * _local4) - (x2_min * _local4))) / 2);
}
if (((y2_max * _local4) - (y2_min * _local4)) < 600) {
mc._y = ((-y2_min) * _local4) + ((600 - ((y2_max * _local4) - (y2_min * _local4))) / 2);
}
}
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
var tog = 0;
}
Symbol 20492 MovieClip [__Packages.GizmoLine] Frame 0
class GizmoLine
{
var up, str, str_disp, state, state_disp, xp, yp, xs, ys, base_alpha, mc, gizmos, active, focus, focus_data, top, x, y, w, h, tf, tf_fmt, onClick;
function GizmoLine (_up) {
up = _up;
setup();
str = "";
str_disp = "";
state = "";
state_disp = "";
xp = 0;
yp = 0;
xs = 0;
ys = 0;
base_alpha = 100;
}
function setup_base() {
mc = gfx.create_clip(up.mc, null);
mc.style = up.mc.style;
gizmos = new Array();
active = true;
focus = null;
focus_data = null;
top = up.top;
if (top == null) {
top = this;
}
}
function clean_base() {
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].clean();
}
}
mc.removeMovieClip();
mc = null;
}
function update_base() {
mc._x = x;
mc._y = y;
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].mc._visible = true;
gizmos[_local2].update();
} else {
gizmos[_local2].mc._visible = false;
}
}
}
static function dupe_snapshot(snapshot) {
var _local3 = {};
_local3.key = snapshot.key;
_local3.key_on = snapshot.key_on;
_local3.key_off = snapshot.key_off;
_local3.x = snapshot.x;
_local3.y = snapshot.y;
_local3.frame = snapshot.frame;
return(_local3);
}
function input_base(snapshot) {
var _local5 = dupe_snapshot(snapshot);
mc.localToGlobal(_local5);
var _local3 = 0;
for ( ; _local3 < gizmos.length ; _local3++) {
if (gizmos[_local3].active) {
gizmos[_local3].mc.globalToLocal(_local5);
gizmos[_local3].input(_local5);
gizmos[_local3].mc.localToGlobal(_local5);
}
}
return(top.focus);
}
function child(g) {
var _local3 = gizmos.length;
gizmos[_local3] = g;
return(g);
}
function set_area(_x, _y, _w, _h) {
x = _x;
y = _y;
w = _w;
h = _h;
}
function draw_mask(px, py) {
gfx.setscroll(mc, px, py, w, h);
}
function setup() {
setup_base();
tf = gfx.create_text_html(mc, null, 0, 0, 0, 0);
tf.multiline = false;
tf_fmt = gfx.create_text_format(16, 16777215);
tf.setNewTextFormat(tf_fmt);
}
function clean() {
clean_base();
}
function update() {
if ((str != str_disp) || (state != state_disp)) {
if (state == "selected") {
tf_fmt.bold = true;
} else {
tf_fmt.bold = false;
}
var _local2 = tf_fmt.getTextExtent(str);
xs = _local2.width;
ys = _local2.height;
tf._width = xs + 100;
tf._height = ys + 8;
tf.setNewTextFormat(tf_fmt);
tf.text = str;
str_disp = str;
state_disp = state;
}
if ((tf.textWidth + 4) > w) {
tf._x = xp - (top.spine * ((tf.textWidth + 4) - w));
} else {
tf._x = xp;
}
tf._y = yp;
mc._alpha = mc._alpha - 5;
if (mc._alpha < base_alpha) {
mc._alpha = base_alpha;
}
update_base();
}
function input(snapshot) {
if ((top.focus == null) && ((snapshot.x > 0) && ((snapshot.y > 0) && ((snapshot.x < w) && (snapshot.y < h))))) {
mc._alpha = 100;
up.hover = this;
if (snapshot.key_on & 1) {
if (onClick) {
onClick(this);
} else if (up.onClick) {
up.onClick(this);
}
}
}
input_base(snapshot);
return(top.focus);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20493 MovieClip [__Packages.Vobj] Frame 0
class Vobj
{
var up, nodes, mc, ox, oy, oz, sx, sy, sz, px, py, pz, dx, dy, dz, tx, ty, tz, rx, ry, rz, loading, xml, anim, type, brain, vcobj, focus;
function Vobj (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(url, xmlopts) {
nodes = [];
mc = gfx.create_clip(up.mc, null);
mc.cc = this;
mc._z = 0;
up.insert_mc(mc, true);
ox = 0;
oy = 0;
oz = 0;
sx = 0;
sy = 0;
sz = 0;
px = 0;
py = 0;
pz = 0;
dx = 0;
dy = 0;
dz = 0;
tx = 0;
ty = 0;
tz = 0;
rx = 0;
ry = 0;
rz = 0;
if (xmlopts) {
parse_xml(xmlopts, 0);
} else if (url) {
load_xml(url);
}
}
function clean() {
mc.removeMovieClip();
}
function set_title(str) {
if (!mc.title) {
var _local3 = gfx.create_clip(mc, null, 0, -90);
_local3.tf = gfx.create_text_html(_local3, null, 0, 0, 200, 25);
_local3._visible = false;
mc.title = _local3;
}
var _local3 = mc.title;
gfx.set_text_html(_local3.tf, 16, 16777215, ("<b>" + str) + "</b>");
_local3.w = _local3.tf.textWidth;
_local3.h = _local3.tf.textHeight;
_local3.tf._x = (-_local3.w) / 2;
_local3.tf._y = (-_local3.h) / 2;
gfx.clear(_local3);
_local3.style.fill = -16777216;
gfx.draw_rounded_rectangle(_local3, 10, 10, 0, (((-_local3.w) / 2) - 10) - 2, (((-_local3.h) / 2) - 10) - 1, ((_local3.w + 20) + 6) + 4, (_local3.h + 20) + 6);
}
function load_xml(url) {
loading = "Loading XML";
xml = new XML();
xml.url = url;
xml.onLoad = delegate(loaded_xml, xml);
xmlcache.load(xml);
}
function loaded_xml(suc) {
var _local3 = suc;
if (_local3 != "swf") {
_local3 = (_local3 ? "url" : "failed");
}
if (suc) {
parse_xml(xml, 0);
} else {
dbg.print("failed to load " + xml.url);
}
loading = null;
}
function parse_xml(e, d, flavour, id) {
var _local7 = false;
if (e.nodeType == 1) {
switch (e.nodeName) {
case "vobj" :
if (e.attributes.src) {
load_xml(e.attributes.src);
}
_local7 = true;
flavour = "vobj";
break;
case "xyz" :
if (flavour == "node") {
var _local8 = e.attributes.x_pos;
if (_local8) {
nodes[id].x = Math.floor(_local8);
}
_local8 = e.attributes.y_pos;
if (_local8) {
nodes[id].y = Math.floor(_local8);
}
_local8 = e.attributes.z_pos;
if (_local8) {
nodes[id].z = Math.floor(_local8);
}
} else {
var _local8 = e.attributes.x_pos;
if (_local8) {
px = Math.floor(_local8);
}
_local8 = e.attributes.y_pos;
if (_local8) {
py = Math.floor(_local8);
}
_local8 = e.attributes.z_pos;
if (_local8) {
pz = Math.floor(_local8);
}
_local8 = e.attributes.x_siz;
if (_local8) {
sx = Math.floor(_local8);
}
_local8 = e.attributes.y_siz;
if (_local8) {
sy = Math.floor(_local8);
}
_local8 = e.attributes.z_siz;
if (_local8) {
sz = Math.floor(_local8);
}
_local8 = e.attributes.x_off;
if (_local8) {
ox = Math.floor(_local8);
}
_local8 = e.attributes.y_off;
if (_local8) {
oy = Math.floor(_local8);
}
_local8 = e.attributes.z_off;
if (_local8) {
oz = Math.floor(_local8);
}
}
break;
case "anim" :
anim = new Vanim(this);
anim.setup(e);
break;
case "node" :
_local7 = true;
flavour = "node";
id = e.attributes.id;
nodes[id] = [];
break;
case "brain" :
type = e.attributes.type;
switch (e.attributes.type) {
case "urinal" :
brain = new Vbrain_urinal(this);
break;
case "sink" :
brain = new Vbrain_sink(this);
break;
case "toilet" :
brain = new Vbrain_toilet(this);
break;
case "ball" :
brain = new Vbrain_ball(this);
break;
case "pot" :
brain = new Vbrain_pot(this);
break;
case "hook" :
brain = new Vbrain_hook(this);
break;
case "comic" :
brain = new Vbrain_comic(this);
break;
case "door" :
brain = new Vbrain_door(this);
break;
case "candle" :
brain = new Vbrain_candle(this);
break;
default :
brain = new Vbrain(this);
}
brain.setup(e);
break;
default :
_local7 = true;
}
if (_local7) {
var _local6 = e.firstChild;
for ( ; _local6 ; _local6 = _local6.nextSibling) {
parse_xml(_local6, d + 1, flavour, id);
}
}
}
}
function update_vcobj(props) {
brain.update_vcobj(props);
if (!props) {
props = vcobj.props;
}
if (props.focus) {
focus = vcobj.up.vcobjs[props.focus].vobj;
}
}
function update() {
dx = px + ox;
dy = py + oy;
dz = pz + oz;
mc._x = (up.x2 + dx) + (dz / 4);
mc._y = (up.y2 + dy) - (dz / 4);
mc._z = dz;
brain.update();
anim.update();
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20494 MovieClip [__Packages.Scalar] Frame 0
class Scalar
{
var fake, chatshrink, ox, oy, mc, tf_stats, scale, t_old, t_new, t_ms, t_samples, dx, dy, sx, sy, rot, t_fps;
function Scalar (_ox, _oy, _fake, _chatshrink) {
fake = _fake;
chatshrink = _chatshrink;
ox = _ox;
oy = _oy;
mc = gfx.create_clip(_root, null);
mc.onEnterFrame = delegate(update);
tf_stats = gfx.create_text_html(mc, null, 0, 0, ox, 32);
gfx.dropshadow(tf_stats, 2, 45, 0, 1, 4, 4, 2, 3);
scale = 1;
if (scale > _root.maxs) {
scale = _root.maxs;
}
update();
Key.addListener(this);
t_old = getTimer();
t_new = t_old;
t_ms = 0;
t_samples = 0;
if (fake) {
dx = 0;
dy = 0;
sx = ox;
sy = oy;
rot = 0;
ox = 800;
oy = 600;
return;
}
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function update() {
if (fake) {
return(undefined);
}
Stage.scaleMode = "noScale";
Stage.align = "TL";
rot = 0;
var _local2 = Stage.width / ox;
if (_root.maxw) {
if ((_local2 * ox) > _root.maxw) {
_local2 = _root.maxw / ox;
}
}
if (_root.maxh) {
if ((_local2 * oy) > _root.maxh) {
_local2 = _root.maxh / oy;
}
}
if ((_local2 * oy) > Stage.height) {
_local2 = Stage.height / oy;
}
_local2 = _local2 * scale;
dx = Math.floor((Stage.width - (_local2 * ox)) / 2);
dy = Math.floor((Stage.height - (_local2 * oy)) / 2);
sx = _local2 * 100;
sy = _local2 * 100;
t_samples++;
if (t_samples >= 10) {
t_old = t_new;
t_new = getTimer();
t_ms = (t_new - t_old) / t_samples;
t_fps = Math.floor(1000 / t_ms);
t_samples = 0;
if (scale < 1) {
var _local3 = (((" " + Math.floor(t_ms)) + "ms : ") + Math.floor(1000 / t_ms)) + "fps";
gfx.set_text_html(tf_stats, 13, 16777215, _local3);
}
}
if (scale < 1) {
tf_stats._visible = true;
} else {
tf_stats._visible = false;
}
}
function apply(tomc, half) {
if (_root.scale == "no") {
tomc._rotation = rot;
tomc._x = 0;
tomc._y = 0;
tomc._xscale = 100;
tomc._yscale = 100;
return(undefined);
}
if (half) {
tomc._rotation = rot;
tomc._x = Math.floor(dx / 2);
tomc._y = Math.floor((dy / 2) + (Stage.height / 4));
tomc._xscale = Math.floor(sx / 2);
tomc._yscale = Math.floor(sy / 2);
} else {
tomc._rotation = rot;
tomc._x = dx;
tomc._y = dy;
tomc._xscale = sx;
tomc._yscale = sy;
}
}
function onKeyDown() {
}
function onKeyUp() {
var _local3 = Key.getCode();
var _local2 = String.fromCharCode(Key.getAscii());
if (Selection.getCaretIndex() == -1) {
if ((_local2 == "+") || (_local2 == "=")) {
scale = scale * 1.1;
if (scale > 1) {
scale = 1;
}
} else if ((_local2 == "_") || (_local2 == "-")) {
scale = scale / 1.1;
if (scale < 0.1) {
scale = 0.1;
}
} else if (_local3 == 27) {
if (scale < 1) {
scale = 1;
} else {
scale = 0.1;
}
}
}
if (scale > _root.maxs) {
scale = _root.maxs;
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20495 MovieClip [__Packages.Vpoker] Frame 0
class Vpoker
{
var up, mc, mcmenu, over, state, xs, ys, zs, menu, x3, y3, z3, items, selected;
function Vpoker (_up) {
up = _up;
}
function setup() {
mc = gfx.create_clip(up.mc, 65536);
mcmenu = gfx.create_clip(up.up.mc, 65537);
draw_floor(40, 0, 40);
over = null;
state = null;
Mouse.addListener(this);
}
function draw_floor(_xs, _ys, _zs) {
xs = _xs;
ys = _ys;
zs = _zs;
var _local5 = zs / 4;
gfx.clear(mc);
mc.lineStyle(undefined, undefined);
mc.moveTo(0, 0);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.lineTo(0 + xs, 0);
mc.lineTo((0 + xs) + _local5, -_local5);
mc.lineTo(0 + _local5, -_local5);
mc.lineTo(0, 0);
mc.endFill();
mc._alpha = 50;
}
function clean() {
mc.removeMovieClip();
Mouse.removeListener(this);
}
function onMouseDown() {
if (up.up.mc._xmouse >= 800) {
return(undefined);
}
if (over) {
if (state != "menuclick") {
menu = over.getmenu(this);
state = "menuwait";
menuwait = 5;
}
}
}
function onMouseUp() {
if (up.up.mc._xmouse >= 800) {
return(undefined);
}
if ((state == "menu") || (state == "menuclick")) {
clickmenu();
} else if (state == "menuwait") {
if (menu.menuclick) {
mcmenu._x = up.up.mc._xmouse;
mcmenu._y = up.up.mc._ymouse;
state = "menu";
menu.menuclick(this, menu.items[0]);
} else {
state = null;
}
} else {
state = "moved";
}
}
function update() {
var _local5 = _root.replay.key;
var _local7 = up.focus.cc;
var _local2 = 0;
var _local3 = 0;
var _local4 = 0;
if ((_local2 == 0) && (_local4 == 0)) {
_local2 = up.mc._xmouse;
_local3 = up.mc._ymouse;
_local2 = _local2 - up.x2;
_local3 = _local3 - up.y2;
_local2 = _local2 + _local3;
_local4 = (-_local3) * 4;
_local3 = 0;
_local2 = _local2 - 20;
_local4 = _local4 - 20;
var _local6 = false;
} else {
_local2 = _local2 + (_local7.dx - 20);
_local4 = _local4 + (_local7.dz - 20);
_local3 = _local7.dy;
var _local6 = true;
}
if (_local2 < up.x3_min) {
_local2 = up.x3_min;
}
if (_local3 < up.y3_min) {
_local3 = up.y3_min;
}
if (_local4 < up.z3_min) {
_local4 = up.z3_min;
}
if (_local2 > (up.x3_max - 40)) {
_local2 = up.x3_max - 40;
}
if (_local3 > up.y3_max) {
_local3 = up.y3_max;
}
if (_local4 > (up.z3_max - 40)) {
_local4 = up.z3_max - 40;
}
_local2 = Math.floor(_local2 / 10) * 10;
_local3 = Math.floor(_local3 / 10) * 10;
_local4 = Math.floor(_local4 / 10) * 10;
x3 = _local2;
y3 = _local3;
z3 = _local4;
mc._x = (up.x2 + x3) + (_local4 / 4);
mc._y = (up.y2 + y3) - (_local4 / 4);
switch (state) {
case "move" :
case "moved" :
_local7.vcobj.send_msg_prop("xyz", ((((x3 + 20) + ":") + y3) + ":") + (z3 + 20));
state = null;
break;
case "menuwait" :
menuwait--;
if (menuwait <= 0) {
showmenu();
}
break;
case "menu" :
updatemenu();
break;
case "menuclick" :
updatemenu();
break;
default :
if (over) {
if (up.over != over) {
over.filters = null;
over.title._visible = false;
}
}
if (up.over) {
over = up.over;
if (over == up.focus) {
gfx.glow(over, 8978312, 0.8, 16, 16, 1, 3, false, false);
} else {
gfx.glow(over, 16777215, 0.8, 16, 16, 1, 3, false, false);
}
mc._visible = false;
over.title._visible = true;
} else {
over = null;
mc._visible = true;
}
}
}
function showmenu(_menu) {
over.title._visible = false;
if (_menu) {
menu = _menu;
}
if ((state == "menu") || (state == "menuclick")) {
var _local3 = 0;
for ( ; _local3 < items.length ; _local3++) {
items[_local3].removeMovieClip();
}
state = "menuclick";
} else {
state = "menu";
mcmenu._x = up.up.mc._xmouse;
mcmenu._y = up.up.mc._ymouse;
}
items = [];
var _local3 = 0;
for ( ; _local3 < menu.items.length ; _local3++) {
add_item(menu.items[_local3]);
}
mcmenu.top = gfx.create_clip(mcmenu, 65535);
var _local4 = 360 / items.length;
var _local5 = 0;
_local3 = 0;
for ( ; _local3 < items.length ; _local3++) {
var _local6 = items[_local3];
_local6.r = (_local5 * Math.PI) / 180;
_local6.rmin = _local6.r - ((_local4 / 2) * (Math.PI / 180));
_local6.rmax = _local6.r + ((_local4 / 2) * (Math.PI / 180));
_local6.rx = Math.sin(_local6.r);
_local6.ry = -Math.cos(_local6.r);
_local5 = _local5 + _local4;
}
updatemenu();
}
function updatemenu() {
var _local3 = Math.atan2(mcmenu._xmouse, -mcmenu._ymouse);
if (_local3 < 0) {
_local3 = _local3 + (Math.PI * 2);
}
var _local5 = null;
var _local2 = 0;
for ( ; _local2 < items.length ; _local2++) {
var _local4 = items[_local2];
if (_local5 == null) {
if (_local3 < _local4.rmax) {
_local5 = _local4;
}
}
_local4._x = _local4._x + (((_local4.rx * 60) - _local4._x) * 0.5);
_local4._y = _local4._y + (((_local4.ry * 60) - _local4._y) * 0.5);
_local4._xscale = _local4._xscale + ((60 - _local4._xscale) * 0.5);
_local4._yscale = _local4._yscale + ((60 - _local4._yscale) * 0.5);
_local4._alpha = _local4._alpha + ((60 - _local4._alpha) * 0.5);
}
if (_local5 == null) {
_local5 = items[0];
}
_local5._x = 0;
_local5._y = 0;
_local5._xscale = 100;
_local5._yscale = 100;
_local5._alpha = 100;
_local5.swapDepths(65535);
selected = _local5;
}
function clickmenu() {
if (menu.menuclick) {
menu.menuclick(this, selected.it);
} else {
hidemenu();
}
}
function hidemenu() {
var _local2 = 0;
for ( ; _local2 < items.length ; _local2++) {
items[_local2].removeMovieClip();
}
items = [];
state = null;
selected = null;
}
function add_item(it) {
var _local3 = gfx.create_clip(mcmenu, null);
_local3.tf = gfx.create_text_html(_local3, null, 0, 0, 200, 100);
gfx.set_text_html(_local3.tf, 24, 16777215, it.txt);
_local3.w = _local3.tf.textWidth;
_local3.h = _local3.tf.textHeight;
_local3.tf._x = (-_local3.w) / 2;
_local3.tf._y = (-_local3.h) / 2;
gfx.clear(_local3);
_local3.style.fill = -16777216;
gfx.draw_rounded_rectangle(_local3, 10, 10, 0, (((-_local3.w) / 2) - 10) - 2, (((-_local3.h) / 2) - 10) - 2, ((_local3.w + 20) + 6) + 4, (_local3.h + 20) + 6);
_local3.it = it;
items.push(_local3);
}
//ASSetPropFlags(_local1, null, 1);
var menuwait = 0;
}
Symbol 20496 MovieClip [__Packages.dbg] Frame 0
class dbg
{
function dbg () {
}
static function print(s) {
var _local3 = ("" + s).split("\"");
s = _local3.join("'");
getURL (("javascript:if(console){console.log(\"" + s) + "\");}", "_self");
}
static function dump(a) {
for (var _local3 in a) {
print((("" + _local3) + " = ") + a[_local3]);
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20497 MovieClip [__Packages.WetPlayMP3] Frame 0
class WetPlayMP3
{
var up, mc, sfxs, sfxidx, mc_back, mc_back_image, mc_back_colour, w, h, row_size, x, y, foreground, xspf, mcs1, sfx, mcs2, sfx_next, sfx_master, sfx_on, sfx_load_stall_counter, image_url, mc_image, gizmo, gizmo_backward, gizmo_play, gizmo_pause, gizmo_forward, gizmo_position, gizmo_position_knob, gizmo_volume, gizmo_volume_knob, gizmo_scroll, gizmo_scroll_knob, gizmo_title, gizmo_list1, gizmo_list2, xspfs, force, auto, so, shuffle, loop, got_creator, track_id, xspf_id, state, options, tracks, view, menu_mp3_name, menu_mp3_link, tracks1, tracks2, mc_image3, mc_image2, tracks_url;
function WetPlayMP3 (_up) {
rnd_seed(new Date().getTime());
up = _up;
mc = gfx.create_clip(up.mc, null);
setmenu(mc);
sfxs = new Array();
var _local3 = 0;
for ( ; _local3 < 4 ; _local3++) {
sfxs[_local3] = gfx.create_clip(up.mc, null);
sfxs[_local3].sfx = new Sound(sfxs[_local3]);
}
sfxidx = 0;
mc_back = gfx.create_clip(mc, null);
if ((_root.wp_jpg != undefined) && (_root.wp_jpg != "")) {
load_back_image(_root.wp_jpg);
} else {
mc_back_image = gfx.add_clip(mc, "WetPlayBack", null);
}
mc_back_colour = gfx.create_clip(mc, null);
mc_back_image.onRelease = delegate(catchclicks);
mc_back_colour.onRelease = delegate(catchclicks);
if ((_root.wp_w != undefined) && (_root.wp_w != "")) {
w = int(_root.wp_w);
} else {
w = 380;
}
if ((_root.wp_h != undefined) && (_root.wp_h != "")) {
h = int(_root.wp_h);
} else {
h = 200;
}
if ((_root.wp_x != undefined) && (_root.wp_x != "")) {
mc._x = int(_root.wp_x);
} else {
mc._x = 10;
}
if ((_root.wp_y != undefined) && (_root.wp_y != "")) {
mc._y = int(_root.wp_y);
} else {
mc._y = 10;
}
if ((_root.wp_s != undefined) && (_root.wp_s != "")) {
row_size = int(_root.wp_s);
} else {
row_size = 20;
}
x = mc._x;
y = mc._y;
mc_back_image._x = -mc._x;
mc_back_image._y = -mc._y;
if ((_root.wp_fore != undefined) && (_root.wp_fore != "")) {
foreground = int(_root.wp_fore) & 16777215;
} else {
foreground = 16777215 /* 0xFFFFFF */;
}
if (_root.wp_jpg == undefined) {
if ((_root.wp_back == undefined) || (_root.wp_back == "")) {
_root.wp_back = 1073741952 /* 0x40000080 */;
}
}
if ((_root.wp_back_alpha != undefined) && (_root.wp_back_alpha != "")) {
_root.wp_back = ((((_root.wp_back_alpha * 255) / 100) & 255) << 24) | (_root.wp_back & 16777215);
}
do_tint();
xspf = new XML();
xspf.ignoreWhite = true;
xspf.onLoad = null;
mcs1 = gfx.create_clip(mc, null);
sfx = new Sound(mcs1);
mcs2 = gfx.create_clip(mc, null);
sfx_next = new Sound(mcs2);
sfx_master = new Sound();
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function PlaySFX(nam, chan, loops, vol) {
if (sfx_on == 0) {
return(undefined);
}
if ((chan != undefined) && (chan != null)) {
var _local6 = sfxs[chan % 4].sfx;
} else {
var _local6 = sfxs[sfxidx].sfx;
sfxidx = (sfxidx + 1) % 4;
}
if (nam == null) {
if (vol == undefined) {
_local6.stop();
} else {
_local6.setVolume(vol * 100);
}
} else {
_local6.stop();
_local6.attachSound(nam);
if (loops) {
_local6.start(0, loops);
} else {
_local6.start();
}
if (vol == undefined) {
_local6.setVolume(100);
} else {
_local6.setVolume(vol * 100);
}
}
return(_local6);
}
function catchclicks() {
}
function setup() {
var _local2 = _root.cacheAsBitmap;
so_load();
_root.cacheAsBitmap = false;
var _local7 = row_size;
var _local8 = Math.floor(w / _local7);
var _local9 = Math.floor(h / _local7);
if (_local9 >= 2) {
var _local10 = 1;
} else {
var _local10 = 0;
}
sfx_load_stall_counter = 0;
image_url = "";
mc_image = gfx.create_clip(mc, null);
gfx.clear(mc_image);
mc_image._alpha = 25;
gizmo = new GizmoMaster(this);
gizmo.top = gizmo;
var _local4 = gizmo;
_local4.set_area(0, 0, w, h);
var _local5 = gizmo;
var _local11 = 0;
if (_local8 >= 4) {
_local4 = _local5.child(new GizmoButt(_local5));
_local4.set_area(_local7 * _local11, _local7 * _local10, _local7, _local7);
var _local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-2147483648 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_backward(_local6, 0, 0, _local7, _local7);
_local4.mc_base = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_backward(_local6, 0, 0, _local7, _local7);
_local4.mc_over = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_backward(_local6, _local7 * 0.1, _local7 * 0.1, _local7 * 0.8, _local7 * 0.8);
_local4.mc_down = _local6;
_local4.id = "backward";
_local4.onClick = delegate(onClick, _local4);
gizmo_backward = _local4;
_local11++;
}
_local4 = _local5.child(new GizmoButt(_local5));
_local4.set_area(_local7 * _local11, _local7 * _local10, _local7, _local7);
var _local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-2147483648 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_play(_local6, 0, 0, _local7, _local7);
_local4.mc_base = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_play(_local6, 0, 0, _local7, _local7);
_local4.mc_over = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_play(_local6, _local7 * 0.1, _local7 * 0.1, _local7 * 0.8, _local7 * 0.8);
_local4.mc_down = _local6;
_local4.id = "play";
_local4.onClick = delegate(onClick, _local4);
gizmo_play = _local4;
_local4 = _local5.child(new GizmoButt(_local5));
_local4.set_area(_local7 * _local11, _local7 * _local10, _local7, _local7);
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-2147483648 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_pause(_local6, 0, 0, _local7, _local7);
_local4.mc_base = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_pause(_local6, 0, 0, _local7, _local7);
_local4.mc_over = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_pause(_local6, _local7 * 0.1, _local7 * 0.1, _local7 * 0.8, _local7 * 0.8);
_local4.mc_down = _local6;
_local4.id = "pause";
_local4.onClick = delegate(onClick, _local4);
gizmo_pause = _local4;
_local11++;
if (_local8 >= 3) {
_local5 = gizmo;
_local4 = _local5.child(new GizmoButt(_local5));
_local4.set_area(_local7 * _local11, _local7 * _local10, _local7, _local7);
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-2147483648 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_forward(_local6, 0, 0, _local7, _local7);
_local4.mc_base = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_forward(_local6, 0, 0, _local7, _local7);
_local4.mc_over = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_forward(_local6, _local7 * 0.1, _local7 * 0.1, _local7 * 0.8, _local7 * 0.8);
_local4.mc_down = _local6;
_local4.id = "forward";
_local4.onClick = delegate(onClick, _local4);
gizmo_forward = _local4;
_local11++;
}
if (_local8 >= 5) {
_local5 = gizmo;
_local4 = _local5.child(new Gizmo(_local5));
_local4.set_area(_local7 * _local11, _local7 * _local10, w - (_local7 * (_local11 + 1)), _local7);
_local4.mc.style = {fill:-2147483648 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_boxen(_local4.mc, 0, 0, w - (_local7 * 4), _local7);
gizmo_position = _local4;
_local5 = _local4;
_local4 = _local5.child(new GizmoKnob(_local5));
if (_local8 > 5) {
_local4.set_area(0, 0, _local7, _local7);
} else {
_local4.set_area(0, 0, _local7 / 2, _local7);
}
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-2147483648 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_puck(_local6, 0, 0, _local4.w, _local7);
_local4.mc_base = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_puck(_local6, 0, 0, _local4.w, _local7);
_local4.mc_over = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_puck(_local6, 0, 0, _local4.w, _local7);
_local4.mc_down = _local6;
_local4.id = "position_knob";
_local4.onClick = delegate(onClick, _local4);
gizmo_position_knob = _local4;
}
_local5 = gizmo;
_local4 = _local5.child(new Gizmo(_local5));
if (_local9 >= 2) {
_local4.set_area(w - (_local7 * 1), 0, _local7, _local7 * 2);
} else {
_local4.set_area(w - (_local7 * 1), 0, _local7, _local7 * 1);
}
_local4.mc.style = {fill:-2147483648 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
gfx.draw_box(_local4.mc, undefined, (_local7 * 7) / 16, (_local7 * 1) / 16, (_local7 * 2) / 16, _local4.h - ((_local7 * 2) / 16));
gizmo_volume = _local4;
_local5 = _local4;
_local4 = _local5.child(new GizmoKnob(_local5));
_local4.set_area(0, 0, _local7, (_local7 * 10) / 16);
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-2147483648 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
gfx.draw_box(_local6, undefined, (_local7 * 3) / 16, (_local7 * 3) / 16, (_local7 * 10) / 16, _local4.h - ((_local7 * 6) / 16));
_local4.mc_base = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
gfx.draw_box(_local6, undefined, (_local7 * 3) / 16, (_local7 * 3) / 16, (_local7 * 10) / 16, _local4.h - ((_local7 * 6) / 16));
_local4.mc_over = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
gfx.draw_box(_local6, undefined, (_local7 * 3) / 16, (_local7 * 3) / 16, (_local7 * 10) / 16, _local4.h - ((_local7 * 6) / 16));
_local4.mc_down = _local6;
gizmo_volume_knob = _local4;
if (_local8 == 1) {
gizmo_volume.active = false;
}
if (_local9 > 2) {
_local5 = gizmo;
_local4 = _local5.child(new Gizmo(_local5));
_local4.set_area(w - (_local7 * 1), _local7 * 2, _local7, h - (_local7 * 2));
_local4.mc.style = {fill:-2147483648 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_boxen(_local4.mc, 0, 0, _local4.w, _local4.h);
gizmo_scroll = _local4;
_local5 = _local4;
_local4 = _local5.child(new GizmoKnob(_local5));
_local4.set_area(0, 0, _local7, _local7);
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-2147483648 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_puck(_local6, 0, 0, _local7, _local7);
_local4.mc_base = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_puck(_local6, 0, 0, _local7, _local7);
_local4.mc_over = _local6;
_local6 = gfx.create_clip(_local4.mc, null, 0, 0, 100, 100);
_local6.style = {fill:-16777216 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_puck(_local6, 0, 0, _local7, _local7);
_local4.mc_down = _local6;
gizmo_scroll_knob = _local4;
}
if (_local9 >= 2) {
_local5 = gizmo;
_local4 = _local5.child(new GizmoLine(_local5));
_local4.set_area(_local7 * 0, _local7 * 0, w - _local7, _local7);
_local4.tf_fmt.size = _local7 - 4;
_local4.tf_fmt.color = -16777216 + foreground;
_local4.str = "";
_local4.draw_mask();
gizmo_title = _local4;
}
if (_local9 > 2) {
_local5 = gizmo;
_local4 = _local5.child(new GizmoList(_local5));
_local4.set_area(_local7 * 0, _local7 * 2, w - _local7, h - (_local7 * 2));
_local5 = _local4;
_local4 = _local5.child(new GizmoList(_local5));
_local4.set_area(0, 0, (2 * _local5.w) / 3, _local5.h);
_local4.lh = _local7;
_local4.tf_fmt.size = _local7 - 6;
_local4.tf_fmt.color = -16777216 + foreground;
_local4.base_alpha = 50;
_local4.vgizmo = gizmo_scroll_knob;
gizmo_list1 = _local4;
_local4 = _local5.child(new GizmoList(_local5));
_local4.set_area((2 * _local5.w) / 3, 0, (1 * _local5.w) / 3, _local5.h);
_local4.lh = _local7;
_local4.tf_fmt.size = _local7 - 6;
_local4.tf_fmt.color = -16777216 + foreground;
_local4.base_alpha = 30;
_local4.vgizmo = gizmo_scroll_knob;
gizmo_list2 = _local4;
}
gizmo_play.active = true;
gizmo_pause.active = false;
xspfs = new Array();
if ((_root.wp_mp3 != undefined) && (_root.wp_mp3 != "")) {
xspfs[0] = {url:"MP3", str:_root.wp_mp3};
} else if ((_root.wp_xspf != undefined) && (_root.wp_xspf != "")) {
xspfs[0] = {url:_root.wp_xspf, str:_root.wp_xspf};
}
if (!_root.kidsafe) {
xspfs.push({url:"http://swf.wetgenes.com/swf/WetDike.xspf", str:"WetDike ProjectOpus Playlist"});
xspfs.push({url:"http://www.last.fm/music/+charts/free/", str:"Top free tracks from Last.FM"});
xspfs.push({url:"http://grabb.it/charts/activity.xspf", str:"Random tracks from grabb.it"});
xspfs.push({url:"grabb.it", str:"Your favorite tracks on grabb.it"});
xspfs.push({url:"http://swf.wetgenes.com/swf/hourofslack.php", str:"Listen to a recent hour of slack."});
}
var _local3 = 0;
for ( ; _local3 < xspfs.length ; _local3++) {
var _local12 = xspfs[_local3].str.split("/");
if (_local12.length > 1) {
if (_local12[_local12.length - 1] == "") {
xspfs[_local3].str = _local12[_local12.length - 2];
} else {
xspfs[_local3].str = _local12[_local12.length - 1];
}
}
}
xspfs[xspfs.length] = {url:"", str:"Options"};
force = 0;
if ((_root.wp_force != undefined) && (_root.wp_force != "")) {
force = (int(_root.wp_force) ? 1 : 0);
}
auto = 0;
if ((so.data.auto != undefined) && (!force)) {
auto = (int(so.data.auto) ? 1 : 0);
} else if ((_root.wp_auto != undefined) && (_root.wp_auto != "")) {
auto = (int(_root.wp_auto) ? 1 : 0);
}
shuffle = 0;
if ((_root.wp_shuffle != undefined) && (_root.wp_shuffle != "")) {
shuffle = (int(_root.wp_shuffle) ? 1 : 0);
}
loop = 1;
if ((_root.wp_loop != undefined) && (_root.wp_loop != "")) {
loop = (int(_root.wp_loop) ? 1 : 0);
}
sfx_on = 1;
if ((_root.wp_sfx != undefined) && (_root.wp_sfx != "")) {
sfx_on = (int(_root.wp_loop) ? 1 : 0);
}
show_xspfs();
got_creator = 1;
track_id = -1;
xspf_id = -1;
gizmo_title.str = "Select a playlist to play.";
if ((so.data.vol != undefined) && (!force)) {
var _local13 = so.data.vol / 100;
if (_local13 <= 0) {
_local13 = 0;
auto = 0;
}
if (_local13 > 1) {
_local13 = 1;
}
gizmo_volume_knob.set_knob(0, 1 - _local13);
} else if (_root.wp_vol != undefined) {
var _local14 = _root.wp_vol / 100;
if (_local14 <= 0) {
_local14 = 0;
auto = 0;
}
if (_local14 > 1) {
_local14 = 1;
}
gizmo_volume_knob.set_knob(0, 1 - _local14);
} else {
gizmo_volume_knob.set_knob(0, 1 - 0.5);
}
if (auto) {
xspf_id = 0;
load_xml(xspfs[0].url);
state = "pause";
} else if (xspfs.length == 2) {
xspf_id = 0;
load_xml(xspfs[0].url);
state = "pause";
}
options = new Array();
var _local15 = options;
_local15.push({str:".. (click to go back)"});
_local15.push({str:"This is WetPlay 1.11 : www.WetGenes.com", url:"http://www.WetGenes.com"});
_local15.push({str:"(c) Kriss Daniels 2007 : XIXs.com", url:"http://XIXs.com"});
_local15.push({str:"Powered by project opus / XSPF : ProjectOpus.com", url:"http://www.projectopus.com"});
_local15.push({opt:"shuffle"});
_local15.push({opt:"autoplay"});
_local15.push({opt:"repeat"});
_local15.push({opt:"sfx"});
_root.cacheAsBitmap = _local2;
throbe = 0;
}
function premenu(obj, cm) {
var _local4 = true;
var _local5 = gizmo_list1.hover;
if (!_local5) {
_local5 = gizmo_list2.hover;
}
if (_local5.item > 0) {
_local5 = tracks[_local5.item];
} else {
_local5 = null;
}
if ((view == "tracks") && (_local5)) {
_local4 = true;
} else {
_local4 = false;
}
if (_local4 == false) {
cm.customItems[0].enabled = false;
cm.customItems[0].caption = "Download MP3";
cm.customItems[1].enabled = false;
cm.customItems[1].caption = "Remember MP3";
} else {
menu_mp3_name = "" + _local5.title;
menu_mp3_link = "" + _local5.location;
cm.customItems[0].enabled = true;
cm.customItems[0].caption = "Download " + menu_mp3_name;
cm.customItems[1].enabled = false;
cm.customItems[1].caption = "Remember " + menu_mp3_name;
}
}
function setmenu(mc) {
var _local3 = new ContextMenu(delegate(premenu));
_local3.hideBuiltInItems();
var _local5 = delegate(menu_download);
var _local4 = new ContextMenuItem("Download this MP3", _local5);
_local3.customItems.push(_local4);
_local5 = delegate(menu_remember);
_local4 = new ContextMenuItem("Remember this MP3", _local5);
_local3.customItems.push(_local4);
_local5 = delegate(menu_do, "pp");
_local4 = new ContextMenuItem("Play / Pause", _local5);
_local3.customItems.push(_local4);
_local5 = delegate(menu_do, "forward");
_local4 = new ContextMenuItem("Next Track", _local5);
_local3.customItems.push(_local4);
_local5 = delegate(menu_do, "backward");
_local4 = new ContextMenuItem("Previous Track / Rewind", _local5);
_local3.customItems.push(_local4);
_local5 = delegate(menu_vol, 100);
_local4 = new ContextMenuItem("Set Volume to 100%", _local5);
_local3.customItems.push(_local4);
_local5 = delegate(menu_vol, 75);
_local4 = new ContextMenuItem("Set Volume to 75%", _local5);
_local3.customItems.push(_local4);
_local5 = delegate(menu_vol, 50);
_local4 = new ContextMenuItem("Set Volume to 50%", _local5);
_local3.customItems.push(_local4);
_local5 = delegate(menu_vol, 25);
_local4 = new ContextMenuItem("Set Volume to 25%", _local5);
_local3.customItems.push(_local4);
_local5 = delegate(menu_vol, 0);
_local4 = new ContextMenuItem("Set Volume to 0%", _local5);
_local3.customItems.push(_local4);
mc.menu = _local3;
}
function menu_download() {
getURL (menu_mp3_link, "_blank");
}
function menu_remember() {
}
function menu_vol(a, b, c) {
gizmo_volume_knob.set_knob(0, 1 - (c / 100));
}
function set_vol(v) {
gizmo_volume_knob.set_knob(0, 1 - (v / 100));
}
function set_vol_start(v, g) {
gizmo_volume_knob.set_knob(0, 1 - (v / 100));
if (g) {
if (state == "pause") {
onClick_id("play");
}
auto = 1;
} else {
if (state == "play") {
onClick_id("pause");
}
auto = 0;
}
}
function menu_do(a, b, c) {
if (c == "pp") {
if (state == "play") {
onClick_id("pause");
} else {
onClick_id("play");
}
} else {
onClick_id(c);
}
}
function split_list_view() {
var _local2 = gizmo_list1.up.w;
if ((view == "xspfs") || ((got_creator < (tracks.length / 2)) || (view == "options"))) {
gizmo_list1.w = _local2;
gizmo_list2.w = 0;
} else if (got_creator) {
gizmo_list1.w = (_local2 * 2) / 3;
gizmo_list2.x = gizmo_list1.w;
gizmo_list2.w = (_local2 * 1) / 3;
}
gizmo_list1.draw_mask();
gizmo_list2.draw_mask();
}
function show_options() {
view = "options";
var _local2 = 0;
for ( ; _local2 < options.length ; _local2++) {
var _local3 = options[_local2];
if (_local3.opt) {
_local3.str = get_option_str(_local3.opt);
}
}
gizmo_list1.items = options;
gizmo_list1.onClick = delegate(select_option);
gizmo_list2.items = [];
gizmo_list2.onClick = null;
split_list_view();
}
function get_option_str(s) {
switch (s) {
case "shuffle" :
return("Shuffle is " + (shuffle ? "ON" : "OFF"));
case "autoplay" :
return("Autoplay is " + (auto ? "ON" : "OFF"));
case "repeat" :
return("Repeat is " + (loop ? "ON" : "OFF"));
case "sfx" :
return("Sound effects are " + (sfx_on ? "ON" : "OFF"));
}
return("");
}
function toggle_option(s) {
switch (s) {
case "shuffle" :
shuffle = (shuffle ? 0 : 1);
break;
case "autoplay" :
auto = (auto ? 0 : 1);
break;
case "repeat" :
loop = (loop ? 0 : 1);
break;
case "sfx" :
sfx_on = (sfx_on ? 0 : 1);
}
show_options();
}
function show_xspfs() {
view = "xspfs";
gizmo_list1.items = xspfs;
gizmo_list1.onClick = delegate(select_xspf);
gizmo_list2.items = [];
gizmo_list2.onClick = null;
split_list_view();
}
function show_tracks() {
view = "tracks";
gizmo_list1.items = tracks1;
gizmo_list2.items = tracks2;
gizmo_list1.onClick = delegate(select_mp3);
gizmo_list2.onClick = delegate(select_mp3_artist);
split_list_view();
}
function select_option(ln) {
var _local3 = ln.item;
if (_local3 == 0) {
show_xspfs();
return(undefined);
}
var _local4 = options[_local3];
if (_local4.url) {
getURL (_local4.url, "BOT");
} else if (_local4.opt) {
toggle_option(_local4.opt);
}
}
function select_xspf(ln) {
var _local3 = ln.item;
if ((_local3 >= (xspfs.length - 1)) || (_local3 < 0)) {
show_options();
} else {
xspf_id = _local3;
load_xml(xspfs[_local3].url);
state = "pause";
}
}
function select_mp3(ln) {
select_mp3_id(ln.item);
}
function select_mp3_id(id) {
if (id == 0) {
show_xspfs();
} else {
track_id = id;
play_mp3(tracks[track_id]);
gizmo_play.active = false;
gizmo_pause.active = true;
state = "play";
}
}
function select_mp3_artist(ln) {
var _local3 = ln.item;
show_artist(tracks[_local3]);
}
function play_mp3(t) {
if (t == undefined) {
return(undefined);
}
load_image(t.image);
if (t.creator == "") {
set_title(t.title);
} else {
set_title((t.title + " (by) ") + t.creator);
}
disp_title = t.title;
disp_creator = t.creator;
disp_info = t.info;
sfx.stop();
sfx.start(0);
sfx.stop();
sfx.loadSound(t.location, true);
gizmo_position_knob.set_knob(0, 0);
sfx_load_stall_counter = 0;
}
function stop_mp3() {
sfx.stop();
sfx_next.stop();
gizmo_position_knob.set_knob(0, 0);
gizmo_play.active = true;
gizmo_pause.active = false;
state = "pause";
}
function show_artist(t) {
getURL (t.info, "BOT");
}
function set_title(str) {
gizmo_title.str = str;
}
function load_back_image(url) {
mc_back_image.removeMovieClip();
mc_back_image = gfx.create_clip(mc_back);
mc_back_image._lockroot = true;
mc_back_image.loadMovie(url);
}
function do_tint() {
if ((_root.wp_back != undefined) && (_root.wp_back != "")) {
gfx.clear(mc_back_colour);
mc_back_colour.style.fill = int(_root.wp_back);
gfx.draw_box(mc_back_colour, undefined, -x, -y, w + (x * 2), h + (y * 2));
}
}
function load_image(url) {
if (image_url == url) {
return(undefined);
}
if (image_url == "") {
return(undefined);
}
if (image_url == "undefined") {
return(undefined);
}
if (image_url == undefined) {
return(undefined);
}
image_url = url;
mc_image3 = gfx.create_clip(mc_image);
mc_image3._lockroot = true;
mc_image3.loadMovie(url);
mc_image.onEnterFrame = delegate(load_image_check);
mc_image2.removeMovieClip();
mc_image2 = mc_image3;
mc_image3 = null;
}
function load_image_check() {
var _local2 = mc_image2.getBytesTotal();
var _local3 = mc_image2.getBytesLoaded();
if (_local2 == -1) {
mc_image.onEnterFrame = null;
return(undefined);
}
if ((_local3 != _local2) || ((_local2 == 0) || ((mc_image2._width == 0) || (mc_image2._height == 0)))) {
return(undefined);
}
mc_image.onEnterFrame = null;
var _local4 = (100 * w) / mc_image2._width;
var _local5 = (100 * h) / mc_image2._height;
var _local6 = _local4;
if (_local5 < _local6) {
_local6 = _local5;
}
var _local7 = (_local6 * mc_image2._width) / 100;
var _local8 = (_local6 * mc_image2._height) / 100;
_local7 = (w - _local7) / 2;
_local8 = (h - _local8) / 2;
mc_image2._xscale = _local6;
mc_image2._yscale = _local6;
mc_image2._x = _local7;
mc_image2._y = _local8;
}
function clean() {
}
function onClick(g) {
onClick_id(g.id);
}
function onClick_id(g_id) {
switch (g_id) {
case "forward" :
gizmo_play.active = false;
gizmo_pause.active = true;
click_forward();
state = "play";
break;
case "backward" :
gizmo_play.active = false;
gizmo_pause.active = true;
click_backward();
state = "play";
break;
case "play" :
if (state != "play") {
gizmo_play.active = false;
gizmo_pause.active = true;
sfx.start(((sfx.played_frac / sfx.loaded_frac) * sfx.duration) / 1000);
state = "play";
}
break;
case "pause" :
if (state != "pause") {
gizmo_play.active = true;
gizmo_pause.active = false;
sfx.stop();
state = "pause";
}
break;
case "position_knob" :
gizmo_play.active = false;
gizmo_pause.active = true;
sfx.stop();
var _local3 = (gizmo_position_knob.x_knob / sfx.loaded_frac) * sfx.duration;
if (_local3 > (sfx.duration - 500)) {
_local3 = sfx.duration - 500;
}
if (_local3 < 0) {
_local3 = 0;
}
sfx.start(_local3 / 1000);
state = "play";
}
}
function update() {
var _local2 = ((sfx.getBytesTotal() > 0) ? (sfx.getBytesLoaded() / sfx.getBytesTotal()) : 0);
var _local3 = ((sfx.duration > 0) ? ((sfx.position / sfx.duration) * sfx.loaded_frac) : 0);
if (mc._visible) {
var _local4 = row_size;
if (view == "tracks") {
gizmo_list1.selected = track_id;
gizmo_list2.selected = track_id;
} else if (view == "xspfs") {
gizmo_list1.selected = xspf_id;
gizmo_list2.selected = xspf_id;
}
var _local6 = _root.poker.snapshot();
_root.localToGlobal(_local6);
gizmo.mc.globalToLocal(_local6);
gizmo.focus = gizmo.input(_local6);
gizmo.update();
sfx.played_frac_last = sfx.played_frac;
sfx.loaded_frac_last = sfx.loaded_frac;
sfx.loaded_frac = _local2;
sfx.played_frac = _local3;
if (sfx.played_frac != sfx.played_frac_last) {
gizmo_position_knob.set_knob(sfx.played_frac, 0);
}
if (sfx.loaded_frac != sfx.loaded_frac_last) {
var _local5 = gizmo_position;
_local5.mc.clear();
_local5.mc.style = {fill:536870912 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
gfx.draw_box(_local5.mc, undefined, (_local4 * 1) / 16, (_local4 * 1) / 16, (_local5.w - ((_local4 * 2) / 16)) * sfx.loaded_frac, _local5.h - ((_local4 * 2) / 16));
_local5.mc.style = {fill:-2147483648 + foreground, out:-16777216 + foreground, text:-16777216 + foreground};
up.wetplayGFX.draw_boxen(_local5.mc, 0, 0, _local5.w, _local5.h);
sfx_load_stall_counter = 0;
} else if ((sfx.loaded_frac != 1) && (sfx.played_frac == sfx.played_frac_last)) {
sfx_load_stall_counter++;
} else {
sfx_load_stall_counter = 0;
}
}
if (state == "play") {
throbe = throbe * (1 - (0.05 * (1 - gizmo_volume_knob.y_knob)));
if (throbe <= 0.05) {
throbe = 1 - gizmo_volume_knob.y_knob;
}
if ((((_local2 == 1) && (sfx.getBytesTotal() != undefined)) && (sfx.position >= (sfx.duration - 1))) || (sfx_load_stall_counter > (31 * 5))) {
if (gizmo_volume_knob.y_knob != 1) {
sfx_load_stall_counter = 0;
play_next_track();
} else {
throbe = 0;
}
}
} else {
throbe = 0;
}
sfx_master.setVolume((1 - gizmo_volume_knob.y_knob) * 100);
so_save();
}
function click_forward() {
play_next_track();
}
function play_next_track() {
if (tracks.length == 0) {
return(undefined);
}
track_id++;
if (track_id >= tracks.length) {
track_id = 1;
if (shuffle) {
shuffle_tracks();
}
if (!loop) {
play_mp3(tracks[track_id]);
stop_mp3();
return(undefined);
}
} else if (track_id <= 0) {
track_id = 1;
if (shuffle) {
shuffle_tracks();
}
}
play_mp3(tracks[track_id]);
}
function click_backward() {
if (sfx.position < 2000) {
play_prev_track();
} else {
sfx.start(0);
}
}
function play_prev_track() {
track_id--;
if ((track_id <= 0) || (track_id >= tracks.length)) {
track_id = tracks.length - 1;
if (shuffle) {
shuffle_tracks();
}
}
play_mp3(tracks[track_id]);
state = "play";
}
function do_str(str) {
up.do_str(str);
}
function load_xml(s) {
if (xspf.onLoad) {
return(undefined);
}
if (tracks_url == s) {
show_tracks();
return(undefined);
}
tracks_url = s;
var _local4 = tracks_url.split("/");
var _local5 = _local4[_local4.length - 1].split(".");
if (s == "MP3") {
var _local6 = ((("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">\n<trackList>\n<track>\n<title>" + _root.wp_mp3) + "</title>\n<location>") + _root.wp_mp3) + "</location>\n</track>\n</trackList>\n<playlist>\n";
xspf.parseXML(_local6);
loaded_xml();
} else if (_local5[_local5.length - 1].toLowerCase() == "mp3") {
var _local7 = ((("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<playlist version=\"1\" xmlns=\"http://xspf.org/ns/0/\">\n<trackList>\n<track>\n<title>" + s) + "</title>\n<location>") + s) + "</location>\n</track>\n</trackList>\n<playlist>\n";
xspf.parseXML(_local7);
loaded_xml();
} else if (_local4[2] == "www.last.fm") {
var _local3 = s.split("%20");
s = _local3.join("+");
_local3 = s.split(" ");
s = _local3.join("+");
dbg.print(s);
xspf.noData = xspf.onData;
xspf.onData = delegate(loaded_html);
xspf.onLoad = delegate(loaded_html);
xspf.load(s);
set_title("scraping html");
} else if (s == "grabb.it") {
xspf.onData = delegate(loaded_grabbit);
xspf.load("http://grabb.it/sessions.js");
set_title("Getting username");
} else {
xspf.onLoad = delegate(loaded_xml);
xspf.load(s);
set_title("Loading Playlist");
}
}
function loaded_html(txt) {
track_preload();
var _local9 = null;
xspf.onData = xspf.noData;
xspf.onLoad = null;
var _local3 = txt.split(".mp3");
var _local7 = 0;
for ( ; _local7 < _local3.length ; _local7++) {
var _local4 = _local3[_local7].split("http:");
var _local6 = _local4[_local4.length - 1];
if (_local6.substring(0, 2) == "//") {
var _local5 = _local6.split("/");
if (_local5[3] == "download") {
var _local10 = ("http:" + _local6) + ".mp3";
if (_local9 != _local10) {
_local9 = _local10;
var _local11 = new Object();
_local11.location = _local10;
_local11.creator = " on Last.FM";
add_tr(_local11);
_local11.info = "http://www.last.fm/music/?m=tracks&q=" + _local11.titleurl;
}
}
}
}
track_postload();
}
function track_preload() {
tracks = new Array();
tracks1 = new Array();
tracks2 = new Array();
tracks[0] = {str:".. (click to go back)"};
tracks1[0] = {str:".. (click to go back)"};
tracks2[0] = {str:""};
got_creator = 0;
}
function track_postload() {
show_tracks();
stop_mp3();
set_title(("Loaded " + (tracks.length - 1)) + " tracks.");
show_tracks();
track_id = -1;
if (shuffle) {
shuffle_tracks();
}
if (auto) {
select_mp3_id(1);
}
}
function loaded_grabbit(src) {
var _local3 = src.split("\"")[3];
xspf = new XML();
xspf.ignoreWhite = true;
xspf.onLoad = delegate(loaded_xml);
if (_local3) {
xspf.load(("http://grabb.it/users/" + _local3) + ".xspf");
} else {
xspf.load("http://grabb.it/charts/activity.xspf");
}
set_title("Loading Playlist");
}
function loaded_xml() {
xspf.onLoad = null;
track_preload();
parse_xml(xspf);
track_postload();
}
function parse_xml(n) {
if (n.nodeName == "track") {
add_track_from_xml(n);
} else {
var _local4 = n.childNodes;
var _local3 = 0;
for ( ; _local3 < _local4.length ; _local3++) {
parse_xml(_local4[_local3]);
}
}
}
function add_tr(tr) {
var _local7 = tr.location;
var _local10 = _local7.split("/");
if (_local10.length > 1) {
if (_local10[_local10.length - 1] == "") {
_local7 = _local10[_local10.length - 2];
} else {
_local7 = _local10[_local10.length - 1];
}
}
_local7 = _global.unescape(_local7);
_local10 = _local7.split("+");
_local7 = _local10.join(" ");
_local10 = _local7.split("%");
var _local4 = 1;
for ( ; _local4 < _local10.length ; _local4++) {
_local10[_local4] = _local10[_local4].substr(2);
}
_local7 = _local10.join(" ");
_local10 = _local7.split(".mp3");
_local7 = _local10.join(" ");
_local10 = _local7.split(" ");
var _local3 = 1;
for ( ; _local3 < _local10.length ; _local3++) {
if ((_local10[_local3] == "") && (_local10[_local3 - 1] == "")) {
_local10.splice(_local3, 1);
_local3--;
}
}
_local7 = _local10.join(" ");
tr.titleurl = _local7;
if (tr.title == undefined) {
tr.title = tr.annotation;
}
if (tr.title == undefined) {
tr.title = tr.titleurl;
}
_local7 = tr.title;
_local10 = _local7.split(newline);
_local7 = _local10.join(" ");
_local10 = _local7.split(" ");
_local3 = 1;
for ( ; _local3 < _local10.length ; _local3++) {
if ((_local10[_local3] == "") && (_local10[_local3 - 1] == "")) {
_local10.splice(_local3, 1);
_local3--;
}
}
_local7 = _local10.join(" ");
tr.title = _local7;
if (tr.creator == undefined) {
tr.creator = "";
} else {
got_creator++;
}
var _local8 = "" + tr.title;
var _local9 = "" + tr.creator;
tracks[tracks.length] = tr;
tracks1[tracks1.length] = {str:_local8};
tracks2[tracks2.length] = {str:_local9};
}
function add_track_from_xml(n) {
var _local5 = new Object();
var _local4 = n.childNodes;
var _local3 = 0;
for ( ; _local3 < _local4.length ; _local3++) {
var _local6 = _local4[_local3];
if (_local6.nodeName && (_local6.firstChild.nodeValue)) {
_local5[_local6.nodeName] = _local6.firstChild.nodeValue;
}
}
add_tr(_local5);
}
function shuffle_tracks() {
var _local4 = tracks.length - 1;
var _local2 = 0;
for ( ; _local2 < _local4 ; _local2++) {
var _local3 = rnd() % _local4;
tracks.splice(1, 0, tracks[_local3 + 1]);
tracks.splice(_local3 + 2, 1);
tracks1.splice(1, 0, tracks1[_local3 + 1]);
tracks1.splice(_local3 + 2, 1);
tracks2.splice(1, 0, tracks2[_local3 + 1]);
tracks2.splice(_local3 + 2, 1);
}
}
function so_load() {
so = SharedObject.getLocal("www.wetgenes.com/WetPlay");
var _local2 = so.data;
so_loaded = false;
if (_local2.sfx != undefined) {
sfx_on = _local2.sfx;
so_loaded = true;
}
}
function so_save() {
var _local2 = false;
var _local3 = so.data;
var _local4 = Math.floor((1 - gizmo_volume_knob.y_knob) * 100);
if (_local3.vol != _local4) {
_local2 = true;
_local3.vol = _local4;
}
if (_local3.sfx != sfx_on) {
_local2 = true;
_local3.sfx = sfx_on;
}
if (_local3.auto != auto) {
_local2 = true;
_local3.auto = auto;
}
if (_local2) {
so.flush();
}
}
//ASSetPropFlags(_local1, null, 1);
var disp_title = "";
var disp_creator = "";
var disp_info = "";
var throbe = 0;
var rnd_num = 0;
var so_loaded = false;
}
Symbol 20498 MovieClip [__Packages.Vbrain_ball] Frame 0
class Vbrain_ball
{
var up;
function Vbrain_ball (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(xml) {
parse_xml(xml, 0);
up.mc.onRollOver = null;
up.mc.onRollOut = null;
up.mc.onReleaseOutside = null;
up.mc.onRelease = null;
}
function clean() {
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
_local6 = true;
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
}
e.nodeName;
}
}
function menuset() {
up.mc.menu = {};
var _local2 = {};
_local2.name = "base";
_local2.items = [];
_local2.items.push({txt:"Use"});
_local2.items.push({txt:"Cancel"});
_local2.menuclick = delegate(menuclick, _local2);
up.mc.menu.base = _local2;
up.mc.getmenu = delegate(getmenu, null);
}
function getmenu(poke) {
if (up.mc.vcobj_menu.base) {
return(up.mc.vcobj_menu.base);
}
return(up.mc.menu.base);
}
function menuclick(poke, item, menu) {
switch (item.txt.toLowerCase()) {
case "use" :
var _local5 = poke.up.focus.cc;
do_use(_local5);
poke.hidemenu();
break;
default :
poke.hidemenu();
}
menu.name;
}
function do_use(cc) {
}
function update_vcobj(props) {
if (!props) {
props = up.vcobj.props;
}
if (props.xyz) {
var _local3 = props.xyz.split(":");
up.tx = Math.floor(_local3[0]);
up.ty = Math.floor(_local3[1]);
up.tz = Math.floor(_local3[2]);
}
if (props.goal) {
up.up.up.up.pixls.add_goal();
}
}
function update() {
kick_time = kick_time + 1;
if ((up.px == 0) && ((up.py == 0) && (up.pz == 0))) {
up.px = up.tx;
up.py = up.ty;
up.pz = up.tz;
} else {
var _local2 = up.tx - up.px;
var _local3 = up.ty - up.py;
var _local4 = up.tz - up.pz;
var _local5 = (_local2 * _local2) + (_local4 * _local4);
if (_local5 > (10 * 10)) {
_local5 = Math.sqrt(_local5);
_local2 = (_local2 * 10) / _local5;
_local4 = (_local4 * 10) / _local5;
}
up.px = up.px + _local2;
up.pz = up.pz + _local4;
}
up.up.mirror_bounce(up);
up.mc._rotation = up.px * 2;
var _local6 = up.up.focus.cc.px - up.px;
var _local7 = up.up.focus.cc.py - up.py;
var _local8 = up.up.focus.cc.pz - up.pz;
if ((50 * 50) > (((_local6 * _local6) + (_local7 * _local7)) + (_local8 * _local8))) {
if ((kick_last + 5) < kick_time) {
kick_last = kick_time;
up.up.focus.cc.vcobj.send_msg_prop("kick", "1");
}
}
}
//ASSetPropFlags(_local1, null, 1);
var kick_time = 0;
var kick_last = 0;
}
Symbol 20499 MovieClip [__Packages.WetPlayGFX] Frame 0
class WetPlayGFX
{
var up;
function WetPlayGFX () {
}
function WetPlayMP3(_up) {
up = _up;
}
function draw_play(mc, x, y, w, h) {
var _local7 = w / 16;
var _local8 = h / 16;
var _local9 = _local7;
if (_local9 > _local8) {
_local9 = _local8;
}
mc.lineStyle(undefined);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.moveTo(x + _local9, y + _local9);
mc.lineTo((x + w) - _local9, y + _local9);
mc.lineTo((x + w) - _local9, (y + h) - _local9);
mc.lineTo(x + _local9, (y + h) - _local9);
mc.lineTo(x + _local9, y + _local9);
mc.moveTo(x + (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), y + (_local9 * 2));
mc.moveTo(x + (_local7 * 5), y + (_local9 * 3));
mc.lineTo(x + (_local7 * 5), (y + h) - (_local9 * 3));
mc.lineTo(x + (_local7 * 11), y + (_local8 * 8));
mc.endFill();
}
function draw_back(mc, x, y, w, h) {
var _local7 = w / 16;
var _local8 = h / 16;
var _local9 = _local7;
if (_local9 > _local8) {
_local9 = _local8;
}
mc.lineStyle(undefined);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.moveTo(x + _local9, y + _local9);
mc.lineTo((x + w) - _local9, y + _local9);
mc.lineTo((x + w) - _local9, (y + h) - _local9);
mc.lineTo(x + _local9, (y + h) - _local9);
mc.lineTo(x + _local9, y + _local9);
mc.moveTo(x + (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), y + (_local9 * 2));
mc.moveTo(x + (_local7 * 11), y + (_local9 * 3));
mc.lineTo(x + (_local7 * 11), (y + h) - (_local9 * 3));
mc.lineTo(x + (_local7 * 5), y + (_local8 * 8));
mc.endFill();
}
function draw_stop(mc, x, y, w, h) {
var _local7 = w / 16;
var _local8 = h / 16;
var _local9 = _local7;
if (_local9 > _local8) {
_local9 = _local8;
}
mc.lineStyle(undefined);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.moveTo(x + _local9, y + _local9);
mc.lineTo((x + w) - _local9, y + _local9);
mc.lineTo((x + w) - _local9, (y + h) - _local9);
mc.lineTo(x + _local9, (y + h) - _local9);
mc.lineTo(x + _local9, y + _local9);
mc.moveTo(x + (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), y + (_local9 * 2));
mc.moveTo(x + (_local7 * 12), y + (_local8 * 4));
mc.lineTo(x + (_local7 * 12), y + (_local8 * 12));
mc.lineTo(x + (_local7 * 4), y + (_local8 * 12));
mc.lineTo(x + (_local7 * 4), y + (_local8 * 4));
mc.endFill();
}
function draw_pause(mc, x, y, w, h) {
var _local7 = w / 16;
var _local8 = h / 16;
var _local9 = _local7;
if (_local9 > _local8) {
_local9 = _local8;
}
mc.lineStyle(undefined);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.moveTo(x + _local9, y + _local9);
mc.lineTo((x + w) - _local9, y + _local9);
mc.lineTo((x + w) - _local9, (y + h) - _local9);
mc.lineTo(x + _local9, (y + h) - _local9);
mc.lineTo(x + _local9, y + _local9);
mc.moveTo(x + (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), y + (_local9 * 2));
mc.moveTo(x + (_local7 * 4), y + (_local9 * 3));
mc.lineTo(x + (_local7 * 4), y + (_local9 * 13));
mc.lineTo(x + (_local7 * 7), y + (_local9 * 13));
mc.lineTo(x + (_local7 * 7), y + (_local9 * 3));
mc.moveTo(x + (_local7 * 9), y + (_local9 * 3));
mc.lineTo(x + (_local7 * 9), y + (_local9 * 13));
mc.lineTo(x + (_local7 * 12), y + (_local9 * 13));
mc.lineTo(x + (_local7 * 12), y + (_local9 * 3));
mc.endFill();
}
function draw_forward(mc, x, y, w, h) {
var _local7 = w / 16;
var _local8 = h / 16;
var _local9 = _local7;
if (_local9 > _local8) {
_local9 = _local8;
}
mc.lineStyle(undefined);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.moveTo(x + _local9, y + _local9);
mc.lineTo((x + w) - _local9, y + _local9);
mc.lineTo((x + w) - _local9, (y + h) - _local9);
mc.lineTo(x + _local9, (y + h) - _local9);
mc.lineTo(x + _local9, y + _local9);
mc.moveTo(x + (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), y + (_local9 * 2));
mc.moveTo(x + (_local7 * 3), y + (_local9 * 3));
mc.lineTo(x + (_local7 * 3), (y + h) - (_local9 * 3));
mc.lineTo(x + (_local7 * 8), y + (_local8 * 8));
mc.moveTo(x + (_local7 * 8), y + (_local9 * 3));
mc.lineTo(x + (_local7 * 8), (y + h) - (_local9 * 3));
mc.lineTo(x + (_local7 * 13), y + (_local8 * 8));
mc.endFill();
}
function draw_backward(mc, x, y, w, h) {
var _local7 = w / 16;
var _local8 = h / 16;
var _local9 = _local7;
if (_local9 > _local8) {
_local9 = _local8;
}
mc.lineStyle(undefined);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.moveTo(x + _local9, y + _local9);
mc.lineTo((x + w) - _local9, y + _local9);
mc.lineTo((x + w) - _local9, (y + h) - _local9);
mc.lineTo(x + _local9, (y + h) - _local9);
mc.lineTo(x + _local9, y + _local9);
mc.moveTo(x + (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), y + (_local9 * 2));
mc.moveTo(x + (_local7 * 8), y + (_local9 * 3));
mc.lineTo(x + (_local7 * 8), (y + h) - (_local9 * 3));
mc.lineTo(x + (_local7 * 3), y + (_local8 * 8));
mc.moveTo(x + (_local7 * 13), y + (_local9 * 3));
mc.lineTo(x + (_local7 * 13), (y + h) - (_local9 * 3));
mc.lineTo(x + (_local7 * 8), y + (_local8 * 8));
mc.endFill();
}
function draw_boxen(mc, x, y, w, h) {
var _local7 = w / 16;
var _local8 = h / 16;
var _local9 = _local7;
if (_local9 > _local8) {
_local9 = _local8;
}
mc.lineStyle(undefined);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.moveTo(x + _local9, y + _local9);
mc.lineTo((x + w) - _local9, y + _local9);
mc.lineTo((x + w) - _local9, (y + h) - _local9);
mc.lineTo(x + _local9, (y + h) - _local9);
mc.lineTo(x + _local9, y + _local9);
mc.moveTo(x + (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), y + (_local9 * 2));
mc.lineTo((x + w) - (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), (y + h) - (_local9 * 2));
mc.lineTo(x + (_local9 * 2), y + (_local9 * 2));
mc.endFill();
}
function draw_puck(mc, x, y, w, h) {
var _local7 = w / 16;
var _local8 = h / 16;
var _local9 = _local7;
if (_local9 > _local8) {
_local9 = _local8;
}
mc.lineStyle(undefined);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.moveTo(x + (_local9 * 3), y + (_local9 * 3));
mc.lineTo((x + w) - (_local9 * 3), y + (_local9 * 3));
mc.lineTo((x + w) - (_local9 * 3), (y + h) - (_local9 * 3));
mc.lineTo(x + (_local9 * 3), (y + h) - (_local9 * 3));
mc.lineTo(x + (_local9 * 3), y + (_local9 * 3));
mc.endFill();
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20500 MovieClip [__Packages.Loading] Frame 0
class Loading
{
var showloading, defuck, mc, mcanim, tf2, tf3, tf4, mcmochi, waitfordisplay, server, my_server, splash, splash_link, mcsplash, splash_count, intro;
function Loading (_showloading) {
showloading = _showloading;
setup();
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup() {
var _local3 = function (a, b) {
if (_root[a] == undefined) {
_root[a] = b;
}
};
_local3("host", "swf.wetgenes.com");
defuck = _root._highquality;
done = false;
if (showloading) {
mc = gfx.create_clip(_root, null);
}
gfx.clear(mc);
mc.style.fill = -16777216;
gfx.draw_box(mc, 0, 0, 0, 800, 600);
mcanim = gfx.create_clip(mc, null);
tf2 = gfx.create_text_html(mcanim, null, 25, 25, 750, 200);
gfx.dropshadow(mcanim, 2, 45, 0, 1, 4, 4, 2, 3);
tf3 = gfx.create_text_html(mcanim, null, 200, 250, 400, 300);
tf4 = gfx.create_text_html(mcanim, null, 25, 450, 750, 200);
var _local2 = "";
_local2 = _local2 + "<p align=\"center\">";
_local2 = _local2 + "This game is creator owned by real people who have worked very hard to provide the best gaming experience they can.<br><br>";
_local2 = _local2 + "All sponsor advertising is a necessity to cover the costs of maintaining score/chat/multiplayer servers.";
_local2 = _local2 + "</p>";
gfx.set_text_html(tf2, 23, 16777215, _local2);
_local2 = "";
_local2 = _local2 + "<p align='center'>WetVille 0.77 (c) Shi+Kriss Daniels Oct 31 2008</p>";
_local2 = _local2 + "<p align='center'>Distributed under the CC Attribution-NoDerivs 2.5 Licence.</p>";
_local2 = _local2 + "<p align='center'>http://creativecommons.org/licenses/by-nd/2.5/</p>";
gfx.set_text_html(tf4, 16, 16777215, _local2);
mcmochi = gfx.create_clip(mc, null, (800 - ((600 * 800) / 640)) / 2, (600 - ((440 * 600) / 480)) / 2, (100 * 800) / 640, (100 * 600) / 480);
mcmochi.click = gfx.create_clip(mcmochi, null);
waitfordisplay = true;
mcmochi.dispad = gfx.create_clip(mcmochi, null);
mc.onEnterFrame = delegate(update, null);
server = "www";
my_server = false;
if ((_root._url.indexOf("http://www.wetgenes.local/") == 0) || ((_root._url.indexOf("http://wetgenes.local/") == 0) || ((_root._url.indexOf("http://www.host.local/") == 0) || ((_root._url.indexOf("http://host.local/") == 0) || ((_root._url.indexOf("http://www.local.host/") == 0) || ((_root._url.indexOf("http://local.host/") == 0) || (_root._url.indexOf("file:") == 0))))))) {
server = "local";
}
if ((_root._url.indexOf("http://wetdike.wetgenes.com") == 0) || ((_root._url.indexOf("http://www.wetgenes.com") == 0) || (_root._url.indexOf("http://wetgenes.com") == 0))) {
my_server = true;
}
_root.kidsafe = false;
if (server != "local") {
_root.wethidemochiads = false;
_root.skip_wetimport = false;
_root.skip_wetlogin = false;
_root.skip_wetscore = false;
}
var _local4 = _root._url.split("/");
_local4 = _local4[2].split(".");
_local4[0] = _local4[0].toLowerCase();
_local4[1] = _local4[1].toLowerCase();
_local4[2] = _local4[2].toLowerCase();
var _local5 = "";
if ((!_local4[3]) && (_local4[2])) {
_local5 = _local4[1];
} else if ((!_local4[2]) && (_local4[1])) {
_local5 = _local4[0];
}
_root.hosted_domain_test = _local5;
switch (_local5) {
case "auntlee" :
_root.kidsafe = true;
_root.skip_wetimport = true;
_root.wethidemochiads = true;
break;
case "mindjolt" :
_root.skip_wetimport = true;
_root.skip_wetlogin = true;
_root.skip_wetscore = true;
break;
case "ungrounded" :
splash = "splash_ng";
splash_link = "http://www.newgrounds.com/";
break;
case "armorgames" :
splash = "splash_ag";
splash_link = "http://armorgames.com/";
break;
case "kongregate" :
splash = "splash_kg";
splash_link = "http://www.kongregate.com/";
}
if ((!_root.wethidemochiads) && (!_root.wethideloadingmochiads)) {
mochi = true;
}
if (brandead_link != "") {
splash = brandead_image;
splash_link = brandead_link;
}
if (splash) {
mcsplash = gfx.create_clip(mc, null, 400, 300, 220, 220);
mcsplash.splash = gfx.add_clip(mcsplash, splash, null, -300 / 2, -250 / 2);
mcsplash.onRelease = delegate(splashclick);
splash_count = 0;
} else if ((!_root.wethidemochiads) && (!_root.wethideloadingmochiads)) {
mochi_show();
}
}
function splashclick() {
if (splash_link) {
getURL (splash_link, "_blank");
}
}
function update() {
_root.stop();
_root.scalar.apply(mc);
if (splash) {
if (splash_count == (25 * 5)) {
splash_count++;
mcsplash._visible = false;
splash = null;
if ((!_root.wethidemochiads) && (!_root.wethideloadingmochiads)) {
mochi_show();
}
} else if (splash_count > (25 * 4.5)) {
splash_count++;
mcsplash._xscale = mcsplash._xscale * 0.75;
mcsplash._yscale = mcsplash._yscale * 0.75;
mcsplash._alpha = mcsplash._alpha * 0.75;
} else if (splash_count < (25 * 5)) {
splash_count++;
}
} else {
frame++;
}
loaded_percent = Math.floor((_root.getBytesLoaded() * 100) / _root.getBytesTotal());
if ((!_root.wethidemochiads) && (!_root.wethideloadingmochiads)) {
mcmochi._visible = true;
} else {
mcmochi._visible = false;
}
gfx.set_text_html(tf3, 100, 16777215, ("<p align=\"center\"><b>" + Math.floor(loaded_percent)) + "%</b></p>");
if ((loaded_percent >= 100) && ((!splash) && ((!intro) && (!mochi)))) {
clean();
}
}
function clean() {
if (showloading) {
_root.swish.clean();
_root.swish = new Swish({style:"sqr_plode", mc:mc}).setup();
mc.removeMovieClip();
mc = null;
}
Stage.removeListener(this);
_root.gotoAndStop(2);
done = true;
_root._highquality = defuck;
}
function mochi_started() {
mochi = true;
waitfordisplay = false;
}
function mochi_finished() {
mochi = false;
}
function mochi_show() {
MochiAd.showInterLevelAd({id:"18bab4920aa4a276", res:"600x440", clip:mcmochi.dispad, ad_started:delegate(mochi_started), ad_finished:delegate(mochi_finished)});
}
function intro_show() {
}
function intro_hide() {
}
function click(s) {
if (!(s === "text")) {
}
}
//ASSetPropFlags(_local1, null, 1);
var brandead_link = "";
var brandead_image = "splash_brandead";
var done = false;
var loaded_percent = 0;
var frame = 0;
var mochi = false;
}
Symbol 20501 MovieClip [__Packages.Vbrain_urinal] Frame 0
class Vbrain_urinal
{
var up, dirt;
function Vbrain_urinal (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(xml) {
parse_xml(xml, 0);
menuset();
dirt = 0;
}
function clean() {
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
_local6 = true;
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
}
e.nodeName;
}
}
function menuset() {
up.mc.menu = {};
var _local2 = {};
_local2.name = "base";
_local2.items = [];
_local2.items.push({txt:"Use"});
_local2.items.push({txt:"Clean"});
_local2.items.push({txt:"Cancel"});
_local2.menuclick = delegate(menuclick, _local2);
up.mc.menu.base = _local2;
up.mc.getmenu = delegate(getmenu, null);
}
function getmenu(poke) {
if (up.mc.vcobj_menu.base) {
return(up.mc.vcobj_menu.base);
}
return(up.mc.menu.base);
}
function menuclick(poke, item, menu) {
switch (item.txt.toLowerCase()) {
case "use" :
var _local5 = poke.up.focus.cc;
do_use(_local5);
do_dirt(_local5);
poke.hidemenu();
break;
case "clean" :
_local5 = poke.up.focus.cc;
do_clean(_local5);
poke.hidemenu();
break;
default :
poke.hidemenu();
}
menu.name;
}
function do_dirt() {
up.vcobj.send_msg_prop("dirt", dirt + 1);
}
function do_clean() {
up.vcobj.send_msg_prop("dirt", dirt - 1);
}
function do_use(cc) {
up.vcobj.send_msg_prop("focus", cc.vcobj.id);
cc.vcobj.send_msg_prop("focus", up.vcobj.id);
cc.vcobj.send_msg_prop("xyz", (((up.px + ":") + up.py) + ":") + (up.pz - 20));
cc.vcobj.send_msg_prop("idle", "idle_back");
}
function update_vcobj(props) {
if (!props) {
props = up.vcobj.props;
}
if (props.dirt) {
dirt = Math.floor(props.dirt);
if (dirt > 4) {
dirt = 4;
}
if (dirt < 0) {
dirt = 0;
}
up.anim.page_base = "dirt" + dirt;
}
if (props.xyz) {
var _local3 = props.xyz.split(":");
up.px = Math.floor(_local3[0]);
up.py = Math.floor(_local3[1]);
up.pz = Math.floor(_local3[2]);
}
}
function update() {
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20502 MovieClip [__Packages.Vbrain_toilet] Frame 0
class Vbrain_toilet
{
var up, dirt;
function Vbrain_toilet (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(xml) {
parse_xml(xml, 0);
menuset();
dirt = 0;
}
function clean() {
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
_local6 = true;
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
}
e.nodeName;
}
}
function menuset() {
up.mc.menu = {};
var _local2 = {};
_local2.name = "base";
_local2.items = [];
_local2.items.push({txt:"Use"});
_local2.items.push({txt:"Clean"});
_local2.items.push({txt:"Cancel"});
_local2.menuclick = delegate(menuclick, _local2);
up.mc.menu.base = _local2;
up.mc.getmenu = delegate(getmenu, null);
}
function getmenu(poke) {
if (up.mc.vcobj_menu.base) {
return(up.mc.vcobj_menu.base);
}
return(up.mc.menu.base);
}
function menuclick(poke, item, menu) {
switch (item.txt.toLowerCase()) {
case "use" :
var _local5 = poke.up.focus.cc;
do_use(_local5);
do_dirt(_local5);
poke.hidemenu();
break;
case "clean" :
_local5 = poke.up.focus.cc;
do_clean(_local5);
poke.hidemenu();
break;
default :
poke.hidemenu();
}
menu.name;
}
function do_dirt() {
up.vcobj.send_msg_prop("dirt", dirt + 1);
}
function do_clean() {
up.vcobj.send_msg_prop("dirt", dirt - 1);
}
function do_use(cc) {
up.vcobj.send_msg_prop("focus", cc.vcobj.id);
cc.vcobj.send_msg_prop("focus", up.vcobj.id);
cc.vcobj.send_msg_prop("xyz", ((((up.px + 40) + ":") + up.py) + ":") + (up.pz + 40));
cc.vcobj.send_msg_prop("idle", "idle");
}
function update_vcobj(props) {
if (!props) {
props = up.vcobj.props;
}
if (props.dirt) {
dirt = Math.floor(props.dirt);
if (dirt > 4) {
dirt = 4;
}
if (dirt < 0) {
dirt = 0;
}
up.anim.page_base = "open_dirt" + dirt;
}
if (props.xyz) {
var _local3 = props.xyz.split(":");
up.px = Math.floor(_local3[0]);
up.py = Math.floor(_local3[1]);
up.pz = Math.floor(_local3[2]);
}
}
function update() {
if ((up.focus.vcobj.props.focus == up.vcobj.id) && (up.vcobj.props.focus == up.focus.vcobj.id)) {
if ((up.focus.pz == (up.pz + 40)) && (up.focus.px == (up.px + 40))) {
up.anim.page_base = "shut_dirt" + dirt;
} else {
up.anim.page_base = "open_dirt" + dirt;
}
} else {
up.anim.page_base = "open_dirt" + dirt;
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20503 MovieClip [__Packages.PlayAbout] Frame 0
class PlayAbout
{
var up, mcs, tfs, mc, done, steady, update_do;
function PlayAbout (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setbutt(m, n) {
m.onRollOver = delegate(over, n);
m.onRollOut = delegate(notover, n);
m.onReleaseOutside = delegate(notover, n);
m.onRelease = delegate(click, n);
}
function setup() {
_root.popup = this;
mcs = new Array();
tfs = new Array();
mc = gfx.create_clip(_root.mc_popup, null);
mc.cacheAsBitmap = true;
gfx.dropshadow(mc, 5, 45, 0, 1, 20, 20, 2, 3);
mc._y = 0;
mc.dx = 0;
mc._x = -800;
done = false;
steady = false;
gfx.clear(mc);
mc.style.out = -16777216;
mc.style.fill = -2147483648;
gfx.draw_box(mc, 0, 100 + 16, 0 + 16, 600 - 32, 600 - 32);
tfs[0] = gfx.create_text_html(mc, null, 150, 50, 500, 500);
var _local5 = "";
_local5 = _local5 + "<p align='center'><b>WetVille</b> <font size='13'></font> v0.77 <font size='13'>(c) Shi+Kriss Daniels Oct 31 2008<br>";
_local5 = _local5 + "<a target='BOT' href='http://creativecommons.org/licenses/by-nd/2.5/'>Distributed under the CC Attribution-NoDerivs 2.5 Licence.</a>";
_local5 = _local5 + "</font></p>";
_local5 = _local5 + "<br>";
_local5 = _local5 + "<p><a target='_blank' href='http://www.WetGenes.com'>Click here to visit <b>www.WetGenes.com</b> and play more free online games.</a></p>";
tfs[0].multiline = true;
tfs[0].wordWrap = true;
tfs[0].html = true;
tfs[0].selectable = false;
gfx.set_text_html(tfs[0], 22, 16777215, _local5);
mcs[0] = gfx.create_clip(mc, null, 0, 570 - ((220 * 800) / 640), (100 * 800) / 640, (100 * 800) / 640);
setbutt(mcs[0], "wetcoma");
mcs[2] = gfx.add_clip(mc, "auth_kriss", null, 300, (570 - ((220 * 800) / 640)) - 100, 100, 100);
setbutt(mcs[2], "kriss");
mcs[3] = gfx.add_clip(mc, "auth_shi", null, 400, (570 - ((220 * 800) / 640)) - 100, 100, 100);
setbutt(mcs[3], "shi");
_root.bmc.clear_loading();
_root.bmc.remember("wetcoma", bmcache.create_url, {url:"http://swf.wetgenes.com/wavys/wetcoma.png", bmpw:640, bmph:220, bmpt:false, hx:0, hy:0});
mcs[1] = null;
show_loaded();
thunk();
update_do = delegate(update, null);
MainStatic.update_add(_root.updates, update_do);
_root.poker.clear_clicks();
}
function clean() {
if (_root.popup != this) {
return(undefined);
}
MainStatic.update_remove(_root.updates, update_do);
update_do = null;
mc.removeMovieClip();
_root.popup = null;
Mouse.removeListener(this);
_root.poker.clear_clicks();
}
function show_loaded() {
if (mcs[1] == null) {
if (_root.bmc.isloaded("wetcoma")) {
mcs[1] = _root.bmc.create(mcs[0], "wetcoma", null);
}
}
}
function thunk() {
}
function over(s) {
switch (s) {
case "wetcoma" :
_root.poker.ShowFloat("Read this whitarded comic and less of the same at <b>4lfa.com</b> : <font size='13'>Helping to make tomorrow seem more like yesterday.</font>", 25 * 10);
break;
case "kriss" :
_root.poker.ShowFloat("Kriss made teh top secret codes.<br>Click to see his site.", 25 * 10);
break;
case "shi" :
_root.poker.ShowFloat("Shi made the super duper art.<br>Click to see her site.", 25 * 10);
}
}
function notover(s) {
_root.poker.ShowFloat(null, 0);
}
function click(s) {
switch (s) {
case "wetcoma" :
getURL ("http://4lfa.com", "_blank");
break;
case "kriss" :
getURL ("http://XIXs.com", "_blank");
break;
case "shi" :
getURL ("http://esyou.com", "_blank");
}
}
function update() {
show_loaded();
if ((_root.popup == this) && (_root.poker.anykey)) {
if (steady) {
done = true;
mc.dx = _root.scalar.ox;
}
}
if ((_root.popup != this) || (_root.pause)) {
return(undefined);
}
mc._x = mc._x + ((mc.dx - mc._x) / 4);
if (((mc._x - mc.dx) * (mc._x - mc.dx)) < (16 * 16)) {
steady = true;
if (done) {
clean();
}
} else {
steady = false;
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20504 MovieClip [__Packages.Vtv] Frame 0
class Vtv
{
var up, vplay, dx, dy, dz, sx, sy, sz, ox, oy, oz, px, py, pz, mc, vcobj;
function Vtv (_up) {
up = _up;
vplay = new WetVPlay(this);
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(url, xmlopts) {
dx = 0;
dy = 0;
dz = 0;
sx = 0;
sy = 0;
sz = 0;
ox = 0;
oy = 0;
oz = 0;
px = 0;
py = 0;
pz = 0;
mc = gfx.create_clip(up.mc, null);
mc.cc = this;
if (xmlopts) {
parse_xml(xmlopts, 0);
}
vplay.setup(true);
update();
}
function clean() {
vplay.clean();
mc.cc = null;
mc.removeMovieClip();
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
switch (e.nodeName) {
case "xyz" :
var _local7 = e.attributes.x_pos;
if (_local7) {
px = Math.floor(_local7);
}
_local7 = e.attributes.y_pos;
if (_local7) {
py = Math.floor(_local7);
}
_local7 = e.attributes.z_pos;
if (_local7) {
pz = Math.floor(_local7);
}
_local7 = e.attributes.x_siz;
if (_local7) {
sx = Math.floor(_local7);
}
_local7 = e.attributes.y_siz;
if (_local7) {
sy = Math.floor(_local7);
}
_local7 = e.attributes.z_siz;
if (_local7) {
sz = Math.floor(_local7);
}
_local7 = e.attributes.x_off;
if (_local7) {
ox = Math.floor(_local7);
}
_local7 = e.attributes.y_off;
if (_local7) {
oy = Math.floor(_local7);
}
_local7 = e.attributes.z_off;
if (_local7) {
oz = Math.floor(_local7);
}
break;
default :
_local6 = true;
}
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
}
}
}
function update_vcobj(props) {
if (!props) {
props = vcobj.props;
}
}
function update() {
dx = px;
dy = py - sy;
dz = pz;
mc._xscale = (100 * sx) / 800;
mc._yscale = (100 * sy) / 600;
mc._x = (up.x2 + dx) + (dz / 4);
mc._y = (up.y2 + dy) - (dz / 4);
mc._z = dz;
vplay.update();
}
//ASSetPropFlags(_local1, null, 1);
var type_name = "vtv";
}
Symbol 20505 MovieClip [__Packages.WetVillePlay] Frame 0
class WetVillePlay
{
var up, state, mc, comms, room, pixls;
function WetVillePlay (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup() {
state = "none";
mc = gfx.create_clip(up.mc, null);
_root.replay.reset();
comms = new Vcomms(this);
room = new Vroom(this);
comms.setup();
pixls = new OverPixls(up);
pixls.setup();
}
function clean() {
pixls.clean();
room.clean();
comms.clean();
mc.removeMovieClip();
}
function loadcheck() {
if (comms.state != "ready") {
comms.setup();
return("connecting");
}
if (state == "connecting") {
comms.vmsgsend({vcmd:"setup"});
return("ready");
}
return("ready");
}
function update() {
_root.bmc.check_loading();
if (state != "ready") {
state = loadcheck();
_root.poker.ShowFloat(state, 10);
return(undefined);
}
if (comms.state == "loading") {
if (comms.check_loading()) {
_root.poker.ShowFloat(comms.loading, 10);
}
}
_root.replay.apply_keys_to_prekey();
_root.replay.update();
pixls.update();
room.update();
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
}
Symbol 20506 MovieClip [__Packages.Vbrain_pot] Frame 0
class Vbrain_pot
{
var up;
function Vbrain_pot (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(xml) {
parse_xml(xml, 0);
menuset();
update();
up.nodes["1"].balloon = new Vballoon(up.up);
up.nodes["2"].balloon = new Vballoon(up.up);
up.nodes["3"].balloon = new Vballoon(up.up);
up.nodes["1"].balloon.owner = up;
up.nodes["2"].balloon.owner = up;
up.nodes["3"].balloon.owner = up;
up.nodes["1"].balloon.node = up.nodes["1"];
up.nodes["2"].balloon.node = up.nodes["2"];
up.nodes["3"].balloon.node = up.nodes["3"];
up.nodes["1"].balloon.setup();
up.nodes["2"].balloon.setup();
up.nodes["3"].balloon.setup();
}
function clean() {
up.nodes["1"].balloon.clean();
up.nodes["2"].balloon.clean();
up.nodes["3"].balloon.clean();
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
_local6 = true;
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
}
e.nodeName;
}
}
function menuset() {
up.mc.menu = {};
var _local2 = {};
_local2.name = "base";
_local2.items = [];
_local2.items.push({txt:"Use"});
_local2.items.push({txt:"Cancel"});
_local2.menuclick = delegate(menuclick, _local2);
up.mc.menu.base = _local2;
up.mc.getmenu = delegate(getmenu, null);
}
function getmenu(poke) {
if (up.mc.vcobj_menu.base) {
return(up.mc.vcobj_menu.base);
}
return(up.mc.menu.base);
}
function menuclick(poke, item, menu) {
var _local5 = poke.up.focus.cc;
switch (item.txt.toLowerCase()) {
case "use" :
do_use(_local5, "use");
poke.hidemenu();
break;
default :
poke.hidemenu();
}
menu.name;
}
function do_use(cc, dest) {
}
function update_vcobj(props) {
if (!props) {
props = up.vcobj.props;
}
var _local4 = 1;
for ( ; _local4 <= 3 ; _local4++) {
var _local5 = "balloon" + _local4;
if (props[_local5]) {
var _local3 = props[_local5].split(":");
up.nodes["" + _local4].balloon.set_style(_local3[0], Math.floor(_local3[1]), Math.floor(_local3[2]), _local3[3]);
}
}
if (props.xyz) {
var _local3 = props.xyz.split(":");
up.px = Math.floor(_local3[0]);
up.py = Math.floor(_local3[1]);
up.pz = Math.floor(_local3[2]);
}
if (props.rot) {
var _local3 = props.rot.split(":");
up.rx = Math.floor(_local3[0]);
up.ry = Math.floor(_local3[1]);
up.rz = Math.floor(_local3[2]);
}
}
function update() {
up.anim.page_base = "base";
up.nodes["1"].balloon.update();
up.nodes["2"].balloon.update();
up.nodes["3"].balloon.update();
}
//ASSetPropFlags(_local1, null, 1);
var last_dest = "home";
}
Symbol 20507 MovieClip [__Packages.Vbrain_comic] Frame 0
class Vbrain_comic
{
var up, m;
function Vbrain_comic (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(xml) {
parse_xml(xml, 0);
menuset();
update();
}
function clean() {
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
_local6 = true;
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
}
e.nodeName;
}
}
function menuset() {
up.mc.menu = {};
var _local2 = {};
_local2.name = "base";
_local2.items = [];
_local2.items.push({txt:"Cancel"});
_local2.menuclick = delegate(menuclick, _local2);
up.mc.menu.base = _local2;
up.mc.getmenu = delegate(getmenu, null);
}
function getmenu(poke) {
if (up.mc.vcobj_menu.base) {
return(up.mc.vcobj_menu.base);
}
return(up.mc.menu.base);
}
function menuclick(poke, item, menu) {
var _local5 = poke.up.focus.cc;
(menu.name);// not popped
poke.hidemenu();
item.txt.toLowerCase();
}
function do_use(cc, dest) {
}
function update_vcobj(props) {
if (!props) {
props = up.vcobj.props;
}
if (props.xyz) {
var _local3 = props.xyz.split(":");
up.px = Math.floor(_local3[0]);
up.py = Math.floor(_local3[1]);
up.pz = Math.floor(_local3[2]);
}
if (props.image) {
m = gfx.create_clip(up.anim.mc, 1);
m._xscale = 125;
m._yscale = 125;
m.loadMovie(props.image);
m._x = up.anim.x_min;
m._y = up.anim.y_min;
}
}
function update() {
m.forceSmoothing = true;
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20508 MovieClip [__Packages.WetVPlay] Frame 0
class WetVPlay
{
var up, mc, vid, over, loader, vid_ready, spew_ready, oldState, sent_info, vid_id, vid_id_queue, vid_pos_queue;
function WetVPlay (_up) {
up = _up;
}
function delegate(f, d, i) {
return(com.dynamicflash.utils.Delegate.create(this, f, d, i));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup(_nojoin) {
nojoin = _nojoin;
mc = gfx.create_clip(up.mc, null);
mc.vid = gfx.create_clip(mc, null);
vid = gfx.create_clip(mc.vid, null);
over = gfx.create_clip(mc, null);
over.onRelease = delegate(onRelease);
over.hitArea = gfx.create_clip(mc, null);
gfx.clear(over.hitArea);
gfx.draw_box(over.hitArea, 0, 0, 0, 800, 600);
over.hitArea._visible = false;
loader = {};
loader.mcloader = new MovieClipLoader();
loader.mcloader.loadClip("http://www.youtube.com/apiplayer?disablekb=1", vid);
vid_ready = false;
spew_ready = false;
oldState = 0;
}
function clean() {
vid.mute();
vid.stopVideo();
vid.clearVideo();
vid.loadVideoById("00000000000", 0);
vid.mute();
vid.stopVideo();
vid.clearVideo();
vid.destroy();
loader.mcloader.unLoadClip(vid);
mc.removeMovieClip();
mc = null;
}
function onRelease() {
if (vid.getPlayerState() == 1) {
getURL (vid.getVideoUrl(), "_blank");
vid.pauseVideo();
} else {
vid.playVideo();
}
}
function onReady() {
vid.addEventListener("onStateChange", delegate(onStateChange));
vid.addEventListener("onError", delegate(onError));
vid.setSize(800, 600);
_root.sock.gmsg(null, delegate(gmsgback, null));
if (!nojoin) {
_root.sock.chat("/join public.tv");
}
_root.sock.gmsg(null, delegate(gmsgback, null));
gmsgsend({gcmd:"wetv", wetv:"ready"});
sent_info = true;
vid_id = null;
}
function onStateChange(newState) {
if ((newState == 0) && (oldState == 1)) {
gmsgsend({gcmd:"wetv", wetv:"info", video:vid_id, length:0});
if (vid_id_queue) {
play_vid(vid_id_queue, vid_pos_queue);
}
oldState = 0;
}
if (newState == 1) {
oldState = 1;
}
}
function onError(errorCode) {
gmsgsend({gcmd:"wetv", wetv:"info", video:vid_id, length:0});
sent_info = true;
}
function play_vid(id, pos) {
var _local4 = swishnames[rnd() % (swishnames.length - 1)];
vid_id_queue = null;
vid_id = id;
oldState = 0;
vid.stopVideo();
vid.clearVideo();
vid.loadVideoById(id, pos);
oldState = 0;
sent_info = false;
}
function queue_vid(id, pos) {
vid_id_queue = id;
vid_pos_queue = pos;
}
function update() {
if (!vid_ready) {
if (vid.isPlayerLoaded()) {
vid_ready = true;
} else {
return(undefined);
}
}
if (!spew_ready) {
if (_root.sock.connected) {
spew_ready = true;
onReady();
} else {
return(undefined);
}
}
if (!sent_info) {
var _local3 = vid.getDuration();
if (_local3 > 0) {
gmsgsend({gcmd:"wetv", wetv:"info", video:vid_id, length:_local3});
sent_info = true;
}
}
if (_root.popup) {
return(undefined);
}
_root.signals.signal("WetV", "update", this);
}
function do_str(str) {
up.do_str(str);
}
function got_play_msg(msg) {
var _local3 = msg.play.split(",");
if (_local3[0] && (_local3[1])) {
var _local4 = _local3[0];
var _local5 = Math.floor(_local3[1]);
var _local6 = vid.getDuration();
if ((oldState == 1) && ((_local6 > 0) && (_local6 < 10))) {
queue_vid(_local4, _local5);
} else {
play_vid(_local4, _local5);
}
}
}
function gmsgsend(msg) {
if (_root.sock) {
_root.sock.gmsg(msg, delegate(gmsgback, msg));
}
}
function gmsgback(msg, sentmsg) {
if (!sentmsg) {
if (!(msg.gcmd === "wetv")) {
} else if (!(msg.wetv === "play")) {
} else {
got_play_msg(msg);
}
} else if (!(sentmsg.gcmd === "wetv")) {
}
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
var nojoin = false;
var swishnames = ["sqr_shrink", "sqr_rollup", "sqr_plode"];
}
Symbol 20509 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local2 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local2);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local3 = 11000;
var _local4 = options.ad_timeout;
delete options.ad_timeout;
var _local5 = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local6 = _getRes(options);
var _local7 = _local6[0];
var _local8 = _local6[1];
mc._x = _local7 * 0.5;
mc._y = _local8 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local7 * -0.5;
chk._y = _local8 * -0.5;
var _local9 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local9._visible = false;
delete options.no_progress_bar;
} else {
_local9._x = 10;
_local9._y = _local8 - 20;
}
var _local10 = options.color;
delete options.color;
var _local11 = options.background;
delete options.background;
var _local12 = options.outline;
delete options.outline;
var _local13 = _local9.createEmptyMovieClip("_outline", 1);
_local13.beginFill(_local11);
_local13.moveTo(0, 0);
_local13.lineTo(_local7 - 20, 0);
_local13.lineTo(_local7 - 20, 10);
_local13.lineTo(0, 10);
_local13.lineTo(0, 0);
_local13.endFill();
var _local14 = _local9.createEmptyMovieClip("_inside", 2);
_local14.beginFill(_local10);
_local14.moveTo(0, 0);
_local14.lineTo(_local7 - 20, 0);
_local14.lineTo(_local7 - 20, 10);
_local14.lineTo(0, 10);
_local14.lineTo(0, 0);
_local14.endFill();
_local14._xscale = 0;
var _local15 = _local9.createEmptyMovieClip("_outline", 3);
_local15.lineStyle(0, _local12, 100);
_local15.moveTo(0, 0);
_local15.lineTo(_local7 - 20, 0);
_local15.lineTo(_local7 - 20, 10);
_local15.lineTo(0, 10);
_local15.lineTo(0, 0);
chk.ad_msec = _local3;
chk.ad_timeout = _local4;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = _local5;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local3 = this.mc._mochiad_wait;
_local3.server_control = true;
_local3.started = getTimer();
_local3.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local2 = this._parent._parent;
var _local3 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local2.getBytesTotal();
var _local7 = _local2.getBytesLoaded();
var _local8 = (100 * _local7) / _local6;
var _local9 = (100 * _local4) / chk.ad_msec;
var _local10 = this._mochiad_bar._inside;
var _local11 = Math.min(100, Math.min(_local8 || 0, _local9));
_local11 = Math.max(this.last_pcnt, _local11);
this.last_pcnt = _local11;
_local10._xscale = _local11;
options.ad_progress(_local11);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local8});
if (_local8 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local12 = _local3.getBytesTotal();
if ((_local12 > 0) || (typeof(_local12) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local4 > chk.ad_timeout) && (_local8 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local4 > chk.ad_msec) {
_local5 = true;
}
if ((_local6 > 0) && ((_local7 >= _local6) && (_local5))) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local2 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local2);
var clip = options.clip;
var _local3 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local5 = _local4[0];
var _local6 = _local4[1];
mc._x = _local5 * 0.5;
mc._y = _local6 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local3;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local7 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local2 = this._parent._mochiad_ctr;
var _local3 = getTimer() - this.started;
var _local4 = false;
if (!chk.showing) {
var _local5 = _local2.getBytesTotal();
if ((_local5 > 0) || (typeof(_local5) == "undefined")) {
_local4 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local3 > chk.ad_timeout) {
options.ad_failed();
_local4 = true;
}
}
if (_local4) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local2 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local2);
var clip = options.clip;
var _local3 = 11000;
var _local4 = options.ad_timeout;
delete options.ad_timeout;
var _local5 = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local6 = clip._mochiad;
_local6.onUnload = function () {
options.ad_finished();
};
var _local7 = _getRes(options);
var _local8 = _local7[0];
var _local9 = _local7[1];
_local6._x = _local8 * 0.5;
_local6._y = _local9 * 0.5;
var chk = _local6.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local3;
chk.ad_timeout = _local4;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = _local5;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
_local6.lc.adLoaded = options.ad_loaded;
_local6.lc.adSkipped = options.ad_skipped;
_local6.lc.adjustProgress = function (msec) {
var _local3 = this.mc._mochiad_wait;
_local3.server_control = true;
_local3.started = getTimer();
_local3.ad_msec = msec - 250;
};
_local6.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
_local6.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local2 = this._parent._mochiad_ctr;
var _local3 = getTimer() - this.started;
var _local4 = false;
if (!chk.showing) {
var _local5 = _local2.getBytesTotal();
if ((_local5 > 0) || (typeof(_local5) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local3 > chk.ad_timeout) {
options.ad_failed();
_local4 = true;
}
}
if (_local3 > chk.ad_msec) {
_local4 = true;
}
if (_local4) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local3 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local3);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local3);
}
}
return(_local3);
}
static function load(options) {
var _local3 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local3);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local4 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local4._mochiad_loaded) {
return(null);
}
var _local5 = options.depth;
delete options.depth;
var _local6 = _local4.createEmptyMovieClip("_mochiad", _local5);
var _local7 = _getRes(options);
options.res = (_local7[0] + "x") + _local7[1];
options.server = options.server + options.id;
delete options.id;
_local4._mochiad_loaded = true;
var _local8 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in options) {
_local8[k] = options[k];
}
var _local9 = _local8.server;
delete _local8.server;
var _local10 = _allowDomains(_local9);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local11 = new LocalConnection();
var _local12 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local11.mc = _local6;
_local11.name = _local12;
_local11.hostname = _local10;
_local11.allowDomain = function (d) {
return(true);
};
_local11.allowInsecureDomain = _local11.allowDomain;
_local11.connect(_local12);
_local6.lc = _local11;
_local8.lc = _local12;
_local8.st = getTimer();
_local8.loadMovie(_local9 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local2 = System.security;
if (_local2.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local4 = 0;
var _local5 = 0;
if (typeof(options.res) != "undefined") {
var _local6 = options.res.split("x");
_local4 = _global.parseFloat(_local6[0]);
_local5 = _global.parseFloat(_local6[1]);
} else {
_local4 = _local3.xMax - _local3.xMin;
_local5 = _local3.yMax - _local3.yMin;
}
if ((_local4 == 0) || (_local5 == 0)) {
_local4 = Stage.width;
_local5 = Stage.height;
}
return([_local4, _local5]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var k in defaults) {
_local4[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local4[k] = options[k];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local6 = 0;
for ( ; _local6 < _local5.length ; _local6++) {
var _local7 = _local5[_local6].split("=");
_local4[_global.unescape(_local7[0])] = _global.unescape(_local7[1]);
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local5 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local5);
break;
case "runMethod" :
var _local6 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local6);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local5 = objectName.split(".");
var _local6 = 0;
for ( ; _local6 < (_local5.length - 1) ; _local6++) {
if ((base[_local5[_local6]] == undefined) || (base[_local5[_local6]] == null)) {
return(undefined);
}
base = base[_local5[_local6]];
}
base[_local5[_local6]] = value;
}
static function getValue(base, objectName) {
var _local4 = objectName.split(".");
var _local5 = 0;
for ( ; _local5 < (_local4.length - 1) ; _local5++) {
if ((base[_local4[_local5]] == undefined) || (base[_local4[_local5]] == null)) {
return(undefined);
}
base = base[_local4[_local5]];
}
return(base[_local4[_local5]]);
}
static function runMethod(base, methodName, argsArray) {
var _local5 = methodName.split(".");
var _local6 = 0;
for ( ; _local6 < (_local5.length - 1) ; _local6++) {
if ((base[_local5[_local6]] == undefined) || (base[_local5[_local6]] == null)) {
return(undefined);
}
base = base[_local5[_local6]];
}
if (typeof(base[_local5[_local6]]) == "function") {
return(base[_local5[_local6]].apply(base, argsArray));
}
return(undefined);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20510 MovieClip [__Packages.WTF] Frame 0
class WTF
{
var show_nowplaying, scale_800x600, v, mc, mc2, mc_import, tf, import_swf_name, display, sc, last_track, last_artist;
function WTF (stropts) {
show_nowplaying = false;
scale_800x600 = false;
if (stropts) {
var _local5 = stropts.split(",");
var _local3 = 0;
for ( ; _local3 < _local5.length ; _local3++) {
switch (_local5[_local3]) {
case "show_nowplaying" :
show_nowplaying = true;
break;
case "scale_800x600" :
scale_800x600 = true;
}
}
}
v = [];
v.name = "WetVille";
v.site = "";
v.number = "0.77";
v.stamp = "Oct 31 2008";
v.stamp_number = "20081031";
v.root = "";
System.security.allowDomain(_root._url);
System.security.allowDomain(_root._url.split("/")[2]);
System.security.allowDomain("data.wetgenes.com");
System.security.allowDomain("s3.wetgenes.com");
System.security.allowDomain("www.wetgenes.com");
System.security.allowDomain("swf.wetgenes.com");
System.security.allowDomain("www.wetgenes.local");
System.security.allowDomain("swf.wetgenes.local");
System.security.allowDomain("*");
mc = gfx.create_clip(_root, (16384 + 32) - 17);
mc2 = gfx.create_clip(mc, null);
mc_import = gfx.create_clip(_root, (16384 + 32) - 18);
mc.onEnterFrame = delegate(update, null);
gfx.dropshadow(mc2, 2, 45, 0, 1, 4, 4, 2, 3);
tf = gfx.create_text_html(mc2, null, 0, 0, 400, 300);
if (_root.host == "swf.wetgenes.local") {
import_swf_name = "http://swf.wetgenes.local/swf/WTF_import.swf?hash=" + _global.escape(_root.hash);
} else {
import_swf_name = "http://swf.wetgenes.com/swf/WTF_import.swf?hash=" + _global.escape(_root.hash);
}
display = -1;
Mouse.addListener(this);
if (show_nowplaying) {
sc = new ScrollOn(this);
sc.setup();
sc.fntsiz = 13;
sc.mc._alpha = 50;
sc.mc._y = 0;
sc.mc._x = 0;
sc.w = get_width() - 45;
}
__com_mochibot__("2170f459", _root, 10301);
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function get_width() {
if (scale_800x600) {
return(800);
}
return(Stage.width);
}
function get_height() {
if (scale_800x600) {
return(600);
}
return(Stage.height);
}
function logindone() {
if (!donelogindone) {
if (!_root.skip_wetimport) {
if (_root.login.opt_chat) {
mc_import.loadMovie(import_swf_name);
loaded_import = true;
}
}
donelogindone = true;
} else if (!_root.skip_wetimport) {
if (_root.login.opt_chat) {
if (!loaded_import) {
mc_import.loadMovie(import_swf_name);
loaded_import = true;
}
}
}
}
function onMouseDown() {
if (display) {
ontarget = true;
}
}
function onMouseUp() {
if (display && (ontarget)) {
getURL ("http://www.WetGenes.com", "_blank");
}
ontarget = false;
}
function onRelease() {
}
function update() {
if (scale_800x600) {
_root.scalar.apply(mc);
}
var _local3 = false;
var _local4 = false;
if ((mc._xmouse > (get_width() - 32)) && ((mc._ymouse > (get_height() - 16)) && ((mc._xmouse <= get_width()) && (mc._ymouse <= get_height())))) {
_local4 = true;
}
if (pop_state || (pop_disable)) {
if (_local4) {
if (!pop_disable) {
_local3 = true;
}
} else {
pop_disable = false;
}
} else if (_local4) {
if (_root.poker.poke_now) {
pop_disable = true;
} else {
_local3 = true;
}
}
if (pop_delay > 0) {
pop_delay--;
}
if (!_local3) {
pop_delay = 10;
}
if (pop_delay == 0) {
pop_state = true;
} else {
pop_state = false;
}
if (pop_state != display) {
display = pop_state;
if (display) {
var _local2 = "";
_local2 = _local2 + "<p align='right'>WetVille 0.77 (c) Shi+Kriss Daniels Oct 31 2008</p>";
_local2 = _local2 + "<p align='right'>Distributed under the CC Attribution-NoDerivs 2.5 Licence.</p>";
_local2 = _local2 + "<p align='right'>http://creativecommons.org/licenses/by-nd/2.5/</p>";
_local2 = _local2 + "<p align='right'>Click the mouse button right now to visit</p>";
_local2 = _local2 + "<p align='right'>www.WetGenes.com for more of everything.</p>";
gfx.set_text_html(tf, 13, 16777215, _local2);
} else {
var _local2 = "";
_local2 = _local2 + "<p align='right'>YAY</p>";
gfx.set_text_html(tf, 13, 16777215, _local2);
}
}
if (display) {
tf._x = (get_width() - 400) - 24;
tf._y = (get_height() - 100) - 4;
mc2._alpha = 100;
} else {
tf._x = (get_width() - 400) - 2;
tf._y = (get_height() - 15) - 4;
mc2._alpha = 25;
}
if (show_nowplaying) {
var _local5 = _root.wetplay.wetplayMP3.disp_title;
var _local6 = _root.wetplay.wetplayMP3.disp_creator;
var _local7 = _root.wetplay.wetplayMP3.disp_info;
sc.w = get_width() - 45;
if ((_local5 != "") && ((_local6 != "") && ((_local5 != last_track) || (_local6 != last_artist)))) {
var _local2 = ((("Now Playing <b>" + _local5) + "</b> by <b>") + _local6) + "</b>. Click here to know more.";
sc.next = {url:_local7, txt:_local2, target:"_blank"};
last_track = _local5;
last_artist = _local6;
}
sc.update();
}
}
function __com_mochibot__(swfid, mc, lv) {
var _local12 = "__mochibot__";
var _local13 = "mochibot.com";
var _local6 = (_global ? (_global) : (_level0._root));
if (_local6[_local12 + swfid]) {
return(_local6[_local12 + swfid]);
}
var _local7 = System.security;
var _local5 = mc._root.getSWFVersion;
var _local8 = (_local5 ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!_local7) {
_local7 = {};
}
var _local9 = _local7.sandboxType;
if (_local9 == "localWithFile") {
return(null);
}
_local5 = _local7.allowDomain;
if (_local5) {
_local7.allowDomain(_local13);
}
_local5 = _local7.allowInsecureDomain;
if (_local5) {
_local7.allowInsecureDomain(_local13);
}
var _local10 = ((((((((((("http://" + _local13) + "/my/core.swf?mv=5&fv=") + _local8) + "&v=") + _global.escape(getVersion())) + "&swfid=") + _global.escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (_local9 ? ("&sb=" + _local9) : "");
lv = ((_local8 > 6) ? (mc.getNextHighestDepth()) : ((_local6[_local12 + "level"] ? (_local6[_local12 + "level"] + 1) : (lv))));
_local6[_local12 + "level"] = lv;
var _local11 = mc.createEmptyMovieClip(_local12 + swfid, lv);
_local11.loadMovie(_local10);
return(_local11);
}
//ASSetPropFlags(_local1, null, 1);
var corner = "BR";
var ontarget = false;
var donelogindone = false;
var loaded_import = false;
var pop_state = false;
var pop_disable = false;
var pop_delay = 0;
}
Symbol 20511 MovieClip [__Packages.Vtard] Frame 0
class Vtard
{
var up, balloon, movetype, mc, minion, sx, sy, sz, px, py, pz, tx, ty, tz, vx, vy, vz, anim, idle_type, held, hold, talk, vcobj, brain, roomfrom, focus, frame, frame_wait, dx, dy, dz;
function Vtard (_up) {
up = _up;
balloon = new Vballoon(up);
balloon.owner = this;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(nam) {
movetype = "door";
mc = gfx.create_clip(up.mc, null);
mc.cc = this;
menuset();
mc.hitArea = gfx.create_clip(mc, 65535);
mc.hitArea._visible = false;
gfx.clear(mc.hitArea);
gfx.draw_box(mc.hitArea, 0, -30, -70, 60, 70);
minion = new Minion(this);
minion.setup(nam, 50, 94);
sx = 0;
sy = 0;
sz = 0;
px = 0;
py = 0;
pz = 0;
tx = 0;
ty = 0;
tz = 0;
vx = 0;
vy = 0;
vz = 0;
anim = null;
idle_type = "idle";
balloon.setup();
}
function set_title(str) {
if (!mc.title) {
var _local3 = gfx.create_clip(mc, null, 0, -90);
_local3.tf = gfx.create_text_html(_local3, null, 0, 0, 200, 25);
_local3._visible = false;
mc.title = _local3;
}
var _local3 = mc.title;
gfx.set_text_html(_local3.tf, 16, 16777215, ("<b>" + str) + "</b>");
_local3.w = _local3.tf.textWidth;
_local3.h = _local3.tf.textHeight;
_local3.tf._x = (-_local3.w) / 2;
_local3.tf._y = (-_local3.h) / 2;
gfx.clear(_local3);
_local3.style.fill = -16777216;
gfx.draw_rounded_rectangle(_local3, 10, 10, 0, (((-_local3.w) / 2) - 10) - 2, (((-_local3.h) / 2) - 10) - 1, ((_local3.w + 20) + 6) + 4, (_local3.h + 20) + 6);
}
function load_xml(url) {
minion.load_xml(url);
}
function clean() {
balloon.clean();
held.hold = null;
hold.held = null;
talk.clean();
talk = null;
mc.cc = null;
mc.removeMovieClip();
mc = null;
}
function menuset() {
mc.menu = {};
var _local2 = {};
_local2.name = "base";
_local2.items = [];
if (up.focus == mc) {
_local2.items.push({txt:"Cancel"});
_local2.items.push({txt:"Emote"});
_local2.items.push({txt:"Reload Room"});
_local2.items.push({txt:"Choose Avatar"});
} else {
_local2.items.push({txt:"Cancel"});
if (held && ((held.hold == this) && (held == up.up.poker.cc))) {
_local2.items.push({txt:"Drop"});
} else {
_local2.items.push({txt:"Pick up"});
}
_local2.items.push({txt:"Give"});
}
_local2.menuclick = delegate(menuclick, _local2);
mc.menu.base = _local2;
_local2 = {};
_local2.name = "give";
_local2.items = [];
_local2.items.push({txt:"Balloon"});
_local2.items.push({txt:"Cancel"});
_local2.menuclick = delegate(menuclick, _local2);
mc.menu.give = _local2;
_local2 = {};
_local2.name = "emote";
_local2.items = [];
_local2.items.push({txt:"Cancel"});
_local2.items.push({txt:"idle_right"});
_local2.items.push({txt:"idle_back"});
_local2.items.push({txt:"idle_left"});
_local2.items.push({txt:"Teapot"});
_local2.items.push({txt:"Angry"});
_local2.items.push({txt:"Confused"});
_local2.items.push({txt:"Determind"});
_local2.items.push({txt:"Devious"});
_local2.items.push({txt:"Embarrassed"});
_local2.items.push({txt:"Energetic"});
_local2.items.push({txt:"Excited"});
_local2.items.push({txt:"Happy"});
_local2.items.push({txt:"Indescribable"});
_local2.items.push({txt:"Nerdy"});
_local2.items.push({txt:"Sad"});
_local2.items.push({txt:"Scared"});
_local2.items.push({txt:"Sleepy"});
_local2.items.push({txt:"Thoughtful"});
_local2.items.push({txt:"Working"});
_local2.items.push({txt:"Dance"});
_local2.menuclick = delegate(menuclick, _local2);
mc.menu.emote = _local2;
_local2 = {};
_local2.name = "avatar";
_local2.items = [];
_local2.items.push({txt:"Cancel"});
_local2.items.push({txt:"boi"});
_local2.items.push({txt:"gurl"});
_local2.items.push({txt:"reset"});
_local2.menuclick = delegate(menuclick, _local2);
mc.menu.avatar = _local2;
_local2 = {};
_local2.name = "avatar_boy";
_local2.items = [];
_local2.items.push({txt:"Cancel"});
_local2.items.push({txt:"bboy"});
_local2.items.push({txt:"pirate punk dude"});
_local2.items.push({txt:"emo gof fag"});
_local2.items.push({txt:"joker"});
_local2.items.push({txt:"matrix boy"});
_local2.items.push({txt:"vlad"});
_local2.items.push({txt:"clown boy"});
_local2.items.push({txt:"geek boy"});
_local2.items.push({txt:"rocker billy"});
_local2.menuclick = delegate(menuclick, _local2);
mc.menu.avatar_boy = _local2;
_local2 = {};
_local2.name = "avatar_girl";
_local2.items = [];
_local2.items.push({txt:"Cancel"});
_local2.items.push({txt:"bgirl"});
_local2.items.push({txt:"bunny chik"});
_local2.items.push({txt:"emo gof whore"});
_local2.items.push({txt:"killer blonde"});
_local2.items.push({txt:"lib killer"});
_local2.items.push({txt:"pirate punk chik"});
_local2.items.push({txt:"red head stabber"});
_local2.items.push({txt:"matrix chic"});
_local2.items.push({txt:"mystique"});
_local2.items.push({txt:"storm"});
_local2.items.push({txt:"cheer leader"});
_local2.items.push({txt:"clown girl"});
_local2.items.push({txt:"geek girl"});
_local2.items.push({txt:"rocker girl"});
_local2.menuclick = delegate(menuclick, _local2);
mc.menu.avatar_girl = _local2;
mc.getmenu = delegate(getmenu, null);
}
function getmenu(poke) {
menuset();
if (mc.vcobj_menu.base) {
return(mc.vcobj_menu.base);
}
return(mc.menu.base);
}
function menuclick(poke, item, menu) {
switch (menu.name) {
default :
switch (item.txt.toLowerCase()) {
case "choose avatar" :
poke.showmenu(mc.menu.avatar);
break;
case "pick up" :
case "drop" :
if (held && ((held.hold == this) && (held == poke.cc))) {
held.vcobj.send_msg_prop("hold", "*");
vcobj.send_msg_prop("held", "*");
} else {
vcobj.send_msg_prop("held", poke.cc.vcobj.id);
poke.cc.vcobj.send_msg_prop("hold", vcobj.id);
}
poke.hidemenu();
break;
case "reload room" :
vcobj.send_msg_setup();
poke.hidemenu();
break;
case "emote" :
poke.showmenu(mc.menu.emote);
break;
case "give" :
poke.showmenu(mc.menu.give);
break;
case "focus" :
poke.up.focus = mc;
poke.hidemenu();
break;
default :
poke.hidemenu();
}
break;
case "give" :
switch (item.txt.toLowerCase()) {
case "balloon" :
poke.hidemenu();
vcobj.send_msg_prop("use", "give balloon");
break;
default :
poke.hidemenu();
}
break;
case "avatar" :
switch (item.txt.toLowerCase()) {
case "boi" :
poke.showmenu(mc.menu.avatar_boy);
break;
case "gurl" :
poke.showmenu(mc.menu.avatar_girl);
break;
case "reset" :
vcobj.send_msg_prop("avatar", "me");
poke.hidemenu();
break;
default :
poke.hidemenu();
}
break;
case "avatar_boy" :
switch (item.txt.toLowerCase()) {
case "cancel" :
poke.hidemenu();
break;
default :
vcobj.send_msg_prop("avatar", item.txt.toLowerCase());
poke.hidemenu();
}
break;
case "avatar_girl" :
switch (item.txt.toLowerCase()) {
case "cancel" :
poke.hidemenu();
break;
default :
vcobj.send_msg_prop("avatar", item.txt.toLowerCase());
poke.hidemenu();
}
break;
case "emote" :
switch (item.txt.toLowerCase()) {
case "cancel" :
poke.hidemenu();
vcobj.send_msg_prop("idle", "idle");
break;
default :
vcobj.send_msg_prop("idle", item.txt.toLowerCase());
poke.hidemenu();
}
}
}
function update_vcobj(props) {
brain.update_vcobj(props);
if (!props) {
props = vcobj.props;
}
if (props.roomfrom) {
roomfrom = props.roomfrom;
}
if (props.xyz) {
var _local3 = props.xyz.split(":");
tx = Math.floor(_local3[0]);
ty = Math.floor(_local3[1]);
tz = Math.floor(_local3[2]);
}
if (props.idle) {
idle_type = props.idle;
}
if (props.victim) {
victim_name = props.victim;
}
if (props.balloon) {
var _local3 = props.balloon.split(":");
balloon.set_style(_local3[1], Math.floor(_local3[2]), Math.floor(_local3[3]), Math.floor(_local3[4]));
}
if (props.focus) {
focus = vcobj.up.vcobjs[props.focus].vobj;
}
if (props.held) {
var _local4 = vcobj.up.vcobjs[props.held];
if (_local4) {
held = _local4.vobj;
} else {
held = null;
}
}
if (props.hold) {
var _local4 = vcobj.up.vcobjs[props.hold];
if (_local4) {
hold = _local4.vobj;
} else {
hold = null;
}
}
}
function update() {
if (movetype == "door") {
var _local6 = 0;
for ( ; _local6 < up.up.objs.length ; _local6++) {
var _local7 = up.up.objs[_local6];
if (_local7.type == "door") {
if (!_local8) {
var _local8 = _local7;
} else if (_local7.brain.dest == roomfrom) {
var _local8 = _local7;
}
}
}
if (_local8) {
movetype = undefined;
px = _local8.px;
py = _local8.py;
pz = _local8.pz;
}
}
brain.update();
vx = 0;
vz = 0;
vx = tx - px;
vz = tz - pz;
var _local2 = (vx * vx) + (vz * vz);
if (_local2 > (3 * 3)) {
_local2 = Math.sqrt(_local2);
vx = (vx * 3) / _local2;
vz = (vz * 3) / _local2;
}
px = px + vx;
py = py + vy;
pz = pz + vz;
if (px < (up.x3_min + 20)) {
px = up.x3_min + 20;
}
if (py < (up.y3_min + 0)) {
py = up.y3_min + 0;
}
if (pz < (up.z3_min + 20)) {
pz = up.z3_min + 20;
}
if (px > (up.x3_max - 20)) {
px = up.x3_max - 20;
}
if (py > (up.y3_max - 0)) {
py = up.y3_max - 0;
}
if (pz > (up.z3_max - 20)) {
pz = up.z3_max - 20;
}
var _local3 = Math.floor((px + 5) / 10) * 10;
var _local4 = Math.floor((py + 5) / 10) * 10;
var _local5 = Math.floor((pz + 5) / 10) * 10;
if ((vx == 0) && (vz == 0)) {
if (anim != "idle") {
anim = "idle";
frame = 0;
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
} else if ((vz == 0) || (Math.abs(vx / vz) > 0.75)) {
if (vx > 0) {
if (anim != "right") {
anim = "right";
frame = 3;
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
} else if (anim != "left") {
anim = "left";
frame = 3;
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
} else if (vz > 0) {
if (anim != "in") {
anim = "in";
frame = 3;
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
} else if (anim != "out") {
anim = "out";
frame = 3;
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
switch (anim) {
case "idle" :
frame_wait++;
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
minion.display(idle_type, frame);
break;
case "left" :
if (held && (held.hold == this)) {
break;
}
frame_wait++;
var _local9 = (_local3 - dx) / -10;
if (_local9 != 0) {
frame = frame + _local9;
frame_wait = 0;
}
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 8;
minion.display("left", frame);
break;
case "right" :
if (held && (held.hold == this)) {
} else {
frame_wait++;
_local9 = (_local3 - dx) / 10;
if (_local9 != 0) {
frame = frame + _local9;
frame_wait = 0;
}
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 8;
minion.display("right", frame);
break;
if (held && (held.hold == this)) {
} else {
frame_wait++;
_local9 = (_local5 - dz) / 10;
if (_local9 != 0) {
frame = frame + _local9;
frame_wait = 0;
}
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 4;
minion.display("in", frame);
break;
if (held && (held.hold == this)) {
} else {
frame_wait++;
_local9 = (_local5 - dz) / -10;
if (_local9 != 0) {
frame = frame + _local9;
frame_wait = 0;
}
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 4;
minion.display("out", frame);
}
}
}
case "in" :
if (held && (held.hold == this)) {
} else {
frame_wait++;
_local9 = (_local5 - dz) / 10;
if (_local9 != 0) {
frame = frame + _local9;
frame_wait = 0;
}
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 4;
minion.display("in", frame);
break;
if (held && (held.hold == this)) {
} else {
frame_wait++;
_local9 = (_local5 - dz) / -10;
if (_local9 != 0) {
frame = frame + _local9;
frame_wait = 0;
}
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 4;
minion.display("out", frame);
}
}
case "out" :
if (held && (held.hold == this)) {
} else {
frame_wait++;
_local9 = (_local5 - dz) / -10;
if (_local9 != 0) {
frame = frame + _local9;
frame_wait = 0;
}
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 4;
minion.display("out", frame);
}
}
if (held && (held.hold == this)) {
if (held.mc._rotation == 90) {
dx = held.dx;
dy = held.dy - 50;
dz = held.dz;
} else {
dx = held.dx - 30;
dy = held.dy - 100;
dz = held.dz;
}
mc._x = (up.x2 + dx) + (dz / 4);
mc._y = (up.y2 + dy) - (dz / 4);
mc._z = dz;
mc._rotation = 90;
tx = held.mc.cc.tx;
ty = held.mc.cc.ty;
tz = held.mc.cc.tz;
} else {
mc._x = (up.x2 + dx) + (dz / 4);
mc._y = (up.y2 + dy) - (dz / 4);
mc._z = dz;
mc._rotation = 0;
}
balloon.update();
}
//ASSetPropFlags(_local1, null, 1);
var type_name = "vtard";
var victim_name = "";
}
Symbol 20512 MovieClip [__Packages.WetVille] Frame 0
class WetVille
{
var v, setup_done, game_seed, game_seed_today, game_seed_start, mc, state_last, state, state_next, login, play, menu, about, high, code, old_time, update_time;
function WetVille () {
var _local2 = new Date();
v = [];
v.name = "WetVille";
v.site = "";
v.number = "0.77";
v.stamp = "Oct 31 2008";
v.stamp_number = "20081031";
setup_done = false;
game_seed = Math.floor((_local2.getTime() / 1000) / ((24 * 60) * 60)) & 65535;
game_seed_today = game_seed;
game_seed_start = game_seed - (game_seed % 10);
mc = gfx.create_clip(_root, null);
mc.onEnterFrame = delegate(update);
mc.scrollRect = new flash.geom.Rectangle(0, 0, _root.scalar.ox, _root.scalar.oy);
_root.wtf = new WTF("show_nowplaying");
var _local8 = MainStatic.get_base_context_menu(this);
var _local10 = function () {
this.state_next = "menu";
};
var _local9 = new ContextMenuItem("Quit to Main Menu. (Retry)", delegate(_local10));
_local8.customItems.push(_local9);
_root.menu = _local8;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
static function main() {
if (_root.kongregateServices != undefined) {
_root.kongregateServices.connect();
_root.wethidemochiads = true;
}
var _local2 = function (a, b) {
if (_root[a] == undefined) {
_root[a] = b;
}
};
_local2("host", "swf.wetgenes.com");
_root.gotoAndStop(1);
_local2("wp_xspf", "http://swf.wetgenes.com/swf/WetVille.xspf");
_local2("wp_auto", 0);
_local2("wp_shuffle", 0);
_local2("wp_back", -16777216);
_local2("wp_fore", -1);
_root.cacheAsBitmap = false;
_root.newdepth = 1;
_root.mc_popup = gfx.create_clip(_root, 16383);
_root.popup = null;
_root.updates = MainStatic.update_setup();
_root.urlmap = new URLmap();
_root.bmc = new bmcache();
_root.scalar = new Scalar(800, 600);
_root.poker = new Poker(false);
_root.loading = new Loading(true);
_root.replay = new Replay();
_root.ville = new WetVille();
_root.signals = new BetaSignals(_root.ville);
_root.comms = new BetaComms(_root.ville);
_root.wetplay = new WetPlayIcon();
}
function setup() {
state_last = null;
state = null;
state_next = null;
login = new Login(this);
play = new WetVillePlay(this);
menu = play;
about = new PlayAbout(this);
high = new PlayHigh(this);
code = new PlayCode(this);
state_next = "login";
}
function update() {
var _local2 = new Date();
var _local3 = _local2.getTime();
MainStatic.choose_and_apply_scalar(this, "wide");
if ((!setup_done) && ((_root.getBytesLoaded() == _root.getBytesTotal()) && (_root.loading.done && (!_root.wetplay.first_time)))) {
_root.gotoAndStop(2);
setup();
setup_done = true;
}
if (!setup_done) {
MainStatic.update_do(_root.updates);
return(undefined);
}
if (state_next != null) {
if (state) {
this[state].clean();
}
state_last = state;
state = state_next;
state_next = null;
if (state) {
this[state].setup();
}
_local3 = _local2.getTime();
old_time = _local3;
update_time = 0;
}
if (state) {
update_time = Math.floor((update_time * 3) / 4);
update_time = update_time + (_local3 - old_time);
if (update_time > 200) {
update_time = 200;
}
while (update_time >= 40) {
MainStatic.update_do(_root.updates);
this[state].update();
update_time = update_time - 40;
}
old_time = _local3;
}
}
function clean() {
}
//ASSetPropFlags(_local1, null, 1);
var level_idx = 1;
var tard_idx = 1;
}
Symbol 20513 MovieClip [__Packages.Vbrain_sink] Frame 0
class Vbrain_sink
{
var up;
function Vbrain_sink (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(xml) {
parse_xml(xml, 0);
menuset();
}
function clean() {
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
_local6 = true;
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
}
e.nodeName;
}
}
function menuset() {
up.mc.menu = {};
var _local2 = {};
_local2.name = "base";
_local2.items = [];
_local2.items.push({txt:"Use"});
_local2.items.push({txt:"Cancel"});
_local2.menuclick = delegate(menuclick, _local2);
up.mc.menu.base = _local2;
up.mc.getmenu = delegate(getmenu, null);
}
function getmenu(poke) {
if (up.mc.vcobj_menu.base) {
return(up.mc.vcobj_menu.base);
}
return(up.mc.menu.base);
}
function menuclick(poke, item, menu) {
switch (item.txt.toLowerCase()) {
case "use" :
var _local5 = poke.up.focus.cc;
do_use(_local5);
poke.hidemenu();
break;
default :
poke.hidemenu();
}
menu.name;
}
function do_use(cc) {
cc.vcobj.send_msg_prop("xyz", ((((up.px + 40) + ":") + up.py) + ":") + ((up.pz + 80) + 20));
cc.vcobj.send_msg_prop("idle", "idle");
}
function update_vcobj(props) {
if (!props) {
props = up.vcobj.props;
}
if (props.xyz) {
var _local3 = props.xyz.split(":");
up.px = Math.floor(_local3[0]);
up.py = Math.floor(_local3[1]);
up.pz = Math.floor(_local3[2]);
}
}
function update() {
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20514 MovieClip [__Packages.Vbrain_candle] Frame 0
class Vbrain_candle
{
var up;
function Vbrain_candle (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(xml) {
parse_xml(xml, 0);
menuset();
update();
}
function clean() {
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
_local6 = true;
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
}
e.nodeName;
}
}
function menuset() {
up.mc.menu = {};
var _local2 = {};
_local2.name = "base";
_local2.items = [];
_local2.items.push({txt:"Cancel"});
_local2.menuclick = delegate(menuclick, _local2);
up.mc.menu.base = _local2;
up.mc.getmenu = delegate(getmenu, null);
}
function getmenu(poke) {
if (up.mc.vcobj_menu.base) {
return(up.mc.vcobj_menu.base);
}
return(up.mc.menu.base);
}
function menuclick(poke, item, menu) {
var _local5 = poke.up.focus.cc;
switch (item.txt.toLowerCase()) {
case "use" :
do_use(_local5, "use");
poke.hidemenu();
break;
default :
poke.hidemenu();
}
menu.name;
}
function do_use(cc, dest) {
}
function update_vcobj(props) {
if (!props) {
props = up.vcobj.props;
}
if (props.xyz) {
var _local3 = props.xyz.split(":");
up.px = Math.floor(_local3[0]);
up.py = Math.floor(_local3[1]);
up.pz = Math.floor(_local3[2]);
}
if (props.rot) {
var _local3 = props.rot.split(":");
up.rx = Math.floor(_local3[0]);
up.ry = Math.floor(_local3[1]);
up.rz = Math.floor(_local3[2]);
}
}
function update() {
up.anim.page_base = "base";
var _local2 = up.nodes["1"];
var _local3 = {};
_local3.x = _local2.x;
_local3.y = _local2.y;
_local3.z = _local2.z;
up.mc.localToGlobal(_local3);
up.up.up.up.pixls.mc.globalToLocal(_local3);
up.up.up.up.pixls.add_dot((536870912 | (((up.up.rnd() & 255) | 128) << (8 * (up.up.rnd() % 3)))) | (((up.up.rnd() & 255) | 128) << (8 * (up.up.rnd() % 3))), _local3.x - 10, _local3.y - 10);
up.up.up.up.pixls.add_dot((536870912 | (((up.up.rnd() & 255) | 128) << (8 * (up.up.rnd() % 3)))) | (((up.up.rnd() & 255) | 128) << (8 * (up.up.rnd() % 3))), _local3.x - 10, _local3.y);
up.up.up.up.pixls.add_dot((536870912 | (((up.up.rnd() & 255) | 128) << (8 * (up.up.rnd() % 3)))) | (((up.up.rnd() & 255) | 128) << (8 * (up.up.rnd() % 3))), _local3.x, _local3.y - 10);
up.up.up.up.pixls.add_dot((536870912 | (((up.up.rnd() & 255) | 128) << (8 * (up.up.rnd() % 3)))) | (((up.up.rnd() & 255) | 128) << (8 * (up.up.rnd() % 3))), _local3.x, _local3.y);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20515 MovieClip [__Packages.com.dynamicflash.utils.Delegate] Frame 0
class com.dynamicflash.utils.Delegate
{
function Delegate () {
}
static function create(target, handler) {
var _local4 = arguments.slice(2);
var _local5 = function () {
var _local2 = arguments.callee;
var _local3 = arguments.concat(_local2.extraArgs, [_local2]);
return(_local2.handler.apply(_local2.target, _local3));
};
_local5.extraArgs = _local4;
_local5.handler = handler;
_local5.target = target;
return(_local5);
}
}
Symbol 20516 MovieClip [__Packages.GizmoButt] Frame 0
class GizmoButt
{
var up, mc, gizmos, active, focus, focus_data, top, x, y, w, h, mc_base, mc_over, mc_down, onClick;
function GizmoButt (_up) {
up = _up;
setup();
}
function setup_base() {
mc = gfx.create_clip(up.mc, null);
mc.style = up.mc.style;
gizmos = new Array();
active = true;
focus = null;
focus_data = null;
top = up.top;
if (top == null) {
top = this;
}
}
function clean_base() {
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].clean();
}
}
mc.removeMovieClip();
mc = null;
}
function update_base() {
mc._x = x;
mc._y = y;
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].mc._visible = true;
gizmos[_local2].update();
} else {
gizmos[_local2].mc._visible = false;
}
}
}
static function dupe_snapshot(snapshot) {
var _local3 = {};
_local3.key = snapshot.key;
_local3.key_on = snapshot.key_on;
_local3.key_off = snapshot.key_off;
_local3.x = snapshot.x;
_local3.y = snapshot.y;
_local3.frame = snapshot.frame;
return(_local3);
}
function input_base(snapshot) {
var _local5 = dupe_snapshot(snapshot);
mc.localToGlobal(_local5);
var _local3 = 0;
for ( ; _local3 < gizmos.length ; _local3++) {
if (gizmos[_local3].active) {
gizmos[_local3].mc.globalToLocal(_local5);
gizmos[_local3].input(_local5);
gizmos[_local3].mc.localToGlobal(_local5);
}
}
return(top.focus);
}
function child(g) {
var _local3 = gizmos.length;
gizmos[_local3] = g;
return(g);
}
function set_area(_x, _y, _w, _h) {
x = _x;
y = _y;
w = _w;
h = _h;
}
function draw_mask(px, py) {
gfx.setscroll(mc, px, py, w, h);
}
function setup() {
setup_base();
}
function clean() {
clean_base();
}
function update() {
update_base();
}
function input(snapshot) {
if (top.focus == this) {
var _local3 = dupe_snapshot(snapshot);
mc.localToGlobal(_local3);
up.mc.globalToLocal(_local3);
if ((snapshot.x > 0) && ((snapshot.y > 0) && ((snapshot.x < w) && (snapshot.y < h)))) {
if (snapshot.key_off & 1) {
top.focus = null;
mc_base._visible = true;
mc_over._visible = false;
mc_down._visible = false;
onClick(this);
return(top.focus);
}
mc_base._visible = false;
mc_over._visible = false;
mc_down._visible = true;
} else {
mc_base._visible = true;
mc_over._visible = false;
mc_down._visible = false;
if (snapshot.key_off & 1) {
top.focus = null;
return(top.focus);
}
}
update();
} else if ((top.focus == null) && ((snapshot.x > 0) && ((snapshot.y > 0) && ((snapshot.x < w) && (snapshot.y < h))))) {
if (snapshot.key_on & 1) {
top.focus = this;
mc_base._visible = false;
mc_over._visible = false;
mc_down._visible = true;
return(top.focus);
}
mc_base._visible = false;
mc_over._visible = true;
mc_down._visible = false;
} else {
mc_base._visible = true;
mc_over._visible = false;
mc_down._visible = false;
}
input_base(snapshot);
return(top.focus);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20517 MovieClip [__Packages.Gizmo] Frame 0
class Gizmo
{
var up, mc, gizmos, active, focus, focus_data, top, x, y, w, h;
function Gizmo (_up) {
up = _up;
setup();
}
function setup_base() {
mc = gfx.create_clip(up.mc, null);
mc.style = up.mc.style;
gizmos = new Array();
active = true;
focus = null;
focus_data = null;
top = up.top;
if (top == null) {
top = this;
}
}
function clean_base() {
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].clean();
}
}
mc.removeMovieClip();
mc = null;
}
function update_base() {
mc._x = x;
mc._y = y;
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].mc._visible = true;
gizmos[_local2].update();
} else {
gizmos[_local2].mc._visible = false;
}
}
}
static function dupe_snapshot(snapshot) {
var _local3 = {};
_local3.key = snapshot.key;
_local3.key_on = snapshot.key_on;
_local3.key_off = snapshot.key_off;
_local3.x = snapshot.x;
_local3.y = snapshot.y;
_local3.frame = snapshot.frame;
return(_local3);
}
function input_base(snapshot) {
var _local5 = dupe_snapshot(snapshot);
mc.localToGlobal(_local5);
var _local3 = 0;
for ( ; _local3 < gizmos.length ; _local3++) {
if (gizmos[_local3].active) {
gizmos[_local3].mc.globalToLocal(_local5);
gizmos[_local3].input(_local5);
gizmos[_local3].mc.localToGlobal(_local5);
}
}
return(top.focus);
}
function child(g) {
var _local3 = gizmos.length;
gizmos[_local3] = g;
return(g);
}
function set_area(_x, _y, _w, _h) {
x = _x;
y = _y;
w = _w;
h = _h;
}
function draw_mask(px, py) {
gfx.setscroll(mc, px, py, w, h);
}
function setup() {
setup_base();
}
function clean() {
clean_base();
}
function update() {
update_base();
}
function input(snapshot) {
focus = input_base(snapshot);
return(focus);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20518 MovieClip [__Packages.Vballoon] Frame 0
class Vballoon
{
var up, dx, dy, dz, sx, sy, sz, pages, page_base, mc, style, points, points_old, vcobj, owner, node;
function Vballoon (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(nam) {
dx = 0;
dy = 0;
dz = 0;
sx = 0;
sy = 0;
sz = 0;
set_random_points();
pages = [];
page_base = "base";
mc = gfx.create_clip(up.mc, null);
mc.cc = this;
up.insert_mc(mc, false);
mc._xscale = 40;
mc._yscale = 40;
load_img_4x4("abc", "http://data.wetgenes.com/game/s/ville/test/balloon/ballwrite.png");
load_img_4x4("xyz", "http://data.wetgenes.com/game/s/ville/test/balloon/ballwrite1.png");
load_img_4x4("ball", "http://data.wetgenes.com/game/s/ville/test/balloon/ball.png");
load_img_4x4("items1", "http://data.wetgenes.com/game/s/ville/test/balloon/items1.png");
load_img_4x4("godloons", "http://data.wetgenes.com/game/s/ville/test/balloon/godloons.png");
style = null;
set_style(null);
update();
}
function set_random_points() {
var _local2 = ((up.rnd() - 32767) * 16) / 32768;
var _local3 = ((up.rnd() - 32767) * 16) / 32768;
var _local4 = ((up.rnd() - 32767) * 16) / 32768;
points = [0, 0, 0, _local2, _local3, _local4, _local2, _local3, _local4];
points_old = [0, 0, 0, _local2, _local3, _local4, _local2, _local3, _local4];
}
function clean() {
mc.cc = null;
mc.removeMovieClip();
}
function load_img_4x4(name, url) {
if (!name) {
name = "base";
}
if (_root.urlmap.map[url]) {
url = _root.urlmap.map[url];
var _local4 = bmcache.create_img;
} else {
var _local4 = bmcache.create_url;
}
if (!_root.bmc.checkloading("anim_" + url)) {
_root.bmc.remember("anim_" + url, _local4, {url:url, bmpw:400, bmph:400, bmpt:true, hx:0, hy:0, onload:delegate(loaded_img_4x4, url)});
}
var _local5 = name.split(",");
var _local6 = 0;
for ( ; _local6 < _local5.length ; _local6++) {
pages[_local5[_local6]] = "anim_" + url;
}
}
function loaded_img_4x4(it, url) {
var _local5 = 0;
for ( ; _local5 < 4 ; _local5++) {
var _local4 = 0;
for ( ; _local4 < 4 ; _local4++) {
_root.bmc.bmp_chop("anim_" + url, (((("anim_" + url) + "_") + _local5) + "_") + _local4, _local4 * 100, _local5 * 100, 100, 100);
}
}
_root.bmc.forget("anim_" + url);
}
function pick(page, x, y) {
pick_x = x;
pick_y = y;
_root.bmc.create(mc, (((pages[page] + "_") + y) + "_") + x, 1, -50, -90);
}
function update_vcobj(props) {
if (!props) {
props = vcobj.props;
}
}
function set_style(name, id, size, string) {
if (string) {
string_len = Math.floor(string);
}
if ((!name) || ((name == "") || ((name == "-") || (name == "0")))) {
style = null;
mc._visible = false;
owner.mc.clear();
set_random_points();
} else if (name == "godloons") {
mc._visible = true;
var _local6 = id % 16;
style = "godloons";
pick(style, _local6 % 4, Math.floor(_local6 / 4));
mc._xscale = size;
mc._yscale = size;
} else if (name == "items1") {
mc._visible = true;
var _local6 = id % 16;
style = "items1";
pick(style, _local6 % 4, Math.floor(_local6 / 4));
mc._xscale = size;
mc._yscale = size;
} else if (name == "abc") {
mc._visible = true;
var _local6 = id % 26;
if (_local6 >= 16) {
_local6 = _local6 - 16;
style = "xyz";
} else {
style = "abc";
}
pick(style, _local6 % 4, Math.floor(_local6 / 4));
mc._xscale = size;
mc._yscale = size;
} else {
mc._visible = true;
var _local6 = id % 20;
if (_local6 >= 16) {
_local6 = _local6 - 16;
style = "items1";
} else {
style = "ball";
}
pick(style, _local6 % 4, Math.floor(_local6 / 4));
mc._xscale = size;
mc._yscale = size;
}
}
function update() {
var _local2 = [];
var _local7 = string_len;
var _local8 = 0.5;
var _local9 = 1;
var _local10 = -0.04 * mc._xscale;
var _local11 = [];
var _local12 = {};
var _local13 = {};
if (!style) {
return(undefined);
}
if (style == "godloons") {
if ((pick_x == 2) && ((up.rnd() & 49152) != 0)) {
_local12.x = 0;
_local12.y = -40;
_local13.x = 400;
_local13.y = 0;
mc.localToGlobal(_local12);
up.up.up.pixls.mc.globalToLocal(_local12);
var _local14 = up.up.up.comms.vcobjs[up.up.up.comms.names[owner.victim_name.toLowerCase()]];
if (_local14) {
_local13.x = 0;
_local13.y = -60;
_local14.vobj.mc.localToGlobal(_local13);
up.up.up.pixls.mc.globalToLocal(_local13);
}
up.up.up.pixls.add_line((-16777216 | (((up.rnd() & 255) | 128) << (8 * (up.rnd() % 3)))) | (((up.rnd() & 255) | 128) << (8 * (up.rnd() % 3))), 20, _local12.x, _local12.y, _local13.x, _local13.y);
}
}
_local11 = [];
_local11[3] = points[3] - points_old[3];
_local11[4] = points[4] - points_old[4];
_local11[5] = points[5] - points_old[5];
_local11[6] = points[6] - points_old[6];
_local11[7] = points[7] - points_old[7];
_local11[8] = points[8] - points_old[8];
points_old = points;
points = [];
if (node) {
_local12.x = node.x + (node.z / 4);
_local12.y = node.y - (node.z / 4);
} else {
var _local15 = (owner.minion.pagex * 2) + ((owner.minion.pagey * 2) * 8);
_local12.x = pos_balloon[_local15 + 0];
_local12.y = pos_balloon[_local15 + 1];
}
_local13.x = 0;
_local13.y = 0;
owner.mc.localToGlobal(_local12);
owner.mc.localToGlobal(_local13);
up.mc.globalToLocal(_local12);
up.mc.globalToLocal(_local13);
points[0] = owner.dx + (_local12.x - _local13.x);
points[1] = owner.dy + (_local12.y - _local13.y);
points[2] = owner.dz;
points[3] = points_old[3] + ((_local11[3] * _local9) * 0.5);
points[4] = (points_old[4] + ((_local11[4] * _local9) * 0.5)) - (_local10 * 0.1);
points[5] = points_old[5] + ((_local11[5] * _local9) * 0.5);
points[6] = points_old[6] + (_local11[6] * _local9);
points[7] = (points_old[7] + (_local11[7] * _local9)) + _local10;
points[8] = points_old[8] + (_local11[8] * _local9);
var _local3 = points[3] - points[0];
var _local4 = points[4] - points[1];
var _local5 = points[5] - points[2];
var _local6 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)) + (_local5 * _local5));
if (_local6 > _local7) {
_local6 = _local7 / _local6;
_local3 = _local3 + (((_local3 * _local6) - _local3) * _local8);
_local4 = _local4 + (((_local4 * _local6) - _local4) * _local8);
_local5 = _local5 + (((_local5 * _local6) - _local5) * _local8);
}
points[3] = points[0] + _local3;
points[4] = points[1] + _local4;
points[5] = points[2] + _local5;
_local3 = points[6] - points[3];
_local4 = points[7] - points[4];
_local5 = points[8] - points[5];
_local6 = Math.sqrt(((_local3 * _local3) + (_local4 * _local4)) + (_local5 * _local5));
if (_local6 > _local7) {
_local6 = _local7 / _local6;
_local3 = _local3 + (((_local3 * _local6) - _local3) * _local8);
_local4 = _local4 + (((_local4 * _local6) - _local4) * _local8);
_local5 = _local5 + (((_local5 * _local6) - _local5) * _local8);
}
var _local16 = points[6] - _local3;
var _local17 = points[7] - _local4;
var _local18 = points[8] - _local5;
points[6] = points[3] + _local3;
points[7] = points[4] + _local4;
points[8] = points[5] + _local5;
points[3] = _local16;
points[4] = _local17;
points[5] = _local18;
dx = points[3];
dy = points[4];
dz = points[5];
mc._x = (up.x2 + dx) + (dz / 4);
mc._y = (up.y2 + dy) - (dz / 4);
mc._z = dz;
mc._rotation = Math.atan2(points[6] - points[3], points[4] - points[7]) * (180 / Math.PI);
_local13.x = mc._x;
_local13.y = mc._y;
up.mc.localToGlobal(_local12);
up.mc.localToGlobal(_local13);
mc.globalToLocal(_local12);
mc.globalToLocal(_local13);
mc.clear();
mc.lineStyle((3 * mc._xscale) / 100, 16777215, 100);
mc.moveTo(_local12.x, _local12.y);
mc.lineTo(_local13.x, _local13.y);
}
//ASSetPropFlags(_local1, null, 1);
var type_name = "vballoon";
var string_len = 75;
var pick_x = 0;
var pick_y = 0;
var pos_balloon = [-18, -28, -17, -30, -5, -31, 7, -30, 13, -29, 8, -30, -5, -31, -13, -28, 16, -30, 14, -33, 5, -33, -8, -34, -13, -33, -8, -33, 2, -33, 13, -32, -14, -31, -21, -27, -20, -28, -21, -31, 14, -28, 21, -30, 19, -32, 22, -30, -22, -27, -22, -28, -21, -27, -21, -27, -23, -12, -5, -29, 21, -28, 6, -31, -25, -46, -26, -38, -21, -31, -21, -31, -21, -31, -15, -30, -23, -34, -28, -36, -21, -30, -20, -28, 3, -26, -21, -30, -20, -29, -13, -33, -21, -31, -23, -32, 0, 0];
}
Symbol 20519 MovieClip [__Packages.PlayHigh] Frame 0
class PlayHigh
{
var up, play, rank, high, last, state, filter, retry, mcs, tfs, mc, do_exit, not_do_exit, done, steady, do_mochi, mc_top, tf_top, mc_text, tf_text, mc_whore, mc_res, mc_topunder, tf_topunder, mc_topsub, update_do, tf_topsub;
function PlayHigh (_up, stropts) {
up = _up;
play = up.play;
hide_last = false;
show_hash = false;
if (stropts) {
var _local6 = stropts.split(",");
var _local4 = 0;
for ( ; _local4 < _local6.length ; _local4++) {
var _local5 = _local6[_local4].split("=");
switch (_local5[0]) {
case "show_hash" :
show_hash = true;
break;
case "hide_last" :
hide_last = true;
break;
case "results" :
results = _local5[1];
}
}
}
rank = new_reset_scores();
high = new_reset_scores();
last = new_reset_scores();
state = "high";
filter = "global";
if (up.high_state) {
state = up.high_state;
}
if (up.high_filter) {
filter = up.high_filter;
}
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function new_reset_scores() {
var _local2 = new Array();
var _local3 = 0;
for ( ; _local3 < 10 ; _local3++) {
_local2[_local3] = "0;Fetching...";
}
return(_local2);
}
function days_to_string(days) {
if (show_hash) {
return("#" + days);
}
var _local3 = new Date();
_local3.setTime((((days * 24) * 60) * 60) * 1000);
var _local4 = alt.Sprintf.format("%04d%02d%02d", _local3.getFullYear(), _local3.getMonth() + 1, _local3.getDate());
return(_local4);
}
function setup(usestate) {
if (_root.skip_wetlogin) {
return(undefined);
}
if (!finished) {
return(undefined);
}
finished = false;
state = "done";
retry = false;
if (_root.signals.ranksys == "max") {
hide_last = true;
}
if ((state != "high") && ((state != "rank") && (state != "last"))) {
state = "high";
}
if (hide_last || (show_hash)) {
if (state == "last") {
state = "high";
}
}
if (show_hash) {
if (state == "rank") {
state = "high";
}
}
if (usestate) {
state = usestate;
}
_root.popup = this;
mcs = new Array();
tfs = new Array();
mc = gfx.create_clip(_root.mc_popup, null);
mc.cacheAsBitmap = true;
gfx.dropshadow(mc, 5, 45, 0, 1, 20, 20, 2, 3);
mc._y = 0;
mc.dx = 0;
mc._x = -800;
do_exit = false;
not_do_exit = 30;
done = false;
steady = false;
do_mochi = false;
gfx.clear(mc);
mc.style.out = -16777216;
mc.style.fill = 1342177280 /* 0x50000000 */;
gfx.draw_box(mc, 0, 100 + 16, 0 + 16, 600 - 32, 600 - 32);
switch (state) {
case "results" :
mc_top = gfx.create_clip(mc, null, 100, 25);
tf_top = gfx.create_text_html(mc_top, null, 0, 0, 600, 50);
mc_top.onRelease = delegate(click, "top");
mc_text = gfx.create_clip(mc, null, 150, 100);
tf_text = gfx.create_text_html(mc_text, null, 0, 0, 500, 300);
mc_text.onRelease = delegate(click, "text");
mc_whore = gfx.create_clip(mc, null, 200, 425);
mc_whore.onRelease = delegate(click, "whore");
mc_whore.text = gfx.create_text_html(mc_whore, null, 175, 0, 250, 175);
break;
default :
mc_res = gfx.create_clip(mc, null);
var _local7 = 0;
var _local3 = 0;
for ( ; _local3 < 10 ; _local3++) {
mcs[_local3] = gfx.create_clip(mc_res, null, 0, (25 + 150) + (_local3 * 40));
mcs[_local3].onRelease = delegate(click, "score" + _local3);
mcs[_local3].onRollOver = delegate(over_on, "score" + _local3);
mcs[_local3].onRollOut = delegate(over_off, "score" + _local3);
mcs[_local3].onReleaseOutside = delegate(over_off, "score" + _local3);
tfs[_local7] = gfx.create_text_html(mcs[_local3], null, 50, 0, 200, 50);
_local7++;
tfs[_local7] = gfx.create_text_html(mcs[_local3], null, 250, 0, 150, 50);
_local7++;
tfs[_local7] = gfx.create_text_html(mcs[_local3], null, 400, 0, 550, 50);
_local7++;
}
mc_top = gfx.create_clip(mc, null, 100, 25);
tf_top = gfx.create_text_html(mc_top, null, 0, 0, 600, 50);
mc_top.onRelease = delegate(click, "top");
mc_topunder = gfx.create_clip(mc, null, 100, 75 - 10);
tf_topunder = gfx.create_text_html(mc_topunder, null, 0, 0, 600, 25);
mc_topunder.onRelease = delegate(click, "topunder");
mc_topsub = gfx.create_clip(mc, null, 100, 100);
}
var _local3 = 0;
for ( ; _local3 < icon_nams.length ; _local3++) {
var _local9 = icon_nams[_local3];
mc_topsub[_local9] = gfx.add_clip(mc_topsub, "icon_" + _local9, null, (300 - (20 * icon_nams.length)) + (_local3 * 40), 10, 200, 200);
gfx.glow(mc_topsub[_local9], 16777215, 1, 8, 8, 1, 1, false, false);
mc_topsub[_local9]._alpha = 50;
mc_topsub[_local9].id = _local9;
mc_topsub[_local9].idx = _local3;
mc_topsub[_local3] = mc_topsub[_local9];
mc_topsub[_local3].onRelease = delegate(click, _local9);
mc_topsub[_local3].onRollOver = delegate(over_on, _local9);
mc_topsub[_local3].onRollOut = delegate(over_off, _local9);
mc_topsub[_local3].onReleaseOutside = delegate(over_off, _local9);
}
mc_topsub.mochi._visible = false;
if (hide_last) {
mc_topsub.last._visible = false;
}
if (show_hash) {
mc_topsub.last._visible = false;
mc_topsub.rank._visible = false;
mc_topsub.day._visible = false;
}
thunk();
get_high();
update_do = delegate(update, null);
MainStatic.update_add(_root.updates, update_do);
_root.poker.clear_clicks();
}
function clean() {
if (_root.popup != this) {
return(undefined);
}
finished = true;
mc_whore = null;
MainStatic.update_remove(_root.updates, update_do);
update_do = null;
mc.removeMovieClip();
_root.popup = null;
if (up.next_game_seed) {
up.do_str("restart");
}
up.high_state = state;
up.high_filter = filter;
_root.poker.clear_clicks();
state = "done";
}
function get_high() {
if (state == "rank") {
rank = new_reset_scores();
} else if (state == "high") {
high = new_reset_scores();
} else if (state == "last") {
last = new_reset_scores();
} else {
return(undefined);
}
high_id++;
_root.comms.get_high(state, filter, delegate(got_high, high_id));
}
function got_high(a, tid) {
if (tid == high_id) {
if (state == "rank") {
rank = a;
} else if (state == "high") {
high = a;
} else if (state == "last") {
last = a;
}
thunk();
}
}
function thunk() {
var _local2 = 0;
for ( ; _local2 < icon_nams.length ; _local2++) {
mc_topsub[_local2]._alpha = 50;
}
if ((state == "rank") || ((state == "high") || (state == "last"))) {
var _local5 = 0;
_local2 = 0;
for ( ; _local2 < 10 ; _local2++) {
if (state == "rank") {
var _local3 = rank[_local2].split(";");
} else if (state == "high") {
var _local3 = high[_local2].split(";");
} else if (state == "last") {
var _local3 = last[_local2].split(";");
}
if (_local3[1].indexOf("_") != -1) {
_local3[1] = _local3[1].split("_").join(" ");
}
var _local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"28\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"right\"><b>";
_local4 = _local4 + _local3[0];
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tfs[_local5].htmlText = _local4;
_local5++;
if (state == "last") {
_local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"8\" color=\"#ffffff\">";
_local4 = _local4 + "<br></font>";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"16\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"center\"><b>";
if (_local3[2]) {
_local4 = _local4 + days_to_string(_local3[2]);
} else {
_local4 = _local4 + "#";
}
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tfs[_local5].htmlText = _local4;
} else {
_local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"28\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"center\"><b>";
_local4 = _local4 + str_numst[_local2];
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tfs[_local5].htmlText = _local4;
}
_local5++;
_local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"28\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"left\"><b>";
_local4 = _local4 + _local3[1];
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tfs[_local5].htmlText = _local4;
_local5++;
}
var _local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"14\" color=\"#888888\">";
_local4 = _local4 + "<p align=\"center\"><b>";
switch (state) {
case "rank" :
_local4 = _local4 + "Click title above to cycle views<br>";
_local4 = _local4 + "Click here to cycle filters<br>";
_local4 = _local4 + "Click anywhere else to exit<br>";
mc_topsub.rank._alpha = 100;
break;
case "high" :
_local4 = _local4 + "Click title above to cycle views<br>";
_local4 = _local4 + "Click here to cycle filters<br>";
_local4 = _local4 + "Click anywhere else to exit<br>";
mc_topsub.day._alpha = 100;
break;
case "last" :
_local4 = _local4 + "Click title above to cycle view<br>";
_local4 = _local4 + "Click a score below to play that game<br>";
_local4 = _local4 + "Click anywhere else to exit<br>";
mc_topsub.last._alpha = 100;
break;
case "mochi" :
mc_topsub.mochi._alpha = 100;
}
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tf_topsub.htmlText = _local4;
_local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"16\" color=\"#cccccc\">";
_local4 = _local4 + "<p align=\"center\"><b>";
switch (state) {
case "rank" :
case "high" :
switch (filter) {
case "global" :
_local4 = _local4 + "no filter";
mc_topsub.guest._alpha = 100;
break;
case "registered" :
_local4 = _local4 + "showing registered users only";
mc_topsub.registered._alpha = 100;
break;
case "friends" :
_local4 = _local4 + "showing friends only";
}
break;
case "last" :
}
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tf_topunder.htmlText = _local4;
} else if (state == "mochi") {
} else if (state == "results") {
switch (results) {
case "bowwow" :
var _local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"26\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"center\">";
_local4 = _local4 + (("You scored <b>" + play.score) + "</b>pts<br><br>");
_local4 = _local4 + "<b>Click here</b> or press anykey to continue.<br><br>";
_local4 = _local4 + "</p>";
_local4 = _local4 + "</font>";
tf_text.htmlText = _local4;
break;
default :
var _local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"28\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"center\">";
_local4 = _local4 + "<b>Click here</b> to return to the menu or press anykey to try again.<br><br>";
_local4 = _local4 + (("You scored <b>" + play.scores_best_new) + "</b>pts<br><br>");
if (play.scores_best_old < play.scores_best_new) {
_local4 = _local4 + (((("Congratulations, that's a whole <b>" + (play.scores_best_new - play.scores_best_old)) + "</b>pts better than ") + play.scores_best_old) + "pts.<br><br>");
} else {
_local4 = _local4 + (("Your previous best score was <b>" + play.scores_best_old) + "</b>pts<br><br>");
}
_local4 = _local4 + "</p>";
_local4 = _local4 + "</font>";
tf_text.htmlText = _local4;
}
}
var _local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"28\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"center\"><b>";
switch (state) {
case "rank" :
if (_root.signals.ranksys == "max") {
_local4 = _local4 + "Highest scores in last 10 days.<br>";
} else {
_local4 = _local4 + "Rankings, last 10 days added.<br>";
}
break;
case "high" :
_local4 = _local4 + (("High scores for " + days_to_string(up.game_seed)) + ".<br>");
break;
case "last" :
_local4 = _local4 + "Your last 10 scores.<br>";
break;
case "results" :
_local4 = _local4 + "Congratulations!<br>";
break;
case "mochi" :
_local4 = _local4 + "Checking Mochi Bucket for scores.<br>";
}
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tf_top.htmlText = _local4;
}
function mochi_close() {
do_mochi = false;
state = "high";
get_high();
thunk();
not_do_exit = 5;
mc_res._visible = true;
mc_top._visible = true;
mc_topunder._visible = true;
mc_topsub._visible = true;
}
function over_on(s) {
if (do_mochi) {
return(undefined);
}
switch (s) {
case "score0" :
showgame(0);
break;
case "score1" :
showgame(1);
break;
case "score2" :
showgame(2);
break;
case "score3" :
showgame(3);
break;
case "score4" :
showgame(4);
break;
case "score5" :
showgame(5);
break;
case "score6" :
showgame(6);
break;
case "score7" :
showgame(7);
break;
case "score8" :
showgame(8);
break;
case "score9" :
showgame(9);
break;
case "day" :
_root.poker.ShowFloat("Show scores for todays game.", 25 * 5);
highlight_icon(s, true);
break;
case "rank" :
_root.poker.ShowFloat("Show rank. This is built using scores from the last 10 days.", 25 * 5);
highlight_icon(s, true);
break;
case "last" :
_root.poker.ShowFloat("Your score each day for the last 10 days. Play these games again to improve your rank.", 25 * 5);
highlight_icon(s, true);
break;
case "guest" :
_root.poker.ShowFloat("Show scores of all players.", 25 * 5);
highlight_icon(s, true);
break;
case "registered" :
_root.poker.ShowFloat("Show registered players scores only.", 25 * 5);
highlight_icon(s, true);
break;
case "mochi" :
_root.poker.ShowFloat("Display a Mochi Bucket of scores.", 25 * 5);
highlight_icon(s, true);
break;
case "close" :
_root.poker.ShowFloat("Close this plopup. Clicking almost anywhere also closes this plopup.", 25 * 5);
highlight_icon(s, true);
}
}
function highlight_icon(nam, onoff) {
if (mc_topsub[nam]._alpha < 100) {
if (onoff) {
mc_topsub[nam]._alpha = 75;
} else {
mc_topsub[nam]._alpha = 50;
}
}
}
function over_off(s) {
if (do_mochi) {
return(undefined);
}
highlight_icon(s, false);
_root.poker.ShowFloat(null, 0);
}
function click(s) {
if (do_mochi) {
mochi_close();
return(undefined);
}
switch (s) {
case "whore" :
if (_root.wonderfulls[0].url) {
getURL (_root.wonderfulls[0].url, "_blank");
}
if (state == "results") {
if (steady) {
do_exit = true;
}
}
break;
case "text" :
if (state == "results") {
if (steady) {
do_exit = true;
}
}
break;
case "top" :
break;
case "mochi" :
if (state != "mochi") {
state = "mochi";
thunk();
}
not_do_exit = 5;
break;
case "day" :
if (state != "high") {
state = "high";
get_high();
thunk();
}
not_do_exit = 5;
break;
case "rank" :
if (state != "rank") {
state = "rank";
get_high();
thunk();
}
not_do_exit = 5;
break;
case "last" :
if (state != "last") {
state = "last";
get_high();
thunk();
}
not_do_exit = 5;
break;
case "guest" :
if (filter != "global") {
filter = "global";
get_high();
thunk();
}
not_do_exit = 5;
break;
case "registered" :
if (filter != "registered") {
filter = "registered";
get_high();
thunk();
}
not_do_exit = 5;
break;
case "topunder" :
break;
case "topsub" :
break;
case "score0" :
gotoplaygame(0);
break;
case "score1" :
gotoplaygame(1);
break;
case "score2" :
gotoplaygame(2);
break;
case "score3" :
gotoplaygame(3);
break;
case "score4" :
gotoplaygame(4);
break;
case "score5" :
gotoplaygame(5);
break;
case "score6" :
gotoplaygame(6);
break;
case "score7" :
gotoplaygame(7);
break;
case "score8" :
gotoplaygame(8);
break;
case "score9" :
gotoplaygame(9);
break;
}
}
function gotoplaygame(num) {
if (state == "last") {
var _local3 = last[num].split(";");
if (_local3[2]) {
up.next_game_seed = Math.floor(_local3[2]);
if (up.next_game_seed == up.game_seed) {
up.next_game_seed = null;
}
}
state = "high";
}
}
function showgame(num) {
if (state == "last") {
var _local3 = last[num].split(";");
if (_local3[2]) {
var _local4 = days_to_string(Math.floor(_local3[2]));
_root.poker.ShowFloat(("Clicking here will end this game and start the game for " + _local4) + " so be careful...", 25 * 5);
}
}
}
function statechange() {
switch (state) {
case "results" :
break;
case "high" :
state = "rank";
break;
case "rank" :
if (hide_last || (show_hash)) {
state = "high";
} else {
state = "last";
}
break;
case "last" :
state = "high";
break;
default :
state = "high";
}
get_high();
thunk();
}
function filterchange() {
switch (filter) {
case "global" :
filter = "registered";
break;
case "registered" :
filter = "global";
break;
case "friends" :
filter = "global";
}
get_high();
thunk();
}
function click_str(id) {
var _local3 = id.split("_");
trace(_local3);
switch (_local3[0]) {
case "none" :
break;
case "submit" :
break;
}
}
function update() {
var _local3 = (mc._xmouse > 0) && ((mc._ymouse > 0) && ((mc._xmouse < 800) && (mc._ymouse < 600)));
if (!do_mochi) {
if ((_root.popup == this) && (_root.poker.anykey && (_local3))) {
if (steady) {
if (!do_exit) {
if (state == "results") {
retry = true;
}
do_exit = true;
}
}
}
}
if ((_root.popup != this) || (_root.pause)) {
return(undefined);
}
if (mc_whore) {
if (!mc_whore.ad) {
if (_root.wonderfulls) {
mc_whore.ad = gfx.create_clip(mc_whore, null);
mc_whore.ad.loadMovie(_root.wonderfulls[0].img);
var _local2 = "";
_local2 = _local2 + "<font face=\"Bitstream Vera Sans\" size=\"24\" color=\"#ffffff\">";
_local2 = _local2 + "<p align=\"center\">";
_local2 = _local2 + _root.wonderfulls[0].txt;
_local2 = _local2 + "</p>";
_local2 = _local2 + "</font>";
mc_whore.text.htmlText = _local2;
}
}
}
mc._x = mc._x + ((mc.dx - mc._x) / 4);
if (((mc._x - mc.dx) * (mc._x - mc.dx)) < (16 * 16)) {
steady = true;
if (done) {
clean();
}
} else {
steady = false;
}
if (do_exit && (not_do_exit == 0)) {
done = true;
mc.dx = _root.scalar.ox;
}
do_exit = false;
if (not_do_exit > 0) {
not_do_exit--;
}
}
//ASSetPropFlags(_local1, null, 1);
var icon_nams = ["mochi", "day", "rank", "last", "guest", "registered", "close"];
var results = "";
var finished = true;
var str_numst = ["1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th"];
var hide_last = false;
var show_hash = false;
var high_id = 0;
}
Symbol 20520 MovieClip [__Packages.PlayCode] Frame 0
class PlayCode
{
var up, mcs, tfs, mc, done, steady, update_do, mcWF, wf_loaded;
function PlayCode (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup() {
_root.popup = this;
mcs = new Array();
tfs = new Array();
mc = gfx.create_clip(_root.mc_popup, null);
mc.cacheAsBitmap = true;
gfx.dropshadow(mc, 5, 45, 0, 1, 20, 20, 2, 3);
mc._y = 0;
mc.dx = 0;
mc._x = -800;
done = false;
steady = false;
gfx.clear(mc);
mcs[0] = gfx.create_clip(mc, null);
mcs[0].onRelease = delegate(onRelease, null);
mcs[0].showHandCursor = false;
mcs[0].style.out = -16777216;
mcs[0].style.fill = 268435456 /* 0x10000000 */;
gfx.draw_box(mcs[0], 0, 0, 0, 800, 600);
mcs[0].style.out = -16777216;
mcs[0].style.fill = -2147483648;
gfx.draw_box(mcs[0], 0, 100 + 16, 0 + 16, 600 - 32, 600 - 32);
mcs[1] = gfx.create_clip(mc, null);
mcs[1].onRelease = delegate(function () {
}, null);
mcs[1].showHandCursor = false;
mcs[1].style.out = -16777216;
mcs[1].style.fill = 268435456 /* 0x10000000 */;
gfx.draw_box(mcs[1], 0, 150, 50, 500, 500);
mcs[2] = gfx.create_clip(mc, null, 150, 50, 150, 150);
thunk();
Mouse.addListener(this);
update_do = delegate(update, null);
MainStatic.update_add(_root.updates, update_do);
_root.poker.clear_clicks();
_root.poker.ShowFloat(null, 0);
System.security.allowDomain("cdn.gigya.com");
System.security.allowInsecureDomain("cdn.gigya.com");
mcWF = gfx.create_clip(mcs[2], null);
mcWF._lockroot = true;
mcWF._x = 0;
mcWF._y = 0;
mcWF.ModuleID = "PostModule1";
var _local6 = (_root[mcWF.ModuleID] = {});
_local6.width = "333";
_local6.height = "333";
_local6.partner = "200531";
_local6.UIConfig = "<config><display showEmail=\"true\" showBookmark=\"true\" showCloseButton=\"true\" bulletinChecked=\"false\" networksWithCodeBox=\"\" /></config>";
_local6.defaultContent = function () {
return("<center><embed src=\"http://link.wetgenes.com/link/WetVille.swf\" type=\"application/x-shockwave-flash\" width=\"640\" height=\"480\"></embed><br /><a href=\"http://games.WetGenes.com\" target=\"_blank\" title=\"games.WetGenes.com\">Play more free online games at games.WetGenes.com</a></center>");
};
_local6.facebookURL = "http://link.wetgenes.com/link/WetVille.fb";
var _local7 = "WetVille".toLowerCase();
if (_local7 == "wetbasement") {
_local7 = "basement";
}
if (_local7 == "wetdiamonds") {
_local7 = "diamonds";
}
_local6.bookmarkURL = ("http://" + _local7) + ".wetgenes.com/";
_local6.widgetTitle = "Play WetVille at www.WetGenes.com";
_local6.onPostProfile = delegate(finish);
_local6.onClose = delegate(finish);
_local6.onLoad = delegate(WFonLoad);
mcWF.loadMovie("http://cdn.gigya.com/WildFire/swf/wildfire.swf", "get");
wf_loaded = false;
}
function WFonLoad() {
wf_loaded = true;
}
function clean() {
if (_root.popup != this) {
return(undefined);
}
mcWF = null;
update_do = null;
mc.removeMovieClip();
_root.popup = null;
Mouse.removeListener(this);
_root.poker.clear_clicks();
_root.poker.ShowFloat(null, 0);
}
function thunk() {
}
function over(s) {
}
function notover(s) {
_root.poker.ShowFloat(null, 0);
}
function click(s) {
}
function onRelease() {
if (_root.popup != this) {
return(undefined);
}
if (steady) {
done = true;
mc.dx = _root.scalar.ox;
}
}
function finish() {
done = true;
mc.dx = _root.scalar.ox;
}
function update() {
if ((_root.popup != this) || (_root.pause)) {
return(undefined);
}
mc._x = mc._x + ((mc.dx - mc._x) / 4);
if (((mc._x - mc.dx) * (mc._x - mc.dx)) < (16 * 16)) {
steady = true;
if (done) {
clean();
}
} else {
steady = false;
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20521 MovieClip [__Packages.VcommsObj] Frame 0
class VcommsObj
{
var up, id, type, parent, owner, url, props, vobj;
function VcommsObj (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup_msg(msg) {
id = msg.vobj;
type = msg.vtype;
parent = msg.vparent;
owner = msg.vowner;
parent = msg.vparent;
url = msg.vurl;
props = [];
var _local4 = msg.vprops.split(",");
var _local3 = 0;
for ( ; _local3 < _local4.length ; _local3 = _local3 + 2) {
var _local5 = _local4[_local3];
var _local6 = _local4[_local3 + 1];
props[_local5] = _local6;
}
}
function setup_vobj(_vobj) {
vobj = _vobj;
vobj.vcobj = this;
vobj.update_vcobj();
}
function update_msg(msg) {
var _local7 = [];
var _local4 = msg.vprops.split(",");
var _local3 = 0;
for ( ; _local3 < _local4.length ; _local3 = _local3 + 2) {
var _local5 = _local4[_local3];
var _local6 = _local4[_local3 + 1];
props[_local5] = _local6;
_local7[_local5] = _local6;
}
if (vobj) {
vobj.update_vcobj(_local7);
if (_local7.menu) {
vcobj_menu_set(_local7.menu);
}
}
}
function send_msg_prop(nam, dat) {
var _local4 = {vcmd:"vupd", vobj:id};
_local4.vprops = (nam + ",") + dat;
up.vmsgsend(_local4);
}
function send_msg_setup() {
var _local2 = {vcmd:"setup"};
up.vmsgsend(_local2);
}
function clean() {
vobj.clean();
}
function vcobj_menu_set(data) {
if (!data) {
return(undefined);
}
vobj.mc.vcobj_menu = {};
var _local3 = data.split(":");
for (var _local7 in _local3) {
var _local4 = _local3[_local7].split("/");
var _local5 = {};
_local5.name = _local4[0];
_local5.items = [];
_local5.menuclick = delegate(vcobj_menu_click, _local5);
vobj.mc.vcobj_menu[_local5.name] = _local5;
var _local8 = 1;
for ( ; _local8 < _local4.length ; _local8++) {
var _local6 = {};
_local6.txt = _local4[_local8];
_local6.id = (_local5.name + " ") + _local4[_local8];
_local5.items[_local8 - 1] = _local6;
}
}
}
function vcobj_menu_click(poke, item, menu) {
switch (item.id) {
case "cancel" :
poke.hidemenu();
break;
default :
if (vobj.mc.vcobj_menu[item.id]) {
poke.showmenu(vobj.mc.vcobj_menu[item.id]);
} else {
poke.hidemenu();
send_msg_prop("use", item.id);
}
}
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
}
Symbol 20522 MovieClip [__Packages.Poker] Frame 0
class Poker
{
var hand, mc, float, mc_floater, mc_floaterz, tf_floater, float_str, float_time, mcb0, mcb1, mcg, mcg0, mcg1, lx, ly, size, scale, poke_last, poke_down, poke_up, poke_now, update_do, do_anykey, poke_now_now, poke_down_now, clicks, poke_up_now, anykey, x, y, dx, dy;
function Poker (_hand) {
hand = _hand;
if (System.capabilities.version.split(" ")[0] == "WII") {
hand = false;
}
hand = false;
mc = gfx.create_clip(_root, 16384 + 32);
float = true;
if (float) {
mc_floater = gfx.create_clip(_root, (16384 + 32) + 1);
gfx.clear(mc_floater);
mc_floater.w = 200;
mc_floater.h = 80;
mc_floaterz = gfx.create_clip(mc_floater, null);
mc_floaterz._x = 100;
mc_floaterz._y = 40;
tf_floater = gfx.create_text_html(mc_floaterz, null, -100, 0, 200, 200);
float_str = "";
float_time = -100;
}
if (hand) {
mcb0 = gfx.create_clip(mc, null);
mcb1 = gfx.create_clip(mcb0, null);
mcg = gfx.create_clip(mcb1, null);
mcg0 = gfx.add_clip(mcg, "poke0", null);
mcg1 = gfx.add_clip(mcg, "poke1", null);
mcg0._x = -19;
mcg0._y = -19;
mcg1._x = -(19 + 8);
mcg1._y = -(19 + 8);
mcg._xscale = 75;
mcg._yscale = 75;
}
onMouseUp();
Mouse.addListener(this);
Key.addListener(this);
lx = 0;
ly = 0;
size = 1;
scale = 1;
poke_last = false;
poke_down = false;
poke_up = false;
poke_now = false;
clear_clicks();
update_do = delegate(update, null);
MainStatic.update_add(_root.updates, update_do);
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function clean() {
MainStatic.update_remove(_root.updates, update_do);
update_do = null;
}
function ShowFloat(str, tim) {
if ((str != null) && (float_str != str)) {
float_str = str;
gfx.clear(mc_floaterz);
mc_floaterz.style.out = -1;
mc_floaterz.style.fill = -3355444;
gfx.set_text_html(tf_floater, 16, 0, ("<p align=\"center\">" + str) + "</p>");
mc_floater.h = tf_floater.textHeight + 6;
gfx.draw_box(mc_floaterz, 4, -100, (-mc_floater.h) / 2, 200, mc_floater.h);
tf_floater._y = (-mc_floater.h) / 2;
mc_floaterz._y = mc_floater.h / 2;
}
if (tim == 0) {
if (float_time > tim) {
float_time = tim;
}
} else {
float_time = tim;
}
}
function onKeyDown() {
do_anykey = true;
}
function onMouseDown() {
if (hand) {
Mouse.hide();
mcg0._visible = false;
mcg1._visible = true;
}
poke_now_now = true;
poke_down_now = true;
if (clicks.length < 16) {
clicks[clicks.length] = {click:1, x:_root._xmouse, y:_root._ymouse};
}
}
function onMouseUp() {
do_anykey = true;
if (hand) {
Mouse.hide();
mcg0._visible = true;
mcg1._visible = false;
}
poke_now_now = false;
poke_up_now = true;
if (clicks.length < 16) {
clicks[clicks.length] = {click:-1, x:_root._xmouse, y:_root._ymouse};
}
}
function clear_clicks() {
do_anykey = false;
anykey = false;
poke_last = false;
poke_down = false;
poke_up = false;
poke_now = false;
clicks = [];
}
function update() {
if (do_anykey) {
anykey = true;
} else {
anykey = false;
}
do_anykey = false;
x = _root._xmouse;
y = _root._ymouse;
poke_last = poke_now;
poke_down = poke_down_now;
poke_up = poke_up_now;
poke_now = poke_now_now;
poke_down_now = false;
poke_up_now = false;
dx = x - lx;
dy = y - ly;
lx = x;
ly = y;
if (hand) {
mc._x = x;
mc._y = y;
scale = (_root.scalar.sx * size) / 100;
mc._xscale = 100 * scale;
mc._yscale = mc._xscale;
gfx.dropshadow(mc, 2, 45, 0, 1, 4 * scale, 4 * scale, 2, 3);
if ((dx == 0) && (dy == 0)) {
mcb0._rotation = 0;
mcb0._xscale = 100;
mcb0._yscale = 100;
mcb1._rotation = 0;
} else {
var _local3 = (180 * Math.atan2(dy, -dx)) / Math.PI;
var _local4 = Math.sqrt((dy * dy) + (dx * dx));
_local4 = _local4 / 1.5;
if (_local4 > 400) {
_local4 = 400;
}
mcb0._rotation = -_local3;
mcb0._xscale = 100 + _local4;
mcb0._yscale = 100 - (_local4 / 5);
mcb1._rotation = _local3;
}
if (dx > 32) {
dx = 32;
}
if (dx < -32) {
dx = -32;
}
var _local2 = dx;
mcg._rotation = mcg._rotation + ((_local2 - mcg._rotation) / 4);
}
if (float && (float_time >= -10)) {
if (float_time > 0) {
float_time--;
mc_floater._visible = true;
mc_floaterz._xscale = 100;
mc_floaterz._yscale = 100;
} else {
float_time--;
mc_floaterz._xscale = 100 + (float_time * 10);
mc_floaterz._yscale = mc_floaterz._xscale;
if (float_time == -10) {
mc_floater._visible = false;
}
}
var _local5 = mc_floater.w;
var _local6 = mc_floater.h;
var _local13 = Stage.width;
var _local14 = Stage.height;
var _local9 = x - (_local13 / 2);
var _local10 = y - (_local14 / 2);
var _local17 = _local9 * _local9;
var _local21 = ((_local9 < 0) ? (-_local9) : (_local9));
var _local18 = _local10 * _local10;
var _local22 = ((_local10 < 0) ? (-_local10) : (_local10));
var _local16 = _local17 + _local18;
var _local15 = Math.sqrt(_local16);
if (_local15 == 0) {
_local15 = 1;
_local9 = 0;
_local10 = 1;
}
var _local11 = _local9 / _local15;
var _local12 = _local10 / _local15;
var _local19 = ((-_local11) * _local5) * 1.75;
var _local20 = ((-_local12) * _local6) * 1.75;
if ((_local21 / 2) > _local22) {
if (_local9 < 0) {
var _local7 = x;
var _local8 = (y + _local20) - (_local6 / 2);
_local7 = _local7 + 50;
} else {
var _local7 = x - _local5;
var _local8 = (y + _local20) - (_local6 / 2);
_local7 = _local7 - 50;
}
} else if (_local21 < (_local22 / 2)) {
if (_local10 < 0) {
var _local7 = (x + _local19) - (_local5 / 2);
var _local8 = y;
_local8 = _local8 + 50;
} else {
var _local7 = (x + _local19) - (_local5 / 2);
var _local8 = y - _local6;
_local8 = _local8 - 50;
}
} else if (_local9 < 0) {
if (_local10 < 0) {
var _local7 = x;
var _local8 = y;
_local7 = _local7 + 50;
_local8 = _local8 + 50;
} else {
var _local7 = x;
var _local8 = y - _local6;
_local7 = _local7 + 50;
_local8 = _local8 - 50;
}
} else if (_local10 < 0) {
var _local7 = x - _local5;
var _local8 = y;
_local7 = _local7 - 50;
_local8 = _local8 + 50;
} else {
var _local7 = x - _local5;
var _local8 = y - _local6;
_local7 = _local7 - 50;
_local8 = _local8 - 50;
}
mc_floater._x = (mc_floater._x * 0.75) + (_local7 * 0.25);
mc_floater._y = (mc_floater._y * 0.75) + (_local8 * 0.25);
mc_floater._visible = true;
} else {
mc_floater._visible = false;
}
}
function snapshot() {
var _local2 = {};
_local2.key = (poke_now ? 1 : 0);
_local2.key_on = (poke_down ? 1 : 0);
_local2.key_off = (poke_up ? 1 : 0);
_local2.x = x;
_local2.y = y;
_local2.frame = 0;
return(_local2);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20523 MovieClip [__Packages.WetPlayIcon] Frame 0
class WetPlayIcon
{
var scale_800x600, mute, wetplayMP3, mcs, mc, mc_play_icon, wetplayGFX, wall, hall, xall, yall, update_do;
function WetPlayIcon (stropts) {
scale_800x600 = false;
mute = false;
if (stropts) {
var _local4 = stropts.split(",");
var _local3 = 0;
for ( ; _local3 < _local4.length ; _local3++) {
switch (_local4[_local3]) {
case "scale_800x600" :
scale_800x600 = true;
break;
case "mute" :
mute = true;
}
}
}
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function get_width() {
if (scale_800x600) {
return(800);
}
return(Stage.width);
}
function get_height() {
if (scale_800x600) {
return(600);
}
return(Stage.height);
}
function logindone() {
if (!donelogindone) {
setup();
donelogindone = true;
}
if (mute) {
return(undefined);
}
if (_root.login.opt_sound) {
wetplayMP3.set_vol(50);
} else {
wetplayMP3.set_vol(0);
}
}
function setup() {
mcs = gfx.create_clip(_root, (16384 + 32) - 16);
mc = gfx.create_clip(mcs);
mc_play_icon = gfx.add_clip(mc, "WetPlayIcon", null, get_width() - 11, 11);
wetplayGFX = new WetPlayGFX(this);
wetplayMP3 = new WetPlayMP3(this);
wall = wetplayMP3.w + (wetplayMP3.x * 2);
hall = wetplayMP3.h + (wetplayMP3.y * 2);
xall = wetplayMP3.x * 2;
yall = wetplayMP3.y * 2;
wetplayMP3.setup();
wetplayMP3.mc.dx = get_width() + xall;
wetplayMP3.mc.dy = -hall;
wetplayMP3.mc._x = wetplayMP3.mc.dx;
wetplayMP3.mc._y = wetplayMP3.mc.dy;
wetplayMP3.mc.ox = wetplayMP3.mc._x;
wetplayMP3.mc.oy = wetplayMP3.mc._y;
wetplayMP3.mc.idx = 0;
if (mute) {
wetplayMP3.set_vol_start(100, false);
}
update_do = delegate(update, null);
MainStatic.update_add(_root.updates, update_do);
}
function clean() {
MainStatic.update_remove(_root.updates, update_do);
update_do = null;
}
function update() {
if (scale_800x600) {
_root.scalar.apply(mcs);
}
mc_play_icon._x = get_width() - 11;
mc_play_icon._y = 11;
var _local2 = _root.poker.snapshot();
mc.globalToLocal(_local2);
if (_root.popup == wetplayMP3) {
if (((_local2.x < (get_width() - (wall - (xall / 2)))) || (_local2.y > hall)) && ((!_root.poker.poke_now) && (!_root.poker.poke_up))) {
_root.popup = null;
wetplayMP3.mc.dx = get_width() + xall;
wetplayMP3.mc.dy = -wall;
wetplayMP3.mc.ox = wetplayMP3.mc._x;
wetplayMP3.mc.oy = wetplayMP3.mc._y;
wetplayMP3.mc.idx = 4;
}
} else if ((!_root.popup) && (!mute)) {
if ((_local2.x > (get_width() - 20)) && ((_local2.y < 20) && ((!_root.poker.poke_now) && (!_root.poker.poke_up)))) {
_root.popup = wetplayMP3;
wetplayMP3.mc.dx = get_width() - (wall - (xall / 2));
wetplayMP3.mc.dy = yall / 2;
wetplayMP3.mc.ox = wetplayMP3.mc._x;
wetplayMP3.mc.oy = wetplayMP3.mc._y;
wetplayMP3.mc.idx = 4;
}
} else {
wetplayMP3.mc.dx = get_width() + xall;
wetplayMP3.mc.dy = -hall;
wetplayMP3.mc.ox = wetplayMP3.mc._x;
wetplayMP3.mc.oy = wetplayMP3.mc._y;
wetplayMP3.mc.idx = 4;
}
var _local3 = wetplayMP3.mc.dx - wetplayMP3.mc._x;
var _local4 = wetplayMP3.mc.dy - wetplayMP3.mc._y;
if (wetplayMP3.mc.idx <= 0) {
wetplayMP3.mc._x = wetplayMP3.mc.dx;
wetplayMP3.mc._y = wetplayMP3.mc.dy;
} else {
wetplayMP3.mc._x = wetplayMP3.mc.dx + ((wetplayMP3.mc.ox - wetplayMP3.mc.dx) * (wetplayMP3.mc.idx / 4));
wetplayMP3.mc._y = wetplayMP3.mc.dy + ((wetplayMP3.mc.oy - wetplayMP3.mc.dy) * (wetplayMP3.mc.idx / 4));
wetplayMP3.mc.idx--;
}
if (wetplayMP3.mc._x == (get_width() + xall)) {
wetplayMP3.mc._visible = false;
} else {
wetplayMP3.mc._visible = true;
}
if (_root.popup) {
mc_play_icon._visible = false;
} else {
mc_play_icon._visible = true;
}
mc_play_icon._xscale = 50 + (wetplayMP3.throbe * 150);
mc_play_icon._yscale = mc_play_icon._xscale;
mc_play_icon._alpha = 60;
wetplayMP3.update();
}
function PlaySFX(nam, chan, loops, vol) {
return(wetplayMP3.PlaySFX(nam, chan, loops, vol));
}
//ASSetPropFlags(_local1, null, 1);
var donelogindone = false;
}
Symbol 20524 MovieClip [__Packages.Talky] Frame 0
class Talky
{
var up, w, h, bubs, mc, topmc;
function Talky (_up) {
up = _up;
w = 800;
h = 600;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup() {
bubs = [];
mc = gfx.create_clip(up.mc, null);
topmc = gfx.create_clip(mc, topdepth);
}
function clean() {
var _local2 = 0;
for ( ; _local2 < bubs.length ; _local2++) {
bubs[_local2].clean();
}
mc.removeMovieClip();
mc = null;
bubs = null;
}
function create(_orig, _x, _y, _offorg) {
if (_offorg == undefined) {
_offorg = "local";
}
var _local6 = new TalkyBub(this, _orig, _x, _y, _offorg);
bubs[bubs.length] = _local6;
return(_local6);
}
function update() {
if (up.old_time != undefined) {
if (last != up.old_time) {
last = up.old_time;
} else {
return(undefined);
}
}
var _local2 = 0;
for ( ; _local2 < bubs.length ; _local2++) {
if (bubs[_local2].update()) {
bubs[_local2].clean();
bubs.splice(_local2, 1);
_local2--;
}
}
}
//ASSetPropFlags(_local1, null, 1);
var topdepth = 1024;
var last = null;
}
Symbol 20525 MovieClip [__Packages.GizmoKnob] Frame 0
class GizmoKnob
{
var up, mc, gizmos, active, focus, focus_data, top, x, y, w, h, x_knob, y_knob, mc_base, mc_over, mc_down, onClick;
function GizmoKnob (_up) {
up = _up;
setup();
}
function setup_base() {
mc = gfx.create_clip(up.mc, null);
mc.style = up.mc.style;
gizmos = new Array();
active = true;
focus = null;
focus_data = null;
top = up.top;
if (top == null) {
top = this;
}
}
function clean_base() {
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].clean();
}
}
mc.removeMovieClip();
mc = null;
}
function update_base() {
mc._x = x;
mc._y = y;
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].mc._visible = true;
gizmos[_local2].update();
} else {
gizmos[_local2].mc._visible = false;
}
}
}
static function dupe_snapshot(snapshot) {
var _local3 = {};
_local3.key = snapshot.key;
_local3.key_on = snapshot.key_on;
_local3.key_off = snapshot.key_off;
_local3.x = snapshot.x;
_local3.y = snapshot.y;
_local3.frame = snapshot.frame;
return(_local3);
}
function input_base(snapshot) {
var _local5 = dupe_snapshot(snapshot);
mc.localToGlobal(_local5);
var _local3 = 0;
for ( ; _local3 < gizmos.length ; _local3++) {
if (gizmos[_local3].active) {
gizmos[_local3].mc.globalToLocal(_local5);
gizmos[_local3].input(_local5);
gizmos[_local3].mc.localToGlobal(_local5);
}
}
return(top.focus);
}
function child(g) {
var _local3 = gizmos.length;
gizmos[_local3] = g;
return(g);
}
function set_area(_x, _y, _w, _h) {
x = _x;
y = _y;
w = _w;
h = _h;
}
function draw_mask(px, py) {
gfx.setscroll(mc, px, py, w, h);
}
function set_knob(xx, yy) {
if (xx != null) {
x_knob = xx;
if (x_knob < 0) {
x_knob = 0;
}
if (x_knob > 1) {
x_knob = 1;
}
}
if (yy != null) {
y_knob = yy;
if (y_knob < 0) {
y_knob = 0;
}
if (y_knob > 1) {
y_knob = 1;
}
}
if (up.w > w) {
x = x_knob * (up.w - w);
} else {
x_knob = 0;
x = 0;
}
if (up.h > h) {
y = y_knob * (up.h - h);
} else {
y_knob = 0;
y = 0;
}
}
function setup() {
setup_base();
}
function clean() {
clean_base();
}
function update() {
if (up.w > w) {
x_knob = x / (up.w - w);
} else {
x_knob = 0;
}
if (up.h > h) {
y_knob = y / (up.h - h);
} else {
y_knob = 0;
}
update_base();
}
function input(snapshot) {
if (top.focus == this) {
var _local3 = dupe_snapshot(snapshot);
mc.localToGlobal(_local3);
up.mc.globalToLocal(_local3);
mc_base._visible = false;
mc_over._visible = false;
mc_down._visible = true;
x = (top.focus_data.orig_x + _local3.x) - top.focus_data.x;
y = (top.focus_data.orig_y + _local3.y) - top.focus_data.y;
if ((x + w) > up.w) {
x = up.w - w;
}
if ((y + h) > up.h) {
y = up.h - h;
}
if (x < 0) {
x = 0;
}
if (y < 0) {
y = 0;
}
update();
if (snapshot.key_off & 1) {
onClick(top.focus);
top.focus = null;
return(top.focus);
}
} else if ((top.focus == null) && ((snapshot.x > 0) && ((snapshot.y > 0) && ((snapshot.x < w) && (snapshot.y < h))))) {
if (snapshot.key_on & 1) {
top.focus = this;
top.focus_data = dupe_snapshot(snapshot);
mc.localToGlobal(top.focus_data);
up.mc.globalToLocal(top.focus_data);
top.focus_data.orig_x = x;
top.focus_data.orig_y = y;
mc_base._visible = false;
mc_over._visible = false;
mc_down._visible = true;
return(top.focus);
}
mc_base._visible = false;
mc_over._visible = true;
mc_down._visible = false;
} else {
mc_base._visible = true;
mc_over._visible = false;
mc_down._visible = false;
}
top.focus = input_base(snapshot);
return(top.focus);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20526 MovieClip [__Packages.Vbrain_door] Frame 0
class Vbrain_door
{
var up, dirt;
function Vbrain_door (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(xml) {
parse_xml(xml, 0);
menuset();
dirt = 0;
update();
gfx.clear(up.mc.hitArea);
gfx.draw_box(up.mc.hitArea, 0, -20, -80, 40, 80);
}
function clean() {
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
_local6 = true;
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
}
e.nodeName;
}
}
function menuset() {
up.mc.menu = {};
var _local2 = {};
_local2.name = "base";
_local2.items = [];
_local2.items.push({txt:"Use"});
_local2.items.push({txt:"Home"});
_local2.items.push({txt:"Clan"});
_local2.items.push({txt:"Corridor"});
_local2.items.push({txt:"Cancel"});
_local2.menuclick = delegate(menuclick, _local2);
up.mc.menu.base = _local2;
up.mc.getmenu = delegate(getmenu, null);
}
function getmenu(poke) {
if (up.mc.vcobj_menu.base) {
return(up.mc.vcobj_menu.base);
}
return(up.mc.menu.base);
}
function menuclick(poke, item, menu) {
var _local5 = poke.up.focus.cc;
switch (item.txt.toLowerCase()) {
case "use" :
do_use(_local5, "use");
poke.hidemenu();
break;
case "home" :
do_use(_local5, "home");
poke.hidemenu();
break;
case "clan" :
do_use(_local5, "clan");
poke.hidemenu();
break;
case "corridor" :
do_use(_local5, "corridor");
poke.hidemenu();
break;
default :
poke.hidemenu();
}
menu.name;
}
function do_use(cc, dest) {
cc.vcobj.send_msg_prop("xyz", (((up.px + ":") + up.py) + ":") + up.pz);
use_now = dest;
use_till = up.up.up.tick_time + (25 * 60);
}
function update_vcobj(props) {
if (!props) {
props = up.vcobj.props;
}
if (props.xyz) {
var _local3 = props.xyz.split(":");
up.px = Math.floor(_local3[0]);
up.py = Math.floor(_local3[1]);
up.pz = Math.floor(_local3[2]);
}
if (props.rot) {
var _local3 = props.rot.split(":");
up.rx = Math.floor(_local3[0]);
up.ry = Math.floor(_local3[1]);
up.rz = Math.floor(_local3[2]);
}
if (props.title) {
up.set_title(props.title);
}
if (props.dest) {
dest = props.dest;
}
}
function update() {
up.anim.page_base = "base";
if (up.ry == 0) {
up.anim.mc._x = -75;
up.anim.mc._y = -100;
} else if (up.ry == 90) {
up.anim.mc._x = -13;
up.anim.mc._y = -111;
}
if (use_now) {
if (use_till < up.up.up.tick_time) {
use_now = false;
}
var _local2 = up.up.focus.cc.px - up.px;
var _local3 = up.up.focus.cc.py - up.py;
var _local4 = up.up.focus.cc.pz - up.pz;
if ((50 * 50) > (((_local2 * _local2) + (_local3 * _local3)) + (_local4 * _local4))) {
if (use_last < up.up.up.tick_time) {
use_last = up.up.up.tick_time + 250;
up.vcobj.send_msg_prop("use", use_now);
}
}
}
}
//ASSetPropFlags(_local1, null, 1);
var dest = "home";
var use_now = false;
var use_last = 0;
var use_till = 0;
}
Symbol 20527 MovieClip [__Packages.xmlcache] Frame 0
class xmlcache
{
function xmlcache () {
}
function delegate(f, i) {
return(com.dynamicflash.utils.Delegate.create(this, f, i));
}
static function load(xml) {
var _local3 = _root.urlmap.map[xml.url];
if (_local3) {
xml.parseXML(_local3);
xml.onLoad("swf");
return(xml);
}
xml.load(xml.url);
return(xml);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20528 MovieClip [__Packages.Vbrain] Frame 0
class Vbrain
{
var up;
function Vbrain (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(xml) {
if (xml) {
parse_xml(xml, 0);
}
}
function clean() {
}
function parse_xml(e, d) {
var _local5 = false;
if (e.nodeType == 1) {
_local5 = true;
if (_local5) {
var _local4 = e.firstChild;
for ( ; _local4 ; _local4 = _local4.nextSibling) {
parse_xml(_local4, d + 1);
}
}
e.nodeName;
}
}
function update_vcobj(props) {
if (!props) {
props = up.vcobj.props;
}
if (props.xyz) {
var _local3 = props.xyz.split(":");
up.px = Math.floor(_local3[0]);
up.py = Math.floor(_local3[1]);
up.pz = Math.floor(_local3[2]);
}
}
function update() {
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20529 MovieClip [__Packages.Vbrain_hook] Frame 0
class Vbrain_hook
{
var up;
function Vbrain_hook (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(xml) {
parse_xml(xml, 0);
menuset();
up.nodes["1"].balloon = new Vballoon(up.up);
up.nodes["1"].balloon.owner = up;
up.nodes["1"].balloon.node = up.nodes["1"];
up.nodes["1"].balloon.setup();
update();
}
function clean() {
up.nodes["1"].balloon.clean();
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
_local6 = true;
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
}
e.nodeName;
}
}
function menuset() {
up.mc.menu = {};
var _local2 = {};
_local2.name = "base";
_local2.items = [];
_local2.items.push({txt:"Use"});
_local2.items.push({txt:"Cancel"});
_local2.menuclick = delegate(menuclick, _local2);
up.mc.menu.base = _local2;
up.mc.getmenu = delegate(getmenu, null);
}
function getmenu(poke) {
if (up.mc.vcobj_menu.base) {
return(up.mc.vcobj_menu.base);
}
return(up.mc.menu.base);
}
function menuclick(poke, item, menu) {
var _local5 = poke.up.focus.cc;
switch (item.txt.toLowerCase()) {
case "use" :
do_use(_local5, "use");
poke.hidemenu();
break;
default :
poke.hidemenu();
}
menu.name;
}
function do_use(cc, dest) {
}
function update_vcobj(props) {
if (!props) {
props = up.vcobj.props;
}
var _local4 = 1;
for ( ; _local4 <= 1 ; _local4++) {
var _local5 = "balloon" + _local4;
if (props[_local5]) {
var _local3 = props[_local5].split(":");
up.nodes["" + _local4].balloon.set_style(_local3[1], Math.floor(_local3[2]), Math.floor(_local3[3]), Math.floor(_local3[4]));
}
}
if (props.xyz) {
var _local3 = props.xyz.split(":");
up.px = Math.floor(_local3[0]);
up.py = Math.floor(_local3[1]);
up.pz = Math.floor(_local3[2]);
}
if (props.rot) {
var _local3 = props.rot.split(":");
up.rx = Math.floor(_local3[0]);
up.ry = Math.floor(_local3[1]);
up.rz = Math.floor(_local3[2]);
}
}
function update() {
up.anim.page_base = "base";
up.nodes["1"].balloon.update();
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20530 MovieClip [__Packages.Swish] Frame 0
class Swish
{
var bms, mcs, w, h, cw, ch, style, _xmouse, _ymouse, sw, sh, smul, setup_done, smc, frame, update_do;
function Swish (opts) {
if (opts) {
prepare(opts);
}
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function prepare(opts) {
rnd_seed(getTimer() & 65535);
bms = [];
mcs = [];
w = 800;
h = 600;
cw = 8;
ch = 6;
style = "fade";
_xmouse = 0;
_ymouse = 0;
if (opts.mc) {
_xmouse = opts.mc._xmouse;
_ymouse = opts.mc._ymouse;
}
if (opts.style) {
style = opts.style;
}
if (opts.w) {
w = opts.w;
}
if (opts.h) {
h = opts.h;
}
if (opts.cw) {
w = opts.cw;
}
if (opts.ch) {
h = opts.ch;
}
sw = w / cw;
sh = h / ch;
if (opts.mc) {
switch (style) {
case "fade" :
smul = 0.8;
bms[0] = new flash.display.BitmapData(w, h, false, 0);
bms[0].draw(opts.mc);
break;
case "slide_left" :
bms[0] = new flash.display.BitmapData(w, h, false, 0);
bms[0].draw(opts.mc);
break;
case "sqr_plode" :
case "sqr_shrink" :
case "sqr_rollup" :
smul = 0.95;
var _local3 = new flash.display.BitmapData(w, h, false, 0);
_local3.draw(opts.mc);
var _local5 = 0;
// unexpected jump
for(;;){
_local5++;
if (_local5 >= ch) {
break;
}
var _local4 = 0;
for ( ; _local4 < cw ; _local4++) {
bms[(_local5 * cw) + _local4] = new flash.display.BitmapData(sw, sh, false, 0);
bms[(_local5 * cw) + _local4].copyPixels(_local3, new flash.geom.Rectangle(_local4 * sw, _local5 * sh, sw, sh), new flash.geom.Point(0, 0));
}
};
}
}
if (opts.smul) {
smul = opts.smul;
}
setup_done = false;
}
function setup() {
if (!_root.mc_swish) {
_root.mc_swish = gfx.create_clip(_root, 16382);
_root.scalar.apply(_root.mc_swish);
}
smc = _root.mc_swish;
smc._alpha = 100;
frame = -2;
switch (style) {
case "fade" :
case "slide_left" :
mcs[0] = gfx.create_clip(smc, null, 400, 300);
mcs[1] = gfx.create_clip(mcs[0], null, -400, -300);
mcs[1].attachBitmap(bms[0], 0, "auto", true);
break;
case "sqr_plode" :
var _local3 = 0;
for ( ; _local3 < ch ; _local3++) {
var _local2 = 0;
for ( ; _local2 < cw ; _local2++) {
var _local4 = gfx.create_clip(smc, null, (_local2 + 0.5) * sw, (_local3 + 0.5) * sw);
mcs[(_local3 * cw) + _local2] = _local4;
_local4.mc = gfx.create_clip(_local4, null, (-sw) / 2, (-sh) / 2);
_local4.mc.attachBitmap(bms[(_local3 * cw) + _local2], 0, "auto", true);
_local4.vx = ((rnd() / 32768) - 1) * 16;
_local4.vy = -16 + ((rnd() / 65536) * -16);
_local4.vr = _local4.vx * 0.5;
}
}
break;
case "sqr_shrink" :
_local3 = 0;
for ( ; _local3 < ch ; _local3++) {
var _local2 = 0;
for ( ; _local2 < cw ; _local2++) {
var _local4 = gfx.create_clip(smc, null, (_local2 + 0.5) * sw, (_local3 + 0.5) * sw);
mcs[(_local3 * cw) + _local2] = _local4;
_local4.mc = gfx.create_clip(_local4, null, (-sw) / 2, (-sh) / 2);
_local4.mc.attachBitmap(bms[(_local3 * cw) + _local2], 0, "auto", true);
_local4.vx = 0;
_local4.vy = 0;
_local4.vr = 4;
}
}
break;
case "sqr_rollup" :
_local3 = 0;
// unexpected jump
for(;;){
_local3++;
if (_local3 >= ch) {
break;
}
var _local5 = null;
if (_local3 & 1) {
var _local2 = 0;
for ( ; _local2 < cw ; _local2++) {
if (_local5) {
var _local4 = gfx.create_clip(_local5, null, sw, 0);
_local5 = _local4;
} else {
var _local4 = gfx.create_clip(smc, null, _local2 * sw, (_local3 + 1) * sw);
_local5 = _local4;
}
mcs[(_local3 * cw) + _local2] = _local4;
_local4.mc = gfx.create_clip(_local4, null, 0, -sh);
_local4.mc.attachBitmap(bms[(_local3 * cw) + _local2], 0, "auto", true);
}
} else {
var _local2 = cw - 1;
for ( ; _local2 >= 0 ; _local2--) {
if (_local5) {
var _local4 = gfx.create_clip(_local5, null, -sw, 0);
_local5 = _local4;
} else {
var _local4 = gfx.create_clip(smc, null, (_local2 + 1) * sw, (_local3 + 1) * sw);
_local5 = _local4;
}
mcs[(_local3 * cw) + _local2] = _local4;
_local4.mc = gfx.create_clip(_local4, null, -sw, -sh);
_local4.mc.attachBitmap(bms[(_local3 * cw) + _local2], 0, "auto", true);
}
}
};
}
update_do = delegate(check_update, null);
MainStatic.update_add(_root.updates, update_do);
setup_done = true;
return(this);
}
function check_update() {
if (!update()) {
clean();
}
}
function clean() {
if (!setup_done) {
return(false);
}
MainStatic.update_remove(_root.updates, update_do);
update_do = null;
setup_done = false;
var _local2 = 0;
for ( ; _local2 < mcs.length ; _local2++) {
if (mcs[_local2]) {
mcs[_local2].removeMovieClip();
}
}
bms = [];
mcs = [];
frame = 0;
_root.swish = null;
return(true);
}
function update() {
if (!setup_done) {
return(true);
}
frame++;
if (frame < 0) {
return(true);
}
switch (style) {
case "fade" :
smc._alpha = smc._alpha * smul;
if ((smc._alpha < 3) && (smc._alpha > -1)) {
smc._alpha = 0;
return(false);
}
return(true);
case "slide_left" :
mcs[0]._x = -900 + ((mcs[0]._x - -900) * 0.9);
if (mcs[0]._x < -800) {
return(false);
}
return(true);
case "sqr_plode" :
if (frame > 200) {
return(false);
}
var _local6 = false;
var _local4 = 0;
for ( ; _local4 < ch ; _local4++) {
var _local3 = 0;
for ( ; _local3 < cw ; _local3++) {
var _local5 = mcs[(_local4 * cw) + _local3];
_local5._x = _local5._x + _local5.vx;
_local5._y = _local5._y + _local5.vy;
_local5._rotation = _local5._rotation + _local5.vr;
_local5.vy = _local5.vy + 2;
if (frame > 10) {
_local5._xscale = _local5._xscale * smul;
_local5._yscale = _local5._yscale * smul;
}
if (_local5._y < 1200) {
_local6 = true;
}
}
}
if (!_local6) {
return(false);
}
return(true);
case "sqr_shrink" :
if (frame > 200) {
return(false);
}
_local4 = 0;
for ( ; _local4 < ch ; _local4++) {
var _local3 = 0;
for ( ; _local3 < cw ; _local3++) {
var _local5 = mcs[(_local4 * cw) + _local3];
_local5._x = _local5._x + _local5.vx;
_local5._y = _local5._y + _local5.vy;
_local5._rotation = _local5._rotation + _local5.vr;
_local5._xscale = _local5._xscale * smul;
_local5._yscale = _local5._yscale * smul;
}
}
return(true);
case "sqr_rollup" :
var _local2 = Math.floor(frame / 6);
if (_local2 >= 8) {
return(false);
}
_local4 = 0;
for ( ; _local4 < ch ; _local4++) {
if (_local4 & 1) {
if (_local2 < 8) {
var _local5 = mcs[(_local4 * cw) + ((cw - 1) - _local2)];
_local5._rotation = _local5._rotation - (90 / 5);
}
} else if (_local2 < 8) {
var _local5 = mcs[(_local4 * cw) + _local2];
_local5._rotation = _local5._rotation + (90 / 5);
}
}
return(true);
}
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
}
Symbol 20531 MovieClip [__Packages.Replay] Frame 0
class Replay
{
var prekey, dat, str, state, key, key_on, key_off, prekey_idx, dat_idx, dat_idx_chunk, str_idx, frame, frame_recorded, frame_wait, premouse_x, premouse_y, mouse_x, mouse_y, play_mouse_x_old, play_mouse_y_old, play_mouse_f_old, play_mouse_x_new, play_mouse_y_new, play_mouse_f_new;
function Replay () {
setup();
}
function setup() {
prekey = new Array(64);
dat = new Array(1024);
str = "";
reset();
}
function reset() {
state = STATE_NONE;
key = 0;
key_on = 0;
key_off = 0;
prekey_idx = 0;
dat[0] = Clown.tostr(CODE_VERSION, 1) + Clown.tostr(VERSION, 2);
dat_idx = 0;
dat_idx_chunk = 64;
str_idx = 0;
frame = 0;
frame_recorded = 0;
frame_wait = 0;
premouse_x = 0;
premouse_y = 0;
mouse_x = 0;
mouse_y = 0;
play_mouse_x_old = 0;
play_mouse_y_old = 0;
play_mouse_f_old = 0;
play_mouse_x_new = 0;
play_mouse_y_new = 0;
play_mouse_f_new = 0;
}
function record_time() {
var _local2 = frame - frame_recorded;
while (_local2 > 0) {
if (_local2 <= 64) {
dat[dat_idx] = dat[dat_idx] + (Clown.tostr(CODE_TIME_64, 1) + Clown.tostr(_local2 - 1, 1));
if ((--dat_idx_chunk) < 0) {
dat_idx_chunk = 64;
dat[++dat_idx] = "";
}
_local2 = 0;
} else if (_local2 <= 4096) {
dat[dat_idx] = dat[dat_idx] + (Clown.tostr(CODE_TIME_4096, 1) + Clown.tostr(_local2 - 1, 2));
if ((--dat_idx_chunk) < 0) {
dat_idx_chunk = 64;
dat[++dat_idx] = "";
}
_local2 = 0;
} else {
dat[dat_idx] = dat[dat_idx] + (Clown.tostr(CODE_TIME_4096, 1) + Clown.tostr(4096 - 1, 2));
if ((--dat_idx_chunk) < 0) {
dat_idx_chunk = 64;
dat[++dat_idx] = "";
}
_local2 = _local2 - 4096;
}
}
frame_recorded = frame;
}
function prekey_on(k) {
prekey[prekey_idx++] = k;
}
function prekey_off(k) {
prekey[prekey_idx++] = 32 + k;
}
function prekey_update() {
if (state == STATE_RECORD) {
var _local2 = 0;
for ( ; _local2 < prekey_idx ; _local2++) {
var _local3 = prekey[_local2];
if (_local3 >= 32) {
record_key_off(_local3 - 32);
} else {
record_key_on(_local3);
}
}
} else if (state == STATE_NONE) {
var _local2 = 0;
for ( ; _local2 < prekey_idx ; _local2++) {
var _local3 = prekey[_local2];
if (_local3 >= 32) {
play_key_off(_local3 - 32);
} else {
play_key_on(_local3);
}
}
}
prekey_idx = 0;
}
function play_key_on(k) {
var _local3 = 1 << k;
key = key | _local3;
key_on = key_on | _local3;
key_off = key_off & (_local3 ^ -1);
}
function record_key_on(k) {
var _local3 = 1 << k;
if ((key & _local3) == 0) {
play_key_on(k);
record_time();
dat[dat_idx] = dat[dat_idx] + (Clown.tostr(CODE_KEY, 1) + Clown.tostr(k, 1));
if ((--dat_idx_chunk) < 0) {
dat_idx_chunk = 64;
dat[++dat_idx] = "";
}
}
}
function play_key_off(k) {
var _local3 = 1 << k;
key = key & (_local3 ^ -1);
key_on = key_on & (_local3 ^ -1);
key_off = key_off | _local3;
}
function record_key_off(k) {
var _local3 = 1 << k;
if ((key & _local3) == _local3) {
play_key_off(k);
record_time();
dat[dat_idx] = dat[dat_idx] + (Clown.tostr(CODE_KEY, 1) + Clown.tostr(32 + k, 1));
if ((--dat_idx_chunk) < 0) {
dat_idx_chunk = 64;
dat[++dat_idx] = "";
}
}
}
function record_mouse() {
if (state == STATE_RECORD) {
if (play_mouse_f_old != frame) {
record_time();
dat[dat_idx] = dat[dat_idx] + ((Clown.tostr(CODE_MOUSE_XY_4096, 1) + Clown.tostr(mouse_x + 2048, 2)) + Clown.tostr(mouse_y + 2048, 2));
if ((--dat_idx_chunk) < 0) {
dat_idx_chunk = 64;
dat[++dat_idx] = "";
}
play_mouse_x_old = mouse_x;
play_mouse_y_old = mouse_y;
play_mouse_f_old = frame;
}
}
}
function start_play(_str) {
str = _str;
trace("start_play");
trace("replay str_length:" + str.length);
trace("replay str:" + str);
reset();
state = STATE_PLAY;
}
function end_play() {
trace("end_play");
state = STATE_NONE;
}
function start_record() {
trace("start_record");
reset();
find_next_mouse_pos();
state = STATE_RECORD;
}
function end_record() {
trace("end_record");
state = STATE_NONE;
str = dat_tostr();
trace(str);
}
function update() {
key_on = 0;
key_off = 0;
if (state == STATE_PLAY) {
frame++;
prekey_update();
play_update();
} else if (state == STATE_RECORD) {
frame++;
mouse_x = Math.floor(premouse_x);
mouse_y = Math.floor(premouse_y);
prekey_update();
} else if (state == STATE_NONE) {
mouse_x = Math.floor(premouse_x);
mouse_y = Math.floor(premouse_y);
prekey_update();
}
}
function dat_tostr() {
var _local3 = "";
var _local2 = 0;
for ( ; _local2 <= dat_idx ; _local2++) {
_local3 = _local3 + dat[_local2];
}
return(_local3);
}
function play_update() {
if (typeof(str) != "string") {
return(undefined);
}
while (frame_wait <= frame) {
if (str_idx > str.length) {
return(undefined);
}
var _local2 = Clown.tonum(str, str_idx++, 1);
switch (_local2) {
case CODE_VERSION :
if (Clown.tonum(str, str_idx, 2) != VERSION) {
str_idx = str_idx - 1;
frame_wait = frame_wait + 64;
} else {
str_idx = str_idx + 2;
}
break;
case CODE_TIME_64 :
frame_wait = frame_wait + (Clown.tonum(str, str_idx++, 1) + 1);
break;
case CODE_TIME_4096 :
frame_wait = frame_wait + (Clown.tonum(str, str_idx, 2) + 1);
str_idx = str_idx + 2;
break;
case CODE_KEY :
var _local3 = Clown.tonum(str, str_idx++, 1);
if (_local3 >= 32) {
play_key_off(_local3 - 32);
} else {
play_key_on(_local3);
}
break;
case CODE_MOUSE_XY_4096 :
play_mouse_x_old = Clown.tonum(str, str_idx, 2) - 2048;
str_idx = str_idx + 2;
play_mouse_y_old = Clown.tonum(str, str_idx, 2) - 2048;
str_idx = str_idx + 2;
play_mouse_f_old = frame;
find_next_mouse_pos();
}
}
if ((play_mouse_f_old <= frame) && (play_mouse_f_new > frame)) {
var _local4 = frame - play_mouse_f_old;
_local4 = _local4 / (play_mouse_f_new - play_mouse_f_old);
mouse_x = play_mouse_x_old + ((play_mouse_x_new - play_mouse_x_old) * _local4);
mouse_y = play_mouse_y_old + ((play_mouse_y_new - play_mouse_y_old) * _local4);
} else {
mouse_x = play_mouse_x_new;
mouse_y = play_mouse_y_new;
}
}
function find_next_mouse_pos() {
play_mouse_x_new = play_mouse_x_old;
play_mouse_y_new = play_mouse_y_old;
play_mouse_f_new = play_mouse_f_old;
var _local5 = str_idx;
var _local4 = frame;
while (play_mouse_f_new == play_mouse_f_old) {
if (_local5 > str.length) {
return(undefined);
}
var _local2 = Clown.tonum(str, _local5++, 1);
switch (_local2) {
case CODE_TIME_64 :
_local4 = _local4 + (Clown.tonum(str, _local5++, 1) + 1);
break;
case CODE_TIME_4096 :
_local4 = _local4 + (Clown.tonum(str, _local5, 2) + 1);
_local5 = _local5 + 2;
break;
case CODE_MOUSE_XY_4096 :
play_mouse_x_new = Clown.tonum(str, _local5, 2) - 2048;
_local5 = _local5 + 2;
play_mouse_y_new = Clown.tonum(str, _local5, 2) - 2048;
_local5 = _local5 + 2;
play_mouse_f_new = _local4;
return(undefined);
default :
_local5 = _local5 + code_data_sizes[_local2];
}
}
}
function clean() {
}
function apply_keys_to_prekey() {
if (Key.isDown(Key.UP)) {
prekey_on(KEY_UP);
} else {
prekey_off(KEY_UP);
}
if (Key.isDown(Key.DOWN)) {
prekey_on(KEY_DOWN);
} else {
prekey_off(KEY_DOWN);
}
if (Key.isDown(Key.LEFT)) {
prekey_on(KEY_LEFT);
} else {
prekey_off(KEY_LEFT);
}
if (Key.isDown(Key.RIGHT)) {
prekey_on(KEY_RIGHT);
} else {
prekey_off(KEY_RIGHT);
}
}
//ASSetPropFlags(_local1, null, 1);
static var VERSION = 4;
static var STATE_NONE = 0;
static var STATE_RECORD = 1;
static var STATE_PLAY = 2;
static var CODE_VERSION = 0;
static var CODE_TIME_64 = 1;
static var CODE_TIME_4096 = 2;
static var CODE_KEY = 3;
static var CODE_MOUSE_XY_4096 = 4;
var code_data_sizes = [2, 1, 2, 1, 4];
static var KEY_MBUTTON = 0;
static var KEY_FIRE = 1;
static var KEY_UP = 2;
static var KEY_DOWN = 3;
static var KEY_LEFT = 4;
static var KEY_RIGHT = 5;
static var KEY_MAX = 6;
static var KEYM_MBUTTON = 1;
static var KEYM_FIRE = 2;
static var KEYM_UP = 4;
static var KEYM_DOWN = 8;
static var KEYM_LEFT = 16;
static var KEYM_RIGHT = 32;
static var KEYM_MAX = 64;
}
Symbol 20532 MovieClip [__Packages.Clown] Frame 0
class Clown
{
function Clown () {
}
static function tostr(num, len) {
var _local6 = num;
var _local7 = "";
var _local4 = 0;
for ( ; _local4 < len ; _local4++) {
var _local5 = _local6 & 63;
_local7 = _local7 + chars.charAt(_local5);
_local6 = _local6 >> 6;
}
return(_local7);
}
static function tonum(str, base, len) {
var _local8 = 1;
var _local7 = 0;
var _local6 = base;
for ( ; _local6 < (base + len) ; _local6++) {
var _local5 = str.charCodeAt(_local6);
_local7 = _local7 + (nums[_local5] * _local8);
_local8 = _local8 * 64;
}
return(_local7);
}
static function bits_to_str(arr, bits) {
if ((bits % 6) != 0) {
return(null);
}
var _local4 = "";
var _local5 = 0;
for ( ; _local5 < arr.length ; _local5++) {
_local4 = _local4 + tostr(arr[_local5], bits / 6);
}
return(_local4);
}
static function str_to_bits(str, off, bits) {
if ((bits % 6) != 0) {
return(null);
}
var _local7 = bits / 6;
var _local6 = [];
var _local8 = str.length;
var _local5 = off;
for ( ; _local5 < _local8 ; _local5 = _local5 + _local7) {
_local6[_local6.length] = tonum(str, _local5, _local7);
}
return(_local6);
}
static function str_to_pak(str) {
var _local4 = str.length;
var _local3 = tostr(_local4, 4);
var _local5 = 0;
for ( ; _local5 < _local4 ; _local5 = _local5 + 3) {
if ((_local5 + 3) <= _local4) {
var _local7 = str.charCodeAt(_local5 + 0);
_local7 = _local7 + (str.charCodeAt(_local5 + 1) * 256);
_local7 = _local7 + (str.charCodeAt(_local5 + 2) * 65536);
_local3 = _local3 + tostr(_local7, 4);
} else {
var _local7 = str.charCodeAt(_local5 + 0);
if ((_local5 + 1) < _local4) {
_local7 = _local7 + (str.charCodeAt(_local5 + 1) * 256);
}
if ((_local5 + 2) < _local4) {
_local7 = _local7 + (str.charCodeAt(_local5 + 2) * 65536);
}
_local3 = _local3 + tostr(_local7, 4);
}
}
return(_local3);
}
static function pak_to_str(pak) {
var _local3 = "";
var _local4 = tonum(pak, 0, 4);
var _local6 = 4;
var _local5 = 0;
for ( ; _local5 < _local4 ; _local5 = _local5 + 3) {
if (_local6 > pak.length) {
break;
}
if ((_local5 + 3) <= _local4) {
var _local8 = tonum(pak, _local6, 4);
_local6 = _local6 + 4;
_local3 = _local3 + String.fromCharCode(_local8 & 255, (_local8 >> 8) & 255, (_local8 >> 16) & 255);
} else {
var _local8 = tonum(pak, _local6, 4);
_local6 = _local6 + 4;
_local3 = _local3 + String.fromCharCode(_local8 & 255);
if ((_local5 + 1) < _local4) {
_local3 = _local3 + String.fromCharCode((_local8 >> 8) & 255);
}
if ((_local5 + 2) < _local4) {
_local3 = _local3 + String.fromCharCode((_local8 >> 16) & 255);
}
}
}
return(_local3);
}
//ASSetPropFlags(_local1, null, 1);
static var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static var 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];
}
Symbol 20533 MovieClip [__Packages.URLmap] Frame 0
class URLmap
{
var map;
function URLmap () {
map = [];
map["http://data.wetgenes.com/game/s/ville/test/room/dirt_test.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/dirt_test.xml\" />\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/arcade.xml\" >\n\t<xyz\n\tx_pos=\"100\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/acube.xml\" >\n\t<xyz\n\tx_pos=\"200\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/column.xml\" >\n\t<xyz\n\tx_pos=\"300\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/solid_aether_face.xml\" >\n\t<xyz\n\tx_pos=\"400\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/dirt_test.png"] = "data_test_back_dirt_test_png";
map["http://data.wetgenes.com/game/s/ville/test/back/dirt_test.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/dirt_test.png\" />\n\n<xy\n\tx_org=\"10\"\n\ty_org=\"190\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-300\"\n\t\n\tx_max=\"920\"\n\ty_max=\"200\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-720\"\n\tz_min=\"0\"\n\t\n\tx_max=\"720\"\n\ty_max=\"0\"\n\tz_max=\"720\"\n/>\n\n<entrance>\n<xyz\n\tx_min=\"100\"\n\ty_min=\"0\"\n\tz_min=\"100\"\n\t\n\tx_max=\"200\"\n\ty_max=\"0\"\n\tz_max=\"620\"\n/>\n</entrance>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/test.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/bog_small.xml\" />\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/bog_small.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/bog_small.xml\" />\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"360\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"320\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"280\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"240\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"200\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical.xml\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"600\"\n\t/>\n</vobj>\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical.xml\" >\n\t<xyz\n\tx_pos=\"80\"\n\ty_pos=\"0\"\n\tz_pos=\"600\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/table.xml\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"0\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/sink.xml\" >\n\t<xyz\n\tx_pos=\"160\"\n\ty_pos=\"0\"\n\tz_pos=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/pumpkin.xml\">\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/bog_small.png"] = "data_test_back_bog_small_png";
map["http://data.wetgenes.com/game/s/ville/test/back/bog_small.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/bog_small.png\" />\n\n<xy\n\tx_org=\"10\"\n\ty_org=\"390\"\n\t\n\tx_min=\"0\"\n\ty_min=\"0\"\n\t\n\tx_max=\"600\"\n\ty_max=\"400\"\n\t\n\tscale=\"125\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-400\"\n\tz_min=\"0\"\n\t\n\tx_max=\"400\"\n\ty_max=\"0\"\n\tz_max=\"720\"\n/>\n\n<entrance>\n<xyz\n\tx_min=\"100\"\n\ty_min=\"0\"\n\tz_min=\"100\"\n\t\n\tx_max=\"200\"\n\ty_max=\"0\"\n\tz_max=\"620\"\n/>\n</entrance>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/tv_wide.png"] = "data_test_back_tv_wide_png";
map["http://data.wetgenes.com/game/s/ville/test/room/home.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/tv_wide.xml\" />\n\n<vobj class=\"comic\" brain=\"vback\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/comic_4lfa.xml\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"./corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n<vroom name=\"corridor\" src=\"http://data.wetgenes.com/game/s/ville/test/room/home_corridor.xml\" />\n\n<vroom name=\"shed\" src=\"http://data.wetgenes.com/game/s/ville/test/room/shed_small.xml\" />\n\n<vroom name=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/room/broom_closet.xml\" />\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/home_corridor.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/corridor.xml\" />\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"100\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"./\" title=\"Home\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/shed_in.xml\" dest=\"./shed\" title=\"Shed\" >\n\t<xyz\n\tx_pos=\"150\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/tv_small.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/tv_small.xml\" />\n\n<vtv >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t\n\tx_siz=\"400\"\n\ty_siz=\"300\"\n\tz_siz=\"0\"\n\t/>\n</vtv>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/tv_small.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/bog_small.png\" />\n\n<xy\n\tx_org=\"10\"\n\ty_org=\"390\"\n\t\n\tx_min=\"0\"\n\ty_min=\"0\"\n\t\n\tx_max=\"600\"\n\ty_max=\"400\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-400\"\n\tz_min=\"0\"\n\t\n\tx_max=\"400\"\n\ty_max=\"0\"\n\tz_max=\"720\"\n/>\n\n<entrance>\n<xyz\n\tx_min=\"100\"\n\ty_min=\"0\"\n\tz_min=\"100\"\n\t\n\tx_max=\"200\"\n\ty_max=\"0\"\n\tz_max=\"620\"\n/>\n</entrance>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/tv_wide.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/tv_wide.xml\" />\n\n<vtv >\n\t<xyz\n\tx_pos=\"200\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t\n\tx_siz=\"400\"\n\ty_siz=\"300\"\n\tz_siz=\"0\"\n\t/>\n</vtv>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.tv.emptyv\" title=\"eMpTyV\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\ty_rot=\"0\"\n\t/>\n</vobj\n>\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.tv.noir\" title=\"TV Noir\" >\n\t<xyz\n\tx_pos=\"750\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/tv_wide.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/tv_wide.png\" />\n\n<xy\n\tx_org=\"0\"\n\ty_org=\"480\"\n\t\n\tx_min=\"0\"\n\ty_min=\"0\"\n\t\n\tx_max=\"980\"\n\ty_max=\"480\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-400\"\n\tz_min=\"0\"\n\t\n\tx_max=\"800\"\n\ty_max=\"0\"\n\tz_max=\"720\"\n/>\n\n<entrance>\n<xyz\n\tx_min=\"100\"\n\ty_min=\"0\"\n\tz_min=\"100\"\n\t\n\tx_max=\"200\"\n\ty_max=\"0\"\n\tz_max=\"620\"\n/>\n</entrance>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/comic_4lfa.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/tv_wide.xml\" />\n\n<vobj class=\"comic\" brain=\"4lfa\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/comic_4lfa.xml\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/bog_wide.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/bog_wide.xml\" />\n\n<vobj class=\"ball\" id=\"ball\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/football.xml\" >\n\t<xyz\n\tx_pos=\"600\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"760\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"720\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"680\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"640\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"600\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"560\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"520\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"480\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml\" >\n\t<xyz\n\tx_pos=\"440\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical.xml\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"600\"\n\t/>\n</vobj>\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical.xml\" >\n\t<xyz\n\tx_pos=\"80\"\n\ty_pos=\"0\"\n\tz_pos=\"600\"\n\t/>\n</vobj>\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical.xml\" >\n\t<xyz\n\tx_pos=\"160\"\n\ty_pos=\"0\"\n\tz_pos=\"600\"\n\t/>\n</vobj>\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical.xml\" >\n\t<xyz\n\tx_pos=\"240\"\n\ty_pos=\"0\"\n\tz_pos=\"600\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/table.xml\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"0\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/sink.xml\" >\n\t<xyz\n\tx_pos=\"160\"\n\ty_pos=\"0\"\n\tz_pos=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"370\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/candle.xml\">\n\t<xyz\n\tx_pos=\"750\"\n\ty_pos=\"0\"\n\tz_pos=\"50\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/candle.xml\">\n\t<xyz\n\tx_pos=\"750\"\n\ty_pos=\"0\"\n\tz_pos=\"250\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/candle.xml\">\n\t<xyz\n\tx_pos=\"750\"\n\ty_pos=\"0\"\n\tz_pos=\"450\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/pumpkin.xml\">\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/pumpkins.xml\">\n\t<xyz\n\tx_pos=\"500\"\n\ty_pos=\"0\"\n\tz_pos=\"100\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/bog_wide.png"] = "data_test_back_bog_wide_png";
map["http://data.wetgenes.com/game/s/ville/test/back/bog_wide.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/bog_wide.png\" />\n\n<xy\n\tx_org=\"0\"\n\ty_org=\"380\"\n\t\n\tx_min=\"0\"\n\ty_min=\"0\"\n\t\n\tx_max=\"980\"\n\ty_max=\"400\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-400\"\n\tz_min=\"0\"\n\t\n\tx_max=\"800\"\n\ty_max=\"0\"\n\tz_max=\"720\"\n/>\n\n<entrance>\n<xyz\n\tx_min=\"100\"\n\ty_min=\"0\"\n\tz_min=\"100\"\n\t\n\tx_max=\"200\"\n\ty_max=\"0\"\n\tz_max=\"620\"\n/>\n</entrance>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/vip_wide.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/vip_wide.xml\" />\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public\" title=\"Public\" >\n\t<xyz\n\tx_pos=\"750\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/vip_wide.png"] = "data_test_back_vip_wide_png";
map["http://data.wetgenes.com/game/s/ville/test/back/vip_wide.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/vip_wide.png\" />\n\n<xy\n\tx_org=\"0\"\n\ty_org=\"380\"\n\t\n\tx_min=\"0\"\n\ty_min=\"0\"\n\t\n\tx_max=\"980\"\n\ty_max=\"400\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-400\"\n\tz_min=\"0\"\n\t\n\tx_max=\"800\"\n\ty_max=\"0\"\n\tz_max=\"720\"\n/>\n\n<entrance>\n<xyz\n\tx_min=\"100\"\n\ty_min=\"0\"\n\tz_min=\"100\"\n\t\n\tx_max=\"200\"\n\ty_max=\"0\"\n\tz_max=\"620\"\n/>\n</entrance>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/wolf_wide.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/wolf_wide.xml\" />\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/blank.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/wolf_wide.png"] = "data_test_back_wolf_wide_png";
map["http://data.wetgenes.com/game/s/ville/test/back/wolf_wide.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/wolf_wide.png\" />\n\n<xy\n\tx_org=\"150\"\n\ty_org=\"480\"\n\t\n\tx_min=\"0\"\n\ty_min=\"0\"\n\t\n\tx_max=\"980\"\n\ty_max=\"480\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-400\"\n\tz_min=\"0\"\n\t\n\tx_max=\"650\"\n\ty_max=\"0\"\n\tz_max=\"720\"\n/>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/zom_wide.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/zom_wide.xml\" />\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"780\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/shelf.xml\" >\n\t<xyz\n\tx_pos=\"200\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/zom_wide.png"] = "data_test_back_zom_wide_png";
map["http://data.wetgenes.com/game/s/ville/test/back/zom_wide.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/zom_wide.png\" />\n\n<xy\n\tx_org=\"80\"\n\ty_org=\"480\"\n\t\n\tx_min=\"0\"\n\ty_min=\"0\"\n\t\n\tx_max=\"1045\"\n\ty_max=\"480\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-400\"\n\tz_min=\"0\"\n\t\n\tx_max=\"720\"\n\ty_max=\"0\"\n\tz_max=\"980\"\n/>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/kickabout.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/kickabout.xml\" />\n\n\n<vobj class=\"ball\" id=\"ball\" game=\"kickabout\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/football.xml\" >\n\t<xyz\n\tx_pos=\"600\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"600\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/kickabout.png"] = "data_test_back_kickabout_png";
map["http://data.wetgenes.com/game/s/ville/test/back/kickabout.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/kickabout.png\" />\n\n<xy\n\tx_org=\"0\"\n\ty_org=\"380\"\n\t\n\tx_min=\"0\"\n\ty_min=\"0\"\n\t\n\tx_max=\"1380\"\n\ty_max=\"400\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-400\"\n\tz_min=\"0\"\n\t\n\tx_max=\"1200\"\n\ty_max=\"0\"\n\tz_max=\"720\"\n/>\n\n<entrance>\n<xyz\n\tx_min=\"100\"\n\ty_min=\"0\"\n\tz_min=\"100\"\n\t\n\tx_max=\"200\"\n\ty_max=\"0\"\n\tz_max=\"620\"\n/>\n</entrance>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/corridor_play.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/corridor.xml\" />\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"100\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/kickabout.xml\" dest=\"public.kickabout\" title=\"Kickabout\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/corridor_view.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/corridor.xml\" />\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"100\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/tv.xml\" dest=\"public.tv\" title=\"TV\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/tv.xml\" dest=\"public.tv.noir\" title=\"TV Noir\" >\n\t<xyz\n\tx_pos=\"150\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/tv.xml\" dest=\"public.tv.emptyv\" title=\"eMpTyV\" >\n\t<xyz\n\tx_pos=\"250\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.4lfa\" title=\"4lfa Comics\" >\n\t<xyz\n\tx_pos=\"350\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/corridor_pubs.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/corridor.xml\" />\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"100\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public\" title=\"Public\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/swearbox.xml\" dest=\"swearbox\" title=\"Swear Box\" >\n\t<xyz\n\tx_pos=\"150\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/limbo.xml\" dest=\"limbo\" title=\"Limbo\" >\n\t<xyz\n\tx_pos=\"250\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.news\" title=\"News\" >\n\t<xyz\n\tx_pos=\"350\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.rank5\" title=\"Rank 5\" >\n\t<xyz\n\tx_pos=\"450\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.rank10\" title=\"Rank 10\" >\n\t<xyz\n\tx_pos=\"550\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/corridor_rets.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/corridor.xml\" />\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"100\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.gaybar\" title=\"Gay Bar\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.pool\" title=\"Pool\" >\n\t<xyz\n\tx_pos=\"150\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.emo\" title=\"Emo\" >\n\t<xyz\n\tx_pos=\"250\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.inuyasha\" title=\"Inuyasha\" >\n\t<xyz\n\tx_pos=\"350\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.butterfly\" title=\"Butterfly\" >\n\t<xyz\n\tx_pos=\"450\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/corridor.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/corridor.xml\" />\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/surprise.xml\" dest=\"follow\" title=\"Follow Me\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public\" title=\"Public\" >\n\t<xyz\n\tx_pos=\"150\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/kickabout.xml\" dest=\"./play\" title=\"Arcade\" >\n\t<xyz\n\tx_pos=\"250\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/tv.xml\" dest=\"./view\" title=\"AV Club\" >\n\t<xyz\n\tx_pos=\"350\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/clan.xml\" dest=\"clan\" title=\"Clan Room\" >\n\t<xyz\n\tx_pos=\"450\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"home\" title=\"Home\" >\n\t<xyz\n\tx_pos=\"550\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"./pubs\" title=\"Lobby\" >\n\t<xyz\n\tx_pos=\"650\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"./rets\" title=\"Rentals\" >\n\t<xyz\n\tx_pos=\"750\"\n\ty_pos=\"0\"\n\tz_pos=\"360\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/candle.xml\">\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"50\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj src=\"http://data.wetgenes.com/game/s/ville/test/vobj/candle.xml\">\n\t<xyz\n\tx_pos=\"750\"\n\ty_pos=\"0\"\n\tz_pos=\"50\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vroom name=\"play\" src=\"http://data.wetgenes.com/game/s/ville/test/room/corridor_play.xml\" />\n\n<vroom name=\"view\" src=\"http://data.wetgenes.com/game/s/ville/test/room/corridor_view.xml\" />\n\n<vroom name=\"pubs\" src=\"http://data.wetgenes.com/game/s/ville/test/room/corridor_pubs.xml\" />\n\n<vroom name=\"rets\" src=\"http://data.wetgenes.com/game/s/ville/test/room/corridor_rets.xml\" />\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/corridor.png"] = "data_test_back_corridor_png";
map["http://data.wetgenes.com/game/s/ville/test/back/corridor.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/corridor.png\" />\n\n<xy\n\tx_org=\"0\"\n\ty_org=\"290\"\n\t\n\tx_min=\"0\"\n\ty_min=\"0\"\n\t\n\tx_max=\"890\"\n\ty_max=\"290\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-400\"\n\tz_min=\"0\"\n\t\n\tx_max=\"800\"\n\ty_max=\"0\"\n\tz_max=\"360\"\n/>\n\n<entrance>\n<xyz\n\tx_min=\"100\"\n\ty_min=\"0\"\n\tz_min=\"100\"\n\t\n\tx_max=\"200\"\n\ty_max=\"0\"\n\tz_max=\"620\"\n/>\n</entrance>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/shed_small.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/shed_small.xml\" />\n\n\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/broom_closet.xml\" dest=\"./closet\" title=\"Broom Closet\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/shed_out.xml\" dest=\"./corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"350\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"pot\" nodes=\"3\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/shed_pot1.xml\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"450\"\n\t/>\n</vobj>\n\n<vobj class=\"hook\" id=\"8\" brain=\"god\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"300\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\t/>\n</vobj>\n\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/shed_small.png"] = "data_test_back_shed_small_png";
map["http://data.wetgenes.com/game/s/ville/test/back/shed_small.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/shed_small.png\" />\n\n<xy\n\tx_org=\"10\"\n\ty_org=\"390\"\n\t\n\tx_min=\"0\"\n\ty_min=\"0\"\n\t\n\tx_max=\"600\"\n\ty_max=\"400\"\n\n\tscale=\"125\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-400\"\n\tz_min=\"0\"\n\t\n\tx_max=\"400\"\n\ty_max=\"0\"\n\tz_max=\"720\"\n/>\n\n<entrance>\n<xyz\n\tx_min=\"100\"\n\ty_min=\"0\"\n\tz_min=\"100\"\n\t\n\tx_max=\"200\"\n\ty_max=\"0\"\n\tz_max=\"620\"\n/>\n</entrance>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/broom_closet.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/shed_small.xml\" />\n\n\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/shed_out.xml\" dest=\"./shed\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"350\"\n\ty_pos=\"0\"\n\tz_pos=\"720\"\n\ty_rot=\"0\"\n\t/>\n</vobj>\n\n<vobj class=\"hook\" id=\"1\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"100\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"2\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"150\"\n\ty_pos=\"0\"\n\tz_pos=\"100\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"3\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"250\"\n\ty_pos=\"0\"\n\tz_pos=\"100\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"4\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"350\"\n\ty_pos=\"0\"\n\tz_pos=\"100\"\n\t/>\n</vobj>\n\n<vobj class=\"hook\" id=\"5\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"200\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"6\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"150\"\n\ty_pos=\"0\"\n\tz_pos=\"200\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"7\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"250\"\n\ty_pos=\"0\"\n\tz_pos=\"200\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"8\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"350\"\n\ty_pos=\"0\"\n\tz_pos=\"200\"\n\t/>\n</vobj>\n\n<vobj class=\"hook\" id=\"9\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"10\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"150\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"11\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"250\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"12\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"350\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\t/>\n</vobj>\n\n<vobj class=\"hook\" id=\"13\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"14\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"150\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"15\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"250\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\t/>\n</vobj>\n<vobj class=\"hook\" id=\"16\" brain=\"closet\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"350\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/back/kolumbo.png"] = "data_test_back_kolumbo_png";
map["http://data.wetgenes.com/game/s/ville/test/back/kolumbo.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><back>\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/back/kolumbo.png\" />\n\n<xy\n\tx_org=\"10\"\n\ty_org=\"390\"\n\t\n\tx_min=\"0\"\n\ty_min=\"0\"\n\t\n\tx_max=\"600\"\n\ty_max=\"400\"\n\t\n\tscale=\"125\"\n/>\n\t\n<xyz\n\tx_org=\"0\"\n\ty_org=\"0\"\n\tz_org=\"0\"\n\t\n\tx_min=\"0\"\n\ty_min=\"-400\"\n\tz_min=\"0\"\n\t\n\tx_max=\"400\"\n\ty_max=\"0\"\n\tz_max=\"720\"\n/>\n\n<entrance>\n<xyz\n\tx_min=\"100\"\n\ty_min=\"0\"\n\tz_min=\"100\"\n\t\n\tx_max=\"200\"\n\ty_max=\"0\"\n\tz_max=\"620\"\n/>\n</entrance>\n\n</back></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/room/kolumbo.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><room>\n\n<back src=\"http://data.wetgenes.com/game/s/ville/test/back/kolumbo.xml\" />\n\n\n<vobj class=\"door\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml\" dest=\"public.corridor\" title=\"Exit\" >\n\t<xyz\n\tx_pos=\"0\"\n\ty_pos=\"0\"\n\tz_pos=\"400\"\n\ty_rot=\"90\"\n\t/>\n</vobj>\n\n<vobj class=\"hook\" id=\"1\" brain=\"kolumbo\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/rightnip.xml\" >\n\t<xyz\n\tx_pos=\"300\"\n\ty_pos=\"0\"\n\tz_pos=\"600\"\n\t/>\n</vobj>\n\n\n<vobj class=\"hook\" id=\"2\" brain=\"kolumbo\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/leftnip.xml\" >\n\t<xyz\n\tx_pos=\"100\"\n\ty_pos=\"0\"\n\tz_pos=\"600\"\n\t/>\n</vobj>\n\n\n<vobj class=\"hook\" id=\"3\" brain=\"kolumbo\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"150\"\n\ty_pos=\"0\"\n\tz_pos=\"100\"\n\t/>\n</vobj>\n\n<vobj class=\"hook\" id=\"4\" brain=\"kolumbo\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"50\"\n\ty_pos=\"0\"\n\tz_pos=\"300\"\n\t/>\n</vobj>\n\n<vobj class=\"hook\" id=\"5\" brain=\"kolumbo\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"200\"\n\ty_pos=\"0\"\n\tz_pos=\"50\"\n\t/>\n</vobj>\n\n<vobj class=\"hook\" id=\"6\" brain=\"kolumbo\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"200\"\n\ty_pos=\"0\"\n\tz_pos=\"200\"\n\t/>\n</vobj>\n\n<vobj class=\"hook\" id=\"7\" brain=\"kolumbo\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"300\"\n\ty_pos=\"0\"\n\tz_pos=\"150\"\n\t/>\n</vobj>\n\n<vobj class=\"hook\" id=\"8\" brain=\"kolumbo\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml\" >\n\t<xyz\n\tx_pos=\"350\"\n\ty_pos=\"0\"\n\tz_pos=\"250\"\n\t/>\n</vobj>\n\n</room></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/balloon/ball.png"] = "data_test_balloon_ball_png";
map["http://data.wetgenes.com/game/s/ville/test/balloon/ballwrite.png"] = "data_test_balloon_ballwrite_png";
map["http://data.wetgenes.com/game/s/ville/test/balloon/ballwrite1.png"] = "data_test_balloon_ballwrite1_png";
map["http://data.wetgenes.com/game/s/ville/test/balloon/items1.png"] = "data_test_balloon_items1_png";
map["http://data.wetgenes.com/game/s/ville/test/balloon/godloons.png"] = "data_test_balloon_godloons_png";
map["http://data.wetgenes.com/game/s/ville/test/door/vacancy.png"] = "data_test_door_vacancy_png";
map["http://data.wetgenes.com/game/s/ville/test/door/vacancy.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/door/vacancy.png\" />\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/door/shed_in.png"] = "data_test_door_shed_in_png";
map["http://data.wetgenes.com/game/s/ville/test/door/shed_in.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/door/shed_in.png\" />\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/door/shed_out.png"] = "data_test_door_shed_out_png";
map["http://data.wetgenes.com/game/s/ville/test/door/shed_out.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/door/shed_out.png\" />\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/door/black.png"] = "data_test_door_black_png";
map["http://data.wetgenes.com/game/s/ville/test/door/black.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/door/black.png\" />\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/door/blank.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/door/clan.png"] = "data_test_door_clan_png";
map["http://data.wetgenes.com/game/s/ville/test/door/clan.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/door/clan.png\" />\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/door/limbo.png"] = "data_test_door_limbo_png";
map["http://data.wetgenes.com/game/s/ville/test/door/limbo.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/door/limbo.png\" />\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/door/swearbox.png"] = "data_test_door_swearbox_png";
map["http://data.wetgenes.com/game/s/ville/test/door/swearbox.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/door/swearbox.png\" />\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/door/surprise.png"] = "data_test_door_surprise_png";
map["http://data.wetgenes.com/game/s/ville/test/door/surprise.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/door/surprise.png\" />\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/door/broom_closet.png"] = "data_test_door_broom_closet_png";
map["http://data.wetgenes.com/game/s/ville/test/door/broom_closet.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/door/broom_closet.png\" />\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/door/tv.png"] = "data_test_door_tv_png";
map["http://data.wetgenes.com/game/s/ville/test/door/tv.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/door/tv.png\" />\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/door/kickabout.png"] = "data_test_door_kickabout_png";
map["http://data.wetgenes.com/game/s/ville/test/door/kickabout.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"door4x1\">\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/door/kickabout.png\" />\n<xy\n\tx_off=\"0\"\n\ty_off=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"door\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vtard/me.png"] = "data_test_vtard_me_png";
map["http://data.wetgenes.com/game/s/ville/test/vtard/me.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vtard>\n\n<img type=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/vtard/me.png\" />\n\n</vtard></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/tv.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vtv>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"400\"\n\ty_siz=\"300\"\n\tz_siz=\"0\"\n/>\n\n</vtv></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/comic_4lfa.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"none\">\n<xy\n\tx_min=\"0\"\n\ty_min=\"-275\"\n\t\n\tx_max=\"800\"\n\ty_max=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"800\"\n\ty_siz=\"275\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"comic\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/shelf.png"] = "data_test_vobj_shelf_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/shelf.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/vobj/shelf.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-245\"\n\t\n\tx_siz=\"195\"\n\ty_siz=\"245\"\n/>\n</img>\n\n<xy\n\tx_min=\"0\"\n\ty_min=\"0\"\n\n\tx_max=\"0\"\n\ty_max=\"0\"\n/>\n\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"80\"\n\ty_siz=\"-150\"\n\tz_siz=\"500\"\n/>\n\n<brain type=\"none\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/shed_pot1.png"] = "data_test_vobj_shed_pot1_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/shed_pot1.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/shed_pot1.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-45\"\n\t\n\tx_siz=\"230\"\n\ty_siz=\"45\"\n/>\n</img>\n\t\n<xy\n\tx_min=\"0\"\n\ty_min=\"-45\"\n\t\n\tx_max=\"230\"\n\ty_max=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"205\"\n\ty_siz=\"-20\"\n\tz_siz=\"100\"\n/>\n\n<node id=\"1\">\n\t<xyz\n\t\tx_pos=\"40\"\n\t\ty_pos=\"-10\"\n\t\tz_pos=\"50\"\n\t/>\n</node>\n<node id=\"2\">\n\t<xyz\n\t\tx_pos=\"100\"\n\t\ty_pos=\"-10\"\n\t\tz_pos=\"50\"\n\t/>\n</node>\n<node id=\"3\">\n\t<xyz\n\t\tx_pos=\"160\"\n\t\ty_pos=\"-10\"\n\t\tz_pos=\"50\"\n\t/>\n</node>\n\n<brain type=\"pot\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/leftnip.png"] = "data_test_vobj_leftnip_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/leftnip.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/leftnip.png\">\n<xy\n\tx_off=\"-35\"\n\ty_off=\"-30\"\n\t\n\tx_siz=\"70\"\n\ty_siz=\"45\"\n/>\n</img>\n\t\n<xy\n\tx_min=\"-35\"\n\ty_min=\"-30\"\n\t\n\tx_max=\"35\"\n\ty_max=\"15\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<node id=\"1\">\n\t<xyz\n\t\tx_pos=\"0\"\n\t\ty_pos=\"-30\"\n\t\tz_pos=\"0\"\n\t/>\n</node>\n\n<brain type=\"hook\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/rightnip.png"] = "data_test_vobj_rightnip_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/rightnip.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/rightnip.png\">\n<xy\n\tx_off=\"-35\"\n\ty_off=\"-30\"\n\t\n\tx_siz=\"70\"\n\ty_siz=\"45\"\n/>\n</img>\n\t\n<xy\n\tx_min=\"-35\"\n\ty_min=\"-30\"\n\t\n\tx_max=\"35\"\n\ty_max=\"15\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<node id=\"1\">\n\t<xyz\n\t\tx_pos=\"0\"\n\t\ty_pos=\"-30\"\n\t\tz_pos=\"0\"\n\t/>\n</node>\n\n<brain type=\"hook\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/ring.png"] = "data_test_vobj_ring_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/ring.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/ring.png\">\n<xy\n\tx_off=\"-10\"\n\ty_off=\"-15\"\n\t\n\tx_siz=\"20\"\n\ty_siz=\"15\"\n/>\n</img>\n\t\n<xy\n\tx_min=\"-10\"\n\ty_min=\"-15\"\n\t\n\tx_max=\"10\"\n\ty_max=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<node id=\"1\">\n\t<xyz\n\t\tx_pos=\"0\"\n\t\ty_pos=\"-10\"\n\t\tz_pos=\"0\"\n\t/>\n</node>\n\n<brain type=\"hook\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/acube.png"] = "data_test_vobj_acube_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/acube.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"rot4x4\">\n<img src=\"http://data.wetgenes.com/game/s/ville/test/vobj/acube.png\" />\n<xy\n\tx_off=\"-50\"\n\ty_off=\"-90\"\n/>\n</anim>\n\n<brain type=\"generic\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/arcade.png"] = "data_test_vobj_arcade_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/arcade.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"rot4x4\">\n<img src=\"http://data.wetgenes.com/game/s/ville/test/vobj/arcade.png\" />\n<xy\n\tx_off=\"-50\"\n\ty_off=\"-90\"\n/>\n</anim>\n\n<brain type=\"arcade\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/column.png"] = "data_test_vobj_column_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/column.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"rot4x4\">\n<img src=\"http://data.wetgenes.com/game/s/ville/test/vobj/column.png\" />\n<xy\n\tx_off=\"-50\"\n\ty_off=\"-90\"\n/>\n</anim>\n\n<brain type=\"generic\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/solid_aether_face.png"] = "data_test_vobj_solid_aether_face_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/solid_aether_face.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"rot4x4\">\n<img src=\"http://data.wetgenes.com/game/s/ville/test/vobj/solid_aether_face.png\" />\n<xy\n\tx_off=\"-50\"\n\ty_off=\"-90\"\n/>\n</anim>\n\n<brain type=\"generic\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/urinal.png"] = "data_test_vobj_urinal_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/urinal_dirt1.png"] = "data_test_vobj_urinal_dirt1_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/urinal_dirt2.png"] = "data_test_vobj_urinal_dirt2_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/urinal_dirt3.png"] = "data_test_vobj_urinal_dirt3_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/urinal_dirt4.png"] = "data_test_vobj_urinal_dirt4_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/urinal.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img name=\"base,dirt0\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal.png\">\n<xy\n\tx_off=\"-16\"\n\ty_off=\"-44\"\n\t\n\tx_siz=\"32\"\n\ty_siz=\"48\"\n/>\n</img>\n\n<img name=\"dirt1\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal_dirt1.png\">\n<xy\n\tx_off=\"-16\"\n\ty_off=\"-44\"\n\t\n\tx_siz=\"32\"\n\ty_siz=\"48\"\n/>\n</img>\n\n<img name=\"dirt2\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal_dirt2.png\">\n<xy\n\tx_off=\"-16\"\n\ty_off=\"-44\"\n\t\n\tx_siz=\"32\"\n\ty_siz=\"48\"\n/>\n</img>\n\n<img name=\"dirt3\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal_dirt3.png\">\n<xy\n\tx_off=\"-16\"\n\ty_off=\"-44\"\n\t\n\tx_siz=\"32\"\n\ty_siz=\"48\"\n/>\n</img>\n\n<img name=\"dirt4\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/urinal_dirt4.png\">\n<xy\n\tx_off=\"-16\"\n\ty_off=\"-44\"\n\t\n\tx_siz=\"32\"\n\ty_siz=\"48\"\n/>\n</img>\n\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<brain type=\"urinal\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/cubical.png"] = "data_test_vobj_cubical_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/cubical_dirt1.png"] = "data_test_vobj_cubical_dirt1_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/cubical_dirt2.png"] = "data_test_vobj_cubical_dirt2_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/cubical_dirt3.png"] = "data_test_vobj_cubical_dirt3_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/cubical_dirt4.png"] = "data_test_vobj_cubical_dirt4_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/cubical_open.png"] = "data_test_vobj_cubical_open_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/cubical_open_dirt1.png"] = "data_test_vobj_cubical_open_dirt1_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/cubical_open_dirt2.png"] = "data_test_vobj_cubical_open_dirt2_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/cubical_open_dirt3.png"] = "data_test_vobj_cubical_open_dirt3_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/cubical_open_dirt4.png"] = "data_test_vobj_cubical_open_dirt4_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/cubical.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img name=\"shut,shut_dirt0\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-110\"\n\t\n\tx_siz=\"110\"\n\ty_siz=\"110\"\n/>\n</img>\n\n<img name=\"shut_dirt1\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical_dirt1.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-110\"\n\t\n\tx_siz=\"110\"\n\ty_siz=\"110\"\n/>\n</img>\n\n<img name=\"shut_dirt2\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical_dirt2.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-110\"\n\t\n\tx_siz=\"110\"\n\ty_siz=\"110\"\n/>\n</img>\n\n<img name=\"shut_dirt3\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical_dirt3.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-110\"\n\t\n\tx_siz=\"110\"\n\ty_siz=\"110\"\n/>\n</img>\n\n<img name=\"shut_dirt4\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical_dirt4.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-110\"\n\t\n\tx_siz=\"110\"\n\ty_siz=\"110\"\n/>\n</img>\n\n<img name=\"base,open,open_dirt0\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical_open.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-110\"\n\t\n\tx_siz=\"110\"\n\ty_siz=\"110\"\n/>\n</img>\n\n<img name=\"open_dirt1\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical_open_dirt1.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-110\"\n\t\n\tx_siz=\"110\"\n\ty_siz=\"110\"\n/>\n</img>\n\n<img name=\"open_dirt2\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical_open_dirt2.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-110\"\n\t\n\tx_siz=\"110\"\n\ty_siz=\"110\"\n/>\n</img>\n\n<img name=\"open_dirt3\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical_open_dirt3.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-110\"\n\t\n\tx_siz=\"110\"\n\ty_siz=\"110\"\n/>\n</img>\n\n<img name=\"open_dirt4\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/cubical_open_dirt4.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-110\"\n\t\n\tx_siz=\"110\"\n\ty_siz=\"110\"\n/>\n</img>\n\n<xy\n\tx_min=\"0\"\n\ty_min=\"-80\"\n\n\tx_max=\"80\"\n\ty_max=\"0\"\n/>\n\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"80\"\n\ty_siz=\"-80\"\n\tz_siz=\"80\"\n/>\n\n<brain type=\"toilet\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/table.png"] = "data_test_vobj_table_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/table.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img name=\"base\" src=\"http://data.wetgenes.com/game/s/ville/test/vobj/table.png\">\n<xy\n\tx_off=\"0\"\n\ty_off=\"-45\"\n\t\n\tx_siz=\"190\"\n\ty_siz=\"50\"\n/>\n</img>\n\t\n<xy\n\tx_min=\"0\"\n\ty_min=\"-40\"\n\t\n\tx_max=\"160\"\n\ty_max=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"160\"\n\ty_siz=\"-40\"\n\tz_siz=\"80\"\n/>\n\n<brain type=\"generic\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/sink.png"] = "data_test_vobj_sink_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/sink.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/vobj/sink.png\">\n<xy\n\tx_off=\"10\"\n\ty_off=\"-40\"\n\t\n\tx_siz=\"85\"\n\ty_siz=\"55\"\n/>\n</img>\n\n<xy\n\tx_min=\"0\"\n\ty_min=\"-40\"\n\t\n\tx_max=\"80\"\n\ty_max=\"0\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"80\"\n\ty_siz=\"-40\"\n\tz_siz=\"80\"\n/>\n\n<brain type=\"sink\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/football.png"] = "data_test_vobj_football_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/football.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/vobj/football.png\">\n<xy\n\tx_off=\"-20\"\n\ty_off=\"-20\"\n\t\n\tx_siz=\"40\"\n\ty_siz=\"40\"\n/>\n</img>\n\n<xy\n\tx_min=\"-20\"\n\ty_min=\"-20\"\n\t\n\tx_max=\"20\"\n\ty_max=\"20\"\n/>\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"-15\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"40\"\n\ty_siz=\"40\"\n\tz_siz=\"40\"\n/>\n\n<brain type=\"ball\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/candle.png"] = "data_test_vobj_candle_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/candle.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/vobj/candle.png\">\n<xy\n\tx_off=\"-25\"\n\ty_off=\"-70\"\n\t\n\tx_siz=\"50\"\n\ty_siz=\"75\"\n/>\n</img>\n\n<xy\n\tx_min=\"-12\"\n\ty_min=\"-50\"\n\n\tx_max=\"24\"\n\ty_max=\"0\"\n/>\n\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n<node id=\"1\">\n\t<xyz\n\t\tx_pos=\"0\"\n\t\ty_pos=\"-60\"\n\t\tz_pos=\"0\"\n\t/>\n</node>\n\n\n<brain type=\"candle\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/pumpkin.png"] = "data_test_vobj_pumpkin_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/pumpkin.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/vobj/pumpkin.png\">\n<xy\n\tx_off=\"-30\"\n\ty_off=\"-45\"\n\t\n\tx_siz=\"60\"\n\ty_siz=\"50\"\n/>\n</img>\n\n<xy\n\tx_min=\"-20\"\n\ty_min=\"-40\"\n\n\tx_max=\"20\"\n\ty_max=\"0\"\n/>\n\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n\n<brain type=\"pumpkin\">\n</brain>\n\n</vobj></ville>\n";
map["http://data.wetgenes.com/game/s/ville/test/vobj/pumpkins.png"] = "data_test_vobj_pumpkins_png";
map["http://data.wetgenes.com/game/s/ville/test/vobj/pumpkins.xml"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<ville><vobj>\n\n<anim type=\"static\">\n\n<img src=\"http://data.wetgenes.com/game/s/ville/test/vobj/pumpkins.png\">\n<xy\n\tx_off=\"-50\"\n\ty_off=\"-45\"\n\t\n\tx_siz=\"100\"\n\ty_siz=\"50\"\n/>\n</img>\n\n<xy\n\tx_min=\"-40\"\n\ty_min=\"-40\"\n\n\tx_max=\"40\"\n\ty_max=\"0\"\n/>\n\n</anim>\n\n<xyz\n\tx_off=\"0\"\n\ty_off=\"0\"\n\tz_off=\"0\"\n\t\n\tx_siz=\"0\"\n\ty_siz=\"0\"\n\tz_siz=\"0\"\n/>\n\n\n<brain type=\"pumpkin\">\n</brain>\n\n</vobj></ville>\n";
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20534 MovieClip [__Packages.Vroom] Frame 0
class Vroom
{
var up, state, mc, bounds, talky, poker, tards, objs, loading, xml;
function Vroom (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup(url) {
state = "loading";
mc = gfx.create_clip(up.mc, null);
_root.replay.reset();
bounds = new Vbounds(this);
bounds.setup();
talky = new Talky(this);
talky.setup();
poker = new Vpoker(bounds);
poker.setup();
tards = [];
objs = [];
loading = "Loading XML";
xml = new XML();
xml.url = url;
xml.onLoad = delegate(loaded_xml, xml);
xmlcache.load(xml);
}
function clean() {
var _local2 = 0;
for ( ; _local2 < objs.length ; _local2++) {
objs[_local2].clean();
}
_local2 = 0;
for ( ; _local2 < tards.length ; _local2++) {
tards[_local2].clean();
}
talky.clean();
poker.clean();
bounds.clean();
mc.removeMovieClip();
}
function loaded_xml(suc) {
var _local3 = suc;
if (_local3 != "swf") {
_local3 = (_local3 ? "url" : "failed");
}
if (suc) {
parse_xml(xml, 0);
state = "ready";
} else {
dbg.print("failed to load " + xml.url);
}
}
function add_vtard(url, xmlopts) {
var _local4 = new Vtard(bounds);
tards.push(_local4);
_local4.setup("http://data.wetgenes.com/game/s/ville/test/vtard/me.png");
_local4.load_xml(url);
bounds.insert_mc(_local4.mc, true);
_local4.talk = talky.create(_local4.mc, 0, -30);
return(_local4);
}
function add_vobj(url, xmlopts) {
var _local4 = new Vobj(bounds);
objs.push(_local4);
_local4.setup(url, xmlopts);
return(_local4);
}
function add_vtv(url, xmlopts) {
var _local4 = new Vtv(bounds);
objs.push(_local4);
_local4.setup(url, xmlopts);
return(_local4);
}
function parse_xml(e, d) {
var _local5 = false;
if (e.nodeType == 1) {
switch (e.nodeName) {
case "back" :
bounds.loadback(e.attributes.src);
break;
case "vobj" :
break;
case "vtv" :
add_vtv(null, e);
break;
default :
_local5 = true;
}
if (_local5) {
var _local4 = e.firstChild;
for ( ; _local4 ; _local4 = _local4.nextSibling) {
parse_xml(_local4, d + 1);
}
}
}
}
function update() {
tick_time = tick_time + 1;
_root.bmc.check_loading();
_root.replay.apply_keys_to_prekey();
_root.replay.update();
var _local2 = 0;
for ( ; _local2 < objs.length ; _local2++) {
objs[_local2].update();
}
_local2 = 0;
for ( ; _local2 < tards.length ; _local2++) {
tards[_local2].update();
}
bounds.update();
talky.update();
poker.update();
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
var tick_time = 0;
}
Symbol 20535 MovieClip [__Packages.gfx] Frame 0
class gfx
{
function gfx () {
}
static function create_text_edit(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 _local8 = mc["tf" + depth];
_local8.embedFonts = true;
_local8.html = false;
_local8.multiline = false;
_local8.wordWrap = false;
_local8.type = "input";
_local8.selectable = true;
_local8.onSetFocus = function () {
var _local2 = int;
Selection.getCaretIndex();
if (_local2 < 0) {
_local2 = 0;
}
Selection.setFocus(this);
Selection.setSelection(0, 0);
Selection.setSelection(_local2, _local2);
};
_local8.setNewTextFormat(create_text_format(16, -1));
return(_local8);
}
static function create_text(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 _local8 = mc["tf" + depth];
_local8.type = "dynamic";
_local8.embedFonts = true;
_local8.html = false;
_local8.multiline = true;
_local8.selectable = true;
_local8.wordWrap = false;
_local8.setNewTextFormat(create_text_format(16, -1));
return(_local8);
}
static function create_text_format(fntsiz, fntcol, boldit) {
var _local5 = new TextFormat();
_local5.font = "Bitstream Vera Sans";
_local5.color = fntcol & 16777215;
_local5.size = fntsiz;
_local5.bold = (boldit ? true : false);
return(_local5);
}
static function create_text_html(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 _local8 = mc["tf" + depth];
_local8.type = "dynamic";
_local8.embedFonts = true;
_local8.html = true;
_local8.multiline = true;
_local8.selectable = false;
_local8.wordWrap = true;
_local8.setNewTextFormat(create_text_format(16, -1));
return(_local8);
}
static function set_text_html(tf, fntsiz, fntcol, str) {
var _local6 = ((("<font face=\"Bitstream Vera Sans\" size=\"" + fntsiz) + "\" color=\"#") + alt.Sprintf.format("%06x", fntcol & 16777215)) + "\">";
_local6 = _local6 + str;
_local6 = _local6 + "</font>";
tf.htmlText = _local6;
return(_local6);
}
static function create_clip(mc, depth, px, py, sx, sy, rot) {
if (mc.newdepth == undefined) {
mc.newdepth = 0;
}
if (depth == null) {
depth = ++mc.newdepth;
}
var _local9 = mc.createEmptyMovieClip("mc" + depth, depth);
_local9.newdepth = 0;
if (px != null) {
_local9._x = px;
}
if (py != null) {
_local9._y = py;
}
if (sx != null) {
_local9._xscale = sx;
}
if (sy != null) {
_local9._yscale = sy;
}
if (rot != null) {
_local9._rotation = rot;
}
return(_local9);
}
static function add_clip(mc, str, depth, px, py, sx, sy, rot) {
if (mc.newdepth == undefined) {
mc.newdepth = 0;
}
if (depth == null) {
depth = ++mc.newdepth;
}
var _local10 = mc.attachMovie(str, "mc" + depth, depth);
_local10.newdepth = 0;
if (px != null) {
_local10._x = px;
}
if (py != null) {
_local10._y = py;
}
if (sx != null) {
_local10._xscale = sx;
}
if (sy != null) {
_local10._yscale = sy;
}
if (rot != null) {
_local10._rotation = rot;
}
return(_local10);
}
static function clear(mc) {
mc.style = [];
mc.style.out = -1;
mc.style.fill = -1;
mc.clear();
}
static function create_rounded_text_button(mc, depth, x, y, w, h, b, c, l) {
if (b == null) {
b = 3;
}
if (c == null) {
c = 8;
}
if (l == null) {
l = 2;
}
draw_rounded_rectangle(mc, b, c, l, x, y, w, h);
var _local11 = create_text_html(mc, depth, x, y, w, h);
return(_local11);
}
static function draw_rounded_rectangle(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();
}
static function draw_box(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();
}
static function adjust_allmovieclips(base, funk) {
for (var nam in base) {
var _local4 = base[nam];
if (typeof(_local4) == "movieclip") {
adjust_allmovieclips(_local4, funk);
}
}
funk(base);
}
static function setscroll(mc, minx, miny, sizx, sizy) {
mc.scrollRect = new flash.geom.Rectangle(minx, miny, sizx, sizy);
}
static function dropshadow(mc, a, b, c, d, e, f, g, h) {
mc.filters = [new flash.filters.DropShadowFilter(a, b, c, d, e, f, g, h)];
}
static function glow(mc, a, b, c, d, e, f, g, h) {
mc.filters = [new flash.filters.GlowFilter(a, b, c, d, e, f, g, h)];
}
static function blur(mc, a, b, c) {
mc.filters = [new flash.filters.BlurFilter(a, b, c)];
}
static function clear_filters(mc) {
mc.filters = null;
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20536 MovieClip [__Packages.TalkyBub] Frame 0
class TalkyBub
{
var up, origin_mc, x, y, offorg, mc_floater, mc_floaterz, tf_floater, float_str, float_time, active, snap, style;
function TalkyBub (_up, _orig, _x, _y, _offorg) {
up = _up;
origin_mc = _orig;
x = _x;
y = _y;
offorg = _offorg;
mc_floater = gfx.create_clip(up.mc, null);
gfx.clear(mc_floater);
mc_floater.w = 200;
mc_floater.h = 80;
mc_floaterz = gfx.create_clip(mc_floater, null);
mc_floaterz._x = 100;
mc_floaterz._y = 40;
tf_floater = gfx.create_text_html(mc_floaterz, null, -100, 0, 200, 200);
tf_floater.cacheAsBitmap = true;
gfx.dropshadow(mc_floater, 5, 45, 0, 0.5, 10, 10, 2, 3);
float_str = "";
float_time = -100;
active = false;
snap = true;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function clean() {
mc_floater.removeMovieClip();
}
function display(str, tim) {
if ((str != null) && (float_str != str)) {
style = "talk";
float_str = str;
gfx.set_text_html(tf_floater, 18, 0, ("<p align=\"center\">" + str) + "</p>");
mc_floater.h = tf_floater.textHeight + 6;
if (mc_floater.h > 206) {
mc_floater.h = 206;
}
gfx.clear(mc_floaterz);
mc_floaterz.style.out = -1;
mc_floaterz.style.fill = -3355444;
gfx.draw_box(mc_floaterz, 4, -100, (-mc_floater.h) / 2, 200, mc_floater.h);
tf_floater._y = (-mc_floater.h) / 2;
mc_floaterz._y = mc_floater.h / 2;
}
if (mc_floater.getDepth() != up.topdepth) {
mc_floater.swapDepths(up.topdepth);
}
float_time = tim;
active = true;
update();
}
function display_act(str, tim) {
if ((str != null) && (float_str != str)) {
style = "act";
float_str = str;
gfx.set_text_html(tf_floater, 18, 16777215, ("<p align=\"center\">" + str) + "</p>");
mc_floater.h = tf_floater.textHeight + 6;
if (mc_floater.h > 206) {
mc_floater.h = 206;
}
tf_floater._y = (-mc_floater.h) / 2;
mc_floaterz._y = mc_floater.h / 2;
gfx.clear(mc_floaterz);
}
if (mc_floater.getDepth() != up.topdepth) {
mc_floater.swapDepths(up.topdepth);
}
float_time = tim;
active = true;
update();
}
function update() {
if (active) {
if (origin_mc) {
if (offorg == "global") {
var _local20 = {x:0, y:0};
origin_mc.localToGlobal(_local20);
_local20.x = _local20.x + x;
_local20.y = _local20.y + y;
up.mc.globalToLocal(_local20);
} else {
var _local20 = {x:x, y:y};
origin_mc.localToGlobal(_local20);
up.mc.globalToLocal(_local20);
}
lastpx = _local20.x;
lastpy = _local20.y;
} else {
var _local20 = {x:lastpx, y:lastpy};
}
if (style == "act") {
if (float_time > 0) {
float_time--;
mc_floater._visible = true;
mc_floaterz._xscale = 100;
mc_floaterz._yscale = 100;
mc_floater._alpha = 100;
} else {
float_time--;
mc_floaterz._xscale = 100;
mc_floaterz._yscale = 100;
mc_floater._alpha = 100 + float_time;
if (float_time <= -100) {
mc_floater._visible = false;
active = false;
snap = true;
}
}
mc_floater._x = _local20.x - 100;
mc_floater._y = _local20.y + float_time;
} else {
if (float_time > 0) {
float_time--;
mc_floater._visible = true;
mc_floaterz._xscale = 100;
mc_floaterz._yscale = 100;
mc_floater._alpha = 100;
} else {
float_time--;
mc_floaterz._xscale = 100 + (float_time * 10);
mc_floaterz._yscale = mc_floaterz._xscale;
mc_floater._alpha = 100;
if (float_time <= -10) {
mc_floater._visible = false;
active = false;
snap = true;
}
}
var _local2 = mc_floater.w;
var _local3 = mc_floater.h;
var _local10 = up.w;
var _local11 = up.h;
if (_local20.x > ((_local10 * 3) / 4)) {
var _local4 = _local20.x - _local2;
} else {
var _local4 = _local20.x;
}
if (_local20.y < (_local11 / 4)) {
var _local5 = _local20.y + 80;
} else {
var _local5 = (_local20.y - _local3) - 80;
}
if (_local4 < 0) {
var _local4 = 0;
}
if (_local5 < 0) {
var _local5 = 0;
}
if (_local4 > (800 - _local2)) {
var _local4 = 800 - _local2;
}
if (_local5 > (600 - _local3)) {
var _local5 = 600 - _local3;
}
if (active) {
if (snap) {
mc_floater._x = _local4;
mc_floater._y = _local5;
snap = false;
} else {
mc_floater._x = (mc_floater._x * 0.75) + (_local4 * 0.25);
mc_floater._y = (mc_floater._y * 0.75) + (_local5 * 0.25);
}
}
if (float_time > 0) {
gfx.clear(mc_floaterz);
mc_floaterz.style.out = -1;
mc_floaterz.style.fill = -3355444;
var _local6 = _local20.x - (mc_floater._x + mc_floaterz._x);
var _local7 = _local20.y - (mc_floater._y + mc_floaterz._y);
var _local14 = _local6 * _local6;
var _local15 = _local7 * _local7;
var _local13 = _local14 + _local15;
var _local12 = Math.sqrt(_local13);
if (_local12 == 0) {
_local12 = 1;
_local6 = 0;
_local7 = 1;
}
var _local8 = _local6 / _local12;
var _local9 = _local7 / _local12;
mc_floaterz.lineStyle(undefined, undefined);
mc_floaterz.moveTo(_local6 - (_local8 * 40), _local7 - (_local9 * 40));
mc_floaterz.beginFill(16777215, 100);
mc_floaterz.lineTo((_local9 * mc_floater.h) * 0.25, (_local8 * (-mc_floater.h)) * 0.25);
mc_floaterz.lineTo((_local9 * (-mc_floater.h)) * 0.25, (_local8 * mc_floater.h) * 0.25);
mc_floaterz.lineTo(_local6 - (_local8 * 40), _local7 - (_local9 * 40));
mc_floaterz.endFill();
gfx.draw_box(mc_floaterz, 4, -100, (-mc_floater.h) / 2, 200, mc_floater.h);
}
}
}
return(false);
}
//ASSetPropFlags(_local1, null, 1);
var lastpx = 0;
var lastpy = 0;
}
Symbol 20537 MovieClip [__Packages.Vanim] Frame 0
class Vanim
{
var up, mc, pages, page_base, x_min, x_max, y_min, y_max, type, x_siz, y_siz, x_off, y_off;
function Vanim (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(xml) {
mc = gfx.create_clip(up.mc, null);
pages = [];
page_base = "base";
up.mc.hitArea = gfx.create_clip(up.mc, 65535);
up.mc.hitArea._visible = false;
x_min = -35;
x_max = 15;
y_min = -50;
y_max = 0;
gfx.clear(up.mc.hitArea);
gfx.draw_box(up.mc.hitArea, 0, x_min, y_min, x_max - x_min, y_max - y_min);
type = "";
x_siz = 100;
y_siz = 100;
x_off = 0;
y_off = 0;
parse_xml(xml, 0);
}
function clean() {
}
function parse_xml(e, d, flavour) {
var _local6 = false;
if (e.nodeType == 1) {
switch (e.nodeName) {
case "anim" :
flavour = "anim";
_local6 = true;
type = e.attributes.type;
break;
case "xy" :
var _local7 = e.attributes.x_off;
if (_local7) {
x_off = Math.floor(_local7);
}
_local7 = e.attributes.y_off;
if (_local7) {
y_off = Math.floor(_local7);
}
_local7 = e.attributes.x_siz;
if (_local7) {
x_siz = Math.floor(_local7);
}
_local7 = e.attributes.y_siz;
if (_local7) {
y_siz = Math.floor(_local7);
}
_local7 = e.attributes.x_min;
if (_local7) {
x_min = Math.floor(_local7);
}
_local7 = e.attributes.y_min;
if (_local7) {
y_min = Math.floor(_local7);
}
_local7 = e.attributes.x_max;
if (_local7) {
x_max = Math.floor(_local7);
}
_local7 = e.attributes.y_max;
if (_local7) {
y_max = Math.floor(_local7);
}
break;
case "img" :
_local6 = true;
break;
default :
_local6 = true;
}
if (_local6) {
var _local5 = e.firstChild;
for ( ; _local5 ; _local5 = _local5.nextSibling) {
parse_xml(_local5, d + 1, flavour);
}
if (e.nodeName == "img") {
switch (type) {
case "rot4x4" :
load_img_rot4x4(e.attributes.name, e.attributes.src);
break;
case "door4x1" :
load_img_door4x1(e.attributes.name, e.attributes.src);
break;
case "static" :
load_img_static(e.attributes.name, e.attributes.src);
}
} else if (e.nodeName == "anim") {
gfx.clear(up.mc.hitArea);
gfx.draw_box(up.mc.hitArea, 0, x_min, y_min, x_max - x_min, y_max - y_min);
}
}
}
}
function load_img_static(name, url) {
if (!name) {
name = "base";
}
if (_root.urlmap.map[url]) {
url = _root.urlmap.map[url];
var _local4 = bmcache.create_img;
} else {
var _local4 = bmcache.create_url;
}
_root.bmc.remember("anim_" + url, _local4, {url:url, bmpw:x_siz, bmph:y_siz, bmpt:true, hx:x_off, hy:y_off});
var _local5 = name.split(",");
var _local6 = 0;
for ( ; _local6 < _local5.length ; _local6++) {
pages[_local5[_local6]] = "anim_" + url;
}
}
function load_img_rot4x4(name, url) {
if (!name) {
name = "base";
}
if (_root.urlmap.map[url]) {
url = _root.urlmap.map[url];
var _local4 = bmcache.create_img;
} else {
var _local4 = bmcache.create_url;
}
if (!_root.bmc.isloaded((((("anim_" + url) + "_") + 0) + "_") + 0)) {
_root.bmc.remember("anim_" + url, _local4, {url:url, bmpw:400, bmph:400, bmpt:true, hx:0, hy:0, onload:delegate(loaded_img_rot4x4, url)});
}
var _local5 = name.split(",");
var _local6 = 0;
for ( ; _local6 < _local5.length ; _local6++) {
pages[_local5[_local6]] = "anim_" + url;
}
mc._x = x_off;
mc._y = y_off;
}
function loaded_img_rot4x4(it, url) {
var _local5 = 0;
for ( ; _local5 < 4 ; _local5++) {
var _local4 = 0;
for ( ; _local4 < 4 ; _local4++) {
_root.bmc.bmp_chop("anim_" + url, (((("anim_" + url) + "_") + _local5) + "_") + _local4, _local4 * 100, _local5 * 100, 100, 100);
}
}
_root.bmc.forget("anim_" + url);
}
function load_img_door4x1(name, url) {
if (!name) {
name = "base";
}
if (_root.urlmap.map[url]) {
url = _root.urlmap.map[url];
var _local4 = bmcache.create_img;
} else {
var _local4 = bmcache.create_url;
}
if (!_root.bmc.isloaded((((("anim_" + url) + "_") + 0) + "_") + 0)) {
_root.bmc.remember("anim_" + url, _local4, {url:url, bmpw:500, bmph:125, bmpt:true, hx:0, hy:0, onload:delegate(loaded_img_door4x1, url)});
}
var _local5 = name.split(",");
var _local6 = 0;
for ( ; _local6 < _local5.length ; _local6++) {
pages[_local5[_local6]] = "anim_" + url;
}
mc._x = x_off;
mc._y = y_off;
}
function loaded_img_door4x1(it, url) {
var _local5 = 0;
for ( ; _local5 < 1 ; _local5++) {
var _local4 = 0;
for ( ; _local4 < 4 ; _local4++) {
_root.bmc.bmp_chop("anim_" + url, (((("anim_" + url) + "_") + _local5) + "_") + _local4, _local4 * 125, _local5 * 125, 125, 125);
}
}
_root.bmc.forget("anim_" + url);
}
function pick(page, x, y) {
switch (type) {
case "static" :
_root.bmc.create(mc, pages[page], 1);
break;
case "rot4x4" :
_root.bmc.create(mc, (((pages[page] + "_") + y) + "_") + x, 1);
break;
case "door4x1" :
_root.bmc.create(mc, (((pages[page] + "_") + y) + "_") + x, 1);
}
}
function pick_rot(rot) {
var _local5 = (rot * 16) / 360;
_local5 = Math.round(_local5) % 16;
if (_local5 < 0) {
_local5 = _local5 + 16;
}
pick(page_base, _local5 % 4, Math.floor(_local5 / 4));
}
function pick_door(rot) {
pick(page_base, Math.floor(rot / 90) % 4, 0);
}
function update() {
switch (type) {
case "static" :
pick(page_base, 0, 0);
break;
case "rot4x4" :
pick_rot(up.ry);
break;
case "door4x1" :
pick_door(up.ry);
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20538 MovieClip [__Packages.GizmoMaster] Frame 0
class GizmoMaster
{
var up, mc, gizmos, active, focus, focus_data, top, x, y, w, h, spine;
function GizmoMaster (_up) {
up = _up;
setup();
}
function setup_base() {
mc = gfx.create_clip(up.mc, null);
mc.style = up.mc.style;
gizmos = new Array();
active = true;
focus = null;
focus_data = null;
top = up.top;
if (top == null) {
top = this;
}
}
function clean_base() {
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].clean();
}
}
mc.removeMovieClip();
mc = null;
}
function update_base() {
mc._x = x;
mc._y = y;
var _local2 = 0;
for ( ; _local2 < gizmos.length ; _local2++) {
if (gizmos[_local2].active) {
gizmos[_local2].mc._visible = true;
gizmos[_local2].update();
} else {
gizmos[_local2].mc._visible = false;
}
}
}
static function dupe_snapshot(snapshot) {
var _local3 = {};
_local3.key = snapshot.key;
_local3.key_on = snapshot.key_on;
_local3.key_off = snapshot.key_off;
_local3.x = snapshot.x;
_local3.y = snapshot.y;
_local3.frame = snapshot.frame;
return(_local3);
}
function input_base(snapshot) {
var _local5 = dupe_snapshot(snapshot);
mc.localToGlobal(_local5);
var _local3 = 0;
for ( ; _local3 < gizmos.length ; _local3++) {
if (gizmos[_local3].active) {
gizmos[_local3].mc.globalToLocal(_local5);
gizmos[_local3].input(_local5);
gizmos[_local3].mc.localToGlobal(_local5);
}
}
return(top.focus);
}
function child(g) {
var _local3 = gizmos.length;
gizmos[_local3] = g;
return(g);
}
function set_area(_x, _y, _w, _h) {
x = _x;
y = _y;
w = _w;
h = _h;
}
function draw_mask(px, py) {
gfx.setscroll(mc, px, py, w, h);
}
function setup() {
setup_base();
}
function clean() {
clean_base();
}
function update() {
var _local2 = new Date().getTime();
_local2 = ((_local2 & 16383) - 8192) / 8192;
if (_local2 < 0) {
_local2 = -_local2;
}
var _local3 = _local2 * _local2;
spine = (_local3 + (_local3 * 2)) - ((_local3 * _local2) * 2);
update_base();
}
function input(snapshot) {
focus = input_base(snapshot);
return(focus);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20539 MovieClip [__Packages.ScrollOn] Frame 0
class ScrollOn
{
var up, rot, mc, tf, show, next, x, w, h, fntsiz, fntcol, xp, lastdown, tw;
function ScrollOn (_up, _rot) {
up = _up;
rot = 0;
if (typeof(_rot) == "number") {
rot = _rot;
}
}
function delegate(f) {
return(com.dynamicflash.utils.Delegate.create(this, f));
}
function setup() {
mc = gfx.create_clip(up.mc, null);
gfx.dropshadow(mc, 2, 45, 0, 1, 4, 4, 2, 3);
mc.filters = [new flash.filters.DropShadowFilter(2, 45, 0, 1, 4, 4, 2, 3)];
tf = gfx.create_text_html(mc, null, 0, 0, 4096, 64);
tf._rotation = rot;
mc.cacheAsBitmap = true;
show = null;
next = null;
x = 0;
w = 800;
h = 32;
fntsiz = 24;
fntcol = 16777215 /* 0xFFFFFF */;
xp = -1;
if (rot == -90) {
gfx.setscroll(mc, 0, 0, h, w);
} else {
gfx.setscroll(mc, 0, 0, w, h);
}
mc._visible = false;
}
function clean() {
mc.removeMovieClip();
}
function update() {
if (show != null) {
if (lastdown > 0) {
lastdown--;
}
x = x + xp;
if (x < (-8 - tw)) {
mc._visible = false;
show = null;
} else {
mc._visible = true;
if (rot == -90) {
gfx.setscroll(mc, 0, x - w, h, w);
} else {
gfx.setscroll(mc, -x, 0, w, h);
}
}
if ((!_root.popup) && (!_root.login)) {
if (_root.poker.poke_down) {
if ((mc._xmouse >= 0) && ((mc._xmouse < w) && ((mc._ymouse >= 0) && (mc._ymouse < h)))) {
lastdown = 60;
}
}
if (_root.poker.poke_up) {
if (lastdown > 0) {
if ((mc._xmouse >= 0) && ((mc._xmouse < w) && ((mc._ymouse >= 0) && (mc._ymouse < h)))) {
if (mc._visible) {
if (show.url) {
if (show.target) {
getURL (show.url, show.target);
} else {
getURL (show.url, "_self");
}
}
}
}
}
}
}
} else {
mc._visible = false;
lastdown = 0;
if (next) {
show = next;
next = null;
gfx.set_text_html(tf, fntsiz, fntcol, show.txt);
x = w;
tw = tf.textWidth;
}
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20540 MovieClip [__Packages.Vcomms] Frame 0
class Vcomms
{
var up, state, loading, names, vcobjs, id;
function Vcomms (_up) {
up = _up;
state = "setup";
loading = "setup";
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup() {
if (_root.sock && (_root.sock.connected)) {
if ((state != "ready") && (state != "loading")) {
if (_root.sock.vmsg(null, delegate(vmsgback, null))) {
_root.sock.watch_chat = delegate(chat);
state = "ready";
}
}
}
}
function clean() {
}
function chat(t) {
if (t.frm && (t.txt)) {
var _local3 = vcobjs[names[t.frm.toLowerCase()]];
if (_local3) {
if (t.cmd == "act") {
_local3.vobj.talk.display_act(("**" + t.txt) + "**", 1);
} else {
_local3.vobj.talk.display(t.txt, 25 * 5);
}
}
}
}
function vmsgsend(msg) {
_root.sock.vmsg(msg);
return(undefined);
}
function vmsgback(msg, sentmsg) {
if (!sentmsg) {
switch (msg.vcmd) {
case "vid" :
id = msg.vobj;
break;
case "vobj" :
state = "loading";
switch (msg.vtype) {
case "room" :
clear_all_vcobjs();
var _local5 = new VcommsObj(this);
_local5.setup_msg(msg);
vcobjs[_local5.id] = _local5;
up.room.clean();
var _local4 = up.room.setup(msg.vurl);
_local5.setup_vobj(_local4);
break;
case "bot" :
case "user" :
_local5 = vcobjs[msg.vobj];
if (_local5) {
_local5.update_msg(msg);
break;
}
_local5 = new VcommsObj(this);
_local5.setup_msg(msg);
vcobjs[_local5.id] = _local5;
_local4 = up.room.add_vtard(msg.vurl);
_local5.setup_vobj(_local4);
_local4.set_title(_local5.owner.split("_").join(" "));
_local5.vcobj_menu_set(_local5.props.menu);
names[_local5.owner.toLowerCase()] = msg.vobj;
if (_local5.id == id) {
up.room.bounds.focus = _local4.mc;
up.room.poker.cc = _local4;
}
_local4.menuset();
break;
default :
_local4 = up.room.add_vobj(msg.vurl);
_local5 = new VcommsObj(this);
_local5.setup_msg(msg);
vcobjs[_local5.id] = _local5;
_local5.setup_vobj(_local4);
_local5.vcobj_menu_set(_local5.props.menu);
}
up.room.bounds.sort_full();
break;
case "vdel" :
_local5 = vcobjs[msg.vobj];
_local5.clean();
vcobjs[msg.vobj] = null;
break;
case "vupd" :
_local5 = vcobjs[msg.vobj];
if (!_local5) {
break;
}
_local5.update_msg(msg);
}
}
}
function clear_all_vcobjs() {
for (var _local2 in vcobjs) {
var _local3 = vcobjs[_local2];
_local3.clean();
}
vcobjs = [];
names = [];
}
function check_loading() {
if (state != "loading") {
loading = state;
return(loading);
}
loading = null;
do {
if ((in vcobjs) == null) {
break;
}
var _local2 = in vcobjs;
var _local3 = vcobjs[_local2];
loading = _local3.vobj.loading;
} while (!loading);
do {
} while ("check_loading" != null);
if (!loading) {
state = "ready";
}
return(loading);
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
}