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

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

BANG.swf

This is the info page for
Flash #48569

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


Text
<p align="center"><font face="BadaBoom BB" size="35" color="#4d89c4" letterSpacing="0.000000" kerning="1">00</font></p>

<p align="center"><font face="BadaBoom BB" size="34" color="#4d89c4" letterSpacing="2.000000" kerning="1">LV</font></p>

<p align="center"><font face="BadaBoom BB" size="34" color="#4d89c4" letterSpacing="2.000000" kerning="1">SCORE</font></p>

<p align="left"></p>

<p align="center"></p>

<p align="center"><font face="BadaBoom BB" size="35" color="#ffffff" letterSpacing="0.000000" kerning="1">+00</font></p>

DESTROY THE PLANET!!!

<p align="center"><font face="BadaBoom BB" size="30" color="#99cc00" letterSpacing="0.000000" kerning="1">XXX</font></p>

<p align="center"><font face="BadaBoom BB" size="54" color="#4d89c4" letterSpacing="0.000000" kerning="1">READY?</font></p>

<p align="center"><font face="BadaBoom BB" size="54" color="#4d89c4" letterSpacing="0.000000" kerning="1">3</font></p>

<p align="center"><font face="BadaBoom BB" size="54" color="#4d89c4" letterSpacing="0.000000" kerning="1">2</font></p>

<p align="center"><font face="BadaBoom BB" size="54" color="#4d89c4" letterSpacing="0.000000" kerning="1">1</font></p>

<p align="center"><font face="BadaBoom BB" size="54" color="#4d89c4" letterSpacing="0.000000" kerning="1">DESTROY!</font></p>

EVERYTHING,
BY EVERYONE.

<p align="left"><font face="Berlin Sans FB Demi" size="16" color="#99ff66" letterSpacing="0.000000" kerning="1"><b>[m] Mute Music</b></font></p>

<p align="left"><font face="Berlin Sans FB Demi" size="16" color="#99ff66" letterSpacing="0.000000" kerning="1"><b>[s] Mute Sound</b></font></p>

MORE GAMES!

HIGHSCORES!

Design and programming by Joshua Tomar Art by Mike Morin

Instructions

PLAY!

SUBMIT

<p align="center"><font face="BadaBoom BB" size="96" color="#ffffff" letterSpacing="0.000000" kerning="1">GAME OVER</font></p>

<p align="center"></p>

<p align="center"><font face="BadaBoom BB" size="37" color="#ffffff" letterSpacing="8.000000" kerning="1">YOUR SCORE IS</font></p>

Play Again

MORE GAMES

<p align="center"><font face="BadaBoom BB" size="96" color="#ffffff" letterSpacing="0.000000" kerning="1">GAME OVER</font></p>

<p align="center"></p>

<p align="center"><font face="BadaBoom BB" size="37" color="#ffffff" letterSpacing="8.000000" kerning="1">YOUR SCORE IS</font></p>

HOW TO PLAY

BY CLICKING

THEN, TO FIRE, PULL BACK AND RELEASE THE MOUSE

YOU WILL CREATE ASTEROIDS

LIKE A SLINGSHOT!

IN AN EMPTY AREA OF SPACE

YOUR GOAL IS TO HIT THE BANGOLIANS

AND THEN DESTROY THEIR HOME PLANETS

BONUSESu

MENU

But WATCH OUT FOR SPACE BEAMS!

tGAMEPLAY

BONUSES

-DESTROYING MULTIPLE BANGOLIANS WITH A SINGLE ASTEROID
earns you a big fat MULTI-KILL BONUS

-GET A 3X MULTIPLIER BY PERFORMING A
GRAVITY ESCAPE AFTER GETTING A KILL

-IF YOU HIT A SPACE BEAM after getting a kill,
you will still get a 1.5X multiplier with a
partial GRAVITY ESCAPE

-CAREFUL THOUGH, HITTING A SPACE BEAM WITHOUT
ANY KILLS WILL TAKE 5 SECONDS OFF YOUR TIMER!

<p align="center"><font face="BadaBoom BB" size="54" color="#ffffff" letterSpacing="0.000000" kerning="1">THIS GAME IS STOLEN!!!!</font></p><p align="center"><font face="BadaBoom BB" size="54" color="#ffffff" letterSpacing="0.000000" kerning="1">report to owner: tomamoto@gmail.com</font></p>

<p align="center"><font face="BadaBoom BB" size="54" color="#ffffff" letterSpacing="0.000000" kerning="1">THIS GAME IS STOLEN!!!!</font></p><p align="center"><font face="BadaBoom BB" size="54" color="#ffffff" letterSpacing="0.000000" kerning="1">report to owner: tomamoto@gmail.com</font></p>

THIS GAME IS STOLEN!!!!
report to owner:
tomamoto@gmail.com

ActionScript [AS3]

