STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #131246 |
--- Points: |
Lives: |
Restart |
CRAZY FROG 4 |
You can now test how to move the frog. When you will be ready press button below. |
Start Game |
W |
W |
The game is over. Try again to get better score! |
gameonade.com |
PLAY our GAMES on |
How to play? On the stage you will find the letters. Those letters are: A,W,E, U, I, K, M, N, X, Z. Press those letters on the keyboard and the frog will go to the selected place. Help the frog to eat as many larvas as possible. Good luck! |
Start |
Game is paused. Press space to resume. |
ActionScript [AS1/AS2]
Frame 1this._lockroot = true; var _mochiads_game_id = "a3339660560f8cd6"; mochi.as2.MochiAd.showPreGameAd({id:_mochiads_game_id, res:"500x400", color:15764992, no_bg:true}); stop();Frame 2this._lockroot = true; var myGameClass = new GameOnAde(GameOnAde.GAME_PUBLIC, this, 500, 400, _root._parent.getGL(), "en"); myGameClass.setSecretKey("ZBABAcrazy44444FROG"); myGameClass.setGameUrl("http://www.gameonade.com/en/game/42/crazy-frog-4"); myGameClass.startPreloader("gameonade_preloader"); myGameClass.startFpsRecording(5000, 10); _root.setMask(gamemask_mc); stop(); fscommand ("trapallkeys", true);Frame 3muzOK = true; stopAllSounds(); maksPozRob = 1; opis._visible = 0; _root.createEmptyMovieClip("pikniecie", -12201); pik = new Sound(pikniecie); pik.attachSound("pik"); _root.createEmptyMovieClip("rechotek", -12202); rechot = new Sound(rechotek); rechot.attachSound("rechot"); _root.createEmptyMovieClip("wazek", -12203); wazkaa = new Sound(wazek); wazkaa.attachSound("wazka"); if (muzOK) { pik.setVolume(35); rechot.setVolume(25); wazkaa.setVolume(45); } else { pik.setVolume(0); rechot.setVolume(0); wazkaa.setVolume(0); }Frame 4function addPoints(_N) { myGameClass.addPoints(_N); } function getPoints() { return(myGameClass.getPointsInfo()); } function gameOver() { myGameClass.endGame(); } function saveScore() { myGameClass.savePoints(); } function przesun(MX, MY, OBJEKT, OPOZN) { var _local3 = _root["" + OBJEKT]._x; var _local2 = _root["" + OBJEKT]._y; var _local9 = MX - _local3; var _local8 = MY - _local2; var _local6 = _local3 + ((MX - _local3) / OPOZN); var _local5 = _local2 + ((MY - _local2) / OPOZN); _root["" + OBJEKT]._x = _local6; _root["" + OBJEKT]._y = _local5; dlaTlaX = Math.abs(_local6 - _local3); dlaTlaY = Math.abs(_local5 - _local2); } function robak(XXX, YYY, kier, LIT) { _root.attachMovie("robak", "robak" + pozRob, pozRob); _root["robak" + pozRob]._rotation = kier; _root["robak" + pozRob].kat = kier; _root["robak" + pozRob].klawisz = LIT; katRadCh = (kier * Math.PI) / 180; dxCh = Math.cos(katRadCh) * speedCh; dyCh = Math.sin(katRadCh) * speedCh; _root["robak" + pozRob]._x = XXX - dxCh; _root["robak" + pozRob]._y = YYY - dyCh; _root["robak" + pozRob].co = "pelz"; _root["robak" + pozRob].ile = 0; _root["robak" + pozRob].ilePow = 0; pozRob++; if (pozRob > maksPozRob) { pozRob = 10; } } function ruchRobaka() { zi = 10; while (zi <= maksPozRob) { if (_root["robak" + zi].co == "pelz") { katRad2 = (_root["robak" + zi].kat * Math.PI) / 180; _root["robak" + zi].dx = Math.cos(katRad2) * speed; _root["robak" + zi].dy = Math.sin(katRad2) * speed; _root["robak" + zi]._x = _root["robak" + zi]._x + _root["robak" + zi].dx; _root["robak" + zi]._y = _root["robak" + zi]._y + _root["robak" + zi].dy; _root["robak" + zi].ile = _root["robak" + zi].ile + speed; if (_root.kolko.hitTest(_root["robak" + zi]._x, _root["robak" + zi]._y, true)) { _root.rechot.start(0, 1); trace("TEST TEST TEST"); trace("_root.myGameClass.getPointsInfo():" + _root.myGameClass.getPointsInfo()); _root.myGameClass.addPoints(1); if ((_root.getPoints() % 10) == 0) { speed = speed + 0.1; speedCh--; } _root.trawa.punkty.text = _root.myGameClass.getPointsInfo(); _root["robak" + zi].removeMovieClip(); } if (_root["robak" + zi].ile > speedCh) { _root["robak" + zi].gotoAndStop(2); _root["robak" + zi].co = "lot"; _root.wazkaa.start(); } } else if (_root["robak" + zi].co == "lot") { _root["robak" + zi]._xscale = _root["robak" + zi]._xscale + 30; _root["robak" + zi]._yscale = _root["robak" + zi]._yscale + 30; _root["robak" + zi]._alpha = _root["robak" + zi]._alpha - 10; _root["robak" + zi].ilePow++; if (_root["robak" + zi].ilePow > 10) { ilZyc--; _root.trawa.zycia.text = _root.ilZyc; if (ilZyc == 0) { gameOver(); czyszczenie(); koniec._visible = 1; stanGry = "koniec"; } _root["robak" + zi].removeMovieClip(); } } zi++; } } function czyszczenie() { zi = 10; while (zi <= maksPozRob) { _root["robak" + zi].removeMovieClip(); zi++; } } myGameClass.startGame(); var trawa = _root.attachMovie("trawa", "trawa", 10999); var opis = _root.attachMovie("opis", "opis", 11000); pauza._visible = false; koniec._visible = false; opis._visible = true; mojeLiterki = new Array("W", "E", "U", "I", "A", "K", "Z", "X", "N", "M"); mYY = 200; mXX = 250; odl = 50; odl2 = 25; pXX = 0; pYY = 0; poczX = 100; poczY = 100; opis._x = 250; opis._y = 200; i = 0; while (i < 10) { _root.attachMovie("literki", mojeLiterki[i], -3000 - i); i++; } Z.pXX = 0.6; Z.pYY = 3.3; Z.kat = 313; X.pXX = 2; X.pYY = 4; X.kat = 280; M.pXX = 4.8; M.pYY = 3.3; M.kat = 217; N.pXX = 3.5; N.pYY = 4; N.kat = 260; K.pXX = 5.5; K.pYY = 2; K.kat = 180; A.pXX = 0; A.pYY = 2; A.kat = 0; E.pXX = 2; E.pYY = 0; E.kat = 80; U.pXX = 3.5; U.pYY = 0; U.kat = 100; I.pXX = 4.8; I.pYY = 0.6; I.kat = 143; W.pXX = 0.6; W.pYY = 0.6; W.kat = 38; W._x = poczX + (odl * 0.6); W._y = poczY + (odl * 0.6); E._x = poczX + (2 * odl); E._y = poczY; U._x = (odl2 + poczX) + (3 * odl); U._y = poczY; I._x = ((odl2 + poczX) + (4 * odl)) + (odl * 0.3); I._y = poczY + (odl * 0.6); A._x = poczX; A._y = poczY + (2 * odl); K._x = (odl2 + poczX) + (5 * odl); K._y = poczY + (2 * odl); Z._x = poczX + (odl * 0.6); Z._y = (poczY + (3 * odl)) + (odl * 0.3); X._x = poczX + (2 * odl); X._y = poczY + (4 * odl); N._x = (odl2 + poczX) + (3 * odl); N._y = poczY + (4 * odl); M._x = ((odl2 + poczX) + (4 * odl)) + (odl * 0.3); M._y = (poczY + (3 * odl)) + (odl * 0.3); i = 0; while (i < 10) { _root.attachMovie("droga", "droga" + i, -3020 + i); _root["droga" + i]._x = poczX + (_root["" + mojeLiterki[i]].pXX * odl); _root["droga" + i]._y = poczY + (_root["" + mojeLiterki[i]].pYY * odl); _root["droga" + i]._rotation = _root["" + mojeLiterki[i]].kat; i++; } katRadCh = 0; speedCh = 70; speed = 1; katRad2 = 0; if (muzOK) { pik.setVolume(35); rechot.setVolume(25); wazkaa.setVolume(35); } else { pik.setVolume(0); rechot.setVolume(0); wazkaa.setVolume(0); } stop();Frame 5myGameClass.timerStart(); _root.attachMovie("cwiczenie", "opis", 11000); _root.attachMovie("koniec", "koniec", 11001); _root.attachMovie("pauza", "pauza", 11002); pauza._visible = 0; pauza._x = 250; pauza._y = 200; koniec._visible = 0; koniec._x = 250; koniec._y = 200; opis._visible = 1; opis._x = 250; opis._y = 200; ilZyc = 3; _root.attachMovie("zaba", "kolko", -2999); kolko._width = 61.6; kolko._height = 51.6; stanGry = "cwiczenia"; kolko._x = (poczX = 100); kolko._y = (poczY = 100); pXX = 3; pYY = 2; kodKl = -100; ltr = new Array("Z", "X", "M", "N", "A", "K", "I", "U", "E", "W"); Key.addListener(kolko); kolko.onKeyDown = function () { if ((stanGry == "juzGra") || (stanGry == "cwiczenia")) { if (Key.getCode() == 90) { pXX = 0.6; pYY = 3.3; kodKl = 90; } else if (Key.getCode() == 88) { pXX = 2; pYY = 4; kodKl = 88; } else if (Key.getCode() == 77) { pXX = 4.8; pYY = 3.3; kodKl = 77; } else if (Key.getCode() == 78) { pXX = 3.5; pYY = 4; kodKl = 78; } else if (Key.getCode() == 75) { pXX = 5.5; pYY = 2; kodKl = 75; } else if (Key.getCode() == 65) { pXX = 0; pYY = 2; kodKl = 65; } else if (Key.getCode() == 69) { pXX = 2; pYY = 0; kodKl = 69; } else if (Key.getCode() == 85) { pXX = 3.5; pYY = 0; kodKl = 85; } else if (Key.getCode() == 73) { pXX = 4.8; pYY = 0.6; kodKl = 73; } else if (Key.getCode() == 87) { pXX = 0.6; pYY = 0.6; kodKl = 87; } else { pik.start(); } mXX = poczX + (pXX * odl); mYY = poczY + (pYY * odl); kolko.zaba.play(); } if ((stanGry == "juzGra") || (stanGry == "pauza")) { if (Key.isDown(32)) { if (stanGry == "pauza") { _root.pauza._visible = 0; _root.stanGry = "juzGra"; myGameClass.timerStart(); } else if (stanGry == "juzGra") { myGameClass.timerStop(); _root.stanGry = "pauza"; _root.pauza._visible = 1; } } } }; coIleRobak = 0; coIleRobakJuz = 50; kL = "A"; robakX = 0; robakY = 0; pozRob = 10; maksPozRob = 23; kolko.onEnterFrame = function () { if (stanGry == "juzGra") { coIleRobak++; if (coIleRobak >= coIleRobakJuz) { ktoraLiterka = Math.floor(Math.random() * ltr.length); kL = ltr[ktoraLiterka]; robakX = poczX + (_root["" + kL].pXX * odl); robakY = poczY + (_root["" + kL].pYY * odl); katRobak = _root["" + kL].kat; kodKlKon = kL.getAscii(); robak(robakX, robakY, katRobak, kodKlKon); coIleRobak = 0; } ruchRobaka(); } if ((stanGry == "juzGra") || (stanGry == "cwiczenia")) { przesun(mXX, mYY, "kolko", 3); yA1 = kolko._y; xA1 = kolko._x; yA2 = mYY; xA2 = mXX; a = (yA1 - yA2) / (xA1 - xA2); katRad = Math.atan(a); kat = (180 * katRad) / Math.PI; if ((dlaTlaX > 5) || (dlaTlaY > 5)) { if (xA1 > mXX) { katOst = 180 + kat; } else if (xA1 < mXX) { katOst = kat; } else { katOst = 180 + kat; } } kolko._rotation = katOst; } }; stop();Symbol 14 MovieClip [gameonade_preloader] Frame 25var is_stop = true; stop();Symbol 14 MovieClip [gameonade_preloader] Frame 103_root.play(); removeMovieClip(this); stop();Symbol 30 MovieClip Frame 1stop();Symbol 30 MovieClip Frame 21gotoAndStop (1);Symbol 30 MovieClip Frame 22this.removeMovieClip(); stop();Symbol 99 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0class mochi.as2.MochiAd { function MochiAd () { } static function getVersion() { return(mochi.as2.MochiServices.getVersion()); } static function showPreGameAd(options) { var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }, ad_skipped:function () { }, ad_progress:function (percent) { }}; options = _parseOptions(options, _local26); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") { options.ad_started(); options.ad_finished(); return(undefined); } var clip = options.clip; var _local23 = 11000; var _local19 = options.ad_timeout; if (options.skip) { _local19 = 0; } delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local14 = _getRes(options); var _local4 = _local14[0]; var _local13 = _local14[1]; mc._x = _local4 * 0.5; mc._y = _local13 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk._x = _local4 * -0.5; chk._y = _local13 * -0.5; var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4); if (options.no_progress_bar) { _local6._visible = false; delete options.no_progress_bar; } else { _local6._x = 10; _local6._y = _local13 - 20; } var _local22 = options.color; delete options.color; var _local20 = options.background; delete options.background; var _local24 = options.outline; delete options.outline; var _local5 = _local6.createEmptyMovieClip("_outline", 1); _local5.beginFill(_local20); _local5.moveTo(0, 0); _local5.lineTo(_local4 - 20, 0); _local5.lineTo(_local4 - 20, 10); _local5.lineTo(0, 10); _local5.lineTo(0, 0); _local5.endFill(); var _local3 = _local6.createEmptyMovieClip("_inside", 2); _local3.beginFill(_local22); _local3.moveTo(0, 0); _local3.lineTo(_local4 - 20, 0); _local3.lineTo(_local4 - 20, 10); _local3.lineTo(0, 10); _local3.lineTo(0, 0); _local3.endFill(); _local3._xscale = 0; var _local7 = _local6.createEmptyMovieClip("_outline", 3); _local7.lineStyle(0, _local24, 100); _local7.moveTo(0, 0); _local7.lineTo(_local4 - 20, 0); _local7.lineTo(_local4 - 20, 10); _local7.lineTo(0, 10); _local7.lineTo(0, 0); chk.ad_msec = _local23; chk.ad_timeout = _local19; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; mochi.as2.MochiAd.unload(_local3); 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 _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.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 _local6 = this._parent._parent; var _local11 = this._parent._mochiad_ctr; var _local5 = getTimer() - this.started; var _local3 = false; var _local4 = _local6.getBytesTotal(); var _local8 = _local6.getBytesLoaded(); var _local2 = (100 * _local8) / _local4; var _local10 = (100 * _local5) / chk.ad_msec; var _local9 = this._mochiad_bar._inside; var _local13 = Math.min(100, Math.min(_local2 || 0, _local10)); _local13 = Math.max(this.last_pcnt, _local13); this.last_pcnt = _local13; _local9._xscale = _local13; options.ad_progress(_local13); if (sendHostProgress) { mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName); if (_local2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var _local7 = _local11.getBytesTotal(); if ((_local7 > 0) || (typeof(_local7) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) { options.ad_failed(); _local3 = true; } } if (_local5 > chk.ad_msec) { _local3 = true; } if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; } static function showClickAwayAd(options) { var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () { }, ad_finished:function () { }, ad_loaded:function (width, height) { }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function () { }}; options = _parseOptions(options, _local10); var clip = options.clip; var _local9 = options.ad_timeout; delete options.ad_timeout; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var _local3 = clip._mochiad; _local3.onUnload = function () { options.ad_finished(); }; var _local5 = _getRes(options); var _local11 = _local5[0]; var _local8 = _local5[1]; _local3._x = _local11 * 0.5; _local3._y = _local8 * 0.5; var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_timeout = _local9; chk.started = getTimer(); chk.showing = false; _local3.lc.adLoaded = options.ad_loaded; _local3.lc.adSkipped = options.ad_skipped; _local3.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; _local3.rpcTestFn = function (s) { trace("[MOCHIAD rpcTestFn] " + s); return(s); }; var _local21 = false; chk.onEnterFrame = function () { var _local5 = this._parent._mochiad_ctr; var _local4 = getTimer() - this.started; var _local2 = false; if (!chk.showing) { var _local3 = _local5.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { _local2 = true; chk.showing = true; chk.started = getTimer(); } else if (_local4 > chk.ad_timeout) { options.ad_failed(); _local2 = true; } } if (_local2) { delete this.onEnterFrame; } }; } static function showInterLevelAd(options) { var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }, ad_skipped:function () { }}; options = _parseOptions(options, _local13); var clip = options.clip; var _local10 = 11000; var _local12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local5 = _getRes(options); var _local14 = _local5[0]; var _local11 = _local5[1]; mc._x = _local14 * 0.5; mc._y = _local11 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_msec = _local10; chk.ad_timeout = _local12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; mochi.as2.MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.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 _local5 = this._parent._mochiad_ctr; var _local4 = getTimer() - this.started; var _local2 = false; if (!chk.showing) { var _local3 = _local5.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (_local4 > chk.ad_timeout) { options.ad_failed(); _local2 = true; } } if (_local4 > chk.ad_msec) { _local2 = true; } if (_local2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; } static function showPreloaderAd(options) { trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); showPreGameAd(options); } static function showTimedAd(options) { trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); showInterLevelAd(options); } static function _allowDomains(server) { var _local1 = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(_local1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(_local1); } } return(_local1); } static function load(options) { var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = _parseOptions(options, _local12); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var _local6 = options.clip; if (!_isNetworkAvailable()) { return(null); } if (_local6._mochiad_loaded) { return(null); } var _local11 = options.depth; delete options.depth; var mc = _local6.createEmptyMovieClip("_mochiad", _local11); var _local10 = _getRes(options); options.res = (_local10[0] + "x") + _local10[1]; options.server = options.server + options.id; delete options.id; _local6._mochiad_loaded = true; if (_local6._url.indexOf("http") != 0) { trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal"); } var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1); for (var _local7 in options) { _local4[_local7] = options[_local7]; } var _local9 = _local4.server; delete _local4.server; var _local13 = _allowDomains(_local9); 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 _local5 = new Object(); var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local5.mc = mc; _local5.name = _local8; _local5.hostname = _local13; _local5.allowDomain = function (d) { return(true); }; _local5.allowInsecureDomain = _local5.allowDomain; _local5.connect(_local8); mc.lc = _local5; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; _local4.lc = _local8; _local4.st = getTimer(); if (!options.skip) { _local4.loadMovie(_local9 + ".swf", "POST"); } return(mc); } static function unload(clip) { if (typeof(clip) == "undefined") { clip = _root; } if (clip.clip && (clip.clip._mochiad)) { clip = clip.clip; } if (!clip._mochiad) { return(false); } containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName); clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return(true); } static function _isNetworkAvailable() { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); } static function _getRes(options) { var _local3 = options.clip.getBounds(); var _local2 = 0; var _local1 = 0; if (typeof(options.res) != "undefined") { var _local4 = options.res.split("x"); _local2 = parseFloat(_local4[0]); _local1 = parseFloat(_local4[1]); } else { _local2 = _local3.xMax - _local3.xMin; _local1 = _local3.yMax - _local3.yMin; } if ((_local2 == 0) || (_local1 == 0)) { _local2 = Stage.width; _local1 = Stage.height; } return([_local2, _local1]); } static function _parseOptions(options, defaults) { var _local4 = {}; for (var _local8 in defaults) { _local4[_local8] = defaults[_local8]; } if (options) { for (var _local8 in options) { _local4[_local8] = options[_local8]; } } if (_root.mochiad_options) { var _local5 = _root.mochiad_options.split("&"); var _local2 = 0; while (_local2 < _local5.length) { var _local3 = _local5[_local2].split("="); _local4[unescape(_local3[0])] = unescape(_local3[1]); _local2++; } } if (_local4.id == "test") { trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); } return(_local4); } static function rpc(clip, callbackID, arg) { switch (arg.id) { case "setValue" : setValue(clip, arg.objectName, arg.value); break; case "getValue" : var _local4 = getValue(clip, arg.objectName); containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName); break; case "runMethod" : var _local3 = runMethod(clip, arg.method, arg.args); containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName); break; default : trace("[mochiads rpc] unknown rpc id: " + arg.id); } } static function setValue(base, objectName, value) { var _local2 = objectName.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) { return(undefined); } base = base[_local2[_local1]]; _local1++; } base[_local2[_local1]] = value; } static function getValue(base, objectName) { var _local2 = objectName.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) { return(undefined); } base = base[_local2[_local1]]; _local1++; } return(base[_local2[_local1]]); } static function runMethod(base, methodName, argsArray) { var _local2 = methodName.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) { return(undefined); } base = base[_local2[_local1]]; _local1++; } if (typeof(base[_local2[_local1]]) == "function") { return(base[_local2[_local1]].apply(base, argsArray)); } return(undefined); } static function containerNotify(clip, args, lcName) { var _local1 = clip._mochiad._mochiad_ctr.ad.app; if (_local1.notify) { _local1.notify(args); } else { new LocalConnection().send(lcName, "notify", args); } } static function containerRpcResult(clip, callbackID, val, lcName) { var _local1 = clip._mochiad._mochiad_ctr.ad.app; if (_local1.rpcResult) { _local1.rpcResult(callbackID, val); } else { new LocalConnection().send(lcName, "rpcResult", callbackID, val); } } }Symbol 100 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0class mochi.as2.MochiSync { var _syncContainer; function MochiSync () { _syncContainer = {}; } function getProp(name) { return(_syncContainer[name]); } function setProp(name, value) { if (_syncContainer[name] == value) { return(undefined); } _syncContainer[name] = value; mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value}); } function triggerEvent(eventType, args) { switch (eventType) { case SYNC_REQUEST : mochi.as2.MochiServices.send("sync_syncronize", _syncContainer); break; case SYNC_PROPERTY : _syncContainer[args.name] = args.value; } } static var SYNC_REQUEST = "SyncRequest"; static var SYNC_PROPERTY = "UpdateProperty"; }Symbol 101 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0class mochi.as2.MochiServices { static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel; function MochiServices () { } static function get id() { return(_id); } static function get clip() { return(_container); } static function get childClip() { return(_clip); } static function getVersion() { return("3.8 as2"); } static function allowDomains(server) { var _local1 = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(_local1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(_local1); } } return(_local1); } static function get isNetworkAvailable() { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); } static function set comChannelName(val) { if (val != undefined) { if (val.length > 3) { _sendChannelName = val + "_fromgame"; initComChannels(); } } //return(__get__comChannelName()); } static function get connected() { return(_connected); } static function connect(id, clip, onError) { warnID(id, false); if ((!_connected) && (_clip == undefined)) { trace("MochiServices Connecting..."); _connecting = true; 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); }; } } static function disconnect() { if (_connected || (_connecting)) { _connecting = (_connected = false); flush(true); if (_clip != undefined) { _clip.removeMovieClip(); delete _clip; } _listenChannel.close(); } } static function init(id, clip) { _id = id; if (clip != undefined) { _container = clip; } else { _container = _root; } loadCommunicator(id, _container); } static function loadCommunicator(id, clip) { var _local6 = "_mochiservices_com_" + id; var _local5 = new MovieClipLoader(); var _local3 = {}; if (_clip != null) { return(_clip); } if (!isNetworkAvailable) { return(null); } if (urlOptions().servURL) { _servURL = urlOptions().servURL; } var _local4 = _servURL + _services; if (urlOptions().servicesURL) { _local4 = urlOptions().servicesURL; } allowDomains(_local4); _clip = clip.createEmptyMovieClip(_local6, 10336, false); _listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999)); listen(); if (_local3.waitInterval != null) { clearInterval(_local3.waitInterval); } _local3.onLoadError = loadError; _local3.onLoadStart = function (target_mc) { this.isLoading = true; }; _local3.onLoadComplete = function (target_mc) { target_mc.MochiServices = mochi.as2.MochiServices; }; _local3.startTime = getTimer(); _local3.wait = function () { if ((getTimer() - this.startTime) > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, ["IOError"]); } clearInterval(this.waitInterval); } }; _local3.waitInterval = setInterval(_local3, "wait", 1000); _local5.addListener(_local3); _local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip); _sendChannel = new LocalConnection(); _sendChannel._queue = []; return(_clip); } static function loadError(target_mc, errorCode, httpStatus) { trace("MochiServices could not load."); disconnect(); onError.apply(null, [errorCode]); } static function onStatus(infoObject) { if (!(infoObject.level === "error")) { } else { _connected = false; _listenChannel.connect(_listenChannelName); } } static function listen() { _listenChannel = new LocalConnection(); _listenChannel.handshake = function (args) { mochi.as2.MochiServices.__set__comChannelName(args.newChannel); }; _listenChannel.allowDomain = function (d) { return(true); }; _listenChannel.allowInsecureDomain = _listenChannel.allowDomain; _listenChannel._nextcallbackID = 0; _listenChannel._callbacks = {}; _listenChannel.connect(_listenChannelName); trace("Waiting for MochiAds services to connect..."); } static function initComChannels() { if (!_connected) { _sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()}); _listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; _listenChannel.onReceive = function (pkg) { var _local5 = pkg.callbackID; var _local4 = this._callbacks[_local5]; if (!_local4) { return(undefined); } var _local2 = _local4.callbackMethod; var _local3 = _local4.callbackObject; if (_local3 && (typeof(_local2) == "string")) { _local2 = _local3[_local2]; } if (_local2 != undefined) { _local2.apply(_local3, pkg.args); } delete this._callbacks[_local5]; }; _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); } }; _listenChannel.onError = function () { mochi.as2.MochiServices.onError.apply(null, ["IOError"]); }; trace("[SERVICES_API] connected!"); _connecting = false; _connected = true; while (_sendChannel._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift()); } } } static function updateCopy(args) { send("coins_updateCopy", args, null, null); } static function flush(error) { var _local1; var _local2; while (_sendChannel._queue.length > 0) { _local1 = _sendChannel._queue.shift(); if (_local1.callbackID != null) { _local2 = _listenChannel._callbacks[_local1.callbackID]; } delete _listenChannel._callbacks[_local1.callbackID]; if (error) { handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod); } } } static function handleError(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); } } } static function send(methodName, args, callbackObject, callbackMethod) { if (_connected) { _sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID}); } else { if ((_clip == undefined) || (!_connecting)) { trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName); handleError(args, callbackObject, callbackMethod); flush(true); return(undefined); } _sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID}); } _listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod}; _listenChannel._nextcallbackID++; } static function urlOptions() { var _local5 = {}; var _local6; if (_root._url.indexOf("mochiad_options") != -1) { var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1; _local6 = _root._url.substr(_local2, _root._url.length); } else if (_root.mochiad_options) { _local6 = _root.mochiad_options; } if (_local6) { var _local4 = _root.mochiad_options.split("&"); var _local2 = 0; while (_local2 < _local4.length) { var _local3 = _local4[_local2].split("="); _local5[unescape(_local3[0])] = unescape(_local3[1]); _local2++; } } return(_local5); } static function warnID(bid, leaderboard) { bid = bid.toLowerCase(); if (bid.length != 16) { trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length"); return(undefined); } if (bid == "1e113c7239048b3f") { if (leaderboard) { trace("WARNING: Using testing board ID"); } else { trace("WARNING: Using testing board ID as game ID"); } return(undefined); } if (bid == "84993a1de4031cd8") { if (leaderboard) { trace("WARNING: Using testing game ID as board ID"); } else { trace("WARNING: Using testing game ID"); } return(undefined); } var _local1 = 0; while (_local1 < bid.length) { switch (bid.charAt(_local1)) { 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" : case "d" : case "e" : case "f" : break; default : trace("WARNING: Board ID contains illegal characters: " + bid); return(undefined); } _local1++; } } static function addLinkEvent(url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var _local2 = new Object(); _local2.mav = getVersion(); _local2.swfv = btn.getSWFVersion() || 6; _local2.swfurl = btn._url; _local2.fv = System.capabilities.version; _local2.os = System.capabilities.os; _local2.lang = System.capabilities.language; _local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY; var s = "?"; var _local3 = 0; for (var _local6 in _local2) { if (_local3 != 0) { s = s + "&"; } _local3++; s = ((s + _local6) + "=") + escape(_local2[_local6]); } if (!(netupAttempted || (_connected))) { var ping = btn.createEmptyMovieClip("ping", 777); var _local7 = btn.createEmptyMovieClip("nettest", 778); netupAttempted = true; ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer()); _local7.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 _local4 = btn.createEmptyMovieClip("clk", 1001); _local4._alpha = 0; _local4.beginFill(1044735); _local4.moveTo(0, 0); _local4.lineTo(0, btn._height); _local4.lineTo(btn._width, btn._height); _local4.lineTo(btn._width, 0); _local4.lineTo(0, 0); _local4.endFill(); _local4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL (url + s, "_blank"); } else { getURL (burl, "_blank"); } if (onClick != undefined) { onClick(); } }; } static function setContainer(clip) { } static function stayOnTop(clip) { } static var _servURL = "http://www.mochiads.com/static/lib/services/"; static var _services = "services.swf"; static var _mochiLC = "MochiLC.swf"; static var _listenChannelName = "__ms_"; static var _connecting = false; static var _connected = false; static var netup = true; static var netupAttempted = false; static var servicesSync = new mochi.as2.MochiSync(); }Symbol 102 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0class mochi.as2.MochiEventDispatcher { var eventTable; function MochiEventDispatcher () { eventTable = {}; } function buildDelegate(thisObject, thatObject) { var _local2 = {thisObject:thisObject, thatObject:thatObject}; if (thatObject != undefined) { var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject)); _local2.delegate = function (args) { funct.call(thisObject, args); }; } else { _local2.delegate = thisObject; } return(_local2); } function compareDelegate(d_A, d_B) { if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) { return(false); } return(true); } function addEventListener(event, thisObject, thatObject) { removeEventListener(event, thisObject, thatObject); eventTable[event].push(buildDelegate(thisObject, thatObject)); } function removeEventListener(event, thisObject, thatObject) { var _local3 = buildDelegate(thisObject, thatObject); if (eventTable[event] == undefined) { eventTable[event] = []; return(undefined); } for (var _local4 in eventTable[event]) { if (!compareDelegate(eventTable[event][_local4], _local3)) { continue; } eventTable[event].splice(Number(_local4), 1); } } function triggerEvent(event, args) { if (eventTable[event] == undefined) { return(undefined); } for (var _local4 in eventTable[event]) { eventTable[event][_local4].delegate(args); } } }Symbol 103 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0class mochi.as2.MochiEvents { function MochiEvents () { } static function getVersion() { return(mochi.as2.MochiServices.getVersion()); } static function startSession(achievementID) { mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null); } static function setNotifications(clip, style) { var _local2 = {}; for (var _local3 in style) { _local2[_local3] = style[_local3]; } _local2.clip = clip; mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null); } static function addEventListener(eventType, thisObject, thatObject) { _dispatcher.addEventListener(eventType, thisObject, thatObject); } static function triggerEvent(eventType, args) { _dispatcher.triggerEvent(eventType, args); } static function removeEventListener(eventType, thisObject, thatObject) { _dispatcher.removeEventListener(eventType, thisObject, thatObject); } static function startPlay(tag) { if (tag == undefined) { tag = "gameplay"; } mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null); } static function endPlay() { mochi.as2.MochiServices.send("events_clearRoundID", null, null, null); } static function trackEvent(tag, value) { mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null); } static var ACHIEVEMENT_RECEIVED = "AchievementReceived"; static var ALIGN_TOP_LEFT = "ALIGN_TL"; static var ALIGN_TOP = "ALIGN_T"; static var ALIGN_TOP_RIGHT = "ALIGN_TR"; static var ALIGN_LEFT = "ALIGN_L"; static var ALIGN_CENTER = "ALIGN_C"; static var ALIGN_RIGHT = "ALIGN_R"; static var ALIGN_BOTTOM_LEFT = "ALIGN_BL"; static var ALIGN_BOTTOM = "ALIGN_B"; static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR"; static var FORMAT_SHORT = "ShortForm"; static var FORMAT_LONG = "LongForm"; static var _dispatcher = new mochi.as2.MochiEventDispatcher(); }Symbol 104 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0class mochi.as2.MochiSocial { function MochiSocial () { } static function getVersion() { return(mochi.as2.MochiServices.getVersion()); } static function showLoginWidget(options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options}); } static function hideLoginWidget() { mochi.as2.MochiServices.send("coins_hideLoginWidget"); } static function requestLogin() { mochi.as2.MochiServices.send("coins_requestLogin"); } static function getUserInfo() { mochi.as2.MochiServices.send("coins_getUserInfo"); } static function saveUserProperties(properties) { mochi.as2.MochiServices.send("coins_saveUserProperties", properties); } static function addEventListener(eventType, delegate) { _dispatcher.addEventListener(eventType, delegate); } static function triggerEvent(eventType, args) { _dispatcher.triggerEvent(eventType, args); } static function removeEventListener(eventType, delegate) { _dispatcher.removeEventListener(eventType, delegate); } static var LOGGED_IN = "LoggedIn"; static var LOGGED_OUT = "LoggedOut"; static var LOGIN_SHOW = "LoginShow"; static var LOGIN_HIDE = "LoginHide"; static var LOGIN_SHOWN = "LoginShown"; static var PROFILE_SHOW = "ProfileShow"; static var PROFILE_HIDE = "ProfileHide"; static var PROPERTIES_SAVED = "PropertySaved"; static var WIDGET_LOADED = "WidgetLoaded"; static var USER_INFO = "UserInfo"; static var ERROR = "Error"; static var IO_ERROR = "IOError"; static var NO_USER = "NoUser"; static var PROPERTIES_SIZE = "PropertiesSize"; static var _dispatcher = new mochi.as2.MochiEventDispatcher(); }Symbol 105 MovieClip [__Packages.GameOnAde] Frame 0class GameOnAde { var game_type, game_mc, game_loader, game_random_key, game_random_key_other, game_loaded, game_width, game_height, game_language, game_played_num, game_highest_score, bt, bl, game_url, game_main_container, secret_key, game_time, fps_average, fps_interval_freq, fps_recorder_length, fps_last_row_num, fps_recorder, fps_interval, game_points, game_points_info, score_saved, preloader_mc; function GameOnAde (_game_type, _game_mc, _gw, _gh, _GL, _game_lang) { fscommand ("showmenu", false); Stage.showMenu = false; Stage.scaleMode = "noScale"; Stage.align = "TL"; fscommand ("allowscale", false); GameLoader.display_info("[Game] - constructor"); game_type = _game_type; game_mc = _game_mc; if (game_type == GAME_PRIVATE) { game_loader = _GL; game_random_key = game_loader.getRandomKey(); game_random_key_other = game_loader.getRandomKeyOther(); game_loader.setGameOnAde(this); } else { game_random_key = 29092007 /* 0x1BBE8A7 */; game_random_key_other = 11081984 /* 0xA91900 */; fscommand ("allowscale", true); Stage.scaleMode = "showAll"; } game_loaded = false; game_width = _gw; game_height = _gh; game_language = _game_lang; game_played_num = 0; game_highest_score = 0; bt = (bl = 0); GameLoader.display_info("[Game] - game_random_key: " + game_random_key); } function setGameUrl(_S) { game_url = _S; } function getGameUrl() { return(game_url); } function getGameType() { return(game_type); } function getGameMainContainer() { return(game_main_container); } function setSecretKey(_S) { secret_key = _S; } function getSecretKey() { return(secret_key); } function getGamePlayedNum() { return(game_played_num); } function getGameTime() { return(game_time); } function getGameLanguage() { return(game_language); } function getHighestScore() { return(game_highest_score); } function setHighestScore(_N) { game_highest_score = Math.max(_N, game_highest_score); } function getFPSAVG() { return(fps_average); } function checkUrl(_FRAME) { if (_FRAME == undefined) { _FRAME = "illegal"; } CheckUrl.checkThisUrl(_url, game_mc, _FRAME); } function timerStart() { GameTimer.start(); } function timerStop() { GameTimer.stop(); } function timerReset() { GameTimer.reset(); game_time = 0; } function timerGetTime() { return(GameTimer.getGameTime()); } function startFpsRecording(_F, _L) { fps_interval_freq = (_F ? (_F) : (FPS_FREQ)); fps_recorder_length = (_L ? (_L) : (FPS_LENGTH)); fps_last_row_num = 0; fps_recorder = new Array(); fps_average = 0; GameLoader.display_info((("[startFpsRecording]: fps_interval_freq>" + fps_interval_freq) + " fps_recorder_length>") + fps_recorder_length); } function startFPS() { FPSCounter.startInvisible(game_mc, -50001); if (game_type == GAME_PRIVATE) { fps_interval = setInterval(fpsRecorder, fps_interval_freq, this); } } function stopFPS() { FPSCounter.stop(game_mc); clearInterval(fps_interval); } function fpsRecorder(_GAME) { var _local2 = FPSCounter.getLastFPS(); if (_GAME.fps_recorder.length < _GAME.fps_recorder_length) { _GAME.fps_recorder.push(_local2); } else { if (_GAME.fps_last_row_num >= _GAME.fps_recorder_length) { _GAME.fps_last_row_num = 0; } _GAME.fps_recorder[_GAME.fps_last_row_num++] = _local2; } } function getFpsAvg() { var _local5 = 0; if (game_type == GAME_PRIVATE) { var _local4 = 0; var _local3 = fps_recorder.length; if (_local3 > 0) { var _local2 = 0; while (_local2 < _local3) { _local4 = _local4 + fps_recorder[_local2]; _local2++; } _local5 = Math.round(_local4 / _local3); GameLoader.display_info("[fpsRecorder]: fps_recorder: " + fps_recorder); fps_recorder = new Array(); fps_last_row_num = 0; } else { _local5 = -1; } } else { _local5 = -2; } return(_local5); } function setPoints(_P) { game_points = Xor.endecodeNumber(_P, game_random_key); game_points_info = _P; GameLoader.display_info(((((((("\tPOINTS xor: " + game_points) + "(") + Xor.endecodeNumber(game_points, game_random_key)) + ")") + " info:") + game_points_info) + " key:") + game_random_key); } function addPoints(_P) { var _local2 = Math.round(_P); game_points_info = game_points_info + _local2; game_points = Xor.endecodeNumber(Xor.endecodeNumber(game_points, game_random_key) + _local2, game_random_key); GameLoader.display_info(((((("\tPOINTS xor: " + game_points) + "(") + Xor.endecodeNumber(game_points, game_random_key)) + ")") + " info:") + game_points_info); return(game_points); } function getPoints() { return(game_points); } function getPointsInfo() { return(game_points_info); } function getPointsToSave() { return(Xor.endecodeNumber(game_points, game_random_key)); } function setSecureValue(_N) { return(Xor.endecodeNumber(_N, game_random_key_other)); } function addSecureValue(_NV, _N) { return(Xor.endecodeNumber(Xor.endecodeNumber(_N, game_random_key_other) + _NV, game_random_key_other)); } function savePlaytime() { if (game_type == GAME_PRIVATE) { timerStop(); game_time = timerGetTime(); game_loader.savePlaytime(game_time); GameLoader.display_info("[savePlaytime - GameOnAde] game_played_num" + game_played_num); } } function savePoints() { if (game_type == GAME_PRIVATE) { game_loader.savePoints(); GameLoader.display_info("[savePoints - GameOnAde] score_saved" + score_saved); } else { getURL (game_url, "_self"); } } function setScoreSaved(_B) { score_saved = _B; if (_B) { game_played_num = 0; } GameLoader.display_info("[setScoreSaved] - score_saved:" + score_saved); } function getScoreSaved() { return(score_saved); } function startGame() { setPoints(0); if (game_type == GAME_PRIVATE) { timerReset(); startFPS(); } } function endGame() { if (game_type == GAME_PRIVATE) { game_played_num++; fps_average = getFpsAvg(); stopFPS(); savePlaytime(); } setScoreSaved(false); GameLoader.display_info((("[endGame] - fps_avg:" + fps_average) + " game_time:") + game_time); } function startPreloader(_preloader_name) { GameLoader.display_info("[startPreloader] - start"); bt = game_mc.getBytesTotal(); bl = game_mc.getBytesLoaded(); if (_preloader_name == undefined) { _preloader_name = "gameonade_preloader"; } preloader_mc = game_mc.attachMovie(_preloader_name, _preloader_name, 25000); preloader_mc.game = this; preloader_mc._x = game_width / 2; preloader_mc._y = game_height / 2; preloader_mc.onRelease = function () { getURL (GameOnAde.SITE_URL, "_blank"); }; preloader_mc.percentage = 0; if (game_type == GAME_EXE) { preloader_mc.bt_txt.text = " "; } else { preloader_mc.bt_txt.text = bt; } preloader_mc.onEnterFrame = function () { this.game.bl = this.game.game_mc.getBytesLoaded(); this.percentage = Math.round((this.game.bl * 100) / this.game.bt); this.bt_txt.text = this.game.bt; this.bl_txt.text = this.game.bl; if (this.game.game_type == GameOnAde.GAME_EXE) { this.preloader_mc.bt_txt.text = " "; } else { this.loading_mc.percentage_txt.text = this.percentage + " %"; } if ((this.game.bl >= this.game.bt) && (this.is_stop)) { delete this.onEnterFrame; this.game.game_loaded = true; this.play(); } }; } function centerIt(_mc) { _mc._x = (game_width / 2) - (_mc._width / 2); _mc._y = (game_height / 2) - (_mc._height / 2); } static var FPS_FREQ = 10000; static var FPS_LENGTH = 20; static var GAME_PRIVATE = "private"; static var GAME_PUBLIC = "public"; static var GAME_EXE = "exe"; static var SITE_URL = "http://www.gameonade.com"; }Symbol 106 MovieClip [__Packages.GameLoader] Frame 0class GameLoader { var main_swf, game_swf, secret_key, random_key, random_key_other, site_culture, saved_time_id, user, site_domain, game_url, game_id, game_on_ade, game_last_score, translation, game_loader, game_listener; function GameLoader (_main_swf, _culture, _console) { if (_console == undefined) { _console = false; } _root.info_txt.selectable = _console; _root.info_txt._visible = _console; display_info("[GameLoader] - constructor"); fscommand ("showmenu", false); Stage.showMenu = false; Stage.align = "TL"; main_swf = _main_swf; game_swf = main_swf.createEmptyMovieClip("game_swf", 1); secret_key = "all_for_one"; random_key = 256 + Math.round(Math.random() * 1000000); random_key_other = 123 + Math.round(Math.random() * 10000); site_culture = ((_culture == undefined) ? "en" : (_culture)); saved_time_id = 0; user = new User(); } function getDomainName() { return((site_domain ? (site_domain) : "")); } function setGameUrl(_T, _GID, _RAND) { game_url = (((getDomainName() + GAME_PATH) + _T) + "/") + _GID; game_url = game_url + (_RAND ? ("/" + Math.round(Math.random() * 100)) : (site_culture)); game_id = _GID; display_info("\t\t[setGameUrl >> " + game_url); } function setSiteDomain(_T) { site_domain = _T; } function getSecretKey() { return(secret_key); } function getRandomKey() { return(random_key); } function getRandomKeyOther() { return(random_key_other); } function getUser() { return(user); } function setGameOnAde(_G) { game_on_ade = _G; } function getGameOnAde() { return(game_on_ade); } function setSavedTimeId(_N) { saved_time_id = _N; } function getSavedTimeId() { return(saved_time_id); } function savePlaytime(_T) { var _local2 = new LoadVars(); _local2.time = _T; _local2.game_id = game_id; var _local3 = new LoadVars(); _local2.sendAndLoad(getDomainName() + GAME_TIME_PATH, _local3, "post"); _local3.game = this; _local3.onLoad = function (success) { if (success) { GameLoader.display_info((("[savePlaytime] ERROR:" + this.error) + " time_id:") + this.time); this.game.setSavedTimeId(this.time); } else { GameLoader.display_info("[savePlaytime] LOADING ERROR"); } }; } function savePoints() { display_info("\n\n\t\tSAVING POINTS\n\n"); var _local2 = getGameOnAde(); game_swf._visible = false; display_error_window(__i18n("loading")); if (!_local2.getScoreSaved()) { if (_local2.getPointsInfo() > 0) { _local2.setHighestScore(_local2.getPointsInfo()); var _local5 = MD5.getHash(((((_local2.getSecretKey() + String(game_id)) + String(_local2.getGameTime())) + String(_local2.getPointsToSave())) + String(_local2.getFPSAVG())) + secret_key); display_info((((((((("[GL savePoints] data: \n\t\t game_id:" + game_id) + "\n\t\t _G.getGameTime():") + _local2.getGameTime()) + "\n\t\t G.getPointsToSave():") + _local2.getPointsToSave()) + "\n\t\t _G.getFPSAVG:") + _local2.getFPSAVG()) + " \n\n\t _G.getGamePlayedNum():") + _local2.getGamePlayedNum()); var _local3 = new LoadVars(); _local3.game_id = game_id; _local3.time = _local2.getGameTime(); game_last_score = (_local3.score = _local2.getPointsInfo()); _local3.fps = _local2.getFPSAVG(); _local3.checksum = _local5; _local3.time_id = getSavedTimeId(); _local3.played_num = _local2.getGamePlayedNum(); var _local4 = new LoadVars(); _local3.sendAndLoad(getDomainName() + GAME_SCORE_PATH, _local4, "post"); _local4.my_game = _local2; _local4.game_loader = this; _local4.onLoad = function (success) { if (success) { GameLoader.display_info("[SAVE SCORE TEST] SHOW ERROR:" + this.error); if (this.error == 0) { this.my_game.setScoreSaved(true); this.game_loader.display_scores_window(this.error); GameLoader.display_info("[saveScore] display table with scores:" + this.error); } else if (this.error == "SCO1") { this.game_loader.display_login_window(this.error); } else { this.game_loader.display_error_window(((this.game_loader.__i18n(this.error) + " (") + this.error) + ")"); GameLoader.display_info("[saveScore] DISPLAY LOGIN FORM:" + this.error); } } else { this.game_loader.display_error_window(this.game_loader.__i18n("transfer_failed")); GameLoader.display_info("[saveScore] LOADING ERROR"); } }; } else { display_error_window(__i18n("points_zero")); display_info("[saveScore] POINTS NOT ENOUGH"); } } else { display_error_window(__i18n("score_already")); display_info("[saveScore] SCORE ALREADY SAVED"); } } function loadCultureXML() { translation = new Array(); var _local3 = new XML(); _local3.ignoreWhite = true; _local3.game_loader = this; _local3.onLoad = function (success) { if (success) { var _local2 = this.firstChild.firstChild.firstChild; var _local3 = 0; while (_local2) { this.game_loader.translation[_local2.nodeName] = _local2.firstChild.nodeValue; _local2 = _local2.nextSibling; } this.game_loader.loadGame(); } else { GameLoader.display_info("[cultureXML] ERROR WITH RECEIVING CULTURE DATA"); } }; _local3.load((((GAME_CULTURE_PATH + site_culture) + ".xml") + "?rand=") + Math.round(Math.random() * 100)); } function __i18n(_S) { return(translation[_S]); } function loadGame() { display_info("[GameLoader] - LoadGame"); game_loader = new MovieClipLoader(); game_listener = new Object(); game_listener.all = this; game_loader.addListener(game_listener); game_loader.loadClip(game_url, game_swf); main_swf.loading_txt.text = "loading ..."; game_listener.onLoadInit = function (_mc) { GameLoader.display_info("[GameLoader] - onLoadInit"); }; game_listener.onLoadProgress = function (_mc, bytesLoaded, bytesTotal) { var _local2 = Math.round((bytesLoaded / bytesTotal) * 100); this.all.main_swf.loading_txt.text = ("loading " + _local2) + "%"; }; game_listener.onLoadComplete = function (_mc) { GameLoader.display_info("[GameLoader] - onLoadComplete"); }; game_listener.onLoadStart = function (_mc) { GameLoader.display_info("[GameLoader] - onLoadStart"); }; game_listener.onLoadError = function () { GameLoader.display_info("[GameLoader] - onLoadError"); }; } function getPointsTable(_RANK, _W) { display_info((("[getPointsTable] Rank:" + _RANK) + " _W:") + _W); _W.info_txt.text = __i18n("loading_scores"); _W.alltime_btn.bg_mc.gotoAndStop(2); _W.thisweek_btn.bg_mc.gotoAndStop(2); _W.today_btn.bg_mc.gotoAndStop(2); var _local7 = _W[_RANK + "_btn"]; _local7.bg_mc.gotoAndStop(1); var _local6 = new XML(); _local6.ignoreWhite = true; _local6.game_loader = this; _local6.onLoad = function (success) { if (success) { var _local5 = new Array(); var _local4 = this.firstChild.firstChild.childNodes; var _local3 = 0; while (_local3 < _local4.length) { _local5[_local3] = new Array(); _local5[_local3].log = ((_local4[_local3].attributes.type == "logged") ? 1 : 0); var _local2 = _local4[_local3].firstChild; while (_local2) { _local5[_local3][_local2.nodeName] = _local2.firstChild.nodeValue; if (_local4[_local3].attributes.type == "logged") { if (_local2.nodeName == "id") { this.game_loader.user.setUserId(_local2.firstChild.nodeValue); } else if (_local2.nodeName == "lo") { this.game_loader.user.setUserName(_local2.firstChild.nodeValue); } else if (_local2.nodeName == "sc") { this.game_loader.user.setRankPoints(_local2.firstChild.nodeValue); } else if (_local2.nodeName == "po") { this.game_loader.user.setRankPosition(_local2.firstChild.nodeValue); } } _local2 = _local2.nextSibling; } _local3++; } _W.info_txt.text = ""; this.game_loader.displayPointsTable(_local5, _W); } else { _W.info_txt.text = this.game_loader.__i18n("transfer_failed"); GameLoader.display_info("[scoreTable] ERROR WITH RECEIVING DATA"); } }; _local6.load((((((getDomainName() + GAME_SCORE_TABLE_PATH) + game_id) + "/") + _RANK) + "?rand=") + Math.round(Math.random() * 100)); } function displayPointsTable(_A, _W) { var _local3 = new Array(); var _local6 = _W.empty_mc.createEmptyMovieClip("cont", 1); _local6._y = (_local6._x = 1); var _local1 = new MovieClip(); var _local2 = 0; while (_local2 < _A.length) { _local3 = _A[_local2]; _local1 = _local6.attachMovie("score_line", "sl" + _local2, _local2); _local1._y = _local2 * _local1._height; _local1.po_txt.text = _local3.po; _local1.lo_txt.text = _local3.lo; _local1.sc_txt.text = _local3.sc; var _local4 = (Number(_local3.po) - 1) % 2; if (_local4 == 0) { _local1.bg_mc.gotoAndStop(2); } if (_local3.log == 1) { _local1.bg_mc.gotoAndStop(3); } _local2++; } } function display_scores_window(_S) { var _local2 = display_window("scores"); _local2.alltime_btn.onRelease = function () { this._parent.game_loader.getPointsTable("alltime", this._parent); }; _local2.alltime_btn.title_txt.text = __i18n("alltime"); _local2.alltime_btn.bg_mc.gotoAndStop(2); _local2.thisweek_btn.onRelease = function () { this._parent.game_loader.getPointsTable("thisweek", this._parent); }; _local2.thisweek_btn.title_txt.text = __i18n("thisweek"); _local2.thisweek_btn.bg_mc.gotoAndStop(2); _local2.today_btn.onRelease = function () { this._parent.game_loader.getPointsTable("today", this._parent); }; _local2.today_btn.title_txt.text = __i18n("today"); _local2.today_btn.bg_mc.gotoAndStop(2); getPointsTable("today", _local2); _local2.battle_btn.onRelease = function () { this._parent.game_loader.display_battle_window(); }; _local2.battle_btn.title_txt.text = __i18n("butt_challenge"); } function display_login_window(_S) { var _local2 = display_window("login"); _local2.error_txt.text = _S; var _local6 = getGameOnAde(); _local2.username_mc.label_txt.text = __i18n("username"); _local2.username_mc.field_txt.text = __i18n("username"); _local2.password_mc.label_txt.text = __i18n("password"); _local2.password_mc.field_txt.password = true; _local2.password_mc.field_txt.text = __i18n("password"); _local2.login_btn.onRelease = function () { var _local5 = this._parent.username_mc.field_txt.text; var _local4 = this._parent.password_mc.field_txt.text; this._parent.info_txt.text = this._parent.game_loader.__i18n("wait"); var _local2 = new LoadVars(); _local2.username = _local5; _local2.uservalue = _local4; _local2.game_id = this._parent.game_loader.game_id; var _local3 = new LoadVars(); _local2.sendAndLoad(this._parent.game_loader.getDomainName() + GameLoader.GAME_AUTH_PATH, _local3, "post"); _local3.window_mc = this._parent; _local3.onLoad = function (success) { if (success) { if (this.error == 0) { this.window_mc.info_txt.text = this.window_mc.game_loader.__i18n("LOGOK"); this.window_mc.game_loader.savePoints(); } else { this.window_mc.info_txt.text = this.window_mc.game_loader.__i18n(this.error); } } else { this.window_mc.info_txt.text = this.window_mc.game_loader.__i18n("transfer_failed"); } }; }; _local2.login_btn.title_txt.text = __i18n("butt_login"); _local2.register_btn.gotoAndStop(2); _local2.register_btn.title_txt.text = __i18n("butt_register"); _local2.register_btn.my_lang = _local6.getGameLanguage(); _local2.register_btn.onRelease = function () { getURL (((this._parent.game_loader.getDomainName() + "/") + this.my_lang) + GameLoader.GAME_REGISTER_PATH, "_blank"); }; } function display_battle_window(_S) { var _local2 = display_window("battle"); _local2.battle_txt.text = ((((__i18n("challenge_desc1") + " ") + game_last_score) + newline) + __i18n("challenge_desc2")) + " "; clearBattleFields(_local2); _local2.send_btn.onRelease = function () { this._parent.game_loader.sendBattleFields(this._parent); }; _local2.send_btn.title_txt.text = __i18n("butt_send"); } function sendBattleFields(_W) { var _local9 = __i18n("email_or_username"); var players_arr = new Array(); var _local3 = 1; while (_local3 <= 3) { var _local5 = _W[("player" + _local3) + "_mc"]; var _local2 = _local5.field_txt.text; if ((((_local2 != "") && (_local2 != " ")) && (_local2 != _local9)) && (_local2.length >= 2)) { players_arr.push(_local2); } _local3++; } var _local7 = new LoadVars(); _local7.game_id = game_id; _local7.score = game_last_score; _local3 = 0; while (_local3 < players_arr.length) { _local7["p" + _local3] = players_arr[_local3]; _local3++; } var _local10 = new LoadVars(); _W.info_txt.text = __i18n("sending"); _local10.players_arr = players_arr; _local10.onLoad = function (success) { if (success) { if (this.error == 0) { var _local5 = _W.game_loader.__i18n("challenge_send") + newline; var _local6 = this.send; var _local4 = _local6.split(";"); var _local2 = 0; while (_local2 < _local4.length) { var _local3 = _local4[_local2]; if (_local3 >= 0) { _local5 = _local5 + (this.players_arr[_local3] + newline); } _local2++; } _W.info_txt.text = _local5; _W.game_loader.clearBattleFields(_W); } else { _W.info_txt.text = _W.game_loader.__i18n(this.error); } } else { _W.info_txt.text = _W.game_loader.__i18n("transfer_failed"); } }; _local7.sendAndLoad(getDomainName() + GAME_CHALLENGE_PATH, _local10, "post"); } function clearBattleFields(_W) { var def_val = __i18n("email_or_username"); var _local3 = 1; while (_local3 <= 3) { var _local2 = _W[("player" + _local3) + "_mc"]; _local2.label_txt.text = ""; _local2.field_txt.text = def_val; _local2.field_txt.onSetFocus = function () { if (this.text == def_val) { this.text = ""; } }; _local2.field_txt.onKillFocus = function () { if ((this.text == "") || (this.text == " ")) { this.text = def_val; } }; _local3++; } } function display_error_window(_S) { var _local2 = display_window("error"); _local2.info_txt.text = _S; } function display_window(_T) { var _local3 = _root.attachMovie("window", "my_window", 200); centerIt(_local3); _local3.gotoAndStop(_T); _local3.game_loader = this; _local3.close_btn.onRelease = function () { this._parent.game_loader.game_swf._visible = true; this._parent.removeMovieClip(); }; _local3.move_btn.onPress = function () { this._parent.startDrag(); }; _local3.move_btn.onRelease = (_local3.move_btn.onReleaseOutside = function () { this._parent.stopDrag(); }); _local3.title_txt.text = __i18n("title_" + _T); _local3.info_txt.text = ""; return(_local3); } function centerIt(_mc) { _mc._x = (Stage.width / 2) - (_mc._width / 2); _mc._y = (Stage.height / 2) - (_mc._height / 2); } static function display_info(_S) { _root.info_txt.text = (_S + newline) + _root.info_txt.text; trace(_S); } static var GAME_PATH = "/show_me_game/"; static var GAME_TIME_PATH = "/game_time_save/"; static var GAME_SCORE_PATH = "/game_score_save/"; static var GAME_AUTH_PATH = "/user_game_authorization/"; static var GAME_SCORE_TABLE_PATH = "/game_score_table/"; static var GAME_REGISTER_PATH = "/register/"; static var GAME_CHALLENGE_PATH = "/challenge/"; static var GAME_CULTURE_PATH = "/swf/translation/"; }Symbol 107 MovieClip [__Packages.User] Frame 0class User { var is_auth, user_id, user_name, rank_points, rank_position; function User () { GameLoader.display_info("[User] - constructor"); } function getIsAuth() { return(is_auth); } function getUserId() { return(user_id); } function setUserId(_N) { user_id = _N; } function getUserName() { return(user_name); } function setUserName(_N) { user_name = _N; } function getRankPoints() { return(rank_points); } function setRankPoints(_N) { rank_points = _N; } function getRankPosition() { return(rank_position); } function setRankPosition(_N) { rank_position = _N; } function ifAuth() { return(true); } function setUserRank(_rank_type) { } }Symbol 108 MovieClip [__Packages.MD5] Frame 0class MD5 { function MD5 () { } static function getHash(str) { var _local6 = str2blks_MD5(str); var _local4 = 1732584193 /* 0x67452301 */; var _local3 = -271733879; var _local2 = -1732584194; var _local1 = 271733878 /* 0x10325476 */; var _local10; var _local9; var _local8; var _local7; var _local5 = 0; while (_local5 < _local6.length) { _local10 = _local4; _local9 = _local3; _local8 = _local2; _local7 = _local1; _local4 = ff(_local4, _local3, _local2, _local1, _local6[_local5 + 0], 7, -680876936); _local1 = ff(_local1, _local4, _local3, _local2, _local6[_local5 + 1], 12, -389564586); _local2 = ff(_local2, _local1, _local4, _local3, _local6[_local5 + 2], 17, 606105819); _local3 = ff(_local3, _local2, _local1, _local4, _local6[_local5 + 3], 22, -1044525330); _local4 = ff(_local4, _local3, _local2, _local1, _local6[_local5 + 4], 7, -176418897); _local1 = ff(_local1, _local4, _local3, _local2, _local6[_local5 + 5], 12, 1200080426); _local2 = ff(_local2, _local1, _local4, _local3, _local6[_local5 + 6], 17, -1473231341); _local3 = ff(_local3, _local2, _local1, _local4, _local6[_local5 + 7], 22, -45705983); _local4 = ff(_local4, _local3, _local2, _local1, _local6[_local5 + 8], 7, 1770035416); _local1 = ff(_local1, _local4, _local3, _local2, _local6[_local5 + 9], 12, -1958414417); _local2 = ff(_local2, _local1, _local4, _local3, _local6[_local5 + 10], 17, -42063); _local3 = ff(_local3, _local2, _local1, _local4, _local6[_local5 + 11], 22, -1990404162); _local4 = ff(_local4, _local3, _local2, _local1, _local6[_local5 + 12], 7, 1804603682); _local1 = ff(_local1, _local4, _local3, _local2, _local6[_local5 + 13], 12, -40341101); _local2 = ff(_local2, _local1, _local4, _local3, _local6[_local5 + 14], 17, -1502002290); _local3 = ff(_local3, _local2, _local1, _local4, _local6[_local5 + 15], 22, 1236535329); _local4 = gg(_local4, _local3, _local2, _local1, _local6[_local5 + 1], 5, -165796510); _local1 = gg(_local1, _local4, _local3, _local2, _local6[_local5 + 6], 9, -1069501632); _local2 = gg(_local2, _local1, _local4, _local3, _local6[_local5 + 11], 14, 643717713); _local3 = gg(_local3, _local2, _local1, _local4, _local6[_local5 + 0], 20, -373897302); _local4 = gg(_local4, _local3, _local2, _local1, _local6[_local5 + 5], 5, -701558691); _local1 = gg(_local1, _local4, _local3, _local2, _local6[_local5 + 10], 9, 38016083); _local2 = gg(_local2, _local1, _local4, _local3, _local6[_local5 + 15], 14, -660478335); _local3 = gg(_local3, _local2, _local1, _local4, _local6[_local5 + 4], 20, -405537848); _local4 = gg(_local4, _local3, _local2, _local1, _local6[_local5 + 9], 5, 568446438); _local1 = gg(_local1, _local4, _local3, _local2, _local6[_local5 + 14], 9, -1019803690); _local2 = gg(_local2, _local1, _local4, _local3, _local6[_local5 + 3], 14, -187363961); _local3 = gg(_local3, _local2, _local1, _local4, _local6[_local5 + 8], 20, 1163531501); _local4 = gg(_local4, _local3, _local2, _local1, _local6[_local5 + 13], 5, -1444681467); _local1 = gg(_local1, _local4, _local3, _local2, _local6[_local5 + 2], 9, -51403784); _local2 = gg(_local2, _local1, _local4, _local3, _local6[_local5 + 7], 14, 1735328473); _local3 = gg(_local3, _local2, _local1, _local4, _local6[_local5 + 12], 20, -1926607734); _local4 = hh(_local4, _local3, _local2, _local1, _local6[_local5 + 5], 4, -378558); _local1 = hh(_local1, _local4, _local3, _local2, _local6[_local5 + 8], 11, -2022574463); _local2 = hh(_local2, _local1, _local4, _local3, _local6[_local5 + 11], 16, 1839030562); _local3 = hh(_local3, _local2, _local1, _local4, _local6[_local5 + 14], 23, -35309556); _local4 = hh(_local4, _local3, _local2, _local1, _local6[_local5 + 1], 4, -1530992060); _local1 = hh(_local1, _local4, _local3, _local2, _local6[_local5 + 4], 11, 1272893353); _local2 = hh(_local2, _local1, _local4, _local3, _local6[_local5 + 7], 16, -155497632); _local3 = hh(_local3, _local2, _local1, _local4, _local6[_local5 + 10], 23, -1094730640); _local4 = hh(_local4, _local3, _local2, _local1, _local6[_local5 + 13], 4, 681279174); _local1 = hh(_local1, _local4, _local3, _local2, _local6[_local5 + 0], 11, -358537222); _local2 = hh(_local2, _local1, _local4, _local3, _local6[_local5 + 3], 16, -722521979); _local3 = hh(_local3, _local2, _local1, _local4, _local6[_local5 + 6], 23, 76029189); _local4 = hh(_local4, _local3, _local2, _local1, _local6[_local5 + 9], 4, -640364487); _local1 = hh(_local1, _local4, _local3, _local2, _local6[_local5 + 12], 11, -421815835); _local2 = hh(_local2, _local1, _local4, _local3, _local6[_local5 + 15], 16, 530742520); _local3 = hh(_local3, _local2, _local1, _local4, _local6[_local5 + 2], 23, -995338651); _local4 = ii(_local4, _local3, _local2, _local1, _local6[_local5 + 0], 6, -198630844); _local1 = ii(_local1, _local4, _local3, _local2, _local6[_local5 + 7], 10, 1126891415); _local2 = ii(_local2, _local1, _local4, _local3, _local6[_local5 + 14], 15, -1416354905); _local3 = ii(_local3, _local2, _local1, _local4, _local6[_local5 + 5], 21, -57434055); _local4 = ii(_local4, _local3, _local2, _local1, _local6[_local5 + 12], 6, 1700485571); _local1 = ii(_local1, _local4, _local3, _local2, _local6[_local5 + 3], 10, -1894986606); _local2 = ii(_local2, _local1, _local4, _local3, _local6[_local5 + 10], 15, -1051523); _local3 = ii(_local3, _local2, _local1, _local4, _local6[_local5 + 1], 21, -2054922799); _local4 = ii(_local4, _local3, _local2, _local1, _local6[_local5 + 8], 6, 1873313359); _local1 = ii(_local1, _local4, _local3, _local2, _local6[_local5 + 15], 10, -30611744); _local2 = ii(_local2, _local1, _local4, _local3, _local6[_local5 + 6], 15, -1560198380); _local3 = ii(_local3, _local2, _local1, _local4, _local6[_local5 + 13], 21, 1309151649); _local4 = ii(_local4, _local3, _local2, _local1, _local6[_local5 + 4], 6, -145523070); _local1 = ii(_local1, _local4, _local3, _local2, _local6[_local5 + 11], 10, -1120210379); _local2 = ii(_local2, _local1, _local4, _local3, _local6[_local5 + 2], 15, 718787259); _local3 = ii(_local3, _local2, _local1, _local4, _local6[_local5 + 9], 21, -343485551); _local4 = addme(_local4, _local10); _local3 = addme(_local3, _local9); _local2 = addme(_local2, _local8); _local1 = addme(_local1, _local7); _local5 = _local5 + 16; } return(((rhex(_local4) + rhex(_local3)) + rhex(_local2)) + rhex(_local1)); } static function rhex(num) { var _local3 = ""; var _local1 = 0; while (_local1 <= 3) { _local3 = _local3 + (hex_chr.charAt(bitAND(num >> ((_local1 * 8) + 4), 15)) + hex_chr.charAt(bitAND(num >> (_local1 * 8), 15))); _local1++; } return(_local3); } static function str2blks_MD5(str) { var _local4 = ((str.length + 8) >> 6) + 1; var _local2 = new Array(_local4 * 16); var _local1; _local1 = 0; while (_local1 < (_local4 * 16)) { _local2[_local1] = 0; _local1++; } _local1 = 0; while (_local1 < str.length) { _local2[_local1 >> 2] = _local2[_local1 >> 2] | (str.charCodeAt(_local1) << ((_local1 % 4) * 8)); _local1++; } _local2[_local1 >> 2] = _local2[_local1 >> 2] | (128 << ((_local1 % 4) * 8)); _local2[(_local4 * 16) - 2] = str.length * 8; return(_local2); } static function addme(x, y) { var _local1 = bitAND(x, 65535) + bitAND(y, 65535); var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16); return((_local2 << 16) | bitAND(_local1, 65535)); } static function rol(num, cnt) { return((num << cnt) | (num >>> (32 - cnt))); } static function cmn(q, a, b, x, s, t) { return(addme(rol(addme(addme(a, q), addme(x, t)), s), b)); } static function ff(a, b, c, d, x, s, t) { return(cmn(bitAND(b, c) | bitAND(~b, d), a, b, x, s, t)); } static function gg(a, b, c, d, x, s, t) { return(cmn(bitAND(b, d) | bitAND(c, ~d), a, b, x, s, t)); } static function hh(a, b, c, d, x, s, t) { return(cmn((b ^ c) ^ d, a, b, x, s, t)); } static function ii(a, b, c, d, x, s, t) { return(cmn(c ^ (b | (~d)), a, b, x, s, t)); } static function bitAND(a, b) { if ((a < 0) && (b < 0)) { var _local3 = (a & 1) & (b & 1); var _local4 = (a >>> 1) & (b >>> 1); return((_local4 << 1) | _local3); } return(a & b); } static var hex_chr = "0123456789abcdef"; }Symbol 109 MovieClip [__Packages.CheckUrl] Frame 0class CheckUrl { function CheckUrl () { } static function checkThisUrl(_curl, _mc, _frame) { var _local7 = "www."; var _local11 = "http://"; var _local2 = false; var _local3 = _curl; var _local8 = 0; var _local9 = new String(); var _local10 = new String(); var _local1 = 0; while (_local1 < urls.length) { if (_local3.indexOf(("http://" + urls[_local1]) + "/") != -1) { _local2 = true; } else if (_local3.indexOf(("." + urls[_local1]) + "/") != -1) { _local2 = true; } _local1++; } if (!_local2) { _mc.gotoAndStop(_frame); _mc._alpha = 0; delete _mc.onEnterFrame; var _local6 = _mc.createEmptyMovieClip("error_mc", 63033); var _local4 = _local6.createTextField("my_txt", 1, 0, 0, 250, 190); _local4.wordWrap = true; _local4.html = true; _local4.htmlText = "This copy of the game is illegal.\n\nGame came from <b><a href='http://www.gameonade.com'>www.GameOnade.Com</a></b>.\nNobody should copy this version of game.\n\nCheck on <a href='http://www.gameonade.com'>www.GameOnade.Com</a> - there could be a special copy which is allowed to spread on the other sites."; centerIt(_local6); trace("bad site"); } else { trace("good site"); } } static function centerIt(_mc) { _mc._x = (Stage.width / 2) - (_mc._width / 2); _mc._y = (Stage.height / 2) - (_mc._height / 2); } static var urls = new Array("gameonade.pl", "gameonade.com", "gameonade.eu"); }Symbol 110 MovieClip [__Packages.GameTimer] Frame 0class GameTimer { static var startTime; function GameTimer () { } static function start() { GameLoader.display_info("{GameTimer}[start]"); if (stopped) { stopped = false; startTime = getTimer(); } } static function stop() { if (!stopped) { stopped = true; if (startTime) { gameTime = gameTime + (getTimer() - startTime); } } GameLoader.display_info(("{GameTimer}[stop] ( " + gameTime) + " )"); } static function reset() { GameLoader.display_info("{GameTimer}[reset]"); gameTime = 0; } static function getGameTime() { return(gameTime); } static function isStopped() { return(stopped); } static function setStopped(ns) { stopped = ns; } static var gameTime = 0; static var stopped = true; }Symbol 111 MovieClip [__Packages.FPSCounter] Frame 0class FPSCounter { static var lastFPS; function FPSCounter () { } static function startInvisible(cont, depth) { var _local2 = cont.createEmptyMovieClip("fpsCounter", depth); _local2.lasttime = getTimer(); _local2.onEnterFrame = function () { FPSCounter.t = getTimer(); if ((FPSCounter.t - this.lastTime) > 0) { FPSCounter.framerate = Math.round((1000 / (FPSCounter.t - this.lastTime)) * 10) / 10; FPSCounter.lastFPS = FPSCounter.framerate; } this.lastTime = FPSCounter.t; }; } static function stop(cont) { var _local1 = cont.fpsCounter; _local1.removeMovieClip(); } static function getLastFPS() { return(Math.round(lastFPS)); } }Symbol 112 MovieClip [__Packages.Xor] Frame 0class Xor { function Xor () { } static function endecodeNumber(num, k) { return(num ^ k); } }Symbol 46 Buttonon (release) { _root.czyszczenie(); _root.pik.start(0, 1); _root.wyniki.removeMovieClip(); _root.wyniki.visible = 0; _root.gotoAndPlay("poczatek"); }Symbol 52 MovieClip Frame 1stop();Symbol 52 MovieClip Frame 2stop();Symbol 54 Buttonon (release) { if (_root.muzOK) { _root.muzOK = false; _root.rechot.setVolume(0); _root.pik.setVolume(0); _root.wazkaa.setVolume(0); } else { _root.muzOK = true; _root.pik.setVolume(35); _root.rechot.setVolume(25); _root.wazkaa.setVolume(45); } _root.pik.start(0, 1); }Symbol 57 MovieClip Frame 1stop(); this.onRelease = function () { getURL (GameOnAde.SITE_URL, "_blank"); };Symbol 57 MovieClip Frame 2stop(); this.onRelease = function () { getURL (GameOnAde.SITE_URL, "_blank"); };Symbol 58 MovieClip [trawa] Frame 1punkty.text = 0; zycia.text = 3; stop();Instance of Symbol 52 MovieClip "muz" in Symbol 58 MovieClip [trawa] Frame 1onClipEvent (enterFrame) { if (_root.muzOK) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } }Symbol 69 Buttonon (release) { _root.stanGry = "juzGra"; this._visible = 0; _root.pik.start(0, 1); }Symbol 70 MovieClip [cwiczenie] Frame 1var reszta = new TextFormat(); reszta.size = 22; reszta.font = "czc"; nPunkty.setNewTextFormat(reszta); nPunkty.wordWrap = true; nPunkty.autoSize = "right"; nPunkty.embedFonts = true; nPunkty.antiAliasType = "advanced"; nPunkty.text = "Jestem Gotowy!"; stop();Symbol 75 MovieClip [literki] Frame 1literka.text = this._name; literka2.text = this._name; stop();Symbol 83 MovieClip Frame 1stop(); this.onRelease = function () { getURL (_root.myGameClass.getGameUrl(), "_blank"); };Symbol 85 MovieClip [koniec] Frame 1stop();Symbol 88 Buttonon (release) { _root.play(); _root.pik.start(0, 1); }Symbol 89 MovieClip [opis] Frame 1stop();Symbol 91 MovieClip Frame 4if (_root.stanGry == "pauza") { this.gotoAndPlay(1); }Symbol 91 MovieClip Frame 8if (_root.stanGry == "pauza") { this.gotoAndPlay(5); }Symbol 95 MovieClip [robak] Frame 1stop();Symbol 97 MovieClip [pauza] Frame 1stop();Symbol 98 MovieClip Frame 1stop();
Library Items
Symbol 1 Sound [pik] | Used by:98 | |
Symbol 2 Sound [rechot] | Used by:98 | |
Symbol 3 Sound [wazka] | Used by:98 | |
Symbol 4 Graphic | Used by:5 | |
Symbol 5 MovieClip | Uses:4 | Used by:14 |
Symbol 6 Graphic | Used by:9 | |
Symbol 7 Bitmap | Used by:8 | |
Symbol 8 Graphic | Uses:7 | Used by:9 57 |
Symbol 9 MovieClip | Uses:6 8 | Used by:10 |
Symbol 10 MovieClip | Uses:9 | Used by:14 Timeline |
Symbol 11 Font | Used by:12 | |
Symbol 12 EditableText | Uses:11 | Used by:13 |
Symbol 13 MovieClip | Uses:12 | Used by:14 |
Symbol 14 MovieClip [gameonade_preloader] | Uses:5 10 13 | |
Symbol 15 Graphic | Used by:16 | |
Symbol 16 MovieClip | Uses:15 | Used by:30 |
Symbol 17 Graphic | Used by:18 | |
Symbol 18 MovieClip | Uses:17 | Used by:30 |
Symbol 19 Graphic | Used by:20 | |
Symbol 20 MovieClip | Uses:19 | Used by:30 |
Symbol 21 Graphic | Used by:22 | |
Symbol 22 MovieClip | Uses:21 | Used by:30 |
Symbol 23 Graphic | Used by:24 | |
Symbol 24 MovieClip | Uses:23 | Used by:30 |
Symbol 25 Graphic | Used by:30 | |
Symbol 26 Graphic | Used by:30 | |
Symbol 27 Graphic | Used by:28 | |
Symbol 28 MovieClip | Uses:27 | Used by:29 |
Symbol 29 MovieClip | Uses:28 | Used by:30 |
Symbol 30 MovieClip | Uses:16 18 20 22 24 25 26 29 | Used by:31 |
Symbol 31 MovieClip [zaba] | Uses:30 | Used by:Timeline |
Symbol 32 Graphic | Used by:Timeline | |
Symbol 33 Graphic | Used by:Timeline | |
Symbol 34 Graphic | Used by:58 Timeline | |
Symbol 35 Graphic | Used by:Timeline | |
Symbol 99 MovieClip [__Packages.mochi.as2.MochiAd] | ||
Symbol 100 MovieClip [__Packages.mochi.as2.MochiSync] | ||
Symbol 101 MovieClip [__Packages.mochi.as2.MochiServices] | ||
Symbol 102 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] | ||
Symbol 103 MovieClip [__Packages.mochi.as2.MochiEvents] | ||
Symbol 104 MovieClip [__Packages.mochi.as2.MochiSocial] | ||
Symbol 105 MovieClip [__Packages.GameOnAde] | ||
Symbol 106 MovieClip [__Packages.GameLoader] | ||
Symbol 107 MovieClip [__Packages.User] | ||
Symbol 108 MovieClip [__Packages.MD5] | ||
Symbol 109 MovieClip [__Packages.CheckUrl] | ||
Symbol 110 MovieClip [__Packages.GameTimer] | ||
Symbol 111 MovieClip [__Packages.FPSCounter] | ||
Symbol 112 MovieClip [__Packages.Xor] | ||
Symbol 36 Graphic | Used by:37 | |
Symbol 37 MovieClip | Uses:36 | Used by:Timeline |
Symbol 38 Graphic | Used by:58 70 85 89 97 | |
Symbol 39 Font | Used by:40 41 42 43 44 68 73 74 87 | |
Symbol 40 EditableText | Uses:39 | Used by:58 |
Symbol 41 Text | Uses:39 | Used by:58 |
Symbol 42 EditableText | Uses:39 | Used by:58 |
Symbol 43 Text | Uses:39 | Used by:58 |
Symbol 44 Text | Uses:39 | Used by:58 |
Symbol 45 Graphic | Used by:46 69 88 | |
Symbol 46 Button | Uses:45 | Used by:58 |
Symbol 47 Font | Used by:48 | |
Symbol 48 Text | Uses:47 | Used by:58 |
Symbol 49 Graphic | Used by:52 | |
Symbol 50 Graphic | Used by:52 | |
Symbol 51 Graphic | Used by:52 | |
Symbol 52 MovieClip | Uses:49 50 51 | Used by:58 |
Symbol 53 Graphic | Used by:54 | |
Symbol 54 Button | Uses:53 | Used by:58 |
Symbol 55 Graphic | Used by:57 | |
Symbol 56 Graphic | Used by:57 | |
Symbol 57 MovieClip | Uses:55 8 56 | Used by:58 |
Symbol 58 MovieClip [trawa] | Uses:34 38 40 41 42 43 44 46 48 52 54 57 | Used by:98 |
Symbol 59 Graphic | Used by:94 98 | |
Symbol 60 Graphic | Used by:98 | |
Symbol 61 Graphic | Used by:98 | |
Symbol 62 Graphic | Used by:94 98 | |
Symbol 63 Graphic | Used by:98 | |
Symbol 64 Graphic | Used by:98 | |
Symbol 65 Graphic | Used by:98 | |
Symbol 66 Font | Used by:67 76 86 96 | |
Symbol 67 EditableText | Uses:66 | Used by:70 |
Symbol 68 Text | Uses:39 | Used by:70 |
Symbol 69 Button | Uses:45 | Used by:70 |
Symbol 70 MovieClip [cwiczenie] | Uses:38 67 68 69 | Used by:98 |
Symbol 71 Graphic | Used by:72 | |
Symbol 72 MovieClip [droga] | Uses:71 | Used by:98 |
Symbol 73 EditableText | Uses:39 | Used by:75 |
Symbol 74 EditableText | Uses:39 | Used by:75 |
Symbol 75 MovieClip [literki] | Uses:73 74 | Used by:98 |
Symbol 76 EditableText | Uses:66 | Used by:85 |
Symbol 77 Graphic | Used by:83 | |
Symbol 78 Font | Used by:79 80 | |
Symbol 79 Text | Uses:78 | Used by:83 |
Symbol 80 Text | Uses:78 | Used by:83 |
Symbol 81 Graphic | Used by:82 | |
Symbol 82 MovieClip | Uses:81 | Used by:83 |
Symbol 83 MovieClip | Uses:77 79 80 82 | Used by:84 |
Symbol 84 MovieClip | Uses:83 | Used by:85 |
Symbol 85 MovieClip [koniec] | Uses:38 76 84 | Used by:98 |
Symbol 86 EditableText | Uses:66 | Used by:89 |
Symbol 87 Text | Uses:39 | Used by:89 |
Symbol 88 Button | Uses:45 | Used by:89 |
Symbol 89 MovieClip [opis] | Uses:38 86 87 88 | Used by:98 |
Symbol 90 Graphic | Used by:91 | |
Symbol 91 MovieClip | Uses:90 | Used by:95 |
Symbol 92 Graphic | Used by:94 | |
Symbol 93 Graphic | Used by:94 | |
Symbol 94 MovieClip | Uses:59 92 62 93 | Used by:95 |
Symbol 95 MovieClip [robak] | Uses:91 94 | Used by:98 |
Symbol 96 EditableText | Uses:66 | Used by:97 |
Symbol 97 MovieClip [pauza] | Uses:38 96 | Used by:98 |
Symbol 98 MovieClip | Uses:58 59 60 61 62 63 64 65 70 72 75 85 89 95 97 3 2 1 | Used by:Timeline |
Instance Names
"gamemask_mc" | Frame 2 | Symbol 37 MovieClip |
"kolkoB" | Frame 5 | Symbol 31 MovieClip [zaba] |
"percentage_txt" | Symbol 13 MovieClip Frame 1 | Symbol 12 EditableText |
"loading_mc" | Symbol 14 MovieClip [gameonade_preloader] Frame 13 | Symbol 13 MovieClip |
"l" | Symbol 30 MovieClip Frame 13 | Symbol 29 MovieClip |
"p" | Symbol 30 MovieClip Frame 13 | Symbol 29 MovieClip |
"zaba" | Symbol 31 MovieClip [zaba] Frame 1 | Symbol 30 MovieClip |
"punkty" | Symbol 58 MovieClip [trawa] Frame 1 | Symbol 40 EditableText |
"zycia" | Symbol 58 MovieClip [trawa] Frame 1 | Symbol 42 EditableText |
"muz" | Symbol 58 MovieClip [trawa] Frame 1 | Symbol 52 MovieClip |
"literka" | Symbol 75 MovieClip [literki] Frame 1 | Symbol 73 EditableText |
"literka2" | Symbol 75 MovieClip [literki] Frame 1 | Symbol 74 EditableText |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS1/AS2. |
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "pik" |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "rechot" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "wazka" |
ExportAssets (56) | Timeline Frame 1 | Symbol 14 as "gameonade_preloader" |
ExportAssets (56) | Timeline Frame 1 | Symbol 31 as "zaba" |
ExportAssets (56) | Timeline Frame 1 | Symbol 99 as "__Packages.mochi.as2.MochiAd" |
ExportAssets (56) | Timeline Frame 1 | Symbol 100 as "__Packages.mochi.as2.MochiSync" |
ExportAssets (56) | Timeline Frame 1 | Symbol 101 as "__Packages.mochi.as2.MochiServices" |
ExportAssets (56) | Timeline Frame 1 | Symbol 102 as "__Packages.mochi.as2.MochiEventDispatcher" |
ExportAssets (56) | Timeline Frame 1 | Symbol 103 as "__Packages.mochi.as2.MochiEvents" |
ExportAssets (56) | Timeline Frame 1 | Symbol 104 as "__Packages.mochi.as2.MochiSocial" |
ExportAssets (56) | Timeline Frame 1 | Symbol 105 as "__Packages.GameOnAde" |
ExportAssets (56) | Timeline Frame 1 | Symbol 106 as "__Packages.GameLoader" |
ExportAssets (56) | Timeline Frame 1 | Symbol 107 as "__Packages.User" |
ExportAssets (56) | Timeline Frame 1 | Symbol 108 as "__Packages.MD5" |
ExportAssets (56) | Timeline Frame 1 | Symbol 109 as "__Packages.CheckUrl" |
ExportAssets (56) | Timeline Frame 1 | Symbol 110 as "__Packages.GameTimer" |
ExportAssets (56) | Timeline Frame 1 | Symbol 111 as "__Packages.FPSCounter" |
ExportAssets (56) | Timeline Frame 1 | Symbol 112 as "__Packages.Xor" |
ExportAssets (56) | Timeline Frame 3 | Symbol 58 as "trawa" |
ExportAssets (56) | Timeline Frame 3 | Symbol 70 as "cwiczenie" |
ExportAssets (56) | Timeline Frame 3 | Symbol 72 as "droga" |
ExportAssets (56) | Timeline Frame 3 | Symbol 75 as "literki" |
ExportAssets (56) | Timeline Frame 3 | Symbol 85 as "koniec" |
ExportAssets (56) | Timeline Frame 3 | Symbol 89 as "opis" |
ExportAssets (56) | Timeline Frame 3 | Symbol 95 as "robak" |
ExportAssets (56) | Timeline Frame 3 | Symbol 97 as "pauza" |
Labels
"poczatek" | Frame 3 |
"plyn" | Symbol 30 MovieClip Frame 2 |
"koniec" | Symbol 30 MovieClip Frame 22 |
|