STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229494 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2575 · P5149 |
This is the info page for Flash #25876 |
presents... |
ROWS LEFT |
ROWS LEFT |
LEVEL |
LEVEL |
YOUR SCORE |
YOUR SCORE |
000000 |
welcome to |
PRESS START TO BEGIN |
PRESS START TO BEGIN |
Click on groups of 3 or more to eliminate blocks! |
Click on groups of 3 or more to eliminate blocks! |
Click on groups of 3 or more blocks to eliminate them You get 50 points plus the number of blocks you destroyed times 20, so go for big combos! Clicking on a block that doesn't have at least two like-colored neighbors makes a skeleton Clicking on a skeleton will add a new row Bombs destroy blocks of their color Don't let the blocks make it to the top! |
Click on groups of 3 or more blocks to eliminate them You get 50 points plus the number of blocks you destroyed times 20, so go for big combos! Clicking on a block that doesn't have at least two like-colored neighbors makes a skeleton Clicking on a skeleton will add a new row Bombs destroy blocks of their color Don't let the blocks make it to the top! |
ActionScript [AS1/AS2]
Frame 1MochiAd.showPreloaderAd({id:"e1e6ccf218e114e0", res:"488x500"});Frame 2stop(); btn_logo.onRelease = function () { getURL ("http://www.gamegecko.com", "_blank"); }; _quality = "HIGH"; _global.core = this; feedback.swapDepths(100); prompter.swapDepths(101); instructions.swapDepths(102); xStart = 175; yStart = 10; this.createEmptyMovieClip("so_newline", 200); this.createEmptyMovieClip("so_skull", 201); this.createEmptyMovieClip("so_doubleskull", 202); this.createEmptyMovieClip("so_success", 203); this.createEmptyMovieClip("so_timer", 204); s_newline = new Sound(so_newline); s_newline.setVolume(30); s_newline.attachSound("newlineMP3"); s_skull = new Sound(so_skull); s_skull.attachSound("skullMP3"); s_doubleskull = new Sound(so_doubleskull); s_doubleskull.attachSound("doubleskullMP3"); s_success = new Sound(so_success); s_success.setVolume(30); s_success.attachSound("successMP3"); s_timer = new Sound(so_timer); s_timer.attachSound("timerMP3"); _global.EventBroadcaster = new Object(); EventBroadcaster.initialize = function (obj) { var _local1 = obj; var _local2 = this; _local1._listeners = new Array(); _local1.broadcastMessage = _local2._broadcastMessage; _local1.addListener = _local2._addListener; _local1.removeListener = _local2._removeListener; }; EventBroadcaster._broadcastMessage = function () { var eventName = arguments.shift(); var _local2 = this._listeners; var _local3 = _local2.length; var _local1 = 0; while (_local1 < _local3) { _local2[_local1][eventName].apply(_local2[_local1], arguments); _local1++; } }; EventBroadcaster._addListener = function (obj) { this.removeListener(obj); this._listeners.push(obj); return(true); }; EventBroadcaster._removeListener = function (obj) { var _local3 = obj; var _local2 = this._listeners; var _local1 = _local2.length; while (_local1--) { if (_local2[_local1] == _local3) { _local2.splice(_local1, 1); return(true); } } return(false); }; _global.Model = function (width, height, numOptions) { var _local2 = this; var _local3 = width; _local2.width = _local3; _local2.height = height; _local2.numOptions = numOptions; _local2.board = new Array(); var _local1 = 0; while (_local1 < height) { _local2.board[_local1] = new Array(); j = 0; while (j < _local3) { _local2.board[_local1][j] = new Object(); _local2.board[_local1][j].id = (_local1 * _local2.height) + j; _local2.board[_local1][j].x = j; _local2.board[_local1][j].y = _local1; j++; } _local1++; } EventBroadcaster.initialize(_local2); }; Model.prototype.reset = function (level) { var _local1 = this; var i; var _local2; var type; var _local3 = new Object(); var initHeight = ((level < 5) ? (3 + level) : 8); var i = 0; while (i < (_local1.height - initHeight)) { _local2 = 0; while (_local2 < _local1.width) { type = null; _local3[_local1.board[i][_local2].id] = {x:_local2, y:i, type:type}; _local1.board[i][_local2].type = type; _local2++; } i++; } var i = (_local1.height - initHeight); while (i < _local1.height) { _local2 = 0; while (_local2 < _local1.width) { type = Math.floor(Math.random() * _local1.numOptions); _local3[_local1.board[i][_local2].id] = {x:_local2, y:i, type:type}; _local1.board[i][_local2].type = type; _local2++; } i++; } _local1.nextRow = []; var i = 0; while (i < _local1.width) { var bombrnd = ((!random(100)) ? (_local1.numOptions) : 0); var type = (random(_local1.numOptions) + bombrnd); _local1.nextRow.push(type); i++; } _local1.broadcastMessage("showNext", _local1.nextRow); _local1.broadcastMessage("onUpdate", _local3); }; Model.prototype.remove = function (x, y) { removeHelper = function (x, y, type) { var _local2 = x; var _local3 = y; var _local1 = 0; if (board[_local3 + 1][_local2].type == type) { board[_local3 + 1][_local2].type = null; updates[board[_local3 + 1][_local2].id] = {x:_local2, y:_local3 + 1, type:null}; _local1++; if ((cols[_local2] == null) || ((_local3 + 1) > cols[_local2])) { cols[_local2] = _local3 + 1; } _local1 = _local1 + removeHelper(_local2, _local3 + 1, type); } if (board[_local3 - 1][_local2].type == type) { board[_local3 - 1][_local2].type = null; updates[board[_local3 - 1][_local2].id] = {x:_local2, y:_local3 - 1, type:null}; _local1++; if ((cols[_local2] == null) || ((_local3 - 1) > cols[_local2])) { cols[_local2] = _local3 - 1; } _local1 = _local1 + removeHelper(_local2, _local3 - 1, type); } if (board[_local3][_local2 + 1].type == type) { board[_local3][_local2 + 1].type = null; updates[board[_local3][_local2 + 1].id] = {x:_local2 + 1, y:_local3, type:null}; _local1++; if ((cols[_local2 + 1] == null) || (_local3 > cols[_local2 + 1])) { cols[_local2 + 1] = _local3; } _local1 = _local1 + removeHelper(_local2 + 1, _local3, type); } if (board[_local3][_local2 - 1].type == type) { board[_local3][_local2 - 1].type = null; updates[board[_local3][_local2 - 1].id] = {x:_local2 - 1, y:_local3, type:null}; _local1++; if ((cols[_local2 - 1] == null) || (_local3 > cols[_local2 - 1])) { cols[_local2 - 1] = _local3; } _local1 = _local1 + removeHelper(_local2 - 1, _local3, type); } return(_local1); }; var _local1; var _local2; var _local3; var total = 0; var board = this.board; var cols = new Object(); var updates = new Object(); var skipper; var type = board[y][x].type; board[y][x].type = null; cols[x] = y; total = removeHelper(x, y, type); if (total > 1) { core.s_success.start(0, 1); this.broadcastMessage("updateScore", total); updates[board[y][x].id] = {x:x, y:y, type:null}; for (_local2 in cols) { skipper = 1; _local1 = cols[_local2]; _local3 = _local1 - 1; while (_local3 > -1) { if (board[_local3][_local2].type == null) { skipper++; } else { updates[board[_local3 + skipper][_local2].id].type = board[_local3][_local2].type; board[_local3 + skipper][_local2].type = board[_local3][_local2].type; updates[board[_local3][_local2].id] = {x:_local2, y:_local3, type:null}; board[_local3][_local2].type = null; } _local3--; } } var emptyCols = []; _local2 = 0; while (_local2 < this.width) { var rem = 0; _local1 = 0; while (_local1 < this.height) { if ((board[_local1][_local2].type == null) || (board[_local1][_local2].type == undefined)) { rem++; } _local1++; } if (rem == this.height) { emptyCols.push(_local2); } _local2++; } var k = 0; while (k < emptyCols.length) { if (emptyCols[k] < (this.width / 2)) { _local2 = emptyCols[k]; while (_local2 >= 0) { _local1 = 0; while (_local1 < this.height) { updates[board[_local1][_local2].id] = {x:board[_local1][_local2].x, y:board[_local1][_local2].y, type:board[_local1][_local2 - 1].type}; board[_local1][_local2].type = board[_local1][_local2 - 1].type; _local1++; } _local2--; } } else { _local2 = emptyCols[k]; while (_local2 <= this.width) { _local1 = 0; while (_local1 < this.height) { updates[board[_local1][_local2].id] = {x:board[_local1][_local2].x, y:board[_local1][_local2].y, type:board[_local1][_local2 + 1].type}; board[_local1][_local2].type = board[_local1][_local2 + 1].type; _local1++; } _local2++; } } k++; } this.broadcastMessage("onUpdate", updates); } else { core.s_skull.start(0, 1); for (n in updates) { board[updates[n].y][updates[n].x].type = type; } updates = new Object(); board[y][x].type = this.numOptions * 2; updates[board[y][x].id] = {x:x, y:y, type:board[y][x].type}; this.broadcastMessage("onUpdate", updates); } }; Model.prototype.bomb = function (x, y) { core.s_success.start(0, 1); var _local1 = this.board; var _local2; var _local3; var z; var total = 0; var cols = new Object(); var updates = new Object(); var skipper; var type = _local1[y][x].type; cols[x] = y; var k = 0; while (k < this.height) { var l = 0; while (l < this.width) { if ((_local1[k][l].type == (type - this.numOptions)) || (_local1[k][l].type == type)) { _local1[k][l].type = null; updates[_local1[k][l].id] = {x:l, y:k, type:null}; if ((cols[l] == null) || (k > cols[l])) { cols[l] = k; } total++; } l++; } k++; } this.broadcastMessage("updateScore", total); updates[_local1[y][x].id] = {x:x, y:y, type:null}; for (_local3 in cols) { skipper = 1; _local2 = cols[_local3]; z = _local2 - 1; while (z > -1) { if (_local1[z][_local3].type == null) { skipper++; } else { updates[_local1[z + skipper][_local3].id].type = _local1[z][_local3].type; _local1[z + skipper][_local3].type = _local1[z][_local3].type; updates[_local1[z][_local3].id] = {x:_local3, y:z, type:null}; _local1[z][_local3].type = null; } z--; } } var emptyCols = []; _local3 = 0; while (_local3 < this.width) { var rem = 0; _local2 = 0; while (_local2 < this.height) { if ((_local1[_local2][_local3].type == null) || (_local1[_local2][_local3].type == undefined)) { rem++; } _local2++; } if (rem == this.height) { emptyCols.push(_local3); } _local3++; } var k = 0; while (k < emptyCols.length) { if (emptyCols[k] < (this.width / 2)) { _local3 = emptyCols[k]; while (_local3 >= 0) { _local2 = 0; while (_local2 < this.height) { updates[_local1[_local2][_local3].id] = {x:_local1[_local2][_local3].x, y:_local1[_local2][_local3].y, type:_local1[_local2][_local3 - 1].type}; _local1[_local2][_local3].type = _local1[_local2][_local3 - 1].type; _local2++; } _local3--; } } else { _local3 = emptyCols[k]; while (_local3 <= this.width) { _local2 = 0; while (_local2 < this.height) { updates[_local1[_local2][_local3].id] = {x:_local1[_local2][_local3].x, y:_local1[_local2][_local3].y, type:_local1[_local2][_local3 + 1].type}; _local1[_local2][_local3].type = _local1[_local2][_local3 + 1].type; _local2++; } _local3++; } } k++; } this.broadcastMessage("onUpdate", updates); }; Model.prototype.skull = function (x, y) { var _local3 = this; var _local2 = new Object(); var _local1 = _local3.board; _local1[y][x].type = (_local3.numOptions * 2) + 1; _local2[_local1[y][x].id] = {x:x, y:y, type:_local1[y][x].type}; core.s_doubleskull.start(0, 1); _local3.broadcastMessage("onUpdate", _local2); }; Model.prototype.getType = function (x, y) { var _local2 = this; var _local1 = _local2.board[y][x].type; if ((_local1 >= _local2.numOptions) && (_local1 < (_local2.numOptions * 2))) { return("bomb"); } if (_local1 < _local2.numOptions) { return("block"); } if (_local1 >= (_local2.numOptions * 2)) { return("skull"); } return(undefined); }; Model.prototype.addRow = function () { var _local1 = this; core.s_newline.start(0, 1); var upD = new Object(); var _local2 = _local1.board; var highRow = "begin"; var i = 0; while (i < (_local1.height - 1)) { var _local3 = 0; while (_local3 < _local1.width) { if ((_local2[i + 1][_local3].type != null) && (highRow == "begin")) { highRow = i; } upD[_local2[i][_local3].id] = {x:_local2[i][_local3].x, y:_local2[i][_local3].y, type:_local2[i + 1][_local3].type}; _local2[i][_local3].type = _local2[i + 1][_local3].type; _local3++; } i++; } if ((highRow == 0) && (!_local1.endGame)) { _local1.endGame = true; } else if ((highRow == 0) && (_local1.endGame)) { _local1.broadcastMessage("gameOver"); } var _local3 = 0; while (_local3 < _local1.width) { upD[_local1.board[_local1.height - 1][_local3].id] = {x:_local3, y:_local1.height - 1, type:_local1.nextRow[_local3]}; _local2[_local1.height - 1][_local3].type = _local1.nextRow[_local3]; _local3++; } _local1.nextRow = []; var i = 0; while (i < _local1.width) { var bombrnd = ((!random(100)) ? (_local1.numOptions) : 0); var type = (random(_local1.numOptions) + bombrnd); _local1.nextRow.push(type); i++; } _local1.broadcastMessage("showNext", _local1.nextRow); _local1.broadcastMessage("onUpdate", upD); }; NUM_X = 10; NUM_Y = 15; CELL_WIDTH = 26; CELL_HEIGHT = 26; enabled = true; level = 1; score = 0; linesleft = 8; onUpdate = function (updates) { var _local1 = this; _local1.updates = updates; _local1.countdown = FADE_NUM; _local1.enabled = false; for (var _local2 in _local1.updates) { cells[_local1.updates[_local2].y][_local1.updates[_local2].x]._alpha = 100; if (_local1.updates[_local2].type != null) { cells[_local1.updates[_local2].y][_local1.updates[_local2].x].gotoAndStop(_local1.updates[_local2].type + 2); } else { cells[_local1.updates[_local2].y][_local1.updates[_local2].x].gotoAndStop(1); } } _local1.enabled = true; updateText(); }; showNext = function (next) { var _local2 = next; var _local1 = 0; while (_local1 < _local2.length) { nextClips[_local1].gotoAndStop(_local2[_local1] + 2); nextClips[_local1]._alpha = 30; _local1++; } showCount = 0; }; cellPress = function () { var _local1 = this; var _local2 = _local1._parent._parent.model.getType(_local1.x, _local1.y); if ((!_local1._parent._parent.paused) && (!_local1._parent._parent.halt)) { if (_local2 == "block") { _local1._parent._parent.model.remove(_local1.x, _local1.y); } else if (_local2 == "bomb") { _local1._parent._parent.model.bomb(_local1.x, _local1.y); } else if (_local2 == "skull") { _local1._parent._parent.model.skull(_local1.x, _local1.y); _local1._parent._parent.skullAdvance = true; _local1._parent._parent.tick = _local1._parent._parent.tickDelay - 1; } } }; init = function () { var _local1; var num = 0; this.grid_mc = this.createEmptyMovieClip("grid_mc", 1); this.grid_mc._x = 25; this.grid_mc._y = 25; this.cells = new Array(); var _local3 = 0; while (_local3 < NUM_Y) { cells[_local3] = new Array(); var _local2 = 0; while (_local2 < NUM_X) { _local1 = grid_mc.attachMovie("cell", "cell" + num, num++); _local1._x = xStart + (_local2 * CELL_WIDTH); _local1._y = yStart + (_local3 * CELL_HEIGHT); _local1.x = _local2; _local1.y = _local3; _local1.onPress = this.cellPress; _local1.useHandCursor = false; this.cells[_local3][_local2] = _local1; _local2++; } _local3++; } nextClips = []; _local3 = 0; while (_local3 < NUM_Y) { nextClips[_local3] = grid_mc.attachMovie("cell", "nextClip" + _local3, num++); var nextMC = nextClips[_local3]; nextMC._x = xStart + (_local3 * CELL_WIDTH); nextMC._y = ((yStart + CELL_HEIGHT) + (NUM_Y * CELL_HEIGHT)) - 3; _local3++; } this.model = new Model(NUM_X, NUM_Y, 4); this.model.addListener(this); this.presenter = new Presenter(model, this); this.model.reset(level); updateText(); }; updateScore = function (scoreMult) { score = score + (50 + (scoreMult * 20)); updateText(); }; updateText = function () { scoreText.text = score; linesText.text = linesLeft; levelText.text = level + 1; }; updateTickDelay = function () { return(120 - ((((level / 2) > 10) ? 10 : (level / 2)) * 10)); }; var tick = 0; var tickDelay = updateTickDelay(); var skullAdvance = false; var btwLevelDelayCount = 0; var btwLevelDelay = 90; halt = true; showCount = 0; mainLoop = function () { var _local1 = this; if (tick > (showCount * (tickDelay / NUM_X))) { if (!_local1.halt) { core.s_timer.setVolume(Math.ceil(40 * ((showCount + 1) / nextClips.length))); core.s_timer.start(0, 1); } nextClips[showCount]._alpha = 100; showCount++; } if ((++tick) > tickDelay) { if (linesLeft > 1) { tick = 0; _local1.model.addRow(); if (!skullAdvance) { linesLeft--; updateText(); } skullAdvance = false; } else if ((++btwLevelDelayCount) < btwLevelDelay) { halt = true; feedBack._visible = true; feedBack.gotoAndStop("levelComplete"); } else { model.endGame = false; btwLevelDelayCount = 0; tick = 0; level++; tickDelay = updateTickDelay(); linesleft = 8 + level; updateText(); _local1.model.reset(level); feedBack._visible = false; _local1.prompter._visible = 1; _local1.prompter.gotoAndPlay(1); delete _local1.onEnterFrame; } } }; startGame = function () { var _local1 = this; _local1.pauseButton._visible = 1; _local1.infoButton._visible = 1; _local1.paused = false; _local1.halt = false; _local1.onEnterFrame = _local1.mainLoop; }; gameOver = function () { feedBack._visible = 1; feedBack.gotoAndStop("gameOver"); halt = true; tick = 0; tickDelay = updateTickDelay(); skullAdvance = false; btwLevelDelayCount = 0; btwLevelDelay = 90; showCount = 0; begun = false; startButton._visible = 1; pauseButton._visible = 0; delete this.onEnterFrame; }; instructions._visible = (prompter._visible = (pauseButton._visible = (resumeButton._visible = (highlight._visible = (feedback._visible = 0))))); startButton.onRollOver = (startScreen.onRollOver = function () { highLight._visible = 1; }); pauseButton.onRollOver = (resumeButton.onRollOver = function () { if (!this._parent.halt) { highLight._visible = 1; } }); startButton.onRollOut = (startButton.onReleaseOutside = (pauseButton.onRollOut = (pauseButton.onReleaseOutside = (resumeButton.onRollOut = (resumeButton.onReleaseOutside = (startScreen.onReleaseOutside = (startScreen.onRollOut = function () { highLight._visible = 0; }))))))); startButton.onRelease = (startScreen.onRelease = function () { var _local1 = this; _local1._parent.startscreen.visible = (_local1._parent.startButton._visible = 0); _local1._parent.startScreen._visible = 0; _local1._parent.feedBack._visible = 0; _local1._parent.prompter._visible = 1; _local1._parent.instructions._visible = 0; _local1._parent.level = 0; _local1._parent.score = 0; _local1._parent.linesleft = 8; _local1._parent.updateText(); _local1._parent.begun = true; if (!starter) { starter = true; _local1._parent.init(); } else { _local1._parent.model.reset(0); } _local1._parent.prompter.gotoAndPlay(1); }); pauseButton.onRelease = function () { var _local1 = this; if (!_local1._parent.halt) { _local1._parent.resumeButton._visible = 1; _local1._visible = 0; _local1._parent.feedback._visible = 1; _local1._parent.paused = true; _local1._parent.feedback.gotoAndStop("paused"); delete _local1._parent.onEnterFrame; } }; resumeButton.onRelease = function () { var _local1 = this; if (!_local1._parent.halt) { _local1._parent.pauseButton._visible = 1; _local1._parent.paused = false; _local1._visible = 0; _local1._parent.feedback._visible = (_local1._parent.instructions._visible = 0); _local1._parent.onEnterFrame = _local1._parent.mainLoop; } }; infoButton.onRelease = function () { var _local1 = this; if (!_local1._parent.halt) { _local1._parent.resumeButton._visible = 1; _local1._parent.paused = true; _local1._parent.instructions._visible = 1; delete _local1._parent.onEnterFrame; } else if (!_local1._parent.begun) { _local1._parent.instructions._visible = 1; } };Symbol 29 MovieClip [cell] Frame 1stop();Symbol 32 MovieClip [Mochibot] Frame 1#initclip 2 function Mochibot() { this.$init(); } System.security.allowDomain("mochibot.com"); Mochibot.prototype = new MovieClip(); Mochibot.prototype.$init = function () { this._visible = false; var _local1 = this.createEmptyMovieClip("mochibotHolder", 1); _local1.loadMovie("http://mochibot.com/my/core.swf"); }; Object.registerClass("Mochibot", Mochibot); #endinitclipSymbol 119 MovieClip [__Packages.MochiAd] Frame 0class MochiAd { function MochiAd () { } static function showPreloaderAd(options) { //var _local1 = this; var _local2 = options; var DEFAULTS = {clip:_root, ad_msec:11000, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812}; _local2 = _parseOptions(_local2, DEFAULTS); var clip = _local2.clip; var ad_msec = _local2.ad_msec; delete _local2.ad_msec; var ad_timeout = _local2.ad_timeout; delete _local2.ad_timeout; var fadeout_time = _local2.fadeout_time; delete _local2.fadeout_time; if (!load(_local2)) { return(null); } clip.stop(); var mc = clip._mochiad; mc.onUnload = function () { this._parent.play(); }; var wh = _getRes(_local2); var w = wh[0]; var h = wh[1]; mc._x = w * 0.5; mc._y = h * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk._x = w * -0.5; chk._y = h * -0.5; var bar = chk.createEmptyMovieClip("_mochiad_bar", 4); bar._x = 10; bar._y = h - 20; var bar_color = _local2.color; delete _local2.color; var bar_background = _local2.background; delete _local2.background; var bar_outline = _local2.outline; delete _local2.outline; var backing = bar.createEmptyMovieClip("_outline", 1); backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo(w - 20, 0); backing.lineTo(w - 20, 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); var _local3 = bar.createEmptyMovieClip("_inside", 2); _local3.beginFill(bar_color); _local3.moveTo(0, 0); _local3.lineTo(w - 20, 0); _local3.lineTo(w - 20, 10); _local3.lineTo(0, 10); _local3.lineTo(0, 0); _local3.endFill(); _local3._xscale = 0; var outline = bar.createEmptyMovieClip("_outline", 3); outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo(w - 20, 0); outline.lineTo(w - 20, 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local1 = this; var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time)); if (_local2 > 0) { _local1._parent._alpha = _local2; } else { var _local3 = _local1._parent._parent; MochiAd.unload(_local3); delete _local1.onEnterFrame; } }; mc.lc.adjustProgress = function (msec) { var _local1 = this.mc._mochiad_wait; _local1.server_control = true; _local1.started = getTimer(); _local1.ad_msec = msec; }; chk.onEnterFrame = function () { var _local1 = this; var _clip = _local1._parent._parent; var ad_clip = _local1._parent._mochiad_ctr; var elapsed = (getTimer() - _local1.started); var _local3 = false; var clip_total = _clip.getBytesTotal(); var clip_loaded = _clip.getBytesLoaded(); var clip_pcnt = ((100 * clip_loaded) / clip_total); var ad_pcnt = ((100 * elapsed) / chk.ad_msec); var _inside = _local1._mochiad_bar._inside; var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt)); _local2 = Math.max(_local1.last_pcnt, _local2); _local1.last_pcnt = _local2; _inside._xscale = _local2; if (!chk.showing) { var total = ad_clip.getBytesTotal(); if ((total > 0) || (typeof(total) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (elapsed > chk.ad_timeout) { _local3 = true; } } if (elapsed > chk.ad_msec) { _local3 = true; } if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) { if (_local1.server_control) { delete _local1.onEnterFrame; } else { _local1.fadeout_start = getTimer(); _local1.onEnterFrame = chk.fadeFunction; } } }; return(undefined); } static function showTimedAd(options) { //var _local1 = this; var _local2 = options; var DEFAULTS = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"}; _local2 = _parseOptions(_local2, DEFAULTS); var clip = _local2.clip; var ad_msec = _local2.ad_msec; delete _local2.ad_msec; var ad_timeout = _local2.ad_timeout; delete _local2.ad_timeout; var fadeout_time = _local2.fadeout_time; delete _local2.fadeout_time; if (!load(_local2)) { return(null); } clip.stop(); var mc = clip._mochiad; mc.onUnload = function () { this._parent.play(); }; var wh = _getRes(_local2); var w = wh[0]; var h = wh[1]; mc._x = w * 0.5; mc._y = h * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local1 = this; var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time)); if (_local2 > 0) { _local1._parent._alpha = _local2; } else { var _local3 = _local1._parent._parent; MochiAd.unload(_local3); delete _local1.onEnterFrame; } }; mc.lc.adjustProgress = function (msec) { var _local1 = this.mc._mochiad_wait; _local1.server_control = true; _local1.started = getTimer(); _local1.ad_msec = msec - 250; }; chk.onEnterFrame = function () { var _local1 = this; var ad_clip = _local1._parent._mochiad_ctr; var elapsed = (getTimer() - _local1.started); var _local2 = false; if (!chk.showing) { var _local3 = ad_clip.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (elapsed > chk.ad_timeout) { _local2 = true; } } if (elapsed > chk.ad_msec) { _local2 = true; } if (_local2) { if (_local1.server_control) { delete _local1.onEnterFrame; } else { _local1.fadeout_start = getTimer(); _local1.onEnterFrame = _local1.fadeFunction; } } }; return(undefined); } static function load(options) { var _local1 = options; var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; _local1 = _parseOptions(_local1, DEFAULTS); _local1.swfv = _local1.clip.getSWFVersion() || 6; _local1.mav = "1.3"; var clip = _local1.clip; if (!_isNetworkAvailable()) { return(false); } if (clip._mochiad_loaded) { return(false); } var depth = _local1.depth; delete _local1.depth; var mc = clip.createEmptyMovieClip("_mochiad", depth); var wh = _getRes(_local1); _local1.res = (wh[0] + "x") + wh[1]; _local1.server = _local1.server + _local1.id; delete _local1.id; clip._mochiad_loaded = true; var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1); for (var k in _local1) { _local2[k] = _local1[k]; } if (clip._url.indexOf("http") != 0) { _local1.no_page = true; } var server = _local2.server; delete _local2.server; var hostname = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(hostname); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(hostname); } } mc.onEnterFrame = function () { var _local1 = this; if (_local1._mochiad_ctr._url != _local1._url) { _local1.onEnterFrame = function () { var _local1 = this; if (!_local1._mochiad_ctr) { delete _local1.onEnterFrame; MochiAd.unload(_local1._parent); } }; } }; var _local3 = new LocalConnection(); var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local3.mc = mc; _local3.name = name; _local3.hostname = hostname; _local3.allowDomain = function (d) { return(true); }; _local3.allowInsecureDomain = _local3.allowDomain; _local3.connect(name); mc.lc = _local3; _local2.lc = name; _local2.st = getTimer(); _local2.loadMovie(server + ".swf", "POST"); return(mc); } static function unload(clip) { var _local1 = clip; if (typeof(_local1) == "undefined") { _local1 = _root; } if (_local1.clip && (_local1.clip._mochiad)) { _local1 = _local1.clip; } if (!_local1._mochiad) { return(false); } _local1._mochiad.removeMovieClip(); delete _local1._mochiad_loaded; delete _local1._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 xy = options.res.split("x"); _local2 = parseFloat(xy[0]); _local1 = parseFloat(xy[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 _local3 = {}; for (var k in defaults) { _local3[k] = defaults[k]; } if (options) { for (var k in options) { _local3[k] = options[k]; } } if (_root.mochiad_options) { var pairs = _root.mochiad_options.split("&"); var _local1 = 0; while (_local1 < pairs.length) { var _local2 = pairs[_local1].split("="); _local3[unescape(_local2[0])] = unescape(_local2[1]); _local1++; } } return(_local3); } }Symbol 89 MovieClip Frame 1stop();Symbol 113 MovieClip Frame 1stop();Symbol 113 MovieClip Frame 64this._visible = 0; this._parent.startGame();
Library Items
Symbol 1 Sound [timerMP3] | ||
Symbol 2 Sound [successMP3] | ||
Symbol 3 Sound [skullMP3] | ||
Symbol 4 Sound [newlineMP3] | ||
Symbol 5 Sound [doubleskullMP3] | ||
Symbol 6 Bitmap | Used by:7 | |
Symbol 7 Graphic | Uses:6 | Used by:29 |
Symbol 8 Bitmap | Used by:9 | |
Symbol 9 Graphic | Uses:8 | Used by:29 |
Symbol 10 Bitmap | Used by:11 | |
Symbol 11 Graphic | Uses:10 | Used by:29 |
Symbol 12 Bitmap | Used by:13 | |
Symbol 13 Graphic | Uses:12 | Used by:29 |
Symbol 14 Bitmap | Used by:15 | |
Symbol 15 Graphic | Uses:14 | Used by:29 |
Symbol 16 Bitmap | Used by:17 | |
Symbol 17 Graphic | Uses:16 | Used by:18 |
Symbol 18 MovieClip | Uses:17 | Used by:29 |
Symbol 19 Bitmap | Used by:20 | |
Symbol 20 Graphic | Uses:19 | Used by:29 |
Symbol 21 Bitmap | Used by:22 | |
Symbol 22 Graphic | Uses:21 | Used by:29 |
Symbol 23 Bitmap | Used by:24 | |
Symbol 24 Graphic | Uses:23 | Used by:29 |
Symbol 25 Bitmap | Used by:26 | |
Symbol 26 Graphic | Uses:25 | Used by:29 |
Symbol 27 Bitmap | Used by:28 | |
Symbol 28 Graphic | Uses:27 | Used by:29 |
Symbol 29 MovieClip [cell] | Uses:7 9 11 13 15 18 20 22 24 26 28 | |
Symbol 30 Graphic | Used by:31 | |
Symbol 31 MovieClip | Uses:30 | Used by:32 |
Symbol 32 MovieClip [Mochibot] | Uses:31 | |
Symbol 119 MovieClip [__Packages.MochiAd] | ||
Symbol 33 Graphic | Used by:Timeline | |
Symbol 34 Graphic | Used by:Timeline | |
Symbol 35 Graphic | Used by:Timeline | |
Symbol 36 Graphic | Used by:Timeline | |
Symbol 37 Font | Used by:38 42 43 47 48 53 54 91 98 99 101 102 116 117 | |
Symbol 38 Text | Uses:37 | Used by:Timeline |
Symbol 39 Graphic | Used by:Timeline | |
Symbol 40 Graphic | Used by:Timeline | |
Symbol 41 Graphic | Used by:Timeline | |
Symbol 42 Text | Uses:37 | Used by:Timeline |
Symbol 43 Text | Uses:37 | Used by:Timeline |
Symbol 44 Graphic | Used by:Timeline | |
Symbol 45 Graphic | Used by:Timeline | |
Symbol 46 Graphic | Used by:Timeline | |
Symbol 47 Text | Uses:37 | Used by:Timeline |
Symbol 48 Text | Uses:37 | Used by:Timeline |
Symbol 49 Graphic | Used by:Timeline | |
Symbol 50 Graphic | Used by:Timeline | |
Symbol 51 Graphic | Used by:113 Timeline | |
Symbol 52 Graphic | Used by:Timeline | |
Symbol 53 Text | Uses:37 | Used by:Timeline |
Symbol 54 Text | Uses:37 | Used by:Timeline |
Symbol 55 Graphic | Used by:Timeline | |
Symbol 56 Graphic | Used by:113 Timeline | |
Symbol 57 Graphic | Used by:Timeline | |
Symbol 58 Graphic | Used by:Timeline | |
Symbol 59 Graphic | Used by:Timeline | |
Symbol 60 Graphic | Used by:Timeline | |
Symbol 61 Graphic | Used by:Timeline | |
Symbol 62 Graphic | Used by:113 Timeline | |
Symbol 63 Graphic | Used by:Timeline | |
Symbol 64 Graphic | Used by:68 | |
Symbol 65 Graphic | Used by:68 | |
Symbol 66 Graphic | Used by:68 | |
Symbol 67 Graphic | Used by:68 | |
Symbol 68 Button | Uses:64 65 66 67 | Used by:Timeline |
Symbol 69 Graphic | Used by:70 | |
Symbol 70 MovieClip | Uses:69 | Used by:Timeline |
Symbol 71 Bitmap | Used by:72 | |
Symbol 72 Graphic | Uses:71 | Used by:73 |
Symbol 73 MovieClip | Uses:72 | Used by:Timeline |
Symbol 74 Bitmap | Used by:75 | |
Symbol 75 Graphic | Uses:74 | Used by:76 |
Symbol 76 MovieClip | Uses:75 | Used by:Timeline |
Symbol 77 Font | Used by:78 79 80 | |
Symbol 78 EditableText | Uses:77 | Used by:Timeline |
Symbol 79 EditableText | Uses:77 | Used by:Timeline |
Symbol 80 EditableText | Uses:77 | Used by:Timeline |
Symbol 81 Bitmap | Used by:82 | |
Symbol 82 Graphic | Uses:81 | Used by:89 |
Symbol 83 Bitmap | Used by:84 | |
Symbol 84 Graphic | Uses:83 | Used by:89 |
Symbol 85 Bitmap | Used by:86 | |
Symbol 86 Graphic | Uses:85 | Used by:89 |
Symbol 87 Bitmap | Used by:88 | |
Symbol 88 Graphic | Uses:87 | Used by:89 |
Symbol 89 MovieClip | Uses:82 84 86 88 | Used by:Timeline |
Symbol 90 Graphic | Used by:103 | |
Symbol 91 Text | Uses:37 | Used by:103 |
Symbol 92 Graphic | Used by:103 | |
Symbol 93 Graphic | Used by:103 | |
Symbol 94 Graphic | Used by:103 | |
Symbol 95 Graphic | Used by:103 | |
Symbol 96 Graphic | Used by:103 | |
Symbol 97 Graphic | Used by:103 | |
Symbol 98 Text | Uses:37 | Used by:103 |
Symbol 99 Text | Uses:37 | Used by:103 |
Symbol 100 Graphic | Used by:103 | |
Symbol 101 Text | Uses:37 | Used by:103 |
Symbol 102 Text | Uses:37 | Used by:103 |
Symbol 103 MovieClip | Uses:90 91 92 93 94 95 96 97 98 99 100 101 102 | Used by:Timeline |
Symbol 104 Graphic | Used by:113 | |
Symbol 105 Sound | Used by:113 | |
Symbol 106 Graphic | Used by:113 | |
Symbol 107 Graphic | Used by:113 | |
Symbol 108 Graphic | Used by:113 | |
Symbol 109 Graphic | Used by:113 | |
Symbol 110 Graphic | Used by:113 | |
Symbol 111 Graphic | Used by:113 | |
Symbol 112 Sound | Used by:113 | |
Symbol 113 MovieClip | Uses:51 56 104 105 62 106 107 108 109 110 111 112 | Used by:Timeline |
Symbol 114 Graphic | Used by:118 | |
Symbol 115 Graphic | Used by:118 | |
Symbol 116 Text | Uses:37 | Used by:118 |
Symbol 117 Text | Uses:37 | Used by:118 |
Symbol 118 MovieClip | Uses:114 115 116 117 | Used by:Timeline |
Instance Names
"infoButton" | Frame 2 | Symbol 68 Button |
"startButton" | Frame 2 | Symbol 70 MovieClip |
"pauseButton" | Frame 2 | Symbol 73 MovieClip |
"resumeButton" | Frame 2 | Symbol 76 MovieClip |
"highlight" | Frame 2 | Symbol 70 MovieClip |
"scoreText" | Frame 2 | Symbol 78 EditableText |
"linesText" | Frame 2 | Symbol 79 EditableText |
"levelText" | Frame 2 | Symbol 80 EditableText |
"feedback" | Frame 2 | Symbol 89 MovieClip |
"startScreen" | Frame 2 | Symbol 103 MovieClip |
"prompter" | Frame 2 | Symbol 113 MovieClip |
"instructions" | Frame 2 | Symbol 118 MovieClip |
"icon_mc" | Symbol 32 MovieClip [Mochibot] Frame 1 | Symbol 31 MovieClip |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access network only, Metadata not present, AS1/AS2. |
Protect (24) | Timeline Frame 1 | 0 bytes "" |
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "timerMP3" |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "successMP3" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "skullMP3" |
ExportAssets (56) | Timeline Frame 1 | Symbol 4 as "newlineMP3" |
ExportAssets (56) | Timeline Frame 1 | Symbol 5 as "doubleskullMP3" |
ExportAssets (56) | Timeline Frame 1 | Symbol 29 as "cell" |
ExportAssets (56) | Timeline Frame 1 | Symbol 32 as "Mochibot" |
ExportAssets (56) | Timeline Frame 1 | Symbol 32 as "Mochibot" |
ExportAssets (56) | Timeline Frame 1 | Symbol 119 as "__Packages.MochiAd" |
Labels
"paused" | Symbol 89 MovieClip Frame 1 |
"levelComplete" | Symbol 89 MovieClip Frame 2 |
"hurryUp" | Symbol 89 MovieClip Frame 3 |
"gameOver" | Symbol 89 MovieClip Frame 4 |
|