Frame 1
WetV.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.MainStatic] Frame 0
class MainStatic
{
function MainStatic () {
}
static function choose_and_apply_scalar(me, flags) {
var _local5 = flags.split(",");
if (_root.talk && (_root.popup == _root.talk)) {
half = true;
} else {
half = false;
}
var _local4 = 0;
for ( ; _local4 < _local5.length ; _local4++) {
var _local6 = _local5[_local4];
if (_local6 == "800x600") {
w = 800;
h = 600;
} else if (_local6 == "640x480") {
w = 640;
h = 480;
} else if (_local6 == "wide") {
wide = true;
half = false;
} else if (_local6 == "nothalf") {
half = false;
} else if (_local6 == "notwide") {
wide = false;
notwide = true;
}
}
_root.scalar.bx = w;
_root.scalar.by = h;
if ((!notwide) && (wide || ((Stage.width / Stage.height) > (((w / h) + ((1.5 * w) / h)) / 2)))) {
if (_root.scalar.ox != (1.5 * w)) {
gfx.setscroll(me.mc, 0, 0, 1.5 * w, h);
_root.scalar.ox = 1.5 * w;
_root.scalar.oy = h;
_root.scalar.wide = true;
}
} else if (_root.scalar.ox != w) {
gfx.setscroll(me.mc, 0, 0, w, h);
_root.scalar.ox = w;
_root.scalar.oy = h;
_root.scalar.wide = false;
}
_root.scalar.apply(me.mc, half);
_root.scalar.apply(_root.mc_popup, half);
_root.scalar.apply(_root.mc_swish, half);
_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 apply_800x600_scale(m) {
m._xscale = (100 * w) / 800;
m._yscale = (100 * h) / 600;
}
static function get_base_context_menu(me, ncm) {
if (ncm) {
var _local4 = ncm;
} else {
var _local4 = new ContextMenu();
_local4.hideBuiltInItems();
}
var _local6 = function () {
if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
} else {
_root._quality = "MEDIUM";
}
};
var _local5 = new ContextMenuItem("Toggle quality.", com.dynamicflash.utils.Delegate.create(me, _local6));
_local4.customItems.push(_local5);
_local6 = function () {
if (Stage.displayState == "normal") {
Stage.fullScreenSourceRect = undefined;
Stage.displayState = "fullScreen";
if ((!MainStatic.notwide) && (MainStatic.wide || ((Stage.width / Stage.height) > (((640 / 480) + ((1.5 * 640) / 480)) / 2)))) {
Stage.displayState = "normal";
Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 960, 480);
Stage.displayState = "fullScreen";
} else {
Stage.displayState = "normal";
Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 640, 480);
Stage.displayState = "fullScreen";
}
} else {
Stage.displayState = "normal";
}
};
_local5 = new ContextMenuItem("Toggle fullscreen mode.", com.dynamicflash.utils.Delegate.create(me, _local6));
_local4.customItems.push(_local5);
_local6 = function () {
if (Stage.displayState == "normal") {
Stage.fullScreenSourceRect = undefined;
Stage.displayState = "fullScreen";
if ((!MainStatic.notwide) && (MainStatic.wide || ((Stage.width / Stage.height) > (((640 / 480) + ((1.5 * 640) / 480)) / 2)))) {
Stage.displayState = "normal";
Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 480, 240);
Stage.displayState = "fullScreen";
} else {
Stage.displayState = "normal";
Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 320, 240);
Stage.displayState = "fullScreen";
}
} else {
Stage.displayState = "normal";
}
};
_local5 = new ContextMenuItem("Toggle lowscreen mode.", com.dynamicflash.utils.Delegate.create(me, _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);
static var w = 800;
static var h = 600;
static var wide = false;
static var notwide = false;
static var half = true;
}
Symbol 20482 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_audit, lv_audit_got, 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.audit) {
return(undefined);
}
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, replay_str) {
lv_audit = new LoadVars();
lv_audit_got = null;
lv_audit.S = _root.Login_Session;
lv_audit.replay_id = a_scoreid;
lv_audit.replay_str = replay_str;
lv_audit.score = a_score;
fbsig.copy_fb_sigs(_root, lv_audit);
lv_audit.onLoad = delegate(send_audit_post, lv_audit);
lv_audit.sendAndLoad(php + "?cmd=audit", lv_audit, "POST");
}
function send_audit_post(success, lv) {
if (lv != lv_audit) {
return(undefined);
}
if (!success) {
return(undefined);
}
lv_audit_got = lv;
if (lv.replay_str.length < 6) {
send_audit(lv.replay_id, 0);
}
}
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 20483 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 20484 MovieClip [__Packages.fbsig] Frame 0
class fbsig
{
function fbsig () {
}
static function copy_fb_sigs(f, t) {
for (var _local4 in f) {
if (_local4.substring(0, 6) == "fb_sig") {
t[_local4] = f[_local4];
}
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20485 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);
MainStatic.apply_800x600_scale(mc);
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 if (_root.signals.name) {
name_set(_root.signals.name);
} 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 20486 MovieClip [__Packages.BetaSignals] Frame 0
class BetaSignals
{
var up, score, replay_str, moves, seed, game, score_last, sent_stamp, score_name, name, base, state, ranksys, start_time, time, total;
function BetaSignals (_up) {
up = _up;
if (_root.nonoba$apicodeas2) {
NonobaAPI.GetUsername(delegate(noob_name));
}
}
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.audit) {
return(undefined);
}
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.audit) {
return(undefined);
}
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);
}
if (_root.nonoba$apicodeas2) {
NonobaAPI.SubmitScore(nam, num, delegate(noob_score));
}
}
function send_spesh(nam, num) {
if (_root.audit) {
return(undefined);
}
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");
}
if (_root.nonoba$apicodeas2) {
NonobaAPI.SubmitScore(nam, num, delegate(noob_score));
}
}
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 noob_name(state, username) {
if (username) {
name = username;
}
}
function noob_score(state) {
}
function submit_award(nam, num) {
if (_root.audit) {
return(undefined);
}
if (_root.nonoba$apicodeas2) {
var _local4 = nam.split("_").join("");
NonobaAPI.AwardAchievement(_local4, delegate(noob_award));
}
}
function noob_award(state) {
}
function submit_rank(nam, num) {
if (_root.audit) {
return(undefined);
}
if (_root.nonoba$apicodeas2) {
var _local4 = nam.split("_").join("");
NonobaAPI.SubmitScore(_local4, Math.floor(num), delegate(noob_rank));
}
}
function noob_rank(state) {
}
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);
}
if (score > 50000) {
submit_award("bronze");
}
if (score > 100000) {
submit_award("silver");
}
if (score <= 200000) {
break;
}
submit_award("gold");
}
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);
if (score > 6000) {
submit_award("bronze");
}
if (score > 12000) {
submit_award("silver");
}
if (score <= 18000) {
break;
}
submit_award("gold");
}
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);
}
break;
case "rgbtd0" :
switch (event) {
case "start" :
state = "start";
_local6 = new Date();
seed = up.game_seed;
game = "rgbtd0";
score_name = "rgbtd0";
ranksys = "add";
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, up.play.replay);
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, up.play.replay);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "final" :
send_final("high", up.play.score_total);
break;
case "end" :
state = "end";
set_score_check(up.play.score, up.play.replay);
moves = 0;
_root.comms.send_score();
send_score();
break;
case "award-bronze" :
submit_award("bronze");
break;
case "award-silver" :
submit_award("silver");
break;
case "award-gold" :
submit_award("gold");
}
break;
case "pief" :
switch (event) {
case "set" :
game = "pief";
score_name = "pief";
ranksys = "max";
seed = up.game_seed;
_root.comms.datas = this;
time = 0;
score = 0;
moves = 0;
replay_str = "";
break;
case "won" :
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
if (score != 100) {
break;
}
submit_award("moonstar");
}
}
}
//ASSetPropFlags(_local1, null, 1);
}
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.WetV] Frame 0
class WetV
{
var v, setup_done, mc, wonderfulls, lv_wonderful, game_seed, state_last, state, state_next, login, about, code, play, menu;
function WetV () {
v = [];
v.name = "WetV";
v.site = "";
v.number = "0.96";
v.stamp = "Oct 20 2009";
v.stamp_number = "20091020";
setup_done = false;
mc = gfx.create_clip(_root, null);
mc.onEnterFrame = delegate(update);
gfx.setscroll(mc, 0, 0, _root.scalar.ox, _root.scalar.oy);
_root.mc_popup = gfx.create_clip(_root, 16383);
_root.popup = null;
_root.wtf = new WTF();
var _local2 = MainStatic.get_base_context_menu(this);
var _local4 = function () {
this.code.setup();
};
var _local3 = new ContextMenuItem("Get Embed Code!", delegate(_local4));
_local2.customItems.push(_local3);
_local4 = function () {
this.about.setup();
};
_local3 = new ContextMenuItem("About?", delegate(_local4));
_local2.customItems.push(_local3);
_root.menu = _local2;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
static function main() {
if (_root.kongregateServices != undefined) {
_root.kongregateServices.connect();
}
var _local2 = function (a, b) {
if (_root[a] == undefined) {
_root[a] = b;
}
};
_local2("host", "swf.wetgenes.com");
_local2("wp_back", "0xcc000000");
_local2("wp_xspf", "http://WetV.wetgenes.com/swf/WetV.xspf");
_root.skip_wetscore = true;
_root.gotoAndStop(1);
_root._highquality = 2;
_root.mc = _root;
_root.cacheAsBitmap = false;
_root.newdepth = 1;
_root.mc_popup = gfx.create_clip(_root, 16383);
_root.popup = null;
_root.updates = MainStatic.update_setup();
_root.bmc = new bmcache();
_root.scalar = new Scalar(800, 600);
_root.poker = new Poker(true);
_root.loading = new Loading(true);
_root.replay = new Replay();
_root.WetV = new WetV();
_root.signals = new BetaSignals(_root.WetV);
_root.comms = new BetaComms(_root.WetV);
_root.wetplay = new WetPlayIcon();
}
function lv_wonderful_post() {
wonderfulls = [];
var _local2 = 0;
for ( ; _local2 < 10 ; _local2++) {
wonderfulls[_local2] = {url:lv_wonderful["url" + _local2], txt:lv_wonderful["txt" + _local2], img:lv_wonderful["jpg" + _local2], target:"_blank"};
}
}
function setup() {
var _local2 = new Date();
game_seed = Math.floor((_local2.getTime() / 1000) / ((24 * 60) * 60)) & 65535;
state_last = null;
state = null;
state_next = null;
login = new Login(this);
about = new PlayAbout(this);
code = new PlayCode(this);
play = new WetVPlay(this);
menu = play;
state_next = "login";
}
function update() {
if (_root.talk && (_root.popup == _root.talk)) {
MainStatic.choose_and_apply_scalar(this, true);
} else {
MainStatic.choose_and_apply_scalar(this, false);
}
if ((!setup_done) && ((_root.getBytesLoaded() == _root.getBytesTotal()) && (_root.loading.done))) {
_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();
}
}
if (state) {
MainStatic.update_do(_root.updates);
this[state].update();
}
}
function clean() {
}
function do_str(str) {
switch (str) {
case "restart" :
state_next = "play";
break;
case "logoff" :
state_next = "login";
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20489 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 20490 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 20491 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, bx, by, 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 = bx;
oy = by;
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 >= 20) {
t_old = t_new;
t_new = getTimer();
t_ms = (t_new - t_old) / t_samples;
t_fps = Math.floor(1000 / t_ms);
if (scale < 1) {
var _local3 = ((((((" " + Math.floor(t_ms)) + "ms : ") + Math.floor(1000 / t_ms)) + "fps") + " : ") + Math.floor(_root.code_time / t_samples)) + "ms";
gfx.set_text_html(tf_stats, 13, 16777215, _local3);
}
t_samples = 0;
_root.code_time = 0;
}
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;
}
}
}
if (scale > _root.maxs) {
scale = _root.maxs;
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20492 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");
if (!_root.dbg_tf) {
create_tf();
}
var _local4 = _root.dbg_tf;
_local4._width = Stage.width;
_local4._height = Stage.height;
_local4.text = _local4.text + (s + newline);
_local4.scroll = _local4.maxscroll;
}
static function dump(a) {
for (var _local3 in a) {
print((("" + _local3) + " = ") + a[_local3]);
}
}
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_tf() {
if (!_root.dbg_mc) {
_root.createTextField("tf" + 66666, 66666, 0, 0, Stage.width, Stage.height);
var _local2 = _root["tf" + 66666];
_local2.type = "dynamic";
_local2.embedFonts = true;
_local2.html = false;
_local2.multiline = true;
_local2.selectable = false;
_local2.wordWrap = false;
_local2.setNewTextFormat(create_text_format(16, -1));
_root.dbg_tf = _local2;
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20493 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 20494 MovieClip [__Packages.NonobaAPI] Frame 0
class NonobaAPI
{
static var api;
function NonobaAPI () {
throw new Error("ERROR!: You cannot create an instance of the NonobaAPI class!");
}
static function GetShopItemKeys(callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, null);
}
return(undefined);
}
if (api && (api.ShowShop)) {
api.GetShopItemKeys(callback);
} else {
cachedRequests.push(function () {
NonobaAPI.GetShopItemKeys(callback);
});
}
}
static function HasShopItem(item, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, false, null);
}
return(undefined);
}
if (api && (api.ShowShop)) {
api.HasShopItem(item, callback);
} else {
cachedRequests.push(function () {
NonobaAPI.HasShopItem(item, callback);
});
}
}
static function ShowShop(item, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR);
}
return(undefined);
}
if (api && (api.ShowShop)) {
api.ShowShop(item, callback);
} else {
cachedRequests.push(function () {
NonobaAPI.ShowShop(item, callback);
});
}
}
static function Login(callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR);
}
return(undefined);
}
if (api && (api.Login)) {
api.Login(callback);
} else {
cachedRequests.push(function () {
NonobaAPI.Login(callback);
});
}
}
static function SubmitScore(key, score, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR);
}
return(undefined);
}
if (api && (api.SubmitScore)) {
api.SubmitScore(key, score, callback);
} else {
cachedRequests.push(function () {
NonobaAPI.SubmitScore(key, score, callback);
});
}
}
static function AwardAchievement(key, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, 0);
}
return(undefined);
}
if (api && (api.AwardAchievement)) {
api.AwardAchievement(key, callback);
} else {
cachedRequests.push(function () {
NonobaAPI.AwardAchievement(key, callback);
});
}
}
static function SetUserData(key, value, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR);
}
return(undefined);
}
if (api && (api.SetUserData)) {
api.SetUserData(key, value, callback);
} else {
cachedRequests.push(function () {
NonobaAPI.SetUserData(key, value, callback);
});
}
}
static function GetUserData(key, callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, "");
}
return(undefined);
}
if (api && (api.GetUserData)) {
api.GetUserData(key, callback);
} else {
cachedRequests.push(function () {
NonobaAPI.GetUserData(key, callback);
});
}
}
static function GetUsername(callback) {
if (!isInited) {
Init();
}
if (failed) {
if (callback) {
callback(ERROR, "");
}
return(undefined);
}
if (api && (api.GetUsername)) {
api.GetUsername(callback);
} else {
cachedRequests.push(function () {
NonobaAPI.GetUsername(callback);
});
}
}
static function emptyCache() {
var _local2 = 0;
for ( ; _local2 < cachedRequests.length ; _local2++) {
cachedRequests[_local2]();
}
cachedRequests = [];
}
static function Init(container) {
if (isInited) {
throw new Error("NonobaAPI can not be re-initialized!");
}
isInited = true;
var _local3 = _root.nonoba$apicodeas2;
if (!_local3) {
failed = true;
emptyCache();
}
System.security.allowDomain("*");
container = container || (_root);
api = container.createEmptyMovieClip("___NonobaAPI__loader", container.getNextHighestDepth());
var _local4 = new MovieClipLoader();
_local4.addListener({onLoadComplete:function () {
this.loadTimer = _global.setInterval(com.dynamicflash.utils.Delegate.create(NonobaAPI, function () {
if (!(NonobaAPI.api.SubmitScore === undefined)) {
_global.clearInterval(NonobaAPI.loadTimer);
NonobaAPI.emptyCache();
}
}), 500);
}, onLoadError:com.dynamicflash.utils.Delegate.create(NonobaAPI, function () {
NonobaAPI.failed = true;
NonobaAPI.emptyCache();
})});
_local4.loadClip(_local3, api);
}
//ASSetPropFlags(_local1, null, 1);
static var SUCCESS = "SUCCESS";
static var NOT_LOGGED_IN = "user not logged in";
static var ERROR = "error";
static var isInited = false;
static var loading = false;
static var cachedRequests = [];
static var failed = false;
}
Symbol 20495 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 20496 MovieClip [__Packages.Loading] Frame 0
class Loading
{
var showloading, server, defuck, mcscale, mc, dna, mcanim, tf2, tf3, tf4, mcmochi, waitfordisplay, 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;
}
};
server = "www";
if ((_root._url.indexOf("http://www.wetgenes.local/") == 0) || ((_root._url.indexOf("http://wetgenes.local/") == 0) || ((_root._url.indexOf("http://swf.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";
_local3("host", "swf.wetgenes.local");
} else {
_local3("host", "swf.wetgenes.com");
}
defuck = _root._highquality;
done = false;
if (showloading) {
mcscale = gfx.create_clip(_root, null);
mc = gfx.create_clip(mcscale, null);
}
gfx.clear(mc);
mc.style.fill = -16777216;
gfx.draw_box(mc, 0, 0, 0, 800, 600);
mc.dna = gfx.create_clip(mc, null);
mc.dna._y = 100;
mc.dna._xscale = (100 * 800) / 256;
mc.dna._yscale = mc.dna._xscale;
dna = new wetDNA2(mc.dna, "dna", 0, 255, 256, 128);
mcanim = gfx.create_clip(mc, null);
tf2 = gfx.create_text_html(mcanim, null, 25, 25, 750, 200);
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'>WetV 0.96 (c) Shi+Kriss Daniels Oct 20 2009</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);
my_server = false;
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.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(mcscale);
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>");
dna.tint = Math.floor((256 * loaded_percent) / 100);
if ((loaded_percent >= 100) && ((!splash) && ((!intro) && (!mochi)))) {
clean();
}
}
function clean() {
delete dna;
if (showloading) {
_root.swish.clean();
_root.swish = new Swish({style:"sqr_plode", mc:mc}).setup();
mc.removeMovieClip();
mc = null;
mcscale.removeMovieClip();
mcscale = 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:"e9f44ade5e14cf84", 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 20497 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>WetV</b> <font size='13'></font> v0.96 <font size='13'>(c) Shi+Kriss Daniels Oct 20 2009<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 hates you.<br>Click here to see why.", 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 20498 MovieClip [__Packages.WetVPlay] Frame 0
class WetVPlay
{
var up, info, screensize_x, screensize_y, 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, _screensize) {
info = [];
info.vid = "";
info.title = "";
info.len = 0;
info.lock = 0;
info.pos = 0;
screensize_x = 800;
screensize_y = 600;
if (_screensize) {
var _local6 = _screensize.split("x");
screensize_x = Math.floor(_local6[0]);
screensize_y = Math.floor(_local6[1]);
}
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, screensize_x, screensize_y);
over.hitArea._visible = false;
loader = {};
loader.mcloader = new MovieClipLoader();
loader.mcloader.loadClip("http://www.youtube.com/apiplayer?disablekb=1&hd=0", vid);
vid_ready = false;
spew_ready = false;
oldState = 0;
}
function clean() {
vid.mute();
vid.stopVideo();
vid.clearVideo();
vid.loadVideoById("00000000000", 0, "small");
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() + "#t=") + Math.floor(vid.getCurrentTime()), "_blank");
vid.pauseVideo();
} else {
vid.playVideo();
}
}
function onReady() {
vid.addEventListener("onStateChange", delegate(onStateChange));
vid.addEventListener("onError", delegate(onError));
vid.setSize(screensize_x, screensize_y);
_root.sock.gmsg(null, delegate(gmsgback, null));
_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, "small");
oldState = 0;
sent_info = false;
info.id = id;
info.pos = pos;
info.len = 0;
}
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);
}
}
var _local3 = vid.getDuration();
var _local4 = vid.getCurrentTime();
if (!sent_info) {
if (_local3 > 0) {
gmsgsend({gcmd:"wetv", wetv:"info", video:vid_id, length:_local3});
sent_info = true;
}
}
if (_local4 > 0) {
info.pos = _local4;
}
if (_local3 > 0) {
info.len = _local3;
}
_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 got_title_msg(msg) {
info.title = msg.title;
}
function got_lock_msg(msg) {
info.lock = msg.lock;
}
function gmsgsend(msg) {
if (_root.sock) {
_root.sock.gmsg(msg, delegate(gmsgback, msg));
}
}
function gmsgback(msg, sentmsg) {
if (!sentmsg) {
if (!(msg.gcmd === "wetv")) {
} else {
switch (msg.wetv) {
case "play" :
got_play_msg(msg);
break;
case "title" :
got_title_msg(msg);
break;
case "lock" :
got_lock_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 20499 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 20500 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 = "WetV";
v.site = "";
v.number = "0.96";
v.stamp = "Oct 20 2009";
v.stamp_number = "20091020";
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("*");
System.security.loadPolicyFile("http://data.wetgenes.com/crossdomain.xml");
System.security.loadPolicyFile("http://data.wetgenes.lg1.simplecdn.net/crossdomain.xml");
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__("5b58a110", _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() - 128)) && ((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'>WetV 0.96 (c) Shi+Kriss Daniels Oct 20 2009</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);
gfx.clear(mc2);
mc2.style.fill = -2147483648;
gfx.draw_box(mc2, 0, ((get_width() - tf.textWidth) - 24) - 6, ((get_height() - tf.textHeight) - 4) - 6, tf.textWidth + 12, tf.textHeight + 12);
} else {
gfx.clear(mc2);
var _local2 = "";
_local2 = _local2 + "<p align='right'>www.WetGenes.com</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 20501 MovieClip [__Packages.wetDNA2] Frame 0
class wetDNA2
{
var bmps, tinted;
function wetDNA2 (master, name, level, color) {
var _local7 = this;
_local7.mc2 = master.createEmptyMovieClip(name, level);
_local7.mc = _local7.mc2.createEmptyMovieClip("dna", 0);
_local7.mc._x = 128;
_local7.mc._y = 64;
gfx.blurglow(_local7.mc, 2, 2, 1, 255, 0.5, 8, 8, 2, 3);
_local7.mc2.t = this;
_local7.color = 255;
_local7.thunked = false;
_local7.frame = 0;
_local7.xyz = new Array(((32 * 2) * 64) * 2);
_local7.removeMC = removeMC;
_local7.update = update;
_local7.draw = draw;
_local7.thunk = thunk;
_local7.mc2.onEnterFrame = onEnterFrame;
bmps = [];
tinted = [];
var _local6 = 0;
for ( ; _local6 < 32 ; _local6++) {
_local7.mc.clear();
_local7.thunk();
_local7.draw();
_local7.update();
var _local8 = new flash.display.BitmapData(256, 128, true, 0);
_local8.draw(_local7.mc2);
bmps[_local6] = _local8;
tinted[_local6] = 0;
}
_local7.mc.removeMovieClip();
}
function thunk() {
var _local2 = this;
if (!_local2.thunked) {
var _local4 = ((2 * 64) * 2) * _local2.frame;
var _local3 = 0;
var _local9 = 0;
for ( ; _local9 <= Math.PI ; _local9 = _local9 + Math.PI) {
var _local10 = 0;
for ( ; _local10 <= 63 ; _local10++) {
var _local5 = _local9 + ((Math.PI * (_local10 + _local2.frame)) / 32);
var _local6 = (-256 + 4) + (_local10 * 8);
var _local7 = Math.sin(-_local5) * 128;
var _local8 = 1 - (((Math.cos(-_local5) * 128) + 128) / 1536);
_local2.xyz[((_local4 + _local3) + (_local10 * 2)) + 0] = (_local6 * _local8) * 0.46;
_local2.xyz[((_local4 + _local3) + (_local10 * 2)) + 1] = (_local7 * _local8) * 0.3;
}
_local3 = 64 * 2;
}
if (_local2.frame == 31) {
_local2.thunked = true;
}
}
}
function draw() {
var _local2 = this;
var _local3 = ((2 * 64) * 2) * _local2.frame;
_local2.mc.lineStyle(8, _local2.color, 50);
_local2.mc.moveTo(_local2.xyz[_local3 + 0], _local2.xyz[_local3 + 1]);
var _local4 = 2;
for ( ; _local4 <= (128 - 2) ; _local4 = _local4 + 2) {
_local2.mc.lineTo(_local2.xyz[(_local3 + _local4) + 0], _local2.xyz[(_local3 + _local4) + 1]);
}
_local2.mc.moveTo(_local2.xyz[(_local3 + 128) + 0], _local2.xyz[(_local3 + 128) + 1]);
var _local5 = 128 + 2;
for ( ; _local5 <= (256 - 2) ; _local5 = _local5 + 2) {
_local2.mc.lineTo(_local2.xyz[(_local3 + _local5) + 0], _local2.xyz[(_local3 + _local5) + 1]);
}
_local2.mc.lineStyle(4, _local2.color, 100);
_local2.mc.moveTo(_local2.xyz[_local3 + 0], _local2.xyz[_local3 + 1]);
var _local6 = 2;
for ( ; _local6 <= (128 - 2) ; _local6 = _local6 + 2) {
_local2.mc.lineTo(_local2.xyz[(_local3 + _local6) + 0], _local2.xyz[(_local3 + _local6) + 1]);
}
_local2.mc.moveTo(_local2.xyz[(_local3 + 128) + 0], _local2.xyz[(_local3 + 128) + 1]);
var _local7 = 128 + 2;
for ( ; _local7 <= (256 - 2) ; _local7 = _local7 + 2) {
_local2.mc.lineTo(_local2.xyz[(_local3 + _local7) + 0], _local2.xyz[(_local3 + _local7) + 1]);
}
_local2.mc.lineStyle(8, _local2.color, 50);
var _local8 = 4;
for ( ; _local8 < (128 - 4) ; _local8 = _local8 + 8) {
_local2.mc.moveTo(_local2.xyz[(_local3 + _local8) + 0], _local2.xyz[(_local3 + _local8) + 1]);
_local2.mc.lineTo(_local2.xyz[((_local3 + 128) + _local8) + 0], _local2.xyz[((_local3 + 128) + _local8) + 1]);
}
_local2.mc.lineStyle(4, _local2.color, 100);
var _local9 = 4;
for ( ; _local9 <= (128 - 4) ; _local9 = _local9 + 8) {
_local2.mc.moveTo(_local2.xyz[(_local3 + _local9) + 0], _local2.xyz[(_local3 + _local9) + 1]);
_local2.mc.lineTo(_local2.xyz[((_local3 + 128) + _local9) + 0], _local2.xyz[((_local3 + 128) + _local9) + 1]);
}
}
function update() {
var _local2 = this;
_local2.frame = _local2.frame + 1;
if (_local2.frame == 32) {
_local2.frame = 0;
}
}
function removeMC() {
var _local2 = this;
_local2.mc.removeMovieClip();
}
function do_tint() {
var _local2 = new flash.geom.Rectangle(tinted[frame], 0, tint - tinted[frame], 128);
var _local3 = new flash.geom.ColorTransform(0, 0, 0, 1, 0, 128, 255, 0);
bmps[frame].colorTransform(_local2, _local3);
tinted[frame] = tint;
}
function onEnterFrame() {
var _local2 = this;
if (!_local2._visible) {
return(undefined);
}
_local2.t.do_tint();
_local2.t.mc2.attachBitmap(_local2.t.bmps[_local2.t.frame], 0, "auto", true);
_local2.t.frame = _local2.t.frame + 1;
if (_local2.t.frame == 32) {
_local2.t.frame = 0;
}
}
//ASSetPropFlags(_local1, null, 1);
var tint = 0;
var frame = 0;
}
Symbol 20502 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 20503 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 20504 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 20505 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/WetV.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/WetV.fb";
var _local7 = "WetV".toLowerCase();
if (_local7 == "wetbasement") {
_local7 = "basement";
}
if (_local7 == "wetdiamonds") {
_local7 = "diamonds";
}
_local6.bookmarkURL = ("http://" + _local7) + ".wetgenes.com/";
_local6.widgetTitle = "Play WetV 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 20506 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 20507 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 onMouseMove() {
}
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 20508 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 20509 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;
var _local6 = new flash.geom.Matrix();
var _local7 = 1;
var _local8 = 1;
if (opts.sw) {
_local7 = opts.sw;
}
if (opts.sh) {
_local8 = opts.sh;
}
if (opts.s) {
_local7 = opts.s;
_local8 = opts.s;
}
_local6.scale(_local7, _local8);
if (opts.mc) {
switch (style) {
case "wait" :
bms[0] = new flash.display.BitmapData(w, h, false, 0);
bms[0].draw(opts.mc, _local6);
break;
case "fade" :
smul = 0.8;
bms[0] = new flash.display.BitmapData(w, h, false, 0);
bms[0].draw(opts.mc, _local6);
break;
case "slide_left" :
case "slide_down" :
bms[0] = new flash.display.BitmapData(w, h, false, 0);
bms[0].draw(opts.mc, _local6);
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, _local6);
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);
}
if (!_root.mc_swish.mc) {
_root.mc_swish.mc = gfx.create_clip(_root.mc_swish);
MainStatic.apply_800x600_scale(_root.mc_swish.mc);
}
smc = _root.mc_swish.mc;
smc._alpha = 100;
frame = -2;
switch (style) {
case "wait" :
case "fade" :
case "slide_left" :
case "slide_down" :
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 "wait" :
if (frame > 25) {
return(false);
}
break;
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 "slide_down" :
mcs[0]._y = (300 + 700) + ((mcs[0]._y - (300 + 700)) * 0.9);
if (mcs[0]._y > (300 + 600)) {
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 20510 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 20511 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);
}
static function clean_str(s) {
var _local5 = "";
var _local3 = 0;
for ( ; _local3 < s.length ; _local3++) {
var _local4 = s.charCodeAt(_local3);
if ((nums[_local4] > 0) || (_local4 == 65)) {
_local5 = _local5 + String.fromCharCode(_local4);
}
}
return(_local5);
}
//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 20512 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 draw_fcirc4(mc, l, x1, y1, x2, y2, x3, y3, x4, y4) {
if (l != 0) {
mc.lineStyle(l, mc.style.out & 16777215, (((mc.style.out >> 24) & 255) * 100) / 255);
} else {
mc.lineStyle(undefined, undefined);
}
mc.moveTo((x1 + x2) / 2, (y1 + y2) / 2);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.curveTo(x2, y2, (x2 + x3) / 2, (y2 + y3) / 2);
mc.curveTo(x3, y3, (x3 + x4) / 2, (y3 + y4) / 2);
mc.curveTo(x4, y4, (x4 + x1) / 2, (y4 + y1) / 2);
mc.curveTo(x1, y1, (x1 + x2) / 2, (y1 + y2) / 2);
mc.endFill();
}
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 blurglow(mc, aa, bb, cc, a, b, c, d, e, f, g, h) {
mc.filters = [new flash.filters.BlurFilter(aa, bb, cc), new flash.filters.GlowFilter(a, b, c, d, e, f, g, h)];
}
static function clear_filters(mc) {
mc.filters = null;
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20513 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 20514 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);
}