Frame 1
WetBaseMent.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.WetBaseMentTitleDat] Frame 0
class WetBaseMentTitleDat
{
var up, play, minions, anim_over, last_type;
function WetBaseMentTitleDat (_up, _play) {
up = _up;
play = _play;
}
function delegate(f, d, i) {
return(com.dynamicflash.utils.Delegate.create(this, f, d, i));
}
function days_to_string(days) {
if (days == up.up.game_seed_today) {
return("Today");
}
var _local3 = new Date();
_local3.setTime((((days * 24) * 60) * 60) * 1000);
var _local4 = alt.Sprintf.format("%04d%02d%02d", _local3.getFullYear(), _local3.getMonth() + 1, _local3.getDate());
return(_local4);
}
function setup() {
minions = [];
frame = 0;
switch (up.state) {
case "levels_all" :
case "zoo_all" :
var _local3 = new Array();
var _local2 = 0;
for ( ; _local2 < 10 ; _local2++) {
_local3[_local2] = new Array();
_local3[_local2][0] = 0;
_local3[_local2][1] = "me";
_local3[_local2][2] = play.up.game_seed_today - _local2;
}
play.scores_hard = _local3;
play.scores_hard_flag = false;
_local3 = new Array();
_local2 = 0;
for ( ; _local2 < 10 ; _local2++) {
_local3[_local2] = new Array();
_local3[_local2][0] = 0;
_local3[_local2][1] = "me";
_local3[_local2][2] = play.up.game_seed_today - _local2;
}
play.scores_easy = _local3;
play.scores_easy_flag = false;
}
}
function clean() {
var _local2 = 0;
for ( ; _local2 < minions.length ; _local2++) {
minions[_local2].clean();
}
minions = [];
}
function update() {
anim_idx++;
var _local2 = null;
up.mcs.story_over_1._visible = false;
up.mcs.race_over_1._visible = false;
if (anim_over == "race") {
var _local3 = Math.floor(anim_idx / 2) % 10;
_local2 = up.mcs.race_over_1;
} else if (anim_over == "story") {
var _local3 = Math.floor(anim_idx / 2) % 10;
_local2 = up.mcs.story_over_1;
}
if (_local2) {
gfx.glow(_local2, 16777215, 0.8, 16, 16, 1, 3, false, false);
_local2.gotoAndStop(1);
_local2.gotoAndStop(_local2.baseframe + _local3);
_local2._visible = true;
}
frame++;
var _local4 = Math.floor(frame / 6) % 6;
var _local3 = 0;
for ( ; _local3 < minions.length ; _local3++) {
minions[_local3].display("idle", _local4);
}
if (up.state == "end3_all") {
var _local6 = ((frame % 100) - 50) / 50;
if (_local6 < 0) {
_local6 = -_local6;
}
var _local7 = _local6 * _local6;
var _local8 = (_local7 + (_local7 * 2)) - ((_local7 * _local6) * 2);
up.mcs.cage1.twistme._rotation = (_local8 * 60) - 30;
up.mcs.minion1.twistme._rotation = (_local8 * 60) - 30;
}
if (up.mcs.whore) {
if (!up.mcs.whore.whore.ad) {
if (_root.wonderfulls) {
up.mcs.whore.whore.ad = gfx.create_clip(up.mcs.whore.whore, null);
up.mcs.whore.whore.ad.loadMovie(_root.wonderfulls[0].img);
}
}
}
}
function saves_reset_temps() {
}
function saves_reset() {
up.saves = {};
}
function update_display() {
var _local2 = 0;
for ( ; _local2 < up.mcs_max ; _local2++) {
var _local3 = up.mcs[_local2];
var _local4 = _local3.nams;
_local3._visible = true;
var _local5 = nam_to_level(_local4[0]);
if (_local5) {
var _local6 = up.up.levels[_local5];
if (!_local3.level) {
var _local8 = _local3.getBounds(_local3);
_local3.level = gfx.add_clip(_local3, _local6.img_bak, null, _local8.xMin, _local8.yMin, (_local8.xMax - _local8.xMin) / 8, (_local8.yMax - _local8.yMin) / 6);
_local3.date = gfx.create_text_html(up.mc, null, ((_local8.xMax + _local8.xMin) / 2) - 80, _local8.yMin - 14, 160, 20);
_local3.score = gfx.create_text_html(up.mc, null, ((_local8.xMax + _local8.xMin) / 2) - 80, _local8.yMax - 7, 160, 20);
if (_local6.game_seed == up.up.game_seed_today) {
gfx.set_text_html(_local3.date, 18, 16777215, ("<p align=\"center\"><b>" + days_to_string(_local6.game_seed)) + "</b></p>");
} else {
gfx.set_text_html(_local3.date, 12, 16777215, ("<p align=\"center\">" + days_to_string(_local6.game_seed)) + "</p>");
}
gfx.set_text_html(_local3.score, 14, 16777215, ("<p align=\"center\">" + "0") + "</p>");
}
}
switch (_local4[0]) {
case "minion" :
case "minion1" :
case "minion2" :
case "minion3" :
if (!_local3.minion) {
var _local8 = _local3.getBounds(_local3);
_local3.minimc = gfx.create_clip(_local3, null, (_local8.xMin + _local8.xMax) / 2, _local8.yMax, _local8.xMax - _local8.xMin, _local8.yMax - _local8.yMin);
_local3.minion = new Minion({mc:_local3.minimc});
_local3.minion.setup(up.up.tards[up.up.tard_idx].img1, 50, 100);
minions[minions.length] = _local3.minion;
}
break;
case "whore" :
var _local8 = _local3.getBounds(_local3);
_local3.whore = gfx.create_clip(_local3, null, _local8.xMin, _local8.yMin, (100 * (_local8.xMax - _local8.xMin)) / 125, (100 * (_local8.yMax - _local8.yMin)) / 125);
break;
case "digg" :
_local8 = _local3.getBounds(_local3);
_local3.icon = gfx.add_clip(_local3, "icon_digg", null, _local8.xMin, _local8.yMin, (100 * (_local8.xMax - _local8.xMin)) / 16, (100 * (_local8.yMax - _local8.yMin)) / 16);
break;
case "stumble" :
_local8 = _local3.getBounds(_local3);
_local3.icon = gfx.add_clip(_local3, "icon_stumble", null, _local8.xMin, _local8.yMin, (100 * (_local8.xMax - _local8.xMin)) / 16, (100 * (_local8.yMax - _local8.yMin)) / 16);
break;
default :
if (_local4[1] != "over") {
break;
}
_local3._visible = false;
}
}
if (play.gameskill == "hard") {
up.mcs.hard._visible = true;
up.mcs.easy._visible = false;
} else {
up.mcs.hard._visible = false;
up.mcs.easy._visible = true;
}
switch (up.state) {
case "end1_all" :
up.talky_display("FREEEEDOM!!!");
break;
case "end2_all" :
up.talky_display("uhm?");
break;
case "end3_all" :
up.talky_display("HELP!!!");
break;
case "levels_all" :
_root.signals.signal("WetBaseMent", "set", this);
if (play.gameskill == "easy") {
if (!play.scores_easy_flag) {
get_last();
}
} else if (!play.scores_hard_flag) {
get_last();
}
thunk_scores();
break;
case "zoo_all" :
play.gameskill = "easy";
get_last();
}
}
function get_last() {
_root.signals.signal("WetBaseMent", "set", this);
last_id++;
last_type = play.gameskill;
_root.comms.get_high("last", "global", delegate(got_last, last_id));
}
function got_last(a, tid) {
if (tid == last_id) {
var _local4 = 0;
for ( ; _local4 < 10 ; _local4++) {
a[_local4] = a[_local4].split(";");
a[_local4][0] = Math.floor(a[_local4][0]);
a[_local4][2] = Math.floor(a[_local4][2]);
}
if (last_type == "easy") {
play.scores_easy = a;
play.scores_easy_flag = true;
} else {
play.scores_hard = a;
play.scores_hard_flag = true;
}
thunk_scores();
}
}
function thunk_scores() {
if (up.state != "levels_all") {
return(undefined);
}
if (play.gameskill == "easy") {
var _local2 = play.scores_easy;
} else {
var _local2 = play.scores_hard;
}
var _local4 = 0;
for ( ; _local4 < 10 ; _local4++) {
var _local6 = alt.Sprintf.format("level%02d", _local4 + 1);
var _local7 = up.mcs[_local6];
var _local8 = up.up.levels[_local4 + 1];
var _local3 = null;
var _local5 = 0;
for ( ; _local5 < 10 ; _local5++) {
if (_local2[_local5][2] == _local8.game_seed) {
_local3 = _local2[_local5];
break;
}
}
if (_local3) {
gfx.set_text_html(_local7.score, 14, 16777215, ("<p align=\"center\">" + _local3[0]) + "</p>");
} else {
gfx.set_text_html(_local7.score, 14, 16777215, ("<p align=\"center\">" + "0") + "</p>");
}
}
}
function do_this(me, act) {
if (this["do_" + me.nam]) {
this["do_" + me.nam](me, act);
} else if (this[(("do_" + me.nams[0]) + "_") + me.nams[1]]) {
this[(("do_" + me.nams[0]) + "_") + me.nams[1]](me, act);
} else if (this["do_" + me.nams[0]]) {
this["do_" + me.nams[0]](me, act);
} else if (this["do_" + me.nams[1]]) {
this["do_" + me.nams[1]](me, act);
} else {
do_def(me, act);
}
}
function nam_to_level(nam) {
var _local3 = null;
switch (nam) {
case "level10" :
_local3 = 10;
break;
case "level09" :
_local3 = 9;
break;
case "level08" :
_local3 = 8;
break;
case "level07" :
_local3 = 7;
break;
case "level06" :
_local3 = 6;
break;
case "level05" :
_local3 = 5;
break;
case "level04" :
_local3 = 4;
break;
case "level03" :
_local3 = 3;
break;
case "level02" :
_local3 = 2;
break;
case "level01" :
_local3 = 1;
}
return(_local3);
}
function butt_over(nam, me, act) {
var _local5 = nam_to_level(nam);
do_over(me, act);
switch (act) {
case "click" :
do_under(me, "off");
_root.poker.ShowFloat(null, 0);
if (_local5 != null) {
up.up.level_idx = _local5;
up.up.state_next = "play";
play.gamemode = "race";
play.clean_snapbmp();
_root.poker.ShowFloat(null, 0);
}
switch (nam) {
case "minion" :
up.up.tard_idx++;
if (up.up.tard_idx >= up.up.tards.length) {
up.up.tard_idx = 1;
}
minions[0].setsoul(up.up.tards[up.up.tard_idx].img1);
_root.poker.ShowFloat(("<b>" + up.up.tards[up.up.tard_idx].name) + "</b><br>Click to change your player avatar.", 25 * 10);
break;
case "easy" :
case "hard" :
me.filters = false;
if (play.gameskill == "easy") {
play.gameskill = "hard";
} else if (play.gameskill == "hard") {
play.gameskill = "easy";
}
update_display();
_root.signals.signal("WetBaseMent", "set", this);
update_display();
break;
case "mainmenu" :
up.state_next = "title_all";
if (up.up.swish) {
up.up.swish.clean();
up.up.swish = null;
}
up.up.swish = new Swish({style:"sqr_plode", mc:up.mc});
break;
case "story" :
up.up.state_next = "zoo";
break;
case "race" :
up.state_next = "levels_all";
if (up.up.swish) {
up.up.swish.clean();
up.up.swish = null;
}
up.up.swish = new Swish({style:"sqr_slide", mc:up.mc});
break;
case "scores" :
break;
case "about" :
up.up.about.setup();
break;
case "code" :
up.up.code.setup();
break;
case "shop" :
getURL ("http://link.wetgenes.com/link/WetBaseMent.shop", "_blank");
break;
case "wetgenes" :
getURL ("http://www.wetgenes.com/", "_blank");
break;
case "floater_start" :
up.up.up.level_idx = 1;
up.up.up.state_next = "play";
play.clean_snapbmp();
play.gameskill = "easy";
play.gamemode = "story";
_root.poker.ShowFloat(null, 0);
break;
case "whore" :
if (_root.wonderfulls[0].url) {
getURL (_root.wonderfulls[0].url, "_blank");
}
break;
case "digg" :
getURL ("http://digg.com/submit?phase=2&url=basement.wetgenes.com&title=WetBasement:+A+water+filled+platform+game+extravaganza!&bodytext=WetBasement:+A+water+filled+platform+game+extravaganza!&topic=playable_web_games", "_blank");
break;
case "stumble" :
getURL ("http://www.stumbleupon.com/submit?url=http://basement.wetgenes.com&title=WetBasement:+A+water+filled+platform+game+extravaganza!", "_blank");
}
break;
case "on" :
if (_local5 != null) {
var _local6 = up.up.levels[_local5];
_root.poker.ShowFloat((("Play level " + _local5) + "<br>") + _local6.name, 250);
gfx.glow(me, 16777215, 0.8, 16, 16, 1, 3, false, false);
}
switch (nam) {
case "minion" :
_root.poker.ShowFloat(("<b>" + up.up.tards[up.up.tard_idx].name) + "</b><br>Click to change your avatar.", 25 * 10);
gfx.glow(me, 16777215, 0.8, 16, 16, 1, 3, false, false);
break;
case "easy" :
_root.poker.ShowFloat("<b>Easy</b> mode selected.<br>Click to toggle.", 250);
gfx.glow(me, 16777215, 0.8, 16, 16, 1, 3, false, false);
break;
case "hard" :
_root.poker.ShowFloat("<b>Hard</b> mode selected.<br>Click to toggle.", 250);
gfx.glow(me, 16777215, 0.8, 16, 16, 1, 3, false, false);
break;
case "mainmenu" :
_root.poker.ShowFloat("Return to the main menu.", 250);
gfx.glow(me, 16777215, 0.8, 16, 16, 1, 3, false, false);
break;
case "story" :
anim_over = "story";
_root.poker.ShowFloat("Play through each level one after the other in a sequential experience that some may call a story.", 250);
break;
case "race" :
anim_over = "race";
_root.poker.ShowFloat("Race to finish each level with the highest score. A new challenge every day.", 250);
break;
case "scores" :
_root.poker.ShowFloat("Show me the weaners.", 250);
break;
case "about" :
_root.poker.ShowFloat("Did you know this game was made by real people?", 250);
break;
case "code" :
_root.poker.ShowFloat("Get the code to place this game on your blog profile or website.", 250);
break;
case "shop" :
_root.poker.ShowFloat("Because you love us and we love you, all night long baby.", 250);
break;
case "wetgenes" :
_root.poker.ShowFloat("Visit the site that gave birth to this game.", 250);
break;
case "ignoreme" :
_root.poker.ShowFloat("IGNORE ME!.", 250);
break;
case "floater_start" :
_root.poker.ShowFloat("Click start to start.", 250);
break;
case "whore" :
var _local7 = "<font size='10'>These people are helping to keep this game online:<br></font>";
if (_root.wonderfulls[0].txt) {
_local7 = _local7 + _root.wonderfulls[0].txt;
}
_root.poker.ShowFloat(_local7, 250);
break;
case "digg" :
_root.poker.ShowFloat("If you like this game, please tell your friends on Digg!", 250);
break;
case "stumble" :
_root.poker.ShowFloat("If you like this game, please tell your friends on StumbleUpon!", 250);
}
break;
case "off" :
_root.poker.ShowFloat(null, 0);
if (_local5 != null) {
me.filters = null;
}
switch (nam) {
case "easy" :
case "hard" :
case "mainmenu" :
case "minion" :
me.filters = null;
break;
case "story" :
anim_over = null;
break;
case "race" :
anim_over = null;
}
break;
default :
do_def(me, act);
}
}
function do_story(me, act) {
butt_over("story", me, act);
}
function do_race(me, act) {
butt_over("race", me, act);
}
function do_scores(me, act) {
butt_over("scores", me, act);
}
function do_about(me, act) {
butt_over("about", me, act);
}
function do_code(me, act) {
butt_over("code", me, act);
}
function do_wetgenes(me, act) {
butt_over("wetgenes", me, act);
}
function do_shop(me, act) {
butt_over("shop", me, act);
}
function do_mainmenu(me, act) {
butt_over("mainmenu", me, act);
}
function do_easy(me, act) {
butt_over("easy", me, act);
}
function do_hard(me, act) {
butt_over("hard", me, act);
}
function do_minion(me, act) {
butt_over("minion", me, act);
}
function do_ignoreme(me, act) {
butt_over("ignoreme", me, act);
}
function do_whore(me, act) {
butt_over("whore", me, act);
}
function do_digg(me, act) {
butt_over("digg", me, act);
}
function do_stumble(me, act) {
butt_over("stumble", me, act);
}
function do_level10(me, act) {
butt_over("level10", me, act);
}
function do_level09(me, act) {
butt_over("level09", me, act);
}
function do_level08(me, act) {
butt_over("level08", me, act);
}
function do_level07(me, act) {
butt_over("level07", me, act);
}
function do_level06(me, act) {
butt_over("level06", me, act);
}
function do_level05(me, act) {
butt_over("level05", me, act);
}
function do_level04(me, act) {
butt_over("level04", me, act);
}
function do_level03(me, act) {
butt_over("level03", me, act);
}
function do_level02(me, act) {
butt_over("level02", me, act);
}
function do_level01(me, act) {
butt_over("level01", me, act);
}
function do_floater_start(me, act) {
butt_over("floater_start", me, act);
}
function do_under(me, act) {
switch (act) {
case "on" :
up.mcs[me.nams[0] + "_under"]._visible = false;
up.mcs[me.nams[0] + "_over"]._visible = true;
break;
case "off" :
up.mcs[me.nams[0] + "_under"]._visible = true;
up.mcs[me.nams[0] + "_over"]._visible = false;
}
}
function do_over(me, act) {
switch (act) {
case "on" :
up.mcs[me.nams[0] + "_under"]._visible = false;
up.mcs[me.nams[0] + "_over"]._visible = true;
break;
case "off" :
up.mcs[me.nams[0] + "_under"]._visible = true;
up.mcs[me.nams[0] + "_over"]._visible = false;
}
}
function do_def(me, act) {
switch (act) {
case "on" :
break;
case "off" :
_root.poker.ShowFloat(null, 0);
break;
case "click" :
switch (up.state) {
case "end1_all" :
up.state_next = "end2_all";
break;
case "end2_all" :
up.state_next = "end3_all";
break;
case "end3_all" :
up.state_next = "title_all";
}
}
}
//ASSetPropFlags(_local1, null, 1);
var frame = 0;
var anim_idx = 0;
var last_id = 0;
}
Symbol 20482 MovieClip [__Packages.Minion] Frame 0
class Minion
{
var up, mc, xml, nam, page1, anim, frame, frame_fixed;
function Minion (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(_nam, hx, hy) {
mc = gfx.create_clip(up.mc, null);
mc._x = -hx;
mc._y = -hy;
if (_nam) {
setsoul(_nam);
}
display("idle", 0);
}
function load_xml(url) {
xml = new XML();
xml.url = url;
xml.onLoad = delegate(loaded_xml, xml);
xmlcache.load(xml);
}
function loaded_xml(suc) {
var _local4 = suc;
if (_local4 != "swf") {
_local4 = (_local4 ? "url" : "failed");
}
dbg.print((("loaded " + _local4) + " ") + xml.url);
if (suc) {
parse_xml(xml, 0);
}
}
function parse_xml(e, d) {
var _local5 = false;
if (e.nodeType == 1) {
dbg.print((((d + ":") + e.nodeType) + ":") + e.nodeName);
switch (e.nodeName) {
case "img" :
setsoul(e.attributes.src);
break;
default :
_local5 = true;
}
if (_local5) {
var _local4 = e.firstChild;
for ( ; _local4 ; _local4 = _local4.nextSibling) {
parse_xml(_local4, d + 1);
}
}
}
}
function loaded_img(it, nam) {
var _local5 = 0;
for ( ; _local5 < 6 ; _local5++) {
var _local4 = 0;
for ( ; _local4 < 8 ; _local4++) {
_root.bmc.bmp_chop("minion_" + nam, (((("minion_" + nam) + "_") + _local5) + "_") + _local4, _local4 * 100, _local5 * 100, 100, 100);
}
}
_root.bmc.forget("minion_" + nam);
}
function setsoul(_nam) {
nam = _nam;
if (_root.urlmap.map[nam] || (nam.substring(0, 5) != "http:")) {
if (_root.urlmap.map[nam]) {
nam = _root.urlmap.map[nam];
}
if (_root.bmc.available) {
if (!_root.bmc.isloaded((((("minion_" + nam) + "_") + 0) + "_") + 0)) {
_root.bmc.remember("minion_" + nam, bmcache.create_img, {url:nam, bmpw:800, bmph:600, bmpt:true, hx:0, hy:0, onload:delegate(loaded_img, nam)});
}
} else {
page1 = gfx.add_clip(mc, nam, 1);
page1.cacheAsBitmap = true;
page1._visible = true;
}
} else if (_root.bmc.available) {
if (!_root.bmc.isloaded((((("minion_" + nam) + "_") + 0) + "_") + 0)) {
_root.bmc.remember("minion_" + nam, bmcache.create_url, {url:nam, bmpw:800, bmph:600, bmpt:true, hx:0, hy:0, onload:delegate(loaded_img, nam)});
}
} else {
page1 = gfx.create_clip(mc, 1);
page1.mc = gfx.create_clip(page1, 1);
page1.mc.loadMovie(nam);
page1.cacheAsBitmap = true;
page1._visible = true;
}
}
function clean() {
mc.removeMovieClip();
mc = null;
}
function pick(page, x, y) {
if (_root.bmc.available) {
_root.bmc.create(mc, (((("minion_" + nam) + "_") + y) + "_") + x, 1);
} else {
page1._visible = false;
page._visible = true;
page.scrollRect = new flash.geom.Rectangle(x * 100, y * 100, 100, 100);
}
}
function display(_anim, _frame) {
anim = _anim;
frame = _frame;
frame_fixed = Math.floor(frame);
switch (anim) {
case "idle" :
default :
frame_fixed = frame_fixed % 6;
if (frame_fixed > 3) {
frame_fixed = 6 - frame_fixed;
}
pick(page1, frame_fixed, 3);
break;
case "left" :
frame_fixed = frame_fixed % 8;
pick(page1, frame_fixed, 1);
break;
case "right" :
frame_fixed = frame_fixed % 8;
pick(page1, frame_fixed, 0);
break;
case "out" :
frame_fixed = frame_fixed % 4;
pick(page1, frame_fixed, 2);
break;
case "in" :
frame_fixed = 4 + (frame_fixed % 4);
pick(page1, frame_fixed, 2);
break;
case "splat" :
pick(page1, 4, 3);
break;
case "idle_right" :
pick(page1, 5, 3);
break;
case "idle_back" :
pick(page1, 6, 3);
break;
case "idle_left" :
pick(page1, 7, 3);
break;
case "teapot" :
pick(page1, 0, 4);
break;
case "angry" :
pick(page1, 1, 4);
break;
case "confused" :
pick(page1, 2, 4);
break;
case "determind" :
pick(page1, 3, 4);
break;
case "devious" :
pick(page1, 4, 4);
break;
case "embarrassed" :
pick(page1, 5, 4);
break;
case "energetic" :
pick(page1, 6, 4);
break;
case "excited" :
pick(page1, 7, 4);
break;
case "happy" :
pick(page1, 0, 5);
break;
case "indescribable" :
pick(page1, 1, 5);
break;
case "nerdy" :
pick(page1, 2, 5);
break;
case "sad" :
pick(page1, 3, 5);
break;
case "scared" :
pick(page1, 4, 5);
break;
case "sleepy" :
pick(page1, 5, 5);
break;
case "thoughtful" :
pick(page1, 6, 5);
break;
case "working" :
pick(page1, 7, 5);
}
}
function update() {
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20483 MovieClip [__Packages.MainStatic] Frame 0
class MainStatic
{
function MainStatic () {
}
static function choose_and_apply_scalar(me) {
if ((Stage.width / Stage.height) > (((800 / 600) + (1200 / 600)) / 2)) {
if (_root.scalar.ox != 1200) {
gfx.setscroll(me.mc, 0, 0, 1200, 600);
_root.scalar.ox = 1200;
_root.scalar.oy = 600;
}
} else if (_root.scalar.ox != 800) {
gfx.setscroll(me.mc, 0, 0, 800, 600);
_root.scalar.ox = 800;
_root.scalar.oy = 600;
}
_root.scalar.apply(me.mc);
_root.scalar.apply(_root.mc_popup);
_root.scalar.apply(_root.mc_swish);
_root.scalar.apply(_root.__mochiservicesMC);
_root.__mochiservicesMC._xscale = _root.__mochiservicesMC._xscale * 1.5;
_root.__mochiservicesMC._yscale = _root.__mochiservicesMC._yscale * 1.5;
_root.__mochiservicesMC.swapDepths(16385);
}
static function get_base_context_menu(me, ncm) {
if (ncm) {
var _local4 = ncm;
} else {
var _local4 = new ContextMenu();
_local4.hideBuiltInItems();
}
var _local6 = function () {
if (Stage.displayState == "normal") {
Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 800, 600);
Stage.displayState = "fullScreen";
} else {
Stage.displayState = "normal";
}
};
var _local5 = new ContextMenuItem("Toggle fullscreen mode.", _local6);
_local4.customItems.push(_local5);
_local6 = function () {
if (Stage.displayState == "normal") {
Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 400, 300);
Stage.displayState = "fullScreen";
} else {
Stage.displayState = "normal";
}
};
_local5 = new ContextMenuItem("Toggle lowscreen mode.", _local6);
_local4.customItems.push(_local5);
_local6 = function () {
this.state_next = "menu";
};
_local5 = new ContextMenuItem("Quit to Main Menu.", com.dynamicflash.utils.Delegate.create(me, _local6));
_local4.customItems.push(_local5);
_local6 = function () {
this.state_next = "login";
};
_local5 = new ContextMenuItem("Logout.", com.dynamicflash.utils.Delegate.create(me, _local6));
_local4.customItems.push(_local5);
return(_local4);
}
static function update_setup() {
return(new Array());
}
static function update_add(tab, func) {
tab[tab.length] = func;
}
static function update_remove(tab, func) {
var _local4 = 0;
for ( ; _local4 < tab.length ; _local4++) {
if (tab[_local4] == func) {
tab.splice(_local4, 1);
return(undefined);
}
}
}
static function update_do(tab) {
var _local3 = 0;
for ( ; _local3 < tab.length ; _local3++) {
tab[_local3]();
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20484 MovieClip [__Packages.BetaComms] Frame 0
class BetaComms
{
var up, php, sending_scores, get_high_after_sending, datas, sent_score, sent_stamp, lv_score, get_high_after_sending_cmd, get_high_after_sending_filter, get_high_after_sending_callback, lv_high, lv_pbem;
function BetaComms (_up) {
up = _up;
php = ("http://" + _root.host) + "/swf/beta.php";
sending_scores = false;
get_high_after_sending = false;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function delegate2(f, d1, d2) {
return(com.dynamicflash.utils.Delegate.create(this, f, d1, d2));
}
function send_score_check() {
if (sent_score < datas.score) {
send_score();
}
}
function send_score_wait_and_check() {
var _local2 = new Date();
if ((_local2.getTime() - sent_stamp) > (1000 * 60)) {
send_score_check();
}
}
function reset_sent_stamp() {
var _local2 = new Date();
sent_stamp = _local2.getTime();
sent_score = datas.score;
return(sent_stamp);
}
function send_score() {
if (_root.skip_wetscore) {
return(undefined);
}
lv_score = new LoadVars();
lv_score.S = _root.Login_Session;
lv_score.name = _root.Login_Name;
lv_score.game = datas.game;
lv_score.host = datas.host;
lv_score.seed = datas.seed;
lv_score.state = datas.state;
lv_score.score = datas.score;
lv_score.moves = datas.moves;
lv_score.time = datas.time;
lv_score.start_time = datas.start_time;
lv_score.replay_str = datas.replay_str;
lv_score.timestamp = reset_sent_stamp();
fbsig.copy_fb_sigs(_root, lv_score);
lv_score.onLoad = delegate(send_score_post, lv_score);
lv_score.sendAndLoad(php + "?cmd=submit", lv_score, "POST");
sending_scores = true;
}
function send_score_post(success, lv) {
sending_scores = false;
if (success) {
if (lv.score != 0) {
_root.talk.chat_status("Sent Score: " + lv.score);
}
}
if (get_high_after_sending) {
get_high(get_high_after_sending_cmd, get_high_after_sending_filter, get_high_after_sending_callback);
get_high_after_sending = false;
}
}
function get_high(cmd, filter, callback) {
if (_root.skip_wetscore) {
return(undefined);
}
if (sending_scores) {
get_high_after_sending_cmd = cmd;
get_high_after_sending_filter = filter;
get_high_after_sending_callback = callback;
get_high_after_sending = true;
return(undefined);
}
lv_high = new LoadVars();
lv_high.S = _root.Login_Session;
lv_high.name = _root.Login_Name;
lv_high.game = datas.game;
lv_high.host = datas.host;
lv_high.seed = datas.seed;
lv_high.state = datas.state;
lv_high.filter = filter;
lv_high.min = 1;
lv_high.max = 10;
fbsig.copy_fb_sigs(_root, lv_high);
lv_high.onLoad = delegate2(get_high_post, lv_high, callback);
lv_high.sendAndLoad((php + "?cmd=") + cmd, lv_high, "POST");
}
function get_high_post(success, lv, callback) {
var _local6 = new Array();
var _local7 = false;
var _local5 = 1;
for ( ; _local5 <= 10 ; _local5++) {
if (lv["name" + _local5] != undefined) {
_local6[_local5 - 1] = (((lv["score" + _local5] + ";") + lv["name" + _local5]) + ";") + lv["seed" + _local5];
_local7 = true;
} else {
_local6[_local5 - 1] = "0;...";
}
}
if (_local7) {
callback(_local6);
}
}
function send_audit(a_scoreid, a_score) {
}
function send_audit_post(success, lv) {
}
function send_pbemstart(game, em1, em2) {
if (_root.skip_wetscore) {
return(undefined);
}
lv_pbem = new LoadVars();
lv_pbem.S = _root.Login_Session;
lv_pbem.name = _root.Login_Name;
lv_pbem.game = game;
lv_pbem.em1 = em1;
lv_pbem.em2 = em2;
lv_pbem.onLoad = delegate(send_pbemstart_post, lv_pbem);
lv_pbem.sendAndLoad(php + "?cmd=pbemstart", lv_pbem, "POST");
}
function send_pbemstart_post(success, lv) {
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20485 MovieClip [__Packages.bmcache] Frame 0
class bmcache
{
var aa, aa_loading, mc, available;
function bmcache () {
aa = 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(1);
}
return(0);
}
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];
}
}
}
function forget(idstr) {
aa[idstr] = null;
}
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) {
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 20486 MovieClip [__Packages.FieldItem] Frame 0
class FieldItem
{
var up, mc, locked, type, flags, x, y, vx, vy, mc2, _x, _y;
function FieldItem (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(nam) {
mc = gfx.create_clip(up.mc, null);
locked = false;
type = nam;
flags = 0;
x = 0;
y = 0;
vx = 0;
vy = 0;
draw();
}
function draw(src) {
var _local3 = 2;
gfx.clear(mc);
mc2.removeMovieClip();
mc2 = null;
switch (type) {
case null :
break;
case "fire" :
if (_root._highquality <= 1) {
render(mc, 0, 0, 100);
} else {
render(mc, 0, 0, 100);
mc2 = gfx.add_clip(mc, "obj_fire", 1);
mc2._xscale = 100 * _local3;
mc2._yscale = 100 * _local3;
}
break;
case "earth" :
if (_root._highquality <= 1) {
render(mc, 0, 0, 100);
} else {
render(mc, 0, 0, 100);
mc2 = gfx.add_clip(mc, "obj_earth", 1);
mc2._xscale = 100 * _local3;
mc2._yscale = 100 * _local3;
}
break;
case "air" :
if (_root._highquality <= 1) {
render(mc, 0, 0, 100);
} else {
render(mc, 0, 0, 100);
mc2 = gfx.add_clip(mc, "obj_air", 1);
mc2._xscale = 100 * _local3;
mc2._yscale = 100 * _local3;
}
break;
case "water" :
if (_root._highquality <= 1) {
render(mc, 0, 0, 100);
} else {
render(mc, 0, 0, 100);
mc2 = gfx.add_clip(mc, "obj_water", 1);
mc2._xscale = 100 * _local3;
mc2._yscale = 100 * _local3;
}
break;
case "ether" :
render(mc, 0, 0, 100);
mc2 = gfx.add_clip(mc, "obj_meta", 1);
mc2._xscale = 100 * _local3;
mc2._yscale = 100 * _local3;
}
if (_root._highquality == 2) {
gfx.dropshadow(mc, 5, 45, 0, 1, 10, 10, 2, 3);
} else {
mc.filters = null;
mc.cacheAsBitmap = true;
}
if ((src != undefined) && (src != this)) {
mc2.gotoAndStop(1);
mc2.gotoAndStop(src.mc2._currentframe);
mc2._rotation = src.mc2._rotation;
} else {
mc2.gotoAndStop(1);
mc2.gotoAndStop((up.rnd() % 20) + 1);
mc2._rotation = up.rnd() % 360;
}
}
function render(_mc, dx, dy, siz) {
}
function setxy(setx, sety) {
_x = setx;
_y = sety;
if (mc) {
mc._x = setx;
mc._y = sety;
}
}
static function hard_launch(upp, typ, xx, yy, _vx, _vy) {
var _local8 = new FieldItem(upp.over);
_local8.setup(typ);
_local8.draw();
_local8.setxy(xx, yy);
_local8.vx = _vx;
_local8.vy = _vy;
_local8.mc.filters = null;
_local8.mc.cacheAsBitmap = true;
_local8.mc._xscale = 75;
_local8.mc._yscale = 75;
_local8.mc2.play();
upp.launches.push(_local8);
return(_local8);
}
function launch(_vx, _vy) {
var _local4 = new FieldItem(up.over);
_local4.setup(type);
_local4.draw(this);
_local4.setxy(_x, _y);
_local4.vx = _vx;
_local4.vy = _vy;
gfx.clear(mc);
_local4.mc.filters = null;
_local4.mc.cacheAsBitmap = true;
_local4.mc._xscale = 125;
_local4.mc._yscale = 125;
_local4.mc2.play();
up.launches.push(_local4);
return(_local4);
}
function update_launch() {
vy = vy + 8;
setxy(_x + vx, _y + vy);
mc._rotation = mc._rotation + vx;
if (mc._y > 1200) {
return(true);
}
return(false);
}
function clean() {
mc2.removeMovieClip();
mc.removeMovieClip();
}
function update() {
}
function nextframe() {
mc2.gotoAndStop(((mc2._currentframe + 0) % 20) + 1);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20487 MovieClip [__Packages.fbsig] Frame 0
class fbsig
{
function fbsig () {
}
static function copy_fb_sigs(f, t) {
t.fb_sig_time = f.fb_sig_time;
t.fb_sig_added = f.fb_sig_added;
t.fb_sig_user = f.fb_sig_user;
t.fb_sig_profile_update_time = f.fb_sig_profile_update_time;
t.fb_sig_session_key = f.fb_sig_session_key;
t.fb_sig_expires = f.fb_sig_expires;
t.fb_sig_api_key = f.fb_sig_api_key;
t.fb_sig = f.fb_sig;
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20488 MovieClip [__Packages.Vtard2d] Frame 0
class Vtard2d
{
var up, chat_id, flavour, data, mc, minion, dest_rot, px, py, pz, vx, vy, vz, frame, wet, wet_last, wet_last_wait, step_bool, anim, state, ignore_mouse, talk, last_poke, inout_frame, inout_from, inout_to, bounce_wait, cx, cy, dx, dy, dz, frame_wait;
function Vtard2d (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function dbgframe(s) {
up.dbgframe(s);
}
function setup(nam, _flavour) {
chat_id = -1;
flavour = _flavour;
data = {};
mc = gfx.create_clip(up.mc, null);
minion = new Minion(this);
minion.setup(nam, 50 * 1, 94 * 1);
dest_rot = 0;
px = 0;
py = 0;
pz = 0;
vx = 0;
vy = 0;
vz = 0;
frame = 0;
wet = 0;
wet_last = 0;
wet_last_wait = 0;
step_bool = 0;
anim = "warp";
state = "jump";
ignore_mouse = true;
_root.poker.clear_clicks();
update();
}
function clean() {
mc.removeMovieClip();
}
function update_talker() {
if (up.gamemode == "story") {
if (up.chat_idx < up.chat.length) {
var _local3 = up.chat[up.chat_idx];
} else {
var _local3 = null;
}
} else {
chat_id = 0;
var _local3 = null;
}
if (up.chat_idx < 0) {
if (chat_id == 0) {
if (data.done_setup) {
up.chat_idx = 0;
up.chat_tim = 0;
} else {
data.done_setup = true;
}
}
data.frame_wait = 0;
data.frame = 0;
data.anim = "idle";
} else if (_local3) {
if (_local3.id == chat_id) {
if (_local3.txt) {
talk.display(_local3.txt, 2);
}
if (_local3.anim == "rotoff") {
if (data.chatstate != "rotoff") {
dest_rot = 0;
data.dd = true;
data.dx = 0;
data.dy = 620;
data.chatstate = "rotoff";
data.anim = "idle";
}
} else if (_local3.anim == "start") {
if (data.chatstate != "start") {
data.chatstate = "start";
data.anim = "idle";
if (flavour == "chucker") {
data.idlefor = 25 * 3;
}
}
} else if (_local3.anim == "roton") {
if (data.chatstate != "roton") {
dest_rot = 90 + 30;
px = 0;
py = 600;
data.dd = true;
data.dx = 20;
data.dy = 600;
mc._xscale = 200;
mc._yscale = 200;
data.chatstate = "roton";
data.anim = "idle";
}
} else {
data.anim = _local3.anim;
}
}
if (chat_id == 0) {
up.chat_tim++;
if (_root.replay.key & (((Replay.KEYM_UP | Replay.KEYM_DOWN) | Replay.KEYM_LEFT) | Replay.KEYM_RIGHT)) {
up.chat_tim = up.chat_tim + 4;
}
if ((up.chat_tim >= _local3.tim) || (_root.poker.anykey && (!(_root.replay.key & (((Replay.KEYM_UP | Replay.KEYM_DOWN) | Replay.KEYM_LEFT) | Replay.KEYM_RIGHT))))) {
up.chat_idx++;
up.chat_tim = 0;
}
}
} else if (data.chatstate == "rotoff") {
if (((mc._rotation - dest_rot) * (mc._rotation - dest_rot)) < 4) {
mc._visible = false;
}
}
if (data.dd) {
mc._rotation = ((mc._rotation * 15) + (dest_rot * 1)) / 16;
px = ((px * 15) + (data.dx * 1)) / 16;
py = ((py * 15) + (data.dy * 1)) / 16;
}
data.frame_wait++;
if (data.frame_wait > 8) {
data.frame = data.frame + 1;
data.frame_wait = 0;
}
if ((data.chatstate == "roton") || (data.chatstate == "rotoff")) {
mc._x = up.x2 + px;
mc._y = up.y2 - py;
minion.display(data.anim, data.frame);
return(true);
}
return(false);
}
function update() {
if (update_talker()) {
return(undefined);
}
if (flavour == "chucker") {
var _local11 = false;
var _local12 = false;
var _local13 = false;
var _local14 = false;
if ((data.chatstate == "start") || (up.gamemode == "race")) {
if (data.idlefor > 0) {
if (data.idlefor > (25 * 2.2)) {
data.anim = "idle";
} else if (data.idlefor > (25 * 2)) {
data.anim = "angry";
} else if (data.idlefor > ((25 * 2) - 1)) {
data.anim = "energetic";
data.whirl1.mc._x = up.x2 + px;
data.whirl1.mc._y = up.y2 - py;
data.whirl1.mc.vx = null;
data.whirl1.mc.vy = null;
data.whirl1.flavour = "thrown";
data.whirl1.activate();
_root.wetplay.PlaySFX("sfx_wikwikwik", 0);
} else {
data.anim = "idle";
}
data.idlefor--;
} else {
if (data.vx >= 0) {
data.vx = 1;
_local14 = true;
} else {
data.vx = -1;
_local13 = true;
}
if (state == "onfloor") {
_local11 = true;
}
if (px > (800 - 60)) {
if (data.vx != -1) {
data.vx = -1;
data.idlefor = 25 * 3;
_local14 = false;
_local13 = false;
}
}
if (px < 60) {
if (data.vx != 1) {
data.vx = 1;
data.idlefor = 25 * 3;
_local14 = false;
_local13 = false;
}
}
}
}
} else {
var _local11 = ((_root.replay.key & Replay.KEYM_UP) ? true : false);
var _local12 = ((_root.replay.key & Replay.KEYM_DOWN) ? true : false);
var _local13 = ((_root.replay.key & Replay.KEYM_LEFT) ? true : false);
var _local14 = ((_root.replay.key & Replay.KEYM_RIGHT) ? true : false);
if (_local11 || (_local12 || (_local13 || (_local14)))) {
ignore_mouse = true;
}
if (!ignore_mouse) {
_local14 = _local14 || (((mc._xmouse > 20) ? true : false));
_local13 = _local13 || (((mc._xmouse < -20) ? true : false));
}
if (_root.poker.poke_now) {
ignore_mouse = false;
if (last_poke == 0) {
if (mc._ymouse <= 0) {
last_poke = 1;
} else {
last_poke = -1;
}
}
_local11 = _local11 || (((last_poke == 1) ? true : false));
_local12 = _local12 || (((last_poke == -1) ? true : false));
} else {
last_poke = 0;
}
}
if (state == "inout") {
if (inout_frame == 0) {
_root.wetplay.PlaySFX("sfx_wikwikwik", 0);
} else if (inout_frame == 25) {
_root.wetplay.PlaySFX("sfx_teleport", 0);
}
if (inout_frame < 25) {
minion.display("scared", 0);
var _local15 = ((25 - inout_frame) * 4) / 100;
var _local16 = ((inout_from.x * 20) + 10) - px;
var _local17 = ((inout_from.y * 20) + 10) - py;
mc._x = up.x2 + (px + (_local16 * (1 - _local15)));
mc._y = up.y2 - (py + (_local17 * (1 - _local15)));
mc._xscale = _local15 * 100;
mc._yscale = _local15 * 100;
mc._rotation = _local15 * 360;
} else if (inout_frame < 50) {
minion.display("excited", 0);
var _local15 = ((inout_frame - 25) * 4) / 100;
px = (inout_to.x * 20) + 10;
py = (inout_to.y * 20) + 10;
mc._x = up.x2 + px;
mc._y = up.y2 - py;
mc._xscale = _local15 * 100;
mc._yscale = _local15 * 100;
mc._rotation = _local15 * 360;
} else {
vx = 0;
vy = 0;
var _local16 = px;
var _local17 = py;
mc._xscale = 100;
mc._yscale = 100;
mc._rotation = 0;
state = "jump";
anim = "warp";
}
inout_frame++;
return(undefined);
}
if (state == "bounce") {
if (bounce_wait > 0) {
bounce_wait--;
}
if (bounce_wait == 0) {
if (_local11 || (_local12 || (_local13 || (_local14)))) {
state = "jump";
}
}
} else {
vx = 0;
if (_local11) {
if (wet == 1) {
if (state == "onfloor") {
vy = 12;
if (flavour != "chucker") {
_root.wetplay.PlaySFX("sfx_jump", 0);
}
}
state = "jump";
} else if (state == "onfloor") {
state = "jump";
vy = 12;
if (flavour != "chucker") {
_root.wetplay.PlaySFX("sfx_jump", 0);
}
}
}
if (vx > 20) {
vx = 20;
}
if (vx < -20) {
vx = -20;
}
if (vy > 20) {
vy = 20;
}
if (vy < -20) {
vy = -20;
}
if (_local12 && (state == "onfloor")) {
if ((up.getcol(cx, cy - 1, 1) != 0) && (up.getcol(cx, cy - 2, 1) == 0)) {
py = py - 1;
state = "jump";
}
} else if (_local13) {
if (wet == 1) {
if (state == "onfloor") {
vx = -3;
} else {
vx = -2;
}
} else {
vx = -5;
}
} else if (_local14) {
if (wet == 1) {
if (state == "onfloor") {
vx = 3;
} else {
vx = 2;
}
} else {
vx = 5;
}
}
}
var _local10 = (Math.floor(Math.sqrt((vx * vx) + (vy * vy)) / 20) * 2) + 1;
if (_local10 > 0) {
var _local8 = vx / _local10;
var _local9 = vy / _local10;
while (_local10 > 0) {
var _local25 = Math.floor(px / 20);
var _local26 = Math.floor(py / 20);
var _local28 = up.getcol(_local25, _local26, 1);
var _local6 = Math.floor((px + _local8) / 20);
var _local7 = Math.floor((py + _local9) / 20);
if (_local25 != _local6) {
var _local29 = up.getcol(_local6, _local26, 1);
if (((_local28 == 0) && (_local29 != 0)) || (_local29 == 1)) {
if (_local8 > 0) {
px = (_local25 * 20) + 19;
} else if (_local8 < 0) {
px = _local25 * 20;
}
_local8 = 0;
if (state == "bounce") {
state = "jump";
}
} else {
px = px + _local8;
}
} else {
px = px + _local8;
}
if (_local26 != _local7) {
_local25 = Math.floor(px / 20);
_local28 = up.getcol(_local25, _local26, 1);
var _local29 = up.getcol(_local25, _local7, 1);
if (_local9 >= 0) {
py = py + _local9;
} else if (((_local28 == 0) && (_local29 != 0)) || (_local29 == 1)) {
py = _local26 * 20;
vy = 0;
_local9 = 0;
if (state != "onfloor") {
if (wet) {
} else if (flavour != "chucker") {
_root.wetplay.PlaySFX("sfx_step", 0);
}
step_bool = 4;
}
state = "onfloor";
} else {
py = py + _local9;
}
} else {
py = py + _local9;
}
_local10--;
}
}
px = Math.floor(px + 0.5);
py = Math.floor(py + 0.5);
cx = Math.floor(px / 20);
cy = Math.floor(py / 20);
if (state == "onfloor") {
if ((up.getcol(cx, cy, 1) == 0) && (up.getcol(cx, cy - 1, 1) != 0)) {
} else if (up.getcol(cx, cy - 1, 1) == 1) {
} else {
state = "jump";
}
}
wet = ((up.getwet(cx, cy) == 1) ? 1 : 0);
if (wet_last != wet) {
wet_last = wet;
if (wet) {
_root.wetplay.PlaySFX("sfx_splash", 1, 0, 1 - (wet_last_wait / 50));
wet_last_wait = 50;
}
}
if (wet_last_wait > 0) {
wet_last_wait--;
}
while (px < up.x3_min) {
px = px + 800;
anim = "warp";
}
while (px > up.x3_max) {
px = px - 800;
anim = "warp";
}
while (py < up.y3_min) {
py = py + 600;
anim = "warp";
}
var _local3 = Math.floor((px + 5) / 10) * 10;
var _local4 = Math.floor((py + 5) / 10) * 10;
var _local5 = Math.floor((pz + 5) / 10) * 10;
if (anim == "warp") {
dx = _local3;
dy = _local4;
dz = _local5;
cx = _local6;
cy = _local7;
}
if (up.getwet(Math.floor(px / 20), Math.floor((py + 40) / 20)) == 1) {
if ((up.frame % 20) == 0) {
up.blub_add(px, (600 - py) - 40);
}
}
if (state == "jump") {
if (wet) {
if (_local11) {
vy = vy + 2;
} else {
vy = vy - 1;
}
vx = vx * (3 / 4);
vy = vy * (3 / 4);
} else {
if (_local11) {
if (vy > 0) {
vy = vy - (5 / 8);
} else {
vy = vy - 1;
}
} else {
vy = vy - 3;
}
vx = vx * (31 / 32);
vy = vy * (31 / 32);
}
} else if (state == "bounce") {
if (wet) {
vy = vy - 1;
vx = vx * (3 / 4);
vy = vy * (3 / 4);
} else {
vy = vy - 3;
vx = vx * (31 / 32);
vy = vy * (31 / 32);
}
}
if (_local12 && (state == "onfloor")) {
anim = "splat";
} else if (vx == 0) {
if (anim != "idle") {
frame = frame % 6;
frame_wait = 0;
anim = "idle";
dx = _local3;
dy = _local4;
dz = _local5;
}
} else if (vx * vx) {
if (vx > 0) {
if (anim != "right") {
frame = frame % 8;
if (frame < 4) {
frame = 1;
} else {
frame = 5;
}
anim = "right";
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
} else if (anim != "left") {
frame = frame % 8;
if (frame < 4) {
frame = 1;
} else {
frame = 5;
}
anim = "left";
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
}
switch (anim) {
case "idle" :
minion.display(data.anim, data.frame);
break;
case "left" :
frame_wait++;
if ((wet != 1) && (((state == "jump") || (state == "bounce")) && ((frame == 4) || (frame == 0)))) {
} else {
var _local30 = (_local3 - dx) / -10;
if (_local30 != 0) {
frame = frame + _local30;
frame_wait = 0;
}
if (frame_wait > 3) {
frame = frame + 1;
frame_wait = 0;
}
}
frame = frame % 8;
dx = _local3;
dy = _local4;
dz = _local5;
minion.display("left", frame);
if ((frame == 1) || (frame == 5)) {
if (step_bool == 0) {
if (state == "onfloor") {
if (wet) {
_root.wetplay.PlaySFX("sfx_splash", 1, 0, 0.25);
} else if (flavour != "chucker") {
_root.wetplay.PlaySFX("sfx_step", 0);
}
}
}
step_bool = 1;
} else if (step_bool > 0) {
step_bool--;
}
break;
case "right" :
frame_wait++;
if ((wet != 1) && (((state == "jump") || (state == "bounce")) && ((frame == 4) || (frame == 0)))) {
} else {
var _local30 = (_local3 - dx) / 10;
if (_local30 != 0) {
frame = frame + _local30;
frame_wait = 0;
}
if (frame_wait > 3) {
frame = frame + 1;
frame_wait = 0;
}
}
frame = frame % 8;
dx = _local3;
dy = _local4;
dz = _local5;
minion.display("right", frame);
if ((frame == 1) || (frame == 5)) {
if (step_bool == 0) {
if (state == "onfloor") {
if (wet) {
_root.wetplay.PlaySFX("sfx_splash", 1, 0, 0.25);
} else {
_root.wetplay.PlaySFX("sfx_step", 0);
}
}
}
step_bool = 1;
} else if (step_bool > 0) {
step_bool--;
}
break;
case "splat" :
minion.display("splat", 0);
}
if ((anim == "idle") || ((anim == "splat") || ((state == "jump") || (state == "bounce")))) {
mc._x = up.x2 + px;
mc._y = up.y2 - py;
} else {
mc._x = up.x2 + dx;
mc._y = up.y2 - dy;
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20489 MovieClip [__Packages.WetBaseMentZoo] Frame 0
class WetBaseMentZoo
{
var up, floatx, floaty, frame, mc, back, x2, y2, x2_min, y2_min, x2_max, y2_max, x3, y3, z3, x3_min, y3_min, z3_min, x3_max, y3_max, z3_max, tards, talky, mc_tard, minion, monkeysee;
function WetBaseMentZoo (_up) {
up = _up;
}
function delegate(f, d1, d2) {
return(com.dynamicflash.utils.Delegate.create(this, f, d1, d2));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup() {
floatx = 0;
floaty = 0;
frame = 0;
mc = gfx.create_clip(up.mc, null);
back = new WetBaseMentTitle(this, "zoo_all", up.play);
back.setup();
x2 = 25;
y2 = 575;
x2_min = 0;
y2_min = 0;
x2_max = 800;
y2_max = 600;
x3 = 0;
y3 = 0;
z3 = 0;
x3_min = 0;
y3_min = 0;
z3_min = 0;
x3_max = 600;
y3_max = 600;
z3_max = 600;
tards = new Array();
var _local2 = 1;
for ( ; _local2 < up.tards.length ; _local2++) {
tards[_local2] = new Vtard3d(this);
tards[_local2].setup(up.tards[_local2].img1);
tards[_local2].updat = up.tards[_local2];
tards[_local2].px = x3_min + ((rnd() / 65536) * (x3_max - x3_min));
tards[_local2].py = y3_min;
tards[_local2].pz = z3_min + ((rnd() / 65536) * (z3_max - z3_min));
tards[_local2].mc.onRollOver = delegate(dotard, "over", tards[_local2]);
tards[_local2].mc.onRollOut = delegate(dotard, "out", tards[_local2]);
tards[_local2].mc.onReleaseOutside = delegate(dotard, "out", tards[_local2]);
tards[_local2].mc.onRelease = delegate(dotard, "release", tards[_local2]);
tards[_local2].mc.onPress = delegate(dotard, "press", tards[_local2]);
tards[_local2].update();
}
talky = new Talky(this);
talky.setup();
_local2 = 1;
for ( ; _local2 < tards.length ; _local2++) {
tards[_local2].talk = talky.create(tards[_local2].mc, 0, -30);
}
var _local5 = gfx.create_clip(mc, null, 75, 150, 150, 150);
mc_tard = _local5;
_local5.id = "tard";
minion = new Minion({mc:_local5});
minion.setup(up.tards[up.tard_idx].img1, 50, 100);
monkeysee = tards[up.tard_idx];
mc_tard.mcname = gfx.create_clip(mc_tard, null);
gfx.dropshadow(mc_tard.mcname, 2, 45, 0, 1, 4, 4, 2, 3);
mc_tard.name = gfx.create_text_html(mc_tard.mcname, null, -80, -102, 160, 20);
drag = null;
}
function clean() {
back.clean();
mc.removeMovieClip();
}
function dotard(act, tard) {
switch (act) {
case "over" :
break;
case "out" :
_root.poker.ShowFloat(null, 0);
drag = null;
break;
case "release" :
drag = null;
break;
case "press" :
drag = {};
drag.tard = tard;
drag.mx = mc._xmouse;
drag.my = mc._ymouse;
drag.px = tard.px;
drag.pz = tard.pz;
minion.setsoul(tard.updat.img1);
monkeysee = tard;
up.tard_idx = tard.updat.idx;
}
}
function update() {
frame++;
var _local4 = ((frame % 50) - 25) / 25;
if (_local4 < 0) {
_local4 = -_local4;
}
var _local5 = _local4 * _local4;
var _local6 = (_local5 + (_local5 * 2)) - ((_local5 * _local4) * 2);
floatx = 0;
floaty = _local6 * 25;
mc_tard._x = 390 + floatx;
mc_tard._y = 205 + floaty;
back.mcs.floater_back._x = -400 + floatx;
back.mcs.floater_back._y = -300 + floaty;
back.mcs.floater_start._x = -400 + floatx;
back.mcs.floater_start._y = -300 + floaty;
if (drag) {
var _local7 = mc._xmouse - drag.mx;
var _local8 = mc._ymouse - drag.my;
_local7 = _local7 + _local8;
var _local9 = (-_local8) * 4;
drag.tard.px = drag.px + _local7;
drag.tard.pz = drag.pz + _local9;
drag.tard.rndstate = "idle";
drag.tard.rndcount = 25 * 5;
}
var _local2 = 1;
for ( ; _local2 < tards.length ; _local2++) {
tards[_local2].update();
}
_local2 = 2;
for ( ; _local2 < tards.length ; _local2++) {
if (tards[_local2].pz > tards[_local2 - 1].pz) {
if (tards[_local2].mc.getDepth() > tards[_local2 - 1].mc.getDepth()) {
tards[_local2].mc.swapDepths(tards[_local2 - 1].mc);
var _local3 = tards[_local2];
tards[_local2] = tards[_local2 - 1];
tards[_local2 - 1] = _local3;
}
}
}
minion.display(monkeysee.minion.anim, monkeysee.minion.frame);
gfx.set_text_html(mc_tard.name, 12, 16777215, ("<p align=\"center\"><b>" + up.tards[up.tard_idx].name) + "</b></p>");
talky.update();
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
var drag = null;
}
Symbol 20490 MovieClip [__Packages.WetBaseMentLevel_level_02] Frame 0
class WetBaseMentLevel_level_02
{
function WetBaseMentLevel_level_02 () {
}
//ASSetPropFlags(_local1, null, 1);
var img_bak = "level_02_bak";
var img_for = "level_02_for";
var name = "level_02";
var col = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 0, 253, 0, 0, 0, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 0, 0, 0, 0, 17, 0, 0, 0, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 0, 1, 1, 0, 0, 0, 0, 0, 0, 17, 0, 254, 0, 0, 0, 0, 254, 0, 0, 17, 0, 254, 0, 0, 17, 0,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
}
Symbol 20491 MovieClip [__Packages.WetBaseMentPlay] Frame 0
class WetBaseMentPlay
{
var gamemode, gameskill, up, talky, level, chat, frame, score, dribble_vol, items, pickups, blubs, snapbmp, snapmc, mc, snapold, x2, y2, x2_min, y2_min, x2_max, y2_max, x3, y3, z3, x3_min, y3_min, z3_min, x3_max, y3_max, z3_max, bmc, imc, tards, chat_idx, chat_tim, focus, blubs_mc, wmc, fmc, tfd, txd, mc_score, state, scores_story_total, wibble, wiblur, col, water_active, water, water_waves, water_seep, scores_best_new, scores_best_old, scores_easy, scores_hard;
function WetBaseMentPlay (_up) {
gamemode = "race";
gameskill = "easy";
up = _up;
_root.bmc.clear_loading();
_root.bmc.remember("water_chars", bmcache.create_img, {url:"water_chars", bmpw:220, bmph:80, bmpt:true, hx:0, hy:0});
_root.bmc.remember("water", bmcache.create_null, {url:"water_chars", bmpw:800, bmph:600, bmpt:true, hx:0, hy:0});
talky = new Talky(this);
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
rndg_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function rndg_seed(n) {
rndg_num = n & 65535;
}
function rndg() {
rndg_num = (((rndg_num + 1) * 75) - 1) % 65537;
return(rndg_num);
}
function setup() {
level = up.levels[up.level_idx];
chat = level.chat_start;
up.game_seed = level.game_seed;
rnd_seed(up.game_seed);
frame = 0;
score = 0;
dribble_vol = -1;
items = [];
pickups = [];
blubs = [];
if (snapbmp) {
snapmc = gfx.create_clip(up.mc, null);
snapmc.attachBitmap(snapbmp, 0, "auto", true);
snapmc._y = 0;
mc._y = snapmc._y - 600;
snapold.dest = null;
} else {
snapmc = null;
}
mc = gfx.create_clip(up.mc, null);
x2 = 0;
y2 = 600;
x2_min = 0;
y2_min = 0;
x2_max = 800;
y2_max = 600;
x3 = 0;
y3 = 0;
z3 = 0;
x3_min = 0;
y3_min = 0;
z3_min = 0;
x3_max = 800;
y3_max = 600;
z3_max = 0;
bmc = gfx.add_clip(mc, level.img_bak, null, 0, 0);
bmc.cacheAsBitmap = true;
imc = gfx.create_clip(mc, null);
tards = [];
setcols(level.col);
tards[0] = new Vtard2d(this, "talker");
tards[0].setup(up.tards[up.tard_idx].img1);
tards[0].state = "talker";
tards[0].chat_id = 1;
tards[0].px = start_x;
tards[0].py = start_y;
if (gamemode == "story") {
if (tards[1] == undefined) {
tards[1] = new Vtard2d(this, "player");
tards[1].setup("vtard_kriss");
tards[1].state = "talker";
tards[1].chat_id = 0;
}
}
chat_idx = -1;
chat_tim = 0;
focus = tards[0];
blubs_mc = gfx.create_clip(mc, null);
wmc = _root.bmc.create(mc, "water", null);
wmc._alpha = 50;
fmc = gfx.create_clip(mc, null);
gfx.clear(fmc);
fmc.style.fill = -16777216;
gfx.draw_box(fmc, 0, 0, 0, 20, 600);
gfx.draw_box(fmc, 0, 0, 600 - 20, 800, 20);
gfx.draw_box(fmc, 0, 800 - 20, 0, 20, 600);
fmc.cacheAsBitmap = true;
tfd = gfx.create_text_html(mc, null, 0, 0, 800, 600);
txd = [];
_root.replay.reset();
talky.setup();
tards[0].talk = talky.create(tards[0].mc, 0, -30);
tards[1].talk = talky.create(tards[1].mc, 0, -30);
activate_item();
mc_score = gfx.create_clip(mc, null);
mc_score.tf1 = gfx.create_text_html(mc_score, null, 300, 0, 200, 75);
gfx.glow(mc_score, 16777215, 0.8, 16, 16, 1, 3, false, false);
_root.signals.signal("WetBaseMent", "set", this);
_root.signals.signal("WetBaseMent", "start", this);
state = "start";
if (gamemode == "race") {
_root.wetplay.PlaySFX(null, 3, 65536, 0);
up.high.setup();
var _local2 = 0;
for ( ; _local2 < _root.menu.customItems.length ; _local2++) {
if (_root.menu.customItems[_local2].id == "restart") {
_root.menu.customItems[_local2].visible = true;
}
}
} else if (gamemode == "story") {
if (up.level_idx == 1) {
scores_story_total = 0;
}
}
update();
update();
}
function build_snapbmp() {
snapbmp = new flash.display.BitmapData(800, 600, false, 0);
snapbmp.draw(mc);
snapold = new Object();
snapold.x = tards[0].mc._x;
snapold.y = tards[0].mc._y;
}
function clean_snapbmp() {
snapbmp = null;
}
function clean() {
_root.wetplay.PlaySFX(null, 3);
_root.signals.signal("WetBaseMent", "end", this);
var _local2 = 0;
for ( ; _local2 < _root.menu.customItems.length ; _local2++) {
if (_root.menu.customItems[_local2].id == "restart") {
_root.menu.customItems[_local2].visible = false;
}
}
tards[0].mc._visible = false;
tards[1].mc._visible = false;
build_snapbmp();
talky.clean();
tards[0].clean();
tards[1].clean();
mc.removeMovieClip();
snapmc.removeMovieClip();
}
function update() {
if (_root.popup) {
return(undefined);
}
if (state == "start") {
if (gamemode == "story") {
if (snapmc) {
wibble++;
tards[0].mc._visible = false;
tards[1].mc._visible = false;
if (frame > 0) {
tards[0].mc._visible = true;
if (snapold.dest == null) {
snapold.dest = new Object();
snapold.dest.x = tards[0].mc._x;
snapold.dest.y = tards[0].mc._y;
tards[0].mc.x = snapold.x;
tards[0].mc.y = snapold.y + 600;
}
var _local4 = 600 - snapmc._y;
var _local5 = Math.floor(_local4 / 16);
_local5 = _local4 / 16;
if (_local5 > 8) {
_local5 = 8;
}
if (_local5 < -8) {
_local5 = -8;
}
if (_local5 < 1) {
_local5 = 1;
}
snapmc._y = snapmc._y + _local5;
mc._y = snapmc._y - 600;
if (wibble > 1) {
_local4 = snapold.dest.y - tards[0].mc.y;
_local5 = _local4 / 16;
if (_local5 > 12) {
_local5 = 12;
}
if (_local5 < -12) {
_local5 = -12;
}
tards[0].mc.y = tards[0].mc.y + _local5;
_local4 = snapold.dest.x - tards[0].mc.x;
_local5 = _local4 / 16;
if (_local5 > 12) {
_local5 = 12;
}
if (_local5 < -12) {
_local5 = -12;
}
tards[0].mc.x = tards[0].mc.x + _local5;
tards[0].mc._x = tards[0].mc.x;
tards[0].mc._y = tards[0].mc.y;
}
wiblur = wiblur + ((-wiblur) / 32);
gfx.blur(tards[0].mc, wiblur, wiblur, 1);
} else {
wibble = 0;
wiblur = 64;
}
if (snapmc._y >= 600) {
mc._y = 0;
snapmc.removeMovieClip();
snapmc = null;
tards[0].mc._visible = true;
tards[1].mc._visible = true;
tards[0].mc.filters = null;
state = "play";
} else if (frame > 0) {
return(undefined);
}
} else {
state = "play";
}
} else if (!_root.popup) {
state = "play";
} else {
return(undefined);
}
}
if (state == "end") {
tards[0].mc._visible = false;
tards[1].mc._visible = false;
if (!_root.popup) {
if (gamemode == "story") {
up.state_next = "play";
up.level_idx++;
if (up.level_idx == 11) {
up.title.state = "end1_all";
up.state_next = "title";
up.level_idx = 1;
}
} else if (up.high.retry) {
up.state_next = "play";
} else {
up.title.state = "levels_all";
up.state_next = "title";
}
state = "end_done";
}
return(undefined);
}
if (state == "end_done") {
return(undefined);
}
_root.signals.signal("WetBaseMent", "update", this);
frame++;
talky.update();
if ((score > 0) && (pickups.length > 0)) {
score--;
}
_root.replay.apply_keys_to_prekey();
_root.replay.update();
update_water();
var _local3 = 0;
for ( ; _local3 < tards.length ; _local3++) {
tards[_local3].update();
}
_local3 = 0;
for ( ; _local3 < pickups.length ; _local3++) {
if (pickups[_local3].update()) {
var _local6 = pickups[_local3];
pickups.splice(_local3, 1);
_local3--;
activate_item(_local6);
_local6.clean();
}
}
var _local7 = ("<font size=\"12\"><br><b>" + level.name) + "</b></font>";
if (gamemode == "story") {
if (state == "play") {
gfx.set_text_html(mc_score.tf1, 32, 16777215, ((("<p align=\"center\"><b>" + (scores_story_total + score)) + "</b>") + _local7) + "</p>");
} else {
gfx.set_text_html(mc_score.tf1, 32, 16777215, ((("<p align=\"center\"><b>" + scores_story_total) + "</b>") + _local7) + "</p>");
}
} else {
gfx.set_text_html(mc_score.tf1, 32, 16777215, ((("<p align=\"center\"><b>" + score) + "</b>") + _local7) + "</p>");
}
_local3 = 0;
for ( ; _local3 < items.length ; _local3++) {
if (items[_local3].update()) {
items[_local3].clean();
items.splice(_local3, 1);
_local3--;
}
}
_local3 = 0;
for ( ; _local3 < blubs.length ; _local3++) {
if (blub_update(blubs[_local3])) {
blub_remove(blubs[_local3]);
blubs.splice(_local3, 1);
_local3--;
}
}
var _local2 = "";
_local3 = 0;
for ( ; _local3 < txd.length ; _local3++) {
_local2 = _local2 + txd[_local3];
}
gfx.set_text_html(tfd, 16, 65280, _local2);
txd = [];
}
function activate_item(olditem) {
if (olditem) {
var _local5 = {};
_local5.x = 0;
_local5.y = 0;
olditem.mc.localToGlobal(_local5);
up.over.mc.globalToLocal(_local5);
var _local6 = tards[0].vx;
var _local7 = -tards[0].vy;
var _local3 = 5;
for ( ; _local3 > 0 ; _local3--) {
var _local8 = 16 * ((rndg() - 32768) / 32768);
var _local9 = (8 * ((rndg() - 32768) / 32768)) - 32;
var _local4 = FieldItem.hard_launch(up.over, "ether", _local5.x, _local5.y, _local6 + _local8, _local7 + _local9);
}
up.over.add_floater("<b>500</b><font size=\"12\">pts</font>", _local5.x, _local5.y);
_root.wetplay.PlaySFX("sfx_jar", 1);
}
if (pickups.length > (23 - 13)) {
var _local3 = rnd() % pickups.length;
pickups[_local3].activate();
} else {
state = "end";
_root.signals.signal("WetBaseMent", "won", this);
if (gamemode == "race") {
_root.wetplay.PlaySFX(null, 3, 65536, 0);
up.high.setup("results");
} else if (gamemode == "story") {
if (up.level_idx == 10) {
_root.wetplay.PlaySFX(null, 3, 65536, 0);
up.high.setup("rank");
}
}
}
}
function blub_add(_x, _y) {
var _local4 = {};
_local4 = gfx.create_clip(mc, null);
_local4._x = Math.floor(_x + (((rndg() & 255) - 127) / 32));
_local4._y = Math.floor(_y + (((rndg() & 255) - 127) / 16));
gfx.clear(_local4);
_local4.style.out = -2130706433;
_local4.style.fill = -2130706433;
gfx.draw_rounded_rectangle(_local4, 0, 5, 2, -5, -5, 10, 10);
_local4._alpha = 50;
_local4.pop = false;
blubs[blubs.length] = _local4;
}
function blub_update(bb) {
if (bb.pop) {
bb._xscale = bb._xscale + 20;
bb._yscale = bb._yscale + 20;
bb._alpha = bb._alpha - 10;
if (bb._alpha <= 0) {
return(true);
}
} else {
bb._y = bb._y - 2;
if ((bb._y % 8) < 4) {
bb._x = bb._x - 1;
} else {
bb._x = bb._x + 1;
}
var _local3 = getwet(Math.floor(bb._x / 20), Math.floor((600 - bb._y) / 20));
if ((_local3 < 0.5) || (_local3 == 2)) {
bb.pop = true;
_root.wetplay.PlaySFX("sfx_plop2", 2);
}
}
return(false);
}
function blub_remove(bb) {
bb.removeMovieClip();
}
function dbgframe(s) {
txd[txd.length] = s;
}
function setcols(dat) {
var _local8 = [];
var _local6 = 40;
var _local7 = 30;
col = [];
col[0] = [];
var _local5 = 0;
for ( ; _local5 < _local7 ; _local5++) {
var _local4 = 0;
for ( ; _local4 < _local6 ; _local4++) {
_local8[0] = dat[_local4 + (_local5 * _local6)];
if (_local8[0] >= 128) {
_local8[0] = 0;
}
col[0][_local4 + (_local5 * _local6)] = _local8[0];
}
}
col[1] = [];
_local5 = 0;
for ( ; _local5 < _local7 ; _local5++) {
var _local4 = 0;
for ( ; _local4 < _local6 ; _local4++) {
_local8[0] = dat[_local4 + (_local5 * _local6)];
if (_local4 > 0) {
_local8[-1] = dat[(_local4 - 1) + (_local5 * _local6)];
} else {
_local8[-1] = 0;
}
if (_local4 < (_local6 - 1)) {
_local8[1] = dat[(_local4 + 1) + (_local5 * _local6)];
} else {
_local8[1] = 0;
}
if (_local8[-1] >= 128) {
_local8[-1] = 0;
}
if (_local8[0] >= 128) {
_local8[0] = 0;
}
if (_local8[1] >= 128) {
_local8[1] = 0;
}
if ((_local8[-1] == 1) || ((_local8[0] == 1) || (_local8[1] == 1))) {
col[1][_local4 + (_local5 * _local6)] = 1;
} else if (_local8[0]) {
col[1][_local4 + (_local5 * _local6)] = _local8[0];
} else if (_local8[-1] || (_local8[1])) {
col[1][_local4 + (_local5 * _local6)] = 17;
} else {
col[1][_local4 + (_local5 * _local6)] = _local8[0];
}
}
}
var _local3 = 0;
for ( ; _local3 < 2 ; _local3++) {
var _local4 = 0;
for ( ; _local4 < _local6 ; _local4++) {
_local5 = 1;
for ( ; _local5 < _local7 ; _local5++) {
if (col[_local3][_local4 + (_local5 * _local6)]) {
if (col[_local3][_local4 + ((_local5 - 1) * _local6)] == 1) {
col[_local3][_local4 + (_local5 * _local6)] = 1;
}
}
}
}
}
water_active = [];
water = [];
_local5 = 0;
for ( ; _local5 < _local7 ; _local5++) {
var _local4 = 0;
for ( ; _local4 < _local6 ; _local4++) {
_local8[0] = dat[_local4 + (_local5 * _local6)];
var _local9 = (_local4 * 2) + ((_local5 * _local6) * 2);
if (_local8[0] >= 128) {
_local8[0] = 0;
}
water[_local9 + 0] = 0;
water[_local9 + 1] = 0;
if (_local8[0]) {
water[_local9 + 1] = 2;
}
}
}
water_waves = [];
_local5 = 0;
for ( ; _local5 < _local7 ; _local5++) {
var _local4 = 0;
for ( ; _local4 < _local6 ; _local4++) {
_local8[0] = dat[_local4 + (_local5 * _local6)];
var _local9 = (_local4 * 2) + ((_local5 * _local6) * 2);
if ((_local8[0] >= 208) && (_local8[0] < 240)) {
var _local12 = _local8[0] & 16;
var _local13 = _local8[0] & 15;
var _local14 = -1;
_local3 = 0;
for ( ; _local3 < items.length ; _local3++) {
if (items[_local3].type == "inout") {
if (items[_local3].id == _local13) {
_local14 = _local3;
}
}
}
var _local11 = new PlayItem(this, _local4, _local5, "inout");
_local11.id = _local13;
if (_local12) {
_local11.activate();
}
_local11.other = null;
if (_local14 >= 0) {
_local11.other = items[_local14];
items[_local14].other = _local11;
}
items[items.length] = _local11;
} else if (_local8[0] == 255) {
var _local10 = new Object();
_local10.px = _local4;
_local10.py = _local5;
_local10.vx = 0;
_local10.vy = 0;
_local9 = (_local10.px * 2) + ((_local10.py * _local6) * 2);
water[_local9 + 1] = 0.1;
add_wave(_local10.px, _local10.py);
water_active[0] = _local10;
} else if (_local8[0] == 254) {
pickups[pickups.length] = new PlayItem(this, _local4, _local5, "meta");
} else if (_local8[0] == 253) {
start_x = (_local4 * 20) + 10;
start_y = _local5 * 20;
} else if (_local8[0] == 252) {
items[items.length] = new PlayItem(this, _local4, _local5, "bump");
} else if (_local8[0] == 251) {
items[items.length] = new PlayItem(this, _local4, _local5, "cannon");
} else if (_local8[0] == 250) {
if (gameskill == "hard") {
items[items.length] = new PlayItem(this, _local4, _local5, "whirl");
}
} else if (_local8[0] == 249) {
tards[1] = new Vtard2d(this);
tards[1].setup("vtard_kriss", "chucker");
tards[1].px = (_local4 * 20) + 10;
tards[1].py = _local5 * 20;
tards[1].chat_id = 0;
tards[1].data.whirl1 = new PlayItem(this, _local4, _local5, "whirl");
tards[1].data.whirl1.disable();
items[items.length] = tards[1].data.whirl1;
}
}
}
_root.bmc.bmp_fill("water", 0, 0, 800, 600, 0);
_local5 = 0;
for ( ; _local5 < _local7 ; _local5++) {
var _local4 = 0;
for ( ; _local4 < _local6 ; _local4++) {
draw_water(_local4, _local5);
}
}
var _local10 = new Object();
_local10.px = 1;
_local10.py = 0;
water_seep = _local10;
}
function getcol(x, y, w) {
if (x < 0) {
return(0);
}
if (x >= 40) {
return(0);
}
if (y < 0) {
return(0);
}
if (y >= 30) {
return(0);
}
if (w == 1) {
return(col[1][x + (y * 40)]);
}
return(col[0][x + (y * 40)]);
}
function getwet(x, y) {
if (x < 0) {
return(0);
}
if (x >= 40) {
return(0);
}
if (y < 0) {
return(0);
}
if (y >= 30) {
return(0);
}
return(water[((x * 2) + ((y * 40) * 2)) + 1]);
}
function draw_water(x, y, bend) {
var _local8 = 40;
var _local9 = 30;
var _local6 = (x * 2) + ((y * _local8) * 2);
var _local7 = (x * 2) + (((y - 1) * _local8) * 2);
var _local5 = water[_local6 + 1];
if (water[_local6 + 1] != 2) {
var _local10 = Math.floor(10 * _local5);
if (bend) {
_local10 = _local10 + bend;
}
if (_local10 < 0) {
_local10 = 0;
}
if (_local10 > 10) {
_local10 = 10;
}
if (water[_local6 + 0] == 2) {
_root.bmc.bmp_blit("water_chars", "water", 20 * _local10, 20 * 1, 20, 20, x * 20, 580 - (y * 20));
} else if (y > 0) {
if (water[_local7 + 1] < 1) {
_root.bmc.bmp_blit("water_chars", "water", 20 * _local10, 20 * 2, 20, 20, x * 20, 580 - (y * 20));
} else {
_root.bmc.bmp_blit("water_chars", "water", 20 * _local10, 20 * 3, 20, 20, x * 20, 580 - (y * 20));
}
} else {
_root.bmc.bmp_blit("water_chars", "water", 20 * _local10, 20 * 3, 20, 20, x * 20, 580 - (y * 20));
}
} else {
_root.bmc.bmp_blit("water_chars", "water", 20 * 0, 20 * 3, 20, 20, x * 20, 580 - (y * 20));
}
return(_local5);
}
function add_wave(x, y) {
var _local4 = new Object();
_local4.px = x;
_local4.py = y;
water_waves[water_waves.length] = _local4;
}
function update_water() {
var _local2 = 40;
var _local3 = 30;
if (dribble_vol == -1) {
_root.wetplay.PlaySFX("sfx_dribble", 3, 65536, 0);
}
dribble_vol = water_waves.length / 256;
if (dribble_vol > 1) {
dribble_vol = 1;
}
_root.wetplay.PlaySFX(null, 3, 65536, dribble_vol);
var _local4 = 0;
for ( ; _local4 < water_active.length ; _local4++) {
var _local5 = water_active[_local4];
var _local6 = (_local5.px * 2) + ((_local5.py * _local2) * 2);
var _local7 = ((_local5.px - 1) * 2) + ((_local5.py * _local2) * 2);
var _local8 = ((_local5.px + 1) * 2) + ((_local5.py * _local2) * 2);
var _local10 = (_local5.px * 2) + (((_local5.py + 1) * _local2) * 2);
var _local9 = (_local5.px * 2) + (((_local5.py - 1) * _local2) * 2);
if ((water[_local9 + 1] < 1) && (water[_local9 + 0] != 2)) {
_local5.py = _local5.py - 1;
} else if ((water[_local8 + 1] < water[_local7 + 1]) && ((water[_local8 + 1] < water[_local6 + 1]) && (water[_local8 + 0] != 2))) {
_local5.px = _local5.px + 1;
_local5.vx = 1;
} else if ((water[_local7 + 1] < water[_local8 + 1]) && ((water[_local7 + 1] < water[_local6 + 1]) && (water[_local7 + 0] != 2))) {
_local5.px = _local5.px - 1;
_local5.vx = -1;
} else if ((water[_local6 + 0] > 0) && (water[_local6 + 0] != 2)) {
if ((water[_local8 + 1] < 2) && (water[_local8 + 0] != 2)) {
_local5.px = _local5.px + 1;
_local5.vx = 1;
} else {
_local5.vx = -1;
}
} else if ((water[_local7 + 1] < 2) && (water[_local7 + 0] != 2)) {
_local5.px = _local5.px - 1;
_local5.vx = -1;
} else {
_local5.vx = 1;
}
_local6 = (_local5.px * 2) + ((_local5.py * _local2) * 2);
_local10 = (_local5.px * 2) + (((_local5.py + 1) * _local2) * 2);
if (_local5.py < 29) {
if (water[_local6 + 1] == 1) {
if (water[_local10 + 1] < 2) {
_local5.py = _local5.py + 1;
}
}
}
_local6 = (_local5.px * 2) + ((_local5.py * _local2) * 2);
water[_local6 + 1] = water[_local6 + 1] + 0.1;
if (water[_local6 + 1] > 0.95) {
water[_local6 + 1] = 1;
}
if (water[_local6 + 0] < 2) {
water[_local6 + 0] = _local5.vx;
}
if (water[_local6 + 1] == 0.1) {
add_wave(_local5.px, _local5.py);
}
draw_water(_local5.px, _local5.py);
}
var _local5 = water_seep;
var _local11 = -1;
var _local13 = 0;
for ( ; _local13 < 30 ; _local13++) {
var _local6 = (_local5.px * 2) + ((_local13 * _local2) * 2);
if (water[_local6 + 1] == 1) {
if (_local11 != -1) {
for ( ; water[_local11 + 1] == 0 ; _local13++) {
}
if (water[_local11 + 1] == 2) {
water[_local11 + 1] = 0;
water[_local11 + 0] = 2;
}
water[_local11 + 1] = water[_local11 + 1] + 0.1;
if (water[_local11 + 1] > 0.95) {
water[_local11 + 1] = 1;
}
add_wave(_local5.px, _local14);
draw_water(_local5.px, _local14);
_local11 = -1;
}
} else {
_local11 = _local6;
var _local14 = _local13;
}
}
_local5.px = _local5.px + 1;
if (_local5.px > 38) {
_local5.px = 1;
}
if ((frame % 2) == 0) {
_local4 = 0;
for ( ; _local4 < water_waves.length ; _local4++) {
_local5 = water_waves[_local4];
var _local16 = ((_local5.px + _local5.py) + (frame / 2)) % 4;
if (_local16 > 1) {
_local16 = 4 - _local16;
}
_local16 = 1 - _local16;
var _local15 = draw_water(_local5.px, _local5.py, _local16);
if (_local15 == 1) {
draw_water(_local5.px, _local5.py, 0);
water_waves.splice(_local4, 1);
_local4--;
}
}
}
}
function get_rank_score(best) {
scores_best_new = best;
scores_best_old = 0;
var _local4 = 0;
if (gameskill == "easy") {
var _local3 = scores_easy;
} else {
var _local3 = scores_hard;
}
if (_local3) {
var _local5 = 0;
for ( ; _local5 < 10 ; _local5++) {
if (_local3[_local5][2] == up.game_seed) {
scores_best_old = _local3[_local5][0];
if (_local3[_local5][0] < best) {
_local3[_local5][0] = best;
}
scores_story_total = scores_story_total + _local3[_local5][0];
}
if (_local3[_local5][0]) {
_local4 = _local4 + _local3[_local5][0];
}
}
}
return(_local4);
}
//ASSetPropFlags(_local1, null, 1);
var start_x = 100;
var start_y = 40;
var rnd_num = 0;
var rndg_num = 0;
}
Symbol 20492 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) {
up = _up;
_root.login = this;
}
function delegate(f, d, i) {
return(com.dynamicflash.utils.Delegate.create(this, f, d, i));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup() {
if (_root.skip_wetlogin) {
so_load();
_root.Login_Name = "me";
_root.Login_Done = true;
_root.Login_Session = 0;
up.state_next = "menu";
return(undefined);
}
user_php = ("http://" + _root.host) + "/swf/users.php";
viewYdest = 0;
viewY = 0;
frame = 0;
file_name = "register";
file_lines = register_lines;
dat.saves_reset_temps();
mc.removeMovieClip();
mc = gfx.create_clip(up.mc, null);
zmc = gfx.create_clip(mc, null);
omc = gfx.create_clip(mc, null, 400, 300);
mcs = new Array();
parallax = new Array();
var _local8 = 0;
var _local9 = null;
mcs_max = file_lines.length - 1;
var _local2 = 0;
for ( ; _local2 < mcs_max ; _local2++) {
var _local3 = file_lines[_local2];
var _local4 = _local3.split(",");
if (_local4[0] == "") {
_local4[0] = null;
}
if (_local4[1] == "") {
_local4[1] = null;
}
if (_local4[2] == "") {
_local4[2] = null;
}
_local9 = parallax[_local4[1]];
if (_local9 == null) {
_local9 = gfx.create_clip(zmc, null, 400, 300);
_local9.zoom = 1;
parallax[_local4[1]] = _local9;
_local9.cacheAsBitmap = true;
switch (_local4[1]) {
case "login" :
_local9._y = _local9._y - 600;
break;
case "signup" :
_local9._y = _local9._y + 600;
}
}
if (_local4[0] == "circ") {
mcs[_local2] = gfx.create_clip(_local9, null);
mcs[_local2].mc = gfx.add_clip(mcs[_local2], file_name, null);
mcs[_local2].mc.gotoAndStop(_local2 + 1);
mcs[_local2].cacheAsBitmap = true;
var _local5 = mcs[_local2].mc.getBounds(mcs[_local2]);
_local5.fx = (_local5.xMax + _local5.xMin) / 2;
_local5.fy = (_local5.yMax + _local5.yMin) / 2;
mcs[_local2]._x = mcs[_local2]._x + (_local5.fx - 400);
mcs[_local2].mc._x = mcs[_local2].mc._x - _local5.fx;
mcs[_local2]._y = mcs[_local2]._y + (_local5.fy - 300);
mcs[_local2].mc._y = mcs[_local2].mc._y - _local5.fy;
} else {
mcs[_local2] = gfx.add_clip(_local9, file_name, null);
var _local6 = mcs[_local2];
_local6._x = -400;
_local6._y = -300;
_local6.gotoAndStop(_local2 + 1);
_local6.cacheAsBitmap = true;
}
_local6.active = true;
_local6.onPress = delegate(press, _local6);
_local6.onRelease = delegate(click, _local6);
_local6.onRollOver = delegate(hover_on, _local6);
_local6.onRollOut = delegate(hover_off, _local6);
_local6.onReleaseOutside = delegate(hover_off, _local6);
_local6.tabEnabled = false;
_local6.useHandCursor = false;
var _local6 = mcs[_local2];
_local6.idx = _local2;
_local6.nam = _local4[0];
_local6.group = _local4[1];
_local6.nams = _local6.nam.split("_");
_local6._visible = true;
switch (_local6.nams[0]) {
case "but" :
_local6._alpha = 25;
if (_local6.nams[1] == "flag") {
_local6._visible = false;
}
_local6.useHandCursor = true;
break;
case "text" :
var _local5 = _local6.getBounds(_local9);
_local5.w = _local5.xMax - _local5.xMin;
_local5.h = _local5.yMax - _local5.yMin;
_local6.tf = gfx.create_text_html(_local9, null, _local5.xMin, _local5.yMin, _local5.w, _local5.h);
gfx.set_text_html(_local6.tf, 16, 0, _local6.nam);
break;
case "edit" :
_local5 = _local6.getBounds(_local9);
_local5.w = _local5.xMax - _local5.xMin;
_local5.h = _local5.yMax - _local5.yMin;
_local6.tf = gfx.create_text_edit(_local9, null, _local5.xMin, _local5.yMin, _local5.w, _local5.h);
_local6.tf.setNewTextFormat(gfx.create_text_format(40, -16777216));
_local6.tf.text = "me";
_local6.tf.onKillFocus = delegate(lostfocus, _local6);
}
mcs[_local6.nam] = _local6;
topmc = _local9;
}
mcs.but_skiplogin._visible = false;
mcs.edit_pass2.tf.password = true;
mcs.edit_pass3.tf.password = true;
mcs.edit_pass2.tf.text = "";
mcs.edit_pass3.tf.text = "";
thunk();
update();
if (_root.name != undefined) {
name_set(_root.name);
} else if (_root.ng_username != undefined) {
name_set(_root.ng_username);
} else if ((_root.kongregate_username != undefined) && (_root.kongregate_username.toLowerCase() != "guest")) {
name_set(_root.kongregate_username);
} else {
reroll();
}
info_show("");
info_unlock("");
so_load();
thunk();
}
function logindone() {
_root.wtf.logindone();
_root.wetplay.logindone();
}
function clean() {
if (_root.skip_wetlogin) {
logindone();
return(undefined);
}
if (!_root.swish) {
_root.swish.clean();
_root.swish = new Swish({style:"slide_left", mc:mc}).setup();
}
zmc._x = 0;
zmc._y = 0;
mc.removeMovieClip();
mc = null;
_root.Login_Name = name_text;
_root.Login_Done = true;
_root.Login_Session = session;
so_save();
autologin = false;
logindone();
}
function so_load() {
so = SharedObject.getLocal("wetlogin");
var _local2 = so.data;
if (_local2.version == VERSION) {
if (_local2.name) {
name_set(_local2.name);
}
if (_local2.session) {
session = _local2.session;
}
if (_local2.opt_chat) {
opt_chat = ((_local2.opt_chat == 1) ? true : false);
}
if (_local2.opt_sound) {
opt_sound = ((_local2.opt_sound == 1) ? true : false);
}
}
if (_root.S) {
session = _root.S;
}
if ((session != null) && ((session != 0) && (autologin))) {
do_session();
}
}
function so_save() {
var _local2 = so.data;
_local2.version = VERSION;
_local2.name = name_text;
_local2.session = session;
_local2.opt_chat = (opt_chat ? 1 : 2);
_local2.opt_sound = (opt_sound ? 1 : 2);
so.flush();
}
function hover_off(me) {
if (_root.popup | locked) {
return(undefined);
}
if (over == me) {
do_this(me, "off");
over = null;
}
}
function hover_on(me) {
if (_root.popup | locked) {
return(undefined);
}
if (over != me) {
do_this(me, "on");
over = me;
}
}
function press(me) {
if (_root.popup | locked) {
return(undefined);
}
do_this(me, "press");
}
function click(me) {
if (_root.popup | locked) {
return(undefined);
}
do_this(me, "click");
}
function lostfocus(nmc, me) {
if (_root.popup | locked) {
return(undefined);
}
switch (me.nam) {
case "edit_name1" :
case "edit_name2" :
case "edit_name3" :
name_set(me.tf.text);
}
}
function thunk() {
if (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 (_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 "back" :
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 "back" :
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) : "Unknown ERROR :)"));
info_unlock();
}
}
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;
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) : "Unknown 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) : "Unknown 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) : "Unknown 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 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_back,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_back,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 20493 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 20494 MovieClip [__Packages.BetaSignals] Frame 0
class BetaSignals
{
var up, score, replay_str, moves, game, score_last, sent_stamp, score_name, base, state, seed, ranksys, start_time, time, total;
function BetaSignals (_up) {
up = _up;
mochi.MochiServices.connect("0aeed3222e17602f");
mochi.MochiScores.setBoardID("9577013b01a164cf");
}
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._url.toLowerCase().indexOf("gamegarage") >= 0) && (_root.game_id && (_root.user_id))) {
var _local2 = new LoadVars();
_local2.game_id = _root.game_id;
_local2.user_id = _root.user_id;
_local2.sendAndLoad("http://www.gamegarage.co.uk/scripts/tracking.php", _local2, "POST");
}
}
function send_final(nam, num) {
if ((_root._url.toLowerCase().indexOf("gamegarage") >= 0) && (_root.game_id && (_root.user_id))) {
var _local4 = new LoadVars();
_local4.game_id = _root.game_id;
_local4.user_id = _root.user_id;
_local4.score = num;
_local4.alg = ((_root.game_id + _root.user_id) + num) + "a83l9xj";
_local4.sendAndLoad("http://www.gamegarage.co.uk/scripts/score.php", _local4, "POST");
}
if (_root.com_mindjolt_api) {
var _local5 = new LocalConnection();
_local5.send(_root.com_mindjolt_api, "submitScore", num);
}
if (_root.kongregateServices != undefined) {
if (game != "wetdike") {
_root.kongregateScores.setMode(nam);
}
_root.kongregateScores.submit(num);
}
mochi.MochiScores.submit(num, _root.Login_Name, this, "mochi_score_sent");
}
function send_spesh(nam, num) {
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 _local5 = new Date();
var _local4 = new LoadVars();
_local4.params = _root.pepere;
_local4.score = score;
_local4.sendAndLoad("record.php", _local4, "POST");
}
}
function send_score() {
var _local2 = new Date();
score_last = score;
sent_stamp = _local2.getTime();
send_spesh(score_name, score);
}
function send_score_check() {
if (score > score_last) {
send_score();
}
}
function send_score_wait_and_check() {
var _local2 = new Date();
if ((_local2.getTime() - sent_stamp) > (1000 * 60)) {
send_score_check();
}
}
function signal(_base, event, t, num) {
base = _base;
switch (base) {
case "diamonds" :
if (up.play.gamecomms) {
break;
}
switch (event) {
case "start" :
state = "start";
var _local6 = new Date();
seed = up.game_seed;
game = "diamonds.puz.3";
score_name = "Puzzle";
ranksys = "add";
if (up.play.gamemode == "endurance") {
game = "diamonds.end.3";
score_name = "Endurance";
ranksys = "max";
}
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.hud.points);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "high";
set_score_check(up.play.hud.points);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "won" :
state = "won";
set_score_check(up.play.hud.points);
moves = 0;
_root.comms.send_score();
send_score();
break;
case "end" :
if (state == "won") {
state = "end";
set_score_check(up.play.hud.points);
moves = 0;
send_final("high", score);
} else {
state = "end";
set_score_check(up.play.hud.points);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
}
break;
case "adventisland" :
switch (event) {
case "start" :
state = "start";
_local6 = new Date();
seed = up.game_seed;
game = "adventisland";
score_name = "Advent";
ranksys = "max";
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.isplay.advent.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "high";
set_score_check(up.isplay.advent.score);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "won" :
state = "won";
set_score_check(up.isplay.advent.score);
moves = 0;
_root.comms.send_score();
send_score();
break;
case "end" :
if (state == "won") {
state = "end";
set_score_check(up.isplay.advent.score);
moves = 0;
send_final("high", score);
} else {
state = "end";
set_score_check(up.isplay.advent.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
}
break;
case "batwsball" :
switch (event) {
case "start" :
state = "start";
_local6 = new Date();
seed = up.game_seed;
game = "batwsball";
score_name = "Endurance";
ranksys = "max";
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
score = Math.floor((up.play.tims + (up.play.timf / 25)) * 100);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "end" :
state = "end";
score = Math.floor((up.play.tims + (up.play.timf / 25)) * 100);
moves = 0;
_root.comms.send_score();
send_score();
if (score <= 400) {
break;
}
send_final("high", score);
}
break;
case "gojirama" :
switch (event) {
case "set" :
game = "gojirama";
score_name = "Endurance";
ranksys = "max";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
_local6 = new Date();
seed = up.game_seed;
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "high";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "romzom" :
switch (event) {
case "start" :
state = "start";
_local6 = new Date();
seed = up.game_seed;
game = "romzom";
score_name = "RomZom";
ranksys = "max";
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "ASUE1" :
switch (event) {
case "set" :
game = "ASUE1";
score_name = "ASUE1";
ranksys = "max";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
seed = up.game_seed;
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "EsTension" :
case "estension" :
switch (event) {
case "set" :
game = "estension";
score_name = "EsTension";
ranksys = "max";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
seed = up.game_seed;
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "update";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "end" :
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "BowWow" :
case "bowwow" :
switch (event) {
case "set" :
game = "bowwow";
score_name = "BowWow";
ranksys = "add";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
seed = up.game_seed;
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.datas = this;
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
time++;
state = "update";
set_score_check(up.play.score, up.play.get_replay_str(), up.play.get_replay_moves());
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "update";
set_score_check(up.play.score, up.play.get_replay_str(), up.play.get_replay_moves());
_root.comms.send_score_check();
send_score_check();
break;
case "won" :
state = "won";
set_score_check(up.play.score, up.play.get_replay_str(), up.play.get_replay_moves());
_root.comms.send_score();
send_score();
send_final("high", score);
break;
case "end" :
if (state == "won") {
break;
}
state = "end";
set_score_check(up.play.score, up.play.get_replay_str(), up.play.get_replay_moves());
_root.comms.send_score();
send_score();
send_final("high", score);
}
break;
case "WetBasement" :
case "WetBaseMent" :
switch (event) {
case "set" :
if (up.play.gameskill == "hard") {
game = "basement.4";
} else {
game = "basement.2";
}
score_name = "Race";
ranksys = "add";
seed = up.game_seed;
_root.comms.datas = this;
break;
case "start" :
state = "start";
_local6 = new Date();
start_time = _local6.getTime();
time = 0;
score = 0;
moves = 0;
replay_str = "";
_root.comms.send_score();
send_score();
send_start();
break;
case "update" :
state = "update";
time++;
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_wait_and_check();
send_score_wait_and_check();
break;
case "high" :
state = "high";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score_check();
send_score_check();
break;
case "won" :
state = "won";
set_score_check(up.play.score);
moves = 0;
total = up.play.get_rank_score(score);
_root.comms.send_score();
send_score();
if (up.play.gameskill == "hard") {
send_final("TotalHard", total);
} else {
send_final("Total", total);
}
break;
case "end" :
if (state != "won") {
state = "end";
set_score_check(up.play.score);
moves = 0;
_root.comms.send_score();
send_score();
send_final("total", 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);
}
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20495 MovieClip [__Packages.WetBaseMentLevel_level_06] Frame 0
class WetBaseMentLevel_level_06
{
function WetBaseMentLevel_level_06 () {
}
//ASSetPropFlags(_local1, null, 1);
var img_bak = "level_06_bak";
var img_for = "level_06_for";
var name = "level_06";
var col = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 0, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 239, 0,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
}
Symbol 20496 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 20497 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 20498 MovieClip [__Packages.Scalar] Frame 0
class Scalar
{
var ox, oy, mc, tf_stats, scale, t_old, t_new, t_ms, t_samples, rot, dx, dy, sx, sy, t_fps;
function Scalar (_ox, _oy) {
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;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function update() {
Stage.scaleMode = "noScale";
Stage.align = "TL";
rot = 0;
var _local2 = Stage.width / ox;
if (_root.maxw) {
if ((_local2 * ox) > _root.maxw) {
_local2 = _root.maxw / ox;
}
}
if (_root.maxh) {
if ((_local2 * oy) > _root.maxh) {
_local2 = _root.maxh / oy;
}
}
if ((_local2 * oy) > Stage.height) {
_local2 = Stage.height / oy;
}
_local2 = _local2 * scale;
dx = Math.floor((Stage.width - (_local2 * ox)) / 2);
dy = Math.floor((Stage.height - (_local2 * oy)) / 2);
sx = _local2 * 100;
sy = _local2 * 100;
t_samples++;
if (t_samples >= 10) {
t_old = t_new;
t_new = getTimer();
t_ms = (t_new - t_old) / t_samples;
t_fps = Math.floor(1000 / t_ms);
t_samples = 0;
if (scale < 1) {
var _local3 = (((" " + Math.floor(t_ms)) + "ms : ") + Math.floor(1000 / t_ms)) + "fps";
gfx.set_text_html(tf_stats, 13, 16777215, _local3);
}
}
if (scale < 1) {
tf_stats._visible = true;
} else {
tf_stats._visible = false;
}
}
function apply(tomc, bmmc) {
if (_root.scale == "no") {
tomc._rotation = rot;
tomc._x = 0;
tomc._y = 0;
tomc._xscale = 100;
tomc._yscale = 100;
return(undefined);
}
tomc._rotation = rot;
tomc._x = dx;
tomc._y = dy;
tomc._xscale = sx;
tomc._yscale = sy;
}
function onKeyDown() {
}
function onKeyUp() {
var _local3 = Key.getCode();
var _local2 = String.fromCharCode(Key.getAscii());
if (Selection.getCaretIndex() == -1) {
if ((_local2 == "+") || (_local2 == "=")) {
scale = scale * 1.1;
if (scale > 1) {
scale = 1;
}
} else if ((_local2 == "_") || (_local2 == "-")) {
scale = scale / 1.1;
if (scale < 0.1) {
scale = 0.1;
}
} else if (_local3 == 27) {
if (scale < 1) {
scale = 1;
} else {
scale = 0.1;
}
}
}
if (scale > _root.maxs) {
scale = _root.maxs;
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20499 MovieClip [__Packages.dbg] Frame 0
class dbg
{
function dbg () {
}
static function print(s) {
var _local3 = ("" + s).split("\"");
s = _local3.join("'");
getURL (("javascript:if(console){console.log(\"" + s) + "\");}", "_self");
}
static function dump(a) {
for (var _local3 in a) {
print((("" + _local3) + " = ") + a[_local3]);
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20500 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 20501 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 20502 MovieClip [__Packages.Loading] Frame 0
class Loading
{
var defuck, mc, mcanim, tf2, tf3, mcmochi, waitfordisplay, server, my_server, splash, splash_link, mcsplash, splash_count;
function Loading () {
setup();
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup() {
defuck = _root._highquality;
done = false;
mc = gfx.create_clip(_root, null);
gfx.clear(mc);
mc.style.fill = -16777216;
gfx.draw_box(mc, 0, 0, 0, 800, 600);
mcanim = gfx.create_clip(mc, null);
tf2 = gfx.create_text_html(mcanim, null, 25, 25, 750, 200);
gfx.dropshadow(mcanim, 2, 45, 0, 1, 4, 4, 2, 3);
tf3 = gfx.create_text_html(mcanim, null, 200, 250, 400, 300);
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);
mcmochi = gfx.create_clip(mc, null, (800 - ((600 * 800) / 640)) / 2, (600 - ((440 * 600) / 480)) / 2, (100 * 800) / 640, (100 * 600) / 480);
mcmochi.click = gfx.create_clip(mcmochi, null);
waitfordisplay = true;
mcmochi.dispad = gfx.create_clip(mcmochi, null);
mc.onEnterFrame = delegate(update, null);
server = "www";
my_server = false;
if ((_root._url.indexOf("http://www.wetgenes.local/") == 0) || ((_root._url.indexOf("http://wetgenes.local/") == 0) || ((_root._url.indexOf("http://www.host.local/") == 0) || ((_root._url.indexOf("http://host.local/") == 0) || ((_root._url.indexOf("http://www.local.host/") == 0) || ((_root._url.indexOf("http://local.host/") == 0) || (_root._url.indexOf("file:") == 0))))))) {
server = "local";
}
if ((_root._url.indexOf("http://wetdike.wetgenes.com") == 0) || ((_root._url.indexOf("http://www.wetgenes.com") == 0) || (_root._url.indexOf("http://wetgenes.com") == 0))) {
my_server = true;
}
_root.kidsafe = false;
if (server != "local") {
_root.wethidemochiads = false;
_root.skip_wetimport = false;
_root.skip_wetlogin = false;
_root.skip_wetscore = false;
}
var _local3 = _root._url.split("/");
_local3 = _local3[2].split(".");
_local3[0] = _local3[0].toLowerCase();
_local3[1] = _local3[1].toLowerCase();
_local3[2] = _local3[2].toLowerCase();
var _local4 = "";
if ((!_local3[3]) && (_local3[2])) {
_local4 = _local3[1];
} else if ((!_local3[2]) && (_local3[1])) {
_local4 = _local3[0];
}
switch (_local4) {
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 (brandead_link != "") {
splash = brandead_image;
splash_link = brandead_link;
}
if (splash) {
mcsplash = gfx.create_clip(mc, null, 400, 300, 220, 220);
mcsplash.splash = gfx.add_clip(mcsplash, splash, null, -300 / 2, -250 / 2);
mcsplash.onRelease = delegate(splashclick);
splash_count = 0;
} else if ((!_root.wethidemochiads) && (!_root.wethideloadingmochiads)) {
mochi_show();
}
}
function splashclick() {
if (splash_link) {
getURL (splash_link, "_blank");
}
}
function update() {
_root.stop();
_root.scalar.apply(mc);
if (splash) {
if (splash_count == (25 * 5)) {
splash_count++;
mcsplash._visible = false;
splash = null;
if ((!_root.wethidemochiads) && (!_root.wethideloadingmochiads)) {
mochi_show();
}
} else if (splash_count > (25 * 4.5)) {
splash_count++;
mcsplash._xscale = mcsplash._xscale * 0.75;
mcsplash._yscale = mcsplash._yscale * 0.75;
mcsplash._alpha = mcsplash._alpha * 0.75;
} else if (splash_count < (25 * 5)) {
splash_count++;
}
} else {
frame++;
}
loaded_percent = Math.floor((_root.getBytesLoaded() * 100) / _root.getBytesTotal());
if ((!_root.wethidemochiads) && (!_root.wethideloadingmochiads)) {
mcmochi._visible = true;
} else {
mcmochi._visible = false;
}
gfx.set_text_html(tf3, 100, 16777215, ("<p align=\"center\"><b>" + Math.floor(loaded_percent)) + "%</b></p>");
if ((loaded_percent >= 100) && ((!splash) && (!waitforit))) {
clean();
}
}
function clean() {
_root.swish.clean();
_root.swish = new Swish({style:"sqr_plode", mc:mc}).setup();
Stage.removeListener(this);
mc.removeMovieClip();
mc = null;
_root.gotoAndStop(2);
done = true;
_root._highquality = defuck;
}
function mochi_started() {
waitforit = true;
waitfordisplay = false;
}
function mochi_finished() {
waitforit = false;
}
function mochi_show() {
MochiAd.showInterLevelAd({id:"0aeed3222e17602f", res:"600x440", clip:mcmochi.dispad, ad_started:delegate(mochi_started), ad_finished:delegate(mochi_finished)});
}
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 waitforit = false;
}
Symbol 20503 MovieClip [__Packages.PlayAbout] Frame 0
class PlayAbout
{
var up, mcs, tfs, mc, done, steady, update_do;
function PlayAbout (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setbutt(m, n) {
m.onRollOver = delegate(over, n);
m.onRollOut = delegate(notover, n);
m.onReleaseOutside = delegate(notover, n);
m.onRelease = delegate(click, n);
}
function setup() {
_root.popup = this;
mcs = new Array();
tfs = new Array();
mc = gfx.create_clip(_root.mc_popup, null);
mc.cacheAsBitmap = true;
gfx.dropshadow(mc, 5, 45, 0, 1, 20, 20, 2, 3);
mc._y = 0;
mc.dx = 0;
mc._x = -800;
done = false;
steady = false;
gfx.clear(mc);
mc.style.out = -16777216;
mc.style.fill = -2147483648;
gfx.draw_box(mc, 0, 100 + 16, 0 + 16, 600 - 32, 600 - 32);
tfs[0] = gfx.create_text_html(mc, null, 150, 50, 500, 500);
var _local5 = "";
_local5 = _local5 + "<p align='center'><b>WetBaseMent</b> <font size='13'></font> v1.02 <font size='13'>(c) Shi+Kriss Daniels Apr 13 2008<br>";
_local5 = _local5 + "<a target='BOT' href='http://creativecommons.org/licenses/by-nd/2.5/'>Distributed under the CC Attribution-NoDerivs 2.5 Licence.</a>";
_local5 = _local5 + "</font></p>";
_local5 = _local5 + "<br>";
_local5 = _local5 + "<p><a target='_blank' href='http://www.WetGenes.com'>Click here to visit <b>www.WetGenes.com</b> and play more free online games.</a></p>";
tfs[0].multiline = true;
tfs[0].wordWrap = true;
tfs[0].html = true;
tfs[0].selectable = false;
gfx.set_text_html(tfs[0], 22, 16777215, _local5);
mcs[0] = gfx.create_clip(mc, null, 0, 570 - ((220 * 800) / 640), (100 * 800) / 640, (100 * 800) / 640);
setbutt(mcs[0], "wetcoma");
mcs[2] = gfx.add_clip(mc, "auth_kriss", null, 300, (570 - ((220 * 800) / 640)) - 100, 100, 100);
setbutt(mcs[2], "kriss");
mcs[3] = gfx.add_clip(mc, "auth_shi", null, 400, (570 - ((220 * 800) / 640)) - 100, 100, 100);
setbutt(mcs[3], "shi");
_root.bmc.clear_loading();
_root.bmc.remember("wetcoma", bmcache.create_url, {url:"http://swf.wetgenes.com/wavys/wetcoma.png", bmpw:640, bmph:220, bmpt:false, hx:0, hy:0});
mcs[1] = null;
show_loaded();
thunk();
update_do = delegate(update, null);
MainStatic.update_add(_root.updates, update_do);
_root.poker.clear_clicks();
}
function clean() {
if (_root.popup != this) {
return(undefined);
}
MainStatic.update_remove(_root.updates, update_do);
update_do = null;
mc.removeMovieClip();
_root.popup = null;
Mouse.removeListener(this);
_root.poker.clear_clicks();
}
function show_loaded() {
if (mcs[1] == null) {
if (_root.bmc.isloaded("wetcoma")) {
mcs[1] = _root.bmc.create(mcs[0], "wetcoma", null);
}
}
}
function thunk() {
}
function over(s) {
switch (s) {
case "wetcoma" :
_root.poker.ShowFloat("Read this whitarded comic and less of the same at <b>4lfa.com</b> : <font size='13'>Helping to make tomorrow seem more like yesterday.</font>", 25 * 10);
break;
case "kriss" :
_root.poker.ShowFloat("Kriss made teh top secret codes.<br>Click to see his site.", 25 * 10);
break;
case "shi" :
_root.poker.ShowFloat("Shi made the super duper art.<br>Click to see her site.", 25 * 10);
}
}
function notover(s) {
_root.poker.ShowFloat(null, 0);
}
function click(s) {
switch (s) {
case "wetcoma" :
getURL ("http://4lfa.com", "BOT");
break;
case "kriss" :
getURL ("http://XIXs.com", "BOT");
break;
case "shi" :
getURL ("http://esyou.com", "BOT");
}
}
function update() {
show_loaded();
if ((_root.popup == this) && (_root.poker.anykey)) {
if (steady) {
done = true;
mc.dx = _root.scalar.ox;
}
}
if ((_root.popup != this) || (_root.pause)) {
return(undefined);
}
mc._x = mc._x + ((mc.dx - mc._x) / 4);
if (((mc._x - mc.dx) * (mc._x - mc.dx)) < (16 * 16)) {
steady = true;
if (done) {
clean();
}
} else {
steady = false;
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20504 MovieClip [__Packages.WetBaseMentLevel_level_03] Frame 0
class WetBaseMentLevel_level_03
{
function WetBaseMentLevel_level_03 () {
}
//ASSetPropFlags(_local1, null, 1);
var img_bak = "level_03_bak";
var img_for = "level_03_for";
var name = "level_03";
var col = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 0, 253, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 17, 238, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 254, 0, 17, 0, 0, 0, 0, 17, 17, 17, 239, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 17, 0, 254, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 1, 1, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 0, 0, 0, 1, 1, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 250, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
}
Symbol 20505 MovieClip [__Packages.WetBaseMentLevel_level_07] Frame 0
class WetBaseMentLevel_level_07
{
function WetBaseMentLevel_level_07 () {
}
//ASSetPropFlags(_local1, null, 1);
var img_bak = "level_07_bak";
var img_for = "level_07_for";
var name = "level_07";
var col = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 0, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
}
Symbol 20506 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local2 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local2);
var _local3 = options.clip;
var _local4 = 11000;
var _local5 = options.ad_timeout;
delete options.ad_timeout;
var _local6 = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local7 = _local3._mochiad;
_local7.onUnload = function () {
options.ad_finished();
};
var _local8 = _getRes(options);
var _local9 = _local8[0];
var _local10 = _local8[1];
_local7._x = _local9 * 0.5;
_local7._y = _local10 * 0.5;
var chk = _local7.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local9 * -0.5;
chk._y = _local10 * -0.5;
var _local11 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local11._x = 10;
_local11._y = _local10 - 20;
var _local12 = options.color;
delete options.color;
var _local13 = options.background;
delete options.background;
var _local14 = options.outline;
delete options.outline;
var _local15 = _local11.createEmptyMovieClip("_outline", 1);
_local15.beginFill(_local13);
_local15.moveTo(0, 0);
_local15.lineTo(_local9 - 20, 0);
_local15.lineTo(_local9 - 20, 10);
_local15.lineTo(0, 10);
_local15.lineTo(0, 0);
_local15.endFill();
var _local16 = _local11.createEmptyMovieClip("_inside", 2);
_local16.beginFill(_local12);
_local16.moveTo(0, 0);
_local16.lineTo(_local9 - 20, 0);
_local16.lineTo(_local9 - 20, 10);
_local16.lineTo(0, 10);
_local16.lineTo(0, 0);
_local16.endFill();
_local16._xscale = 0;
var _local17 = _local11.createEmptyMovieClip("_outline", 3);
_local17.lineStyle(0, _local14, 100);
_local17.moveTo(0, 0);
_local17.lineTo(_local9 - 20, 0);
_local17.lineTo(_local9 - 20, 10);
_local17.lineTo(0, 10);
_local17.lineTo(0, 0);
chk.ad_msec = _local4;
chk.ad_timeout = _local5;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = _local6;
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;
}
};
_local7.lc.adLoaded = function (width, height) {
};
_local7.lc.adjustProgress = function (msec) {
var _local3 = this.mc._mochiad_wait;
_local3.server_control = true;
_local3.started = getTimer();
_local3.ad_msec = msec;
};
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;
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) {
_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 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();
}};
options = _parseOptions(options, _local2);
var _local3 = options.clip;
var _local4 = 11000;
var _local5 = options.ad_timeout;
delete options.ad_timeout;
var _local6 = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local7 = _local3._mochiad;
_local7.onUnload = function () {
options.ad_finished();
};
var _local8 = _getRes(options);
var _local9 = _local8[0];
var _local10 = _local8[1];
_local7._x = _local9 * 0.5;
_local7._y = _local10 * 0.5;
var chk = _local7.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local4;
chk.ad_timeout = _local5;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = _local6;
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;
}
};
_local7.lc.adLoaded = function (width, height) {
};
_local7.lc.adjustProgress = function (msec) {
var _local3 = this.mc._mochiad_wait;
_local3.server_control = true;
_local3.started = getTimer();
_local3.ad_msec = msec - 250;
};
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) {
_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 showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(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 _loadCommunicator(options) {
var _local3 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local3);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local4 = options.clip;
var _local5 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local4[_local5]) {
return(_local4[_local5].lc);
}
var _local6 = options.com_server + options.id;
_allowDomains(_local6);
delete options.id;
delete options.com_server;
var _local7 = options.depth;
delete options.depth;
var _local8 = _local4.createEmptyMovieClip(_local5, _local7);
var _local9 = _local8.createEmptyMovieClip("_mochiad_com", 1);
for (var k in options) {
_local9[k] = options[k];
}
var _local10 = new LocalConnection();
var _local11 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local10.mc = _local8;
_local10.name = _local11;
_local10.allowDomain = function (d) {
return(true);
};
_local10.allowInsecureDomain = _local10.allowDomain;
_local10.connect(_local11);
_local8.lc = _local10;
_local9.lc = _local11;
_local10._id = 0;
_local10._queue = [];
_local10.rpcResult = function (cb_arg) {
var _local3 = _global.parseInt(cb_arg);
var _local4 = this._callbacks[_local3];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local3];
var _local5 = [];
var _local6 = 2;
for ( ; _local6 < _local4.length ; _local6++) {
_local5.push(_local4[_local6]);
}
var _local7 = 1;
for ( ; _local7 < arguments.length ; _local7++) {
_local5.push(arguments[_local7]);
}
var _local8 = _local4[1];
var _local9 = _local4[0];
if (_local9 && (typeof(_local8) == "string")) {
_local8 = _local9[_local8];
}
if (_local8) {
_local8.apply(_local9, _local5);
}
};
_local10._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var _local4 = this.doSend;
var _local5 = 0;
for ( ; _local5 < _local3.length ; _local5++) {
var _local6 = _local3[_local5];
_local4.apply(this, _local6);
}
};
_local10.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local5 = [];
var _local6 = 0;
for ( ; _local6 < arguments.length ; _local6++) {
_local5.push(arguments[_local6]);
}
this._queue.push(_local5);
return(undefined);
}
this._id = this._id + 1;
var _local7 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local7] = [cbobj, cbfn];
var _local8 = new LocalConnection();
var _local9 = _local8.send(this._endpoint, "rpc", _local7, args);
};
_local10._callbacks = {};
_local10._callbacks[0] = [_local10, "_didConnect"];
_local9.st = getTimer();
_local9.loadMovie(_local6 + ".swf", "POST");
return(_local10);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local5 = _loadCommunicator({id:options.id});
if (!_local5) {
return(false);
}
var _local6 = ["fetchHighScores", options];
_local5.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local5 = _loadCommunicator({id:options.id});
if (!_local5) {
return(false);
}
var _local6 = ["sendHighScore", options];
_local5.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
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);
}
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]);
}
}
return(_local4);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20507 MovieClip [__Packages.WetBaseMentChoose] Frame 0
class WetBaseMentChoose
{
var up, mc, frame, mc_levels, mc_tard, minion, mc_skill;
function WetBaseMentChoose (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function days_to_string(days) {
var _local3 = new Date();
_local3.setTime((((days * 24) * 60) * 60) * 1000);
var _local4 = alt.Sprintf.format("%04d%02d%02d", _local3.getFullYear(), _local3.getMonth() + 1, _local3.getDate());
return(_local4);
}
function setup() {
mc = gfx.create_clip(up.mc, null);
frame = 0;
mc_levels = [];
var _local3 = 100;
var _local4 = 100 - 20;
var _local2 = 1;
for ( ; _local2 <= 10 ; _local2++) {
mc_levels[_local2] = gfx.create_clip(mc, null, _local3, _local4, 80, 80);
mc_levels[_local2].onRollOver = delegate(mc_over, mc_levels[_local2]);
mc_levels[_local2].onRollOut = delegate(mc_out, mc_levels[_local2]);
mc_levels[_local2].onRelease = delegate(mc_click, mc_levels[_local2]);
mc_levels[_local2].id = _local2;
gfx.add_clip(mc_levels[_local2], up.levels[_local2].img_bak, null, -80, -60, 20, 20);
mc_levels[_local2].tf = gfx.create_text_html(mc_levels[_local2], null, -100, 60, 200, 100);
gfx.set_text_html(mc_levels[_local2].tf, 24, 16777215, ("<p align=\"center\">" + up.levels[_local2].name) + "</p>");
_local3 = _local3 + 200;
if (_local3 > 700) {
_local3 = 100;
_local4 = _local4 + 150;
}
}
var _local5 = gfx.create_clip(mc, null, 800 - 200, 600 - 100, 150, 150);
mc_tard = _local5;
_local5.id = "tard";
_local5.onRollOver = delegate(mc_over, _local5);
_local5.onRollOut = delegate(mc_out, _local5);
_local5.onRelease = delegate(mc_click, _local5);
minion = new Minion({mc:_local5});
minion.setup(up.tards[up.tard_idx].img1, 50, 100);
_local5.tf = gfx.create_text_html(_local5, 2, -100, 0, 200, 100);
gfx.set_text_html(_local5.tf, 24, 16777215, ("<p align=\"center\">" + up.tards[up.tard_idx].name) + "</p>");
_local5 = gfx.create_clip(mc, null, 100, 600 - 100, 100, 100);
mc_skill = _local5;
_local5.id = "skill";
_local5.onRollOver = delegate(mc_over, _local5);
_local5.onRollOut = delegate(mc_out, _local5);
_local5.onRelease = delegate(mc_click, _local5);
_local5.tf = gfx.create_text_html(_local5, 2, -100, 0, 400, 100);
gfx.set_text_html(_local5.tf, 36, 16777215, ("<p align=\"center\">Difficulty : " + up.play.gameskill) + "</p>");
_local2 = 1;
for ( ; _local2 <= 10 ; _local2++) {
var _local6 = up.levels[_local2];
gfx.set_text_html(mc.date, 14, 16777215, ("<p align=\"center\">" + days_to_string(_local6.game_seed)) + "</p>");
gfx.set_text_html(mc.score, 16, 16777215, ("<p align=\"center\">" + (11500 + _local2)) + "</p>");
}
}
function clean() {
mc_out(null);
mc.removeMovieClip();
}
function mc_over(t) {
if (_root.popup) {
return(undefined);
}
if (t.id == "skill") {
_root.poker.ShowFloat("Click to adjust the game skill you wish to play at.", 25 * 10);
} else if (t.id == "tard") {
_root.poker.ShowFloat("Click to change your player avatar. You will be able to choose your own in the future: Visit minions.WetGenes.com for the avatar editor.", 25 * 10);
} else {
var _local3 = up.levels[Number(t.id)];
_root.poker.ShowFloat(("Click to play " + _local3.name) + ". You can use arrow keys or the mouse to move around the level.", 25 * 10);
}
}
function mc_out(t) {
_root.poker.ShowFloat(null, 0);
}
function mc_click(t) {
if (_root.popup) {
return(undefined);
}
if (t.id == "skill") {
if (up.play.gameskill == "easy") {
up.play.gameskill = "hard";
} else if (up.play.gameskill == "hard") {
up.play.gameskill = "easy";
}
gfx.set_text_html(mc_skill.tf, 36, 16777215, ("<p align=\"center\">Difficulty : " + up.play.gameskill) + "</p>");
} else if (t.id == "tard") {
up.tard_idx++;
if (up.tard_idx >= up.tards.length) {
up.tard_idx = 1;
}
minion.setsoul(up.tards[up.tard_idx].img1);
gfx.set_text_html(mc_tard.tf, 24, 16777215, ("<p align=\"center\">" + up.tards[up.tard_idx].name) + "</p>");
} else {
up.level_idx = t.id;
up.state_next = "play";
}
}
function update() {
frame++;
var _local2 = Math.floor(frame / 6) % 6;
minion.display("idle", _local2);
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
}
Symbol 20508 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 = "WetBaseMent";
v.site = "";
v.number = "1.02";
v.stamp = "Apr 13 2008";
v.stamp_number = "20080413";
v.root = "";
System.security.allowDomain(_root._url);
System.security.allowDomain(_root._url.split("/")[2]);
System.security.allowDomain("data.wetgenes.com");
System.security.allowDomain("s3.wetgenes.com");
System.security.allowDomain("www.wetgenes.com");
System.security.allowDomain("swf.wetgenes.com");
System.security.allowDomain("www.wetgenes.local");
System.security.allowDomain("swf.wetgenes.local");
System.security.allowDomain("*");
mc = gfx.create_clip(_root, (16384 + 32) - 17);
mc2 = gfx.create_clip(mc, null);
mc_import = gfx.create_clip(_root, (16384 + 32) - 18);
mc.onEnterFrame = delegate(update, null);
gfx.dropshadow(mc2, 2, 45, 0, 1, 4, 4, 2, 3);
tf = gfx.create_text_html(mc2, null, 0, 0, 400, 300);
if (_root.host == "swf.wetgenes.local") {
import_swf_name = "http://swf.wetgenes.local/swf/WTF_import.swf";
} else {
import_swf_name = "http://swf.wetgenes.com/swf/WTF_import.swf";
}
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__("b751af38", _root, 10301);
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function get_width() {
if (scale_800x600) {
return(800);
}
return(Stage.width);
}
function get_height() {
if (scale_800x600) {
return(600);
}
return(Stage.height);
}
function logindone() {
if (!donelogindone) {
if (!_root.skip_wetimport) {
if (_root.login.opt_chat) {
mc_import.loadMovie(import_swf_name);
loaded_import = true;
}
}
donelogindone = true;
} else if (!_root.skip_wetimport) {
if (_root.login.opt_chat) {
if (!loaded_import) {
mc_import.loadMovie(import_swf_name);
loaded_import = true;
}
}
}
}
function onMouseDown() {
if (display) {
ontarget = true;
}
}
function onMouseUp() {
if (display && (ontarget)) {
getURL ("http://www.WetGenes.com", "_blank");
}
ontarget = false;
}
function onRelease() {
}
function update() {
if (scale_800x600) {
_root.scalar.apply(mc);
}
var _local3 = false;
var _local4 = false;
if ((mc._xmouse > (get_width() - 32)) && ((mc._ymouse > (get_height() - 16)) && ((mc._xmouse <= get_width()) && (mc._ymouse <= get_height())))) {
_local4 = true;
}
if (pop_state || (pop_disable)) {
if (_local4) {
if (!pop_disable) {
_local3 = true;
}
} else {
pop_disable = false;
}
} else if (_local4) {
if (_root.poker.poke_now) {
pop_disable = true;
} else {
_local3 = true;
}
}
if (pop_delay > 0) {
pop_delay--;
}
if (!_local3) {
pop_delay = 10;
}
if (pop_delay == 0) {
pop_state = true;
} else {
pop_state = false;
}
if (pop_state != display) {
display = pop_state;
if (display) {
var _local2 = "";
_local2 = _local2 + "<p align='right'>WetBaseMent 1.02 (c) Shi+Kriss Daniels Apr 13 2008</p>";
_local2 = _local2 + "<p align='right'>Distributed under the CC Attribution-NoDerivs 2.5 Licence.</p>";
_local2 = _local2 + "<p align='right'>http://creativecommons.org/licenses/by-nd/2.5/</p>";
_local2 = _local2 + "<p align='right'>Click the mouse button right now to visit</p>";
_local2 = _local2 + "<p align='right'>www.WetGenes.com for more of everything.</p>";
gfx.set_text_html(tf, 13, 16777215, _local2);
} else {
var _local2 = "";
_local2 = _local2 + "<p align='right'>YAY</p>";
gfx.set_text_html(tf, 13, 16777215, _local2);
}
}
if (display) {
tf._x = (get_width() - 400) - 24;
tf._y = (get_height() - 100) - 4;
mc2._alpha = 100;
} else {
tf._x = (get_width() - 400) - 2;
tf._y = (get_height() - 15) - 4;
mc2._alpha = 25;
}
if (show_nowplaying) {
var _local5 = _root.wetplay.wetplayMP3.disp_title;
var _local6 = _root.wetplay.wetplayMP3.disp_creator;
var _local7 = _root.wetplay.wetplayMP3.disp_info;
sc.w = get_width() - 45;
if ((_local5 != "") && ((_local6 != "") && ((_local5 != last_track) || (_local6 != last_artist)))) {
var _local2 = ((("Now Playing <b>" + _local5) + "</b> by <b>") + _local6) + "</b>. Click here to know more.";
sc.next = {url:_local7, txt:_local2, target:"_blank"};
last_track = _local5;
last_artist = _local6;
}
sc.update();
}
}
function __com_mochibot__(swfid, mc, lv) {
var _local12 = "__mochibot__";
var _local13 = "mochibot.com";
var _local6 = (_global ? (_global) : (_level0._root));
if (_local6[_local12 + swfid]) {
return(_local6[_local12 + swfid]);
}
var _local7 = System.security;
var _local5 = mc._root.getSWFVersion;
var _local8 = (_local5 ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!_local7) {
_local7 = {};
}
var _local9 = _local7.sandboxType;
if (_local9 == "localWithFile") {
return(null);
}
_local5 = _local7.allowDomain;
if (_local5) {
_local7.allowDomain(_local13);
}
_local5 = _local7.allowInsecureDomain;
if (_local5) {
_local7.allowInsecureDomain(_local13);
}
var _local10 = ((((((((((("http://" + _local13) + "/my/core.swf?mv=5&fv=") + _local8) + "&v=") + _global.escape(getVersion())) + "&swfid=") + _global.escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (_local9 ? ("&sb=" + _local9) : "");
lv = ((_local8 > 6) ? (mc.getNextHighestDepth()) : ((_local6[_local12 + "level"] ? (_local6[_local12 + "level"] + 1) : (lv))));
_local6[_local12 + "level"] = lv;
var _local11 = mc.createEmptyMovieClip(_local12 + swfid, lv);
_local11.loadMovie(_local10);
return(_local11);
}
//ASSetPropFlags(_local1, null, 1);
var corner = "BR";
var ontarget = false;
var donelogindone = false;
var loaded_import = false;
var pop_state = false;
var pop_disable = false;
var pop_delay = 0;
}
Symbol 20509 MovieClip [__Packages.WetBaseMentLevel_level_10] Frame 0
class WetBaseMentLevel_level_10
{
function WetBaseMentLevel_level_10 () {
}
//ASSetPropFlags(_local1, null, 1);
var img_bak = "level_10_bak";
var img_for = "level_10_for";
var name = "level_10";
var col = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 0, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 17, 17, 17, 17, 17, 236, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 239, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 1, 1, 0, 0, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 1, 1, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 17, 0, 254, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 0, 0, 0, 0, 0, 17, 17, 17, 17, 0, 254, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 0, 254, 0, 1, 1, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 0, 0, 254, 0, 0, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 254, 0, 17, 17, 17, 17, 0, 0, 0, 1, 1, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 17, 0, 0, 0, 0, 1, 1, 0, 0, 17, 0, 17, 17, 17, 17, 0, 0, 0, 254, 0, 17, 17, 17, 17, 17, 17, 17, 0, 254, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 0, 17, 0, 0, 0, 0, 1, 1, 0, 0, 17, 0, 17, 17, 17, 17, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 0, 17, 0, 0, 0, 0, 1, 1, 0, 0, 17, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 0, 254, 0, 1, 1, 0, 0, 17, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 0, 0, 0, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
}
Symbol 20510 MovieClip [__Packages.WetBaseMentTitle] Frame 0
class WetBaseMentTitle
{
var state_last, state, state_next, up, dat, score, mc_base, snapmc, state_split, state_file, state_room, file_name, file_lines, mc, mcs, parallax, mcs_max, over, talky_mc, talky_tf, talky_state;
function WetBaseMentTitle (_up, _state, _play) {
state_last = null;
state = null;
state_next = null;
up = _up;
state_next = _state;
dat = new WetBaseMentTitleDat(this, _play);
score = 0;
mc_base = gfx.create_clip(up.mc, null);
talky_setup();
snapmc = gfx.create_clip(up.mc, null);
}
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 update_display() {
dat.update_display();
}
function setup() {
if (state_next != null) {
state_last = state;
state = state_next;
state_next = null;
}
state_split = state.split("_");
state_file = state_split[0];
state_room = state_split[1];
switch (state_file) {
case "title" :
preload = false;
file_name = "title";
file_lines = title_lines;
break;
case "levels" :
preload = false;
file_name = "levels";
file_lines = levels_lines;
break;
case "end1" :
preload = false;
file_name = "end1";
file_lines = end1_lines;
break;
case "end2" :
preload = false;
file_name = "end2";
file_lines = end2_lines;
break;
case "end3" :
preload = false;
file_name = "end3";
file_lines = end3_lines;
break;
case "zoo" :
preload = false;
file_name = "zoo";
file_lines = zoo_lines;
}
dat.setup();
dat.saves_reset_temps();
if (!preload) {
mc.removeMovieClip();
mc = gfx.create_clip(mc_base, null);
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;
}
var _local10 = _local4[0];
var _local11 = _local10.split("_");
if (!preload) {
if (_local4[1] || (_local9 == null)) {
_local9 = gfx.create_clip(mc, null, 400, 300);
if (_local4[1]) {
_local9.zoom = _local4[1] / 100;
} else {
_local9.zoom = 1;
}
parallax[_local8++] = _local9;
}
}
if ((_local11[2] != null) && (_local11[2] != "1")) {
} else if (!preload) {
if ((_local10 == "cage1") || (_local10 == "minion1")) {
var _local12 = gfx.create_clip(_local9, null, 0, 0);
mcs[_local2] = gfx.add_clip(_local12, file_name, null, -400, -300);
mcs[_local2].twistme = _local12;
} else {
mcs[_local2] = gfx.add_clip(_local9, file_name, null, -400, -300);
}
mcs[_local2].gotoAndStop(_local2 + 1);
mcs[_local2].baseframe = _local2 + 1;
mcs[_local2].active = true;
mcs[_local2].cacheAsBitmap = true;
mcs[_local2].onRelease = delegate(click, mcs[_local2]);
mcs[_local2].onRollOver = delegate(hover_on, mcs[_local2]);
mcs[_local2].onRollOut = delegate(hover_off, mcs[_local2]);
mcs[_local2].onReleaseOutside = delegate(hover_off, mcs[_local2]);
mcs[_local2].tabEnabled = false;
}
mcs[_local2].idx = _local2;
mcs[_local2].nam = _local10;
mcs[_local2].nams = _local11;
mcs[_local2]._visible = false;
mcs[_local4[0]] = mcs[_local2];
}
update_display();
Mouse.addListener(this);
update();
if (up.swish) {
up.swish.setup(mc_base, snapmc);
}
}
function clean() {
dat.clean();
Mouse.removeListener(this);
mc.removeMovieClip();
mc = null;
}
function onMouseDown() {
if (_root.popup) {
return(undefined);
}
talky_hide();
}
function onMouseUp() {
if (_root.popup) {
return(undefined);
}
}
function hover_off(me) {
if (_root.popup) {
return(undefined);
}
if (over == me) {
dat.do_this(me, "off");
over = null;
}
}
function hover_on(me) {
if (_root.popup) {
return(undefined);
}
if (over != me) {
dat.do_this(me, "on");
over = me;
}
}
function click(me) {
if (_root.popup) {
return(undefined);
}
dat.do_this(me, "click");
}
function update() {
if (_root.popup) {
return(undefined);
}
if (up.swish) {
if (!up.swish.update()) {
up.swish.clean();
up.swish = null;
}
}
if (state_next != null) {
if (state) {
clean();
}
state_last = state;
state = state_next;
state_next = null;
if (state) {
setup();
}
}
dat.update();
var _local8 = mc._xmouse;
var _local9 = mc._ymouse;
_local8 = (_local8 - 400) / 400;
_local9 = (_local9 - 300) / 300;
if (_local8 < -1) {
_local8 = -1;
}
if (_local8 > 1) {
_local8 = 1;
}
if (_local9 < -1) {
_local9 = -1;
}
if (_local9 > 1) {
_local9 = 1;
}
var _local3 = 0;
for ( ; _local3 < parallax.length ; _local3++) {
var _local2 = parallax[_local3];
_local2._xscale = _local2.zoom * 100;
_local2._yscale = _local2._xscale;
_local2._x = 400 + ((-400 * (_local2.zoom - 1)) * _local8);
_local2._y = 300 + ((-300 * (_local2.zoom - 1)) * _local9);
}
talky_update();
}
function do_str(str) {
up.do_str(str);
}
function talky_setup() {
talky_mc = gfx.create_clip(up.mc, null, 400, 200);
talky_tf = gfx.create_text_html(talky_mc, null, -250, -150, 500, 300);
talky_hiden();
}
function talky_hiden() {
talky_mc._xscale = 0;
talky_mc._yscale = 0;
talky_state = "hiden";
talky_mc._visible = false;
}
function talky_display(str) {
talky_mc._visible = true;
talky_mc._xscale = 0;
talky_mc._yscale = 0;
talky_state = "show";
gfx.set_text_html(talky_tf, 32, 0, ("<b>" + str) + "</b>");
gfx.clear(talky_mc);
talky_mc.style.out = -1056964609;
talky_mc.style.fill = -1056964609;
talky_tf._x = -(talky_tf.textWidth / 2);
talky_tf._y = -(talky_tf.textHeight / 2);
talky_mc.topy = 50 - ((talky_tf._y - 16) * 1);
talky_mc.midy = 50 - ((talky_tf._y - 16) * 2);
talky_mc.boty = 50 - ((talky_tf._y - 16) * 3);
talky_mc._y = talky_mc.topy;
gfx.draw_rounded_rectangle(talky_mc, 16, 16, 0, (-(talky_tf.textWidth / 2)) - 24, (-(talky_tf.textHeight / 2)) - 16, talky_tf.textWidth + 48, (talky_tf.textHeight + 32) + 8);
}
function talky_update() {
if (talky_state == "show") {
talky_mc._xscale = talky_mc._xscale + 20;
talky_mc._yscale = talky_mc._yscale + 20;
if (talky_mc._xscale >= 100) {
talky_mc._xscale = 100;
talky_mc._yscale = 100;
talky_state = "shown";
}
} else if (talky_state == "hide") {
talky_mc._xscale = talky_mc._xscale - 20;
talky_mc._yscale = talky_mc._yscale - 20;
if (talky_mc._xscale <= 0) {
talky_hiden();
}
}
if (mc._ymouse > talky_mc.midy) {
talky_mc._y = talky_mc.topy;
} else {
talky_mc._y = talky_mc.boty;
}
}
function talky_hide() {
if (talky_state != "hiden") {
talky_state = "hide";
}
}
function talky_clean() {
talky_mc.removeMovieClip();
}
//ASSetPropFlags(_local1, null, 1);
var saves = null;
var rnd_num = 0;
var preload = false;
static var title_lines = ["background", "wetgenes_under", "wetgenes_over", "race_under", "race_over", "race_over_1", "race_over_2", "race_over_3", "race_over_4", "race_over_5", "race_over_6", "race_over_7", "race_over_8", "race_over_9", "race_over_10", "story_under", "story_over", "story_over_1", "story_over_2", "story_over_3", "story_over_4", "story_over_5", "story_over_6", "story_over_7", "story_over_8", "story_over_9", "story_over_10", "code_under", "code_over", "about_under", "about_over", "shop_under", "shop_over", "ignoreme", "whore", "digg", "stumble", ""];
static var levels_lines = ["background", "level01", "level02", "level03", "level04", "level05", "level06", "level07", "level08", "level09", "level10", "mainmenu", "easy", "hard", "minion", "overlay", ""];
static var end1_lines = ["background", "minion1", "overground", ""];
static var end2_lines = ["background", "minion1", "overground", ""];
static var end3_lines = ["background", "minion1", "cage1", "overground", ""];
static var zoo_lines = ["background", "floater_back", "floater_avatar", "floater_start", ""];
}
Symbol 20511 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 20512 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 20513 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 20514 MovieClip [__Packages.PlayHigh] Frame 0
class PlayHigh
{
var up, play, rank, high, last, state, filter, retry, mcs, tfs, mc, do_exit, not_do_exit, done, steady, do_mochi, mc_top, tf_top, mc_text, tf_text, mc_whore, mc_res, mc_topunder, tf_topunder, mc_topsub, update_do, tf_topsub;
function PlayHigh (_up, stropts) {
up = _up;
play = up.play;
hide_last = false;
if (stropts) {
var _local6 = stropts.split(",");
var _local4 = 0;
for ( ; _local4 < _local6.length ; _local4++) {
var _local5 = _local6[_local4].split("=");
switch (_local5[0]) {
case "hide_last" :
hide_last = true;
break;
case "results" :
results = _local5[1];
}
}
}
rank = new_reset_scores();
high = new_reset_scores();
last = new_reset_scores();
state = "high";
filter = "global";
if (up.high_state) {
state = up.high_state;
}
if (up.high_filter) {
filter = up.high_filter;
}
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function new_reset_scores() {
var _local2 = new Array();
var _local3 = 0;
for ( ; _local3 < 10 ; _local3++) {
_local2[_local3] = "0;Fetching...";
}
return(_local2);
}
function days_to_string(days) {
var _local3 = new Date();
_local3.setTime((((days * 24) * 60) * 60) * 1000);
var _local4 = alt.Sprintf.format("%04d%02d%02d", _local3.getFullYear(), _local3.getMonth() + 1, _local3.getDate());
return(_local4);
}
function setup(usestate) {
if (_root.skip_wetlogin) {
return(undefined);
}
retry = false;
if (_root.signals.ranksys == "max") {
hide_last = true;
}
if ((state != "high") && ((state != "rank") && (state != "last"))) {
state = "high";
}
if (hide_last) {
if (state == "last") {
state = "high";
}
}
if (usestate) {
state = usestate;
}
_root.popup = this;
mcs = new Array();
tfs = new Array();
mc = gfx.create_clip(_root.mc_popup, null);
mc.cacheAsBitmap = true;
gfx.dropshadow(mc, 5, 45, 0, 1, 20, 20, 2, 3);
mc._y = 0;
mc.dx = 0;
mc._x = -800;
do_exit = false;
not_do_exit = 30;
done = false;
steady = false;
do_mochi = false;
gfx.clear(mc);
mc.style.out = -16777216;
mc.style.fill = 1342177280 /* 0x50000000 */;
gfx.draw_box(mc, 0, 100 + 16, 0 + 16, 600 - 32, 600 - 32);
switch (state) {
case "results" :
mc_top = gfx.create_clip(mc, null, 100, 25);
tf_top = gfx.create_text_html(mc_top, null, 0, 0, 600, 50);
mc_top.onRelease = delegate(click, "top");
mc_text = gfx.create_clip(mc, null, 150, 100);
tf_text = gfx.create_text_html(mc_text, null, 0, 0, 500, 300);
mc_text.onRelease = delegate(click, "text");
mc_whore = gfx.create_clip(mc, null, 200, 425);
mc_whore.onRelease = delegate(click, "whore");
mc_whore.text = gfx.create_text_html(mc_whore, null, 175, 0, 250, 175);
break;
default :
mc_res = gfx.create_clip(mc, null);
var _local7 = 0;
var _local3 = 0;
for ( ; _local3 < 10 ; _local3++) {
mcs[_local3] = gfx.create_clip(mc_res, null, 0, (25 + 150) + (_local3 * 40));
mcs[_local3].onRelease = delegate(click, "score" + _local3);
mcs[_local3].onRollOver = delegate(over_on, "score" + _local3);
mcs[_local3].onRollOut = delegate(over_off, "score" + _local3);
mcs[_local3].onReleaseOutside = delegate(over_off, "score" + _local3);
tfs[_local7] = gfx.create_text_html(mcs[_local3], null, 50, 0, 200, 50);
_local7++;
tfs[_local7] = gfx.create_text_html(mcs[_local3], null, 250, 0, 150, 50);
_local7++;
tfs[_local7] = gfx.create_text_html(mcs[_local3], null, 400, 0, 550, 50);
_local7++;
}
mc_top = gfx.create_clip(mc, null, 100, 25);
tf_top = gfx.create_text_html(mc_top, null, 0, 0, 600, 50);
mc_top.onRelease = delegate(click, "top");
mc_topunder = gfx.create_clip(mc, null, 100, 75 - 10);
tf_topunder = gfx.create_text_html(mc_topunder, null, 0, 0, 600, 25);
mc_topunder.onRelease = delegate(click, "topunder");
mc_topsub = gfx.create_clip(mc, null, 100, 100);
}
var _local3 = 0;
for ( ; _local3 < icon_nams.length ; _local3++) {
var _local9 = icon_nams[_local3];
mc_topsub[_local9] = gfx.add_clip(mc_topsub, "icon_" + _local9, null, (300 - (20 * icon_nams.length)) + (_local3 * 40), 10, 200, 200);
gfx.glow(mc_topsub[_local9], 16777215, 1, 8, 8, 1, 1, false, false);
mc_topsub[_local9]._alpha = 50;
mc_topsub[_local9].id = _local9;
mc_topsub[_local9].idx = _local3;
mc_topsub[_local3] = mc_topsub[_local9];
mc_topsub[_local3].onRelease = delegate(click, _local9);
mc_topsub[_local3].onRollOver = delegate(over_on, _local9);
mc_topsub[_local3].onRollOut = delegate(over_off, _local9);
mc_topsub[_local3].onReleaseOutside = delegate(over_off, _local9);
}
if (hide_last) {
mc_topsub.last._visible = false;
}
thunk();
get_high();
update_do = delegate(update, null);
MainStatic.update_add(_root.updates, update_do);
_root.poker.clear_clicks();
}
function clean() {
if (_root.popup != this) {
return(undefined);
}
mc_whore = null;
MainStatic.update_remove(_root.updates, update_do);
update_do = null;
mc.removeMovieClip();
_root.popup = null;
if (up.next_game_seed) {
up.do_str("restart");
}
up.high_state = state;
up.high_filter = filter;
_root.poker.clear_clicks();
}
function get_high() {
if (state == "rank") {
rank = new_reset_scores();
} else if (state == "high") {
high = new_reset_scores();
} else if (state == "last") {
last = new_reset_scores();
} else {
return(undefined);
}
high_id++;
_root.comms.get_high(state, filter, delegate(got_high, high_id));
}
function got_high(a, tid) {
if (tid == high_id) {
if (state == "rank") {
rank = a;
} else if (state == "high") {
high = a;
} else if (state == "last") {
last = a;
}
thunk();
}
}
function thunk() {
var _local2 = 0;
for ( ; _local2 < icon_nams.length ; _local2++) {
mc_topsub[_local2]._alpha = 50;
}
if ((state == "rank") || ((state == "high") || (state == "last"))) {
var _local5 = 0;
_local2 = 0;
for ( ; _local2 < 10 ; _local2++) {
if (state == "rank") {
var _local3 = rank[_local2].split(";");
} else if (state == "high") {
var _local3 = high[_local2].split(";");
} else if (state == "last") {
var _local3 = last[_local2].split(";");
}
if (_local3[1].indexOf("_") != -1) {
_local3[1] = _local3[1].split("_").join(" ");
}
var _local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"28\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"right\"><b>";
_local4 = _local4 + _local3[0];
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tfs[_local5].htmlText = _local4;
_local5++;
if (state == "last") {
_local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"8\" color=\"#ffffff\">";
_local4 = _local4 + "<br></font>";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"16\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"center\"><b>";
if (_local3[2]) {
_local4 = _local4 + days_to_string(_local3[2]);
} else {
_local4 = _local4 + "#";
}
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tfs[_local5].htmlText = _local4;
} else {
_local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"28\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"center\"><b>";
_local4 = _local4 + str_numst[_local2];
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tfs[_local5].htmlText = _local4;
}
_local5++;
_local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"28\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"left\"><b>";
_local4 = _local4 + _local3[1];
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tfs[_local5].htmlText = _local4;
_local5++;
}
var _local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"14\" color=\"#888888\">";
_local4 = _local4 + "<p align=\"center\"><b>";
switch (state) {
case "rank" :
_local4 = _local4 + "Click title above to cycle views<br>";
_local4 = _local4 + "Click here to cycle filters<br>";
_local4 = _local4 + "Click anywhere else to exit<br>";
mc_topsub.rank._alpha = 100;
break;
case "high" :
_local4 = _local4 + "Click title above to cycle views<br>";
_local4 = _local4 + "Click here to cycle filters<br>";
_local4 = _local4 + "Click anywhere else to exit<br>";
mc_topsub.day._alpha = 100;
break;
case "last" :
_local4 = _local4 + "Click title above to cycle view<br>";
_local4 = _local4 + "Click a score below to play that game<br>";
_local4 = _local4 + "Click anywhere else to exit<br>";
mc_topsub.last._alpha = 100;
break;
case "mochi" :
mc_topsub.mochi._alpha = 100;
}
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tf_topsub.htmlText = _local4;
_local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"16\" color=\"#cccccc\">";
_local4 = _local4 + "<p align=\"center\"><b>";
switch (state) {
case "rank" :
case "high" :
switch (filter) {
case "global" :
_local4 = _local4 + "no filter";
mc_topsub.guest._alpha = 100;
break;
case "registered" :
_local4 = _local4 + "showing registered users only";
mc_topsub.registered._alpha = 100;
break;
case "friends" :
_local4 = _local4 + "showing friends only";
}
break;
case "last" :
}
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tf_topunder.htmlText = _local4;
} else if (state == "mochi") {
if (!do_mochi) {
do_mochi = true;
mochi.MochiScores.showLeaderboard({res:"540x450", onClose:delegate(mochi_close)});
mc_res._visible = false;
mc_topunder._visible = false;
mc_topsub._visible = false;
_root.poker.ShowFloat(null, 0);
}
} else if (state == "results") {
switch (results) {
case "bowwow" :
var _local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"26\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"center\">";
_local4 = _local4 + (("You scored <b>" + play.score) + "</b>pts<br><br>");
_local4 = _local4 + "<b>Click here</b> or press anykey to continue.<br><br>";
_local4 = _local4 + "</p>";
_local4 = _local4 + "</font>";
tf_text.htmlText = _local4;
break;
default :
var _local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"28\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"center\">";
_local4 = _local4 + "<b>Click here</b> to return to the menu or press anykey to try again.<br><br>";
_local4 = _local4 + (("You scored <b>" + play.scores_best_new) + "</b>pts<br><br>");
if (play.scores_best_old < play.scores_best_new) {
_local4 = _local4 + (((("Congratulations, that's a whole <b>" + (play.scores_best_new - play.scores_best_old)) + "</b>pts better than ") + play.scores_best_old) + "pts.<br><br>");
} else {
_local4 = _local4 + (("Your previous best score was <b>" + play.scores_best_old) + "</b>pts<br><br>");
}
_local4 = _local4 + "</p>";
_local4 = _local4 + "</font>";
tf_text.htmlText = _local4;
}
}
var _local4 = "";
_local4 = _local4 + "<font face=\"Bitstream Vera Sans\" size=\"28\" color=\"#ffffff\">";
_local4 = _local4 + "<p align=\"center\"><b>";
switch (state) {
case "rank" :
if (_root.signals.ranksys == "max") {
_local4 = _local4 + "Highest scores in last 10 days.<br>";
} else {
_local4 = _local4 + "Rankings, last 10 days added.<br>";
}
break;
case "high" :
_local4 = _local4 + (("High scores for " + days_to_string(up.game_seed)) + ".<br>");
break;
case "last" :
_local4 = _local4 + "Your last 10 scores.<br>";
break;
case "results" :
_local4 = _local4 + "Congratulations!<br>";
break;
case "mochi" :
_local4 = _local4 + "Checking Mochi Bucket for scores.<br>";
}
_local4 = _local4 + "</b></p>";
_local4 = _local4 + "</font>";
tf_top.htmlText = _local4;
}
function mochi_close() {
do_mochi = false;
state = "high";
get_high();
thunk();
not_do_exit = 5;
mc_res._visible = true;
mc_top._visible = true;
mc_topunder._visible = true;
mc_topsub._visible = true;
}
function over_on(s) {
if (do_mochi) {
return(undefined);
}
switch (s) {
case "score0" :
showgame(0);
break;
case "score1" :
showgame(1);
break;
case "score2" :
showgame(2);
break;
case "score3" :
showgame(3);
break;
case "score4" :
showgame(4);
break;
case "score5" :
showgame(5);
break;
case "score6" :
showgame(6);
break;
case "score7" :
showgame(7);
break;
case "score8" :
showgame(8);
break;
case "score9" :
showgame(9);
break;
case "day" :
_root.poker.ShowFloat("Show scores for todays game.", 25 * 5);
highlight_icon(s, true);
break;
case "rank" :
_root.poker.ShowFloat("Show rank. This is built using scores from the last 10 days.", 25 * 5);
highlight_icon(s, true);
break;
case "last" :
_root.poker.ShowFloat("Your score each day for the last 10 days. Play these games again to improve your rank.", 25 * 5);
highlight_icon(s, true);
break;
case "guest" :
_root.poker.ShowFloat("Show scores of all players.", 25 * 5);
highlight_icon(s, true);
break;
case "registered" :
_root.poker.ShowFloat("Show registered players scores only.", 25 * 5);
highlight_icon(s, true);
break;
case "mochi" :
_root.poker.ShowFloat("Display a Mochi Bucket of scores.", 25 * 5);
highlight_icon(s, true);
break;
case "close" :
_root.poker.ShowFloat("Close this plopup. Clicking almost anywhere also closes this plopup.", 25 * 5);
highlight_icon(s, true);
}
}
function highlight_icon(nam, onoff) {
if (mc_topsub[nam]._alpha < 100) {
if (onoff) {
mc_topsub[nam]._alpha = 75;
} else {
mc_topsub[nam]._alpha = 50;
}
}
}
function over_off(s) {
if (do_mochi) {
return(undefined);
}
highlight_icon(s, false);
_root.poker.ShowFloat(null, 0);
}
function click(s) {
if (do_mochi) {
return(undefined);
}
switch (s) {
case "whore" :
if (_root.wonderfulls[0].url) {
getURL (_root.wonderfulls[0].url, "_blank");
}
if (state == "results") {
if (steady) {
do_exit = true;
}
}
break;
case "text" :
if (state == "results") {
if (steady) {
do_exit = true;
}
}
break;
case "top" :
break;
case "mochi" :
if (state != "mochi") {
state = "mochi";
thunk();
}
not_do_exit = 5;
break;
case "day" :
if (state != "high") {
state = "high";
get_high();
thunk();
}
not_do_exit = 5;
break;
case "rank" :
if (state != "rank") {
state = "rank";
get_high();
thunk();
}
not_do_exit = 5;
break;
case "last" :
if (state != "last") {
state = "last";
get_high();
thunk();
}
not_do_exit = 5;
break;
case "guest" :
if (filter != "global") {
filter = "global";
get_high();
thunk();
}
not_do_exit = 5;
break;
case "registered" :
if (filter != "registered") {
filter = "registered";
get_high();
thunk();
}
not_do_exit = 5;
break;
case "topunder" :
break;
case "topsub" :
break;
case "score0" :
gotoplaygame(0);
break;
case "score1" :
gotoplaygame(1);
break;
case "score2" :
gotoplaygame(2);
break;
case "score3" :
gotoplaygame(3);
break;
case "score4" :
gotoplaygame(4);
break;
case "score5" :
gotoplaygame(5);
break;
case "score6" :
gotoplaygame(6);
break;
case "score7" :
gotoplaygame(7);
break;
case "score8" :
gotoplaygame(8);
break;
case "score9" :
gotoplaygame(9);
break;
}
}
function gotoplaygame(num) {
if (state == "last") {
var _local3 = last[num].split(";");
if (_local3[2]) {
up.next_game_seed = Math.floor(_local3[2]);
if (up.next_game_seed == up.game_seed) {
up.next_game_seed = null;
}
}
state = "high";
}
}
function showgame(num) {
if (state == "last") {
var _local3 = last[num].split(";");
if (_local3[2]) {
var _local4 = days_to_string(Math.floor(_local3[2]));
_root.poker.ShowFloat(("Clicking here will end this game and start the game for " + _local4) + " so be careful...", 25 * 5);
}
}
}
function statechange() {
switch (state) {
case "results" :
break;
case "high" :
state = "rank";
break;
case "rank" :
if (hide_last) {
state = "high";
} else {
state = "last";
}
break;
case "last" :
state = "high";
break;
default :
state = "high";
}
get_high();
thunk();
}
function filterchange() {
switch (filter) {
case "global" :
filter = "registered";
break;
case "registered" :
filter = "global";
break;
case "friends" :
filter = "global";
}
get_high();
thunk();
}
function click_str(id) {
var _local3 = id.split("_");
trace(_local3);
switch (_local3[0]) {
case "none" :
break;
case "submit" :
break;
}
}
function update() {
if (!do_mochi) {
if ((_root.popup == this) && (_root.poker.anykey)) {
if (steady) {
if (!do_exit) {
if (state == "results") {
retry = true;
}
do_exit = true;
}
}
}
}
if ((_root.popup != this) || (_root.pause)) {
return(undefined);
}
if (mc_whore) {
if (!mc_whore.ad) {
if (_root.wonderfulls) {
mc_whore.ad = gfx.create_clip(mc_whore, null);
mc_whore.ad.loadMovie(_root.wonderfulls[0].img);
var _local2 = "";
_local2 = _local2 + "<font face=\"Bitstream Vera Sans\" size=\"24\" color=\"#ffffff\">";
_local2 = _local2 + "<p align=\"center\">";
_local2 = _local2 + _root.wonderfulls[0].txt;
_local2 = _local2 + "</p>";
_local2 = _local2 + "</font>";
mc_whore.text.htmlText = _local2;
}
}
}
mc._x = mc._x + ((mc.dx - mc._x) / 4);
if (((mc._x - mc.dx) * (mc._x - mc.dx)) < (16 * 16)) {
steady = true;
if (done) {
clean();
}
} else {
steady = false;
}
if (do_exit && (not_do_exit == 0)) {
done = true;
mc.dx = _root.scalar.ox;
}
do_exit = false;
if (not_do_exit > 0) {
not_do_exit--;
}
}
//ASSetPropFlags(_local1, null, 1);
var icon_nams = ["mochi", "day", "rank", "last", "guest", "registered", "close"];
var results = "";
var str_numst = ["1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th"];
var hide_last = false;
var high_id = 0;
}
Symbol 20515 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/WetBaseMent.swf\" type=\"application/x-shockwave-flash\" width=\"640\" height=\"480\"></embed><br /><a href=\"http://www.WetGenes.com\" target=\"_blank\" title=\"www.WetGenes.com\">Play more free online games at www.WetGenes.com</a></center>");
};
_local6.facebookURL = "http://link.wetgenes.com/link/WetBaseMent.fb";
var _local7 = "WetBaseMent".toLowerCase();
if (_local7 == "wetbasement") {
_local7 = "basement";
}
if (_local7 == "wetdiamonds") {
_local7 = "diamonds";
}
_local6.bookmarkURL = ("http://" + _local7) + ".wetgenes.com/";
_local6.widgetTitle = "Play WetBaseMent 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 20516 MovieClip [__Packages.WetBaseMentLevel_level_04] Frame 0
class WetBaseMentLevel_level_04
{
function WetBaseMentLevel_level_04 () {
}
//ASSetPropFlags(_local1, null, 1);
var img_bak = "level_04_bak";
var img_for = "level_04_for";
var name = "level_04";
var col = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 0, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 17, 0, 254, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 1, 1, 17, 17, 17, 17, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 237, 17, 0, 0, 0, 1, 1, 0, 0, 0, 0, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
}
Symbol 20517 MovieClip [__Packages.WetBaseMentLevel_level_08] Frame 0
class WetBaseMentLevel_level_08
{
function WetBaseMentLevel_level_08 () {
}
//ASSetPropFlags(_local1, null, 1);
var img_bak = "level_08_bak";
var img_for = "level_08_for";
var name = "level_08";
var col = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 0, 0, 0, 0, 0, 17, 0, 0, 0, 253, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 219, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 0, 0, 0, 221, 0, 0, 0, 0, 0, 222, 0, 0, 0, 0, 0, 0, 223, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 252, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0,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, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 235, 0, 0, 0, 0, 0, 0, 0, 0, 236, 0, 0, 0, 0, 0, 0, 237, 0, 0, 0, 0, 0, 0, 0, 0, 238, 0, 0, 0, 0, 0, 0, 0, 239, 0, 250, 0, 1, 1, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 255, 1];
}
Symbol 20518 MovieClip [__Packages.OverItem] Frame 0
class OverItem
{
var up, mc, type, data, flags, _x, _y, vx, vy, tf;
function OverItem (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(nam, dat) {
mc = gfx.create_clip(up.mc, null);
type = nam;
data = dat;
flags = 0;
_x = 0;
_y = 0;
vx = 0;
vy = 0;
draw();
}
function draw() {
var _local2 = 2;
switch (type) {
case null :
break;
case "score" :
tf = gfx.create_text_html(mc, null, -100, -25, 200, 50);
gfx.set_text_html(tf, 24, 16777215, ("<p align=\"center\">" + data.str) + "</p>");
}
}
function clean() {
mc.removeMovieClip();
}
function setxy(setx, sety, setvx, setvy) {
if (setvx != undefined) {
vx = setvx;
}
if (setvy != undefined) {
vy = setvy;
}
_x = setx;
_y = sety;
if (mc) {
mc._x = setx;
mc._y = sety;
}
}
function update() {
if (!(type === "score")) {
} else {
setxy(_x + vx, _y + vy);
mc._alpha = mc._alpha - 1;
if (mc._alpha <= 0) {
return(true);
}
return(false);
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20519 MovieClip [__Packages.PlayItem] Frame 0
class PlayItem
{
var up, x, y, escount, type, flavour, mc, active, other;
function PlayItem (_up, _x, _y, _type) {
up = _up;
setup(_x, _y, _type);
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup(_x, _y, _type) {
x = _x;
y = _y;
escount = 0;
type = _type;
flavour = "vanilla";
switch (type) {
case "meta" :
mc = gfx.add_clip(up.imc, "obj_meta", null);
mc._xscale = (100 * 20) / 50;
mc._yscale = (100 * 20) / 50;
mc._alpha = 10;
mc._x = 10 + (_x * 20);
mc._y = 590 - (_y * 20);
mc.gotoAndStop(1);
active = false;
break;
case "bump" :
mc = gfx.add_clip(up.imc, "bumper", null);
mc._xscale = 100;
mc._yscale = 100;
mc._alpha = 100;
mc._x = 10 + (_x * 20);
mc._y = 590 - (_y * 20);
mc.gotoAndStop(1);
active = true;
break;
case "inout" :
mc = {};
mc._x = 10 + (_x * 20);
mc._y = 590 - (_y * 20);
active = false;
break;
case "cannon" :
mc = gfx.create_clip(up.imc, null);
mc._xscale = 100;
mc._yscale = 100;
mc._alpha = 100;
mc._x = 10 + (_x * 20);
mc._y = 590 - (_y * 20);
mc.bak = gfx.add_clip(mc, "cannon_bak", null);
mc.mid = gfx.create_clip(mc, null);
mc.for = gfx.add_clip(mc, "cannon_for", null);
mc.bak.gotoAndStop(1);
mc.for.gotoAndStop(1);
active = true;
break;
case "whirl" :
mc = gfx.add_clip(up.imc, "whirl", null);
mc._xscale = 100;
mc._yscale = 100;
mc._alpha = 100;
mc._x = 10 + (_x * 20);
mc._y = 590 - (_y * 20);
mc.vx = 0;
mc.vy = 0;
mc.gotoAndStop(1);
active = true;
}
}
function activate() {
switch (type) {
case "meta" :
mc._xscale = ((2 * 100) * 20) / 50;
mc._yscale = ((2 * 100) * 20) / 50;
active = true;
mc._alpha = 100;
mc.gotoAndPlay(1);
gfx.glow(mc, 16777215, 0.8, 16, 16, 1, 3, false, false);
break;
case "inout" :
active = true;
break;
case "whirl" :
mc._visible = true;
active = true;
}
}
function disable() {
if (!(type === "whirl")) {
} else {
mc._visible = false;
active = false;
}
}
function clean() {
mc.removeMovieClip();
}
function update() {
switch (type) {
case "meta" :
if (active) {
var _local2 = mc._x - up.tards[0].mc._x;
var _local3 = mc._y - (up.tards[0].mc._y - 30);
if (((_local2 * _local2) + (_local3 * _local3)) < (50 * 50)) {
up.score = up.score + 500;
mc._visible = false;
active = false;
return(true);
}
}
break;
case "bump" :
escount = escount - 1;
if (escount < 0) {
escount = 0;
}
if (mc._xscale > 100) {
mc._xscale = 100 + ((mc._xscale - 100) * 0.75);
}
if (mc._yscale > 100) {
mc._yscale = 100 + ((mc._yscale - 100) * 0.75);
}
if (active && ((up.tards[0].state != "inout") && (escount < 100))) {
var _local2 = mc._x - up.tards[0].mc._x;
var _local3 = mc._y - (up.tards[0].mc._y - 30);
var _local4 = (_local2 * _local2) + (_local3 * _local3);
if (_local4 < (60 * 60)) {
escount = escount + 25;
var _local5 = Math.sqrt(_local4);
if (_local5 > 0) {
_local2 = _local2 / _local5;
_local3 = _local3 / _local5;
}
_root.wetplay.PlaySFX("sfx_boing", 0);
up.tards[0].state = "bounce";
up.tards[0].bounce_wait = 10;
up.tards[0].vx = (-_local2) * 30;
up.tards[0].vy = _local3 * 30;
mc._xscale = 150;
mc._yscale = 150;
}
}
break;
case "inout" :
if (active) {
if (!mc.mc) {
mc.mc = gfx.add_clip(up.imc, "whirl", null);
mc.mc._xscale = 50;
mc.mc._yscale = 50;
mc.mc._alpha = 10;
mc.mc._x = mc._x;
mc.mc._y = mc._y;
}
mc.mc._rotation = mc.mc._rotation - 10;
if (mc.mc._rotation < 0) {
mc.mc._rotation = mc.mc._rotation + 360;
}
var _local2 = mc._x - up.tards[0].mc._x;
var _local3 = mc._y - (up.tards[0].mc._y - 30);
var _local4 = (_local2 * _local2) + (_local3 * _local3);
if (_local4 < (50 * 50)) {
if (other && (up.tards[0].state != "inout")) {
up.tards[0].state = "inout";
up.tards[0].inout_from = this;
up.tards[0].inout_to = other;
up.tards[0].inout_frame = 0;
up.tards[0].talk.display("Wheee!", 50);
}
}
}
break;
case "whirl" :
if (!active) {
break;
}
mc._rotation = mc._rotation - 10;
if (mc._rotation < 0) {
mc._rotation = mc._rotation + 360;
}
var _local2 = mc._x - up.tards[0].mc._x;
var _local3 = mc._y - (up.tards[0].mc._y - 30);
if (up.tards[0].anim == "splat") {
_local3 = _local3 - 30;
}
var _local4 = (_local2 * _local2) + (_local3 * _local3);
if (flavour == "thrown") {
if (mc.vx == null) {
var _local5 = Math.sqrt(_local4);
if (_local5 == 0) {
_local5 = 1;
}
mc.vx = (-12 * _local2) / _local5;
mc.vy = (-12 * _local3) / _local5;
}
mc._rotation = mc._rotation - 10;
} else {
if (_local2 < 0) {
mc.vx = mc.vx + 0.1;
}
if (_local2 > 0) {
mc.vx = mc.vx - 0.1;
}
if (_local3 < 0) {
mc.vy = mc.vy + 0.1;
}
if (_local3 > 0) {
mc.vy = mc.vy - 0.1;
}
if (mc.vx < -2) {
mc.vx = -2;
}
if (mc.vx > 2) {
mc.vx = 2;
}
if (mc.vy < -2) {
mc.vy = -2;
}
if (mc.vy > 2) {
mc.vy = 2;
}
}
mc._x = mc._x + mc.vx;
mc._y = mc._y + mc.vy;
x = mc._x / 20;
y = (600 - mc._y) / 20;
if (_local4 >= (50 * 50)) {
break;
}
var _local8 = null;
var _local7 = 0;
var _local6 = 0;
for ( ; _local6 < up.items.length ; _local6++) {
if ((up.items[_local6].type == "inout") && (up.items[_local6].active == false)) {
_local2 = up.items[_local6].mc._x - mc._x;
_local3 = up.items[_local6].mc._y - mc._y;
_local4 = (_local2 * _local2) + (_local3 * _local3);
if (_local4 > _local7) {
_local7 = _local4;
_local8 = up.items[_local6];
}
}
}
if (!(_local8 && (up.tards[0].state != "inout"))) {
break;
}
up.tards[0].state = "inout";
up.tards[0].inout_from = this;
up.tards[0].inout_to = _local8;
up.tards[0].inout_frame = 0;
up.tards[0].talk.display("Wheee!", 50);
}
return(false);
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
}
Symbol 20520 MovieClip [__Packages.OverField] Frame 0
class OverField
{
var up, mc_scalar, mc, over, tab_w, tab_h, types, launches, floaters, update_do;
function OverField (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function setup(nam) {
mc_scalar = gfx.create_clip(up.mc, null);
mc = gfx.create_clip(mc_scalar, null);
over = new Object();
over.up = up;
over.mc = gfx.create_clip(mc_scalar, null);
tab_w = 8;
tab_h = 8;
types = new Array("fire", "earth", "air", "water", "ether");
var _local7 = 0;
for ( ; _local7 < 5 ; _local7++) {
types[types[_local7]] = _local7;
}
launches = new Array();
floaters = new Array();
_root.poker.clear_clicks();
update_do = delegate(update, null);
MainStatic.update_add(_root.updates, update_do);
}
function clean() {
MainStatic.update_remove(_root.updates, update_do);
update_do = null;
while (launches.length) {
launches[0].clean();
launches.splice(0, 1);
}
while (floaters.length) {
floaters[0].clean();
floaters.splice(0, 1);
}
mc.removeMovieClip();
}
function update() {
var _local2 = 0;
for ( ; _local2 < launches.length ; _local2++) {
if (launches[_local2].update_launch()) {
launches[_local2].clean();
launches.splice(_local2, 1);
_local2--;
}
}
_local2 = 0;
for ( ; _local2 < floaters.length ; _local2++) {
if (floaters[_local2].update()) {
floaters[_local2].clean();
floaters.splice(_local2, 1);
_local2--;
}
}
}
function add_floater(str, xx, yy) {
var _local5 = new OverItem(this);
_local5.setup("score", {str:str});
_local5.setxy(xx, yy);
_local5.vx = 0;
_local5.vy = -2;
_local5.mc.filters = null;
_local5.mc.cacheAsBitmap = true;
floaters.push(_local5);
return(_local5);
}
//ASSetPropFlags(_local1, null, 1);
var rnd_num = 0;
}
Symbol 20521 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 20522 MovieClip [__Packages.Poker] Frame 0
class Poker
{
var hand, mc, float, mc_floater, mc_floaterz, tf_floater, float_str, float_time, mcb0, mcb1, mcg, mcg0, mcg1, lx, ly, size, scale, poke_last, poke_down, poke_up, poke_now, update_do, do_anykey, poke_now_now, poke_down_now, clicks, poke_up_now, anykey, x, y, dx, dy;
function Poker (_hand) {
hand = _hand;
if (System.capabilities.version.split(" ")[0] == "WII") {
hand = false;
}
hand = false;
mc = gfx.create_clip(_root, 16384 + 32);
float = true;
if (float) {
mc_floater = gfx.create_clip(_root, (16384 + 32) + 1);
gfx.clear(mc_floater);
mc_floater.w = 200;
mc_floater.h = 80;
mc_floaterz = gfx.create_clip(mc_floater, null);
mc_floaterz._x = 100;
mc_floaterz._y = 40;
tf_floater = gfx.create_text_html(mc_floaterz, null, -100, 0, 200, 200);
float_str = "";
float_time = -100;
}
if (hand) {
mcb0 = gfx.create_clip(mc, null);
mcb1 = gfx.create_clip(mcb0, null);
mcg = gfx.create_clip(mcb1, null);
mcg0 = gfx.add_clip(mcg, "poke0", null);
mcg1 = gfx.add_clip(mcg, "poke1", null);
mcg0._x = -19;
mcg0._y = -19;
mcg1._x = -(19 + 8);
mcg1._y = -(19 + 8);
mcg._xscale = 75;
mcg._yscale = 75;
}
onMouseUp();
Mouse.addListener(this);
Key.addListener(this);
lx = 0;
ly = 0;
size = 1;
scale = 1;
poke_last = false;
poke_down = false;
poke_up = false;
poke_now = false;
clear_clicks();
update_do = delegate(update, null);
MainStatic.update_add(_root.updates, update_do);
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function clean() {
MainStatic.update_remove(_root.updates, update_do);
update_do = null;
}
function ShowFloat(str, tim) {
if ((str != null) && (float_str != str)) {
float_str = str;
gfx.clear(mc_floaterz);
mc_floaterz.style.out = -1;
mc_floaterz.style.fill = -3355444;
gfx.set_text_html(tf_floater, 16, 0, ("<p align=\"center\">" + str) + "</p>");
mc_floater.h = tf_floater.textHeight + 6;
gfx.draw_box(mc_floaterz, 4, -100, (-mc_floater.h) / 2, 200, mc_floater.h);
tf_floater._y = (-mc_floater.h) / 2;
mc_floaterz._y = mc_floater.h / 2;
}
if (tim == 0) {
if (float_time > tim) {
float_time = tim;
}
} else {
float_time = tim;
}
}
function onKeyDown() {
do_anykey = true;
}
function onMouseDown() {
if (hand) {
Mouse.hide();
mcg0._visible = false;
mcg1._visible = true;
}
poke_now_now = true;
poke_down_now = true;
if (clicks.length < 16) {
clicks[clicks.length] = {click:1, x:_root._xmouse, y:_root._ymouse};
}
}
function onMouseUp() {
do_anykey = true;
if (hand) {
Mouse.hide();
mcg0._visible = true;
mcg1._visible = false;
}
poke_now_now = false;
poke_up_now = true;
if (clicks.length < 16) {
clicks[clicks.length] = {click:-1, x:_root._xmouse, y:_root._ymouse};
}
}
function clear_clicks() {
do_anykey = false;
anykey = false;
poke_last = false;
poke_down = false;
poke_up = false;
poke_now = false;
clicks = [];
}
function update() {
if (do_anykey) {
anykey = true;
} else {
anykey = false;
}
do_anykey = false;
x = _root._xmouse;
y = _root._ymouse;
poke_last = poke_now;
poke_down = poke_down_now;
poke_up = poke_up_now;
poke_now = poke_now_now;
poke_down_now = false;
poke_up_now = false;
dx = x - lx;
dy = y - ly;
lx = x;
ly = y;
if (hand) {
mc._x = x;
mc._y = y;
scale = (_root.scalar.sx * size) / 100;
mc._xscale = 100 * scale;
mc._yscale = mc._xscale;
gfx.dropshadow(mc, 2, 45, 0, 1, 4 * scale, 4 * scale, 2, 3);
if ((dx == 0) && (dy == 0)) {
mcb0._rotation = 0;
mcb0._xscale = 100;
mcb0._yscale = 100;
mcb1._rotation = 0;
} else {
var _local3 = (180 * Math.atan2(dy, -dx)) / Math.PI;
var _local4 = Math.sqrt((dy * dy) + (dx * dx));
_local4 = _local4 / 1.5;
if (_local4 > 400) {
_local4 = 400;
}
mcb0._rotation = -_local3;
mcb0._xscale = 100 + _local4;
mcb0._yscale = 100 - (_local4 / 5);
mcb1._rotation = _local3;
}
if (dx > 32) {
dx = 32;
}
if (dx < -32) {
dx = -32;
}
var _local2 = dx;
mcg._rotation = mcg._rotation + ((_local2 - mcg._rotation) / 4);
}
if (float && (float_time >= -10)) {
if (float_time > 0) {
float_time--;
mc_floater._visible = true;
mc_floaterz._xscale = 100;
mc_floaterz._yscale = 100;
} else {
float_time--;
mc_floaterz._xscale = 100 + (float_time * 10);
mc_floaterz._yscale = mc_floaterz._xscale;
if (float_time == -10) {
mc_floater._visible = false;
}
}
var _local5 = mc_floater.w;
var _local6 = mc_floater.h;
var _local13 = Stage.width;
var _local14 = Stage.height;
var _local9 = x - (_local13 / 2);
var _local10 = y - (_local14 / 2);
var _local17 = _local9 * _local9;
var _local21 = ((_local9 < 0) ? (-_local9) : (_local9));
var _local18 = _local10 * _local10;
var _local22 = ((_local10 < 0) ? (-_local10) : (_local10));
var _local16 = _local17 + _local18;
var _local15 = Math.sqrt(_local16);
if (_local15 == 0) {
_local15 = 1;
_local9 = 0;
_local10 = 1;
}
var _local11 = _local9 / _local15;
var _local12 = _local10 / _local15;
var _local19 = ((-_local11) * _local5) * 1.75;
var _local20 = ((-_local12) * _local6) * 1.75;
if ((_local21 / 2) > _local22) {
if (_local9 < 0) {
var _local7 = x;
var _local8 = (y + _local20) - (_local6 / 2);
_local7 = _local7 + 50;
} else {
var _local7 = x - _local5;
var _local8 = (y + _local20) - (_local6 / 2);
_local7 = _local7 - 50;
}
} else if (_local21 < (_local22 / 2)) {
if (_local10 < 0) {
var _local7 = (x + _local19) - (_local5 / 2);
var _local8 = y;
_local8 = _local8 + 50;
} else {
var _local7 = (x + _local19) - (_local5 / 2);
var _local8 = y - _local6;
_local8 = _local8 - 50;
}
} else if (_local9 < 0) {
if (_local10 < 0) {
var _local7 = x;
var _local8 = y;
_local7 = _local7 + 50;
_local8 = _local8 + 50;
} else {
var _local7 = x;
var _local8 = y - _local6;
_local7 = _local7 + 50;
_local8 = _local8 - 50;
}
} else if (_local10 < 0) {
var _local7 = x - _local5;
var _local8 = y;
_local7 = _local7 - 50;
_local8 = _local8 + 50;
} else {
var _local7 = x - _local5;
var _local8 = y - _local6;
_local7 = _local7 - 50;
_local8 = _local8 - 50;
}
mc_floater._x = (mc_floater._x * 0.75) + (_local7 * 0.25);
mc_floater._y = (mc_floater._y * 0.75) + (_local8 * 0.25);
mc_floater._visible = true;
} else {
mc_floater._visible = false;
}
}
function snapshot() {
var _local2 = {};
_local2.key = (poke_now ? 1 : 0);
_local2.key_on = (poke_down ? 1 : 0);
_local2.key_off = (poke_up ? 1 : 0);
_local2.x = x;
_local2.y = y;
_local2.frame = 0;
return(_local2);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20523 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if (options.clip.__mochiservicesMC != mochi.MochiServices.clip) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.id, options.clip);
}
delete options.clip;
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.clip.stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
if (mochi.MochiServices.clip == _root.__mochiservicesMC) {
mochi.MochiServices.clip._parent.play();
} else {
mochi.MochiServices.clip.play();
}
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function doClose(args) {
if (args.error == true) {
onError.apply(null, [args.errorCode, args.httpStatus]);
} else {
onClose.apply();
}
}
}
Symbol 20524 MovieClip [__Packages.Talky] Frame 0
class Talky
{
var up, w, h, bubs, mc, topmc;
function Talky (_up) {
up = _up;
w = 800;
h = 600;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup() {
bubs = [];
mc = gfx.create_clip(up.mc, null);
topmc = gfx.create_clip(mc, topdepth);
}
function clean() {
var _local2 = 0;
for ( ; _local2 < bubs.length ; _local2++) {
bubs[_local2].clean();
}
mc.removeMovieClip();
mc = null;
bubs = null;
}
function create(_orig, _x, _y, _offorg) {
if (_offorg == undefined) {
_offorg = "local";
}
var _local6 = new TalkyBub(this, _orig, _x, _y, _offorg);
bubs[bubs.length] = _local6;
return(_local6);
}
function update() {
if (up.old_time != undefined) {
if (last != up.old_time) {
last = up.old_time;
} else {
return(undefined);
}
}
var _local2 = 0;
for ( ; _local2 < bubs.length ; _local2++) {
if (bubs[_local2].update()) {
bubs[_local2].clean();
bubs.splice(_local2, 1);
_local2--;
}
}
}
//ASSetPropFlags(_local1, null, 1);
var topdepth = 1024;
var last = null;
}
Symbol 20525 MovieClip [__Packages.WetBaseMent] Frame 0
class WetBaseMent
{
var v, setup_done, game_seed, game_seed_today, game_seed_start, mc, levels, tards, state_last, state, state_next, login, play, title, menu, choose, zoo, about, code, high, over, lv_wonderful, old_time, update_time;
function WetBaseMent () {
var _local2 = new Date();
v = [];
v.name = "WetBasement";
v.site = "";
v.number = "1.02";
v.stamp = "Apr 13 2008";
v.stamp_number = "20080413";
setup_done = false;
game_seed = Math.floor((_local2.getTime() / 1000) / ((24 * 60) * 60)) & 65535;
game_seed_today = game_seed;
game_seed_start = game_seed - (game_seed % 10);
mc = gfx.create_clip(_root, null);
mc.onEnterFrame = delegate(update);
mc.scrollRect = new flash.geom.Rectangle(0, 0, _root.scalar.ox, _root.scalar.oy);
levels = [];
levels[1] = new WetBaseMentLevel_level_01();
levels[3] = new WetBaseMentLevel_level_02();
levels[2] = new WetBaseMentLevel_level_03();
levels[4] = new WetBaseMentLevel_level_04();
levels[5] = new WetBaseMentLevel_level_05();
levels[7] = new WetBaseMentLevel_level_06();
levels[6] = new WetBaseMentLevel_level_07();
levels[8] = new WetBaseMentLevel_level_08();
levels[9] = new WetBaseMentLevel_level_09();
levels[10] = new WetBaseMentLevel_level_10();
var _local3 = 1;
for ( ; _local3 <= 10 ; _local3++) {
var _local6 = levels[_local3];
var _local4 = game_seed_start + (_local3 - 1);
if (_local4 > game_seed_today) {
_local4 = _local4 - 10;
}
_local6.game_seed = _local4;
}
var tf = function (_t, tim, id, anim, txt) {
var _local7 = {};
_local7.tim = tim + (txt.length * 2);
_local7.id = id;
_local7.txt = txt;
_local7.anim = anim;
_t[_t.length] = _local7;
};
var _local8 = function (_t, tim, id, anim, txt) {
tf(_t, tim, id, anim, txt);
};
var _local9 = function (_t, tim, id, anim, txt) {
tf(_t, tim, id, anim, txt);
tf(_t, 0, id, "idle", null);
};
var _local6 = levels[1];
_local6.name = "Well Hello";
var _local5 = [];
_local9(_local5, 25 * 1, 0, "roton", "Well hello down there!");
_local9(_local5, 25 * 1, 1, "confused", "Uhm, hello?");
_local9(_local5, 25 * 1, 0, "confused", "What are you doing in my basement?");
_local9(_local5, 25 * 1, 1, "indescribable", "I'm not really sure.");
_local9(_local5, 25 * 1, 0, "thoughtful", "Are you a plumber? I think I called for a plumber. There are some really nasty wet patches.");
_local9(_local5, 25 * 1, 1, "bird", "Do I look like a gay Italian to you?");
_local9(_local5, 25 * 1, 0, "sad", "I supose not, still, best to check with people isn't it?");
_local9(_local5, 25 * 1, 1, "idle", "Yes, quite.");
_local9(_local5, 25 * 1, 0, "devious", "Anyhow while you are down there. Do you think you could possibly jump around on platforms and collect things for me instead?");
_local9(_local5, 25 * 1, 1, "happy", "Oh sure, I'm really really good at that, that's not a problem. I'm just not much of a plumber.");
_local9(_local5, 25 * 1, 0, "excited", "Sweet! I've left a lot of meta down there, pick it all up for me and I promise to not lock you down there for the rest of your life.");
_local9(_local5, 25 * 1, 1, "confused", "Meta?");
_local9(_local5, 25 * 1, 0, "nerdy", "The white shiny spinny things.");
_local9(_local5, 25 * 1, 1, "hiphands", "Gotcha, no problem, I'm right on it, don't you worry it will be done in no time.");
_local8(_local5, 25 * 1, 0, "rotoff", "Excellent!");
_local8(_local5, 0, 1, "start", null);
_local6.chat_start = _local5;
_local6 = levels[3];
_local6.name = "Nowhere Pipes";
_local5 = [];
_local9(_local5, 25 * 1, 0, "roton", "I think these pipes were meant to go somewhere.");
_local9(_local5, 25 * 1, 1, "confused", "It's almost as if they were exclusively designed for jumping on.");
_local8(_local5, 25 * 1, 0, "rotoff", null);
_local8(_local5, 0, 1, "start", null);
_local6.chat_start = _local5;
_local6 = levels[2];
_local6.name = "Pidgin Jumps";
_local5 = [];
_local9(_local5, 25 * 1, 0, "roton", "Never give up, never surender!");
_local9(_local5, 25 * 1, 1, "confused", "Uhm, Mkay.");
_local8(_local5, 25 * 1, 0, "rotoff", null);
_local8(_local5, 0, 1, "start", null);
_local6.chat_start = _local5;
_local6 = levels[4];
_local6.name = "My first bouncy";
_local5 = [];
_local9(_local5, 25 * 1, 0, "roton", "A nice little bouncy in the middle will do wonders for your height.");
_local9(_local5, 25 * 1, 1, "confused", "Are your sure its safe?");
_local8(_local5, 25 * 1, 0, "nerdy", "Oh yes, almost certainly.");
_local8(_local5, 25 * 1, 0, "rotoff", "For me, anyway.");
_local8(_local5, 0, 1, "start", null);
_local6.chat_start = _local5;
_local6 = levels[5];
_local6.name = "Super fun-sucking";
_local5 = [];
_local9(_local5, 25 * 1, 0, "roton", "You might want to watch out for the super fun sucking pipes!");
_local9(_local5, 25 * 1, 1, "confused", "Because they are super fun?");
_local9(_local5, 25 * 1, 0, "idle", "No, because they are fun-sucking.");
_local9(_local5, 25 * 1, 1, "confused", "I feel so safe.");
_local8(_local5, 25 * 1, 0, "rotoff", "Excellent!");
_local8(_local5, 0, 1, "start", null);
_local6.chat_start = _local5;
_local6 = levels[7];
_local6.name = "Easy Travels";
_local5 = [];
_local9(_local5, 25 * 1, 0, "roton", "GO!");
_local9(_local5, 25 * 1, 1, "idle", "Gone!");
_local8(_local5, 25 * 1, 0, "rotoff", "Excellent!");
_local8(_local5, 0, 1, "start", null);
_local6.chat_start = _local5;
_local6 = levels[6];
_local6.name = "Bounce me Right";
_local5 = [];
_local9(_local5, 25 * 1, 0, "roton", "You are doing really well at this.");
_local9(_local5, 25 * 1, 1, "idle", "I am?");
_local8(_local5, 25 * 1, 0, "rotoff", "Yes, I think I shall keep you.");
_local8(_local5, 0, 1, "start", null);
_local6.chat_start = _local5;
_local6 = levels[8];
_local6.name = "Bouncyatorium";
_local5 = [];
_local9(_local5, 25 * 1, 0, "roton", "Ah, you have found my sweet bouncyatorium! Where good times and happy days are had by all.");
_local9(_local5, 25 * 1, 1, "confused", "By all?");
_local8(_local5, 25 * 1, 0, "nerdy", "Oh yes, some of my most memorable barfs happend right here.");
_local8(_local5, 25 * 1, 0, "rotoff", null);
_local8(_local5, 0, 1, "start", null);
_local6.chat_start = _local5;
_local6 = levels[9];
_local6.name = "Stairway to Ponyland";
_local5 = [];
_local9(_local5, 25 * 1, 0, "roton", "Bouncy stairway!");
_local9(_local5, 25 * 1, 1, "idle", "Why does it have to be bouncy?.");
_local9(_local5, 25 * 1, 0, "idle", "Because I like bouncy things!");
_local9(_local5, 25 * 1, 1, "idle", "Next time I get trapped in a basement it won't be this one.");
_local8(_local5, 25 * 1, 0, "rotoff", "Excellent!");
_local8(_local5, 0, 1, "start", null);
_local6.chat_start = _local5;
_local6 = levels[10];
_local6.name = "Ws Clown";
_local5 = [];
_local9(_local5, 25 * 1, 0, "idle", "You know how I said about letting you go free and stuff?");
_local9(_local5, 25 * 1, 1, "idle", "Yup!");
_local9(_local5, 25 * 1, 0, "idle", "Well this is the last batch of meta so let me help you out.");
_local9(_local5, 25 * 1, 1, "idle", "Really?");
_local9(_local5, 25 * 1, 1, "idle", "You?");
_local9(_local5, 25 * 1, 1, "idle", "Help?");
_local9(_local5, 25 * 1, 0, "start", "Yes, catch this.");
_local8(_local5, 0, 1, "start", null);
_local6.chat_start = _local5;
_local5 = [];
_local9(_local5, 25 * 1, 0, "idle", "OK! fine you win.");
_local9(_local5, 25 * 1, 0, "idle", "You may leave my basement!");
_local9(_local5, 25 * 1, 1, "idle", "For really really real?");
_local9(_local5, 25 * 1, 0, "idle", "Just go already,");
_local9(_local5, 25 * 1, 0, "idle", "and do not come back.");
_local9(_local5, 25 * 1, 1, "idle", "Wheeeeeeee!");
_local8(_local5, 0, 0, "end", null);
_local8(_local5, 0, 1, "end", null);
_local6.chat_end = _local5;
tards = [];
var _local7 = 1;
var _local4 = {};
_local4.name = "Rodger";
_local4.img1 = "vtard_rodger";
_local4.idx = _local7;
tards[_local7++] = _local4;
_local4 = {};
_local4.name = "Bonnie";
_local4.img1 = "vtard_bonnie";
_local4.idx = _local7;
tards[_local7++] = _local4;
_local4 = {};
_local4.name = "Blob Morley";
_local4.img1 = "vtard_morley";
_local4.idx = _local7;
tards[_local7++] = _local4;
_local4 = {};
_local4.name = "Plomb Silencieux";
_local4.img1 = "vtard_blob";
_local4.idx = _local7;
tards[_local7++] = _local4;
_local4 = {};
_local4.name = "Colon Mouseturd";
_local4.img1 = "vtard_colonel";
_local4.idx = _local7;
tards[_local7++] = _local4;
_local4 = {};
_local4.name = "Jonesy Dave";
_local4.img1 = "vtard_davey";
_local4.idx = _local7;
tards[_local7++] = _local4;
_local4 = {};
_local4.name = "Shi";
_local4.img1 = "vtard_shi";
_local4.idx = _local7;
tards[_local7++] = _local4;
_local4 = {};
_local4.name = "Italian Stalin";
_local4.img1 = "vtard_gay";
_local4.idx = _local7;
tards[_local7++] = _local4;
_local4 = {};
_local4.name = "Kolumbo";
_local4.img1 = "vtard_kolumbo";
_local4.idx = _local7;
tards[_local7++] = _local4;
_local4 = {};
_local4.name = "Polly";
_local4.img1 = "vtard_polly";
_local4.idx = _local7;
tards[_local7++] = _local4;
_local4 = {};
_local4.name = "Morf";
_local4.img1 = "vtard_morf";
_local4.idx = _local7;
tards[_local7++] = _local4;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
static function main() {
if (_root.kongregateServices != undefined) {
_root.kongregateServices.connect();
_root.wethidemochiads = true;
}
var _local2 = function (a, b) {
if (_root[a] == undefined) {
_root[a] = b;
}
};
_local2("host", "swf.wetgenes.com");
_root.gotoAndStop(1);
_local2("wp_xspf", "http://basement.wetgenes.com/swf/WetBaseMent.xspf");
_local2("wp_auto", 0);
_local2("wp_shuffle", 0);
_local2("wp_back", -16777216);
_local2("wp_fore", -1);
_root.cacheAsBitmap = false;
_root.newdepth = 1;
_root.mc_popup = gfx.create_clip(_root, 16383);
_root.popup = null;
_root.updates = MainStatic.update_setup();
_root.bmc = new bmcache();
_root.replay = new Replay();
_root.scalar = new Scalar(800, 600);
_root.poker = new Poker(false);
_root.loading = new Loading(true);
_root.wetplay = new WetPlayIcon();
_root.basement = new WetBaseMent();
_root.signals = new BetaSignals(_root.basement);
_root.comms = new BetaComms(_root.basement);
_root.wtf = new WTF("show_nowplaying");
}
function setup() {
state_last = null;
state = null;
state_next = null;
login = new Login(this);
play = new WetBaseMentPlay(this);
title = new WetBaseMentTitle(this, "title_all", play);
menu = title;
choose = new WetBaseMentChoose(this);
zoo = new WetBaseMentZoo(this);
about = new PlayAbout(this);
code = new PlayCode(this);
high = new PlayHigh(this, "hide_last");
over = new OverField({up:this, mc:gfx.create_clip(mc, 65544)});
over.setup();
state_next = "choose";
state_next = "title";
state_next = "login";
var _local2 = MainStatic.get_base_context_menu(this);
var _local4 = function () {
if ((this.state == "play") && ((this.play.gamemode == "race") && (!_root.popup))) {
this.state_next = this.state;
}
};
var _local3 = new ContextMenuItem("Restart this level.", delegate(_local4));
_local3.id = "restart";
_local3.visible = false;
_local2.customItems.push(_local3);
_root.menu = _local2;
_root.wonderfulls = null;
lv_wonderful = new LoadVars();
lv_wonderful.onLoad = delegate(lv_wonderful_post, lv_wonderful);
lv_wonderful.sendAndLoad("http://swf.wetgenes.com/swf/wonderful.php?id=5306", lv_wonderful, "POST");
}
function lv_wonderful_post() {
_root.wonderfulls = [];
var _local2 = 0;
for ( ; _local2 < 10 ; _local2++) {
if (lv_wonderful["txt" + _local2] || (lv_wonderful["jpg" + _local2] || (lv_wonderful["url" + _local2]))) {
_root.wonderfulls[_local2] = {url:lv_wonderful["url" + _local2], txt:lv_wonderful["txt" + _local2], img:lv_wonderful["jpg" + _local2], target:"_blank"};
} else {
break;
}
}
}
function update() {
var _local2 = new Date();
var _local3 = _local2.getTime();
MainStatic.choose_and_apply_scalar(this);
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();
}
_local3 = _local2.getTime();
old_time = _local3;
update_time = 0;
}
if (state) {
update_time = Math.floor((update_time * 3) / 4);
update_time = update_time + (_local3 - old_time);
if (update_time > 200) {
update_time = 200;
}
while (update_time >= 40) {
MainStatic.update_do(_root.updates);
this[state].update();
update_time = update_time - 40;
}
old_time = _local3;
}
}
function clean() {
}
//ASSetPropFlags(_local1, null, 1);
var level_idx = 1;
var tard_idx = 1;
}
Symbol 20526 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 20527 MovieClip [__Packages.xmlcache] Frame 0
class xmlcache
{
function xmlcache () {
}
function delegate(f, i) {
return(com.dynamicflash.utils.Delegate.create(this, f, i));
}
static function load(xml) {
var _local3 = _root.urlmap.map[xml.url];
if (_local3) {
xml.parseXML(_local3);
xml.onLoad("swf");
return(xml);
}
xml.load(xml.url);
return(xml);
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20528 MovieClip [__Packages.Swish] Frame 0
class Swish
{
var bms, mcs, w, h, cw, ch, style, _xmouse, _ymouse, sw, sh, smul, setup_done, smc, frame, update_do;
function Swish (opts) {
if (opts) {
prepare(opts);
}
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function rnd_seed(n) {
rnd_num = n & 65535;
}
function rnd() {
rnd_num = (((rnd_num + 1) * 75) - 1) % 65537;
return(rnd_num);
}
function prepare(opts) {
rnd_seed(getTimer() & 65535);
bms = [];
mcs = [];
w = 800;
h = 600;
cw = 8;
ch = 6;
style = "fade";
_xmouse = 0;
_ymouse = 0;
if (opts.mc) {
_xmouse = opts.mc._xmouse;
_ymouse = opts.mc._ymouse;
}
if (opts.style) {
style = opts.style;
}
if (opts.w) {
w = opts.w;
}
if (opts.h) {
h = opts.h;
}
if (opts.cw) {
w = opts.cw;
}
if (opts.ch) {
h = opts.ch;
}
sw = w / cw;
sh = h / ch;
if (opts.mc) {
switch (style) {
case "fade" :
smul = 0.8;
bms[0] = new flash.display.BitmapData(w, h, false, 0);
bms[0].draw(opts.mc);
break;
case "slide_left" :
bms[0] = new flash.display.BitmapData(w, h, false, 0);
bms[0].draw(opts.mc);
break;
case "sqr_plode" :
case "sqr_shrink" :
case "sqr_rollup" :
smul = 0.95;
var _local3 = new flash.display.BitmapData(w, h, false, 0);
_local3.draw(opts.mc);
var _local5 = 0;
// unexpected jump
for(;;){
_local5++;
if (_local5 >= ch) {
break;
}
var _local4 = 0;
for ( ; _local4 < cw ; _local4++) {
bms[(_local5 * cw) + _local4] = new flash.display.BitmapData(sw, sh, false, 0);
bms[(_local5 * cw) + _local4].copyPixels(_local3, new flash.geom.Rectangle(_local4 * sw, _local5 * sh, sw, sh), new flash.geom.Point(0, 0));
}
};
}
}
if (opts.smul) {
smul = opts.smul;
}
setup_done = false;
}
function setup() {
if (!_root.mc_swish) {
_root.mc_swish = gfx.create_clip(_root, 16382);
_root.scalar.apply(_root.mc_swish);
}
smc = _root.mc_swish;
smc._alpha = 100;
frame = -2;
switch (style) {
case "fade" :
case "slide_left" :
mcs[0] = gfx.create_clip(smc, null, 400, 300);
mcs[1] = gfx.create_clip(mcs[0], null, -400, -300);
mcs[1].attachBitmap(bms[0], 0, "auto", true);
break;
case "sqr_plode" :
var _local3 = 0;
for ( ; _local3 < ch ; _local3++) {
var _local2 = 0;
for ( ; _local2 < cw ; _local2++) {
var _local4 = gfx.create_clip(smc, null, (_local2 + 0.5) * sw, (_local3 + 0.5) * sw);
mcs[(_local3 * cw) + _local2] = _local4;
_local4.mc = gfx.create_clip(_local4, null, (-sw) / 2, (-sh) / 2);
_local4.mc.attachBitmap(bms[(_local3 * cw) + _local2], 0, "auto", true);
_local4.vx = ((rnd() / 32768) - 1) * 16;
_local4.vy = -16 + ((rnd() / 65536) * -16);
_local4.vr = _local4.vx * 0.5;
}
}
break;
case "sqr_shrink" :
_local3 = 0;
for ( ; _local3 < ch ; _local3++) {
var _local2 = 0;
for ( ; _local2 < cw ; _local2++) {
var _local4 = gfx.create_clip(smc, null, (_local2 + 0.5) * sw, (_local3 + 0.5) * sw);
mcs[(_local3 * cw) + _local2] = _local4;
_local4.mc = gfx.create_clip(_local4, null, (-sw) / 2, (-sh) / 2);
_local4.mc.attachBitmap(bms[(_local3 * cw) + _local2], 0, "auto", true);
_local4.vx = 0;
_local4.vy = 0;
_local4.vr = 4;
}
}
break;
case "sqr_rollup" :
_local3 = 0;
// unexpected jump
for(;;){
_local3++;
if (_local3 >= ch) {
break;
}
var _local5 = null;
if (_local3 & 1) {
var _local2 = 0;
for ( ; _local2 < cw ; _local2++) {
if (_local5) {
var _local4 = gfx.create_clip(_local5, null, sw, 0);
_local5 = _local4;
} else {
var _local4 = gfx.create_clip(smc, null, _local2 * sw, (_local3 + 1) * sw);
_local5 = _local4;
}
mcs[(_local3 * cw) + _local2] = _local4;
_local4.mc = gfx.create_clip(_local4, null, 0, -sh);
_local4.mc.attachBitmap(bms[(_local3 * cw) + _local2], 0, "auto", true);
}
} else {
var _local2 = cw - 1;
for ( ; _local2 >= 0 ; _local2--) {
if (_local5) {
var _local4 = gfx.create_clip(_local5, null, -sw, 0);
_local5 = _local4;
} else {
var _local4 = gfx.create_clip(smc, null, (_local2 + 1) * sw, (_local3 + 1) * sw);
_local5 = _local4;
}
mcs[(_local3 * cw) + _local2] = _local4;
_local4.mc = gfx.create_clip(_local4, null, -sw, -sh);
_local4.mc.attachBitmap(bms[(_local3 * cw) + _local2], 0, "auto", true);
}
}
};
}
update_do = delegate(check_update, null);
MainStatic.update_add(_root.updates, update_do);
setup_done = true;
return(this);
}
function check_update() {
if (!update()) {
clean();
}
}
function clean() {
if (!setup_done) {
return(false);
}
MainStatic.update_remove(_root.updates, update_do);
update_do = null;
setup_done = false;
var _local2 = 0;
for ( ; _local2 < mcs.length ; _local2++) {
if (mcs[_local2]) {
mcs[_local2].removeMovieClip();
}
}
bms = [];
mcs = [];
frame = 0;
_root.swish = null;
return(true);
}
function update() {
if (!setup_done) {
return(true);
}
frame++;
if (frame < 0) {
return(true);
}
switch (style) {
case "fade" :
smc._alpha = smc._alpha * smul;
if ((smc._alpha < 3) && (smc._alpha > -1)) {
smc._alpha = 0;
return(false);
}
return(true);
case "slide_left" :
mcs[0]._x = -900 + ((mcs[0]._x - -900) * 0.9);
if (mcs[0]._x < -800) {
return(false);
}
return(true);
case "sqr_plode" :
if (frame > 200) {
return(false);
}
var _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;
}
}
}
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 20529 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 20530 MovieClip [__Packages.Clown] Frame 0
class Clown
{
function Clown () {
}
static function tostr(num, len) {
var _local6 = num;
var _local7 = "";
var _local4 = 0;
for ( ; _local4 < len ; _local4++) {
var _local5 = _local6 & 63;
_local7 = _local7 + chars.charAt(_local5);
_local6 = _local6 >> 6;
}
return(_local7);
}
static function tonum(str, base, len) {
var _local8 = 1;
var _local7 = 0;
var _local6 = base;
for ( ; _local6 < (base + len) ; _local6++) {
var _local5 = str.charCodeAt(_local6);
_local7 = _local7 + (nums[_local5] * _local8);
_local8 = _local8 * 64;
}
return(_local7);
}
static function bits_to_str(arr, bits) {
if ((bits % 6) != 0) {
return(null);
}
var _local4 = "";
var _local5 = 0;
for ( ; _local5 < arr.length ; _local5++) {
_local4 = _local4 + tostr(arr[_local5], bits / 6);
}
return(_local4);
}
static function str_to_bits(str, off, bits) {
if ((bits % 6) != 0) {
return(null);
}
var _local7 = bits / 6;
var _local6 = [];
var _local8 = str.length;
var _local5 = off;
for ( ; _local5 < _local8 ; _local5 = _local5 + _local7) {
_local6[_local6.length] = tonum(str, _local5, _local7);
}
return(_local6);
}
static function str_to_pak(str) {
var _local4 = str.length;
var _local3 = tostr(_local4, 4);
var _local5 = 0;
for ( ; _local5 < _local4 ; _local5 = _local5 + 3) {
if ((_local5 + 3) <= _local4) {
var _local7 = str.charCodeAt(_local5 + 0);
_local7 = _local7 + (str.charCodeAt(_local5 + 1) * 256);
_local7 = _local7 + (str.charCodeAt(_local5 + 2) * 65536);
_local3 = _local3 + tostr(_local7, 4);
} else {
var _local7 = str.charCodeAt(_local5 + 0);
if ((_local5 + 1) < _local4) {
_local7 = _local7 + (str.charCodeAt(_local5 + 1) * 256);
}
if ((_local5 + 2) < _local4) {
_local7 = _local7 + (str.charCodeAt(_local5 + 2) * 65536);
}
_local3 = _local3 + tostr(_local7, 4);
}
}
return(_local3);
}
static function pak_to_str(pak) {
var _local3 = "";
var _local4 = tonum(pak, 0, 4);
var _local6 = 4;
var _local5 = 0;
for ( ; _local5 < _local4 ; _local5 = _local5 + 3) {
if (_local6 > pak.length) {
break;
}
if ((_local5 + 3) <= _local4) {
var _local8 = tonum(pak, _local6, 4);
_local6 = _local6 + 4;
_local3 = _local3 + String.fromCharCode(_local8 & 255, (_local8 >> 8) & 255, (_local8 >> 16) & 255);
} else {
var _local8 = tonum(pak, _local6, 4);
_local6 = _local6 + 4;
_local3 = _local3 + String.fromCharCode(_local8 & 255);
if ((_local5 + 1) < _local4) {
_local3 = _local3 + String.fromCharCode((_local8 >> 8) & 255);
}
if ((_local5 + 2) < _local4) {
_local3 = _local3 + String.fromCharCode((_local8 >> 16) & 255);
}
}
}
return(_local3);
}
//ASSetPropFlags(_local1, null, 1);
static var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static var nums = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 0, 63, 0, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 62, 0, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
Symbol 20531 MovieClip [__Packages.WetBaseMentLevel_level_01] Frame 0
class WetBaseMentLevel_level_01
{
function WetBaseMentLevel_level_01 () {
}
//ASSetPropFlags(_local1, null, 1);
var img_bak = "level_01_bak";
var img_for = "level_01_for";
var name = "level_01";
var col = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 254, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 0, 254, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
}
Symbol 20532 MovieClip [__Packages.WetBaseMentLevel_level_05] Frame 0
class WetBaseMentLevel_level_05
{
function WetBaseMentLevel_level_05 () {
}
//ASSetPropFlags(_local1, null, 1);
var img_bak = "level_05_bak";
var img_for = "level_05_for";
var name = "level_05";
var col = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 0, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 222, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
}
Symbol 20533 MovieClip [__Packages.WetBaseMentLevel_level_09] Frame 0
class WetBaseMentLevel_level_09
{
function WetBaseMentLevel_level_09 () {
}
//ASSetPropFlags(_local1, null, 1);
var img_bak = "level_09_bak";
var img_for = "level_09_for";
var name = "level_09";
var col = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 0, 253, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 254, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 238, 0, 0, 252, 0, 0, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 254, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 252, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 17, 17, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
}
Symbol 20534 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;
}
mc.newdepth = mc.newdepth + 1;
var _local9 = mc.createEmptyMovieClip("mc" + depth, depth);
_local9.newdepth = 0;
if (px != null) {
_local9._x = px;
}
if (py != null) {
_local9._y = py;
}
if (sx != null) {
_local9._xscale = sx;
}
if (sy != null) {
_local9._yscale = sy;
}
if (rot != null) {
_local9._rotation = rot;
}
return(_local9);
}
static function add_clip(mc, str, depth, px, py, sx, sy, rot) {
if (mc.newdepth == undefined) {
mc.newdepth = 0;
}
if (depth == null) {
depth = ++mc.newdepth;
}
var _local10 = mc.attachMovie(str, "mc" + depth, depth);
_local10.newdepth = 0;
if (px != null) {
_local10._x = px;
}
if (py != null) {
_local10._y = py;
}
if (sx != null) {
_local10._xscale = sx;
}
if (sy != null) {
_local10._yscale = sy;
}
if (rot != null) {
_local10._rotation = rot;
}
return(_local10);
}
static function clear(mc) {
mc.style = [];
mc.style.out = -1;
mc.style.fill = -1;
mc.clear();
}
static function create_rounded_text_button(mc, depth, x, y, w, h, b, c, l) {
if (b == null) {
b = 3;
}
if (c == null) {
c = 8;
}
if (l == null) {
l = 2;
}
draw_rounded_rectangle(mc, b, c, l, x, y, w, h);
var _local11 = create_text_html(mc, depth, x, y, w, h);
return(_local11);
}
static function draw_rounded_rectangle(mc, b, c, l, x, y, w, h) {
if (l != 0) {
mc.lineStyle(l, mc.style.out & 16777215, (((mc.style.out >> 24) & 255) * 100) / 255);
} else {
mc.lineStyle(undefined, undefined);
}
mc.moveTo((x + b) + c, y + b);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.lineTo(((x + w) - b) - c, y + b);
mc.curveTo((x + w) - b, y + b, (x + w) - b, (y + b) + c);
mc.lineTo((x + w) - b, ((y + h) - b) - c);
mc.curveTo((x + w) - b, (y + h) - b, ((x + w) - b) - c, (y + h) - b);
mc.lineTo((x + b) + c, (y + h) - b);
mc.curveTo(x + b, (y + h) - b, x + b, ((y + h) - b) - c);
mc.lineTo(x + b, (y + b) + c);
mc.curveTo(x + b, y + b, (x + b) + c, y + b);
mc.endFill();
}
static function draw_box(mc, l, x, y, w, h) {
if (l != 0) {
mc.lineStyle(l, mc.style.out & 16777215, (((mc.style.out >> 24) & 255) * 100) / 255);
} else {
mc.lineStyle(undefined, undefined);
}
mc.moveTo(x, y);
mc.beginFill(mc.style.fill & 16777215, (((mc.style.fill >> 24) & 255) * 100) / 255);
mc.lineTo(x + w, y);
mc.lineTo(x + w, y + h);
mc.lineTo(x, y + h);
mc.lineTo(x, y);
mc.endFill();
}
static function adjust_allmovieclips(base, funk) {
for (var nam in base) {
var _local4 = base[nam];
if (typeof(_local4) == "movieclip") {
adjust_allmovieclips(_local4, funk);
}
}
funk(base);
}
static function setscroll(mc, minx, miny, sizx, sizy) {
mc.scrollRect = new flash.geom.Rectangle(minx, miny, sizx, sizy);
}
static function dropshadow(mc, a, b, c, d, e, f, g, h) {
mc.filters = [new flash.filters.DropShadowFilter(a, b, c, d, e, f, g, h)];
}
static function glow(mc, a, b, c, d, e, f, g, h) {
mc.filters = [new flash.filters.GlowFilter(a, b, c, d, e, f, g, h)];
}
static function blur(mc, a, b, c) {
mc.filters = [new flash.filters.BlurFilter(a, b, c)];
}
static function clear_filters(mc) {
mc.filters = null;
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 20535 MovieClip [__Packages.TalkyBub] Frame 0
class TalkyBub
{
var up, origin_mc, x, y, offorg, mc_floater, mc_floaterz, tf_floater, float_str, float_time, active, snap;
function TalkyBub (_up, _orig, _x, _y, _offorg) {
up = _up;
origin_mc = _orig;
x = _x;
y = _y;
offorg = _offorg;
mc_floater = gfx.create_clip(up.mc, null);
gfx.clear(mc_floater);
mc_floater.w = 200;
mc_floater.h = 80;
mc_floaterz = gfx.create_clip(mc_floater, null);
mc_floaterz._x = 100;
mc_floaterz._y = 40;
tf_floater = gfx.create_text_html(mc_floaterz, null, -100, 0, 200, 200);
gfx.dropshadow(mc_floater, 5, 45, 0, 0.5, 10, 10, 2, 3);
float_str = "";
float_time = -100;
active = false;
snap = true;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function display(str, tim) {
if ((str != null) && (float_str != str)) {
float_str = str;
gfx.set_text_html(tf_floater, 18, 0, ("<p align=\"center\">" + str) + "</p>");
mc_floater.h = tf_floater.textHeight + 6;
gfx.clear(mc_floaterz);
mc_floaterz.style.out = -1;
mc_floaterz.style.fill = -3355444;
gfx.draw_box(mc_floaterz, 4, -100, (-mc_floater.h) / 2, 200, mc_floater.h);
tf_floater._y = (-mc_floater.h) / 2;
mc_floaterz._y = mc_floater.h / 2;
}
if (mc_floater.getDepth() != up.topdepth) {
mc_floater.swapDepths(up.topdepth);
}
float_time = tim;
active = true;
update();
}
function update() {
if (active) {
if (origin_mc) {
if (offorg == "global") {
var _local20 = {x:0, y:0};
origin_mc.localToGlobal(_local20);
_local20.x = _local20.x + x;
_local20.y = _local20.y + y;
up.mc.globalToLocal(_local20);
} else {
var _local20 = {x:x, y:y};
origin_mc.localToGlobal(_local20);
up.mc.globalToLocal(_local20);
}
lastpx = _local20.x;
lastpy = _local20.y;
} else {
var _local20 = {x:lastpx, y:lastpy};
}
if (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;
active = false;
snap = true;
}
}
var _local2 = mc_floater.w;
var _local3 = mc_floater.h;
var _local10 = up.w;
var _local11 = up.h;
var _local6 = _local20.x - (_local10 / 2);
var _local7 = _local20.y - (_local11 / 2);
var _local14 = _local6 * _local6;
var _local18 = ((_local6 < 0) ? (-_local6) : (_local6));
var _local15 = _local7 * _local7;
var _local19 = ((_local7 < 0) ? (-_local7) : (_local7));
var _local13 = _local14 + _local15;
var _local12 = Math.sqrt(_local13);
if (_local12 == 0) {
_local12 = 1;
_local6 = 0;
_local7 = 1;
}
var _local8 = _local6 / _local12;
var _local9 = _local7 / _local12;
var _local16 = ((-_local8) * _local2) * 1.73;
var _local17 = ((-_local9) * _local3) * 1.73;
if ((_local18 / 2) > _local19) {
if (_local6 < 0) {
var _local4 = _local20.x;
var _local5 = (_local20.y + _local17) - (_local3 / 2);
_local4 = _local4 + 50;
} else {
var _local4 = _local20.x - _local2;
var _local5 = (_local20.y + _local17) - (_local3 / 2);
_local4 = _local4 - 50;
}
} else if (_local18 < (_local19 / 2)) {
if (_local7 < 0) {
var _local4 = (_local20.x + _local16) - (_local2 / 2);
var _local5 = _local20.y;
_local5 = _local5 + 50;
} else {
var _local4 = (_local20.x + _local16) - (_local2 / 2);
var _local5 = _local20.y - _local3;
_local5 = _local5 - 50;
}
} else if (_local6 < 0) {
if (_local7 < 0) {
var _local4 = _local20.x;
var _local5 = _local20.y;
_local4 = _local4 + 50;
_local5 = _local5 + 50;
} else {
var _local4 = _local20.x;
var _local5 = _local20.y - _local3;
_local4 = _local4 + 50;
_local5 = _local5 - 50;
}
} else if (_local7 < 0) {
var _local4 = _local20.x - _local2;
var _local5 = _local20.y;
_local4 = _local4 - 50;
_local5 = _local5 + 50;
} else {
var _local4 = _local20.x - _local2;
var _local5 = _local20.y - _local3;
_local4 = _local4 - 50;
_local5 = _local5 - 50;
}
if (active) {
if (snap) {
mc_floater._x = _local4;
mc_floater._y = _local5;
snap = false;
} else {
mc_floater._x = (mc_floater._x * 0.75) + (_local4 * 0.25);
mc_floater._y = (mc_floater._y * 0.75) + (_local5 * 0.25);
}
}
if (float_time > 0) {
gfx.clear(mc_floaterz);
mc_floaterz.style.out = -1;
mc_floaterz.style.fill = -3355444;
_local6 = _local20.x - (mc_floater._x + mc_floaterz._x);
_local7 = _local20.y - (mc_floater._y + mc_floaterz._y);
_local14 = _local6 * _local6;
_local15 = _local7 * _local7;
_local13 = _local14 + _local15;
_local12 = Math.sqrt(_local13);
if (_local12 == 0) {
_local12 = 1;
_local6 = 0;
_local7 = 1;
}
_local8 = _local6 / _local12;
_local9 = _local7 / _local12;
mc_floaterz.lineStyle(undefined, undefined);
mc_floaterz.moveTo(_local6 - (_local8 * 40), _local7 - (_local9 * 40));
mc_floaterz.beginFill(16777215, 100);
mc_floaterz.lineTo((_local9 * mc_floater.h) * 0.25, (_local8 * (-mc_floater.h)) * 0.25);
mc_floaterz.lineTo((_local9 * (-mc_floater.h)) * 0.25, (_local8 * mc_floater.h) * 0.25);
mc_floaterz.lineTo(_local6 - (_local8 * 40), _local7 - (_local9 * 40));
mc_floaterz.endFill();
gfx.draw_box(mc_floaterz, 4, -100, (-mc_floater.h) / 2, 200, mc_floater.h);
}
}
return(false);
}
//ASSetPropFlags(_local1, null, 1);
var lastpx = 0;
var lastpy = 0;
}
Symbol 20536 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 20537 MovieClip [__Packages.Vtard3d] Frame 0
class Vtard3d
{
var up, mc, minion, px, py, pz, vx, vy, vz, anim, talk, frame, frame_wait, dx, dy, dz;
function Vtard3d (_up) {
up = _up;
}
function delegate(f, d) {
return(com.dynamicflash.utils.Delegate.create(this, f, d));
}
function setup(nam) {
mc = gfx.create_clip(up.mc, null);
mc.hitArea = gfx.create_clip(mc, 65535);
gfx.clear(mc.hitArea);
gfx.draw_box(mc.hitArea, 0, -40, -70, 60, 70);
mc.hitArea._visible = false;
mc.hitArea = mc.hitArea;
minion = new Minion(this);
minion.setup(nam, 50, 94);
px = 0;
py = 0;
pz = 0;
vx = 0;
vy = 0;
vz = 0;
anim = null;
update();
}
function clean() {
mc.removeMovieClip();
}
function update() {
vx = 0;
vz = 0;
if (rndcount <= 0) {
rndcount = 10 + (up.rnd() % (25 * 5));
switch (up.rnd() % 14) {
case 0 :
rndstate = "idle";
break;
case 1 :
rndstate = "left";
break;
case 2 :
rndstate = "right";
break;
case 3 :
rndstate = "in";
break;
case 4 :
rndstate = "out";
break;
case 5 :
rndstate = "leftin";
break;
case 6 :
rndstate = "leftout";
break;
case 7 :
rndstate = "rightin";
break;
case 8 :
rndstate = "rightout";
break;
default :
rndstate = "pose";
if (rndcount > (25 * 1)) {
rndcount = 25 * 1;
}
switch (up.rnd() % 19) {
case 0 :
rndpose = "bird";
break;
case 1 :
rndpose = "gunner";
break;
case 2 :
rndpose = "hiphands";
break;
case 3 :
rndpose = "teapot";
break;
case 4 :
rndpose = "angry";
break;
case 5 :
rndpose = "confused";
break;
case 6 :
rndpose = "determind";
break;
case 7 :
rndpose = "devious";
break;
case 8 :
rndpose = "embarrassed";
break;
case 9 :
rndpose = "energetic";
break;
case 10 :
rndpose = "excited";
break;
case 11 :
rndpose = "happy";
break;
case 12 :
rndpose = "indescribable";
break;
case 13 :
rndpose = "nerdy";
break;
case 14 :
rndpose = "sad";
break;
case 15 :
rndpose = "scared";
break;
case 16 :
rndpose = "sleepy";
break;
case 17 :
rndpose = "thoughtful";
break;
case 18 :
rndpose = "working";
}
if ((up.rnd() % 4) != 0) {
break;
}
talk.display(rndsays[up.rnd() % rndsays.length], rndcount);
}
} else {
rndcount--;
}
switch (rndstate) {
case "pose" :
vx = 0;
vz = 0;
break;
case "idle" :
vx = 0;
vz = 0;
break;
case "left" :
vx = -2.5;
vz = 0;
break;
case "leftin" :
vx = -2.5;
vz = -0.5;
break;
case "leftout" :
vx = -2.5;
vz = 0.5;
break;
case "right" :
vx = 2.5;
vz = 0;
break;
case "rightin" :
vx = 2.5;
vz = -0.5;
break;
case "rightout" :
vx = 2.5;
vz = 0.5;
break;
case "in" :
vx = 0;
vz = -2.5;
break;
case "out" :
vx = 0;
vz = 2.5;
}
px = px + vx;
py = py + vy;
pz = pz + vz;
if (px < (up.x3_min + 20)) {
px = up.x3_min + 20;
rndstate = "right";
}
if (py < (up.y3_min + 0)) {
py = up.y3_min + 0;
rndcount = 0;
}
if (pz < (up.z3_min + 20)) {
pz = up.z3_min + 20;
rndstate = "out";
}
if (px > (up.x3_max - 20)) {
px = up.x3_max - 20;
rndstate = "left";
}
if (py > (up.y3_max - 0)) {
py = up.y3_max - 0;
rndcount = 0;
}
if (pz > (up.z3_max - 20)) {
pz = up.z3_max - 20;
rndstate = "in";
}
var _local3 = Math.floor((px + 5) / 10) * 10;
var _local4 = Math.floor((py + 5) / 10) * 10;
var _local5 = Math.floor((pz + 5) / 10) * 10;
if ((vx == 0) && (vz == 0)) {
if (anim != "idle") {
anim = "idle";
frame = 0;
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
} else if ((vx * vx) >= (vz * vz)) {
if (vx > 0) {
if (anim != "right") {
anim = "right";
frame = 3;
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
} else if (anim != "left") {
anim = "left";
frame = 3;
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
} else if (vz > 0) {
if (anim != "in") {
anim = "in";
frame = 3;
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
} else if (anim != "out") {
anim = "out";
frame = 3;
frame_wait = 0;
dx = _local3;
dy = _local4;
dz = _local5;
}
switch (anim) {
case "idle" :
frame_wait++;
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 6;
if (rndstate == "pose") {
minion.display(rndpose, frame);
} else {
minion.display("idle", frame);
}
break;
case "left" :
frame_wait++;
var _local6 = (_local3 - dx) / -10;
if (_local6 != 0) {
frame = frame + _local6;
frame_wait = 0;
}
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 8;
minion.display("left", frame);
break;
case "right" :
frame_wait++;
_local6 = (_local3 - dx) / 10;
if (_local6 != 0) {
frame = frame + _local6;
frame_wait = 0;
}
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 8;
minion.display("right", frame);
break;
case "in" :
frame_wait++;
_local6 = (_local5 - dz) / 10;
if (_local6 != 0) {
frame = frame + _local6;
frame_wait = 0;
}
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 4;
minion.display("in", frame);
break;
case "out" :
frame_wait++;
_local6 = (_local5 - dz) / -10;
if (_local6 != 0) {
frame = frame + _local6;
frame_wait = 0;
}
if (frame_wait > 8) {
frame = frame + 1;
frame_wait = 0;
}
dx = _local3;
dy = _local4;
dz = _local5;
frame = frame % 4;
minion.display("out", frame);
}
mc._x = (up.x2 + dx) + (dz / 4);
mc._y = (up.y2 - dy) - (dz / 4);
}
//ASSetPropFlags(_local1, null, 1);
var rndsays = ["Can you smell this?", "Is today tuesday or wednesday?", "You can trust me.", "Do not trust me.", "You seem slow.", "I can count to four.", "Your a tard.", "I swim like a kitten.", "I sniff melons.", "I like cheese!", "Choose me!", "ZzZzZ", "MooMOO!"];
var rndstate = "";
var rndcount = 0;
var rndpose = 0;
}
Symbol 20538 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _sendChannelName, _rcvChannelName, onError, _sendChannel, _loader, _loaderListener, _rcvChannel, _listenChannel;
var __get__comChannelName;
function MochiServices () {
}
static function __get__id() {
return(_id);
}
static function __get__clip() {
return(_container);
}
static function getVersion() {
return("1.1");
}
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 __get__isNetworkAvailable() {
if (System.security) {
var _local2 = System.security;
if (_local2.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function __set__comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
return(__get__comChannelName());
}
static function __get__connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_container == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
if (_sendChannel._queue != undefined) {
}
if (_container != undefined) {
_container.removeMovieClip();
delete _container;
}
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip.createEmptyMovieClip("__mochiservicesMC", 16384);
} else {
_container = _root.createEmptyMovieClip("__mochiservicesMC", _root.getNextHighestDepth());
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
if (!isNetworkAvailable) {
return(undefined);
}
allowDomains(_gatewayURL);
_loader = new MovieClipLoader();
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.comChannelName = args.newChannel;
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local3 = pkg.callbackID;
var _local4 = this._callbacks[_local3];
if (!_local4) {
return(undefined);
}
var _local5 = _local4.callbackMethod;
var _local6 = _local4.callbackObject;
if (_local6 && (typeof(_local5) == "string")) {
_local5 = _local6[_local5];
}
if (_local5 != undefined) {
_local5.apply(_local6, pkg.args);
}
delete this._callbacks[_local3];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else if (_container == undefined) {
onError.apply(null, ["NotConnected"]);
} else {
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 20539 MovieClip [__Packages.ScrollOn] Frame 0
class ScrollOn
{
var up, rot, mc, tf, show, next, x, w, h, fntsiz, fntcol, xp, lastdown, tw;
function ScrollOn (_up, _rot) {
up = _up;
rot = 0;
if (typeof(_rot) == "number") {
rot = _rot;
}
}
function delegate(f) {
return(com.dynamicflash.utils.Delegate.create(this, f));
}
function setup() {
mc = gfx.create_clip(up.mc, null);
gfx.dropshadow(mc, 2, 45, 0, 1, 4, 4, 2, 3);
mc.filters = [new flash.filters.DropShadowFilter(2, 45, 0, 1, 4, 4, 2, 3)];
tf = gfx.create_text_html(mc, null, 0, 0, 4096, 64);
tf._rotation = rot;
mc.cacheAsBitmap = true;
show = null;
next = null;
x = 0;
w = 800;
h = 32;
fntsiz = 24;
fntcol = 16777215 /* 0xFFFFFF */;
xp = -1;
if (rot == -90) {
gfx.setscroll(mc, 0, 0, h, w);
} else {
gfx.setscroll(mc, 0, 0, w, h);
}
mc._visible = false;
}
function clean() {
mc.removeMovieClip();
}
function update() {
if (show != null) {
if (lastdown > 0) {
lastdown--;
}
x = x + xp;
if (x < (-8 - tw)) {
mc._visible = false;
show = null;
} else {
mc._visible = true;
if (rot == -90) {
gfx.setscroll(mc, 0, x - w, h, w);
} else {
gfx.setscroll(mc, -x, 0, w, h);
}
}
if ((!_root.popup) && (!_root.login)) {
if (_root.poker.poke_down) {
if ((mc._xmouse >= 0) && ((mc._xmouse < w) && ((mc._ymouse >= 0) && (mc._ymouse < h)))) {
lastdown = 60;
}
}
if (_root.poker.poke_up) {
if (lastdown > 0) {
if ((mc._xmouse >= 0) && ((mc._xmouse < w) && ((mc._ymouse >= 0) && (mc._ymouse < h)))) {
if (mc._visible) {
if (show.url) {
if (show.target) {
getURL (show.url, show.target);
} else {
getURL (show.url, "_self");
}
}
}
}
}
}
}
} else {
mc._visible = false;
lastdown = 0;
if (next) {
show = next;
next = null;
gfx.set_text_html(tf, fntsiz, fntcol, show.txt);
x = w;
tw = tf.textWidth;
}
}
}
//ASSetPropFlags(_local1, null, 1);
}
Symbol 1809 MovieClip [title] Frame 37
stop();
Symbol 2229 MovieClip [levels] Frame 17
stop();
Symbol 2755 MovieClip [end1] Frame 3
stop();
Symbol 2788 MovieClip [end2] Frame 3
stop();
Symbol 2865 MovieClip [end3] Frame 4
stop();
Symbol 2942 MovieClip [zoo] Frame 4
stop();