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

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

Klikwerk - a Bart Bonte game.swf

This is the info page for
Flash #89671

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


ActionScript [AS1/AS2]
Combined Code
movieClip 6 { } movieClip 7 { frame 1 { cube.score = 102; cube.onEnterFrame = function () { this.score -= 2; if (_parent.spaced) { _parent._parent.updatescore(this.score, _parent._x, _parent._y); _parent.removeMovieClip(); } }; } } movieClip 8 mov_space { frame 69 { _parent.gameover = true; if (_parent.spaces.length > 0 && _parent.spaces[0].spaced == false) { _parent.spaces.splice(0, 1); } this.removeMovieClip(); } } movieClip 10 { } movieClip 12 { } movieClip 13 { frame 1 { cube.score = 102; cube.onEnterFrame = function () { this.score -= 2; }; cube.onRollOver = function () { _parent._parent.updatescore(this.score, _parent._x, _parent._y); _parent.removeMovieClip(); }; } } movieClip 14 mov_point { frame 69 { _parent.gameover = true; this.removeMovieClip(); } } movieClip 16 { } movieClip 17 { } movieClip 18 mov_drop2 { frame 69 { this.removeMovieClip(); } } movieClip 20 { } movieClip 21 { } movieClip 22 mov_drop { frame 69 { this.removeMovieClip(); } } movieClip 25 { } movieClip 26 { frame 1 { round.score = 142; round.onEnterFrame = function () { this.score -= 2; }; round.onPress = function () { this.start_x = this._x; this.start_y = this._y; this.startDrag(false); }; round.onReleaseOutside = function () { if (_parent._parent[_parent.dropname] == undefined) { this.stopDrag(); this._x = this.start_x; this._y = this.start_y; } else { this.end_x = this._x - this.start_x; this.end_y = this._y - this.start_y; if (_parent.drop_x - 55 < this.end_x && _parent.drop_x + 55 > this.end_x && _parent.drop_y - 55 < this.end_y && _parent.drop_y + 55 > this.end_y) { _parent._parent.updatescore(this.score, _parent._x + _parent.drop_x, _parent._y + _parent.drop_y); _parent._parent[_parent.dropname].removeMovieClip(); _parent.removeMovieClip(); } else { this.stopDrag(); this._x = this.start_x; this._y = this.start_y; } } }; round.onRelease = round.onReleaseOutside; } } movieClip 27 mov_drag2 { frame 69 { _parent.gameover = true; this.removeMovieClip(); } } movieClip 30 { } movieClip 31 { frame 1 { round.score = 142; round.onEnterFrame = function () { this.score -= 2; }; round.onPress = function () { this.start_x = this._x; this.start_y = this._y; this.startDrag(false); }; round.onReleaseOutside = function () { if (_parent._parent[_parent.dropname] == undefined) { this.stopDrag(); this._x = this.start_x; this._y = this.start_y; } else { this.end_x = this._x - this.start_x; this.end_y = this._y - this.start_y; if (_parent.drop_x - 55 < this.end_x && _parent.drop_x + 55 > this.end_x && _parent.drop_y - 55 < this.end_y && _parent.drop_y + 55 > this.end_y) { _parent._parent.updatescore(this.score, _parent._x + _parent.drop_x, _parent._y + _parent.drop_y); _parent._parent[_parent.dropname].removeMovieClip(); _parent.removeMovieClip(); } else { this.stopDrag(); this._x = this.start_x; this._y = this.start_y; } } }; round.onRelease = round.onReleaseOutside; } } movieClip 32 mov_drag { frame 69 { _parent.gameover = true; this.removeMovieClip(); } } movieClip 34 { } movieClip 35 { frame 1 { cube.score = 102; cube.onEnterFrame = function () { this.score -= 2; }; cube.onPress = function () { _parent._parent.updatescore(this.score, _parent._x, _parent._y); _parent.removeMovieClip(); }; } } movieClip 36 mov_click { frame 69 { _parent.gameover = true; this.removeMovieClip(); } } // unknown tag 88 length 68 movieClip 39 { } movieClip 40 scormov { frame 34 { this.removeMovieClip(); } } movieClip 42 { } movieClip 43 mov_announce { frame 76 { stop(); } } // unknown tag 88 length 68 movieClip 46 { } movieClip 48 { } movieClip 50 { } movieClip 51 mov_bonus { frame 211 { stop(); } } button 54 { on (release) { getURL('http://get.adobe.com/flashplayer/', '_blank'); } } movieClip 55 notie2 { } movieClip 57 notie { } movieClip 72 { } movieClip 74 { } movieClip 76 { } movieClip 77 { } movieClip 80 { } movieClip 82 { } movieClip 84 { } movieClip 86 { } movieClip 90 { } movieClip 92 { } movieClip 93 { } movieClip 96 { } movieClip 98 { } movieClip 100 { } movieClip 102 { } movieClip 104 { } movieClip 107 { } movieClip 111 { } movieClip 113 { } movieClip 116 { } movieClip 118 { } movieClip 121 { } movieClip 124 { } movieClip 126 { } movieClip 129 { } movieClip 131 { } movieClip 134 { } movieClip 137 { } movieClip 139 { } movieClip 141 { } movieClip 143 { } movieClip 145 { } movieClip 147 { } movieClip 149 { } movieClip 151 { } movieClip 153 { } movieClip 155 { } movieClip 157 { } movieClip 158 { frame 145 { stop(); } } movieClip 161 { } movieClip 163 { } movieClip 165 { } movieClip 167 { } movieClip 170 { } movieClip 172 { } movieClip 174 { } movieClip 176 { } movieClip 178 { } movieClip 180 { } movieClip 182 { } movieClip 184 { } movieClip 186 { } movieClip 188 { } movieClip 190 { } movieClip 192 { } movieClip 194 { } movieClip 196 { } movieClip 198 { } movieClip 200 { } movieClip 201 { frame 141 { stop(); } } movieClip 203 { } movieClip 204 { } movieClip 206 { frame 40 { stop(); } } movieClip 207 mcKingActionIntro { frame 217 { stop(); btnPlay.onRelease = _parent.launchGame; btnOtherGames.onRelease = _parent.openOtherGamesLink; brandingMc.onRelease = _parent.openSignLink; } } movieClip 209 { } movieClip 211 { } movieClip 213 { } movieClip 215 { } movieClip 217 { } movieClip 219 { } movieClip 221 { } movieClip 223 { } movieClip 225 { } movieClip 227 { } movieClip 229 { } movieClip 231 { } movieClip 234 { } movieClip 238 { } movieClip 244 { } movieClip 275 { } movieClip 277 { } movieClip 278 { } movieClip 280 { } movieClip 282 { } movieClip 285 { } movieClip 286 mcKingActionPreloaderAnim { } frame 1 { mochi.as2.MochiAd.showPreGameAd({'id': '5557a034fbf56389', 'res': '600x600', 'background': 14803407, 'color': 9242598, 'outline': 0, 'no_bg': true}); } movieClip 289 { } movieClip 365 __Packages.mochi.as2.MochiAd { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiAd) { var v1 = function () {}; mochi.as2.MochiAd = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showPreGameAd = function (options) { var v26 = {'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 = mochi.as2.MochiAd._parseOptions(options, v26); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v23 = 11000; var v19 = options.ad_timeout; if (options.skip) { v19 = 0; } delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.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 v14 = mochi.as2.MochiAd._getRes(options); var v4 = v14[0]; var v13 = v14[1]; mc._x = v4 * 0.5; mc._y = v13 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v4 * -0.5; chk._y = v13 * -0.5; var v6 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v6._visible = false; delete options.no_progress_bar; } else { v6._x = 10; v6._y = v13 - 20; } var v22 = options.color; delete options.color; var v20 = options.background; delete options.background; var v24 = options.outline; delete options.outline; var v5 = v6.createEmptyMovieClip('_outline', 1); v5.beginFill(v20); v5.moveTo(0, 0); v5.lineTo(v4 - 20, 0); v5.lineTo(v4 - 20, 10); v5.lineTo(0, 10); v5.lineTo(0, 0); v5.endFill(); var v3 = v6.createEmptyMovieClip('_inside', 2); v3.beginFill(v22); v3.moveTo(0, 0); v3.lineTo(v4 - 20, 0); v3.lineTo(v4 - 20, 10); v3.lineTo(0, 10); v3.lineTo(0, 0); v3.endFill(); v3._xscale = 0; var v7 = v6.createEmptyMovieClip('_outline', 3); v7.lineStyle(0, v24, 100); v7.moveTo(0, 0); v7.lineTo(v4 - 20, 0); v7.lineTo(v4 - 20, 10); v7.lineTo(0, 10); v7.lineTo(0, 0); chk.ad_msec = v23; chk.ad_timeout = v19; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; 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; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; 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 v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v6 = this._parent._parent; var v11 = this._parent._mochiad_ctr; var v5 = getTimer() - this.started; var v3 = false; var v4 = v6.getBytesTotal(); var v8 = v6.getBytesLoaded(); var v2 = 100 * v8 / v4; var v10 = 100 * v5 / chk.ad_msec; var v9 = this._mochiad_bar._inside; var v13 = Math.min(100, Math.min(v2 || 0, v10)); v13 = Math.max(this.last_pcnt, v13); this.last_pcnt = v13; v9._xscale = v13; options.ad_progress(v13); if (sendHostProgress) { mochi.as2.MochiAd.containerNotify(clip, {'id': 'hostLoadPcnt', 'pcnt': v2}, clip._mochiad._containerLCName); if (v2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v7 = v11.getBytesTotal(); if (v7 > 0 || typeof v7 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v5 > chk.ad_timeout && v2 == 100) { options.ad_failed(); v3 = true; } } } if (v5 > chk.ad_msec) { v3 = true; } if (v4 > 0 && v8 >= v4 && v3) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; v1.showClickAwayAd = function (options) { var v10 = {'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 = mochi.as2.MochiAd._parseOptions(options, v10); var clip = options.clip; var v9 = options.ad_timeout; delete options.ad_timeout; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var v3 = clip._mochiad; v3.onUnload = function () { options.ad_finished(); }; var v5 = mochi.as2.MochiAd._getRes(options); var v11 = v5[0]; var v8 = v5[1]; v3._x = v11 * 0.5; v3._y = v8 * 0.5; var chk = v3.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_timeout = v9; chk.started = getTimer(); chk.showing = false; v3.lc.adLoaded = options.ad_loaded; v3.lc.adSkipped = options.ad_skipped; v3.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; v3.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; var v21 = false; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { v2 = true; chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v2) { delete this.onEnterFrame; } }; }; v1.showInterLevelAd = function (options) { var v13 = {'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 = mochi.as2.MochiAd._parseOptions(options, v13); var clip = options.clip; var v10 = 11000; var v12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.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 v5 = mochi.as2.MochiAd._getRes(options); var v14 = v5[0]; var v11 = v5[1]; mc._x = v14 * 0.5; mc._y = v11 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_msec = v10; chk.ad_timeout = v12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; 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; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec - 250; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v4 > chk.ad_msec) { v2 = true; } if (v2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; }; v1.showPreloaderAd = function (options) { trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0'); mochi.as2.MochiAd.showPreGameAd(options); }; v1.showTimedAd = function (options) { trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0'); mochi.as2.MochiAd.showInterLevelAd(options); }; v1._allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.load = function (options) { var v12 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'}; options = mochi.as2.MochiAd._parseOptions(options, v12); options.swfv = options.clip.getSWFVersion() || 6; options.mav = mochi.as2.MochiAd.getVersion(); var v6 = options.clip; if (!mochi.as2.MochiAd._isNetworkAvailable()) { return null; } if (v6._mochiad_loaded) { return null; } var v11 = options.depth; delete options.depth; var mc = v6.createEmptyMovieClip('_mochiad', v11); var v10 = mochi.as2.MochiAd._getRes(options); options.res = v10[0] + 'x' + v10[1]; options.server += options.id; delete options.id; v6._mochiad_loaded = true; if (v6._url.indexOf('http') != 0) { trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal'); } var v4 = mc.createEmptyMovieClip('_mochiad_ctr', 1); for (var v7 in options) { v4[v7] = options[v7]; } var v9 = v4.server; delete v4.server; var v13 = mochi.as2.MochiAd._allowDomains(v9); mc.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; mochi.as2.MochiAd.unload(this._parent); } }; } }; var v5 = new Object(); var v8 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v5.mc = mc; v5.name = v8; v5.hostname = v13; v5.allowDomain = function (d) { return true; }; v5.allowInsecureDomain = v5.allowDomain; v5.connect(v8); mc.lc = v5; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; v4.lc = v8; v4.st = getTimer(); if (!options.skip) { v4.loadMovie(v9 + '.swf', 'POST'); } return mc; }; v1.unload = function (clip) { if (typeof clip == 'undefined') { clip = _root; } if (clip.clip && clip.clip._mochiad) { clip = clip.clip; } if (!clip._mochiad) { return false; } mochi.as2.MochiAd.containerNotify(clip, {'id': 'unload'}, clip._mochiad._containerLCName); clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return true; }; v1._isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1._getRes = function (options) { var v3 = options.clip.getBounds(); var v2 = 0; var v1 = 0; if (typeof options.res != 'undefined') { var v4 = options.res.split('x'); v2 = parseFloat(v4[0]); v1 = parseFloat(v4[1]); } else { v2 = v3.xMax - v3.xMin; v1 = v3.yMax - v3.yMin; } if (v2 == 0 || v1 == 0) { v2 = Stage.width; v1 = Stage.height; } return [v2, v1]; }; v1._parseOptions = function (options, defaults) { var v4 = {}; for (var v8 in defaults) { v4[v8] = defaults[v8]; } if (options) { for (v8 in options) { v4[v8] = options[v8]; } } if (_root.mochiad_options) { var v5 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v5.length) { var v3 = v5[v2].split('='); v4[unescape(v3[0])] = unescape(v3[1]); ++v2; } } 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; }; v1.rpc = function (clip, callbackID, arg) { switch (arg.id) { case 'setValue': mochi.as2.MochiAd.setValue(clip, arg.objectName, arg.value); break; case 'getValue': var v4 = mochi.as2.MochiAd.getValue(clip, arg.objectName); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v4, clip._mochiad._containerLCName); break; case 'runMethod': var v3 = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v3, clip._mochiad._containerLCName); break; default: trace('[mochiads rpc] unknown rpc id: ' + arg.id); } }; v1.setValue = function (base, objectName, value) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } base[v2[v1]] = value; }; v1.getValue = function (base, objectName) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } return base[v2[v1]]; }; v1.runMethod = function (base, methodName, argsArray) { var v2 = methodName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } if (typeof base[v2[v1]] == 'function') { return base[v2[v1]].apply(base, argsArray); } else { return undefined; } }; v1.containerNotify = function (clip, args, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.notify) { v1.notify(args); } else { (new LocalConnection()).send(lcName, 'notify', args); } }; v1.containerRpcResult = function (clip, callbackID, val, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.rpcResult) { v1.rpcResult(callbackID, val); } else { (new LocalConnection()).send(lcName, 'rpcResult', callbackID, val); } }; ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1); } #endinitclip } movieClip 366 __Packages.mochi.as2.MochiSync { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSync) { var v1 = function () { this._syncContainer = {}; }; mochi.as2.MochiSync = v1; var v2 = v1.prototype; v2.getProp = function (name) { return this._syncContainer[name]; }; v2.setProp = function (name, value) { if (this._syncContainer[name] == value) { return undefined; } this._syncContainer[name] = value; mochi.as2.MochiServices.send('sync_propUpdate', {'name': name, 'value': value}); }; v2.triggerEvent = function (eventType, args) { switch (eventType) { case mochi.as2.MochiSync.SYNC_REQUEST: mochi.as2.MochiServices.send('sync_syncronize', this._syncContainer); break; case mochi.as2.MochiSync.SYNC_PROPERTY: this._syncContainer[args.name] = args.value; } }; v1.SYNC_REQUEST = 'SyncRequest'; v1.SYNC_PROPERTY = 'UpdateProperty'; ASSetPropFlags(mochi.as2.MochiSync.prototype, null, 1); } #endinitclip } movieClip 367 __Packages.mochi.as2.MochiServices { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiServices) { var v1 = function () {}; mochi.as2.MochiServices = v1; var v2 = v1.prototype; v1.__get__id = function () { return mochi.as2.MochiServices._id; }; v1.__get__clip = function () { return mochi.as2.MochiServices._container; }; v1.__get__childClip = function () { return mochi.as2.MochiServices._clip; }; v1.getVersion = function () { return '3.8 as2'; }; v1.allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.__get__isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1.__set__comChannelName = function (val) { if (val != undefined) { if (val.length > 3) { mochi.as2.MochiServices._sendChannelName = val + '_fromgame'; mochi.as2.MochiServices.initComChannels(); } } return mochi.as2.MochiServices.__get__comChannelName(); }; v1.__get__connected = function () { return mochi.as2.MochiServices._connected; }; v1.connect = function (id, clip, onError) { mochi.as2.MochiServices.warnID(id, false); if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) { trace('MochiServices Connecting...'); mochi.as2.MochiServices._connecting = true; mochi.as2.MochiServices.init(id, clip); } if (onError != undefined) { mochi.as2.MochiServices.onError = onError; } else { if (mochi.as2.MochiServices.onError == undefined) { mochi.as2.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } }; v1.disconnect = function () { if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected; mochi.as2.MochiServices.flush(true); if (mochi.as2.MochiServices._clip != undefined) { mochi.as2.MochiServices._clip.removeMovieClip(); delete mochi.as2.MochiServices._clip; } mochi.as2.MochiServices._listenChannel.close(); } }; v1.init = function (id, clip) { mochi.as2.MochiServices._id = id; if (clip != undefined) { mochi.as2.MochiServices._container = clip; } else { mochi.as2.MochiServices._container = _root; } mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container); }; v1.loadCommunicator = function (id, clip) { var v6 = '_mochiservices_com_' + id; var v5 = new MovieClipLoader(); var v3 = {}; if (mochi.as2.MochiServices._clip != null) { return mochi.as2.MochiServices._clip; } if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) { return null; } if ((mochi.as2.MochiServices.urlOptions()).servURL) { mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL; } var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services; if ((mochi.as2.MochiServices.urlOptions()).servicesURL) { v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL; } mochi.as2.MochiServices.allowDomains(v4); mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false); mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999); mochi.as2.MochiServices.listen(); if (v3.waitInterval != null) { clearInterval(v3.waitInterval); } v3.onLoadError = mochi.as2.MochiServices.loadError; v3.onLoadStart = function (target_mc) { this.isLoading = true; }; v3.onLoadComplete = function (target_mc) { target_mc.MochiServices = mochi.as2.MochiServices; }; v3.startTime = getTimer(); v3.wait = function () { if (getTimer() - this.startTime > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, ['IOError']); } clearInterval(this.waitInterval); } }; v3.waitInterval = setInterval(v3, 'wait', 1000); v5.addListener(v3); v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip); mochi.as2.MochiServices._sendChannel = new LocalConnection(); mochi.as2.MochiServices._sendChannel._queue = []; return mochi.as2.MochiServices._clip; }; v1.loadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, [errorCode]); }; v1.onStatus = function (infoObject) { if (infoObject.level !== 'error') { } else { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); } }; v1.listen = function () { mochi.as2.MochiServices._listenChannel = new LocalConnection(); mochi.as2.MochiServices._listenChannel.handshake = function (args) { mochi.as2.MochiServices.__set__comChannelName(args.newChannel); }; mochi.as2.MochiServices._listenChannel.allowDomain = function (d) { return true; }; mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain; mochi.as2.MochiServices._listenChannel._nextcallbackID = 0; mochi.as2.MochiServices._listenChannel._callbacks = {}; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); trace('Waiting for MochiAds services to connect...'); }; v1.initComChannels = function () { if (!mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'}); mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()}); mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) { var v5 = pkg.callbackID; var v4 = this._callbacks[v5]; if (!v4) { return undefined; } var v2 = v4.callbackMethod; var v3 = v4.callbackObject; if (v3 && typeof v2 == 'string') { v2 = v3[v2]; } if (v2 != undefined) { v2.apply(v3, pkg.args); } delete this._callbacks[v5]; }; mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) { switch (pkg.target) { case 'events': mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args); break; case 'coins': mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args); break; case 'sync': mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args); } }; mochi.as2.MochiServices._listenChannel.onError = function () { mochi.as2.MochiServices.onError.apply(null, ['IOError']); }; trace('[SERVICES_API] connected!'); mochi.as2.MochiServices._connecting = false; mochi.as2.MochiServices._connected = true; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift()); } } }; v1.updateCopy = function (args) { mochi.as2.MochiServices.send('coins_updateCopy', args, null, null); }; v1.flush = function (error) { var v1; var v2; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { v1 = mochi.as2.MochiServices._sendChannel._queue.shift(); false; if (v1.callbackID != null) { v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; } delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; if (error) { mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod); } } }; v1.handleError = function (args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ['NotConnected']); } if (args.options != null && args.options.onError != null) { args.options.onError.apply(null, ['NotConnected']); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = 'NotConnected'; if (callbackObject != null && typeof callbackMethod == 'string') { callbackObject[callbackMethod](args); } else { if (callbackMethod != null) { callbackMethod.apply(args); } } } }; v1.send = function (methodName, args, callbackObject, callbackMethod) { if (mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } else { if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) { trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName); mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod); mochi.as2.MochiServices.flush(true); return undefined; } else { mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } } mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod}; ++mochi.as2.MochiServices._listenChannel._nextcallbackID; }; v1.urlOptions = function () { var v5 = {}; var v6; if (_root._url.indexOf('mochiad_options') != -1) { var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1; v6 = _root._url.substr(v2, _root._url.length); } else { if (_root.mochiad_options) { v6 = _root.mochiad_options; } } if (v6) { var v4 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v4.length) { var v3 = v4[v2].split('='); v5[unescape(v3[0])] = unescape(v3[1]); ++v2; } } return v5; }; v1.warnID = function (bid, leaderboard) { bid = bid.toLowerCase(); if (bid.length != 16) { trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length'); return undefined; } else { if (bid == '1e113c7239048b3f') { if (leaderboard) { trace('WARNING: Using testing board ID'); } else { trace('WARNING: Using testing board ID as game ID'); } return undefined; } else { if (bid == '84993a1de4031cd8') { if (leaderboard) { trace('WARNING: Using testing game ID as board ID'); } else { trace('WARNING: Using testing game ID'); } return undefined; } } } var v1 = 0; while (v1 < bid.length) { switch (bid.charAt(v1)) { if (bid.charAt(v1) !== 'f') { } else { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'a': case 'b': case 'c': break; case 'd': case 'e': } default: trace('WARNING: Board ID contains illegal characters: ' + bid); return undefined; } ++v1; } }; v1.addLinkEvent = function (url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var v2 = new Object(); v2.mav = mochi.as2.MochiServices.getVersion(); v2.swfv = btn.getSWFVersion() || 6; v2.swfurl = btn._url; v2.fv = System.capabilities.version; v2.os = System.capabilities.os; v2.lang = System.capabilities.language; v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY; var s = '?'; var v3 = 0; for (var v6 in v2) { if (v3 != 0) { s += '&'; } ++v3; s = s + v6 + '=' + escape(v2[v6]); } if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) { var ping = btn.createEmptyMovieClip('ping', 777); var v7 = btn.createEmptyMovieClip('nettest', 778); mochi.as2.MochiServices.netupAttempted = true; ping.loadMovie('http://x.mochiads.com/linkping.swf?t=' + getTimer()); v7.onEnterFrame = function () { if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) { delete this.onEnterFrame; } else { if (getTimer() - t0 > timeout) { delete this.onEnterFrame; mochi.as2.MochiServices.netup = false; } } }; } var v4 = btn.createEmptyMovieClip('clk', 1001); v4._alpha = 0; v4.beginFill(1044735); v4.moveTo(0, 0); v4.lineTo(0, btn._height); v4.lineTo(btn._width, btn._height); v4.lineTo(btn._width, 0); v4.lineTo(0, 0); v4.endFill(); v4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL(url + s, '_blank'); } else { getURL(burl, '_blank'); } if (onClick != undefined) { onClick(); } }; }; v1.setContainer = function (clip) {}; v1.stayOnTop = function (clip) {}; v1._servURL = 'http://www.mochiads.com/static/lib/services/'; v1._services = 'services.swf'; v1._mochiLC = 'MochiLC.swf'; v1._listenChannelName = '__ms_'; v1._connecting = false; v1._connected = false; v1.netup = true; v1.netupAttempted = false; v1.servicesSync = new mochi.as2.MochiSync(); v1.addProperty('childClip', v1.__get__childClip, function () {}); v1.addProperty('clip', v1.__get__clip, function () {}); v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('id', v1.__get__id, function () {}); v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {}); ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1); } #endinitclip } movieClip 368 __Packages.mochi.as2.MochiEventDispatcher { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEventDispatcher) { var v1 = function () { this.eventTable = {}; }; mochi.as2.MochiEventDispatcher = v1; var v2 = v1.prototype; v2.buildDelegate = function (thisObject, thatObject) { var v2 = {'thisObject': thisObject, 'thatObject': thatObject}; if (thatObject != undefined) { var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject; v2.delegate = function (args) { funct.call(thisObject, args); }; return v2; } v2.delegate = thisObject; return v2; }; v2.compareDelegate = function (d_A, d_B) { if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) { return false; } return true; }; v2.addEventListener = function (event, thisObject, thatObject) { this.removeEventListener(event, thisObject, thatObject); this.eventTable[event].push(this.buildDelegate(thisObject, thatObject)); }; v2.removeEventListener = function (event, thisObject, thatObject) { var v3 = this.buildDelegate(thisObject, thatObject); if (this.eventTable[event] == undefined) { this.eventTable[event] = []; return undefined; } for (var v4 in this.eventTable[event]) { if (!this.compareDelegate(this.eventTable[event][v4], v3)) { continue; } this.eventTable[event].splice(Number(v4), 1); } }; v2.triggerEvent = function (event, args) { if (this.eventTable[event] == undefined) { return undefined; } for (var v4 in this.eventTable[event]) { this.eventTable[event][v4].delegate(args); } }; ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 369 __Packages.mochi.as2.MochiEvents { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEvents) { var v1 = function () {}; mochi.as2.MochiEvents = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.startSession = function (achievementID) { mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null); }; v1.setNotifications = function (clip, style) { var v2 = {}; for (var v3 in style) { v2[v3] = style[v3]; } v2.clip = clip; mochi.as2.MochiServices.send('events_setNotifications', v2, null, null); }; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.startPlay = function (tag) { if (tag == undefined) { tag = 'gameplay'; } mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null); }; v1.endPlay = function () { mochi.as2.MochiServices.send('events_clearRoundID', null, null, null); }; v1.trackEvent = function (tag, value) { mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null); }; v1.ACHIEVEMENT_RECEIVED = 'AchievementReceived'; v1.ALIGN_TOP_LEFT = 'ALIGN_TL'; v1.ALIGN_TOP = 'ALIGN_T'; v1.ALIGN_TOP_RIGHT = 'ALIGN_TR'; v1.ALIGN_LEFT = 'ALIGN_L'; v1.ALIGN_CENTER = 'ALIGN_C'; v1.ALIGN_RIGHT = 'ALIGN_R'; v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL'; v1.ALIGN_BOTTOM = 'ALIGN_B'; v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR'; v1.FORMAT_SHORT = 'ShortForm'; v1.FORMAT_LONG = 'LongForm'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1); } #endinitclip } movieClip 370 __Packages.mochi.as2.MochiSocial { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSocial) { var v1 = function () {}; mochi.as2.MochiSocial = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showLoginWidget = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('coins_showLoginWidget', {'options': options}); }; v1.hideLoginWidget = function () { mochi.as2.MochiServices.send('coins_hideLoginWidget'); }; v1.requestLogin = function () { mochi.as2.MochiServices.send('coins_requestLogin'); }; v1.getUserInfo = function () { mochi.as2.MochiServices.send('coins_getUserInfo'); }; v1.saveUserProperties = function (properties) { mochi.as2.MochiServices.send('coins_saveUserProperties', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate); }; v1.LOGGED_IN = 'LoggedIn'; v1.LOGGED_OUT = 'LoggedOut'; v1.LOGIN_SHOW = 'LoginShow'; v1.LOGIN_HIDE = 'LoginHide'; v1.LOGIN_SHOWN = 'LoginShown'; v1.PROFILE_SHOW = 'ProfileShow'; v1.PROFILE_HIDE = 'ProfileHide'; v1.PROPERTIES_SAVED = 'PropertySaved'; v1.WIDGET_LOADED = 'WidgetLoaded'; v1.USER_INFO = 'UserInfo'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1.PROPERTIES_SIZE = 'PropertiesSize'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1); } #endinitclip } movieClip 371 __Packages.md5 { #initclip if (!_global.md5) { var v1 = function (b64pad, chrsz) { if (b64pad != undefined) { this.b64pad = b64pad; } if (chrsz != undefined && chrsz == 8 || chrsz == 16) { this.chrsz = chrsz; } }; _global.md5 = v1; var v2 = v1.prototype; v2.hash = function (s) { return this.hex_md5(s); }; v2.hex_md5 = function (s) { return this.binl2hex(this.core_md5(this.str2binl(s), s.length * this.chrsz)); }; v2.b64_md5 = function (s) { return this.binl2b64(this.core_md5(this.str2binl(s), s.length * this.chrsz)); }; v2.str_md5 = function (s) { return this.binl2str(this.core_md5(this.str2binl(s), s.length * this.chrsz)); }; v2.hex_hmac_md5 = function (key, data) { return this.binl2hex(this.core_hmac_md5(key, data)); }; v2.b64_hmac_md5 = function (key, data) { return this.binl2b64(this.core_hmac_md5(key, data)); }; v2.str_hmac_md5 = function (key, data) { return this.binl2str(this.core_hmac_md5(key, data)); }; v2.md5_cmn = function (q, a, b, x, s, t) { return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(a, q), this.safe_add(x, t)), s), b); }; v2.md5_ff = function (a, b, c, d, x, s, t) { return this.md5_cmn(b & c | ~b & d, a, b, x, s, t); }; v2.md5_gg = function (a, b, c, d, x, s, t) { return this.md5_cmn(b & d | c & ~d, a, b, x, s, t); }; v2.md5_hh = function (a, b, c, d, x, s, t) { return this.md5_cmn(b ^ c ^ d, a, b, x, s, t); }; v2.md5_ii = function (a, b, c, d, x, s, t) { return this.md5_cmn(c ^ (b | ~d), a, b, x, s, t); }; v2.core_md5 = function (x, len) { x[len >> 5] |= 128 << len % 32; x[(len + 64 >>> 9 << 4) + 14] = len; var v5 = 1732584193; var v4 = -271733879; var v3 = -1732584194; var v2 = 271733878; var v6 = 0; while (v6 < x.length) { var v11 = v5; var v10 = v4; var v9 = v3; var v8 = v2; v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 0], 7, -680876936); v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 1], 12, -389564586); v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 2], 17, 606105819); v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 3], 22, -1044525330); v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 4], 7, -176418897); v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 5], 12, 1200080426); v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 6], 17, -1473231341); v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 7], 22, -45705983); v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 8], 7, 1770035416); v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 9], 12, -1958414417); v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 10], 17, -42063); v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 11], 22, -1990404162); v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 12], 7, 1804603682); v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 13], 12, -40341101); v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 14], 17, -1502002290); v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 15], 22, 1236535329); v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 1], 5, -165796510); v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 6], 9, -1069501632); v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 11], 14, 643717713); v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 0], 20, -373897302); v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 5], 5, -701558691); v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 10], 9, 38016083); v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 15], 14, -660478335); v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 4], 20, -405537848); v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 9], 5, 568446438); v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 14], 9, -1019803690); v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 3], 14, -187363961); v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 8], 20, 1163531501); v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 13], 5, -1444681467); v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 2], 9, -51403784); v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 7], 14, 1735328473); v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 12], 20, -1926607734); v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 5], 4, -378558); v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 8], 11, -2022574463); v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 11], 16, 1839030562); v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 14], 23, -35309556); v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 1], 4, -1530992060); v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 4], 11, 1272893353); v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 7], 16, -155497632); v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 10], 23, -1094730640); v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 13], 4, 681279174); v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 0], 11, -358537222); v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 3], 16, -722521979); v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 6], 23, 76029189); v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 9], 4, -640364487); v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 12], 11, -421815835); v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 15], 16, 530742520); v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 2], 23, -995338651); v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 0], 6, -198630844); v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 7], 10, 1126891415); v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 14], 15, -1416354905); v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 5], 21, -57434055); v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 12], 6, 1700485571); v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 3], 10, -1894986606); v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 10], 15, -1051523); v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 1], 21, -2054922799); v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 8], 6, 1873313359); v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 15], 10, -30611744); v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 6], 15, -1560198380); v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 13], 21, 1309151649); v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 4], 6, -145523070); v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 11], 10, -1120210379); v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 2], 15, 718787259); v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 9], 21, -343485551); v5 = this.safe_add(v5, v11); v4 = this.safe_add(v4, v10); v3 = this.safe_add(v3, v9); v2 = this.safe_add(v2, v8); v6 += 16; } return Array(v5, v4, v3, v2); }; v2.core_hmac_md5 = function (key, data) { var v3 = new Array(this.str2binl(key)); if (v3.length > 16) { v3 = this.core_md5(v3, key.length * this.chrsz); } var v4 = new Array(16); var v5 = new Array(16); var v2 = 0; while (v2 < 16) { v4[v2] = v3[v2] ^ 909522486; v5[v2] = v3[v2] ^ 1549556828; ++v2; } var v6 = new Array(this.core_md5(v4.concat(this.str2binl(data)), 512 + data.length * this.chrsz)); return this.core_md5(v5.concat(v6), 640); }; v2.safe_add = function (x, y) { var v1 = new Number((x & 65535) + (y & 65535)); var v2 = new Number((x >> 16) + (y >> 16) + (v1 >> 16)); return v2 << 16 | v1 & 65535; }; v2.bit_rol = function (num, cnt) { return num << cnt | num >>> 32 - cnt; }; v2.str2binl = function (str) { var v4 = new Array(); var v5 = (1 << this.chrsz) - 1; var v2 = 0; while (v2 < str.length * this.chrsz) { v4[v2 >> 5] |= (str.charCodeAt(v2 / this.chrsz) & v5) << v2 % 32; v2 += this.chrsz; } return v4; }; v2.binl2str = function (bin) { var v4 = new String(''); var v5 = (1 << this.chrsz) - 1; var v2 = 0; while (v2 < bin.length * 32) { v4 += String.fromCharCode(bin[v2 >> 5] >>> v2 % 32 & v5); v2 += this.chrsz; } return v4; }; v2.binl2hex = function (binarray) { var v3 = '0123456789abcdef'; var v4 = new String(''); var v1 = 0; while (v1 < binarray.length * 4) { v4 += v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 + 4 & 15) + v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 & 15); ++v1; } return v4; }; v2.binl2b64 = function (binarray) { var v7 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; var v5 = new String(''); var v3 = 0; while (v3 < binarray.length * 4) { var v6 = (binarray[v3 >> 2] >> 8 * (v3 % 4) & 255) << 16 | (binarray[v3 + 1 >> 2] >> 8 * ((v3 + 1) % 4) & 255) << 8 | binarray[v3 + 2 >> 2] >> 8 * ((v3 + 2) % 4) & 255; var v2 = 0; while (v2 < 4) { if (v3 * 8 + v2 * 6 > binarray.length * 32) { v5 += this.b64pad; } else { v5 += v7.charAt(v6 >> 6 * (3 - v2) & 63); } ++v2; } v3 += 3; } return v5; }; v2.b64pad = new String(''); v2.chrsz = new Number(8); ASSetPropFlags(_global.md5.prototype, null, 1); } #endinitclip } movieClip 372 __Packages.Particle { #initclip if (!_global.Particle) { var v1 = function (libParticle, xpos, ypos, stageWidth, stageHeight) { this._stageWidth = stageWidth; this._stageHeight = stageHeight; this.clip = libParticle; this.clip._x = xpos; this.clip._y = ypos; }; _global.Particle = v1; var v2 = v1.prototype; v2.setVel = function (xvel, yvel) { this._xVel = xvel; this._yVel = yvel; }; v2.setSize = function (size) { this.clip._width = size; this.clip._height = size; }; v2.setAlphaDecr = function (val) { this._alphaDecr = val; }; v2.update = function () { this.clip._x += this._xVel; this.clip._y += this._yVel; this.clip._alpha -= this._alphaDecr; }; v2.destroy = function () { removeMovieClip(this.clip); }; v2._alphaDecr = 0; ASSetPropFlags(_global.Particle.prototype, null, 1); } #endinitclip } frame 2 { version = $version; var osType; var majorVersion; var majorRevision; var minorVersion; var minorRevision; vers.text = version; osArray = version.split(' '); osType = osArray[0]; versionArray = osArray[1].split(','); majorVersion = versionArray[0]; majorRevision = versionArray[1]; minorVersion = versionArray[2]; minorRevision = versionArray[3]; if (majorVersion < 10) { _root._x = 50000; _root._y = 40000; attachMovie('notie2', 'notmovie', 100, {'_x': -49990, '_y': -39750}); stop(); } } frame 2 { var GAME_NAME = 'klikwerk'; var MOCHI_SIGNATURE = ''; var gameWidth = 600; var gameHeight = 600; } frame 2 { function initLoader() { var v2 = (result_lv.b == undefined) ? 'false' : result_lv.b; trace('b ::' + v2 + '::'); trace('result_lv.h ::' + result_lv.h + '::'); if (result_lv.h == 'true') { isHome = true; } if (v2 == 'true') { bannedSign._alpha = 100; } else { this.onEnterFrame = function () { createNewParticle(); mcLoadLogoBg.bar._xscale = 100 * (1 - getBytesLoaded() / getBytesTotal()); emitter._x = mcLoadLogoBg._x + (96 - mcLoadLogoBg.bar._width) + 15; emitter._y = mcLoadLogoBg._y + 44; if (getBytesLoaded() == getBytesTotal()) { kill(); this.onEnterFrame = undefined; if (isHome) { this.gotoAndStop(4); } else { this.gotoAndStop(3); } } }; bannedSign.onRelease = function () { if (!isHome) { openKingPage(LINK_TYPE_LOADER_PROGRESS); } }; } } function openKingPage(type, page) { trace(type); var v4 = _root._url; var v3 = 'game=' + GAME_NAME + '&from=' + v4 + '&type=' + type + '&session=' + sessionID; if (page != undefined) { v3 += '&redirect=' + page; } var v2 = '_blank'; if (isHome) { v2 = '_top'; } getURL(bounceURL + '?' + v3, v2); } function openOtherGamesLink() { openKingPage(LINK_TYPE_OTHER_GAMES); } function openHighscoresLink() { openKingPage(LINK_TYPE_HIGHSCORES, 'game/' + GAME_NAME + '/highscores'); } function openSignLink() { if (!isHome) { openKingPage(LINK_TYPE_SIGN); } } function openAddToWebsiteLink() { openKingPage(LINK_TYPE_ADD_GAME, 'website_content.jsp'); } function openLoaderMovieLink() { openKingPage(LINK_TYPE_LOADER_MOVIE); } function openRightClickLink() { openKingPage(LINK_TYPE_RIGHT_CLICK); } function openOfflineProtectionLink() { openKingPage(LINK_TYPE_PROTECT); } function addScore(points) { checkScore(); var v1 = (iscore - 123) / 2; v1 += points; iscore = v1 * 2 + 123; var v2 = new md5(); checkStr = v2.hash(iscore + ':' + GAME_NAME + ':' + SK); return v1; } function resetScore() { iscore = 123; checkStr = null; } function submitInternalScore() { checkScore(); var v1 = (iscore - 123) / 2; submitScore(v1); } function checkScore() { if (checkStr != null) { var v1 = new md5(); if (checkStr != v1.hash(iscore + ':' + GAME_NAME + ':' + SK)) { SSK = 'ng41ui54hy35tdsnd6f54rews'; } } } function submitScore(score) { var v2 = new md5(); var v1 = v2.hash(score + ':' + GAME_NAME + ':' + SSK); try { if (isHome) { flash.external.ExternalInterface.call('submitScore', score, v1); } else { openKingPage(LINK_TYPE_HIGHSCORES, 'game/' + GAME_NAME + '/submit/' + score + ':' + v1); } } catch (v0) { if (Error(v0) != null) { var e = Error(v0); trace(e); } else { throw v0; } } } function submitLevel(level) { var v1 = new md5(); var v2 = v1.hash(level + ':' + GAME_NAME + ':' + SSK); try { if (isHome) { flash.external.ExternalInterface.call('submitLevel', level, v2); } } catch (v0) { if (Error(v0) != null) { var e = Error(v0); trace(e); } else { throw v0; } } } function submitAchievement(achievement) { var v1 = new md5(); var v2 = v1.hash(achievement + ':' + GAME_NAME + ':' + SAK); try { if (isHome) { flash.external.ExternalInterface.call('submitAchievement', achievement, v2); } } catch (v0) { if (Error(v0) != null) { var e = Error(v0); trace(e); } else { throw v0; } } } function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } u = 'http://' + mbc + '/my/core.swf?mv=7&fv=' + fv + '&v=' + escape(/:$version) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } function createNewParticle() { var v4 = emitter.attachMovie('libGlow', 'newLibGlow', emitter.getNextHighestDepth()); var v3 = new Particle(v4, -10, -7, _root._width, _root._height); v3.setVel(randRange(minXVel, maxXVel), randRange(minYVel, maxYVel)); v3.setSize(randRange(minSize, maxSize)); particles.push(v3); while (particles.length > numParticles) { v3 = particles.shift(); v3.destroy(); } var v2 = 0; while (v2 < particles.length) { particles[v2].update(); ++v2; } } function kill() { var v1 = 0; while (v1 < particles.length) { particles[v1].destroy(); ++v1; } } function randRange(min, max) { var v1 = Math.random() * (max - min) + min; return v1; } stop(); if (GAME_NAME == '') { trace('You need to input the game name! Check the code in the instructions layer.'); } var loadCountURL = 'http://www.mygame.com/king/loadcount.jsp'; var bounceURL = 'http://www.mygame.com/king/bounce.jsp'; var loadHomeParametersURL = 'http://www.king.com/servlet/FreeGameServlet?action=load'; var LINK_TYPE_LOADER_MOVIE = 'loader_movie'; var LINK_TYPE_LOADER_PROGRESS = 'loader_progress'; var LINK_TYPE_PROTECT = 'protect'; var LINK_TYPE_OTHER_GAMES = 'other_games'; var LINK_TYPE_HIGHSCORES = 'highscores'; var LINK_TYPE_SIGN = 'sign'; var LINK_TYPE_ADD_GAME = 'add_game'; var LINK_TYPE_RIGHT_CLICK = 'rightclick'; var LINK_TYPE_RIGHT_CLICK = 'rightclick'; var SSK = 'ng43ui54hy35tdsnd6f54rews'; var SAK = 'ggfd7sday923mdsfd8csfds34'; var SK = 'vf78hxcsjak77cxzhjkwad87s'; var iscore = 123; var checkStr = null; var USER_TYPE_UNREGISTERED = 0; var USER_TYPE_REGISTERED = 1; var USER_TYPE_GOLD = 2; var USER_TYPE_SUBSCRIPTION = 3; var SessionID = ''; var isHome = false; bannedSign._alpha = 0; bannedSign._y = 0; bannedSign._x = 0; bannedSign.bg._width = gameWidth; bannedSign.bg._height = gameHeight; mcLoadLogoBg._x = gameWidth - (mcLoadLogoBg._width + 10); mcLoadLogoBg._y = gameHeight - (mcLoadLogoBg._height + 10); preloaderMov._x = gameWidth * 0.5; preloaderMov._y = gameHeight * 0.5; var result_lv = new LoadVars(); result_lv.onLoad = function (success) { _root.initLoader(); }; var my_lv = new LoadVars(); my_lv.game = GAME_NAME; my_lv.from = _root._url; var so = SharedObject.getLocal('session'); if (so.data.sessionID == null) { var rnd1 = Math.floor(Math.random() * 4294967295.0); var rnd2 = Math.floor(Math.random() * 4294967295.0); so.data.sessionID = rnd1.toString(16) + rnd2.toString(16); so.flush(); } sessionID = so.data.sessionID; my_lv.session = sessionID; my_lv.sendAndLoad(loadCountURL, result_lv, 'GET'); if (MOCHI_SIGNATURE != '') { __com_mochibot__(MOCHI_SIGNATURE, this, 10301, true); } var numParticles = 20; var minXVel = -1; var maxXVel = 1; var minYVel = -1; var maxYVel = 1; var minSize = 12; var maxSize = 29; var minAlpha = 10; var maxAlpha = 20; var particles = new Array(); var emitter = _root.createEmptyMovieClip('p_holder', _root.getNextHighestDepth()); } movieClip 291 { } // unknown tag 88 length 67 movieClip 294 { } movieClip 298 { } movieClip 299 { } frame 3 { function launchGame() { gotoAndStop(4); } preloaderMov._x = gameWidth * 0.5; preloaderMov._y = gameHeight * 0.5; } frame 4 { gotoAndPlay(6); } frame 5 { } frame 5 { stopAllSounds(); } frame 6 { var sndtrack = new Sound(this); sndtrack.attachSound('sndtrack01'); var sndintro = new Sound(this); sndintro.attachSound('snd_intro'); var sndbonus = new Sound(this); sndbonus.attachSound('snd_bonus'); var sndpoint = new Sound(this); sndpoint.attachSound('snd_point'); var sndclick = new Sound(this); sndclick.attachSound('snd_click'); var sndspace = new Sound(this); sndspace.attachSound('snd_space'); var sndstop = new Sound(this); sndstop.attachSound('snd_stop'); } frame 7 { stop(); } movieClip 307 { } movieClip 309 { } movieClip 311 { } movieClip 315 { } movieClip 318 { } movieClip 321 { } movieClip 325 { } movieClip 326 { } movieClip 327 { frame 6 { stop(); } } movieClip 328 { frame 1 { var blur = new flash.filters.BlurFilter(16, 16, 1); var glow = new flash.filters.GlowFilter(16711935, 0.6, 50, 50, 3, 3, false, false); backpac.filters = [glow, blur]; _parent.sndtrack.stop(); _parent.sndbonus.stop(); _parent.sndintro.start(0, 999); backpac.gotoAndPlay(3); } instance of movieClip 315 { onClipEvent (press) { _root.openAddToWebsiteLink(); } } instance of movieClip 315 { onClipEvent (press) { _root.openOtherGamesLink(); } } instance of movieClip 315 { onClipEvent (press) { _parent._parent.gotoAndPlay('game'); } } instance of movieClip 318 { onClipEvent (press) { getURL('http://www.facebook.com/sharer.php?u=http%3A%2F%2Ffacebook.king.com%2Ffacebook%2Fkinggames%2Fgames%2Fshare.jsp%3FgameId%3D87', '_blank'); } } instance of movieClip 321 { onClipEvent (press) { _root.openSignLink(); } } } frame 8 { stop(); } movieClip 331 { } movieClip 334 { frame 1 { _parent.invaders._x += incx; ++tel; if (tel == 13) { tel = 0; incx *= -1; _parent.invaders._x += incx; _parent.invaders._y += incy; if (_parent.invaders._y > 490) { _parent.invaders._y = 205; } } } frame 6 { if (_parent.invaders.tweede) { gotoAndPlay(21); } } frame 21 { _parent.invaders._x += incx; ++tel; if (tel == 13) { tel = 0; incx *= -1; _parent.invaders._x += incx; _parent.invaders._y += incy; if (_parent.invaders._y > 490) { _parent.invaders._y = 205; } } } frame 26 { if (_parent.invaders.tweede) { gotoAndPlay(1); } } } movieClip 339 { } movieClip 342 { } movieClip 343 { frame 1 { stop(); } frame 11 { stop(); } } movieClip 344 { frame 1 { invaders.tel = 0; invaders.incx = 40; invaders.incy = 73; invaders._y = 278; invaders.gotoAndPlay(28); the_time = [80, 100, 120, 140, 160, 180, 240, 242, 244, 246, 260, 266, 272, 280, 282, 284, 286, 300, 306, 312, 320, 322, 324, 326, 340, 346, 352, 400, 415, 432, 440, 455, 472, 480, 495, 512, 560, 565, 570, 575, 580, 582, 584, 586, 600, 605, 610, 615, 620, 622, 624, 626, 640, 645, 650, 655, 660, 662, 664, 666, 720, 725, 740, 750, 760, 765, 780, 790, 800, 805, 820, 830, 880, 890, 900, 910, 915, 920, 930, 940, 950, 955, 960, 970, 980, 990, 995, 1040, 1050, 1055, 1060, 1062, 1066, 1080, 1090, 1095, 1100, 1102, 1106, 1120, 1130, 1135, 1140, 1142, 1146, 1200, 1202, 1206, 1212, 1240, 1242, 1246, 1252, 1280, 1282, 1286, 1292, 1360, 1370, 1380, 1390, 1392, 1396, 1400, 1410, 1420, 1430, 1432, 1436, 1440, 1450, 1460, 1470, 1472, 1476, 1480, 1490, 1500, 1510, 1512, 1516, 1560, 1562, 1564, 1566, 1568, 1570, 1580, 1582, 1584, 1586, 1588, 1590, 1600, 1602, 1604, 1606, 1608, 1610, 1620, 1622, 1624, 1626, 1628, 1630, 1640, 1642, 1644, 1646, 1648, 1650, 1660, 1662, 1664, 1666, 1668, 1670, 1720, 1730, 1735, 1740, 1750, 1756, 1760, 1770, 1775, 1780, 1790, 1796, 1800, 1810, 1815, 1820, 1830, 1836, 1880, 1885, 1895, 1900, 1910, 1920, 1925, 1935, 1940, 1950, 1960, 1965, 1975, 1980, 1990, 2040, 2041, 2042, 2043, 2044, 2045, 2060, 2061, 2062, 2063, 2080, 2081, 2082, 2083, 2084, 2085, 2100, 2101, 2102, 2103, 2120, 2121, 2122, 2123, 2124, 2125, 2140, 2141, 2142, 2143, 2200, 2202, 2204, 2206, 2226, 2228, 2240, 2242, 2244, 2246, 2266, 2268, 2280, 2282, 2284, 2286, 2306, 2308, 2360, 2364, 2368, 2372, 2376, 2379, 2380, 2384, 2388, 2400, 2404, 2408, 2412, 2416, 2419, 2420, 2424, 2428, 2440, 2444, 2448, 2452, 2456, 2459, 2460, 2464, 2468, 2520, 2521, 2522, 2523, 2524, 2525, 2526, 2527, 2528, 2529, 2530, 2531, 2560, 2561, 2562, 2563, 2564, 2565, 2566, 2567, 2568, 2569, 2570, 2571, 2600, 2601, 2602, 2603, 2604, 2605, 2606, 2607, 2608, 2609, 2610, 2611, 2680, 2683, 2685, 2688, 2690, 2695, 2700, 2703, 2705, 2708, 2710, 2715, 2720, 2723, 2725, 2728, 2730, 2735, 2740, 2743, 2745, 2748, 2750, 2755, 2760, 2763, 2765, 2768, 2770, 2775, 2780, 2783, 2785, 2788, 2790, 2795, 2840, 2860, 2880, 2900, 2920, 2921, 2922, 2923, 2924, 2925, 2926, 2927, 2928, 2929, 2930, 2931, 2932]; the_type = [1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 3, 4, 2, 5, 6, 2, 3, 4, 2, 1, 1, 1, 1, 7, 7, 7, 7, 1, 1, 1, 1, 7, 7, 7, 7, 1, 1, 1, 1, 7, 7, 7, 7, 3, 4, 5, 6, 3, 4, 5, 6, 3, 4, 5, 6, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 7, 7, 7, 1, 2, 1, 7, 7, 7, 1, 2, 1, 7, 7, 7, 3, 5, 4, 6, 3, 5, 4, 6, 3, 5, 4, 6, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 2, 2, 1, 2, 1, 1, 2, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 3, 4, 5, 6, 1, 3, 4, 5, 6, 1, 3, 4, 5, 6, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 5, 4, 6, 7, 7, 3, 5, 4, 6, 7, 7, 3, 5, 4, 6, 7, 7, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 1, 7, 1, 1, 1, 7, 2, 7, 2, 2, 1, 7, 1, 7, 1, 1, 1, 7, 2, 7, 2, 2, 1, 7, 1, 7, 1, 1, 1, 7, 2, 7, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]; the_x = [110, 330, 330, 110, 220, 220, 110, 220, 330, 440, 330, 220, 110, 0, 110, 220, 330, 330, 440, 440, 0, 110, 220, 330, 440, 440, 330, 110, 330, 440, 0, 0, 110, 330, 330, 330, 0, 110, 220, 330, 110, 220, 330, 440, 0, 110, 220, 330, 110, 220, 330, 440, 440, 330, 220, 110, 110, 220, 330, 440, 0, 110, 440, 330, 220, 220, 330, 330, 0, 110, 440, 330, 110, 220, 440, 220, 110, 330, 440, 330, 440, 220, 110, 0, 330, 220, 220, 0, 110, 220, 220, 330, 440, 440, 330, 220, 110, 110, 110, 220, 330, 440, 440, 330, 220, 110, 0, 220, 0, 440, 330, 440, 220, 110, 220, 110, 330, 440, 440, 440, 440, 440, 330, 220, 110, 0, 0, 0, 0, 0, 110, 220, 330, 440, 440, 440, 440, 440, 330, 220, 110, 0, 110, 220, 330, 440, 440, 330, 220, 110, 0, 0, 110, 220, 330, 440, 440, 330, 220, 110, 0, 0, 110, 220, 330, 440, 0, 110, 220, 330, 440, 440, 330, 220, 110, 0, 0, 110, 110, 110, 220, 220, 220, 440, 440, 440, 330, 330, 330, 110, 110, 110, 220, 220, 220, 0, 0, 220, 220, 110, 220, 220, 440, 440, 330, 440, 330, 330, 440, 330, 0, 0, 0, 110, 110, 110, 330, 330, 440, 440, 330, 330, 330, 440, 440, 440, 0, 0, 110, 110, 220, 330, 440, 440, 330, 220, 0, 0, 110, 110, 440, 440, 330, 440, 330, 330, 0, 0, 110, 0, 110, 110, 220, 330, 220, 440, 330, 440, 0, 110, 0, 110, 0, 110, 0, 110, 0, 440, 330, 440, 330, 440, 330, 440, 330, 440, 0, 0, 110, 110, 220, 220, 0, 0, 110, 220, 330, 330, 220, 110, 110, 110, 220, 330, 440, 440, 440, 220, 110, 0, 0, 110, 220, 330, 330, 330, 220, 110, 0, 220, 330, 330, 220, 110, 110, 110, 220, 330, 440, 440, 440, 0, 110, 220, 330, 440, 440, 330, 220, 110, 0, 0, 110, 220, 330, 440, 440, 330, 220, 110, 0, 0, 110, 220, 330, 440, 0, 110, 220, 330, 440, 440, 330, 220, 110, 0, 0, 0, 110, 220, 330, 220, 220, 330, 220, 110, 220, 330, 440, 330, 220, 110, 0, 110]; the_y = [110, 330, 110, 330, 330, 110, 220, 220, 220, 220, 330, 110, 330, 0, 0, 0, 0, 440, 330, 440, 440, 330, 220, 110, 0, 110, 0, 220, 220, 220, 110, 330, 220, 0, 440, 220, 110, 0, 110, 0, 440, 440, 440, 440, 0, 110, 0, 110, 330, 330, 330, 330, 220, 220, 220, 220, 440, 440, 440, 440, 0, 0, 330, 330, 110, 220, 220, 110, 440, 440, 0, 0, 110, 0, 330, 220, 330, 0, 110, 110, 220, 440, 0, 110, 220, 110, 330, 0, 0, 0, 110, 110, 110, 220, 220, 220, 220, 330, 440, 440, 440, 440, 330, 330, 330, 0, 110, 0, 220, 330, 440, 220, 440, 110, 110, 330, 330, 0, 110, 220, 330, 440, 440, 440, 440, 440, 330, 220, 110, 0, 0, 0, 0, 0, 110, 220, 330, 440, 440, 440, 440, 0, 0, 0, 0, 0, 110, 110, 110, 110, 110, 220, 220, 220, 220, 220, 330, 330, 330, 330, 330, 440, 440, 440, 440, 440, 0, 0, 0, 0, 0, 110, 110, 110, 110, 110, 220, 0, 110, 220, 220, 330, 440, 0, 110, 220, 220, 330, 440, 0, 110, 220, 220, 330, 440, 0, 110, 110, 0, 110, 440, 330, 330, 440, 330, 0, 0, 220, 220, 110, 220, 110, 0, 0, 110, 220, 440, 330, 330, 440, 220, 110, 0, 0, 110, 220, 440, 330, 330, 440, 330, 330, 330, 440, 440, 440, 110, 0, 0, 110, 0, 110, 0, 220, 110, 220, 220, 330, 220, 440, 330, 440, 330, 330, 440, 330, 440, 440, 0, 0, 110, 110, 220, 220, 330, 330, 440, 440, 440, 330, 330, 220, 220, 110, 110, 0, 0, 110, 0, 110, 0, 110, 220, 330, 220, 110, 110, 220, 220, 220, 110, 0, 0, 0, 0, 110, 220, 330, 330, 330, 220, 220, 220, 220, 330, 440, 440, 440, 440, 110, 110, 220, 220, 220, 110, 0, 0, 0, 0, 110, 220, 0, 0, 0, 0, 0, 110, 110, 110, 110, 110, 220, 220, 220, 220, 220, 330, 330, 330, 330, 330, 440, 440, 440, 440, 440, 0, 0, 0, 0, 0, 110, 110, 110, 110, 110, 220, 220, 220, 220, 220, 220, 110, 220, 330, 220, 0, 110, 220, 330, 440, 330, 220, 110]; drop_x = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, -110, 0, 0, 0, 0, 0, 110, 0, -110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, -110, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -110, 0, 110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -110, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; drop_y = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 440, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, -110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 0, -110, 0, 0, 0, 220, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, -110, 0, 0, -110, 0, 110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; eventcount = 0; tel = 0; tussenpauze = 20; tussenpauzeteller = 0; bonustel = 0; pp = 0; cc = 0; dd = 0; rr = 0; rrr = 0; sp = 0; ss = 0; diep = 100; ddiep = 5100; thescore = 0; scorebar.scor = '' + thescore; scorebar.scortekst = 'score:'; laatstex = []; laatstey = []; gameover = false; bonusround = true; volledigover = false; overtel = 0; updatescore = function (score, scx, scy) { if (score > 50) { scoreround = 100; } else { if (score > 20) { scoreround = 50; } else { scoreround = 25; } } thescore += scoreround; scorebar.scor = '' + thescore; sss = attachMovie('scormov', 's' + ss++, diep++, {'_x': scx - 5, '_y': scy + 25}); sss.scormovsymb.ss = '+' + scoreround; }; spaces = []; var keyListener = new Object(); keyListener.onKeyDown = function () { if (Key.getAscii() == 32) { if (spaces.length > 0) { spaces[0].spaced = true; spaces.splice(0, 1); } } else { if (Key.getAscii() == 81 || Key.getAscii() == 113) { _parent.gotoAndPlay('intro'); } } }; Key.addListener(keyListener); gameinst.onEnterFrame = function () { if (tel < 3050) { if (tel == 0) { _parent.sndintro.stop(); _parent.sndtrack.start(); } ++tel; if (tel == 1518) { invaders.stop(); } else { if (tel == 1519) { invaders.gotoAndStop(30); } else { if (tel == 1560) { invaders.tweede = true; invaders.gotoAndPlay(1); } else { if (tel == 1900) { attachMovie('mov_announce', 'mov_announce1', diep++, {'_x': 30, '_y': 350}); } else { if (tel > 3045) { gameover = false; } } } } } if (tel == the_time[eventcount]) { if (the_type[eventcount] == 1) { attachMovie('mov_point', 'p' + pp++, diep++, {'_x': the_x[eventcount] + 40, '_y': the_y[eventcount] + 40}); } else { if (the_type[eventcount] == 2) { attachMovie('mov_click', 'c' + cc++, diep++, {'_x': the_x[eventcount] + 40, '_y': the_y[eventcount] + 40}); } else { if (the_type[eventcount] == 3) { dragit = attachMovie('mov_drag', 'd' + dd++, ddiep++, {'_x': the_x[eventcount] + 40, '_y': the_y[eventcount] + 40}); dragit.drop_x = drop_x[eventcount]; dragit.drop_y = drop_y[eventcount]; dragit.dropname = 'r' + rr; } else { if (the_type[eventcount] == 4) { attachMovie('mov_drop', 'r' + rr++, diep++, {'_x': the_x[eventcount] + 40, '_y': the_y[eventcount] + 40}); } else { if (the_type[eventcount] == 5) { dragit = attachMovie('mov_drag2', 'd' + dd++, ddiep++, {'_x': the_x[eventcount] + 40, '_y': the_y[eventcount] + 40}); dragit.drop_x = drop_x[eventcount]; dragit.drop_y = drop_y[eventcount]; dragit.dropname = 'rr' + rrr; } else { if (the_type[eventcount] == 6) { attachMovie('mov_drop2', 'rr' + rrr++, diep++, {'_x': the_x[eventcount] + 40, '_y': the_y[eventcount] + 40}); } else { if (the_type[eventcount] == 7) { spacer = attachMovie('mov_space', 'sp' + sp++, diep++, {'_x': the_x[eventcount] + 40, '_y': the_y[eventcount] + 40}); spacer.spaced = false; spaces.push(spacer); } } } } } } } ++eventcount; } } else { if (tel == 3050) { if (thescore < 30001) { bonusround = false; _parent.eindscore = thescore; fadeout.gotoAndPlay(2); } else { attachMovie('mov_bonus', 'mov_bonus1', diep++, {'_x': 50, '_y': 350}); _parent.sndbonus.start(0, 9999); } ++tel; } else { if (tel == 3060) { if (!bonusround) { _parent.gotoAndPlay('theend'); } ++tel; } else { if (tel < 3270) { ++tel; } else { if (!gameover) { if (tussenpauzeteller == tussenpauze) { ++bonustel; item = 1 + Math.floor(Math.random() * 3); do { bezet = false; itemx = 110 * Math.floor(Math.random() * 5); itemy = 110 * Math.floor(Math.random() * 5); i = 0; while (i < laatstex.length) { if (itemx == laatstex[i] && itemy == laatstey[i]) { bezet = true; } ++i; } } while (bezet); laatstex.push(itemx); laatstey.push(itemy); if (laatstex.length > 10) { laatstex.splice(0, 1); laatstey.splice(0, 1); } if (item == 1) { attachMovie('mov_point', 'p' + pp++, diep++, {'_x': itemx + 40, '_y': itemy + 40}); _parent.sndpoint.start(); } else { if (item == 2) { attachMovie('mov_click', 'c' + cc++, diep++, {'_x': itemx + 40, '_y': itemy + 40}); _parent.sndclick.start(); } else { if (item == 3) { spacer = attachMovie('mov_space', 'sp' + sp++, diep++, {'_x': itemx + 40, '_y': itemy + 40}); spacer.spaced = false; spaces.push(spacer); _parent.sndspace.start(); } } } tussenpauzeteller = 0; if (bonustel < 2) { tussenpauze = 40; } else { if (bonustel < 4) { tussenpauze = 20; } else { if (bonustel < 8) { tussenpauze = 17; } else { if (bonustel < 12) { tussenpauze = 15; } else { if (bonustel < 16) { tussenpauze = 12; } else { if (bonustel < 24) { tussenpauze = 10; } else { if (bonustel < 36) { tussenpauze = 8; } else { if (bonustel < 48) { tussenpauze = 6; } else { tussenpauze = 4; } } } } } } } } } else { ++tussenpauzeteller; } } else { if (!volledigover) { _parent.eindscore = thescore; fadeout.gotoAndPlay(2); volledigover = true; _parent.sndstop.start(); } else { if (overtel == 10) { _parent.gotoAndPlay('theend'); } ++overtel; if (overtel == 2 || overtel == 4 || overtel == 6 || overtel == 8 || overtel == 10) { _parent.sndstop.start(); } } } } } } } }; } instance of movieClip 342 { onClipEvent (press) { _root.openSignLink(); } } } frame 9 { stop(); } movieClip 348 { instance of movieClip 315 { onClipEvent (press) { trace('scor:' + _parent._parent._parent.eindscore); _root.submitScore(_parent._parent._parent.eindscore); trace('scor:' + _parent._parent._parent.eindscore); } } } movieClip 350 { } movieClip 351 { } movieClip 355 { } movieClip 358 { } button 359 { on (press) { _parent.gotoAndPlay(1); } } button 360 { on (press) { getURL('http://www.bontegames.com', '_blank'); } } button 361 { on (press) { getURL('http://twitter.com/bartbonte', '_blank'); } } movieClip 362 { frame 1 { trace('3'); stop(); } } movieClip 363 { frame 1 { trace('1'); stop(); } frame 2 { trace('2'); stop(); } } movieClip 364 { frame 1 { var blur = new flash.filters.BlurFilter(16, 16, 1); var glow = new flash.filters.GlowFilter(16711935, 0.6, 50, 50, 3, 3, false, false); backpac.filters = [glow, blur]; _parent.sndtrack.stop(); _parent.sndbonus.stop(); _parent.sndintro.start(0, 999); backpac.gotoAndPlay(3); finalscore = '' + _parent.eindscore; if (_parent.eindscore > 30000) { remember._visible = false; } if (_root.isHome) { susc._visible = false; _root.submitScore(_parent.eindscore); } } instance of movieClip 315 { onClipEvent (press) { _parent._parent.gotoAndPlay('game'); } } instance of movieClip 315 { onClipEvent (press) { _root.openOtherGamesLink(); } } instance of movieClip 315 { onClipEvent (press) { _parent.credits.gotoAndPlay(2); } } instance of movieClip 315 { onClipEvent (press) { _root.openSignLink(); } } instance of movieClip 315 { onClipEvent (press) { getURL('http://www.facebook.com/sharer.php?u=http%3A%2F%2Ffacebook.king.com%2Ffacebook%2Fkinggames%2Fgames%2Fshare.jsp%3FgameId%3D87', '_blank'); } } }




http://swfchan.com/18/89671/info.shtml
Created: 28/3 -2019 20:24:12 Last modified: 28/3 -2019 20:24:12 Server time: 28/04 -2024 11:28:17