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

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

Color Smash.swf

This is the info page for
Flash #48144

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


Text
SCORE:

0000

LEVEL:

01

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

<p align="left"><font face="Arial Black" size="45" color="#ffffff" letterSpacing="-2.000000" kerning="0"><b>LEVEL 05 LEVEL 05 LEVEL 05 LEVEL 05</b></font></p>

LEVEL UP! LEVEL UP! LEVEL UP! LEVEL UP! LEVEL UP!  LEVEL UP! LEVEL UP! LEVEL UP! LEVEL UP! LEVEL UP!

LOADING

PLAY

ColorSmash

<p align="center"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><a href="http://www.dwaynebull.co.uk" target = "_new"><b>Copyright dwaynebull.co.uk 2008</b></a></font></p>

Drop,Smash,Drop,Smash

0%

<p align="center"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><a href="http://www.dwaynebull.co.uk" target = "_new"><b>Copyright dwaynebull.co.uk 2008</b></a></font></p>

Support this game by
visting our sponsors

Please wait.....

HighScores

<p align="center"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><a href="http://www.dwaynebull.co.uk" target = "_new"><b>Copyright dwaynebull.co.uk 2008</b></a></font></p>

Loading..

<p align="left"><font face="Arial Black" size="45" color="#009900" letterSpacing="-2.000000" kerning="0"><b>Sounds</b></font></p>

MainMenu

HowToPlay

Easy

Medium

Hard

<p align="center"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><a href="http://www.dwaynebull.co.uk" target = "_new"><b>Copyright dwaynebull.co.uk 2008</b></a></font></p>

Play more Games

Add this game to your site

HighScores

HowToPlay

Back to Menu

Bomb Squares clear all squares of there color.

Iron blocks drop if the timer runs out.
They cannot be cleared by normal means.

Clear squares by clicking on a square that has 2 or
more of its color next to it.  Simple.

Press any key to pause .

Arrow Squares clear all squares in a line  or collom.

<p align="center"><font face="Arial" size="11" color="#ffffff" letterSpacing="0.000000" kerning="0"><a href="http://www.dwaynebull.co.uk" target = "_new"><b>Copyright dwaynebull.co.uk 2008</b></a></font></p>

You scored:

<p align="center"><font face="Arial Black" size="33" color="#ffffff" letterSpacing="-2.000000" kerning="0"><b>000233</b></font></p>

Submit Score

Main Menu

GAME OVER GAME OVER GAME OVER

Time till Drop

Press any key to continue Press any key to continue Press any key to continue Press any key to continue

Paused Paused Paused Paused Paused

ActionScript [AS3]