Section 1
//asteroid_burnup_45 (bang_mochi_ng_fla.asteroid_burnup_45) package bang_mochi_ng_fla { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class asteroid_burnup_45 extends MovieClip { public function asteroid_burnup_45(){ addFrameScript(63, frame64); } function frame64(){ stop(); } } }//package bang_mochi_ng_fla
Section 2
//bonus_54 (bang_mochi_ng_fla.bonus_54) package bang_mochi_ng_fla { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class bonus_54 extends MovieClip { public var b:MovieClip; public function bonus_54(){ addFrameScript(29, frame30); } function frame30(){ stop(); } } }//package bang_mochi_ng_fla
Section 3
//message_34 (bang_mochi_ng_fla.message_34) package bang_mochi_ng_fla { import flash.display.*; import flash.text.*; public dynamic class message_34 extends MovieClip { public var mess:TextField; } }//package bang_mochi_ng_fla
Section 4
//mute_7 (bang_mochi_ng_fla.mute_7) package bang_mochi_ng_fla { import flash.display.*; import flash.text.*; public dynamic class mute_7 extends MovieClip { public var pete:TextField; public var texas:TextField; } }//package bang_mochi_ng_fla
Section 5
//NG_AD_OBJECT_3 (bang_mochi_ng_fla.NG_AD_OBJECT_3) package bang_mochi_ng_fla { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class NG_AD_OBJECT_3 extends MovieClip { public var ng_ad:MovieClip; public var NG_Button:SimpleButton; public function NG_AD_OBJECT_3(){ addFrameScript(0, frame1); } public function loadNGSite(_arg1:Event){ NewgroundsAPI.loadNewgrounds(); } public function startAd(_arg1){ var _local2:URLLoader; _local2 = new URLLoader(new URLRequest(_arg1)); _local2.addEventListener(Event.COMPLETE, ad_Loaded); } function frame1(){ Security.allowDomain("70.87.128.99"); Security.allowInsecureDomain("70.87.128.99"); Security.allowDomain("ads.shizmoo.com"); Security.allowInsecureDomain("ads.shizmoo.com"); Security.allowDomain("www.cpmstar.com"); Security.allowInsecureDomain("www.cpmstar.com"); Security.allowDomain("server.cpmstar.com"); Security.allowInsecureDomain("server.cpmstar.com"); if (NewgroundsAPI.getAdURL()){ startAd(NewgroundsAPI.getAdURL()); }; NewgroundsAPI.addEventListener(NewgroundsAPI.ADS_APPROVED, startAd); NG_Button.addEventListener(MouseEvent.CLICK, loadNGSite); stop(); } public function ad_Loaded(_arg1:Event){ var _local2:*; var _local3:Loader; _local2 = String(_arg1.target.data); _local3 = new Loader(); _local3.load(new URLRequest(_local2)); ng_ad.addChild(_local3); } } }//package bang_mochi_ng_fla
Section 6
//NG_TANK_5 (bang_mochi_ng_fla.NG_TANK_5) package bang_mochi_ng_fla { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class NG_TANK_5 extends MovieClip { public var NG_Logo:SimpleButton; public function NG_TANK_5(){ addFrameScript(0, frame1); } public function loadNGSite(_arg1:Event){ NewgroundsAPI.loadNewgrounds(); } function frame1(){ NG_Logo.addEventListener(MouseEvent.CLICK, loadNGSite); } } }//package bang_mochi_ng_fla
Section 7
//planet_50 (bang_mochi_ng_fla.planet_50) package bang_mochi_ng_fla { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class planet_50 extends MovieClip { public var myBoom; public function planet_50(){ addFrameScript(0, frame1, 33, frame34); } function frame1(){ myBoom = new planetExplode(); if (Game.sMuted == false){ myBoom.play(); }; } function frame34(){ stop(); } } }//package bang_mochi_ng_fla
Section 8
//Timeline_1 (bang_mochi_ng_fla.Timeline_1) package bang_mochi_ng_fla { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class Timeline_1 extends MovieClip { public const FRAME_RATE_ADJUST:Boolean = true; public const LOADER_FRAME_RATE:Number = 30; public const AUTO_PLAY:Boolean = false; public var bar:MovieClip; public var loadingComplete:Boolean; public var movieFrameRate:Number; public var initialized:Boolean; public function Timeline_1(){ addFrameScript(0, frame1, 36, frame37); } public function init():void{ if (initialized){ return; }; gotoAndStop(1); movieFrameRate = 0; if (((FRAME_RATE_ADJUST) && (stage))){ movieFrameRate = stage.frameRate; stage.frameRate = LOADER_FRAME_RATE; }; initialized = true; stop(); if (((root) && ((root is MovieClip)))){ MovieClip(root).stop(); }; loadingComplete = false; addEventListener(Event.ENTER_FRAME, enterFrameHandler, false, 0, true); if (meetsVersion([9, 0, 28, 0])){ addEventListener(Event.REMOVED_FROM_STAGE, cleanup, false, 0, true); }; enterFrameHandler(); } public function enterFrameHandler(_arg1:Event=null):void{ var _local2:Number; if (((((!(movieFrameRate)) && (FRAME_RATE_ADJUST))) && (stage))){ movieFrameRate = stage.frameRate; stage.frameRate = LOADER_FRAME_RATE; }; if (!loadingComplete){ _local2 = 0; if (loaderInfo){ _local2 = (loaderInfo.bytesLoaded / loaderInfo.bytesTotal); }; if (bar){ bar.scaleX = _local2; }; if (_local2 == 1){ loadingComplete = true; if (AUTO_PLAY){ startMovie(); } else { gotoAndPlay("loaded"); }; }; }; } public function meetsVersion(_arg1:Array):Boolean{ var _local2:Array; var _local3:uint; _local2 = String(Capabilities.version.split(" ")[1]).split(","); _local3 = 0; while (_local3 < _arg1.length) { if (uint(_local2[_local3]) > _arg1[_local3]){ return (true); }; if (uint(_local2[_local3]) < _arg1[_local3]){ return (false); }; _local3++; }; return (true); } function frame1(){ initialized = false; init(); } function frame37(){ startMovie(); stop(); } public function ngButtonClickHandler(_arg1:Event):void{ navigateToURL(new URLRequest("http://www.newgrounds.com"), "_blank"); } public function cleanup(_arg1:Event=null){ if (initialized){ removeEventListener(Event.ENTER_FRAME, enterFrameHandler); if (meetsVersion([9, 0, 28, 0])){ removeEventListener(Event.REMOVED_FROM_STAGE, cleanup); }; if (movieFrameRate){ stage.frameRate = movieFrameRate; movieFrameRate = 0; }; }; initialized = false; } public function startMovie():void{ cleanup(); if (((root) && ((root is MovieClip)))){ MovieClip(root).gotoAndPlay(3); }; dispatchEvent(new Event(Event.COMPLETE)); } } }//package bang_mochi_ng_fla
Section 9
//Tween5_55 (bang_mochi_ng_fla.Tween5_55) package bang_mochi_ng_fla { import flash.display.*; import flash.text.*; public dynamic class Tween5_55 extends MovieClip { public var bonus_text:TextField; } }//package bang_mochi_ng_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 (_slot1.boardID != null){ options.boardID = _slot1.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{ _slot1.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.utils.*; import flash.net.*; 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 clickMovie(_arg1:String, _arg2:Function):MovieClip{ var _local3:Array; var _local4:int; var _local5:Array; var _local6:Array; var _local7:MovieClip; var _local8:LocalConnection; var _local9:String; var _local10:ByteArray; var _local11:ByteArray; var _local12:uint; var _local13:uint; var _local14:Loader; _local3 = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23]; _local5 = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3]; _local6 = [0, 64, 0, 0, 0]; _local7 = new MovieClip(); _local8 = new LocalConnection(); _local9 = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().getTime())); _local8 = new LocalConnection(); _local7.lc = _local8; _local7.click = _arg2; _local8.client = _local7; _local8.connect(_local9); _local10 = new ByteArray(); _local11 = new ByteArray(); _local11.endian = Endian.LITTLE_ENDIAN; _local11.writeShort(1); _local11.writeUTFBytes(((_arg1 + " ") + _local9)); _local11.writeByte(0); _local12 = ((_local3.length + _local11.length) + 4); _local13 = (_local12 + 35); _local10.endian = Endian.LITTLE_ENDIAN; _local10.writeUTFBytes("FWS"); _local10.writeByte(8); _local10.writeUnsignedInt(_local13); for each (_local4 in _local5) { _local10.writeByte(_local4); }; _local10.writeUnsignedInt(_local12); _local10.writeByte(136); _local10.writeShort(_local11.length); _local10.writeBytes(_local11); for each (_local4 in _local3) { _local10.writeByte(_local4); }; for each (_local4 in _local6) { _local10.writeByte(_local4); }; _local14 = new Loader(); _local14.loadBytes(_local10); _local7.addChild(_local14); return (_local7); } 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, _slot1.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{ var netup:Boolean; var vars:Object; var s:String; var i:Number; var x:String; var req:URLRequest; var loader:Loader; var err:Function; var complete:Function; var setURL:Function; var url = _arg1; var burl = _arg2; var btn = _arg3; var onClick = _arg4; vars = new Object(); vars["mav"] = getVersion(); vars["swfv"] = "9"; vars["swfurl"] = btn.loaderInfo.loaderURL; vars["fv"] = Capabilities.version; vars["os"] = Capabilities.os; vars["lang"] = Capabilities.language; vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY); s = "?"; i = 0; for (x in vars) { if (i != 0){ s = (s + "&"); }; i = (i + 1); s = (((s + x) + "=") + escape(vars[x])); }; req = new URLRequest("http://x.mochiads.com/linkping.swf"); loader = new Loader(); err = function (_arg1:Object):void{ netup = false; _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; complete = function (_arg1:Object):void{ netup = true; _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.load(req); setURL = function ():void{ var _local1:String; var _local2:DisplayObject; if (netup){ _local1 = (url + s); } else { _local1 = burl; }; _local2 = clickMovie(_local1, onClick); btn.addChild(_local2); _local2.scaleX = (0.01 * btn.width); _local2.scaleY = (0.01 * btn.height); }; setTimeout(setURL, 1500); } public static function getVersion():String{ return ("1.35"); } 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, _slot1.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, _slot1.onStatus); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL}); _rcvChannel.addEventListener(StatusEvent.STATUS, _slot1.onStatus); _clip.onReceive = function (_arg1:Object):void{ var cb:String; var cblst:Object; var method:*; var methodName:String; var obj:Object; var pkg = _arg1; cb = pkg.callbackID; cblst = this.client._callbacks[cb]; if (!cblst){ return; }; method = cblst.callbackMethod; methodName = ""; obj = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ methodName = method; 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(((("Error invoking callback method '" + methodName) + "': ") + error.toString())); }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { trace(("Error invoking method on object: " + error.toString())); }; }; }; delete this.client._callbacks[cb]; }; _clip.onError = function ():void{ _slot1.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{ _slot1.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 (((!((args.options == null))) && (!((args.options.onError == null))))){ args.options.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((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 (!_slot1.isNetworkAvailable()){ return (null); }; _slot1.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."); _slot1.disconnect(); _slot1.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 (_slot1.clip != null){ if (_slot1.childClip != null){ try { if (_slot1.clip.numChildren > 1){ _slot1.clip.setChildIndex(_slot1.childClip, (_slot1.clip.numChildren - 1)); }; } catch(errorObject:Error) { trace("Warning: Depth sort error."); _container.removeEventListener(Event.ENTER_FRAME, _slot1.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){ _slot1.onError = onError; } else { if (_slot1.onError == null){ _slot1.onError = function (_arg1:String):void{ trace(_arg1); }; }; }; } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{ var mc:MovieClip; var parent = _arg1; var name = _arg2; var depth = _arg3; var doAdd = _arg4; mc = new MovieClip(); if (doAdd){ if (((false) && (depth))){ parent.addChildAt(mc, depth); } else { parent.addChild(mc); }; }; try { parent[name] = mc; } catch(e:Error) { throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; mc["_name"] = name; return (mc); } public static function connectWait(_arg1:TimerEvent):void{ if ((getTimer() - _startTime) > 10000){ if (!_connected){ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); _slot1.disconnect(); _slot1.onError("IOError"); }; _timer.stop(); }; } } }//package mochi
Section 12
//ad (ad) package { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class ad extends MovieClip { public function ad(){ addFrameScript(0, frame1); } function frame1(){ MochiAd.showPreGameAd({clip:root, id:"450b6948d2dc4473", res:"800x600"}); } } }//package
Section 13
//Asteroid (Asteroid) package { import flash.display.*; import flash.events.*; public class Asteroid extends MovieClip { public var mouseHold:Boolean;// = false public var myScale:Number;// = 0.3 public var difX:Number; public var levBonus:Number;// = 1 var gDifX:Number; public var multikill; public var difY:Number; var gdX:Number; public var dFromCenter:Number; var _exitY:Number; public var burnUp_MC:MovieClip; var _entryX:Number; public var _speed:Number;// = 0 public var bonus:Number;// = 0 var gdY:Number; var dY:Number; var dX:Number; var myRetic; var _exitX:Number; var _entryY:Number; var passes:uint; var gAngle:Number; public var burning:Boolean;// = false public var isOut:Boolean;// = false public var kills:int;// = 0 var angle:Number; var gDifY:Number; public function Asteroid():void{ mouseHold = false; isOut = false; myScale = 0.3; _speed = 0; burning = false; kills = 0; bonus = 0; levBonus = 1; myRetic = new retic(); super(); addFrameScript(248, frame249, 260, frame261, 298, frame299); this.contextMenu = Game.myMenu; this.addEventListener(Event.ADDED_TO_STAGE, initialize); this.addEventListener(Event.REMOVED_FROM_STAGE, terminate); } function moveIt(_arg1:Event):void{ passes++; angle = Math.atan2(difY, difX); this.rotation = ((angle * (180 / Math.PI)) - 90); dX = (Math.cos(angle) * _speed); dY = (Math.sin(angle) * _speed); _entryX = this.x; _entryY = this.y; this.x = (this.x + dX); this.y = (this.y + dY); dFromCenter = Math.sqrt((Math.pow((this.x - Game.theGround.x), 2) + Math.pow((this.y - Game.theGround.y), 2))); gDifX = (Game.theGround.x - this.x); gDifY = (Game.theGround.y - this.y); gAngle = Math.atan2(gDifY, gDifX); gdX = ((Math.cos(gAngle) * Game._gravity) * ((stage.stageWidth - dFromCenter) / 500)); gdY = ((Math.sin(gAngle) * Game._gravity) * ((stage.stageWidth - dFromCenter) / 500)); this.x = (this.x + gdX); this.y = (this.y + gdY); _exitX = this.x; _exitY = this.y; if ((((((((((((this.x < -20)) || ((this.x > (stage.stageWidth + 20))))) || ((this.y < -20)))) || ((this.y > (stage.stageHeight + 20))))) || (((Math.abs(difX) + Math.abs(difY)) < 3)))) || ((passes > 300)))){ this.removeEventListener(Event.ENTER_FRAME, moveIt); if (burning == false){ bonus = 3; this.gotoAndPlay("burnUp"); }; if (mouseHold == true){ this.removeEventListener(Event.ENTER_FRAME, build); }; }; difX = Math.round((_exitX - _entryX)); difY = Math.round((_exitY - _entryY)); } function slingshot():void{ _exitX = this.x; _exitY = this.y; stage.removeChild(myRetic); difX = (_entryX - _exitX); difY = (_entryY - _exitY); if (burning == false){ _speed = (Math.abs((difX * 0.075)) + (Math.abs(difY) * 0.075)); }; if (_speed > 35){ _speed = 35; }; this.addEventListener(Event.ENTER_FRAME, moveIt); } function released(_arg1:MouseEvent):void{ mouseHold = false; this.removeEventListener(Event.ENTER_FRAME, build); stage.removeEventListener(MouseEvent.MOUSE_UP, released); dFromCenter = Math.sqrt((Math.pow((this.x - Game.theGround.x), 2) + Math.pow((this.y - Game.theGround.y), 2))); slingshot(); } function frame299(){ stop(); if (this.isOut == true){ stage.removeChild(this); }; } function initialize(_arg1:Event):void{ this.gotoAndPlay(1); burning = false; kills = 0; bonus = 1; isOut = true; this.x = stage.mouseX; this.y = stage.mouseY; _entryX = this.x; _entryY = this.y; myRetic.x = this.x; myRetic.y = this.y; myRetic.scaleX = 1; myRetic.scaleY = 1; stage.addChild(myRetic); this.scaleX = myScale; this.scaleY = myScale; mouseHold = true; _speed = 0; this.removeEventListener(Event.ADDED, initialize); this.addEventListener(Event.ENTER_FRAME, build); } public function build(_arg1:Event):void{ if (mouseHold == true){ stage.addEventListener(MouseEvent.MOUSE_UP, released); this.x = parent.mouseX; this.y = parent.mouseY; difX = (_entryX - this.x); difY = (_entryY - this.y); angle = Math.atan2(difY, difX); this.rotation = ((angle * (180 / Math.PI)) - 90); }; } function terminate(_arg1:Event):void{ if (myRetic.parent == stage){ stage.removeChild(myRetic); }; if (Game.level > 9){ levBonus = (1 + (0.5 * (Game.level - 9))); }; this.removeEventListener(Event.ENTER_FRAME, build); stage.removeEventListener(MouseEvent.MOUSE_UP, released); this.removeEventListener(Event.ENTER_FRAME, moveIt); passes = 0; isOut = false; } function frame249(){ gotoAndPlay(1); } function frame261(){ burning = true; multikill = new multiKill(); Game.myBoard.adds(((((Math.pow(2, kills) * kills) * 100) * bonus) * levBonus)); if (mouseHold == true){ this.removeEventListener(Event.ENTER_FRAME, build); }; Game.turbo.bm.mess.text = ""; if (Game.turbo.parent == stage){ stage.removeChild(Game.turbo); }; if (kills > 0){ Game.turbo.x = this.x; Game.turbo.y = this.y; if ((((((((this.x < 100)) || ((this.y < 60)))) || ((this.x > (stage.stageWidth - 100))))) || ((this.y > (stage.stageHeight - 60))))){ Game.turbo.x = Game.theGround.x; Game.turbo.y = Game.theGround.y; }; if (kills > 1){ Game.turbo.bm.mess.text = (String(kills) + "X MULTI-KILL"); if (Game.sMuted == false){ multikill.play(); }; }; if (bonus == 1.5){ Game.turbo.bm.mess.text = (String(kills) + "X PARTIAL GRAVITY ESCAPE"); }; if (bonus == 3){ Game.turbo.bm.mess.text = (String(kills) + "X GRAVITY ESCAPE"); }; stage.addChild(Game.turbo); Game.turbo.gotoAndPlay(2); }; } } }//package
Section 14
//Beam (Beam) package { import flash.display.*; import flash.events.*; public class Beam extends MovieClip { var bSpeed:Number; var iCount:uint;// = 0 var powered:Boolean;// = false var bType:uint;// = 0 var bDir:int;// = -1 public function Beam():void{ bType = 0; bDir = -1; powered = false; iCount = 0; super(); this.contextMenu = Game.myMenu; this.addEventListener(Event.ADDED_TO_STAGE, makeBeam); this.addEventListener(Event.REMOVED_FROM_STAGE, terminate); } function randomSign():int{ var _local1:Number; _local1 = Math.random(); if (_local1 < 0.5){ return (-1); }; return (1); } function startMoving(_arg1:Event){ iCount++; if ((powered = ((true) && ((iCount >= 80))))){ iCount = 80; this.rotation = (this.rotation + (bDir * bSpeed)); }; } public function terminate(_arg1:Event){ this.removeEventListener(Event.ENTER_FRAME, startMoving); } function makeBeam(_arg1:Event):void{ iCount = 0; powered = false; bDir = randomSign(); bSpeed = (Math.random() + 0.3); if (Game.level >= 6){ bSpeed = ((Math.random() * 2) + 0.3); }; if (Game.level >= 11){ bSpeed = ((Math.random() * 4) + 0.3); }; this.x = Game.theGround.x; this.y = Game.theGround.y; this.rotation = (Math.random() * 360); this.addEventListener(Event.ENTER_FRAME, startMoving); } } }//package
Section 15
//destroy_text (destroy_text) package { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class destroy_text extends MovieClip { public var myDestroy; public function destroy_text(){ addFrameScript(0, frame1, 1, frame2, 89, frame90); } function frame90(){ stage.removeChild(this); } function frame1(){ stop(); } function frame2(){ myDestroy = new destroyThePlanet(); if (Game.sMuted == false){ myDestroy.play(); }; } } }//package
Section 16
//destroyThePlanet (destroyThePlanet) package { import flash.media.*; public dynamic class destroyThePlanet extends Sound { } }//package
Section 17
//explo (explo) package { import flash.media.*; public dynamic class explo extends Sound { } }//package
Section 18
//explosion (explosion) package { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class explosion extends MovieClip { public var finished:Boolean; public function explosion(){ addFrameScript(0, frame1, 22, frame23); } function frame1(){ finished = false; } function frame23(){ this.stop(); stage.removeChild(this); finished = true; delete ??getglobalscope [this]; } } }//package
Section 19
//Game (Game) package { import flash.display.*; import flash.events.*; import mochi.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; public dynamic class Game extends MovieClip { var shaker:uint; public var bonusButton:SimpleButton; public var startButton:MovieClip; public var tutorialButton:MovieClip; public var gPlay:MovieClip; var pAngle:Number; var destroyText:MovieClip; public var scoreButton:MovieClip; public var moreGames:MovieClip; var pDifX:Number; var pDifY:Number; public var mySpaceBG; var planetHP:int; var destroMode:Boolean;// = false public var muteButton:MovieClip; var beamCount:uint;// = 1 public var menu2:SimpleButton; public var finalScore:TextField; public var domain:String; var myExplosion:MovieClip; var pdX:Number; var pdY:Number; public var linkOut:SimpleButton; var mMuted:Boolean;// = false public var myWinner; public var gamePlayButton:SimpleButton; var myUnit:Array; var theTimer:Timer; public var resetButton:SimpleButton; public var menuButton:SimpleButton; var myBeam:Array; public var allowed_site:String; public var subButton:MovieClip; var theCam:MovieClip; var eSound; var dudesOut:uint; var myHP:MovieClip; var wPlaying:Boolean;// = false var pSpeed:Number; var roidCount:uint;// = 5 var unitCount:uint;// = 5 var myAstro:Array; public static var _gameOver:Boolean = false; public static var level:uint = 0; public static var _gravity = 0.75; public static var locked:Boolean = true; public static var theGround:MovieClip = new Ground(); public static var myBoard:MovieClip = new ScoreBoard(); public static var root:DisplayObject; public static var turbo:MovieClip; public static var myMenu:ContextMenu; public static var readied = false; public static var sMuted:Boolean = false; public static var stage:Stage; public static var areYouReady:MovieClip = new readyGo(); public function Game(){ var _local1:uint; var _local2:uint; wPlaying = false; mMuted = false; theTimer = new Timer(1200); roidCount = 5; unitCount = 5; beamCount = 1; destroMode = false; myAstro = new Array(); myUnit = new Array(); myBeam = new Array(); super(); addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 6, frame7, 9, frame10, 10, frame11, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25); _slot1.stage = this.stage; _slot1.root = this; myMenu = new ContextMenu(); stage.addChild(myBoard); myBoard.visible = false; turbo = new Turbo(); _local1 = 0; while (_local1 < roidCount) { myAstro[_local1] = new Asteroid(); _local1++; }; _local2 = 0; while (_local2 < unitCount) { myUnit[_local2] = new Unit(); _local2++; }; } public function exCollide(_arg1:Event):void{ var _local2:uint; _local2 = 0; while (_local2 < unitCount) { if ((((((myUnit[_local2].isAlive == true)) && ((myUnit[_local2].burning == false)))) && (!((HitTest.hitTestObject(myExplosion, myUnit[_local2]) == null))))){ myUnit[_local2].burning = true; myUnit[_local2].gotoAndStop("fire"); myUnit[_local2].unSpeed = (myUnit[_local2].unSpeed * 1.6); }; _local2++; }; if (myExplosion.finished == true){ myExplosion.removeEventListener(Event.ENTER_FRAME, exCollide); }; } public function backToMenu2(_arg1:MouseEvent){ gotoAndStop("gameMenu"); } function poop(_arg1:Event){ if (readied == true){ stage.removeEventListener(Event.ENTER_FRAME, poop); startLevel(); }; } public function collide(_arg1:Event){ var _local2:uint; var _local3:uint; var _local4:uint; var _local5:uint; _local2 = 0; while (_local2 < roidCount) { _local3 = 0; while (_local3 < unitCount) { if ((((((((myUnit[_local3].isAlive == true)) && ((myAstro[_local2].isOut == true)))) && (!((HitTest.hitTestObject(myAstro[_local2], myUnit[_local3]) == null))))) && ((myAstro[_local2].burning == false)))){ if (myAstro[_local2]._speed > 2){ myAstro[_local2].kills++; myUnit[_local3].die(); dudesOut--; }; }; _local3++; }; _local4 = 0; while (_local4 < beamCount) { if ((((((myAstro[_local2].isOut == true)) && (!((HitTest.hitTestObject(myAstro[_local2], myBeam[_local4]) == null))))) && ((myAstro[_local2].burning == false)))){ if (myAstro[_local2].kills == 0){ myBoard.timeBonus(-5); } else { myAstro[_local2].bonus = 1.5; }; myAstro[_local2].burning = true; myAstro[_local2].gotoAndPlay("burnUp"); }; _local4++; }; if ((((((myAstro[_local2].isOut == true)) && (!((HitTest.hitTestObject(myAstro[_local2], theGround) == null))))) && ((myAstro[_local2].burning == false)))){ if (myAstro[_local2]._speed != 0){ explode(_local2); if (destroMode == true){ planetHP = (planetHP - int((myAstro[_local2]._speed / 2))); myHP.x = theGround.x; myHP.y = theGround.y; turbo.gotoAndStop(1); turbo.bm.mess.text = ""; myHP.bar.width = ((planetHP / 100) * myHP.width); stage.addChild(myHP); myHP.gotoAndPlay(1); if (planetHP <= 0){ if (myHP.parent == stage){ stage.removeChild(myHP); }; myBoard.stopTimer(); myBoard.timeBonus(20); stage.removeEventListener(MouseEvent.MOUSE_DOWN, addAsteroid); stage.removeEventListener(Event.ENTER_FRAME, collide); removeRoids(); turbo.gotoAndStop(1); turbo.bm.mess.text = ""; theGround.gotoAndStop("boom"); theTimer.addEventListener(TimerEvent.TIMER, newLevel); theTimer.start(); break; }; }; }; myAstro[_local2]._speed = 0; myAstro[_local2].gotoAndPlay("burnUp"); }; _local2++; }; if ((((((dudesOut <= 0)) && ((destroMode == false)))) && ((locked == false)))){ dudesOut = 0; destroMode = true; _local5 = 0; while (_local5 < beamCount) { stage.removeChild(myBeam[_local5]); _local5++; }; trace("DESTROY!"); destroyText.x = theGround.x; destroyText.y = (theGround.y - 110); stage.addChild(destroyText); destroyText.gotoAndPlay(1); turbo.gotoAndStop(1); turbo.bm.mess.text = ""; }; if (_gameOver == true){ stage.removeEventListener(Event.ENTER_FRAME, collide); gameOver(); }; } public function backToMenu(_arg1:MouseEvent){ gotoAndStop("gameMenu"); } function startLevel(){ level++; myBoard.level_text.text = String(level); if (level > 9){ myBoard.level_text.text = (((String(level) + " (") + String((1 + (0.5 * (level - 9))))) + "X Bonus)"); }; locked = true; beamCount = level; if (level >= 6){ beamCount = (beamCount - 5); }; if (level >= 11){ beamCount = (beamCount - 5); }; destroMode = false; planetHP = 100; theGround.x = ((stage.stageWidth * randomSign()) + (randomSign() * ((Math.random() * 100) + 150))); theGround.y = ((stage.stageHeight * randomSign()) + (randomSign() * ((Math.random() * 100) + 150))); theGround.gotoAndStop(int(Math.ceil((Math.random() * 12)))); this.addChild(theGround); pSpeed = 10; stage.addEventListener(Event.ENTER_FRAME, movePlanet); } function frame10(){ finalScore.text = myBoard.getScore(); myBoard.visible = false; resetButton.addEventListener(MouseEvent.CLICK, reset); subButton.addEventListener(MouseEvent.CLICK, mochiSub); linkOut.addEventListener(MouseEvent.CLICK, gotoNG); subButton.buttonMode = true; } function frame16(){ gotoAndStop("gameMenu"); } function frame18(){ gotoAndStop("gameMenu"); } public function gotoNG(_arg1:MouseEvent){ var _local2:URLRequest; _local2 = new URLRequest("http://www.newgrounds.com"); navigateToURL(_local2, "_blank"); } function frame3(){ allowed_site = "guardbreak.com"; domain = this.root.loaderInfo.url.split("/")[2]; if (domain.indexOf(allowed_site) == (domain.length - allowed_site.length)){ } else { if (domain.indexOf(allowed_site) != (domain.length - allowed_site.length)){ }; }; stop(); myWinner = new winner(); gPlay.play(); if ((((wPlaying == false)) && ((mMuted == false)))){ myWinner.play(0, 999); wPlaying = true; }; startButton.addEventListener(MouseEvent.CLICK, doIt); tutorialButton.addEventListener(MouseEvent.CLICK, tutTime); scoreButton.addEventListener(MouseEvent.CLICK, scoreTime); moreGames.addEventListener(MouseEvent.CLICK, gotoNG); tutorialButton.buttonMode = true; startButton.buttonMode = true; scoreButton.buttonMode = true; moreGames.buttonMode = true; stage.addEventListener(KeyboardEvent.KEY_DOWN, muteWinner); contextMenu = _slot1.myMenu; } function frame4(){ gotoAndPlay("gameMenu"); } function frame15(){ MochiScores.showLeaderboard({boardID:"cb058785e0dde39c"}); } function frame7(){ gotoAndStop(5); } function frame22(){ gotoAndStop(21); } function frame23(){ stop(); } function frame5(){ mySpaceBG = new spaceBG(); mySpaceBG.x = (mySpaceBG.x + (stage.stageWidth / 2)); mySpaceBG.y = (mySpaceBG.y + (stage.stageHeight / 2)); stage.addChildAt(mySpaceBG, 0); } function frame25(){ gotoAndStop("stolen"); } function frame17(){ MochiScores.showLeaderboard({boardID:"cb058785e0dde39c", score:ScoreBoard.score}); } function frame21(){ menu2.addEventListener(MouseEvent.CLICK, backToMenu2); gamePlayButton.addEventListener(MouseEvent.CLICK, toTorial); } public function toBonus(_arg1:MouseEvent){ gotoAndStop("bonusPage"); } function frame24(){ gotoAndStop("stolen"); } public function scoreTime(_arg1:MouseEvent){ gPlay.stop(); gotoAndStop("highScores"); } function removeBeams():void{ var _local1:uint; _local1 = 0; while (_local1 < beamCount) { if (myBeam[_local1].parent == stage){ stage.removeChild(myBeam[_local1]); }; _local1++; }; dudesOut = 0; } public function addAsteroid(_arg1:MouseEvent){ var _local2:uint; _local2 = 0; while (_local2 < roidCount) { if ((((myAstro[_local2].isOut == false)) && ((locked == false)))){ stage.addChild(myAstro[_local2]); break; }; _local2++; }; } function addBeams():void{ var _local1:uint; _local1 = 0; while (_local1 < beamCount) { myBeam[_local1] = new Beam(); stage.addChildAt(myBeam[_local1], 1); _local1++; }; } function frame1(){ this.contextMenu = _slot1.myMenu; stop(); MochiServices.connect("450b6948d2dc4473", root); NewgroundsAPI.linkAPI(this); NewgroundsAPI.connectMovie(3632); } function frame20(){ menuButton.addEventListener(MouseEvent.CLICK, backToMenu); bonusButton.addEventListener(MouseEvent.CLICK, toBonus); } function frame11(){ gotoAndStop("gameOverScreen"); } function movePlanet(_arg1:Event){ if (locked == true){ pDifX = ((stage.stageWidth / 2) - theGround.x); pDifY = ((stage.stageHeight / 2) - theGround.y); if ((((((Math.abs(pDifX) < 100)) && ((Math.abs(pDifY) < 100)))) && ((pSpeed > 1)))){ pSpeed = (pSpeed * 0.9); }; pAngle = Math.atan2(pDifY, pDifX); pdX = (Math.cos(pAngle) * pSpeed); pdY = (Math.sin(pAngle) * pSpeed); theGround.x = (theGround.x + pdX); theGround.y = (theGround.y + pdY); if ((((Math.abs(pDifX) < 2)) && ((Math.abs(pDifY) < 2)))){ stage.removeEventListener(Event.ENTER_FRAME, movePlanet); stage.addEventListener(MouseEvent.MOUSE_DOWN, addAsteroid); stage.addEventListener(Event.ENTER_FRAME, collide); addUnits(); addBeams(); myBoard.startTimer(); }; }; } function explode(_arg1:uint):void{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:*; myExplosion = new explosion(); myExplosion.x = myAstro[_arg1].x; myExplosion.y = myAstro[_arg1].y; myExplosion.scaleX = (myAstro[_arg1]._speed / 40); myExplosion.scaleY = (myAstro[_arg1]._speed / 40); if (myExplosion.scaleX > 1){ myExplosion.scaleX = 1; myExplosion.scaleY = 1; } else { if (myExplosion.scaleX < myAstro[_arg1].scaleX){ myExplosion.scaleX = myAstro[_arg1].scaleX; myExplosion.scaleY = myAstro[_arg1].scaleY; }; }; _local2 = (theGround.x - myExplosion.x); _local3 = (theGround.y - myExplosion.y); _local4 = (Math.atan2(_local3, _local2) * (180 / Math.PI)); myExplosion.rotation = (_local4 - 90); myExplosion.x = (theGround.x - (Math.cos(Math.atan2(_local3, _local2)) * (theGround.width / 2))); myExplosion.y = (theGround.y - (Math.sin(Math.atan2(_local3, _local2)) * (theGround.width / 2))); stage.addChild(myExplosion); _local5 = new SoundTransform(myExplosion.scaleY); if (sMuted == false){ eSound.play(0, 0, _local5); }; myExplosion.addEventListener(Event.ENTER_FRAME, exCollide); } public function mochiSub(_arg1:MouseEvent):void{ subButton.removeEventListener(MouseEvent.CLICK, mochiSub); gotoAndStop("mochiframe"); } function randomSign():int{ var _local1:Number; _local1 = Math.random(); if (_local1 < 0.5){ return (-1); }; return (1); } public function doIt(_arg1:MouseEvent){ gPlay.stop(); gotoAndStop(5); startGame(); } function removeRoids():void{ var _local1:uint; _local1 = 0; while (_local1 < roidCount) { if (myAstro[_local1].parent == stage){ stage.removeChild(myAstro[_local1]); myAstro[_local1].gotoAndStop(0); }; _local1++; }; } function addUnits():void{ var _local1:*; var _local2:uint; _local2 = 0; while (_local2 < unitCount) { myUnit[_local2].unAngle = ((Math.random() * 360) * (Math.PI / 180)); myUnit[_local2].x = (theGround.x - (Math.cos(myUnit[_local2].unAngle) * (theGround.width / 2))); myUnit[_local2].y = (theGround.y - (Math.sin(myUnit[_local2].unAngle) * (theGround.width / 2))); myUnit[_local2].rotation = ((myUnit[_local2].unAngle * (180 / Math.PI)) - 90); myUnit[_local2].scaleX = (myUnit[_local2].scaleX * randomSign()); stage.addChild(myUnit[_local2]); myUnit[_local2].isOut = true; dudesOut++; myUnit[_local2].gotoAndPlay(10); _local2++; }; } public function reset(_arg1:MouseEvent):void{ gotoAndStop(3); myBoard.visible = false; resetButton.removeEventListener(MouseEvent.CLICK, reset); } function removeUnits():void{ var _local1:uint; _local1 = 0; while (_local1 < unitCount) { if (myUnit[_local1].parent == stage){ myUnit[_local1].isOut = false; stage.removeChild(myUnit[_local1]); }; _local1++; }; dudesOut = 0; } function startGame(){ var _local1:ContextMenuItem; var _local2:ContextMenuItem; readied = false; destroyText = new destroy_text(); myHP = new HPCount(); eSound = new explo(); myMenu.hideBuiltInItems(); _local1 = new ContextMenuItem("Designed and Programmed by Joshua Tomar"); myMenu.customItems.push(_local1); _local2 = new ContextMenuItem("Art by Mike Morin"); myMenu.customItems.push(_local2); this.contextMenu = myMenu; level = 0; locked = true; myBoard.reset(); _gameOver = false; myBoard.visible = true; if (sMuted == false){ areYouReady.scaleX = 2.5; areYouReady.scaleY = 2.5; areYouReady.x = (stage.stageWidth / 2); areYouReady.y = (stage.stageHeight / 2); stage.addChild(areYouReady); areYouReady.gotoAndPlay(2); stage.addEventListener(Event.ENTER_FRAME, poop); } else { startLevel(); }; } public function tutTime(_arg1:MouseEvent){ gPlay.stop(); gotoAndStop("tutorialStart"); } function muteWinner(_arg1:KeyboardEvent){ trace(_arg1.keyCode); if (_arg1.keyCode == 77){ if (mMuted == false){ SoundMixer.stopAll(); mMuted = true; wPlaying = false; muteButton.texas.text = "[m] Unmute Music"; } else { mMuted = false; wPlaying = true; myWinner.play(0, 999); muteButton.texas.text = "[m] Mute Music"; }; }; if (_arg1.keyCode == 83){ if (sMuted == false){ sMuted = true; muteButton.pete.text = "[s] Unmute Sounds"; } else { sMuted = false; muteButton.pete.text = "[s] Mute Sounds"; }; }; } function newLevel(_arg1:TimerEvent){ theTimer.addEventListener(TimerEvent.TIMER, newLevel); theTimer.stop(); startLevel(); } function gameOver(){ trace("Game Over"); locked = true; level = 0; stage.removeEventListener(MouseEvent.MOUSE_DOWN, addAsteroid); stage.removeEventListener(Event.ENTER_FRAME, collide); this.removeChild(theGround); stage.removeChild(mySpaceBG); turbo.gotoAndStop(1); turbo.bm.mess.text = ""; if (turbo.parent == stage){ stage.removeChild(turbo); }; if (myHP.parent == stage){ stage.removeChild(myHP); }; removeUnits(); removeBeams(); removeRoids(); gotoAndStop(10); } public function toTorial(_arg1:MouseEvent){ gotoAndStop("tutorialStart"); } } }//package
Section 20
//Ground (Ground) package { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class Ground extends MovieClip { public var planSplode:MovieClip; public function Ground(){ addFrameScript(0, frame1, 1, frame2); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 21
//HitTest (HitTest) package { import flash.geom.*; import flash.display.*; public class HitTest { public static function hitTestObject(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Boolean=true, _arg4:int=0xFF):Rectangle{ var _local5:Rectangle; var _local6:Rectangle; var _local7:Rectangle; var _local8:BitmapData; var _local9:Matrix; var _local10:Rectangle; if (_arg1.hitTestObject(_arg2)){ _local5 = _arg1.getBounds(_arg1.parent); _local6 = _arg2.getBounds(_arg2.parent); _local7 = _local5.intersection(_local6); _local7.x = Math.floor(_local7.x); _local7.y = Math.floor(_local7.y); _local7.width = Math.ceil(_local7.width); _local7.height = Math.ceil(_local7.height); if ((((_local7.width < 1)) || ((_local7.height < 1)))){ return (null); }; if (!_arg3){ return (_local7); }; _local8 = new BitmapData(_local7.width, _local7.height, false); _local9 = _arg1.transform.concatenatedMatrix; _local9.translate(-(_local7.left), -(_local7.top)); _local8.draw(_arg1, _local9, new ColorTransform(1, 1, 1, 1, 0xFF, -255, -255, _arg4)); _local9 = _arg2.transform.concatenatedMatrix; _local9.translate(-(_local7.left), -(_local7.top)); _local8.draw(_arg2, _local9, new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, _arg4), "difference"); _local10 = _local8.getColorBoundsRect(4294967295, 4278255615); if (_local10.width == 0){ return (null); }; _local10.offset(_local7.left, _local7.top); return (_local10); //unresolved jump }; return (null); } } }//package
Section 22
//hole (hole) package { import flash.display.*; public dynamic class hole extends MovieClip { } }//package
Section 23
//HPCount (HPCount) package { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class HPCount extends MovieClip { public var bar:MovieClip; public function HPCount(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 24
//MochiAd (MochiAd) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*; import flash.system.*; public class MochiAd { public static function getVersion():String{ return ("2.7"); } public static function showClickAwayAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_timeout:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var sendHostProgress:Boolean; var options = _arg1; DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{ }, ad_finished:function ():void{ }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = _slot1._parseOptions(options, DEFAULTS); clip = options.clip; ad_timeout = options.ad_timeout; delete options.ad_timeout; if (!_slot1.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ _slot1._cleanup(mc); options.ad_finished(); }; wh = _slot1._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_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; mc.unloadAd = function ():void{ _slot1.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.rpc = function (_arg1:Number, _arg2:Object):void{ _slot1.rpc(clip, _arg1, _arg2); }; sendHostProgress = false; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Number; var _local3:Boolean; var _local4:Number; if (!this.parent){ delete this.onEnterFrame; return; }; _local1 = this.parent._mochiad_ctr; _local2 = (getTimer() - this.started); _local3 = false; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; _local3 = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (this.root == null){ _local3 = true; }; if (_local3){ delete this.onEnterFrame; }; }; doOnEnterFrame(chk); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } 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 unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (_arg1.origFrameRate != undefined){ _arg1.stage.frameRate = _arg1.origFrameRate; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad._containerLCName != undefined){ _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"}); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; 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{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = _slot1._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 (!_slot1.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ _slot1._cleanup(mc); options.ad_finished(); }; wh = _slot1._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; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; _local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { _slot1.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ _slot1.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ _slot1.rpc(clip, _arg1, _arg2); }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Number; var _local3:Boolean; var _local4:Number; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; _local1 = this.parent._mochiad_ctr; _local2 = (getTimer() - this.started); _local3 = false; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; chk.started = getTimer(); _slot1.adShowing(clip); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (_local2 > chk.ad_msec){ _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 _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]; }; }; if (_local3.clip == undefined){ throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite.")); }; _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++; }; }; if (_local3.id == "test"){ trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); }; return (_local3); } public static function _cleanup(_arg1:Object):void{ var idx:Number; var k:String; var lc:LocalConnection; var f:Function; var mc = _arg1; if (("lc" in mc)){ lc = mc.lc; f = function ():void{ try { lc.client = null; lc.close(); } catch(e:Error) { }; }; setTimeout(f, 0); }; idx = DisplayObjectContainer(mc).numChildren; while (idx > 0) { idx = (idx - 1); DisplayObjectContainer(mc).removeChildAt(idx); }; for (k in mc) { delete mc[k]; }; } 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 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 = _slot1._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = _slot1.getVersion(); clip = options.clip; if (!_slot1._isNetworkAvailable()){ return (null); }; try { if (clip._mochiad_loaded){ return (null); }; } catch(e:Error) { throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; depth = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, "_mochiad", depth); wh = _slot1._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; mc.lcName = name; lv.lc = name; lv.st = getTimer(); loader = new Loader(); g = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); _slot1.unload(clip); }; loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g); req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime())); 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 runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{ var _local4:Array; var _local5:Number; _local4 = _arg2.split("."); _local5 = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return (undefined); }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; if (typeof(_arg1[_local4[_local5]]) == "function"){ return (_arg1[_local4[_local5]].apply(_arg1, _arg3)); }; return (undefined); } 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 _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 adShowing(_arg1:Object):void{ _arg1.origFrameRate = _arg1.stage.frameRate; _arg1.stage.frameRate = 30; } public static function getValue(_arg1:Object, _arg2:String):Object{ var _local3:Array; var _local4:Number; _local3 = _arg2.split("."); _local4 = 0; while (_local4 < (_local3.length - 1)) { if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){ return (undefined); }; _arg1 = _arg1[_local3[_local4]]; _local4++; }; return (_arg1[_local3[_local4]]); } public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{ var _local4:Object; var _local5:Object; switch (_arg3.id){ case "setValue": _slot1.setValue(_arg1, _arg3.objectName, _arg3.value); break; case "getValue": _local4 = _slot1.getValue(_arg1, _arg3.objectName); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4); break; case "runMethod": _local5 = _slot1.runMethod(_arg1, _arg3.method, _arg3.args); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5); break; default: trace(("[mochiads rpc] unknown rpc id: " + _arg3.id)); }; } public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Array; var _local5:Number; _local4 = _arg2.split("."); _local5 = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return; }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; _arg1[_local4[_local5]] = _arg3; } 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 sendHostProgress:Boolean; var fn:Function; var r:MovieClip; var options = _arg1; DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }, ad_progress:function (_arg1:Number):void{ }}; options = _slot1._parseOptions(options, DEFAULTS); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){ options.ad_started(); fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); return; }; 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 (!_slot1.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ var fn:Function; _slot1._cleanup(mc); fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; wh = _slot1._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); if (options.no_progress_bar){ bar.visible = false; delete options.no_progress_bar; } else { 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 { _slot1.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; f = function (_arg1:Event):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); complete = true; if (unloaded){ _slot1.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){ _slot1.unload(clip); }; }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ _slot1.rpc(clip, _arg1, _arg2); }; mc.rpcTestFn = function (_arg1:String):Object{ trace(("[MOCHIAD rpcTestFn] " + _arg1)); return (_arg1); }; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; sendHostProgress = false; mc.sendHostLoadProgress = function (_arg1:String):void{ sendHostProgress = true; }; 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)) || (!(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; if (complete){ _local6 = Math.max(1, _local6); _local5 = _local6; }; _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); options.ad_progress(_local10); if (sendHostProgress){ clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7}); if (_local7 == 100){ sendHostProgress = false; }; }; if (!chk.showing){ _local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local11 > 0){ chk.showing = true; chk.started = getTimer(); _slot1.adShowing(clip); } else { if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){ options.ad_failed(); _local4 = true; }; }; }; if (_local3 > chk.ad_msec){ _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{ trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); _slot1.showPreGameAd(_arg1); } public static function showTimedAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); _slot1.showInterLevelAd(_arg1); } 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 { _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package
Section 25
//multiKill (multiKill) package { import flash.media.*; public dynamic class multiKill extends Sound { } }//package
Section 26
//NewgroundsAPI (NewgroundsAPI) package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; public class NewgroundsAPI { public static const ADS_APPROVED:Number = 3; public static const bridge:Sprite = new Sprite(); private static const STAT_NEW_VERSION:Number = 4; private static const STAT_AUTHOR_SITE:Number = 2; private static const GATEWAY_URL:String = "http://www.ngads.com/gateway.php"; private static const NEWGROUNDS_URL:String = "http://www.newgrounds.com"; private static const STAT_CUSTOM_STATS:Number = 50; private static const STAT_MOVIE_VIEWS:Number = 1; private static const STAT_NEWGROUNDS:Number = 3; public static const NEW_VERSION:Number = 2; public static const DENY_HOST:Number = 1; private static var tracker_id:Number; private static var movie_options:Object = new Object(); private static var connected:Boolean; private static var custom_events:Object = new Object(); private static var host:String; private static var linked:Boolean; private static var events:Object = new Object(); private static var debug:Boolean; private static var version:String; private static var custom_links:Object = new Object(); public static function getNewVersionURL(){ return (((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + STAT_NEW_VERSION)); } private static function ReadGatewayData(_arg1:Object){ var _local2:*; var _local3:String; var _local4:*; var _local5:URLLoader; for (_local2 in _arg1) { _arg1[_local2] = unescape(_arg1[_local2]); movie_options[_local2] = _arg1[_local2]; }; if (_arg1["settings_loaded"]){ SendMessage("You have successfully connected to the Newgrounds API gateway!"); SendMessage((("Movie Identified as '" + movie_options["movie_name"]) + "'")); if (movie_options["message"]){ SendMessage(movie_options["message"]); }; if (movie_options["ad_url"]){ SendMessage("Your movie has been approved to run Flash Ads"); if (events[ADS_APPROVED]){ var _local6 = events; _local6[ADS_APPROVED](movie_options["ad_url"]); } else { onAdsApproved(movie_options["ad_url"]); }; }; if (((movie_options["movie_version"]) && (!((String(movie_options["movie_version"]) == String(version)))))){ SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!"); if (events[NEW_VERSION]){ _local6 = events; _local6[NEW_VERSION]({version:movie_options["movie_version"], real_url:getMovieURL(), redirect_url:getNewVersionURL()}); } else { onNewVersionAvailable(movie_options["movie_version"], getMovieURL(), getNewVersionURL()); }; }; if (movie_options["deny_host"]){ SendMessage("You have blocked 'localHost' in your API settings."); SendMessage("If you wish to test your movie you will need to remove this block."); if (events[DENY_HOST]){ _local6 = events; _local6[DENY_HOST]({host:host, real_url:getMovieURL(), redirect_url:getNewVersionURL()}); } else { onDenyHost(host, getMovieURL(), getNewVersionURL()); }; }; if (movie_options["request_portal_url"]){ _local3 = bridge.root.loaderInfo.url; _local4 = ((((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_local3)); _local5 = new URLLoader(new URLRequest(_local4)); }; if (events[69]){ _local6 = events; _local6[69](); }; } else { if (!movie_options["settings_loaded"]){ SendError("Could not establish connection to the API gateway."); }; }; } public static function setMovieVersion(_arg1){ if (!_arg1){ SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)"); } else { version = String(_arg1); }; } public static function loadCustomLink(_arg1:String){ if (!_arg1){ SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)"); } else { if (!custom_links[_arg1]){ SendError(("Attempted to open undefined custom link: " + _arg1)); } else { SendLink(custom_links[_arg1]); }; }; } public static function addCustomLink(_arg1:Number, _arg2:String){ if (!_arg1){ SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)"); } else { if (!_arg2){ SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)"); } else { custom_links[_arg2] = (STAT_CUSTOM_STATS + _arg1); SendMessage(((("Created custom link " + _arg1) + ": ") + _arg2)); }; }; } public static function getMovieURL(){ if (movie_options["movie_url"]){ return (movie_options["movie_url"]); }; return ("Newgrounds.com"); } public static function debugMode(){ debug = true; } public static function getAdURL(){ return (movie_options["ad_url"]); } private static function SendStat(_arg1:Number, _arg2:Boolean, _arg3=null){ var target_url:*; var XML_Loaded:*; var x:*; var request:URLRequest; var gateway_loader:URLLoader; var stat_id = _arg1; var open_in_browser = _arg2; var extra = _arg3; if (!tracker_id){ SendError("You must call NewgroundsAPI.connectMovie() with a valid movie id before using API features!"); } else { XML_Loaded = function (_arg1:Event){ var _local2:XML; var _local3:Object; var _local4:XMLList; var _local5:XML; var _local6:*; var _local7:*; XML.ignoreWhitespace = true; _local2 = XML(_arg1.target.data); _local3 = new Object(); _local4 = _local2.children(); for each (_local5 in _local4) { _local6 = _local5.localName(); _local7 = _local5.attribute("value"); if (_local7 == Number(_local7)){ _local7 = Number(_local7); }; _local3[_local6] = _local7; }; ReadGatewayData(_local3); }; target_url = (((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id) + addSeed()); if (extra){ for (x in extra) { target_url = (target_url + ((("&" + escape(x)) + "=") + escape(extra[x]))); }; }; if (debug){ target_url = (target_url + "&debug=1"); }; if (open_in_browser){ request = new URLRequest((target_url + addSeed())); navigateToURL(request, "_blank"); } else { gateway_loader = new URLLoader(new URLRequest((target_url + addSeed()))); gateway_loader.addEventListener(Event.COMPLETE, XML_Loaded); }; }; } public static function onAdsApproved(_arg1:String){ } public static function loadMySite(_arg1:Event=null){ SendLink(STAT_AUTHOR_SITE); } private static function SendMessage(_arg1:String){ trace(("[NEWGROUNDS API] :: " + _arg1)); } public static function linkAPI(_arg1){ _arg1.addChild(bridge); linked = true; } public static function loadNewgrounds(_arg1:Event=null, _arg2:String=null){ var _local3:URLRequest; var _local4:*; if (!tracker_id){ _local3 = new URLRequest(((NEWGROUNDS_URL + "/") + _arg2)); navigateToURL(_local3, "_blank"); } else { _local4 = null; if (_arg2){ _local4 = new Object(); _local4.page = _arg2; }; SendLink(STAT_NEWGROUNDS, _local4); }; } private static function SendLink(_arg1, _arg2=null){ SendStat(_arg1, true, _arg2); } public static function logCustomEvent(_arg1:String){ if (!_arg1){ SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)"); } else { if (!custom_events[_arg1]){ SendError(("Attempted to log undefined custom event: " + _arg1)); } else { SendEvent(custom_events[_arg1]); }; }; } private static function SendError(_arg1:String){ trace(("[NEWGROUNDS API ERROR] :: " + _arg1)); } public static function addCustomEvent(_arg1:Number, _arg2:String){ if (!_arg1){ SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)"); } else { if (!_arg2){ SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)"); } else { custom_events[_arg2] = (STAT_CUSTOM_STATS + _arg1); SendMessage(("Created custom event: " + _arg2)); }; }; } private static function addSeed(){ return (("&seed=" + Math.random())); } public static function addEventListener(_arg1:Number, _arg2:Function){ events[_arg1] = _arg2; } private static function SendEvent(_arg1){ SendStat(_arg1, false); } public static function onNewVersionAvailable(_arg1:String, _arg2:String, _arg3:String){ var sw:*; var sh:*; var tw:*; var th:*; var mg:*; var _root:*; var overlay:MovieClip; var overlay_x:*; var overlay_y:*; var close_x:*; var blankarea:TextField; var header:TextField; var header_format:TextFormat; var msgtext:TextField; var msgtext_format:TextFormat; var msgtext_link:TextFormat; var version = _arg1; var movie_url = _arg2; var redirect_url = _arg3; sw = bridge.stage.stageWidth; sh = bridge.stage.stageHeight; tw = 350; th = 160; mg = 20; _root = bridge.root; overlay = new MovieClip(); overlay.graphics.beginFill(0, 0.6); overlay.graphics.lineStyle(0, 0); overlay.graphics.drawRect(0, 0, sw, sh); overlay.graphics.endFill(); overlay_x = Math.round(((sw - tw) / 2)); overlay_y = Math.round(((sh - th) / 2)); overlay.graphics.beginFill(102); overlay.graphics.lineStyle(10, 0); overlay.graphics.drawRect((overlay_x - mg), (overlay_y - mg), (tw + mg), (th + mg)); overlay.graphics.endFill(); overlay.close = function (_arg1:Event){ _root.removeChild(overlay); }; close_x = new MovieClip(); close_x.graphics.beginFill(0, 0.1); close_x.graphics.lineStyle(3, 22015); close_x.graphics.drawRect(0, 0, 16, 16); close_x.graphics.endFill(); close_x.graphics.moveTo(4, 4); close_x.graphics.lineTo(13, 13); close_x.graphics.moveTo(13, 4); close_x.graphics.lineTo(4, 13); close_x.x = ((overlay_x + tw) - 26); close_x.y = (overlay_y - 10); close_x.addEventListener(MouseEvent.CLICK, overlay.close); blankarea = new TextField(); blankarea.x = (overlay_x - mg); blankarea.y = (overlay_y - mg); blankarea.width = (tw + mg); blankarea.height = (th + mg); blankarea.selectable = false; header = new TextField(); header.width = tw; header.x = overlay_x; header.y = overlay_y; header.height = 100; header.selectable = false; header_format = new TextFormat(); header_format.font = "Arial Black"; header_format.color = 0xFFFFFF; header_format.size = 20; header.defaultTextFormat = header_format; header.text = "New Version Available!"; msgtext = new TextField(); msgtext.x = overlay_x; msgtext.y = (overlay_y + 70); msgtext.width = tw; msgtext.height = 60; msgtext.selectable = false; msgtext_format = new TextFormat(); msgtext_format.font = "Arial"; msgtext_format.color = 0xFFFFFF; msgtext_format.size = 12; msgtext_format.bold = true; msgtext_link = new TextFormat(); msgtext_link.font = "Arial"; msgtext_link.color = 0xFFFF00; msgtext_link.size = 12; msgtext_link.bold = true; msgtext_link.url = redirect_url; msgtext_link.target = "_blank"; if (version){ version = ("Version " + version); } else { version = "A new version"; }; msgtext.defaultTextFormat = msgtext_format; msgtext.appendText((version + " is now available")); if (movie_url){ msgtext.appendText(" at:\n"); msgtext.defaultTextFormat = msgtext_link; msgtext.appendText(movie_url); } else { msgtext.appendText("!"); }; _root.addChild(overlay); overlay.addChild(blankarea); overlay.addChild(header); overlay.addChild(msgtext); overlay.addChild(close_x); } public static function onDenyHost(_arg1:String, _arg2:String, _arg3:String){ var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:MovieClip; var _local10:TextField; var _local11:TextField; var _local12:TextFormat; var _local13:TextField; var _local14:TextFormat; var _local15:TextFormat; _local4 = bridge.stage.stageWidth; _local5 = bridge.stage.stageHeight; _local6 = 350; _local7 = 160; _local8 = bridge.root; _local9 = new MovieClip(); _local9.graphics.beginFill(0x660000); _local9.graphics.lineStyle(20, 0); _local9.graphics.drawRect(0, 0, _local4, _local5); _local9.graphics.endFill(); _local10 = new TextField(); _local10.x = 0; _local10.y = 0; _local10.width = _local4; _local10.height = _local5; _local10.selectable = false; _local11 = new TextField(); _local11.x = Math.round(((_local4 - _local6) / 2)); _local11.y = Math.round(((_local5 - _local7) / 2.5)); _local11.width = _local6; _local11.height = 100; _local11.selectable = false; _local12 = new TextFormat(); _local12.font = "Arial Black"; _local12.color = 0xFF0000; _local12.size = 38; _local11.defaultTextFormat = _local12; _local11.text = "ERROR!"; _local13 = new TextField(); _local13.x = Math.round(((_local4 - _local6) / 2)); _local13.y = (Math.round(((_local5 - _local7) / 2.5)) + 80); _local13.width = _local6; _local13.height = 80; _local13.selectable = false; _local14 = new TextFormat(); _local14.font = "Arial"; _local14.color = 0xFFFFFF; _local14.size = 12; _local14.bold = true; _local15 = new TextFormat(); _local15.font = "Arial"; _local15.color = 0xFFFF00; _local15.size = 12; _local15.bold = true; _local15.url = _arg3; _local15.target = "_blank"; _local13.defaultTextFormat = _local14; _local13.appendText((("This movie has not been approved for use on " + _arg1) + "\n")); _local13.appendText("For an approved copy, please visit:\n"); _local13.defaultTextFormat = _local15; _local13.appendText(_arg2); _local8.addChild(_local9); _local9.addChild(_local10); _local9.addChild(_local11); _local9.addChild(_local13); } public static function connectMovie(_arg1:Number){ var _local2:String; var _local3:*; if (!_arg1){ SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)"); } else { if (!linked){ SendError("Attempted to call MewgroundsAPI.connectMovie() without first calling NewgroundsAPI.linkAPI(this)"); } else { if (!tracker_id){ SendMessage("Connecting to API gateway..."); tracker_id = _arg1; _local2 = bridge.root.loaderInfo.url; host = _local2.split("/")[2].toLowerCase(); if (host.length < 1){ host = "localhost"; }; _local3 = new Object(); SendEvent(STAT_MOVIE_VIEWS); }; }; }; } public static function isInstalled(){ return (true); } } }//package
Section 27
//planetExplode (planetExplode) package { import flash.media.*; public dynamic class planetExplode extends Sound { } }//package
Section 28
//popSound (popSound) package { import flash.media.*; public dynamic class popSound extends Sound { } }//package
Section 29
//readyGo (readyGo) package { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class readyGo extends MovieClip { public function readyGo(){ addFrameScript(0, frame1, 336, frame337); } function frame1(){ stop(); } function frame337(){ Game.readied = true; stage.removeChild(this); } } }//package
Section 30
//retic (retic) package { import flash.display.*; public dynamic class retic extends MovieClip { } }//package
Section 31
//ScoreBoard (ScoreBoard) package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.utils.*; import flash.filters.*; public class ScoreBoard extends MovieClip { var myTimer:Timer; var format:TextFormat; public var level_text:TextField; public var tBonus:MovieClip; public var score_label:TextField; public var sBonus:MovieClip; public var level_label:TextField; var filt:GlowFilter; public var timer_label:MovieClip; public var score_text:TextField; public var timer_text:TextField; public static var score:int = 0; public static var time:int; public function ScoreBoard():void{ format = new TextFormat(); myTimer = new Timer(1000); filt = new GlowFilter(); super(); filt.color = 0xFFFFFF; filt.blurX = 10; filt.blurY = 10; filt.strength = 10; score_label.filters = [filt]; level_label.filters = [filt]; level_text.filters = [filt]; score_text.filters = [filt]; timer_text.filters = [filt]; timer_label.filters = [filt]; this.x = 0; this.y = 0; time = 60; myTimer.start(); timer_text.text = String(time); tBonus.visible = false; sBonus.visible = false; } public function getScore():String{ return (String(score)); } public function startTimer():void{ myTimer.addEventListener(TimerEvent.TIMER, decrement); } public function adds(_arg1:Number):void{ score = int((score + _arg1)); if (_arg1 > 0){ sBonus.b.bonus_text.text = ("+" + String(_arg1)); sBonus.visible = true; sBonus.gotoAndPlay(1); }; score_text.text = String(score); } public function stopTimer():void{ myTimer.removeEventListener(TimerEvent.TIMER, decrement); } public function timeBonus(_arg1:Number){ var _local2:String; _local2 = "+"; if (_arg1 < 0){ _local2 = ""; }; time = (time + _arg1); tBonus.b.bonus_text.text = (_local2 + String(_arg1)); tBonus.visible = true; tBonus.gotoAndPlay(1); timer_text.text = String(time); } public function reset(){ score = 0; time = 60; timer_text.text = String(time); score_text.text = String(score); level_text.text = "1"; } function decrement(_arg1:TimerEvent){ if (time > 0){ time--; timer_text.text = String(time); } else { stopTimer(); Game._gameOver = true; }; } } }//package
Section 32
//spaceBG (spaceBG) package { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class spaceBG extends MovieClip { public function spaceBG(){ addFrameScript(0, frame1); } function frame1(){ this.contextMenu = Game.myMenu; } } }//package
Section 33
//Turbo (Turbo) package { import flash.geom.*; import flash.display.*; import flash.events.*; import flash.media.*; import flash.text.*; import flash.utils.*; import flash.filters.*; import flash.net.*; import flash.ui.*; import flash.system.*; import flash.accessibility.*; import flash.errors.*; public dynamic class Turbo extends MovieClip { public var bm:MovieClip; public function Turbo(){ addFrameScript(0, frame1, 69, frame70); } function frame70(){ stop(); if (this.parent != null){ stage.removeChild(this); }; } function frame1(){ stop(); } } }//package
Section 34
//Unit (Unit) package { import flash.display.*; import flash.events.*; import flash.media.*; public class Unit extends MovieClip { public var myPop; public var unSpeed:Number; var ticks:uint;// = 0 var maxTicks:uint; public var burning:Boolean;// = false public var unAngle:Number; public var isAlive:Boolean; public var isOut:Boolean;// = false public function Unit():void{ unSpeed = Math.random(); isOut = false; burning = false; ticks = 0; maxTicks = uint((Math.floor((Math.random() * 100)) + 25)); super(); addFrameScript(0, frame1, 1, frame2, 9, frame10, 61, frame62, 85, frame86, 89, frame90, 181, frame182); this.contextMenu = Game.myMenu; this.scaleX = 0.3; this.scaleY = 0.3; while (unSpeed < 0.2) { unSpeed = Math.random(); }; } function moveUnit(_arg1:Event){ if (this.scaleX > 0){ unAngle = (((unAngle * (180 / Math.PI)) + unSpeed) * (Math.PI / 180)); } else { unAngle = (((unAngle * (180 / Math.PI)) - unSpeed) * (Math.PI / 180)); }; this.x = (Game.theGround.x - (Math.cos(this.unAngle) * (Game.theGround.width / 2))); this.y = (Game.theGround.y - (Math.sin(this.unAngle) * (Game.theGround.width / 2))); this.rotation = ((this.unAngle * (180 / Math.PI)) - 90); ticks++; if (ticks > maxTicks){ if (Math.random() < 0.3){ this.scaleX = (this.scaleX * -1); }; ticks = 0; }; } function frame86(){ this.gotoAndPlay(63); } function frame90(){ myPop = new popSound(); if (Game.sMuted == false){ myPop.play(); }; } function frame10(){ this.unSpeed = 0; } function startMoving():void{ while (unSpeed < 0.2) { unSpeed = Math.random(); }; isAlive = true; burning = false; addEventListener(Event.ENTER_FRAME, moveUnit); } function frame1(){ stop(); } function frame182(){ stop(); if (this.parent != null){ stage.removeChild(this); }; } public function die(){ if (isAlive == true){ isAlive = false; this.gotoAndPlay("death"); removeEventListener(Event.ENTER_FRAME, moveUnit); }; } function frame2(){ this.unSpeed = 0; } function frame62(){ this.startMoving(); Game.locked = false; } } }//package
Section 35
//winner (winner) package { import flash.media.*; public dynamic class winner extends Sound { } }//package

