STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228091
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/79018398?noj=FRM79018398-4DC" width="1" height="1"></div>

WetBaseMent.swf

This is the info page for
Flash #145526

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 3 register { frame 49 { stop(); } } movieClip 1619 WetPlayIcon_bmp { } movieClip 1622 WetPlayIcon { } movieClip 1623 splash_ng { } movieClip 1626 splash_ag { } movieClip 1629 splash_kg { } movieClip 20480 __Packages.bmcache_item { #initclip if (!bmcache_item) { _global.bmcache_item = function (_up, _idstr, _callback, _cb_data) { this.up = _up; this.idstr = _idstr; this.callback = _callback; this.cb_data = _cb_data; }; var v1 = _global.bmcache_item.prototype; v1.delegate = function (f, i) { return com.dynamicflash.utils.Delegate.create(this, f, i); }; v1.loaded_mc = function () { if (!this.bmp) { var v2 = this.cb_data.bmpw ? this.cb_data.bmpw : 100; var v3 = this.cb_data.bmph ? this.cb_data.bmph : 100; var v4 = this.cb_data.bmpt ? this.cb_data.bmpt : true; this.bmp = new flash.display.BitmapData(v2, v3, v4, 0); this.bmp.draw(this.bmp_mc.loadhere); if (this.bmp_mc.loadhere2) { var v5 = new flash.display.BitmapData(v2, v3, v4, 0); v5.draw(this.bmp_mc.loadhere2); this.bmp.copyChannel(v5, new flash.geom.Rectangle(0, 0, v2, v3), new flash.geom.Point(0, 0), 2, 8); } this.bmp_mc.removeMovieClip(); this.bmp_mc = null; } if (this.cb_data.onload) { this.cb_data.onload(this); } }; v1.chop = function (from, px, py, sx, sy) { this.cb_data = from.cb_data; var v7 = this.cb_data.bmpt ? this.cb_data.bmpt : true; this.bmp = new flash.display.BitmapData(sx, sy, v7, 0); this.bmp.copyPixels(from.bmp, new flash.geom.Rectangle(px, py, sx, sy), new flash.geom.Point(0, 0)); }; v1.create = function (mc, idstr, depth) { if (this.bmp) { var v6 = this.cb_data.hx ? this.cb_data.hx : 0; var v7 = this.cb_data.hy ? this.cb_data.hy : 0; var v8 = this.cb_data.px ? this.cb_data.px : 0; var v9 = this.cb_data.py ? this.cb_data.py : 0; var v10 = this.cb_data.sx ? this.cb_data.sx : 100; var v11 = this.cb_data.sy ? this.cb_data.sy : 100; var v12 = this.cb_data.rot ? this.cb_data.rot : 0; var v5 = this.up.create(mc, null, depth); v5.createEmptyMovieClip('loadhere', 0); v5.loadhere.attachBitmap(this.bmp, 0, 'auto', true); v5.loadhere._x = v6; v5.loadhere._y = v7; v5._x = v8; v5._y = v9; v5._xscale = v10; v5._yscale = v11; v5._rotation = v12; return v5; } v5 = this.callback(mc, idstr, depth, this.cb_data, this); return v5; }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20481 __Packages.WetBaseMentTitleDat { #initclip if (!WetBaseMentTitleDat) { _global.WetBaseMentTitleDat = function (_up, _play) { this.up = _up; this.play = _play; }; var v1 = _global.WetBaseMentTitleDat.prototype; v1.delegate = function (f, d, i) { return com.dynamicflash.utils.Delegate.create(this, f, d, i); }; v1.days_to_string = function (days) { if (days == this.up.up.game_seed_today) { return 'Today'; } var v3 = new Date(); v3.setTime(days * 24 * 60 * 60 * 1000); var v4 = alt.Sprintf.format('%04d%02d%02d', v3.getFullYear(), v3.getMonth() + 1, v3.getDate()); return v4; }; v1.setup = function () { this.minions = []; this.frame = 0; switch (this.up.state) { if (this.up.state !== 'zoo_all') { } else { case 'levels_all': var v3 = new Array(); var v2 = 0; goto 3551; for (;;) { ++v2; label 3551: if (v2 >= 10) break; v3[v2] = new Array(); v3[v2][0] = 0; v3[v2][1] = 'me'; v3[v2][2] = this.play.up.game_seed_today - v2; } this.play.scores_hard = v3; this.play.scores_hard_flag = false; v3 = new Array(); v2 = 0; goto 3747; for (;;) { ++v2; label 3747: if (v2 >= 10) break; v3[v2] = new Array(); v3[v2][0] = 0; v3[v2][1] = 'me'; v3[v2][2] = this.play.up.game_seed_today - v2; } this.play.scores_easy = v3; this.play.scores_easy_flag = false; } } }; v1.clean = function () { var v2 = 0; goto 3951; for (;;) { ++v2; label 3951: if (v2 >= this.minions.length) break; this.minions[v2].clean(); } this.minions = []; }; v1.update = function () { ++this.anim_idx; var v2 = null; this.up.mcs.story_over_1._visible = false; this.up.mcs.race_over_1._visible = false; if (this.anim_over == 'race') { var v3 = Math.floor(this.anim_idx / 2) % 10; v2 = this.up.mcs.race_over_1; } else { if (this.anim_over == 'story') { var v3 = Math.floor(this.anim_idx / 2) % 10; v2 = this.up.mcs.story_over_1; } } if (v2) { gfx.glow(v2, 16777215, 0.8, 16, 16, 1, 3, false, false); v2.gotoAndStop(1); v2.gotoAndStop(v2.baseframe + v3); v2._visible = true; } ++this.frame; var v4 = Math.floor(this.frame / 6) % 6; v3 = 0; goto 4525; for (;;) { ++v3; label 4525: if (v3 >= this.minions.length) break; this.minions[v3].display('idle', v4); } if (this.up.state == 'end3_all') { var v6 = (this.frame % 100 - 50) / 50; if (v6 < 0) { v6 = -v6; } var v7 = v6 * v6; var v8 = v7 + v7 * 2 - v7 * v6 * 2; this.up.mcs.cage1.twistme._rotation = v8 * 60 - 30; this.up.mcs.minion1.twistme._rotation = v8 * 60 - 30; } if (this.up.mcs.whore) { if (!this.up.mcs.whore.whore.ad) { if (_root.wonderfulls) { this.up.mcs.whore.whore.ad = gfx.create_clip(this.up.mcs.whore.whore, null); this.up.mcs.whore.whore.ad.loadMovie(_root.wonderfulls[0].img); } } } }; v1.saves_reset_temps = function () {}; v1.saves_reset = function () { this.up.saves = {}; }; v1.update_display = function () { var v2 = 0; goto 5163; for (;;) { ++v2; label 5163: if (v2 >= this.up.mcs_max) break; var v3 = this.up.mcs[v2]; var v4 = v3.nams; v3._visible = true; var v5 = this.nam_to_level(v4[0]); if (v5) { var v6 = this.up.up.levels[v5]; if (!v3.level) { var v8 = v3.getBounds(v3); v3.level = gfx.add_clip(v3, v6.img_bak, null, v8.xMin, v8.yMin, (v8.xMax - v8.xMin) / 8, (v8.yMax - v8.yMin) / 6); v3.date = gfx.create_text_html(this.up.mc, null, (v8.xMax + v8.xMin) / 2 - 80, v8.yMin - 14, 160, 20); v3.score = gfx.create_text_html(this.up.mc, null, (v8.xMax + v8.xMin) / 2 - 80, v8.yMax - 7, 160, 20); if (v6.game_seed == this.up.up.game_seed_today) { gfx.set_text_html(v3.date, 18, 16777215, '<p align="center"><b>' + this.days_to_string(v6.game_seed) + '</b></p>'); } else { gfx.set_text_html(v3.date, 12, 16777215, '<p align="center">' + this.days_to_string(v6.game_seed) + '</p>'); } gfx.set_text_html(v3.score, 14, 16777215, '<p align="center">' + '0' + '</p>'); } } switch (v4[0]) { case 'minion': case 'minion1': case 'minion2': case 'minion3': if (!v3.minion) { v8 = v3.getBounds(v3); v3.minimc = gfx.create_clip(v3, null, (v8.xMin + v8.xMax) / 2, v8.yMax, v8.xMax - v8.xMin, v8.yMax - v8.yMin); v3.minion = new Minion({'mc': v3.minimc}); v3.minion.setup(this.up.up.tards[this.up.up.tard_idx].img1, 50, 100); this.minions[this.minions.length] = v3.minion; } break; case 'whore': v8 = v3.getBounds(v3); v3.whore = gfx.create_clip(v3, null, v8.xMin, v8.yMin, 100 * (v8.xMax - v8.xMin) / 125, 100 * (v8.yMax - v8.yMin) / 125); v3._visible = false; break; case 'digg': v8 = v3.getBounds(v3); v3.icon = gfx.add_clip(v3, 'icon_digg', null, v8.xMin, v8.yMin, 100 * (v8.xMax - v8.xMin) / 16, 100 * (v8.yMax - v8.yMin) / 16); v3._visible = false; break; case 'stumble': v8 = v3.getBounds(v3); v3.icon = gfx.add_clip(v3, 'icon_stumble', null, v8.xMin, v8.yMin, 100 * (v8.xMax - v8.xMin) / 16, 100 * (v8.yMax - v8.yMin) / 16); v3._visible = false; break; case 'shop': v3._visible = false; break; default: if (v4[1] == 'over') { v3._visible = false; } continue; } } if (this.play.gameskill == 'hard') { this.up.mcs.hard._visible = true; this.up.mcs.easy._visible = false; } else { this.up.mcs.hard._visible = false; this.up.mcs.easy._visible = true; } switch (this.up.state) { case 'end1_all': this.up.talky_display('FREEEEDOM!!!'); break; case 'end2_all': this.up.talky_display('uhm?'); break; case 'end3_all': this.up.talky_display('HELP!!!'); break; case 'levels_all': _root.signals.signal('WetBaseMent', 'set', this); if (this.play.gameskill == 'easy') { if (!this.play.scores_easy_flag) { this.get_last(); } } else { if (!this.play.scores_hard_flag) { this.get_last(); } } this.thunk_scores(); break; case 'zoo_all': this.play.gameskill = 'easy'; this.get_last(); } }; v1.get_last = function () { _root.signals.signal('WetBaseMent', 'set', this); ++this.last_id; this.last_type = this.play.gameskill; _root.comms.get_high('last', 'global', this.delegate(this.got_last, this.last_id)); }; v1.got_last = function (a, tid) { if (tid == this.last_id) { var v4 = 0; goto 7448; for (;;) { ++v4; label 7448: if (v4 >= 10) break; a[v4] = a[v4].split(';'); a[v4][0] = Math.floor(a[v4][0]); a[v4][2] = Math.floor(a[v4][2]); } if (this.last_type == 'easy') { this.play.scores_easy = a; this.play.scores_easy_flag = true; } else { this.play.scores_hard = a; this.play.scores_hard_flag = true; } this.thunk_scores(); } }; v1.thunk_scores = function () { if (this.up.state != 'levels_all') { return undefined; } if (this.play.gameskill == 'easy') { var v2 = this.play.scores_easy; } else { var v2 = this.play.scores_hard; } var v4 = 0; goto 7844; for (;;) { ++v4; label 7844: if (v4 >= 10) break; var v6 = alt.Sprintf.format('level%02d', v4 + 1); var v7 = this.up.mcs[v6]; var v8 = this.up.up.levels[v4 + 1]; var v3 = null; var v5 = 0; goto 8002; for (;;) { ++v5; label 8002: if (v5 >= 10) break; if (v2[v5][2] == v8.game_seed) { v3 = v2[v5]; } else {} } if (v3) { gfx.set_text_html(v7.score, 14, 16777215, '<p align="center">' + v3[0] + '</p>'); } else { gfx.set_text_html(v7.score, 14, 16777215, '<p align="center">' + '0' + '</p>'); } } }; v1.do_this = function (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 { this.do_def(me, act); } } } } }; v1.nam_to_level = function (nam) { var v3 = null; switch (nam) { return v3; case 'level10': v3 = 10; return v3; case 'level09': v3 = 9; return v3; case 'level08': v3 = 8; return v3; case 'level07': v3 = 7; return v3; case 'level06': v3 = 6; return v3; case 'level05': v3 = 5; return v3; case 'level04': v3 = 4; return v3; case 'level03': v3 = 3; return v3; case 'level02': v3 = 2; return v3; case 'level01': v3 = 1; return v3; } return v3; }; v1.butt_over = function (nam, me, act) { var v5 = this.nam_to_level(nam); this.do_over(me, act); switch (act) { case 'click': this.do_under(me, 'off'); _root.poker.ShowFloat(null, 0); if (v5 != null) { this.up.up.level_idx = v5; this.up.up.state_next = 'play'; this.play.gamemode = 'race'; this.play.clean_snapbmp(); _root.poker.ShowFloat(null, 0); } switch (nam) { case 'minion': ++this.up.up.tard_idx; if (this.up.up.tard_idx >= this.up.up.tards.length) { this.up.up.tard_idx = 1; } this.minions[0].setsoul(this.up.up.tards[this.up.up.tard_idx].img1); _root.poker.ShowFloat('<b>' + this.up.up.tards[this.up.up.tard_idx].name + '</b><br>Click to change your player avatar.', 25 * 10); break; case 'easy': case 'hard': me.filters = false; if (this.play.gameskill == 'easy') { this.play.gameskill = 'hard'; } else { if (this.play.gameskill == 'hard') { this.play.gameskill = 'easy'; } } this.update_display(); _root.signals.signal('WetBaseMent', 'set', this); this.update_display(); break; case 'mainmenu': this.up.state_next = 'title_all'; if (this.up.up.swish) { this.up.up.swish.clean(); this.up.up.swish = null; } this.up.up.swish = new Swish({'style': 'sqr_plode', 'mc': this.up.mc}); break; case 'story': this.up.up.state_next = 'zoo'; break; case 'race': this.up.state_next = 'levels_all'; if (this.up.up.swish) { this.up.up.swish.clean(); this.up.up.swish = null; } this.up.up.swish = new Swish({'style': 'sqr_slide', 'mc': this.up.mc}); break; break; case 'scores': case 'about': this.up.up.about.setup(); break; case 'code': this.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': this.up.up.up.level_idx = 1; this.up.up.up.state_next = 'play'; this.play.clean_snapbmp(); this.play.gameskill = 'easy'; this.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 (v5 != null) { var v6 = this.up.up.levels[v5]; _root.poker.ShowFloat('Play level ' + v5 + '<br>' + v6.name, 250); gfx.glow(me, 16777215, 0.8, 16, 16, 1, 3, false, false); } switch (nam) { case 'minion': _root.poker.ShowFloat('<b>' + this.up.up.tards[this.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': this.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': this.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 v7 = '<font size=\'10\'>These people are helping to keep this game online:<br></font>'; if (_root.wonderfulls[0].txt) { v7 += _root.wonderfulls[0].txt; } _root.poker.ShowFloat(v7, 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 (v5 != null) { me.filters = null; } switch (nam) { case 'easy': case 'hard': case 'mainmenu': case 'minion': me.filters = null; break; case 'story': this.anim_over = null; break; case 'race': this.anim_over = null; } break; default: this.do_def(me, act); } }; v1.do_story = function (me, act) { this.butt_over('story', me, act); }; v1.do_race = function (me, act) { this.butt_over('race', me, act); }; v1.do_scores = function (me, act) { this.butt_over('scores', me, act); }; v1.do_about = function (me, act) { this.butt_over('about', me, act); }; v1.do_code = function (me, act) { this.butt_over('code', me, act); }; v1.do_wetgenes = function (me, act) { this.butt_over('wetgenes', me, act); }; v1.do_shop = function (me, act) { this.butt_over('shop', me, act); }; v1.do_mainmenu = function (me, act) { this.butt_over('mainmenu', me, act); }; v1.do_easy = function (me, act) { this.butt_over('easy', me, act); }; v1.do_hard = function (me, act) { this.butt_over('hard', me, act); }; v1.do_minion = function (me, act) { this.butt_over('minion', me, act); }; v1.do_ignoreme = function (me, act) { this.butt_over('ignoreme', me, act); }; v1.do_whore = function (me, act) { this.butt_over('whore', me, act); }; v1.do_digg = function (me, act) { this.butt_over('digg', me, act); }; v1.do_stumble = function (me, act) { this.butt_over('stumble', me, act); }; v1.do_level10 = function (me, act) { this.butt_over('level10', me, act); }; v1.do_level09 = function (me, act) { this.butt_over('level09', me, act); }; v1.do_level08 = function (me, act) { this.butt_over('level08', me, act); }; v1.do_level07 = function (me, act) { this.butt_over('level07', me, act); }; v1.do_level06 = function (me, act) { this.butt_over('level06', me, act); }; v1.do_level05 = function (me, act) { this.butt_over('level05', me, act); }; v1.do_level04 = function (me, act) { this.butt_over('level04', me, act); }; v1.do_level03 = function (me, act) { this.butt_over('level03', me, act); }; v1.do_level02 = function (me, act) { this.butt_over('level02', me, act); }; v1.do_level01 = function (me, act) { this.butt_over('level01', me, act); }; v1.do_floater_start = function (me, act) { this.butt_over('floater_start', me, act); }; v1.do_under = function (me, act) { switch (act) { case 'on': this.up.mcs[me.nams[0] + '_under']._visible = false; this.up.mcs[me.nams[0] + '_over']._visible = true; break; case 'off': this.up.mcs[me.nams[0] + '_under']._visible = true; this.up.mcs[me.nams[0] + '_over']._visible = false; } }; v1.do_over = function (me, act) { switch (act) { case 'on': this.up.mcs[me.nams[0] + '_under']._visible = false; this.up.mcs[me.nams[0] + '_over']._visible = true; break; case 'off': this.up.mcs[me.nams[0] + '_under']._visible = true; this.up.mcs[me.nams[0] + '_over']._visible = false; } }; v1.do_def = function (me, act) { switch (act) { break; case 'on': case 'off': _root.poker.ShowFloat(null, 0); break; case 'click': switch (this.up.state) { case 'end1_all': this.up.state_next = 'end2_all'; break; case 'end2_all': this.up.state_next = 'end3_all'; break; case 'end3_all': this.up.state_next = 'title_all'; } } }; ASSetPropFlags(v1, null, 1); v1.frame = 0; v1.anim_idx = 0; v1.last_id = 0; } #endinitclip } movieClip 20482 __Packages.Minion { #initclip if (!Minion) { _global.Minion = function (_up) { this.up = _up; }; var v1 = _global.Minion.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.setup = function (_nam, hx, hy) { this.mc = gfx.create_clip(this.up.mc, null); this.mc._x = -hx; this.mc._y = -hy; this.mc.hx = -hx; this.mc.hy = -hy; if (_nam) { this.setsoul(_nam); } this.display('idle', 0); }; v1.load_xml = function (url) { this.xml = new XML(); this.xml.url = url; this.xml.onLoad = this.delegate(this.loaded_xml, this.xml); xmlcache.load(this.xml); }; v1.loaded_xml = function (suc) { var v4 = suc; if (v4 != 'swf') { v4 = v4 ? 'url' : 'failed'; } if (suc) { this.parse_xml(this.xml, 0); } }; v1.parse_xml = function (e, d) { var v5 = false; if (e.nodeType == 1) { switch (e.nodeName) { case 'img': this.setsoul(e.attributes.src); break; default: v5 = true; } if (v5) { var v4 = e.firstChild; goto 1628; for (;;) { v4 = v4.nextSibling; label 1628: if (!v4) break; this.parse_xml(v4, d + 1); } } } }; v1.loaded_img = function (it, nam) { var v5 = 0; goto 1728; for (;;) { ++v5; label 1728: if (v5 >= 6) break; var v4 = 0; goto 1774; for (;;) { ++v4; label 1774: if (v4 >= 8) break; _root.bmc.bmp_chop('minion_' + nam, 'minion_' + nam + '_' + v5 + '_' + v4, v4 * 100, v5 * 100, 100, 100); } } _root.bmc.forget('minion_' + nam); }; v1.setsoul = function (_nam) { this.nam = _nam; var v3 = _root.urlmap.lookup(this.nam); if (v3 || this.nam.substring(0, 5) != 'http:') { if (v3) { this.nam = v3; } if (_root.bmc.available) { if (!_root.bmc.checkloading('minion_' + this.nam)) { _root.bmc.remember('minion_' + this.nam, bmcache.create_img, {'url': this.nam, 'bmpw': 800, 'bmph': 600, 'bmpt': true, 'hx': 0, 'hy': 0, 'onload': this.delegate(this.loaded_img, this.nam)}); } } else { this.page1 = gfx.add_clip(this.mc, this.nam, 1); this.page1.cacheAsBitmap = true; this.page1._visible = true; } } else { if (_root.bmc.available) { if (!_root.bmc.checkloading('minion_' + this.nam)) { _root.bmc.remember('minion_' + this.nam, bmcache.create_url, {'url': this.nam, 'bmpw': 800, 'bmph': 600, 'bmpt': true, 'hx': 0, 'hy': 0, 'onload': this.delegate(this.loaded_img, this.nam)}); } } else { this.page1 = gfx.create_clip(this.mc, 1); this.page1.mc = gfx.create_clip(this.page1, 1); this.page1.mc.loadMovie(this.nam); this.page1.cacheAsBitmap = true; this.page1._visible = true; } } }; v1.clean = function () { this.mc.removeMovieClip(); this.mc = null; }; v1.pick = function (page, x, y) { this.pagex = x; this.pagey = y; if (_root.bmc.available) { var v5 = 'minion_' + this.nam + '_' + y + '_' + x; if (!_root.bmc.getbmp(v5)) { v5 = 'minion_' + 'data_test_vtard_me_png' + '_' + y + '_' + x; } _root.bmc.create(this.mc, v5, 1); } else { this.page1._visible = false; page._visible = true; page.scrollRect = new flash.geom.Rectangle(x * 100, y * 100, 100, 100); } }; v1.breath = function (_frame) { var v3 = (this.frame % 8 - 4) / 4; if (v3 < 0) { v3 = -v3; } this.mc._xscale = 100 + 4 * v3; this.mc._yscale = 104 - 4 * v3; this.mc._x = this.mc.hx * this.mc._xscale / 100; this.mc._y = this.mc.hy * this.mc._yscale / 100; }; label 5285: v1.display = function (_anim, _frame) { this.anim = _anim; this.frame = _frame; this.frame_fixed = Math.floor(this.frame); switch (this.anim) { case 'idle': default: this.frame_fixed %= 6; if (this.frame_fixed > 3) { this.frame_fixed = 6 - this.frame_fixed; } this.pick(this.page1, this.frame_fixed, 3); goto 5285; case 'left': //Invalid switch } this.frame_fixed %= 8; this.pick(this.page1, this.frame_fixed, 1); goto 5285; case 'idle': v1.frame_fixed %= 8; v1.pick(v1.page1, v1.frame_fixed, 0); goto 5285; case 'left': v1.frame_fixed %= 4; v1.pick(v1.page1, v1.frame_fixed, 2); goto 5285; case 'right': v1.frame_fixed = 4 + v1.frame_fixed % 4; v1.pick(v1.page1, v1.frame_fixed, 2); goto 5285; case 'out': v1.pick(v1.page1, 4, 3); goto 5285; case 'in': v1.pick(v1.page1, 5, 3); v1.breath(storedv3); goto 5285; case 'splat': v1.pick(v1.page1, 6, 3); v1.breath(storedv3); goto 5285; case 'idle_right': v1.pick(v1.page1, 7, 3); v1.breath(storedv3); goto 5285; case 'idle_back': v1.pick(v1.page1, 0, 4); v1.breath(storedv3); goto 5285; case 'idle_left': v1.pick(v1.page1, 1, 4); v1.breath(storedv3); goto 5285; case 'teapot': v1.pick(v1.page1, 2, 4); v1.breath(storedv3); goto 5285; case 'angry': v1.pick(v1.page1, 3, 4); v1.breath(storedv3); goto 5285; case 'confused': v1.pick(v1.page1, 4, 4); v1.breath(storedv3); goto 5285; case 'determind': v1.pick(v1.page1, 5, 4); v1.breath(storedv3); goto 5285; case 'devious': v1.pick(v1.page1, 6, 4); v1.breath(storedv3); goto 5285; case 'embarrassed': v1.pick(v1.page1, 7, 4); v1.breath(storedv3); goto 5285; case 'energetic': v1.pick(v1.page1, 0, 5); v1.breath(storedv3); goto 5285; case 'excited': v1.pick(v1.page1, 1, 5); v1.breath(storedv3); goto 5285; case 'happy': v1.pick(v1.page1, 2, 5); v1.breath(storedv3); goto 5285; case 'indescribable': v1.pick(v1.page1, 3, 5); v1.breath(storedv3); goto 5285; case 'nerdy': v1.pick(v1.page1, 4, 5); v1.breath(storedv3); goto 5285; case 'sad': v1.pick(v1.page1, 5, 5); v1.breath(storedv3); goto 5285; case 'scared': v1.pick(v1.page1, 6, 5); v1.breath(storedv3); goto 5285; case 'sleepy': v1.pick(v1.page1, 7, 5); v1.breath(storedv3); goto 5285; case 'thoughtful': v1.frame_fixed %= 6; v1.pick(v1.page1, v1.dance_frames[v1.frame_fixed * 2 + 0], v1.dance_frames[v1.frame_fixed * 2 + 1]); v1.breath(storedv3); }; v1.update = function () {}; ASSetPropFlags(v1, null, 1); v1.dance_frames = [0, 4, 1, 4, 1, 5, 4, 5, 6, 4, 3, 5]; } #endinitclip } movieClip 20483 __Packages.MainStatic { #initclip if (!MainStatic) { _global.MainStatic = function () {}; var v1 = _global.MainStatic.prototype; _global.MainStatic.choose_and_apply_scalar = function (me, flags) { var v5 = flags.split(','); if (_root.talk && _root.popup == _root.talk) { MainStatic.half = true; } else { MainStatic.half = false; } var v4 = 0; goto 928; for (;;) { ++v4; label 928: if (v4 >= v5.length) break; var v6 = v5[v4]; if (v6 == '800x600') { MainStatic.w = 800; MainStatic.h = 600; } else { if (v6 == '640x480') { MainStatic.w = 640; MainStatic.h = 480; } else { if (v6 == 'wide') { MainStatic.wide = true; MainStatic.half = false; } else { if (v6 == 'nothalf') { MainStatic.half = false; } else { if (v6 == 'notwide') { MainStatic.wide = false; MainStatic.notwide = true; } } } } } } _root.scalar.bx = MainStatic.w; _root.scalar.by = MainStatic.h; if (_root.scale == 'fixed') { if (!MainStatic.notwide) { gfx.setscroll(me.mc, 0, 0, 1.5 * MainStatic.w, MainStatic.h); _root.scalar.ox = 1.5 * MainStatic.w; _root.scalar.oy = MainStatic.h; _root.scalar.wide = true; } else { gfx.setscroll(me.mc, 0, 0, MainStatic.w, MainStatic.h); _root.scalar.ox = MainStatic.w; _root.scalar.oy = MainStatic.h; _root.scalar.wide = false; } } else { if (!MainStatic.notwide && (MainStatic.wide || Stage.width / Stage.height > (MainStatic.w / MainStatic.h + 1.5 * MainStatic.w / MainStatic.h) / 2)) { if (_root.scalar.ox != 1.5 * MainStatic.w) { gfx.setscroll(me.mc, 0, 0, 1.5 * MainStatic.w, MainStatic.h); _root.scalar.ox = 1.5 * MainStatic.w; _root.scalar.oy = MainStatic.h; _root.scalar.wide = true; } } else { if (_root.scalar.ox != MainStatic.w) { gfx.setscroll(me.mc, 0, 0, MainStatic.w, MainStatic.h); _root.scalar.ox = MainStatic.w; _root.scalar.oy = MainStatic.h; _root.scalar.wide = false; } } } _root.scalar.apply(me.mc, MainStatic.half); _root.scalar.apply(_root.mc_popup, MainStatic.half); _root.scalar.apply(_root.mc_swish, MainStatic.half); _root.scalar.apply(_root.__mochiservicesMC); _root.__mochiservicesMC._xscale *= 1.5; _root.__mochiservicesMC._yscale *= 1.5; _root.__mochiservicesMC.swapDepths(16385); }; _global.MainStatic.apply_800x600_scale = function (m) { m._xscale = 100 * MainStatic.w / 800; m._yscale = 100 * MainStatic.h / 600; }; _global.MainStatic.get_base_context_menu = function (me, ncm) { if (ncm) { var v4 = ncm; } else { var v4 = new ContextMenu(); v4.hideBuiltInItems(); } var v6 = function () { if (_root._quality == 'MEDIUM') { _root._quality = 'LOW'; } else { _root._quality = 'MEDIUM'; } }; var v5 = new ContextMenuItem('Toggle quality.', com.dynamicflash.utils.Delegate.create(me, v6)); v4.customItems.push(v5); v6 = function () { if (Stage.displayState == 'normal') { Stage.fullScreenSourceRect = undefined; Stage.displayState = 'fullScreen'; if (!MainStatic.notwide && (MainStatic.wide || Stage.width / Stage.height > (640 / 480 + 1.5 * 640 / 480) / 2)) { Stage.displayState = 'normal'; Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 960, 480); Stage.displayState = 'fullScreen'; } else { Stage.displayState = 'normal'; Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 640, 480); Stage.displayState = 'fullScreen'; } } else { Stage.displayState = 'normal'; } }; v5 = new ContextMenuItem('Toggle fullscreen mode.', com.dynamicflash.utils.Delegate.create(me, v6)); v4.customItems.push(v5); v6 = function () { if (Stage.displayState == 'normal') { Stage.fullScreenSourceRect = undefined; Stage.displayState = 'fullScreen'; if (!MainStatic.notwide && (MainStatic.wide || Stage.width / Stage.height > (640 / 480 + 1.5 * 640 / 480) / 2)) { Stage.displayState = 'normal'; Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 480, 240); Stage.displayState = 'fullScreen'; } else { Stage.displayState = 'normal'; Stage.fullScreenSourceRect = new flash.geom.Rectangle(0, 0, 320, 240); Stage.displayState = 'fullScreen'; } } else { Stage.displayState = 'normal'; } }; v5 = new ContextMenuItem('Toggle lowscreen mode.', com.dynamicflash.utils.Delegate.create(me, v6)); v4.customItems.push(v5); v6 = function () { this.state_next = 'menu'; }; v5 = new ContextMenuItem('Quit to Main Menu.', com.dynamicflash.utils.Delegate.create(me, v6)); v4.customItems.push(v5); v6 = function () { this.state_next = 'login'; }; v5 = new ContextMenuItem('Logout.', com.dynamicflash.utils.Delegate.create(me, v6)); v4.customItems.push(v5); return v4; }; _global.MainStatic.update_setup = function () { return new Array(); }; _global.MainStatic.update_add = function (tab, func) { tab[tab.length] = func; }; _global.MainStatic.update_remove = function (tab, func) { var v4 = 0; goto 3984; for (;;) { ++v4; label 3984: if (v4 >= tab.length) break; if (tab[v4] == func) { tab.splice(v4, 1); return undefined; } } }; _global.MainStatic.update_do = function (tab) { var v3 = 0; goto 4105; for (;;) { ++v3; label 4105: if (v3 >= tab.length) break; tab[v3](); } }; _global.MainStatic.spine = function (s) { if (s < 0) { s = -s; } if (s > 1) { s = 1; } var v3 = s * s; return v3 + v3 * 2 - v3 * s * 2; }; _global.MainStatic.spine_half = function (s) { if (s < 0) { s = -s; } if (s > 1) { s = 1; } return MainStatic.spine(s * 0.5) * 2; }; ASSetPropFlags(v1, null, 1); _global.MainStatic.w = 800; _global.MainStatic.h = 600; _global.MainStatic.wide = false; _global.MainStatic.notwide = false; _global.MainStatic.half = true; } #endinitclip } movieClip 20484 __Packages.BetaComms { #initclip if (!BetaComms) { _global.BetaComms = function (_up) { this.up = _up; this.php = 'http://' + _root.host + '/swf/beta.php'; this.sending_scores = false; this.get_high_after_sending = false; }; var v1 = _global.BetaComms.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.delegate2 = function (f, d1, d2) { return com.dynamicflash.utils.Delegate.create(this, f, d1, d2); }; v1.send_score_check = function () { if (this.sent_score < this.datas.score) { this.send_score(); } }; v1.send_score_wait_and_check = function () { var v2 = new Date(); if (v2.getTime() - this.sent_stamp > 1000 * 60) { this.send_score_check(); } }; v1.reset_sent_stamp = function () { var v2 = new Date(); this.sent_stamp = v2.getTime(); this.sent_score = this.datas.score; return this.sent_stamp; }; v1.send_score = function () { if (_root.audit) { return undefined; } if (_root.skip_wetscore) { return undefined; } this.lv_score = new LoadVars(); this.lv_score.S = _root.Login_Session; this.lv_score.name = _root.Login_Name; this.lv_score.game = this.datas.game; this.lv_score.host = this.datas.host; this.lv_score.seed = this.datas.seed; this.lv_score.state = this.datas.state; this.lv_score.score = this.datas.score; this.lv_score.moves = this.datas.moves; this.lv_score.time = this.datas.time; this.lv_score.start_time = this.datas.start_time; this.lv_score.replay_str = this.datas.replay_str; this.lv_score.timestamp = this.reset_sent_stamp(); fbsig.copy_fb_sigs(_root, this.lv_score); this.lv_score.onLoad = this.delegate(this.send_score_post, this.lv_score); this.lv_score.sendAndLoad(this.php + '?cmd=submit', this.lv_score, 'POST'); this.sending_scores = true; }; v1.send_score_post = function (success, lv) { this.sending_scores = false; if (success) { if (lv.score != 0) { _root.talk.chat_status('Sent Score: ' + lv.score); } } if (this.get_high_after_sending) { this.get_high(this.get_high_after_sending_cmd, this.get_high_after_sending_filter, this.get_high_after_sending_callback); this.get_high_after_sending = false; } }; v1.get_high = function (cmd, filter, callback) { if (_root.skip_wetscore) { return undefined; } if (this.sending_scores) { this.get_high_after_sending_cmd = cmd; this.get_high_after_sending_filter = filter; this.get_high_after_sending_callback = callback; this.get_high_after_sending = true; return undefined; } this.lv_high = new LoadVars(); this.lv_high.S = _root.Login_Session; this.lv_high.name = _root.Login_Name; this.lv_high.game = this.datas.game; this.lv_high.host = this.datas.host; this.lv_high.seed = this.datas.seed; this.lv_high.state = this.datas.state; this.lv_high.filter = filter; this.lv_high.min = 1; this.lv_high.max = 10; fbsig.copy_fb_sigs(_root, this.lv_high); this.lv_high.onLoad = this.delegate2(this.get_high_post, this.lv_high, callback); this.lv_high.sendAndLoad(this.php + '?cmd=' + cmd, this.lv_high, 'POST'); }; v1.get_high_post = function (success, lv, callback) { var v6 = new Array(); var v7 = false; var v5 = 1; goto 2556; for (;;) { ++v5; label 2556: if (v5 > 10) break; if (lv['name' + v5] != undefined) { v6[v5 - 1] = lv['score' + v5] + ';' + lv['name' + v5] + ';' + lv['seed' + v5]; v7 = true; } else { v6[v5 - 1] = '0;...'; } } if (v7) { callback(v6); } }; v1.send_audit = function (a_scoreid, a_score, replay_str) { this.lv_audit = new LoadVars(); this.lv_audit_got = null; this.lv_audit.S = _root.Login_Session; this.lv_audit.replay_id = a_scoreid; this.lv_audit.replay_str = replay_str; this.lv_audit.score = a_score; fbsig.copy_fb_sigs(_root, this.lv_audit); this.lv_audit.onLoad = this.delegate(this.send_audit_post, this.lv_audit); this.lv_audit.sendAndLoad(this.php + '?cmd=audit', this.lv_audit, 'POST'); }; v1.send_audit_post = function (success, lv) { if (lv != this.lv_audit) { return undefined; } if (!success) { return undefined; } this.lv_audit_got = lv; if (lv.replay_str.length < 6) { this.send_audit(lv.replay_id, 0); } }; v1.send_pbemstart = function (game, em1, em2) { if (_root.skip_wetscore) { return undefined; } this.lv_pbem = new LoadVars(); this.lv_pbem.S = _root.Login_Session; this.lv_pbem.name = _root.Login_Name; this.lv_pbem.game = game; this.lv_pbem.em1 = em1; this.lv_pbem.em2 = em2; this.lv_pbem.onLoad = this.delegate(this.send_pbemstart_post, this.lv_pbem); this.lv_pbem.sendAndLoad(this.php + '?cmd=pbemstart', this.lv_pbem, 'POST'); }; v1.send_pbemstart_post = function (success, lv) {}; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20485 __Packages.bmcache { #initclip if (!bmcache) { _global.bmcache = function () { this.aa = new Array(); this.aa_check = new Array(); this.aa_loading = new Array(); this.mc = this.create(_root, null, null); this.mc._visible = false; this.available = flash.display.BitmapData ? true : false; }; var v1 = _global.bmcache.prototype; v1.delegate = function (f, i) { return com.dynamicflash.utils.Delegate.create(this, f, i); }; v1.clear_loading = function () { this.check_loading(); this.aa_loading = new Array(); }; v1.check_loading = function () { var v6 = 0; var v7 = 0; var v2 = 0; goto 1025; for (;;) { ++v2; label 1025: if (v2 >= this.aa_loading.length) break; var v3 = this.aa_loading[v2]; if (v3.bmp_mc) { var v4 = v3.bmp_mc.loadhere.getBytesTotal(); if (Math.floor(v4) == 0) { v4 = 1024 * 16; } var v5 = v3.bmp_mc.loadhere.getBytesLoaded(); if (v5 >= v4 && v3.bmp_mc.loadhere._width > 0) { v3.loaded_mc(); } else { v6 += v4; v7 += v5; } } } if (v6) { return v7 / v6; } else { return 1; } }; v1.isloading = function (idstr) { if (this.aa[idstr]) { return true; } return false; }; v1.checkloading = function (idstr) { if (this.aa[idstr]) { return true; } if (this.aa_check[idstr]) { return true; } return false; }; v1.isloaded = function (idstr) { var v5 = this.aa[idstr]; if (!v5) { return 0; } if (v5.bmp_mc) { var v4 = v5.bmp_mc.loadhere.getBytesLoaded(); var v3 = v5.bmp_mc.loadhere.getBytesTotal(); if (Math.floor(v3) == 0) { v3 = 1024 * 16; } if (v4 >= v3 && v5.bmp_mc.loadhere._width > 0) { v5.loaded_mc(); } } return v5.bmp ? 1 : 0; }; v1.remember = function (idstr, callback, cb_data) { if (this.aa[idstr] == null) { this.aa[idstr] = new bmcache_item(this, idstr, callback, cb_data); this.aa[idstr].bmp_mc = callback(this.mc, idstr, null, cb_data, this.aa[idstr]); if (!this.aa[idstr].bmp) { this.aa_loading[this.aa_loading.length] = this.aa[idstr]; } } else { if (cb_data.onload) { cb_data.onload(this.aa[idstr]); } } }; v1.forget = function (idstr) { this.aa[idstr] = null; this.aa_check[idstr] = true; }; v1.getbmp = function (idstr) { return this.aa[idstr].bmp; }; v1.create = function (_mc, idstr, depth, px, py, sx, sy, rot) { if (_mc.newdepth == undefined) { _mc.newdepth = 0; } if (depth == null) { depth = ++_mc.newdepth; } if (idstr == null || this.aa[idstr] == null) { var v10 = _mc.createEmptyMovieClip('mc' + depth, depth); v10.newdepth = 0; } else { var v10 = this.aa[idstr].create(_mc, idstr, depth); } v10.newdepth = 0; if (px != null) { v10._x = px; } if (py != null) { v10._y = py; } if (sx != null) { v10._xscale = sx; } if (sy != null) { v10._yscale = sy; } if (rot != null) { v10._rotation = rot; } return v10; }; _global.bmcache.create_generic = function (mc, idstr, depth, cb_data, item) { storedv7.idstr = idstr; var v13 = cb_data.hx ? cb_data.hx : 0; var v14 = cb_data.hy ? cb_data.hy : 0; var v8 = cb_data.px ? cb_data.px : 0; var v9 = cb_data.py ? cb_data.py : 0; var v10 = cb_data.sx ? cb_data.sx : 100; var v11 = cb_data.sy ? cb_data.sy : 100; if (!cb_data.rot) { var v12 = 0; var v7 = item.up.create(mc, null, null, v8, v9, v10, v11, v12); v7.createEmptyMovieClip('loadhere', 0); v7.loadhere._x = v13; v7.loadhere._y = v14; return v7; } var v12 = cb_data.rot; var v7 = item.up.create(mc, null, null, v8, v9, v10, v11, v12); v7.createEmptyMovieClip('loadhere', 0); v7.loadhere._x = v13; v7.loadhere._y = v14; return v7; }; _global.bmcache.create_null = function (mc, idstr, depth, cb_data, item) { var v7 = bmcache.create_generic(mc, idstr, depth, cb_data, item); item.bmp_mc = v7; item.call_loaded_mc = true; item.loaded_mc(); return null; }; _global.bmcache.create_img = function (mc, idstr, depth, cb_data, item) { var v7 = bmcache.create_generic(mc, idstr, depth, cb_data, item); var v8 = gfx.add_clip(v7.loadhere, cb_data.url, null); item.bmp_mc = v7; item.call_loaded_mc = true; item.loaded_mc(); return null; }; _global.bmcache.create_jp4g = function (mc, idstr, depth, cb_data, item) { var v9 = cb_data.hx ? cb_data.hx : 0; if (!cb_data.hy) { var v10 = 0; var v7 = bmcache.create_generic(mc, idstr, depth, cb_data, item); v7.createEmptyMovieClip('loadhere2', 1); v7.loadhere2._x = v9; v7.loadhere2._y = v10; var v8 = gfx.add_clip(v7.loadhere, cb_data.url + '.rgb', null); v8 = gfx.add_clip(v7.loadhere2, cb_data.url + '.a', null); item.bmp_mc = v7; item.call_loaded_mc = true; item.loaded_mc(); return null; } var v10 = cb_data.hy; var v7 = bmcache.create_generic(mc, idstr, depth, cb_data, item); v7.createEmptyMovieClip('loadhere2', 1); v7.loadhere2._x = v9; v7.loadhere2._y = v10; var v8 = gfx.add_clip(v7.loadhere, cb_data.url + '.rgb', null); v8 = gfx.add_clip(v7.loadhere2, cb_data.url + '.a', null); item.bmp_mc = v7; item.call_loaded_mc = true; item.loaded_mc(); return null; }; _global.bmcache.create_url = function (mc, idstr, depth, cb_data, item) { var v7 = bmcache.create_generic(mc, idstr, depth, cb_data, item); v7.loadhere.loadMovie(cb_data.url); return v7; }; v1.bmp_chop = function (from, to, px, py, sx, sy) { if (this.aa[to] == null) { if (this.aa[from]) { this.aa[to] = new bmcache_item(this, to, null, null); this.aa[to].chop(this.aa[from], px, py, sx, sy); } } }; v1.bmp_blit = function (from, to, fx, fy, sx, sy, tx, ty) { if (this.aa[to].bmp && this.aa[from].bmp) { this.aa[to].bmp.copyPixels(this.aa[from].bmp, new flash.geom.Rectangle(fx, fy, sx, sy), new flash.geom.Point(tx, ty)); } }; v1.bmp_fill = function (to, fx, fy, sx, sy, argb) { if (this.aa[to].bmp) { this.aa[to].bmp.fillRect(new flash.geom.Rectangle(fx, fy, sx, sy), argb); } }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20486 __Packages.FieldItem { #initclip if (!FieldItem) { _global.FieldItem = function (_up) { this.up = _up; }; var v1 = _global.FieldItem.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.setup = function (nam) { this.mc = gfx.create_clip(this.up.mc, null); this.locked = false; this.type = nam; this.flags = 0; this.x = 0; this.y = 0; this.vx = 0; this.vy = 0; this.draw(); }; v1.draw = function (src) { var v3 = 2.0; gfx.clear(this.mc); this.mc2.removeMovieClip(); this.mc2 = null; switch (this.type) { break; case null: case 'fire': if (_root._highquality <= 1) { this.render(this.mc, 0, 0, 100); } else { this.render(this.mc, 0, 0, 100); this.mc2 = gfx.add_clip(this.mc, 'obj_fire', 1); this.mc2._xscale = 100 * v3; this.mc2._yscale = 100 * v3; } break; case 'earth': if (_root._highquality <= 1) { this.render(this.mc, 0, 0, 100); } else { this.render(this.mc, 0, 0, 100); this.mc2 = gfx.add_clip(this.mc, 'obj_earth', 1); this.mc2._xscale = 100 * v3; this.mc2._yscale = 100 * v3; } break; case 'air': if (_root._highquality <= 1) { this.render(this.mc, 0, 0, 100); } else { this.render(this.mc, 0, 0, 100); this.mc2 = gfx.add_clip(this.mc, 'obj_air', 1); this.mc2._xscale = 100 * v3; this.mc2._yscale = 100 * v3; } break; case 'water': if (_root._highquality <= 1) { this.render(this.mc, 0, 0, 100); } else { this.render(this.mc, 0, 0, 100); this.mc2 = gfx.add_clip(this.mc, 'obj_water', 1); this.mc2._xscale = 100 * v3; this.mc2._yscale = 100 * v3; } break; case 'ether': this.render(this.mc, 0, 0, 100); this.mc2 = gfx.add_clip(this.mc, 'obj_meta', 1); this.mc2._xscale = 100 * v3; this.mc2._yscale = 100 * v3; } if (_root._highquality == 2) { gfx.dropshadow(this.mc, 5, 45, 0, 1, 10, 10, 2, 3); } else { this.mc.filters = null; this.mc.cacheAsBitmap = true; } if (src != undefined && src != this) { this.mc2.gotoAndStop(1); this.mc2.gotoAndStop(src.mc2._currentframe); this.mc2._rotation = src.mc2._rotation; } else { this.mc2.gotoAndStop(1); this.mc2.gotoAndStop(this.up.rnd() % 20 + 1); this.mc2._rotation = this.up.rnd() % 360; } }; v1.render = function (_mc, dx, dy, siz) {}; v1.setxy = function (setx, sety) { this._x = setx; this._y = sety; if (this.mc) { this.mc._x = setx; this.mc._y = sety; } }; _global.FieldItem.hard_launch = function (upp, typ, xx, yy, _vx, _vy) { var v8 = new FieldItem(upp.over); v8.setup(typ); v8.draw(); v8.setxy(xx, yy); v8.vx = _vx; v8.vy = _vy; v8.mc.filters = null; v8.mc.cacheAsBitmap = true; v8.mc._xscale = 75; v8.mc._yscale = 75; v8.mc2.play(); upp.launches.push(v8); return v8; }; v1.launch = function (_vx, _vy) { var v4 = new FieldItem(this.up.over); v4.setup(this.type); v4.draw(this); v4.setxy(this._x, this._y); v4.vx = _vx; v4.vy = _vy; gfx.clear(this.mc); v4.mc.filters = null; v4.mc.cacheAsBitmap = true; v4.mc._xscale = 125; v4.mc._yscale = 125; v4.mc2.play(); this.up.launches.push(v4); return v4; }; v1.update_launch = function () { this.vy += 8; this.setxy(this._x + this.vx, this._y + this.vy); this.mc._rotation += this.vx; if (this.mc._y > 1200) { return true; } return false; }; v1.clean = function () { this.mc2.removeMovieClip(); this.mc.removeMovieClip(); }; v1.update = function () {}; v1.nextframe = function () { this.mc2.gotoAndStop((this.mc2._currentframe + 0) % 20 + 1); }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20487 __Packages.fbsig { #initclip if (!fbsig) { _global.fbsig = function () {}; var v1 = _global.fbsig.prototype; _global.fbsig.copy_fb_sigs = function (f, t) { for (var v4 in f) { if (v4.substring(0, 6) == 'fb_sig') { t[v4] = f[v4]; } } }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20488 __Packages.Vtard2d { #initclip if (!Vtard2d) { _global.Vtard2d = function (_up) { this.up = _up; }; var v1 = _global.Vtard2d.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.dbgframe = function (s) { this.up.dbgframe(s); }; v1.setup = function (nam, _flavour) { this.chat_id = -1; this.flavour = _flavour; this.data = {}; this.mc = gfx.create_clip(this.up.mc, null); this.minion = new Minion(this); this.minion.setup(nam, 50 * 1.0, 94 * 1.0); this.dest_rot = 0; this.px = 0; this.py = 0; this.pz = 0; this.vx = 0; this.vy = 0; this.vz = 0; this.frame = 0; this.wet = 0; this.wet_last = 0; this.wet_last_wait = 0; this.step_bool = 0; this.anim = 'warp'; this.state = 'jump'; this.ignore_mouse = true; _root.poker.clear_clicks(); this.update(); }; v1.clean = function () { this.mc.removeMovieClip(); }; v1.update_talker = function () { if (this.up.gamemode == 'story') { if (this.up.chat_idx < this.up.chat.length) { var v3 = this.up.chat[this.up.chat_idx]; } else { var v3 = null; } } else { this.chat_id = 0; var v3 = null; } if (this.up.chat_idx < 0) { if (this.chat_id == 0) { if (this.data.done_setup) { this.up.chat_idx = 0; this.up.chat_tim = 0; } else { this.data.done_setup = true; } } this.data.frame_wait = 0; this.data.frame = 0; this.data.anim = 'idle'; } else { if (v3) { if (v3.id == this.chat_id) { if (v3.txt) { this.talk.display(v3.txt, 2); } if (v3.anim == 'rotoff') { if (this.data.chatstate != 'rotoff') { this.dest_rot = 0; this.data.dd = true; this.data.dx = 0; this.data.dy = 620; this.data.chatstate = 'rotoff'; this.data.anim = 'idle'; } } else { if (v3.anim == 'start') { if (this.data.chatstate != 'start') { this.data.chatstate = 'start'; this.data.anim = 'idle'; if (this.flavour == 'chucker') { this.data.idlefor = 25 * 3; } } } else { if (v3.anim == 'roton') { if (this.data.chatstate != 'roton') { this.dest_rot = 90 + 30; this.px = 0; this.py = 600; this.data.dd = true; this.data.dx = 20; this.data.dy = 600; this.mc._xscale = 200; this.mc._yscale = 200; this.data.chatstate = 'roton'; this.data.anim = 'idle'; } } else { this.data.anim = v3.anim; } } } } if (this.chat_id == 0) { ++this.up.chat_tim; if (_root.replay.key & (Replay.KEYM_UP | Replay.KEYM_DOWN | Replay.KEYM_LEFT | Replay.KEYM_RIGHT)) { this.up.chat_tim += 4; } if (this.up.chat_tim >= v3.tim || _root.poker.anykey && !(_root.replay.key & (Replay.KEYM_UP | Replay.KEYM_DOWN | Replay.KEYM_LEFT | Replay.KEYM_RIGHT))) { ++this.up.chat_idx; this.up.chat_tim = 0; } } } else { if (this.data.chatstate == 'rotoff') { if ((this.mc._rotation - this.dest_rot) * (this.mc._rotation - this.dest_rot) < 4) { this.mc._visible = false; } } } } if (this.data.dd) { this.mc._rotation = (this.mc._rotation * 15 + this.dest_rot * 1) / 16; this.px = (this.px * 15 + this.data.dx * 1) / 16; this.py = (this.py * 15 + this.data.dy * 1) / 16; } ++this.data.frame_wait; if (this.data.frame_wait > 8) { this.data.frame += 1; this.data.frame_wait = 0; } if (this.data.chatstate == 'roton' || this.data.chatstate == 'rotoff') { this.mc._x = this.up.x2 + this.px; this.mc._y = this.up.y2 - this.py; this.minion.display(this.data.anim, this.data.frame); return true; } return false; }; v1.update = function () { if (this.update_talker()) { return undefined; } if (this.flavour == 'chucker') { var v11 = false; var v12 = false; var v13 = false; var v14 = false; if (this.data.chatstate == 'start' || this.up.gamemode == 'race') { if (this.data.idlefor > 0) { if (this.data.idlefor > 25 * 2.2) { this.data.anim = 'idle'; } else { if (this.data.idlefor > 25 * 2) { this.data.anim = 'angry'; } else { if (this.data.idlefor > 25 * 2 - 1) { this.data.anim = 'energetic'; this.data.whirl1.mc._x = this.up.x2 + this.px; this.data.whirl1.mc._y = this.up.y2 - this.py; this.data.whirl1.mc.vx = null; this.data.whirl1.mc.vy = null; this.data.whirl1.flavour = 'thrown'; this.data.whirl1.activate(); _root.wetplay.PlaySFX('sfx_wikwikwik', 0); } else { this.data.anim = 'idle'; } } } --this.data.idlefor; } else { if (this.data.vx >= 0) { this.data.vx = 1; v14 = true; } else { this.data.vx = -1; v13 = true; } if (this.state == 'onfloor') { v11 = true; } if (this.px > 800 - 60) { if (this.data.vx != -1) { this.data.vx = -1; this.data.idlefor = 25 * 3; v14 = false; v13 = false; } } if (this.px < 60) { if (this.data.vx != 1) { this.data.vx = 1; this.data.idlefor = 25 * 3; v14 = false; v13 = false; } } } } } else { var v11 = (_root.replay.key & Replay.KEYM_UP) ? true : false; var v12 = (_root.replay.key & Replay.KEYM_DOWN) ? true : false; var v13 = (_root.replay.key & Replay.KEYM_LEFT) ? true : false; var v14 = (_root.replay.key & Replay.KEYM_RIGHT) ? true : false; if (v11 || (v12 || (v13 || v14))) { this.ignore_mouse = true; } if (Selection.getCaretIndex() != -1) { v11 = false; v12 = false; v13 = false; v14 = false; } if (!this.ignore_mouse) { v14 = v14 || this.mc._xmouse > 20 ? true : false; v13 = v13 || this.mc._xmouse < -20 ? true : false; } if (_root.poker.poke_now) { if (this.up.mc._xmouse > 0 && (this.up.mc._ymouse > 0 && (this.up.mc._xmouse < 800 && this.up.mc._ymouse < 600))) { this.ignore_mouse = false; } if (!this.ignore_mouse) { if (this.last_poke == 0) { if (this.mc._ymouse <= 0) { this.last_poke = 1; } else { this.last_poke = -1; } } v11 = v11 || (this.last_poke == 1) ? true : false; v12 = v12 || (this.last_poke == -1) ? true : false; } else { this.last_poke = 0; } } else { this.last_poke = 0; } } if (this.state == 'inout') { if (this.inout_frame == 0) { _root.wetplay.PlaySFX('sfx_wikwikwik', 0); } else { if (this.inout_frame == 25) { _root.wetplay.PlaySFX('sfx_teleport', 0); } } if (this.inout_frame < 25) { this.minion.display('scared', 0); var v15 = (25 - this.inout_frame) * 4 / 100; var v16 = this.inout_from.x * 20 + 10 - this.px; var v17 = this.inout_from.y * 20 + 10 - this.py; this.mc._x = this.up.x2 + (this.px + v16 * (1 - v15)); this.mc._y = this.up.y2 - (this.py + v17 * (1 - v15)); this.mc._xscale = v15 * 100; this.mc._yscale = v15 * 100; this.mc._rotation = v15 * 360; } else { if (this.inout_frame < 50) { this.minion.display('excited', 0); var v15 = (this.inout_frame - 25) * 4 / 100; this.px = this.inout_to.x * 20 + 10; this.py = this.inout_to.y * 20 + 10; this.mc._x = this.up.x2 + this.px; this.mc._y = this.up.y2 - this.py; this.mc._xscale = v15 * 100; this.mc._yscale = v15 * 100; this.mc._rotation = v15 * 360; } else { this.vx = 0; this.vy = 0; var v16 = this.px; var v17 = this.py; this.mc._xscale = 100; this.mc._yscale = 100; this.mc._rotation = 0; this.state = 'jump'; this.anim = 'warp'; } } ++this.inout_frame; return undefined; } if (this.state == 'bounce') { if (this.bounce_wait > 0) { --this.bounce_wait; } if (this.bounce_wait == 0) { if (v11 || (v12 || (v13 || v14))) { this.state = 'jump'; } } } else { this.vx = 0; if (v11) { if (this.wet == 1) { if (this.state == 'onfloor') { this.vy = 12; if (this.flavour != 'chucker') { _root.wetplay.PlaySFX('sfx_jump', 0); } } this.state = 'jump'; } else { if (this.state == 'onfloor') { this.state = 'jump'; this.vy = 12; if (this.flavour != 'chucker') { _root.wetplay.PlaySFX('sfx_jump', 0); } } } } if (this.vx > 20) { this.vx = 20; } if (this.vx < -20) { this.vx = -20; } if (this.vy > 20) { this.vy = 20; } if (this.vy < -20) { this.vy = -20; } if (v12 && this.state == 'onfloor') { if (this.up.getcol(this.cx, this.cy - 1, 1) != 0 && this.up.getcol(this.cx, this.cy - 2, 1) == 0) { this.py -= 1; this.state = 'jump'; } } else { if (v13) { if (this.wet == 1) { if (this.state == 'onfloor') { this.vx = -3; } else { this.vx = -2; } } else { this.vx = -5; } } else { if (v14) { if (this.wet == 1) { if (this.state == 'onfloor') { this.vx = 3; } else { this.vx = 2; } } else { this.vx = 5; } } else {} } } } var v10 = Math.floor(Math.sqrt(this.vx * this.vx + this.vy * this.vy) / 20) * 2 + 1; if (v10 > 0) { var v8 = this.vx / v10; var v9 = this.vy / v10; while (v10 > 0) { var v25 = Math.floor(this.px / 20); var v26 = Math.floor(this.py / 20); var v28 = this.up.getcol(v25, v26, 1); var v6 = Math.floor((this.px + v8) / 20); var v7 = Math.floor((this.py + v9) / 20); if (v25 != v6) { var v29 = this.up.getcol(v6, v26, 1); if (v28 == 0 && v29 != 0 || v29 == 1) { if (v8 > 0) { this.px = v25 * 20 + 19; } else { if (v8 < 0) { this.px = v25 * 20; } } v8 = 0; if (this.state == 'bounce') { this.state = 'jump'; } } else { this.px += v8; } } else { this.px += v8; } if (v26 != v7) { v25 = Math.floor(this.px / 20); v28 = this.up.getcol(v25, v26, 1); var v29 = this.up.getcol(v25, v7, 1); if (v9 >= 0) { this.py += v9; } else { if (v28 == 0 && v29 != 0 || v29 == 1) { this.py = v26 * 20; this.vy = 0; v9 = 0; if (this.state != 'onfloor') { if (this.wet) { } else { if (this.flavour != 'chucker') { _root.wetplay.PlaySFX('sfx_step', 0); } } this.step_bool = 4; } this.state = 'onfloor'; } else { this.py += v9; } } } else { this.py += v9; } --v10; } } this.px = Math.floor(this.px + 0.5); this.py = Math.floor(this.py + 0.5); this.cx = Math.floor(this.px / 20); this.cy = Math.floor(this.py / 20); if (this.state == 'onfloor') { if (this.up.getcol(this.cx, this.cy, 1) == 0 && this.up.getcol(this.cx, this.cy - 1, 1) != 0) { } else { if (this.up.getcol(this.cx, this.cy - 1, 1) == 1) { } else { this.state = 'jump'; } } } this.wet = (this.up.getwet(this.cx, this.cy) == 1) ? 1 : 0; if (this.wet_last != this.wet) { this.wet_last = this.wet; if (this.wet) { _root.wetplay.PlaySFX('sfx_splash', 1, 0, 1 - this.wet_last_wait / 50); this.wet_last_wait = 50; } } if (this.wet_last_wait > 0) { --this.wet_last_wait; } while (this.px < this.up.x3_min) { this.px += 800; this.anim = 'warp'; } while (this.px > this.up.x3_max) { this.px -= 800; this.anim = 'warp'; } while (this.py < this.up.y3_min) { this.py += 600; this.anim = 'warp'; } var v3 = Math.floor((this.px + 5) / 10) * 10; var v4 = Math.floor((this.py + 5) / 10) * 10; var v5 = Math.floor((this.pz + 5) / 10) * 10; if (this.anim == 'warp') { this.dx = v3; this.dy = v4; this.dz = v5; this.cx = v6; this.cy = v7; } if (this.up.getwet(Math.floor(this.px / 20), Math.floor((this.py + 40) / 20)) == 1) { if (this.up.frame % 20 == 0) { this.up.blub_add(this.px, 600 - this.py - 40); } } if (this.state == 'jump') { if (this.wet) { if (v11) { this.vy += 2; } else { this.vy -= 1; } this.vx *= 3 / 4; this.vy *= 3 / 4; } else { if (v11) { if (this.vy > 0) { this.vy -= 5 / 8; } else { this.vy -= 1; } } else { this.vy -= 3; } this.vx *= 31 / 32; this.vy *= 31 / 32; } } else { if (this.state == 'bounce') { if (this.wet) { this.vy -= 1; this.vx *= 3 / 4; this.vy *= 3 / 4; } else { this.vy -= 3; this.vx *= 31 / 32; this.vy *= 31 / 32; } } } if (v12 && this.state == 'onfloor') { this.anim = 'splat'; } else { if (this.vx == 0) { if (this.anim != 'idle') { this.frame %= 6; this.frame_wait = 0; this.anim = 'idle'; this.dx = v3; this.dy = v4; this.dz = v5; } } else { if (this.vx * this.vx) { if (this.vx > 0) { if (this.anim != 'right') { this.frame %= 8; if (this.frame < 4) { this.frame = 1; } else { this.frame = 5; } this.anim = 'right'; this.frame_wait = 0; this.dx = v3; this.dy = v4; this.dz = v5; } } else { if (this.anim != 'left') { this.frame %= 8; if (this.frame < 4) { this.frame = 1; } else { this.frame = 5; } this.anim = 'left'; this.frame_wait = 0; this.dx = v3; this.dy = v4; this.dz = v5; } } } else {} } } switch (this.anim) { case 'idle': this.minion.display(this.data.anim, this.data.frame); break; case 'left': ++this.frame_wait; if (this.wet != 1 && ((this.state == 'jump' || this.state == 'bounce') && (this.frame == 4 || this.frame == 0))) { } else { var v30 = (v3 - this.dx) / -10; if (v30 != 0) { this.frame += v30; this.frame_wait = 0; } if (this.frame_wait > 3) { this.frame += 1; this.frame_wait = 0; } } this.frame %= 8; this.dx = v3; this.dy = v4; this.dz = v5; this.minion.display('left', this.frame); if (this.frame == 1 || this.frame == 5) { if (this.step_bool == 0) { if (this.state == 'onfloor') { if (this.wet) { _root.wetplay.PlaySFX('sfx_splash', 1, 0, 0.25); } else { if (this.flavour != 'chucker') { _root.wetplay.PlaySFX('sfx_step', 0); } } } } this.step_bool = 1; } else { if (this.step_bool > 0) { --this.step_bool; } } break; case 'right': ++this.frame_wait; if (this.wet != 1 && ((this.state == 'jump' || this.state == 'bounce') && (this.frame == 4 || this.frame == 0))) { } else { var v30 = (v3 - this.dx) / 10; if (v30 != 0) { this.frame += v30; this.frame_wait = 0; } if (this.frame_wait > 3) { this.frame += 1; this.frame_wait = 0; } } this.frame %= 8; this.dx = v3; this.dy = v4; this.dz = v5; this.minion.display('right', this.frame); if (this.frame == 1 || this.frame == 5) { if (this.step_bool == 0) { if (this.state == 'onfloor') { if (this.wet) { _root.wetplay.PlaySFX('sfx_splash', 1, 0, 0.25); } else { _root.wetplay.PlaySFX('sfx_step', 0); } } } this.step_bool = 1; } else { if (this.step_bool > 0) { --this.step_bool; } } break; case 'splat': this.minion.display('splat', 0); } if (this.anim == 'idle' || (this.anim == 'splat' || (this.state == 'jump' || this.state == 'bounce'))) { this.mc._x = this.up.x2 + this.px; this.mc._y = this.up.y2 - this.py; } else { this.mc._x = this.up.x2 + this.dx; this.mc._y = this.up.y2 - this.dy; } }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20489 __Packages.WetBaseMentZoo { #initclip if (!WetBaseMentZoo) { _global.WetBaseMentZoo = function (_up) { this.up = _up; }; var v1 = _global.WetBaseMentZoo.prototype; v1.delegate = function (f, d1, d2) { return com.dynamicflash.utils.Delegate.create(this, f, d1, d2); }; v1.rnd_seed = function (n) { this.rnd_num = n & 65535; }; v1.rnd = function () { this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537; return this.rnd_num; }; v1.setup = function () { this.floatx = 0; this.floaty = 0; this.frame = 0; this.mc = gfx.create_clip(this.up.mc, null); this.back = new WetBaseMentTitle(this, 'zoo_all', this.up.play); this.back.setup(); this.x2 = 25; this.y2 = 575; this.x2_min = 0; this.y2_min = 0; this.x2_max = 800; this.y2_max = 600; this.x3 = 0; this.y3 = 0; this.z3 = 0; this.x3_min = 0; this.y3_min = 0; this.z3_min = 0; this.x3_max = 600; this.y3_max = 600; this.z3_max = 600; this.tards = new Array(); var v2 = 1; goto 1402; for (;;) { ++v2; label 1402: if (v2 >= this.up.tards.length) break; this.tards[v2] = new Vtard3d(this); this.tards[v2].setup(this.up.tards[v2].img1); this.tards[v2].updat = this.up.tards[v2]; this.tards[v2].px = this.x3_min + (this.rnd() / 65536) * (this.x3_max - this.x3_min); this.tards[v2].py = this.y3_min; this.tards[v2].pz = this.z3_min + (this.rnd() / 65536) * (this.z3_max - this.z3_min); this.tards[v2].mc.onRollOver = this.delegate(this.dotard, 'over', this.tards[v2]); this.tards[v2].mc.onRollOut = this.delegate(this.dotard, 'out', this.tards[v2]); this.tards[v2].mc.onReleaseOutside = this.delegate(this.dotard, 'out', this.tards[v2]); this.tards[v2].mc.onRelease = this.delegate(this.dotard, 'release', this.tards[v2]); this.tards[v2].mc.onPress = this.delegate(this.dotard, 'press', this.tards[v2]); this.tards[v2].update(); } this.talky = new Talky(this); this.talky.setup(); v2 = 1; goto 2099; for (;;) { ++v2; label 2099: if (v2 >= this.tards.length) break; this.tards[v2].talk = this.talky.create(this.tards[v2].mc, 0, -30); } var v5 = gfx.create_clip(this.mc, null, 75, 150, 150, 150); this.mc_tard = v5; v5.id = 'tard'; this.minion = new Minion({'mc': v5}); this.minion.setup(this.up.tards[this.up.tard_idx].img1, 50, 100); this.monkeysee = this.tards[this.up.tard_idx]; this.mc_tard.mcname = gfx.create_clip(this.mc_tard, null); gfx.dropshadow(this.mc_tard.mcname, 2, 45, 0, 1, 4, 4, 2, 3); this.mc_tard.name = gfx.create_text_html(this.mc_tard.mcname, null, -80, -102, 160, 20); this.drag = null; }; v1.clean = function () { this.back.clean(); this.mc.removeMovieClip(); }; v1.dotard = function (act, tard) { switch (act) { break; case 'over': case 'out': _root.poker.ShowFloat(null, 0); this.drag = null; break; case 'release': this.drag = null; break; case 'press': this.drag = {}; this.drag.tard = tard; this.drag.mx = this.mc._xmouse; this.drag.my = this.mc._ymouse; this.drag.px = tard.px; this.drag.pz = tard.pz; this.minion.setsoul(tard.updat.img1); this.monkeysee = tard; this.up.tard_idx = tard.updat.idx; } }; v1.update = function () { ++this.frame; var v4 = (this.frame % 50 - 25) / 25; if (v4 < 0) { v4 = -v4; } var v5 = v4 * v4; var v6 = v5 + v5 * 2 - v5 * v4 * 2; this.floatx = 0; this.floaty = v6 * 25; this.mc_tard._x = 390 + this.floatx; this.mc_tard._y = 205 + this.floaty; this.back.mcs.floater_back._x = -400 + this.floatx; this.back.mcs.floater_back._y = -300 + this.floaty; this.back.mcs.floater_start._x = -400 + this.floatx; this.back.mcs.floater_start._y = -300 + this.floaty; if (this.drag) { var v7 = this.mc._xmouse - this.drag.mx; var v8 = this.mc._ymouse - this.drag.my; v7 += v8; var v9 = -v8 * 4; this.drag.tard.px = this.drag.px + v7; this.drag.tard.pz = this.drag.pz + v9; this.drag.tard.rndstate = 'idle'; this.drag.tard.rndcount = 25 * 5; } var v2 = 1; goto 3634; for (;;) { ++v2; label 3634: if (v2 >= this.tards.length) break; this.tards[v2].update(); } v2 = 2; goto 3717; for (;;) { ++v2; label 3717: if (v2 >= this.tards.length) break; if (this.tards[v2].pz > this.tards[v2 - 1].pz) { if (this.tards[v2].mc.getDepth() > this.tards[v2 - 1].mc.getDepth()) { this.tards[v2].mc.swapDepths(this.tards[v2 - 1].mc); var v3 = this.tards[v2]; this.tards[v2] = this.tards[v2 - 1]; this.tards[v2 - 1] = v3; } } } this.minion.display(this.monkeysee.minion.anim, this.monkeysee.minion.frame); gfx.set_text_html(this.mc_tard.name, 12, 16777215, '<p align="center"><b>' + this.up.tards[this.up.tard_idx].name + '</b></p>'); this.talky.update(); }; ASSetPropFlags(v1, null, 1); v1.rnd_num = 0; v1.drag = null; } #endinitclip } movieClip 20490 __Packages.WetBaseMentLevel_level_02 { #initclip if (!WetBaseMentLevel_level_02) { _global.WetBaseMentLevel_level_02 = function () {}; var v1 = _global.WetBaseMentLevel_level_02.prototype; ASSetPropFlags(v1, null, 1); v1.img_bak = 'level_02_bak'; v1.img_for = 'level_02_for'; v1.name = 'level_02'; v1.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, 0, 0, 0, 17, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 254, 0, 17, 0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, 0, 0, 0, 0, 0, 0, 1]; } #endinitclip } movieClip 20491 __Packages.WetBaseMentPlay { #initclip if (!WetBaseMentPlay) { _global.WetBaseMentPlay = function (_up) { this.gamemode = 'race'; this.gameskill = 'easy'; this.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}); this.talky = new Talky(this); }; var v1 = _global.WetBaseMentPlay.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.rnd_seed = function (n) { this.rnd_num = n & 65535; this.rndg_num = n & 65535; }; v1.rnd = function () { this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537; return this.rnd_num; }; v1.rndg_seed = function (n) { this.rndg_num = n & 65535; }; v1.rndg = function () { this.rndg_num = ((this.rndg_num + 1) * 75 - 1) % 65537; return this.rndg_num; }; v1.setup = function () { this.level = this.up.levels[this.up.level_idx]; this.chat = this.level.chat_start; this.up.game_seed = this.level.game_seed; this.rnd_seed(this.up.game_seed); this.frame = 0; this.score = 0; this.dribble_vol = -1; this.items = []; this.pickups = []; this.blubs = []; if (this.snapbmp) { this.snapmc = gfx.create_clip(this.up.mc, null); this.snapmc.attachBitmap(this.snapbmp, 0, 'auto', true); this.snapmc._y = 0; this.mc._y = this.snapmc._y - 600; this.snapold.dest = null; } else { this.snapmc = null; } this.mc = gfx.create_clip(this.up.mc, null); this.x2 = 0; this.y2 = 600; this.x2_min = 0; this.y2_min = 0; this.x2_max = 800; this.y2_max = 600; this.x3 = 0; this.y3 = 0; this.z3 = 0; this.x3_min = 0; this.y3_min = 0; this.z3_min = 0; this.x3_max = 800; this.y3_max = 600; this.z3_max = 0; this.bmc = gfx.add_clip(this.mc, this.level.img_bak, null, 0, 0); this.bmc.cacheAsBitmap = true; this.imc = gfx.create_clip(this.mc, null); this.tards = []; this.setcols(this.level.col); this.tards[0] = new Vtard2d(this, 'talker'); this.tards[0].setup(this.up.tards[this.up.tard_idx].img1); this.tards[0].state = 'talker'; this.tards[0].chat_id = 1; this.tards[0].px = this.start_x; this.tards[0].py = this.start_y; if (this.gamemode == 'story') { if (this.tards[1] == undefined) { this.tards[1] = new Vtard2d(this, 'player'); this.tards[1].setup('vtard_kriss'); this.tards[1].state = 'talker'; this.tards[1].chat_id = 0; } } this.chat_idx = -1; this.chat_tim = 0; this.focus = this.tards[0]; this.blubs_mc = gfx.create_clip(this.mc, null); this.wmc = _root.bmc.create(this.mc, 'water', null); this.wmc._alpha = 50; this.fmc = gfx.create_clip(this.mc, null); gfx.clear(this.fmc); this.fmc.style.fill = -16777216; gfx.draw_box(this.fmc, 0, 0, 0, 20, 600); gfx.draw_box(this.fmc, 0, 0, 600 - 20, 800, 20); gfx.draw_box(this.fmc, 0, 800 - 20, 0, 20, 600); this.fmc.cacheAsBitmap = true; this.tfd = gfx.create_text_html(this.mc, null, 0, 0, 800, 600); this.txd = []; _root.replay.reset(); this.talky.setup(); this.tards[0].talk = this.talky.create(this.tards[0].mc, 0, -30); this.tards[1].talk = this.talky.create(this.tards[1].mc, 0, -30); this.activate_item(); this.mc_score = gfx.create_clip(this.mc, null); this.mc_score.tf1 = gfx.create_text_html(this.mc_score, null, 300, 0, 200, 75); gfx.glow(this.mc_score, 16777215, 0.8, 16, 16, 1, 3, false, false); _root.signals.signal('WetBaseMent', 'set', this); _root.signals.signal('WetBaseMent', 'start', this); this.state = 'start'; if (this.gamemode == 'race') { _root.wetplay.PlaySFX(null, 3, 65536, 0); this.up.high.setup(); var v2 = 0; goto 4541; for (;;) { ++v2; label 4541: if (v2 >= _root.menu.customItems.length) break; if (_root.menu.customItems[v2].id == 'restart') { _root.menu.customItems[v2].visible = true; } } } else { if (this.gamemode == 'story') { if (this.up.level_idx == 1) { this.scores_story_total = 0; } } } this.update(); this.update(); }; v1.build_snapbmp = function () { this.snapbmp = new flash.display.BitmapData(800, 600, false, 0); this.snapbmp.draw(this.mc); this.snapold = new Object(); this.snapold.x = this.tards[0].mc._x; this.snapold.y = this.tards[0].mc._y; }; v1.clean_snapbmp = function () { this.snapbmp = null; }; v1.clean = function () { _root.wetplay.PlaySFX(null, 3); _root.signals.signal('WetBaseMent', 'end', this); var v2 = 0; goto 5072; for (;;) { ++v2; label 5072: if (v2 >= _root.menu.customItems.length) break; if (_root.menu.customItems[v2].id == 'restart') { _root.menu.customItems[v2].visible = false; } } this.tards[0].mc._visible = false; this.tards[1].mc._visible = false; this.build_snapbmp(); this.talky.clean(); this.tards[0].clean(); this.tards[1].clean(); this.mc.removeMovieClip(); this.snapmc.removeMovieClip(); }; v1.update = function () { if (_root.popup) { return undefined; } if (this.state == 'start') { if (this.gamemode == 'story') { if (this.snapmc) { ++this.wibble; this.tards[0].mc._visible = false; this.tards[1].mc._visible = false; if (this.frame > 0) { this.tards[0].mc._visible = true; if (this.snapold.dest == null) { this.snapold.dest = new Object(); this.snapold.dest.x = this.tards[0].mc._x; this.snapold.dest.y = this.tards[0].mc._y; this.tards[0].mc.x = this.snapold.x; this.tards[0].mc.y = this.snapold.y + 600; } var v4 = 600 - this.snapmc._y; var v5 = Math.floor(v4 / 16); v5 = v4 / 16; if (v5 > 8) { v5 = 8; } if (v5 < -8) { v5 = -8; } if (v5 < 1) { v5 = 1; } this.snapmc._y += v5; this.mc._y = this.snapmc._y - 600; if (this.wibble > 1) { v4 = this.snapold.dest.y - this.tards[0].mc.y; v5 = v4 / 16; if (v5 > 12) { v5 = 12; } if (v5 < -12) { v5 = -12; } this.tards[0].mc.y += v5; v4 = this.snapold.dest.x - this.tards[0].mc.x; v5 = v4 / 16; if (v5 > 12) { v5 = 12; } if (v5 < -12) { v5 = -12; } this.tards[0].mc.x += v5; this.tards[0].mc._x = this.tards[0].mc.x; this.tards[0].mc._y = this.tards[0].mc.y; } this.wiblur += -this.wiblur / 32; gfx.blur(this.tards[0].mc, this.wiblur, this.wiblur, 1); } else { this.wibble = 0; this.wiblur = 64; } if (this.snapmc._y >= 600) { this.mc._y = 0; this.snapmc.removeMovieClip(); this.snapmc = null; this.tards[0].mc._visible = true; this.tards[1].mc._visible = true; this.tards[0].mc.filters = null; this.state = 'play'; } else { if (this.frame > 0) { return undefined; } } } else { this.state = 'play'; } } else { if (!_root.popup) { this.state = 'play'; } else { return undefined; } } } if (this.state == 'end') { this.tards[0].mc._visible = false; this.tards[1].mc._visible = false; if (!_root.popup) { if (this.gamemode == 'story') { this.up.state_next = 'play'; ++this.up.level_idx; if (this.up.level_idx == 11) { this.up.title.state = 'end1_all'; this.up.state_next = 'title'; this.up.level_idx = 1; } } else { if (this.up.high.retry) { this.up.state_next = 'play'; } else { this.up.title.state = 'levels_all'; this.up.state_next = 'title'; } } this.state = 'end_done'; } return undefined; } if (this.state == 'end_done') { return undefined; } _root.signals.signal('WetBaseMent', 'update', this); ++this.frame; this.talky.update(); if (this.score > 0 && this.pickups.length > 0) { --this.score; } _root.replay.apply_keys_to_prekey(); _root.replay.update(); this.update_water(); var v3 = 0; goto 7582; for (;;) { ++v3; label 7582: if (v3 >= this.tards.length) break; this.tards[v3].update(); } v3 = 0; goto 7665; for (;;) { ++v3; label 7665: if (v3 >= this.pickups.length) break; if (this.pickups[v3].update()) { var v6 = this.pickups[v3]; this.pickups.splice(v3, 1); --v3; this.activate_item(v6); v6.clean(); } } var v7 = '<font size="12"><br><b>' + this.level.name + '</b></font>'; if (this.gamemode == 'story') { if (this.state == 'play') { gfx.set_text_html(this.mc_score.tf1, 32, 16777215, '<p align="center"><b>' + (this.scores_story_total + this.score) + '</b>' + v7 + '</p>'); } else { gfx.set_text_html(this.mc_score.tf1, 32, 16777215, '<p align="center"><b>' + this.scores_story_total + '</b>' + v7 + '</p>'); } } else { gfx.set_text_html(this.mc_score.tf1, 32, 16777215, '<p align="center"><b>' + this.score + '</b>' + v7 + '</p>'); } v3 = 0; goto 8140; for (;;) { ++v3; label 8140: if (v3 >= this.items.length) break; if (this.items[v3].update()) { this.items[v3].clean(); this.items.splice(v3, 1); --v3; } } v3 = 0; goto 8292; for (;;) { ++v3; label 8292: if (v3 >= this.blubs.length) break; if (this.blub_update(this.blubs[v3])) { this.blub_remove(this.blubs[v3]); this.blubs.splice(v3, 1); --v3; } } var v2 = ''; v3 = 0; goto 8458; for (;;) { ++v3; label 8458: if (v3 >= this.txd.length) break; v2 += this.txd[v3]; } gfx.set_text_html(this.tfd, 16, 65280, v2); this.txd = []; }; v1.activate_item = function (olditem) { if (olditem) { var v5 = {}; v5.x = 0; v5.y = 0; olditem.mc.localToGlobal(v5); this.up.over.mc.globalToLocal(v5); var v6 = this.tards[0].vx; var v7 = -this.tards[0].vy; var v3 = 5; goto 8786; for (;;) { --v3; label 8786: if (v3 <= 0) break; var v8 = 16 * ((this.rndg() - 32768) / 32768); var v9 = 8 * ((this.rndg() - 32768) / 32768) - 32; var v4 = FieldItem.hard_launch(this.up.over, 'ether', v5.x, v5.y, v6 + v8, v7 + v9); } this.up.over.add_floater('<b>500</b><font size="12">pts</font>', v5.x, v5.y); _root.wetplay.PlaySFX('sfx_jar', 1); } if (this.pickups.length > 23 - 13) { v3 = this.rnd() % this.pickups.length; this.pickups[v3].activate(); } else { this.state = 'end'; _root.signals.signal('WetBaseMent', 'won', this); if (this.gamemode == 'race') { _root.wetplay.PlaySFX(null, 3, 65536, 0); this.up.high.setup('results'); } else { if (this.gamemode == 'story') { if (this.up.level_idx == 10) { _root.wetplay.PlaySFX(null, 3, 65536, 0); this.up.high.setup('rank'); } } } } }; v1.blub_add = function (_x, _y) { var v4 = {}; v4 = gfx.create_clip(this.mc, null); v4._x = Math.floor(_x + ((this.rndg() & 255) - 127) / 32); v4._y = Math.floor(_y + ((this.rndg() & 255) - 127) / 16); gfx.clear(v4); v4.style.out = -2130706433; v4.style.fill = -2130706433; gfx.draw_rounded_rectangle(v4, 0, 5, 2, -5, -5, 10, 10); v4._alpha = 50; v4.pop = false; this.blubs[this.blubs.length] = v4; }; v1.blub_update = function (bb) { if (bb.pop) { bb._xscale += 20; bb._yscale += 20; bb._alpha -= 10; if (bb._alpha <= 0) { return true; } return false; } bb._y -= 2; if (bb._y % 8 < 4) { bb._x -= 1; } else { bb._x += 1; } var v3 = this.getwet(Math.floor(bb._x / 20), Math.floor((600 - bb._y) / 20)); if (v3 < 0.5 || v3 == 2) { bb.pop = true; _root.wetplay.PlaySFX('sfx_plop2', 2); } return false; }; v1.blub_remove = function (bb) { bb.removeMovieClip(); }; v1.dbgframe = function (s) { this.txd[this.txd.length] = s; }; v1.setcols = function (dat) { var v8 = []; var v6 = 40; var v7 = 30; this.col = []; this.col[0] = []; var v5 = 0; goto 10397; for (;;) { ++v5; label 10397: if (v5 >= v7) break; var v4 = 0; goto 10440; for (;;) { ++v4; label 10440: if (v4 >= v6) break; v8[0] = dat[v4 + v5 * v6]; if (v8[0] >= 128) { v8[0] = 0; } this.col[0][v4 + v5 * v6] = v8[0]; } } this.col[1] = []; v5 = 0; goto 10621; for (;;) { ++v5; label 10621: if (v5 >= v7) break; v4 = 0; goto 10664; for (;;) { ++v4; label 10664: if (v4 >= v6) break; v8[0] = dat[v4 + v5 * v6]; if (v4 > 0) { v8[-1] = dat[v4 - 1 + v5 * v6]; } else { v8[-1] = 0; } if (v4 < v6 - 1) { v8[1] = dat[v4 + 1 + v5 * v6]; } else { v8[1] = 0; } if (v8[-1] >= 128) { v8[-1] = 0; } if (v8[0] >= 128) { v8[0] = 0; } if (v8[1] >= 128) { v8[1] = 0; } if (v8[-1] == 1 || (v8[0] == 1 || v8[1] == 1)) { this.col[1][v4 + v5 * v6] = 1; } else { if (v8[0]) { this.col[1][v4 + v5 * v6] = v8[0]; } else { if (v8[-1] || v8[1]) { this.col[1][v4 + v5 * v6] = 17; } else { this.col[1][v4 + v5 * v6] = v8[0]; } } } } } var v3 = 0; goto 11310; for (;;) { ++v3; label 11310: if (v3 >= 2) break; v4 = 0; goto 11356; for (;;) { ++v4; label 11356: if (v4 >= v6) break; v5 = 1; goto 11399; for (;;) { ++v5; label 11399: if (v5 >= v7) break; if (this.col[v3][v4 + v5 * v6]) { if (this.col[v3][v4 + (v5 - 1) * v6] == 1) { this.col[v3][v4 + v5 * v6] = 1; } } } } } this.water_active = []; this.water = []; v5 = 0; goto 11601; for (;;) { ++v5; label 11601: if (v5 >= v7) break; v4 = 0; goto 11644; for (;;) { ++v4; label 11644: if (v4 >= v6) break; v8[0] = dat[v4 + v5 * v6]; var v9 = v4 * 2 + v5 * v6 * 2; if (v8[0] >= 128) { v8[0] = 0; } this.water[v9 + 0] = 0; this.water[v9 + 1] = 0; if (v8[0]) { this.water[v9 + 1] = 2; } } } this.water_waves = []; v5 = 0; goto 11911; for (;;) { ++v5; label 11911: if (v5 >= v7) break; v4 = 0; goto 11954; for (;;) { ++v4; label 11954: if (v4 >= v6) break; v8[0] = dat[v4 + v5 * v6]; v9 = v4 * 2 + v5 * v6 * 2; if (v8[0] >= 208 && v8[0] < 240) { var v12 = v8[0] & 16; var v13 = v8[0] & 15; var v14 = -1; v3 = 0; goto 12171; for (;;) { ++v3; label 12171: if (v3 >= this.items.length) break; if (this.items[v3].type == 'inout') { if (this.items[v3].id == v13) { v14 = v3; } } } var v11 = new PlayItem(this, v4, v5, 'inout'); v11.id = v13; if (v12) { v11.activate(); } v11.other = null; if (v14 >= 0) { v11.other = this.items[v14]; this.items[v14].other = v11; } this.items[this.items.length] = v11; } else { if (v8[0] == 255) { var v10 = new Object(); v10.px = v4; v10.py = v5; v10.vx = 0; v10.vy = 0; v9 = v10.px * 2 + v10.py * v6 * 2; this.water[v9 + 1] = 0.1; this.add_wave(v10.px, v10.py); this.water_active[0] = v10; } else { if (v8[0] == 254) { this.pickups[this.pickups.length] = new PlayItem(this, v4, v5, 'meta'); } else { if (v8[0] == 253) { this.start_x = v4 * 20 + 10; this.start_y = v5 * 20; } else { if (v8[0] == 252) { this.items[this.items.length] = new PlayItem(this, v4, v5, 'bump'); } else { if (v8[0] == 251) { this.items[this.items.length] = new PlayItem(this, v4, v5, 'cannon'); } else { if (v8[0] == 250) { if (this.gameskill == 'hard') { this.items[this.items.length] = new PlayItem(this, v4, v5, 'whirl'); } } else { if (v8[0] == 249) { this.tards[1] = new Vtard2d(this); this.tards[1].setup('vtard_kriss', 'chucker'); this.tards[1].px = v4 * 20 + 10; this.tards[1].py = v5 * 20; this.tards[1].chat_id = 0; this.tards[1].data.whirl1 = new PlayItem(this, v4, v5, 'whirl'); this.tards[1].data.whirl1.disable(); this.items[this.items.length] = this.tards[1].data.whirl1; } } } } } } } } } } _root.bmc.bmp_fill('water', 0, 0, 800, 600, 0); v5 = 0; goto 13450; for (;;) { ++v5; label 13450: if (v5 >= v7) break; v4 = 0; goto 13493; for (;;) { ++v4; label 13493: if (v4 >= v6) break; this.draw_water(v4, v5); } } var v10 = new Object(); v10.px = 1; v10.py = 0; this.water_seep = v10; }; v1.getcol = function (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 this.col[1][x + y * 40]; } return this.col[0][x + y * 40]; }; v1.getwet = function (x, y) { if (x < 0) { return 0; } if (x >= 40) { return 0; } if (y < 0) { return 0; } if (y >= 30) { return 0; } return this.water[x * 2 + y * 40 * 2 + 1]; }; v1.draw_water = function (x, y, bend) { var v8 = 40; var v9 = 30; var v6 = x * 2 + y * v8 * 2; var v7 = x * 2 + (y - 1) * v8 * 2; var v5 = this.water[v6 + 1]; if (this.water[v6 + 1] != 2) { var v10 = Math.floor(10 * v5); if (bend) { v10 += bend; } if (v10 < 0) { v10 = 0; } if (v10 > 10) { v10 = 10; } if (this.water[v6 + 0] == 2) { _root.bmc.bmp_blit('water_chars', 'water', 20 * v10, 20 * 1, 20, 20, x * 20, 580 - y * 20); } else { if (y > 0) { if (this.water[v7 + 1] < 1) { _root.bmc.bmp_blit('water_chars', 'water', 20 * v10, 20 * 2, 20, 20, x * 20, 580 - y * 20); } else { _root.bmc.bmp_blit('water_chars', 'water', 20 * v10, 20 * 3, 20, 20, x * 20, 580 - y * 20); } } else { _root.bmc.bmp_blit('water_chars', 'water', 20 * v10, 20 * 3, 20, 20, x * 20, 580 - y * 20); } } return v5; } _root.bmc.bmp_blit('water_chars', 'water', 20 * 0, 20 * 3, 20, 20, x * 20, 580 - y * 20); return v5; }; v1.add_wave = function (x, y) { var v4 = new Object(); v4.px = x; v4.py = y; this.water_waves[this.water_waves.length] = v4; }; v1.update_water = function () { var v2 = 40; var v3 = 30; if (this.dribble_vol == -1) { _root.wetplay.PlaySFX('sfx_dribble', 3, 65536, 0); } this.dribble_vol = this.water_waves.length / 256; if (this.dribble_vol > 1) { this.dribble_vol = 1; } _root.wetplay.PlaySFX(null, 3, 65536, this.dribble_vol); var v4 = 0; goto 15203; for (;;) { ++v4; label 15203: if (v4 >= this.water_active.length) break; var v5 = this.water_active[v4]; var v6 = v5.px * 2 + v5.py * v2 * 2; var v7 = (v5.px - 1) * 2 + v5.py * v2 * 2; var v8 = (v5.px + 1) * 2 + v5.py * v2 * 2; var v10 = v5.px * 2 + (v5.py + 1) * v2 * 2; var v9 = v5.px * 2 + (v5.py - 1) * v2 * 2; if (this.water[v9 + 1] < 1 && this.water[v9 + 0] != 2) { v5.py -= 1; } else { if (this.water[v8 + 1] < this.water[v7 + 1] && (this.water[v8 + 1] < this.water[v6 + 1] && this.water[v8 + 0] != 2)) { v5.px += 1; v5.vx = 1; } else { if (this.water[v7 + 1] < this.water[v8 + 1] && (this.water[v7 + 1] < this.water[v6 + 1] && this.water[v7 + 0] != 2)) { v5.px -= 1; v5.vx = -1; } else { if (this.water[v6 + 0] > 0 && this.water[v6 + 0] != 2) { if (this.water[v8 + 1] < 2 && this.water[v8 + 0] != 2) { v5.px += 1; v5.vx = 1; } else { v5.vx = -1; } } else { if (this.water[v7 + 1] < 2 && this.water[v7 + 0] != 2) { v5.px -= 1; v5.vx = -1; } else { v5.vx = 1; } } } } } v6 = v5.px * 2 + v5.py * v2 * 2; v10 = v5.px * 2 + (v5.py + 1) * v2 * 2; if (v5.py < 29) { if (this.water[v6 + 1] == 1) { if (this.water[v10 + 1] < 2) { v5.py += 1; } } } v6 = v5.px * 2 + v5.py * v2 * 2; this.water[v6 + 1] += 0.1; if (this.water[v6 + 1] > 0.95) { this.water[v6 + 1] = 1; } if (this.water[v6 + 0] < 2) { this.water[v6 + 0] = v5.vx; } if (this.water[v6 + 1] == 0.1) { this.add_wave(v5.px, v5.py); } this.draw_water(v5.px, v5.py); } v5 = this.water_seep; var v11 = -1; var v13 = 0; goto 16893; for (;;) { for (;;) { ++v13; label 16893: if (v13 >= 30) break; v6 = v5.px * 2 + v13 * v2 * 2; if (this.water[v6 + 1] == 1) { if (v11 != -1) { if (this.water[v11 + 1] != 0) break; if (this.water[v11 + 1] == 2) { this.water[v11 + 1] = 0; this.water[v11 + 0] = 2; } this.water[v11 + 1] += 0.1; if (this.water[v11 + 1] > 0.95) { this.water[v11 + 1] = 1; } this.add_wave(v5.px, storedv14); this.draw_water(v5.px, storedv14); v11 = -1; } continue; } v11 = v6; var v14 = v13; } } v5.px += 1; if (v5.px > 38) { v5.px = 1; } if (this.frame % 2 == 0) { v4 = 0; goto 17464; for (;;) { ++v4; label 17464: if (v4 >= this.water_waves.length) break; v5 = this.water_waves[v4]; var v16 = (v5.px + v5.py + this.frame / 2) % 4; if (v16 > 1) { v16 = 4 - v16; } v16 = 1 - v16; var v15 = this.draw_water(v5.px, v5.py, v16); if (v15 == 1) { this.draw_water(v5.px, v5.py, 0); this.water_waves.splice(v4, 1); --v4; } } } }; v1.get_rank_score = function (best) { this.scores_best_new = best; this.scores_best_old = 0; var v4 = 0; if (this.gameskill == 'easy') { var v3 = this.scores_easy; } else { var v3 = this.scores_hard; } if (v3) { var v5 = 0; goto 17887; for (;;) { ++v5; label 17887: if (v5 >= 10) break; if (v3[v5][2] == this.up.game_seed) { this.scores_best_old = v3[v5][0]; if (v3[v5][0] < best) { v3[v5][0] = best; } this.scores_story_total += v3[v5][0]; } if (v3[v5][0]) { v4 += v3[v5][0]; } } } return v4; }; ASSetPropFlags(v1, null, 1); v1.start_x = 100; v1.start_y = 40; v1.rnd_num = 0; v1.rndg_num = 0; } #endinitclip } movieClip 20492 __Packages.Login { #initclip if (!Login) { _global.Login = function (_up, _str) { this.up = _up; _root.login = this; if (_str == 'join') { this.joinonly = true; this.autologin = false; } }; var v1 = _global.Login.prototype; v1.delegate = function (f, d, i) { return com.dynamicflash.utils.Delegate.create(this, f, d, i); }; v1.rnd_seed = function (n) { this.rnd_num = n & 65535; }; v1.rnd = function () { this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537; return this.rnd_num; }; v1.setup = function () { if (_root.skip_wetlogin) { this.so_load(); _root.Login_Name = 'me'; _root.Login_Done = true; _root.Login_Session = 0; this.up.state_next = 'menu'; return undefined; } this.user_php = 'http://' + _root.host + '/swf/users.php'; this.viewYdest = 0; this.viewY = 0; this.frame = 0; this.file_name = 'register'; this.file_lines = Login.register_lines; this.dat.saves_reset_temps(); this.mc.removeMovieClip(); this.mc = gfx.create_clip(this.up.mc, null); MainStatic.apply_800x600_scale(this.mc); this.zmc = gfx.create_clip(this.mc, null); this.omc = gfx.create_clip(this.mc, null, 400, 300); this.mcs = new Array(); this.parallax = new Array(); var v8 = 0; var v9 = null; this.mcs_max = this.file_lines.length - 1; var v2 = 0; goto 15664; for (;;) { ++v2; label 15664: if (v2 >= this.mcs_max) break; var v3 = this.file_lines[v2]; var v4 = v3.split(','); if (v4[0] == '') { v4[0] = null; } if (v4[1] == '') { v4[1] = null; } if (v4[2] == '') { v4[2] = null; } v9 = this.parallax[v4[1]]; if (v9 == null) { v9 = gfx.create_clip(this.zmc, null, 400, 300); v9.zoom = 1; this.parallax[v4[1]] = v9; v9.cacheAsBitmap = true; switch (v4[1]) { case 'login': v9._y -= 600; break; case 'signup': v9._y += 600; } } if (v4[0] == 'circ') { this.mcs[v2] = gfx.create_clip(v9, null); this.mcs[v2].mc = gfx.add_clip(this.mcs[v2], this.file_name, null); this.mcs[v2].mc.gotoAndStop(v2 + 1); this.mcs[v2].cacheAsBitmap = true; var v5 = this.mcs[v2].mc.getBounds(this.mcs[v2]); v5.fx = (v5.xMax + v5.xMin) / 2; v5.fy = (v5.yMax + v5.yMin) / 2; this.mcs[v2]._x += v5.fx - 400; this.mcs[v2].mc._x -= v5.fx; this.mcs[v2]._y += v5.fy - 300; this.mcs[v2].mc._y -= v5.fy; } else { this.mcs[v2] = gfx.add_clip(v9, this.file_name, null); var v6 = this.mcs[v2]; v6._x = -400; v6._y = -300; v6.gotoAndStop(v2 + 1); v6.cacheAsBitmap = true; } v6.active = true; v6.onPress = this.delegate(this.press, v6); v6.onRelease = this.delegate(this.click, v6); v6.onRollOver = this.delegate(this.hover_on, v6); v6.onRollOut = this.delegate(this.hover_off, v6); v6.onReleaseOutside = this.delegate(this.hover_off, v6); v6.tabEnabled = false; v6.useHandCursor = false; v6 = this.mcs[v2]; v6.idx = v2; v6.nam = v4[0]; v6.group = v4[1]; v6.nams = v6.nam.split('_'); v6._visible = true; switch (v6.nams[0]) { case 'but': v6._alpha = 25; if (v6.nams[1] == 'flag') { v6._visible = false; } v6.useHandCursor = true; break; case 'text': var v5 = v6.getBounds(v9); v5.w = v5.xMax - v5.xMin; v5.h = v5.yMax - v5.yMin; v6.tf = gfx.create_text_html(v9, null, v5.xMin, v5.yMin, v5.w, v5.h); gfx.set_text_html(v6.tf, 16, 0, v6.nam); break; case 'edit': var v5 = v6.getBounds(v9); v5.w = v5.xMax - v5.xMin; v5.h = v5.yMax - v5.yMin; v6.tf = gfx.create_text_edit(v9, null, v5.xMin, v5.yMin, v5.w, v5.h); v6.tf.setNewTextFormat(gfx.create_text_format(40, -16777216)); v6.tf.text = 'me'; v6.tf.onKillFocus = this.delegate(this.lostfocus, v6); } this.mcs[v6.nam] = v6; this.topmc = v9; } this.mcs.but_skiplogin._visible = false; this.mcs.edit_pass2.tf.password = true; this.mcs.edit_pass3.tf.password = true; this.mcs.edit_pass2.tf.text = ''; this.mcs.edit_pass3.tf.text = ''; this.thunk(); this.update(); if (_root.name != undefined) { this.name_set(_root.name); } else { if (_root.ng_username != undefined) { this.name_set(_root.ng_username); } else { if (_root.kongregate_username != undefined && _root.kongregate_username.toLowerCase() != 'guest') { this.name_set(_root.kongregate_username); } else { if (_root.signals.name) { this.name_set(_root.signals.name); } else { this.reroll(); } } } } this.info_show(''); this.info_unlock(''); this.so_load(); this.thunk(); }; v1.logindone = function () { _root.wtf.logindone(); _root.wetplay.logindone(); }; v1.clean = function () { if (_root.skip_wetlogin) { this.logindone(); return undefined; } if (!_root.swish) { _root.swish.clean(); _root.swish = (new Swish({'style': 'slide_left', 'mc': this.mc})).setup(); } this.zmc._x = 0; this.zmc._y = 0; this.mc.removeMovieClip(); this.mc = null; _root.Login_Name = this.name_text; _root.Login_Done = true; _root.Login_Session = this.session; this.so_save(); this.autologin = false; this.logindone(); }; v1.so_load = function () { this.so = SharedObject.getLocal('wetlogin'); var v2 = this.so.data; if (v2.version == this.VERSION) { if (v2.name) { this.name_set(v2.name); } if (v2.session) { this.session = v2.session; } if (v2.opt_chat) { this.opt_chat = (v2.opt_chat == 1) ? true : false; } if (v2.opt_sound) { this.opt_sound = (v2.opt_sound == 1) ? true : false; } } if (_root.S) { this.session = _root.S; } if (this.session != null && (this.session != 0 && this.autologin)) { this.do_session(); } }; v1.so_save = function () { var v2 = this.so.data; v2.version = this.VERSION; v2.name = this.name_text; v2.session = this.session; v2.opt_chat = this.opt_chat ? 1 : 2; v2.opt_sound = this.opt_sound ? 1 : 2; this.so.flush(); }; v1.hover_off = function (me) { if (_root.popup | this.locked) { return undefined; } if (this.over == me) { this.do_this(me, 'off'); this.over = null; } }; v1.hover_on = function (me) { if (_root.popup | this.locked) { return undefined; } if (this.over != me) { this.do_this(me, 'on'); this.over = me; } }; v1.press = function (me) { if (_root.popup | this.locked) { return undefined; } this.do_this(me, 'press'); }; v1.click = function (me) { if (_root.popup | this.locked) { return undefined; } this.do_this(me, 'click'); }; v1.lostfocus = function (nmc, me) { if (_root.popup | this.locked) { return undefined; } switch (me.nam) { if (me.nam !== 'edit_name3') { } else { case 'edit_name1': case 'edit_name2': this.name_set(me.tf.text); } } }; v1.thunk = function () { if (this.joinonly) { if (this.viewYdest == 0) { this.mcs.but_back1._visible = false; this.mcs.but_back2._visible = false; } } if (this.opt_chat) { this.mcs.but_chat_on._alpha = 100; this.mcs.but_chat_off._alpha = 25; } else { this.mcs.but_chat_on._alpha = 25; this.mcs.but_chat_off._alpha = 100; } if (this.opt_sound) { this.mcs.but_sound_on._alpha = 100; this.mcs.but_sound_off._alpha = 25; } else { this.mcs.but_sound_on._alpha = 25; this.mcs.but_sound_off._alpha = 100; } }; v1.update = function () { if (_root.skip_wetlogin) { return undefined; } if (this.timeout_lv) { --this.timeout_time; if (this.timeout_time <= 0) { this.timeout_lv.err = 'Network TimeOut! Try again or click on the SKIP LOGIN button below.'; this.timeout_func(false, this.timeout_lv); this.timeout_lv = null; this.timeout_time = null; this.timeout_func = null; this.mcs.but_skiplogin._visible = true; } } if (this.joinonly) { if (this.viewYdest == 0) { this.viewYdest = 600; } } if (_root.popup) { return undefined; } ++this.frame; if (this.viewYdest != this.viewY) { this.viewY += (this.viewYdest - this.viewY) * 1 / 8; if ((this.viewY - this.viewYdest) * (this.viewY - this.viewYdest) < 0.5) { this.viewY = this.viewYdest; } this.parallax.guest._y = this.viewY + 300; this.parallax.login._y = this.viewY + 300 + 600; this.parallax.signup._y = this.viewY + 300 - 600; this.mcs.circ._rotation = this.viewY * 360 / 600; } var v2 = Math.floor(this.frame / 8) % 4; if (v2 == 3) { v2 = 1; } switch (v2) { case 0: this.mcs.anim1a._visible = true; this.mcs.anim1b._visible = true; this.mcs.anim2a._visible = false; this.mcs.anim2b._visible = false; this.mcs.anim3a._visible = false; this.mcs.anim3b._visible = false; break; case 1: this.mcs.anim1a._visible = false; this.mcs.anim1b._visible = false; this.mcs.anim2a._visible = true; this.mcs.anim2b._visible = true; this.mcs.anim3a._visible = false; this.mcs.anim3b._visible = false; break; case 2: this.mcs.anim1a._visible = false; this.mcs.anim1b._visible = false; this.mcs.anim2a._visible = false; this.mcs.anim2b._visible = false; this.mcs.anim3a._visible = true; this.mcs.anim3b._visible = true; } }; v1.do_this = function (me, act) { if (me.nams[0] == 'but') { if (act == 'on') { me._alpha = 100; switch (me.nams[1]) { case 'login': this.info_pop('Goto login page.'); break; case 'signup': this.info_pop('Goto signup page.'); break; case 'back1': case 'back2': this.info_pop('Back to guest login page.'); break; case 'no': this.info_pop('Get a new random name.'); break; case 'yes': this.info_pop('Shall we play a game?'); break; case 'chat': this.info_pop('In game chat?'); break; case 'sound': this.info_pop('In game sound?'); } } else { if (act == 'off') { me._alpha = 25; this.thunk(); this.info_pop(); } else { if (act == 'press') { me._alpha = 75; } else { if (act == 'click') { me._alpha = 100; switch (me.nams[1]) { case 'login': this.viewYdest = -600; break; case 'signup': this.viewYdest = 600; break; case 'back1': case 'back2': this.viewYdest = 0; break; case 'no': this.reroll(); break; case 'chat': if (me.nams[2] == 'on') { this.opt_chat = true; } else { this.opt_chat = false; } this.thunk(); break; case 'sound': if (me.nams[2] == 'on') { this.opt_sound = true; _root.wp_vol = 50; } else { this.opt_sound = false; _root.wp_vol = 0; } this.thunk(); break; case 'yes': this.do_guest(); break; case 'dosignup': this.do_signup(); break; case 'dologin': this.do_login(); break; case 'skiplogin': this.session = 0; this.name_set('me'); this.up.state_next = 'menu'; } } } } } } }; v1.reroll = function () { var v2 = new Date(); v2 = Math.floor(v2.getTime() / 1); this.rnd_seed(v2); var v3 = v2 % (Login.txt_adjectives.length - 1); var v4 = this.rnd() % (Login.txt_nouns.length - 1); this.name_set(Login.txt_adjectives[v3] + '_' + Login.txt_nouns[v4]); }; v1.name_set = function (nam) { this.mcs.edit_name1.tf.text = nam; this.mcs.edit_name2.tf.text = nam; this.mcs.edit_name3.tf.text = nam; this.name_text = nam; }; v1.info_lock = function () { this.locked = true; }; v1.info_unlock = function () { this.locked = false; }; v1.info_show = function (s) { this.info_text = s; this.info_pop(s); }; v1.info_pop = function (s) { if (!s) { s = this.info_text; } gfx.set_text_html(this.mcs.text_tip.tf, 16, 0, s); if (s == '') { this.mcs.back_tooltip._visible = false; } else { this.mcs.back_tooltip._visible = true; } }; v1.do_guest = function () { if (this.timeout_lv) { return undefined; } var v2 = new LoadVars(); v2.name = this.name_text; fbsig.copy_fb_sigs(_root, v2); v2.sendAndLoad(this.user_php + '?cmd=guest', v2, 'POST'); v2.onLoad = this.delegate(this.do_guest_post, v2); this.info_lock(); this.info_show('Trying ' + v2.name + ' guest account on ' + _root.host); this.timeout_lv = v2; this.timeout_time = 25 * 10; this.timeout_func = this.delegate(this.do_guest_post, null); }; v1.do_guest_post = function (success, lv) { if (this.timeout_lv != lv) { return undefined; } this.timeout_lv = null; this.name_set(lv.name); this.session = 0; if (lv.err == 'OK') { _root.Login_Img = lv.img; this.up.state_next = 'menu'; } else { this.mcs.but_skiplogin._visible = true; this.session = null; this.info_show(lv.err ? lv.err : 'ERROR'); this.info_unlock(); if (!this.joinonly) { this.session = 0; this.name_set('me'); this.up.state_next = 'menu'; } } }; v1.do_signup = function () { if (this.timeout_lv) { return undefined; } var v2 = new LoadVars(); v2.name = this.name_text; v2.pass = this.mcs.edit_pass3.tf.text; v2.email = this.mcs.edit_email3.tf.text; v2.refer = _root.refer; fbsig.copy_fb_sigs(_root, v2); v2.sendAndLoad(this.user_php + '?cmd=create', v2, 'POST'); v2.onLoad = this.delegate(this.do_signup_post, v2); this.info_lock(); this.info_show('Creating new account on ' + _root.host); this.timeout_lv = v2; this.timeout_time = 25 * 10; this.timeout_func = this.delegate(this.do_signup_post, null); }; v1.do_signup_post = function (success, lv) { if (this.timeout_lv != lv) { return undefined; } this.timeout_lv = null; this.name_set(lv.name); this.session = lv.S; if (lv.err == 'OK') { _root.Login_Img = lv.img; this.up.state_next = 'menu'; } else { this.mcs.but_skiplogin._visible = true; this.session = null; this.info_show(lv.err ? lv.err : 'ERROR'); this.info_unlock(); } }; v1.do_login = function () { if (this.timeout_lv) { return undefined; } var v2 = new LoadVars(); v2.name = this.name_text; v2.pass = this.mcs.edit_pass2.tf.text; fbsig.copy_fb_sigs(_root, v2); v2.sendAndLoad(this.user_php + '?cmd=login', v2, 'POST'); v2.onLoad = this.delegate(this.do_login_post, v2); this.info_lock(); this.info_show('Logging on as ' + v2.name + ' at ' + _root.host); this.timeout_lv = v2; this.timeout_time = 25 * 10; this.timeout_func = this.delegate(this.do_login_post, null); }; v1.do_login_post = function (success, lv) { if (this.timeout_lv != lv) { return undefined; } this.timeout_lv = null; this.name_set(lv.name); this.session = lv.S; if (lv.err == 'OK') { _root.Login_Img = lv.img; this.up.state_next = 'menu'; } else { this.mcs.but_skiplogin._visible = true; this.session = null; this.info_show(lv.err ? lv.err : 'ERROR'); this.info_unlock(); } }; v1.do_session = function () { if (this.timeout_lv) { return undefined; } var v2 = new LoadVars(); v2.session = this.session; fbsig.copy_fb_sigs(_root, v2); v2.sendAndLoad(this.user_php + '?cmd=session', v2, 'POST'); v2.onLoad = this.delegate(this.do_session_post, v2); this.info_lock(); this.info_show('attempting to auto log in to ' + _root.host); this.timeout_lv = v2; this.timeout_time = 25 * 10; this.timeout_func = this.delegate(this.do_session_post, null); }; v1.do_session_post = function (success, lv) { if (this.timeout_lv != lv) { return undefined; } this.timeout_lv = null; this.name_set(lv.name); this.session = lv.S; if (lv.err == 'OK') { _root.Login_Img = lv.img; this.up.state_next = 'menu'; } else { this.mcs.but_skiplogin._visible = true; this.session = null; this.info_show(lv.err ? lv.err : 'ERROR'); this.info_unlock(); } }; ASSetPropFlags(v1, null, 1); v1.name_text = 'me'; v1.session = 0; v1.locked = false; v1.saves = null; v1.opt_chat = true; v1.opt_sound = true; v1.rnd_num = 0; v1.autologin = true; v1.joinonly = false; v1.so = null; v1.VERSION = 17; v1.info_text = ''; _global.Login.register_lines = ['back,base', 'back,guest', 'back,guest', 'edit_name1,guest', 'but_yes,guest', 'but_no,guest', 'back,login', 'anim1a,login', 'anim2a,login', 'anim3a,login', 'back,login', 'edit_name2,login', 'back,login', 'edit_pass2,login', 'but_forgot,login', 'but_dologin,login', 'but_back1,login', 'back,signup', 'anim1b,signup', 'anim2b,signup', 'anim3b,signup', 'back,signup', 'edit_name3,signup', 'back,signup', 'edit_pass3,signup', 'back,signup', 'edit_email3,signup', 'but_dosignup,signup', 'but_back2,signup', 'but_login,fore', 'but_signup,fore', 'but_chat_on,fore', 'but_chat_off,fore', 'but_sound_on,fore', 'but_sound_off,fore', 'but_flag_uk,fore', 'but_flag_us,fore', 'but_flag_es,fore', 'but_flag_de,fore', 'but_flag_nl,fore', 'but_flag_fr,fore', 'but_flag_gr,fore', 'but_flag_it,fore', 'but_flag_pt,fore', 'but_flag_ru,fore', 'circ,fore', 'back_tooltip,fore', 'text_tip,fore', 'but_skiplogin,fore', '']; _global.Login.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', '']; _global.Login.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', '']; } #endinitclip } movieClip 20493 __Packages.GizmoList { #initclip if (!GizmoList) { _global.GizmoList = function (_up) { this.up = _up; this.setup(); }; var v1 = _global.GizmoList.prototype; v1.setup_base = function () { this.mc = gfx.create_clip(this.up.mc, null); this.mc.style = this.up.mc.style; this.gizmos = new Array(); this.active = true; this.focus = null; this.focus_data = null; this.top = this.up.top; if (this.top == null) { this.top = this; } }; v1.clean_base = function () { var v2 = 0; goto 778; for (;;) { ++v2; label 778: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].clean(); } } this.mc.removeMovieClip(); this.mc = null; }; v1.update_base = function () { this.mc._x = this.x; this.mc._y = this.y; var v2 = 0; goto 973; for (;;) { ++v2; label 973: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].mc._visible = true; this.gizmos[v2].update(); } else { this.gizmos[v2].mc._visible = false; } } }; _global.GizmoList.dupe_snapshot = function (snapshot) { var v3 = {}; v3.key = snapshot.key; v3.key_on = snapshot.key_on; v3.key_off = snapshot.key_off; v3.x = snapshot.x; v3.y = snapshot.y; v3.frame = snapshot.frame; return v3; }; v1.input_base = function (snapshot) { var v5 = GizmoList.dupe_snapshot(snapshot); this.mc.localToGlobal(v5); var v3 = 0; goto 1345; for (;;) { ++v3; label 1345: if (v3 >= this.gizmos.length) break; if (this.gizmos[v3].active) { this.gizmos[v3].mc.globalToLocal(v5); this.gizmos[v3].input(v5); this.gizmos[v3].mc.localToGlobal(v5); } } return this.top.focus; }; v1.child = function (g) { var v3 = this.gizmos.length; this.gizmos[v3] = g; return g; }; v1.set_area = function (_x, _y, _w, _h) { this.x = _x; this.y = _y; this.w = _w; this.h = _h; }; v1.draw_mask = function (px, py) { gfx.setscroll(this.mc, px, py, this.w, this.h); }; v1.setup = function () { this.setup_base(); this.tf_fmt = gfx.create_text_format(16, 16777215); this.lp = 0; this.lh = 20; this.xp = 0; this.yp = 0; this.base_alpha = 50; this.selected = -1; this.items = new Array(); this.lines = new Array(); }; v1.clean = function () { this.clean_base(); }; v1.update = function () { this.lc = Math.floor((this.h + this.lh - 1) / this.lh) + 1; if (this.lc != this.lines.length) { var v2 = 0; goto 2073; for (;;) { ++v2; label 2073: if (v2 >= this.lc) break; var v3 = this.child(new GizmoLine(this)); v3.base_alpha = this.base_alpha; v3.set_area(0, v2 * this.lh, this.w, this.lh); v3.str = ''; v3.tf_fmt.size = this.tf_fmt.size; v3.tf_fmt.color = this.tf_fmt.color; this.lines[v2] = v3; } this.draw_mask(0, 0); } var v6 = this.items.length * this.lh - this.h; if (this.vgizmo) { if (v6 > 0) { this.yp = Math.floor(this.vgizmo.y_knob * v6); } else { this.yp = 0; } } this.lp = Math.floor(this.yp / this.lh); v2 = this.lp; goto 2481; for (;;) { ++v2; label 2481: if (v2 >= this.lp + this.lc) break; var v4 = this.lines[v2 - this.lp]; if (v2 < 0 || v2 >= this.items.length) { v4.str = ''; v4.item = -1; v4.state = ''; } else { var v5 = this.items[v2]; v4.str = v5.str; v4.item = v2; v4.state = ''; if (v2 == this.selected) { v4.state = 'selected'; } } v4.set_area(0, v2 * this.lh - this.yp, this.w, this.lh); } this.update_base(); }; v1.input = function (snapshot) { this.input_base(snapshot); return this.top.focus; }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20494 __Packages.BetaSignals { #initclip if (!BetaSignals) { _global.BetaSignals = function (_up) { this.up = _up; if (_root.nonoba$apicodeas2) { NonobaAPI.GetUsername(this.delegate(this.noob_name)); } }; var v1 = _global.BetaSignals.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.setup = function () {}; v1.clean = function () {}; v1.set_score_check = function (new_score, new_replay, new_moves) { if (new_score > this.score) { this.score = new_score; if (new_replay) { this.replay_str = new_replay; } if (new_moves) { this.moves = new_moves; } } }; v1.mochi_score_sent = function () {}; v1.send_start = function () { if (_root.audit) { return undefined; } if (_root.sock) { var v2 = {'gcmd': 'signal', 'stype': 'start', 'sgame': this.game, 'sseed': this.seed}; _root.sock.gmsg(v2, undefined); } if ((_root._url.toLowerCase()).indexOf('gamegarage') >= 0 && (_root.game_id && _root.user_id)) { var v3 = new LoadVars(); v3.game_id = _root.game_id; v3.user_id = _root.user_id; v3.sendAndLoad('http://www.gamegarage.co.uk/scripts/tracking.php', v3, 'POST'); } }; v1.send_final = function (nam, num) { if (_root.audit) { return undefined; } if (_root.sock) { var v4 = {'gcmd': 'signal', 'stype': 'final', 'sgame': this.game, 'sseed': this.seed, 'snam': nam, 'snum': num}; _root.sock.gmsg(v4, undefined); } if ((_root._url.toLowerCase()).indexOf('gamegarage') >= 0 && (_root.game_id && _root.user_id)) { var v5 = new LoadVars(); v5.game_id = _root.game_id; v5.user_id = _root.user_id; v5.score = num; v5.alg = _root.game_id + _root.user_id + num + 'a83l9xj'; v5.sendAndLoad('http://www.gamegarage.co.uk/scripts/score.php', v5, 'POST'); } if (_root.com_mindjolt_api) { var v6 = new LocalConnection(); v6.send(_root.com_mindjolt_api, 'submitScore', num); } if (_root.kongregateServices != undefined) { if (this.game != 'wetdike') { _root.kongregateScores.setMode(nam); } _root.kongregateScores.submit(num); } if (_root.nonoba$apicodeas2) { NonobaAPI.SubmitScore(nam, num, this.delegate(this.noob_score)); } }; v1.send_spesh = function (nam, num) { if (_root.audit) { return undefined; } if (_root.sock) { var v4 = {'gcmd': 'signal', 'stype': 'score', 'sgame': this.game, 'sseed': this.seed, 'snam': nam, 'snum': num}; _root.sock.gmsg(v4, undefined); } if (_root.kongregateServices != undefined) { if (this.game != 'wetdike') { _root.kongregateScores.setMode(nam); } _root.kongregateScores.submit(num); } if (_root.HPScoreService != undefined) { _root.HPScoreService.postScore(num, nam); } if (_root.pepere != undefined) { var v6 = new Date(); var v5 = new LoadVars(); v5.params = _root.pepere; v5.score = this.score; v5.sendAndLoad('record.php', v5, 'POST'); } if (_root.nonoba$apicodeas2) { NonobaAPI.SubmitScore(nam, num, this.delegate(this.noob_score)); } }; v1.send_score = function () { var v2 = new Date(); this.score_last = this.score; this.sent_stamp = v2.getTime(); this.send_spesh(this.score_name, this.score); }; v1.send_score_check = function () { if (this.score > this.score_last) { this.send_score(); } }; v1.send_score_wait_and_check = function () { var v2 = new Date(); if (v2.getTime() - this.sent_stamp > 1000 * 60) { this.send_score_check(); } }; v1.noob_name = function (state, username) { if (username) { this.name = username; } }; v1.noob_score = function (state) {}; v1.submit_award = function (nam, num) { if (_root.audit) { return undefined; } if (_root.nonoba$apicodeas2) { var v4 = (nam.split('_')).join(''); NonobaAPI.AwardAchievement(v4, this.delegate(this.noob_award)); } }; v1.noob_award = function (state) {}; v1.submit_rank = function (nam, num) { if (_root.audit) { return undefined; } if (_root.nonoba$apicodeas2) { var v4 = (nam.split('_')).join(''); NonobaAPI.SubmitScore(v4, Math.floor(num), this.delegate(this.noob_rank)); } }; v1.noob_rank = function (state) {}; v1.signal = function (_base, event, t, num) { this.base = _base; switch (this.base) { case 'diamonds': if (this.up.play.gamecomms) { } else { switch (event) { case 'start': this.state = 'start'; var v6 = new Date(); this.seed = this.up.game_seed; this.game = 'diamonds.puz.3'; this.score_name = 'Puzzle'; this.ranksys = 'add'; if (this.up.play.gamemode == 'endurance') { this.game = 'diamonds.end.3'; this.score_name = 'Endurance'; this.ranksys = 'max'; } this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.set_score_check(this.up.play.hud.points); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'high': this.state = 'high'; this.set_score_check(this.up.play.hud.points); this.moves = 0; _root.comms.send_score_check(); this.send_score_check(); break; case 'won': this.state = 'won'; this.set_score_check(this.up.play.hud.points); this.moves = 0; _root.comms.send_score(); this.send_score(); break; case 'end': if (this.state == 'won') { this.state = 'end'; this.set_score_check(this.up.play.hud.points); this.moves = 0; this.send_final('high', this.score); } else { this.state = 'end'; this.set_score_check(this.up.play.hud.points); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } if (this.score > 50000) { this.submit_award('bronze'); } if (this.score > 100000) { this.submit_award('silver'); } if (this.score > 200000) { this.submit_award('gold'); } } break; case 'adventisland': switch (event) { case 'start': this.state = 'start'; var v6 = new Date(); this.seed = this.up.game_seed; this.game = 'adventisland'; this.score_name = 'Advent'; this.ranksys = 'max'; this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.set_score_check(this.up.isplay.advent.score); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'high': this.state = 'high'; this.set_score_check(this.up.isplay.advent.score); this.moves = 0; _root.comms.send_score_check(); this.send_score_check(); break; case 'won': this.state = 'won'; this.set_score_check(this.up.isplay.advent.score); this.moves = 0; _root.comms.send_score(); this.send_score(); break; case 'end': if (this.state == 'won') { this.state = 'end'; this.set_score_check(this.up.isplay.advent.score); this.moves = 0; this.send_final('high', this.score); } else { this.state = 'end'; this.set_score_check(this.up.isplay.advent.score); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } } break; case 'batwsball': switch (event) { case 'start': this.state = 'start'; var v6 = new Date(); this.seed = this.up.game_seed; this.game = 'batwsball'; this.score_name = 'Endurance'; this.ranksys = 'max'; this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.score = Math.floor((this.up.play.tims + this.up.play.timf / 25) * 100); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'end': this.state = 'end'; this.score = Math.floor((this.up.play.tims + this.up.play.timf / 25) * 100); this.moves = 0; _root.comms.send_score(); this.send_score(); if (this.score > 400) { this.send_final('high', this.score); if (this.score > 6000) { this.submit_award('bronze'); } if (this.score > 12000) { this.submit_award('silver'); } if (this.score > 18000) { this.submit_award('gold'); } } } break; case 'gojirama': switch (event) { case 'set': this.game = 'gojirama'; this.score_name = 'Endurance'; this.ranksys = 'max'; this.seed = this.up.game_seed; _root.comms.datas = this; break; case 'start': this.state = 'start'; var v6 = new Date(); this.seed = this.up.game_seed; this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'high': this.state = 'high'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_check(); this.send_score_check(); break; case 'end': this.state = 'end'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } break; case 'romzom': switch (event) { case 'start': this.state = 'start'; var v6 = new Date(); this.seed = this.up.game_seed; this.game = 'romzom'; this.score_name = 'RomZom'; this.ranksys = 'max'; this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'end': this.state = 'end'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } break; case 'ASUE1': switch (event) { case 'set': this.game = 'ASUE1'; this.score_name = 'ASUE1'; this.ranksys = 'max'; this.seed = this.up.game_seed; _root.comms.datas = this; break; case 'start': this.state = 'start'; this.seed = this.up.game_seed; var v6 = new Date(); this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'end': this.state = 'end'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } break; case 'EsTension': case 'estension': switch (event) { case 'set': this.game = 'estension'; this.score_name = 'EsTension'; this.ranksys = 'max'; this.seed = this.up.game_seed; _root.comms.datas = this; break; case 'start': this.state = 'start'; this.seed = this.up.game_seed; var v6 = new Date(); this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'high': this.state = 'update'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_check(); this.send_score_check(); break; case 'end': this.state = 'end'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } break; case 'BowWow': case 'bowwow': switch (event) { case 'set': this.game = 'bowwow'; this.score_name = 'BowWow'; this.ranksys = 'add'; this.seed = this.up.game_seed; _root.comms.datas = this; break; case 'start': this.state = 'start'; this.seed = this.up.game_seed; var v6 = new Date(); this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': ++this.time; this.state = 'update'; this.set_score_check(this.up.play.score, this.up.play.get_replay_str(), this.up.play.get_replay_moves()); _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'high': this.state = 'update'; this.set_score_check(this.up.play.score, this.up.play.get_replay_str(), this.up.play.get_replay_moves()); _root.comms.send_score_check(); this.send_score_check(); break; case 'won': this.state = 'won'; this.set_score_check(this.up.play.score, this.up.play.get_replay_str(), this.up.play.get_replay_moves()); _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); break; case 'end': if (this.state != 'won') { this.state = 'end'; this.set_score_check(this.up.play.score, this.up.play.get_replay_str(), this.up.play.get_replay_moves()); _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } } break; case 'WetBasement': case 'WetBaseMent': switch (event) { case 'set': if (this.up.play.gameskill == 'hard') { this.game = 'basement.4'; } else { this.game = 'basement.2'; } this.score_name = 'Race'; this.ranksys = 'add'; this.seed = this.up.game_seed; _root.comms.datas = this; break; case 'start': this.state = 'start'; var v6 = new Date(); this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'high': this.state = 'high'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_check(); this.send_score_check(); break; case 'won': this.state = 'won'; this.set_score_check(this.up.play.score); this.moves = 0; this.total = this.up.play.get_rank_score(this.score); _root.comms.send_score(); this.send_score(); if (this.up.play.gameskill == 'hard') { this.send_final('TotalHard', this.total); } else { this.send_final('Total', this.total); } break; case 'end': if (this.state != 'won') { this.state = 'end'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score(); this.send_score(); if (this.up.play.gameskill == 'hard') { this.send_final('TotalHard', this.total); } else { this.send_final('Total', this.total); } } } break; case 'Mute': case 'mute': switch (event) { case 'set': this.game = 'mute'; this.score_name = 'Smash'; this.ranksys = 'max'; this.seed = this.up.game_seed; _root.comms.datas = this; break; case 'start': this.state = 'start'; var v6 = new Date(); this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'high': this.state = 'high'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_check(); this.send_score_check(); break; case 'won': this.state = 'won'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score(); this.send_score(); break; case 'end': if (this.state != 'won') { this.state = 'end'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } else { this.send_final('high', this.score); } } break; case 'WetDike': case 'wetdike': switch (event) { case 'set': this.game = 'wetdike'; this.score_name = 'Puzzle'; this.ranksys = 'add'; this.seed = this.up.dikeplay.seed; _root.comms.datas = this; break; case 'start': this.state = 'start'; var v6 = new Date(); this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; this.time = Math.floor(this.up.dikeplay.game_time / 1000); this.set_score_check(this.up.dikeplay.table.score, this.up.dikeplay.table.create_playback_str()); this.moves = this.up.dikeplay.table.moves; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'high': this.state = 'high'; this.set_score_check(this.up.dikeplay.table.score, this.up.dikeplay.table.create_playback_str()); this.moves = this.up.dikeplay.table.moves; _root.comms.send_score_check(); this.send_score_check(); break; case 'won': this.state = 'won'; this.set_score_check(this.up.dikeplay.table.score, this.up.dikeplay.table.create_playback_str()); this.moves = this.up.dikeplay.table.moves; _root.comms.send_score(); this.send_score(); break; case 'end': if (this.state != 'won') { this.state = 'end'; this.set_score_check(this.up.dikeplay.table.score, this.up.dikeplay.table.create_playback_str()); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } else { this.send_final('high', this.score); } } break; case 'WetCell': case 'wetcell': switch (event) { case 'set': this.game = 'wetcell'; this.score_name = 'Puzzle'; this.ranksys = 'add'; this.seed = this.up.game_seed; _root.comms.datas = this; break; case 'start': this.state = 'start'; var v6 = new Date(); this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; this.time = Math.floor(this.up.play.game_time / 1000); this.set_score_check(this.up.play.table.score, this.up.play.table.create_playback_str()); this.moves = this.up.play.table.moves; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'high': this.state = 'high'; this.set_score_check(this.up.play.table.score, this.up.play.table.create_playback_str()); this.moves = this.up.play.table.moves; _root.comms.send_score_check(); this.send_score_check(); break; case 'won': this.state = 'won'; this.set_score_check(this.up.play.table.score, this.up.play.table.create_playback_str()); this.moves = this.up.play.table.moves; _root.comms.send_score(); this.send_score(); break; case 'end': if (this.state != 'won') { this.state = 'end'; this.set_score_check(this.up.play.table.score, this.up.play.table.create_playback_str()); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } else { this.send_final('high', this.score); } } break; case 'ASUE2': case 'asue2': switch (event) { case 'set': this.game = 'ASUE2'; this.score_name = 'ASUE2'; this.ranksys = 'max'; this.seed = this.up.game_seed; _root.comms.datas = this; break; case 'start': this.state = 'start'; this.seed = this.up.game_seed; var v6 = new Date(); this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'end': this.state = 'end'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } break; case 'Take1': case 'take1': switch (event) { case 'set': this.game = 'take1'; this.score_name = 'take1'; this.ranksys = 'max'; this.seed = this.up.game_seed; _root.comms.datas = this; break; case 'start': this.state = 'start'; this.seed = this.up.game_seed; var v6 = new Date(); this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'end': this.state = 'end'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } break; case 'PixlCoop': case 'pixlcoop': switch (event) { case 'set': this.game = 'pixlcoop'; this.score_name = 'pixlcoop'; this.ranksys = 'max'; this.seed = this.up.game_seed; _root.comms.datas = this; break; case 'start': this.state = 'start'; this.seed = this.up.game_seed; var v6 = new Date(); this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; break; case 'update': this.state = 'update'; ++this.time; break; case 'end': this.state = 'end'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); } break; case 'rgbtd0': switch (event) { case 'start': this.state = 'start'; var v6 = new Date(); this.seed = this.up.game_seed; this.game = 'rgbtd0'; this.score_name = 'rgbtd0'; this.ranksys = 'add'; this.start_time = v6.getTime(); this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; _root.comms.datas = this; _root.comms.send_score(); this.send_score(); this.send_start(); break; case 'update': this.state = 'update'; ++this.time; this.set_score_check(this.up.play.score, this.up.play.replay); this.moves = 0; _root.comms.send_score_wait_and_check(); this.send_score_wait_and_check(); break; case 'high': this.state = 'high'; this.set_score_check(this.up.play.score, this.up.play.replay); this.moves = 0; _root.comms.send_score_check(); this.send_score_check(); break; case 'final': this.send_final('high', this.up.play.score_total); break; case 'end': this.state = 'end'; this.set_score_check(this.up.play.score, this.up.play.replay); this.moves = 0; _root.comms.send_score(); this.send_score(); break; case 'award-bronze': this.submit_award('bronze'); break; case 'award-silver': this.submit_award('silver'); break; case 'award-gold': this.submit_award('gold'); } break; case 'pief': switch (event) { case 'set': this.game = 'pief'; this.score_name = 'pief'; this.ranksys = 'max'; this.seed = this.up.game_seed; _root.comms.datas = this; this.time = 0; this.score = 0; this.moves = 0; this.replay_str = ''; break; case 'won': case 'end': this.state = 'end'; this.set_score_check(this.up.play.score); this.moves = 0; _root.comms.send_score(); this.send_score(); this.send_final('high', this.score); if (this.score == 100) { this.submit_award('moonstar'); } } } } }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20495 __Packages.WetBaseMentLevel_level_06 { #initclip if (!WetBaseMentLevel_level_06) { _global.WetBaseMentLevel_level_06 = function () {}; var v1 = _global.WetBaseMentLevel_level_06.prototype; ASSetPropFlags(v1, null, 1); v1.img_bak = 'level_06_bak'; v1.img_for = 'level_06_for'; v1.name = 'level_06'; v1.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, 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, 0, 0, 0, 0, 0, 0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0, 254, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 0, 0, 221, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 254, 0, 17, 0, 0, 0, 0, 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, 0, 0, 17, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 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, 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, 255, 17, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 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]; } #endinitclip } movieClip 20496 __Packages.alt.Sprintf { #initclip if (!alt.Sprintf) { if (!alt) { _global.alt = new Object(); } _global.alt.Sprintf = function () {}; var v1 = _global.alt.Sprintf.prototype; _global.alt.Sprintf.trace = function () { alt.Sprintf.trace(alt.Sprintf.format.apply(null, arguments)); }; _global.alt.Sprintf.format = function (format) { if (super == null) { return ''; } var v3 = ''; var v4 = 0; var v5 = 0; while (v5 < super.length) { var v6 = super.indexOf('%', v5); if (v6 == -1) { v3 += super.substr(v5); v5 = super.length; } else { v3 += super.substring(v5, v6); var v14 = '** sprintf: invalid format at ' + v4 + ' **'; var v13 = false; var v12 = 0; var v11 = v12; var v9 = v11; var v10 = -1; v5 = v6 + 1; var v8 = arguments[++v4]; for (;;) { if (!(v13 != true && v5 < super.length)) break; var v7 = super.charAt(v5++); switch (v7) { case '#': if (v12 == 0) { v11 |= alt.Sprintf.kALT_FORM; } else { v14 = '** sprintf: "#" came too late **'; } break; case '-': if (v12 == 0) { v11 |= alt.Sprintf.kLEFT_ALIGN; } else { v14 = '** sprintf: "-" came too late **'; } break; case '+': if (v12 == 0) { v11 |= alt.Sprintf.kSHOW_SIGN; } else { v14 = '** sprintf: "+" came too late **'; } break; case ' ': if (v12 == 0) { v11 |= alt.Sprintf.kPAD_POS; } else { v14 = '** sprintf: " " came too late **'; } break; case '.': if (v12 < 2) { v12 = 2; v10 = 0; } else { v14 = '** sprintf: "." came too late **'; } break; case '0': if (v12 == 0) { v11 |= alt.Sprintf.kPAD_ZEROES; } else { case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (v12 == 3) { v14 = '** sprintf: shouldn\'t have a digit after h,l,L **'; } else { if (v12 < 2) { v12 = 1; v9 = v9 * 10 + Number(v7); } else { v10 = v10 * 10 + Number(v7); } } break; case 'd': case 'i': v13 = true; v3 += alt.Sprintf.formatD(Number(v8), v11, v9, v10); break; case 'o': v13 = true; v3 += alt.Sprintf.formatO(Number(v8), v11, v9, v10); break; case 'x': case 'X': v13 = true; v3 += alt.Sprintf.formatX(Number(v8), v11, v9, v10, v7 == 'X'); break; case 'e': case 'E': v13 = true; v3 += alt.Sprintf.formatE(Number(v8), v11, v9, v10, v7 == 'E'); break; case 'f': v13 = true; v3 += alt.Sprintf.formatF(Number(v8), v11, v9, v10); break; case 'g': case 'G': v13 = true; v3 += alt.Sprintf.formatG(Number(v8), v11, v9, v10, v7 == 'G'); break; case 'c': case 'C': v10 = 1; case 's': case 'S': v13 = true; v3 += alt.Sprintf.formatS(String(v8), v11, v9, v10); break; case '%': v13 = true; v3 += '%'; --v4; break; default: v14 = '** sprintf: ' + v7 + ' not supported **'; continue; } } } if (v13 != true) { if (alt.Sprintf.DEBUG) { v3 += v14; } if (alt.Sprintf.TRACE) { alt.Sprintf.trace(v14); } } } } return v3; }; _global.alt.Sprintf.finish = function (output, value, properties, length, precision, prefix) { if (prefix == null) { prefix = ''; } if (value < 0) { prefix = '-' + prefix; } else { if (properties & alt.Sprintf.kSHOW_SIGN) { prefix = '+' + prefix; } else { if (properties & alt.Sprintf.kPAD_POS) { prefix = ' ' + prefix; } } } if (length == 0 && precision > -1) { length = precision; properties |= alt.Sprintf.kPAD_ZEROES; } while (output.length + prefix.length < length) { if (properties & alt.Sprintf.kLEFT_ALIGN) { output += ' '; } else { if (properties & alt.Sprintf.kPAD_ZEROES) { output = '0' + output; } else { prefix = ' ' + prefix; } } } return prefix + output; }; _global.alt.Sprintf.formatD = function (value, properties, length, precision) { var v6 = ''; if (precision != 0 || value != 0) { v6 = String(Math.floor(Math.abs(value))); } while (v6.length < precision) { v6 = '0' + v6; } return alt.Sprintf.finish(v6, value, properties, length, precision); }; _global.alt.Sprintf.formatO = function (value, properties, length, precision) { var v6 = ''; var v7 = ''; if (precision != 0 && value != 0) { v6 = value.toString(8); } if (properties & alt.Sprintf.kALT_FORM) { v7 = '0'; } while (v6.length < precision) { v6 = '0' + v6; } return alt.Sprintf.finish(v6, value, properties, length, precision, v7); }; _global.alt.Sprintf.formatX = function (value, properties, length, precision, upper) { var v7 = ''; var v8 = ''; if (precision != 0 && value != 0) { v7 = value.toString(16); } if (properties & alt.Sprintf.kALT_FORM) { v8 = '0x'; } while (v7.length < precision) { v7 = '0' + v7; } if (upper) { v8 = v8.toUpperCase(); v7 = v7.toUpperCase(); return alt.Sprintf.finish(v7, value, properties, length, precision, v8); } v7 = v7.toLowerCase(); return alt.Sprintf.finish(v7, value, properties, length, precision, v8); }; _global.alt.Sprintf.formatE = function (value, properties, length, precision, upper) { var v7 = ''; var v8 = 0; if (Math.abs(value) > 1) { while (Math.abs(value) > 10) { value /= 10; ++v8; } } else { while (Math.abs(value) < 1) { value *= 10; --v8; } } var v9 = alt.Sprintf.format('%c%+.2d', upper ? 'E' : 'e', v8); if (properties & alt.Sprintf.kLEFT_ALIGN) { v7 = alt.Sprintf.formatF(value, properties, 1, precision) + v9; while (v7.length < length) { v7 += ' '; } return v7; } v7 = alt.Sprintf.formatF(value, properties, Math.max(length - v9.length, 0), precision) + v9; return v7; }; _global.alt.Sprintf.formatF = function (value, properties, length, precision) { var v6 = ''; var v7 = ''; var v8 = ''; if (precision == -1) { precision = 6; } var v9 = new String(value.toString()); if (v9.indexOf('.') == -1) { v7 = (Math.abs(Number(v9))).toString(); v8 = '0'; } else { v7 = (Math.abs(Number(v9.substring(0, v9.indexOf('.'))))).toString(); v8 = v9.substr(v9.indexOf('.') + 1); } if (Number(v8) == 0) { v8 = new String(); while (v8.length < precision) { v8 += '0'; } } else { if (v8.length > precision) { var v10 = Math.round(Math.pow(10, precision) * Number('0.' + v8)); if ((String(v10)).length > precision && v10 != 0) { v8 = '0'; v7 = ((Math.abs(Number(v7)) + 1) * (Number(v7) >= 0 ? 1 : -1)).toString(); } else { v8 = new String(v10.toString()); } } if (v8.length < precision) { v8 = new String(v8); while (v8.length < precision) { v8 += '0'; } } } if (precision == 0) { v6 = v7; if (properties & alt.Sprintf.kALT_FORM) { v6 += '.'; } return alt.Sprintf.finish(v6, value, properties, length, precision, ''); } v6 = v7 + '.' + v8; return alt.Sprintf.finish(v6, value, properties, length, precision, ''); }; _global.alt.Sprintf.formatG = function (value, properties, length, precision, upper) { var v7 = alt.Sprintf.formatE(value, properties, 1, precision, upper); var v8 = alt.Sprintf.formatF(value, properties, 1, precision); if (v7.length < v8.length) { return alt.Sprintf.formatE(value, properties, length, precision, upper); } else { return alt.Sprintf.formatF(value, properties, length, precision); } }; _global.alt.Sprintf.formatS = function (value, properties, length, precision) { var v6 = new String(value); if (precision > 0 && precision < v6.length) { v6 = v6.substring(0, precision); } properties &= (alt.Sprintf.kPAD_ZEROES | alt.Sprintf.kSHOW_SIGN | alt.Sprintf.kPAD_POS | alt.Sprintf.kALT_FORM) ^ -1; return alt.Sprintf.finish(v6, value, properties, length, precision, ''); }; ASSetPropFlags(v1, null, 1); _global.alt.Sprintf.kPAD_ZEROES = 1; _global.alt.Sprintf.kLEFT_ALIGN = 2; _global.alt.Sprintf.kSHOW_SIGN = 4; _global.alt.Sprintf.kPAD_POS = 8; _global.alt.Sprintf.kALT_FORM = 16; _global.alt.Sprintf.kLONG_VALUE = 32; _global.alt.Sprintf.kUSE_SEPARATOR = 64; _global.alt.Sprintf.DEBUG = false; _global.alt.Sprintf.TRACE = false; } #endinitclip } movieClip 20497 __Packages.GizmoLine { #initclip if (!GizmoLine) { _global.GizmoLine = function (_up) { this.up = _up; this.setup(); this.str = ''; this.str_disp = ''; this.state = ''; this.state_disp = ''; this.xp = 0; this.yp = 0; this.xs = 0; this.ys = 0; this.base_alpha = 100; }; var v1 = _global.GizmoLine.prototype; v1.setup_base = function () { this.mc = gfx.create_clip(this.up.mc, null); this.mc.style = this.up.mc.style; this.gizmos = new Array(); this.active = true; this.focus = null; this.focus_data = null; this.top = this.up.top; if (this.top == null) { this.top = this; } }; v1.clean_base = function () { var v2 = 0; goto 981; for (;;) { ++v2; label 981: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].clean(); } } this.mc.removeMovieClip(); this.mc = null; }; v1.update_base = function () { this.mc._x = this.x; this.mc._y = this.y; var v2 = 0; goto 1176; for (;;) { ++v2; label 1176: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].mc._visible = true; this.gizmos[v2].update(); } else { this.gizmos[v2].mc._visible = false; } } }; _global.GizmoLine.dupe_snapshot = function (snapshot) { var v3 = {}; v3.key = snapshot.key; v3.key_on = snapshot.key_on; v3.key_off = snapshot.key_off; v3.x = snapshot.x; v3.y = snapshot.y; v3.frame = snapshot.frame; return v3; }; v1.input_base = function (snapshot) { var v5 = GizmoLine.dupe_snapshot(snapshot); this.mc.localToGlobal(v5); var v3 = 0; goto 1548; for (;;) { ++v3; label 1548: if (v3 >= this.gizmos.length) break; if (this.gizmos[v3].active) { this.gizmos[v3].mc.globalToLocal(v5); this.gizmos[v3].input(v5); this.gizmos[v3].mc.localToGlobal(v5); } } return this.top.focus; }; v1.child = function (g) { var v3 = this.gizmos.length; this.gizmos[v3] = g; return g; }; v1.set_area = function (_x, _y, _w, _h) { this.x = _x; this.y = _y; this.w = _w; this.h = _h; }; v1.draw_mask = function (px, py) { gfx.setscroll(this.mc, px, py, this.w, this.h); }; v1.setup = function () { this.setup_base(); this.mc.cacheAsBitmap = true; this.tf = gfx.create_text_html(this.mc, null, 0, 0, 0, 0); this.tf.multiline = false; this.tf_fmt = gfx.create_text_format(16, 16777215); this.tf.setNewTextFormat(this.tf_fmt); }; v1.clean = function () { this.clean_base(); }; v1.update = function () { if (this.str != this.str_disp || this.state != this.state_disp) { if (this.state == 'selected') { this.tf_fmt.bold = true; } else { this.tf_fmt.bold = false; } var v2 = this.tf_fmt.getTextExtent(this.str); this.xs = v2.width; this.ys = v2.height; this.tf._width = this.xs + 100; this.tf._height = this.ys + 8; this.tf.setNewTextFormat(this.tf_fmt); this.tf.text = this.str; this.str_disp = this.str; this.state_disp = this.state; } if (this.tf.textWidth + 4 > this.w) { } else {} this.tf._y = this.yp; this.mc._alpha -= 5; if (this.mc._alpha < this.base_alpha) { this.mc._alpha = this.base_alpha; } this.update_base(); }; v1.input = function (snapshot) { if (this.top.focus == null && (snapshot.x > 0 && (snapshot.y > 0 && (snapshot.x < this.w && snapshot.y < this.h)))) { this.mc._alpha = 100; this.up.hover = this; if (snapshot.key_on & 1) { if (this.onClick) { this.onClick(this); this.input_base(snapshot); return this.top.focus; } if (this.up.onClick) { this.up.onClick(this); } } } this.input_base(snapshot); return this.top.focus; }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20498 __Packages.Scalar { #initclip if (!Scalar) { _global.Scalar = function (_ox, _oy, _fake, _chatshrink) { this.fake = _fake; this.chatshrink = _chatshrink; this.ox = _ox; this.oy = _oy; this.mc = gfx.create_clip(_root, null); this.mc.onEnterFrame = this.delegate(this.update); this.tf_stats = gfx.create_text_html(this.mc, null, 0, 0, this.ox, 32); gfx.dropshadow(this.tf_stats, 2, 45, 0, 1, 4, 4, 2, 3); this.scale = 1; if (this.scale > _root.maxs) { this.scale = _root.maxs; } this.update(); Key.addListener(this); this.t_old = getTimer(); this.t_new = this.t_old; this.t_ms = 0; this.t_samples = 0; if (this.fake) { this.dx = 0; this.dy = 0; this.sx = this.ox; this.sy = this.oy; this.rot = 0; this.ox = this.bx; this.oy = this.by; return undefined; } }; var v1 = _global.Scalar.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.update = function () { if (this.fake) { return undefined; } Stage.scaleMode = 'noScale'; Stage.align = 'TL'; this.rot = 0; if (_root.scale == 'fixed') { var v2 = 1; } else { var v2 = Stage.width / this.ox; if (_root.maxw) { if (v2 * this.ox > _root.maxw) { v2 = _root.maxw / this.ox; } } if (_root.maxh) { if (v2 * this.oy > _root.maxh) { v2 = _root.maxh / this.oy; } } if (v2 * this.oy > Stage.height) { v2 = Stage.height / this.oy; } } v2 *= this.scale; this.dx = Math.floor((Stage.width - v2 * this.ox) / 2); this.dy = Math.floor((Stage.height - v2 * this.oy) / 2); this.need_chat_pop = false; if (this.dx < 0) { this.dx = 0; this.need_chat_pop = true; } if (this.dy < 0) { this.dy = 0; } this.vx = Math.floor(this.ox * v2); this.vy = Math.floor(this.oy * v2); this.sx = v2 * 100; this.sy = v2 * 100; ++this.t_samples; if (this.t_samples >= 20) { this.t_old = this.t_new; this.t_new = getTimer(); this.t_ms = (this.t_new - this.t_old) / this.t_samples; this.t_fps = Math.floor(1000 / this.t_ms); if (this.dy >= 16) { var v3 = ' ' + Math.floor(this.t_ms) + 'ms : ' + Math.floor(1000 / this.t_ms) + 'fps' + ' : ' + Math.floor(_root.code_time / this.t_samples) + 'ms'; gfx.set_text_html(this.tf_stats, 13, 16777215, v3); } this.t_samples = 0; _root.code_time = 0; } if (this.dy >= 16) { this.tf_stats._visible = true; } else { this.tf_stats._visible = false; } }; v1.apply = function (tomc, half) { if (_root.scale == 'no') { tomc._rotation = this.rot; tomc._x = 0; tomc._y = 0; tomc._xscale = 100; tomc._yscale = 100; return undefined; } if (half) { tomc._rotation = this.rot; tomc._x = Math.floor(this.dx / 2); tomc._y = Math.floor(this.dy / 2 + Stage.height / 4); tomc._xscale = Math.floor(this.sx / 2); tomc._yscale = Math.floor(this.sy / 2); } else { tomc._rotation = this.rot; tomc._x = this.dx; tomc._y = this.dy; tomc._xscale = this.sx; tomc._yscale = this.sy; } }; v1.onKeyDown = function () {}; v1.onKeyUp = function () { var v3 = Key.getCode(); var v2 = String.fromCharCode(Key.getAscii()); if (Selection.getCaretIndex() == -1) { if (v2 == '+' || v2 == '=') { this.scale *= 1.1; if (this.scale > 1) { this.scale = 1; } } else { if (v2 == '_' || v2 == '-') { this.scale /= 1.1; if (this.scale < 0.1) { this.scale = 0.1; } } } } if (this.scale > _root.maxs) { this.scale = _root.maxs; } }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20499 __Packages.WetPlayMP3 { #initclip if (!WetPlayMP3) { _global.WetPlayMP3 = function (_up) { this.rnd_seed((new Date()).getTime()); this.up = _up; this.mc = gfx.create_clip(this.up.mc, null); this.setmenu(this.mc); this.sfxs = new Array(); var v3 = 0; goto 3997; for (;;) { ++v3; label 3997: if (v3 >= 4) break; this.sfxs[v3] = gfx.create_clip(this.up.mc, null); this.sfxs[v3].sfx = new Sound(this.sfxs[v3]); this.sfxs[v3].sfx.onSoundComplete = this.delegate(this.onSoundComplete, v3); this.sfxs[v3].sfx.complete = true; } this.sfxidx = 0; this.mc_back = gfx.create_clip(this.mc, null); if (_root.wp_jpg != undefined && _root.wp_jpg != '') { this.load_back_image(_root.wp_jpg); } else { this.mc_back_image = gfx.add_clip(this.mc, 'WetPlayBack', null); } this.mc_back_colour = gfx.create_clip(this.mc, null); this.mc_back_image.onRelease = this.delegate(this.catchclicks); this.mc_back_colour.onRelease = this.delegate(this.catchclicks); if (_root.wp_w != undefined && _root.wp_w != '') { this.w = int(_root.wp_w); } else { this.w = 380; } if (_root.wp_h != undefined && _root.wp_h != '') { this.h = int(_root.wp_h); } else { this.h = 200; } if (_root.wp_x != undefined && _root.wp_x != '') { this.mc._x = int(_root.wp_x); } else { this.mc._x = 10; } if (_root.wp_y != undefined && _root.wp_y != '') { this.mc._y = int(_root.wp_y); } else { this.mc._y = 10; } if (_root.wp_s != undefined && _root.wp_s != '') { this.row_size = int(_root.wp_s); } else { this.row_size = 20; } this.x = this.mc._x; this.y = this.mc._y; this.mc_back_image._x = -this.mc._x; this.mc_back_image._y = -this.mc._y; if (_root.wp_fore != undefined && _root.wp_fore != '') { this.foreground = int(_root.wp_fore) & 16777215; } else { this.foreground = 16777215; } if (_root.wp_jpg == undefined) { if (_root.wp_back == undefined || _root.wp_back == '') { _root.wp_back = 1073741952; } } 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; } this.do_tint(); this.xspf = new XML(); this.xspf.ignoreWhite = true; this.xspf.onLoad = null; this.mcs1 = gfx.create_clip(this.mc, null); this.sfx = new Sound(this.mcs1); this.mcs2 = gfx.create_clip(this.mc, null); this.sfx_next = new Sound(this.mcs2); this.sfx_master = new Sound(); }; var v1 = _global.WetPlayMP3.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.rnd_seed = function (n) { this.rnd_num = n & 65535; }; v1.rnd = function () { this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537; return this.rnd_num; }; v1.CheckSFX = function (nam, chan) { var v4 = this.sfxs[chan % 4].sfx; if (nam) { if (v4.nam != nam) { return true; } } return v4.complete; }; v1.PlaySFX = function (nam, chan, loops, vol) { if (this.sfx_on == 0) { return undefined; } if (chan != undefined && chan != null) { var v6 = this.sfxs[chan % 4].sfx; } else { var v6 = this.sfxs[this.sfxidx].sfx; this.sfxidx = (this.sfxidx + 1) % 4; } if (nam == null) { if (vol == undefined) { v6.stop(); v6.complete = true; } else { v6.setVolume(vol * 100); } return v6; } v6.nam = nam; v6.stop(); v6.attachSound(nam); if (loops) { v6.start(0, loops); v6.complete = false; } else { v6.start(); v6.complete = false; } if (vol == undefined) { v6.setVolume(100); return v6; } v6.setVolume(vol * 100); return v6; }; v1.catchclicks = function () {}; v1.onSoundComplete = function (i) { this.sfxs[i].sfx.complete = true; }; v1.setup = function () { var v2 = _root.cacheAsBitmap; this.so_load(); _root.cacheAsBitmap = false; var v7 = this.row_size; var v8 = Math.floor(this.w / v7); var v9 = Math.floor(this.h / v7); if (v9 >= 2) { var v10 = 1; } else { var v10 = 0; } this.sfx_load_stall_counter = 0; this.image_url = ''; this.mc_image = gfx.create_clip(this.mc, null); gfx.clear(this.mc_image); this.mc_image._alpha = 25; this.gizmo = new GizmoMaster(this); this.gizmo.top = this.gizmo; var v4 = this.gizmo; v4.set_area(0, 0, this.w, this.h); var v5 = this.gizmo; var v11 = 0; if (v8 >= 4) { v4 = v5.child(new GizmoButt(v5)); v4.set_area(v7 * v11, v7 * v10, v7, v7); var v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_backward(v6, 0, 0, v7, v7); v4.mc_base = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_backward(v6, 0, 0, v7, v7); v4.mc_over = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_backward(v6, v7 * 0.1, v7 * 0.1, v7 * 0.8, v7 * 0.8); v4.mc_down = v6; v4.id = 'backward'; v4.onClick = this.delegate(this.onClick, v4); this.gizmo_backward = v4; ++v11; } v4 = v5.child(new GizmoButt(v5)); v4.set_area(v7 * v11, v7 * v10, v7, v7); v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_play(v6, 0, 0, v7, v7); v4.mc_base = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_play(v6, 0, 0, v7, v7); v4.mc_over = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_play(v6, v7 * 0.1, v7 * 0.1, v7 * 0.8, v7 * 0.8); v4.mc_down = v6; v4.id = 'play'; v4.onClick = this.delegate(this.onClick, v4); this.gizmo_play = v4; v4 = v5.child(new GizmoButt(v5)); v4.set_area(v7 * v11, v7 * v10, v7, v7); v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_pause(v6, 0, 0, v7, v7); v4.mc_base = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_pause(v6, 0, 0, v7, v7); v4.mc_over = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_pause(v6, v7 * 0.1, v7 * 0.1, v7 * 0.8, v7 * 0.8); v4.mc_down = v6; v4.id = 'pause'; v4.onClick = this.delegate(this.onClick, v4); this.gizmo_pause = v4; ++v11; if (v8 >= 3) { v5 = this.gizmo; v4 = v5.child(new GizmoButt(v5)); v4.set_area(v7 * v11, v7 * v10, v7, v7); v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_forward(v6, 0, 0, v7, v7); v4.mc_base = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_forward(v6, 0, 0, v7, v7); v4.mc_over = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_forward(v6, v7 * 0.1, v7 * 0.1, v7 * 0.8, v7 * 0.8); v4.mc_down = v6; v4.id = 'forward'; v4.onClick = this.delegate(this.onClick, v4); this.gizmo_forward = v4; ++v11; } if (v8 >= 5) { v5 = this.gizmo; v4 = v5.child(new Gizmo(v5)); v4.set_area(v7 * v11, v7 * v10, this.w - v7 * (v11 + 1), v7); v4.mc.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_boxen(v4.mc, 0, 0, this.w - v7 * 4, v7); this.gizmo_position = v4; v5 = v4; v4 = v5.child(new GizmoKnob(v5)); if (v8 > 5) { v4.set_area(0, 0, v7, v7); } else { v4.set_area(0, 0, v7 / 2, v7); } v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_puck(v6, 0, 0, v4.w, v7); v4.mc_base = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_puck(v6, 0, 0, v4.w, v7); v4.mc_over = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_puck(v6, 0, 0, v4.w, v7); v4.mc_down = v6; v4.id = 'position_knob'; v4.onClick = this.delegate(this.onClick, v4); this.gizmo_position_knob = v4; } v5 = this.gizmo; v4 = v5.child(new Gizmo(v5)); if (v9 >= 2) { v4.set_area(this.w - v7 * 1, 0, v7, v7 * 2); } else { v4.set_area(this.w - v7 * 1, 0, v7, v7 * 1); } v4.mc.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; gfx.draw_box(v4.mc, undefined, v7 * 7 / 16, v7 * 1 / 16, v7 * 2 / 16, v4.h - v7 * 2 / 16); this.gizmo_volume = v4; v5 = v4; v4 = v5.child(new GizmoKnob(v5)); v4.set_area(0, 0, v7, v7 * 10 / 16); v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; gfx.draw_box(v6, undefined, v7 * 3 / 16, v7 * 3 / 16, v7 * 10 / 16, v4.h - v7 * 6 / 16); v4.mc_base = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; gfx.draw_box(v6, undefined, v7 * 3 / 16, v7 * 3 / 16, v7 * 10 / 16, v4.h - v7 * 6 / 16); v4.mc_over = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; gfx.draw_box(v6, undefined, v7 * 3 / 16, v7 * 3 / 16, v7 * 10 / 16, v4.h - v7 * 6 / 16); v4.mc_down = v6; this.gizmo_volume_knob = v4; if (v8 == 1) { this.gizmo_volume.active = false; } if (v9 > 2) { v5 = this.gizmo; v4 = v5.child(new Gizmo(v5)); v4.set_area(this.w - v7 * 1, v7 * 2, v7, this.h - v7 * 2); v4.mc.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_boxen(v4.mc, 0, 0, v4.w, v4.h); this.gizmo_scroll = v4; v5 = v4; v4 = v5.child(new GizmoKnob(v5)); v4.set_area(0, 0, v7, v7); v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_puck(v6, 0, 0, v7, v7); v4.mc_base = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_puck(v6, 0, 0, v7, v7); v4.mc_over = v6; v6 = gfx.create_clip(v4.mc, null, 0, 0, 100, 100); v6.style = {'fill': -16777216 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_puck(v6, 0, 0, v7, v7); v4.mc_down = v6; this.gizmo_scroll_knob = v4; } if (v9 >= 2) { v5 = this.gizmo; v4 = v5.child(new GizmoLine(v5)); v4.set_area(v7 * 0, v7 * 0, this.w - v7, v7); v4.tf_fmt.size = v7 - 4; v4.tf_fmt.color = -16777216 + this.foreground; v4.str = ''; v4.draw_mask(); this.gizmo_title = v4; } if (v9 > 2) { v5 = this.gizmo; v4 = v5.child(new GizmoList(v5)); v4.set_area(v7 * 0, v7 * 2, this.w - v7, this.h - v7 * 2); v5 = v4; v4 = v5.child(new GizmoList(v5)); v4.set_area(0, 0, v5.w - v7, v5.h); v4.lh = v7; v4.tf_fmt.size = v7 - 6; v4.tf_fmt.color = -16777216 + this.foreground; v4.base_alpha = 50; v4.vgizmo = this.gizmo_scroll_knob; this.gizmo_list1 = v4; v4 = v5.child(new GizmoList(v5)); v4.set_area(v5.w - v7, 0, v7, v5.h); v4.lh = v7; v4.tf_fmt.size = v7 - 6; v4.tf_fmt.color = -16777216 + this.foreground; v4.base_alpha = 30; v4.vgizmo = this.gizmo_scroll_knob; this.gizmo_list2 = v4; } this.gizmo_play.active = true; this.gizmo_pause.active = false; this.xspfs = new Array(); if (_root.wp_mp3 != undefined && _root.wp_mp3 != '') { this.xspfs[0] = {'url': 'MP3', 'str': _root.wp_mp3}; } else { if (_root.wp_xspf != undefined && _root.wp_xspf != '') { this.xspfs[0] = {'url': _root.wp_xspf, 'str': _root.wp_xspf}; } } if (!_root.kidsafe) { this.xspfs.push({'url': 'http://swf.wetgenes.com/swf/WetDike.xspf', 'str': 'WetDike ProjectOpus Playlist'}); this.xspfs.push({'url': 'http://swf.wetgenes.com/swf/hourofslack.php', 'str': 'Listen to a recent hour of slack.'}); } var v3 = 0; goto 13464; for (;;) { ++v3; label 13464: if (v3 >= this.xspfs.length) break; var v12 = this.xspfs[v3].str.split('/'); if (v12.length > 1) { if (v12[v12.length - 1] == '') { this.xspfs[v3].str = v12[v12.length - 2]; } else { this.xspfs[v3].str = v12[v12.length - 1]; } } } this.xspfs[this.xspfs.length] = {'url': '', 'str': 'Options'}; this.force = 0; if (_root.wp_force != undefined && _root.wp_force != '') { this.force = int(_root.wp_force) ? 1 : 0; } this.auto = 0; if (this.so.data.auto != undefined && !this.force) { this.auto = int(this.so.data.auto) ? 1 : 0; } else { if (_root.wp_auto != undefined && _root.wp_auto != '') { this.auto = int(_root.wp_auto) ? 1 : 0; } } this.shuffle = 0; if (_root.wp_shuffle != undefined && _root.wp_shuffle != '') { this.shuffle = int(_root.wp_shuffle) ? 1 : 0; } this.loop = 1; if (_root.wp_loop != undefined && _root.wp_loop != '') { this.loop = int(_root.wp_loop) ? 1 : 0; } this.sfx_on = 1; if (_root.wp_sfx != undefined && _root.wp_sfx != '') { this.sfx_on = int(_root.wp_loop) ? 1 : 0; } this.show_xspfs(); this.got_creator = 1; this.track_id = -1; this.xspf_id = -1; this.gizmo_title.str = 'Select a playlist to play.'; if (this.so.data.vol != undefined && !this.force) { var v13 = this.so.data.vol / 100; if (v13 <= 0) { v13 = 0; this.auto = 0; } if (v13 > 1) { v13 = 1; } this.gizmo_volume_knob.set_knob(0, 1.0 - v13); } else { if (_root.wp_vol != undefined) { var v14 = _root.wp_vol / 100; if (v14 <= 0) { v14 = 0; this.auto = 0; } if (v14 > 1) { v14 = 1; } this.gizmo_volume_knob.set_knob(0, 1.0 - v14); } else { this.gizmo_volume_knob.set_knob(0, 1.0 - 0.5); } } if (this.auto) { this.xspf_id = 0; this.load_xml(this.xspfs[0].url); this.state = 'pause'; } else { if (this.xspfs.length == 2) { this.xspf_id = 0; this.load_xml(this.xspfs[0].url); this.state = 'pause'; } } this.options = new Array(); var v15 = this.options; v15.push({'str': '.. (click to go back)'}); v15.push({'str': 'This is WetPlay 1.11 : www.WetGenes.com', 'url': 'http://www.WetGenes.com'}); v15.push({'str': '(c) Kriss Daniels 2007 : XIXs.com', 'url': 'http://XIXs.com'}); v15.push({'str': 'Powered by project opus / XSPF : ProjectOpus.com', 'url': 'http://www.projectopus.com'}); v15.push({'opt': 'shuffle'}); v15.push({'opt': 'autoplay'}); v15.push({'opt': 'repeat'}); v15.push({'opt': 'sfx'}); _root.cacheAsBitmap = v2; this.throbe = 0; }; v1.premenu = function (obj, cm) { var v4 = true; var v5 = this.gizmo_list1.hover; if (v5.item > 0) { v5 = this.tracks[v5.item]; } else { v5 = null; } if (this.view == 'tracks' && v5) { v4 = true; } else { v4 = false; } if (v4 == false) { cm.customItems[0].enabled = false; cm.customItems[0].caption = 'Download MP3'; cm.customItems[1].enabled = false; cm.customItems[1].caption = 'Remember MP3'; } else { this.menu_mp3_name = '' + v5.title; this.menu_mp3_link = '' + v5.location; cm.customItems[0].enabled = true; cm.customItems[0].caption = 'Download ' + this.menu_mp3_name; cm.customItems[1].enabled = false; cm.customItems[1].caption = 'Remember ' + this.menu_mp3_name; } }; v1.setmenu = function (mc) { var v3 = new ContextMenu(this.delegate(this.premenu)); v3.hideBuiltInItems(); var v5 = this.delegate(this.menu_download); var v4 = new ContextMenuItem('Download this MP3', v5); v3.customItems.push(v4); v5 = this.delegate(this.menu_remember); v4 = new ContextMenuItem('Remember this MP3', v5); v3.customItems.push(v4); v5 = this.delegate(this.menu_do, 'pp'); v4 = new ContextMenuItem('Play / Pause', v5); v3.customItems.push(v4); v5 = this.delegate(this.menu_do, 'forward'); v4 = new ContextMenuItem('Next Track', v5); v3.customItems.push(v4); v5 = this.delegate(this.menu_do, 'backward'); v4 = new ContextMenuItem('Previous Track / Rewind', v5); v3.customItems.push(v4); v5 = this.delegate(this.menu_vol, 100); v4 = new ContextMenuItem('Set Volume to 100%', v5); v3.customItems.push(v4); v5 = this.delegate(this.menu_vol, 75); v4 = new ContextMenuItem('Set Volume to 75%', v5); v3.customItems.push(v4); v5 = this.delegate(this.menu_vol, 50); v4 = new ContextMenuItem('Set Volume to 50%', v5); v3.customItems.push(v4); v5 = this.delegate(this.menu_vol, 25); v4 = new ContextMenuItem('Set Volume to 25%', v5); v3.customItems.push(v4); v5 = this.delegate(this.menu_vol, 0); v4 = new ContextMenuItem('Set Volume to 0%', v5); v3.customItems.push(v4); mc.menu = v3; }; v1.menu_download = function () { getURL(this.menu_mp3_link, '_blank'); }; v1.menu_remember = function () {}; v1.menu_vol = function (a, b, c) { this.gizmo_volume_knob.set_knob(0, 1.0 - c / 100); }; v1.set_vol = function (v) { this.gizmo_volume_knob.set_knob(0, 1.0 - v / 100); }; v1.set_vol_start = function (v, g) { this.gizmo_volume_knob.set_knob(0, 1.0 - v / 100); if (g) { if (this.state == 'pause') { this.onClick_id('play'); } this.auto = 1; } else { if (this.state == 'play') { this.onClick_id('pause'); } this.auto = 0; } }; v1.menu_do = function (a, b, c) { if (c == 'pp') { if (this.state == 'play') { this.onClick_id('pause'); } else { this.onClick_id('play'); } } else { this.onClick_id(c); } }; v1.split_list_view = function () { var v2 = this.gizmo_list1.up.w; if (this.view == 'xspfs' || (this.got_creator < this.tracks.length / 2 || this.view == 'options')) { this.gizmo_list1.w = v2; this.gizmo_list2.w = 0; } else { if (this.got_creator) { this.gizmo_list1.w = v2 - this.row_size; this.gizmo_list2.x = this.gizmo_list1.w; this.gizmo_list2.w = this.row_size; } } this.gizmo_list1.draw_mask(); this.gizmo_list2.draw_mask(); }; v1.show_options = function () { this.view = 'options'; var v2 = 0; goto 17365; for (;;) { ++v2; label 17365: if (v2 >= this.options.length) break; var v3 = this.options[v2]; if (v3.opt) { v3.str = this.get_option_str(v3.opt); } } this.gizmo_list1.items = this.options; this.gizmo_list1.onClick = this.delegate(this.select_option); this.gizmo_list2.items = []; this.gizmo_list2.onClick = null; this.split_list_view(); }; v1.get_option_str = function (s) { switch (s) { return ''; case 'shuffle': return 'Shuffle is ' + (this.shuffle ? 'ON' : 'OFF'); return ''; case 'autoplay': return 'Autoplay is ' + (this.auto ? 'ON' : 'OFF'); return ''; case 'repeat': return 'Repeat is ' + (this.loop ? 'ON' : 'OFF'); return ''; case 'sfx': return 'Sound effects are ' + (this.sfx_on ? 'ON' : 'OFF'); return ''; } return ''; }; v1.toggle_option = function (s) { switch (s) { case 'shuffle': this.shuffle = this.shuffle ? 0 : 1; break; case 'autoplay': this.auto = this.auto ? 0 : 1; break; case 'repeat': this.loop = this.loop ? 0 : 1; break; case 'sfx': this.sfx_on = this.sfx_on ? 0 : 1; } this.show_options(); }; v1.show_xspfs = function () { this.view = 'xspfs'; this.gizmo_list1.items = this.xspfs; this.gizmo_list1.onClick = this.delegate(this.select_xspf); this.gizmo_list2.items = []; this.gizmo_list2.onClick = null; this.split_list_view(); }; v1.show_tracks = function () { this.view = 'tracks'; this.gizmo_list1.items = this.tracks1; this.gizmo_list2.items = this.tracks2; this.gizmo_list1.onClick = this.delegate(this.select_mp3); this.gizmo_list2.onClick = this.delegate(this.select_mp3_artist); this.split_list_view(); }; v1.select_option = function (ln) { var v3 = ln.item; if (v3 == 0) { this.show_xspfs(); return undefined; } var v4 = this.options[v3]; if (v4.url) { getURL(v4.url, 'BOT'); } else { if (v4.opt) { this.toggle_option(v4.opt); } } }; v1.select_xspf = function (ln) { var v3 = ln.item; if (v3 >= this.xspfs.length - 1 || v3 < 0) { this.show_options(); } else { this.xspf_id = v3; this.load_xml(this.xspfs[v3].url); this.state = 'pause'; } }; v1.select_mp3 = function (ln) { this.select_mp3_id(ln.item); }; v1.select_mp3_id = function (id) { if (id == 0) { this.show_xspfs(); } else { this.track_id = id; this.play_mp3(this.tracks[this.track_id]); this.gizmo_play.active = false; this.gizmo_pause.active = true; this.state = 'play'; } }; v1.select_mp3_artist = function (ln) { var v3 = ln.item; this.show_artist(this.tracks[v3]); }; v1.play_mp3 = function (t) { if (t == undefined) { return undefined; } this.load_image(t.image); if (t.creator == '') { this.set_title(t.title); } else { this.set_title(t.title + ' (by) ' + t.creator); } this.disp_title = t.title; this.disp_creator = t.creator; this.disp_info = t.info; this.sfx.stop(); this.sfx.start(0); this.sfx.stop(); this.sfx.loadSound(t.location, true); this.gizmo_position_knob.set_knob(0, 0); this.sfx_load_stall_counter = 0; }; v1.stop_mp3 = function () { this.sfx.stop(); this.sfx_next.stop(); this.gizmo_position_knob.set_knob(0, 0); this.gizmo_play.active = true; this.gizmo_pause.active = false; this.state = 'pause'; }; v1.show_artist = function (t) { getURL(t.info, 'BOT'); }; v1.set_title = function (str) { this.gizmo_title.str = str; }; v1.load_back_image = function (url) { this.mc_back_image.removeMovieClip(); this.mc_back_image = gfx.create_clip(this.mc_back); this.mc_back_image._lockroot = true; this.mc_back_image.loadMovie(url); }; v1.do_tint = function () { if (_root.wp_back != undefined && _root.wp_back != '') { gfx.clear(this.mc_back_colour); this.mc_back_colour.style.fill = int(_root.wp_back); gfx.draw_box(this.mc_back_colour, undefined, -this.x, -this.y, this.w + this.x * 2, this.h + this.y * 2); } }; v1.load_image = function (url) { if (this.image_url == url) { return undefined; } if (this.image_url == '') { return undefined; } if (this.image_url == 'undefined') { return undefined; } if (this.image_url == undefined) { return undefined; } this.image_url = url; this.mc_image3 = gfx.create_clip(this.mc_image); this.mc_image3._lockroot = true; this.mc_image3.loadMovie(url); this.mc_image.onEnterFrame = this.delegate(this.load_image_check); this.mc_image2.removeMovieClip(); this.mc_image2 = this.mc_image3; this.mc_image3 = null; }; v1.load_image_check = function () { var v2 = this.mc_image2.getBytesTotal(); var v3 = this.mc_image2.getBytesLoaded(); if (v2 == -1) { this.mc_image.onEnterFrame = null; return undefined; } if (v3 != v2 || (v2 == 0 || (this.mc_image2._width == 0 || this.mc_image2._height == 0))) { return undefined; } this.mc_image.onEnterFrame = null; var v4 = 100 * this.w / this.mc_image2._width; var v5 = 100 * this.h / this.mc_image2._height; var v6 = v4; if (v5 < v6) { v6 = v5; } var v7 = v6 * this.mc_image2._width / 100; var v8 = v6 * this.mc_image2._height / 100; v7 = (this.w - v7) / 2; v8 = (this.h - v8) / 2; this.mc_image2._xscale = v6; this.mc_image2._yscale = v6; this.mc_image2._x = v7; this.mc_image2._y = v8; }; v1.clean = function () {}; v1.onClick = function (g) { this.onClick_id(g.id); }; v1.onClick_id = function (g_id) { switch (g_id) { case 'forward': this.gizmo_play.active = false; this.gizmo_pause.active = true; this.click_forward(); this.state = 'play'; break; case 'backward': this.gizmo_play.active = false; this.gizmo_pause.active = true; this.click_backward(); this.state = 'play'; break; case 'play': if (this.state != 'play') { this.gizmo_play.active = false; this.gizmo_pause.active = true; this.sfx.start((this.sfx.played_frac / this.sfx.loaded_frac) * this.sfx.duration / 1000); this.state = 'play'; } break; case 'pause': if (this.state != 'pause') { this.gizmo_play.active = true; this.gizmo_pause.active = false; this.sfx.stop(); this.state = 'pause'; } break; case 'position_knob': this.gizmo_play.active = false; this.gizmo_pause.active = true; this.sfx.stop(); var v3 = (this.gizmo_position_knob.x_knob / this.sfx.loaded_frac) * this.sfx.duration; if (v3 > this.sfx.duration - 500) { v3 = this.sfx.duration - 500; } if (v3 < 0) { v3 = 0; } this.sfx.start(v3 / 1000); this.state = 'play'; } }; v1.update = function () { var v2 = this.sfx.getBytesTotal() > 0 ? this.sfx.getBytesLoaded() / this.sfx.getBytesTotal() : 0; var v3 = this.sfx.duration > 0 ? (this.sfx.position / this.sfx.duration) * this.sfx.loaded_frac : 0; if (this.mc._visible) { var v4 = this.row_size; if (this.view == 'tracks') { this.gizmo_list1.selected = this.track_id; this.gizmo_list2.selected = this.track_id; } else { if (this.view == 'xspfs') { this.gizmo_list1.selected = this.xspf_id; this.gizmo_list2.selected = this.xspf_id; } } var v6 = _root.poker.snapshot(); _root.localToGlobal(v6); this.gizmo.mc.globalToLocal(v6); this.gizmo.focus = this.gizmo.input(v6); this.gizmo.update(); this.sfx.played_frac_last = this.sfx.played_frac; this.sfx.loaded_frac_last = this.sfx.loaded_frac; this.sfx.loaded_frac = v2; this.sfx.played_frac = v3; if (this.sfx.played_frac != this.sfx.played_frac_last) { this.gizmo_position_knob.set_knob(this.sfx.played_frac, 0); } if (this.sfx.loaded_frac != this.sfx.loaded_frac_last) { var v5 = this.gizmo_position; v5.mc.clear(); v5.mc.style = {'fill': 536870912 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; gfx.draw_box(v5.mc, undefined, v4 * 1 / 16, v4 * 1 / 16, (v5.w - v4 * 2 / 16) * this.sfx.loaded_frac, v5.h - v4 * 2 / 16); v5.mc.style = {'fill': -2147483648 + this.foreground, 'out': -16777216 + this.foreground, 'text': -16777216 + this.foreground}; this.up.wetplayGFX.draw_boxen(v5.mc, 0, 0, v5.w, v5.h); this.sfx_load_stall_counter = 0; } else { if (this.sfx.loaded_frac != 1 && this.sfx.played_frac == this.sfx.played_frac_last) { ++this.sfx_load_stall_counter; } else { this.sfx_load_stall_counter = 0; } } } if (this.state == 'play') { this.throbe *= 1.0 - 0.05 * (1.0 - this.gizmo_volume_knob.y_knob); if (this.throbe <= 0.05) { this.throbe = 1.0 - this.gizmo_volume_knob.y_knob; } if (v2 == 1 && this.sfx.getBytesTotal() != undefined && this.sfx.position >= this.sfx.duration - 1 || this.sfx_load_stall_counter > 31 * 5) { if (this.gizmo_volume_knob.y_knob != 1.0) { this.sfx_load_stall_counter = 0; this.play_next_track(); } else { this.throbe = 0; } } } else { this.throbe = 0; } var v7 = (1.0 - this.gizmo_volume_knob.y_knob) * 2; v7 = v7 * v7 * v7; v7 /= 2; this.sfx_master.setVolume(v7 * 100); if (!this.gizmo.focus) { this.so_save(); } }; v1.click_forward = function () { this.play_next_track(); }; v1.play_next_track = function () { if (this.tracks.length == 0) { return undefined; } ++this.track_id; if (this.track_id >= this.tracks.length) { this.track_id = 1; if (this.shuffle) { this.shuffle_tracks(); } if (!this.loop) { this.play_mp3(this.tracks[this.track_id]); this.stop_mp3(); return undefined; } } else { if (this.track_id <= 0) { this.track_id = 1; if (this.shuffle) { this.shuffle_tracks(); } } } this.play_mp3(this.tracks[this.track_id]); }; v1.click_backward = function () { if (this.sfx.position < 2000) { this.play_prev_track(); } else { this.sfx.start(0); } }; v1.play_prev_track = function () { --this.track_id; if (this.track_id <= 0 || this.track_id >= this.tracks.length) { this.track_id = this.tracks.length - 1; if (this.shuffle) { this.shuffle_tracks(); } } this.play_mp3(this.tracks[this.track_id]); this.state = 'play'; }; v1.do_str = function (str) { this.up.do_str(str); str; }; v1.load_xml = function (s) { if (this.xspf.onLoad) { return undefined; } if (this.tracks_url == s) { this.show_tracks(); return undefined; } this.tracks_url = s; var v4 = this.tracks_url.split('/'); var v5 = v4[v4.length - 1].split('.'); if (s == 'MP3') { var v6 = '<?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'; this.xspf.parseXML(v6); this.loaded_xml(); } else { if (v5[v5.length - 1].toLowerCase() == 'mp3') { var v7 = '<?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'; this.xspf.parseXML(v7); this.loaded_xml(); } else { if (v4[2] == 'www.last.fm') { var v3 = s.split('%20'); s = v3.join('+'); v3 = s.split(' '); s = v3.join('+'); this.xspf.noData = this.xspf.onData; this.xspf.onData = this.delegate(this.loaded_html); this.xspf.onLoad = this.delegate(this.loaded_html); this.xspf.load(s); this.set_title('scraping html'); } else { if (s == 'grabb.it') { this.xspf.onData = this.delegate(this.loaded_grabbit); this.xspf.load('http://grabb.it/sessions.js'); this.set_title('Getting username'); } else { this.xspf.onLoad = this.delegate(this.loaded_xml); this.xspf.load(s); this.set_title('Loading Playlist'); } } } } }; v1.loaded_html = function (txt) { this.track_preload(); var v9 = null; this.xspf.onData = this.xspf.noData; this.xspf.onLoad = null; var v3 = txt.split('.mp3'); var v7 = 0; goto 24715; for (;;) { ++v7; label 24715: if (v7 >= v3.length) break; var v4 = v3[v7].split('http:'); var v6 = v4[v4.length - 1]; if (v6.substring(0, 2) == '//') { var v5 = v6.split('/'); if (v5[3] == 'download') { var v10 = 'http:' + v6 + '.mp3'; if (v9 != v10) { v9 = v10; var v11 = new Object(); v11.location = v10; v11.creator = ' on Last.FM'; this.add_tr(v11); v11.info = 'http://www.last.fm/music/?m=tracks&q=' + v11.titleurl; } } } } this.track_postload(); }; v1.track_preload = function () { this.tracks = new Array(); this.tracks1 = new Array(); this.tracks2 = new Array(); this.tracks[0] = {'str': '.. (click to go back)'}; this.tracks1[0] = {'str': '.. (click to go back)'}; this.tracks2[0] = {'str': ''}; this.got_creator = 0; }; v1.track_postload = function () { this.show_tracks(); this.stop_mp3(); this.set_title('Loaded ' + (this.tracks.length - 1) + ' tracks.'); this.show_tracks(); this.track_id = -1; if (this.shuffle) { this.shuffle_tracks(); } if (this.auto) { this.select_mp3_id(1); } }; v1.loaded_grabbit = function (src) { var v3 = (src.split('"'))[3]; this.xspf = new XML(); this.xspf.ignoreWhite = true; this.xspf.onLoad = this.delegate(this.loaded_xml); if (v3) { this.xspf.load('http://grabb.it/users/' + v3 + '.xspf'); } else { this.xspf.load('http://grabb.it/charts/activity.xspf'); } this.set_title('Loading Playlist'); }; v1.loaded_xml = function () { this.xspf.onLoad = null; this.track_preload(); this.parse_xml(this.xspf); this.track_postload(); }; v1.parse_xml = function (n) { if (n.nodeName == 'track') { this.add_track_from_xml(n); } else { var v4 = n.childNodes; var v3 = 0; goto 25763; for (;;) { ++v3; label 25763: if (v3 >= v4.length) break; this.parse_xml(v4[v3]); } } }; v1.add_tr = function (tr) { var v7 = tr.location; var v10 = v7.split('/'); if (v10.length > 1) { if (v10[v10.length - 1] == '') { v7 = v10[v10.length - 2]; } else { v7 = v10[v10.length - 1]; } } v7 = _global.unescape(v7); v10 = v7.split('+'); v7 = v10.join(' '); v10 = v7.split('%'); var v4 = 1; goto 26093; for (;;) { ++v4; label 26093: if (v4 >= v10.length) break; v10[v4] = v10[v4].substr(2); } v7 = v10.join(' '); v10 = v7.split('.mp3'); v7 = v10.join(' '); v10 = v7.split(' '); var v3 = 1; goto 26260; for (;;) { ++v3; label 26260: if (v3 >= v10.length) break; if (v10[v3] == '' && v10[v3 - 1] == '') { v10.splice(v3, 1); --v3; } } v7 = v10.join(' '); tr.titleurl = v7; if (tr.title == undefined) { tr.title = tr.annotation; } if (tr.title == undefined) { tr.title = tr.titleurl; } v7 = tr.title; v10 = v7.split('\n'); v7 = v10.join(' '); v10 = v7.split(' '); v3 = 1; goto 26568; for (;;) { ++v3; label 26568: if (v3 >= v10.length) break; if (v10[v3] == '' && v10[v3 - 1] == '') { v10.splice(v3, 1); --v3; } } v7 = v10.join(' '); tr.title = v7; if (tr.creator == undefined) { tr.creator = ''; if (tr.info) { tr.creator = '?'; ++this.got_creator; } } else { ++this.got_creator; } var v8 = '' + tr.title; var v9 = '' + tr.creator; this.tracks[this.tracks.length] = tr; this.tracks1[this.tracks1.length] = {'str': v8}; this.tracks2[this.tracks2.length] = {'str': v9}; }; v1.add_track_from_xml = function (n) { var v5 = new Object(); var v4 = n.childNodes; var v3 = 0; goto 27005; for (;;) { ++v3; label 27005: if (v3 >= v4.length) break; var v6 = v4[v3]; if (v6.nodeName && v6.firstChild.nodeValue) { v5[v6.nodeName] = v6.firstChild.nodeValue; } } this.add_tr(v5); }; v1.shuffle_tracks = function () { var v4 = this.tracks.length - 1; var v2 = 0; goto 27201; for (;;) { ++v2; label 27201: if (v2 >= v4) break; var v3 = this.rnd() % v4; this.tracks.splice(1, 0, this.tracks[v3 + 1]); this.tracks.splice(v3 + 2, 1); this.tracks1.splice(1, 0, this.tracks1[v3 + 1]); this.tracks1.splice(v3 + 2, 1); this.tracks2.splice(1, 0, this.tracks2[v3 + 1]); this.tracks2.splice(v3 + 2, 1); } }; v1.so_load = function () { this.so = SharedObject.getLocal('www.wetgenes.com/WetPlay'); var v2 = this.so.data; this.so_loaded = false; if (v2.sfx != undefined) { this.sfx_on = v2.sfx; this.so_loaded = true; } }; v1.so_save = function () { var v2 = false; var v3 = this.so.data; var v4 = Math.floor((1.0 - this.gizmo_volume_knob.y_knob) * 100); if (v3.vol != v4) { v2 = true; v3.vol = v4; } if (v3.sfx != this.sfx_on) { v2 = true; v3.sfx = this.sfx_on; } if (v3.auto != this.auto) { v2 = true; v3.auto = this.auto; } if (v2) { this.so.flush(); } }; ASSetPropFlags(v1, null, 1); v1.disp_title = ''; v1.disp_creator = ''; v1.disp_info = ''; v1.throbe = 0; v1.rnd_num = 0; v1.so_loaded = false; } #endinitclip } movieClip 20500 __Packages.NonobaAPI { #initclip if (!NonobaAPI) { _global.NonobaAPI = function () { throw new Error('ERROR!: You cannot create an instance of the NonobaAPI class!'); }; var v1 = _global.NonobaAPI.prototype; _global.NonobaAPI.GetShopItemKeys = function (callback) { if (!NonobaAPI.isInited) { NonobaAPI.Init(); } if (NonobaAPI.failed) { if (callback) { callback(NonobaAPI.ERROR, null); } return undefined; } if (NonobaAPI.api && NonobaAPI.api.ShowShop) { NonobaAPI.api.GetShopItemKeys(callback); } else { NonobaAPI.cachedRequests.push(function () { NonobaAPI.GetShopItemKeys(callback); }); } }; _global.NonobaAPI.HasShopItem = function (item, callback) { if (!NonobaAPI.isInited) { NonobaAPI.Init(); } if (NonobaAPI.failed) { if (callback) { callback(NonobaAPI.ERROR, false, null); } return undefined; } if (NonobaAPI.api && NonobaAPI.api.ShowShop) { NonobaAPI.api.HasShopItem(item, callback); } else { NonobaAPI.cachedRequests.push(function () { NonobaAPI.HasShopItem(item, callback); }); } }; _global.NonobaAPI.ShowShop = function (item, callback) { if (!NonobaAPI.isInited) { NonobaAPI.Init(); } if (NonobaAPI.failed) { if (callback) { callback(NonobaAPI.ERROR); } return undefined; } if (NonobaAPI.api && NonobaAPI.api.ShowShop) { NonobaAPI.api.ShowShop(item, callback); } else { NonobaAPI.cachedRequests.push(function () { NonobaAPI.ShowShop(item, callback); }); } }; _global.NonobaAPI.Login = function (callback) { if (!NonobaAPI.isInited) { NonobaAPI.Init(); } if (NonobaAPI.failed) { if (callback) { callback(NonobaAPI.ERROR); } return undefined; } if (NonobaAPI.api && NonobaAPI.api.Login) { NonobaAPI.api.Login(callback); } else { NonobaAPI.cachedRequests.push(function () { NonobaAPI.Login(callback); }); } }; _global.NonobaAPI.SubmitScore = function (key, score, callback) { if (!NonobaAPI.isInited) { NonobaAPI.Init(); } if (NonobaAPI.failed) { if (callback) { callback(NonobaAPI.ERROR); } return undefined; } if (NonobaAPI.api && NonobaAPI.api.SubmitScore) { NonobaAPI.api.SubmitScore(key, score, callback); } else { NonobaAPI.cachedRequests.push(function () { NonobaAPI.SubmitScore(key, score, callback); }); } }; _global.NonobaAPI.AwardAchievement = function (key, callback) { if (!NonobaAPI.isInited) { NonobaAPI.Init(); } if (NonobaAPI.failed) { if (callback) { callback(NonobaAPI.ERROR, 0); } return undefined; } if (NonobaAPI.api && NonobaAPI.api.AwardAchievement) { NonobaAPI.api.AwardAchievement(key, callback); } else { NonobaAPI.cachedRequests.push(function () { NonobaAPI.AwardAchievement(key, callback); }); } }; _global.NonobaAPI.SetUserData = function (key, value, callback) { if (!NonobaAPI.isInited) { NonobaAPI.Init(); } if (NonobaAPI.failed) { if (callback) { callback(NonobaAPI.ERROR); } return undefined; } if (NonobaAPI.api && NonobaAPI.api.SetUserData) { NonobaAPI.api.SetUserData(key, value, callback); } else { NonobaAPI.cachedRequests.push(function () { NonobaAPI.SetUserData(key, value, callback); }); } }; _global.NonobaAPI.GetUserData = function (key, callback) { if (!NonobaAPI.isInited) { NonobaAPI.Init(); } if (NonobaAPI.failed) { if (callback) { callback(NonobaAPI.ERROR, ''); } return undefined; } if (NonobaAPI.api && NonobaAPI.api.GetUserData) { NonobaAPI.api.GetUserData(key, callback); } else { NonobaAPI.cachedRequests.push(function () { NonobaAPI.GetUserData(key, callback); }); } }; _global.NonobaAPI.GetUsername = function (callback) { if (!NonobaAPI.isInited) { NonobaAPI.Init(); } if (NonobaAPI.failed) { if (callback) { callback(NonobaAPI.ERROR, ''); } return undefined; } if (NonobaAPI.api && NonobaAPI.api.GetUsername) { NonobaAPI.api.GetUsername(callback); } else { NonobaAPI.cachedRequests.push(function () { NonobaAPI.GetUsername(callback); }); } }; _global.NonobaAPI.emptyCache = function () { var v2 = 0; goto 3307; for (;;) { ++v2; label 3307: if (v2 >= NonobaAPI.cachedRequests.length) break; NonobaAPI.cachedRequests[v2](); } NonobaAPI.cachedRequests = []; }; _global.NonobaAPI.Init = function (container) { if (NonobaAPI.isInited) { throw new Error('NonobaAPI can not be re-initialized!'); } NonobaAPI.isInited = true; var v3 = _root.nonoba$apicodeas2; if (!v3) { NonobaAPI.failed = true; NonobaAPI.emptyCache(); } System.security.allowDomain('*'); container = container || _root; NonobaAPI.api = container.createEmptyMovieClip('___NonobaAPI__loader', container.getNextHighestDepth()); var v4 = new MovieClipLoader(); v4.addListener({'onLoadComplete': function () { this.loadTimer = _global.setInterval(com.dynamicflash.utils.Delegate.create(NonobaAPI, function () { if (NonobaAPI.api.SubmitScore !== undefined) { _global.clearInterval(NonobaAPI.loadTimer); NonobaAPI.emptyCache(); } }), 500); }, 'onLoadError': com.dynamicflash.utils.Delegate.create(NonobaAPI, function () { NonobaAPI.failed = true; NonobaAPI.emptyCache(); })}); v4.loadClip(v3, NonobaAPI.api); }; ASSetPropFlags(v1, null, 1); _global.NonobaAPI.SUCCESS = 'SUCCESS'; _global.NonobaAPI.NOT_LOGGED_IN = 'user not logged in'; _global.NonobaAPI.ERROR = 'error'; _global.NonobaAPI.isInited = false; _global.NonobaAPI.loading = false; _global.NonobaAPI.cachedRequests = []; _global.NonobaAPI.failed = false; } #endinitclip } movieClip 20501 __Packages.WetPlayGFX { #initclip if (!WetPlayGFX) { _global.WetPlayGFX = function () {}; var v1 = _global.WetPlayGFX.prototype; v1.WetPlayMP3 = function (_up) { this.up = _up; }; v1.draw_play = function (mc, x, y, w, h) { var v7 = w / 16; var v8 = h / 16; var v9 = v7; if (v9 > v8) { v9 = v8; } mc.lineStyle(undefined); mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255); mc.moveTo(x + v9, y + v9); mc.lineTo(x + w - v9, y + v9); mc.lineTo(x + w - v9, y + h - v9); mc.lineTo(x + v9, y + h - v9); mc.lineTo(x + v9, y + v9); mc.moveTo(x + v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + v9 * 2); mc.moveTo(x + v7 * 5, y + v9 * 3); mc.lineTo(x + v7 * 5, y + h - v9 * 3); mc.lineTo(x + v7 * 11, y + v8 * 8); mc.endFill(); }; v1.draw_back = function (mc, x, y, w, h) { var v7 = w / 16; var v8 = h / 16; var v9 = v7; if (v9 > v8) { v9 = v8; } mc.lineStyle(undefined); mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255); mc.moveTo(x + v9, y + v9); mc.lineTo(x + w - v9, y + v9); mc.lineTo(x + w - v9, y + h - v9); mc.lineTo(x + v9, y + h - v9); mc.lineTo(x + v9, y + v9); mc.moveTo(x + v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + v9 * 2); mc.moveTo(x + v7 * 11, y + v9 * 3); mc.lineTo(x + v7 * 11, y + h - v9 * 3); mc.lineTo(x + v7 * 5, y + v8 * 8); mc.endFill(); }; v1.draw_stop = function (mc, x, y, w, h) { var v7 = w / 16; var v8 = h / 16; var v9 = v7; if (v9 > v8) { v9 = v8; } mc.lineStyle(undefined); mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255); mc.moveTo(x + v9, y + v9); mc.lineTo(x + w - v9, y + v9); mc.lineTo(x + w - v9, y + h - v9); mc.lineTo(x + v9, y + h - v9); mc.lineTo(x + v9, y + v9); mc.moveTo(x + v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + v9 * 2); mc.moveTo(x + v7 * 12, y + v8 * 4); mc.lineTo(x + v7 * 12, y + v8 * 12); mc.lineTo(x + v7 * 4, y + v8 * 12); mc.lineTo(x + v7 * 4, y + v8 * 4); mc.endFill(); }; v1.draw_pause = function (mc, x, y, w, h) { var v7 = w / 16; var v8 = h / 16; var v9 = v7; if (v9 > v8) { v9 = v8; } mc.lineStyle(undefined); mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255); mc.moveTo(x + v9, y + v9); mc.lineTo(x + w - v9, y + v9); mc.lineTo(x + w - v9, y + h - v9); mc.lineTo(x + v9, y + h - v9); mc.lineTo(x + v9, y + v9); mc.moveTo(x + v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + v9 * 2); mc.moveTo(x + v7 * 4, y + v9 * 3); mc.lineTo(x + v7 * 4, y + v9 * 13); mc.lineTo(x + v7 * 7, y + v9 * 13); mc.lineTo(x + v7 * 7, y + v9 * 3); mc.moveTo(x + v7 * 9, y + v9 * 3); mc.lineTo(x + v7 * 9, y + v9 * 13); mc.lineTo(x + v7 * 12, y + v9 * 13); mc.lineTo(x + v7 * 12, y + v9 * 3); mc.endFill(); }; v1.draw_forward = function (mc, x, y, w, h) { var v7 = w / 16; var v8 = h / 16; var v9 = v7; if (v9 > v8) { v9 = v8; } mc.lineStyle(undefined); mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255); mc.moveTo(x + v9, y + v9); mc.lineTo(x + w - v9, y + v9); mc.lineTo(x + w - v9, y + h - v9); mc.lineTo(x + v9, y + h - v9); mc.lineTo(x + v9, y + v9); mc.moveTo(x + v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + v9 * 2); mc.moveTo(x + v7 * 3, y + v9 * 3); mc.lineTo(x + v7 * 3, y + h - v9 * 3); mc.lineTo(x + v7 * 8, y + v8 * 8); mc.moveTo(x + v7 * 8, y + v9 * 3); mc.lineTo(x + v7 * 8, y + h - v9 * 3); mc.lineTo(x + v7 * 13, y + v8 * 8); mc.endFill(); }; v1.draw_backward = function (mc, x, y, w, h) { var v7 = w / 16; var v8 = h / 16; var v9 = v7; if (v9 > v8) { v9 = v8; } mc.lineStyle(undefined); mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255); mc.moveTo(x + v9, y + v9); mc.lineTo(x + w - v9, y + v9); mc.lineTo(x + w - v9, y + h - v9); mc.lineTo(x + v9, y + h - v9); mc.lineTo(x + v9, y + v9); mc.moveTo(x + v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + v9 * 2); mc.moveTo(x + v7 * 8, y + v9 * 3); mc.lineTo(x + v7 * 8, y + h - v9 * 3); mc.lineTo(x + v7 * 3, y + v8 * 8); mc.moveTo(x + v7 * 13, y + v9 * 3); mc.lineTo(x + v7 * 13, y + h - v9 * 3); mc.lineTo(x + v7 * 8, y + v8 * 8); mc.endFill(); }; v1.draw_boxen = function (mc, x, y, w, h) { var v7 = w / 16; var v8 = h / 16; var v9 = v7; if (v9 > v8) { v9 = v8; } mc.lineStyle(undefined); mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255); mc.moveTo(x + v9, y + v9); mc.lineTo(x + w - v9, y + v9); mc.lineTo(x + w - v9, y + h - v9); mc.lineTo(x + v9, y + h - v9); mc.lineTo(x + v9, y + v9); mc.moveTo(x + v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + v9 * 2); mc.lineTo(x + w - v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + h - v9 * 2); mc.lineTo(x + v9 * 2, y + v9 * 2); mc.endFill(); }; v1.draw_puck = function (mc, x, y, w, h) { var v7 = w / 16; var v8 = h / 16; var v9 = v7; if (v9 > v8) { v9 = v8; } mc.lineStyle(undefined); mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255); mc.moveTo(x + v9 * 3, y + v9 * 3); mc.lineTo(x + w - v9 * 3, y + v9 * 3); mc.lineTo(x + w - v9 * 3, y + h - v9 * 3); mc.lineTo(x + v9 * 3, y + h - v9 * 3); mc.lineTo(x + v9 * 3, y + v9 * 3); mc.endFill(); }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20502 __Packages.Loading { #initclip if (!Loading) { _global.Loading = function (_showloading) { this.showloading = _showloading; this.setup(); }; var v1 = _global.Loading.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.setup = function () { var v3 = function (a, b) { if (_root[a] == undefined) { _root[a] = b; } }; this.server = 'www'; if (_root._url.indexOf('http://www.wetgenes.local/') == 0 || (_root._url.indexOf('http://wetgenes.local/') == 0 || (_root._url.indexOf('http://swf.wetgenes.local/') == 0 || (_root._url.indexOf('http://www.host.local/') == 0 || (_root._url.indexOf('http://host.local/') == 0 || (_root._url.indexOf('http://www.local.host/') == 0 || (_root._url.indexOf('http://local.host/') == 0 || _root._url.indexOf('file:') == 0))))))) { this.server = 'local'; v3('host', 'swf.wetgenes.local'); } else { v3('host', 'swf.wetgenes.com'); } this.defuck = _root._highquality; this.done = false; this.mcb = gfx.create_clip(_root.mc_popup, null); if (_root.scalar.oy == 600) { this.mc = this.mcb; } else { this.mcb._xscale = Math.floor(100 * (_root.scalar.oy / 600)); this.mcb._yscale = Math.floor(100 * (_root.scalar.oy / 600)); this.mc = gfx.create_clip(this.mcb, null); } if (!this.showloading) { this.mc._visible = false; } gfx.clear(this.mc); this.mc.style.fill = -16777216; gfx.draw_box(this.mc, 0, 0, 0, 800, 600); this.mc.dna = gfx.create_clip(this.mc, null); this.mc.dna._y = 100; this.mc.dna._xscale = 100 * 800 / 256; this.mc.dna._yscale = this.mc.dna._xscale; this.dna = new wetDNA2(this.mc.dna, 'dna', 0, 255, 256, 128); this.mcanim = gfx.create_clip(this.mc, null); this.tf2 = gfx.create_text_html(this.mcanim, null, 25, 25, 750, 200); this.tf3 = gfx.create_text_html(this.mcanim, null, 200, 250, 400, 300); this.tf4 = gfx.create_text_html(this.mcanim, null, 25, 450, 750, 200); var v2 = ''; v2 += '<p align="center">'; v2 += 'This game is creator owned by real people who have worked very hard to provide the best gaming experience they can.<br><br>'; v2 += 'You can always find the latest version at<br>http://WetBaseMent.WetGenes.com/'; v2 += '</p>'; gfx.set_text_html(this.tf2, 23, 16777215, v2); v2 = ''; v2 += '<p align=\'center\'>WetBaseMent 1.03 (c) Shi+Kriss Daniels Feb 18 2010</p>'; v2 += '<p align=\'center\'>Distributed under the CC Attribution-NoDerivs 2.5 Licence.</p>'; v2 += '<p align=\'center\'>http://creativecommons.org/licenses/by-nd/2.5/</p>'; gfx.set_text_html(this.tf4, 16, 16777215, v2); this.mcmochi = gfx.create_clip(this.mc, null, (800 - 600 * 800 / 640) / 2, (600 - 440 * 600 / 480) / 2, 100 * 800 / 640, 100 * 600 / 480); this.mcmochi.click = gfx.create_clip(this.mcmochi, null); this.waitfordisplay = true; this.mcmochi.dispad = gfx.create_clip(this.mcmochi, null); this.mc.onEnterFrame = this.delegate(this.update, null); this.mc.onEnterFrame(); this.my_server = false; if (_root._url.indexOf('http://wetdike.wetgenes.com') == 0 || (_root._url.indexOf('http://www.wetgenes.com') == 0 || _root._url.indexOf('http://wetgenes.com') == 0)) { this.my_server = true; } _root.kidsafe = false; if (this.server != 'local') { _root.skip_wetimport = false; _root.skip_wetlogin = false; _root.skip_wetscore = false; } var v4 = _root._url.split('/'); v4 = v4[2].split('.'); v4[0] = v4[0].toLowerCase(); v4[1] = v4[1].toLowerCase(); v4[2] = v4[2].toLowerCase(); var v5 = ''; if (!v4[3] && v4[2]) { v5 = v4[1]; } else { if (!v4[2] && v4[1]) { v5 = v4[0]; } } _root.hosted_domain_test = v5; switch (v5) { 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': this.splash = 'splash_ng'; this.splash_link = 'http://www.newgrounds.com/'; break; case 'armorgames': this.splash = 'splash_ag'; this.splash_link = 'http://armorgames.com/'; break; case 'kongregate': this.splash = 'splash_kg'; this.splash_link = 'http://www.kongregate.com/'; } if (!_root.wethidemochiads && !_root.wethideloadingmochiads) { this.mochi = true; } if (this.brandead_link != '') { this.splash = this.brandead_image; this.splash_link = this.brandead_link; } if (this.splash) { this.mcsplash = gfx.create_clip(this.mc, null, 400, 300, 220, 220); this.mcsplash.splash = gfx.add_clip(this.mcsplash, this.splash, null, -300 / 2, -250 / 2); this.mcsplash.onRelease = this.delegate(this.splashclick); this.splash_count = 0; } else { if (!_root.wethidemochiads && !_root.wethideloadingmochiads) { this.mochi_show(); } } }; v1.splashclick = function () { if (this.splash_link) { getURL(this.splash_link, '_blank'); } }; v1.update = function () { _root.stop(); if (this.splash) { if (this.splash_count == 25 * 5) { ++this.splash_count; this.mcsplash._visible = false; this.splash = null; if (!_root.wethidemochiads && !_root.wethideloadingmochiads) { this.mochi_show(); } } else { if (this.splash_count > 25 * 4.5) { ++this.splash_count; this.mcsplash._xscale *= 0.75; this.mcsplash._yscale *= 0.75; this.mcsplash._alpha *= 0.75; } else { if (this.splash_count < 25 * 5) { ++this.splash_count; } } } } else { ++this.frame; } this.loaded_percent = Math.floor(_root.getBytesLoaded() * 100 / _root.getBytesTotal()); if (!_root.wethidemochiads && !_root.wethideloadingmochiads) { this.mcmochi._visible = true; } else { this.mcmochi._visible = false; } gfx.set_text_html(this.tf3, 100, 16777215, '<p align="center"><b>' + Math.floor(this.loaded_percent) + '%</b></p>'); this.dna.tint = Math.floor(256 * this.loaded_percent / 100); if (this.loaded_percent >= 100 && (!this.splash && (!this.intro && !this.mochi))) { this.clean(); } }; v1.clean = function () { delete this.dna; if (this.showloading) { _root.swish.clean(); _root.swish = (new Swish({'style': 'sqr_plode', 'mc': this.mc})).setup(); } this.mc.removeMovieClip(); this.mc = null; this.mcb.removeMovieClip(); this.mcb = null; Stage.removeListener(this); _root.gotoAndStop(2); this.done = true; _root._highquality = this.defuck; }; v1.mochi_started = function () { this.mochi = true; this.waitfordisplay = false; }; v1.mochi_finished = function () { this.mochi = false; }; v1.mochi_show = function () { MochiAd.showInterLevelAd({'id': '0aeed3222e17602f', 'res': '600x440', 'clip': this.mcmochi.dispad, 'ad_started': this.delegate(this.mochi_started), 'ad_finished': this.delegate(this.mochi_finished)}); }; v1.intro_show = function () {}; v1.intro_hide = function () {}; v1.click = function (s) { if (s !== 'text') { } else {} }; ASSetPropFlags(v1, null, 1); v1.brandead_link = ''; v1.brandead_image = 'splash_brandead'; v1.done = false; v1.loaded_percent = 0; v1.frame = 0; v1.mochi = false; } #endinitclip } movieClip 20503 __Packages.PlayAbout { #initclip if (!PlayAbout) { _global.PlayAbout = function (_up) { this.up = _up; }; var v1 = _global.PlayAbout.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.setbutt = function (m, n) { m.onRollOver = this.delegate(this.over, n); m.onRollOut = this.delegate(this.notover, n); m.onReleaseOutside = this.delegate(this.notover, n); m.onRelease = this.delegate(this.click, n); }; v1.setup = function () { _root.popup = this; this.mcs = new Array(); this.tfs = new Array(); this.mcb = gfx.create_clip(_root.mc_popup, null); if (_root.scalar.oy == 600) { this.mc = this.mcb; } else { this.mcb._xscale = Math.floor(100 * (_root.scalar.oy / 600)); this.mcb._yscale = Math.floor(100 * (_root.scalar.oy / 600)); this.mc = gfx.create_clip(this.mcb, null); } this.mcb.cacheAsBitmap = true; gfx.dropshadow(this.mc, 5, 45, 0, 1, 20, 20, 2, 3); this.mc._y = 0; this.mc.dx = 0; this.mc._x = -800; this.done = false; this.steady = false; gfx.clear(this.mc); this.mc.style.out = -16777216; this.mc.style.fill = -2147483648; gfx.draw_box(this.mc, 0, 100 + 16, +16, 600 - 32, 600 - 32); this.tfs[0] = gfx.create_text_html(this.mc, null, 150, 50, 500, 500); var v5 = ''; v5 += '<p align=\'center\'><b>WetBaseMent</b> <font size=\'13\'></font> v1.03 <font size=\'13\'>(c) Shi+Kriss Daniels Feb 18 2010<br>'; v5 += '<a target=\'BOT\' href=\'http://creativecommons.org/licenses/by-nd/2.5/\'>Distributed under the CC Attribution-NoDerivs 2.5 Licence.</a>'; v5 += '</font></p>'; v5 += '<br>'; v5 += '<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>'; this.tfs[0].multiline = true; this.tfs[0].wordWrap = true; this.tfs[0].html = true; this.tfs[0].selectable = false; gfx.set_text_html(this.tfs[0], 22, 16777215, v5); this.mcs[0] = gfx.create_clip(this.mc, null, 0, 570 - 220 * 800 / 640, 100 * 800 / 640, 100 * 800 / 640); this.setbutt(this.mcs[0], 'wetcoma'); this.mcs[2] = gfx.add_clip(this.mc, 'auth_kriss', null, 300, 570 - 220 * 800 / 640 - 100, 100, 100); this.setbutt(this.mcs[2], 'kriss'); this.mcs[3] = gfx.add_clip(this.mc, 'auth_shi', null, 400, 570 - 220 * 800 / 640 - 100, 100, 100); this.setbutt(this.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}); this.mcs[1] = null; this.show_loaded(); this.thunk(); this.update_do = this.delegate(this.update, null); MainStatic.update_add(_root.updates, this.update_do); _root.poker.clear_clicks(); }; v1.clean = function () { if (_root.popup != this) { return undefined; } MainStatic.update_remove(_root.updates, this.update_do); this.update_do = null; this.mcb.removeMovieClip(); this.mc.removeMovieClip(); _root.popup = null; Mouse.removeListener(this); _root.poker.clear_clicks(); }; v1.show_loaded = function () { if (this.mcs[1] == null) { if (_root.bmc.isloaded('wetcoma')) { this.mcs[1] = _root.bmc.create(this.mcs[0], 'wetcoma', null); } } }; v1.thunk = function () {}; v1.over = function (s) { switch (s) { case 'wetcoma': _root.poker.ShowFloat('Read this whitarded comic and less of the same at <b>4lfa.com</b> : <font size=\'13\'>Helping to make tomorrow seem more like yesterday.</font>', 25 * 10); break; case 'kriss': _root.poker.ShowFloat('Kriss made teh top secret codes.<br>Click to see his site.', 25 * 10); break; case 'shi': _root.poker.ShowFloat('Shi hates you.<br>Click here to see why.', 25 * 10); } }; v1.notover = function (s) { _root.poker.ShowFloat(null, 0); }; v1.click = function (s) { switch (s) { case 'wetcoma': getURL('http://4lfa.com', '_blank'); break; case 'kriss': getURL('http://XIXs.com', '_blank'); break; case 'shi': getURL('http://esyou.com', '_blank'); } }; v1.update = function () { this.show_loaded(); if (_root.popup == this && _root.poker.anykey) { if (this.steady) { this.done = true; this.mc.dx = _root.scalar.ox; } } if (_root.popup != this || _root.pause) { return undefined; } this.mc._x += (this.mc.dx - this.mc._x) / 4; if ((this.mc._x - this.mc.dx) * (this.mc._x - this.mc.dx) < 16 * 16) { this.steady = true; if (this.done) { this.clean(); } } else { this.steady = false; } }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20504 __Packages.WetBaseMentLevel_level_03 { #initclip if (!WetBaseMentLevel_level_03) { _global.WetBaseMentLevel_level_03 = function () {}; var v1 = _global.WetBaseMentLevel_level_03.prototype; ASSetPropFlags(v1, null, 1); v1.img_bak = 'level_03_bak'; v1.img_for = 'level_03_for'; v1.name = 'level_03'; v1.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,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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, 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]; } #endinitclip } movieClip 20505 __Packages.WetBaseMentLevel_level_07 { #initclip if (!WetBaseMentLevel_level_07) { _global.WetBaseMentLevel_level_07 = function () {}; var v1 = _global.WetBaseMentLevel_level_07.prototype; ASSetPropFlags(v1, null, 1); v1.img_bak = 'level_07_bak'; v1.img_for = 'level_07_for'; v1.name = 'level_07'; v1.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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, 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, 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]; } #endinitclip } movieClip 20506 __Packages.MochiAd { #initclip if (!MochiAd) { _global.MochiAd = function () {}; var v1 = _global.MochiAd.prototype; _global.MochiAd.getVersion = function () { return '2.5'; }; _global.MochiAd.showPreGameAd = function (options) { var v2 = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}}; options = MochiAd._parseOptions(options, v2); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v3 = 11000; var v4 = options.ad_timeout; delete options.ad_timeout; var v5 = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v6 = MochiAd._getRes(options); var v7 = v6[0]; var v8 = v6[1]; mc._x = v7 * 0.5; mc._y = v8 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v7 * -0.5; chk._y = v8 * -0.5; var v9 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v9._visible = false; delete options.no_progress_bar; } else { v9._x = 10; v9._y = v8 - 20; } var v10 = options.color; delete options.color; var v11 = options.background; delete options.background; var v12 = options.outline; delete options.outline; var v13 = v9.createEmptyMovieClip('_outline', 1); v13.beginFill(v11); v13.moveTo(0, 0); v13.lineTo(v7 - 20, 0); v13.lineTo(v7 - 20, 10); v13.lineTo(0, 10); v13.lineTo(0, 0); v13.endFill(); var v14 = v9.createEmptyMovieClip('_inside', 2); v14.beginFill(v10); v14.moveTo(0, 0); v14.lineTo(v7 - 20, 0); v14.lineTo(v7 - 20, 10); v14.lineTo(0, 10); v14.lineTo(0, 0); v14.endFill(); v14._xscale = 0; var v15 = v9.createEmptyMovieClip('_outline', 3); v15.lineStyle(0, v12, 100); v15.moveTo(0, 0); v15.lineTo(v7 - 20, 0); v15.lineTo(v7 - 20, 10); v15.lineTo(0, 10); v15.lineTo(0, 0); chk.ad_msec = v3; chk.ad_timeout = v4; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = v5; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v3 = this.mc._mochiad_wait; v3.server_control = true; v3.started = getTimer(); v3.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v2 = this._parent._parent; var v3 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v5 = false; var v6 = v2.getBytesTotal(); var v7 = v2.getBytesLoaded(); var v8 = 100.0 * v7 / v6; var v9 = 100.0 * v4 / chk.ad_msec; var v10 = this._mochiad_bar._inside; var v11 = Math.min(100.0, Math.min(v8 || 0, v9)); v11 = Math.max(this.last_pcnt, v11); this.last_pcnt = v11; v10._xscale = v11; options.ad_progress(v11); if (sendHostProgress) { clip._mochiad.lc.send(clip._mochiad._containerLCName, 'notify', {'id': 'hostLoadPcnt', 'pcnt': v8}); if (v8 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v12 = v3.getBytesTotal(); if (v12 > 0 || typeof v12 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout && v8 == 100) { options.ad_failed(); v5 = true; } } } if (v4 > chk.ad_msec) { v5 = true; } if (v6 > 0 && (v7 >= v6 && v5)) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; _global.MochiAd.showClickAwayAd = function (options) { var v2 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showClickAwayAd', 'res': '300x250', 'no_bg': true, 'ad_started': function () {}, 'ad_finished': function () {}, 'ad_loaded': function (width, height) {}, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_skipped': function () {}}; options = MochiAd._parseOptions(options, v2); var clip = options.clip; var v3 = options.ad_timeout; delete options.ad_timeout; if (!MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v4 = MochiAd._getRes(options); var v5 = v4[0]; var v6 = v4[1]; mc._x = v5 * 0.5; mc._y = v6 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_timeout = v3; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; var v7 = false; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; chk.onEnterFrame = function () { var v2 = this._parent._mochiad_ctr; var v3 = getTimer() - this.started; var v4 = false; if (!chk.showing) { var v5 = v2.getBytesTotal(); if (v5 > 0 || typeof v5 == 'undefined') { v4 = true; chk.showing = true; chk.started = getTimer(); } else { if (v3 > chk.ad_timeout) { options.ad_failed(); v4 = true; } } } if (v4) { delete this.onEnterFrame; } }; }; _global.MochiAd.showInterLevelAd = function (options) { var v2 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}}; options = MochiAd._parseOptions(options, v2); var clip = options.clip; var v3 = 11000; var v4 = options.ad_timeout; delete options.ad_timeout; var v5 = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var v6 = clip._mochiad; v6.onUnload = function () { options.ad_finished(); }; var v7 = MochiAd._getRes(options); var v8 = v7[0]; var v9 = v7[1]; v6._x = v8 * 0.5; v6._y = v9 * 0.5; var chk = v6.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_msec = v3; chk.ad_timeout = v4; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = v5; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; MochiAd.unload(v3); delete this.onEnterFrame; } }; v6.lc.adLoaded = options.ad_loaded; v6.lc.adSkipped = options.ad_skipped; v6.lc.adjustProgress = function (msec) { var v3 = this.mc._mochiad_wait; v3.server_control = true; v3.started = getTimer(); v3.ad_msec = msec - 250; }; v6.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; v6.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v2 = this._parent._mochiad_ctr; var v3 = getTimer() - this.started; var v4 = false; if (!chk.showing) { var v5 = v2.getBytesTotal(); if (v5 > 0 || typeof v5 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v3 > chk.ad_timeout) { options.ad_failed(); v4 = true; } } } if (v3 > chk.ad_msec) { v4 = true; } if (v4) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; }; _global.MochiAd.showPreloaderAd = function (options) { trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0'); MochiAd.showPreGameAd(options); }; _global.MochiAd.showTimedAd = function (options) { trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0'); MochiAd.showInterLevelAd(options); }; _global.MochiAd._allowDomains = function (server) { var v3 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v3); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v3); } } return v3; }; _global.MochiAd.load = function (options) { var v3 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'}; options = MochiAd._parseOptions(options, v3); options.swfv = options.clip.getSWFVersion() || 6; options.mav = MochiAd.getVersion(); var v4 = options.clip; if (!MochiAd._isNetworkAvailable()) { return null; } if (v4._mochiad_loaded) { return null; } var v5 = options.depth; delete options.depth; var v6 = v4.createEmptyMovieClip('_mochiad', v5); var v7 = MochiAd._getRes(options); options.res = v7[0] + 'x' + v7[1]; options.server += options.id; delete options.id; v4._mochiad_loaded = true; var v8 = v6.createEmptyMovieClip('_mochiad_ctr', 1); for (var k in options) { v8[k] = options[k]; } var v9 = v8.server; delete v8.server; var v10 = MochiAd._allowDomains(v9); v6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var v11 = new LocalConnection(); var v12 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v11.mc = v6; v11.name = v12; v11.hostname = v10; v11.allowDomain = function (d) { return true; }; v11.allowInsecureDomain = v11.allowDomain; v11.connect(v12); v6.lc = v11; v8.lc = v12; v8.st = getTimer(); v8.loadMovie(v9 + '.swf', 'POST'); return v6; }; _global.MochiAd.unload = function (clip) { if (typeof clip == 'undefined') { clip = _root; } if (clip.clip && clip.clip._mochiad) { clip = clip.clip; } if (!clip._mochiad) { return false; } if (clip._mochiad._containerLCName != undefined) { clip._mochiad.lc.send(clip._mochiad._containerLCName, 'notify', {'id': 'unload'}); } clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return true; }; _global.MochiAd._isNetworkAvailable = function () { if (System.security) { var v2 = System.security; if (v2.sandboxType == 'localWithFile') { return false; } } return true; }; _global.MochiAd._getRes = function (options) { var v3 = options.clip.getBounds(); var v4 = 0; var v5 = 0; if (typeof options.res != 'undefined') { var v6 = options.res.split('x'); v4 = _global.parseFloat(v6[0]); v5 = _global.parseFloat(v6[1]); } else { v4 = v3.xMax - v3.xMin; v5 = v3.yMax - v3.yMin; } if (v4 == 0 || v5 == 0) { v4 = Stage.width; v5 = Stage.height; } return [v4, v5]; }; _global.MochiAd._parseOptions = function (options, defaults) { var v4 = {}; for (var k in defaults) { v4[k] = defaults[k]; } if (options) { for (var k in options) { v4[k] = options[k]; } } if (_root.mochiad_options) { var v5 = _root.mochiad_options.split('&'); var v6 = 0; goto 9390; for (;;) { ++v6; label 9390: if (v6 >= v5.length) break; var v7 = v5[v6].split('='); v4[_global.unescape(v7[0])] = _global.unescape(v7[1]); } } if (v4.id == 'test') { trace('[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!'); } return v4; }; _global.MochiAd.rpc = function (clip, callbackID, arg) { switch (arg.id) { case 'setValue': MochiAd.setValue(clip, arg.objectName, arg.value); break; case 'getValue': var v5 = MochiAd.getValue(clip, arg.objectName); clip._mochiad.lc.send(clip._mochiad._containerLCName, 'rpcResult', callbackID, v5); break; case 'runMethod': var v6 = MochiAd.runMethod(clip, arg.method, arg.args); clip._mochiad.lc.send(clip._mochiad._containerLCName, 'rpcResult', callbackID, v6); break; default: trace('[mochiads rpc] unknown rpc id: ' + arg.id); } }; _global.MochiAd.setValue = function (base, objectName, value) { var v5 = objectName.split('.'); var v6 = 0; goto 9945; for (;;) { ++v6; label 9945: if (v6 >= v5.length - 1) break; if (base[v5[v6]] == undefined || base[v5[v6]] == null) { return undefined; } base = base[v5[v6]]; } base[v5[v6]] = value; }; _global.MochiAd.getValue = function (base, objectName) { var v4 = objectName.split('.'); var v5 = 0; goto 10144; for (;;) { ++v5; label 10144: if (v5 >= v4.length - 1) break; if (base[v4[v5]] == undefined || base[v4[v5]] == null) { return undefined; } base = base[v4[v5]]; } return base[v4[v5]]; }; _global.MochiAd.runMethod = function (base, methodName, argsArray) { var v5 = methodName.split('.'); var v6 = 0; goto 10350; for (;;) { ++v6; label 10350: if (v6 >= v5.length - 1) break; if (base[v5[v6]] == undefined || base[v5[v6]] == null) { return undefined; } base = base[v5[v6]]; } if (typeof base[v5[v6]] == 'function') { return base[v5[v6]].apply(base, argsArray); } else { return undefined; } }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20507 __Packages.WetBaseMentChoose { #initclip if (!WetBaseMentChoose) { _global.WetBaseMentChoose = function (_up) { this.up = _up; }; var v1 = _global.WetBaseMentChoose.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.rnd_seed = function (n) { this.rnd_num = n & 65535; }; v1.rnd = function () { this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537; return this.rnd_num; }; v1.days_to_string = function (days) { var v3 = new Date(); v3.setTime(days * 24 * 60 * 60 * 1000); var v4 = alt.Sprintf.format('%04d%02d%02d', v3.getFullYear(), v3.getMonth() + 1, v3.getDate()); return v4; }; v1.setup = function () { this.mc = gfx.create_clip(this.up.mc, null); this.frame = 0; this.mc_levels = []; var v3 = 100; var v4 = 100 - 20; var v2 = 1; goto 1498; for (;;) { ++v2; label 1498: if (v2 > 10) break; this.mc_levels[v2] = gfx.create_clip(this.mc, null, v3, v4, 80, 80); this.mc_levels[v2].onRollOver = this.delegate(this.mc_over, this.mc_levels[v2]); this.mc_levels[v2].onRollOut = this.delegate(this.mc_out, this.mc_levels[v2]); this.mc_levels[v2].onRelease = this.delegate(this.mc_click, this.mc_levels[v2]); this.mc_levels[v2].id = v2; gfx.add_clip(this.mc_levels[v2], this.up.levels[v2].img_bak, null, -80, -60, 20, 20); this.mc_levels[v2].tf = gfx.create_text_html(this.mc_levels[v2], null, -100, 60, 200, 100); gfx.set_text_html(this.mc_levels[v2].tf, 24, 16777215, '<p align="center">' + this.up.levels[v2].name + '</p>'); v3 += 200; if (v3 > 700) { v3 = 100; v4 += 150; } } var v5 = gfx.create_clip(this.mc, null, 800 - 200, 600 - 100, 150, 150); this.mc_tard = v5; v5.id = 'tard'; v5.onRollOver = this.delegate(this.mc_over, v5); v5.onRollOut = this.delegate(this.mc_out, v5); v5.onRelease = this.delegate(this.mc_click, v5); this.minion = new Minion({'mc': v5}); this.minion.setup(this.up.tards[this.up.tard_idx].img1, 50, 100); v5.tf = gfx.create_text_html(v5, 2, -100, 0, 200, 100); gfx.set_text_html(v5.tf, 24, 16777215, '<p align="center">' + this.up.tards[this.up.tard_idx].name + '</p>'); v5 = gfx.create_clip(this.mc, null, 100, 600 - 100, 100, 100); this.mc_skill = v5; v5.id = 'skill'; v5.onRollOver = this.delegate(this.mc_over, v5); v5.onRollOut = this.delegate(this.mc_out, v5); v5.onRelease = this.delegate(this.mc_click, v5); v5.tf = gfx.create_text_html(v5, 2, -100, 0, 400, 100); gfx.set_text_html(v5.tf, 36, 16777215, '<p align="center">Difficulty : ' + this.up.play.gameskill + '</p>'); v2 = 1; goto 2746; for (;;) { ++v2; label 2746: if (v2 > 10) break; var v6 = this.up.levels[v2]; gfx.set_text_html(this.mc.date, 14, 16777215, '<p align="center">' + this.days_to_string(v6.game_seed) + '</p>'); gfx.set_text_html(this.mc.score, 16, 16777215, '<p align="center">' + (11500 + v2) + '</p>'); } }; v1.clean = function () { this.mc_out(null); this.mc.removeMovieClip(); }; v1.mc_over = function (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 v3 = this.up.levels[Number(t.id)]; _root.poker.ShowFloat('Click to play ' + v3.name + '. You can use arrow keys or the mouse to move around the level.', 25 * 10); } } }; v1.mc_out = function (t) { _root.poker.ShowFloat(null, 0); }; v1.mc_click = function (t) { if (_root.popup) { return undefined; } if (t.id == 'skill') { if (this.up.play.gameskill == 'easy') { this.up.play.gameskill = 'hard'; } else { if (this.up.play.gameskill == 'hard') { this.up.play.gameskill = 'easy'; } } gfx.set_text_html(this.mc_skill.tf, 36, 16777215, '<p align="center">Difficulty : ' + this.up.play.gameskill + '</p>'); } else { if (t.id == 'tard') { ++this.up.tard_idx; if (this.up.tard_idx >= this.up.tards.length) { this.up.tard_idx = 1; } this.minion.setsoul(this.up.tards[this.up.tard_idx].img1); gfx.set_text_html(this.mc_tard.tf, 24, 16777215, '<p align="center">' + this.up.tards[this.up.tard_idx].name + '</p>'); } else { this.up.level_idx = t.id; this.up.state_next = 'play'; } } }; v1.update = function () { ++this.frame; var v2 = Math.floor(this.frame / 6) % 6; this.minion.display('idle', v2); }; ASSetPropFlags(v1, null, 1); v1.rnd_num = 0; } #endinitclip } movieClip 20508 __Packages.WTF { #initclip if (!WTF) { _global.WTF = function (stropts) { this.show_nowplaying = false; this.scale_800x600 = false; if (stropts) { var v5 = stropts.split(','); var v3 = 0; goto 1115; for (;;) { ++v3; label 1115: if (v3 >= v5.length) break; switch (v5[v3]) { break; case 'show_nowplaying': case 'scale_800x600': this.scale_800x600 = true; continue; } } } this.v = []; this.v.name = 'WetBaseMent'; this.v.site = ''; this.v.number = '1.03'; this.v.stamp = 'Feb 18 2010'; this.v.stamp_number = '20100218'; this.v.root = ''; System.security.allowDomain(_root._url); System.security.allowDomain((_root._url.split('/'))[2]); System.security.allowDomain('data.wetgenes.com'); System.security.allowDomain('s3.wetgenes.com'); System.security.allowDomain('www.wetgenes.com'); System.security.allowDomain('swf.wetgenes.com'); System.security.allowDomain('www.wetgenes.local'); System.security.allowDomain('swf.wetgenes.local'); System.security.allowDomain('*'); System.security.loadPolicyFile('http://swf.wetgenes.com/crossdomain.xml'); System.security.loadPolicyFile('http://data.wetgenes.com/crossdomain.xml'); this.mc_import = gfx.create_clip(_root, 16384 + 32 - 18); if (_root.host == 'swf.wetgenes.local') { this.import_swf_name = 'http://swf.wetgenes.local/swf/WTF_import.swf?hash=' + _global.escape(_root.hash); } else { this.import_swf_name = 'http://swf.wetgenes.com/swf/WTF_import.swf?hash=' + _global.escape(_root.hash); } this.__com_mochibot__('b751af38', _root, 10301); }; var v1 = _global.WTF.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.get_width = function () { if (this.scale_800x600) { return 800; } else { return Stage.width; } }; v1.get_height = function () { if (this.scale_800x600) { return 600; } else { return Stage.height; } }; v1.logindone = function () { if (!this.donelogindone) { if (!_root.skip_wetimport) { if (_root.login.opt_chat) { this.mc_import.loadMovie(this.import_swf_name); this.loaded_import = true; } } this.donelogindone = true; } else { if (!_root.skip_wetimport) { if (_root.login.opt_chat) { if (!this.loaded_import) { this.mc_import.loadMovie(this.import_swf_name); this.loaded_import = true; } } else {} } } }; v1.__com_mochibot__ = function (swfid, mc, lv) { var v12 = '__mochibot__'; var v13 = 'mochibot.com'; var v6 = _global ? _global : _level0._root; if (v6[v12 + swfid]) { return v6[v12 + swfid]; } var v7 = System.security; var v5 = mc._root.getSWFVersion; var v8 = v5 ? mc.getSWFVersion() : (_global ? 6 : 5); if (!v7) { v7 = {}; } var v9 = v7.sandboxType; if (v9 == 'localWithFile') { return null; } v5 = v7.allowDomain; if (v5) { v7.allowDomain(v13); } v5 = v7.allowInsecureDomain; if (v5) { v7.allowInsecureDomain(v13); } var v10 = 'http://' + v13 + '/my/core.swf?mv=5&fv=' + v8 + '&v=' + _global.escape(/:$version) + '&swfid=' + _global.escape(swfid) + '&l=' + lv + '&f=' + mc + (v9 ? '&sb=' + v9 : ''); if (v8 <= 6) { lv = v6[v12 + 'level'] ? v6[v12 + 'level'] + 1 : lv; v6[v12 + 'level'] = lv; var v11 = mc.createEmptyMovieClip(v12 + swfid, lv); v11.loadMovie(v10); return v11; } lv = mc.getNextHighestDepth(); v6[v12 + 'level'] = lv; var v11 = mc.createEmptyMovieClip(v12 + swfid, lv); v11.loadMovie(v10); return v11; }; ASSetPropFlags(v1, null, 1); v1.corner = 'BR'; v1.ontarget = false; v1.donelogindone = false; v1.loaded_import = false; } #endinitclip } movieClip 20509 __Packages.WetBaseMentLevel_level_10 { #initclip if (!WetBaseMentLevel_level_10) { _global.WetBaseMentLevel_level_10 = function () {}; var v1 = _global.WetBaseMentLevel_level_10.prototype; ASSetPropFlags(v1, null, 1); v1.img_bak = 'level_10_bak'; v1.img_for = 'level_10_for'; v1.name = 'level_10'; v1.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, 254, 0, 17, 0, 0, 0, 0, 0, 0, 17, 0, 0, 254, 0, 17, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 255, 0, 0, 0, 1, 1, 0, 0, 220, 0, 0, 0, 0, 17, 17, 0, 0, 0, 0, 0, 235, 0, 0, 0, 0, 17, 17, 0, 0, 0, 0, 0, 0, 237, 0, 0, 254, 0, 0, 17, 17, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 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, 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]; } #endinitclip } movieClip 20510 __Packages.wetDNA2 { #initclip if (!wetDNA2) { _global.wetDNA2 = function (master, name, level, color) { var v7 = this; v7.mc2 = master.createEmptyMovieClip(name, level); v7.mc = v7.mc2.createEmptyMovieClip('dna', 0); v7.mc._x = 128; v7.mc._y = 64; gfx.blurglow(v7.mc, 2, 2, 1, 255, 0.5, 8, 8, 2, 3); v7.mc2.t = this; v7.color = 255; v7.thunked = false; v7.frame = 0; v7.xyz = new Array(32 * 2 * 64 * 2); v7.removeMC = this.removeMC; v7.update = this.update; v7.draw = this.draw; v7.thunk = this.thunk; v7.mc2.onEnterFrame = this.onEnterFrame; this.bmps = []; this.tinted = []; var v6 = 0; goto 820; for (;;) { ++v6; label 820: if (v6 >= 32) break; v7.mc.clear(); v7.thunk(); v7.draw(); v7.update(); var v8 = new flash.display.BitmapData(256, 128, true, 0); v8.draw(v7.mc2); this.bmps[v6] = v8; this.tinted[v6] = 0; } v7.mc.removeMovieClip(); }; var v1 = _global.wetDNA2.prototype; v1.thunk = function () { var v2 = this; if (!v2.thunked) { var v4 = 2 * 64 * 2 * v2.frame; var v3 = 0; var v9 = 0; goto 1175; for (;;) { v9 += Math.PI; label 1175: if (v9 > Math.PI) break; var v10 = 0; goto 1226; for (;;) { ++v10; label 1226: if (v10 > 63) break; var v5 = v9 + Math.PI * (v10 + v2.frame) / 32; var v6 = -256 + 4 + v10 * 8; var v7 = Math.sin(-v5) * 128; var v8 = 1 - (Math.cos(-v5) * 128 + 128) / 1536; v2.xyz[v4 + v3 + v10 * 2 + 0] = v6 * v8 * 0.46; v2.xyz[v4 + v3 + v10 * 2 + 1] = v7 * v8 * 0.3; } v3 = 64 * 2; } if (v2.frame == 31) { v2.thunked = true; } } }; v1.draw = function () { var v2 = this; var v3 = 2 * 64 * 2 * v2.frame; v2.mc.lineStyle(8, v2.color, 50); v2.mc.moveTo(v2.xyz[v3 + 0], v2.xyz[v3 + 1]); var v4 = 2; goto 1802; for (;;) { v4 += 2; label 1802: if (v4 > 128 - 2) break; v2.mc.lineTo(v2.xyz[v3 + v4 + 0], v2.xyz[v3 + v4 + 1]); } v2.mc.moveTo(v2.xyz[v3 + 128 + 0], v2.xyz[v3 + 128 + 1]); var v5 = 128 + 2; goto 2021; for (;;) { v5 += 2; label 2021: if (v5 > 256 - 2) break; v2.mc.lineTo(v2.xyz[v3 + v5 + 0], v2.xyz[v3 + v5 + 1]); } v2.mc.lineStyle(4, v2.color, 100); v2.mc.moveTo(v2.xyz[v3 + 0], v2.xyz[v3 + 1]); var v6 = 2; goto 2254; for (;;) { v6 += 2; label 2254: if (v6 > 128 - 2) break; v2.mc.lineTo(v2.xyz[v3 + v6 + 0], v2.xyz[v3 + v6 + 1]); } v2.mc.moveTo(v2.xyz[v3 + 128 + 0], v2.xyz[v3 + 128 + 1]); var v7 = 128 + 2; goto 2473; for (;;) { v7 += 2; label 2473: if (v7 > 256 - 2) break; v2.mc.lineTo(v2.xyz[v3 + v7 + 0], v2.xyz[v3 + v7 + 1]); } v2.mc.lineStyle(8, v2.color, 50); var v8 = 4; goto 2646; for (;;) { v8 += 8; label 2646: if (v8 >= 128 - 4) break; v2.mc.moveTo(v2.xyz[v3 + v8 + 0], v2.xyz[v3 + v8 + 1]); v2.mc.lineTo(v2.xyz[v3 + 128 + v8 + 0], v2.xyz[v3 + 128 + v8 + 1]); } v2.mc.lineStyle(4, v2.color, 100); var v9 = 4; goto 2908; for (;;) { v9 += 8; label 2908: if (v9 > 128 - 4) break; v2.mc.moveTo(v2.xyz[v3 + v9 + 0], v2.xyz[v3 + v9 + 1]); v2.mc.lineTo(v2.xyz[v3 + 128 + v9 + 0], v2.xyz[v3 + 128 + v9 + 1]); } }; v1.update = function () { var v2 = this; v2.frame += 1; if (v2.frame == 32) { v2.frame = 0; } }; v1.removeMC = function () { var v2 = this; v2.mc.removeMovieClip(); }; v1.do_tint = function () { var v2 = new flash.geom.Rectangle(this.tinted[this.frame], 0, this.tint - this.tinted[this.frame], 128); var v3 = new flash.geom.ColorTransform(0, 0, 0, 1, 0, 128, 255, 0); this.bmps[this.frame].colorTransform(v2, v3); this.tinted[this.frame] = this.tint; }; v1.onEnterFrame = function () { var v2 = this; if (!v2._visible) { return undefined; } v2.t.do_tint(); v2.t.mc2.attachBitmap(v2.t.bmps[v2.t.frame], 0, 'auto', true); v2.t.frame += 1; if (v2.t.frame == 32) { v2.t.frame = 0; } }; ASSetPropFlags(v1, null, 1); v1.tint = 0; v1.frame = 0; } #endinitclip } movieClip 20511 __Packages.WetBaseMentTitle { #initclip if (!WetBaseMentTitle) { _global.WetBaseMentTitle = function (_up, _state, _play) { this.state_last = null; this.state = null; this.state_next = null; this.up = _up; this.state_next = _state; this.dat = new WetBaseMentTitleDat(this, _play); this.score = 0; this.mc_base = gfx.create_clip(this.up.mc, null); this.talky_setup(); this.snapmc = gfx.create_clip(this.up.mc, null); }; var v1 = _global.WetBaseMentTitle.prototype; v1.delegate = function (f, d, i) { return com.dynamicflash.utils.Delegate.create(this, f, d, i); }; v1.rnd_seed = function (n) { this.rnd_num = n & 65535; }; v1.rnd = function () { this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537; return this.rnd_num; }; v1.update_display = function () { this.dat.update_display(); }; v1.setup = function () { if (this.state_next != null) { this.state_last = this.state; this.state = this.state_next; this.state_next = null; } this.state_split = this.state.split('_'); this.state_file = this.state_split[0]; this.state_room = this.state_split[1]; switch (this.state_file) { case 'title': this.preload = false; this.file_name = 'title'; this.file_lines = WetBaseMentTitle.title_lines; break; case 'levels': this.preload = false; this.file_name = 'levels'; this.file_lines = WetBaseMentTitle.levels_lines; break; case 'end1': this.preload = false; this.file_name = 'end1'; this.file_lines = WetBaseMentTitle.end1_lines; break; case 'end2': this.preload = false; this.file_name = 'end2'; this.file_lines = WetBaseMentTitle.end2_lines; break; case 'end3': this.preload = false; this.file_name = 'end3'; this.file_lines = WetBaseMentTitle.end3_lines; break; case 'zoo': this.preload = false; this.file_name = 'zoo'; this.file_lines = WetBaseMentTitle.zoo_lines; } this.dat.setup(); this.dat.saves_reset_temps(); if (!this.preload) { this.mc.removeMovieClip(); this.mc = gfx.create_clip(this.mc_base, null); this.mcs = new Array(); this.parallax = new Array(); } var v8 = 0; var v9 = null; this.mcs_max = this.file_lines.length - 1; var v2 = 0; goto 2840; for (;;) { ++v2; label 2840: if (v2 >= this.mcs_max) break; var v3 = this.file_lines[v2]; var v4 = v3.split(','); if (v4[0] == '') { v4[0] = null; } if (v4[1] == '') { v4[1] = null; } if (v4[2] == '') { v4[2] = null; } var v10 = v4[0]; var v11 = v10.split('_'); if (!this.preload) { if (v4[1] || v9 == null) { v9 = gfx.create_clip(this.mc, null, 400, 300); if (v4[1]) { v9.zoom = v4[1] / 100; } else { v9.zoom = 1; } this.parallax[v8++] = v9; } } if (v11[2] != null && v11[2] != '1') { } else { if (!this.preload) { if (v10 == 'cage1' || v10 == 'minion1') { var v12 = gfx.create_clip(v9, null, 0, 0); this.mcs[v2] = gfx.add_clip(v12, this.file_name, null, -400, -300); this.mcs[v2].twistme = v12; } else { this.mcs[v2] = gfx.add_clip(v9, this.file_name, null, -400, -300); } this.mcs[v2].gotoAndStop(v2 + 1); this.mcs[v2].baseframe = v2 + 1; this.mcs[v2].active = true; this.mcs[v2].cacheAsBitmap = true; this.mcs[v2].onRelease = this.delegate(this.click, this.mcs[v2]); this.mcs[v2].onRollOver = this.delegate(this.hover_on, this.mcs[v2]); this.mcs[v2].onRollOut = this.delegate(this.hover_off, this.mcs[v2]); this.mcs[v2].onReleaseOutside = this.delegate(this.hover_off, this.mcs[v2]); this.mcs[v2].tabEnabled = false; } } v10; this.mcs[v2].idx = v2; this.mcs[v2].nam = v10; this.mcs[v2].nams = v11; this.mcs[v2]._visible = false; this.mcs[v4[0]] = this.mcs[v2]; } this.update_display(); Mouse.addListener(this); this.update(); if (this.up.swish) { this.up.swish.setup(this.mc_base, this.snapmc); } }; v1.clean = function () { this.dat.clean(); Mouse.removeListener(this); this.mc.removeMovieClip(); this.mc = null; }; v1.onMouseDown = function () { if (_root.popup) { return undefined; } this.talky_hide(); }; v1.onMouseUp = function () { if (_root.popup) { return undefined; } }; v1.hover_off = function (me) { if (_root.popup) { return undefined; } if (this.over == me) { this.dat.do_this(me, 'off'); this.over = null; } }; v1.hover_on = function (me) { if (_root.popup) { return undefined; } if (this.over != me) { this.dat.do_this(me, 'on'); this.over = me; } }; v1.click = function (me) { if (_root.popup) { return undefined; } this.dat.do_this(me, 'click'); }; v1.update = function () { if (_root.popup) { return undefined; } if (this.up.swish) { if (!this.up.swish.update()) { this.up.swish.clean(); this.up.swish = null; } } if (this.state_next != null) { if (this.state) { this.clean(); } this.state_last = this.state; this.state = this.state_next; this.state_next = null; if (this.state) { this.setup(); } } this.dat.update(); var v8 = this.mc._xmouse; var v9 = this.mc._ymouse; v8 = (v8 - 400) / 400; v9 = (v9 - 300) / 300; if (v8 < -1) { v8 = -1; } if (v8 > 1) { v8 = 1; } if (v9 < -1) { v9 = -1; } if (v9 > 1) { v9 = 1; } var v3 = 0; goto 5024; for (;;) { ++v3; label 5024: if (v3 >= this.parallax.length) break; var v2 = this.parallax[v3]; v2._xscale = v2.zoom * 100; v2._yscale = v2._xscale; v2._x = 400 + -400 * (v2.zoom - 1) * v8; v2._y = 300 + -300 * (v2.zoom - 1) * v9; } this.talky_update(); }; v1.do_str = function (str) { this.up.do_str(str); str; }; v1.talky_setup = function () { this.talky_mc = gfx.create_clip(this.up.mc, null, 400, 200); this.talky_tf = gfx.create_text_html(this.talky_mc, null, -250, -150, 500, 300); this.talky_hiden(); }; v1.talky_hiden = function () { this.talky_mc._xscale = 0; this.talky_mc._yscale = 0; this.talky_state = 'hiden'; this.talky_mc._visible = false; }; v1.talky_display = function (str) { this.talky_mc._visible = true; this.talky_mc._xscale = 0; this.talky_mc._yscale = 0; this.talky_state = 'show'; gfx.set_text_html(this.talky_tf, 32, 0, '<b>' + str + '</b>'); gfx.clear(this.talky_mc); this.talky_mc.style.out = -1056964609; this.talky_mc.style.fill = -1056964609; this.talky_tf._x = -(this.talky_tf.textWidth / 2); this.talky_tf._y = -(this.talky_tf.textHeight / 2); this.talky_mc.topy = 50 - (this.talky_tf._y - 16) * 1; this.talky_mc.midy = 50 - (this.talky_tf._y - 16) * 2; this.talky_mc.boty = 50 - (this.talky_tf._y - 16) * 3; this.talky_mc._y = this.talky_mc.topy; gfx.draw_rounded_rectangle(this.talky_mc, 16, 16, 0, -(this.talky_tf.textWidth / 2) - 24, -(this.talky_tf.textHeight / 2) - 16, this.talky_tf.textWidth + 48, this.talky_tf.textHeight + 32 + 8); }; v1.talky_update = function () { if (this.talky_state == 'show') { this.talky_mc._xscale += 20; this.talky_mc._yscale += 20; if (this.talky_mc._xscale >= 100) { this.talky_mc._xscale = 100; this.talky_mc._yscale = 100; this.talky_state = 'shown'; } } else { if (this.talky_state == 'hide') { this.talky_mc._xscale -= 20; this.talky_mc._yscale -= 20; if (this.talky_mc._xscale <= 0) { this.talky_hiden(); } } } if (this.mc._ymouse > this.talky_mc.midy) { this.talky_mc._y = this.talky_mc.topy; } else { this.talky_mc._y = this.talky_mc.boty; } }; v1.talky_hide = function () { if (this.talky_state != 'hiden') { this.talky_state = 'hide'; } }; v1.talky_clean = function () { this.talky_mc.removeMovieClip(); }; ASSetPropFlags(v1, null, 1); v1.saves = null; v1.rnd_num = 0; v1.preload = false; _global.WetBaseMentTitle.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', '']; _global.WetBaseMentTitle.levels_lines = ['background', 'level01', 'level02', 'level03', 'level04', 'level05', 'level06', 'level07', 'level08', 'level09', 'level10', 'mainmenu', 'easy', 'hard', 'minion', 'overlay', '']; _global.WetBaseMentTitle.end1_lines = ['background', 'minion1', 'overground', '']; _global.WetBaseMentTitle.end2_lines = ['background', 'minion1', 'overground', '']; _global.WetBaseMentTitle.end3_lines = ['background', 'minion1', 'cage1', 'overground', '']; _global.WetBaseMentTitle.zoo_lines = ['background', 'floater_back', 'floater_avatar', 'floater_start', '']; } #endinitclip } movieClip 20512 __Packages.com.dynamicflash.utils.Delegate { #initclip if (!com.dynamicflash.utils.Delegate) { if (!com) { _global.com = new Object(); } if (!com.dynamicflash) { _global.com.dynamicflash = new Object(); } if (!com.dynamicflash.utils) { _global.com.dynamicflash.utils = new Object(); } _global.com.dynamicflash.utils.Delegate = function () {}; var v1 = _global.com.dynamicflash.utils.Delegate.prototype; _global.com.dynamicflash.utils.Delegate.create = function (target, handler) { var v4 = arguments.slice(2); var v5 = function () { super = arguments.callee; var v3 = arguments.concat(super.extraArgs, [super]); return super.handler.apply(super.target, v3); }; v5.extraArgs = v4; v5.handler = handler; v5.target = super; return v5; }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20513 __Packages.GizmoButt { #initclip if (!GizmoButt) { _global.GizmoButt = function (_up) { this.up = _up; this.setup(); }; var v1 = _global.GizmoButt.prototype; v1.setup_base = function () { this.mc = gfx.create_clip(this.up.mc, null); this.mc.style = this.up.mc.style; this.gizmos = new Array(); this.active = true; this.focus = null; this.focus_data = null; this.top = this.up.top; if (this.top == null) { this.top = this; } }; v1.clean_base = function () { var v2 = 0; goto 689; for (;;) { ++v2; label 689: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].clean(); } } this.mc.removeMovieClip(); this.mc = null; }; v1.update_base = function () { this.mc._x = this.x; this.mc._y = this.y; var v2 = 0; goto 884; for (;;) { ++v2; label 884: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].mc._visible = true; this.gizmos[v2].update(); } else { this.gizmos[v2].mc._visible = false; } } }; _global.GizmoButt.dupe_snapshot = function (snapshot) { var v3 = {}; v3.key = snapshot.key; v3.key_on = snapshot.key_on; v3.key_off = snapshot.key_off; v3.x = snapshot.x; v3.y = snapshot.y; v3.frame = snapshot.frame; return v3; }; v1.input_base = function (snapshot) { var v5 = GizmoButt.dupe_snapshot(snapshot); this.mc.localToGlobal(v5); var v3 = 0; goto 1256; for (;;) { ++v3; label 1256: if (v3 >= this.gizmos.length) break; if (this.gizmos[v3].active) { this.gizmos[v3].mc.globalToLocal(v5); this.gizmos[v3].input(v5); this.gizmos[v3].mc.localToGlobal(v5); } } return this.top.focus; }; v1.child = function (g) { var v3 = this.gizmos.length; this.gizmos[v3] = g; return g; }; v1.set_area = function (_x, _y, _w, _h) { this.x = _x; this.y = _y; this.w = _w; this.h = _h; }; v1.draw_mask = function (px, py) { gfx.setscroll(this.mc, px, py, this.w, this.h); }; v1.setup = function () { this.setup_base(); this.mc.cacheAsBitmap = true; }; v1.clean = function () { this.clean_base(); }; v1.update = function () { this.update_base(); }; v1.input = function (snapshot) { if (this.top.focus == this) { var v3 = GizmoButt.dupe_snapshot(snapshot); this.mc.localToGlobal(v3); this.up.mc.globalToLocal(v3); if (snapshot.x > 0 && (snapshot.y > 0 && (snapshot.x < this.w && snapshot.y < this.h))) { if (snapshot.key_off & 1) { this.top.focus = null; this.mc_base._visible = true; this.mc_over._visible = false; this.mc_down._visible = false; this.onClick(this); return this.top.focus; } this.mc_base._visible = false; this.mc_over._visible = false; this.mc_down._visible = true; } else { this.mc_base._visible = true; this.mc_over._visible = false; this.mc_down._visible = false; if (snapshot.key_off & 1) { this.top.focus = null; return this.top.focus; } } this.update(); this.input_base(snapshot); return this.top.focus; } if (this.top.focus == null && (snapshot.x > 0 && (snapshot.y > 0 && (snapshot.x < this.w && snapshot.y < this.h)))) { if (snapshot.key_on & 1) { this.top.focus = this; this.mc_base._visible = false; this.mc_over._visible = false; this.mc_down._visible = true; return this.top.focus; } else { this.mc_base._visible = false; this.mc_over._visible = true; this.mc_down._visible = false; } this.input_base(snapshot); return this.top.focus; } this.mc_base._visible = true; this.mc_over._visible = false; this.mc_down._visible = false; this.input_base(snapshot); return this.top.focus; }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20514 __Packages.Gizmo { #initclip if (!Gizmo) { _global.Gizmo = function (_up) { this.up = _up; this.setup(); }; var v1 = _global.Gizmo.prototype; v1.setup_base = function () { this.mc = gfx.create_clip(this.up.mc, null); this.mc.style = this.up.mc.style; this.gizmos = new Array(); this.active = true; this.focus = null; this.focus_data = null; this.top = this.up.top; if (this.top == null) { this.top = this; } }; v1.clean_base = function () { var v2 = 0; goto 639; for (;;) { ++v2; label 639: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].clean(); } } this.mc.removeMovieClip(); this.mc = null; }; v1.update_base = function () { this.mc._x = this.x; this.mc._y = this.y; var v2 = 0; goto 834; for (;;) { ++v2; label 834: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].mc._visible = true; this.gizmos[v2].update(); } else { this.gizmos[v2].mc._visible = false; } } }; _global.Gizmo.dupe_snapshot = function (snapshot) { var v3 = {}; v3.key = snapshot.key; v3.key_on = snapshot.key_on; v3.key_off = snapshot.key_off; v3.x = snapshot.x; v3.y = snapshot.y; v3.frame = snapshot.frame; return v3; }; v1.input_base = function (snapshot) { var v5 = Gizmo.dupe_snapshot(snapshot); this.mc.localToGlobal(v5); var v3 = 0; goto 1206; for (;;) { ++v3; label 1206: if (v3 >= this.gizmos.length) break; if (this.gizmos[v3].active) { this.gizmos[v3].mc.globalToLocal(v5); this.gizmos[v3].input(v5); this.gizmos[v3].mc.localToGlobal(v5); } } return this.top.focus; }; v1.child = function (g) { var v3 = this.gizmos.length; this.gizmos[v3] = g; return g; }; v1.set_area = function (_x, _y, _w, _h) { this.x = _x; this.y = _y; this.w = _w; this.h = _h; }; v1.draw_mask = function (px, py) { gfx.setscroll(this.mc, px, py, this.w, this.h); }; v1.setup = function () { this.setup_base(); }; v1.clean = function () { this.clean_base(); }; v1.update = function () { this.update_base(); }; v1.input = function (snapshot) { this.focus = this.input_base(snapshot); return this.focus; }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20515 __Packages.PlayHigh { #initclip if (!PlayHigh) { _global.PlayHigh = function (_up, stropts) { this.up = _up; this.play = this.up.play; this.hide_last = false; this.show_hash = false; if (stropts) { var v6 = stropts.split(','); var v4 = 0; goto 3288; for (;;) { ++v4; label 3288: if (v4 >= v6.length) break; var v5 = v6[v4].split('='); switch (v5[0]) { case 'show_hash': this.show_hash = true; break; case 'hide_last': this.hide_last = true; break; case 'results': this.results = v5[1]; continue; } } } this.rank = this.new_reset_scores(); this.high = this.new_reset_scores(); this.last = this.new_reset_scores(); this.state = 'high'; this.filter = 'global'; if (this.up.high_state) { this.state = this.up.high_state; } if (this.up.high_filter) { this.filter = this.up.high_filter; } }; var v1 = _global.PlayHigh.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.new_reset_scores = function () { var v2 = new Array(); var v3 = 0; goto 3744; for (;;) { ++v3; label 3744: if (v3 >= 10) break; v2[v3] = '0;Fetching...'; } return v2; }; v1.days_to_string = function (days) { if (this.show_hash) { return '#' + days; } var v3 = new Date(); v3.setTime(days * 24 * 60 * 60 * 1000); var v4 = alt.Sprintf.format('%04d%02d%02d', v3.getFullYear(), v3.getMonth() + 1, v3.getDate()); return v4; }; v1.setup = function (usestate) { if (_root.skip_wetlogin) { return undefined; } if (!this.finished) { return undefined; } this.finished = false; this.state = 'done'; this.retry = false; if (_root.signals.ranksys == 'max') { this.hide_last = true; } if (this.state != 'high' && (this.state != 'rank' && this.state != 'last')) { this.state = 'high'; } if (this.hide_last || this.show_hash) { if (this.state == 'last') { this.state = 'high'; } } if (this.show_hash) { if (this.state == 'rank') { this.state = 'high'; } } if (usestate) { this.state = usestate; } _root.popup = this; this.mcs = new Array(); this.tfs = new Array(); this.mcb = gfx.create_clip(_root.mc_popup, null); if (_root.scalar.oy == 600) { this.mc = this.mcb; } else { this.mcb._xscale = Math.floor(100 * (_root.scalar.oy / 600)); this.mcb._yscale = Math.floor(100 * (_root.scalar.oy / 600)); this.mc = gfx.create_clip(this.mcb, null); } this.mcb.cacheAsBitmap = true; gfx.dropshadow(this.mc, 5, 45, 0, 1, 20, 20, 2, 3); this.mc._y = 0; this.mc.dx = 0; this.mc._x = -800; this.do_exit = false; this.not_do_exit = 30; this.done = false; this.steady = false; this.do_mochi = false; gfx.clear(this.mc); this.mc.style.out = -16777216; this.mc.style.fill = 1342177280; gfx.draw_box(this.mc, 0, 100 + 16, +16, 600 - 32, 600 - 32); switch (this.state) { case 'results': this.mc_top = gfx.create_clip(this.mc, null, 100, 25); this.tf_top = gfx.create_text_html(this.mc_top, null, 0, 0, 600, 50); this.mc_top.onRelease = this.delegate(this.click, 'top'); this.mc_text = gfx.create_clip(this.mc, null, 150, 100); this.tf_text = gfx.create_text_html(this.mc_text, null, 0, 0, 500, 300); this.mc_text.onRelease = this.delegate(this.click, 'text'); this.mc_whore = gfx.create_clip(this.mc, null, 200, 425); this.mc_whore.onRelease = this.delegate(this.click, 'whore'); this.mc_whore.text = gfx.create_text_html(this.mc_whore, null, 175, 0, 250, 175); break; default: this.mc_res = gfx.create_clip(this.mc, null); var v7 = 0; var v3 = 0; goto 5455; for (;;) { ++v3; label 5455: if (v3 >= 10) break; this.mcs[v3] = gfx.create_clip(this.mc_res, null, 0, 25 + 150 + v3 * 40); this.mcs[v3].onRelease = this.delegate(this.click, 'score' + v3); this.mcs[v3].onRollOver = this.delegate(this.over_on, 'score' + v3); this.mcs[v3].onRollOut = this.delegate(this.over_off, 'score' + v3); this.mcs[v3].onReleaseOutside = this.delegate(this.over_off, 'score' + v3); this.tfs[v7] = gfx.create_text_html(this.mcs[v3], null, 50, 0, 200, 50); ++v7; this.tfs[v7] = gfx.create_text_html(this.mcs[v3], null, 250, 0, 150, 50); ++v7; this.tfs[v7] = gfx.create_text_html(this.mcs[v3], null, 400, 0, 550, 50); ++v7; } this.mc_top = gfx.create_clip(this.mc, null, 100, 25); this.tf_top = gfx.create_text_html(this.mc_top, null, 0, 0, 600, 50); this.mc_top.onRelease = this.delegate(this.click, 'top'); this.mc_topunder = gfx.create_clip(this.mc, null, 100, 75 - 10); this.tf_topunder = gfx.create_text_html(this.mc_topunder, null, 0, 0, 600, 25); this.mc_topunder.onRelease = this.delegate(this.click, 'topunder'); this.mc_topsub = gfx.create_clip(this.mc, null, 100, 100); } var v3 = 0; goto 6287; for (;;) { ++v3; label 6287: if (v3 >= this.icon_nams.length) break; var v9 = this.icon_nams[v3]; this.mc_topsub[v9] = gfx.add_clip(this.mc_topsub, 'icon_' + v9, null, 300 - 20 * this.icon_nams.length + v3 * 40, 10, 200, 200); gfx.glow(this.mc_topsub[v9], 16777215, 1, 8, 8, 1, 1, false, false); this.mc_topsub[v9]._alpha = 50; this.mc_topsub[v9].id = v9; this.mc_topsub[v9].idx = v3; this.mc_topsub[v3] = this.mc_topsub[v9]; this.mc_topsub[v3].onRelease = this.delegate(this.click, v9); this.mc_topsub[v3].onRollOver = this.delegate(this.over_on, v9); this.mc_topsub[v3].onRollOut = this.delegate(this.over_off, v9); this.mc_topsub[v3].onReleaseOutside = this.delegate(this.over_off, v9); } if (this.hide_last) { this.mc_topsub.last._visible = false; } if (this.show_hash) { this.mc_topsub.last._visible = false; this.mc_topsub.rank._visible = false; this.mc_topsub.day._visible = false; } this.thunk(); this.get_high(); this.update_do = this.delegate(this.update, null); MainStatic.update_add(_root.updates, this.update_do); _root.poker.clear_clicks(); }; v1.clean = function () { if (_root.popup != this) { return undefined; } this.finished = true; this.mc_whore = null; MainStatic.update_remove(_root.updates, this.update_do); this.update_do = null; this.mcb.removeMovieClip(); this.mc.removeMovieClip(); _root.popup = null; if (this.up.next_game_seed) { this.up.do_str('restart'); } this.up.high_state = this.state; this.up.high_filter = this.filter; _root.poker.clear_clicks(); this.state = 'done'; }; v1.get_high = function () { if (this.state == 'rank') { this.rank = this.new_reset_scores(); } else { if (this.state == 'high') { this.high = this.new_reset_scores(); } else { if (this.state == 'last') { this.last = this.new_reset_scores(); } else { return undefined; } } } ++this.high_id; _root.comms.get_high(this.state, this.filter, this.delegate(this.got_high, this.high_id)); }; v1.got_high = function (a, tid) { if (tid == this.high_id) { if (this.state == 'rank') { this.rank = a; } else { if (this.state == 'high') { this.high = a; } else { if (this.state == 'last') { this.last = a; } } } this.thunk(); } }; v1.thunk = function () { var v2 = 0; goto 7709; for (;;) { ++v2; label 7709: if (v2 >= this.icon_nams.length) break; this.mc_topsub[v2]._alpha = 50; } if (this.state == 'rank' || (this.state == 'high' || this.state == 'last')) { var v5 = 0; v2 = 0; goto 7866; for (;;) { ++v2; label 7866: if (v2 >= 10) break; if (this.state == 'rank') { var v3 = this.rank[v2].split(';'); } else { if (this.state == 'high') { var v3 = this.high[v2].split(';'); } else { if (this.state == 'last') { var v3 = this.last[v2].split(';'); } } } if (v3[1].indexOf('_') != -1) { v3[1] = (v3[1].split('_')).join(' '); } var v4 = ''; v4 += '<font face="Bitstream Vera Sans" size="28" color="#ffffff">'; v4 += '<p align="right"><b>'; v4 += v3[0]; v4 += '</b></p>'; v4 += '</font>'; this.tfs[v5].htmlText = v4; ++v5; if (this.state == 'last') { v4 = ''; v4 += '<font face="Bitstream Vera Sans" size="8" color="#ffffff">'; v4 += '<br></font>'; v4 += '<font face="Bitstream Vera Sans" size="16" color="#ffffff">'; v4 += '<p align="center"><b>'; if (v3[2]) { v4 += this.days_to_string(v3[2]); } else { v4 += '#'; } v4 += '</b></p>'; v4 += '</font>'; this.tfs[v5].htmlText = v4; } else { v4 = ''; v4 += '<font face="Bitstream Vera Sans" size="28" color="#ffffff">'; v4 += '<p align="center"><b>'; v4 += this.str_numst[v2]; v4 += '</b></p>'; v4 += '</font>'; this.tfs[v5].htmlText = v4; } ++v5; v4 = ''; v4 += '<font face="Bitstream Vera Sans" size="28" color="#ffffff">'; v4 += '<p align="left"><b>'; v4 += v3[1]; v4 += '</b></p>'; v4 += '</font>'; this.tfs[v5].htmlText = v4; ++v5; } v4 = ''; v4 += '<font face="Bitstream Vera Sans" size="14" color="#888888">'; v4 += '<p align="center"><b>'; switch (this.state) { case 'rank': v4 += 'Click title above to cycle views<br>'; v4 += 'Click here to cycle filters<br>'; v4 += 'Click anywhere else to exit<br>'; this.mc_topsub.rank._alpha = 100; break; case 'high': v4 += 'Click title above to cycle views<br>'; v4 += 'Click here to cycle filters<br>'; v4 += 'Click anywhere else to exit<br>'; this.mc_topsub.day._alpha = 100; break; case 'last': v4 += 'Click title above to cycle view<br>'; v4 += 'Click a score below to play that game<br>'; v4 += 'Click anywhere else to exit<br>'; this.mc_topsub.last._alpha = 100; break; case 'mochi': this.mc_topsub.mochi._alpha = 100; } v4 += '</b></p>'; v4 += '</font>'; this.tf_topsub.htmlText = v4; v4 = ''; v4 += '<font face="Bitstream Vera Sans" size="16" color="#cccccc">'; v4 += '<p align="center"><b>'; switch (this.state) { case 'rank': case 'high': switch (this.filter) { case 'global': v4 += 'no filter'; this.mc_topsub.guest._alpha = 100; break; case 'registered': v4 += 'showing registered users only'; this.mc_topsub.registered._alpha = 100; break; case 'friends': v4 += 'showing friends only'; } break; case 'last': } v4 += '</b></p>'; v4 += '</font>'; this.tf_topunder.htmlText = v4; } else { if (this.state == 'mochi') { if (!this.do_mochi) { this.do_mochi = true; mochi.MochiScores.showLeaderboard({'res': '540x450', 'onClose': this.delegate(this.mochi_close)}); this.mc_res._visible = false; this.mc_topunder._visible = false; this.mc_topsub._visible = false; _root.poker.ShowFloat(null, 0); } } else { if (this.state == 'results') { switch (this.results) { case 'bowwow': var v4 = ''; v4 += '<font face="Bitstream Vera Sans" size="26" color="#ffffff">'; v4 += '<p align="center">'; v4 += 'You scored <b>' + this.play.score + '</b>pts<br><br>'; v4 += '<b>Click here</b> or press anykey to continue.<br><br>'; v4 += '</p>'; v4 += '</font>'; this.tf_text.htmlText = v4; break; default: var v4 = ''; v4 += '<font face="Bitstream Vera Sans" size="28" color="#ffffff">'; v4 += '<p align="center">'; v4 += '<b>Click here</b> to return to the menu or press anykey to try again.<br><br>'; v4 += 'You scored <b>' + this.play.scores_best_new + '</b>pts<br><br>'; if (this.play.scores_best_old < this.play.scores_best_new) { v4 += 'Congratulations, that\'s a whole <b>' + (this.play.scores_best_new - this.play.scores_best_old) + '</b>pts better than ' + this.play.scores_best_old + 'pts.<br><br>'; } else { v4 += 'Your previous best score was <b>' + this.play.scores_best_old + '</b>pts<br><br>'; } v4 += '</p>'; v4 += '</font>'; this.tf_text.htmlText = v4; } } } } var v4 = ''; v4 += '<font face="Bitstream Vera Sans" size="28" color="#ffffff">'; v4 += '<p align="center"><b>'; switch (this.state) { case 'rank': if (_root.signals.ranksys == 'max') { v4 += 'Highest scores in last 10 days.<br>'; } else { v4 += 'Rankings, last 10 days added.<br>'; } break; case 'high': v4 += 'High scores for ' + this.days_to_string(this.up.game_seed) + '.<br>'; break; case 'last': v4 += 'Your last 10 scores.<br>'; break; case 'results': v4 += 'Congratulations!<br>'; break; case 'mochi': v4 += 'Checking Mochi Bucket for scores.<br>'; } v4 += '</b></p>'; v4 += '</font>'; this.tf_top.htmlText = v4; }; v1.mochi_close = function () { this.do_mochi = false; this.state = 'high'; this.get_high(); this.thunk(); this.not_do_exit = 5; this.mc_res._visible = true; this.mc_top._visible = true; this.mc_topunder._visible = true; this.mc_topsub._visible = true; }; v1.over_on = function (s) { if (this.do_mochi) { return undefined; } switch (s) { case 'score0': this.showgame(0); break; case 'score1': this.showgame(1); break; case 'score2': this.showgame(2); break; case 'score3': this.showgame(3); break; case 'score4': this.showgame(4); break; case 'score5': this.showgame(5); break; case 'score6': this.showgame(6); break; case 'score7': this.showgame(7); break; case 'score8': this.showgame(8); break; case 'score9': this.showgame(9); break; case 'day': _root.poker.ShowFloat('Show scores for todays game.', 25 * 5); this.highlight_icon(s, true); break; case 'rank': _root.poker.ShowFloat('Show rank. This is built using scores from the last 10 days.', 25 * 5); this.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); this.highlight_icon(s, true); break; case 'guest': _root.poker.ShowFloat('Show scores of all players.', 25 * 5); this.highlight_icon(s, true); break; case 'registered': _root.poker.ShowFloat('Show registered players scores only.', 25 * 5); this.highlight_icon(s, true); break; case 'mochi': _root.poker.ShowFloat('Display a Mochi Bucket of scores.', 25 * 5); this.highlight_icon(s, true); break; case 'close': _root.poker.ShowFloat('Close this plopup. Clicking almost anywhere also closes this plopup.', 25 * 5); this.highlight_icon(s, true); } }; v1.highlight_icon = function (nam, onoff) { if (this.mc_topsub[nam]._alpha < 100) { if (onoff) { this.mc_topsub[nam]._alpha = 75; } else { this.mc_topsub[nam]._alpha = 50; } } }; v1.over_off = function (s) { if (this.do_mochi) { return undefined; } this.highlight_icon(s, false); _root.poker.ShowFloat(null, 0); }; v1.click = function (s) { if (this.do_mochi) { this.mochi_close(); return undefined; } switch (s) { case 'whore': if (_root.wonderfulls[0].url) { getURL(_root.wonderfulls[0].url, '_blank'); } if (this.state == 'results') { if (this.steady) { this.do_exit = true; } } break; case 'text': if (this.state == 'results') { if (this.steady) { this.do_exit = true; } } break; break; case 'top': case 'mochi': if (this.state != 'mochi') { this.state = 'mochi'; this.thunk(); } this.not_do_exit = 5; break; case 'day': if (this.state != 'high') { this.state = 'high'; this.get_high(); this.thunk(); } this.not_do_exit = 5; break; case 'rank': if (this.state != 'rank') { this.state = 'rank'; this.get_high(); this.thunk(); } this.not_do_exit = 5; break; case 'last': if (this.state != 'last') { this.state = 'last'; this.get_high(); this.thunk(); } this.not_do_exit = 5; break; case 'guest': if (this.filter != 'global') { this.filter = 'global'; this.get_high(); this.thunk(); } this.not_do_exit = 5; break; case 'registered': if (this.filter != 'registered') { this.filter = 'registered'; this.get_high(); this.thunk(); } this.not_do_exit = 5; break; break; case 'topunder': break; case 'topsub': case 'score0': this.gotoplaygame(0); break; case 'score1': this.gotoplaygame(1); break; case 'score2': this.gotoplaygame(2); break; case 'score3': this.gotoplaygame(3); break; case 'score4': this.gotoplaygame(4); break; case 'score5': this.gotoplaygame(5); break; case 'score6': this.gotoplaygame(6); break; case 'score7': this.gotoplaygame(7); break; case 'score8': this.gotoplaygame(8); break; case 'score9': this.gotoplaygame(9); break; } }; v1.gotoplaygame = function (num) { if (this.state == 'last') { var v3 = this.last[num].split(';'); if (v3[2]) { this.up.next_game_seed = Math.floor(v3[2]); if (this.up.next_game_seed == this.up.game_seed) { this.up.next_game_seed = null; } } this.state = 'high'; } }; v1.showgame = function (num) { if (this.state == 'last') { var v3 = this.last[num].split(';'); if (v3[2]) { var v4 = this.days_to_string(Math.floor(v3[2])); _root.poker.ShowFloat('Clicking here will end this game and start the game for ' + v4 + ' so be careful...', 25 * 5); } } }; v1.statechange = function () { switch (this.state) { break; case 'results': case 'high': this.state = 'rank'; break; case 'rank': if (this.hide_last || this.show_hash) { this.state = 'high'; } else { this.state = 'last'; } break; case 'last': this.state = 'high'; break; default: this.state = 'high'; } this.get_high(); this.thunk(); }; v1.filterchange = function () { switch (this.filter) { case 'global': this.filter = 'registered'; break; case 'registered': this.filter = 'global'; break; case 'friends': this.filter = 'global'; } this.get_high(); this.thunk(); }; v1.click_str = function (id) { var v3 = id.split('_'); trace(v3); switch (v3[0]) { case 'none': break; break; case 'submit': } }; v1.update = function () { var v3 = this.mc._xmouse > 0 && (this.mc._ymouse > 0 && (this.mc._xmouse < 800 && this.mc._ymouse < 600)); if (!this.do_mochi) { if (_root.popup == this && (_root.poker.anykey && v3)) { if (this.steady) { if (!this.do_exit) { if (this.state == 'results') { this.retry = true; } this.do_exit = true; } } } } if (_root.popup != this || _root.pause) { return undefined; } if (this.mc_whore) { if (!this.mc_whore.ad) { if (_root.wonderfulls) { this.mc_whore.ad = gfx.create_clip(this.mc_whore, null); this.mc_whore.ad.loadMovie(_root.wonderfulls[0].img); var v2 = ''; v2 += '<font face="Bitstream Vera Sans" size="24" color="#ffffff">'; v2 += '<p align="center">'; v2 += _root.wonderfulls[0].txt; v2 += '</p>'; v2 += '</font>'; this.mc_whore.text.htmlText = v2; } } } this.mc._x += (this.mc.dx - this.mc._x) / 4; if ((this.mc._x - this.mc.dx) * (this.mc._x - this.mc.dx) < 16 * 16) { this.steady = true; if (this.done) { this.clean(); } } else { this.steady = false; } if (this.do_exit && this.not_do_exit == 0) { this.done = true; this.mc.dx = _root.scalar.ox; } this.do_exit = false; if (this.not_do_exit > 0) { --this.not_do_exit; } }; ASSetPropFlags(v1, null, 1); v1.icon_nams = ['mochi', 'day', 'rank', 'last', 'guest', 'registered', 'close']; v1.results = ''; v1.finished = true; v1.str_numst = ['1st', '2nd', '3rd', '4th', '5th', '6th', '7th', '8th', '9th', '10th']; v1.hide_last = false; v1.show_hash = false; v1.high_id = 0; } #endinitclip } movieClip 20516 __Packages.PlayCode { #initclip if (!PlayCode) { _global.PlayCode = function (_up) { this.up = _up; }; var v1 = _global.PlayCode.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.setup = function () { _root.popup = this; this.mcs = new Array(); this.tfs = new Array(); this.mcb = gfx.create_clip(_root.mc_popup, null); if (_root.scalar.oy == 600) { this.mc = this.mcb; } else { this.mcb._xscale = Math.floor(100 * (_root.scalar.oy / 600)); this.mcb._yscale = Math.floor(100 * (_root.scalar.oy / 600)); this.mc = gfx.create_clip(this.mcb, null); } this.mcb.cacheAsBitmap = true; gfx.dropshadow(this.mc, 5, 45, 0, 1, 20, 20, 2, 3); this.mc._y = 0; this.mc.dx = 0; this.mc._x = -800; this.done = false; this.steady = false; gfx.clear(this.mc); this.mcs[0] = gfx.create_clip(this.mc, null); this.mcs[0].onRelease = this.delegate(this.onRelease, null); this.mcs[0].showHandCursor = false; this.mcs[0].style.out = -16777216; this.mcs[0].style.fill = 268435456; gfx.draw_box(this.mcs[0], 0, 0, 0, 800, 600); this.mcs[0].style.out = -16777216; this.mcs[0].style.fill = -2147483648; gfx.draw_box(this.mcs[0], 0, 100 + 16, +16, 600 - 32, 600 - 32); this.mcs[1] = gfx.create_clip(this.mc, null); this.mcs[1].onRelease = this.delegate(function () {}, null); this.mcs[1].showHandCursor = false; this.mcs[1].style.out = -16777216; this.mcs[1].style.fill = 268435456; gfx.draw_box(this.mcs[1], 0, 150, 50, 500, 500); this.mcs[2] = gfx.create_clip(this.mc, null, 150, 50, 150, 150); this.thunk(); Mouse.addListener(this); this.update_do = this.delegate(this.update, null); MainStatic.update_add(_root.updates, this.update_do); _root.poker.clear_clicks(); _root.poker.ShowFloat(null, 0); System.security.allowDomain('cdn.gigya.com'); System.security.allowInsecureDomain('cdn.gigya.com'); this.mcWF = gfx.create_clip(this.mcs[2], null); this.mcWF._lockroot = true; this.mcWF._x = 0; this.mcWF._y = 0; this.mcWF.ModuleID = 'PostModule1'; _root[this.mcWF.ModuleID] = {}; var v6 = _root[this.mcWF.ModuleID]; v6.width = '333'; v6.height = '333'; v6.partner = '200531'; v6.UIConfig = '<config><display showEmail="true" showBookmark="true" showCloseButton="true" bulletinChecked="false" networksWithCodeBox="" /></config>'; v6.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://games.WetGenes.com" target="_blank" title="games.WetGenes.com">Play more free online games at games.WetGenes.com</a></center>'; }; v6.facebookURL = 'http://link.wetgenes.com/link/WetBaseMent.fb'; var v7 = 'WetBaseMent'.toLowerCase(); if (v7 == 'wetbasement') { v7 = 'basement'; } if (v7 == 'wetdiamonds') { v7 = 'diamonds'; } v6.bookmarkURL = 'http://' + v7 + '.wetgenes.com/'; v6.widgetTitle = 'Play WetBaseMent at www.WetGenes.com'; v6.onPostProfile = this.delegate(this.finish); v6.onClose = this.delegate(this.finish); v6.onLoad = this.delegate(this.WFonLoad); this.mcWF.loadMovie('http://cdn.gigya.com/WildFire/swf/wildfire.swf', 'get'); this.wf_loaded = false; }; v1.WFonLoad = function () { this.wf_loaded = true; }; v1.clean = function () { if (_root.popup != this) { return undefined; } this.mcWF = null; this.update_do = null; this.mc.removeMovieClip(); this.mcb.removeMovieClip(); _root.popup = null; Mouse.removeListener(this); _root.poker.clear_clicks(); _root.poker.ShowFloat(null, 0); }; v1.thunk = function () {}; v1.over = function (s) {}; v1.notover = function (s) { _root.poker.ShowFloat(null, 0); }; v1.click = function (s) {}; v1.onRelease = function () { if (_root.popup != this) { return undefined; } if (this.steady) { this.done = true; this.mc.dx = _root.scalar.ox; } }; v1.finish = function () { this.done = true; this.mc.dx = _root.scalar.ox; }; v1.update = function () { if (_root.popup != this || _root.pause) { return undefined; } this.mc._x += (this.mc.dx - this.mc._x) / 4; if ((this.mc._x - this.mc.dx) * (this.mc._x - this.mc.dx) < 16 * 16) { this.steady = true; if (this.done) { this.clean(); } } else { this.steady = false; } }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20517 __Packages.WetBaseMentLevel_level_04 { #initclip if (!WetBaseMentLevel_level_04) { _global.WetBaseMentLevel_level_04 = function () {}; var v1 = _global.WetBaseMentLevel_level_04.prototype; ASSetPropFlags(v1, null, 1); v1.img_bak = 'level_04_bak'; v1.img_for = 'level_04_for'; v1.name = 'level_04'; v1.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, 17, 17, 17, 17, 17, 17, 17, 238, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 1, 1, 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, 17, 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, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 17, 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 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]; } #endinitclip } movieClip 20518 __Packages.WetBaseMentLevel_level_08 { #initclip if (!WetBaseMentLevel_level_08) { _global.WetBaseMentLevel_level_08 = function () {}; var v1 = _global.WetBaseMentLevel_level_08.prototype; ASSetPropFlags(v1, null, 1); v1.img_bak = 'level_08_bak'; v1.img_for = 'level_08_for'; v1.name = 'level_08'; v1.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,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 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]; } #endinitclip } movieClip 20519 __Packages.OverItem { #initclip if (!OverItem) { _global.OverItem = function (_up) { this.up = _up; }; var v1 = _global.OverItem.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.setup = function (nam, dat) { this.mc = gfx.create_clip(this.up.mc, null); this.type = nam; this.data = dat; this.flags = 0; this._x = 0; this._y = 0; this.vx = 0; this.vy = 0; this.draw(); }; v1.draw = function () { var v2 = 2.0; switch (this.type) { case null: break; case 'score': this.tf = gfx.create_text_html(this.mc, null, -100, -25, 200, 50); gfx.set_text_html(this.tf, 24, 16777215, '<p align="center">' + this.data.str + '</p>'); } }; v1.clean = function () { this.mc.removeMovieClip(); }; v1.setxy = function (setx, sety, setvx, setvy) { if (setvx != undefined) { this.vx = setvx; } if (setvy != undefined) { this.vy = setvy; } this._x = setx; this._y = sety; if (this.mc) { this.mc._x = setx; this.mc._y = sety; } }; v1.update = function () { if (this.type !== 'score') { } else { this.setxy(this._x + this.vx, this._y + this.vy); this.mc._alpha -= 1; if (this.mc._alpha <= 0) { return true; } return false; } }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20520 __Packages.PlayItem { #initclip if (!PlayItem) { _global.PlayItem = function (_up, _x, _y, _type) { this.up = _up; this.setup(_x, _y, _type); }; var v1 = _global.PlayItem.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.rnd_seed = function (n) { this.rnd_num = n & 65535; }; v1.rnd = function () { this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537; return this.rnd_num; }; v1.setup = function (_x, _y, _type) { this.x = _x; this.y = _y; this.escount = 0; this.type = _type; this.flavour = 'vanilla'; switch (this.type) { case 'meta': this.mc = gfx.add_clip(this.up.imc, 'obj_meta', null); this.mc._xscale = 100 * 20 / 50; this.mc._yscale = 100 * 20 / 50; this.mc._alpha = 10; this.mc._x = 10 + _x * 20; this.mc._y = 590 - _y * 20; this.mc.gotoAndStop(1); this.active = false; break; case 'bump': this.mc = gfx.add_clip(this.up.imc, 'bumper', null); this.mc._xscale = 100; this.mc._yscale = 100; this.mc._alpha = 100; this.mc._x = 10 + _x * 20; this.mc._y = 590 - _y * 20; this.mc.gotoAndStop(1); this.active = true; break; case 'inout': this.mc = {}; this.mc._x = 10 + _x * 20; this.mc._y = 590 - _y * 20; this.active = false; break; case 'cannon': this.mc = gfx.create_clip(this.up.imc, null); this.mc._xscale = 100; this.mc._yscale = 100; this.mc._alpha = 100; this.mc._x = 10 + _x * 20; this.mc._y = 590 - _y * 20; this.mc.bak = gfx.add_clip(this.mc, 'cannon_bak', null); this.mc.mid = gfx.create_clip(this.mc, null); this.mc.for = gfx.add_clip(this.mc, 'cannon_for', null); this.mc.bak.gotoAndStop(1); this.mc.for.gotoAndStop(1); this.active = true; break; case 'whirl': this.mc = gfx.add_clip(this.up.imc, 'whirl', null); this.mc._xscale = 100; this.mc._yscale = 100; this.mc._alpha = 100; this.mc._x = 10 + _x * 20; this.mc._y = 590 - _y * 20; this.mc.vx = 0; this.mc.vy = 0; this.mc.gotoAndStop(1); this.active = true; } }; v1.activate = function () { switch (this.type) { case 'meta': this.mc._xscale = 2 * 100 * 20 / 50; this.mc._yscale = 2 * 100 * 20 / 50; this.active = true; this.mc._alpha = 100; this.mc.gotoAndPlay(1); gfx.glow(this.mc, 16777215, 0.8, 16, 16, 1, 3, false, false); break; case 'inout': this.active = true; break; case 'whirl': this.mc._visible = true; this.active = true; } }; v1.disable = function () { if (this.type !== 'whirl') { } else { this.mc._visible = false; this.active = false; } }; v1.clean = function () { this.mc.removeMovieClip(); }; v1.update = function () { switch (this.type) { return false; case 'meta': if (this.active) { var v2 = this.mc._x - this.up.tards[0].mc._x; var v3 = this.mc._y - (this.up.tards[0].mc._y - 30); if (v2 * v2 + v3 * v3 < 50 * 50) { this.up.score += 500; this.mc._visible = false; this.active = false; return true; } } return false; case 'bump': this.escount -= 1; if (this.escount < 0) { this.escount = 0; } if (this.mc._xscale > 100) { this.mc._xscale = 100 + (this.mc._xscale - 100) * 0.75; } if (this.mc._yscale > 100) { this.mc._yscale = 100 + (this.mc._yscale - 100) * 0.75; } if (this.active && (this.up.tards[0].state != 'inout' && this.escount < 100)) { var v2 = this.mc._x - this.up.tards[0].mc._x; var v3 = this.mc._y - (this.up.tards[0].mc._y - 30); var v4 = v2 * v2 + v3 * v3; if (v4 < 60 * 60) { this.escount += 25; var v5 = Math.sqrt(v4); if (v5 > 0) { v2 /= v5; v3 /= v5; } _root.wetplay.PlaySFX('sfx_boing', 0); this.up.tards[0].state = 'bounce'; this.up.tards[0].bounce_wait = 10; this.up.tards[0].vx = -v2 * 30; this.up.tards[0].vy = v3 * 30; this.mc._xscale = 150; this.mc._yscale = 150; } } return false; case 'inout': if (this.active) { if (!this.mc.mc) { this.mc.mc = gfx.add_clip(this.up.imc, 'whirl', null); this.mc.mc._xscale = 50; this.mc.mc._yscale = 50; this.mc.mc._alpha = 10; this.mc.mc._x = this.mc._x; this.mc.mc._y = this.mc._y; } this.mc.mc._rotation -= 10; if (this.mc.mc._rotation < 0) { this.mc.mc._rotation += 360; } var v2 = this.mc._x - this.up.tards[0].mc._x; var v3 = this.mc._y - (this.up.tards[0].mc._y - 30); var v4 = v2 * v2 + v3 * v3; if (v4 < 50 * 50) { if (this.other && this.up.tards[0].state != 'inout') { this.up.tards[0].state = 'inout'; this.up.tards[0].inout_from = this; this.up.tards[0].inout_to = this.other; this.up.tards[0].inout_frame = 0; this.up.tards[0].talk.display('Wheee!', 50); } } } return false; case 'whirl': if (this.active) { this.mc._rotation -= 10; if (this.mc._rotation < 0) { this.mc._rotation += 360; } var v2 = this.mc._x - this.up.tards[0].mc._x; var v3 = this.mc._y - (this.up.tards[0].mc._y - 30); if (this.up.tards[0].anim == 'splat') { v3 -= 30; } var v4 = v2 * v2 + v3 * v3; if (this.flavour == 'thrown') { if (this.mc.vx == null) { var v5 = Math.sqrt(v4); if (v5 == 0) { v5 = 1; } this.mc.vx = -12 * v2 / v5; this.mc.vy = -12 * v3 / v5; } this.mc._rotation -= 10; } else { if (v2 < 0) { this.mc.vx += 0.1; } if (v2 > 0) { this.mc.vx -= 0.1; } if (v3 < 0) { this.mc.vy += 0.1; } if (v3 > 0) { this.mc.vy -= 0.1; } if (this.mc.vx < -2) { this.mc.vx = -2; } if (this.mc.vx > 2) { this.mc.vx = 2; } if (this.mc.vy < -2) { this.mc.vy = -2; } if (this.mc.vy > 2) { this.mc.vy = 2; } } this.mc._x += this.mc.vx; this.mc._y += this.mc.vy; this.x = this.mc._x / 20; this.y = (600 - this.mc._y) / 20; if (v4 < 50 * 50) { var v8 = null; var v7 = 0; var v6 = 0; goto 5528; for (;;) { ++v6; label 5528: if (v6 >= this.up.items.length) break; if (this.up.items[v6].type == 'inout' && this.up.items[v6].active == false) { v2 = this.up.items[v6].mc._x - this.mc._x; v3 = this.up.items[v6].mc._y - this.mc._y; v4 = v2 * v2 + v3 * v3; if (v4 > v7) { v7 = v4; v8 = this.up.items[v6]; } } } if (v8 && this.up.tards[0].state != 'inout') { this.up.tards[0].state = 'inout'; this.up.tards[0].inout_from = this; this.up.tards[0].inout_to = v8; this.up.tards[0].inout_frame = 0; this.up.tards[0].talk.display('Wheee!', 50); } } } return false; } return false; }; ASSetPropFlags(v1, null, 1); v1.rnd_num = 0; } #endinitclip } movieClip 20521 __Packages.OverField { #initclip if (!OverField) { _global.OverField = function (_up) { this.up = _up; }; var v1 = _global.OverField.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.rnd_seed = function (n) { this.rnd_num = n & 65535; }; v1.rnd = function () { this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537; return this.rnd_num; }; v1.setup = function (nam) { this.mc_scalar = gfx.create_clip(this.up.mc, null); this.mc = gfx.create_clip(this.mc_scalar, null); this.over = new Object(); this.over.up = this.up; this.over.mc = gfx.create_clip(this.mc_scalar, null); this.tab_w = 8; this.tab_h = 8; this.types = new Array('fire', 'earth', 'air', 'water', 'ether'); var v7 = 0; goto 936; for (;;) { ++v7; label 936: if (v7 >= 5) break; this.types[this.types[v7]] = v7; } this.launches = new Array(); this.floaters = new Array(); _root.poker.clear_clicks(); this.update_do = this.delegate(this.update, null); MainStatic.update_add(_root.updates, this.update_do); }; v1.clean = function () { MainStatic.update_remove(_root.updates, this.update_do); this.update_do = null; while (this.launches.length) { this.launches[0].clean(); this.launches.splice(0, 1); } while (this.floaters.length) { this.floaters[0].clean(); this.floaters.splice(0, 1); } this.mc.removeMovieClip(); }; v1.update = function () { var v2 = 0; goto 1409; for (;;) { ++v2; label 1409: if (v2 >= this.launches.length) break; if (this.launches[v2].update_launch()) { this.launches[v2].clean(); this.launches.splice(v2, 1); --v2; } } v2 = 0; goto 1561; for (;;) { ++v2; label 1561: if (v2 >= this.floaters.length) break; if (this.floaters[v2].update()) { this.floaters[v2].clean(); this.floaters.splice(v2, 1); --v2; } } }; v1.add_floater = function (str, xx, yy) { var v5 = new OverItem(this); v5.setup('score', {'str': str}); v5.setxy(xx, yy); v5.vx = 0; v5.vy = -2; v5.mc.filters = null; v5.mc.cacheAsBitmap = true; this.floaters.push(v5); return v5; }; ASSetPropFlags(v1, null, 1); v1.rnd_num = 0; } #endinitclip } movieClip 20522 __Packages.WetPlayIcon { #initclip if (!WetPlayIcon) { _global.WetPlayIcon = function (stropts) { this.scale_800x600 = false; this.mute = false; if (stropts) { var v4 = stropts.split(','); var v3 = 0; goto 688; for (;;) { ++v3; label 688: if (v3 >= v4.length) break; switch (v4[v3]) { case 'scale_800x600': this.scale_800x600 = true; break; case 'mute': this.mute = true; continue; } } } }; var v1 = _global.WetPlayIcon.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.get_width = function () { if (this.scale_800x600) { return 800; } else { return Stage.width; } }; v1.get_height = function () { if (this.scale_800x600) { return 600; } else { return Stage.height; } }; v1.logindone = function () { if (!this.donelogindone) { this.setup(); this.donelogindone = true; } if (this.mute) { return undefined; } if (_root.login.opt_sound) { this.wetplayMP3.set_vol(50); } else { this.wetplayMP3.set_vol(0); } }; v1.setup = function () { this.mcs = gfx.create_clip(_root, 16384 + 32 - 16); this.mc = gfx.create_clip(this.mcs); this.mc_play_icon = gfx.add_clip(this.mc, 'WetPlayIcon', null, this.get_width() - 11, 11); this.wetplayGFX = new WetPlayGFX(this); this.wetplayMP3 = new WetPlayMP3(this); this.wall = this.wetplayMP3.w + this.wetplayMP3.x * 2; this.hall = this.wetplayMP3.h + this.wetplayMP3.y * 2; this.xall = this.wetplayMP3.x * 2; this.yall = this.wetplayMP3.y * 2; this.wetplayMP3.setup(); this.wetplayMP3.mc.dx = this.get_width() + this.xall; this.wetplayMP3.mc.dy = -this.hall; this.wetplayMP3.mc._x = this.wetplayMP3.mc.dx; this.wetplayMP3.mc._y = this.wetplayMP3.mc.dy; this.wetplayMP3.mc.ox = this.wetplayMP3.mc._x; this.wetplayMP3.mc.oy = this.wetplayMP3.mc._y; this.wetplayMP3.mc.idx = 0; if (this.mute) { this.wetplayMP3.set_vol_start(100, false); } this.update_do = this.delegate(this.update, null); MainStatic.update_add(_root.updates, this.update_do); }; v1.clean = function () { MainStatic.update_remove(_root.updates, this.update_do); this.update_do = null; }; v1.update = function () { if (this.scale_800x600) { _root.scalar.apply(this.mcs); } this.mc_play_icon._x = this.get_width() - 11; this.mc_play_icon._y = 11; var v2 = _root.poker.snapshot(); this.mc.globalToLocal(v2); if (_root.popup == this.wetplayMP3) { if ((v2.x < this.get_width() - (this.wall - this.xall / 2) || v2.y > this.hall) && (!_root.poker.poke_now && !_root.poker.poke_up)) { this.wetplayMP3.mc._visible = false; _root.popup = null; } } else { if (!_root.popup && !this.mute) { if (v2.x > this.get_width() - 20 && (v2.y < 20 && (!_root.poker.poke_now && !_root.poker.poke_up))) { _root.popup = this.wetplayMP3; this.wetplayMP3.mc._visible = true; this.wetplayMP3.mc._x = this.get_width() - (this.wall - this.xall / 2); this.wetplayMP3.mc._y = this.yall / 2; } else { this.wetplayMP3.mc._visible = false; } } else { this.wetplayMP3.mc._visible = false; if (_root.popup == this.wetplayMP3) { _root.popup = null; } } } if (_root.popup) { this.mc_play_icon._visible = false; } else { this.mc_play_icon._visible = true; } this.mc_play_icon._xscale = 50 + this.wetplayMP3.throbe * 150; this.mc_play_icon._yscale = this.mc_play_icon._xscale; this.mc_play_icon._alpha = 60; this.wetplayMP3.update(); }; v1.PlaySFX = function (nam, chan, loops, vol) { return this.wetplayMP3.PlaySFX(nam, chan, loops, vol); }; ASSetPropFlags(v1, null, 1); v1.donelogindone = false; } #endinitclip } movieClip 20523 __Packages.Poker { #initclip if (!Poker) { _global.Poker = function (_hand) { this.hand = _hand; if ((System.capabilities.version.split(' '))[0] == 'WII') { this.hand = false; } this.hand = false; this.mc = gfx.create_clip(_root, 16384 + 32); this.float = true; if (this.float) { this.mc_floater = gfx.create_clip(_root, 16384 + 32 + 1); gfx.clear(this.mc_floater); this.mc_floater.w = 200; this.mc_floater.h = 80; this.mc_floaterz = gfx.create_clip(this.mc_floater, null); this.mc_floaterz._x = 100; this.mc_floaterz._y = 40; this.tf_floater = gfx.create_text_html(this.mc_floaterz, null, -100, 0, 200, 200); this.float_str = ''; this.float_time = -100; } if (this.hand) { this.mcb0 = gfx.create_clip(this.mc, null); this.mcb1 = gfx.create_clip(this.mcb0, null); this.mcg = gfx.create_clip(this.mcb1, null); this.mcg0 = gfx.add_clip(this.mcg, 'poke0', null); this.mcg1 = gfx.add_clip(this.mcg, 'poke1', null); this.mcg0._x = -19; this.mcg0._y = -19; this.mcg1._x = -(19 + 8); this.mcg1._y = -(19 + 8); this.mcg._xscale = 75; this.mcg._yscale = 75; } this.onMouseUp(); Mouse.addListener(this); Key.addListener(this); this.lx = 0; this.ly = 0; this.size = 1; this.scale = 1; this.poke_last = false; this.poke_down = false; this.poke_up = false; this.poke_now = false; this.clear_clicks(); this.update_do = this.delegate(this.update, null); MainStatic.update_add(_root.updates, this.update_do); }; var v1 = _global.Poker.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.clean = function () { MainStatic.update_remove(_root.updates, this.update_do); this.update_do = null; }; v1.ShowFloat = function (str, tim) { if (str != null && this.float_str != str) { this.float_str = str; gfx.clear(this.mc_floaterz); this.mc_floaterz.style.out = -1; this.mc_floaterz.style.fill = -3355444; gfx.set_text_html(this.tf_floater, 16, 0, '<p align="center">' + str + '</p>'); this.mc_floater.h = this.tf_floater.textHeight + 6; gfx.draw_box(this.mc_floaterz, 4, -100, -this.mc_floater.h / 2, 200, this.mc_floater.h); this.tf_floater._y = -this.mc_floater.h / 2; this.mc_floaterz._y = this.mc_floater.h / 2; } if (tim == 0) { if (this.float_time > tim) { this.float_time = tim; } } else { this.float_time = tim; } }; v1.onKeyDown = function () { this.do_anykey = true; }; v1.onMouseMove = function () {}; v1.onMouseDown = function () { if (this.hand) { Mouse.hide(); this.mcg0._visible = false; this.mcg1._visible = true; } this.poke_now_now = true; this.poke_down_now = true; if (this.clicks.length < 16) { this.clicks[this.clicks.length] = {'click': 1, 'x': _root._xmouse, 'y': _root._ymouse}; } }; v1.onMouseUp = function () { this.do_anykey = true; if (this.hand) { Mouse.hide(); this.mcg0._visible = true; this.mcg1._visible = false; } this.poke_now_now = false; this.poke_up_now = true; if (this.clicks.length < 16) { this.clicks[this.clicks.length] = {'click': -1, 'x': _root._xmouse, 'y': _root._ymouse}; } }; v1.clear_clicks = function () { this.do_anykey = false; this.anykey = false; this.poke_last = false; this.poke_down = false; this.poke_up = false; this.poke_now = false; this.clicks = []; }; v1.update = function () { if (this.do_anykey) { this.anykey = true; } else { this.anykey = false; } this.do_anykey = false; this.x = _root._xmouse; this.y = _root._ymouse; this.poke_last = this.poke_now; this.poke_down = this.poke_down_now; this.poke_up = this.poke_up_now; this.poke_now = this.poke_now_now; this.poke_down_now = false; this.poke_up_now = false; this.dx = this.x - this.lx; this.dy = this.y - this.ly; this.lx = this.x; this.ly = this.y; if (this.hand) { this.mc._x = this.x; this.mc._y = this.y; this.scale = _root.scalar.sx * this.size / 100; this.mc._xscale = 100 * this.scale; this.mc._yscale = this.mc._xscale; gfx.dropshadow(this.mc, 2, 45, 0, 1, 4 * this.scale, 4 * this.scale, 2, 3); if (this.dx == 0 && this.dy == 0) { this.mcb0._rotation = 0; this.mcb0._xscale = 100; this.mcb0._yscale = 100; this.mcb1._rotation = 0; } else { var v3 = 180 * Math.atan2(this.dy, -this.dx) / Math.PI; var v4 = Math.sqrt(this.dy * this.dy + this.dx * this.dx); v4 /= 1.5; if (v4 > 400) { v4 = 400; } this.mcb0._rotation = -v3; this.mcb0._xscale = 100 + v4; this.mcb0._yscale = 100 - v4 / 5; this.mcb1._rotation = v3; } if (this.dx > 32) { this.dx = 32; } if (this.dx < -32) { this.dx = -32; } var v2 = this.dx; this.mcg._rotation += (v2 - this.mcg._rotation) / 4; } if (this.float && this.float_time >= -10) { if (this.float_time > 0) { --this.float_time; this.mc_floater._visible = true; this.mc_floaterz._xscale = 100; this.mc_floaterz._yscale = 100; } else { --this.float_time; this.mc_floaterz._xscale = 100 + this.float_time * 10; this.mc_floaterz._yscale = this.mc_floaterz._xscale; if (this.float_time == -10) { this.mc_floater._visible = false; } } var v5 = this.mc_floater.w; var v6 = this.mc_floater.h; var v13 = Stage.width; var v14 = Stage.height; var v9 = this.x - v13 / 2; var v10 = this.y - v14 / 2; var v17 = v9 * v9; var v21 = v9 < 0 ? -v9 : v9; var v18 = v10 * v10; var v22 = v10 < 0 ? -v10 : v10; var v16 = v17 + v18; var v15 = Math.sqrt(v16); if (v15 == 0) { v15 = 1; v9 = 0; v10 = 1; } var v11 = v9 / v15; var v12 = v10 / v15; var v19 = -v11 * v5 * 1.75; var v20 = -v12 * v6 * 1.75; if (v21 / 2 > v22) { if (v9 < 0) { var v7 = this.x; var v8 = this.y + v20 - v6 / 2; v7 += 50; } else { var v7 = this.x - v5; var v8 = this.y + v20 - v6 / 2; v7 -= 50; } } else { if (v21 < v22 / 2) { if (v10 < 0) { var v7 = this.x + v19 - v5 / 2; var v8 = this.y; v8 += 50; } else { var v7 = this.x + v19 - v5 / 2; var v8 = this.y - v6; v8 -= 50; } } else { if (v9 < 0) { if (v10 < 0) { var v7 = this.x; var v8 = this.y; v7 += 50; v8 += 50; } else { var v7 = this.x; var v8 = this.y - v6; v7 += 50; v8 -= 50; } } else { if (v10 < 0) { var v7 = this.x - v5; var v8 = this.y; v7 -= 50; v8 += 50; } else { var v7 = this.x - v5; var v8 = this.y - v6; v7 -= 50; v8 -= 50; } } } } this.mc_floater._x = this.mc_floater._x * 0.75 + v7 * 0.25; this.mc_floater._y = this.mc_floater._y * 0.75 + v8 * 0.25; this.mc_floater._visible = true; } else { this.mc_floater._visible = false; } }; v1.snapshot = function () { var v2 = {}; v2.key = this.poke_now ? 1 : 0; v2.key_on = this.poke_down ? 1 : 0; if (!this.poke_up) { v2.key_off = 0; v2.x = this.x; v2.y = this.y; v2.frame = 0; return v2; } v2.key_off = 1; v2.x = this.x; v2.y = this.y; v2.frame = 0; return v2; }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20524 __Packages.mochi.MochiScores { #initclip if (!mochi.MochiScores) { if (!mochi) { _global.mochi = new Object(); } _global.mochi.MochiScores = function () {}; var v1 = _global.mochi.MochiScores.prototype; _global.mochi.MochiScores.setBoardID = function (boardID) { mochi.MochiScores.boardID = boardID; mochi.MochiServices.send('scores_setBoardID', {'boardID': boardID}); }; _global.mochi.MochiScores.showLeaderboard = function (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) { mochi.MochiScores.onClose = options.onClose; } else { mochi.MochiScores.onClose = function () { if (mochi.MochiServices.clip == _root.__mochiservicesMC) { mochi.MochiServices.clip._parent.play(); } else { mochi.MochiServices.clip.play(); } }; } if (options.onError != null) { mochi.MochiScores.onError = options.onError; } else { mochi.MochiScores.onError = mochi.MochiScores.onClose; } if (options.boardID == null) { if (mochi.MochiScores.boardID != null) { options.boardID = mochi.MochiScores.boardID; } } mochi.MochiServices.send('scores_showLeaderboard', {'options': options}, null, mochi.MochiScores.doClose); }; _global.mochi.MochiScores.getPlayerInfo = function (callbackObj, callbackMethod) { mochi.MochiServices.send('scores_getPlayerInfo', null, callbackObj, callbackMethod); }; _global.mochi.MochiScores.submit = function (score, name, callbackObj, callbackMethod) { mochi.MochiServices.send('scores_submit', {'score': score, 'name': name}, callbackObj, callbackMethod); }; _global.mochi.MochiScores.requestList = function (callbackObj, callbackMethod) { mochi.MochiServices.send('scores_requestList', null, callbackObj, callbackMethod); }; _global.mochi.MochiScores.doClose = function (args) { if (args.error == true) { mochi.MochiScores.onError.apply(null, [args.errorCode, args.httpStatus]); } else { mochi.MochiScores.onClose.apply(); } }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20525 __Packages.Talky { #initclip if (!Talky) { _global.Talky = function (_up) { this.up = _up; this.w = 800; this.h = 600; }; var v1 = _global.Talky.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.setup = function () { this.bubs = []; this.mc = gfx.create_clip(this.up.mc, null); this.topmc = gfx.create_clip(this.mc, this.topdepth); }; v1.clean = function () { var v2 = 0; goto 532; for (;;) { ++v2; label 532: if (v2 >= this.bubs.length) break; this.bubs[v2].clean(); } this.mc.removeMovieClip(); this.mc = null; this.bubs = null; }; v1.create = function (_orig, _x, _y, _offorg) { if (_offorg == undefined) { _offorg = 'local'; } var v6 = new TalkyBub(this, _orig, _x, _y, _offorg); this.bubs[this.bubs.length] = v6; return v6; }; v1.update = function () { if (this.up.old_time != undefined) { if (this.last != this.up.old_time) { this.last = this.up.old_time; } else { return undefined; } } var v2 = 0; goto 883; for (;;) { ++v2; label 883: if (v2 >= this.bubs.length) break; if (this.bubs[v2].update()) { this.bubs[v2].clean(); this.bubs.splice(v2, 1); --v2; } } }; ASSetPropFlags(v1, null, 1); v1.topdepth = 1024; v1.last = null; } #endinitclip } movieClip 20526 __Packages.WetBaseMent { #initclip if (!WetBaseMent) { _global.WetBaseMent = function () { var v2 = new Date(); this.v = []; this.v.name = 'WetBasement'; this.v.site = ''; this.v.number = '1.03'; this.v.stamp = 'Feb 18 2010'; this.v.stamp_number = '20100218'; this.setup_done = false; this.game_seed = Math.floor(v2.getTime() / 1000 / 24 * 60 * 60) & 65535; this.game_seed_today = this.game_seed; this.game_seed_start = this.game_seed - this.game_seed % 10; this.mc = gfx.create_clip(_root, null); this.mc.onEnterFrame = this.delegate(this.update); this.mc.scrollRect = new flash.geom.Rectangle(0, 0, _root.scalar.ox, _root.scalar.oy); this.levels = []; this.levels[1] = new WetBaseMentLevel_level_01(); this.levels[3] = new WetBaseMentLevel_level_02(); this.levels[2] = new WetBaseMentLevel_level_03(); this.levels[4] = new WetBaseMentLevel_level_04(); this.levels[5] = new WetBaseMentLevel_level_05(); this.levels[7] = new WetBaseMentLevel_level_06(); this.levels[6] = new WetBaseMentLevel_level_07(); this.levels[8] = new WetBaseMentLevel_level_08(); this.levels[9] = new WetBaseMentLevel_level_09(); this.levels[10] = new WetBaseMentLevel_level_10(); var v3 = 1; goto 4719; for (;;) { ++v3; label 4719: if (v3 > 10) break; var v6 = this.levels[v3]; var v4 = this.game_seed_start + (v3 - 1); if (v4 > this.game_seed_today) { v4 -= 10; } v6.game_seed = v4; } var tf = function (_t, tim, id, anim, txt) { var v7 = {}; v7.tim = tim + txt.length * 2; v7.id = id; v7.txt = txt; v7.anim = anim; _t[_t.length] = v7; }; var v8 = function (_t, tim, id, anim, txt) { tf(_t, tim, id, anim, txt); }; var v9 = function (_t, tim, id, anim, txt) { tf(_t, tim, id, anim, txt); tf(_t, 0, id, 'idle', null); }; v6 = this.levels[1]; v6.name = 'Well Hello'; var v5 = []; v9(v5, 25 * 1, 0, 'roton', 'Well hello down there!'); v9(v5, 25 * 1, 1, 'confused', 'Uhm, hello?'); v9(v5, 25 * 1, 0, 'confused', 'What are you doing in my basement?'); v9(v5, 25 * 1, 1, 'indescribable', 'I\'m not really sure.'); v9(v5, 25 * 1, 0, 'thoughtful', 'Are you a plumber? I think I called for a plumber. There are some really nasty wet patches.'); v9(v5, 25 * 1, 1, 'bird', 'Do I look like a gay Italian to you?'); v9(v5, 25 * 1, 0, 'sad', 'I supose not, still, best to check with people isn\'t it?'); v9(v5, 25 * 1, 1, 'idle', 'Yes, quite.'); v9(v5, 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?'); v9(v5, 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.'); v9(v5, 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.'); v9(v5, 25 * 1, 1, 'confused', 'Meta?'); v9(v5, 25 * 1, 0, 'nerdy', 'The white shiny spinny things.'); v9(v5, 25 * 1, 1, 'hiphands', 'Gotcha, no problem, I\'m right on it, don\'t you worry it will be done in no time.'); v8(v5, 25 * 1, 0, 'rotoff', 'Excellent!'); v8(v5, 0, 1, 'start', null); v6.chat_start = v5; v6 = this.levels[3]; v6.name = 'Nowhere Pipes'; v5 = []; v9(v5, 25 * 1, 0, 'roton', 'I think these pipes were meant to go somewhere.'); v9(v5, 25 * 1, 1, 'confused', 'It\'s almost as if they were exclusively designed for jumping on.'); v8(v5, 25 * 1, 0, 'rotoff', null); v8(v5, 0, 1, 'start', null); v6.chat_start = v5; v6 = this.levels[2]; v6.name = 'Pidgin Jumps'; v5 = []; v9(v5, 25 * 1, 0, 'roton', 'Never give up, never surender!'); v9(v5, 25 * 1, 1, 'confused', 'Uhm, Mkay.'); v8(v5, 25 * 1, 0, 'rotoff', null); v8(v5, 0, 1, 'start', null); v6.chat_start = v5; v6 = this.levels[4]; v6.name = 'My first bouncy'; v5 = []; v9(v5, 25 * 1, 0, 'roton', 'A nice little bouncy in the middle will do wonders for your height.'); v9(v5, 25 * 1, 1, 'confused', 'Are your sure its safe?'); v8(v5, 25 * 1, 0, 'nerdy', 'Oh yes, almost certainly.'); v8(v5, 25 * 1, 0, 'rotoff', 'For me, anyway.'); v8(v5, 0, 1, 'start', null); v6.chat_start = v5; v6 = this.levels[5]; v6.name = 'Super fun-sucking'; v5 = []; v9(v5, 25 * 1, 0, 'roton', 'You might want to watch out for the super fun sucking pipes!'); v9(v5, 25 * 1, 1, 'confused', 'Because they are super fun?'); v9(v5, 25 * 1, 0, 'idle', 'No, because they are fun-sucking.'); v9(v5, 25 * 1, 1, 'confused', 'I feel so safe.'); v8(v5, 25 * 1, 0, 'rotoff', 'Excellent!'); v8(v5, 0, 1, 'start', null); v6.chat_start = v5; v6 = this.levels[7]; v6.name = 'Easy Travels'; v5 = []; v9(v5, 25 * 1, 0, 'roton', 'GO!'); v9(v5, 25 * 1, 1, 'idle', 'Gone!'); v8(v5, 25 * 1, 0, 'rotoff', 'Excellent!'); v8(v5, 0, 1, 'start', null); v6.chat_start = v5; v6 = this.levels[6]; v6.name = 'Bounce me Right'; v5 = []; v9(v5, 25 * 1, 0, 'roton', 'You are doing really well at this.'); v9(v5, 25 * 1, 1, 'idle', 'I am?'); v8(v5, 25 * 1, 0, 'rotoff', 'Yes, I think I shall keep you.'); v8(v5, 0, 1, 'start', null); v6.chat_start = v5; v6 = this.levels[8]; v6.name = 'Bouncyatorium'; v5 = []; v9(v5, 25 * 1, 0, 'roton', 'Ah, you have found my sweet bouncyatorium! Where good times and happy days are had by all.'); v9(v5, 25 * 1, 1, 'confused', 'By all?'); v8(v5, 25 * 1, 0, 'nerdy', 'Oh yes, some of my most memorable barfs happend right here.'); v8(v5, 25 * 1, 0, 'rotoff', null); v8(v5, 0, 1, 'start', null); v6.chat_start = v5; v6 = this.levels[9]; v6.name = 'Stairway to Ponyland'; v5 = []; v9(v5, 25 * 1, 0, 'roton', 'Bouncy stairway!'); v9(v5, 25 * 1, 1, 'idle', 'Why does it have to be bouncy?.'); v9(v5, 25 * 1, 0, 'idle', 'Because I like bouncy things!'); v9(v5, 25 * 1, 1, 'idle', 'Next time I get trapped in a basement it won\'t be this one.'); v8(v5, 25 * 1, 0, 'rotoff', 'Excellent!'); v8(v5, 0, 1, 'start', null); v6.chat_start = v5; v6 = this.levels[10]; v6.name = 'Ws Clown'; v5 = []; v9(v5, 25 * 1, 0, 'idle', 'You know how I said about letting you go free and stuff?'); v9(v5, 25 * 1, 1, 'idle', 'Yup!'); v9(v5, 25 * 1, 0, 'idle', 'Well this is the last batch of meta so let me help you out.'); v9(v5, 25 * 1, 1, 'idle', 'Really?'); v9(v5, 25 * 1, 1, 'idle', 'You?'); v9(v5, 25 * 1, 1, 'idle', 'Help?'); v9(v5, 25 * 1, 0, 'start', 'Yes, catch this.'); v8(v5, 0, 1, 'start', null); v6.chat_start = v5; v5 = []; v9(v5, 25 * 1, 0, 'idle', 'OK! fine you win.'); v9(v5, 25 * 1, 0, 'idle', 'You may leave my basement!'); v9(v5, 25 * 1, 1, 'idle', 'For really really real?'); v9(v5, 25 * 1, 0, 'idle', 'Just go already,'); v9(v5, 25 * 1, 0, 'idle', 'and do not come back.'); v9(v5, 25 * 1, 1, 'idle', 'Wheeeeeeee!'); v8(v5, 0, 0, 'end', null); v8(v5, 0, 1, 'end', null); v6.chat_end = v5; this.tards = []; var v7 = 1; v4 = {}; v4.name = 'Rodger'; v4.img1 = 'vtard_rodger'; v4.idx = v7; this.tards[v7++] = v4; v4 = {}; v4.name = 'Bonnie'; v4.img1 = 'vtard_bonnie'; v4.idx = v7; this.tards[v7++] = v4; v4 = {}; v4.name = 'Blob Morley'; v4.img1 = 'vtard_morley'; v4.idx = v7; this.tards[v7++] = v4; v4 = {}; v4.name = 'Plomb Silencieux'; v4.img1 = 'vtard_blob'; v4.idx = v7; this.tards[v7++] = v4; v4 = {}; v4.name = 'Colon Mouseturd'; v4.img1 = 'vtard_colonel'; v4.idx = v7; this.tards[v7++] = v4; v4 = {}; v4.name = 'Jonesy Dave'; v4.img1 = 'vtard_davey'; v4.idx = v7; this.tards[v7++] = v4; v4 = {}; v4.name = 'Shi'; v4.img1 = 'vtard_shi'; v4.idx = v7; this.tards[v7++] = v4; v4 = {}; v4.name = 'Italian Stalin'; v4.img1 = 'vtard_gay'; v4.idx = v7; this.tards[v7++] = v4; v4 = {}; v4.name = 'Kolumbo'; v4.img1 = 'vtard_kolumbo'; v4.idx = v7; this.tards[v7++] = v4; v4 = {}; v4.name = 'Polly'; v4.img1 = 'vtard_polly'; v4.idx = v7; this.tards[v7++] = v4; v4 = {}; v4.name = 'Morf'; v4.img1 = 'vtard_morf'; v4.idx = v7; this.tards[v7++] = v4; }; var v1 = _global.WetBaseMent.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; _global.WetBaseMent.main = function () { if (_root.kongregateServices != undefined) { _root.kongregateServices.connect(); _root.wethidemochiads = true; } var v2 = function (a, b) { if (_root[a] == undefined) { _root[a] = b; } }; v2('host', 'swf.wetgenes.com'); _root.gotoAndStop(1); v2('wp_xspf', 'http://basement.wetgenes.com/swf/WetBaseMent.xspf'); v2('wp_auto', 0); v2('wp_shuffle', 0); v2('wp_back', -16777216); v2('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'); }; v1.setup = function () { this.state_last = null; this.state = null; this.state_next = null; this.login = new Login(this); this.play = new WetBaseMentPlay(this); this.title = new WetBaseMentTitle(this, 'title_all', this.play); this.menu = this.title; this.choose = new WetBaseMentChoose(this); this.zoo = new WetBaseMentZoo(this); this.about = new PlayAbout(this); this.code = new PlayCode(this); this.high = new PlayHigh(this, 'hide_last'); this.over = new OverField({'up': this, 'mc': gfx.create_clip(this.mc, 65544)}); this.over.setup(); this.state_next = 'choose'; this.state_next = 'title'; this.state_next = 'login'; var v2 = MainStatic.get_base_context_menu(this); var v4 = function () { if (this.state == 'play' && (this.play.gamemode == 'race' && !_root.popup)) { this.state_next = this.state; } }; var v3 = new ContextMenuItem('Restart this level.', this.delegate(v4)); v3.id = 'restart'; v3.visible = false; v2.customItems.push(v3); _root.menu = v2; _root.wonderfulls = null; this.lv_wonderful = new LoadVars(); this.lv_wonderful.onLoad = this.delegate(this.lv_wonderful_post, this.lv_wonderful); this.lv_wonderful.sendAndLoad('http://swf.wetgenes.com/swf/wonderful.php?id=5306', this.lv_wonderful, 'POST'); }; v1.lv_wonderful_post = function () { _root.wonderfulls = []; var v2 = 0; goto 10444; for (;;) { ++v2; label 10444: if (v2 >= 10) break; if (this.lv_wonderful['txt' + v2] || (this.lv_wonderful['jpg' + v2] || this.lv_wonderful['url' + v2])) { _root.wonderfulls[v2] = {'url': this.lv_wonderful['url' + v2], 'txt': this.lv_wonderful['txt' + v2], 'img': this.lv_wonderful['jpg' + v2], 'target': '_blank'}; } else { break; } } }; v1.update = function () { var v2 = new Date(); var v3 = v2.getTime(); MainStatic.choose_and_apply_scalar(this); if (!this.setup_done && (_root.getBytesLoaded() == _root.getBytesTotal() && _root.loading.done)) { _root.gotoAndStop(2); this.setup(); this.setup_done = true; } if (!this.setup_done) { MainStatic.update_do(_root.updates); return undefined; } if (this.state_next != null) { if (this.state) { this[this.state].clean(); } this.state_last = this.state; this.state = this.state_next; this.state_next = null; if (this.state) { this[this.state].setup(); } v3 = v2.getTime(); this.old_time = v3; this.update_time = 0; } if (this.state) { this.update_time = Math.floor(this.update_time * 3 / 4); this.update_time += v3 - this.old_time; if (this.update_time > 200) { this.update_time = 200; } while (this.update_time >= 40) { MainStatic.update_do(_root.updates); this[this.state].update(); this.update_time -= 40; } this.old_time = v3; } }; v1.clean = function () {}; ASSetPropFlags(v1, null, 1); v1.level_idx = 1; v1.tard_idx = 1; } #endinitclip } movieClip 20527 __Packages.GizmoKnob { #initclip if (!GizmoKnob) { _global.GizmoKnob = function (_up) { this.up = _up; this.setup(); }; var v1 = _global.GizmoKnob.prototype; v1.setup_base = function () { this.mc = gfx.create_clip(this.up.mc, null); this.mc.style = this.up.mc.style; this.gizmos = new Array(); this.active = true; this.focus = null; this.focus_data = null; this.top = this.up.top; if (this.top == null) { this.top = this; } }; v1.clean_base = function () { var v2 = 0; goto 712; for (;;) { ++v2; label 712: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].clean(); } } this.mc.removeMovieClip(); this.mc = null; }; v1.update_base = function () { this.mc._x = this.x; this.mc._y = this.y; var v2 = 0; goto 907; for (;;) { ++v2; label 907: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].mc._visible = true; this.gizmos[v2].update(); } else { this.gizmos[v2].mc._visible = false; } } }; _global.GizmoKnob.dupe_snapshot = function (snapshot) { var v3 = {}; v3.key = snapshot.key; v3.key_on = snapshot.key_on; v3.key_off = snapshot.key_off; v3.x = snapshot.x; v3.y = snapshot.y; v3.frame = snapshot.frame; return v3; }; v1.input_base = function (snapshot) { var v5 = GizmoKnob.dupe_snapshot(snapshot); this.mc.localToGlobal(v5); var v3 = 0; goto 1279; for (;;) { ++v3; label 1279: if (v3 >= this.gizmos.length) break; if (this.gizmos[v3].active) { this.gizmos[v3].mc.globalToLocal(v5); this.gizmos[v3].input(v5); this.gizmos[v3].mc.localToGlobal(v5); } } return this.top.focus; }; v1.child = function (g) { var v3 = this.gizmos.length; this.gizmos[v3] = g; return g; }; v1.set_area = function (_x, _y, _w, _h) { this.x = _x; this.y = _y; this.w = _w; this.h = _h; }; v1.draw_mask = function (px, py) { gfx.setscroll(this.mc, px, py, this.w, this.h); }; v1.set_knob = function (xx, yy) { if (xx != null) { this.x_knob = xx; if (this.x_knob < 0) { this.x_knob = 0; } if (this.x_knob > 1) { this.x_knob = 1; } } if (yy != null) { this.y_knob = yy; if (this.y_knob < 0) { this.y_knob = 0; } if (this.y_knob > 1) { this.y_knob = 1; } } if (this.up.w > this.w) { this.x = this.x_knob * (this.up.w - this.w); } else { this.x_knob = 0; this.x = 0; } if (this.up.h > this.h) { this.y = this.y_knob * (this.up.h - this.h); } else { this.y_knob = 0; this.y = 0; } }; v1.setup = function () { this.setup_base(); }; v1.clean = function () { this.clean_base(); }; v1.update = function () { if (this.up.w > this.w) { this.x_knob = this.x / (this.up.w - this.w); } else { this.x_knob = 0; } if (this.up.h > this.h) { this.y_knob = this.y / (this.up.h - this.h); } else { this.y_knob = 0; } this.update_base(); }; v1.input = function (snapshot) { if (this.top.focus == this) { var v3 = GizmoKnob.dupe_snapshot(snapshot); this.mc.localToGlobal(v3); this.up.mc.globalToLocal(v3); this.mc_base._visible = false; this.mc_over._visible = false; this.mc_down._visible = true; this.x = this.top.focus_data.orig_x + v3.x - this.top.focus_data.x; this.y = this.top.focus_data.orig_y + v3.y - this.top.focus_data.y; if (this.x + this.w > this.up.w) { this.x = this.up.w - this.w; } if (this.y + this.h > this.up.h) { this.y = this.up.h - this.h; } if (this.x < 0) { this.x = 0; } if (this.y < 0) { this.y = 0; } if (snapshot.key_off & 1) { this.onClick(this.top.focus); this.top.focus = null; return this.top.focus; } this.top.focus = this.input_base(snapshot); return this.top.focus; } if (this.top.focus == null && (snapshot.x > 0 && (snapshot.y > 0 && (snapshot.x < this.w && snapshot.y < this.h)))) { if (snapshot.key_on & 1) { this.top.focus = this; this.top.focus_data = GizmoKnob.dupe_snapshot(snapshot); this.mc.localToGlobal(this.top.focus_data); this.up.mc.globalToLocal(this.top.focus_data); this.top.focus_data.orig_x = this.x; this.top.focus_data.orig_y = this.y; this.mc_base._visible = false; this.mc_over._visible = false; this.mc_down._visible = true; return this.top.focus; } else { this.mc_base._visible = false; this.mc_over._visible = true; this.mc_down._visible = false; } this.top.focus = this.input_base(snapshot); return this.top.focus; } this.mc_base._visible = true; this.mc_over._visible = false; this.mc_down._visible = false; this.top.focus = this.input_base(snapshot); return this.top.focus; }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20528 __Packages.xmlcache { #initclip if (!xmlcache) { _global.xmlcache = function () {}; var v1 = _global.xmlcache.prototype; v1.delegate = function (f, i) { return com.dynamicflash.utils.Delegate.create(this, f, i); }; _global.xmlcache.load = function (xml) { var v3 = _root.urlmap.lookup(xml.url); if (v3) { xml.parseXML(v3); xml.onLoad('swf'); return xml; } else { xml.load(xml.url); return xml; } }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20529 __Packages.Swish { #initclip if (!Swish) { _global.Swish = function (opts) { if (opts) { this.prepare(opts); } }; var v1 = _global.Swish.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.rnd_seed = function (n) { this.rnd_num = n & 65535; }; v1.rnd = function () { this.rnd_num = ((this.rnd_num + 1) * 75 - 1) % 65537; return this.rnd_num; }; v1.prepare = function (opts) { this.rnd_seed(getTimer() & 65535); this.bms = []; this.mcs = []; this.w = 800; this.h = 600; this.cw = 8; this.ch = 6; this.style = 'fade'; this._xmouse = 0; this._ymouse = 0; if (opts.mc) { this._xmouse = opts.mc._xmouse; this._ymouse = opts.mc._ymouse; } if (opts.style) { this.style = opts.style; } if (opts.w) { this.w = opts.w; } if (opts.h) { this.h = opts.h; } if (opts.cw) { this.w = opts.cw; } if (opts.ch) { this.h = opts.ch; } this.sw = this.w / this.cw; this.sh = this.h / this.ch; var v6 = new flash.geom.Matrix(); var v7 = 1; var v8 = 1; if (opts.sw) { v7 = opts.sw; } if (opts.sh) { v8 = opts.sh; } if (opts.s) { v7 = opts.s; v8 = opts.s; } v6.scale(v7, v8); if (opts.mc) { switch (this.style) { case 'wait': this.bms[0] = new flash.display.BitmapData(this.w, this.h, false, 0); this.bms[0].draw(opts.mc, v6); break; case 'fade': this.smul = 0.8; this.bms[0] = new flash.display.BitmapData(this.w, this.h, false, 0); this.bms[0].draw(opts.mc, v6); break; case 'slide_left': case 'slide_down': this.bms[0] = new flash.display.BitmapData(this.w, this.h, false, 0); this.bms[0].draw(opts.mc, v6); break; case 'sqr_plode': case 'sqr_shrink': case 'sqr_rollup': this.smul = 0.95; var v3 = new flash.display.BitmapData(this.w, this.h, false, 0); v3.draw(opts.mc, v6); var v5 = 0; goto 1999; for (;;) { ++v5; label 1999: if (v5 >= this.ch) break; var v4 = 0; goto 2045; for (;;) { ++v4; label 2045: if (v4 >= this.cw) break; this.bms[v5 * this.cw + v4] = new flash.display.BitmapData(this.sw, this.sh, false, 0); this.bms[v5 * this.cw + v4].copyPixels(v3, new flash.geom.Rectangle(v4 * this.sw, v5 * this.sh, this.sw, this.sh), new flash.geom.Point(0, 0)); } } } } if (opts.smul) { this.smul = opts.smul; } this.setup_done = false; }; v1.setup = function () { if (!_root.mc_swish) { _root.mc_swish = gfx.create_clip(_root, 16382); _root.scalar.apply(_root.mc_swish); } if (!_root.mc_swish.mc) { _root.mc_swish.mc = gfx.create_clip(_root.mc_swish); MainStatic.apply_800x600_scale(_root.mc_swish.mc); } this.smc = _root.mc_swish.mc; this.smc._alpha = 100; this.frame = -2; switch (this.style) { this.update_do = this.delegate(this.check_update, null); MainStatic.update_add(_root.updates, this.update_do); this.setup_done = true; return this; case 'wait': case 'fade': case 'slide_left': case 'slide_down': this.mcs[0] = gfx.create_clip(this.smc, null, 800 / 2, 600 / 2); this.mcs[1] = gfx.create_clip(this.mcs[0], null, -800 / 2, -600 / 2, 100 * 800 / this.w, 100 * 600 / this.h); this.mcs[1].attachBitmap(this.bms[0], 0, 'auto', true); this.update_do = this.delegate(this.check_update, null); MainStatic.update_add(_root.updates, this.update_do); this.setup_done = true; return this; case 'sqr_plode': var v3 = 0; goto 2977; for (;;) { ++v3; label 2977: if (v3 >= this.ch) break; var v2 = 0; goto 3023; for (;;) { ++v2; label 3023: if (v2 >= this.cw) break; var v4 = gfx.create_clip(this.smc, null, (v2 + 0.5) * this.sw, (v3 + 0.5) * this.sw); this.mcs[v3 * this.cw + v2] = v4; v4.mc = gfx.create_clip(v4, null, -this.sw / 2, -this.sh / 2); v4.mc.attachBitmap(this.bms[v3 * this.cw + v2], 0, 'always', false); v4.vx = (this.rnd() / 32768 - 1) * 16; v4.vy = -16 + (this.rnd() / 65536) * -16; v4.vr = v4.vx * 0.5; } } this.update_do = this.delegate(this.check_update, null); MainStatic.update_add(_root.updates, this.update_do); this.setup_done = true; return this; case 'sqr_shrink': var v3 = 0; goto 3433; for (;;) { ++v3; label 3433: if (v3 >= this.ch) break; var v2 = 0; goto 3479; for (;;) { ++v2; label 3479: if (v2 >= this.cw) break; var v4 = gfx.create_clip(this.smc, null, (v2 + 0.5) * this.sw, (v3 + 0.5) * this.sw); this.mcs[v3 * this.cw + v2] = v4; v4.mc = gfx.create_clip(v4, null, -this.sw / 2, -this.sh / 2); v4.mc.attachBitmap(this.bms[v3 * this.cw + v2], 0, 'always', false); v4.vx = 0; v4.vy = 0; v4.vr = 4; } } this.update_do = this.delegate(this.check_update, null); MainStatic.update_add(_root.updates, this.update_do); this.setup_done = true; return this; case 'sqr_rollup': var v3 = 0; goto 3815; for (;;) { ++v3; label 3815: if (v3 >= this.ch) break; var v5 = null; if (v3 & 1) { var v2 = 0; goto 3887; for (;;) { ++v2; label 3887: if (v2 >= this.cw) break; if (v5) { var v4 = gfx.create_clip(v5, null, this.sw, 0); v5 = v4; } else { var v4 = gfx.create_clip(this.smc, null, v2 * this.sw, (v3 + 1) * this.sw); v5 = v4; } this.mcs[v3 * this.cw + v2] = v4; v4.mc = gfx.create_clip(v4, null, 0, -this.sh); v4.mc.attachBitmap(this.bms[v3 * this.cw + v2], 0, 'always', false); } } else { var v2 = this.cw - 1; goto 4218; for (;;) { --v2; label 4218: if (v2 < 0) break; if (v5) { var v4 = gfx.create_clip(v5, null, -this.sw, 0); v5 = v4; } else { var v4 = gfx.create_clip(this.smc, null, (v2 + 1) * this.sw, (v3 + 1) * this.sw); v5 = v4; } this.mcs[v3 * this.cw + v2] = v4; v4.mc = gfx.create_clip(v4, null, -this.sw, -this.sh); v4.mc.attachBitmap(this.bms[v3 * this.cw + v2], 0, 'always', false); } } } this.update_do = this.delegate(this.check_update, null); MainStatic.update_add(_root.updates, this.update_do); this.setup_done = true; return this; } this.update_do = this.delegate(this.check_update, null); MainStatic.update_add(_root.updates, this.update_do); this.setup_done = true; return this; }; v1.check_update = function () { if (!this.update()) { this.clean(); } }; v1.clean = function () { if (!this.setup_done) { return false; } MainStatic.update_remove(_root.updates, this.update_do); this.update_do = null; this.setup_done = false; var v2 = 0; goto 4801; for (;;) { ++v2; label 4801: if (v2 >= this.mcs.length) break; if (this.mcs[v2]) { this.mcs[v2].removeMovieClip(); } } this.bms = []; this.mcs = []; this.frame = 0; _root.swish = null; return true; }; v1.update = function () { if (!this.setup_done) { return true; } ++this.frame; if (this.frame < 0) { return true; } switch (this.style) { case 'wait': if (this.frame > 25) { return false; } break; case 'fade': this.smc._alpha *= this.smul; if (this.smc._alpha < 3 && this.smc._alpha > -1) { this.smc._alpha = 0; return false; } return true; break; case 'slide_left': this.mcs[0]._x = -900 + (this.mcs[0]._x - -900) * 0.9; if (this.mcs[0]._x < -800) { return false; } return true; break; case 'slide_down': this.mcs[0]._y = 300 + 700 + (this.mcs[0]._y - (300 + 700)) * 0.9; if (this.mcs[0]._y > 300 + 600) { return false; } return true; break; case 'sqr_plode': if (this.frame > 200) { return false; } var v6 = false; var v4 = 0; goto 5629; for (;;) { ++v4; label 5629: if (v4 >= this.ch) break; var v3 = 0; goto 5675; for (;;) { ++v3; label 5675: if (v3 >= this.cw) break; var v5 = this.mcs[v4 * this.cw + v3]; v5._x += v5.vx; v5._y += v5.vy; v5._rotation += v5.vr; v5.vy += 2; if (this.frame > 10) { v5._xscale *= this.smul; v5._yscale *= this.smul; } if (v5._y < 1200) { v6 = true; } } } if (!v6) { return false; } return true; break; case 'sqr_shrink': if (this.frame > 200) { return false; } var v4 = 0; goto 6008; for (;;) { ++v4; label 6008: if (v4 >= this.ch) break; var v3 = 0; goto 6054; for (;;) { ++v3; label 6054: if (v3 >= this.cw) break; var v5 = this.mcs[v4 * this.cw + v3]; v5._x += v5.vx; v5._y += v5.vy; v5._rotation += v5.vr; v5._xscale *= this.smul; v5._yscale *= this.smul; } } return true; break; case 'sqr_rollup': var v2 = Math.floor(this.frame / 6); if (v2 >= 8) { return false; } var v4 = 0; goto 6325; for (;;) { ++v4; label 6325: if (v4 >= this.ch) break; if (v4 & 1) { if (v2 < 8) { var v5 = this.mcs[v4 * this.cw + (this.cw - 1 - v2)]; v5._rotation -= 90 / 5; } } else { if (v2 < 8) { var v5 = this.mcs[v4 * this.cw + v2]; v5._rotation += 90 / 5; } } } return true; } }; ASSetPropFlags(v1, null, 1); v1.rnd_num = 0; } #endinitclip } movieClip 20530 __Packages.Replay { #initclip if (!Replay) { _global.Replay = function () { this.setup(); }; var v1 = _global.Replay.prototype; v1.setup = function () { this.keymap = []; this.keymap.fire = []; this.keymap.left = []; this.keymap.right = []; this.keymap.up = []; this.keymap.down = []; this.keymap.fire[0] = Key.SPACE; this.keymap.fire[1] = Key.CONTROL; this.keymap.left[0] = Key.LEFT; this.keymap.left[1] = 65; this.keymap.right[0] = Key.RIGHT; this.keymap.right[1] = 68; this.keymap.up[0] = Key.UP; this.keymap.up[1] = 87; this.keymap.down[0] = Key.DOWN; this.keymap.down[1] = 83; this.prekey = new Array(64); this.dat = new Array(1024); this.str = ''; this.reset(); }; v1.reset = function () { this.state = Replay.STATE_NONE; this.key = 0; this.key_on = 0; this.key_off = 0; this.prekey_idx = 0; this.dat[0] = Clown.tostr(Replay.CODE_VERSION, 1) + Clown.tostr(Replay.VERSION, 2); this.dat_idx = 0; this.dat_idx_chunk = 64; this.str_idx = 0; this.frame = 0; this.frame_recorded = 0; this.frame_wait = 0; this.premouse_x = 0; this.premouse_y = 0; this.mouse_x = 0; this.mouse_y = 0; this.play_mouse_x_old = 0; this.play_mouse_y_old = 0; this.play_mouse_f_old = 0; this.play_mouse_x_new = 0; this.play_mouse_y_new = 0; this.play_mouse_f_new = 0; }; v1.record_time = function () { var v2 = this.frame - this.frame_recorded; while (v2 > 0) { if (v2 <= 64) { this.dat[this.dat_idx] += Clown.tostr(Replay.CODE_TIME_64, 1) + Clown.tostr(v2 - 1, 1); if (--this.dat_idx_chunk < 0) { this.dat_idx_chunk = 64; this.dat[++this.dat_idx] = ''; } v2 = 0; } else { if (v2 <= 4096) { this.dat[this.dat_idx] += Clown.tostr(Replay.CODE_TIME_4096, 1) + Clown.tostr(v2 - 1, 2); if (--this.dat_idx_chunk < 0) { this.dat_idx_chunk = 64; this.dat[++this.dat_idx] = ''; } v2 = 0; } else { this.dat[this.dat_idx] += Clown.tostr(Replay.CODE_TIME_4096, 1) + Clown.tostr(4096 - 1, 2); if (--this.dat_idx_chunk < 0) { this.dat_idx_chunk = 64; this.dat[++this.dat_idx] = ''; } v2 -= 4096; } } } this.frame_recorded = this.frame; }; v1.prekey_on = function (k) { this.prekey[this.prekey_idx++] = k; }; v1.prekey_off = function (k) { this.prekey[this.prekey_idx++] = 32 + k; }; v1.prekey_update = function () { if (this.state == Replay.STATE_RECORD) { var v2 = 0; goto 2877; for (;;) { ++v2; label 2877: if (v2 >= this.prekey_idx) break; var v3 = this.prekey[v2]; if (v3 >= 32) { this.record_key_off(v3 - 32); } else { this.record_key_on(v3); } } } else { if (this.state == Replay.STATE_NONE) { var v2 = 0; goto 3043; for (;;) { ++v2; label 3043: if (v2 >= this.prekey_idx) break; var v3 = this.prekey[v2]; if (v3 >= 32) { this.play_key_off(v3 - 32); } else { this.play_key_on(v3); } } } } this.prekey_idx = 0; }; v1.play_key_on = function (k) { var v3 = 1 << k; if ((this.key & v3) == 0) { this.key |= v3; this.key_on |= v3; this.key_off &= v3 ^ -1; } }; v1.record_key_on = function (k) { var v3 = 1 << k; if ((this.key & v3) == 0) { this.play_key_on(k); this.record_time(); this.dat[this.dat_idx] += Clown.tostr(Replay.CODE_KEY, 1) + Clown.tostr(k, 1); if (--this.dat_idx_chunk < 0) { this.dat_idx_chunk = 64; this.dat[++this.dat_idx] = ''; } } }; v1.play_key_off = function (k) { var v3 = 1 << k; if ((this.key & v3) != 0) { this.key &= v3 ^ -1; this.key_on &= v3 ^ -1; this.key_off |= v3; } }; v1.record_key_off = function (k) { var v3 = 1 << k; if ((this.key & v3) == v3) { this.play_key_off(k); this.record_time(); this.dat[this.dat_idx] += Clown.tostr(Replay.CODE_KEY, 1) + Clown.tostr(32 + k, 1); if (--this.dat_idx_chunk < 0) { this.dat_idx_chunk = 64; this.dat[++this.dat_idx] = ''; } } }; v1.record_mouse = function () { if (this.state == Replay.STATE_RECORD) { if (this.play_mouse_f_old != this.frame) { this.record_time(); this.dat[this.dat_idx] += Clown.tostr(Replay.CODE_MOUSE_XY_4096, 1) + Clown.tostr(this.mouse_x + 2048, 2) + Clown.tostr(this.mouse_y + 2048, 2); if (--this.dat_idx_chunk < 0) { this.dat_idx_chunk = 64; this.dat[++this.dat_idx] = ''; } this.play_mouse_x_old = this.mouse_x; this.play_mouse_y_old = this.mouse_y; this.play_mouse_f_old = this.frame; } } }; v1.start_play = function (_str) { this.str = _str; trace('start_play'); trace('replay str_length:' + this.str.length); trace('replay str:' + this.str); this.reset(); this.state = Replay.STATE_PLAY; }; v1.end_play = function () { trace('end_play'); this.state = Replay.STATE_NONE; }; v1.start_record = function () { trace('start_record'); this.reset(); this.find_next_mouse_pos(); this.state = Replay.STATE_RECORD; }; v1.end_record = function () { trace('end_record'); this.state = Replay.STATE_NONE; this.str = this.dat_tostr(); trace(this.str); }; v1.update = function () { this.key_on = 0; this.key_off = 0; if (this.state == Replay.STATE_PLAY) { ++this.frame; this.prekey_update(); this.play_update(); } else { if (this.state == Replay.STATE_RECORD) { ++this.frame; this.mouse_x = Math.floor(this.premouse_x); this.mouse_y = Math.floor(this.premouse_y); this.prekey_update(); } else { if (this.state == Replay.STATE_NONE) { this.mouse_x = Math.floor(this.premouse_x); this.mouse_y = Math.floor(this.premouse_y); this.prekey_update(); } } } }; v1.dat_tostr = function () { var v3 = ''; var v2 = 0; goto 5015; for (;;) { ++v2; label 5015: if (v2 > this.dat_idx) break; v3 += this.dat[v2]; } return v3; }; v1.play_update = function () { if (typeof this.str != 'string') { return undefined; } while (this.frame_wait <= this.frame) { if (this.str_idx > this.str.length) { return undefined; } var v2 = Clown.tonum(this.str, this.str_idx++, 1); switch (v2) { case Replay.CODE_VERSION: if (Clown.tonum(this.str, this.str_idx, 2) != Replay.VERSION) { this.str_idx -= 1; this.frame_wait += 64; } else { this.str_idx += 2; } break; case Replay.CODE_TIME_64: this.frame_wait += Clown.tonum(this.str, this.str_idx++, 1) + 1; break; case Replay.CODE_TIME_4096: this.frame_wait += Clown.tonum(this.str, this.str_idx, 2) + 1; this.str_idx += 2; break; case Replay.CODE_KEY: var v3 = Clown.tonum(this.str, this.str_idx++, 1); if (v3 >= 32) { this.play_key_off(v3 - 32); } else { this.play_key_on(v3); } break; case Replay.CODE_MOUSE_XY_4096: this.play_mouse_x_old = Clown.tonum(this.str, this.str_idx, 2) - 2048; this.str_idx += 2; this.play_mouse_y_old = Clown.tonum(this.str, this.str_idx, 2) - 2048; this.str_idx += 2; this.play_mouse_f_old = this.frame; this.find_next_mouse_pos(); } } if (this.play_mouse_f_old <= this.frame && this.play_mouse_f_new > this.frame) { var v4 = this.frame - this.play_mouse_f_old; v4 /= this.play_mouse_f_new - this.play_mouse_f_old; this.mouse_x = this.play_mouse_x_old + (this.play_mouse_x_new - this.play_mouse_x_old) * v4; this.mouse_y = this.play_mouse_y_old + (this.play_mouse_y_new - this.play_mouse_y_old) * v4; } else { this.mouse_x = this.play_mouse_x_new; this.mouse_y = this.play_mouse_y_new; } }; v1.find_next_mouse_pos = function () { this.play_mouse_x_new = this.play_mouse_x_old; this.play_mouse_y_new = this.play_mouse_y_old; this.play_mouse_f_new = this.play_mouse_f_old; var v5 = this.str_idx; var v4 = this.frame; while (this.play_mouse_f_new == this.play_mouse_f_old) { if (v5 > this.str.length) { return undefined; } var v2 = Clown.tonum(this.str, v5++, 1); switch (v2) { case Replay.CODE_TIME_64: v4 += Clown.tonum(this.str, v5++, 1) + 1; break; case Replay.CODE_TIME_4096: v4 += Clown.tonum(this.str, v5, 2) + 1; v5 += 2; break; case Replay.CODE_MOUSE_XY_4096: this.play_mouse_x_new = Clown.tonum(this.str, v5, 2) - 2048; v5 += 2; this.play_mouse_y_new = Clown.tonum(this.str, v5, 2) - 2048; v5 += 2; this.play_mouse_f_new = v4; return undefined; break; default: v5 += this.code_data_sizes[v2]; } } }; v1.clean = function () {}; v1.apply_key_on_to_prekey = function (c, k) { if (c == this.keymap.fire[0] || c == this.keymap.fire[1]) { this.prekey_on(Replay.KEY_FIRE); } else { if (c == this.keymap.up[0] || c == this.keymap.up[1]) { this.prekey_on(Replay.KEY_UP); } else { if (c == this.keymap.down[0] || c == this.keymap.down[1]) { this.prekey_on(Replay.KEY_DOWN); } else { if (c == this.keymap.left[0] || c == this.keymap.left[1]) { this.prekey_on(Replay.KEY_LEFT); } else { if (c == this.keymap.right[0] || c == this.keymap.right[1]) { this.prekey_on(Replay.KEY_RIGHT); } } } } } }; v1.apply_key_off_to_prekey = function (c, k) { if (c == this.keymap.fire[0] || c == this.keymap.fire[1]) { this.prekey_off(Replay.KEY_FIRE); } else { if (c == this.keymap.up[0] || c == this.keymap.up[1]) { this.prekey_off(Replay.KEY_UP); } else { if (c == this.keymap.down[0] || c == this.keymap.down[1]) { this.prekey_off(Replay.KEY_DOWN); } else { if (c == this.keymap.left[0] || c == this.keymap.left[1]) { this.prekey_off(Replay.KEY_LEFT); } else { if (c == this.keymap.right[0] || c == this.keymap.right[1]) { this.prekey_off(Replay.KEY_RIGHT); } } } } } }; v1.apply_keys_to_prekey = function () { if (Key.isDown(this.keymap.fire[0]) || Key.isDown(this.keymap.fire[1])) { this.prekey_on(Replay.KEY_FIRE); } else { this.prekey_off(Replay.KEY_FIRE); } if (Key.isDown(this.keymap.up[0]) || Key.isDown(this.keymap.up[1])) { this.prekey_on(Replay.KEY_UP); } else { this.prekey_off(Replay.KEY_UP); } if (Key.isDown(this.keymap.down[0]) || Key.isDown(this.keymap.down[1])) { this.prekey_on(Replay.KEY_DOWN); } else { this.prekey_off(Replay.KEY_DOWN); } if (Key.isDown(this.keymap.left[0]) || Key.isDown(this.keymap.left[1])) { this.prekey_on(Replay.KEY_LEFT); } else { this.prekey_off(Replay.KEY_LEFT); } if (Key.isDown(this.keymap.right[0]) || Key.isDown(this.keymap.right[1])) { this.prekey_on(Replay.KEY_RIGHT); } else { this.prekey_off(Replay.KEY_RIGHT); } }; ASSetPropFlags(v1, null, 1); _global.Replay.VERSION = 4; _global.Replay.STATE_NONE = 0; _global.Replay.STATE_RECORD = 1; _global.Replay.STATE_PLAY = 2; _global.Replay.CODE_VERSION = 0; _global.Replay.CODE_TIME_64 = 1; _global.Replay.CODE_TIME_4096 = 2; _global.Replay.CODE_KEY = 3; _global.Replay.CODE_MOUSE_XY_4096 = 4; v1.code_data_sizes = [2, 1, 2, 1, 4]; _global.Replay.KEY_MBUTTON = 0; _global.Replay.KEY_FIRE = 1; _global.Replay.KEY_UP = 2; _global.Replay.KEY_DOWN = 3; _global.Replay.KEY_LEFT = 4; _global.Replay.KEY_RIGHT = 5; _global.Replay.KEY_MAX = 6; _global.Replay.KEYM_MBUTTON = 1; _global.Replay.KEYM_FIRE = 2; _global.Replay.KEYM_UP = 4; _global.Replay.KEYM_DOWN = 8; _global.Replay.KEYM_LEFT = 16; _global.Replay.KEYM_RIGHT = 32; _global.Replay.KEYM_MAX = 64; } #endinitclip } movieClip 20531 __Packages.Clown { #initclip if (!Clown) { _global.Clown = function () {}; var v1 = _global.Clown.prototype; _global.Clown.tostr = function (num, len) { var v6 = num; var v7 = ''; var v4 = 0; goto 382; for (;;) { ++v4; label 382: if (v4 >= len) break; var v5 = v6 & 63; v7 += Clown.chars.charAt(v5); v6 >>= 6; } return v7; }; _global.Clown.tonum = function (str, base, len) { var v8 = 1; var v7 = 0; var v6 = base; goto 559; for (;;) { ++v6; label 559: if (v6 >= base + len) break; var v5 = str.charCodeAt(v6); v7 += Clown.nums[v5] * v8; v8 *= 64; } return v7; }; _global.Clown.bits_to_str = function (arr, bits) { if (bits % 6 != 0) { return null; } var v4 = ''; var v5 = 0; goto 756; for (;;) { ++v5; label 756: if (v5 >= arr.length) break; v4 += Clown.tostr(arr[v5], bits / 6); } return v4; }; _global.Clown.str_to_bits = function (str, off, bits) { if (bits % 6 != 0) { return null; } var v7 = bits / 6; var v6 = []; var v8 = str.length; var v5 = off; goto 966; for (;;) { v5 += v7; label 966: if (v5 >= v8) break; v6[v6.length] = Clown.tonum(str, v5, v7); } return v6; }; _global.Clown.bytes_to_pak = function (aa) { var v4 = aa.length; var v8 = []; var v5 = 0; goto 1109; for (;;) { v5 += 3; label 1109: if (v5 >= v4) break; if (v5 + 3 <= v4) { var v7 = aa[v5 + 0] * 65536; v7 += aa[v5 + 1] * 256; v7 += aa[v5 + 2]; } else { var v7 = aa[v5 + 0] * 65536; if (v5 + 1 < v4) { v7 += aa[v5 + 1] * 256; } if (v5 + 2 < v4) { v7 += aa[v5 + 2]; } } var v9 = v7 >> 6 + 6 + 6 & 63; var v10 = Clown.chars.charAt(v9); v9 = v7 >> 6 + 6 & 63; v10 += Clown.chars.charAt(v9); v9 = v7 >> 6 & 63; v10 += Clown.chars.charAt(v9); v9 = v7 & 63; v10 += Clown.chars.charAt(v9); v8[v8.length] = v10; } return v8.join(''); }; _global.Clown.str_to_pak = function (str) { var v4 = str.length; var v3 = Clown.tostr(v4, 4); var v5 = 0; goto 1738; for (;;) { v5 += 3; label 1738: if (v5 >= v4) break; if (v5 + 3 <= v4) { var v7 = str.charCodeAt(v5 + 0); v7 += str.charCodeAt(v5 + 1) * 256; v7 += str.charCodeAt(v5 + 2) * 65536; v3 += Clown.tostr(v7, 4); } else { var v7 = str.charCodeAt(v5 + 0); if (v5 + 1 < v4) { v7 += str.charCodeAt(v5 + 1) * 256; } if (v5 + 2 < v4) { v7 += str.charCodeAt(v5 + 2) * 65536; } v3 += Clown.tostr(v7, 4); } } return v3; }; _global.Clown.pak_to_str = function (pak) { var v3 = ''; var v4 = Clown.tonum(pak, 0, 4); var v6 = 4; var v5 = 0; goto 2239; for (;;) { v5 += 3; label 2239: if (v5 >= v4) break; if (v6 > pak.length) { return v3; } if (v5 + 3 <= v4) { var v8 = Clown.tonum(pak, v6, 4); v6 += 4; v3 += String.fromCharCode(v8 & 255, v8 >> 8 & 255, v8 >> 16 & 255); } else { var v8 = Clown.tonum(pak, v6, 4); v6 += 4; v3 += String.fromCharCode(v8 & 255); if (v5 + 1 < v4) { v3 += String.fromCharCode(v8 >> 8 & 255); } if (v5 + 2 < v4) { v3 += String.fromCharCode(v8 >> 16 & 255); } } } return v3; }; _global.Clown.clean_str = function (s) { var v5 = ''; var v3 = 0; goto 2718; for (;;) { ++v3; label 2718: if (v3 >= s.length) break; var v4 = s.charCodeAt(v3); if (Clown.nums[v4] > 0 || v4 == 65) { v5 += String.fromCharCode(v4); } } return v5; }; ASSetPropFlags(v1, null, 1); _global.Clown.chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; _global.Clown.nums = [0, 0, 0, 0, 0, 0, 0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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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; } #endinitclip } movieClip 20532 __Packages.WetBaseMentLevel_level_01 { #initclip if (!WetBaseMentLevel_level_01) { _global.WetBaseMentLevel_level_01 = function () {}; var v1 = _global.WetBaseMentLevel_level_01.prototype; ASSetPropFlags(v1, null, 1); v1.img_bak = 'level_01_bak'; v1.img_for = 'level_01_for'; v1.name = 'level_01'; v1.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, 0, 0, 0, 0, 0, 0, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 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, 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]; } #endinitclip } movieClip 20533 __Packages.WetBaseMentLevel_level_05 { #initclip if (!WetBaseMentLevel_level_05) { _global.WetBaseMentLevel_level_05 = function () {}; var v1 = _global.WetBaseMentLevel_level_05.prototype; ASSetPropFlags(v1, null, 1); v1.img_bak = 'level_05_bak'; v1.img_for = 'level_05_for'; v1.name = 'level_05'; v1.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, 0, 0, 0, 235, 0, 0, 1, 1, 0, 0, 254, 0, 0, 0, 0, 0, 17, 17, 17, 0, 0, 0, 0, 0, 237, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 0, 1, 1, 0, 0, 0, 239, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 17, 17, 0, 0, 0,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0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 1, 1, 0, 0, 238, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 254, 0, 254, 0, 17, 0, 0, 1, 1, 0, 254, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 236, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 17, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 0, 1, 1, 0, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 17, 0, 254, 0, 254, 0, 17, 0, 0, 1, 1, 0, 17, 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, 17, 0, 0, 0, 0, 0, 17, 0, 0, 1, 1, 0, 17, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 219, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 1, 1, 0, 17, 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, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 17, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 0, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 0, 254, 0, 17, 0, 254, 0, 0, 0, 0, 0, 0, 1, 1, 0, 223, 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, 17, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 254, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 255, 0, 0, 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, 1, 1, 0, 254, 0, 0, 0, 0, 17, 17, 17, 17, 17, 17, 17, 221, 0, 0, 0, 17, 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, 254, 0, 0, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 220, 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, 254, 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]; } #endinitclip } movieClip 20534 __Packages.WetBaseMentLevel_level_09 { #initclip if (!WetBaseMentLevel_level_09) { _global.WetBaseMentLevel_level_09 = function () {}; var v1 = _global.WetBaseMentLevel_level_09.prototype; ASSetPropFlags(v1, null, 1); v1.img_bak = 'level_09_bak'; v1.img_for = 'level_09_for'; v1.name = 'level_09'; v1.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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 252, 0, 0, 17, 17, 17, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 17, 17, 17, 1, 1, 0, 0, 0, 0, 0, 0,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, 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]; } #endinitclip } movieClip 20535 __Packages.gfx { #initclip if (!gfx) { _global.gfx = function () {}; var v1 = _global.gfx.prototype; _global.gfx.create_text_edit = function (mc, depth, x, y, w, h) { if (mc.newdepth == undefined) { mc.newdepth = 0; } if (depth == null) { depth = ++mc.newdepth; } mc.createTextField('tf' + depth, depth, x, y, w, h); var v8 = mc['tf' + depth]; v8.embedFonts = true; v8.html = false; v8.multiline = false; v8.wordWrap = false; v8.type = 'input'; v8.selectable = true; v8.onSetFocus = function () { var v2 = int; Selection.getCaretIndex(); if (v2 < 0) { v2 = 0; } Selection.setFocus(this); Selection.setSelection(0, 0); Selection.setSelection(v2, v2); }; v8.setNewTextFormat(gfx.create_text_format(16, -1)); return v8; }; _global.gfx.create_text = function (mc, depth, x, y, w, h) { if (mc.newdepth == undefined) { mc.newdepth = 0; } if (depth == null) { depth = ++mc.newdepth; } mc.createTextField('tf' + depth, depth, x, y, w, h); var v8 = mc['tf' + depth]; v8.type = 'dynamic'; v8.embedFonts = true; v8.html = false; v8.multiline = true; v8.selectable = true; v8.wordWrap = false; v8.setNewTextFormat(gfx.create_text_format(16, -1)); return v8; }; _global.gfx.create_text_format = function (fntsiz, fntcol, boldit) { var v5 = new TextFormat(); v5.font = 'Bitstream Vera Sans'; v5.color = fntcol & 16777215; v5.size = fntsiz; if (!boldit) { v5.bold = false; return v5; } v5.bold = true; return v5; }; _global.gfx.create_text_html = function (mc, depth, x, y, w, h) { if (mc.newdepth == undefined) { mc.newdepth = 0; } if (depth == null) { depth = ++mc.newdepth; } mc.createTextField('tf' + depth, depth, x, y, w, h); var v8 = mc['tf' + depth]; v8.type = 'dynamic'; v8.embedFonts = true; v8.html = true; v8.multiline = true; v8.selectable = false; v8.wordWrap = true; v8.setNewTextFormat(gfx.create_text_format(16, -1)); return v8; }; _global.gfx.set_text_html = function (tf, fntsiz, fntcol, str) { var v6 = '<font face="Bitstream Vera Sans" size="' + fntsiz + '" color="#' + alt.Sprintf.format('%06x', fntcol & 16777215) + '">'; v6 += str; v6 += '</font>'; tf.htmlText = v6; return v6; }; _global.gfx.create_clip = function (mc, depth, px, py, sx, sy, rot) { if (mc.newdepth == undefined) { mc.newdepth = 0; } if (depth == null) { depth = ++mc.newdepth; } var v9 = mc.createEmptyMovieClip('mc' + depth, depth); v9.newdepth = 0; if (px != null) { v9._x = px; } if (py != null) { v9._y = py; } if (sx != null) { v9._xscale = sx; } if (sy != null) { v9._yscale = sy; } if (rot != null) { v9._rotation = rot; } return v9; }; _global.gfx.add_clip = function (mc, str, depth, px, py, sx, sy, rot) { if (mc.newdepth == undefined) { mc.newdepth = 0; } if (depth == null) { depth = ++mc.newdepth; } var v10 = mc.attachMovie(str, 'mc' + depth, depth); v10.newdepth = 0; if (px != null) { v10._x = px; } if (py != null) { v10._y = py; } if (sx != null) { v10._xscale = sx; } if (sy != null) { v10._yscale = sy; } if (rot != null) { v10._rotation = rot; } return v10; }; _global.gfx.clear = function (mc) { mc.style = []; mc.style.out = -1; mc.style.fill = -1; mc.clear(); }; _global.gfx.create_rounded_text_button = function (mc, depth, x, y, w, h, b, c, l) { if (b == null) { b = 3; } if (c == null) { c = 8; } if (l == null) { l = 2; } gfx.draw_rounded_rectangle(mc, b, c, l, x, y, w, h); var v11 = gfx.create_text_html(mc, depth, x, y, w, h); return v11; }; _global.gfx.draw_rounded_rectangle = function (mc, b, c, l, x, y, w, h) { if (l != 0) { mc.lineStyle(l, mc.style.out & 16777215, (mc.style.out >> 24 & 255) * 100 / 255); } else { mc.lineStyle(undefined, undefined); } mc.moveTo(x + b + c, y + b); mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255); mc.lineTo(x + w - b - c, y + b); mc.curveTo(x + w - b, y + b, x + w - b, y + b + c); mc.lineTo(x + w - b, y + h - b - c); mc.curveTo(x + w - b, y + h - b, x + w - b - c, y + h - b); mc.lineTo(x + b + c, y + h - b); mc.curveTo(x + b, y + h - b, x + b, y + h - b - c); mc.lineTo(x + b, y + b + c); mc.curveTo(x + b, y + b, x + b + c, y + b); mc.endFill(); }; _global.gfx.draw_box = function (mc, l, x, y, w, h) { if (l != 0) { mc.lineStyle(l, mc.style.out & 16777215, (mc.style.out >> 24 & 255) * 100 / 255); } else { mc.lineStyle(undefined, undefined); } mc.moveTo(x, y); mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255); mc.lineTo(x + w, y); mc.lineTo(x + w, y + h); mc.lineTo(x, y + h); mc.lineTo(x, y); mc.endFill(); }; _global.gfx.draw_fcirc4 = function (mc, l, x1, y1, x2, y2, x3, y3, x4, y4) { if (l != 0) { mc.lineStyle(l, mc.style.out & 16777215, (mc.style.out >> 24 & 255) * 100 / 255); } else { mc.lineStyle(undefined, undefined); } mc.moveTo((x1 + x2) / 2, (y1 + y2) / 2); mc.beginFill(mc.style.fill & 16777215, (mc.style.fill >> 24 & 255) * 100 / 255); mc.curveTo(x2, y2, (x2 + x3) / 2, (y2 + y3) / 2); mc.curveTo(x3, y3, (x3 + x4) / 2, (y3 + y4) / 2); mc.curveTo(x4, y4, (x4 + x1) / 2, (y4 + y1) / 2); mc.curveTo(x1, y1, (x1 + x2) / 2, (y1 + y2) / 2); mc.endFill(); }; _global.gfx.adjust_allmovieclips = function (base, funk) { for (var nam in base) { var v4 = base[nam]; if (typeof v4 == 'movieclip') { gfx.adjust_allmovieclips(v4, funk); } } funk(base); }; _global.gfx.setscroll = function (mc, minx, miny, sizx, sizy) { mc.scrollRect = new flash.geom.Rectangle(minx, miny, sizx, sizy); }; _global.gfx.dropshadow = function (mc, a, b, c, d, e, f, g, h) { mc.filters = [new flash.filters.DropShadowFilter(a, b, c, d, e, f, g, h)]; }; _global.gfx.glow = function (mc, a, b, c, d, e, f, g, h) { mc.filters = [new flash.filters.GlowFilter(a, b, c, d, e, f, g, h)]; }; _global.gfx.blur = function (mc, a, b, c) { mc.filters = [new flash.filters.BlurFilter(a, b, c)]; }; _global.gfx.blurglow = function (mc, aa, bb, cc, a, b, c, d, e, f, g, h) { mc.filters = [new flash.filters.BlurFilter(aa, bb, cc), new flash.filters.GlowFilter(a, b, c, d, e, f, g, h)]; }; _global.gfx.clear_filters = function (mc) { mc.filters = null; }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20536 __Packages.GizmoMaster { #initclip if (!GizmoMaster) { _global.GizmoMaster = function (_up) { this.up = _up; this.setup(); }; var v1 = _global.GizmoMaster.prototype; v1.setup_base = function () { this.mc = gfx.create_clip(this.up.mc, null); this.mc.style = this.up.mc.style; this.gizmos = new Array(); this.active = true; this.focus = null; this.focus_data = null; this.top = this.up.top; if (this.top == null) { this.top = this; } }; v1.clean_base = function () { var v2 = 0; goto 664; for (;;) { ++v2; label 664: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].clean(); } } this.mc.removeMovieClip(); this.mc = null; }; v1.update_base = function () { this.mc._x = this.x; this.mc._y = this.y; var v2 = 0; goto 859; for (;;) { ++v2; label 859: if (v2 >= this.gizmos.length) break; if (this.gizmos[v2].active) { this.gizmos[v2].mc._visible = true; this.gizmos[v2].update(); } else { this.gizmos[v2].mc._visible = false; } } }; _global.GizmoMaster.dupe_snapshot = function (snapshot) { var v3 = {}; v3.key = snapshot.key; v3.key_on = snapshot.key_on; v3.key_off = snapshot.key_off; v3.x = snapshot.x; v3.y = snapshot.y; v3.frame = snapshot.frame; return v3; }; v1.input_base = function (snapshot) { var v5 = GizmoMaster.dupe_snapshot(snapshot); this.mc.localToGlobal(v5); var v3 = 0; goto 1231; for (;;) { ++v3; label 1231: if (v3 >= this.gizmos.length) break; if (this.gizmos[v3].active) { this.gizmos[v3].mc.globalToLocal(v5); this.gizmos[v3].input(v5); this.gizmos[v3].mc.localToGlobal(v5); } } return this.top.focus; }; v1.child = function (g) { var v3 = this.gizmos.length; this.gizmos[v3] = g; return g; }; v1.set_area = function (_x, _y, _w, _h) { this.x = _x; this.y = _y; this.w = _w; this.h = _h; }; v1.draw_mask = function (px, py) { gfx.setscroll(this.mc, px, py, this.w, this.h); }; v1.setup = function () { this.setup_base(); }; v1.clean = function () { this.clean_base(); }; v1.update = function () { var v2 = (new Date()).getTime(); v2 = ((v2 & 16383) - 8192) / 8192; if (v2 < 0) { v2 = -v2; } var v3 = v2 * v2; this.spine = v3 + v3 * 2 - v3 * v2 * 2; this.update_base(); }; v1.input = function (snapshot) { this.focus = this.input_base(snapshot); return this.focus; }; ASSetPropFlags(v1, null, 1); } #endinitclip } movieClip 20537 __Packages.TalkyBub { #initclip if (!TalkyBub) { _global.TalkyBub = function (_up, _orig, _x, _y, _offorg) { this.up = _up; this.origin_mc = _orig; this.x = _x; this.y = _y; this.offorg = _offorg; this.mc_floater = gfx.create_clip(this.up.mc, null); gfx.clear(this.mc_floater); this.mc_floater.w = 200; this.mc_floater.h = 80; this.mc_floaterz = gfx.create_clip(this.mc_floater, null); this.mc_floaterz._x = 100; this.mc_floaterz._y = 40; this.tf_floater = gfx.create_text_html(this.mc_floaterz, null, -100, 0, 200, 200); gfx.dropshadow(this.mc_floater, 5, 45, 0, 0.5, 10, 10, 2, 3); this.float_str = ''; this.float_time = -100; this.active = false; this.snap = true; }; var v1 = _global.TalkyBub.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.display = function (str, tim) { if (str != null && this.float_str != str) { this.float_str = str; gfx.set_text_html(this.tf_floater, 18, 0, '<p align="center">' + str + '</p>'); this.mc_floater.h = this.tf_floater.textHeight + 6; gfx.clear(this.mc_floaterz); this.mc_floaterz.style.out = -1; this.mc_floaterz.style.fill = -3355444; gfx.draw_box(this.mc_floaterz, 4, -100, -this.mc_floater.h / 2, 200, this.mc_floater.h); this.tf_floater._y = -this.mc_floater.h / 2; this.mc_floaterz._y = this.mc_floater.h / 2; } if (this.mc_floater.getDepth() != this.up.topdepth) { this.mc_floater.swapDepths(this.up.topdepth); } this.float_time = tim; this.active = true; this.update(); }; v1.update = function () { if (this.active) { if (this.origin_mc) { if (this.offorg == 'global') { var v20 = {'x': 0, 'y': 0}; this.origin_mc.localToGlobal(v20); v20.x += this.x; v20.y += this.y; this.up.mc.globalToLocal(v20); } else { var v20 = {'x': this.x, 'y': this.y}; this.origin_mc.localToGlobal(v20); this.up.mc.globalToLocal(v20); } this.lastpx = v20.x; this.lastpy = v20.y; } else { var v20 = {'x': this.lastpx, 'y': this.lastpy}; } if (this.float_time > 0) { --this.float_time; this.mc_floater._visible = true; this.mc_floaterz._xscale = 100; this.mc_floaterz._yscale = 100; } else { --this.float_time; this.mc_floaterz._xscale = 100 + this.float_time * 10; this.mc_floaterz._yscale = this.mc_floaterz._xscale; if (this.float_time == -10) { this.mc_floater._visible = false; this.active = false; this.snap = true; } } var v2 = this.mc_floater.w; var v3 = this.mc_floater.h; var v10 = this.up.w; var v11 = this.up.h; var v6 = v20.x - v10 / 2; var v7 = v20.y - v11 / 2; var v14 = v6 * v6; var v18 = v6 < 0 ? -v6 : v6; var v15 = v7 * v7; var v19 = v7 < 0 ? -v7 : v7; var v13 = v14 + v15; var v12 = Math.sqrt(v13); if (v12 == 0) { v12 = 1; v6 = 0; v7 = 1; } var v8 = v6 / v12; var v9 = v7 / v12; var v16 = -v8 * v2 * 1.73; var v17 = -v9 * v3 * 1.73; if (v18 / 2 > v19) { if (v6 < 0) { var v4 = v20.x; var v5 = v20.y + v17 - v3 / 2; v4 += 50; } else { var v4 = v20.x - v2; var v5 = v20.y + v17 - v3 / 2; v4 -= 50; } } else { if (v18 < v19 / 2) { if (v7 < 0) { var v4 = v20.x + v16 - v2 / 2; var v5 = v20.y; v5 += 50; } else { var v4 = v20.x + v16 - v2 / 2; var v5 = v20.y - v3; v5 -= 50; } } else { if (v6 < 0) { if (v7 < 0) { var v4 = v20.x; var v5 = v20.y; v4 += 50; v5 += 50; } else { var v4 = v20.x; var v5 = v20.y - v3; v4 += 50; v5 -= 50; } } else { if (v7 < 0) { var v4 = v20.x - v2; var v5 = v20.y; v4 -= 50; v5 += 50; } else { var v4 = v20.x - v2; var v5 = v20.y - v3; v4 -= 50; v5 -= 50; } } } } if (this.active) { if (this.snap) { this.mc_floater._x = v4; this.mc_floater._y = v5; this.snap = false; } else { this.mc_floater._x = this.mc_floater._x * 0.75 + v4 * 0.25; this.mc_floater._y = this.mc_floater._y * 0.75 + v5 * 0.25; } } if (this.float_time > 0) { gfx.clear(this.mc_floaterz); this.mc_floaterz.style.out = -1; this.mc_floaterz.style.fill = -3355444; v6 = v20.x - (this.mc_floater._x + this.mc_floaterz._x); v7 = v20.y - (this.mc_floater._y + this.mc_floaterz._y); v14 = v6 * v6; v15 = v7 * v7; v13 = v14 + v15; v12 = Math.sqrt(v13); if (v12 == 0) { v12 = 1; v6 = 0; v7 = 1; } v8 = v6 / v12; v9 = v7 / v12; this.mc_floaterz.lineStyle(undefined, undefined); this.mc_floaterz.moveTo(v6 - v8 * 40, v7 - v9 * 40); this.mc_floaterz.beginFill(16777215, 100); this.mc_floaterz.lineTo(v9 * this.mc_floater.h * 0.25, v8 * -this.mc_floater.h * 0.25); this.mc_floaterz.lineTo(v9 * -this.mc_floater.h * 0.25, v8 * this.mc_floater.h * 0.25); this.mc_floaterz.lineTo(v6 - v8 * 40, v7 - v9 * 40); this.mc_floaterz.endFill(); gfx.draw_box(this.mc_floaterz, 4, -100, -this.mc_floater.h / 2, 200, this.mc_floater.h); } } return false; }; ASSetPropFlags(v1, null, 1); v1.lastpx = 0; v1.lastpy = 0; } #endinitclip } movieClip 20538 __Packages.Vtard3d { #initclip if (!Vtard3d) { _global.Vtard3d = function (_up) { this.up = _up; }; var v1 = _global.Vtard3d.prototype; v1.delegate = function (f, d) { return com.dynamicflash.utils.Delegate.create(this, f, d); }; v1.setup = function (nam) { this.mc = gfx.create_clip(this.up.mc, null); this.mc.hitArea = gfx.create_clip(this.mc, 65535); gfx.clear(this.mc.hitArea); gfx.draw_box(this.mc.hitArea, 0, -40, -70, 60, 70); this.mc.hitArea._visible = false; this.mc.hitArea = this.mc.hitArea; this.minion = new Minion(this); this.minion.setup(nam, 50, 94); this.px = 0; this.py = 0; this.pz = 0; this.vx = 0; this.vy = 0; this.vz = 0; this.anim = null; this.update(); }; v1.clean = function () { this.mc.removeMovieClip(); }; v1.update = function () { this.vx = 0; this.vz = 0; if (this.rndcount <= 0) { this.rndcount = 10 + this.up.rnd() % 25 * 5; switch (this.up.rnd() % 14) { case 0: this.rndstate = 'idle'; break; case 1: this.rndstate = 'left'; break; case 2: this.rndstate = 'right'; break; case 3: this.rndstate = 'in'; break; case 4: this.rndstate = 'out'; break; case 5: this.rndstate = 'leftin'; break; case 6: this.rndstate = 'leftout'; break; case 7: this.rndstate = 'rightin'; break; case 8: this.rndstate = 'rightout'; break; default: this.rndstate = 'pose'; if (this.rndcount > 25 * 1) { this.rndcount = 25 * 1; } switch (this.up.rnd() % 19) { case 0: this.rndpose = 'bird'; break; case 1: this.rndpose = 'gunner'; break; case 2: this.rndpose = 'hiphands'; break; case 3: this.rndpose = 'teapot'; break; case 4: this.rndpose = 'angry'; break; case 5: this.rndpose = 'confused'; break; case 6: this.rndpose = 'determind'; break; case 7: this.rndpose = 'devious'; break; case 8: this.rndpose = 'embarrassed'; break; case 9: this.rndpose = 'energetic'; break; case 10: this.rndpose = 'excited'; break; case 11: this.rndpose = 'happy'; break; case 12: this.rndpose = 'indescribable'; break; case 13: this.rndpose = 'nerdy'; break; case 14: this.rndpose = 'sad'; break; case 15: this.rndpose = 'scared'; break; case 16: this.rndpose = 'sleepy'; break; case 17: this.rndpose = 'thoughtful'; break; case 18: this.rndpose = 'working'; } if (this.up.rnd() % 4 == 0) { this.talk.display(this.rndsays[this.up.rnd() % this.rndsays.length], this.rndcount); } } } else { --this.rndcount; } switch (this.rndstate) { case 'pose': this.vx = 0; this.vz = 0; break; case 'idle': this.vx = 0; this.vz = 0; break; case 'left': this.vx = -2.5; this.vz = 0; break; case 'leftin': this.vx = -2.5; this.vz = -0.5; break; case 'leftout': this.vx = -2.5; this.vz = 0.5; break; case 'right': this.vx = 2.5; this.vz = 0; break; case 'rightin': this.vx = 2.5; this.vz = -0.5; break; case 'rightout': this.vx = 2.5; this.vz = 0.5; break; case 'in': this.vx = 0; this.vz = -2.5; break; case 'out': this.vx = 0; this.vz = 2.5; } this.px += this.vx; this.py += this.vy; this.pz += this.vz; if (this.px < this.up.x3_min + 20) { this.px = this.up.x3_min + 20; this.rndstate = 'right'; } if (this.py < this.up.y3_min + 0) { this.py = this.up.y3_min + 0; this.rndcount = 0; } if (this.pz < this.up.z3_min + 20) { this.pz = this.up.z3_min + 20; this.rndstate = 'out'; } if (this.px > this.up.x3_max - 20) { this.px = this.up.x3_max - 20; this.rndstate = 'left'; } if (this.py > this.up.y3_max - 0) { this.py = this.up.y3_max - 0; this.rndcount = 0; } if (this.pz > this.up.z3_max - 20) { this.pz = this.up.z3_max - 20; this.rndstate = 'in'; } var v3 = Math.floor((this.px + 5) / 10) * 10; var v4 = Math.floor((this.py + 5) / 10) * 10; var v5 = Math.floor((this.pz + 5) / 10) * 10; if (this.vx == 0 && this.vz == 0) { if (this.anim != 'idle') { this.anim = 'idle'; this.frame = 0; this.frame_wait = 0; this.dx = v3; this.dy = v4; this.dz = v5; } } else { if (this.vx * this.vx >= this.vz * this.vz) { if (this.vx > 0) { if (this.anim != 'right') { this.anim = 'right'; this.frame = 3; this.frame_wait = 0; this.dx = v3; this.dy = v4; this.dz = v5; } } else { if (this.anim != 'left') { this.anim = 'left'; this.frame = 3; this.frame_wait = 0; this.dx = v3; this.dy = v4; this.dz = v5; } } } else { if (this.vz > 0) { if (this.anim != 'in') { this.anim = 'in'; this.frame = 3; this.frame_wait = 0; this.dx = v3; this.dy = v4; this.dz = v5; } } else { if (this.anim != 'out') { this.anim = 'out'; this.frame = 3; this.frame_wait = 0; this.dx = v3; this.dy = v4; this.dz = v5; } } } } switch (this.anim) { case 'idle': ++this.frame_wait; if (this.frame_wait > 8) { this.frame += 1; this.frame_wait = 0; } this.dx = v3; this.dy = v4; this.dz = v5; this.frame %= 6; if (this.rndstate == 'pose') { this.minion.display(this.rndpose, this.frame); } else { this.minion.display('idle', this.frame); } break; case 'left': ++this.frame_wait; var v6 = (v3 - this.dx) / -10; if (v6 != 0) { this.frame += v6; this.frame_wait = 0; } if (this.frame_wait > 8) { this.frame += 1; this.frame_wait = 0; } this.dx = v3; this.dy = v4; this.dz = v5; this.frame %= 8; this.minion.display('left', this.frame); break; case 'right': ++this.frame_wait; var v6 = (v3 - this.dx) / 10; if (v6 != 0) { this.frame += v6; this.frame_wait = 0; } if (this.frame_wait > 8) { this.frame += 1; this.frame_wait = 0; } this.dx = v3; this.dy = v4; this.dz = v5; this.frame %= 8; this.minion.display('right', this.frame); break; case 'in': ++this.frame_wait; var v6 = (v5 - this.dz) / 10; if (v6 != 0) { this.frame += v6; this.frame_wait = 0; } if (this.frame_wait > 8) { this.frame += 1; this.frame_wait = 0; } this.dx = v3; this.dy = v4; this.dz = v5; this.frame %= 4; this.minion.display('in', this.frame); break; case 'out': ++this.frame_wait; var v6 = (v5 - this.dz) / -10; if (v6 != 0) { this.frame += v6; this.frame_wait = 0; } if (this.frame_wait > 8) { this.frame += 1; this.frame_wait = 0; } this.dx = v3; this.dy = v4; this.dz = v5; this.frame %= 4; this.minion.display('out', this.frame); } this.mc._x = this.up.x2 + this.dx + this.dz / 4; this.mc._y = this.up.y2 - this.dy - this.dz / 4; }; ASSetPropFlags(v1, null, 1); v1.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!']; v1.rndstate = ''; v1.rndcount = 0; v1.rndpose = 0; } #endinitclip } movieClip 20539 __Packages.mochi.MochiServices { #initclip if (!mochi.MochiServices) { if (!mochi) { _global.mochi = new Object(); } _global.mochi.MochiServices = function () {}; var v1 = _global.mochi.MochiServices.prototype; _global.mochi.MochiServices.__get__id = function () { return mochi.MochiServices._id; }; _global.mochi.MochiServices.__get__clip = function () { return mochi.MochiServices._container; }; _global.mochi.MochiServices.getVersion = function () { return '1.1'; }; _global.mochi.MochiServices.allowDomains = function (server) { var v3 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v3); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v3); } } return v3; }; _global.mochi.MochiServices.__get__isNetworkAvailable = function () { if (System.security) { var v2 = System.security; if (v2.sandboxType == 'localWithFile') { return false; } } return true; }; _global.mochi.MochiServices.__set__comChannelName = function (val) { if (val != undefined) { if (val.length > 3) { mochi.MochiServices._sendChannelName = val + '_fromgame'; mochi.MochiServices._rcvChannelName = val; mochi.MochiServices.initComChannels(); } } return this.__get__comChannelName(); }; _global.mochi.MochiServices.__get__connected = function () { return mochi.MochiServices._connected; }; _global.mochi.MochiServices.connect = function (id, clip, onError) { if (!mochi.MochiServices._connected && mochi.MochiServices._container == undefined) { trace('MochiServices Connecting...'); mochi.MochiServices._connecting = true; mochi.MochiServices.init(id, clip); } if (onError != undefined) { mochi.MochiServices.onError = onError; } else { if (mochi.MochiServices.onError == undefined) { mochi.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } }; _global.mochi.MochiServices.disconnect = function () { if (mochi.MochiServices._connected || mochi.MochiServices._connecting) { mochi.MochiServices._connected = false; mochi.MochiServices._connecting = mochi.MochiServices._connected; if (mochi.MochiServices._sendChannel._queue != undefined) { } if (mochi.MochiServices._container != undefined) { mochi.MochiServices._container.removeMovieClip(); delete mochi.MochiServices._container; } } }; _global.mochi.MochiServices.init = function (id, clip) { mochi.MochiServices._id = id; if (clip != undefined) { mochi.MochiServices._container = clip.createEmptyMovieClip('__mochiservicesMC', 16384); } else { mochi.MochiServices._container = _root.createEmptyMovieClip('__mochiservicesMC', _root.getNextHighestDepth()); } mochi.MochiServices.loadCommunicator(id, mochi.MochiServices._container); }; _global.mochi.MochiServices.loadCommunicator = function (id, clip) { if (!mochi.MochiServices.isNetworkAvailable) { return undefined; } mochi.MochiServices.allowDomains(mochi.MochiServices._gatewayURL); mochi.MochiServices._loader = new MovieClipLoader(); mochi.MochiServices._loaderListener = {}; mochi.MochiServices._loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.MochiServices.disconnect(); mochi.MochiServices.onError.apply(null, [errorCode]); }; mochi.MochiServices._loader.addListener(mochi.MochiServices._loaderListener); mochi.MochiServices._loader.loadClip(mochi.MochiServices._gatewayURL, clip); mochi.MochiServices._sendChannel = new LocalConnection(); mochi.MochiServices._sendChannel._queue = []; mochi.MochiServices._rcvChannel = new LocalConnection(); mochi.MochiServices._rcvChannel.allowDomain = function (d) { return true; }; mochi.MochiServices._rcvChannel.allowInsecureDomain = mochi.MochiServices._rcvChannel.allowDomain; mochi.MochiServices._rcvChannel._nextcallbackID = 0; mochi.MochiServices._rcvChannel._callbacks = {}; mochi.MochiServices.listen(); }; _global.mochi.MochiServices.onStatus = function (infoObject) { if (infoObject.level !== 'error') { } else { mochi.MochiServices._connected = false; mochi.MochiServices._listenChannel.connect(mochi.MochiServices._listenChannelName); } }; _global.mochi.MochiServices.listen = function () { mochi.MochiServices._listenChannel = new LocalConnection(); mochi.MochiServices._listenChannel.handshake = function (args) { mochi.MochiServices.comChannelName = args.newChannel; }; mochi.MochiServices._listenChannel.allowDomain = function (d) { return true; }; mochi.MochiServices._listenChannel.allowInsecureDomain = mochi.MochiServices._listenChannel.allowDomain; mochi.MochiServices._listenChannel.connect(mochi.MochiServices._listenChannelName); trace('Waiting for MochiAds services to connect...'); }; _global.mochi.MochiServices.initComChannels = function () { if (!mochi.MochiServices._connected) { mochi.MochiServices._sendChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; mochi.MochiServices._sendChannel.send(mochi.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'}); mochi.MochiServices._sendChannel.send(mochi.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.MochiServices._id, 'clip': mochi.MochiServices._container, 'version': mochi.MochiServices.getVersion()}); mochi.MochiServices._rcvChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; mochi.MochiServices._rcvChannel.onReceive = function (pkg) { var v3 = pkg.callbackID; var v4 = this._callbacks[v3]; if (!v4) { return undefined; } var v5 = v4.callbackMethod; var v6 = v4.callbackObject; if (v6 && typeof v5 == 'string') { v5 = v6[v5]; } if (v5 != undefined) { v5.apply(v6, pkg.args); } delete this._callbacks[v3]; }; mochi.MochiServices._rcvChannel.onError = function () { mochi.MochiServices.onError.apply(null, ['IOError']); }; mochi.MochiServices._rcvChannel.connect(mochi.MochiServices._rcvChannelName); trace('connected!'); mochi.MochiServices._connecting = false; mochi.MochiServices._connected = true; mochi.MochiServices._listenChannel.close(); while (mochi.MochiServices._sendChannel._queue.length > 0) { mochi.MochiServices._sendChannel.send(mochi.MochiServices._sendChannelName, 'onReceive', mochi.MochiServices._sendChannel._queue.shift()); } } }; _global.mochi.MochiServices.send = function (methodName, args, callbackObject, callbackMethod) { if (mochi.MochiServices._connected) { mochi.MochiServices._sendChannel.send(mochi.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.MochiServices._rcvChannel._nextcallbackID}); } else { if (mochi.MochiServices._container == undefined) { mochi.MochiServices.onError.apply(null, ['NotConnected']); } else { mochi.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.MochiServices._rcvChannel._nextcallbackID}); } } mochi.MochiServices._rcvChannel._callbacks[mochi.MochiServices._rcvChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod}; ++mochi.MochiServices._rcvChannel._nextcallbackID; }; _global.mochi.MochiServices.addProperty('comChannelName', function () {}, _global.mochi.MochiServices.__set__comChannelName); _global.mochi.MochiServices.addProperty('id', _global.mochi.MochiServices.__get__id, function () {}); _global.mochi.MochiServices.addProperty('isNetworkAvailable', _global.mochi.MochiServices.__get__isNetworkAvailable, function () {}); _global.mochi.MochiServices.addProperty('connected', _global.mochi.MochiServices.__get__connected, function () {}); _global.mochi.MochiServices.addProperty('clip', _global.mochi.MochiServices.__get__clip, function () {}); ASSetPropFlags(v1, null, 1); _global.mochi.MochiServices._gatewayURL = 'http://www.mochiads.com/static/lib/services/services.swf'; _global.mochi.MochiServices._listenChannelName = '__mochiservices'; _global.mochi.MochiServices._connecting = false; _global.mochi.MochiServices._connected = false; } #endinitclip } frame 1 { WetBaseMent.main(this); } movieClip 1632 auth_kriss { } movieClip 1635 auth_shi { } movieClip 1638 icon_day { } movieClip 1641 icon_rank { } movieClip 1644 icon_last { } movieClip 1647 icon_mochi { } movieClip 1650 icon_guest { } movieClip 1653 icon_registered { } movieClip 1656 icon_close { } movieClip 1659 icon_digg { } movieClip 1662 icon_stumble { } movieClip 1665 { } movieClip 1667 { } movieClip 1669 { } movieClip 1671 { } movieClip 1673 { } movieClip 1675 { } movieClip 1677 { } movieClip 1679 { } movieClip 1681 { } movieClip 1683 { } movieClip 1685 vtard_polly { } movieClip 1688 vtard_morf { } movieClip 1691 vtard_kriss { } movieClip 1694 vtard_rodger { } movieClip 1697 vtard_shi { } movieClip 1700 vtard_blob { } movieClip 1703 vtard_davey { } movieClip 1706 vtard_morley { } movieClip 1709 vtard_gay { } movieClip 1712 vtard_kolumbo { } movieClip 1715 vtard_bonnie { } movieClip 1718 vtard_colonel { } movieClip 1721 level_01_bak { } movieClip 1724 level_02_bak { } movieClip 1727 level_03_bak { } movieClip 1730 level_04_bak { } movieClip 1733 level_05_bak { } movieClip 1736 level_06_bak { } movieClip 1739 level_07_bak { } movieClip 1742 level_08_bak { } movieClip 1745 level_09_bak { } movieClip 1748 level_10_bak { } movieClip 1751 water_chars { } movieClip 1632 auth_kriss { } movieClip 1635 auth_shi { } movieClip 1659 icon_digg { } movieClip 1662 icon_stumble { } movieClip 1762 bumper0 { } movieClip 1765 bumper { } movieClip 1766 whirl0 { } movieClip 1769 whirl { } movieClip 1770 cannon_bak0 { } movieClip 1773 cannon_bak { } movieClip 1774 cannon_for0 { } movieClip 1777 cannon_for { } movieClip 1778 obj_meta0 { } movieClip 1781 obj_meta1 { } movieClip 1784 obj_meta2 { } movieClip 1787 obj_meta3 { } movieClip 1790 obj_meta4 { } movieClip 1793 obj_meta5 { } movieClip 1796 obj_meta6 { } movieClip 1799 obj_meta7 { } movieClip 1802 obj_meta8 { } movieClip 1805 obj_meta9 { } movieClip 1808 obj_meta { } movieClip 1809 title { frame 37 { stop(); } } movieClip 2229 levels { frame 17 { stop(); } } movieClip 2755 end1 { frame 3 { stop(); } } movieClip 2788 end2 { frame 3 { stop(); } } movieClip 2865 end3 { frame 4 { stop(); } } movieClip 2942 zoo { frame 4 { stop(); } }




http://swfchan.com/30/145526/info.shtml
Created: 26/10 -2018 14:04:05 Last modified: 26/10 -2018 14:04:05 Server time: 04/05 -2024 10:09:22