Section 1
//background_1 (ColorSmash_WithAds_fla.background_1) package ColorSmash_WithAds_fla { import flash.display.*; public dynamic class background_1 extends MovieClip { public function background_1(){ addFrameScript(0, frame1, 25, frame26, 49, frame50, 75, frame76); } function frame76(){ stop(); } function frame1(){ stop(); } function frame26(){ stop(); } function frame50(){ stop(); } } }//package ColorSmash_WithAds_fla
Section 2
//sounds_2 (ColorSmash_WithAds_fla.sounds_2) package ColorSmash_WithAds_fla { import flash.display.*; public dynamic class sounds_2 extends MovieClip { public function sounds_2(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package ColorSmash_WithAds_fla
Section 3
//MochiScores (mochi.MochiScores) package mochi { import flash.display.*; import flash.text.*; public class MochiScores { private static var boardID:String; public static var onErrorHandler:Object; public static var onCloseHandler:Object; public static function showLeaderboard(_arg1:Object=null):void{ var options = _arg1; if (options != null){ if (options.clip != null){ if ((options.clip is Sprite)){ MochiServices.setContainer(options.clip); }; delete options.clip; } else { MochiServices.setContainer(); }; MochiServices.stayOnTop(); if (options.name != null){ if ((options.name is TextField)){ if (options.name.text.length > 0){ options.name = options.name.text; }; }; }; if (options.score != null){ if ((options.score is TextField)){ if (options.score.text.length > 0){ options.score = options.score.text; }; }; }; if (options.onDisplay != null){ options.onDisplay(); } else { if (MochiServices.clip != null){ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; }; } else { options = {}; if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; if (options.onClose != null){ onCloseHandler = options.onClose; } else { onCloseHandler = function ():void{ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.play(); } else { trace("Warning: Container is not a MovieClip, cannot call default onClose."); }; }; }; if (options.onError != null){ onErrorHandler = options.onError; } else { onErrorHandler = null; }; if (options.boardID == null){ if (MochiScores.boardID != null){ options.boardID = MochiScores.boardID; }; }; MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose); } public static function closeLeaderboard():void{ MochiServices.send("scores_closeLeaderboard"); } public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2); } public static function requestList(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_requestList", null, _arg1, _arg2); } public static function scoresArrayToObjects(_arg1:Object):Object{ var _local2:Object; var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Object; var _local7:String; var _local8:String; _local2 = {}; for (_local7 in _arg1) { if (typeof(_arg1[_local7]) == "object"){ if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){ _local2[_local7] = []; _local5 = _arg1[_local7]; _local4 = 0; while (_local4 < _local5.rows.length) { _local6 = {}; _local3 = 0; while (_local3 < _local5.cols.length) { _local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3]; _local3++; }; _local2[_local7].push(_local6); _local4++; }; } else { _local2[_local7] = {}; for (_local8 in _arg1[_local7]) { _local2[_local7][_local8] = _arg1[_local7][_local8]; }; }; } else { _local2[_local7] = _arg1[_local7]; }; }; return (_local2); } public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{ MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4); } public static function onClose(_arg1:Object=null):void{ if (_arg1 != null){ if (_arg1.error != null){ if (_arg1.error == true){ if (onErrorHandler != null){ if (_arg1.errorCode == null){ _arg1.errorCode = "IOError"; }; onErrorHandler(_arg1.errorCode); MochiServices.doClose(); return; }; }; }; }; onCloseHandler(); MochiServices.doClose(); } public static function setBoardID(_arg1:String):void{ MochiScores.boardID = _arg1; MochiServices.send("scores_setBoardID", {boardID:_arg1}); } } }//package mochi
Section 4
//MochiServices (mochi.MochiServices) package mochi { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; public class MochiServices { private static var _container:Object; private static var _connected:Boolean = false; private static var _swfVersion:String; private static var _sendChannel:LocalConnection; private static var _rcvChannelName:String; private static var _gatewayURL:String = "http://www.mochiads.com/static/lib/services/services.swf"; private static var _clip:MovieClip; private static var _loader:Loader; private static var _id:String; private static var _listenChannel:LocalConnection; private static var _timer:Timer; private static var _sendChannelName:String; private static var _startTime:Number; private static var _connecting:Boolean = false; public static var onError:Object; private static var _listenChannelName:String = "__mochiservices"; private static var _rcvChannel:LocalConnection; public static function isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_connected){ _sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); } else { if ((((_clip == null)) || (!(_connecting)))){ onError("NotConnected"); handleError(_arg2, _arg3, _arg4); flush(true); return; }; _clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); }; if (_clip != null){ if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){ _clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4}; _clip._nextcallbackID++; }; }; } public static function get connected():Boolean{ return (_connected); } private static function flush(_arg1:Boolean):void{ var _local2:Object; var _local3:Object; if (_clip != null){ if (_clip._queue != null){ while (_clip._queue.length > 0) { _local2 = _clip._queue.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = _clip._callbacks[_local2.callbackID]; }; delete _clip._callbacks[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; }; } private static function init(_arg1:String, _arg2:Object):void{ _id = _arg1; if (_arg2 != null){ _container = _arg2; loadCommunicator(_arg1, _container); }; } public static function get childClip():Object{ return (_clip); } public static function get id():String{ return (_id); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } public static function getVersion():String{ return ("1.2"); } public static function disconnect():void{ if (((_connected) || (_connecting))){ if (_clip != null){ if (_clip.parent != null){ if ((_clip.parent is Sprite)){ Sprite(_clip.parent).removeChild(_clip); _clip = null; }; }; }; _connecting = (_connected = false); flush(true); try { _listenChannel.close(); _rcvChannel.close(); } catch(error:Error) { }; }; if (_timer != null){ try { _timer.stop(); } catch(error:Error) { }; }; } public static function allowDomains(_arg1:String):String{ var _local2:String; Security.allowDomain("*"); Security.allowInsecureDomain("*"); if (_arg1.indexOf("http://") != -1){ _local2 = _arg1.split("/")[2].split(":")[0]; Security.allowDomain(_local2); Security.allowInsecureDomain(_local2); }; return (_local2); } public static function doClose():void{ _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); if (_clip.parent != null){ Sprite(_clip.parent).removeChild(_clip); }; } public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{ if (_arg1 != null){ if ((_arg1 is Sprite)){ _container = _arg1; }; }; if (_arg2){ if ((_container is Sprite)){ Sprite(_container).addChild(_clip); }; }; } private static function onStatus(_arg1:StatusEvent):void{ switch (_arg1.level){ case "error": _connected = false; _listenChannel.connect(_listenChannelName); break; }; } private static function initComChannels():void{ if (!_connected){ _sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion()}); _rcvChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _clip.onReceive = function (_arg1:Object):void{ var cb:String; var cblst:Object; var method:*; var obj:Object; var pkg = _arg1; cb = pkg.callbackID; cblst = this.client._callbacks[cb]; if (!cblst){ return; }; method = cblst.callbackMethod; obj = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ if (obj[method] != null){ method = obj[method]; } else { trace((("Error: Method " + method) + " does not exist.")); }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { trace("Unable to invoke callback method."); }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { trace("Unable to invoke callback method on object."); }; }; }; delete this.client._callbacks[cb]; }; _clip.onError = function ():void{ MochiServices.onError("IOError"); }; _rcvChannel.connect(_rcvChannelName); trace("connected!"); _connecting = false; _connected = true; _listenChannel.close(); while (_clip._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift()); }; }; } private static function listen():void{ _listenChannel = new LocalConnection(); _listenChannel.client = _clip; _clip.handshake = function (_arg1:Object):void{ MochiServices.comChannelName = _arg1.newChannel; }; _listenChannel.allowDomain("*", "localhost"); _listenChannel.allowInsecureDomain("*", "localhost"); _listenChannel.connect(_listenChannelName); trace("Waiting for MochiAds services to connect..."); } private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } public static function get clip():Object{ return (_container); } public static function set comChannelName(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _sendChannelName = (_arg1 + "_fromgame"); _rcvChannelName = _arg1; initComChannels(); }; }; } private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{ var clipname:String; var f:Function; var req:URLRequest; var id = _arg1; var clip = _arg2; clipname = ("_mochiservices_com_" + id); if (_clip != null){ return (_clip); }; if (!MochiServices.isNetworkAvailable()){ return (null); }; MochiServices.allowDomains(_gatewayURL); _clip = createEmptyMovieClip(clip, clipname, 10336, false); _loader = new Loader(); _timer = new Timer(1000, 0); _startTime = getTimer(); _timer.addEventListener(TimerEvent.TIMER, connectWait); _timer.start(); f = function (_arg1:Object):void{ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); }; _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); req = new URLRequest(_gatewayURL); _loader.load(req); _clip.addChild(_loader); _clip._mochiservices_com = _loader; _sendChannel = new LocalConnection(); _clip._queue = []; _rcvChannel = new LocalConnection(); _rcvChannel.allowDomain("*", "localhost"); _rcvChannel.allowInsecureDomain("*", "localhost"); _rcvChannel.client = _clip; _clip._nextcallbackID = 0; _clip._callbacks = {}; listen(); return (_clip); } public static function bringToTop(_arg1:Event):void{ var e = _arg1; if (MochiServices.clip != null){ if (MochiServices.childClip != null){ try { if (MochiServices.clip.numChildren > 1){ MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1)); }; } catch(errorObject:Error) { trace("Warning: Depth sort error."); _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); }; }; }; } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; if ((clip is DisplayObject)){ if (((!(_connected)) && ((_clip == null)))){ trace("MochiServices Connecting..."); _connecting = true; init(id, clip); }; } else { trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage."); }; if (onError != null){ MochiServices.onError = onError; } else { if (MochiServices.onError == null){ MochiServices.onError = function (_arg1:String):void{ trace(_arg1); }; }; }; } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{ var _local5:MovieClip; _local5 = new MovieClip(); if (_arg4){ if (((false) && (_arg3))){ _arg1.addChildAt(_local5, _arg3); } else { _arg1.addChild(_local5); }; }; _arg1[_arg2] = _local5; _local5["_name"] = _arg2; return (_local5); } public static function connectWait(_arg1:TimerEvent):void{ if ((getTimer() - _startTime) > 10000){ if (!_connected){ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); }; _timer.stop(); }; } } }//package mochi
Section 5
//ads (ads) package { import flash.display.*; public dynamic class ads extends MovieClip { public var Holder:MovieClip; } }//package
Section 6
//deathScreen (deathScreen) package { import flash.display.*; import flash.text.*; public dynamic class deathScreen extends MovieClip { public var Menu_Button:SimpleButton; public var Score_txt:TextField; public var Score_Button:SimpleButton; } }//package
Section 7
//firststarts (firststarts) package { import flash.display.*; import flash.text.*; public class firststarts extends MovieClip { public var Progress_bar:MovieClip; public var Play_Button:MovieClip; public var Loading_txt:TextField; } }//package
Section 8
//Game_BG (Game_BG) package { import flash.display.*; public dynamic class Game_BG extends MovieClip { } }//package
Section 9
//Glower (Glower) package { import flash.display.*; import flash.filters.*; import flash.geom.*; public class Glower extends Sprite { public var yPos;// = 0 public var Type; public var tempxPos;// = 0 public var killMe;// = false public var xPos;// = 0 public var tempyPos;// = 0 public function Glower(_arg1, _arg2, _arg3){ var _local4:GlowFilter; xPos = 0; yPos = 0; killMe = false; tempyPos = 0; tempxPos = 0; super(); xPos = _arg1; yPos = _arg2; tempyPos = _arg2; tempxPos = _arg1; Type = _arg3; _local4 = new GlowFilter(); _local4.alpha = 0.5; _local4.blurX = 20; _local4.blurY = 20; _local4.strength = 2; _local4.quality = BitmapFilterQuality.LOW; if (_arg3 == "Blue"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0xFF, 0); _local4.color = 0xFF; } else { if (_arg3 == "Red"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0, 0); _local4.color = 0xFF0000; } else { if (_arg3 == "Green"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0xFF, 0, 0); _local4.color = 0xFF00; } else { if (_arg3 == "Yellow"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0, 0); _local4.color = 0xFFFF00; }; }; }; }; this.filters = [_local4]; } } }//package
Section 10
//GlowerS1 (GlowerS1) package { import flash.display.*; import flash.filters.*; import flash.geom.*; public class GlowerS1 extends Sprite { public var yPos;// = 0 public var Type; public var tempxPos;// = 0 public var killMe;// = false public var xPos;// = 0 public var tempyPos;// = 0 public function GlowerS1(_arg1, _arg2, _arg3){ var _local4:GlowFilter; xPos = 0; yPos = 0; killMe = false; tempyPos = 0; tempxPos = 0; super(); xPos = _arg1; yPos = _arg2; tempyPos = _arg2; tempxPos = _arg1; Type = _arg3; _local4 = new GlowFilter(); _local4.alpha = 0.5; _local4.blurX = 20; _local4.blurY = 20; _local4.strength = 2; _local4.quality = BitmapFilterQuality.LOW; this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0); _local4.color = 0xFFFFFF; this.filters = [_local4]; } } }//package
Section 11
//GlowerS2 (GlowerS2) package { import flash.display.*; import flash.filters.*; import flash.geom.*; public class GlowerS2 extends Sprite { public var yPos;// = 0 public var Type;// = "BOMB" public var tempxPos;// = 0 public var killMe;// = false public var KillColor; public var xPos;// = 0 public var tempyPos;// = 0 public function GlowerS2(_arg1, _arg2, _arg3){ var _local4:GlowFilter; xPos = 0; yPos = 0; Type = "BOMB"; killMe = false; tempyPos = 0; tempxPos = 0; super(); xPos = _arg1; yPos = _arg2; tempyPos = _arg2; tempxPos = _arg1; KillColor = _arg3; _local4 = new GlowFilter(); _local4.alpha = 0.5; _local4.blurX = 20; _local4.blurY = 20; _local4.strength = 2; _local4.quality = BitmapFilterQuality.LOW; if (_arg3 == "Blue"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0xFF, 0); _local4.color = 0xFF; } else { if (_arg3 == "Red"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0, 0); _local4.color = 0xFF0000; } else { if (_arg3 == "Green"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0xFF, 0, 0); _local4.color = 0xFF00; } else { if (_arg3 == "Yellow"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0, 0); _local4.color = 0xFFFF00; }; }; }; }; this.filters = [_local4]; } } }//package
Section 12
//GlowerS3 (GlowerS3) package { import flash.display.*; import flash.filters.*; import flash.geom.*; public class GlowerS3 extends Sprite { public var yPos;// = 0 public var Type;// = "HorBomb" public var tempxPos;// = 0 public var killMe;// = false public var KillColor; public var xPos;// = 0 public var tempyPos;// = 0 public function GlowerS3(_arg1, _arg2, _arg3){ var _local4:GlowFilter; xPos = 0; yPos = 0; Type = "HorBomb"; killMe = false; tempyPos = 0; tempxPos = 0; super(); xPos = _arg1; yPos = _arg2; tempyPos = _arg2; tempxPos = _arg1; KillColor = _arg3; _local4 = new GlowFilter(); _local4.alpha = 0.5; _local4.blurX = 20; _local4.blurY = 20; _local4.strength = 2; _local4.quality = BitmapFilterQuality.LOW; if (_arg3 == "Blue"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0xFF, 0); _local4.color = 0xFF; } else { if (_arg3 == "Red"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0, 0); _local4.color = 0xFF0000; } else { if (_arg3 == "Green"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0xFF, 0, 0); _local4.color = 0xFF00; } else { if (_arg3 == "Yellow"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0, 0); _local4.color = 0xFFFF00; }; }; }; }; this.filters = [_local4]; } } }//package
Section 13
//GlowerS4 (GlowerS4) package { import flash.display.*; import flash.filters.*; import flash.geom.*; public class GlowerS4 extends Sprite { public var yPos;// = 0 public var Type;// = "VertBomb" public var tempxPos;// = 0 public var killMe;// = false public var KillColor; public var xPos;// = 0 public var tempyPos;// = 0 public function GlowerS4(_arg1, _arg2, _arg3){ var _local4:GlowFilter; xPos = 0; yPos = 0; Type = "VertBomb"; killMe = false; tempyPos = 0; tempxPos = 0; super(); xPos = _arg1; yPos = _arg2; tempyPos = _arg2; tempxPos = _arg1; KillColor = _arg3; _local4 = new GlowFilter(); _local4.alpha = 0.5; _local4.blurX = 20; _local4.blurY = 20; _local4.strength = 2; _local4.quality = BitmapFilterQuality.LOW; if (_arg3 == "Blue"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0xFF, 0); _local4.color = 0xFF; } else { if (_arg3 == "Red"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0, 0); _local4.color = 0xFF0000; } else { if (_arg3 == "Green"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0xFF, 0, 0); _local4.color = 0xFF00; } else { if (_arg3 == "Yellow"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0, 0); _local4.color = 0xFFFF00; }; }; }; }; this.filters = [_local4]; } } }//package
Section 14
//HighScores (HighScores) package { import flash.display.*; public class HighScores extends MovieClip { public var Holder:MovieClip; } }//package
Section 15
//HorFlash (HorFlash) package { import flash.display.*; public class HorFlash extends MovieClip { public var Time;// = 30 public function HorFlash(){ Time = 30; super(); } } }//package
Section 16
//howtoClip (howtoClip) package { import flash.display.*; public dynamic class howtoClip extends MovieClip { public var Menu_Button:SimpleButton; } }//package
Section 17
//hud (hud) package { import flash.display.*; import flash.text.*; public class hud extends MovieClip { public var Bonus_txt:TextField; public var level_txt:TextField; public var score_txt:TextField; public var Timer_Bar:MovieClip; } }//package
Section 18
//Main (Main) package { import flash.display.*; import flash.events.*; import mochi.*; import flash.media.*; import flash.net.*; public class Main extends MovieClip { public const gameWidth = 10; public const gameHeight = 15; public const TileSize = 26; public var ETimer;// = 0.3 public var MochiClip; public var TimeToSpawn;// = 50 public var HSpawn;// = 50 public var adsClip;// = null public var CurrentToSpawn;// = 50 public var PAUSEclip;// = null public var ESpawn;// = 150 public var canpause;// = true public var CurrentMusic; public var CurrentTimerMax;// = 6 public var GameHolderAmount;// = 0 public var Partical_Gravity;// = 0.5 public var HSpawnMax;// = 35 public var highlights_a; public var GameHolder; public var HTimerMax;// = 15 public var SmileWait;// = 120 public var BlocksToNextLevel;// = 100 public var Glowers; public var mainMenu;// = null public var CurrentDIFF;// = "M" public var Smile;// = null public var MTimer;// = 0.5 public var scoreShakeAmount;// = 0 public var NumberSelected;// = 0 public var Particals_A; public var MSpawn;// = 100 public var myMochiScoresClip; public var newLevelClip;// = null public var ETimerMax;// = 6 public var ESpawnMax;// = 120 public var MTimerMax;// = 10 public var MSpawnMax;// = 80 public var ScoreSubbed;// = false public var Level;// = 1 public var CurrentTimer;// = 6 public var byBomb;// = false public var backgroundClip:MovieClip; public var BlockSelection; public var Blocks; public var firststart; public var CurrentToSpawnMax;// = 50 public var BlocksKilled;// = 0 public var gamehud; public var byBombB;// = false public var Tutclip;// = null public var trackId;// = 1 public var BlocksToKill; public var byBombG;// = false public var PAUSE;// = false public var byBombR;// = false public var HTimer;// = 1.4 public var byBombY;// = false public var deathClip;// = null public function Main(){ Blocks = new Array(); Glowers = new Array(); BlockSelection = {x:-1, y:-1}; BlocksToKill = new Array(); NumberSelected = 0; Particals_A = new Array(); Partical_Gravity = 0.5; scoreShakeAmount = 0; GameHolderAmount = 0; BlocksKilled = 0; Level = 1; BlocksToNextLevel = 100; TimeToSpawn = 50; newLevelClip = null; firststart = new firststarts(); mainMenu = null; CurrentMusic = new SoundChannel(); trackId = 1; CurrentTimerMax = 6; ETimerMax = 6; MTimerMax = 10; HTimerMax = 15; CurrentTimer = 6; ETimer = 0.3; MTimer = 0.5; HTimer = 1.4; CurrentToSpawn = 50; CurrentToSpawnMax = 50; ESpawn = 150; ESpawnMax = 120; MSpawn = 100; MSpawnMax = 80; HSpawn = 50; HSpawnMax = 35; CurrentDIFF = "M"; deathClip = null; MochiClip = new MovieClip(); adsClip = null; myMochiScoresClip = new HighScores(); ScoreSubbed = false; Smile = null; SmileWait = 120; Tutclip = null; byBomb = false; byBombG = false; byBombR = false; byBombY = false; byBombB = false; PAUSE = false; PAUSEclip = null; canpause = true; highlights_a = new Array(); super(); addFrameScript(0, frame1); addChild(firststart); addEventListener(Event.ENTER_FRAME, myLoader); addChild(MochiClip); addChild(myMochiScoresClip); MochiServices.connect("788c7cb0f0f870c3", myMochiScoresClip.Holder); removeChild(myMochiScoresClip); MochiBot.track(this, "57e9eb5d"); firststart.Play_Button.visible = false; } public function GameOver(){ var _local1:*; if (PAUSEclip !== null){ removeChild(PAUSEclip); PAUSEclip = null; }; stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed); stage.removeEventListener(KeyboardEvent.KEY_UP, unkeyPressed); stage.removeEventListener(Event.ENTER_FRAME, runGame); stage.removeEventListener(MouseEvent.CLICK, Clicked); if (deathClip == null){ deathClip = new deathScreen(); addChild(deathClip); if (CurrentDIFF == "E"){ deathClip.Score_Button.addEventListener(MouseEvent.CLICK, showEHigh); } else { if (CurrentDIFF == "M"){ deathClip.Score_Button.addEventListener(MouseEvent.CLICK, showMHigh); } else { if (CurrentDIFF == "H"){ deathClip.Score_Button.addEventListener(MouseEvent.CLICK, showHHigh); }; }; }; deathClip.Menu_Button.addEventListener(MouseEvent.CLICK, BacktoMenu2); deathClip.Score_txt.text = String(Number(gamehud.score_txt.text)); }; SoundMixer.stopAll(); _local1 = new sEndgame_01().play(); } public function scoresToMenu(_arg1:Event){ if (myMochiScoresClip.alpha > 0){ myMochiScoresClip.alpha = (myMochiScoresClip.alpha - 0.05); }; if (mainMenu.alpha < 1){ mainMenu.alpha = (mainMenu.alpha + 0.05); }; if ((((mainMenu.alpha >= 1)) && ((myMochiScoresClip.alpha <= 0)))){ stage.removeEventListener(Event.ENTER_FRAME, scoresToMenu); }; } public function showSmile(){ addEventListener(Event.ENTER_FRAME, runSmile); Smile = new SG_intro(); Smile.sButton.addEventListener(MouseEvent.CLICK, openS); addChild(Smile); Smile.alpha = 0; } public function Clicked(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; if (!PAUSE){ _local2 = Math.round((((_arg1.stageX - GameHolder.x) / TileSize) - 0.5)); _local3 = Math.round((((_arg1.stageY - GameHolder.y) / TileSize) - 0.5)); byBomb = false; byBombG = false; byBombR = false; byBombY = false; byBombB = false; BlocksToKill = null; BlocksToKill = new Array(); ClearAlphas(); _local4 = false; _local5 = Glowers.length; _local6 = 0; while (_local6 < _local5) { if ((((Glowers[_local6].xPos == _local2)) && ((Glowers[_local6].yPos == _local3)))){ _local7 = Glowers[_local6].Type; if (_local7 !== "SOLID"){ if (_local7 == "BOMB"){ _local7 = Glowers[_local6].KillColor; } else { if (_local7 == "HorBomb"){ _local7 = Glowers[_local6].KillColor; } else { if (_local7 == "VertBomb"){ _local7 = Glowers[_local6].KillColor; }; }; }; Glowers[_local6].alpha = 0.5; BlocksToKill.push(new Array(_local6, Glowers[_local6])); }; }; _local6++; }; if (_local7 !== "SOLID"){ hightlightSimpleLocal(_local2, _local3, _local7); }; if (BlocksToKill.length > 2){ BlocksToKill = new Array(); ClearAlphas(); hightlightLocal(_local2, _local3, _local7); if (BlocksToKill.length > 2){ if (byBomb){ shakeTable(true); _local8 = new sBomb_01().play(); gamehud.Bonus_txt.alpha = 0.7; gamehud.Bonus_txt.text = "BOMB +150"; addScore(100); }; byBomb = false; _local6 = 0; while (_local6 < BlocksToKill.length) { Glowers[BlocksToKill[_local6][0]].killMe = true; _local6++; }; _local8 = new sWhumm().play(); removeNeeded(); moveabove(); shakeScore(true); addToTimer(((BlocksToKill.length * 6) * 2)); addLevel(BlocksToKill.length); }; }; }; } public function unkeyPressed(_arg1:KeyboardEvent){ canpause = true; } public function BacktoMenu2(_arg1){ if (deathClip !== null){ removeChild(deathClip); deathClip = null; }; if (GameHolder !== null){ removeChild(GameHolder); GameHolder = null; }; if (newLevelClip !== null){ removeChild(newLevelClip); newLevelClip = null; }; if (gamehud !== null){ removeChild(gamehud); gamehud = null; }; resetAllStarts(); mainMenu = new mainmenu(); addChild(mainMenu); mainMenu.Easy.addEventListener(MouseEvent.CLICK, StartNewEGame); mainMenu.Med.addEventListener(MouseEvent.CLICK, StartNewMGame); mainMenu.Hard.addEventListener(MouseEvent.CLICK, StartNewHGame); mainMenu.HowTo.addEventListener(MouseEvent.CLICK, showHelp); mainMenu.More.addEventListener(MouseEvent.CLICK, moreGames); mainMenu.High.addEventListener(MouseEvent.CLICK, moreHigh); mainMenu.Add.addEventListener(MouseEvent.CLICK, addToYourSite); addEventListener(Event.ENTER_FRAME, runMenus); } public function makeVert(_arg1){ var _local2:*; _local2 = new VertFlash(); GameHolder.addChild(_local2); _local2.y = 14; _local2.x = (25 * _arg1); _local2.alpha = (_local2.alpha - 0.5); highlights_a.push(_local2); } public function BacktoMenu(){ removeChild(myMochiScoresClip); resetAllStarts(); mainMenu = new mainmenu(); addChild(mainMenu); mainMenu.Easy.addEventListener(MouseEvent.CLICK, StartNewEGame); mainMenu.Med.addEventListener(MouseEvent.CLICK, StartNewMGame); mainMenu.Hard.addEventListener(MouseEvent.CLICK, StartNewHGame); mainMenu.HowTo.addEventListener(MouseEvent.CLICK, showHelp); mainMenu.High.addEventListener(MouseEvent.CLICK, moreHigh); mainMenu.More.addEventListener(MouseEvent.CLICK, moreGames); mainMenu.Add.addEventListener(MouseEvent.CLICK, addToYourSite); stage.removeEventListener(Event.ENTER_FRAME, scoresToMenu); addEventListener(Event.ENTER_FRAME, runMenus); } function frame1(){ stop(); } public function addScore(_arg1){ var _local2:*; _local2 = (Number(gamehud.score_txt.text) + _arg1); if (_local2 < 10){ _local2 = ("0" + _local2); }; if (_local2 < 100){ _local2 = ("0" + _local2); }; if (_local2 < 1000){ _local2 = ("0" + _local2); }; if (_local2 < 10000){ _local2 = ("0" + _local2); }; if (_local2 < 100000){ _local2 = ("0" + _local2); }; gamehud.score_txt.text = _local2; } public function updateabove(_arg1, _arg2){ var _local3:*; _local3 = 0; while (_local3 < Glowers.length) { if (!Glowers[_local3].killMe){ if ((((Glowers[_local3].xPos == _arg2)) && ((Glowers[_local3].yPos <= _arg1)))){ Glowers[_local3].tempyPos++; }; }; _local3++; }; } public function shakeTable(_arg1:Boolean):void{ if (_arg1){ GameHolderAmount = 10; GameHolder.x = (70 + ((Math.random() * GameHolderAmount) * 2)); GameHolder.y = (65 + ((Math.random() * GameHolderAmount) * 2)); } else { if (GameHolderAmount > 0){ GameHolderAmount--; }; GameHolder.x = (70 + ((Math.random() * GameHolderAmount) * 2)); GameHolder.y = (65 + ((Math.random() * GameHolderAmount) * 2)); }; } public function moreGames(_arg1:Event){ var _local2:URLRequest; _local2 = new URLRequest("http://www.smileygamer.com/?gameref=1069"); navigateToURL(_local2, "_blank"); } public function hightlightLocal(_arg1, _arg2, _arg3){ var _local4:*; var _local5:*; _local4 = Glowers.length; _local5 = 0; while (_local5 < _local4) { if ((((Glowers[_local5].xPos == (_arg1 + 1))) && ((Glowers[_local5].yPos == _arg2)))){ if (Glowers[_local5].alpha == 1){ if (Glowers[_local5].Type == "BOMB"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 + 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); bombColor(_arg3); }; } else { if (Glowers[_local5].Type == "HorBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 + 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); HighlightHor(_arg2); }; } else { if (Glowers[_local5].Type == "VertBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 + 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); HighlightVert((_arg1 + 1)); }; } else { if (Glowers[_local5].Type == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 + 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; }; }; }; }; } else { if ((((Glowers[_local5].xPos == (_arg1 - 1))) && ((Glowers[_local5].yPos == _arg2)))){ if (Glowers[_local5].alpha == 1){ if (Glowers[_local5].Type == "BOMB"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 - 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); bombColor(_arg3); }; } else { if (Glowers[_local5].Type == "HorBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 - 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); HighlightHor(_arg2); }; } else { if (Glowers[_local5].Type == "VertBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 - 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); HighlightVert((_arg1 - 1)); }; } else { if (Glowers[_local5].Type == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 - 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; }; }; }; }; } else { if ((((Glowers[_local5].xPos == _arg1)) && ((Glowers[_local5].yPos == (_arg2 + 1))))){ if (Glowers[_local5].alpha == 1){ if (Glowers[_local5].Type == "BOMB"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 + 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); bombColor(_arg3); }; } else { if (Glowers[_local5].Type == "HorBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 + 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); HighlightHor((_arg2 + 1)); }; } else { if (Glowers[_local5].Type == "VertBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 + 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); HighlightVert(_arg1); }; } else { if (Glowers[_local5].Type == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 + 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; }; }; }; }; } else { if ((((Glowers[_local5].xPos == _arg1)) && ((Glowers[_local5].yPos == (_arg2 - 1))))){ if (Glowers[_local5].alpha == 1){ if (Glowers[_local5].Type == "BOMB"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 - 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); bombColor(_arg3); }; } else { if (Glowers[_local5].Type == "HorBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 - 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); HighlightHor((_arg2 - 1)); }; } else { if (Glowers[_local5].Type == "VertBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 - 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); HighlightVert(_arg1); }; } else { if (Glowers[_local5].Type == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 - 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; }; }; }; }; }; }; }; }; _local5++; }; } public function moreHigh(_arg1:Event){ var _local2:URLRequest; _local2 = new URLRequest("http://www.smileygamer.com/highscores/colorsmash.html?gameref=1069"); navigateToURL(_local2, "_blank"); } public function StartNewMGame(_arg1:Event){ stage.removeEventListener(Event.ENTER_FRAME, scoresToMenu); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed); stage.addEventListener(KeyboardEvent.KEY_UP, unkeyPressed); CurrentTimerMax = MTimerMax; CurrentTimer = MTimer; CurrentToSpawn = MSpawn; CurrentToSpawnMax = MSpawnMax; CurrentDIFF = "M"; StartNewGame(); } public function moveabove(){ var _local1:*; _local1 = 0; while (_local1 < Glowers.length) { Glowers[_local1].yPos = Glowers[_local1].tempyPos; _local1++; }; } public function StartNewEGame(_arg1:Event){ stage.removeEventListener(Event.ENTER_FRAME, scoresToMenu); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed); stage.addEventListener(KeyboardEvent.KEY_UP, unkeyPressed); CurrentTimerMax = ETimerMax; CurrentTimer = ETimer; CurrentToSpawn = ESpawn; CurrentToSpawnMax = ESpawnMax; CurrentDIFF = "E"; StartNewGame(); } public function clearaddText(){ if (adsClip !== null){ adsClip.Holder.alpha = 0.5; }; } public function showEHigh(_arg1:Event){ addChild(myMochiScoresClip); if (deathClip !== null){ removeChild(deathClip); deathClip = null; }; if (GameHolder !== null){ removeChild(GameHolder); GameHolder = null; }; if (newLevelClip !== null){ removeChild(newLevelClip); newLevelClip = null; }; MochiScores.showLeaderboard({boardID:"f171e2b76723540c", score:Number(gamehud.score_txt.text), onClose:BacktoMenu}); if (gamehud !== null){ removeChild(gamehud); gamehud = null; }; } public function moveBlocks():void{ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; _local1 = Glowers.length; _local2 = 0; while (_local2 < _local1) { _local3 = Glowers[_local2]; _local4 = _local3.xPos; _local5 = _local3.yPos; _local6 = (_local5 * TileSize); if ((_local3.y / TileSize) < _local5){ _local3.y = (_local3.y - ((_local3.y - _local6) / 2)); }; _local2++; }; } public function showMHigh(_arg1:Event){ addChild(myMochiScoresClip); if (deathClip !== null){ removeChild(deathClip); deathClip = null; }; if (GameHolder !== null){ removeChild(GameHolder); GameHolder = null; }; if (newLevelClip !== null){ removeChild(newLevelClip); newLevelClip = null; }; MochiScores.showLeaderboard({boardID:"563626e0a6047091", score:Number(gamehud.score_txt.text), onClose:BacktoMenu}); if (gamehud !== null){ removeChild(gamehud); gamehud = null; }; } public function StartMenu(){ addEventListener(Event.ENTER_FRAME, runMenus); mainMenu = new mainmenu(); addChild(mainMenu); mainMenu.alpha = 0; mainMenu.Easy.addEventListener(MouseEvent.CLICK, StartNewEGame); mainMenu.Med.addEventListener(MouseEvent.CLICK, StartNewMGame); mainMenu.Hard.addEventListener(MouseEvent.CLICK, StartNewHGame); mainMenu.HowTo.addEventListener(MouseEvent.CLICK, showHelp); mainMenu.High.addEventListener(MouseEvent.CLICK, moreHigh); mainMenu.More.addEventListener(MouseEvent.CLICK, moreGames); mainMenu.Add.addEventListener(MouseEvent.CLICK, addToYourSite); } public function keyPressed(_arg1:KeyboardEvent){ var _local2:*; if (canpause){ canpause = false; BlocksToKill = null; BlocksToKill = new Array(); ClearAlphas(); NumberSelected = 0; BlockSelection.x = -1; BlockSelection.y = -1; if (!PAUSE){ PAUSE = true; if (PAUSEclip !== null){ removeChild(PAUSEclip); PAUSEclip = null; }; PAUSEclip = new pauseClips(); addChild(PAUSEclip); _local2 = 0; while (_local2 < Glowers.length) { Glowers[_local2].alpha = 0; _local2++; }; } else { PAUSE = false; if (PAUSEclip !== null){ removeChild(PAUSEclip); PAUSEclip = null; }; _local2 = 0; while (_local2 < Glowers.length) { Glowers[_local2].alpha = 1; _local2++; }; }; }; } public function runDeath(_arg1:Event):void{ var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; _local2 = 0; while (_local2 < Glowers.length) { _local3 = Glowers[_local2]; _local3.yPos = 16; _local4 = _local3.xPos; _local5 = _local3.yPos; _local6 = (_local5 * TileSize); if ((_local3.y / TileSize) < _local5){ _local3.y = (_local3.y - ((_local3.y - _local6) / 5)); }; _local2++; }; } public function resetAllStarts(){ PAUSE = false; canpause = true; Blocks = new Array(); Glowers = new Array(); BlockSelection = {x:-1, y:-1}; BlocksToKill = new Array(); NumberSelected = 0; Particals_A = new Array(); scoreShakeAmount = 0; GameHolderAmount = 0; BlocksKilled = 0; Level = 1; BlocksToNextLevel = 100; TimeToSpawn = 50; newLevelClip = null; mainMenu = null; trackId = 1; deathClip = null; ScoreSubbed = false; Tutclip = null; byBomb = false; highlights_a = new Array(); } public function myLoader(_arg1:Event):void{ var _local2:String; var _local3:Number; var _local4:Number; var _local5:String; var _local6:Number; _local2 = stage.loaderInfo.url; _local3 = (_local2.indexOf("://") + 3); _local4 = _local2.indexOf("/", _local3); _local5 = _local2.substring(_local3, _local4); if (framesLoaded == totalFrames){ firststart.Loading_txt.text = "100%"; firststart.Progress_bar.width = 250; firststart.Play_Button.visible = true; firststart.Play_Button.addEventListener(MouseEvent.CLICK, StartAds); removeEventListener(Event.ENTER_FRAME, myLoader); gotoAndStop(3); } else { _local6 = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal); _local6 = Math.round((_local6 * 100)); firststart.Loading_txt.text = (_local6 + "%"); firststart.Progress_bar.width = Math.round(((250 / 100) * _local6)); }; } public function runnewSpawning():void{ TimeToSpawn--; if (TimeToSpawn <= 0){ TimeToSpawn = CurrentToSpawn; checkAndAddMore(); }; } public function checkAndAddMore(){ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; if (Glowers.length == 0){ gamehud.Bonus_txt.alpha = 0.7; gamehud.Bonus_txt.text = "CLEAR +750"; addScore(750); }; _local1 = new Array(); _local1.length = (gameWidth - 1); _local2 = _local1.length; _local3 = 0; while (_local3 < _local2) { _local1[_local3] = 0; _local3++; }; _local4 = Glowers.length; _local3 = 0; while (_local3 < _local4) { _local1[(Glowers[_local3].xPos - 1)] = (_local1[(Glowers[_local3].xPos - 1)] + 1); _local3++; }; _local5 = 0; _local3 = 0; while (_local3 < _local2) { if (_local1[_local3] >= (gameHeight - 1)){ _local5++; }; _local3++; }; if (_local5 > 1){ GameOver(); } else { _local6 = new sSpawn_01().play(); _local3 = 0; while (_local3 < _local1.length) { if (_local1[_local3] < (gameHeight - 1)){ _local7 = ((gameHeight - _local1[_local3]) - 1); if ((Math.random() * 1000) > 992){ if (Level < 10){ _local8 = Math.round((Math.random() * 2)); } else { _local8 = Math.round((Math.random() * 3)); }; if (_local8 == 0){ _local9 = new GlowerS2((_local3 + 1), _local7, "Blue"); } else { if (_local8 == 1){ _local9 = new GlowerS2((_local3 + 1), _local7, "Red"); } else { if (_local8 == 2){ _local9 = new GlowerS2((_local3 + 1), _local7, "Green"); } else { if (_local8 == 3){ _local9 = new GlowerS2((_local3 + 1), _local7, "Yellow"); }; }; }; }; } else { if ((Math.random() * 1000) > 930){ if ((Math.random() * 1000) > 700){ if (Level < 10){ _local8 = Math.round((Math.random() * 2)); } else { _local8 = Math.round((Math.random() * 3)); }; if (_local8 == 0){ _local9 = new GlowerS3((_local3 + 1), _local7, "Blue"); } else { if (_local8 == 1){ _local9 = new GlowerS3((_local3 + 1), _local7, "Red"); } else { if (_local8 == 2){ _local9 = new GlowerS3((_local3 + 1), _local7, "Green"); } else { if (_local8 == 3){ _local9 = new GlowerS3((_local3 + 1), _local7, "Yellow"); }; }; }; }; } else { if (Level < 10){ _local8 = Math.round((Math.random() * 2)); } else { _local8 = Math.round((Math.random() * 3)); }; if (_local8 == 0){ _local9 = new GlowerS4((_local3 + 1), _local7, "Blue"); } else { if (_local8 == 1){ _local9 = new GlowerS4((_local3 + 1), _local7, "Red"); } else { if (_local8 == 2){ _local9 = new GlowerS4((_local3 + 1), _local7, "Green"); } else { if (_local8 == 3){ _local9 = new GlowerS4((_local3 + 1), _local7, "Yellow"); }; }; }; }; }; } else { if (Level < 10){ _local8 = Math.round((Math.random() * 2)); } else { _local8 = Math.round((Math.random() * 3)); }; if (_local8 == 0){ _local9 = new Glower((_local3 + 1), _local7, "Blue"); } else { if (_local8 == 1){ _local9 = new Glower((_local3 + 1), _local7, "Red"); } else { if (_local8 == 2){ _local9 = new Glower((_local3 + 1), _local7, "Green"); } else { if (_local8 == 3){ _local9 = new Glower((_local3 + 1), _local7, "Yellow"); }; }; }; }; }; }; Glowers.push(_local9); _local9.x = (_local9.x + ((_local3 + 1) * TileSize)); _local9.y = (_local9.y - (2 * TileSize)); GameHolder.addChild(_local9); }; _local3++; }; }; } public function hightlightSimpleLocal(_arg1, _arg2, _arg3){ var _local4:*; var _local5:*; _local4 = Glowers.length; _local5 = 0; while (_local5 < _local4) { if ((((Glowers[_local5].xPos == (_arg1 + 1))) && ((Glowers[_local5].yPos == _arg2)))){ if (Glowers[_local5].alpha == 1){ if (Glowers[_local5].Type == "BOMB"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 + 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == "HorBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 + 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == "VertBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 + 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 + 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; }; }; }; }; } else { if ((((Glowers[_local5].xPos == (_arg1 - 1))) && ((Glowers[_local5].yPos == _arg2)))){ if (Glowers[_local5].alpha == 1){ if (Glowers[_local5].Type == "BOMB"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 - 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == "HorBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 - 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == "VertBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 - 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal((_arg1 - 1), _arg2, _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; }; }; }; }; } else { if ((((Glowers[_local5].xPos == _arg1)) && ((Glowers[_local5].yPos == (_arg2 + 1))))){ if (Glowers[_local5].alpha == 1){ if (Glowers[_local5].Type == "BOMB"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 + 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == "HorBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 + 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == "VertBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 + 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 + 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; }; }; }; }; } else { if ((((Glowers[_local5].xPos == _arg1)) && ((Glowers[_local5].yPos == (_arg2 - 1))))){ if (Glowers[_local5].alpha == 1){ if (Glowers[_local5].Type == "BOMB"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 - 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == "HorBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 - 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == "VertBomb"){ if (Glowers[_local5].KillColor == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 - 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; } else { if (Glowers[_local5].Type == _arg3){ Glowers[_local5].alpha = 0.5; hightlightLocal(_arg1, (_arg2 - 1), _arg3); BlocksToKill.push(new Array(_local5, Glowers[_local5])); }; }; }; }; }; }; }; }; }; _local5++; }; } public function endAds2(){ showSmile(); } public function generateWholeField():void{ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; _local1 = new sSpawn_01().play(); _local2 = 0; _local3 = 0; _local4 = 0; while (_local4 < (gameWidth - 1)) { _local2++; _local3 = 0; _local5 = 0; while (_local5 < (gameHeight - 8)) { _local3 = (_local3 + 2); SpawnBlock(_local2, _local3, 0); _local5++; }; _local4++; }; } public function StartAds(_arg1:MouseEvent){ adsClip = new ads(); addChild(adsClip); addChild(MochiClip); firststart.alpha = 0; firststart.Play_Button.removeEventListener(MouseEvent.CLICK, StartAds); MochiAd.showInterLevelAd({clip:MochiClip, id:"788c7cb0f0f870c3", res:"400x500", ad_finished:endAds2, no_bg:true}); } public function StartNewGame(){ var _local1:*; var _local2:*; var _local3:*; removeEventListener(Event.ENTER_FRAME, runMenus); if (firststart !== null){ removeChild(firststart); firststart = null; }; if (mainMenu !== null){ mainMenu.Easy.removeEventListener(MouseEvent.CLICK, StartNewEGame); mainMenu.Med.removeEventListener(MouseEvent.CLICK, StartNewMGame); mainMenu.Hard.removeEventListener(MouseEvent.CLICK, StartNewHGame); mainMenu.HowTo.removeEventListener(MouseEvent.CLICK, showHelp); mainMenu.More.removeEventListener(MouseEvent.CLICK, moreGames); mainMenu.High.removeEventListener(MouseEvent.CLICK, moreHigh); mainMenu.Add.removeEventListener(MouseEvent.CLICK, addToYourSite); removeChild(mainMenu); mainMenu = null; }; GameHolder = new Game_BG(); addChild(GameHolder); GameHolder.x = 135; GameHolder.y = 65; _local1 = 0; while (_local1 < gameWidth) { Blocks.push(new Array()); _local3 = 0; while (_local3 < gameHeight) { Blocks[_local1].push(false); _local3++; }; _local1++; }; stage.addEventListener(Event.ENTER_FRAME, runGame); generateWholeField(); gamehud = new hud(); addChild(gamehud); _local2 = new sMusic_01(); CurrentMusic = _local2.play(0, 99999); stage.addEventListener(MouseEvent.CLICK, Clicked); } public function HighlightHor(_arg1){ var _local2:*; var _local3:*; _local2 = Glowers.length; _local3 = 0; while (_local3 < _local2) { if ((((Glowers[_local3].yPos == _arg1)) && ((Glowers[_local3].alpha > 0.6)))){ if (Glowers[_local3].Type !== "SOLID"){ BlocksToKill.push(new Array(_local3, Glowers[_local3])); Glowers[_local3].alpha = 0.5; if (Glowers[_local3].Type == "BOMB"){ bombColor(Glowers[_local3].KillColor); } else { if (Glowers[_local3].Type == "VertBomb"){ HighlightVert(Glowers[_local3].xPos); }; }; }; }; _local3++; }; byBomb = true; makeHor(_arg1); } public function ExplodeGlower(_arg1, _arg2, _arg3){ var _local4:*; var _local5:*; var _local6:*; var _local7:*; _local4 = ((Math.random() * 180) + 90); _local4 = ((_local4 * Math.PI) / 180); _local5 = (5 * Math.cos(_local4)); _local6 = (5 * Math.sin(_local4)); _local7 = new Partical(_local6, _local5, ((Math.random() * 20) + 10), _arg3); GameHolder.addChild(_local7); Particals_A.push(_local7); _local7.x = (_arg1 + (TileSize / 2)); _local7.y = (_arg2 + (TileSize / 2)); addScore(1); } public function StartNewHGame(_arg1:Event){ stage.removeEventListener(Event.ENTER_FRAME, scoresToMenu); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed); stage.addEventListener(KeyboardEvent.KEY_UP, unkeyPressed); CurrentTimerMax = HTimerMax; CurrentTimer = HTimer; CurrentToSpawn = HSpawn; CurrentToSpawnMax = HSpawnMax; CurrentDIFF = "H"; StartNewGame(); } public function runMenus(_arg1:Event){ if (firststart !== null){ if (firststart.alpha <= 0){ removeChild(firststart); firststart = null; } else { firststart.alpha = (firststart.alpha - 0.05); }; }; if (((!((mainMenu === null))) && ((Tutclip == null)))){ if (mainMenu.alpha < 1){ mainMenu.alpha = (mainMenu.alpha + 0.05); }; } else { if (mainMenu.alpha > 0){ mainMenu.alpha = (mainMenu.alpha - 0.05); }; }; if (Tutclip !== null){ if (Tutclip.alpha < 1){ Tutclip.alpha = (Tutclip.alpha + 0.05); }; }; if (adsClip !== null){ adsClip.alpha = (adsClip.alpha - 0.05); if (adsClip.alpha <= 0){ removeChild(adsClip); adsClip = null; }; }; } public function showHHigh(_arg1:Event){ addChild(myMochiScoresClip); if (deathClip !== null){ removeChild(deathClip); deathClip = null; }; if (GameHolder !== null){ removeChild(GameHolder); GameHolder = null; }; if (newLevelClip !== null){ removeChild(newLevelClip); newLevelClip = null; }; MochiScores.showLeaderboard({boardID:"ad5899d1847ebcb9", score:Number(gamehud.score_txt.text), onClose:BacktoMenu}); if (gamehud !== null){ removeChild(gamehud); gamehud = null; }; } public function shakeScore(_arg1:Boolean):void{ if (_arg1){ scoreShakeAmount = 10; gamehud.score_txt.x = (137 + ((Math.random() * scoreShakeAmount) * 2)); gamehud.score_txt.y = (63 + ((Math.random() * scoreShakeAmount) * 2)); } else { if (scoreShakeAmount > 0){ scoreShakeAmount--; }; gamehud.score_txt.x = (137 + ((Math.random() * scoreShakeAmount) * 2)); gamehud.score_txt.y = (63 + ((Math.random() * scoreShakeAmount) * 2)); }; } public function runGame(_arg1:Event):void{ var _local2:*; if (!PAUSE){ runHighLights(); moveBlocks(); moveParticals(); shakeScore(false); _local2 = (CurrentTimer * (Level / (Level / 2))); if (_local2 > CurrentTimerMax){ _local2 = CurrentTimerMax; }; if (Glowers.length < 18){ gamehud.Timer_Bar.height = (gamehud.Timer_Bar.height - (_local2 / 2)); } else { gamehud.Timer_Bar.height = (gamehud.Timer_Bar.height - _local2); }; gamehud.Timer_Bar.y = (85 + (372 - gamehud.Timer_Bar.height)); if (gamehud.Timer_Bar.height <= 5){ addToTimer(150); SpawnIRONBlock(); SpawnIRONBlock(); }; runLevels(); runnewSpawning(); shakeTable(false); if (gamehud.Bonus_txt.alpha > 0){ gamehud.Bonus_txt.alpha = (gamehud.Bonus_txt.alpha - 0.01); }; }; } public function addToYourSite(_arg1:Event){ var _local2:URLRequest; _local2 = new URLRequest("http://www.smileygamer.com/freecontent.html?gameref=1069"); navigateToURL(_local2, "_blank"); } public function openS(_arg1:Event){ var _local2:URLRequest; Smile.sButton.removeEventListener(MouseEvent.CLICK, openS); _local2 = new URLRequest("http://www.smileygamer.com/?gameref=1069"); navigateToURL(_local2, "_blank"); } public function runSmile(_arg1:Event){ if (Smile !== null){ Smile.alpha = (Smile.alpha + 0.05); if (Smile.alpha >= 1){ if (SmileWait <= 0){ removeChild(Smile); Smile = null; } else { SmileWait = (SmileWait - 1); }; }; }; if (Smile == null){ removeEventListener(Event.ENTER_FRAME, runSmile); StartMenu(); }; } public function runHighLights(){ var _local1:*; var _local2:*; _local1 = 0; while (_local1 < highlights_a.length) { _local2 = highlights_a[_local1]; _local2.Time--; _local2.alpha = (_local2.alpha - 0.1); if (_local2.Time <= 0){ GameHolder.removeChild(_local2); highlights_a.splice(_local1, 1); }; _local1++; }; } public function addLevel(_arg1){ var _local2:*; BlocksKilled = (BlocksKilled + _arg1); if (BlocksKilled > BlocksToNextLevel){ BlocksToNextLevel = (BlocksToNextLevel + (100 + (BlocksKilled / 10))); Level++; CurrentToSpawn = (CurrentToSpawn + (0.2 * Level)); if (CurrentToSpawn > CurrentToSpawnMax){ CurrentToSpawn = CurrentToSpawnMax; }; if (trackId == 1){ trackId = 2; SoundMixer.stopAll(); CurrentMusic = new sMusic_02().play(1, 99); } else { if (trackId == 2){ trackId = 3; SoundMixer.stopAll(); CurrentMusic = new sMusic_01().play(1, 99); } else { if (trackId == 3){ trackId = 1; SoundMixer.stopAll(); CurrentMusic = new sMusic_03().play(1, 99); }; }; }; backgroundClip.play(); if (!(newLevelClip) == null){ removeChild(newLevelClip); newLevelClip = null; }; newLevelClip = new newlevel(); addChild(newLevelClip); if (Level < 10){ _local2 = ("0" + Level); } else { _local2 = Level; }; gamehud.level_txt.text = _local2; _local2 = (((((((((((" LEVEL" + _local2) + " LEVEL") + _local2) + " LEVEL") + _local2) + " LEVEL") + _local2) + " LEVEL") + _local2) + " LEVEL") + _local2); newLevelClip.level_txt.text = _local2; }; } public function ClearAlphas(){ var _local1:*; var _local2:*; _local1 = Glowers.length; _local2 = 0; while (_local2 < _local1) { Glowers[_local2].alpha = 1; _local2++; }; } public function moveParticals(){ var _local1:int; var _local2:*; _local1 = 0; while (_local1 < Particals_A.length) { _local2 = Particals_A[_local1]; _local2.yMov = (_local2.yMov + Partical_Gravity); _local2.y = (_local2.y + _local2.yMov); _local2.x = (_local2.x - _local2.xMov); _local2.alpha = (_local2.Life / 10); _local2.Life--; if (_local2.Life <= 0){ GameHolder.removeChild(_local2); Particals_A.splice(_local1, 1); }; _local1++; }; } public function removeNeeded(){ var _local1:*; _local1 = 0; while (_local1 < Glowers.length) { if (Glowers[_local1].killMe){ updateabove(Glowers[_local1].yPos, Glowers[_local1].xPos); ExplodeGlower(Glowers[_local1].x, Glowers[_local1].y, Glowers[_local1].Type); GameHolder.removeChild(Glowers[_local1]); Glowers.splice(_local1, 1); removeNeeded(); }; _local1++; }; } public function unshowHelp(_arg1:Event){ removeChild(Tutclip); Tutclip = null; } public function makeHor(_arg1){ var _local2:*; _local2 = new HorFlash(); GameHolder.addChild(_local2); _local2.y = ((25 * _arg1) + 12); _local2.x = (_local2.x + 18); _local2.alpha = (_local2.alpha - 0.5); highlights_a.push(_local2); } public function addToTimer(_arg1){ gamehud.Timer_Bar.height = (gamehud.Timer_Bar.height + _arg1); if (gamehud.Timer_Bar.height > 372){ gamehud.Timer_Bar.height = 372; }; gamehud.Timer_Bar.y = (85 + (372 - gamehud.Timer_Bar.height)); } public function SpawnIRONBlock(){ var _local1:*; var _local2:*; var _local3:*; var _local4:*; var _local5:*; var _local6:*; _local1 = new sIron_01().play(); _local2 = new Array(); _local2.length = (gameWidth - 1); _local3 = 0; while (_local3 < _local2.length) { _local2[_local3] = 0; _local3++; }; _local3 = 0; while (_local3 < Glowers.length) { _local2[(Glowers[_local3].xPos - 1)] = (_local2[(Glowers[_local3].xPos - 1)] + 1); _local3++; }; _local4 = new Array(); _local3 = 0; while (_local3 < _local2.length) { if (_local2[_local3] < 13){ _local4.push(new Array((_local3 + 1), _local2[_local3])); }; _local3++; }; _local5 = _local4[Math.floor((Math.random() * (_local4.length - 1)))]; _local5[1] = ((gameHeight - _local5[1]) - 1); _local6 = new GlowerS1(_local5[0], _local5[1], "SOLID"); Glowers.push(_local6); _local6.x = (_local6.x + (_local5[0] * TileSize)); _local6.y = (_local6.y - (2 * TileSize)); GameHolder.addChild(_local6); gamehud.Bonus_txt.alpha = 0.7; gamehud.Bonus_txt.text = "Timer +10"; addScore(10); } public function runLevels():void{ if (newLevelClip !== null){ newLevelClip.x++; newLevelClip.Time--; newLevelClip.alpha = (newLevelClip.Time / 200); if (newLevelClip.Time <= 0){ removeChild(newLevelClip); newLevelClip = null; }; }; } public function bombColor(_arg1):void{ var _local2:*; var _local3:*; byBomb = true; _local2 = Glowers.length; _local3 = 0; while (_local3 < _local2) { if (Glowers[_local3].alpha > 0.6){ if ((((Glowers[_local3].Type == "BOMB")) && ((Glowers[_local3].KillColor == _arg1)))){ Glowers[_local3].alpha = 0.5; BlocksToKill.push(new Array(_local3, Glowers[_local3])); } else { if ((((Glowers[_local3].Type == "HorBomb")) && ((Glowers[_local3].KillColor == _arg1)))){ Glowers[_local3].alpha = 0.5; BlocksToKill.push(new Array(_local3, Glowers[_local3])); HighlightHor(Glowers[_local3].yPos); } else { if ((((Glowers[_local3].Type == "VertBomb")) && ((Glowers[_local3].KillColor == _arg1)))){ Glowers[_local3].alpha = 0.5; BlocksToKill.push(new Array(_local3, Glowers[_local3])); HighlightVert(Glowers[_local3].xPos); } else { if (Glowers[_local3].Type == _arg1){ Glowers[_local3].alpha = 0.5; BlocksToKill.push(new Array(_local3, Glowers[_local3])); }; }; }; }; }; _local3++; }; } public function showHelp(_arg1:Event){ if (Tutclip !== null){ removeChild(Tutclip); Tutclip = null; }; Tutclip = new howtoClip(); Tutclip.alpha = 0; addChild(Tutclip); Tutclip.Menu_Button.addEventListener(MouseEvent.CLICK, unshowHelp); } public function endAds(){ Smile = new SG_intro(); addChild(Smile); } public function SpawnBlock(_arg1, _arg2, _arg3):void{ var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; _local4 = (gameHeight - 1); _local5 = Blocks[_arg1].length; _local6 = 0; while (_local6 < _local5) { if (Blocks[_arg1][_local6] !== false){ _local4--; }; _local6++; }; if (Level < 10){ _local7 = Math.round((Math.random() * 2)); } else { _local7 = Math.round((Math.random() * 3)); }; if (_local7 == 0){ _local8 = new Glower(_arg1, _local4, "Blue"); } else { if (_local7 == 1){ _local8 = new Glower(_arg1, _local4, "Red"); } else { if (_local7 == 2){ _local8 = new Glower(_arg1, _local4, "Green"); } else { if (_local7 == 3){ _local8 = new Glower(_arg1, _local4, "Yellow"); }; }; }; }; Blocks[_arg1][_local4] = 2; Glowers.push(_local8); _local8.x = (_local8.x + (_arg1 * TileSize)); _local8.y = (_local8.y - (_arg2 * TileSize)); GameHolder.addChild(_local8); } public function HighlightVert(_arg1){ var _local2:*; var _local3:*; _local2 = Glowers.length; _local3 = 0; while (_local3 < _local2) { if ((((Glowers[_local3].xPos == _arg1)) && ((Glowers[_local3].alpha > 0.6)))){ if (Glowers[_local3].Type !== "SOLID"){ BlocksToKill.push(new Array(_local3, Glowers[_local3])); Glowers[_local3].alpha = 0.5; if (Glowers[_local3].Type == "BOMB"){ bombColor(Glowers[_local3].KillColor); } else { if (Glowers[_local3].Type == "HorBomb"){ HighlightHor(Glowers[_local3].yPos); }; }; }; }; _local3++; }; byBomb = true; makeVert(_arg1); } } }//package
Section 19
//mainmenu (mainmenu) package { import flash.display.*; public class mainmenu extends MovieClip { public var Hard:SimpleButton; public var Easy:SimpleButton; public var More:SimpleButton; public var Add:SimpleButton; public var Med:SimpleButton; public var High:SimpleButton; public var HowTo:SimpleButton; } }//package
Section 20
//MochiAd (MochiAd) package { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; public class MochiAd { public static function getVersion():String{ return ("2.1"); } public static function showTimedAd(_arg1:Object):void{ MochiAd.showInterLevelAd(_arg1); } public static function _allowDomains(_arg1:String):String{ var _local2:String; _local2 = _arg1.split("/")[2].split(":")[0]; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } public static function load(_arg1:Object):MovieClip{ var DEFAULTS:Object; var clip:Object; var depth:Number; var mc:MovieClip; var wh:Array; var lv:URLVariables; var k:String; var server:String; var hostname:String; var lc:LocalConnection; var name:String; var loader:Loader; var f:Function; var g:Function; var req:URLRequest; var v:Object; var options = _arg1; DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; if (!MochiAd._isNetworkAvailable()){ return (null); }; if (clip._mochiad_loaded){ return (null); }; depth = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, "_mochiad", depth); wh = MochiAd._getRes(options, clip); options.res = ((wh[0] + "x") + wh[1]); options.server = (options.server + options.id); delete options.id; clip._mochiad_loaded = true; if (clip.loaderInfo.loaderURL.indexOf("http") == 0){ options.as3_swf = clip.loaderInfo.loaderURL; }; lv = new URLVariables(); for (k in options) { v = options[k]; if (!(v is Function)){ lv[k] = v; }; }; server = lv.server; delete lv.server; hostname = _allowDomains(server); lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.lc = lc; lv.lc = name; lv.st = getTimer(); loader = new Loader(); f = function (_arg1:Object):void{ mc._mochiad_ctr_failed = true; }; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); g = function (_arg1:Object):void{ MochiAd.unload(clip); }; loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g); req = new URLRequest((server + ".swf")); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader.load(req); mc.addChild(loader); mc._mochiad_ctr = loader; return (mc); } public static function sendHighScore(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{ var _local4:MovieClip; _local4 = MochiAd._loadCommunicator({clip:_arg1.clip, id:_arg1.id}); if (!_local4){ return (false); }; _local4.doSend(["sendHighScore", _arg1], _arg2, _arg3); return (true); } public static function _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local3:Object; var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; _local3 = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; if (_arg1){ for (_local4 in _arg1) { _local3[_local4] = _arg1[_local4]; }; }; _arg1 = _local3.clip.loaderInfo.parameters.mochiad_options; if (_arg1){ _local5 = _arg1.split("&"); _local6 = 0; while (_local6 < _local5.length) { _local7 = _local5[_local6].split("="); _local3[unescape(_local7[0])] = unescape(_local7[1]); _local6++; }; }; return (_local3); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; _arg1.removeChild(_arg1._mochiad); delete _arg1._mochiad_loaded; delete _arg1._mochiad; return (true); } public static function showInterLevelAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_msec:Number; var ad_timeout:Number; var fadeout_time:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var options = _arg1; DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ this.clip.stop(); }, ad_finished:function ():void{ this.clip.play(); }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; ad_msec = 11000; ad_timeout = options.ad_timeout; delete options.ad_timeout; fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ options.ad_finished(); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number; _local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Number; var _local3:Boolean; var _local4:Number; _local1 = this.parent._mochiad_ctr; _local2 = (getTimer() - this.started); _local3 = false; if (!chk.showing){ _local4 = _local1.loaderInfo.bytesTotal; if ((((_local4 > 0)) || (("number" == "undefined")))){ chk.showing = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ _local3 = true; }; }; }; if ((((_local2 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){ _local3 = true; }; if (_local3){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function _getRes(_arg1:Object, _arg2:Object):Array{ var _local3:Object; var _local4:Number; var _local5:Number; var _local6:Array; _local3 = _arg2.getBounds(_arg2.root); _local4 = 0; _local5 = 0; if (typeof(_arg1.res) != "undefined"){ _local6 = _arg1.res.split("x"); _local4 = parseFloat(_local6[0]); _local5 = parseFloat(_local6[1]); } else { _local4 = (_local3.xMax - _local3.xMin); _local5 = (_local3.yMax - _local3.yMin); }; if ((((_local4 == 0)) || ((_local5 == 0)))){ _local4 = _arg2.stage.stageWidth; _local5 = _arg2.stage.stageHeight; }; return ([_local4, _local5]); } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{ var _local4:MovieClip; _local4 = new MovieClip(); if (((false) && (_arg3))){ _arg1.addChildAt(_local4, _arg3); } else { _arg1.addChild(_local4); }; _arg1[_arg2] = _local4; _local4["_name"] = _arg2; return (_local4); } public static function _loadCommunicator(_arg1:Object):MovieClip{ var DEFAULTS:Object; var clip:Object; var clipname:String; var server:String; var depth:Number; var mc:MovieClip; var lv:URLVariables; var k:String; var lc:LocalConnection; var name:String; var req:URLRequest; var loader:Loader; var options = _arg1; DEFAULTS = {com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; clipname = ("_mochiad_com_" + options.id); if (!MochiAd._isNetworkAvailable()){ return (null); }; if (clip[clipname]){ return (clip[clipname]); }; server = (options.com_server + options.id); MochiAd._allowDomains(server); delete options.id; delete options.com_server; depth = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, clipname, depth); lv = new URLVariables(); for (k in options) { lv[k] = options[k]; }; lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.name = name; mc.lc = lc; lv.lc = name; mc._id = 0; mc._queue = []; mc.rpcResult = function (_arg1:Object):void{ var _local3:Array; var _local4:Array; var _local5:Number; var _local6:Object; var _local7:Object; _arg1 = parseInt(_arg1.toString()); _local3 = mc._callbacks[_arg1]; if (typeof(_local3) == "undefined"){ return; }; delete mc._callbacks[_arg1]; _local4 = []; _local5 = 2; while (_local5 < _local3.length) { _local4.push(_local3[_local5]); _local5++; }; _local5 = 1; while (_local5 < arguments.length) { _local4.push(arguments[_local5]); _local5++; }; _local6 = _local3[1]; _local7 = _local3[0]; if (((_local7) && ((typeof(_local6) == "string")))){ _local6 = _local7[_local6]; }; if (typeof(_local6) == "function"){ _local6.apply(_local7, _local4); }; }; mc._didConnect = function (_arg1:String):void{ var _local2:Array; var _local3:Function; var _local4:Number; var _local5:Array; mc._endpoint = _arg1; _local2 = mc._queue; delete mc._queue; _local3 = mc.doSend; _local4 = 0; while (_local4 < _local2.length) { _local5 = _local2[_local4]; _local3.apply(this, _local5); _local4++; }; }; mc.doSend = function (_arg1:Array, _arg2:Object, _arg3:Object):void{ var _local5:Number; var _local6:LocalConnection; var _local7:Array; var _local8:Number; if (mc._endpoint == null){ _local7 = []; _local8 = 0; while (_local8 < arguments.length) { _local7.push(arguments[_local8]); _local8++; }; mc._queue.push(_local7); return; }; mc._id = (mc._id + 1); _local5 = mc._id; mc._callbacks[_local5] = [_arg2, ((_arg3) || (_arg2))]; _local6 = new LocalConnection(); _local6.send(mc._endpoint, "rpc", _local5, _arg1); }; mc._callbacks = {}; mc._callbacks[0] = [mc, "_didConnect"]; lv.st = getTimer(); req = new URLRequest((server + ".swf")); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader = new Loader(); loader.load(req); mc.addChild(loader); mc._mochiad_com = loader; return (mc); } public static function showPreGameAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_msec:Number; var ad_timeout:Number; var fadeout_time:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var bar:MovieClip; var bar_color:Number; var bar_background:Number; var bar_outline:Number; var backing_mc:MovieClip; var backing:Object; var inside_mc:MovieClip; var inside:Object; var outline_mc:MovieClip; var outline:Object; var complete:Boolean; var unloaded:Boolean; var f:Function; var r:MovieClip; var options = _arg1; DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, ad_started:function ():void{ this.clip.stop(); }, ad_finished:function ():void{ this.clip.play(); }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; ad_msec = 11000; ad_timeout = options.ad_timeout; delete options.ad_timeout; fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ var fn:Function; fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.x = (w * -0.5); chk.y = (h * -0.5); bar = createEmptyMovieClip(chk, "_mochiad_bar", 4); bar.x = 10; bar.y = (h - 20); bar_color = options.color; delete options.color; bar_background = options.background; delete options.background; bar_outline = options.outline; delete options.outline; backing_mc = createEmptyMovieClip(bar, "_outline", 1); backing = backing_mc.graphics; backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo((w - 20), 0); backing.lineTo((w - 20), 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); inside_mc = createEmptyMovieClip(bar, "_inside", 2); inside = inside_mc.graphics; inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo((w - 20), 0); inside.lineTo((w - 20), 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside_mc.scaleX = 0; outline_mc = createEmptyMovieClip(bar, "_outline", 3); outline = outline_mc.graphics; outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo((w - 20), 0); outline.lineTo((w - 20), 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number; _local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; f = function (_arg1:Event):void{ complete = true; if (unloaded){ MochiAd.unload(clip); }; }; clip.loaderInfo.addEventListener(Event.COMPLETE, f); if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.unload(clip); }; }; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Object; var _local3:Number; var _local4:Boolean; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Object; var _local10:Number; var _local11:Number; if (!this.parent.parent){ delete this["onEnterFrame"]; return; }; _local1 = this.parent.parent.root; _local2 = this.parent._mochiad_ctr; _local3 = (getTimer() - this.started); _local4 = false; _local5 = _local1.loaderInfo.bytesTotal; _local6 = _local1.loaderInfo.bytesLoaded; _local7 = ((100 * _local6) / _local5); _local8 = ((100 * _local3) / chk.ad_msec); _local9 = this._mochiad_bar._inside; _local10 = Math.min(100, Math.min(((_local7) || (0)), _local8)); _local10 = Math.max(this.last_pcnt, _local10); this.last_pcnt = _local10; _local9.scaleX = (_local10 * 0.01); if (!chk.showing){ _local11 = _local2.loaderInfo.bytesTotal; if ((((_local11 > 0)) || (("number" == "undefined")))){ chk.showing = true; chk.started = getTimer(); } else { if (_local3 > chk.ad_timeout){ _local4 = true; }; }; }; if ((((_local3 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){ _local4 = true; }; if (((complete) && (_local4))){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function showPreloaderAd(_arg1:Object):void{ MochiAd.showPreGameAd(_arg1); } public static function fetchHighScores(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{ var _local4:MovieClip; _local4 = MochiAd._loadCommunicator({clip:_arg1.clip, id:_arg1.id}); if (!_local4){ return (false); }; _local4.doSend(["fetchHighScores", _arg1], _arg2, _arg3); return (true); } public static function doOnEnterFrame(_arg1:MovieClip):void{ var f:Function; var mc = _arg1; f = function (_arg1:Object):void{ if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){ mc.onEnterFrame(); } else { mc.removeEventListener(Event.ENTER_FRAME, f); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package
Section 21
//MochiBot (MochiBot) package { import flash.display.*; import flash.net.*; import flash.system.*; public dynamic class MochiBot extends Sprite { public static function track(_arg1:Sprite, _arg2:String):MochiBot{ var _local3:MochiBot; var _local4:String; var _local5:URLVariables; var _local6:String; var _local7:URLRequest; var _local8:Loader; if (Security.sandboxType == "localWithFile"){ return (null); }; _local3 = new (MochiBot); _arg1.addChild(_local3); _local4 = "http://core.mochibot.com/my/core.swf"; _local5 = new URLVariables(); _local5["sb"] = Security.sandboxType; _local5["v"] = Capabilities.version; _local5["swfid"] = _arg2; _local5["mv"] = "8"; _local5["fv"] = "9"; _local6 = _local3.root.loaderInfo.loaderURL; if (_local6.indexOf("http") == 0){ _local5["url"] = _local6; } else { _local5["url"] = "local"; }; _local7 = new URLRequest(_local4); _local7.contentType = "application/x-www-form-urlencoded"; _local7.method = URLRequestMethod.POST; _local7.data = _local5; _local8 = new Loader(); _local3.addChild(_local8); _local8.load(_local7); return (_local3); } } }//package
Section 22
//newlevel (newlevel) package { import flash.display.*; import flash.text.*; public class newlevel extends MovieClip { public var level_txt:TextField; public var Time;// = 200 public function newlevel(){ Time = 200; super(); } } }//package
Section 23
//Partical (Partical) package { import flash.display.*; import flash.filters.*; import flash.geom.*; public class Partical extends MovieClip { public var Life;// = 0 public var xMov;// = 0 public var yMov;// = 0 public function Partical(_arg1, _arg2, _arg3, _arg4){ var _local5:GlowFilter; xMov = 0; yMov = 0; Life = 0; super(); xMov = _arg1; yMov = _arg2; Life = _arg3; _local5 = new GlowFilter(); _local5.alpha = 1; _local5.blurX = 20; _local5.blurY = 20; _local5.strength = 2; _local5.quality = BitmapFilterQuality.LOW; if (_arg4 == "Blue"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0, 0xFF, 0); _local5.color = 0xFF; } else { if (_arg4 == "Red"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0, 0, 0); _local5.color = 0xFF0000; } else { if (_arg4 == "Green"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0, 0xFF, 0, 0); _local5.color = 0xFF00; } else { if (_arg4 == "Yellow"){ this.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0, 0); _local5.color = 0xFFFF00; }; }; }; }; this.filters = [_local5]; } } }//package
Section 24
//pauseClips (pauseClips) package { import flash.display.*; public dynamic class pauseClips extends MovieClip { } }//package
Section 25
//sBomb_01 (sBomb_01) package { import flash.media.*; public dynamic class sBomb_01 extends Sound { } }//package
Section 26
//sEndgame_01 (sEndgame_01) package { import flash.media.*; public dynamic class sEndgame_01 extends Sound { } }//package
Section 27
//SG_intro (SG_intro) package { import flash.display.*; public dynamic class SG_intro extends MovieClip { public var sButton:SimpleButton; } }//package
Section 28
//sIron_01 (sIron_01) package { import flash.media.*; public dynamic class sIron_01 extends Sound { } }//package
Section 29
//sMusic_01 (sMusic_01) package { import flash.media.*; public dynamic class sMusic_01 extends Sound { } }//package
Section 30
//sMusic_02 (sMusic_02) package { import flash.media.*; public dynamic class sMusic_02 extends Sound { } }//package
Section 31
//sMusic_03 (sMusic_03) package { import flash.media.*; public dynamic class sMusic_03 extends Sound { } }//package
Section 32
//sSpawn_01 (sSpawn_01) package { import flash.media.*; public dynamic class sSpawn_01 extends Sound { } }//package
Section 33
//sWhumm (sWhumm) package { import flash.media.*; public dynamic class sWhumm extends Sound { } }//package
Section 34
//VertFlash (VertFlash) package { import flash.display.*; public class VertFlash extends MovieClip { public var Time;// = 30 public function VertFlash(){ Time = 30; super(); } } }//package

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:3
Symbol 3 MovieClip {Glower}Uses:2
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClip {Partical}Uses:4
Symbol 6 FontUsed by:7 8 9 10 11 16 17 20 22 24 27 31 47 48 53 56 60 70 71 72 73 74 76 77 78 81 82 85 88 89 90 92 96 97 98 99 100 103 106 107
Symbol 7 TextUses:6Used by:15
Symbol 8 EditableTextUses:6Used by:15
Symbol 9 TextUses:6Used by:15
Symbol 10 EditableTextUses:6Used by:15
Symbol 11 EditableTextUses:6Used by:15
Symbol 12 GraphicUsed by:13
Symbol 13 MovieClipUses:12Used by:14
Symbol 14 MovieClipUses:13Used by:15
Symbol 15 MovieClip {hud}Uses:7 8 9 10 11 14
Symbol 16 EditableTextUses:6Used by:18
Symbol 17 TextUses:6Used by:18
Symbol 18 MovieClip {newlevel}Uses:16 17
Symbol 19 GraphicUsed by:32
Symbol 20 TextUses:6Used by:32
Symbol 21 GraphicUsed by:23 79
Symbol 22 TextUses:6Used by:23
Symbol 23 MovieClipUses:21 22Used by:32
Symbol 24 TextUses:6Used by:32 50 57 80 94 105
Symbol 25 FontUsed by:26 46 54 75 93
Symbol 26 EditableTextUses:25Used by:32
Symbol 27 TextUses:6Used by:32 50 57 80 94 105
Symbol 28 GraphicUsed by:29
Symbol 29 MovieClipUses:28Used by:30
Symbol 30 MovieClipUses:29Used by:32
Symbol 31 EditableTextUses:6Used by:32
Symbol 32 MovieClip {firststarts}Uses:19 20 23 24 26 27 30 31
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:35
Symbol 35 MovieClipUses:34Used by:45
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:38
Symbol 38 MovieClipUses:37Used by:45
Symbol 39 GraphicUsed by:40
Symbol 40 MovieClipUses:39Used by:45
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:41Used by:45
Symbol 43 GraphicUsed by:44 55
Symbol 44 ButtonUses:43Used by:45
Symbol 45 MovieClip {SG_intro}Uses:35 38 40 42 44Used by:Timeline
Symbol 46 EditableTextUses:25Used by:50
Symbol 47 TextUses:6Used by:50
Symbol 48 TextUses:6Used by:49
Symbol 49 MovieClipUses:48Used by:50
Symbol 50 MovieClip {ads}Uses:24 46 47 49 27Used by:Timeline
Symbol 51 GraphicUsed by:52 91
Symbol 52 MovieClip {GlowerS3}Uses:51Used by:Timeline
Symbol 53 TextUses:6Used by:57
Symbol 54 EditableTextUses:25Used by:57
Symbol 55 MovieClipUses:43Used by:57
Symbol 56 TextUses:6Used by:57
Symbol 57 MovieClip {HighScores}Uses:53 24 54 27 55 56Used by:Timeline
Symbol 58 GraphicUsed by:59
Symbol 59 MovieClip {ColorSmash_WithAds_fla.background_1}Uses:58Used by:Timeline
Symbol 60 EditableTextUses:6Used by:69
Symbol 61 Sound {sEndgame_01}Used by:69
Symbol 62 Sound {sSpawn_01}Used by:69
Symbol 63 Sound {sIron_01}Used by:69
Symbol 64 Sound {sBomb_01}Used by:69
Symbol 65 Sound {sMusic_03}Used by:69
Symbol 66 Sound {sMusic_02}Used by:69
Symbol 67 Sound {sMusic_01}Used by:69
Symbol 68 Sound {sWhumm}Used by:69
Symbol 69 MovieClip {ColorSmash_WithAds_fla.sounds_2}Uses:60 61 62 63 64 65 66 67 68Used by:Timeline
Symbol 70 TextUses:6Used by:80
Symbol 71 TextUses:6Used by:80
Symbol 72 TextUses:6Used by:80
Symbol 73 TextUses:6Used by:80
Symbol 74 TextUses:6Used by:80
Symbol 75 EditableTextUses:25Used by:80
Symbol 76 TextUses:6Used by:80
Symbol 77 TextUses:6Used by:80
Symbol 78 TextUses:6Used by:80
Symbol 79 ButtonUses:21Used by:80 94 101
Symbol 80 MovieClip {mainmenu}Uses:70 71 72 73 74 24 75 76 77 27 78 79Used by:Timeline
Symbol 81 TextUses:6Used by:94
Symbol 82 TextUses:6Used by:94
Symbol 83 GraphicUsed by:84 110
Symbol 84 MovieClipUses:83Used by:94
Symbol 85 TextUses:6Used by:94
Symbol 86 GraphicUsed by:87 109
Symbol 87 MovieClipUses:86Used by:94
Symbol 88 TextUses:6Used by:94
Symbol 89 TextUses:6Used by:94
Symbol 90 TextUses:6Used by:94
Symbol 91 MovieClipUses:51Used by:94
Symbol 92 TextUses:6Used by:94
Symbol 93 EditableTextUses:25Used by:94
Symbol 94 MovieClip {howtoClip}Uses:81 82 84 85 87 88 89 90 91 92 24 93 27 79Used by:Timeline
Symbol 95 GraphicUsed by:101
Symbol 96 TextUses:6Used by:101
Symbol 97 EditableTextUses:6Used by:101
Symbol 98 TextUses:6Used by:101
Symbol 99 TextUses:6Used by:101
Symbol 100 TextUses:6Used by:101
Symbol 101 MovieClip {deathScreen}Uses:95 96 97 98 99 100 79Used by:Timeline
Symbol 102 GraphicUsed by:105
Symbol 103 TextUses:6Used by:105
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClip {Game_BG}Uses:102 103 24 27 104Used by:Timeline
Symbol 106 TextUses:6Used by:108
Symbol 107 TextUses:6Used by:108
Symbol 108 MovieClip {pauseClips}Uses:106 107Used by:Timeline
Symbol 109 MovieClip {GlowerS1}Uses:86Used by:Timeline
Symbol 110 MovieClip {GlowerS2}Uses:83Used by:Timeline
Symbol 111 GraphicUsed by:112 115
Symbol 112 MovieClip {HorFlash}Uses:111Used by:Timeline
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClip {GlowerS4}Uses:113Used by:Timeline
Symbol 115 MovieClip {VertFlash}Uses:111Used by:Timeline

