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

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

loops_of_zen.swf

This is the info page for
Flash #43018

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


Text
Restore harmony by clicking the tiles until
no open end is left over. m = mute
<- -> cursors to navigate between already
solved levels

program and design by Dr. Arend Hintze
music "Surrealism" by XGamer
produced by ALproductions.us

best
level
ever:

ActionScript [AS1/AS2]

Frame 1
MochiAd.showPreGameAd({id:"114d23bd920bb86f", res:"500x500"});
Frame 2
function getSourceURL() { var _local2 = _root._url; return(_local2.substring(0, _local2.lastIndexOf("/") + 1)); } _root.Music_sound = new Sound(); _root.Music_sound.loadSound(getSourceURL() + "Surrealism.mp3"); _root.ploaded = 0; once = true; _root.kongregateServices.connect(); user = SharedObject.getLocal("user_profile"); if (user.data.level == undefined) { _root.level = 0; user.data.level = _root.level; user.flush(); } else { _root.level = user.data.level; } stop(); this.onEnterFrame = function () { _root.ploaded = (100 * _root.Music_sound.getBytesLoaded()) / _root.Music_sound.getBytesTotal(); if (_root.Music_sound.getBytesLoaded() < _root.Music_sound.getBytesTotal()) { circler._rotation = circler._rotation + 16; } if (_root.Music_sound.getBytesLoaded() == _root.Music_sound.getBytesTotal()) { if (once) { _root.Music_sound.start(0, 1); once = false; } gotoAndStop (3); } };
Frame 3
function bitsum(a) { k = 0; dz = 0; while (dz < 5) { k = k + ((a >> dz) & 1); dz++; } return(k); } function fill_tile(tx, ty) { feld[tx][ty] = 0; if ((feld[tx + 1][ty] & 4) == 4) { feld[dx][dy] = feld[dx][dy] + 1; } if ((feld[tx][ty + 1] & 8) == 8) { feld[dx][dy] = feld[dx][dy] + 2; } if ((feld[tx - 1][ty] & 1) == 1) { feld[dx][dy] = feld[dx][dy] + 4; } if ((feld[tx][ty - 1] & 2) == 2) { feld[dx][dy] = feld[dx][dy] + 8; } } function tilt_tile(tx, ty) { f = feld[tx][ty]; feld[tx][ty] = ((f << 1) & 15) + ((f >> 3) & 1); draw_tile(tx, ty, 32, 17); } function all_solved() { ret_val = true; dx = 1; while (dx < (level_size[actual_level] - 1)) { dy = 1; while (dy < (level_size[actual_level] - 1)) { if (((feld[dx + 1][dy] & 4) == 0) && ((feld[dx][dy] & 1) == 1)) { ret_val = false; } if (((feld[dx][dy + 1] & 8) == 0) && ((feld[dx][dy] & 2) == 2)) { ret_val = false; } if (((feld[dx - 1][dy] & 1) == 0) && ((feld[dx][dy] & 4) == 4)) { ret_val = false; } if (((feld[dx][dy - 1] & 2) == 0) && ((feld[dx][dy] & 8) == 8)) { ret_val = false; } dy++; } dx++; } return(ret_val); } function setup_feld() { dx = 0; while (dx < xsize) { dy = 0; while (dy < ysize) { _root.canvas[dx + (dy * ysize)].removeMovieClip(); feld[dx][dy] = 0; dy++; } dx++; } dx = 1; while (dx < (level_size[actual_level] - 1)) { dy = 1; while (dy < (level_size[actual_level] - 1)) { if ((dx & 1) == (dy & 1)) { feld[dx][dy] = 0; } else { feld[dx][dy] == (random(15) + 1); while (bitsum(feld[dx][dy]) < 2) { feld[dx][dy] = random(15) + 1; } } dy++; } dx++; } dx = 1; while (dx < (level_size[actual_level] - 1)) { dy = 1; while (dy < (level_size[actual_level] - 1)) { if (feld[dx][dy] == 0) { fill_tile(dx, dy); } dy++; } dx++; } dx = 1; while (dx < (level_size[actual_level] - 1)) { if ((feld[dx][1] & 8) == 8) { feld[dx][1] = feld[dx][1] - 8; } if ((feld[dx][level_size[actual_level] - 2] & 2) == 2) { feld[dx][level_size[actual_level] - 2] = feld[dx][level_size[actual_level] - 2] - 2; } if ((feld[1][dx] & 4) == 4) { feld[1][dx] = feld[1][dx] - 4; } if ((feld[level_size[actual_level] - 2][dx] & 1) == 1) { feld[level_size[actual_level] - 2][dx] = feld[level_size[actual_level] - 2][dx] - 1; } dx++; } dx = 0; while (dx < level_size[actual_level]) { dy = 0; while (dy < level_size[actual_level]) { while (random(5) != 0) { tilt_tile(dx, dy); } dy++; } dx++; } dx = 1; while (dx < (level_size[actual_level] - 1)) { dy = 1; while (dy < (level_size[actual_level] - 1)) { draw_tile(dx, dy, 32, 17); dy++; } dx++; } _root.canvas._width = x_res; _root.canvas._height = y_res; } function draw_tile(dx, dy, tile_size, tile_shift) { _root.canvas[dx + (dy * ysize)].removeMovieClip(); switch (feld[dx][dy]) { case 0 : _root.canvas.attachMovie("tile_empty", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:0}); break; case 1 : _root.canvas.attachMovie("tile_end", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:0}); break; case 2 : _root.canvas.attachMovie("tile_end", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:90}); break; case 3 : _root.canvas.attachMovie("tile_curve", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:0}); break; case 4 : _root.canvas.attachMovie("tile_end", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:180}); break; case 5 : _root.canvas.attachMovie("tile_line", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:0}); break; case 6 : _root.canvas.attachMovie("tile_curve", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:90}); break; case 7 : _root.canvas.attachMovie("tile_tcross", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:0}); break; case 8 : _root.canvas.attachMovie("tile_end", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:270}); break; case 9 : _root.canvas.attachMovie("tile_curve", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:270}); break; case 10 : _root.canvas.attachMovie("tile_line", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:90}); break; case 11 : _root.canvas.attachMovie("tile_tcross", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:270}); break; case 12 : _root.canvas.attachMovie("tile_curve", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:180}); break; case 13 : _root.canvas.attachMovie("tile_tcross", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:180}); break; case 14 : _root.canvas.attachMovie("tile_tcross", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size), _rotation:90}); break; case 15 : _root.canvas.attachMovie("tile_cross", dx + (dy * ysize), _root.canvas.getNextHighestDepth(), {_x:tile_shift + (dx * tile_size), _y:tile_shift + (dy * tile_size)}); } } var feld = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]; xsize = 20; ysize = 20; x_res = 500; y_res = 500; start_level = 0; actual_level = start_level; level_size = [4, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]; game_running = 1; game_not_running = 0; game_fade_out = 2; game_fade_in = 3; game_status = game_not_running; var canvas = _root.createEmptyMovieClip("canvas", 1); var muted = false; loadVariables ("userfile.txt", "_root.start_level"); mouseListener = new Object(); mouseListener.onMouseDown = function () { if (game_status == game_running) { dx = Math.floor(_xmouse / (x_res / level_size[actual_level])); dy = Math.floor(_ymouse / (y_res / level_size[actual_level])); if ((((dx != 0) && (dy != 0)) && (dx != (level_size[actual_level] - 1))) && (dy != (level_size[actual_level] - 1))) { f = feld[dx][dy]; feld[dx][dy] = ((f << 1) & 15) + ((f >> 3) & 1); draw_tile(dx, dy, 32, 17); } if (all_solved()) { _root.kongregateScores.submit(actual_level); game_status = game_fade_out; } } }; Mouse.addListener(mouseListener); keyListener = new Object(); keyListener.onKeyDown = function () { var _local2 = Key.getCode(); switch (_local2) { case 77 : case 109 : if (muted) { muted = false; _root.Music_sound.setVolume(100); } else { muted = true; _root.Music_sound.setVolume(0); } break; case 37 : if (actual_level > 1) { actual_level--; setup_feld(); } break; case 39 : if (actual_level >= level) { break; } actual_level++; setup_feld(); } }; Key.addListener(keyListener); Music_sound.onSoundComplete = function () { Music_sound.start(0, 1); }; this.onEnterFrame = function () { switch (game_status) { case game_fade_out : canvas._alpha = canvas._alpha - 5; if (canvas._alpha <= 0) { game_status = game_fade_in; actual_level++; if (actual_level > level) { level = actual_level; user.data.level = level; user.flush(); } setup_feld(); } return; case game_fade_in : canvas._alpha = canvas._alpha + 5; if (canvas._alpha < 100) { break; } game_status = game_running; } };
Symbol 19 MovieClip [title_screen] Frame 1
this.onPress = function () { _root.game_status = _root.game_running; _root.setup_feld(); _x = 800; };
Symbol 23 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd { function MochiAd () { } static function getVersion() { return("2.6"); } 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 _local22 = 11000; var _local25 = 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 _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 _local21 = options.color; delete options.color; var _local19 = options.background; delete options.background; var _local23 = options.outline; delete options.outline; var _local5 = _local6.createEmptyMovieClip("_outline", 1); _local5.beginFill(_local19); _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(_local21); _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, _local23, 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 = _local22; chk.ad_timeout = _local25; 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; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace("[MOCHIAD rpcTestFn] " + s); return(s); }; chk.onEnterFrame = function () { var _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) { clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2}); 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 _local9 = {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, _local9); var clip = options.clip; var _local8 = options.ad_timeout; delete options.ad_timeout; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local4 = _getRes(options); var _local10 = _local4[0]; var _local7 = _local4[1]; mc._x = _local10 * 0.5; mc._y = _local7 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_timeout = _local8; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace("[MOCHIAD rpcTestFn] " + s); return(s); }; var _local20 = false; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; 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; 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) { 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 _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = _parseOptions(options, _local13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var _local9 = options.clip; if (!_isNetworkAvailable()) { return(null); } if (_local9._mochiad_loaded) { return(null); } var _local12 = options.depth; delete options.depth; var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12); var _local11 = _getRes(options); options.res = (_local11[0] + "x") + _local11[1]; options.server = options.server + options.id; delete options.id; _local9._mochiad_loaded = true; var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1); for (var _local7 in options) { _local4[_local7] = options[_local7]; } var _local10 = _local4.server; delete _local4.server; var _local14 = _allowDomains(_local10); _local6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var _local5 = new LocalConnection(); var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local5.mc = _local6; _local5.name = _local8; _local5.hostname = _local14; _local5.allowDomain = function (d) { return(true); }; _local5.allowInsecureDomain = _local5.allowDomain; _local5.connect(_local8); _local6.lc = _local5; _local4.lc = _local8; _local4.st = getTimer(); _local4.loadMovie(_local10 + ".swf", "POST"); return(_local6); } static function unload(clip) { if (typeof(clip) == "undefined") { clip = _root; } if (clip.clip && (clip.clip._mochiad)) { clip = clip.clip; } if (!clip._mochiad) { return(false); } if (clip._mochiad._containerLCName != undefined) { clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"}); } clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return(true); } static function _isNetworkAvailable() { if (System.security) { var _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); clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4); break; case "runMethod" : var _local3 = runMethod(clip, arg.method, arg.args); clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3); 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); } }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip [tile_end]Uses:1
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClip [tile_cross]Uses:3
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClip [tile_empty]Uses:5
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClip [tile_tcross]Uses:7Used by:19
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClip [tile_curve]Uses:9Used by:19
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClip [tile_line]Uses:11Used by:19
Symbol 13 GraphicUsed by:19
Symbol 14 FontUsed by:15 18
Symbol 15 EditableTextUses:14Used by:19
Symbol 16 FontUsed by:17 22
Symbol 17 EditableTextUses:16Used by:19
Symbol 18 TextUses:14Used by:19
Symbol 19 MovieClip [title_screen]Uses:13 12 10 8 15 17 18Used by:Timeline
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClip [circler]Uses:20Used by:Timeline
Symbol 23 MovieClip [__Packages.MochiAd]
Symbol 22 EditableTextUses:16Used by:Timeline

Instance Names

"circler"Frame 2Symbol 21 MovieClip [circler]
"title_screen"Frame 3Symbol 19 MovieClip [title_screen]

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 2 as "tile_end"
ExportAssets (56)Timeline Frame 1Symbol 4 as "tile_cross"
ExportAssets (56)Timeline Frame 1Symbol 6 as "tile_empty"
ExportAssets (56)Timeline Frame 1Symbol 8 as "tile_tcross"
ExportAssets (56)Timeline Frame 1Symbol 10 as "tile_curve"
ExportAssets (56)Timeline Frame 1Symbol 12 as "tile_line"
ExportAssets (56)Timeline Frame 1Symbol 19 as "title_screen"
ExportAssets (56)Timeline Frame 1Symbol 21 as "circler"
ExportAssets (56)Timeline Frame 1Symbol 23 as "__Packages.MochiAd"

Dynamic Text Variables

_root.levelSymbol 17 EditableText""
_root.ploadedSymbol 22 EditableText""




http://swfchan.com/9/43018/info.shtml
Created: 9/5 -2019 16:25:00 Last modified: 9/5 -2019 16:25:00 Server time: 22/12 -2024 20:44:14