Library Items

Symbol 1 GraphicUsed by:14
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:14
Symbol 4 FontUsed by:5 6 7 8 11 206 212 215 217 219 221 223 278 280 283 284 286 288 291 292 293 294 296 298 299 300 301 302 303 304 305 306 307 315 317 319 321 322 324 325 326 327 328 329 330 331
Symbol 5 EditableTextUses:4 9Used by:14
Symbol 6 EditableTextUses:4 9Used by:14
Symbol 7 EditableTextUses:4 9Used by:14
Symbol 8 EditableTextUses:4Used by:14
Symbol 9 FontUsed by:5 6 7 10 11 212 215 217 219 221 223 291 293 298 300
Symbol 10 EditableTextUses:9Used by:14
Symbol 11 EditableTextUses:4 9Used by:12
Symbol 12 MovieClip {bang_mochi_ng_fla.Tween5_55}Uses:11Used by:13
Symbol 13 MovieClip {bang_mochi_ng_fla.bonus_54}Uses:12Used by:14
Symbol 14 MovieClip {ScoreBoard}Uses:1 3 5 6 7 8 10 13
Symbol 15 GraphicUsed by:58
Symbol 16 GraphicUsed by:58
Symbol 17 GraphicUsed by:58
Symbol 18 GraphicUsed by:58
Symbol 19 GraphicUsed by:58
Symbol 20 GraphicUsed by:58
Symbol 21 GraphicUsed by:58
Symbol 22 GraphicUsed by:58
Symbol 23 GraphicUsed by:58
Symbol 24 GraphicUsed by:58
Symbol 25 GraphicUsed by:58
Symbol 26 GraphicUsed by:58
Symbol 27 GraphicUsed by:58
Symbol 28 GraphicUsed by:57
Symbol 29 GraphicUsed by:57
Symbol 30 ShapeTweeningUsed by:57
Symbol 31 GraphicUsed by:57
Symbol 32 GraphicUsed by:57
Symbol 33 GraphicUsed by:57
Symbol 34 GraphicUsed by:57
Symbol 35 GraphicUsed by:57
Symbol 36 GraphicUsed by:57
Symbol 37 GraphicUsed by:57
Symbol 38 GraphicUsed by:57
Symbol 39 GraphicUsed by:57
Symbol 40 GraphicUsed by:57
Symbol 41 GraphicUsed by:57
Symbol 42 GraphicUsed by:57
Symbol 43 GraphicUsed by:57
Symbol 44 GraphicUsed by:57
Symbol 45 GraphicUsed by:57
Symbol 46 GraphicUsed by:57
Symbol 47 GraphicUsed by:57
Symbol 48 GraphicUsed by:57
Symbol 49 GraphicUsed by:57
Symbol 50 GraphicUsed by:57
Symbol 51 GraphicUsed by:57
Symbol 52 GraphicUsed by:57
Symbol 53 GraphicUsed by:57
Symbol 54 GraphicUsed by:57
Symbol 55 GraphicUsed by:57
Symbol 56 GraphicUsed by:57
Symbol 57 MovieClip {bang_mochi_ng_fla.planet_50}Uses:28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56Used by:58
Symbol 58 MovieClip {Ground}Uses:15 16 17 18 19 20 21 22 23 24 25 26 27 57
Symbol 59 GraphicUsed by:116
Symbol 60 GraphicUsed by:116
Symbol 61 GraphicUsed by:116
Symbol 62 GraphicUsed by:116
Symbol 63 GraphicUsed by:116
Symbol 64 GraphicUsed by:116
Symbol 65 GraphicUsed by:116
Symbol 66 GraphicUsed by:116
Symbol 67 GraphicUsed by:116
Symbol 68 GraphicUsed by:116
Symbol 69 GraphicUsed by:116
Symbol 70 GraphicUsed by:116
Symbol 71 GraphicUsed by:116
Symbol 72 GraphicUsed by:116
Symbol 73 GraphicUsed by:116
Symbol 74 GraphicUsed by:116
Symbol 75 GraphicUsed by:116
Symbol 76 GraphicUsed by:116
Symbol 77 GraphicUsed by:116
Symbol 78 GraphicUsed by:116
Symbol 79 GraphicUsed by:116
Symbol 80 GraphicUsed by:116
Symbol 81 GraphicUsed by:116
Symbol 82 GraphicUsed by:116
Symbol 83 GraphicUsed by:116
Symbol 84 GraphicUsed by:116
Symbol 85 GraphicUsed by:116
Symbol 86 GraphicUsed by:116
Symbol 87 GraphicUsed by:116
Symbol 88 GraphicUsed by:116
Symbol 89 GraphicUsed by:116
Symbol 90 GraphicUsed by:116
Symbol 91 GraphicUsed by:116
Symbol 92 GraphicUsed by:116
Symbol 93 GraphicUsed by:116
Symbol 94 GraphicUsed by:116
Symbol 95 GraphicUsed by:116
Symbol 96 GraphicUsed by:116
Symbol 97 GraphicUsed by:116
Symbol 98 GraphicUsed by:116
Symbol 99 GraphicUsed by:116
Symbol 100 GraphicUsed by:116
Symbol 101 GraphicUsed by:116
Symbol 102 GraphicUsed by:115
Symbol 103 GraphicUsed by:115
Symbol 104 GraphicUsed by:115
Symbol 105 GraphicUsed by:115
Symbol 106 GraphicUsed by:115
Symbol 107 GraphicUsed by:115
Symbol 108 GraphicUsed by:115
Symbol 109 GraphicUsed by:115
Symbol 110 GraphicUsed by:115
Symbol 111 GraphicUsed by:115
Symbol 112 GraphicUsed by:115
Symbol 113 GraphicUsed by:115
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:102 103 104 105 106 107 108 109 110 111 112 113 114Used by:116
Symbol 116 MovieClip {Unit}Uses:59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 115
Symbol 117 GraphicUsed by:166
Symbol 118 GraphicUsed by:166
Symbol 119 GraphicUsed by:120
Symbol 120 MovieClipUses:119Used by:166 200
Symbol 121 GraphicUsed by:166
Symbol 122 GraphicUsed by:166
Symbol 123 GraphicUsed by:166
Symbol 124 GraphicUsed by:166
Symbol 125 GraphicUsed by:132
Symbol 126 GraphicUsed by:132
Symbol 127 GraphicUsed by:132
Symbol 128 GraphicUsed by:132
Symbol 129 GraphicUsed by:132
Symbol 130 GraphicUsed by:132
Symbol 131 GraphicUsed by:132
Symbol 132 MovieClipUses:125 126 127 128 129 130 131Used by:166 199 200  Timeline
Symbol 133 GraphicUsed by:166
Symbol 134 GraphicUsed by:166
Symbol 135 GraphicUsed by:166
Symbol 136 GraphicUsed by:166
Symbol 137 GraphicUsed by:166
Symbol 138 GraphicUsed by:166
Symbol 139 GraphicUsed by:166
Symbol 140 GraphicUsed by:166
Symbol 141 GraphicUsed by:166
Symbol 142 GraphicUsed by:166
Symbol 143 GraphicUsed by:166
Symbol 144 GraphicUsed by:166
Symbol 145 GraphicUsed by:166
Symbol 146 GraphicUsed by:166
Symbol 147 GraphicUsed by:166
Symbol 148 GraphicUsed by:166
Symbol 149 GraphicUsed by:166
Symbol 150 GraphicUsed by:166
Symbol 151 GraphicUsed by:166
Symbol 152 GraphicUsed by:166
Symbol 153 GraphicUsed by:166
Symbol 154 GraphicUsed by:166
Symbol 155 GraphicUsed by:166
Symbol 156 GraphicUsed by:166
Symbol 157 GraphicUsed by:166
Symbol 158 GraphicUsed by:166
Symbol 159 GraphicUsed by:166
Symbol 160 GraphicUsed by:166
Symbol 161 GraphicUsed by:166
Symbol 162 GraphicUsed by:166
Symbol 163 GraphicUsed by:166
Symbol 164 GraphicUsed by:166
Symbol 165 GraphicUsed by:166
Symbol 166 MovieClip {explosion}Uses:117 118 120 121 122 123 124 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
Symbol 167 GraphicUsed by:170
Symbol 168 GraphicUsed by:170
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClipUses:167 168 169Used by:200
Symbol 171 GraphicUsed by:200
Symbol 172 GraphicUsed by:200
Symbol 173 GraphicUsed by:174
Symbol 174 MovieClipUses:173Used by:200
Symbol 175 GraphicUsed by:199
Symbol 176 ShapeTweeningUsed by:199
Symbol 177 GraphicUsed by:199
Symbol 178 GraphicUsed by:199
Symbol 179 GraphicUsed by:199
Symbol 180 GraphicUsed by:199
Symbol 181 GraphicUsed by:199
Symbol 182 GraphicUsed by:199
Symbol 183 GraphicUsed by:199
Symbol 184 GraphicUsed by:199
Symbol 185 GraphicUsed by:199
Symbol 186 GraphicUsed by:199
Symbol 187 GraphicUsed by:199
Symbol 188 GraphicUsed by:199
Symbol 189 GraphicUsed by:199
Symbol 190 GraphicUsed by:199
Symbol 191 GraphicUsed by:199
Symbol 192 GraphicUsed by:199
Symbol 193 GraphicUsed by:199
Symbol 194 GraphicUsed by:199
Symbol 195 GraphicUsed by:199
Symbol 196 GraphicUsed by:199
Symbol 197 GraphicUsed by:199
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClip {bang_mochi_ng_fla.asteroid_burnup_45}Uses:175 176 132 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198Used by:200
Symbol 200 MovieClip {Asteroid}Uses:170 132 171 120 172 174 199
Symbol 201 GraphicUsed by:202
Symbol 202 MovieClip {retic}Uses:201
Symbol 203 MovieClip {hole}
Symbol 204 GraphicUsed by:205
Symbol 205 MovieClip {Beam}Uses:204
Symbol 206 TextUses:4Used by:207
Symbol 207 MovieClip {destroy_text}Uses:206
Symbol 208 GraphicUsed by:209
Symbol 209 MovieClipUses:208Used by:211
Symbol 210 GraphicUsed by:211
Symbol 211 MovieClip {HPCount}Uses:209 210
Symbol 212 EditableTextUses:4 9Used by:213
Symbol 213 MovieClip {bang_mochi_ng_fla.message_34}Uses:212Used by:214
Symbol 214 MovieClip {Turbo}Uses:213
Symbol 215 EditableTextUses:4 9Used by:216
Symbol 216 MovieClipUses:215Used by:225
Symbol 217 EditableTextUses:4 9Used by:218
Symbol 218 MovieClipUses:217Used by:225
Symbol 219 EditableTextUses:4 9Used by:220
Symbol 220 MovieClipUses:219Used by:225
Symbol 221 EditableTextUses:4 9Used by:222
Symbol 222 MovieClipUses:221Used by:225
Symbol 223 EditableTextUses:4 9Used by:224
Symbol 224 MovieClipUses:223Used by:225
Symbol 225 MovieClip {readyGo}Uses:216 218 220 222 224 SS1
Symbol 226 MovieClip {ad}
Symbol 227 GraphicUsed by:233
Symbol 228 GraphicUsed by:232
Symbol 229 GraphicUsed by:232
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClipUses:230Used by:232
Symbol 232 MovieClipUses:228 229 231Used by:233
Symbol 233 MovieClip {spaceBG}Uses:227 232Used by:Timeline
Symbol 234 BitmapUsed by:235
Symbol 235 GraphicUses:234Used by:243
Symbol 236 GraphicUsed by:243
Symbol 237 GraphicUsed by:238
Symbol 238 MovieClipUses:237Used by:243
Symbol 239 ShapeTweeningUsed by:243
Symbol 240 ShapeTweeningUsed by:243
Symbol 241 GraphicUsed by:243
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClip {bang_mochi_ng_fla.Timeline_1}Uses:235 236 238 239 240 241 242Used by:Timeline
Symbol 244 GraphicUsed by:258
Symbol 245 FontUsed by:246
Symbol 246 TextUses:245Used by:250
Symbol 247 GraphicUsed by:250
Symbol 248 GraphicUsed by:250
Symbol 249 GraphicUsed by:250
Symbol 250 ButtonUses:246 247 248 249Used by:258
Symbol 251 GraphicUsed by:258
Symbol 252 GraphicUsed by:258
Symbol 253 GraphicUsed by:257 270
Symbol 254 GraphicUsed by:256
Symbol 255 GraphicUsed by:256
Symbol 256 ButtonUses:254 255Used by:257
Symbol 257 MovieClip {bang_mochi_ng_fla.NG_TANK_5}Uses:253 256Used by:258
Symbol 258 MovieClip {bang_mochi_ng_fla.NG_AD_OBJECT_3}Uses:244 250 251 252 257Used by:Timeline
Symbol 259 FontUsed by:260 261
Symbol 260 EditableTextUses:259Used by:262
Symbol 261 EditableTextUses:259Used by:262
Symbol 262 MovieClip {bang_mochi_ng_fla.mute_7}Uses:260 261Used by:Timeline
Symbol 263 Sound {multiKill}Used by:Timeline
Symbol 264 Sound {destroyThePlanet}Used by:Timeline
Symbol 265 Sound {planetExplode}Used by:Timeline
Symbol 266 Sound {winner}Used by:Timeline
Symbol 267 Sound {popSound}Used by:Timeline
Symbol 268 Sound {explo}Used by:Timeline
Symbol 269 VideoUsed by:270
Symbol 270 MovieClipUses:253 269 SS2Used by:Timeline
Symbol 271 BitmapUsed by:272
Symbol 272 GraphicUses:271Used by:273
Symbol 273 MovieClipUses:272Used by:Timeline
Symbol 274 BitmapUsed by:275
Symbol 275 GraphicUses:274Used by:276
Symbol 276 MovieClipUses:275Used by:Timeline
Symbol 277 GraphicUsed by:279 281 285 287
Symbol 278 TextUses:4Used by:279
Symbol 279 MovieClipUses:277 278Used by:Timeline
Symbol 280 TextUses:4Used by:281
Symbol 281 MovieClipUses:277 280Used by:Timeline
Symbol 282 FontUsed by:283
Symbol 283 TextUses:282 4Used by:Timeline
Symbol 284 TextUses:4Used by:285
Symbol 285 MovieClipUses:277 284Used by:Timeline
Symbol 286 TextUses:4Used by:287
Symbol 287 MovieClipUses:277 286Used by:Timeline
Symbol 288 TextUses:4Used by:290
Symbol 289 GraphicUsed by:290
Symbol 290 MovieClipUses:288 289Used by:Timeline
Symbol 291 EditableTextUses:4 9Used by:Timeline
Symbol 292 EditableTextUses:4Used by:Timeline
Symbol 293 EditableTextUses:4 9Used by:Timeline
Symbol 294 TextUses:4Used by:295
Symbol 295 ButtonUses:294Used by:Timeline
Symbol 296 TextUses:4Used by:297
Symbol 297 ButtonUses:296Used by:Timeline
Symbol 298 EditableTextUses:4 9Used by:Timeline
Symbol 299 EditableTextUses:4Used by:Timeline
Symbol 300 EditableTextUses:4 9Used by:Timeline
Symbol 301 TextUses:4Used by:Timeline
Symbol 302 TextUses:4Used by:Timeline
Symbol 303 TextUses:4Used by:Timeline
Symbol 304 TextUses:4Used by:Timeline
Symbol 305 TextUses:4Used by:Timeline
Symbol 306 TextUses:4Used by:Timeline
Symbol 307 TextUses:4Used by:Timeline
Symbol 308 GraphicUsed by:314
Symbol 309 GraphicUsed by:314
Symbol 310 GraphicUsed by:314
Symbol 311 GraphicUsed by:314
Symbol 312 GraphicUsed by:314
Symbol 313 GraphicUsed by:314
Symbol 314 MovieClipUses:308 309 310 311 312 313Used by:Timeline
Symbol 315 TextUses:4Used by:Timeline
Symbol 316 FontUsed by:317 322
Symbol 317 TextUses:4 316Used by:318
Symbol 318 ButtonUses:317Used by:Timeline
Symbol 319 TextUses:4Used by:320
Symbol 320 ButtonUses:319Used by:Timeline
Symbol 321 TextUses:4Used by:Timeline
Symbol 322 TextUses:316 4Used by:323
Symbol 323 ButtonUses:322Used by:Timeline
Symbol 324 TextUses:4Used by:Timeline
Symbol 325 TextUses:4Used by:Timeline
Symbol 326 TextUses:4Used by:Timeline
Symbol 327 TextUses:4Used by:Timeline
Symbol 328 TextUses:4Used by:Timeline
Symbol 329 EditableTextUses:4Used by:Timeline
Symbol 330 EditableTextUses:4Used by:Timeline
Symbol 331 TextUses:4Used by:Timeline
Streaming Sound 1Used by:Symbol 225 MovieClip {readyGo}
Streaming Sound 2Used by:Symbol 270 MovieClip

