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

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

brickDrop.swf

This is the info page for
Flash #69117

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


Text
:(

2

5

brickDrop

play

play

instructions

instructions

options

by johnfn

Sound

Ads

click to close

Score: 8

Level: 1

You have been defeated!

Score: 432

Not bad.

Back to menu screen

Back to menu screen

Back to menu screen

Submit to highscores

Do ads bother you?

Nah, they're fine.

Nah, they're fine.

Nah, they're fine.

Yes, get rid of them, because even though I will have a
damaged conscious because I denied the author one
tenth of a cent, at least I will have an uninterrupted play
experience.

Yes, get rid of them, because even though I will have a
damaged conscious because I denied the author one
tenth of a cent, at least I will have an uninterrupted play
experience.

Yes, get rid of them, because even though I will have a
damaged conscious because I denied the author one
tenth of a cent, at least I will have an uninterrupted play
experience.

ActionScript [AS3]

Section 1
//border_13 (actuallyFixed_fla.border_13) package actuallyFixed_fla { import flash.display.*; public dynamic class border_13 extends MovieClip { public function border_13(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package actuallyFixed_fla
Section 2
//checkbox_10 (actuallyFixed_fla.checkbox_10) package actuallyFixed_fla { import flash.display.*; public dynamic class checkbox_10 extends MovieClip { public function checkbox_10(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package actuallyFixed_fla
Section 3
//dialog_7 (actuallyFixed_fla.dialog_7) package actuallyFixed_fla { import flash.display.*; public dynamic class dialog_7 extends MovieClip { public function dialog_7(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package actuallyFixed_fla
Section 4
//healthBar_20 (actuallyFixed_fla.healthBar_20) package actuallyFixed_fla { import flash.display.*; public dynamic class healthBar_20 extends MovieClip { public var bar:MovieClip; } }//package actuallyFixed_fla
Section 5
//MainTimeline (actuallyFixed_fla.MainTimeline) package actuallyFixed_fla { import flash.display.*; import flash.events.*; import mochi.*; import flash.media.*; import flash.text.*; import flash.geom.*; import flash.net.*; import flash.utils.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.ui.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var bad:enem; public var platform1:blockPlatform; public var platform3:blockPlatform; public var platform4:blockPlatform; public var platform5:blockPlatform; public var platform6:blockPlatform; public var enemies:Array; public var howdido:TextField; public var border:MovieClip; public var platform2:blockPlatform; public var bg:MovieClip; public var optnbtn:SimpleButton; public var health; public var GRAV; public var stars:Array; public var i; public var d:soundy; public var showAds; public var hlth:MovieClip; public var healup:healPlat; public var playBtn:SimpleButton; public var score; public var scoretxt:TextField; public var down:Boolean; public var options:MovieClip; public var pointsText:TextField; public var levelText:TextField; public var end:MovieClip; public var maxHealth; public var yes:SimpleButton; public var points:uint; public var instr:SimpleButton; public var hs:SimpleButton; public var soundC; public var plats:Array; public var totalFr:uint; public var dialog:MovieClip; public var borderInitial; public var level:int; public var done; public var heals:Array; public var disc:String; public var no:SimpleButton; public var keyC:Array; public var addedSound; public var line:Sprite; public var backBtn:SimpleButton; public var ball:MovieClip; public function MainTimeline(){ addFrameScript(0, frame1, 3, frame4, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14); } public function enterIt(_arg1:Event){ var _local2:*; var _local3:*; if (health < 0){ _local3 = 0; while (_local3 < enemies.length) { enemies[_local3].removeEventListener(Event.ENTER_FRAME, enterEnemy); enemies[_local3].removeEventListener(Event.ENTER_FRAME, killEnemy); _local3++; }; _local3 = 0; while (_local3 < plats.length) { plats[_local3].removeEventListener(Event.ENTER_FRAME, enterPlat); plats[_local3].removeEventListener(Event.ENTER_FRAME, killPlat); _local3++; }; _local3 = 0; while (_local3 < heals.length) { heals[_local3].removeEventListener(Event.ENTER_FRAME, enterHeal); heals[_local3].removeEventListener(Event.ENTER_FRAME, killHeal); _local3++; }; removeEventListener(MouseEvent.MOUSE_DOWN, downIt); removeEventListener(MouseEvent.MOUSE_UP, upIt); ball.removeEventListener(Event.ENTER_FRAME, updateBall); removeEventListener(Event.ENTER_FRAME, enterIt); gotoAndStop(4); return; }; levelText.text = ("Level: " + level); pointsText.text = ("Score: " + points); totalFr = (totalFr + 1); if ((totalFr % 260) == 0){ level++; }; if (level < 4){ _local2 = level; } else { _local2 = 4; }; if ((Math.random() * 200) > (198 - _local2)){ newPlat(); }; if ((Math.random() * 200) > (198 - _local2)){ newEnemy(); }; if ((Math.random() * 200) > 199){ newHeal(); }; if (down){ line.graphics.clear(); line.graphics.lineStyle(1, 0); line.graphics.moveTo((ball.x + 17), (ball.y + 17)); line.graphics.lineTo(mouseX, mouseY); if (line.parent.getChildIndex(line) > ball.parent.getChildIndex(ball)){ MovieClip(root).swapChildren(line, ball); }; }; } public function enterPlat(_arg1:Event){ _arg1.currentTarget.x = (_arg1.currentTarget.x + (3 + (level / 2))); if (_arg1.currentTarget.hitTestObject(end)){ health = (health - 2); hlth.bar.scaleY = (health / maxHealth); _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, enterPlat); _arg1.currentTarget.alpha = 0.95; _arg1.currentTarget.gotoAndPlay("boom"); _arg1.currentTarget.addEventListener(Event.ENTER_FRAME, killPlat); }; } public function yesP(_arg1:MouseEvent){ showAds = false; gotoAndStop(2); } function frame14(){ gotoAndStop(2); } function frame10(){ enemies = new Array(); plats = new Array(); heals = new Array(); totalFr = 0; level = 1; keyC = new Array(0xFF); i = 0; while (i < 0xFF) { keyC[i] = false; i++; }; GRAV = 1; line = new Sprite(); points = 0; addChild(line); line.x = 0; line.y = 0; border.vy = 0; ball.addEventListener(Event.ENTER_FRAME, updateBall); ball.vy = 0; ball.vx = 8; health = 50; maxHealth = 50; borderInitial = border.y; addEventListener(MouseEvent.MOUSE_DOWN, downIt); addEventListener(MouseEvent.MOUSE_UP, upIt); addEventListener(Event.ENTER_FRAME, enterIt); bg.addEventListener(KeyboardEvent.KEY_DOWN, keyD); bg.addEventListener(KeyboardEvent.KEY_UP, keyU); newEnemy(); newPlat(); stage.stageFocusRect = false; } function frame12(){ if (showAds == "undef"){ stop(); } else { gotoAndStop(2); }; no.addEventListener(MouseEvent.CLICK, noP); yes.addEventListener(MouseEvent.CLICK, yesP); } public function dialogShow(_arg1:MouseEvent){ dialog.play(); } public function killHeal(_arg1:Event){ _arg1.currentTarget.frames++; if (_arg1.currentTarget.frames > 10){ heals.splice(_arg1.currentTarget.spot, 1); removeChild(MovieClip(_arg1.currentTarget)); _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, killHeal); }; } function frame4(){ gotoAndStop(2, "Scene 1"); } public function updateBall(_arg1:Event){ var _local2:*; var _local3:bric; stage.focus = bg; if (!down){ border.y = (border.y + border.vy); ball.vx = (ball.vx + (2 * (int(keyC[39]) - int(keyC[37])))); ball.vy = (ball.vy - (2 * (int(keyC[38]) - int(keyC[40])))); if (border.y != borderInitial){ if (Math.abs(border.vy) > 2){ border.vy = (border.vy - ((Math.abs(border.vy) * 2) / border.vy)); } else { border.vy = 0; }; border.vy = (border.vy - ((border.y - borderInitial) / 4)); }; ball.vy = (ball.vy + GRAV); if ((Math.abs(ball.vx) > 0.4)){ ball.vx = (ball.vx - ((Math.abs(ball.vx) * 0.4) / ball.vx)); } else { ball.vx = 0; }; ball.x = (ball.x + ball.vx); ball.y = (ball.y + ball.vy); if (ball.y > (border.y - ball.height)){ ball.y = (ball.y - ball.vy); if (Math.abs(ball.vy) > 1){ if (Math.abs(ball.vy) > 5){ border.vy = (ball.vy / 2); _local3 = new bric(); _local3.x = ball.x; _local3.y = (border.y - 4); _local3.frames = 0; _local3.addEventListener(Event.ENTER_FRAME, enterBric); addChild(_local3); }; ball.vy = (ball.vy * -0.4); } else { ball.vy = 0; }; }; if (ball.y > (border.y - ball.height)){ ball.y = ((border.y - ball.height) - 1); }; if (ball.y < 0){ ball.y = (ball.y - ball.vy); if (Math.abs(ball.vy) > 1){ ball.vy = (ball.vy * -0.4); } else { ball.vy = 0; }; }; if ((((ball.x > 540)) || ((ball.x < 0)))){ ball.x = (ball.x - ball.vx); ball.vx = (ball.vx * -0.4); }; if (ball.x > 540){ ball.x = 540; }; if (ball.x < 0){ ball.x = 10; }; _local2 = 0; while (_local2 < plats.length) { if (ball.hitTestObject(plats[_local2])){ ball.y = (ball.y - ball.vy); if ((ball.y + ball.height) < plats[_local2].y){ ball.vy = (ball.vy * -0.4); } else { ball.y = (ball.y + ball.vy); ball.x = (ball.x - ball.vx); ball.vx = (ball.vx * -0.4); }; plats[_local2].removeEventListener(Event.ENTER_FRAME, enterPlat); plats[_local2].addEventListener(Event.ENTER_FRAME, killPlat); plats.splice(_local2, 1); break; }; _local2++; }; }; } public function enterBric(_arg1:Event){ var _local2:*; _arg1.currentTarget.frames++; if (_arg1.currentTarget.frames > 29){ removeChild(MovieClip(_arg1.currentTarget)); _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, enterBric); }; _local2 = 0; while (_local2 < enemies.length) { if (_arg1.currentTarget.hitTestPoint(enemies[_local2].x, enemies[_local2].y)){ enemies[_local2].play(); enemies[_local2].removeEventListener(Event.ENTER_FRAME, enterEnemy); enemies.splice(_local2, 1); points = (points + 5); }; _local2++; }; } function frame9(){ stop(); if (addedSound == false){ addedSound = true; d = new soundy(); soundC = d.play(0, 1000); }; stars = new Array(); playBtn.addEventListener(MouseEvent.MOUSE_DOWN, playGame); instr.addEventListener(MouseEvent.MOUSE_DOWN, dialogShow); dialog.addEventListener(MouseEvent.MOUSE_DOWN, dialogHide); options.addEventListener(MouseEvent.MOUSE_DOWN, optionShow); optnbtn.addEventListener(MouseEvent.MOUSE_DOWN, optionShow); addEventListener(Event.ENTER_FRAME, doStars); } function frame1(){ done = false; showAds = "undef"; addedSound = false; MochiServices.connect("54e74afc7d8185b2", root); MochiAd.showPreGameAd({clip:root, id:"54e74afc7d8185b2", res:"600x400"}); } public function hsDown(_arg1:MouseEvent){ MochiScores.showLeaderboard({boardID:"230e5d09e59de789", score:points}); } function frame13(){ MochiAd.showInterLevelAd({clip:root, id:"54e74afc7d8185b2", res:"600x400"}); } public function doStars(_arg1:Event){ var _local2:star; var _local3:ColorTransform; if (currentFrame == 2){ if ((Math.random() * 10) > 4){ _local2 = new star(); _local2.x = (Math.random() * 600); _local2.y = (Math.random() * 400); _local2.rot = ((Math.random() * 5) + 5); _local3 = _local2.transform.colorTransform; _local3.redMultiplier = 1; _local3.greenMultiplier = 1; _local3.blueMultiplier = 1; _local3.redOffset = (((Math.random() * 150) * 2) - 200); _local3.blueOffset = (((Math.random() * 150) * 2) - 200); _local3.greenOffset = (((Math.random() * 150) * 2) - 200); _local2.transform.colorTransform = _local3; _local2.addEventListener(Event.ENTER_FRAME, starEnterFrame); addChild(_local2); }; instr.parent.setChildIndex(instr, (instr.parent.numChildren - 1)); playBtn.parent.setChildIndex(playBtn, (playBtn.parent.numChildren - 1)); optnbtn.parent.setChildIndex(optnbtn, (optnbtn.parent.numChildren - 1)); dialog.parent.setChildIndex(dialog, (dialog.parent.numChildren - 1)); options.parent.setChildIndex(options, (options.parent.numChildren - 1)); }; } function frame11(){ scoretxt.text = ("Score: " + points); backBtn.addEventListener(MouseEvent.MOUSE_DOWN, clicky); hs.addEventListener(MouseEvent.MOUSE_DOWN, hsDown); score = points; if (score < 100){ disc = "Were you playing this game blindfolded?"; } else { if (score < 200){ disc = "A decent score... for a first timer."; } else { if (score < 300){ disc = "About average."; } else { if (score < 400){ disc = "Not bad, not bad."; } else { if (score < 500){ disc = "Doin' pretty good!"; } else { if (score < 600){ disc = "Nice job :D"; } else { if (score < 700){ disc = "Ut oh, you did better than me."; } else { if (score < 800){ disc = "Wow, you really owned this."; } else { disc = "You are amazing."; }; }; }; }; }; }; }; }; howdido.text = disc; } public function noP(_arg1:MouseEvent){ showAds = true; gotoAndStop(6); } public function dialogHide(_arg1:MouseEvent){ dialog.play(); } public function killEnemy(_arg1:Event){ _arg1.currentTarget.frames++; if (_arg1.currentTarget.frames > 8){ removeChild(MovieClip(_arg1.currentTarget)); _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, killEnemy); }; } public function enterHeal(_arg1:Event){ if ((((ball == null)) || (!((MovieClip(root).currentFrame == 3))))){ _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, enterHeal); }; if (_arg1.currentTarget.currentFrame == 1){ _arg1.currentTarget.x = (_arg1.currentTarget.x + 3); if (_arg1.currentTarget.hitTestObject(end)){ if (health < maxHealth){ health = (health + 4); }; if (health > maxHealth){ health = maxHealth; }; hlth.bar.scaleY = (health / maxHealth); _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, enterHeal); _arg1.currentTarget.gotoAndPlay("happy"); _arg1.currentTarget.addEventListener(Event.ENTER_FRAME, killHeal); _arg1.currentTarget.frames = 0; } else { if (_arg1.currentTarget.hitTestObject(ball)){ ball.x = (ball.x - ball.vx); ball.y = (ball.y - ball.vy); if ((ball.y + ball.height) < _arg1.currentTarget.y){ ball.vy = (ball.vy * -0.4); } else { if (ball.y > (_arg1.currentTarget.y + _arg1.currentTarget.height)){ ball.vy = (ball.vy * -0.4); } else { ball.vx = (ball.vx * -0.4); }; }; _arg1.currentTarget.gotoAndPlay("sad"); }; }; }; } public function newPlat(){ var _local1:blockPlatform; var _local2:*; var _local3:*; _local1 = new blockPlatform(); _local2 = 1; _local2 = (_local2 + int((level / 2))); _local3 = MovieClip(root)[("platform" + ((Math.ceil(((Math.random() * _local2) - 1)) % 6) + 1))]; _local1.x = _local3.x; _local1.y = _local3.y; _local1.addEventListener(Event.ENTER_FRAME, enterPlat); plats.push(_local1); addChild(_local1); } public function optionShow(_arg1:MouseEvent){ if (options.currentFrame == 2){ if (options.cb2.hitTestPoint(mouseX, mouseY)){ trace(MovieClip(root).showAds); if (options.cb2.currentFrame == 1){ options.cb2.gotoAndStop(2); MovieClip(root).showAds = false; } else { options.cb2.gotoAndStop(1); MovieClip(root).showAds = true; }; trace(MovieClip(root).showAds); } else { if (options.cb1.hitTestPoint(mouseX, mouseY)){ if (options.cb1.currentFrame == 1){ options.cb1.gotoAndStop(2); MovieClip(root).soundC.stop(); } else { options.cb1.gotoAndStop(1); MovieClip(root).soundC = MovieClip(root).d.play(0, 1000); }; } else { options.play(); }; }; } else { options.play(); }; } public function upIt(_arg1:MouseEvent){ down = false; ball.vx = ((ball.x - mouseX) / 5); ball.vy = ((ball.y - mouseY) / 5); line.graphics.clear(); } public function playGame(_arg1:MouseEvent){ gotoAndStop(3); } public function downIt(_arg1:MouseEvent){ down = true; } public function starEnterFrame(_arg1:Event){ _arg1.currentTarget.x = (_arg1.currentTarget.x + ((mouseX - _arg1.currentTarget.x) / 15)); _arg1.currentTarget.y = (_arg1.currentTarget.y + ((mouseY - _arg1.currentTarget.y) / 15)); _arg1.currentTarget.rotation = (_arg1.currentTarget.rotation + _arg1.currentTarget.rot); _arg1.currentTarget.alpha = (_arg1.currentTarget.alpha - 0.05); if (_arg1.currentTarget.alpha < 0.06){ removeChild(MovieClip(_arg1.currentTarget)); _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, starEnterFrame); }; } public function enterEnemy(_arg1:Event){ _arg1.currentTarget.x = (_arg1.currentTarget.x + (3 + (level / 2))); if (_arg1.currentTarget.hitTestObject(end)){ health = (health - 5); hlth.bar.scaleY = (health / maxHealth); _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, enterEnemy); _arg1.currentTarget.addEventListener(Event.ENTER_FRAME, killEnemy); _arg1.currentTarget.frames = 0; _arg1.currentTarget.gotoAndPlay("boom"); }; } public function newHeal(){ var _local1:healPlat; _local1 = new healPlat(); _local1.x = healup.x; _local1.y = (healup.y + (Math.random() * 150)); _local1.addEventListener(Event.ENTER_FRAME, enterHeal); addChild(_local1); _local1.spot = heals.push(_local1); } public function killPlat(_arg1:Event){ if (_arg1.currentTarget.alpha == 1){ _arg1.currentTarget.play(); }; _arg1.currentTarget.alpha = (_arg1.currentTarget.alpha - 0.05); if (_arg1.currentTarget.alpha < 0.06){ _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, killPlat); _arg1.currentTarget.x = -5000; removeChild(MovieClip(_arg1.currentTarget)); points = (points + 2); }; } public function keyD(_arg1:KeyboardEvent){ keyC[_arg1.keyCode] = true; } public function newEnemy(){ var _local1:enem; _local1 = new enem(); _local1.x = bad.x; _local1.y = bad.y; _local1.addEventListener(Event.ENTER_FRAME, enterEnemy); enemies.push(_local1); addChild(_local1); } public function keyU(_arg1:KeyboardEvent){ keyC[_arg1.keyCode] = false; } public function clicky(_arg1:MouseEvent){ if (showAds == "undef"){ gotoAndStop(5); } else { if (showAds == true){ gotoAndStop(6); } else { gotoAndStop(2); }; }; } } }//package actuallyFixed_fla
Section 6
//optionMask_6 (actuallyFixed_fla.optionMask_6) package actuallyFixed_fla { import flash.display.*; public dynamic class optionMask_6 extends MovieClip { public function optionMask_6(){ addFrameScript(15, frame16); } function frame16(){ stop(); } } }//package actuallyFixed_fla
Section 7
//options_9 (actuallyFixed_fla.options_9) package actuallyFixed_fla { import flash.display.*; public dynamic class options_9 extends MovieClip { public var cb2:MovieClip; public var cb1:MovieClip; public function options_9(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package actuallyFixed_fla
Section 8
//playMask_4 (actuallyFixed_fla.playMask_4) package actuallyFixed_fla { import flash.display.*; public dynamic class playMask_4 extends MovieClip { public function playMask_4(){ addFrameScript(11, frame12); } function frame12(){ stop(); } } }//package actuallyFixed_fla
Section 9
//playMaskme_2 (actuallyFixed_fla.playMaskme_2) package actuallyFixed_fla { import flash.display.*; public dynamic class playMaskme_2 extends MovieClip { public function playMaskme_2(){ addFrameScript(13, frame14); } function frame14(){ stop(); } } }//package actuallyFixed_fla
Section 10
//MochiScores (mochi.MochiScores) package mochi { import flash.display.*; import flash.text.*; public class MochiScores { private static var boardID:String; public static var onErrorHandler:Object; public static var onCloseHandler:Object; public static function showLeaderboard(_arg1:Object=null):void{ var options = _arg1; if (options != null){ if (options.clip != null){ if ((options.clip is Sprite)){ MochiServices.setContainer(options.clip); }; delete options.clip; } else { MochiServices.setContainer(); }; MochiServices.stayOnTop(); if (options.name != null){ if ((options.name is TextField)){ if (options.name.text.length > 0){ options.name = options.name.text; }; }; }; if (options.score != null){ if ((options.score is TextField)){ if (options.score.text.length > 0){ options.score = options.score.text; }; }; }; if (options.onDisplay != null){ options.onDisplay(); } else { if (MochiServices.clip != null){ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; }; } else { options = {}; if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; if (options.onClose != null){ onCloseHandler = options.onClose; } else { onCloseHandler = function ():void{ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.play(); } else { trace("Warning: Container is not a MovieClip, cannot call default onClose."); }; }; }; if (options.onError != null){ onErrorHandler = options.onError; } else { onErrorHandler = null; }; if (options.boardID == null){ if (MochiScores.boardID != null){ options.boardID = MochiScores.boardID; }; }; MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose); } public static function closeLeaderboard():void{ MochiServices.send("scores_closeLeaderboard"); } public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2); } public static function requestList(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_requestList", null, _arg1, _arg2); } public static function scoresArrayToObjects(_arg1:Object):Object{ var _local2:Object; var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Object; var _local7:String; var _local8:String; _local2 = {}; for (_local7 in _arg1) { if (typeof(_arg1[_local7]) == "object"){ if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){ _local2[_local7] = []; _local5 = _arg1[_local7]; _local4 = 0; while (_local4 < _local5.rows.length) { _local6 = {}; _local3 = 0; while (_local3 < _local5.cols.length) { _local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3]; _local3++; }; _local2[_local7].push(_local6); _local4++; }; } else { _local2[_local7] = {}; for (_local8 in _arg1[_local7]) { _local2[_local7][_local8] = _arg1[_local7][_local8]; }; }; } else { _local2[_local7] = _arg1[_local7]; }; }; return (_local2); } public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{ MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4); } public static function onClose(_arg1:Object=null):void{ if (_arg1 != null){ if (_arg1.error != null){ if (_arg1.error == true){ if (onErrorHandler != null){ if (_arg1.errorCode == null){ _arg1.errorCode = "IOError"; }; onErrorHandler(_arg1.errorCode); MochiServices.doClose(); return; }; }; }; }; onCloseHandler(); MochiServices.doClose(); } public static function setBoardID(_arg1:String):void{ MochiScores.boardID = _arg1; MochiServices.send("scores_setBoardID", {boardID:_arg1}); } } }//package mochi
Section 11
//MochiServices (mochi.MochiServices) package mochi { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; public class MochiServices { private static var _container:Object; private static var _connected:Boolean = false; private static var _swfVersion:String; private static var _sendChannel:LocalConnection; private static var _rcvChannelName:String; private static var _gatewayURL:String = "http://www.mochiads.com/static/lib/services/services.swf"; private static var _clip:MovieClip; private static var _loader:Loader; private static var _id:String; private static var _listenChannel:LocalConnection; private static var _timer:Timer; private static var _sendChannelName:String; private static var _startTime:Number; private static var _connecting:Boolean = false; public static var onError:Object; private static var _listenChannelName:String = "__mochiservices"; private static var _rcvChannel:LocalConnection; public static function isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_connected){ _sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); } else { if ((((_clip == null)) || (!(_connecting)))){ onError("NotConnected"); handleError(_arg2, _arg3, _arg4); flush(true); return; }; _clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); }; if (_clip != null){ if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){ _clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4}; _clip._nextcallbackID++; }; }; } public static function get connected():Boolean{ return (_connected); } private static function flush(_arg1:Boolean):void{ var _local2:Object; var _local3:Object; if (_clip != null){ if (_clip._queue != null){ while (_clip._queue.length > 0) { _local2 = _clip._queue.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = _clip._callbacks[_local2.callbackID]; }; delete _clip._callbacks[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; }; } private static function init(_arg1:String, _arg2:Object):void{ _id = _arg1; if (_arg2 != null){ _container = _arg2; loadCommunicator(_arg1, _container); }; } public static function get childClip():Object{ return (_clip); } public static function get id():String{ return (_id); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } public static function getVersion():String{ return ("1.2"); } public static function disconnect():void{ if (((_connected) || (_connecting))){ if (_clip != null){ if (_clip.parent != null){ if ((_clip.parent is Sprite)){ Sprite(_clip.parent).removeChild(_clip); _clip = null; }; }; }; _connecting = (_connected = false); flush(true); try { _listenChannel.close(); _rcvChannel.close(); } catch(error:Error) { }; }; if (_timer != null){ try { _timer.stop(); } catch(error:Error) { }; }; } public static function allowDomains(_arg1:String):String{ var _local2:String; Security.allowDomain("*"); Security.allowInsecureDomain("*"); if (_arg1.indexOf("http://") != -1){ _local2 = _arg1.split("/")[2].split(":")[0]; Security.allowDomain(_local2); Security.allowInsecureDomain(_local2); }; return (_local2); } public static function doClose():void{ _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); if (_clip.parent != null){ Sprite(_clip.parent).removeChild(_clip); }; } public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{ if (_arg1 != null){ if ((_arg1 is Sprite)){ _container = _arg1; }; }; if (_arg2){ if ((_container is Sprite)){ Sprite(_container).addChild(_clip); }; }; } private static function onStatus(_arg1:StatusEvent):void{ switch (_arg1.level){ case "error": _connected = false; _listenChannel.connect(_listenChannelName); break; }; } private static function initComChannels():void{ if (!_connected){ _sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion()}); _rcvChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _clip.onReceive = function (_arg1:Object):void{ var cb:String; var cblst:Object; var method:*; var obj:Object; var pkg = _arg1; cb = pkg.callbackID; cblst = this.client._callbacks[cb]; if (!cblst){ return; }; method = cblst.callbackMethod; obj = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ if (obj[method] != null){ method = obj[method]; } else { trace((("Error: Method " + method) + " does not exist.")); }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { trace("Unable to invoke callback method."); }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { trace("Unable to invoke callback method on object."); }; }; }; delete this.client._callbacks[cb]; }; _clip.onError = function ():void{ MochiServices.onError("IOError"); }; _rcvChannel.connect(_rcvChannelName); trace("connected!"); _connecting = false; _connected = true; _listenChannel.close(); while (_clip._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift()); }; }; } private static function listen():void{ _listenChannel = new LocalConnection(); _listenChannel.client = _clip; _clip.handshake = function (_arg1:Object):void{ MochiServices.comChannelName = _arg1.newChannel; }; _listenChannel.allowDomain("*", "localhost"); _listenChannel.allowInsecureDomain("*", "localhost"); _listenChannel.connect(_listenChannelName); trace("Waiting for MochiAds services to connect..."); } private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } public static function get clip():Object{ return (_container); } public static function set comChannelName(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _sendChannelName = (_arg1 + "_fromgame"); _rcvChannelName = _arg1; initComChannels(); }; }; } private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{ var clipname:String; var f:Function; var req:URLRequest; var id = _arg1; var clip = _arg2; clipname = ("_mochiservices_com_" + id); if (_clip != null){ return (_clip); }; if (!MochiServices.isNetworkAvailable()){ return (null); }; MochiServices.allowDomains(_gatewayURL); _clip = createEmptyMovieClip(clip, clipname, 10336, false); _loader = new Loader(); _timer = new Timer(1000, 0); _startTime = getTimer(); _timer.addEventListener(TimerEvent.TIMER, connectWait); _timer.start(); f = function (_arg1:Object):void{ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); }; _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); req = new URLRequest(_gatewayURL); _loader.load(req); _clip.addChild(_loader); _clip._mochiservices_com = _loader; _sendChannel = new LocalConnection(); _clip._queue = []; _rcvChannel = new LocalConnection(); _rcvChannel.allowDomain("*", "localhost"); _rcvChannel.allowInsecureDomain("*", "localhost"); _rcvChannel.client = _clip; _clip._nextcallbackID = 0; _clip._callbacks = {}; listen(); return (_clip); } public static function bringToTop(_arg1:Event):void{ var e = _arg1; if (MochiServices.clip != null){ if (MochiServices.childClip != null){ try { if (MochiServices.clip.numChildren > 1){ MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1)); }; } catch(errorObject:Error) { trace("Warning: Depth sort error."); _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); }; }; }; } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; if ((clip is DisplayObject)){ if (((!(_connected)) && ((_clip == null)))){ trace("MochiServices Connecting..."); _connecting = true; init(id, clip); }; } else { trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage."); }; if (onError != null){ MochiServices.onError = onError; } else { if (MochiServices.onError == null){ MochiServices.onError = function (_arg1:String):void{ trace(_arg1); }; }; }; } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{ var _local5:MovieClip; _local5 = new MovieClip(); if (_arg4){ if (((false) && (_arg3))){ _arg1.addChildAt(_local5, _arg3); } else { _arg1.addChild(_local5); }; }; _arg1[_arg2] = _local5; _local5["_name"] = _arg2; return (_local5); } public static function connectWait(_arg1:TimerEvent):void{ if ((getTimer() - _startTime) > 10000){ if (!_connected){ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); }; _timer.stop(); }; } } }//package mochi
Section 12
//blockPlatform (blockPlatform) package { import flash.display.*; public dynamic class blockPlatform extends MovieClip { public function blockPlatform(){ addFrameScript(0, frame1, 20, frame21, 31, frame32); } function frame1(){ stop(); } function frame21(){ stop(); } function frame32(){ gotoAndStop(30); } } }//package
Section 13
//bric (bric) package { import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.geom.*; import flash.net.*; import flash.utils.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.ui.*; import flash.xml.*; public dynamic class bric extends MovieClip { public var makeHere:MovieClip; public var colorTransform:ColorTransform; public var i; public var particles:Array; public function bric(){ addFrameScript(10, frame11, 33, frame34); } function frame34(){ stop(); i = 0; while (i < 40) { delete particles[i]; i++; }; } function frame11(){ particles = new Array(20); i = 0; while (i < 20) { particles[i] = new particle(); particles[i].x = makeHere.x; particles[i].y = makeHere.y; particles[i].vx = ((Math.random() * 20) - 10); particles[i].vy = ((Math.random() * 10) + 10); particles[i].addEventListener(Event.ENTER_FRAME, framey); particles[i].rot = ((Math.random() * 15) + 5); colorTransform = particles[i].transform.colorTransform; colorTransform.redMultiplier = 1; colorTransform.greenMultiplier = 1; colorTransform.blueMultiplier = 1; colorTransform.redOffset = (((Math.random() * 150) * 2) - 200); colorTransform.blueOffset = (((Math.random() * 150) * 2) - 200); colorTransform.greenOffset = (((Math.random() * 150) * 2) - 200); particles[i].transform.colorTransform = colorTransform; addChild(particles[i]); i++; }; } public function framey(_arg1:Event){ _arg1.currentTarget.vy = (_arg1.currentTarget.vy - 2); _arg1.currentTarget.x = (_arg1.currentTarget.x + _arg1.currentTarget.vx); _arg1.currentTarget.y = (_arg1.currentTarget.y - _arg1.currentTarget.vy); _arg1.currentTarget.rotation = (_arg1.currentTarget.rotation + _arg1.currentTarget.rot); _arg1.currentTarget.alpha = (_arg1.currentTarget.alpha - 0.05); if (_arg1.currentTarget.alpha < 0.06){ _arg1.currentTarget.parent.removeChild(_arg1.currentTarget); _arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, framey); }; } } }//package
Section 14
//enem (enem) package { import flash.display.*; public dynamic class enem extends MovieClip { public function enem(){ addFrameScript(0, frame1, 8, frame9, 19, frame20); } function frame1(){ stop(); } function frame9(){ stop(); } function frame20(){ stop(); } } }//package
Section 15
//healPlat (healPlat) package { import flash.display.*; public dynamic class healPlat extends MovieClip { public function healPlat(){ addFrameScript(0, frame1, 20, frame21, 28, frame29); } function frame1(){ stop(); } function frame21(){ stop(); } function frame29(){ gotoAndStop(30); trace("stillrunnin"); } } }//package
Section 16
//MochiAd (MochiAd) package { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; public class MochiAd { public static function getVersion():String{ return ("2.1"); } public static function showTimedAd(_arg1:Object):void{ MochiAd.showInterLevelAd(_arg1); } public static function _allowDomains(_arg1:String):String{ var _local2:String; _local2 = _arg1.split("/")[2].split(":")[0]; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } public static function load(_arg1:Object):MovieClip{ var DEFAULTS:Object; var clip:Object; var depth:Number; var mc:MovieClip; var wh:Array; var lv:URLVariables; var k:String; var server:String; var hostname:String; var lc:LocalConnection; var name:String; var loader:Loader; var f:Function; var g:Function; var req:URLRequest; var v:Object; var options = _arg1; DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; if (!MochiAd._isNetworkAvailable()){ return (null); }; if (clip._mochiad_loaded){ return (null); }; depth = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, "_mochiad", depth); wh = MochiAd._getRes(options, clip); options.res = ((wh[0] + "x") + wh[1]); options.server = (options.server + options.id); delete options.id; clip._mochiad_loaded = true; if (clip.loaderInfo.loaderURL.indexOf("http") == 0){ options.as3_swf = clip.loaderInfo.loaderURL; }; lv = new URLVariables(); for (k in options) { v = options[k]; if (!(v is Function)){ lv[k] = v; }; }; server = lv.server; delete lv.server; hostname = _allowDomains(server); lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.lc = lc; lv.lc = name; lv.st = getTimer(); loader = new Loader(); f = function (_arg1:Object):void{ mc._mochiad_ctr_failed = true; }; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); g = function (_arg1:Object):void{ MochiAd.unload(clip); }; loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g); req = new URLRequest((server + ".swf")); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader.load(req); mc.addChild(loader); mc._mochiad_ctr = loader; return (mc); } public static function sendHighScore(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{ var _local4:MovieClip; _local4 = MochiAd._loadCommunicator({clip:_arg1.clip, id:_arg1.id}); if (!_local4){ return (false); }; _local4.doSend(["sendHighScore", _arg1], _arg2, _arg3); return (true); } public static function _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local3:Object; var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; _local3 = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; if (_arg1){ for (_local4 in _arg1) { _local3[_local4] = _arg1[_local4]; }; }; _arg1 = _local3.clip.loaderInfo.parameters.mochiad_options; if (_arg1){ _local5 = _arg1.split("&"); _local6 = 0; while (_local6 < _local5.length) { _local7 = _local5[_local6].split("="); _local3[unescape(_local7[0])] = unescape(_local7[1]); _local6++; }; }; return (_local3); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; _arg1.removeChild(_arg1._mochiad); delete _arg1._mochiad_loaded; delete _arg1._mochiad; return (true); } public static function showInterLevelAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_msec:Number; var ad_timeout:Number; var fadeout_time:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var options = _arg1; DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ this.clip.stop(); }, ad_finished:function ():void{ this.clip.play(); }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; ad_msec = 11000; ad_timeout = options.ad_timeout; delete options.ad_timeout; fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ options.ad_finished(); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_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 ():void{ var _local1:Number; _local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Number; var _local3:Boolean; var _local4:Number; _local1 = this.parent._mochiad_ctr; _local2 = (getTimer() - this.started); _local3 = false; if (!chk.showing){ _local4 = _local1.loaderInfo.bytesTotal; if ((((_local4 > 0)) || (("number" == "undefined")))){ chk.showing = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ _local3 = true; }; }; }; if ((((_local2 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){ _local3 = true; }; if (_local3){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function _getRes(_arg1:Object, _arg2:Object):Array{ var _local3:Object; var _local4:Number; var _local5:Number; var _local6:Array; _local3 = _arg2.getBounds(_arg2.root); _local4 = 0; _local5 = 0; if (typeof(_arg1.res) != "undefined"){ _local6 = _arg1.res.split("x"); _local4 = parseFloat(_local6[0]); _local5 = parseFloat(_local6[1]); } else { _local4 = (_local3.xMax - _local3.xMin); _local5 = (_local3.yMax - _local3.yMin); }; if ((((_local4 == 0)) || ((_local5 == 0)))){ _local4 = _arg2.stage.stageWidth; _local5 = _arg2.stage.stageHeight; }; return ([_local4, _local5]); } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{ var _local4:MovieClip; _local4 = new MovieClip(); if (((false) && (_arg3))){ _arg1.addChildAt(_local4, _arg3); } else { _arg1.addChild(_local4); }; _arg1[_arg2] = _local4; _local4["_name"] = _arg2; return (_local4); } public static function _loadCommunicator(_arg1:Object):MovieClip{ var DEFAULTS:Object; var clip:Object; var clipname:String; var server:String; var depth:Number; var mc:MovieClip; var lv:URLVariables; var k:String; var lc:LocalConnection; var name:String; var req:URLRequest; var loader:Loader; var options = _arg1; DEFAULTS = {com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; clipname = ("_mochiad_com_" + options.id); if (!MochiAd._isNetworkAvailable()){ return (null); }; if (clip[clipname]){ return (clip[clipname]); }; server = (options.com_server + options.id); MochiAd._allowDomains(server); delete options.id; delete options.com_server; depth = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, clipname, depth); lv = new URLVariables(); for (k in options) { lv[k] = options[k]; }; lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.name = name; mc.lc = lc; lv.lc = name; mc._id = 0; mc._queue = []; mc.rpcResult = function (_arg1:Object):void{ var _local3:Array; var _local4:Array; var _local5:Number; var _local6:Object; var _local7:Object; _arg1 = parseInt(_arg1.toString()); _local3 = mc._callbacks[_arg1]; if (typeof(_local3) == "undefined"){ return; }; delete mc._callbacks[_arg1]; _local4 = []; _local5 = 2; while (_local5 < _local3.length) { _local4.push(_local3[_local5]); _local5++; }; _local5 = 1; while (_local5 < arguments.length) { _local4.push(arguments[_local5]); _local5++; }; _local6 = _local3[1]; _local7 = _local3[0]; if (((_local7) && ((typeof(_local6) == "string")))){ _local6 = _local7[_local6]; }; if (typeof(_local6) == "function"){ _local6.apply(_local7, _local4); }; }; mc._didConnect = function (_arg1:String):void{ var _local2:Array; var _local3:Function; var _local4:Number; var _local5:Array; mc._endpoint = _arg1; _local2 = mc._queue; delete mc._queue; _local3 = mc.doSend; _local4 = 0; while (_local4 < _local2.length) { _local5 = _local2[_local4]; _local3.apply(this, _local5); _local4++; }; }; mc.doSend = function (_arg1:Array, _arg2:Object, _arg3:Object):void{ var _local5:Number; var _local6:LocalConnection; var _local7:Array; var _local8:Number; if (mc._endpoint == null){ _local7 = []; _local8 = 0; while (_local8 < arguments.length) { _local7.push(arguments[_local8]); _local8++; }; mc._queue.push(_local7); return; }; mc._id = (mc._id + 1); _local5 = mc._id; mc._callbacks[_local5] = [_arg2, ((_arg3) || (_arg2))]; _local6 = new LocalConnection(); _local6.send(mc._endpoint, "rpc", _local5, _arg1); }; mc._callbacks = {}; mc._callbacks[0] = [mc, "_didConnect"]; lv.st = getTimer(); req = new URLRequest((server + ".swf")); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader = new Loader(); loader.load(req); mc.addChild(loader); mc._mochiad_com = loader; return (mc); } public static function showPreGameAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_msec:Number; var ad_timeout:Number; var fadeout_time:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var bar:MovieClip; var bar_color:Number; var bar_background:Number; var bar_outline:Number; var backing_mc:MovieClip; var backing:Object; var inside_mc:MovieClip; var inside:Object; var outline_mc:MovieClip; var outline:Object; var complete:Boolean; var unloaded:Boolean; var f:Function; var r:MovieClip; var options = _arg1; DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, ad_started:function ():void{ this.clip.stop(); }, ad_finished:function ():void{ this.clip.play(); }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; ad_msec = 11000; ad_timeout = options.ad_timeout; delete options.ad_timeout; fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ var fn:Function; fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.x = (w * -0.5); chk.y = (h * -0.5); bar = createEmptyMovieClip(chk, "_mochiad_bar", 4); bar.x = 10; bar.y = (h - 20); bar_color = options.color; delete options.color; bar_background = options.background; delete options.background; bar_outline = options.outline; delete options.outline; backing_mc = createEmptyMovieClip(bar, "_outline", 1); backing = backing_mc.graphics; 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(); inside_mc = createEmptyMovieClip(bar, "_inside", 2); inside = inside_mc.graphics; inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo((w - 20), 0); inside.lineTo((w - 20), 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside_mc.scaleX = 0; outline_mc = createEmptyMovieClip(bar, "_outline", 3); outline = outline_mc.graphics; 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 ():void{ var _local1:Number; _local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; f = function (_arg1:Event):void{ complete = true; if (unloaded){ MochiAd.unload(clip); }; }; clip.loaderInfo.addEventListener(Event.COMPLETE, f); if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.unload(clip); }; }; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Object; var _local3:Number; var _local4:Boolean; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Object; var _local10:Number; var _local11:Number; if (!this.parent.parent){ delete this["onEnterFrame"]; return; }; _local1 = this.parent.parent.root; _local2 = this.parent._mochiad_ctr; _local3 = (getTimer() - this.started); _local4 = false; _local5 = _local1.loaderInfo.bytesTotal; _local6 = _local1.loaderInfo.bytesLoaded; _local7 = ((100 * _local6) / _local5); _local8 = ((100 * _local3) / chk.ad_msec); _local9 = this._mochiad_bar._inside; _local10 = Math.min(100, Math.min(((_local7) || (0)), _local8)); _local10 = Math.max(this.last_pcnt, _local10); this.last_pcnt = _local10; _local9.scaleX = (_local10 * 0.01); if (!chk.showing){ _local11 = _local2.loaderInfo.bytesTotal; if ((((_local11 > 0)) || (("number" == "undefined")))){ chk.showing = true; chk.started = getTimer(); } else { if (_local3 > chk.ad_timeout){ _local4 = true; }; }; }; if ((((_local3 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){ _local4 = true; }; if (((complete) && (_local4))){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function showPreloaderAd(_arg1:Object):void{ MochiAd.showPreGameAd(_arg1); } public static function fetchHighScores(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{ var _local4:MovieClip; _local4 = MochiAd._loadCommunicator({clip:_arg1.clip, id:_arg1.id}); if (!_local4){ return (false); }; _local4.doSend(["fetchHighScores", _arg1], _arg2, _arg3); return (true); } public static function doOnEnterFrame(_arg1:MovieClip):void{ var f:Function; var mc = _arg1; f = function (_arg1:Object):void{ if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){ mc.onEnterFrame(); } else { mc.removeEventListener(Event.ENTER_FRAME, f); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package
Section 17
//particle (particle) package { import flash.display.*; public dynamic class particle extends MovieClip { } }//package
Section 18
//soundy (soundy) package { import flash.media.*; public dynamic class soundy extends Sound { } }//package
Section 19
//star (star) package { import flash.display.*; public dynamic class star extends MovieClip { } }//package

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClip {particle}Uses:1
Symbol 3 GraphicUsed by:6
Symbol 4 FontUsed by:5 8 16 22 23 28 30 33 36 42 46 47 48 65 66 73 74 75 76 77 78 81 83 84 85 86 89 90 91
Symbol 5 EditableTextUses:4Used by:6
Symbol 6 MovieClip {healPlat}Uses:3 5Used by:Timeline
Symbol 7 GraphicUsed by:9
Symbol 8 EditableTextUses:4Used by:9
Symbol 9 MovieClip {blockPlatform}Uses:7 8Used by:Timeline
Symbol 10 GraphicUsed by:13
Symbol 11 GraphicUsed by:12 13
Symbol 12 MovieClipUses:11Used by:13
Symbol 13 MovieClip {bric}Uses:10 11 12Used by:Timeline
Symbol 14 GraphicUsed by:17
Symbol 15 GraphicUsed by:17
Symbol 16 EditableTextUses:4Used by:17
Symbol 17 MovieClip {enem}Uses:14 15 16Used by:Timeline
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClip {star}Uses:18Used by:Timeline
Symbol 20 Sound {soundy}Used by:95  Timeline
Symbol 21 GraphicUsed by:Timeline
Symbol 22 TextUses:4Used by:Timeline
Symbol 23 TextUses:4Used by:29
Symbol 24 GraphicUsed by:27
Symbol 25 GraphicUsed by:27 29 32
Symbol 26 GraphicUsed by:27
Symbol 27 MovieClip {actuallyFixed_fla.playMaskme_2}Uses:24 25 26Used by:29
Symbol 28 TextUses:4Used by:29
Symbol 29 ButtonUses:23 27 28 25Used by:Timeline
Symbol 30 TextUses:4Used by:32 35
Symbol 31 GraphicUsed by:32
Symbol 32 MovieClip {actuallyFixed_fla.playMask_4}Uses:31 30 25Used by:35
Symbol 33 TextUses:4Used by:35
Symbol 34 GraphicUsed by:35
Symbol 35 ButtonUses:30 32 33 34Used by:Timeline
Symbol 36 TextUses:4Used by:41
Symbol 37 GraphicUsed by:40
Symbol 38 GraphicUsed by:40
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClip {actuallyFixed_fla.optionMask_6}Uses:37 38 39Used by:41
Symbol 41 ButtonUses:36 40Used by:Timeline
Symbol 42 TextUses:4Used by:Timeline
Symbol 43 GraphicUsed by:44
Symbol 44 MovieClip {actuallyFixed_fla.dialog_7}Uses:43Used by:Timeline
Symbol 45 GraphicUsed by:54
Symbol 46 TextUses:4Used by:54
Symbol 47 TextUses:4Used by:54
Symbol 48 TextUses:4Used by:54
Symbol 49 GraphicUsed by:51
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClip {actuallyFixed_fla.checkbox_10}Uses:49 50Used by:54
Symbol 52 GraphicUsed by:54
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClip {actuallyFixed_fla.options_9}Uses:45 46 47 48 51 52 53Used by:Timeline
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClipUses:55Used by:Timeline
Symbol 57 GraphicUsed by:Timeline
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClipUses:58Used by:Timeline
Symbol 60 GraphicUsed by:62
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClip {actuallyFixed_fla.border_13}Uses:60 61Used by:Timeline
Symbol 63 GraphicUsed by:64
Symbol 64 MovieClipUses:63Used by:Timeline
Symbol 65 EditableTextUses:4Used by:Timeline
Symbol 66 EditableTextUses:4Used by:Timeline
Symbol 67 GraphicUsed by:71
Symbol 68 GraphicUsed by:69
Symbol 69 MovieClipUses:68Used by:71
Symbol 70 GraphicUsed by:71
Symbol 71 MovieClip {actuallyFixed_fla.healthBar_20}Uses:67 69 70Used by:Timeline
Symbol 72 GraphicUsed by:Timeline
Symbol 73 TextUses:4Used by:Timeline
Symbol 74 EditableTextUses:4Used by:Timeline
Symbol 75 EditableTextUses:4Used by:Timeline
Symbol 76 TextUses:4Used by:80
Symbol 77 TextUses:4Used by:80
Symbol 78 TextUses:4Used by:80
Symbol 79 GraphicUsed by:80
Symbol 80 ButtonUses:76 77 78 79Used by:Timeline
Symbol 81 TextUses:4Used by:82
Symbol 82 ButtonUses:81Used by:Timeline
Symbol 83 TextUses:4Used by:Timeline
Symbol 84 TextUses:4Used by:88
Symbol 85 TextUses:4Used by:88
Symbol 86 TextUses:4Used by:88
Symbol 87 GraphicUsed by:88
Symbol 88 ButtonUses:84 85 86 87Used by:Timeline
Symbol 89 TextUses:4Used by:93
Symbol 90 TextUses:4Used by:93
Symbol 91 TextUses:4Used by:93
Symbol 92 GraphicUsed by:93
Symbol 93 ButtonUses:89 90 91 92Used by:Timeline
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClipUses:94 20Used by:Timeline

Instance Names

"playBtn"Frame 9Symbol 29 Button
"instr"Frame 9Symbol 35 Button
"optnbtn"Frame 9Symbol 41 Button
"dialog"Frame 9Symbol 44 MovieClip {actuallyFixed_fla.dialog_7}
"options"Frame 9Symbol 54 MovieClip {actuallyFixed_fla.options_9}
"bg"Frame 10Symbol 56 MovieClip
"end"Frame 10Symbol 59 MovieClip
"border"Frame 10Symbol 62 MovieClip {actuallyFixed_fla.border_13}
"ball"Frame 10Symbol 64 MovieClip
"bad"Frame 10Symbol 17 MovieClip {enem}
"platform1"Frame 10Symbol 9 MovieClip {blockPlatform}
"healup"Frame 10Symbol 6 MovieClip {healPlat}
"platform2"Frame 10Symbol 9 MovieClip {blockPlatform}
"platform3"Frame 10Symbol 9 MovieClip {blockPlatform}
"platform4"Frame 10Symbol 9 MovieClip {blockPlatform}
"platform5"Frame 10Symbol 9 MovieClip {blockPlatform}
"platform6"Frame 10Symbol 9 MovieClip {blockPlatform}
"pointsText"Frame 10Symbol 65 EditableText
"levelText"Frame 10Symbol 66 EditableText
"hlth"Frame 10Symbol 71 MovieClip {actuallyFixed_fla.healthBar_20}
"scoretxt"Frame 11Symbol 74 EditableText
"howdido"Frame 11Symbol 75 EditableText
"backBtn"Frame 11Symbol 80 Button
"hs"Frame 11Symbol 82 Button
"no"Frame 12Symbol 88 Button
"yes"Frame 12Symbol 93 Button
"makeHere"Symbol 13 MovieClip {bric} Frame 11Symbol 12 MovieClip
"cb1"Symbol 54 MovieClip {actuallyFixed_fla.options_9} Frame 2Symbol 51 MovieClip {actuallyFixed_fla.checkbox_10}
"cb2"Symbol 54 MovieClip {actuallyFixed_fla.options_9} Frame 2Symbol 51 MovieClip {actuallyFixed_fla.checkbox_10}
"bar"Symbol 71 MovieClip {actuallyFixed_fla.healthBar_20} Frame 1Symbol 69 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.
Protect (24)Timeline Frame 131 bytes "..$1$cl$0uGjLeUe86sG2k1N8E5TR1."

Labels

"sad"Symbol 6 MovieClip {healPlat} Frame 2
"happy"Symbol 6 MovieClip {healPlat} Frame 22
"boom"Symbol 9 MovieClip {blockPlatform} Frame 22
"boom"Symbol 17 MovieClip {enem} Frame 13




http://swfchan.com/14/69117/info.shtml
Created: 10/4 -2019 16:21:32 Last modified: 10/4 -2019 16:21:32 Server time: 14/05 -2024 20:32:43