Instance Names

"backgroundClip"Frame 1Symbol 59 MovieClip {ColorSmash_WithAds_fla.background_1}
"score_txt"Symbol 15 MovieClip {hud} Frame 1Symbol 8 EditableText
"level_txt"Symbol 15 MovieClip {hud} Frame 1Symbol 10 EditableText
"Bonus_txt"Symbol 15 MovieClip {hud} Frame 1Symbol 11 EditableText
"Timer_Bar"Symbol 15 MovieClip {hud} Frame 1Symbol 14 MovieClip
"level_txt"Symbol 18 MovieClip {newlevel} Frame 1Symbol 16 EditableText
"Play_Button"Symbol 32 MovieClip {firststarts} Frame 1Symbol 23 MovieClip
"Progress_bar"Symbol 32 MovieClip {firststarts} Frame 1Symbol 30 MovieClip
"Loading_txt"Symbol 32 MovieClip {firststarts} Frame 1Symbol 31 EditableText
"sButton"Symbol 45 MovieClip {SG_intro} Frame 1Symbol 44 Button
"Holder"Symbol 50 MovieClip {ads} Frame 1Symbol 49 MovieClip
"Holder"Symbol 57 MovieClip {HighScores} Frame 1Symbol 55 MovieClip
"HowTo"Symbol 80 MovieClip {mainmenu} Frame 1Symbol 79 Button
"Easy"Symbol 80 MovieClip {mainmenu} Frame 1Symbol 79 Button
"Med"Symbol 80 MovieClip {mainmenu} Frame 1Symbol 79 Button
"Hard"Symbol 80 MovieClip {mainmenu} Frame 1Symbol 79 Button
"More"Symbol 80 MovieClip {mainmenu} Frame 1Symbol 79 Button
"Add"Symbol 80 MovieClip {mainmenu} Frame 1Symbol 79 Button
"High"Symbol 80 MovieClip {mainmenu} Frame 1Symbol 79 Button
"Menu_Button"Symbol 94 MovieClip {howtoClip} Frame 1Symbol 79 Button
"Score_txt"Symbol 101 MovieClip {deathScreen} Frame 1Symbol 97 EditableText
"Score_Button"Symbol 101 MovieClip {deathScreen} Frame 1Symbol 79 Button
"Menu_Button"Symbol 101 MovieClip {deathScreen} Frame 1Symbol 79 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.
Protect (24)Timeline Frame 131 bytes "..$1$B9$3O2zrJUk0W.rcUqEP.isY1."




http://swfchan.com/10/48144/info.shtml
Created: 30/4 -2019 12:19:31 Last modified: 30/4 -2019 12:19:31 Server time: 22/12 -2024 13:56:36