Instance Names

"muteButton"Frame 2Symbol 262 MovieClip {bang_mochi_ng_fla.mute_7}
"gPlay"Frame 3Symbol 270 MovieClip
"moreGames"Frame 3Symbol 279 MovieClip
"scoreButton"Frame 3Symbol 281 MovieClip
"tutorialButton"Frame 3Symbol 285 MovieClip
"startButton"Frame 3Symbol 287 MovieClip
"subButton"Frame 10Symbol 290 MovieClip
"finalScore"Frame 10Symbol 292 EditableText
"resetButton"Frame 10Symbol 295 Button
"linkOut"Frame 10Symbol 297 Button
"finalScore"Frame 11Symbol 299 EditableText
"bonusButton"Frame 20Symbol 318 Button
"menuButton"Frame 20Symbol 320 Button
"menu2"Frame 21Symbol 320 Button
"gamePlayButton"Frame 21Symbol 323 Button
"bonus_text"Symbol 12 MovieClip {bang_mochi_ng_fla.Tween5_55} Frame 1Symbol 11 EditableText
"b"Symbol 13 MovieClip {bang_mochi_ng_fla.bonus_54} Frame 1Symbol 12 MovieClip {bang_mochi_ng_fla.Tween5_55}
"timer_label"Symbol 14 MovieClip {ScoreBoard} Frame 1Symbol 3 MovieClip
"timer_text"Symbol 14 MovieClip {ScoreBoard} Frame 1Symbol 5 EditableText
"level_label"Symbol 14 MovieClip {ScoreBoard} Frame 1Symbol 6 EditableText
"score_label"Symbol 14 MovieClip {ScoreBoard} Frame 1Symbol 7 EditableText
"level_text"Symbol 14 MovieClip {ScoreBoard} Frame 1Symbol 8 EditableText
"score_text"Symbol 14 MovieClip {ScoreBoard} Frame 1Symbol 10 EditableText
"tBonus"Symbol 14 MovieClip {ScoreBoard} Frame 1Symbol 13 MovieClip {bang_mochi_ng_fla.bonus_54}
"sBonus"Symbol 14 MovieClip {ScoreBoard} Frame 1Symbol 13 MovieClip {bang_mochi_ng_fla.bonus_54}
"planSplode"Symbol 58 MovieClip {Ground} Frame 17Symbol 57 MovieClip {bang_mochi_ng_fla.planet_50}
"burnUp_MC"Symbol 200 MovieClip {Asteroid} Frame 261Symbol 199 MovieClip {bang_mochi_ng_fla.asteroid_burnup_45}
"bar"Symbol 211 MovieClip {HPCount} Frame 1Symbol 209 MovieClip
"mess"Symbol 213 MovieClip {bang_mochi_ng_fla.message_34} Frame 1Symbol 212 EditableText
"bm"Symbol 214 MovieClip {Turbo} Frame 1Symbol 213 MovieClip {bang_mochi_ng_fla.message_34}
"bar"Symbol 243 MovieClip {bang_mochi_ng_fla.Timeline_1} Frame 1Symbol 238 MovieClip
"NG_Logo"Symbol 257 MovieClip {bang_mochi_ng_fla.NG_TANK_5} Frame 1Symbol 256 Button
"NG_Button"Symbol 258 MovieClip {bang_mochi_ng_fla.NG_AD_OBJECT_3} Frame 1Symbol 250 Button
"ng_ad"Symbol 258 MovieClip {bang_mochi_ng_fla.NG_AD_OBJECT_3} Frame 1Symbol 257 MovieClip {bang_mochi_ng_fla.NG_TANK_5}
"texas"Symbol 262 MovieClip {bang_mochi_ng_fla.mute_7} Frame 1Symbol 260 EditableText
"pete"Symbol 262 MovieClip {bang_mochi_ng_fla.mute_7} Frame 1Symbol 261 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.

Labels

"gameMenu"Frame 3
"gameOverScreen"Frame 10
"highScores"Frame 15
"mochiframe"Frame 17
"tutorialStart"Frame 20
"bonusPage"Frame 21
"stolen"Frame 23
"boom"Symbol 58 MovieClip {Ground} Frame 17
"death"Symbol 116 MovieClip {Unit} Frame 90
"fire"Symbol 116 MovieClip {Unit} Frame 183
"burnUp"Symbol 200 MovieClip {Asteroid} Frame 261
"loaded"Symbol 243 MovieClip {bang_mochi_ng_fla.Timeline_1} Frame 2




http://swfchan.com/10/48569/info.shtml
Created: 29/4 -2019 18:08:25 Last modified: 29/4 -2019 18:08:25 Server time: 09/05 -2024 15:28:01